@stackable-labs/embeddables 1.7.5 → 1.8.0

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
@@ -2,7 +2,13 @@ import { jsxs as T, jsx as c, Fragment as he } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
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
- const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
5
+ const tr = () => {
6
+ try {
7
+ return "323d156b-a8a9-4712-92f2-8042f4689b2a";
8
+ } catch {
9
+ return "dev";
10
+ }
11
+ }, ce = /* @__PURE__ */ new Map(), or = async (e, t) => {
6
12
  const o = ce.get(e.id);
7
13
  if (o) return o;
8
14
  const r = document.createElement("iframe");
@@ -12,7 +18,8 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
12
18
  } else {
13
19
  let i = "";
14
20
  try {
15
- i = await (await fetch(e.bundleUrl)).text();
21
+ const u = tr();
22
+ i = await (await fetch(`${e.bundleUrl}?_b=${u}`)).text();
16
23
  } catch (u) {
17
24
  console.error(`[SandboxManager] Failed to fetch bundle for ${e.id}:`, u);
18
25
  }
@@ -46,10 +53,10 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
46
53
  return;
47
54
  }
48
55
  o.iframe.contentWindow.postMessage(t, "*");
49
- }, le = (e) => ce.get(e), or = (e) => {
56
+ }, le = (e) => ce.get(e), rr = (e) => {
50
57
  const t = ce.get(e);
51
58
  t && (t.iframe.remove(), t.messageHandlers.clear(), ce.delete(e));
52
- }, rr = [
59
+ }, nr = [
53
60
  "ui-card",
54
61
  "ui-card-content",
55
62
  "ui-card-header",
@@ -73,13 +80,13 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
73
80
  "ui-link",
74
81
  "ui-menu",
75
82
  "ui-menu-item"
76
- ], nr = {
83
+ ], sr = {
77
84
  "context.read": "context:read",
78
85
  "data.query": "data:query",
79
86
  "data.fetch": "data:fetch",
80
87
  "actions.toast": "actions:toast",
81
88
  "actions.invoke": "actions:invoke"
82
- }, sr = (e) => {
89
+ }, ar = (e) => {
83
90
  const t = async (o) => {
84
91
  const r = o.data;
85
92
  if ((r == null ? void 0 : r.type) !== "capability-request") return;
@@ -90,7 +97,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
90
97
  }
91
98
  const a = le(s);
92
99
  if (!a) return;
93
- const i = nr[n.capability];
100
+ const i = sr[n.capability];
94
101
  if (i && !a.manifest.permissions.includes(i)) {
95
102
  const l = {
96
103
  type: "capability-response",
@@ -146,7 +153,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
146
153
  extensions: [],
147
154
  components: {},
148
155
  ready: !1
149
- }), ar = ({
156
+ }), ir = ({
150
157
  extensions: e,
151
158
  capabilityHandlers: t,
152
159
  components: o = {},
@@ -161,21 +168,21 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
161
168
  if (d) {
162
169
  console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
163
170
  for (const f of e)
164
- f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await tr(f, d), console.log("[ExtensionProvider] Sandbox created for", f.id));
165
- i.current = sr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
171
+ f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await or(f, d), console.log("[ExtensionProvider] Sandbox created for", f.id));
172
+ i.current = ar(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
166
173
  }
167
174
  })(), () => {
168
175
  var d;
169
176
  l = !0;
170
177
  for (const f of e)
171
- or(f.id);
178
+ rr(f.id);
172
179
  (d = i.current) == null || d.call(i);
173
180
  };
174
181
  }, [e, t]), /* @__PURE__ */ T(Ot.Provider, { value: { extensions: e, components: o, ready: n }, children: [
175
182
  /* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
176
183
  r
177
184
  ] });
178
- }, ir = () => er(Ot), lr = (e) => rr.includes(e), Ce = ({
185
+ }, lr = () => er(Ot), cr = (e) => nr.includes(e), Ce = ({
179
186
  target: e,
180
187
  context: t,
181
188
  className: o,
@@ -183,7 +190,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
183
190
  fallback: n = null,
184
191
  render: s
185
192
  }) => {
186
- const { extensions: a, components: i, ready: l } = ir(), [u, d] = U({}), f = ae(""), m = Mt(
193
+ const { extensions: a, components: i, ready: l } = lr(), [u, d] = U({}), f = ae(""), m = Mt(
187
194
  () => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
188
195
  // eslint-disable-next-line react-hooks/exhaustive-deps
189
196
  [a.map((h) => h.id).join(","), e]
@@ -195,7 +202,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
195
202
  if (!h.tag) return null;
196
203
  if (h.tag === "__fragment")
197
204
  return /* @__PURE__ */ c(G.Fragment, { children: (E = h.children) == null ? void 0 : E.map((S, M) => g(S, y, M)) }, _);
198
- if (!lr(h.tag))
205
+ if (!cr(h.tag))
199
206
  return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
200
207
  const C = i[h.tag];
201
208
  if (!C)
@@ -292,7 +299,7 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
292
299
  ];
293
300
  }) : n;
294
301
  return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
295
- }, cr = (e) => {
302
+ }, dr = (e) => {
296
303
  try {
297
304
  const { hostname: t } = new URL(e);
298
305
  return t === "localhost" || t === "127.0.0.1" || t.endsWith(".trycloudflare.com") || // hostname.endsWith('.ngrok.io') ||
@@ -312,14 +319,14 @@ const ce = /* @__PURE__ */ new Map(), tr = async (e, t) => {
312
319
  const i = a.indexOf(":");
313
320
  if (i === -1) continue;
314
321
  const l = a.slice(0, i), u = a.slice(i + 1);
315
- l && u && cr(u) && r.push({ extensionId: l, bundleUrl: u });
322
+ l && u && dr(u) && r.push({ extensionId: l, bundleUrl: u });
316
323
  }
317
324
  }
318
325
  return r;
319
326
  } catch {
320
327
  return [];
321
328
  }
