@stackable-labs/embeddables 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -1,6 +1,6 @@
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);
@@ -8,7 +8,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
8
8
  const r = document.createElement("iframe");
9
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
10
  const i = new URL(e.bundleUrl);
11
- i.searchParams.set("__extensionId", e.id), r.src = i.toString();
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
12
  } else {
13
13
  let i = "";
14
14
  try {
@@ -25,7 +25,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
25
25
  <script>${i}<\/script>
26
26
  </body>
27
27
  </html>`;
28
- r.srcdoc = l;
28
+ r.srcdoc = l, console.debug(`[SandboxManager] Creating srcdoc sandbox for ${e.id}, injecting __STACKABLE_EXTENSION_ID__ global`);
29
29
  }
30
30
  t.appendChild(r);
31
31
  const s = {
@@ -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);
@@ -171,7 +171,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
171
171
  or(f.id);
172
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
  ] });
@@ -187,19 +187,19 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
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(",");
230
+ const h = m.map((_) => _.id).join(",");
231
231
  if (f.current !== h && (f.current = h, d({})), !l || m.length === 0) return;
232
- const y = (R) => {
233
- const C = R.data;
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
- d((_) => ({
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: u[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;
@@ -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(([u, d]) => _e(u, d)),
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) => {
@@ -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,
@@ -1015,19 +1015,19 @@ const dn = (e, t) => {
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
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);
@@ -1048,26 +1048,26 @@ const dn = (e, t) => {
1048
1048
  const u = r(l);
1049
1049
  if (u)
1050
1050
  return u;
1051
- const d = Rn(l, o);
1051
+ const d = _n(l, o);
1052
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"), 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"), 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"]
@@ -1101,7 +1101,7 @@ const dn = (e, t) => {
1101
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
@@ -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,12 +3727,12 @@ 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
3738
  const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((u) => {
@@ -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 });
@@ -3911,32 +3911,32 @@ 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
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
3924
  u.displayName = i;
3925
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(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: 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
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
  }
@@ -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) {
@@ -4138,11 +4138,11 @@ function bs() {
4138
4138
  return m();
4139
4139
  }
4140
4140
  var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : i;
4141
- return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, je;
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
  }
@@ -4179,7 +4179,7 @@ var fo = "AvatarImage", mo = p.forwardRef(
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;
@@ -4215,14 +4215,14 @@ function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
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,
@@ -4239,7 +4239,7 @@ var Ts = p.forwardRef((e, t) => {
4239
4239
  defaultProp: i ?? null,
4240
4240
  onChange: l,
4241
4241
  caller: be
4242
- }), [y, R] = p.useState(!1), C = J(u), 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,9 +4279,9 @@ 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
4287
  yo(Q, d);
@@ -4289,7 +4289,7 @@ var Ts = p.forwardRef((e, t) => {
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,19 +4303,19 @@ var Ts = p.forwardRef((e, t) => {
4303
4303
  tabStopId: s,
4304
4304
  children: a,
4305
4305
  ...i
4306
- } = e, l = lo(), u = s || l, d = zs(xo, o), f = d.currentTabStopId === u, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = d;
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
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
4321
  "data-orientation": d.orientation,
@@ -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), [u, d] = 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
  {
@@ -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,11 +4484,11 @@ 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;
@@ -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"
@@ -4575,7 +4575,7 @@ var Vs = p.forwardRef((e, t) => {
4575
4575
  content: 0,
4576
4576
  viewport: 0,
4577
4577
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
4578
- }), u = zo(i.viewport, i.content), d = {
4578
+ }), u = To(i.viewport, i.content), d = {
4579
4579
  ...r,
4580
4580
  sizes: i,
4581
4581
  onSizesChange: l,
@@ -4585,7 +4585,7 @@ var Vs = p.forwardRef((e, t) => {
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,
@@ -4629,7 +4629,7 @@ var Vs = p.forwardRef((e, t) => {
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,
@@ -4656,8 +4656,8 @@ 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
  }
@@ -4668,7 +4668,7 @@ var Vs = p.forwardRef((e, t) => {
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,
@@ -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,
@@ -4716,7 +4716,7 @@ var Vs = p.forwardRef((e, t) => {
4716
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(d), 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;
@@ -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,31 +4740,31 @@ 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
4770
  ), u = p.useRef(void 0), d = Le(() => {
@@ -4775,14 +4775,14 @@ var Vs = p.forwardRef((e, t) => {
4775
4775
  if (f) {
4776
4776
  const m = () => {
4777
4777
  if (d(), !u.current) {
4778
- const g = Ks(f, i);
4778
+ const g = Zs(f, i);
4779
4779
  u.current = g, i();
4780
4780
  }
4781
4781
  };
4782
4782
  return i(), f.addEventListener("scroll", m), () => f.removeEventListener("scroll", m);
4783
4783
  }
4784
4784
  }, [s.viewport, d, i]), /* @__PURE__ */ c(
4785
- j.div,
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);
@@ -4820,7 +4820,7 @@ var Xs = p.forwardRef((e, t) => {
4820
4820
  const d = ((f = n.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
4821
4821
  n.onCornerWidthChange(d), a(d);
4822
4822
  }), u ? /* @__PURE__ */ c(
4823
- j.div,
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") {
4850
+ function Ks(e, t, o, r = "ltr") {
4851
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 To([l, u], f)(e);
4852
+ return zo([l, u], f)(e);
4853
4853
  }
4854
4854
  function At(e, t, o = "ltr") {
4855
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 To([0, a], [0, i])(u);
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,
@@ -4939,7 +4939,7 @@ var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
4939
4939
  dir: d,
4940
4940
  activationMode: l,
4941
4941
  children: /* @__PURE__ */ c(
4942
- j.div,
4942
+ V.div,
4943
4943
  {
4944
4944
  dir: d,
4945
4945
  "data-orientation": a,
@@ -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,7 +4979,7 @@ 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), u = Bo(a.baseId, r), d = 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
  {
@@ -4988,7 +4988,7 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
4988
4988
  focusable: !n,
4989
4989
  active: d,
4990
4990
  children: /* @__PURE__ */ c(
4991
- j.button,
4991
+ V.button,
4992
4992
  {
4993
4993
  type: "button",
4994
4994
  role: "tab",
@@ -5017,14 +5017,14 @@ 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), u = Bo(i.baseId, r), d = r === i.value, f = p.useRef(d);
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
5026
  }, []), /* @__PURE__ */ c(ue, { present: n || d, children: ({ present: m }) => /* @__PURE__ */ c(
5027
- j.div,
5027
+ V.div,
5028
5028
  {
5029
5029
  "data-state": d ? "active" : "inactive",
5030
5030
  "data-orientation": i.orientation,
@@ -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)" }) }),
@@ -5529,7 +5529,7 @@ const qo = {
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,
@@ -5563,7 +5563,7 @@ const qo = {
5563
5563
  },
5564
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: {
@@ -5586,7 +5586,7 @@ const qo = {
5586
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: {
@@ -5612,7 +5612,7 @@ const qo = {
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",
@@ -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,
@@ -5705,7 +5705,7 @@ const qo = {
5705
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
5710
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), d(!0);
5711
5711
  return;
@@ -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 u ? /* @__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,
@@ -5828,9 +5828,9 @@ const qo = {
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
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__ */ 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: [
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
  {
@@ -5840,12 +5840,12 @@ const qo = {
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
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
  ] }) }),
@@ -5856,8 +5856,8 @@ const qo = {
5856
5856
  ] }) });
5857
5857
  }
5858
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__ */ 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: [
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"), [u, d] = 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
- d(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
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
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,7 +6071,7 @@ 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",
@@ -6079,16 +6079,16 @@ const qo = {
6079
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,7 +6112,7 @@ 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
  ),
@@ -6127,7 +6127,7 @@ const qo = {
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) => {