@stackable-labs/embeddables 1.65.1 → 1.66.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
@@ -1,11 +1,11 @@
1
1
  import { jsxs as U, jsx as p, Fragment as _e } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
- import I, { createContext as Xc, useState as le, useRef as Be, useEffect as ce, useContext as Zc, createElement as pn, useMemo as Ft, forwardRef as us, useLayoutEffect as Jc, useCallback as Re } from "react";
3
+ import I, { createContext as Xc, useState as le, useRef as Be, useEffect as ce, useContext as Zc, createElement as pn, useMemo as Bt, forwardRef as us, useLayoutEffect as Jc, useCallback as Re } from "react";
4
4
  import * as Cn from "react-dom";
5
5
  import fs from "react-dom";
6
6
  const Qc = () => {
7
7
  try {
8
- return "e4b059d6-1a94-4dc7-8a67-dc9c80ac390f";
8
+ return "49b6c20a-8cce-4426-b6e2-6fe0a69d2b42";
9
9
  } catch {
10
10
  return "dev";
11
11
  }
@@ -53,7 +53,7 @@ const Qc = () => {
53
53
  !c || typeof c != "object" || !("type" in c) || ("extensionId" in c ? c.extensionId : void 0) !== e.id || (c.type === "extension-ready" && (s.ready = !0), s.messageHandlers.forEach((u) => u(c)));
54
54
  };
55
55
  return window.addEventListener("message", a), dt.set(e.id, s), s;
56
- }, Qe = (e, t) => {
56
+ }, Ue = (e, t) => {
57
57
  const n = dt.get(e);
58
58
  if (!(n != null && n.iframe.contentWindow)) {
59
59
  console.warn(`Sandbox not found for extension: ${e}`);
@@ -63,7 +63,7 @@ const Qc = () => {
63
63
  }, Ct = (e) => dt.get(e), tl = (e) => {
64
64
  const t = dt.get(e);
65
65
  t && (t.iframe.remove(), t.messageHandlers.clear(), dt.delete(e));
66
- }, ln = () => dt, ps = {
66
+ }, Lt = () => dt, ps = {
67
67
  "ui-card": {
68
68
  description: "Card container for grouping related content",
69
69
  icon: "square",
@@ -320,17 +320,17 @@ const Qc = () => {
320
320
  category: "composite",
321
321
  attributes: ["className"]
322
322
  }
323
- }, Rt = ps, Wt = Object.keys(ps), nl = Object.fromEntries(
324
- Wt.map((e) => [e, Rt[e].attributes])
323
+ }, Rt = ps, Ut = Object.keys(ps), nl = Object.fromEntries(
324
+ Ut.map((e) => [e, Rt[e].attributes])
325
325
  );
326
326
  Object.fromEntries(
327
- Wt.filter((e) => Rt[e].attributeValues).map((e) => [e, Rt[e].attributeValues])
327
+ Ut.filter((e) => Rt[e].attributeValues).map((e) => [e, Rt[e].attributeValues])
328
328
  );
329
329
  const ol = Object.fromEntries(
330
- Wt.filter((e) => Rt[e].children).map((e) => [e, Rt[e].children])
330
+ Ut.filter((e) => Rt[e].children).map((e) => [e, Rt[e].children])
331
331
  );
332
332
  Object.fromEntries(
333
- Wt.map((e) => [e, Rt[e].category])
333
+ Ut.map((e) => [e, Rt[e].category])
334
334
  );
335
335
  const rl = ["identity", "messaging"], sl = {
336
336
  "context.read": "context:read",
@@ -361,7 +361,7 @@ const il = (e) => {
361
361
  console.warn("[CapabilityRPC] raw message data:", JSON.stringify(n.data));
362
362
  const s = r.extensionId;
363
363
  if (!s || !Ct(s)) {
364
- const c = [...ln().keys()];
364
+ const c = [...Lt().keys()];
365
365
  console.warn(
366
366
  `Received capability request from unknown source (extensionId: "${s ?? "undefined"}", registered: [${c.join(", ")}], capability: ${r.capability})`
367
367
  );
@@ -377,7 +377,7 @@ const il = (e) => {
377
377
  success: !1,
378
378
  error: `Permission denied: '${i}' not granted for extension '${s}'`
379
379
  };
380
- Qe(s, c);
380
+ Ue(s, c);
381
381
  return;
382
382
  }
383
383
  try {
@@ -410,7 +410,7 @@ const il = (e) => {
410
410
  success: !0,
411
411
  data: c
412
412
  };
413
- Qe(s, d);
413
+ Ue(s, d);
414
414
  } catch (c) {
415
415
  const d = {
416
416
  type: "capability-response",
@@ -418,7 +418,7 @@ const il = (e) => {
418
418
  success: !1,
419
419
  error: c instanceof Error ? c.message : "Unknown error"
420
420
  };
421
- Qe(s, d);
421
+ Ue(s, d);
422
422
  }
423
423
  };
424
424
  return window.addEventListener("message", t), () => {
@@ -457,7 +457,7 @@ const il = (e) => {
457
457
  /* @__PURE__ */ p("div", { ref: a, style: { display: "none" } }),
458
458
  o
459
459
  ] });
460
- }, gs = () => Zc(hs), ll = (e) => Wt.includes(e), dl = (e, t = {}) => {
460
+ }, gs = () => Zc(hs), ll = (e) => Ut.includes(e), dl = (e, t = {}) => {
461
461
  const { surfaceId: n, logPrefix: o = "[NodeRenderer]" } = t, r = (s, a, i = 0) => {
462
462
  var g, b, h;
463
463
  if (s.type === "text")
@@ -521,7 +521,7 @@ const il = (e) => {
521
521
  for (const n of rl)
522
522
  delete t[n];
523
523
  return t;
524
- }, Jt = ({
524
+ }, Qt = ({
525
525
  target: e,
526
526
  context: t,
527
527
  className: n,
@@ -529,7 +529,7 @@ const il = (e) => {
529
529
  fallback: r = null,
530
530
  render: s
531
531
  }) => {
532
- const { extensions: a, components: i, ready: c } = gs(), [d, u] = le({}), l = Be(""), m = Ft(() => a.filter((v) => v.enabled && v.manifest.targets.includes(e)), [a.map((v) => v.id).join(","), e]), g = Ft(() => dl(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }), [e, i]);
532
+ const { extensions: a, components: i, ready: c } = gs(), [d, u] = le({}), l = Be(""), m = Bt(() => a.filter((v) => v.enabled && v.manifest.targets.includes(e)), [a.map((v) => v.id).join(","), e]), g = Bt(() => dl(i, { surfaceId: e, logPrefix: "[ExtensionSlot]" }), [e, i]);
533
533
  if (ce(() => {
534
534
  const v = m.map((w) => w.id).join(",");
535
535
  if (l.current !== v && (l.current = v, u({})), !c || m.length === 0)
@@ -877,7 +877,7 @@ const ye = new kl(), El = (e, t) => {
877
877
  getToasts: Pl
878
878
  });
879
879
  ml("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
880
- function Qt(e) {
880
+ function en(e) {
881
881
  return e.label !== void 0;
882
882
  }
883
883
  const Al = 3, Il = "24px", _l = "16px", vr = 4e3, Ml = 356, Ol = 14, Ll = 45, Dl = 200;
@@ -890,7 +890,7 @@ function zl(e) {
890
890
  }
891
891
  const $l = (e) => {
892
892
  var t, n, o, r, s, a, i, c, d;
893
- const { invert: u, toast: l, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: k, defaultRichColors: N, closeButton: T, style: R, cancelButtonStyle: S, actionButtonStyle: A, className: D = "", descriptionClassName: O = "", duration: H, position: V, gap: W, expandByDefault: Q, classNames: _, icons: G, closeButtonAriaLabel: E = "Close toast" } = e, [P, C] = I.useState(null), [L, F] = I.useState(null), [M, Y] = I.useState(!1), [j, ee] = I.useState(!1), [z, q] = I.useState(!1), [Z, ie] = I.useState(!1), [re, ne] = I.useState(!1), [ue, fe] = I.useState(0), [at, qe] = I.useState(0), Te = I.useRef(l.duration || H || vr), qt = I.useRef(null), be = I.useRef(null), Bc = y === 0, Hc = y + 1 <= h, xe = l.type, gt = l.dismissible !== !1, Vc = l.className || "", Wc = l.descriptionClassName || "", Kt = I.useMemo(() => v.findIndex((te) => te.toastId === l.id) || 0, [
893
+ const { invert: u, toast: l, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: w, expanded: x, removeToast: k, defaultRichColors: N, closeButton: T, style: R, cancelButtonStyle: S, actionButtonStyle: A, className: D = "", descriptionClassName: O = "", duration: H, position: V, gap: W, expandByDefault: Q, classNames: _, icons: G, closeButtonAriaLabel: E = "Close toast" } = e, [P, C] = I.useState(null), [L, F] = I.useState(null), [M, Y] = I.useState(!1), [j, ee] = I.useState(!1), [z, q] = I.useState(!1), [Z, ie] = I.useState(!1), [re, ne] = I.useState(!1), [ue, fe] = I.useState(0), [at, Ke] = I.useState(0), Te = I.useRef(l.duration || H || vr), Kt = I.useRef(null), be = I.useRef(null), Bc = y === 0, Hc = y + 1 <= h, xe = l.type, gt = l.dismissible !== !1, Vc = l.className || "", Wc = l.descriptionClassName || "", Xt = I.useMemo(() => v.findIndex((te) => te.toastId === l.id) || 0, [
894
894
  v,
895
895
  l.id
896
896
  ]), Uc = I.useMemo(() => {
@@ -902,12 +902,12 @@ const $l = (e) => {
902
902
  ]), lr = I.useMemo(() => l.duration || H || vr, [
903
903
  l.duration,
904
904
  H
905
- ]), Yn = I.useRef(0), vt = I.useRef(0), dr = I.useRef(0), bt = I.useRef(null), [jc, Gc] = V.split("-"), ur = I.useMemo(() => v.reduce((te, me, ge) => ge >= Kt ? te : te + me.height, 0), [
905
+ ]), Yn = I.useRef(0), vt = I.useRef(0), dr = I.useRef(0), bt = I.useRef(null), [jc, Gc] = V.split("-"), ur = I.useMemo(() => v.reduce((te, me, ge) => ge >= Xt ? te : te + me.height, 0), [
906
906
  v,
907
- Kt
907
+ Xt
908
908
  ]), fr = Cl(), Yc = l.invert || u, qn = xe === "loading";
909
- vt.current = I.useMemo(() => Kt * W + ur, [
910
- Kt,
909
+ vt.current = I.useMemo(() => Xt * W + ur, [
910
+ Xt,
911
911
  ur
912
912
  ]), I.useEffect(() => {
913
913
  Te.current = lr;
@@ -919,7 +919,7 @@ const $l = (e) => {
919
919
  const te = be.current;
920
920
  if (te) {
921
921
  const me = te.getBoundingClientRect().height;
922
- return qe(me), b((ge) => [
922
+ return Ke(me), b((ge) => [
923
923
  {
924
924
  toastId: l.id,
925
925
  height: me,
@@ -936,7 +936,7 @@ const $l = (e) => {
936
936
  const te = be.current, me = te.style.height;
937
937
  te.style.height = "auto";
938
938
  const ge = te.getBoundingClientRect().height;
939
- te.style.height = me, qe(ge), b((Se) => Se.find((he) => he.toastId === l.id) ? Se.map((he) => he.toastId === l.id ? {
939
+ te.style.height = me, Ke(ge), b((Se) => Se.find((he) => he.toastId === l.id) ? Se.map((he) => he.toastId === l.id ? {
940
940
  ...he,
941
941
  height: ge
942
942
  } : he) : [
@@ -957,7 +957,7 @@ const $l = (e) => {
957
957
  l.action,
958
958
  l.cancel
959
959
  ]);
960
- const Ke = I.useCallback(() => {
960
+ const Xe = I.useCallback(() => {
961
961
  ee(!0), fe(vt.current), b((te) => te.filter((me) => me.toastId !== l.id)), setTimeout(() => {
962
962
  k(l);
963
963
  }, Dl);
@@ -978,7 +978,7 @@ const $l = (e) => {
978
978
  dr.current = (/* @__PURE__ */ new Date()).getTime();
979
979
  })() : (() => {
980
980
  Te.current !== 1 / 0 && (Yn.current = (/* @__PURE__ */ new Date()).getTime(), te = setTimeout(() => {
981
- l.onAutoClose == null || l.onAutoClose.call(l, l), Ke();
981
+ l.onAutoClose == null || l.onAutoClose.call(l, l), Xe();
982
982
  }, Te.current));
983
983
  })(), () => clearTimeout(te);
984
984
  }, [
@@ -987,11 +987,11 @@ const $l = (e) => {
987
987
  l,
988
988
  xe,
989
989
  fr,
990
- Ke
990
+ Xe
991
991
  ]), I.useEffect(() => {
992
- l.delete && (Ke(), l.onDismiss == null || l.onDismiss.call(l, l));
992
+ l.delete && (Xe(), l.onDismiss == null || l.onDismiss.call(l, l));
993
993
  }, [
994
- Ke,
994
+ Xe,
995
995
  l.delete
996
996
  ]);
997
997
  function qc() {
@@ -1047,7 +1047,7 @@ const $l = (e) => {
1047
1047
  q(!1), C(null), bt.current = null;
1048
1048
  },
1049
1049
  onPointerDown: (te) => {
1050
- te.button !== 2 && (qn || !gt || (qt.current = /* @__PURE__ */ new Date(), fe(vt.current), te.target.setPointerCapture(te.pointerId), te.target.tagName !== "BUTTON" && (q(!0), bt.current = {
1050
+ te.button !== 2 && (qn || !gt || (Kt.current = /* @__PURE__ */ new Date(), fe(vt.current), te.target.setPointerCapture(te.pointerId), te.target.tagName !== "BUTTON" && (q(!0), bt.current = {
1051
1051
  x: te.clientX,
1052
1052
  y: te.clientY
1053
1053
  })));
@@ -1056,9 +1056,9 @@ const $l = (e) => {
1056
1056
  var te, me, ge;
1057
1057
  if (Z || !gt) return;
1058
1058
  bt.current = null;
1059
- const Se = Number(((te = be.current) == null ? void 0 : te.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Xt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = qt.current) == null ? void 0 : ge.getTime()), Ee = P === "x" ? Se : Xt, Zt = Math.abs(Ee) / he;
1060
- if (Math.abs(Ee) >= Ll || Zt > 0.11) {
1061
- fe(vt.current), l.onDismiss == null || l.onDismiss.call(l, l), F(P === "x" ? Se > 0 ? "right" : "left" : Xt > 0 ? "down" : "up"), Ke(), ie(!0);
1059
+ const Se = Number(((te = be.current) == null ? void 0 : te.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Zt = Number(((me = be.current) == null ? void 0 : me.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), he = (/* @__PURE__ */ new Date()).getTime() - ((ge = Kt.current) == null ? void 0 : ge.getTime()), Ee = P === "x" ? Se : Zt, Jt = Math.abs(Ee) / he;
1060
+ if (Math.abs(Ee) >= Ll || Jt > 0.11) {
1061
+ fe(vt.current), l.onDismiss == null || l.onDismiss.call(l, l), F(P === "x" ? Se > 0 ? "right" : "left" : Zt > 0 ? "down" : "up"), Xe(), ie(!0);
1062
1062
  return;
1063
1063
  } else {
1064
1064
  var Pe, Ae;
@@ -1070,8 +1070,8 @@ const $l = (e) => {
1070
1070
  var me, ge, Se;
1071
1071
  if (!bt.current || !gt || ((me = window.getSelection()) == null ? void 0 : me.toString().length) > 0) return;
1072
1072
  const he = te.clientY - bt.current.y, Ee = te.clientX - bt.current.x;
1073
- var Zt;
1074
- const Pe = (Zt = e.swipeDirections) != null ? Zt : zl(V);
1073
+ var Jt;
1074
+ const Pe = (Jt = e.swipeDirections) != null ? Jt : zl(V);
1075
1075
  !P && (Math.abs(Ee) > 1 || Math.abs(he) > 1) && C(Math.abs(Ee) > Math.abs(he) ? "x" : "y");
1076
1076
  let Ae = {
1077
1077
  x: 0,
@@ -1101,7 +1101,7 @@ const $l = (e) => {
1101
1101
  "data-close-button": !0,
1102
1102
  onClick: qn || !gt ? () => {
1103
1103
  } : () => {
1104
- Ke(), l.onDismiss == null || l.onDismiss.call(l, l);
1104
+ Xe(), l.onDismiss == null || l.onDismiss.call(l, l);
1105
1105
  },
1106
1106
  className: De(_ == null ? void 0 : _.closeButton, l == null || (o = l.classNames) == null ? void 0 : o.closeButton)
1107
1107
  }, (mr = G == null ? void 0 : G.close) != null ? mr : Sl) : null, (xe || l.icon || l.promise) && l.icon !== null && ((G == null ? void 0 : G[xe]) !== null || l.icon) ? /* @__PURE__ */ I.createElement("div", {
@@ -1116,20 +1116,20 @@ const $l = (e) => {
1116
1116
  }, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ I.createElement("div", {
1117
1117
  "data-description": "",
1118
1118
  className: De(O, Wc, _ == null ? void 0 : _.description, l == null || (i = l.classNames) == null ? void 0 : i.description)
1119
- }, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ I.isValidElement(l.cancel) ? l.cancel : l.cancel && Qt(l.cancel) ? /* @__PURE__ */ I.createElement("button", {
1119
+ }, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ I.isValidElement(l.cancel) ? l.cancel : l.cancel && en(l.cancel) ? /* @__PURE__ */ I.createElement("button", {
1120
1120
  "data-button": !0,
1121
1121
  "data-cancel": !0,
1122
1122
  style: l.cancelButtonStyle || S,
1123
1123
  onClick: (te) => {
1124
- Qt(l.cancel) && gt && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, te), Ke());
1124
+ en(l.cancel) && gt && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, te), Xe());
1125
1125
  },
1126
1126
  className: De(_ == null ? void 0 : _.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
1127
- }, l.cancel.label) : null, /* @__PURE__ */ I.isValidElement(l.action) ? l.action : l.action && Qt(l.action) ? /* @__PURE__ */ I.createElement("button", {
1127
+ }, l.cancel.label) : null, /* @__PURE__ */ I.isValidElement(l.action) ? l.action : l.action && en(l.action) ? /* @__PURE__ */ I.createElement("button", {
1128
1128
  "data-button": !0,
1129
1129
  "data-action": !0,
1130
1130
  style: l.actionButtonStyle || A,
1131
1131
  onClick: (te) => {
1132
- Qt(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, te), !te.defaultPrevented && Ke());
1132
+ en(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, te), !te.defaultPrevented && Xe());
1133
1133
  },
1134
1134
  className: De(_ == null ? void 0 : _.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
1135
1135
  }, l.action.label) : null);
@@ -2255,12 +2255,12 @@ const tu = (e, t) => {
2255
2255
  }, Su = [], pe = (e) => {
2256
2256
  const t = (n) => n[e] || Su;
2257
2257
  return t.isThemeGetter = !0, t;
2258
- }, Ms = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Os = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ku = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Eu = /\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$/, Ru = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Nu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Xe = (e) => Cu.test(e), oe = (e) => !!e && !Number.isNaN(Number(e)), Ze = (e) => !!e && Number.isInteger(Number(e)), Kn = (e) => e.endsWith("%") && oe(e.slice(0, -1)), We = (e) => ku.test(e), Ls = () => !0, Pu = (e) => (
2258
+ }, Ms = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Os = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cu = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ku = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Eu = /\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$/, Ru = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Nu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ze = (e) => Cu.test(e), oe = (e) => !!e && !Number.isNaN(Number(e)), Je = (e) => !!e && Number.isInteger(Number(e)), Kn = (e) => e.endsWith("%") && oe(e.slice(0, -1)), We = (e) => ku.test(e), Ls = () => !0, Pu = (e) => (
2259
2259
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2260
2260
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2261
2261
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2262
2262
  Eu.test(e) && !Ru.test(e)
2263
- ), zo = () => !1, Au = (e) => Nu.test(e), Iu = (e) => Tu.test(e), _u = (e) => !$(e) && !B(e), Mu = (e) => ot(e, $s, zo), $ = (e) => Ms.test(e), ct = (e) => ot(e, Fs, Pu), Er = (e) => ot(e, Hu, oe), Ou = (e) => ot(e, Hs, Ls), Lu = (e) => ot(e, Bs, zo), Rr = (e) => ot(e, Ds, zo), Du = (e) => ot(e, zs, Iu), en = (e) => ot(e, Vs, Au), B = (e) => Os.test(e), Ot = (e) => mt(e, Fs), zu = (e) => mt(e, Bs), Nr = (e) => mt(e, Ds), $u = (e) => mt(e, $s), Fu = (e) => mt(e, zs), tn = (e) => mt(e, Vs, !0), Bu = (e) => mt(e, Hs, !0), ot = (e, t, n) => {
2263
+ ), zo = () => !1, Au = (e) => Nu.test(e), Iu = (e) => Tu.test(e), _u = (e) => !$(e) && !B(e), Mu = (e) => ot(e, $s, zo), $ = (e) => Ms.test(e), ct = (e) => ot(e, Fs, Pu), Er = (e) => ot(e, Hu, oe), Ou = (e) => ot(e, Hs, Ls), Lu = (e) => ot(e, Bs, zo), Rr = (e) => ot(e, Ds, zo), Du = (e) => ot(e, zs, Iu), tn = (e) => ot(e, Vs, Au), B = (e) => Os.test(e), Ot = (e) => mt(e, Fs), zu = (e) => mt(e, Bs), Nr = (e) => mt(e, Ds), $u = (e) => mt(e, $s), Fu = (e) => mt(e, zs), nn = (e) => mt(e, Vs, !0), Bu = (e) => mt(e, Hs, !0), ot = (e, t, n) => {
2264
2264
  const o = Ms.exec(e);
2265
2265
  return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
2266
2266
  }, mt = (e, t, n = !1) => {
@@ -2285,9 +2285,9 @@ const tu = (e, t) => {
2285
2285
  "bottom-left",
2286
2286
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
2287
2287
  "left-bottom"
2288
- ], N = () => [...k(), B, $], T = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], S = () => [B, $, c], A = () => [Xe, "full", "auto", ...S()], D = () => [Ze, "none", "subgrid", B, $], O = () => ["auto", {
2289
- span: ["full", Ze, B, $]
2290
- }, Ze, B, $], H = () => [Ze, "auto", B, $], V = () => ["auto", "min", "max", "fr", B, $], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...S()], G = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], E = () => [Xe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...S()], P = () => [Xe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...S()], C = () => [e, B, $], L = () => [...k(), Nr, Rr, {
2288
+ ], N = () => [...k(), B, $], T = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], S = () => [B, $, c], A = () => [Ze, "full", "auto", ...S()], D = () => [Je, "none", "subgrid", B, $], O = () => ["auto", {
2289
+ span: ["full", Je, B, $]
2290
+ }, Je, B, $], H = () => [Je, "auto", B, $], V = () => ["auto", "min", "max", "fr", B, $], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...S()], G = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], E = () => [Ze, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...S()], P = () => [Ze, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...S()], C = () => [e, B, $], L = () => [...k(), Nr, Rr, {
2291
2291
  position: [B, $]
2292
2292
  }], F = () => ["no-repeat", {
2293
2293
  repeat: ["", "x", "y", "space", "round"]
@@ -2308,7 +2308,7 @@ const tu = (e, t) => {
2308
2308
  b,
2309
2309
  B,
2310
2310
  $
2311
- ], re = () => ["none", oe, B, $], ne = () => ["none", oe, B, $], ue = () => [oe, B, $], fe = () => [Xe, "full", ...S()];
2311
+ ], re = () => ["none", oe, B, $], ne = () => ["none", oe, B, $], ue = () => [oe, B, $], fe = () => [Ze, "full", ...S()];
2312
2312
  return {
2313
2313
  cacheSize: 500,
2314
2314
  theme: {
@@ -2341,7 +2341,7 @@ const tu = (e, t) => {
2341
2341
  * @see https://tailwindcss.com/docs/aspect-ratio
2342
2342
  */
2343
2343
  aspect: [{
2344
- aspect: ["auto", "square", Xe, $, B, v]
2344
+ aspect: ["auto", "square", Ze, $, B, v]
2345
2345
  }],
2346
2346
  /**
2347
2347
  * Container
@@ -2580,7 +2580,7 @@ const tu = (e, t) => {
2580
2580
  * @see https://tailwindcss.com/docs/z-index
2581
2581
  */
2582
2582
  z: [{
2583
- z: [Ze, "auto", B, $]
2583
+ z: [Je, "auto", B, $]
2584
2584
  }],
2585
2585
  // ------------------------
2586
2586
  // --- Flexbox and Grid ---
@@ -2590,7 +2590,7 @@ const tu = (e, t) => {
2590
2590
  * @see https://tailwindcss.com/docs/flex-basis
2591
2591
  */
2592
2592
  basis: [{
2593
- basis: [Xe, "full", "auto", i, ...S()]
2593
+ basis: [Ze, "full", "auto", i, ...S()]
2594
2594
  }],
2595
2595
  /**
2596
2596
  * Flex Direction
@@ -2611,7 +2611,7 @@ const tu = (e, t) => {
2611
2611
  * @see https://tailwindcss.com/docs/flex
2612
2612
  */
2613
2613
  flex: [{
2614
- flex: [oe, Xe, "auto", "initial", "none", $]
2614
+ flex: [oe, Ze, "auto", "initial", "none", $]
2615
2615
  }],
2616
2616
  /**
2617
2617
  * Flex Grow
@@ -2632,7 +2632,7 @@ const tu = (e, t) => {
2632
2632
  * @see https://tailwindcss.com/docs/order
2633
2633
  */
2634
2634
  order: [{
2635
- order: [Ze, "first", "last", "none", B, $]
2635
+ order: [Je, "first", "last", "none", B, $]
2636
2636
  }],
2637
2637
  /**
2638
2638
  * Grid Template Columns
@@ -3387,9 +3387,9 @@ const tu = (e, t) => {
3387
3387
  bg: ["none", {
3388
3388
  linear: [{
3389
3389
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
3390
- }, Ze, B, $],
3390
+ }, Je, B, $],
3391
3391
  radial: ["", B, $],
3392
- conic: [Ze, B, $]
3392
+ conic: [Je, B, $]
3393
3393
  }, Fu, Du]
3394
3394
  }],
3395
3395
  /**
@@ -3789,8 +3789,8 @@ const tu = (e, t) => {
3789
3789
  "",
3790
3790
  "none",
3791
3791
  u,
3792
- tn,
3793
- en
3792
+ nn,
3793
+ tn
3794
3794
  ]
3795
3795
  }],
3796
3796
  /**
@@ -3805,7 +3805,7 @@ const tu = (e, t) => {
3805
3805
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
3806
3806
  */
3807
3807
  "inset-shadow": [{
3808
- "inset-shadow": ["none", l, tn, en]
3808
+ "inset-shadow": ["none", l, nn, tn]
3809
3809
  }],
3810
3810
  /**
3811
3811
  * Inset Box Shadow Color
@@ -3872,7 +3872,7 @@ const tu = (e, t) => {
3872
3872
  * @see https://tailwindcss.com/docs/text-shadow
3873
3873
  */
3874
3874
  "text-shadow": [{
3875
- "text-shadow": ["none", m, tn, en]
3875
+ "text-shadow": ["none", m, nn, tn]
3876
3876
  }],
3877
3877
  /**
3878
3878
  * Text Shadow Color
@@ -4145,8 +4145,8 @@ const tu = (e, t) => {
4145
4145
  "",
4146
4146
  "none",
4147
4147
  g,
4148
- tn,
4149
- en
4148
+ nn,
4149
+ tn
4150
4150
  ]
4151
4151
  }],
4152
4152
  /**
@@ -4896,7 +4896,7 @@ const tu = (e, t) => {
4896
4896
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4897
4897
  };
4898
4898
  }, Wu = /* @__PURE__ */ xu(Vu), K = (...e) => Wu(Ts(e));
4899
- function zt({ className: e, ...t }) {
4899
+ function $t({ className: e, ...t }) {
4900
4900
  return /* @__PURE__ */ p(
4901
4901
  "div",
4902
4902
  {
@@ -4922,7 +4922,7 @@ function Uu({ className: e, ...t }) {
4922
4922
  }
4923
4923
  );
4924
4924
  }
4925
- function $t({ className: e, ...t }) {
4925
+ function Ft({ className: e, ...t }) {
4926
4926
  return /* @__PURE__ */ p(
4927
4927
  "div",
4928
4928
  {
@@ -4987,7 +4987,7 @@ function ae(...e) {
4987
4987
  return f.useCallback(Ws(...e), e);
4988
4988
  }
4989
4989
  // @__NO_SIDE_EFFECTS__
4990
- function Bt(e) {
4990
+ function Ht(e) {
4991
4991
  const t = /* @__PURE__ */ ju(e), n = f.forwardRef((o, r) => {
4992
4992
  const { children: s, ...a } = o, i = f.Children.toArray(s), c = i.find(Yu);
4993
4993
  if (c) {
@@ -4998,7 +4998,7 @@ function Bt(e) {
4998
4998
  });
4999
4999
  return n.displayName = `${e}.Slot`, n;
5000
5000
  }
5001
- var Us = /* @__PURE__ */ Bt("Slot");
5001
+ var Us = /* @__PURE__ */ Ht("Slot");
5002
5002
  // @__NO_SIDE_EFFECTS__
5003
5003
  function ju(e) {
5004
5004
  const t = f.forwardRef((n, o) => {
@@ -5055,7 +5055,7 @@ var Xu = [
5055
5055
  "svg",
5056
5056
  "ul"
5057
5057
  ], X = Xu.reduce((e, t) => {
5058
- const n = /* @__PURE__ */ Bt(`Primitive.${t}`), o = f.forwardRef((r, s) => {
5058
+ const n = /* @__PURE__ */ Ht(`Primitive.${t}`), o = f.forwardRef((r, s) => {
5059
5059
  const { asChild: a, ...i } = r, c = a ? n : t;
5060
5060
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...i, ref: s });
5061
5061
  });
@@ -5147,14 +5147,14 @@ function qs(e) {
5147
5147
  return /* @__PURE__ */ p(r, { scope: v, itemMap: x, collectionRef: w, children: y });
5148
5148
  };
5149
5149
  a.displayName = t;
5150
- const i = e + "CollectionSlot", c = /* @__PURE__ */ Bt(i), d = I.forwardRef(
5150
+ const i = e + "CollectionSlot", c = /* @__PURE__ */ Ht(i), d = I.forwardRef(
5151
5151
  (h, v) => {
5152
5152
  const { scope: y, children: w } = h, x = s(i, y), k = ae(v, x.collectionRef);
5153
5153
  return /* @__PURE__ */ p(c, { ref: k, children: w });
5154
5154
  }
5155
5155
  );
5156
5156
  d.displayName = i;
5157
- const u = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ Bt(u), g = I.forwardRef(
5157
+ const u = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ Ht(u), g = I.forwardRef(
5158
5158
  (h, v) => {
5159
5159
  const { scope: y, children: w, ...x } = h, k = I.useRef(null), N = ae(v, k), T = s(u, y);
5160
5160
  return I.useEffect(() => (T.itemMap.set(k, { ref: k, ...x }), () => void T.itemMap.delete(k))), /* @__PURE__ */ p(m, { [l]: "", ref: N, children: w });
@@ -5186,7 +5186,7 @@ function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
5186
5186
  }
5187
5187
  var de = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
5188
5188
  }, tf = f[" useInsertionEffect ".trim().toString()] || de;
5189
- function Ue({
5189
+ function je({
5190
5190
  prop: e,
5191
5191
  defaultProp: t,
5192
5192
  onChange: n = () => {
@@ -5257,19 +5257,19 @@ function sf(e) {
5257
5257
  }
5258
5258
  });
5259
5259
  return f.useEffect(() => {
5260
- const d = nn(o.current);
5260
+ const d = on(o.current);
5261
5261
  s.current = i === "mounted" ? d : "none";
5262
5262
  }, [i]), de(() => {
5263
5263
  const d = o.current, u = r.current;
5264
5264
  if (u !== e) {
5265
- const m = s.current, g = nn(d);
5265
+ const m = s.current, g = on(d);
5266
5266
  e ? c("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? c("UNMOUNT") : c(u && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
5267
5267
  }
5268
5268
  }, [e, c]), de(() => {
5269
5269
  if (t) {
5270
5270
  let d;
5271
5271
  const u = t.ownerDocument.defaultView ?? window, l = (g) => {
5272
- const h = nn(o.current).includes(CSS.escape(g.animationName));
5272
+ const h = on(o.current).includes(CSS.escape(g.animationName));
5273
5273
  if (g.target === t && h && (c("ANIMATION_END"), !r.current)) {
5274
5274
  const v = t.style.animationFillMode;
5275
5275
  t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
@@ -5277,7 +5277,7 @@ function sf(e) {
5277
5277
  });
5278
5278
  }
5279
5279
  }, m = (g) => {
5280
- g.target === t && (s.current = nn(o.current));
5280
+ g.target === t && (s.current = on(o.current));
5281
5281
  };
5282
5282
  return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
5283
5283
  u.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
@@ -5291,7 +5291,7 @@ function sf(e) {
5291
5291
  }, [])
5292
5292
  };
5293
5293
  }
5294
- function nn(e) {
5294
+ function on(e) {
5295
5295
  return (e == null ? void 0 : e.animationName) || "none";
5296
5296
  }
5297
5297
  function af(e) {
@@ -5316,7 +5316,7 @@ var Rn = "Collapsible", [df] = we(Rn), [uf, $o] = df(Rn), Ks = f.forwardRef(
5316
5316
  disabled: s,
5317
5317
  onOpenChange: a,
5318
5318
  ...i
5319
- } = e, [c, d] = Ue({
5319
+ } = e, [c, d] = je({
5320
5320
  prop: o,
5321
5321
  defaultProp: r ?? !1,
5322
5322
  onChange: a,
@@ -5408,7 +5408,7 @@ function Bo(e) {
5408
5408
  return e ? "open" : "closed";
5409
5409
  }
5410
5410
  var pf = Ks, mf = f.createContext(void 0);
5411
- function Ut(e) {
5411
+ function jt(e) {
5412
5412
  const t = f.useContext(mf);
5413
5413
  return e || t || "ltr";
5414
5414
  }
@@ -5567,15 +5567,15 @@ var Xn = "focusScope.autoFocusOnMount", Zn = "focusScope.autoFocusOnUnmount", Mr
5567
5567
  let h = function(x) {
5568
5568
  if (g.paused || !i) return;
5569
5569
  const k = x.target;
5570
- i.contains(k) ? l.current = k : Je(l.current, { select: !0 });
5570
+ i.contains(k) ? l.current = k : Qe(l.current, { select: !0 });
5571
5571
  }, v = function(x) {
5572
5572
  if (g.paused || !i) return;
5573
5573
  const k = x.relatedTarget;
5574
- k !== null && (i.contains(k) || Je(l.current, { select: !0 }));
5574
+ k !== null && (i.contains(k) || Qe(l.current, { select: !0 }));
5575
5575
  }, y = function(x) {
5576
5576
  if (document.activeElement === document.body)
5577
5577
  for (const N of x)
5578
- N.removedNodes.length > 0 && Je(i);
5578
+ N.removedNodes.length > 0 && Qe(i);
5579
5579
  };
5580
5580
  document.addEventListener("focusin", h), document.addEventListener("focusout", v);
5581
5581
  const w = new MutationObserver(y);
@@ -5589,12 +5589,12 @@ var Xn = "focusScope.autoFocusOnMount", Zn = "focusScope.autoFocusOnUnmount", Mr
5589
5589
  const h = document.activeElement;
5590
5590
  if (!i.contains(h)) {
5591
5591
  const y = new CustomEvent(Xn, Mr);
5592
- i.addEventListener(Xn, d), i.dispatchEvent(y), y.defaultPrevented || (kf(Pf(na(i)), { select: !0 }), document.activeElement === h && Je(i));
5592
+ i.addEventListener(Xn, d), i.dispatchEvent(y), y.defaultPrevented || (kf(Pf(na(i)), { select: !0 }), document.activeElement === h && Qe(i));
5593
5593
  }
5594
5594
  return () => {
5595
5595
  i.removeEventListener(Xn, d), setTimeout(() => {
5596
5596
  const y = new CustomEvent(Zn, Mr);
5597
- i.addEventListener(Zn, u), i.dispatchEvent(y), y.defaultPrevented || Je(h ?? document.body, { select: !0 }), i.removeEventListener(Zn, u), Lr.remove(g);
5597
+ i.addEventListener(Zn, u), i.dispatchEvent(y), y.defaultPrevented || Qe(h ?? document.body, { select: !0 }), i.removeEventListener(Zn, u), Lr.remove(g);
5598
5598
  }, 0);
5599
5599
  };
5600
5600
  }
@@ -5605,7 +5605,7 @@ var Xn = "focusScope.autoFocusOnMount", Zn = "focusScope.autoFocusOnUnmount", Mr
5605
5605
  const v = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, y = document.activeElement;
5606
5606
  if (v && y) {
5607
5607
  const w = h.currentTarget, [x, k] = Ef(w);
5608
- x && k ? !h.shiftKey && y === k ? (h.preventDefault(), n && Je(x, { select: !0 })) : h.shiftKey && y === x && (h.preventDefault(), n && Je(k, { select: !0 })) : y === w && h.preventDefault();
5608
+ x && k ? !h.shiftKey && y === k ? (h.preventDefault(), n && Qe(x, { select: !0 })) : h.shiftKey && y === x && (h.preventDefault(), n && Qe(k, { select: !0 })) : y === w && h.preventDefault();
5609
5609
  }
5610
5610
  },
5611
5611
  [n, o, g.paused]
@@ -5616,7 +5616,7 @@ ta.displayName = Cf;
5616
5616
  function kf(e, { select: t = !1 } = {}) {
5617
5617
  const n = document.activeElement;
5618
5618
  for (const o of e)
5619
- if (Je(o, { select: t }), document.activeElement !== n) return;
5619
+ if (Qe(o, { select: t }), document.activeElement !== n) return;
5620
5620
  }
5621
5621
  function Ef(e) {
5622
5622
  const t = na(e), n = Or(t, e), o = Or(t.reverse(), e);
@@ -5648,7 +5648,7 @@ function Rf(e, { upTo: t }) {
5648
5648
  function Nf(e) {
5649
5649
  return e instanceof HTMLInputElement && "select" in e;
5650
5650
  }
5651
- function Je(e, { select: t = !1 } = {}) {
5651
+ function Qe(e, { select: t = !1 } = {}) {
5652
5652
  if (e && e.focus) {
5653
5653
  const n = document.activeElement;
5654
5654
  e.focus({ preventScroll: !0 }), e !== n && Nf(e) && t && e.select();
@@ -5990,12 +5990,12 @@ var Gf = function() {
5990
5990
  }, vo = !1;
5991
5991
  if (typeof window < "u")
5992
5992
  try {
5993
- var on = Object.defineProperty({}, "passive", {
5993
+ var rn = Object.defineProperty({}, "passive", {
5994
5994
  get: function() {
5995
5995
  return vo = !0, !0;
5996
5996
  }
5997
5997
  });
5998
- window.addEventListener("test", on, on), window.removeEventListener("test", on, on);
5998
+ window.addEventListener("test", rn, rn), window.removeEventListener("test", rn, rn);
5999
5999
  } catch {
6000
6000
  vo = !1;
6001
6001
  }
@@ -6062,7 +6062,7 @@ var wt = vo ? { passive: !1 } : !1, tp = function(e) {
6062
6062
  c && (t.contains(i) || t === i)
6063
6063
  );
6064
6064
  return (u && Math.abs(l) < 1 || !u && Math.abs(m) < 1) && (d = !0), d;
6065
- }, rn = function(e) {
6065
+ }, sn = function(e) {
6066
6066
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
6067
6067
  }, Hr = function(e) {
6068
6068
  return [e.deltaX, e.deltaY];
@@ -6096,7 +6096,7 @@ function up(e) {
6096
6096
  var i = f.useCallback(function(h, v) {
6097
6097
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
6098
6098
  return !a.current.allowPinchZoom;
6099
- var y = rn(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], k = "deltaY" in h ? h.deltaY : w[1] - y[1], N, T = h.target, R = Math.abs(x) > Math.abs(k) ? "h" : "v";
6099
+ var y = sn(h), w = n.current, x = "deltaX" in h ? h.deltaX : w[0] - y[0], k = "deltaY" in h ? h.deltaY : w[1] - y[1], N, T = h.target, R = Math.abs(x) > Math.abs(k) ? "h" : "v";
6100
6100
  if ("touches" in h && R === "h" && T.type === "range")
6101
6101
  return !1;
6102
6102
  var S = window.getSelection(), A = S && S.anchorNode, D = A ? A === T || A.contains(T) : !1;
@@ -6114,7 +6114,7 @@ function up(e) {
6114
6114
  }, []), c = f.useCallback(function(h) {
6115
6115
  var v = h;
6116
6116
  if (!(!xt.length || xt[xt.length - 1] !== s)) {
6117
- var y = "deltaY" in v ? Hr(v) : rn(v), w = t.current.filter(function(N) {
6117
+ var y = "deltaY" in v ? Hr(v) : sn(v), w = t.current.filter(function(N) {
6118
6118
  return N.name === v.type && (N.target === v.target || v.target === N.shadowParent) && cp(N.delta, y);
6119
6119
  })[0];
6120
6120
  if (w && w.should) {
@@ -6136,11 +6136,11 @@ function up(e) {
6136
6136
  });
6137
6137
  }, 1);
6138
6138
  }, []), u = f.useCallback(function(h) {
6139
- n.current = rn(h), o.current = void 0;
6139
+ n.current = sn(h), o.current = void 0;
6140
6140
  }, []), l = f.useCallback(function(h) {
6141
6141
  d(h.type, Hr(h), h.target, i(h, e.lockRef.current));
6142
6142
  }, []), m = f.useCallback(function(h) {
6143
- d(h.type, rn(h), h.target, i(h, e.lockRef.current));
6143
+ d(h.type, sn(h), h.target, i(h, e.lockRef.current));
6144
6144
  }, []);
6145
6145
  f.useEffect(function() {
6146
6146
  return xt.push(s), e.setCallbacks({
@@ -6176,7 +6176,7 @@ var mp = function(e) {
6176
6176
  return null;
6177
6177
  var t = Array.isArray(e) ? e[0] : e;
6178
6178
  return t.ownerDocument.body;
6179
- }, St = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), an = {}, no = 0, ua = function(e) {
6179
+ }, St = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), cn = {}, no = 0, ua = function(e) {
6180
6180
  return e && (e.host || ua(e.parentNode));
6181
6181
  }, hp = function(e, t) {
6182
6182
  return t.map(function(n) {
@@ -6189,8 +6189,8 @@ var mp = function(e) {
6189
6189
  });
6190
6190
  }, gp = function(e, t, n, o) {
6191
6191
  var r = hp(t, Array.isArray(e) ? e : [e]);
6192
- an[n] || (an[n] = /* @__PURE__ */ new WeakMap());
6193
- var s = an[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(r), d = function(l) {
6192
+ cn[n] || (cn[n] = /* @__PURE__ */ new WeakMap());
6193
+ var s = cn[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(r), d = function(l) {
6194
6194
  !l || i.has(l) || (i.add(l), d(l.parentNode));
6195
6195
  };
6196
6196
  r.forEach(d);
@@ -6201,7 +6201,7 @@ var mp = function(e) {
6201
6201
  else
6202
6202
  try {
6203
6203
  var g = m.getAttribute(o), b = g !== null && g !== "false", h = (St.get(m) || 0) + 1, v = (s.get(m) || 0) + 1;
6204
- St.set(m, h), s.set(m, v), a.push(m), h === 1 && b && sn.set(m, !0), v === 1 && m.setAttribute(n, "true"), b || m.setAttribute(o, "true");
6204
+ St.set(m, h), s.set(m, v), a.push(m), h === 1 && b && an.set(m, !0), v === 1 && m.setAttribute(n, "true"), b || m.setAttribute(o, "true");
6205
6205
  } catch (y) {
6206
6206
  console.error("aria-hidden: cannot operate on ", m, y);
6207
6207
  }
@@ -6210,8 +6210,8 @@ var mp = function(e) {
6210
6210
  return u(t), i.clear(), no++, function() {
6211
6211
  a.forEach(function(l) {
6212
6212
  var m = St.get(l) - 1, g = s.get(l) - 1;
6213
- St.set(l, m), s.set(l, g), m || (sn.has(l) || l.removeAttribute(o), sn.delete(l)), g || l.removeAttribute(n);
6214
- }), no--, no || (St = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), an = {});
6213
+ St.set(l, m), s.set(l, g), m || (an.has(l) || l.removeAttribute(o), an.delete(l)), g || l.removeAttribute(n);
6214
+ }), no--, no || (St = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), cn = {});
6215
6215
  };
6216
6216
  }, vp = function(e, t, n) {
6217
6217
  n === void 0 && (n = "data-aria-hidden");
@@ -6387,7 +6387,7 @@ function Ip(e) {
6387
6387
  value: u = "on",
6388
6388
  // @ts-expect-error
6389
6389
  internal_do_not_use_render: l
6390
- } = e, [m, g] = Ue({
6390
+ } = e, [m, g] = je({
6391
6391
  prop: n,
6392
6392
  defaultProp: r ?? !1,
6393
6393
  onChange: c,
@@ -6601,7 +6601,7 @@ function et(e) {
6601
6601
  function Ea(e) {
6602
6602
  return et(e) ? "indeterminate" : e ? "checked" : "unchecked";
6603
6603
  }
6604
- const Mp = ["top", "right", "bottom", "left"], tt = Math.min, Ce = Math.max, hn = Math.round, cn = Math.floor, Fe = (e) => ({
6604
+ const Mp = ["top", "right", "bottom", "left"], tt = Math.min, Ce = Math.max, hn = Math.round, ln = Math.floor, Fe = (e) => ({
6605
6605
  x: e,
6606
6606
  y: e
6607
6607
  }), Op = {
@@ -6613,10 +6613,10 @@ const Mp = ["top", "right", "bottom", "left"], tt = Math.min, Ce = Math.max, hn
6613
6613
  function bo(e, t, n) {
6614
6614
  return Ce(e, tt(t, n));
6615
6615
  }
6616
- function je(e, t) {
6616
+ function Ge(e, t) {
6617
6617
  return typeof e == "function" ? e(t) : e;
6618
6618
  }
6619
- function Ge(e) {
6619
+ function Ye(e) {
6620
6620
  return e.split("-")[0];
6621
6621
  }
6622
6622
  function At(e) {
@@ -6663,11 +6663,11 @@ function Fp(e, t, n) {
6663
6663
  }
6664
6664
  function Bp(e, t, n, o) {
6665
6665
  const r = At(e);
6666
- let s = Fp(Ge(e), n === "start", o);
6666
+ let s = Fp(Ye(e), n === "start", o);
6667
6667
  return r && (s = s.map((a) => a + "-" + r), t && (s = s.concat(s.map(yo)))), s;
6668
6668
  }
6669
6669
  function gn(e) {
6670
- const t = Ge(e);
6670
+ const t = Ye(e);
6671
6671
  return Op[t] + e.slice(t.length);
6672
6672
  }
6673
6673
  function Hp(e) {
@@ -6710,7 +6710,7 @@ function qr(e, t, n) {
6710
6710
  reference: o,
6711
6711
  floating: r
6712
6712
  } = e;
6713
- const s = $e(t), a = Yo(t), i = Go(a), c = Ge(t), d = s === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, m = o[i] / 2 - r[i] / 2;
6713
+ const s = $e(t), a = Yo(t), i = Go(a), c = Ye(t), d = s === "y", u = o.x + o.width / 2 - r.width / 2, l = o.y + o.height / 2 - r.height / 2, m = o[i] / 2 - r[i] / 2;
6714
6714
  let g;
6715
6715
  switch (c) {
6716
6716
  case "top":
@@ -6769,7 +6769,7 @@ async function Vp(e, t) {
6769
6769
  elementContext: l = "floating",
6770
6770
  altBoundary: m = !1,
6771
6771
  padding: g = 0
6772
- } = je(t, e), b = Ra(g), v = i[m ? l === "floating" ? "reference" : "floating" : l], y = vn(await s.getClippingRect({
6772
+ } = Ge(t, e), b = Ra(g), v = i[m ? l === "floating" ? "reference" : "floating" : l], y = vn(await s.getClippingRect({
6773
6773
  element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
6774
6774
  boundary: d,
6775
6775
  rootBoundary: u,
@@ -6877,7 +6877,7 @@ const Wp = 50, Up = async (e, t, n) => {
6877
6877
  } = t, {
6878
6878
  element: d,
6879
6879
  padding: u = 0
6880
- } = je(e, t) || {};
6880
+ } = Ge(e, t) || {};
6881
6881
  if (d == null)
6882
6882
  return {};
6883
6883
  const l = Ra(u), m = {
@@ -6920,10 +6920,10 @@ const Wp = 50, Up = async (e, t, n) => {
6920
6920
  fallbackAxisSideDirection: b = "none",
6921
6921
  flipAlignment: h = !0,
6922
6922
  ...v
6923
- } = je(e, t);
6923
+ } = Ge(e, t);
6924
6924
  if ((n = s.arrow) != null && n.alignmentOffset)
6925
6925
  return {};
6926
- const y = Ge(r), w = $e(i), x = Ge(i) === i, k = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), N = m || (x || !h ? [gn(i)] : Dp(i)), T = b !== "none";
6926
+ const y = Ye(r), w = $e(i), x = Ye(i) === i, k = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), N = m || (x || !h ? [gn(i)] : Dp(i)), T = b !== "none";
6927
6927
  !m && T && N.push(...Bp(i, h, b, k));
6928
6928
  const R = [i, ...N], S = await c.detectOverflow(t, v), A = [];
6929
6929
  let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
@@ -7003,7 +7003,7 @@ const Yp = function(e) {
7003
7003
  } = t, {
7004
7004
  strategy: r = "referenceHidden",
7005
7005
  ...s
7006
- } = je(e, t);
7006
+ } = Ge(e, t);
7007
7007
  switch (r) {
7008
7008
  case "referenceHidden": {
7009
7009
  const a = await o.detectOverflow(t, {
@@ -7040,7 +7040,7 @@ async function qp(e, t) {
7040
7040
  placement: n,
7041
7041
  platform: o,
7042
7042
  elements: r
7043
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ge(n), i = At(n), c = $e(n) === "y", d = Na.has(a) ? -1 : 1, u = s && c ? -1 : 1, l = je(t, e);
7043
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = Ye(n), i = At(n), c = $e(n) === "y", d = Na.has(a) ? -1 : 1, u = s && c ? -1 : 1, l = Ge(t, e);
7044
7044
  let {
7045
7045
  mainAxis: m,
7046
7046
  crossAxis: g,
@@ -7110,10 +7110,10 @@ const Kp = function(e) {
7110
7110
  }
7111
7111
  },
7112
7112
  ...d
7113
- } = je(e, t), u = {
7113
+ } = Ge(e, t), u = {
7114
7114
  x: n,
7115
7115
  y: o
7116
- }, l = await s.detectOverflow(t, d), m = $e(Ge(r)), g = jo(m);
7116
+ }, l = await s.detectOverflow(t, d), m = $e(Ye(r)), g = jo(m);
7117
7117
  let b = u[g], h = u[m];
7118
7118
  if (a) {
7119
7119
  const y = g === "y" ? "top" : "left", w = g === "y" ? "bottom" : "right", x = b + l[y], k = b - l[w];
@@ -7155,12 +7155,12 @@ const Kp = function(e) {
7155
7155
  offset: i = 0,
7156
7156
  mainAxis: c = !0,
7157
7157
  crossAxis: d = !0
7158
- } = je(e, t), u = {
7158
+ } = Ge(e, t), u = {
7159
7159
  x: n,
7160
7160
  y: o
7161
7161
  }, l = $e(r), m = jo(l);
7162
7162
  let g = u[m], b = u[l];
7163
- const h = je(i, t), v = typeof h == "number" ? {
7163
+ const h = Ge(i, t), v = typeof h == "number" ? {
7164
7164
  mainAxis: h,
7165
7165
  crossAxis: 0
7166
7166
  } : {
@@ -7174,7 +7174,7 @@ const Kp = function(e) {
7174
7174
  }
7175
7175
  if (d) {
7176
7176
  var y, w;
7177
- const x = m === "y" ? "width" : "height", k = Na.has(Ge(r)), N = s.reference[l] - s.floating[x] + (k && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (k ? 0 : v.crossAxis), T = s.reference[l] + s.reference[x] + (k ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (k ? v.crossAxis : 0);
7177
+ const x = m === "y" ? "width" : "height", k = Na.has(Ye(r)), N = s.reference[l] - s.floating[x] + (k && ((y = a.offset) == null ? void 0 : y[l]) || 0) + (k ? 0 : v.crossAxis), T = s.reference[l] + s.reference[x] + (k ? 0 : ((w = a.offset) == null ? void 0 : w[l]) || 0) - (k ? v.crossAxis : 0);
7178
7178
  b < N ? b = N : b > T && (b = T);
7179
7179
  }
7180
7180
  return {
@@ -7198,7 +7198,7 @@ const Kp = function(e) {
7198
7198
  apply: c = () => {
7199
7199
  },
7200
7200
  ...d
7201
- } = je(e, t), u = await a.detectOverflow(t, d), l = Ge(r), m = At(r), g = $e(r) === "y", {
7201
+ } = Ge(e, t), u = await a.detectOverflow(t, d), l = Ye(r), m = At(r), g = $e(r) === "y", {
7202
7202
  width: b,
7203
7203
  height: h
7204
7204
  } = s.floating;
@@ -7244,13 +7244,13 @@ function Ta(e) {
7244
7244
  function Me(e) {
7245
7245
  return In() ? e instanceof Element || e instanceof ke(e).Element : !1;
7246
7246
  }
7247
- function Ye(e) {
7247
+ function qe(e) {
7248
7248
  return In() ? e instanceof HTMLElement || e instanceof ke(e).HTMLElement : !1;
7249
7249
  }
7250
7250
  function Zr(e) {
7251
7251
  return !In() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ke(e).ShadowRoot;
7252
7252
  }
7253
- function jt(e) {
7253
+ function Gt(e) {
7254
7254
  const {
7255
7255
  overflow: t,
7256
7256
  overflowX: n,
@@ -7282,7 +7282,7 @@ function qo(e) {
7282
7282
  }
7283
7283
  function nm(e) {
7284
7284
  let t = nt(e);
7285
- for (; Ye(t) && !Nt(t); ) {
7285
+ for (; qe(t) && !Nt(t); ) {
7286
7286
  if (qo(t))
7287
7287
  return t;
7288
7288
  if (_n(t))
@@ -7323,17 +7323,17 @@ function nt(e) {
7323
7323
  }
7324
7324
  function Pa(e) {
7325
7325
  const t = nt(e);
7326
- return Nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ye(t) && jt(t) ? t : Pa(t);
7326
+ return Nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : qe(t) && Gt(t) ? t : Pa(t);
7327
7327
  }
7328
- function Ht(e, t, n) {
7328
+ function Vt(e, t, n) {
7329
7329
  var o;
7330
7330
  t === void 0 && (t = []), n === void 0 && (n = !0);
7331
7331
  const r = Pa(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = ke(r);
7332
7332
  if (s) {
7333
7333
  const i = wo(a);
7334
- return t.concat(a, a.visualViewport || [], jt(r) ? r : [], i && n ? Ht(i) : []);
7334
+ return t.concat(a, a.visualViewport || [], Gt(r) ? r : [], i && n ? Vt(i) : []);
7335
7335
  } else
7336
- return t.concat(r, Ht(r, [], n));
7336
+ return t.concat(r, Vt(r, [], n));
7337
7337
  }
7338
7338
  function wo(e) {
7339
7339
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
@@ -7341,7 +7341,7 @@ function wo(e) {
7341
7341
  function Aa(e) {
7342
7342
  const t = Oe(e);
7343
7343
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
7344
- const r = Ye(e), s = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = hn(n) !== s || hn(o) !== a;
7344
+ const r = qe(e), s = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, i = hn(n) !== s || hn(o) !== a;
7345
7345
  return i && (n = s, o = a), {
7346
7346
  width: n,
7347
7347
  height: o,
@@ -7353,7 +7353,7 @@ function Xo(e) {
7353
7353
  }
7354
7354
  function Et(e) {
7355
7355
  const t = Xo(e);
7356
- if (!Ye(t))
7356
+ if (!qe(t))
7357
7357
  return Fe(1);
7358
7358
  const n = t.getBoundingClientRect(), {
7359
7359
  width: o,
@@ -7424,8 +7424,8 @@ function sm(e) {
7424
7424
  scrollLeft: 0,
7425
7425
  scrollTop: 0
7426
7426
  }, d = Fe(1);
7427
- const u = Fe(0), l = Ye(o);
7428
- if ((l || !l && !s) && ((It(o) !== "body" || jt(a)) && (c = Mn(o)), l)) {
7427
+ const u = Fe(0), l = qe(o);
7428
+ if ((l || !l && !s) && ((It(o) !== "body" || Gt(a)) && (c = Mn(o)), l)) {
7429
7429
  const g = ut(o);
7430
7430
  d = Et(o), u.x = g.x + o.clientLeft, u.y = g.y + o.clientTop;
7431
7431
  }
@@ -7473,7 +7473,7 @@ function cm(e, t) {
7473
7473
  };
7474
7474
  }
7475
7475
  function lm(e, t) {
7476
- const n = ut(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Ye(e) ? Et(e) : Fe(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = r * s.x, d = o * s.y;
7476
+ const n = ut(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = qe(e) ? Et(e) : Fe(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = r * s.x, d = o * s.y;
7477
7477
  return {
7478
7478
  width: a,
7479
7479
  height: i,
@@ -7508,12 +7508,12 @@ function dm(e, t) {
7508
7508
  const n = t.get(e);
7509
7509
  if (n)
7510
7510
  return n;
7511
- let o = Ht(e, [], !1).filter((i) => Me(i) && It(i) !== "body"), r = null;
7511
+ let o = Vt(e, [], !1).filter((i) => Me(i) && It(i) !== "body"), r = null;
7512
7512
  const s = Oe(e).position === "fixed";
7513
7513
  let a = s ? nt(e) : e;
7514
7514
  for (; Me(a) && !Nt(a); ) {
7515
7515
  const i = Oe(a), c = qo(a);
7516
- !c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || jt(a) && !c && Ma(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = nt(a);
7516
+ !c && i.position === "fixed" && (r = null), (s ? !c && !r : !c && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Gt(a) && !c && Ma(e, a)) ? o = o.filter((u) => u !== a) : r = i, a = nt(a);
7517
7517
  }
7518
7518
  return t.set(e, o), o;
7519
7519
  }
@@ -7548,7 +7548,7 @@ function fm(e) {
7548
7548
  };
7549
7549
  }
7550
7550
  function pm(e, t, n) {
7551
- const o = Ye(t), r = He(t), s = n === "fixed", a = ut(e, !0, s, t);
7551
+ const o = qe(t), r = He(t), s = n === "fixed", a = ut(e, !0, s, t);
7552
7552
  let i = {
7553
7553
  scrollLeft: 0,
7554
7554
  scrollTop: 0
@@ -7558,7 +7558,7 @@ function pm(e, t, n) {
7558
7558
  c.x = On(r);
7559
7559
  }
7560
7560
  if (o || !o && !s)
7561
- if ((It(t) !== "body" || jt(r)) && (i = Mn(t)), o) {
7561
+ if ((It(t) !== "body" || Gt(r)) && (i = Mn(t)), o) {
7562
7562
  const g = ut(t, !0, s, t);
7563
7563
  c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
7564
7564
  } else r && d();
@@ -7575,7 +7575,7 @@ function ao(e) {
7575
7575
  return Oe(e).position === "static";
7576
7576
  }
7577
7577
  function es(e, t) {
7578
- if (!Ye(e) || Oe(e).position === "fixed")
7578
+ if (!qe(e) || Oe(e).position === "fixed")
7579
7579
  return null;
7580
7580
  if (t)
7581
7581
  return t(e);
@@ -7586,7 +7586,7 @@ function Oa(e, t) {
7586
7586
  const n = ke(e);
7587
7587
  if (_n(e))
7588
7588
  return n;
7589
- if (!Ye(e)) {
7589
+ if (!qe(e)) {
7590
7590
  let r = nt(e);
7591
7591
  for (; r && !Nt(r); ) {
7592
7592
  if (Me(r) && !ao(r))
@@ -7647,7 +7647,7 @@ function vm(e, t) {
7647
7647
  } = d;
7648
7648
  if (i || t(), !m || !g)
7649
7649
  return;
7650
- const b = cn(l), h = cn(r.clientWidth - (u + m)), v = cn(r.clientHeight - (l + g)), y = cn(u), x = {
7650
+ const b = ln(l), h = ln(r.clientWidth - (u + m)), v = ln(r.clientHeight - (l + g)), y = ln(u), x = {
7651
7651
  rootMargin: -b + "px " + -h + "px " + -v + "px " + -y + "px",
7652
7652
  threshold: Ce(0, tt(1, c)) || 1
7653
7653
  };
@@ -7684,7 +7684,7 @@ function bm(e, t, n, o) {
7684
7684
  elementResize: a = typeof ResizeObserver == "function",
7685
7685
  layoutShift: i = typeof IntersectionObserver == "function",
7686
7686
  animationFrame: c = !1
7687
- } = o, d = Xo(e), u = r || s ? [...d ? Ht(d) : [], ...t ? Ht(t) : []] : [];
7687
+ } = o, d = Xo(e), u = r || s ? [...d ? Vt(d) : [], ...t ? Vt(t) : []] : [];
7688
7688
  u.forEach((y) => {
7689
7689
  r && y.addEventListener("scroll", n, {
7690
7690
  passive: !0
@@ -8014,9 +8014,9 @@ var Jo = "PopperContent", [Bm, Hm] = $a(Jo), Wa = f.forwardRef(
8014
8014
  c && Mm({ ...V }),
8015
8015
  Om({
8016
8016
  ...V,
8017
- apply: ({ elements: ue, rects: fe, availableWidth: at, availableHeight: qe }) => {
8018
- const { width: Te, height: qt } = fe.reference, be = ue.floating.style;
8019
- be.setProperty("--radix-popper-available-width", `${at}px`), be.setProperty("--radix-popper-available-height", `${qe}px`), be.setProperty("--radix-popper-anchor-width", `${Te}px`), be.setProperty("--radix-popper-anchor-height", `${qt}px`);
8017
+ apply: ({ elements: ue, rects: fe, availableWidth: at, availableHeight: Ke }) => {
8018
+ const { width: Te, height: Kt } = fe.reference, be = ue.floating.style;
8019
+ be.setProperty("--radix-popper-available-width", `${at}px`), be.setProperty("--radix-popper-available-height", `${Ke}px`), be.setProperty("--radix-popper-anchor-width", `${Te}px`), be.setProperty("--radix-popper-anchor-height", `${Kt}px`);
8020
8020
  }
8021
8021
  }),
8022
8022
  k && Dm({ element: k, padding: i }),
@@ -8153,13 +8153,13 @@ function Ga(e) {
8153
8153
  const [t, n = "center"] = e.split("-");
8154
8154
  return [t, n];
8155
8155
  }
8156
- var Ya = Ba, qa = Va, Ka = Wa, Xa = ja, co = "rovingFocusGroup.onEntryFocus", jm = { bubbles: !1, cancelable: !0 }, Gt = "RovingFocusGroup", [xo, Za, Gm] = qs(Gt), [Ym, Dn] = we(
8157
- Gt,
8156
+ var Ya = Ba, qa = Va, Ka = Wa, Xa = ja, co = "rovingFocusGroup.onEntryFocus", jm = { bubbles: !1, cancelable: !0 }, Yt = "RovingFocusGroup", [xo, Za, Gm] = qs(Yt), [Ym, Dn] = we(
8157
+ Yt,
8158
8158
  [Gm]
8159
- ), [qm, Km] = Ym(Gt), Ja = f.forwardRef(
8159
+ ), [qm, Km] = Ym(Yt), Ja = f.forwardRef(
8160
8160
  (e, t) => /* @__PURE__ */ p(xo.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(xo.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Xm, { ...e, ref: t }) }) })
8161
8161
  );
8162
- Ja.displayName = Gt;
8162
+ Ja.displayName = Yt;
8163
8163
  var Xm = f.forwardRef((e, t) => {
8164
8164
  const {
8165
8165
  __scopeRovingFocusGroup: n,
@@ -8172,11 +8172,11 @@ var Xm = f.forwardRef((e, t) => {
8172
8172
  onEntryFocus: d,
8173
8173
  preventScrollOnEntryFocus: u = !1,
8174
8174
  ...l
8175
- } = e, m = f.useRef(null), g = ae(t, m), b = Ut(s), [h, v] = Ue({
8175
+ } = e, m = f.useRef(null), g = ae(t, m), b = jt(s), [h, v] = je({
8176
8176
  prop: a,
8177
8177
  defaultProp: i ?? null,
8178
8178
  onChange: c,
8179
- caller: Gt
8179
+ caller: Yt
8180
8180
  }), [y, w] = f.useState(!1), x = ve(d), k = Za(n), N = f.useRef(!1), [T, R] = f.useState(0);
8181
8181
  return f.useEffect(() => {
8182
8182
  const S = m.current;
@@ -8532,7 +8532,7 @@ var hh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], zn = "RadioGroup",
8532
8532
  loop: u = !0,
8533
8533
  onValueChange: l,
8534
8534
  ...m
8535
- } = e, g = hi(n), b = Ut(d), [h, v] = Ue({
8535
+ } = e, g = hi(n), b = jt(d), [h, v] = je({
8536
8536
  prop: s,
8537
8537
  defaultProp: r ?? null,
8538
8538
  onChange: l,
@@ -8635,7 +8635,7 @@ var nr = "ScrollArea", [xi] = we(nr), [kh, Ne] = xi(nr), Si = f.forwardRef(
8635
8635
  dir: r,
8636
8636
  scrollHideDelay: s = 600,
8637
8637
  ...a
8638
- } = e, [i, c] = f.useState(null), [d, u] = f.useState(null), [l, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, k] = f.useState(0), [N, T] = f.useState(!1), [R, S] = f.useState(!1), A = ae(t, (O) => c(O)), D = Ut(r);
8638
+ } = e, [i, c] = f.useState(null), [d, u] = f.useState(null), [l, m] = f.useState(null), [g, b] = f.useState(null), [h, v] = f.useState(null), [y, w] = f.useState(0), [x, k] = f.useState(0), [N, T] = f.useState(!1), [R, S] = f.useState(!1), A = ae(t, (O) => c(O)), D = jt(r);
8639
8639
  return /* @__PURE__ */ p(
8640
8640
  kh,
8641
8641
  {
@@ -9153,12 +9153,12 @@ var Oh = Si, Lh = ki, Dh = Ai, zh = [" ", "Enter", "ArrowUp", "ArrowDown"], $h =
9153
9153
  disabled: m,
9154
9154
  required: g,
9155
9155
  form: b
9156
- } = e, h = Vn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [k, N] = f.useState(!1), T = Ut(d), [R, S] = Ue({
9156
+ } = e, h = Vn(t), [v, y] = f.useState(null), [w, x] = f.useState(null), [k, N] = f.useState(!1), T = jt(d), [R, S] = je({
9157
9157
  prop: o,
9158
9158
  defaultProp: r ?? !1,
9159
9159
  onChange: s,
9160
9160
  caller: ft
9161
- }), [A, D] = Ue({
9161
+ }), [A, D] = je({
9162
9162
  prop: a,
9163
9163
  defaultProp: i,
9164
9164
  onChange: c,
@@ -9310,7 +9310,7 @@ var pt = "SelectContent", Hi = f.forwardRef(
9310
9310
  }
9311
9311
  );
9312
9312
  Hi.displayName = pt;
9313
- var Ie = 10, [Vi, st] = _t(pt), jh = "SelectContentImpl", Gh = /* @__PURE__ */ Bt("SelectContent.RemoveScroll"), Wi = f.forwardRef(
9313
+ var Ie = 10, [Vi, st] = _t(pt), jh = "SelectContentImpl", Gh = /* @__PURE__ */ Ht("SelectContent.RemoveScroll"), Wi = f.forwardRef(
9314
9314
  (e, t) => {
9315
9315
  const {
9316
9316
  __scopeSelect: n,
@@ -9486,20 +9486,20 @@ var Yh = "SelectItemAlignedPosition", Ui = f.forwardRef((e, t) => {
9486
9486
  if (s.trigger && s.valueNode && i && d && h && v && y) {
9487
9487
  const R = s.trigger.getBoundingClientRect(), S = d.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), D = y.getBoundingClientRect();
9488
9488
  if (s.dir !== "rtl") {
9489
- const re = D.left - S.left, ne = A.left - re, ue = R.left - ne, fe = R.width + ue, at = Math.max(fe, S.width), qe = window.innerWidth - Ie, Te = So(ne, [
9489
+ const re = D.left - S.left, ne = A.left - re, ue = R.left - ne, fe = R.width + ue, at = Math.max(fe, S.width), Ke = window.innerWidth - Ie, Te = So(ne, [
9490
9490
  Ie,
9491
9491
  // Prevents the content from going off the starting edge of the
9492
9492
  // viewport. It may still go off the ending edge, but this can be
9493
9493
  // controlled by the user since they may want to manage overflow in a
9494
9494
  // specific way.
9495
9495
  // https://github.com/radix-ui/primitives/issues/2049
9496
- Math.max(Ie, qe - at)
9496
+ Math.max(Ie, Ke - at)
9497
9497
  ]);
9498
9498
  i.style.minWidth = fe + "px", i.style.left = Te + "px";
9499
9499
  } else {
9500
- const re = S.right - D.right, ne = window.innerWidth - A.right - re, ue = window.innerWidth - R.right - ne, fe = R.width + ue, at = Math.max(fe, S.width), qe = window.innerWidth - Ie, Te = So(ne, [
9500
+ const re = S.right - D.right, ne = window.innerWidth - A.right - re, ue = window.innerWidth - R.right - ne, fe = R.width + ue, at = Math.max(fe, S.width), Ke = window.innerWidth - Ie, Te = So(ne, [
9501
9501
  Ie,
9502
- Math.max(Ie, qe - at)
9502
+ Math.max(Ie, Ke - at)
9503
9503
  ]);
9504
9504
  i.style.minWidth = fe + "px", i.style.right = Te + "px";
9505
9505
  }
@@ -9766,9 +9766,9 @@ var Sn = "SelectItem", [eg, qi] = _t(Sn), Ki = f.forwardRef(
9766
9766
  }
9767
9767
  );
9768
9768
  Ki.displayName = Sn;
9769
- var Lt = "SelectItemText", Xi = f.forwardRef(
9769
+ var Dt = "SelectItemText", Xi = f.forwardRef(
9770
9770
  (e, t) => {
9771
- const { __scopeSelect: n, className: o, style: r, ...s } = e, a = rt(Lt, n), i = st(Lt, n), c = qi(Lt, n), d = Vh(Lt, n), [u, l] = f.useState(null), m = ae(
9771
+ const { __scopeSelect: n, className: o, style: r, ...s } = e, a = rt(Dt, n), i = st(Dt, n), c = qi(Dt, n), d = Vh(Dt, n), [u, l] = f.useState(null), m = ae(
9772
9772
  t,
9773
9773
  (y) => l(y),
9774
9774
  c.onItemTextChange,
@@ -9786,7 +9786,7 @@ var Lt = "SelectItemText", Xi = f.forwardRef(
9786
9786
  ] });
9787
9787
  }
9788
9788
  );
9789
- Xi.displayName = Lt;
9789
+ Xi.displayName = Dt;
9790
9790
  var Zi = "SelectItemIndicator", Ji = f.forwardRef(
9791
9791
  (e, t) => {
9792
9792
  const { __scopeSelect: n, ...o } = e;
@@ -9967,7 +9967,7 @@ var xg = ac, Wn = "Switch", [Sg] = we(Wn), [Cg, kg] = Sg(Wn), ic = f.forwardRef(
9967
9967
  onCheckedChange: d,
9968
9968
  form: u,
9969
9969
  ...l
9970
- } = e, [m, g] = f.useState(null), b = ae(t, (x) => g(x)), h = f.useRef(!1), v = m ? u || !!m.closest("form") : !0, [y, w] = Ue({
9970
+ } = e, [m, g] = f.useState(null), b = ae(t, (x) => g(x)), h = f.useRef(!1), v = m ? u || !!m.closest("form") : !0, [y, w] = je({
9971
9971
  prop: r,
9972
9972
  defaultProp: s ?? !1,
9973
9973
  onChange: d,
@@ -10083,7 +10083,7 @@ var Rg = ic, Ng = lc, Un = "Tabs", [Tg] = we(Un, [
10083
10083
  dir: i,
10084
10084
  activationMode: c = "automatic",
10085
10085
  ...d
10086
- } = e, u = Ut(i), [l, m] = Ue({
10086
+ } = e, u = jt(i), [l, m] = je({
10087
10087
  prop: o,
10088
10088
  onChange: r,
10089
10089
  defaultProp: s ?? "",
@@ -10250,7 +10250,7 @@ var Ag = pc, Ig = hc, _g = vc, Mg = yc, [jn] = we("Tooltip", [
10250
10250
  );
10251
10251
  };
10252
10252
  Cc.displayName = Sc;
10253
- var Vt = "Tooltip", [Dg, Yt] = jn(Vt), kc = (e) => {
10253
+ var Wt = "Tooltip", [Dg, qt] = jn(Wt), kc = (e) => {
10254
10254
  const {
10255
10255
  __scopeTooltip: t,
10256
10256
  children: n,
@@ -10259,13 +10259,13 @@ var Vt = "Tooltip", [Dg, Yt] = jn(Vt), kc = (e) => {
10259
10259
  onOpenChange: s,
10260
10260
  disableHoverableContent: a,
10261
10261
  delayDuration: i
10262
- } = e, c = ir(Vt, e.__scopeTooltip), d = Gn(t), [u, l] = f.useState(null), m = ht(), g = f.useRef(0), b = a ?? c.disableHoverableContent, h = i ?? c.delayDuration, v = f.useRef(!1), [y, w] = Ue({
10262
+ } = e, c = ir(Wt, e.__scopeTooltip), d = Gn(t), [u, l] = f.useState(null), m = ht(), g = f.useRef(0), b = a ?? c.disableHoverableContent, h = i ?? c.delayDuration, v = f.useRef(!1), [y, w] = je({
10263
10263
  prop: o,
10264
10264
  defaultProp: r ?? !1,
10265
10265
  onChange: (R) => {
10266
10266
  R ? (c.onOpen(), document.dispatchEvent(new CustomEvent(To))) : c.onClose(), s == null || s(R);
10267
10267
  },
10268
- caller: Vt
10268
+ caller: Wt
10269
10269
  }), x = f.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), k = f.useCallback(() => {
10270
10270
  window.clearTimeout(g.current), g.current = 0, v.current = !1, w(!0);
10271
10271
  }, [w]), N = f.useCallback(() => {
@@ -10299,10 +10299,10 @@ var Vt = "Tooltip", [Dg, Yt] = jn(Vt), kc = (e) => {
10299
10299
  }
10300
10300
  ) });
10301
10301
  };
10302
- kc.displayName = Vt;
10302
+ kc.displayName = Wt;
10303
10303
  var Po = "TooltipTrigger", Ec = f.forwardRef(
10304
10304
  (e, t) => {
10305
- const { __scopeTooltip: n, ...o } = e, r = Yt(Po, n), s = ir(Po, n), a = Gn(n), i = f.useRef(null), c = ae(t, i, r.onTriggerChange), d = f.useRef(!1), u = f.useRef(!1), l = f.useCallback(() => d.current = !1, []);
10305
+ const { __scopeTooltip: n, ...o } = e, r = qt(Po, n), s = ir(Po, n), a = Gn(n), i = f.useRef(null), c = ae(t, i, r.onTriggerChange), d = f.useRef(!1), u = f.useRef(!1), l = f.useCallback(() => d.current = !1, []);
10306
10306
  return f.useEffect(() => () => document.removeEventListener("pointerup", l), [l]), /* @__PURE__ */ p(qa, { asChild: !0, ...a, children: /* @__PURE__ */ p(
10307
10307
  X.button,
10308
10308
  {
@@ -10332,17 +10332,17 @@ Ec.displayName = Po;
10332
10332
  var cr = "TooltipPortal", [zg, $g] = jn(cr, {
10333
10333
  forceMount: void 0
10334
10334
  }), Rc = (e) => {
10335
- const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Yt(cr, t);
10335
+ const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = qt(cr, t);
10336
10336
  return /* @__PURE__ */ p(zg, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Le, { present: n || s.open, children: /* @__PURE__ */ p(Vo, { asChild: !0, container: r, children: o }) }) });
10337
10337
  };
10338
10338
  Rc.displayName = cr;
10339
10339
  var Pt = "TooltipContent", Nc = f.forwardRef(
10340
10340
  (e, t) => {
10341
- const n = $g(Pt, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a = Yt(Pt, e.__scopeTooltip);
10341
+ const n = $g(Pt, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a = qt(Pt, e.__scopeTooltip);
10342
10342
  return /* @__PURE__ */ p(Le, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ p(Tc, { side: r, ...s, ref: t }) : /* @__PURE__ */ p(Fg, { side: r, ...s, ref: t }) });
10343
10343
  }
10344
10344
  ), Fg = f.forwardRef((e, t) => {
10345
- const n = Yt(Pt, e.__scopeTooltip), o = ir(Pt, e.__scopeTooltip), r = f.useRef(null), s = ae(t, r), [a, i] = f.useState(null), { trigger: c, onClose: d } = n, u = r.current, { onPointerInTransitChange: l } = o, m = f.useCallback(() => {
10345
+ const n = qt(Pt, e.__scopeTooltip), o = ir(Pt, e.__scopeTooltip), r = f.useRef(null), s = ae(t, r), [a, i] = f.useState(null), { trigger: c, onClose: d } = n, u = r.current, { onPointerInTransitChange: l } = o, m = f.useCallback(() => {
10346
10346
  i(null), l(!1);
10347
10347
  }, [l]), g = f.useCallback(
10348
10348
  (b, h) => {
@@ -10367,7 +10367,7 @@ var Pt = "TooltipContent", Nc = f.forwardRef(
10367
10367
  return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
10368
10368
  }
10369
10369
  }, [c, u, a, d, m]), /* @__PURE__ */ p(Tc, { ...e, ref: s });
10370
- }), [Bg, Hg] = jn(Vt, { isInside: !1 }), Vg = /* @__PURE__ */ Gu("TooltipContent"), Tc = f.forwardRef(
10370
+ }), [Bg, Hg] = jn(Wt, { isInside: !1 }), Vg = /* @__PURE__ */ Gu("TooltipContent"), Tc = f.forwardRef(
10371
10371
  (e, t) => {
10372
10372
  const {
10373
10373
  __scopeTooltip: n,
@@ -10376,7 +10376,7 @@ var Pt = "TooltipContent", Nc = f.forwardRef(
10376
10376
  onEscapeKeyDown: s,
10377
10377
  onPointerDownOutside: a,
10378
10378
  ...i
10379
- } = e, c = Yt(Pt, n), d = Gn(n), { onClose: u } = c;
10379
+ } = e, c = qt(Pt, n), d = Gn(n), { onClose: u } = c;
10380
10380
  return f.useEffect(() => (document.addEventListener(To, u), () => document.removeEventListener(To, u)), [u]), f.useEffect(() => {
10381
10381
  if (c.trigger) {
10382
10382
  const l = (m) => {
@@ -11286,13 +11286,13 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11286
11286
  muted: "text-muted-foreground",
11287
11287
  destructive: "text-destructive"
11288
11288
  }, Oc = (e) => typeof e == "number" ? is[String(e)] ?? "gap-2" : typeof e == "string" ? is[e.trim()] ?? "gap-2" : "gap-2", Bv = ({ children: e, className: t, onClick: n }) => /* @__PURE__ */ p(
11289
- zt,
11289
+ $t,
11290
11290
  {
11291
11291
  className: t,
11292
11292
  onClick: n,
11293
11293
  children: e
11294
11294
  }
11295
- ), Hv = ({ children: e, className: t }) => /* @__PURE__ */ p($t, { className: t, children: e }), Vv = ({ children: e, className: t }) => /* @__PURE__ */ p(Uu, { className: t, children: e }), Wv = ({ children: e, className: t, onClick: n, variant: o, size: r, disabled: s, title: a }) => /* @__PURE__ */ p(
11295
+ ), Hv = ({ children: e, className: t }) => /* @__PURE__ */ p(Ft, { className: t, children: e }), Vv = ({ children: e, className: t }) => /* @__PURE__ */ p(Uu, { className: t, children: e }), Wv = ({ children: e, className: t, onClick: n, variant: o, size: r, disabled: s, title: a }) => /* @__PURE__ */ p(
11296
11296
  Ic,
11297
11297
  {
11298
11298
  className: t,
@@ -11465,8 +11465,8 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11465
11465
  className: t,
11466
11466
  children: e
11467
11467
  }
11468
- ), wb = ({ title: e, children: t, className: n }) => /* @__PURE__ */ U(zt, { className: K("overflow-hidden p-0 gap-0 shadow-sm", n), children: [
11469
- e ? /* @__PURE__ */ p($t, { className: "px-6 py-3", children: /* @__PURE__ */ p("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
11468
+ ), wb = ({ title: e, children: t, className: n }) => /* @__PURE__ */ U($t, { className: K("overflow-hidden p-0 gap-0 shadow-sm", n), children: [
11469
+ e ? /* @__PURE__ */ p(Ft, { className: "px-6 py-3", children: /* @__PURE__ */ p("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
11470
11470
  /* @__PURE__ */ p("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
11471
11471
  ] }), xb = ({ icon: e, label: t, description: n, onClick: o, className: r }) => {
11472
11472
  const s = e, a = "size-5", i = s ? _c[s] : null;
@@ -11779,11 +11779,11 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11779
11779
  ]
11780
11780
  }
11781
11781
  );
11782
- }, Pb = 800, Dt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, Ab = async (e, t, n, o) => {
11782
+ }, Pb = 800, zt = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, Ab = async (e, t, n, o) => {
11783
11783
  const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
11784
11784
  return await Promise.all(
11785
11785
  e.filter((a) => a.manifest.permissions.includes("data:fetch")).map(async (a) => {
11786
- const i = o.find((m) => m.extensionId === a.id), c = i == null ? void 0 : i.token, d = i == null ? void 0 : i.mode, u = Dt(t, "/proxy-token"), l = await fetch(u, {
11786
+ const i = o.find((m) => m.extensionId === a.id), c = i == null ? void 0 : i.token, d = i == null ? void 0 : i.mode, u = zt(t, "/proxy-token"), l = await fetch(u, {
11787
11787
  method: "POST",
11788
11788
  headers: { "Content-Type": "application/json" },
11789
11789
  body: JSON.stringify({
@@ -11816,7 +11816,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11816
11816
  customerEmail: a,
11817
11817
  customerName: i
11818
11818
  }) => {
11819
- const [c, d] = le([]), [u, l] = le([]), [m, g] = le(/* @__PURE__ */ new Map()), [b, h] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), [k, N] = le(void 0), T = Be(null), R = Be(/* @__PURE__ */ new Set()), S = Ft(() => c.filter((E) => E.manifest.permissions.includes("extend:identity")).map((E) => E.id), [c]);
11819
+ const [c, d] = le([]), [u, l] = le([]), [m, g] = le(/* @__PURE__ */ new Map()), [b, h] = le(/* @__PURE__ */ new Map()), [v, y] = le(!1), [w, x] = le({ authenticated: !1, user: null }), [k, N] = le(void 0), T = Be(null), R = Be(/* @__PURE__ */ new Set()), S = Bt(() => c.filter((E) => E.manifest.permissions.includes("extend:identity")).map((E) => E.id), [c]);
11820
11820
  ce(() => {
11821
11821
  (async () => {
11822
11822
  const P = e;
@@ -11829,7 +11829,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11829
11829
  console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), d([]), y(!0);
11830
11830
  return;
11831
11831
  }
11832
- const C = await fetch(Dt(n, `/instances/${o}/${P}`));
11832
+ const C = await fetch(zt(n, `/instances/${o}/${P}`));
11833
11833
  if (!C.ok) {
11834
11834
  console.warn(`[ExtensionSetup] Instance not found or failed to load: ${P}`), d([]), y(!0);
11835
11835
  return;
@@ -11849,7 +11849,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11849
11849
  const C = [];
11850
11850
  await Promise.all(
11851
11851
  c.filter((L) => L.manifest.permissions.includes("data:fetch")).map(async (L) => {
11852
- const F = u.find((z) => z.extensionId === L.id), M = F == null ? void 0 : F.token, Y = F == null ? void 0 : F.mode, j = Dt(n, "/proxy-token"), ee = await fetch(j, {
11852
+ const F = u.find((z) => z.extensionId === L.id), M = F == null ? void 0 : F.token, Y = F == null ? void 0 : F.mode, j = zt(n, "/proxy-token"), ee = await fetch(j, {
11853
11853
  method: "POST",
11854
11854
  headers: { "Content-Type": "application/json" },
11855
11855
  body: JSON.stringify({
@@ -11887,36 +11887,36 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11887
11887
  if (Hl(F.bundleUrl) && (M == null ? void 0 : M.mode) !== "staging")
11888
11888
  return;
11889
11889
  const Y = m.get(L);
11890
- Y && Qe(L, { type: "extension-encryption-key", encryptionKey: Y.encryptionKey });
11890
+ Y && Ue(L, { type: "extension-encryption-key", encryptionKey: Y.encryptionKey });
11891
11891
  };
11892
11892
  return window.addEventListener("message", E), () => window.removeEventListener("message", E);
11893
11893
  }, [c, u, m]);
11894
11894
  const A = Re((E, P) => {
11895
- const C = ln();
11895
+ const C = Lt();
11896
11896
  for (const [L, F] of C) {
11897
11897
  if (!F.manifest.permissions.includes("events:identity"))
11898
11898
  continue;
11899
11899
  const M = F.manifest.events ?? [];
11900
- !M.includes("identity") && !M.includes(E) || Qe(L, {
11900
+ !M.includes("identity") && !M.includes(E) || Ue(L, {
11901
11901
  type: "extension-event",
11902
11902
  eventType: E,
11903
11903
  payload: { type: E, state: P, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
11904
11904
  });
11905
11905
  }
11906
11906
  }, []), D = Re((E) => {
11907
- const P = ln();
11907
+ const P = Lt();
11908
11908
  for (const [C, L] of P) {
11909
11909
  if (!L.manifest.permissions.includes("events:messaging"))
11910
11910
  continue;
11911
11911
  const F = L.manifest.events ?? [];
11912
- !F.includes("messaging") && !F.includes("postback") && !F.includes(`postback:${E.actionName}`) || Qe(C, {
11912
+ !F.includes("messaging") && !F.includes("postback") && !F.includes(`postback:${E.actionName}`) || Ue(C, {
11913
11913
  type: "extension-event",
11914
11914
  eventType: "messaging:postback",
11915
11915
  payload: E
11916
11916
  });
11917
11917
  }
11918
11918
  }, []), O = Re(async (E) => {
11919
- const P = ln(), C = [];
11919
+ const P = Lt(), C = [];
11920
11920
  for (const [F, M] of P) {
11921
11921
  if (!M.manifest.permissions.includes("extend:identity"))
11922
11922
  continue;
@@ -11927,7 +11927,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11927
11927
  };
11928
11928
  window.addEventListener("message", z), setTimeout(() => {
11929
11929
  window.removeEventListener("message", z), j({});
11930
- }, 5e3), Qe(F, {
11930
+ }, 5e3), Ue(F, {
11931
11931
  type: "extend-identity-request",
11932
11932
  id: ee,
11933
11933
  claims: E
@@ -11942,7 +11942,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
11942
11942
  }, []), H = Re(async (E) => {
11943
11943
  if (!n || !o || !e)
11944
11944
  return console.warn("[embeddables] signIdentity skipped — missing:", { apiBase: !!n, appId: !!o, instanceId: !!e }), null;
11945
- const P = Dt(n, `/instances/${o}/${e}/identity`);
11945
+ const P = zt(n, `/instances/${o}/${e}/identity`);
11946
11946
  console.log("[embeddables] Calling identity sign:", { url: P, claims: Object.keys(E) });
11947
11947
  try {
11948
11948
  const C = await fetch(P, {
@@ -12051,7 +12051,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
12051
12051
  if (!(F != null && F.manifest.permissions.includes("events:identity")))
12052
12052
  return;
12053
12053
  const M = F.manifest.events ?? [];
12054
- !M.includes("identity") && !M.includes("identity.login") || Qe(L, {
12054
+ !M.includes("identity") && !M.includes("identity.login") || Ue(L, {
12055
12055
  type: "extension-event",
12056
12056
  eventType: "identity.login",
12057
12057
  payload: { type: "identity.login", state: w, timestamp: (/* @__PURE__ */ new Date()).toISOString() }
@@ -12095,13 +12095,25 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
12095
12095
  };
12096
12096
  return window.addEventListener("stackable:messaging:postback", E), () => window.removeEventListener("stackable:messaging:postback", E);
12097
12097
  }, [D]), ce(() => {
12098
+ if (!v)
12099
+ return;
12100
+ const E = {
12101
+ customerId: s ?? "",
12102
+ customerEmail: a ?? "",
12103
+ customerName: i ?? "",
12104
+ identity: w,
12105
+ messaging: k
12106
+ }, P = Lt();
12107
+ for (const [C, L] of P)
12108
+ L.manifest.permissions.includes("context:read") && Ue(C, { type: "context-push", context: E });
12109
+ }, [v, s, a, i, w, k]), ce(() => {
12098
12110
  const E = (P) => {
12099
12111
  const { detail: C } = P;
12100
12112
  C && N((L) => ({ ...L, ...C }));
12101
12113
  };
12102
12114
  return window.addEventListener("stackable:messaging:context", E), () => window.removeEventListener("stackable:messaging:context", E);
12103
12115
  }, []);
12104
- const G = Ft(
12116
+ const G = Bt(
12105
12117
  () => ({
12106
12118
  // TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
12107
12119
  "data.query": async (E) => Lc(E, t),
@@ -12120,7 +12132,7 @@ const Mt = (e) => e == null ? void 0 : e === !0 || e === "true", _c = {
12120
12132
  method: P.method ?? "GET",
12121
12133
  headers: P.headers ?? {},
12122
12134
  body: P.body ?? null
12123
- }, F = Dt(n, "/proxy"), M = await fetch(F, {
12135
+ }, F = zt(n, "/proxy"), M = await fetch(F, {
12124
12136
  method: "POST",
12125
12137
  headers: {
12126
12138
  "Content-Type": "application/json",
@@ -12365,10 +12377,10 @@ const Db = ({ ...e }) => {
12365
12377
  var c, d;
12366
12378
  const { customer: r, loading: s, error: a } = Ub(e, n);
12367
12379
  if (s)
12368
- return /* @__PURE__ */ p(zt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ p($t, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ p(Oo, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
12380
+ return /* @__PURE__ */ p($t, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ p(Ft, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ p(Oo, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
12369
12381
  if (a || !r) {
12370
12382
  const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", l = u.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
12371
- return /* @__PURE__ */ p(zt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ U($t, { className: "p-4 pb-0 pt-2", children: [
12383
+ return /* @__PURE__ */ p($t, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ U(Ft, { className: "p-4 pb-0 pt-2", children: [
12372
12384
  /* @__PURE__ */ U("div", { className: "flex flex-col items-center", children: [
12373
12385
  /* @__PURE__ */ U(Ao, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
12374
12386
  /* @__PURE__ */ p(
@@ -12396,7 +12408,7 @@ const Db = ({ ...e }) => {
12396
12408
  ] }) });
12397
12409
  }
12398
12410
  const i = `${((c = r.first_name) == null ? void 0 : c[0]) || ""}${((d = r.last_name) == null ? void 0 : d[0]) || ""}`;
12399
- return /* @__PURE__ */ p(zt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ p($t, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ U("div", { className: "flex flex-col items-center", children: [
12411
+ return /* @__PURE__ */ p($t, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ p(Ft, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ U("div", { className: "flex flex-col items-center", children: [
12400
12412
  /* @__PURE__ */ U(Ao, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
12401
12413
  /* @__PURE__ */ p(
12402
12414
  Io,
@@ -12473,7 +12485,7 @@ const Db = ({ ...e }) => {
12473
12485
  const a = Math.max(
12474
12486
  uo,
12475
12487
  Math.min(fo, s)
12476
- ), { extensions: i } = gs(), c = Ft(() => i.some((S) => S.enabled && (S.manifest.targets.includes("slot.header") || S.manifest.targets.includes("slot.content"))), [i]), [d, u] = le(!1), [l, m] = le(!1), [g, b] = le("extensions"), [h, v] = le(a), [y, w] = le("loading"), x = Be(null), k = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
12488
+ ), { extensions: i } = gs(), c = Bt(() => i.some((S) => S.enabled && (S.manifest.targets.includes("slot.header") || S.manifest.targets.includes("slot.content"))), [i]), [d, u] = le(!1), [l, m] = le(!1), [g, b] = le("extensions"), [h, v] = le(a), [y, w] = le("loading"), x = Be(null), k = Re(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
12477
12489
  mode: "embedded",
12478
12490
  messageLog: { targetElement: "#widget_messages" },
12479
12491
  conversationList: { targetElement: "#widget_conversations" }
@@ -12622,7 +12634,7 @@ const Db = ({ ...e }) => {
12622
12634
  /* @__PURE__ */ U("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
12623
12635
  /* @__PURE__ */ U("div", { className: K("flex flex-col gap-2", g === "conversations" && "hidden"), children: [
12624
12636
  /* @__PURE__ */ p(jb, { customerId: o, customerEmail: r, queryApiBase: n, children: /* @__PURE__ */ p(
12625
- Jt,
12637
+ Qt,
12626
12638
  {
12627
12639
  target: "slot.header",
12628
12640
  context: R,
@@ -12630,7 +12642,7 @@ const Db = ({ ...e }) => {
12630
12642
  }
12631
12643
  ) }),
12632
12644
  /* @__PURE__ */ p(
12633
- Jt,
12645
+ Qt,
12634
12646
  {
12635
12647
  target: "slot.content",
12636
12648
  context: R,
@@ -12656,7 +12668,7 @@ const Db = ({ ...e }) => {
12656
12668
  /* @__PURE__ */ p("div", { className: "flex-1 overflow-hidden", children: y === "error" ? /* @__PURE__ */ p("div", { className: "flex h-full items-center justify-center p-6 text-center text-sm text-muted-foreground", children: /* @__PURE__ */ p("p", { children: "Zendesk Messenger could not be loaded. Check that a valid Snippet Key is configured." }) }) : /* @__PURE__ */ p(Yb, {}) }),
12657
12669
  /* @__PURE__ */ U("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
12658
12670
  /* @__PURE__ */ p(
12659
- Jt,
12671
+ Qt,
12660
12672
  {
12661
12673
  target: "slot.footer",
12662
12674
  context: R,
@@ -12668,7 +12680,7 @@ const Db = ({ ...e }) => {
12668
12680
  }
12669
12681
  ),
12670
12682
  /* @__PURE__ */ p(
12671
- Jt,
12683
+ Qt,
12672
12684
  {
12673
12685
  target: "slot.footer-links",
12674
12686
  context: R,