@mendmania/ui-name
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -1,2 +0,2 @@ | ||
import { openBlock as t, createElementBlock as s, normalizeProps as M, guardReactiveProps as z, renderSlot as m, mergeProps as p, useAttrs as T, computed as y, toRefs as A, unref as r, createElementVNode as u, toDisplayString as h, createCommentVNode as c, normalizeStyle as $, pushScopeId as C, popScopeId as P, Fragment as S, renderList as x, createBlock as g, withCtx as q, resolveDynamicComponent as B, markRaw as j, normalizeClass as k, defineAsyncComponent as N, createVNode as I } from "vue"; | ||
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 S, renderList as x, 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) => { | ||
@@ -101,3 +101,3 @@ const n = e.__vccOpts || e; | ||
setup(e) { | ||
const l = e, n = T(), a = y(() => n.order ? `flex-${n.order}` : "flex-col"), { showAuthor: o, showViews: i, showDate: d } = A(l), f = y( | ||
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 | ||
@@ -218,3 +218,3 @@ ); | ||
setup(e) { | ||
const l = e, n = T(), a = y(() => n.order ? `flex-${n.order}` : "flex-col"), { showAuthor: o, showViews: i, showDate: d } = A(l), f = y( | ||
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 | ||
@@ -299,3 +299,3 @@ ); | ||
}, { | ||
default: q(() => [ | ||
default: O(() => [ | ||
(t(!0), s(S, null, x(o.children, (i) => (t(), g(r(ze), { | ||
@@ -305,3 +305,3 @@ key: i.id, | ||
}, { | ||
default: q(() => [ | ||
default: O(() => [ | ||
(t(!0), s(S, null, x(i.children, (d) => (t(), g(B(l(d.type)), { | ||
@@ -378,3 +378,3 @@ key: d.id, | ||
}; | ||
const ke = {}, Oe = { class: "j-footer-sceleton" }, qe = /* @__PURE__ */ u("div", { class: "card w-full is-loading" }, [ | ||
const ke = {}, qe = { class: "j-footer-sceleton" }, Oe = /* @__PURE__ */ u("div", { class: "card w-full is-loading" }, [ | ||
/* @__PURE__ */ u("div", { class: "image" }), | ||
@@ -386,6 +386,6 @@ /* @__PURE__ */ u("div", { class: "content" }, [ | ||
], -1), Ie = [ | ||
qe | ||
Oe | ||
]; | ||
function He(e, l) { | ||
return t(), s("div", Oe, Ie); | ||
return t(), s("div", qe, Ie); | ||
} | ||
@@ -459,3 +459,3 @@ const ct = /* @__PURE__ */ v(ke, [["render", He]]), Me = { | ||
} | ||
}, Te = (e, l) => { | ||
}, Ae = (e, l) => { | ||
const n = e[l]; | ||
@@ -473,3 +473,3 @@ return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((a, o) => { | ||
actions: { | ||
type: Object, | ||
type: Array, | ||
required: !0 | ||
@@ -490,3 +490,3 @@ }, | ||
function n(a) { | ||
return N(() => Te(/* @__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`)); | ||
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`)); | ||
} | ||
@@ -501,3 +501,3 @@ return (a, o) => (t(), s("div", null, [ | ||
} | ||
}, Ae = ["href"], J = { | ||
}, Te = ["href"], J = { | ||
__name: "JHeaderMenuItems", | ||
@@ -517,3 +517,3 @@ props: { | ||
target: "_blank" | ||
}, h(a.navigationLabel), 9, Ae) | ||
}, h(a.navigationLabel), 9, Te) | ||
]))), 256)) | ||
@@ -525,3 +525,4 @@ ], 16)); | ||
default: J | ||
}, Symbol.toStringTag, { value: "Module" })), Pe = { class: "logo flex" }, Be = { class: "w-full m-auto" }, De = ["src"], D = { | ||
}, Symbol.toStringTag, { value: "Module" })); | ||
const Pe = { class: "logo flex" }, Be = { class: "w-full m-auto" }, De = ["src"], D = { | ||
__name: "JHeaderLogo", | ||
@@ -614,5 +615,5 @@ props: { | ||
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( | ||
([b, O]) => O && b !== "logo" && b !== "menu" | ||
([b, q]) => q && b !== "logo" && b !== "menu" | ||
).map((b) => b[0])); | ||
return (b, O) => (t(), s("div", p(b.$attrs, { | ||
return (b, q) => (t(), s("div", p(b.$attrs, { | ||
key: `header-${r(n)}` | ||
@@ -619,0 +620,0 @@ }), [ |
@@ -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 z=m(N,[["render",V]]),Ze="",J=t=>(e.pushScopeId("data-v-59498c0f"),t=t(),e.popScopeId(),t),O={key:0,class:"relative"},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 ml-1"},I=J(()=>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"},D={key:0},L={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",D,e.toDisplayString(t.author),1)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createElementBlock("span",L,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-59498c0f"]]),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:Object,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(()=>Je),"./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"})),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"})),ot="",je={},Ne={class:"j-footer-sceleton"},Ve=[e.createElementVNode("div",{class:"card w-full is-loading"},[e.createElementVNode("div",{class:"image"})],-1)];function ze(t,n){return e.openBlock(),e.createElementBlock("div",Ne,Ve)}const w=m(je,[["render",ze]]),Je=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"})),De=["width","height"],Le=[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"},Le,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=z,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 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-59498c0f"),t=t(),e.popScopeId(),t),O={key:0,class:"relative"},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 ml-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-59498c0f"]]),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"}})}); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"scripts": { | ||
@@ -17,0 +17,0 @@ "dev": "vite", |
Sorry, the diff of this file is not supported yet
49596
902