@mendmania/ui-name
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -1,9 +0,9 @@ | ||
import { openBlock as t, createElementBlock as s, normalizeProps as M, guardReactiveProps as z, renderSlot as m, mergeProps as p, useAttrs as A, computed as y, toRefs as T, unref as r, createElementVNode as u, toDisplayString as h, createCommentVNode as c, normalizeStyle as $, pushScopeId as C, popScopeId as P, Fragment as x, renderList as S, createBlock as g, withCtx as O, resolveDynamicComponent as B, markRaw as j, normalizeClass as k, defineAsyncComponent as N, createVNode as I } from "vue"; | ||
const v = (e, l) => { | ||
import { openBlock as t, createElementBlock as s, normalizeProps as M, guardReactiveProps as z, renderSlot as m, mergeProps as p, useAttrs as A, computed as h, toRefs as T, unref as r, createElementVNode as u, toDisplayString as g, createCommentVNode as c, normalizeStyle as $, pushScopeId as C, popScopeId as P, Fragment as x, renderList as S, createBlock as v, withCtx as O, resolveDynamicComponent as B, markRaw as J, normalizeClass as k, defineAsyncComponent as N, createVNode as I } from "vue"; | ||
const y = (e, o) => { | ||
const n = e.__vccOpts || e; | ||
for (const [a, o] of l) | ||
n[a] = o; | ||
for (const [i, a] of o) | ||
n[i] = a; | ||
return n; | ||
}, F = {}; | ||
function V(e, l) { | ||
function V(e, o) { | ||
return t(), s("button", M(z(e.$attrs)), [ | ||
@@ -13,4 +13,4 @@ m(e.$slots, "default") | ||
} | ||
const nt = /* @__PURE__ */ v(F, [["render", V]]), R = {}; | ||
function E(e, l) { | ||
const lt = /* @__PURE__ */ y(F, [["render", V]]), R = {}; | ||
function E(e, o) { | ||
return t(), s("input", p(e.$attrs, { | ||
@@ -21,3 +21,3 @@ type: "text", | ||
} | ||
const rt = /* @__PURE__ */ v(R, [["render", E]]); | ||
const it = /* @__PURE__ */ y(R, [["render", E]]); | ||
const Z = (e) => (C("data-v-dfc1ec80"), e = e(), P(), e), K = { | ||
@@ -32,6 +32,6 @@ key: 0, | ||
class: "pt-3 flex gap-5 text-xs text-cyan infobox" | ||
}, se = { key: 0 }, ne = { key: 1 }, re = { key: 2 }, le = { | ||
}, se = { key: 0 }, ne = { key: 1 }, re = { key: 2 }, oe = { | ||
inheritAttrs: !1, | ||
customOptions: {} | ||
}, oe = /* @__PURE__ */ Object.assign(le, { | ||
}, ae = /* @__PURE__ */ Object.assign(oe, { | ||
__name: "JCard", | ||
@@ -104,13 +104,13 @@ props: { | ||
setup(e) { | ||
const l = e, n = A(), a = y(() => n.order ? `flex-${n.order}` : "flex-col"), { showAuthor: o, showViews: i, showDate: d } = T(l), f = y( | ||
() => o.value || i.value || d.value | ||
const o = e, n = A(), i = h(() => n.order ? `flex-${n.order}` : "flex-col"), { showAuthor: a, showViews: l, showDate: d } = T(o), _ = h( | ||
() => a.value || l.value || d.value | ||
); | ||
return (_, w) => (t(), s("div", p({ class: "inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full" }, _.$attrs, { class: r(a) }), [ | ||
return (f, w) => (t(), s("div", p({ class: "inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full" }, f.$attrs, { class: r(i) }), [ | ||
e.showThumbnail ? (t(), s("div", K, [ | ||
u("div", U, [ | ||
u("div", G, [ | ||
m(_.$slots, "top_left", {}, void 0, !0), | ||
m(f.$slots, "top_left", {}, void 0, !0), | ||
u("div", Q, [ | ||
m(_.$slots, "top_right", {}, void 0, !0), | ||
e.showTimeDuration ? (t(), s("span", W, h(e.timeDuration), 1)) : c("", !0) | ||
m(f.$slots, "top_right", {}, void 0, !0), | ||
e.showTimeDuration ? (t(), s("span", W, g(e.timeDuration), 1)) : c("", !0) | ||
]) | ||
@@ -120,11 +120,11 @@ ]), | ||
u("div", Y, [ | ||
m(_.$slots, "bottom_left", { class: "flex" }, void 0, !0), | ||
m(f.$slots, "bottom_left", { class: "flex" }, void 0, !0), | ||
u("div", ee, [ | ||
m(_.$slots, "bottom_right", {}, void 0, !0) | ||
m(f.$slots, "bottom_right", {}, void 0, !0) | ||
]) | ||
]) | ||
]), | ||
m(_.$slots, "image", {}, void 0, !0) | ||
m(f.$slots, "image", {}, void 0, !0) | ||
])) : c("", !0), | ||
r(f) || e.showTitle ? (t(), s("div", { | ||
r(_) || e.showTitle ? (t(), s("div", { | ||
key: 1, | ||
@@ -137,7 +137,7 @@ style: $(e.detailsStyle), | ||
style: $(e.titleStyle) | ||
}, h(e.title), 5)) : c("", !0), | ||
r(f) ? (t(), s("div", te, [ | ||
r(o) ? (t(), s("span", se, h(e.author), 1)) : c("", !0), | ||
r(i) ? (t(), s("span", ne, h(e.views), 1)) : c("", !0), | ||
r(d) ? (t(), s("span", re, h(e.date), 1)) : c("", !0) | ||
}, g(e.title), 5)) : c("", !0), | ||
r(_) ? (t(), s("div", te, [ | ||
r(a) ? (t(), s("span", se, g(e.author), 1)) : c("", !0), | ||
r(l) ? (t(), s("span", ne, g(e.views), 1)) : c("", !0), | ||
r(d) ? (t(), s("span", re, g(e.date), 1)) : c("", !0) | ||
])) : c("", !0) | ||
@@ -147,7 +147,7 @@ ], 4)) : c("", !0) | ||
} | ||
}), lt = /* @__PURE__ */ v(oe, [["__scopeId", "data-v-dfc1ec80"]]); | ||
const ae = (e) => (C("data-v-b6261246"), e = e(), P(), e), ie = { | ||
}), ut = /* @__PURE__ */ y(ae, [["__scopeId", "data-v-dfc1ec80"]]); | ||
const le = (e) => (C("data-v-b6261246"), e = e(), P(), e), ie = { | ||
key: 0, | ||
class: "relative" | ||
}, ue = /* @__PURE__ */ ae(() => /* @__PURE__ */ u("div", { class: "absolute z-1 top-0 left-0 flex flex-col w-full h-full p-2" }, null, -1)), ce = { | ||
}, ue = /* @__PURE__ */ le(() => /* @__PURE__ */ u("div", { class: "absolute z-1 top-0 left-0 flex flex-col w-full h-full p-2" }, null, -1)), ce = { | ||
key: 0, | ||
@@ -158,3 +158,3 @@ class: "jcard-sceleton-title" | ||
class: "pt-3 flex gap-5 text-xs text-cyan infobox" | ||
}, fe = { key: 0 }, _e = { key: 1 }, me = { key: 2 }, pe = { | ||
}, _e = { key: 0 }, fe = { key: 1 }, me = { key: 2 }, pe = { | ||
inheritAttrs: !1, | ||
@@ -225,11 +225,11 @@ customOptions: {} | ||
setup(e) { | ||
const l = e, n = A(), a = y(() => n.order ? `flex-${n.order}` : "flex-col"), { showAuthor: o, showViews: i, showDate: d } = T(l), f = y( | ||
() => o.value || i.value || d.value | ||
const o = e, n = A(), i = h(() => n.order ? `flex-${n.order}` : "flex-col"), { showAuthor: a, showViews: l, showDate: d } = T(o), _ = h( | ||
() => a.value || l.value || d.value | ||
); | ||
return (_, w) => (t(), s("div", p({ class: "jcard-sceleton inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full" }, _.$attrs, { class: r(a) }), [ | ||
return (f, w) => (t(), s("div", p({ class: "jcard-sceleton inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full" }, f.$attrs, { class: r(i) }), [ | ||
e.showThumbnail ? (t(), s("div", ie, [ | ||
ue, | ||
m(_.$slots, "image", {}, void 0, !0) | ||
m(f.$slots, "image", {}, void 0, !0) | ||
])) : c("", !0), | ||
r(f) || e.showTitle ? (t(), s("div", { | ||
r(_) || e.showTitle ? (t(), s("div", { | ||
key: 1, | ||
@@ -240,5 +240,5 @@ style: $(e.detailsStyle), | ||
e.showTitle ? (t(), s("div", ce)) : c("", !0), | ||
r(f) ? (t(), s("div", de, [ | ||
r(o) ? (t(), s("span", fe)) : c("", !0), | ||
r(i) ? (t(), s("span", _e)) : c("", !0), | ||
r(_) ? (t(), s("div", de, [ | ||
r(a) ? (t(), s("span", _e)) : c("", !0), | ||
r(l) ? (t(), s("span", fe)) : c("", !0), | ||
r(d) ? (t(), s("span", me)) : c("", !0) | ||
@@ -249,4 +249,4 @@ ])) : c("", !0) | ||
} | ||
}), ot = /* @__PURE__ */ v(ye, [["__scopeId", "data-v-b6261246"]]), he = {}; | ||
function ge(e, l) { | ||
}), ct = /* @__PURE__ */ y(ye, [["__scopeId", "data-v-b6261246"]]), he = {}; | ||
function ge(e, o) { | ||
return t(), s("span", p({ class: "rounded py-0.5 px-1 flex items-center justify-center" }, e.$attrs), [ | ||
@@ -256,3 +256,3 @@ m(e.$slots, "default") | ||
} | ||
const at = /* @__PURE__ */ v(he, [["render", ge]]), ve = ["src"], be = { | ||
const dt = /* @__PURE__ */ y(he, [["render", ge]]), ve = ["src"], be = { | ||
__name: "JImage", | ||
@@ -267,7 +267,7 @@ props: { | ||
setup(e) { | ||
return (l, n) => (t(), s("img", p({ | ||
return (o, n) => (t(), s("img", p({ | ||
src: e.imageSrc, | ||
alt: "Video Card Placeholder", | ||
class: "w-full" | ||
}, l.$attrs), null, 16, ve)); | ||
}, o.$attrs), null, 16, ve)); | ||
} | ||
@@ -285,8 +285,8 @@ }; | ||
setup(e) { | ||
return (l, n) => (t(), s("div", p({ | ||
return (o, n) => (t(), s("div", p({ | ||
src: "", | ||
class: "jimage-sceleton w-full" | ||
}, l.$attrs), null, 16)); | ||
}, o.$attrs), null, 16)); | ||
} | ||
}, it = /* @__PURE__ */ v($e, [["__scopeId", "data-v-4e30e0b0"]]), ut = { | ||
}, _t = /* @__PURE__ */ y($e, [["__scopeId", "data-v-4e30e0b0"]]), ft = { | ||
__name: "JFooter", | ||
@@ -301,19 +301,19 @@ props: { | ||
setup(e) { | ||
function l(n) { | ||
return n === "label" ? j(xe) : n === "menu" ? j(Je) : j(be); | ||
function o(n) { | ||
return n === "label" ? J(xe) : n === "menu" ? J(ke) : J(be); | ||
} | ||
return (n, a) => (t(), s("div", p(n.$attrs, { class: "j-footer w-full flex flex-wrap gap-4" }), [ | ||
return (n, i) => (t(), s("div", p(n.$attrs, { class: "j-footer w-full flex flex-wrap gap-4" }), [ | ||
m(n.$slots, "default", {}, () => [ | ||
(t(!0), s(x, null, S(e.children, (o) => (t(), g(r(Me), { | ||
key: o.id, | ||
"x-alignment": o.props.xAlignment, | ||
"y-alignment": o.props.yAlignment | ||
(t(!0), s(x, null, S(e.children, (a) => (t(), v(r(ze), { | ||
key: a.id, | ||
"x-alignment": a.props.xAlignment, | ||
"y-alignment": a.props.yAlignment | ||
}, { | ||
default: O(() => [ | ||
(t(!0), s(x, null, S(o.children, (i) => (t(), g(r(ze), { | ||
key: i.id, | ||
columns: i.props.columns | ||
(t(!0), s(x, null, S(a.children, (l) => (t(), v(r(Ae), { | ||
key: l.id, | ||
columns: l.props.columns | ||
}, { | ||
default: O(() => [ | ||
(t(!0), s(x, null, S(i.children, (d) => (t(), g(B(l(d.type)), { | ||
(t(!0), s(x, null, S(l.children, (d) => (t(), v(B(o(d.type)), { | ||
key: d.id, | ||
@@ -346,9 +346,10 @@ data: d.props, | ||
setup(e) { | ||
const l = e, { text: n } = l.data; | ||
return (a, o) => (t(), s("div", p(a.$attrs, { class: "p-4" }), h(r(n)), 17)); | ||
const o = e, { text: n } = o.data; | ||
return (i, a) => (t(), s("div", p(i.$attrs, { class: "p-4" }), g(r(n)), 17)); | ||
} | ||
}, Se = { | ||
}; | ||
const Se = { | ||
key: 0, | ||
class: "mb-6" | ||
}, we = { class: "" }, je = { class: "cursor-pointer" }, Je = { | ||
}, we = { class: "menu-item" }, Je = { class: "cursor-pointer item" }, je = { | ||
__name: "JFooterMenu", | ||
@@ -363,3 +364,3 @@ props: { | ||
}, | ||
menuItems: { | ||
menu: { | ||
type: Array, | ||
@@ -376,12 +377,12 @@ default: [] | ||
setup(e) { | ||
const l = e, { title: n, menuItems: a, orientation: o } = l.data; | ||
return (i, d) => (t(), s("div", p(i.$attrs, { class: "p-4" }), [ | ||
const o = e, { title: n, menu: i, orientation: a } = o.data; | ||
return (l, d) => (t(), s("div", p(l.$attrs, { class: "p-4" }), [ | ||
r(n) ? (t(), s("div", Se, [ | ||
u("h5", null, h(r(n)), 1) | ||
u("h5", null, g(r(n)), 1) | ||
])) : c("", !0), | ||
u("ul", { | ||
class: k(["flex flex-wrap gap-4 text-sm", { "flex-col": r(o) === "vertical" }]) | ||
class: k(["flex flex-wrap gap-4 text-sm", r(a) === "horizontal" ? "flex-row" : "flex-col"]) | ||
}, [ | ||
(t(!0), s(x, null, S(r(a), (f) => (t(), s("li", we, [ | ||
u("a", je, h(f.navigationLabel), 1) | ||
(t(!0), s(x, null, S(r(i).items, (_) => (t(), s("li", we, [ | ||
u("a", Je, g(_.navigationLabel), 1) | ||
]))), 256)) | ||
@@ -391,4 +392,4 @@ ], 2) | ||
} | ||
}; | ||
const ke = {}, qe = { class: "j-footer-sceleton" }, Oe = /* @__PURE__ */ u("div", { class: "card w-full is-loading" }, [ | ||
}, ke = /* @__PURE__ */ y(je, [["__scopeId", "data-v-b5ccdf48"]]); | ||
const qe = {}, Oe = { class: "j-footer-sceleton" }, Ie = /* @__PURE__ */ u("div", { class: "card w-full is-loading" }, [ | ||
/* @__PURE__ */ u("div", { class: "image" }), | ||
@@ -399,9 +400,9 @@ /* @__PURE__ */ u("div", { class: "content" }, [ | ||
]) | ||
], -1), Ie = [ | ||
Oe | ||
], -1), He = [ | ||
Ie | ||
]; | ||
function He(e, l) { | ||
return t(), s("div", qe, Ie); | ||
function Me(e, o) { | ||
return t(), s("div", Oe, He); | ||
} | ||
const ct = /* @__PURE__ */ v(ke, [["render", He]]), Me = { | ||
const mt = /* @__PURE__ */ y(qe, [["render", Me]]), ze = { | ||
__name: "JRow", | ||
@@ -426,21 +427,21 @@ props: { | ||
setup(e) { | ||
const l = e, n = { | ||
const o = e, n = { | ||
left: "justify-start", | ||
right: "justify-end", | ||
center: "justify-center" | ||
}, a = { | ||
}, i = { | ||
top: "items-start", | ||
bottom: "items-end", | ||
center: "items-center" | ||
}, o = y(() => { | ||
const { xAlignment: i, yAlignment: d } = l; | ||
return `${i ? n[i] : ""}${d ? " " + a[d] : ""}`; | ||
}, a = h(() => { | ||
const { xAlignment: l, yAlignment: d } = o; | ||
return `${l ? n[l] : ""}${d ? " " + i[d] : ""}`; | ||
}); | ||
return (i, d) => (t(), s("div", { | ||
class: k(["j-row w-full relative flex flex-wrap", r(o)]) | ||
return (l, d) => (t(), s("div", { | ||
class: k(["j-row w-full relative flex flex-wrap", r(a)]) | ||
}, [ | ||
m(i.$slots, "default") | ||
m(l.$slots, "default") | ||
], 2)); | ||
} | ||
}, ze = { | ||
}, Ae = { | ||
__name: "JCol", | ||
@@ -454,3 +455,3 @@ props: { | ||
setup(e) { | ||
const l = { | ||
const o = { | ||
1: "basis-1/12", | ||
@@ -469,4 +470,4 @@ 2: "basis-2/12", | ||
}; | ||
return (n, a) => (t(), s("div", { | ||
class: k(["j-column flex flex-col", l[e.columns]]) | ||
return (n, i) => (t(), s("div", { | ||
class: k(["j-column flex flex-col", o[e.columns]]) | ||
}, [ | ||
@@ -476,6 +477,6 @@ m(n.$slots, "default") | ||
} | ||
}, Ae = (e, l) => { | ||
const n = e[l]; | ||
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((a, o) => { | ||
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + l))); | ||
}, Te = (e, o) => { | ||
const n = e[o]; | ||
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((i, a) => { | ||
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, new Error("Unknown variable dynamic import: " + o))); | ||
}); | ||
@@ -499,3 +500,3 @@ }, H = { | ||
setup(e) { | ||
const l = { | ||
const o = { | ||
language: "Language", | ||
@@ -506,14 +507,18 @@ notifications: "Notifications", | ||
}; | ||
function n(a) { | ||
return N(() => Ae(/* @__PURE__ */ Object.assign({ "./JHeader.vue": () => Promise.resolve().then(() => Ue), "./JHeaderLanguage.vue": () => import("./JHeaderLanguage.60a80ad9.mjs"), "./JHeaderLogo.vue": () => Promise.resolve().then(() => Le), "./JHeaderMenu.vue": () => Promise.resolve().then(() => Re), "./JHeaderMenuItems.vue": () => Promise.resolve().then(() => Ce), "./JHeaderNotifications.vue": () => import("./JHeaderNotifications.9f5c7f5c.mjs"), "./JHeaderProfile.vue": () => import("./JHeaderProfile.f8b6e209.mjs"), "./JHeaderSceleton.vue": () => Promise.resolve().then(() => tt), "./JHeaderSearch.vue": () => import("./JHeaderSearch.2615ab45.mjs") }), `./JHeader${l[a]}.vue`)); | ||
function n(i) { | ||
return N(() => Te(/* @__PURE__ */ Object.assign({ "./JHeader.vue": () => Promise.resolve().then(() => Xe), "./JHeaderLanguage.vue": () => import("./JHeaderLanguage.60a80ad9.mjs"), "./JHeaderLogo.vue": () => Promise.resolve().then(() => Re), "./JHeaderMenu.vue": () => Promise.resolve().then(() => Ue), "./JHeaderMenuItems.vue": () => Promise.resolve().then(() => De), "./JHeaderNotifications.vue": () => import("./JHeaderNotifications.9f5c7f5c.mjs"), "./JHeaderProfile.vue": () => import("./JHeaderProfile.f8b6e209.mjs"), "./JHeaderSceleton.vue": () => Promise.resolve().then(() => ot), "./JHeaderSearch.vue": () => import("./JHeaderSearch.2615ab45.mjs") }), `./JHeader${o[i]}.vue`)); | ||
} | ||
return (a, o) => (t(), s("div", null, [ | ||
(t(!0), s(x, null, S(e.actions, (i) => (t(), g(B(n(i)), { | ||
key: `action-${i}`, | ||
return (i, a) => (t(), s("div", null, [ | ||
(t(!0), s(x, null, S(e.actions, (l) => (t(), v(B(n(l)), { | ||
key: `action-${l}`, | ||
style: $(e.iconsStyle), | ||
icon: e.settings[i].iconSettings | ||
icon: e.iconsStyle ? { | ||
...e.settings[l].iconSettings, | ||
size: e.iconsStyle.size | ||
} : e.settings[l].iconSettings | ||
}, null, 8, ["style", "icon"]))), 128)) | ||
])); | ||
} | ||
}, Te = ["href"], J = { | ||
}; | ||
const Ce = { class: "menu-item" }, Pe = ["href"], Be = { | ||
__name: "JHeaderMenuItems", | ||
@@ -527,17 +532,17 @@ props: { | ||
setup(e) { | ||
return (l, n) => (t(), s("ul", M(z(l.$attrs)), [ | ||
(t(!0), s(x, null, S(e.menuItems, (a) => (t(), s("li", null, [ | ||
return (o, n) => (t(), s("ul", M(z(o.$attrs)), [ | ||
(t(!0), s(x, null, S(e.menuItems, (i) => (t(), s("li", Ce, [ | ||
u("a", { | ||
class: "cursor-pointer", | ||
href: a.url, | ||
class: "cursor-pointer item", | ||
href: i.url, | ||
target: "_blank" | ||
}, h(a.navigationLabel), 9, Te) | ||
}, g(i.navigationLabel), 9, Pe) | ||
]))), 256)) | ||
], 16)); | ||
} | ||
}, Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
}, j = /* @__PURE__ */ y(Be, [["__scopeId", "data-v-70ca0b02"]]), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
default: J | ||
default: j | ||
}, Symbol.toStringTag, { value: "Module" })); | ||
const Pe = { class: "logo flex" }, Be = { class: "w-full m-auto" }, De = ["src"], D = { | ||
const Le = { class: "logo flex" }, Ne = { class: "w-full m-auto" }, Fe = ["src"], Ve = { | ||
__name: "JHeaderLogo", | ||
@@ -551,4 +556,4 @@ props: { | ||
setup(e) { | ||
return (l, n) => (t(), s("div", Pe, [ | ||
u("a", Be, [ | ||
return (o, n) => (t(), s("div", Le, [ | ||
u("a", Ne, [ | ||
u("img", { | ||
@@ -558,10 +563,10 @@ src: e.imageSrc, | ||
class: "" | ||
}, null, 8, De) | ||
}, null, 8, Fe) | ||
]) | ||
])); | ||
} | ||
}, Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
}, D = /* @__PURE__ */ y(Ve, [["__scopeId", "data-v-21179e41"]]), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
default: D | ||
}, Symbol.toStringTag, { value: "Module" })), Ne = { | ||
}, Symbol.toStringTag, { value: "Module" })), Ee = { | ||
style: { fill: "currentColor" }, | ||
@@ -572,8 +577,8 @@ viewBox: "0,0,24,24", | ||
xmlns: "http://www.w3.org/2000/svg" | ||
}, Fe = /* @__PURE__ */ u("path", { | ||
}, Ze = /* @__PURE__ */ u("path", { | ||
"fill-rule": "evenodd", | ||
"clip-rule": "evenodd", | ||
d: "M20.6 18.2a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6zM20.6 12a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6zM20.6 5.8a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6z" | ||
}, null, -1), Ve = [ | ||
Fe | ||
}, null, -1), Ke = [ | ||
Ze | ||
], L = { | ||
@@ -588,18 +593,18 @@ __name: "JHeaderMenu", | ||
setup(e) { | ||
return (l, n) => (t(), s("div", null, [ | ||
return (o, n) => (t(), s("div", null, [ | ||
u("a", null, [ | ||
(t(), s("svg", Ne, Ve)) | ||
(t(), s("svg", Ee, Ke)) | ||
]) | ||
])); | ||
} | ||
}, Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
}, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
default: L | ||
}, Symbol.toStringTag, { value: "Module" })), Ee = { | ||
}, Symbol.toStringTag, { value: "Module" })), Ge = { | ||
key: 1, | ||
class: "flex-1" | ||
}, Ze = { | ||
}, Qe = { | ||
key: 0, | ||
class: "flex-1" | ||
}, Ke = { | ||
}, We = { | ||
__name: "JHeader", | ||
@@ -633,3 +638,3 @@ props: { | ||
setup(e) { | ||
const l = e, { breakpoint: n, components: a, settings: o } = l, i = y(() => n === "mobile"), d = y(() => n === "desktop"), f = y(() => a.menu), _ = y(() => a.logo), w = y(() => Object.entries(a).filter( | ||
const o = e, { breakpoint: n, components: i, settings: a } = o, l = h(() => n === "mobile"), d = h(() => n === "desktop"), _ = h(() => i.menu), f = h(() => i.logo), w = h(() => Object.entries(i).filter( | ||
([b, q]) => q && b !== "logo" && b !== "menu" | ||
@@ -641,35 +646,35 @@ ).map((b) => b[0])); | ||
u("nav", p({ class: "w-full flex gap-4 justify-between items-center px-6 py-2" }, b.$attrs), [ | ||
r(_) ? (t(), g(D, { | ||
r(f) ? (t(), v(D, { | ||
key: 0, | ||
"image-src": r(o).logo.source | ||
"image-src": r(a).logo.source | ||
}, null, 8, ["image-src"])) : c("", !0), | ||
r(f) && r(d) ? (t(), s("div", Ee, [ | ||
I(J, { | ||
r(_) && r(d) ? (t(), s("div", Ge, [ | ||
I(j, { | ||
class: "flex flex-row items-center gap-6 text-sm", | ||
"menu-items": e.menuItems || r(o).menu.menuItems, | ||
"menu-items": e.menuItems || r(a).menu.menuItems, | ||
style: $(e.menuStyle) | ||
}, null, 8, ["menu-items", "style"]) | ||
])) : c("", !0), | ||
r(i) ? c("", !0) : (t(), g(H, { | ||
r(l) ? c("", !0) : (t(), v(H, { | ||
key: 2, | ||
class: "actions flex ml-auto gap-x-4", | ||
settings: r(o), | ||
settings: r(a), | ||
actions: r(w), | ||
"icons-style": e.iconsStyle | ||
}, null, 8, ["settings", "actions", "icons-style"])), | ||
r(f) && !r(d) ? (t(), g(L, { | ||
r(_) && !r(d) ? (t(), v(L, { | ||
key: 3, | ||
"is-mobile": r(i) | ||
"is-mobile": r(l) | ||
}, null, 8, ["is-mobile"])) : c("", !0) | ||
], 16), | ||
r(f) && !r(d) ? (t(), s("div", Ze, [ | ||
I(J, { | ||
r(_) && !r(d) ? (t(), s("div", Qe, [ | ||
I(j, { | ||
class: "flex flex-col gap-y-7 items-center py-10 px-2 text-sm", | ||
"menu-items": e.menuItems || r(o).menu.menuItems, | ||
"menu-items": e.menuItems || r(a).menu.menuItems, | ||
style: $(e.menuStyle) | ||
}, null, 8, ["menu-items", "style"]), | ||
r(i) && r(w).length ? (t(), g(H, { | ||
r(l) && r(w).length ? (t(), v(H, { | ||
key: 0, | ||
class: "actions py-10 border-t border-gray-500 flex justify-center ml-auto gap-x-4", | ||
settings: r(o), | ||
settings: r(a), | ||
actions: r(w), | ||
@@ -681,34 +686,34 @@ "icons-style": e.iconsStyle | ||
} | ||
}, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
}, Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
default: Ke | ||
default: We | ||
}, Symbol.toStringTag, { value: "Module" })); | ||
const Ge = {}, Qe = { class: "j-footer-sceleton" }, We = /* @__PURE__ */ u("div", { class: "card w-full is-loading" }, [ | ||
const Ye = {}, et = { class: "j-footer-sceleton" }, tt = /* @__PURE__ */ u("div", { class: "card w-full is-loading" }, [ | ||
/* @__PURE__ */ u("div", { class: "image" }) | ||
], -1), Xe = [ | ||
We | ||
], -1), st = [ | ||
tt | ||
]; | ||
function Ye(e, l) { | ||
return t(), s("div", Qe, Xe); | ||
function nt(e, o) { | ||
return t(), s("div", et, st); | ||
} | ||
const et = /* @__PURE__ */ v(Ge, [["render", Ye]]), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
const rt = /* @__PURE__ */ y(Ye, [["render", nt]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ | ||
__proto__: null, | ||
default: et | ||
default: rt | ||
}, Symbol.toStringTag, { value: "Module" })); | ||
export { | ||
at as JBadge, | ||
lt as JCard, | ||
ot as JCardSceleton, | ||
ze as JCol, | ||
ut as JFooter, | ||
dt as JBadge, | ||
ut as JCard, | ||
ct as JCardSceleton, | ||
Ae as JCol, | ||
ft as JFooter, | ||
xe as JFooterLabel, | ||
Je as JFooterMenu, | ||
ct as JFooterSceleton, | ||
Ke as JHeader, | ||
et as JHeaderSceleton, | ||
ke as JFooterMenu, | ||
mt as JFooterSceleton, | ||
We as JHeader, | ||
rt as JHeaderSceleton, | ||
be as JImage, | ||
it as JImageSceleton, | ||
Me as JRow, | ||
rt as MInput, | ||
nt as VButton | ||
_t as JImageSceleton, | ||
ze as JRow, | ||
it as MInput, | ||
lt as VButton | ||
}; |
@@ -1,1 +0,1 @@ | ||
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.MyLib={},a.Vue))})(this,function(a,e){"use strict";const m=(t,n)=>{const o=t.__vccOpts||t;for(const[r,l]of n)o[r]=l;return o},x={};function C(t,n){return e.openBlock(),e.createElementBlock("button",e.normalizeProps(e.guardReactiveProps(t.$attrs)),[e.renderSlot(t.$slots,"default")],16)}const j=m(x,[["render",C]]),N={};function V(t,n){return e.openBlock(),e.createElementBlock("input",e.mergeProps(t.$attrs,{type:"text","aria-label":"Filter projects"}),null,16)}const J=m(N,[["render",V]]),Ze="",z=t=>(e.pushScopeId("data-v-dfc1ec80"),t=t(),e.popScopeId(),t),O={key:0,class:"relative max-w-[230px]"},M={class:"absolute z-1 top-0 left-0 flex flex-col w-full h-full p-2"},P={class:"flex"},q={class:"flex ml-auto absolute right-0"},H={key:0,class:"py-0.5 px-1 rounded text-white bg-black/50 mx-1"},I=z(()=>e.createElementVNode("div",{class:"flex w-full mt-auto"},null,-1)),T={class:"flex"},A={class:"flex ml-auto"},F={key:1,class:"pt-3 flex gap-5 text-xs text-cyan infobox"},L={key:0},D={key:1},R={key:2},Z=m(Object.assign({inheritAttrs:!1,customOptions:{}},{__name:"JCard",props:{titleStyle:{type:Object,required:!1},showTitle:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"Zm\u011Bny v programu dopravy vzork\u016F z Marsu"},showAuthor:{type:Boolean,required:!1,default:!1},author:{type:String,required:!1,default:"Mendim Arifaj"},showViews:{type:Boolean,required:!1,default:!1},views:{type:String,required:!1,default:"100K views"},showDate:{type:Boolean,required:!1,default:!1},date:{type:String,required:!1,default:"28/02/1996"},showTimeDuration:{type:Boolean,required:!1,default:!1},timeDuration:{type:String,required:!1,default:"03:11"},showThumbnail:{type:Boolean,required:!1,default:!1},detailsStyle:{type:Object,required:!1}},setup(t){const n=t,o=e.useAttrs(),r=e.computed(()=>o.order?`flex-${o.order}`:"flex-col"),{showAuthor:l,showViews:s,showDate:c}=e.toRefs(n),i=e.computed(()=>l.value||s.value||c.value);return(d,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full"},d.$attrs,{class:e.unref(r)}),[t.showThumbnail?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",M,[e.createElementVNode("div",P,[e.renderSlot(d.$slots,"top_left",{},void 0,!0),e.createElementVNode("div",q,[e.renderSlot(d.$slots,"top_right",{},void 0,!0),t.showTimeDuration?(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(t.timeDuration),1)):e.createCommentVNode("",!0)])]),I,e.createElementVNode("div",T,[e.renderSlot(d.$slots,"bottom_left",{class:"flex"},void 0,!0),e.createElementVNode("div",A,[e.renderSlot(d.$slots,"bottom_right",{},void 0,!0)])])]),e.renderSlot(d.$slots,"image",{},void 0,!0)])):e.createCommentVNode("",!0),e.unref(i)||t.showTitle?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(t.detailsStyle),class:"p-1 box-border"},[t.showTitle?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(t.titleStyle)},e.toDisplayString(t.title),5)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("div",F,[e.unref(l)?(e.openBlock(),e.createElementBlock("span",L,e.toDisplayString(t.author),1)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(t.views),1)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("span",R,e.toDisplayString(t.date),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],16))}}),[["__scopeId","data-v-dfc1ec80"]]),Ge="",K=t=>(e.pushScopeId("data-v-b6261246"),t=t(),e.popScopeId(),t),U={key:0,class:"relative"},G=K(()=>e.createElementVNode("div",{class:"absolute z-1 top-0 left-0 flex flex-col w-full h-full p-2"},null,-1)),Q={key:0,class:"jcard-sceleton-title"},W={key:1,class:"pt-3 flex gap-5 text-xs text-cyan infobox"},X={key:0},Y={key:1},v={key:2},ee=m(Object.assign({inheritAttrs:!1,customOptions:{}},{__name:"JCardSceleton",props:{titleStyle:{type:Object,required:!1},showTitle:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"Zm\u011Bny v programu dopravy vzork\u016F z Marsu"},showAuthor:{type:Boolean,required:!1,default:!1},author:{type:String,required:!1,default:"Mendim Arifaj"},showViews:{type:Boolean,required:!1,default:!1},views:{type:String,required:!1,default:"100K views"},showDate:{type:Boolean,required:!1,default:!1},date:{type:String,required:!1,default:"28/02/1996"},showTimeDuration:{type:Boolean,required:!1,default:!1},showThumbnail:{type:Boolean,required:!1,default:!1},detailsStyle:{type:Object,required:!1}},setup(t){const n=t,o=e.useAttrs(),r=e.computed(()=>o.order?`flex-${o.order}`:"flex-col"),{showAuthor:l,showViews:s,showDate:c}=e.toRefs(n),i=e.computed(()=>l.value||s.value||c.value);return(d,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"jcard-sceleton inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full"},d.$attrs,{class:e.unref(r)}),[t.showThumbnail?(e.openBlock(),e.createElementBlock("div",U,[G,e.renderSlot(d.$slots,"image",{},void 0,!0)])):e.createCommentVNode("",!0),e.unref(i)||t.showTitle?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(t.detailsStyle),class:"p-1 box-border"},[t.showTitle?(e.openBlock(),e.createElementBlock("div",Q)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("div",W,[e.unref(l)?(e.openBlock(),e.createElementBlock("span",X)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createElementBlock("span",Y)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("span",v)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],16))}}),[["__scopeId","data-v-b6261246"]]),te={};function oe(t,n){return e.openBlock(),e.createElementBlock("span",e.mergeProps({class:"rounded py-0.5 px-1 flex items-center justify-center"},t.$attrs),[e.renderSlot(t.$slots,"default")],16)}const ne=m(te,[["render",oe]]),le=["src"],u={__name:"JImage",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("img",e.mergeProps({src:t.imageSrc,alt:"Video Card Placeholder",class:"w-full"},n.$attrs),null,16,le))}},Xe="",re=m({__name:"JImageSceleton",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({src:"",class:"jimage-sceleton w-full"},n.$attrs),null,16))}},[["__scopeId","data-v-4e30e0b0"]]),se={__name:"JFooter",props:{children:{type:Array,required:!0,default:[]}},setup(t){function n(o){return o==="label"?e.markRaw(h):o==="menu"?e.markRaw(y):e.markRaw(u)}return(o,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(o.$attrs,{class:"j-footer w-full flex flex-wrap gap-4"}),[e.renderSlot(o.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,l=>(e.openBlock(),e.createBlock(e.unref(g),{key:l.id,"x-alignment":l.props.xAlignment,"y-alignment":l.props.yAlignment},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.children,s=>(e.openBlock(),e.createBlock(e.unref(k),{key:s.id,columns:s.props.columns},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.children,c=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n(c.type)),{key:c.id,data:c.props,style:e.normalizeStyle(c.style)},null,8,["data","style"]))),128))]),_:2},1032,["columns"]))),128))]),_:2},1032,["x-alignment","y-alignment"]))),128))])],16))}},h={__name:"JFooterLabel",props:{data:{type:Object,default:{text:{type:String,default:""}}}},setup(t){const n=t,{text:o}=n.data;return(r,l)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(r.$attrs,{class:"p-4"}),e.toDisplayString(e.unref(o)),17))}},ae={key:0,class:"mb-6"},ce={class:""},ie={class:"cursor-pointer"},y={__name:"JFooterMenu",props:{data:{type:Object,default:{title:{type:String,default:""},menuItems:{type:Array,default:[]},orientation:{type:String,default:"vertical"}}}},setup(t){const n=t,{title:o,menuItems:r,orientation:l}=n.data;return(s,c)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(s.$attrs,{class:"p-4"}),[e.unref(o)?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("h5",null,e.toDisplayString(e.unref(o)),1)])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass(["flex flex-wrap gap-4 text-sm",{"flex-col":e.unref(l)==="vertical"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),i=>(e.openBlock(),e.createElementBlock("li",ce,[e.createElementVNode("a",ie,e.toDisplayString(i.navigationLabel),1)]))),256))],2)],16))}},ve="",de={},me={class:"j-footer-sceleton"},fe=[e.createElementVNode("div",{class:"card w-full is-loading"},[e.createElementVNode("div",{class:"image"}),e.createElementVNode("div",{class:"content"},[e.createElementVNode("h2"),e.createElementVNode("p")])],-1)];function _e(t,n){return e.openBlock(),e.createElementBlock("div",me,fe)}const pe=m(de,[["render",_e]]),g={__name:"JRow",props:{alignment:{type:Object,default:{horizontal:null,vertical:null}},xAlignment:{type:[String,null],default:null},yAlignment:{type:[String,null],default:null}},setup(t){const n=t,o={left:"justify-start",right:"justify-end",center:"justify-center"},r={top:"items-start",bottom:"items-end",center:"items-center"},l=e.computed(()=>{const{xAlignment:s,yAlignment:c}=n;return`${s?o[s]:""}${c?" "+r[c]:""}`});return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["j-row w-full relative flex flex-wrap",e.unref(l)])},[e.renderSlot(s.$slots,"default")],2))}},k={__name:"JCol",props:{columns:{type:[String,Number],default:null}},setup(t){const n={1:"basis-1/12",2:"basis-2/12",3:"basis-3/12",4:"basis-4/12",5:"basis-5/12",6:"basis-6/12",7:"basis-7/12",8:"basis-8/12",9:"basis-9/12",10:"basis-10/12",11:"basis-11/12",12:"basis-full"};return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["j-column flex flex-col",n[t.columns]])},[e.renderSlot(o.$slots,"default")],2))}},ue=(t,n)=>{const o=t[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((r,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n)))})},B={__name:"JHeaderActions",props:{settings:{type:Object,required:!0},actions:{type:Array,required:!0},iconsStyle:{type:Object,required:!0}},setup(t){const n={language:"Language",notifications:"Notifications",profile:"Profile",search:"Search"};function o(r){return e.defineAsyncComponent(()=>ue(Object.assign({"./JHeader.vue":()=>Promise.resolve().then(()=>Ce),"./JHeaderLanguage.vue":()=>Promise.resolve().then(()=>Pe),"./JHeaderLogo.vue":()=>Promise.resolve().then(()=>be),"./JHeaderMenu.vue":()=>Promise.resolve().then(()=>we),"./JHeaderMenuItems.vue":()=>Promise.resolve().then(()=>ye),"./JHeaderNotifications.vue":()=>Promise.resolve().then(()=>Ie),"./JHeaderProfile.vue":()=>Promise.resolve().then(()=>Fe),"./JHeaderSceleton.vue":()=>Promise.resolve().then(()=>ze),"./JHeaderSearch.vue":()=>Promise.resolve().then(()=>Re)}),`./JHeader${n[r]}.vue`))}return(r,l)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,s=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(s)),{key:`action-${s}`,style:e.normalizeStyle(t.iconsStyle),icon:t.settings[s].iconSettings},null,8,["style","icon"]))),128))]))}},he=["href"],p={__name:"JHeaderMenuItems",props:{menuItems:{type:Array,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("ul",e.normalizeProps(e.guardReactiveProps(n.$attrs)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuItems,r=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("a",{class:"cursor-pointer",href:r.url,target:"_blank"},e.toDisplayString(r.navigationLabel),9,he)]))),256))],16))}},ye=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"})),tt="",ge={class:"logo flex"},ke={class:"w-full m-auto"},Be=["src"],b={__name:"JHeaderLogo",props:{imageSrc:{type:String,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("a",ke,[e.createElementVNode("img",{src:t.imageSrc,alt:"logo",class:""},null,8,Be)])]))}},be=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),Se={style:{fill:"currentColor"},viewBox:"0,0,24,24",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg"},$e=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.6 18.2a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6zM20.6 12a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6zM20.6 5.8a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6z"},null,-1)],S={__name:"JHeaderMenu",props:{isMobile:{type:Boolean,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("a",null,[(e.openBlock(),e.createElementBlock("svg",Se,$e))])]))}},we=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),Ee={key:1,class:"flex-1"},xe={key:0,class:"flex-1"},$={__name:"JHeader",props:{menuItems:{type:Array,default:null},settings:{type:Object,required:!0},components:{type:Object,required:!0},breakpoint:{type:String,required:!0},menuStyle:{type:Object,required:!0},iconsStyle:{type:Object,required:!0}},setup(t){const n=t,{breakpoint:o,components:r,settings:l}=n,s=e.computed(()=>o==="mobile"),c=e.computed(()=>o==="desktop"),i=e.computed(()=>r.menu),d=e.computed(()=>r.logo),_=e.computed(()=>Object.entries(r).filter(([f,E])=>E&&f!=="logo"&&f!=="menu").map(f=>f[0]));return(f,E)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(f.$attrs,{key:`header-${e.unref(o)}`}),[e.createElementVNode("nav",e.mergeProps({class:"w-full flex gap-4 justify-between items-center px-6 py-2"},f.$attrs),[e.unref(d)?(e.openBlock(),e.createBlock(b,{key:0,"image-src":e.unref(l).logo.source},null,8,["image-src"])):e.createCommentVNode("",!0),e.unref(i)&&e.unref(c)?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(p,{class:"flex flex-row items-center gap-6 text-sm","menu-items":t.menuItems||e.unref(l).menu.menuItems,style:e.normalizeStyle(t.menuStyle)},null,8,["menu-items","style"])])):e.createCommentVNode("",!0),e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(B,{key:2,class:"actions flex ml-auto gap-x-4",settings:e.unref(l),actions:e.unref(_),"icons-style":t.iconsStyle},null,8,["settings","actions","icons-style"])),e.unref(i)&&!e.unref(c)?(e.openBlock(),e.createBlock(S,{key:3,"is-mobile":e.unref(s)},null,8,["is-mobile"])):e.createCommentVNode("",!0)],16),e.unref(i)&&!e.unref(c)?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(p,{class:"flex flex-col gap-y-7 items-center py-10 px-2 text-sm","menu-items":t.menuItems||e.unref(l).menu.menuItems,style:e.normalizeStyle(t.menuStyle)},null,8,["menu-items","style"]),e.unref(s)&&e.unref(_).length?(e.openBlock(),e.createBlock(B,{key:0,class:"actions py-10 border-t border-gray-500 flex justify-center ml-auto gap-x-4",settings:e.unref(l),actions:e.unref(_),"icons-style":t.iconsStyle},null,8,["settings","actions","icons-style"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16))}},Ce=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),nt="",je={},Ne={class:"j-footer-sceleton"},Ve=[e.createElementVNode("div",{class:"card w-full is-loading"},[e.createElementVNode("div",{class:"image"})],-1)];function Je(t,n){return e.openBlock(),e.createElementBlock("div",Ne,Ve)}const w=m(je,[["render",Je]]),ze=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),Oe=["width","height"],Me=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.383 12.505l.199-.199a14.88 14.88 0 003.147-5.541l.054-.176h1.85a.616.616 0 100-1.232h-5.43V4.244a.614.614 0 10-1.228 0v1.113H3.54a.61.61 0 100 1.219h9.14l-.116.332a13.892 13.892 0 01-2.788 4.714l-.186.207-.186-.207a13.905 13.905 0 01-1.796-2.506.581.581 0 00-.503-.304c-.409 0-.646.41-.466.735a15.082 15.082 0 001.988 2.786l.16.177-3.945 3.898a.612.612 0 10.862.868L9.59 13.39l1.926 1.926a.602.602 0 10.848-.854l-1.98-1.957zM14.706 17.812h4.448l.836 2.228a.559.559 0 101.046-.392l-3.173-8.463a.996.996 0 00-1.866 0l-3.173 8.463a.559.559 0 101.046.392l.836-2.228zm.46-1.228l1.764-4.706 1.764 4.706h-3.528z"},null,-1)],Pe=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderLanguage",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{style:{fill:"currentColor"},viewBox:"0,0,24,24",width:t.icon.size,height:t.icon.size,xmlns:"http://www.w3.org/2000/svg"},Me,8,Oe))}}},Symbol.toStringTag,{value:"Module"})),qe=["width","height"],He=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.867 5.6a3.587 3.587 0 00-3.584 3.455l-.083 2.24a7.885 7.885 0 01-1.926 4.862c1.267.104 3.391.243 5.726.243 2.334 0 4.397-.139 5.617-.243a8.509 8.509 0 01-1.944-4.677l-.233-2.612A3.587 3.587 0 0011.867 5.6zM7.083 9.01a4.787 4.787 0 019.552-.249l.233 2.613a7.312 7.312 0 001.812 4.179c.558.629.22 1.694-.69 1.776A68.766 68.766 0 0112 17.6c-2.61 0-4.957-.17-6.176-.277-.89-.078-1.224-1.133-.65-1.74a6.688 6.688 0 001.827-4.332l.082-2.24zM14.6 19a.6.6 0 01-.6.6h-4a.6.6 0 110-1.2h4a.6.6 0 01.6.6z"},null,-1)],Ie=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderNotifications",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{style:{fill:"currentColor"},viewBox:"0,0,24,24",width:t.icon.size,height:t.icon.size,xmlns:"http://www.w3.org/2000/svg"},He,8,qe))}}},Symbol.toStringTag,{value:"Module"})),Te=["width","height"],Ae=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 4.6c-1.848 0-3.3 1.427-3.3 3.133s1.452 3.133 3.3 3.133c1.848 0 3.3-1.427 3.3-3.133S13.848 4.6 12 4.6zM7.5 7.733C7.5 5.315 9.54 3.4 12 3.4s4.5 1.915 4.5 4.333-2.04 4.333-4.5 4.333-4.5-1.915-4.5-4.333zm1.9 6.999c-1.847 0-3.3 1.427-3.3 3.135V18a1.4 1.4 0 001.4 1.4h9a1.4 1.4 0 001.4-1.4v-.133c0-1.708-1.453-3.135-3.3-3.135H9.4zm-4.5 3.135c0-2.419 2.04-4.335 4.5-4.335h5.2c2.46 0 4.5 1.916 4.5 4.335V18a2.6 2.6 0 01-2.6 2.6h-9A2.6 2.6 0 014.9 18v-.133z"},null,-1)],Fe=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderProfile",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{style:{fill:"currentColor"},viewBox:"0,0,24,24",width:t.icon.size,height:t.icon.size,xmlns:"http://www.w3.org/2000/svg"},Ae,8,Te))}}},Symbol.toStringTag,{value:"Module"})),Le=["width","height"],De=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3911 15.4518C13.1902 16.4202 11.6628 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 11.6628 16.4202 13.1902 15.4518 14.3911L20.5303 19.4697C20.8232 19.7626 20.8232 20.2374 20.5303 20.5303C20.2374 20.8232 19.7626 20.8232 19.4697 20.5303L14.3911 15.4518ZM15.5 10C15.5 13.0376 13.0376 15.5 10 15.5C6.96243 15.5 4.5 13.0376 4.5 10C4.5 6.96243 6.96243 4.5 10 4.5C13.0376 4.5 15.5 6.96243 15.5 10Z",fill:"currentColor"},null,-1)],Re=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderSearch",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.icon.size,height:t.icon.size,viewBox:"0 0 24 24",fill:"none"},De,8,Le))}}},Symbol.toStringTag,{value:"Module"}));a.JBadge=ne,a.JCard=Z,a.JCardSceleton=ee,a.JCol=k,a.JFooter=se,a.JFooterLabel=h,a.JFooterMenu=y,a.JFooterSceleton=pe,a.JHeader=$,a.JHeaderSceleton=w,a.JImage=u,a.JImageSceleton=re,a.JRow=g,a.MInput=J,a.VButton=j,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.MyLib={},a.Vue))})(this,function(a,e){"use strict";const i=(t,n)=>{const o=t.__vccOpts||t;for(const[s,l]of n)o[s]=l;return o},x={};function J(t,n){return e.openBlock(),e.createElementBlock("button",e.normalizeProps(e.guardReactiveProps(t.$attrs)),[e.renderSlot(t.$slots,"default")],16)}const C=i(x,[["render",J]]),j={};function z(t,n){return e.openBlock(),e.createElementBlock("input",e.mergeProps(t.$attrs,{type:"text","aria-label":"Filter projects"}),null,16)}const N=i(j,[["render",z]]),Ke="",V=t=>(e.pushScopeId("data-v-dfc1ec80"),t=t(),e.popScopeId(),t),O={key:0,class:"relative max-w-[230px]"},M={class:"absolute z-1 top-0 left-0 flex flex-col w-full h-full p-2"},P={class:"flex"},H={class:"flex ml-auto absolute right-0"},q={key:0,class:"py-0.5 px-1 rounded text-white bg-black/50 mx-1"},I=V(()=>e.createElementVNode("div",{class:"flex w-full mt-auto"},null,-1)),T={class:"flex"},F={class:"flex ml-auto"},A={key:1,class:"pt-3 flex gap-5 text-xs text-cyan infobox"},L={key:0},D={key:1},R={key:2},Z=i(Object.assign({inheritAttrs:!1,customOptions:{}},{__name:"JCard",props:{titleStyle:{type:Object,required:!1},showTitle:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"Zm\u011Bny v programu dopravy vzork\u016F z Marsu"},showAuthor:{type:Boolean,required:!1,default:!1},author:{type:String,required:!1,default:"Mendim Arifaj"},showViews:{type:Boolean,required:!1,default:!1},views:{type:String,required:!1,default:"100K views"},showDate:{type:Boolean,required:!1,default:!1},date:{type:String,required:!1,default:"28/02/1996"},showTimeDuration:{type:Boolean,required:!1,default:!1},timeDuration:{type:String,required:!1,default:"03:11"},showThumbnail:{type:Boolean,required:!1,default:!1},detailsStyle:{type:Object,required:!1}},setup(t){const n=t,o=e.useAttrs(),s=e.computed(()=>o.order?`flex-${o.order}`:"flex-col"),{showAuthor:l,showViews:r,showDate:c}=e.toRefs(n),d=e.computed(()=>l.value||r.value||c.value);return(m,f)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full"},m.$attrs,{class:e.unref(s)}),[t.showThumbnail?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",M,[e.createElementVNode("div",P,[e.renderSlot(m.$slots,"top_left",{},void 0,!0),e.createElementVNode("div",H,[e.renderSlot(m.$slots,"top_right",{},void 0,!0),t.showTimeDuration?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(t.timeDuration),1)):e.createCommentVNode("",!0)])]),I,e.createElementVNode("div",T,[e.renderSlot(m.$slots,"bottom_left",{class:"flex"},void 0,!0),e.createElementVNode("div",F,[e.renderSlot(m.$slots,"bottom_right",{},void 0,!0)])])]),e.renderSlot(m.$slots,"image",{},void 0,!0)])):e.createCommentVNode("",!0),e.unref(d)||t.showTitle?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(t.detailsStyle),class:"p-1 box-border"},[t.showTitle?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(t.titleStyle)},e.toDisplayString(t.title),5)):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",A,[e.unref(l)?(e.openBlock(),e.createElementBlock("span",L,e.toDisplayString(t.author),1)):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(t.views),1)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("span",R,e.toDisplayString(t.date),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],16))}}),[["__scopeId","data-v-dfc1ec80"]]),Qe="",K=t=>(e.pushScopeId("data-v-b6261246"),t=t(),e.popScopeId(),t),U={key:0,class:"relative"},G=K(()=>e.createElementVNode("div",{class:"absolute z-1 top-0 left-0 flex flex-col w-full h-full p-2"},null,-1)),Q={key:0,class:"jcard-sceleton-title"},W={key:1,class:"pt-3 flex gap-5 text-xs text-cyan infobox"},X={key:0},Y={key:1},v={key:2},ee=i(Object.assign({inheritAttrs:!1,customOptions:{}},{__name:"JCardSceleton",props:{titleStyle:{type:Object,required:!1},showTitle:{type:Boolean,required:!1,default:!1},title:{type:String,required:!1,default:"Zm\u011Bny v programu dopravy vzork\u016F z Marsu"},showAuthor:{type:Boolean,required:!1,default:!1},author:{type:String,required:!1,default:"Mendim Arifaj"},showViews:{type:Boolean,required:!1,default:!1},views:{type:String,required:!1,default:"100K views"},showDate:{type:Boolean,required:!1,default:!1},date:{type:String,required:!1,default:"28/02/1996"},showTimeDuration:{type:Boolean,required:!1,default:!1},showThumbnail:{type:Boolean,required:!1,default:!1},detailsStyle:{type:Object,required:!1}},setup(t){const n=t,o=e.useAttrs(),s=e.computed(()=>o.order?`flex-${o.order}`:"flex-col"),{showAuthor:l,showViews:r,showDate:c}=e.toRefs(n),d=e.computed(()=>l.value||r.value||c.value);return(m,f)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"jcard-sceleton inline-flex gap-3 border border-dashed border-gray-600 rounded p-4 w-full"},m.$attrs,{class:e.unref(s)}),[t.showThumbnail?(e.openBlock(),e.createElementBlock("div",U,[G,e.renderSlot(m.$slots,"image",{},void 0,!0)])):e.createCommentVNode("",!0),e.unref(d)||t.showTitle?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(t.detailsStyle),class:"p-1 box-border"},[t.showTitle?(e.openBlock(),e.createElementBlock("div",Q)):e.createCommentVNode("",!0),e.unref(d)?(e.openBlock(),e.createElementBlock("div",W,[e.unref(l)?(e.openBlock(),e.createElementBlock("span",X)):e.createCommentVNode("",!0),e.unref(r)?(e.openBlock(),e.createElementBlock("span",Y)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("span",v)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],16))}}),[["__scopeId","data-v-b6261246"]]),te={};function oe(t,n){return e.openBlock(),e.createElementBlock("span",e.mergeProps({class:"rounded py-0.5 px-1 flex items-center justify-center"},t.$attrs),[e.renderSlot(t.$slots,"default")],16)}const ne=i(te,[["render",oe]]),le=["src"],u={__name:"JImage",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("img",e.mergeProps({src:t.imageSrc,alt:"Video Card Placeholder",class:"w-full"},n.$attrs),null,16,le))}},Ye="",re=i({__name:"JImageSceleton",props:{imageSrc:{type:String,required:!1,default:"https://ub1doy938d.gjirafa.net/media/zxgzzz/thumbnails/standart.jpg"}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({src:"",class:"jimage-sceleton w-full"},n.$attrs),null,16))}},[["__scopeId","data-v-4e30e0b0"]]),se={__name:"JFooter",props:{children:{type:Array,required:!0,default:[]}},setup(t){function n(o){return o==="label"?e.markRaw(h):o==="menu"?e.markRaw(y):e.markRaw(u)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(o.$attrs,{class:"j-footer w-full flex flex-wrap gap-4"}),[e.renderSlot(o.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,l=>(e.openBlock(),e.createBlock(e.unref(g),{key:l.id,"x-alignment":l.props.xAlignment,"y-alignment":l.props.yAlignment},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.children,r=>(e.openBlock(),e.createBlock(e.unref(k),{key:r.id,columns:r.props.columns},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.children,c=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n(c.type)),{key:c.id,data:c.props,style:e.normalizeStyle(c.style)},null,8,["data","style"]))),128))]),_:2},1032,["columns"]))),128))]),_:2},1032,["x-alignment","y-alignment"]))),128))])],16))}},h={__name:"JFooterLabel",props:{data:{type:Object,default:{text:{type:String,default:""}}}},setup(t){const n=t,{text:o}=n.data;return(s,l)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(s.$attrs,{class:"p-4"}),e.toDisplayString(e.unref(o)),17))}},et="",ae={key:0,class:"mb-6"},ce={class:"menu-item"},ie={class:"cursor-pointer item"},y=i({__name:"JFooterMenu",props:{data:{type:Object,default:{title:{type:String,default:""},menu:{type:Array,default:[]},orientation:{type:String,default:"vertical"}}}},setup(t){const n=t,{title:o,menu:s,orientation:l}=n.data;return(r,c)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(r.$attrs,{class:"p-4"}),[e.unref(o)?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("h5",null,e.toDisplayString(e.unref(o)),1)])):e.createCommentVNode("",!0),e.createElementVNode("ul",{class:e.normalizeClass(["flex flex-wrap gap-4 text-sm",e.unref(l)==="horizontal"?"flex-row":"flex-col"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).items,d=>(e.openBlock(),e.createElementBlock("li",ce,[e.createElementVNode("a",ie,e.toDisplayString(d.navigationLabel),1)]))),256))],2)],16))}},[["__scopeId","data-v-b5ccdf48"]]),ot="",de={},me={class:"j-footer-sceleton"},_e=[e.createElementVNode("div",{class:"card w-full is-loading"},[e.createElementVNode("div",{class:"image"}),e.createElementVNode("div",{class:"content"},[e.createElementVNode("h2"),e.createElementVNode("p")])],-1)];function fe(t,n){return e.openBlock(),e.createElementBlock("div",me,_e)}const pe=i(de,[["render",fe]]),g={__name:"JRow",props:{alignment:{type:Object,default:{horizontal:null,vertical:null}},xAlignment:{type:[String,null],default:null},yAlignment:{type:[String,null],default:null}},setup(t){const n=t,o={left:"justify-start",right:"justify-end",center:"justify-center"},s={top:"items-start",bottom:"items-end",center:"items-center"},l=e.computed(()=>{const{xAlignment:r,yAlignment:c}=n;return`${r?o[r]:""}${c?" "+s[c]:""}`});return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["j-row w-full relative flex flex-wrap",e.unref(l)])},[e.renderSlot(r.$slots,"default")],2))}},k={__name:"JCol",props:{columns:{type:[String,Number],default:null}},setup(t){const n={1:"basis-1/12",2:"basis-2/12",3:"basis-3/12",4:"basis-4/12",5:"basis-5/12",6:"basis-6/12",7:"basis-7/12",8:"basis-8/12",9:"basis-9/12",10:"basis-10/12",11:"basis-11/12",12:"basis-full"};return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["j-column flex flex-col",n[t.columns]])},[e.renderSlot(o.$slots,"default")],2))}},ue=(t,n)=>{const o=t[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((s,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n)))})},B={__name:"JHeaderActions",props:{settings:{type:Object,required:!0},actions:{type:Array,required:!0},iconsStyle:{type:Object,required:!0}},setup(t){const n={language:"Language",notifications:"Notifications",profile:"Profile",search:"Search"};function o(s){return e.defineAsyncComponent(()=>ue(Object.assign({"./JHeader.vue":()=>Promise.resolve().then(()=>Ce),"./JHeaderLanguage.vue":()=>Promise.resolve().then(()=>He),"./JHeaderLogo.vue":()=>Promise.resolve().then(()=>Se),"./JHeaderMenu.vue":()=>Promise.resolve().then(()=>Ee),"./JHeaderMenuItems.vue":()=>Promise.resolve().then(()=>ge),"./JHeaderNotifications.vue":()=>Promise.resolve().then(()=>Te),"./JHeaderProfile.vue":()=>Promise.resolve().then(()=>Le),"./JHeaderSceleton.vue":()=>Promise.resolve().then(()=>Oe),"./JHeaderSearch.vue":()=>Promise.resolve().then(()=>Ze)}),`./JHeader${n[s]}.vue`))}return(s,l)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,r=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(r)),{key:`action-${r}`,style:e.normalizeStyle(t.iconsStyle),icon:t.iconsStyle?{...t.settings[r].iconSettings,size:t.iconsStyle.size}:t.settings[r].iconSettings},null,8,["style","icon"]))),128))]))}},lt="",he={class:"menu-item"},ye=["href"],p=i({__name:"JHeaderMenuItems",props:{menuItems:{type:Array,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("ul",e.normalizeProps(e.guardReactiveProps(n.$attrs)),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuItems,s=>(e.openBlock(),e.createElementBlock("li",he,[e.createElementVNode("a",{class:"cursor-pointer item",href:s.url,target:"_blank"},e.toDisplayString(s.navigationLabel),9,ye)]))),256))],16))}},[["__scopeId","data-v-70ca0b02"]]),ge=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"})),st="",ke={class:"logo flex"},Be={class:"w-full m-auto"},be=["src"],b=i({__name:"JHeaderLogo",props:{imageSrc:{type:String,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("a",Be,[e.createElementVNode("img",{src:t.imageSrc,alt:"logo",class:""},null,8,be)])]))}},[["__scopeId","data-v-21179e41"]]),Se=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),$e={style:{fill:"currentColor"},viewBox:"0,0,24,24",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg"},we=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.6 18.2a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6zM20.6 12a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6zM20.6 5.8a.6.6 0 01-.6.6H4a.6.6 0 110-1.2h16a.6.6 0 01.6.6z"},null,-1)],S={__name:"JHeaderMenu",props:{isMobile:{type:Boolean,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("a",null,[(e.openBlock(),e.createElementBlock("svg",$e,we))])]))}},Ee=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),xe={key:1,class:"flex-1"},Je={key:0,class:"flex-1"},$={__name:"JHeader",props:{menuItems:{type:Array,default:null},settings:{type:Object,required:!0},components:{type:Object,required:!0},breakpoint:{type:String,required:!0},menuStyle:{type:Object,required:!0},iconsStyle:{type:Object,required:!0}},setup(t){const n=t,{breakpoint:o,components:s,settings:l}=n,r=e.computed(()=>o==="mobile"),c=e.computed(()=>o==="desktop"),d=e.computed(()=>s.menu),m=e.computed(()=>s.logo),f=e.computed(()=>Object.entries(s).filter(([_,E])=>E&&_!=="logo"&&_!=="menu").map(_=>_[0]));return(_,E)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(_.$attrs,{key:`header-${e.unref(o)}`}),[e.createElementVNode("nav",e.mergeProps({class:"w-full flex gap-4 justify-between items-center px-6 py-2"},_.$attrs),[e.unref(m)?(e.openBlock(),e.createBlock(b,{key:0,"image-src":e.unref(l).logo.source},null,8,["image-src"])):e.createCommentVNode("",!0),e.unref(d)&&e.unref(c)?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(p,{class:"flex flex-row items-center gap-6 text-sm","menu-items":t.menuItems||e.unref(l).menu.menuItems,style:e.normalizeStyle(t.menuStyle)},null,8,["menu-items","style"])])):e.createCommentVNode("",!0),e.unref(r)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(B,{key:2,class:"actions flex ml-auto gap-x-4",settings:e.unref(l),actions:e.unref(f),"icons-style":t.iconsStyle},null,8,["settings","actions","icons-style"])),e.unref(d)&&!e.unref(c)?(e.openBlock(),e.createBlock(S,{key:3,"is-mobile":e.unref(r)},null,8,["is-mobile"])):e.createCommentVNode("",!0)],16),e.unref(d)&&!e.unref(c)?(e.openBlock(),e.createElementBlock("div",Je,[e.createVNode(p,{class:"flex flex-col gap-y-7 items-center py-10 px-2 text-sm","menu-items":t.menuItems||e.unref(l).menu.menuItems,style:e.normalizeStyle(t.menuStyle)},null,8,["menu-items","style"]),e.unref(r)&&e.unref(f).length?(e.openBlock(),e.createBlock(B,{key:0,class:"actions py-10 border-t border-gray-500 flex justify-center ml-auto gap-x-4",settings:e.unref(l),actions:e.unref(f),"icons-style":t.iconsStyle},null,8,["settings","actions","icons-style"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],16))}},Ce=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),it="",je={},ze={class:"j-footer-sceleton"},Ne=[e.createElementVNode("div",{class:"card w-full is-loading"},[e.createElementVNode("div",{class:"image"})],-1)];function Ve(t,n){return e.openBlock(),e.createElementBlock("div",ze,Ne)}const w=i(je,[["render",Ve]]),Oe=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),Me=["width","height"],Pe=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.383 12.505l.199-.199a14.88 14.88 0 003.147-5.541l.054-.176h1.85a.616.616 0 100-1.232h-5.43V4.244a.614.614 0 10-1.228 0v1.113H3.54a.61.61 0 100 1.219h9.14l-.116.332a13.892 13.892 0 01-2.788 4.714l-.186.207-.186-.207a13.905 13.905 0 01-1.796-2.506.581.581 0 00-.503-.304c-.409 0-.646.41-.466.735a15.082 15.082 0 001.988 2.786l.16.177-3.945 3.898a.612.612 0 10.862.868L9.59 13.39l1.926 1.926a.602.602 0 10.848-.854l-1.98-1.957zM14.706 17.812h4.448l.836 2.228a.559.559 0 101.046-.392l-3.173-8.463a.996.996 0 00-1.866 0l-3.173 8.463a.559.559 0 101.046.392l.836-2.228zm.46-1.228l1.764-4.706 1.764 4.706h-3.528z"},null,-1)],He=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderLanguage",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{style:{fill:"currentColor"},viewBox:"0,0,24,24",width:t.icon.size,height:t.icon.size,xmlns:"http://www.w3.org/2000/svg"},Pe,8,Me))}}},Symbol.toStringTag,{value:"Module"})),qe=["width","height"],Ie=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.867 5.6a3.587 3.587 0 00-3.584 3.455l-.083 2.24a7.885 7.885 0 01-1.926 4.862c1.267.104 3.391.243 5.726.243 2.334 0 4.397-.139 5.617-.243a8.509 8.509 0 01-1.944-4.677l-.233-2.612A3.587 3.587 0 0011.867 5.6zM7.083 9.01a4.787 4.787 0 019.552-.249l.233 2.613a7.312 7.312 0 001.812 4.179c.558.629.22 1.694-.69 1.776A68.766 68.766 0 0112 17.6c-2.61 0-4.957-.17-6.176-.277-.89-.078-1.224-1.133-.65-1.74a6.688 6.688 0 001.827-4.332l.082-2.24zM14.6 19a.6.6 0 01-.6.6h-4a.6.6 0 110-1.2h4a.6.6 0 01.6.6z"},null,-1)],Te=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderNotifications",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{style:{fill:"currentColor"},viewBox:"0,0,24,24",width:t.icon.size,height:t.icon.size,xmlns:"http://www.w3.org/2000/svg"},Ie,8,qe))}}},Symbol.toStringTag,{value:"Module"})),Fe=["width","height"],Ae=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 4.6c-1.848 0-3.3 1.427-3.3 3.133s1.452 3.133 3.3 3.133c1.848 0 3.3-1.427 3.3-3.133S13.848 4.6 12 4.6zM7.5 7.733C7.5 5.315 9.54 3.4 12 3.4s4.5 1.915 4.5 4.333-2.04 4.333-4.5 4.333-4.5-1.915-4.5-4.333zm1.9 6.999c-1.847 0-3.3 1.427-3.3 3.135V18a1.4 1.4 0 001.4 1.4h9a1.4 1.4 0 001.4-1.4v-.133c0-1.708-1.453-3.135-3.3-3.135H9.4zm-4.5 3.135c0-2.419 2.04-4.335 4.5-4.335h5.2c2.46 0 4.5 1.916 4.5 4.335V18a2.6 2.6 0 01-2.6 2.6h-9A2.6 2.6 0 014.9 18v-.133z"},null,-1)],Le=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderProfile",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{style:{fill:"currentColor"},viewBox:"0,0,24,24",width:t.icon.size,height:t.icon.size,xmlns:"http://www.w3.org/2000/svg"},Ae,8,Fe))}}},Symbol.toStringTag,{value:"Module"})),De=["width","height"],Re=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3911 15.4518C13.1902 16.4202 11.6628 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 11.6628 16.4202 13.1902 15.4518 14.3911L20.5303 19.4697C20.8232 19.7626 20.8232 20.2374 20.5303 20.5303C20.2374 20.8232 19.7626 20.8232 19.4697 20.5303L14.3911 15.4518ZM15.5 10C15.5 13.0376 13.0376 15.5 10 15.5C6.96243 15.5 4.5 13.0376 4.5 10C4.5 6.96243 6.96243 4.5 10 4.5C13.0376 4.5 15.5 6.96243 15.5 10Z",fill:"currentColor"},null,-1)],Ze=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"JHeaderSearch",props:{icon:{type:Object,default:{color:"#FFF",size:"18",name:""}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("svg",{width:t.icon.size,height:t.icon.size,viewBox:"0 0 24 24",fill:"none"},Re,8,De))}}},Symbol.toStringTag,{value:"Module"}));a.JBadge=ne,a.JCard=Z,a.JCardSceleton=ee,a.JCol=k,a.JFooter=se,a.JFooterLabel=h,a.JFooterMenu=y,a.JFooterSceleton=pe,a.JHeader=$,a.JHeaderSceleton=w,a.JImage=u,a.JImageSceleton=re,a.JRow=g,a.MInput=N,a.VButton=C,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"scripts": { | ||
@@ -17,0 +17,0 @@ "dev": "vite", |
Sorry, the diff of this file is not supported yet
50405
909