manolis-ui 0.7.0 → 0.7.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/manolis-ui.js +21 -20
- package/dist/manolis-ui.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/manolis-ui.js
CHANGED
|
@@ -268,8 +268,9 @@ const Ze = oe("CalendarIcon", [
|
|
|
268
268
|
* This source code is licensed under the ISC license.
|
|
269
269
|
* See the LICENSE file in the root directory of this source tree.
|
|
270
270
|
*/
|
|
271
|
-
const Qe = oe("
|
|
272
|
-
["
|
|
271
|
+
const Qe = oe("CircleChevronDownIcon", [
|
|
272
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
273
|
+
["path", { d: "m16 10-4 4-4-4", key: "894hmk" }]
|
|
273
274
|
]);
|
|
274
275
|
/**
|
|
275
276
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
@@ -664,7 +665,7 @@ const tt = oe("SunIcon", [
|
|
|
664
665
|
}, Ct = {
|
|
665
666
|
key: 1,
|
|
666
667
|
class: "flex flex-col"
|
|
667
|
-
},
|
|
668
|
+
}, Mt = { class: "text-sm" }, Dt = {
|
|
668
669
|
key: 0,
|
|
669
670
|
class: "opacity-75 overflow-hidden text-xs truncate ..."
|
|
670
671
|
}, It = {
|
|
@@ -902,8 +903,8 @@ const tt = oe("SunIcon", [
|
|
|
902
903
|
ref: r
|
|
903
904
|
}), null, 16, ["modelValue", "onKeydown"]))
|
|
904
905
|
])) : (n(), a("div", Ct, [
|
|
905
|
-
s("p",
|
|
906
|
-
g.value !== void 0 && g.value !== null && g.value !== "" ? (n(), a("p",
|
|
906
|
+
s("p", Mt, C(g.name), 1),
|
|
907
|
+
g.value !== void 0 && g.value !== null && g.value !== "" ? (n(), a("p", Dt, C(U(g)), 1)) : (n(), a("p", It, C(g.description), 1))
|
|
907
908
|
]))
|
|
908
909
|
], 10, St);
|
|
909
910
|
}), 128))
|
|
@@ -1120,7 +1121,7 @@ const tt = oe("SunIcon", [
|
|
|
1120
1121
|
l.value = e.range ? { start: null, end: null } : null, r.value = e.range ? { start: null, end: null } : null, j();
|
|
1121
1122
|
}, Ce = (m) => {
|
|
1122
1123
|
e.range ? l.value.start && l.value.end ? l.value = { start: m, end: null } : l.value.start ? l.value.end = m : l.value.start = m : l.value = m, j();
|
|
1123
|
-
},
|
|
1124
|
+
}, Me = (m) => (m = D(m), e.range ? l.value.start && P(l.value.start) && m.getTime() === l.value.start.getTime() || l.value.end && P(l.value.end) && m.getTime() === l.value.end.getTime() : P(l.value) && m.getTime() === l.value.getTime()), De = (m) => {
|
|
1124
1125
|
m = D(m);
|
|
1125
1126
|
const h = /* @__PURE__ */ new Date();
|
|
1126
1127
|
return m.getDate() === h.getDate() && m.getMonth() === h.getMonth() && m.getFullYear() === h.getFullYear();
|
|
@@ -1273,8 +1274,8 @@ const tt = oe("SunIcon", [
|
|
|
1273
1274
|
(n(!0), a(B, null, A(K.value, (u) => (n(), a("div", {
|
|
1274
1275
|
key: u,
|
|
1275
1276
|
class: V(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer", {
|
|
1276
|
-
"bg-primary text-primary-content":
|
|
1277
|
-
today:
|
|
1277
|
+
"bg-primary text-primary-content": Me(u),
|
|
1278
|
+
today: De(u),
|
|
1278
1279
|
"range-start bg-primary text-primary-content": Ie(u),
|
|
1279
1280
|
"range-end bg-primary text-primary-content": Te(u),
|
|
1280
1281
|
"in-range bg-primary/20 hover:bg-primary/10": Ve(u)
|
|
@@ -1509,7 +1510,7 @@ const tt = oe("SunIcon", [
|
|
|
1509
1510
|
}, null, 46, pl))), 128))
|
|
1510
1511
|
], 2));
|
|
1511
1512
|
}
|
|
1512
|
-
}), vl = { class: "badge" }, fl = ["onClick"], ml = { class: "opacity-75" }, gl = ["placeholder"],
|
|
1513
|
+
}), vl = { class: "badge" }, fl = ["onClick"], ml = { class: "opacity-75" }, gl = ["placeholder"], Mn = /* @__PURE__ */ L({
|
|
1513
1514
|
__name: "taginput",
|
|
1514
1515
|
props: {
|
|
1515
1516
|
modelValue: {},
|
|
@@ -1572,7 +1573,7 @@ const tt = oe("SunIcon", [
|
|
|
1572
1573
|
value: "",
|
|
1573
1574
|
disabled: "",
|
|
1574
1575
|
selected: ""
|
|
1575
|
-
}, $l = ["value"],
|
|
1576
|
+
}, $l = ["value"], Dn = /* @__PURE__ */ L({
|
|
1576
1577
|
__name: "select",
|
|
1577
1578
|
props: {
|
|
1578
1579
|
options: {},
|
|
@@ -1616,10 +1617,10 @@ const tt = oe("SunIcon", [
|
|
|
1616
1617
|
}), _l = {
|
|
1617
1618
|
key: 0,
|
|
1618
1619
|
class: "label"
|
|
1619
|
-
}, Sl = { class: "label-text" }, xl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Cl = ["placeholder", "disabled"],
|
|
1620
|
+
}, Sl = { class: "label-text" }, xl = ["onKeydown", "aria-expanded", "aria-activedescendant"], Cl = ["placeholder", "disabled"], Ml = {
|
|
1620
1621
|
class: "top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",
|
|
1621
1622
|
role: "listbox"
|
|
1622
|
-
},
|
|
1623
|
+
}, Dl = { class: "flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu" }, Il = ["onMousedown", "id", "aria-selected"], In = {
|
|
1623
1624
|
__name: "filterableSelect",
|
|
1624
1625
|
props: {
|
|
1625
1626
|
// Array of options: [{ value: any, text: string }, ...]
|
|
@@ -1654,7 +1655,7 @@ const tt = oe("SunIcon", [
|
|
|
1654
1655
|
const g = (l.default ? l.default() : []).filter((I) => I.type !== Re);
|
|
1655
1656
|
return console.log("hasDefaultSlotContent computed:", g.length > 0), g.length > 0;
|
|
1656
1657
|
}), y = x(""), p = x(null), f = x(!1), $ = x(null), U = x(null), R = x(null), v = x(null), k = () => {
|
|
1657
|
-
|
|
1658
|
+
f.value = !t.disabled;
|
|
1658
1659
|
}, _ = () => {
|
|
1659
1660
|
console.log("closeDropdown called"), f.value = !1, v.value = null, r.value || (p.value && y.value !== p.value.text ? y.value = p.value.text : p.value || (y.value = ""));
|
|
1660
1661
|
}, M = () => {
|
|
@@ -1693,7 +1694,7 @@ const tt = oe("SunIcon", [
|
|
|
1693
1694
|
document.removeEventListener("click", N), window.removeEventListener("keydown", S);
|
|
1694
1695
|
});
|
|
1695
1696
|
const W = (b) => {
|
|
1696
|
-
p.value = b, r.value || (y.value = b.text), o("update:modelValue", b.value), o("select", b), _()
|
|
1697
|
+
p.value = b, r.value || (y.value = b.text), o("update:modelValue", b.value), o("select", b), _();
|
|
1697
1698
|
}, c = () => {
|
|
1698
1699
|
z.value.length > 0 && W(z.value[0]);
|
|
1699
1700
|
}, w = () => {
|
|
@@ -1729,7 +1730,7 @@ const tt = oe("SunIcon", [
|
|
|
1729
1730
|
}
|
|
1730
1731
|
};
|
|
1731
1732
|
return H(f, (b) => {
|
|
1732
|
-
b ? (window.addEventListener("keydown", S), !r.value && !y.value && p.value && (y.value = p.value.text)) :
|
|
1733
|
+
b ? (window.addEventListener("keydown", S), !r.value && !y.value && p.value && (y.value = p.value.text)) : window.removeEventListener("keydown", S);
|
|
1733
1734
|
}), ge(() => {
|
|
1734
1735
|
document.removeEventListener("click", N), window.removeEventListener("keydown", S);
|
|
1735
1736
|
}), d({
|
|
@@ -1760,7 +1761,7 @@ const tt = oe("SunIcon", [
|
|
|
1760
1761
|
s("div", {
|
|
1761
1762
|
class: V(["flex items-center input-bordered rounded-md w-fit cursor-pointer", { input: !r.value, select: !r.value }]),
|
|
1762
1763
|
tabindex: "0",
|
|
1763
|
-
onClick: g[1] || (g[1] = (I) =>
|
|
1764
|
+
onClick: g[1] || (g[1] = (I) => M()),
|
|
1764
1765
|
onKeydown: [
|
|
1765
1766
|
he(ee(c, ["prevent"]), ["enter"]),
|
|
1766
1767
|
he(ee(c, ["prevent"]), ["space"])
|
|
@@ -1797,8 +1798,8 @@ const tt = oe("SunIcon", [
|
|
|
1797
1798
|
size: 20
|
|
1798
1799
|
}, null, 8, ["class"])) : O("", !0)
|
|
1799
1800
|
], 42, xl),
|
|
1800
|
-
q(s("div",
|
|
1801
|
-
s("ul",
|
|
1801
|
+
q(s("div", Ml, [
|
|
1802
|
+
s("ul", Dl, [
|
|
1802
1803
|
(n(!0), a(B, null, A(z.value, (I, D) => (n(), a("li", {
|
|
1803
1804
|
key: I.value,
|
|
1804
1805
|
onMousedown: ee((P) => W(I), ["prevent"]),
|
|
@@ -2164,9 +2165,9 @@ export {
|
|
|
2164
2165
|
gn as Modal,
|
|
2165
2166
|
An as NavigationBar,
|
|
2166
2167
|
Cn as Rating,
|
|
2167
|
-
|
|
2168
|
+
Dn as Selector,
|
|
2168
2169
|
hn as Swap,
|
|
2169
2170
|
Pn as Tab,
|
|
2170
|
-
|
|
2171
|
+
Mn as TagInput,
|
|
2171
2172
|
bn as ThemeController
|
|
2172
2173
|
};
|
package/dist/manolis-ui.umd.cjs
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const ue=A("
|
|
31
|
+
*/const ue=A("CircleChevronDownIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]);/**
|
|
32
32
|
* @license lucide-vue-next v0.468.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
@@ -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 ge=A("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"}]]),he=(r,i)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const l=window.localStorage.getItem(r);t.value=l?JSON.parse(l):i}}),e.watch(t,l=>{typeof window<"u"&&window.localStorage.setItem(r,JSON.stringify(l))}),t},ke={class:"swap-rotate swap"},ye=["true-value","false-value"],be=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(r){const i=r,t=he("theme",i.lightTheme);function l(o){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",o)}return e.onMounted(()=>l(t.value?t.value:"")),e.watch(t,o=>{l(o)}),(o,n)=>(e.openBlock(),e.createElementBlock("label",ke,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":n[0]||(n[0]=a=>e.isRef(t)?t.value=a:null),"true-value":i.lightTheme,"false-value":i.darkTheme},null,8,ye),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(ge),{class:"swap-off fill-current"}),e.createVNode(e.unref(fe),{class:"swap-on fill-current"})]))}}),we=["name"],Be={class:"collapse-title font-bold text-2xl lg:text-4xl"},Ee={class:"collapse-content"},Ve=["innerHTML"],Se=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(r){const i=r;return(t,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:n},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,we),e.createElementVNode("div",Be,e.toDisplayString(o.title),1),e.createElementVNode("div",Ee,[e.createElementVNode("span",{innerHTML:o.content},null,8,Ve)])],2))),128))}}),$e=["src"],Ce={class:"text-xl"},Ne=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(r){const i=r,t=e.ref(i.onlineStatus);return e.watch(()=>i.onlineStatus,l=>{l&&(t.value=l)}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[l.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":l.fullyRounded},{rounded:!l.fullyRounded}]])},[e.createElementVNode("img",{src:l.image,class:"w-full h-full"},null,8,$e)],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":l.fullyRounded},{rounded:!l.fullyRounded}]])},[e.createElementVNode("p",Ce,e.toDisplayString(l.initials),1)],2))],2))}}),_e=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(r){const i=r,t={"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(o,n)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[i.size],l[i.color],{"badge-outline":i.outline}])},[e.renderSlot(o.$slots,"default")],2))}}),De=["src","alt"],Me={key:0,class:"card-body"},xe={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Te={key:1,class:"text-left"},Ie={class:"flex-col flex-nowrap mt-auto card-actions"},ze={key:1,class:"card-body"},Le=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"}},setup(r){const i=r,t=e.ref(i.outlined);return e.watch(()=>i.outlined,l=>{t.value=l}),(l,o)=>(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":t.value},l.color??"",l.background]])},[e.createElementVNode("figure",null,[l.imgUrl||l.imgUrl&&!l.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imgUrl,alt:l.alt,class:e.normalizeClass(["rounded-sm w-full object-cover",[{hidden:l.loading},l.imgHeight]])},null,10,De)):e.createCommentVNode("",!0),l.loading&&l.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",l.imgHeight])},null,2)):e.createCommentVNode("",!0)]),l.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Me,[l.title?(e.openBlock(),e.createElementBlock("h2",xe,e.toDisplayString(l.title),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"details"),l.description?(e.openBlock(),e.createElementBlock("p",Te,e.toDisplayString(l.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ie,[e.renderSlot(l.$slots,"actions")])])),l.loading?(e.openBlock(),e.createElementBlock("div",ze,o[0]||(o[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))}}),W=Symbol("CarouselItemStyle"),ve={class:"relative h-full"},Oe={key:0,class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},Fe={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Pe=["onClick","aria-label"],Ae=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:r=>r=="horizontal"||r=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:r=>r>=1},gap:{type:Number,default:0,validator:r=>r>=0},slideDuration:{type:Number,default:300,validator:r=>r>=0}},setup(r,{expose:i}){const t=r,l=e.ref(t.initialSlide),o=e.ref(null),n=e.ref(!1),a=e.ref(0),k=e.computed(()=>({width:`calc((100% - ${t.slidesPerView>1?(t.slidesPerView-1)*t.gap:0}px) / ${t.slidesPerView})`}));e.provide(W,k);const d=()=>{o.value?a.value=o.value.children.length:a.value=0},p=async b=>{if(!o.value||t.slidesPerView<=0||n.value||(d(),a.value===0))return;const B=(b%a.value+a.value)%a.value,S=o.value,N=t.sliderOrientation==="vertical"?(S.offsetHeight-(t.slidesPerView-1)*t.gap)/t.slidesPerView:(S.offsetWidth-(t.slidesPerView-1)*t.gap)/t.slidesPerView;if(N<=0)return;const x=N+t.gap,z=B*x,I=t.sliderOrientation==="vertical"?S.scrollHeight-S.offsetHeight:S.scrollWidth-S.offsetWidth,c=Math.max(0,Math.min(z,I+.5));n.value=!0,S.style.scrollBehavior="auto";const y=t.sliderOrientation==="vertical"?S.scrollTop:S.scrollLeft,E=c-y;if(Math.abs(E)<1){n.value=!1,l.value=B;return}const h=performance.now(),f=$=>{const V=$-h,_=Math.min(1,V/t.slideDuration),L=_<.5?4*_*_*_:1-Math.pow(-2*_+2,3)/2,v=y+E*L;t.sliderOrientation==="vertical"?S.scrollTop=v:S.scrollLeft=v,_<1?requestAnimationFrame(f):(t.sliderOrientation==="vertical"?S.scrollTop=c:S.scrollLeft=c,l.value=B,n.value=!1)};requestAnimationFrame(f)},w=()=>{p(l.value+1)},D=()=>{p(l.value-1)},M=b=>{p(b)},m=()=>{if(!o.value||t.slidesPerView<=0||(d(),a.value===0))return;const b=o.value,B=t.sliderOrientation==="vertical"?b.offsetHeight:b.offsetWidth,S=t.slidesPerView>1?(t.slidesPerView-1)*t.gap:0,N=(B-S)/t.slidesPerView;if(N<=0)return;const x=Math.max(0,a.value-t.slidesPerView),z=Math.min(Math.max(0,t.initialSlide),x),I=z*(N+t.gap),c=t.sliderOrientation==="vertical"?b.scrollHeight-b.offsetHeight:b.scrollWidth-b.offsetWidth,y=Math.max(0,Math.min(I,c+.5));t.sliderOrientation==="vertical"?b.scrollTo({top:y,behavior:"auto"}):b.scrollTo({left:y,behavior:"auto"}),l.value=z};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(m)}),d()}),e.watch(()=>t.initialSlide,b=>{requestAnimationFrame(()=>p(b))}),e.watch(()=>[t.slidesPerView,t.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(d(),a.value===0)return;const b=Math.max(0,a.value-t.slidesPerView),B=Math.min(l.value,b),S=t.slideDuration;t.slideDuration=0,p(B),t.slideDuration=S})})}),i({scrollToSlide:p}),(b,B)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:o,class:e.normalizeClass(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel",[{"carousel-horizontal md:snap-none":r.sliderOrientation=="horizontal"},{"carousel-vertical":r.sliderOrientation=="vertical"}]]),style:e.normalizeStyle({gap:`${r.gap}px`})},[e.renderSlot(b.$slots,"default",{},void 0,!0)],6),r.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",{onClick:D,role:"button","aria-label":"Previous Slide"},[e.renderSlot(b.$slots,"prevButton",{},()=>[B[0]||(B[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:w,role:"button","aria-label":"Next Slide"},[e.renderSlot(b.$slots,"nextButton",{},()=>[B[1]||(B[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0),r.showIndicators?(e.openBlock(),e.createElementBlock("div",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(S,N)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${N}`,onClick:x=>M(N),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":N===l.value}]),"aria-label":`Go to slide ${N+1}`},null,10,Pe))),128))])):e.createCommentVNode("",!0)]))}}),P=(r,i)=>{const t=r.__vccOpts||r;for(const[l,o]of i)t[l]=o;return t},Ue=P(Ae,[["__scopeId","data-v-db55a6a5"]]),je=P(e.defineComponent({__name:"carouselItem",setup(r){const i=e.inject(W,e.ref({}));return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(i))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Re={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},qe=["onClick"],He={key:0,class:"inline-component-wrapper flex flex-grow justify-center items-center w-full h-full"},We={key:1,class:"flex flex-col"},Ke={class:"text-sm"},Ye={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Je={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Ge={class:"hidden"},Xe=["id"],Ze={class:"modal-box"},Qe={class:"font-bold text-lg"},et=["name","checked"],tt={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},lt={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},nt={key:1,class:"opacity-35 text-sm"},ot={class:"collapse-content flex place-content-center p-0"},at=P(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(r,{emit:i}){const t=r,l=i,o=t.id??`advancedSearch-${e.useId()}`,n=e.ref(null),a=e.ref(null),k={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dt)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Rt)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>rl))},d=e.ref({}),p=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),w=e.ref(null),D=c=>{var y;if(c.value===void 0||c.value===null||c.value==="")return"";switch(c.type){case"datetime":if(typeof c.value=="string")try{const E=new Date(c.value);if(!isNaN(E.getTime()))return E.toLocaleString()}catch{}else if(c.range&&typeof c.value=="object"&&c.value!==null&&"start"in c.value&&"end"in c.value)try{const E=new Date(c.value.start),h=new Date(c.value.end);if(!isNaN(E.getTime())&&!isNaN(h.getTime()))return`${E.toLocaleDateString()} - ${h.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof c.value=="object"&&c.value!==null&&"start"in c.value&&"end"in c.value)return`${c.value.start} - ${c.value.end}`;break;case"custom-number":if(typeof c.value=="number")return c.value.toString();break;case"standard-select":case"custom-select":if((y=c.props)!=null&&y.options&&Array.isArray(c.props.options)){const E=c.props.options.find(h=>h.value===c.value);if(E)return E.text}return String(c.value);case"custom-text":if(typeof c.value=="string")return c.value;break}return String(c.value)};function M(c){var f,$;const y=(f=n.value)==null?void 0:f.name;if(!y){console.warn("componentValueUpdated called but no active tab.");return}const E=($=t.searchOptions.find(V=>(V==null?void 0:V.category)===t.currentCategory))==null?void 0:$.tabs,h=E==null?void 0:E.find(V=>V.name===y);h?(h.value=c,l("update:search-data",{tab:h.name,data:c})):console.error(`Tab with name "${y}" not found in current category.`)}function m(c){M(c)}function b(){l("search")}async function B(c){var h;const y=document.getElementById(`advancedSearchMobile-${o}`),E=y&&y.contains(c.target);((h=n.value)==null?void 0:h.displayMode)==="popup"&&w.value&&!w.value.contains(c.target)&&!E&&(await e.nextTick(),n.value=null)}async function S(){if(typeof window<"u"&&window.innerWidth<=768){const c=document.getElementById(`advancedSearchMobile-${o}`);c?(n.value=null,c.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${o}".`)}}async function N(c){var E,h,f;if(typeof window<"u"&&window.innerWidth<=768){S();return}const y=c.displayMode??"popup";if(((E=n.value)==null?void 0:E.name)===c.name&&((h=n.value)==null?void 0:h.displayMode)===y)n.value=null;else if(n.value={...c,displayMode:y},await e.nextTick(),((f=n.value)==null?void 0:f.displayMode)==="popup"){const $=d.value[c.name];if($&&w.value){const V=$.getBoundingClientRect(),_=w.value.getBoundingClientRect(),L=V.bottom-_.top,v=V.left+V.width/2-_.left;p.value={left:`${v}px`,top:`${L+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",c.name)}}const x=c=>{const y=c.relatedTarget;setTimeout(()=>{var E;((E=n.value)==null?void 0:E.displayMode)==="inline"&&w.value&&(!y||!w.value.contains(y))?(console.log("Blur detected outside container, closing inline view."),n.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},z=()=>{console.log("Enter key pressed on inline component, closing inline view."),n.value=null};e.watch(a,c=>{var y;console.log("advanced-search: inlineComponentRef changed. New Value:",c),console.log("advanced-search: activeTab.value:",n.value),c&&((y=n.value)==null?void 0:y.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 c),console.log("advanced-search: Does newValue have focusInput?",typeof c.focusInput=="function"),c&&typeof c.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),c.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',c)})):console.log(c?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",B),window.addEventListener("resize",I)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",B),window.removeEventListener("resize",I)});const I=()=>{var c,y;if(typeof window<"u"){const E=window.innerWidth<=768,h=n.value!==null&&(n.value.displayMode==="popup"||n.value.displayMode==="inline")&&window.innerWidth>768;!E&&(((c=n.value)==null?void 0:c.displayMode)==="popup"||((y=n.value)==null?void 0:y.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),n.value=null),E&&!h&&n.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),n.value=null);const f=document.getElementById(`advancedSearchMobile-${o}`);f!=null&&f.open&&!E&&(console.log("Modal is open on desktop, closing modal and active tab."),f.close(),n.value=null)}};return(c,y)=>{var E,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:w,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:S},[e.createElementVNode("div",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(f=>f.category===t.currentCategory))==null?void 0:E.tabs)||[],(f,$)=>{var V,_,L,v,R;return e.openBlock(),e.createElementBlock("button",{key:`${f.name}-${$}`,onClick:e.withModifiers(O=>N(f),["stop"]),class:e.normalizeClass([{"tab-active":((V=n.value)==null?void 0:V.name)===f.name,"tab-active-inline":((_=n.value)==null?void 0:_.name)===f.name&&((L=n.value)==null?void 0:L.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-[1px] after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:O=>d.value[f.name]=O},[((v=n.value)==null?void 0:v.name)===f.name&&((R=n.value)==null?void 0:R.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.value.type]),e.mergeProps({ref_for:!0},n.value.props||{},{modelValue:n.value.value,onUpdated:y[0]||(y[0]=O=>m(O)),"onUpdate:modelValue":y[1]||(y[1]=O=>m(O)),onBlur:x,onKeydown:e.withKeys(e.withModifiers(z,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:a}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("p",Ke,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("p",Ye,e.toDisplayString(D(f)),1)):(e.openBlock(),e.createElementBlock("p",Je,e.toDisplayString(f.description),1))]))],10,qe)}),128))]),n.value&&n.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(p.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.value.type]),e.mergeProps(n.value.props||{},{modelValue:n.value.value,onUpdated:y[2]||(y[2]=f=>M(f)),"onUpdate:modelValue":y[3]||(y[3]=f=>M(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(b,["stop"])},[e.createVNode(e.unref(H),{size:24,color:"white"})])]),e.createElementVNode("div",Ge,[e.createElementVNode("button",{title:"search",onClick:y[4]||(y[4]=()=>{})},[e.createVNode(e.unref(H),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(o)}`,class:"modal"},[e.createElementVNode("div",Ze,[e.renderSlot(c.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Qe,e.toDisplayString(c.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((h=t.searchOptions.find(f=>f.category===t.currentCategory))==null?void 0:h.tabs)||[],(f,$)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:f.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(o)}`,checked:$===0},null,8,et),e.createElementVNode("div",tt,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("div",lt,e.toDisplayString(D(f)),1)):(e.openBlock(),e.createElementBlock("div",nt,e.toDisplayString(f.description),1))]),e.createElementVNode("div",ot,[y[7]||(y[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[f.type]),e.mergeProps({ref_for:!0},f.props||{},{modelValue:f.value,onUpdated:y[5]||(y[5]=V=>M(V)),"onUpdate:modelValue":y[6]||(y[6]=V=>M(V))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:b}," Close and Search ")])])])],8,Xe)],64)}}}),[["__scopeId","data-v-2a095d4c"]]),rt=["placeholder","value","id","disabled"],st=["disabled"],it=["id"],ct={key:0,class:"flex justify-between items-center place-content-center mb-4"},dt=["disabled"],mt=["value"],pt=["value"],ut={key:1,class:"gap-2 grid grid-cols-7"},ft=["onClick"],gt={key:2,class:"mt-4 lg:w-80"},ht={key:0,class:"mb-2 font-bold text-lg"},kt={key:1},yt={key:1,class:"flex gap-4"},bt=["value"],wt=["value"],Bt={key:2,class:"flex flex-col gap-4"},Et={key:1,class:"flex gap-2"},Vt=["value"],St=["value"],$t={key:1,class:"flex gap-2"},Ct=["value"],Nt=["value"],_t={class:"flex gap-2 mt-4"},K=P({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:r=>["datetime","date","time"].includes(r)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null},disabled:{type:Boolean,default:!1}},emits:["updated"],setup(r,{emit:i}){const t=r;e.watch(()=>t.range,u=>{u?(n.value={start:null,end:null},a.value={start:null,end:null}):(n.value=null,a.value=null)});const l=i,o=e.ref(!1),n=e.ref(t.range?{start:null,end:null}:null),a=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),d=e.ref(new Date().getFullYear()),p=e.ref(t.range?{start:0,end:0}:0),w=e.ref(t.range?{start:0,end:0}:0),D=e.ref(null),M=e.computed(()=>`${t.id}-input`),m=e.computed(()=>`${t.id}-popup`),b=e.computed(()=>t.mode==="date"||t.mode==="datetime"),B=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(d.value,S.value));const S=e.computed(()=>h.indexOf(k.value)),N=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],x=e.computed(()=>new Date(d.value,S.value).getDay()),z=e.computed(()=>{const u=new Date(d.value,S.value+1,0).getDate();return Array.from({length:u},(g,s)=>new Date(d.value,S.value,s+1))}),I=e.computed(()=>Array.from({length:x.value},(u,g)=>g)),c=Array.from({length:24},(u,g)=>g),y=Array.from({length:60},(u,g)=>g),E=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),h=["January","February","March","April","May","June","July","August","September","October","November","December"],f=e.computed(()=>{const u=new Date().getFullYear();return Array.from({length:100},(g,s)=>u-50+s)}),$=e.computed(()=>{if(!b.value||!n.value)return"";if(t.range&&n.value.start&&n.value.end){const u=n.value.start.toLocaleDateString("en-US"),g=n.value.end.toLocaleDateString("en-US");return`${u} - ${g}`}return!t.range&&n.value?n.value.toLocaleDateString("en-US"):""}),V=u=>u instanceof Date?u:new Date(u),_=u=>u instanceof Date&&!isNaN(u),L=e.computed(()=>{if(!B.value)return"";const u=g=>{var q,U,X;const s=((q=p.value)==null?void 0:q[g])??p.value,F=((U=w.value)==null?void 0:U[g])??w.value;return E.value?((X=a.value)==null?void 0:X[g])??a.value:`${s.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`};return t.range?`${u("start")} - ${u("end")}`:u()}),v=e.computed(()=>{const u=$.value,g=L.value;return`${u} ${g}`.trim()}),R=()=>o.value=!o.value,O=()=>{T(),Al()},Al=()=>o.value=!1,Ul=()=>{n.value=t.range?{start:null,end:null}:null,a.value=t.range?{start:null,end:null}:null,T()},jl=u=>{t.range?n.value.start&&n.value.end?n.value={start:u,end:null}:n.value.start?n.value.end=u:n.value.start=u:n.value=u,T()},Rl=u=>(u=V(u),t.range?n.value.start&&_(n.value.start)&&u.getTime()===n.value.start.getTime()||n.value.end&&_(n.value.end)&&u.getTime()===n.value.end.getTime():_(n.value)&&u.getTime()===n.value.getTime()),ql=u=>{u=V(u);const g=new Date;return u.getDate()===g.getDate()&&u.getMonth()===g.getMonth()&&u.getFullYear()===g.getFullYear()},Hl=u=>(u=V(u),t.range&&_(n.value.start)&&u.getTime()===n.value.start.getTime()),Wl=u=>(u=V(u),t.range&&_(n.value.end)&&u.getTime()===n.value.end.getTime()),Kl=u=>{if(u=V(u),t.range&&_(n.value.start)&&_(n.value.end)){const g=n.value.start.getTime(),s=n.value.end.getTime(),F=u.getTime();return F>g&&F<s}return!1},Yl=()=>{let u=S.value-1;u<0&&(u=11,d.value--),k.value=h[u],T()},Jl=()=>{let u=S.value+1;u>11&&(u=0,d.value++),k.value=h[u],T()},G=u=>{D.value&&!D.value.contains(u.target)&&o.value==!0&&O()},T=()=>{let u={};const g=(s,F,q)=>{s instanceof Date&&!isNaN(s)||(s=new Date);const U=new Date(s);return U.setUTCHours(F,q,0,0),U.toISOString()};t.range?(u.from=g(n.value.start,p.value.start,w.value.start),u.to=g(n.value.end,p.value.end,w.value.end)):u=g(n.value,p.value,w.value),l("updated",u)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?n.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(n.value={start:new Date(t.initialDate.start)})),t.range?(p.value.start=p.value.start??new Date().getHours(),p.value.end=p.value.end??new Date().getHours(),w.value.start=w.value.start??new Date().getMinutes(),w.value.end=w.value.end??new Date().getMinutes()):(p.value=p.value??new Date().getHours(),w.value=w.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",G)),e.onUnmounted(()=>document.removeEventListener("click",G)),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:D},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:g[0]||(g[0]=s=>t.disabled?null:R())},[r.popup?e.renderSlot(u.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:r.placeholder,value:v.value,readonly:"",id:M.value,disabled:t.disabled},null,8,rt),e.createElementVNode("button",{class:"btn btn-ghost",disabled:t.disabled},[e.createVNode(e.unref(pe))],8,st)],!0):e.createCommentVNode("",!0)]),o.value||!r.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:r.popup}]]),id:m.value},[b.value?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Yl,disabled:t.disabled},g[12]||(g[12]=[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)]),8,dt),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":g[1]||(g[1]=s=>k.value=s),onChange:T},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,(s,F)=>e.createElementVNode("option",{key:F,value:s},e.toDisplayString(s),9,mt)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":g[2]||(g[2]=s=>d.value=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s),9,pt))),128))],544),[[e.vModelSelect,d.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Jl},g[13]||(g[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(N,s=>e.createElementVNode("div",{key:s,class:"text-center"},e.toDisplayString(s),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Rl(s),today:ql(s),"range-start bg-primary text-primary-content":Hl(s),"range-end bg-primary text-primary-content":Wl(s),"in-range bg-primary/20 hover:bg-primary/10":Kl(s)}]),onClick:F=>jl(s)},e.toDisplayString(s.getDate()),11,ft))),128))])):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("div",gt,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",ht,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",Bt,[e.createElementVNode("div",null,[g[14]||(g[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),E.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":g[6]||(g[6]=s=>a.value.start=s),onChange:T},null,544)),[[e.vModelText,a.value.start]]):(e.openBlock(),e.createElementBlock("div",Et,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[7]||(g[7]=s=>p.value.start=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,Vt))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[8]||(g[8]=s=>w.value.start=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,St))),128))],544),[[e.vModelSelect,w.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[g[15]||(g[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),E.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":g[9]||(g[9]=s=>a.value.end=s),onChange:T},null,544)),[[e.vModelText,a.value.end]]):(e.openBlock(),e.createElementBlock("div",$t,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[10]||(g[10]=s=>p.value.end=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,Ct))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[11]||(g[11]=s=>w.value.end=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,Nt))),128))],544),[[e.vModelSelect,w.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",kt,[E.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":g[3]||(g[3]=s=>a.value=s),onChange:T},null,544)),[[e.vModelText,a.value]]):(e.openBlock(),e.createElementBlock("div",yt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[4]||(g[4]=s=>p.value=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,bt))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[5]||(g[5]=s=>w.value=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,wt))),128))],544),[[e.vModelSelect,w.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",_t,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",r.popup?"w-fit":"w-full"]),onClick:Ul}," Clear ",2),r.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:O}," Close ")):e.createCommentVNode("",!0)])],10,it)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-bab9b3c1"]]),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"})),Mt=["value","checked","onChange","disabled"],xt=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(r){const i=r,t=e.ref(i.initialRating);e.watch(()=>i.initialRating,o=>{t.value=o});const l=o=>{t.value=o};return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${i.size}`,{"rating-half":o.halfStars},{"pointer-events-none":!o.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.numberOfStars*(o.halfStars?2:1),a=>(e.openBlock(),e.createElementBlock("input",{key:a,type:"radio",value:o.halfStars?a*.5:a,checked:t.value===(o.halfStars?a*.5:a),onChange:k=>o.isInteractive?l(o.halfStars?a*.5:a):null,class:e.normalizeClass(["mask",[{"mask-half-1":o.halfStars&&a%2!==0,"mask-half-2":o.halfStars&&a%2===0,"cursor-pointer":o.isInteractive,"cursor-default":!o.isInteractive,"mask-star":o.shape==="star","mask-star-2":o.shape==="star-bold","mask-heart":o.shape==="heart","mask-hexagon":o.shape==="hexagon-vertical","mask-hexagon-2":o.shape==="hexagon-horizontal","mask-decagon":o.shape==="decagon","mask-pentagon":o.shape==="pentagon","mask-diamond":o.shape==="diamond","mask-square":o.shape==="square","mask-triangle":o.shape==="triangle-top","mask-triangle-2":o.shape==="triangle-bottom","mask-triangle-3":o.shape==="triangle-left","mask-triangle-4":o.shape==="triangle-right"},t.value>=(o.halfStars?a*.5:a)?i.color:""]]),style:e.normalizeStyle({marginRight:o.halfStars&&a%2===0?`${i.gap}px`:o.halfStars?"0":`${i.gap}px`}),disabled:!o.isInteractive},null,46,Mt))),128))],2))}}),Tt={class:"badge"},It=["onClick"],zt={class:"opacity-75"},Lt=["placeholder"],vt=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(r,{emit:i}){const t=r,l=i,o=e.ref([...t.modelValue]),n=t.maxTagAmount===void 0?-1:t.maxTagAmount,a=e.ref(null),k=e.ref(""),d=e.computed(()=>n<0||o.value.length<n),p=()=>{const m=k.value.trim();m&&!o.value.includes(m)&&(o.value.push(m),l("update:modelValue",o.value),k.value="")},w=m=>{o.value=o.value.filter(b=>b!==m),l("update:modelValue",o.value)},D=()=>{k.value===""&&(o.value.pop(),l("update:modelValue",o.value))},M=m=>{m.key==="Enter"?p():m.key==="Backspace"&&k.value===""&&D()};return e.watch(()=>t.modelValue,m=>{o.value=[...m]}),(m,b)=>(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",m.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,B=>e.renderSlot(m.$slots,"tag",{key:B,tag:B},()=>[e.createElementVNode("div",Tt,[e.createElementVNode("button",{class:"!px-1 !py-0 h-fit font-bold cursor-pointer",onClick:S=>w(B),"aria-label":"Remove tag"},"X",8,It),e.createElementVNode("span",zt,e.toDisplayString(B),1)])])),128)),e.renderSlot(m.$slots,"input",{showInput:d.value},()=>[d.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:a,"onUpdate:modelValue":b[0]||(b[0]=B=>k.value=B),type:"text",placeholder:m.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:M,"aria-label":"Add tags"},null,40,Lt)),[[e.vModelText,k.value]]):e.createCommentVNode("",!0)])],2))}}),Ot={class:"w-full max-w-xs form-control"},Ft={key:0,class:"label"},Pt={class:"label-text"},At=["value"],Ut={key:0,value:"",disabled:"",selected:""},jt=["value"],Y=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(r,{expose:i,emit:t}){console.log(r.placeholder);const o=t,n=e.ref(null),a=d=>{const p=d.target;o("update:modelValue",p.value)};return i({focusInput:()=>{var d;console.log("select.vue: focusInput method called."),(d=n.value)==null||d.focus()}}),(d,p)=>(e.openBlock(),e.createElementBlock("div",Ot,[d.label?(e.openBlock(),e.createElementBlock("label",Ft,[e.createElementVNode("span",Pt,e.toDisplayString(d.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:n,class:"rounded-md w-full select-bordered select",value:d.modelValue,onChange:a},[d.placeholder?(e.openBlock(),e.createElementBlock("option",Ut,e.toDisplayString(d.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,w=>(e.openBlock(),e.createElementBlock("option",{key:w.value,value:w.value},e.toDisplayString(w.text),9,jt))),128))],40,At)]))}}),Rt=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"})),qt={key:0,class:"label"},Ht={class:"label-text"},Wt=["onKeydown","aria-expanded","aria-activedescendant"],Kt=["placeholder","disabled"],Yt={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Jt={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Gt=["onMousedown","id","aria-selected"],Xt={__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"],setup(r,{expose:i,emit:t}){const l=r,o=t,n=e.useSlots(),a=e.computed(()=>{const f=(n.default?n.default():[]).filter($=>$.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",f.length>0),f.length>0}),k=e.ref(""),d=e.ref(null),p=e.ref(!1),w=e.ref(null),D=e.ref(null),M=e.ref(null),m=e.ref(null),b=()=>{console.log("openDropdown called"),p.value=!0},B=()=>{console.log("closeDropdown called"),p.value=!1,m.value=null,a.value||(d.value&&k.value!==d.value.text?k.value=d.value.text:d.value||(k.value=""))},S=()=>{p.value?B():b()},N=e.computed(()=>{const h=k.value.toLowerCase();return h===""&&!p.value?[]:l.options.filter($=>$.text.toLowerCase().includes(h))});e.watch(()=>l.modelValue,(h,f)=>{if(h!==f&&B(),h==null)d.value=null,!p.value&&!a.value&&(k.value="");else{const $=l.options.find(V=>V.value===h);$?(d.value=$,!p.value&&!a.value&&(k.value=$.text)):(d.value=null,!p.value&&!a.value&&(k.value=""))}},{immediate:!0});const x=h=>{D.value&&!D.value.contains(h.target)&&B()},z=()=>{setTimeout(()=>{D.value&&!D.value.contains(document.activeElement)&&B()},100)};e.watch(p,h=>{h?setTimeout(()=>{document.addEventListener("click",x)},0):document.removeEventListener("click",x)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("keydown",E)});const I=h=>{d.value=h,a.value||(k.value=h.text),o("update:modelValue",h.value),o("select",h),B(),console.log("user selected an option")},c=()=>{N.value.length>0&&I(N.value[0])},y=()=>{p.value||b()},E=h=>{if(!p.value||N.value.length===0)return;const f=N.value.findIndex((V,_)=>"option-"+_===m.value);let $=-1;if(h.key==="ArrowDown")h.preventDefault(),$=(f+1)%N.value.length;else if(h.key==="ArrowUp")h.preventDefault(),$=(f-1+N.value.length)%N.value.length;else if(h.key==="Enter"&&m.value){h.preventDefault();const V=N.value.find((_,L)=>"option-"+L===m.value);V&&I(V);return}else if(h.key==="Escape"){h.preventDefault(),B(),M.value&&M.value.focus();return}else if(a.value)return;if($!==-1){m.value="option-"+$;const V=document.getElementById(m.value);V&&requestAnimationFrame(()=>{V.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(p,h=>{h?(window.addEventListener("keydown",E),!a.value&&!k.value&&d.value&&(k.value=d.value.text)):(console.log("Removing window keydown listener"),window.removeEventListener("keydown",E))}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("keydown",E)}),i({isDropdownOpen:p,selectedItem:d,openDropdown:b,closeDropdown:B,toggleDropdown:S,selectItem:I,filterText:k,hasDefaultSlotContent:a}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:D},[r.label?(e.openBlock(),e.createElementBlock("label",qt,[e.createElementVNode("span",Ht,e.toDisplayString(r.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!a.value,select:!a.value}]),tabindex:"0",onClick:f[1]||(f[1]=$=>l.disabled?null:b),onKeydown:[e.withKeys(e.withModifiers(c,["prevent"]),["enter"]),e.withKeys(e.withModifiers(c,["prevent"]),["space"])],onBlur:z,role:"combobox","aria-haspopup":"listbox","aria-expanded":p.value,"aria-activedescendant":m.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:M},[e.renderSlot(h.$slots,"default",{},()=>[a.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:r.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":f[0]||(f[0]=$=>k.value=$),ref_key:"filterInput",ref:w,onFocus:b,onInput:y,tabindex:"-1",disabled:l.disabled},null,40,Kt)),[[e.vModelText,k.value]])]),a.value?(e.openBlock(),e.createBlock(e.unref(ue),{key:0,class:e.normalizeClass({"rotate-180":p.value}),size:20},null,8,["class"])):e.createCommentVNode("",!0)],42,Wt),e.withDirectives(e.createElementVNode("div",Yt,[e.createElementVNode("ul",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,($,V)=>(e.openBlock(),e.createElementBlock("li",{key:$.value,onMousedown:e.withModifiers(_=>I($),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+V,role:"option","aria-selected":d.value&&d.value.value===$.value},[e.createElementVNode("a",null,e.toDisplayString($.text),1)],40,Gt))),128))])],512),[[e.vShow,p.value&&N.value.length>0]])],512))}},Zt={class:"w-full max-w-xs form-control"},Qt={key:0,class:"label"},el={class:"label-text"},tl=["type","placeholder","disabled","value"],ll={key:1,class:"label"},nl={class:"label-text-alt text-error validator-hint"},ol={key:2,class:"label"},al={class:"label-text-alt text-success validator-hint"},J=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(r,{expose:i,emit:t}){const l=r,o=t,n=e.ref(null),a=e.ref(!1),k=e.ref(""),d=e.computed(()=>{var S,N,x,z;let m=!0,b="";const B=l.modelValue;return(S=l.rules)!=null&&S.required&&(B==null||B==="")&&(m=!1,b="This field is required."),m&&((N=l.rules)==null?void 0:N.minLength)!==void 0&&typeof B=="string"&&B.length<l.rules.minLength&&(m=!1,b=`Must be at least ${l.rules.minLength} characters.`),m&&((x=l.rules)==null?void 0:x.maxLength)!==void 0&&typeof B=="string"&&B.length>l.rules.maxLength&&(m=!1,b=`Cannot exceed ${l.rules.maxLength} characters.`),m&&((z=l.rules)!=null&&z.email)&&typeof B=="string"&&B&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(B)||(m=!1,b="Please enter a valid email address.")),k.value=b,o("validate",m),m}),p=e.computed(()=>a.value&&!d.value),w=m=>{const b=m.target;o("update:modelValue",b.value),a.value&&d.value},D=()=>{a.value=!0,d.value};return e.watch(()=>l.modelValue,()=>{a.value&&d.value}),i({focusInput:()=>{var m;console.log("inputField.vue: focusInput method called."),(m=n.value)==null||m.focus()},isValid:d,isTouched:a,errorMessage:k}),(m,b)=>(e.openBlock(),e.createElementBlock("div",Zt,[m.label?(e.openBlock(),e.createElementBlock("label",Qt,[e.createElementVNode("span",el,e.toDisplayString(m.label),1)])):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:n,type:m.type,placeholder:m.placeholder,disabled:l.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":m.size==="xs","input-sm":m.size==="sm","input-md":m.size==="md","input-lg":m.size==="lg","input-xl":m.size==="xl","input-ghost":m.style==="ghost","input-neutral":m.color==="neutral"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-primary":m.color==="primary"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-secondary":m.color==="secondary"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-accent":m.color==="accent"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-info":m.color==="info"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-success":m.color==="success"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-warning":m.color==="warning"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-error":p.value,"input-success-validation":d.value&&a.value&&!p.value&&m.needsValidation}]]),value:m.modelValue,onInput:w,onBlur:D},null,42,tl),p.value?(e.openBlock(),e.createElementBlock("div",ll,[e.createElementVNode("span",nl,e.toDisplayString(k.value),1)])):d.value&&a.value&&m.successMessage?(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("span",al,e.toDisplayString(m.successMessage),1)])):e.createCommentVNode("",!0)]))}}),rl=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),sl=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(r){const i=r,t=e.ref(i.loading);return e.watch(()=>i.loading,l=>{t.value=l}),(l,o)=>t.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":l.size==="xs"},{"loading-sm":l.size==="sm"},{"loading-md":l.size==="md"},{"loading-lg":l.size==="lg"},{"loading-xl":l.size==="xl"},{"loading-spinner":l.type==="spinner"},{"loading-dots":l.type==="dots"},{"loading-ring":l.type==="ring"},{"loading-balls":l.type==="balls"},{"loading-bars":l.type==="bars"},{"loading-infinity":l.type==="infinity"},{"text-primary":l.color==="primary"},{"text-secondary":l.color==="secondary"},{"text-accent":l.color==="accent"},{"text-neutral":l.color==="neutral"},{"text-info":l.color==="info"},{"text-success":l.color==="success"},{"text-warning":l.color==="warning"},{"text-error":l.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),il={class:"footer sm:footer-horizontal container"},cl={class:"footer-title"},dl=["href"],ml={key:0,class:"sm:hidden w-full"},pl={class:"border-b-2 border-base-100 last:border-b-0 w-full"},ul={tabindex:"0",class:"collapse collapse-plus w-full"},fl={class:"collapse-title font-bold text-lg collapsible-footer-title"},gl={class:"collapse-content flex w-full text-sm"},hl={class:"flex flex-col gap-2.5"},kl={class:"w-full"},yl=["href"],bl={class:"w-full"},wl=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(r){const i=r;return(t,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",il,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,o=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",cl,e.toDisplayString(o.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,n=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:n.link},e.toDisplayString(n.text),9,dl))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",ml,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,o=>(e.openBlock(),e.createElementBlock("ul",pl,[e.createElementVNode("div",ul,[e.createElementVNode("div",fl,e.toDisplayString(o.title),1),e.createElementVNode("div",gl,[e.createElementVNode("ul",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,n=>(e.openBlock(),e.createElementBlock("li",kl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:n.link},e.toDisplayString(n.text),9,yl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",bl,[e.renderSlot(t.$slots,"default")])])],2))}}),Bl={},El={class:"min-h-40 container hero"},Vl={class:"px-0! text-center hero-content"},Sl={class:"mt-9 text-4xl"};function $l(r,i){return e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",Vl,[e.createElementVNode("div",null,[e.createElementVNode("h1",Sl,[e.renderSlot(r.$slots,"title",{},()=>[i[0]||(i[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(r.$slots,"description",{class:"py-9"})]),e.renderSlot(r.$slots,"call-to-action-block",{class:"max-w-full"},()=>[i[1]||(i[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const Cl=P(Bl,[["render",$l]]),Nl={class:"flex flex-row place-content-center gap-4 categories"},_l=["onClick"],Dl=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(r,{emit:i}){const t=r,l=i;function o(n){l("update:currentCategory",n)}return(n,a)=>(e.openBlock(),e.createElementBlock("div",Nl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:d=>o(k.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,_l)]))),128))]))}}),Ml={class:"md:flex hidden navbar-start"},xl={class:"md:flex justify-center items-center hidden navbar-center"},Tl={class:"md:flex hidden navbar-end"},Il={class:"navbar-bottom md:flex hidden"},zl=P(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(r){const i=r;return(t,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",i.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Ml,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",xl,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Tl,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Il,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Ll={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},vl=["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"},Fl={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(r,{emit:i}){const t=r,l=e.ref(t.items[0]),o=i;function n(d){l.value=d,o("tab-changed",d)}function a(){const p=(t.items.indexOf(l.value)+1)%t.items.length;n(t.items[p])}function k(){const p=(t.items.indexOf(l.value)-1+t.items.length)%t.items.length;n(t.items[p])}return e.onMounted(()=>{t.items&&n(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{a()},t.rotateTabsAfter*1e3)}),(d,p)=>(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":d.buttonOnlyMode}])},[d.withControlls?(e.openBlock(),e.createElementBlock("div",Ll,[e.createElementVNode("button",{onClick:p[0]||(p[0]=w=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:p[1]||(p[1]=w=>a()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,w=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",w===l.value?"bg-primary text-base-100":""]),onClick:D=>n(w),"aria-selected":l.value==w},e.toDisplayString(w),11,vl),d.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ol,[e.renderSlot(d.$slots,`${w}-tab`)]))],64))),256))],2),e.createElementVNode("div",Fl,[e.renderSlot(d.$slots,"default")])],64))}});C.Accordion=Se,C.AdvancedSearch=at,C.Avatar=Ne,C.Badge=_e,C.ButtonComponent=ee,C.Card=Le,C.Carousel=Ue,C.CarouselItem=je,C.CategoryNavigation=Dl,C.DatetimePicker=K,C.Dropdown=ne,C.FilterableSelect=Xt,C.Footer=wl,C.Hero=Cl,C.InputField=J,C.Loader=sl,C.Modal=re,C.NavigationBar=zl,C.Rating=xt,C.Selector=Y,C.Swap=ce,C.Tab=Pl,C.TagInput=vt,C.ThemeController=be,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
46
|
+
*/const ge=A("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"}]]),he=(r,i)=>{const t=e.ref(null);return e.onMounted(()=>{if(typeof window<"u"){const l=window.localStorage.getItem(r);t.value=l?JSON.parse(l):i}}),e.watch(t,l=>{typeof window<"u"&&window.localStorage.setItem(r,JSON.stringify(l))}),t},ke={class:"swap-rotate swap"},ye=["true-value","false-value"],be=e.defineComponent({__name:"theme-controller",props:{lightTheme:{default:"light"},darkTheme:{default:"dark"}},setup(r){const i=r,t=he("theme",i.lightTheme);function l(o){typeof window<"u"&&window.document&&document.documentElement.setAttribute("data-theme",o)}return e.onMounted(()=>l(t.value?t.value:"")),e.watch(t,o=>{l(o)}),(o,n)=>(e.openBlock(),e.createElementBlock("label",ke,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"theme-controller","onUpdate:modelValue":n[0]||(n[0]=a=>e.isRef(t)?t.value=a:null),"true-value":i.lightTheme,"false-value":i.darkTheme},null,8,ye),[[e.vModelCheckbox,e.unref(t)]]),e.createVNode(e.unref(ge),{class:"swap-off fill-current"}),e.createVNode(e.unref(fe),{class:"swap-on fill-current"})]))}}),we=["name"],Be={class:"collapse-title font-bold text-2xl lg:text-4xl"},Ee={class:"collapse-content"},Ve=["innerHTML"],Se=e.defineComponent({__name:"accordion",props:{name:{},items:{},joinItems:{type:Boolean,default:!1},icon:{}},setup(r){const i=r;return(t,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["collapse border border-base-300",[t.icon?`collapse-${t.icon}`:"",{"join-item":t.joinItems}]]),key:n},[e.createElementVNode("input",{type:"radio",name:t.name,value:"true"},null,8,we),e.createElementVNode("div",Be,e.toDisplayString(o.title),1),e.createElementVNode("div",Ee,[e.createElementVNode("span",{innerHTML:o.content},null,8,Ve)])],2))),128))}}),$e=["src"],Ce={class:"text-xl"},Ne=e.defineComponent({__name:"avatar",props:{image:{},onlineStatus:{default:"none"},initials:{},fullyRounded:{type:Boolean,default:!1}},setup(r){const i=r,t=e.ref(i.onlineStatus);return e.watch(()=>i.onlineStatus,l=>{l&&(t.value=l)}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["avatar",[{"avatar-online":t.value==="online"},{"avatar-offline":t.value==="offline"}]])},[l.image?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rounded",[{"rounded-full":l.fullyRounded},{rounded:!l.fullyRounded}]])},[e.createElementVNode("img",{src:l.image,class:"w-full h-full"},null,8,$e)],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":l.fullyRounded},{rounded:!l.fullyRounded}]])},[e.createElementVNode("p",Ce,e.toDisplayString(l.initials),1)],2))],2))}}),_e=e.defineComponent({__name:"badge",props:{color:{default:"neutral"},outline:{type:Boolean,default:!1},size:{default:"medium"}},setup(r){const i=r,t={"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(o,n)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["badge",t[i.size],l[i.color],{"badge-outline":i.outline}])},[e.renderSlot(o.$slots,"default")],2))}}),De=["src","alt"],Me={key:0,class:"card-body"},xe={key:0,class:"group-hover:text-primary text-lg text-left cursor-pointer card-title"},Te={key:1,class:"text-left"},Ie={class:"flex-col flex-nowrap mt-auto card-actions"},ze={key:1,class:"card-body"},Le=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"}},setup(r){const i=r,t=e.ref(i.outlined);return e.watch(()=>i.outlined,l=>{t.value=l}),(l,o)=>(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":t.value},l.color??"",l.background]])},[e.createElementVNode("figure",null,[l.imgUrl||l.imgUrl&&!l.loading?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imgUrl,alt:l.alt,class:e.normalizeClass(["rounded-sm w-full object-cover",[{hidden:l.loading},l.imgHeight]])},null,10,De)):e.createCommentVNode("",!0),l.loading&&l.imgUrl?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["w-full skeleton",l.imgHeight])},null,2)):e.createCommentVNode("",!0)]),l.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Me,[l.title?(e.openBlock(),e.createElementBlock("h2",xe,e.toDisplayString(l.title),1)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"details"),l.description?(e.openBlock(),e.createElementBlock("p",Te,e.toDisplayString(l.description),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ie,[e.renderSlot(l.$slots,"actions")])])),l.loading?(e.openBlock(),e.createElementBlock("div",ze,o[0]||(o[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))}}),W=Symbol("CarouselItemStyle"),ve={class:"relative h-full"},Oe={key:0,class:"top-1/2 right-5 left-5 z-10 absolute flex justify-between -translate-y-1/2 transform"},Fe={key:1,class:"bottom-5 z-10 absolute flex justify-center gap-2 py-2 w-full"},Pe=["onClick","aria-label"],Ae=e.defineComponent({__name:"carousel",props:{showIndicators:{type:Boolean,default:!0},showNavigationButtons:{type:Boolean,default:!0},sliderOrientation:{type:String,default:"horizontal",required:!1,validator:r=>r=="horizontal"||r=="vertical"},initialSlide:{type:Number,default:0},slidesPerView:{type:Number,default:1,validator:r=>r>=1},gap:{type:Number,default:0,validator:r=>r>=0},slideDuration:{type:Number,default:300,validator:r=>r>=0}},setup(r,{expose:i}){const t=r,l=e.ref(t.initialSlide),o=e.ref(null),n=e.ref(!1),a=e.ref(0),k=e.computed(()=>({width:`calc((100% - ${t.slidesPerView>1?(t.slidesPerView-1)*t.gap:0}px) / ${t.slidesPerView})`}));e.provide(W,k);const d=()=>{o.value?a.value=o.value.children.length:a.value=0},p=async b=>{if(!o.value||t.slidesPerView<=0||n.value||(d(),a.value===0))return;const B=(b%a.value+a.value)%a.value,V=o.value,N=t.sliderOrientation==="vertical"?(V.offsetHeight-(t.slidesPerView-1)*t.gap)/t.slidesPerView:(V.offsetWidth-(t.slidesPerView-1)*t.gap)/t.slidesPerView;if(N<=0)return;const x=N+t.gap,z=B*x,I=t.sliderOrientation==="vertical"?V.scrollHeight-V.offsetHeight:V.scrollWidth-V.offsetWidth,c=Math.max(0,Math.min(z,I+.5));n.value=!0,V.style.scrollBehavior="auto";const y=t.sliderOrientation==="vertical"?V.scrollTop:V.scrollLeft,E=c-y;if(Math.abs(E)<1){n.value=!1,l.value=B;return}const h=performance.now(),f=$=>{const S=$-h,_=Math.min(1,S/t.slideDuration),L=_<.5?4*_*_*_:1-Math.pow(-2*_+2,3)/2,v=y+E*L;t.sliderOrientation==="vertical"?V.scrollTop=v:V.scrollLeft=v,_<1?requestAnimationFrame(f):(t.sliderOrientation==="vertical"?V.scrollTop=c:V.scrollLeft=c,l.value=B,n.value=!1)};requestAnimationFrame(f)},w=()=>{p(l.value+1)},D=()=>{p(l.value-1)},M=b=>{p(b)},m=()=>{if(!o.value||t.slidesPerView<=0||(d(),a.value===0))return;const b=o.value,B=t.sliderOrientation==="vertical"?b.offsetHeight:b.offsetWidth,V=t.slidesPerView>1?(t.slidesPerView-1)*t.gap:0,N=(B-V)/t.slidesPerView;if(N<=0)return;const x=Math.max(0,a.value-t.slidesPerView),z=Math.min(Math.max(0,t.initialSlide),x),I=z*(N+t.gap),c=t.sliderOrientation==="vertical"?b.scrollHeight-b.offsetHeight:b.scrollWidth-b.offsetWidth,y=Math.max(0,Math.min(I,c+.5));t.sliderOrientation==="vertical"?b.scrollTo({top:y,behavior:"auto"}):b.scrollTo({left:y,behavior:"auto"}),l.value=z};return e.onMounted(()=>{requestAnimationFrame(()=>{requestAnimationFrame(m)}),d()}),e.watch(()=>t.initialSlide,b=>{requestAnimationFrame(()=>p(b))}),e.watch(()=>[t.slidesPerView,t.gap],()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(d(),a.value===0)return;const b=Math.max(0,a.value-t.slidesPerView),B=Math.min(l.value,b),V=t.slideDuration;t.slideDuration=0,p(B),t.slideDuration=V})})}),i({scrollToSlide:p}),(b,B)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",{ref_key:"carouselContainer",ref:o,class:e.normalizeClass(["rounded w-full h-full overflow-x-scroll scroll-smooth carousel",[{"carousel-horizontal md:snap-none":r.sliderOrientation=="horizontal"},{"carousel-vertical":r.sliderOrientation=="vertical"}]]),style:e.normalizeStyle({gap:`${r.gap}px`})},[e.renderSlot(b.$slots,"default",{},void 0,!0)],6),r.showNavigationButtons?(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",{onClick:D,role:"button","aria-label":"Previous Slide"},[e.renderSlot(b.$slots,"prevButton",{},()=>[B[0]||(B[0]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❮",-1))],!0)]),e.createElementVNode("div",{onClick:w,role:"button","aria-label":"Next Slide"},[e.renderSlot(b.$slots,"nextButton",{},()=>[B[1]||(B[1]=e.createElementVNode("button",{class:"btn btn-circle",tabindex:"-1"},"❯",-1))],!0)])])):e.createCommentVNode("",!0),r.showIndicators?(e.openBlock(),e.createElementBlock("div",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(V,N)=>(e.openBlock(),e.createElementBlock("button",{key:`dot-${N}`,onClick:x=>M(N),class:e.normalizeClass(["btn btn-circle btn-xs",{"btn-active":N===l.value}]),"aria-label":`Go to slide ${N+1}`},null,10,Pe))),128))])):e.createCommentVNode("",!0)]))}}),P=(r,i)=>{const t=r.__vccOpts||r;for(const[l,o]of i)t[l]=o;return t},Ue=P(Ae,[["__scopeId","data-v-db55a6a5"]]),je=P(e.defineComponent({__name:"carouselItem",setup(r){const i=e.inject(W,e.ref({}));return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full carousel-item",style:e.normalizeStyle(e.unref(i))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-507384bc"]]),Re={class:"flex gap-4 bg-base-100 w-full tabs tabs-boxed"},qe=["onClick"],He={key:0,class:"inline-component-wrapper flex flex-grow justify-center items-center w-full h-full"},We={key:1,class:"flex flex-col"},Ke={class:"text-sm"},Ye={key:0,class:"opacity-75 overflow-hidden text-xs truncate ..."},Je={key:1,class:"hidden md:block opacity-35 overflow-hidden text-xs truncate ..."},Ge={class:"hidden"},Xe=["id"],Ze={class:"modal-box"},Qe={class:"font-bold text-lg"},et=["name","checked"],tt={class:"collapse-title flex justify-between items-center pr-4 w-full font-medium text-xl"},lt={key:0,class:"opacity-75 overflow-hidden text-sm truncate ..."},nt={key:1,class:"opacity-35 text-sm"},ot={class:"collapse-content flex place-content-center p-0"},at=P(e.defineComponent({__name:"advancedSearch",props:{searchOptions:{},currentCategory:{},id:{},value:{}},emits:["search","update:search-data"],setup(r,{emit:i}){const t=r,l=i,o=t.id??`advancedSearch-${e.useId()}`,n=e.ref(null),a=e.ref(null),k={datetime:e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dt)),"standard-select":e.defineAsyncComponent(()=>Promise.resolve().then(()=>Rt)),"custom-text":e.defineAsyncComponent(()=>Promise.resolve().then(()=>rl))},d=e.ref({}),p=e.ref({left:"0px",top:"0px",transform:"translateX(0%)"}),w=e.ref(null),D=c=>{var y;if(c.value===void 0||c.value===null||c.value==="")return"";switch(c.type){case"datetime":if(typeof c.value=="string")try{const E=new Date(c.value);if(!isNaN(E.getTime()))return E.toLocaleString()}catch{}else if(c.range&&typeof c.value=="object"&&c.value!==null&&"start"in c.value&&"end"in c.value)try{const E=new Date(c.value.start),h=new Date(c.value.end);if(!isNaN(E.getTime())&&!isNaN(h.getTime()))return`${E.toLocaleDateString()} - ${h.toLocaleDateString()}`}catch{}break;case"custom-range":if(typeof c.value=="object"&&c.value!==null&&"start"in c.value&&"end"in c.value)return`${c.value.start} - ${c.value.end}`;break;case"custom-number":if(typeof c.value=="number")return c.value.toString();break;case"standard-select":case"custom-select":if((y=c.props)!=null&&y.options&&Array.isArray(c.props.options)){const E=c.props.options.find(h=>h.value===c.value);if(E)return E.text}return String(c.value);case"custom-text":if(typeof c.value=="string")return c.value;break}return String(c.value)};function M(c){var f,$;const y=(f=n.value)==null?void 0:f.name;if(!y){console.warn("componentValueUpdated called but no active tab.");return}const E=($=t.searchOptions.find(S=>(S==null?void 0:S.category)===t.currentCategory))==null?void 0:$.tabs,h=E==null?void 0:E.find(S=>S.name===y);h?(h.value=c,l("update:search-data",{tab:h.name,data:c})):console.error(`Tab with name "${y}" not found in current category.`)}function m(c){M(c)}function b(){l("search")}async function B(c){var h;const y=document.getElementById(`advancedSearchMobile-${o}`),E=y&&y.contains(c.target);((h=n.value)==null?void 0:h.displayMode)==="popup"&&w.value&&!w.value.contains(c.target)&&!E&&(await e.nextTick(),n.value=null)}async function V(){if(typeof window<"u"&&window.innerWidth<=768){const c=document.getElementById(`advancedSearchMobile-${o}`);c?(n.value=null,c.showModal()):console.warn(`Mobile modal element not found. Ensure it exists with id="advancedSearchMobile-${o}".`)}}async function N(c){var E,h,f;if(typeof window<"u"&&window.innerWidth<=768){V();return}const y=c.displayMode??"popup";if(((E=n.value)==null?void 0:E.name)===c.name&&((h=n.value)==null?void 0:h.displayMode)===y)n.value=null;else if(n.value={...c,displayMode:y},await e.nextTick(),((f=n.value)==null?void 0:f.displayMode)==="popup"){const $=d.value[c.name];if($&&w.value){const S=$.getBoundingClientRect(),_=w.value.getBoundingClientRect(),L=S.bottom-_.top,v=S.left+S.width/2-_.left;p.value={left:`${v}px`,top:`${L+8}px`,transform:"translateX(-50%)"}}else console.error("Tab element or search container not found for positioning:",c.name)}}const x=c=>{const y=c.relatedTarget;setTimeout(()=>{var E;((E=n.value)==null?void 0:E.displayMode)==="inline"&&w.value&&(!y||!w.value.contains(y))?(console.log("Blur detected outside container, closing inline view."),n.value=null):console.log("Blur detected, but staying within container or not an inline tab.")},50)},z=()=>{console.log("Enter key pressed on inline component, closing inline view."),n.value=null};e.watch(a,c=>{var y;console.log("advanced-search: inlineComponentRef changed. New Value:",c),console.log("advanced-search: activeTab.value:",n.value),c&&((y=n.value)==null?void 0:y.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 c),console.log("advanced-search: Does newValue have focusInput?",typeof c.focusInput=="function"),c&&typeof c.focusInput=="function"?(console.log("advanced-search: Calling exposed focusInput() method on child instance."),c.focusInput()):console.warn('advanced-search: Child inline component instance does not expose a "focusInput" method or is not ready.',c)})):console.log(c?"advanced-search: inlineComponentRef available, but active tab is not inline.":"advanced-search: inlineComponentRef is now null (component likely unmounted).")}),e.onMounted(()=>{document.addEventListener("click",B),window.addEventListener("resize",I)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",B),window.removeEventListener("resize",I)});const I=()=>{var c,y;if(typeof window<"u"){const E=window.innerWidth<=768,h=n.value!==null&&(n.value.displayMode==="popup"||n.value.displayMode==="inline")&&window.innerWidth>768;!E&&(((c=n.value)==null?void 0:c.displayMode)==="popup"||((y=n.value)==null?void 0:y.displayMode)==="inline")&&window.innerWidth<=768&&(console.log("Resizing to mobile, closing active tab."),n.value=null),E&&!h&&n.value!==null&&(console.log("Resizing to desktop from potential mobile active state, closing active tab."),n.value=null);const f=document.getElementById(`advancedSearchMobile-${o}`);f!=null&&f.open&&!E&&(console.log("Modal is open on desktop, closing modal and active tab."),f.close(),n.value=null)}};return(c,y)=>{var E,h;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"searchContainer",ref:w,class:"w-full"},[e.createElementVNode("div",{class:"group/search relative flex place-items-center shadow-md p-2 border-2 border-base-300/25 rounded-sm w-full transition-all cursor-pointer md:cursor-auto",onClick:V},[e.createElementVNode("div",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((E=t.searchOptions.find(f=>f.category===t.currentCategory))==null?void 0:E.tabs)||[],(f,$)=>{var S,_,L,v,R;return e.openBlock(),e.createElementBlock("button",{key:`${f.name}-${$}`,onClick:e.withModifiers(O=>N(f),["stop"]),class:e.normalizeClass([{"tab-active":((S=n.value)==null?void 0:S.name)===f.name,"tab-active-inline":((_=n.value)==null?void 0:_.name)===f.name&&((L=n.value)==null?void 0:L.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-[1px] after:h-10 overflow-x-hidden text-start md:after:content-[''] after:content-none last-of-type:after:content-none"]),ref_for:!0,ref:O=>d.value[f.name]=O},[((v=n.value)==null?void 0:v.name)===f.name&&((R=n.value)==null?void 0:R.displayMode)==="inline"?(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.value.type]),e.mergeProps({ref_for:!0},n.value.props||{},{modelValue:n.value.value,onUpdated:y[0]||(y[0]=O=>m(O)),"onUpdate:modelValue":y[1]||(y[1]=O=>m(O)),onBlur:x,onKeydown:e.withKeys(e.withModifiers(z,["stop","prevent"]),["enter"]),ref_for:!0,ref_key:"inlineComponentRef",ref:a}),null,16,["modelValue","onKeydown"]))])):(e.openBlock(),e.createElementBlock("div",We,[e.createElementVNode("p",Ke,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("p",Ye,e.toDisplayString(D(f)),1)):(e.openBlock(),e.createElementBlock("p",Je,e.toDisplayString(f.description),1))]))],10,qe)}),128))]),n.value&&n.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(p.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[n.value.type]),e.mergeProps(n.value.props||{},{modelValue:n.value.value,onUpdated:y[2]||(y[2]=f=>M(f)),"onUpdate:modelValue":y[3]||(y[3]=f=>M(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(b,["stop"])},[e.createVNode(e.unref(H),{size:24,color:"white"})])]),e.createElementVNode("div",Ge,[e.createElementVNode("button",{title:"search",onClick:y[4]||(y[4]=()=>{})},[e.createVNode(e.unref(H),{size:24,color:"white"})])])],512),e.createElementVNode("dialog",{id:`advancedSearchMobile-${e.unref(o)}`,class:"modal"},[e.createElementVNode("div",Ze,[e.renderSlot(c.$slots,"additionalForMobile",{},()=>[e.createElementVNode("h3",Qe,e.toDisplayString(c.currentCategory),1)],!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((h=t.searchOptions.find(f=>f.category===t.currentCategory))==null?void 0:h.tabs)||[],(f,$)=>(e.openBlock(),e.createElementBlock("div",{class:"collapse bg-base-200 my-4",key:f.name},[e.createElementVNode("input",{type:"radio",name:`accordion-${e.unref(o)}`,checked:$===0},null,8,et),e.createElementVNode("div",tt,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),f.value!==void 0&&f.value!==null&&f.value!==""?(e.openBlock(),e.createElementBlock("div",lt,e.toDisplayString(D(f)),1)):(e.openBlock(),e.createElementBlock("div",nt,e.toDisplayString(f.description),1))]),e.createElementVNode("div",ot,[y[7]||(y[7]=e.createElementVNode("br",null,null,-1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k[f.type]),e.mergeProps({ref_for:!0},f.props||{},{modelValue:f.value,onUpdated:y[5]||(y[5]=S=>M(S)),"onUpdate:modelValue":y[6]||(y[6]=S=>M(S))}),null,16,["modelValue"]))])]))),128)),e.createElementVNode("div",{class:"modal-action"},[e.createElementVNode("form",{method:"dialog"},[e.createElementVNode("button",{class:"btn btn-primary",onClick:b}," Close and Search ")])])])],8,Xe)],64)}}}),[["__scopeId","data-v-2a095d4c"]]),rt=["placeholder","value","id","disabled"],st=["disabled"],it=["id"],ct={key:0,class:"flex justify-between items-center place-content-center mb-4"},dt=["disabled"],mt=["value"],pt=["value"],ut={key:1,class:"gap-2 grid grid-cols-7"},ft=["onClick"],gt={key:2,class:"mt-4 lg:w-80"},ht={key:0,class:"mb-2 font-bold text-lg"},kt={key:1},yt={key:1,class:"flex gap-4"},bt=["value"],wt=["value"],Bt={key:2,class:"flex flex-col gap-4"},Et={key:1,class:"flex gap-2"},Vt=["value"],St=["value"],$t={key:1,class:"flex gap-2"},Ct=["value"],Nt=["value"],_t={class:"flex gap-2 mt-4"},K=P({__name:"datetimePicker",props:{mode:{type:String,default:"datetime",validator:r=>["datetime","date","time"].includes(r)},range:{type:Boolean,default:!1},placeholder:{type:String,default:"Select date and time"},popup:{type:Boolean,default:!1},id:{type:String,default:"datetimepicker"},initialDate:{type:Object,default:()=>null},disabled:{type:Boolean,default:!1}},emits:["updated"],setup(r,{emit:i}){const t=r;e.watch(()=>t.range,u=>{u?(n.value={start:null,end:null},a.value={start:null,end:null}):(n.value=null,a.value=null)});const l=i,o=e.ref(!1),n=e.ref(t.range?{start:null,end:null}:null),a=e.ref(t.range?{start:null,end:null}:null),k=e.ref(new Date().toLocaleString("default",{month:"long"})),d=e.ref(new Date().getFullYear()),p=e.ref(t.range?{start:0,end:0}:0),w=e.ref(t.range?{start:0,end:0}:0),D=e.ref(null),M=e.computed(()=>`${t.id}-input`),m=e.computed(()=>`${t.id}-popup`),b=e.computed(()=>t.mode==="date"||t.mode==="datetime"),B=e.computed(()=>t.mode==="time"||t.mode==="datetime");e.computed(()=>new Date(d.value,V.value));const V=e.computed(()=>h.indexOf(k.value)),N=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],x=e.computed(()=>new Date(d.value,V.value).getDay()),z=e.computed(()=>{const u=new Date(d.value,V.value+1,0).getDate();return Array.from({length:u},(g,s)=>new Date(d.value,V.value,s+1))}),I=e.computed(()=>Array.from({length:x.value},(u,g)=>g)),c=Array.from({length:24},(u,g)=>g),y=Array.from({length:60},(u,g)=>g),E=e.computed(()=>typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),h=["January","February","March","April","May","June","July","August","September","October","November","December"],f=e.computed(()=>{const u=new Date().getFullYear();return Array.from({length:100},(g,s)=>u-50+s)}),$=e.computed(()=>{if(!b.value||!n.value)return"";if(t.range&&n.value.start&&n.value.end){const u=n.value.start.toLocaleDateString("en-US"),g=n.value.end.toLocaleDateString("en-US");return`${u} - ${g}`}return!t.range&&n.value?n.value.toLocaleDateString("en-US"):""}),S=u=>u instanceof Date?u:new Date(u),_=u=>u instanceof Date&&!isNaN(u),L=e.computed(()=>{if(!B.value)return"";const u=g=>{var q,U,X;const s=((q=p.value)==null?void 0:q[g])??p.value,F=((U=w.value)==null?void 0:U[g])??w.value;return E.value?((X=a.value)==null?void 0:X[g])??a.value:`${s.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`};return t.range?`${u("start")} - ${u("end")}`:u()}),v=e.computed(()=>{const u=$.value,g=L.value;return`${u} ${g}`.trim()}),R=()=>o.value=!o.value,O=()=>{T(),Al()},Al=()=>o.value=!1,Ul=()=>{n.value=t.range?{start:null,end:null}:null,a.value=t.range?{start:null,end:null}:null,T()},jl=u=>{t.range?n.value.start&&n.value.end?n.value={start:u,end:null}:n.value.start?n.value.end=u:n.value.start=u:n.value=u,T()},Rl=u=>(u=S(u),t.range?n.value.start&&_(n.value.start)&&u.getTime()===n.value.start.getTime()||n.value.end&&_(n.value.end)&&u.getTime()===n.value.end.getTime():_(n.value)&&u.getTime()===n.value.getTime()),ql=u=>{u=S(u);const g=new Date;return u.getDate()===g.getDate()&&u.getMonth()===g.getMonth()&&u.getFullYear()===g.getFullYear()},Hl=u=>(u=S(u),t.range&&_(n.value.start)&&u.getTime()===n.value.start.getTime()),Wl=u=>(u=S(u),t.range&&_(n.value.end)&&u.getTime()===n.value.end.getTime()),Kl=u=>{if(u=S(u),t.range&&_(n.value.start)&&_(n.value.end)){const g=n.value.start.getTime(),s=n.value.end.getTime(),F=u.getTime();return F>g&&F<s}return!1},Yl=()=>{let u=V.value-1;u<0&&(u=11,d.value--),k.value=h[u],T()},Jl=()=>{let u=V.value+1;u>11&&(u=0,d.value++),k.value=h[u],T()},G=u=>{D.value&&!D.value.contains(u.target)&&o.value==!0&&O()},T=()=>{let u={};const g=(s,F,q)=>{s instanceof Date&&!isNaN(s)||(s=new Date);const U=new Date(s);return U.setUTCHours(F,q,0,0),U.toISOString()};t.range?(u.from=g(n.value.start,p.value.start,w.value.start),u.to=g(n.value.end,p.value.end,w.value.end)):u=g(n.value,p.value,w.value),l("updated",u)};return e.onMounted(()=>{t.initialDate&&(t.range&&t.initialDate.start&&t.initialDate.end?n.value={start:new Date(t.initialDate.start),end:new Date(t.initialDate.end)}:t.initialDate.start&&(n.value={start:new Date(t.initialDate.start)})),t.range?(p.value.start=p.value.start??new Date().getHours(),p.value.end=p.value.end??new Date().getHours(),w.value.start=w.value.start??new Date().getMinutes(),w.value.end=w.value.end??new Date().getMinutes()):(p.value=p.value??new Date().getHours(),w.value=w.value??new Date().getMinutes())}),t.popup&&e.onMounted(()=>document.addEventListener("click",G)),e.onUnmounted(()=>document.removeEventListener("click",G)),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"inline-block relative w-full lg:w-[360px]",ref_key:"pickerContainer",ref:D},[e.createElementVNode("div",{class:"flex items-center gap-2 cursor-pointer",onClick:g[0]||(g[0]=s=>t.disabled?null:R())},[r.popup?e.renderSlot(u.$slots,"default",{key:0},()=>[e.createElementVNode("input",{type:"text",class:"input-bordered w-full cursor-pointer input",placeholder:r.placeholder,value:v.value,readonly:"",id:M.value,disabled:t.disabled},null,8,rt),e.createElementVNode("button",{class:"btn btn-ghost",disabled:t.disabled},[e.createVNode(e.unref(pe))],8,st)],!0):e.createCommentVNode("",!0)]),o.value||!r.popup?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["z-50 bg-base-100 md:mt-2 md:p-4 px-4 rounded-md w-full",[{absolute:r.popup}]]),id:m.value},[b.value?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Yl,disabled:t.disabled},g[12]||(g[12]=[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)]),8,dt),e.withDirectives(e.createElementVNode("select",{class:"border-none w-fit select","onUpdate:modelValue":g[1]||(g[1]=s=>k.value=s),onChange:T},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,(s,F)=>e.createElementVNode("option",{key:F,value:s},e.toDisplayString(s),9,mt)),64))],544),[[e.vModelSelect,k.value]]),e.withDirectives(e.createElementVNode("select",{class:"border-none w-24 select","onUpdate:modelValue":g[2]||(g[2]=s=>d.value=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s),9,pt))),128))],544),[[e.vModelSelect,d.value]]),e.createElementVNode("button",{class:"hidden md:block btn-outline btn btn-primary md:btn-sm",onClick:Jl},g[13]||(g[13]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)]))])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(N,s=>e.createElementVNode("div",{key:s,class:"text-center"},e.toDisplayString(s),1)),64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"text-center"}))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["hover:bg-primary-10 py-1 rounded-full text-center cursor-pointer",{"bg-primary text-primary-content":Rl(s),today:ql(s),"range-start bg-primary text-primary-content":Hl(s),"range-end bg-primary text-primary-content":Wl(s),"in-range bg-primary/20 hover:bg-primary/10":Kl(s)}]),onClick:F=>jl(s)},e.toDisplayString(s.getDate()),11,ft))),128))])):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("div",gt,[t.range?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("h3",ht,"Select Time")),t.range?(e.openBlock(),e.createElementBlock("div",Bt,[e.createElementVNode("div",null,[g[14]||(g[14]=e.createElementVNode("p",{class:"font-bold"},"Start Time",-1)),E.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":g[6]||(g[6]=s=>a.value.start=s),onChange:T},null,544)),[[e.vModelText,a.value.start]]):(e.openBlock(),e.createElementBlock("div",Et,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[7]||(g[7]=s=>p.value.start=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,Vt))),128))],544),[[e.vModelSelect,p.value.start,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[8]||(g[8]=s=>w.value.start=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,St))),128))],544),[[e.vModelSelect,w.value.start,void 0,{number:!0}]])]))]),e.createElementVNode("div",null,[g[15]||(g[15]=e.createElementVNode("p",{class:"font-bold"},"End Time",-1)),E.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":g[9]||(g[9]=s=>a.value.end=s),onChange:T},null,544)),[[e.vModelText,a.value.end]]):(e.openBlock(),e.createElementBlock("div",$t,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[10]||(g[10]=s=>p.value.end=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,Ct))),128))],544),[[e.vModelSelect,p.value.end,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[11]||(g[11]=s=>w.value.end=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,Nt))),128))],544),[[e.vModelSelect,w.value.end,void 0,{number:!0}]])]))])])):(e.openBlock(),e.createElementBlock("div",kt,[E.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"time",class:"input-bordered w-full input","onUpdate:modelValue":g[3]||(g[3]=s=>a.value=s),onChange:T},null,544)),[[e.vModelText,a.value]]):(e.openBlock(),e.createElementBlock("div",yt,[e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[4]||(g[4]=s=>p.value=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,bt))),128))],544),[[e.vModelSelect,p.value,void 0,{number:!0}]]),e.withDirectives(e.createElementVNode("select",{class:"w-full select-bordered select","onUpdate:modelValue":g[5]||(g[5]=s=>w.value=s),onChange:T},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),s=>(e.openBlock(),e.createElementBlock("option",{key:s,value:s},e.toDisplayString(s.toString().padStart(2,"0")),9,wt))),128))],544),[[e.vModelSelect,w.value,void 0,{number:!0}]])]))]))])):e.createCommentVNode("",!0),e.createElementVNode("div",_t,[e.createElementVNode("button",{class:e.normalizeClass(["btn btn-secondary",r.popup?"w-fit":"w-full"]),onClick:Ul}," Clear ",2),r.popup?(e.openBlock(),e.createElementBlock("button",{key:0,class:"btn btn-primary btn-wide",onClick:O}," Close ")):e.createCommentVNode("",!0)])],10,it)):e.createCommentVNode("",!0)],512))}},[["__scopeId","data-v-bab9b3c1"]]),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"})),Mt=["value","checked","onChange","disabled"],xt=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(r){const i=r,t=e.ref(i.initialRating);e.watch(()=>i.initialRating,o=>{t.value=o});const l=o=>{t.value=o};return(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rating",[`rating-${i.size}`,{"rating-half":o.halfStars},{"pointer-events-none":!o.isInteractive}]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.numberOfStars*(o.halfStars?2:1),a=>(e.openBlock(),e.createElementBlock("input",{key:a,type:"radio",value:o.halfStars?a*.5:a,checked:t.value===(o.halfStars?a*.5:a),onChange:k=>o.isInteractive?l(o.halfStars?a*.5:a):null,class:e.normalizeClass(["mask",[{"mask-half-1":o.halfStars&&a%2!==0,"mask-half-2":o.halfStars&&a%2===0,"cursor-pointer":o.isInteractive,"cursor-default":!o.isInteractive,"mask-star":o.shape==="star","mask-star-2":o.shape==="star-bold","mask-heart":o.shape==="heart","mask-hexagon":o.shape==="hexagon-vertical","mask-hexagon-2":o.shape==="hexagon-horizontal","mask-decagon":o.shape==="decagon","mask-pentagon":o.shape==="pentagon","mask-diamond":o.shape==="diamond","mask-square":o.shape==="square","mask-triangle":o.shape==="triangle-top","mask-triangle-2":o.shape==="triangle-bottom","mask-triangle-3":o.shape==="triangle-left","mask-triangle-4":o.shape==="triangle-right"},t.value>=(o.halfStars?a*.5:a)?i.color:""]]),style:e.normalizeStyle({marginRight:o.halfStars&&a%2===0?`${i.gap}px`:o.halfStars?"0":`${i.gap}px`}),disabled:!o.isInteractive},null,46,Mt))),128))],2))}}),Tt={class:"badge"},It=["onClick"],zt={class:"opacity-75"},Lt=["placeholder"],vt=e.defineComponent({__name:"taginput",props:{modelValue:{},maxTagAmount:{},placeholder:{},class:{}},emits:["update:modelValue"],setup(r,{emit:i}){const t=r,l=i,o=e.ref([...t.modelValue]),n=t.maxTagAmount===void 0?-1:t.maxTagAmount,a=e.ref(null),k=e.ref(""),d=e.computed(()=>n<0||o.value.length<n),p=()=>{const m=k.value.trim();m&&!o.value.includes(m)&&(o.value.push(m),l("update:modelValue",o.value),k.value="")},w=m=>{o.value=o.value.filter(b=>b!==m),l("update:modelValue",o.value)},D=()=>{k.value===""&&(o.value.pop(),l("update:modelValue",o.value))},M=m=>{m.key==="Enter"?p():m.key==="Backspace"&&k.value===""&&D()};return e.watch(()=>t.modelValue,m=>{o.value=[...m]}),(m,b)=>(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",m.$props.class])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,B=>e.renderSlot(m.$slots,"tag",{key:B,tag:B},()=>[e.createElementVNode("div",Tt,[e.createElementVNode("button",{class:"!px-1 !py-0 h-fit font-bold cursor-pointer",onClick:V=>w(B),"aria-label":"Remove tag"},"X",8,It),e.createElementVNode("span",zt,e.toDisplayString(B),1)])])),128)),e.renderSlot(m.$slots,"input",{showInput:d.value},()=>[d.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,ref_key:"inputRef",ref:a,"onUpdate:modelValue":b[0]||(b[0]=B=>k.value=B),type:"text",placeholder:m.placeholder||"Type here",class:"h-full input input-ghost",onKeydown:M,"aria-label":"Add tags"},null,40,Lt)),[[e.vModelText,k.value]]):e.createCommentVNode("",!0)])],2))}}),Ot={class:"w-full max-w-xs form-control"},Ft={key:0,class:"label"},Pt={class:"label-text"},At=["value"],Ut={key:0,value:"",disabled:"",selected:""},jt=["value"],Y=e.defineComponent({__name:"select",props:{options:{},label:{},placeholder:{},modelValue:{}},emits:["update:modelValue"],setup(r,{expose:i,emit:t}){console.log(r.placeholder);const o=t,n=e.ref(null),a=d=>{const p=d.target;o("update:modelValue",p.value)};return i({focusInput:()=>{var d;console.log("select.vue: focusInput method called."),(d=n.value)==null||d.focus()}}),(d,p)=>(e.openBlock(),e.createElementBlock("div",Ot,[d.label?(e.openBlock(),e.createElementBlock("label",Ft,[e.createElementVNode("span",Pt,e.toDisplayString(d.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("select",{ref_key:"selectElement",ref:n,class:"rounded-md w-full select-bordered select",value:d.modelValue,onChange:a},[d.placeholder?(e.openBlock(),e.createElementBlock("option",Ut,e.toDisplayString(d.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,w=>(e.openBlock(),e.createElementBlock("option",{key:w.value,value:w.value},e.toDisplayString(w.text),9,jt))),128))],40,At)]))}}),Rt=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"})),qt={key:0,class:"label"},Ht={class:"label-text"},Wt=["onKeydown","aria-expanded","aria-activedescendant"],Kt=["placeholder","disabled"],Yt={class:"top-full z-10 absolute bg-base-100 shadow-lg mt-1 rounded-md w-full dropdown-content",role:"listbox"},Jt={class:"flex-nowrap p-0 w-[inherit] max-h-60 overflow-y-auto menu"},Gt=["onMousedown","id","aria-selected"],Xt={__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"],setup(r,{expose:i,emit:t}){const l=r,o=t,n=e.useSlots(),a=e.computed(()=>{const f=(n.default?n.default():[]).filter($=>$.type!==e.Comment);return console.log("hasDefaultSlotContent computed:",f.length>0),f.length>0}),k=e.ref(""),d=e.ref(null),p=e.ref(!1),w=e.ref(null),D=e.ref(null),M=e.ref(null),m=e.ref(null),b=()=>{p.value=!l.disabled},B=()=>{console.log("closeDropdown called"),p.value=!1,m.value=null,a.value||(d.value&&k.value!==d.value.text?k.value=d.value.text:d.value||(k.value=""))},V=()=>{p.value?B():b()},N=e.computed(()=>{const h=k.value.toLowerCase();return h===""&&!p.value?[]:l.options.filter($=>$.text.toLowerCase().includes(h))});e.watch(()=>l.modelValue,(h,f)=>{if(h!==f&&B(),h==null)d.value=null,!p.value&&!a.value&&(k.value="");else{const $=l.options.find(S=>S.value===h);$?(d.value=$,!p.value&&!a.value&&(k.value=$.text)):(d.value=null,!p.value&&!a.value&&(k.value=""))}},{immediate:!0});const x=h=>{D.value&&!D.value.contains(h.target)&&B()},z=()=>{setTimeout(()=>{D.value&&!D.value.contains(document.activeElement)&&B()},100)};e.watch(p,h=>{h?setTimeout(()=>{document.addEventListener("click",x)},0):document.removeEventListener("click",x)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("keydown",E)});const I=h=>{d.value=h,a.value||(k.value=h.text),o("update:modelValue",h.value),o("select",h),B()},c=()=>{N.value.length>0&&I(N.value[0])},y=()=>{p.value||b()},E=h=>{if(!p.value||N.value.length===0)return;const f=N.value.findIndex((S,_)=>"option-"+_===m.value);let $=-1;if(h.key==="ArrowDown")h.preventDefault(),$=(f+1)%N.value.length;else if(h.key==="ArrowUp")h.preventDefault(),$=(f-1+N.value.length)%N.value.length;else if(h.key==="Enter"&&m.value){h.preventDefault();const S=N.value.find((_,L)=>"option-"+L===m.value);S&&I(S);return}else if(h.key==="Escape"){h.preventDefault(),B(),M.value&&M.value.focus();return}else if(a.value)return;if($!==-1){m.value="option-"+$;const S=document.getElementById(m.value);S&&requestAnimationFrame(()=>{S.scrollIntoView({block:"nearest",behavior:"smooth"})})}};return e.watch(p,h=>{h?(window.addEventListener("keydown",E),!a.value&&!k.value&&d.value&&(k.value=d.value.text)):window.removeEventListener("keydown",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",x),window.removeEventListener("keydown",E)}),i({isDropdownOpen:p,selectedItem:d,openDropdown:b,closeDropdown:B,toggleDropdown:V,selectItem:I,filterText:k,hasDefaultSlotContent:a}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"relative w-full max-w-xs form-control",ref_key:"componentRoot",ref:D},[r.label?(e.openBlock(),e.createElementBlock("label",qt,[e.createElementVNode("span",Ht,e.toDisplayString(r.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex items-center input-bordered rounded-md w-fit cursor-pointer",{input:!a.value,select:!a.value}]),tabindex:"0",onClick:f[1]||(f[1]=$=>V()),onKeydown:[e.withKeys(e.withModifiers(c,["prevent"]),["enter"]),e.withKeys(e.withModifiers(c,["prevent"]),["space"])],onBlur:z,role:"combobox","aria-haspopup":"listbox","aria-expanded":p.value,"aria-activedescendant":m.value,"aria-autocomplete":"list",ref_key:"activatorWrapper",ref:M},[e.renderSlot(h.$slots,"default",{},()=>[a.value?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,type:"text",placeholder:r.placeholder,class:"bg-transparent border-none focus:outline-none w-full","onUpdate:modelValue":f[0]||(f[0]=$=>k.value=$),ref_key:"filterInput",ref:w,onFocus:b,onInput:y,tabindex:"-1",disabled:l.disabled},null,40,Kt)),[[e.vModelText,k.value]])]),a.value?(e.openBlock(),e.createBlock(e.unref(ue),{key:0,class:e.normalizeClass({"rotate-180":p.value}),size:20},null,8,["class"])):e.createCommentVNode("",!0)],42,Wt),e.withDirectives(e.createElementVNode("div",Yt,[e.createElementVNode("ul",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,($,S)=>(e.openBlock(),e.createElementBlock("li",{key:$.value,onMousedown:e.withModifiers(_=>I($),["prevent"]),class:"hover:bg-base-200 rounded-md w-full cursor-pointer",id:"option-"+S,role:"option","aria-selected":d.value&&d.value.value===$.value},[e.createElementVNode("a",null,e.toDisplayString($.text),1)],40,Gt))),128))])],512),[[e.vShow,p.value&&N.value.length>0]])],512))}},Zt={class:"w-full max-w-xs form-control"},Qt={key:0,class:"label"},el={class:"label-text"},tl=["type","placeholder","disabled","value"],ll={key:1,class:"label"},nl={class:"label-text-alt text-error validator-hint"},ol={key:2,class:"label"},al={class:"label-text-alt text-success validator-hint"},J=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(r,{expose:i,emit:t}){const l=r,o=t,n=e.ref(null),a=e.ref(!1),k=e.ref(""),d=e.computed(()=>{var V,N,x,z;let m=!0,b="";const B=l.modelValue;return(V=l.rules)!=null&&V.required&&(B==null||B==="")&&(m=!1,b="This field is required."),m&&((N=l.rules)==null?void 0:N.minLength)!==void 0&&typeof B=="string"&&B.length<l.rules.minLength&&(m=!1,b=`Must be at least ${l.rules.minLength} characters.`),m&&((x=l.rules)==null?void 0:x.maxLength)!==void 0&&typeof B=="string"&&B.length>l.rules.maxLength&&(m=!1,b=`Cannot exceed ${l.rules.maxLength} characters.`),m&&((z=l.rules)!=null&&z.email)&&typeof B=="string"&&B&&(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(B)||(m=!1,b="Please enter a valid email address.")),k.value=b,o("validate",m),m}),p=e.computed(()=>a.value&&!d.value),w=m=>{const b=m.target;o("update:modelValue",b.value),a.value&&d.value},D=()=>{a.value=!0,d.value};return e.watch(()=>l.modelValue,()=>{a.value&&d.value}),i({focusInput:()=>{var m;console.log("inputField.vue: focusInput method called."),(m=n.value)==null||m.focus()},isValid:d,isTouched:a,errorMessage:k}),(m,b)=>(e.openBlock(),e.createElementBlock("div",Zt,[m.label?(e.openBlock(),e.createElementBlock("label",Qt,[e.createElementVNode("span",el,e.toDisplayString(m.label),1)])):e.createCommentVNode("",!0),e.renderSlot(m.$slots,"default"),e.createElementVNode("input",{ref_key:"inputElement",ref:n,type:m.type,placeholder:m.placeholder,disabled:l.disabled,class:e.normalizeClass(["input-bordered rounded-md w-full input validator",[{"input-xs":m.size==="xs","input-sm":m.size==="sm","input-md":m.size==="md","input-lg":m.size==="lg","input-xl":m.size==="xl","input-ghost":m.style==="ghost","input-neutral":m.color==="neutral"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-primary":m.color==="primary"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-secondary":m.color==="secondary"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-accent":m.color==="accent"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-info":m.color==="info"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-success":m.color==="success"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-warning":m.color==="warning"&&!p.value&&!(d.value&&a.value&&m.needsValidation),"input-error":p.value,"input-success-validation":d.value&&a.value&&!p.value&&m.needsValidation}]]),value:m.modelValue,onInput:w,onBlur:D},null,42,tl),p.value?(e.openBlock(),e.createElementBlock("div",ll,[e.createElementVNode("span",nl,e.toDisplayString(k.value),1)])):d.value&&a.value&&m.successMessage?(e.openBlock(),e.createElementBlock("div",ol,[e.createElementVNode("span",al,e.toDisplayString(m.successMessage),1)])):e.createCommentVNode("",!0)]))}}),rl=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),sl=e.defineComponent({__name:"loader",props:{loading:{type:Boolean,default:!0},size:{default:"md"},type:{default:"spinner"},color:{default:"primary"}},setup(r){const i=r,t=e.ref(i.loading);return e.watch(()=>i.loading,l=>{t.value=l}),(l,o)=>t.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["loading",[{"loading-xs":l.size==="xs"},{"loading-sm":l.size==="sm"},{"loading-md":l.size==="md"},{"loading-lg":l.size==="lg"},{"loading-xl":l.size==="xl"},{"loading-spinner":l.type==="spinner"},{"loading-dots":l.type==="dots"},{"loading-ring":l.type==="ring"},{"loading-balls":l.type==="balls"},{"loading-bars":l.type==="bars"},{"loading-infinity":l.type==="infinity"},{"text-primary":l.color==="primary"},{"text-secondary":l.color==="secondary"},{"text-accent":l.color==="accent"},{"text-neutral":l.color==="neutral"},{"text-info":l.color==="info"},{"text-success":l.color==="success"},{"text-warning":l.color==="warning"},{"text-error":l.color==="error"}]])},null,2)):e.createCommentVNode("",!0)}}),il={class:"footer sm:footer-horizontal container"},cl={class:"footer-title"},dl=["href"],ml={key:0,class:"sm:hidden w-full"},pl={class:"border-b-2 border-base-100 last:border-b-0 w-full"},ul={tabindex:"0",class:"collapse collapse-plus w-full"},fl={class:"collapse-title font-bold text-lg collapsible-footer-title"},gl={class:"collapse-content flex w-full text-sm"},hl={class:"flex flex-col gap-2.5"},kl={class:"w-full"},yl=["href"],bl={class:"w-full"},wl=e.defineComponent({__name:"footer",props:{items:{},background:{},color:{},collapseOnMobile:{type:Boolean,default:!1}},setup(r){const i=r;return(t,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",il,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,o=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([{"hidden sm:grid":t.collapseOnMobile}])},[e.createElementVNode("h6",cl,e.toDisplayString(o.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,n=>(e.openBlock(),e.createElementBlock("a",{class:"link link-hover",href:n.link},e.toDisplayString(n.text),9,dl))),256))],2))),256)),t.collapseOnMobile?(e.openBlock(),e.createElementBlock("nav",ml,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,o=>(e.openBlock(),e.createElementBlock("ul",pl,[e.createElementVNode("div",ul,[e.createElementVNode("div",fl,e.toDisplayString(o.title),1),e.createElementVNode("div",gl,[e.createElementVNode("ul",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,n=>(e.openBlock(),e.createElementBlock("li",kl,[e.createElementVNode("a",{class:"w-full font-medium link link-hover",href:n.link},e.toDisplayString(n.text),9,yl)]))),256))])])])]))),256))])):e.createCommentVNode("",!0),e.createElementVNode("aside",bl,[e.renderSlot(t.$slots,"default")])])],2))}}),Bl={},El={class:"min-h-40 container hero"},Vl={class:"px-0! text-center hero-content"},Sl={class:"mt-9 text-4xl"};function $l(r,i){return e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",Vl,[e.createElementVNode("div",null,[e.createElementVNode("h1",Sl,[e.renderSlot(r.$slots,"title",{},()=>[i[0]||(i[0]=e.createTextVNode("hero title"))])]),e.createElementVNode("p",null,[e.renderSlot(r.$slots,"description",{class:"py-9"})]),e.renderSlot(r.$slots,"call-to-action-block",{class:"max-w-full"},()=>[i[1]||(i[1]=e.createElementVNode("button",{class:"btn btn-primary"},"Call to action",-1))])])])])}const Cl=P(Bl,[["render",$l]]),Nl={class:"flex flex-row place-content-center gap-4 categories"},_l=["onClick"],Dl=e.defineComponent({__name:"categoryNavigation",props:{searchOptions:{},currentCategory:{}},emits:["update:currentCategory"],setup(r,{emit:i}){const t=r,l=i;function o(n){l("update:currentCategory",n)}return(n,a)=>(e.openBlock(),e.createElementBlock("div",Nl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.searchOptions,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category},[e.createElementVNode("button",{onClick:d=>o(k.category),class:e.normalizeClass(["truncate btn btn-ghost",{"font-semibold":t.currentCategory===k.category}])},e.toDisplayString(k.category),11,_l)]))),128))]))}}),Ml={class:"md:flex hidden navbar-start"},xl={class:"md:flex justify-center items-center hidden navbar-center"},Tl={class:"md:flex hidden navbar-end"},Il={class:"navbar-bottom md:flex hidden"},zl=P(e.defineComponent({__name:"navigationBar",props:{isCollapsed:{type:Boolean,default:!0}},setup(r){const i=r;return(t,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",i.isCollapsed?"collapsed":""])},[e.createElementVNode("div",Ml,[e.renderSlot(t.$slots,"start",{},void 0,!0)]),e.createElementVNode("div",xl,[e.renderSlot(t.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",Tl,[e.renderSlot(t.$slots,"end",{},void 0,!0)]),e.createElementVNode("div",Il,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])],2))}}),[["__scopeId","data-v-8ddb2b45"]]),Ll={key:0,class:"hidden top-4 right-0 absolute md:flex gap-4"},vl=["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"},Fl={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(r,{emit:i}){const t=r,l=e.ref(t.items[0]),o=i;function n(d){l.value=d,o("tab-changed",d)}function a(){const p=(t.items.indexOf(l.value)+1)%t.items.length;n(t.items[p])}function k(){const p=(t.items.indexOf(l.value)-1+t.items.length)%t.items.length;n(t.items[p])}return e.onMounted(()=>{t.items&&n(t.items[0])}),e.onUnmounted(()=>{t.rotateTabsAfter&&t.rotateTabsAfter>0&&setInterval(()=>{a()},t.rotateTabsAfter*1e3)}),(d,p)=>(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":d.buttonOnlyMode}])},[d.withControlls?(e.openBlock(),e.createElementBlock("div",Ll,[e.createElementVNode("button",{onClick:p[0]||(p[0]=w=>k()),class:"cursor-pointer"},"Previous"),e.createElementVNode("button",{onClick:p[1]||(p[1]=w=>a()),class:"text-primary cursor-pointer"},"Next")])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,w=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("a",{type:"button",role:"tab",class:e.normalizeClass(["min-w-max tab",w===l.value?"bg-primary text-base-100":""]),onClick:D=>n(w),"aria-selected":l.value==w},e.toDisplayString(w),11,vl),d.buttonOnlyMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ol,[e.renderSlot(d.$slots,`${w}-tab`)]))],64))),256))],2),e.createElementVNode("div",Fl,[e.renderSlot(d.$slots,"default")])],64))}});C.Accordion=Se,C.AdvancedSearch=at,C.Avatar=Ne,C.Badge=_e,C.ButtonComponent=ee,C.Card=Le,C.Carousel=Ue,C.CarouselItem=je,C.CategoryNavigation=Dl,C.DatetimePicker=K,C.Dropdown=ne,C.FilterableSelect=Xt,C.Footer=wl,C.Hero=Cl,C.InputField=J,C.Loader=sl,C.Modal=re,C.NavigationBar=zl,C.Rating=xt,C.Selector=Y,C.Swap=ce,C.Tab=Pl,C.TagInput=vt,C.ThemeController=be,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|