@stackable-labs/embeddables 1.26.0 → 1.27.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/embeddables/src/components/WidgetComponent.d.ts +4 -1
- package/dist/react.js +427 -427
- package/dist/stackable-widget.external.js +2 -2
- package/dist/stackable-widget.js +2 -2
- package/package.json +1 -1
- /package/dist/embeddables/src/components/{zendesk/CustomerProfile.d.ts → CustomerProfile.d.ts} +0 -0
package/dist/react.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as z, jsx as p, Fragment as $e } from "react/jsx-runtime";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import N, { createContext as $l, useState as ae, useRef as it, useEffect as
|
|
3
|
+
import N, { createContext as $l, useState as ae, useRef as it, useEffect as pe, useContext as Fl, useMemo as rs, useCallback as It, createElement as ln, forwardRef as ss, useLayoutEffect as Bl } from "react";
|
|
4
4
|
import * as bn from "react-dom";
|
|
5
5
|
import as from "react-dom";
|
|
6
6
|
const Hl = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "c4b3e6f1-c2fe-4a9a-843b-fff5d9dd48ff";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -242,7 +242,7 @@ const Xl = (e) => {
|
|
|
242
242
|
children: o
|
|
243
243
|
}) => {
|
|
244
244
|
const [r, s] = ae(!1), a = it(null), i = it(null);
|
|
245
|
-
return
|
|
245
|
+
return pe(() => {
|
|
246
246
|
if (!a.current) return;
|
|
247
247
|
let l = !1;
|
|
248
248
|
return (async () => {
|
|
@@ -283,7 +283,7 @@ const Xl = (e) => {
|
|
|
283
283
|
for (const r of t)
|
|
284
284
|
r.type !== "text" && (!r.tag || r.tag === "__fragment" || n.includes(r.tag) || o.push(r.tag));
|
|
285
285
|
return o;
|
|
286
|
-
},
|
|
286
|
+
}, Gt = ({
|
|
287
287
|
target: e,
|
|
288
288
|
context: t,
|
|
289
289
|
className: n,
|
|
@@ -295,14 +295,14 @@ const Xl = (e) => {
|
|
|
295
295
|
() => a.filter((v) => v.enabled && v.manifest.targets.includes(e)),
|
|
296
296
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
297
297
|
[a.map((v) => v.id).join(","), e]
|
|
298
|
-
), g =
|
|
298
|
+
), g = It(
|
|
299
299
|
(v, y, x = 0) => {
|
|
300
|
-
var
|
|
300
|
+
var k, T, M;
|
|
301
301
|
if (v.type === "text")
|
|
302
302
|
return v.text || null;
|
|
303
303
|
if (!v.tag) return null;
|
|
304
304
|
if (v.tag === "__fragment")
|
|
305
|
-
return /* @__PURE__ */ p(N.Fragment, { children: (
|
|
305
|
+
return /* @__PURE__ */ p(N.Fragment, { children: (k = v.children) == null ? void 0 : k.map((_, L) => g(_, y, L)) }, x);
|
|
306
306
|
if (!Ql(v.tag))
|
|
307
307
|
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${v.tag}>`), null;
|
|
308
308
|
const w = i[v.tag];
|
|
@@ -331,12 +331,12 @@ const Xl = (e) => {
|
|
|
331
331
|
);
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
const
|
|
335
|
-
return /* @__PURE__ */ ln(w, { ...S, key: x },
|
|
334
|
+
const E = (M = v.children) == null ? void 0 : M.map((_, L) => g(_, y, L));
|
|
335
|
+
return /* @__PURE__ */ ln(w, { ...S, key: x }, E && E.length > 0 ? E : void 0);
|
|
336
336
|
},
|
|
337
337
|
[e, i]
|
|
338
338
|
);
|
|
339
|
-
if (
|
|
339
|
+
if (pe(() => {
|
|
340
340
|
const v = m.map((x) => x.id).join(",");
|
|
341
341
|
if (c.current !== v && (c.current = v, f({})), !l || m.length === 0) return;
|
|
342
342
|
const y = (x) => {
|
|
@@ -346,21 +346,21 @@ const Xl = (e) => {
|
|
|
346
346
|
return C && x.source === C.iframe.contentWindow;
|
|
347
347
|
}))) {
|
|
348
348
|
if (w.type === "surface-update" && w.surfaceId === e) {
|
|
349
|
-
const R = m.find((
|
|
350
|
-
const
|
|
351
|
-
return
|
|
349
|
+
const R = m.find((E) => {
|
|
350
|
+
const k = xt(E.id);
|
|
351
|
+
return k && x.source === k.iframe.contentWindow;
|
|
352
352
|
});
|
|
353
353
|
if (!R) return;
|
|
354
354
|
const C = g(w.tree, x.source ?? null);
|
|
355
|
-
f((
|
|
356
|
-
...
|
|
355
|
+
f((E) => ({
|
|
356
|
+
...E,
|
|
357
357
|
[R.id]: C
|
|
358
358
|
}));
|
|
359
359
|
}
|
|
360
360
|
w.type === "surface-ready" && w.surfaceId === e && t && m.forEach((R) => {
|
|
361
|
-
var
|
|
361
|
+
var E;
|
|
362
362
|
const C = xt(R.id);
|
|
363
|
-
(
|
|
363
|
+
(E = C == null ? void 0 : C.iframe.contentWindow) == null || E.postMessage(
|
|
364
364
|
{ type: "context-update", surfaceId: e, context: t },
|
|
365
365
|
"*"
|
|
366
366
|
);
|
|
@@ -678,20 +678,20 @@ const be = new fc(), pc = (e, t) => {
|
|
|
678
678
|
getToasts: vc
|
|
679
679
|
});
|
|
680
680
|
nc("[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%)}");
|
|
681
|
-
function
|
|
681
|
+
function Yt(e) {
|
|
682
682
|
return e.label !== void 0;
|
|
683
683
|
}
|
|
684
|
-
const bc = 3, yc = "24px", wc = "16px", dr = 4e3, xc = 356, Sc = 14, Cc = 45,
|
|
684
|
+
const bc = 3, yc = "24px", wc = "16px", dr = 4e3, xc = 356, Sc = 14, Cc = 45, Ec = 200;
|
|
685
685
|
function Oe(...e) {
|
|
686
686
|
return e.filter(Boolean).join(" ");
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function kc(e) {
|
|
689
689
|
const [t, n] = e.split("-"), o = [];
|
|
690
690
|
return t && o.push(t), n && o.push(n), o;
|
|
691
691
|
}
|
|
692
692
|
const Rc = (e) => {
|
|
693
693
|
var t, n, o, r, s, a, i, l, d;
|
|
694
|
-
const { invert: f, toast: c, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: x, expanded: w, removeToast: S, defaultRichColors: R, closeButton: C, style:
|
|
694
|
+
const { invert: f, toast: c, unstyled: m, interacting: g, setHeights: b, visibleToasts: h, heights: v, index: y, toasts: x, expanded: w, removeToast: S, defaultRichColors: R, closeButton: C, style: E, cancelButtonStyle: k, actionButtonStyle: T, className: M = "", descriptionClassName: _ = "", duration: L, position: U, gap: q, expandByDefault: J, classNames: P, icons: $, closeButtonAriaLabel: D = "Close toast" } = e, [ee, A] = N.useState(null), [le, we] = N.useState(null), [G, oe] = N.useState(!1), [j, te] = N.useState(!1), [F, B] = N.useState(!1), [Y, re] = N.useState(!1), [Q, X] = N.useState(!1), [ce, de] = N.useState(0), [ot, Ge] = N.useState(0), Ne = N.useRef(c.duration || L || dr), Wt = N.useRef(null), ve = N.useRef(null), Tl = y === 0, Pl = y + 1 <= h, xe = c.type, mt = c.dismissible !== !1, Al = c.className || "", _l = c.descriptionClassName || "", Vt = N.useMemo(() => v.findIndex((K) => K.toastId === c.id) || 0, [
|
|
695
695
|
v,
|
|
696
696
|
c.id
|
|
697
697
|
]), Il = N.useMemo(() => {
|
|
@@ -703,12 +703,12 @@ const Rc = (e) => {
|
|
|
703
703
|
]), nr = N.useMemo(() => c.duration || L || dr, [
|
|
704
704
|
c.duration,
|
|
705
705
|
L
|
|
706
|
-
]), Wn = N.useRef(0), ht = N.useRef(0), or = N.useRef(0), gt = N.useRef(null), [Ml, Ol] = U.split("-"), rr = N.useMemo(() => v.reduce((K, fe, he) => he >=
|
|
706
|
+
]), Wn = N.useRef(0), ht = N.useRef(0), or = N.useRef(0), gt = N.useRef(null), [Ml, Ol] = U.split("-"), rr = N.useMemo(() => v.reduce((K, fe, he) => he >= Vt ? K : K + fe.height, 0), [
|
|
707
707
|
v,
|
|
708
|
-
|
|
708
|
+
Vt
|
|
709
709
|
]), sr = uc(), Ll = c.invert || f, Vn = xe === "loading";
|
|
710
|
-
ht.current = N.useMemo(() =>
|
|
711
|
-
|
|
710
|
+
ht.current = N.useMemo(() => Vt * q + rr, [
|
|
711
|
+
Vt,
|
|
712
712
|
rr
|
|
713
713
|
]), N.useEffect(() => {
|
|
714
714
|
Ne.current = nr;
|
|
@@ -737,10 +737,10 @@ const Rc = (e) => {
|
|
|
737
737
|
const K = ve.current, fe = K.style.height;
|
|
738
738
|
K.style.height = "auto";
|
|
739
739
|
const he = K.getBoundingClientRect().height;
|
|
740
|
-
K.style.height = fe, Ge(he), b((Se) => Se.find((
|
|
741
|
-
...
|
|
740
|
+
K.style.height = fe, Ge(he), b((Se) => Se.find((me) => me.toastId === c.id) ? Se.map((me) => me.toastId === c.id ? {
|
|
741
|
+
...me,
|
|
742
742
|
height: he
|
|
743
|
-
} :
|
|
743
|
+
} : me) : [
|
|
744
744
|
{
|
|
745
745
|
toastId: c.id,
|
|
746
746
|
height: he,
|
|
@@ -761,7 +761,7 @@ const Rc = (e) => {
|
|
|
761
761
|
const Ye = N.useCallback(() => {
|
|
762
762
|
te(!0), de(ht.current), b((K) => K.filter((fe) => fe.toastId !== c.id)), setTimeout(() => {
|
|
763
763
|
S(c);
|
|
764
|
-
},
|
|
764
|
+
}, Ec);
|
|
765
765
|
}, [
|
|
766
766
|
c,
|
|
767
767
|
S,
|
|
@@ -841,14 +841,14 @@ const Rc = (e) => {
|
|
|
841
841
|
"--z-index": x.length - y,
|
|
842
842
|
"--offset": `${j ? ce : ht.current}px`,
|
|
843
843
|
"--initial-height": J ? "auto" : `${ot}px`,
|
|
844
|
-
...
|
|
844
|
+
...E,
|
|
845
845
|
...c.style
|
|
846
846
|
},
|
|
847
847
|
onDragEnd: () => {
|
|
848
848
|
B(!1), A(null), gt.current = null;
|
|
849
849
|
},
|
|
850
850
|
onPointerDown: (K) => {
|
|
851
|
-
K.button !== 2 && (Vn || !mt || (
|
|
851
|
+
K.button !== 2 && (Vn || !mt || (Wt.current = /* @__PURE__ */ new Date(), de(ht.current), K.target.setPointerCapture(K.pointerId), K.target.tagName !== "BUTTON" && (B(!0), gt.current = {
|
|
852
852
|
x: K.clientX,
|
|
853
853
|
y: K.clientY
|
|
854
854
|
})));
|
|
@@ -857,9 +857,9 @@ const Rc = (e) => {
|
|
|
857
857
|
var K, fe, he;
|
|
858
858
|
if (Y || !mt) return;
|
|
859
859
|
gt.current = null;
|
|
860
|
-
const Se = Number(((K = ve.current) == null ? void 0 : K.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0),
|
|
861
|
-
if (Math.abs(
|
|
862
|
-
de(ht.current), c.onDismiss == null || c.onDismiss.call(c, c), we(ee === "x" ? Se > 0 ? "right" : "left" :
|
|
860
|
+
const Se = Number(((K = ve.current) == null ? void 0 : K.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Ut = Number(((fe = ve.current) == null ? void 0 : fe.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), me = (/* @__PURE__ */ new Date()).getTime() - ((he = Wt.current) == null ? void 0 : he.getTime()), ke = ee === "x" ? Se : Ut, jt = Math.abs(ke) / me;
|
|
861
|
+
if (Math.abs(ke) >= Cc || jt > 0.11) {
|
|
862
|
+
de(ht.current), c.onDismiss == null || c.onDismiss.call(c, c), we(ee === "x" ? Se > 0 ? "right" : "left" : Ut > 0 ? "down" : "up"), Ye(), re(!0);
|
|
863
863
|
return;
|
|
864
864
|
} else {
|
|
865
865
|
var Te, Pe;
|
|
@@ -870,10 +870,10 @@ const Rc = (e) => {
|
|
|
870
870
|
onPointerMove: (K) => {
|
|
871
871
|
var fe, he, Se;
|
|
872
872
|
if (!gt.current || !mt || ((fe = window.getSelection()) == null ? void 0 : fe.toString().length) > 0) return;
|
|
873
|
-
const
|
|
874
|
-
var
|
|
875
|
-
const Te = (
|
|
876
|
-
!ee && (Math.abs(
|
|
873
|
+
const me = K.clientY - gt.current.y, ke = K.clientX - gt.current.x;
|
|
874
|
+
var jt;
|
|
875
|
+
const Te = (jt = e.swipeDirections) != null ? jt : kc(U);
|
|
876
|
+
!ee && (Math.abs(ke) > 1 || Math.abs(me) > 1) && A(Math.abs(ke) > Math.abs(me) ? "x" : "y");
|
|
877
877
|
let Pe = {
|
|
878
878
|
x: 0,
|
|
879
879
|
y: 0
|
|
@@ -881,18 +881,18 @@ const Rc = (e) => {
|
|
|
881
881
|
const lr = (rt) => 1 / (1.5 + Math.abs(rt) / 20);
|
|
882
882
|
if (ee === "y") {
|
|
883
883
|
if (Te.includes("top") || Te.includes("bottom"))
|
|
884
|
-
if (Te.includes("top") &&
|
|
885
|
-
Pe.y =
|
|
884
|
+
if (Te.includes("top") && me < 0 || Te.includes("bottom") && me > 0)
|
|
885
|
+
Pe.y = me;
|
|
886
886
|
else {
|
|
887
|
-
const rt =
|
|
888
|
-
Pe.y = Math.abs(rt) < Math.abs(
|
|
887
|
+
const rt = me * lr(me);
|
|
888
|
+
Pe.y = Math.abs(rt) < Math.abs(me) ? rt : me;
|
|
889
889
|
}
|
|
890
890
|
} else if (ee === "x" && (Te.includes("left") || Te.includes("right")))
|
|
891
|
-
if (Te.includes("left") &&
|
|
892
|
-
Pe.x =
|
|
891
|
+
if (Te.includes("left") && ke < 0 || Te.includes("right") && ke > 0)
|
|
892
|
+
Pe.x = ke;
|
|
893
893
|
else {
|
|
894
|
-
const rt =
|
|
895
|
-
Pe.x = Math.abs(rt) < Math.abs(
|
|
894
|
+
const rt = ke * lr(ke);
|
|
895
|
+
Pe.x = Math.abs(rt) < Math.abs(ke) ? rt : ke;
|
|
896
896
|
}
|
|
897
897
|
(Math.abs(Pe.x) > 0 || Math.abs(Pe.y) > 0) && X(!0), (he = ve.current) == null || he.style.setProperty("--swipe-amount-x", `${Pe.x}px`), (Se = ve.current) == null || Se.style.setProperty("--swipe-amount-y", `${Pe.y}px`);
|
|
898
898
|
}
|
|
@@ -917,20 +917,20 @@ const Rc = (e) => {
|
|
|
917
917
|
}, c.jsx ? c.jsx : typeof c.title == "function" ? c.title() : c.title), c.description ? /* @__PURE__ */ N.createElement("div", {
|
|
918
918
|
"data-description": "",
|
|
919
919
|
className: Oe(_, _l, P == null ? void 0 : P.description, c == null || (i = c.classNames) == null ? void 0 : i.description)
|
|
920
|
-
}, typeof c.description == "function" ? c.description() : c.description) : null), /* @__PURE__ */ N.isValidElement(c.cancel) ? c.cancel : c.cancel &&
|
|
920
|
+
}, typeof c.description == "function" ? c.description() : c.description) : null), /* @__PURE__ */ N.isValidElement(c.cancel) ? c.cancel : c.cancel && Yt(c.cancel) ? /* @__PURE__ */ N.createElement("button", {
|
|
921
921
|
"data-button": !0,
|
|
922
922
|
"data-cancel": !0,
|
|
923
|
-
style: c.cancelButtonStyle ||
|
|
923
|
+
style: c.cancelButtonStyle || k,
|
|
924
924
|
onClick: (K) => {
|
|
925
|
-
|
|
925
|
+
Yt(c.cancel) && mt && (c.cancel.onClick == null || c.cancel.onClick.call(c.cancel, K), Ye());
|
|
926
926
|
},
|
|
927
927
|
className: Oe(P == null ? void 0 : P.cancelButton, c == null || (l = c.classNames) == null ? void 0 : l.cancelButton)
|
|
928
|
-
}, c.cancel.label) : null, /* @__PURE__ */ N.isValidElement(c.action) ? c.action : c.action &&
|
|
928
|
+
}, c.cancel.label) : null, /* @__PURE__ */ N.isValidElement(c.action) ? c.action : c.action && Yt(c.action) ? /* @__PURE__ */ N.createElement("button", {
|
|
929
929
|
"data-button": !0,
|
|
930
930
|
"data-action": !0,
|
|
931
931
|
style: c.actionButtonStyle || T,
|
|
932
932
|
onClick: (K) => {
|
|
933
|
-
|
|
933
|
+
Yt(c.action) && (c.action.onClick == null || c.action.onClick.call(c.action, K), !K.defaultPrevented && Ye());
|
|
934
934
|
},
|
|
935
935
|
className: Oe(P == null ? void 0 : P.actionButton, c == null || (d = c.classNames) == null ? void 0 : d.actionButton)
|
|
936
936
|
}, c.action.label) : null);
|
|
@@ -971,16 +971,16 @@ const Tc = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
|
|
971
971
|
const { id: o, invert: r, position: s = "bottom-right", hotkey: a = [
|
|
972
972
|
"altKey",
|
|
973
973
|
"KeyT"
|
|
974
|
-
], expand: i, closeButton: l, className: d, offset: f, mobileOffset: c, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = bc, toastOptions: y, dir: x = ur(), gap: w = Sc, icons: S, containerAriaLabel: R = "Notifications" } = t, [C,
|
|
974
|
+
], expand: i, closeButton: l, className: d, offset: f, mobileOffset: c, theme: m = "light", richColors: g, duration: b, style: h, visibleToasts: v = bc, toastOptions: y, dir: x = ur(), gap: w = Sc, icons: S, containerAriaLabel: R = "Notifications" } = t, [C, E] = N.useState([]), k = N.useMemo(() => o ? C.filter((G) => G.toasterId === o) : C.filter((G) => !G.toasterId), [
|
|
975
975
|
C,
|
|
976
976
|
o
|
|
977
977
|
]), T = N.useMemo(() => Array.from(new Set([
|
|
978
978
|
s
|
|
979
|
-
].concat(
|
|
980
|
-
|
|
979
|
+
].concat(k.filter((G) => G.position).map((G) => G.position)))), [
|
|
980
|
+
k,
|
|
981
981
|
s
|
|
982
982
|
]), [M, _] = N.useState([]), [L, U] = N.useState(!1), [q, J] = N.useState(!1), [P, $] = N.useState(m !== "system" ? m : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), D = N.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), A = N.useRef(null), le = N.useRef(!1), we = N.useCallback((G) => {
|
|
983
|
-
|
|
983
|
+
E((oe) => {
|
|
984
984
|
var j;
|
|
985
985
|
return (j = oe.find((te) => te.id === G.id)) != null && j.delete || be.dismiss(G.id), oe.filter(({ id: te }) => te !== G.id);
|
|
986
986
|
});
|
|
@@ -988,7 +988,7 @@ const Tc = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
|
|
988
988
|
return N.useEffect(() => be.subscribe((G) => {
|
|
989
989
|
if (G.dismiss) {
|
|
990
990
|
requestAnimationFrame(() => {
|
|
991
|
-
|
|
991
|
+
E((oe) => oe.map((j) => j.id === G.id ? {
|
|
992
992
|
...j,
|
|
993
993
|
delete: !0
|
|
994
994
|
} : j));
|
|
@@ -997,7 +997,7 @@ const Tc = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
|
|
997
997
|
}
|
|
998
998
|
setTimeout(() => {
|
|
999
999
|
as.flushSync(() => {
|
|
1000
|
-
|
|
1000
|
+
E((oe) => {
|
|
1001
1001
|
const j = oe.findIndex((te) => te.id === G.id);
|
|
1002
1002
|
return j !== -1 ? [
|
|
1003
1003
|
...oe.slice(0, j),
|
|
@@ -1074,7 +1074,7 @@ const Tc = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
|
|
1074
1074
|
}, T.map((G, oe) => {
|
|
1075
1075
|
var j;
|
|
1076
1076
|
const [te, F] = G.split("-");
|
|
1077
|
-
return
|
|
1077
|
+
return k.length ? /* @__PURE__ */ N.createElement("ol", {
|
|
1078
1078
|
key: G,
|
|
1079
1079
|
dir: x === "auto" ? ur() : x,
|
|
1080
1080
|
tabIndex: -1,
|
|
@@ -1109,7 +1109,7 @@ const Tc = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
|
|
1109
1109
|
B.target instanceof HTMLElement && B.target.dataset.dismissible === "false" || J(!0);
|
|
1110
1110
|
},
|
|
1111
1111
|
onPointerUp: () => J(!1)
|
|
1112
|
-
},
|
|
1112
|
+
}, k.filter((B) => !B.position && oe === 0 || B.position === G).map((B, Y) => {
|
|
1113
1113
|
var re, Q;
|
|
1114
1114
|
return /* @__PURE__ */ N.createElement(Rc, {
|
|
1115
1115
|
key: B.id,
|
|
@@ -1132,7 +1132,7 @@ const Tc = /* @__PURE__ */ N.forwardRef(function(t, n) {
|
|
|
1132
1132
|
actionButtonStyle: y == null ? void 0 : y.actionButtonStyle,
|
|
1133
1133
|
closeButtonAriaLabel: y == null ? void 0 : y.closeButtonAriaLabel,
|
|
1134
1134
|
removeToast: we,
|
|
1135
|
-
toasts:
|
|
1135
|
+
toasts: k.filter((X) => X.position == B.position),
|
|
1136
1136
|
heights: M.filter((X) => X.position == B.position),
|
|
1137
1137
|
setHeights: _,
|
|
1138
1138
|
expandByDefault: i,
|
|
@@ -1608,14 +1608,14 @@ const Cd = [
|
|
|
1608
1608
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
1609
1609
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
1610
1610
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
1611
|
-
],
|
|
1611
|
+
], Ed = se("package", Cd);
|
|
1612
1612
|
/**
|
|
1613
1613
|
* @license lucide-react v0.577.0 - ISC
|
|
1614
1614
|
*
|
|
1615
1615
|
* This source code is licensed under the ISC license.
|
|
1616
1616
|
* See the LICENSE file in the root directory of this source tree.
|
|
1617
1617
|
*/
|
|
1618
|
-
const
|
|
1618
|
+
const kd = [
|
|
1619
1619
|
[
|
|
1620
1620
|
"path",
|
|
1621
1621
|
{
|
|
@@ -1623,7 +1623,7 @@ const Ed = [
|
|
|
1623
1623
|
key: "9njp5v"
|
|
1624
1624
|
}
|
|
1625
1625
|
]
|
|
1626
|
-
], Rd = se("phone",
|
|
1626
|
+
], Rd = se("phone", kd);
|
|
1627
1627
|
/**
|
|
1628
1628
|
* @license lucide-react v0.577.0 - ISC
|
|
1629
1629
|
*
|
|
@@ -1968,8 +1968,8 @@ const $d = (e, t) => {
|
|
|
1968
1968
|
a.push(S);
|
|
1969
1969
|
const R = r(y, v);
|
|
1970
1970
|
for (let C = 0; C < R.length; ++C) {
|
|
1971
|
-
const
|
|
1972
|
-
a.push(w +
|
|
1971
|
+
const E = R[C];
|
|
1972
|
+
a.push(w + E);
|
|
1973
1973
|
}
|
|
1974
1974
|
l = f + (l.length > 0 ? " " + l : l);
|
|
1975
1975
|
}
|
|
@@ -2002,18 +2002,18 @@ const $d = (e, t) => {
|
|
|
2002
2002
|
}, su = [], ue = (e) => {
|
|
2003
2003
|
const t = (n) => n[e] || su;
|
|
2004
2004
|
return t.isThemeGetter = !0, t;
|
|
2005
|
-
}, Cs = /^\[(?:(\w[\w-]*):)?(.+)\]$/i,
|
|
2005
|
+
}, Cs = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Es = /^\((?:(\w[\w-]*):)?(.+)\)$/i, au = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, iu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lu = /\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$/, cu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, du = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, uu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, qe = (e) => au.test(e), Z = (e) => !!e && !Number.isNaN(Number(e)), Ke = (e) => !!e && Number.isInteger(Number(e)), Un = (e) => e.endsWith("%") && Z(e.slice(0, -1)), He = (e) => iu.test(e), ks = () => !0, fu = (e) => (
|
|
2006
2006
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2007
2007
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2008
2008
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2009
2009
|
lu.test(e) && !cu.test(e)
|
|
2010
|
-
), Ao = () => !1, pu = (e) => du.test(e), mu = (e) => uu.test(e), hu = (e) => !I(e) && !O(e), gu = (e) => et(e, Ts, Ao), I = (e) => Cs.test(e), st = (e) => et(e, Ps, fu), br = (e) => et(e,
|
|
2010
|
+
), Ao = () => !1, pu = (e) => du.test(e), mu = (e) => uu.test(e), hu = (e) => !I(e) && !O(e), gu = (e) => et(e, Ts, Ao), I = (e) => Cs.test(e), st = (e) => et(e, Ps, fu), br = (e) => et(e, Eu, Z), vu = (e) => et(e, _s, ks), bu = (e) => et(e, As, Ao), yr = (e) => et(e, Rs, Ao), yu = (e) => et(e, Ns, mu), qt = (e) => et(e, Is, pu), O = (e) => Es.test(e), At = (e) => ft(e, Ps), wu = (e) => ft(e, As), wr = (e) => ft(e, Rs), xu = (e) => ft(e, Ts), Su = (e) => ft(e, Ns), Kt = (e) => ft(e, Is, !0), Cu = (e) => ft(e, _s, !0), et = (e, t, n) => {
|
|
2011
2011
|
const o = Cs.exec(e);
|
|
2012
2012
|
return o ? o[1] ? t(o[1]) : n(o[2]) : !1;
|
|
2013
2013
|
}, ft = (e, t, n = !1) => {
|
|
2014
|
-
const o =
|
|
2014
|
+
const o = Es.exec(e);
|
|
2015
2015
|
return o ? o[1] ? t(o[1]) : n : !1;
|
|
2016
|
-
}, Rs = (e) => e === "position" || e === "percentage", Ns = (e) => e === "image" || e === "url", Ts = (e) => e === "length" || e === "size" || e === "bg-size", Ps = (e) => e === "length",
|
|
2016
|
+
}, Rs = (e) => e === "position" || e === "percentage", Ns = (e) => e === "image" || e === "url", Ts = (e) => e === "length" || e === "size" || e === "bg-size", Ps = (e) => e === "length", Eu = (e) => e === "number", As = (e) => e === "family-name", _s = (e) => e === "number" || e === "weight", Is = (e) => e === "shadow", ku = () => {
|
|
2017
2017
|
const e = ue("color"), t = ue("font"), n = ue("text"), o = ue("font-weight"), r = ue("tracking"), s = ue("leading"), a = ue("breakpoint"), i = ue("container"), l = ue("spacing"), d = ue("radius"), f = ue("shadow"), c = ue("inset-shadow"), m = ue("text-shadow"), g = ue("drop-shadow"), b = ue("blur"), h = ue("perspective"), v = ue("aspect"), y = ue("ease"), x = ue("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
2018
2018
|
"center",
|
|
2019
2019
|
"top",
|
|
@@ -2032,9 +2032,9 @@ const $d = (e, t) => {
|
|
|
2032
2032
|
"bottom-left",
|
|
2033
2033
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2034
2034
|
"left-bottom"
|
|
2035
|
-
], R = () => [...S(), O, I], C = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
2035
|
+
], R = () => [...S(), O, I], C = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], k = () => [O, I, l], T = () => [qe, "full", "auto", ...k()], M = () => [Ke, "none", "subgrid", O, I], _ = () => ["auto", {
|
|
2036
2036
|
span: ["full", Ke, O, I]
|
|
2037
|
-
}, Ke, O, I], L = () => [Ke, "auto", O, I], U = () => ["auto", "min", "max", "fr", O, I], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...
|
|
2037
|
+
}, Ke, O, I], L = () => [Ke, "auto", O, I], U = () => ["auto", "min", "max", "fr", O, I], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], P = () => ["auto", ...k()], $ = () => [qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], D = () => [qe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], ee = () => [qe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], A = () => [e, O, I], le = () => [...S(), wr, yr, {
|
|
2038
2038
|
position: [O, I]
|
|
2039
2039
|
}], we = () => ["no-repeat", {
|
|
2040
2040
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -2055,7 +2055,7 @@ const $d = (e, t) => {
|
|
|
2055
2055
|
b,
|
|
2056
2056
|
O,
|
|
2057
2057
|
I
|
|
2058
|
-
], Q = () => ["none", Z, O, I], X = () => ["none", Z, O, I], ce = () => [Z, O, I], de = () => [qe, "full", ...
|
|
2058
|
+
], Q = () => ["none", Z, O, I], X = () => ["none", Z, O, I], ce = () => [Z, O, I], de = () => [qe, "full", ...k()];
|
|
2059
2059
|
return {
|
|
2060
2060
|
cacheSize: 500,
|
|
2061
2061
|
theme: {
|
|
@@ -2063,7 +2063,7 @@ const $d = (e, t) => {
|
|
|
2063
2063
|
aspect: ["video"],
|
|
2064
2064
|
blur: [He],
|
|
2065
2065
|
breakpoint: [He],
|
|
2066
|
-
color: [
|
|
2066
|
+
color: [ks],
|
|
2067
2067
|
container: [He],
|
|
2068
2068
|
"drop-shadow": [He],
|
|
2069
2069
|
ease: ["in", "out", "in-out"],
|
|
@@ -2207,21 +2207,21 @@ const $d = (e, t) => {
|
|
|
2207
2207
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2208
2208
|
*/
|
|
2209
2209
|
overscroll: [{
|
|
2210
|
-
overscroll:
|
|
2210
|
+
overscroll: E()
|
|
2211
2211
|
}],
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Overscroll Behavior X
|
|
2214
2214
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2215
2215
|
*/
|
|
2216
2216
|
"overscroll-x": [{
|
|
2217
|
-
"overscroll-x":
|
|
2217
|
+
"overscroll-x": E()
|
|
2218
2218
|
}],
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Overscroll Behavior Y
|
|
2221
2221
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
2222
2222
|
*/
|
|
2223
2223
|
"overscroll-y": [{
|
|
2224
|
-
"overscroll-y":
|
|
2224
|
+
"overscroll-y": E()
|
|
2225
2225
|
}],
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Position
|
|
@@ -2337,7 +2337,7 @@ const $d = (e, t) => {
|
|
|
2337
2337
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
2338
2338
|
*/
|
|
2339
2339
|
basis: [{
|
|
2340
|
-
basis: [qe, "full", "auto", i, ...
|
|
2340
|
+
basis: [qe, "full", "auto", i, ...k()]
|
|
2341
2341
|
}],
|
|
2342
2342
|
/**
|
|
2343
2343
|
* Flex Direction
|
|
@@ -2463,21 +2463,21 @@ const $d = (e, t) => {
|
|
|
2463
2463
|
* @see https://tailwindcss.com/docs/gap
|
|
2464
2464
|
*/
|
|
2465
2465
|
gap: [{
|
|
2466
|
-
gap:
|
|
2466
|
+
gap: k()
|
|
2467
2467
|
}],
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Gap X
|
|
2470
2470
|
* @see https://tailwindcss.com/docs/gap
|
|
2471
2471
|
*/
|
|
2472
2472
|
"gap-x": [{
|
|
2473
|
-
"gap-x":
|
|
2473
|
+
"gap-x": k()
|
|
2474
2474
|
}],
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Gap Y
|
|
2477
2477
|
* @see https://tailwindcss.com/docs/gap
|
|
2478
2478
|
*/
|
|
2479
2479
|
"gap-y": [{
|
|
2480
|
-
"gap-y":
|
|
2480
|
+
"gap-y": k()
|
|
2481
2481
|
}],
|
|
2482
2482
|
/**
|
|
2483
2483
|
* Justify Content
|
|
@@ -2552,77 +2552,77 @@ const $d = (e, t) => {
|
|
|
2552
2552
|
* @see https://tailwindcss.com/docs/padding
|
|
2553
2553
|
*/
|
|
2554
2554
|
p: [{
|
|
2555
|
-
p:
|
|
2555
|
+
p: k()
|
|
2556
2556
|
}],
|
|
2557
2557
|
/**
|
|
2558
2558
|
* Padding Inline
|
|
2559
2559
|
* @see https://tailwindcss.com/docs/padding
|
|
2560
2560
|
*/
|
|
2561
2561
|
px: [{
|
|
2562
|
-
px:
|
|
2562
|
+
px: k()
|
|
2563
2563
|
}],
|
|
2564
2564
|
/**
|
|
2565
2565
|
* Padding Block
|
|
2566
2566
|
* @see https://tailwindcss.com/docs/padding
|
|
2567
2567
|
*/
|
|
2568
2568
|
py: [{
|
|
2569
|
-
py:
|
|
2569
|
+
py: k()
|
|
2570
2570
|
}],
|
|
2571
2571
|
/**
|
|
2572
2572
|
* Padding Inline Start
|
|
2573
2573
|
* @see https://tailwindcss.com/docs/padding
|
|
2574
2574
|
*/
|
|
2575
2575
|
ps: [{
|
|
2576
|
-
ps:
|
|
2576
|
+
ps: k()
|
|
2577
2577
|
}],
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Padding Inline End
|
|
2580
2580
|
* @see https://tailwindcss.com/docs/padding
|
|
2581
2581
|
*/
|
|
2582
2582
|
pe: [{
|
|
2583
|
-
pe:
|
|
2583
|
+
pe: k()
|
|
2584
2584
|
}],
|
|
2585
2585
|
/**
|
|
2586
2586
|
* Padding Block Start
|
|
2587
2587
|
* @see https://tailwindcss.com/docs/padding
|
|
2588
2588
|
*/
|
|
2589
2589
|
pbs: [{
|
|
2590
|
-
pbs:
|
|
2590
|
+
pbs: k()
|
|
2591
2591
|
}],
|
|
2592
2592
|
/**
|
|
2593
2593
|
* Padding Block End
|
|
2594
2594
|
* @see https://tailwindcss.com/docs/padding
|
|
2595
2595
|
*/
|
|
2596
2596
|
pbe: [{
|
|
2597
|
-
pbe:
|
|
2597
|
+
pbe: k()
|
|
2598
2598
|
}],
|
|
2599
2599
|
/**
|
|
2600
2600
|
* Padding Top
|
|
2601
2601
|
* @see https://tailwindcss.com/docs/padding
|
|
2602
2602
|
*/
|
|
2603
2603
|
pt: [{
|
|
2604
|
-
pt:
|
|
2604
|
+
pt: k()
|
|
2605
2605
|
}],
|
|
2606
2606
|
/**
|
|
2607
2607
|
* Padding Right
|
|
2608
2608
|
* @see https://tailwindcss.com/docs/padding
|
|
2609
2609
|
*/
|
|
2610
2610
|
pr: [{
|
|
2611
|
-
pr:
|
|
2611
|
+
pr: k()
|
|
2612
2612
|
}],
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Padding Bottom
|
|
2615
2615
|
* @see https://tailwindcss.com/docs/padding
|
|
2616
2616
|
*/
|
|
2617
2617
|
pb: [{
|
|
2618
|
-
pb:
|
|
2618
|
+
pb: k()
|
|
2619
2619
|
}],
|
|
2620
2620
|
/**
|
|
2621
2621
|
* Padding Left
|
|
2622
2622
|
* @see https://tailwindcss.com/docs/padding
|
|
2623
2623
|
*/
|
|
2624
2624
|
pl: [{
|
|
2625
|
-
pl:
|
|
2625
|
+
pl: k()
|
|
2626
2626
|
}],
|
|
2627
2627
|
/**
|
|
2628
2628
|
* Margin
|
|
@@ -2706,7 +2706,7 @@ const $d = (e, t) => {
|
|
|
2706
2706
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2707
2707
|
*/
|
|
2708
2708
|
"space-x": [{
|
|
2709
|
-
"space-x":
|
|
2709
|
+
"space-x": k()
|
|
2710
2710
|
}],
|
|
2711
2711
|
/**
|
|
2712
2712
|
* Space Between X Reverse
|
|
@@ -2718,7 +2718,7 @@ const $d = (e, t) => {
|
|
|
2718
2718
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2719
2719
|
*/
|
|
2720
2720
|
"space-y": [{
|
|
2721
|
-
"space-y":
|
|
2721
|
+
"space-y": k()
|
|
2722
2722
|
}],
|
|
2723
2723
|
/**
|
|
2724
2724
|
* Space Between Y Reverse
|
|
@@ -2936,7 +2936,7 @@ const $d = (e, t) => {
|
|
|
2936
2936
|
leading: [
|
|
2937
2937
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2938
2938
|
s,
|
|
2939
|
-
...
|
|
2939
|
+
...k()
|
|
2940
2940
|
]
|
|
2941
2941
|
}],
|
|
2942
2942
|
/**
|
|
@@ -3037,7 +3037,7 @@ const $d = (e, t) => {
|
|
|
3037
3037
|
* @see https://tailwindcss.com/docs/text-indent
|
|
3038
3038
|
*/
|
|
3039
3039
|
indent: [{
|
|
3040
|
-
indent:
|
|
3040
|
+
indent: k()
|
|
3041
3041
|
}],
|
|
3042
3042
|
/**
|
|
3043
3043
|
* Vertical Alignment
|
|
@@ -3536,8 +3536,8 @@ const $d = (e, t) => {
|
|
|
3536
3536
|
"",
|
|
3537
3537
|
"none",
|
|
3538
3538
|
f,
|
|
3539
|
-
|
|
3540
|
-
|
|
3539
|
+
Kt,
|
|
3540
|
+
qt
|
|
3541
3541
|
]
|
|
3542
3542
|
}],
|
|
3543
3543
|
/**
|
|
@@ -3552,7 +3552,7 @@ const $d = (e, t) => {
|
|
|
3552
3552
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
3553
3553
|
*/
|
|
3554
3554
|
"inset-shadow": [{
|
|
3555
|
-
"inset-shadow": ["none", c,
|
|
3555
|
+
"inset-shadow": ["none", c, Kt, qt]
|
|
3556
3556
|
}],
|
|
3557
3557
|
/**
|
|
3558
3558
|
* Inset Box Shadow Color
|
|
@@ -3619,7 +3619,7 @@ const $d = (e, t) => {
|
|
|
3619
3619
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
3620
3620
|
*/
|
|
3621
3621
|
"text-shadow": [{
|
|
3622
|
-
"text-shadow": ["none", m,
|
|
3622
|
+
"text-shadow": ["none", m, Kt, qt]
|
|
3623
3623
|
}],
|
|
3624
3624
|
/**
|
|
3625
3625
|
* Text Shadow Color
|
|
@@ -3892,8 +3892,8 @@ const $d = (e, t) => {
|
|
|
3892
3892
|
"",
|
|
3893
3893
|
"none",
|
|
3894
3894
|
g,
|
|
3895
|
-
|
|
3896
|
-
|
|
3895
|
+
Kt,
|
|
3896
|
+
qt
|
|
3897
3897
|
]
|
|
3898
3898
|
}],
|
|
3899
3899
|
/**
|
|
@@ -4029,21 +4029,21 @@ const $d = (e, t) => {
|
|
|
4029
4029
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4030
4030
|
*/
|
|
4031
4031
|
"border-spacing": [{
|
|
4032
|
-
"border-spacing":
|
|
4032
|
+
"border-spacing": k()
|
|
4033
4033
|
}],
|
|
4034
4034
|
/**
|
|
4035
4035
|
* Border Spacing X
|
|
4036
4036
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4037
4037
|
*/
|
|
4038
4038
|
"border-spacing-x": [{
|
|
4039
|
-
"border-spacing-x":
|
|
4039
|
+
"border-spacing-x": k()
|
|
4040
4040
|
}],
|
|
4041
4041
|
/**
|
|
4042
4042
|
* Border Spacing Y
|
|
4043
4043
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
4044
4044
|
*/
|
|
4045
4045
|
"border-spacing-y": [{
|
|
4046
|
-
"border-spacing-y":
|
|
4046
|
+
"border-spacing-y": k()
|
|
4047
4047
|
}],
|
|
4048
4048
|
/**
|
|
4049
4049
|
* Table Layout
|
|
@@ -4335,154 +4335,154 @@ const $d = (e, t) => {
|
|
|
4335
4335
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4336
4336
|
*/
|
|
4337
4337
|
"scroll-m": [{
|
|
4338
|
-
"scroll-m":
|
|
4338
|
+
"scroll-m": k()
|
|
4339
4339
|
}],
|
|
4340
4340
|
/**
|
|
4341
4341
|
* Scroll Margin Inline
|
|
4342
4342
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4343
4343
|
*/
|
|
4344
4344
|
"scroll-mx": [{
|
|
4345
|
-
"scroll-mx":
|
|
4345
|
+
"scroll-mx": k()
|
|
4346
4346
|
}],
|
|
4347
4347
|
/**
|
|
4348
4348
|
* Scroll Margin Block
|
|
4349
4349
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4350
4350
|
*/
|
|
4351
4351
|
"scroll-my": [{
|
|
4352
|
-
"scroll-my":
|
|
4352
|
+
"scroll-my": k()
|
|
4353
4353
|
}],
|
|
4354
4354
|
/**
|
|
4355
4355
|
* Scroll Margin Inline Start
|
|
4356
4356
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4357
4357
|
*/
|
|
4358
4358
|
"scroll-ms": [{
|
|
4359
|
-
"scroll-ms":
|
|
4359
|
+
"scroll-ms": k()
|
|
4360
4360
|
}],
|
|
4361
4361
|
/**
|
|
4362
4362
|
* Scroll Margin Inline End
|
|
4363
4363
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4364
4364
|
*/
|
|
4365
4365
|
"scroll-me": [{
|
|
4366
|
-
"scroll-me":
|
|
4366
|
+
"scroll-me": k()
|
|
4367
4367
|
}],
|
|
4368
4368
|
/**
|
|
4369
4369
|
* Scroll Margin Block Start
|
|
4370
4370
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4371
4371
|
*/
|
|
4372
4372
|
"scroll-mbs": [{
|
|
4373
|
-
"scroll-mbs":
|
|
4373
|
+
"scroll-mbs": k()
|
|
4374
4374
|
}],
|
|
4375
4375
|
/**
|
|
4376
4376
|
* Scroll Margin Block End
|
|
4377
4377
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4378
4378
|
*/
|
|
4379
4379
|
"scroll-mbe": [{
|
|
4380
|
-
"scroll-mbe":
|
|
4380
|
+
"scroll-mbe": k()
|
|
4381
4381
|
}],
|
|
4382
4382
|
/**
|
|
4383
4383
|
* Scroll Margin Top
|
|
4384
4384
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4385
4385
|
*/
|
|
4386
4386
|
"scroll-mt": [{
|
|
4387
|
-
"scroll-mt":
|
|
4387
|
+
"scroll-mt": k()
|
|
4388
4388
|
}],
|
|
4389
4389
|
/**
|
|
4390
4390
|
* Scroll Margin Right
|
|
4391
4391
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4392
4392
|
*/
|
|
4393
4393
|
"scroll-mr": [{
|
|
4394
|
-
"scroll-mr":
|
|
4394
|
+
"scroll-mr": k()
|
|
4395
4395
|
}],
|
|
4396
4396
|
/**
|
|
4397
4397
|
* Scroll Margin Bottom
|
|
4398
4398
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4399
4399
|
*/
|
|
4400
4400
|
"scroll-mb": [{
|
|
4401
|
-
"scroll-mb":
|
|
4401
|
+
"scroll-mb": k()
|
|
4402
4402
|
}],
|
|
4403
4403
|
/**
|
|
4404
4404
|
* Scroll Margin Left
|
|
4405
4405
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4406
4406
|
*/
|
|
4407
4407
|
"scroll-ml": [{
|
|
4408
|
-
"scroll-ml":
|
|
4408
|
+
"scroll-ml": k()
|
|
4409
4409
|
}],
|
|
4410
4410
|
/**
|
|
4411
4411
|
* Scroll Padding
|
|
4412
4412
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4413
4413
|
*/
|
|
4414
4414
|
"scroll-p": [{
|
|
4415
|
-
"scroll-p":
|
|
4415
|
+
"scroll-p": k()
|
|
4416
4416
|
}],
|
|
4417
4417
|
/**
|
|
4418
4418
|
* Scroll Padding Inline
|
|
4419
4419
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4420
4420
|
*/
|
|
4421
4421
|
"scroll-px": [{
|
|
4422
|
-
"scroll-px":
|
|
4422
|
+
"scroll-px": k()
|
|
4423
4423
|
}],
|
|
4424
4424
|
/**
|
|
4425
4425
|
* Scroll Padding Block
|
|
4426
4426
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4427
4427
|
*/
|
|
4428
4428
|
"scroll-py": [{
|
|
4429
|
-
"scroll-py":
|
|
4429
|
+
"scroll-py": k()
|
|
4430
4430
|
}],
|
|
4431
4431
|
/**
|
|
4432
4432
|
* Scroll Padding Inline Start
|
|
4433
4433
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4434
4434
|
*/
|
|
4435
4435
|
"scroll-ps": [{
|
|
4436
|
-
"scroll-ps":
|
|
4436
|
+
"scroll-ps": k()
|
|
4437
4437
|
}],
|
|
4438
4438
|
/**
|
|
4439
4439
|
* Scroll Padding Inline End
|
|
4440
4440
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4441
4441
|
*/
|
|
4442
4442
|
"scroll-pe": [{
|
|
4443
|
-
"scroll-pe":
|
|
4443
|
+
"scroll-pe": k()
|
|
4444
4444
|
}],
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Scroll Padding Block Start
|
|
4447
4447
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4448
4448
|
*/
|
|
4449
4449
|
"scroll-pbs": [{
|
|
4450
|
-
"scroll-pbs":
|
|
4450
|
+
"scroll-pbs": k()
|
|
4451
4451
|
}],
|
|
4452
4452
|
/**
|
|
4453
4453
|
* Scroll Padding Block End
|
|
4454
4454
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4455
4455
|
*/
|
|
4456
4456
|
"scroll-pbe": [{
|
|
4457
|
-
"scroll-pbe":
|
|
4457
|
+
"scroll-pbe": k()
|
|
4458
4458
|
}],
|
|
4459
4459
|
/**
|
|
4460
4460
|
* Scroll Padding Top
|
|
4461
4461
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4462
4462
|
*/
|
|
4463
4463
|
"scroll-pt": [{
|
|
4464
|
-
"scroll-pt":
|
|
4464
|
+
"scroll-pt": k()
|
|
4465
4465
|
}],
|
|
4466
4466
|
/**
|
|
4467
4467
|
* Scroll Padding Right
|
|
4468
4468
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4469
4469
|
*/
|
|
4470
4470
|
"scroll-pr": [{
|
|
4471
|
-
"scroll-pr":
|
|
4471
|
+
"scroll-pr": k()
|
|
4472
4472
|
}],
|
|
4473
4473
|
/**
|
|
4474
4474
|
* Scroll Padding Bottom
|
|
4475
4475
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4476
4476
|
*/
|
|
4477
4477
|
"scroll-pb": [{
|
|
4478
|
-
"scroll-pb":
|
|
4478
|
+
"scroll-pb": k()
|
|
4479
4479
|
}],
|
|
4480
4480
|
/**
|
|
4481
4481
|
* Scroll Padding Left
|
|
4482
4482
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4483
4483
|
*/
|
|
4484
4484
|
"scroll-pl": [{
|
|
4485
|
-
"scroll-pl":
|
|
4485
|
+
"scroll-pl": k()
|
|
4486
4486
|
}],
|
|
4487
4487
|
/**
|
|
4488
4488
|
* Scroll Snap Align
|
|
@@ -4642,8 +4642,8 @@ const $d = (e, t) => {
|
|
|
4642
4642
|
},
|
|
4643
4643
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4644
4644
|
};
|
|
4645
|
-
}, Ru = /* @__PURE__ */ ru(
|
|
4646
|
-
function
|
|
4645
|
+
}, Ru = /* @__PURE__ */ ru(ku), W = (...e) => Ru(bs(e));
|
|
4646
|
+
function Mt({ className: e, ...t }) {
|
|
4647
4647
|
return /* @__PURE__ */ p(
|
|
4648
4648
|
"div",
|
|
4649
4649
|
{
|
|
@@ -4669,7 +4669,7 @@ function Nu({ className: e, ...t }) {
|
|
|
4669
4669
|
}
|
|
4670
4670
|
);
|
|
4671
4671
|
}
|
|
4672
|
-
function
|
|
4672
|
+
function Ot({ className: e, ...t }) {
|
|
4673
4673
|
return /* @__PURE__ */ p(
|
|
4674
4674
|
"div",
|
|
4675
4675
|
{
|
|
@@ -4734,7 +4734,7 @@ function ne(...e) {
|
|
|
4734
4734
|
return u.useCallback(Ms(...e), e);
|
|
4735
4735
|
}
|
|
4736
4736
|
// @__NO_SIDE_EFFECTS__
|
|
4737
|
-
function
|
|
4737
|
+
function Lt(e) {
|
|
4738
4738
|
const t = /* @__PURE__ */ Tu(e), n = u.forwardRef((o, r) => {
|
|
4739
4739
|
const { children: s, ...a } = o, i = u.Children.toArray(s), l = i.find(Au);
|
|
4740
4740
|
if (l) {
|
|
@@ -4745,7 +4745,7 @@ function Ot(e) {
|
|
|
4745
4745
|
});
|
|
4746
4746
|
return n.displayName = `${e}.Slot`, n;
|
|
4747
4747
|
}
|
|
4748
|
-
var Os = /* @__PURE__ */
|
|
4748
|
+
var Os = /* @__PURE__ */ Lt("Slot");
|
|
4749
4749
|
// @__NO_SIDE_EFFECTS__
|
|
4750
4750
|
function Tu(e) {
|
|
4751
4751
|
const t = u.forwardRef((n, o) => {
|
|
@@ -4802,7 +4802,7 @@ var Mu = [
|
|
|
4802
4802
|
"svg",
|
|
4803
4803
|
"ul"
|
|
4804
4804
|
], H = Mu.reduce((e, t) => {
|
|
4805
|
-
const n = /* @__PURE__ */
|
|
4805
|
+
const n = /* @__PURE__ */ Lt(`Primitive.${t}`), o = u.forwardRef((r, s) => {
|
|
4806
4806
|
const { asChild: a, ...i } = r, l = a ? n : t;
|
|
4807
4807
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(l, { ...i, ref: s });
|
|
4808
4808
|
});
|
|
@@ -4894,14 +4894,14 @@ function $s(e) {
|
|
|
4894
4894
|
return /* @__PURE__ */ p(r, { scope: v, itemMap: w, collectionRef: x, children: y });
|
|
4895
4895
|
};
|
|
4896
4896
|
a.displayName = t;
|
|
4897
|
-
const i = e + "CollectionSlot", l = /* @__PURE__ */
|
|
4897
|
+
const i = e + "CollectionSlot", l = /* @__PURE__ */ Lt(i), d = N.forwardRef(
|
|
4898
4898
|
(h, v) => {
|
|
4899
4899
|
const { scope: y, children: x } = h, w = s(i, y), S = ne(v, w.collectionRef);
|
|
4900
4900
|
return /* @__PURE__ */ p(l, { ref: S, children: x });
|
|
4901
4901
|
}
|
|
4902
4902
|
);
|
|
4903
4903
|
d.displayName = i;
|
|
4904
|
-
const f = e + "CollectionItemSlot", c = "data-radix-collection-item", m = /* @__PURE__ */
|
|
4904
|
+
const f = e + "CollectionItemSlot", c = "data-radix-collection-item", m = /* @__PURE__ */ Lt(f), g = N.forwardRef(
|
|
4905
4905
|
(h, v) => {
|
|
4906
4906
|
const { scope: y, children: x, ...w } = h, S = N.useRef(null), R = ne(v, S), C = s(f, y);
|
|
4907
4907
|
return N.useEffect(() => (C.itemMap.set(S, { ref: S, ...w }), () => void C.itemMap.delete(S))), /* @__PURE__ */ p(m, { [c]: "", ref: R, children: x });
|
|
@@ -4915,7 +4915,7 @@ function $s(e) {
|
|
|
4915
4915
|
if (!x) return [];
|
|
4916
4916
|
const w = Array.from(x.querySelectorAll(`[${c}]`));
|
|
4917
4917
|
return Array.from(v.itemMap.values()).sort(
|
|
4918
|
-
(C,
|
|
4918
|
+
(C, E) => w.indexOf(C.ref.current) - w.indexOf(E.ref.current)
|
|
4919
4919
|
);
|
|
4920
4920
|
}, [v.collectionRef, v.itemMap]);
|
|
4921
4921
|
}
|
|
@@ -5004,19 +5004,19 @@ function Wu(e) {
|
|
|
5004
5004
|
}
|
|
5005
5005
|
});
|
|
5006
5006
|
return u.useEffect(() => {
|
|
5007
|
-
const d =
|
|
5007
|
+
const d = Xt(o.current);
|
|
5008
5008
|
s.current = i === "mounted" ? d : "none";
|
|
5009
5009
|
}, [i]), ie(() => {
|
|
5010
5010
|
const d = o.current, f = r.current;
|
|
5011
5011
|
if (f !== e) {
|
|
5012
|
-
const m = s.current, g =
|
|
5012
|
+
const m = s.current, g = Xt(d);
|
|
5013
5013
|
e ? l("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(f && m !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
5014
5014
|
}
|
|
5015
5015
|
}, [e, l]), ie(() => {
|
|
5016
5016
|
if (t) {
|
|
5017
5017
|
let d;
|
|
5018
5018
|
const f = t.ownerDocument.defaultView ?? window, c = (g) => {
|
|
5019
|
-
const h =
|
|
5019
|
+
const h = Xt(o.current).includes(CSS.escape(g.animationName));
|
|
5020
5020
|
if (g.target === t && h && (l("ANIMATION_END"), !r.current)) {
|
|
5021
5021
|
const v = t.style.animationFillMode;
|
|
5022
5022
|
t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
|
|
@@ -5024,7 +5024,7 @@ function Wu(e) {
|
|
|
5024
5024
|
});
|
|
5025
5025
|
}
|
|
5026
5026
|
}, m = (g) => {
|
|
5027
|
-
g.target === t && (s.current =
|
|
5027
|
+
g.target === t && (s.current = Xt(o.current));
|
|
5028
5028
|
};
|
|
5029
5029
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", c), t.addEventListener("animationend", c), () => {
|
|
5030
5030
|
f.clearTimeout(d), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
|
|
@@ -5038,7 +5038,7 @@ function Wu(e) {
|
|
|
5038
5038
|
}, [])
|
|
5039
5039
|
};
|
|
5040
5040
|
}
|
|
5041
|
-
function
|
|
5041
|
+
function Xt(e) {
|
|
5042
5042
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
5043
5043
|
}
|
|
5044
5044
|
function Vu(e) {
|
|
@@ -5155,7 +5155,7 @@ function Mo(e) {
|
|
|
5155
5155
|
return e ? "open" : "closed";
|
|
5156
5156
|
}
|
|
5157
5157
|
var Ku = Fs, Xu = u.createContext(void 0);
|
|
5158
|
-
function
|
|
5158
|
+
function $t(e) {
|
|
5159
5159
|
const t = u.useContext(Xu);
|
|
5160
5160
|
return e || t || "ltr";
|
|
5161
5161
|
}
|
|
@@ -5177,7 +5177,7 @@ function Zu(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5177
5177
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
5178
5178
|
}, [n, t]);
|
|
5179
5179
|
}
|
|
5180
|
-
var Ju = "DismissableLayer", co = "dismissableLayer.update", Qu = "dismissableLayer.pointerDownOutside", ef = "dismissableLayer.focusOutside",
|
|
5180
|
+
var Ju = "DismissableLayer", co = "dismissableLayer.update", Qu = "dismissableLayer.pointerDownOutside", ef = "dismissableLayer.focusOutside", Er, Vs = u.createContext({
|
|
5181
5181
|
layers: /* @__PURE__ */ new Set(),
|
|
5182
5182
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5183
5183
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5191,25 +5191,25 @@ var Ju = "DismissableLayer", co = "dismissableLayer.update", Qu = "dismissableLa
|
|
|
5191
5191
|
onInteractOutside: a,
|
|
5192
5192
|
onDismiss: i,
|
|
5193
5193
|
...l
|
|
5194
|
-
} = e, d = u.useContext(Vs), [f, c] = u.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = u.useState({}), b = ne(t, (
|
|
5195
|
-
const
|
|
5196
|
-
!S || T || (r == null || r(
|
|
5197
|
-
}, m), C = rf((
|
|
5198
|
-
const
|
|
5199
|
-
[...d.branches].some((M) => M.contains(
|
|
5194
|
+
} = e, d = u.useContext(Vs), [f, c] = u.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = u.useState({}), b = ne(t, (E) => c(E)), h = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(v), x = f ? h.indexOf(f) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= y, R = of((E) => {
|
|
5195
|
+
const k = E.target, T = [...d.branches].some((M) => M.contains(k));
|
|
5196
|
+
!S || T || (r == null || r(E), a == null || a(E), E.defaultPrevented || i == null || i());
|
|
5197
|
+
}, m), C = rf((E) => {
|
|
5198
|
+
const k = E.target;
|
|
5199
|
+
[...d.branches].some((M) => M.contains(k)) || (s == null || s(E), a == null || a(E), E.defaultPrevented || i == null || i());
|
|
5200
5200
|
}, m);
|
|
5201
|
-
return Zu((
|
|
5202
|
-
x === d.layers.size - 1 && (o == null || o(
|
|
5201
|
+
return Zu((E) => {
|
|
5202
|
+
x === d.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
|
|
5203
5203
|
}, m), u.useEffect(() => {
|
|
5204
5204
|
if (f)
|
|
5205
|
-
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
5206
|
-
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
5205
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Er = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), kr(), () => {
|
|
5206
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Er);
|
|
5207
5207
|
};
|
|
5208
5208
|
}, [f, m, n, d]), u.useEffect(() => () => {
|
|
5209
|
-
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
5209
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), kr());
|
|
5210
5210
|
}, [f, d]), u.useEffect(() => {
|
|
5211
|
-
const
|
|
5212
|
-
return document.addEventListener(co,
|
|
5211
|
+
const E = () => g({});
|
|
5212
|
+
return document.addEventListener(co, E), () => document.removeEventListener(co, E);
|
|
5213
5213
|
}, []), /* @__PURE__ */ p(
|
|
5214
5214
|
H.div,
|
|
5215
5215
|
{
|
|
@@ -5285,7 +5285,7 @@ function rf(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5285
5285
|
onBlurCapture: () => o.current = !1
|
|
5286
5286
|
};
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function kr() {
|
|
5289
5289
|
const e = new CustomEvent(co);
|
|
5290
5290
|
document.dispatchEvent(e);
|
|
5291
5291
|
}
|
|
@@ -5583,7 +5583,7 @@ var qs = function(e) {
|
|
|
5583
5583
|
return u.createElement(o, Le({}, n));
|
|
5584
5584
|
};
|
|
5585
5585
|
qs.isSideCarExport = !0;
|
|
5586
|
-
function
|
|
5586
|
+
function Ef(e, t) {
|
|
5587
5587
|
return e.useMedium(t), qs;
|
|
5588
5588
|
}
|
|
5589
5589
|
var Ks = Cf(), Kn = function() {
|
|
@@ -5592,12 +5592,12 @@ var Ks = Cf(), Kn = function() {
|
|
|
5592
5592
|
onScrollCapture: Kn,
|
|
5593
5593
|
onWheelCapture: Kn,
|
|
5594
5594
|
onTouchMoveCapture: Kn
|
|
5595
|
-
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, c = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, w = e.gapMode, S = Ys(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, C = wf([n, t]),
|
|
5595
|
+
}), r = o[0], s = o[1], a = e.forwardProps, i = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, c = e.shards, m = e.sideCar, g = e.noRelative, b = e.noIsolation, h = e.inert, v = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, w = e.gapMode, S = Ys(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = m, C = wf([n, t]), E = Le(Le({}, S), r);
|
|
5596
5596
|
return u.createElement(
|
|
5597
5597
|
u.Fragment,
|
|
5598
5598
|
null,
|
|
5599
5599
|
f && u.createElement(R, { sideCar: Ks, removeScrollBar: d, shards: c, noRelative: g, noIsolation: b, inert: h, setCallbacks: s, allowPinchZoom: !!v, lockRef: n, gapMode: w }),
|
|
5600
|
-
a ? u.cloneElement(u.Children.only(i), Le(Le({},
|
|
5600
|
+
a ? u.cloneElement(u.Children.only(i), Le(Le({}, E), { ref: C })) : u.createElement(x, Le({}, E, { className: l, ref: C }), i)
|
|
5601
5601
|
);
|
|
5602
5602
|
});
|
|
5603
5603
|
Sn.defaultProps = {
|
|
@@ -5609,7 +5609,7 @@ Sn.classNames = {
|
|
|
5609
5609
|
fullWidth: rn,
|
|
5610
5610
|
zeroRight: on
|
|
5611
5611
|
};
|
|
5612
|
-
var
|
|
5612
|
+
var kf = function() {
|
|
5613
5613
|
if (typeof __webpack_nonce__ < "u")
|
|
5614
5614
|
return __webpack_nonce__;
|
|
5615
5615
|
};
|
|
@@ -5618,7 +5618,7 @@ function Rf() {
|
|
|
5618
5618
|
return null;
|
|
5619
5619
|
var e = document.createElement("style");
|
|
5620
5620
|
e.type = "text/css";
|
|
5621
|
-
var t =
|
|
5621
|
+
var t = kf();
|
|
5622
5622
|
return t && e.setAttribute("nonce", t), e;
|
|
5623
5623
|
}
|
|
5624
5624
|
function Nf(e, t) {
|
|
@@ -5737,12 +5737,12 @@ var Pf = function() {
|
|
|
5737
5737
|
}, uo = !1;
|
|
5738
5738
|
if (typeof window < "u")
|
|
5739
5739
|
try {
|
|
5740
|
-
var
|
|
5740
|
+
var Zt = Object.defineProperty({}, "passive", {
|
|
5741
5741
|
get: function() {
|
|
5742
5742
|
return uo = !0, !0;
|
|
5743
5743
|
}
|
|
5744
5744
|
});
|
|
5745
|
-
window.addEventListener("test",
|
|
5745
|
+
window.addEventListener("test", Zt, Zt), window.removeEventListener("test", Zt, Zt);
|
|
5746
5746
|
} catch {
|
|
5747
5747
|
uo = !1;
|
|
5748
5748
|
}
|
|
@@ -5809,7 +5809,7 @@ var bt = uo ? { passive: !1 } : !1, $f = function(e) {
|
|
|
5809
5809
|
l && (t.contains(i) || t === i)
|
|
5810
5810
|
);
|
|
5811
5811
|
return (f && Math.abs(c) < 1 || !f && Math.abs(m) < 1) && (d = !0), d;
|
|
5812
|
-
},
|
|
5812
|
+
}, Jt = function(e) {
|
|
5813
5813
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5814
5814
|
}, Or = function(e) {
|
|
5815
5815
|
return [e.deltaX, e.deltaY];
|
|
@@ -5843,16 +5843,16 @@ function qf(e) {
|
|
|
5843
5843
|
var i = u.useCallback(function(h, v) {
|
|
5844
5844
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
5845
5845
|
return !a.current.allowPinchZoom;
|
|
5846
|
-
var y =
|
|
5847
|
-
if ("touches" in h &&
|
|
5846
|
+
var y = Jt(h), x = n.current, w = "deltaX" in h ? h.deltaX : x[0] - y[0], S = "deltaY" in h ? h.deltaY : x[1] - y[1], R, C = h.target, E = Math.abs(w) > Math.abs(S) ? "h" : "v";
|
|
5847
|
+
if ("touches" in h && E === "h" && C.type === "range")
|
|
5848
5848
|
return !1;
|
|
5849
|
-
var
|
|
5849
|
+
var k = window.getSelection(), T = k && k.anchorNode, M = T ? T === C || T.contains(C) : !1;
|
|
5850
5850
|
if (M)
|
|
5851
5851
|
return !1;
|
|
5852
|
-
var _ = Mr(
|
|
5852
|
+
var _ = Mr(E, C);
|
|
5853
5853
|
if (!_)
|
|
5854
5854
|
return !0;
|
|
5855
|
-
if (_ ? R =
|
|
5855
|
+
if (_ ? R = E : (R = E === "v" ? "h" : "v", _ = Mr(E, C)), !_)
|
|
5856
5856
|
return !1;
|
|
5857
5857
|
if (!o.current && "changedTouches" in h && (w || S) && (o.current = R), !R)
|
|
5858
5858
|
return !0;
|
|
@@ -5861,7 +5861,7 @@ function qf(e) {
|
|
|
5861
5861
|
}, []), l = u.useCallback(function(h) {
|
|
5862
5862
|
var v = h;
|
|
5863
5863
|
if (!(!yt.length || yt[yt.length - 1] !== s)) {
|
|
5864
|
-
var y = "deltaY" in v ? Or(v) :
|
|
5864
|
+
var y = "deltaY" in v ? Or(v) : Jt(v), x = t.current.filter(function(R) {
|
|
5865
5865
|
return R.name === v.type && (R.target === v.target || v.target === R.shadowParent) && jf(R.delta, y);
|
|
5866
5866
|
})[0];
|
|
5867
5867
|
if (x && x.should) {
|
|
@@ -5883,11 +5883,11 @@ function qf(e) {
|
|
|
5883
5883
|
});
|
|
5884
5884
|
}, 1);
|
|
5885
5885
|
}, []), f = u.useCallback(function(h) {
|
|
5886
|
-
n.current =
|
|
5886
|
+
n.current = Jt(h), o.current = void 0;
|
|
5887
5887
|
}, []), c = u.useCallback(function(h) {
|
|
5888
5888
|
d(h.type, Or(h), h.target, i(h, e.lockRef.current));
|
|
5889
5889
|
}, []), m = u.useCallback(function(h) {
|
|
5890
|
-
d(h.type,
|
|
5890
|
+
d(h.type, Jt(h), h.target, i(h, e.lockRef.current));
|
|
5891
5891
|
}, []);
|
|
5892
5892
|
u.useEffect(function() {
|
|
5893
5893
|
return yt.push(s), e.setCallbacks({
|
|
@@ -5913,7 +5913,7 @@ function Kf(e) {
|
|
|
5913
5913
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
5914
5914
|
return t;
|
|
5915
5915
|
}
|
|
5916
|
-
const Xf =
|
|
5916
|
+
const Xf = Ef(Ks, qf);
|
|
5917
5917
|
var ea = u.forwardRef(function(e, t) {
|
|
5918
5918
|
return u.createElement(Sn, Le({}, e, { ref: t, sideCar: Xf }));
|
|
5919
5919
|
});
|
|
@@ -5923,7 +5923,7 @@ var Zf = function(e) {
|
|
|
5923
5923
|
return null;
|
|
5924
5924
|
var t = Array.isArray(e) ? e[0] : e;
|
|
5925
5925
|
return t.ownerDocument.body;
|
|
5926
|
-
}, wt = /* @__PURE__ */ new WeakMap(),
|
|
5926
|
+
}, wt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), en = {}, Zn = 0, ta = function(e) {
|
|
5927
5927
|
return e && (e.host || ta(e.parentNode));
|
|
5928
5928
|
}, Jf = function(e, t) {
|
|
5929
5929
|
return t.map(function(n) {
|
|
@@ -5936,8 +5936,8 @@ var Zf = function(e) {
|
|
|
5936
5936
|
});
|
|
5937
5937
|
}, Qf = function(e, t, n, o) {
|
|
5938
5938
|
var r = Jf(t, Array.isArray(e) ? e : [e]);
|
|
5939
|
-
|
|
5940
|
-
var s =
|
|
5939
|
+
en[n] || (en[n] = /* @__PURE__ */ new WeakMap());
|
|
5940
|
+
var s = en[n], a = [], i = /* @__PURE__ */ new Set(), l = new Set(r), d = function(c) {
|
|
5941
5941
|
!c || i.has(c) || (i.add(c), d(c.parentNode));
|
|
5942
5942
|
};
|
|
5943
5943
|
r.forEach(d);
|
|
@@ -5948,7 +5948,7 @@ var Zf = function(e) {
|
|
|
5948
5948
|
else
|
|
5949
5949
|
try {
|
|
5950
5950
|
var g = m.getAttribute(o), b = g !== null && g !== "false", h = (wt.get(m) || 0) + 1, v = (s.get(m) || 0) + 1;
|
|
5951
|
-
wt.set(m, h), s.set(m, v), a.push(m), h === 1 && b &&
|
|
5951
|
+
wt.set(m, h), s.set(m, v), a.push(m), h === 1 && b && Qt.set(m, !0), v === 1 && m.setAttribute(n, "true"), b || m.setAttribute(o, "true");
|
|
5952
5952
|
} catch (y) {
|
|
5953
5953
|
console.error("aria-hidden: cannot operate on ", m, y);
|
|
5954
5954
|
}
|
|
@@ -5957,8 +5957,8 @@ var Zf = function(e) {
|
|
|
5957
5957
|
return f(t), i.clear(), Zn++, function() {
|
|
5958
5958
|
a.forEach(function(c) {
|
|
5959
5959
|
var m = wt.get(c) - 1, g = s.get(c) - 1;
|
|
5960
|
-
wt.set(c, m), s.set(c, g), m || (
|
|
5961
|
-
}), Zn--, Zn || (wt = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(),
|
|
5960
|
+
wt.set(c, m), s.set(c, g), m || (Qt.has(c) || c.removeAttribute(o), Qt.delete(c)), g || c.removeAttribute(n);
|
|
5961
|
+
}), Zn--, Zn || (wt = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), en = {});
|
|
5962
5962
|
};
|
|
5963
5963
|
}, ep = function(e, t, n) {
|
|
5964
5964
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -6097,7 +6097,7 @@ function Cn(e) {
|
|
|
6097
6097
|
const t = u.useRef({ value: e, previous: e });
|
|
6098
6098
|
return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
6099
6099
|
}
|
|
6100
|
-
function
|
|
6100
|
+
function En(e) {
|
|
6101
6101
|
const [t, n] = u.useState(void 0);
|
|
6102
6102
|
return ie(() => {
|
|
6103
6103
|
if (e) {
|
|
@@ -6119,7 +6119,7 @@ function kn(e) {
|
|
|
6119
6119
|
n(void 0);
|
|
6120
6120
|
}, [e]), t;
|
|
6121
6121
|
}
|
|
6122
|
-
var
|
|
6122
|
+
var kn = "Checkbox", [fp] = ye(kn), [pp, zo] = fp(kn);
|
|
6123
6123
|
function mp(e) {
|
|
6124
6124
|
const {
|
|
6125
6125
|
__scopeCheckbox: t,
|
|
@@ -6138,7 +6138,7 @@ function mp(e) {
|
|
|
6138
6138
|
prop: n,
|
|
6139
6139
|
defaultProp: r ?? !1,
|
|
6140
6140
|
onChange: l,
|
|
6141
|
-
caller:
|
|
6141
|
+
caller: kn
|
|
6142
6142
|
}), [b, h] = u.useState(null), [v, y] = u.useState(null), x = u.useRef(!1), w = b ? !!a || !!b.closest("form") : (
|
|
6143
6143
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
6144
6144
|
!0
|
|
@@ -6257,7 +6257,7 @@ var da = u.forwardRef(
|
|
|
6257
6257
|
);
|
|
6258
6258
|
}
|
|
6259
6259
|
);
|
|
6260
|
-
da.displayName =
|
|
6260
|
+
da.displayName = kn;
|
|
6261
6261
|
var ua = "CheckboxIndicator", fa = u.forwardRef(
|
|
6262
6262
|
(e, t) => {
|
|
6263
6263
|
const { __scopeCheckbox: n, forceMount: o, ...r } = e, s = zo(ua, n);
|
|
@@ -6294,7 +6294,7 @@ var pa = "CheckboxBubbleInput", ma = u.forwardRef(
|
|
|
6294
6294
|
form: c,
|
|
6295
6295
|
bubbleInput: m,
|
|
6296
6296
|
setBubbleInput: g
|
|
6297
|
-
} = zo(pa, e), b = ne(n, g), h = Cn(s), v =
|
|
6297
|
+
} = zo(pa, e), b = ne(n, g), h = Cn(s), v = En(o);
|
|
6298
6298
|
u.useEffect(() => {
|
|
6299
6299
|
const x = m;
|
|
6300
6300
|
if (!x) return;
|
|
@@ -6303,8 +6303,8 @@ var pa = "CheckboxBubbleInput", ma = u.forwardRef(
|
|
|
6303
6303
|
"checked"
|
|
6304
6304
|
).set, C = !r.current;
|
|
6305
6305
|
if (h !== s && R) {
|
|
6306
|
-
const
|
|
6307
|
-
x.indeterminate = Ze(s), R.call(x, Ze(s) ? !1 : s), x.dispatchEvent(
|
|
6306
|
+
const E = new Event("click", { bubbles: C });
|
|
6307
|
+
x.indeterminate = Ze(s), R.call(x, Ze(s) ? !1 : s), x.dispatchEvent(E);
|
|
6308
6308
|
}
|
|
6309
6309
|
}, [m, h, s, r]);
|
|
6310
6310
|
const y = u.useRef(Ze(s) ? !1 : s);
|
|
@@ -6348,7 +6348,7 @@ function Ze(e) {
|
|
|
6348
6348
|
function ha(e) {
|
|
6349
6349
|
return Ze(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6350
6350
|
}
|
|
6351
|
-
const gp = ["top", "right", "bottom", "left"], Je = Math.min, Ce = Math.max, dn = Math.round,
|
|
6351
|
+
const gp = ["top", "right", "bottom", "left"], Je = Math.min, Ce = Math.max, dn = Math.round, tn = Math.floor, ze = (e) => ({
|
|
6352
6352
|
x: e,
|
|
6353
6353
|
y: e
|
|
6354
6354
|
}), vp = {
|
|
@@ -6417,7 +6417,7 @@ function un(e) {
|
|
|
6417
6417
|
const t = Ue(e);
|
|
6418
6418
|
return vp[t] + e.slice(t.length);
|
|
6419
6419
|
}
|
|
6420
|
-
function
|
|
6420
|
+
function Ep(e) {
|
|
6421
6421
|
return {
|
|
6422
6422
|
top: 0,
|
|
6423
6423
|
right: 0,
|
|
@@ -6427,7 +6427,7 @@ function kp(e) {
|
|
|
6427
6427
|
};
|
|
6428
6428
|
}
|
|
6429
6429
|
function ga(e) {
|
|
6430
|
-
return typeof e != "number" ?
|
|
6430
|
+
return typeof e != "number" ? Ep(e) : {
|
|
6431
6431
|
top: e,
|
|
6432
6432
|
right: e,
|
|
6433
6433
|
bottom: e,
|
|
@@ -6500,7 +6500,7 @@ function Hr(e, t, n) {
|
|
|
6500
6500
|
}
|
|
6501
6501
|
return g;
|
|
6502
6502
|
}
|
|
6503
|
-
async function
|
|
6503
|
+
async function kp(e, t) {
|
|
6504
6504
|
var n;
|
|
6505
6505
|
t === void 0 && (t = {});
|
|
6506
6506
|
const {
|
|
@@ -6553,7 +6553,7 @@ const Rp = 50, Np = async (e, t, n) => {
|
|
|
6553
6553
|
platform: a
|
|
6554
6554
|
} = n, i = a.detectOverflow ? a : {
|
|
6555
6555
|
...a,
|
|
6556
|
-
detectOverflow:
|
|
6556
|
+
detectOverflow: kp
|
|
6557
6557
|
}, l = await (a.isRTL == null ? void 0 : a.isRTL(t));
|
|
6558
6558
|
let d = await a.getElementRects({
|
|
6559
6559
|
reference: e,
|
|
@@ -6631,9 +6631,9 @@ const Rp = 50, Np = async (e, t, n) => {
|
|
|
6631
6631
|
x: n,
|
|
6632
6632
|
y: o
|
|
6633
6633
|
}, g = Bo(r), b = Fo(g), h = await a.getDimensions(d), v = g === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", S = s.reference[b] + s.reference[g] - m[g] - s.floating[b], R = m[g] - s.reference[g], C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
|
|
6634
|
-
let
|
|
6635
|
-
(!
|
|
6636
|
-
const
|
|
6634
|
+
let E = C ? C[w] : 0;
|
|
6635
|
+
(!E || !await (a.isElement == null ? void 0 : a.isElement(C))) && (E = i.floating[w] || s.floating[b]);
|
|
6636
|
+
const k = S / 2 - R / 2, T = E / 2 - h[b] / 2 - 1, M = Je(c[y], T), _ = Je(c[x], T), L = M, U = E - h[b] - _, q = E / 2 - h[b] / 2 + k, J = fo(L, q, U), P = !l.arrow && Nt(r) != null && q !== J && s.reference[b] / 2 - (q < L ? M : _) - h[b] / 2 < 0, $ = P ? q < L ? q - L : q - U : 0;
|
|
6637
6637
|
return {
|
|
6638
6638
|
[g]: m[g] + $,
|
|
6639
6639
|
data: {
|
|
@@ -6672,18 +6672,18 @@ const Rp = 50, Np = async (e, t, n) => {
|
|
|
6672
6672
|
return {};
|
|
6673
6673
|
const y = Ue(r), x = De(i), w = Ue(i) === i, S = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), R = m || (w || !h ? [un(i)] : yp(i)), C = b !== "none";
|
|
6674
6674
|
!m && C && R.push(...Cp(i, h, b, S));
|
|
6675
|
-
const
|
|
6675
|
+
const E = [i, ...R], k = await l.detectOverflow(t, v), T = [];
|
|
6676
6676
|
let M = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
6677
|
-
if (f && T.push(
|
|
6677
|
+
if (f && T.push(k[y]), c) {
|
|
6678
6678
|
const q = bp(r, a, S);
|
|
6679
|
-
T.push(
|
|
6679
|
+
T.push(k[q[0]], k[q[1]]);
|
|
6680
6680
|
}
|
|
6681
6681
|
if (M = [...M, {
|
|
6682
6682
|
placement: r,
|
|
6683
6683
|
overflows: T
|
|
6684
6684
|
}], !T.every((q) => q <= 0)) {
|
|
6685
6685
|
var _, L;
|
|
6686
|
-
const q = (((_ = s.flip) == null ? void 0 : _.index) || 0) + 1, J =
|
|
6686
|
+
const q = (((_ = s.flip) == null ? void 0 : _.index) || 0) + 1, J = E[q];
|
|
6687
6687
|
if (J && (!(c === "alignment" ? x !== De(J) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6688
6688
|
// overflows the main axis.
|
|
6689
6689
|
M.every((D) => De(D.placement) === x ? D.overflows[0] > 0 : !0)))
|
|
@@ -6952,15 +6952,15 @@ const Ip = function(e) {
|
|
|
6952
6952
|
let v, y;
|
|
6953
6953
|
c === "top" || c === "bottom" ? (v = c, y = m === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (y = c, v = m === "end" ? "top" : "bottom");
|
|
6954
6954
|
const x = h - f.top - f.bottom, w = b - f.left - f.right, S = Je(h - f[v], x), R = Je(b - f[y], w), C = !t.middlewareData.shift;
|
|
6955
|
-
let
|
|
6956
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
6955
|
+
let E = S, k = R;
|
|
6956
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (o = t.middlewareData.shift) != null && o.enabled.y && (E = x), C && !m) {
|
|
6957
6957
|
const M = Ce(f.left, 0), _ = Ce(f.right, 0), L = Ce(f.top, 0), U = Ce(f.bottom, 0);
|
|
6958
|
-
g ?
|
|
6958
|
+
g ? k = b - 2 * (M !== 0 || _ !== 0 ? M + _ : Ce(f.left, f.right)) : E = h - 2 * (L !== 0 || U !== 0 ? L + U : Ce(f.top, f.bottom));
|
|
6959
6959
|
}
|
|
6960
6960
|
await l({
|
|
6961
6961
|
...t,
|
|
6962
|
-
availableWidth:
|
|
6963
|
-
availableHeight:
|
|
6962
|
+
availableWidth: k,
|
|
6963
|
+
availableHeight: E
|
|
6964
6964
|
});
|
|
6965
6965
|
const T = await a.getDimensions(i.floating);
|
|
6966
6966
|
return b !== T.width || h !== T.height ? {
|
|
@@ -6977,7 +6977,7 @@ function Rn() {
|
|
|
6977
6977
|
function Tt(e) {
|
|
6978
6978
|
return ba(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6979
6979
|
}
|
|
6980
|
-
function
|
|
6980
|
+
function Ee(e) {
|
|
6981
6981
|
var t;
|
|
6982
6982
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6983
6983
|
}
|
|
@@ -6986,18 +6986,18 @@ function Fe(e) {
|
|
|
6986
6986
|
return (t = (ba(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6987
6987
|
}
|
|
6988
6988
|
function ba(e) {
|
|
6989
|
-
return Rn() ? e instanceof Node || e instanceof
|
|
6989
|
+
return Rn() ? e instanceof Node || e instanceof Ee(e).Node : !1;
|
|
6990
6990
|
}
|
|
6991
6991
|
function _e(e) {
|
|
6992
|
-
return Rn() ? e instanceof Element || e instanceof
|
|
6992
|
+
return Rn() ? e instanceof Element || e instanceof Ee(e).Element : !1;
|
|
6993
6993
|
}
|
|
6994
6994
|
function je(e) {
|
|
6995
|
-
return Rn() ? e instanceof HTMLElement || e instanceof
|
|
6995
|
+
return Rn() ? e instanceof HTMLElement || e instanceof Ee(e).HTMLElement : !1;
|
|
6996
6996
|
}
|
|
6997
6997
|
function Ur(e) {
|
|
6998
|
-
return !Rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
6998
|
+
return !Rn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ee(e).ShadowRoot;
|
|
6999
6999
|
}
|
|
7000
|
-
function
|
|
7000
|
+
function Ft(e) {
|
|
7001
7001
|
const {
|
|
7002
7002
|
overflow: t,
|
|
7003
7003
|
overflowX: n,
|
|
@@ -7029,7 +7029,7 @@ function Ho(e) {
|
|
|
7029
7029
|
}
|
|
7030
7030
|
function Fp(e) {
|
|
7031
7031
|
let t = Qe(e);
|
|
7032
|
-
for (; je(t) && !
|
|
7032
|
+
for (; je(t) && !Et(t); ) {
|
|
7033
7033
|
if (Ho(t))
|
|
7034
7034
|
return t;
|
|
7035
7035
|
if (Nn(t))
|
|
@@ -7041,11 +7041,11 @@ function Fp(e) {
|
|
|
7041
7041
|
function Wo() {
|
|
7042
7042
|
return eo == null && (eo = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), eo;
|
|
7043
7043
|
}
|
|
7044
|
-
function
|
|
7044
|
+
function Et(e) {
|
|
7045
7045
|
return /^(html|body|#document)$/.test(Tt(e));
|
|
7046
7046
|
}
|
|
7047
7047
|
function Ie(e) {
|
|
7048
|
-
return
|
|
7048
|
+
return Ee(e).getComputedStyle(e);
|
|
7049
7049
|
}
|
|
7050
7050
|
function Tn(e) {
|
|
7051
7051
|
return _e(e) ? {
|
|
@@ -7070,17 +7070,17 @@ function Qe(e) {
|
|
|
7070
7070
|
}
|
|
7071
7071
|
function ya(e) {
|
|
7072
7072
|
const t = Qe(e);
|
|
7073
|
-
return
|
|
7073
|
+
return Et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : je(t) && Ft(t) ? t : ya(t);
|
|
7074
7074
|
}
|
|
7075
|
-
function
|
|
7075
|
+
function Dt(e, t, n) {
|
|
7076
7076
|
var o;
|
|
7077
7077
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
7078
|
-
const r = ya(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a =
|
|
7078
|
+
const r = ya(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Ee(r);
|
|
7079
7079
|
if (s) {
|
|
7080
7080
|
const i = mo(a);
|
|
7081
|
-
return t.concat(a, a.visualViewport || [],
|
|
7081
|
+
return t.concat(a, a.visualViewport || [], Ft(r) ? r : [], i && n ? Dt(i) : []);
|
|
7082
7082
|
} else
|
|
7083
|
-
return t.concat(r,
|
|
7083
|
+
return t.concat(r, Dt(r, [], n));
|
|
7084
7084
|
}
|
|
7085
7085
|
function mo(e) {
|
|
7086
7086
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -7115,14 +7115,14 @@ function Ct(e) {
|
|
|
7115
7115
|
}
|
|
7116
7116
|
const Bp = /* @__PURE__ */ ze(0);
|
|
7117
7117
|
function xa(e) {
|
|
7118
|
-
const t =
|
|
7118
|
+
const t = Ee(e);
|
|
7119
7119
|
return !Wo() || !t.visualViewport ? Bp : {
|
|
7120
7120
|
x: t.visualViewport.offsetLeft,
|
|
7121
7121
|
y: t.visualViewport.offsetTop
|
|
7122
7122
|
};
|
|
7123
7123
|
}
|
|
7124
7124
|
function Hp(e, t, n) {
|
|
7125
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
7125
|
+
return t === void 0 && (t = !1), !n || t && n !== Ee(e) ? !1 : t;
|
|
7126
7126
|
}
|
|
7127
7127
|
function ct(e, t, n, o) {
|
|
7128
7128
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -7132,11 +7132,11 @@ function ct(e, t, n, o) {
|
|
|
7132
7132
|
const i = Hp(s, n, o) ? xa(s) : ze(0);
|
|
7133
7133
|
let l = (r.left + i.x) / a.x, d = (r.top + i.y) / a.y, f = r.width / a.x, c = r.height / a.y;
|
|
7134
7134
|
if (s) {
|
|
7135
|
-
const m =
|
|
7135
|
+
const m = Ee(s), g = o && _e(o) ? Ee(o) : o;
|
|
7136
7136
|
let b = m, h = mo(b);
|
|
7137
7137
|
for (; h && o && g !== b; ) {
|
|
7138
7138
|
const v = Ct(h), y = h.getBoundingClientRect(), x = Ie(h), w = y.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = y.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
|
|
7139
|
-
l *= v.x, d *= v.y, f *= v.x, c *= v.y, l += w, d += S, b =
|
|
7139
|
+
l *= v.x, d *= v.y, f *= v.x, c *= v.y, l += w, d += S, b = Ee(h), h = mo(b);
|
|
7140
7140
|
}
|
|
7141
7141
|
}
|
|
7142
7142
|
return fn({
|
|
@@ -7172,7 +7172,7 @@ function Wp(e) {
|
|
|
7172
7172
|
scrollTop: 0
|
|
7173
7173
|
}, d = ze(1);
|
|
7174
7174
|
const f = ze(0), c = je(o);
|
|
7175
|
-
if ((c || !c && !s) && ((Tt(o) !== "body" ||
|
|
7175
|
+
if ((c || !c && !s) && ((Tt(o) !== "body" || Ft(a)) && (l = Tn(o)), c)) {
|
|
7176
7176
|
const g = ct(o);
|
|
7177
7177
|
d = Ct(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
|
|
7178
7178
|
}
|
|
@@ -7200,7 +7200,7 @@ function Up(e) {
|
|
|
7200
7200
|
}
|
|
7201
7201
|
const jr = 25;
|
|
7202
7202
|
function jp(e, t) {
|
|
7203
|
-
const n =
|
|
7203
|
+
const n = Ee(e), o = Fe(e), r = n.visualViewport;
|
|
7204
7204
|
let s = o.clientWidth, a = o.clientHeight, i = 0, l = 0;
|
|
7205
7205
|
if (r) {
|
|
7206
7206
|
s = r.width, a = r.height;
|
|
@@ -7249,18 +7249,18 @@ function Gr(e, t, n) {
|
|
|
7249
7249
|
}
|
|
7250
7250
|
function Ca(e, t) {
|
|
7251
7251
|
const n = Qe(e);
|
|
7252
|
-
return n === t || !_e(n) ||
|
|
7252
|
+
return n === t || !_e(n) || Et(n) ? !1 : Ie(n).position === "fixed" || Ca(n, t);
|
|
7253
7253
|
}
|
|
7254
7254
|
function Yp(e, t) {
|
|
7255
7255
|
const n = t.get(e);
|
|
7256
7256
|
if (n)
|
|
7257
7257
|
return n;
|
|
7258
|
-
let o =
|
|
7258
|
+
let o = Dt(e, [], !1).filter((i) => _e(i) && Tt(i) !== "body"), r = null;
|
|
7259
7259
|
const s = Ie(e).position === "fixed";
|
|
7260
7260
|
let a = s ? Qe(e) : e;
|
|
7261
|
-
for (; _e(a) && !
|
|
7261
|
+
for (; _e(a) && !Et(a); ) {
|
|
7262
7262
|
const i = Ie(a), l = Ho(a);
|
|
7263
|
-
!l && i.position === "fixed" && (r = null), (s ? !l && !r : !l && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") ||
|
|
7263
|
+
!l && i.position === "fixed" && (r = null), (s ? !l && !r : !l && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Ft(a) && !l && Ca(e, a)) ? o = o.filter((f) => f !== a) : r = i, a = Qe(a);
|
|
7264
7264
|
}
|
|
7265
7265
|
return t.set(e, o), o;
|
|
7266
7266
|
}
|
|
@@ -7305,7 +7305,7 @@ function Xp(e, t, n) {
|
|
|
7305
7305
|
l.x = Pn(r);
|
|
7306
7306
|
}
|
|
7307
7307
|
if (o || !o && !s)
|
|
7308
|
-
if ((Tt(t) !== "body" ||
|
|
7308
|
+
if ((Tt(t) !== "body" || Ft(r)) && (i = Tn(t)), o) {
|
|
7309
7309
|
const g = ct(t, !0, s, t);
|
|
7310
7310
|
l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
|
|
7311
7311
|
} else r && d();
|
|
@@ -7329,13 +7329,13 @@ function Yr(e, t) {
|
|
|
7329
7329
|
let n = e.offsetParent;
|
|
7330
7330
|
return Fe(e) === n && (n = n.ownerDocument.body), n;
|
|
7331
7331
|
}
|
|
7332
|
-
function
|
|
7333
|
-
const n =
|
|
7332
|
+
function Ea(e, t) {
|
|
7333
|
+
const n = Ee(e);
|
|
7334
7334
|
if (Nn(e))
|
|
7335
7335
|
return n;
|
|
7336
7336
|
if (!je(e)) {
|
|
7337
7337
|
let r = Qe(e);
|
|
7338
|
-
for (; r && !
|
|
7338
|
+
for (; r && !Et(r); ) {
|
|
7339
7339
|
if (_e(r) && !to(r))
|
|
7340
7340
|
return r;
|
|
7341
7341
|
r = Qe(r);
|
|
@@ -7345,10 +7345,10 @@ function ka(e, t) {
|
|
|
7345
7345
|
let o = Yr(e, t);
|
|
7346
7346
|
for (; o && Dp(o) && to(o); )
|
|
7347
7347
|
o = Yr(o, t);
|
|
7348
|
-
return o &&
|
|
7348
|
+
return o && Et(o) && to(o) && !Ho(o) ? n : o || Fp(e) || n;
|
|
7349
7349
|
}
|
|
7350
7350
|
const Zp = async function(e) {
|
|
7351
|
-
const t = this.getOffsetParent ||
|
|
7351
|
+
const t = this.getOffsetParent || Ea, n = this.getDimensions, o = await n(e.floating);
|
|
7352
7352
|
return {
|
|
7353
7353
|
reference: Xp(e.reference, await t(e.floating), e.strategy),
|
|
7354
7354
|
floating: {
|
|
@@ -7366,7 +7366,7 @@ const Qp = {
|
|
|
7366
7366
|
convertOffsetParentRelativeRectToViewportRelativeRect: Wp,
|
|
7367
7367
|
getDocumentElement: Fe,
|
|
7368
7368
|
getClippingRect: qp,
|
|
7369
|
-
getOffsetParent:
|
|
7369
|
+
getOffsetParent: Ea,
|
|
7370
7370
|
getElementRects: Zp,
|
|
7371
7371
|
getClientRects: Vp,
|
|
7372
7372
|
getDimensions: Kp,
|
|
@@ -7374,7 +7374,7 @@ const Qp = {
|
|
|
7374
7374
|
isElement: _e,
|
|
7375
7375
|
isRTL: Jp
|
|
7376
7376
|
};
|
|
7377
|
-
function
|
|
7377
|
+
function ka(e, t) {
|
|
7378
7378
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
7379
7379
|
}
|
|
7380
7380
|
function em(e, t) {
|
|
@@ -7394,21 +7394,21 @@ function em(e, t) {
|
|
|
7394
7394
|
} = d;
|
|
7395
7395
|
if (i || t(), !m || !g)
|
|
7396
7396
|
return;
|
|
7397
|
-
const b =
|
|
7397
|
+
const b = tn(c), h = tn(r.clientWidth - (f + m)), v = tn(r.clientHeight - (c + g)), y = tn(f), w = {
|
|
7398
7398
|
rootMargin: -b + "px " + -h + "px " + -v + "px " + -y + "px",
|
|
7399
7399
|
threshold: Ce(0, Je(1, l)) || 1
|
|
7400
7400
|
};
|
|
7401
7401
|
let S = !0;
|
|
7402
7402
|
function R(C) {
|
|
7403
|
-
const
|
|
7404
|
-
if (
|
|
7403
|
+
const E = C[0].intersectionRatio;
|
|
7404
|
+
if (E !== l) {
|
|
7405
7405
|
if (!S)
|
|
7406
7406
|
return a();
|
|
7407
|
-
|
|
7407
|
+
E ? a(!1, E) : o = setTimeout(() => {
|
|
7408
7408
|
a(!1, 1e-7);
|
|
7409
7409
|
}, 1e3);
|
|
7410
7410
|
}
|
|
7411
|
-
|
|
7411
|
+
E === 1 && !ka(d, e.getBoundingClientRect()) && a(), S = !1;
|
|
7412
7412
|
}
|
|
7413
7413
|
try {
|
|
7414
7414
|
n = new IntersectionObserver(R, {
|
|
@@ -7431,7 +7431,7 @@ function tm(e, t, n, o) {
|
|
|
7431
7431
|
elementResize: a = typeof ResizeObserver == "function",
|
|
7432
7432
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
7433
7433
|
animationFrame: l = !1
|
|
7434
|
-
} = o, d = Vo(e), f = r || s ? [...d ?
|
|
7434
|
+
} = o, d = Vo(e), f = r || s ? [...d ? Dt(d) : [], ...t ? Dt(t) : []] : [];
|
|
7435
7435
|
f.forEach((y) => {
|
|
7436
7436
|
r && y.addEventListener("scroll", n, {
|
|
7437
7437
|
passive: !0
|
|
@@ -7450,7 +7450,7 @@ function tm(e, t, n, o) {
|
|
|
7450
7450
|
l && v();
|
|
7451
7451
|
function v() {
|
|
7452
7452
|
const y = ct(e);
|
|
7453
|
-
h && !
|
|
7453
|
+
h && !ka(h, y) && n(), h = y, b = requestAnimationFrame(v);
|
|
7454
7454
|
}
|
|
7455
7455
|
return n(), () => {
|
|
7456
7456
|
var y;
|
|
@@ -7543,16 +7543,16 @@ function um(e) {
|
|
|
7543
7543
|
const [b, h] = u.useState(null), [v, y] = u.useState(null), x = u.useCallback((D) => {
|
|
7544
7544
|
D !== C.current && (C.current = D, h(D));
|
|
7545
7545
|
}, []), w = u.useCallback((D) => {
|
|
7546
|
-
D !==
|
|
7547
|
-
}, []), S = s || b, R = a || v, C = u.useRef(null),
|
|
7548
|
-
if (!C.current || !
|
|
7546
|
+
D !== E.current && (E.current = D, y(D));
|
|
7547
|
+
}, []), S = s || b, R = a || v, C = u.useRef(null), E = u.useRef(null), k = u.useRef(f), T = l != null, M = no(l), _ = no(r), L = no(d), U = u.useCallback(() => {
|
|
7548
|
+
if (!C.current || !E.current)
|
|
7549
7549
|
return;
|
|
7550
7550
|
const D = {
|
|
7551
7551
|
placement: t,
|
|
7552
7552
|
strategy: n,
|
|
7553
7553
|
middleware: m
|
|
7554
7554
|
};
|
|
7555
|
-
_.current && (D.platform = _.current), lm(C.current,
|
|
7555
|
+
_.current && (D.platform = _.current), lm(C.current, E.current, D).then((ee) => {
|
|
7556
7556
|
const A = {
|
|
7557
7557
|
...ee,
|
|
7558
7558
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -7561,13 +7561,13 @@ function um(e) {
|
|
|
7561
7561
|
// setting it to `true` when `open === false` (must be specified).
|
|
7562
7562
|
isPositioned: L.current !== !1
|
|
7563
7563
|
};
|
|
7564
|
-
q.current && !pn(
|
|
7564
|
+
q.current && !pn(k.current, A) && (k.current = A, bn.flushSync(() => {
|
|
7565
7565
|
c(A);
|
|
7566
7566
|
}));
|
|
7567
7567
|
});
|
|
7568
7568
|
}, [m, t, n, _, L]);
|
|
7569
7569
|
sn(() => {
|
|
7570
|
-
d === !1 &&
|
|
7570
|
+
d === !1 && k.current.isPositioned && (k.current.isPositioned = !1, c((D) => ({
|
|
7571
7571
|
...D,
|
|
7572
7572
|
isPositioned: !1
|
|
7573
7573
|
})));
|
|
@@ -7576,7 +7576,7 @@ function um(e) {
|
|
|
7576
7576
|
sn(() => (q.current = !0, () => {
|
|
7577
7577
|
q.current = !1;
|
|
7578
7578
|
}), []), sn(() => {
|
|
7579
|
-
if (S && (C.current = S), R && (
|
|
7579
|
+
if (S && (C.current = S), R && (E.current = R), S && R) {
|
|
7580
7580
|
if (M.current)
|
|
7581
7581
|
return M.current(S, R, U);
|
|
7582
7582
|
U();
|
|
@@ -7584,7 +7584,7 @@ function um(e) {
|
|
|
7584
7584
|
}, [S, R, U, M, T]);
|
|
7585
7585
|
const J = u.useMemo(() => ({
|
|
7586
7586
|
reference: C,
|
|
7587
|
-
floating:
|
|
7587
|
+
floating: E,
|
|
7588
7588
|
setReference: x,
|
|
7589
7589
|
setFloating: w
|
|
7590
7590
|
}), [x, w]), P = u.useMemo(() => ({
|
|
@@ -7717,7 +7717,7 @@ var _a = "PopperAnchor", Ia = u.forwardRef(
|
|
|
7717
7717
|
}
|
|
7718
7718
|
);
|
|
7719
7719
|
Ia.displayName = _a;
|
|
7720
|
-
var jo = "PopperContent", [Cm,
|
|
7720
|
+
var jo = "PopperContent", [Cm, Em] = Ta(jo), Ma = u.forwardRef(
|
|
7721
7721
|
(e, t) => {
|
|
7722
7722
|
var F, B, Y, re, Q, X;
|
|
7723
7723
|
const {
|
|
@@ -7735,7 +7735,7 @@ var jo = "PopperContent", [Cm, km] = Ta(jo), Ma = u.forwardRef(
|
|
|
7735
7735
|
updatePositionStrategy: g = "optimized",
|
|
7736
7736
|
onPlaced: b,
|
|
7737
7737
|
...h
|
|
7738
|
-
} = e, v = Pa(jo, n), [y, x] = u.useState(null), w = ne(t, (ce) => x(ce)), [S, R] = u.useState(null), C =
|
|
7738
|
+
} = e, v = Pa(jo, n), [y, x] = u.useState(null), w = ne(t, (ce) => x(ce)), [S, R] = u.useState(null), C = En(S), E = (C == null ? void 0 : C.width) ?? 0, k = (C == null ? void 0 : C.height) ?? 0, T = o + (s !== "center" ? "-" + s : ""), M = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, _ = Array.isArray(d) ? d : [d], L = _.length > 0, U = {
|
|
7739
7739
|
padding: M,
|
|
7740
7740
|
boundary: _.filter(Rm),
|
|
7741
7741
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7751,7 +7751,7 @@ var jo = "PopperContent", [Cm, km] = Ta(jo), Ma = u.forwardRef(
|
|
|
7751
7751
|
reference: v.anchor
|
|
7752
7752
|
},
|
|
7753
7753
|
middleware: [
|
|
7754
|
-
pm({ mainAxis: r +
|
|
7754
|
+
pm({ mainAxis: r + k, alignmentAxis: a }),
|
|
7755
7755
|
l && mm({
|
|
7756
7756
|
mainAxis: !0,
|
|
7757
7757
|
crossAxis: !1,
|
|
@@ -7762,12 +7762,12 @@ var jo = "PopperContent", [Cm, km] = Ta(jo), Ma = u.forwardRef(
|
|
|
7762
7762
|
vm({
|
|
7763
7763
|
...U,
|
|
7764
7764
|
apply: ({ elements: ce, rects: de, availableWidth: ot, availableHeight: Ge }) => {
|
|
7765
|
-
const { width: Ne, height:
|
|
7766
|
-
ve.setProperty("--radix-popper-available-width", `${ot}px`), ve.setProperty("--radix-popper-available-height", `${Ge}px`), ve.setProperty("--radix-popper-anchor-width", `${Ne}px`), ve.setProperty("--radix-popper-anchor-height", `${
|
|
7765
|
+
const { width: Ne, height: Wt } = de.reference, ve = ce.floating.style;
|
|
7766
|
+
ve.setProperty("--radix-popper-available-width", `${ot}px`), ve.setProperty("--radix-popper-available-height", `${Ge}px`), ve.setProperty("--radix-popper-anchor-width", `${Ne}px`), ve.setProperty("--radix-popper-anchor-height", `${Wt}px`);
|
|
7767
7767
|
}
|
|
7768
7768
|
}),
|
|
7769
7769
|
S && ym({ element: S, padding: i }),
|
|
7770
|
-
Nm({ arrowWidth:
|
|
7770
|
+
Nm({ arrowWidth: E, arrowHeight: k }),
|
|
7771
7771
|
m && bm({ strategy: "referenceHidden", ...U })
|
|
7772
7772
|
]
|
|
7773
7773
|
}), [ee, A] = Da(P), le = ge(b);
|
|
@@ -7832,13 +7832,13 @@ var jo = "PopperContent", [Cm, km] = Ta(jo), Ma = u.forwardRef(
|
|
|
7832
7832
|
}
|
|
7833
7833
|
);
|
|
7834
7834
|
Ma.displayName = jo;
|
|
7835
|
-
var Oa = "PopperArrow",
|
|
7835
|
+
var Oa = "PopperArrow", km = {
|
|
7836
7836
|
top: "bottom",
|
|
7837
7837
|
right: "left",
|
|
7838
7838
|
bottom: "top",
|
|
7839
7839
|
left: "right"
|
|
7840
7840
|
}, La = u.forwardRef(function(t, n) {
|
|
7841
|
-
const { __scopePopper: o, ...r } = t, s =
|
|
7841
|
+
const { __scopePopper: o, ...r } = t, s = Em(Oa, o), a = km[s.placedSide];
|
|
7842
7842
|
return (
|
|
7843
7843
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
7844
7844
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -7900,13 +7900,13 @@ function Da(e) {
|
|
|
7900
7900
|
const [t, n = "center"] = e.split("-");
|
|
7901
7901
|
return [t, n];
|
|
7902
7902
|
}
|
|
7903
|
-
var za = Aa, $a = Ia, Fa = Ma, Ba = La, oo = "rovingFocusGroup.onEntryFocus", Tm = { bubbles: !1, cancelable: !0 },
|
|
7904
|
-
|
|
7903
|
+
var za = Aa, $a = Ia, Fa = Ma, Ba = La, oo = "rovingFocusGroup.onEntryFocus", Tm = { bubbles: !1, cancelable: !0 }, Bt = "RovingFocusGroup", [ho, Ha, Pm] = $s(Bt), [Am, _n] = ye(
|
|
7904
|
+
Bt,
|
|
7905
7905
|
[Pm]
|
|
7906
|
-
), [_m, Im] = Am(
|
|
7906
|
+
), [_m, Im] = Am(Bt), Wa = u.forwardRef(
|
|
7907
7907
|
(e, t) => /* @__PURE__ */ p(ho.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(ho.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Mm, { ...e, ref: t }) }) })
|
|
7908
7908
|
);
|
|
7909
|
-
Wa.displayName =
|
|
7909
|
+
Wa.displayName = Bt;
|
|
7910
7910
|
var Mm = u.forwardRef((e, t) => {
|
|
7911
7911
|
const {
|
|
7912
7912
|
__scopeRovingFocusGroup: n,
|
|
@@ -7919,16 +7919,16 @@ var Mm = u.forwardRef((e, t) => {
|
|
|
7919
7919
|
onEntryFocus: d,
|
|
7920
7920
|
preventScrollOnEntryFocus: f = !1,
|
|
7921
7921
|
...c
|
|
7922
|
-
} = e, m = u.useRef(null), g = ne(t, m), b =
|
|
7922
|
+
} = e, m = u.useRef(null), g = ne(t, m), b = $t(s), [h, v] = We({
|
|
7923
7923
|
prop: a,
|
|
7924
7924
|
defaultProp: i ?? null,
|
|
7925
7925
|
onChange: l,
|
|
7926
|
-
caller:
|
|
7927
|
-
}), [y, x] = u.useState(!1), w = ge(d), S = Ha(n), R = u.useRef(!1), [C,
|
|
7926
|
+
caller: Bt
|
|
7927
|
+
}), [y, x] = u.useState(!1), w = ge(d), S = Ha(n), R = u.useRef(!1), [C, E] = u.useState(0);
|
|
7928
7928
|
return u.useEffect(() => {
|
|
7929
|
-
const
|
|
7930
|
-
if (
|
|
7931
|
-
return
|
|
7929
|
+
const k = m.current;
|
|
7930
|
+
if (k)
|
|
7931
|
+
return k.addEventListener(oo, w), () => k.removeEventListener(oo, w);
|
|
7932
7932
|
}, [w]), /* @__PURE__ */ p(
|
|
7933
7933
|
_m,
|
|
7934
7934
|
{
|
|
@@ -7938,16 +7938,16 @@ var Mm = u.forwardRef((e, t) => {
|
|
|
7938
7938
|
loop: r,
|
|
7939
7939
|
currentTabStopId: h,
|
|
7940
7940
|
onItemFocus: u.useCallback(
|
|
7941
|
-
(
|
|
7941
|
+
(k) => v(k),
|
|
7942
7942
|
[v]
|
|
7943
7943
|
),
|
|
7944
7944
|
onItemShiftTab: u.useCallback(() => x(!0), []),
|
|
7945
7945
|
onFocusableItemAdd: u.useCallback(
|
|
7946
|
-
() =>
|
|
7946
|
+
() => E((k) => k + 1),
|
|
7947
7947
|
[]
|
|
7948
7948
|
),
|
|
7949
7949
|
onFocusableItemRemove: u.useCallback(
|
|
7950
|
-
() =>
|
|
7950
|
+
() => E((k) => k - 1),
|
|
7951
7951
|
[]
|
|
7952
7952
|
),
|
|
7953
7953
|
children: /* @__PURE__ */ p(
|
|
@@ -7961,11 +7961,11 @@ var Mm = u.forwardRef((e, t) => {
|
|
|
7961
7961
|
onMouseDown: V(e.onMouseDown, () => {
|
|
7962
7962
|
R.current = !0;
|
|
7963
7963
|
}),
|
|
7964
|
-
onFocus: V(e.onFocus, (
|
|
7964
|
+
onFocus: V(e.onFocus, (k) => {
|
|
7965
7965
|
const T = !R.current;
|
|
7966
|
-
if (
|
|
7966
|
+
if (k.target === k.currentTarget && T && !y) {
|
|
7967
7967
|
const M = new CustomEvent(oo, Tm);
|
|
7968
|
-
if (
|
|
7968
|
+
if (k.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
7969
7969
|
const _ = S().filter((P) => P.focusable), L = _.find((P) => P.active), U = _.find((P) => P.id === h), J = [L, U, ..._].filter(
|
|
7970
7970
|
Boolean
|
|
7971
7971
|
).map((P) => P.ref.current);
|
|
@@ -8225,7 +8225,7 @@ var Zm = "RadioBubbleInput", oi = u.forwardRef(
|
|
|
8225
8225
|
bubbles: o = !0,
|
|
8226
8226
|
...r
|
|
8227
8227
|
}, s) => {
|
|
8228
|
-
const a = u.useRef(null), i = ne(a, s), l = Cn(n), d =
|
|
8228
|
+
const a = u.useRef(null), i = ne(a, s), l = Cn(n), d = En(t);
|
|
8229
8229
|
return u.useEffect(() => {
|
|
8230
8230
|
const f = a.current;
|
|
8231
8231
|
if (!f) return;
|
|
@@ -8279,7 +8279,7 @@ var Jm = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], In = "RadioGroup",
|
|
|
8279
8279
|
loop: f = !0,
|
|
8280
8280
|
onValueChange: c,
|
|
8281
8281
|
...m
|
|
8282
|
-
} = e, g = si(n), b =
|
|
8282
|
+
} = e, g = si(n), b = $t(d), [h, v] = We({
|
|
8283
8283
|
prop: s,
|
|
8284
8284
|
defaultProp: r ?? null,
|
|
8285
8285
|
onChange: c,
|
|
@@ -8382,7 +8382,7 @@ var Ko = "ScrollArea", [ui] = ye(Ko), [ih, Re] = ui(Ko), fi = u.forwardRef(
|
|
|
8382
8382
|
dir: r,
|
|
8383
8383
|
scrollHideDelay: s = 600,
|
|
8384
8384
|
...a
|
|
8385
|
-
} = e, [i, l] = u.useState(null), [d, f] = u.useState(null), [c, m] = u.useState(null), [g, b] = u.useState(null), [h, v] = u.useState(null), [y, x] = u.useState(0), [w, S] = u.useState(0), [R, C] = u.useState(!1), [
|
|
8385
|
+
} = e, [i, l] = u.useState(null), [d, f] = u.useState(null), [c, m] = u.useState(null), [g, b] = u.useState(null), [h, v] = u.useState(null), [y, x] = u.useState(0), [w, S] = u.useState(0), [R, C] = u.useState(!1), [E, k] = u.useState(!1), T = ne(t, (_) => l(_)), M = $t(r);
|
|
8386
8386
|
return /* @__PURE__ */ p(
|
|
8387
8387
|
ih,
|
|
8388
8388
|
{
|
|
@@ -8401,8 +8401,8 @@ var Ko = "ScrollArea", [ui] = ye(Ko), [ih, Re] = ui(Ko), fi = u.forwardRef(
|
|
|
8401
8401
|
onScrollbarXEnabledChange: C,
|
|
8402
8402
|
scrollbarY: h,
|
|
8403
8403
|
onScrollbarYChange: v,
|
|
8404
|
-
scrollbarYEnabled:
|
|
8405
|
-
onScrollbarYEnabledChange:
|
|
8404
|
+
scrollbarYEnabled: E,
|
|
8405
|
+
onScrollbarYEnabledChange: k,
|
|
8406
8406
|
onCornerWidthChange: x,
|
|
8407
8407
|
onCornerHeightChange: S,
|
|
8408
8408
|
children: /* @__PURE__ */ p(
|
|
@@ -8550,7 +8550,7 @@ var lh = u.forwardRef((e, t) => {
|
|
|
8550
8550
|
a(i ? d : f);
|
|
8551
8551
|
}
|
|
8552
8552
|
}, 10);
|
|
8553
|
-
return
|
|
8553
|
+
return kt(n.viewport, l), kt(n.content, l), /* @__PURE__ */ p(Me, { present: o || s, children: /* @__PURE__ */ p(
|
|
8554
8554
|
Xo,
|
|
8555
8555
|
{
|
|
8556
8556
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -8704,8 +8704,8 @@ var lh = u.forwardRef((e, t) => {
|
|
|
8704
8704
|
onWheelScroll: f,
|
|
8705
8705
|
onResize: c,
|
|
8706
8706
|
...m
|
|
8707
|
-
} = e, g = Re(Be, n), [b, h] = u.useState(null), v = ne(t, (T) => h(T)), y = u.useRef(null), x = u.useRef(""), w = g.viewport, S = o.content - o.viewport, R = ge(f), C = ge(l),
|
|
8708
|
-
function
|
|
8707
|
+
} = e, g = Re(Be, n), [b, h] = u.useState(null), v = ne(t, (T) => h(T)), y = u.useRef(null), x = u.useRef(""), w = g.viewport, S = o.content - o.viewport, R = ge(f), C = ge(l), E = On(c, 10);
|
|
8708
|
+
function k(T) {
|
|
8709
8709
|
if (y.current) {
|
|
8710
8710
|
const M = T.clientX - y.current.left, _ = T.clientY - y.current.top;
|
|
8711
8711
|
d({ x: M, y: _ });
|
|
@@ -8717,7 +8717,7 @@ var lh = u.forwardRef((e, t) => {
|
|
|
8717
8717
|
(b == null ? void 0 : b.contains(_)) && R(M, S);
|
|
8718
8718
|
};
|
|
8719
8719
|
return document.addEventListener("wheel", T, { passive: !1 }), () => document.removeEventListener("wheel", T, { passive: !1 });
|
|
8720
|
-
}, [w, b, S, R]), u.useEffect(C, [o, C]),
|
|
8720
|
+
}, [w, b, S, R]), u.useEffect(C, [o, C]), kt(b, E), kt(g.content, E), /* @__PURE__ */ p(
|
|
8721
8721
|
fh,
|
|
8722
8722
|
{
|
|
8723
8723
|
scope: n,
|
|
@@ -8734,9 +8734,9 @@ var lh = u.forwardRef((e, t) => {
|
|
|
8734
8734
|
ref: v,
|
|
8735
8735
|
style: { position: "absolute", ...m.style },
|
|
8736
8736
|
onPointerDown: V(e.onPointerDown, (T) => {
|
|
8737
|
-
T.button === 0 && (T.target.setPointerCapture(T.pointerId), y.current = b.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"),
|
|
8737
|
+
T.button === 0 && (T.target.setPointerCapture(T.pointerId), y.current = b.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), k(T));
|
|
8738
8738
|
}),
|
|
8739
|
-
onPointerMove: V(e.onPointerMove,
|
|
8739
|
+
onPointerMove: V(e.onPointerMove, k),
|
|
8740
8740
|
onPointerUp: V(e.onPointerUp, (T) => {
|
|
8741
8741
|
const M = T.target;
|
|
8742
8742
|
M.hasPointerCapture(T.pointerId) && M.releasePointerCapture(T.pointerId), document.body.style.webkitUserSelect = x.current, g.viewport && (g.viewport.style.scrollBehavior = ""), y.current = null;
|
|
@@ -8799,11 +8799,11 @@ var Zo = "ScrollAreaCorner", wi = u.forwardRef(
|
|
|
8799
8799
|
wi.displayName = Zo;
|
|
8800
8800
|
var mh = u.forwardRef((e, t) => {
|
|
8801
8801
|
const { __scopeScrollArea: n, ...o } = e, r = Re(Zo, n), [s, a] = u.useState(0), [i, l] = u.useState(0), d = !!(s && i);
|
|
8802
|
-
return
|
|
8802
|
+
return kt(r.scrollbarX, () => {
|
|
8803
8803
|
var c;
|
|
8804
8804
|
const f = ((c = r.scrollbarX) == null ? void 0 : c.offsetHeight) || 0;
|
|
8805
8805
|
r.onCornerHeightChange(f), l(f);
|
|
8806
|
-
}),
|
|
8806
|
+
}), kt(r.scrollbarY, () => {
|
|
8807
8807
|
var c;
|
|
8808
8808
|
const f = ((c = r.scrollbarY) == null ? void 0 : c.offsetWidth) || 0;
|
|
8809
8809
|
r.onCornerWidthChange(f), a(f);
|
|
@@ -8867,7 +8867,7 @@ function On(e, t) {
|
|
|
8867
8867
|
window.clearTimeout(o.current), o.current = window.setTimeout(n, t);
|
|
8868
8868
|
}, [n, t]);
|
|
8869
8869
|
}
|
|
8870
|
-
function
|
|
8870
|
+
function kt(e, t) {
|
|
8871
8871
|
const n = ge(t);
|
|
8872
8872
|
ie(() => {
|
|
8873
8873
|
let o = 0;
|
|
@@ -8884,7 +8884,7 @@ function Et(e, t) {
|
|
|
8884
8884
|
var vh = fi, bh = mi, yh = wi, wh = [" ", "Enter", "ArrowUp", "ArrowDown"], xh = [" ", "Enter"], dt = "Select", [Ln, Dn, Sh] = $s(dt), [Pt] = ye(dt, [
|
|
8885
8885
|
Sh,
|
|
8886
8886
|
An
|
|
8887
|
-
]), zn = An(), [Ch, tt] = Pt(dt), [
|
|
8887
|
+
]), zn = An(), [Ch, tt] = Pt(dt), [Eh, kh] = Pt(dt), Ei = (e) => {
|
|
8888
8888
|
const {
|
|
8889
8889
|
__scopeSelect: t,
|
|
8890
8890
|
children: n,
|
|
@@ -8900,7 +8900,7 @@ var vh = fi, bh = mi, yh = wi, wh = [" ", "Enter", "ArrowUp", "ArrowDown"], xh =
|
|
|
8900
8900
|
disabled: m,
|
|
8901
8901
|
required: g,
|
|
8902
8902
|
form: b
|
|
8903
|
-
} = e, h = zn(t), [v, y] = u.useState(null), [x, w] = u.useState(null), [S, R] = u.useState(!1), C =
|
|
8903
|
+
} = e, h = zn(t), [v, y] = u.useState(null), [x, w] = u.useState(null), [S, R] = u.useState(!1), C = $t(d), [E, k] = We({
|
|
8904
8904
|
prop: o,
|
|
8905
8905
|
defaultProp: r ?? !1,
|
|
8906
8906
|
onChange: s,
|
|
@@ -8925,14 +8925,14 @@ var vh = fi, bh = mi, yh = wi, wh = [" ", "Enter", "ArrowUp", "ArrowDown"], xh =
|
|
|
8925
8925
|
contentId: pt(),
|
|
8926
8926
|
value: T,
|
|
8927
8927
|
onValueChange: M,
|
|
8928
|
-
open:
|
|
8929
|
-
onOpenChange:
|
|
8928
|
+
open: E,
|
|
8929
|
+
onOpenChange: k,
|
|
8930
8930
|
dir: C,
|
|
8931
8931
|
triggerPointerDownPosRef: _,
|
|
8932
8932
|
disabled: m,
|
|
8933
8933
|
children: [
|
|
8934
8934
|
/* @__PURE__ */ p(Ln.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
8935
|
-
|
|
8935
|
+
Eh,
|
|
8936
8936
|
{
|
|
8937
8937
|
scope: e.__scopeSelect,
|
|
8938
8938
|
onNativeOptionAdd: u.useCallback((P) => {
|
|
@@ -8970,10 +8970,10 @@ var vh = fi, bh = mi, yh = wi, wh = [" ", "Enter", "ArrowUp", "ArrowDown"], xh =
|
|
|
8970
8970
|
}
|
|
8971
8971
|
) });
|
|
8972
8972
|
};
|
|
8973
|
-
|
|
8974
|
-
var
|
|
8973
|
+
Ei.displayName = dt;
|
|
8974
|
+
var ki = "SelectTrigger", Ri = u.forwardRef(
|
|
8975
8975
|
(e, t) => {
|
|
8976
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = zn(n), a = tt(
|
|
8976
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, s = zn(n), a = tt(ki, n), i = a.disabled || o, l = ne(t, a.onTriggerChange), d = Dn(n), f = u.useRef("touch"), [c, m, g] = qi((h) => {
|
|
8977
8977
|
const v = d().filter((w) => !w.disabled), y = v.find((w) => w.value === a.value), x = Ki(v, h, y);
|
|
8978
8978
|
x !== void 0 && a.onValueChange(x.value);
|
|
8979
8979
|
}), b = (h) => {
|
|
@@ -9014,7 +9014,7 @@ var Ei = "SelectTrigger", Ri = u.forwardRef(
|
|
|
9014
9014
|
) });
|
|
9015
9015
|
}
|
|
9016
9016
|
);
|
|
9017
|
-
Ri.displayName =
|
|
9017
|
+
Ri.displayName = ki;
|
|
9018
9018
|
var Ni = "SelectValue", Ti = u.forwardRef(
|
|
9019
9019
|
(e, t) => {
|
|
9020
9020
|
const { __scopeSelect: n, className: o, style: r, children: s, placeholder: a = "", ...i } = e, l = tt(Ni, n), { onValueNodeHasChildrenChange: d } = l, f = s !== void 0, c = ne(t, l.onValueNodeChange);
|
|
@@ -9057,7 +9057,7 @@ var ut = "SelectContent", _i = u.forwardRef(
|
|
|
9057
9057
|
}
|
|
9058
9058
|
);
|
|
9059
9059
|
_i.displayName = ut;
|
|
9060
|
-
var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */
|
|
9060
|
+
var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */ Lt("SelectContent.RemoveScroll"), Mi = u.forwardRef(
|
|
9061
9061
|
(e, t) => {
|
|
9062
9062
|
const {
|
|
9063
9063
|
__scopeSelect: n,
|
|
@@ -9079,7 +9079,7 @@ var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */ O
|
|
|
9079
9079
|
avoidCollisions: v,
|
|
9080
9080
|
//
|
|
9081
9081
|
...y
|
|
9082
|
-
} = e, x = tt(ut, n), [w, S] = u.useState(null), [R, C] = u.useState(null),
|
|
9082
|
+
} = e, x = tt(ut, n), [w, S] = u.useState(null), [R, C] = u.useState(null), E = ne(t, (F) => S(F)), [k, T] = u.useState(null), [M, _] = u.useState(
|
|
9083
9083
|
null
|
|
9084
9084
|
), L = Dn(n), [U, q] = u.useState(!1), J = u.useRef(!1);
|
|
9085
9085
|
u.useEffect(() => {
|
|
@@ -9093,8 +9093,8 @@ var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */ O
|
|
|
9093
9093
|
},
|
|
9094
9094
|
[L, R]
|
|
9095
9095
|
), $ = u.useCallback(
|
|
9096
|
-
() => P([
|
|
9097
|
-
[P,
|
|
9096
|
+
() => P([k, w]),
|
|
9097
|
+
[P, k, w]
|
|
9098
9098
|
);
|
|
9099
9099
|
u.useEffect(() => {
|
|
9100
9100
|
U && $();
|
|
@@ -9157,7 +9157,7 @@ var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */ O
|
|
|
9157
9157
|
viewport: R,
|
|
9158
9158
|
onViewportChange: C,
|
|
9159
9159
|
itemRefCallback: we,
|
|
9160
|
-
selectedItem:
|
|
9160
|
+
selectedItem: k,
|
|
9161
9161
|
onItemLeave: G,
|
|
9162
9162
|
itemTextRefCallback: oe,
|
|
9163
9163
|
focusSelectedItem: $,
|
|
@@ -9197,7 +9197,7 @@ var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */ O
|
|
|
9197
9197
|
...y,
|
|
9198
9198
|
...te,
|
|
9199
9199
|
onPlaced: () => q(!0),
|
|
9200
|
-
ref:
|
|
9200
|
+
ref: E,
|
|
9201
9201
|
style: {
|
|
9202
9202
|
// flex layout so we can place the scroll buttons properly
|
|
9203
9203
|
display: "flex",
|
|
@@ -9229,11 +9229,11 @@ var Ae = 10, [Ii, nt] = Pt(ut), Th = "SelectContentImpl", Ph = /* @__PURE__ */ O
|
|
|
9229
9229
|
);
|
|
9230
9230
|
Mi.displayName = Th;
|
|
9231
9231
|
var Ah = "SelectItemAlignedPosition", Oi = u.forwardRef((e, t) => {
|
|
9232
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = tt(ut, n), a = nt(ut, n), [i, l] = u.useState(null), [d, f] = u.useState(null), c = ne(t, (
|
|
9232
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, s = tt(ut, n), a = nt(ut, n), [i, l] = u.useState(null), [d, f] = u.useState(null), c = ne(t, (E) => f(E)), m = Dn(n), g = u.useRef(!1), b = u.useRef(!0), { viewport: h, selectedItem: v, selectedItemText: y, focusSelectedItem: x } = a, w = u.useCallback(() => {
|
|
9233
9233
|
if (s.trigger && s.valueNode && i && d && h && v && y) {
|
|
9234
|
-
const
|
|
9234
|
+
const E = s.trigger.getBoundingClientRect(), k = d.getBoundingClientRect(), T = s.valueNode.getBoundingClientRect(), M = y.getBoundingClientRect();
|
|
9235
9235
|
if (s.dir !== "rtl") {
|
|
9236
|
-
const Q = M.left -
|
|
9236
|
+
const Q = M.left - k.left, X = T.left - Q, ce = E.left - X, de = E.width + ce, ot = Math.max(de, k.width), Ge = window.innerWidth - Ae, Ne = go(X, [
|
|
9237
9237
|
Ae,
|
|
9238
9238
|
// Prevents the content from going off the starting edge of the
|
|
9239
9239
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -9244,13 +9244,13 @@ var Ah = "SelectItemAlignedPosition", Oi = u.forwardRef((e, t) => {
|
|
|
9244
9244
|
]);
|
|
9245
9245
|
i.style.minWidth = de + "px", i.style.left = Ne + "px";
|
|
9246
9246
|
} else {
|
|
9247
|
-
const Q =
|
|
9247
|
+
const Q = k.right - M.right, X = window.innerWidth - T.right - Q, ce = window.innerWidth - E.right - X, de = E.width + ce, ot = Math.max(de, k.width), Ge = window.innerWidth - Ae, Ne = go(X, [
|
|
9248
9248
|
Ae,
|
|
9249
9249
|
Math.max(Ae, Ge - ot)
|
|
9250
9250
|
]);
|
|
9251
9251
|
i.style.minWidth = de + "px", i.style.right = Ne + "px";
|
|
9252
9252
|
}
|
|
9253
|
-
const _ = m(), L = window.innerHeight - Ae * 2, U = h.scrollHeight, q = window.getComputedStyle(d), J = parseInt(q.borderTopWidth, 10), P = parseInt(q.paddingTop, 10), $ = parseInt(q.borderBottomWidth, 10), D = parseInt(q.paddingBottom, 10), ee = J + P + U + D + $, A = Math.min(v.offsetHeight * 5, ee), le = window.getComputedStyle(h), we = parseInt(le.paddingTop, 10), G = parseInt(le.paddingBottom, 10), oe =
|
|
9253
|
+
const _ = m(), L = window.innerHeight - Ae * 2, U = h.scrollHeight, q = window.getComputedStyle(d), J = parseInt(q.borderTopWidth, 10), P = parseInt(q.paddingTop, 10), $ = parseInt(q.borderBottomWidth, 10), D = parseInt(q.paddingBottom, 10), ee = J + P + U + D + $, A = Math.min(v.offsetHeight * 5, ee), le = window.getComputedStyle(h), we = parseInt(le.paddingTop, 10), G = parseInt(le.paddingBottom, 10), oe = E.top + E.height / 2 - Ae, j = L - oe, te = v.offsetHeight / 2, F = v.offsetTop + te, B = J + P + F, Y = ee - B;
|
|
9254
9254
|
if (B <= oe) {
|
|
9255
9255
|
const Q = _.length > 0 && v === _[_.length - 1].ref.current;
|
|
9256
9256
|
i.style.bottom = "0px";
|
|
@@ -9290,8 +9290,8 @@ var Ah = "SelectItemAlignedPosition", Oi = u.forwardRef((e, t) => {
|
|
|
9290
9290
|
d && R(window.getComputedStyle(d).zIndex);
|
|
9291
9291
|
}, [d]);
|
|
9292
9292
|
const C = u.useCallback(
|
|
9293
|
-
(
|
|
9294
|
-
|
|
9293
|
+
(E) => {
|
|
9294
|
+
E && b.current === !0 && (w(), x == null || x(), b.current = !1);
|
|
9295
9295
|
},
|
|
9296
9296
|
[w, x]
|
|
9297
9297
|
);
|
|
@@ -9515,7 +9515,7 @@ var vn = "SelectItem", [zh, $i] = Pt(vn), Fi = u.forwardRef(
|
|
|
9515
9515
|
Fi.displayName = vn;
|
|
9516
9516
|
var _t = "SelectItemText", Bi = u.forwardRef(
|
|
9517
9517
|
(e, t) => {
|
|
9518
|
-
const { __scopeSelect: n, className: o, style: r, ...s } = e, a = tt(_t, n), i = nt(_t, n), l = $i(_t, n), d =
|
|
9518
|
+
const { __scopeSelect: n, className: o, style: r, ...s } = e, a = tt(_t, n), i = nt(_t, n), l = $i(_t, n), d = kh(_t, n), [f, c] = u.useState(null), m = ne(
|
|
9519
9519
|
t,
|
|
9520
9520
|
(y) => c(y),
|
|
9521
9521
|
l.onItemTextChange,
|
|
@@ -9685,7 +9685,7 @@ function Ki(e, t, n) {
|
|
|
9685
9685
|
function Wh(e, t) {
|
|
9686
9686
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
9687
9687
|
}
|
|
9688
|
-
var Vh =
|
|
9688
|
+
var Vh = Ei, Uh = Ri, jh = Ti, Gh = Pi, Yh = Ai, qh = _i, Kh = Li, Xh = Fi, Zh = Bi, Jh = Wi, Qh = Vi, eg = Ui, tg = "Separator", Qr = "horizontal", ng = ["horizontal", "vertical"], Xi = u.forwardRef((e, t) => {
|
|
9689
9689
|
const { decorative: n, orientation: o = Qr, ...r } = e, s = og(o) ? o : Qr, i = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
9690
9690
|
return /* @__PURE__ */ p(
|
|
9691
9691
|
H.div,
|
|
@@ -9780,7 +9780,7 @@ var lg = "SwitchBubbleInput", el = u.forwardRef(
|
|
|
9780
9780
|
bubbles: o = !0,
|
|
9781
9781
|
...r
|
|
9782
9782
|
}, s) => {
|
|
9783
|
-
const a = u.useRef(null), i = ne(a, s), l = Cn(n), d =
|
|
9783
|
+
const a = u.useRef(null), i = ne(a, s), l = Cn(n), d = En(t);
|
|
9784
9784
|
return u.useEffect(() => {
|
|
9785
9785
|
const f = a.current;
|
|
9786
9786
|
if (!f) return;
|
|
@@ -9830,7 +9830,7 @@ var cg = Zi, dg = Qi, Fn = "Tabs", [ug] = ye(Fn, [
|
|
|
9830
9830
|
dir: i,
|
|
9831
9831
|
activationMode: l = "automatic",
|
|
9832
9832
|
...d
|
|
9833
|
-
} = e, f =
|
|
9833
|
+
} = e, f = $t(i), [c, m] = We({
|
|
9834
9834
|
prop: o,
|
|
9835
9835
|
onChange: r,
|
|
9836
9836
|
defaultProp: s ?? "",
|
|
@@ -9997,7 +9997,7 @@ var pg = ol, mg = sl, hg = il, gg = cl, [Bn] = ye("Tooltip", [
|
|
|
9997
9997
|
);
|
|
9998
9998
|
};
|
|
9999
9999
|
pl.displayName = fl;
|
|
10000
|
-
var
|
|
10000
|
+
var zt = "Tooltip", [yg, Ht] = Bn(zt), ml = (e) => {
|
|
10001
10001
|
const {
|
|
10002
10002
|
__scopeTooltip: t,
|
|
10003
10003
|
children: n,
|
|
@@ -10006,13 +10006,13 @@ var Dt = "Tooltip", [yg, Bt] = Bn(Dt), ml = (e) => {
|
|
|
10006
10006
|
onOpenChange: s,
|
|
10007
10007
|
disableHoverableContent: a,
|
|
10008
10008
|
delayDuration: i
|
|
10009
|
-
} = e, l = er(
|
|
10009
|
+
} = e, l = er(zt, e.__scopeTooltip), d = Hn(t), [f, c] = u.useState(null), m = pt(), g = u.useRef(0), b = a ?? l.disableHoverableContent, h = i ?? l.delayDuration, v = u.useRef(!1), [y, x] = We({
|
|
10010
10010
|
prop: o,
|
|
10011
10011
|
defaultProp: r ?? !1,
|
|
10012
|
-
onChange: (
|
|
10013
|
-
|
|
10012
|
+
onChange: (E) => {
|
|
10013
|
+
E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(So))) : l.onClose(), s == null || s(E);
|
|
10014
10014
|
},
|
|
10015
|
-
caller:
|
|
10015
|
+
caller: zt
|
|
10016
10016
|
}), w = u.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), S = u.useCallback(() => {
|
|
10017
10017
|
window.clearTimeout(g.current), g.current = 0, v.current = !1, x(!0);
|
|
10018
10018
|
}, [x]), R = u.useCallback(() => {
|
|
@@ -10046,10 +10046,10 @@ var Dt = "Tooltip", [yg, Bt] = Bn(Dt), ml = (e) => {
|
|
|
10046
10046
|
}
|
|
10047
10047
|
) });
|
|
10048
10048
|
};
|
|
10049
|
-
ml.displayName =
|
|
10049
|
+
ml.displayName = zt;
|
|
10050
10050
|
var Co = "TooltipTrigger", hl = u.forwardRef(
|
|
10051
10051
|
(e, t) => {
|
|
10052
|
-
const { __scopeTooltip: n, ...o } = e, r =
|
|
10052
|
+
const { __scopeTooltip: n, ...o } = e, r = Ht(Co, n), s = er(Co, n), a = Hn(n), i = u.useRef(null), l = ne(t, i, r.onTriggerChange), d = u.useRef(!1), f = u.useRef(!1), c = u.useCallback(() => d.current = !1, []);
|
|
10053
10053
|
return u.useEffect(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ p($a, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
10054
10054
|
H.button,
|
|
10055
10055
|
{
|
|
@@ -10079,17 +10079,17 @@ hl.displayName = Co;
|
|
|
10079
10079
|
var tr = "TooltipPortal", [wg, xg] = Bn(tr, {
|
|
10080
10080
|
forceMount: void 0
|
|
10081
10081
|
}), gl = (e) => {
|
|
10082
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s =
|
|
10082
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = Ht(tr, t);
|
|
10083
10083
|
return /* @__PURE__ */ p(wg, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Me, { present: n || s.open, children: /* @__PURE__ */ p(Lo, { asChild: !0, container: r, children: o }) }) });
|
|
10084
10084
|
};
|
|
10085
10085
|
gl.displayName = tr;
|
|
10086
10086
|
var Rt = "TooltipContent", vl = u.forwardRef(
|
|
10087
10087
|
(e, t) => {
|
|
10088
|
-
const n = xg(Rt, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a =
|
|
10088
|
+
const n = xg(Rt, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, a = Ht(Rt, e.__scopeTooltip);
|
|
10089
10089
|
return /* @__PURE__ */ p(Me, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ p(bl, { side: r, ...s, ref: t }) : /* @__PURE__ */ p(Sg, { side: r, ...s, ref: t }) });
|
|
10090
10090
|
}
|
|
10091
10091
|
), Sg = u.forwardRef((e, t) => {
|
|
10092
|
-
const n =
|
|
10092
|
+
const n = Ht(Rt, e.__scopeTooltip), o = er(Rt, e.__scopeTooltip), r = u.useRef(null), s = ne(t, r), [a, i] = u.useState(null), { trigger: l, onClose: d } = n, f = r.current, { onPointerInTransitChange: c } = o, m = u.useCallback(() => {
|
|
10093
10093
|
i(null), c(!1);
|
|
10094
10094
|
}, [c]), g = u.useCallback(
|
|
10095
10095
|
(b, h) => {
|
|
@@ -10114,7 +10114,7 @@ var Rt = "TooltipContent", vl = u.forwardRef(
|
|
|
10114
10114
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
10115
10115
|
}
|
|
10116
10116
|
}, [l, f, a, d, m]), /* @__PURE__ */ p(bl, { ...e, ref: s });
|
|
10117
|
-
}), [Cg,
|
|
10117
|
+
}), [Cg, Eg] = Bn(zt, { isInside: !1 }), kg = /* @__PURE__ */ Pu("TooltipContent"), bl = u.forwardRef(
|
|
10118
10118
|
(e, t) => {
|
|
10119
10119
|
const {
|
|
10120
10120
|
__scopeTooltip: n,
|
|
@@ -10123,7 +10123,7 @@ var Rt = "TooltipContent", vl = u.forwardRef(
|
|
|
10123
10123
|
onEscapeKeyDown: s,
|
|
10124
10124
|
onPointerDownOutside: a,
|
|
10125
10125
|
...i
|
|
10126
|
-
} = e, l =
|
|
10126
|
+
} = e, l = Ht(Rt, n), d = Hn(n), { onClose: f } = l;
|
|
10127
10127
|
return u.useEffect(() => (document.addEventListener(So, f), () => document.removeEventListener(So, f)), [f]), u.useEffect(() => {
|
|
10128
10128
|
if (l.trigger) {
|
|
10129
10129
|
const c = (m) => {
|
|
@@ -10157,7 +10157,7 @@ var Rt = "TooltipContent", vl = u.forwardRef(
|
|
|
10157
10157
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
10158
10158
|
},
|
|
10159
10159
|
children: [
|
|
10160
|
-
/* @__PURE__ */ p(
|
|
10160
|
+
/* @__PURE__ */ p(kg, { children: o }),
|
|
10161
10161
|
/* @__PURE__ */ p(Cg, { scope: n, isInside: !0, children: /* @__PURE__ */ p(Du, { id: l.contentId, role: "tooltip", children: r || o }) })
|
|
10162
10162
|
]
|
|
10163
10163
|
}
|
|
@@ -10170,7 +10170,7 @@ vl.displayName = Rt;
|
|
|
10170
10170
|
var yl = "TooltipArrow", wl = u.forwardRef(
|
|
10171
10171
|
(e, t) => {
|
|
10172
10172
|
const { __scopeTooltip: n, ...o } = e, r = Hn(n);
|
|
10173
|
-
return
|
|
10173
|
+
return Eg(
|
|
10174
10174
|
yl,
|
|
10175
10175
|
n
|
|
10176
10176
|
).isInside ? null : /* @__PURE__ */ p(Ba, { ...r, ...o, ref: t });
|
|
@@ -10778,7 +10778,7 @@ function cv({
|
|
|
10778
10778
|
}
|
|
10779
10779
|
);
|
|
10780
10780
|
}
|
|
10781
|
-
function
|
|
10781
|
+
function Eo({
|
|
10782
10782
|
className: e,
|
|
10783
10783
|
size: t = "default",
|
|
10784
10784
|
...n
|
|
@@ -10796,7 +10796,7 @@ function ko({
|
|
|
10796
10796
|
}
|
|
10797
10797
|
);
|
|
10798
10798
|
}
|
|
10799
|
-
function
|
|
10799
|
+
function ko({
|
|
10800
10800
|
className: e,
|
|
10801
10801
|
...t
|
|
10802
10802
|
}) {
|
|
@@ -11007,7 +11007,7 @@ const Sl = {
|
|
|
11007
11007
|
"map-pin": vd,
|
|
11008
11008
|
"message-circle": yd,
|
|
11009
11009
|
"message-square": hs,
|
|
11010
|
-
package:
|
|
11010
|
+
package: Ed,
|
|
11011
11011
|
phone: Rd,
|
|
11012
11012
|
search: Td,
|
|
11013
11013
|
"shopping-bag": Ad,
|
|
@@ -11029,13 +11029,13 @@ const Sl = {
|
|
|
11029
11029
|
10: "gap-10",
|
|
11030
11030
|
12: "gap-12"
|
|
11031
11031
|
}, Cl = (e) => typeof e == "number" ? es[String(e)] ?? "gap-2" : typeof e == "string" ? es[e.trim()] ?? "gap-2" : "gap-2", Cv = ({ children: e, className: t, onClick: n }) => /* @__PURE__ */ p(
|
|
11032
|
-
|
|
11032
|
+
Mt,
|
|
11033
11033
|
{
|
|
11034
11034
|
className: t,
|
|
11035
11035
|
onClick: n,
|
|
11036
11036
|
children: e
|
|
11037
11037
|
}
|
|
11038
|
-
),
|
|
11038
|
+
), Ev = ({ children: e, className: t }) => /* @__PURE__ */ p(Ot, { className: t, children: e }), kv = ({ children: e, className: t }) => /* @__PURE__ */ p(Nu, { className: t, children: e }), Rv = ({ children: e, className: t, onClick: n, variant: o, size: r, disabled: s, title: a }) => /* @__PURE__ */ p(
|
|
11039
11039
|
xl,
|
|
11040
11040
|
{
|
|
11041
11041
|
className: t,
|
|
@@ -11145,8 +11145,8 @@ const Sl = {
|
|
|
11145
11145
|
}
|
|
11146
11146
|
), zv = ({ className: e }) => /* @__PURE__ */ p(nv, { className: e }), $v = ({ children: e, defaultValue: t, className: n }) => /* @__PURE__ */ p(ov, { defaultValue: t, className: n, children: e }), Fv = ({ children: e, className: t }) => /* @__PURE__ */ p(sv, { className: t, children: e }), Bv = ({ children: e, value: t, className: n }) => /* @__PURE__ */ p(av, { className: n, value: t, children: e }), Hv = ({ children: e, value: t, className: n }) => /* @__PURE__ */ p(iv, { className: n, value: t, children: e }), Wv = ({ children: e, className: t }) => /* @__PURE__ */ p(lv, { className: t, children: e }), Vv = ({ src: e, alt: t, className: n }) => {
|
|
11147
11147
|
var o;
|
|
11148
|
-
return /* @__PURE__ */ z(
|
|
11149
|
-
/* @__PURE__ */ p(
|
|
11148
|
+
return /* @__PURE__ */ z(Eo, { className: n, children: [
|
|
11149
|
+
/* @__PURE__ */ p(ko, { src: e, alt: t }),
|
|
11150
11150
|
/* @__PURE__ */ p(Ro, { children: ((o = t == null ? void 0 : t.charAt(0)) == null ? void 0 : o.toUpperCase()) || "?" })
|
|
11151
11151
|
] });
|
|
11152
11152
|
}, Uv = ({ width: e, height: t, className: n }) => /* @__PURE__ */ p(
|
|
@@ -11205,8 +11205,8 @@ const Sl = {
|
|
|
11205
11205
|
className: t,
|
|
11206
11206
|
children: e
|
|
11207
11207
|
}
|
|
11208
|
-
), ob = ({ title: e, children: t, className: n }) => /* @__PURE__ */ z(
|
|
11209
|
-
e ? /* @__PURE__ */ p(
|
|
11208
|
+
), ob = ({ title: e, children: t, className: n }) => /* @__PURE__ */ z(Mt, { className: W("overflow-hidden p-0 gap-0 shadow-sm", n), children: [
|
|
11209
|
+
e ? /* @__PURE__ */ p(Ot, { className: "px-6 py-3", children: /* @__PURE__ */ p("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
11210
11210
|
/* @__PURE__ */ p("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
11211
11211
|
] }), rb = ({ icon: e, label: t, description: n, onClick: o, className: r }) => {
|
|
11212
11212
|
const s = e, a = "size-5", i = s ? Sl[s] : null;
|
|
@@ -11231,8 +11231,8 @@ const Sl = {
|
|
|
11231
11231
|
return a ? /* @__PURE__ */ p(a, { className: W(r, i, n) }) : /* @__PURE__ */ p("span", { className: W("inline-block", r, i, n), "data-icon": s });
|
|
11232
11232
|
}, ab = () => ({
|
|
11233
11233
|
"ui-card": Cv,
|
|
11234
|
-
"ui-card-content":
|
|
11235
|
-
"ui-card-header":
|
|
11234
|
+
"ui-card-content": Ev,
|
|
11235
|
+
"ui-card-header": kv,
|
|
11236
11236
|
"ui-button": Rv,
|
|
11237
11237
|
"ui-text": Jv,
|
|
11238
11238
|
"ui-heading": Qv,
|
|
@@ -11266,7 +11266,7 @@ const Sl = {
|
|
|
11266
11266
|
"ui-collapsible": Kv,
|
|
11267
11267
|
"ui-collapsible-trigger": Xv,
|
|
11268
11268
|
"ui-collapsible-content": Zv
|
|
11269
|
-
}), ts = "/api/ecommerce",
|
|
11269
|
+
}), ts = "/api/ecommerce", El = async (e, t) => {
|
|
11270
11270
|
const n = t ? `${t.replace(/\/$/, "")}${ts}` : ts, o = await fetch(n, {
|
|
11271
11271
|
method: "POST",
|
|
11272
11272
|
headers: { "Content-Type": "application/json" },
|
|
@@ -11296,9 +11296,9 @@ const Sl = {
|
|
|
11296
11296
|
return t && n ? "Dev + Staging" : t ? "Staging Mode" : "Dev Mode";
|
|
11297
11297
|
}, db = (e) => e.mode === "staging" ? "STAGING" : "DEV", ub = ({ className: e = "", extensions: t = [], tokenErrors: n = /* @__PURE__ */ new Map() }) => {
|
|
11298
11298
|
const [o, r] = ae([]), [s, a] = ae(!1), [i, l] = ae(!1), [d, f] = ae(!1), c = it(null), m = n.size > 0;
|
|
11299
|
-
if (
|
|
11299
|
+
if (pe(() => {
|
|
11300
11300
|
lb();
|
|
11301
|
-
}, []),
|
|
11301
|
+
}, []), pe(() => {
|
|
11302
11302
|
if (!m) return;
|
|
11303
11303
|
const b = () => {
|
|
11304
11304
|
f(!0), setTimeout(() => f(!1), 600);
|
|
@@ -11306,7 +11306,7 @@ const Sl = {
|
|
|
11306
11306
|
b();
|
|
11307
11307
|
const h = setInterval(b, 4e3);
|
|
11308
11308
|
return () => clearInterval(h);
|
|
11309
|
-
}, [m]),
|
|
11309
|
+
}, [m]), pe(() => {
|
|
11310
11310
|
if (typeof window > "u") return;
|
|
11311
11311
|
const b = () => {
|
|
11312
11312
|
const v = cs(window.location.search);
|
|
@@ -11552,7 +11552,7 @@ const Sl = {
|
|
|
11552
11552
|
customerEmail: a
|
|
11553
11553
|
}) => {
|
|
11554
11554
|
const [i, l] = ae([]), [d, f] = ae([]), [c, m] = ae(/* @__PURE__ */ new Map()), [g, b] = ae(/* @__PURE__ */ new Map()), [h, v] = ae(!1);
|
|
11555
|
-
|
|
11555
|
+
pe(() => {
|
|
11556
11556
|
(async () => {
|
|
11557
11557
|
const w = e;
|
|
11558
11558
|
try {
|
|
@@ -11569,28 +11569,28 @@ const Sl = {
|
|
|
11569
11569
|
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${w}`), l([]), v(!0);
|
|
11570
11570
|
return;
|
|
11571
11571
|
}
|
|
11572
|
-
const R = await S.json(), C = cs(typeof window < "u" ? window.location.search : ""),
|
|
11573
|
-
l(
|
|
11572
|
+
const R = await S.json(), C = cs(typeof window < "u" ? window.location.search : ""), E = await Ic(R, C), { tokens: k, errors: T } = await pb(E, t, o, C);
|
|
11573
|
+
l(E), f(C), m(new Map(k)), b(T);
|
|
11574
11574
|
} catch (S) {
|
|
11575
11575
|
console.error("Failed to load extensions:", S);
|
|
11576
11576
|
} finally {
|
|
11577
11577
|
v(!0);
|
|
11578
11578
|
}
|
|
11579
11579
|
})();
|
|
11580
|
-
}, [e, o, t]),
|
|
11580
|
+
}, [e, o, t]), pe(() => {
|
|
11581
11581
|
if (!t || !o || i.length === 0) return;
|
|
11582
11582
|
const w = setInterval(async () => {
|
|
11583
11583
|
const S = [];
|
|
11584
11584
|
await Promise.all(
|
|
11585
11585
|
i.filter((R) => R.manifest.permissions.includes("data:fetch")).map(async (R) => {
|
|
11586
|
-
const C = d.find((_) => _.extensionId === R.id),
|
|
11586
|
+
const C = d.find((_) => _.extensionId === R.id), E = C == null ? void 0 : C.token, k = C == null ? void 0 : C.mode, T = an(t, "/proxy-token"), M = await fetch(T, {
|
|
11587
11587
|
method: "POST",
|
|
11588
11588
|
headers: { "Content-Type": "application/json" },
|
|
11589
11589
|
body: JSON.stringify({
|
|
11590
11590
|
appId: o,
|
|
11591
11591
|
extensionId: R.id,
|
|
11592
|
-
...
|
|
11593
|
-
...
|
|
11592
|
+
...k && { mode: k },
|
|
11593
|
+
...E && { devSessionToken: E }
|
|
11594
11594
|
})
|
|
11595
11595
|
});
|
|
11596
11596
|
if (M.ok) {
|
|
@@ -11601,32 +11601,30 @@ const Sl = {
|
|
|
11601
11601
|
})
|
|
11602
11602
|
), S.length > 0 && m((R) => {
|
|
11603
11603
|
const C = new Map(R);
|
|
11604
|
-
for (const [
|
|
11605
|
-
C.set(
|
|
11604
|
+
for (const [E, k] of S)
|
|
11605
|
+
C.set(E, k);
|
|
11606
11606
|
return C;
|
|
11607
11607
|
});
|
|
11608
11608
|
}, 3300 * 1e3);
|
|
11609
11609
|
return () => clearInterval(w);
|
|
11610
|
-
}, [i, d, t, o]),
|
|
11610
|
+
}, [i, d, t, o]), pe(() => {
|
|
11611
11611
|
if (c.size === 0) return;
|
|
11612
11612
|
const x = (w) => {
|
|
11613
11613
|
const S = w.data;
|
|
11614
11614
|
if ((S == null ? void 0 : S.type) !== "extension-ready") return;
|
|
11615
11615
|
const R = S.extensionId, C = i.find((T) => T.id === R);
|
|
11616
11616
|
if (!(C != null && C.bundleUrl)) return;
|
|
11617
|
-
const
|
|
11618
|
-
if (Pc(C.bundleUrl) && (
|
|
11619
|
-
const
|
|
11620
|
-
|
|
11617
|
+
const E = d.find((T) => T.extensionId === R);
|
|
11618
|
+
if (Pc(C.bundleUrl) && (E == null ? void 0 : E.mode) !== "staging") return;
|
|
11619
|
+
const k = c.get(R);
|
|
11620
|
+
k && nn(R, { type: "extension-encryption-key", encryptionKey: k.encryptionKey });
|
|
11621
11621
|
};
|
|
11622
11622
|
return window.addEventListener("message", x), () => window.removeEventListener("message", x);
|
|
11623
11623
|
}, [i, d, c]);
|
|
11624
11624
|
const y = rs(
|
|
11625
11625
|
() => ({
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
kl(x, n)
|
|
11629
|
-
),
|
|
11626
|
+
// TODO(data.query-deprecation): Remove when data.query is deprecated — host-native ecommerce route replaced by extension + data.fetch
|
|
11627
|
+
"data.query": async (x) => El(x, n),
|
|
11630
11628
|
"data.fetch": async (x, w) => {
|
|
11631
11629
|
const S = c.get(x);
|
|
11632
11630
|
if (!S)
|
|
@@ -11642,7 +11640,7 @@ const Sl = {
|
|
|
11642
11640
|
method: w.method ?? "GET",
|
|
11643
11641
|
headers: w.headers ?? {},
|
|
11644
11642
|
body: w.body ?? null
|
|
11645
|
-
}, C = an(t, "/proxy"),
|
|
11643
|
+
}, C = an(t, "/proxy"), E = await fetch(C, {
|
|
11646
11644
|
method: "POST",
|
|
11647
11645
|
headers: {
|
|
11648
11646
|
"Content-Type": "application/json",
|
|
@@ -11651,11 +11649,11 @@ const Sl = {
|
|
|
11651
11649
|
Authorization: `Bearer ${S.token}`
|
|
11652
11650
|
},
|
|
11653
11651
|
body: JSON.stringify(R)
|
|
11654
|
-
}),
|
|
11652
|
+
}), k = await E.json();
|
|
11655
11653
|
return {
|
|
11656
|
-
status:
|
|
11657
|
-
ok:
|
|
11658
|
-
data:
|
|
11654
|
+
status: k.status ?? E.status,
|
|
11655
|
+
ok: k.ok ?? E.ok,
|
|
11656
|
+
data: k.data
|
|
11659
11657
|
};
|
|
11660
11658
|
},
|
|
11661
11659
|
"actions.toast": async (x, w) => {
|
|
@@ -11667,10 +11665,10 @@ const Sl = {
|
|
|
11667
11665
|
...w.closeButton != null && { closeButton: w.closeButton }
|
|
11668
11666
|
};
|
|
11669
11667
|
if (w.fetch) {
|
|
11670
|
-
const R = (
|
|
11668
|
+
const R = (E) => new Promise((k) => setTimeout(k, E)), C = Promise.all([
|
|
11671
11669
|
y["data.fetch"](x, w.fetch),
|
|
11672
11670
|
R(fb)
|
|
11673
|
-
]).then(([
|
|
11671
|
+
]).then(([E]) => E);
|
|
11674
11672
|
vt.promise(C, {
|
|
11675
11673
|
loading: w.loading ?? w.message,
|
|
11676
11674
|
success: w.success ?? w.message,
|
|
@@ -11700,11 +11698,7 @@ const Sl = {
|
|
|
11700
11698
|
vt(w.message, S);
|
|
11701
11699
|
}
|
|
11702
11700
|
},
|
|
11703
|
-
"actions.invoke": async (x) => {
|
|
11704
|
-
if (x.action === "newConversation")
|
|
11705
|
-
return window.dispatchEvent(new CustomEvent("ext-new-conversation", { detail: x })), { success: !0 };
|
|
11706
|
-
throw new Error(`Unknown action: ${x.action}`);
|
|
11707
|
-
},
|
|
11701
|
+
"actions.invoke": async (x) => (window.dispatchEvent(new CustomEvent(`ext-action-${x.action}`, { detail: x })), { success: !0 }),
|
|
11708
11702
|
"context.read": async () => ({
|
|
11709
11703
|
customerId: s ?? "",
|
|
11710
11704
|
customerEmail: a ?? ""
|
|
@@ -11769,7 +11763,7 @@ const yb = ({ ...e }) => {
|
|
|
11769
11763
|
...e
|
|
11770
11764
|
}
|
|
11771
11765
|
);
|
|
11772
|
-
}, wb = { dark: "dark", light: "widget-theme-light" }, xb = { dark: "dark", light: "light" },
|
|
11766
|
+
}, wb = { dark: "dark", light: "widget-theme-light" }, xb = { dark: "dark", light: "light" }, kl = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ z("div", { "data-id": "widget-body", className: wb[t], style: { position: "relative", transform: "translateZ(0)" }, children: [
|
|
11773
11767
|
/* @__PURE__ */ p("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ p("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }),
|
|
11774
11768
|
/* @__PURE__ */ p(yb, { position: "bottom-center", theme: xb[t] ?? "system", toastOptions: { descriptionClassName: "!text-muted-foreground" } })
|
|
11775
11769
|
] }), Rl = ({ onClick: e, icon: t = Fc }) => /* @__PURE__ */ p("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ p(
|
|
@@ -11781,16 +11775,23 @@ const yb = ({ ...e }) => {
|
|
|
11781
11775
|
children: /* @__PURE__ */ p(t, { className: "h-6 w-6" })
|
|
11782
11776
|
}
|
|
11783
11777
|
) }), Ob = ({ children: e, icon: t, theme: n }) => {
|
|
11784
|
-
const [o, r] = ae(!1)
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11778
|
+
const [o, r] = ae(!1), [s, a] = ae(!0), i = It(() => {
|
|
11779
|
+
r((l) => !l);
|
|
11780
|
+
}, []);
|
|
11781
|
+
return pe(() => {
|
|
11782
|
+
const l = () => r((g) => !g), d = () => r(!0), f = () => r(!1), c = () => a(!0), m = () => {
|
|
11783
|
+
r(!1), a(!1);
|
|
11784
|
+
};
|
|
11785
|
+
return window.addEventListener("ext-action-toggle", l), window.addEventListener("ext-action-open", d), window.addEventListener("ext-action-close", f), window.addEventListener("ext-action-show", c), window.addEventListener("ext-action-hide", m), () => {
|
|
11786
|
+
window.removeEventListener("ext-action-open", d), window.removeEventListener("ext-action-close", f), window.removeEventListener("ext-action-toggle", l), window.removeEventListener("ext-action-show", c), window.removeEventListener("ext-action-hide", m);
|
|
11787
|
+
};
|
|
11788
|
+
}, []), /* @__PURE__ */ z($e, { children: [
|
|
11789
|
+
s && /* @__PURE__ */ p(Rl, { onClick: i, icon: t }),
|
|
11789
11790
|
o && // eslint-disable-next-line @stylistic/max-len
|
|
11790
|
-
/* @__PURE__ */ p("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", style: { "--widget-z": 1e3 }, children: /* @__PURE__ */ p(
|
|
11791
|
+
/* @__PURE__ */ p("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", style: { "--widget-z": 1e3 }, children: /* @__PURE__ */ p(kl, { theme: n, children: e }) })
|
|
11791
11792
|
] });
|
|
11792
11793
|
}, Lb = {
|
|
11793
|
-
Body:
|
|
11794
|
+
Body: kl,
|
|
11794
11795
|
Launcher: Rl
|
|
11795
11796
|
}, Sb = ({ href: e, children: t }) => /* @__PURE__ */ p(
|
|
11796
11797
|
"a",
|
|
@@ -11803,7 +11804,7 @@ const yb = ({ ...e }) => {
|
|
|
11803
11804
|
}
|
|
11804
11805
|
), Cb = (e, t) => {
|
|
11805
11806
|
const [n, o] = ae(null), [r, s] = ae(!1), [a, i] = ae(null);
|
|
11806
|
-
return
|
|
11807
|
+
return pe(() => {
|
|
11807
11808
|
if (!e) {
|
|
11808
11809
|
o(null);
|
|
11809
11810
|
return;
|
|
@@ -11811,7 +11812,7 @@ const yb = ({ ...e }) => {
|
|
|
11811
11812
|
(async () => {
|
|
11812
11813
|
s(!0), i(null);
|
|
11813
11814
|
try {
|
|
11814
|
-
const d = await
|
|
11815
|
+
const d = await El({
|
|
11815
11816
|
action: "getCustomer",
|
|
11816
11817
|
customerId: e
|
|
11817
11818
|
}, t);
|
|
@@ -11823,18 +11824,18 @@ const yb = ({ ...e }) => {
|
|
|
11823
11824
|
}
|
|
11824
11825
|
})();
|
|
11825
11826
|
}, [e, t]), { customer: n, loading: r, error: a };
|
|
11826
|
-
},
|
|
11827
|
+
}, Eb = ({ customerId: e, customerEmail: t, hostBase: n, children: o }) => {
|
|
11827
11828
|
var l, d;
|
|
11828
11829
|
const { customer: r, loading: s, error: a } = Cb(e, n);
|
|
11829
11830
|
if (s)
|
|
11830
|
-
return /* @__PURE__ */ p(
|
|
11831
|
+
return /* @__PURE__ */ p(Mt, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ p(Ot, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ p(To, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
11831
11832
|
if (a || !r) {
|
|
11832
11833
|
const f = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", c = f.split(/[\s._-]+/).map((m) => m[0]).join("").slice(0, 2).toUpperCase();
|
|
11833
|
-
return /* @__PURE__ */ p(
|
|
11834
|
+
return /* @__PURE__ */ p(Mt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ z(Ot, { className: "p-4 pb-0 pt-2", children: [
|
|
11834
11835
|
/* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
|
|
11835
|
-
/* @__PURE__ */ z(
|
|
11836
|
+
/* @__PURE__ */ z(Eo, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
11836
11837
|
/* @__PURE__ */ p(
|
|
11837
|
-
|
|
11838
|
+
ko,
|
|
11838
11839
|
{
|
|
11839
11840
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(f)}&background=7c3aed&color=fff&size=128`,
|
|
11840
11841
|
alt: f
|
|
@@ -11858,10 +11859,10 @@ const yb = ({ ...e }) => {
|
|
|
11858
11859
|
] }) });
|
|
11859
11860
|
}
|
|
11860
11861
|
const i = `${((l = r.first_name) == null ? void 0 : l[0]) || ""}${((d = r.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
11861
|
-
return /* @__PURE__ */ p(
|
|
11862
|
-
/* @__PURE__ */ z(
|
|
11862
|
+
return /* @__PURE__ */ p(Mt, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ p(Ot, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ z("div", { className: "flex flex-col items-center", children: [
|
|
11863
|
+
/* @__PURE__ */ z(Eo, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
11863
11864
|
/* @__PURE__ */ p(
|
|
11864
|
-
|
|
11865
|
+
ko,
|
|
11865
11866
|
{
|
|
11866
11867
|
src: `https://ui-avatars.com/api/?name=${encodeURIComponent(r.name)}&background=7c3aed&color=fff&size=128`,
|
|
11867
11868
|
alt: r.name
|
|
@@ -11882,7 +11883,7 @@ const yb = ({ ...e }) => {
|
|
|
11882
11883
|
] })
|
|
11883
11884
|
] }) }) });
|
|
11884
11885
|
}, Nl = (e, t) => {
|
|
11885
|
-
|
|
11886
|
+
pe(() => {
|
|
11886
11887
|
const n = t.current;
|
|
11887
11888
|
if (!n) return;
|
|
11888
11889
|
let o = document.getElementById(e);
|
|
@@ -11895,9 +11896,9 @@ const yb = ({ ...e }) => {
|
|
|
11895
11896
|
r.disconnect(), o == null || o.remove();
|
|
11896
11897
|
};
|
|
11897
11898
|
}, [e, t]);
|
|
11898
|
-
},
|
|
11899
|
+
}, kb = ({ customization: e }) => {
|
|
11899
11900
|
const t = it(null);
|
|
11900
|
-
return Nl("widget_conversations", t),
|
|
11901
|
+
return Nl("widget_conversations", t), pe(() => {
|
|
11901
11902
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
11902
11903
|
conversationList: e
|
|
11903
11904
|
});
|
|
@@ -11910,7 +11911,7 @@ const yb = ({ ...e }) => {
|
|
|
11910
11911
|
);
|
|
11911
11912
|
}, Rb = ({ customization: e }) => {
|
|
11912
11913
|
const t = it(null);
|
|
11913
|
-
return Nl("widget_messages", t),
|
|
11914
|
+
return Nl("widget_messages", t), pe(() => {
|
|
11914
11915
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
11915
11916
|
messageLog: e
|
|
11916
11917
|
});
|
|
@@ -11932,7 +11933,7 @@ const yb = ({ ...e }) => {
|
|
|
11932
11933
|
const a = Math.max(
|
|
11933
11934
|
ro,
|
|
11934
11935
|
Math.min(so, s)
|
|
11935
|
-
), [i, l] = ae("account"), [d, f] = ae(a), [c, m] = ae(!1), [g, b] = ae(!1), [h, v] = ae(!1), y = it(null), x =
|
|
11936
|
+
), [i, l] = ae("account"), [d, f] = ae(a), [c, m] = ae(!1), [g, b] = ae(!1), [h, v] = ae(!1), y = it(null), x = It(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
11936
11937
|
mode: "embedded",
|
|
11937
11938
|
conversationList: { targetElement: "#widget_conversations" },
|
|
11938
11939
|
messageLog: { targetElement: "#widget_messages" }
|
|
@@ -11941,57 +11942,56 @@ const yb = ({ ...e }) => {
|
|
|
11941
11942
|
conversationList: { hideHeader: !0, hideNewConversationButton: !0 },
|
|
11942
11943
|
messageLog: { hideHeader: !0 }
|
|
11943
11944
|
}), !0), []);
|
|
11944
|
-
|
|
11945
|
+
pe(() => {
|
|
11945
11946
|
if (x()) {
|
|
11946
11947
|
b(!0);
|
|
11947
11948
|
return;
|
|
11948
11949
|
}
|
|
11949
11950
|
const C = setInterval(() => {
|
|
11950
11951
|
x() && (b(!0), clearInterval(C));
|
|
11951
|
-
}, 100),
|
|
11952
|
+
}, 100), E = setTimeout(() => {
|
|
11952
11953
|
clearInterval(C), console.warn("Zendesk widget failed to load after 10 seconds");
|
|
11953
11954
|
}, 1e4);
|
|
11954
11955
|
return () => {
|
|
11955
|
-
clearInterval(C), clearTimeout(
|
|
11956
|
+
clearInterval(C), clearTimeout(E);
|
|
11956
11957
|
};
|
|
11957
11958
|
}, [x]);
|
|
11958
|
-
const w =
|
|
11959
|
-
const { detail:
|
|
11960
|
-
|
|
11961
|
-
window.zE("messenger:ui", "newConversation", k.payload);
|
|
11959
|
+
const w = It((C) => {
|
|
11960
|
+
const { detail: E } = C;
|
|
11961
|
+
!window.zE || !(E != null && E.payload) || window.zE("messenger:ui", "newConversation", E.payload);
|
|
11962
11962
|
}, []);
|
|
11963
|
-
|
|
11964
|
-
window.removeEventListener("ext-
|
|
11965
|
-
}), [w]),
|
|
11963
|
+
pe(() => (window.addEventListener("ext-action-newConversation", w), () => {
|
|
11964
|
+
window.removeEventListener("ext-action-newConversation", w);
|
|
11965
|
+
}), [w]), pe(() => {
|
|
11966
11966
|
if (!h) return;
|
|
11967
|
-
const C = (
|
|
11967
|
+
const C = (k) => {
|
|
11968
11968
|
if (!y.current) return;
|
|
11969
11969
|
const T = y.current.getBoundingClientRect();
|
|
11970
11970
|
if ((c ? T.width : T.height) === 0) return;
|
|
11971
|
-
const _ = c ? (
|
|
11971
|
+
const _ = c ? (k.clientX - T.left) / T.width * 100 : (k.clientY - T.top) / T.height * 100, L = Math.max(
|
|
11972
11972
|
ro,
|
|
11973
11973
|
Math.min(so, _)
|
|
11974
11974
|
);
|
|
11975
11975
|
f(L);
|
|
11976
|
-
},
|
|
11976
|
+
}, E = () => {
|
|
11977
11977
|
v(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
11978
11978
|
};
|
|
11979
|
-
return document.body.style.cursor = c ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", C), window.addEventListener("mouseup",
|
|
11980
|
-
window.removeEventListener("mousemove", C), window.removeEventListener("mouseup",
|
|
11979
|
+
return document.body.style.cursor = c ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", C), window.addEventListener("mouseup", E), window.addEventListener("blur", E), () => {
|
|
11980
|
+
window.removeEventListener("mousemove", C), window.removeEventListener("mouseup", E), window.removeEventListener("blur", E), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
11981
11981
|
};
|
|
11982
|
-
}, [h, c]),
|
|
11982
|
+
}, [h, c]), pe(() => {
|
|
11983
11983
|
if (!y.current) return;
|
|
11984
|
-
const C = y.current,
|
|
11984
|
+
const C = y.current, E = () => {
|
|
11985
11985
|
const T = getComputedStyle(C).flexDirection === "row";
|
|
11986
11986
|
m(T);
|
|
11987
11987
|
};
|
|
11988
|
-
|
|
11989
|
-
const
|
|
11990
|
-
return
|
|
11991
|
-
|
|
11988
|
+
E();
|
|
11989
|
+
const k = new ResizeObserver(E);
|
|
11990
|
+
return k.observe(C), () => {
|
|
11991
|
+
k.disconnect();
|
|
11992
11992
|
};
|
|
11993
11993
|
}, []);
|
|
11994
|
-
const S =
|
|
11994
|
+
const S = It((C) => {
|
|
11995
11995
|
if (C.detail === 2) {
|
|
11996
11996
|
f(a);
|
|
11997
11997
|
return;
|
|
@@ -12048,8 +12048,8 @@ const yb = ({ ...e }) => {
|
|
|
12048
12048
|
] }),
|
|
12049
12049
|
/* @__PURE__ */ z("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
12050
12050
|
/* @__PURE__ */ z("div", { className: W("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
12051
|
-
/* @__PURE__ */ p(
|
|
12052
|
-
|
|
12051
|
+
/* @__PURE__ */ p(Eb, { customerId: o, customerEmail: r, hostBase: n, children: /* @__PURE__ */ p(
|
|
12052
|
+
Gt,
|
|
12053
12053
|
{
|
|
12054
12054
|
target: "slot.header",
|
|
12055
12055
|
context: R,
|
|
@@ -12057,7 +12057,7 @@ const yb = ({ ...e }) => {
|
|
|
12057
12057
|
}
|
|
12058
12058
|
) }),
|
|
12059
12059
|
/* @__PURE__ */ p(
|
|
12060
|
-
|
|
12060
|
+
Gt,
|
|
12061
12061
|
{
|
|
12062
12062
|
target: "slot.content",
|
|
12063
12063
|
context: R,
|
|
@@ -12068,7 +12068,7 @@ const yb = ({ ...e }) => {
|
|
|
12068
12068
|
/* @__PURE__ */ p("div", { className: W(
|
|
12069
12069
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
12070
12070
|
i === "account" && "hidden"
|
|
12071
|
-
), children: /* @__PURE__ */ p(
|
|
12071
|
+
), children: /* @__PURE__ */ p(kb, {}) })
|
|
12072
12072
|
] })
|
|
12073
12073
|
]
|
|
12074
12074
|
}
|
|
@@ -12083,7 +12083,7 @@ const yb = ({ ...e }) => {
|
|
|
12083
12083
|
/* @__PURE__ */ p("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ p(Rb, {}) }),
|
|
12084
12084
|
/* @__PURE__ */ z("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
12085
12085
|
/* @__PURE__ */ p(
|
|
12086
|
-
|
|
12086
|
+
Gt,
|
|
12087
12087
|
{
|
|
12088
12088
|
target: "slot.footer",
|
|
12089
12089
|
context: R,
|
|
@@ -12095,14 +12095,14 @@ const yb = ({ ...e }) => {
|
|
|
12095
12095
|
}
|
|
12096
12096
|
),
|
|
12097
12097
|
/* @__PURE__ */ p(
|
|
12098
|
-
|
|
12098
|
+
Gt,
|
|
12099
12099
|
{
|
|
12100
12100
|
target: "slot.footer-links",
|
|
12101
12101
|
context: R,
|
|
12102
12102
|
className: "flex items-center gap-1",
|
|
12103
12103
|
separator: /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "/" }),
|
|
12104
|
-
render: ({ children: C, index:
|
|
12105
|
-
|
|
12104
|
+
render: ({ children: C, index: E }) => /* @__PURE__ */ z($e, { children: [
|
|
12105
|
+
E === 0 && /* @__PURE__ */ p("span", { className: "text-zinc-300", children: "+" }),
|
|
12106
12106
|
C
|
|
12107
12107
|
] })
|
|
12108
12108
|
}
|
|
@@ -12162,7 +12162,7 @@ const yb = ({ ...e }) => {
|
|
|
12162
12162
|
const i = document.createElement("script");
|
|
12163
12163
|
i.id = o, i.src = os(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
12164
12164
|
});
|
|
12165
|
-
}, zb = ({ config: e }) => (
|
|
12165
|
+
}, zb = ({ config: e }) => (pe(() => {
|
|
12166
12166
|
e.snippetKey && Tb(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
12167
12167
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
12168
12168
|
});
|