@stackable-labs/embeddables 2.30.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.js +169 -169
- package/dist/stackable-widget.external.js +7 -7
- package/dist/stackable-widget.js +16 -16
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as On from "react-dom";
|
|
|
5
5
|
import Mi from "react-dom";
|
|
6
6
|
const Ed = 8e3, kd = () => {
|
|
7
7
|
try {
|
|
8
|
-
return "
|
|
8
|
+
return "dfb28d09-ec40-40b3-be2c-f4b0fc203328";
|
|
9
9
|
} catch {
|
|
10
10
|
return "dev";
|
|
11
11
|
}
|
|
@@ -166,7 +166,7 @@ const Ed = 8e3, kd = () => {
|
|
|
166
166
|
detail: `Dev sandbox did not signal extension-ready within ${r}ms (HEAD passed; likely a non-sandbox page at this URL or stuck boot)`
|
|
167
167
|
})));
|
|
168
168
|
}, r);
|
|
169
|
-
}),
|
|
169
|
+
}), De = (e, t) => {
|
|
170
170
|
const n = ut.get(e);
|
|
171
171
|
if (!(n != null && n.iframe.contentWindow)) {
|
|
172
172
|
console.warn(`Sandbox not found for extension: ${e}`);
|
|
@@ -174,7 +174,7 @@ const Ed = 8e3, kd = () => {
|
|
|
174
174
|
}
|
|
175
175
|
const r = n.expectedOrigin === "null" ? "*" : n.expectedOrigin;
|
|
176
176
|
n.iframe.contentWindow.postMessage(t, r);
|
|
177
|
-
},
|
|
177
|
+
}, ze = (e) => ut.get(e), os = (e) => {
|
|
178
178
|
const t = ut.get(e);
|
|
179
179
|
t && (t.iframe.remove(), t.messageHandlers.clear(), ut.delete(e)), Vt.delete(e);
|
|
180
180
|
}, Md = (e) => {
|
|
@@ -536,14 +536,14 @@ const _t = {
|
|
|
536
536
|
const o = r;
|
|
537
537
|
console.warn("[CapabilityRPC] raw message data:", JSON.stringify(n.data));
|
|
538
538
|
const s = o.extensionId;
|
|
539
|
-
if (!s || !
|
|
539
|
+
if (!s || !ze(s)) {
|
|
540
540
|
const c = [...Ft().keys()];
|
|
541
541
|
console.warn(
|
|
542
542
|
`Received capability request from unknown source (extensionId: "${s ?? "undefined"}", registered: [${c.join(", ")}], capability: ${o.capability})`
|
|
543
543
|
);
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
|
-
const i =
|
|
546
|
+
const i = ze(s);
|
|
547
547
|
if (!i)
|
|
548
548
|
return;
|
|
549
549
|
const a = Fd[o.capability];
|
|
@@ -554,7 +554,7 @@ const _t = {
|
|
|
554
554
|
success: !1,
|
|
555
555
|
error: `Permission denied: '${a}' not granted for extension '${s}'`
|
|
556
556
|
};
|
|
557
|
-
|
|
557
|
+
De(s, c);
|
|
558
558
|
return;
|
|
559
559
|
}
|
|
560
560
|
try {
|
|
@@ -594,7 +594,7 @@ const _t = {
|
|
|
594
594
|
success: !0,
|
|
595
595
|
data: c
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
De(s, d);
|
|
598
598
|
} catch (c) {
|
|
599
599
|
const d = {
|
|
600
600
|
type: "capability-response",
|
|
@@ -602,7 +602,7 @@ const _t = {
|
|
|
602
602
|
success: !1,
|
|
603
603
|
error: c instanceof Error ? c.message : "Unknown error"
|
|
604
604
|
};
|
|
605
|
-
|
|
605
|
+
De(s, d);
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
608
|
return window.addEventListener("message", t), () => {
|
|
@@ -769,12 +769,12 @@ const _t = {
|
|
|
769
769
|
const R = (S) => {
|
|
770
770
|
const k = S.data;
|
|
771
771
|
if (!(!k || typeof k != "object" || !h.some((T) => {
|
|
772
|
-
const M =
|
|
772
|
+
const M = ze(T.id);
|
|
773
773
|
return M && S.source === M.iframe.contentWindow;
|
|
774
774
|
}))) {
|
|
775
775
|
if (k.type === "surface-update" && k.surfaceId === e) {
|
|
776
776
|
const T = h.find((L) => {
|
|
777
|
-
const P =
|
|
777
|
+
const P = ze(L.id);
|
|
778
778
|
return P && S.source === P.iframe.contentWindow;
|
|
779
779
|
});
|
|
780
780
|
if (!T)
|
|
@@ -789,7 +789,7 @@ const _t = {
|
|
|
789
789
|
const T = Wd(t);
|
|
790
790
|
h.forEach((M) => {
|
|
791
791
|
var P;
|
|
792
|
-
const L =
|
|
792
|
+
const L = ze(M.id);
|
|
793
793
|
(P = L == null ? void 0 : L.iframe.contentWindow) == null || P.postMessage(
|
|
794
794
|
{ type: "context-update", surfaceId: e, context: T },
|
|
795
795
|
"*"
|
|
@@ -800,7 +800,7 @@ const _t = {
|
|
|
800
800
|
};
|
|
801
801
|
return window.addEventListener("message", R), h.forEach((S) => {
|
|
802
802
|
var E;
|
|
803
|
-
const k =
|
|
803
|
+
const k = ze(S.id);
|
|
804
804
|
(E = k == null ? void 0 : k.iframe.contentWindow) == null || E.postMessage(
|
|
805
805
|
{ type: "surface-render", surfaceId: e, context: t },
|
|
806
806
|
"*"
|
|
@@ -863,12 +863,12 @@ const _t = {
|
|
|
863
863
|
const g = (v) => {
|
|
864
864
|
const y = v.data;
|
|
865
865
|
if (!(!y || typeof y != "object" || !l.some((x) => {
|
|
866
|
-
const C =
|
|
866
|
+
const C = ze(x.id);
|
|
867
867
|
return C && v.source === C.iframe.contentWindow;
|
|
868
868
|
}))) {
|
|
869
869
|
if (y.type === "surface-update" && y.surfaceId === e) {
|
|
870
870
|
const x = l.find((R) => {
|
|
871
|
-
const S =
|
|
871
|
+
const S = ze(R.id);
|
|
872
872
|
return S && v.source === S.iframe.contentWindow;
|
|
873
873
|
});
|
|
874
874
|
if (!x)
|
|
@@ -883,7 +883,7 @@ const _t = {
|
|
|
883
883
|
const x = qd(t);
|
|
884
884
|
l.forEach((C) => {
|
|
885
885
|
var S;
|
|
886
|
-
const R =
|
|
886
|
+
const R = ze(C.id);
|
|
887
887
|
(S = R == null ? void 0 : R.iframe.contentWindow) == null || S.postMessage(
|
|
888
888
|
{ type: "context-update", surfaceId: e, context: x },
|
|
889
889
|
"*"
|
|
@@ -894,7 +894,7 @@ const _t = {
|
|
|
894
894
|
};
|
|
895
895
|
return window.addEventListener("message", g), l.forEach((v) => {
|
|
896
896
|
var w;
|
|
897
|
-
const y =
|
|
897
|
+
const y = ze(v.id);
|
|
898
898
|
(w = y == null ? void 0 : y.iframe.contentWindow) == null || w.postMessage(
|
|
899
899
|
{ type: "surface-render", surfaceId: e, context: t },
|
|
900
900
|
"*"
|
|
@@ -1293,7 +1293,7 @@ function fn(e) {
|
|
|
1293
1293
|
return e.label !== void 0;
|
|
1294
1294
|
}
|
|
1295
1295
|
const pu = 3, mu = "24px", hu = "16px", is = 4e3, gu = 356, vu = 14, bu = 45, yu = 200;
|
|
1296
|
-
function
|
|
1296
|
+
function je(...e) {
|
|
1297
1297
|
return e.filter(Boolean).join(" ");
|
|
1298
1298
|
}
|
|
1299
1299
|
function wu(e) {
|
|
@@ -1302,7 +1302,7 @@ function wu(e) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
const xu = (e) => {
|
|
1304
1304
|
var t, n, r, o, s, i, a, c, d;
|
|
1305
|
-
const { invert: u, toast: l, unstyled: p, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: S, style: k, cancelButtonStyle: E, actionButtonStyle: T, className: M = "", descriptionClassName: L = "", duration: P, position: _, gap: D, expandByDefault: $, classNames: B, icons: j, closeButtonAriaLabel: U = "Close toast" } = e, [ee, H] = F.useState(null), [de, he] = F.useState(null), [J, oe] = F.useState(!1), [K, ne] = F.useState(!1), [N, A] = F.useState(!1), [I, O] = F.useState(!1), [z, V] = F.useState(!1), [X,
|
|
1305
|
+
const { invert: u, toast: l, unstyled: p, interacting: h, setHeights: b, visibleToasts: g, heights: v, index: y, toasts: w, expanded: x, removeToast: C, defaultRichColors: R, closeButton: S, style: k, cancelButtonStyle: E, actionButtonStyle: T, className: M = "", descriptionClassName: L = "", duration: P, position: _, gap: D, expandByDefault: $, classNames: B, icons: j, closeButtonAriaLabel: U = "Close toast" } = e, [ee, H] = F.useState(null), [de, he] = F.useState(null), [J, oe] = F.useState(!1), [K, ne] = F.useState(!1), [N, A] = F.useState(!1), [I, O] = F.useState(!1), [z, V] = F.useState(!1), [X, se] = F.useState(0), [pe, me] = F.useState(0), ue = F.useRef(l.duration || P || is), xe = F.useRef(null), fe = F.useRef(null), Ve = y === 0, cn = y + 1 <= g, Ce = l.type, Ue = l.dismissible !== !1, pd = l.className || "", md = l.descriptionClassName || "", ln = F.useMemo(() => v.findIndex((re) => re.toastId === l.id) || 0, [
|
|
1306
1306
|
v,
|
|
1307
1307
|
l.id
|
|
1308
1308
|
]), hd = F.useMemo(() => {
|
|
@@ -1370,7 +1370,7 @@ const xu = (e) => {
|
|
|
1370
1370
|
l.cancel
|
|
1371
1371
|
]);
|
|
1372
1372
|
const ot = F.useCallback(() => {
|
|
1373
|
-
ne(!0),
|
|
1373
|
+
ne(!0), se(Pt.current), b((re) => re.filter((ye) => ye.toastId !== l.id)), setTimeout(() => {
|
|
1374
1374
|
C(l);
|
|
1375
1375
|
}, yu);
|
|
1376
1376
|
}, [
|
|
@@ -1411,12 +1411,12 @@ const xu = (e) => {
|
|
|
1411
1411
|
if (j != null && j.loading) {
|
|
1412
1412
|
var ye;
|
|
1413
1413
|
return /* @__PURE__ */ F.createElement("div", {
|
|
1414
|
-
className:
|
|
1414
|
+
className: je(B == null ? void 0 : B.loader, l == null || (ye = l.classNames) == null ? void 0 : ye.loader, "sonner-loader"),
|
|
1415
1415
|
"data-visible": Ce === "loading"
|
|
1416
1416
|
}, j.loading);
|
|
1417
1417
|
}
|
|
1418
1418
|
return /* @__PURE__ */ F.createElement(eu, {
|
|
1419
|
-
className:
|
|
1419
|
+
className: je(B == null ? void 0 : B.loader, l == null || (re = l.classNames) == null ? void 0 : re.loader),
|
|
1420
1420
|
visible: Ce === "loading"
|
|
1421
1421
|
});
|
|
1422
1422
|
}
|
|
@@ -1425,7 +1425,7 @@ const xu = (e) => {
|
|
|
1425
1425
|
return /* @__PURE__ */ F.createElement("li", {
|
|
1426
1426
|
tabIndex: 0,
|
|
1427
1427
|
ref: fe,
|
|
1428
|
-
className:
|
|
1428
|
+
className: je(M, pd, B == null ? void 0 : B.toast, l == null || (t = l.classNames) == null ? void 0 : t.toast, B == null ? void 0 : B.default, B == null ? void 0 : B[Ce], l == null || (n = l.classNames) == null ? void 0 : n[Ce]),
|
|
1429
1429
|
"data-sonner-toast": "",
|
|
1430
1430
|
"data-rich-colors": (ts = l.richColors) != null ? ts : R,
|
|
1431
1431
|
"data-styled": !(l.jsx || l.unstyled || p),
|
|
@@ -1437,9 +1437,9 @@ const xu = (e) => {
|
|
|
1437
1437
|
"data-y-position": gd,
|
|
1438
1438
|
"data-x-position": vd,
|
|
1439
1439
|
"data-index": y,
|
|
1440
|
-
"data-front":
|
|
1440
|
+
"data-front": Ve,
|
|
1441
1441
|
"data-swiping": N,
|
|
1442
|
-
"data-dismissible":
|
|
1442
|
+
"data-dismissible": Ue,
|
|
1443
1443
|
"data-type": Ce,
|
|
1444
1444
|
"data-invert": bd,
|
|
1445
1445
|
"data-swipe-out": I,
|
|
@@ -1459,18 +1459,18 @@ const xu = (e) => {
|
|
|
1459
1459
|
A(!1), H(null), It.current = null;
|
|
1460
1460
|
},
|
|
1461
1461
|
onPointerDown: (re) => {
|
|
1462
|
-
re.button !== 2 && (ar || !
|
|
1462
|
+
re.button !== 2 && (ar || !Ue || (xe.current = /* @__PURE__ */ new Date(), se(Pt.current), re.target.setPointerCapture(re.pointerId), re.target.tagName !== "BUTTON" && (A(!0), It.current = {
|
|
1463
1463
|
x: re.clientX,
|
|
1464
1464
|
y: re.clientY
|
|
1465
1465
|
})));
|
|
1466
1466
|
},
|
|
1467
1467
|
onPointerUp: () => {
|
|
1468
1468
|
var re, ye, Se;
|
|
1469
|
-
if (I || !
|
|
1469
|
+
if (I || !Ue) return;
|
|
1470
1470
|
It.current = null;
|
|
1471
1471
|
const Te = Number(((re = fe.current) == null ? void 0 : re.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), dn = Number(((ye = fe.current) == null ? void 0 : ye.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((Se = xe.current) == null ? void 0 : Se.getTime()), Ie = ee === "x" ? Te : dn, un = Math.abs(Ie) / we;
|
|
1472
1472
|
if (Math.abs(Ie) >= bu || un > 0.11) {
|
|
1473
|
-
|
|
1473
|
+
se(Pt.current), l.onDismiss == null || l.onDismiss.call(l, l), he(ee === "x" ? Te > 0 ? "right" : "left" : dn > 0 ? "down" : "up"), ot(), O(!0);
|
|
1474
1474
|
return;
|
|
1475
1475
|
} else {
|
|
1476
1476
|
var Me, Le;
|
|
@@ -1480,7 +1480,7 @@ const xu = (e) => {
|
|
|
1480
1480
|
},
|
|
1481
1481
|
onPointerMove: (re) => {
|
|
1482
1482
|
var ye, Se, Te;
|
|
1483
|
-
if (!It.current || !
|
|
1483
|
+
if (!It.current || !Ue || ((ye = window.getSelection()) == null ? void 0 : ye.toString().length) > 0) return;
|
|
1484
1484
|
const we = re.clientY - It.current.y, Ie = re.clientX - It.current.x;
|
|
1485
1485
|
var un;
|
|
1486
1486
|
const Me = (un = e.swipeDirections) != null ? un : wu(_);
|
|
@@ -1511,31 +1511,31 @@ const xu = (e) => {
|
|
|
1511
1511
|
"aria-label": U,
|
|
1512
1512
|
"data-disabled": ar,
|
|
1513
1513
|
"data-close-button": !0,
|
|
1514
|
-
onClick: ar || !
|
|
1514
|
+
onClick: ar || !Ue ? () => {
|
|
1515
1515
|
} : () => {
|
|
1516
1516
|
ot(), l.onDismiss == null || l.onDismiss.call(l, l);
|
|
1517
1517
|
},
|
|
1518
|
-
className:
|
|
1518
|
+
className: je(B == null ? void 0 : B.closeButton, l == null || (r = l.classNames) == null ? void 0 : r.closeButton)
|
|
1519
1519
|
}, (ns = j == null ? void 0 : j.close) != null ? ns : su) : null, (Ce || l.icon || l.promise) && l.icon !== null && ((j == null ? void 0 : j[Ce]) !== null || l.icon) ? /* @__PURE__ */ F.createElement("div", {
|
|
1520
1520
|
"data-icon": "",
|
|
1521
|
-
className:
|
|
1521
|
+
className: je(B == null ? void 0 : B.icon, l == null || (o = l.classNames) == null ? void 0 : o.icon)
|
|
1522
1522
|
}, l.promise || l.type === "loading" && !l.icon ? l.icon || yd() : null, l.type !== "loading" ? wd : null) : null, /* @__PURE__ */ F.createElement("div", {
|
|
1523
1523
|
"data-content": "",
|
|
1524
|
-
className:
|
|
1524
|
+
className: je(B == null ? void 0 : B.content, l == null || (s = l.classNames) == null ? void 0 : s.content)
|
|
1525
1525
|
}, /* @__PURE__ */ F.createElement("div", {
|
|
1526
1526
|
"data-title": "",
|
|
1527
|
-
className:
|
|
1527
|
+
className: je(B == null ? void 0 : B.title, l == null || (i = l.classNames) == null ? void 0 : i.title)
|
|
1528
1528
|
}, l.jsx ? l.jsx : typeof l.title == "function" ? l.title() : l.title), l.description ? /* @__PURE__ */ F.createElement("div", {
|
|
1529
1529
|
"data-description": "",
|
|
1530
|
-
className:
|
|
1530
|
+
className: je(L, md, B == null ? void 0 : B.description, l == null || (a = l.classNames) == null ? void 0 : a.description)
|
|
1531
1531
|
}, typeof l.description == "function" ? l.description() : l.description) : null), /* @__PURE__ */ F.isValidElement(l.cancel) ? l.cancel : l.cancel && fn(l.cancel) ? /* @__PURE__ */ F.createElement("button", {
|
|
1532
1532
|
"data-button": !0,
|
|
1533
1533
|
"data-cancel": !0,
|
|
1534
1534
|
style: l.cancelButtonStyle || E,
|
|
1535
1535
|
onClick: (re) => {
|
|
1536
|
-
fn(l.cancel) &&
|
|
1536
|
+
fn(l.cancel) && Ue && (l.cancel.onClick == null || l.cancel.onClick.call(l.cancel, re), ot());
|
|
1537
1537
|
},
|
|
1538
|
-
className:
|
|
1538
|
+
className: je(B == null ? void 0 : B.cancelButton, l == null || (c = l.classNames) == null ? void 0 : c.cancelButton)
|
|
1539
1539
|
}, l.cancel.label) : null, /* @__PURE__ */ F.isValidElement(l.action) ? l.action : l.action && fn(l.action) ? /* @__PURE__ */ F.createElement("button", {
|
|
1540
1540
|
"data-button": !0,
|
|
1541
1541
|
"data-action": !0,
|
|
@@ -1543,7 +1543,7 @@ const xu = (e) => {
|
|
|
1543
1543
|
onClick: (re) => {
|
|
1544
1544
|
fn(l.action) && (l.action.onClick == null || l.action.onClick.call(l.action, re), !re.defaultPrevented && ot());
|
|
1545
1545
|
},
|
|
1546
|
-
className:
|
|
1546
|
+
className: je(B == null ? void 0 : B.actionButton, l == null || (d = l.classNames) == null ? void 0 : d.actionButton)
|
|
1547
1547
|
}, l.action.label) : null);
|
|
1548
1548
|
};
|
|
1549
1549
|
function as() {
|
|
@@ -2810,12 +2810,12 @@ const ep = (e, t) => {
|
|
|
2810
2810
|
}, xp = [], ve = (e) => {
|
|
2811
2811
|
const t = (n) => n[e] || xp;
|
|
2812
2812
|
return t.isThemeGetter = !0, t;
|
|
2813
|
-
}, ta = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, na = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Sp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ep = /\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$/, kp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Np = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Rp = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, st = (e) => Cp.test(e),
|
|
2813
|
+
}, ta = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, na = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Cp = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Sp = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ep = /\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$/, kp = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Np = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Rp = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, st = (e) => Cp.test(e), ie = (e) => !!e && !Number.isNaN(Number(e)), it = (e) => !!e && Number.isInteger(Number(e)), ur = (e) => e.endsWith("%") && ie(e.slice(0, -1)), Je = (e) => Sp.test(e), ra = () => !0, Tp = (e) => (
|
|
2814
2814
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2815
2815
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2816
2816
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2817
2817
|
Ep.test(e) && !kp.test(e)
|
|
2818
|
-
), Eo = () => !1, Ap = (e) => Np.test(e), Pp = (e) => Rp.test(e), Ip = (e) => !q(e) && !G(e), _p = (e) => ht(e, ia, Eo), q = (e) => ta.test(e), yt = (e) => ht(e, aa, Tp), hs = (e) => ht(e, $p,
|
|
2818
|
+
), Eo = () => !1, Ap = (e) => Np.test(e), Pp = (e) => Rp.test(e), Ip = (e) => !q(e) && !G(e), _p = (e) => ht(e, ia, Eo), q = (e) => ta.test(e), yt = (e) => ht(e, aa, Tp), hs = (e) => ht(e, $p, ie), Mp = (e) => ht(e, la, ra), Lp = (e) => ht(e, ca, Eo), gs = (e) => ht(e, oa, Eo), Op = (e) => ht(e, sa, Pp), pn = (e) => ht(e, da, Ap), G = (e) => na.test(e), Kt = (e) => Nt(e, aa), Dp = (e) => Nt(e, ca), vs = (e) => Nt(e, oa), zp = (e) => Nt(e, ia), Bp = (e) => Nt(e, sa), mn = (e) => Nt(e, da, !0), Fp = (e) => Nt(e, la, !0), ht = (e, t, n) => {
|
|
2819
2819
|
const r = ta.exec(e);
|
|
2820
2820
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
2821
2821
|
}, Nt = (e, t, n = !1) => {
|
|
@@ -2856,14 +2856,14 @@ const ep = (e, t) => {
|
|
|
2856
2856
|
d,
|
|
2857
2857
|
G,
|
|
2858
2858
|
q
|
|
2859
|
-
], ne = () => ["",
|
|
2859
|
+
], ne = () => ["", ie, Kt, yt], N = () => ["solid", "dashed", "dotted", "double"], A = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [ie, ur, vs, gs], O = () => [
|
|
2860
2860
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2861
2861
|
"",
|
|
2862
2862
|
"none",
|
|
2863
2863
|
b,
|
|
2864
2864
|
G,
|
|
2865
2865
|
q
|
|
2866
|
-
], z = () => ["none",
|
|
2866
|
+
], z = () => ["none", ie, G, q], V = () => ["none", ie, G, q], X = () => [ie, G, q], se = () => [st, "full", ...E()];
|
|
2867
2867
|
return {
|
|
2868
2868
|
cacheSize: 500,
|
|
2869
2869
|
theme: {
|
|
@@ -2882,7 +2882,7 @@ const ep = (e, t) => {
|
|
|
2882
2882
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
2883
2883
|
radius: [Je],
|
|
2884
2884
|
shadow: [Je],
|
|
2885
|
-
spacing: ["px",
|
|
2885
|
+
spacing: ["px", ie],
|
|
2886
2886
|
text: [Je],
|
|
2887
2887
|
"text-shadow": [Je],
|
|
2888
2888
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -2909,7 +2909,7 @@ const ep = (e, t) => {
|
|
|
2909
2909
|
* @see https://tailwindcss.com/docs/columns
|
|
2910
2910
|
*/
|
|
2911
2911
|
columns: [{
|
|
2912
|
-
columns: [
|
|
2912
|
+
columns: [ie, q, G, a]
|
|
2913
2913
|
}],
|
|
2914
2914
|
/**
|
|
2915
2915
|
* Break After
|
|
@@ -3166,21 +3166,21 @@ const ep = (e, t) => {
|
|
|
3166
3166
|
* @see https://tailwindcss.com/docs/flex
|
|
3167
3167
|
*/
|
|
3168
3168
|
flex: [{
|
|
3169
|
-
flex: [
|
|
3169
|
+
flex: [ie, st, "auto", "initial", "none", q]
|
|
3170
3170
|
}],
|
|
3171
3171
|
/**
|
|
3172
3172
|
* Flex Grow
|
|
3173
3173
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
3174
3174
|
*/
|
|
3175
3175
|
grow: [{
|
|
3176
|
-
grow: ["",
|
|
3176
|
+
grow: ["", ie, G, q]
|
|
3177
3177
|
}],
|
|
3178
3178
|
/**
|
|
3179
3179
|
* Flex Shrink
|
|
3180
3180
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
3181
3181
|
*/
|
|
3182
3182
|
shrink: [{
|
|
3183
|
-
shrink: ["",
|
|
3183
|
+
shrink: ["", ie, G, q]
|
|
3184
3184
|
}],
|
|
3185
3185
|
/**
|
|
3186
3186
|
* Order
|
|
@@ -3734,7 +3734,7 @@ const ep = (e, t) => {
|
|
|
3734
3734
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
3735
3735
|
*/
|
|
3736
3736
|
"line-clamp": [{
|
|
3737
|
-
"line-clamp": [
|
|
3737
|
+
"line-clamp": [ie, "none", G, hs]
|
|
3738
3738
|
}],
|
|
3739
3739
|
/**
|
|
3740
3740
|
* Line Height
|
|
@@ -3807,7 +3807,7 @@ const ep = (e, t) => {
|
|
|
3807
3807
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3808
3808
|
*/
|
|
3809
3809
|
"text-decoration-thickness": [{
|
|
3810
|
-
decoration: [
|
|
3810
|
+
decoration: [ie, "from-font", "auto", G, yt]
|
|
3811
3811
|
}],
|
|
3812
3812
|
/**
|
|
3813
3813
|
* Text Decoration Color
|
|
@@ -3821,7 +3821,7 @@ const ep = (e, t) => {
|
|
|
3821
3821
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3822
3822
|
*/
|
|
3823
3823
|
"underline-offset": [{
|
|
3824
|
-
"underline-offset": [
|
|
3824
|
+
"underline-offset": [ie, "auto", G, q]
|
|
3825
3825
|
}],
|
|
3826
3826
|
/**
|
|
3827
3827
|
* Text Transform
|
|
@@ -4315,14 +4315,14 @@ const ep = (e, t) => {
|
|
|
4315
4315
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
4316
4316
|
*/
|
|
4317
4317
|
"outline-offset": [{
|
|
4318
|
-
"outline-offset": [
|
|
4318
|
+
"outline-offset": [ie, G, q]
|
|
4319
4319
|
}],
|
|
4320
4320
|
/**
|
|
4321
4321
|
* Outline Width
|
|
4322
4322
|
* @see https://tailwindcss.com/docs/outline-width
|
|
4323
4323
|
*/
|
|
4324
4324
|
"outline-w": [{
|
|
4325
|
-
outline: ["",
|
|
4325
|
+
outline: ["", ie, Kt, yt]
|
|
4326
4326
|
}],
|
|
4327
4327
|
/**
|
|
4328
4328
|
* Outline Color
|
|
@@ -4397,7 +4397,7 @@ const ep = (e, t) => {
|
|
|
4397
4397
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
4398
4398
|
*/
|
|
4399
4399
|
"ring-offset-w": [{
|
|
4400
|
-
"ring-offset": [
|
|
4400
|
+
"ring-offset": [ie, yt]
|
|
4401
4401
|
}],
|
|
4402
4402
|
/**
|
|
4403
4403
|
* Ring Offset Color
|
|
@@ -4441,7 +4441,7 @@ const ep = (e, t) => {
|
|
|
4441
4441
|
* @see https://tailwindcss.com/docs/opacity
|
|
4442
4442
|
*/
|
|
4443
4443
|
opacity: [{
|
|
4444
|
-
opacity: [
|
|
4444
|
+
opacity: [ie, G, q]
|
|
4445
4445
|
}],
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Mix Blend Mode
|
|
@@ -4476,7 +4476,7 @@ const ep = (e, t) => {
|
|
|
4476
4476
|
* @see https://tailwindcss.com/docs/mask-image
|
|
4477
4477
|
*/
|
|
4478
4478
|
"mask-image-linear-pos": [{
|
|
4479
|
-
"mask-linear": [
|
|
4479
|
+
"mask-linear": [ie]
|
|
4480
4480
|
}],
|
|
4481
4481
|
"mask-image-linear-from-pos": [{
|
|
4482
4482
|
"mask-linear-from": I()
|
|
@@ -4590,7 +4590,7 @@ const ep = (e, t) => {
|
|
|
4590
4590
|
"mask-radial-at": C()
|
|
4591
4591
|
}],
|
|
4592
4592
|
"mask-image-conic-pos": [{
|
|
4593
|
-
"mask-conic": [
|
|
4593
|
+
"mask-conic": [ie]
|
|
4594
4594
|
}],
|
|
4595
4595
|
"mask-image-conic-from-pos": [{
|
|
4596
4596
|
"mask-conic-from": I()
|
|
@@ -4681,14 +4681,14 @@ const ep = (e, t) => {
|
|
|
4681
4681
|
* @see https://tailwindcss.com/docs/brightness
|
|
4682
4682
|
*/
|
|
4683
4683
|
brightness: [{
|
|
4684
|
-
brightness: [
|
|
4684
|
+
brightness: [ie, G, q]
|
|
4685
4685
|
}],
|
|
4686
4686
|
/**
|
|
4687
4687
|
* Contrast
|
|
4688
4688
|
* @see https://tailwindcss.com/docs/contrast
|
|
4689
4689
|
*/
|
|
4690
4690
|
contrast: [{
|
|
4691
|
-
contrast: [
|
|
4691
|
+
contrast: [ie, G, q]
|
|
4692
4692
|
}],
|
|
4693
4693
|
/**
|
|
4694
4694
|
* Drop Shadow
|
|
@@ -4716,35 +4716,35 @@ const ep = (e, t) => {
|
|
|
4716
4716
|
* @see https://tailwindcss.com/docs/grayscale
|
|
4717
4717
|
*/
|
|
4718
4718
|
grayscale: [{
|
|
4719
|
-
grayscale: ["",
|
|
4719
|
+
grayscale: ["", ie, G, q]
|
|
4720
4720
|
}],
|
|
4721
4721
|
/**
|
|
4722
4722
|
* Hue Rotate
|
|
4723
4723
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
4724
4724
|
*/
|
|
4725
4725
|
"hue-rotate": [{
|
|
4726
|
-
"hue-rotate": [
|
|
4726
|
+
"hue-rotate": [ie, G, q]
|
|
4727
4727
|
}],
|
|
4728
4728
|
/**
|
|
4729
4729
|
* Invert
|
|
4730
4730
|
* @see https://tailwindcss.com/docs/invert
|
|
4731
4731
|
*/
|
|
4732
4732
|
invert: [{
|
|
4733
|
-
invert: ["",
|
|
4733
|
+
invert: ["", ie, G, q]
|
|
4734
4734
|
}],
|
|
4735
4735
|
/**
|
|
4736
4736
|
* Saturate
|
|
4737
4737
|
* @see https://tailwindcss.com/docs/saturate
|
|
4738
4738
|
*/
|
|
4739
4739
|
saturate: [{
|
|
4740
|
-
saturate: [
|
|
4740
|
+
saturate: [ie, G, q]
|
|
4741
4741
|
}],
|
|
4742
4742
|
/**
|
|
4743
4743
|
* Sepia
|
|
4744
4744
|
* @see https://tailwindcss.com/docs/sepia
|
|
4745
4745
|
*/
|
|
4746
4746
|
sepia: [{
|
|
4747
|
-
sepia: ["",
|
|
4747
|
+
sepia: ["", ie, G, q]
|
|
4748
4748
|
}],
|
|
4749
4749
|
/**
|
|
4750
4750
|
* Backdrop Filter
|
|
@@ -4771,56 +4771,56 @@ const ep = (e, t) => {
|
|
|
4771
4771
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
4772
4772
|
*/
|
|
4773
4773
|
"backdrop-brightness": [{
|
|
4774
|
-
"backdrop-brightness": [
|
|
4774
|
+
"backdrop-brightness": [ie, G, q]
|
|
4775
4775
|
}],
|
|
4776
4776
|
/**
|
|
4777
4777
|
* Backdrop Contrast
|
|
4778
4778
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
4779
4779
|
*/
|
|
4780
4780
|
"backdrop-contrast": [{
|
|
4781
|
-
"backdrop-contrast": [
|
|
4781
|
+
"backdrop-contrast": [ie, G, q]
|
|
4782
4782
|
}],
|
|
4783
4783
|
/**
|
|
4784
4784
|
* Backdrop Grayscale
|
|
4785
4785
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
4786
4786
|
*/
|
|
4787
4787
|
"backdrop-grayscale": [{
|
|
4788
|
-
"backdrop-grayscale": ["",
|
|
4788
|
+
"backdrop-grayscale": ["", ie, G, q]
|
|
4789
4789
|
}],
|
|
4790
4790
|
/**
|
|
4791
4791
|
* Backdrop Hue Rotate
|
|
4792
4792
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
4793
4793
|
*/
|
|
4794
4794
|
"backdrop-hue-rotate": [{
|
|
4795
|
-
"backdrop-hue-rotate": [
|
|
4795
|
+
"backdrop-hue-rotate": [ie, G, q]
|
|
4796
4796
|
}],
|
|
4797
4797
|
/**
|
|
4798
4798
|
* Backdrop Invert
|
|
4799
4799
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
4800
4800
|
*/
|
|
4801
4801
|
"backdrop-invert": [{
|
|
4802
|
-
"backdrop-invert": ["",
|
|
4802
|
+
"backdrop-invert": ["", ie, G, q]
|
|
4803
4803
|
}],
|
|
4804
4804
|
/**
|
|
4805
4805
|
* Backdrop Opacity
|
|
4806
4806
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
4807
4807
|
*/
|
|
4808
4808
|
"backdrop-opacity": [{
|
|
4809
|
-
"backdrop-opacity": [
|
|
4809
|
+
"backdrop-opacity": [ie, G, q]
|
|
4810
4810
|
}],
|
|
4811
4811
|
/**
|
|
4812
4812
|
* Backdrop Saturate
|
|
4813
4813
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
4814
4814
|
*/
|
|
4815
4815
|
"backdrop-saturate": [{
|
|
4816
|
-
"backdrop-saturate": [
|
|
4816
|
+
"backdrop-saturate": [ie, G, q]
|
|
4817
4817
|
}],
|
|
4818
4818
|
/**
|
|
4819
4819
|
* Backdrop Sepia
|
|
4820
4820
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
4821
4821
|
*/
|
|
4822
4822
|
"backdrop-sepia": [{
|
|
4823
|
-
"backdrop-sepia": ["",
|
|
4823
|
+
"backdrop-sepia": ["", ie, G, q]
|
|
4824
4824
|
}],
|
|
4825
4825
|
// --------------
|
|
4826
4826
|
// --- Tables ---
|
|
@@ -4889,7 +4889,7 @@ const ep = (e, t) => {
|
|
|
4889
4889
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
4890
4890
|
*/
|
|
4891
4891
|
duration: [{
|
|
4892
|
-
duration: [
|
|
4892
|
+
duration: [ie, "initial", G, q]
|
|
4893
4893
|
}],
|
|
4894
4894
|
/**
|
|
4895
4895
|
* Transition Timing Function
|
|
@@ -4903,7 +4903,7 @@ const ep = (e, t) => {
|
|
|
4903
4903
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
4904
4904
|
*/
|
|
4905
4905
|
delay: [{
|
|
4906
|
-
delay: [
|
|
4906
|
+
delay: [ie, G, q]
|
|
4907
4907
|
}],
|
|
4908
4908
|
/**
|
|
4909
4909
|
* Animation
|
|
@@ -5044,28 +5044,28 @@ const ep = (e, t) => {
|
|
|
5044
5044
|
* @see https://tailwindcss.com/docs/translate
|
|
5045
5045
|
*/
|
|
5046
5046
|
translate: [{
|
|
5047
|
-
translate:
|
|
5047
|
+
translate: se()
|
|
5048
5048
|
}],
|
|
5049
5049
|
/**
|
|
5050
5050
|
* Translate X
|
|
5051
5051
|
* @see https://tailwindcss.com/docs/translate
|
|
5052
5052
|
*/
|
|
5053
5053
|
"translate-x": [{
|
|
5054
|
-
"translate-x":
|
|
5054
|
+
"translate-x": se()
|
|
5055
5055
|
}],
|
|
5056
5056
|
/**
|
|
5057
5057
|
* Translate Y
|
|
5058
5058
|
* @see https://tailwindcss.com/docs/translate
|
|
5059
5059
|
*/
|
|
5060
5060
|
"translate-y": [{
|
|
5061
|
-
"translate-y":
|
|
5061
|
+
"translate-y": se()
|
|
5062
5062
|
}],
|
|
5063
5063
|
/**
|
|
5064
5064
|
* Translate Z
|
|
5065
5065
|
* @see https://tailwindcss.com/docs/translate
|
|
5066
5066
|
*/
|
|
5067
5067
|
"translate-z": [{
|
|
5068
|
-
"translate-z":
|
|
5068
|
+
"translate-z": se()
|
|
5069
5069
|
}],
|
|
5070
5070
|
/**
|
|
5071
5071
|
* Translate None
|
|
@@ -5375,7 +5375,7 @@ const ep = (e, t) => {
|
|
|
5375
5375
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
5376
5376
|
*/
|
|
5377
5377
|
"stroke-w": [{
|
|
5378
|
-
stroke: [
|
|
5378
|
+
stroke: [ie, Kt, yt, hs]
|
|
5379
5379
|
}],
|
|
5380
5380
|
/**
|
|
5381
5381
|
* Stroke
|
|
@@ -5792,11 +5792,11 @@ function nm(e) {
|
|
|
5792
5792
|
function rm(e, t) {
|
|
5793
5793
|
return m.useReducer((n, r) => t[n][r] ?? n, e);
|
|
5794
5794
|
}
|
|
5795
|
-
var
|
|
5795
|
+
var He = (e) => {
|
|
5796
5796
|
const { present: t, children: n } = e, r = om(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ce(r.ref, sm(o));
|
|
5797
5797
|
return typeof n == "function" || r.isPresent ? m.cloneElement(o, { ref: s }) : null;
|
|
5798
5798
|
};
|
|
5799
|
-
|
|
5799
|
+
He.displayName = "Presence";
|
|
5800
5800
|
function om(e) {
|
|
5801
5801
|
const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = rm(i, {
|
|
5802
5802
|
mounted: {
|
|
@@ -5922,7 +5922,7 @@ ya.displayName = ba;
|
|
|
5922
5922
|
var No = "CollapsibleContent", wa = m.forwardRef(
|
|
5923
5923
|
(e, t) => {
|
|
5924
5924
|
const { forceMount: n, ...r } = e, o = ko(No, e.__scopeCollapsible);
|
|
5925
|
-
return /* @__PURE__ */ f(
|
|
5925
|
+
return /* @__PURE__ */ f(He, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ f(dm, { ...r, ref: t, present: s }) });
|
|
5926
5926
|
}
|
|
5927
5927
|
);
|
|
5928
5928
|
wa.displayName = No;
|
|
@@ -7074,7 +7074,7 @@ var Ua = "CheckboxIndicator", ja = m.forwardRef(
|
|
|
7074
7074
|
(e, t) => {
|
|
7075
7075
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, s = Io(Ua, n);
|
|
7076
7076
|
return /* @__PURE__ */ f(
|
|
7077
|
-
|
|
7077
|
+
He,
|
|
7078
7078
|
{
|
|
7079
7079
|
present: r || dt(s.checked) || s.checked === !0,
|
|
7080
7080
|
children: /* @__PURE__ */ f(
|
|
@@ -7800,7 +7800,7 @@ function Xe(e) {
|
|
|
7800
7800
|
function Xa(e) {
|
|
7801
7801
|
return jn() ? e instanceof Node || e instanceof Pe(e).Node : !1;
|
|
7802
7802
|
}
|
|
7803
|
-
function
|
|
7803
|
+
function Fe(e) {
|
|
7804
7804
|
return jn() ? e instanceof Element || e instanceof Pe(e).Element : !1;
|
|
7805
7805
|
}
|
|
7806
7806
|
function rt(e) {
|
|
@@ -7815,7 +7815,7 @@ function on(e) {
|
|
|
7815
7815
|
overflowX: n,
|
|
7816
7816
|
overflowY: r,
|
|
7817
7817
|
display: o
|
|
7818
|
-
} =
|
|
7818
|
+
} = $e(e);
|
|
7819
7819
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
|
|
7820
7820
|
}
|
|
7821
7821
|
function Jh(e) {
|
|
@@ -7836,7 +7836,7 @@ function Wn(e) {
|
|
|
7836
7836
|
const Qh = /transform|translate|scale|rotate|perspective|filter/, eg = /paint|layout|strict|content/, wt = (e) => !!e && e !== "none";
|
|
7837
7837
|
let xr;
|
|
7838
7838
|
function Oo(e) {
|
|
7839
|
-
const t =
|
|
7839
|
+
const t = Fe(e) ? $e(e) : e;
|
|
7840
7840
|
return wt(t.transform) || wt(t.translate) || wt(t.scale) || wt(t.rotate) || wt(t.perspective) || !Do() && (wt(t.backdropFilter) || wt(t.filter)) || Qh.test(t.willChange || "") || eg.test(t.contain || "");
|
|
7841
7841
|
}
|
|
7842
7842
|
function tg(e) {
|
|
@@ -7856,11 +7856,11 @@ function Do() {
|
|
|
7856
7856
|
function Ut(e) {
|
|
7857
7857
|
return /^(html|body|#document)$/.test(Gt(e));
|
|
7858
7858
|
}
|
|
7859
|
-
function
|
|
7859
|
+
function $e(e) {
|
|
7860
7860
|
return Pe(e).getComputedStyle(e);
|
|
7861
7861
|
}
|
|
7862
7862
|
function qn(e) {
|
|
7863
|
-
return
|
|
7863
|
+
return Fe(e) ? {
|
|
7864
7864
|
scrollLeft: e.scrollLeft,
|
|
7865
7865
|
scrollTop: e.scrollTop
|
|
7866
7866
|
} : {
|
|
@@ -7898,7 +7898,7 @@ function so(e) {
|
|
|
7898
7898
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
7899
7899
|
}
|
|
7900
7900
|
function Ja(e) {
|
|
7901
|
-
const t =
|
|
7901
|
+
const t = $e(e);
|
|
7902
7902
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7903
7903
|
const o = rt(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = Rn(n) !== s || Rn(r) !== i;
|
|
7904
7904
|
return a && (n = s, r = i), {
|
|
@@ -7908,7 +7908,7 @@ function Ja(e) {
|
|
|
7908
7908
|
};
|
|
7909
7909
|
}
|
|
7910
7910
|
function zo(e) {
|
|
7911
|
-
return
|
|
7911
|
+
return Fe(e) ? e : e.contextElement;
|
|
7912
7912
|
}
|
|
7913
7913
|
function Ht(e) {
|
|
7914
7914
|
const t = zo(e);
|
|
@@ -7940,14 +7940,14 @@ function Ct(e, t, n, r) {
|
|
|
7940
7940
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7941
7941
|
const o = e.getBoundingClientRect(), s = zo(e);
|
|
7942
7942
|
let i = Ke(1);
|
|
7943
|
-
t && (r ?
|
|
7943
|
+
t && (r ? Fe(r) && (i = Ht(r)) : i = Ht(e));
|
|
7944
7944
|
const a = rg(s, n, r) ? Qa(s) : Ke(0);
|
|
7945
7945
|
let c = (o.left + a.x) / i.x, d = (o.top + a.y) / i.y, u = o.width / i.x, l = o.height / i.y;
|
|
7946
7946
|
if (s) {
|
|
7947
|
-
const p = Pe(s), h = r &&
|
|
7947
|
+
const p = Pe(s), h = r && Fe(r) ? Pe(r) : r;
|
|
7948
7948
|
let b = p, g = so(b);
|
|
7949
7949
|
for (; g && r && h !== b; ) {
|
|
7950
|
-
const v = Ht(g), y = g.getBoundingClientRect(), w =
|
|
7950
|
+
const v = Ht(g), y = g.getBoundingClientRect(), w = $e(g), x = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, C = y.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
7951
7951
|
c *= v.x, d *= v.y, u *= v.x, l *= v.y, c += x, d += C, b = Pe(g), g = so(b);
|
|
7952
7952
|
}
|
|
7953
7953
|
}
|
|
@@ -8003,7 +8003,7 @@ function ig(e) {
|
|
|
8003
8003
|
const t = Xe(e), n = qn(e), r = e.ownerDocument.body, o = Ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
8004
8004
|
let i = -n.scrollLeft + Gn(e);
|
|
8005
8005
|
const a = -n.scrollTop;
|
|
8006
|
-
return
|
|
8006
|
+
return $e(r).direction === "rtl" && (i += Ae(t.clientWidth, r.clientWidth) - o), {
|
|
8007
8007
|
width: o,
|
|
8008
8008
|
height: s,
|
|
8009
8009
|
x: i,
|
|
@@ -8046,7 +8046,7 @@ function Us(e, t, n) {
|
|
|
8046
8046
|
r = ag(e, n);
|
|
8047
8047
|
else if (t === "document")
|
|
8048
8048
|
r = ig(Xe(e));
|
|
8049
|
-
else if (
|
|
8049
|
+
else if (Fe(t))
|
|
8050
8050
|
r = cg(t, n);
|
|
8051
8051
|
else {
|
|
8052
8052
|
const o = Qa(e);
|
|
@@ -8061,17 +8061,17 @@ function Us(e, t, n) {
|
|
|
8061
8061
|
}
|
|
8062
8062
|
function tc(e, t) {
|
|
8063
8063
|
const n = mt(e);
|
|
8064
|
-
return n === t || !
|
|
8064
|
+
return n === t || !Fe(n) || Ut(n) ? !1 : $e(n).position === "fixed" || tc(n, t);
|
|
8065
8065
|
}
|
|
8066
8066
|
function lg(e, t) {
|
|
8067
8067
|
const n = t.get(e);
|
|
8068
8068
|
if (n)
|
|
8069
8069
|
return n;
|
|
8070
|
-
let r = tn(e, [], !1).filter((a) =>
|
|
8071
|
-
const s =
|
|
8070
|
+
let r = tn(e, [], !1).filter((a) => Fe(a) && Gt(a) !== "body"), o = null;
|
|
8071
|
+
const s = $e(e).position === "fixed";
|
|
8072
8072
|
let i = s ? mt(e) : e;
|
|
8073
|
-
for (;
|
|
8074
|
-
const a =
|
|
8073
|
+
for (; Fe(i) && !Ut(i); ) {
|
|
8074
|
+
const a = $e(i), c = Oo(i);
|
|
8075
8075
|
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || on(i) && !c && tc(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = mt(i);
|
|
8076
8076
|
}
|
|
8077
8077
|
return t.set(e, r), r;
|
|
@@ -8131,10 +8131,10 @@ function fg(e, t, n) {
|
|
|
8131
8131
|
};
|
|
8132
8132
|
}
|
|
8133
8133
|
function Cr(e) {
|
|
8134
|
-
return
|
|
8134
|
+
return $e(e).position === "static";
|
|
8135
8135
|
}
|
|
8136
8136
|
function js(e, t) {
|
|
8137
|
-
if (!rt(e) ||
|
|
8137
|
+
if (!rt(e) || $e(e).position === "fixed")
|
|
8138
8138
|
return null;
|
|
8139
8139
|
if (t)
|
|
8140
8140
|
return t(e);
|
|
@@ -8148,7 +8148,7 @@ function nc(e, t) {
|
|
|
8148
8148
|
if (!rt(e)) {
|
|
8149
8149
|
let o = mt(e);
|
|
8150
8150
|
for (; o && !Ut(o); ) {
|
|
8151
|
-
if (
|
|
8151
|
+
if (Fe(o) && !Cr(o))
|
|
8152
8152
|
return o;
|
|
8153
8153
|
o = mt(o);
|
|
8154
8154
|
}
|
|
@@ -8172,7 +8172,7 @@ const pg = async function(e) {
|
|
|
8172
8172
|
};
|
|
8173
8173
|
};
|
|
8174
8174
|
function mg(e) {
|
|
8175
|
-
return
|
|
8175
|
+
return $e(e).direction === "rtl";
|
|
8176
8176
|
}
|
|
8177
8177
|
const hg = {
|
|
8178
8178
|
convertOffsetParentRelativeRectToViewportRelativeRect: og,
|
|
@@ -8183,7 +8183,7 @@ const hg = {
|
|
|
8183
8183
|
getClientRects: sg,
|
|
8184
8184
|
getDimensions: ug,
|
|
8185
8185
|
getScale: Ht,
|
|
8186
|
-
isElement:
|
|
8186
|
+
isElement: Fe,
|
|
8187
8187
|
isRTL: mg
|
|
8188
8188
|
};
|
|
8189
8189
|
function rc(e, t) {
|
|
@@ -8573,8 +8573,8 @@ var Fo = "PopperContent", [Fg, $g] = ic(Fo), uc = m.forwardRef(
|
|
|
8573
8573
|
c && _g({ ..._ }),
|
|
8574
8574
|
Mg({
|
|
8575
8575
|
..._,
|
|
8576
|
-
apply: ({ elements: X, rects:
|
|
8577
|
-
const { width: ue, height: xe } =
|
|
8576
|
+
apply: ({ elements: X, rects: se, availableWidth: pe, availableHeight: me }) => {
|
|
8577
|
+
const { width: ue, height: xe } = se.reference, fe = X.floating.style;
|
|
8578
8578
|
fe.setProperty("--radix-popper-available-width", `${pe}px`), fe.setProperty("--radix-popper-available-height", `${me}px`), fe.setProperty("--radix-popper-anchor-width", `${ue}px`), fe.setProperty("--radix-popper-anchor-height", `${xe}px`);
|
|
8579
8579
|
}
|
|
8580
8580
|
}),
|
|
@@ -9017,7 +9017,7 @@ _c.displayName = Vo;
|
|
|
9017
9017
|
var Mc = "RadioIndicator", Lc = m.forwardRef(
|
|
9018
9018
|
(e, t) => {
|
|
9019
9019
|
const { __scopeRadio: n, forceMount: r, ...o } = e, s = fv(Mc, n);
|
|
9020
|
-
return /* @__PURE__ */ f(
|
|
9020
|
+
return /* @__PURE__ */ f(He, { present: r || s.checked, children: /* @__PURE__ */ f(
|
|
9021
9021
|
Z.span,
|
|
9022
9022
|
{
|
|
9023
9023
|
"data-state": Dc(s.checked),
|
|
@@ -9303,7 +9303,7 @@ var Ev = m.forwardRef((e, t) => {
|
|
|
9303
9303
|
window.clearTimeout(c), a.removeEventListener("pointerenter", d), a.removeEventListener("pointerleave", u);
|
|
9304
9304
|
};
|
|
9305
9305
|
}
|
|
9306
|
-
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ f(
|
|
9306
|
+
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ f(He, { present: n || s, children: /* @__PURE__ */ f(
|
|
9307
9307
|
Yc,
|
|
9308
9308
|
{
|
|
9309
9309
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -9345,7 +9345,7 @@ var Ev = m.forwardRef((e, t) => {
|
|
|
9345
9345
|
};
|
|
9346
9346
|
return d.addEventListener("scroll", p), () => d.removeEventListener("scroll", p);
|
|
9347
9347
|
}
|
|
9348
|
-
}, [o.viewport, s, c, i]), /* @__PURE__ */ f(
|
|
9348
|
+
}, [o.viewport, s, c, i]), /* @__PURE__ */ f(He, { present: n || a !== "hidden", children: /* @__PURE__ */ f(
|
|
9349
9349
|
jo,
|
|
9350
9350
|
{
|
|
9351
9351
|
"data-state": a === "hidden" ? "hidden" : "visible",
|
|
@@ -9362,7 +9362,7 @@ var Ev = m.forwardRef((e, t) => {
|
|
|
9362
9362
|
i(a ? d : u);
|
|
9363
9363
|
}
|
|
9364
9364
|
}, 10);
|
|
9365
|
-
return jt(n.viewport, c), jt(n.content, c), /* @__PURE__ */ f(
|
|
9365
|
+
return jt(n.viewport, c), jt(n.content, c), /* @__PURE__ */ f(He, { present: r || s, children: /* @__PURE__ */ f(
|
|
9366
9366
|
jo,
|
|
9367
9367
|
{
|
|
9368
9368
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -9560,7 +9560,7 @@ var Ev = m.forwardRef((e, t) => {
|
|
|
9560
9560
|
}), _n = "ScrollAreaThumb", Zc = m.forwardRef(
|
|
9561
9561
|
(e, t) => {
|
|
9562
9562
|
const { forceMount: n, ...r } = e, o = Kc(_n, e.__scopeScrollArea);
|
|
9563
|
-
return /* @__PURE__ */ f(
|
|
9563
|
+
return /* @__PURE__ */ f(He, { present: n || o.hasThumb, children: /* @__PURE__ */ f(Av, { ref: t, ...r }) });
|
|
9564
9564
|
}
|
|
9565
9565
|
), Av = m.forwardRef(
|
|
9566
9566
|
(e, t) => {
|
|
@@ -10045,7 +10045,7 @@ var qv = "SelectItemAlignedPosition", fl = m.forwardRef((e, t) => {
|
|
|
10045
10045
|
if (s.trigger && s.valueNode && a && d && g && v && y) {
|
|
10046
10046
|
const k = s.trigger.getBoundingClientRect(), E = d.getBoundingClientRect(), T = s.valueNode.getBoundingClientRect(), M = y.getBoundingClientRect();
|
|
10047
10047
|
if (s.dir !== "rtl") {
|
|
10048
|
-
const z = M.left - E.left, V = T.left - z, X = k.left - V,
|
|
10048
|
+
const z = M.left - E.left, V = T.left - z, X = k.left - V, se = k.width + X, pe = Math.max(se, E.width), me = window.innerWidth - Oe, ue = ao(V, [
|
|
10049
10049
|
Oe,
|
|
10050
10050
|
// Prevents the content from going off the starting edge of the
|
|
10051
10051
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -10054,13 +10054,13 @@ var qv = "SelectItemAlignedPosition", fl = m.forwardRef((e, t) => {
|
|
|
10054
10054
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
10055
10055
|
Math.max(Oe, me - pe)
|
|
10056
10056
|
]);
|
|
10057
|
-
a.style.minWidth =
|
|
10057
|
+
a.style.minWidth = se + "px", a.style.left = ue + "px";
|
|
10058
10058
|
} else {
|
|
10059
|
-
const z = E.right - M.right, V = window.innerWidth - T.right - z, X = window.innerWidth - k.right - V,
|
|
10059
|
+
const z = E.right - M.right, V = window.innerWidth - T.right - z, X = window.innerWidth - k.right - V, se = k.width + X, pe = Math.max(se, E.width), me = window.innerWidth - Oe, ue = ao(V, [
|
|
10060
10060
|
Oe,
|
|
10061
10061
|
Math.max(Oe, me - pe)
|
|
10062
10062
|
]);
|
|
10063
|
-
a.style.minWidth =
|
|
10063
|
+
a.style.minWidth = se + "px", a.style.right = ue + "px";
|
|
10064
10064
|
}
|
|
10065
10065
|
const L = p(), P = window.innerHeight - Oe * 2, _ = g.scrollHeight, D = window.getComputedStyle(d), $ = parseInt(D.borderTopWidth, 10), B = parseInt(D.paddingTop, 10), j = parseInt(D.borderBottomWidth, 10), U = parseInt(D.paddingBottom, 10), ee = $ + B + _ + U + j, H = Math.min(v.offsetHeight * 5, ee), de = window.getComputedStyle(g), he = parseInt(de.paddingTop, 10), J = parseInt(de.paddingBottom, 10), oe = k.top + k.height / 2 - Oe, K = P - oe, ne = v.offsetHeight / 2, N = v.offsetTop + ne, A = $ + B + N, I = ee - A;
|
|
10066
10066
|
if (A <= oe) {
|
|
@@ -10070,8 +10070,8 @@ var qv = "SelectItemAlignedPosition", fl = m.forwardRef((e, t) => {
|
|
|
10070
10070
|
K,
|
|
10071
10071
|
ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
10072
10072
|
(z ? J : 0) + V + j
|
|
10073
|
-
),
|
|
10074
|
-
a.style.height =
|
|
10073
|
+
), se = A + X;
|
|
10074
|
+
a.style.height = se + "px";
|
|
10075
10075
|
} else {
|
|
10076
10076
|
const z = L.length > 0 && v === L[0].ref.current;
|
|
10077
10077
|
a.style.top = "0px";
|
|
@@ -10743,7 +10743,7 @@ var $l = "TabsContent", Hl = m.forwardRef(
|
|
|
10743
10743
|
return m.useEffect(() => {
|
|
10744
10744
|
const p = requestAnimationFrame(() => l.current = !1);
|
|
10745
10745
|
return () => cancelAnimationFrame(p);
|
|
10746
|
-
}, []), /* @__PURE__ */ f(
|
|
10746
|
+
}, []), /* @__PURE__ */ f(He, { present: o || u, children: ({ present: p }) => /* @__PURE__ */ f(
|
|
10747
10747
|
Z.div,
|
|
10748
10748
|
{
|
|
10749
10749
|
"data-state": u ? "active" : "inactive",
|
|
@@ -10892,13 +10892,13 @@ var Ko = "TooltipPortal", [Db, zb] = or(Ko, {
|
|
|
10892
10892
|
forceMount: void 0
|
|
10893
10893
|
}), Yl = (e) => {
|
|
10894
10894
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, s = an(Ko, t);
|
|
10895
|
-
return /* @__PURE__ */ f(Db, { scope: t, forceMount: n, children: /* @__PURE__ */ f(
|
|
10895
|
+
return /* @__PURE__ */ f(Db, { scope: t, forceMount: n, children: /* @__PURE__ */ f(He, { present: n || s.open, children: /* @__PURE__ */ f(Ao, { asChild: !0, container: o, children: r }) }) });
|
|
10896
10896
|
};
|
|
10897
10897
|
Yl.displayName = Ko;
|
|
10898
10898
|
var Wt = "TooltipContent", Kl = m.forwardRef(
|
|
10899
10899
|
(e, t) => {
|
|
10900
10900
|
const n = zb(Wt, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = an(Wt, e.__scopeTooltip);
|
|
10901
|
-
return /* @__PURE__ */ f(
|
|
10901
|
+
return /* @__PURE__ */ f(He, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ f(Xl, { side: o, ...s, ref: t }) : /* @__PURE__ */ f(Bb, { side: o, ...s, ref: t }) });
|
|
10902
10902
|
}
|
|
10903
10903
|
), Bb = m.forwardRef((e, t) => {
|
|
10904
10904
|
const n = an(Wt, e.__scopeTooltip), r = Yo(Wt, e.__scopeTooltip), o = m.useRef(null), s = ce(t, o), [i, a] = m.useState(null), { trigger: c, onClose: d } = n, u = o.current, { onPointerInTransitChange: l } = r, p = m.useCallback(() => {
|
|
@@ -12366,24 +12366,24 @@ function td() {
|
|
|
12366
12366
|
return !isNaN(t) && t >= 1 && t <= 40;
|
|
12367
12367
|
}), zr;
|
|
12368
12368
|
}
|
|
12369
|
-
var
|
|
12369
|
+
var We = {}, di;
|
|
12370
12370
|
function nd() {
|
|
12371
|
-
if (di) return
|
|
12371
|
+
if (di) return We;
|
|
12372
12372
|
di = 1;
|
|
12373
12373
|
const e = "[0-9]+", t = "[A-Z $%*+\\-./:]+";
|
|
12374
12374
|
let n = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
12375
12375
|
n = n.replace(/u/g, "\\u");
|
|
12376
12376
|
const r = "(?:(?![A-Z0-9 $%*+\\-./:]|" + n + `)(?:.|[\r
|
|
12377
12377
|
]))+`;
|
|
12378
|
-
|
|
12378
|
+
We.KANJI = new RegExp(n, "g"), We.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), We.BYTE = new RegExp(r, "g"), We.NUMERIC = new RegExp(e, "g"), We.ALPHANUMERIC = new RegExp(t, "g");
|
|
12379
12379
|
const o = new RegExp("^" + n + "$"), s = new RegExp("^" + e + "$"), i = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
12380
|
-
return
|
|
12380
|
+
return We.testKanji = function(c) {
|
|
12381
12381
|
return o.test(c);
|
|
12382
|
-
},
|
|
12382
|
+
}, We.testNumeric = function(c) {
|
|
12383
12383
|
return s.test(c);
|
|
12384
|
-
},
|
|
12384
|
+
}, We.testAlphanumeric = function(c) {
|
|
12385
12385
|
return i.test(c);
|
|
12386
|
-
},
|
|
12386
|
+
}, We;
|
|
12387
12387
|
}
|
|
12388
12388
|
var ui;
|
|
12389
12389
|
function At() {
|
|
@@ -13472,7 +13472,7 @@ function my({
|
|
|
13472
13472
|
}
|
|
13473
13473
|
);
|
|
13474
13474
|
}
|
|
13475
|
-
const
|
|
13475
|
+
const Be = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
13476
13476
|
"arrow-left": Du,
|
|
13477
13477
|
calendar: Vu,
|
|
13478
13478
|
"check-circle-2": ji,
|
|
@@ -13533,7 +13533,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13533
13533
|
variant: r,
|
|
13534
13534
|
size: o,
|
|
13535
13535
|
onClick: n,
|
|
13536
|
-
disabled:
|
|
13536
|
+
disabled: Be(s),
|
|
13537
13537
|
title: i,
|
|
13538
13538
|
children: e
|
|
13539
13539
|
}
|
|
@@ -13550,7 +13550,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13550
13550
|
{
|
|
13551
13551
|
className: e,
|
|
13552
13552
|
onChange: t,
|
|
13553
|
-
disabled:
|
|
13553
|
+
disabled: Be(n),
|
|
13554
13554
|
...r
|
|
13555
13555
|
}
|
|
13556
13556
|
), xy = ({ className: e, onChange: t, disabled: n, ...r }) => /* @__PURE__ */ f(
|
|
@@ -13558,7 +13558,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13558
13558
|
{
|
|
13559
13559
|
className: e,
|
|
13560
13560
|
onChange: t,
|
|
13561
|
-
disabled:
|
|
13561
|
+
disabled: Be(n),
|
|
13562
13562
|
...r
|
|
13563
13563
|
}
|
|
13564
13564
|
), Cy = ({ children: e, className: t, value: n, defaultValue: r, onChange: o, placeholder: s, disabled: i }) => /* @__PURE__ */ W(
|
|
@@ -13570,7 +13570,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13570
13570
|
const c = o;
|
|
13571
13571
|
c == null || c({ target: { value: a } });
|
|
13572
13572
|
},
|
|
13573
|
-
disabled:
|
|
13573
|
+
disabled: Be(i),
|
|
13574
13574
|
children: [
|
|
13575
13575
|
/* @__PURE__ */ f(c0, { className: t, children: /* @__PURE__ */ f(a0, { placeholder: s }) }),
|
|
13576
13576
|
/* @__PURE__ */ f(l0, { style: { zIndex: "calc(var(--widget-z, 1000) + 1)" }, children: e })
|
|
@@ -13580,7 +13580,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13580
13580
|
d0,
|
|
13581
13581
|
{
|
|
13582
13582
|
value: t,
|
|
13583
|
-
disabled:
|
|
13583
|
+
disabled: Be(n),
|
|
13584
13584
|
className: r,
|
|
13585
13585
|
children: e
|
|
13586
13586
|
}
|
|
@@ -13591,7 +13591,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13591
13591
|
{
|
|
13592
13592
|
...s ? { checked: e === "true" || e === !0 } : {},
|
|
13593
13593
|
onCheckedChange: (a) => i == null ? void 0 : i({ target: { value: String(a) } }),
|
|
13594
|
-
disabled:
|
|
13594
|
+
disabled: Be(n),
|
|
13595
13595
|
className: r,
|
|
13596
13596
|
id: o
|
|
13597
13597
|
}
|
|
@@ -13603,7 +13603,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13603
13603
|
{
|
|
13604
13604
|
...i ? { checked: e === "true" || e === !0 } : {},
|
|
13605
13605
|
onCheckedChange: (c) => a == null ? void 0 : a({ target: { value: String(c) } }),
|
|
13606
|
-
disabled:
|
|
13606
|
+
disabled: Be(n),
|
|
13607
13607
|
size: r,
|
|
13608
13608
|
className: o,
|
|
13609
13609
|
id: s
|
|
@@ -13632,7 +13632,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13632
13632
|
v0,
|
|
13633
13633
|
{
|
|
13634
13634
|
value: e,
|
|
13635
|
-
disabled:
|
|
13635
|
+
disabled: Be(t),
|
|
13636
13636
|
className: n,
|
|
13637
13637
|
id: r
|
|
13638
13638
|
}
|
|
@@ -13748,9 +13748,9 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
13748
13748
|
{
|
|
13749
13749
|
videoId: e,
|
|
13750
13750
|
title: s,
|
|
13751
|
-
autoPlay:
|
|
13752
|
-
showControls:
|
|
13753
|
-
allowTracking:
|
|
13751
|
+
autoPlay: Be(t),
|
|
13752
|
+
showControls: Be(n),
|
|
13753
|
+
allowTracking: Be(r),
|
|
13754
13754
|
shape: o,
|
|
13755
13755
|
className: i
|
|
13756
13756
|
}
|
|
@@ -14267,8 +14267,8 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14267
14267
|
}
|
|
14268
14268
|
const O = await I.json(), z = Array.isArray(O);
|
|
14269
14269
|
z && console.warn("[ExtensionSetup] Received legacy array response shape from /instances/{appId}/{instanceId}. Your local SDK build or the deployed API is out of sync — expected { extensions, extensionGroups }. Falling back to legacy render path (always-open stack, no groups).");
|
|
14270
|
-
const V = z ? O : O.extensions, X = z ? void 0 : O.extensionGroups,
|
|
14271
|
-
u(pe), p(X), b(
|
|
14270
|
+
const V = z ? O : O.extensions, X = z ? void 0 : O.extensionGroups, se = Fi(typeof window < "u" ? window.location.search : ""), pe = await Ru(V, se), { tokens: me, errors: ue } = await fw(pe, n, r, A, se);
|
|
14271
|
+
u(pe), p(X), b(se), v(new Map(me)), w(ue);
|
|
14272
14272
|
} catch (I) {
|
|
14273
14273
|
console.error("Failed to load extensions:", I);
|
|
14274
14274
|
} finally {
|
|
@@ -14285,7 +14285,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14285
14285
|
var z;
|
|
14286
14286
|
return O.manifest.permissions.includes("data:fetch") || O.manifest.permissions.includes("messaging:send") || (((z = O.manifest.settingsSchema) == null ? void 0 : z.length) ?? 0) > 0;
|
|
14287
14287
|
}).map(async (O) => {
|
|
14288
|
-
const z = h.find((me) => me.extensionId === O.id), V = z == null ? void 0 : z.token, X = z == null ? void 0 : z.mode,
|
|
14288
|
+
const z = h.find((me) => me.extensionId === O.id), V = z == null ? void 0 : z.token, X = z == null ? void 0 : z.mode, se = xt(n, "/proxy-token"), pe = await fetch(se, {
|
|
14289
14289
|
method: "POST",
|
|
14290
14290
|
headers: { "Content-Type": "application/json" },
|
|
14291
14291
|
body: JSON.stringify({
|
|
@@ -14317,14 +14317,14 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14317
14317
|
const I = A.data;
|
|
14318
14318
|
if ((I == null ? void 0 : I.type) !== "extension-ready")
|
|
14319
14319
|
return;
|
|
14320
|
-
const O = I.extensionId, z = d.find((
|
|
14320
|
+
const O = I.extensionId, z = d.find((se) => se.id === O);
|
|
14321
14321
|
if (!(z != null && z.bundleUrl))
|
|
14322
14322
|
return;
|
|
14323
|
-
const V = h.find((
|
|
14323
|
+
const V = h.find((se) => se.extensionId === O);
|
|
14324
14324
|
if (Eu(z.bundleUrl) && (V == null ? void 0 : V.mode) !== "staging")
|
|
14325
14325
|
return;
|
|
14326
14326
|
const X = g.get(O);
|
|
14327
|
-
X &&
|
|
14327
|
+
X && De(O, { type: "extension-encryption-key", encryptionKey: X.encryptionKey });
|
|
14328
14328
|
};
|
|
14329
14329
|
return window.addEventListener("message", N), () => window.removeEventListener("message", N);
|
|
14330
14330
|
}, [d, h, g]);
|
|
@@ -14334,7 +14334,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14334
14334
|
if (!z.manifest.permissions.includes("events:identity"))
|
|
14335
14335
|
continue;
|
|
14336
14336
|
const V = z.manifest.events ?? [];
|
|
14337
|
-
!V.includes("identity") && !V.includes(`identity:${N}`) ||
|
|
14337
|
+
!V.includes("identity") && !V.includes(`identity:${N}`) || De(O, {
|
|
14338
14338
|
type: "extension-event",
|
|
14339
14339
|
eventType: "identity",
|
|
14340
14340
|
payload: { eventName: N, data: { state: A, timestamp: cr((/* @__PURE__ */ new Date()).toISOString()) } }
|
|
@@ -14346,7 +14346,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14346
14346
|
if (!O.manifest.permissions.includes("events:messaging"))
|
|
14347
14347
|
continue;
|
|
14348
14348
|
const z = O.manifest.events ?? [];
|
|
14349
|
-
!z.includes("messaging") && !z.includes("messaging:postback") && !z.includes(`messaging:postback:${N.data.actionName}`) ||
|
|
14349
|
+
!z.includes("messaging") && !z.includes("messaging:postback") && !z.includes(`messaging:postback:${N.data.actionName}`) || De(I, {
|
|
14350
14350
|
type: "extension-event",
|
|
14351
14351
|
eventType: "messaging",
|
|
14352
14352
|
payload: N
|
|
@@ -14358,7 +14358,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14358
14358
|
if (!O.manifest.permissions.includes("events:activity"))
|
|
14359
14359
|
continue;
|
|
14360
14360
|
const z = O.manifest.events ?? [];
|
|
14361
|
-
!z.includes("activity") && !z.includes(`activity:${N.eventName}`) ||
|
|
14361
|
+
!z.includes("activity") && !z.includes(`activity:${N.eventName}`) || De(I, {
|
|
14362
14362
|
type: "extension-event",
|
|
14363
14363
|
eventType: "activity",
|
|
14364
14364
|
payload: N
|
|
@@ -14369,24 +14369,24 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14369
14369
|
for (const [z, V] of A) {
|
|
14370
14370
|
if (!V.manifest.permissions.includes("identity:extend"))
|
|
14371
14371
|
continue;
|
|
14372
|
-
const X = new Set(V.manifest.identityClaims ?? []),
|
|
14372
|
+
const X = new Set(V.manifest.identityClaims ?? []), se = new Promise((pe) => {
|
|
14373
14373
|
const me = `enrich_${z}_${Date.now()}`, ue = (xe) => {
|
|
14374
14374
|
const fe = xe.data;
|
|
14375
14375
|
if ((fe == null ? void 0 : fe.type) !== "extend-identity-response" || fe.id !== me)
|
|
14376
14376
|
return;
|
|
14377
14377
|
window.removeEventListener("message", ue);
|
|
14378
|
-
const
|
|
14379
|
-
I.set(z, ds(
|
|
14378
|
+
const Ve = fe.additionalClaims ?? {};
|
|
14379
|
+
I.set(z, ds(Ve, X, z)), pe();
|
|
14380
14380
|
};
|
|
14381
14381
|
window.addEventListener("message", ue), setTimeout(() => {
|
|
14382
14382
|
window.removeEventListener("message", ue), I.set(z, {}), pe();
|
|
14383
|
-
}, 5e3),
|
|
14383
|
+
}, 5e3), De(z, {
|
|
14384
14384
|
type: "extend-identity-request",
|
|
14385
14385
|
id: me,
|
|
14386
14386
|
claims: N
|
|
14387
14387
|
});
|
|
14388
14388
|
});
|
|
14389
|
-
O.push(
|
|
14389
|
+
O.push(se);
|
|
14390
14390
|
}
|
|
14391
14391
|
return await Promise.all(O), I;
|
|
14392
14392
|
}, []), ee = be(async (N, A) => {
|
|
@@ -14429,7 +14429,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14429
14429
|
P.current = new Map(O);
|
|
14430
14430
|
const z = Object.assign({}, ...Array.from(O.values()));
|
|
14431
14431
|
console.log("[embeddables] Enriched claims (post-filter):", Object.keys(z));
|
|
14432
|
-
const { external_id: V, email: X, name:
|
|
14432
|
+
const { external_id: V, email: X, name: se, ...pe } = z, me = typeof V == "string" ? V : String(N.id), ue = typeof X == "string" ? X : A, xe = typeof se == "string" ? se : I, fe = {
|
|
14433
14433
|
authenticated: !0,
|
|
14434
14434
|
user: {
|
|
14435
14435
|
id: me,
|
|
@@ -14440,13 +14440,13 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14440
14440
|
}
|
|
14441
14441
|
};
|
|
14442
14442
|
S(fe), $("login", fe);
|
|
14443
|
-
const
|
|
14443
|
+
const Ve = await ee(
|
|
14444
14444
|
{ external_id: me, email: ue, name: xe },
|
|
14445
14445
|
pe
|
|
14446
14446
|
);
|
|
14447
|
-
console.log("[embeddables] Sign result:", { hasToken: !!
|
|
14447
|
+
console.log("[embeddables] Sign result:", { hasToken: !!Ve }), Ve && H(Ve);
|
|
14448
14448
|
}, [U, ee, H, $]), J = be(async (N, A) => {
|
|
14449
|
-
const I =
|
|
14449
|
+
const I = ze(N);
|
|
14450
14450
|
if (!I)
|
|
14451
14451
|
throw new Error(`identity.extend: extension '${N}' not registered`);
|
|
14452
14452
|
if (!I.manifest.permissions.includes("identity:extend"))
|
|
@@ -14458,24 +14458,24 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14458
14458
|
const X = Object.assign(
|
|
14459
14459
|
{},
|
|
14460
14460
|
...Array.from(P.current.values())
|
|
14461
|
-
), { external_id:
|
|
14461
|
+
), { external_id: se, email: pe, name: me, ...ue } = X, xe = R.user, fe = typeof se == "string" ? se : xe.id, Ve = typeof pe == "string" ? pe : xe.email, cn = typeof me == "string" ? me : xe.name, Ce = {
|
|
14462
14462
|
...R,
|
|
14463
14463
|
user: {
|
|
14464
14464
|
...xe,
|
|
14465
14465
|
id: fe,
|
|
14466
|
-
email:
|
|
14466
|
+
email: Ve,
|
|
14467
14467
|
name: cn,
|
|
14468
14468
|
metadata: Object.keys(ue).length > 0 ? ue : void 0
|
|
14469
14469
|
}
|
|
14470
14470
|
};
|
|
14471
14471
|
S(Ce);
|
|
14472
|
-
const
|
|
14473
|
-
{ external_id: fe, email:
|
|
14472
|
+
const Ue = await ee(
|
|
14473
|
+
{ external_id: fe, email: Ve, name: cn },
|
|
14474
14474
|
ue
|
|
14475
14475
|
);
|
|
14476
|
-
if (!
|
|
14476
|
+
if (!Ue)
|
|
14477
14477
|
throw new Error("identity.extend: signIdentity returned null (check apiBase/appId/instanceId)");
|
|
14478
|
-
return H(
|
|
14478
|
+
return H(Ue), $("refresh", Ce), { token: Ue };
|
|
14479
14479
|
}, [R, ee, H, $]), oe = be(async (N, A) => {
|
|
14480
14480
|
const I = _.current.get(N);
|
|
14481
14481
|
I && await I.catch(() => {
|
|
@@ -14560,7 +14560,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14560
14560
|
if (!(z != null && z.manifest.permissions.includes("events:identity")))
|
|
14561
14561
|
return;
|
|
14562
14562
|
const V = z.manifest.events ?? [];
|
|
14563
|
-
!V.includes("identity") && !V.includes("identity:login") ||
|
|
14563
|
+
!V.includes("identity") && !V.includes("identity:login") || De(O, {
|
|
14564
14564
|
type: "extension-event",
|
|
14565
14565
|
eventType: "identity",
|
|
14566
14566
|
payload: { eventName: "login", data: { state: R, timestamp: cr((/* @__PURE__ */ new Date()).toISOString()) } }
|
|
@@ -14615,7 +14615,7 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14615
14615
|
};
|
|
14616
14616
|
return window.addEventListener("stackable:activity", N), () => window.removeEventListener("stackable:activity", N);
|
|
14617
14617
|
}, [j]), ae(() => {
|
|
14618
|
-
var
|
|
14618
|
+
var O;
|
|
14619
14619
|
if (!x)
|
|
14620
14620
|
return;
|
|
14621
14621
|
const N = {
|
|
@@ -14624,12 +14624,12 @@ const ze = (e) => e == null ? void 0 : e === !0 || e === "true", sd = {
|
|
|
14624
14624
|
customerName: i ?? "",
|
|
14625
14625
|
messaging: k,
|
|
14626
14626
|
identity: R
|
|
14627
|
-
}, A = Ft();
|
|
14628
|
-
for (const [
|
|
14629
|
-
if (!
|
|
14627
|
+
}, A = Ft(), I = !!(k != null && k.conversationId);
|
|
14628
|
+
for (const [z, V] of A) {
|
|
14629
|
+
if (V.manifest.permissions.includes("messaging:send") && De(z, { type: "messaging-lifecycle", enabled: I }), !V.manifest.permissions.includes("context:read"))
|
|
14630
14630
|
continue;
|
|
14631
|
-
const
|
|
14632
|
-
|
|
14631
|
+
const X = (O = g.get(z)) == null ? void 0 : O.settings, se = X ? { ...N, settings: X } : N;
|
|
14632
|
+
De(z, { type: "context-push", context: se });
|
|
14633
14633
|
}
|
|
14634
14634
|
}, [x, s, a, i, R, k, g]);
|
|
14635
14635
|
const ne = Qe(
|