@stackable-labs/embeddables 1.7.1 → 1.7.3

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/react.js CHANGED
@@ -1,30 +1,31 @@
1
- import { jsxs as z, jsx as c, Fragment as he } from "react/jsx-runtime";
1
+ import { jsxs as T, jsx as c, Fragment as he } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
- import G, { createContext as Qo, useState as U, useRef as ae, useEffect as B, useContext as er, useMemo as Mt, useCallback as Re, createElement as _e, forwardRef as Lt } from "react";
3
+ import G, { createContext as Qo, useState as U, useRef as ae, useEffect as B, useContext as er, useMemo as Mt, useCallback as _e, createElement as Re, forwardRef as Lt } from "react";
4
4
  import "react-dom";
5
5
  const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
6
6
  const o = ce.get(e.id);
7
7
  if (o) return o;
8
8
  const r = document.createElement("iframe");
9
- if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js"))
10
- r.src = e.bundleUrl;
11
- else {
9
+ if (r.setAttribute("sandbox", "allow-scripts allow-same-origin"), r.style.display = "none", r.style.width = "0", r.style.height = "0", r.style.border = "none", e.bundleUrl.startsWith("http") && !e.bundleUrl.endsWith(".js")) {
10
+ const i = new URL(e.bundleUrl);
11
+ i.searchParams.set("__extensionId", e.id), r.src = i.toString(), console.debug(`[SandboxManager] Creating dev sandbox for ${e.id}, injecting __extensionId via query param`);
12
+ } else {
12
13
  let i = "";
13
14
  try {
14
15
  i = await (await fetch(e.bundleUrl)).text();
15
- } catch (d) {
16
- console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, d);
16
+ } catch (u) {
17
+ console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, u);
17
18
  }
18
19
  const l = `<!DOCTYPE html>
19
20
  <html>
20
21
  <head><meta charset="utf-8"></head>
21
22
  <body>
22
23
  <div id="extension-root"></div>
23
- <script>var process = { env: { NODE_ENV: "production" } };<\/script>
24
+ <script>var __STACKABLE_EXTENSION_ID__ = ${JSON.stringify(e.id)}; var process = { env: { NODE_ENV: "production" } };<\/script>
24
25
  <script>${i}<\/script>
25
26
  </body>
26
27
  </html>`;
27
- r.srcdoc = l;
28
+ r.srcdoc = l, console.debug(`[SandboxManager] Creating srcdoc sandbox for ${e.id}, injecting __STACKABLE_EXTENSION_ID__ global`);
28
29
  }
29
30
  t.appendChild(r);
30
31
  const s = {
@@ -34,9 +35,8 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
34
35
  ready: !1,
35
36
  messageHandlers: /* @__PURE__ */ new Set()
36
37
  }, a = (i) => {
37
- if (i.source !== r.contentWindow) return;
38
38
  const l = i.data;
39
- (l == null ? void 0 : l.type) === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l));
39
+ !l || typeof l != "object" || !("type" in l) || ("extensionId" in l ? l.extensionId : void 0) !== e.id || (l.type === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((d) => d(l)));
40
40
  };
41
41
  return window.addEventListener("message", a), ce.set(e.id, s), s;
42
42
  }, We = (e, t) => {
@@ -85,7 +85,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
85
85
  if ((r == null ? void 0 : r.type) !== "capability-request") return;
86
86
  const n = r, s = n.extensionId;
87
87
  if (!s || !le(s)) {
88
- console.warn("Received capability request from unknown source");
88
+ console.warn(`Received capability request from unknown source (extensionId: "${s ?? "undefined"}", capability: ${n.capability})`);
89
89
  return;
90
90
  }
91
91
  const a = le(s);
@@ -122,21 +122,21 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
122
122
  default:
123
123
  throw new Error(`Unknown capability: ${n.capability}`);
124
124
  }
125
- const d = {
125
+ const u = {
126
126
  type: "capability-response",
127
127
  id: n.id,
128
128
  success: !0,
129
129
  data: l
130
130
  };
131
- We(s, d);
131
+ We(s, u);
132
132
  } catch (l) {
133
- const d = {
133
+ const u = {
134
134
  type: "capability-response",
135
135
  id: n.id,
136
136
  success: !1,
137
137
  error: l instanceof Error ? l.message : "Unknown error"
138
138
  };
139
- We(s, d);
139
+ We(s, u);
140
140
  }
141
141
  };
142
142
  return window.addEventListener("message", t), () => {
@@ -157,21 +157,21 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
157
157
  if (!a.current) return;
158
158
  let l = !1;
159
159
  return (async () => {
160
- const u = a.current;
161
- if (u) {
160
+ const d = a.current;
161
+ if (d) {
162
162
  console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
163
163
  for (const f of e)
164
- f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
164
+ f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, d), console.log("[ExtensionProvider] Sandbox created for", f.id));
165
165
  i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
166
166
  }
167
167
  })(), () => {
168
- var u;
168
+ var d;
169
169
  l = !0;
170
170
  for (const f of e)
171
171
  or(f.id);
172
- (u = i.current) == null || u.call(i);
172
+ (d = i.current) == null || d.call(i);
173
173
  };
174
- }, [e, t]), /* @__PURE__ */ z(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
174
+ }, [e, t]), /* @__PURE__ */ T(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
175
175
  /* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
176
176
  r
177
177
  ] });
@@ -183,23 +183,23 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
183
183
  fallback: n = null,
184
184
  render: s
185
185
  }) => {
186
- const { extensions: a, components: i, ready: l } = ir(), [d, u] = U({}), f = ae(""), m = Mt(
186
+ const { extensions: a, components: i, ready: l } = ir(), [u, d] = U({}), f = ae(""), m = Mt(
187
187
  () => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
188
188
  // eslint-disable-next-line react-hooks/exhaustive-deps
189
189
  [a.map((h) => h.id).join(","), e]
190
- ), g = Re(
191
- (h, y, R = 0) => {
192
- var E, _, b;
190
+ ), g = _e(
191
+ (h, y, _ = 0) => {
192
+ var E, R, b;
193
193
  if (h.type === "text")
194
194
  return h.text || null;
195
195
  if (!h.tag) return null;
196
196
  if (h.tag === "__fragment")
197
- return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((S, M) => g(S, y, M)) }, R);
197
+ return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((S, M) => g(S, y, M)) }, _);
198
198
  if (!lr(h.tag))
199
199
  return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
200
200
  const C = i[h.tag];
201
201
  if (!C)
202
- return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((S, M) => g(S, y, M)) }, R);
202
+ return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(G.Fragment, { children: (R = h.children) == null ? void 0 : R.map((S, M) => g(S, y, M)) }, _);
203
203
  const A = { ...h.attrs };
204
204
  if (h.actionId) {
205
205
  const S = h.actionId;
@@ -222,44 +222,44 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
222
222
  };
223
223
  }
224
224
  const P = (b = h.children) == null ? void 0 : b.map((S, M) => g(S, y, M));
225
- return /* @__PURE__ */ _e(C, { ...A, key: R }, P && P.length > 0 ? P : void 0);
225
+ return /* @__PURE__ */ Re(C, { ...A, key: _ }, P && P.length > 0 ? P : void 0);
226
226
  },
227
227
  [e, i]
228
228
  );
