@tech_carthagos/page-builder 1.0.29 → 1.0.31
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/index.cjs.js +34 -34
- package/dist/index.es.js +682 -618
- package/dist-types/editor/SettingsPanel.d.ts.map +1 -1
- package/dist-types/index.d.ts +4 -3
- package/dist-types/index.d.ts.map +1 -1
- package/dist-types/ui/Body.d.ts +1 -1
- package/dist-types/ui/Body.d.ts.map +1 -1
- package/dist-types/user/Button.d.ts.map +1 -1
- package/dist-types/user/Columns.d.ts.map +1 -1
- package/dist-types/user/Container.d.ts.map +1 -1
- package/dist-types/user/Div.d.ts.map +1 -1
- package/dist-types/user/Divider.d.ts.map +1 -1
- package/dist-types/user/Footer.d.ts.map +1 -1
- package/dist-types/user/Heading.d.ts.map +1 -1
- package/dist-types/user/Image.d.ts.map +1 -1
- package/dist-types/user/Img.d.ts.map +1 -1
- package/dist-types/user/Link.d.ts.map +1 -1
- package/dist-types/user/Section.d.ts.map +1 -1
- package/dist-types/user/Spacer.d.ts.map +1 -1
- package/dist-types/user/Text.d.ts.map +1 -1
- package/dist-types/user/Video.d.ts.map +1 -1
- package/dist-types/user/Wrapper.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as h, Fragment as Jt, jsxs as P } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as y from "react";
|
|
3
3
|
import k, { createContext as Pn, useContext as or, forwardRef as Ui, createElement as Ga, useMemo as ke, useRef as Je, useCallback as Ya, useEffect as Tt, useState as Se, isValidElement as ao, cloneElement as Op, Fragment as Pp, Children as kp, useLayoutEffect as _p, lazy as Rp, Suspense as Ip } from "react";
|
|
4
4
|
import * as xc from "react-dom";
|
|
5
5
|
import wc from "react-dom";
|
|
@@ -127,18 +127,18 @@ const Vi = "-", Mp = (t) => {
|
|
|
127
127
|
const s = [];
|
|
128
128
|
let l = 0, c = 0, p;
|
|
129
129
|
for (let m = 0; m < u.length; m++) {
|
|
130
|
-
let
|
|
130
|
+
let v = u[m];
|
|
131
131
|
if (l === 0) {
|
|
132
|
-
if (
|
|
132
|
+
if (v === o && (n || u.slice(m, m + a) === e)) {
|
|
133
133
|
s.push(u.slice(c, m)), c = m + a;
|
|
134
134
|
continue;
|
|
135
135
|
}
|
|
136
|
-
if (
|
|
136
|
+
if (v === "/") {
|
|
137
137
|
p = m;
|
|
138
138
|
continue;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
v === "[" ? l++ : v === "]" && l--;
|
|
142
142
|
}
|
|
143
143
|
const f = s.length === 0 ? u : u.substring(c), d = f.startsWith(Ec), b = d ? f.substring(1) : f, g = p && p > c ? p - c : void 0;
|
|
144
144
|
return {
|
|
@@ -190,14 +190,14 @@ const Vi = "-", Mp = (t) => {
|
|
|
190
190
|
}
|
|
191
191
|
b = !1;
|
|
192
192
|
}
|
|
193
|
-
const m = Fp(c).join(":"),
|
|
193
|
+
const m = Fp(c).join(":"), v = p ? m + Ec : m, x = v + g;
|
|
194
194
|
if (a.includes(x))
|
|
195
195
|
continue;
|
|
196
196
|
a.push(x);
|
|
197
197
|
const w = o(g, b);
|
|
198
198
|
for (let C = 0; C < w.length; ++C) {
|
|
199
199
|
const N = w[C];
|
|
200
|
-
a.push(
|
|
200
|
+
a.push(v + N);
|
|
201
201
|
}
|
|
202
202
|
u = l + (u.length > 0 ? " " + u : u);
|
|
203
203
|
}
|
|
@@ -246,7 +246,7 @@ const ie = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
Jp.test(t) && !Zp.test(t)
|
|
248
248
|
), Ac = () => !1, lh = (t) => Qp.test(t), ch = (t) => eh.test(t), dh = () => {
|
|
249
|
-
const t = ie("colors"), e = ie("spacing"), r = ie("blur"), n = ie("brightness"), o = ie("borderColor"), a = ie("borderRadius"), i = ie("borderSpacing"), u = ie("borderWidth"), s = ie("contrast"), l = ie("grayscale"), c = ie("hueRotate"), p = ie("invert"), f = ie("gap"), d = ie("gradientColorStops"), b = ie("gradientColorStopPositions"), g = ie("inset"), m = ie("margin"),
|
|
249
|
+
const t = ie("colors"), e = ie("spacing"), r = ie("blur"), n = ie("brightness"), o = ie("borderColor"), a = ie("borderRadius"), i = ie("borderSpacing"), u = ie("borderWidth"), s = ie("contrast"), l = ie("grayscale"), c = ie("hueRotate"), p = ie("invert"), f = ie("gap"), d = ie("gradientColorStops"), b = ie("gradientColorStopPositions"), g = ie("inset"), m = ie("margin"), v = ie("opacity"), x = ie("padding"), w = ie("saturate"), C = ie("scale"), N = ie("sepia"), R = ie("skew"), I = ie("space"), L = ie("translate"), $ = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", G, e], T = () => [G, e], _ = () => ["", dt, _t], M = () => ["auto", wr, G], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], A = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", G], U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [wr, G];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
@@ -258,7 +258,7 @@ const ie = (t) => {
|
|
|
258
258
|
borderColor: [t],
|
|
259
259
|
borderRadius: ["none", "", "full", Rt, G],
|
|
260
260
|
borderSpacing: T(),
|
|
261
|
-
borderWidth:
|
|
261
|
+
borderWidth: _(),
|
|
262
262
|
contrast: fe(),
|
|
263
263
|
grayscale: j(),
|
|
264
264
|
hueRotate: fe(),
|
|
@@ -1028,7 +1028,7 @@ const ie = (t) => {
|
|
|
1028
1028
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1029
1029
|
*/
|
|
1030
1030
|
"placeholder-opacity": [{
|
|
1031
|
-
"placeholder-opacity": [
|
|
1031
|
+
"placeholder-opacity": [v]
|
|
1032
1032
|
}],
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Text Alignment
|
|
@@ -1049,7 +1049,7 @@ const ie = (t) => {
|
|
|
1049
1049
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1050
1050
|
*/
|
|
1051
1051
|
"text-opacity": [{
|
|
1052
|
-
"text-opacity": [
|
|
1052
|
+
"text-opacity": [v]
|
|
1053
1053
|
}],
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Text Decoration
|
|
@@ -1164,7 +1164,7 @@ const ie = (t) => {
|
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1165
1165
|
*/
|
|
1166
1166
|
"bg-opacity": [{
|
|
1167
|
-
"bg-opacity": [
|
|
1167
|
+
"bg-opacity": [v]
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Background Origin
|
|
@@ -1428,7 +1428,7 @@ const ie = (t) => {
|
|
|
1428
1428
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1429
1429
|
*/
|
|
1430
1430
|
"border-opacity": [{
|
|
1431
|
-
"border-opacity": [
|
|
1431
|
+
"border-opacity": [v]
|
|
1432
1432
|
}],
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Border Style
|
|
@@ -1466,7 +1466,7 @@ const ie = (t) => {
|
|
|
1466
1466
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1467
1467
|
*/
|
|
1468
1468
|
"divide-opacity": [{
|
|
1469
|
-
"divide-opacity": [
|
|
1469
|
+
"divide-opacity": [v]
|
|
1470
1470
|
}],
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Divide Style
|
|
@@ -1578,7 +1578,7 @@ const ie = (t) => {
|
|
|
1578
1578
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1579
1579
|
*/
|
|
1580
1580
|
"ring-w": [{
|
|
1581
|
-
ring:
|
|
1581
|
+
ring: _()
|
|
1582
1582
|
}],
|
|
1583
1583
|
/**
|
|
1584
1584
|
* Ring Width Inset
|
|
@@ -1597,7 +1597,7 @@ const ie = (t) => {
|
|
|
1597
1597
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1598
1598
|
*/
|
|
1599
1599
|
"ring-opacity": [{
|
|
1600
|
-
"ring-opacity": [
|
|
1600
|
+
"ring-opacity": [v]
|
|
1601
1601
|
}],
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Ring Offset Width
|
|
@@ -1633,7 +1633,7 @@ const ie = (t) => {
|
|
|
1633
1633
|
* @see https://tailwindcss.com/docs/opacity
|
|
1634
1634
|
*/
|
|
1635
1635
|
opacity: [{
|
|
1636
|
-
opacity: [
|
|
1636
|
+
opacity: [v]
|
|
1637
1637
|
}],
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Mix Blend Mode
|
|
@@ -1776,7 +1776,7 @@ const ie = (t) => {
|
|
|
1776
1776
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
1777
1777
|
*/
|
|
1778
1778
|
"backdrop-opacity": [{
|
|
1779
|
-
"backdrop-opacity": [
|
|
1779
|
+
"backdrop-opacity": [v]
|
|
1780
1780
|
}],
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Backdrop Saturate
|
|
@@ -1926,14 +1926,14 @@ const ie = (t) => {
|
|
|
1926
1926
|
* @see https://tailwindcss.com/docs/skew
|
|
1927
1927
|
*/
|
|
1928
1928
|
"skew-x": [{
|
|
1929
|
-
"skew-x": [
|
|
1929
|
+
"skew-x": [R]
|
|
1930
1930
|
}],
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Skew Y
|
|
1933
1933
|
* @see https://tailwindcss.com/docs/skew
|
|
1934
1934
|
*/
|
|
1935
1935
|
"skew-y": [{
|
|
1936
|
-
"skew-y": [
|
|
1936
|
+
"skew-y": [R]
|
|
1937
1937
|
}],
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Transform Origin
|
|
@@ -2278,25 +2278,25 @@ const ie = (t) => {
|
|
|
2278
2278
|
function Ee(...t) {
|
|
2279
2279
|
return Oc(nt(t));
|
|
2280
2280
|
}
|
|
2281
|
-
const sn =
|
|
2281
|
+
const sn = y.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Ee("rounded-lg border bg-card text-card-foreground shadow-sm", t), ...e }));
|
|
2282
2282
|
sn.displayName = "Card";
|
|
2283
|
-
const fh =
|
|
2283
|
+
const fh = y.forwardRef(
|
|
2284
2284
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Ee("flex flex-col space-y-1.5 p-6", t), ...e })
|
|
2285
2285
|
);
|
|
2286
2286
|
fh.displayName = "CardHeader";
|
|
2287
|
-
const ph =
|
|
2287
|
+
const ph = y.forwardRef(
|
|
2288
2288
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("h3", { ref: r, className: Ee("text-2xl font-semibold leading-none tracking-tight", t), ...e })
|
|
2289
2289
|
);
|
|
2290
2290
|
ph.displayName = "CardTitle";
|
|
2291
|
-
const hh =
|
|
2291
|
+
const hh = y.forwardRef(
|
|
2292
2292
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("p", { ref: r, className: Ee("text-sm text-muted-foreground", t), ...e })
|
|
2293
2293
|
);
|
|
2294
2294
|
hh.displayName = "CardDescription";
|
|
2295
|
-
const ln =
|
|
2295
|
+
const ln = y.forwardRef(
|
|
2296
2296
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Ee("p-6 pt-0", t), ...e })
|
|
2297
2297
|
);
|
|
2298
2298
|
ln.displayName = "CardContent";
|
|
2299
|
-
const mh =
|
|
2299
|
+
const mh = y.forwardRef(
|
|
2300
2300
|
({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: Ee("flex items-center p-6 pt-0", t), ...e })
|
|
2301
2301
|
);
|
|
2302
2302
|
mh.displayName = "CardFooter";
|
|
@@ -2852,9 +2852,9 @@ function qo(...t) {
|
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
2854
2854
|
function Ce(...t) {
|
|
2855
|
-
return
|
|
2855
|
+
return y.useCallback(qo(...t), t);
|
|
2856
2856
|
}
|
|
2857
|
-
var Bh = Symbol.for("react.lazy"), po =
|
|
2857
|
+
var Bh = Symbol.for("react.lazy"), po = y[" use ".trim().toString()];
|
|
2858
2858
|
function Hh(t) {
|
|
2859
2859
|
return typeof t == "object" && t !== null && "then" in t;
|
|
2860
2860
|
}
|
|
@@ -2863,13 +2863,13 @@ function $c(t) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
// @__NO_SIDE_EFFECTS__
|
|
2865
2865
|
function zh(t) {
|
|
2866
|
-
const e = /* @__PURE__ */ qh(t), r =
|
|
2866
|
+
const e = /* @__PURE__ */ qh(t), r = y.forwardRef((n, o) => {
|
|
2867
2867
|
let { children: a, ...i } = n;
|
|
2868
2868
|
$c(a) && typeof po == "function" && (a = po(a._payload));
|
|
2869
|
-
const u =
|
|
2869
|
+
const u = y.Children.toArray(a), s = u.find(Vh);
|
|
2870
2870
|
if (s) {
|
|
2871
|
-
const l = s.props.children, c = u.map((p) => p === s ?
|
|
2872
|
-
return /* @__PURE__ */ h(e, { ...i, ref: o, children:
|
|
2871
|
+
const l = s.props.children, c = u.map((p) => p === s ? y.Children.count(l) > 1 ? y.Children.only(null) : y.isValidElement(l) ? l.props.children : null : p);
|
|
2872
|
+
return /* @__PURE__ */ h(e, { ...i, ref: o, children: y.isValidElement(l) ? y.cloneElement(l, void 0, c) : null });
|
|
2873
2873
|
}
|
|
2874
2874
|
return /* @__PURE__ */ h(e, { ...i, ref: o, children: a });
|
|
2875
2875
|
});
|
|
@@ -2878,19 +2878,19 @@ function zh(t) {
|
|
|
2878
2878
|
var Fh = /* @__PURE__ */ zh("Slot");
|
|
2879
2879
|
// @__NO_SIDE_EFFECTS__
|
|
2880
2880
|
function qh(t) {
|
|
2881
|
-
const e =
|
|
2881
|
+
const e = y.forwardRef((r, n) => {
|
|
2882
2882
|
let { children: o, ...a } = r;
|
|
2883
|
-
if ($c(o) && typeof po == "function" && (o = po(o._payload)),
|
|
2883
|
+
if ($c(o) && typeof po == "function" && (o = po(o._payload)), y.isValidElement(o)) {
|
|
2884
2884
|
const i = Gh(o), u = Wh(a, o.props);
|
|
2885
|
-
return o.type !==
|
|
2885
|
+
return o.type !== y.Fragment && (u.ref = n ? qo(n, i) : i), y.cloneElement(o, u);
|
|
2886
2886
|
}
|
|
2887
|
-
return
|
|
2887
|
+
return y.Children.count(o) > 1 ? y.Children.only(null) : null;
|
|
2888
2888
|
});
|
|
2889
2889
|
return e.displayName = `${t}.SlotClone`, e;
|
|
2890
2890
|
}
|
|
2891
2891
|
var Uh = Symbol("radix.slottable");
|
|
2892
2892
|
function Vh(t) {
|
|
2893
|
-
return
|
|
2893
|
+
return y.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Uh;
|
|
2894
2894
|
}
|
|
2895
2895
|
function Wh(t, e) {
|
|
2896
2896
|
const r = { ...e };
|
|
@@ -2962,7 +2962,7 @@ const As = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Os = nt, B
|
|
|
2962
2962
|
size: "default"
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
|
-
), gt =
|
|
2965
|
+
), gt = y.forwardRef(
|
|
2966
2966
|
({ className: t, variant: e, size: r, asChild: n = !1, ...o }, a) => /* @__PURE__ */ h(n ? Fh : "button", { className: Ee(Yh({ variant: e, size: r, className: t })), ref: a, ...o })
|
|
2967
2967
|
);
|
|
2968
2968
|
gt.displayName = "Button";
|
|
@@ -3223,10 +3223,10 @@ function em() {
|
|
|
3223
3223
|
return function(u, s, l, c) {
|
|
3224
3224
|
var p = u.t, f = u.o;
|
|
3225
3225
|
Qt(u.R, function(d, b) {
|
|
3226
|
-
var g = io(p, d), m = io(f, d),
|
|
3227
|
-
if (g !== m ||
|
|
3226
|
+
var g = io(p, d), m = io(f, d), v = b ? pn(p, d) ? "replace" : r : "remove";
|
|
3227
|
+
if (g !== m || v !== "replace") {
|
|
3228
3228
|
var x = s.concat(d);
|
|
3229
|
-
l.push(
|
|
3229
|
+
l.push(v === "remove" ? { op: v, path: x } : { op: v, path: x, value: m }), c.push(v === r ? { op: "remove", path: x } : v === "remove" ? { op: r, path: x, value: e(g) } : { op: "replace", path: x, value: e(g) });
|
|
3230
3230
|
}
|
|
3231
3231
|
});
|
|
3232
3232
|
}(n, o, a, i);
|
|
@@ -3241,8 +3241,8 @@ function em() {
|
|
|
3241
3241
|
l = g[0], c = g[1];
|
|
3242
3242
|
}
|
|
3243
3243
|
for (var m = 0; m < p.length; m++) if (f[m] && d[m] !== p[m]) {
|
|
3244
|
-
var
|
|
3245
|
-
l.push({ op: "replace", path:
|
|
3244
|
+
var v = s.concat([m]);
|
|
3245
|
+
l.push({ op: "replace", path: v, value: e(d[m]) }), c.push({ op: "replace", path: v, value: e(p[m]) });
|
|
3246
3246
|
}
|
|
3247
3247
|
for (var x = p.length; x < d.length; x++) {
|
|
3248
3248
|
var w = s.concat([x]);
|
|
@@ -3473,7 +3473,7 @@ var um = function() {
|
|
|
3473
3473
|
return function(g) {
|
|
3474
3474
|
var m = this;
|
|
3475
3475
|
g === void 0 && (g = u);
|
|
3476
|
-
for (var
|
|
3476
|
+
for (var v = arguments.length, x = Array(v > 1 ? v - 1 : 0), w = 1; w < v; w++) x[w - 1] = arguments[w];
|
|
3477
3477
|
return s.produce(g, function(C) {
|
|
3478
3478
|
var N;
|
|
3479
3479
|
return (N = a).call.apply(N, [m, C].concat(x));
|
|
@@ -3871,8 +3871,8 @@ function w1(t, e, r, n, o, a) {
|
|
|
3871
3871
|
break;
|
|
3872
3872
|
}
|
|
3873
3873
|
if (d) {
|
|
3874
|
-
if (!g1(e, function(
|
|
3875
|
-
if (!v1(d, x) && (b ===
|
|
3874
|
+
if (!g1(e, function(v, x) {
|
|
3875
|
+
if (!v1(d, x) && (b === v || o(b, v, r, n, a)))
|
|
3876
3876
|
return d.push(x);
|
|
3877
3877
|
})) {
|
|
3878
3878
|
f = !1;
|
|
@@ -4083,10 +4083,10 @@ function Qy(t, e, r, n, o, a) {
|
|
|
4083
4083
|
a.set(t, e), a.set(e, t);
|
|
4084
4084
|
for (var m = i; ++p < s; ) {
|
|
4085
4085
|
f = u[p];
|
|
4086
|
-
var
|
|
4086
|
+
var v = t[f], x = e[f];
|
|
4087
4087
|
if (n)
|
|
4088
|
-
var w = i ? n(x,
|
|
4089
|
-
if (!(w === void 0 ?
|
|
4088
|
+
var w = i ? n(x, v, f, e, t, a) : n(v, x, f, t, e, a);
|
|
4089
|
+
if (!(w === void 0 ? v === x || o(v, x, r, n, a) : w)) {
|
|
4090
4090
|
g = !1;
|
|
4091
4091
|
break;
|
|
4092
4092
|
}
|
|
@@ -4365,12 +4365,12 @@ function ax(t, e, r, n) {
|
|
|
4365
4365
|
var s = Je(n);
|
|
4366
4366
|
s.current = n;
|
|
4367
4367
|
var l = Je(e), c = ke(function() {
|
|
4368
|
-
var m = u.current,
|
|
4368
|
+
var m = u.current, v = i.current, x = s.current;
|
|
4369
4369
|
return function(w, C) {
|
|
4370
|
-
var N,
|
|
4370
|
+
var N, R = r && fl(r, function() {
|
|
4371
4371
|
return w;
|
|
4372
4372
|
}, a), I = nd(Ms(w, function(S) {
|
|
4373
|
-
var T,
|
|
4373
|
+
var T, _;
|
|
4374
4374
|
switch (C.type) {
|
|
4375
4375
|
case pe.UNDO:
|
|
4376
4376
|
return a.undo(S);
|
|
@@ -4381,25 +4381,25 @@ function ax(t, e, r, n) {
|
|
|
4381
4381
|
case pe.IGNORE:
|
|
4382
4382
|
case pe.MERGE:
|
|
4383
4383
|
case pe.THROTTLE:
|
|
4384
|
-
var M, E = od(
|
|
4385
|
-
(M = o(S,
|
|
4384
|
+
var M, E = od(_ = C.payload) || ad(_) || hu(_) || id(), O = E[0], A = E.slice(1);
|
|
4385
|
+
(M = o(S, R))[O].apply(M, Te(A));
|
|
4386
4386
|
break;
|
|
4387
4387
|
default:
|
|
4388
|
-
(T = o(S,
|
|
4388
|
+
(T = o(S, R))[C.type].apply(T, Te(C.payload));
|
|
4389
4389
|
}
|
|
4390
4390
|
}), 3), L = I[0], $ = I[1], B = I[2];
|
|
4391
|
-
return N = L, x && x(L, w, { type: C.type, params: C.payload, patches: $ },
|
|
4391
|
+
return N = L, x && x(L, w, { type: C.type, params: C.payload, patches: $ }, R, function(S) {
|
|
4392
4392
|
var T = Ms(L, S);
|
|
4393
4393
|
N = T[0], $ = [].concat(Te($), Te(T[1])), B = [].concat(Te(T[2]), Te(B));
|
|
4394
|
-
}), [pe.UNDO, pe.REDO].includes(C.type) && m && (N = sm(N, m)), [].concat(Te(
|
|
4394
|
+
}), [pe.UNDO, pe.REDO].includes(C.type) && m && (N = sm(N, m)), [].concat(Te(v), [pe.UNDO, pe.REDO, pe.IGNORE, pe.CLEAR]).includes(C.type) || (C.type === pe.THROTTLE ? a.throttleAdd($, B, C.config && C.config.rate) : C.type === pe.MERGE ? a.merge($, B) : a.add($, B)), N;
|
|
4395
4395
|
};
|
|
4396
4396
|
}, [a, o, r]), p = Ya(function() {
|
|
4397
4397
|
return l.current;
|
|
4398
4398
|
}, []), f = ke(function() {
|
|
4399
4399
|
return new ix(p);
|
|
4400
4400
|
}, [p]), d = Ya(function(m) {
|
|
4401
|
-
var
|
|
4402
|
-
l.current =
|
|
4401
|
+
var v = c(l.current, m);
|
|
4402
|
+
l.current = v, f.notify();
|
|
4403
4403
|
}, [c, f]);
|
|
4404
4404
|
Tt(function() {
|
|
4405
4405
|
f.notify();
|
|
@@ -4409,10 +4409,10 @@ function ax(t, e, r, n) {
|
|
|
4409
4409
|
return l.current;
|
|
4410
4410
|
}, a) : [];
|
|
4411
4411
|
}, [a, r]), g = ke(function() {
|
|
4412
|
-
var m = Object.keys(o(null, null)),
|
|
4412
|
+
var m = Object.keys(o(null, null)), v = i.current;
|
|
4413
4413
|
return Me(Me({}, m.reduce(function(x, w) {
|
|
4414
4414
|
return x[w] = function() {
|
|
4415
|
-
for (var C = arguments.length, N = new Array(C),
|
|
4415
|
+
for (var C = arguments.length, N = new Array(C), R = 0; R < C; R++) N[R] = arguments[R];
|
|
4416
4416
|
return d({ type: w, payload: N });
|
|
4417
4417
|
}, x;
|
|
4418
4418
|
}, {})), {}, { history: { undo: function() {
|
|
@@ -4423,36 +4423,36 @@ function ax(t, e, r, n) {
|
|
|
4423
4423
|
return d({ type: pe.CLEAR });
|
|
4424
4424
|
}, throttle: function(x) {
|
|
4425
4425
|
return Me({}, m.filter(function(w) {
|
|
4426
|
-
return !
|
|
4426
|
+
return !v.includes(w);
|
|
4427
4427
|
}).reduce(function(w, C) {
|
|
4428
4428
|
return w[C] = function() {
|
|
4429
|
-
for (var N = arguments.length,
|
|
4430
|
-
return d({ type: pe.THROTTLE, payload: [C].concat(
|
|
4429
|
+
for (var N = arguments.length, R = new Array(N), I = 0; I < N; I++) R[I] = arguments[I];
|
|
4430
|
+
return d({ type: pe.THROTTLE, payload: [C].concat(R), config: { rate: x } });
|
|
4431
4431
|
}, w;
|
|
4432
4432
|
}, {}));
|
|
4433
4433
|
}, ignore: function() {
|
|
4434
4434
|
return Me({}, m.filter(function(x) {
|
|
4435
|
-
return !
|
|
4435
|
+
return !v.includes(x);
|
|
4436
4436
|
}).reduce(function(x, w) {
|
|
4437
4437
|
return x[w] = function() {
|
|
4438
|
-
for (var C = arguments.length, N = new Array(C),
|
|
4438
|
+
for (var C = arguments.length, N = new Array(C), R = 0; R < C; R++) N[R] = arguments[R];
|
|
4439
4439
|
return d({ type: pe.IGNORE, payload: [w].concat(N) });
|
|
4440
4440
|
}, x;
|
|
4441
4441
|
}, {}));
|
|
4442
4442
|
}, merge: function() {
|
|
4443
4443
|
return Me({}, m.filter(function(x) {
|
|
4444
|
-
return !
|
|
4444
|
+
return !v.includes(x);
|
|
4445
4445
|
}).reduce(function(x, w) {
|
|
4446
4446
|
return x[w] = function() {
|
|
4447
|
-
for (var C = arguments.length, N = new Array(C),
|
|
4447
|
+
for (var C = arguments.length, N = new Array(C), R = 0; R < C; R++) N[R] = arguments[R];
|
|
4448
4448
|
return d({ type: pe.MERGE, payload: [w].concat(N) });
|
|
4449
4449
|
}, x;
|
|
4450
4450
|
}, {}));
|
|
4451
4451
|
} } });
|
|
4452
4452
|
}, [d, o]);
|
|
4453
4453
|
return ke(function() {
|
|
4454
|
-
return { getState: p, subscribe: function(m,
|
|
4455
|
-
return f.subscribe(m,
|
|
4454
|
+
return { getState: p, subscribe: function(m, v, x) {
|
|
4455
|
+
return f.subscribe(m, v, x);
|
|
4456
4456
|
}, actions: g, query: b, history: a };
|
|
4457
4457
|
}, [g, b, f, p, a]);
|
|
4458
4458
|
}
|
|
@@ -5580,8 +5580,8 @@ const Ix = () => {
|
|
|
5580
5580
|
(function(d, b) {
|
|
5581
5581
|
Object.keys(d.events).forEach(function(g) {
|
|
5582
5582
|
var m = d.events[g];
|
|
5583
|
-
m && m.has && m.has(b) && (d.events[g] = new Set(Array.from(m).filter(function(
|
|
5584
|
-
return b !==
|
|
5583
|
+
m && m.has && m.has(b) && (d.events[g] = new Set(Array.from(m).filter(function(v) {
|
|
5584
|
+
return b !== v;
|
|
5585
5585
|
})));
|
|
5586
5586
|
});
|
|
5587
5587
|
})(r, s), delete r.nodes[s];
|
|
@@ -5612,11 +5612,11 @@ const Ix = () => {
|
|
|
5612
5612
|
}, move: function(u, s, l) {
|
|
5613
5613
|
var c = bt(r.nodes, u, { existOnly: !0 }), p = r.nodes[s], f = /* @__PURE__ */ new Set();
|
|
5614
5614
|
c.forEach(function(d, b) {
|
|
5615
|
-
var g = d.node, m = g.id,
|
|
5615
|
+
var g = d.node, m = g.id, v = g.data.parent;
|
|
5616
5616
|
n.node(s).isDroppable([m], function(C) {
|
|
5617
5617
|
throw new Error(C);
|
|
5618
|
-
}), r.options.onBeforeMoveEnd(g, p, r.nodes[
|
|
5619
|
-
var x = r.nodes[
|
|
5618
|
+
}), r.options.onBeforeMoveEnd(g, p, r.nodes[v]);
|
|
5619
|
+
var x = r.nodes[v].data.nodes;
|
|
5620
5620
|
f.add(x);
|
|
5621
5621
|
var w = x.indexOf(m);
|
|
5622
5622
|
x[w] = "$$", p.data.nodes.splice(l + b, 0, m), r.nodes[m].data.parent = s;
|
|
@@ -5685,7 +5685,7 @@ const Ix = () => {
|
|
|
5685
5685
|
});
|
|
5686
5686
|
} }, Lx = (t, e) => ax(Mx, { ...Cl, options: { ...Cl.options, ...t } }, Cd, e), Td = ({ children: t, ...e }) => {
|
|
5687
5687
|
e.resolver !== void 0 && ae(typeof e.resolver == "object" && !Array.isArray(e.resolver) && e.resolver !== null, Q2);
|
|
5688
|
-
const r =
|
|
5688
|
+
const r = y.useRef(e), n = Lx(r.current, (o, a, i, u, s) => {
|
|
5689
5689
|
if (!i) return;
|
|
5690
5690
|
const { patches: l, ...c } = i;
|
|
5691
5691
|
for (let p = 0; p < l.length; p++) {
|
|
@@ -5698,15 +5698,15 @@ const Ix = () => {
|
|
|
5698
5698
|
}
|
|
5699
5699
|
}
|
|
5700
5700
|
});
|
|
5701
|
-
return
|
|
5701
|
+
return y.useEffect(() => {
|
|
5702
5702
|
n && e.enabled !== void 0 && n.query.getOptions().enabled !== e.enabled && n.actions.setOptions((o) => {
|
|
5703
5703
|
o.enabled = e.enabled;
|
|
5704
5704
|
});
|
|
5705
|
-
}, [n, e.enabled]),
|
|
5705
|
+
}, [n, e.enabled]), y.useEffect(() => {
|
|
5706
5706
|
n.subscribe((o) => ({ json: n.query.serialize() }), () => {
|
|
5707
5707
|
n.query.getOptions().onNodesChange(n.query);
|
|
5708
5708
|
});
|
|
5709
|
-
}, [n]), n ?
|
|
5709
|
+
}, [n]), n ? y.createElement(vu.Provider, { value: n }, y.createElement(Dx, null, t)) : null;
|
|
5710
5710
|
}, Nd = Pn("desktop"), Ad = ({ value: t, children: e }) => /* @__PURE__ */ h(Nd.Provider, { value: t, children: e }), Vr = () => or(Nd), Ue = ["mobile", "tablet", "small", "desktop"], It = (t, e, r) => {
|
|
5711
5711
|
if (typeof t != "object" || t === null)
|
|
5712
5712
|
return t ?? r;
|
|
@@ -5734,17 +5734,17 @@ function le(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
5734
5734
|
function ur(t, e = []) {
|
|
5735
5735
|
let r = [];
|
|
5736
5736
|
function n(a, i) {
|
|
5737
|
-
const u =
|
|
5737
|
+
const u = y.createContext(i), s = r.length;
|
|
5738
5738
|
r = [...r, i];
|
|
5739
5739
|
const l = (p) => {
|
|
5740
|
-
var
|
|
5741
|
-
const { scope: f, children: d, ...b } = p, g = ((
|
|
5740
|
+
var v;
|
|
5741
|
+
const { scope: f, children: d, ...b } = p, g = ((v = f == null ? void 0 : f[t]) == null ? void 0 : v[s]) || u, m = y.useMemo(() => b, Object.values(b));
|
|
5742
5742
|
return /* @__PURE__ */ h(g.Provider, { value: m, children: d });
|
|
5743
5743
|
};
|
|
5744
5744
|
l.displayName = a + "Provider";
|
|
5745
5745
|
function c(p, f) {
|
|
5746
5746
|
var g;
|
|
5747
|
-
const d = ((g = f == null ? void 0 : f[t]) == null ? void 0 : g[s]) || u, b =
|
|
5747
|
+
const d = ((g = f == null ? void 0 : f[t]) == null ? void 0 : g[s]) || u, b = y.useContext(d);
|
|
5748
5748
|
if (b) return b;
|
|
5749
5749
|
if (i !== void 0) return i;
|
|
5750
5750
|
throw new Error(`\`${p}\` must be used within \`${a}\``);
|
|
@@ -5752,10 +5752,10 @@ function ur(t, e = []) {
|
|
|
5752
5752
|
return [l, c];
|
|
5753
5753
|
}
|
|
5754
5754
|
const o = () => {
|
|
5755
|
-
const a = r.map((i) =>
|
|
5755
|
+
const a = r.map((i) => y.createContext(i));
|
|
5756
5756
|
return function(u) {
|
|
5757
5757
|
const s = (u == null ? void 0 : u[t]) || a;
|
|
5758
|
-
return
|
|
5758
|
+
return y.useMemo(
|
|
5759
5759
|
() => ({ [`__scope${t}`]: { ...u, [t]: s } }),
|
|
5760
5760
|
[u, s]
|
|
5761
5761
|
);
|
|
@@ -5776,18 +5776,18 @@ function jx(...t) {
|
|
|
5776
5776
|
const p = s(a)[`__scope${l}`];
|
|
5777
5777
|
return { ...u, ...p };
|
|
5778
5778
|
}, {});
|
|
5779
|
-
return
|
|
5779
|
+
return y.useMemo(() => ({ [`__scope${e.scopeName}`]: i }), [i]);
|
|
5780
5780
|
};
|
|
5781
5781
|
};
|
|
5782
5782
|
return r.scopeName = e.scopeName, r;
|
|
5783
5783
|
}
|
|
5784
5784
|
// @__NO_SIDE_EFFECTS__
|
|
5785
5785
|
function $x(t) {
|
|
5786
|
-
const e = /* @__PURE__ */ Bx(t), r =
|
|
5787
|
-
const { children: a, ...i } = n, u =
|
|
5786
|
+
const e = /* @__PURE__ */ Bx(t), r = y.forwardRef((n, o) => {
|
|
5787
|
+
const { children: a, ...i } = n, u = y.Children.toArray(a), s = u.find(zx);
|
|
5788
5788
|
if (s) {
|
|
5789
|
-
const l = s.props.children, c = u.map((p) => p === s ?
|
|
5790
|
-
return /* @__PURE__ */ h(e, { ...i, ref: o, children:
|
|
5789
|
+
const l = s.props.children, c = u.map((p) => p === s ? y.Children.count(l) > 1 ? y.Children.only(null) : y.isValidElement(l) ? l.props.children : null : p);
|
|
5790
|
+
return /* @__PURE__ */ h(e, { ...i, ref: o, children: y.isValidElement(l) ? y.cloneElement(l, void 0, c) : null });
|
|
5791
5791
|
}
|
|
5792
5792
|
return /* @__PURE__ */ h(e, { ...i, ref: o, children: a });
|
|
5793
5793
|
});
|
|
@@ -5795,19 +5795,19 @@ function $x(t) {
|
|
|
5795
5795
|
}
|
|
5796
5796
|
// @__NO_SIDE_EFFECTS__
|
|
5797
5797
|
function Bx(t) {
|
|
5798
|
-
const e =
|
|
5798
|
+
const e = y.forwardRef((r, n) => {
|
|
5799
5799
|
const { children: o, ...a } = r;
|
|
5800
|
-
if (
|
|
5800
|
+
if (y.isValidElement(o)) {
|
|
5801
5801
|
const i = qx(o), u = Fx(a, o.props);
|
|
5802
|
-
return o.type !==
|
|
5802
|
+
return o.type !== y.Fragment && (u.ref = n ? qo(n, i) : i), y.cloneElement(o, u);
|
|
5803
5803
|
}
|
|
5804
|
-
return
|
|
5804
|
+
return y.Children.count(o) > 1 ? y.Children.only(null) : null;
|
|
5805
5805
|
});
|
|
5806
5806
|
return e.displayName = `${t}.SlotClone`, e;
|
|
5807
5807
|
}
|
|
5808
5808
|
var Hx = Symbol("radix.slottable");
|
|
5809
5809
|
function zx(t) {
|
|
5810
|
-
return
|
|
5810
|
+
return y.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Hx;
|
|
5811
5811
|
}
|
|
5812
5812
|
function Fx(t, e) {
|
|
5813
5813
|
const r = { ...e };
|
|
@@ -5844,7 +5844,7 @@ var Ux = [
|
|
|
5844
5844
|
"svg",
|
|
5845
5845
|
"ul"
|
|
5846
5846
|
], be = Ux.reduce((t, e) => {
|
|
5847
|
-
const r = /* @__PURE__ */ $x(`Primitive.${e}`), n =
|
|
5847
|
+
const r = /* @__PURE__ */ $x(`Primitive.${e}`), n = y.forwardRef((o, a) => {
|
|
5848
5848
|
const { asChild: i, ...u } = o, s = i ? r : e;
|
|
5849
5849
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(s, { ...u, ref: a });
|
|
5850
5850
|
});
|
|
@@ -5854,28 +5854,28 @@ function Vx(t, e) {
|
|
|
5854
5854
|
t && xc.flushSync(() => t.dispatchEvent(e));
|
|
5855
5855
|
}
|
|
5856
5856
|
function Le(t) {
|
|
5857
|
-
const e =
|
|
5858
|
-
return
|
|
5857
|
+
const e = y.useRef(t);
|
|
5858
|
+
return y.useEffect(() => {
|
|
5859
5859
|
e.current = t;
|
|
5860
|
-
}),
|
|
5860
|
+
}), y.useMemo(() => (...r) => {
|
|
5861
5861
|
var n;
|
|
5862
5862
|
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
5863
5863
|
}, []);
|
|
5864
5864
|
}
|
|
5865
5865
|
function Wx(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
5866
5866
|
const r = Le(t);
|
|
5867
|
-
|
|
5867
|
+
y.useEffect(() => {
|
|
5868
5868
|
const n = (o) => {
|
|
5869
5869
|
o.key === "Escape" && r(o);
|
|
5870
5870
|
};
|
|
5871
5871
|
return e.addEventListener("keydown", n, { capture: !0 }), () => e.removeEventListener("keydown", n, { capture: !0 });
|
|
5872
5872
|
}, [r, e]);
|
|
5873
5873
|
}
|
|
5874
|
-
var Gx = "DismissableLayer", gi = "dismissableLayer.update", Yx = "dismissableLayer.pointerDownOutside", Xx = "dismissableLayer.focusOutside", El, Od =
|
|
5874
|
+
var Gx = "DismissableLayer", gi = "dismissableLayer.update", Yx = "dismissableLayer.pointerDownOutside", Xx = "dismissableLayer.focusOutside", El, Od = y.createContext({
|
|
5875
5875
|
layers: /* @__PURE__ */ new Set(),
|
|
5876
5876
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5877
5877
|
branches: /* @__PURE__ */ new Set()
|
|
5878
|
-
}), Pd =
|
|
5878
|
+
}), Pd = y.forwardRef(
|
|
5879
5879
|
(t, e) => {
|
|
5880
5880
|
const {
|
|
5881
5881
|
disableOutsidePointerEvents: r = !1,
|
|
@@ -5885,23 +5885,23 @@ var Gx = "DismissableLayer", gi = "dismissableLayer.update", Yx = "dismissableLa
|
|
|
5885
5885
|
onInteractOutside: i,
|
|
5886
5886
|
onDismiss: u,
|
|
5887
5887
|
...s
|
|
5888
|
-
} = t, l =
|
|
5888
|
+
} = t, l = y.useContext(Od), [c, p] = y.useState(null), f = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = y.useState({}), b = Ce(e, (I) => p(I)), g = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = g.indexOf(m), x = c ? g.indexOf(c) : -1, w = l.layersWithOutsidePointerEventsDisabled.size > 0, C = x >= v, N = Zx((I) => {
|
|
5889
5889
|
const L = I.target, $ = [...l.branches].some((B) => B.contains(L));
|
|
5890
5890
|
!C || $ || (o == null || o(I), i == null || i(I), I.defaultPrevented || u == null || u());
|
|
5891
|
-
}, f),
|
|
5891
|
+
}, f), R = Qx((I) => {
|
|
5892
5892
|
const L = I.target;
|
|
5893
5893
|
[...l.branches].some((B) => B.contains(L)) || (a == null || a(I), i == null || i(I), I.defaultPrevented || u == null || u());
|
|
5894
5894
|
}, f);
|
|
5895
5895
|
return Wx((I) => {
|
|
5896
5896
|
x === l.layers.size - 1 && (n == null || n(I), !I.defaultPrevented && u && (I.preventDefault(), u()));
|
|
5897
|
-
}, f),
|
|
5897
|
+
}, f), y.useEffect(() => {
|
|
5898
5898
|
if (c)
|
|
5899
5899
|
return r && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (El = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(c)), l.layers.add(c), Tl(), () => {
|
|
5900
5900
|
r && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = El);
|
|
5901
5901
|
};
|
|
5902
|
-
}, [c, f, r, l]),
|
|
5902
|
+
}, [c, f, r, l]), y.useEffect(() => () => {
|
|
5903
5903
|
c && (l.layers.delete(c), l.layersWithOutsidePointerEventsDisabled.delete(c), Tl());
|
|
5904
|
-
}, [c, l]),
|
|
5904
|
+
}, [c, l]), y.useEffect(() => {
|
|
5905
5905
|
const I = () => d({});
|
|
5906
5906
|
return document.addEventListener(gi, I), () => document.removeEventListener(gi, I);
|
|
5907
5907
|
}, []), /* @__PURE__ */ h(
|
|
@@ -5913,8 +5913,8 @@ var Gx = "DismissableLayer", gi = "dismissableLayer.update", Yx = "dismissableLa
|
|
|
5913
5913
|
pointerEvents: w ? C ? "auto" : "none" : void 0,
|
|
5914
5914
|
...t.style
|
|
5915
5915
|
},
|
|
5916
|
-
onFocusCapture: le(t.onFocusCapture,
|
|
5917
|
-
onBlurCapture: le(t.onBlurCapture,
|
|
5916
|
+
onFocusCapture: le(t.onFocusCapture, R.onFocusCapture),
|
|
5917
|
+
onBlurCapture: le(t.onBlurCapture, R.onBlurCapture),
|
|
5918
5918
|
onPointerDownCapture: le(
|
|
5919
5919
|
t.onPointerDownCapture,
|
|
5920
5920
|
N.onPointerDownCapture
|
|
@@ -5924,9 +5924,9 @@ var Gx = "DismissableLayer", gi = "dismissableLayer.update", Yx = "dismissableLa
|
|
|
5924
5924
|
}
|
|
5925
5925
|
);
|
|
5926
5926
|
Pd.displayName = Gx;
|
|
5927
|
-
var Kx = "DismissableLayerBranch", Jx =
|
|
5928
|
-
const r =
|
|
5929
|
-
return
|
|
5927
|
+
var Kx = "DismissableLayerBranch", Jx = y.forwardRef((t, e) => {
|
|
5928
|
+
const r = y.useContext(Od), n = y.useRef(null), o = Ce(e, n);
|
|
5929
|
+
return y.useEffect(() => {
|
|
5930
5930
|
const a = n.current;
|
|
5931
5931
|
if (a)
|
|
5932
5932
|
return r.branches.add(a), () => {
|
|
@@ -5936,9 +5936,9 @@ var Kx = "DismissableLayerBranch", Jx = v.forwardRef((t, e) => {
|
|
|
5936
5936
|
});
|
|
5937
5937
|
Jx.displayName = Kx;
|
|
5938
5938
|
function Zx(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
5939
|
-
const r = Le(t), n =
|
|
5939
|
+
const r = Le(t), n = y.useRef(!1), o = y.useRef(() => {
|
|
5940
5940
|
});
|
|
5941
|
-
return
|
|
5941
|
+
return y.useEffect(() => {
|
|
5942
5942
|
const a = (u) => {
|
|
5943
5943
|
if (u.target && !n.current) {
|
|
5944
5944
|
let s = function() {
|
|
@@ -5966,8 +5966,8 @@ function Zx(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5966
5966
|
};
|
|
5967
5967
|
}
|
|
5968
5968
|
function Qx(t, e = globalThis == null ? void 0 : globalThis.document) {
|
|
5969
|
-
const r = Le(t), n =
|
|
5970
|
-
return
|
|
5969
|
+
const r = Le(t), n = y.useRef(!1);
|
|
5970
|
+
return y.useEffect(() => {
|
|
5971
5971
|
const o = (a) => {
|
|
5972
5972
|
a.target && !n.current && kd(Xx, r, { originalEvent: a }, {
|
|
5973
5973
|
discrete: !1
|
|
@@ -5987,11 +5987,11 @@ function kd(t, e, r, { discrete: n }) {
|
|
|
5987
5987
|
const o = r.originalEvent.target, a = new CustomEvent(t, { bubbles: !1, cancelable: !0, detail: r });
|
|
5988
5988
|
e && o.addEventListener(t, e, { once: !0 }), n ? Vx(o, a) : o.dispatchEvent(a);
|
|
5989
5989
|
}
|
|
5990
|
-
var $t = globalThis != null && globalThis.document ?
|
|
5991
|
-
}, ew =
|
|
5990
|
+
var $t = globalThis != null && globalThis.document ? y.useLayoutEffect : () => {
|
|
5991
|
+
}, ew = y[" useId ".trim().toString()] || (() => {
|
|
5992
5992
|
}), tw = 0;
|
|
5993
5993
|
function _d(t) {
|
|
5994
|
-
const [e, r] =
|
|
5994
|
+
const [e, r] = y.useState(ew());
|
|
5995
5995
|
return $t(() => {
|
|
5996
5996
|
r((n) => n ?? String(tw++));
|
|
5997
5997
|
}, [t]), e ? `radix-${e}` : "";
|
|
@@ -6168,13 +6168,13 @@ const pw = async (t, e, r) => {
|
|
|
6168
6168
|
for (let g = 0; g < u.length; g++) {
|
|
6169
6169
|
const {
|
|
6170
6170
|
name: m,
|
|
6171
|
-
fn:
|
|
6171
|
+
fn: v
|
|
6172
6172
|
} = u[g], {
|
|
6173
6173
|
x,
|
|
6174
6174
|
y: w,
|
|
6175
6175
|
data: C,
|
|
6176
6176
|
reset: N
|
|
6177
|
-
} = await
|
|
6177
|
+
} = await v({
|
|
6178
6178
|
x: c,
|
|
6179
6179
|
y: p,
|
|
6180
6180
|
initialPlacement: n,
|
|
@@ -6227,7 +6227,7 @@ async function gn(t, e) {
|
|
|
6227
6227
|
elementContext: p = "floating",
|
|
6228
6228
|
altBoundary: f = !1,
|
|
6229
6229
|
padding: d = 0
|
|
6230
|
-
} = wt(e, t), b = Rd(d), m = u[f ? p === "floating" ? "reference" : "floating" : p],
|
|
6230
|
+
} = wt(e, t), b = Rd(d), m = u[f ? p === "floating" ? "reference" : "floating" : p], v = Ao(await a.getClippingRect({
|
|
6231
6231
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(m))) == null || r ? m : m.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(u.floating)),
|
|
6232
6232
|
boundary: l,
|
|
6233
6233
|
rootBoundary: c,
|
|
@@ -6250,10 +6250,10 @@ async function gn(t, e) {
|
|
|
6250
6250
|
strategy: s
|
|
6251
6251
|
}) : x);
|
|
6252
6252
|
return {
|
|
6253
|
-
top: (
|
|
6254
|
-
bottom: (N.bottom -
|
|
6255
|
-
left: (
|
|
6256
|
-
right: (N.right -
|
|
6253
|
+
top: (v.top - N.top + b.top) / C.y,
|
|
6254
|
+
bottom: (N.bottom - v.bottom + b.bottom) / C.y,
|
|
6255
|
+
left: (v.left - N.left + b.left) / C.x,
|
|
6256
|
+
right: (N.right - v.right + b.right) / C.x
|
|
6257
6257
|
};
|
|
6258
6258
|
}
|
|
6259
6259
|
const hw = (t) => ({
|
|
@@ -6277,10 +6277,10 @@ const hw = (t) => ({
|
|
|
6277
6277
|
const p = Rd(c), f = {
|
|
6278
6278
|
x: r,
|
|
6279
6279
|
y: n
|
|
6280
|
-
}, d = Su(o), b = wu(d), g = await i.getDimensions(l), m = d === "y",
|
|
6281
|
-
let I =
|
|
6282
|
-
(!I || !await (i.isElement == null ? void 0 : i.isElement(
|
|
6283
|
-
const L = C / 2 - N / 2, $ = I / 2 - g[b] / 2 - 1, B = Bt(p[
|
|
6280
|
+
}, d = Su(o), b = wu(d), g = await i.getDimensions(l), m = d === "y", v = m ? "top" : "left", x = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[d] - f[d] - a.floating[b], N = f[d] - a.reference[d], R = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
6281
|
+
let I = R ? R[w] : 0;
|
|
6282
|
+
(!I || !await (i.isElement == null ? void 0 : i.isElement(R))) && (I = u.floating[w] || a.floating[b]);
|
|
6283
|
+
const L = C / 2 - N / 2, $ = I / 2 - g[b] / 2 - 1, B = Bt(p[v], $), S = Bt(p[x], $), T = B, _ = I - g[b] - S, M = I / 2 - g[b] / 2 + L, E = vi(T, M, _), O = !s.arrow && Wr(o) != null && M !== E && a.reference[b] / 2 - (M < T ? B : S) - g[b] / 2 < 0, A = O ? M < T ? M - T : M - _ : 0;
|
|
6284
6284
|
return {
|
|
6285
6285
|
[d]: f[d] + A,
|
|
6286
6286
|
data: {
|
|
@@ -6317,11 +6317,11 @@ const hw = (t) => ({
|
|
|
6317
6317
|
} = wt(t, e);
|
|
6318
6318
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
6319
6319
|
return {};
|
|
6320
|
-
const
|
|
6321
|
-
!f &&
|
|
6320
|
+
const v = St(o), x = Ze(u), w = St(u) === u, C = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), N = f || (w || !g ? [No(u)] : uw(u)), R = b !== "none";
|
|
6321
|
+
!f && R && N.push(...dw(u, g, b, C));
|
|
6322
6322
|
const I = [u, ...N], L = await gn(e, m), $ = [];
|
|
6323
6323
|
let B = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
6324
|
-
if (c && $.push(L[
|
|
6324
|
+
if (c && $.push(L[v]), p) {
|
|
6325
6325
|
const M = iw(o, i, C);
|
|
6326
6326
|
$.push(L[M[0]], L[M[1]]);
|
|
6327
6327
|
}
|
|
@@ -6347,16 +6347,16 @@ const hw = (t) => ({
|
|
|
6347
6347
|
if (!O)
|
|
6348
6348
|
switch (d) {
|
|
6349
6349
|
case "bestFit": {
|
|
6350
|
-
var
|
|
6351
|
-
const A = (
|
|
6352
|
-
if (
|
|
6350
|
+
var _;
|
|
6351
|
+
const A = (_ = B.filter((D) => {
|
|
6352
|
+
if (R) {
|
|
6353
6353
|
const j = Ze(D.placement);
|
|
6354
6354
|
return j === x || // Create a bias to the `y` side axis due to horizontal
|
|
6355
6355
|
// reading directions favoring greater width.
|
|
6356
6356
|
j === "y";
|
|
6357
6357
|
}
|
|
6358
6358
|
return !0;
|
|
6359
|
-
}).map((D) => [D.placement, D.overflows.filter((j) => j > 0).reduce((j, U) => j + U, 0)]).sort((D, j) => D[1] - j[1])[0]) == null ? void 0 :
|
|
6359
|
+
}).map((D) => [D.placement, D.overflows.filter((j) => j > 0).reduce((j, U) => j + U, 0)]).sort((D, j) => D[1] - j[1])[0]) == null ? void 0 : _[0];
|
|
6360
6360
|
A && (O = A);
|
|
6361
6361
|
break;
|
|
6362
6362
|
}
|
|
@@ -6492,11 +6492,11 @@ const vw = function(t) {
|
|
|
6492
6492
|
limiter: u = {
|
|
6493
6493
|
fn: (m) => {
|
|
6494
6494
|
let {
|
|
6495
|
-
x:
|
|
6495
|
+
x: v,
|
|
6496
6496
|
y: x
|
|
6497
6497
|
} = m;
|
|
6498
6498
|
return {
|
|
6499
|
-
x:
|
|
6499
|
+
x: v,
|
|
6500
6500
|
y: x
|
|
6501
6501
|
};
|
|
6502
6502
|
}
|
|
@@ -6508,11 +6508,11 @@ const vw = function(t) {
|
|
|
6508
6508
|
}, c = await gn(e, s), p = Ze(St(o)), f = xu(p);
|
|
6509
6509
|
let d = l[f], b = l[p];
|
|
6510
6510
|
if (a) {
|
|
6511
|
-
const m = f === "y" ? "top" : "left",
|
|
6511
|
+
const m = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", x = d + c[m], w = d - c[v];
|
|
6512
6512
|
d = vi(x, d, w);
|
|
6513
6513
|
}
|
|
6514
6514
|
if (i) {
|
|
6515
|
-
const m = p === "y" ? "top" : "left",
|
|
6515
|
+
const m = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", x = b + c[m], w = b - c[v];
|
|
6516
6516
|
b = vi(x, b, w);
|
|
6517
6517
|
}
|
|
6518
6518
|
const g = u.fn({
|
|
@@ -6565,9 +6565,9 @@ const vw = function(t) {
|
|
|
6565
6565
|
d < C ? d = C : d > N && (d = N);
|
|
6566
6566
|
}
|
|
6567
6567
|
if (l) {
|
|
6568
|
-
var
|
|
6569
|
-
const w = f === "y" ? "width" : "height", C = Id.has(St(o)), N = a.reference[p] - a.floating[w] + (C && ((
|
|
6570
|
-
b < N ? b = N : b >
|
|
6568
|
+
var v, x;
|
|
6569
|
+
const w = f === "y" ? "width" : "height", C = Id.has(St(o)), N = a.reference[p] - a.floating[w] + (C && ((v = i.offset) == null ? void 0 : v[p]) || 0) + (C ? 0 : m.crossAxis), R = a.reference[p] + a.reference[w] + (C ? 0 : ((x = i.offset) == null ? void 0 : x[p]) || 0) - (C ? m.crossAxis : 0);
|
|
6570
|
+
b < N ? b = N : b > R && (b = R);
|
|
6571
6571
|
}
|
|
6572
6572
|
return {
|
|
6573
6573
|
[f]: d,
|
|
@@ -6594,13 +6594,13 @@ const vw = function(t) {
|
|
|
6594
6594
|
width: b,
|
|
6595
6595
|
height: g
|
|
6596
6596
|
} = a.floating;
|
|
6597
|
-
let m,
|
|
6598
|
-
p === "top" || p === "bottom" ? (m = p,
|
|
6599
|
-
const x = g - c.top - c.bottom, w = b - c.left - c.right, C = Bt(g - c[m], x), N = Bt(b - c[
|
|
6597
|
+
let m, v;
|
|
6598
|
+
p === "top" || p === "bottom" ? (m = p, v = f === (await (i.isRTL == null ? void 0 : i.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (v = p, m = f === "end" ? "top" : "bottom");
|
|
6599
|
+
const x = g - c.top - c.bottom, w = b - c.left - c.right, C = Bt(g - c[m], x), N = Bt(b - c[v], w), R = !e.middlewareData.shift;
|
|
6600
6600
|
let I = C, L = N;
|
|
6601
|
-
if ((r = e.middlewareData.shift) != null && r.enabled.x && (L = w), (n = e.middlewareData.shift) != null && n.enabled.y && (I = x),
|
|
6602
|
-
const B = _e(c.left, 0), S = _e(c.right, 0), T = _e(c.top, 0),
|
|
6603
|
-
d ? L = b - 2 * (B !== 0 || S !== 0 ? B + S : _e(c.left, c.right)) : I = g - 2 * (T !== 0 ||
|
|
6601
|
+
if ((r = e.middlewareData.shift) != null && r.enabled.x && (L = w), (n = e.middlewareData.shift) != null && n.enabled.y && (I = x), R && !f) {
|
|
6602
|
+
const B = _e(c.left, 0), S = _e(c.right, 0), T = _e(c.top, 0), _ = _e(c.bottom, 0);
|
|
6603
|
+
d ? L = b - 2 * (B !== 0 || S !== 0 ? B + S : _e(c.left, c.right)) : I = g - 2 * (T !== 0 || _ !== 0 ? T + _ : _e(c.top, c.bottom));
|
|
6604
6604
|
}
|
|
6605
6605
|
await s({
|
|
6606
6606
|
...e,
|
|
@@ -6780,7 +6780,7 @@ function er(t, e, r, n) {
|
|
|
6780
6780
|
const f = Re(a), d = n && Ve(n) ? Re(n) : n;
|
|
6781
6781
|
let b = f, g = xi(b);
|
|
6782
6782
|
for (; g && n && d !== b; ) {
|
|
6783
|
-
const m = Cr(g),
|
|
6783
|
+
const m = Cr(g), v = g.getBoundingClientRect(), x = We(g), w = v.left + (g.clientLeft + parseFloat(x.paddingLeft)) * m.x, C = v.top + (g.clientTop + parseFloat(x.paddingTop)) * m.y;
|
|
6784
6784
|
s *= m.x, l *= m.y, c *= m.x, p *= m.y, s += w, l += C, b = Re(g), g = xi(b);
|
|
6785
6785
|
}
|
|
6786
6786
|
}
|
|
@@ -7038,13 +7038,13 @@ function Ww(t, e) {
|
|
|
7038
7038
|
} = l;
|
|
7039
7039
|
if (u || e(), !f || !d)
|
|
7040
7040
|
return;
|
|
7041
|
-
const b = Wn(p), g = Wn(o.clientWidth - (c + f)), m = Wn(o.clientHeight - (p + d)),
|
|
7042
|
-
rootMargin: -b + "px " + -g + "px " + -m + "px " + -
|
|
7041
|
+
const b = Wn(p), g = Wn(o.clientWidth - (c + f)), m = Wn(o.clientHeight - (p + d)), v = Wn(c), w = {
|
|
7042
|
+
rootMargin: -b + "px " + -g + "px " + -m + "px " + -v + "px",
|
|
7043
7043
|
threshold: _e(0, Bt(1, s)) || 1
|
|
7044
7044
|
};
|
|
7045
7045
|
let C = !0;
|
|
7046
|
-
function N(
|
|
7047
|
-
const I =
|
|
7046
|
+
function N(R) {
|
|
7047
|
+
const I = R[0].intersectionRatio;
|
|
7048
7048
|
if (I !== s) {
|
|
7049
7049
|
if (!C)
|
|
7050
7050
|
return i();
|
|
@@ -7076,15 +7076,15 @@ function Gw(t, e, r, n) {
|
|
|
7076
7076
|
layoutShift: u = typeof IntersectionObserver == "function",
|
|
7077
7077
|
animationFrame: s = !1
|
|
7078
7078
|
} = n, l = Tu(t), c = o || a ? [...l ? vn(l) : [], ...vn(e)] : [];
|
|
7079
|
-
c.forEach((
|
|
7080
|
-
o &&
|
|
7079
|
+
c.forEach((v) => {
|
|
7080
|
+
o && v.addEventListener("scroll", r, {
|
|
7081
7081
|
passive: !0
|
|
7082
|
-
}), a &&
|
|
7082
|
+
}), a && v.addEventListener("resize", r);
|
|
7083
7083
|
});
|
|
7084
7084
|
const p = l && u ? Ww(l, r) : null;
|
|
7085
7085
|
let f = -1, d = null;
|
|
7086
|
-
i && (d = new ResizeObserver((
|
|
7087
|
-
let [x] =
|
|
7086
|
+
i && (d = new ResizeObserver((v) => {
|
|
7087
|
+
let [x] = v;
|
|
7088
7088
|
x && x.target === l && d && (d.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
7089
7089
|
var w;
|
|
7090
7090
|
(w = d) == null || w.observe(e);
|
|
@@ -7093,14 +7093,14 @@ function Gw(t, e, r, n) {
|
|
|
7093
7093
|
let b, g = s ? er(t) : null;
|
|
7094
7094
|
s && m();
|
|
7095
7095
|
function m() {
|
|
7096
|
-
const
|
|
7097
|
-
g && !zd(g,
|
|
7096
|
+
const v = er(t);
|
|
7097
|
+
g && !zd(g, v) && r(), g = v, b = requestAnimationFrame(m);
|
|
7098
7098
|
}
|
|
7099
7099
|
return r(), () => {
|
|
7100
|
-
var
|
|
7100
|
+
var v;
|
|
7101
7101
|
c.forEach((x) => {
|
|
7102
7102
|
o && x.removeEventListener("scroll", r), a && x.removeEventListener("resize", r);
|
|
7103
|
-
}), p == null || p(), (
|
|
7103
|
+
}), p == null || p(), (v = d) == null || v.disconnect(), d = null, s && cancelAnimationFrame(b);
|
|
7104
7104
|
};
|
|
7105
7105
|
}
|
|
7106
7106
|
const Yw = vw, Xw = yw, Kw = mw, Jw = ww, Zw = bw, Ml = hw, Qw = xw, e3 = (t, e, r) => {
|
|
@@ -7156,7 +7156,7 @@ function Ll(t, e) {
|
|
|
7156
7156
|
return Math.round(e * r) / r;
|
|
7157
7157
|
}
|
|
7158
7158
|
function Ba(t) {
|
|
7159
|
-
const e =
|
|
7159
|
+
const e = y.useRef(t);
|
|
7160
7160
|
return uo(() => {
|
|
7161
7161
|
e.current = t;
|
|
7162
7162
|
}), e;
|
|
@@ -7175,28 +7175,28 @@ function n3(t) {
|
|
|
7175
7175
|
transform: u = !0,
|
|
7176
7176
|
whileElementsMounted: s,
|
|
7177
7177
|
open: l
|
|
7178
|
-
} = t, [c, p] =
|
|
7178
|
+
} = t, [c, p] = y.useState({
|
|
7179
7179
|
x: 0,
|
|
7180
7180
|
y: 0,
|
|
7181
7181
|
strategy: r,
|
|
7182
7182
|
placement: e,
|
|
7183
7183
|
middlewareData: {},
|
|
7184
7184
|
isPositioned: !1
|
|
7185
|
-
}), [f, d] =
|
|
7185
|
+
}), [f, d] = y.useState(n);
|
|
7186
7186
|
Oo(f, n) || d(n);
|
|
7187
|
-
const [b, g] =
|
|
7188
|
-
D !==
|
|
7189
|
-
}, []), w =
|
|
7190
|
-
D !== I.current && (I.current = D,
|
|
7191
|
-
}, []), C = a || b, N = i || m,
|
|
7192
|
-
if (!
|
|
7187
|
+
const [b, g] = y.useState(null), [m, v] = y.useState(null), x = y.useCallback((D) => {
|
|
7188
|
+
D !== R.current && (R.current = D, g(D));
|
|
7189
|
+
}, []), w = y.useCallback((D) => {
|
|
7190
|
+
D !== I.current && (I.current = D, v(D));
|
|
7191
|
+
}, []), C = a || b, N = i || m, R = y.useRef(null), I = y.useRef(null), L = y.useRef(c), $ = s != null, B = Ba(s), S = Ba(o), T = Ba(l), _ = y.useCallback(() => {
|
|
7192
|
+
if (!R.current || !I.current)
|
|
7193
7193
|
return;
|
|
7194
7194
|
const D = {
|
|
7195
7195
|
placement: e,
|
|
7196
7196
|
strategy: r,
|
|
7197
7197
|
middleware: f
|
|
7198
7198
|
};
|
|
7199
|
-
S.current && (D.platform = S.current), e3(
|
|
7199
|
+
S.current && (D.platform = S.current), e3(R.current, I.current, D).then((j) => {
|
|
7200
7200
|
const U = {
|
|
7201
7201
|
...j,
|
|
7202
7202
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -7216,25 +7216,25 @@ function n3(t) {
|
|
|
7216
7216
|
isPositioned: !1
|
|
7217
7217
|
})));
|
|
7218
7218
|
}, [l]);
|
|
7219
|
-
const M =
|
|
7219
|
+
const M = y.useRef(!1);
|
|
7220
7220
|
uo(() => (M.current = !0, () => {
|
|
7221
7221
|
M.current = !1;
|
|
7222
7222
|
}), []), uo(() => {
|
|
7223
|
-
if (C && (
|
|
7223
|
+
if (C && (R.current = C), N && (I.current = N), C && N) {
|
|
7224
7224
|
if (B.current)
|
|
7225
|
-
return B.current(C, N,
|
|
7226
|
-
|
|
7225
|
+
return B.current(C, N, _);
|
|
7226
|
+
_();
|
|
7227
7227
|
}
|
|
7228
|
-
}, [C, N,
|
|
7229
|
-
const E =
|
|
7230
|
-
reference:
|
|
7228
|
+
}, [C, N, _, B, $]);
|
|
7229
|
+
const E = y.useMemo(() => ({
|
|
7230
|
+
reference: R,
|
|
7231
7231
|
floating: I,
|
|
7232
7232
|
setReference: x,
|
|
7233
7233
|
setFloating: w
|
|
7234
|
-
}), [x, w]), O =
|
|
7234
|
+
}), [x, w]), O = y.useMemo(() => ({
|
|
7235
7235
|
reference: C,
|
|
7236
7236
|
floating: N
|
|
7237
|
-
}), [C, N]), A =
|
|
7237
|
+
}), [C, N]), A = y.useMemo(() => {
|
|
7238
7238
|
const D = {
|
|
7239
7239
|
position: r,
|
|
7240
7240
|
left: 0,
|
|
@@ -7255,13 +7255,13 @@ function n3(t) {
|
|
|
7255
7255
|
top: U
|
|
7256
7256
|
};
|
|
7257
7257
|
}, [r, u, O.floating, c.x, c.y]);
|
|
7258
|
-
return
|
|
7258
|
+
return y.useMemo(() => ({
|
|
7259
7259
|
...c,
|
|
7260
|
-
update:
|
|
7260
|
+
update: _,
|
|
7261
7261
|
refs: E,
|
|
7262
7262
|
elements: O,
|
|
7263
7263
|
floatingStyles: A
|
|
7264
|
-
}), [c,
|
|
7264
|
+
}), [c, _, E, O, A]);
|
|
7265
7265
|
}
|
|
7266
7266
|
const o3 = (t) => {
|
|
7267
7267
|
function e(r) {
|
|
@@ -7306,7 +7306,7 @@ const o3 = (t) => {
|
|
|
7306
7306
|
...o3(t),
|
|
7307
7307
|
options: [t, e]
|
|
7308
7308
|
});
|
|
7309
|
-
var f3 = "Arrow", qd =
|
|
7309
|
+
var f3 = "Arrow", qd = y.forwardRef((t, e) => {
|
|
7310
7310
|
const { children: r, width: n = 10, height: o = 5, ...a } = t;
|
|
7311
7311
|
return /* @__PURE__ */ h(
|
|
7312
7312
|
be.svg,
|
|
@@ -7324,7 +7324,7 @@ var f3 = "Arrow", qd = v.forwardRef((t, e) => {
|
|
|
7324
7324
|
qd.displayName = f3;
|
|
7325
7325
|
var p3 = qd;
|
|
7326
7326
|
function Ud(t) {
|
|
7327
|
-
const [e, r] =
|
|
7327
|
+
const [e, r] = y.useState(void 0);
|
|
7328
7328
|
return $t(() => {
|
|
7329
7329
|
if (t) {
|
|
7330
7330
|
r({ width: t.offsetWidth, height: t.offsetHeight });
|
|
@@ -7346,21 +7346,21 @@ function Ud(t) {
|
|
|
7346
7346
|
}, [t]), e;
|
|
7347
7347
|
}
|
|
7348
7348
|
var Nu = "Popper", [Vd, Wd] = ur(Nu), [h3, Gd] = Vd(Nu), Yd = (t) => {
|
|
7349
|
-
const { __scopePopper: e, children: r } = t, [n, o] =
|
|
7349
|
+
const { __scopePopper: e, children: r } = t, [n, o] = y.useState(null);
|
|
7350
7350
|
return /* @__PURE__ */ h(h3, { scope: e, anchor: n, onAnchorChange: o, children: r });
|
|
7351
7351
|
};
|
|
7352
7352
|
Yd.displayName = Nu;
|
|
7353
|
-
var Xd = "PopperAnchor", Kd =
|
|
7353
|
+
var Xd = "PopperAnchor", Kd = y.forwardRef(
|
|
7354
7354
|
(t, e) => {
|
|
7355
|
-
const { __scopePopper: r, virtualRef: n, ...o } = t, a = Gd(Xd, r), i =
|
|
7356
|
-
return
|
|
7355
|
+
const { __scopePopper: r, virtualRef: n, ...o } = t, a = Gd(Xd, r), i = y.useRef(null), u = Ce(e, i), s = y.useRef(null);
|
|
7356
|
+
return y.useEffect(() => {
|
|
7357
7357
|
const l = s.current;
|
|
7358
7358
|
s.current = (n == null ? void 0 : n.current) || i.current, l !== s.current && a.onAnchorChange(s.current);
|
|
7359
7359
|
}), n ? null : /* @__PURE__ */ h(be.div, { ...o, ref: u });
|
|
7360
7360
|
}
|
|
7361
7361
|
);
|
|
7362
7362
|
Kd.displayName = Xd;
|
|
7363
|
-
var Au = "PopperContent", [m3, b3] = Vd(Au), Jd =
|
|
7363
|
+
var Au = "PopperContent", [m3, b3] = Vd(Au), Jd = y.forwardRef(
|
|
7364
7364
|
(t, e) => {
|
|
7365
7365
|
var F, Ne, xe, ge, Ye, ct;
|
|
7366
7366
|
const {
|
|
@@ -7378,7 +7378,7 @@ var Au = "PopperContent", [m3, b3] = Vd(Au), Jd = v.forwardRef(
|
|
|
7378
7378
|
updatePositionStrategy: d = "optimized",
|
|
7379
7379
|
onPlaced: b,
|
|
7380
7380
|
...g
|
|
7381
|
-
} = t, m = Gd(Au, r), [
|
|
7381
|
+
} = t, m = Gd(Au, r), [v, x] = y.useState(null), w = Ce(e, (Xe) => x(Xe)), [C, N] = y.useState(null), R = Ud(C), I = (R == null ? void 0 : R.width) ?? 0, L = (R == null ? void 0 : R.height) ?? 0, $ = n + (a !== "center" ? "-" + a : ""), B = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, S = Array.isArray(l) ? l : [l], T = S.length > 0, _ = {
|
|
7382
7382
|
padding: B,
|
|
7383
7383
|
boundary: S.filter(v3),
|
|
7384
7384
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7399,11 +7399,11 @@ var Au = "PopperContent", [m3, b3] = Vd(Au), Jd = v.forwardRef(
|
|
|
7399
7399
|
mainAxis: !0,
|
|
7400
7400
|
crossAxis: !1,
|
|
7401
7401
|
limiter: p === "partial" ? u3() : void 0,
|
|
7402
|
-
...
|
|
7402
|
+
..._
|
|
7403
7403
|
}),
|
|
7404
|
-
s && s3({ ...
|
|
7404
|
+
s && s3({ ..._ }),
|
|
7405
7405
|
l3({
|
|
7406
|
-
...
|
|
7406
|
+
..._,
|
|
7407
7407
|
apply: ({ elements: Xe, rects: Bn, availableWidth: Ca, availableHeight: Hn }) => {
|
|
7408
7408
|
const { width: Ea, height: Jr } = Bn.reference, dr = Xe.floating.style;
|
|
7409
7409
|
dr.setProperty("--radix-popper-available-width", `${Ca}px`), dr.setProperty("--radix-popper-available-height", `${Hn}px`), dr.setProperty("--radix-popper-anchor-width", `${Ea}px`), dr.setProperty("--radix-popper-anchor-height", `${Jr}px`);
|
|
@@ -7411,16 +7411,16 @@ var Au = "PopperContent", [m3, b3] = Vd(Au), Jd = v.forwardRef(
|
|
|
7411
7411
|
}),
|
|
7412
7412
|
C && d3({ element: C, padding: u }),
|
|
7413
7413
|
y3({ arrowWidth: I, arrowHeight: L }),
|
|
7414
|
-
f && c3({ strategy: "referenceHidden", ...
|
|
7414
|
+
f && c3({ strategy: "referenceHidden", ..._ })
|
|
7415
7415
|
]
|
|
7416
7416
|
}), [j, U] = ef(O), fe = Le(b);
|
|
7417
7417
|
$t(() => {
|
|
7418
7418
|
A && (fe == null || fe());
|
|
7419
7419
|
}, [A, fe]);
|
|
7420
|
-
const Q = (F = D.arrow) == null ? void 0 : F.x, H = (Ne = D.arrow) == null ? void 0 : Ne.y, z = ((xe = D.arrow) == null ? void 0 : xe.centerOffset) !== 0, [me, K] =
|
|
7420
|
+
const Q = (F = D.arrow) == null ? void 0 : F.x, H = (Ne = D.arrow) == null ? void 0 : Ne.y, z = ((xe = D.arrow) == null ? void 0 : xe.centerOffset) !== 0, [me, K] = y.useState();
|
|
7421
7421
|
return $t(() => {
|
|
7422
|
-
|
|
7423
|
-
}, [
|
|
7422
|
+
v && K(window.getComputedStyle(v).zIndex);
|
|
7423
|
+
}, [v]), /* @__PURE__ */ h(
|
|
7424
7424
|
"div",
|
|
7425
7425
|
{
|
|
7426
7426
|
ref: M.setFloating,
|
|
@@ -7480,7 +7480,7 @@ var Zd = "PopperArrow", g3 = {
|
|
|
7480
7480
|
right: "left",
|
|
7481
7481
|
bottom: "top",
|
|
7482
7482
|
left: "right"
|
|
7483
|
-
}, Qd =
|
|
7483
|
+
}, Qd = y.forwardRef(function(e, r) {
|
|
7484
7484
|
const { __scopePopper: n, ...o } = e, a = b3(Zd, n), i = g3[a.placedSide];
|
|
7485
7485
|
return (
|
|
7486
7486
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
@@ -7533,8 +7533,8 @@ var y3 = (t) => ({
|
|
|
7533
7533
|
name: "transformOrigin",
|
|
7534
7534
|
options: t,
|
|
7535
7535
|
fn(e) {
|
|
7536
|
-
var m,
|
|
7537
|
-
const { placement: r, rects: n, middlewareData: o } = e, i = ((m = o.arrow) == null ? void 0 : m.centerOffset) !== 0, u = i ? 0 : t.arrowWidth, s = i ? 0 : t.arrowHeight, [l, c] = ef(r), p = { start: "0%", center: "50%", end: "100%" }[c], f = (((
|
|
7536
|
+
var m, v, x;
|
|
7537
|
+
const { placement: r, rects: n, middlewareData: o } = e, i = ((m = o.arrow) == null ? void 0 : m.centerOffset) !== 0, u = i ? 0 : t.arrowWidth, s = i ? 0 : t.arrowHeight, [l, c] = ef(r), p = { start: "0%", center: "50%", end: "100%" }[c], f = (((v = o.arrow) == null ? void 0 : v.x) ?? 0) + u / 2, d = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + s / 2;
|
|
7538
7538
|
let b = "", g = "";
|
|
7539
7539
|
return l === "bottom" ? (b = i ? p : `${f}px`, g = `${-s}px`) : l === "top" ? (b = i ? p : `${f}px`, g = `${n.floating.height + s}px`) : l === "right" ? (b = `${-s}px`, g = i ? p : `${d}px`) : l === "left" && (b = `${n.floating.width + s}px`, g = i ? p : `${d}px`), { data: { x: b, y: g } };
|
|
7540
7540
|
}
|
|
@@ -7545,15 +7545,15 @@ function ef(t) {
|
|
|
7545
7545
|
}
|
|
7546
7546
|
var x3 = Yd, w3 = Kd, S3 = Jd, C3 = Qd;
|
|
7547
7547
|
function E3(t, e) {
|
|
7548
|
-
return
|
|
7548
|
+
return y.useReducer((r, n) => e[r][n] ?? r, t);
|
|
7549
7549
|
}
|
|
7550
7550
|
var sr = (t) => {
|
|
7551
|
-
const { present: e, children: r } = t, n = T3(e), o = typeof r == "function" ? r({ present: n.isPresent }) :
|
|
7552
|
-
return typeof r == "function" || n.isPresent ?
|
|
7551
|
+
const { present: e, children: r } = t, n = T3(e), o = typeof r == "function" ? r({ present: n.isPresent }) : y.Children.only(r), a = Ce(n.ref, N3(o));
|
|
7552
|
+
return typeof r == "function" || n.isPresent ? y.cloneElement(o, { ref: a }) : null;
|
|
7553
7553
|
};
|
|
7554
7554
|
sr.displayName = "Presence";
|
|
7555
7555
|
function T3(t) {
|
|
7556
|
-
const [e, r] =
|
|
7556
|
+
const [e, r] = y.useState(), n = y.useRef(null), o = y.useRef(t), a = y.useRef("none"), i = t ? "mounted" : "unmounted", [u, s] = E3(i, {
|
|
7557
7557
|
mounted: {
|
|
7558
7558
|
UNMOUNT: "unmounted",
|
|
7559
7559
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -7566,7 +7566,7 @@ function T3(t) {
|
|
|
7566
7566
|
MOUNT: "mounted"
|
|
7567
7567
|
}
|
|
7568
7568
|
});
|
|
7569
|
-
return
|
|
7569
|
+
return y.useEffect(() => {
|
|
7570
7570
|
const l = Gn(n.current);
|
|
7571
7571
|
a.current = u === "mounted" ? l : "none";
|
|
7572
7572
|
}, [u]), $t(() => {
|
|
@@ -7596,7 +7596,7 @@ function T3(t) {
|
|
|
7596
7596
|
s("ANIMATION_END");
|
|
7597
7597
|
}, [e, s]), {
|
|
7598
7598
|
isPresent: ["mounted", "unmountSuspended"].includes(u),
|
|
7599
|
-
ref:
|
|
7599
|
+
ref: y.useCallback((l) => {
|
|
7600
7600
|
n.current = l ? getComputedStyle(l) : null, r(l);
|
|
7601
7601
|
}, [])
|
|
7602
7602
|
};
|
|
@@ -7615,7 +7615,7 @@ function O3(t) {
|
|
|
7615
7615
|
const e = ({ children: r }) => /* @__PURE__ */ h(Jt, { children: r });
|
|
7616
7616
|
return e.displayName = `${t}.Slottable`, e.__radixId = A3, e;
|
|
7617
7617
|
}
|
|
7618
|
-
var P3 =
|
|
7618
|
+
var P3 = y[" useInsertionEffect ".trim().toString()] || $t;
|
|
7619
7619
|
function Yr({
|
|
7620
7620
|
prop: t,
|
|
7621
7621
|
defaultProp: e,
|
|
@@ -7628,15 +7628,15 @@ function Yr({
|
|
|
7628
7628
|
onChange: r
|
|
7629
7629
|
}), u = t !== void 0, s = u ? t : o;
|
|
7630
7630
|
{
|
|
7631
|
-
const c =
|
|
7632
|
-
|
|
7631
|
+
const c = y.useRef(t !== void 0);
|
|
7632
|
+
y.useEffect(() => {
|
|
7633
7633
|
const p = c.current;
|
|
7634
7634
|
p !== u && console.warn(
|
|
7635
7635
|
`${n} is changing from ${p ? "controlled" : "uncontrolled"} to ${u ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
7636
7636
|
), c.current = u;
|
|
7637
7637
|
}, [u, n]);
|
|
7638
7638
|
}
|
|
7639
|
-
const l =
|
|
7639
|
+
const l = y.useCallback(
|
|
7640
7640
|
(c) => {
|
|
7641
7641
|
var p;
|
|
7642
7642
|
if (u) {
|
|
@@ -7653,10 +7653,10 @@ function k3({
|
|
|
7653
7653
|
defaultProp: t,
|
|
7654
7654
|
onChange: e
|
|
7655
7655
|
}) {
|
|
7656
|
-
const [r, n] =
|
|
7656
|
+
const [r, n] = y.useState(t), o = y.useRef(r), a = y.useRef(e);
|
|
7657
7657
|
return P3(() => {
|
|
7658
7658
|
a.current = e;
|
|
7659
|
-
}, [e]),
|
|
7659
|
+
}, [e]), y.useEffect(() => {
|
|
7660
7660
|
var i;
|
|
7661
7661
|
o.current !== r && ((i = a.current) == null || i.call(a, r), o.current = r);
|
|
7662
7662
|
}, [r, o]), [r, n, a];
|
|
@@ -7676,7 +7676,7 @@ var R3 = Object.freeze({
|
|
|
7676
7676
|
clip: "rect(0, 0, 0, 0)",
|
|
7677
7677
|
whiteSpace: "nowrap",
|
|
7678
7678
|
wordWrap: "normal"
|
|
7679
|
-
}), I3 = "VisuallyHidden", tf =
|
|
7679
|
+
}), I3 = "VisuallyHidden", tf = y.forwardRef(
|
|
7680
7680
|
(t, e) => /* @__PURE__ */ h(
|
|
7681
7681
|
be.span,
|
|
7682
7682
|
{
|
|
@@ -7696,8 +7696,8 @@ var D3 = tf, [ua] = ur("Tooltip", [
|
|
|
7696
7696
|
skipDelayDuration: n = 300,
|
|
7697
7697
|
disableHoverableContent: o = !1,
|
|
7698
7698
|
children: a
|
|
7699
|
-
} = t, i =
|
|
7700
|
-
return
|
|
7699
|
+
} = t, i = y.useRef(!0), u = y.useRef(!1), s = y.useRef(0);
|
|
7700
|
+
return y.useEffect(() => {
|
|
7701
7701
|
const l = s.current;
|
|
7702
7702
|
return () => window.clearTimeout(l);
|
|
7703
7703
|
}, []), /* @__PURE__ */ h(
|
|
@@ -7706,17 +7706,17 @@ var D3 = tf, [ua] = ur("Tooltip", [
|
|
|
7706
7706
|
scope: e,
|
|
7707
7707
|
isOpenDelayedRef: i,
|
|
7708
7708
|
delayDuration: r,
|
|
7709
|
-
onOpen:
|
|
7709
|
+
onOpen: y.useCallback(() => {
|
|
7710
7710
|
window.clearTimeout(s.current), i.current = !1;
|
|
7711
7711
|
}, []),
|
|
7712
|
-
onClose:
|
|
7712
|
+
onClose: y.useCallback(() => {
|
|
7713
7713
|
window.clearTimeout(s.current), s.current = window.setTimeout(
|
|
7714
7714
|
() => i.current = !0,
|
|
7715
7715
|
n
|
|
7716
7716
|
);
|
|
7717
7717
|
}, [n]),
|
|
7718
7718
|
isPointerInTransitRef: u,
|
|
7719
|
-
onPointerInTransitChange:
|
|
7719
|
+
onPointerInTransitChange: y.useCallback((l) => {
|
|
7720
7720
|
u.current = l;
|
|
7721
7721
|
}, []),
|
|
7722
7722
|
disableHoverableContent: o,
|
|
@@ -7734,37 +7734,37 @@ var yn = "Tooltip", [j3, la] = ua(yn), of = (t) => {
|
|
|
7734
7734
|
onOpenChange: a,
|
|
7735
7735
|
disableHoverableContent: i,
|
|
7736
7736
|
delayDuration: u
|
|
7737
|
-
} = t, s = Ou(yn, t.__scopeTooltip), l = sa(e), [c, p] =
|
|
7737
|
+
} = t, s = Ou(yn, t.__scopeTooltip), l = sa(e), [c, p] = y.useState(null), f = _d(), d = y.useRef(0), b = i ?? s.disableHoverableContent, g = u ?? s.delayDuration, m = y.useRef(!1), [v, x] = Yr({
|
|
7738
7738
|
prop: n,
|
|
7739
7739
|
defaultProp: o ?? !1,
|
|
7740
7740
|
onChange: (I) => {
|
|
7741
7741
|
I ? (s.onOpen(), document.dispatchEvent(new CustomEvent(wi))) : s.onClose(), a == null || a(I);
|
|
7742
7742
|
},
|
|
7743
7743
|
caller: yn
|
|
7744
|
-
}), w =
|
|
7744
|
+
}), w = y.useMemo(() => v ? m.current ? "delayed-open" : "instant-open" : "closed", [v]), C = y.useCallback(() => {
|
|
7745
7745
|
window.clearTimeout(d.current), d.current = 0, m.current = !1, x(!0);
|
|
7746
|
-
}, [x]), N =
|
|
7746
|
+
}, [x]), N = y.useCallback(() => {
|
|
7747
7747
|
window.clearTimeout(d.current), d.current = 0, x(!1);
|
|
7748
|
-
}, [x]),
|
|
7748
|
+
}, [x]), R = y.useCallback(() => {
|
|
7749
7749
|
window.clearTimeout(d.current), d.current = window.setTimeout(() => {
|
|
7750
7750
|
m.current = !0, x(!0), d.current = 0;
|
|
7751
7751
|
}, g);
|
|
7752
7752
|
}, [g, x]);
|
|
7753
|
-
return
|
|
7753
|
+
return y.useEffect(() => () => {
|
|
7754
7754
|
d.current && (window.clearTimeout(d.current), d.current = 0);
|
|
7755
7755
|
}, []), /* @__PURE__ */ h(x3, { ...l, children: /* @__PURE__ */ h(
|
|
7756
7756
|
j3,
|
|
7757
7757
|
{
|
|
7758
7758
|
scope: e,
|
|
7759
7759
|
contentId: f,
|
|
7760
|
-
open:
|
|
7760
|
+
open: v,
|
|
7761
7761
|
stateAttribute: w,
|
|
7762
7762
|
trigger: c,
|
|
7763
7763
|
onTriggerChange: p,
|
|
7764
|
-
onTriggerEnter:
|
|
7765
|
-
s.isOpenDelayedRef.current ?
|
|
7766
|
-
}, [s.isOpenDelayedRef,
|
|
7767
|
-
onTriggerLeave:
|
|
7764
|
+
onTriggerEnter: y.useCallback(() => {
|
|
7765
|
+
s.isOpenDelayedRef.current ? R() : C();
|
|
7766
|
+
}, [s.isOpenDelayedRef, R, C]),
|
|
7767
|
+
onTriggerLeave: y.useCallback(() => {
|
|
7768
7768
|
b ? N() : (window.clearTimeout(d.current), d.current = 0);
|
|
7769
7769
|
}, [N, b]),
|
|
7770
7770
|
onOpen: C,
|
|
@@ -7775,10 +7775,10 @@ var yn = "Tooltip", [j3, la] = ua(yn), of = (t) => {
|
|
|
7775
7775
|
) });
|
|
7776
7776
|
};
|
|
7777
7777
|
of.displayName = yn;
|
|
7778
|
-
var Si = "TooltipTrigger", af =
|
|
7778
|
+
var Si = "TooltipTrigger", af = y.forwardRef(
|
|
7779
7779
|
(t, e) => {
|
|
7780
|
-
const { __scopeTooltip: r, ...n } = t, o = la(Si, r), a = Ou(Si, r), i = sa(r), u =
|
|
7781
|
-
return
|
|
7780
|
+
const { __scopeTooltip: r, ...n } = t, o = la(Si, r), a = Ou(Si, r), i = sa(r), u = y.useRef(null), s = Ce(e, u, o.onTriggerChange), l = y.useRef(!1), c = y.useRef(!1), p = y.useCallback(() => l.current = !1, []);
|
|
7781
|
+
return y.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ h(w3, { asChild: !0, ...i, children: /* @__PURE__ */ h(
|
|
7782
7782
|
be.button,
|
|
7783
7783
|
{
|
|
7784
7784
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -7806,38 +7806,38 @@ var Si = "TooltipTrigger", af = v.forwardRef(
|
|
|
7806
7806
|
af.displayName = Si;
|
|
7807
7807
|
var $3 = "TooltipPortal", [AC, B3] = ua($3, {
|
|
7808
7808
|
forceMount: void 0
|
|
7809
|
-
}), Or = "TooltipContent", uf =
|
|
7809
|
+
}), Or = "TooltipContent", uf = y.forwardRef(
|
|
7810
7810
|
(t, e) => {
|
|
7811
7811
|
const r = B3(Or, t.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = t, i = la(Or, t.__scopeTooltip);
|
|
7812
7812
|
return /* @__PURE__ */ h(sr, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ h(sf, { side: o, ...a, ref: e }) : /* @__PURE__ */ h(H3, { side: o, ...a, ref: e }) });
|
|
7813
7813
|
}
|
|
7814
|
-
), H3 =
|
|
7815
|
-
const r = la(Or, t.__scopeTooltip), n = Ou(Or, t.__scopeTooltip), o =
|
|
7814
|
+
), H3 = y.forwardRef((t, e) => {
|
|
7815
|
+
const r = la(Or, t.__scopeTooltip), n = Ou(Or, t.__scopeTooltip), o = y.useRef(null), a = Ce(e, o), [i, u] = y.useState(null), { trigger: s, onClose: l } = r, c = o.current, { onPointerInTransitChange: p } = n, f = y.useCallback(() => {
|
|
7816
7816
|
u(null), p(!1);
|
|
7817
|
-
}, [p]), d =
|
|
7817
|
+
}, [p]), d = y.useCallback(
|
|
7818
7818
|
(b, g) => {
|
|
7819
|
-
const m = b.currentTarget,
|
|
7819
|
+
const m = b.currentTarget, v = { x: b.clientX, y: b.clientY }, x = V3(v, m.getBoundingClientRect()), w = W3(v, x), C = G3(g.getBoundingClientRect()), N = X3([...w, ...C]);
|
|
7820
7820
|
u(N), p(!0);
|
|
7821
7821
|
},
|
|
7822
7822
|
[p]
|
|
7823
7823
|
);
|
|
7824
|
-
return
|
|
7824
|
+
return y.useEffect(() => () => f(), [f]), y.useEffect(() => {
|
|
7825
7825
|
if (s && c) {
|
|
7826
7826
|
const b = (m) => d(m, c), g = (m) => d(m, s);
|
|
7827
7827
|
return s.addEventListener("pointerleave", b), c.addEventListener("pointerleave", g), () => {
|
|
7828
7828
|
s.removeEventListener("pointerleave", b), c.removeEventListener("pointerleave", g);
|
|
7829
7829
|
};
|
|
7830
7830
|
}
|
|
7831
|
-
}, [s, c, d, f]),
|
|
7831
|
+
}, [s, c, d, f]), y.useEffect(() => {
|
|
7832
7832
|
if (i) {
|
|
7833
7833
|
const b = (g) => {
|
|
7834
|
-
const m = g.target,
|
|
7834
|
+
const m = g.target, v = { x: g.clientX, y: g.clientY }, x = (s == null ? void 0 : s.contains(m)) || (c == null ? void 0 : c.contains(m)), w = !Y3(v, i);
|
|
7835
7835
|
x ? f() : w && (f(), l());
|
|
7836
7836
|
};
|
|
7837
7837
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
7838
7838
|
}
|
|
7839
7839
|
}, [s, c, i, l, f]), /* @__PURE__ */ h(sf, { ...t, ref: a });
|
|
7840
|
-
}), [z3, F3] = ua(yn, { isInside: !1 }), q3 = /* @__PURE__ */ O3("TooltipContent"), sf =
|
|
7840
|
+
}), [z3, F3] = ua(yn, { isInside: !1 }), q3 = /* @__PURE__ */ O3("TooltipContent"), sf = y.forwardRef(
|
|
7841
7841
|
(t, e) => {
|
|
7842
7842
|
const {
|
|
7843
7843
|
__scopeTooltip: r,
|
|
@@ -7847,7 +7847,7 @@ var $3 = "TooltipPortal", [AC, B3] = ua($3, {
|
|
|
7847
7847
|
onPointerDownOutside: i,
|
|
7848
7848
|
...u
|
|
7849
7849
|
} = t, s = la(Or, r), l = sa(r), { onClose: c } = s;
|
|
7850
|
-
return
|
|
7850
|
+
return y.useEffect(() => (document.addEventListener(wi, c), () => document.removeEventListener(wi, c)), [c]), y.useEffect(() => {
|
|
7851
7851
|
if (s.trigger) {
|
|
7852
7852
|
const p = (f) => {
|
|
7853
7853
|
const d = f.target;
|
|
@@ -7890,7 +7890,7 @@ var $3 = "TooltipPortal", [AC, B3] = ua($3, {
|
|
|
7890
7890
|
}
|
|
7891
7891
|
);
|
|
7892
7892
|
uf.displayName = Or;
|
|
7893
|
-
var lf = "TooltipArrow", U3 =
|
|
7893
|
+
var lf = "TooltipArrow", U3 = y.forwardRef(
|
|
7894
7894
|
(t, e) => {
|
|
7895
7895
|
const { __scopeTooltip: r, ...n } = t, o = sa(r);
|
|
7896
7896
|
return F3(
|
|
@@ -7993,7 +7993,7 @@ function K3(t) {
|
|
|
7993
7993
|
return r.pop(), e.length === 1 && r.length === 1 && e[0].x === r[0].x && e[0].y === r[0].y ? e : e.concat(r);
|
|
7994
7994
|
}
|
|
7995
7995
|
var J3 = nf, Z3 = of, Q3 = af, cf = uf;
|
|
7996
|
-
const xn = J3, Pr = Z3, kr = Q3, tr =
|
|
7996
|
+
const xn = J3, Pr = Z3, kr = Q3, tr = y.forwardRef(({ className: t, sideOffset: e = 4, ...r }, n) => /* @__PURE__ */ h(
|
|
7997
7997
|
cf,
|
|
7998
7998
|
{
|
|
7999
7999
|
ref: n,
|
|
@@ -8064,8 +8064,8 @@ const Er = {
|
|
|
8064
8064
|
defaultValue: i = 16
|
|
8065
8065
|
}) => {
|
|
8066
8066
|
const u = Vr(), [s, l] = Se(!1), c = typeof e == "object" && e !== null && !("top" in e) ? e : { desktop: e ?? i }, p = () => c[u] ?? c.desktop ?? i, f = (g, m) => {
|
|
8067
|
-
const
|
|
8068
|
-
r(
|
|
8067
|
+
const v = { ...c, [g]: m };
|
|
8068
|
+
r(v);
|
|
8069
8069
|
}, d = (g) => {
|
|
8070
8070
|
f(u, g);
|
|
8071
8071
|
}, b = Ue.some(
|
|
@@ -8089,7 +8089,7 @@ const Er = {
|
|
|
8089
8089
|
] }) })
|
|
8090
8090
|
] }),
|
|
8091
8091
|
s ? /* @__PURE__ */ h("div", { className: "space-y-1.5 pl-2 border-l-2 border-primary/20", children: Ue.map((g) => {
|
|
8092
|
-
const m = Er[g].icon,
|
|
8092
|
+
const m = Er[g].icon, v = c[g], x = v === void 0 ? Ue.find(
|
|
8093
8093
|
(w) => Ue.indexOf(w) > Ue.indexOf(g) && c[w] !== void 0
|
|
8094
8094
|
) || "desktop" : null;
|
|
8095
8095
|
return /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
|
|
@@ -8107,7 +8107,7 @@ const Er = {
|
|
|
8107
8107
|
"input",
|
|
8108
8108
|
{
|
|
8109
8109
|
type: "number",
|
|
8110
|
-
value:
|
|
8110
|
+
value: v ?? "",
|
|
8111
8111
|
placeholder: x ? `${c[x] ?? i}` : "",
|
|
8112
8112
|
onChange: (w) => {
|
|
8113
8113
|
const C = w.target.value === "" ? void 0 : parseInt(w.target.value) || 0;
|
|
@@ -8115,7 +8115,7 @@ const Er = {
|
|
|
8115
8115
|
},
|
|
8116
8116
|
min: n,
|
|
8117
8117
|
max: o,
|
|
8118
|
-
className: `flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${
|
|
8118
|
+
className: `flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${v === void 0 ? "text-muted-foreground" : ""}`
|
|
8119
8119
|
}
|
|
8120
8120
|
),
|
|
8121
8121
|
/* @__PURE__ */ h("span", { className: "text-xs text-muted-foreground w-6", children: a })
|
|
@@ -8345,7 +8345,7 @@ const Er = {
|
|
|
8345
8345
|
{
|
|
8346
8346
|
type: "range",
|
|
8347
8347
|
value: m ?? c.desktop ?? i,
|
|
8348
|
-
onChange: (
|
|
8348
|
+
onChange: (v) => f(b, parseInt(v.target.value)),
|
|
8349
8349
|
min: n,
|
|
8350
8350
|
max: o,
|
|
8351
8351
|
className: "w-full h-1.5 accent-primary"
|
|
@@ -8382,20 +8382,23 @@ const Er = {
|
|
|
8382
8382
|
boxShadow: b = "none",
|
|
8383
8383
|
opacity: g = 100
|
|
8384
8384
|
}) => {
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8385
|
+
let m, v, x;
|
|
8386
|
+
try {
|
|
8387
|
+
const { connectors: _, events: M } = oe((E) => ({
|
|
8388
|
+
events: E.events
|
|
8389
|
+
}));
|
|
8390
|
+
m = _.connect, v = _.drag, x = M.selected;
|
|
8391
|
+
} catch {
|
|
8392
|
+
}
|
|
8393
|
+
const w = {
|
|
8391
8394
|
sm: { px: 12, py: 6, fs: 14 },
|
|
8392
8395
|
md: { px: 16, py: 10, fs: 16 },
|
|
8393
8396
|
lg: { px: 24, py: 14, fs: 18 }
|
|
8394
|
-
}, C = w[r] || w.md, N = p === "auto" ? C.px : p,
|
|
8397
|
+
}, C = w[r] || w.md, N = p === "auto" ? C.px : p, R = f === "auto" ? C.py : f, I = l === "auto" ? C.fs : l, L = typeof d == "object" ? `${d.top}px ${d.right}px ${d.bottom}px ${d.left}px` : `${d}px`, $ = e === "outline" ? "transparent" : n, B = e === "outline" ? n : o, S = e === "outline" ? 2 : i, T = e === "outline" ? n : a;
|
|
8395
8398
|
return /* @__PURE__ */ h(
|
|
8396
8399
|
"button",
|
|
8397
8400
|
{
|
|
8398
|
-
ref: (
|
|
8401
|
+
ref: (_) => _ && m && v && (m == null ? void 0 : m(v == null ? void 0 : v(_))),
|
|
8399
8402
|
className: `cursor-move transition-all hover:opacity-90 ${x ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
8400
8403
|
style: {
|
|
8401
8404
|
backgroundColor: $,
|
|
@@ -8406,7 +8409,7 @@ const Er = {
|
|
|
8406
8409
|
borderRadius: `${u}px`,
|
|
8407
8410
|
fontWeight: s,
|
|
8408
8411
|
fontSize: `${I}px`,
|
|
8409
|
-
padding: `${
|
|
8412
|
+
padding: `${R}px ${N}px`,
|
|
8410
8413
|
margin: L,
|
|
8411
8414
|
width: c === "full" ? "100%" : "auto",
|
|
8412
8415
|
boxShadow: b === "none" ? "none" : b,
|
|
@@ -8949,17 +8952,19 @@ const br = ({ label: t, value: e, onChange: r, max: n = 1e4 }) => {
|
|
|
8949
8952
|
] })
|
|
8950
8953
|
] });
|
|
8951
8954
|
}, _n = (t) => {
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8955
|
+
let e, r, n = !1;
|
|
8956
|
+
try {
|
|
8957
|
+
const { connectors: o, events: a } = oe((i) => ({
|
|
8958
|
+
events: i.events
|
|
8959
|
+
}));
|
|
8960
|
+
e = o.connect, r = o.drag, n = a.selected;
|
|
8961
|
+
} catch {
|
|
8962
|
+
}
|
|
8958
8963
|
return /* @__PURE__ */ h(
|
|
8959
8964
|
"div",
|
|
8960
8965
|
{
|
|
8961
8966
|
ref: (o) => {
|
|
8962
|
-
o && e(r(o));
|
|
8967
|
+
o && e && r && e(r(o));
|
|
8963
8968
|
},
|
|
8964
8969
|
style: ku(t),
|
|
8965
8970
|
className: `min-h-[50px] w-full ${n ? "outline outline-blue-500" : ""}`,
|
|
@@ -9170,14 +9175,14 @@ var Ei = {};
|
|
|
9170
9175
|
t.default = o;
|
|
9171
9176
|
})(Ei);
|
|
9172
9177
|
(function(t) {
|
|
9173
|
-
var e = q && q.__createBinding || (Object.create ? function(S, T,
|
|
9174
|
-
M === void 0 && (M =
|
|
9175
|
-
var E = Object.getOwnPropertyDescriptor(T,
|
|
9178
|
+
var e = q && q.__createBinding || (Object.create ? function(S, T, _, M) {
|
|
9179
|
+
M === void 0 && (M = _);
|
|
9180
|
+
var E = Object.getOwnPropertyDescriptor(T, _);
|
|
9176
9181
|
(!E || ("get" in E ? !T.__esModule : E.writable || E.configurable)) && (E = { enumerable: !0, get: function() {
|
|
9177
|
-
return T[
|
|
9182
|
+
return T[_];
|
|
9178
9183
|
} }), Object.defineProperty(S, M, E);
|
|
9179
|
-
} : function(S, T,
|
|
9180
|
-
M === void 0 && (M =
|
|
9184
|
+
} : function(S, T, _, M) {
|
|
9185
|
+
M === void 0 && (M = _), S[M] = T[_];
|
|
9181
9186
|
}), r = q && q.__setModuleDefault || (Object.create ? function(S, T) {
|
|
9182
9187
|
Object.defineProperty(S, "default", { enumerable: !0, value: T });
|
|
9183
9188
|
} : function(S, T) {
|
|
@@ -9185,7 +9190,7 @@ var Ei = {};
|
|
|
9185
9190
|
}), n = q && q.__importStar || function(S) {
|
|
9186
9191
|
if (S && S.__esModule) return S;
|
|
9187
9192
|
var T = {};
|
|
9188
|
-
if (S != null) for (var
|
|
9193
|
+
if (S != null) for (var _ in S) _ !== "default" && Object.prototype.hasOwnProperty.call(S, _) && e(T, S, _);
|
|
9189
9194
|
return r(T, S), T;
|
|
9190
9195
|
}, o = q && q.__importDefault || function(S) {
|
|
9191
9196
|
return S && S.__esModule ? S : { default: S };
|
|
@@ -9227,91 +9232,91 @@ var Ei = {};
|
|
|
9227
9232
|
(function(S) {
|
|
9228
9233
|
S[S.EntityStart = 0] = "EntityStart", S[S.NumericStart = 1] = "NumericStart", S[S.NumericDecimal = 2] = "NumericDecimal", S[S.NumericHex = 3] = "NumericHex", S[S.NamedEntity = 4] = "NamedEntity";
|
|
9229
9234
|
})(m || (m = {}));
|
|
9230
|
-
var
|
|
9235
|
+
var v;
|
|
9231
9236
|
(function(S) {
|
|
9232
9237
|
S[S.Legacy = 0] = "Legacy", S[S.Strict = 1] = "Strict", S[S.Attribute = 2] = "Attribute";
|
|
9233
|
-
})(
|
|
9238
|
+
})(v = t.DecodingMode || (t.DecodingMode = {}));
|
|
9234
9239
|
var x = (
|
|
9235
9240
|
/** @class */
|
|
9236
9241
|
function() {
|
|
9237
|
-
function S(T,
|
|
9238
|
-
this.decodeTree = T, this.emitCodePoint =
|
|
9242
|
+
function S(T, _, M) {
|
|
9243
|
+
this.decodeTree = T, this.emitCodePoint = _, this.errors = M, this.state = m.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = v.Strict;
|
|
9239
9244
|
}
|
|
9240
9245
|
return S.prototype.startEntity = function(T) {
|
|
9241
9246
|
this.decodeMode = T, this.state = m.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
9242
|
-
}, S.prototype.write = function(T,
|
|
9247
|
+
}, S.prototype.write = function(T, _) {
|
|
9243
9248
|
switch (this.state) {
|
|
9244
9249
|
case m.EntityStart:
|
|
9245
|
-
return T.charCodeAt(
|
|
9250
|
+
return T.charCodeAt(_) === l.NUM ? (this.state = m.NumericStart, this.consumed += 1, this.stateNumericStart(T, _ + 1)) : (this.state = m.NamedEntity, this.stateNamedEntity(T, _));
|
|
9246
9251
|
case m.NumericStart:
|
|
9247
|
-
return this.stateNumericStart(T,
|
|
9252
|
+
return this.stateNumericStart(T, _);
|
|
9248
9253
|
case m.NumericDecimal:
|
|
9249
|
-
return this.stateNumericDecimal(T,
|
|
9254
|
+
return this.stateNumericDecimal(T, _);
|
|
9250
9255
|
case m.NumericHex:
|
|
9251
|
-
return this.stateNumericHex(T,
|
|
9256
|
+
return this.stateNumericHex(T, _);
|
|
9252
9257
|
case m.NamedEntity:
|
|
9253
|
-
return this.stateNamedEntity(T,
|
|
9258
|
+
return this.stateNamedEntity(T, _);
|
|
9254
9259
|
}
|
|
9255
|
-
}, S.prototype.stateNumericStart = function(T,
|
|
9256
|
-
return
|
|
9257
|
-
}, S.prototype.addToNumericResult = function(T,
|
|
9258
|
-
if (
|
|
9259
|
-
var O = M -
|
|
9260
|
-
this.result = this.result * Math.pow(E, O) + parseInt(T.substr(
|
|
9260
|
+
}, S.prototype.stateNumericStart = function(T, _) {
|
|
9261
|
+
return _ >= T.length ? -1 : (T.charCodeAt(_) | c) === l.LOWER_X ? (this.state = m.NumericHex, this.consumed += 1, this.stateNumericHex(T, _ + 1)) : (this.state = m.NumericDecimal, this.stateNumericDecimal(T, _));
|
|
9262
|
+
}, S.prototype.addToNumericResult = function(T, _, M, E) {
|
|
9263
|
+
if (_ !== M) {
|
|
9264
|
+
var O = M - _;
|
|
9265
|
+
this.result = this.result * Math.pow(E, O) + parseInt(T.substr(_, O), E), this.consumed += O;
|
|
9261
9266
|
}
|
|
9262
|
-
}, S.prototype.stateNumericHex = function(T,
|
|
9263
|
-
for (var M =
|
|
9264
|
-
var E = T.charCodeAt(
|
|
9267
|
+
}, S.prototype.stateNumericHex = function(T, _) {
|
|
9268
|
+
for (var M = _; _ < T.length; ) {
|
|
9269
|
+
var E = T.charCodeAt(_);
|
|
9265
9270
|
if (f(E) || d(E))
|
|
9266
|
-
|
|
9271
|
+
_ += 1;
|
|
9267
9272
|
else
|
|
9268
|
-
return this.addToNumericResult(T, M,
|
|
9273
|
+
return this.addToNumericResult(T, M, _, 16), this.emitNumericEntity(E, 3);
|
|
9269
9274
|
}
|
|
9270
|
-
return this.addToNumericResult(T, M,
|
|
9271
|
-
}, S.prototype.stateNumericDecimal = function(T,
|
|
9272
|
-
for (var M =
|
|
9273
|
-
var E = T.charCodeAt(
|
|
9275
|
+
return this.addToNumericResult(T, M, _, 16), -1;
|
|
9276
|
+
}, S.prototype.stateNumericDecimal = function(T, _) {
|
|
9277
|
+
for (var M = _; _ < T.length; ) {
|
|
9278
|
+
var E = T.charCodeAt(_);
|
|
9274
9279
|
if (f(E))
|
|
9275
|
-
|
|
9280
|
+
_ += 1;
|
|
9276
9281
|
else
|
|
9277
|
-
return this.addToNumericResult(T, M,
|
|
9282
|
+
return this.addToNumericResult(T, M, _, 10), this.emitNumericEntity(E, 2);
|
|
9278
9283
|
}
|
|
9279
|
-
return this.addToNumericResult(T, M,
|
|
9280
|
-
}, S.prototype.emitNumericEntity = function(T,
|
|
9284
|
+
return this.addToNumericResult(T, M, _, 10), -1;
|
|
9285
|
+
}, S.prototype.emitNumericEntity = function(T, _) {
|
|
9281
9286
|
var M;
|
|
9282
|
-
if (this.consumed <=
|
|
9287
|
+
if (this.consumed <= _)
|
|
9283
9288
|
return (M = this.errors) === null || M === void 0 || M.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
9284
9289
|
if (T === l.SEMI)
|
|
9285
9290
|
this.consumed += 1;
|
|
9286
|
-
else if (this.decodeMode ===
|
|
9291
|
+
else if (this.decodeMode === v.Strict)
|
|
9287
9292
|
return 0;
|
|
9288
9293
|
return this.emitCodePoint((0, u.replaceCodePoint)(this.result), this.consumed), this.errors && (T !== l.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
9289
|
-
}, S.prototype.stateNamedEntity = function(T,
|
|
9290
|
-
for (var M = this.decodeTree, E = M[this.treeIndex], O = (E & p.VALUE_LENGTH) >> 14;
|
|
9291
|
-
var A = T.charCodeAt(
|
|
9294
|
+
}, S.prototype.stateNamedEntity = function(T, _) {
|
|
9295
|
+
for (var M = this.decodeTree, E = M[this.treeIndex], O = (E & p.VALUE_LENGTH) >> 14; _ < T.length; _++, this.excess++) {
|
|
9296
|
+
var A = T.charCodeAt(_);
|
|
9292
9297
|
if (this.treeIndex = C(M, E, this.treeIndex + Math.max(1, O), A), this.treeIndex < 0)
|
|
9293
9298
|
return this.result === 0 || // If we are parsing an attribute
|
|
9294
|
-
this.decodeMode ===
|
|
9299
|
+
this.decodeMode === v.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
9295
9300
|
(O === 0 || // And there should be no invalid characters.
|
|
9296
9301
|
g(A)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
9297
9302
|
if (E = M[this.treeIndex], O = (E & p.VALUE_LENGTH) >> 14, O !== 0) {
|
|
9298
9303
|
if (A === l.SEMI)
|
|
9299
9304
|
return this.emitNamedEntityData(this.treeIndex, O, this.consumed + this.excess);
|
|
9300
|
-
this.decodeMode !==
|
|
9305
|
+
this.decodeMode !== v.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
9301
9306
|
}
|
|
9302
9307
|
}
|
|
9303
9308
|
return -1;
|
|
9304
9309
|
}, S.prototype.emitNotTerminatedNamedEntity = function() {
|
|
9305
|
-
var T,
|
|
9310
|
+
var T, _ = this, M = _.result, E = _.decodeTree, O = (E[M] & p.VALUE_LENGTH) >> 14;
|
|
9306
9311
|
return this.emitNamedEntityData(M, O, this.consumed), (T = this.errors) === null || T === void 0 || T.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
9307
|
-
}, S.prototype.emitNamedEntityData = function(T,
|
|
9312
|
+
}, S.prototype.emitNamedEntityData = function(T, _, M) {
|
|
9308
9313
|
var E = this.decodeTree;
|
|
9309
|
-
return this.emitCodePoint(
|
|
9314
|
+
return this.emitCodePoint(_ === 1 ? E[T] & ~p.VALUE_LENGTH : E[T + 1], M), _ === 3 && this.emitCodePoint(E[T + 2], M), M;
|
|
9310
9315
|
}, S.prototype.end = function() {
|
|
9311
9316
|
var T;
|
|
9312
9317
|
switch (this.state) {
|
|
9313
9318
|
case m.NamedEntity:
|
|
9314
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
9319
|
+
return this.result !== 0 && (this.decodeMode !== v.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
9315
9320
|
case m.NumericDecimal:
|
|
9316
9321
|
return this.emitNumericEntity(0, 2);
|
|
9317
9322
|
case m.NumericHex:
|
|
@@ -9326,19 +9331,19 @@ var Ei = {};
|
|
|
9326
9331
|
);
|
|
9327
9332
|
t.EntityDecoder = x;
|
|
9328
9333
|
function w(S) {
|
|
9329
|
-
var T = "",
|
|
9334
|
+
var T = "", _ = new x(S, function(M) {
|
|
9330
9335
|
return T += (0, u.fromCodePoint)(M);
|
|
9331
9336
|
});
|
|
9332
9337
|
return function(E, O) {
|
|
9333
9338
|
for (var A = 0, D = 0; (D = E.indexOf("&", D)) >= 0; ) {
|
|
9334
|
-
T += E.slice(A, D),
|
|
9335
|
-
var j =
|
|
9339
|
+
T += E.slice(A, D), _.startEntity(O);
|
|
9340
|
+
var j = _.write(
|
|
9336
9341
|
E,
|
|
9337
9342
|
// Skip the "&"
|
|
9338
9343
|
D + 1
|
|
9339
9344
|
);
|
|
9340
9345
|
if (j < 0) {
|
|
9341
|
-
A = D +
|
|
9346
|
+
A = D + _.end();
|
|
9342
9347
|
break;
|
|
9343
9348
|
}
|
|
9344
9349
|
A = D + j, D = j === 0 ? A + 1 : A;
|
|
@@ -9347,15 +9352,15 @@ var Ei = {};
|
|
|
9347
9352
|
return T = "", U;
|
|
9348
9353
|
};
|
|
9349
9354
|
}
|
|
9350
|
-
function C(S, T,
|
|
9355
|
+
function C(S, T, _, M) {
|
|
9351
9356
|
var E = (T & p.BRANCH_LENGTH) >> 7, O = T & p.JUMP_TABLE;
|
|
9352
9357
|
if (E === 0)
|
|
9353
|
-
return O !== 0 && M === O ?
|
|
9358
|
+
return O !== 0 && M === O ? _ : -1;
|
|
9354
9359
|
if (O) {
|
|
9355
9360
|
var A = M - O;
|
|
9356
|
-
return A < 0 || A >= E ? -1 : S[
|
|
9361
|
+
return A < 0 || A >= E ? -1 : S[_ + A] - 1;
|
|
9357
9362
|
}
|
|
9358
|
-
for (var D =
|
|
9363
|
+
for (var D = _, j = D + E - 1; D <= j; ) {
|
|
9359
9364
|
var U = D + j >>> 1, fe = S[U];
|
|
9360
9365
|
if (fe < M)
|
|
9361
9366
|
D = U + 1;
|
|
@@ -9367,21 +9372,21 @@ var Ei = {};
|
|
|
9367
9372
|
return -1;
|
|
9368
9373
|
}
|
|
9369
9374
|
t.determineBranch = C;
|
|
9370
|
-
var N = w(a.default),
|
|
9375
|
+
var N = w(a.default), R = w(i.default);
|
|
9371
9376
|
function I(S, T) {
|
|
9372
|
-
return T === void 0 && (T =
|
|
9377
|
+
return T === void 0 && (T = v.Legacy), N(S, T);
|
|
9373
9378
|
}
|
|
9374
9379
|
t.decodeHTML = I;
|
|
9375
9380
|
function L(S) {
|
|
9376
|
-
return N(S,
|
|
9381
|
+
return N(S, v.Attribute);
|
|
9377
9382
|
}
|
|
9378
9383
|
t.decodeHTMLAttribute = L;
|
|
9379
9384
|
function $(S) {
|
|
9380
|
-
return N(S,
|
|
9385
|
+
return N(S, v.Strict);
|
|
9381
9386
|
}
|
|
9382
9387
|
t.decodeHTMLStrict = $;
|
|
9383
9388
|
function B(S) {
|
|
9384
|
-
return
|
|
9389
|
+
return R(S, v.Strict);
|
|
9385
9390
|
}
|
|
9386
9391
|
t.decodeXML = B;
|
|
9387
9392
|
})(Sn);
|
|
@@ -9426,7 +9431,7 @@ var Ei = {};
|
|
|
9426
9431
|
/** @class */
|
|
9427
9432
|
function() {
|
|
9428
9433
|
function f(d, b) {
|
|
9429
|
-
var g = d.xmlMode, m = g === void 0 ? !1 : g,
|
|
9434
|
+
var g = d.xmlMode, m = g === void 0 ? !1 : g, v = d.decodeEntities, x = v === void 0 ? !0 : v;
|
|
9430
9435
|
this.cbs = b, this.state = n.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = n.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = m, this.decodeEntities = x, this.entityTrie = m ? e.xmlDecodeTree : e.htmlDecodeTree;
|
|
9431
9436
|
}
|
|
9432
9437
|
return f.prototype.reset = function() {
|
|
@@ -11248,25 +11253,25 @@ function f4(t) {
|
|
|
11248
11253
|
} });
|
|
11249
11254
|
})(so);
|
|
11250
11255
|
(function(t) {
|
|
11251
|
-
var e = q && q.__createBinding || (Object.create ? function(
|
|
11256
|
+
var e = q && q.__createBinding || (Object.create ? function(v, x, w, C) {
|
|
11252
11257
|
C === void 0 && (C = w);
|
|
11253
11258
|
var N = Object.getOwnPropertyDescriptor(x, w);
|
|
11254
11259
|
(!N || ("get" in N ? !x.__esModule : N.writable || N.configurable)) && (N = { enumerable: !0, get: function() {
|
|
11255
11260
|
return x[w];
|
|
11256
|
-
} }), Object.defineProperty(
|
|
11257
|
-
} : function(
|
|
11258
|
-
C === void 0 && (C = w),
|
|
11259
|
-
}), r = q && q.__setModuleDefault || (Object.create ? function(
|
|
11260
|
-
Object.defineProperty(
|
|
11261
|
-
} : function(
|
|
11262
|
-
|
|
11263
|
-
}), n = q && q.__importStar || function(
|
|
11264
|
-
if (
|
|
11261
|
+
} }), Object.defineProperty(v, C, N);
|
|
11262
|
+
} : function(v, x, w, C) {
|
|
11263
|
+
C === void 0 && (C = w), v[C] = x[w];
|
|
11264
|
+
}), r = q && q.__setModuleDefault || (Object.create ? function(v, x) {
|
|
11265
|
+
Object.defineProperty(v, "default", { enumerable: !0, value: x });
|
|
11266
|
+
} : function(v, x) {
|
|
11267
|
+
v.default = x;
|
|
11268
|
+
}), n = q && q.__importStar || function(v) {
|
|
11269
|
+
if (v && v.__esModule) return v;
|
|
11265
11270
|
var x = {};
|
|
11266
|
-
if (
|
|
11267
|
-
return r(x,
|
|
11268
|
-
}, o = q && q.__importDefault || function(
|
|
11269
|
-
return
|
|
11271
|
+
if (v != null) for (var w in v) w !== "default" && Object.prototype.hasOwnProperty.call(v, w) && e(x, v, w);
|
|
11272
|
+
return r(x, v), x;
|
|
11273
|
+
}, o = q && q.__importDefault || function(v) {
|
|
11274
|
+
return v && v.__esModule ? v : { default: v };
|
|
11270
11275
|
};
|
|
11271
11276
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.DomUtils = t.parseFeed = t.getFeed = t.ElementType = t.Tokenizer = t.createDomStream = t.parseDOM = t.parseDocument = t.DefaultHandler = t.DomHandler = t.Parser = void 0;
|
|
11272
11277
|
var a = wn, i = wn;
|
|
@@ -11279,17 +11284,17 @@ function f4(t) {
|
|
|
11279
11284
|
} }), Object.defineProperty(t, "DefaultHandler", { enumerable: !0, get: function() {
|
|
11280
11285
|
return s.DomHandler;
|
|
11281
11286
|
} });
|
|
11282
|
-
function l(
|
|
11287
|
+
function l(v, x) {
|
|
11283
11288
|
var w = new u.DomHandler(void 0, x);
|
|
11284
|
-
return new a.Parser(w, x).end(
|
|
11289
|
+
return new a.Parser(w, x).end(v), w.root;
|
|
11285
11290
|
}
|
|
11286
11291
|
t.parseDocument = l;
|
|
11287
|
-
function c(
|
|
11288
|
-
return l(
|
|
11292
|
+
function c(v, x) {
|
|
11293
|
+
return l(v, x).children;
|
|
11289
11294
|
}
|
|
11290
11295
|
t.parseDOM = c;
|
|
11291
|
-
function p(
|
|
11292
|
-
var C = new u.DomHandler(
|
|
11296
|
+
function p(v, x, w) {
|
|
11297
|
+
var C = new u.DomHandler(v, x, w);
|
|
11293
11298
|
return new a.Parser(C, x);
|
|
11294
11299
|
}
|
|
11295
11300
|
t.createDomStream = p;
|
|
@@ -11302,8 +11307,8 @@ function f4(t) {
|
|
|
11302
11307
|
return b.getFeed;
|
|
11303
11308
|
} });
|
|
11304
11309
|
var g = { xmlMode: !0 };
|
|
11305
|
-
function m(
|
|
11306
|
-
return x === void 0 && (x = g), (0, d.getFeed)(c(
|
|
11310
|
+
function m(v, x) {
|
|
11311
|
+
return x === void 0 && (x = g), (0, d.getFeed)(c(v, x));
|
|
11307
11312
|
}
|
|
11308
11313
|
t.parseFeed = m, t.DomUtils = n(so);
|
|
11309
11314
|
})(ff);
|
|
@@ -11411,13 +11416,13 @@ var A4 = Rr, O4 = A4, Bf = { exports: {} };
|
|
|
11411
11416
|
C === "\r";
|
|
11412
11417
|
}
|
|
11413
11418
|
function n(C) {
|
|
11414
|
-
var N,
|
|
11415
|
-
if (
|
|
11416
|
-
return N =
|
|
11419
|
+
var N, R = C.exec(e.substring(m));
|
|
11420
|
+
if (R)
|
|
11421
|
+
return N = R[0], m += N.length, N;
|
|
11417
11422
|
}
|
|
11418
|
-
for (var o = e.length, a = /^[ \t\n\r\u000c]+/, i = /^[, \t\n\r\u000c]+/, u = /^[^ \t\n\r\u000c]+/, s = /[,]+$/, l = /^\d+$/, c = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, p, f, d, b, g, m = 0,
|
|
11423
|
+
for (var o = e.length, a = /^[ \t\n\r\u000c]+/, i = /^[, \t\n\r\u000c]+/, u = /^[^ \t\n\r\u000c]+/, s = /[,]+$/, l = /^\d+$/, c = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, p, f, d, b, g, m = 0, v = []; ; ) {
|
|
11419
11424
|
if (n(i), m >= o)
|
|
11420
|
-
return
|
|
11425
|
+
return v;
|
|
11421
11426
|
p = n(u), f = [], p.slice(-1) === "," ? (p = p.replace(s, ""), w()) : x();
|
|
11422
11427
|
}
|
|
11423
11428
|
function x() {
|
|
@@ -11453,10 +11458,10 @@ var A4 = Rr, O4 = A4, Bf = { exports: {} };
|
|
|
11453
11458
|
}
|
|
11454
11459
|
}
|
|
11455
11460
|
function w() {
|
|
11456
|
-
var C = !1, N,
|
|
11461
|
+
var C = !1, N, R, I, L, $ = {}, B, S, T, _, M;
|
|
11457
11462
|
for (L = 0; L < f.length; L++)
|
|
11458
|
-
B = f[L], S = B[B.length - 1], T = B.substring(0, B.length - 1),
|
|
11459
|
-
C ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + B + "'.") : ($.url = p, N && ($.w = N),
|
|
11463
|
+
B = f[L], S = B[B.length - 1], T = B.substring(0, B.length - 1), _ = parseInt(T, 10), M = parseFloat(T), l.test(T) && S === "w" ? ((N || R) && (C = !0), _ === 0 ? C = !0 : N = _) : c.test(T) && S === "x" ? ((N || R || I) && (C = !0), M < 0 ? C = !0 : R = M) : l.test(T) && S === "h" ? ((I || R) && (C = !0), _ === 0 ? C = !0 : I = _) : C = !0;
|
|
11464
|
+
C ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + B + "'.") : ($.url = p, N && ($.w = N), R && ($.d = R), I && ($.h = I), v.push($));
|
|
11460
11465
|
}
|
|
11461
11466
|
};
|
|
11462
11467
|
});
|
|
@@ -11492,10 +11497,10 @@ let Gl = k4, Yl = Ge, Ai = class zf extends Error {
|
|
|
11492
11497
|
let f = u + 1 + p, d = " " + (" " + f).slice(-l) + " | ";
|
|
11493
11498
|
if (f === this.line) {
|
|
11494
11499
|
if (c.length > 160) {
|
|
11495
|
-
let g = 20, m = Math.max(0, this.column - g),
|
|
11500
|
+
let g = 20, m = Math.max(0, this.column - g), v = Math.max(
|
|
11496
11501
|
this.column + g,
|
|
11497
11502
|
this.endColumn + g
|
|
11498
|
-
), x = c.slice(m,
|
|
11503
|
+
), x = c.slice(m, v), w = n(d.replace(/\d/g, " ")) + c.slice(0, Math.min(this.column - 1, g - 1)).replace(/[^\t]/g, " ");
|
|
11499
11504
|
return o(">") + n(d) + a(x) + `
|
|
11500
11505
|
` + w + o("^");
|
|
11501
11506
|
}
|
|
@@ -12706,7 +12711,7 @@ let { dirname: co, relative: u0, resolve: s0, sep: l0 } = Ge, { SourceMapConsume
|
|
|
12706
12711
|
var d0 = p8;
|
|
12707
12712
|
const Ua = 39, nc = 34, Jn = 92, oc = 47, Zn = 10, nn = 32, Qn = 12, eo = 9, to = 13, h8 = 91, m8 = 93, b8 = 40, g8 = 41, v8 = 123, y8 = 125, x8 = 59, w8 = 42, S8 = 58, C8 = 64, ro = /[\t\n\f\r "#'()/;[\\\]{}]/g, no = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, E8 = /.[\r\n"'(/\\]/, ac = /[\da-f]/i;
|
|
12708
12713
|
var T8 = function(e, r = {}) {
|
|
12709
|
-
let n = e.css.valueOf(), o = r.ignoreErrors, a, i, u, s, l, c, p, f, d, b, g = n.length, m = 0,
|
|
12714
|
+
let n = e.css.valueOf(), o = r.ignoreErrors, a, i, u, s, l, c, p, f, d, b, g = n.length, m = 0, v = [], x = [];
|
|
12710
12715
|
function w() {
|
|
12711
12716
|
return m;
|
|
12712
12717
|
}
|
|
@@ -12716,7 +12721,7 @@ var T8 = function(e, r = {}) {
|
|
|
12716
12721
|
function N() {
|
|
12717
12722
|
return x.length === 0 && m >= g;
|
|
12718
12723
|
}
|
|
12719
|
-
function
|
|
12724
|
+
function R(L) {
|
|
12720
12725
|
if (x.length) return x.pop();
|
|
12721
12726
|
if (m >= g) return;
|
|
12722
12727
|
let $ = L ? L.ignoreUnclosed : !1;
|
|
@@ -12745,7 +12750,7 @@ var T8 = function(e, r = {}) {
|
|
|
12745
12750
|
break;
|
|
12746
12751
|
}
|
|
12747
12752
|
case b8: {
|
|
12748
|
-
if (b =
|
|
12753
|
+
if (b = v.length ? v.pop()[1] : "", d = n.charCodeAt(m + 1), b === "url" && d !== Ua && d !== nc && d !== nn && d !== Zn && d !== eo && d !== Qn && d !== to) {
|
|
12749
12754
|
s = m;
|
|
12750
12755
|
do {
|
|
12751
12756
|
if (p = !1, s = n.indexOf(")", s + 1), s === -1)
|
|
@@ -12794,7 +12799,7 @@ var T8 = function(e, r = {}) {
|
|
|
12794
12799
|
break;
|
|
12795
12800
|
}
|
|
12796
12801
|
default: {
|
|
12797
|
-
a === oc && n.charCodeAt(m + 1) === w8 ? (s = n.indexOf("*/", m + 2) + 1, s === 0 && (o || $ ? s = n.length : C("comment")), c = ["comment", n.slice(m, s + 1), m, s], m = s) : (no.lastIndex = m + 1, no.test(n), no.lastIndex === 0 ? s = n.length - 1 : s = no.lastIndex - 2, c = ["word", n.slice(m, s + 1), m, s],
|
|
12802
|
+
a === oc && n.charCodeAt(m + 1) === w8 ? (s = n.indexOf("*/", m + 2) + 1, s === 0 && (o || $ ? s = n.length : C("comment")), c = ["comment", n.slice(m, s + 1), m, s], m = s) : (no.lastIndex = m + 1, no.test(n), no.lastIndex === 0 ? s = n.length - 1 : s = no.lastIndex - 2, c = ["word", n.slice(m, s + 1), m, s], v.push(c), m = s);
|
|
12798
12803
|
break;
|
|
12799
12804
|
}
|
|
12800
12805
|
}
|
|
@@ -12806,7 +12811,7 @@ var T8 = function(e, r = {}) {
|
|
|
12806
12811
|
return {
|
|
12807
12812
|
back: I,
|
|
12808
12813
|
endOfFile: N,
|
|
12809
|
-
nextToken:
|
|
12814
|
+
nextToken: R,
|
|
12810
12815
|
position: w
|
|
12811
12816
|
};
|
|
12812
12817
|
};
|
|
@@ -13774,9 +13779,9 @@ and ensure you are accounting for this risk.
|
|
|
13774
13779
|
let A;
|
|
13775
13780
|
typeof E == "function" ? A = E : typeof E == "string" && (A = On.simpleTransform(E)), O === "*" ? b = A : d[O] = A;
|
|
13776
13781
|
});
|
|
13777
|
-
let g, m,
|
|
13782
|
+
let g, m, v, x, w, C, N = !1;
|
|
13778
13783
|
I();
|
|
13779
|
-
const
|
|
13784
|
+
const R = new v5.Parser({
|
|
13780
13785
|
onopentag: function(E, O) {
|
|
13781
13786
|
if (e.onOpenTag && e.onOpenTag(E, O), e.enforceHtmlBoundary && E === "html" && I(), w) {
|
|
13782
13787
|
C++;
|
|
@@ -13787,7 +13792,7 @@ and ensure you are accounting for this risk.
|
|
|
13787
13792
|
let D = !1;
|
|
13788
13793
|
const j = !!A.text;
|
|
13789
13794
|
let U;
|
|
13790
|
-
if (ht(d, E) && (U = d[E](E, O), A.attribs = O = U.attribs, U.text !== void 0 && (A.innerText = U.text), E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), b && (U = b(E, O), A.attribs = O = U.attribs, E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), (!i(E) || e.disallowedTagsMode === "recursiveEscape" && !E5(
|
|
13795
|
+
if (ht(d, E) && (U = d[E](E, O), A.attribs = O = U.attribs, U.text !== void 0 && (A.innerText = U.text), E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), b && (U = b(E, O), A.attribs = O = U.attribs, E !== U.tagName && (A.name = E = U.tagName, x[g] = U.tagName)), (!i(E) || e.disallowedTagsMode === "recursiveEscape" && !E5(v) || e.nestingLimit != null && g >= e.nestingLimit) && (D = !0, v[g] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && u.indexOf(E) !== -1 && (w = !0, C = 1)), g++, D) {
|
|
13791
13796
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
13792
13797
|
if (A.innerText && !j) {
|
|
13793
13798
|
const H = L(A.innerText);
|
|
@@ -13954,9 +13959,9 @@ and ensure you are accounting for this risk.
|
|
|
13954
13959
|
return;
|
|
13955
13960
|
}
|
|
13956
13961
|
w = e.enforceHtmlBoundary ? E === "html" : !1, g--;
|
|
13957
|
-
const D =
|
|
13962
|
+
const D = v[g];
|
|
13958
13963
|
if (D) {
|
|
13959
|
-
if (delete
|
|
13964
|
+
if (delete v[g], e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
13960
13965
|
A.updateParentNodeText();
|
|
13961
13966
|
return;
|
|
13962
13967
|
}
|
|
@@ -13981,9 +13986,9 @@ and ensure you are accounting for this risk.
|
|
|
13981
13986
|
n += "</" + E + ">", D && (n = o + L(n), o = ""), N = !1;
|
|
13982
13987
|
}
|
|
13983
13988
|
}, e.parser);
|
|
13984
|
-
return
|
|
13989
|
+
return R.write(t), R.end(), n;
|
|
13985
13990
|
function I() {
|
|
13986
|
-
n = "", g = 0, m = [],
|
|
13991
|
+
n = "", g = 0, m = [], v = {}, x = {}, w = !1, C = 0;
|
|
13987
13992
|
}
|
|
13988
13993
|
function L(E, O) {
|
|
13989
13994
|
return typeof E != "string" && (E = E + ""), e.parser.decodeEntities && (E = E.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), O && (E = E.replace(/"/g, """))), E = E.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&").replace(/</g, "<").replace(/>/g, ">"), O && (E = E.replace(/"/g, """)), E;
|
|
@@ -14024,7 +14029,7 @@ and ensure you are accounting for this risk.
|
|
|
14024
14029
|
return O[A.selector] && O["*"] ? D = fc(
|
|
14025
14030
|
O[A.selector],
|
|
14026
14031
|
O["*"]
|
|
14027
|
-
) : D = O[A.selector] || O["*"], D && (E.nodes[0].nodes = A.nodes.reduce(
|
|
14032
|
+
) : D = O[A.selector] || O["*"], D && (E.nodes[0].nodes = A.nodes.reduce(_(D), [])), E;
|
|
14028
14033
|
}
|
|
14029
14034
|
function T(E) {
|
|
14030
14035
|
return E.nodes[0].nodes.reduce(function(O, A) {
|
|
@@ -14033,7 +14038,7 @@ and ensure you are accounting for this risk.
|
|
|
14033
14038
|
), O;
|
|
14034
14039
|
}, []).join(";");
|
|
14035
14040
|
}
|
|
14036
|
-
function
|
|
14041
|
+
function _(E) {
|
|
14037
14042
|
return function(O, A) {
|
|
14038
14043
|
return ht(E, A.prop) && E[A.prop].some(function(j) {
|
|
14039
14044
|
return j.test(A.value);
|
|
@@ -14384,12 +14389,12 @@ const C0 = /* @__PURE__ */ Wo(N5), P5 = [
|
|
|
14384
14389
|
n.current && n.current.innerHTML !== e && (n.current.innerHTML = e || "");
|
|
14385
14390
|
}, []);
|
|
14386
14391
|
const l = (m) => {
|
|
14387
|
-
var
|
|
14388
|
-
document.execCommand(m, !1, null), (
|
|
14392
|
+
var v;
|
|
14393
|
+
document.execCommand(m, !1, null), (v = n.current) == null || v.focus(), c();
|
|
14389
14394
|
}, c = () => {
|
|
14390
14395
|
if (n.current) {
|
|
14391
|
-
const m = n.current.innerHTML,
|
|
14392
|
-
r(
|
|
14396
|
+
const m = n.current.innerHTML, v = C0(m, k5);
|
|
14397
|
+
r(v);
|
|
14393
14398
|
}
|
|
14394
14399
|
}, p = () => {
|
|
14395
14400
|
const m = window.getSelection();
|
|
@@ -14405,10 +14410,10 @@ const C0 = /* @__PURE__ */ Wo(N5), P5 = [
|
|
|
14405
14410
|
var m;
|
|
14406
14411
|
if (i) {
|
|
14407
14412
|
f();
|
|
14408
|
-
let
|
|
14409
|
-
|
|
14413
|
+
let v = i.trim();
|
|
14414
|
+
v && !v.match(/^https?:\/\//i) && (v = "https://" + v);
|
|
14410
14415
|
try {
|
|
14411
|
-
new URL(
|
|
14416
|
+
new URL(v), document.execCommand("createLink", !1, v), c();
|
|
14412
14417
|
} catch {
|
|
14413
14418
|
}
|
|
14414
14419
|
}
|
|
@@ -14423,7 +14428,7 @@ const C0 = /* @__PURE__ */ Wo(N5), P5 = [
|
|
|
14423
14428
|
return /* @__PURE__ */ P("div", { className: "space-y-1.5", children: [
|
|
14424
14429
|
/* @__PURE__ */ h("label", { className: "text-xs text-muted-foreground", children: t }),
|
|
14425
14430
|
/* @__PURE__ */ h("div", { className: "flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0", children: /* @__PURE__ */ P(xn, { children: [
|
|
14426
|
-
P5.map(({ command: m, icon:
|
|
14431
|
+
P5.map(({ command: m, icon: v, label: x }) => /* @__PURE__ */ P(Pr, { children: [
|
|
14427
14432
|
/* @__PURE__ */ h(kr, { asChild: !0, children: /* @__PURE__ */ h(
|
|
14428
14433
|
"button",
|
|
14429
14434
|
{
|
|
@@ -14432,7 +14437,7 @@ const C0 = /* @__PURE__ */ Wo(N5), P5 = [
|
|
|
14432
14437
|
w.preventDefault(), l(m);
|
|
14433
14438
|
},
|
|
14434
14439
|
className: `p-1.5 rounded hover:bg-background transition-colors ${g(m) ? "bg-background text-primary" : "text-muted-foreground"}`,
|
|
14435
|
-
children: /* @__PURE__ */ h(
|
|
14440
|
+
children: /* @__PURE__ */ h(v, { className: "h-3.5 w-3.5" })
|
|
14436
14441
|
}
|
|
14437
14442
|
) }),
|
|
14438
14443
|
/* @__PURE__ */ h(tr, { side: "top", children: /* @__PURE__ */ h("p", { children: x }) })
|
|
@@ -14542,23 +14547,27 @@ const C0 = /* @__PURE__ */ Wo(N5), P5 = [
|
|
|
14542
14547
|
textTransform: p = "none",
|
|
14543
14548
|
opacity: f = 100
|
|
14544
14549
|
}) => {
|
|
14545
|
-
const d = Vr(), b = Fo()
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14550
|
+
const d = Vr(), b = Fo();
|
|
14551
|
+
let g, m, v;
|
|
14552
|
+
try {
|
|
14553
|
+
const { connectors: L, events: $ } = oe((B) => ({
|
|
14554
|
+
events: B.events
|
|
14555
|
+
}));
|
|
14556
|
+
g = L.connect, m = L.drag, v = $.selected;
|
|
14557
|
+
} catch {
|
|
14558
|
+
}
|
|
14559
|
+
const x = Ci(t, b), w = typeof l == "object" && !("desktop" in l) ? `${l.top}px ${l.right}px ${l.bottom}px ${l.left}px` : `${l}px`, C = It(r, d, 16), N = It(a, d, 150) / 100, R = It(i, d, 0), I = /<[^>]+>/.test(x);
|
|
14551
14560
|
return /* @__PURE__ */ h(
|
|
14552
14561
|
"div",
|
|
14553
14562
|
{
|
|
14554
|
-
ref: (L) => L && g(m(L)),
|
|
14555
|
-
className: `cursor-move ${
|
|
14563
|
+
ref: (L) => L && g && m && g(m(L)),
|
|
14564
|
+
className: `cursor-move ${v ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
14556
14565
|
style: {
|
|
14557
14566
|
fontSize: `${C}px`,
|
|
14558
14567
|
fontWeight: n,
|
|
14559
14568
|
fontFamily: o,
|
|
14560
14569
|
lineHeight: N,
|
|
14561
|
-
letterSpacing: `${
|
|
14570
|
+
letterSpacing: `${R}px`,
|
|
14562
14571
|
textAlign: u,
|
|
14563
14572
|
color: s,
|
|
14564
14573
|
margin: w,
|
|
@@ -14778,16 +14787,31 @@ const fn = {
|
|
|
14778
14787
|
opacity: p = { desktop: 100 }
|
|
14779
14788
|
}) => {
|
|
14780
14789
|
var L, $, B;
|
|
14781
|
-
const f = Vr(), d = Fo()
|
|
14782
|
-
|
|
14783
|
-
|
|
14790
|
+
const f = Vr(), d = Fo();
|
|
14791
|
+
let b, g, m;
|
|
14792
|
+
try {
|
|
14793
|
+
const { connectors: S, events: T } = oe((_) => ({
|
|
14794
|
+
events: _.events
|
|
14795
|
+
}));
|
|
14796
|
+
b = S.connect, g = S.drag, m = T.selected;
|
|
14797
|
+
} catch {
|
|
14798
|
+
}
|
|
14799
|
+
const v = Ci(t, d), x = `h${e}`;
|
|
14784
14800
|
let w;
|
|
14785
|
-
i === "auto" ? w = ((L = fn[e]) == null ? void 0 : L[f]) || (($ = fn[e]) == null ? void 0 : $.desktop) || 36 : w = It(
|
|
14786
|
-
|
|
14801
|
+
i === "auto" ? w = ((L = fn[e]) == null ? void 0 : L[f]) || (($ = fn[e]) == null ? void 0 : $.desktop) || 36 : w = It(
|
|
14802
|
+
i,
|
|
14803
|
+
f,
|
|
14804
|
+
((B = fn[e]) == null ? void 0 : B.desktop) || 36
|
|
14805
|
+
);
|
|
14806
|
+
const C = It(u, f, 120) / 100, N = It(
|
|
14807
|
+
s,
|
|
14808
|
+
f,
|
|
14809
|
+
-0.5
|
|
14810
|
+
), R = It(p, f, 100), I = typeof l == "object" && !("desktop" in l) ? `${l.top}px ${l.right}px ${l.bottom}px ${l.left}px` : `${l}px`;
|
|
14787
14811
|
return /* @__PURE__ */ h(
|
|
14788
14812
|
x,
|
|
14789
14813
|
{
|
|
14790
|
-
ref: (S) => S && b(g(S)),
|
|
14814
|
+
ref: (S) => S && b && g && b(g(S)),
|
|
14791
14815
|
className: `cursor-move ${m ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
14792
14816
|
style: {
|
|
14793
14817
|
textAlign: r,
|
|
@@ -14799,14 +14823,17 @@ const fn = {
|
|
|
14799
14823
|
letterSpacing: `${N}px`,
|
|
14800
14824
|
margin: I,
|
|
14801
14825
|
textTransform: c,
|
|
14802
|
-
opacity:
|
|
14826
|
+
opacity: R / 100
|
|
14803
14827
|
},
|
|
14804
|
-
children:
|
|
14828
|
+
children: v
|
|
14805
14829
|
}
|
|
14806
14830
|
);
|
|
14807
14831
|
}, D5 = () => {
|
|
14808
14832
|
var a;
|
|
14809
|
-
const t = Vr(), {
|
|
14833
|
+
const t = Vr(), {
|
|
14834
|
+
actions: { setProp: e },
|
|
14835
|
+
props: r
|
|
14836
|
+
} = oe((i) => ({
|
|
14810
14837
|
props: i.data.props
|
|
14811
14838
|
})), n = typeof r.margin == "object" && !("desktop" in r.margin) ? r.margin : { top: 0, right: 0, bottom: 16, left: 0 }, o = () => {
|
|
14812
14839
|
var i;
|
|
@@ -14860,7 +14887,9 @@ const fn = {
|
|
|
14860
14887
|
/* @__PURE__ */ h(
|
|
14861
14888
|
"button",
|
|
14862
14889
|
{
|
|
14863
|
-
onClick: () => e(
|
|
14890
|
+
onClick: () => e(
|
|
14891
|
+
(i) => i.fontSize = i.fontSize === "auto" ? { desktop: o() } : "auto"
|
|
14892
|
+
),
|
|
14864
14893
|
className: `text-xs px-2 py-0.5 rounded ${r.fontSize === "auto" ? "bg-primary/10 text-primary" : "text-muted-foreground"}`,
|
|
14865
14894
|
children: r.fontSize === "auto" ? "Auto (Responsive)" : "Custom"
|
|
14866
14895
|
}
|
|
@@ -15010,16 +15039,19 @@ const es = ({
|
|
|
15010
15039
|
opacity: s = 100,
|
|
15011
15040
|
boxShadow: l = "none"
|
|
15012
15041
|
}) => {
|
|
15013
|
-
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
|
|
15042
|
+
let c, p, f;
|
|
15043
|
+
try {
|
|
15044
|
+
const { connectors: b, events: g } = oe((m) => ({
|
|
15045
|
+
events: m.events
|
|
15046
|
+
}));
|
|
15047
|
+
c = b.connect, p = b.drag, f = g.selected;
|
|
15048
|
+
} catch {
|
|
15049
|
+
}
|
|
15050
|
+
const d = typeof u == "object" ? `${u.top}px ${u.right}px ${u.bottom}px ${u.left}px` : `${u}px`;
|
|
15019
15051
|
return /* @__PURE__ */ h(
|
|
15020
15052
|
"img",
|
|
15021
15053
|
{
|
|
15022
|
-
ref: (b) => b && c(p(b)),
|
|
15054
|
+
ref: (b) => b && c && p && c(p(b)),
|
|
15023
15055
|
src: t,
|
|
15024
15056
|
alt: e,
|
|
15025
15057
|
className: `cursor-move ${f ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
@@ -15196,16 +15228,19 @@ const ts = ({
|
|
|
15196
15228
|
margin: o = { top: 16, right: 0, bottom: 16, left: 0 },
|
|
15197
15229
|
opacity: a = 100
|
|
15198
15230
|
}) => {
|
|
15199
|
-
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
|
|
15231
|
+
let i, u, s;
|
|
15232
|
+
try {
|
|
15233
|
+
const { connectors: c, events: p } = oe((f) => ({
|
|
15234
|
+
events: f.events
|
|
15235
|
+
}));
|
|
15236
|
+
i = c.connect, u = c.drag, s = p.selected;
|
|
15237
|
+
} catch {
|
|
15238
|
+
}
|
|
15239
|
+
const l = typeof o == "object" ? `${o.top}px ${o.right}px ${o.bottom}px ${o.left}px` : `${o}px`;
|
|
15205
15240
|
return /* @__PURE__ */ h(
|
|
15206
15241
|
"hr",
|
|
15207
15242
|
{
|
|
15208
|
-
ref: (c) => c && i(u(c)),
|
|
15243
|
+
ref: (c) => c && i && u && (i == null ? void 0 : i(u == null ? void 0 : u(c))),
|
|
15209
15244
|
className: `cursor-move border-0 ${s ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
15210
15245
|
style: {
|
|
15211
15246
|
width: r === "full" ? "100%" : `${r}%`,
|
|
@@ -15313,16 +15348,18 @@ const rs = ({
|
|
|
15313
15348
|
responsive: e = !1,
|
|
15314
15349
|
mobileHeight: r = 20
|
|
15315
15350
|
}) => {
|
|
15316
|
-
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15351
|
+
let n, o, a;
|
|
15352
|
+
try {
|
|
15353
|
+
const { connectors: i, events: u } = oe((s) => ({
|
|
15354
|
+
events: s.events
|
|
15355
|
+
}));
|
|
15356
|
+
n = i.connect, o = i.drag, a = u.selected;
|
|
15357
|
+
} catch {
|
|
15358
|
+
}
|
|
15322
15359
|
return /* @__PURE__ */ P(
|
|
15323
15360
|
"div",
|
|
15324
15361
|
{
|
|
15325
|
-
ref: (i) => i && n(o(i)),
|
|
15362
|
+
ref: (i) => i && n && o && n(o(i)),
|
|
15326
15363
|
className: `cursor-move w-full relative group ${a ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
15327
15364
|
style: {
|
|
15328
15365
|
height: `${t}px`
|
|
@@ -15423,8 +15460,8 @@ async function z5(t, e) {
|
|
|
15423
15460
|
)).data;
|
|
15424
15461
|
}
|
|
15425
15462
|
function F5(t) {
|
|
15426
|
-
const e =
|
|
15427
|
-
return
|
|
15463
|
+
const e = y.useRef({ value: t, previous: t });
|
|
15464
|
+
return y.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
15428
15465
|
}
|
|
15429
15466
|
var xa = "Checkbox", [q5] = ur(xa), [U5, ns] = q5(xa);
|
|
15430
15467
|
function V5(t) {
|
|
@@ -15446,7 +15483,7 @@ function V5(t) {
|
|
|
15446
15483
|
defaultProp: o ?? !1,
|
|
15447
15484
|
onChange: s,
|
|
15448
15485
|
caller: xa
|
|
15449
|
-
}), [b, g] =
|
|
15486
|
+
}), [b, g] = y.useState(null), [m, v] = y.useState(null), x = y.useRef(!1), w = b ? !!i || !!b.closest("form") : (
|
|
15450
15487
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
15451
15488
|
!0
|
|
15452
15489
|
), C = {
|
|
@@ -15463,7 +15500,7 @@ function V5(t) {
|
|
|
15463
15500
|
defaultChecked: Mt(o) ? !1 : o,
|
|
15464
15501
|
isFormControl: w,
|
|
15465
15502
|
bubbleInput: m,
|
|
15466
|
-
setBubbleInput:
|
|
15503
|
+
setBubbleInput: v
|
|
15467
15504
|
};
|
|
15468
15505
|
return /* @__PURE__ */ h(
|
|
15469
15506
|
U5,
|
|
@@ -15474,7 +15511,7 @@ function V5(t) {
|
|
|
15474
15511
|
}
|
|
15475
15512
|
);
|
|
15476
15513
|
}
|
|
15477
|
-
var E0 = "CheckboxTrigger", T0 =
|
|
15514
|
+
var E0 = "CheckboxTrigger", T0 = y.forwardRef(
|
|
15478
15515
|
({ __scopeCheckbox: t, onKeyDown: e, onClick: r, ...n }, o) => {
|
|
15479
15516
|
const {
|
|
15480
15517
|
control: a,
|
|
@@ -15487,12 +15524,12 @@ var E0 = "CheckboxTrigger", T0 = v.forwardRef(
|
|
|
15487
15524
|
hasConsumerStoppedPropagationRef: f,
|
|
15488
15525
|
isFormControl: d,
|
|
15489
15526
|
bubbleInput: b
|
|
15490
|
-
} = ns(E0, t), g = Ce(o, c), m =
|
|
15491
|
-
return
|
|
15492
|
-
const
|
|
15493
|
-
if (
|
|
15527
|
+
} = ns(E0, t), g = Ce(o, c), m = y.useRef(s);
|
|
15528
|
+
return y.useEffect(() => {
|
|
15529
|
+
const v = a == null ? void 0 : a.form;
|
|
15530
|
+
if (v) {
|
|
15494
15531
|
const x = () => p(m.current);
|
|
15495
|
-
return
|
|
15532
|
+
return v.addEventListener("reset", x), () => v.removeEventListener("reset", x);
|
|
15496
15533
|
}
|
|
15497
15534
|
}, [a, p]), /* @__PURE__ */ h(
|
|
15498
15535
|
be.button,
|
|
@@ -15507,18 +15544,18 @@ var E0 = "CheckboxTrigger", T0 = v.forwardRef(
|
|
|
15507
15544
|
value: i,
|
|
15508
15545
|
...n,
|
|
15509
15546
|
ref: g,
|
|
15510
|
-
onKeyDown: le(e, (
|
|
15511
|
-
|
|
15547
|
+
onKeyDown: le(e, (v) => {
|
|
15548
|
+
v.key === "Enter" && v.preventDefault();
|
|
15512
15549
|
}),
|
|
15513
|
-
onClick: le(r, (
|
|
15514
|
-
p((x) => Mt(x) ? !0 : !x), b && d && (f.current =
|
|
15550
|
+
onClick: le(r, (v) => {
|
|
15551
|
+
p((x) => Mt(x) ? !0 : !x), b && d && (f.current = v.isPropagationStopped(), f.current || v.stopPropagation());
|
|
15515
15552
|
})
|
|
15516
15553
|
}
|
|
15517
15554
|
);
|
|
15518
15555
|
}
|
|
15519
15556
|
);
|
|
15520
15557
|
T0.displayName = E0;
|
|
15521
|
-
var os =
|
|
15558
|
+
var os = y.forwardRef(
|
|
15522
15559
|
(t, e) => {
|
|
15523
15560
|
const {
|
|
15524
15561
|
__scopeCheckbox: r,
|
|
@@ -15565,7 +15602,7 @@ var os = v.forwardRef(
|
|
|
15565
15602
|
}
|
|
15566
15603
|
);
|
|
15567
15604
|
os.displayName = xa;
|
|
15568
|
-
var N0 = "CheckboxIndicator", A0 =
|
|
15605
|
+
var N0 = "CheckboxIndicator", A0 = y.forwardRef(
|
|
15569
15606
|
(t, e) => {
|
|
15570
15607
|
const { __scopeCheckbox: r, forceMount: n, ...o } = t, a = ns(N0, r);
|
|
15571
15608
|
return /* @__PURE__ */ h(
|
|
@@ -15587,7 +15624,7 @@ var N0 = "CheckboxIndicator", A0 = v.forwardRef(
|
|
|
15587
15624
|
}
|
|
15588
15625
|
);
|
|
15589
15626
|
A0.displayName = N0;
|
|
15590
|
-
var O0 = "CheckboxBubbleInput", P0 =
|
|
15627
|
+
var O0 = "CheckboxBubbleInput", P0 = y.forwardRef(
|
|
15591
15628
|
({ __scopeCheckbox: t, ...e }, r) => {
|
|
15592
15629
|
const {
|
|
15593
15630
|
control: n,
|
|
@@ -15602,25 +15639,25 @@ var O0 = "CheckboxBubbleInput", P0 = v.forwardRef(
|
|
|
15602
15639
|
bubbleInput: f,
|
|
15603
15640
|
setBubbleInput: d
|
|
15604
15641
|
} = ns(O0, t), b = Ce(r, d), g = F5(a), m = Ud(n);
|
|
15605
|
-
|
|
15642
|
+
y.useEffect(() => {
|
|
15606
15643
|
const x = f;
|
|
15607
15644
|
if (!x) return;
|
|
15608
15645
|
const w = window.HTMLInputElement.prototype, N = Object.getOwnPropertyDescriptor(
|
|
15609
15646
|
w,
|
|
15610
15647
|
"checked"
|
|
15611
|
-
).set,
|
|
15648
|
+
).set, R = !o.current;
|
|
15612
15649
|
if (g !== a && N) {
|
|
15613
|
-
const I = new Event("click", { bubbles:
|
|
15650
|
+
const I = new Event("click", { bubbles: R });
|
|
15614
15651
|
x.indeterminate = Mt(a), N.call(x, Mt(a) ? !1 : a), x.dispatchEvent(I);
|
|
15615
15652
|
}
|
|
15616
15653
|
}, [f, g, a, o]);
|
|
15617
|
-
const
|
|
15654
|
+
const v = y.useRef(Mt(a) ? !1 : a);
|
|
15618
15655
|
return /* @__PURE__ */ h(
|
|
15619
15656
|
be.input,
|
|
15620
15657
|
{
|
|
15621
15658
|
type: "checkbox",
|
|
15622
15659
|
"aria-hidden": !0,
|
|
15623
|
-
defaultChecked: i ??
|
|
15660
|
+
defaultChecked: i ?? v.current,
|
|
15624
15661
|
required: u,
|
|
15625
15662
|
disabled: s,
|
|
15626
15663
|
name: l,
|
|
@@ -15655,7 +15692,7 @@ function Mt(t) {
|
|
|
15655
15692
|
function k0(t) {
|
|
15656
15693
|
return Mt(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
15657
15694
|
}
|
|
15658
|
-
const _0 =
|
|
15695
|
+
const _0 = y.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
15659
15696
|
os,
|
|
15660
15697
|
{
|
|
15661
15698
|
ref: r,
|
|
@@ -15715,16 +15752,18 @@ const G5 = ({ onDownload: t, disabled: e = !1 }) => {
|
|
|
15715
15752
|
] })
|
|
15716
15753
|
] });
|
|
15717
15754
|
}, Kr = (t) => {
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15755
|
+
let e, r, n = !1;
|
|
15756
|
+
try {
|
|
15757
|
+
const { connectors: o, events: a } = oe((i) => ({
|
|
15758
|
+
events: i.events
|
|
15759
|
+
}));
|
|
15760
|
+
e = o.connect, r = o.drag, n = a.selected;
|
|
15761
|
+
} catch {
|
|
15762
|
+
}
|
|
15724
15763
|
return /* @__PURE__ */ h(
|
|
15725
15764
|
"div",
|
|
15726
15765
|
{
|
|
15727
|
-
ref: (o) => o && e(r(o)),
|
|
15766
|
+
ref: (o) => o && e && r && e(r(o)),
|
|
15728
15767
|
style: ku(t),
|
|
15729
15768
|
className: nt(
|
|
15730
15769
|
`min-h-2.5 ${n ? "outline outline-blue-500" : ""}`,
|
|
@@ -15819,12 +15858,16 @@ const Y5 = (t, e) => {
|
|
|
15819
15858
|
borderRadius: n = 8,
|
|
15820
15859
|
boxShadow: o = "none"
|
|
15821
15860
|
}) => {
|
|
15822
|
-
const a = Vr(), i = Fo()
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15861
|
+
const a = Vr(), i = Fo();
|
|
15862
|
+
let u, s, l;
|
|
15863
|
+
try {
|
|
15864
|
+
const { connectors: m, events: v } = oe((x) => ({
|
|
15865
|
+
events: x.events
|
|
15866
|
+
}));
|
|
15867
|
+
u = m.connect, s = m.drag, l = v.selected;
|
|
15868
|
+
} catch {
|
|
15869
|
+
}
|
|
15870
|
+
const { enabled: c } = Ft((m) => ({
|
|
15828
15871
|
enabled: m.options.enabled
|
|
15829
15872
|
})), p = Y5(t, a), f = {
|
|
15830
15873
|
none: "none",
|
|
@@ -15845,7 +15888,7 @@ const Y5 = (t, e) => {
|
|
|
15845
15888
|
return /* @__PURE__ */ h(
|
|
15846
15889
|
"div",
|
|
15847
15890
|
{
|
|
15848
|
-
ref: (m) => m && u(s(m)),
|
|
15891
|
+
ref: (m) => m && u && s && u(s(m)),
|
|
15849
15892
|
style: d,
|
|
15850
15893
|
className: `transition-all ${l ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
15851
15894
|
children: g ? /* @__PURE__ */ h("div", { className: "space-y-6", children: b.map((m) => /* @__PURE__ */ h(
|
|
@@ -15968,16 +16011,19 @@ const R0 = ({
|
|
|
15968
16011
|
alignItems: o = "stretch",
|
|
15969
16012
|
children: a
|
|
15970
16013
|
}) => {
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
|
|
16014
|
+
let i, u, s;
|
|
16015
|
+
try {
|
|
16016
|
+
const { connectors: p, events: f } = oe((d) => ({
|
|
16017
|
+
events: d.events
|
|
16018
|
+
}));
|
|
16019
|
+
i = p.connect, u = p.drag, s = f.selected;
|
|
16020
|
+
} catch {
|
|
16021
|
+
}
|
|
16022
|
+
const l = typeof r == "object" ? `${r.top}px ${r.right}px ${r.bottom}px ${r.left}px` : `${r}px`, c = typeof n == "object" ? `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px` : `${n}px`;
|
|
15977
16023
|
return /* @__PURE__ */ h(
|
|
15978
16024
|
"div",
|
|
15979
16025
|
{
|
|
15980
|
-
ref: (p) => p && i(u(p)),
|
|
16026
|
+
ref: (p) => p && i && u && (i == null ? void 0 : i(u == null ? void 0 : u(p))),
|
|
15981
16027
|
className: `cursor-move w-full ${s ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
15982
16028
|
style: {
|
|
15983
16029
|
display: "grid",
|
|
@@ -16083,16 +16129,19 @@ const is = ({
|
|
|
16083
16129
|
margin: l = { top: 0, right: 0, bottom: 0, left: 0 },
|
|
16084
16130
|
opacity: c = 100
|
|
16085
16131
|
}) => {
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16132
|
+
let p, f, d;
|
|
16133
|
+
try {
|
|
16134
|
+
const { connectors: g, events: m } = oe((v) => ({
|
|
16135
|
+
events: v.events
|
|
16136
|
+
}));
|
|
16137
|
+
p = g.connect, f = g.drag, d = m.selected;
|
|
16138
|
+
} catch {
|
|
16139
|
+
}
|
|
16140
|
+
const b = typeof l == "object" ? `${l.top}px ${l.right}px ${l.bottom}px ${l.left}px` : `${l}px`;
|
|
16092
16141
|
return /* @__PURE__ */ h(
|
|
16093
16142
|
"a",
|
|
16094
16143
|
{
|
|
16095
|
-
ref: (g) => g && p(f(g)),
|
|
16144
|
+
ref: (g) => g && p && f && p(f(g)),
|
|
16096
16145
|
href: e,
|
|
16097
16146
|
target: r,
|
|
16098
16147
|
rel: r === "_blank" ? "noopener noreferrer" : void 0,
|
|
@@ -16263,16 +16312,19 @@ const I0 = ({
|
|
|
16263
16312
|
opacity: s = 100,
|
|
16264
16313
|
boxShadow: l = "none"
|
|
16265
16314
|
}) => {
|
|
16266
|
-
|
|
16267
|
-
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
|
|
16315
|
+
let c, p, f;
|
|
16316
|
+
try {
|
|
16317
|
+
const { connectors: b, events: g } = oe((m) => ({
|
|
16318
|
+
events: m.events
|
|
16319
|
+
}));
|
|
16320
|
+
c = b.connect, p = b.drag, f = g.selected;
|
|
16321
|
+
} catch {
|
|
16322
|
+
}
|
|
16323
|
+
const d = typeof u == "object" ? `${u.top}px ${u.right}px ${u.bottom}px ${u.left}px` : `${u}px`;
|
|
16272
16324
|
return /* @__PURE__ */ h(
|
|
16273
16325
|
"img",
|
|
16274
16326
|
{
|
|
16275
|
-
ref: (b) => b && c(p(b)),
|
|
16327
|
+
ref: (b) => b && c && p && c(p(b)),
|
|
16276
16328
|
src: t,
|
|
16277
16329
|
alt: e,
|
|
16278
16330
|
className: `cursor-move ${f ? "ring-2 ring-primary ring-offset-2" : ""}`,
|
|
@@ -16449,17 +16501,20 @@ function hc(t = 12) {
|
|
|
16449
16501
|
return n;
|
|
16450
16502
|
}
|
|
16451
16503
|
const D0 = ({ children: t, className: e }) => {
|
|
16452
|
-
|
|
16453
|
-
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16457
|
-
|
|
16504
|
+
let r, n, o = !1;
|
|
16505
|
+
try {
|
|
16506
|
+
const { connectors: u, events: s } = oe((l) => ({
|
|
16507
|
+
events: l.events
|
|
16508
|
+
}));
|
|
16509
|
+
r = u.connect, n = u.drag, o = s.selected;
|
|
16510
|
+
} catch {
|
|
16511
|
+
}
|
|
16512
|
+
const a = hc(), i = hc();
|
|
16458
16513
|
return /* @__PURE__ */ h(
|
|
16459
16514
|
"div",
|
|
16460
16515
|
{
|
|
16461
16516
|
ref: (u) => {
|
|
16462
|
-
u && r(n(u));
|
|
16517
|
+
u && r && n && r(n(u));
|
|
16463
16518
|
},
|
|
16464
16519
|
className: nt(
|
|
16465
16520
|
`min-h-2.5 ${o ? "border border-blue-500" : ""}`,
|
|
@@ -16486,12 +16541,14 @@ D0.craft = {
|
|
|
16486
16541
|
}
|
|
16487
16542
|
};
|
|
16488
16543
|
const us = (t) => {
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16544
|
+
let e, r, n = !1;
|
|
16545
|
+
try {
|
|
16546
|
+
const { connectors: o, events: a } = oe((i) => ({
|
|
16547
|
+
events: i.events
|
|
16548
|
+
}));
|
|
16549
|
+
e = o.connect, r = o.drag, n = a.selected;
|
|
16550
|
+
} catch {
|
|
16551
|
+
}
|
|
16495
16552
|
return /* @__PURE__ */ h(
|
|
16496
16553
|
"div",
|
|
16497
16554
|
{
|
|
@@ -16501,7 +16558,7 @@ const us = (t) => {
|
|
|
16501
16558
|
`${n ? "outline outline-blue-500" : ""}`
|
|
16502
16559
|
),
|
|
16503
16560
|
ref: (o) => {
|
|
16504
|
-
o && e(r(o));
|
|
16561
|
+
o && e && r && e(r(o));
|
|
16505
16562
|
},
|
|
16506
16563
|
children: t.children
|
|
16507
16564
|
}
|
|
@@ -16531,12 +16588,15 @@ const M0 = ({
|
|
|
16531
16588
|
boxShadow: g = "none",
|
|
16532
16589
|
children: m
|
|
16533
16590
|
}) => {
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16591
|
+
let v, x, w;
|
|
16592
|
+
try {
|
|
16593
|
+
const { connectors: I, events: L } = oe(($) => ({
|
|
16594
|
+
events: $.events
|
|
16595
|
+
}));
|
|
16596
|
+
v = I.connect, x = I.drag, w = L.selected;
|
|
16597
|
+
} catch {
|
|
16598
|
+
}
|
|
16599
|
+
const C = typeof e == "object" ? `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px` : `${e}px`, N = typeof r == "object" ? `${r.top}px ${r.right}px ${r.bottom}px ${r.left}px` : `${r}px`, R = [
|
|
16540
16600
|
{
|
|
16541
16601
|
url: "https://myracereel.com/privacy-data-privacy",
|
|
16542
16602
|
name: "Privacy & Data Policy"
|
|
@@ -16570,10 +16630,10 @@ const M0 = ({
|
|
|
16570
16630
|
boxShadow: g === "none" ? "none" : g
|
|
16571
16631
|
},
|
|
16572
16632
|
className: "bg-black",
|
|
16573
|
-
ref: (I) => I &&
|
|
16633
|
+
ref: (I) => I && v && x && v(x(I)),
|
|
16574
16634
|
children: /* @__PURE__ */ h("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ P("div", { className: "w-full flex flex-col py-10 gap-y-3.5 ", children: [
|
|
16575
16635
|
/* @__PURE__ */ h("div", { className: "flex w-full gap-x-1 justify-center items-center", children: /* @__PURE__ */ h("div", { className: "text-white text-sm", children: "Powered by MyRaceReel" }) }),
|
|
16576
|
-
/* @__PURE__ */ h("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children:
|
|
16636
|
+
/* @__PURE__ */ h("div", { className: "flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col", children: R.map((I) => /* @__PURE__ */ h(
|
|
16577
16637
|
"a",
|
|
16578
16638
|
{
|
|
16579
16639
|
className: "text-white",
|
|
@@ -16694,18 +16754,18 @@ const eS = () => {
|
|
|
16694
16754
|
a("Utility", o)
|
|
16695
16755
|
] });
|
|
16696
16756
|
};
|
|
16697
|
-
var tS =
|
|
16757
|
+
var tS = y.createContext(void 0);
|
|
16698
16758
|
function ss(t) {
|
|
16699
|
-
const e =
|
|
16759
|
+
const e = y.useContext(tS);
|
|
16700
16760
|
return t || e || "ltr";
|
|
16701
16761
|
}
|
|
16702
16762
|
function rS(t, [e, r]) {
|
|
16703
16763
|
return Math.min(r, Math.max(e, t));
|
|
16704
16764
|
}
|
|
16705
16765
|
function nS(t, e) {
|
|
16706
|
-
return
|
|
16766
|
+
return y.useReducer((r, n) => e[r][n] ?? r, t);
|
|
16707
16767
|
}
|
|
16708
|
-
var ls = "ScrollArea", [L0] = ur(ls), [oS, $e] = L0(ls), j0 =
|
|
16768
|
+
var ls = "ScrollArea", [L0] = ur(ls), [oS, $e] = L0(ls), j0 = y.forwardRef(
|
|
16709
16769
|
(t, e) => {
|
|
16710
16770
|
const {
|
|
16711
16771
|
__scopeScrollArea: r,
|
|
@@ -16713,7 +16773,7 @@ var ls = "ScrollArea", [L0] = ur(ls), [oS, $e] = L0(ls), j0 = v.forwardRef(
|
|
|
16713
16773
|
dir: o,
|
|
16714
16774
|
scrollHideDelay: a = 600,
|
|
16715
16775
|
...i
|
|
16716
|
-
} = t, [u, s] =
|
|
16776
|
+
} = t, [u, s] = y.useState(null), [l, c] = y.useState(null), [p, f] = y.useState(null), [d, b] = y.useState(null), [g, m] = y.useState(null), [v, x] = y.useState(0), [w, C] = y.useState(0), [N, R] = y.useState(!1), [I, L] = y.useState(!1), $ = Ce(e, (S) => s(S)), B = ss(o);
|
|
16717
16777
|
return /* @__PURE__ */ h(
|
|
16718
16778
|
oS,
|
|
16719
16779
|
{
|
|
@@ -16729,7 +16789,7 @@ var ls = "ScrollArea", [L0] = ur(ls), [oS, $e] = L0(ls), j0 = v.forwardRef(
|
|
|
16729
16789
|
scrollbarX: d,
|
|
16730
16790
|
onScrollbarXChange: b,
|
|
16731
16791
|
scrollbarXEnabled: N,
|
|
16732
|
-
onScrollbarXEnabledChange:
|
|
16792
|
+
onScrollbarXEnabledChange: R,
|
|
16733
16793
|
scrollbarY: g,
|
|
16734
16794
|
onScrollbarYChange: m,
|
|
16735
16795
|
scrollbarYEnabled: I,
|
|
@@ -16745,7 +16805,7 @@ var ls = "ScrollArea", [L0] = ur(ls), [oS, $e] = L0(ls), j0 = v.forwardRef(
|
|
|
16745
16805
|
style: {
|
|
16746
16806
|
position: "relative",
|
|
16747
16807
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
16748
|
-
"--radix-scroll-area-corner-width":
|
|
16808
|
+
"--radix-scroll-area-corner-width": v + "px",
|
|
16749
16809
|
"--radix-scroll-area-corner-height": w + "px",
|
|
16750
16810
|
...t.style
|
|
16751
16811
|
}
|
|
@@ -16756,9 +16816,9 @@ var ls = "ScrollArea", [L0] = ur(ls), [oS, $e] = L0(ls), j0 = v.forwardRef(
|
|
|
16756
16816
|
}
|
|
16757
16817
|
);
|
|
16758
16818
|
j0.displayName = ls;
|
|
16759
|
-
var $0 = "ScrollAreaViewport", B0 =
|
|
16819
|
+
var $0 = "ScrollAreaViewport", B0 = y.forwardRef(
|
|
16760
16820
|
(t, e) => {
|
|
16761
|
-
const { __scopeScrollArea: r, children: n, nonce: o, ...a } = t, i = $e($0, r), u =
|
|
16821
|
+
const { __scopeScrollArea: r, children: n, nonce: o, ...a } = t, i = $e($0, r), u = y.useRef(null), s = Ce(e, u, i.onViewportChange);
|
|
16762
16822
|
return /* @__PURE__ */ P(Jt, { children: [
|
|
16763
16823
|
/* @__PURE__ */ h(
|
|
16764
16824
|
"style",
|
|
@@ -16798,18 +16858,18 @@ var $0 = "ScrollAreaViewport", B0 = v.forwardRef(
|
|
|
16798
16858
|
}
|
|
16799
16859
|
);
|
|
16800
16860
|
B0.displayName = $0;
|
|
16801
|
-
var lt = "ScrollAreaScrollbar", cs =
|
|
16861
|
+
var lt = "ScrollAreaScrollbar", cs = y.forwardRef(
|
|
16802
16862
|
(t, e) => {
|
|
16803
16863
|
const { forceMount: r, ...n } = t, o = $e(lt, t.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: i } = o, u = t.orientation === "horizontal";
|
|
16804
|
-
return
|
|
16864
|
+
return y.useEffect(() => (u ? a(!0) : i(!0), () => {
|
|
16805
16865
|
u ? a(!1) : i(!1);
|
|
16806
16866
|
}), [u, a, i]), o.type === "hover" ? /* @__PURE__ */ h(aS, { ...n, ref: e, forceMount: r }) : o.type === "scroll" ? /* @__PURE__ */ h(iS, { ...n, ref: e, forceMount: r }) : o.type === "auto" ? /* @__PURE__ */ h(H0, { ...n, ref: e, forceMount: r }) : o.type === "always" ? /* @__PURE__ */ h(ds, { ...n, ref: e }) : null;
|
|
16807
16867
|
}
|
|
16808
16868
|
);
|
|
16809
16869
|
cs.displayName = lt;
|
|
16810
|
-
var aS =
|
|
16811
|
-
const { forceMount: r, ...n } = t, o = $e(lt, t.__scopeScrollArea), [a, i] =
|
|
16812
|
-
return
|
|
16870
|
+
var aS = y.forwardRef((t, e) => {
|
|
16871
|
+
const { forceMount: r, ...n } = t, o = $e(lt, t.__scopeScrollArea), [a, i] = y.useState(!1);
|
|
16872
|
+
return y.useEffect(() => {
|
|
16813
16873
|
const u = o.scrollArea;
|
|
16814
16874
|
let s = 0;
|
|
16815
16875
|
if (u) {
|
|
@@ -16830,7 +16890,7 @@ var aS = v.forwardRef((t, e) => {
|
|
|
16830
16890
|
ref: e
|
|
16831
16891
|
}
|
|
16832
16892
|
) });
|
|
16833
|
-
}), iS =
|
|
16893
|
+
}), iS = y.forwardRef((t, e) => {
|
|
16834
16894
|
const { forceMount: r, ...n } = t, o = $e(lt, t.__scopeScrollArea), a = t.orientation === "horizontal", i = Sa(() => s("SCROLL_END"), 100), [u, s] = nS("hidden", {
|
|
16835
16895
|
hidden: {
|
|
16836
16896
|
SCROLL: "scrolling"
|
|
@@ -16849,12 +16909,12 @@ var aS = v.forwardRef((t, e) => {
|
|
|
16849
16909
|
POINTER_ENTER: "interacting"
|
|
16850
16910
|
}
|
|
16851
16911
|
});
|
|
16852
|
-
return
|
|
16912
|
+
return y.useEffect(() => {
|
|
16853
16913
|
if (u === "idle") {
|
|
16854
16914
|
const l = window.setTimeout(() => s("HIDE"), o.scrollHideDelay);
|
|
16855
16915
|
return () => window.clearTimeout(l);
|
|
16856
16916
|
}
|
|
16857
|
-
}, [u, o.scrollHideDelay, s]),
|
|
16917
|
+
}, [u, o.scrollHideDelay, s]), y.useEffect(() => {
|
|
16858
16918
|
const l = o.viewport, c = a ? "scrollLeft" : "scrollTop";
|
|
16859
16919
|
if (l) {
|
|
16860
16920
|
let p = l[c];
|
|
@@ -16874,8 +16934,8 @@ var aS = v.forwardRef((t, e) => {
|
|
|
16874
16934
|
onPointerLeave: le(t.onPointerLeave, () => s("POINTER_LEAVE"))
|
|
16875
16935
|
}
|
|
16876
16936
|
) });
|
|
16877
|
-
}), H0 =
|
|
16878
|
-
const r = $e(lt, t.__scopeScrollArea), { forceMount: n, ...o } = t, [a, i] =
|
|
16937
|
+
}), H0 = y.forwardRef((t, e) => {
|
|
16938
|
+
const r = $e(lt, t.__scopeScrollArea), { forceMount: n, ...o } = t, [a, i] = y.useState(!1), u = t.orientation === "horizontal", s = Sa(() => {
|
|
16879
16939
|
if (r.viewport) {
|
|
16880
16940
|
const l = r.viewport.offsetWidth < r.viewport.scrollWidth, c = r.viewport.offsetHeight < r.viewport.scrollHeight;
|
|
16881
16941
|
i(u ? l : c);
|
|
@@ -16889,8 +16949,8 @@ var aS = v.forwardRef((t, e) => {
|
|
|
16889
16949
|
ref: e
|
|
16890
16950
|
}
|
|
16891
16951
|
) });
|
|
16892
|
-
}), ds =
|
|
16893
|
-
const { orientation: r = "vertical", ...n } = t, o = $e(lt, t.__scopeScrollArea), a =
|
|
16952
|
+
}), ds = y.forwardRef((t, e) => {
|
|
16953
|
+
const { orientation: r = "vertical", ...n } = t, o = $e(lt, t.__scopeScrollArea), a = y.useRef(null), i = y.useRef(0), [u, s] = y.useState({
|
|
16894
16954
|
content: 0,
|
|
16895
16955
|
viewport: 0,
|
|
16896
16956
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -16943,9 +17003,9 @@ var aS = v.forwardRef((t, e) => {
|
|
|
16943
17003
|
}
|
|
16944
17004
|
}
|
|
16945
17005
|
) : null;
|
|
16946
|
-
}), uS =
|
|
16947
|
-
const { sizes: r, onSizesChange: n, ...o } = t, a = $e(lt, t.__scopeScrollArea), [i, u] =
|
|
16948
|
-
return
|
|
17006
|
+
}), uS = y.forwardRef((t, e) => {
|
|
17007
|
+
const { sizes: r, onSizesChange: n, ...o } = t, a = $e(lt, t.__scopeScrollArea), [i, u] = y.useState(), s = y.useRef(null), l = Ce(e, s, a.onScrollbarXChange);
|
|
17008
|
+
return y.useEffect(() => {
|
|
16949
17009
|
s.current && u(getComputedStyle(s.current));
|
|
16950
17010
|
}, [s]), /* @__PURE__ */ h(
|
|
16951
17011
|
F0,
|
|
@@ -16982,9 +17042,9 @@ var aS = v.forwardRef((t, e) => {
|
|
|
16982
17042
|
}
|
|
16983
17043
|
}
|
|
16984
17044
|
);
|
|
16985
|
-
}), sS =
|
|
16986
|
-
const { sizes: r, onSizesChange: n, ...o } = t, a = $e(lt, t.__scopeScrollArea), [i, u] =
|
|
16987
|
-
return
|
|
17045
|
+
}), sS = y.forwardRef((t, e) => {
|
|
17046
|
+
const { sizes: r, onSizesChange: n, ...o } = t, a = $e(lt, t.__scopeScrollArea), [i, u] = y.useState(), s = y.useRef(null), l = Ce(e, s, a.onScrollbarYChange);
|
|
17047
|
+
return y.useEffect(() => {
|
|
16988
17048
|
s.current && u(getComputedStyle(s.current));
|
|
16989
17049
|
}, [s]), /* @__PURE__ */ h(
|
|
16990
17050
|
F0,
|
|
@@ -17022,7 +17082,7 @@ var aS = v.forwardRef((t, e) => {
|
|
|
17022
17082
|
}
|
|
17023
17083
|
}
|
|
17024
17084
|
);
|
|
17025
|
-
}), [lS, z0] = L0(lt), F0 =
|
|
17085
|
+
}), [lS, z0] = L0(lt), F0 = y.forwardRef((t, e) => {
|
|
17026
17086
|
const {
|
|
17027
17087
|
__scopeScrollArea: r,
|
|
17028
17088
|
sizes: n,
|
|
@@ -17035,20 +17095,20 @@ var aS = v.forwardRef((t, e) => {
|
|
|
17035
17095
|
onWheelScroll: c,
|
|
17036
17096
|
onResize: p,
|
|
17037
17097
|
...f
|
|
17038
|
-
} = t, d = $e(lt, r), [b, g] =
|
|
17098
|
+
} = t, d = $e(lt, r), [b, g] = y.useState(null), m = Ce(e, ($) => g($)), v = y.useRef(null), x = y.useRef(""), w = d.viewport, C = n.content - n.viewport, N = Le(c), R = Le(s), I = Sa(p, 10);
|
|
17039
17099
|
function L($) {
|
|
17040
|
-
if (
|
|
17041
|
-
const B = $.clientX -
|
|
17100
|
+
if (v.current) {
|
|
17101
|
+
const B = $.clientX - v.current.left, S = $.clientY - v.current.top;
|
|
17042
17102
|
l({ x: B, y: S });
|
|
17043
17103
|
}
|
|
17044
17104
|
}
|
|
17045
|
-
return
|
|
17105
|
+
return y.useEffect(() => {
|
|
17046
17106
|
const $ = (B) => {
|
|
17047
17107
|
const S = B.target;
|
|
17048
17108
|
(b == null ? void 0 : b.contains(S)) && N(B, C);
|
|
17049
17109
|
};
|
|
17050
17110
|
return document.addEventListener("wheel", $, { passive: !1 }), () => document.removeEventListener("wheel", $, { passive: !1 });
|
|
17051
|
-
}, [w, b, C, N]),
|
|
17111
|
+
}, [w, b, C, N]), y.useEffect(R, [n, R]), Lr(b, I), Lr(d.content, I), /* @__PURE__ */ h(
|
|
17052
17112
|
lS,
|
|
17053
17113
|
{
|
|
17054
17114
|
scope: r,
|
|
@@ -17056,7 +17116,7 @@ var aS = v.forwardRef((t, e) => {
|
|
|
17056
17116
|
hasThumb: o,
|
|
17057
17117
|
onThumbChange: Le(a),
|
|
17058
17118
|
onThumbPointerUp: Le(i),
|
|
17059
|
-
onThumbPositionChange:
|
|
17119
|
+
onThumbPositionChange: R,
|
|
17060
17120
|
onThumbPointerDown: Le(u),
|
|
17061
17121
|
children: /* @__PURE__ */ h(
|
|
17062
17122
|
be.div,
|
|
@@ -17065,31 +17125,31 @@ var aS = v.forwardRef((t, e) => {
|
|
|
17065
17125
|
ref: m,
|
|
17066
17126
|
style: { position: "absolute", ...f.style },
|
|
17067
17127
|
onPointerDown: le(t.onPointerDown, ($) => {
|
|
17068
|
-
$.button === 0 && ($.target.setPointerCapture($.pointerId),
|
|
17128
|
+
$.button === 0 && ($.target.setPointerCapture($.pointerId), v.current = b.getBoundingClientRect(), x.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", d.viewport && (d.viewport.style.scrollBehavior = "auto"), L($));
|
|
17069
17129
|
}),
|
|
17070
17130
|
onPointerMove: le(t.onPointerMove, L),
|
|
17071
17131
|
onPointerUp: le(t.onPointerUp, ($) => {
|
|
17072
17132
|
const B = $.target;
|
|
17073
|
-
B.hasPointerCapture($.pointerId) && B.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = x.current, d.viewport && (d.viewport.style.scrollBehavior = ""),
|
|
17133
|
+
B.hasPointerCapture($.pointerId) && B.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = x.current, d.viewport && (d.viewport.style.scrollBehavior = ""), v.current = null;
|
|
17074
17134
|
})
|
|
17075
17135
|
}
|
|
17076
17136
|
)
|
|
17077
17137
|
}
|
|
17078
17138
|
);
|
|
17079
|
-
}), Bo = "ScrollAreaThumb", q0 =
|
|
17139
|
+
}), Bo = "ScrollAreaThumb", q0 = y.forwardRef(
|
|
17080
17140
|
(t, e) => {
|
|
17081
17141
|
const { forceMount: r, ...n } = t, o = z0(Bo, t.__scopeScrollArea);
|
|
17082
17142
|
return /* @__PURE__ */ h(sr, { present: r || o.hasThumb, children: /* @__PURE__ */ h(cS, { ref: e, ...n }) });
|
|
17083
17143
|
}
|
|
17084
|
-
), cS =
|
|
17144
|
+
), cS = y.forwardRef(
|
|
17085
17145
|
(t, e) => {
|
|
17086
17146
|
const { __scopeScrollArea: r, style: n, ...o } = t, a = $e(Bo, r), i = z0(Bo, r), { onThumbPositionChange: u } = i, s = Ce(
|
|
17087
17147
|
e,
|
|
17088
17148
|
(p) => i.onThumbChange(p)
|
|
17089
|
-
), l =
|
|
17149
|
+
), l = y.useRef(void 0), c = Sa(() => {
|
|
17090
17150
|
l.current && (l.current(), l.current = void 0);
|
|
17091
17151
|
}, 100);
|
|
17092
|
-
return
|
|
17152
|
+
return y.useEffect(() => {
|
|
17093
17153
|
const p = a.viewport;
|
|
17094
17154
|
if (p) {
|
|
17095
17155
|
const f = () => {
|
|
@@ -17121,15 +17181,15 @@ var aS = v.forwardRef((t, e) => {
|
|
|
17121
17181
|
}
|
|
17122
17182
|
);
|
|
17123
17183
|
q0.displayName = Bo;
|
|
17124
|
-
var fs = "ScrollAreaCorner", U0 =
|
|
17184
|
+
var fs = "ScrollAreaCorner", U0 = y.forwardRef(
|
|
17125
17185
|
(t, e) => {
|
|
17126
17186
|
const r = $e(fs, t.__scopeScrollArea), n = !!(r.scrollbarX && r.scrollbarY);
|
|
17127
17187
|
return r.type !== "scroll" && n ? /* @__PURE__ */ h(dS, { ...t, ref: e }) : null;
|
|
17128
17188
|
}
|
|
17129
17189
|
);
|
|
17130
17190
|
U0.displayName = fs;
|
|
17131
|
-
var dS =
|
|
17132
|
-
const { __scopeScrollArea: r, ...n } = t, o = $e(fs, r), [a, i] =
|
|
17191
|
+
var dS = y.forwardRef((t, e) => {
|
|
17192
|
+
const { __scopeScrollArea: r, ...n } = t, o = $e(fs, r), [a, i] = y.useState(0), [u, s] = y.useState(0), l = !!(a && u);
|
|
17133
17193
|
return Lr(o.scrollbarX, () => {
|
|
17134
17194
|
var p;
|
|
17135
17195
|
const c = ((p = o.scrollbarX) == null ? void 0 : p.offsetHeight) || 0;
|
|
@@ -17193,8 +17253,8 @@ var pS = (t, e = () => {
|
|
|
17193
17253
|
}(), () => window.cancelAnimationFrame(n);
|
|
17194
17254
|
};
|
|
17195
17255
|
function Sa(t, e) {
|
|
17196
|
-
const r = Le(t), n =
|
|
17197
|
-
return
|
|
17256
|
+
const r = Le(t), n = y.useRef(0);
|
|
17257
|
+
return y.useEffect(() => () => window.clearTimeout(n.current), []), y.useCallback(() => {
|
|
17198
17258
|
window.clearTimeout(n.current), n.current = window.setTimeout(r, e);
|
|
17199
17259
|
}, [r, e]);
|
|
17200
17260
|
}
|
|
@@ -17213,13 +17273,13 @@ function Lr(t, e) {
|
|
|
17213
17273
|
}, [t, r]);
|
|
17214
17274
|
}
|
|
17215
17275
|
var Y0 = j0, hS = B0, mS = U0;
|
|
17216
|
-
const ps =
|
|
17276
|
+
const ps = y.forwardRef(({ className: t, children: e, ...r }, n) => /* @__PURE__ */ P(Y0, { ref: n, className: Ee("relative overflow-hidden", t), ...r, children: [
|
|
17217
17277
|
/* @__PURE__ */ h(hS, { className: "h-full w-full rounded-[inherit]", children: e }),
|
|
17218
17278
|
/* @__PURE__ */ h(X0, {}),
|
|
17219
17279
|
/* @__PURE__ */ h(mS, {})
|
|
17220
17280
|
] }));
|
|
17221
17281
|
ps.displayName = Y0.displayName;
|
|
17222
|
-
const X0 =
|
|
17282
|
+
const X0 = y.forwardRef(({ className: t, orientation: e = "vertical", ...r }, n) => /* @__PURE__ */ h(
|
|
17223
17283
|
cs,
|
|
17224
17284
|
{
|
|
17225
17285
|
ref: n,
|
|
@@ -17291,7 +17351,7 @@ const bS = () => {
|
|
|
17291
17351
|
return Ka;
|
|
17292
17352
|
}
|
|
17293
17353
|
}, K0 = ({ nodeId: t, depth: e = 0, onDragStart: r, onDragOver: n, onDrop: o, draggedId: a }) => {
|
|
17294
|
-
const { node: i, actions: u, selectedNodeId: s, childNodes: l, parentId: c } = Ft((T,
|
|
17354
|
+
const { node: i, actions: u, selectedNodeId: s, childNodes: l, parentId: c } = Ft((T, _) => {
|
|
17295
17355
|
var D, j;
|
|
17296
17356
|
const M = T.nodes[t], E = ((D = M == null ? void 0 : M.data) == null ? void 0 : D.nodes) || [], O = T.events.selected ? Array.from(T.events.selected)[0] : null, A = (j = M == null ? void 0 : M.data) == null ? void 0 : j.parent;
|
|
17297
17357
|
return {
|
|
@@ -17302,7 +17362,7 @@ const bS = () => {
|
|
|
17302
17362
|
};
|
|
17303
17363
|
}), [p, f] = Se(!0), [d, b] = Se(!1);
|
|
17304
17364
|
if (!i) return null;
|
|
17305
|
-
const g = i.data.displayName || i.data.name || "Unknown", m = l.length > 0,
|
|
17365
|
+
const g = i.data.displayName || i.data.name || "Unknown", m = l.length > 0, v = s === t, x = t === "ROOT", w = gS(g), C = a === t, N = i.data.isCanvas, R = (T) => {
|
|
17306
17366
|
T.stopPropagation(), x || u.selectNode(t);
|
|
17307
17367
|
}, I = (T) => {
|
|
17308
17368
|
T.stopPropagation(), f(!p);
|
|
@@ -17323,9 +17383,9 @@ const bS = () => {
|
|
|
17323
17383
|
/* @__PURE__ */ P(
|
|
17324
17384
|
"div",
|
|
17325
17385
|
{
|
|
17326
|
-
className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${
|
|
17386
|
+
className: `flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v ? "bg-primary/10 text-primary" : "hover:bg-secondary/50"} ${C ? "opacity-50" : ""} ${d ? "bg-primary/20 ring-1 ring-primary" : ""}`,
|
|
17327
17387
|
style: { paddingLeft: `${e * 12 + 4}px` },
|
|
17328
|
-
onClick:
|
|
17388
|
+
onClick: R,
|
|
17329
17389
|
draggable: !x,
|
|
17330
17390
|
onDragStart: L,
|
|
17331
17391
|
onDragOver: $,
|
|
@@ -17384,11 +17444,11 @@ const bS = () => {
|
|
|
17384
17444
|
};
|
|
17385
17445
|
// @__NO_SIDE_EFFECTS__
|
|
17386
17446
|
function bc(t) {
|
|
17387
|
-
const e = /* @__PURE__ */ yS(t), r =
|
|
17388
|
-
const { children: a, ...i } = n, u =
|
|
17447
|
+
const e = /* @__PURE__ */ yS(t), r = y.forwardRef((n, o) => {
|
|
17448
|
+
const { children: a, ...i } = n, u = y.Children.toArray(a), s = u.find(wS);
|
|
17389
17449
|
if (s) {
|
|
17390
|
-
const l = s.props.children, c = u.map((p) => p === s ?
|
|
17391
|
-
return /* @__PURE__ */ h(e, { ...i, ref: o, children:
|
|
17450
|
+
const l = s.props.children, c = u.map((p) => p === s ? y.Children.count(l) > 1 ? y.Children.only(null) : y.isValidElement(l) ? l.props.children : null : p);
|
|
17451
|
+
return /* @__PURE__ */ h(e, { ...i, ref: o, children: y.isValidElement(l) ? y.cloneElement(l, void 0, c) : null });
|
|
17392
17452
|
}
|
|
17393
17453
|
return /* @__PURE__ */ h(e, { ...i, ref: o, children: a });
|
|
17394
17454
|
});
|
|
@@ -17396,19 +17456,19 @@ function bc(t) {
|
|
|
17396
17456
|
}
|
|
17397
17457
|
// @__NO_SIDE_EFFECTS__
|
|
17398
17458
|
function yS(t) {
|
|
17399
|
-
const e =
|
|
17459
|
+
const e = y.forwardRef((r, n) => {
|
|
17400
17460
|
const { children: o, ...a } = r;
|
|
17401
|
-
if (
|
|
17461
|
+
if (y.isValidElement(o)) {
|
|
17402
17462
|
const i = CS(o), u = SS(a, o.props);
|
|
17403
|
-
return o.type !==
|
|
17463
|
+
return o.type !== y.Fragment && (u.ref = n ? qo(n, i) : i), y.cloneElement(o, u);
|
|
17404
17464
|
}
|
|
17405
|
-
return
|
|
17465
|
+
return y.Children.count(o) > 1 ? y.Children.only(null) : null;
|
|
17406
17466
|
});
|
|
17407
17467
|
return e.displayName = `${t}.SlotClone`, e;
|
|
17408
17468
|
}
|
|
17409
17469
|
var xS = Symbol("radix.slottable");
|
|
17410
17470
|
function wS(t) {
|
|
17411
|
-
return
|
|
17471
|
+
return y.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === xS;
|
|
17412
17472
|
}
|
|
17413
17473
|
function SS(t, e) {
|
|
17414
17474
|
const r = { ...e };
|
|
@@ -17431,21 +17491,21 @@ function ES(t) {
|
|
|
17431
17491
|
e,
|
|
17432
17492
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
17433
17493
|
), i = (g) => {
|
|
17434
|
-
const { scope: m, children:
|
|
17435
|
-
return /* @__PURE__ */ h(o, { scope: m, itemMap: w, collectionRef: x, children:
|
|
17494
|
+
const { scope: m, children: v } = g, x = k.useRef(null), w = k.useRef(/* @__PURE__ */ new Map()).current;
|
|
17495
|
+
return /* @__PURE__ */ h(o, { scope: m, itemMap: w, collectionRef: x, children: v });
|
|
17436
17496
|
};
|
|
17437
17497
|
i.displayName = e;
|
|
17438
17498
|
const u = t + "CollectionSlot", s = /* @__PURE__ */ bc(u), l = k.forwardRef(
|
|
17439
17499
|
(g, m) => {
|
|
17440
|
-
const { scope:
|
|
17500
|
+
const { scope: v, children: x } = g, w = a(u, v), C = Ce(m, w.collectionRef);
|
|
17441
17501
|
return /* @__PURE__ */ h(s, { ref: C, children: x });
|
|
17442
17502
|
}
|
|
17443
17503
|
);
|
|
17444
17504
|
l.displayName = u;
|
|
17445
17505
|
const c = t + "CollectionItemSlot", p = "data-radix-collection-item", f = /* @__PURE__ */ bc(c), d = k.forwardRef(
|
|
17446
17506
|
(g, m) => {
|
|
17447
|
-
const { scope:
|
|
17448
|
-
return k.useEffect(() => (
|
|
17507
|
+
const { scope: v, children: x, ...w } = g, C = k.useRef(null), N = Ce(m, C), R = a(c, v);
|
|
17508
|
+
return k.useEffect(() => (R.itemMap.set(C, { ref: C, ...w }), () => void R.itemMap.delete(C))), /* @__PURE__ */ h(f, { [p]: "", ref: N, children: x });
|
|
17449
17509
|
}
|
|
17450
17510
|
);
|
|
17451
17511
|
d.displayName = c;
|
|
@@ -17456,7 +17516,7 @@ function ES(t) {
|
|
|
17456
17516
|
if (!x) return [];
|
|
17457
17517
|
const w = Array.from(x.querySelectorAll(`[${p}]`));
|
|
17458
17518
|
return Array.from(m.itemMap.values()).sort(
|
|
17459
|
-
(
|
|
17519
|
+
(R, I) => w.indexOf(R.ref.current) - w.indexOf(I.ref.current)
|
|
17460
17520
|
);
|
|
17461
17521
|
}, [m.collectionRef, m.itemMap]);
|
|
17462
17522
|
}
|
|
@@ -17469,11 +17529,11 @@ function ES(t) {
|
|
|
17469
17529
|
var Va = "rovingFocusGroup.onEntryFocus", TS = { bubbles: !1, cancelable: !0 }, $n = "RovingFocusGroup", [Fi, J0, NS] = ES($n), [AS, Z0] = ur(
|
|
17470
17530
|
$n,
|
|
17471
17531
|
[NS]
|
|
17472
|
-
), [OS, PS] = AS($n), Q0 =
|
|
17532
|
+
), [OS, PS] = AS($n), Q0 = y.forwardRef(
|
|
17473
17533
|
(t, e) => /* @__PURE__ */ h(Fi.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Fi.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(kS, { ...t, ref: e }) }) })
|
|
17474
17534
|
);
|
|
17475
17535
|
Q0.displayName = $n;
|
|
17476
|
-
var kS =
|
|
17536
|
+
var kS = y.forwardRef((t, e) => {
|
|
17477
17537
|
const {
|
|
17478
17538
|
__scopeRovingFocusGroup: r,
|
|
17479
17539
|
orientation: n,
|
|
@@ -17485,13 +17545,13 @@ var kS = v.forwardRef((t, e) => {
|
|
|
17485
17545
|
onEntryFocus: l,
|
|
17486
17546
|
preventScrollOnEntryFocus: c = !1,
|
|
17487
17547
|
...p
|
|
17488
|
-
} = t, f =
|
|
17548
|
+
} = t, f = y.useRef(null), d = Ce(e, f), b = ss(a), [g, m] = Yr({
|
|
17489
17549
|
prop: i,
|
|
17490
17550
|
defaultProp: u ?? null,
|
|
17491
17551
|
onChange: s,
|
|
17492
17552
|
caller: $n
|
|
17493
|
-
}), [
|
|
17494
|
-
return
|
|
17553
|
+
}), [v, x] = y.useState(!1), w = Le(l), C = J0(r), N = y.useRef(!1), [R, I] = y.useState(0);
|
|
17554
|
+
return y.useEffect(() => {
|
|
17495
17555
|
const L = f.current;
|
|
17496
17556
|
if (L)
|
|
17497
17557
|
return L.addEventListener(Va, w), () => L.removeEventListener(Va, w);
|
|
@@ -17503,23 +17563,23 @@ var kS = v.forwardRef((t, e) => {
|
|
|
17503
17563
|
dir: b,
|
|
17504
17564
|
loop: o,
|
|
17505
17565
|
currentTabStopId: g,
|
|
17506
|
-
onItemFocus:
|
|
17566
|
+
onItemFocus: y.useCallback(
|
|
17507
17567
|
(L) => m(L),
|
|
17508
17568
|
[m]
|
|
17509
17569
|
),
|
|
17510
|
-
onItemShiftTab:
|
|
17511
|
-
onFocusableItemAdd:
|
|
17570
|
+
onItemShiftTab: y.useCallback(() => x(!0), []),
|
|
17571
|
+
onFocusableItemAdd: y.useCallback(
|
|
17512
17572
|
() => I((L) => L + 1),
|
|
17513
17573
|
[]
|
|
17514
17574
|
),
|
|
17515
|
-
onFocusableItemRemove:
|
|
17575
|
+
onFocusableItemRemove: y.useCallback(
|
|
17516
17576
|
() => I((L) => L - 1),
|
|
17517
17577
|
[]
|
|
17518
17578
|
),
|
|
17519
17579
|
children: /* @__PURE__ */ h(
|
|
17520
17580
|
be.div,
|
|
17521
17581
|
{
|
|
17522
|
-
tabIndex:
|
|
17582
|
+
tabIndex: v || R === 0 ? -1 : 0,
|
|
17523
17583
|
"data-orientation": n,
|
|
17524
17584
|
...p,
|
|
17525
17585
|
ref: d,
|
|
@@ -17529,10 +17589,10 @@ var kS = v.forwardRef((t, e) => {
|
|
|
17529
17589
|
}),
|
|
17530
17590
|
onFocus: le(t.onFocus, (L) => {
|
|
17531
17591
|
const $ = !N.current;
|
|
17532
|
-
if (L.target === L.currentTarget && $ && !
|
|
17592
|
+
if (L.target === L.currentTarget && $ && !v) {
|
|
17533
17593
|
const B = new CustomEvent(Va, TS);
|
|
17534
17594
|
if (L.currentTarget.dispatchEvent(B), !B.defaultPrevented) {
|
|
17535
|
-
const S = C().filter((O) => O.focusable), T = S.find((O) => O.active),
|
|
17595
|
+
const S = C().filter((O) => O.focusable), T = S.find((O) => O.active), _ = S.find((O) => O.id === g), E = [T, _, ...S].filter(
|
|
17536
17596
|
Boolean
|
|
17537
17597
|
).map((O) => O.ref.current);
|
|
17538
17598
|
rp(E, c);
|
|
@@ -17545,7 +17605,7 @@ var kS = v.forwardRef((t, e) => {
|
|
|
17545
17605
|
)
|
|
17546
17606
|
}
|
|
17547
17607
|
);
|
|
17548
|
-
}), ep = "RovingFocusGroupItem", tp =
|
|
17608
|
+
}), ep = "RovingFocusGroupItem", tp = y.forwardRef(
|
|
17549
17609
|
(t, e) => {
|
|
17550
17610
|
const {
|
|
17551
17611
|
__scopeRovingFocusGroup: r,
|
|
@@ -17555,7 +17615,7 @@ var kS = v.forwardRef((t, e) => {
|
|
|
17555
17615
|
children: i,
|
|
17556
17616
|
...u
|
|
17557
17617
|
} = t, s = _d(), l = a || s, c = PS(ep, r), p = c.currentTabStopId === l, f = J0(r), { onFocusableItemAdd: d, onFocusableItemRemove: b, currentTabStopId: g } = c;
|
|
17558
|
-
return
|
|
17618
|
+
return y.useEffect(() => {
|
|
17559
17619
|
if (n)
|
|
17560
17620
|
return d(), () => b();
|
|
17561
17621
|
}, [n, d, b]), /* @__PURE__ */ h(
|
|
@@ -17582,14 +17642,14 @@ var kS = v.forwardRef((t, e) => {
|
|
|
17582
17642
|
return;
|
|
17583
17643
|
}
|
|
17584
17644
|
if (m.target !== m.currentTarget) return;
|
|
17585
|
-
const
|
|
17586
|
-
if (
|
|
17645
|
+
const v = IS(m, c.orientation, c.dir);
|
|
17646
|
+
if (v !== void 0) {
|
|
17587
17647
|
if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
|
|
17588
17648
|
m.preventDefault();
|
|
17589
17649
|
let w = f().filter((C) => C.focusable).map((C) => C.ref.current);
|
|
17590
|
-
if (
|
|
17591
|
-
else if (
|
|
17592
|
-
|
|
17650
|
+
if (v === "last") w.reverse();
|
|
17651
|
+
else if (v === "prev" || v === "next") {
|
|
17652
|
+
v === "prev" && w.reverse();
|
|
17593
17653
|
const C = w.indexOf(m.currentTarget);
|
|
17594
17654
|
w = c.loop ? DS(w, C + 1) : w.slice(C + 1);
|
|
17595
17655
|
}
|
|
@@ -17630,7 +17690,7 @@ function rp(t, e = !1) {
|
|
|
17630
17690
|
function DS(t, e) {
|
|
17631
17691
|
return t.map((r, n) => t[(e + n) % t.length]);
|
|
17632
17692
|
}
|
|
17633
|
-
var MS = Q0, LS = tp, np = "Toggle", hs =
|
|
17693
|
+
var MS = Q0, LS = tp, np = "Toggle", hs = y.forwardRef((t, e) => {
|
|
17634
17694
|
const { pressed: r, defaultPressed: n, onPressedChange: o, ...a } = t, [i, u] = Yr({
|
|
17635
17695
|
prop: r,
|
|
17636
17696
|
onChange: o,
|
|
@@ -17795,15 +17855,15 @@ const pp = Bc(
|
|
|
17795
17855
|
size: "default"
|
|
17796
17856
|
}
|
|
17797
17857
|
}
|
|
17798
|
-
), zS =
|
|
17858
|
+
), zS = y.forwardRef(({ className: t, variant: e, size: r, ...n }, o) => /* @__PURE__ */ h(op, { ref: o, className: Ee(pp({ variant: e, size: r, className: t })), ...n }));
|
|
17799
17859
|
zS.displayName = op.displayName;
|
|
17800
|
-
const hp =
|
|
17860
|
+
const hp = y.createContext({
|
|
17801
17861
|
size: "default",
|
|
17802
17862
|
variant: "default"
|
|
17803
|
-
}), mp =
|
|
17863
|
+
}), mp = y.forwardRef(({ className: t, variant: e, size: r, children: n, ...o }, a) => /* @__PURE__ */ h(dp, { ref: a, className: Ee("flex items-center justify-center gap-1", t), ...o, children: /* @__PURE__ */ h(hp.Provider, { value: { variant: e, size: r }, children: n }) }));
|
|
17804
17864
|
mp.displayName = dp.displayName;
|
|
17805
|
-
const bp =
|
|
17806
|
-
const i =
|
|
17865
|
+
const bp = y.forwardRef(({ className: t, children: e, variant: r, size: n, ...o }, a) => {
|
|
17866
|
+
const i = y.useContext(hp);
|
|
17807
17867
|
return /* @__PURE__ */ h(
|
|
17808
17868
|
fp,
|
|
17809
17869
|
{
|
|
@@ -17912,7 +17972,7 @@ function fC(t) {
|
|
|
17912
17972
|
}
|
|
17913
17973
|
var pC = (t) => {
|
|
17914
17974
|
var e, r, n, o, a, i, u, s, l, c, p;
|
|
17915
|
-
let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts:
|
|
17975
|
+
let { invert: f, toast: d, unstyled: b, interacting: g, setHeights: m, visibleToasts: v, heights: x, index: w, toasts: C, expanded: N, removeToast: R, defaultRichColors: I, closeButton: L, style: $, cancelButtonStyle: B, actionButtonStyle: S, className: T = "", descriptionClassName: _ = "", duration: M, position: E, gap: O, loadingIcon: A, expandByDefault: D, classNames: j, icons: U, closeButtonAriaLabel: fe = "Close toast", pauseWhenPageIsHidden: Q } = t, [H, z] = k.useState(null), [me, K] = k.useState(null), [F, Ne] = k.useState(!1), [xe, ge] = k.useState(!1), [Ye, ct] = k.useState(!1), [Xe, Bn] = k.useState(!1), [Ca, Hn] = k.useState(!1), [Ea, Jr] = k.useState(0), [dr, vs] = k.useState(0), Zr = k.useRef(d.duration || M || vc), ys = k.useRef(null), Gt = k.useRef(null), yp = w === 0, xp = w + 1 <= v, De = d.type, fr = d.dismissible !== !1, wp = d.className || "", Sp = d.descriptionClassName || "", zn = k.useMemo(() => x.findIndex((V) => V.toastId === d.id) || 0, [x, d.id]), Cp = k.useMemo(() => {
|
|
17916
17976
|
var V;
|
|
17917
17977
|
return (V = d.closeButton) != null ? V : L;
|
|
17918
17978
|
}, [d.closeButton, L]), xs = k.useMemo(() => d.duration || M || vc, [d.duration, M]), Ta = k.useRef(0), pr = k.useRef(0), ws = k.useRef(0), hr = k.useRef(null), [Ep, Tp] = E.split("-"), Ss = k.useMemo(() => x.reduce((V, re, ce) => ce >= zn ? V : V + re.height, 0), [x, zn]), Cs = KS(), Np = d.invert || f, Na = De === "loading";
|
|
@@ -17935,9 +17995,9 @@ var pC = (t) => {
|
|
|
17935
17995
|
}, [F, d.title, d.description, m, d.id]);
|
|
17936
17996
|
let Ot = k.useCallback(() => {
|
|
17937
17997
|
ge(!0), Jr(pr.current), m((V) => V.filter((re) => re.toastId !== d.id)), setTimeout(() => {
|
|
17938
|
-
|
|
17998
|
+
R(d);
|
|
17939
17999
|
}, dC);
|
|
17940
|
-
}, [d,
|
|
18000
|
+
}, [d, R, m, pr]);
|
|
17941
18001
|
k.useEffect(() => {
|
|
17942
18002
|
if (d.promise && De === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
|
|
17943
18003
|
let V;
|
|
@@ -17983,7 +18043,7 @@ var pC = (t) => {
|
|
|
17983
18043
|
} : () => {
|
|
17984
18044
|
var V;
|
|
17985
18045
|
Ot(), (V = d.onDismiss) == null || V.call(d, d);
|
|
17986
|
-
}, className: Fe(j == null ? void 0 : j.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) }, (a = U == null ? void 0 : U.close) != null ? a : XS) : null, d.jsx || ao(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : k.createElement(k.Fragment, null, De || d.icon || d.promise ? k.createElement("div", { "data-icon": "", className: Fe(j == null ? void 0 : j.icon, (i = d == null ? void 0 : d.classNames) == null ? void 0 : i.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Ap() : null, d.type !== "loading" ? d.icon || (U == null ? void 0 : U[De]) || FS(De) : null) : null, k.createElement("div", { "data-content": "", className: Fe(j == null ? void 0 : j.content, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.content) }, k.createElement("div", { "data-title": "", className: Fe(j == null ? void 0 : j.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? k.createElement("div", { "data-description": "", className: Fe(
|
|
18046
|
+
}, className: Fe(j == null ? void 0 : j.closeButton, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.closeButton) }, (a = U == null ? void 0 : U.close) != null ? a : XS) : null, d.jsx || ao(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : k.createElement(k.Fragment, null, De || d.icon || d.promise ? k.createElement("div", { "data-icon": "", className: Fe(j == null ? void 0 : j.icon, (i = d == null ? void 0 : d.classNames) == null ? void 0 : i.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Ap() : null, d.type !== "loading" ? d.icon || (U == null ? void 0 : U[De]) || FS(De) : null) : null, k.createElement("div", { "data-content": "", className: Fe(j == null ? void 0 : j.content, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.content) }, k.createElement("div", { "data-title": "", className: Fe(j == null ? void 0 : j.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? k.createElement("div", { "data-description": "", className: Fe(_, Sp, j == null ? void 0 : j.description, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.description) }, typeof d.description == "function" ? d.description() : d.description) : null), ao(d.cancel) ? d.cancel : d.cancel && oo(d.cancel) ? k.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle || B, onClick: (V) => {
|
|
17987
18047
|
var re, ce;
|
|
17988
18048
|
oo(d.cancel) && fr && ((ce = (re = d.cancel).onClick) == null || ce.call(re, V), Ot());
|
|
17989
18049
|
}, className: Fe(j == null ? void 0 : j.cancelButton, (c = d == null ? void 0 : d.classNames) == null ? void 0 : c.cancelButton) }, d.cancel.label) : null, ao(d.action) ? d.action : d.action && oo(d.action) ? k.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle || S, onClick: (V) => {
|
|
@@ -18011,7 +18071,7 @@ function hC(t, e) {
|
|
|
18011
18071
|
}), r;
|
|
18012
18072
|
}
|
|
18013
18073
|
Ui(function(t, e) {
|
|
18014
|
-
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: i, className: u, offset: s, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = aC, toastOptions: g, dir: m = yc(), gap:
|
|
18074
|
+
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: a, closeButton: i, className: u, offset: s, mobileOffset: l, theme: c = "light", richColors: p, duration: f, style: d, visibleToasts: b = aC, toastOptions: g, dir: m = yc(), gap: v = lC, loadingIcon: x, icons: w, containerAriaLabel: C = "Notifications", pauseWhenPageIsHidden: N } = t, [R, I] = k.useState([]), L = k.useMemo(() => Array.from(new Set([n].concat(R.filter((Q) => Q.position).map((Q) => Q.position)))), [R, n]), [$, B] = k.useState([]), [S, T] = k.useState(!1), [_, M] = k.useState(!1), [E, O] = k.useState(c !== "system" ? c : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = k.useRef(null), D = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), j = k.useRef(null), U = k.useRef(!1), fe = k.useCallback((Q) => {
|
|
18015
18075
|
I((H) => {
|
|
18016
18076
|
var z;
|
|
18017
18077
|
return (z = H.find((me) => me.id === Q.id)) != null && z.delete || Ae.dismiss(Q.id), H.filter(({ id: me }) => me !== Q.id);
|
|
@@ -18051,8 +18111,8 @@ Ui(function(t, e) {
|
|
|
18051
18111
|
});
|
|
18052
18112
|
}
|
|
18053
18113
|
}, [c]), k.useEffect(() => {
|
|
18054
|
-
|
|
18055
|
-
}, [
|
|
18114
|
+
R.length <= 1 && T(!1);
|
|
18115
|
+
}, [R]), k.useEffect(() => {
|
|
18056
18116
|
let Q = (H) => {
|
|
18057
18117
|
var z, me;
|
|
18058
18118
|
o.every((K) => H[K] || H.code === K) && (T(!0), (z = A.current) == null || z.focus()), H.code === "Escape" && (document.activeElement === A.current || (me = A.current) != null && me.contains(document.activeElement)) && T(!1);
|
|
@@ -18065,17 +18125,17 @@ Ui(function(t, e) {
|
|
|
18065
18125
|
}, [A.current]), k.createElement("section", { ref: e, "aria-label": `${C} ${D}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, L.map((Q, H) => {
|
|
18066
18126
|
var z;
|
|
18067
18127
|
let [me, K] = Q.split("-");
|
|
18068
|
-
return
|
|
18128
|
+
return R.length ? k.createElement("ol", { key: Q, dir: m === "auto" ? yc() : m, tabIndex: -1, ref: A, className: u, "data-sonner-toaster": !0, "data-theme": E, "data-y-position": me, "data-lifted": S && R.length > 1 && !a, "data-x-position": K, style: { "--front-toast-height": `${((z = $[0]) == null ? void 0 : z.height) || 0}px`, "--width": `${sC}px`, "--gap": `${v}px`, ...d, ...hC(s, l) }, onBlur: (F) => {
|
|
18069
18129
|
U.current && !F.currentTarget.contains(F.relatedTarget) && (U.current = !1, j.current && (j.current.focus({ preventScroll: !0 }), j.current = null));
|
|
18070
18130
|
}, onFocus: (F) => {
|
|
18071
18131
|
F.target instanceof HTMLElement && F.target.dataset.dismissible === "false" || U.current || (U.current = !0, j.current = F.relatedTarget);
|
|
18072
18132
|
}, onMouseEnter: () => T(!0), onMouseMove: () => T(!0), onMouseLeave: () => {
|
|
18073
|
-
|
|
18133
|
+
_ || T(!1);
|
|
18074
18134
|
}, onDragEnd: () => T(!1), onPointerDown: (F) => {
|
|
18075
18135
|
F.target instanceof HTMLElement && F.target.dataset.dismissible === "false" || M(!0);
|
|
18076
|
-
}, onPointerUp: () => M(!1) },
|
|
18136
|
+
}, onPointerUp: () => M(!1) }, R.filter((F) => !F.position && H === 0 || F.position === Q).map((F, Ne) => {
|
|
18077
18137
|
var xe, ge;
|
|
18078
|
-
return k.createElement(pC, { key: F.id, icons: w, index: Ne, toast: F, defaultRichColors: p, duration: (xe = g == null ? void 0 : g.duration) != null ? xe : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (ge = g == null ? void 0 : g.closeButton) != null ? ge : i, interacting:
|
|
18138
|
+
return k.createElement(pC, { key: F.id, icons: w, index: Ne, toast: F, defaultRichColors: p, duration: (xe = g == null ? void 0 : g.duration) != null ? xe : f, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: r, visibleToasts: b, closeButton: (ge = g == null ? void 0 : g.closeButton) != null ? ge : i, interacting: _, position: Q, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: fe, toasts: R.filter((Ye) => Ye.position == F.position), heights: $.filter((Ye) => Ye.position == F.position), setHeights: B, expandByDefault: a, gap: v, loadingIcon: x, expanded: S, pauseWhenPageIsHidden: N, swipeDirections: t.swipeDirections });
|
|
18079
18139
|
})) : null;
|
|
18080
18140
|
}));
|
|
18081
18141
|
});
|
|
@@ -18151,18 +18211,23 @@ const gp = {
|
|
|
18151
18211
|
] })
|
|
18152
18212
|
] })
|
|
18153
18213
|
] });
|
|
18154
|
-
}, bs = ({
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
|
|
18158
|
-
|
|
18159
|
-
|
|
18160
|
-
|
|
18214
|
+
}, bs = ({
|
|
18215
|
+
children: t,
|
|
18216
|
+
className: e
|
|
18217
|
+
}) => {
|
|
18218
|
+
let r, n, o = !1;
|
|
18219
|
+
try {
|
|
18220
|
+
const { connectors: a, events: i } = oe((u) => ({
|
|
18221
|
+
events: u.events
|
|
18222
|
+
}));
|
|
18223
|
+
r = a.connect, n = a.drag, o = i.selected;
|
|
18224
|
+
} catch {
|
|
18225
|
+
}
|
|
18161
18226
|
return /* @__PURE__ */ h(
|
|
18162
18227
|
"div",
|
|
18163
18228
|
{
|
|
18164
18229
|
ref: (a) => {
|
|
18165
|
-
a && r(n(a));
|
|
18230
|
+
a && r && n && (r == null || r(n(a)));
|
|
18166
18231
|
},
|
|
18167
18232
|
className: nt("relative min-h-[100vh] bg-white", e || ""),
|
|
18168
18233
|
children: t
|
|
@@ -18174,9 +18239,7 @@ bs.craft = {
|
|
|
18174
18239
|
displayName: "Body",
|
|
18175
18240
|
isCanvas: !0,
|
|
18176
18241
|
rules: {
|
|
18177
|
-
canMoveIn: (t) => t.every(
|
|
18178
|
-
(e) => e.data.displayName !== "Body"
|
|
18179
|
-
)
|
|
18242
|
+
canMoveIn: (t) => t.every((e) => e.data.displayName !== "Body")
|
|
18180
18243
|
}
|
|
18181
18244
|
};
|
|
18182
18245
|
const bC = ({ htmlJson: t }) => {
|
|
@@ -18384,6 +18447,7 @@ export {
|
|
|
18384
18447
|
It as getResponsiveValue,
|
|
18385
18448
|
OC as hasTemplatePlaceholders,
|
|
18386
18449
|
Ci as processTemplate,
|
|
18450
|
+
gs as resolver,
|
|
18387
18451
|
XC as useApiConfig,
|
|
18388
18452
|
Vr as useDeviceSize,
|
|
18389
18453
|
Fo as useEventData
|