manolis-ui 0.22.3 → 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +851 -74
- package/dist/manolis-ui.css +1 -1
- package/dist/manolis-ui.js +2191 -1028
- package/dist/manolis-ui.umd.cjs +10 -10
- package/package.json +1 -1
- package/dist/style.css +0 -4717
package/dist/manolis-ui.umd.cjs
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ManolisUi={},y.Vue))})(this,(function(y,e){"use strict";var Jt=y=>{throw TypeError(y)};var Gt=(y,e,X)=>e.has(y)||Jt("Cannot "+X);var ye=(y,e,X)=>(Gt(y,e,"read from private field"),X?X.call(y):e.get(y)),st=(y,e,X)=>e.has(y)?Jt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(y):e.set(y,X),rt=(y,e,X,Ve)=>(Gt(y,e,"write to private field"),Ve?Ve.call(y,X):e.set(y,X),X);var ce,ge;const X=["disabled"],Ve={key:0,class:"loading loading-spinner"},Zt=e.defineComponent({__name:"ButtonComponent",props:{outlined:{type:Boolean,default:!1},active:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{},size:{},shape:{},disabled:{type:Boolean,default:!1}},setup(t){const n=t,l=e.computed(()=>{switch(n.size){case"large":return"btn-lg";case"small":return"btn-sm";case"tiny":return"btn-tiny";case"wide":return"btn-wide";case"full":return"w-full";default:return""}}),o=e.computed(()=>{switch(n.type){case"neutral":return"btn-neutral";case"primary":return"btn-primary";case"secondary":return"btn-secondary";case"accent":return"btn-accent";case"ghost":return"btn-ghost";case"link":return"btn-link px-0!";case"info":return"btn-info";case"success":return"btn-success";case"warning":return"btn-warning";case"error":return"btn-error";default:return"btn-neutral"}}),a=e.computed(()=>{switch(n.shape){case"square":return"btn-square";case"circle":return"btn-circle";default:return""}});return(s,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["btn",{"btn-outline":n.outlined},{"btn-active":n.active},o.value,l.value,a.value]),disabled:n.disabled},[t.loading?(e.openBlock(),e.createElementBlock("span",Ve)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default",{},()=>[r[0]||(r[0]=e.createTextVNode("Submit",-1))])],10,X))}}),Qt={tabindex:"0",class:"z-1 bg-base-100 shadow-sm p-2 rounded-sm min-w-[inherit] md:min-w-full xl:min-w-52 dropdown-content menu"},en=["href"],tn=e.defineComponent({__name:"dropdown",props:{items:{},position:{default:"bottom"},floatPosition:{default:"start"},openOnHover:{type:Boolean,default:!1},forceOpen:{type:Boolean,default:!1}},setup(t){const n={left:"dropdown-left",right:"dropdown-right",bottom:"dropdown-bottom",top:"dropdown-top"},l={start:"",end:"dropdown-end"},o=t;return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dropdown",n[o.position],l[o.floatPosition],{"dropdown-open":o.forceOpen},{"dropdown-hover":o.openOnHover}])},[e.renderSlot(a.$slots,"default",{tabindex:"0",role:"button"},()=>[s[0]||(s[0]=e.createElementVNode("div",{class:"m-1 btn"},"Open dropdown",-1))]),e.createElementVNode("ul",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,r=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("a",{href:r.link},e.toDisplayString(r.text),9,en)]))),256)),e.renderSlot(a.$slots,"additional")])],2))}}),nn={class:"modal-box"},on={class:"modal-action"},ln=e.defineComponent({__name:"modal",props:{position:{default:"center"},withBackdrop:{type:Boolean,default:!1},forceOpen:{type:[Boolean,null],default:null}},setup(t){const n=t,l={top:"modal-top",bottom:"modal-bottom",center:"modal-middle"},o=e.ref(null),a=()=>{var r;(r=o.value)==null||r.showModal()},s=()=>{var r;(r=o.value)==null||r.close()};return e.watch(()=>n.forceOpen,r=>{r==!0&&a(),r==!1&&s()}),(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.forceOpen==null?(e.openBlock(),e.createElementBlock("span",{key:0,class:"w-fit cursor-pointer",onClick:a},[e.renderSlot(r.$slots,"trigger",{role:"button"},()=>[c[0]||(c[0]=e.createElementVNode("button",{class:"btn"},"Open",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("dialog",{ref_key:"dialog",ref:o,class:e.normalizeClass(["modal",l[n.position]])},[e.createElementVNode("div",nn,[e.renderSlot(r.$slots,"default"),e.createElementVNode("div",on,[e.renderSlot(r.$slots,"actions"),e.createElementVNode("form",{method:"dialog",onSubmit:s,class:e.normalizeClass(t.withBackdrop?"modal-backdrop":"")},[e.renderSlot(r.$slots,"close-button",{},()=>[c[1]||(c[1]=e.createElementVNode("button",{class:"btn"},"Close",-1))])],34)])])],2)],64))}}),an={class:"flex justify-center items-center swap-on"},sn={class:"flex justify-center items-center swap-off"},rn=e.defineComponent({__name:"swap",props:{effect:{}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["swap",n.effect?`swap-${t.effect}`:""])},[o[0]||(o[0]=e.createElementVNode("input",{type:"checkbox"},null,-1)),e.createElementVNode("div",an,[e.renderSlot(l.$slots,"on")]),e.createElementVNode("div",sn,[e.renderSlot(l.$slots,"off")])],2))}});/**
|
|
2
2
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const cn=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
7
7
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var Ne={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
12
12
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const dn=({size:t,strokeWidth:n=2,absoluteStrokeWidth:l,color:o,iconNode:a,name:s,class:r,...c},{slots:i})=>e.h("svg",{...Ne,width:t||Ne.width,height:t||Ne.height,stroke:o||Ne.stroke,"stroke-width":l?Number(n)*24/Number(t):n,class:["lucide",`lucide-${cn(s??"icon")}`],...c},[...a.map(d=>e.h(...d)),...i.default?[i.default()]:[]]);/**
|
|
17
17
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const ke=(t,n)=>(l,{slots:o})=>e.h(dn,{...l,iconNode:n,name:t},o);/**
|
|
22
22
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const un=ke("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
27
27
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const mn=ke("CircleXIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
32
32
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const fn=ke("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
37
37
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const it=ke("SearchIcon",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
42
42
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const Rt=Z("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),qt=(t,n)=>{const o=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const l=window.localStorage.getItem(t);o.value=l?JSON.parse(l):n}}),e.watch(o,l=>{typeof window<"u"&&window.localStorage.setItem(t,JSON.stringify(l))}),o},Ht={class:"swap-rotate swap"},Wt=["true-value","false-value"],Kt=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,o=qt("theme",n.lightTheme);function l(r){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",r)}return e.onMounted(()=>l(o.value?o.value:"")),e.watch(o,r=>{l(r)}),(r,a)=>(e.openBlock(),e.createElementBlock("label",Ht,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":a[0]||(a[0]=s=>e.isRef(o)?o.value=s:null),"true-value":n.lightTheme,"false-value":n.darkTheme},null,8,Wt),[[e.vModelCheckbox,e.unref(o)]]),e.createVNode(e.unref(Rt),{class:"swap-off fill-current"}),e.createVNode(e.unref(_t),{class:"swap-on fill-current"})]))}}),Yt=["name"],Jt={class:"collapse-title font-bold text-2xl lg:text-4xl"},Xt={class:"collapse-content"},Gt=["innerHTML"],Zt=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(t){const n=t;return(o,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:a},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,Yt),e.createElementVNode("div",Jt,e.toDisplayString(r.title),1),e.createElementVNode("div",Xt,[e.createElementVNode("span",{innerHTML:r.content},null,8,Gt)])],2))),128))}}),Qt=["src"],en={class:"text-xl"},tn=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(n.onlineStatus);return e.watch(()=>n.onlineStatus,l=>{l&&(o.value=l)}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":o.value==="online"},{"avatar-offline":o.value==="offline"}]])},[t.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("img",{src:t.image,class:"w-full h-full"},null,8,Qt)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("p",en,e.toDisplayString(t.initials),1)],2))],2))}}),nn=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(t){const n=t,o={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},l={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(r,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",o[n.size],l[n.color],{"badge-outline":n.outline}])},[e.renderSlot(r.$slots,"default")],2))}}),on=["src","alt"],ln={key:0,class:"card-body"},an={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},rn={key:1,class:"text-left"},sn={class:"flex-col flex-nowrap mt-auto card-actions"},cn={key:1,class:"card-body"},dn=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""},background:{default:"bg-base-100"},color:{default:""},imgHeight:{default:"h-44"},imgWidth:{default:""},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(n.outlined);return e.watch(()=>n.outlined,l=>{o.value=l}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",[{"border-4 border-primary":o.value},t.color??"",t.background,{"card-side":t.horizontal}]])},[e.createElementVNode("figure",{class:e.normalizeClass([{"contents!":t.horizontal&&t.imgWidth}])},[t.imgUrl||t.imgUrl&&!t.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgUrl,alt:t.alt,class:e.normalizeClass(["rounded-sm object-cover",[{hidden:t.loading},!t.horizontal&&t.imgHeight?t.imgHeight:"h-full",t.horizontal&&t.imgWidth?t.imgWidth:"w-full"]])},null,10,on)):e.createCommentVNode("",!0),t.loading&&t.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",t.imgHeight])},null,2)):e.createCommentVNode("",!0)],2),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ln,[t.title?(e.openBlock(),e.createElementBlock("h2",an,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",rn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",sn,[e.renderSlot(l.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",cn,[...r[0]||(r[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)])])):e.createCommentVNode("",!0)],2))}}),Le=Symbol("CarouselItemStyle"),un={class:"relative h-full"},mn={key:0,class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},fn={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},pn=["onClick","aria-label"],hn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t=="horizontal"||t=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:300,validator:t=>t>=0}},setup(t,{expose:n}){const o=t,l=e.ref(o.initialSlide),r=e.ref(null),a=e.ref(!1),s=e.ref(0),d=e.computed(()=>({width:`calc((100% - ${o.slidesPerView>1?(o.slidesPerView-1)*o.gap:0}px) / ${o.slidesPerView})`}));e.provide(Le,d);const i=()=>{r.value?s.value=r.value.children.length:s.value=0},c=async w=>{if(!r.value||o.slidesPerView<=0||a.value||(i(),s.value===0))return;const B=(w%s.value+s.value)%s.value,x=r.value,E=o.sliderOrientation==="vertical"?(x.offsetHeight-(o.slidesPerView-1)*o.gap)/o.slidesPerView:(x.offsetWidth-(o.slidesPerView-1)*o.gap)/o.slidesPerView;if(E<=0)return;const N=E+o.gap,T=B*N,z=o.sliderOrientation==="vertical"?x.scrollHeight-x.offsetHeight:x.scrollWidth-x.offsetWidth,g=Math.max(0,Math.min(T,z+.5));a.value=!0,x.style.scrollBehavior="auto";const f=o.sliderOrientation==="vertical"?x.scrollTop:x.scrollLeft,p=g-f;if(Math.abs(p)<1){a.value=!1,l.value=B;return}const $=performance.now(),u=C=>{const k=C-$,V=Math.min(1,k/o.slideDuration),I=V<.5?4*V*V*V:1-Math.pow(-2*V+2,3)/2,M=f+p*I;o.sliderOrientation==="vertical"?x.scrollTop=M:x.scrollLeft=M,V<1?requestAnimationFrame(u):(o.sliderOrientation==="vertical"?x.scrollTop=g:x.scrollLeft=g,l.value=B,a.value=!1)};requestAnimationFrame(u)},m=()=>{c(l.value+1)},b=()=>{c(l.value-1)},y=w=>{c(w)},h=()=>{if(!r.value||o.slidesPerView<=0||(i(),s.value===0))return;const w=r.value,B=o.sliderOrientation==="vertical"?w.offsetHeight:w.offsetWidth,x=o.slidesPerView>1?(o.slidesPerView-1)*o.gap:0,E=(B-x)/o.slidesPerView;if(E<=0)return;const N=Math.max(0,s.value-o.slidesPerView),T=Math.min(Math.max(0,o.initialSlide),N),z=T*(E+o.gap),g=o.sliderOrientation==="vertical"?w.scrollHeight-w.offsetHeight:w.scrollWidth-w.offsetWidth,f=Math.max(0,Math.min(z,g+.5));o.sliderOrientation==="vertical"?w.scrollTo({top:f,behavior:"auto"}):w.scrollTo({left:f,behavior:"auto"}),l.value=T};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(h)}),i()}),e.watch(()=>o.initialSlide,w=>{requestAnimationFrame(()=>c(w))}),e.watch(()=>[o.slidesPerView,o.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(i(),s.value===0)return;const w=Math.max(0,s.value-o.slidesPerView),B=Math.min(l.value,w),x=o.slideDuration;o.slideDuration=0,c(B),o.slideDuration=x})})}),n({scrollToSlide:c}),(w,B)=>(e.openBlock(),e.createElementBlock("div",un,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,class:e.normalizeClass(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel",[{"carousel-horizontal md:snap-none":t.sliderOrientation=="horizontal"},{"carousel-vertical":t.sliderOrientation=="vertical"}]]),style:e.normalizeStyle({gap:`${t.gap}px`})},[e.renderSlot(w.$slots,"default",{},void 0,!0)],6),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",{onClick:b,role:"button","aria-label":"Previous Slide"},[e.renderSlot(w.$slots,"prevButton",{},()=>[B[0]||(B[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:m,role:"button","aria-label":"Next Slide"},[e.renderSlot(w.$slots,"nextButton",{},()=>[B[1]||(B[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(x,E)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${E}`,onClick:N=>y(E),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":E===l.value}]),"aria-label":`Go to slide ${E+1}`},null,10,pn))),128))])):e.createCommentVNode("",!0)]))}}),H=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},gn=H(hn,[["__scopeId","data-v-db55a6a5"]]),yn=H(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(Le,e.ref({}));return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(n))},[e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),bn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},kn=["onClick"],wn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},xn={key:1,class:"flex flex-col"},En={class:"text-sm"},Bn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Cn={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},$n={class:"hidden"},Sn=["id"],Vn={class:"modal-box"},Nn={class:"font-bold text-lg"},vn=["name","checked"],Dn={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},Tn={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},Mn={key:1,class:"opacity-35 text-sm"},zn={class:"collapse-content flex place-content-center p-0"},In=H(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(t,{emit:n}){const o=t,l=n,r=o.id??`advancedSearch-${e.useId()}`,a=e.ref(null),s=e.ref(null),d={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Hn)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>ao)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Bo))},i=e.ref({}),c=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),b=g=>{var f;if(g.value===void 0||g.value===null||g.value==="")return"";switch(g.type){case"datetime":if(typeof g.value=="string")try{const p=new Date(g.value);if(!isNaN(p.getTime()))return p.toLocaleString()}catch{}else if(g.range&&typeof g.value=="object"&&g.value!==null&&"start"in g.value&&"end"in g.value)try{const p=new Date(g.value.start),$=new Date(g.value.end);if(!isNaN(p.getTime())&&!isNaN($.getTime()))return`${p.toLocaleDateString()} - ${$.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof g.value=="object"&&g.value!==null&&"start"in g.value&&"end"in g.value)return`${g.value.start} - ${g.value.end}`;break;case"custom-number":if(typeof g.value=="number")return g.value.toString();break;case"standard-select":case"custom-select":if((f=g.props)!=null&&f.options&&Array.isArray(g.props.options)){const p=g.props.options.find($=>$.value===g.value);if(p)return p.text}return String(g.value);case"custom-text":if(typeof g.value=="string")return g.value;break}return String(g.value)};function y(g){var u,C;const f=(u=a.value)==null?void 0:u.name;if(!f){console.warn("componentValueUpdated called but no active tab.");return}const p=(C=o.searchOptions.find(k=>(k==null?void 0:k.category)===o.currentCategory))==null?void 0:C.tabs,$=p==null?void 0:p.find(k=>k.name===f);$?($.value=g,l("update:search-data",{tab:$.name,data:g})):console.error(`Tab with name "${f}" not found in current category.`)}function h(g){y(g)}function w(){l("search")}async function B(g){var $;const f=document.getElementById(`advancedSearchMobile-${r}`),p=f&&f.contains(g.target);(($=a.value)==null?void 0:$.displayMode)==="popup"&&m.value&&!m.value.contains(g.target)&&!p&&(await e.nextTick(),a.value=null)}async function x(){if(typeof window<"u"&&window.innerWidth<=768){const g=document.getElementById(`advancedSearchMobile-${r}`);g?(a.value=null,g.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function E(g){var p,$,u;if(typeof window<"u"&&window.innerWidth<=768){x();return}const f=g.displayMode??"popup";if(((p=a.value)==null?void 0:p.name)===g.name&&(($=a.value)==null?void 0:$.displayMode)===f)a.value=null;else if(a.value={...g,displayMode:f},await e.nextTick(),((u=a.value)==null?void 0:u.displayMode)==="popup"){const C=i.value[g.name];if(C&&m.value){const k=C.getBoundingClientRect(),V=m.value.getBoundingClientRect(),I=k.bottom-V.top,M=k.left+k.width/2-V.left;c.value={left:`${M}px`,top:`${I+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",g.name)}}const N=g=>{const f=g.relatedTarget;setTimeout(()=>{var p;((p=a.value)==null?void 0:p.displayMode)==="inline"&&m.value&&(!f||!m.value.contains(f))?(console.log("Blur detected outside container, closing inline view."),a.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},T=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,g=>{var f;console.log("advanced-search: inlineComponentRef changed. New Value:",g),console.log("advanced-search: activeTab.value:",a.value),g&&((f=a.value)==null?void 0:f.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof g),console.log("advanced-search: Does newValue have focusInput?",typeof g.focusInput=="function"),g&&typeof g.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),g.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',g)})):console.log(g?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",B),window.addEventListener("resize",z)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",B),window.removeEventListener("resize",z)});const z=()=>{var g,f;if(typeof window<"u"){const p=window.innerWidth<=768,$=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!p&&(((g=a.value)==null?void 0:g.displayMode)==="popup"||((f=a.value)==null?void 0:f.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),p&&!$&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const u=document.getElementById(`advancedSearchMobile-${r}`);u!=null&&u.open&&!p&&(console.log("Modal is open on desktop, closing modal and active tab."),u.close(),a.value=null)}};return(g,f)=>{var p,$;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:m,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:x},[e.createElementVNode("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((p=o.searchOptions.find(u=>u.category===o.currentCategory))==null?void 0:p.tabs)||[],(u,C)=>{var k,V,I,M,R;return e.openBlock(),e.createElementBlock("button",{key:`${u.name}-${C}`,onClick:e.withModifiers(j=>E(u),["stop"]),class:e.normalizeClass([{"tab-active":((k=a.value)==null?void 0:k.name)===u.name,"tab-active-inline":((V=a.value)==null?void 0:V.name)===u.name&&((I=a.value)==null?void 0:I.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:j=>i.value[u.name]=j},[((M=a.value)==null?void 0:M.name)===u.name&&((R=a.value)==null?void 0:R.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",wn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:f[0]||(f[0]=j=>h(j)),"onUpdate:modelValue":f[1]||(f[1]=j=>h(j)),onBlur:N,onKeydown:e.withKeys(e.withModifiers(T,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("p",En,e.toDisplayString(u.name),1),u.value!==void 0&&u.value!==null&&u.value!==""?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(b(u)),1)):(e.openBlock(),e.createElementBlock("p",Cn,e.toDisplayString(u.description),1))]))],10,kn)}),128))]),a.value&&a.value.displayMode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(c.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:f[2]||(f[2]=u=>y(u)),"onUpdate:modelValue":f[3]||(f[3]=u=>y(u))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers(w,["stop"])},[e.createVNode(e.unref(Ae),{size:24,color:"white"})])]),e.createElementVNode("div",$n,[e.createElementVNode("button",{title:"search",onClick:f[4]||(f[4]=()=>{})},[e.createVNode(e.unref(Ae),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",Vn,[e.renderSlot(g.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Nn,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((($=o.searchOptions.find(u=>u.category===o.currentCategory))==null?void 0:$.tabs)||[],(u,C)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:u.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:C===0},null,8,vn),e.createElementVNode("div",Dn,[e.createElementVNode("div",null,e.toDisplayString(u.name),1),u.value!==void 0&&u.value!==null&&u.value!==""?(e.openBlock(),e.createElementBlock("div",Tn,e.toDisplayString(b(u)),1)):(e.openBlock(),e.createElementBlock("div",Mn,e.toDisplayString(u.description),1))]),e.createElementVNode("div",zn,[f[7]||(f[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[u.type]),e.mergeProps({ref_for:!0},u.props||{},{modelValue:u.value,onUpdated:f[5]||(f[5]=k=>y(k)),"onUpdate:modelValue":f[6]||(f[6]=k=>y(k))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:w}," Close and Search ")])])])],8,Sn)],64)}}}),[["__scopeId","data-v-577c3624"]]),Pn={class:"z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm"},On={key:0},An=["id"],Ln={key:2,class:"join items-center gap-2 w-full justify-between py-2 px-4 max-md:input max-md:input-bordered rounded"},jn={class:"join-item"},Fn=["id","disabled"],Un={class:"join-item"},_n=["id","disabled"],Rn=["id","disabled"],qn={key:4,class:"flex mt-4"},je=H(e.defineComponent({__name:"datetimePicker",props:{mode:{default:"datetime"},range:{type:Boolean,default:!1},placeholder:{default:"Select date and time"},popup:{type:Boolean,default:!1},id:{default:"date-time-picker"},initialDate:{default:null},disabled:{type:Boolean,default:!1},locale:{default:"nl-NL"},min:{},max:{}},emits:["update:modelValue","change"],setup(t,{emit:n}){e.onMounted(async()=>{await Promise.resolve().then(()=>Gl)});const o=t,l=n,r=e.ref(null),a=e.ref(!1),s=e.ref(null),d=e.ref(null),i=e.ref(null),c=e.ref(null),m=e.ref(null),b=e.ref({from:"",to:"",single:""}),y=e.ref({single:null,start:null,end:null}),h=e.computed(()=>{const f=u=>{if(!u||u.includes(":"))return u;if(/^\d{4}-\d{2}-\d{2}$/.test(u))try{return new Date(u).toLocaleDateString(o.locale)}catch{const[C,k,V]=u.split("-");return`${V}/${k}/${C}`}return u};let p="",$="";if(o.mode!=="time"&&(o.range&&y.value.start&&y.value.end?p=`${y.value.start} - ${y.value.end}`:!o.range&&y.value.single&&(p=y.value.single)),o.mode!=="date"&&(o.range&&b.value.from&&b.value.to?$=`${b.value.from} - ${b.value.to}`:!o.range&&b.value.single&&($=b.value.single)),o.mode==="date")return o.range?p.split(" - ").map(f).join(" - "):f(p);if(o.mode==="time")return $;if(o.range){const[u,C]=p.split(" - ").map(f),[k,V]=$.split(" - ");return`${u} ${k} - ${C} ${V}`.trim()}return`${f(p)} ${$}`.trim()});console.log(h);const w=()=>{if(o.range){const{start:f,end:p}=y.value,{from:$,to:u}=b.value;let C=null,k=null;if(o.mode==="time"&&$&&u?(C=$,k=u):o.mode==="date"&&f&&p?(C=f,k=p):o.mode==="datetime"&&f&&p&&$&&u&&(C=`${f}T${$}`,k=`${p}T${u}`),C&&k)return{start:C,end:k}}else{const f=y.value.single,p=b.value.single;if(o.mode==="date")return f;if(o.mode==="time")return p||null;if(o.mode==="datetime"&&f&&p)return`${f}T${p}`}return null},B=()=>{if(s.value)y.value.single=s.value.value||null;else if(d.value){const f=d.value.value;y.value.start=(f==null?void 0:f.start)||null,y.value.end=(f==null?void 0:f.end)||null}},x=()=>{B();const f=w();l("update:modelValue",f),l("change",f)},E=()=>{var f,p,$;o.range?(b.value.from=((f=c.value)==null?void 0:f.value)||"",b.value.to=((p=m.value)==null?void 0:p.value)||""):b.value.single=(($=i.value)==null?void 0:$.value)||"",x()},N=()=>{a.value=!a.value,a.value&&x()},T=()=>{a.value=!1,x()},z=f=>{if(!o.popup||!a.value)return;const p=r.value,$=f.target;p&&!p.contains($)&&T()},g=()=>{const f=p=>p instanceof Date?p.toISOString():p;if(o.initialDate){if(o.range&&typeof o.initialDate=="object"&&"start"in o.initialDate){const p=f(o.initialDate.start),$=f(o.initialDate.end);if(y.value.start=p.split("T")[0],y.value.end=$.split("T")[0],o.mode!=="date"){const u=new Date(p),C=new Date($),k=V=>`${String(V.getUTCHours()).padStart(2,"0")}:${String(V.getUTCMinutes()).padStart(2,"0")}`;b.value.from=k(u),b.value.to=k(C),c.value&&(c.value.value=b.value.from),m.value&&(m.value.value=b.value.to)}}else if(typeof o.initialDate=="string"||o.initialDate instanceof Date){const p=f(o.initialDate);if(y.value.single=p.split("T")[0],o.mode!=="date"){const $=new Date(p),u=`${String($.getUTCHours()).padStart(2,"0")}:${String($.getUTCMinutes()).padStart(2,"0")}`;b.value.single=u,i.value&&(i.value.value=u)}}}};return e.onMounted(()=>{g(),x()}),(f,p)=>{const $=e.resolveComponent("calendar-month"),u=e.resolveComponent("calendar-date"),C=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:r,onMousedownCapture:z},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:p[0]||(p[0]=k=>o.disabled?null:N())},[e.createElementVNode("div",Pn,[h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",On,e.toDisplayString(t.placeholder),1)),e.createTextVNode(" "+e.toDisplayString(h.value),1)])])):e.createCommentVNode("",!0),a.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`},[!o.range&&o.mode!=="time"?(e.openBlock(),e.createBlock(u,{key:0,class:"cally w-full",ref_key:"datePicker",ref:s,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,onChange:x},{default:e.withCtx(()=>[p[1]||(p[1]=e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})])],-1)),p[2]||(p[2]=e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})])],-1)),e.createVNode($,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled"])):e.createCommentVNode("",!0),o.range&&o.mode!=="time"?(e.openBlock(),e.createBlock(C,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:d,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,onChange:x},{default:e.withCtx(()=>[p[3]||(p[3]=e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})])],-1)),p[4]||(p[4]=e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})])],-1)),e.createVNode($,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled"])):e.createCommentVNode("",!0),o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",Ln,[e.createElementVNode("div",jn,[e.createElementVNode("input",{class:"max-md:max-w-xs text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeFromInput",ref:c,id:`${o.id}-time-from`,placeholder:"van",onChange:E,disabled:o.disabled},null,40,Fn)]),p[5]||(p[5]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",focusable:"false","data-icon":"swap-right",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",Un,[e.createElementVNode("input",{class:"hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeToInput",ref:m,id:`${o.id}-time-to`,onChange:E,disabled:o.disabled},null,40,_n)])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("input",{key:3,class:"open:bg-primary open:rounded w-full input input-bordered my-2 justify-center",type:"time",ref_key:"timeInput",ref:i,id:`${o.id}-time`,onChange:E,disabled:o.disabled},null,40,Rn)):e.createCommentVNode("",!0),o.popup?(e.openBlock(),e.createElementBlock("div",qn,[e.createElementVNode("button",{class:"btn btn-primary",onClick:T}," Close ")])):e.createCommentVNode("",!0)],10,An)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-74efd8bb"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"})),Wn=["value","checked","onChange","disabled"],Kn=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"},shape:{default:"star"},color:{default:"bg-yellow-400"},gap:{default:0}},setup(t){const n=t,o=e.ref(n.initialRating);e.watch(()=>n.initialRating,r=>{o.value=r});const l=r=>{o.value=r};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${n.size}`,{"rating-half":t.halfStars},{"pointer-events-none":!t.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.numberOfStars*(t.halfStars?2:1),s=>(e.openBlock(),e.createElementBlock("input",{key:s,type:"radio",value:t.halfStars?s*.5:s,checked:o.value===(t.halfStars?s*.5:s),onChange:d=>t.isInteractive?l(t.halfStars?s*.5:s):null,class:e.normalizeClass(["mask",[{"mask-half-1":t.halfStars&&s%2!==0,"mask-half-2":t.halfStars&&s%2===0,"cursor-pointer":t.isInteractive,"cursor-default":!t.isInteractive,"mask-star":t.shape==="star","mask-star-2":t.shape==="star-bold","mask-heart":t.shape==="heart","mask-hexagon":t.shape==="hexagon-vertical","mask-hexagon-2":t.shape==="hexagon-horizontal","mask-decagon":t.shape==="decagon","mask-pentagon":t.shape==="pentagon","mask-diamond":t.shape==="diamond","mask-square":t.shape==="square","mask-triangle":t.shape==="triangle-top","mask-triangle-2":t.shape==="triangle-bottom","mask-triangle-3":t.shape==="triangle-left","mask-triangle-4":t.shape==="triangle-right"},o.value>=(t.halfStars?s*.5:s)?n.color:""]]),style:e.normalizeStyle({marginRight:t.halfStars&&s%2===0?`${n.gap}px`:t.halfStars?"0":`${n.gap}px`}),disabled:!t.isInteractive},null,46,Wn))),128))],2))}}),Yn={class:"badge"},Jn=["onClick"],Xn={class:"opacity-75"},Gn=["placeholder"],Zn=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,l=n,r=e.ref([...o.modelValue]),a=o.maxTagAmount===void 0?-1:o.maxTagAmount,s=e.ref(null),d=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),c=()=>{const h=d.value.trim();h&&!r.value.includes(h)&&(r.value.push(h),l("update:modelValue",r.value),d.value="")},m=h=>{r.value=r.value.filter(w=>w!==h),l("update:modelValue",r.value)},b=()=>{d.value===""&&(r.value.pop(),l("update:modelValue",r.value))},y=h=>{h.key==="Enter"?c():h.key==="Backspace"&&d.value===""&&b()};return e.watch(()=>o.modelValue,h=>{r.value=[...h]}),(h,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",h.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,B=>e.renderSlot(h.$slots,"tag",{key:B,tag:B},()=>[e.createElementVNode("div",Yn,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:x=>m(B),"aria-label":"Remove tag"},"X",8,Jn),e.createElementVNode("span",Xn,e.toDisplayString(B),1)])])),128)),e.renderSlot(h.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":w[0]||(w[0]=B=>d.value=B),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:y,"aria-label":"Add tags"},null,40,Gn)),[[e.vModelText,d.value]]):e.createCommentVNode("",!0)])],2))}}),Qn={class:"w-full max-w-xs form-control"},eo={key:0,class:"label"},to={class:"label-text"},no=["value"],oo={key:0,value:"",disabled:"",selected:""},lo=["value"],Fe=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(t,{expose:n,emit:o}){console.log(t.placeholder);const r=o,a=e.ref(null),s=i=>{const c=i.target;r("update:modelValue",c.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,c)=>(e.openBlock(),e.createElementBlock("div",Qn,[t.label?(e.openBlock(),e.createElementBlock("label",eo,[e.createElementVNode("span",to,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:a,class:"rounded-md w-full select-bordered select",value:t.modelValue,onChange:s},[t.placeholder?(e.openBlock(),e.createElementBlock("option",oo,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("option",{key:m.value,value:m.value},e.toDisplayString(m.text),9,lo))),128))],40,no)]))}}),ao=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"})),ro={key:0,class:"label"},so={class:"label-text"},io=["onKeydown","aria-expanded","aria-activedescendant"],co=["placeholder","disabled"],uo={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},mo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},fo=["onMousedown","id","aria-selected"],po={__name:"filterableSelect",props:{options:{type:Array,required:!0,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Select an option"},modelValue:{type:[String,Number,Object,null],default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","clear"],setup(t,{expose:n,emit:o}){const l=t,r=o,a=e.useSlots(),s=e.computed(()=>{const C=(a.default?a.default():[]).filter(k=>k.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",C.length>0),C.length>0}),d=e.ref(""),i=e.ref(null),c=e.ref(!1),m=e.ref(null),b=e.ref(null),y=e.ref(null),h=e.ref(null),w=()=>{c.value=!l.disabled},B=()=>{c.value=!1,h.value=null,s.value||(i.value&&d.value!==i.value.text?d.value=i.value.text:i.value||(d.value=""))},x=()=>{c.value?B():w()},E=e.computed(()=>{const u=d.value?d.value.toLowerCase():"";return u===""&&!c.value?[]:l.options.filter(k=>k&&k.text?k.text.toLowerCase().includes(u):"")});e.watch(()=>l.modelValue,(u,C)=>{if(u!==C&&B(),u==null)i.value=null,!c.value&&!s.value&&(d.value="");else{const k=l.options.find(V=>V.value===u);k?(i.value=k,!c.value&&!s.value&&(d.value=k.text)):(i.value=null,!c.value&&!s.value&&(d.value=""))}},{immediate:!0});const N=u=>{b.value&&!b.value.contains(u.target)&&B()},T=()=>{setTimeout(()=>{b.value&&!b.value.contains(document.activeElement)&&B()},100)};e.watch(c,u=>{u?setTimeout(()=>{document.addEventListener("click",N)},0):document.removeEventListener("click",N)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",N),window.removeEventListener("keydown",$)});const z=()=>{if(l.disabled)return;const u=i.value;r("update:modelValue",null),u&&r("clear",u)},g=u=>{i.value=u,s.value||(d.value=u.text),r("update:modelValue",u.value),r("select",u),B()},f=()=>{E.value.length>0&&g(E.value[0])},p=()=>{c.value||w()},$=u=>{if(!c.value||E.value.length===0)return;const C=E.value.findIndex((V,I)=>"option-"+I===h.value);let k=-1;if(u.key==="ArrowDown")u.preventDefault(),k=(C+1)%E.value.length;else if(u.key==="ArrowUp")u.preventDefault(),k=(C-1+E.value.length)%E.value.length;else if(u.key==="Enter"&&h.value){u.preventDefault();const V=E.value.find((I,M)=>"option-"+M===h.value);V&&g(V);return}else if(u.key==="Escape"){u.preventDefault(),B(),y.value&&y.value.focus();return}else if(s.value)return;if(k!==-1){h.value="option-"+k;const V=document.getElementById(h.value);V&&requestAnimationFrame(()=>{V.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(c,u=>{u?(window.addEventListener("keydown",$),!s.value&&!d.value&&i.value&&(d.value=i.value.text)):window.removeEventListener("keydown",$)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",N),window.removeEventListener("keydown",$)}),n({isDropdownOpen:c,selectedItem:i,openDropdown:w,closeDropdown:B,toggleDropdown:x,selectItem:g,filterText:d,hasDefaultSlotContent:s}),(u,C)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:b},[t.label?(e.openBlock(),e.createElementBlock("label",ro,[e.createElementVNode("span",so,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!s.value,select:!s.value}]),style:e.normalizeStyle(i.value?"background-image: unset; padding-right: 0.5rem;":""),tabindex:"0",onClick:C[1]||(C[1]=k=>s.value?x():w()),onKeydown:[e.withKeys(e.withModifiers(f,["prevent"]),["enter"]),e.withKeys(e.withModifiers(f,["prevent"]),["space"])],onBlur:T,role:"combobox","aria-haspopup":"listbox","aria-expanded":c.value,"aria-activedescendant":h.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:y},[e.renderSlot(u.$slots,"default",{},()=>[s.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":C[0]||(C[0]=k=>d.value=k),ref_key:"filterInput",ref:m,onFocus:w,onInput:p,tabindex:"-1",disabled:l.disabled},null,40,co)),[[e.vModelText,d.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(Ut),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(z,["stop"])})):e.createCommentVNode("",!0),s.value&&!i.value?(e.openBlock(),e.createBlock(e.unref(Ft),{key:1,class:e.normalizeClass([{"rotate-180":c.value},"mx-2"]),size:20},null,8,["class"])):e.createCommentVNode("",!0)],46,io),e.withDirectives(e.createElementVNode("div",uo,[e.createElementVNode("ul",mo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(k,V)=>(e.openBlock(),e.createElementBlock("li",{key:k.value,onMousedown:e.withModifiers(I=>g(k),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+V,role:"option","aria-selected":i.value&&i.value.value===k.value},[e.createElementVNode("a",null,e.toDisplayString(k.text),1)],40,fo))),128))])],512),[[e.vShow,c.value&&E.value.length>0]])],512))}},ho={class:"w-full max-w-xs form-control"},go={key:0,class:"label"},yo={class:"label-text"},bo=["type","placeholder","disabled","value"],ko={key:1,class:"label"},wo={class:"label-text-alt text-error validator-hint"},xo={key:2,class:"label"},Eo={class:"label-text-alt text-success validator-hint"},Ue=e.defineComponent({__name:"inputField",props:{modelValue:{default:""},label:{default:""},placeholder:{default:""},type:{default:"text"},rules:{default:()=>({})},needsValidation:{type:Boolean,default:!1},successMessage:{default:""},size:{default:"md"},color:{default:""},style:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","validate"],setup(t,{expose:n,emit:o}){const l=t,r=o,a=e.ref(null),s=e.ref(!1),d=e.ref(""),i=e.computed(()=>{var x,E,N,T;let h=!0,w="";const B=l.modelValue;return(x=l.rules)!=null&&x.required&&(B==null||B==="")&&(h=!1,w="This field is required."),h&&((E=l.rules)==null?void 0:E.minLength)!==void 0&&typeof B=="string"&&B.length<l.rules.minLength&&(h=!1,w=`Must be at least ${l.rules.minLength} characters.`),h&&((N=l.rules)==null?void 0:N.maxLength)!==void 0&&typeof B=="string"&&B.length>l.rules.maxLength&&(h=!1,w=`Cannot exceed ${l.rules.maxLength} characters.`),h&&((T=l.rules)!=null&&T.email)&&typeof B=="string"&&B&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(B)||(h=!1,w="Please enter a valid email address.")),d.value=w,r("validate",h),h}),c=e.computed(()=>s.value&&!i.value),m=h=>{const w=h.target;r("update:modelValue",w.value),s.value&&i.value},b=()=>{s.value=!0,i.value};return e.watch(()=>l.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var h;console.log("inputField.vue: focusInput method called."),(h=a.value)==null||h.focus()},isValid:i,isTouched:s,errorMessage:d}),(h,w)=>(e.openBlock(),e.createElementBlock("div",ho,[t.label?(e.openBlock(),e.createElementBlock("label",go,[e.createElementVNode("span",yo,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:a,type:t.type,placeholder:t.placeholder,disabled:l.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":t.size==="xs","input-sm":t.size==="sm","input-md":t.size==="md","input-lg":t.size==="lg","input-xl":t.size==="xl","input-ghost":t.style==="ghost","input-neutral":t.color==="neutral"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!c.value&&!(i.value&&s.value&&t.needsValidation),"input-error":c.value,"input-success-validation":i.value&&s.value&&!c.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:b},null,42,bo),c.value?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("span",wo,e.toDisplayString(d.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("span",Eo,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),Bo=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"})),Co=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(t){const n=t,o=e.ref(n.loading);return e.watch(()=>n.loading,l=>{o.value=l}),(l,r)=>o.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":t.size==="xs"},{"loading-sm":t.size==="sm"},{"loading-md":t.size==="md"},{"loading-lg":t.size==="lg"},{"loading-xl":t.size==="xl"},{"loading-spinner":t.type==="spinner"},{"loading-dots":t.type==="dots"},{"loading-ring":t.type==="ring"},{"loading-balls":t.type==="balls"},{"loading-bars":t.type==="bars"},{"loading-infinity":t.type==="infinity"},{"text-primary":t.color==="primary"},{"text-secondary":t.color==="secondary"},{"text-accent":t.color==="accent"},{"text-neutral":t.color==="neutral"},{"text-info":t.color==="info"},{"text-success":t.color==="success"},{"text-warning":t.color==="warning"},{"text-error":t.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),$o={class:"footer sm:footer-horizontal container"},So={class:"footer-title"},Vo=["href"],No={key:0,class:"sm:hidden w-full"},vo={class:"border-b-2 border-base-100 last:border-b-0 w-full"},Do={tabindex:"0",class:"collapse collapse-plus w-full"},To={class:"collapse-title font-bold text-lg collapsible-footer-title"},Mo={class:"collapse-content flex w-full text-sm"},zo={class:"flex flex-col gap-2.5"},Io={class:"w-full"},Po=["href"],Oo={class:"w-full"},Ao=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(t){const n=t;return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",$o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",So,e.toDisplayString(r.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:a.link},e.toDisplayString(a.text),9,Vo))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",vo,[e.createElementVNode("div",Do,[e.createElementVNode("div",To,e.toDisplayString(r.title),1),e.createElementVNode("div",Mo,[e.createElementVNode("ul",zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",Io,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,Po)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",Oo,[e.renderSlot(o.$slots,"default")])])],2))}}),Lo={},jo={class:"min-h-40 container hero"},Fo={class:"px-0! text-center hero-content"},Uo={class:"mt-9 text-4xl"};function _o(t,n){return e.openBlock(),e.createElementBlock("div",jo,[e.createElementVNode("div",Fo,[e.createElementVNode("div",null,[e.createElementVNode("h1",Uo,[e.renderSlot(t.$slots,"title",{},()=>[n[0]||(n[0]=e.createTextVNode("hero title",-1))])]),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"description",{class:"py-9"})]),e.renderSlot(t.$slots,"call-to-action-block",{class:"max-w-full"},()=>[n[1]||(n[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const Ro=H(Lo,[["render",_o]]),qo={class:"flex flex-row place-content-center gap-4 categories"},Ho=["onClick"],Wo=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(t,{emit:n}){const o=t,l=n;function r(a){l("update:currentCategory",a)}return(a,s)=>(e.openBlock(),e.createElementBlock("div",qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.searchOptions,d=>(e.openBlock(),e.createElementBlock("div",{key:d.category},[e.createElementVNode("button",{onClick:i=>r(d.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":o.currentCategory===d.category}])},e.toDisplayString(d.category),11,Ho)]))),128))]))}}),Ko={class:"md:flex hidden navbar-start"},Yo={class:"md:flex justify-center items-center hidden navbar-center"},Jo={class:"md:flex hidden navbar-end"},Xo={class:"navbar-bottom md:flex hidden"},Go=H(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(t){const n=t;return(o,l)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",n.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Ko,[e.renderSlot(o.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Yo,[e.renderSlot(o.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Jo,[e.renderSlot(o.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Xo,[e.renderSlot(o.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Zo={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},Qo=["onClick","aria-selected"],el={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},tl={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},nl=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(t,{emit:n}){const o=t,l=e.ref(o.items[0]),r=n;function a(i){l.value=i,r("tab-changed",i)}function s(){const c=(o.items.indexOf(l.value)+1)%o.items.length;a(o.items[c])}function d(){const c=(o.items.indexOf(l.value)-1+o.items.length)%o.items.length;a(o.items[c])}return e.onMounted(()=>{o.items&&a(o.items[0])}),e.onUnmounted(()=>{o.rotateTabsAfter&&o.rotateTabsAfter>0&&setInterval(()=>{s()},o.rotateTabsAfter*1e3)}),(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":t.buttonOnlyMode}])},[t.withControlls?(e.openBlock(),e.createElementBlock("div",Zo,[e.createElementVNode("button",{onClick:c[0]||(c[0]=m=>d()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:c[1]||(c[1]=m=>s()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",m===l.value?"bg-primary text-base-100":""]),onClick:b=>a(m),"aria-selected":l.value==m},e.toDisplayString(m),11,Qo),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",el,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",tl,[e.renderSlot(i.$slots,"default")])],64))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class ol{constructor(n){Pe(this,_);Pe(this,J,new Set);Oe(this,_,n)}get current(){return G(this,_)}set current(n){G(this,_)!=n&&(Oe(this,_,n),G(this,J).forEach(o=>o(n)))}on(n){return G(this,J).add(n),()=>G(this,J).delete(n)}}_=new WeakMap,J=new WeakMap;const _e=t=>new ol(t),he=Symbol.for("atomico.hooks");globalThis[he]=globalThis[he]||{};let W=globalThis[he];const ll=Symbol.for("Atomico.suspense"),Re=Symbol.for("Atomico.effect"),al=Symbol.for("Atomico.layoutEffect"),qe=Symbol.for("Atomico.insertionEffect"),K=(t,n,o)=>{const{i:l,hooks:r}=W.c,a=r[l]=r[l]||{};return a.value=t(a.value),a.effect=n,a.tag=o,W.c.i++,r[l].value},rl=t=>K((n=_e(t))=>n),Q=()=>K((t=_e(W.c.host))=>t),He=()=>W.c.update,sl=(t,n,o=0)=>{let l={},r=!1;const a=()=>r,s=(d,i)=>{for(const c in l){const m=l[c];m.effect&&m.tag===d&&(m.value=m.effect(m.value,i))}};return{load:d=>{W.c={host:n,hooks:l,update:t,i:0,id:o};let i;try{r=!1,i=d()}catch(c){if(c!==ll)throw c;r=!0}finally{W.c=null}return i},cleanEffects:d=>(s(qe,d),()=>(s(al,d),()=>{s(Re,d)})),isSuspense:a}},Y=Symbol.for;function We(t,n){const o=t.length;if(o!==n.length)return!1;for(let l=0;l<o;l++){let r=t[l],a=n[l];if(r!==a)return!1}return!0}const A=t=>typeof t=="function",ee=t=>typeof t=="object",{isArray:il}=Array,ge=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function Ke(t,n){let o;const l=r=>{let{length:a}=r;for(let s=0;s<a;s++){const d=r[s];if(d&&Array.isArray(d))l(d);else{const i=typeof d;if(d==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(o==null&&(o=""),o+=d):(o!=null&&(n(o),o=null),n(d))}}};l(t),o!=null&&n(o)}const Ye=(t,n,o)=>(t.addEventListener(n,o),()=>t.removeEventListener(n,o));class Je{constructor(n,o,l){this.message=o,this.target=n,this.value=l}}class Xe extends Je{}class cl extends Je{}const ce="Custom",dl=null,ul={true:1,"":1,1:1};function ml(t,n,o,l,r){const{type:a,reflect:s,event:d,value:i,attr:c=fl(n)}=(o==null?void 0:o.name)!=ce&&ee(o)&&o!=dl?o:{type:o},m=(a==null?void 0:a.name)===ce&&a.map,b=i!=null?a==Function||!A(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(y){const h=this[n];b&&a!=Boolean&&y==null&&(y=b());const{error:w,value:B}=(m?gl:yl)(a,y);if(w&&B!=null)throw new Xe(this,`The value defined for prop '${n}' must be of type '${a.name}'`,B);h!=B&&(this._props[n]=B??void 0,this.update(),d&&Ge(this,d),this.updated.then(()=>{s&&(this._ignoreAttr=c,pl(this,a,c,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),b&&(r[n]=b()),l[c]={prop:n,type:a}}const Ge=(t,{type:n,base:o=CustomEvent,...l})=>t.dispatchEvent(new o(n,l)),fl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),pl=(t,n,o,l)=>l==null||n==Boolean&&!l?t.removeAttribute(o):t.setAttribute(o,(n==null?void 0:n.name)===ce&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(l):ee(l)?JSON.stringify(l):n==Boolean?"":l),hl=(t,n)=>t==Boolean?!!ul[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==ce?n:new t(n),gl=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},yl=(t,n)=>t==null||n==null?{value:n,error:!1}:t!=String&&n===""?{value:void 0,error:!1}:t==Object||t==Array||t==Symbol?{value:n,error:{}.toString.call(n)!==`[object ${t.name}]`}:n instanceof t?{value:n,error:t==Number&&Number.isNaN(n.valueOf())}:t==String||t==Number||t==Boolean?{value:n,error:t==Number?typeof n!="number"?!0:Number.isNaN(n):t==String?typeof n!="string":typeof n!="boolean"}:{value:n,error:!0};let bl=0;const kl=t=>{var o;return((o=(t==null?void 0:t.dataset)||{})==null?void 0:o.hydrate)||""||"c"+bl++},te=(t,n=HTMLElement)=>{const o={},l={},r="prototype"in n&&n.prototype instanceof Element,a=r?n:"base"in n?n.base:HTMLElement,{props:s,styles:d}=r?t:n;class i extends a{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in l)this[m]=l[m]}static get styles(){return[super.styles,d]}async _setup(){if(this._props)return;this._props={};let m,b;this.mounted=new Promise(x=>this.mount=()=>{x(),m!=this.parentNode&&(b!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(x=>this.unmount=()=>{x(),(m!=this.parentNode||!this.isConnected)&&(y.cleanEffects(!0)()(),b=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const y=sl(()=>this.update(),this,kl(this));let h,w=!0;const B=ge(this);this.update=()=>(h||(h=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const x=y.load(this._render),E=y.cleanEffects();return x&&x.render(this,this.symbolId,B),h=!1,w&&!y.isSuspense()&&(w=!1,!B&&wl(this)),E()}finally{h=!1}}).then(x=>{x&&x()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,b,y){if(o[m]){if(m===this._ignoreAttr||b===y)return;const{prop:h,type:w}=o[m];try{this[h]=hl(w,y)}catch{throw new cl(this,`The value defined as attr '${m}' cannot be parsed by type '${w.name}'`,y)}}else super.attributeChangedCallback(m,b,y)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const b in s)ml(this.prototype,b,s[b],o,l);return Object.keys(o).concat(m)}}return i};function wl(t){const{styles:n}=t.constructor,{shadowRoot:o}=t;if(o&&n.length){const l=[];Ke(n,r=>{r&&(r instanceof Element?o.appendChild(r.cloneNode(!0)):l.push(r))}),l.length&&(o.adoptedStyleSheets=l)}}const Ze=t=>(n,o)=>{K(([l,r]=[])=>((r||!r)&&(r&&We(r,o)?l=l||!0:(A(l)&&l(),l=null)),[l,o]),([l,r],a)=>a?(A(l)&&l(),[]):[l||n(),r],t)},ne=Ze(Re),xl=Ze(qe);class Qe extends Array{constructor(n,o){let l=!0;const r=a=>{try{o(a,this,l)}finally{l=!1}};super(void 0,r,o),r(n)}}const ye=t=>{const n=He();return K((o=new Qe(t,(l,r,a)=>{l=A(l)?l(r[0]):l,l!==r[0]&&(r[0]=l,a||n())}))=>o)},L=(t,n)=>{const[o]=K(([l,r,a=0]=[])=>((!r||r&&!We(r,n))&&(l=t()),[l,n,a]));return o},be=t=>{const{current:n}=Q();if(!(t in n))throw new Xe(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return K((o=new Qe(n[t],(l,r)=>{l=A(l)?l(n[t]):l,n[t]=l}))=>(o[0]=n[t],o))},F=(t,n={})=>{const o=Q();return o[t]||(o[t]=(l=n.detail)=>Ge(o.current,{type:t,...n,detail:l})),o[t]},ke=Y("atomico/options");globalThis[ke]=globalThis[ke]||{sheet:!!document.adoptedStyleSheets};const et=globalThis[ke],El={checked:1,value:1,selected:1},Bl={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Cl={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},de={},we=[];class xe extends Text{}const $l=Y("atomico/id"),oe=Y("atomico/type"),Ee=Y("atomico/ref"),tt=Y("atomico/vnode"),Sl=()=>{};function Vl(t,n,o){return ot(this,t,n,o)}const nt=(t,n,...o)=>{const l=n||de;let{children:r}=l;if(r=r??(o.length?o:we),t===Sl)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=we?{children:r,...l}:l);const s=et.render||Vl;return{[oe]:tt,type:t,props:l,children:r,key:l.key,shadow:l.shadowDom,static:l.staticNode,raw:a,is:l.is,clone:l.cloneNode,render:s}};function ot(t,n,o=$l,l,r){let a;if(n&&n[o]&&n[o].vnode==t||t[oe]!=tt)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Ee]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Ee]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(l=!0,n=t.type.cloneNode(!0),n[Ee]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:r?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const s=n[o]?n[o]:de,{vnode:d=de,cycle:i=0}=s;let{fragment:c,handlers:m}=s;const{children:b=we,props:y=de}=d;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=y&&Dl(n,y,t.props,m,r),t.children!==b){const h=t.shadow?n.shadowRoot:n;c=vl(t.children,c,h,o,!i&&l,r&&t.type=="foreignObject"?!1:r)}return n[o]={vnode:t,handlers:m,fragment:c,cycle:i+1},n}function Nl(t,n){const o=new xe(""),l=new xe("");let r;if(t[n?"prepend":"append"](o),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(ge(a,!0)&&!ge(s,!0)){r=a;break}a=s}}return r?r.before(l):t.append(l),{markStart:o,markEnd:l}}function vl(t,n,o,l,r,a){t=t==null?null:il(t)?t:[t];const s=n||Nl(o,r),{markStart:d,markEnd:i,keyes:c}=s;let m;const b=c&&new Set;let y=d;if(t&&Ke(t,h=>{if(typeof h=="object"&&!h[oe])return;const w=h[oe]&&h.key,B=c&&w!=null&&c.get(w);y!=i&&y===B?b.delete(y):y=y==i?i:y.nextSibling;const x=c?B:y;let E=x;if(h[oe])E=ot(h,x,l,r,a);else{const N=h+"";!(E instanceof Text)||E instanceof xe?E=new Text(N):E.data!=N&&(E.data=N)}E!=y&&(c&&b.delete(E),!x||c?(o.insertBefore(E,y),c&&y!=i&&b.add(y)):x==i?o.insertBefore(E,i):(o.replaceChild(E,x),y=E)),w!=null&&(m=m||new Map,m.set(w,E))}),y=y==i?i:y.nextSibling,n&&y!=i)for(;y!=i;){const h=y;y=y.nextSibling,h.remove()}return b&&b.forEach(h=>h.remove()),s.keyes=m,s}function Dl(t,n,o,l,r){for(const a in n)!(a in o)&<(t,a,n[a],null,r,l);for(const a in o)lt(t,a,n[a],o[a],r,l)}function lt(t,n,o,l,r,a){if(n=n=="class"&&!r?"className":n,o=o??null,l=l??null,n in t&&El[n]&&(o=t[n]),!(l===o||Cl[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(A(l)||A(o)))Tl(t,n.slice(2),l,a);else if(n=="ref")l&&(A(l)?l(t):l.current=t);else if(n=="style"){const{style:s}=t;o=o||"",l=l||"";const d=ee(o),i=ee(l);if(d)for(const c in o)if(i)!(c in l)&&at(s,c,null);else break;if(i)for(const c in l){const m=l[c];d&&o[c]===m||at(s,c,m)}else s.cssText=l}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!Bl[n]&&n in t||A(l)||A(o))?t[n]=l??"":l==null?t.removeAttribute(s):t.setAttribute(s,ee(l)?JSON.stringify(l):l)}}function Tl(t,n,o,l){if(l.handleEvent||(l.handleEvent=r=>l[r.type].call(t,r)),o){if(!l[n]){const r=o.capture||o.once||o.passive?Object.assign({},o):null;t.addEventListener(n,l,r)}l[n]=o}else l[n]&&(t.removeEventListener(n,l),delete l[n])}function at(t,n,o){let l="setProperty";o==null&&(l="removeProperty",o=null),~n.indexOf("-")?t[l](n,o):t[n]=o}const rt={};function ue(t,...n){const o=(t.raw||t).reduce((l,r,a)=>l+r+(n[a]||""),"");return rt[o]=rt[o]||Ml(o)}function Ml(t){if(et.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const zl=nt("host",{style:"display: contents"}),Be=Y("atomico/context"),Il=(t,n)=>{const o=Q();xl(()=>Ye(o.current,"ConnectContext",l=>{t===l.detail.id&&(l.stopPropagation(),l.detail.connect(n))}),[t])},Pl=t=>{const n=F("ConnectContext",{bubbles:!0,composed:!0}),o=()=>{let a;return n({id:t,connect(s){a=s}}),a},[l,r]=ye(o);return ne(()=>{l||(t[Be]||(t[Be]=customElements.whenDefined(new t().localName)),t[Be].then(()=>r(o)))},[t]),l},Ol=t=>{const n=Pl(t),o=He();return ne(()=>{if(n)return Ye(n,"UpdatedValue",o)},[n]),(n||t).value},Al=t=>{const n=te(()=>(Il(n,Q().current),zl),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},v=(t,n,o)=>(n==null?n={key:o}:n.key=o,nt(t,n)),le=v,st=ue`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,it=ue`.vh{position:absolute;transform:scale(0)}`;function Ce(){const t=new Date;return new D(t.getFullYear(),t.getMonth()+1,t.getDate())}function $e(t,n=0){const o=O(t),l=o.getUTCDay(),r=(l<n?7:0)+l-n;return o.setUTCDate(o.getUTCDate()-r),D.from(o)}function ct(t,n=0){return $e(t,n).add({days:6})}function dt(t){return D.from(new Date(Date.UTC(t.year,t.month,0)))}function me(t,n,o){return n&&D.compare(t,n)<0?n:o&&D.compare(t,o)>0?o:t}const Ll={days:1};function jl(t,n=0){let o=$e(t.toPlainDate(),n);const l=ct(dt(t),n),r=[];for(;D.compare(o,l)<0;){const a=[];for(let s=0;s<7;s++)a.push(o),o=o.add(Ll);r.push(a)}return r}function O(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const Fl=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Se=(t,n)=>t.toString().padStart(n,"0");class D{constructor(n,o,l){this.year=n,this.month=o,this.day=l}add(n){const o=O(this);if("days"in n)return o.setUTCDate(this.day+n.days),D.from(o);let{year:l,month:r}=this;"months"in n?(r=this.month+n.months,o.setUTCMonth(r-1)):(l=this.year+n.years,o.setUTCFullYear(l));const a=D.from(O({year:l,month:r,day:1}));return me(D.from(o),a,dt(a))}toString(){return`${Se(this.year,4)}-${Se(this.month,2)}-${Se(this.day,2)}`}toPlainYearMonth(){return new fe(this.year,this.month)}equals(n){return D.compare(this,n)===0}static compare(n,o){return n.year<o.year?-1:n.year>o.year?1:n.month<o.month?-1:n.month>o.month?1:n.day<o.day?-1:n.day>o.day?1:0}static from(n){if(typeof n=="string"){const o=n.match(Fl);if(!o)throw new TypeError(n);const[,l,r,a]=o;return new D(parseInt(l,10),parseInt(r,10),parseInt(a,10))}return new D(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class fe{constructor(n,o){this.year=n,this.month=o}add(n){const o=O(this),l=(n.months??0)+(n.years??0)*12;return o.setUTCMonth(o.getUTCMonth()+l),new fe(o.getUTCFullYear(),o.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new D(this.year,this.month,1)}}function pe(t,n){if(n)try{return t.from(n)}catch{}}function U(t){const[n,o]=be(t);return[L(()=>pe(D,n),[n]),l=>o(l==null?void 0:l.toString())]}function Ul(t){const[n="",o]=be(t);return[L(()=>{const[l,r]=n.split("/"),a=pe(D,l),s=pe(D,r);return a&&s?[a,s]:[]},[n]),l=>o(`${l[0]}/${l[1]}`)]}function _l(t){const[n="",o]=be(t);return[L(()=>{const l=[];for(const r of n.trim().split(/\s+/)){const a=pe(D,r);a&&l.push(a)}return l},[n]),l=>o(l.join(" "))]}function ae(t,n){return L(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function ut(t,n,o){const l=ae(t,o);return L(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const d=(a.getUTCDay()-n+7)%7;r[d]=l.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,l])}const mt=(t,n,o)=>me(t,n,o)===t,ft=t=>t.target.matches(":dir(ltr)"),Rl={month:"long",day:"numeric"},ql={month:"long"},Hl={weekday:"long"},Ve={bubbles:!0};function Wl({props:t,context:n}){const{offset:o}=t,{firstDayOfWeek:l,isDateDisallowed:r,min:a,max:s,today:d,page:i,locale:c,focusedDate:m,formatWeekday:b}=n,y=d??Ce(),h=ut(Hl,l,c),w=L(()=>({weekday:b}),[b]),B=ut(w,l,c),x=ae(Rl,c),E=ae(ql,c),N=L(()=>i.start.add({months:o}),[i,o]),T=L(()=>jl(N,l),[N,l]),z=F("focusday",Ve),g=F("selectday",Ve),f=F("hoverday",Ve);function p(C){z(me(C,a,s))}function $(C){let k;switch(C.key){case"ArrowRight":k=m.add({days:ft(C)?1:-1});break;case"ArrowLeft":k=m.add({days:ft(C)?-1:1});break;case"ArrowDown":k=m.add({days:7});break;case"ArrowUp":k=m.add({days:-7});break;case"PageUp":k=m.add(C.shiftKey?{years:-1}:{months:-1});break;case"PageDown":k=m.add(C.shiftKey?{years:1}:{months:1});break;case"Home":k=$e(m,l);break;case"End":k=ct(m,l);break;default:return}p(k),C.preventDefault()}function u(C){var Et,Bt;const k=N.equals(C);if(!n.showOutsideDays&&!k)return;const V=C.equals(m),I=C.equals(y),M=O(C),R=r==null?void 0:r(M),j=!mt(C,a,s);let xt="",X;if(n.type==="range"){const[q,re]=n.value,Ct=q==null?void 0:q.equals(C),$t=re==null?void 0:re.equals(C);X=q&&re&&mt(C,q,re),xt=`${Ct?"range-start":""} ${$t?"range-end":""} ${X&&!Ct&&!$t?"range-inner":""}`}else n.type==="multi"?X=n.value.some(q=>q.equals(C)):X=(Et=n.value)==null?void 0:Et.equals(C);return{part:`${`button day day-${M.getDay()} ${k?X?"selected":"":"outside"} ${R?"disallowed":""} ${I?"today":""} ${((Bt=n.getDayParts)==null?void 0:Bt.call(n,M))??""}`} ${xt}`,tabindex:k&&V?0:-1,disabled:j,"aria-disabled":R?"true":void 0,"aria-pressed":k&&X,"aria-current":I?"date":void 0,"aria-label":x.format(M),onkeydown:$,onclick(){R||g(C),p(C)},onmouseover(){!R&&!j&&f(C)}}}return{weeks:T,yearMonth:N,daysLong:h,daysVisible:B,formatter:E,getDayProps:u}}const Ne=Ce(),ve=Al({type:"date",firstDayOfWeek:1,focusedDate:Ne,page:{start:Ne.toPlainYearMonth(),end:Ne.toPlainYearMonth()}});customElements.define("calendar-ctx",ve);const Kl=(t,n)=>(n+t)%7,pt=te(t=>{const n=Ol(ve),o=rl(),l=Wl({props:t,context:n});function r(){var a;(a=o.current.querySelector("button[tabindex='0']"))==null||a.focus()}return le("host",{shadowDom:!0,focus:r,children:[v("div",{id:"h",part:"heading",children:l.formatter.format(O(l.yearMonth))}),le("table",{ref:o,"aria-labelledby":"h",part:"table",children:[v("thead",{children:v("tr",{part:"tr head",children:l.daysLong.map((a,s)=>le("th",{part:`th day day-${Kl(n.firstDayOfWeek,s)}`,scope:"col",children:[v("span",{class:"vh",children:a}),v("span",{"aria-hidden":"true",children:l.daysVisible[s]})]}))})}),v("tbody",{children:l.weeks.map((a,s)=>v("tr",{part:"tr week",children:a.map((d,i)=>{const c=l.getDayProps(d);return v("td",{part:"td",children:c&&v("button",{...c,children:d.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[st,it,ue`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",pt);function ht(t){return v("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:v("slot",{name:t.name,children:t.children})})}function De(t){const n=O(t.page.start),o=O(t.page.end);return le("div",{role:"group","aria-labelledby":"h",part:"container",children:[v("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,o)}),le("div",{part:"header",children:[v(ht,{name:"previous",onclick:t.previous,children:"Previous"}),v("slot",{part:"heading",name:"heading",children:v("div",{"aria-hidden":"true",children:t.format.formatRange(n,o)})}),v(ht,{name:"next",onclick:t.next,children:"Next"})]}),v(ve,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:v("slot",{})})]})}const Te={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},Me=[st,it,ue`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`],Yl={year:"numeric"},Jl={year:"numeric",month:"long"};function ze(t,n){return(n.year-t.year)*12+n.month-t.month}const gt=(t,n)=>(t=n===12?new fe(t.year,1):t,{start:t,end:t.add({months:n-1})});function Xl({pageBy:t,focusedDate:n,months:o,max:l,min:r,goto:a}){const s=t==="single"?1:o,[d,i]=ye(()=>gt(n.toPlainYearMonth(),o)),c=b=>i(gt(d.start.add({months:b}),o)),m=b=>{const y=ze(d.start,b.toPlainYearMonth());return y>=0&&y<o};return ne(()=>{if(m(n))return;const b=ze(n.toPlainYearMonth(),d.start);a(n.add({months:b}))},[d.start]),ne(()=>{if(m(n))return;const b=ze(d.start,n.toPlainYearMonth());c(b===-1?-s:b===o?s:Math.floor(b/o)*o)},[n,s,o]),{page:d,previous:!r||!m(r)?()=>c(-s):void 0,next:!l||!m(l)?()=>c(s):void 0}}function Ie({months:t,pageBy:n,locale:o,focusedDate:l,setFocusedDate:r}){const[a]=U("min"),[s]=U("max"),[d]=U("today"),i=F("focusday"),c=F("change"),m=L(()=>me(l??d??Ce(),a,s),[l,d,a,s]);function b(E){r(E),i(O(E))}const{next:y,previous:h,page:w}=Xl({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:b}),B=Q();function x(E){const N=(E==null?void 0:E.target)??"day";N==="day"?B.current.querySelectorAll("calendar-month").forEach(T=>T.focus(E)):B.current.shadowRoot.querySelector(`[part~='${N}']`).focus(E)}return{format:ae(Yl,o),formatVerbose:ae(Jl,o),page:w,focusedDate:m,dispatch:c,onFocus(E){E.stopPropagation(),b(E.detail),setTimeout(x)},min:a,max:s,today:d,next:y,previous:h,focus:x}}const yt=te(t=>{const[n,o]=U("value"),[l=n,r]=U("focusedDate"),a=Ie({...t,focusedDate:l,setFocusedDate:r});function s(d){o(d.detail),a.dispatch()}return v("host",{shadowDom:!0,focus:a.focus,children:v(De,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Te,styles:Me});customElements.define("calendar-date",yt);const bt=(t,n)=>D.compare(t,n)<0?[t,n]:[n,t],kt=te(t=>{const[n,o]=Ul("value"),[l=n[0],r]=U("focusedDate"),a=Ie({...t,focusedDate:l,setFocusedDate:r}),s=F("rangestart"),d=F("rangeend"),[i,c]=U("tentative"),[m,b]=ye();ne(()=>b(void 0),[i]);function y(x){a.onFocus(x),h(x)}function h(x){x.stopPropagation(),i&&b(x.detail)}function w(x){const E=x.detail;x.stopPropagation(),i?(o(bt(i,E)),c(void 0),d(O(E)),a.dispatch()):(c(E),s(O(E)))}const B=i?bt(i,m??i):n;return v("host",{shadowDom:!0,focus:a.focus,children:v(De,{...t,...a,type:"range",value:B,onFocus:y,onHover:h,onSelect:w})})},{props:{...Te,tentative:{type:String,value:""}},styles:Me});customElements.define("calendar-range",kt);const wt=te(t=>{const[n,o]=_l("value"),[l=n[0],r]=U("focusedDate"),a=Ie({...t,focusedDate:l,setFocusedDate:r});function s(d){const i=[...n],c=n.findIndex(m=>m.equals(d.detail));c<0?i.push(d.detail):i.splice(c,1),o(i),a.dispatch()}return v("host",{shadowDom:!0,focus:a.focus,children:v(De,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Te,styles:Me});customElements.define("calendar-multi",wt);const Gl=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:yt,CalendarMonth:pt,CalendarMulti:wt,CalendarRange:kt},Symbol.toStringTag,{value:"Module"}));S.Accordion=Zt,S.AdvancedSearch=In,S.Avatar=tn,S.Badge=nn,S.ButtonComponent=Nt,S.Card=dn,S.Carousel=gn,S.CarouselItem=yn,S.CategoryNavigation=Wo,S.DatetimePicker=je,S.Dropdown=Tt,S.FilterableSelect=po,S.Footer=Ao,S.Hero=Ro,S.InputField=Ue,S.Loader=Co,S.Modal=It,S.NavigationBar=Go,S.Rating=Kn,S.Selector=Fe,S.Swap=At,S.Tab=nl,S.TagInput=Zn,S.ThemeController=Kt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|
|
46
|
+
*/const pn=ke("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),hn=(t,n)=>{const l=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const o=window.localStorage.getItem(t);l.value=o?JSON.parse(o):n}}),e.watch(l,o=>{typeof window<"u"&&window.localStorage.setItem(t,JSON.stringify(o))}),l},gn={class:"swap-rotate swap"},yn=["true-value","false-value"],kn=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,l=hn("theme",n.lightTheme);function o(a){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",a)}return e.onMounted(()=>o(l.value?l.value:"")),e.watch(l,a=>{o(a)}),(a,s)=>(e.openBlock(),e.createElementBlock("label",gn,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":s[0]||(s[0]=r=>e.isRef(l)?l.value=r:null),"true-value":n.lightTheme,"false-value":n.darkTheme},null,8,yn),[[e.vModelCheckbox,e.unref(l)]]),e.createVNode(e.unref(pn),{class:"swap-off fill-current"}),e.createVNode(e.unref(fn),{class:"swap-on fill-current"})]))}}),bn={key:0,class:"join join-vertical w-full"},wn=["name"],Bn={key:1,type:"checkbox"},$n={class:"collapse-title font-bold text-2xl lg:text-4xl"},Cn={class:"collapse-content"},En=["innerHTML"],xn=["name"],Sn={key:1,type:"checkbox"},Vn={class:"collapse-title font-bold text-2xl lg:text-4xl"},Nn={class:"collapse-content"},vn=["innerHTML"],zn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{},toggle:{type:Boolean,default:!1}},setup(t){const n=t;return(l,o)=>n.joinItems?(e.openBlock(),e.createElementBlock("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300 join-item",[t.icon?`collapse-${t.icon}`:""]]),key:s},[t.toggle?(e.openBlock(),e.createElementBlock("input",Bn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,wn)),e.createElementVNode("div",$n,e.toDisplayString(a.title),1),e.createElementVNode("div",Cn,[e.createElementVNode("span",{innerHTML:a.content},null,8,En)])],2))),128))])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.items,(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:""]]),key:s},[t.toggle?(e.openBlock(),e.createElementBlock("input",Sn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,xn)),e.createElementVNode("div",Vn,e.toDisplayString(a.title),1),e.createElementVNode("div",Nn,[e.createElementVNode("span",{innerHTML:a.content},null,8,vn)])],2))),128))}}),Dn=["src"],_n={class:"text-xl"},Mn=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.onlineStatus);return e.watch(()=>n.onlineStatus,o=>{o&&(l.value=o)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":l.value==="online"},{"avatar-offline":l.value==="offline"}]])},[t.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("img",{src:t.image,class:"w-full h-full"},null,8,Dn)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["flex justify-center bg-neutral p-[25%] rounded w-16 text-neutral-content text-center",[{"rounded-full":t.fullyRounded},{rounded:!t.fullyRounded}]])},[e.createElementVNode("p",_n,e.toDisplayString(t.initials),1)],2))],2))}}),Tn=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(t){const n=t,l={"extra small":"badge-xs",small:"badge-sm",medium:"badge-md",large:"badge-lg"},o={neutral:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",accent:"badge-accent",ghost:"badge-ghost",info:"badge-info",success:"badge-success",warning:"badge-warning",error:"badge-error"};return(a,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",l[n.size],o[n.color],{"badge-outline":n.outline}])},[e.renderSlot(a.$slots,"default")],2))}}),In=["src","alt"],Pn={key:0,class:"card-body"},jn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},On={key:1,class:"text-left"},Ln={class:"flex-col flex-nowrap mt-auto card-actions empty:hidden"},An={key:1,class:"card-body"},Fn=e.defineComponent({__name:"card",props:{imgUrl:{default:""},alt:{default:"A beautiful picture that says something about this card"},title:{default:""},description:{default:""},outlined:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},class:{default:""},background:{default:"bg-base-100"},color:{default:""},imgHeight:{default:"h-44"},imgWidth:{default:""},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.ref(n.outlined);return e.watch(()=>n.outlined,o=>{l.value=o}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group bg-base-100 shadow-xl rounded-sm min-w-64 max-w-full h-full card card-compact",[{"border-4 border-primary":l.value},t.color??"",t.background,{"card-side":t.horizontal}]])},[e.createElementVNode("figure",{class:e.normalizeClass([{"contents!":t.horizontal&&t.imgWidth}])},[t.imgUrl||t.imgUrl&&!t.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgUrl,alt:t.alt,class:e.normalizeClass(["rounded-sm object-cover",[{hidden:t.loading},!t.horizontal&&t.imgHeight?t.imgHeight:"h-full",t.horizontal&&t.imgWidth?t.imgWidth:"w-full"]])},null,10,In)):e.createCommentVNode("",!0),t.loading&&t.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",t.imgHeight])},null,2)):e.createCommentVNode("",!0)],2),t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Pn,[t.title?(e.openBlock(),e.createElementBlock("h2",jn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"details",{class:"empty:hidden"}),t.description?(e.openBlock(),e.createElementBlock("p",On,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ln,[e.renderSlot(o.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",An,[...a[0]||(a[0]=[e.createElementVNode("div",{class:"flex flex-col gap-4 w-52"},[e.createElementVNode("div",{class:"w-28 h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"}),e.createElementVNode("div",{class:"w-full h-4 skeleton"})],-1)])])):e.createCommentVNode("",!0)],2))}}),ct=Symbol("CarouselItemStyle"),Rn={key:0,class:"flex-shrink-0"},Un={key:0,class:"flex-shrink-0"},qn={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Wn=["onClick","aria-label"],Hn=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:t=>t==="horizontal"||t==="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:t=>t>=1},gap:{type:Number,default:0,validator:t=>t>=0},slideDuration:{type:Number,default:250,validator:t=>t>=0},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0},containerBreakout:{type:Boolean,default:!1},peekAmount:{type:Number,default:0,validator:t=>t>=0}},setup(t,{expose:n}){const l=t,o=e.ref(l.initialSlide),a=e.ref(null),s=e.ref(null),r=e.ref(0),c=e.ref(!1),i=e.ref(0),d=e.ref(0),m=e.ref(!1),b=e.ref(0),p=e.ref(0),u=e.ref(0),V=e.ref(0),E=e.ref(0),v=e.ref(0),x=e.ref(0),_=e.ref(null),A=e.ref(null),H=e.ref(0),g=e.ref(null),S=e.computed(()=>{const w=Object.keys(l.breakpoints).map(Number).sort((M,I)=>M-I);let N={};for(const M of w)d.value>=M&&(N={...N,...l.breakpoints[M]});return N}),C=e.computed(()=>S.value.slidesPerView??l.slidesPerView),z=e.computed(()=>S.value.gap??l.gap),f=e.computed(()=>S.value.containerBreakout??l.containerBreakout),k=e.computed(()=>{if(!f.value)return 0;const w=S.value.peekAmount;if(w!==void 0){if(w>0)return w}else if(l.peekAmount>0)return l.peekAmount;if(a.value){const N=a.value.parentElement;if(N){const I=window.getComputedStyle(N).maxWidth;if(I&&I!=="none"){const R=parseFloat(I),j=window.innerWidth;if(j>R){const G=(j-R)/2;return Math.min(G,80)}}}}return 0}),$=e.computed(()=>{const w={};return f.value&&k.value>0&&(l.sliderOrientation==="horizontal"?(w.marginLeft=`-${k.value}px`,w.marginRight=`-${k.value}px`,w.width=`calc(100% + ${k.value*2}px)`):(w.marginTop=`-${k.value}px`,w.marginBottom=`-${k.value}px`,w.height=`calc(100% + ${k.value*2}px)`)),w}),P=e.computed(()=>{const w={gap:`${z.value}px`};return f.value&&k.value>0&&(l.sliderOrientation==="horizontal"?(w.paddingLeft=`${k.value}px`,w.paddingRight=`${k.value}px`):(w.paddingTop=`${k.value}px`,w.paddingBottom=`${k.value}px`)),w}),q=e.computed(()=>{const w=l.sliderOrientation==="horizontal",M=`calc((100% - ${C.value>1?(C.value-1)*z.value:0}px) / ${C.value})`;return w?{width:M}:{height:M}});e.provide(ct,q);const O=()=>{s.value?i.value=s.value.children.length:i.value=0},U=()=>{if(!a.value||C.value<=0)return 0;let N=l.sliderOrientation==="horizontal"?a.value.offsetWidth:a.value.offsetHeight;f.value&&k.value>0&&(N=N-k.value*2);const M=(C.value-1)*z.value;return N<=0?0:(N-M)/C.value},h=e.computed(()=>{if(!a.value||i.value===0||C.value===0)return 0;let N=l.sliderOrientation==="horizontal"?a.value.offsetWidth:a.value.offsetHeight;f.value&&k.value>0&&(N=N-k.value*2);const M=U(),I=i.value*(M+z.value)-z.value;return Math.max(0,I-N)}),B=async(w,N=!1)=>{if(!a.value||C.value<=0||c.value||(O(),i.value===0))return;const M=U();if(M<=0)return;const I=M+z.value,R=h.value;let j=w;l.infinite?j=(w%i.value+i.value)%i.value:j=Math.max(0,Math.min(w,i.value-C.value));const G=j*I,W=l.infinite?G:Math.max(0,Math.min(G,R));if(N||l.slideDuration===0){s.value&&(s.value.style.transitionDuration="0ms",s.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`),r.value=W,o.value=j,c.value=!1,l.autoplay&&Se();return}c.value=!0;const ee=r.value,Y=W-ee,re=performance.now(),ie=ne=>{if(!s.value)return;const me=ne-re,Xt=Math.min(1,me/l.slideDuration),Ks=1-Math.pow(1-Xt,3),at=ee+Y*Ks;s.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-at}px, 0, 0)`:`translate3d(0, ${-at}px, 0)`,r.value=at,Xt<1?_.value=requestAnimationFrame(ie):(s.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-W}px, 0, 0)`:`translate3d(0, ${-W}px, 0)`,r.value=W,o.value=j,c.value=!1,l.autoplay&&Se(),_.value=null)};_.value=requestAnimationFrame(ie)},D=()=>{l.infinite&&o.value>=i.value-C.value?B(0):B(o.value+1)},F=()=>{l.infinite&&o.value<=0?B(i.value-C.value):B(Math.max(0,o.value-1))},se=w=>{B(w)},K=w=>{c.value&&_.value&&(l.autoplay&&Pe(),cancelAnimationFrame(_.value),c.value=!1);const N="touches"in w?w.touches[0]:w;b.value=N.clientX,p.value=N.clientY,g.value=null,u.value=r.value,V.value=0,E.value=0,v.value=0,x.value=performance.now(),a.value&&(a.value.style.scrollSnapType="none"),document.addEventListener("mousemove",Q,{passive:!1}),document.addEventListener("mouseup",ue),document.addEventListener("touchmove",Q,{passive:!1}),document.addEventListener("touchend",ue)},Q=w=>{const N="touches"in w?w.touches[0]:w;if(!g.value){const re=Math.abs(N.clientX-b.value),ie=Math.abs(N.clientY-p.value),ne=3;if(re>ne||ie>ne)if(l.sliderOrientation==="horizontal")if(re>ie)g.value="horizontal",m.value=!0;else{de();return}else if(ie>re)g.value="vertical",m.value=!0;else{de();return}else return}if(!m.value||!s.value||!a.value)return;w.cancelable&&w.preventDefault();const M=performance.now(),I=M-x.value,R=l.sliderOrientation==="horizontal"?N.clientX:N.clientY,j=l.sliderOrientation==="horizontal"?b.value:p.value,G=l.sliderOrientation==="horizontal"?E.value||j:v.value||j,W=R-G;if(I>0){const re=W/I*1e3;V.value=V.value*.7+re*.3}const ee=R-j;let Y=u.value-ee;Y<0?Y=Y*.4:Y>h.value&&(Y=h.value+(Y-h.value)*.4),H.value=Y,s.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-H.value}px, 0, 0)`:`translate3d(0, ${-H.value}px, 0)`,l.sliderOrientation==="horizontal"?E.value=R:v.value=R,x.value=M},de=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ue),document.removeEventListener("touchmove",Q),document.removeEventListener("touchend",ue)},ue=()=>{if(!m.value||!a.value||!s.value){de();return}const w=l.sliderOrientation==="horizontal",N=w?u.value-(E.value-b.value):u.value-(v.value-p.value),M=Math.max(0,Math.min(N,h.value)),I=U()+z.value;if(m.value=!1,de(),r.value=M,l.infinite){if(N<0){B(i.value-1);return}else if(N>h.value){B(0);return}}else if(N<0){B(0);return}else if(N>h.value){const me=Math.max(0,i.value-Math.floor(C.value));B(me);return}const R=Math.max(0,i.value-Math.floor(C.value)),j=300,G=.2,W=Math.round(M/I),ee=w?E.value-b.value:v.value-p.value,Y=Math.abs(ee),ie=U()*G;let ne=W;if(Math.abs(V.value)>j){const me=-Math.sign(V.value);ne=o.value+me}else if(Y>ie){const me=ee>0?-1:1;ne=o.value+me}else ne=W;B(Math.max(0,Math.min(R,ne)))},lt=()=>{!l.autoplay||A.value!==null||(A.value=setInterval(()=>{D()},l.autoplayInterval))},Pe=()=>{A.value!==null&&(clearInterval(A.value),A.value=null)},Se=()=>{Pe(),setTimeout(()=>{lt()},500)},je=e.ref(null),Ws=w=>{if(!w||w.length===0)return;const{width:N}=w[0].contentRect;Math.abs(N-d.value)>1&&(d.value=N)},Hs=()=>{if(!a.value||C.value<=0||(O(),i.value===0))return;const w=U();if(w<=0)return;const N=Math.max(0,i.value-C.value),M=Math.min(Math.max(0,l.initialSlide),N),I=M*(w+z.value),R=h.value,j=Math.max(0,Math.min(I,R));s.value&&(s.value.style.transitionDuration="0ms",s.value.style.transform=l.sliderOrientation==="horizontal"?`translate3d(${-j}px, 0, 0)`:`translate3d(0, ${-j}px, 0)`),r.value=j,o.value=M};let Yt=!1;return e.onMounted(()=>{var N,M,I,R,j,G,W,ee;d.value=window.innerWidth;const w=e.watch(i,Y=>{Y>0&&!Yt&&(Hs(),Yt=!0,w())});l.autoplay&<(),O(),a.value&&(je.value=new ResizeObserver(Ws),je.value.observe(a.value)),(N=a.value)==null||N.addEventListener("mousedown",K),(M=a.value)==null||M.addEventListener("touchstart",K,{passive:!1}),l.showNavigationButtons&&((j=(R=(I=a.value)==null?void 0:I.parentElement)==null?void 0:R.querySelector(".absolute.flex.justify-between"))==null||j.addEventListener("click",Se)),l.showIndicators&&((ee=(W=(G=a.value)==null?void 0:G.parentElement)==null?void 0:W.querySelector(".bottom-5.flex.justify-center"))==null||ee.addEventListener("click",Se))}),e.onUnmounted(()=>{je.value&&je.value.disconnect(),Pe()}),e.watch(()=>l.autoplay,w=>{w?lt():Pe()}),e.watch(()=>l.autoplayInterval,Se),e.watch(()=>l.initialSlide,w=>{requestAnimationFrame(()=>B(w,!0))}),e.watch([C,z],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(O(),i.value===0)return;const w=Math.max(0,i.value-C.value),N=Math.min(o.value,w);B(N,!0)})})}),e.watch(d,()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(O(),i.value===0)return;const w=Math.max(0,i.value-C.value),N=Math.min(o.value,w);B(N,!0)})})}),n({scrollToSlide:B}),(w,N)=>(e.openBlock(),e.createElementBlock("div",{class:"relative h-full",style:e.normalizeStyle($.value)},[e.createElementVNode("div",{ref_key:"carouselContainer",ref:a,class:e.normalizeClass(["rounded w-full h-full carousel",[{"carousel-horizontal":t.sliderOrientation==="horizontal"},{"carousel-vertical":t.sliderOrientation==="vertical"},{"cursor-grabbing !select-none":m.value}]]),style:{scrollSnapType:"none"}},[e.createElementVNode("div",{ref_key:"slidesContainer",ref:s,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle(P.value)},[e.renderSlot(w.$slots,"default",{},void 0,!0)],6)],2),t.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([{"top-1/2 right-5 left-5 z-10 absolute flex justify-between items-center -translate-y-1/2 transform":t.sliderOrientation==="horizontal"},{"right-0 absolute flex justify-between items-center -translate-y-1/2 transform rotate-90 top-1/2 gap-3":t.sliderOrientation==="vertical"}])},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value>0?(e.openBlock(),e.createElementBlock("div",Rn,[e.createElementVNode("div",{onClick:F,role:"button","aria-label":"Previous Slide"},[e.renderSlot(w.$slots,"prevButton",{},()=>[N[0]||(N[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),N[2]||(N[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.infinite||o.value<i.value-C.value?(e.openBlock(),e.createElementBlock("div",Un,[e.createElementVNode("div",{onClick:D,role:"button","aria-label":"Next Slide"},[e.renderSlot(w.$slots,"nextButton",{},()=>[N[1]||(N[1]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0),t.showIndicators?(e.openBlock(),e.createElementBlock("div",qn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(M,I)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${I}`,onClick:R=>se(I),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":I===o.value}]),"aria-label":`Go to slide ${I+1}`},null,10,Wn))),128))])):e.createCommentVNode("",!0)],4))}}),oe=(t,n)=>{const l=t.__vccOpts||t;for(const[o,a]of n)l[o]=a;return l},Kn=oe(Hn,[["__scopeId","data-v-5a0871a3"]]),Yn=oe(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(ct,e.ref({}));return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(n))},[e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Xn={key:0,class:"chat-image"},Jn={key:1,class:"chat-header"},Gn={key:2,class:"chat-footer"},Zn=e.defineComponent({__name:"chat",props:{position:{},color:{}},setup(t){const n=t,l=e.computed(()=>`chat chat-${n.position}`),o=e.computed(()=>{const a=["chat-bubble"];return n.color&&a.push(`chat-bubble-${n.color}`),a.join(" ")});return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[a.$slots.image?(e.openBlock(),e.createElementBlock("div",Xn,[e.renderSlot(a.$slots,"image")])):e.createCommentVNode("",!0),a.$slots.header?(e.openBlock(),e.createElementBlock("div",Jn,[e.renderSlot(a.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(o.value)},[e.renderSlot(a.$slots,"default")],2),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",Gn,[e.renderSlot(a.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),Qn={class:"countdown"},eo=["aria-label"],to=e.defineComponent({__name:"countdown",props:{value:{}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("span",Qn,[e.createElementVNode("span",{style:e.normalizeStyle({"--value":t.value}),"aria-label":String(t.value),"aria-live":"polite"},e.toDisplayString(t.value),13,eo)]))}}),no=e.defineComponent({__name:"kbd",props:{size:{}},setup(t){const n=t,l=e.computed(()=>{const o=["kbd"];return n.size&&o.push(`kbd-${n.size}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("kbd",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),oo=e.defineComponent({__name:"stats",props:{vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.computed(()=>{const o=["stats"];return n.vertical?o.push("stats-vertical"):n.horizontal&&o.push("stats-horizontal"),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),lo={class:"stat"},ao={key:0,class:"stat-figure"},so={key:1,class:"stat-title"},ro={key:2,class:"stat-value"},io={key:3,class:"stat-desc"},co={key:4,class:"stat-actions"},uo=e.defineComponent({__name:"stat",props:{title:{},value:{},desc:{}},setup(t){return(n,l)=>(e.openBlock(),e.createElementBlock("div",lo,[n.$slots.figure?(e.openBlock(),e.createElementBlock("div",ao,[e.renderSlot(n.$slots,"figure")])):e.createCommentVNode("",!0),t.title?(e.openBlock(),e.createElementBlock("div",so,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",ro,e.toDisplayString(t.value),1)):e.createCommentVNode("",!0),t.desc?(e.openBlock(),e.createElementBlock("div",io,e.toDisplayString(t.desc),1)):e.createCommentVNode("",!0),n.$slots.actions?(e.openBlock(),e.createElementBlock("div",co,[e.renderSlot(n.$slots,"actions")])):e.createCommentVNode("",!0)]))}}),mo={class:"overflow-x-auto"},fo=e.defineComponent({__name:"table",props:{zebra:{type:Boolean,default:!1},pinRows:{type:Boolean,default:!1},pinCols:{type:Boolean,default:!1},size:{}},setup(t){const n=t,l=e.computed(()=>{const o=["table"];return n.zebra&&o.push("table-zebra"),n.pinRows&&o.push("table-pin-rows"),n.pinCols&&o.push("table-pin-cols"),n.size&&o.push(`table-${n.size}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",mo,[e.createElementVNode("table",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2)]))}}),po=e.defineComponent({__name:"timeline",props:{vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},snapIcon:{type:Boolean,default:!1}},setup(t){const n=t,l=e.computed(()=>{const o=["timeline"];return n.vertical?o.push("timeline-vertical"):n.horizontal&&o.push("timeline-horizontal"),n.compact&&o.push("timeline-compact"),n.snapIcon&&o.push("timeline-snap-icon"),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),ho={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},go=["onClick"],yo={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},ko={key:1,class:"flex flex-col"},bo={class:"text-sm"},wo={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Bo={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},$o={class:"hidden"},Co=["id"],Eo={class:"modal-box"},xo={class:"font-bold text-lg"},So=["name","checked"],Vo={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},No={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},vo={key:1,class:"opacity-35 text-sm"},zo={class:"collapse-content flex place-content-center p-0"},Do=oe(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(t,{emit:n}){const l=t,o=n,a=l.id??`advancedSearch-${e.useId()}`,s=e.ref(null),r=e.ref(null),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ko)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>fl)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>zl))},i=e.ref({}),d=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),b=g=>{var S;if(g.value===void 0||g.value===null||g.value==="")return"";switch(g.type){case"datetime":if(typeof g.value=="string")try{const C=new Date(g.value);if(!isNaN(C.getTime()))return C.toLocaleString()}catch{}else if(g.range&&typeof g.value=="object"&&g.value!==null&&"start"in g.value&&"end"in g.value)try{const C=new Date(g.value.start),z=new Date(g.value.end);if(!isNaN(C.getTime())&&!isNaN(z.getTime()))return`${C.toLocaleDateString()} - ${z.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof g.value=="object"&&g.value!==null&&"start"in g.value&&"end"in g.value)return`${g.value.start} - ${g.value.end}`;break;case"custom-number":if(typeof g.value=="number")return g.value.toString();break;case"standard-select":case"custom-select":if((S=g.props)!=null&&S.options&&Array.isArray(g.props.options)){const C=g.props.options.find(z=>z.value===g.value);if(C)return C.text}return String(g.value);case"custom-text":if(typeof g.value=="string")return g.value;break}return String(g.value)};function p(g){var f,k;const S=(f=s.value)==null?void 0:f.name;if(!S){console.warn("componentValueUpdated called but no active tab.");return}const C=(k=l.searchOptions.find($=>($==null?void 0:$.category)===l.currentCategory))==null?void 0:k.tabs,z=C==null?void 0:C.find($=>$.name===S);z?(z.value=g,o("update:search-data",{tab:z.name,data:g})):console.error(`Tab with name "${S}" not found in current category.`)}function u(g){p(g)}function V(){o("search")}async function E(g){var z;const S=document.getElementById(`advancedSearchMobile-${a}`),C=S&&S.contains(g.target);((z=s.value)==null?void 0:z.displayMode)==="popup"&&m.value&&!m.value.contains(g.target)&&!C&&(await e.nextTick(),s.value=null)}async function v(){if(typeof window<"u"&&window.innerWidth<=768){const g=document.getElementById(`advancedSearchMobile-${a}`);g?(s.value=null,g.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${a}".`)}}async function x(g){var C,z,f;if(typeof window<"u"&&window.innerWidth<=768){v();return}const S=g.displayMode??"popup";if(((C=s.value)==null?void 0:C.name)===g.name&&((z=s.value)==null?void 0:z.displayMode)===S)s.value=null;else if(s.value={...g,displayMode:S},await e.nextTick(),((f=s.value)==null?void 0:f.displayMode)==="popup"){const k=i.value[g.name];if(k&&m.value){const $=k.getBoundingClientRect(),P=m.value.getBoundingClientRect(),q=$.bottom-P.top,O=$.left+$.width/2-P.left;d.value={left:`${O}px`,top:`${q+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",g.name)}}const _=g=>{const S=g.relatedTarget;setTimeout(()=>{var C;((C=s.value)==null?void 0:C.displayMode)==="inline"&&m.value&&(!S||!m.value.contains(S))?(console.log("Blur detected outside container, closing inline view."),s.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},A=()=>{console.log("Enter key pressed on inline component, closing inline view."),s.value=null};e.watch(r,g=>{var S;console.log("advanced-search: inlineComponentRef changed. New Value:",g),console.log("advanced-search: activeTab.value:",s.value),g&&((S=s.value)==null?void 0:S.displayMode)==="inline"?(console.log("advanced-search: Inline component ref is available and active tab is inline. Attempting to focus child input..."),e.nextTick(()=>{console.log("advanced-search: Inside nextTick. Attempting to call child's focus method..."),console.log("advanced-search: Type of newValue:",typeof g),console.log("advanced-search: Does newValue have focusInput?",typeof g.focusInput=="function"),g&&typeof g.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),g.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',g)})):console.log(g?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",E),window.addEventListener("resize",H)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",E),window.removeEventListener("resize",H)});const H=()=>{var g,S;if(typeof window<"u"){const C=window.innerWidth<=768,z=s.value!==null&&(s.value.displayMode==="popup"||s.value.displayMode==="inline")&&window.innerWidth>768;!C&&(((g=s.value)==null?void 0:g.displayMode)==="popup"||((S=s.value)==null?void 0:S.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),s.value=null),C&&!z&&s.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),s.value=null);const f=document.getElementById(`advancedSearchMobile-${a}`);f!=null&&f.open&&!C&&(console.log("Modal is open on desktop, closing modal and active tab."),f.close(),s.value=null)}};return(g,S)=>{var C,z;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:m,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:v},[e.createElementVNode("div",ho,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((C=l.searchOptions.find(f=>f.category===l.currentCategory))==null?void 0:C.tabs)||[],(f,k)=>{var $,P,q,O,U;return e.openBlock(),e.createElementBlock("button",{key:`${f.name}-${k}`,onClick:e.withModifiers(h=>x(f),["stop"]),class:e.normalizeClass([{"tab-active":(($=s.value)==null?void 0:$.name)===f.name,"tab-active-inline":((P=s.value)==null?void 0:P.name)===f.name&&((q=s.value)==null?void 0:q.displayMode)==="inline"},"group/searchitem after:top-0 after:-right-2 after:absolute relative first-of-type:flex-auto last-of-type:flex-auto after:bg-base-200 hover:bg-base-200 p-1 rounded-sm w-auto after:w-px after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:h=>i.value[f.name]=h},[((O=s.value)==null?void 0:O.name)===f.name&&((U=s.value)==null?void 0:U.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",yo,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[s.value.type]),e.mergeProps({ref_for:!0},s.value.props||{},{modelValue:s.value.value,onUpdated:S[0]||(S[0]=h=>u(h)),"onUpdate:modelValue":S[1]||(S[1]=h=>u(h)),onBlur:_,onKeydown:e.withKeys(e.withModifiers(A,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:r}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("p",bo,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("p",wo,e.toDisplayString(b(f)),1)):(e.openBlock(),e.createElementBlock("p",Bo,e.toDisplayString(f.description),1))]))],10,go)}),128))]),s.value&&s.value.displayMode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"absolute flex shadow-sm mt-4 w-fit max-w-full transition-all tab-content",style:e.normalizeStyle(d.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[s.value.type]),e.mergeProps(s.value.props||{},{modelValue:s.value.value,onUpdated:S[2]||(S[2]=f=>p(f)),"onUpdate:modelValue":S[3]||(S[3]=f=>p(f))}),null,16,["modelValue"]))],4)):e.createCommentVNode("",!0),e.createElementVNode("button",{title:"search",type:"submit",class:"ml-1 btn btn-primary btn-square",onClick:e.withModifiers(V,["stop"])},[e.createVNode(e.unref(it),{size:24,color:"white"})])]),e.createElementVNode("div",$o,[e.createElementVNode("button",{title:"search",onClick:S[4]||(S[4]=()=>{})},[e.createVNode(e.unref(it),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(a)}`,class:"modal"},[e.createElementVNode("div",Eo,[e.renderSlot(g.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",xo,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((z=l.searchOptions.find(f=>f.category===l.currentCategory))==null?void 0:z.tabs)||[],(f,k)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:f.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(a)}`,checked:k===0},null,8,So),e.createElementVNode("div",Vo,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("div",No,e.toDisplayString(b(f)),1)):(e.openBlock(),e.createElementBlock("div",vo,e.toDisplayString(f.description),1))]),e.createElementVNode("div",zo,[S[7]||(S[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[f.type]),e.mergeProps({ref_for:!0},f.props||{},{modelValue:f.value,onUpdated:S[5]||(S[5]=$=>p($)),"onUpdate:modelValue":S[6]||(S[6]=$=>p($))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:V}," Close and Search ")])])])],8,Co)],64)}}}),[["__scopeId","data-v-577c3624"]]),_o=["checked","disabled"],Mo=e.defineComponent({inheritAttrs:!1,__name:"checkbox",props:{modelValue:{type:Boolean,default:!1},color:{},size:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=["checkbox"];return l.color&&r.push(`checkbox-${l.color}`),l.size&&r.push(`checkbox-${l.size}`),r.join(" ")}),s=r=>{const c=r.target;o("update:modelValue",c.checked)};return(r,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({type:"checkbox",class:a.value,checked:t.modelValue,disabled:t.disabled,onChange:s},r.$attrs),null,16,_o))}}),To={class:"z-30 relative flex items-center bg-base-100 date-filter-input px-4 border-2 border-primary rounded-md w-full min-h-10 font-semibold text-primary text-sm"},Io={key:0},Po={key:1},jo=["id","onKeydown"],Oo={key:2,class:"flex justify-center p-4"},Lo={class:"join items-center gap-2 max-w-2xs md:max-w-full justify-between max-md:input max-md:input-bordered !rounded overflow-hidden mx-auto"},Ao={class:"join-item"},Fo=["id","disabled","value"],Ro={class:"join-item"},Uo=["id","disabled","value"],qo={key:3,class:"p-4 min-w-2xs"},Wo=["id","disabled","value"],Ho={key:4,class:"flex px-4 my-4 w-full justify-end"},dt=oe(e.defineComponent({__name:"datetimePicker",props:{mode:{default:"datetime"},range:{type:Boolean,default:!1},placeholder:{default:"Select date and time"},popup:{type:Boolean,default:!1},id:{default:"date-time-picker"},initialDate:{default:null},disabled:{type:Boolean,default:!1},locale:{default:"en-US"},format:{},firstDayOfWeek:{default:1},min:{},max:{},closeText:{default:"Close"},disableDefaultValue:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(t,{emit:n}){const l=typeof window<"u",o=t,a=n,s=e.ref(null),r=e.ref(!1),c=e.ref(null),i=e.ref(null),d=e.ref(null),m=e.ref(null),b=e.ref(null),p=e.ref({from:"",to:"",single:""}),u=e.ref({single:null,start:null,end:null}),V=h=>h instanceof Date?h.toISOString():h,E=h=>h.split("T")[0]||"",v=h=>{const B=h instanceof Date?h:new Date(h);if(isNaN(B.getTime()))return"";const D=String(B.getHours()).padStart(2,"0"),F=String(B.getMinutes()).padStart(2,"0");return`${D}:${F}`},x=()=>{if(o.disableDefaultValue&&!o.initialDate)return;let h=o.initialDate;if(!h&&!o.disableDefaultValue&&o.mode!=="time"){const D=new Date;h=o.range?{start:D,end:D}:D}if(!h)return;if(o.range&&typeof h=="object"&&"start"in h){const D=V(h.start),F=V(h.end);u.value.start=E(D),u.value.end=E(F),o.mode!=="date"&&(p.value.from=v(D),p.value.to=v(F));return}const B=V(h);u.value.single=E(B),o.mode!=="date"&&(p.value.single=v(B))},_=e.computed(()=>{const h=B=>{if(!B)return"";try{return new Date(B+"T00:00:00").toLocaleDateString(o.locale)}catch{return B}};return o.range?u.value.start&&u.value.end?`${h(u.value.start)} - ${h(u.value.end)}`:"":u.value.single?h(u.value.single):""}),A=()=>{if(c.value)u.value.single=c.value.value||null;else if(i.value){const h=i.value.value;if(typeof h=="string"&&h.includes("/")){const[B,D]=h.split("/");u.value.start=B||null,u.value.end=D||null}}},H=()=>u.value.start&&u.value.end?`${u.value.start}/${u.value.end}`:null,g=()=>{if(o.range){const D=u.value.start,F=u.value.end;if(!D||!F)return null;if(o.mode==="date")return{start:D,end:F};if(o.mode==="datetime"){const se=p.value.from||"00:00",K=p.value.to||"23:59";return{start:`${D}T${se}:00`,end:`${F}T${K}:00`}}return null}const h=u.value.single;if(!h)return null;if(o.mode==="date")return h;const B=p.value.single||"00:00";return`${h}T${B}:00`},S=async()=>{A();const h=g();a("update:modelValue",h),a("change",h)},C=()=>e.nextTick(S),z=h=>{const B=h.target;o.range?B===m.value?p.value.from=B.value:p.value.to=B.value:p.value.single=B.value,S()},f=()=>{r.value=!r.value},k=()=>{S(),r.value=!1},$=h=>{!o.popup||!r.value||setTimeout(()=>{const B=s.value,D=h.target,F=`date-picker-${o.id}-popup`;B&&!B.contains(D)&&!D.closest(`#${F}`)&&k()},0)},P=()=>k(),q=()=>{S(),o.popup&&(r.value=!1)},O=()=>{var B;const h=o.range?i.value:c.value;(B=h==null?void 0:h.navigate)==null||B.call(h,-1)},U=()=>{var B;const h=o.range?i.value:c.value;(B=h==null?void 0:h.navigate)==null||B.call(h,1)};return e.onMounted(()=>{l&&Promise.resolve().then(()=>qs).catch(h=>console.warn("Failed to load cally:",h)),x()}),e.watch(u,async()=>{if(await e.nextTick(),c.value&&u.value.single){const h=u.value.single;c.value.value!==h&&(c.value.value=h)}if(i.value){const h=H();h&&i.value.value!==h&&(i.value.value=h)}S()},{deep:!0}),e.watch([u,c,i],async()=>{await e.nextTick(),c.value&&u.value.single&&!c.value.value&&(c.value.value=u.value.single),i.value&&u.value.start&&u.value.end&&!i.value.value&&(i.value.value=`${u.value.start}/${u.value.end}`),S()}),e.watch([d,m,b],S),(h,B)=>{const D=e.resolveComponent("calendar-month"),F=e.resolveComponent("calendar-date"),se=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:s,onMousedownCapture:$},[o.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:B[0]||(B[0]=K=>o.disabled?null:f())},[e.createElementVNode("div",To,[_.value?(e.openBlock(),e.createElementBlock("span",Po,e.toDisplayString(_.value),1)):(e.openBlock(),e.createElementBlock("span",Io,e.toDisplayString(o.placeholder),1))])])):e.createCommentVNode("",!0),r.value||!o.popup?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["z-50 bg-base-100 rounded-md w-full min-w-xs overflow-hidden",{"absolute top-full left-0 mt-2 shadow-lg":o.popup,"mt-2":!o.popup}]),id:`date-picker-${o.id}-popup`,onKeydown:[B[1]||(B[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(P,["esc"]),e.withKeys(e.withModifiers(q,["prevent"]),["enter"])]},[!o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(F,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${o.id}-date`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:C},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:O},[...B[2]||(B[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:U},[...B[3]||(B[3]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(D,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="time"&&l?(e.openBlock(),e.createBlock(se,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${o.id}-date-range`,min:o.min,max:o.max,disabled:o.disabled,"first-day-of-week":o.firstDayOfWeek,onChange:C},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:O},[...B[4]||(B[4]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{slot:"next",class:"btn-outline btn btn-primary md:btn-sm",onClick:U},[...B[5]||(B[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])]),e.createVNode(D,{locale:o.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("div",Lo,[e.createElementVNode("div",Ao,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeFromInput",ref:m,id:`${o.id}-time-from`,placeholder:"from",onChange:z,disabled:o.disabled,value:p.value.from||""},null,40,Fo)]),B[6]||(B[6]=e.createElementVNode("svg",{class:"join-item",viewBox:"0 0 1024 1024",width:"1em"},[e.createElementVNode("path",{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"})],-1)),e.createElementVNode("div",Ro,[e.createElementVNode("input",{class:"text-center hover:border-b-2 hover:-mb-0.5 open:bg-primary open:p-1 open:-m-0.5 open:rounded w-full relative",type:"time",ref_key:"timeToInput",ref:b,id:`${o.id}-time-to`,onChange:z,disabled:o.disabled,value:p.value.to||""},null,40,Uo)])])])):e.createCommentVNode("",!0),!o.range&&o.mode!=="date"?(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:d,id:`${o.id}-time`,onChange:z,disabled:o.disabled,value:p.value.single||""},null,40,Wo)])):e.createCommentVNode("",!0),o.popup&&o.closeText?(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:k},e.toDisplayString(o.closeText),1)])):e.createCommentVNode("",!0)],42,jo)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-ca3752e5"]]),Ko=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),Yo=["accept","multiple","disabled"],Xo=e.defineComponent({inheritAttrs:!1,__name:"fileInput",props:{accept:{},multiple:{type:Boolean,default:!1},color:{},size:{},ghost:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=["file-input"];return l.ghost&&r.push("file-input-ghost"),l.color&&r.push(`file-input-${l.color}`),l.size&&r.push(`file-input-${l.size}`),r.join(" ")}),s=r=>{const c=r.target;o("change",c.files)};return(r,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({type:"file",class:a.value,accept:t.accept,multiple:t.multiple,disabled:t.disabled,onChange:s},r.$attrs),null,16,Yo))}}),Jo=["value","checked","disabled","name"],Go=e.defineComponent({inheritAttrs:!1,__name:"radio",props:{modelValue:{},value:{},name:{},color:{},size:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=["radio"];return l.color&&r.push(`radio-${l.color}`),l.size&&r.push(`radio-${l.size}`),r.join(" ")}),s=()=>{o("update:modelValue",l.value)};return(r,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({type:"radio",class:a.value,value:t.value,checked:t.modelValue===t.value,disabled:t.disabled,name:t.name,onChange:s},r.$attrs),null,16,Jo))}}),Zo=["min","max","step","value","disabled"],Qo=e.defineComponent({inheritAttrs:!1,__name:"range",props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},color:{},size:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=["range"];return l.color&&r.push(`range-${l.color}`),l.size&&r.push(`range-${l.size}`),r.join(" ")}),s=r=>{const c=r.target;o("update:modelValue",Number(c.value))};return(r,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({type:"range",class:a.value,min:t.min,max:t.max,step:t.step,value:t.modelValue,disabled:t.disabled,onInput:s},r.$attrs),null,16,Zo))}}),el=["value","checked","onChange","disabled"],tl=e.defineComponent({__name:"rating",props:{initialRating:{default:0},numberOfStars:{default:5},halfStars:{type:Boolean,default:!0},isInteractive:{type:Boolean,default:!1},size:{default:"sm"},shape:{default:"star"},color:{default:"bg-yellow-400"},gap:{default:0}},setup(t){const n=t,l=e.ref(n.initialRating);e.watch(()=>n.initialRating,a=>{l.value=a});const o=a=>{l.value=a};return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${n.size}`,{"rating-half":t.halfStars},{"pointer-events-none":!t.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.numberOfStars*(t.halfStars?2:1),r=>(e.openBlock(),e.createElementBlock("input",{key:r,type:"radio",value:t.halfStars?r*.5:r,checked:l.value===(t.halfStars?r*.5:r),onChange:c=>t.isInteractive?o(t.halfStars?r*.5:r):null,class:e.normalizeClass(["mask",[{"mask-half-1":t.halfStars&&r%2!==0,"mask-half-2":t.halfStars&&r%2===0,"cursor-pointer":t.isInteractive,"cursor-default":!t.isInteractive,"mask-star":t.shape==="star","mask-star-2":t.shape==="star-bold","mask-heart":t.shape==="heart","mask-hexagon":t.shape==="hexagon-vertical","mask-hexagon-2":t.shape==="hexagon-horizontal","mask-decagon":t.shape==="decagon","mask-pentagon":t.shape==="pentagon","mask-diamond":t.shape==="diamond","mask-square":t.shape==="square","mask-triangle":t.shape==="triangle-top","mask-triangle-2":t.shape==="triangle-bottom","mask-triangle-3":t.shape==="triangle-left","mask-triangle-4":t.shape==="triangle-right"},l.value>=(t.halfStars?r*.5:r)?n.color:""]]),style:e.normalizeStyle({marginRight:t.halfStars&&r%2===0?`${n.gap}px`:t.halfStars?"0":`${n.gap}px`}),disabled:!t.isInteractive},null,46,el))),128))],2))}}),nl={class:"badge"},ol=["onClick"],ll={class:"opacity-75"},al=["placeholder"],sl=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.ref([...l.modelValue]),s=l.maxTagAmount===void 0?-1:l.maxTagAmount,r=e.ref(null),c=e.ref(""),i=e.computed(()=>s<0||a.value.length<s),d=()=>{const u=c.value.trim();u&&!a.value.includes(u)&&(a.value.push(u),o("update:modelValue",a.value),c.value="")},m=u=>{a.value=a.value.filter(V=>V!==u),o("update:modelValue",a.value)},b=()=>{c.value===""&&(a.value.pop(),o("update:modelValue",a.value))},p=u=>{u.key==="Enter"?d():u.key==="Backspace"&&c.value===""&&b()};return e.watch(()=>l.modelValue,u=>{a.value=[...u]}),(u,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex flex-wrap gap-2 bg-base-100 shadow px-4 py-6 border border-base-content/20 rounded",u.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,E=>e.renderSlot(u.$slots,"tag",{key:E,tag:E},()=>[e.createElementVNode("div",nl,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:v=>m(E),"aria-label":"Remove tag"},"X",8,ol),e.createElementVNode("span",ll,e.toDisplayString(E),1)])])),128)),e.renderSlot(u.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:r,"onUpdate:modelValue":V[0]||(V[0]=E=>c.value=E),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:p,"aria-label":"Add tags"},null,40,al)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),rl={class:"w-full max-w-xs form-control"},il={key:0,class:"label"},cl={class:"label-text"},dl=["value"],ul={key:0,value:"",disabled:"",selected:""},ml=["value"],ut=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(t,{expose:n,emit:l}){console.log(t.placeholder);const a=l,s=e.ref(null),r=i=>{const d=i.target;a("update:modelValue",d.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=s.value)==null||i.focus()}}),(i,d)=>(e.openBlock(),e.createElementBlock("div",rl,[t.label?(e.openBlock(),e.createElementBlock("label",il,[e.createElementVNode("span",cl,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:s,class:"rounded-md w-full select-bordered select",value:t.modelValue,onChange:r},[t.placeholder?(e.openBlock(),e.createElementBlock("option",ul,e.toDisplayString(t.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,m=>(e.openBlock(),e.createElementBlock("option",{key:m.value,value:m.value},e.toDisplayString(m.text),9,ml))),128))],40,dl)]))}}),fl=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"})),pl={key:0,class:"label"},hl={class:"label-text"},gl=["onKeydown","aria-expanded","aria-activedescendant"],yl=["placeholder","disabled"],kl={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},bl={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},wl=["onMousedown","id","aria-selected"],Bl={__name:"filterableSelect",props:{options:{type:Array,required:!0,default:()=>[]},label:{type:String,default:""},placeholder:{type:String,default:"Select an option"},modelValue:{type:[String,Number,Object,null],default:null},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","select","clear"],setup(t,{expose:n,emit:l}){const o=t,a=l,s=e.useSlots(),r=e.computed(()=>{const k=(s.default?s.default():[]).filter($=>$.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",k.length>0),k.length>0}),c=e.ref(""),i=e.ref(null),d=e.ref(!1),m=e.ref(null),b=e.ref(null),p=e.ref(null),u=e.ref(null),V=()=>{d.value=!o.disabled},E=()=>{d.value=!1,u.value=null,r.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},v=()=>{d.value?E():V()},x=e.computed(()=>{const f=c.value?c.value.toLowerCase():"";return f===""&&!d.value?[]:o.options.filter($=>$&&$.text?$.text.toLowerCase().includes(f):"")});e.watch(()=>o.modelValue,(f,k)=>{if(f!==k&&E(),f==null)i.value=null,!d.value&&!r.value&&(c.value="");else{const $=o.options.find(P=>P.value===f);$?(i.value=$,!d.value&&!r.value&&(c.value=$.text)):(i.value=null,!d.value&&!r.value&&(c.value=""))}},{immediate:!0});const _=f=>{b.value&&!b.value.contains(f.target)&&E()},A=()=>{setTimeout(()=>{b.value&&!b.value.contains(document.activeElement)&&E()},100)};e.watch(d,f=>{f?setTimeout(()=>{document.addEventListener("click",_)},0):document.removeEventListener("click",_)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",_),window.removeEventListener("keydown",z)});const H=()=>{if(o.disabled)return;const f=i.value;a("update:modelValue",null),f&&a("clear",f)},g=f=>{i.value=f,r.value||(c.value=f.text),a("update:modelValue",f.value),a("select",f),E()},S=()=>{x.value.length>0&&g(x.value[0])},C=()=>{d.value||V()},z=f=>{if(!d.value||x.value.length===0)return;const k=x.value.findIndex((P,q)=>"option-"+q===u.value);let $=-1;if(f.key==="ArrowDown")f.preventDefault(),$=(k+1)%x.value.length;else if(f.key==="ArrowUp")f.preventDefault(),$=(k-1+x.value.length)%x.value.length;else if(f.key==="Enter"&&u.value){f.preventDefault();const P=x.value.find((q,O)=>"option-"+O===u.value);P&&g(P);return}else if(f.key==="Escape"){f.preventDefault(),E(),p.value&&p.value.focus();return}else if(r.value)return;if($!==-1){u.value="option-"+$;const P=document.getElementById(u.value);P&&requestAnimationFrame(()=>{P.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(d,f=>{f?(window.addEventListener("keydown",z),!r.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",z)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",_),window.removeEventListener("keydown",z)}),n({isDropdownOpen:d,selectedItem:i,openDropdown:V,closeDropdown:E,toggleDropdown:v,selectItem:g,filterText:c,hasDefaultSlotContent:r}),(f,k)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:b},[t.label?(e.openBlock(),e.createElementBlock("label",pl,[e.createElementVNode("span",hl,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!r.value,select:!r.value}]),style:{"background-image":"unset","padding-right":"0.5rem"},tabindex:" 0",onClick:k[1]||(k[1]=$=>r.value?v():V()),onKeydown:[e.withKeys(e.withModifiers(S,["prevent"]),["enter"]),e.withKeys(e.withModifiers(S,["prevent"]),["space"])],onBlur:A,role:"combobox","aria-haspopup":"listbox","aria-expanded":d.value,"aria-activedescendant":u.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:p},[e.renderSlot(f.$slots,"default",{},()=>[r.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:t.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":k[0]||(k[0]=$=>c.value=$),ref_key:"filterInput",ref:m,onFocus:V,onInput:C,tabindex:"-1",disabled:o.disabled},null,40,yl)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(mn),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(H,["stop"])})):e.createCommentVNode("",!0),e.createVNode(e.unref(un),{class:e.normalizeClass([{"rotate-180":d.value},"mx-2 cursor-pointer text-base-content/60 hover:text-base-content/80"]),size:20,onClick:e.withModifiers(v,["stop"])},null,8,["class"])],42,gl),e.withDirectives(e.createElementVNode("div",kl,[e.createElementVNode("ul",bl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,($,P)=>(e.openBlock(),e.createElementBlock("li",{key:$.value,onMousedown:e.withModifiers(q=>g($),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+P,role:"option","aria-selected":i.value&&i.value.value===$.value},[e.createElementVNode("a",null,e.toDisplayString($.text),1)],40,wl))),128))])],512),[[e.vShow,d.value&&x.value.length>0]])],512))}},$l={class:"w-full max-w-xs form-control"},Cl={key:0,class:"label"},El={class:"label-text"},xl=["type","placeholder","disabled","value"],Sl={key:1,class:"label"},Vl={class:"label-text-alt text-error validator-hint"},Nl={key:2,class:"label"},vl={class:"label-text-alt text-success validator-hint"},mt=e.defineComponent({__name:"inputField",props:{modelValue:{default:""},label:{default:""},placeholder:{default:""},type:{default:"text"},rules:{default:()=>({})},needsValidation:{type:Boolean,default:!1},successMessage:{default:""},size:{default:"md"},color:{default:""},style:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","validate"],setup(t,{expose:n,emit:l}){const o=t,a=l,s=e.ref(null),r=e.ref(!1),c=e.ref(""),i=e.computed(()=>{var v,x,_,A;let u=!0,V="";const E=o.modelValue;return(v=o.rules)!=null&&v.required&&(E==null||E==="")&&(u=!1,V="This field is required."),u&&((x=o.rules)==null?void 0:x.minLength)!==void 0&&typeof E=="string"&&E.length<o.rules.minLength&&(u=!1,V=`Must be at least ${o.rules.minLength} characters.`),u&&((_=o.rules)==null?void 0:_.maxLength)!==void 0&&typeof E=="string"&&E.length>o.rules.maxLength&&(u=!1,V=`Cannot exceed ${o.rules.maxLength} characters.`),u&&((A=o.rules)!=null&&A.email)&&typeof E=="string"&&E&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(E)||(u=!1,V="Please enter a valid email address.")),c.value=V,a("validate",u),u}),d=e.computed(()=>r.value&&!i.value),m=u=>{const V=u.target;a("update:modelValue",V.value),r.value&&i.value},b=()=>{r.value=!0,i.value};return e.watch(()=>o.modelValue,()=>{r.value&&i.value}),n({focusInput:()=>{var u;console.log("inputField.vue: focusInput method called."),(u=s.value)==null||u.focus()},isValid:i,isTouched:r,errorMessage:c}),(u,V)=>(e.openBlock(),e.createElementBlock("div",$l,[t.label?(e.openBlock(),e.createElementBlock("label",Cl,[e.createElementVNode("span",El,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:s,type:t.type,placeholder:t.placeholder,disabled:o.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":t.size==="xs","input-sm":t.size==="sm","input-md":t.size==="md","input-lg":t.size==="lg","input-xl":t.size==="xl","input-ghost":t.style==="ghost","input-neutral":t.color==="neutral"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-primary":t.color==="primary"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-accent":t.color==="accent"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-info":t.color==="info"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-success":t.color==="success"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-warning":t.color==="warning"&&!d.value&&!(i.value&&r.value&&t.needsValidation),"input-error":d.value,"input-success-validation":i.value&&r.value&&!d.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:b},null,42,xl),d.value?(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("span",Vl,e.toDisplayString(c.value),1)])):i.value&&r.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Nl,[e.createElementVNode("span",vl,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),zl=Object.freeze(Object.defineProperty({__proto__:null,default:mt},Symbol.toStringTag,{value:"Module"})),Dl=["value","placeholder","disabled","rows"],_l=e.defineComponent({inheritAttrs:!1,__name:"textarea",props:{modelValue:{default:""},placeholder:{},rows:{default:3},color:{},size:{},ghost:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=["textarea"];return l.ghost&&r.push("textarea-ghost"),l.color&&r.push(`textarea-${l.color}`),l.size&&r.push(`textarea-${l.size}`),r.join(" ")}),s=r=>{const c=r.target;o("update:modelValue",c.value)};return(r,c)=>(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({class:a.value,value:t.modelValue,placeholder:t.placeholder,disabled:t.disabled,rows:t.rows,onInput:s},r.$attrs),null,16,Dl))}}),Ml=["checked","disabled"],Tl=e.defineComponent({inheritAttrs:!1,__name:"toggle",props:{modelValue:{type:Boolean,default:!1},color:{},size:{},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=["toggle"];return l.color&&r.push(`toggle-${l.color}`),l.size&&r.push(`toggle-${l.size}`),r.join(" ")}),s=r=>{const c=r.target;o("update:modelValue",c.checked)};return(r,c)=>(e.openBlock(),e.createElementBlock("input",e.mergeProps({type:"checkbox",class:a.value,checked:t.modelValue,disabled:t.disabled,onChange:s},r.$attrs),null,16,Ml))}}),Il=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(t){const n=t,l=e.ref(n.loading);return e.watch(()=>n.loading,o=>{l.value=o}),(o,a)=>l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":t.size==="xs"},{"loading-sm":t.size==="sm"},{"loading-md":t.size==="md"},{"loading-lg":t.size==="lg"},{"loading-xl":t.size==="xl"},{"loading-spinner":t.type==="spinner"},{"loading-dots":t.type==="dots"},{"loading-ring":t.type==="ring"},{"loading-balls":t.type==="balls"},{"loading-bars":t.type==="bars"},{"loading-infinity":t.type==="infinity"},{"text-primary":t.color==="primary"},{"text-secondary":t.color==="secondary"},{"text-accent":t.color==="accent"},{"text-neutral":t.color==="neutral"},{"text-info":t.color==="info"},{"text-success":t.color==="success"},{"text-warning":t.color==="warning"},{"text-error":t.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),Pl=["value","max"],jl=e.defineComponent({inheritAttrs:!1,__name:"progress",props:{value:{},max:{default:100},color:{}},setup(t){const n=t,l=e.computed(()=>{const o=["progress"];return n.color&&o.push(`progress-${n.color}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("progress",e.mergeProps({class:l.value,value:t.value,max:t.max},o.$attrs),null,16,Pl))}}),Ol=e.defineComponent({__name:"skeleton",props:{text:{type:Boolean,default:!1},width:{},height:{}},setup(t){const n=t,l=e.computed(()=>{const o=["skeleton"];return n.text&&o.push("skeleton-text"),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),ve=e.ref([]);function ft(){const t=(l,o="default",a=5e3)=>{const s=Math.random().toString(36).substring(2,9);ve.value.push({id:s,message:l,type:o,duration:a})},n=l=>{ve.value=ve.value.filter(o=>o.id!==l)};return{toasts:e.readonly(ve),addToast:t,removeToast:n}}const Ll=["value"],pt=oe(e.defineComponent({__name:"ToastNotification",props:{toast:{type:Object,required:!0}},emits:["remove"],setup(t,{emit:n}){const l=t,o=n,a=e.ref(100);let s=null,r=null;e.onMounted(()=>{const i=l.toast.duration,d=Date.now();s=setTimeout(()=>{o("remove",l.toast.id)},i),r=setInterval(()=>{const m=Date.now()-d,b=Math.max(0,i-m);a.value=b/i*100,b===0&&clearInterval(r)},50)}),e.onUnmounted(()=>{s&&clearTimeout(s),r&&clearInterval(r)});const c=e.computed(()=>{switch(l.toast.type){case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";case"info":return"alert-info";default:return""}});return(i,d)=>(e.openBlock(),e.createElementBlock("div",{role:"alert",class:e.normalizeClass(["alert z-60",c.value,"shadow-lg"])},[e.createElementVNode("span",null,e.toDisplayString(t.toast.message),1),e.createElementVNode("progress",{class:e.normalizeClass(["progress absolute bottom-0 left-0 w-full progress-neutral"]),value:a.value,max:"100"},null,8,Ll)],2))}}),[["__scopeId","data-v-bc0c6917"]]),Al=oe(e.defineComponent({__name:"ToastContainer",props:{position:{type:String,default:"top-end"}},setup(t){const n=t,{toasts:l,removeToast:o}=ft(),a=e.computed(()=>{const[s,r]=n.position.split("-");return{"toast-top":s==="top","toast-middle":s==="middle","toast-bottom":s==="bottom","toast-start":r==="start","toast-center":r==="center","toast-end":r==="end"}});return(s,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["toast z-50",a.value])},[e.createVNode(e.TransitionGroup,{name:"toast-fade"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),c=>(e.openBlock(),e.createBlock(pt,{key:c.id,toast:c,onRemove:i=>e.unref(o)(c.id)},null,8,["toast","onRemove"]))),128))]),_:1})],2))}}),[["__scopeId","data-v-e10fa884"]]),Fl=e.defineComponent({__name:"toast",props:{position:{default:"end"},vertical:{default:"bottom"}},setup(t){const n=t,l=e.computed(()=>{const o=["toast"];return n.position&&o.push(`toast-${n.position}`),n.vertical&&o.push(`toast-${n.vertical}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),Rl={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 stroke-current shrink-0"},Ul=["d"],ql={class:"empty:hidden"},Wl=e.defineComponent({__name:"alert",props:{type:{default:"default"},message:{},closable:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.computed({get:()=>l.modelValue,set:i=>o("update:modelValue",i)}),s=e.computed(()=>{switch(l.type){case"info":return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";default:return""}}),r=e.computed(()=>{switch(l.type){case"info":return"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z";case"success":return"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z";case"warning":return"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z";case"error":return"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z";default:return"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}),c=()=>{a.value=!1};return(i,d)=>a.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert",class:e.normalizeClass(["alert",s.value])},[e.renderSlot(i.$slots,"icon",{class:"w-6 h-6"},()=>[(e.openBlock(),e.createElementBlock("svg",Rl,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:r.value},null,8,Ul)]))]),e.createElementVNode("span",null,e.toDisplayString(t.message),1),e.createElementVNode("div",ql,[t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-sm btn-ghost",onClick:c},"Close")):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default")])],2)):e.createCommentVNode("",!0)}}),Hl=e.defineComponent({__name:"divider",props:{vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1},color:{},position:{}},setup(t){const n=t,l=e.computed(()=>{const o=["divider"];return n.vertical?o.push("divider-vertical"):n.horizontal&&o.push("divider-horizontal"),n.color&&o.push(`divider-${n.color}`),n.position&&o.push(`divider-${n.position}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),Kl=["id"],Yl={class:"drawer-content"},Xl={class:"drawer-side"},Jl=["for"],Gl=e.defineComponent({__name:"drawer",props:{id:{},modelValue:{type:Boolean,default:!1},end:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:n}){const l=t,o=n,a=e.ref(l.modelValue||l.open);e.watch(a,r=>{o("update:modelValue",r)}),e.watch(()=>l.modelValue,r=>{a.value=r});const s=e.computed(()=>{const r=["drawer"];return l.end&&r.push("drawer-end"),l.open&&r.push("drawer-open"),r.join(" ")});return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value)},[e.withDirectives(e.createElementVNode("input",{id:t.id,type:"checkbox",class:"drawer-toggle","onUpdate:modelValue":c[0]||(c[0]=i=>a.value=i)},null,8,Kl),[[e.vModelCheckbox,a.value]]),e.createElementVNode("div",Yl,[e.renderSlot(r.$slots,"content")]),e.createElementVNode("div",Xl,[e.createElementVNode("label",{for:t.id,"aria-label":"close sidebar",class:"drawer-overlay"},null,8,Jl),e.renderSlot(r.$slots,"sidebar")])],2))}}),Zl={class:"container flex flex-col sm:flex-row"},Ql={class:"footer-title"},ea=["href"],ta={key:0,class:"sm:hidden w-full"},na={class:"border-b-2 border-base-100 last:border-b-0 w-full"},oa={tabindex:"0",class:"collapse collapse-plus w-full"},la={class:"collapse-title font-bold text-lg collapsible-footer-title"},aa={class:"collapse-content flex w-full text-sm"},sa={class:"flex flex-col gap-2.5"},ra={class:"w-full"},ia=["href"],ca={class:"sm:w-1/4"},da=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{default:1}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mx-auto md:px-10 py-10 text-base-content",[t.background??"bg-base-200",t.color??"text-base-content"]])},[e.createElementVNode("footer",Zl,[e.createElementVNode("div",{class:e.normalizeClass(["footer sm:footer-horizontal sm:w-3/4",[{"sm:grid-rows-1":n.rows===1},{"sm:grid-rows-2":n.rows===2},{"sm:grid-rows-3":n.rows===3}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,a=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid w-max":t.collapseOnMobile}])},[e.createElementVNode("h6",Ql,e.toDisplayString(a.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,s=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:s.link},e.toDisplayString(s.text),9,ea))),256))],2))),256)),e.createElementVNode("nav",{class:e.normalizeClass(["empty:hidden",[{"hidden sm:grid":t.collapseOnMobile}]])},[e.renderSlot(l.$slots,"extra-row")],2),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",ta,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,a=>(e.openBlock(),e.createElementBlock("ul",na,[e.createElementVNode("div",oa,[e.createElementVNode("div",la,e.toDisplayString(a.title),1),e.createElementVNode("div",aa,[e.createElementVNode("ul",sa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,s=>(e.openBlock(),e.createElementBlock("li",ra,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:s.link},e.toDisplayString(s.text),9,ia)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",ca,[e.renderSlot(l.$slots,"default")])])],2))}}),ua={},ma={class:"min-h-40 container hero"},fa={class:"px-0! text-center hero-content"},pa={class:"mt-9 text-4xl"};function ha(t,n){return e.openBlock(),e.createElementBlock("div",ma,[e.createElementVNode("div",fa,[e.createElementVNode("div",null,[e.createElementVNode("h1",pa,[e.renderSlot(t.$slots,"title",{},()=>[n[0]||(n[0]=e.createTextVNode("hero title",-1))])]),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"description",{class:"py-9"})]),e.renderSlot(t.$slots,"call-to-action-block",{class:"max-w-full"},()=>[n[1]||(n[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const ga=oe(ua,[["render",ha]]),ya=e.defineComponent({__name:"join",props:{vertical:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1}},setup(t){const n=t,l=e.computed(()=>{const o=["join"];return n.vertical?o.push("join-vertical"):n.horizontal&&o.push("join-horizontal"),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),ka=e.defineComponent({__name:"stack",props:{position:{}},setup(t){const n=t,l=e.computed(()=>{const o=["stack"];return n.position&&o.push(`stack-${n.position}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),ba={class:"breadcrumbs"},wa={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-4 h-4 mr-2 stroke-current"},Ba=["d"],$a=e.defineComponent({__name:"breadcrumbs",props:{items:{}},emits:["click"],setup(t,{emit:n}){const l=n,o=(a,s)=>{l("click",a,s)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",ba,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(r,c)=>(e.openBlock(),e.createElementBlock("li",{key:c},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.href?"a":"span"),{href:r.href,onClick:i=>o(r,i)},{default:e.withCtx(()=>[r.icon?(e.openBlock(),e.createElementBlock("svg",wa,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:r.icon},null,8,Ba)])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(r.label),1)]),_:2},1032,["href","onClick"]))]))),128))])]))}}),Ca={class:"flex flex-row place-content-center gap-4 categories"},Ea=["onClick"],xa=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(t,{emit:n}){const l=t,o=n;function a(s){o("update:currentCategory",s)}return(s,r)=>(e.openBlock(),e.createElementBlock("div",Ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.searchOptions,c=>(e.openBlock(),e.createElementBlock("div",{key:c.category},[e.createElementVNode("button",{onClick:i=>a(c.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":l.currentCategory===c.category}])},e.toDisplayString(c.category),11,Ea)]))),128))]))}}),Sa=e.defineComponent({__name:"menu",props:{horizontal:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},size:{}},setup(t){const n=t,l=e.computed(()=>{const o=["menu"];return n.horizontal?o.push("menu-horizontal"):n.vertical&&o.push("menu-vertical"),n.size&&o.push(`menu-${n.size}`),o.join(" ")});return(o,a)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(l.value)},[e.renderSlot(o.$slots,"default")],2))}}),Va={key:0,class:"navbar-start"},Na={key:1,class:"navbar-center"},va={key:2,class:"navbar-end"},za=e.defineComponent({__name:"navbar",props:{bg:{}},setup(t){const n=t,l=e.computed(()=>n.bg?`bg-${n.bg}`:"");return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["navbar",l.value])},[o.$slots.start?(e.openBlock(),e.createElementBlock("div",Va,[e.renderSlot(o.$slots,"start")])):e.createCommentVNode("",!0),o.$slots.center?(e.openBlock(),e.createElementBlock("div",Na,[e.renderSlot(o.$slots,"center")])):e.createCommentVNode("",!0),o.$slots.end?(e.openBlock(),e.createElementBlock("div",va,[e.renderSlot(o.$slots,"end")])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")],2))}}),Da={class:"md:flex hidden navbar-start"},_a={class:"md:flex justify-center items-center hidden navbar-center"},Ma={class:"md:flex hidden navbar-end"},Ta={class:"navbar-bottom md:flex hidden"},Ia=oe(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(t){const n=t;return(l,o)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(["place-items-start border-primary bg-base-100 px-5 py-5 border-b-4 transition-all navbar navigationbar",n.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Da,[e.renderSlot(l.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",_a,[e.renderSlot(l.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Ma,[e.renderSlot(l.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Ta,[e.renderSlot(l.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Pa={class:"join"},ja=["disabled"],Oa=["disabled"],La=["onClick"],Aa=["disabled"],Fa=["disabled"],Ra=e.defineComponent({__name:"pagination",props:{currentPage:{},totalPages:{},maxVisible:{default:5},showFirstLast:{type:Boolean,default:!1}},emits:["update:currentPage"],setup(t,{emit:n}){const l=t,o=n,a=e.computed(()=>{const r=[],c=Math.floor(l.maxVisible/2);let i=Math.max(1,l.currentPage-c),d=Math.min(l.totalPages,i+l.maxVisible-1);d-i<l.maxVisible-1&&(i=Math.max(1,d-l.maxVisible+1));for(let m=i;m<=d;m++)r.push(m);return r}),s=r=>{r>=1&&r<=l.totalPages&&r!==l.currentPage&&o("update:currentPage",r)};return(r,c)=>(e.openBlock(),e.createElementBlock("div",Pa,[t.showFirstLast?(e.openBlock(),e.createElementBlock("button",{key:0,class:"join-item btn",disabled:t.currentPage===1,onClick:c[0]||(c[0]=i=>s(1))}," « ",8,ja)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"join-item btn",disabled:t.currentPage===1,onClick:c[1]||(c[1]=i=>s(t.currentPage-1))}," ‹ ",8,Oa),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,i=>(e.openBlock(),e.createElementBlock("button",{key:i,class:e.normalizeClass(["join-item btn",{"btn-active":i===t.currentPage}]),onClick:d=>s(i)},e.toDisplayString(i),11,La))),128)),e.createElementVNode("button",{class:"join-item btn",disabled:t.currentPage===t.totalPages,onClick:c[2]||(c[2]=i=>s(t.currentPage+1))}," › ",8,Aa),t.showFirstLast?(e.openBlock(),e.createElementBlock("button",{key:1,class:"join-item btn",disabled:t.currentPage===t.totalPages,onClick:c[3]||(c[3]=i=>s(t.totalPages))}," » ",8,Fa)):e.createCommentVNode("",!0)]))}}),Ua={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},qa=["onClick","aria-selected"],Wa={key:0,role:"tabpanel",class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full overflow-x-auto tab-content"},Ha={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},Ka=e.defineComponent({__name:"tab",props:{items:{},withControlls:{type:Boolean,default:!1},rotateTabsAfter:{default:0},buttonOnlyMode:{type:Boolean,default:!1}},emits:["tab-changed"],setup(t,{emit:n}){const l=t,o=e.ref(l.items[0]),a=n;function s(i){o.value=i,a("tab-changed",i)}function r(){const d=(l.items.indexOf(o.value)+1)%l.items.length;s(l.items[d])}function c(){const d=(l.items.indexOf(o.value)-1+l.items.length)%l.items.length;s(l.items[d])}return e.onMounted(()=>{l.items&&s(l.items[0])}),e.onUnmounted(()=>{l.rotateTabsAfter&&l.rotateTabsAfter>0&&setInterval(()=>{r()},l.rotateTabsAfter*1e3)}),(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(["relative tabs-bordered w-full tabs tabs-lg",{"flex-nowrap overflow-x-auto":t.buttonOnlyMode}])},[t.withControlls?(e.openBlock(),e.createElementBlock("div",Ua,[e.createElementVNode("button",{onClick:d[0]||(d[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:d[1]||(d[1]=m=>r()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",m===o.value?"bg-primary text-base-100":""]),onClick:b=>s(m),"aria-selected":o.value==m},e.toDisplayString(m),11,qa),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wa,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",Ha,[e.renderSlot(i.$slots,"default")])],64))}}),Ya={key:0,class:"step-icon"},Xa=e.defineComponent({__name:"steps",props:{vertical:{type:Boolean,default:!1},progress:{default:0},wrap:{type:Boolean},steps:{default:()=>[]},bars:{type:Boolean,default:!1}},setup(t){const n=t,l=o=>o<n.progress?"complete":o===n.progress?"active":"incomplete";return(o,a)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(["w-full steps",{"steps-vertical flex flex-col h-full min-h-max":n.vertical,"lg:steps-horizontal flex flex-wrap":n.wrap}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.steps,(s,r)=>(e.openBlock(),e.createElementBlock("li",{key:r,class:e.normalizeClass(["step",{"step-primary":s.color==="primary"&&l(r)==="complete"||!s.color&&l(r)==="complete","step-secondary":s.color==="secondary"&&l(r)==="complete","step-accent":s.color==="accent"&&l(r)==="complete","step-info":s.color==="info"&&l(r)==="complete","step-success":s.color==="success"&&l(r)==="complete","step-warning":s.color==="warning"&&l(r)==="complete","step-error":s.color==="error"&&l(r)==="complete","step-neutral":l(r)==="incomplete","step-active":l(r)==="active","step-complete":l(r)==="complete",bars:n.bars}])},[s.icon?(e.openBlock(),e.createElementBlock("span",Ya,e.toDisplayString(s.icon),1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.title),1)],2))),128))],2))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Ja{constructor(n){st(this,ce);st(this,ge,new Set);rt(this,ce,n)}get current(){return ye(this,ce)}set current(n){ye(this,ce)!=n&&(rt(this,ce,n),ye(this,ge).forEach(l=>l(n)))}on(n){return ye(this,ge).add(n),()=>ye(this,ge).delete(n)}}ce=new WeakMap,ge=new WeakMap;const ht=t=>new Ja(t),Oe=Symbol.for("atomico.hooks");globalThis[Oe]=globalThis[Oe]||{};let fe=globalThis[Oe];const Ga=Symbol.for("Atomico.suspense"),gt=Symbol.for("Atomico.effect"),Za=Symbol.for("Atomico.layoutEffect"),yt=Symbol.for("Atomico.insertionEffect"),pe=(t,n,l)=>{const{i:o,hooks:a}=fe.c,s=a[o]=a[o]||{};return s.value=t(s.value),s.effect=n,s.tag=l,fe.c.i++,a[o].value},Qa=t=>pe((n=ht(t))=>n),be=()=>pe((t=ht(fe.c.host))=>t),kt=()=>fe.c.update,es=(t,n,l=0)=>{let o={},a=!1;const s=()=>a,r=(c,i)=>{for(const d in o){const m=o[d];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{fe.c={host:n,hooks:o,update:t,i:0,id:l};let i;try{a=!1,i=c()}catch(d){if(d!==Ga)throw d;a=!0}finally{fe.c=null}return i},cleanEffects:c=>(r(yt,c),()=>(r(Za,c),()=>{r(gt,c)})),isSuspense:s}},he=Symbol.for;function bt(t,n){const l=t.length;if(l!==n.length)return!1;for(let o=0;o<l;o++){let a=t[o],s=n[o];if(a!==s)return!1}return!0}const Z=t=>typeof t=="function",we=t=>typeof t=="object",{isArray:ts}=Array,Le=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function wt(t,n){let l;const o=a=>{let{length:s}=a;for(let r=0;r<s;r++){const c=a[r];if(c&&Array.isArray(c))o(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(l==null&&(l=""),l+=c):(l!=null&&(n(l),l=null),n(c))}}};o(t),l!=null&&n(l)}const Bt=(t,n,l)=>(t.addEventListener(n,l),()=>t.removeEventListener(n,l));class $t{constructor(n,l,o){this.message=l,this.target=n,this.value=o}}class Ct extends $t{}class ns extends $t{}const ze="Custom",os=null,ls={true:1,"":1,1:1};function as(t,n,l,o,a){const{type:s,reflect:r,event:c,value:i,attr:d=ss(n)}=(l==null?void 0:l.name)!=ze&&we(l)&&l!=os?l:{type:l},m=(s==null?void 0:s.name)===ze&&s.map,b=i!=null?s==Function||!Z(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(p){const u=this[n];b&&s!=Boolean&&p==null&&(p=b());const{error:V,value:E}=(m?cs:ds)(s,p);if(V&&E!=null)throw new Ct(this,`The value defined for prop '${n}' must be of type '${s.name}'`,E);u!=E&&(this._props[n]=E??void 0,this.update(),c&&Et(this,c),this.updated.then(()=>{r&&(this._ignoreAttr=d,rs(this,s,d,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),b&&(a[n]=b()),o[d]={prop:n,type:s}}const Et=(t,{type:n,base:l=CustomEvent,...o})=>t.dispatchEvent(new l(n,o)),ss=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),rs=(t,n,l,o)=>o==null||n==Boolean&&!o?t.removeAttribute(l):t.setAttribute(l,(n==null?void 0:n.name)===ze&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(o):we(o)?JSON.stringify(o):n==Boolean?"":o),is=(t,n)=>t==Boolean?!!ls[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==ze?n:new t(n),cs=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},ds=(t,n)=>t==null||n==null?{value:n,error:!1}:t!=String&&n===""?{value:void 0,error:!1}:t==Object||t==Array||t==Symbol?{value:n,error:{}.toString.call(n)!==`[object ${t.name}]`}:n instanceof t?{value:n,error:t==Number&&Number.isNaN(n.valueOf())}:t==String||t==Number||t==Boolean?{value:n,error:t==Number?typeof n!="number"?!0:Number.isNaN(n):t==String?typeof n!="string":typeof n!="boolean"}:{value:n,error:!0};let us=0;const ms=t=>{var l;return((l=(t==null?void 0:t.dataset)||{})==null?void 0:l.hydrate)||""||"c"+us++},Be=(t,n=HTMLElement)=>{const l={},o={},a="prototype"in n&&n.prototype instanceof Element,s=a?n:"base"in n?n.base:HTMLElement,{props:r,styles:c}=a?t:n;class i extends s{constructor(){super(),this._setup(),this._render=()=>t({...this._props});for(const m in o)this[m]=o[m]}static get styles(){return[super.styles,c]}async _setup(){if(this._props)return;this._props={};let m,b;this.mounted=new Promise(v=>this.mount=()=>{v(),m!=this.parentNode&&(b!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise(v=>this.unmount=()=>{v(),(m!=this.parentNode||!this.isConnected)&&(p.cleanEffects(!0)()(),b=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const p=es(()=>this.update(),this,ms(this));let u,V=!0;const E=Le(this);this.update=()=>(u||(u=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const v=p.load(this._render),x=p.cleanEffects();return v&&v.render(this,this.symbolId,E),u=!1,V&&!p.isSuspense()&&(V=!1,!E&&fs(this)),x()}finally{u=!1}}).then(v=>{v&&v()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,b,p){if(l[m]){if(m===this._ignoreAttr||b===p)return;const{prop:u,type:V}=l[m];try{this[u]=is(V,p)}catch{throw new ns(this,`The value defined as attr '${m}' cannot be parsed by type '${V.name}'`,p)}}else super.attributeChangedCallback(m,b,p)}static get props(){return{...super.props,...r}}static get observedAttributes(){const m=super.observedAttributes||[];for(const b in r)as(this.prototype,b,r[b],l,o);return Object.keys(l).concat(m)}}return i};function fs(t){const{styles:n}=t.constructor,{shadowRoot:l}=t;if(l&&n.length){const o=[];wt(n,a=>{a&&(a instanceof Element?l.appendChild(a.cloneNode(!0)):o.push(a))}),o.length&&(l.adoptedStyleSheets=o)}}const xt=t=>(n,l)=>{pe(([o,a]=[])=>((a||!a)&&(a&&bt(a,l)?o=o||!0:(Z(o)&&o(),o=null)),[o,l]),([o,a],s)=>s?(Z(o)&&o(),[]):[o||n(),a],t)},$e=xt(gt),ps=xt(yt);class St extends Array{constructor(n,l){let o=!0;const a=s=>{try{l(s,this,o)}finally{o=!1}};super(void 0,a,l),a(n)}}const Ae=t=>{const n=kt();return pe((l=new St(t,(o,a,s)=>{o=Z(o)?o(a[0]):o,o!==a[0]&&(a[0]=o,s||n())}))=>l)},te=(t,n)=>{const[l]=pe(([o,a,s=0]=[])=>((!a||a&&!bt(a,n))&&(o=t()),[o,n,s]));return l},Fe=t=>{const{current:n}=be();if(!(t in n))throw new Ct(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return pe((l=new St(n[t],(o,a)=>{o=Z(o)?o(n[t]):o,n[t]=o}))=>(l[0]=n[t],l))},le=(t,n={})=>{const l=be();return l[t]||(l[t]=(o=n.detail)=>Et(l.current,{type:t,...n,detail:o})),l[t]},Re=he("atomico/options");globalThis[Re]=globalThis[Re]||{sheet:!!document.adoptedStyleSheets};const Vt=globalThis[Re],hs={checked:1,value:1,selected:1},gs={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},ys={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},De={},Ue=[];class qe extends Text{}const ks=he("atomico/id"),Ce=he("atomico/type"),We=he("atomico/ref"),Nt=he("atomico/vnode"),bs=()=>{};function ws(t,n,l){return zt(this,t,n,l)}const vt=(t,n,...l)=>{const o=n||De;let{children:a}=o;if(a=a??(l.length?l:Ue),t===bs)return a;const s=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(s===!1&&t instanceof Function)return t(a!=Ue?{children:a,...o}:o);const r=Vt.render||ws;return{[Ce]:Nt,type:t,props:o,children:a,key:o.key,shadow:o.shadowDom,static:o.staticNode,raw:s,is:o.is,clone:o.cloneNode,render:r}};function zt(t,n,l=ks,o,a){let s;if(n&&n[l]&&n[l].vnode==t||t[Ce]!=Nt)return n;(t||!n)&&(a=a||t.type=="svg",s=t.type!="host"&&(t.raw==1?(n&&t.clone?n[We]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[We]||n.localName!=t.type:!n),s&&t.type!=null&&(t.raw==1&&t.clone?(o=!0,n=t.type.cloneNode(!0),n[We]=t.type):n=t.raw==1?t.type:t.raw==2?new t.type:a?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,t.is?{is:t.is}:void 0)));const r=n[l]?n[l]:De,{vnode:c=De,cycle:i=0}=r;let{fragment:d,handlers:m}=r;const{children:b=Ue,props:p=De}=c;if(m=s?{}:m||{},t.static&&!s)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=p&&Cs(n,p,t.props,m,a),t.children!==b){const u=t.shadow?n.shadowRoot:n;d=$s(t.children,d,u,l,!i&&o,a&&t.type=="foreignObject"?!1:a)}return n[l]={vnode:t,handlers:m,fragment:d,cycle:i+1},n}function Bs(t,n){const l=new qe(""),o=new qe("");let a;if(t[n?"prepend":"append"](l),n){let{lastElementChild:s}=t;for(;s;){const{previousElementSibling:r}=s;if(Le(s,!0)&&!Le(r,!0)){a=s;break}s=r}}return a?a.before(o):t.append(o),{markStart:l,markEnd:o}}function $s(t,n,l,o,a,s){t=t==null?null:ts(t)?t:[t];const r=n||Bs(l,a),{markStart:c,markEnd:i,keyes:d}=r;let m;const b=d&&new Set;let p=c;if(t&&wt(t,u=>{if(typeof u=="object"&&!u[Ce])return;const V=u[Ce]&&u.key,E=d&&V!=null&&d.get(V);p!=i&&p===E?b.delete(p):p=p==i?i:p.nextSibling;const v=d?E:p;let x=v;if(u[Ce])x=zt(u,v,o,a,s);else{const _=u+"";!(x instanceof Text)||x instanceof qe?x=new Text(_):x.data!=_&&(x.data=_)}x!=p&&(d&&b.delete(x),!v||d?(l.insertBefore(x,p),d&&p!=i&&b.add(p)):v==i?l.insertBefore(x,i):(l.replaceChild(x,v),p=x)),V!=null&&(m=m||new Map,m.set(V,x))}),p=p==i?i:p.nextSibling,n&&p!=i)for(;p!=i;){const u=p;p=p.nextSibling,u.remove()}return b&&b.forEach(u=>u.remove()),r.keyes=m,r}function Cs(t,n,l,o,a){for(const s in n)!(s in l)&&Dt(t,s,n[s],null,a,o);for(const s in l)Dt(t,s,n[s],l[s],a,o)}function Dt(t,n,l,o,a,s){if(n=n=="class"&&!a?"className":n,l=l??null,o=o??null,n in t&&hs[n]&&(l=t[n]),!(o===l||ys[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Z(o)||Z(l)))Es(t,n.slice(2),o,s);else if(n=="ref")o&&(Z(o)?o(t):o.current=t);else if(n=="style"){const{style:r}=t;l=l||"",o=o||"";const c=we(l),i=we(o);if(c)for(const d in l)if(i)!(d in o)&&_t(r,d,null);else break;if(i)for(const d in o){const m=o[d];c&&l[d]===m||_t(r,d,m)}else r.cssText=o}else{const r=n[0]=="$"?n.slice(1):n;r===n&&(!a&&!gs[n]&&n in t||Z(o)||Z(l))?t[n]=o??"":o==null?t.removeAttribute(r):t.setAttribute(r,we(o)?JSON.stringify(o):o)}}function Es(t,n,l,o){if(o.handleEvent||(o.handleEvent=a=>o[a.type].call(t,a)),l){if(!o[n]){const a=l.capture||l.once||l.passive?Object.assign({},l):null;t.addEventListener(n,o,a)}o[n]=l}else o[n]&&(t.removeEventListener(n,o),delete o[n])}function _t(t,n,l){let o="setProperty";l==null&&(o="removeProperty",l=null),~n.indexOf("-")?t[o](n,l):t[n]=l}const Mt={};function _e(t,...n){const l=(t.raw||t).reduce((o,a,s)=>o+a+(n[s]||""),"");return Mt[l]=Mt[l]||xs(l)}function xs(t){if(Vt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const Ss=vt("host",{style:"display: contents"}),He=he("atomico/context"),Vs=(t,n)=>{const l=be();ps(()=>Bt(l.current,"ConnectContext",o=>{t===o.detail.id&&(o.stopPropagation(),o.detail.connect(n))}),[t])},Ns=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),l=()=>{let s;return n({id:t,connect(r){s=r}}),s},[o,a]=Ae(l);return $e(()=>{o||(t[He]||(t[He]=customElements.whenDefined(new t().localName)),t[He].then(()=>a(l)))},[t]),o},vs=t=>{const n=Ns(t),l=kt();return $e(()=>{if(n)return Bt(n,"UpdatedValue",l)},[n]),(n||t).value},zs=t=>{const n=Be(()=>(Vs(n,be().current),Ss),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},T=(t,n,l)=>(n==null?n={key:l}:n.key=l,vt(t,n)),Ee=T,Tt=_e`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,It=_e`.vh{position:absolute;transform:scale(0)}`;function Ke(){const t=new Date;return new L(t.getFullYear(),t.getMonth()+1,t.getDate())}function Ye(t,n=0){const l=J(t),o=l.getUTCDay(),a=(o<n?7:0)+o-n;return l.setUTCDate(l.getUTCDate()-a),L.from(l)}function Pt(t,n=0){return Ye(t,n).add({days:6})}function jt(t){return L.from(new Date(Date.UTC(t.year,t.month,0)))}function Me(t,n,l){return n&&L.compare(t,n)<0?n:l&&L.compare(t,l)>0?l:t}const Ds={days:1};function _s(t,n=0){let l=Ye(t.toPlainDate(),n);const o=Pt(jt(t),n),a=[];for(;L.compare(l,o)<0;){const s=[];for(let r=0;r<7;r++)s.push(l),l=l.add(Ds);a.push(s)}return a}function J(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const Ms=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Xe=(t,n)=>t.toString().padStart(n,"0");class L{constructor(n,l,o){this.year=n,this.month=l,this.day=o}add(n){const l=J(this);if("days"in n)return l.setUTCDate(this.day+n.days),L.from(l);let{year:o,month:a}=this;"months"in n?(a=this.month+n.months,l.setUTCMonth(a-1)):(o=this.year+n.years,l.setUTCFullYear(o));const s=L.from(J({year:o,month:a,day:1}));return Me(L.from(l),s,jt(s))}toString(){return`${Xe(this.year,4)}-${Xe(this.month,2)}-${Xe(this.day,2)}`}toPlainYearMonth(){return new Te(this.year,this.month)}equals(n){return L.compare(this,n)===0}static compare(n,l){return n.year<l.year?-1:n.year>l.year?1:n.month<l.month?-1:n.month>l.month?1:n.day<l.day?-1:n.day>l.day?1:0}static from(n){if(typeof n=="string"){const l=n.match(Ms);if(!l)throw new TypeError(n);const[,o,a,s]=l;return new L(parseInt(o,10),parseInt(a,10),parseInt(s,10))}return new L(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class Te{constructor(n,l){this.year=n,this.month=l}add(n){const l=J(this),o=(n.months??0)+(n.years??0)*12;return l.setUTCMonth(l.getUTCMonth()+o),new Te(l.getUTCFullYear(),l.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new L(this.year,this.month,1)}}function Ie(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,l]=Fe(t);return[te(()=>Ie(L,n),[n]),o=>l(o==null?void 0:o.toString())]}function Ts(t){const[n="",l]=Fe(t);return[te(()=>{const[o,a]=n.split("/"),s=Ie(L,o),r=Ie(L,a);return s&&r?[s,r]:[]},[n]),o=>l(`${o[0]}/${o[1]}`)]}function Is(t){const[n="",l]=Fe(t);return[te(()=>{const o=[];for(const a of n.trim().split(/\s+/)){const s=Ie(L,a);s&&o.push(s)}return o},[n]),o=>l(o.join(" "))]}function xe(t,n){return te(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function Ot(t,n,l){const o=xe(t,l);return te(()=>{const a=[],s=new Date;for(var r=0;r<7;r++){const c=(s.getUTCDay()-n+7)%7;a[c]=o.format(s),s.setUTCDate(s.getUTCDate()+1)}return a},[n,o])}const Lt=(t,n,l)=>Me(t,n,l)===t,At=t=>t.target.matches(":dir(ltr)"),Ps={month:"long",day:"numeric"},js={month:"long"},Os={weekday:"long"},Je={bubbles:!0};function Ls({props:t,context:n}){const{offset:l}=t,{firstDayOfWeek:o,isDateDisallowed:a,min:s,max:r,today:c,page:i,locale:d,focusedDate:m,formatWeekday:b}=n,p=c??Ke(),u=Ot(Os,o,d),V=te(()=>({weekday:b}),[b]),E=Ot(V,o,d),v=xe(Ps,d),x=xe(js,d),_=te(()=>i.start.add({months:l}),[i,l]),A=te(()=>_s(_,o),[_,o]),H=le("focusday",Je),g=le("selectday",Je),S=le("hoverday",Je);function C(k){H(Me(k,s,r))}function z(k){let $;switch(k.key){case"ArrowRight":$=m.add({days:At(k)?1:-1});break;case"ArrowLeft":$=m.add({days:At(k)?-1:1});break;case"ArrowDown":$=m.add({days:7});break;case"ArrowUp":$=m.add({days:-7});break;case"PageUp":$=m.add(k.shiftKey?{years:-1}:{months:-1});break;case"PageDown":$=m.add(k.shiftKey?{years:1}:{months:1});break;case"Home":$=Ye(m,o);break;case"End":$=Pt(m,o);break;default:return}C($),k.preventDefault()}function f(k){var F,se;const $=_.equals(k);if(!n.showOutsideDays&&!$)return;const P=k.equals(m),q=k.equals(p),O=J(k),U=a==null?void 0:a(O),h=!Lt(k,s,r);let B="",D;if(n.type==="range"){const[K,Q]=n.value,de=K==null?void 0:K.equals(k),ue=Q==null?void 0:Q.equals(k);D=K&&Q&&Lt(k,K,Q),B=`${de?"range-start":""} ${ue?"range-end":""} ${D&&!de&&!ue?"range-inner":""}`}else n.type==="multi"?D=n.value.some(K=>K.equals(k)):D=(F=n.value)==null?void 0:F.equals(k);return{part:`${`button day day-${O.getDay()} ${$?D?"selected":"":"outside"} ${U?"disallowed":""} ${q?"today":""} ${((se=n.getDayParts)==null?void 0:se.call(n,O))??""}`} ${B}`,tabindex:$&&P?0:-1,disabled:h,"aria-disabled":U?"true":void 0,"aria-pressed":$&&D,"aria-current":q?"date":void 0,"aria-label":v.format(O),onkeydown:z,onclick(){U||g(k),C(k)},onmouseover(){!U&&!h&&S(k)}}}return{weeks:A,yearMonth:_,daysLong:u,daysVisible:E,formatter:x,getDayProps:f}}const Ge=Ke(),Ze=zs({type:"date",firstDayOfWeek:1,focusedDate:Ge,page:{start:Ge.toPlainYearMonth(),end:Ge.toPlainYearMonth()}});customElements.define("calendar-ctx",Ze);const As=(t,n)=>(n+t)%7,Ft=Be(t=>{const n=vs(Ze),l=Qa(),o=Ls({props:t,context:n});function a(){var s;(s=l.current.querySelector("button[tabindex='0']"))==null||s.focus()}return Ee("host",{shadowDom:!0,focus:a,children:[T("div",{id:"h",part:"heading",children:o.formatter.format(J(o.yearMonth))}),Ee("table",{ref:l,"aria-labelledby":"h",part:"table",children:[T("thead",{children:T("tr",{part:"tr head",children:o.daysLong.map((s,r)=>Ee("th",{part:`th day day-${As(n.firstDayOfWeek,r)}`,scope:"col",children:[T("span",{class:"vh",children:s}),T("span",{"aria-hidden":"true",children:o.daysVisible[r]})]}))})}),T("tbody",{children:o.weeks.map((s,r)=>T("tr",{part:"tr week",children:s.map((c,i)=>{const d=o.getDayProps(c);return T("td",{part:"td",children:d&&T("button",{...d,children:c.day})},i)})},r))})]})]})},{props:{offset:{type:Number,value:0}},styles:[Tt,It,_e`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{font-weight:700;block-size:2.25rem}td{padding-inline:0}button{color:inherit;font-size:inherit;background:transparent;border:0;font-variant-numeric:tabular-nums;block-size:2.25rem;inline-size:2.25rem}button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",Ft);function Rt(t){return T("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:T("slot",{name:t.name,children:t.children})})}function Qe(t){const n=J(t.page.start),l=J(t.page.end);return Ee("div",{role:"group","aria-labelledby":"h",part:"container",children:[T("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,l)}),Ee("div",{part:"header",children:[T(Rt,{name:"previous",onclick:t.previous,children:"Previous"}),T("slot",{part:"heading",name:"heading",children:T("div",{"aria-hidden":"true",children:t.format.formatRange(n,l)})}),T(Rt,{name:"next",onclick:t.next,children:"Next"})]}),T(Ze,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:T("slot",{})})]})}const et={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:t=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:t=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"}},tt=[Tt,It,_e`:host{display:block;inline-size:fit-content}[role=group]{display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}button{display:flex;align-items:center;justify-content:center}button[aria-disabled]{cursor:default;opacity:.5}`],Fs={year:"numeric"},Rs={year:"numeric",month:"long"};function nt(t,n){return(n.year-t.year)*12+n.month-t.month}const Ut=(t,n)=>(t=n===12?new Te(t.year,1):t,{start:t,end:t.add({months:n-1})});function Us({pageBy:t,focusedDate:n,months:l,max:o,min:a,goto:s}){const r=t==="single"?1:l,[c,i]=Ae(()=>Ut(n.toPlainYearMonth(),l)),d=b=>i(Ut(c.start.add({months:b}),l)),m=b=>{const p=nt(c.start,b.toPlainYearMonth());return p>=0&&p<l};return $e(()=>{if(m(n))return;const b=nt(n.toPlainYearMonth(),c.start);s(n.add({months:b}))},[c.start]),$e(()=>{if(m(n))return;const b=nt(c.start,n.toPlainYearMonth());d(b===-1?-r:b===l?r:Math.floor(b/l)*l)},[n,r,l]),{page:c,previous:!a||!m(a)?()=>d(-r):void 0,next:!o||!m(o)?()=>d(r):void 0}}function ot({months:t,pageBy:n,locale:l,focusedDate:o,setFocusedDate:a}){const[s]=ae("min"),[r]=ae("max"),[c]=ae("today"),i=le("focusday"),d=le("change"),m=te(()=>Me(o??c??Ke(),s,r),[o,c,s,r]);function b(x){a(x),i(J(x))}const{next:p,previous:u,page:V}=Us({pageBy:n,focusedDate:m,months:t,min:s,max:r,goto:b}),E=be();function v(x){const _=(x==null?void 0:x.target)??"day";_==="day"?E.current.querySelectorAll("calendar-month").forEach(A=>A.focus(x)):E.current.shadowRoot.querySelector(`[part~='${_}']`).focus(x)}return{format:xe(Fs,l),formatVerbose:xe(Rs,l),page:V,focusedDate:m,dispatch:d,onFocus(x){x.stopPropagation(),b(x.detail),setTimeout(v)},min:s,max:r,today:c,next:p,previous:u,focus:v}}const qt=Be(t=>{const[n,l]=ae("value"),[o=n,a]=ae("focusedDate"),s=ot({...t,focusedDate:o,setFocusedDate:a});function r(c){l(c.detail),s.dispatch()}return T("host",{shadowDom:!0,focus:s.focus,children:T(Qe,{...t,...s,type:"date",value:n,onSelect:r})})},{props:et,styles:tt});customElements.define("calendar-date",qt);const Wt=(t,n)=>L.compare(t,n)<0?[t,n]:[n,t],Ht=Be(t=>{const[n,l]=Ts("value"),[o=n[0],a]=ae("focusedDate"),s=ot({...t,focusedDate:o,setFocusedDate:a}),r=le("rangestart"),c=le("rangeend"),[i,d]=ae("tentative"),[m,b]=Ae();$e(()=>b(void 0),[i]);function p(v){s.onFocus(v),u(v)}function u(v){v.stopPropagation(),i&&b(v.detail)}function V(v){const x=v.detail;v.stopPropagation(),i?(l(Wt(i,x)),d(void 0),c(J(x)),s.dispatch()):(d(x),r(J(x)))}const E=i?Wt(i,m??i):n;return T("host",{shadowDom:!0,focus:s.focus,children:T(Qe,{...t,...s,type:"range",value:E,onFocus:p,onHover:u,onSelect:V})})},{props:{...et,tentative:{type:String,value:""}},styles:tt});customElements.define("calendar-range",Ht);const Kt=Be(t=>{const[n,l]=Is("value"),[o=n[0],a]=ae("focusedDate"),s=ot({...t,focusedDate:o,setFocusedDate:a});function r(c){const i=[...n],d=n.findIndex(m=>m.equals(c.detail));d<0?i.push(c.detail):i.splice(d,1),l(i),s.dispatch()}return T("host",{shadowDom:!0,focus:s.focus,children:T(Qe,{...t,...s,type:"multi",value:n,onSelect:r})})},{props:et,styles:tt});customElements.define("calendar-multi",Kt);const qs=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:qt,CalendarMonth:Ft,CalendarMulti:Kt,CalendarRange:Ht},Symbol.toStringTag,{value:"Module"}));y.Accordion=zn,y.AdvancedSearch=Do,y.Alert=Wl,y.Avatar=Mn,y.Badge=Tn,y.Breadcrumbs=$a,y.ButtonComponent=Zt,y.Card=Fn,y.Carousel=Kn,y.CarouselItem=Yn,y.CategoryNavigation=xa,y.Chat=Zn,y.Checkbox=Mo,y.Countdown=to,y.DatetimePicker=dt,y.Divider=Hl,y.Drawer=Gl,y.Dropdown=tn,y.FileInput=Xo,y.FilterableSelect=Bl,y.Footer=da,y.Hero=ga,y.InputField=mt,y.Join=ya,y.Kbd=no,y.Loader=Il,y.Menu=Sa,y.Modal=ln,y.Navbar=za,y.NavigationBar=Ia,y.Pagination=Ra,y.Progress=jl,y.Radio=Go,y.Range=Qo,y.Rating=tl,y.Selector=ut,y.Skeleton=Ol,y.Stack=ka,y.Stat=uo,y.Stats=oo,y.Steps=Xa,y.Swap=rn,y.Tab=Ka,y.Table=fo,y.TagInput=sl,y.Textarea=_l,y.ThemeController=kn,y.Timeline=po,y.Toast=Al,y.ToastComponent=Fl,y.ToastComposable=ft,y.ToastNotification=pt,y.Toggle=Tl,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|