229
229
  if (B(() => {
230
- const h = m.map((R) => R.id).join(",");
231
- if (f.current !== h && (f.current = h, u({})), !l || m.length === 0) return;
232
- const y = (R) => {
233
- const C = R.data;
230
+ const h = m.map((_) => _.id).join(",");
231
+ if (f.current !== h && (f.current = h, d({})), !l || m.length === 0) return;
232
+ const y = (_) => {
233
+ const C = _.data;
234
234
  if (!(!C || typeof C != "object" || !m.some((P) => {
235
235
  const E = le(P.id);
236
- return E && R.source === E.iframe.contentWindow;
236
+ return E && _.source === E.iframe.contentWindow;
237
237
  }))) {
238
238
  if (C.type === "surface-update" && C.surfaceId === e) {
239
- const P = m.find((_) => {
240
- const b = le(_.id);
241
- return b && R.source === b.iframe.contentWindow;
239
+ const P = m.find((R) => {
240
+ const b = le(R.id);
241
+ return b && _.source === b.iframe.contentWindow;
242
242
  });
243
243
  if (!P) return;
244
- const E = g(C.tree, R.source ?? null);
245
- u((_) => ({
246
- ..._,
244
+ const E = g(C.tree, _.source ?? null);
245
+ d((R) => ({
246
+ ...R,
247
247
  [P.id]: E
248
248
  }));
249
249
  }
250
250
  C.type === "surface-ready" && C.surfaceId === e && t && m.forEach((P) => {
251
- var _;
251
+ var R;
252
252
  const E = le(P.id);
253
- (_ = E == null ? void 0 : E.iframe.contentWindow) == null || _.postMessage(
253
+ (R = E == null ? void 0 : E.iframe.contentWindow) == null || R.postMessage(
254
254
  { type: "context-update", surfaceId: e, context: t },
255
255
  "*"
256
256
  );
257
257
  });
258
258
  }
259
259
  };
260
- return window.addEventListener("message", y), m.forEach((R) => {
260
+ return window.addEventListener("message", y), m.forEach((_) => {
261
261
  var A;
262
- const C = le(R.id);
262
+ const C = le(_.id);
263
263
  (A = C == null ? void 0 : C.iframe.contentWindow) == null || A.postMessage(
264
264
  { type: "surface-render", surfaceId: e, context: t },
265
265
  "*"
@@ -271,18 +271,18 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
271
271
  return null;
272
272
  if (m.length === 0)
273
273
  return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
274
- const k = m.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), x = k.length > 0 ? k.flatMap((h, y, R) => {
274
+ const k = m.map((h) => ({ id: h.id, children: u[h.id] })).filter((h) => !!h.children), x = k.length > 0 ? k.flatMap((h, y, _) => {
275
275
  const C = s ? s({
276
276
  extensionId: h.id,
277
277
  children: h.children,
278
278
  index: y,
279
- total: R.length
279
+ total: _.length
280
280
  }) : /* @__PURE__ */ c(G.Fragment, { children: h.children }, h.id), A = /* @__PURE__ */ c(G.Fragment, { children: C }, `extension:${h.id}`);
281
281
  if (y === 0 || !r)
282
282
  return [A];
283
- const P = R[y - 1], E = typeof r == "function" ? r({
283
+ const P = _[y - 1], E = typeof r == "function" ? r({
284
284
  index: y,
285
- total: R.length,
285
+ total: _.length,
286
286
  previousExtensionId: P.id,
287
287
  extensionId: h.id
288
288
  }) : r;
@@ -311,8 +311,8 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
311
311
  for (const a of s) {
312
312
  const i = a.indexOf(":");
313
313
  if (i === -1) continue;
314
- const l = a.slice(0, i), d = a.slice(i + 1);
315
- l && d && cr(d) && r.push({ extensionId: l, bundleUrl: d });
314
+ const l = a.slice(0, i), u = a.slice(i + 1);
315
+ l && u && cr(u) && r.push({ extensionId: l, bundleUrl: u });
316
316
  }
317
317
  }
318
318
  return r;
@@ -405,7 +405,7 @@ const hr = Lt(
405
405
  children: s,
406
406
  iconNode: a,
407
407
  ...i
408
- }, l) => _e(
408
+ }, l) => Re(
409
409
  "svg",
410
410
  {
411
411
  ref: l,
@@ -419,7 +419,7 @@ const hr = Lt(
419
419
  ...i
420
420
  },
421
421
  [
422
- ...a.map(([d, u]) => _e(d, u)),
422
+ ...a.map(([u, d]) => Re(u, d)),
423
423
  ...Array.isArray(s) ? s : [s]
424
424
  ]
425
425
  )
@@ -432,7 +432,7 @@ const hr = Lt(
432
432
  */
433
433
  const L = (e, t) => {
434
434
  const o = Lt(
435
- ({ className: r, ...n }, s) => _e(hr, {
435
+ ({ className: r, ...n }, s) => Re(hr, {
436
436
  ref: s,
437
437
  iconNode: t,
438
438
  className: Ft(
@@ -523,17 +523,17 @@ const Ar = [
523
523
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
524
524
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
525
525
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
526
- ], Rr = L("circle-alert", Ar);
526
+ ], _r = L("circle-alert", Ar);
527
527
  /**
528
528
  * @license lucide-react v0.575.0 - ISC
529
529
  *
530
530
  * This source code is licensed under the ISC license.
531
531
  * See the LICENSE file in the root directory of this source tree.
532
532
  */
533
- const _r = [
533
+ const Rr = [
534
534
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
535
535
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
536
- ], Ir = L("circle-check", _r);
536
+ ], Ir = L("circle-check", Rr);
537
537
  /**
538
538
  * @license lucide-react v0.575.0 - ISC
539
539
  *
@@ -544,18 +544,18 @@ const Pr = [
544
544
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
545
545
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
546
546
  ["path", { d: "M12 17h.01", key: "p32p05" }]
547
- ], zr = L("circle-question-mark", Pr);
547
+ ], Tr = L("circle-question-mark", Pr);
548
548
  /**
549
549
  * @license lucide-react v0.575.0 - ISC
550
550
  *
551
551
  * This source code is licensed under the ISC license.
552
552
  * See the LICENSE file in the root directory of this source tree.
553
553
  */
554
- const Tr = [
554
+ const zr = [
555
555
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
556
556
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
557
557
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
558
- ], Mr = L("circle-x", Tr);
558
+ ], Mr = L("circle-x", zr);
559
559
  /**
560
560
  * @license lucide-react v0.575.0 - ISC
561
561
  *
@@ -604,17 +604,17 @@ const Wr = [
604
604
  * This source code is licensed under the ISC license.
605
605
  * See the LICENSE file in the root directory of this source tree.
606
606
  */
607
- const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", Vr);
607
+ const jr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", jr);
608
608
  /**
609
609
  * @license lucide-react v0.575.0 - ISC
610
610
  *
611
611
  * This source code is licensed under the ISC license.
612
612
  * See the LICENSE file in the root directory of this source tree.
613
613
  */
614
- const jr = [
614
+ const Vr = [
615
615
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
616
616
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
617
- ], Ye = L("mail", jr);
617
+ ], Ye = L("mail", Vr);
618
618
  /**
619
619
  * @license lucide-react v0.575.0 - ISC
620
620
  *
@@ -667,7 +667,7 @@ const Xr = [
667
667
  * This source code is licensed under the ISC license.
668
668
  * See the LICENSE file in the root directory of this source tree.
669
669
  */
670
- const Zr = [
670
+ const Kr = [
671
671
  [
672
672
  "path",
673
673
  {
@@ -678,7 +678,7 @@ const Zr = [
678
678
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
679
679
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
680
680
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
681
- ], Kr = L("package", Zr);
681
+ ], Zr = L("package", Kr);
682
682
  /**
683
683
  * @license lucide-react v0.575.0 - ISC
684
684
  *
@@ -768,17 +768,17 @@ const cn = [
768
768
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
769
769
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
770
770
  ], Ht = L("user", cn);
771
- function Vt(e) {
771
+ function jt(e) {
772
772
  var t, o, r = "";
773
773
  if (typeof e == "string" || typeof e == "number") r += e;
774
774
  else if (typeof e == "object") if (Array.isArray(e)) {
775
775
  var n = e.length;
776
- for (t = 0; t < n; t++) e[t] && (o = Vt(e[t])) && (r && (r += " "), r += o);
776
+ for (t = 0; t < n; t++) e[t] && (o = jt(e[t])) && (r && (r += " "), r += o);
777
777
  } else for (o in e) e[o] && (r && (r += " "), r += o);
778
778
  return r;
779
779
  }
780
- function jt() {
781
- for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Vt(e)) && (r && (r += " "), r += t);
780
+ function Vt() {
781
+ for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = jt(e)) && (r && (r += " "), r += t);
782
782
  return r;
783
783
  }
784
784
  const dn = (e, t) => {
@@ -809,8 +809,8 @@ const dn = (e, t) => {
809
809
  },
810
810
  getConflictingClassGroupIds: (a, i) => {
811
811
  if (i) {
812
- const l = r[a], d = o[a];
813
- return l ? d ? dn(d, l) : l : d || ht;
812
+ const l = r[a], u = o[a];
813
+ return l ? u ? dn(u, l) : l : u || ht;
814
814
  }
815
815
  return o[a] || ht;
816
816
  }
@@ -820,17 +820,17 @@ const dn = (e, t) => {
820
820
  return o.classGroupId;
821
821
  const n = e[t], s = o.nextPart.get(n);
822
822
  if (s) {
823
- const d = Gt(e, t + 1, s);
824
- if (d) return d;
823
+ const u = Gt(e, t + 1, s);
824
+ if (u) return u;
825
825
  }
826
826
  const a = o.validators;
827
827
  if (a === null)
828
828
  return;
829
829
  const i = t === 0 ? e.join(Ie) : e.slice(t).join(Ie), l = a.length;
830
- for (let d = 0; d < l; d++) {
831
- const u = a[d];
832
- if (u.validator(i))
833
- return u.classGroupId;
830
+ for (let u = 0; u < l; u++) {
831
+ const d = a[u];
832
+ if (d.validator(i))
833
+ return d.classGroupId;
834
834
  }
835
835
  }, pn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
836
836
  const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
@@ -925,9 +925,9 @@ const dn = (e, t) => {
925
925
  } = e;
926
926
  let r = (n) => {
927
927
  const s = [];
928
- let a = 0, i = 0, l = 0, d;
929
- const u = n.length;
930
- for (let x = 0; x < u; x++) {
928
+ let a = 0, i = 0, l = 0, u;
929
+ const d = n.length;
930
+ for (let x = 0; x < d; x++) {
931
931
  const h = n[x];
932
932
  if (a === 0 && i === 0) {
933
933
  if (h === gt) {
@@ -935,7 +935,7 @@ const dn = (e, t) => {
935
935
  continue;
936
936
  }
937
937
  if (h === "/") {
938
- d = x;
938
+ u = x;
939
939
  continue;
940
940
  }
941
941
  }
@@ -950,7 +950,7 @@ const dn = (e, t) => {
950
950
  */
951
951
  f.startsWith(Xe) && (m = f.slice(1), g = !0)
952
952
  );
953
- const k = d && d > l ? d - l : void 0;
953
+ const k = u && u > l ? u - l : void 0;
954
954
  return bt(s, g, m, k);
955
955
  };
956
956
  if (t) {
@@ -983,7 +983,7 @@ const dn = (e, t) => {
983
983
  parseClassName: Cn(e),
984
984
  sortModifiers: En(e),
985
985
  ...mn(e)
986
- }), An = /\s+/, Rn = (e, t) => {
986
+ }), An = /\s+/, _n = (e, t) => {
987
987
  const {
988
988
  parseClassName: o,
989
989
  getClassGroupId: r,
@@ -991,43 +991,43 @@ const dn = (e, t) => {
991
991
  sortModifiers: s
992
992
  } = t, a = [], i = e.trim().split(An);
993
993
  let l = "";
994
- for (let d = i.length - 1; d >= 0; d -= 1) {
995
- const u = i[d], {
994
+ for (let u = i.length - 1; u >= 0; u -= 1) {
995
+ const d = i[u], {
996
996
  isExternal: f,
997
997
  modifiers: m,
998
998
  hasImportantModifier: g,
999
999
  baseClassName: k,
1000
1000
  maybePostfixModifierPosition: x
1001
- } = o(u);
1001
+ } = o(d);
1002
1002
  if (f) {
1003
- l = u + (l.length > 0 ? " " + l : l);
1003
+ l = d + (l.length > 0 ? " " + l : l);
1004
1004
  continue;
1005
1005
  }
1006
1006
  let h = !!x, y = r(h ? k.substring(0, x) : k);
1007
1007
  if (!y) {
1008
1008
  if (!h) {
1009
- l = u + (l.length > 0 ? " " + l : l);
1009
+ l = d + (l.length > 0 ? " " + l : l);
1010
1010
  continue;
1011
1011
  }
1012
1012
  if (y = r(k), !y) {
1013
- l = u + (l.length > 0 ? " " + l : l);
1013
+ l = d + (l.length > 0 ? " " + l : l);
1014
1014
  continue;
1015
1015
  }
1016
1016
  h = !1;
1017
1017
  }
1018
- const R = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C = g ? R + Xe : R, A = C + y;
1018
+ const _ = m.length === 0 ? "" : m.length === 1 ? m[0] : s(m).join(":"), C = g ? _ + Xe : _, A = C + y;
1019
1019
  if (a.indexOf(A) > -1)
1020
1020
  continue;
1021
1021
  a.push(A);
1022
1022
  const P = n(y, h);
1023
1023
  for (let E = 0; E < P.length; ++E) {
1024
- const _ = P[E];
1025
- a.push(C + _);
1024
+ const R = P[E];
1025
+ a.push(C + R);
1026
1026
  }
1027
- l = u + (l.length > 0 ? " " + l : l);
1027
+ l = d + (l.length > 0 ? " " + l : l);
1028
1028
  }
1029
1029
  return l;
1030
- }, _n = (...e) => {
1030
+ }, Rn = (...e) => {
1031
1031
  let t = 0, o, r, n = "";
1032
1032
  for (; t < e.length; )
1033
1033
  (o = e[t++]) && (r = Yt(o)) && (n && (n += " "), n += r);
@@ -1042,32 +1042,32 @@ const dn = (e, t) => {
1042
1042
  }, In = (e, ...t) => {
1043
1043
  let o, r, n, s;
1044
1044
  const a = (l) => {
1045
- const d = t.reduce((u, f) => f(u), e());
1046
- return o = Nn(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
1045
+ const u = t.reduce((d, f) => f(d), e());
1046
+ return o = Nn(u), r = o.cache.get, n = o.cache.set, s = i, i(l);
1047
1047
  }, i = (l) => {
1048
- const d = r(l);
1049
- if (d)
1050
- return d;
1051
- const u = Rn(l, o);
1052
- return n(l, u), u;
1048
+ const u = r(l);
1049
+ if (u)
1050
+ return u;
1051
+ const d = _n(l, o);
1052
+ return n(l, d), d;
1053
1053
  };
1054
- return s = a, (...l) => s(_n(...l));
1054
+ return s = a, (...l) => s(Rn(...l));
1055
1055
  }, Pn = [], F = (e) => {
1056
1056
  const t = (o) => o[e] || Pn;
1057
1057
  return t.isThemeGetter = !0, t;
1058
- }, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $n = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => zn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), K = (e) => Tn.test(e), Kt = () => !0, Fn = (e) => (
1058
+ }, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Kt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, zn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Mn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $n = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => Tn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), He = (e) => e.endsWith("%") && I(e.slice(0, -1)), Z = (e) => zn.test(e), Zt = () => !0, Fn = (e) => (
1059
1059
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1060
1060
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1061
1061
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1062
1062
  Mn.test(e) && !Ln.test(e)
1063
- ), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !w(e), Hn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Fn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, ro, Kt), jn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Bn = (e) => re(e, Qt, Un), Ee = (e) => re(e, no, Dn), w = (e) => Zt.test(e), fe = (e) => ie(e, to), Gn = (e) => ie(e, oo), wt = (e) => ie(e, Jt), qn = (e) => ie(e, eo), Yn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Xn = (e) => ie(e, ro, !0), re = (e, t, o) => {
1063
+ ), tt = () => !1, Dn = (e) => On.test(e), Un = (e) => $n.test(e), Wn = (e) => !v(e) && !w(e), Hn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Fn), vt = (e) => re(e, Kn, I), jn = (e) => re(e, ro, Zt), Vn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Bn = (e) => re(e, Qt, Un), Ee = (e) => re(e, no, Dn), w = (e) => Kt.test(e), fe = (e) => ie(e, to), Gn = (e) => ie(e, oo), wt = (e) => ie(e, Jt), qn = (e) => ie(e, eo), Yn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Xn = (e) => ie(e, ro, !0), re = (e, t, o) => {
1064
1064
  const r = Xt.exec(e);
1065
1065
  return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
1066
1066
  }, ie = (e, t, o = !1) => {
1067
- const r = Zt.exec(e);
1067
+ const r = Kt.exec(e);
1068
1068
  return r ? r[1] ? t(r[1]) : o : !1;
1069
- }, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length", Zn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Kn = () => {
1070
- const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), g = F("drop-shadow"), k = F("blur"), x = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
1069
+ }, Jt = (e) => e === "position" || e === "percentage", Qt = (e) => e === "image" || e === "url", eo = (e) => e === "length" || e === "size" || e === "bg-size", to = (e) => e === "length", Kn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Zn = () => {
1070
+ const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), u = F("radius"), d = F("shadow"), f = F("inset-shadow"), m = F("text-shadow"), g = F("drop-shadow"), k = F("blur"), x = F("perspective"), h = F("aspect"), y = F("ease"), _ = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
1071
1071
  "center",
1072
1072
  "top",
1073
1073
  "bottom",
@@ -1085,9 +1085,9 @@ const dn = (e, t) => {
1085
1085
  "bottom-left",
1086
1086
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1087
1087
  "left-bottom"
1088
- ], P = () => [...A(), w, v], E = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], b = () => [w, v, l], S = () => [ee, "full", "auto", ...b()], M = () => [te, "none", "subgrid", w, v], O = () => ["auto", {
1088
+ ], P = () => [...A(), w, v], E = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], b = () => [w, v, l], S = () => [ee, "full", "auto", ...b()], M = () => [te, "none", "subgrid", w, v], O = () => ["auto", {
1089
1089
  span: ["full", te, w, v]
1090
- }, te, w, v], Z = () => [te, "auto", w, v], ve = () => ["auto", "min", "max", "fr", w, v], xe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...b()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], N = () => [e, w, v], ct = () => [...A(), wt, xt, {
1090
+ }, te, w, v], K = () => [te, "auto", w, v], ve = () => ["auto", "min", "max", "fr", w, v], xe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...b()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...b()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...b()], N = () => [e, w, v], ct = () => [...A(), wt, xt, {
1091
1091
  position: [w, v]
1092
1092
  }], dt = () => ["no-repeat", {
1093
1093
  repeat: ["", "x", "y", "space", "round"]
@@ -1098,10 +1098,10 @@ const dn = (e, t) => {
1098
1098
  "",
1099
1099
  "none",
1100
1100
  "full",
1101
- d,
1101
+ u,
1102
1102
  w,
1103
1103
  v
1104
- ], V = () => ["", I, fe, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, He, wt, xt], mt = () => [
1104
+ ], j = () => ["", I, fe, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, He, wt, xt], mt = () => [
1105
1105
  // Deprecated since Tailwind CSS v4.0.0
1106
1106
  "",
1107
1107
  "none",
@@ -1114,22 +1114,22 @@ const dn = (e, t) => {
1114
1114
  theme: {
1115
1115
  animate: ["spin", "ping", "pulse", "bounce"],
1116
1116
  aspect: ["video"],
1117
- blur: [K],
1118
- breakpoint: [K],
1119
- color: [Kt],
1120
- container: [K],
1121
- "drop-shadow": [K],
1117
+ blur: [Z],
1118
+ breakpoint: [Z],
1119
+ color: [Zt],
1120
+ container: [Z],
1121
+ "drop-shadow": [Z],
1122
1122
  ease: ["in", "out", "in-out"],
1123
1123
  font: [Wn],
1124
1124
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1125
- "inset-shadow": [K],
1125
+ "inset-shadow": [Z],
1126
1126
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1127
1127
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1128
- radius: [K],
1129
- shadow: [K],
1128
+ radius: [Z],
1129
+ shadow: [Z],
1130
1130
  spacing: ["px", I],
1131
- text: [K],
1132
- "text-shadow": [K],
1131
+ text: [Z],
1132
+ "text-shadow": [Z],
1133
1133
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
1134
1134
  },
1135
1135
  classGroups: {
@@ -1260,21 +1260,21 @@ const dn = (e, t) => {
1260
1260
  * @see https://tailwindcss.com/docs/overscroll-behavior
1261
1261
  */
1262
1262
  overscroll: [{
1263
- overscroll: _()
1263
+ overscroll: R()
1264
1264
  }],
1265
1265
  /**
1266
1266
  * Overscroll Behavior X
1267
1267
  * @see https://tailwindcss.com/docs/overscroll-behavior
1268
1268
  */
1269
1269
  "overscroll-x": [{
1270
- "overscroll-x": _()
1270
+ "overscroll-x": R()
1271
1271
  }],
1272
1272
  /**
1273
1273
  * Overscroll Behavior Y
1274
1274
  * @see https://tailwindcss.com/docs/overscroll-behavior
1275
1275
  */
1276
1276
  "overscroll-y": [{
1277
- "overscroll-y": _()
1277
+ "overscroll-y": R()
1278
1278
  }],
1279
1279
  /**
1280
1280
  * Position
@@ -1453,14 +1453,14 @@ const dn = (e, t) => {
1453
1453
  * @see https://tailwindcss.com/docs/grid-column
1454
1454
  */
1455
1455
  "col-start": [{
1456
- "col-start": Z()
1456
+ "col-start": K()
1457
1457
  }],
1458
1458
  /**
1459
1459
  * Grid Column End
1460
1460
  * @see https://tailwindcss.com/docs/grid-column
1461
1461
  */
1462
1462
  "col-end": [{
1463
- "col-end": Z()
1463
+ "col-end": K()
1464
1464
  }],
1465
1465
  /**
1466
1466
  * Grid Template Rows
@@ -1481,14 +1481,14 @@ const dn = (e, t) => {
1481
1481
  * @see https://tailwindcss.com/docs/grid-row
1482
1482
  */
1483
1483
  "row-start": [{
1484
- "row-start": Z()
1484
+ "row-start": K()
1485
1485
  }],
1486
1486
  /**
1487
1487
  * Grid Row End
1488
1488
  * @see https://tailwindcss.com/docs/grid-row
1489
1489
  */
1490
1490
  "row-end": [{
1491
- "row-end": Z()
1491
+ "row-end": K()
1492
1492
  }],
1493
1493
  /**
1494
1494
  * Grid Auto Flow
@@ -1914,7 +1914,7 @@ const dn = (e, t) => {
1914
1914
  * @see https://tailwindcss.com/docs/font-weight
1915
1915
  */
1916
1916
  "font-weight": [{
1917
- font: [r, Xn, Vn]
1917
+ font: [r, Xn, jn]
1918
1918
  }],
1919
1919
  /**
1920
1920
  * Font Stretch
@@ -1928,7 +1928,7 @@ const dn = (e, t) => {
1928
1928
  * @see https://tailwindcss.com/docs/font-family
1929
1929
  */
1930
1930
  "font-family": [{
1931
- font: [Gn, jn, t]
1931
+ font: [Gn, Vn, t]
1932
1932
  }],
1933
1933
  /**
1934
1934
  * Font Feature Settings
@@ -2354,84 +2354,84 @@ const dn = (e, t) => {
2354
2354
  * @see https://tailwindcss.com/docs/border-width
2355
2355
  */
2356
2356
  "border-w": [{
2357
- border: V()
2357
+ border: j()
2358
2358
  }],
2359
2359
  /**
2360
2360
  * Border Width Inline
2361
2361
  * @see https://tailwindcss.com/docs/border-width
2362
2362
  */
2363
2363
  "border-w-x": [{
2364
- "border-x": V()
2364
+ "border-x": j()
2365
2365
  }],
2366
2366
  /**
2367
2367
  * Border Width Block
2368
2368
  * @see https://tailwindcss.com/docs/border-width
2369
2369
  */
2370
2370
  "border-w-y": [{
2371
- "border-y": V()
2371
+ "border-y": j()
2372
2372
  }],
2373
2373
  /**
2374
2374
  * Border Width Inline Start
2375
2375
  * @see https://tailwindcss.com/docs/border-width
2376
2376
  */
2377
2377
  "border-w-s": [{
2378
- "border-s": V()
2378
+ "border-s": j()
2379
2379
  }],
2380
2380
  /**
2381
2381
  * Border Width Inline End
2382
2382
  * @see https://tailwindcss.com/docs/border-width
2383
2383
  */
2384
2384
  "border-w-e": [{
2385
- "border-e": V()
2385
+ "border-e": j()
2386
2386
  }],
2387
2387
  /**
2388
2388
  * Border Width Block Start
2389
2389
  * @see https://tailwindcss.com/docs/border-width
2390
2390
  */
2391
2391
  "border-w-bs": [{
2392
- "border-bs": V()
2392
+ "border-bs": j()
2393
2393
  }],
2394
2394
  /**
2395
2395
  * Border Width Block End
2396
2396
  * @see https://tailwindcss.com/docs/border-width
2397
2397
  */
2398
2398
  "border-w-be": [{
2399
- "border-be": V()
2399
+ "border-be": j()
2400
2400
  }],
2401
2401
  /**
2402
2402
  * Border Width Top
2403
2403
  * @see https://tailwindcss.com/docs/border-width
2404
2404
  */
2405
2405
  "border-w-t": [{
2406
- "border-t": V()
2406
+ "border-t": j()
2407
2407
  }],
2408
2408
  /**
2409
2409
  * Border Width Right
2410
2410
  * @see https://tailwindcss.com/docs/border-width
2411
2411
  */
2412
2412
  "border-w-r": [{
2413
- "border-r": V()
2413
+ "border-r": j()
2414
2414
  }],
2415
2415
  /**
2416
2416
  * Border Width Bottom
2417
2417
  * @see https://tailwindcss.com/docs/border-width
2418
2418
  */
2419
2419
  "border-w-b": [{
2420
- "border-b": V()
2420
+ "border-b": j()
2421
2421
  }],
2422
2422
  /**
2423
2423
  * Border Width Left
2424
2424
  * @see https://tailwindcss.com/docs/border-width
2425
2425
  */
2426
2426
  "border-w-l": [{
2427
- "border-l": V()
2427
+ "border-l": j()
2428
2428
  }],
2429
2429
  /**
2430
2430
  * Divide Width X
2431
2431
  * @see https://tailwindcss.com/docs/border-width#between-children
2432
2432
  */
2433
2433
  "divide-x": [{
2434
- "divide-x": V()
2434
+ "divide-x": j()
2435
2435
  }],
2436
2436
  /**
2437
2437
  * Divide Width X Reverse
@@ -2443,7 +2443,7 @@ const dn = (e, t) => {
2443
2443
  * @see https://tailwindcss.com/docs/border-width#between-children
2444
2444
  */
2445
2445
  "divide-y": [{
2446
- "divide-y": V()
2446
+ "divide-y": j()
2447
2447
  }],
2448
2448
  /**
2449
2449
  * Divide Width Y Reverse
@@ -2588,7 +2588,7 @@ const dn = (e, t) => {
2588
2588
  // Deprecated since Tailwind CSS v4.0.0
2589
2589
  "",
2590
2590
  "none",
2591
- u,
2591
+ d,
2592
2592
  Ne,
2593
2593
  Ee
2594
2594
  ]
@@ -2619,7 +2619,7 @@ const dn = (e, t) => {
2619
2619
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2620
2620
  */
2621
2621
  "ring-w": [{
2622
- ring: V()
2622
+ ring: j()
2623
2623
  }],
2624
2624
  /**
2625
2625
  * Ring Width Inset
@@ -2658,7 +2658,7 @@ const dn = (e, t) => {
2658
2658
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2659
2659
  */
2660
2660
  "inset-ring-w": [{
2661
- "inset-ring": V()
2661
+ "inset-ring": j()
2662
2662
  }],
2663
2663
  /**
2664
2664
  * Inset Ring Color
@@ -3155,7 +3155,7 @@ const dn = (e, t) => {
3155
3155
  * @see https://tailwindcss.com/docs/animation
3156
3156
  */
3157
3157
  animate: [{
3158
- animate: ["none", R, w, v]
3158
+ animate: ["none", _, w, v]
3159
3159
  }],
3160
3160
  // ------------------
3161
3161
  // --- Transforms ---
@@ -3695,13 +3695,13 @@ const dn = (e, t) => {
3695
3695
  },
3696
3696
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3697
3697
  };
3698
- }, Jn = /* @__PURE__ */ In(Kn), T = (...e) => Jn(jt(e));
3698
+ }, Jn = /* @__PURE__ */ In(Zn), z = (...e) => Jn(Vt(e));
3699
3699
  function me({ className: e, ...t }) {
3700
3700
  return /* @__PURE__ */ c(
3701
3701
  "div",
3702
3702
  {
3703
3703
  "data-slot": "card",
3704
- className: T(
3704
+ className: z(
3705
3705
  "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
3706
3706
  e
3707
3707
  ),
@@ -3714,7 +3714,7 @@ function Qn({ className: e, ...t }) {
3714
3714
  "div",
3715
3715
  {
3716
3716
  "data-slot": "card-header",
3717
- className: T(
3717
+ className: z(
3718
3718
  "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
3719
3719
  e
3720
3720
  ),
@@ -3727,24 +3727,24 @@ function pe({ className: e, ...t }) {
3727
3727
  "div",
3728
3728
  {
3729
3729
  "data-slot": "card-content",
3730
- className: T("px-6", e),
3730
+ className: z("px-6", e),
3731
3731
  ...t
3732
3732
  }
3733
3733
  );
3734
3734
  }
3735
- const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = jt, ot = (e, t) => (o) => {
3735
+ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Vt, ot = (e, t) => (o) => {
3736
3736
  var r;
3737
3737
  if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
3738
- const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
3739
- const u = o == null ? void 0 : o[d], f = s == null ? void 0 : s[d];
3740
- if (u === null) return null;
3741
- const m = yt(u) || yt(f);
3742
- return n[d][m];
3743
- }), i = o && Object.entries(o).reduce((d, u) => {
3744
- let [f, m] = u;
3745
- return m === void 0 || (d[f] = m), d;
3746
- }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
3747
- let { class: f, className: m, ...g } = u;
3738
+ const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((u) => {
3739
+ const d = o == null ? void 0 : o[u], f = s == null ? void 0 : s[u];
3740
+ if (d === null) return null;
3741
+ const m = yt(d) || yt(f);
3742
+ return n[u][m];
3743
+ }), i = o && Object.entries(o).reduce((u, d) => {
3744
+ let [f, m] = d;
3745
+ return m === void 0 || (u[f] = m), u;
3746
+ }, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, d) => {
3747
+ let { class: f, className: m, ...g } = d;
3748
3748
  return Object.entries(g).every((k) => {
3749
3749
  let [x, h] = k;
3750
3750
  return Array.isArray(h) ? h.includes({
@@ -3755,10 +3755,10 @@ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = jt, o
3755
3755
  ...i
3756
3756
  }[x] === h;
3757
3757
  }) ? [
3758
- ...d,
3758
+ ...u,
3759
3759
  f,
3760
3760
  m
3761
- ] : d;
3761
+ ] : u;
3762
3762
  }, []);
3763
3763
  return kt(e, a, l, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
3764
3764
  };
@@ -3791,8 +3791,8 @@ function Pe(e) {
3791
3791
  const t = /* @__PURE__ */ es(e), o = p.forwardRef((r, n) => {
3792
3792
  const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(os);
3793
3793
  if (l) {
3794
- const d = l.props.children, u = i.map((f) => f === l ? p.Children.count(d) > 1 ? p.Children.only(null) : p.isValidElement(d) ? d.props.children : null : f);
3795
- return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(d) ? p.cloneElement(d, void 0, u) : null });
3794
+ const u = l.props.children, d = i.map((f) => f === l ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : f);
3795
+ return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(u) ? p.cloneElement(u, void 0, d) : null });
3796
3796
  }
3797
3797
  return /* @__PURE__ */ c(t, { ...a, ref: n, children: s });
3798
3798
  });
@@ -3849,7 +3849,7 @@ var ss = [
3849
3849
  "span",
3850
3850
  "svg",
3851
3851
  "ul"
3852
- ], j = ss.reduce((e, t) => {
3852
+ ], V = ss.reduce((e, t) => {
3853
3853
  const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = p.forwardRef((n, s) => {
3854
3854
  const { asChild: a, ...i } = n, l = a ? o : t;
3855
3855
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
@@ -3861,20 +3861,20 @@ function ge(e, t = []) {
3861
3861
  function r(s, a) {
3862
3862
  const i = p.createContext(a), l = o.length;
3863
3863
  o = [...o, a];
3864
- const d = (f) => {
3864
+ const u = (f) => {
3865
3865
  var y;
3866
3866
  const { scope: m, children: g, ...k } = f, x = ((y = m == null ? void 0 : m[e]) == null ? void 0 : y[l]) || i, h = p.useMemo(() => k, Object.values(k));
3867
3867
  return /* @__PURE__ */ c(x.Provider, { value: h, children: g });
3868
3868
  };
3869
- d.displayName = s + "Provider";
3870
- function u(f, m) {
3869
+ u.displayName = s + "Provider";
3870
+ function d(f, m) {
3871
3871
  var x;
3872
3872
  const g = ((x = m == null ? void 0 : m[e]) == null ? void 0 : x[l]) || i, k = p.useContext(g);
3873
3873
  if (k) return k;
3874
3874
  if (a !== void 0) return a;
3875
3875
  throw new Error(`\`${f}\` must be used within \`${s}\``);
3876
3876
  }
3877
- return [d, u];
3877
+ return [u, d];
3878
3878
  }
3879
3879
  const n = () => {
3880
3880
  const s = o.map((a) => p.createContext(a));
@@ -3897,8 +3897,8 @@ function as(...e) {
3897
3897
  scopeName: n.scopeName
3898
3898
  }));
3899
3899
  return function(s) {
3900
- const a = r.reduce((i, { useScope: l, scopeName: d }) => {
3901
- const f = l(s)[`__scope${d}`];
3900
+ const a = r.reduce((i, { useScope: l, scopeName: u }) => {
3901
+ const f = l(s)[`__scope${u}`];
3902
3902
  return { ...i, ...f };
3903
3903
  }, {});
3904
3904
  return p.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
@@ -3911,37 +3911,37 @@ function is(e) {
3911
3911
  t,
3912
3912
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
3913
3913
  ), a = (x) => {
3914
- const { scope: h, children: y } = x, R = G.useRef(null), C = G.useRef(/* @__PURE__ */ new Map()).current;
3915
- return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
3914
+ const { scope: h, children: y } = x, _ = G.useRef(null), C = G.useRef(/* @__PURE__ */ new Map()).current;
3915
+ return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: _, children: y });
3916
3916
  };
3917
3917
  a.displayName = t;
3918
- const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = G.forwardRef(
3918
+ const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), u = G.forwardRef(
3919
3919
  (x, h) => {
3920
- const { scope: y, children: R } = x, C = s(i, y), A = Y(h, C.collectionRef);
3921
- return /* @__PURE__ */ c(l, { ref: A, children: R });
3920
+ const { scope: y, children: _ } = x, C = s(i, y), A = Y(h, C.collectionRef);
3921
+ return /* @__PURE__ */ c(l, { ref: A, children: _ });
3922
3922
  }
3923
3923
  );
3924
- d.displayName = i;
3925
- const u = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(u), g = G.forwardRef(
3924
+ u.displayName = i;
3925
+ const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m = /* @__PURE__ */ Pe(d), g = G.forwardRef(
3926
3926
  (x, h) => {
3927
- const { scope: y, children: R, ...C } = x, A = G.useRef(null), P = Y(h, A), E = s(u, y);
3928
- return G.useEffect(() => (E.itemMap.set(A, { ref: A, ...C }), () => void E.itemMap.delete(A))), /* @__PURE__ */ c(m, { [f]: "", ref: P, children: R });
3927
+ const { scope: y, children: _, ...C } = x, A = G.useRef(null), P = Y(h, A), E = s(d, y);
3928
+ return G.useEffect(() => (E.itemMap.set(A, { ref: A, ...C }), () => void E.itemMap.delete(A))), /* @__PURE__ */ c(m, { [f]: "", ref: P, children: _ });
3929
3929
  }
3930
3930
  );
3931
- g.displayName = u;
3931
+ g.displayName = d;
3932
3932
  function k(x) {
3933
3933
  const h = s(e + "CollectionConsumer", x);
3934
3934
  return G.useCallback(() => {
3935
- const R = h.collectionRef.current;
3936
- if (!R) return [];
3937
- const C = Array.from(R.querySelectorAll(`[${f}]`));
3935
+ const _ = h.collectionRef.current;
3936
+ if (!_) return [];
3937
+ const C = Array.from(_.querySelectorAll(`[${f}]`));
3938
3938
  return Array.from(h.itemMap.values()).sort(
3939
- (E, _) => C.indexOf(E.ref.current) - C.indexOf(_.ref.current)
3939
+ (E, R) => C.indexOf(E.ref.current) - C.indexOf(R.ref.current)
3940
3940
  );
3941
3941
  }, [h.collectionRef, h.itemMap]);
3942
3942
  }
3943
3943
  return [
3944
- { Provider: a, Slot: d, ItemSlot: g },
3944
+ { Provider: a, Slot: u, ItemSlot: g },
3945
3945
  k,
3946
3946
  r
3947
3947
  ];
@@ -3966,26 +3966,26 @@ function io({
3966
3966
  onChange: o
3967
3967
  }), i = e !== void 0, l = i ? e : n;
3968
3968
  {
3969
- const u = p.useRef(e !== void 0);
3969
+ const d = p.useRef(e !== void 0);
3970
3970
  p.useEffect(() => {
3971
- const f = u.current;
3971
+ const f = d.current;
3972
3972
  f !== i && console.warn(
3973
3973
  `${r} is changing from ${f ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
3974
- ), u.current = i;
3974
+ ), d.current = i;
3975
3975
  }, [i, r]);
3976
3976
  }
3977
- const d = p.useCallback(
3978
- (u) => {
3977
+ const u = p.useCallback(
3978
+ (d) => {
3979
3979
  var f;
3980
3980
  if (i) {
3981
- const m = ds(u) ? u(e) : u;
3981
+ const m = ds(d) ? d(e) : d;
3982
3982
  m !== e && ((f = a.current) == null || f.call(a, m));
3983
3983
  } else
3984
- s(u);
3984
+ s(d);
3985
3985
  },
3986
3986
  [i, e, s, a]
3987
3987
  );
3988
- return [l, d];
3988
+ return [l, u];
3989
3989
  }
3990
3990
  function cs({
3991
3991
  defaultProp: e,
@@ -4025,22 +4025,22 @@ function fs(e) {
4025
4025
  }
4026
4026
  });
4027
4027
  return p.useEffect(() => {
4028
- const d = Ae(r.current);
4029
- s.current = i === "mounted" ? d : "none";
4028
+ const u = Ae(r.current);
4029
+ s.current = i === "mounted" ? u : "none";
4030
4030
  }, [i]), oe(() => {
4031
- const d = r.current, u = n.current;
4032
- if (u !== e) {
4033
- const m = s.current, g = Ae(d);
4034
- e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
4031
+ const u = r.current, d = n.current;
4032
+ if (d !== e) {
4033
+ const m = s.current, g = Ae(u);
4034
+ e ? l("MOUNT") : g === "none" || (u == null ? void 0 : u.display) === "none" ? l("UNMOUNT") : l(d && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
4035
4035
  }
4036
4036
  }, [e, l]), oe(() => {
4037
4037
  if (t) {
4038
- let d;
4039
- const u = t.ownerDocument.defaultView ?? window, f = (g) => {
4038
+ let u;
4039
+ const d = t.ownerDocument.defaultView ?? window, f = (g) => {
4040
4040
  const x = Ae(r.current).includes(CSS.escape(g.animationName));
4041
4041
  if (g.target === t && x && (l("ANIMATION_END"), !n.current)) {
4042
4042
  const h = t.style.animationFillMode;
4043
- t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
4043
+ t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
4044
4044
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
4045
4045
  });
4046
4046
  }
@@ -4048,14 +4048,14 @@ function fs(e) {
4048
4048
  g.target === t && (s.current = Ae(r.current));
4049
4049
  };
4050
4050
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
4051
- u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4051
+ d.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
4052
4052
  };
4053
4053
  } else
4054
4054
  l("ANIMATION_END");
4055
4055
  }, [t, l]), {
4056
4056
  isPresent: ["mounted", "unmountSuspended"].includes(i),
4057
- ref: p.useCallback((d) => {
4058
- r.current = d ? getComputedStyle(d) : null, o(d);
4057
+ ref: p.useCallback((u) => {
4058
+ r.current = u ? getComputedStyle(u) : null, o(u);
4059
4059
  }, [])
4060
4060
  };
4061
4061
  }
@@ -4089,7 +4089,7 @@ function J(e) {
4089
4089
  return (r = t.current) == null ? void 0 : r.call(t, ...o);
4090
4090
  }, []);
4091
4091
  }
4092
- var Ve = { exports: {} }, je = {};
4092
+ var je = { exports: {} }, Ve = {};
4093
4093
  /**
4094
4094
  * @license React
4095
4095
  * use-sync-external-store-shim.production.js
@@ -4101,7 +4101,7 @@ var Ve = { exports: {} }, je = {};
4101
4101
  */
4102
4102
  var Ct;
4103
4103
  function bs() {
4104
- if (Ct) return je;
4104
+ if (Ct) return Ve;
4105
4105
  Ct = 1;
4106
4106
  var e = G;
4107
4107
  function t(f, m) {
@@ -4134,15 +4134,15 @@ function bs() {
4134
4134
  return !0;
4135
4135
  }
4136
4136
  }
4137
- function d(f, m) {
4137
+ function u(f, m) {
4138
4138
  return m();
4139
4139
  }
4140
- var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
4141
- return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
4140
+ var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : i;
4141
+ return Ve.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, Ve;
4142
4142
  }
4143
4143
  var Et;
4144
4144
  function vs() {
4145
- return Et || (Et = 1, Ve.exports = bs()), Ve.exports;
4145
+ return Et || (Et = 1, je.exports = bs()), je.exports;
4146
4146
  }
4147
4147
  var xs = vs();
4148
4148
  function ws() {
@@ -4165,7 +4165,7 @@ var nt = "Avatar", [ks] = ge(nt), [Ss, co] = ks(nt), uo = p.forwardRef(
4165
4165
  scope: o,
4166
4166
  imageLoadingStatus: n,
4167
4167
  onImageLoadingStatusChange: s,
4168
- children: /* @__PURE__ */ c(j.span, { ...r, ref: t })
4168
+ children: /* @__PURE__ */ c(V.span, { ...r, ref: t })
4169
4169
  }
4170
4170
  );
4171
4171
  }
@@ -4174,12 +4174,12 @@ uo.displayName = nt;
4174
4174
  var fo = "AvatarImage", mo = p.forwardRef(
4175
4175
  (e, t) => {
4176
4176
  const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
4177
- }, ...s } = e, a = co(fo, o), i = Cs(r, s), l = J((d) => {
4178
- n(d), a.onImageLoadingStatusChange(d);
4177
+ }, ...s } = e, a = co(fo, o), i = Cs(r, s), l = J((u) => {
4178
+ n(u), a.onImageLoadingStatusChange(u);
4179
4179
  });
4180
4180
  return oe(() => {
4181
4181
  i !== "idle" && l(i);
4182
- }, [i, l]), i === "loaded" ? /* @__PURE__ */ c(j.img, { ...s, ref: t, src: r }) : null;
4182
+ }, [i, l]), i === "loaded" ? /* @__PURE__ */ c(V.img, { ...s, ref: t, src: r }) : null;
4183
4183
  }
4184
4184
  );
4185
4185
  mo.displayName = fo;
@@ -4191,7 +4191,7 @@ var po = "AvatarFallback", ho = p.forwardRef(
4191
4191
  const l = window.setTimeout(() => i(!0), r);
4192
4192
  return () => window.clearTimeout(l);
4193
4193
  }
4194
- }, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(j.span, { ...n, ref: t }) : null;
4194
+ }, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(V.span, { ...n, ref: t }) : null;
4195
4195
  }
4196
4196
  );
4197
4197
  ho.displayName = po;
@@ -4209,20 +4209,20 @@ function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
4209
4209
  i(f);
4210
4210
  };
4211
4211
  if (!s) return;
4212
- const d = l("loaded"), u = l("error");
4213
- return s.addEventListener("load", d), s.addEventListener("error", u), t && (s.referrerPolicy = t), typeof o == "string" && (s.crossOrigin = o), () => {
4214
- s.removeEventListener("load", d), s.removeEventListener("error", u);
4212
+ const u = l("loaded"), d = l("error");
4213
+ return s.addEventListener("load", u), s.addEventListener("error", d), t && (s.referrerPolicy = t), typeof o == "string" && (s.crossOrigin = o), () => {
4214
+ s.removeEventListener("load", u), s.removeEventListener("error", d);
4215
4215
  };
4216
4216
  }, [s, o, t]), a;
4217
4217
  }
4218
- var Es = uo, Ns = mo, As = ho, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ze, go, _s] = is(be), [Is, bo] = ge(
4218
+ var Es = uo, Ns = mo, As = ho, Be = "rovingFocusGroup.onEntryFocus", _s = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ke, go, Rs] = is(be), [Is, bo] = ge(
4219
4219
  be,
4220
- [_s]
4221
- ), [Ps, zs] = Is(be), vo = p.forwardRef(
4222
- (e, t) => /* @__PURE__ */ c(Ze.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ze.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ts, { ...e, ref: t }) }) })
4220
+ [Rs]
4221
+ ), [Ps, Ts] = Is(be), vo = p.forwardRef(
4222
+ (e, t) => /* @__PURE__ */ c(Ke.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ke.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(zs, { ...e, ref: t }) }) })
4223
4223
  );
4224
4224
  vo.displayName = be;
4225
- var Ts = p.forwardRef((e, t) => {
4225
+ var zs = p.forwardRef((e, t) => {
4226
4226
  const {
4227
4227
  __scopeRovingFocusGroup: o,
4228
4228
  orientation: r,
@@ -4231,15 +4231,15 @@ var Ts = p.forwardRef((e, t) => {
4231
4231
  currentTabStopId: a,
4232
4232
  defaultCurrentTabStopId: i,
4233
4233
  onCurrentTabStopIdChange: l,
4234
- onEntryFocus: d,
4235
- preventScrollOnEntryFocus: u = !1,
4234
+ onEntryFocus: u,
4235
+ preventScrollOnEntryFocus: d = !1,
4236
4236
  ...f
4237
4237
  } = e, m = p.useRef(null), g = Y(t, m), k = rt(s), [x, h] = io({
4238
4238
  prop: a,
4239
4239
  defaultProp: i ?? null,
4240
4240
  onChange: l,
4241
4241
  caller: be
4242
- }), [y, R] = p.useState(!1), C = J(d), A = go(o), P = p.useRef(!1), [E, _] = p.useState(0);
4242
+ }), [y, _] = p.useState(!1), C = J(u), A = go(o), P = p.useRef(!1), [E, R] = p.useState(0);
4243
4243
  return p.useEffect(() => {
4244
4244
  const b = m.current;
4245
4245
  if (b)
@@ -4256,17 +4256,17 @@ var Ts = p.forwardRef((e, t) => {
4256
4256
  (b) => h(b),
4257
4257
  [h]
4258
4258
  ),
4259
- onItemShiftTab: p.useCallback(() => R(!0), []),
4259
+ onItemShiftTab: p.useCallback(() => _(!0), []),
4260
4260
  onFocusableItemAdd: p.useCallback(
4261
- () => _((b) => b + 1),
4261
+ () => R((b) => b + 1),
4262
4262
  []
4263
4263
  ),
4264
4264
  onFocusableItemRemove: p.useCallback(
4265
- () => _((b) => b - 1),
4265
+ () => R((b) => b - 1),
4266
4266
  []
4267
4267
  ),
4268
4268
  children: /* @__PURE__ */ c(
4269
- j.div,
4269
+ V.div,
4270
4270
  {
4271
4271
  tabIndex: y || E === 0 ? -1 : 0,
4272
4272
  "data-orientation": r,
@@ -4279,17 +4279,17 @@ var Ts = p.forwardRef((e, t) => {
4279
4279
  onFocus: W(e.onFocus, (b) => {
4280
4280
  const S = !P.current;
4281
4281
  if (b.target === b.currentTarget && S && !y) {
4282
- const M = new CustomEvent(Be, Rs);
4282
+ const M = new CustomEvent(Be, _s);
4283
4283
  if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
4284
- const O = A().filter(($) => $.focusable), Z = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [Z, ve, ...O].filter(
4284
+ const O = A().filter(($) => $.focusable), K = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [K, ve, ...O].filter(
4285
4285
  Boolean
4286
4286
  ).map(($) => $.ref.current);
4287
- yo(Q, u);
4287
+ yo(Q, d);
4288
4288
  }
4289
4289
  }
4290
4290
  P.current = !1;
4291
4291
  }),
4292
- onBlur: W(e.onBlur, () => R(!1))
4292
+ onBlur: W(e.onBlur, () => _(!1))
4293
4293
  }
4294
4294
  )
4295
4295
  }
@@ -4303,35 +4303,35 @@ var Ts = p.forwardRef((e, t) => {
4303
4303
  tabStopId: s,
4304
4304
  children: a,
4305
4305
  ...i
4306
- } = e, l = lo(), d = s || l, u = zs(xo, o), f = u.currentTabStopId === d, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = u;
4306
+ } = e, l = lo(), u = s || l, d = Ts(xo, o), f = d.currentTabStopId === u, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = d;
4307
4307
  return p.useEffect(() => {
4308
4308
  if (r)
4309
4309
  return g(), () => k();
4310
4310
  }, [r, g, k]), /* @__PURE__ */ c(
4311
- Ze.ItemSlot,
4311
+ Ke.ItemSlot,
4312
4312
  {
4313
4313
  scope: o,
4314
- id: d,
4314
+ id: u,
4315
4315
  focusable: r,
4316
4316
  active: n,
4317
4317
  children: /* @__PURE__ */ c(
4318
- j.span,
4318
+ V.span,
4319
4319
  {
4320
4320
  tabIndex: f ? 0 : -1,
4321
- "data-orientation": u.orientation,
4321
+ "data-orientation": d.orientation,
4322
4322
  ...i,
4323
4323
  ref: t,
4324
4324
  onMouseDown: W(e.onMouseDown, (h) => {
4325
- r ? u.onItemFocus(d) : h.preventDefault();
4325
+ r ? d.onItemFocus(u) : h.preventDefault();
4326
4326
  }),
4327
- onFocus: W(e.onFocus, () => u.onItemFocus(d)),
4327
+ onFocus: W(e.onFocus, () => d.onItemFocus(u)),
4328
4328
  onKeyDown: W(e.onKeyDown, (h) => {
4329
4329
  if (h.key === "Tab" && h.shiftKey) {
4330
- u.onItemShiftTab();
4330
+ d.onItemShiftTab();
4331
4331
  return;
4332
4332
  }
4333
4333
  if (h.target !== h.currentTarget) return;
4334
- const y = Os(h, u.orientation, u.dir);
4334
+ const y = Os(h, d.orientation, d.dir);
4335
4335
  if (y !== void 0) {
4336
4336
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
4337
4337
  h.preventDefault();
@@ -4340,7 +4340,7 @@ var Ts = p.forwardRef((e, t) => {
4340
4340
  else if (y === "prev" || y === "next") {
4341
4341
  y === "prev" && C.reverse();
4342
4342
  const A = C.indexOf(h.currentTarget);
4343
- C = u.loop ? $s(C, A + 1) : C.slice(A + 1);
4343
+ C = d.loop ? $s(C, A + 1) : C.slice(A + 1);
4344
4344
  }
4345
4345
  setTimeout(() => yo(C));
4346
4346
  }
@@ -4394,7 +4394,7 @@ var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
4394
4394
  dir: n,
4395
4395
  scrollHideDelay: s = 600,
4396
4396
  ...a
4397
- } = e, [i, l] = p.useState(null), [d, u] = p.useState(null), [f, m] = p.useState(null), [g, k] = p.useState(null), [x, h] = p.useState(null), [y, R] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [_, b] = p.useState(!1), S = Y(t, (O) => l(O)), M = rt(n);
4397
+ } = e, [i, l] = p.useState(null), [u, d] = p.useState(null), [f, m] = p.useState(null), [g, k] = p.useState(null), [x, h] = p.useState(null), [y, _] = p.useState(0), [C, A] = p.useState(0), [P, E] = p.useState(!1), [R, b] = p.useState(!1), S = Y(t, (O) => l(O)), M = rt(n);
4398
4398
  return /* @__PURE__ */ c(
4399
4399
  Hs,
4400
4400
  {
@@ -4403,8 +4403,8 @@ var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
4403
4403
  dir: M,
4404
4404
  scrollHideDelay: s,
4405
4405
  scrollArea: i,
4406
- viewport: d,
4407
- onViewportChange: u,
4406
+ viewport: u,
4407
+ onViewportChange: d,
4408
4408
  content: f,
4409
4409
  onContentChange: m,
4410
4410
  scrollbarX: g,
@@ -4413,12 +4413,12 @@ var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
4413
4413
  onScrollbarXEnabledChange: E,
4414
4414
  scrollbarY: x,
4415
4415
  onScrollbarYChange: h,
4416
- scrollbarYEnabled: _,
4416
+ scrollbarYEnabled: R,
4417
4417
  onScrollbarYEnabledChange: b,
4418
- onCornerWidthChange: R,
4418
+ onCornerWidthChange: _,
4419
4419
  onCornerHeightChange: A,
4420
4420
  children: /* @__PURE__ */ c(
4421
- j.div,
4421
+ V.div,
4422
4422
  {
4423
4423
  dir: M,
4424
4424
  ...a,
@@ -4440,7 +4440,7 @@ So.displayName = st;
4440
4440
  var Co = "ScrollAreaViewport", Eo = p.forwardRef(
4441
4441
  (e, t) => {
4442
4442
  const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(Co, o), i = p.useRef(null), l = Y(t, i, a.onViewportChange);
4443
- return /* @__PURE__ */ z(he, { children: [
4443
+ return /* @__PURE__ */ T(he, { children: [
4444
4444
  /* @__PURE__ */ c(
4445
4445
  "style",
4446
4446
  {
@@ -4451,7 +4451,7 @@ var Co = "ScrollAreaViewport", Eo = p.forwardRef(
4451
4451
  }
4452
4452
  ),
4453
4453
  /* @__PURE__ */ c(
4454
- j.div,
4454
+ V.div,
4455
4455
  {
4456
4456
  "data-radix-scroll-area-viewport": "",
4457
4457
  ...s,
@@ -4484,23 +4484,23 @@ var X = "ScrollAreaScrollbar", No = p.forwardRef(
4484
4484
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
4485
4485
  return p.useEffect(() => (i ? s(!0) : a(!0), () => {
4486
4486
  i ? s(!1) : a(!1);
4487
- }), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
4487
+ }), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(js, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Ao, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
4488
4488
  }
4489
4489
  );
4490
4490
  No.displayName = X;
4491
- var Vs = p.forwardRef((e, t) => {
4491
+ var js = p.forwardRef((e, t) => {
4492
4492
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
4493
4493
  return p.useEffect(() => {
4494
4494
  const i = n.scrollArea;
4495
4495
  let l = 0;
4496
4496
  if (i) {
4497
- const d = () => {
4497
+ const u = () => {
4498
4498
  window.clearTimeout(l), a(!0);
4499
- }, u = () => {
4499
+ }, d = () => {
4500
4500
  l = window.setTimeout(() => a(!1), n.scrollHideDelay);
4501
4501
  };
4502
- return i.addEventListener("pointerenter", d), i.addEventListener("pointerleave", u), () => {
4503
- window.clearTimeout(l), i.removeEventListener("pointerenter", d), i.removeEventListener("pointerleave", u);
4502
+ return i.addEventListener("pointerenter", u), i.addEventListener("pointerleave", d), () => {
4503
+ window.clearTimeout(l), i.removeEventListener("pointerenter", u), i.removeEventListener("pointerleave", d);
4504
4504
  };
4505
4505
  }
4506
4506
  }, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(ue, { present: o || s, children: /* @__PURE__ */ c(
@@ -4511,7 +4511,7 @@ var Vs = p.forwardRef((e, t) => {
4511
4511
  ref: t
4512
4512
  }
4513
4513
  ) });
4514
- }), js = p.forwardRef((e, t) => {
4514
+ }), Vs = p.forwardRef((e, t) => {
4515
4515
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Ws("hidden", {
4516
4516
  hidden: {
4517
4517
  SCROLL: "scrolling"
@@ -4532,18 +4532,18 @@ var Vs = p.forwardRef((e, t) => {
4532
4532
  });
4533
4533
  return p.useEffect(() => {
4534
4534
  if (i === "idle") {
4535
- const d = window.setTimeout(() => l("HIDE"), n.scrollHideDelay);
4536
- return () => window.clearTimeout(d);
4535
+ const u = window.setTimeout(() => l("HIDE"), n.scrollHideDelay);
4536
+ return () => window.clearTimeout(u);
4537
4537
  }
4538
4538
  }, [i, n.scrollHideDelay, l]), p.useEffect(() => {
4539
- const d = n.viewport, u = s ? "scrollLeft" : "scrollTop";
4540
- if (d) {
4541
- let f = d[u];
4539
+ const u = n.viewport, d = s ? "scrollLeft" : "scrollTop";
4540
+ if (u) {
4541
+ let f = u[d];
4542
4542
  const m = () => {
4543
- const g = d[u];
4543
+ const g = u[d];
4544
4544
  f !== g && (l("SCROLL"), a()), f = g;
4545
4545
  };
4546
- return d.addEventListener("scroll", m), () => d.removeEventListener("scroll", m);
4546
+ return u.addEventListener("scroll", m), () => u.removeEventListener("scroll", m);
4547
4547
  }
4548
4548
  }, [n.viewport, s, l, a]), /* @__PURE__ */ c(ue, { present: o || i !== "hidden", children: /* @__PURE__ */ c(
4549
4549
  at,
@@ -4558,8 +4558,8 @@ var Vs = p.forwardRef((e, t) => {
4558
4558
  }), Ao = p.forwardRef((e, t) => {
4559
4559
  const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = p.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
4560
4560
  if (o.viewport) {
4561
- const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
4562
- a(i ? d : u);
4561
+ const u = o.viewport.offsetWidth < o.viewport.scrollWidth, d = o.viewport.offsetHeight < o.viewport.scrollHeight;
4562
+ a(i ? u : d);
4563
4563
  }
4564
4564
  }, 10);
4565
4565
  return de(o.viewport, l), de(o.content, l), /* @__PURE__ */ c(ue, { present: r || s, children: /* @__PURE__ */ c(
@@ -4575,22 +4575,22 @@ var Vs = p.forwardRef((e, t) => {
4575
4575
  content: 0,
4576
4576
  viewport: 0,
4577
4577
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
4578
- }), d = zo(i.viewport, i.content), u = {
4578
+ }), u = To(i.viewport, i.content), d = {
4579
4579
  ...r,
4580
4580
  sizes: i,
4581
4581
  onSizesChange: l,
4582
- hasThumb: d > 0 && d < 1,
4582
+ hasThumb: u > 0 && u < 1,
4583
4583
  onThumbChange: (m) => s.current = m,
4584
4584
  onThumbPointerUp: () => a.current = 0,
4585
4585
  onThumbPointerDown: (m) => a.current = m
4586
4586
  };
4587
4587
  function f(m, g) {
4588
- return Zs(m, a.current, i, g);
4588
+ return Ks(m, a.current, i, g);
4589
4589
  }
4590
4590
  return o === "horizontal" ? /* @__PURE__ */ c(
4591
4591
  Bs,
4592
4592
  {
4593
- ...u,
4593
+ ...d,
4594
4594
  ref: t,
4595
4595
  onThumbPositionChange: () => {
4596
4596
  if (n.viewport && s.current) {
@@ -4608,7 +4608,7 @@ var Vs = p.forwardRef((e, t) => {
4608
4608
  ) : o === "vertical" ? /* @__PURE__ */ c(
4609
4609
  Gs,
4610
4610
  {
4611
- ...u,
4611
+ ...d,
4612
4612
  ref: t,
4613
4613
  onThumbPositionChange: () => {
4614
4614
  if (n.viewport && s.current) {
@@ -4625,15 +4625,15 @@ var Vs = p.forwardRef((e, t) => {
4625
4625
  }
4626
4626
  ) : null;
4627
4627
  }), Bs = p.forwardRef((e, t) => {
4628
- const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarXChange);
4628
+ const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), u = Y(t, l, s.onScrollbarXChange);
4629
4629
  return p.useEffect(() => {
4630
4630
  l.current && i(getComputedStyle(l.current));
4631
4631
  }, [l]), /* @__PURE__ */ c(
4632
- _o,
4632
+ Ro,
4633
4633
  {
4634
4634
  "data-orientation": "horizontal",
4635
4635
  ...n,
4636
- ref: d,
4636
+ ref: u,
4637
4637
  sizes: o,
4638
4638
  style: {
4639
4639
  bottom: 0,
@@ -4642,12 +4642,12 @@ var Vs = p.forwardRef((e, t) => {
4642
4642
  "--radix-scroll-area-thumb-width": Me(o) + "px",
4643
4643
  ...e.style
4644
4644
  },
4645
- onThumbPointerDown: (u) => e.onThumbPointerDown(u.x),
4646
- onDragScroll: (u) => e.onDragScroll(u.x),
4647
- onWheelScroll: (u, f) => {
4645
+ onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
4646
+ onDragScroll: (d) => e.onDragScroll(d.x),
4647
+ onWheelScroll: (d, f) => {
4648
4648
  if (s.viewport) {
4649
- const m = s.viewport.scrollLeft + u.deltaX;
4650
- e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
4649
+ const m = s.viewport.scrollLeft + d.deltaX;
4650
+ e.onWheelScroll(m), Mo(m, f) && d.preventDefault();
4651
4651
  }
4652
4652
  },
4653
4653
  onResize: () => {
@@ -4656,23 +4656,23 @@ var Vs = p.forwardRef((e, t) => {
4656
4656
  viewport: s.viewport.offsetWidth,
4657
4657
  scrollbar: {
4658
4658
  size: l.current.clientWidth,
4659
- paddingStart: Te(a.paddingLeft),
4660
- paddingEnd: Te(a.paddingRight)
4659
+ paddingStart: ze(a.paddingLeft),
4660
+ paddingEnd: ze(a.paddingRight)
4661
4661
  }
4662
4662
  });
4663
4663
  }
4664
4664
  }
4665
4665
  );
4666
4666
  }), Gs = p.forwardRef((e, t) => {
4667
- const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), d = Y(t, l, s.onScrollbarYChange);
4667
+ const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), u = Y(t, l, s.onScrollbarYChange);
4668
4668
  return p.useEffect(() => {
4669
4669
  l.current && i(getComputedStyle(l.current));
4670
4670
  }, [l]), /* @__PURE__ */ c(
4671
- _o,
4671
+ Ro,
4672
4672
  {
4673
4673
  "data-orientation": "vertical",
4674
4674
  ...n,
4675
- ref: d,
4675
+ ref: u,
4676
4676
  sizes: o,
4677
4677
  style: {
4678
4678
  top: 0,
@@ -4682,12 +4682,12 @@ var Vs = p.forwardRef((e, t) => {
4682
4682
  "--radix-scroll-area-thumb-height": Me(o) + "px",
4683
4683
  ...e.style
4684
4684
  },
4685
- onThumbPointerDown: (u) => e.onThumbPointerDown(u.y),
4686
- onDragScroll: (u) => e.onDragScroll(u.y),
4687
- onWheelScroll: (u, f) => {
4685
+ onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
4686
+ onDragScroll: (d) => e.onDragScroll(d.y),
4687
+ onWheelScroll: (d, f) => {
4688
4688
  if (s.viewport) {
4689
- const m = s.viewport.scrollTop + u.deltaY;
4690
- e.onWheelScroll(m), Mo(m, f) && u.preventDefault();
4689
+ const m = s.viewport.scrollTop + d.deltaY;
4690
+ e.onWheelScroll(m), Mo(m, f) && d.preventDefault();
4691
4691
  }
4692
4692
  },
4693
4693
  onResize: () => {
@@ -4696,14 +4696,14 @@ var Vs = p.forwardRef((e, t) => {
4696
4696
  viewport: s.viewport.offsetHeight,
4697
4697
  scrollbar: {
4698
4698
  size: l.current.clientHeight,
4699
- paddingStart: Te(a.paddingTop),
4700
- paddingEnd: Te(a.paddingBottom)
4699
+ paddingStart: ze(a.paddingTop),
4700
+ paddingEnd: ze(a.paddingBottom)
4701
4701
  }
4702
4702
  });
4703
4703
  }
4704
4704
  }
4705
4705
  );
4706
- }), [qs, Ro] = ko(X), _o = p.forwardRef((e, t) => {
4706
+ }), [qs, _o] = ko(X), Ro = p.forwardRef((e, t) => {
4707
4707
  const {
4708
4708
  __scopeScrollArea: o,
4709
4709
  sizes: r,
@@ -4712,15 +4712,15 @@ var Vs = p.forwardRef((e, t) => {
4712
4712
  onThumbPointerUp: a,
4713
4713
  onThumbPointerDown: i,
4714
4714
  onThumbPositionChange: l,
4715
- onDragScroll: d,
4716
- onWheelScroll: u,
4715
+ onDragScroll: u,
4716
+ onWheelScroll: d,
4717
4717
  onResize: f,
4718
4718
  ...m
4719
- } = e, g = q(X, o), [k, x] = p.useState(null), h = Y(t, (S) => x(S)), y = p.useRef(null), R = p.useRef(""), C = g.viewport, A = r.content - r.viewport, P = J(u), E = J(l), _ = Le(f, 10);
4719
+ } = e, g = q(X, o), [k, x] = p.useState(null), h = Y(t, (S) => x(S)), y = p.useRef(null), _ = p.useRef(""), C = g.viewport, A = r.content - r.viewport, P = J(d), E = J(l), R = Le(f, 10);
4720
4720
  function b(S) {
4721
4721
  if (y.current) {
4722
4722
  const M = S.clientX - y.current.left, O = S.clientY - y.current.top;
4723
- d({ x: M, y: O });
4723
+ u({ x: M, y: O });
4724
4724
  }
4725
4725
  }
4726
4726
  return p.useEffect(() => {
@@ -4729,7 +4729,7 @@ var Vs = p.forwardRef((e, t) => {
4729
4729
  (k == null ? void 0 : k.contains(O)) && P(M, A);
4730
4730
  };
4731
4731
  return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
4732
- }, [C, k, A, P]), p.useEffect(E, [r, E]), de(k, _), de(g.content, _), /* @__PURE__ */ c(
4732
+ }, [C, k, A, P]), p.useEffect(E, [r, E]), de(k, R), de(g.content, R), /* @__PURE__ */ c(
4733
4733
  qs,
4734
4734
  {
4735
4735
  scope: o,
@@ -4740,49 +4740,49 @@ var Vs = p.forwardRef((e, t) => {
4740
4740
  onThumbPositionChange: E,
4741
4741
  onThumbPointerDown: J(i),
4742
4742
  children: /* @__PURE__ */ c(
4743
- j.div,
4743
+ V.div,
4744
4744
  {
4745
4745
  ...m,
4746
4746
  ref: h,
4747
4747
  style: { position: "absolute", ...m.style },
4748
4748
  onPointerDown: W(e.onPointerDown, (S) => {
4749
- S.button === 0 && (S.target.setPointerCapture(S.pointerId), y.current = k.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), b(S));
4749
+ S.button === 0 && (S.target.setPointerCapture(S.pointerId), y.current = k.getBoundingClientRect(), _.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), b(S));
4750
4750
  }),
4751
4751
  onPointerMove: W(e.onPointerMove, b),
4752
4752
  onPointerUp: W(e.onPointerUp, (S) => {
4753
4753
  const M = S.target;
4754
- M.hasPointerCapture(S.pointerId) && M.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect = R.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
4754
+ M.hasPointerCapture(S.pointerId) && M.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect = _.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
4755
4755
  })
4756
4756
  }
4757
4757
  )
4758
4758
  }
4759
4759
  );
4760
- }), ze = "ScrollAreaThumb", Io = p.forwardRef(
4760
+ }), Te = "ScrollAreaThumb", Io = p.forwardRef(
4761
4761
  (e, t) => {
4762
- const { forceMount: o, ...r } = e, n = Ro(ze, e.__scopeScrollArea);
4762
+ const { forceMount: o, ...r } = e, n = _o(Te, e.__scopeScrollArea);
4763
4763
  return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
4764
4764
  }
4765
4765
  ), Ys = p.forwardRef(
4766
4766
  (e, t) => {
4767
- const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = Ro(ze, o), { onThumbPositionChange: i } = a, l = Y(
4767
+ const { __scopeScrollArea: o, style: r, ...n } = e, s = q(Te, o), a = _o(Te, o), { onThumbPositionChange: i } = a, l = Y(
4768
4768
  t,
4769
4769
  (f) => a.onThumbChange(f)
4770
- ), d = p.useRef(void 0), u = Le(() => {
4771
- d.current && (d.current(), d.current = void 0);
4770
+ ), u = p.useRef(void 0), d = Le(() => {
4771
+ u.current && (u.current(), u.current = void 0);
4772
4772
  }, 100);
4773
4773
  return p.useEffect(() => {
4774
4774
  const f = s.viewport;
4775
4775
  if (f) {
4776
4776
  const m = () => {
4777
- if (u(), !d.current) {
4778
- const g = Ks(f, i);
4779
- d.current = g, i();
4777
+ if (d(), !u.current) {
4778
+ const g = Zs(f, i);
4779
+ u.current = g, i();
4780
4780
  }
4781
4781
  };
4782
4782
  return i(), f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
4783
4783
  }
4784
- }, [s.viewport, u, i]), /* @__PURE__ */ c(
4785
- j.div,
4784
+ }, [s.viewport, d, i]), /* @__PURE__ */ c(
4785
+ V.div,
4786
4786
  {
4787
4787
  "data-state": a.hasThumb ? "visible" : "hidden",
4788
4788
  ...n,
@@ -4801,7 +4801,7 @@ var Vs = p.forwardRef((e, t) => {
4801
4801
  );
4802
4802
  }
4803
4803
  );
4804
- Io.displayName = ze;
4804
+ Io.displayName = Te;
4805
4805
  var it = "ScrollAreaCorner", Po = p.forwardRef(
4806
4806
  (e, t) => {
4807
4807
  const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
@@ -4810,17 +4810,17 @@ var it = "ScrollAreaCorner", Po = p.forwardRef(
4810
4810
  );
4811
4811
  Po.displayName = it;
4812
4812
  var Xs = p.forwardRef((e, t) => {
4813
- const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), d = !!(s && i);
4813
+ const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), u = !!(s && i);
4814
4814
  return de(n.scrollbarX, () => {
4815
4815
  var f;
4816
- const u = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
4817
- n.onCornerHeightChange(u), l(u);
4816
+ const d = ((f = n.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
4817
+ n.onCornerHeightChange(d), l(d);
4818
4818
  }), de(n.scrollbarY, () => {
4819
4819
  var f;
4820
- const u = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
4821
- n.onCornerWidthChange(u), a(u);
4822
- }), d ? /* @__PURE__ */ c(
4823
- j.div,
4820
+ const d = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
4821
+ n.onCornerWidthChange(d), a(d);
4822
+ }), u ? /* @__PURE__ */ c(
4823
+ V.div,
4824
4824
  {
4825
4825
  ...r,
4826
4826
  ref: t,
@@ -4836,26 +4836,26 @@ var Xs = p.forwardRef((e, t) => {
4836
4836
  }
4837
4837
  ) : null;
4838
4838
  });
4839
- function Te(e) {
4839
+ function ze(e) {
4840
4840
  return e ? parseInt(e, 10) : 0;
4841
4841
  }
4842
- function zo(e, t) {
4842
+ function To(e, t) {
4843
4843
  const o = e / t;
4844
4844
  return isNaN(o) ? 0 : o;
4845
4845
  }
4846
4846
  function Me(e) {
4847
- const t = zo(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
4847
+ const t = To(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
4848
4848
  return Math.max(r, 18);
4849
4849
  }
4850
- function Zs(e, t, o, r = "ltr") {
4851
- const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, d = o.scrollbar.size - o.scrollbar.paddingEnd - i, u = o.content - o.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
4852
- return To([l, d], f)(e);
4850
+ function Ks(e, t, o, r = "ltr") {
4851
+ const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, u = o.scrollbar.size - o.scrollbar.paddingEnd - i, d = o.content - o.viewport, f = r === "ltr" ? [0, d] : [d * -1, 0];
4852
+ return zo([l, u], f)(e);
4853
4853
  }
4854
4854
  function At(e, t, o = "ltr") {
4855
- const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Us(e, l);
4856
- return To([0, a], [0, i])(d);
4855
+ const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], u = Us(e, l);
4856
+ return zo([0, a], [0, i])(u);
4857
4857
  }
4858
- function To(e, t) {
4858
+ function zo(e, t) {
4859
4859
  return (o) => {
4860
4860
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
4861
4861
  const r = (t[1] - t[0]) / (e[1] - e[0]);
@@ -4865,7 +4865,7 @@ function To(e, t) {
4865
4865
  function Mo(e, t) {
4866
4866
  return e > 0 && e < t;
4867
4867
  }
4868
- var Ks = (e, t = () => {
4868
+ var Zs = (e, t = () => {
4869
4869
  }) => {
4870
4870
  let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
4871
4871
  return (function n() {
@@ -4893,10 +4893,10 @@ function de(e, t) {
4893
4893
  }
4894
4894
  }, [e, o]);
4895
4895
  }
4896
- var Js = So, Qs = Eo, ea = Po, ta = "Separator", Rt = "horizontal", oa = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
4897
- const { decorative: o, orientation: r = Rt, ...n } = e, s = ra(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
4896
+ var Js = So, Qs = Eo, ea = Po, ta = "Separator", _t = "horizontal", oa = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
4897
+ const { decorative: o, orientation: r = _t, ...n } = e, s = ra(r) ? r : _t, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
4898
4898
  return /* @__PURE__ */ c(
4899
- j.div,
4899
+ V.div,
4900
4900
  {
4901
4901
  "data-orientation": s,
4902
4902
  ...i,
@@ -4921,8 +4921,8 @@ var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
4921
4921
  orientation: a = "horizontal",
4922
4922
  dir: i,
4923
4923
  activationMode: l = "automatic",
4924
- ...d
4925
- } = e, u = rt(i), [f, m] = io({
4924
+ ...u
4925
+ } = e, d = rt(i), [f, m] = io({
4926
4926
  prop: r,
4927
4927
  onChange: n,
4928
4928
  defaultProp: s ?? "",
@@ -4936,14 +4936,14 @@ var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
4936
4936
  value: f,
4937
4937
  onValueChange: m,
4938
4938
  orientation: a,
4939
- dir: u,
4939
+ dir: d,
4940
4940
  activationMode: l,
4941
4941
  children: /* @__PURE__ */ c(
4942
- j.div,
4942
+ V.div,
4943
4943
  {
4944
- dir: u,
4944
+ dir: d,
4945
4945
  "data-orientation": a,
4946
- ...d,
4946
+ ...u,
4947
4947
  ref: t
4948
4948
  }
4949
4949
  )
@@ -4964,7 +4964,7 @@ var Fo = "TabsList", Do = p.forwardRef(
4964
4964
  dir: s.dir,
4965
4965
  loop: r,
4966
4966
  children: /* @__PURE__ */ c(
4967
- j.div,
4967
+ V.div,
4968
4968
  {
4969
4969
  role: "tablist",
4970
4970
  "aria-orientation": s.orientation,
@@ -4979,22 +4979,22 @@ var Fo = "TabsList", Do = p.forwardRef(
4979
4979
  Do.displayName = Fo;
4980
4980
  var Uo = "TabsTrigger", Wo = p.forwardRef(
4981
4981
  (e, t) => {
4982
- const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Uo, o), i = Oo(o), l = jo(a.baseId, r), d = Bo(a.baseId, r), u = r === a.value;
4982
+ const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(Uo, o), i = Oo(o), l = Vo(a.baseId, r), u = Bo(a.baseId, r), d = r === a.value;
4983
4983
  return /* @__PURE__ */ c(
4984
4984
  Ds,
4985
4985
  {
4986
4986
  asChild: !0,
4987
4987
  ...i,
4988
4988
  focusable: !n,
4989
- active: u,
4989
+ active: d,
4990
4990
  children: /* @__PURE__ */ c(
4991
- j.button,
4991
+ V.button,
4992
4992
  {
4993
4993
  type: "button",
4994
4994
  role: "tab",
4995
- "aria-selected": u,
4996
- "aria-controls": d,
4997
- "data-state": u ? "active" : "inactive",
4995
+ "aria-selected": d,
4996
+ "aria-controls": u,
4997
+ "data-state": d ? "active" : "inactive",
4998
4998
  "data-disabled": n ? "" : void 0,
4999
4999
  disabled: n,
5000
5000
  id: l,
@@ -5008,7 +5008,7 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
5008
5008
  }),
5009
5009
  onFocus: W(e.onFocus, () => {
5010
5010
  const f = a.activationMode !== "manual";
5011
- !u && !n && f && a.onValueChange(r);
5011
+ !d && !n && f && a.onValueChange(r);
5012
5012
  })
5013
5013
  }
5014
5014
  )
@@ -5017,21 +5017,21 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
5017
5017
  }
5018
5018
  );
5019
5019
  Wo.displayName = Uo;
5020
- var Ho = "TabsContent", Vo = p.forwardRef(
5020
+ var Ho = "TabsContent", jo = p.forwardRef(
5021
5021
  (e, t) => {
5022
- const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Ho, o), l = jo(i.baseId, r), d = Bo(i.baseId, r), u = r === i.value, f = p.useRef(u);
5022
+ const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Ho, o), l = Vo(i.baseId, r), u = Bo(i.baseId, r), d = r === i.value, f = p.useRef(d);
5023
5023
  return p.useEffect(() => {
5024
5024
  const m = requestAnimationFrame(() => f.current = !1);
5025
5025
  return () => cancelAnimationFrame(m);
5026
- }, []), /* @__PURE__ */ c(ue, { present: n || u, children: ({ present: m }) => /* @__PURE__ */ c(
5027
- j.div,
5026
+ }, []), /* @__PURE__ */ c(ue, { present: n || d, children: ({ present: m }) => /* @__PURE__ */ c(
5027
+ V.div,
5028
5028
  {
5029
- "data-state": u ? "active" : "inactive",
5029
+ "data-state": d ? "active" : "inactive",
5030
5030
  "data-orientation": i.orientation,
5031
5031
  role: "tabpanel",
5032
5032
  "aria-labelledby": l,
5033
5033
  hidden: !m,
5034
- id: d,
5034
+ id: u,
5035
5035
  tabIndex: 0,
5036
5036
  ...a,
5037
5037
  ref: t,
@@ -5044,14 +5044,14 @@ var Ho = "TabsContent", Vo = p.forwardRef(
5044
5044
  ) });
5045
5045
  }
5046
5046
  );
5047
- Vo.displayName = Ho;
5048
- function jo(e, t) {
5047
+ jo.displayName = Ho;
5048
+ function Vo(e, t) {
5049
5049
  return `${e}-trigger-${t}`;
5050
5050
  }
5051
5051
  function Bo(e, t) {
5052
5052
  return `${e}-content-${t}`;
5053
5053
  }
5054
- var ia = $o, la = Do, ca = Wo, da = Vo;
5054
+ var ia = $o, la = Do, ca = Wo, da = jo;
5055
5055
  const ua = ot(
5056
5056
  'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
5057
5057
  {
@@ -5094,7 +5094,7 @@ function Go({
5094
5094
  "data-slot": "button",
5095
5095
  "data-variant": t,
5096
5096
  "data-size": o,
5097
- className: T(ua({ variant: t, size: o, className: e })),
5097
+ className: z(ua({ variant: t, size: o, className: e })),
5098
5098
  ...n
5099
5099
  }
5100
5100
  );
@@ -5128,7 +5128,7 @@ function ma({
5128
5128
  {
5129
5129
  "data-slot": "badge",
5130
5130
  "data-variant": t,
5131
- className: T(fa({ variant: t }), e),
5131
+ className: z(fa({ variant: t }), e),
5132
5132
  ...r
5133
5133
  }
5134
5134
  );
@@ -5139,7 +5139,7 @@ function pa({ className: e, type: t, ...o }) {
5139
5139
  {
5140
5140
  type: t,
5141
5141
  "data-slot": "input",
5142
- className: T(
5142
+ className: z(
5143
5143
  "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
5144
5144
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
5145
5145
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
@@ -5161,7 +5161,7 @@ function ha({
5161
5161
  "data-slot": "separator",
5162
5162
  decorative: o,
5163
5163
  orientation: t,
5164
- className: T(
5164
+ className: z(
5165
5165
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
5166
5166
  e
5167
5167
  ),
@@ -5180,7 +5180,7 @@ function ga({
5180
5180
  "data-slot": "tabs",
5181
5181
  "data-orientation": t,
5182
5182
  orientation: t,
5183
- className: T(
5183
+ className: z(
5184
5184
  "group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
5185
5185
  e
5186
5186
  ),
@@ -5212,7 +5212,7 @@ function va({
5212
5212
  {
5213
5213
  "data-slot": "tabs-list",
5214
5214
  "data-variant": t,
5215
- className: T(ba({ variant: t }), e),
5215
+ className: z(ba({ variant: t }), e),
5216
5216
  ...o
5217
5217
  }
5218
5218
  );
@@ -5225,7 +5225,7 @@ function xa({
5225
5225
  ca,
5226
5226
  {
5227
5227
  "data-slot": "tabs-trigger",
5228
- className: T(
5228
+ className: z(
5229
5229
  'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4',
5230
5230
  "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",
5231
5231
  "data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground",
@@ -5244,7 +5244,7 @@ function wa({
5244
5244
  da,
5245
5245
  {
5246
5246
  "data-slot": "tabs-content",
5247
- className: T("flex-1 outline-none", e),
5247
+ className: z("flex-1 outline-none", e),
5248
5248
  ...t
5249
5249
  }
5250
5250
  );
@@ -5259,7 +5259,7 @@ function ya({
5259
5259
  {
5260
5260
  "data-slot": "scroll-area-scrollbar",
5261
5261
  orientation: t,
5262
- className: T(
5262
+ className: z(
5263
5263
  "flex touch-none p-px transition-colors select-none",
5264
5264
  t === "vertical" && "h-full w-2.5 border-l border-l-transparent",
5265
5265
  t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
@@ -5281,11 +5281,11 @@ function ka({
5281
5281
  children: t,
5282
5282
  ...o
5283
5283
  }) {
5284
- return /* @__PURE__ */ z(
5284
+ return /* @__PURE__ */ T(
5285
5285
  Js,
5286
5286
  {
5287
5287
  "data-slot": "scroll-area",
5288
- className: T("relative", e),
5288
+ className: z("relative", e),
5289
5289
  ...o,
5290
5290
  children: [
5291
5291
  /* @__PURE__ */ c(
@@ -5302,7 +5302,7 @@ function ka({
5302
5302
  }
5303
5303
  );
5304
5304
  }
5305
- function Ke({
5305
+ function Ze({
5306
5306
  className: e,
5307
5307
  size: t = "default",
5308
5308
  ...o
@@ -5312,7 +5312,7 @@ function Ke({
5312
5312
  {
5313
5313
  "data-slot": "avatar",
5314
5314
  "data-size": t,
5315
- className: T(
5315
+ className: z(
5316
5316
  "group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
5317
5317
  e
5318
5318
  ),
@@ -5328,7 +5328,7 @@ function Je({
5328
5328
  Ns,
5329
5329
  {
5330
5330
  "data-slot": "avatar-image",
5331
- className: T("aspect-square size-full", e),
5331
+ className: z("aspect-square size-full", e),
5332
5332
  ...t
5333
5333
  }
5334
5334
  );
@@ -5341,7 +5341,7 @@ function Qe({
5341
5341
  As,
5342
5342
  {
5343
5343
  "data-slot": "avatar-fallback",
5344
- className: T(
5344
+ className: z(
5345
5345
  "bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",
5346
5346
  e
5347
5347
  ),
@@ -5358,14 +5358,14 @@ const qo = {
5358
5358
  clock: Or,
5359
5359
  "credit-card": Fr,
5360
5360
  "external-link": Ur,
5361
- "help-circle": zr,
5361
+ "help-circle": Tr,
5362
5362
  info: Hr,
5363
5363
  "loader-2": Ut,
5364
5364
  mail: Ye,
5365
5365
  "map-pin": Gr,
5366
5366
  "message-circle": Yr,
5367
5367
  "message-square": Wt,
5368
- package: Kr,
5368
+ package: Zr,
5369
5369
  phone: Qr,
5370
5370
  search: tn,
5371
5371
  "shopping-bag": rn,
@@ -5373,9 +5373,9 @@ const qo = {
5373
5373
  truck: ln,
5374
5374
  user: Ht,
5375
5375
  "x-circle": Mr,
5376
- "alert-circle": Rr,
5376
+ "alert-circle": _r,
5377
5377
  "book-open": yr
5378
- }, _t = {
5378
+ }, Rt = {
5379
5379
  0: "gap-0",
5380
5380
  1: "gap-1",
5381
5381
  2: "gap-2",
@@ -5386,7 +5386,7 @@ const qo = {
5386
5386
  8: "gap-8",
5387
5387
  10: "gap-10",
5388
5388
  12: "gap-12"
5389
- }, Yo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", Sa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
5389
+ }, Yo = (e) => typeof e == "number" ? Rt[String(e)] ?? "gap-2" : typeof e == "string" ? Rt[e.trim()] ?? "gap-2" : "gap-2", Sa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
5390
5390
  me,
5391
5391
  {
5392
5392
  className: t,
@@ -5411,22 +5411,22 @@ const qo = {
5411
5411
  variant: o,
5412
5412
  children: e
5413
5413
  }
5414
- ), Ra = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5414
+ ), _a = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5415
5415
  pa,
5416
5416
  {
5417
5417
  className: e,
5418
5418
  onChange: t,
5419
5419
  ...o
5420
5420
  }
5421
- ), _a = ({ className: e }) => /* @__PURE__ */ c(ha, { className: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(ga, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, value: "", children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ka, { className: t, children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Ke, { className: t, children: e }), Oa = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), $a = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: T("text-sm", t), children: e }), Da = ({ children: e, className: t, level: o }) => {
5421
+ ), Ra = ({ className: e }) => /* @__PURE__ */ c(ha, { className: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(ga, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, value: "", children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ka, { className: t, children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Ze, { className: t, children: e }), Oa = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), $a = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: z("text-sm", t), children: e }), Da = ({ children: e, className: t, level: o }) => {
5422
5422
  const r = `h${o || "2"}`;
5423
- return /* @__PURE__ */ c(r, { className: T("font-semibold tracking-tight", t), children: e });
5423
+ return /* @__PURE__ */ c(r, { className: z("font-semibold tracking-tight", t), children: e });
5424
5424
  }, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
5425
5425
  const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
5426
- return /* @__PURE__ */ c("div", { className: T("flex", n, s, t), children: e });
5426
+ return /* @__PURE__ */ c("div", { className: z("flex", n, s, t), children: e });
5427
5427
  }, Wa = ({ children: e, className: t, gap: o }) => {
5428
5428
  const r = Yo(o);
5429
- return /* @__PURE__ */ c("div", { className: T("flex flex-row items-center", r, t), children: e });
5429
+ return /* @__PURE__ */ c("div", { className: z("flex flex-row items-center", r, t), children: e });
5430
5430
  }, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5431
5431
  "a",
5432
5432
  {
@@ -5436,20 +5436,20 @@ const qo = {
5436
5436
  className: t,
5437
5437
  children: e
5438
5438
  }
5439
- ), Va = ({ title: e, children: t, className: o }) => /* @__PURE__ */ z(me, { className: T("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5439
+ ), ja = ({ title: e, children: t, className: o }) => /* @__PURE__ */ T(me, { className: z("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5440
5440
  e ? /* @__PURE__ */ c(pe, { className: "px-6 py-3", children: /* @__PURE__ */ c("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
5441
5441
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
5442
- ] }), ja = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5442
+ ] }), Va = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5443
5443
  const s = e, a = "size-5", i = s ? qo[s] : null;
5444
- return /* @__PURE__ */ z(
5444
+ return /* @__PURE__ */ T(
5445
5445
  "button",
5446
5446
  {
5447
5447
  type: "button",
5448
- className: T("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70", n),
5448
+ className: z("w-full h-auto px-6 py-6 flex items-center gap-2 justify-start cursor-pointer text-left rounded-none transition-colors hover:bg-accent/70", n),
5449
5449
  onClick: r,
5450
5450
  children: [
5451
5451
  i && /* @__PURE__ */ c(i, { className: `${a} shrink-0 text-muted-foreground` }),
5452
- /* @__PURE__ */ z("div", { className: "flex flex-col gap-0 flex-1 min-w-0 items-start", children: [
5452
+ /* @__PURE__ */ T("div", { className: "flex flex-col gap-0 flex-1 min-w-0 items-start", children: [
5453
5453
  t ? /* @__PURE__ */ c("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
5454
5454
  o ? /* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(o) }) : null
5455
5455
  ] }),
@@ -5459,7 +5459,7 @@ const qo = {
5459
5459
  );
5460
5460
  }, Ba = ({ name: e, size: t, className: o }) => {
5461
5461
  const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = qo[s], i = s === "sparkles" ? "sparkle-icon" : "";
5462
- return a ? /* @__PURE__ */ c(a, { className: T(n, i, o) }) : /* @__PURE__ */ c("span", { className: T("inline-block", n, i, o), "data-icon": s });
5462
+ return a ? /* @__PURE__ */ c(a, { className: z(n, i, o) }) : /* @__PURE__ */ c("span", { className: z("inline-block", n, i, o), "data-icon": s });
5463
5463
  }, Ga = () => ({
5464
5464
  "ui-card": Sa,
5465
5465
  "ui-card-content": Ca,
@@ -5468,22 +5468,22 @@ const qo = {
5468
5468
  "ui-text": Fa,
5469
5469
  "ui-heading": Da,
5470
5470
  "ui-badge": Aa,
5471
- "ui-input": Ra,
5471
+ "ui-input": _a,
5472
5472
  "ui-stack": Ua,
5473
5473
  "ui-inline": Wa,
5474
- "ui-separator": _a,
5474
+ "ui-separator": Ra,
5475
5475
  "ui-tabs": Ia,
5476
5476
  "ui-tabs-list": Pa,
5477
- "ui-tabs-trigger": za,
5478
- "ui-tabs-content": Ta,
5477
+ "ui-tabs-trigger": Ta,
5478
+ "ui-tabs-content": za,
5479
5479
  "ui-scroll-area": Ma,
5480
5480
  "ui-avatar": La,
5481
5481
  "ui-avatar-image": Oa,
5482
5482
  "ui-avatar-fallback": $a,
5483
5483
  "ui-icon": Ba,
5484
5484
  "ui-link": Ha,
5485
- "ui-menu-item": ja,
5486
- "ui-menu": Va
5485
+ "ui-menu-item": Va,
5486
+ "ui-menu": ja
5487
5487
  }), It = "/api/ecommerce", Xo = async (e, t) => {
5488
5488
  const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
5489
5489
  method: "POST",
@@ -5493,7 +5493,7 @@ const qo = {
5493
5493
  if (!r.ok)
5494
5494
  throw new Error(n.error || "API request failed");
5495
5495
  return n.data;
5496
- }, qa = ({ className: e }) => /* @__PURE__ */ z("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5496
+ }, qa = ({ className: e }) => /* @__PURE__ */ T("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5497
5497
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M344.73,67.03C344.73,30.01 314.72,0 277.7,0C240.68,0 210.67,30.01 210.67,67.03L255.36,67.03C255.36,54.69 265.36,44.69 277.7,44.69C290.04,44.69 300.05,54.69 300.05,67.03L344.73,67.03Z", fill: "rgb(15,13,25)" }) }),
5498
5498
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M300.04,67.03C300.04,54.69 290.05,44.69 277.7,44.69C265.35,44.69 255.36,54.69 255.36,67.03L300.04,67.03Z", fill: "rgb(232,218,234)" }) }),
5499
5499
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M166,67.03C166,104.05 196.01,134.06 233.03,134.06C270.05,134.06 300.06,104.05 300.06,67.03L255.37,67.03C255.37,79.37 245.37,89.37 233.03,89.37C220.69,89.37 210.69,79.37 210.69,67.03L166,67.03Z", fill: "rgb(15,13,25)" }) }),
@@ -5515,21 +5515,21 @@ const qo = {
5515
5515
  Ya();
5516
5516
  }, []), B(() => {
5517
5517
  if (typeof window > "u") return;
5518
- const u = () => {
5518
+ const d = () => {
5519
5519
  const m = $t(window.location.search);
5520
5520
  r(m);
5521
5521
  };
5522
- u();
5523
- const f = () => u();
5522
+ d();
5523
+ const f = () => d();
5524
5524
  return window.addEventListener("popstate", f), () => window.removeEventListener("popstate", f);
5525
5525
  }, []), o.length === 0)
5526
5526
  return null;
5527
- const d = (u) => {
5528
- if (u.stopPropagation(), typeof window > "u") return;
5527
+ const u = (d) => {
5528
+ if (d.stopPropagation(), typeof window > "u") return;
5529
5529
  const f = new URL(window.location.href);
5530
5530
  f.searchParams.delete("_stackable_dev"), window.location.href = f.toString();
5531
5531
  };
5532
- return /* @__PURE__ */ z(
5532
+ return /* @__PURE__ */ T(
5533
5533
  "div",
5534
5534
  {
5535
5535
  className: e,
@@ -5561,9 +5561,9 @@ const qo = {
5561
5561
  width: "420px",
5562
5562
  maxWidth: "90vw"
5563
5563
  },
5564
- children: o.map((u, f) => {
5564
+ children: o.map((d, f) => {
5565
5565
  var m;
5566
- return /* @__PURE__ */ z(
5566
+ return /* @__PURE__ */ T(
5567
5567
  "div",
5568
5568
  {
5569
5569
  style: {
@@ -5583,10 +5583,10 @@ const qo = {
5583
5583
  overflow: "hidden",
5584
5584
  textOverflow: "ellipsis"
5585
5585
  },
5586
- children: ((m = t.find((g) => g.id === u.extensionId)) == null ? void 0 : m.manifest.name) || u.extensionId
5586
+ children: ((m = t.find((g) => g.id === d.extensionId)) == null ? void 0 : m.manifest.name) || d.extensionId
5587
5587
  }
5588
5588
  ),
5589
- /* @__PURE__ */ z(
5589
+ /* @__PURE__ */ T(
5590
5590
  "div",
5591
5591
  {
5592
5592
  style: {
@@ -5598,21 +5598,21 @@ const qo = {
5598
5598
  overflow: "hidden",
5599
5599
  textOverflow: "ellipsis"
5600
5600
  },
5601
- title: u.bundleUrl,
5601
+ title: d.bundleUrl,
5602
5602
  children: [
5603
5603
  "→ ",
5604
- u.bundleUrl
5604
+ d.bundleUrl
5605
5605
  ]
5606
5606
  }
5607
5607
  )
5608
5608
  ]
5609
5609
  },
5610
- u.extensionId
5610
+ d.extensionId
5611
5611
  );
5612
5612
  })
5613
5613
  }
5614
5614
  ),
5615
- /* @__PURE__ */ z(
5615
+ /* @__PURE__ */ T(
5616
5616
  "div",
5617
5617
  {
5618
5618
  onClick: () => s(!n),
@@ -5644,7 +5644,7 @@ const qo = {
5644
5644
  }
5645
5645
  ),
5646
5646
  /* @__PURE__ */ c("span", { children: "Dev Mode" }),
5647
- /* @__PURE__ */ z("span", { style: { fontSize: "12px", opacity: 0.75 }, children: [
5647
+ /* @__PURE__ */ T("span", { style: { fontSize: "12px", opacity: 0.75 }, children: [
5648
5648
  "(",
5649
5649
  o.length,
5650
5650
  " extension",
@@ -5654,7 +5654,7 @@ const qo = {
5654
5654
  /* @__PURE__ */ c(
5655
5655
  "button",
5656
5656
  {
5657
- onClick: d,
5657
+ onClick: u,
5658
5658
  style: {
5659
5659
  marginLeft: "4px",
5660
5660
  backgroundColor: "rgba(0, 0, 0, 0.15)",
@@ -5668,11 +5668,11 @@ const qo = {
5668
5668
  fontFamily: "inherit",
5669
5669
  transition: "background-color 0.1s ease"
5670
5670
  },
5671
- onMouseOver: (u) => {
5672
- u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
5671
+ onMouseOver: (d) => {
5672
+ d.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.25)";
5673
5673
  },
5674
- onMouseOut: (u) => {
5675
- u.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.15)";
5674
+ onMouseOut: (d) => {
5675
+ d.currentTarget.style.backgroundColor = "rgba(0, 0, 0, 0.15)";
5676
5676
  },
5677
5677
  children: "Clear"
5678
5678
  }
@@ -5683,7 +5683,7 @@ const qo = {
5683
5683
  ]
5684
5684
  }
5685
5685
  );
5686
- }, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ii = ({
5686
+ }, Tt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ii = ({
5687
5687
  instanceId: e,
5688
5688
  apiBase: t,
5689
5689
  hostBase: o,
@@ -5692,22 +5692,22 @@ const qo = {
5692
5692
  customerId: s,
5693
5693
  customerEmail: a
5694
5694
  }) => {
5695
- const [i, l] = U([]), [d, u] = U(!1);
5695
+ const [i, l] = U([]), [u, d] = U(!1);
5696
5696
  B(() => {
5697
5697
  (async () => {
5698
5698
  const g = e;
5699
5699
  try {
5700
5700
  if (!g) {
5701
- console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), u(!0);
5701
+ console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), d(!0);
5702
5702
  return;
5703
5703
  }
5704
5704
  if (!t || !r) {
5705
- console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
5705
+ console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), d(!0);
5706
5706
  return;
5707
5707
  }
5708
- const k = await fetch(zt(t, `/instances/${r}/${g}`));
5708
+ const k = await fetch(Tt(t, `/instances/${r}/${g}`));
5709
5709
  if (!k.ok) {
5710
- console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), u(!0);
5710
+ console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), d(!0);
5711
5711
  return;
5712
5712
  }
5713
5713
  const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = dr(x, h);
@@ -5715,7 +5715,7 @@ const qo = {
5715
5715
  } catch (k) {
5716
5716
  console.error("Failed to load extensions:", k);
5717
5717
  } finally {
5718
- u(!0);
5718
+ d(!0);
5719
5719
  }
5720
5720
  })();
5721
5721
  }, [e, r, t]);
@@ -5729,7 +5729,7 @@ const qo = {
5729
5729
  "data.fetch": async (m, g) => {
5730
5730
  if (!t || !r)
5731
5731
  throw new Error("apiBase and appId are required for data.fetch");
5732
- const k = zt(t, "/proxy"), x = await fetch(k, {
5732
+ const k = Tt(t, "/proxy"), x = await fetch(k, {
5733
5733
  method: "POST",
5734
5734
  headers: { "Content-Type": "application/json" },
5735
5735
  body: JSON.stringify({
@@ -5767,11 +5767,11 @@ const qo = {
5767
5767
  }),
5768
5768
  [t, r, o, s, a]
5769
5769
  );
5770
- return d ? /* @__PURE__ */ z(he, { children: [
5770
+ return u ? /* @__PURE__ */ T(he, { children: [
5771
5771
  /* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
5772
5772
  /* @__PURE__ */ c(Xa, { extensions: i })
5773
5773
  ] }) : null;
5774
- }, Za = { dark: "dark", light: "widget-theme-light" }, Zo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Za[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Ko = ({ onClick: e, icon: t = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
5774
+ }, Ka = { dark: "dark", light: "widget-theme-light" }, Ko = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: Ka[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Zo = ({ onClick: e, icon: t = br }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
5775
5775
  Go,
5776
5776
  {
5777
5777
  className: "h-12 w-12 rounded-full",
@@ -5781,16 +5781,16 @@ const qo = {
5781
5781
  }
5782
5782
  ) }), li = ({ children: e, icon: t, theme: o }) => {
5783
5783
  const [r, n] = U(!1);
5784
- return /* @__PURE__ */ z(he, { children: [
5785
- /* @__PURE__ */ c(Ko, { onClick: () => {
5784
+ return /* @__PURE__ */ T(he, { children: [
5785
+ /* @__PURE__ */ c(Zo, { onClick: () => {
5786
5786
  n(!r);
5787
5787
  }, icon: t }),
5788
- r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(Zo, { theme: o, children: e }) })
5788
+ r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(Ko, { theme: o, children: e }) })
5789
5789
  ] });
5790
5790
  }, ci = {
5791
- Body: Zo,
5792
- Launcher: Ko
5793
- }, Ka = ({ href: e, children: t }) => /* @__PURE__ */ c(
5791
+ Body: Ko,
5792
+ Launcher: Zo
5793
+ }, Za = ({ href: e, children: t }) => /* @__PURE__ */ c(
5794
5794
  "a",
5795
5795
  {
5796
5796
  href: e,
@@ -5809,43 +5809,43 @@ const qo = {
5809
5809
  (async () => {
5810
5810
  s(!0), i(null);
5811
5811
  try {
5812
- const d = await Xo({
5812
+ const u = await Xo({
5813
5813
  action: "getCustomer",
5814
5814
  customerId: e
5815
5815
  }, t);
5816
- r(d);
5817
- } catch (d) {
5818
- i(d);
5816
+ r(u);
5817
+ } catch (u) {
5818
+ i(u);
5819
5819
  } finally {
5820
5820
  s(!1);
5821
5821
  }
5822
5822
  })();
5823
5823
  }, [e, t]), { customer: o, loading: n, error: a };
5824
5824
  }, Qa = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
5825
- var l, d;
5825
+ var l, u;
5826
5826
  const { customer: n, loading: s, error: a } = Ja(e, o);
5827
5827
  if (s)
5828
5828
  return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(Ut, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
5829
5829
  if (a || !n) {
5830
- const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
5831
- return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ z(pe, { className: "p-4 pb-0 pt-2", children: [
5832
- /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
5833
- /* @__PURE__ */ z(Ke, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
5830
+ const d = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = d.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
5831
+ return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ T(pe, { className: "p-4 pb-0 pt-2", children: [
5832
+ /* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
5833
+ /* @__PURE__ */ T(Ze, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
5834
5834
  /* @__PURE__ */ c(
5835
5835
  Je,
5836
5836
  {
5837
- src: `https://ui-avatars.com/api/?name=${encodeURIComponent(u)}&background=7c3aed&color=fff&size=128`,
5838
- alt: u
5837
+ src: `https://ui-avatars.com/api/?name=${encodeURIComponent(d)}&background=7c3aed&color=fff&size=128`,
5838
+ alt: d
5839
5839
  }
5840
5840
  ),
5841
5841
  /* @__PURE__ */ c(Qe, { className: "text-lg", children: f })
5842
5842
  ] }),
5843
- /* @__PURE__ */ z("div", { className: "text-center w-full space-y-1", children: [
5844
- /* @__PURE__ */ z("div", { children: [
5843
+ /* @__PURE__ */ T("div", { className: "text-center w-full space-y-1", children: [
5844
+ /* @__PURE__ */ T("div", { children: [
5845
5845
  /* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
5846
- /* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
5846
+ /* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: d })
5847
5847
  ] }),
5848
- t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ z("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
5848
+ t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
5849
5849
  /* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
5850
5850
  /* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: t })
5851
5851
  ] }) }),
@@ -5855,9 +5855,9 @@ const qo = {
5855
5855
  /* @__PURE__ */ c("p", { className: "pt-2 text-center text-xs text-muted-foreground", children: "Using fallback profile (customer API returned no data)" })
5856
5856
  ] }) });
5857
5857
  }
5858
- const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((d = n.last_name) == null ? void 0 : d[0]) || ""}`;
5859
- return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
5860
- /* @__PURE__ */ z(Ke, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
5858
+ const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((u = n.last_name) == null ? void 0 : u[0]) || ""}`;
5859
+ return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center", children: [
5860
+ /* @__PURE__ */ T(Ze, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
5861
5861
  /* @__PURE__ */ c(
5862
5862
  Je,
5863
5863
  {
@@ -5867,12 +5867,12 @@ const qo = {
5867
5867
  ),
5868
5868
  /* @__PURE__ */ c(Qe, { className: "text-lg", children: i })
5869
5869
  ] }),
5870
- /* @__PURE__ */ z("div", { className: "text-center w-full space-y-1", children: [
5871
- /* @__PURE__ */ z("div", { children: [
5870
+ /* @__PURE__ */ T("div", { className: "text-center w-full space-y-1", children: [
5871
+ /* @__PURE__ */ T("div", { children: [
5872
5872
  /* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
5873
5873
  /* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: n.name })
5874
5874
  ] }),
5875
- /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ z("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
5875
+ /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
5876
5876
  /* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
5877
5877
  /* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: n.email })
5878
5878
  ] }) }),
@@ -5930,7 +5930,7 @@ const qo = {
5930
5930
  const a = Math.max(
5931
5931
  Ge,
5932
5932
  Math.min(qe, s)
5933
- ), [i, l] = U("account"), [d, u] = U(a), [f, m] = U(!1), [g, k] = U(!1), [x, h] = U(!1), y = ae(null), R = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
5933
+ ), [i, l] = U("account"), [u, d] = U(a), [f, m] = U(!1), [g, k] = U(!1), [x, h] = U(!1), y = ae(null), _ = _e(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
5934
5934
  mode: "embedded",
5935
5935
  conversationList: { targetElement: "#widget_conversations" },
5936
5936
  messageLog: { targetElement: "#widget_messages" }
@@ -5940,23 +5940,23 @@ const qo = {
5940
5940
  messageLog: { hideHeader: !0 }
5941
5941
  }), !0), []);
5942
5942
  B(() => {
5943
- if (R()) {
5943
+ if (_()) {
5944
5944
  k(!0);
5945
5945
  return;
5946
5946
  }
5947
5947
  const E = setInterval(() => {
5948
- R() && (k(!0), clearInterval(E));
5949
- }, 100), _ = setTimeout(() => {
5948
+ _() && (k(!0), clearInterval(E));
5949
+ }, 100), R = setTimeout(() => {
5950
5950
  clearInterval(E), console.warn("Zendesk widget failed to load after 10 seconds");
5951
5951
  }, 1e4);
5952
5952
  return () => {
5953
- clearInterval(E), clearTimeout(_);
5953
+ clearInterval(E), clearTimeout(R);
5954
5954
  };
5955
- }, [R]);
5956
- const C = Re((E) => {
5957
- const { detail: _ } = E;
5958
- if (!window.zE || !_.payload || (_ == null ? void 0 : _.action) !== "newConversation") return !1;
5959
- window.zE("messenger:ui", "newConversation", _.payload);
5955
+ }, [_]);
5956
+ const C = _e((E) => {
5957
+ const { detail: R } = E;
5958
+ if (!window.zE || !R.payload || (R == null ? void 0 : R.action) !== "newConversation") return !1;
5959
+ window.zE("messenger:ui", "newConversation", R.payload);
5960
5960
  }, []);
5961
5961
  B(() => (window.addEventListener("ext-new-conversation", C), () => {
5962
5962
  window.removeEventListener("ext-new-conversation", C);
@@ -5966,60 +5966,60 @@ const qo = {
5966
5966
  if (!y.current) return;
5967
5967
  const S = y.current.getBoundingClientRect();
5968
5968
  if ((f ? S.width : S.height) === 0) return;
5969
- const O = f ? (b.clientX - S.left) / S.width * 100 : (b.clientY - S.top) / S.height * 100, Z = Math.max(
5969
+ const O = f ? (b.clientX - S.left) / S.width * 100 : (b.clientY - S.top) / S.height * 100, K = Math.max(
5970
5970
  Ge,
5971
5971
  Math.min(qe, O)
5972
5972
  );
5973
- u(Z);
5974
- }, _ = () => {
5973
+ d(K);
5974
+ }, R = () => {
5975
5975
  h(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
5976
5976
  };
5977
- return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", _), window.addEventListener("blur", _), () => {
5978
- window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", _), window.removeEventListener("blur", _), document.body.style.cursor = "", document.body.style.userSelect = "";
5977
+ return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", E), window.addEventListener("mouseup", R), window.addEventListener("blur", R), () => {
5978
+ window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", R), window.removeEventListener("blur", R), document.body.style.cursor = "", document.body.style.userSelect = "";
5979
5979
  };
5980
5980
  }, [x, f]), B(() => {
5981
5981
  if (!y.current) return;
5982
- const E = y.current, _ = () => {
5982
+ const E = y.current, R = () => {
5983
5983
  const S = getComputedStyle(E).flexDirection === "row";
5984
5984
  m(S);
5985
5985
  };
5986
- _();
5987
- const b = new ResizeObserver(_);
5986
+ R();
5987
+ const b = new ResizeObserver(R);
5988
5988
  return b.observe(E), () => {
5989
5989
  b.disconnect();
5990
5990
  };
5991
5991
  }, []);
5992
- const A = Re((E) => {
5992
+ const A = _e((E) => {
5993
5993
  if (E.detail === 2) {
5994
- u(a);
5994
+ d(a);
5995
5995
  return;
5996
5996
  }
5997
5997
  E.preventDefault(), h(!0);
5998
5998
  }, [a]), P = { customerId: r, customerEmail: n };
5999
- return /* @__PURE__ */ z("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
5999
+ return /* @__PURE__ */ T("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
6000
6000
  /* @__PURE__ */ c("style", {
6001
6001
  // eslint-disable-next-line @stylistic/quotes
6002
6002
  children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
6003
6003
  }),
6004
- /* @__PURE__ */ z("div", { ref: y, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
6005
- /* @__PURE__ */ z(
6004
+ /* @__PURE__ */ T("div", { ref: y, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
6005
+ /* @__PURE__ */ T(
6006
6006
  "div",
6007
6007
  {
6008
6008
  "data-id": "primary-panel",
6009
6009
  className: "min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",
6010
- style: { flexBasis: `${d}%` },
6010
+ style: { flexBasis: `${u}%` },
6011
6011
  children: [
6012
- /* @__PURE__ */ z("div", { className: "flex items-center justify-between px-4 py-3", children: [
6012
+ /* @__PURE__ */ T("div", { className: "flex items-center justify-between px-4 py-3", children: [
6013
6013
  /* @__PURE__ */ c("h2", { className: "font-semibold text-sm text-foreground", children: i === "account" ? "My Account" : "My Conversations" }),
6014
- /* @__PURE__ */ z("div", { className: "flex items-center gap-1", children: [
6014
+ /* @__PURE__ */ T("div", { className: "flex items-center gap-1", children: [
6015
6015
  e && /* @__PURE__ */ c("div", { className: "flex mr-1 gap-1", children: e }),
6016
- /* @__PURE__ */ z("div", { className: "flex rounded-lg bg-muted p-1", children: [
6016
+ /* @__PURE__ */ T("div", { className: "flex rounded-lg bg-muted p-1", children: [
6017
6017
  t,
6018
6018
  /* @__PURE__ */ c(
6019
6019
  "button",
6020
6020
  {
6021
6021
  onClick: () => l("account"),
6022
- className: T(
6022
+ className: z(
6023
6023
  // eslint-disable-next-line @stylistic/max-len
6024
6024
  "rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
6025
6025
  i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
@@ -6032,7 +6032,7 @@ const qo = {
6032
6032
  "button",
6033
6033
  {
6034
6034
  onClick: () => l("conversations"),
6035
- className: T(
6035
+ className: z(
6036
6036
  // eslint-disable-next-line @stylistic/max-len
6037
6037
  "rounded-md border border-transparent p-1.5 transition-colors hover:cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
6038
6038
  i === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
@@ -6044,8 +6044,8 @@ const qo = {
6044
6044
  ] })
6045
6045
  ] })
6046
6046
  ] }),
6047
- /* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
6048
- /* @__PURE__ */ z("div", { className: T("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
6047
+ /* @__PURE__ */ T("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
6048
+ /* @__PURE__ */ T("div", { className: z("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
6049
6049
  /* @__PURE__ */ c(Qa, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
6050
6050
  Ce,
6051
6051
  {
@@ -6063,7 +6063,7 @@ const qo = {
6063
6063
  }
6064
6064
  )
6065
6065
  ] }),
6066
- /* @__PURE__ */ c("div", { className: T(
6066
+ /* @__PURE__ */ c("div", { className: z(
6067
6067
  "h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
6068
6068
  i === "account" && "hidden"
6069
6069
  ), children: /* @__PURE__ */ c(ei, {}) })
@@ -6071,24 +6071,24 @@ const qo = {
6071
6071
  ]
6072
6072
  }
6073
6073
  ),
6074
- /* @__PURE__ */ z(
6074
+ /* @__PURE__ */ T(
6075
6075
  "div",
6076
6076
  {
6077
6077
  "data-id": "secondary-panel",
6078
6078
  className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
6079
- style: { flexBasis: `${100 - d}%` },
6079
+ style: { flexBasis: `${100 - u}%` },
6080
6080
  children: [
6081
6081
  /* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(ti, {}) }),
6082
- /* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
6082
+ /* @__PURE__ */ T("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
6083
6083
  /* @__PURE__ */ c(
6084
6084
  Ce,
6085
6085
  {
6086
6086
  target: "slot.footer",
6087
6087
  context: P,
6088
6088
  className: "flex items-center gap-1",
6089
- fallback: /* @__PURE__ */ z(he, { children: [
6089
+ fallback: /* @__PURE__ */ T(he, { children: [
6090
6090
  /* @__PURE__ */ c("div", { children: "powered by" }),
6091
- /* @__PURE__ */ c(Ka, { href: "https://zendesk.com", children: "Zendesk" })
6091
+ /* @__PURE__ */ c(Za, { href: "https://zendesk.com", children: "Zendesk" })
6092
6092
  ] })
6093
6093
  }
6094
6094
  ),
@@ -6099,8 +6099,8 @@ const qo = {
6099
6099
  context: P,
6100
6100
  className: "flex items-center gap-1",
6101
6101
  separator: /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "/" }),
6102
- render: ({ children: E, index: _ }) => /* @__PURE__ */ z(he, { children: [
6103
- _ === 0 && /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "+" }),
6102
+ render: ({ children: E, index: R }) => /* @__PURE__ */ T(he, { children: [
6103
+ R === 0 && /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "+" }),
6104
6104
  E
6105
6105
  ] })
6106
6106
  }
@@ -6112,22 +6112,22 @@ const qo = {
6112
6112
  /* @__PURE__ */ c(
6113
6113
  "div",
6114
6114
  {
6115
- className: T(
6115
+ className: z(
6116
6116
  "group/resize absolute z-20 flex items-center justify-center",
6117
6117
  f ? "top-0 bottom-0 w-3 -ml-2.5 cursor-col-resize" : "w-full h-3 -mt-2.5 cursor-row-resize"
6118
6118
  ),
6119
- style: f ? { left: `${d}%` } : { top: `${d}%` },
6119
+ style: f ? { left: `${u}%` } : { top: `${u}%` },
6120
6120
  onMouseDown: A,
6121
6121
  role: "separator",
6122
6122
  "aria-label": "Resize panels",
6123
6123
  "aria-orientation": f ? "vertical" : "horizontal",
6124
6124
  "aria-valuemin": Ge,
6125
6125
  "aria-valuemax": qe,
6126
- "aria-valuenow": Math.round(d),
6126
+ "aria-valuenow": Math.round(u),
6127
6127
  children: /* @__PURE__ */ c(
6128
6128
  "div",
6129
6129
  {
6130
- className: T(
6130
+ className: z(
6131
6131
  "rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
6132
6132
  f ? "h-20 w-0.5" : "h-0.5 w-20",
6133
6133
  x ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
@@ -6139,26 +6139,26 @@ const qo = {
6139
6139
  x && /* @__PURE__ */ c(
6140
6140
  "div",
6141
6141
  {
6142
- className: T("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
6142
+ className: z("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
6143
6143
  onMouseUp: () => h(!1)
6144
6144
  }
6145
6145
  )
6146
6146
  ] })
6147
6147
  ] });
6148
- }, oi = "ze-snippet", Tt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ri = (e, t = {}) => {
6148
+ }, oi = "ze-snippet", zt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ri = (e, t = {}) => {
6149
6149
  if (typeof window > "u" || typeof document > "u" || !e)
6150
6150
  return Promise.resolve();
6151
6151
  const { autorender: o = !1, scriptId: r = oi } = t;
6152
6152
  window.zEMessenger = { autorender: o };
6153
6153
  const n = document.getElementById(r);
6154
6154
  if (n) {
6155
- if (n.getAttribute("src") === Tt(e))
6155
+ if (n.getAttribute("src") === zt(e))
6156
6156
  return Promise.resolve();
6157
6157
  n.remove();
6158
6158
  }
6159
6159
  return new Promise((s, a) => {
6160
6160
  const i = document.createElement("script");
6161
- i.id = r, i.src = Tt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
6161
+ i.id = r, i.src = zt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
6162
6162
  });
6163
6163
  }, ui = ({ config: e }) => (B(() => {
6164
6164
  e.snippetKey && ri(e.snippetKey, { autorender: e.autorender }).catch((t) => {