@expofp/floorplan 3.0.0-alpha.14 → 3.0.0-alpha.15
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/browser/Debug-Bn7mmuWl.js +40 -0
- package/dist/browser/Demo-pwpeopeB.js +47 -0
- package/dist/browser/{Free-Dm2FRajw.js → Free-CeZSHheC.js} +29 -20
- package/dist/browser/Gallery-BTasOfWx.js +288 -0
- package/dist/browser/GpsLoader-BS8b-Aif.js +140 -0
- package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-_Zcv0Bc0.js} +57 -48
- package/dist/browser/Mapbox-Cl59-8BN.js +118 -0
- package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-CjjAW8SI.js} +66 -57
- package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-DUcthTIK.js} +28 -19
- package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-CdelmApV.js} +181 -172
- package/dist/browser/boolean-editor-HetrPeeC.js +157 -0
- package/dist/browser/bundle.json +29 -29
- package/dist/browser/{client-D3Op9Jdd.js → client-BMgLu7eB.js} +590 -581
- package/dist/browser/{data-0pZ-ZMEi.js → data-eO9H1gMa.js} +276 -267
- package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-DqIeCuHo.js} +98 -89
- package/dist/browser/debug-ui-6t_iunMd.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-CoF9H4Pb.js} +11 -2
- package/dist/browser/fetch-retry.umd-GcX1W9qV.js +123 -0
- package/dist/browser/{flex-OW_m-DBA.js → flex-BC_JSvaB.js} +80 -71
- package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CZn5dvsU.js} +1011 -987
- package/dist/browser/index-C1Rwmp91.js +54 -0
- package/dist/browser/{index-BuJlIIdP.js → index-CEVUHq8g.js} +96 -87
- package/dist/browser/{index-BUq8_R36.js → index-Dba8EyWF.js} +41 -32
- package/dist/browser/{index-Zz9lJz5_.js → index-DnV82MKb.js} +296 -287
- package/dist/browser/index-Dp-WygGH.js +57 -0
- package/dist/browser/index-sNwIhVDZ.js +92 -0
- package/dist/browser/{index-AJbTBu7z.js → index-uGr-_9rk.js} +258 -249
- package/dist/browser/index.js +11 -2
- package/dist/browser/jsx-runtime-BHfPvO9I.js +40 -0
- package/dist/browser/{main-CD9JioNt.js → main-DYasSc7U.js} +24 -15
- package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-B6O6_M_h.js} +43 -34
- package/package.json +4 -3
- package/dist/browser/Debug-Pul6-ZdY.js +0 -31
- package/dist/browser/Demo-DN_Ej-P_.js +0 -38
- package/dist/browser/Gallery-TLr-wfCG.js +0 -279
- package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
- package/dist/browser/Mapbox-DizBJSb0.js +0 -109
- package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
- package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
- package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
- package/dist/browser/index-B2YV6GNs.js +0 -48
- package/dist/browser/index-D0SjrKD-.js +0 -45
- package/dist/browser/index-Vc2rrV4B.js +0 -83
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
function __vite_inject_css__(css, id, nonce){ if (typeof document==='undefined') return; var s=document.createElement('style'); s.setAttribute('data-vite-chunk-style', id); s.appendChild(document.createTextNode(css)); document.head.appendChild(s);}
|
|
2
|
-
import { j as h } from "./jsx-runtime-
|
|
3
|
-
import { r as i, o as ce, aj as Qo } from "./index-
|
|
4
|
-
import { P as j, d as pe, u as F, i as bt, j as Ce, c as
|
|
5
|
-
import { R as ua, r as fa, y as B } from "./index-
|
|
6
|
-
import { e as da, a as pa } from "./index-
|
|
2
|
+
import { j as h } from "./jsx-runtime-BHfPvO9I.js";
|
|
3
|
+
import { r as i, o as ce, aj as Qo } from "./index-DnV82MKb.js";
|
|
4
|
+
import { P as j, d as pe, u as F, i as bt, j as Ce, c as I, k as Jo, a as It, l as ea, m as jn, b as ta, n as Mt, t as De, q as _e, o as et, r as kn, s as na, w as ra, x as oa, y as aa, z as ia, v as U, e as ne, S as Ae, g as sa, f as ca, A as $n, h as Ie, B as la, p as Me } from "./flex-BC_JSvaB.js";
|
|
5
|
+
import { R as ua, r as fa, y as B } from "./index-C1Rwmp91.js";
|
|
6
|
+
import { e as da, a as pa } from "./index-sNwIhVDZ.js";
|
|
7
|
+
(function() {
|
|
8
|
+
try {
|
|
9
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
10
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.15" };
|
|
11
|
+
var t = new e.Error().stack;
|
|
12
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cc141336-2d2d-4c00-8a41-33da90ff5168", e._sentryDebugIdIdentifier = "sentry-dbid-cc141336-2d2d-4c00-8a41-33da90ff5168");
|
|
13
|
+
} catch {
|
|
14
|
+
}
|
|
15
|
+
})();
|
|
7
16
|
var ma = Object.freeze({
|
|
8
17
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
9
18
|
position: "absolute",
|
|
@@ -217,9 +226,9 @@ var Aa = "DismissableLayer", Ct = "dismissableLayer.update", Sa = "dismissableLa
|
|
|
217
226
|
pointerEvents: x ? b ? "auto" : "none" : void 0,
|
|
218
227
|
...e.style
|
|
219
228
|
},
|
|
220
|
-
onFocusCapture:
|
|
221
|
-
onBlurCapture:
|
|
222
|
-
onPointerDownCapture:
|
|
229
|
+
onFocusCapture: I(e.onFocusCapture, R.onFocusCapture),
|
|
230
|
+
onBlurCapture: I(e.onBlurCapture, R.onBlurCapture),
|
|
231
|
+
onPointerDownCapture: I(
|
|
223
232
|
e.onPointerDownCapture,
|
|
224
233
|
E.onPointerDownCapture
|
|
225
234
|
)
|
|
@@ -291,7 +300,7 @@ function zn(e, t, n, { discrete: r }) {
|
|
|
291
300
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
292
301
|
t && o.addEventListener(e, t, { once: !0 }), r ? Jo(o, a) : o.dispatchEvent(a);
|
|
293
302
|
}
|
|
294
|
-
var ut = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", dn = { bubbles: !1, cancelable: !0 },
|
|
303
|
+
var ut = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", dn = { bubbles: !1, cancelable: !0 }, Ia = "FocusScope", Un = i.forwardRef((e, t) => {
|
|
295
304
|
const {
|
|
296
305
|
loop: n = !1,
|
|
297
306
|
trapped: r = !1,
|
|
@@ -334,7 +343,7 @@ var ut = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", dn
|
|
|
334
343
|
const p = document.activeElement;
|
|
335
344
|
if (!c.contains(p)) {
|
|
336
345
|
const w = new CustomEvent(ut, dn);
|
|
337
|
-
c.addEventListener(ut, u), c.dispatchEvent(w), w.defaultPrevented || (
|
|
346
|
+
c.addEventListener(ut, u), c.dispatchEvent(w), w.defaultPrevented || (Ma($a(Gn(c)), { select: !0 }), document.activeElement === p && ae(c));
|
|
338
347
|
}
|
|
339
348
|
return () => {
|
|
340
349
|
c.removeEventListener(ut, u), setTimeout(() => {
|
|
@@ -357,8 +366,8 @@ var ut = "focusScope.autoFocusOnMount", ft = "focusScope.autoFocusOnUnmount", dn
|
|
|
357
366
|
);
|
|
358
367
|
return /* @__PURE__ */ h.jsx(j.div, { tabIndex: -1, ...s, ref: m, onKeyDown: y });
|
|
359
368
|
});
|
|
360
|
-
Un.displayName =
|
|
361
|
-
function
|
|
369
|
+
Un.displayName = Ia;
|
|
370
|
+
function Ma(e, { select: t = !1 } = {}) {
|
|
362
371
|
const n = document.activeElement;
|
|
363
372
|
for (const r of e)
|
|
364
373
|
if (ae(r, { select: t }), document.activeElement !== n) return;
|
|
@@ -855,8 +864,8 @@ function xi(e) {
|
|
|
855
864
|
return !1;
|
|
856
865
|
if (!r.current && "changedTouches" in p && (x || b) && (r.current = E), !E)
|
|
857
866
|
return !0;
|
|
858
|
-
var
|
|
859
|
-
return hi(
|
|
867
|
+
var M = r.current || E;
|
|
868
|
+
return hi(M, v, p, M === "h" ? x : b);
|
|
860
869
|
}, []), f = i.useCallback(function(p) {
|
|
861
870
|
var v = p;
|
|
862
871
|
if (!(!ge.length || ge[ge.length - 1] !== a)) {
|
|
@@ -973,7 +982,7 @@ var Ei = function(e) {
|
|
|
973
982
|
defaultOpen: o,
|
|
974
983
|
onOpenChange: a,
|
|
975
984
|
modal: s = !0
|
|
976
|
-
} = e, c = i.useRef(null), f = i.useRef(null), [u, l] =
|
|
985
|
+
} = e, c = i.useRef(null), f = i.useRef(null), [u, l] = It({
|
|
977
986
|
prop: r,
|
|
978
987
|
defaultProp: o != null ? o : !1,
|
|
979
988
|
onChange: a,
|
|
@@ -1010,7 +1019,7 @@ var ir = "DialogTrigger", sr = i.forwardRef(
|
|
|
1010
1019
|
"data-state": kt(o.open),
|
|
1011
1020
|
...r,
|
|
1012
1021
|
ref: a,
|
|
1013
|
-
onClick:
|
|
1022
|
+
onClick: I(e.onClick, o.onOpenToggle)
|
|
1014
1023
|
}
|
|
1015
1024
|
);
|
|
1016
1025
|
}
|
|
@@ -1050,7 +1059,7 @@ var Pi = bt("DialogOverlay.RemoveScroll"), Di = i.forwardRef(
|
|
|
1050
1059
|
), fe = "DialogContent", fr = i.forwardRef(
|
|
1051
1060
|
(e, t) => {
|
|
1052
1061
|
const n = cr(fe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = K(fe, e.__scopeDialog);
|
|
1053
|
-
return /* @__PURE__ */ h.jsx(Se, { present: r || a.open, children: a.modal ? /* @__PURE__ */ h.jsx(Oi, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(
|
|
1062
|
+
return /* @__PURE__ */ h.jsx(Se, { present: r || a.open, children: a.modal ? /* @__PURE__ */ h.jsx(Oi, { ...o, ref: t }) : /* @__PURE__ */ h.jsx(Ii, { ...o, ref: t }) });
|
|
1054
1063
|
}
|
|
1055
1064
|
);
|
|
1056
1065
|
fr.displayName = fe;
|
|
@@ -1067,22 +1076,22 @@ var Oi = i.forwardRef(
|
|
|
1067
1076
|
ref: o,
|
|
1068
1077
|
trapFocus: n.open,
|
|
1069
1078
|
disableOutsidePointerEvents: !0,
|
|
1070
|
-
onCloseAutoFocus:
|
|
1079
|
+
onCloseAutoFocus: I(e.onCloseAutoFocus, (a) => {
|
|
1071
1080
|
var s;
|
|
1072
1081
|
a.preventDefault(), (s = n.triggerRef.current) == null || s.focus();
|
|
1073
1082
|
}),
|
|
1074
|
-
onPointerDownOutside:
|
|
1083
|
+
onPointerDownOutside: I(e.onPointerDownOutside, (a) => {
|
|
1075
1084
|
const s = a.detail.originalEvent, c = s.button === 0 && s.ctrlKey === !0;
|
|
1076
1085
|
(s.button === 2 || c) && a.preventDefault();
|
|
1077
1086
|
}),
|
|
1078
|
-
onFocusOutside:
|
|
1087
|
+
onFocusOutside: I(
|
|
1079
1088
|
e.onFocusOutside,
|
|
1080
1089
|
(a) => a.preventDefault()
|
|
1081
1090
|
)
|
|
1082
1091
|
}
|
|
1083
1092
|
);
|
|
1084
1093
|
}
|
|
1085
|
-
),
|
|
1094
|
+
), Ii = i.forwardRef(
|
|
1086
1095
|
(e, t) => {
|
|
1087
1096
|
const n = K(fe, e.__scopeDialog), r = i.useRef(!1), o = i.useRef(!1);
|
|
1088
1097
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -1161,7 +1170,7 @@ var hr = "DialogClose", vr = i.forwardRef(
|
|
|
1161
1170
|
type: "button",
|
|
1162
1171
|
...r,
|
|
1163
1172
|
ref: t,
|
|
1164
|
-
onClick:
|
|
1173
|
+
onClick: I(e.onClick, () => o.onOpenChange(!1))
|
|
1165
1174
|
}
|
|
1166
1175
|
);
|
|
1167
1176
|
}
|
|
@@ -1170,7 +1179,7 @@ vr.displayName = hr;
|
|
|
1170
1179
|
function kt(e) {
|
|
1171
1180
|
return e ? "open" : "closed";
|
|
1172
1181
|
}
|
|
1173
|
-
var yr = "DialogTitleWarning", [
|
|
1182
|
+
var yr = "DialogTitleWarning", [Mi, wr] = ea(yr, {
|
|
1174
1183
|
contentName: fe,
|
|
1175
1184
|
titleName: jt,
|
|
1176
1185
|
docsSlug: "dialog"
|
|
@@ -1220,7 +1229,7 @@ var xe = "AlertDialogContent", [Ki, Xi] = zi(xe), qi = jn("AlertDialogContent"),
|
|
|
1220
1229
|
(e, t) => {
|
|
1221
1230
|
const { __scopeAlertDialog: n, children: r, ...o } = e, a = re(n), s = i.useRef(null), c = F(t, s), f = i.useRef(null);
|
|
1222
1231
|
return /* @__PURE__ */ h.jsx(
|
|
1223
|
-
|
|
1232
|
+
Mi,
|
|
1224
1233
|
{
|
|
1225
1234
|
contentName: xe,
|
|
1226
1235
|
titleName: Tr,
|
|
@@ -1232,7 +1241,7 @@ var xe = "AlertDialogContent", [Ki, Xi] = zi(xe), qi = jn("AlertDialogContent"),
|
|
|
1232
1241
|
...a,
|
|
1233
1242
|
...o,
|
|
1234
1243
|
ref: c,
|
|
1235
|
-
onOpenAutoFocus:
|
|
1244
|
+
onOpenAutoFocus: I(o.onOpenAutoFocus, (u) => {
|
|
1236
1245
|
var l;
|
|
1237
1246
|
u.preventDefault(), (l = f.current) == null || l.focus({ preventScroll: !0 });
|
|
1238
1247
|
}),
|
|
@@ -1268,13 +1277,13 @@ var Zi = "AlertDialogAction", Or = i.forwardRef(
|
|
|
1268
1277
|
}
|
|
1269
1278
|
);
|
|
1270
1279
|
Or.displayName = Zi;
|
|
1271
|
-
var
|
|
1280
|
+
var Ir = "AlertDialogCancel", Mr = i.forwardRef(
|
|
1272
1281
|
(e, t) => {
|
|
1273
|
-
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = Xi(
|
|
1282
|
+
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = Xi(Ir, n), a = re(n), s = F(t, o);
|
|
1274
1283
|
return /* @__PURE__ */ h.jsx(xr, { ...a, ...r, ref: s });
|
|
1275
1284
|
}
|
|
1276
1285
|
);
|
|
1277
|
-
|
|
1286
|
+
Mr.displayName = Ir;
|
|
1278
1287
|
var Qi = ({ contentRef: e }) => {
|
|
1279
1288
|
const t = `\`${xe}\` requires a description for the component to be accessible for screen reader users.
|
|
1280
1289
|
|
|
@@ -1289,7 +1298,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
1289
1298
|
(r = e.current) == null ? void 0 : r.getAttribute("aria-describedby")
|
|
1290
1299
|
) || console.warn(t);
|
|
1291
1300
|
}, [t, e]), null;
|
|
1292
|
-
}, Ji = Cr, es = Er, ts = Rr, ns = Ar, rs = Sr, os = Or, as =
|
|
1301
|
+
}, Ji = Cr, es = Er, ts = Rr, ns = Ar, rs = Sr, os = Or, as = Mr, is = Nr, ss = Dr;
|
|
1293
1302
|
const cs = ["top", "right", "bottom", "left"], ie = Math.min, V = Math.max, qe = Math.round, Ue = Math.floor, Q = (e) => ({
|
|
1294
1303
|
x: e,
|
|
1295
1304
|
y: e
|
|
@@ -1575,7 +1584,7 @@ const ys = 50, ws = async (e, t, n) => {
|
|
|
1575
1584
|
}, g = Bt(o), y = Ft(g), p = await s.getDimensions(u), v = g === "y", w = v ? "top" : "left", C = v ? "bottom" : "right", x = v ? "clientHeight" : "clientWidth", b = a.reference[y] + a.reference[g] - m[g] - a.floating[y], E = m[g] - a.reference[g], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
1576
1585
|
let S = R ? R[x] : 0;
|
|
1577
1586
|
(!S || !await (s.isElement == null ? void 0 : s.isElement(R))) && (S = c.floating[x] || a.floating[y]);
|
|
1578
|
-
const A = b / 2 - E / 2, D = S / 2 - p[y] / 2 - 1, P = ie(d[w], D), N = ie(d[C], D),
|
|
1587
|
+
const A = b / 2 - E / 2, D = S / 2 - p[y] / 2 - 1, P = ie(d[w], D), N = ie(d[C], D), M = P, _ = S - p[y] - N, L = S / 2 - p[y] / 2 + A, W = Rt(M, L, _), O = !f.arrow && Te(o) != null && L !== W && a.reference[y] / 2 - (L < M ? P : N) - p[y] / 2 < 0, k = O ? L < M ? L - M : L - _ : 0;
|
|
1579
1588
|
return {
|
|
1580
1589
|
[g]: m[g] + k,
|
|
1581
1590
|
data: {
|
|
@@ -1624,7 +1633,7 @@ const ys = 50, ws = async (e, t, n) => {
|
|
|
1624
1633
|
placement: o,
|
|
1625
1634
|
overflows: D
|
|
1626
1635
|
}], !D.every((L) => L <= 0)) {
|
|
1627
|
-
var N,
|
|
1636
|
+
var N, M;
|
|
1628
1637
|
const L = (((N = a.flip) == null ? void 0 : N.index) || 0) + 1, W = S[L];
|
|
1629
1638
|
if (W && (!(d === "alignment" ? C !== Z(W) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1630
1639
|
// overflows the main axis.
|
|
@@ -1638,7 +1647,7 @@ const ys = 50, ws = async (e, t, n) => {
|
|
|
1638
1647
|
placement: W
|
|
1639
1648
|
}
|
|
1640
1649
|
};
|
|
1641
|
-
let O = (
|
|
1650
|
+
let O = (M = P.filter((k) => k.overflows[0] <= 0).sort((k, T) => k.overflows[1] - T.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
1642
1651
|
if (!O)
|
|
1643
1652
|
switch (g) {
|
|
1644
1653
|
case "bestFit": {
|
|
@@ -1896,8 +1905,8 @@ const Rs = function(e) {
|
|
|
1896
1905
|
const C = p - l.top - l.bottom, x = y - l.left - l.right, b = ie(p - l[v], C), E = ie(y - l[w], x), R = !t.middlewareData.shift;
|
|
1897
1906
|
let S = b, A = E;
|
|
1898
1907
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = x), (r = t.middlewareData.shift) != null && r.enabled.y && (S = C), R && !m) {
|
|
1899
|
-
const P = V(l.left, 0), N = V(l.right, 0),
|
|
1900
|
-
g ? A = y - 2 * (P !== 0 || N !== 0 ? P + N : V(l.left, l.right)) : S = p - 2 * (
|
|
1908
|
+
const P = V(l.left, 0), N = V(l.right, 0), M = V(l.top, 0), _ = V(l.bottom, 0);
|
|
1909
|
+
g ? A = y - 2 * (P !== 0 || N !== 0 ? P + N : V(l.left, l.right)) : S = p - 2 * (M !== 0 || _ !== 0 ? M + _ : V(l.top, l.bottom));
|
|
1901
1910
|
}
|
|
1902
1911
|
await f({
|
|
1903
1912
|
...t,
|
|
@@ -2055,15 +2064,15 @@ function be(e) {
|
|
|
2055
2064
|
y: c
|
|
2056
2065
|
};
|
|
2057
2066
|
}
|
|
2058
|
-
const
|
|
2067
|
+
const Is = /* @__PURE__ */ Q(0);
|
|
2059
2068
|
function Fr(e) {
|
|
2060
2069
|
const t = z(e);
|
|
2061
|
-
return !Ht() || !t.visualViewport ?
|
|
2070
|
+
return !Ht() || !t.visualViewport ? Is : {
|
|
2062
2071
|
x: t.visualViewport.offsetLeft,
|
|
2063
2072
|
y: t.visualViewport.offsetTop
|
|
2064
2073
|
};
|
|
2065
2074
|
}
|
|
2066
|
-
function
|
|
2075
|
+
function Ms(e, t, n) {
|
|
2067
2076
|
return t === void 0 && (t = !1), !n || t && n !== z(e) ? !1 : t;
|
|
2068
2077
|
}
|
|
2069
2078
|
function de(e, t, n, r) {
|
|
@@ -2071,7 +2080,7 @@ function de(e, t, n, r) {
|
|
|
2071
2080
|
const o = e.getBoundingClientRect(), a = Vt(e);
|
|
2072
2081
|
let s = Q(1);
|
|
2073
2082
|
t && (r ? G(r) && (s = be(r)) : s = be(e));
|
|
2074
|
-
const c =
|
|
2083
|
+
const c = Ms(a, n, r) ? Fr(a) : Q(0);
|
|
2075
2084
|
let f = (o.left + c.x) / s.x, u = (o.top + c.y) / s.y, l = o.width / s.x, d = o.height / s.y;
|
|
2076
2085
|
if (a) {
|
|
2077
2086
|
const m = z(a), g = r && G(r) ? z(r) : r;
|
|
@@ -2449,7 +2458,7 @@ function Je(e, t) {
|
|
|
2449
2458
|
function zr(e) {
|
|
2450
2459
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2451
2460
|
}
|
|
2452
|
-
function
|
|
2461
|
+
function In(e, t) {
|
|
2453
2462
|
const n = zr(e);
|
|
2454
2463
|
return Math.round(t * n) / n;
|
|
2455
2464
|
}
|
|
@@ -2486,7 +2495,7 @@ function rc(e) {
|
|
|
2486
2495
|
T !== R.current && (R.current = T, p(T));
|
|
2487
2496
|
}, []), x = i.useCallback((T) => {
|
|
2488
2497
|
T !== S.current && (S.current = T, w(T));
|
|
2489
|
-
}, []), b = a || y, E = s || v, R = i.useRef(null), S = i.useRef(null), A = i.useRef(l), D = f != null, P = wt(f), N = wt(o),
|
|
2498
|
+
}, []), b = a || y, E = s || v, R = i.useRef(null), S = i.useRef(null), A = i.useRef(l), D = f != null, P = wt(f), N = wt(o), M = wt(u), _ = i.useCallback(() => {
|
|
2490
2499
|
if (!R.current || !S.current)
|
|
2491
2500
|
return;
|
|
2492
2501
|
const T = {
|
|
@@ -2501,13 +2510,13 @@ function rc(e) {
|
|
|
2501
2510
|
// but still mounted (such as when transitioning out). To ensure
|
|
2502
2511
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2503
2512
|
// setting it to `true` when `open === false` (must be specified).
|
|
2504
|
-
isPositioned:
|
|
2513
|
+
isPositioned: M.current !== !1
|
|
2505
2514
|
};
|
|
2506
2515
|
L.current && !Je(A.current, X) && (A.current = X, fa.flushSync(() => {
|
|
2507
2516
|
d(X);
|
|
2508
2517
|
}));
|
|
2509
2518
|
});
|
|
2510
|
-
}, [m, t, n, N,
|
|
2519
|
+
}, [m, t, n, N, M]);
|
|
2511
2520
|
Ke(() => {
|
|
2512
2521
|
u === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((T) => ({
|
|
2513
2522
|
...T,
|
|
@@ -2540,7 +2549,7 @@ function rc(e) {
|
|
|
2540
2549
|
};
|
|
2541
2550
|
if (!O.floating)
|
|
2542
2551
|
return T;
|
|
2543
|
-
const $ =
|
|
2552
|
+
const $ = In(O.floating, l.x), X = In(O.floating, l.y);
|
|
2544
2553
|
return c ? {
|
|
2545
2554
|
...T,
|
|
2546
2555
|
transform: "translate(" + $ + "px, " + X + "px)",
|
|
@@ -2672,11 +2681,11 @@ var zt = "PopperContent", [mc, gc] = Yr(zt), Qr = i.forwardRef(
|
|
|
2672
2681
|
updatePositionStrategy: g = "optimized",
|
|
2673
2682
|
onPlaced: y,
|
|
2674
2683
|
...p
|
|
2675
|
-
} = e, v = Xr(zt, n), [w, C] = i.useState(null), x = F(t, (Pe) => C(Pe)), [b, E] = i.useState(null), R = ta(b), S = (en = R == null ? void 0 : R.width) != null ? en : 0, A = (tn = R == null ? void 0 : R.height) != null ? tn : 0, D = r + (a !== "center" ? "-" + a : ""), P = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, N = Array.isArray(u) ? u : [u],
|
|
2684
|
+
} = e, v = Xr(zt, n), [w, C] = i.useState(null), x = F(t, (Pe) => C(Pe)), [b, E] = i.useState(null), R = ta(b), S = (en = R == null ? void 0 : R.width) != null ? en : 0, A = (tn = R == null ? void 0 : R.height) != null ? tn : 0, D = r + (a !== "center" ? "-" + a : ""), P = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, N = Array.isArray(u) ? u : [u], M = N.length > 0, _ = {
|
|
2676
2685
|
padding: P,
|
|
2677
2686
|
boundary: N.filter(vc),
|
|
2678
2687
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2679
|
-
altBoundary:
|
|
2688
|
+
altBoundary: M
|
|
2680
2689
|
}, { refs: L, floatingStyles: W, placement: O, isPositioned: k, middlewareData: T } = rc({
|
|
2681
2690
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2682
2691
|
strategy: "fixed",
|
|
@@ -2856,7 +2865,7 @@ var Tc = i.forwardRef((e, t) => {
|
|
|
2856
2865
|
onEntryFocus: u,
|
|
2857
2866
|
preventScrollOnEntryFocus: l = !1,
|
|
2858
2867
|
...d
|
|
2859
|
-
} = e, m = i.useRef(null), g = F(t, m), y = Hn(a), [p, v] =
|
|
2868
|
+
} = e, m = i.useRef(null), g = F(t, m), y = Hn(a), [p, v] = It({
|
|
2860
2869
|
prop: s,
|
|
2861
2870
|
defaultProp: c != null ? c : null,
|
|
2862
2871
|
onChange: f,
|
|
@@ -2895,15 +2904,15 @@ var Tc = i.forwardRef((e, t) => {
|
|
|
2895
2904
|
...d,
|
|
2896
2905
|
ref: g,
|
|
2897
2906
|
style: { outline: "none", ...e.style },
|
|
2898
|
-
onMouseDown:
|
|
2907
|
+
onMouseDown: I(e.onMouseDown, () => {
|
|
2899
2908
|
E.current = !0;
|
|
2900
2909
|
}),
|
|
2901
|
-
onFocus:
|
|
2910
|
+
onFocus: I(e.onFocus, (A) => {
|
|
2902
2911
|
const D = !E.current;
|
|
2903
2912
|
if (A.target === A.currentTarget && D && !w) {
|
|
2904
2913
|
const P = new CustomEvent(xt, Cc);
|
|
2905
2914
|
if (A.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
2906
|
-
const N = b().filter((O) => O.focusable),
|
|
2915
|
+
const N = b().filter((O) => O.focusable), M = N.find((O) => O.active), _ = N.find((O) => O.id === p), W = [M, _, ...N].filter(
|
|
2907
2916
|
Boolean
|
|
2908
2917
|
).map((O) => O.ref.current);
|
|
2909
2918
|
so(W, l);
|
|
@@ -2911,7 +2920,7 @@ var Tc = i.forwardRef((e, t) => {
|
|
|
2911
2920
|
}
|
|
2912
2921
|
E.current = !1;
|
|
2913
2922
|
}),
|
|
2914
|
-
onBlur:
|
|
2923
|
+
onBlur: I(e.onBlur, () => C(!1))
|
|
2915
2924
|
}
|
|
2916
2925
|
)
|
|
2917
2926
|
}
|
|
@@ -2943,11 +2952,11 @@ var Tc = i.forwardRef((e, t) => {
|
|
|
2943
2952
|
"data-orientation": l.orientation,
|
|
2944
2953
|
...c,
|
|
2945
2954
|
ref: t,
|
|
2946
|
-
onMouseDown:
|
|
2955
|
+
onMouseDown: I(e.onMouseDown, (v) => {
|
|
2947
2956
|
r ? l.onItemFocus(u) : v.preventDefault();
|
|
2948
2957
|
}),
|
|
2949
|
-
onFocus:
|
|
2950
|
-
onKeyDown:
|
|
2958
|
+
onFocus: I(e.onFocus, () => l.onItemFocus(u)),
|
|
2959
|
+
onKeyDown: I(e.onKeyDown, (v) => {
|
|
2951
2960
|
if (v.key === "Tab" && v.shiftKey) {
|
|
2952
2961
|
l.onItemShiftTab();
|
|
2953
2962
|
return;
|
|
@@ -3001,7 +3010,7 @@ function so(e, t = !1) {
|
|
|
3001
3010
|
function Oc(e, t) {
|
|
3002
3011
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3003
3012
|
}
|
|
3004
|
-
var
|
|
3013
|
+
var Ic = oo, Mc = io, st = "Tabs", [Lc] = pe(st, [
|
|
3005
3014
|
ro
|
|
3006
3015
|
]), co = ro(), [_c, Ut] = Lc(st), lo = i.forwardRef(
|
|
3007
3016
|
(e, t) => {
|
|
@@ -3014,7 +3023,7 @@ var Mc = oo, Ic = io, st = "Tabs", [Lc] = pe(st, [
|
|
|
3014
3023
|
dir: c,
|
|
3015
3024
|
activationMode: f = "automatic",
|
|
3016
3025
|
...u
|
|
3017
|
-
} = e, l = Hn(c), [d, m] =
|
|
3026
|
+
} = e, l = Hn(c), [d, m] = It({
|
|
3018
3027
|
prop: r,
|
|
3019
3028
|
onChange: o,
|
|
3020
3029
|
defaultProp: a != null ? a : "",
|
|
@@ -3048,7 +3057,7 @@ var uo = "TabsList", fo = i.forwardRef(
|
|
|
3048
3057
|
(e, t) => {
|
|
3049
3058
|
const { __scopeTabs: n, loop: r = !0, ...o } = e, a = Ut(uo, n), s = co(n);
|
|
3050
3059
|
return /* @__PURE__ */ h.jsx(
|
|
3051
|
-
|
|
3060
|
+
Ic,
|
|
3052
3061
|
{
|
|
3053
3062
|
asChild: !0,
|
|
3054
3063
|
...s,
|
|
@@ -3073,7 +3082,7 @@ var po = "TabsTrigger", mo = i.forwardRef(
|
|
|
3073
3082
|
(e, t) => {
|
|
3074
3083
|
const { __scopeTabs: n, value: r, disabled: o = !1, ...a } = e, s = Ut(po, n), c = co(n), f = vo(s.baseId, r), u = yo(s.baseId, r), l = r === s.value;
|
|
3075
3084
|
return /* @__PURE__ */ h.jsx(
|
|
3076
|
-
|
|
3085
|
+
Mc,
|
|
3077
3086
|
{
|
|
3078
3087
|
asChild: !0,
|
|
3079
3088
|
...c,
|
|
@@ -3092,13 +3101,13 @@ var po = "TabsTrigger", mo = i.forwardRef(
|
|
|
3092
3101
|
id: f,
|
|
3093
3102
|
...a,
|
|
3094
3103
|
ref: t,
|
|
3095
|
-
onMouseDown:
|
|
3104
|
+
onMouseDown: I(e.onMouseDown, (d) => {
|
|
3096
3105
|
!o && d.button === 0 && d.ctrlKey === !1 ? s.onValueChange(r) : d.preventDefault();
|
|
3097
3106
|
}),
|
|
3098
|
-
onKeyDown:
|
|
3107
|
+
onKeyDown: I(e.onKeyDown, (d) => {
|
|
3099
3108
|
[" ", "Enter"].includes(d.key) && s.onValueChange(r);
|
|
3100
3109
|
}),
|
|
3101
|
-
onFocus:
|
|
3110
|
+
onFocus: I(e.onFocus, () => {
|
|
3102
3111
|
const d = s.activationMode !== "manual";
|
|
3103
3112
|
!l && !o && d && s.onValueChange(r);
|
|
3104
3113
|
})
|
|
@@ -3145,7 +3154,7 @@ function yo(e, t) {
|
|
|
3145
3154
|
}
|
|
3146
3155
|
var jc = lo, kc = fo, $c = mo, Fc = ho, [ct] = pe("Tooltip", [
|
|
3147
3156
|
Kr
|
|
3148
|
-
]), Gt = Kr(), wo = "TooltipProvider", Bc = 700,
|
|
3157
|
+
]), Gt = Kr(), wo = "TooltipProvider", Bc = 700, Mn = "tooltip.open", [Wc, xo] = ct(wo), bo = (e) => {
|
|
3149
3158
|
const {
|
|
3150
3159
|
__scopeTooltip: t,
|
|
3151
3160
|
delayDuration: n = Bc,
|
|
@@ -3191,20 +3200,20 @@ var Co = "Tooltip", [Ul, lt] = ct(Co), Nt = "TooltipTrigger", Hc = i.forwardRef(
|
|
|
3191
3200
|
"data-state": o.stateAttribute,
|
|
3192
3201
|
...r,
|
|
3193
3202
|
ref: f,
|
|
3194
|
-
onPointerMove:
|
|
3203
|
+
onPointerMove: I(e.onPointerMove, (m) => {
|
|
3195
3204
|
m.pointerType !== "touch" && !l.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), l.current = !0);
|
|
3196
3205
|
}),
|
|
3197
|
-
onPointerLeave:
|
|
3206
|
+
onPointerLeave: I(e.onPointerLeave, () => {
|
|
3198
3207
|
o.onTriggerLeave(), l.current = !1;
|
|
3199
3208
|
}),
|
|
3200
|
-
onPointerDown:
|
|
3209
|
+
onPointerDown: I(e.onPointerDown, () => {
|
|
3201
3210
|
o.open && o.onClose(), u.current = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
3202
3211
|
}),
|
|
3203
|
-
onFocus:
|
|
3212
|
+
onFocus: I(e.onFocus, () => {
|
|
3204
3213
|
u.current || o.onOpen();
|
|
3205
3214
|
}),
|
|
3206
|
-
onBlur:
|
|
3207
|
-
onClick:
|
|
3215
|
+
onBlur: I(e.onBlur, o.onClose),
|
|
3216
|
+
onClick: I(e.onClick, o.onClose)
|
|
3208
3217
|
}
|
|
3209
3218
|
) });
|
|
3210
3219
|
}
|
|
@@ -3253,7 +3262,7 @@ var Vc = "TooltipPortal", [Gl, zc] = ct(Vc, {
|
|
|
3253
3262
|
onPointerDownOutside: s,
|
|
3254
3263
|
...c
|
|
3255
3264
|
} = e, f = lt(Re, n), u = Gt(n), { onClose: l } = f;
|
|
3256
|
-
return i.useEffect(() => (document.addEventListener(
|
|
3265
|
+
return i.useEffect(() => (document.addEventListener(Mn, l), () => document.removeEventListener(Mn, l)), [l]), i.useEffect(() => {
|
|
3257
3266
|
if (f.trigger) {
|
|
3258
3267
|
const d = (m) => {
|
|
3259
3268
|
const g = m.target;
|
|
@@ -3399,7 +3408,7 @@ function nl(e) {
|
|
|
3399
3408
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
3400
3409
|
}
|
|
3401
3410
|
var rl = bo;
|
|
3402
|
-
const ol = ["1", "2", "3", "4"], al = { ..._e, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: ol, default: "3", responsive: !0 }, width: De.width, minWidth: De.minWidth, maxWidth: { ...De.maxWidth, default: "600px" }, ...
|
|
3411
|
+
const ol = ["1", "2", "3", "4"], al = { ..._e, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: ol, default: "3", responsive: !0 }, width: De.width, minWidth: De.minWidth, maxWidth: { ...De.maxWidth, default: "600px" }, ...Mt }, il = ["span", "div", "label", "p"], sl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], cl = { as: { type: "enum", values: il, default: "span" }, ..._e, size: { type: "enum", className: "rt-r-size", values: sl, responsive: !0 }, ...ia, ...aa, ...oa, ...ra, ...na, ...kn, ...et }, Yt = i.forwardRef((e, t) => {
|
|
3403
3412
|
const { children: n, className: r, asChild: o, as: a = "span", color: s, ...c } = U(e, cl, ne);
|
|
3404
3413
|
return i.createElement(Ae, { "data-accent-color": s, ...c, ref: t, className: B("rt-Text", r) }, o ? n : i.createElement(a, null, n));
|
|
3405
3414
|
});
|
|
@@ -3459,8 +3468,8 @@ const Ao = i.forwardRef((e, t) => {
|
|
|
3459
3468
|
});
|
|
3460
3469
|
Ao.displayName = "ThemeRoot";
|
|
3461
3470
|
const Xt = i.forwardRef((e, t) => {
|
|
3462
|
-
var S, A, D, P, N,
|
|
3463
|
-
const n = i.useContext(Pt), { asChild: r, isRoot: o, hasBackground: a, appearance: s = (S = n == null ? void 0 : n.appearance) != null ? S : H.appearance.default, accentColor: c = (A = n == null ? void 0 : n.accentColor) != null ? A : H.accentColor.default, grayColor: f = (D = n == null ? void 0 : n.resolvedGrayColor) != null ? D : H.grayColor.default, panelBackground: u = (P = n == null ? void 0 : n.panelBackground) != null ? P : H.panelBackground.default, radius: l = (N = n == null ? void 0 : n.radius) != null ? N : H.radius.default, scaling: d = (
|
|
3471
|
+
var S, A, D, P, N, M;
|
|
3472
|
+
const n = i.useContext(Pt), { asChild: r, isRoot: o, hasBackground: a, appearance: s = (S = n == null ? void 0 : n.appearance) != null ? S : H.appearance.default, accentColor: c = (A = n == null ? void 0 : n.accentColor) != null ? A : H.accentColor.default, grayColor: f = (D = n == null ? void 0 : n.resolvedGrayColor) != null ? D : H.grayColor.default, panelBackground: u = (P = n == null ? void 0 : n.panelBackground) != null ? P : H.panelBackground.default, radius: l = (N = n == null ? void 0 : n.radius) != null ? N : H.radius.default, scaling: d = (M = n == null ? void 0 : n.scaling) != null ? M : H.scaling.default, onAppearanceChange: m = ve, onAccentColorChange: g = ve, onGrayColorChange: y = ve, onPanelBackgroundChange: p = ve, onRadiusChange: v = ve, onScalingChange: w = ve, ...C } = e, x = r ? Ae : "div", b = f === "auto" ? ll(c) : f, E = e.appearance === "light" || e.appearance === "dark", R = a === void 0 ? o || E : a;
|
|
3464
3473
|
return i.createElement(Pt.Provider, { value: i.useMemo(() => ({ appearance: s, accentColor: c, grayColor: f, resolvedGrayColor: b, panelBackground: u, radius: l, scaling: d, onAppearanceChange: m, onAccentColorChange: g, onGrayColorChange: y, onPanelBackgroundChange: p, onRadiusChange: v, onScalingChange: w }), [s, c, f, b, u, l, d, m, g, y, p, v, w]) }, i.createElement(x, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": b, "data-has-background": R ? "true" : "false", "data-panel-background": u, "data-radius": l, "data-scaling": d, ref: t, ...C, className: B("radix-themes", { light: s === "light", dark: s === "dark" }, C.className) }));
|
|
3465
3474
|
});
|
|
3466
3475
|
Xt.displayName = "ThemeImpl";
|
|
@@ -3482,21 +3491,21 @@ const Do = i.forwardRef((e, t) => i.createElement(ss, { asChild: !0 }, i.createE
|
|
|
3482
3491
|
Do.displayName = "AlertDialog.Description";
|
|
3483
3492
|
const Oo = i.forwardRef(({ children: e, ...t }, n) => i.createElement(os, { ...t, ref: n, asChild: !0 }, qt(e)));
|
|
3484
3493
|
Oo.displayName = "AlertDialog.Action";
|
|
3485
|
-
const
|
|
3486
|
-
|
|
3494
|
+
const Io = i.forwardRef(({ children: e, ...t }, n) => i.createElement(as, { ...t, ref: n, asChild: !0 }, qt(e)));
|
|
3495
|
+
Io.displayName = "AlertDialog.Cancel";
|
|
3487
3496
|
function ul(e, t) {
|
|
3488
3497
|
const { asChild: n, children: r } = e;
|
|
3489
3498
|
if (!n) return typeof t == "function" ? t(r) : t;
|
|
3490
3499
|
const o = i.Children.only(r);
|
|
3491
3500
|
return i.cloneElement(o, { children: typeof t == "function" ? t(o.props.children) : t });
|
|
3492
3501
|
}
|
|
3493
|
-
const fl = ["1", "2", "3", "4"], dl = ["classic", "solid", "soft", "surface", "outline", "ghost"], Ln = { ..._e, size: { type: "enum", className: "rt-r-size", values: fl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: dl, default: "solid" }, ...$n, ...et, ...ca, loading: { type: "boolean", className: "rt-loading", default: !1 } }, pl = ["1", "2", "3"], ml = { size: { type: "enum", className: "rt-r-size", values: pl, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } },
|
|
3502
|
+
const fl = ["1", "2", "3", "4"], dl = ["classic", "solid", "soft", "surface", "outline", "ghost"], Ln = { ..._e, size: { type: "enum", className: "rt-r-size", values: fl, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: dl, default: "solid" }, ...$n, ...et, ...ca, loading: { type: "boolean", className: "rt-loading", default: !1 } }, pl = ["1", "2", "3"], ml = { size: { type: "enum", className: "rt-r-size", values: pl, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, Mo = i.forwardRef((e, t) => {
|
|
3494
3503
|
const { className: n, children: r, loading: o, ...a } = U(e, ml, ne);
|
|
3495
3504
|
if (!o) return r;
|
|
3496
3505
|
const s = i.createElement("span", { ...a, ref: t, className: B("rt-Spinner", n) }, i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }), i.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
3497
|
-
return r === void 0 ? s : i.createElement(
|
|
3506
|
+
return r === void 0 ? s : i.createElement(Ie, { asChild: !0, position: "relative", align: "center", justify: "center" }, i.createElement("span", null, i.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, r), i.createElement(Ie, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, i.createElement("span", null, s))));
|
|
3498
3507
|
});
|
|
3499
|
-
|
|
3508
|
+
Mo.displayName = "Spinner";
|
|
3500
3509
|
const gl = Bn;
|
|
3501
3510
|
function Lo(e, t) {
|
|
3502
3511
|
if (e !== void 0) return typeof e == "string" ? t(e) : Object.fromEntries(Object.entries(e).map(([n, r]) => [n, t(r)]));
|
|
@@ -3517,7 +3526,7 @@ function vl(e) {
|
|
|
3517
3526
|
}
|
|
3518
3527
|
const _o = i.forwardRef((e, t) => {
|
|
3519
3528
|
const { size: n = Ln.size.default } = e, { className: r, children: o, asChild: a, color: s, radius: c, disabled: f = e.loading, ...u } = U(e, Ln, ne), l = a ? Ae : "button";
|
|
3520
|
-
return i.createElement(l, { "data-disabled": f || void 0, "data-accent-color": s, "data-radius": c, ...u, ref: t, className: B("rt-reset", "rt-BaseButton", r), disabled: f }, e.loading ? i.createElement(i.Fragment, null, i.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, o), i.createElement(gl, null, o), i.createElement(
|
|
3529
|
+
return i.createElement(l, { "data-disabled": f || void 0, "data-accent-color": s, "data-radius": c, ...u, ref: t, className: B("rt-reset", "rt-BaseButton", r), disabled: f }, e.loading ? i.createElement(i.Fragment, null, i.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, o), i.createElement(gl, null, o), i.createElement(Ie, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, i.createElement("span", null, i.createElement(Mo, { size: Lo(n, vl) })))) : o);
|
|
3521
3530
|
});
|
|
3522
3531
|
_o.displayName = "BaseButton";
|
|
3523
3532
|
const ye = i.forwardRef(({ className: e, ...t }, n) => i.createElement(_o, { ...t, ref: n, className: B("rt-Button", e) }));
|
|
@@ -3542,11 +3551,11 @@ function Al(e) {
|
|
|
3542
3551
|
return e === "left" ? "start" : e === "right" ? "end" : e;
|
|
3543
3552
|
}
|
|
3544
3553
|
const ko = i.forwardRef(({ width: e, minWidth: t, maxWidth: n, height: r, minHeight: o, maxHeight: a, ...s }, c) => {
|
|
3545
|
-
const { asChild: f, children: u, className: l, ...d } = U(s, El, la, ne), { className: m, style: g } = U({ width: e, minWidth: t, maxWidth: n, height: r, minHeight: o, maxHeight: a }, De,
|
|
3554
|
+
const { asChild: f, children: u, className: l, ...d } = U(s, El, la, ne), { className: m, style: g } = U({ width: e, minWidth: t, maxWidth: n, height: r, minHeight: o, maxHeight: a }, De, Mt), y = f ? Ae : "div";
|
|
3546
3555
|
return i.createElement(y, { ...d, ref: c, className: B("rt-Container", l) }, ul({ asChild: f, children: u }, (p) => i.createElement("div", { className: B("rt-ContainerInner", m), style: g }, p)));
|
|
3547
3556
|
});
|
|
3548
3557
|
ko.displayName = "Container";
|
|
3549
|
-
const Sl = parseFloat(i.version) >= 19 || "", Tl = { loading: { type: "boolean", default: !0 }, ...De, ...
|
|
3558
|
+
const Sl = parseFloat(i.version) >= 19 || "", Tl = { loading: { type: "boolean", default: !0 }, ...De, ...Mt }, $o = i.forwardRef((e, t) => {
|
|
3550
3559
|
const { children: n, className: r, loading: o, ...a } = U(e, Tl, ne);
|
|
3551
3560
|
if (!o) return n;
|
|
3552
3561
|
const s = i.isValidElement(n) ? Ae : "span";
|
|
@@ -3580,8 +3589,8 @@ function Wo(e, t) {
|
|
|
3580
3589
|
o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
|
|
3581
3590
|
return n;
|
|
3582
3591
|
}
|
|
3583
|
-
var
|
|
3584
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, o = Wo(e,
|
|
3592
|
+
var Il = ["color"], Ml = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
3593
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, o = Wo(e, Il);
|
|
3585
3594
|
return i.createElement("svg", Object.assign({
|
|
3586
3595
|
width: "15",
|
|
3587
3596
|
height: "15",
|
|
@@ -3613,16 +3622,16 @@ var Ml = ["color"], Il = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
|
3613
3622
|
clipRule: "evenodd"
|
|
3614
3623
|
}));
|
|
3615
3624
|
});
|
|
3616
|
-
const _l = () => /* @__PURE__ */ h.jsx(
|
|
3625
|
+
const _l = () => /* @__PURE__ */ h.jsx(Me, { pt: "20px", children: /* @__PURE__ */ h.jsx(Me, { mb: "20px", children: /* @__PURE__ */ h.jsxs(Zt, { children: [
|
|
3617
3626
|
/* @__PURE__ */ h.jsx(Qt, { children: /* @__PURE__ */ h.jsx(Ho, {}) }),
|
|
3618
3627
|
/* @__PURE__ */ h.jsx(Jt, { children: "Implement to intercept console.info, console.warn and console.error and output them here when logging enabled." })
|
|
3619
|
-
] }) }) }), jl = () => da.map((e, t) => /* @__PURE__ */ h.jsx(i.Suspense, { fallback: /* @__PURE__ */ h.jsx($o, { height: "60px" }), children: /* @__PURE__ */ h.jsx(e, {}) }, t)), kl = () => /* @__PURE__ */ h.jsxs(
|
|
3620
|
-
/* @__PURE__ */ h.jsx(
|
|
3628
|
+
] }) }) }), jl = () => da.map((e, t) => /* @__PURE__ */ h.jsx(i.Suspense, { fallback: /* @__PURE__ */ h.jsx($o, { height: "60px" }), children: /* @__PURE__ */ h.jsx(e, {}) }, t)), kl = () => /* @__PURE__ */ h.jsxs(Me, { pt: "20px", children: [
|
|
3629
|
+
/* @__PURE__ */ h.jsx(Me, { mb: "20px", children: /* @__PURE__ */ h.jsxs(Zt, { children: [
|
|
3621
3630
|
/* @__PURE__ */ h.jsx(Qt, { children: /* @__PURE__ */ h.jsx(Ho, {}) }),
|
|
3622
3631
|
/* @__PURE__ */ h.jsx(Jt, { children: "These settings will persist across page reloads in your browser." })
|
|
3623
3632
|
] }) }),
|
|
3624
3633
|
/* @__PURE__ */ h.jsx(jl, {}),
|
|
3625
|
-
/* @__PURE__ */ h.jsxs(
|
|
3634
|
+
/* @__PURE__ */ h.jsxs(Ie, { gap: "3", mt: "40px", justify: "center", children: [
|
|
3626
3635
|
/* @__PURE__ */ h.jsx(ye, { onClick: () => {
|
|
3627
3636
|
window.location.reload();
|
|
3628
3637
|
}, children: "Reload with the applied changes" }),
|
|
@@ -3631,8 +3640,8 @@ const _l = () => /* @__PURE__ */ h.jsx(Ie, { pt: "20px", children: /* @__PURE__
|
|
|
3631
3640
|
/* @__PURE__ */ h.jsxs(No, { maxWidth: "450px", children: [
|
|
3632
3641
|
/* @__PURE__ */ h.jsx(Po, { children: "Reset all and reload" }),
|
|
3633
3642
|
/* @__PURE__ */ h.jsx(Do, { size: "2", children: "This will reset all settings, disable debug mode, and reload the page." }),
|
|
3634
|
-
/* @__PURE__ */ h.jsxs(
|
|
3635
|
-
/* @__PURE__ */ h.jsx(
|
|
3643
|
+
/* @__PURE__ */ h.jsxs(Ie, { gap: "3", mt: "4", justify: "end", children: [
|
|
3644
|
+
/* @__PURE__ */ h.jsx(Io, { children: /* @__PURE__ */ h.jsx(ye, { variant: "soft", color: "gray", children: "Cancel" }) }),
|
|
3636
3645
|
/* @__PURE__ */ h.jsx(Oo, { children: /* @__PURE__ */ h.jsx(ye, { variant: "solid", color: "red", onClick: () => {
|
|
3637
3646
|
pa(), window.location.reload();
|
|
3638
3647
|
}, children: "Reset all and reload" }) })
|
|
@@ -3647,7 +3656,7 @@ const _l = () => /* @__PURE__ */ h.jsx(Ie, { pt: "20px", children: /* @__PURE__
|
|
|
3647
3656
|
/* @__PURE__ */ h.jsx(Dt, { value: "settingsTab", children: "Settings" }),
|
|
3648
3657
|
/* @__PURE__ */ h.jsx(Dt, { value: "logTab", children: "Log" }),
|
|
3649
3658
|
/* @__PURE__ */ h.jsxs(ye, { ml: "auto", variant: "soft", mt: "3px", color: "gray", onClick: e, children: [
|
|
3650
|
-
/* @__PURE__ */ h.jsx(
|
|
3659
|
+
/* @__PURE__ */ h.jsx(Ml, { width: "16", height: "16" }),
|
|
3651
3660
|
" Close"
|
|
3652
3661
|
] })
|
|
3653
3662
|
] }),
|
|
@@ -3655,7 +3664,7 @@ const _l = () => /* @__PURE__ */ h.jsx(Ie, { pt: "20px", children: /* @__PURE__
|
|
|
3655
3664
|
/* @__PURE__ */ h.jsx(Ot, { value: "logTab", children: /* @__PURE__ */ h.jsx(_l, {}) })
|
|
3656
3665
|
] }), Yl = ({
|
|
3657
3666
|
onClose: e
|
|
3658
|
-
}) => /* @__PURE__ */ h.jsx(Kt, { appearance: "dark", children: /* @__PURE__ */ h.jsx(
|
|
3667
|
+
}) => /* @__PURE__ */ h.jsx(Kt, { appearance: "dark", children: /* @__PURE__ */ h.jsx(Me, { position: "fixed", top: "0", right: "0", width: "100vw", height: "100dvh", overflowY: "auto", style: {
|
|
3659
3668
|
backgroundColor: "black"
|
|
3660
3669
|
}, children: /* @__PURE__ */ h.jsx(ko, { size: "4", px: "2", children: /* @__PURE__ */ h.jsx($l, { onClose: e }) }) }) });
|
|
3661
3670
|
export {
|