manolis-ui 0.21.0 → 0.21.1

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 CHANGED
@@ -432,7 +432,9 @@ declare function __VLS_template_5(): {
432
432
  declare function __VLS_template_6(): {
433
433
  attrs: Partial<{}>;
434
434
  slots: {
435
- details?(_: {}): any;
435
+ details?(_: {
436
+ class: string;
437
+ }): any;
436
438
  actions?(_: {}): any;
437
439
  };
438
440
  refs: {};
@@ -478,7 +478,7 @@ const pt = ye("SunIcon", [
478
478
  }, Et = {
479
479
  key: 1,
480
480
  class: "text-left"
481
- }, Lt = { class: "flex-col flex-nowrap mt-auto card-actions" }, jt = {
481
+ }, Lt = { class: "flex-col flex-nowrap mt-auto card-actions empty:hidden" }, jt = {
482
482
  key: 1,
483
483
  class: "card-body"
484
484
  }, qa = /* @__PURE__ */ j({
@@ -534,7 +534,7 @@ const pt = ye("SunIcon", [
534
534
  ], 2),
535
535
  e.loading ? z("", !0) : (o(), i("div", Vt, [
536
536
  e.title ? (o(), i("h2", _t, T(e.title), 1)) : z("", !0),
537
- B(t.$slots, "details"),
537
+ B(t.$slots, "details", { class: "empty:hidden" }),
538
538
  e.description ? (o(), i("p", Et, T(e.description), 1)) : z("", !0),
539
539
  n("div", Lt, [
540
540
  B(t.$slots, "actions")
@@ -43,4 +43,4 @@
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 cn=he("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"}]]),dn=(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},un={class:"swap-rotate swap"},mn=["true-value","false-value"],fn=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,o=dn("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",un,[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,mn),[[e.vModelCheckbox,e.unref(o)]]),e.createVNode(e.unref(cn),{class:"swap-off fill-current"}),e.createVNode(e.unref(sn),{class:"swap-on fill-current"})]))}}),pn={key:0,class:"join join-vertical w-full"},hn=["name"],gn={key:1,type:"checkbox"},yn={class:"collapse-title font-bold text-2xl lg:text-4xl"},bn={class:"collapse-content"},kn=["innerHTML"],wn=["name"],xn={key:1,type:"checkbox"},Bn={class:"collapse-title font-bold text-2xl lg:text-4xl"},En={class:"collapse-content"},vn=["innerHTML"],Cn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{},toggle:{type:Boolean,default:!1}},setup(t){const n=t;return(o,l)=>n.joinItems?(e.openBlock(),e.createElementBlock("div",pn,[(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 join-item",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",gn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,hn)),e.createElementVNode("div",yn,e.toDisplayString(r.title),1),e.createElementVNode("div",bn,[e.createElementVNode("span",{innerHTML:r.content},null,8,kn)])],2))),128))])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",xn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,wn)),e.createElementVNode("div",Bn,e.toDisplayString(r.title),1),e.createElementVNode("div",En,[e.createElementVNode("span",{innerHTML:r.content},null,8,vn)])],2))),128))}}),$n=["src"],Sn={class:"text-xl"},Vn=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,$n)],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",Sn,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))}}),Dn=["src","alt"],zn={key:0,class:"card-body"},Mn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Tn={key:1,class:"text-left"},In={class:"flex-col flex-nowrap mt-auto card-actions"},_n={key:1,class:"card-body"},On=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,Dn)):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",zn,[t.title?(e.openBlock(),e.createElementBlock("h2",Mn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"details"),t.description?(e.openBlock(),e.createElementBlock("p",Tn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",In,[e.renderSlot(l.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",_n,[...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))}}),lt=Symbol("CarouselItemStyle"),Ln={class:"relative h-full"},Pn={key:0,class:"flex-shrink-0"},jn={key:0,class:"flex-shrink-0"},An={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Fn=["onClick","aria-label"],Un=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},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const o=t,l=e.ref(o.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),y=e.ref(0),p=e.ref(0),d=e.ref(0),C=e.ref(0),x=e.ref(0),$=e.ref(0),k=e.ref(0),M=e.ref(null),A=e.ref(null),W=e.ref(0),h=e.ref(null),E=e.computed(()=>{const N=Object.keys(o.breakpoints).map(Number).sort((_,L)=>_-L);let V={};for(const _ of N)u.value>=_&&(V={...V,...o.breakpoints[_]});return V}),w=e.computed(()=>E.value.slidesPerView??o.slidesPerView),D=e.computed(()=>E.value.gap??o.gap),f=e.computed(()=>{const N=o.sliderOrientation==="horizontal",_=`calc((100% - ${w.value>1?(w.value-1)*D.value:0}px) / ${w.value})`;return N?{width:_}:{height:_}});e.provide(lt,f);const B=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const V=o.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=(w.value-1)*D.value;return V<=0?0:(V-_)/w.value},T=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const V=o.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=b(),L=i.value*(_+D.value)-D.value;return Math.max(0,L-V)}),I=async(N,V=!1)=>{if(!r.value||w.value<=0||c.value||(B(),i.value===0))return;const _=b();if(_<=0)return;const L=_+D.value,q=T.value;let F=N;o.infinite?F=(N%i.value+i.value)%i.value:F=Math.max(0,Math.min(N,i.value-w.value));const ee=F*L,R=o.infinite?ee:Math.max(0,Math.min(ee,q));if(V||o.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,l.value=F,c.value=!1,o.autoplay&&re();return}c.value=!0;const ne=s.value,J=R-ne,Ee=performance.now(),fe=Te=>{if(!a.value)return;const Pa=Te-Ee,qt=Math.min(1,Pa/o.slideDuration),ja=1-Math.pow(1-qt,3),et=ne+J*ja;a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-et}px, 0, 0)`:`translate3d(0, ${-et}px, 0)`,s.value=et,qt<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`,s.value=R,l.value=F,c.value=!1,o.autoplay&&re(),M.value=null)};M.value=requestAnimationFrame(fe)},U=()=>{o.infinite&&l.value>=i.value-w.value?I(0):I(l.value+1)},Y=()=>{o.infinite&&l.value<=0?I(i.value-w.value):I(l.value-1)},g=N=>{I(N)},S=N=>{c.value&&M.value&&(o.autoplay&&Q(),cancelAnimationFrame(M.value),c.value=!1);const V="touches"in N?N.touches[0]:N;y.value=V.clientX,p.value=V.clientY,h.value=null,d.value=s.value,C.value=0,x.value=0,$.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",z,{passive:!1}),document.addEventListener("mouseup",G),document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",G)},z=N=>{const V="touches"in N?N.touches[0]:N;if(!h.value){const Ee=Math.abs(V.clientX-y.value),fe=Math.abs(V.clientY-p.value),Te=5;if(Ee>Te||fe>Te)if(o.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{j();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{j();return}else return}if(!m.value||!a.value||!r.value)return;N.cancelable&&N.preventDefault();const _=performance.now(),L=_-k.value,q=o.sliderOrientation==="horizontal"?V.clientX:V.clientY,F=o.sliderOrientation==="horizontal"?y.value:p.value,ee=o.sliderOrientation==="horizontal"?x.value||F:$.value||F,R=q-ee;L>0&&(C.value=R/L*1e3);const ne=q-F;let J=d.value-ne;J<0?J=J*.3:J>T.value&&(J=T.value+(J-T.value)*.3),W.value=J,a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-W.value}px, 0, 0)`:`translate3d(0, ${-W.value}px, 0)`,o.sliderOrientation==="horizontal"?x.value=q:$.value=q,k.value=_},j=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",G),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",G)},G=()=>{if(!m.value||!r.value||!a.value)return;const V=o.sliderOrientation==="horizontal"?d.value-(x.value-y.value):d.value-($.value-p.value),_=Math.max(0,Math.min(V,T.value)),L=b()+D.value;if(m.value=!1,j(),s.value=_,o.infinite){if(V<0){I(i.value-1);return}else if(V>T.value){I(0);return}}else if(V<0){I(0);return}else if(V>T.value){const R=Math.max(0,i.value-Math.floor(w.value));I(R);return}const q=Math.max(0,i.value-Math.floor(w.value)),F=100,ee=Math.round(_/L);if(Math.abs(C.value)>F){const R=-Math.sign(C.value),ne=ee+R;I(Math.max(0,Math.min(q,ne)))}else I(Math.max(0,Math.min(q,ee)))},H=()=>{!o.autoplay||A.value!==null||(A.value=setInterval(()=>{U()},o.autoplayInterval))},Q=()=>{A.value!==null&&(clearInterval(A.value),A.value=null)},re=()=>{Q(),setTimeout(()=>{H()},500)},ie=e.ref(null),Oa=N=>{if(!N||N.length===0)return;const{width:V}=N[0].contentRect;Math.abs(V-u.value)>1&&(u.value=V)},La=()=>{if(!r.value||w.value<=0||(B(),i.value===0))return;const N=b();if(N<=0)return;const V=Math.max(0,i.value-w.value),_=Math.min(Math.max(0,o.initialSlide),V),L=_*(N+D.value),q=T.value,F=Math.max(0,Math.min(L,q));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-F}px, 0, 0)`:`translate3d(0, ${-F}px, 0)`),s.value=F,l.value=_};let Rt=!1;return e.onMounted(()=>{var V,_,L,q,F,ee,R,ne;u.value=window.innerWidth;const N=e.watch(i,J=>{J>0&&!Rt&&(La(),Rt=!0,N())});o.autoplay&&H(),B(),r.value&&(ie.value=new ResizeObserver(Oa),ie.value.observe(r.value)),(V=r.value)==null||V.addEventListener("mousedown",S),(_=r.value)==null||_.addEventListener("touchstart",S,{passive:!0}),o.showNavigationButtons&&((F=(q=(L=r.value)==null?void 0:L.parentElement)==null?void 0:q.querySelector(".absolute.flex.justify-between"))==null||F.addEventListener("click",re)),o.showIndicators&&((ne=(R=(ee=r.value)==null?void 0:ee.parentElement)==null?void 0:R.querySelector(".bottom-5.flex.justify-center"))==null||ne.addEventListener("click",re))}),e.onUnmounted(()=>{ie.value&&ie.value.disconnect(),Q()}),e.watch(()=>o.autoplay,N=>{N?H():Q()}),e.watch(()=>o.autoplayInterval,re),e.watch(()=>o.initialSlide,N=>{requestAnimationFrame(()=>I(N,!0))}),e.watch([w,D],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(B(),i.value===0)return;const N=Math.max(0,i.value-w.value),V=Math.min(l.value,N);I(V,!0)})})}),n({scrollToSlide:I}),(N,V)=>(e.openBlock(),e.createElementBlock("div",Ln,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,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:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${D.value}px`})},[e.renderSlot(N.$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(()=>[o.infinite||l.value>0?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",{onClick:Y,role:"button","aria-label":"Previous Slide"},[e.renderSlot(N.$slots,"prevButton",{},()=>[V[0]||(V[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),V[2]||(V[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.infinite||l.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("div",{onClick:U,role:"button","aria-label":"Next Slide"},[e.renderSlot(N.$slots,"nextButton",{},()=>[V[1]||(V[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",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(_,L)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${L}`,onClick:q=>g(L),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":L===l.value}]),"aria-label":`Go to slide ${L+1}`},null,10,Fn))),128))])):e.createCommentVNode("",!0)]))}}),oe=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},Rn=oe(Un,[["__scopeId","data-v-d9ad9601"]]),qn=oe(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(lt,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"]]),Hn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Wn=["onClick"],Kn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},Yn={key:1,class:"flex flex-col"},Xn={class:"text-sm"},Gn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Jn={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Zn={class:"hidden"},Qn=["id"],eo={class:"modal-box"},to={class:"font-bold text-lg"},no=["name","checked"],oo={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},lo={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},ao={key:1,class:"opacity-35 text-sm"},ro={class:"collapse-content flex place-content-center p-0"},so=oe(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),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Bo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Oo)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),y=h=>{var E;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),D=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(D.getTime()))return`${w.toLocaleDateString()} - ${D.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((E=h.props)!=null&&E.options&&Array.isArray(h.props.options)){const w=h.props.options.find(D=>D.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function p(h){var f,B;const E=(f=a.value)==null?void 0:f.name;if(!E){console.warn("componentValueUpdated called but no active tab.");return}const w=(B=o.searchOptions.find(b=>(b==null?void 0:b.category)===o.currentCategory))==null?void 0:B.tabs,D=w==null?void 0:w.find(b=>b.name===E);D?(D.value=h,l("update:search-data",{tab:D.name,data:h})):console.error(`Tab with name "${E}" not found in current category.`)}function d(h){p(h)}function C(){l("search")}async function x(h){var D;const E=document.getElementById(`advancedSearchMobile-${r}`),w=E&&E.contains(h.target);((D=a.value)==null?void 0:D.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function $(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,D,f;if(typeof window<"u"&&window.innerWidth<=768){$();return}const E=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((D=a.value)==null?void 0:D.displayMode)===E)a.value=null;else if(a.value={...h,displayMode:E},await e.nextTick(),((f=a.value)==null?void 0:f.displayMode)==="popup"){const B=i.value[h.name];if(B&&m.value){const b=B.getBoundingClientRect(),T=m.value.getBoundingClientRect(),I=b.bottom-T.top,U=b.left+b.width/2-T.left;u.value={left:`${U}px`,top:`${I+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const E=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!E||!m.value.contains(E))?(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)},A=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var E;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((E=a.value)==null?void 0:E.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 h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",x),window.addEventListener("resize",W)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("resize",W)});const W=()=>{var h,E;if(typeof window<"u"){const w=window.innerWidth<=768,D=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((E=a.value)==null?void 0:E.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!D&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const f=document.getElementById(`advancedSearchMobile-${r}`);f!=null&&f.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),f.close(),a.value=null)}};return(h,E)=>{var w,D;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:$},[e.createElementVNode("div",Hn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=o.searchOptions.find(f=>f.category===o.currentCategory))==null?void 0:w.tabs)||[],(f,B)=>{var b,T,I,U,Y;return e.openBlock(),e.createElementBlock("button",{key:`${f.name}-${B}`,onClick:e.withModifiers(g=>k(f),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===f.name,"tab-active-inline":((T=a.value)==null?void 0:T.name)===f.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:g=>i.value[f.name]=g},[((U=a.value)==null?void 0:U.name)===f.name&&((Y=a.value)==null?void 0:Y.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",Kn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:E[0]||(E[0]=g=>d(g)),"onUpdate:modelValue":E[1]||(E[1]=g=>d(g)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(A,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("p",Xn,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("p",Gn,e.toDisplayString(y(f)),1)):(e.openBlock(),e.createElementBlock("p",Jn,e.toDisplayString(f.description),1))]))],10,Wn)}),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(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:E[2]||(E[2]=f=>p(f)),"onUpdate:modelValue":E[3]||(E[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(C,["stop"])},[e.createVNode(e.unref(ot),{size:24,color:"white"})])]),e.createElementVNode("div",Zn,[e.createElementVNode("button",{title:"search",onClick:E[4]||(E[4]=()=>{})},[e.createVNode(e.unref(ot),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",eo,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",to,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((D=o.searchOptions.find(f=>f.category===o.currentCategory))==null?void 0:D.tabs)||[],(f,B)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:f.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:B===0},null,8,no),e.createElementVNode("div",oo,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("div",lo,e.toDisplayString(y(f)),1)):(e.openBlock(),e.createElementBlock("div",ao,e.toDisplayString(f.description),1))]),e.createElementVNode("div",ro,[E[7]||(E[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:E[5]||(E[5]=b=>p(b)),"onUpdate:modelValue":E[6]||(E[6]=b=>p(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:C}," Close and Search ")])])])],8,Qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),io={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"},co={key:0},uo={key:1},mo=["id","onKeydown"],fo={key:2,class:"flex justify-center p-4"},po={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"},ho={class:"join-item"},go=["id","disabled","value"],yo={class:"join-item"},bo=["id","disabled","value"],ko={key:3,class:"p-4 min-w-2xs"},wo=["id","disabled","value"],xo={key:4,class:"flex px-4 my-4 w-full justify-end"},at=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 o=typeof window<"u",l=t,r=n,a=e.ref(null),s=e.ref(!1),c=e.ref(null),i=e.ref(null),u=e.ref(null),m=e.ref(null),y=e.ref(null),p=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),C=g=>g instanceof Date?g.toISOString():g,x=g=>g.split("T")[0]||"",$=g=>{const S=g instanceof Date?g:new Date(g);if(isNaN(S.getTime()))return"";const z=String(S.getHours()).padStart(2,"0"),j=String(S.getMinutes()).padStart(2,"0");return`${z}:${j}`},k=()=>{if(l.disableDefaultValue&&!l.initialDate)return;let g=l.initialDate;if(!g&&!l.disableDefaultValue&&l.mode!=="time"){const z=new Date;g=l.range?{start:z,end:z}:z}if(!g)return;if(l.range&&typeof g=="object"&&"start"in g){const z=C(g.start),j=C(g.end);d.value.start=x(z),d.value.end=x(j),l.mode!=="date"&&(p.value.from=$(z),p.value.to=$(j));return}const S=C(g);d.value.single=x(S),l.mode!=="date"&&(p.value.single=$(S))},M=e.computed(()=>{const g=S=>{if(!S)return"";try{return new Date(S+"T00:00:00").toLocaleDateString(l.locale)}catch{return S}};return l.range?d.value.start&&d.value.end?`${g(d.value.start)} - ${g(d.value.end)}`:"":d.value.single?g(d.value.single):""}),A=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[S,z]=g.split("/");d.value.start=S||null,d.value.end=z||null}}},W=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(l.range){const z=d.value.start,j=d.value.end;if(!z||!j)return null;if(l.mode==="date")return{start:z,end:j};if(l.mode==="datetime"){const G=p.value.from||"00:00",H=p.value.to||"23:59";return{start:`${z}T${G}:00`,end:`${j}T${H}:00`}}return null}const g=d.value.single;if(!g)return null;if(l.mode==="date")return g;const S=p.value.single||"00:00";return`${g}T${S}:00`},E=async()=>{A();const g=h();r("update:modelValue",g),r("change",g)},w=()=>e.nextTick(E),D=g=>{const S=g.target;l.range?S===m.value?p.value.from=S.value:p.value.to=S.value:p.value.single=S.value,E()},f=()=>{s.value=!s.value},B=()=>{E(),s.value=!1},b=g=>{!l.popup||!s.value||setTimeout(()=>{const S=a.value,z=g.target,j=`date-picker-${l.id}-popup`;S&&!S.contains(z)&&!z.closest(`#${j}`)&&B()},0)},T=()=>B(),I=()=>{E(),l.popup&&(s.value=!1)},U=()=>{var S;const g=l.range?i.value:c.value;(S=g==null?void 0:g.navigate)==null||S.call(g,-1)},Y=()=>{var S;const g=l.range?i.value:c.value;(S=g==null?void 0:g.navigate)==null||S.call(g,1)};return e.onMounted(()=>{o&&Promise.resolve().then(()=>_a).catch(g=>console.warn("Failed to load cally:",g)),k()}),e.watch(d,async()=>{if(await e.nextTick(),c.value&&d.value.single){const g=d.value.single;c.value.value!==g&&(c.value.value=g)}if(i.value){const g=W();g&&i.value.value!==g&&(i.value.value=g)}E()},{deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),E()}),e.watch([u,m,y],E),(g,S)=>{const z=e.resolveComponent("calendar-month"),j=e.resolveComponent("calendar-date"),G=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[l.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:S[0]||(S[0]=H=>l.disabled?null:f())},[e.createElementVNode("div",io,[M.value?(e.openBlock(),e.createElementBlock("span",uo,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",co,e.toDisplayString(l.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!l.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":l.popup,"mt-2":!l.popup}]),id:`date-picker-${l.id}-popup`,onKeydown:[S[1]||(S[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(T,["esc"]),e.withKeys(e.withModifiers(I,["prevent"]),["enter"])]},[!l.range&&l.mode!=="time"&&o?(e.openBlock(),e.createBlock(j,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${l.id}-date`,min:l.min,max:l.max,disabled:l.disabled,"first-day-of-week":l.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:U},[...S[2]||(S[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:Y},[...S[3]||(S[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(z,{locale:l.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),l.range&&l.mode!=="time"&&o?(e.openBlock(),e.createBlock(G,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${l.id}-date-range`,min:l.min,max:l.max,disabled:l.disabled,"first-day-of-week":l.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:U},[...S[4]||(S[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:Y},[...S[5]||(S[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(z,{locale:l.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),l.range&&l.mode!=="date"?(e.openBlock(),e.createElementBlock("div",fo,[e.createElementVNode("div",po,[e.createElementVNode("div",ho,[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:`${l.id}-time-from`,placeholder:"from",onChange:D,disabled:l.disabled,value:p.value.from||""},null,40,go)]),S[6]||(S[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",yo,[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:y,id:`${l.id}-time-to`,onChange:D,disabled:l.disabled,value:p.value.to||""},null,40,bo)])])])):e.createCommentVNode("",!0),!l.range&&l.mode!=="date"?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:u,id:`${l.id}-time`,onChange:D,disabled:l.disabled,value:p.value.single||""},null,40,wo)])):e.createCommentVNode("",!0),l.popup&&l.closeText?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:B},e.toDisplayString(l.closeText),1)])):e.createCommentVNode("",!0)],42,mo)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-ca3752e5"]]),Bo=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),Eo=["value","checked","onChange","disabled"],vo=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:c=>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,Eo))),128))],2))}}),Co={class:"badge"},$o=["onClick"],So={class:"opacity-75"},Vo=["placeholder"],No=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),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),l("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter(C=>C!==d),l("update:modelValue",r.value)},y=()=>{c.value===""&&(r.value.pop(),l("update:modelValue",r.value))},p=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&y()};return e.watch(()=>o.modelValue,d=>{r.value=[...d]}),(d,C)=>(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",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,x=>e.renderSlot(d.$slots,"tag",{key:x,tag:x},()=>[e.createElementVNode("div",Co,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:$=>m(x),"aria-label":"Remove tag"},"X",8,$o),e.createElementVNode("span",So,e.toDisplayString(x),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":C[0]||(C[0]=x=>c.value=x),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:p,"aria-label":"Add tags"},null,40,Vo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),Do={class:"w-full max-w-xs form-control"},zo={key:0,class:"label"},Mo={class:"label-text"},To=["value"],Io={key:0,value:"",disabled:"",selected:""},_o=["value"],rt=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 u=i.target;r("update:modelValue",u.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,u)=>(e.openBlock(),e.createElementBlock("div",Do,[t.label?(e.openBlock(),e.createElementBlock("label",zo,[e.createElementVNode("span",Mo,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",Io,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,_o))),128))],40,To)]))}}),Oo=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Lo={key:0,class:"label"},Po={class:"label-text"},jo=["onKeydown","aria-expanded","aria-activedescendant"],Ao=["placeholder","disabled"],Fo={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Uo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Ro=["onMousedown","id","aria-selected"],qo={__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 B=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",B.length>0),B.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),y=e.ref(null),p=e.ref(null),d=e.ref(null),C=()=>{u.value=!l.disabled},x=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},$=()=>{u.value?x():C()},k=e.computed(()=>{const f=c.value?c.value.toLowerCase():"";return f===""&&!u.value?[]:l.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(f):"")});e.watch(()=>l.modelValue,(f,B)=>{if(f!==B&&x(),f==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=l.options.find(T=>T.value===f);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=f=>{y.value&&!y.value.contains(f.target)&&x()},A=()=>{setTimeout(()=>{y.value&&!y.value.contains(document.activeElement)&&x()},100)};e.watch(u,f=>{f?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",D)});const W=()=>{if(l.disabled)return;const f=i.value;r("update:modelValue",null),f&&r("clear",f)},h=f=>{i.value=f,s.value||(c.value=f.text),r("update:modelValue",f.value),r("select",f),x()},E=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||C()},D=f=>{if(!u.value||k.value.length===0)return;const B=k.value.findIndex((T,I)=>"option-"+I===d.value);let b=-1;if(f.key==="ArrowDown")f.preventDefault(),b=(B+1)%k.value.length;else if(f.key==="ArrowUp")f.preventDefault(),b=(B-1+k.value.length)%k.value.length;else if(f.key==="Enter"&&d.value){f.preventDefault();const T=k.value.find((I,U)=>"option-"+U===d.value);T&&h(T);return}else if(f.key==="Escape"){f.preventDefault(),x(),p.value&&p.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const T=document.getElementById(d.value);T&&requestAnimationFrame(()=>{T.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,f=>{f?(window.addEventListener("keydown",D),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",D)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",D)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:C,closeDropdown:x,toggleDropdown:$,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(f,B)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:y},[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",Po,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:{"background-image":"unset","padding-right":"0.5rem"},tabindex:" 0",onClick:B[1]||(B[1]=b=>s.value?$():C()),onKeydown:[e.withKeys(e.withModifiers(E,["prevent"]),["enter"]),e.withKeys(e.withModifiers(E,["prevent"]),["space"])],onBlur:A,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:p},[e.renderSlot(f.$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":B[0]||(B[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:C,onInput:w,tabindex:"-1",disabled:l.disabled},null,40,Ao)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(rn),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(W,["stop"])})):e.createCommentVNode("",!0),e.createVNode(e.unref(an),{class:e.normalizeClass([{"rotate-180":u.value},"mx-2 cursor-pointer text-base-content/60 hover:text-base-content/80"]),size:20,onClick:e.withModifiers($,["stop"])},null,8,["class"])],42,jo),e.withDirectives(e.createElementVNode("div",Fo,[e.createElementVNode("ul",Uo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,T)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(I=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+T,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Ro))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Ho={class:"w-full max-w-xs form-control"},Wo={key:0,class:"label"},Ko={class:"label-text"},Yo=["type","placeholder","disabled","value"],Xo={key:1,class:"label"},Go={class:"label-text-alt text-error validator-hint"},Jo={key:2,class:"label"},Zo={class:"label-text-alt text-success validator-hint"},st=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),c=e.ref(""),i=e.computed(()=>{var $,k,M,A;let d=!0,C="";const x=l.modelValue;return($=l.rules)!=null&&$.required&&(x==null||x==="")&&(d=!1,C="This field is required."),d&&((k=l.rules)==null?void 0:k.minLength)!==void 0&&typeof x=="string"&&x.length<l.rules.minLength&&(d=!1,C=`Must be at least ${l.rules.minLength} characters.`),d&&((M=l.rules)==null?void 0:M.maxLength)!==void 0&&typeof x=="string"&&x.length>l.rules.maxLength&&(d=!1,C=`Cannot exceed ${l.rules.maxLength} characters.`),d&&((A=l.rules)!=null&&A.email)&&typeof x=="string"&&x&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)||(d=!1,C="Please enter a valid email address.")),c.value=C,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const C=d.target;r("update:modelValue",C.value),s.value&&i.value},y=()=>{s.value=!0,i.value};return e.watch(()=>l.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,C)=>(e.openBlock(),e.createElementBlock("div",Ho,[t.label?(e.openBlock(),e.createElementBlock("label",Wo,[e.createElementVNode("span",Ko,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(d.$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"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-error":u.value,"input-success-validation":i.value&&s.value&&!u.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:y},null,42,Yo),u.value?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("span",Go,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("span",Zo,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),Qo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),el=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)}}),$e=e.ref([]);function it(){const t=(o,l="default",r=5e3)=>{const a=Math.random().toString(36).substring(2,9);$e.value.push({id:a,message:o,type:l,duration:r})},n=o=>{$e.value=$e.value.filter(l=>l.id!==o)};return{toasts:e.readonly($e),addToast:t,removeToast:n}}const tl=["value"],ct=oe(e.defineComponent({__name:"ToastNotification",props:{toast:{type:Object,required:!0}},emits:["remove"],setup(t,{emit:n}){const o=t,l=n,r=e.ref(100);let a=null,s=null;e.onMounted(()=>{const i=o.toast.duration,u=Date.now();a=setTimeout(()=>{l("remove",o.toast.id)},i),s=setInterval(()=>{const m=Date.now()-u,y=Math.max(0,i-m);r.value=y/i*100,y===0&&clearInterval(s)},50)}),e.onUnmounted(()=>{a&&clearTimeout(a),s&&clearInterval(s)});const c=e.computed(()=>{switch(o.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,u)=>(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:r.value,max:"100"},null,8,tl)],2))}}),[["__scopeId","data-v-bc0c6917"]]),nl=oe(e.defineComponent({__name:"ToastContainer",props:{position:{type:String,default:"top-end"}},setup(t){const n=t,{toasts:o,removeToast:l}=it(),r=e.computed(()=>{const[a,s]=n.position.split("-");return{"toast-top":a==="top","toast-middle":a==="middle","toast-bottom":a==="bottom","toast-start":s==="start","toast-center":s==="center","toast-end":s==="end"}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["toast z-50",r.value])},[e.createVNode(e.TransitionGroup,{name:"toast-fade"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createBlock(ct,{key:c.id,toast:c,onRemove:i=>e.unref(l)(c.id)},null,8,["toast","onRemove"]))),128))]),_:1})],2))}}),[["__scopeId","data-v-e10fa884"]]),ol={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 stroke-current shrink-0"},ll=["d"],al={class:"empty:hidden"},rl=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 o=t,l=n,r=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)}),a=e.computed(()=>{switch(o.type){case"info":return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";default:return""}}),s=e.computed(()=>{switch(o.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=()=>{r.value=!1};return(i,u)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert",class:e.normalizeClass(["alert",a.value])},[e.renderSlot(i.$slots,"icon",{class:"w-6 h-6"},()=>[(e.openBlock(),e.createElementBlock("svg",ol,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:s.value},null,8,ll)]))]),e.createElementVNode("span",null,e.toDisplayString(t.message),1),e.createElementVNode("div",al,[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)}}),sl={class:"container flex flex-col sm:flex-row"},il={class:"footer-title"},cl=["href"],dl={key:0,class:"sm:hidden w-full"},ul={class:"border-b-2 border-base-100 last:border-b-0 w-full"},ml={tabindex:"0",class:"collapse collapse-plus w-full"},fl={class:"collapse-title font-bold text-lg collapsible-footer-title"},pl={class:"collapse-content flex w-full text-sm"},hl={class:"flex flex-col gap-2.5"},gl={class:"w-full"},yl=["href"],bl={class:"sm:w-1/4"},kl=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{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",sl,[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,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid w-max":t.collapseOnMobile}])},[e.createElementVNode("h6",il,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,cl))),256))],2))),256)),e.createElementVNode("nav",{class:e.normalizeClass(["empty:hidden",[{"hidden sm:grid":t.collapseOnMobile}]])},[e.renderSlot(o.$slots,"extra-row")],2),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",dl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",ul,[e.createElementVNode("div",ml,[e.createElementVNode("div",fl,e.toDisplayString(r.title),1),e.createElementVNode("div",pl,[e.createElementVNode("ul",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",gl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,yl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",bl,[e.renderSlot(o.$slots,"default")])])],2))}}),wl={},xl={class:"min-h-40 container hero"},Bl={class:"px-0! text-center hero-content"},El={class:"mt-9 text-4xl"};function vl(t,n){return e.openBlock(),e.createElementBlock("div",xl,[e.createElementVNode("div",Bl,[e.createElementVNode("div",null,[e.createElementVNode("h1",El,[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 Cl=oe(wl,[["render",vl]]),$l={class:"flex flex-row place-content-center gap-4 categories"},Sl=["onClick"],Vl=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",$l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.searchOptions,c=>(e.openBlock(),e.createElementBlock("div",{key:c.category},[e.createElementVNode("button",{onClick:i=>r(c.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":o.currentCategory===c.category}])},e.toDisplayString(c.category),11,Sl)]))),128))]))}}),Nl={class:"md:flex hidden navbar-start"},Dl={class:"md:flex justify-center items-center hidden navbar-center"},zl={class:"md:flex hidden navbar-end"},Ml={class:"navbar-bottom md:flex hidden"},Tl=oe(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",Nl,[e.renderSlot(o.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Dl,[e.renderSlot(o.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",zl,[e.renderSlot(o.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Ml,[e.renderSlot(o.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Il={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},_l=["onClick","aria-selected"],Ol={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"},Ll={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},Pl=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 u=(o.items.indexOf(l.value)+1)%o.items.length;a(o.items[u])}function c(){const u=(o.items.indexOf(l.value)-1+o.items.length)%o.items.length;a(o.items[u])}return e.onMounted(()=>{o.items&&a(o.items[0])}),e.onUnmounted(()=>{o.rotateTabsAfter&&o.rotateTabsAfter>0&&setInterval(()=>{s()},o.rotateTabsAfter*1e3)}),(i,u)=>(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",Il,[e.createElementVNode("button",{onClick:u[0]||(u[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:u[1]||(u[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:y=>a(m),"aria-selected":l.value==m},e.toDisplayString(m),11,_l),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ol,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",Ll,[e.renderSlot(i.$slots,"default")])],64))}}),jl={key:0,class:"step-icon"},Al=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,o=l=>l<n.progress?"complete":l===n.progress?"active":"incomplete";return(l,r)=>(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,(a,s)=>(e.openBlock(),e.createElementBlock("li",{key:s,class:e.normalizeClass(["step",{"step-primary":a.color==="primary"&&o(s)==="complete"||!a.color&&o(s)==="complete","step-secondary":a.color==="secondary"&&o(s)==="complete","step-accent":a.color==="accent"&&o(s)==="complete","step-info":a.color==="info"&&o(s)==="complete","step-success":a.color==="success"&&o(s)==="complete","step-warning":a.color==="warning"&&o(s)==="complete","step-error":a.color==="error"&&o(s)==="complete","step-neutral":o(s)==="incomplete","step-active":o(s)==="active","step-complete":o(s)==="complete",bars:n.bars}])},[a.icon?(e.openBlock(),e.createElementBlock("span",jl,e.toDisplayString(a.icon),1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(a.title),1)],2))),128))],2))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Fl{constructor(n){tt(this,se);tt(this,me,new Set);nt(this,se,n)}get current(){return pe(this,se)}set current(n){pe(this,se)!=n&&(nt(this,se,n),pe(this,me).forEach(o=>o(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}se=new WeakMap,me=new WeakMap;const dt=t=>new Fl(t),Ie=Symbol.for("atomico.hooks");globalThis[Ie]=globalThis[Ie]||{};let ce=globalThis[Ie];const Ul=Symbol.for("Atomico.suspense"),ut=Symbol.for("Atomico.effect"),Rl=Symbol.for("Atomico.layoutEffect"),mt=Symbol.for("Atomico.insertionEffect"),de=(t,n,o)=>{const{i:l,hooks:r}=ce.c,a=r[l]=r[l]||{};return a.value=t(a.value),a.effect=n,a.tag=o,ce.c.i++,r[l].value},ql=t=>de((n=dt(t))=>n),ge=()=>de((t=dt(ce.c.host))=>t),ft=()=>ce.c.update,Hl=(t,n,o=0)=>{let l={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in l){const m=l[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:l,update:t,i:0,id:o};let i;try{r=!1,i=c()}catch(u){if(u!==Ul)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(mt,c),()=>(s(Rl,c),()=>{s(ut,c)})),isSuspense:a}},ue=Symbol.for;function pt(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 Z=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Wl}=Array,_e=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ht(t,n){let o;const l=r=>{let{length:a}=r;for(let s=0;s<a;s++){const c=r[s];if(c&&Array.isArray(c))l(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(o==null&&(o=""),o+=c):(o!=null&&(n(o),o=null),n(c))}}};l(t),o!=null&&n(o)}const gt=(t,n,o)=>(t.addEventListener(n,o),()=>t.removeEventListener(n,o));class yt{constructor(n,o,l){this.message=o,this.target=n,this.value=l}}class bt extends yt{}class Kl extends yt{}const Se="Custom",Yl=null,Xl={true:1,"":1,1:1};function Gl(t,n,o,l,r){const{type:a,reflect:s,event:c,value:i,attr:u=Jl(n)}=(o==null?void 0:o.name)!=Se&&ye(o)&&o!=Yl?o:{type:o},m=(a==null?void 0:a.name)===Se&&a.map,y=i!=null?a==Function||!Z(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(p){const d=this[n];y&&a!=Boolean&&p==null&&(p=y());const{error:C,value:x}=(m?ea:ta)(a,p);if(C&&x!=null)throw new bt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,x);d!=x&&(this._props[n]=x??void 0,this.update(),c&&kt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Zl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),y&&(r[n]=y()),l[u]={prop:n,type:a}}const kt=(t,{type:n,base:o=CustomEvent,...l})=>t.dispatchEvent(new o(n,l)),Jl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Zl=(t,n,o,l)=>l==null||n==Boolean&&!l?t.removeAttribute(o):t.setAttribute(o,(n==null?void 0:n.name)===Se&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(l):ye(l)?JSON.stringify(l):n==Boolean?"":l),Ql=(t,n)=>t==Boolean?!!Xl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Se?n:new t(n),ea=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},ta=(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 na=0;const oa=t=>{var o;return((o=(t==null?void 0:t.dataset)||{})==null?void 0:o.hydrate)||""||"c"+na++},be=(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:c}=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,c]}async _setup(){if(this._props)return;this._props={};let m,y;this.mounted=new Promise($=>this.mount=()=>{$(),m!=this.parentNode&&(y!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise($=>this.unmount=()=>{$(),(m!=this.parentNode||!this.isConnected)&&(p.cleanEffects(!0)()(),y=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const p=Hl(()=>this.update(),this,oa(this));let d,C=!0;const x=_e(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const $=p.load(this._render),k=p.cleanEffects();return $&&$.render(this,this.symbolId,x),d=!1,C&&!p.isSuspense()&&(C=!1,!x&&la(this)),k()}finally{d=!1}}).then($=>{$&&$()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,y,p){if(o[m]){if(m===this._ignoreAttr||y===p)return;const{prop:d,type:C}=o[m];try{this[d]=Ql(C,p)}catch{throw new Kl(this,`The value defined as attr '${m}' cannot be parsed by type '${C.name}'`,p)}}else super.attributeChangedCallback(m,y,p)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const y in s)Gl(this.prototype,y,s[y],o,l);return Object.keys(o).concat(m)}}return i};function la(t){const{styles:n}=t.constructor,{shadowRoot:o}=t;if(o&&n.length){const l=[];ht(n,r=>{r&&(r instanceof Element?o.appendChild(r.cloneNode(!0)):l.push(r))}),l.length&&(o.adoptedStyleSheets=l)}}const wt=t=>(n,o)=>{de(([l,r]=[])=>((r||!r)&&(r&&pt(r,o)?l=l||!0:(Z(l)&&l(),l=null)),[l,o]),([l,r],a)=>a?(Z(l)&&l(),[]):[l||n(),r],t)},ke=wt(ut),aa=wt(mt);class xt 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 Oe=t=>{const n=ft();return de((o=new xt(t,(l,r,a)=>{l=Z(l)?l(r[0]):l,l!==r[0]&&(r[0]=l,a||n())}))=>o)},te=(t,n)=>{const[o]=de(([l,r,a=0]=[])=>((!r||r&&!pt(r,n))&&(l=t()),[l,n,a]));return o},Le=t=>{const{current:n}=ge();if(!(t in n))throw new bt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((o=new xt(n[t],(l,r)=>{l=Z(l)?l(n[t]):l,n[t]=l}))=>(o[0]=n[t],o))},le=(t,n={})=>{const o=ge();return o[t]||(o[t]=(l=n.detail)=>kt(o.current,{type:t,...n,detail:l})),o[t]},Pe=ue("atomico/options");globalThis[Pe]=globalThis[Pe]||{sheet:!!document.adoptedStyleSheets};const Bt=globalThis[Pe],ra={checked:1,value:1,selected:1},sa={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},ia={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Ve={},je=[];class Ae extends Text{}const ca=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),Et=ue("atomico/vnode"),da=()=>{};function ua(t,n,o){return Ct(this,t,n,o)}const vt=(t,n,...o)=>{const l=n||Ve;let{children:r}=l;if(r=r??(o.length?o:je),t===da)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...l}:l);const s=Bt.render||ua;return{[we]:Et,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 Ct(t,n,o=ca,l,r){let a;if(n&&n[o]&&n[o].vnode==t||t[we]!=Et)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(l=!0,n=t.type.cloneNode(!0),n[Fe]=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]:Ve,{vnode:c=Ve,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:y=je,props:p=Ve}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=p&&pa(n,p,t.props,m,r),t.children!==y){const d=t.shadow?n.shadowRoot:n;u=fa(t.children,u,d,o,!i&&l,r&&t.type=="foreignObject"?!1:r)}return n[o]={vnode:t,handlers:m,fragment:u,cycle:i+1},n}function ma(t,n){const o=new Ae(""),l=new Ae("");let r;if(t[n?"prepend":"append"](o),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(_e(a,!0)&&!_e(s,!0)){r=a;break}a=s}}return r?r.before(l):t.append(l),{markStart:o,markEnd:l}}function fa(t,n,o,l,r,a){t=t==null?null:Wl(t)?t:[t];const s=n||ma(o,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const y=u&&new Set;let p=c;if(t&&ht(t,d=>{if(typeof d=="object"&&!d[we])return;const C=d[we]&&d.key,x=u&&C!=null&&u.get(C);p!=i&&p===x?y.delete(p):p=p==i?i:p.nextSibling;const $=u?x:p;let k=$;if(d[we])k=Ct(d,$,l,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=p&&(u&&y.delete(k),!$||u?(o.insertBefore(k,p),u&&p!=i&&y.add(p)):$==i?o.insertBefore(k,i):(o.replaceChild(k,$),p=k)),C!=null&&(m=m||new Map,m.set(C,k))}),p=p==i?i:p.nextSibling,n&&p!=i)for(;p!=i;){const d=p;p=p.nextSibling,d.remove()}return y&&y.forEach(d=>d.remove()),s.keyes=m,s}function pa(t,n,o,l,r){for(const a in n)!(a in o)&&$t(t,a,n[a],null,r,l);for(const a in o)$t(t,a,n[a],o[a],r,l)}function $t(t,n,o,l,r,a){if(n=n=="class"&&!r?"className":n,o=o??null,l=l??null,n in t&&ra[n]&&(o=t[n]),!(l===o||ia[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Z(l)||Z(o)))ha(t,n.slice(2),l,a);else if(n=="ref")l&&(Z(l)?l(t):l.current=t);else if(n=="style"){const{style:s}=t;o=o||"",l=l||"";const c=ye(o),i=ye(l);if(c)for(const u in o)if(i)!(u in l)&&St(s,u,null);else break;if(i)for(const u in l){const m=l[u];c&&o[u]===m||St(s,u,m)}else s.cssText=l}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!sa[n]&&n in t||Z(l)||Z(o))?t[n]=l??"":l==null?t.removeAttribute(s):t.setAttribute(s,ye(l)?JSON.stringify(l):l)}}function ha(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 St(t,n,o){let l="setProperty";o==null&&(l="removeProperty",o=null),~n.indexOf("-")?t[l](n,o):t[n]=o}const Vt={};function Ne(t,...n){const o=(t.raw||t).reduce((l,r,a)=>l+r+(n[a]||""),"");return Vt[o]=Vt[o]||ga(o)}function ga(t){if(Bt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ya=vt("host",{style:"display: contents"}),Ue=ue("atomico/context"),ba=(t,n)=>{const o=ge();aa(()=>gt(o.current,"ConnectContext",l=>{t===l.detail.id&&(l.stopPropagation(),l.detail.connect(n))}),[t])},ka=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),o=()=>{let a;return n({id:t,connect(s){a=s}}),a},[l,r]=Oe(o);return ke(()=>{l||(t[Ue]||(t[Ue]=customElements.whenDefined(new t().localName)),t[Ue].then(()=>r(o)))},[t]),l},wa=t=>{const n=ka(t),o=ft();return ke(()=>{if(n)return gt(n,"UpdatedValue",o)},[n]),(n||t).value},xa=t=>{const n=be(()=>(ba(n,ge().current),ya),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},O=(t,n,o)=>(n==null?n={key:o}:n.key=o,vt(t,n)),xe=O,Nt=Ne`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Dt=Ne`.vh{position:absolute;transform:scale(0)}`;function Re(){const t=new Date;return new P(t.getFullYear(),t.getMonth()+1,t.getDate())}function qe(t,n=0){const o=X(t),l=o.getUTCDay(),r=(l<n?7:0)+l-n;return o.setUTCDate(o.getUTCDate()-r),P.from(o)}function zt(t,n=0){return qe(t,n).add({days:6})}function Mt(t){return P.from(new Date(Date.UTC(t.year,t.month,0)))}function De(t,n,o){return n&&P.compare(t,n)<0?n:o&&P.compare(t,o)>0?o:t}const Ba={days:1};function Ea(t,n=0){let o=qe(t.toPlainDate(),n);const l=zt(Mt(t),n),r=[];for(;P.compare(o,l)<0;){const a=[];for(let s=0;s<7;s++)a.push(o),o=o.add(Ba);r.push(a)}return r}function X(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const va=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,He=(t,n)=>t.toString().padStart(n,"0");class P{constructor(n,o,l){this.year=n,this.month=o,this.day=l}add(n){const o=X(this);if("days"in n)return o.setUTCDate(this.day+n.days),P.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=P.from(X({year:l,month:r,day:1}));return De(P.from(o),a,Mt(a))}toString(){return`${He(this.year,4)}-${He(this.month,2)}-${He(this.day,2)}`}toPlainYearMonth(){return new ze(this.year,this.month)}equals(n){return P.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(va);if(!o)throw new TypeError(n);const[,l,r,a]=o;return new P(parseInt(l,10),parseInt(r,10),parseInt(a,10))}return new P(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class ze{constructor(n,o){this.year=n,this.month=o}add(n){const o=X(this),l=(n.months??0)+(n.years??0)*12;return o.setUTCMonth(o.getUTCMonth()+l),new ze(o.getUTCFullYear(),o.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new P(this.year,this.month,1)}}function Me(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,o]=Le(t);return[te(()=>Me(P,n),[n]),l=>o(l==null?void 0:l.toString())]}function Ca(t){const[n="",o]=Le(t);return[te(()=>{const[l,r]=n.split("/"),a=Me(P,l),s=Me(P,r);return a&&s?[a,s]:[]},[n]),l=>o(`${l[0]}/${l[1]}`)]}function $a(t){const[n="",o]=Le(t);return[te(()=>{const l=[];for(const r of n.trim().split(/\s+/)){const a=Me(P,r);a&&l.push(a)}return l},[n]),l=>o(l.join(" "))]}function Be(t,n){return te(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function Tt(t,n,o){const l=Be(t,o);return te(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=l.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,l])}const It=(t,n,o)=>De(t,n,o)===t,_t=t=>t.target.matches(":dir(ltr)"),Sa={month:"long",day:"numeric"},Va={month:"long"},Na={weekday:"long"},We={bubbles:!0};function Da({props:t,context:n}){const{offset:o}=t,{firstDayOfWeek:l,isDateDisallowed:r,min:a,max:s,today:c,page:i,locale:u,focusedDate:m,formatWeekday:y}=n,p=c??Re(),d=Tt(Na,l,u),C=te(()=>({weekday:y}),[y]),x=Tt(C,l,u),$=Be(Sa,u),k=Be(Va,u),M=te(()=>i.start.add({months:o}),[i,o]),A=te(()=>Ea(M,l),[M,l]),W=le("focusday",We),h=le("selectday",We),E=le("hoverday",We);function w(B){W(De(B,a,s))}function D(B){let b;switch(B.key){case"ArrowRight":b=m.add({days:_t(B)?1:-1});break;case"ArrowLeft":b=m.add({days:_t(B)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(B.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(B.shiftKey?{years:1}:{months:1});break;case"Home":b=qe(m,l);break;case"End":b=zt(m,l);break;default:return}w(b),B.preventDefault()}function f(B){var j,G;const b=M.equals(B);if(!n.showOutsideDays&&!b)return;const T=B.equals(m),I=B.equals(p),U=X(B),Y=r==null?void 0:r(U),g=!It(B,a,s);let S="",z;if(n.type==="range"){const[H,Q]=n.value,re=H==null?void 0:H.equals(B),ie=Q==null?void 0:Q.equals(B);z=H&&Q&&It(B,H,Q),S=`${re?"range-start":""} ${ie?"range-end":""} ${z&&!re&&!ie?"range-inner":""}`}else n.type==="multi"?z=n.value.some(H=>H.equals(B)):z=(j=n.value)==null?void 0:j.equals(B);return{part:`${`button day day-${U.getDay()} ${b?z?"selected":"":"outside"} ${Y?"disallowed":""} ${I?"today":""} ${((G=n.getDayParts)==null?void 0:G.call(n,U))??""}`} ${S}`,tabindex:b&&T?0:-1,disabled:g,"aria-disabled":Y?"true":void 0,"aria-pressed":b&&z,"aria-current":I?"date":void 0,"aria-label":$.format(U),onkeydown:D,onclick(){Y||h(B),w(B)},onmouseover(){!Y&&!g&&E(B)}}}return{weeks:A,yearMonth:M,daysLong:d,daysVisible:x,formatter:k,getDayProps:f}}const Ke=Re(),Ye=xa({type:"date",firstDayOfWeek:1,focusedDate:Ke,page:{start:Ke.toPlainYearMonth(),end:Ke.toPlainYearMonth()}});customElements.define("calendar-ctx",Ye);const za=(t,n)=>(n+t)%7,Ot=be(t=>{const n=wa(Ye),o=ql(),l=Da({props:t,context:n});function r(){var a;(a=o.current.querySelector("button[tabindex='0']"))==null||a.focus()}return xe("host",{shadowDom:!0,focus:r,children:[O("div",{id:"h",part:"heading",children:l.formatter.format(X(l.yearMonth))}),xe("table",{ref:o,"aria-labelledby":"h",part:"table",children:[O("thead",{children:O("tr",{part:"tr head",children:l.daysLong.map((a,s)=>xe("th",{part:`th day day-${za(n.firstDayOfWeek,s)}`,scope:"col",children:[O("span",{class:"vh",children:a}),O("span",{"aria-hidden":"true",children:l.daysVisible[s]})]}))})}),O("tbody",{children:l.weeks.map((a,s)=>O("tr",{part:"tr week",children:a.map((c,i)=>{const u=l.getDayProps(c);return O("td",{part:"td",children:u&&O("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[Nt,Dt,Ne`: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",Ot);function Lt(t){return O("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:O("slot",{name:t.name,children:t.children})})}function Xe(t){const n=X(t.page.start),o=X(t.page.end);return xe("div",{role:"group","aria-labelledby":"h",part:"container",children:[O("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,o)}),xe("div",{part:"header",children:[O(Lt,{name:"previous",onclick:t.previous,children:"Previous"}),O("slot",{part:"heading",name:"heading",children:O("div",{"aria-hidden":"true",children:t.format.formatRange(n,o)})}),O(Lt,{name:"next",onclick:t.next,children:"Next"})]}),O(Ye,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:O("slot",{})})]})}const Ge={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"}},Je=[Nt,Dt,Ne`: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}`],Ma={year:"numeric"},Ta={year:"numeric",month:"long"};function Ze(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new ze(t.year,1):t,{start:t,end:t.add({months:n-1})});function Ia({pageBy:t,focusedDate:n,months:o,max:l,min:r,goto:a}){const s=t==="single"?1:o,[c,i]=Oe(()=>Pt(n.toPlainYearMonth(),o)),u=y=>i(Pt(c.start.add({months:y}),o)),m=y=>{const p=Ze(c.start,y.toPlainYearMonth());return p>=0&&p<o};return ke(()=>{if(m(n))return;const y=Ze(n.toPlainYearMonth(),c.start);a(n.add({months:y}))},[c.start]),ke(()=>{if(m(n))return;const y=Ze(c.start,n.toPlainYearMonth());u(y===-1?-s:y===o?s:Math.floor(y/o)*o)},[n,s,o]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!l||!m(l)?()=>u(s):void 0}}function Qe({months:t,pageBy:n,locale:o,focusedDate:l,setFocusedDate:r}){const[a]=ae("min"),[s]=ae("max"),[c]=ae("today"),i=le("focusday"),u=le("change"),m=te(()=>De(l??c??Re(),a,s),[l,c,a,s]);function y(k){r(k),i(X(k))}const{next:p,previous:d,page:C}=Ia({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:y}),x=ge();function $(k){const M=(k==null?void 0:k.target)??"day";M==="day"?x.current.querySelectorAll("calendar-month").forEach(A=>A.focus(k)):x.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:Be(Ma,o),formatVerbose:Be(Ta,o),page:C,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),y(k.detail),setTimeout($)},min:a,max:s,today:c,next:p,previous:d,focus:$}}const jt=be(t=>{const[n,o]=ae("value"),[l=n,r]=ae("focusedDate"),a=Qe({...t,focusedDate:l,setFocusedDate:r});function s(c){o(c.detail),a.dispatch()}return O("host",{shadowDom:!0,focus:a.focus,children:O(Xe,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-date",jt);const At=(t,n)=>P.compare(t,n)<0?[t,n]:[n,t],Ft=be(t=>{const[n,o]=Ca("value"),[l=n[0],r]=ae("focusedDate"),a=Qe({...t,focusedDate:l,setFocusedDate:r}),s=le("rangestart"),c=le("rangeend"),[i,u]=ae("tentative"),[m,y]=Oe();ke(()=>y(void 0),[i]);function p($){a.onFocus($),d($)}function d($){$.stopPropagation(),i&&y($.detail)}function C($){const k=$.detail;$.stopPropagation(),i?(o(At(i,k)),u(void 0),c(X(k)),a.dispatch()):(u(k),s(X(k)))}const x=i?At(i,m??i):n;return O("host",{shadowDom:!0,focus:a.focus,children:O(Xe,{...t,...a,type:"range",value:x,onFocus:p,onHover:d,onSelect:C})})},{props:{...Ge,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",Ft);const Ut=be(t=>{const[n,o]=$a("value"),[l=n[0],r]=ae("focusedDate"),a=Qe({...t,focusedDate:l,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),o(i),a.dispatch()}return O("host",{shadowDom:!0,focus:a.focus,children:O(Xe,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-multi",Ut);const _a=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:jt,CalendarMonth:Ot,CalendarMulti:Ut,CalendarRange:Ft},Symbol.toStringTag,{value:"Module"}));v.Accordion=Cn,v.AdvancedSearch=so,v.Alert=rl,v.Avatar=Vn,v.Badge=Nn,v.ButtonComponent=Kt,v.Card=On,v.Carousel=Rn,v.CarouselItem=qn,v.CategoryNavigation=Vl,v.DatetimePicker=at,v.Dropdown=Gt,v.FilterableSelect=qo,v.Footer=kl,v.Hero=Cl,v.InputField=st,v.Loader=el,v.Modal=Qt,v.NavigationBar=Tl,v.Rating=vo,v.Selector=rt,v.Steps=Al,v.Swap=nn,v.Tab=Pl,v.TagInput=No,v.ThemeController=fn,v.Toast=nl,v.ToastComposable=it,v.ToastNotification=ct,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
46
+ */const cn=he("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"}]]),dn=(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},un={class:"swap-rotate swap"},mn=["true-value","false-value"],fn=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(t){const n=t,o=dn("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",un,[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,mn),[[e.vModelCheckbox,e.unref(o)]]),e.createVNode(e.unref(cn),{class:"swap-off fill-current"}),e.createVNode(e.unref(sn),{class:"swap-on fill-current"})]))}}),pn={key:0,class:"join join-vertical w-full"},hn=["name"],gn={key:1,type:"checkbox"},yn={class:"collapse-title font-bold text-2xl lg:text-4xl"},bn={class:"collapse-content"},kn=["innerHTML"],wn=["name"],xn={key:1,type:"checkbox"},Bn={class:"collapse-title font-bold text-2xl lg:text-4xl"},En={class:"collapse-content"},vn=["innerHTML"],Cn=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{},toggle:{type:Boolean,default:!1}},setup(t){const n=t;return(o,l)=>n.joinItems?(e.openBlock(),e.createElementBlock("div",pn,[(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 join-item",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",gn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,hn)),e.createElementVNode("div",yn,e.toDisplayString(r.title),1),e.createElementVNode("div",bn,[e.createElementVNode("span",{innerHTML:r.content},null,8,kn)])],2))),128))])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.items,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:""]]),key:a},[t.toggle?(e.openBlock(),e.createElementBlock("input",xn)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",name:t.name,value:"true"},null,8,wn)),e.createElementVNode("div",Bn,e.toDisplayString(r.title),1),e.createElementVNode("div",En,[e.createElementVNode("span",{innerHTML:r.content},null,8,vn)])],2))),128))}}),$n=["src"],Sn={class:"text-xl"},Vn=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,$n)],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",Sn,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))}}),Dn=["src","alt"],zn={key:0,class:"card-body"},Mn={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Tn={key:1,class:"text-left"},In={class:"flex-col flex-nowrap mt-auto card-actions empty:hidden"},_n={key:1,class:"card-body"},On=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,Dn)):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",zn,[t.title?(e.openBlock(),e.createElementBlock("h2",Mn,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"details",{class:"empty:hidden"}),t.description?(e.openBlock(),e.createElementBlock("p",Tn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",In,[e.renderSlot(l.$slots,"actions")])])),t.loading?(e.openBlock(),e.createElementBlock("div",_n,[...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))}}),lt=Symbol("CarouselItemStyle"),Ln={class:"relative h-full"},Pn={key:0,class:"flex-shrink-0"},jn={key:0,class:"flex-shrink-0"},An={key:1,id:"carousel-indicators",class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Fn=["onClick","aria-label"],Un=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},breakpoints:{type:Object,default:()=>({})},infinite:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},autoplayInterval:{type:Number,default:3e3,validator:t=>t>0}},setup(t,{expose:n}){const o=t,l=e.ref(o.initialSlide),r=e.ref(null),a=e.ref(null),s=e.ref(0),c=e.ref(!1),i=e.ref(0),u=e.ref(0),m=e.ref(!1),y=e.ref(0),p=e.ref(0),d=e.ref(0),C=e.ref(0),x=e.ref(0),$=e.ref(0),k=e.ref(0),M=e.ref(null),A=e.ref(null),W=e.ref(0),h=e.ref(null),E=e.computed(()=>{const N=Object.keys(o.breakpoints).map(Number).sort((_,L)=>_-L);let V={};for(const _ of N)u.value>=_&&(V={...V,...o.breakpoints[_]});return V}),w=e.computed(()=>E.value.slidesPerView??o.slidesPerView),D=e.computed(()=>E.value.gap??o.gap),f=e.computed(()=>{const N=o.sliderOrientation==="horizontal",_=`calc((100% - ${w.value>1?(w.value-1)*D.value:0}px) / ${w.value})`;return N?{width:_}:{height:_}});e.provide(lt,f);const B=()=>{a.value?i.value=a.value.children.length:i.value=0},b=()=>{if(!r.value||w.value<=0)return 0;const V=o.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=(w.value-1)*D.value;return V<=0?0:(V-_)/w.value},T=e.computed(()=>{if(!r.value||i.value===0||w.value===0)return 0;const V=o.sliderOrientation==="horizontal"?r.value.offsetWidth:r.value.offsetHeight,_=b(),L=i.value*(_+D.value)-D.value;return Math.max(0,L-V)}),I=async(N,V=!1)=>{if(!r.value||w.value<=0||c.value||(B(),i.value===0))return;const _=b();if(_<=0)return;const L=_+D.value,q=T.value;let F=N;o.infinite?F=(N%i.value+i.value)%i.value:F=Math.max(0,Math.min(N,i.value-w.value));const ee=F*L,R=o.infinite?ee:Math.max(0,Math.min(ee,q));if(V||o.slideDuration===0){a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`),s.value=R,l.value=F,c.value=!1,o.autoplay&&re();return}c.value=!0;const ne=s.value,J=R-ne,Ee=performance.now(),fe=Te=>{if(!a.value)return;const Pa=Te-Ee,qt=Math.min(1,Pa/o.slideDuration),ja=1-Math.pow(1-qt,3),et=ne+J*ja;a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-et}px, 0, 0)`:`translate3d(0, ${-et}px, 0)`,s.value=et,qt<1?M.value=requestAnimationFrame(fe):(a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-R}px, 0, 0)`:`translate3d(0, ${-R}px, 0)`,s.value=R,l.value=F,c.value=!1,o.autoplay&&re(),M.value=null)};M.value=requestAnimationFrame(fe)},U=()=>{o.infinite&&l.value>=i.value-w.value?I(0):I(l.value+1)},Y=()=>{o.infinite&&l.value<=0?I(i.value-w.value):I(l.value-1)},g=N=>{I(N)},S=N=>{c.value&&M.value&&(o.autoplay&&Q(),cancelAnimationFrame(M.value),c.value=!1);const V="touches"in N?N.touches[0]:N;y.value=V.clientX,p.value=V.clientY,h.value=null,d.value=s.value,C.value=0,x.value=0,$.value=0,k.value=performance.now(),r.value&&(r.value.style.scrollSnapType="none"),document.addEventListener("mousemove",z,{passive:!1}),document.addEventListener("mouseup",G),document.addEventListener("touchmove",z,{passive:!1}),document.addEventListener("touchend",G)},z=N=>{const V="touches"in N?N.touches[0]:N;if(!h.value){const Ee=Math.abs(V.clientX-y.value),fe=Math.abs(V.clientY-p.value),Te=5;if(Ee>Te||fe>Te)if(o.sliderOrientation==="horizontal")if(Ee>fe)h.value="horizontal",m.value=!0;else{j();return}else if(fe>Ee)h.value="vertical",m.value=!0;else{j();return}else return}if(!m.value||!a.value||!r.value)return;N.cancelable&&N.preventDefault();const _=performance.now(),L=_-k.value,q=o.sliderOrientation==="horizontal"?V.clientX:V.clientY,F=o.sliderOrientation==="horizontal"?y.value:p.value,ee=o.sliderOrientation==="horizontal"?x.value||F:$.value||F,R=q-ee;L>0&&(C.value=R/L*1e3);const ne=q-F;let J=d.value-ne;J<0?J=J*.3:J>T.value&&(J=T.value+(J-T.value)*.3),W.value=J,a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-W.value}px, 0, 0)`:`translate3d(0, ${-W.value}px, 0)`,o.sliderOrientation==="horizontal"?x.value=q:$.value=q,k.value=_},j=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",G),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",G)},G=()=>{if(!m.value||!r.value||!a.value)return;const V=o.sliderOrientation==="horizontal"?d.value-(x.value-y.value):d.value-($.value-p.value),_=Math.max(0,Math.min(V,T.value)),L=b()+D.value;if(m.value=!1,j(),s.value=_,o.infinite){if(V<0){I(i.value-1);return}else if(V>T.value){I(0);return}}else if(V<0){I(0);return}else if(V>T.value){const R=Math.max(0,i.value-Math.floor(w.value));I(R);return}const q=Math.max(0,i.value-Math.floor(w.value)),F=100,ee=Math.round(_/L);if(Math.abs(C.value)>F){const R=-Math.sign(C.value),ne=ee+R;I(Math.max(0,Math.min(q,ne)))}else I(Math.max(0,Math.min(q,ee)))},H=()=>{!o.autoplay||A.value!==null||(A.value=setInterval(()=>{U()},o.autoplayInterval))},Q=()=>{A.value!==null&&(clearInterval(A.value),A.value=null)},re=()=>{Q(),setTimeout(()=>{H()},500)},ie=e.ref(null),Oa=N=>{if(!N||N.length===0)return;const{width:V}=N[0].contentRect;Math.abs(V-u.value)>1&&(u.value=V)},La=()=>{if(!r.value||w.value<=0||(B(),i.value===0))return;const N=b();if(N<=0)return;const V=Math.max(0,i.value-w.value),_=Math.min(Math.max(0,o.initialSlide),V),L=_*(N+D.value),q=T.value,F=Math.max(0,Math.min(L,q));a.value&&(a.value.style.transitionDuration="0ms",a.value.style.transform=o.sliderOrientation==="horizontal"?`translate3d(${-F}px, 0, 0)`:`translate3d(0, ${-F}px, 0)`),s.value=F,l.value=_};let Rt=!1;return e.onMounted(()=>{var V,_,L,q,F,ee,R,ne;u.value=window.innerWidth;const N=e.watch(i,J=>{J>0&&!Rt&&(La(),Rt=!0,N())});o.autoplay&&H(),B(),r.value&&(ie.value=new ResizeObserver(Oa),ie.value.observe(r.value)),(V=r.value)==null||V.addEventListener("mousedown",S),(_=r.value)==null||_.addEventListener("touchstart",S,{passive:!0}),o.showNavigationButtons&&((F=(q=(L=r.value)==null?void 0:L.parentElement)==null?void 0:q.querySelector(".absolute.flex.justify-between"))==null||F.addEventListener("click",re)),o.showIndicators&&((ne=(R=(ee=r.value)==null?void 0:ee.parentElement)==null?void 0:R.querySelector(".bottom-5.flex.justify-center"))==null||ne.addEventListener("click",re))}),e.onUnmounted(()=>{ie.value&&ie.value.disconnect(),Q()}),e.watch(()=>o.autoplay,N=>{N?H():Q()}),e.watch(()=>o.autoplayInterval,re),e.watch(()=>o.initialSlide,N=>{requestAnimationFrame(()=>I(N,!0))}),e.watch([w,D],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(B(),i.value===0)return;const N=Math.max(0,i.value-w.value),V=Math.min(l.value,N);I(V,!0)})})}),n({scrollToSlide:I}),(N,V)=>(e.openBlock(),e.createElementBlock("div",Ln,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:r,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:a,class:e.normalizeClass(["w-full h-full transition-transform duration-0 ease-out",t.sliderOrientation==="horizontal"?"flex":"block"]),style:e.normalizeStyle({gap:`${D.value}px`})},[e.renderSlot(N.$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(()=>[o.infinite||l.value>0?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",{onClick:Y,role:"button","aria-label":"Previous Slide"},[e.renderSlot(N.$slots,"prevButton",{},()=>[V[0]||(V[0]=e.createElementVNode("button",{class:"btn btn-circle text-xs",tabindex:"-1"},"❮",-1))],!0)])])):e.createCommentVNode("",!0)]),_:3}),V[2]||(V[2]=e.createElementVNode("div",{class:"flex-grow"},null,-1)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.infinite||l.value<i.value-w.value?(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("div",{onClick:U,role:"button","aria-label":"Next Slide"},[e.renderSlot(N.$slots,"nextButton",{},()=>[V[1]||(V[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",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(_,L)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${L}`,onClick:q=>g(L),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":L===l.value}]),"aria-label":`Go to slide ${L+1}`},null,10,Fn))),128))])):e.createCommentVNode("",!0)]))}}),oe=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},Rn=oe(Un,[["__scopeId","data-v-d9ad9601"]]),qn=oe(e.defineComponent({__name:"carouselItem",setup(t){const n=e.inject(lt,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"]]),Hn={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},Wn=["onClick"],Kn={key:0,class:"inline-component-wrapper flex grow justify-center items-center w-full h-full"},Yn={key:1,class:"flex flex-col"},Xn={class:"text-sm"},Gn={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Jn={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Zn={class:"hidden"},Qn=["id"],eo={class:"modal-box"},to={class:"font-bold text-lg"},no=["name","checked"],oo={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},lo={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},ao={key:1,class:"opacity-35 text-sm"},ro={class:"collapse-content flex place-content-center p-0"},so=oe(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),c={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Bo)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Oo)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Qo))},i=e.ref({}),u=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),m=e.ref(null),y=h=>{var E;if(h.value===void 0||h.value===null||h.value==="")return"";switch(h.type){case"datetime":if(typeof h.value=="string")try{const w=new Date(h.value);if(!isNaN(w.getTime()))return w.toLocaleString()}catch{}else if(h.range&&typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)try{const w=new Date(h.value.start),D=new Date(h.value.end);if(!isNaN(w.getTime())&&!isNaN(D.getTime()))return`${w.toLocaleDateString()} - ${D.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof h.value=="object"&&h.value!==null&&"start"in h.value&&"end"in h.value)return`${h.value.start} - ${h.value.end}`;break;case"custom-number":if(typeof h.value=="number")return h.value.toString();break;case"standard-select":case"custom-select":if((E=h.props)!=null&&E.options&&Array.isArray(h.props.options)){const w=h.props.options.find(D=>D.value===h.value);if(w)return w.text}return String(h.value);case"custom-text":if(typeof h.value=="string")return h.value;break}return String(h.value)};function p(h){var f,B;const E=(f=a.value)==null?void 0:f.name;if(!E){console.warn("componentValueUpdated called but no active tab.");return}const w=(B=o.searchOptions.find(b=>(b==null?void 0:b.category)===o.currentCategory))==null?void 0:B.tabs,D=w==null?void 0:w.find(b=>b.name===E);D?(D.value=h,l("update:search-data",{tab:D.name,data:h})):console.error(`Tab with name "${E}" not found in current category.`)}function d(h){p(h)}function C(){l("search")}async function x(h){var D;const E=document.getElementById(`advancedSearchMobile-${r}`),w=E&&E.contains(h.target);((D=a.value)==null?void 0:D.displayMode)==="popup"&&m.value&&!m.value.contains(h.target)&&!w&&(await e.nextTick(),a.value=null)}async function $(){if(typeof window<"u"&&window.innerWidth<=768){const h=document.getElementById(`advancedSearchMobile-${r}`);h?(a.value=null,h.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${r}".`)}}async function k(h){var w,D,f;if(typeof window<"u"&&window.innerWidth<=768){$();return}const E=h.displayMode??"popup";if(((w=a.value)==null?void 0:w.name)===h.name&&((D=a.value)==null?void 0:D.displayMode)===E)a.value=null;else if(a.value={...h,displayMode:E},await e.nextTick(),((f=a.value)==null?void 0:f.displayMode)==="popup"){const B=i.value[h.name];if(B&&m.value){const b=B.getBoundingClientRect(),T=m.value.getBoundingClientRect(),I=b.bottom-T.top,U=b.left+b.width/2-T.left;u.value={left:`${U}px`,top:`${I+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",h.name)}}const M=h=>{const E=h.relatedTarget;setTimeout(()=>{var w;((w=a.value)==null?void 0:w.displayMode)==="inline"&&m.value&&(!E||!m.value.contains(E))?(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)},A=()=>{console.log("Enter key pressed on inline component, closing inline view."),a.value=null};e.watch(s,h=>{var E;console.log("advanced-search: inlineComponentRef changed. New Value:",h),console.log("advanced-search: activeTab.value:",a.value),h&&((E=a.value)==null?void 0:E.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 h),console.log("advanced-search: Does newValue have focusInput?",typeof h.focusInput=="function"),h&&typeof h.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),h.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',h)})):console.log(h?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",x),window.addEventListener("resize",W)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("resize",W)});const W=()=>{var h,E;if(typeof window<"u"){const w=window.innerWidth<=768,D=a.value!==null&&(a.value.displayMode==="popup"||a.value.displayMode==="inline")&&window.innerWidth>768;!w&&(((h=a.value)==null?void 0:h.displayMode)==="popup"||((E=a.value)==null?void 0:E.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),a.value=null),w&&!D&&a.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),a.value=null);const f=document.getElementById(`advancedSearchMobile-${r}`);f!=null&&f.open&&!w&&(console.log("Modal is open on desktop, closing modal and active tab."),f.close(),a.value=null)}};return(h,E)=>{var w,D;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:$},[e.createElementVNode("div",Hn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((w=o.searchOptions.find(f=>f.category===o.currentCategory))==null?void 0:w.tabs)||[],(f,B)=>{var b,T,I,U,Y;return e.openBlock(),e.createElementBlock("button",{key:`${f.name}-${B}`,onClick:e.withModifiers(g=>k(f),["stop"]),class:e.normalizeClass([{"tab-active":((b=a.value)==null?void 0:b.name)===f.name,"tab-active-inline":((T=a.value)==null?void 0:T.name)===f.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:g=>i.value[f.name]=g},[((U=a.value)==null?void 0:U.name)===f.name&&((Y=a.value)==null?void 0:Y.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",Kn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps({ref_for:!0},a.value.props||{},{modelValue:a.value.value,onUpdated:E[0]||(E[0]=g=>d(g)),"onUpdate:modelValue":E[1]||(E[1]=g=>d(g)),onBlur:M,onKeydown:e.withKeys(e.withModifiers(A,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:s}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",Yn,[e.createElementVNode("p",Xn,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("p",Gn,e.toDisplayString(y(f)),1)):(e.openBlock(),e.createElementBlock("p",Jn,e.toDisplayString(f.description),1))]))],10,Wn)}),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(u.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[a.value.type]),e.mergeProps(a.value.props||{},{modelValue:a.value.value,onUpdated:E[2]||(E[2]=f=>p(f)),"onUpdate:modelValue":E[3]||(E[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(C,["stop"])},[e.createVNode(e.unref(ot),{size:24,color:"white"})])]),e.createElementVNode("div",Zn,[e.createElementVNode("button",{title:"search",onClick:E[4]||(E[4]=()=>{})},[e.createVNode(e.unref(ot),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(r)}`,class:"modal"},[e.createElementVNode("div",eo,[e.renderSlot(h.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",to,e.toDisplayString(t.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((D=o.searchOptions.find(f=>f.category===o.currentCategory))==null?void 0:D.tabs)||[],(f,B)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:f.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(r)}`,checked:B===0},null,8,no),e.createElementVNode("div",oo,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("div",lo,e.toDisplayString(y(f)),1)):(e.openBlock(),e.createElementBlock("div",ao,e.toDisplayString(f.description),1))]),e.createElementVNode("div",ro,[E[7]||(E[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:E[5]||(E[5]=b=>p(b)),"onUpdate:modelValue":E[6]||(E[6]=b=>p(b))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:C}," Close and Search ")])])])],8,Qn)],64)}}}),[["__scopeId","data-v-577c3624"]]),io={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"},co={key:0},uo={key:1},mo=["id","onKeydown"],fo={key:2,class:"flex justify-center p-4"},po={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"},ho={class:"join-item"},go=["id","disabled","value"],yo={class:"join-item"},bo=["id","disabled","value"],ko={key:3,class:"p-4 min-w-2xs"},wo=["id","disabled","value"],xo={key:4,class:"flex px-4 my-4 w-full justify-end"},at=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 o=typeof window<"u",l=t,r=n,a=e.ref(null),s=e.ref(!1),c=e.ref(null),i=e.ref(null),u=e.ref(null),m=e.ref(null),y=e.ref(null),p=e.ref({from:"",to:"",single:""}),d=e.ref({single:null,start:null,end:null}),C=g=>g instanceof Date?g.toISOString():g,x=g=>g.split("T")[0]||"",$=g=>{const S=g instanceof Date?g:new Date(g);if(isNaN(S.getTime()))return"";const z=String(S.getHours()).padStart(2,"0"),j=String(S.getMinutes()).padStart(2,"0");return`${z}:${j}`},k=()=>{if(l.disableDefaultValue&&!l.initialDate)return;let g=l.initialDate;if(!g&&!l.disableDefaultValue&&l.mode!=="time"){const z=new Date;g=l.range?{start:z,end:z}:z}if(!g)return;if(l.range&&typeof g=="object"&&"start"in g){const z=C(g.start),j=C(g.end);d.value.start=x(z),d.value.end=x(j),l.mode!=="date"&&(p.value.from=$(z),p.value.to=$(j));return}const S=C(g);d.value.single=x(S),l.mode!=="date"&&(p.value.single=$(S))},M=e.computed(()=>{const g=S=>{if(!S)return"";try{return new Date(S+"T00:00:00").toLocaleDateString(l.locale)}catch{return S}};return l.range?d.value.start&&d.value.end?`${g(d.value.start)} - ${g(d.value.end)}`:"":d.value.single?g(d.value.single):""}),A=()=>{if(c.value)d.value.single=c.value.value||null;else if(i.value){const g=i.value.value;if(typeof g=="string"&&g.includes("/")){const[S,z]=g.split("/");d.value.start=S||null,d.value.end=z||null}}},W=()=>d.value.start&&d.value.end?`${d.value.start}/${d.value.end}`:null,h=()=>{if(l.range){const z=d.value.start,j=d.value.end;if(!z||!j)return null;if(l.mode==="date")return{start:z,end:j};if(l.mode==="datetime"){const G=p.value.from||"00:00",H=p.value.to||"23:59";return{start:`${z}T${G}:00`,end:`${j}T${H}:00`}}return null}const g=d.value.single;if(!g)return null;if(l.mode==="date")return g;const S=p.value.single||"00:00";return`${g}T${S}:00`},E=async()=>{A();const g=h();r("update:modelValue",g),r("change",g)},w=()=>e.nextTick(E),D=g=>{const S=g.target;l.range?S===m.value?p.value.from=S.value:p.value.to=S.value:p.value.single=S.value,E()},f=()=>{s.value=!s.value},B=()=>{E(),s.value=!1},b=g=>{!l.popup||!s.value||setTimeout(()=>{const S=a.value,z=g.target,j=`date-picker-${l.id}-popup`;S&&!S.contains(z)&&!z.closest(`#${j}`)&&B()},0)},T=()=>B(),I=()=>{E(),l.popup&&(s.value=!1)},U=()=>{var S;const g=l.range?i.value:c.value;(S=g==null?void 0:g.navigate)==null||S.call(g,-1)},Y=()=>{var S;const g=l.range?i.value:c.value;(S=g==null?void 0:g.navigate)==null||S.call(g,1)};return e.onMounted(()=>{o&&Promise.resolve().then(()=>_a).catch(g=>console.warn("Failed to load cally:",g)),k()}),e.watch(d,async()=>{if(await e.nextTick(),c.value&&d.value.single){const g=d.value.single;c.value.value!==g&&(c.value.value=g)}if(i.value){const g=W();g&&i.value.value!==g&&(i.value.value=g)}E()},{deep:!0}),e.watch([d,c,i],async()=>{await e.nextTick(),c.value&&d.value.single&&!c.value.value&&(c.value.value=d.value.single),i.value&&d.value.start&&d.value.end&&!i.value.value&&(i.value.value=`${d.value.start}/${d.value.end}`),E()}),e.watch([u,m,y],E),(g,S)=>{const z=e.resolveComponent("calendar-month"),j=e.resolveComponent("calendar-date"),G=e.resolveComponent("calendar-range");return e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-fit lg:w-full",ref_key:"pickerContainer",ref:a,onMousedownCapture:b},[l.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:"flex items-center gap-2 cursor-pointer w-full",onClick:S[0]||(S[0]=H=>l.disabled?null:f())},[e.createElementVNode("div",io,[M.value?(e.openBlock(),e.createElementBlock("span",uo,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("span",co,e.toDisplayString(l.placeholder),1))])])):e.createCommentVNode("",!0),s.value||!l.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":l.popup,"mt-2":!l.popup}]),id:`date-picker-${l.id}-popup`,onKeydown:[S[1]||(S[1]=e.withKeys(e.withModifiers(()=>{},["prevent","stop"]),["tab"])),e.withKeys(T,["esc"]),e.withKeys(e.withModifiers(I,["prevent"]),["enter"])]},[!l.range&&l.mode!=="time"&&o?(e.openBlock(),e.createBlock(j,{key:0,class:"cally w-full",ref_key:"datePicker",ref:c,id:`${l.id}-date`,min:l.min,max:l.max,disabled:l.disabled,"first-day-of-week":l.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:U},[...S[2]||(S[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:Y},[...S[3]||(S[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(z,{locale:l.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),l.range&&l.mode!=="time"&&o?(e.openBlock(),e.createBlock(G,{key:1,class:"cally w-full",ref_key:"rangeDatePicker",ref:i,id:`${l.id}-date-range`,min:l.min,max:l.max,disabled:l.disabled,"first-day-of-week":l.firstDayOfWeek,onChange:w},{default:e.withCtx(()=>[e.createElementVNode("button",{slot:"previous",class:"btn-outline btn btn-primary md:btn-sm",onClick:U},[...S[4]||(S[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:Y},[...S[5]||(S[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(z,{locale:l.locale},null,8,["locale"])]),_:1},8,["id","min","max","disabled","first-day-of-week"])):e.createCommentVNode("",!0),l.range&&l.mode!=="date"?(e.openBlock(),e.createElementBlock("div",fo,[e.createElementVNode("div",po,[e.createElementVNode("div",ho,[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:`${l.id}-time-from`,placeholder:"from",onChange:D,disabled:l.disabled,value:p.value.from||""},null,40,go)]),S[6]||(S[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",yo,[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:y,id:`${l.id}-time-to`,onChange:D,disabled:l.disabled,value:p.value.to||""},null,40,bo)])])])):e.createCommentVNode("",!0),!l.range&&l.mode!=="date"?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("input",{class:"open:bg-primary open:rounded w-full input input-bordered justify-center",type:"time",ref_key:"timeInput",ref:u,id:`${l.id}-time`,onChange:D,disabled:l.disabled,value:p.value.single||""},null,40,wo)])):e.createCommentVNode("",!0),l.popup&&l.closeText?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("button",{class:"btn btn-primary max-lg:w-full",onClick:B},e.toDisplayString(l.closeText),1)])):e.createCommentVNode("",!0)],42,mo)):e.createCommentVNode("",!0)],544)}}}),[["__scopeId","data-v-ca3752e5"]]),Bo=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"})),Eo=["value","checked","onChange","disabled"],vo=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:c=>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,Eo))),128))],2))}}),Co={class:"badge"},$o=["onClick"],So={class:"opacity-75"},Vo=["placeholder"],No=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),c=e.ref(""),i=e.computed(()=>a<0||r.value.length<a),u=()=>{const d=c.value.trim();d&&!r.value.includes(d)&&(r.value.push(d),l("update:modelValue",r.value),c.value="")},m=d=>{r.value=r.value.filter(C=>C!==d),l("update:modelValue",r.value)},y=()=>{c.value===""&&(r.value.pop(),l("update:modelValue",r.value))},p=d=>{d.key==="Enter"?u():d.key==="Backspace"&&c.value===""&&y()};return e.watch(()=>o.modelValue,d=>{r.value=[...d]}),(d,C)=>(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",d.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,x=>e.renderSlot(d.$slots,"tag",{key:x,tag:x},()=>[e.createElementVNode("div",Co,[e.createElementVNode("button",{class:"px-1! py-0! h-fit font-bold cursor-pointer",onClick:$=>m(x),"aria-label":"Remove tag"},"X",8,$o),e.createElementVNode("span",So,e.toDisplayString(x),1)])])),128)),e.renderSlot(d.$slots,"input",{showInput:i.value},()=>[i.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:s,"onUpdate:modelValue":C[0]||(C[0]=x=>c.value=x),type:"text",placeholder:t.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:p,"aria-label":"Add tags"},null,40,Vo)),[[e.vModelText,c.value]]):e.createCommentVNode("",!0)])],2))}}),Do={class:"w-full max-w-xs form-control"},zo={key:0,class:"label"},Mo={class:"label-text"},To=["value"],Io={key:0,value:"",disabled:"",selected:""},_o=["value"],rt=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 u=i.target;r("update:modelValue",u.value)};return n({focusInput:()=>{var i;console.log("select.vue: focusInput method called."),(i=a.value)==null||i.focus()}}),(i,u)=>(e.openBlock(),e.createElementBlock("div",Do,[t.label?(e.openBlock(),e.createElementBlock("label",zo,[e.createElementVNode("span",Mo,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",Io,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,_o))),128))],40,To)]))}}),Oo=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),Lo={key:0,class:"label"},Po={class:"label-text"},jo=["onKeydown","aria-expanded","aria-activedescendant"],Ao=["placeholder","disabled"],Fo={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Uo={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Ro=["onMousedown","id","aria-selected"],qo={__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 B=(a.default?a.default():[]).filter(b=>b.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",B.length>0),B.length>0}),c=e.ref(""),i=e.ref(null),u=e.ref(!1),m=e.ref(null),y=e.ref(null),p=e.ref(null),d=e.ref(null),C=()=>{u.value=!l.disabled},x=()=>{u.value=!1,d.value=null,s.value||(i.value&&c.value!==i.value.text?c.value=i.value.text:i.value||(c.value=""))},$=()=>{u.value?x():C()},k=e.computed(()=>{const f=c.value?c.value.toLowerCase():"";return f===""&&!u.value?[]:l.options.filter(b=>b&&b.text?b.text.toLowerCase().includes(f):"")});e.watch(()=>l.modelValue,(f,B)=>{if(f!==B&&x(),f==null)i.value=null,!u.value&&!s.value&&(c.value="");else{const b=l.options.find(T=>T.value===f);b?(i.value=b,!u.value&&!s.value&&(c.value=b.text)):(i.value=null,!u.value&&!s.value&&(c.value=""))}},{immediate:!0});const M=f=>{y.value&&!y.value.contains(f.target)&&x()},A=()=>{setTimeout(()=>{y.value&&!y.value.contains(document.activeElement)&&x()},100)};e.watch(u,f=>{f?setTimeout(()=>{document.addEventListener("click",M)},0):document.removeEventListener("click",M)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",D)});const W=()=>{if(l.disabled)return;const f=i.value;r("update:modelValue",null),f&&r("clear",f)},h=f=>{i.value=f,s.value||(c.value=f.text),r("update:modelValue",f.value),r("select",f),x()},E=()=>{k.value.length>0&&h(k.value[0])},w=()=>{u.value||C()},D=f=>{if(!u.value||k.value.length===0)return;const B=k.value.findIndex((T,I)=>"option-"+I===d.value);let b=-1;if(f.key==="ArrowDown")f.preventDefault(),b=(B+1)%k.value.length;else if(f.key==="ArrowUp")f.preventDefault(),b=(B-1+k.value.length)%k.value.length;else if(f.key==="Enter"&&d.value){f.preventDefault();const T=k.value.find((I,U)=>"option-"+U===d.value);T&&h(T);return}else if(f.key==="Escape"){f.preventDefault(),x(),p.value&&p.value.focus();return}else if(s.value)return;if(b!==-1){d.value="option-"+b;const T=document.getElementById(d.value);T&&requestAnimationFrame(()=>{T.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(u,f=>{f?(window.addEventListener("keydown",D),!s.value&&!c.value&&i.value&&(c.value=i.value.text)):window.removeEventListener("keydown",D)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",M),window.removeEventListener("keydown",D)}),n({isDropdownOpen:u,selectedItem:i,openDropdown:C,closeDropdown:x,toggleDropdown:$,selectItem:h,filterText:c,hasDefaultSlotContent:s}),(f,B)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:y},[t.label?(e.openBlock(),e.createElementBlock("label",Lo,[e.createElementVNode("span",Po,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:{"background-image":"unset","padding-right":"0.5rem"},tabindex:" 0",onClick:B[1]||(B[1]=b=>s.value?$():C()),onKeydown:[e.withKeys(e.withModifiers(E,["prevent"]),["enter"]),e.withKeys(e.withModifiers(E,["prevent"]),["space"])],onBlur:A,role:"combobox","aria-haspopup":"listbox","aria-expanded":u.value,"aria-activedescendant":d.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:p},[e.renderSlot(f.$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":B[0]||(B[0]=b=>c.value=b),ref_key:"filterInput",ref:m,onFocus:C,onInput:w,tabindex:"-1",disabled:l.disabled},null,40,Ao)),[[e.vModelText,c.value]])]),i.value&&!t.disabled?(e.openBlock(),e.createBlock(e.unref(rn),{key:0,size:20,class:"mx-2 text-base-content/50 hover:text-base-content/80 cursor-pointer",onClick:e.withModifiers(W,["stop"])})):e.createCommentVNode("",!0),e.createVNode(e.unref(an),{class:e.normalizeClass([{"rotate-180":u.value},"mx-2 cursor-pointer text-base-content/60 hover:text-base-content/80"]),size:20,onClick:e.withModifiers($,["stop"])},null,8,["class"])],42,jo),e.withDirectives(e.createElementVNode("div",Fo,[e.createElementVNode("ul",Uo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(b,T)=>(e.openBlock(),e.createElementBlock("li",{key:b.value,onMousedown:e.withModifiers(I=>h(b),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+T,role:"option","aria-selected":i.value&&i.value.value===b.value},[e.createElementVNode("a",null,e.toDisplayString(b.text),1)],40,Ro))),128))])],512),[[e.vShow,u.value&&k.value.length>0]])],512))}},Ho={class:"w-full max-w-xs form-control"},Wo={key:0,class:"label"},Ko={class:"label-text"},Yo=["type","placeholder","disabled","value"],Xo={key:1,class:"label"},Go={class:"label-text-alt text-error validator-hint"},Jo={key:2,class:"label"},Zo={class:"label-text-alt text-success validator-hint"},st=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),c=e.ref(""),i=e.computed(()=>{var $,k,M,A;let d=!0,C="";const x=l.modelValue;return($=l.rules)!=null&&$.required&&(x==null||x==="")&&(d=!1,C="This field is required."),d&&((k=l.rules)==null?void 0:k.minLength)!==void 0&&typeof x=="string"&&x.length<l.rules.minLength&&(d=!1,C=`Must be at least ${l.rules.minLength} characters.`),d&&((M=l.rules)==null?void 0:M.maxLength)!==void 0&&typeof x=="string"&&x.length>l.rules.maxLength&&(d=!1,C=`Cannot exceed ${l.rules.maxLength} characters.`),d&&((A=l.rules)!=null&&A.email)&&typeof x=="string"&&x&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)||(d=!1,C="Please enter a valid email address.")),c.value=C,r("validate",d),d}),u=e.computed(()=>s.value&&!i.value),m=d=>{const C=d.target;r("update:modelValue",C.value),s.value&&i.value},y=()=>{s.value=!0,i.value};return e.watch(()=>l.modelValue,()=>{s.value&&i.value}),n({focusInput:()=>{var d;console.log("inputField.vue: focusInput method called."),(d=a.value)==null||d.focus()},isValid:i,isTouched:s,errorMessage:c}),(d,C)=>(e.openBlock(),e.createElementBlock("div",Ho,[t.label?(e.openBlock(),e.createElementBlock("label",Wo,[e.createElementVNode("span",Ko,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.renderSlot(d.$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"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-primary":t.color==="primary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-secondary":t.color==="secondary"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-accent":t.color==="accent"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-info":t.color==="info"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-success":t.color==="success"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-warning":t.color==="warning"&&!u.value&&!(i.value&&s.value&&t.needsValidation),"input-error":u.value,"input-success-validation":i.value&&s.value&&!u.value&&t.needsValidation}]]),value:t.modelValue,onInput:m,onBlur:y},null,42,Yo),u.value?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("span",Go,e.toDisplayString(c.value),1)])):i.value&&s.value&&t.successMessage?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("span",Zo,e.toDisplayString(t.successMessage),1)])):e.createCommentVNode("",!0)]))}}),Qo=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"})),el=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)}}),$e=e.ref([]);function it(){const t=(o,l="default",r=5e3)=>{const a=Math.random().toString(36).substring(2,9);$e.value.push({id:a,message:o,type:l,duration:r})},n=o=>{$e.value=$e.value.filter(l=>l.id!==o)};return{toasts:e.readonly($e),addToast:t,removeToast:n}}const tl=["value"],ct=oe(e.defineComponent({__name:"ToastNotification",props:{toast:{type:Object,required:!0}},emits:["remove"],setup(t,{emit:n}){const o=t,l=n,r=e.ref(100);let a=null,s=null;e.onMounted(()=>{const i=o.toast.duration,u=Date.now();a=setTimeout(()=>{l("remove",o.toast.id)},i),s=setInterval(()=>{const m=Date.now()-u,y=Math.max(0,i-m);r.value=y/i*100,y===0&&clearInterval(s)},50)}),e.onUnmounted(()=>{a&&clearTimeout(a),s&&clearInterval(s)});const c=e.computed(()=>{switch(o.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,u)=>(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:r.value,max:"100"},null,8,tl)],2))}}),[["__scopeId","data-v-bc0c6917"]]),nl=oe(e.defineComponent({__name:"ToastContainer",props:{position:{type:String,default:"top-end"}},setup(t){const n=t,{toasts:o,removeToast:l}=it(),r=e.computed(()=>{const[a,s]=n.position.split("-");return{"toast-top":a==="top","toast-middle":a==="middle","toast-bottom":a==="bottom","toast-start":s==="start","toast-center":s==="center","toast-end":s==="end"}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["toast z-50",r.value])},[e.createVNode(e.TransitionGroup,{name:"toast-fade"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createBlock(ct,{key:c.id,toast:c,onRemove:i=>e.unref(l)(c.id)},null,8,["toast","onRemove"]))),128))]),_:1})],2))}}),[["__scopeId","data-v-e10fa884"]]),ol={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 stroke-current shrink-0"},ll=["d"],al={class:"empty:hidden"},rl=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 o=t,l=n,r=e.computed({get:()=>o.modelValue,set:i=>l("update:modelValue",i)}),a=e.computed(()=>{switch(o.type){case"info":return"alert-info";case"success":return"alert-success";case"warning":return"alert-warning";case"error":return"alert-error";default:return""}}),s=e.computed(()=>{switch(o.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=()=>{r.value=!1};return(i,u)=>r.value?(e.openBlock(),e.createElementBlock("div",{key:0,role:"alert",class:e.normalizeClass(["alert",a.value])},[e.renderSlot(i.$slots,"icon",{class:"w-6 h-6"},()=>[(e.openBlock(),e.createElementBlock("svg",ol,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:s.value},null,8,ll)]))]),e.createElementVNode("span",null,e.toDisplayString(t.message),1),e.createElementVNode("div",al,[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)}}),sl={class:"container flex flex-col sm:flex-row"},il={class:"footer-title"},cl=["href"],dl={key:0,class:"sm:hidden w-full"},ul={class:"border-b-2 border-base-100 last:border-b-0 w-full"},ml={tabindex:"0",class:"collapse collapse-plus w-full"},fl={class:"collapse-title font-bold text-lg collapsible-footer-title"},pl={class:"collapse-content flex w-full text-sm"},hl={class:"flex flex-col gap-2.5"},gl={class:"w-full"},yl=["href"],bl={class:"sm:w-1/4"},kl=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1},rows:{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",sl,[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,r=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid w-max":t.collapseOnMobile}])},[e.createElementVNode("h6",il,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,cl))),256))],2))),256)),e.createElementVNode("nav",{class:e.normalizeClass(["empty:hidden",[{"hidden sm:grid":t.collapseOnMobile}]])},[e.renderSlot(o.$slots,"extra-row")],2),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",dl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock("ul",ul,[e.createElementVNode("div",ml,[e.createElementVNode("div",fl,e.toDisplayString(r.title),1),e.createElementVNode("div",pl,[e.createElementVNode("ul",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,a=>(e.openBlock(),e.createElementBlock("li",gl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:a.link},e.toDisplayString(a.text),9,yl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0)],2),e.createElementVNode("aside",bl,[e.renderSlot(o.$slots,"default")])])],2))}}),wl={},xl={class:"min-h-40 container hero"},Bl={class:"px-0! text-center hero-content"},El={class:"mt-9 text-4xl"};function vl(t,n){return e.openBlock(),e.createElementBlock("div",xl,[e.createElementVNode("div",Bl,[e.createElementVNode("div",null,[e.createElementVNode("h1",El,[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 Cl=oe(wl,[["render",vl]]),$l={class:"flex flex-row place-content-center gap-4 categories"},Sl=["onClick"],Vl=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",$l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.searchOptions,c=>(e.openBlock(),e.createElementBlock("div",{key:c.category},[e.createElementVNode("button",{onClick:i=>r(c.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":o.currentCategory===c.category}])},e.toDisplayString(c.category),11,Sl)]))),128))]))}}),Nl={class:"md:flex hidden navbar-start"},Dl={class:"md:flex justify-center items-center hidden navbar-center"},zl={class:"md:flex hidden navbar-end"},Ml={class:"navbar-bottom md:flex hidden"},Tl=oe(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",Nl,[e.renderSlot(o.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",Dl,[e.renderSlot(o.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",zl,[e.renderSlot(o.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Ml,[e.renderSlot(o.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Il={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},_l=["onClick","aria-selected"],Ol={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"},Ll={class:"p-6 border-x-0 border-t-2 border-b-0 border-base-300 max-w-full"},Pl=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 u=(o.items.indexOf(l.value)+1)%o.items.length;a(o.items[u])}function c(){const u=(o.items.indexOf(l.value)-1+o.items.length)%o.items.length;a(o.items[u])}return e.onMounted(()=>{o.items&&a(o.items[0])}),e.onUnmounted(()=>{o.rotateTabsAfter&&o.rotateTabsAfter>0&&setInterval(()=>{s()},o.rotateTabsAfter*1e3)}),(i,u)=>(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",Il,[e.createElementVNode("button",{onClick:u[0]||(u[0]=m=>c()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:u[1]||(u[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:y=>a(m),"aria-selected":l.value==m},e.toDisplayString(m),11,_l),t.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ol,[e.renderSlot(i.$slots,`${m}-tab`)]))],64))),256))],2),e.createElementVNode("div",Ll,[e.renderSlot(i.$slots,"default")])],64))}}),jl={key:0,class:"step-icon"},Al=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,o=l=>l<n.progress?"complete":l===n.progress?"active":"incomplete";return(l,r)=>(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,(a,s)=>(e.openBlock(),e.createElementBlock("li",{key:s,class:e.normalizeClass(["step",{"step-primary":a.color==="primary"&&o(s)==="complete"||!a.color&&o(s)==="complete","step-secondary":a.color==="secondary"&&o(s)==="complete","step-accent":a.color==="accent"&&o(s)==="complete","step-info":a.color==="info"&&o(s)==="complete","step-success":a.color==="success"&&o(s)==="complete","step-warning":a.color==="warning"&&o(s)==="complete","step-error":a.color==="error"&&o(s)==="complete","step-neutral":o(s)==="incomplete","step-active":o(s)==="active","step-complete":o(s)==="complete",bars:n.bars}])},[a.icon?(e.openBlock(),e.createElementBlock("span",jl,e.toDisplayString(a.icon),1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(a.title),1)],2))),128))],2))}});typeof document>"u"&&(globalThis.document={}),typeof window>"u"&&(globalThis.window=globalThis);class Fl{constructor(n){tt(this,se);tt(this,me,new Set);nt(this,se,n)}get current(){return pe(this,se)}set current(n){pe(this,se)!=n&&(nt(this,se,n),pe(this,me).forEach(o=>o(n)))}on(n){return pe(this,me).add(n),()=>pe(this,me).delete(n)}}se=new WeakMap,me=new WeakMap;const dt=t=>new Fl(t),Ie=Symbol.for("atomico.hooks");globalThis[Ie]=globalThis[Ie]||{};let ce=globalThis[Ie];const Ul=Symbol.for("Atomico.suspense"),ut=Symbol.for("Atomico.effect"),Rl=Symbol.for("Atomico.layoutEffect"),mt=Symbol.for("Atomico.insertionEffect"),de=(t,n,o)=>{const{i:l,hooks:r}=ce.c,a=r[l]=r[l]||{};return a.value=t(a.value),a.effect=n,a.tag=o,ce.c.i++,r[l].value},ql=t=>de((n=dt(t))=>n),ge=()=>de((t=dt(ce.c.host))=>t),ft=()=>ce.c.update,Hl=(t,n,o=0)=>{let l={},r=!1;const a=()=>r,s=(c,i)=>{for(const u in l){const m=l[u];m.effect&&m.tag===c&&(m.value=m.effect(m.value,i))}};return{load:c=>{ce.c={host:n,hooks:l,update:t,i:0,id:o};let i;try{r=!1,i=c()}catch(u){if(u!==Ul)throw u;r=!0}finally{ce.c=null}return i},cleanEffects:c=>(s(mt,c),()=>(s(Rl,c),()=>{s(ut,c)})),isSuspense:a}},ue=Symbol.for;function pt(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 Z=t=>typeof t=="function",ye=t=>typeof t=="object",{isArray:Wl}=Array,_e=(t,n)=>(n?t instanceof HTMLStyleElement:!0)&&"hydrate"in((t==null?void 0:t.dataset)||{});function ht(t,n){let o;const l=r=>{let{length:a}=r;for(let s=0;s<a;s++){const c=r[s];if(c&&Array.isArray(c))l(c);else{const i=typeof c;if(c==null||i==="function"||i==="boolean")continue;i==="string"||i==="number"?(o==null&&(o=""),o+=c):(o!=null&&(n(o),o=null),n(c))}}};l(t),o!=null&&n(o)}const gt=(t,n,o)=>(t.addEventListener(n,o),()=>t.removeEventListener(n,o));class yt{constructor(n,o,l){this.message=o,this.target=n,this.value=l}}class bt extends yt{}class Kl extends yt{}const Se="Custom",Yl=null,Xl={true:1,"":1,1:1};function Gl(t,n,o,l,r){const{type:a,reflect:s,event:c,value:i,attr:u=Jl(n)}=(o==null?void 0:o.name)!=Se&&ye(o)&&o!=Yl?o:{type:o},m=(a==null?void 0:a.name)===Se&&a.map,y=i!=null?a==Function||!Z(i)?()=>i:i:null;Object.defineProperty(t,n,{configurable:!0,set(p){const d=this[n];y&&a!=Boolean&&p==null&&(p=y());const{error:C,value:x}=(m?ea:ta)(a,p);if(C&&x!=null)throw new bt(this,`The value defined for prop '${n}' must be of type '${a.name}'`,x);d!=x&&(this._props[n]=x??void 0,this.update(),c&&kt(this,c),this.updated.then(()=>{s&&(this._ignoreAttr=u,Zl(this,a,u,this[n]),this._ignoreAttr=null)}))},get(){return this._props[n]}}),y&&(r[n]=y()),l[u]={prop:n,type:a}}const kt=(t,{type:n,base:o=CustomEvent,...l})=>t.dispatchEvent(new o(n,l)),Jl=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Zl=(t,n,o,l)=>l==null||n==Boolean&&!l?t.removeAttribute(o):t.setAttribute(o,(n==null?void 0:n.name)===Se&&(n!=null&&n.serialize)?n==null?void 0:n.serialize(l):ye(l)?JSON.stringify(l):n==Boolean?"":l),Ql=(t,n)=>t==Boolean?!!Xl[n]:t==Number?Number(n):t==String?n:t==Array||t==Object?JSON.parse(n):t.name==Se?n:new t(n),ea=({map:t},n)=>{try{return{value:t(n),error:!1}}catch{return{value:n,error:!0}}},ta=(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 na=0;const oa=t=>{var o;return((o=(t==null?void 0:t.dataset)||{})==null?void 0:o.hydrate)||""||"c"+na++},be=(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:c}=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,c]}async _setup(){if(this._props)return;this._props={};let m,y;this.mounted=new Promise($=>this.mount=()=>{$(),m!=this.parentNode&&(y!=m?this.unmounted.then(this.update):this.update()),m=this.parentNode}),this.unmounted=new Promise($=>this.unmount=()=>{$(),(m!=this.parentNode||!this.isConnected)&&(p.cleanEffects(!0)()(),y=this.parentNode,m=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();const p=Hl(()=>this.update(),this,oa(this));let d,C=!0;const x=_e(this);this.update=()=>(d||(d=!0,this.updated=(this.updated||this.mounted).then(()=>{try{const $=p.load(this._render),k=p.cleanEffects();return $&&$.render(this,this.symbolId,x),d=!1,C&&!p.isSuspense()&&(C=!1,!x&&la(this)),k()}finally{d=!1}}).then($=>{$&&$()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(m,y,p){if(o[m]){if(m===this._ignoreAttr||y===p)return;const{prop:d,type:C}=o[m];try{this[d]=Ql(C,p)}catch{throw new Kl(this,`The value defined as attr '${m}' cannot be parsed by type '${C.name}'`,p)}}else super.attributeChangedCallback(m,y,p)}static get props(){return{...super.props,...s}}static get observedAttributes(){const m=super.observedAttributes||[];for(const y in s)Gl(this.prototype,y,s[y],o,l);return Object.keys(o).concat(m)}}return i};function la(t){const{styles:n}=t.constructor,{shadowRoot:o}=t;if(o&&n.length){const l=[];ht(n,r=>{r&&(r instanceof Element?o.appendChild(r.cloneNode(!0)):l.push(r))}),l.length&&(o.adoptedStyleSheets=l)}}const wt=t=>(n,o)=>{de(([l,r]=[])=>((r||!r)&&(r&&pt(r,o)?l=l||!0:(Z(l)&&l(),l=null)),[l,o]),([l,r],a)=>a?(Z(l)&&l(),[]):[l||n(),r],t)},ke=wt(ut),aa=wt(mt);class xt 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 Oe=t=>{const n=ft();return de((o=new xt(t,(l,r,a)=>{l=Z(l)?l(r[0]):l,l!==r[0]&&(r[0]=l,a||n())}))=>o)},te=(t,n)=>{const[o]=de(([l,r,a=0]=[])=>((!r||r&&!pt(r,n))&&(l=t()),[l,n,a]));return o},Le=t=>{const{current:n}=ge();if(!(t in n))throw new bt(n,`For useProp("${t}"), the prop does not exist on the host.`,t);return de((o=new xt(n[t],(l,r)=>{l=Z(l)?l(n[t]):l,n[t]=l}))=>(o[0]=n[t],o))},le=(t,n={})=>{const o=ge();return o[t]||(o[t]=(l=n.detail)=>kt(o.current,{type:t,...n,detail:l})),o[t]},Pe=ue("atomico/options");globalThis[Pe]=globalThis[Pe]||{sheet:!!document.adoptedStyleSheets};const Bt=globalThis[Pe],ra={checked:1,value:1,selected:1},sa={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},ia={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},Ve={},je=[];class Ae extends Text{}const ca=ue("atomico/id"),we=ue("atomico/type"),Fe=ue("atomico/ref"),Et=ue("atomico/vnode"),da=()=>{};function ua(t,n,o){return Ct(this,t,n,o)}const vt=(t,n,...o)=>{const l=n||Ve;let{children:r}=l;if(r=r??(o.length?o:je),t===da)return r;const a=t?t instanceof Node?1:t.prototype instanceof HTMLElement&&2:0;if(a===!1&&t instanceof Function)return t(r!=je?{children:r,...l}:l);const s=Bt.render||ua;return{[we]:Et,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 Ct(t,n,o=ca,l,r){let a;if(n&&n[o]&&n[o].vnode==t||t[we]!=Et)return n;(t||!n)&&(r=r||t.type=="svg",a=t.type!="host"&&(t.raw==1?(n&&t.clone?n[Fe]:n)!=t.type:t.raw==2?!(n instanceof t.type):n?n[Fe]||n.localName!=t.type:!n),a&&t.type!=null&&(t.raw==1&&t.clone?(l=!0,n=t.type.cloneNode(!0),n[Fe]=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]:Ve,{vnode:c=Ve,cycle:i=0}=s;let{fragment:u,handlers:m}=s;const{children:y=je,props:p=Ve}=c;if(m=a?{}:m||{},t.static&&!a)return n;if(t.shadow&&!n.shadowRoot&&n.attachShadow({mode:"open",...t.shadow}),t.props!=p&&pa(n,p,t.props,m,r),t.children!==y){const d=t.shadow?n.shadowRoot:n;u=fa(t.children,u,d,o,!i&&l,r&&t.type=="foreignObject"?!1:r)}return n[o]={vnode:t,handlers:m,fragment:u,cycle:i+1},n}function ma(t,n){const o=new Ae(""),l=new Ae("");let r;if(t[n?"prepend":"append"](o),n){let{lastElementChild:a}=t;for(;a;){const{previousElementSibling:s}=a;if(_e(a,!0)&&!_e(s,!0)){r=a;break}a=s}}return r?r.before(l):t.append(l),{markStart:o,markEnd:l}}function fa(t,n,o,l,r,a){t=t==null?null:Wl(t)?t:[t];const s=n||ma(o,r),{markStart:c,markEnd:i,keyes:u}=s;let m;const y=u&&new Set;let p=c;if(t&&ht(t,d=>{if(typeof d=="object"&&!d[we])return;const C=d[we]&&d.key,x=u&&C!=null&&u.get(C);p!=i&&p===x?y.delete(p):p=p==i?i:p.nextSibling;const $=u?x:p;let k=$;if(d[we])k=Ct(d,$,l,r,a);else{const M=d+"";!(k instanceof Text)||k instanceof Ae?k=new Text(M):k.data!=M&&(k.data=M)}k!=p&&(u&&y.delete(k),!$||u?(o.insertBefore(k,p),u&&p!=i&&y.add(p)):$==i?o.insertBefore(k,i):(o.replaceChild(k,$),p=k)),C!=null&&(m=m||new Map,m.set(C,k))}),p=p==i?i:p.nextSibling,n&&p!=i)for(;p!=i;){const d=p;p=p.nextSibling,d.remove()}return y&&y.forEach(d=>d.remove()),s.keyes=m,s}function pa(t,n,o,l,r){for(const a in n)!(a in o)&&$t(t,a,n[a],null,r,l);for(const a in o)$t(t,a,n[a],o[a],r,l)}function $t(t,n,o,l,r,a){if(n=n=="class"&&!r?"className":n,o=o??null,l=l??null,n in t&&ra[n]&&(o=t[n]),!(l===o||ia[n]||n[0]=="_"))if(n[0]=="o"&&n[1]=="n"&&(Z(l)||Z(o)))ha(t,n.slice(2),l,a);else if(n=="ref")l&&(Z(l)?l(t):l.current=t);else if(n=="style"){const{style:s}=t;o=o||"",l=l||"";const c=ye(o),i=ye(l);if(c)for(const u in o)if(i)!(u in l)&&St(s,u,null);else break;if(i)for(const u in l){const m=l[u];c&&o[u]===m||St(s,u,m)}else s.cssText=l}else{const s=n[0]=="$"?n.slice(1):n;s===n&&(!r&&!sa[n]&&n in t||Z(l)||Z(o))?t[n]=l??"":l==null?t.removeAttribute(s):t.setAttribute(s,ye(l)?JSON.stringify(l):l)}}function ha(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 St(t,n,o){let l="setProperty";o==null&&(l="removeProperty",o=null),~n.indexOf("-")?t[l](n,o):t[n]=o}const Vt={};function Ne(t,...n){const o=(t.raw||t).reduce((l,r,a)=>l+r+(n[a]||""),"");return Vt[o]=Vt[o]||ga(o)}function ga(t){if(Bt.sheet){const n=new CSSStyleSheet;return n.replaceSync(t),n}else{const n=document.createElement("style");return n.textContent=t,n}}const ya=vt("host",{style:"display: contents"}),Ue=ue("atomico/context"),ba=(t,n)=>{const o=ge();aa(()=>gt(o.current,"ConnectContext",l=>{t===l.detail.id&&(l.stopPropagation(),l.detail.connect(n))}),[t])},ka=t=>{const n=le("ConnectContext",{bubbles:!0,composed:!0}),o=()=>{let a;return n({id:t,connect(s){a=s}}),a},[l,r]=Oe(o);return ke(()=>{l||(t[Ue]||(t[Ue]=customElements.whenDefined(new t().localName)),t[Ue].then(()=>r(o)))},[t]),l},wa=t=>{const n=ka(t),o=ft();return ke(()=>{if(n)return gt(n,"UpdatedValue",o)},[n]),(n||t).value},xa=t=>{const n=be(()=>(ba(n,ge().current),ya),{props:{value:{type:Object,event:{type:"UpdatedValue"},value:()=>t}}});return n.value=t,n},O=(t,n,o)=>(n==null?n={key:o}:n.key=o,vt(t,n)),xe=O,Nt=Ne`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,Dt=Ne`.vh{position:absolute;transform:scale(0)}`;function Re(){const t=new Date;return new P(t.getFullYear(),t.getMonth()+1,t.getDate())}function qe(t,n=0){const o=X(t),l=o.getUTCDay(),r=(l<n?7:0)+l-n;return o.setUTCDate(o.getUTCDate()-r),P.from(o)}function zt(t,n=0){return qe(t,n).add({days:6})}function Mt(t){return P.from(new Date(Date.UTC(t.year,t.month,0)))}function De(t,n,o){return n&&P.compare(t,n)<0?n:o&&P.compare(t,o)>0?o:t}const Ba={days:1};function Ea(t,n=0){let o=qe(t.toPlainDate(),n);const l=zt(Mt(t),n),r=[];for(;P.compare(o,l)<0;){const a=[];for(let s=0;s<7;s++)a.push(o),o=o.add(Ba);r.push(a)}return r}function X(t){return new Date(Date.UTC(t.year,t.month-1,t.day??1))}const va=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,He=(t,n)=>t.toString().padStart(n,"0");class P{constructor(n,o,l){this.year=n,this.month=o,this.day=l}add(n){const o=X(this);if("days"in n)return o.setUTCDate(this.day+n.days),P.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=P.from(X({year:l,month:r,day:1}));return De(P.from(o),a,Mt(a))}toString(){return`${He(this.year,4)}-${He(this.month,2)}-${He(this.day,2)}`}toPlainYearMonth(){return new ze(this.year,this.month)}equals(n){return P.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(va);if(!o)throw new TypeError(n);const[,l,r,a]=o;return new P(parseInt(l,10),parseInt(r,10),parseInt(a,10))}return new P(n.getUTCFullYear(),n.getUTCMonth()+1,n.getUTCDate())}}class ze{constructor(n,o){this.year=n,this.month=o}add(n){const o=X(this),l=(n.months??0)+(n.years??0)*12;return o.setUTCMonth(o.getUTCMonth()+l),new ze(o.getUTCFullYear(),o.getUTCMonth()+1)}equals(n){return this.year===n.year&&this.month===n.month}toPlainDate(){return new P(this.year,this.month,1)}}function Me(t,n){if(n)try{return t.from(n)}catch{}}function ae(t){const[n,o]=Le(t);return[te(()=>Me(P,n),[n]),l=>o(l==null?void 0:l.toString())]}function Ca(t){const[n="",o]=Le(t);return[te(()=>{const[l,r]=n.split("/"),a=Me(P,l),s=Me(P,r);return a&&s?[a,s]:[]},[n]),l=>o(`${l[0]}/${l[1]}`)]}function $a(t){const[n="",o]=Le(t);return[te(()=>{const l=[];for(const r of n.trim().split(/\s+/)){const a=Me(P,r);a&&l.push(a)}return l},[n]),l=>o(l.join(" "))]}function Be(t,n){return te(()=>new Intl.DateTimeFormat(n,{timeZone:"UTC",...t}),[n,t])}function Tt(t,n,o){const l=Be(t,o);return te(()=>{const r=[],a=new Date;for(var s=0;s<7;s++){const c=(a.getUTCDay()-n+7)%7;r[c]=l.format(a),a.setUTCDate(a.getUTCDate()+1)}return r},[n,l])}const It=(t,n,o)=>De(t,n,o)===t,_t=t=>t.target.matches(":dir(ltr)"),Sa={month:"long",day:"numeric"},Va={month:"long"},Na={weekday:"long"},We={bubbles:!0};function Da({props:t,context:n}){const{offset:o}=t,{firstDayOfWeek:l,isDateDisallowed:r,min:a,max:s,today:c,page:i,locale:u,focusedDate:m,formatWeekday:y}=n,p=c??Re(),d=Tt(Na,l,u),C=te(()=>({weekday:y}),[y]),x=Tt(C,l,u),$=Be(Sa,u),k=Be(Va,u),M=te(()=>i.start.add({months:o}),[i,o]),A=te(()=>Ea(M,l),[M,l]),W=le("focusday",We),h=le("selectday",We),E=le("hoverday",We);function w(B){W(De(B,a,s))}function D(B){let b;switch(B.key){case"ArrowRight":b=m.add({days:_t(B)?1:-1});break;case"ArrowLeft":b=m.add({days:_t(B)?-1:1});break;case"ArrowDown":b=m.add({days:7});break;case"ArrowUp":b=m.add({days:-7});break;case"PageUp":b=m.add(B.shiftKey?{years:-1}:{months:-1});break;case"PageDown":b=m.add(B.shiftKey?{years:1}:{months:1});break;case"Home":b=qe(m,l);break;case"End":b=zt(m,l);break;default:return}w(b),B.preventDefault()}function f(B){var j,G;const b=M.equals(B);if(!n.showOutsideDays&&!b)return;const T=B.equals(m),I=B.equals(p),U=X(B),Y=r==null?void 0:r(U),g=!It(B,a,s);let S="",z;if(n.type==="range"){const[H,Q]=n.value,re=H==null?void 0:H.equals(B),ie=Q==null?void 0:Q.equals(B);z=H&&Q&&It(B,H,Q),S=`${re?"range-start":""} ${ie?"range-end":""} ${z&&!re&&!ie?"range-inner":""}`}else n.type==="multi"?z=n.value.some(H=>H.equals(B)):z=(j=n.value)==null?void 0:j.equals(B);return{part:`${`button day day-${U.getDay()} ${b?z?"selected":"":"outside"} ${Y?"disallowed":""} ${I?"today":""} ${((G=n.getDayParts)==null?void 0:G.call(n,U))??""}`} ${S}`,tabindex:b&&T?0:-1,disabled:g,"aria-disabled":Y?"true":void 0,"aria-pressed":b&&z,"aria-current":I?"date":void 0,"aria-label":$.format(U),onkeydown:D,onclick(){Y||h(B),w(B)},onmouseover(){!Y&&!g&&E(B)}}}return{weeks:A,yearMonth:M,daysLong:d,daysVisible:x,formatter:k,getDayProps:f}}const Ke=Re(),Ye=xa({type:"date",firstDayOfWeek:1,focusedDate:Ke,page:{start:Ke.toPlainYearMonth(),end:Ke.toPlainYearMonth()}});customElements.define("calendar-ctx",Ye);const za=(t,n)=>(n+t)%7,Ot=be(t=>{const n=wa(Ye),o=ql(),l=Da({props:t,context:n});function r(){var a;(a=o.current.querySelector("button[tabindex='0']"))==null||a.focus()}return xe("host",{shadowDom:!0,focus:r,children:[O("div",{id:"h",part:"heading",children:l.formatter.format(X(l.yearMonth))}),xe("table",{ref:o,"aria-labelledby":"h",part:"table",children:[O("thead",{children:O("tr",{part:"tr head",children:l.daysLong.map((a,s)=>xe("th",{part:`th day day-${za(n.firstDayOfWeek,s)}`,scope:"col",children:[O("span",{class:"vh",children:a}),O("span",{"aria-hidden":"true",children:l.daysVisible[s]})]}))})}),O("tbody",{children:l.weeks.map((a,s)=>O("tr",{part:"tr week",children:a.map((c,i)=>{const u=l.getDayProps(c);return O("td",{part:"td",children:u&&O("button",{...u,children:c.day})},i)})},s))})]})]})},{props:{offset:{type:Number,value:0}},styles:[Nt,Dt,Ne`: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",Ot);function Lt(t){return O("button",{part:`button ${t.name} ${t.onclick?"":"disabled"}`,onclick:t.onclick,"aria-disabled":t.onclick?null:"true",children:O("slot",{name:t.name,children:t.children})})}function Xe(t){const n=X(t.page.start),o=X(t.page.end);return xe("div",{role:"group","aria-labelledby":"h",part:"container",children:[O("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:t.formatVerbose.formatRange(n,o)}),xe("div",{part:"header",children:[O(Lt,{name:"previous",onclick:t.previous,children:"Previous"}),O("slot",{part:"heading",name:"heading",children:O("div",{"aria-hidden":"true",children:t.format.formatRange(n,o)})}),O(Lt,{name:"next",onclick:t.next,children:"Next"})]}),O(Ye,{value:t,onselectday:t.onSelect,onfocusday:t.onFocus,onhoverday:t.onHover,children:O("slot",{})})]})}const Ge={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"}},Je=[Nt,Dt,Ne`: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}`],Ma={year:"numeric"},Ta={year:"numeric",month:"long"};function Ze(t,n){return(n.year-t.year)*12+n.month-t.month}const Pt=(t,n)=>(t=n===12?new ze(t.year,1):t,{start:t,end:t.add({months:n-1})});function Ia({pageBy:t,focusedDate:n,months:o,max:l,min:r,goto:a}){const s=t==="single"?1:o,[c,i]=Oe(()=>Pt(n.toPlainYearMonth(),o)),u=y=>i(Pt(c.start.add({months:y}),o)),m=y=>{const p=Ze(c.start,y.toPlainYearMonth());return p>=0&&p<o};return ke(()=>{if(m(n))return;const y=Ze(n.toPlainYearMonth(),c.start);a(n.add({months:y}))},[c.start]),ke(()=>{if(m(n))return;const y=Ze(c.start,n.toPlainYearMonth());u(y===-1?-s:y===o?s:Math.floor(y/o)*o)},[n,s,o]),{page:c,previous:!r||!m(r)?()=>u(-s):void 0,next:!l||!m(l)?()=>u(s):void 0}}function Qe({months:t,pageBy:n,locale:o,focusedDate:l,setFocusedDate:r}){const[a]=ae("min"),[s]=ae("max"),[c]=ae("today"),i=le("focusday"),u=le("change"),m=te(()=>De(l??c??Re(),a,s),[l,c,a,s]);function y(k){r(k),i(X(k))}const{next:p,previous:d,page:C}=Ia({pageBy:n,focusedDate:m,months:t,min:a,max:s,goto:y}),x=ge();function $(k){const M=(k==null?void 0:k.target)??"day";M==="day"?x.current.querySelectorAll("calendar-month").forEach(A=>A.focus(k)):x.current.shadowRoot.querySelector(`[part~='${M}']`).focus(k)}return{format:Be(Ma,o),formatVerbose:Be(Ta,o),page:C,focusedDate:m,dispatch:u,onFocus(k){k.stopPropagation(),y(k.detail),setTimeout($)},min:a,max:s,today:c,next:p,previous:d,focus:$}}const jt=be(t=>{const[n,o]=ae("value"),[l=n,r]=ae("focusedDate"),a=Qe({...t,focusedDate:l,setFocusedDate:r});function s(c){o(c.detail),a.dispatch()}return O("host",{shadowDom:!0,focus:a.focus,children:O(Xe,{...t,...a,type:"date",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-date",jt);const At=(t,n)=>P.compare(t,n)<0?[t,n]:[n,t],Ft=be(t=>{const[n,o]=Ca("value"),[l=n[0],r]=ae("focusedDate"),a=Qe({...t,focusedDate:l,setFocusedDate:r}),s=le("rangestart"),c=le("rangeend"),[i,u]=ae("tentative"),[m,y]=Oe();ke(()=>y(void 0),[i]);function p($){a.onFocus($),d($)}function d($){$.stopPropagation(),i&&y($.detail)}function C($){const k=$.detail;$.stopPropagation(),i?(o(At(i,k)),u(void 0),c(X(k)),a.dispatch()):(u(k),s(X(k)))}const x=i?At(i,m??i):n;return O("host",{shadowDom:!0,focus:a.focus,children:O(Xe,{...t,...a,type:"range",value:x,onFocus:p,onHover:d,onSelect:C})})},{props:{...Ge,tentative:{type:String,value:""}},styles:Je});customElements.define("calendar-range",Ft);const Ut=be(t=>{const[n,o]=$a("value"),[l=n[0],r]=ae("focusedDate"),a=Qe({...t,focusedDate:l,setFocusedDate:r});function s(c){const i=[...n],u=n.findIndex(m=>m.equals(c.detail));u<0?i.push(c.detail):i.splice(u,1),o(i),a.dispatch()}return O("host",{shadowDom:!0,focus:a.focus,children:O(Xe,{...t,...a,type:"multi",value:n,onSelect:s})})},{props:Ge,styles:Je});customElements.define("calendar-multi",Ut);const _a=Object.freeze(Object.defineProperty({__proto__:null,CalendarDate:jt,CalendarMonth:Ot,CalendarMulti:Ut,CalendarRange:Ft},Symbol.toStringTag,{value:"Module"}));v.Accordion=Cn,v.AdvancedSearch=so,v.Alert=rl,v.Avatar=Vn,v.Badge=Nn,v.ButtonComponent=Kt,v.Card=On,v.Carousel=Rn,v.CarouselItem=qn,v.CategoryNavigation=Vl,v.DatetimePicker=at,v.Dropdown=Gt,v.FilterableSelect=qo,v.Footer=kl,v.Hero=Cl,v.InputField=st,v.Loader=el,v.Modal=Qt,v.NavigationBar=Tl,v.Rating=vo,v.Selector=rt,v.Steps=Al,v.Swap=nn,v.Tab=Pl,v.TagInput=No,v.ThemeController=fn,v.Toast=nl,v.ToastComposable=it,v.ToastNotification=ct,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "manolis-ui",
3
3
  "private": false,
4
- "version": "0.21.0",
4
+ "version": "0.21.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist/*"