@moondreamsdev/dreamer-ui 1.7.10-test.85 → 1.7.10-test.89
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/{Toast-BxaRnt8U.js → Toast-ZyuYB5f7.js} +6 -4
- package/dist/Toast-ZyuYB5f7.js.map +1 -0
- package/dist/Toast-nhJijyay.cjs +2 -0
- package/dist/Toast-nhJijyay.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +514 -590
- package/dist/components.esm.js.map +1 -1
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.esm.js +1 -1
- package/dist/src/components/badge/variants.d.ts +1 -1
- package/dist/src/components/checkbox/Checkbox.d.ts +2 -1
- package/dist/src/components/index.d.ts +0 -1
- package/dist/theme.css +2 -4
- package/package.json +1 -1
- package/dist/Toast-BxaRnt8U.js.map +0 -1
- package/dist/Toast-CtvQEmHb.cjs +0 -2
- package/dist/Toast-CtvQEmHb.cjs.map +0 -1
- package/dist/src/components/card/Card.d.ts +0 -29
- package/dist/src/components/card/index.d.ts +0 -1
- package/dist/src/components/card/variants.d.ts +0 -10
|
@@ -126,6 +126,8 @@ e(null);
|
|
|
126
126
|
e(null);
|
|
127
127
|
e(null);
|
|
128
128
|
e(null);
|
|
129
|
+
e(null);
|
|
130
|
+
e(null);
|
|
129
131
|
function G() {
|
|
130
132
|
const [l, r] = v(0);
|
|
131
133
|
return p(() => {
|
|
@@ -280,9 +282,9 @@ function le({
|
|
|
280
282
|
}) {
|
|
281
283
|
const h = q(), k = l || `modal-${h}`, C = l ? `${l}-title` : `modal-title-${h}`, { show: j, shouldRender: x } = Y(r);
|
|
282
284
|
if (ee(k, x), R(x, i), !x) return null;
|
|
283
|
-
const A = () => n ? $.isValidElement(n) ? /* @__PURE__ */ t("div", { className: "mb-4", children: n }) : /* @__PURE__ */ t("h2", { className: "mb-4 text-xl font-semibold", id: C, children: n }) : null, M = () => c.length === 0 ? null : /* @__PURE__ */ t("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: c.map((I,
|
|
284
|
-
const { label:
|
|
285
|
-
return /* @__PURE__ */ t(W, { ...D, "data-modal-action": "true", children:
|
|
285
|
+
const A = () => n ? $.isValidElement(n) ? /* @__PURE__ */ t("div", { className: "mb-4", children: n }) : /* @__PURE__ */ t("h2", { className: "mb-4 text-xl font-semibold", id: C, children: n }) : null, M = () => c.length === 0 ? null : /* @__PURE__ */ t("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: c.map((I, B) => {
|
|
286
|
+
const { label: O, ...D } = I;
|
|
287
|
+
return /* @__PURE__ */ t(W, { ...D, "data-modal-action": "true", children: O }, B);
|
|
286
288
|
}) });
|
|
287
289
|
return /* @__PURE__ */ t(S, { children: H(
|
|
288
290
|
/* @__PURE__ */ t(
|
|
@@ -495,4 +497,4 @@ export {
|
|
|
495
497
|
N as n,
|
|
496
498
|
de as u
|
|
497
499
|
};
|
|
498
|
-
//# sourceMappingURL=Toast-
|
|
500
|
+
//# sourceMappingURL=Toast-ZyuYB5f7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast-ZyuYB5f7.js","sources":["join-BmgR_f4v.js","X-CIoyLewf.js","Toast-BxaRnt8U.js","components.esm.js","../src/components/actionmodal/ActionModal.tsx","../src/components/dropdown-menu/DropdownContext.tsx","../src/components/tabs/TabsContext.tsx","../src/components/toast/Toast.tsx"],"sourcesContent":["function n(...t) {\n return t.filter((s) => typeof s == \"string\" && s).join(\" \").trim() || void 0;\n}\nexport {\n n as j\n};\n//# sourceMappingURL=join-BmgR_f4v.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nfunction t({\n size: C = 15,\n color: l = \"currentColor\",\n className: n = \"inline\",\n ...i\n}) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction o({\n size: C = 15,\n color: l = \"currentColor\",\n className: n = \"inline\",\n ...i\n}) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction d({\n size: C = 15,\n color: l = \"currentColor\",\n className: n = \"inline\",\n ...i\n}) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction h({ size: C = 15, color: l = \"currentColor\", className: n = \"inline\", ...i }) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nexport {\n t as C,\n o as E,\n d as I,\n h as X\n};\n//# sourceMappingURL=X-CIoyLewf.js.map\n","import { jsx as t, Fragment as S, jsxs as b } from \"react/jsx-runtime\";\nimport $, { createContext as e, useId as q, useState as v, useEffect as p, useRef as F, useCallback as z, useMemo as E, useContext as T } from \"react\";\nimport { createPortal as H } from \"react-dom\";\nimport { X as K, C as P, E as V, I as X } from \"./X-CIoyLewf.js\";\nimport { j as Z } from \"./join-BmgR_f4v.js\";\nfunction N(...l) {\n return l.filter((r) => typeof r == \"string\" && r).join(\" \").trim() || void 0;\n}\nfunction _({ size: l = 15, color: r = \"currentColor\", className: i = \"inline\", ...n }) {\n return /* @__PURE__ */ t(\n \"svg\",\n {\n ...n,\n width: l,\n height: l,\n className: i,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ t(\n \"path\",\n {\n d: \"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z\",\n fill: r,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction y(...l) {\n return l.filter((r) => typeof r == \"string\" && r).join(\" \").trim() || void 0;\n}\ne(void 0);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(void 0);\ne(void 0);\ne(null);\ne(void 0);\ne(void 0);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\ne(null);\nfunction G() {\n const [l, r] = v(0);\n return p(() => {\n const i = setInterval(() => {\n r((n) => (n + 1) % 3);\n }, 500);\n return () => clearInterval(i);\n }, []), /* @__PURE__ */ t(\"div\", { className: \"absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle\", children: [0, 1, 2].map((i) => /* @__PURE__ */ t(\n \"div\",\n {\n className: N(\n \"rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current\",\n l === i && \"transform -translate-y-1\"\n )\n },\n i\n )) });\n}\nconst J = {\n base: \"\",\n primary: \"bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80\",\n tertiary: \"text-primary hover:text-primary-foreground disabled:text-muted\",\n outline: \"border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted\",\n link: \"underline-offset-4 hover:underline disabled:underline disabled:text-muted\",\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground\"\n}, Q = {\n stripped: \"\",\n fitted: \"size-fit\",\n sm: \"px-2 py-1 text-sm\",\n md: \"px-4 py-2 text-base\",\n lg: \"px-6 py-3 text-lg\",\n icon: \"p-1 w-fit aspect-square\",\n full: \"p-2 w-full\"\n}, U = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"rounded-full\"\n}, w = {\n variant: \"primary\",\n size: \"md\",\n rounded: \"md\"\n};\nfunction W({\n variant: l = w.variant,\n size: r,\n rounded: i = w.rounded,\n loading: n,\n className: o,\n ...a\n}) {\n let u;\n l === \"link\" && !r ? u = \"fitted\" : u = r || w.size;\n const s = N(\n \"appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all\",\n J[l],\n Q[u],\n U[i],\n n && \"relative pointer-events-none\",\n o\n );\n if (a.href && !a.disabled)\n return /* @__PURE__ */ t(\n \"a\",\n {\n ...a,\n rel: a.rel ? a.rel : a.target === \"_blank\" ? \"noopener noreferrer\" : void 0,\n \"aria-label\": a[\"aria-label\"],\n \"aria-description\": a[\"aria-description\"],\n href: a.href,\n className: s,\n children: a.children\n }\n );\n const d = a;\n return /* @__PURE__ */ b(\n \"button\",\n {\n ...d,\n \"aria-label\": d[\"aria-label\"],\n \"aria-description\": d[\"aria-description\"],\n \"aria-disabled\": d.disabled || n,\n \"aria-busy\": n,\n type: d.type ?? \"button\",\n className: s,\n children: [\n n && /* @__PURE__ */ t(G, {}),\n /* @__PURE__ */ t(\"span\", { className: N(n && \"invisible\"), children: d.children })\n ]\n }\n );\n}\nfunction Y(l) {\n const [r, i] = v(!1), [n, o] = v(!1);\n return p(() => {\n l ? (o(!0), setTimeout(() => i(!0), 10)) : (i(!1), setTimeout(() => o(!1), 150));\n }, [l]), { show: r, shouldRender: n };\n}\nfunction R(l, r) {\n p(() => {\n const i = (n) => {\n n.key === \"Escape\" && l && r();\n };\n return document.addEventListener(\"keydown\", i), l && (document.body.style.overflow = \"hidden\"), () => {\n document.removeEventListener(\"keydown\", i), document.body.style.overflow = \"auto\";\n };\n }, [l, r]);\n}\nfunction ee(l, r) {\n const i = F(null), n = z(() => {\n const o = document.getElementById(l);\n if (!o) return;\n const a = o.querySelectorAll('[data-modal-action=\"true\"]');\n if (a.length > 0) {\n a[0].focus();\n return;\n }\n const u = o.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (u.length > 0) {\n const s = Array.from(u).filter((d) => !(d instanceof HTMLButtonElement && d.getAttribute(\"data-modal-close-button\") === \"true\"));\n if (s.length > 0) {\n s[0].focus();\n return;\n }\n u[0].focus();\n return;\n }\n o.focus();\n }, [l]);\n p(() => (r && (i.current = document.activeElement, n()), () => {\n document.body.style.overflow = \"auto\", i.current instanceof HTMLElement && i.current.focus();\n }), [r, n]);\n}\nfunction le({\n id: l,\n isOpen: r,\n onClose: i,\n title: n,\n children: o,\n contentOnly: a = !1,\n className: u,\n overlayClassName: s,\n hideCloseButton: d = !1,\n actions: c = [],\n disableCloseOnOverlayClick: m = !1,\n ariaLabelledBy: f,\n ariaDescribedBy: g\n}) {\n const h = q(), k = l || `modal-${h}`, C = l ? `${l}-title` : `modal-title-${h}`, { show: j, shouldRender: x } = Y(r);\n if (ee(k, x), R(x, i), !x) return null;\n const A = () => n ? $.isValidElement(n) ? /* @__PURE__ */ t(\"div\", { className: \"mb-4\", children: n }) : /* @__PURE__ */ t(\"h2\", { className: \"mb-4 text-xl font-semibold\", id: C, children: n }) : null, M = () => c.length === 0 ? null : /* @__PURE__ */ t(\"div\", { className: \"mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3\", children: c.map((I, O) => {\n const { label: B, ...D } = I;\n return /* @__PURE__ */ t(W, { ...D, \"data-modal-action\": \"true\", children: B }, O);\n }) });\n return /* @__PURE__ */ t(S, { children: H(\n /* @__PURE__ */ t(\n \"div\",\n {\n \"aria-labelledby\": f ?? n ? C : void 0,\n \"aria-describedby\": g,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-y-auto\",\n children: /* @__PURE__ */ b(\"div\", { className: \"flex min-h-screen items-center justify-center p-4\", children: [\n /* @__PURE__ */ t(\n \"div\",\n {\n className: y(\"fixed inset-0 bg-black/20 transition-all\", s),\n onClick: () => {\n m || i();\n }\n }\n ),\n a && /* @__PURE__ */ t(\"div\", { className: y(\"relative w-fit\", u), children: o }),\n !a && /* @__PURE__ */ b(\n \"div\",\n {\n id: k,\n tabIndex: -1,\n className: y(\n \"relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in duration-75\",\n j ? \"opacity-100 scale-100\" : \"opacity-0 scale-90\",\n u\n ),\n children: [\n !d && /* @__PURE__ */ t(\n \"button\",\n {\n type: \"button\",\n onClick: i,\n \"data-modal-close-button\": \"true\",\n className: \"rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ t(_, { size: 18 })\n }\n ),\n A(),\n o,\n M()\n ]\n }\n )\n ] })\n }\n ),\n document.body\n ) });\n}\nfunction se({\n type: l,\n message: r,\n cancelText: i,\n confirmText: n,\n onConfirm: o,\n onClose: a,\n destructive: u = !1,\n title: s,\n ...d\n}) {\n const c = E(() => l === \"confirm\" ? {\n confirm: n || \"Confirm\",\n cancel: i || \"Cancel\",\n defaultTitle: s || \"Confirm Action\"\n } : {\n confirm: n || \"OK\",\n cancel: null,\n defaultTitle: s || \"Alert\"\n }, [l, n, s, i]), m = E(\n () => [\n ...c.cancel ? [\n {\n label: c.cancel,\n variant: \"secondary\",\n onClick: a\n }\n ] : [],\n {\n label: c.confirm,\n variant: u ? \"destructive\" : \"primary\",\n onClick: () => {\n o == null || o(), a();\n }\n }\n ],\n [c, u, o, a]\n );\n return /* @__PURE__ */ t(\n le,\n {\n ...d,\n title: s || c.defaultTitle,\n onClose: a,\n actions: m,\n disableCloseOnOverlayClick: l === \"confirm\",\n hideCloseButton: l === \"confirm\",\n children: typeof r == \"string\" ? /* @__PURE__ */ t(\"p\", { className: \"text-sm\", children: r }) : r\n }\n );\n}\nconst ne = e(null), de = () => {\n const l = T(ne);\n if (!l)\n throw new Error(\"DropdownMenu components must be used within a DropdownMenu component\");\n return l;\n}, te = e(null), ce = () => {\n const l = T(te);\n if (!l)\n throw new Error(\"Tabs components must be used within a Tabs component\");\n return l;\n}, L = {\n info: {\n className: \"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100\",\n icon: /* @__PURE__ */ t(X, { size: 20 })\n },\n warning: {\n className: \"bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100\",\n icon: /* @__PURE__ */ t(V, { size: 20 })\n },\n error: {\n className: \"bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100\",\n icon: /* @__PURE__ */ t(P, { size: 20 })\n }\n};\nfunction me({\n id: l,\n title: r,\n description: i,\n type: n = \"info\",\n action: o,\n duration: a = 5e3,\n onRemove: u,\n customTypes: s,\n customComponent: d\n}) {\n const [c, m] = v(!1), f = z(() => {\n m(!0), setTimeout(() => {\n u == null || u(l);\n }, 150);\n }, [l, u]);\n if (p(() => {\n if (a > 0) {\n const h = setTimeout(() => {\n f();\n }, a);\n return () => clearTimeout(h);\n }\n }, [a, l, u, f]), d)\n return /* @__PURE__ */ t(\n d,\n {\n id: l,\n title: r,\n description: i,\n type: n,\n action: o,\n duration: a,\n onRemove: u\n }\n );\n const g = (s == null ? void 0 : s[n]) || L[n] || L.info;\n return /* @__PURE__ */ b(\n \"div\",\n {\n role: n === \"error\" ? \"alert\" : \"status\",\n \"aria-live\": n === \"error\" ? void 0 : \"polite\",\n className: Z(\n \"relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out\",\n o && \"pb-3\",\n g.className,\n c ? \"opacity-0 translate-x-full\" : \"opacity-100 translate-x-0\"\n ),\n children: [\n /* @__PURE__ */ t(\"div\", { className: \"flex-shrink-0 mr-3\", children: g.icon }),\n /* @__PURE__ */ b(\"div\", { className: \"flex-grow min-w-0\", children: [\n /* @__PURE__ */ t(\"div\", { className: \"font-medium text-sm leading-5\", children: r }),\n i && /* @__PURE__ */ t(\"div\", { className: \"mt-1 text-sm opacity-90 leading-5\", children: i }),\n o && /* @__PURE__ */ t(\"div\", { className: \"mt-1.5\", children: /* @__PURE__ */ t(\n \"button\",\n {\n onClick: o.onClick,\n className: \"text-sm font-medium underline hover:no-underline focus:outline-none focus:ring-1 focus:ring-current rounded px-1 py-0.5 hover:cursor-pointer\",\n children: o.label\n }\n ) })\n ] }),\n /* @__PURE__ */ t(\n \"button\",\n {\n onClick: f,\n className: \"flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0\",\n children: /* @__PURE__ */ t(K, { size: 16 })\n }\n )\n ]\n }\n );\n}\nexport {\n se as A,\n ne as D,\n me as T,\n te as a,\n ce as b,\n N as n,\n de as u\n};\n//# sourceMappingURL=Toast-BxaRnt8U.js.map\n","import { jsxs as C, jsx as l, Fragment as Q } from \"react/jsx-runtime\";\nimport F, { useId as P, useState as $, createElement as Ie, useEffect as I, useRef as M, useCallback as S, useMemo as _, isValidElement as Be, cloneElement as Pe } from \"react\";\nimport { j as N } from \"./join-BmgR_f4v.js\";\nimport { f as Ae, j as Ke, c as De, g as Te, h as ge, b as xe, D as We, W as Fe, k as He, i as _e, C as qe, a as Ze, l as Ge, E as Ue, Q as Ye, d as Xe, e as Je } from \"./Window-uX5BuBwi.js\";\nimport { u as ye, D as Qe, n as j, a as Oe, b as we } from \"./Toast-BxaRnt8U.js\";\nimport { A as wn, T as Nn } from \"./Toast-BxaRnt8U.js\";\nimport { X as oe, E as Le, C as et, I as tt } from \"./X-CIoyLewf.js\";\nimport { createPortal as ae } from \"react-dom\";\nimport { downloadFile as rt, mergeRefs as nt } from \"./utils.esm.js\";\nfunction pe({\n id: n,\n title: a,\n content: t,\n children: r,\n className: e = \"\",\n disabled: o = !1,\n isOpen: s = !1,\n onToggle: i,\n triggerClassName: c = \"\",\n bodyClassName: f = \"\"\n}) {\n const m = P(), d = n || `accordion-item-${m}`, p = `${d}-header`, u = `${d}-panel`, v = () => {\n !o && i && i();\n }, b = (h) => {\n (h.key === \"Enter\" || h.key === \" \") && (h.preventDefault(), v());\n };\n return /* @__PURE__ */ C(\"div\", { className: N(\"border-b border-gray-200\", o && \"opacity-60 cursor-not-allowed\", e), children: [\n /* @__PURE__ */ C(\n \"button\",\n {\n id: p,\n type: \"button\",\n className: N(\n \"w-full text-left py-3 px-4 flex justify-between items-center focus:outline focus:outline-secondary\",\n o ? \"cursor-not-allowed\" : \"hover:bg-gray-50/10 cursor-pointer\",\n c\n ),\n \"aria-expanded\": s,\n \"aria-controls\": u,\n disabled: o,\n onClick: v,\n onKeyDown: b,\n children: [\n /* @__PURE__ */ l(\"span\", { children: a }),\n /* @__PURE__ */ l(\n \"span\",\n {\n className: N(\n \"transform transition-transform duration-300 ease-linear\",\n s ? \"rotate-180\" : \"rotate-0\"\n ),\n \"aria-hidden\": \"true\",\n children: /* @__PURE__ */ l(Ae, { size: 18 })\n }\n )\n ]\n }\n ),\n /* @__PURE__ */ l(\n \"div\",\n {\n id: u,\n role: \"region\",\n \"aria-labelledby\": p,\n className: N(\n \"transition-all duration-300 ease-linear px-4\",\n s ? \"max-h-96 opacity-100 overflow-auto py-3\" : \"max-h-0 opacity-0 overflow-hidden\",\n f\n ),\n children: s && (r || t)\n }\n )\n ] });\n}\nfunction Kr({\n id: n,\n items: a = [],\n children: t,\n className: r = \"\",\n itemClassName: e = \"\",\n allowMultiple: o = !1,\n defaultOpenItems: s = [],\n triggersClassName: i = \"\",\n bodiesClassName: c = \"\"\n}) {\n const f = P(), m = n || `accordion-group-${f}`, [d, p] = $(new Set(s)), u = (h) => {\n p((y) => {\n const g = new Set(y);\n return g.has(h) ? g.delete(h) : (o || g.clear(), g.add(h)), g;\n });\n }, v = (h) => `${f}-item-${h}`, b = (h) => d.has(h);\n return /* @__PURE__ */ C(\"div\", { id: m, className: r, children: [\n a.length > 0 && a.map((h, y) => {\n const g = h.id || v(y);\n return /* @__PURE__ */ l(\n pe,\n {\n id: g,\n title: h.title,\n content: h.content,\n disabled: h.disabled,\n isOpen: b(g),\n onToggle: () => u(g),\n className: e,\n triggerClassName: i,\n bodyClassName: c\n },\n g\n );\n }),\n a.length === 0 && t && F.Children.map(t, (h, y) => {\n if (F.isValidElement(h) && h.type === pe) {\n const g = h.props.id || v(y);\n return /* @__PURE__ */ Ie(\n pe,\n {\n ...h.props,\n key: g,\n id: g,\n className: N(e, h.props.className),\n isOpen: b(g),\n onToggle: () => u(g),\n triggerClassName: N(i, h.props.triggerClassName),\n bodyClassName: N(c, h.props.bodyClassName)\n }\n );\n }\n return null;\n })\n ] });\n}\nconst ot = {\n decorative: { \"aria-hidden\": !0 },\n status: { role: \"status\" },\n alert: { role: \"alert\" }\n}, at = {\n base: \"\",\n primary: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n accent: \"bg-accent text-accent-foreground\",\n destructive: \"bg-destructive text-destructive-foreground\",\n success: \"bg-success text-success-foreground\",\n muted: \"bg-muted text-muted-foreground\"\n}, st = {\n base: \"\",\n primary: \"border border-primary bg-transparent text-primary\",\n secondary: \"border border-secondary bg-transparent text-secondary\",\n accent: \"border border-accent bg-transparent text-accent\",\n destructive: \"border border-destructive bg-transparent text-destructive\",\n success: \"border border-success bg-transparent text-success\",\n muted: \"border border-muted-foreground bg-transparent text-muted-foreground\"\n}, he = {\n xs: {\n text: \"text-xs\",\n aspectSquare: \"p-1\",\n aspectVideo: \"px-2 py-0.5\"\n },\n sm: {\n text: \"text-sm\",\n aspectSquare: \"p-1.5\",\n aspectVideo: \"px-2.5 py-1\"\n },\n md: {\n text: \"text-base\",\n aspectSquare: \"p-2\",\n aspectVideo: \"px-3 py-1.5\"\n }\n};\nfunction Wr({\n id: n,\n ref: a,\n variant: t = \"muted\",\n outline: r = !1,\n children: e,\n className: o,\n aspect: s = \"video\",\n use: i = \"decorative\",\n size: c = \"xs\",\n ...f\n}) {\n return /* @__PURE__ */ l(\n \"span\",\n {\n id: n,\n ref: a,\n className: N(\n \"font-medium rounded-full inline-flex select-none\",\n he[c].text,\n s === \"square\" && he[c].aspectSquare,\n s === \"video\" && he[c].aspectVideo,\n r ? st[t] : at[t],\n o\n ),\n \"data-variant\": t,\n \"data-outline\": r,\n \"data-aspect\": s,\n \"data-use\": i,\n \"data-size\": c,\n ...ot[i],\n ...f,\n children: e\n }\n );\n}\nfunction it() {\n const [n, a] = $(0);\n return I(() => {\n const t = setInterval(() => {\n a((r) => (r + 1) % 3);\n }, 500);\n return () => clearInterval(t);\n }, []), /* @__PURE__ */ l(\"div\", { className: \"absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle\", children: [0, 1, 2].map((t) => /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\n \"rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current\",\n n === t && \"transform -translate-y-1\"\n )\n },\n t\n )) });\n}\nconst lt = {\n base: \"\",\n primary: \"bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80\",\n tertiary: \"text-primary hover:text-primary-foreground disabled:text-muted\",\n outline: \"border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted\",\n link: \"underline-offset-4 hover:underline disabled:underline disabled:text-muted\",\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground\"\n}, ct = {\n stripped: \"\",\n fitted: \"size-fit\",\n sm: \"px-2 py-1 text-sm\",\n md: \"px-4 py-2 text-base\",\n lg: \"px-6 py-3 text-lg\",\n icon: \"p-1 w-fit aspect-square\",\n full: \"p-2 w-full\"\n}, dt = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"rounded-full\"\n}, be = {\n variant: \"primary\",\n size: \"md\",\n rounded: \"md\"\n};\nfunction ut({\n variant: n = be.variant,\n size: a,\n rounded: t = be.rounded,\n loading: r,\n className: e,\n ...o\n}) {\n let s;\n n === \"link\" && !a ? s = \"fitted\" : s = a || be.size;\n const c = N(\n \"appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all\",\n lt[n],\n ct[s],\n dt[t],\n r && \"relative pointer-events-none\",\n e\n );\n if (o.href && !o.disabled)\n return /* @__PURE__ */ l(\n \"a\",\n {\n ...o,\n rel: o.rel ? o.rel : o.target === \"_blank\" ? \"noopener noreferrer\" : void 0,\n \"aria-label\": o[\"aria-label\"],\n \"aria-description\": o[\"aria-description\"],\n href: o.href,\n className: c,\n children: o.children\n }\n );\n const f = o;\n return /* @__PURE__ */ C(\n \"button\",\n {\n ...f,\n \"aria-label\": f[\"aria-label\"],\n \"aria-description\": f[\"aria-description\"],\n \"aria-disabled\": f.disabled || r,\n \"aria-busy\": r,\n type: f.type ?? \"button\",\n className: c,\n children: [\n r && /* @__PURE__ */ l(it, {}),\n /* @__PURE__ */ l(\"span\", { className: N(r && \"invisible\"), children: f.children })\n ]\n }\n );\n}\nconst ft = {\n info: {\n border: \"border-blue-600\",\n interior: \"bg-blue-800/20\",\n core: \"text-blue-400\",\n description: \"text-blue-200\"\n },\n destructive: {\n border: \"border-destructive\",\n interior: \"bg-destructive/10\",\n core: \"text-destructive\",\n description: \"text-destructive\"\n },\n success: {\n border: \"border-success\",\n interior: \"bg-success/10\",\n core: \"text-success\",\n description: \"text-success\"\n },\n warning: {\n border: \"border-yellow-700\",\n interior: \"bg-yellow-800/20\",\n core: \"text-yellow-400\",\n description: \"text-yellow-200\"\n },\n base: {\n border: \"\",\n interior: \"\",\n core: \"\",\n description: \"opacity-90\"\n }\n}, mt = {\n info: /* @__PURE__ */ l(tt, { size: 22 }),\n destructive: /* @__PURE__ */ l(et, { size: 22 }),\n success: /* @__PURE__ */ l(De, { size: 22 }),\n warning: /* @__PURE__ */ l(Le, { size: 20 }),\n base: /* @__PURE__ */ l(Ke, { size: 22 })\n};\nfunction Fr({\n id: n,\n ref: a,\n variant: t = \"base\",\n icon: r,\n title: e,\n description: o,\n className: s,\n dismissible: i = !1,\n onDismiss: c\n}) {\n const f = P(), m = n || `callout-${f}`, [d, p] = $(!1), u = ft[t], v = mt[t], b = () => {\n p(!0), c && c();\n };\n return d ? null : /* @__PURE__ */ C(\n \"div\",\n {\n id: m,\n ref: a,\n className: N(\"relative rounded-lg p-2 sm:p-4 border\", u.border, u.interior, s),\n \"data-variant\": t,\n role: \"note\",\n \"aria-describedby\": o ? `${m}-description` : void 0,\n \"aria-labelledby\": e ? `${m}-title` : void 0,\n children: [\n /* @__PURE__ */ C(\"div\", { className: \"flex items-start gap-x-2\", children: [\n r && /* @__PURE__ */ l(\"span\", { className: u.core, children: r === \"default\" ? v : r }),\n (e || o) && /* @__PURE__ */ C(\"div\", { className: \"flex-1\", children: [\n e && /* @__PURE__ */ l(\"div\", { id: `${m}-title`, className: N(\"font-medium\", u.core), children: e }),\n o && /* @__PURE__ */ l(\"div\", { id: `${m}-description`, className: N(\"mt-0.5 font-light\", u.description), children: o })\n ] })\n ] }),\n i && /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: b,\n \"data-callout-close-button\": \"true\",\n className: N(\n u.core,\n \"rounded-md p-0.5 top-2.5 right-2.5 absolute focus:outline-none hover:ring focus:ring-2 focus:ring-current leading-0\"\n ),\n \"aria-label\": \"Close callout\",\n children: /* @__PURE__ */ l(oe, { size: 18 })\n }\n )\n ]\n }\n );\n}\nconst pt = {\n sm: {\n container: \"text-sm\",\n header: \"text-base font-medium\",\n content: \"text-sm leading-relaxed\",\n footer: \"text-xs\",\n paddingMulti: 1 / 3\n },\n md: {\n container: \"text-base\",\n header: \"text-lg font-semibold\",\n content: \"text-base leading-relaxed\",\n footer: \"text-sm\",\n paddingMulti: 1 / 2\n },\n lg: {\n container: \"text-lg\",\n header: \"text-xl font-bold\",\n content: \"text-lg leading-relaxed\",\n footer: \"text-base\",\n paddingMulti: 1\n }\n};\nfunction Hr({\n id: n,\n className: a,\n ref: t,\n size: r = \"md\",\n padding: e = 16,\n header: o,\n footer: s,\n children: i,\n imageSrc: c,\n imageAlt: f,\n imageComponent: m,\n imageToEdge: d = !0,\n ...p\n}) {\n const u = pt[r], v = c || m;\n return /* @__PURE__ */ C(\n \"div\",\n {\n id: n,\n ref: t,\n \"data-testid\": \"card\",\n \"data-size\": r,\n \"data-padding\": e,\n className: N(\n // Base styles\n \"border border-border rounded-lg shadow-sm overflow-hidden\",\n // Responsive design\n \"w-full max-w-full\",\n // Size-specific styles\n u.container,\n a\n ),\n ...p,\n children: [\n v && /* @__PURE__ */ l(\n \"div\",\n {\n style: d ? void 0 : { padding: e, paddingBottom: 0 },\n className: \"w-full overflow-hidden\",\n children: m || /* @__PURE__ */ l(\"img\", { src: c, alt: f || \"\", className: \"w-full h-auto object-cover rounded-xs\", loading: \"lazy\" })\n }\n ),\n /* @__PURE__ */ C(\"div\", { style: { padding: e, rowGap: e * u.paddingMulti }, className: \"flex flex-col\", children: [\n o && /* @__PURE__ */ l(\"div\", { className: u.header, children: o }),\n i && /* @__PURE__ */ l(\"div\", { className: u.content, children: i }),\n s && /* @__PURE__ */ l(\"div\", { className: u.footer, children: s })\n ] })\n ]\n }\n );\n}\nfunction ht({\n totalItems: n,\n itemsToShow: a,\n infinite: t,\n autoScroll: r,\n scrollInterval: e,\n pauseScrollOnHover: o,\n currentIndex: s,\n onIndexChange: i\n}) {\n const [c, f] = $(s || 0), [m, d] = $(!1), p = M(null), u = Math.ceil(n / a), v = t || c > 0, b = t || c < u - 1, h = S(\n (w) => {\n const x = Math.max(0, Math.min(w, u - 1));\n f(x), i == null || i(x);\n },\n [u, i]\n ), y = S(() => {\n if (v) {\n const w = c === 0 && t ? u - 1 : c - 1;\n h(w);\n }\n }, [c, v, t, u, h]), g = S(() => {\n if (b) {\n const w = c === u - 1 && t ? 0 : c + 1;\n h(w);\n }\n }, [c, b, t, u, h]);\n return I(() => {\n s !== void 0 && s !== c && f(s);\n }, [s, c]), I(() => {\n if (!r) return;\n const w = () => {\n p.current = setInterval(() => {\n o && m || g();\n }, e);\n }, x = () => {\n p.current && (clearInterval(p.current), p.current = null);\n };\n return !m || !o ? w() : x(), x;\n }, [r, e, o, m, g]), I(() => {\n f(0);\n }, [a]), {\n currentSlide: c,\n canGoPrev: v,\n canGoNext: b,\n goToPrev: y,\n goToNext: g,\n goToSlide: h,\n isHovered: m,\n setIsHovered: d\n };\n}\nconst te = {\n xs: 0,\n // Smaller than `sm`\n sm: 640,\n // Tailwind's `sm` breakpoint: `@media (min-width: 640px)`\n md: 768,\n // Tailwind's `md` breakpoint: `@media (min-width: 768px)`\n lg: 1024,\n // Tailwind's `lg` breakpoint: `@media (min-width: 1024px)`\n xl: 1280,\n // Tailwind's `xl` breakpoint: `@media (min-width: 1280px)`\n \"2xl\": 1536\n // Tailwind's `2xl` breakpoint: `@media (min-width: 1536px)`\n};\nfunction bt() {\n const [n, a] = $(), [t, r] = $(0), e = (o) => te[o];\n return I(() => {\n const o = (i) => i >= te[\"2xl\"] ? \"2xl\" : i >= te.xl ? \"xl\" : i >= te.lg ? \"lg\" : i >= te.md ? \"md\" : i >= te.sm ? \"sm\" : \"xs\";\n a(o(window.innerWidth)), r(window.innerWidth);\n const s = () => {\n a(o(window.innerWidth)), r(window.innerWidth);\n };\n return window.addEventListener(\"resize\", s), () => {\n window.removeEventListener(\"resize\", s);\n };\n }, []), { screenSize: n, screenWidth: t, getBreakpoint: e };\n}\nconst se = {\n sm: {\n button: \"h-6 w-6 text-xs\",\n icon: \"size-3\"\n },\n md: {\n button: \"h-8 w-8 text-sm\",\n icon: \"size-4\"\n },\n lg: {\n button: \"h-10 w-10 text-lg\",\n icon: \"size-5\"\n }\n}, Ne = {\n default: \"bg-accent text-accent-foreground hover:bg-accent-foreground hover:text-accent\",\n outline: \"border border-border bg-background hover:bg-accent hover:text-accent-foreground hover:border-accent\",\n ghost: \"hover:text-accent\"\n}, ie = {\n aligned: {\n prev: \"absolute top-1/2 -translate-x-1/2 -translate-y-1/2 z-10\",\n next: \"absolute right-0 top-1/2 translate-x-1/2 -translate-y-1/2 z-10\"\n },\n exterior: {\n prev: \"absolute -left-10 top-1/2 -translate-y-1/2 z-10\",\n next: \"absolute -right-10 top-1/2 -translate-y-1/2 z-10\"\n },\n interior: {\n prev: \"absolute left-2 top-1/2 -translate-y-1/2 z-10\",\n next: \"absolute right-2 top-1/2 -translate-y-1/2 z-10\"\n }\n};\nfunction _r({\n children: n,\n id: a,\n ref: t,\n className: r,\n autoScroll: e = !1,\n scrollInterval: o = 3e3,\n pauseScrollOnHover: s = !0,\n currentIndex: i,\n onIndexChange: c,\n hidePrevNext: f = !1,\n hideDots: m = !1,\n itemsToShow: d = 1,\n buttonSize: p = \"md\",\n buttonVariant: u = \"default\",\n buttonPosition: v = \"exterior\",\n infinite: b = !0,\n prevButton: h,\n nextButton: y,\n itemsClassName: g,\n containerClassName: w,\n dotsClassName: x,\n gap: E = 8\n}) {\n var K, re;\n const A = M(null), k = F.Children.toArray(n).filter(F.isValidElement), z = k.length, { screenSize: R } = bt(), V = _(() => {\n if (typeof d == \"number\")\n return d;\n if (typeof d == \"object\" && d && R) {\n const J = [\"2xl\", \"xl\", \"lg\", \"md\", \"sm\", \"xs\"], H = J.indexOf(R);\n for (let ee = H; ee < J.length; ee++) {\n const ne = J[ee];\n if (d[ne] !== void 0)\n return d[ne];\n }\n }\n return 1;\n }, [d, R]), { currentSlide: q, canGoPrev: W, canGoNext: L, goToPrev: D, goToNext: B, goToSlide: Z, setIsHovered: U } = ht({\n totalItems: z,\n itemsToShow: V,\n infinite: b,\n autoScroll: e,\n scrollInterval: o,\n pauseScrollOnHover: s,\n currentIndex: i,\n onIndexChange: c\n }), X = S(\n (J) => {\n if (V === 1)\n return { leftWidth: 0, rightWidth: 0, widthReduction: 0 };\n const H = E * (V - 1) / V;\n return J % V === 0 ? { leftWidth: 0, rightWidth: E / 2, widthReduction: H } : J % V === V - 1 ? { leftWidth: E / 2, rightWidth: 0, widthReduction: H } : { leftWidth: E / 2, rightWidth: E / 2, widthReduction: H };\n },\n [V, E]\n ), G = () => {\n D();\n }, O = () => {\n B();\n }, ue = () => {\n s && U(!0);\n }, fe = () => {\n s && U(!1);\n }, me = -(q * (100 / z) * V), T = N(\n \"inline-flex items-center justify-center rounded-md font-medium transition-all focus-visible:outline-none focus-visible:ring focus-visible:ring-ring disabled:pointer-events-none\",\n v === \"aligned\" ? \"disabled:opacity-90\" : \"disabled:opacity-50\"\n );\n return /* @__PURE__ */ C(\"div\", { className: N(\"relative\", r), \"data-carousel-wrapper\": \"true\", children: [\n !f && /* @__PURE__ */ l(Q, { children: h ? F.cloneElement(\n h,\n {\n onClick: G,\n disabled: !W,\n className: N(\n ((K = h.props) == null ? void 0 : K.className) || \"\",\n ie[v].prev\n ),\n role: \"button\",\n \"aria-disabled\": !W,\n \"aria-label\": \"Previous slide\",\n \"data-carousel-prev\": \"true\"\n }\n ) : /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: G,\n disabled: !W,\n className: N(\n T,\n se[p].button,\n Ne[u],\n ie[v].prev\n ),\n \"aria-disabled\": !W,\n \"aria-label\": \"Previous slide\",\n \"data-carousel-prev\": \"true\",\n children: /* @__PURE__ */ l(Te, { className: se[p].icon })\n }\n ) }),\n /* @__PURE__ */ C(\n \"div\",\n {\n id: a,\n ref: t,\n className: N(\"relative overflow-hidden\", w),\n onMouseEnter: ue,\n onMouseLeave: fe,\n \"data-carousel\": \"true\",\n \"data-current-index\": q,\n \"data-items-to-show\": V,\n \"data-auto-scroll\": e,\n \"data-button-position\": v,\n children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n ref: A,\n className: \"flex transition-transform duration-300 ease-in-out\",\n style: {\n transform: `translateX(${me}%)`,\n width: `${z / V * 100}%`\n },\n children: k.map((J, H) => {\n const { leftWidth: ee, rightWidth: ne, widthReduction: je } = X(H);\n return /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\"flex-shrink-0\", g),\n style: {\n width: `calc(${100 / z}% - ${je}px)`,\n marginRight: ne > 0 ? `${ne}px` : void 0,\n marginLeft: ee > 0 ? `${ee}px` : void 0\n },\n \"data-slide-index\": H,\n children: J\n },\n H\n );\n })\n }\n ),\n !m && /* @__PURE__ */ l(\"div\", { className: \"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2\", children: Array.from({ length: Math.ceil(z / V) }).map((J, H) => /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: () => Z(H),\n className: N(\n \"w-2 h-2 rounded-full transition-colors duration-200\",\n H === q ? \"bg-accent\" : \"bg-muted hover:bg-muted-foreground/50\",\n x\n ),\n \"aria-label\": `Go to slide ${H + 1}`,\n \"data-carousel-dot\": H\n },\n H\n )) })\n ]\n }\n ),\n !f && /* @__PURE__ */ l(Q, { children: y ? F.cloneElement(\n y,\n {\n onClick: O,\n disabled: !L,\n className: N(\n ((re = y.props) == null ? void 0 : re.className) || \"\",\n ie[v].next\n ),\n role: \"button\",\n \"aria-disabled\": !L,\n \"aria-label\": \"Next slide\",\n \"data-carousel-next\": \"true\"\n }\n ) : /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: O,\n disabled: !L,\n className: N(\n T,\n se[p].button,\n Ne[u],\n ie[v].next\n ),\n \"aria-disabled\": !L,\n \"aria-label\": \"Next slide\",\n \"data-carousel-next\": \"true\",\n children: /* @__PURE__ */ l(ge, { className: se[p].icon })\n }\n ) })\n ] });\n}\nfunction vt(n) {\n const [a, t] = $(\"\"), r = S((e) => {\n let o = e, s = \"\";\n for (; o && !s; ) {\n const i = window.getComputedStyle(o).backgroundColor;\n i && i !== \"transparent\" && i !== \"rgba(0, 0, 0, 0)\" && (s = i), o = o.parentElement;\n }\n return s || \"transparent\";\n }, []);\n return I(() => {\n const e = document.getElementById(n);\n if (e) {\n const o = r(e.parentElement);\n t(o);\n }\n }, [n, r]), a;\n}\nfunction qr({\n ref: n,\n id: a,\n size: t = 20,\n color: r,\n filled: e = !1,\n rounded: o = !0,\n checked: s = !1,\n onCheckedChange: i,\n disabled: c,\n className: f = \"\",\n ...m\n}) {\n const d = P(), p = _(() => a || `checkbox-${d}`, [a, d]), u = vt(p), [v, b] = $(s);\n I(() => {\n b(s);\n }, [s]);\n const h = () => {\n c || (b(!v), i == null || i(!v));\n }, y = (w) => {\n w.key === \" \" && (w.preventDefault(), h());\n }, g = N(\n \"flex items-center justify-center border outline outline-transparent focus:outline-current focus:outline-offset-2\",\n o && \"rounded\",\n c && \"opacity-40 cursor-not-allowed\",\n !c && \"cursor-pointer\",\n f\n );\n return /* @__PURE__ */ l(\n \"button\",\n {\n id: p,\n type: \"button\",\n ref: n,\n tabIndex: 0,\n role: \"checkbox\",\n onClick: h,\n \"aria-checked\": v,\n \"aria-disabled\": c,\n onKeyDownCapture: y,\n style: {\n width: t,\n height: t,\n color: r,\n backgroundColor: v && e ? \"currentcolor\" : \"transparent\"\n },\n className: g,\n ...m,\n children: v && /* @__PURE__ */ l(xe, { size: t, color: e ? u : void 0 })\n }\n );\n}\nfunction Zr({\n children: n,\n className: a,\n linkTo: t,\n linkProps: r,\n onButtonClick: e,\n buttonProps: o,\n ...s\n}) {\n return t && e && console.warn('Clickable: Both \"linkTo\" and \"onButtonClick\" props are provided. Only \"linkTo\" will be used.'), /* @__PURE__ */ C(\"div\", { className: N(\"relative w-fit\", a), ...s, children: [\n n,\n t && /* @__PURE__ */ l(\n \"a\",\n {\n ...r,\n rel: (r == null ? void 0 : r.rel) || \"noreferrer\",\n href: t,\n className: N(\"absolute inset-0\", r == null ? void 0 : r.className)\n }\n ),\n !t && e && /* @__PURE__ */ l(\n \"button\",\n {\n ...o,\n type: \"button\",\n onClick: e,\n className: N(\"absolute inset-0 cursor-pointer\", o == null ? void 0 : o.className)\n }\n )\n ] });\n}\nfunction gt(n) {\n const [a, t] = $(null);\n return I(() => {\n var i;\n const r = (i = document.getElementById(n)) == null ? void 0 : i.parentElement;\n if (!r) return;\n const e = () => {\n const c = window.getComputedStyle(r), f = parseFloat(c.fontSize), m = c.lineHeight === \"normal\" ? f * 1.2 : parseFloat(c.lineHeight), d = f - 2, p = d / f, u = m * p;\n t({\n fontSize: f,\n lineHeight: m,\n smallerFontSize: d,\n smallerLineHeight: u\n });\n };\n e();\n const o = new ResizeObserver(e);\n o.observe(r);\n const s = new MutationObserver(e);\n return s.observe(r, {\n attributes: !0,\n attributeFilter: [\"style\", \"class\"],\n subtree: !1\n }), () => {\n o.disconnect(), s.disconnect();\n };\n }, [n]), a;\n}\nconst xt = {\n base: \"\",\n modest: \"opacity-90 bg-muted/10\",\n accent: \"text-accent bg-muted/10\",\n current: \"text-current bg-current/10\"\n};\nfunction Gr({ id: n, ref: a, content: t, variant: r = \"accent\", className: e, style: o, ...s }) {\n const i = P(), c = n || `code-${i}`, f = gt(c);\n return /* @__PURE__ */ l(\n \"code\",\n {\n id: c,\n ref: a,\n className: N(\"px-2 py-1 rounded\", xt[r], e),\n \"data-variant\": r,\n style: {\n fontSize: f ? `${f.smallerFontSize}px` : void 0,\n lineHeight: f ? `${f.smallerLineHeight}px` : void 0,\n ...o\n },\n ...s,\n children: t\n }\n );\n}\nconst yt = {\n keyword: \"text-rose-400\",\n runner: \"text-amber-400\",\n comment: \"text-gray-500/80\",\n command: \"text-gray-100\",\n variable: \"text-blue-400\",\n string: \"text-white/70\",\n option: \"text-purple-400\",\n plain: \"text-gray-200\",\n operator: \"text-pink-500\",\n substitution: \"text-green-300\"\n}, wt = {\n selector: \"text-blue-400 font-medium\",\n property: \"text-purple-400\",\n value: \"text-green-400\",\n punctuation: \"text-gray-400\",\n atRule: \"text-pink-400 font-semibold\",\n comment: \"text-gray-500 italic\",\n string: \"text-green-400\",\n number: \"text-green-400\",\n plain: \"text-gray-100\",\n function: \"text-cyan-400\"\n}, Nt = {\n key: \"text-purple-400 font-semibold\",\n string: \"text-green-400\",\n number: \"text-orange-400 font-medium\",\n boolean: \"text-cyan-400 font-medium\",\n punctuation: \"text-gray-400\",\n plain: \"text-gray-100\"\n}, Et = {\n keyword: \"text-purple-400 font-semibold\",\n type: \"text-cyan-400 font-medium\",\n string: \"text-green-400\",\n \"jsx-bracket\": \"text-gray-400\",\n \"jsx-tag\": \"text-blue-400 font-medium\",\n \"jsx-attribute\": \"text-amber-400\",\n \"jsx-brace\": \"text-yellow-400\",\n jsx: \"text-blue-400 font-medium\",\n // fallback for old jsx type\n property: \"text-amber-400\",\n number: \"text-orange-400 font-medium\",\n comment: \"text-gray-500 italic\",\n function: \"text-rose-400 font-semibold\",\n hook: \"text-rose-400 font-semibold\",\n operator: \"text-gray-300\",\n plain: \"text-gray-100\"\n}, kt = /* @__PURE__ */ new Set([\n \"for\",\n \"in\",\n \"do\",\n \"done\",\n \"else\",\n \"if\",\n \"fi\",\n \"then\",\n \"while\",\n \"until\",\n \"case\",\n \"esac\"\n]), Ct = /* @__PURE__ */ new Set([\"npm\", \"npx\", \"pnpm\", \"yarn\", \"vite\"]);\nfunction Re(n) {\n const a = [];\n if (n.trim() === \"\")\n return a.push({ text: \" \", type: \"plain\" }), a;\n if (n.trim().startsWith(\"#\"))\n return a.push({ text: n, type: \"comment\" }), a;\n const t = /(\\$\\([^)]*\\)|\"[^\"]*\"|'[^']*'|\\$[\\w_]+|[a-zA-Z_]\\w*=|--?[a-zA-Z0-9][\\w-]*(?:=.*)?|>>|>|#.*|\\s+|[^\\s]+)/g, r = (o) => {\n if (/^\\$\\([^)]*\\)$/.test(o)) {\n const s = o.slice(2, -1);\n return [{ text: \"$(\", type: \"operator\" }, ...Re(s), { text: \")\", type: \"operator\" }];\n }\n if (/^\".*\"$/.test(o)) {\n const s = o.slice(1, -1), i = [];\n let c = 0;\n const f = /\\$[\\w_]+/g;\n let m;\n for (; (m = f.exec(s)) !== null; )\n m.index > c && i.push({\n text: s.slice(c, m.index),\n type: \"string\"\n }), i.push({ text: m[0], type: \"variable\" }), c = m.index + m[0].length;\n return c < s.length && i.push({ text: s.slice(c), type: \"string\" }), [{ text: '\"', type: \"string\" }, ...i, { text: '\"', type: \"string\" }];\n }\n return /^'.*'$/.test(o) ? [{ text: o, type: \"string\" }] : /^\\$[\\w_]+$/.test(o) ? [{ text: o, type: \"variable\" }] : /^[a-zA-Z_]\\w*=$/.test(o) ? [{ text: o, type: \"variable\" }] : /^--?[a-zA-Z0-9][\\w-]*(=.*)?$/.test(o) ? [{ text: o, type: \"option\" }] : /^>>|>$/.test(o) ? [{ text: o, type: \"operator\" }] : /^#.*$/.test(o) ? [{ text: o, type: \"comment\" }] : /^\\s+$/.test(o) ? [{ text: o, type: \"plain\" }] : kt.has(o) ? [{ text: o, type: \"keyword\" }] : Ct.has(o) ? [{ text: o, type: \"runner\" }] : [{ text: o, type: \"command\" }];\n };\n let e;\n for (; (e = t.exec(n)) !== null; )\n a.push(...r(e[0]));\n return a;\n}\nfunction zt(n, a = !1) {\n const t = [];\n let r = a;\n if (n.trim() === \"\")\n return t.push({ text: \" \", type: \"plain\" }), { tokens: t, inComment: r };\n let e = \"selector\", o = 0;\n n.match(/^\\s+/) && n.includes(\":\") && !n.includes(\"{\") && (e = \"property\", o = 1);\n const s = /(\\/\\*[\\s\\S]*?\\*\\/|\\/\\*[\\s\\S]*$|\\*\\/)|(@[a-zA-Z-]+)|(\\{|\\}|:|;|,|\\(|\\))|(\"(?:[^\"]*)\"|'(?:[^']*)')|([a-zA-Z-]+)(?=\\()|([0-9.]+(?:px|rem|em|%|vh|vw|deg|s|ms|fr)?)|(#[a-fA-F0-9]{3,8})|([a-zA-Z0-9_-]+|[.#][a-zA-Z0-9_-]+)|(\\s+)|(\\S+)/g;\n let i;\n for (; i = s.exec(n); ) {\n const [, c, f, m, d, p, u, v, b, h, y] = i;\n if (c)\n c.includes(\"/*\") && !c.includes(\"*/\") ? r = !0 : c.includes(\"*/\") && (r = !1), t.push({ text: c, type: \"comment\" });\n else if (r)\n i[0].includes(\"*/\") && (r = !1), t.push({ text: i[0], type: \"comment\" });\n else if (f)\n t.push({ text: f, type: \"atRule\" });\n else if (p)\n t.push({ text: p, type: \"function\" });\n else if (m)\n m === \"{\" ? (o++, e = \"property\") : m === \"}\" ? (o--, e = o > 0 ? \"property\" : \"selector\") : m === \":\" ? e === \"property\" && (e = \"value\") : m === \";\" ? o > 0 && (e = \"property\") : m === \",\" && o === 0 && (e = \"selector\"), t.push({ text: m, type: \"punctuation\" });\n else if (d)\n t.push({ text: d, type: \"string\" });\n else if (u)\n t.push({ text: u, type: \"number\" });\n else if (v)\n t.push({ text: v, type: \"value\" });\n else if (b) {\n let g;\n b.startsWith(\".\") || b.startsWith(\"#\") || e === \"selector\" ? g = \"selector\" : e === \"property\" ? g = \"property\" : g = \"value\", t.push({ text: b, type: g });\n } else if (h)\n t.push({ text: h.replace(/ /g, \" \"), type: \"plain\" });\n else if (y) {\n const g = e === \"value\" ? \"value\" : \"plain\";\n t.push({ text: y, type: g });\n }\n }\n return { tokens: t, inComment: r };\n}\nfunction $t(n) {\n const a = /(\"[^\"]*\")\\s*(:)|(\"[^\"]*\")|(\\d+)|(true|false|null)|(\\{|\\}|\\[|\\]|,)/g, t = [];\n let r = 0, e;\n for (; (e = a.exec(n)) !== null; )\n e.index > r && t.push({ text: n.slice(r, e.index), type: \"plain\" }), e[1] && e[2] ? (t.push({ text: e[1], type: \"key\" }), t.push({ text: e[2], type: \"punctuation\" })) : e[3] ? t.push({ text: e[3], type: \"string\" }) : e[4] ? t.push({ text: e[4], type: \"number\" }) : e[5] ? t.push({ text: e[5], type: \"boolean\" }) : e[6] && t.push({ text: e[6], type: \"punctuation\" }), r = a.lastIndex;\n return r < n.length && t.push({ text: n.slice(r), type: \"plain\" }), t;\n}\nfunction St(n, a = !1, t = 0) {\n const r = [];\n let e = n, o = a, s = t;\n for (; e.length > 0; ) {\n const i = e.match(/^\\/\\*[\\s\\S]*?\\*\\//);\n if (i) {\n r.push({ text: i[0], type: \"comment\" }), e = e.slice(i[0].length);\n continue;\n }\n const c = e.match(/^\\/\\/.*$/m);\n if (c) {\n r.push({ text: c[0], type: \"comment\" }), e = e.slice(c[0].length);\n continue;\n }\n const f = e.match(/^(`[^`]*`|\"[^\"]*\"|'[^']*')/);\n if (f) {\n r.push({ text: f[0], type: \"string\" }), e = e.slice(f[0].length);\n continue;\n }\n const m = e.match(/^<([a-zA-Z][a-zA-Z0-9]*)/);\n if (m) {\n r.push({ text: \"<\", type: \"jsx-bracket\" }), r.push({ text: m[1], type: \"jsx-tag\" }), e = e.slice(m[0].length), o = !0;\n continue;\n }\n const d = e.match(/^<\\/([a-zA-Z][a-zA-Z0-9]*)>/);\n if (d) {\n r.push({ text: \"</\", type: \"jsx-bracket\" }), r.push({ text: d[1], type: \"jsx-tag\" }), r.push({ text: \">\", type: \"jsx-bracket\" }), e = e.slice(d[0].length), o = !1;\n continue;\n }\n if (e.match(/^\\/?>/)) {\n const A = e.match(/^(\\/?>\\s*)/);\n if (A) {\n r.push({ text: A[1].trim(), type: \"jsx-bracket\" }), e = e.slice(A[1].length), A[1].includes(\">\") && (o = !1);\n continue;\n }\n }\n const p = e.match(/^([a-zA-Z][a-zA-Z0-9]*)(\\s*)(=)/);\n if (p && o && s === 0) {\n r.push({ text: p[1], type: \"jsx-attribute\" }), p[2] && r.push({ text: p[2], type: \"plain\" }), r.push({ text: \"=\", type: \"plain\" }), e = e.slice(p[0].length);\n continue;\n }\n const u = e.match(/^[{}]/);\n if (u) {\n r.push({ text: u[0], type: \"jsx-brace\" }), u[0] === \"{\" ? s++ : u[0] === \"}\" && s--, e = e.slice(1);\n continue;\n }\n const v = e.match(/^\\s+/);\n if (v) {\n r.push({ text: v[0], type: \"plain\" }), e = e.slice(v[0].length);\n continue;\n }\n const b = e.match(/^(=>|===|!==|==|!=|<=|>=|&&|\\|\\||[+\\-*/%=<>!&|^~?:;,()[\\]{}.])/);\n if (b) {\n r.push({ text: b[0], type: \"operator\" }), e = e.slice(b[0].length);\n continue;\n }\n const h = e.match(\n /^(const|let|var|function|if|else|for|while|return|import|export|class|extends|interface|type|enum|async|await|public|private|protected|static|from|as|default|new|this|super|try|catch|finally|throw|break|continue|switch|case|typeof|instanceof)\\b/\n );\n if (h) {\n r.push({ text: h[0], type: \"keyword\" }), e = e.slice(h[0].length);\n continue;\n }\n const y = e.match(/^(use[A-Z][a-zA-Z]*)\\b/);\n if (y) {\n r.push({ text: y[0], type: \"hook\" }), e = e.slice(y[0].length);\n continue;\n }\n const g = e.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=(\\?\\.)?\\()/);\n if (g) {\n r.push({ text: g[1], type: \"function\" }), e = e.slice(g[1].length);\n continue;\n }\n const w = e.match(\n /^(string|number|boolean|object|any|void|never|unknown|null|undefined|Promise|Array|React\\.FC|FC|JSX\\.Element|HTMLElement|Event|MouseEvent|KeyboardEvent|ChangeEvent)\\b/\n );\n if (w) {\n r.push({ text: w[0], type: \"type\" }), e = e.slice(w[0].length);\n continue;\n }\n const x = e.match(/^(\\d+\\.?\\d*)/);\n if (x) {\n r.push({ text: x[0], type: \"number\" }), e = e.slice(x[0].length);\n continue;\n }\n const E = e.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=:)/);\n if (E && !o) {\n r.push({ text: E[1], type: \"property\" }), e = e.slice(E[1].length);\n continue;\n }\n r.push({ text: e[0], type: \"plain\" }), e = e.slice(1);\n }\n return r;\n}\nfunction It(n, a) {\n const t = {\n ...yt,\n ...a\n };\n return n.map((r, e) => {\n const o = Re(r);\n return /* @__PURE__ */ l(\"div\", { className: \"leading-6\", children: o.map((s, i) => /* @__PURE__ */ l(\"span\", { className: t[s.type] || \"text-gray-100\", children: s.text }, i)) }, e);\n });\n}\nfunction At(n, a) {\n const t = { ...wt, ...a };\n let r = !1;\n return n.map((e, o) => {\n const { tokens: s, inComment: i } = zt(e, r);\n return r = i, /* @__PURE__ */ l(\"div\", { className: \"leading-6\", children: s.map((c, f) => /* @__PURE__ */ l(\"span\", { className: t[c.type] || \"text-gray-100\", children: c.text }, f)) }, o);\n });\n}\nfunction Dt(n, a) {\n const t = { ...Nt, ...a };\n return n.map((r, e) => /* @__PURE__ */ l(\"div\", { className: \"leading-6\", children: $t(r).map((o, s) => /* @__PURE__ */ l(\"span\", { className: t[o.type] || \"text-gray-100\", children: o.text }, s)) }, e));\n}\nfunction Tt(n, a) {\n const t = { ...Et, ...a };\n let r = !1, e = 0;\n return n.map((o, s) => {\n if (o.trim() === \"\")\n return /* @__PURE__ */ l(\"div\", { className: \"leading-6\", children: \" \" }, s);\n const i = St(o, r, e);\n o.includes(\"<\") && o.match(/<[a-zA-Z]/) && (r = !0), o.includes(\">\") && !o.includes(\"<\") && (r = !1, e = 0);\n const c = (o.match(/\\{/g) || []).length, f = (o.match(/\\}/g) || []).length;\n return e += c - f, e < 0 && (e = 0), /* @__PURE__ */ l(\"div\", { className: \"leading-6\", children: i.map((m, d) => /* @__PURE__ */ l(\"span\", { className: t[m.type] || \"text-gray-100\", children: m.text }, d)) }, s);\n });\n}\nfunction Lt(n) {\n const [a, t] = $(!1), r = S(async () => {\n try {\n await navigator.clipboard.writeText(n), t(!0), setTimeout(() => t(!1), 3e3);\n } catch (e) {\n console.error(\"Failed to copy code:\", e);\n }\n }, [n]);\n return { copied: a, handleCopy: r };\n}\nfunction Rt(n, a) {\n const t = M(null), r = M(null);\n return I(() => {\n if (n) {\n t.current = document.activeElement, document.body.style.overflow = \"hidden\", setTimeout(() => {\n var o;\n (o = r.current) == null || o.focus();\n }, 100);\n const e = (o) => {\n o.key === \"Escape\" && a(!1);\n };\n return document.addEventListener(\"keydown\", e), () => {\n document.removeEventListener(\"keydown\", e), document.body.style.overflow = \"\";\n };\n } else t.current && (t.current.focus(), t.current = null);\n }, [n, a]), { containerRef: r };\n}\nfunction Mt(n, a, t, r) {\n return { handleKeyDown: S(\n (o) => {\n o.key === \"c\" && (o.metaKey || o.ctrlKey) && n ? (o.preventDefault(), t()) : o.key === \"f\" && a && (o.preventDefault(), r());\n },\n [n, a, t, r]\n ) };\n}\nfunction Vt(n) {\n switch (n) {\n case \"typescript\":\n case \"ts\":\n return \"ts\";\n case \"tsx\":\n return \"tsx\";\n case \"json\":\n return \"json\";\n case \"bash\":\n case \"sh\":\n return \"sh\";\n default:\n return \"txt\";\n }\n}\nfunction Ur({\n code: n,\n language: a = \"typescript\",\n allowCopy: t = !0,\n allowDownload: r = !1,\n allowFullscreen: e = !1,\n filename: o,\n showTrafficLights: s = !0,\n showLineNumbers: i = !1,\n hideHeader: c = !1,\n hideFiletype: f = !1,\n maxHeight: m,\n tokenClasses: d,\n className: p,\n id: u,\n ref: v,\n ...b\n}) {\n const [h, y] = $(!1), { containerRef: g } = Rt(h, y), { copied: w, handleCopy: x } = Lt(n), E = S(() => {\n const D = o || `code.${Vt(a)}`;\n rt(n, D);\n }, [n, o, a]), A = S(() => {\n y((D) => !D);\n }, []), { handleKeyDown: k } = Mt(t, e, x, A), z = _(() => n.split(`\n`), [n]), R = S(\n (D = !0) => /* @__PURE__ */ C(\"div\", { className: N(\"flex items-center space-x-2\", !D && \"absolute top-2 right-2 z-10\"), children: [\n !f && /* @__PURE__ */ l(\n \"span\",\n {\n className: \"text-xs text-gray-400 uppercase tracking-wide font-medium\",\n \"aria-label\": `Code language: ${a}`,\n children: a\n }\n ),\n e && /* @__PURE__ */ l(\n \"button\",\n {\n onClick: A,\n className: \"p-1.5 leading-0 text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors motion-reduce:transition-none min-h-[44px] min-w-[44px] flex items-center justify-center md:min-h-auto md:min-w-auto md:p-1.5\",\n title: h ? \"Exit fullscreen\" : \"Fullscreen\",\n \"aria-label\": h ? \"Exit fullscreen mode\" : \"Enter fullscreen mode\",\n \"aria-pressed\": h,\n type: \"button\",\n children: h ? /* @__PURE__ */ l(We, { size: 14 }) : /* @__PURE__ */ l(Fe, { size: 14 })\n }\n ),\n r && /* @__PURE__ */ l(\n \"button\",\n {\n onClick: E,\n className: \"p-1.5 leading-0 text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors motion-reduce:transition-none min-h-[44px] min-w-[44px] flex items-center justify-center md:min-h-auto md:min-w-auto md:p-1.5\",\n title: \"Download code\",\n \"aria-label\": \"Download code as file\",\n type: \"button\",\n children: /* @__PURE__ */ l(He, { size: 14 })\n }\n ),\n t && /* @__PURE__ */ l(\n \"button\",\n {\n onClick: x,\n className: \"p-1.5 leading-0 text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors motion-reduce:transition-none min-h-[44px] min-w-[44px] flex items-center justify-center md:min-h-auto md:min-w-auto md:p-1.5\",\n title: w ? \"Code copied!\" : \"Copy code\",\n \"aria-label\": w ? \"Code copied to clipboard\" : \"Copy code to clipboard\",\n \"aria-live\": \"polite\",\n type: \"button\",\n children: w ? /* @__PURE__ */ l(xe, { size: 14, className: \"text-green-400\" }) : /* @__PURE__ */ l(_e, { size: 14 })\n }\n )\n ] }),\n [\n f,\n a,\n e,\n h,\n r,\n E,\n t,\n x,\n w,\n A\n ]\n ), V = _(() => a === \"json\" ? Dt(z, d) : a === \"tsx\" || a === \"ts\" || a === \"typescript\" ? Tt(z, d) : a === \"bash\" || a === \"sh\" ? It(z, d) : a === \"css\" ? At(z, d) : [\n /* @__PURE__ */ l(\"span\", { className: \"text-gray-400\", children: \"Unsupported language\" }, 0)\n ], [z, d, a]), q = _(() => i ? z.map((D, B) => /* @__PURE__ */ l(\n \"div\",\n {\n className: \"text-gray-500 text-right pl-3 pr-1 select-none min-w-8 text-sm font-mono leading-6\",\n \"aria-hidden\": \"true\",\n role: \"presentation\",\n children: B + 1\n },\n B\n )) : null, [i, z]), W = _(\n () => ({\n maxHeight: m && !h ? `${m}px` : h ? c ? \"calc(100vh - 5px)\" : \"calc(100vh - 45px)\" : void 0,\n overflow: m || h ? \"auto\" : \"visible\"\n }),\n [m, h, c]\n ), L = /* @__PURE__ */ C(\n \"div\",\n {\n id: u,\n ref: (D) => {\n g.current = D, typeof v == \"function\" ? v(D) : v && (v.current = D);\n },\n className: N(\n \"bg-gray-900 rounded-lg border border-gray-700 overflow-hidden motion-reduce:transition-none\",\n h && \"fixed inset-0 z-[9999] max-h-fit\",\n p\n ),\n \"data-language\": a,\n \"data-filename\": o,\n \"data-fullscreen\": h,\n role: \"region\",\n \"aria-label\": `Code block${o ? ` for ${o}` : \"\"} in ${a}`,\n \"aria-describedby\": i ? `${u}-description` : void 0,\n tabIndex: 0,\n onKeyDown: k,\n ...b,\n children: [\n i && /* @__PURE__ */ C(\"div\", { id: `${u}-description`, className: \"sr-only\", children: [\n \"Code block with line numbers. Use Cmd+C or Ctrl+C to copy code.\",\n e && \" Press F to toggle fullscreen.\"\n ] }),\n /* @__PURE__ */ l(\"div\", { \"aria-live\": \"polite\", \"aria-atomic\": \"true\", className: \"sr-only\", children: w && \"Code copied to clipboard\" }),\n !c && /* @__PURE__ */ C(\"div\", { className: \"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700\", children: [\n /* @__PURE__ */ C(\"div\", { className: \"flex items-center space-x-3\", children: [\n s && /* @__PURE__ */ C(\"div\", { className: \"flex space-x-2\", children: [\n /* @__PURE__ */ l(\"div\", { className: \"w-3 h-3 bg-red-500 rounded-full\" }),\n /* @__PURE__ */ l(\"div\", { className: \"w-3 h-3 bg-yellow-500 rounded-full\" }),\n /* @__PURE__ */ l(\"div\", { className: \"w-3 h-3 bg-green-500 rounded-full\" })\n ] }),\n o && /* @__PURE__ */ l(\"span\", { className: \"text-sm text-gray-300 font-medium\", children: o })\n ] }),\n R(!0)\n ] }),\n /* @__PURE__ */ C(\"div\", { className: N(\"flex overflow-hidden\", c && \"relative\"), style: W, children: [\n c && R(!1),\n /* @__PURE__ */ l(\"div\", { className: \"flex-1 overflow-x-auto\", children: /* @__PURE__ */ C(\"div\", { className: \"flex\", children: [\n i && /* @__PURE__ */ l(\n \"div\",\n {\n className: \"bg-gray-800 py-4 border-r border-gray-700 flex flex-col flex-shrink-0\",\n \"aria-hidden\": \"true\",\n role: \"presentation\",\n children: q\n }\n ),\n /* @__PURE__ */ l(\"div\", { className: \"flex-1 p-4\", children: /* @__PURE__ */ l(\n \"pre\",\n {\n className: \"text-sm font-mono focus:outline-none\",\n role: \"code\",\n \"aria-label\": `${a} code content`,\n tabIndex: -1,\n children: /* @__PURE__ */ l(\"code\", { children: V })\n }\n ) })\n ] }) })\n ] })\n ]\n }\n );\n return /* @__PURE__ */ C(Q, { children: [\n !h && L,\n h && ae(\n /* @__PURE__ */ C(Q, { children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n className: \"fixed inset-0 bg-black z-[9998]\",\n onClick: () => y(!1),\n \"aria-hidden\": \"true\"\n }\n ),\n L\n ] }),\n document.body\n )\n ] });\n}\nfunction Yr({\n children: n,\n label: a,\n isOpen: t,\n onToggle: r,\n id: e,\n ref: o,\n disabled: s = !1,\n className: i,\n buttonClassName: c\n}) {\n const f = P(), m = e ?? f, [d, p] = $(!1), u = t !== void 0 ? t : d, v = () => {\n s || (t === void 0 && p((b) => !b), r == null || r(!u));\n };\n return I(() => {\n p(t ?? !1);\n }, [t]), /* @__PURE__ */ C(\"div\", { ref: o, id: m, \"data-open\": u, className: N(\"overflow-hidden\", i), children: [\n /* @__PURE__ */ l(\n \"button\",\n {\n id: `${m}-button`,\n type: \"button\",\n \"aria-expanded\": u,\n \"aria-controls\": `${m}-panel`,\n disabled: s,\n tabIndex: 0,\n className: N(\n \"w-full px-4 py-3 font-medium hover:bg-primary/10 disabled:opacity-50 disabled:cursor-not-allowed\",\n c\n ),\n onClick: v,\n onKeyDown: (b) => {\n (b.key === \"Enter\" || b.key === \" \") && (b.preventDefault(), v());\n },\n \"data-open\": u,\n \"data-label\": typeof a == \"string\" ? a : void 0,\n children: /* @__PURE__ */ C(\"div\", { className: \"flex items-center w-full gap-2\", children: [\n /* @__PURE__ */ l(\"span\", { className: \"flex-1 text-left\", children: a }),\n u ? /* @__PURE__ */ l(qe, { className: \"size-5\", \"aria-hidden\": \"true\" }) : /* @__PURE__ */ l(Ze, { className: \"size-5\", \"aria-hidden\": \"true\" })\n ] })\n }\n ),\n /* @__PURE__ */ l(\"div\", { id: `${m}-panel`, role: \"region\", \"aria-labelledby\": m, \"aria-live\": \"polite\", hidden: !u, children: n })\n ] });\n}\nfunction jt(n) {\n const [a, t] = $(!1), [r, e] = $(!1);\n return I(() => {\n if (n) {\n e(!0);\n const o = setTimeout(() => t(!0), 10);\n return () => clearTimeout(o);\n } else {\n t(!1);\n const o = setTimeout(() => e(!1), 300);\n return () => clearTimeout(o);\n }\n }, [n]), { show: a, shouldRender: r };\n}\nfunction Bt({\n isOpen: n,\n onClose: a,\n enabled: t = !0\n}) {\n const [r, e] = $(!1), [o, s] = $(0), [i, c] = $(0), f = S((x) => {\n !t || !n || (e(!0), c(x), document.body.style.userSelect = \"none\");\n }, [t, n]), m = S((x) => {\n if (!r || !t) return;\n const E = x - i, A = Math.max(0, E);\n s(A);\n }, [r, t, i]), d = S(() => {\n if (!r || !t) return;\n e(!1), document.body.style.userSelect = \"\", o > 100 && a(), s(0);\n }, [r, t, o, a]), p = S((x) => {\n x.preventDefault(), f(x.clientY);\n }, [f]), u = S((x) => {\n m(x.clientY);\n }, [m]), v = S(() => {\n d();\n }, [d]), b = S((x) => {\n x.preventDefault(), f(x.touches[0].clientY);\n }, [f]), h = S((x) => {\n x.preventDefault(), m(x.touches[0].clientY);\n }, [m]), y = S(() => {\n d();\n }, [d]);\n I(() => {\n if (r)\n return document.addEventListener(\"mousemove\", u), document.addEventListener(\"mouseup\", v), document.addEventListener(\"touchmove\", h, { passive: !1 }), document.addEventListener(\"touchend\", y), () => {\n document.removeEventListener(\"mousemove\", u), document.removeEventListener(\"mouseup\", v), document.removeEventListener(\"touchmove\", h), document.removeEventListener(\"touchend\", y);\n };\n }, [r, u, v, h, y]);\n const g = S((x) => {\n t && (x.key === \"ArrowDown\" || x.key === \"Escape\") && (x.preventDefault(), a());\n }, [t, a]);\n return {\n dragHandlers: t ? {\n onMouseDown: p,\n onTouchStart: b,\n onKeyDown: g\n } : {},\n translateY: o,\n isDragging: r\n };\n}\nfunction Pt(n, a) {\n const t = M(null);\n I(() => {\n if (!a) return;\n t.current = document.activeElement;\n const r = document.getElementById(n);\n r && r.focus();\n const e = (o) => {\n if (o.key !== \"Tab\") return;\n const s = document.getElementById(n);\n if (!s) return;\n const i = s.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n ), c = i[0], f = i[i.length - 1];\n o.shiftKey && document.activeElement === c ? (o.preventDefault(), f == null || f.focus()) : !o.shiftKey && document.activeElement === f && (o.preventDefault(), c == null || c.focus());\n };\n return document.addEventListener(\"keydown\", e), () => {\n document.removeEventListener(\"keydown\", e), t.current && typeof t.current.focus == \"function\" && t.current.focus();\n };\n }, [n, a]);\n}\nfunction Kt(n, a) {\n I(() => {\n if (!n) return;\n const t = window.getComputedStyle(document.body).overflow;\n document.body.style.overflow = \"hidden\";\n const r = (e) => {\n e.key === \"Escape\" && a();\n };\n return document.addEventListener(\"keydown\", r), () => {\n document.body.style.overflow = t, document.removeEventListener(\"keydown\", r);\n };\n }, [n, a]);\n}\nfunction Xr({\n ref: n,\n id: a,\n isOpen: t,\n onClose: r,\n title: e,\n children: o,\n footer: s,\n className: i,\n overlayClassName: c,\n showCloseButton: f = !1,\n disableCloseOnOverlayClick: m = !1,\n enableDragGestures: d = !0,\n ariaLabelledBy: p,\n ariaDescribedBy: u\n}) {\n const v = P(), b = a || `drawer-${v}`, h = `${v}-title`, { show: y, shouldRender: g } = jt(t), { dragHandlers: w, translateY: x, isDragging: E } = Bt({\n isOpen: t,\n onClose: r,\n enabled: d\n });\n if (Pt(b, g), Kt(g, r), !g) return null;\n const A = () => e ? F.isValidElement(e) ? /* @__PURE__ */ l(\"div\", { children: e }) : /* @__PURE__ */ l(\"h2\", { className: \"text-2xl font-semibold\", id: h, children: e }) : null, k = () => {\n if (!s) return null;\n if (F.isValidElement(s)) {\n const z = s, R = z.props.className || \"\";\n return F.cloneElement(z, { className: N(\"px-6 py-4\", R) });\n }\n return /* @__PURE__ */ l(\"div\", { className: \"px-6 py-4\", children: s });\n };\n return /* @__PURE__ */ l(Q, { children: ae(\n /* @__PURE__ */ C(\n \"div\",\n {\n \"aria-labelledby\": p ?? e ? h : void 0,\n \"aria-describedby\": u,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-hidden\",\n \"data-drawer-open\": t,\n children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\n \"fixed inset-0 bg-black/40 transition-opacity duration-300\",\n y ? \"opacity-100\" : \"opacity-0\",\n c\n ),\n onClick: () => {\n m || r();\n }\n }\n ),\n /* @__PURE__ */ l(\"div\", { className: \"fixed inset-x-0 bottom-0 flex max-h-full\", children: /* @__PURE__ */ l(\n \"div\",\n {\n id: b,\n ref: n,\n tabIndex: -1,\n className: N(\n \"relative w-screen transform shadow-xl bg-popover text-popover-foreground transition-transform duration-300 ease-in-out border-t border-border rounded-t-lg\",\n y ? \"translate-y-0\" : \"translate-y-full\",\n i\n ),\n style: {\n transform: d && x !== 0 ? `translateY(${x}px)` : void 0,\n transition: x !== 0 ? \"none\" : void 0\n },\n children: /* @__PURE__ */ C(\"div\", { className: \"flex h-full flex-col\", children: [\n d && /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\n \"flex justify-center pt-3 pb-2 cursor-grab active:cursor-grabbing\",\n d && \"select-none\"\n ),\n ...w,\n role: d ? \"button\" : void 0,\n tabIndex: d ? 0 : void 0,\n \"aria-label\": d ? \"Drag to resize drawer\" : void 0,\n children: /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\n \"w-12 h-1.5 bg-popover-foreground/25 rounded-full transition-colors\",\n d && \"hover:bg-popover-foreground/50\",\n E && \"bg-popover-foreground/50\"\n )\n }\n )\n }\n ),\n e && /* @__PURE__ */ l(\"div\", { className: \"px-6 pt-4\", children: A() }),\n f && /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: r,\n \"data-drawer-close-button\": \"true\",\n \"aria-label\": \"Close drawer\",\n className: \"rounded-md p-0.5 top-3 right-3 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ l(oe, { size: 18 })\n }\n ),\n /* @__PURE__ */ l(\"div\", { className: N(\"flex-1 overflow-y-auto px-6 pb-6\", e ? \"pt-6\" : \"pt-4\"), children: o }),\n k()\n ] })\n }\n ) })\n ]\n }\n ),\n document.body\n ) });\n}\nfunction Wt(n) {\n switch (n) {\n case \"top\":\n return \"bottom\";\n case \"bottom\":\n return \"top\";\n case \"left\":\n return \"right\";\n case \"right\":\n return \"left\";\n }\n}\nfunction Ft({\n internalIsOpen: n,\n autoSwitchPlacement: a,\n placement: t,\n offset: r,\n triggerRef: e,\n popoverRef: o\n}) {\n const [s, i] = $(t);\n return I(() => {\n if (!n || !a) return;\n const c = () => {\n if (!e.current || !o.current) return;\n const d = e.current.getBoundingClientRect(), p = o.current.getBoundingClientRect(), u = window.innerWidth, v = window.innerHeight;\n let b = t;\n const h = Wt(t);\n if (t === \"top\" || t === \"bottom\") {\n const y = t === \"top\" ? d.top >= p.height + r : v - d.bottom >= p.height + r, g = h === \"top\" ? d.top >= p.height + r : v - d.bottom >= p.height + r;\n !y && g && (b = h);\n } else {\n const y = t === \"left\" ? d.left >= p.width + r : u - d.right >= p.width + r, g = h === \"left\" ? d.left >= p.width + r : u - d.right >= p.width + r;\n !y && g && (b = h);\n }\n i(b);\n };\n c();\n const f = () => c();\n window.addEventListener(\"scroll\", f, !0), window.addEventListener(\"resize\", f);\n const m = new ResizeObserver(c);\n return e.current && m.observe(e.current), o.current && m.observe(o.current), () => {\n window.removeEventListener(\"scroll\", f, !0), window.removeEventListener(\"resize\", f), m.disconnect();\n };\n }, [n, t, r, a, e, o]), s;\n}\nconst Ht = {\n bottom: {\n start: \"top-full left-0 origin-top-left\",\n center: \"top-full left-1/2 -translate-x-1/2 origin-top\",\n end: \"top-full right-0 origin-top-right\"\n },\n top: {\n start: \"bottom-full left-0 origin-bottom-left\",\n center: \"bottom-full left-1/2 -translate-x-1/2 origin-bottom\",\n end: \"bottom-full right-0 origin-bottom-right\"\n },\n left: {\n start: \"right-full top-0 origin-top-right\",\n center: \"right-full top-1/2 -translate-y-1/2 origin-right\",\n end: \"right-full bottom-0 origin-bottom-right\"\n },\n right: {\n start: \"left-full top-0 origin-top-left\",\n center: \"left-full top-1/2 -translate-y-1/2 origin-left\",\n end: \"left-full bottom-0 origin-bottom-left\"\n }\n};\nfunction _t(n, a) {\n switch (n) {\n case \"top\":\n return { marginBottom: `${a}px` };\n case \"bottom\":\n return { marginTop: `${a}px` };\n case \"left\":\n return { marginRight: `${a}px` };\n case \"right\":\n return { marginLeft: `${a}px` };\n default:\n return {};\n }\n}\nfunction qt({\n id: n,\n ref: a,\n isOpen: t,\n onOpenChange: r,\n children: e,\n className: o,\n closeOnOverlayClick: s = !0,\n trigger: i,\n placement: c = \"bottom\",\n alignment: f = \"center\",\n closeOnTriggerClick: m = !0,\n offset: d = 8,\n autoSwitchPlacement: p = !0\n}) {\n const [u, v] = $(t ?? !1), b = M(null), h = M(null), y = M(null), g = P(), w = Ft({\n internalIsOpen: u,\n autoSwitchPlacement: p,\n placement: c,\n offset: d,\n triggerRef: h,\n popoverRef: b\n }), x = S(\n (k) => {\n r && r(k), t === void 0 && v(k);\n },\n [t, r]\n );\n I(() => {\n t !== void 0 && v(t);\n }, [t]), I(() => {\n if (!u) return;\n const k = (z) => {\n z.key === \"Escape\" && x(!1);\n };\n return document.addEventListener(\"keydown\", k), () => document.removeEventListener(\"keydown\", k);\n }, [u, x]), I(() => {\n if (!u || !s) return;\n const k = (z) => {\n const R = z.target;\n b.current && !b.current.contains(R) && h.current && !h.current.contains(R) && x(!1);\n };\n return document.addEventListener(\"mousedown\", k), () => document.removeEventListener(\"mousedown\", k);\n }, [u, s, x]), I(() => {\n var k, z;\n u ? (y.current = document.activeElement, (k = b.current) == null || k.focus()) : ((z = y.current) == null || z.focus(), y.current = null);\n }, [u]);\n const E = i.props, A = F.cloneElement(i, {\n \"aria-expanded\": u,\n \"aria-haspopup\": \"dialog\",\n \"aria-controls\": g,\n ref: nt(h, E.ref),\n onClick: (k) => {\n var z, R;\n if ((z = E.onClick) == null || z.call(E, k), !(!m && u) && t === void 0) {\n if (k.defaultPrevented || (R = b.current) != null && R.contains(k.target)) return;\n x(!u);\n }\n }\n });\n return /* @__PURE__ */ C(\"div\", { id: n, ref: a, className: \"relative inline-block\", children: [\n A,\n /* @__PURE__ */ l(\n \"div\",\n {\n id: g,\n ref: b,\n className: N(\n \"absolute z-[90] transform rounded-md shadow-lg bg-popover text-popover-foreground transition-all ease-out\",\n u ? \"opacity-100 scale-100\" : \"opacity-0 scale-75 pointer-events-none\",\n Ht[w][f],\n o\n ),\n style: _t(w, d),\n role: \"dialog\",\n \"aria-modal\": \"true\",\n tabIndex: -1,\n inert: u ? void 0 : !0,\n \"aria-hidden\": u ? void 0 : !0,\n children: e\n }\n )\n ] });\n}\nfunction Me({ option: n, ...a }) {\n const { onItemSelect: t } = ye(), r = () => {\n n.onClick && n.onClick(), n.value && t(n.value);\n }, e = n.subItems && n.subItems.length > 0, o = n.href && !n.disabled;\n return /* @__PURE__ */ C(\n o ? \"a\" : \"div\",\n {\n href: o ? n.href : void 0,\n className: N(\n \"relative flex items-center gap-2 px-3 py-2 text-sm focus:outline-none focus:bg-popover-foreground/10\",\n n.disabled ? \"opacity-50 cursor-default\" : \"cursor-pointer\"\n ),\n onClick: n.disabled ? void 0 : r,\n ...a,\n children: [\n n.icon && /* @__PURE__ */ l(\"span\", { className: \"size-4\", children: n.icon }),\n /* @__PURE__ */ C(\"div\", { className: \"flex-1\", children: [\n /* @__PURE__ */ l(\"div\", { children: n.label }),\n n.description && /* @__PURE__ */ l(\"div\", { className: \"text-xs text-popover-foreground/60\", children: n.description })\n ] }),\n n.keyboardShortcut && /* @__PURE__ */ l(\"div\", { className: \"text-xs text-popover-foreground/60\", children: n.keyboardShortcut }),\n e && /* @__PURE__ */ l(ge, { className: \"size-4\" })\n ]\n }\n );\n}\nfunction Zt({ option: n, level: a, index: t }) {\n const { focus: r, setFocus: e } = ye(), [o, s] = $(!1), [i, c] = $(!1), f = M(null), m = M(void 0), d = P(), p = () => {\n n.disabled || (e({ level: a, index: t }), v());\n }, u = () => {\n e(null), b();\n }, v = () => {\n s(!0);\n }, b = () => {\n s(!1);\n }, h = (w) => {\n if (w.key === \"ArrowRight\") {\n if (w.preventDefault(), n.disabled) return;\n c(!1);\n }\n };\n I(() => {\n const w = r == null ? void 0 : r.level, x = m.current, E = a + 1;\n w && x && x === E && w === x - 1 ? c(!0) : c(!1), m.current = w;\n }, [r, a]);\n const y = n.subItems !== void 0 && n.subItems.length > 0, g = o && !i && y;\n return /* @__PURE__ */ C(\n \"div\",\n {\n ref: f,\n className: \"relative focus:outline-none focus:bg-popover-foreground/10\",\n onMouseEnter: p,\n onMouseLeave: u,\n onFocus: v,\n onBlur: b,\n onKeyDown: h,\n tabIndex: 0,\n \"data-menu-item\": n.value,\n \"data-level\": a,\n \"data-index\": t,\n \"aria-haspopup\": y ? \"true\" : void 0,\n \"aria-expanded\": g ? \"true\" : \"false\",\n \"aria-disabled\": n.disabled ? \"true\" : void 0,\n \"aria-label\": n.label,\n \"aria-controls\": g ? d : void 0,\n children: [\n /* @__PURE__ */ l(Me, { option: n }),\n g && /* @__PURE__ */ l(\"div\", { className: \"absolute left-full top-0 z-30\", children: /* @__PURE__ */ l(Ve, { items: n.subItems ?? [], level: a + 1, id: d }) })\n ]\n }\n );\n}\nfunction Ve({ items: n, level: a, id: t }) {\n const { setFocus: r, className: e = \"\" } = ye();\n let o = 0;\n const s = (i, c) => {\n switch (i.__type) {\n case \"option\":\n return i.subItems && i.subItems.length > 0 ? /* @__PURE__ */ l(Zt, { option: i, level: a, index: o++ }, c) : /* @__PURE__ */ l(\n Me,\n {\n option: i,\n \"data-menu-item\": i.value,\n \"data-level\": a,\n \"data-index\": o++,\n tabIndex: -1,\n \"aria-disabled\": i.disabled ? \"true\" : void 0,\n onMouseEnter: (f) => {\n if (f.preventDefault(), i.disabled) return;\n const m = Number(f.currentTarget.getAttribute(\"data-index\"));\n r({ level: a, index: m });\n },\n onMouseLeave: (f) => {\n f.preventDefault(), r(null);\n }\n },\n c\n );\n case \"group\":\n return /* @__PURE__ */ C(\"div\", { children: [\n i.title && /* @__PURE__ */ l(\"div\", { className: \"px-3 py-2 text-xs font-semibold text-popover-foreground/50 uppercase\", children: i.title }),\n i.items.map((f, m) => s(f, `${c}-${m}`))\n ] }, c);\n case \"separator\":\n return /* @__PURE__ */ l(\"div\", { \"aria-hidden\": !0, className: \"my-1 mx-2 border-t border-popover-foreground/20\" }, c);\n case \"custom\":\n return /* @__PURE__ */ l(\"div\", { children: i.render() }, c);\n default:\n return null;\n }\n };\n return /* @__PURE__ */ l(\n \"div\",\n {\n id: t,\n className: N(\n \"border py-1 border-popover-foreground/20 rounded-md min-w-52 shadow-lg bg-popover text-popover-foreground\",\n e\n ),\n tabIndex: 0,\n \"data-level\": a,\n \"data-menu\": !0,\n role: \"menu\",\n \"aria-label\": `Dropdown menu level ${a}`,\n children: n.map((i, c) => s(i, String(c)))\n }\n );\n}\nfunction Gt(n, a) {\n return Array.from(n.querySelectorAll(`[data-menu-item][data-level=\"${a}\"]`));\n}\nfunction Ut(n, a) {\n const t = a === null ? 0 : (a + 1) % n.length;\n for (let r = 0; r < n.length; r++) {\n const e = (t + r) % n.length;\n if (!n[e].hasAttribute(\"aria-disabled\"))\n return e;\n }\n return -1;\n}\nfunction Yt(n, a) {\n const t = a === null ? n.length - 1 : (a - 1 + n.length) % n.length;\n for (let r = 0; r < n.length; r++) {\n const e = (t - r + n.length) % n.length;\n if (!n[e].hasAttribute(\"aria-disabled\"))\n return e;\n }\n return -1;\n}\nfunction Xt({ dropdownId: n, focus: a, setFocus: t, isOpen: r, onClose: e }) {\n const o = S(\n (s) => {\n var d;\n if (!r) return;\n const { level: i, index: c } = a || { level: 1, index: null }, f = document.querySelector(`#${n} [data-menu][data-level=\"${i}\"]`);\n if (!f) return;\n const m = Gt(f, i);\n if (m.length !== 0)\n switch (s.key) {\n case \"ArrowDown\": {\n s.preventDefault();\n const p = Ut(m, c);\n if (p === -1) return;\n t({ level: i, index: p });\n break;\n }\n case \"ArrowUp\": {\n s.preventDefault();\n const p = Yt(m, c);\n if (p === -1) return;\n t({ level: i, index: p });\n break;\n }\n case \"ArrowRight\": {\n if (s.preventDefault(), c !== null) {\n const u = m[c].querySelector(\"[data-menu]\");\n u && u.querySelector(\"[data-menu-item]\") && t({ level: i + 1, index: 0 });\n }\n break;\n }\n case \"ArrowLeft\": {\n s.preventDefault();\n const p = (d = f.parentElement) == null ? void 0 : d.closest(\"[data-menu-item]\");\n if (!p) {\n console.error(`No parent menu found leaving menu level ${i}`);\n return;\n }\n const u = p.getAttribute(\"data-index\") ? Number(p.getAttribute(\"data-index\")) : -1;\n p && t({ level: i - 1, index: u === -1 ? 0 : u });\n break;\n }\n case \"Enter\": {\n if (s.preventDefault(), c !== null) {\n const p = m[c];\n p == null || p.click(), t(null);\n }\n break;\n }\n case \"Escape\": {\n s.preventDefault(), e == null || e(), t(null);\n break;\n }\n case \"Tab\": {\n e();\n break;\n }\n }\n },\n [r, a, t, e, n]\n );\n return I(() => {\n if (r)\n return document.addEventListener(\"keydown\", o), () => {\n document.removeEventListener(\"keydown\", o);\n };\n }, [o, r]), { handleKeyDown: o };\n}\nfunction Jt(n, a, t) {\n return document.querySelector(\n `#${n} [data-menu-item][data-level=\"${a}\"][data-index=\"${t}\"]`\n );\n}\nfunction Jr({\n id: n,\n items: a,\n onItemSelect: t,\n trigger: r,\n isOpen: e,\n placement: o = \"bottom\",\n alignment: s = \"start\",\n onOpenChange: i,\n className: c = \"\",\n ...f\n}) {\n const m = P(), d = n || `dropdown-menu-${m}`, [p, u] = $(null), [v, b] = $(!1), h = e === void 0, y = h ? v : e, g = S(() => {\n u(null), b(!1);\n }, []), w = S(\n (k) => {\n t && t(k), g();\n },\n [t, g]\n ), x = S(\n (k) => {\n h && b(k), i && i(k);\n },\n [h, i]\n ), E = _(\n () => ({\n id: d,\n focus: p,\n setFocus: u,\n isOpen: y,\n onItemSelect: w,\n onClose: g,\n className: c\n }),\n [p, u, w, g, c, y, d]\n );\n Xt({\n dropdownId: d,\n focus: p,\n setFocus: u,\n isOpen: y,\n onClose: g\n });\n const A = _(() => F.cloneElement(r, {\n onClick: (k) => {\n h && b((R) => !R);\n const z = r.props;\n z.onClick && z.onClick(k);\n }\n }), [h, b, r]);\n return I(() => {\n if (p) {\n const k = Jt(d, p.level, p.index);\n k == null || k.focus();\n }\n }, [p, d]), /* @__PURE__ */ l(\n qt,\n {\n id: d,\n isOpen: h ? v : y,\n trigger: A,\n placement: o,\n alignment: s,\n onOpenChange: x,\n className: N(\"min-w-52\", c),\n ...f,\n children: /* @__PURE__ */ l(Qe.Provider, { value: E, children: /* @__PURE__ */ l(Ve, { items: a, level: 1 }) })\n }\n );\n}\nconst Qt = (n) => ({\n __type: \"option\",\n ...n\n}), Ot = (n, a) => ({\n __type: \"group\",\n title: a,\n items: n\n}), er = () => ({\n __type: \"separator\"\n}), tr = (n) => ({\n __type: \"custom\",\n render: n\n}), Qr = {\n option: Qt,\n group: Ot,\n separator: er,\n custom: tr\n};\nfunction de({ elementId: n, type: a, message: t }) {\n return I(() => {\n const r = document.getElementById(n);\n if (r) {\n if (!t && a === \"error\") {\n r.removeAttribute(\"data-error\");\n return;\n }\n if (!t && a === \"success\") {\n r.removeAttribute(\"data-success\");\n return;\n }\n return r.setAttribute(\"aria-describedby\", `${n}-${a}-message`), r.setAttribute(\"aria-invalid\", a === \"error\" ? \"true\" : \"false\"), a === \"error\" && r.setAttribute(\"data-error\", \"true\"), a === \"success\" && r.setAttribute(\"data-success\", \"true\"), () => {\n r.removeAttribute(\"aria-describedby\"), r.removeAttribute(\"aria-invalid\"), r.removeAttribute(\"data-error\"), r.removeAttribute(\"data-success\");\n };\n }\n }, [n, a, t]), t ? /* @__PURE__ */ C(\n \"small\",\n {\n className: N(\n \"mt-0.5 text-sm inline-flex items-center gap-1 w-full justify-start\",\n a === \"error\" && \"text-destructive\",\n a === \"success\" && \"text-success\"\n ),\n role: \"status\",\n children: [\n a === \"error\" ? /* @__PURE__ */ l(Le, {}) : /* @__PURE__ */ l(De, {}),\n /* @__PURE__ */ l(\"span\", { id: `${n}-${a}-message`, children: t })\n ]\n }\n ) : null;\n}\nconst rr = {\n base: \"\",\n default: \"ring ring-transparent focus:ring-primary-foreground not-disabled:data-error:ring-destructive not-disabled:data-success:ring-success\",\n underline: \"border-b border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\",\n outline: \"border border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\"\n}, nr = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"px-3 rounded-full\"\n}, Ee = {\n variant: \"default\",\n rounded: \"none\"\n};\nfunction Or({\n variant: n = Ee.variant,\n rounded: a,\n displayOnlyMode: t = !1,\n errorMessage: r,\n successMessage: e,\n type: o = \"text\",\n className: s,\n ...i\n}) {\n const c = P(), [f, m] = $(!1);\n let d = a;\n n === \"outline\" && !a && (d = \"md\"), d = d || Ee.rounded;\n const v = N(\n \"appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted/70 hide-number-input-arrows transition-all\",\n \"file:mr-2 file:border-0 file:rounded-md file:px-1.5 file:py-1 file:bg-primary hover:file:bg-primary/85 file:text-sm file:font-medium file:text-foreground file:transition-colors\",\n !t && rr[n],\n !t && nr[d],\n o === \"password\" && \"pr-10\",\n !t && \"px-2 py-1\",\n t && \"pointer-events-none\",\n s\n );\n return /* @__PURE__ */ C(\"div\", { className: N(t && \"cursor-text\"), style: { height: i.height, width: i.width }, children: [\n /* @__PURE__ */ C(\"div\", { className: N(o === \"password\" && \"relative\"), children: [\n /* @__PURE__ */ l(\n \"input\",\n {\n ...i,\n id: c,\n type: o === \"password\" && f ? \"text\" : o,\n \"aria-disabled\": i.disabled,\n readOnly: t,\n \"aria-readonly\": t || i[\"aria-readonly\"],\n \"data-error\": r ? !0 : void 0,\n \"data-success\": e ? !0 : void 0,\n className: v\n }\n ),\n o === \"password\" && /* @__PURE__ */ l(\n \"button\",\n {\n onClick: () => m(!f),\n className: \"absolute inset-y-0 right-0 px-2 hover:cursor-pointer\",\n \"aria-label\": \"Toggle password visibility\",\n \"data-state\": f ? \"visible\" : \"hidden\",\n children: f ? /* @__PURE__ */ l(Ge, { size: 20 }) : /* @__PURE__ */ l(Ue, { size: 20 })\n }\n )\n ] }),\n !t && /* @__PURE__ */ l(de, { elementId: c, type: \"error\", message: r }),\n !t && /* @__PURE__ */ l(de, { elementId: c, type: \"success\", message: e })\n ] });\n}\nfunction en({\n display: n = \"inline\",\n width: a = \"fit-content\",\n className: t = \"\",\n required: r,\n helpMessage: e,\n suffix: o,\n htmlFor: s,\n children: i,\n description: c,\n ...f\n}) {\n var b, h;\n const m = P(), d = (((b = e == null ? void 0 : e.trim()) == null ? void 0 : b.length) || 0) > 0, p = (((h = c == null ? void 0 : c.trim()) == null ? void 0 : h.length) || 0) > 0, u = d ? `${s ?? m}-help` : void 0, v = p ? `${s ?? m}-description` : void 0;\n return /* @__PURE__ */ C(\n \"div\",\n {\n style: { display: n === \"inline\" ? \"inline-block\" : \"block\", width: a },\n className: N(\"mb-0.5\", t),\n children: [\n /* @__PURE__ */ C(\"div\", { className: \"relative flex\", children: [\n /* @__PURE__ */ C(\"label\", { className: \"font-medium\", htmlFor: s, ...f, children: [\n i,\n r && /* @__PURE__ */ l(\"span\", { className: \"text-red-500 font-medium ml-1\", \"aria-label\": \"required\", children: \"*\" })\n ] }),\n d && /* @__PURE__ */ l(\n \"span\",\n {\n className: \"text-gray-500 ml-1 size-fit -translate-y-1/3\",\n \"aria-describedby\": u,\n \"aria-label\": \"Help information\",\n title: e,\n children: /* @__PURE__ */ l(Ye, {})\n }\n ),\n d && /* @__PURE__ */ l(\"div\", { id: u, className: \"sr-only\", children: e }),\n o && /* @__PURE__ */ l(\"span\", { className: \"ml-1\", children: o })\n ] }),\n p && /* @__PURE__ */ l(\"small\", { id: v, className: \"block opacity-80 mt-0.5\", role: \"note\", children: c })\n ]\n }\n );\n}\nfunction or(n) {\n const [a, t] = $(!1), [r, e] = $(!1);\n return I(() => {\n n ? (e(!0), setTimeout(() => t(!0), 10)) : (t(!1), setTimeout(() => e(!1), 150));\n }, [n]), { show: a, shouldRender: r };\n}\nfunction ar(n, a) {\n I(() => {\n const t = (r) => {\n r.key === \"Escape\" && n && a();\n };\n return document.addEventListener(\"keydown\", t), n && (document.body.style.overflow = \"hidden\"), () => {\n document.removeEventListener(\"keydown\", t), document.body.style.overflow = \"auto\";\n };\n }, [n, a]);\n}\nfunction sr(n, a) {\n const t = M(null), r = S(() => {\n const e = document.getElementById(n);\n if (!e) return;\n const o = e.querySelectorAll('[data-modal-action=\"true\"]');\n if (o.length > 0) {\n o[0].focus();\n return;\n }\n const s = e.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (s.length > 0) {\n const i = Array.from(s).filter((c) => !(c instanceof HTMLButtonElement && c.getAttribute(\"data-modal-close-button\") === \"true\"));\n if (i.length > 0) {\n i[0].focus();\n return;\n }\n s[0].focus();\n return;\n }\n e.focus();\n }, [n]);\n I(() => (a && (t.current = document.activeElement, r()), () => {\n document.body.style.overflow = \"auto\", t.current instanceof HTMLElement && t.current.focus();\n }), [a, r]);\n}\nfunction tn({\n id: n,\n isOpen: a,\n onClose: t,\n title: r,\n children: e,\n contentOnly: o = !1,\n className: s,\n overlayClassName: i,\n hideCloseButton: c = !1,\n actions: f = [],\n disableCloseOnOverlayClick: m = !1,\n ariaLabelledBy: d,\n ariaDescribedBy: p\n}) {\n const u = P(), v = n || `modal-${u}`, b = n ? `${n}-title` : `modal-title-${u}`, { show: h, shouldRender: y } = or(a);\n if (sr(v, y), ar(y, t), !y) return null;\n const g = () => r ? F.isValidElement(r) ? /* @__PURE__ */ l(\"div\", { className: \"mb-4\", children: r }) : /* @__PURE__ */ l(\"h2\", { className: \"mb-4 text-xl font-semibold\", id: b, children: r }) : null, w = () => f.length === 0 ? null : /* @__PURE__ */ l(\"div\", { className: \"mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3\", children: f.map((x, E) => {\n const { label: A, ...k } = x;\n return /* @__PURE__ */ l(ut, { ...k, \"data-modal-action\": \"true\", children: A }, E);\n }) });\n return /* @__PURE__ */ l(Q, { children: ae(\n /* @__PURE__ */ l(\n \"div\",\n {\n \"aria-labelledby\": d ?? r ? b : void 0,\n \"aria-describedby\": p,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-y-auto\",\n children: /* @__PURE__ */ C(\"div\", { className: \"flex min-h-screen items-center justify-center p-4\", children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\"fixed inset-0 bg-black/20 transition-all\", i),\n onClick: () => {\n m || t();\n }\n }\n ),\n o && /* @__PURE__ */ l(\"div\", { className: j(\"relative w-fit\", s), children: e }),\n !o && /* @__PURE__ */ C(\n \"div\",\n {\n id: v,\n tabIndex: -1,\n className: j(\n \"relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in duration-75\",\n h ? \"opacity-100 scale-100\" : \"opacity-0 scale-90\",\n s\n ),\n children: [\n !c && /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: t,\n \"data-modal-close-button\": \"true\",\n className: \"rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ l(oe, { size: 18 })\n }\n ),\n g(),\n e,\n w()\n ]\n }\n )\n ] })\n }\n ),\n document.body\n ) });\n}\nconst ir = {\n link: \"text-primary hover:text-primary-foreground hover:bg-primary/10 aria-current:text-primary-foreground aria-current:bg-primary\",\n outline: \"border border-primary text-primary hover:bg-primary hover:text-primary-foreground aria-current:bg-primary aria-current:text-primary-foreground aria-current:border-primary\",\n filled: \"bg-secondary text-secondary-foreground hover:bg-primary hover:text-primary-foreground aria-current:bg-primary aria-current:text-primary-foreground\"\n}, lr = {\n sm: \"px-2 py-1 text-sm min-w-[32px] min-h-8\",\n md: \"px-2 py-1 text-base min-w-[40px] min-h-10\"\n};\nfunction rn({\n page: n,\n pageCount: a = 5,\n maxVisiblePages: t = 5,\n showFirstLast: r = !0,\n onPageChange: e,\n size: o = \"md\",\n variant: s = \"link\",\n className: i,\n ref: c,\n buttonsClassName: f,\n ...m\n}) {\n const d = a === 1 / 0, u = S(() => {\n if (d) return [];\n const x = a, E = Math.min(t, x);\n if (x <= E)\n return Array.from({ length: x }, (R, V) => V + 1);\n const A = Math.floor(E / 2);\n let k = Math.max(1, n - A), z = Math.min(x, k + E - 1);\n return z - k + 1 < E && (k = Math.max(1, z - E + 1), z = Math.min(x, k + E - 1)), Array.from({ length: z - k + 1 }, (R, V) => k + V);\n }, [d, t, n, a])(), v = n > 1, b = d || n < a, h = r && !d, y = r && !d, g = (x) => {\n x >= 1 && (d || x <= a) && e(x);\n }, w = S(() => {\n const x = j(\n \"flex items-center justify-center min-w-fit\",\n \"disabled:opacity-50 disabled:cursor-not-allowed\",\n lr[o],\n \"rounded-md\"\n );\n return j(x, ir[s], f);\n }, [s, o, f]);\n return /* @__PURE__ */ C(\n \"nav\",\n {\n ref: c,\n className: j(\"flex items-center justify-center gap-1\", i),\n role: \"navigation\",\n \"aria-label\": \"Pagination\",\n \"data-page\": n,\n \"data-page-count\": d ? \"infinite\" : a,\n ...m,\n children: [\n h && /* @__PURE__ */ C(\n \"button\",\n {\n onClick: () => g(1),\n className: w(),\n disabled: n === 1,\n \"aria-label\": \"Go to first page\",\n children: [\n /* @__PURE__ */ l(Xe, { size: o === \"sm\" ? 12 : 15 }),\n /* @__PURE__ */ l(\"span\", { className: \"ml-1\", children: \"First\" })\n ]\n }\n ),\n /* @__PURE__ */ C(\n \"button\",\n {\n onClick: () => g(n - 1),\n className: w(),\n disabled: !v,\n \"aria-label\": \"Go to previous page\",\n children: [\n /* @__PURE__ */ l(Te, { size: o === \"sm\" ? 12 : 15 }),\n /* @__PURE__ */ l(\"span\", { className: \"ml-1\", children: \"Previous\" })\n ]\n }\n ),\n !d && u.map((x) => /* @__PURE__ */ l(\n \"button\",\n {\n onClick: () => g(x),\n className: j(w(), \"aspect-square\"),\n \"aria-label\": `Go to page ${x}`,\n \"aria-current\": x === n ? !0 : void 0,\n children: x\n },\n x\n )),\n /* @__PURE__ */ C(\n \"button\",\n {\n onClick: () => g(n + 1),\n className: w(),\n disabled: !b,\n \"aria-label\": \"Go to next page\",\n children: [\n /* @__PURE__ */ l(\"span\", { className: \"mr-1\", children: \"Next\" }),\n /* @__PURE__ */ l(ge, { size: o === \"sm\" ? 12 : 15 })\n ]\n }\n ),\n y && /* @__PURE__ */ C(\n \"button\",\n {\n onClick: () => g(a),\n className: w(),\n disabled: n === a,\n \"aria-label\": \"Go to last page\",\n children: [\n /* @__PURE__ */ l(\"span\", { className: \"mr-1\", children: \"Last\" }),\n /* @__PURE__ */ l(Je, { size: o === \"sm\" ? 12 : 15 })\n ]\n }\n )\n ]\n }\n );\n}\nfunction cr(n) {\n const [a, t] = $(!1), [r, e] = $(!1);\n return I(() => {\n n ? (e(!0), setTimeout(() => t(!0), 10)) : (t(!1), setTimeout(() => e(!1), 300));\n }, [n]), { show: a, shouldRender: r };\n}\nfunction dr(n, a) {\n I(() => {\n const t = (r) => {\n r.key === \"Escape\" && n && a();\n };\n return document.addEventListener(\"keydown\", t), n && (document.body.style.overflow = \"hidden\"), () => {\n document.removeEventListener(\"keydown\", t), document.body.style.overflow = \"auto\";\n };\n }, [n, a]);\n}\nfunction ur(n, a) {\n const t = M(null), r = S(() => {\n const e = document.getElementById(n);\n if (!e) return;\n const o = e.querySelectorAll('[data-panel-action=\"true\"]');\n if (o.length > 0) {\n o[0].focus();\n return;\n }\n const s = e.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (s.length > 0) {\n const i = Array.from(s).filter((c) => !(c instanceof HTMLButtonElement && c.getAttribute(\"data-panel-close-button\") === \"true\"));\n if (i.length > 0) {\n i[0].focus();\n return;\n }\n s[0].focus();\n return;\n }\n e.focus();\n }, [n]);\n I(() => (a && (t.current = document.activeElement, r()), () => {\n document.body.style.overflow = \"auto\", t.current instanceof HTMLElement && t.current.focus();\n }), [a, r]);\n}\nconst fr = {\n size: {\n sm: \"max-w-sm\",\n md: \"max-w-md\",\n lg: \"max-w-lg\",\n xl: \"max-w-xl\",\n \"2xl\": \"max-w-2xl\",\n full: \"w-full\",\n screen: \"w-screen\"\n }\n};\nfunction nn({\n ref: n,\n id: a,\n isOpen: t,\n onClose: r,\n title: e,\n children: o,\n footer: s,\n size: i = \"md\",\n className: c,\n overlayClassName: f,\n hideCloseButton: m = !1,\n disableCloseOnOverlayClick: d = !1,\n ariaLabelledBy: p,\n ariaDescribedBy: u\n}) {\n const v = P(), b = a || `panel-${v}`, h = a ? `${a}-title` : `panel-title-${v}`, { show: y, shouldRender: g } = cr(t);\n if (ur(b, g), dr(g, r), !g) return null;\n const w = () => e ? F.isValidElement(e) ? /* @__PURE__ */ l(\"div\", { children: e }) : /* @__PURE__ */ l(\"h2\", { className: \"text-2xl font-semibold\", id: h, children: e }) : null, x = () => {\n if (!s) return null;\n if (F.isValidElement(s)) {\n const E = s, A = E.props.className || \"\";\n return F.cloneElement(E, { className: j(\"px-6 py-4\", A) });\n }\n return /* @__PURE__ */ l(\"div\", { className: \"px-6 py-4\", children: s });\n };\n return /* @__PURE__ */ l(Q, { children: ae(\n /* @__PURE__ */ C(\n \"div\",\n {\n \"aria-labelledby\": p ?? e ? h : void 0,\n \"aria-describedby\": u,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-hidden\",\n \"data-panel-open\": t,\n children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\n \"fixed inset-0 bg-black/40 transition-opacity duration-300\",\n y ? \"opacity-100\" : \"opacity-0\",\n f\n ),\n onClick: () => {\n d || r();\n }\n }\n ),\n /* @__PURE__ */ l(\"div\", { className: \"fixed inset-y-0 right-0 flex max-w-full\", children: /* @__PURE__ */ l(\n \"div\",\n {\n id: b,\n ref: n,\n tabIndex: -1,\n className: j(\n \"relative h-full transform shadow-xl bg-popover text-popover-foreground transition-transform duration-300 ease-in-out\",\n i !== \"screen\" && \"border-l border-border\",\n fr.size[i],\n y ? \"translate-x-0\" : \"translate-x-full\",\n c\n ),\n \"data-panel-size\": i,\n children: /* @__PURE__ */ C(\"div\", { className: \"flex h-full flex-col\", children: [\n e && /* @__PURE__ */ l(\"div\", { className: \"px-6 pt-6\", children: w() }),\n !m && /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: r,\n \"data-panel-close-button\": \"true\",\n \"aria-label\": \"Close panel\",\n className: \"rounded-md p-0.5 top-3 right-3 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ l(oe, { size: 18 })\n }\n ),\n /* @__PURE__ */ l(\"div\", { className: j(\"flex-1 overflow-y-auto px-6 pb-6\", e ? \"pt-6\" : \"pt-10\"), children: o }),\n x()\n ] })\n }\n ) })\n ]\n }\n ),\n document.body\n ) });\n}\nfunction mr({ itemId: n, checked: a, onChange: t, name: r, disabled: e = !1, className: o = \"\" }) {\n const s = \"relative inline-flex items-center justify-center rounded-full\", i = () => {\n e || t();\n }, c = N(\n s,\n !a && \"hover:border-current/60\",\n !e && \"border-current cursor-pointer\",\n e && \"border-muted/60 cursor-not-allowed\",\n o\n );\n return /* @__PURE__ */ l(\n \"div\",\n {\n id: n,\n role: \"radio\",\n tabIndex: -1,\n \"aria-checked\": a,\n \"aria-disabled\": e,\n \"aria-description\": `Radio button for ${r}`,\n \"aria-labelledby\": `${n}-label`,\n onClick: i,\n className: c,\n style: {\n width: \"1em\",\n height: \"1em\",\n padding: \"0.1em\",\n borderWidth: \"0.06em\"\n },\n children: a && /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\"size-full aspect-square rounded-full\", e && \"bg-muted/60\", !e && \"bg-current\")\n }\n )\n }\n );\n}\nfunction ve({\n value: n,\n children: a,\n className: t = \"\",\n isSelected: r = !1,\n onChange: e,\n disabled: o = !1,\n hideInput: s = !1,\n description: i,\n name: c\n}) {\n const m = `radio-${P()}-${n}`, d = () => {\n o || e == null || e(n);\n };\n return /* @__PURE__ */ C(\n \"div\",\n {\n title: i,\n className: N(\n \"relative flex items-center\",\n t,\n // Uses text color for borders\n s && `p-2 border-2 focus-within:border-dashed focus-within:${o ? \"border-current/50\" : \"border-current/80\"}`,\n s && !r && `border-transparent ${o ? \"\" : \"not-focus-within:hover:border-border/60\"}`,\n s && r && \"border-border\",\n o && \"opacity-60 cursor-not-allowed\"\n ),\n style: {\n gap: \"0.5em\"\n },\n children: [\n !s && /* @__PURE__ */ l(\n mr,\n {\n itemId: m,\n name: c || \"\",\n checked: r,\n onChange: d,\n disabled: o,\n className: N(s && \"\")\n }\n ),\n /* @__PURE__ */ l(\n \"div\",\n {\n id: s ? m : void 0,\n tabIndex: s ? -1 : void 0,\n role: s ? \"radio\" : void 0,\n onClick: s ? d : void 0,\n \"aria-checked\": s ? r ? \"true\" : \"false\" : void 0,\n \"aria-disabled\": s ? o : void 0,\n \"aria-description\": s ? i || `Radio button for ${c}` : void 0,\n \"aria-labelledby\": s ? `${m}-label` : void 0,\n className: N(s && \"size-full\", typeof a == \"object\" && \"grow focus:outline-none\"),\n children: /* @__PURE__ */ l(\n \"label\",\n {\n id: `${m}-label`,\n onClick: s ? void 0 : d,\n className: N(o && \"cursor-not-allowed\", !o && \"cursor-pointer\"),\n children: a\n }\n )\n }\n )\n ]\n }\n );\n}\nfunction pr(n, a) {\n const [t, r] = $(a), [e, o] = $(-1), [s, i] = $(!1), c = S((u, v) => {\n var y;\n const b = u[v];\n b.hasAttribute(\"disabled\") || b.getAttribute(\"aria-disabled\") === \"true\" || ((y = u[v]) == null || y.click(), o(v));\n }, []), f = S(\n (u, v) => {\n var h;\n if (u.preventDefault(), s || !v.length) return;\n const b = a !== -1 ? a : 0;\n (h = v[b]) == null || h.focus(), r(b), a !== -1 && c(v, b);\n },\n [a, s, c]\n ), m = S(\n (u) => {\n var y;\n if (!u.shiftKey)\n return;\n u.preventDefault();\n const v = Array.from(\n document.querySelectorAll(\n 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])'\n )\n ).filter((g) => !g.hasAttribute(\"disabled\") && g.tabIndex >= 0), b = v.findIndex((g) => g.id === n), h = b > 0 ? b - 1 : v.length - 1;\n (y = v[h]) == null || y.focus();\n },\n [n]\n ), d = S(\n (u, v) => {\n var w;\n if (!v.length) return;\n const b = u.target;\n if (!v.some((x) => x.id === b.id)) return;\n const y = t !== -1 ? t : 0;\n let g = y;\n switch (u.key) {\n case \"ArrowUp\":\n case \"ArrowLeft\":\n u.preventDefault(), g = y > 0 ? y - 1 : v.length - 1;\n break;\n case \"ArrowDown\":\n case \"ArrowRight\":\n u.preventDefault(), g = (y + 1) % v.length;\n break;\n // Select the option when the space key is pressed\n case \" \":\n u.preventDefault(), c(v, y);\n return;\n case \"Tab\":\n m(u);\n return;\n default:\n return;\n }\n (w = v[g]) == null || w.focus(), r(g), e !== -1 && c(v, g);\n },\n [t, e, m, c]\n ), p = S(() => {\n const u = document.querySelector(`[id=\"${n}\"][role=\"radiogroup\"]`);\n return u ? Array.from(u.querySelectorAll('[role=\"radio\"]')) : [];\n }, [n]);\n I(() => {\n const u = document.querySelector(`[id=\"${n}\"][role=\"radiogroup\"]`);\n if (!u) return;\n const v = p(), b = (w) => f(w, v), h = (w) => d(w, v), y = () => i(!0), g = () => i(!1);\n return document.addEventListener(\"keydown\", h), u.addEventListener(\"focus\", b), u.addEventListener(\"mousedown\", y), document.addEventListener(\"mouseup\", g), () => {\n document.removeEventListener(\"keydown\", h), u.removeEventListener(\"focus\", b), u.removeEventListener(\"mousedown\", y), document.removeEventListener(\"mouseup\", g);\n };\n }, [n, p, f, d]);\n}\nfunction on({\n options: n = [],\n value: a,\n onChange: t,\n id: r,\n children: e,\n className: o = \"\",\n childrenClassName: s = \"\",\n hideInputs: i = !1\n}) {\n const c = P(), f = r || `radio-group-${c}`;\n pr(\n f,\n n.findIndex((d) => d === a)\n );\n const m = _(() => n.reduce((d, p) => (typeof p == \"string\" ? d.some((u) => u.value === p) || d.push({ label: p, value: p }) : d.push(p), d), []), [n]);\n return /* @__PURE__ */ C(\"div\", { id: f, role: \"radiogroup\", tabIndex: 0, className: N(o, \"focus:outline-none\"), children: [\n m.length > 0 && m.map((d, p) => /* @__PURE__ */ l(\n ve,\n {\n value: d.value,\n isSelected: a === d.value,\n onChange: t,\n name: f,\n disabled: d.disabled,\n description: d.description,\n hideInput: i,\n className: s,\n children: d.label\n },\n `${d.value}-${p}`\n )),\n m.length === 0 && e && F.Children.map(e, (d) => F.isValidElement(d) && d.type === ve ? /* @__PURE__ */ l(\n ve,\n {\n ...d.props,\n className: N(s, d.props.className),\n hideInput: d.props.hideInput || i,\n isSelected: a === d.props.value,\n onChange: t,\n name: f,\n children: d.props.children\n }\n ) : null)\n ] });\n}\nfunction hr(n) {\n const a = M(null), t = M(null), r = M(null), [e, o] = $(!1), [s, i] = $(!1), [c, f] = $({\n vertical: !1,\n horizontal: !1\n }), m = M(null), d = M(null), p = S(() => {\n const b = a.current;\n if (!b) return;\n const h = b.scrollHeight > b.clientHeight, y = b.scrollWidth > b.clientWidth;\n f({\n vertical: h,\n horizontal: y\n });\n }, []), u = S(() => {\n const b = a.current, h = t.current, y = r.current;\n if (b) {\n if (h && c.vertical) {\n const w = (c.horizontal ? b.clientHeight - n : b.clientHeight) / b.scrollHeight, x = Math.max(w * 100, 10), E = b.scrollHeight - b.clientHeight, A = E > 0 ? b.scrollTop / E : 0, k = 100 - x, z = A * k;\n h.style.height = `${x}%`, h.style.top = `${z}%`, h.style.transform = \"none\";\n }\n if (y && c.horizontal) {\n const w = (c.vertical ? b.clientWidth - n : b.clientWidth) / b.scrollWidth, x = Math.max(w * 100, 10), E = b.scrollWidth - b.clientWidth, A = E > 0 ? b.scrollLeft / E : 0, k = 100 - x, z = A * k;\n y.style.width = `${x}%`, y.style.left = `${z}%`, y.style.transform = \"none\";\n }\n }\n }, [c, n]), v = S(() => {\n m.current && clearTimeout(m.current), d.current && clearTimeout(d.current), o(!0), i(!1), u(), m.current = setTimeout(() => {\n i(!0), d.current = setTimeout(() => {\n o(!1), i(!1);\n }, 300);\n }, 1e3);\n }, [u]);\n return I(() => {\n const b = a.current;\n if (!b) return;\n p();\n const h = new ResizeObserver(p);\n h.observe(b);\n const y = new MutationObserver(p);\n return y.observe(b, {\n childList: !0,\n subtree: !0,\n attributes: !0\n }), () => {\n h.disconnect(), y.disconnect();\n };\n }, [p]), I(() => {\n u();\n }, [c, u]), I(() => () => {\n m.current && clearTimeout(m.current), d.current && clearTimeout(d.current);\n }, []), {\n viewportRef: a,\n verticalThumbRef: t,\n horizontalThumbRef: r,\n isScrolling: e,\n isFadingOut: s,\n scrollbarVisible: c,\n handleScroll: v\n };\n}\nfunction an({\n className: n,\n thumbClassName: a,\n viewportClassName: t,\n scrollbarClassName: r,\n scrollbarThickness: e = 10,\n children: o,\n id: s,\n ref: i,\n ...c\n}) {\n const { viewportRef: f, verticalThumbRef: m, horizontalThumbRef: d, isScrolling: p, isFadingOut: u, scrollbarVisible: v, handleScroll: b } = hr(e), h = j(\n \"relative flex-1 rounded-full bg-slate-400/60 hover:bg-slate-400/80 active:bg-slate-400\",\n a\n );\n return /* @__PURE__ */ C(\"div\", { ref: i, id: s, className: j(\"relative overflow-hidden\", n), \"data-scroll-area-root\": \"\", ...c, children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n ref: f,\n className: j(\n \"h-full w-full overflow-auto rounded-[inherit] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden\",\n t\n ),\n onScroll: b,\n \"data-scroll-area-viewport\": \"\",\n children: o\n }\n ),\n v.vertical && (p || u) && /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\n \"touch-none select-none transition-all duration-300\",\n \"p-[1px]\",\n \"absolute right-0 top-0\",\n u ? \"opacity-0\" : \"opacity-100\",\n r\n ),\n \"data-scroll-area-scrollbar\": \"vertical\",\n \"data-state\": p ? \"visible\" : \"hidden\",\n style: {\n width: `${e}px`,\n height: v.horizontal ? `calc(100% - ${e}px)` : \"100%\"\n },\n children: /* @__PURE__ */ l(\n \"div\",\n {\n ref: m,\n className: j(\"absolute rounded-full\", h),\n \"data-scroll-area-thumb\": \"\",\n style: { height: \"20%\", top: \"0%\", width: \"100%\" }\n }\n )\n }\n ),\n v.horizontal && (p || u) && /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\n \"touch-none select-none transition-all duration-300\",\n \"p-[1px]\",\n \"absolute bottom-0 left-0\",\n u ? \"opacity-0\" : \"opacity-100\",\n r\n ),\n \"data-scroll-area-scrollbar\": \"horizontal\",\n \"data-state\": p ? \"visible\" : \"hidden\",\n style: {\n height: `${e}px`,\n width: v.vertical ? `calc(100% - ${e}px)` : \"100%\"\n },\n children: /* @__PURE__ */ l(\n \"div\",\n {\n ref: d,\n className: j(\"absolute rounded-full\", h),\n \"data-scroll-area-thumb\": \"\",\n style: { width: \"20%\", left: \"0%\", height: \"100%\" }\n }\n )\n }\n ),\n v.vertical && v.horizontal && /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\"bg-transparent\", \"absolute bottom-0 right-0\"),\n \"data-scroll-area-corner\": \"\",\n style: {\n height: `${e}px`,\n width: `${e}px`\n }\n }\n )\n ] });\n}\nfunction br(n) {\n const [a, t] = $(!1), [r, e] = $(!1);\n return I(() => {\n n ? (e(!0), setTimeout(() => t(!0), 10)) : (t(!1), setTimeout(() => e(!1), 150));\n }, [n]), { show: a, shouldRender: r };\n}\nfunction vr({\n isOpen: n,\n setIsOpen: a,\n filteredOptions: t,\n highlightedIndex: r,\n setHighlightedIndex: e,\n onSelect: o,\n triggerRef: s\n}) {\n return { handleKeyDown: S(\n (c) => {\n var f;\n switch (c.key) {\n case \"ArrowDown\":\n if (c.preventDefault(), !n)\n a(!0);\n else {\n const m = r < t.length - 1 ? r + 1 : 0;\n let d = m;\n for (let p = 0; p < t.length; p++) {\n const u = (m + p) % t.length;\n if (!t[u].disabled) {\n d = u;\n break;\n }\n }\n e(d);\n }\n break;\n case \"ArrowUp\":\n if (c.preventDefault(), !n)\n a(!0);\n else {\n const m = r > 0 ? r - 1 : t.length - 1;\n let d = m;\n for (let p = 0; p < t.length; p++) {\n const u = (m - p + t.length) % t.length;\n if (!t[u].disabled) {\n d = u;\n break;\n }\n }\n e(d);\n }\n break;\n case \"Enter\":\n case \" \":\n if (c.preventDefault(), !n)\n a(!0);\n else if (r >= 0 && r < t.length) {\n const m = t[r];\n m.disabled || o(m);\n }\n break;\n case \"Escape\":\n c.preventDefault(), n && (a(!1), (f = s.current) == null || f.focus());\n break;\n case \"Tab\":\n n && a(!1);\n break;\n }\n },\n [n, a, t, r, e, o, s]\n ) };\n}\nfunction gr({\n isOpen: n,\n filteredOptions: a,\n selectedOption: t,\n shouldRender: r,\n optionsContainerRef: e\n}) {\n const [o, s] = $(-1), i = _(() => t ? a.findIndex((c) => c.value === t.value) : -1, [a, t]);\n return I(() => {\n n && a.length > 0 ? s(t && i >= 0 ? i : 0) : s(-1);\n }, [a, n, t, i]), I(() => {\n if (o >= 0 && e.current && r) {\n const c = () => {\n const f = e.current, m = f == null ? void 0 : f.querySelector(`[data-option-index=\"${o}\"]`);\n if (m) {\n const d = n && t && o === i ? \"auto\" : \"smooth\";\n m.scrollIntoView({\n behavior: d,\n block: \"nearest\"\n });\n }\n };\n n && r && t ? setTimeout(c, 10) : c();\n }\n }, [o, r, n, t, a, e, i]), { highlightedIndex: o, setHighlightedIndex: s };\n}\nconst ke = {\n sm: {\n trigger: \"px-2 py-1 text-sm\",\n options: \"px-2 py-2 text-xs\"\n },\n md: {\n trigger: \"px-3 py-2 text-base\",\n options: \"px-3 py-2.5 text-sm\"\n },\n lg: {\n trigger: \"px-4 py-3 text-lg\",\n options: \"px-4 py-3 text-base\"\n }\n};\nfunction sn({\n options: n,\n value: a,\n placeholder: t = \"Select an option...\",\n searchable: r = !1,\n disabled: e = !1,\n clearable: o = !1,\n size: s = \"md\",\n className: i,\n triggerClassName: c,\n dropdownClassName: f,\n id: m,\n ref: d,\n onChange: p,\n onSearch: u,\n searchPlaceholder: v = \"Search options...\"\n}) {\n const b = P(), y = `${m ?? b}-listbox`, g = (T) => `${y}-option-${T}`, [w, x] = $(!1), [E, A] = $(\"\"), k = M(null), z = M(null), R = M(null), V = M(null), { show: q, shouldRender: W } = br(w), L = _(() => !r || !E ? n : n.filter(\n (T) => {\n var K;\n return T.text.toLowerCase().includes(E.toLowerCase()) || ((K = T.description) == null ? void 0 : K.toLowerCase().includes(E.toLowerCase()));\n }\n ), [n, r, E]), D = _(() => n.find((T) => T.value === a), [n, a]), { highlightedIndex: B, setHighlightedIndex: Z } = gr({\n isOpen: w,\n filteredOptions: L,\n selectedOption: D,\n shouldRender: W,\n optionsContainerRef: V\n }), U = B >= 0 ? g(B) : void 0;\n I(() => {\n w && W && r && z.current && z.current.focus();\n }, [w, r, W]);\n const X = S(\n (T) => {\n var K;\n T.disabled || (p == null || p(T.value), x(!1), A(\"\"), (K = k.current) == null || K.focus());\n },\n [p]\n ), { handleKeyDown: G } = vr({\n isOpen: w,\n setIsOpen: x,\n filteredOptions: L,\n highlightedIndex: B,\n setHighlightedIndex: Z,\n onSelect: X,\n triggerRef: k\n });\n I(() => {\n if (!w)\n return;\n const T = (K) => {\n var re;\n R.current && !R.current.contains(K.target) && !((re = k.current) != null && re.contains(K.target)) && (x(!1), A(\"\"));\n };\n return document.addEventListener(\"mousedown\", T), () => document.removeEventListener(\"mousedown\", T);\n }, [w]);\n const O = () => {\n e || (x(!w), w || (A(\"\"), Z(-1)));\n }, ue = (T) => {\n T.disabled || (p == null || p(T.value), x(!1), A(\"\"));\n }, fe = (T) => {\n const K = T.target.value;\n A(K), u == null || u(K), Z(-1);\n }, me = (T) => {\n T.preventDefault(), T.stopPropagation(), p == null || p(\"\");\n };\n return /* @__PURE__ */ C(\n \"div\",\n {\n className: N(\"relative\", i),\n id: m,\n ref: d,\n \"data-select\": \"true\",\n \"data-value\": a,\n \"data-searchable\": r,\n \"data-disabled\": e,\n \"data-clearable\": o,\n children: [\n /* @__PURE__ */ C(\"div\", { className: \"relative\", children: [\n /* @__PURE__ */ C(\n \"button\",\n {\n ref: k,\n type: \"button\",\n className: N(\n \"flex items-center justify-between w-full text-left bg-inherit border border-border rounded-md transition-colors\",\n \"hover:border-primary focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary\",\n e && \"opacity-50 cursor-not-allowed hover:border-border\",\n w && \"border-primary ring-1 ring-primary\",\n ke[s].trigger,\n c\n ),\n onClick: O,\n onKeyDown: G,\n disabled: e,\n \"aria-disabled\": e,\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": w,\n \"aria-controls\": w ? y : void 0,\n \"aria-activedescendant\": w && !r ? U : void 0,\n \"aria-label\": D ? D.text : t,\n \"data-select-trigger\": \"true\",\n children: [\n /* @__PURE__ */ l(\"span\", { className: N(\"block truncate\", !D && \"opacity-70\"), children: D ? D.text : t }),\n /* @__PURE__ */ l(\"div\", { className: \"flex items-center ml-2\", children: /* @__PURE__ */ l(Ae, { size: 16, className: N(\"transition-transform duration-200\", w && \"rotate-180\") }) })\n ]\n }\n ),\n o && D && /* @__PURE__ */ l(\n \"button\",\n {\n type: \"button\",\n onClick: me,\n className: \"absolute right-8 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-accent/20 transition-colors group z-10\",\n \"aria-label\": \"Clear selection\",\n \"data-select-clear\": \"true\",\n children: /* @__PURE__ */ l(oe, { size: 14, className: \"opacity-70 group-hover:opacity-100 transition-opacity\" })\n }\n )\n ] }),\n W && /* @__PURE__ */ C(\n \"div\",\n {\n ref: R,\n className: N(\n \"absolute z-50 w-full mt-1 bg-popover text-popover-foreground border border-border rounded-md shadow-lg transition-all duration-150\",\n q ? \"opacity-100 translate-y-0\" : \"opacity-0 -translate-y-2\",\n f\n ),\n id: y,\n role: \"listbox\",\n \"data-select-content\": \"true\",\n children: [\n r && /* @__PURE__ */ l(\"div\", { className: \"border-b border-border\", children: /* @__PURE__ */ l(\n \"input\",\n {\n ref: z,\n type: \"text\",\n value: E,\n onChange: fe,\n onKeyDown: G,\n placeholder: v,\n className: \"w-full px-2 py-2 text-inherit focus:outline-none\",\n \"aria-autocomplete\": \"list\",\n \"aria-controls\": y,\n \"aria-activedescendant\": U,\n \"data-select-search\": \"true\"\n }\n ) }),\n /* @__PURE__ */ l(\"div\", { ref: V, className: \"max-h-60 overflow-auto\", children: L.length > 0 ? L.map((T, K) => /* @__PURE__ */ C(\n \"div\",\n {\n id: g(K),\n className: N(\n \"flex items-center cursor-pointer transition-colors\",\n \"hover:bg-accent/10 focus:bg-accent/10\",\n ke[s].options,\n T.disabled && \"opacity-50 cursor-not-allowed\",\n K === B && \"bg-accent/20\",\n a === T.value && \"bg-accent/30\"\n ),\n onClick: () => ue(T),\n role: \"option\",\n \"aria-selected\": a === T.value,\n \"aria-disabled\": T.disabled,\n \"data-select-option\": \"true\",\n \"data-value\": T.value,\n \"data-highlighted\": K === B,\n \"data-option-index\": K,\n children: [\n /* @__PURE__ */ C(\"div\", { className: \"flex-1 min-w-0\", children: [\n /* @__PURE__ */ l(\"div\", { className: \"font-medium\", children: T.text }),\n T.description && /* @__PURE__ */ l(\"div\", { className: \"text-xs opacity-70 mt-0.5\", children: T.description })\n ] }),\n a === T.value && /* @__PURE__ */ l(xe, { size: 16, className: \"ml-2 text-primary flex-shrink-0\" })\n ]\n },\n T.value\n )) : /* @__PURE__ */ l(\"div\", { className: \"px-3 py-2 text-sm opacity-70 text-center\", children: r && E ? \"No results found\" : \"No options available\" }) })\n ]\n }\n )\n ]\n }\n );\n}\nconst xr = {\n thin: {\n horizontal: \"h-px\",\n vertical: \"w-px\"\n },\n medium: {\n horizontal: \"h-0.5\",\n vertical: \"w-0.5\"\n },\n thick: {\n horizontal: \"h-1\",\n vertical: \"w-1\"\n },\n \"extra-thick\": {\n horizontal: \"h-2\",\n vertical: \"w-2\"\n }\n}, yr = {\n horizontal: \"w-full\",\n vertical: \"min-h-4 h-full\"\n};\nfunction ln({\n orientation: n = \"horizontal\",\n decorative: a = !1,\n thickness: t = \"thin\",\n className: r,\n ...e\n}) {\n const o = N(\n \"shrink-0 bg-border\",\n yr[n],\n xr[t][n],\n r\n );\n return /* @__PURE__ */ l(\n \"div\",\n {\n ...e,\n className: o,\n role: a ? \"presentation\" : \"separator\",\n \"aria-orientation\": a ? void 0 : n,\n \"aria-hidden\": a,\n \"data-orientation\": n,\n \"data-thickness\": t\n }\n );\n}\nconst Ce = {\n shape: {\n rectangle: \"rounded-md min-h-1\",\n circle: \"rounded-full aspect-square min-h-1\",\n text: \"rounded-sm min-h-1 h-4\"\n },\n lineSpacing: {\n xs: \"space-y-1\",\n sm: \"space-y-2\",\n md: \"space-y-3\",\n lg: \"space-y-4\",\n xl: \"space-y-6\"\n }\n};\nfunction cn({\n shape: n = \"rectangle\",\n lineSpacing: a = \"sm\",\n className: t,\n lines: r = 1,\n animate: e = !0,\n ref: o,\n ...s\n}) {\n const i = N(\"bg-muted/70\", e && \"animate-pulse\", Ce.shape[n], t);\n return r > 1 ? /* @__PURE__ */ l(\n \"div\",\n {\n ref: o,\n className: Ce.lineSpacing[a],\n role: \"presentation\",\n \"aria-hidden\": \"true\",\n \"data-testid\": \"skeleton-container\",\n \"data-lines\": r,\n \"data-shape\": n,\n \"data-animate\": e,\n ...s,\n children: Array.from({ length: r }, (c, f) => /* @__PURE__ */ l(\n \"div\",\n {\n className: N(\n i,\n // Make last line shorter for a more natural text appearance\n f === r - 1 && \"w-3/4\"\n ),\n role: \"presentation\",\n \"aria-hidden\": \"true\",\n \"data-testid\": \"skeleton-line\",\n \"data-line-index\": f\n },\n f\n ))\n }\n ) : /* @__PURE__ */ l(\n \"div\",\n {\n ref: o,\n className: i,\n role: \"presentation\",\n \"aria-hidden\": \"true\",\n \"data-testid\": \"skeleton\",\n \"data-shape\": n,\n \"data-animate\": e,\n ...s\n }\n );\n}\nfunction dn({\n id: n,\n value: a,\n defaultValue: t = 0,\n onValueChange: r,\n min: e = 0,\n max: o = 100,\n step: s = 1,\n disabled: i = !1,\n trackClassName: c,\n rangeClassName: f,\n thumbClassName: m,\n className: d,\n ref: p,\n ariaLabel: u,\n ariaLabelledBy: v,\n ...b\n}) {\n const [h, y] = $(t), g = a !== void 0, w = g ? a : h, x = M(null), E = M(!1), A = M(0), k = S(\n (L) => {\n const D = Math.max(e, Math.min(o, L)), B = Math.round(D / s) * s;\n g || y(B), r == null || r(B);\n },\n [e, o, s, g, r]\n ), z = S(\n (L, D = !1) => {\n var X;\n const B = (X = x.current) == null ? void 0 : X.getBoundingClientRect();\n if (!B) return w;\n let Z = L.clientX;\n D && (Z = Z - A.current);\n const U = Math.max(0, Math.min(1, (Z - B.left) / B.width));\n return e + (o - e) * U;\n },\n [e, o, w]\n ), R = S(\n (L) => {\n if (i || L.target !== L.currentTarget) return;\n const D = z(L);\n k(D);\n },\n [i, z, k]\n ), V = S(\n (L) => {\n var X;\n if (i) return;\n L.stopPropagation(), E.current = !0;\n const D = (X = x.current) == null ? void 0 : X.getBoundingClientRect(), B = L.currentTarget.getBoundingClientRect();\n if (D && B) {\n const G = B.left + B.width / 2;\n A.current = L.clientX - G;\n }\n L.currentTarget.setPointerCapture(L.pointerId);\n const Z = (G) => {\n if (!E.current) return;\n const O = z(G, !0);\n k(O);\n }, U = (G) => {\n if (G.pointerId === L.pointerId) {\n E.current = !1, A.current = 0;\n try {\n L.currentTarget.releasePointerCapture(G.pointerId);\n } catch {\n }\n document.removeEventListener(\"pointermove\", Z), document.removeEventListener(\"pointerup\", U);\n }\n };\n document.addEventListener(\"pointermove\", Z), document.addEventListener(\"pointerup\", U);\n },\n [i, z, k]\n ), q = S(\n (L) => {\n if (i) return;\n let D = w;\n switch (L.key) {\n case \"ArrowRight\":\n case \"ArrowUp\":\n D = w + s;\n break;\n case \"ArrowLeft\":\n case \"ArrowDown\":\n D = w - s;\n break;\n case \"Home\":\n D = e;\n break;\n case \"End\":\n D = o;\n break;\n case \"PageUp\":\n D = w + s * 10;\n break;\n case \"PageDown\":\n D = w - s * 10;\n break;\n default:\n return;\n }\n L.preventDefault(), k(D);\n },\n [i, w, s, e, o, k]\n ), W = o === e ? 0 : (w - e) / (o - e) * 100;\n return /* @__PURE__ */ l(\n \"div\",\n {\n id: n,\n ref: p,\n className: j(\n \"relative flex items-center w-full touch-none select-none\",\n i && \"opacity-50 cursor-not-allowed\",\n d\n ),\n \"data-disabled\": i,\n \"data-value\": w,\n \"data-min\": e,\n \"data-max\": o,\n \"data-step\": s,\n ...b,\n children: /* @__PURE__ */ C(\n \"div\",\n {\n ref: x,\n className: j(\n \"relative h-1.5 w-full rounded-full bg-muted cursor-pointer\",\n i && \"cursor-not-allowed\",\n c\n ),\n onPointerDown: R,\n children: [\n /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\n \"absolute h-full rounded-full pointer-events-none\",\n // pointer-events are disabled so that user interactions are handled by the track element, enabling correct slider behavior\n !E.current && \"transition-all\",\n f\n ),\n style: { width: `${W}%` }\n }\n ),\n /* @__PURE__ */ l(\n \"div\",\n {\n className: j(\n \"absolute size-5 -top-2 rounded-full shadow-md cursor-grab\",\n i && \"cursor-not-allowed\",\n !i && \"cursor-grab focus:outline-none focus:ring-2\",\n E.current ? \"cursor-grabbing scale-110\" : \"transition-all\",\n m\n ),\n style: { left: `calc(${W}% - 10px)` },\n tabIndex: i ? -1 : 0,\n role: \"slider\",\n \"aria-valuemin\": e,\n \"aria-valuemax\": o,\n \"aria-valuenow\": w,\n \"aria-label\": u,\n \"aria-labelledby\": v,\n \"aria-disabled\": i,\n onKeyDown: q,\n onPointerDown: V\n }\n )\n ]\n }\n )\n }\n );\n}\nfunction un({ children: n, ref: a, ...t }) {\n if (Be(n)) {\n let r = { ...t };\n return n.props && (r = { ...r, ...n.props }), Pe(n, {\n ...r,\n ref: (e) => {\n typeof a == \"function\" ? a(e) : a && (a.current = e);\n }\n });\n }\n return Ie(\"div\", { ...t, ref: a }, n);\n}\nconst wr = ({ defaultValue: n, value: a, onValueChange: t } = {}) => {\n const [r, e] = $(n || \"\"), o = a !== void 0, s = o ? a : r, i = S((c) => {\n o || e(c), t == null || t(c);\n }, [o, t]);\n return {\n value: s,\n onValueChange: i\n };\n};\nfunction fn({\n defaultValue: n,\n value: a,\n onValueChange: t,\n tabsWidth: r = \"fit\",\n variant: e = \"underline\",\n className: o,\n children: s,\n ref: i,\n id: c,\n triggersClassName: f,\n contentClassName: m\n}) {\n const { value: d, onValueChange: p } = wr({\n defaultValue: n,\n value: a,\n onValueChange: t\n }), u = {\n selectedValue: d,\n onValueChange: p,\n tabsWidth: r,\n variant: e,\n triggersClassName: f,\n contentClassName: m\n };\n return /* @__PURE__ */ l(Oe.Provider, { value: u, children: /* @__PURE__ */ l(\"div\", { id: c, ref: i, className: o, \"data-tabs-width\": r, \"data-variant\": e, children: s }) });\n}\nfunction mn({ value: n, className: a, children: t, ref: r }) {\n const { selectedValue: e, contentClassName: o } = we(), s = e === n;\n return s ? /* @__PURE__ */ l(\n \"div\",\n {\n ref: r,\n role: \"tabpanel\",\n id: `tabs-content-${n}`,\n \"aria-labelledby\": `tabs-trigger-${n}`,\n \"data-state\": s ? \"active\" : \"inactive\",\n \"data-value\": n,\n className: N(\"mt-4 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2\", o, a),\n tabIndex: 0,\n children: t\n }\n ) : null;\n}\nconst ze = {\n width: {\n fit: \"w-fit\",\n full: \"w-full *:flex-1\"\n },\n variant: {\n underline: \"border-b border-border\",\n pills: \"\",\n bordered: \"border border-border rounded-lg p-1\"\n }\n}, Nr = {\n underline: \"border-b-2 border-transparent data-[state=active]:border-accent data-[state=active]:text-accent hover:text-accent-foreground\",\n pills: \"rounded-md data-[state=active]:bg-accent data-[state=active]:text-accent-foreground hover:bg-accent/30\",\n bordered: \"rounded data-[state=active]:bg-accent data-[state=active]:text-accent-foreground hover:bg-accent/30\"\n};\nfunction pn({ children: n, className: a, id: t, ref: r }) {\n const { tabsWidth: e, variant: o } = we();\n return /* @__PURE__ */ l(\n \"div\",\n {\n id: t,\n ref: r,\n role: \"tablist\",\n className: N(\"flex\", ze.width[e], ze.variant[o], a),\n \"data-tabs-width\": e,\n \"data-variant\": o,\n children: n\n }\n );\n}\nfunction hn({ value: n, disabled: a = !1, className: t, children: r, onClick: e, id: o, ref: s }) {\n const { selectedValue: i, onValueChange: c, variant: f, triggersClassName: m } = we(), d = i === n, p = (v) => {\n a || c(n), e == null || e(v);\n };\n return /* @__PURE__ */ l(\n \"button\",\n {\n id: o,\n ref: s,\n role: \"tab\",\n type: \"button\",\n \"aria-selected\": d,\n \"aria-controls\": `tabs-content-${n}`,\n \"data-state\": d ? \"active\" : \"inactive\",\n \"data-value\": n,\n disabled: a,\n className: N(\n \"inline-flex items-center justify-center whitespace-nowrap px-3 py-2 text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n d ? \"font-medium\" : \"font-light\",\n Nr[f],\n m,\n t\n ),\n onClick: p,\n children: r\n }\n );\n}\nfunction Er({ elementId: n, maxLength: a }) {\n const [t, r] = $(0);\n return I(() => {\n const e = document.getElementById(n);\n if (!e)\n return;\n const o = () => {\n const s = e.value.length;\n r(s);\n const i = s >= a;\n e.setAttribute(\"aria-describedby\", `${n}-character-count`), e.setAttribute(\"aria-invalid\", i ? \"true\" : \"false\"), i ? e.setAttribute(\"data-error\", \"true\") : e.removeAttribute(\"data-error\");\n };\n return o(), e.addEventListener(\"input\", o), e.setAttribute(\"maxlength\", String(a)), () => {\n e.removeEventListener(\"input\", o), e.removeAttribute(\"maxlength\"), e.removeAttribute(\"aria-describedby\"), e.removeAttribute(\"aria-invalid\"), e.removeAttribute(\"data-error\");\n };\n }, [n, a]), /* @__PURE__ */ l(\n \"small\",\n {\n className: N(\n \"mt-0.5 text-sm inline-flex items-center gap-1 w-full justify-end\",\n t >= a && \"text-destructive\",\n t < a && \"text-current\"\n ),\n role: \"status\",\n children: /* @__PURE__ */ C(\"span\", { id: `${n}-character-count`, children: [\n t,\n \" / \",\n a,\n \" characters\"\n ] })\n }\n );\n}\nfunction kr(n, a) {\n I(() => {\n const t = document.getElementById(n);\n if (!t)\n return;\n if (!a) {\n t.style.height = \"auto\";\n return;\n }\n const r = () => {\n t.style.height = \"auto\", t.style.height = `${t.scrollHeight}px`;\n };\n return r(), t.addEventListener(\"input\", r), t.addEventListener(\"resize\", r), window.addEventListener(\"resize\", r), () => {\n t.removeEventListener(\"input\", r), t.removeEventListener(\"resize\", r), window.removeEventListener(\"resize\", r);\n };\n }, [n, a]);\n}\nconst Cr = {\n base: \"\",\n \"left-line\": \"border-l border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\",\n outline: \"border border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\"\n}, zr = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"px-3 rounded-full\"\n}, $e = {\n variant: \"outline\",\n rounded: \"none\"\n};\nfunction bn({\n variant: n = $e.variant,\n rounded: a,\n displayOnlyMode: t = !1,\n errorMessage: r,\n successMessage: e,\n hideResizeHandle: o = !1,\n autoExpand: s = !1,\n characterLimit: i = 0,\n className: c,\n ...f\n}) {\n const m = P();\n kr(m, s || t);\n let d = a;\n n === \"outline\" && !a && (d = \"md\"), d = d || $e.rounded;\n let p = o;\n (t || n === \"left-line\" && !o) && (p = !0);\n const v = N(\n \"appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted/70 hide-number-input-arrows transition-all\",\n !t && Cr[n],\n !t && zr[d],\n !t && \"px-2 py-1\",\n t && \"pointer-events-none\",\n p && \"no-resize-handle\",\n c\n );\n return /* @__PURE__ */ C(\"div\", { className: N(\"-space-y-1.5\", t && \"cursor-text\"), children: [\n /* @__PURE__ */ l(\n \"textarea\",\n {\n ...f,\n id: m,\n \"aria-disabled\": f.disabled,\n readOnly: t,\n \"aria-readonly\": t || f[\"aria-readonly\"],\n style: {\n resize: s ? \"none\" : void 0\n },\n className: v\n }\n ),\n i > 0 && /* @__PURE__ */ l(Er, { elementId: m, maxLength: i }),\n !t && /* @__PURE__ */ l(de, { elementId: m, type: \"error\", message: r }),\n !t && /* @__PURE__ */ l(de, { elementId: m, type: \"success\", message: e })\n ] });\n}\nconst $r = {\n sm: {\n container: \"h-5 min-w-9 w-9\",\n thumb: \"h-4 w-4\",\n translate: \"translate-x-4\"\n },\n md: {\n container: \"h-6 min-w-11 w-11\",\n thumb: \"h-5 w-5\",\n translate: \"translate-x-5\"\n },\n lg: {\n container: \"h-7 min-w-13 w-13\",\n thumb: \"h-6 w-6\",\n translate: \"translate-x-6\"\n }\n}, Sr = {\n default: {\n unchecked: \"bg-muted\",\n checked: \"bg-primary\"\n },\n success: {\n unchecked: \"bg-muted\",\n checked: \"bg-success\"\n },\n destructive: {\n unchecked: \"bg-muted\",\n checked: \"bg-destructive\"\n }\n}, Se = {\n variant: \"default\",\n size: \"md\"\n};\nfunction vn({\n ref: n,\n id: a,\n size: t = Se.size,\n variant: r = Se.variant,\n checked: e,\n onCheckedChange: o,\n disabled: s = !1,\n className: i,\n thumbClassName: c,\n backgroundClassNames: f,\n ...m\n}) {\n const d = P(), p = _(() => a || `toggle-${d}`, [a, d]), [u, v] = $(e);\n I(() => {\n v(e);\n }, [e]);\n const b = () => {\n if (!s) {\n const E = !u;\n e === void 0 && v(E), o == null || o(E);\n }\n }, h = (E) => {\n (E.key === \" \" || E.key === \"Enter\") && (E.preventDefault(), b());\n }, y = $r[t], g = Sr[r], w = N(\n // Base styles\n \"relative inline-flex items-center rounded-full transition-all duration-200 ease-in-out\",\n \"focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2\",\n // Size\n y.container,\n // Variant and state\n u ? (f == null ? void 0 : f.checked) || g.checked : (f == null ? void 0 : f.unchecked) || g.unchecked,\n // Disabled state\n s && \"opacity-50 cursor-not-allowed\",\n !s && \"cursor-pointer\",\n i\n ), x = N(\n // Base thumb styles\n \"absolute left-0.5 top-1/2 -translate-y-1/2 rounded-full bg-white shadow-sm transition-transform duration-200 ease-in-out\",\n // Size\n y.thumb,\n // Position based on state\n u && y.translate,\n c\n );\n return /* @__PURE__ */ C(\n \"button\",\n {\n ref: n,\n id: p,\n type: \"button\",\n role: \"switch\",\n tabIndex: 0,\n \"aria-checked\": u,\n \"aria-disabled\": s,\n disabled: s,\n onClick: b,\n onKeyDown: h,\n className: w,\n ...m,\n children: [\n /* @__PURE__ */ l(\"span\", { className: x }),\n /* @__PURE__ */ l(\"span\", { className: \"sr-only\", children: u ? \"Enabled\" : \"Disabled\" })\n ]\n }\n );\n}\nconst le = 8, ce = 4, Y = 6;\nfunction Ir(n) {\n return { calculatePosition: S(\n (t, r) => {\n const e = t.getBoundingClientRect(), o = r.getBoundingClientRect(), s = {\n width: window.innerWidth,\n height: window.innerHeight\n }, i = (p, u, v, b) => p < 0 || u < 0 || p + v > s.width || u + b > s.height, c = {\n top: {\n x: e.left + e.width / 2 - o.width / 2,\n y: e.top - o.height - ce,\n arrow: {\n x: o.width / 2 - Y,\n y: o.height\n }\n },\n bottom: {\n x: e.left + e.width / 2 - o.width / 2,\n y: e.bottom + ce,\n arrow: {\n x: o.width / 2 - Y,\n y: -6\n }\n },\n left: {\n x: e.left - o.width - ce,\n y: e.top + e.height / 2 - o.height / 2,\n arrow: {\n x: o.width,\n y: o.height / 2 - Y\n }\n },\n right: {\n x: e.right + ce,\n y: e.top + e.height / 2 - o.height / 2,\n arrow: {\n x: -6,\n y: o.height / 2 - Y\n }\n }\n };\n let f = n, m = c[n];\n if (i(m.x, m.y, o.width, o.height)) {\n const p = {\n top: \"bottom\",\n bottom: \"top\",\n left: \"right\",\n right: \"left\"\n }, u = c[p[n]];\n if (!i(u.x, u.y, o.width, o.height))\n f = p[n], m = u;\n else {\n const v = [\"top\", \"bottom\", \"left\", \"right\"].filter(\n (b) => b !== n && b !== p[n]\n );\n for (const b of v) {\n const h = c[b];\n if (!i(h.x, h.y, o.width, o.height)) {\n f = b, m = h;\n break;\n }\n }\n }\n }\n m.x = Math.max(\n le,\n Math.min(m.x, s.width - o.width - le)\n ), m.y = Math.max(\n le,\n Math.min(m.y, s.height - o.height - le)\n );\n const d = {\n x: e.left + e.width / 2,\n y: e.top + e.height / 2\n };\n return f === \"top\" || f === \"bottom\" ? m.arrow.x = Math.max(\n Y,\n Math.min(d.x - m.x - Y, o.width - Y * 2)\n ) : m.arrow.y = Math.max(\n Y,\n Math.min(d.y - m.y - Y, o.height - Y * 2)\n ), {\n ...m,\n placement: f\n };\n },\n [n]\n ) };\n}\nfunction Ar(n, a, t) {\n const r = M(null), e = M(null), o = S(() => {\n if (!r.current || !e.current) return;\n const s = n(r.current, e.current);\n t(s);\n }, [n, t]);\n return I(() => {\n if (!a) return;\n const s = () => o();\n return window.addEventListener(\"resize\", s), () => {\n window.removeEventListener(\"resize\", s);\n };\n }, [a, o]), {\n triggerRef: r,\n tooltipRef: e,\n updatePosition: o\n };\n}\nfunction Dr(n, a, t, r, e, o, s, i, c) {\n const f = M(null), m = S(() => {\n n || (f.current && clearTimeout(f.current), f.current = window.setTimeout(() => {\n t(!0), requestAnimationFrame(() => {\n e(), r(!0);\n });\n }, a));\n }, [n, a, t, e, r]), d = S(\n (p = !1) => {\n if (f.current && clearTimeout(f.current), p) {\n r(!1), setTimeout(() => t(!1), 150);\n return;\n }\n f.current = window.setTimeout(() => {\n r(!1), setTimeout(() => t(!1), 150);\n }, 100);\n },\n [r, t]\n );\n return I(() => {\n !o && !s && !i && c && d();\n }, [o, s, i, c, d]), I(() => () => {\n f.current && clearTimeout(f.current);\n }, []), {\n showTooltip: m,\n hideTooltip: d,\n timeoutRef: f\n };\n}\nfunction gn({\n id: n,\n children: a,\n message: t,\n placement: r = \"top\",\n disabled: e = !1,\n delay: o = 200,\n className: s\n}) {\n const [i, c] = $(!1), [f, m] = $(!1), [d, p] = $(null), [u, v] = $(!1), [b, h] = $(!1), [y, g] = $(!1), { calculatePosition: w } = Ir(r), { triggerRef: x, tooltipRef: E, updatePosition: A } = Ar(w, f, p), { showTooltip: k, hideTooltip: z, timeoutRef: R } = Dr(\n e,\n o,\n m,\n c,\n A,\n u,\n b,\n y,\n i\n ), V = P(), q = n ?? V;\n return /* @__PURE__ */ C(Q, { children: [\n F.cloneElement(a, {\n ref: (W) => {\n x.current = W;\n },\n onMouseEnter: () => {\n v(!0), k();\n },\n onMouseLeave: () => {\n v(!1);\n },\n onFocus: () => {\n g(!0), k();\n },\n onBlur: () => {\n g(!1), z(!0);\n },\n onKeyDown: (W) => {\n W.key === \"Escape\" && z(!0);\n },\n \"aria-describedby\": e ? void 0 : q\n }),\n f && ae(\n /* @__PURE__ */ l(\n \"div\",\n {\n ref: E,\n id: q,\n role: \"tooltip\",\n className: N(\n \"fixed z-50 px-2 py-1 text-sm rounded shadow-lg bg-popover text-popover-foreground pointer-events-auto transition-all duration-150 ease-out\",\n i ? \"opacity-100\" : \"opacity-0\",\n s\n ),\n style: d ? { left: d.x, top: d.y } : { opacity: 0 },\n onMouseEnter: () => {\n h(!0), R.current && clearTimeout(R.current);\n },\n onMouseLeave: () => {\n h(!1);\n },\n children: t\n }\n ),\n document.body\n )\n ] });\n}\nexport {\n Kr as Accordion,\n pe as AccordionItem,\n wn as ActionModal,\n Wr as Badge,\n ut as Button,\n Fr as Callout,\n Hr as Card,\n _r as Carousel,\n qr as Checkbox,\n Zr as Clickable,\n Gr as Code,\n Ur as CodeBlock,\n Yr as Disclosure,\n Xr as Drawer,\n Jr as DropdownMenu,\n Qr as DropdownMenuFactories,\n Or as Input,\n en as Label,\n it as LoadingDots,\n tn as Modal,\n rn as Pagination,\n nn as Panel,\n qt as Popover,\n on as RadioGroup,\n ve as RadioGroupItem,\n mr as RadioInput,\n an as ScrollArea,\n sn as Select,\n ln as Separator,\n cn as Skeleton,\n dn as Slider,\n un as Slot,\n fn as Tabs,\n mn as TabsContent,\n pn as TabsList,\n hn as TabsTrigger,\n bn as Textarea,\n Nn as Toast,\n vn as Toggle,\n gn as Tooltip\n};\n//# sourceMappingURL=components.esm.js.map\n","import { Modal, ModalProps } from '@moondreamsdev/dreamer-ui/components';\nimport React, { useMemo } from 'react';\n\ninterface BaseActionModalProps extends Omit<ModalProps, 'children' | 'actions'> {\n message: React.ReactNode;\n destructive?: boolean;\n}\n\ninterface AlertModalProps extends BaseActionModalProps {\n type: 'alert';\n confirmText?: string;\n onConfirm?: () => void;\n // Cancel-related props are not allowed for alerts\n cancelText?: never;\n}\n\ninterface ConfirmModalProps extends BaseActionModalProps {\n type: 'confirm';\n confirmText?: string;\n cancelText?: string;\n onConfirm?: () => void;\n}\n\nexport type ActionModalProps = AlertModalProps | ConfirmModalProps;\n\nexport function ActionModal({\n type,\n message,\n cancelText,\n confirmText,\n onConfirm,\n onClose,\n destructive = false,\n title,\n ...modalProps\n}: ActionModalProps) {\n const defaultTexts = useMemo(() => {\n if (type === 'confirm') {\n return {\n confirm: confirmText || 'Confirm',\n cancel: cancelText || 'Cancel',\n defaultTitle: title || 'Confirm Action',\n };\n }\n return {\n confirm: confirmText || 'OK',\n cancel: null,\n defaultTitle: title || 'Alert',\n };\n }, [type, confirmText, title, cancelText]);\n\n const actions: ModalProps['actions'] = useMemo(\n () => [\n ...(defaultTexts.cancel\n ? [\n {\n label: defaultTexts.cancel,\n variant: 'secondary' as const,\n onClick: onClose,\n },\n ]\n : []),\n {\n label: defaultTexts.confirm,\n variant: destructive ? 'destructive' : 'primary',\n onClick: () => {\n onConfirm?.();\n onClose();\n },\n },\n ],\n [defaultTexts, destructive, onConfirm, onClose]\n );\n\n return (\n <Modal\n {...modalProps}\n title={title || defaultTexts.defaultTitle}\n onClose={onClose}\n actions={actions}\n disableCloseOnOverlayClick={type === 'confirm'}\n hideCloseButton={type === 'confirm'}\n >\n {typeof message === 'string' ? <p className='text-sm'>{message}</p> : message}\n </Modal>\n );\n}\n","import { createContext, useContext } from 'react';\n\nexport interface DropdownMenuContextFocus {\n level: number;\n index: number;\n}\n\nexport interface DropdownMenuContextValue {\n id: string;\n focus: DropdownMenuContextFocus | null;\n setFocus: (focus: DropdownMenuContextFocus | null) => void;\n isOpen: boolean;\n onItemSelect: (value: string) => void;\n onClose: () => void;\n className?: string;\n}\n\nexport const DropdownMenuContext = createContext<DropdownMenuContextValue | null>(null);\n\nexport const useDropdownMenuContext = () => {\n const context = useContext(DropdownMenuContext);\n if (!context) {\n throw new Error('DropdownMenu components must be used within a DropdownMenu component');\n }\n return context;\n};\n","import { createContext, useContext } from 'react';\nimport { TabsVariant, TabsWidth } from './variants';\n\nexport interface TabsContextValue {\n selectedValue: string;\n onValueChange: (value: string) => void;\n tabsWidth: TabsWidth;\n variant: TabsVariant;\n triggersClassName?: string;\n contentClassName?: string;\n}\n\nexport const TabsContext = createContext<TabsContextValue | null>(null);\n\nexport const useTabsContext = () => {\n const context = useContext(TabsContext);\n if (!context) {\n throw new Error('Tabs components must be used within a Tabs component');\n }\n return context;\n};\n","import { ReactNode, useCallback, useEffect, useState } from 'react';\nimport { CrossCircled, ExclamationTriangle, InfoCircled, X } from '../../symbols';\nimport { join } from '../../utils';\nexport type ToastType = 'info' | 'warning' | 'error';\n\nexport interface ToastAction {\n label: string;\n onClick: () => void;\n}\n\n/** Data for a toast notification */\nexport interface ToastData {\n id: string;\n title: string;\n description?: string;\n type?: ToastType;\n action?: ToastAction;\n duration?: number;\n onRemove?: (id: string) => void;\n}\n\ninterface ToastProps extends ToastData {\n customTypes?: Record<string, { className: string; icon?: ReactNode }>;\n customComponent?: React.ComponentType<ToastData>;\n}\n\nconst defaultTypeStyles: Record<ToastType, { className: string; icon: ReactNode }> = {\n info: {\n className: 'bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100',\n icon: <InfoCircled size={20} />,\n },\n warning: {\n className:\n 'bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100',\n icon: <ExclamationTriangle size={20} />,\n },\n error: {\n className: 'bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100',\n icon: <CrossCircled size={20} />,\n },\n};\n\nexport function Toast({\n id,\n title,\n description,\n type = 'info',\n action,\n duration = 5000,\n onRemove,\n customTypes,\n customComponent: CustomComponent,\n}: ToastProps) {\n const [isExiting, setIsExiting] = useState(false);\n\n const handleRemove = useCallback(() => {\n setIsExiting(true);\n setTimeout(() => {\n onRemove?.(id);\n }, 150); // Match animation duration\n }, [id, onRemove]);\n\n useEffect(() => {\n if (duration > 0) {\n const timer = setTimeout(() => {\n handleRemove();\n }, duration);\n\n return () => clearTimeout(timer);\n }\n }, [duration, id, onRemove, handleRemove]);\n\n if (CustomComponent) {\n return (\n <CustomComponent\n id={id}\n title={title}\n description={description}\n type={type}\n action={action}\n duration={duration}\n onRemove={onRemove}\n />\n );\n }\n\n // Check custom types first, then fall back to default\n const typeStyle = customTypes?.[type] || defaultTypeStyles[type as ToastType] || defaultTypeStyles.info;\n\n return (\n <div\n role={type === 'error' ? 'alert' : 'status'}\n aria-live={type === 'error' ? undefined : 'polite'}\n className={join(\n 'relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out',\n action && 'pb-3',\n typeStyle.className,\n isExiting ? 'opacity-0 translate-x-full' : 'opacity-100 translate-x-0'\n )}\n >\n {/* Icon */}\n <div className='flex-shrink-0 mr-3'>{typeStyle.icon}</div>\n\n {/* Content */}\n <div className='flex-grow min-w-0'>\n <div className='font-medium text-sm leading-5'>{title}</div>\n {description && <div className='mt-1 text-sm opacity-90 leading-5'>{description}</div>}\n {action && (\n <div className='mt-1.5'>\n <button\n onClick={action.onClick}\n className='text-sm font-medium underline hover:no-underline focus:outline-none focus:ring-1 focus:ring-current rounded px-1 py-0.5 hover:cursor-pointer'\n >\n {action.label}\n </button>\n </div>\n )}\n </div>\n\n {/* Close button */}\n <button\n onClick={handleRemove}\n className='flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0'\n >\n <X size={16} />\n </button>\n </div>\n );\n}\n"],"names":["n","t","s","h","C","l","i","e","N","it","a","$","I","r","lt","ct","dt","be","ut","o","c","f","or","ar","sr","M","S","tn","d","p","u","P","v","b","y","g","F","w","x","E","A","k","Q","ae","j","oe","ActionModal","type","message","cancelText","confirmText","onConfirm","onClose","destructive","title","modalProps","defaultTexts","useMemo","actions","jsx","Modal","DropdownMenuContext","createContext","useDropdownMenuContext","context","useContext","TabsContext","useTabsContext","defaultTypeStyles","InfoCircled","ExclamationTriangle","CrossCircled","Toast","id","description","action","duration","onRemove","customTypes","CustomComponent","isExiting","setIsExiting","useState","handleRemove","useCallback","useEffect","timer","typeStyle","jsxs","join","X"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),e=require("react"),D=require("react-dom"),b=require("./X-CgjeP2OI.cjs"),S=require("./join-BVMUUvyP.cjs");function g(...t){return t.filter(r=>typeof r=="string"&&r).join(" ").trim()||void 0}function B({size:t=15,color:r="currentColor",className:o="inline",...l}){return n.jsx("svg",{...l,width:t,height:t,className:o,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"})})}function p(...t){return t.filter(r=>typeof r=="string"&&r).join(" ").trim()||void 0}e.createContext(void 0);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(void 0);e.createContext(void 0);e.createContext(null);e.createContext(void 0);e.createContext(void 0);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);function I(){const[t,r]=e.useState(0);return e.useEffect(()=>{const o=setInterval(()=>{r(l=>(l+1)%3)},500);return()=>clearInterval(o)},[]),n.jsx("div",{className:"absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle",children:[0,1,2].map(o=>n.jsx("div",{className:g("rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current",t===o&&"transform -translate-y-1")},o))})}const O={base:"",primary:"bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80",tertiary:"text-primary hover:text-primary-foreground disabled:text-muted",outline:"border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted",link:"underline-offset-4 hover:underline disabled:underline disabled:text-muted",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground"},$={stripped:"",fitted:"size-fit",sm:"px-2 py-1 text-sm",md:"px-4 py-2 text-base",lg:"px-6 py-3 text-lg",icon:"p-1 w-fit aspect-square",full:"p-2 w-full"},F={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},v={variant:"primary",size:"md",rounded:"md"};function H({variant:t=v.variant,size:r,rounded:o=v.rounded,loading:l,className:s,...a}){let i;t==="link"&&!r?i="fitted":i=r||v.size;const c=g("appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all",O[t],$[i],F[o],l&&"relative pointer-events-none",s);if(a.href&&!a.disabled)return n.jsx("a",{...a,rel:a.rel?a.rel:a.target==="_blank"?"noopener noreferrer":void 0,"aria-label":a["aria-label"],"aria-description":a["aria-description"],href:a.href,className:c,children:a.children});const u=a;return n.jsxs("button",{...u,"aria-label":u["aria-label"],"aria-description":u["aria-description"],"aria-disabled":u.disabled||l,"aria-busy":l,type:u.type??"button",className:c,children:[l&&n.jsx(I,{}),n.jsx("span",{className:g(l&&"invisible"),children:u.children})]})}function X(t){const[r,o]=e.useState(!1),[l,s]=e.useState(!1);return e.useEffect(()=>{t?(s(!0),setTimeout(()=>o(!0),10)):(o(!1),setTimeout(()=>s(!1),150))},[t]),{show:r,shouldRender:l}}function K(t,r){e.useEffect(()=>{const o=l=>{l.key==="Escape"&&t&&r()};return document.addEventListener("keydown",o),t&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",o),document.body.style.overflow="auto"}},[t,r])}function P(t,r){const o=e.useRef(null),l=e.useCallback(()=>{const s=document.getElementById(t);if(!s)return;const a=s.querySelectorAll('[data-modal-action="true"]');if(a.length>0){a[0].focus();return}const i=s.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(i.length>0){const c=Array.from(i).filter(u=>!(u instanceof HTMLButtonElement&&u.getAttribute("data-modal-close-button")==="true"));if(c.length>0){c[0].focus();return}i[0].focus();return}s.focus()},[t]);e.useEffect(()=>(r&&(o.current=document.activeElement,l()),()=>{document.body.style.overflow="auto",o.current instanceof HTMLElement&&o.current.focus()}),[r,l])}function V({id:t,isOpen:r,onClose:o,title:l,children:s,contentOnly:a=!1,className:i,overlayClassName:c,hideCloseButton:u=!1,actions:d=[],disableCloseOnOverlayClick:x=!1,ariaLabelledBy:f,ariaDescribedBy:C}){const m=e.useId(),y=t||`modal-${m}`,w=t?`${t}-title`:`modal-title-${m}`,{show:E,shouldRender:h}=X(r);if(P(y,h),K(h,o),!h)return null;const T=()=>l?e.isValidElement(l)?n.jsx("div",{className:"mb-4",children:l}):n.jsx("h2",{className:"mb-4 text-xl font-semibold",id:w,children:l}):null,L=()=>d.length===0?null:n.jsx("div",{className:"mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3",children:d.map((M,z)=>{const{label:A,...q}=M;return n.jsx(H,{...q,"data-modal-action":"true",children:A},z)})});return n.jsx(n.Fragment,{children:D.createPortal(n.jsx("div",{"aria-labelledby":f??l?w:void 0,"aria-describedby":C,role:"dialog","aria-modal":"true",className:"fixed inset-0 z-[100] overflow-y-auto",children:n.jsxs("div",{className:"flex min-h-screen items-center justify-center p-4",children:[n.jsx("div",{className:p("fixed inset-0 bg-black/20 transition-all",c),onClick:()=>{x||o()}}),a&&n.jsx("div",{className:p("relative w-fit",i),children:s}),!a&&n.jsxs("div",{id:y,tabIndex:-1,className:p("relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in duration-75",E?"opacity-100 scale-100":"opacity-0 scale-90",i),children:[!u&&n.jsx("button",{type:"button",onClick:o,"data-modal-close-button":"true",className:"rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0",children:n.jsx(B,{size:18})}),T(),s,L()]})]})}),document.body)})}function Z({type:t,message:r,cancelText:o,confirmText:l,onConfirm:s,onClose:a,destructive:i=!1,title:c,...u}){const d=e.useMemo(()=>t==="confirm"?{confirm:l||"Confirm",cancel:o||"Cancel",defaultTitle:c||"Confirm Action"}:{confirm:l||"OK",cancel:null,defaultTitle:c||"Alert"},[t,l,c,o]),x=e.useMemo(()=>[...d.cancel?[{label:d.cancel,variant:"secondary",onClick:a}]:[],{label:d.confirm,variant:i?"destructive":"primary",onClick:()=>{s==null||s(),a()}}],[d,i,s,a]);return n.jsx(V,{...u,title:c||d.defaultTitle,onClose:a,actions:x,disableCloseOnOverlayClick:t==="confirm",hideCloseButton:t==="confirm",children:typeof r=="string"?n.jsx("p",{className:"text-sm",children:r}):r})}const N=e.createContext(null),_=()=>{const t=e.useContext(N);if(!t)throw new Error("DropdownMenu components must be used within a DropdownMenu component");return t},k=e.createContext(null),G=()=>{const t=e.useContext(k);if(!t)throw new Error("Tabs components must be used within a Tabs component");return t},j={info:{className:"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",icon:n.jsx(b.InfoCircled,{size:20})},warning:{className:"bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",icon:n.jsx(b.ExclamationTriangle,{size:20})},error:{className:"bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",icon:n.jsx(b.CrossCircled,{size:20})}};function J({id:t,title:r,description:o,type:l="info",action:s,duration:a=5e3,onRemove:i,customTypes:c,customComponent:u}){const[d,x]=e.useState(!1),f=e.useCallback(()=>{x(!0),setTimeout(()=>{i==null||i(t)},150)},[t,i]);if(e.useEffect(()=>{if(a>0){const m=setTimeout(()=>{f()},a);return()=>clearTimeout(m)}},[a,t,i,f]),u)return n.jsx(u,{id:t,title:r,description:o,type:l,action:s,duration:a,onRemove:i});const C=(c==null?void 0:c[l])||j[l]||j.info;return n.jsxs("div",{role:l==="error"?"alert":"status","aria-live":l==="error"?void 0:"polite",className:S.join("relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",s&&"pb-3",C.className,d?"opacity-0 translate-x-full":"opacity-100 translate-x-0"),children:[n.jsx("div",{className:"flex-shrink-0 mr-3",children:C.icon}),n.jsxs("div",{className:"flex-grow min-w-0",children:[n.jsx("div",{className:"font-medium text-sm leading-5",children:r}),o&&n.jsx("div",{className:"mt-1 text-sm opacity-90 leading-5",children:o}),s&&n.jsx("div",{className:"mt-1.5",children:n.jsx("button",{onClick:s.onClick,className:"text-sm font-medium underline hover:no-underline focus:outline-none focus:ring-1 focus:ring-current rounded px-1 py-0.5 hover:cursor-pointer",children:s.label})})]}),n.jsx("button",{onClick:f,className:"flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0",children:n.jsx(b.X,{size:16})})]})}exports.ActionModal=Z;exports.DropdownMenuContext=N;exports.TabsContext=k;exports.Toast=J;exports.n=g;exports.useDropdownMenuContext=_;exports.useTabsContext=G;
|
|
2
|
+
//# sourceMappingURL=Toast-nhJijyay.cjs.map
|