322
- }, dr = (e, t) => t.length === 0 ? e : e.map((o) => {
329
+ }, ur = (e, t) => t.length === 0 ? e : e.map((o) => {
323
330
  const r = t.find((n) => n.extensionId === o.id);
324
331
  return r ? (console.log(`[Stackable] Dev override active for ${o.id} → ${r.bundleUrl}`), {
325
332
  ...o,
@@ -339,14 +346,14 @@ const Ft = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t
339
346
  * This source code is licensed under the ISC license.
340
347
  * See the LICENSE file in the root directory of this source tree.
341
348
  */
342
- const ur = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
349
+ const fr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
343
350
  /**
344
351
  * @license lucide-react v0.575.0 - ISC
345
352
  *
346
353
  * This source code is licensed under the ISC license.
347
354
  * See the LICENSE file in the root directory of this source tree.
348
355
  */
349
- const fr = (e) => e.replace(
356
+ const mr = (e) => e.replace(
350
357
  /^([A-Z])|[\s-_]+(\w)/g,
351
358
  (t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
352
359
  );
@@ -357,7 +364,7 @@ const fr = (e) => e.replace(
357
364
  * See the LICENSE file in the root directory of this source tree.
358
365
  */
359
366
  const pt = (e) => {
360
- const t = fr(e);
367
+ const t = mr(e);
361
368
  return t.charAt(0).toUpperCase() + t.slice(1);
362
369
  };
363
370
  /**
@@ -366,7 +373,7 @@ const pt = (e) => {
366
373
  * This source code is licensed under the ISC license.
367
374
  * See the LICENSE file in the root directory of this source tree.
368
375
  */
369
- var mr = {
376
+ var pr = {
370
377
  xmlns: "http://www.w3.org/2000/svg",
371
378
  width: 24,
372
379
  height: 24,
@@ -383,7 +390,7 @@ var mr = {
383
390
  * This source code is licensed under the ISC license.
384
391
  * See the LICENSE file in the root directory of this source tree.
385
392
  */
386
- const pr = (e) => {
393
+ const hr = (e) => {
387
394
  for (const t in e)
388
395
  if (t.startsWith("aria-") || t === "role" || t === "title")
389
396
  return !0;
@@ -395,7 +402,7 @@ const pr = (e) => {
395
402
  * This source code is licensed under the ISC license.
396
403
  * See the LICENSE file in the root directory of this source tree.
397
404
  */
398
- const hr = Lt(
405
+ const gr = Lt(
399
406
  ({
400
407
  color: e = "currentColor",
401
408
  size: t = 24,
@@ -409,13 +416,13 @@ const hr = Lt(
409
416
  "svg",
410
417
  {
411
418
  ref: l,
412
- ...mr,
419
+ ...pr,
413
420
  width: t,
414
421
  height: t,
415
422
  stroke: e,
416
423
  strokeWidth: r ? Number(o) * 24 / Number(t) : o,
417
424
  className: Ft("lucide", n),
418
- ...!s && !pr(i) && { "aria-hidden": "true" },
425
+ ...!s && !hr(i) && { "aria-hidden": "true" },
419
426
  ...i
420
427
  },
421
428
  [
@@ -432,11 +439,11 @@ const hr = Lt(
432
439
  */
433
440
  const L = (e, t) => {
434
441
  const o = Lt(
435
- ({ className: r, ...n }, s) => Re(hr, {
442
+ ({ className: r, ...n }, s) => Re(gr, {
436
443
  ref: s,
437
444
  iconNode: t,
438
445
  className: Ft(
439
- `lucide-${ur(pt(e))}`,
446
+ `lucide-${fr(pt(e))}`,
440
447
  `lucide-${e}`,
441
448
  r
442
449
  ),
@@ -451,7 +458,7 @@ const L = (e, t) => {
451
458
  * This source code is licensed under the ISC license.
452
459
  * See the LICENSE file in the root directory of this source tree.
453
460
  */
454
- const gr = [
461
+ const br = [
455
462
  [
456
463
  "path",
457
464
  {
@@ -460,24 +467,24 @@ const gr = [
460
467
  }
461
468
  ],
462
469
  ["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
463
- ], br = L("airplay", gr);
470
+ ], vr = L("airplay", br);
464
471
  /**
465
472
  * @license lucide-react v0.575.0 - ISC
466
473
  *
467
474
  * This source code is licensed under the ISC license.
468
475
  * See the LICENSE file in the root directory of this source tree.
469
476
  */
470
- const vr = [
477
+ const xr = [
471
478
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
472
479
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
473
- ], xr = L("arrow-left", vr);
480
+ ], wr = L("arrow-left", xr);
474
481
  /**
475
482
  * @license lucide-react v0.575.0 - ISC
476
483
  *
477
484
  * This source code is licensed under the ISC license.
478
485
  * See the LICENSE file in the root directory of this source tree.
479
486
  */
480
- const wr = [
487
+ const yr = [
481
488
  ["path", { d: "M12 7v14", key: "1akyts" }],
482
489
  [
483
490
  "path",
@@ -486,142 +493,142 @@ const wr = [
486
493
  key: "ruj8y"
487
494
  }
488
495
  ]
489
- ], yr = L("book-open", wr);
496
+ ], kr = L("book-open", yr);
490
497
  /**
491
498
  * @license lucide-react v0.575.0 - ISC
492
499
  *
493
500
  * This source code is licensed under the ISC license.
494
501
  * See the LICENSE file in the root directory of this source tree.
495
502
  */
496
- const kr = [
503
+ const Sr = [
497
504
  ["path", { d: "M8 2v4", key: "1cmpym" }],
498
505
  ["path", { d: "M16 2v4", key: "4m81vk" }],
499
506
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
500
507
  ["path", { d: "M3 10h18", key: "8toen8" }]
501
- ], Sr = L("calendar", kr);
508
+ ], Cr = L("calendar", Sr);
502
509
  /**
503
510
  * @license lucide-react v0.575.0 - ISC
504
511
  *
505
512
  * This source code is licensed under the ISC license.
506
513
  * See the LICENSE file in the root directory of this source tree.
507
514
  */
508
- const Cr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Er = L("chevron-left", Cr);
515
+ const Er = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Nr = L("chevron-left", Er);
509
516
  /**
510
517
  * @license lucide-react v0.575.0 - ISC
511
518
  *
512
519
  * This source code is licensed under the ISC license.
513
520
  * See the LICENSE file in the root directory of this source tree.
514
521
  */
515
- const Nr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Nr);
522
+ const Ar = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Dt = L("chevron-right", Ar);
516
523
  /**
517
524
  * @license lucide-react v0.575.0 - ISC
518
525
  *
519
526
  * This source code is licensed under the ISC license.
520
527
  * See the LICENSE file in the root directory of this source tree.
521
528
  */
522
- const Ar = [
529
+ const _r = [
523
530
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
524
531
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
525
532
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
526
- ], _r = L("circle-alert", Ar);
533
+ ], Rr = L("circle-alert", _r);
527
534
  /**
528
535
  * @license lucide-react v0.575.0 - ISC
529
536
  *
530
537
  * This source code is licensed under the ISC license.
531
538
  * See the LICENSE file in the root directory of this source tree.
532
539
  */
533
- const Rr = [
540
+ const Ir = [
534
541
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
535
542
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
536
- ], Ir = L("circle-check", Rr);
543
+ ], Pr = L("circle-check", Ir);
537
544
  /**
538
545
  * @license lucide-react v0.575.0 - ISC
539
546
  *
540
547
  * This source code is licensed under the ISC license.
541
548
  * See the LICENSE file in the root directory of this source tree.
542
549
  */
543
- const Pr = [
550
+ const Tr = [
544
551
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
545
552
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
546
553
  ["path", { d: "M12 17h.01", key: "p32p05" }]
547
- ], Tr = L("circle-question-mark", Pr);
554
+ ], zr = L("circle-question-mark", Tr);
548
555
  /**
549
556
  * @license lucide-react v0.575.0 - ISC
550
557
  *
551
558
  * This source code is licensed under the ISC license.
552
559
  * See the LICENSE file in the root directory of this source tree.
553
560
  */
554
- const zr = [
561
+ const Mr = [
555
562
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
556
563
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
557
564
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
558
- ], Mr = L("circle-x", zr);
565
+ ], Lr = L("circle-x", Mr);
559
566
  /**
560
567
  * @license lucide-react v0.575.0 - ISC
561
568
  *
562
569
  * This source code is licensed under the ISC license.
563
570
  * See the LICENSE file in the root directory of this source tree.
564
571
  */
565
- const Lr = [
572
+ const Or = [
566
573
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
567
574
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
568
- ], Or = L("clock", Lr);
575
+ ], $r = L("clock", Or);
569
576
  /**
570
577
  * @license lucide-react v0.575.0 - ISC
571
578
  *
572
579
  * This source code is licensed under the ISC license.
573
580
  * See the LICENSE file in the root directory of this source tree.
574
581
  */
575
- const $r = [
582
+ const Fr = [
576
583
  ["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
577
584
  ["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
578
- ], Fr = L("credit-card", $r);
585
+ ], Dr = L("credit-card", Fr);
579
586
  /**
580
587
  * @license lucide-react v0.575.0 - ISC
581
588
  *
582
589
  * This source code is licensed under the ISC license.
583
590
  * See the LICENSE file in the root directory of this source tree.
584
591
  */
585
- const Dr = [
592
+ const Ur = [
586
593
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
587
594
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
588
595
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
589
- ], Ur = L("external-link", Dr);
596
+ ], Wr = L("external-link", Ur);
590
597
  /**
591
598
  * @license lucide-react v0.575.0 - ISC
592
599
  *
593
600
  * This source code is licensed under the ISC license.
594
601
  * See the LICENSE file in the root directory of this source tree.
595
602
  */
596
- const Wr = [
603
+ const Hr = [
597
604
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
598
605
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
599
606
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
600
- ], Hr = L("info", Wr);
607
+ ], jr = L("info", Hr);
601
608
  /**
602
609
  * @license lucide-react v0.575.0 - ISC
603
610
  *
604
611
  * This source code is licensed under the ISC license.
605
612
  * See the LICENSE file in the root directory of this source tree.
606
613
  */
607
- const jr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", jr);
614
+ const Vr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Ut = L("loader-circle", Vr);
608
615
  /**
609
616
  * @license lucide-react v0.575.0 - ISC
610
617
  *
611
618
  * This source code is licensed under the ISC license.
612
619
  * See the LICENSE file in the root directory of this source tree.
613
620
  */
614
- const Vr = [
621
+ const Br = [
615
622
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
616
623
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
617
- ], Ye = L("mail", Vr);
624
+ ], Ye = L("mail", Br);
618
625
  /**
619
626
  * @license lucide-react v0.575.0 - ISC
620
627
  *
621
628
  * This source code is licensed under the ISC license.
622
629
  * See the LICENSE file in the root directory of this source tree.
623
630
  */
624
- const Br = [
631
+ const Gr = [
625
632
  [
626
633
  "path",
627
634
  {
@@ -630,14 +637,14 @@ const Br = [
630
637
  }
631
638
  ],
632
639
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
633
- ], Gr = L("map-pin", Br);
640
+ ], qr = L("map-pin", Gr);
634
641
  /**
635
642
  * @license lucide-react v0.575.0 - ISC
636
643
  *
637
644
  * This source code is licensed under the ISC license.
638
645
  * See the LICENSE file in the root directory of this source tree.
639
646
  */
640
- const qr = [
647
+ const Yr = [
641
648
  [
642
649
  "path",
643
650
  {
@@ -645,14 +652,14 @@ const qr = [
645
652
  key: "1sd12s"
646
653
  }
647
654
  ]
648
- ], Yr = L("message-circle", qr);
655
+ ], Xr = L("message-circle", Yr);
649
656
  /**
650
657
  * @license lucide-react v0.575.0 - ISC
651
658
  *
652
659
  * This source code is licensed under the ISC license.
653
660
  * See the LICENSE file in the root directory of this source tree.
654
661
  */
655
- const Xr = [
662
+ const Kr = [
656
663
  [
657
664
  "path",
658
665
  {
@@ -660,14 +667,14 @@ const Xr = [
660
667
  key: "18887p"
661
668
  }
662
669
  ]
663
- ], Wt = L("message-square", Xr);
670
+ ], Wt = L("message-square", Kr);
664
671
  /**
665
672
  * @license lucide-react v0.575.0 - ISC
666
673
  *
667
674
  * This source code is licensed under the ISC license.
668
675
  * See the LICENSE file in the root directory of this source tree.
669
676
  */
670
- const Kr = [
677
+ const Zr = [
671
678
  [
672
679
  "path",
673
680
  {
@@ -678,14 +685,14 @@ const Kr = [
678
685
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
679
686
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
680
687
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
681
- ], Zr = L("package", Kr);
688
+ ], Jr = L("package", Zr);
682
689
  /**
683
690
  * @license lucide-react v0.575.0 - ISC
684
691
  *
685
692
  * This source code is licensed under the ISC license.
686
693
  * See the LICENSE file in the root directory of this source tree.
687
694
  */
688
- const Jr = [
695
+ const Qr = [
689
696
  [
690
697
  "path",
691
698
  {
@@ -693,24 +700,24 @@ const Jr = [
693
700
  key: "9njp5v"
694
701
  }
695
702
  ]
696
- ], Qr = L("phone", Jr);
703
+ ], en = L("phone", Qr);
697
704
  /**
698
705
  * @license lucide-react v0.575.0 - ISC
699
706
  *
700
707
  * This source code is licensed under the ISC license.
701
708
  * See the LICENSE file in the root directory of this source tree.
702
709
  */
703
- const en = [
710
+ const tn = [
704
711
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
705
712
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
706
- ], tn = L("search", en);
713
+ ], on = L("search", tn);
707
714
  /**
708
715
  * @license lucide-react v0.575.0 - ISC
709
716
  *
710
717
  * This source code is licensed under the ISC license.
711
718
  * See the LICENSE file in the root directory of this source tree.
712
719
  */
713
- const on = [
720
+ const rn = [
714
721
  ["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
715
722
  ["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
716
723
  [
@@ -720,14 +727,14 @@ const on = [
720
727
  key: "o988cm"
721
728
  }
722
729
  ]
723
- ], rn = L("shopping-bag", on);
730
+ ], nn = L("shopping-bag", rn);
724
731
  /**
725
732
  * @license lucide-react v0.575.0 - ISC
726
733
  *
727
734
  * This source code is licensed under the ISC license.
728
735
  * See the LICENSE file in the root directory of this source tree.
729
736
  */
730
- const nn = [
737
+ const sn = [
731
738
  [
732
739
  "path",
733
740
  {
@@ -738,14 +745,14 @@ const nn = [
738
745
  ["path", { d: "M20 2v4", key: "1rf3ol" }],
739
746
  ["path", { d: "M22 4h-4", key: "gwowj6" }],
740
747
  ["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
741
- ], sn = L("sparkles", nn);
748
+ ], an = L("sparkles", sn);
742
749
  /**
743
750
  * @license lucide-react v0.575.0 - ISC
744
751
  *
745
752
  * This source code is licensed under the ISC license.
746
753
  * See the LICENSE file in the root directory of this source tree.
747
754
  */
748
- const an = [
755
+ const ln = [
749
756
  ["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
750
757
  ["path", { d: "M15 18H9", key: "1lyqi6" }],
751
758
  [
@@ -757,17 +764,17 @@ const an = [
757
764
  ],
758
765
  ["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
759
766
  ["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
760
- ], ln = L("truck", an);
767
+ ], cn = L("truck", ln);
761
768
  /**
762
769
  * @license lucide-react v0.575.0 - ISC
763
770
  *
764
771
  * This source code is licensed under the ISC license.
765
772
  * See the LICENSE file in the root directory of this source tree.
766
773
  */
767
- const cn = [
774
+ const dn = [
768
775
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
769
776
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
770
- ], Ht = L("user", cn);
777
+ ], Ht = L("user", dn);
771
778
  function jt(e) {
772
779
  var t, o, r = "";
773
780
  if (typeof e == "string" || typeof e == "number") r += e;
@@ -781,36 +788,36 @@ function Vt() {
781
788
  for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = jt(e)) && (r && (r += " "), r += t);
782
789
  return r;
783
790
  }
784
- const dn = (e, t) => {
791
+ const un = (e, t) => {
785
792
  const o = new Array(e.length + t.length);
786
793
  for (let r = 0; r < e.length; r++)
787
794
  o[r] = e[r];
788
795
  for (let r = 0; r < t.length; r++)
789
796
  o[e.length + r] = t[r];
790
797
  return o;
791
- }, un = (e, t) => ({
798
+ }, fn = (e, t) => ({
792
799
  classGroupId: e,
793
800
  validator: t
794
801
  }), Bt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
795
802
  nextPart: e,
796
803
  validators: t,
797
804
  classGroupId: o
798
- }), Ie = "-", ht = [], fn = "arbitrary..", mn = (e) => {
799
- const t = hn(e), {
805
+ }), Ie = "-", ht = [], mn = "arbitrary..", pn = (e) => {
806
+ const t = gn(e), {
800
807
  conflictingClassGroups: o,
801
808
  conflictingClassGroupModifiers: r
802
809
  } = e;
803
810
  return {
804
811
  getClassGroupId: (a) => {
805
812
  if (a.startsWith("[") && a.endsWith("]"))
806
- return pn(a);
813
+ return hn(a);
807
814
  const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
808
815
  return Gt(i, l, t);
809
816
  },
810
817
  getConflictingClassGroupIds: (a, i) => {
811
818
  if (i) {
812
819
  const l = r[a], u = o[a];
813
- return l ? u ? dn(u, l) : l : u || ht;
820
+ return l ? u ? un(u, l) : l : u || ht;
814
821
  }
815
822
  return o[a] || ht;
816
823
  }
@@ -832,16 +839,16 @@ const dn = (e, t) => {
832
839
  if (d.validator(i))
833
840
  return d.classGroupId;
834
841
  }
835
- }, pn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
842
+ }, hn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
836
843
  const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
837
- return r ? fn + r : void 0;
838
- })(), hn = (e) => {
844
+ return r ? mn + r : void 0;
845
+ })(), gn = (e) => {
839
846
  const {
840
847
  theme: t,
841
848
  classGroups: o
842
849
  } = e;
843
- return gn(o, t);
844
- }, gn = (e, t) => {
850
+ return bn(o, t);
851
+ }, bn = (e, t) => {
845
852
  const o = Bt();
846
853
  for (const r in e) {
847
854
  const n = e[r];
@@ -852,28 +859,28 @@ const dn = (e, t) => {
852
859
  const n = e.length;
853
860
  for (let s = 0; s < n; s++) {
854
861
  const a = e[s];
855
- bn(a, t, o, r);
862
+ vn(a, t, o, r);
856
863
  }
857
- }, bn = (e, t, o, r) => {
864
+ }, vn = (e, t, o, r) => {
858
865
  if (typeof e == "string") {
859
- vn(e, t, o);
866
+ xn(e, t, o);
860
867
  return;
861
868
  }
862
869
  if (typeof e == "function") {
863
- xn(e, t, o, r);
870
+ wn(e, t, o, r);
864
871
  return;
865
872
  }
866
- wn(e, t, o, r);
867
- }, vn = (e, t, o) => {
873
+ yn(e, t, o, r);
874
+ }, xn = (e, t, o) => {
868
875
  const r = e === "" ? t : qt(t, e);
869
876
  r.classGroupId = o;
870
- }, xn = (e, t, o, r) => {
871
- if (yn(e)) {
877
+ }, wn = (e, t, o, r) => {
878
+ if (kn(e)) {
872
879
  et(e(r), t, o, r);
873
880
  return;
874
881
  }
875
- t.validators === null && (t.validators = []), t.validators.push(un(o, e));
876
- }, wn = (e, t, o, r) => {
882
+ t.validators === null && (t.validators = []), t.validators.push(fn(o, e));
883
+ }, yn = (e, t, o, r) => {
877
884
  const n = Object.entries(e), s = n.length;
878
885
  for (let a = 0; a < s; a++) {
879
886
  const [i, l] = n[a];
@@ -888,7 +895,7 @@ const dn = (e, t) => {
888
895
  i || (i = Bt(), o.nextPart.set(a, i)), o = i;
889
896
  }
890
897
  return o;
891
- }, yn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kn = (e) => {
898
+ }, kn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Sn = (e) => {
892
899
  if (e < 1)
893
900
  return {
894
901
  get: () => {
@@ -912,13 +919,13 @@ const dn = (e, t) => {
912
919
  s in o ? o[s] = a : n(s, a);
913
920
  }
914
921
  };
915
- }, Xe = "!", gt = ":", Sn = [], bt = (e, t, o, r, n) => ({
922
+ }, Xe = "!", gt = ":", Cn = [], bt = (e, t, o, r, n) => ({
916
923
  modifiers: e,
917
924
  hasImportantModifier: t,
918
925
  baseClassName: o,
919
926
  maybePostfixModifierPosition: r,
920
927
  isExternal: n
921
- }), Cn = (e) => {
928
+ }), En = (e) => {
922
929
  const {
923
930
  prefix: t,
924
931
  experimentalParseClassName: o
@@ -955,7 +962,7 @@ const dn = (e, t) => {
955
962
  };
956
963
  if (t) {
957
964
  const n = t + gt, s = r;
958
- r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Sn, !1, a, void 0, !0);
965
+ r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(Cn, !1, a, void 0, !0);
959
966
  }
960
967
  if (o) {
961
968
  const n = r;
@@ -965,7 +972,7 @@ const dn = (e, t) => {
965
972
  });
966
973
  }
967
974
  return r;
968
- }, En = (e) => {
975
+ }, Nn = (e) => {
969
976
  const t = /* @__PURE__ */ new Map();
970
977
  return e.orderSensitiveModifiers.forEach((o, r) => {
971
978
  t.set(o, 1e6 + r);
@@ -978,18 +985,18 @@ const dn = (e, t) => {
978
985
  }
979
986
  return n.length > 0 && (n.sort(), r.push(...n)), r;
980
987
  };
981
- }, Nn = (e) => ({
982
- cache: kn(e.cacheSize),
983
- parseClassName: Cn(e),
984
- sortModifiers: En(e),
985
- ...mn(e)
986
- }), An = /\s+/, _n = (e, t) => {
988
+ }, An = (e) => ({
989
+ cache: Sn(e.cacheSize),
990
+ parseClassName: En(e),
991
+ sortModifiers: Nn(e),
992
+ ...pn(e)
993
+ }), _n = /\s+/, Rn = (e, t) => {
987
994
  const {
988
995
  parseClassName: o,
989
996
  getClassGroupId: r,
990
997
  getConflictingClassGroupIds: n,
991
998
  sortModifiers: s
992
- } = t, a = [], i = e.trim().split(An);
999
+ } = t, a = [], i = e.trim().split(_n);
993
1000
  let l = "";
994
1001
  for (let u = i.length - 1; u >= 0; u -= 1) {
995
1002
  const d = i[u], {
@@ -1027,7 +1034,7 @@ const dn = (e, t) => {
1027
1034
  l = d + (l.length > 0 ? " " + l : l);
1028
1035
  }
1029
1036
  return l;
1030
- }, Rn = (...e) => {
1037
+ }, In = (...e) => {
1031
1038
  let t = 0, o, r, n = "";
1032
1039
  for (; t < e.length; )
1033
1040
  (o = e[t++]) && (r = Yt(o)) && (n && (n += " "), n += r);
@@ -1039,34 +1046,34 @@ const dn = (e, t) => {
1039
1046
  for (let r = 0; r < e.length; r++)
1040
1047
  e[r] && (t = Yt(e[r])) && (o && (o += " "), o += t);
1041
1048
  return o;
1042
- }, In = (e, ...t) => {
1049
+ }, Pn = (e, ...t) => {
1043
1050
  let o, r, n, s;
1044
1051
  const a = (l) => {
1045
1052
  const u = t.reduce((d, f) => f(d), e());
1046
- return o = Nn(u), r = o.cache.get, n = o.cache.set, s = i, i(l);
1053
+ return o = An(u), r = o.cache.get, n = o.cache.set, s = i, i(l);
1047
1054
  }, i = (l) => {
1048
1055
  const u = r(l);
1049
1056
  if (u)
1050
1057
  return u;
1051
- const d = _n(l, o);
1058
+ const d = Rn(l, o);
1052
1059
  return n(l, d), d;
1053
1060
  };
1054
- return s = a, (...l) => s(Rn(...l));
1055
- }, Pn = [], F = (e) => {
1056
- const t = (o) => o[e] || Pn;
1061
+ return s = a, (...l) => s(In(...l));
1062
+ }, Tn = [], F = (e) => {
1063
+ const t = (o) => o[e] || Tn;
1057
1064
  return t.isThemeGetter = !0, t;
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) => (
1065
+ }, Xt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Kt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Mn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ln = /\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$/, On = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, $n = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fn = /^(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)), Z = (e) => Mn.test(e), Zt = () => !0, Dn = (e) => (
1059
1066
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1060
1067
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1061
1068
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
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, 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) => {
1069
+ Ln.test(e) && !On.test(e)
1070
+ ), tt = () => !1, Un = (e) => $n.test(e), Wn = (e) => Fn.test(e), Hn = (e) => !v(e) && !w(e), jn = (e) => re(e, eo, tt), v = (e) => Xt.test(e), se = (e) => re(e, to, Dn), vt = (e) => re(e, Zn, I), Vn = (e) => re(e, ro, Zt), Bn = (e) => re(e, oo, tt), xt = (e) => re(e, Jt, tt), Gn = (e) => re(e, Qt, Wn), Ee = (e) => re(e, no, Un), w = (e) => Kt.test(e), fe = (e) => ie(e, to), qn = (e) => ie(e, oo), wt = (e) => ie(e, Jt), Yn = (e) => ie(e, eo), Xn = (e) => ie(e, Qt), Ne = (e) => ie(e, no, !0), Kn = (e) => ie(e, ro, !0), re = (e, t, o) => {
1064
1071
  const r = Xt.exec(e);
1065
1072
  return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
1066
1073
  }, ie = (e, t, o = !1) => {
1067
1074
  const r = Kt.exec(e);
1068
1075
  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", Kn = (e) => e === "number", oo = (e) => e === "family-name", ro = (e) => e === "number" || e === "weight", no = (e) => e === "shadow", Zn = () => {
1076
+ }, 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", Jn = () => {
1070
1077
  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
1078
  "center",
1072
1079
  "top",
@@ -1091,7 +1098,7 @@ const dn = (e, t) => {
1091
1098
  position: [w, v]
1092
1099
  }], dt = () => ["no-repeat", {
1093
1100
  repeat: ["", "x", "y", "space", "round"]
1094
- }], ut = () => ["auto", "cover", "contain", qn, Hn, {
1101
+ }], ut = () => ["auto", "cover", "contain", Yn, jn, {
1095
1102
  size: [w, v]
1096
1103
  }], De = () => [He, fe, se], H = () => [
1097
1104
  // Deprecated since Tailwind CSS v4.0.0
@@ -1120,7 +1127,7 @@ const dn = (e, t) => {
1120
1127
  container: [Z],
1121
1128
  "drop-shadow": [Z],
1122
1129
  ease: ["in", "out", "in-out"],
1123
- font: [Wn],
1130
+ font: [Hn],
1124
1131
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1125
1132
  "inset-shadow": [Z],
1126
1133
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -1914,7 +1921,7 @@ const dn = (e, t) => {
1914
1921
  * @see https://tailwindcss.com/docs/font-weight
1915
1922
  */
1916
1923
  "font-weight": [{
1917
- font: [r, Xn, jn]
1924
+ font: [r, Kn, Vn]
1918
1925
  }],
1919
1926
  /**
1920
1927
  * Font Stretch
@@ -1928,7 +1935,7 @@ const dn = (e, t) => {
1928
1935
  * @see https://tailwindcss.com/docs/font-family
1929
1936
  */
1930
1937
  "font-family": [{
1931
- font: [Gn, Vn, t]
1938
+ font: [qn, Bn, t]
1932
1939
  }],
1933
1940
  /**
1934
1941
  * Font Feature Settings
@@ -2190,7 +2197,7 @@ const dn = (e, t) => {
2190
2197
  }, te, w, v],
2191
2198
  radial: ["", w, v],
2192
2199
  conic: [te, w, v]
2193
- }, Yn, Bn]
2200
+ }, Xn, Gn]
2194
2201
  }],
2195
2202
  /**
2196
2203
  * Background Color
@@ -3695,7 +3702,7 @@ const dn = (e, t) => {
3695
3702
  },
3696
3703
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3697
3704
  };
3698
- }, Jn = /* @__PURE__ */ In(Zn), z = (...e) => Jn(Vt(e));
3705
+ }, Qn = /* @__PURE__ */ Pn(Jn), z = (...e) => Qn(Vt(e));
3699
3706
  function me({ className: e, ...t }) {
3700
3707
  return /* @__PURE__ */ c(
3701
3708
  "div",
@@ -3709,7 +3716,7 @@ function me({ className: e, ...t }) {
3709
3716
  }
3710
3717
  );
3711
3718
  }
3712
- function Qn({ className: e, ...t }) {
3719
+ function es({ className: e, ...t }) {
3713
3720
  return /* @__PURE__ */ c(
3714
3721
  "div",
3715
3722
  {
@@ -3788,8 +3795,8 @@ function Y(...e) {
3788
3795
  }
3789
3796
  // @__NO_SIDE_EFFECTS__
3790
3797
  function Pe(e) {
3791
- const t = /* @__PURE__ */ es(e), o = p.forwardRef((r, n) => {
3792
- const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(os);
3798
+ const t = /* @__PURE__ */ ts(e), o = p.forwardRef((r, n) => {
3799
+ const { children: s, ...a } = r, i = p.Children.toArray(s), l = i.find(rs);
3793
3800
  if (l) {
3794
3801
  const u = l.props.children, d = i.map((f) => f === l ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : f);
3795
3802
  return /* @__PURE__ */ c(t, { ...a, ref: n, children: p.isValidElement(u) ? p.cloneElement(u, void 0, d) : null });
@@ -3800,22 +3807,22 @@ function Pe(e) {
3800
3807
  }
3801
3808
  var ao = /* @__PURE__ */ Pe("Slot");
3802
3809
  // @__NO_SIDE_EFFECTS__
3803
- function es(e) {
3810
+ function ts(e) {
3804
3811
  const t = p.forwardRef((o, r) => {
3805
3812
  const { children: n, ...s } = o;
3806
3813
  if (p.isValidElement(n)) {
3807
- const a = ns(n), i = rs(s, n.props);
3814
+ const a = ss(n), i = ns(s, n.props);
3808
3815
  return n.type !== p.Fragment && (i.ref = r ? so(r, a) : a), p.cloneElement(n, i);
3809
3816
  }
3810
3817
  return p.Children.count(n) > 1 ? p.Children.only(null) : null;
3811
3818
  });
3812
3819
  return t.displayName = `${e}.SlotClone`, t;
3813
3820
  }
3814
- var ts = Symbol("radix.slottable");
3815
- function os(e) {
3816
- return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ts;
3821
+ var os = Symbol("radix.slottable");
3822
+ function rs(e) {
3823
+ return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === os;
3817
3824
  }
3818
- function rs(e, t) {
3825
+ function ns(e, t) {
3819
3826
  const o = { ...t };
3820
3827
  for (const r in t) {
3821
3828
  const n = e[r], s = t[r];
@@ -3826,12 +3833,12 @@ function rs(e, t) {
3826
3833
  }
3827
3834
  return { ...e, ...o };
3828
3835
  }
3829
- function ns(e) {
3836
+ function ss(e) {
3830
3837
  var r, n;
3831
3838
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
3832
3839
  return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
3833
3840
  }
3834
- var ss = [
3841
+ var as = [
3835
3842
  "a",
3836
3843
  "button",
3837
3844
  "div",
@@ -3849,7 +3856,7 @@ var ss = [
3849
3856
  "span",
3850
3857
  "svg",
3851
3858
  "ul"
3852
- ], V = ss.reduce((e, t) => {
3859
+ ], V = as.reduce((e, t) => {
3853
3860
  const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = p.forwardRef((n, s) => {
3854
3861
  const { asChild: a, ...i } = n, l = a ? o : t;
3855
3862
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
@@ -3886,9 +3893,9 @@ function ge(e, t = []) {
3886
3893
  );
3887
3894
  };
3888
3895
  };
3889
- return n.scopeName = e, [r, as(n, ...t)];
3896
+ return n.scopeName = e, [r, is(n, ...t)];
3890
3897
  }
3891
- function as(...e) {
3898
+ function is(...e) {
3892
3899
  const t = e[0];
3893
3900
  if (e.length === 1) return t;
3894
3901
  const o = () => {
@@ -3906,7 +3913,7 @@ function as(...e) {
3906
3913
  };
3907
3914
  return o.scopeName = t.scopeName, o;
3908
3915
  }
3909
- function is(e) {
3916
+ function ls(e) {
3910
3917
  const t = e + "CollectionProvider", [o, r] = ge(t), [n, s] = o(
3911
3918
  t,
3912
3919
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -3953,7 +3960,7 @@ function W(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
3953
3960
  };
3954
3961
  }
3955
3962
  var oe = globalThis != null && globalThis.document ? p.useLayoutEffect : () => {
3956
- }, ls = p[" useInsertionEffect ".trim().toString()] || oe;
3963
+ }, cs = p[" useInsertionEffect ".trim().toString()] || oe;
3957
3964
  function io({
3958
3965
  prop: e,
3959
3966
  defaultProp: t,
@@ -3961,7 +3968,7 @@ function io({
3961
3968
  },
3962
3969
  caller: r
3963
3970
  }) {
3964
- const [n, s, a] = cs({
3971
+ const [n, s, a] = ds({
3965
3972
  defaultProp: t,
3966
3973
  onChange: o
3967
3974
  }), i = e !== void 0, l = i ? e : n;
@@ -3978,7 +3985,7 @@ function io({
3978
3985
  (d) => {
3979
3986
  var f;
3980
3987
  if (i) {
3981
- const m = ds(d) ? d(e) : d;
3988
+ const m = us(d) ? d(e) : d;
3982
3989
  m !== e && ((f = a.current) == null || f.call(a, m));
3983
3990
  } else
3984
3991
  s(d);
@@ -3987,31 +3994,31 @@ function io({
3987
3994
  );
3988
3995
  return [l, u];
3989
3996
  }
3990
- function cs({
3997
+ function ds({
3991
3998
  defaultProp: e,
3992
3999
  onChange: t
3993
4000
  }) {
3994
4001
  const [o, r] = p.useState(e), n = p.useRef(o), s = p.useRef(t);
3995
- return ls(() => {
4002
+ return cs(() => {
3996
4003
  s.current = t;
3997
4004
  }, [t]), p.useEffect(() => {
3998
4005
  var a;
3999
4006
  n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
4000
4007
  }, [o, n]), [o, r, s];
4001
4008
  }
4002
- function ds(e) {
4009
+ function us(e) {
4003
4010
  return typeof e == "function";
4004
4011
  }
4005
- function us(e, t) {
4012
+ function fs(e, t) {
4006
4013
  return p.useReducer((o, r) => t[o][r] ?? o, e);
4007
4014
  }
4008
4015
  var ue = (e) => {
4009
- const { present: t, children: o } = e, r = fs(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ms(n));
4016
+ const { present: t, children: o } = e, r = ms(t), n = typeof o == "function" ? o({ present: r.isPresent }) : p.Children.only(o), s = Y(r.ref, ps(n));
4010
4017
  return typeof o == "function" || r.isPresent ? p.cloneElement(n, { ref: s }) : null;
4011
4018
  };
4012
4019
  ue.displayName = "Presence";
4013
- function fs(e) {
4014
- const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = us(a, {
4020
+ function ms(e) {
4021
+ const [t, o] = p.useState(), r = p.useRef(null), n = p.useRef(e), s = p.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = fs(a, {
4015
4022
  mounted: {
4016
4023
  UNMOUNT: "unmounted",
4017
4024
  ANIMATION_OUT: "unmountSuspended"
@@ -4062,22 +4069,22 @@ function fs(e) {
4062
4069
  function Ae(e) {
4063
4070
  return (e == null ? void 0 : e.animationName) || "none";
4064
4071
  }
4065
- function ms(e) {
4072
+ function ps(e) {
4066
4073
  var r, n;
4067
4074
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
4068
4075
  return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
4069
4076
  }
4070
- var ps = p[" useId ".trim().toString()] || (() => {
4071
- }), hs = 0;
4077
+ var hs = p[" useId ".trim().toString()] || (() => {
4078
+ }), gs = 0;
4072
4079
  function lo(e) {
4073
- const [t, o] = p.useState(ps());
4080
+ const [t, o] = p.useState(hs());
4074
4081
  return oe(() => {
4075
- o((r) => r ?? String(hs++));
4082
+ o((r) => r ?? String(gs++));
4076
4083
  }, [e]), e || (t ? `radix-${t}` : "");
4077
4084
  }
4078
- var gs = p.createContext(void 0);
4085
+ var bs = p.createContext(void 0);
4079
4086
  function rt(e) {
4080
- const t = p.useContext(gs);
4087
+ const t = p.useContext(bs);
4081
4088
  return e || t || "ltr";
4082
4089
  }
4083
4090
  function J(e) {
@@ -4100,7 +4107,7 @@ var je = { exports: {} }, Ve = {};
4100
4107
  * LICENSE file in the root directory of this source tree.
4101
4108
  */
4102
4109
  var Ct;
4103
- function bs() {
4110
+ function vs() {
4104
4111
  if (Ct) return Ve;
4105
4112
  Ct = 1;
4106
4113
  var e = G;
@@ -4141,26 +4148,26 @@ function bs() {
4141
4148
  return Ve.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, Ve;
4142
4149
  }
4143
4150
  var Et;
4144
- function vs() {
4145
- return Et || (Et = 1, je.exports = bs()), je.exports;
4151
+ function xs() {
4152
+ return Et || (Et = 1, je.exports = vs()), je.exports;
4146
4153
  }
4147
- var xs = vs();
4148
- function ws() {
4149
- return xs.useSyncExternalStore(
4150
- ys,
4154
+ var ws = xs();
4155
+ function ys() {
4156
+ return ws.useSyncExternalStore(
4157
+ ks,
4151
4158
  () => !0,
4152
4159
  () => !1
4153
4160
  );
4154
4161
  }
4155
- function ys() {
4162
+ function ks() {
4156
4163
  return () => {
4157
4164
  };
4158
4165
  }
4159
- var nt = "Avatar", [ks] = ge(nt), [Ss, co] = ks(nt), uo = p.forwardRef(
4166
+ var nt = "Avatar", [Ss] = ge(nt), [Cs, co] = Ss(nt), uo = p.forwardRef(
4160
4167
  (e, t) => {
4161
4168
  const { __scopeAvatar: o, ...r } = e, [n, s] = p.useState("idle");
4162
4169
  return /* @__PURE__ */ c(
4163
- Ss,
4170
+ Cs,
4164
4171
  {
4165
4172
  scope: o,
4166
4173
  imageLoadingStatus: n,
@@ -4174,7 +4181,7 @@ uo.displayName = nt;
4174
4181
  var fo = "AvatarImage", mo = p.forwardRef(
4175
4182
  (e, t) => {
4176
4183
  const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
4177
- }, ...s } = e, a = co(fo, o), i = Cs(r, s), l = J((u) => {
4184
+ }, ...s } = e, a = co(fo, o), i = Es(r, s), l = J((u) => {
4178
4185
  n(u), a.onImageLoadingStatusChange(u);
4179
4186
  });
4180
4187
  return oe(() => {
@@ -4198,8 +4205,8 @@ ho.displayName = po;
4198
4205
  function Nt(e, t) {
4199
4206
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
4200
4207
  }
4201
- function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
4202
- const r = ws(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
4208
+ function Es(e, { referrerPolicy: t, crossOrigin: o }) {
4209
+ const r = ys(), n = p.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = p.useState(
4203
4210
  () => Nt(s, e)
4204
4211
  );
4205
4212
  return oe(() => {
@@ -4215,14 +4222,14 @@ function Cs(e, { referrerPolicy: t, crossOrigin: o }) {
4215
4222
  };
4216
4223
  }, [s, o, t]), a;
4217
4224
  }
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(
4225
+ var Ns = uo, As = mo, _s = ho, Be = "rovingFocusGroup.onEntryFocus", Rs = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Ke, go, Is] = ls(be), [Ps, bo] = ge(
4219
4226
  be,
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 }) }) })
4227
+ [Is]
4228
+ ), [Ts, zs] = Ps(be), vo = p.forwardRef(
4229
+ (e, t) => /* @__PURE__ */ c(Ke.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ke.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ms, { ...e, ref: t }) }) })
4223
4230
  );
4224
4231
  vo.displayName = be;
4225
- var zs = p.forwardRef((e, t) => {
4232
+ var Ms = p.forwardRef((e, t) => {
4226
4233
  const {
4227
4234
  __scopeRovingFocusGroup: o,
4228
4235
  orientation: r,
@@ -4245,7 +4252,7 @@ var zs = p.forwardRef((e, t) => {
4245
4252
  if (b)
4246
4253
  return b.addEventListener(Be, C), () => b.removeEventListener(Be, C);
4247
4254
  }, [C]), /* @__PURE__ */ c(
4248
- Ps,
4255
+ Ts,
4249
4256
  {
4250
4257
  scope: o,
4251
4258
  orientation: r,
@@ -4279,7 +4286,7 @@ var zs = p.forwardRef((e, t) => {
4279
4286
  onFocus: W(e.onFocus, (b) => {
4280
4287
  const S = !P.current;
4281
4288
  if (b.target === b.currentTarget && S && !y) {
4282
- const M = new CustomEvent(Be, _s);
4289
+ const M = new CustomEvent(Be, Rs);
4283
4290
  if (b.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
4284
4291
  const O = A().filter(($) => $.focusable), K = O.find(($) => $.active), ve = O.find(($) => $.id === x), Q = [K, ve, ...O].filter(
4285
4292
  Boolean
@@ -4303,7 +4310,7 @@ var zs = p.forwardRef((e, t) => {
4303
4310
  tabStopId: s,
4304
4311
  children: a,
4305
4312
  ...i
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;
4313
+ } = e, l = lo(), u = s || l, d = zs(xo, o), f = d.currentTabStopId === u, m = go(o), { onFocusableItemAdd: g, onFocusableItemRemove: k, currentTabStopId: x } = d;
4307
4314
  return p.useEffect(() => {
4308
4315
  if (r)
4309
4316
  return g(), () => k();
@@ -4331,7 +4338,7 @@ var zs = p.forwardRef((e, t) => {
4331
4338
  return;
4332
4339
  }
4333
4340
  if (h.target !== h.currentTarget) return;
4334
- const y = Os(h, d.orientation, d.dir);
4341
+ const y = $s(h, d.orientation, d.dir);
4335
4342
  if (y !== void 0) {
4336
4343
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
4337
4344
  h.preventDefault();
@@ -4340,7 +4347,7 @@ var zs = p.forwardRef((e, t) => {
4340
4347
  else if (y === "prev" || y === "next") {
4341
4348
  y === "prev" && C.reverse();
4342
4349
  const A = C.indexOf(h.currentTarget);
4343
- C = d.loop ? $s(C, A + 1) : C.slice(A + 1);
4350
+ C = d.loop ? Fs(C, A + 1) : C.slice(A + 1);
4344
4351
  }
4345
4352
  setTimeout(() => yo(C));
4346
4353
  }
@@ -4353,7 +4360,7 @@ var zs = p.forwardRef((e, t) => {
4353
4360
  }
4354
4361
  );
4355
4362
  wo.displayName = xo;
4356
- var Ms = {
4363
+ var Ls = {
4357
4364
  ArrowLeft: "prev",
4358
4365
  ArrowUp: "prev",
4359
4366
  ArrowRight: "next",
@@ -4363,30 +4370,30 @@ var Ms = {
4363
4370
  PageDown: "last",
4364
4371
  End: "last"
4365
4372
  };
4366
- function Ls(e, t) {
4373
+ function Os(e, t) {
4367
4374
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
4368
4375
  }
4369
- function Os(e, t, o) {
4370
- const r = Ls(e.key, o);
4376
+ function $s(e, t, o) {
4377
+ const r = Os(e.key, o);
4371
4378
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
4372
- return Ms[r];
4379
+ return Ls[r];
4373
4380
  }
4374
4381
  function yo(e, t = !1) {
4375
4382
  const o = document.activeElement;
4376
4383
  for (const r of e)
4377
4384
  if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
4378
4385
  }
4379
- function $s(e, t) {
4386
+ function Fs(e, t) {
4380
4387
  return e.map((o, r) => e[(t + r) % e.length]);
4381
4388
  }
4382
- var Fs = vo, Ds = wo;
4383
- function Us(e, [t, o]) {
4389
+ var Ds = vo, Us = wo;
4390
+ function Ws(e, [t, o]) {
4384
4391
  return Math.min(o, Math.max(t, e));
4385
4392
  }
4386
- function Ws(e, t) {
4393
+ function Hs(e, t) {
4387
4394
  return p.useReducer((o, r) => t[o][r] ?? o, e);
4388
4395
  }
4389
- var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
4396
+ var st = "ScrollArea", [ko] = ge(st), [js, q] = ko(st), So = p.forwardRef(
4390
4397
  (e, t) => {
4391
4398
  const {
4392
4399
  __scopeScrollArea: o,
@@ -4396,7 +4403,7 @@ var st = "ScrollArea", [ko] = ge(st), [Hs, q] = ko(st), So = p.forwardRef(
4396
4403
  ...a
4397
4404
  } = 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
4405
  return /* @__PURE__ */ c(
4399
- Hs,
4406
+ js,
4400
4407
  {
4401
4408
  scope: o,
4402
4409
  type: r,
@@ -4484,11 +4491,11 @@ var X = "ScrollAreaScrollbar", No = p.forwardRef(
4484
4491
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
4485
4492
  return p.useEffect(() => (i ? s(!0) : a(!0), () => {
4486
4493
  i ? s(!1) : a(!1);
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;
4494
+ }), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Vs, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Bs, { ...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
4495
  }
4489
4496
  );
4490
4497
  No.displayName = X;
4491
- var js = p.forwardRef((e, t) => {
4498
+ var Vs = p.forwardRef((e, t) => {
4492
4499
  const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = p.useState(!1);
4493
4500
  return p.useEffect(() => {
4494
4501
  const i = n.scrollArea;
@@ -4511,8 +4518,8 @@ var js = p.forwardRef((e, t) => {
4511
4518
  ref: t
4512
4519
  }
4513
4520
  ) });
4514
- }), Vs = p.forwardRef((e, t) => {
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", {
4521
+ }), Bs = p.forwardRef((e, t) => {
4522
+ const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = Hs("hidden", {
4516
4523
  hidden: {
4517
4524
  SCROLL: "scrolling"
4518
4525
  },
@@ -4585,10 +4592,10 @@ var js = p.forwardRef((e, t) => {
4585
4592
  onThumbPointerDown: (m) => a.current = m
4586
4593
  };
4587
4594
  function f(m, g) {
4588
- return Ks(m, a.current, i, g);
4595
+ return Zs(m, a.current, i, g);
4589
4596
  }
4590
4597
  return o === "horizontal" ? /* @__PURE__ */ c(
4591
- Bs,
4598
+ Gs,
4592
4599
  {
4593
4600
  ...d,
4594
4601
  ref: t,
@@ -4606,7 +4613,7 @@ var js = p.forwardRef((e, t) => {
4606
4613
  }
4607
4614
  }
4608
4615
  ) : o === "vertical" ? /* @__PURE__ */ c(
4609
- Gs,
4616
+ qs,
4610
4617
  {
4611
4618
  ...d,
4612
4619
  ref: t,
@@ -4624,7 +4631,7 @@ var js = p.forwardRef((e, t) => {
4624
4631
  }
4625
4632
  }
4626
4633
  ) : null;
4627
- }), Bs = p.forwardRef((e, t) => {
4634
+ }), Gs = p.forwardRef((e, t) => {
4628
4635
  const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), u = Y(t, l, s.onScrollbarXChange);
4629
4636
  return p.useEffect(() => {
4630
4637
  l.current && i(getComputedStyle(l.current));
@@ -4663,7 +4670,7 @@ var js = p.forwardRef((e, t) => {
4663
4670
  }
4664
4671
  }
4665
4672
  );
4666
- }), Gs = p.forwardRef((e, t) => {
4673
+ }), qs = p.forwardRef((e, t) => {
4667
4674
  const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = p.useState(), l = p.useRef(null), u = Y(t, l, s.onScrollbarYChange);
4668
4675
  return p.useEffect(() => {
4669
4676
  l.current && i(getComputedStyle(l.current));
@@ -4703,7 +4710,7 @@ var js = p.forwardRef((e, t) => {
4703
4710
  }
4704
4711
  }
4705
4712
  );
4706
- }), [qs, _o] = ko(X), Ro = p.forwardRef((e, t) => {
4713
+ }), [Ys, _o] = ko(X), Ro = p.forwardRef((e, t) => {
4707
4714
  const {
4708
4715
  __scopeScrollArea: o,
4709
4716
  sizes: r,
@@ -4730,7 +4737,7 @@ var js = p.forwardRef((e, t) => {
4730
4737
  };
4731
4738
  return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
4732
4739
  }, [C, k, A, P]), p.useEffect(E, [r, E]), de(k, R), de(g.content, R), /* @__PURE__ */ c(
4733
- qs,
4740
+ Ys,
4734
4741
  {
4735
4742
  scope: o,
4736
4743
  scrollbar: k,
@@ -4760,9 +4767,9 @@ var js = p.forwardRef((e, t) => {
4760
4767
  }), Te = "ScrollAreaThumb", Io = p.forwardRef(
4761
4768
  (e, t) => {
4762
4769
  const { forceMount: o, ...r } = e, n = _o(Te, e.__scopeScrollArea);
4763
- return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Ys, { ref: t, ...r }) });
4770
+ return /* @__PURE__ */ c(ue, { present: o || n.hasThumb, children: /* @__PURE__ */ c(Xs, { ref: t, ...r }) });
4764
4771
  }
4765
- ), Ys = p.forwardRef(
4772
+ ), Xs = p.forwardRef(
4766
4773
  (e, t) => {
4767
4774
  const { __scopeScrollArea: o, style: r, ...n } = e, s = q(Te, o), a = _o(Te, o), { onThumbPositionChange: i } = a, l = Y(
4768
4775
  t,
@@ -4775,7 +4782,7 @@ var js = p.forwardRef((e, t) => {
4775
4782
  if (f) {
4776
4783
  const m = () => {
4777
4784
  if (d(), !u.current) {
4778
- const g = Zs(f, i);
4785
+ const g = Js(f, i);
4779
4786
  u.current = g, i();
4780
4787
  }
4781
4788
  };
@@ -4805,11 +4812,11 @@ Io.displayName = Te;
4805
4812
  var it = "ScrollAreaCorner", Po = p.forwardRef(
4806
4813
  (e, t) => {
4807
4814
  const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
4808
- return o.type !== "scroll" && r ? /* @__PURE__ */ c(Xs, { ...e, ref: t }) : null;
4815
+ return o.type !== "scroll" && r ? /* @__PURE__ */ c(Ks, { ...e, ref: t }) : null;
4809
4816
  }
4810
4817
  );
4811
4818
  Po.displayName = it;
4812
- var Xs = p.forwardRef((e, t) => {
4819
+ var Ks = p.forwardRef((e, t) => {
4813
4820
  const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = p.useState(0), [i, l] = p.useState(0), u = !!(s && i);
4814
4821
  return de(n.scrollbarX, () => {
4815
4822
  var f;
@@ -4847,12 +4854,12 @@ function Me(e) {
4847
4854
  const t = To(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
4848
4855
  return Math.max(r, 18);
4849
4856
  }
4850
- function Ks(e, t, o, r = "ltr") {
4857
+ function Zs(e, t, o, r = "ltr") {
4851
4858
  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
4859
  return zo([l, u], f)(e);
4853
4860
  }
4854
4861
  function At(e, t, o = "ltr") {
4855
- const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], u = Us(e, l);
4862
+ 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 = Ws(e, l);
4856
4863
  return zo([0, a], [0, i])(u);
4857
4864
  }
4858
4865
  function zo(e, t) {
@@ -4865,7 +4872,7 @@ function zo(e, t) {
4865
4872
  function Mo(e, t) {
4866
4873
  return e > 0 && e < t;
4867
4874
  }
4868
- var Zs = (e, t = () => {
4875
+ var Js = (e, t = () => {
4869
4876
  }) => {
4870
4877
  let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
4871
4878
  return (function n() {
@@ -4893,8 +4900,8 @@ function de(e, t) {
4893
4900
  }
4894
4901
  }, [e, o]);
4895
4902
  }
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" };
4903
+ var Qs = So, ea = Eo, ta = Po, oa = "Separator", _t = "horizontal", ra = ["horizontal", "vertical"], Lo = p.forwardRef((e, t) => {
4904
+ const { decorative: o, orientation: r = _t, ...n } = e, s = na(r) ? r : _t, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
4898
4905
  return /* @__PURE__ */ c(
4899
4906
  V.div,
4900
4907
  {
@@ -4905,13 +4912,13 @@ var Js = So, Qs = Eo, ea = Po, ta = "Separator", _t = "horizontal", oa = ["horiz
4905
4912
  }
4906
4913
  );
4907
4914
  });
4908
- Lo.displayName = ta;
4909
- function ra(e) {
4910
- return oa.includes(e);
4915
+ Lo.displayName = oa;
4916
+ function na(e) {
4917
+ return ra.includes(e);
4911
4918
  }
4912
- var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
4919
+ var sa = Lo, Oe = "Tabs", [aa] = ge(Oe, [
4913
4920
  bo
4914
- ]), Oo = bo(), [aa, lt] = sa(Oe), $o = p.forwardRef(
4921
+ ]), Oo = bo(), [ia, lt] = aa(Oe), $o = p.forwardRef(
4915
4922
  (e, t) => {
4916
4923
  const {
4917
4924
  __scopeTabs: o,
@@ -4929,7 +4936,7 @@ var na = Lo, Oe = "Tabs", [sa] = ge(Oe, [
4929
4936
  caller: Oe
4930
4937
  });
4931
4938
  return /* @__PURE__ */ c(
4932
- aa,
4939
+ ia,
4933
4940
  {
4934
4941
  scope: o,
4935
4942
  baseId: lo(),
@@ -4956,7 +4963,7 @@ var Fo = "TabsList", Do = p.forwardRef(
4956
4963
  (e, t) => {
4957
4964
  const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Fo, o), a = Oo(o);
4958
4965
  return /* @__PURE__ */ c(
4959
- Fs,
4966
+ Ds,
4960
4967
  {
4961
4968
  asChild: !0,
4962
4969
  ...a,
@@ -4981,7 +4988,7 @@ var Uo = "TabsTrigger", Wo = p.forwardRef(
4981
4988
  (e, t) => {
4982
4989
  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
4990
  return /* @__PURE__ */ c(
4984
- Ds,
4991
+ Us,
4985
4992
  {
4986
4993
  asChild: !0,
4987
4994
  ...i,
@@ -5051,8 +5058,8 @@ function Vo(e, t) {
5051
5058
  function Bo(e, t) {
5052
5059
  return `${e}-content-${t}`;
5053
5060
  }
5054
- var ia = $o, la = Do, ca = Wo, da = jo;
5055
- const ua = ot(
5061
+ var la = $o, ca = Do, da = Wo, ua = jo;
5062
+ const fa = ot(
5056
5063
  '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
5064
  {
5058
5065
  variants: {
@@ -5094,12 +5101,12 @@ function Go({
5094
5101
  "data-slot": "button",
5095
5102
  "data-variant": t,
5096
5103
  "data-size": o,
5097
- className: z(ua({ variant: t, size: o, className: e })),
5104
+ className: z(fa({ variant: t, size: o, className: e })),
5098
5105
  ...n
5099
5106
  }
5100
5107
  );
5101
5108
  }
5102
- const fa = ot(
5109
+ const ma = ot(
5103
5110
  "inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",
5104
5111
  {
5105
5112
  variants: {
@@ -5117,7 +5124,7 @@ const fa = ot(
5117
5124
  }
5118
5125
  }
5119
5126
  );
5120
- function ma({
5127
+ function pa({
5121
5128
  className: e,
5122
5129
  variant: t = "default",
5123
5130
  asChild: o = !1,
@@ -5128,12 +5135,12 @@ function ma({
5128
5135
  {
5129
5136
  "data-slot": "badge",
5130
5137
  "data-variant": t,
5131
- className: z(fa({ variant: t }), e),
5138
+ className: z(ma({ variant: t }), e),
5132
5139
  ...r
5133
5140
  }
5134
5141
  );
5135
5142
  }
5136
- function pa({ className: e, type: t, ...o }) {
5143
+ function ha({ className: e, type: t, ...o }) {
5137
5144
  return /* @__PURE__ */ c(
5138
5145
  "input",
5139
5146
  {
@@ -5149,14 +5156,14 @@ function pa({ className: e, type: t, ...o }) {
5149
5156
  }
5150
5157
  );
5151
5158
  }
5152
- function ha({
5159
+ function ga({
5153
5160
  className: e,
5154
5161
  orientation: t = "horizontal",
5155
5162
  decorative: o = !0,
5156
5163
  ...r
5157
5164
  }) {
5158
5165
  return /* @__PURE__ */ c(
5159
- na,
5166
+ sa,
5160
5167
  {
5161
5168
  "data-slot": "separator",
5162
5169
  decorative: o,
@@ -5169,13 +5176,13 @@ function ha({
5169
5176
  }
5170
5177
  );
5171
5178
  }
5172
- function ga({
5179
+ function ba({
5173
5180
  className: e,
5174
5181
  orientation: t = "horizontal",
5175
5182
  ...o
5176
5183
  }) {
5177
5184
  return /* @__PURE__ */ c(
5178
- ia,
5185
+ la,
5179
5186
  {
5180
5187
  "data-slot": "tabs",
5181
5188
  "data-orientation": t,
@@ -5188,7 +5195,7 @@ function ga({
5188
5195
  }
5189
5196
  );
5190
5197
  }
5191
- const ba = ot(
5198
+ const va = ot(
5192
5199
  "rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
5193
5200
  {
5194
5201
  variants: {
@@ -5202,27 +5209,27 @@ const ba = ot(
5202
5209
  }
5203
5210
  }
5204
5211
  );
5205
- function va({
5212
+ function xa({
5206
5213
  className: e,
5207
5214
  variant: t = "default",
5208
5215
  ...o
5209
5216
  }) {
5210
5217
  return /* @__PURE__ */ c(
5211
- la,
5218
+ ca,
5212
5219
  {
5213
5220
  "data-slot": "tabs-list",
5214
5221
  "data-variant": t,
5215
- className: z(ba({ variant: t }), e),
5222
+ className: z(va({ variant: t }), e),
5216
5223
  ...o
5217
5224
  }
5218
5225
  );
5219
5226
  }
5220
- function xa({
5227
+ function wa({
5221
5228
  className: e,
5222
5229
  ...t
5223
5230
  }) {
5224
5231
  return /* @__PURE__ */ c(
5225
- ca,
5232
+ da,
5226
5233
  {
5227
5234
  "data-slot": "tabs-trigger",
5228
5235
  className: z(
@@ -5236,12 +5243,12 @@ function xa({
5236
5243
  }
5237
5244
  );
5238
5245
  }
5239
- function wa({
5246
+ function ya({
5240
5247
  className: e,
5241
5248
  ...t
5242
5249
  }) {
5243
5250
  return /* @__PURE__ */ c(
5244
- da,
5251
+ ua,
5245
5252
  {
5246
5253
  "data-slot": "tabs-content",
5247
5254
  className: z("flex-1 outline-none", e),
@@ -5249,7 +5256,7 @@ function wa({
5249
5256
  }
5250
5257
  );
5251
5258
  }
5252
- function ya({
5259
+ function ka({
5253
5260
  className: e,
5254
5261
  orientation: t = "vertical",
5255
5262
  ...o
@@ -5276,28 +5283,28 @@ function ya({
5276
5283
  }
5277
5284
  );
5278
5285
  }
5279
- function ka({
5286
+ function Sa({
5280
5287
  className: e,
5281
5288
  children: t,
5282
5289
  ...o
5283
5290
  }) {
5284
5291
  return /* @__PURE__ */ T(
5285
- Js,
5292
+ Qs,
5286
5293
  {
5287
5294
  "data-slot": "scroll-area",
5288
5295
  className: z("relative", e),
5289
5296
  ...o,
5290
5297
  children: [
5291
5298
  /* @__PURE__ */ c(
5292
- Qs,
5299
+ ea,
5293
5300
  {
5294
5301
  "data-slot": "scroll-area-viewport",
5295
5302
  className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
5296
5303
  children: t
5297
5304
  }
5298
5305
  ),
5299
- /* @__PURE__ */ c(ya, {}),
5300
- /* @__PURE__ */ c(ea, {})
5306
+ /* @__PURE__ */ c(ka, {}),
5307
+ /* @__PURE__ */ c(ta, {})
5301
5308
  ]
5302
5309
  }
5303
5310
  );
@@ -5308,7 +5315,7 @@ function Ze({
5308
5315
  ...o
5309
5316
  }) {
5310
5317
  return /* @__PURE__ */ c(
5311
- Es,
5318
+ Ns,
5312
5319
  {
5313
5320
  "data-slot": "avatar",
5314
5321
  "data-size": t,
@@ -5325,7 +5332,7 @@ function Je({
5325
5332
  ...t
5326
5333
  }) {
5327
5334
  return /* @__PURE__ */ c(
5328
- Ns,
5335
+ As,
5329
5336
  {
5330
5337
  "data-slot": "avatar-image",
5331
5338
  className: z("aspect-square size-full", e),
@@ -5338,7 +5345,7 @@ function Qe({
5338
5345
  ...t
5339
5346
  }) {
5340
5347
  return /* @__PURE__ */ c(
5341
- As,
5348
+ _s,
5342
5349
  {
5343
5350
  "data-slot": "avatar-fallback",
5344
5351
  className: z(
@@ -5350,31 +5357,31 @@ function Qe({
5350
5357
  );
5351
5358
  }
5352
5359
  const qo = {
5353
- "arrow-left": xr,
5354
- calendar: Sr,
5355
- "check-circle-2": Ir,
5356
- "chevron-left": Er,
5360
+ "arrow-left": wr,
5361
+ calendar: Cr,
5362
+ "check-circle-2": Pr,
5363
+ "chevron-left": Nr,
5357
5364
  "chevron-right": Dt,
5358
- clock: Or,
5359
- "credit-card": Fr,
5360
- "external-link": Ur,
5361
- "help-circle": Tr,
5362
- info: Hr,
5365
+ clock: $r,
5366
+ "credit-card": Dr,
5367
+ "external-link": Wr,
5368
+ "help-circle": zr,
5369
+ info: jr,
5363
5370
  "loader-2": Ut,
5364
5371
  mail: Ye,
5365
- "map-pin": Gr,
5366
- "message-circle": Yr,
5372
+ "map-pin": qr,
5373
+ "message-circle": Xr,
5367
5374
  "message-square": Wt,
5368
- package: Zr,
5369
- phone: Qr,
5370
- search: tn,
5371
- "shopping-bag": rn,
5372
- sparkles: sn,
5373
- truck: ln,
5375
+ package: Jr,
5376
+ phone: en,
5377
+ search: on,
5378
+ "shopping-bag": nn,
5379
+ sparkles: an,
5380
+ truck: cn,
5374
5381
  user: Ht,
5375
- "x-circle": Mr,
5376
- "alert-circle": _r,
5377
- "book-open": yr
5382
+ "x-circle": Lr,
5383
+ "alert-circle": Rr,
5384
+ "book-open": kr
5378
5385
  }, Rt = {
5379
5386
  0: "gap-0",
5380
5387
  1: "gap-1",
@@ -5386,14 +5393,14 @@ const qo = {
5386
5393
  8: "gap-8",
5387
5394
  10: "gap-10",
5388
5395
  12: "gap-12"
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(
5396
+ }, Yo = (e) => typeof e == "number" ? Rt[String(e)] ?? "gap-2" : typeof e == "string" ? Rt[e.trim()] ?? "gap-2" : "gap-2", Ca = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
5390
5397
  me,
5391
5398
  {
5392
5399
  className: t,
5393
5400
  onClick: o,
5394
5401
  children: e
5395
5402
  }
5396
- ), Ca = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(Qn, { className: t, children: e }), Na = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
5403
+ ), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), Na = ({ children: e, className: t }) => /* @__PURE__ */ c(es, { className: t, children: e }), Aa = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
5397
5404
  Go,
5398
5405
  {
5399
5406
  className: t,
@@ -5404,30 +5411,30 @@ const qo = {
5404
5411
  title: a,
5405
5412
  children: e
5406
5413
  }
5407
- ), Aa = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
5408
- ma,
5414
+ ), _a = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
5415
+ pa,
5409
5416
  {
5410
5417
  className: t,
5411
5418
  variant: o,
5412
5419
  children: e
5413
5420
  }
5414
- ), _a = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5415
- pa,
5421
+ ), Ra = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
5422
+ ha,
5416
5423
  {
5417
5424
  className: e,
5418
5425
  onChange: t,
5419
5426
  ...o
5420
5427
  }
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 }) => {
5428
+ ), Ia = ({ className: e }) => /* @__PURE__ */ c(ga, { className: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(ba, { className: t, children: e }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(xa, { className: t, children: e }), za = ({ children: e, className: t }) => /* @__PURE__ */ c(wa, { className: t, value: "", children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c(ya, { className: t, value: "", children: e }), La = ({ children: e, className: t }) => /* @__PURE__ */ c(Sa, { className: t, children: e }), Oa = ({ children: e, className: t }) => /* @__PURE__ */ c(Ze, { className: t, children: e }), $a = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), Fa = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Da = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: z("text-sm", t), children: e }), Ua = ({ children: e, className: t, level: o }) => {
5422
5429
  const r = `h${o || "2"}`;
5423
5430
  return /* @__PURE__ */ c(r, { className: z("font-semibold tracking-tight", t), children: e });
5424
- }, Ua = ({ children: e, className: t, direction: o, gap: r }) => {
5431
+ }, Wa = ({ children: e, className: t, direction: o, gap: r }) => {
5425
5432
  const n = o === "row" ? "flex-row" : "flex-col", s = Yo(r);
5426
5433
  return /* @__PURE__ */ c("div", { className: z("flex", n, s, t), children: e });
5427
- }, Wa = ({ children: e, className: t, gap: o }) => {
5434
+ }, Ha = ({ children: e, className: t, gap: o }) => {
5428
5435
  const r = Yo(o);
5429
5436
  return /* @__PURE__ */ c("div", { className: z("flex flex-row items-center", r, t), children: e });
5430
- }, Ha = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5437
+ }, ja = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
5431
5438
  "a",
5432
5439
  {
5433
5440
  href: o,
@@ -5436,10 +5443,10 @@ const qo = {
5436
5443
  className: t,
5437
5444
  children: e
5438
5445
  }
5439
- ), ja = ({ title: e, children: t, className: o }) => /* @__PURE__ */ T(me, { className: z("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5446
+ ), Va = ({ title: e, children: t, className: o }) => /* @__PURE__ */ T(me, { className: z("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
5440
5447
  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
5448
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
5442
- ] }), Va = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5449
+ ] }), Ba = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
5443
5450
  const s = e, a = "size-5", i = s ? qo[s] : null;
5444
5451
  return /* @__PURE__ */ T(
5445
5452
  "button",
@@ -5457,33 +5464,33 @@ const qo = {
5457
5464
  ]
5458
5465
  }
5459
5466
  );
5460
- }, Ba = ({ name: e, size: t, className: o }) => {
5467
+ }, Ga = ({ name: e, size: t, className: o }) => {
5461
5468
  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
5469
  return a ? /* @__PURE__ */ c(a, { className: z(n, i, o) }) : /* @__PURE__ */ c("span", { className: z("inline-block", n, i, o), "data-icon": s });
5463
- }, Ga = () => ({
5464
- "ui-card": Sa,
5465
- "ui-card-content": Ca,
5466
- "ui-card-header": Ea,
5467
- "ui-button": Na,
5468
- "ui-text": Fa,
5469
- "ui-heading": Da,
5470
- "ui-badge": Aa,
5471
- "ui-input": _a,
5472
- "ui-stack": Ua,
5473
- "ui-inline": Wa,
5474
- "ui-separator": Ra,
5475
- "ui-tabs": Ia,
5476
- "ui-tabs-list": Pa,
5477
- "ui-tabs-trigger": Ta,
5478
- "ui-tabs-content": za,
5479
- "ui-scroll-area": Ma,
5480
- "ui-avatar": La,
5481
- "ui-avatar-image": Oa,
5482
- "ui-avatar-fallback": $a,
5483
- "ui-icon": Ba,
5484
- "ui-link": Ha,
5485
- "ui-menu-item": Va,
5486
- "ui-menu": ja
5470
+ }, qa = () => ({
5471
+ "ui-card": Ca,
5472
+ "ui-card-content": Ea,
5473
+ "ui-card-header": Na,
5474
+ "ui-button": Aa,
5475
+ "ui-text": Da,
5476
+ "ui-heading": Ua,
5477
+ "ui-badge": _a,
5478
+ "ui-input": Ra,
5479
+ "ui-stack": Wa,
5480
+ "ui-inline": Ha,
5481
+ "ui-separator": Ia,
5482
+ "ui-tabs": Pa,
5483
+ "ui-tabs-list": Ta,
5484
+ "ui-tabs-trigger": za,
5485
+ "ui-tabs-content": Ma,
5486
+ "ui-scroll-area": La,
5487
+ "ui-avatar": Oa,
5488
+ "ui-avatar-image": $a,
5489
+ "ui-avatar-fallback": Fa,
5490
+ "ui-icon": Ga,
5491
+ "ui-link": ja,
5492
+ "ui-menu-item": Ba,
5493
+ "ui-menu": Va
5487
5494
  }), It = "/api/ecommerce", Xo = async (e, t) => {
5488
5495
  const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
5489
5496
  method: "POST",
@@ -5493,26 +5500,26 @@ const qo = {
5493
5500
  if (!r.ok)
5494
5501
  throw new Error(n.error || "API request failed");
5495
5502
  return n.data;
5496
- }, qa = ({ className: e }) => /* @__PURE__ */ T("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5503
+ }, Ya = ({ className: e }) => /* @__PURE__ */ T("svg", { width: "100%", height: "100%", viewBox: "0 0 190 190", version: "1.1", className: e, children: [
5497
5504
  /* @__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
5505
  /* @__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
5506
  /* @__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)" }) }),
5500
5507
  /* @__PURE__ */ c("g", { transform: "matrix(1,0,0,1,-160.365,27.97)", children: /* @__PURE__ */ c("path", { d: "M210.68,67.03C210.68,79.37 220.68,89.37 233.03,89.37C245.38,89.37 255.37,79.37 255.37,67.03L210.68,67.03Z", fill: "rgb(252,248,161)" }) })
5501
- ] }), Pt = "stackable-dev-badge-styles", Ya = () => {
5508
+ ] }), Pt = "stackable-dev-badge-styles", Xa = () => {
5502
5509
  if (typeof document > "u" || document.getElementById(Pt)) return;
5503
5510
  const e = document.createElement("style");
5504
5511
  e.id = Pt, e.textContent = `
5505
- @keyframes stackable-logo-wiggle {
5512
+ @keyframes stackable-icon-wiggle {
5506
5513
  0% { transform: rotate(0deg); }
5507
5514
  70% { transform: rotate(200deg); }
5508
5515
  85% { transform: rotate(175deg); }
5509
5516
  100% { transform: rotate(180deg); }
5510
5517
  }
5511
5518
  `, document.head.appendChild(e);
5512
- }, Xa = ({ className: e = "", extensions: t = [] }) => {
5519
+ }, Ka = ({ className: e = "", extensions: t = [] }) => {
5513
5520
  const [o, r] = U([]), [n, s] = U(!1), [a, i] = U(!1), l = ae(null);
5514
5521
  if (B(() => {
5515
- Ya();
5522
+ Xa();
5516
5523
  }, []), B(() => {
5517
5524
  if (typeof window > "u") return;
5518
5525
  const d = () => {
@@ -5638,9 +5645,9 @@ const qo = {
5638
5645
  ref: l,
5639
5646
  style: {
5640
5647
  display: "inline-flex",
5641
- animation: a && !n ? "stackable-logo-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both" : "none"
5648
+ animation: a && !n ? "stackable-icon-wiggle 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both" : "none"
5642
5649
  },
5643
- children: /* @__PURE__ */ c(qa, { className: "w-6 h-6" })
5650
+ children: /* @__PURE__ */ c(Ya, { className: "w-6 h-6" })
5644
5651
  }
5645
5652
  ),
5646
5653
  /* @__PURE__ */ c("span", { children: "Dev Mode" }),
@@ -5683,7 +5690,7 @@ const qo = {
5683
5690
  ]
5684
5691
  }
5685
5692
  );
5686
- }, Tt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ii = ({
5693
+ }, Tt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, li = ({
5687
5694
  instanceId: e,
5688
5695
  apiBase: t,
5689
5696
  hostBase: o,
@@ -5710,7 +5717,7 @@ const qo = {
5710
5717
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${g}`), l([]), d(!0);
5711
5718
  return;
5712
5719
  }
5713
- const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = dr(x, h);
5720
+ const x = await k.json(), h = $t(typeof window < "u" ? window.location.search : ""), y = ur(x, h);
5714
5721
  l(y);
5715
5722
  } catch (k) {
5716
5723
  console.error("Failed to load extensions:", k);
@@ -5768,10 +5775,10 @@ const qo = {
5768
5775
  [t, r, o, s, a]
5769
5776
  );
5770
5777
  return u ? /* @__PURE__ */ T(he, { children: [
5771
- /* @__PURE__ */ c(ar, { extensions: i, capabilityHandlers: f, components: Ga(), children: n }),
5772
- /* @__PURE__ */ c(Xa, { extensions: i })
5778
+ /* @__PURE__ */ c(ir, { extensions: i, capabilityHandlers: f, components: qa(), children: n }),
5779
+ /* @__PURE__ */ c(Ka, { extensions: i })
5773
5780
  ] }) : null;
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(
5781
+ }, Za = { dark: "dark", light: "widget-theme-light" }, Ko = ({ 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 }) }) }), Zo = ({ onClick: e, icon: t = vr }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
5775
5782
  Go,
5776
5783
  {
5777
5784
  className: "h-12 w-12 rounded-full",
@@ -5779,7 +5786,7 @@ const qo = {
5779
5786
  onClick: e,
5780
5787
  children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
5781
5788
  }
5782
- ) }), li = ({ children: e, icon: t, theme: o }) => {
5789
+ ) }), ci = ({ children: e, icon: t, theme: o }) => {
5783
5790
  const [r, n] = U(!1);
5784
5791
  return /* @__PURE__ */ T(he, { children: [
5785
5792
  /* @__PURE__ */ c(Zo, { onClick: () => {
@@ -5787,10 +5794,10 @@ const qo = {
5787
5794
  }, icon: t }),
5788
5795
  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
5796
  ] });
5790
- }, ci = {
5797
+ }, di = {
5791
5798
  Body: Ko,
5792
5799
  Launcher: Zo
5793
- }, Za = ({ href: e, children: t }) => /* @__PURE__ */ c(
5800
+ }, Ja = ({ href: e, children: t }) => /* @__PURE__ */ c(
5794
5801
  "a",
5795
5802
  {
5796
5803
  href: e,
@@ -5799,7 +5806,7 @@ const qo = {
5799
5806
  className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
5800
5807
  children: t
5801
5808
  }
5802
- ), Ja = (e, t) => {
5809
+ ), Qa = (e, t) => {
5803
5810
  const [o, r] = U(null), [n, s] = U(!1), [a, i] = U(null);
5804
5811
  return B(() => {
5805
5812
  if (!e) {
@@ -5821,9 +5828,9 @@ const qo = {
5821
5828
  }
5822
5829
  })();
5823
5830
  }, [e, t]), { customer: o, loading: n, error: a };
5824
- }, Qa = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
5831
+ }, ei = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
5825
5832
  var l, u;
5826
- const { customer: n, loading: s, error: a } = Ja(e, o);
5833
+ const { customer: n, loading: s, error: a } = Qa(e, o);
5827
5834
  if (s)
5828
5835
  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
5836
  if (a || !n) {
@@ -5893,7 +5900,7 @@ const qo = {
5893
5900
  n.disconnect(), r == null || r.remove();
5894
5901
  };
5895
5902
  }, [e, t]);
5896
- }, ei = ({ customization: e }) => {
5903
+ }, ti = ({ customization: e }) => {
5897
5904
  const t = ae(null);
5898
5905
  return Jo("widget_conversations", t), B(() => {
5899
5906
  !window.zE || !t.current || e && window.zE("messenger:set", "customization", {
@@ -5906,7 +5913,7 @@ const qo = {
5906
5913
  className: "h-full overflow-hidden"
5907
5914
  }
5908
5915
  );
5909
- }, ti = ({ customization: e }) => {
5916
+ }, oi = ({ customization: e }) => {
5910
5917
  const t = ae(null);
5911
5918
  return Jo("widget_messages", t), B(() => {
5912
5919
  !window.zE || !t.current || e && window.zE("messenger:set", "customization", {
@@ -5919,7 +5926,7 @@ const qo = {
5919
5926
  className: "h-full overflow-hidden"
5920
5927
  }
5921
5928
  );
5922
- }, Ge = 25, qe = 75, di = ({
5929
+ }, Ge = 25, qe = 75, ui = ({
5923
5930
  header: e,
5924
5931
  buttons: t,
5925
5932
  hostBase: o,
@@ -6046,7 +6053,7 @@ const qo = {
6046
6053
  ] }),
6047
6054
  /* @__PURE__ */ T("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
6048
6055
  /* @__PURE__ */ T("div", { className: z("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
6049
- /* @__PURE__ */ c(Qa, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
6056
+ /* @__PURE__ */ c(ei, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
6050
6057
  Ce,
6051
6058
  {
6052
6059
  target: "slot.header",
@@ -6066,7 +6073,7 @@ const qo = {
6066
6073
  /* @__PURE__ */ c("div", { className: z(
6067
6074
  "h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
6068
6075
  i === "account" && "hidden"
6069
- ), children: /* @__PURE__ */ c(ei, {}) })
6076
+ ), children: /* @__PURE__ */ c(ti, {}) })
6070
6077
  ] })
6071
6078
  ]
6072
6079
  }
@@ -6078,7 +6085,7 @@ const qo = {
6078
6085
  className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
6079
6086
  style: { flexBasis: `${100 - u}%` },
6080
6087
  children: [
6081
- /* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(ti, {}) }),
6088
+ /* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(oi, {}) }),
6082
6089
  /* @__PURE__ */ T("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
6083
6090
  /* @__PURE__ */ c(
6084
6091
  Ce,
@@ -6088,7 +6095,7 @@ const qo = {
6088
6095
  className: "flex items-center gap-1",
6089
6096
  fallback: /* @__PURE__ */ T(he, { children: [
6090
6097
  /* @__PURE__ */ c("div", { children: "powered by" }),
6091
- /* @__PURE__ */ c(Za, { href: "https://zendesk.com", children: "Zendesk" })
6098
+ /* @__PURE__ */ c(Ja, { href: "https://zendesk.com", children: "Zendesk" })
6092
6099
  ] })
6093
6100
  }
6094
6101
  ),
@@ -6145,10 +6152,10 @@ const qo = {
6145
6152
  )
6146
6153
  ] })
6147
6154
  ] });
6148
- }, oi = "ze-snippet", zt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ri = (e, t = {}) => {
6155
+ }, ri = "ze-snippet", zt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, ni = (e, t = {}) => {
6149
6156
  if (typeof window > "u" || typeof document > "u" || !e)
6150
6157
  return Promise.resolve();
6151
- const { autorender: o = !1, scriptId: r = oi } = t;
6158
+ const { autorender: o = !1, scriptId: r = ri } = t;
6152
6159
  window.zEMessenger = { autorender: o };
6153
6160
  const n = document.getElementById(r);
6154
6161
  if (n) {
@@ -6160,16 +6167,16 @@ const qo = {
6160
6167
  const i = document.createElement("script");
6161
6168
  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
6169
  });
6163
- }, ui = ({ config: e }) => (B(() => {
6164
- e.snippetKey && ri(e.snippetKey, { autorender: e.autorender }).catch((t) => {
6170
+ }, fi = ({ config: e }) => (B(() => {
6171
+ e.snippetKey && ni(e.snippetKey, { autorender: e.autorender }).catch((t) => {
6165
6172
  console.error("Failed to initialize Zendesk snippet:", t);
6166
6173
  });
6167
6174
  }, [e.autorender, e.snippetKey]), null);
6168
6175
  export {
6169
- ii as ExtensionSetup,
6170
- ci as Widget,
6171
- li as WidgetComponent,
6172
- di as ZendeskMessenger,
6173
- ui as ZendeskScript,
6174
- ri as loadZendeskSnippet
6176
+ li as ExtensionSetup,
6177
+ di as Widget,
6178
+ ci as WidgetComponent,
6179
+ ui as ZendeskMessenger,
6180
+ fi as ZendeskScript,
6181
+ ni as loadZendeskSnippet
6175
6182
  };