@dynamic-mockups/design-system 0.2.20 → 0.2.22
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.mjs
CHANGED
|
@@ -644,11 +644,11 @@ function Pm(e) {
|
|
|
644
644
|
function Sm(e, t) {
|
|
645
645
|
return s.useReducer((n, r) => t[n][r] ?? n, e);
|
|
646
646
|
}
|
|
647
|
-
var
|
|
647
|
+
var fe = (e) => {
|
|
648
648
|
const { present: t, children: n } = e, r = Em(t), o = typeof n == "function" ? n({ present: r.isPresent }) : s.Children.only(n), a = Y(r.ref, Om(o));
|
|
649
649
|
return typeof n == "function" || r.isPresent ? s.cloneElement(o, { ref: a }) : null;
|
|
650
650
|
};
|
|
651
|
-
|
|
651
|
+
fe.displayName = "Presence";
|
|
652
652
|
function Em(e) {
|
|
653
653
|
const [t, n] = s.useState(), r = s.useRef(null), o = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [c, A] = Sm(i, {
|
|
654
654
|
mounted: {
|
|
@@ -774,7 +774,7 @@ ji.displayName = Xi;
|
|
|
774
774
|
var va = "CollapsibleContent", Gi = s.forwardRef(
|
|
775
775
|
(e, t) => {
|
|
776
776
|
const { forceMount: n, ...r } = e, o = ha(va, e.__scopeCollapsible);
|
|
777
|
-
return /* @__PURE__ */ l(
|
|
777
|
+
return /* @__PURE__ */ l(fe, { present: n || o.open, children: ({ present: a }) => /* @__PURE__ */ l(Im, { ...r, ref: t, present: a }) });
|
|
778
778
|
}
|
|
779
779
|
);
|
|
780
780
|
Gi.displayName = va;
|
|
@@ -1728,10 +1728,10 @@ function Uh(e) {
|
|
|
1728
1728
|
var E = window.getSelection(), B = E && E.anchorNode, S = B ? B === O || B.contains(O) : !1;
|
|
1729
1729
|
if (S)
|
|
1730
1730
|
return !1;
|
|
1731
|
-
var
|
|
1732
|
-
if (!
|
|
1731
|
+
var I = Ys(y, O);
|
|
1732
|
+
if (!I)
|
|
1733
1733
|
return !0;
|
|
1734
|
-
if (
|
|
1734
|
+
if (I ? C = y : (C = y === "v" ? "h" : "v", I = Ys(y, O)), !I)
|
|
1735
1735
|
return !1;
|
|
1736
1736
|
if (!r.current && "changedTouches" in m && (w || x) && (r.current = C), !C)
|
|
1737
1737
|
return !0;
|
|
@@ -1900,13 +1900,13 @@ var xa = "DialogPortal", [nv, vc] = Vc(xa, {
|
|
|
1900
1900
|
forceMount: void 0
|
|
1901
1901
|
}), gc = (e) => {
|
|
1902
1902
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = Ge(xa, t);
|
|
1903
|
-
return /* @__PURE__ */ l(nv, { scope: t, forceMount: n, children: s.Children.map(r, (i) => /* @__PURE__ */ l(
|
|
1903
|
+
return /* @__PURE__ */ l(nv, { scope: t, forceMount: n, children: s.Children.map(r, (i) => /* @__PURE__ */ l(fe, { present: n || a.open, children: /* @__PURE__ */ l(Dt, { asChild: !0, container: o, children: i }) })) });
|
|
1904
1904
|
};
|
|
1905
1905
|
gc.displayName = xa;
|
|
1906
1906
|
var Ar = "DialogOverlay", bc = s.forwardRef(
|
|
1907
1907
|
(e, t) => {
|
|
1908
1908
|
const n = vc(Ar, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Ge(Ar, e.__scopeDialog);
|
|
1909
|
-
return a.modal ? /* @__PURE__ */ l(
|
|
1909
|
+
return a.modal ? /* @__PURE__ */ l(fe, { present: r || a.open, children: /* @__PURE__ */ l(ov, { ...o, ref: t }) }) : null;
|
|
1910
1910
|
}
|
|
1911
1911
|
);
|
|
1912
1912
|
bc.displayName = Ar;
|
|
@@ -1930,7 +1930,7 @@ var rv = /* @__PURE__ */ ut("DialogOverlay.RemoveScroll"), ov = s.forwardRef(
|
|
|
1930
1930
|
), St = "DialogContent", yc = s.forwardRef(
|
|
1931
1931
|
(e, t) => {
|
|
1932
1932
|
const n = vc(St, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Ge(St, e.__scopeDialog);
|
|
1933
|
-
return /* @__PURE__ */ l(
|
|
1933
|
+
return /* @__PURE__ */ l(fe, { present: r || a.open, children: a.modal ? /* @__PURE__ */ l(av, { ...o, ref: t }) : /* @__PURE__ */ l(sv, { ...o, ref: t }) });
|
|
1934
1934
|
}
|
|
1935
1935
|
);
|
|
1936
1936
|
yc.displayName = St;
|
|
@@ -2567,7 +2567,7 @@ var $c = "CheckboxIndicator", el = s.forwardRef(
|
|
|
2567
2567
|
(e, t) => {
|
|
2568
2568
|
const { __scopeCheckbox: n, forceMount: r, ...o } = e, a = Da($c, n);
|
|
2569
2569
|
return /* @__PURE__ */ l(
|
|
2570
|
-
|
|
2570
|
+
fe,
|
|
2571
2571
|
{
|
|
2572
2572
|
present: r || At(a.checked) || a.checked === !0,
|
|
2573
2573
|
children: /* @__PURE__ */ l(
|
|
@@ -2937,7 +2937,7 @@ const sg = (e) => ({
|
|
|
2937
2937
|
}, p = za(o), h = Ia(p), m = await i.getDimensions(u), v = p === "y", g = v ? "top" : "left", b = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", x = a.reference[h] + a.reference[p] - f[p] - a.floating[h], C = f[p] - a.reference[p], O = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
2938
2938
|
let y = O ? O[w] : 0;
|
|
2939
2939
|
(!y || !await (i.isElement == null ? void 0 : i.isElement(O))) && (y = c.floating[w] || a.floating[h]);
|
|
2940
|
-
const E = x / 2 - C / 2, B = y / 2 - m[h] / 2 - 1, S = dt(V[g], B),
|
|
2940
|
+
const E = x / 2 - C / 2, B = y / 2 - m[h] / 2 - 1, S = dt(V[g], B), I = dt(V[b], B), G = S, Q = y - m[h] - I, F = y / 2 - m[h] / 2 + E, $ = Xo(G, F, Q), X = !A.arrow && Ut(o) != null && F !== $ && a.reference[h] / 2 - (F < G ? S : I) - m[h] / 2 < 0, q = X ? F < G ? F - G : F - Q : 0;
|
|
2941
2941
|
return {
|
|
2942
2942
|
[p]: f[p] + q,
|
|
2943
2943
|
data: {
|
|
@@ -2986,8 +2986,8 @@ const sg = (e) => ({
|
|
|
2986
2986
|
placement: o,
|
|
2987
2987
|
overflows: B
|
|
2988
2988
|
}], !B.every((F) => F <= 0)) {
|
|
2989
|
-
var
|
|
2990
|
-
const F = (((
|
|
2989
|
+
var I, G;
|
|
2990
|
+
const F = (((I = a.flip) == null ? void 0 : I.index) || 0) + 1, $ = y[F];
|
|
2991
2991
|
if ($ && (!(V === "alignment" ? b !== Fe($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2992
2992
|
// overflows the main axis.
|
|
2993
2993
|
S.every((H) => Fe(H.placement) === b ? H.overflows[0] > 0 : !0)))
|
|
@@ -3007,13 +3007,13 @@ const sg = (e) => ({
|
|
|
3007
3007
|
var Q;
|
|
3008
3008
|
const q = (Q = S.filter((H) => {
|
|
3009
3009
|
if (O) {
|
|
3010
|
-
const
|
|
3011
|
-
return
|
|
3010
|
+
const z = Fe(H.placement);
|
|
3011
|
+
return z === b || // Create a bias to the `y` side axis due to horizontal
|
|
3012
3012
|
// reading directions favoring greater width.
|
|
3013
|
-
|
|
3013
|
+
z === "y";
|
|
3014
3014
|
}
|
|
3015
3015
|
return !0;
|
|
3016
|
-
}).map((H) => [H.placement, H.overflows.filter((
|
|
3016
|
+
}).map((H) => [H.placement, H.overflows.filter((z) => z > 0).reduce((z, _) => z + _, 0)]).sort((H, z) => H[1] - z[1])[0]) == null ? void 0 : Q[0];
|
|
3017
3017
|
q && (X = q);
|
|
3018
3018
|
break;
|
|
3019
3019
|
}
|
|
@@ -3256,8 +3256,8 @@ const Ag = function(e) {
|
|
|
3256
3256
|
const b = m - d.top - d.bottom, w = h - d.left - d.right, x = dt(m - d[v], b), C = dt(h - d[g], w), O = !t.middlewareData.shift;
|
|
3257
3257
|
let y = x, E = C;
|
|
3258
3258
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (E = w), (r = t.middlewareData.shift) != null && r.enabled.y && (y = b), O && !f) {
|
|
3259
|
-
const S = Re(d.left, 0),
|
|
3260
|
-
p ? E = h - 2 * (S !== 0 ||
|
|
3259
|
+
const S = Re(d.left, 0), I = Re(d.right, 0), G = Re(d.top, 0), Q = Re(d.bottom, 0);
|
|
3260
|
+
p ? E = h - 2 * (S !== 0 || I !== 0 ? S + I : Re(d.left, d.right)) : y = m - 2 * (G !== 0 || Q !== 0 ? G + Q : Re(d.top, d.bottom));
|
|
3261
3261
|
}
|
|
3262
3262
|
await A({
|
|
3263
3263
|
...t,
|
|
@@ -3845,7 +3845,7 @@ function Ug(e) {
|
|
|
3845
3845
|
H !== O.current && (O.current = H, m(H));
|
|
3846
3846
|
}, []), w = s.useCallback((H) => {
|
|
3847
3847
|
H !== y.current && (y.current = H, g(H));
|
|
3848
|
-
}, []), x = a || h, C = i || v, O = s.useRef(null), y = s.useRef(null), E = s.useRef(d), B = A != null, S = Eo(A),
|
|
3848
|
+
}, []), x = a || h, C = i || v, O = s.useRef(null), y = s.useRef(null), E = s.useRef(d), B = A != null, S = Eo(A), I = Eo(o), G = Eo(u), Q = s.useCallback(() => {
|
|
3849
3849
|
if (!O.current || !y.current)
|
|
3850
3850
|
return;
|
|
3851
3851
|
const H = {
|
|
@@ -3853,9 +3853,9 @@ function Ug(e) {
|
|
|
3853
3853
|
strategy: n,
|
|
3854
3854
|
middleware: f
|
|
3855
3855
|
};
|
|
3856
|
-
|
|
3856
|
+
I.current && (H.platform = I.current), Fg(O.current, y.current, H).then((z) => {
|
|
3857
3857
|
const _ = {
|
|
3858
|
-
...
|
|
3858
|
+
...z,
|
|
3859
3859
|
// The floating element's position may be recomputed while it's closed
|
|
3860
3860
|
// but still mounted (such as when transitioning out). To ensure
|
|
3861
3861
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -3866,7 +3866,7 @@ function Ug(e) {
|
|
|
3866
3866
|
V(_);
|
|
3867
3867
|
}));
|
|
3868
3868
|
});
|
|
3869
|
-
}, [f, t, n,
|
|
3869
|
+
}, [f, t, n, I, G]);
|
|
3870
3870
|
or(() => {
|
|
3871
3871
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, V((H) => ({
|
|
3872
3872
|
...H,
|
|
@@ -3899,16 +3899,16 @@ function Ug(e) {
|
|
|
3899
3899
|
};
|
|
3900
3900
|
if (!X.floating)
|
|
3901
3901
|
return H;
|
|
3902
|
-
const
|
|
3902
|
+
const z = ci(X.floating, d.x), _ = ci(X.floating, d.y);
|
|
3903
3903
|
return c ? {
|
|
3904
3904
|
...H,
|
|
3905
|
-
transform: "translate(" +
|
|
3905
|
+
transform: "translate(" + z + "px, " + _ + "px)",
|
|
3906
3906
|
...fl(X.floating) >= 1.5 && {
|
|
3907
3907
|
willChange: "transform"
|
|
3908
3908
|
}
|
|
3909
3909
|
} : {
|
|
3910
3910
|
position: n,
|
|
3911
|
-
left:
|
|
3911
|
+
left: z,
|
|
3912
3912
|
top: _
|
|
3913
3913
|
};
|
|
3914
3914
|
}, [n, c, X.floating, d.x, d.y]);
|
|
@@ -4012,9 +4012,9 @@ var Ha = "PopperContent", [ib, cb] = ml(Ha), yl = s.forwardRef(
|
|
|
4012
4012
|
updatePositionStrategy: p = "optimized",
|
|
4013
4013
|
onPlaced: h,
|
|
4014
4014
|
...m
|
|
4015
|
-
} = e, v = hl(Ha, n), [g, b] = s.useState(null), w = Y(t, (he) => b(he)), [x, C] = s.useState(null), O = In(x), y = (O == null ? void 0 : O.width) ?? 0, E = (O == null ? void 0 : O.height) ?? 0, B = r + (a !== "center" ? "-" + a : ""), S = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d },
|
|
4015
|
+
} = e, v = hl(Ha, n), [g, b] = s.useState(null), w = Y(t, (he) => b(he)), [x, C] = s.useState(null), O = In(x), y = (O == null ? void 0 : O.width) ?? 0, E = (O == null ? void 0 : O.height) ?? 0, B = r + (a !== "center" ? "-" + a : ""), S = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, I = Array.isArray(u) ? u : [u], G = I.length > 0, Q = {
|
|
4016
4016
|
padding: S,
|
|
4017
|
-
boundary:
|
|
4017
|
+
boundary: I.filter(Ab),
|
|
4018
4018
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
4019
4019
|
altBoundary: G
|
|
4020
4020
|
}, { refs: F, floatingStyles: $, placement: X, isPositioned: q, middlewareData: H } = Ug({
|
|
@@ -4047,7 +4047,7 @@ var Ha = "PopperContent", [ib, cb] = ml(Ha), yl = s.forwardRef(
|
|
|
4047
4047
|
ub({ arrowWidth: y, arrowHeight: E }),
|
|
4048
4048
|
f && nb({ strategy: "referenceHidden", ...Q })
|
|
4049
4049
|
]
|
|
4050
|
-
}), [
|
|
4050
|
+
}), [z, _] = Nl(X), ce = ve(h);
|
|
4051
4051
|
me(() => {
|
|
4052
4052
|
q && (ce == null || ce());
|
|
4053
4053
|
}, [q, ce]);
|
|
@@ -4082,7 +4082,7 @@ var Ha = "PopperContent", [ib, cb] = ml(Ha), yl = s.forwardRef(
|
|
|
4082
4082
|
ib,
|
|
4083
4083
|
{
|
|
4084
4084
|
scope: n,
|
|
4085
|
-
placedSide:
|
|
4085
|
+
placedSide: z,
|
|
4086
4086
|
onArrowChange: C,
|
|
4087
4087
|
arrowX: ye,
|
|
4088
4088
|
arrowY: J,
|
|
@@ -4090,7 +4090,7 @@ var Ha = "PopperContent", [ib, cb] = ml(Ha), yl = s.forwardRef(
|
|
|
4090
4090
|
children: /* @__PURE__ */ l(
|
|
4091
4091
|
W.div,
|
|
4092
4092
|
{
|
|
4093
|
-
"data-side":
|
|
4093
|
+
"data-side": z,
|
|
4094
4094
|
"data-align": _,
|
|
4095
4095
|
...m,
|
|
4096
4096
|
ref: w,
|
|
@@ -4243,7 +4243,7 @@ var hb = s.forwardRef((e, t) => {
|
|
|
4243
4243
|
if (E.target === E.currentTarget && B && !g) {
|
|
4244
4244
|
const S = new CustomEvent(Oo, db);
|
|
4245
4245
|
if (E.currentTarget.dispatchEvent(S), !S.defaultPrevented) {
|
|
4246
|
-
const
|
|
4246
|
+
const I = x().filter((X) => X.focusable), G = I.find((X) => X.active), Q = I.find((X) => X.id === m), $ = [G, Q, ...I].filter(
|
|
4247
4247
|
Boolean
|
|
4248
4248
|
).map((X) => X.ref.current);
|
|
4249
4249
|
Ol($, d);
|
|
@@ -4394,13 +4394,13 @@ var Za = "MenuPortal", [Mb, Il] = Rt(Za, {
|
|
|
4394
4394
|
forceMount: void 0
|
|
4395
4395
|
}), zl = (e) => {
|
|
4396
4396
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, a = pt(Za, t);
|
|
4397
|
-
return /* @__PURE__ */ l(Mb, { scope: t, forceMount: n, children: /* @__PURE__ */ l(
|
|
4397
|
+
return /* @__PURE__ */ l(Mb, { scope: t, forceMount: n, children: /* @__PURE__ */ l(fe, { present: n || a.open, children: /* @__PURE__ */ l(Dt, { asChild: !0, container: o, children: r }) }) });
|
|
4398
4398
|
};
|
|
4399
4399
|
zl.displayName = Za;
|
|
4400
4400
|
var Le = "MenuContent", [Tb, Ya] = Rt(Le), Ll = s.forwardRef(
|
|
4401
4401
|
(e, t) => {
|
|
4402
4402
|
const n = Il(Le, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = pt(Le, e.__scopeMenu), i = Xn(Le, e.__scopeMenu);
|
|
4403
|
-
return /* @__PURE__ */ l(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(
|
|
4403
|
+
return /* @__PURE__ */ l(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(fe, { present: r || a.open, children: /* @__PURE__ */ l(yn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ l(Db, { ...o, ref: t }) : /* @__PURE__ */ l(Rb, { ...o, ref: t }) }) }) });
|
|
4404
4404
|
}
|
|
4405
4405
|
), Db = s.forwardRef(
|
|
4406
4406
|
(e, t) => {
|
|
@@ -4455,17 +4455,17 @@ var Le = "MenuContent", [Tb, Ya] = Rt(Le), Ll = s.forwardRef(
|
|
|
4455
4455
|
onDismiss: p,
|
|
4456
4456
|
disableOutsideScroll: h,
|
|
4457
4457
|
...m
|
|
4458
|
-
} = e, v = pt(Le, n), g = Xn(Le, n), b = Hn(n), w = Tl(n), x = Pb(n), [C, O] = s.useState(null), y = s.useRef(null), E = Y(t, y, v.onContentChange), B = s.useRef(0), S = s.useRef(""),
|
|
4458
|
+
} = e, v = pt(Le, n), g = Xn(Le, n), b = Hn(n), w = Tl(n), x = Pb(n), [C, O] = s.useState(null), y = s.useRef(null), E = Y(t, y, v.onContentChange), B = s.useRef(0), S = s.useRef(""), I = s.useRef(0), G = s.useRef(null), Q = s.useRef("right"), F = s.useRef(0), $ = h ? Dn : s.Fragment, X = h ? { as: Ib, allowPinchZoom: !0 } : void 0, q = (z) => {
|
|
4459
4459
|
var j, K;
|
|
4460
|
-
const _ = S.current +
|
|
4460
|
+
const _ = S.current + z, ce = x().filter((te) => !te.disabled), ye = document.activeElement, J = (j = ce.find((te) => te.ref.current === ye)) == null ? void 0 : j.textValue, ee = ce.map((te) => te.textValue), we = Fb(ee, _, J), ue = (K = ce.find((te) => te.textValue === we)) == null ? void 0 : K.ref.current;
|
|
4461
4461
|
(function te(re) {
|
|
4462
4462
|
S.current = re, window.clearTimeout(B.current), re !== "" && (B.current = window.setTimeout(() => te(""), 1e3));
|
|
4463
4463
|
})(_), ue && setTimeout(() => ue.focus());
|
|
4464
4464
|
};
|
|
4465
4465
|
s.useEffect(() => () => window.clearTimeout(B.current), []), Ir();
|
|
4466
|
-
const H = s.useCallback((
|
|
4466
|
+
const H = s.useCallback((z) => {
|
|
4467
4467
|
var ce, ye;
|
|
4468
|
-
return Q.current === ((ce = G.current) == null ? void 0 : ce.side) && qb(
|
|
4468
|
+
return Q.current === ((ce = G.current) == null ? void 0 : ce.side) && qb(z, (ye = G.current) == null ? void 0 : ye.area);
|
|
4469
4469
|
}, []);
|
|
4470
4470
|
return /* @__PURE__ */ l(
|
|
4471
4471
|
Tb,
|
|
@@ -4473,36 +4473,36 @@ var Le = "MenuContent", [Tb, Ya] = Rt(Le), Ll = s.forwardRef(
|
|
|
4473
4473
|
scope: n,
|
|
4474
4474
|
searchRef: S,
|
|
4475
4475
|
onItemEnter: s.useCallback(
|
|
4476
|
-
(
|
|
4477
|
-
H(
|
|
4476
|
+
(z) => {
|
|
4477
|
+
H(z) && z.preventDefault();
|
|
4478
4478
|
},
|
|
4479
4479
|
[H]
|
|
4480
4480
|
),
|
|
4481
4481
|
onItemLeave: s.useCallback(
|
|
4482
|
-
(
|
|
4482
|
+
(z) => {
|
|
4483
4483
|
var _;
|
|
4484
|
-
H(
|
|
4484
|
+
H(z) || ((_ = y.current) == null || _.focus(), O(null));
|
|
4485
4485
|
},
|
|
4486
4486
|
[H]
|
|
4487
4487
|
),
|
|
4488
4488
|
onTriggerLeave: s.useCallback(
|
|
4489
|
-
(
|
|
4490
|
-
H(
|
|
4489
|
+
(z) => {
|
|
4490
|
+
H(z) && z.preventDefault();
|
|
4491
4491
|
},
|
|
4492
4492
|
[H]
|
|
4493
4493
|
),
|
|
4494
|
-
pointerGraceTimerRef:
|
|
4495
|
-
onPointerGraceIntentChange: s.useCallback((
|
|
4496
|
-
G.current =
|
|
4494
|
+
pointerGraceTimerRef: I,
|
|
4495
|
+
onPointerGraceIntentChange: s.useCallback((z) => {
|
|
4496
|
+
G.current = z;
|
|
4497
4497
|
}, []),
|
|
4498
4498
|
children: /* @__PURE__ */ l($, { ...X, children: /* @__PURE__ */ l(
|
|
4499
4499
|
Tn,
|
|
4500
4500
|
{
|
|
4501
4501
|
asChild: !0,
|
|
4502
4502
|
trapped: o,
|
|
4503
|
-
onMountAutoFocus: M(a, (
|
|
4503
|
+
onMountAutoFocus: M(a, (z) => {
|
|
4504
4504
|
var _;
|
|
4505
|
-
|
|
4505
|
+
z.preventDefault(), (_ = y.current) == null || _.focus({ preventScroll: !0 });
|
|
4506
4506
|
}),
|
|
4507
4507
|
onUnmountAutoFocus: i,
|
|
4508
4508
|
children: /* @__PURE__ */ l(
|
|
@@ -4525,8 +4525,8 @@ var Le = "MenuContent", [Tb, Ya] = Rt(Le), Ll = s.forwardRef(
|
|
|
4525
4525
|
loop: r,
|
|
4526
4526
|
currentTabStopId: C,
|
|
4527
4527
|
onCurrentTabStopIdChange: O,
|
|
4528
|
-
onEntryFocus: M(A, (
|
|
4529
|
-
g.isUsingKeyboardRef.current ||
|
|
4528
|
+
onEntryFocus: M(A, (z) => {
|
|
4529
|
+
g.isUsingKeyboardRef.current || z.preventDefault();
|
|
4530
4530
|
}),
|
|
4531
4531
|
preventScrollOnEntryFocus: !0,
|
|
4532
4532
|
children: /* @__PURE__ */ l(
|
|
@@ -4541,25 +4541,25 @@ var Le = "MenuContent", [Tb, Ya] = Rt(Le), Ll = s.forwardRef(
|
|
|
4541
4541
|
...m,
|
|
4542
4542
|
ref: E,
|
|
4543
4543
|
style: { outline: "none", ...m.style },
|
|
4544
|
-
onKeyDown: M(m.onKeyDown, (
|
|
4545
|
-
const ce =
|
|
4546
|
-
ce && (
|
|
4544
|
+
onKeyDown: M(m.onKeyDown, (z) => {
|
|
4545
|
+
const ce = z.target.closest("[data-radix-menu-content]") === z.currentTarget, ye = z.ctrlKey || z.altKey || z.metaKey, J = z.key.length === 1;
|
|
4546
|
+
ce && (z.key === "Tab" && z.preventDefault(), !ye && J && q(z.key));
|
|
4547
4547
|
const ee = y.current;
|
|
4548
|
-
if (
|
|
4549
|
-
|
|
4548
|
+
if (z.target !== ee || !xb.includes(z.key)) return;
|
|
4549
|
+
z.preventDefault();
|
|
4550
4550
|
const ue = x().filter((j) => !j.disabled).map((j) => j.ref.current);
|
|
4551
|
-
Ml.includes(
|
|
4551
|
+
Ml.includes(z.key) && ue.reverse(), Zb(ue);
|
|
4552
4552
|
}),
|
|
4553
|
-
onBlur: M(e.onBlur, (
|
|
4554
|
-
|
|
4553
|
+
onBlur: M(e.onBlur, (z) => {
|
|
4554
|
+
z.currentTarget.contains(z.target) || (window.clearTimeout(B.current), S.current = "");
|
|
4555
4555
|
}),
|
|
4556
4556
|
onPointerMove: M(
|
|
4557
4557
|
e.onPointerMove,
|
|
4558
|
-
wn((
|
|
4559
|
-
const _ =
|
|
4560
|
-
if (
|
|
4561
|
-
const ye =
|
|
4562
|
-
Q.current = ye, F.current =
|
|
4558
|
+
wn((z) => {
|
|
4559
|
+
const _ = z.target, ce = F.current !== z.clientX;
|
|
4560
|
+
if (z.currentTarget.contains(_) && ce) {
|
|
4561
|
+
const ye = z.clientX > F.current ? "right" : "left";
|
|
4562
|
+
Q.current = ye, F.current = z.clientX;
|
|
4563
4563
|
}
|
|
4564
4564
|
})
|
|
4565
4565
|
)
|
|
@@ -4724,7 +4724,7 @@ var qa = "MenuItemIndicator", [Zl, Hb] = Rt(
|
|
|
4724
4724
|
(e, t) => {
|
|
4725
4725
|
const { __scopeMenu: n, forceMount: r, ...o } = e, a = Hb(qa, n);
|
|
4726
4726
|
return /* @__PURE__ */ l(
|
|
4727
|
-
|
|
4727
|
+
fe,
|
|
4728
4728
|
{
|
|
4729
4729
|
present: r || mr(a.checked) || a.checked === !0,
|
|
4730
4730
|
children: /* @__PURE__ */ l(
|
|
@@ -4861,7 +4861,7 @@ Jl.displayName = Vn;
|
|
|
4861
4861
|
var Kl = "MenuSubContent", _l = s.forwardRef(
|
|
4862
4862
|
(e, t) => {
|
|
4863
4863
|
const n = Il(Le, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, a = pt(Le, e.__scopeMenu), i = Xn(Le, e.__scopeMenu), c = ql(Kl, e.__scopeMenu), A = s.useRef(null), u = Y(t, A);
|
|
4864
|
-
return /* @__PURE__ */ l(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(
|
|
4864
|
+
return /* @__PURE__ */ l(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(fe, { present: r || a.open, children: /* @__PURE__ */ l(yn.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ l(
|
|
4865
4865
|
Fa,
|
|
4866
4866
|
{
|
|
4867
4867
|
id: c.contentId,
|
|
@@ -5381,13 +5381,13 @@ var _a = "HoverCardPortal", [$y, ew] = nu(_a, {
|
|
|
5381
5381
|
forceMount: void 0
|
|
5382
5382
|
}), su = (e) => {
|
|
5383
5383
|
const { __scopeHoverCard: t, forceMount: n, children: r, container: o } = e, a = Kr(_a, t);
|
|
5384
|
-
return /* @__PURE__ */ l($y, { scope: t, forceMount: n, children: /* @__PURE__ */ l(
|
|
5384
|
+
return /* @__PURE__ */ l($y, { scope: t, forceMount: n, children: /* @__PURE__ */ l(fe, { present: n || a.open, children: /* @__PURE__ */ l(Dt, { asChild: !0, container: o, children: r }) }) });
|
|
5385
5385
|
};
|
|
5386
5386
|
su.displayName = _a;
|
|
5387
5387
|
var hr = "HoverCardContent", iu = s.forwardRef(
|
|
5388
5388
|
(e, t) => {
|
|
5389
5389
|
const n = ew(hr, e.__scopeHoverCard), { forceMount: r = n.forceMount, ...o } = e, a = Kr(hr, e.__scopeHoverCard);
|
|
5390
|
-
return /* @__PURE__ */ l(
|
|
5390
|
+
return /* @__PURE__ */ l(fe, { present: r || a.open, children: /* @__PURE__ */ l(
|
|
5391
5391
|
tw,
|
|
5392
5392
|
{
|
|
5393
5393
|
"data-state": a.open ? "open" : "closed",
|
|
@@ -5551,13 +5551,13 @@ var $a = "PopoverPortal", [Aw, uw] = cu($a, {
|
|
|
5551
5551
|
forceMount: void 0
|
|
5552
5552
|
}), fu = (e) => {
|
|
5553
5553
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, a = mt($a, t);
|
|
5554
|
-
return /* @__PURE__ */ l(Aw, { scope: t, forceMount: n, children: /* @__PURE__ */ l(
|
|
5554
|
+
return /* @__PURE__ */ l(Aw, { scope: t, forceMount: n, children: /* @__PURE__ */ l(fe, { present: n || a.open, children: /* @__PURE__ */ l(Dt, { asChild: !0, container: o, children: r }) }) });
|
|
5555
5555
|
};
|
|
5556
5556
|
fu.displayName = $a;
|
|
5557
5557
|
var Ft = "PopoverContent", pu = s.forwardRef(
|
|
5558
5558
|
(e, t) => {
|
|
5559
5559
|
const n = uw(Ft, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, a = mt(Ft, e.__scopePopover);
|
|
5560
|
-
return /* @__PURE__ */ l(
|
|
5560
|
+
return /* @__PURE__ */ l(fe, { present: r || a.open, children: a.modal ? /* @__PURE__ */ l(Vw, { ...o, ref: t }) : /* @__PURE__ */ l(fw, { ...o, ref: t }) });
|
|
5561
5561
|
}
|
|
5562
5562
|
);
|
|
5563
5563
|
pu.displayName = Ft;
|
|
@@ -5823,7 +5823,7 @@ Cu.displayName = ns;
|
|
|
5823
5823
|
var Pu = "RadioIndicator", Su = s.forwardRef(
|
|
5824
5824
|
(e, t) => {
|
|
5825
5825
|
const { __scopeRadio: n, forceMount: r, ...o } = e, a = Rw(Pu, n);
|
|
5826
|
-
return /* @__PURE__ */ l(
|
|
5826
|
+
return /* @__PURE__ */ l(fe, { present: r || a.checked, children: /* @__PURE__ */ l(
|
|
5827
5827
|
W.span,
|
|
5828
5828
|
{
|
|
5829
5829
|
"data-state": Ou(a.checked),
|
|
@@ -6000,7 +6000,7 @@ var rs = "ScrollArea", [Lu] = Ve(rs), [Zw, ke] = Lu(rs), ku = s.forwardRef(
|
|
|
6000
6000
|
dir: o,
|
|
6001
6001
|
scrollHideDelay: a = 600,
|
|
6002
6002
|
...i
|
|
6003
|
-
} = e, [c, A] = s.useState(null), [u, d] = s.useState(null), [V, f] = s.useState(null), [p, h] = s.useState(null), [m, v] = s.useState(null), [g, b] = s.useState(0), [w, x] = s.useState(0), [C, O] = s.useState(!1), [y, E] = s.useState(!1), B = Y(t, (
|
|
6003
|
+
} = e, [c, A] = s.useState(null), [u, d] = s.useState(null), [V, f] = s.useState(null), [p, h] = s.useState(null), [m, v] = s.useState(null), [g, b] = s.useState(0), [w, x] = s.useState(0), [C, O] = s.useState(!1), [y, E] = s.useState(!1), B = Y(t, (I) => A(I)), S = ft(o);
|
|
6004
6004
|
return /* @__PURE__ */ l(
|
|
6005
6005
|
Zw,
|
|
6006
6006
|
{
|
|
@@ -6109,7 +6109,7 @@ var Yw = s.forwardRef((e, t) => {
|
|
|
6109
6109
|
window.clearTimeout(A), c.removeEventListener("pointerenter", u), c.removeEventListener("pointerleave", d);
|
|
6110
6110
|
};
|
|
6111
6111
|
}
|
|
6112
|
-
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ l(
|
|
6112
|
+
}, [o.scrollArea, o.scrollHideDelay]), /* @__PURE__ */ l(fe, { present: n || a, children: /* @__PURE__ */ l(
|
|
6113
6113
|
Xu,
|
|
6114
6114
|
{
|
|
6115
6115
|
"data-state": a ? "visible" : "hidden",
|
|
@@ -6151,7 +6151,7 @@ var Yw = s.forwardRef((e, t) => {
|
|
|
6151
6151
|
};
|
|
6152
6152
|
return u.addEventListener("scroll", f), () => u.removeEventListener("scroll", f);
|
|
6153
6153
|
}
|
|
6154
|
-
}, [o.viewport, a, A, i]), /* @__PURE__ */ l(
|
|
6154
|
+
}, [o.viewport, a, A, i]), /* @__PURE__ */ l(fe, { present: n || c !== "hidden", children: /* @__PURE__ */ l(
|
|
6155
6155
|
os,
|
|
6156
6156
|
{
|
|
6157
6157
|
"data-state": c === "hidden" ? "hidden" : "visible",
|
|
@@ -6168,7 +6168,7 @@ var Yw = s.forwardRef((e, t) => {
|
|
|
6168
6168
|
i(c ? u : d);
|
|
6169
6169
|
}
|
|
6170
6170
|
}, 10);
|
|
6171
|
-
return Qt(n.viewport, A), Qt(n.content, A), /* @__PURE__ */ l(
|
|
6171
|
+
return Qt(n.viewport, A), Qt(n.content, A), /* @__PURE__ */ l(fe, { present: r || a, children: /* @__PURE__ */ l(
|
|
6172
6172
|
os,
|
|
6173
6173
|
{
|
|
6174
6174
|
"data-state": a ? "visible" : "hidden",
|
|
@@ -6325,14 +6325,14 @@ var Yw = s.forwardRef((e, t) => {
|
|
|
6325
6325
|
} = e, p = ke(_e, n), [h, m] = s.useState(null), v = Y(t, (B) => m(B)), g = s.useRef(null), b = s.useRef(""), w = p.viewport, x = r.content - r.viewport, C = ve(d), O = ve(A), y = to(V, 10);
|
|
6326
6326
|
function E(B) {
|
|
6327
6327
|
if (g.current) {
|
|
6328
|
-
const S = B.clientX - g.current.left,
|
|
6329
|
-
u({ x: S, y:
|
|
6328
|
+
const S = B.clientX - g.current.left, I = B.clientY - g.current.top;
|
|
6329
|
+
u({ x: S, y: I });
|
|
6330
6330
|
}
|
|
6331
6331
|
}
|
|
6332
6332
|
return s.useEffect(() => {
|
|
6333
6333
|
const B = (S) => {
|
|
6334
|
-
const
|
|
6335
|
-
(h == null ? void 0 : h.contains(
|
|
6334
|
+
const I = S.target;
|
|
6335
|
+
(h == null ? void 0 : h.contains(I)) && C(S, x);
|
|
6336
6336
|
};
|
|
6337
6337
|
return document.addEventListener("wheel", B, { passive: !1 }), () => document.removeEventListener("wheel", B, { passive: !1 });
|
|
6338
6338
|
}, [w, h, x, C]), s.useEffect(O, [r, O]), Qt(h, y), Qt(p.content, y), /* @__PURE__ */ l(
|
|
@@ -6366,7 +6366,7 @@ var Yw = s.forwardRef((e, t) => {
|
|
|
6366
6366
|
}), br = "ScrollAreaThumb", Zu = s.forwardRef(
|
|
6367
6367
|
(e, t) => {
|
|
6368
6368
|
const { forceMount: n, ...r } = e, o = ju(br, e.__scopeScrollArea);
|
|
6369
|
-
return /* @__PURE__ */ l(
|
|
6369
|
+
return /* @__PURE__ */ l(fe, { present: n || o.hasThumb, children: /* @__PURE__ */ l(Jw, { ref: t, ...r }) });
|
|
6370
6370
|
}
|
|
6371
6371
|
), Jw = s.forwardRef(
|
|
6372
6372
|
(e, t) => {
|
|
@@ -6528,7 +6528,7 @@ var Uu = ku, Ju = Wu, Fo = Hu, Qo = Zu, ex = Yu, tx = [" ", "Enter", "ArrowUp",
|
|
|
6528
6528
|
defaultProp: c,
|
|
6529
6529
|
onChange: A,
|
|
6530
6530
|
caller: Ot
|
|
6531
|
-
}),
|
|
6531
|
+
}), I = s.useRef(null), G = v ? h || !!v.closest("form") : !0, [Q, F] = s.useState(/* @__PURE__ */ new Set()), $ = Array.from(Q).map((X) => X.props.value).join(";");
|
|
6532
6532
|
return /* @__PURE__ */ l(Kt, { ...m, children: /* @__PURE__ */ N(
|
|
6533
6533
|
ox,
|
|
6534
6534
|
{
|
|
@@ -6546,7 +6546,7 @@ var Uu = ku, Ju = Wu, Fo = Hu, Qo = Zu, ex = Yu, tx = [" ", "Enter", "ArrowUp",
|
|
|
6546
6546
|
open: y,
|
|
6547
6547
|
onOpenChange: E,
|
|
6548
6548
|
dir: O,
|
|
6549
|
-
triggerPointerDownPosRef:
|
|
6549
|
+
triggerPointerDownPosRef: I,
|
|
6550
6550
|
disabled: f,
|
|
6551
6551
|
children: [
|
|
6552
6552
|
/* @__PURE__ */ l(no.Provider, { scope: t, children: /* @__PURE__ */ l(
|
|
@@ -6697,7 +6697,7 @@ var We = 10, [ad, vt] = en(Mt), lx = "SelectContentImpl", Ax = /* @__PURE__ */ u
|
|
|
6697
6697
|
avoidCollisions: v,
|
|
6698
6698
|
//
|
|
6699
6699
|
...g
|
|
6700
|
-
} = e, b = ht(Mt, n), [w, x] = s.useState(null), [C, O] = s.useState(null), y = Y(t, (j) => x(j)), [E, B] = s.useState(null), [S,
|
|
6700
|
+
} = e, b = ht(Mt, n), [w, x] = s.useState(null), [C, O] = s.useState(null), y = Y(t, (j) => x(j)), [E, B] = s.useState(null), [S, I] = s.useState(
|
|
6701
6701
|
null
|
|
6702
6702
|
), G = ro(n), [Q, F] = s.useState(!1), $ = s.useRef(!1);
|
|
6703
6703
|
s.useEffect(() => {
|
|
@@ -6717,24 +6717,24 @@ var We = 10, [ad, vt] = en(Mt), lx = "SelectContentImpl", Ax = /* @__PURE__ */ u
|
|
|
6717
6717
|
s.useEffect(() => {
|
|
6718
6718
|
Q && q();
|
|
6719
6719
|
}, [Q, q]);
|
|
6720
|
-
const { onOpenChange: H, triggerPointerDownPosRef:
|
|
6720
|
+
const { onOpenChange: H, triggerPointerDownPosRef: z } = b;
|
|
6721
6721
|
s.useEffect(() => {
|
|
6722
6722
|
if (w) {
|
|
6723
6723
|
let j = { x: 0, y: 0 };
|
|
6724
6724
|
const K = (re) => {
|
|
6725
6725
|
var ae, ie;
|
|
6726
6726
|
j = {
|
|
6727
|
-
x: Math.abs(Math.round(re.pageX) - (((ae =
|
|
6728
|
-
y: Math.abs(Math.round(re.pageY) - (((ie =
|
|
6727
|
+
x: Math.abs(Math.round(re.pageX) - (((ae = z.current) == null ? void 0 : ae.x) ?? 0)),
|
|
6728
|
+
y: Math.abs(Math.round(re.pageY) - (((ie = z.current) == null ? void 0 : ie.y) ?? 0))
|
|
6729
6729
|
};
|
|
6730
6730
|
}, te = (re) => {
|
|
6731
|
-
j.x <= 10 && j.y <= 10 ? re.preventDefault() : w.contains(re.target) || H(!1), document.removeEventListener("pointermove", K),
|
|
6731
|
+
j.x <= 10 && j.y <= 10 ? re.preventDefault() : w.contains(re.target) || H(!1), document.removeEventListener("pointermove", K), z.current = null;
|
|
6732
6732
|
};
|
|
6733
|
-
return
|
|
6733
|
+
return z.current !== null && (document.addEventListener("pointermove", K), document.addEventListener("pointerup", te, { capture: !0, once: !0 })), () => {
|
|
6734
6734
|
document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", te, { capture: !0 });
|
|
6735
6735
|
};
|
|
6736
6736
|
}
|
|
6737
|
-
}, [w, H,
|
|
6737
|
+
}, [w, H, z]), s.useEffect(() => {
|
|
6738
6738
|
const j = () => H(!1);
|
|
6739
6739
|
return window.addEventListener("blur", j), window.addEventListener("resize", j), () => {
|
|
6740
6740
|
window.removeEventListener("blur", j), window.removeEventListener("resize", j);
|
|
@@ -6752,7 +6752,7 @@ var We = 10, [ad, vt] = en(Mt), lx = "SelectContentImpl", Ax = /* @__PURE__ */ u
|
|
|
6752
6752
|
), J = s.useCallback(() => w == null ? void 0 : w.focus(), [w]), ee = s.useCallback(
|
|
6753
6753
|
(j, K, te) => {
|
|
6754
6754
|
const re = !$.current && !te;
|
|
6755
|
-
(b.value !== void 0 && b.value === K || re) &&
|
|
6755
|
+
(b.value !== void 0 && b.value === K || re) && I(j);
|
|
6756
6756
|
},
|
|
6757
6757
|
[b.value]
|
|
6758
6758
|
), we = r === "popper" ? qo : id, ue = we === qo ? {
|
|
@@ -6868,9 +6868,9 @@ var ux = "SelectItemAlignedPosition", id = s.forwardRef((e, t) => {
|
|
|
6868
6868
|
]);
|
|
6869
6869
|
c.style.minWidth = U + "px", c.style.right = Me + "px";
|
|
6870
6870
|
}
|
|
6871
|
-
const
|
|
6871
|
+
const I = f(), G = window.innerHeight - We * 2, Q = m.scrollHeight, F = window.getComputedStyle(u), $ = parseInt(F.borderTopWidth, 10), X = parseInt(F.paddingTop, 10), q = parseInt(F.borderBottomWidth, 10), H = parseInt(F.paddingBottom, 10), z = $ + X + Q + H + q, _ = Math.min(v.offsetHeight * 5, z), ce = window.getComputedStyle(m), ye = parseInt(ce.paddingTop, 10), J = parseInt(ce.paddingBottom, 10), ee = y.top + y.height / 2 - We, we = G - ee, ue = v.offsetHeight / 2, j = v.offsetTop + ue, K = $ + X + j, te = z - K;
|
|
6872
6872
|
if (K <= ee) {
|
|
6873
|
-
const ae =
|
|
6873
|
+
const ae = I.length > 0 && v === I[I.length - 1].ref.current;
|
|
6874
6874
|
c.style.bottom = "0px";
|
|
6875
6875
|
const ie = u.clientHeight - m.offsetTop - m.offsetHeight, he = Math.max(
|
|
6876
6876
|
we,
|
|
@@ -6879,7 +6879,7 @@ var ux = "SelectItemAlignedPosition", id = s.forwardRef((e, t) => {
|
|
|
6879
6879
|
), U = K + he;
|
|
6880
6880
|
c.style.height = U + "px";
|
|
6881
6881
|
} else {
|
|
6882
|
-
const ae =
|
|
6882
|
+
const ae = I.length > 0 && v === I[0].ref.current;
|
|
6883
6883
|
c.style.top = "0px";
|
|
6884
6884
|
const he = Math.max(
|
|
6885
6885
|
ee,
|
|
@@ -7332,30 +7332,30 @@ var xx = Ku, Nx = $u, Cx = td, Px = nd, Sx = rd, Ex = od, Ox = cd, Mx = Ad, Tx =
|
|
|
7332
7332
|
} = e, v = s.useRef(/* @__PURE__ */ new Set()), g = s.useRef(0), w = i === "horizontal" ? Wx : Hx, [x = [], C] = ge({
|
|
7333
7333
|
prop: d,
|
|
7334
7334
|
defaultProp: u,
|
|
7335
|
-
onChange: (
|
|
7335
|
+
onChange: (I) => {
|
|
7336
7336
|
var Q;
|
|
7337
|
-
(Q = [...v.current][g.current]) == null || Q.focus(), V(
|
|
7337
|
+
(Q = [...v.current][g.current]) == null || Q.focus(), V(I);
|
|
7338
7338
|
}
|
|
7339
7339
|
}), O = s.useRef(x);
|
|
7340
|
-
function y(
|
|
7341
|
-
const G = Yx(x,
|
|
7342
|
-
S(
|
|
7340
|
+
function y(I) {
|
|
7341
|
+
const G = Yx(x, I);
|
|
7342
|
+
S(I, G);
|
|
7343
7343
|
}
|
|
7344
|
-
function E(
|
|
7345
|
-
S(
|
|
7344
|
+
function E(I) {
|
|
7345
|
+
S(I, g.current);
|
|
7346
7346
|
}
|
|
7347
7347
|
function B() {
|
|
7348
|
-
const
|
|
7349
|
-
x[g.current] !==
|
|
7348
|
+
const I = O.current[g.current];
|
|
7349
|
+
x[g.current] !== I && f(x);
|
|
7350
7350
|
}
|
|
7351
|
-
function S(
|
|
7352
|
-
const F = Ux(a), $ = Jx(Math.round((
|
|
7351
|
+
function S(I, G, { commit: Q } = { commit: !1 }) {
|
|
7352
|
+
const F = Ux(a), $ = Jx(Math.round((I - r) / a) * a + r, F), X = xn($, [r, o]);
|
|
7353
7353
|
C((q = []) => {
|
|
7354
7354
|
const H = Gx(q, X, G);
|
|
7355
7355
|
if (qx(H, A * a)) {
|
|
7356
7356
|
g.current = H.indexOf(X);
|
|
7357
|
-
const
|
|
7358
|
-
return
|
|
7357
|
+
const z = String(H) !== String(q);
|
|
7358
|
+
return z && Q && f(H), z ? H : q;
|
|
7359
7359
|
} else
|
|
7360
7360
|
return q;
|
|
7361
7361
|
});
|
|
@@ -7391,9 +7391,9 @@ var xx = Ku, Nx = $u, Cx = td, Px = nd, Sx = rd, Ex = od, Ox = cd, Mx = Ad, Tx =
|
|
|
7391
7391
|
onSlideEnd: c ? void 0 : B,
|
|
7392
7392
|
onHomeKeyDown: () => !c && S(r, 0, { commit: !0 }),
|
|
7393
7393
|
onEndKeyDown: () => !c && S(o, x.length - 1, { commit: !0 }),
|
|
7394
|
-
onStepKeyDown: ({ event:
|
|
7394
|
+
onStepKeyDown: ({ event: I, direction: G }) => {
|
|
7395
7395
|
if (!c) {
|
|
7396
|
-
const $ = Nd.includes(
|
|
7396
|
+
const $ = Nd.includes(I.key) || I.shiftKey && Cd.includes(I.key) ? 10 : 1, X = g.current, q = x[X], H = a * $ * G;
|
|
7397
7397
|
S(q + H, X, { commit: !0 });
|
|
7398
7398
|
}
|
|
7399
7399
|
}
|
|
@@ -7947,7 +7947,7 @@ var Ud = "TabsContent", Jd = s.forwardRef(
|
|
|
7947
7947
|
return s.useEffect(() => {
|
|
7948
7948
|
const f = requestAnimationFrame(() => V.current = !1);
|
|
7949
7949
|
return () => cancelAnimationFrame(f);
|
|
7950
|
-
}, []), /* @__PURE__ */ l(
|
|
7950
|
+
}, []), /* @__PURE__ */ l(fe, { present: o || d, children: ({ present: f }) => /* @__PURE__ */ l(
|
|
7951
7951
|
W.div,
|
|
7952
7952
|
{
|
|
7953
7953
|
"data-state": d ? "active" : "inactive",
|
|
@@ -8096,13 +8096,13 @@ var As = "TooltipPortal", [mN, hN] = co(As, {
|
|
|
8096
8096
|
forceMount: void 0
|
|
8097
8097
|
}), rV = (e) => {
|
|
8098
8098
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = Gn(As, t);
|
|
8099
|
-
return /* @__PURE__ */ l(mN, { scope: t, forceMount: n, children: /* @__PURE__ */ l(
|
|
8099
|
+
return /* @__PURE__ */ l(mN, { scope: t, forceMount: n, children: /* @__PURE__ */ l(fe, { present: n || a.open, children: /* @__PURE__ */ l(Dt, { asChild: !0, container: o, children: r }) }) });
|
|
8100
8100
|
};
|
|
8101
8101
|
rV.displayName = As;
|
|
8102
8102
|
var qt = "TooltipContent", oV = s.forwardRef(
|
|
8103
8103
|
(e, t) => {
|
|
8104
8104
|
const n = hN(qt, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = Gn(qt, e.__scopeTooltip);
|
|
8105
|
-
return /* @__PURE__ */ l(
|
|
8105
|
+
return /* @__PURE__ */ l(fe, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ l(aV, { side: o, ...a, ref: t }) : /* @__PURE__ */ l(vN, { side: o, ...a, ref: t }) });
|
|
8106
8106
|
}
|
|
8107
8107
|
), vN = s.forwardRef((e, t) => {
|
|
8108
8108
|
const n = Gn(qt, e.__scopeTooltip), r = ls(qt, e.__scopeTooltip), o = s.useRef(null), a = Y(t, o), [i, c] = s.useState(null), { trigger: A, onClose: u } = n, d = o.current, { onPointerInTransitChange: V } = r, f = s.useCallback(() => {
|
|
@@ -9372,7 +9372,7 @@ const j1 = P.forwardRef(
|
|
|
9372
9372
|
}
|
|
9373
9373
|
);
|
|
9374
9374
|
j1.displayName = "Badge";
|
|
9375
|
-
const
|
|
9375
|
+
const pe = P.forwardRef(
|
|
9376
9376
|
({ backgroundColorToken: e, textColorToken: t, borderColorToken: n, className: r = "", ...o }, a) => {
|
|
9377
9377
|
const i = {
|
|
9378
9378
|
"--button-bg-color": e ? T(e) : void 0,
|
|
@@ -9382,7 +9382,7 @@ const fe = P.forwardRef(
|
|
|
9382
9382
|
return /* @__PURE__ */ l(EV, { ref: a, className: `ds-button ${r}`, style: i, ...o });
|
|
9383
9383
|
}
|
|
9384
9384
|
);
|
|
9385
|
-
|
|
9385
|
+
pe.displayName = "Button";
|
|
9386
9386
|
const gp = P.forwardRef(
|
|
9387
9387
|
({ backgroundColorToken: e, textColorToken: t, className: n = "", children: r, ...o }, a) => {
|
|
9388
9388
|
const i = {
|
|
@@ -11324,7 +11324,7 @@ const Kp = P.forwardRef(
|
|
|
11324
11324
|
onOpenAutoFocus: (d) => d.preventDefault(),
|
|
11325
11325
|
children: [
|
|
11326
11326
|
t,
|
|
11327
|
-
n && /* @__PURE__ */ l(Hr, { asChild: !0, children: /* @__PURE__ */ l(
|
|
11327
|
+
n && /* @__PURE__ */ l(Hr, { asChild: !0, children: /* @__PURE__ */ l(pe, { className: "ds-modal__close", "aria-label": "Close", children: /* @__PURE__ */ l(B1, { width: "12px", height: "12px" }) }) })
|
|
11328
11328
|
]
|
|
11329
11329
|
}
|
|
11330
11330
|
)
|
|
@@ -11506,31 +11506,31 @@ const un = {
|
|
|
11506
11506
|
formStep: { ...un.formStep, ...e.formStep },
|
|
11507
11507
|
confirmationStep: { ...un.confirmationStep, ...e.confirmationStep },
|
|
11508
11508
|
formTriggerValues: e.formTriggerValues ?? un.formTriggerValues
|
|
11509
|
-
}, [d, V] = P.useState(!1), [f, p] = P.useState("selection"), [h, m] = P.useState(""), [v, g] = P.useState(""), b = n !== void 0, w = b ? n : d, x = (
|
|
11510
|
-
b || V(
|
|
11511
|
-
}, C = (
|
|
11509
|
+
}, [d, V] = P.useState(!1), [f, p] = P.useState("selection"), [h, m] = P.useState(""), [v, g] = P.useState(""), b = n !== void 0, w = b ? n : d, x = (z) => {
|
|
11510
|
+
b || V(z), r == null || r(z);
|
|
11511
|
+
}, C = (z) => {
|
|
11512
11512
|
const _ = u.formTriggerValues;
|
|
11513
|
-
return Array.isArray(_) ? _.includes(
|
|
11513
|
+
return Array.isArray(_) ? _.includes(z) : z === _;
|
|
11514
11514
|
}, O = () => {
|
|
11515
11515
|
x(!1), p("selection"), m(""), g(""), o == null || o();
|
|
11516
|
-
}, y = (
|
|
11517
|
-
p(
|
|
11516
|
+
}, y = (z) => {
|
|
11517
|
+
p(z), i == null || i(z, { reason: h, feedback: v });
|
|
11518
11518
|
}, E = () => {
|
|
11519
11519
|
h && (C(h) ? y("form") : (a == null || a(h), y("confirmation")));
|
|
11520
11520
|
}, B = () => {
|
|
11521
11521
|
a == null || a(h, v), y("confirmation");
|
|
11522
11522
|
}, S = () => {
|
|
11523
11523
|
y("selection"), g("");
|
|
11524
|
-
},
|
|
11525
|
-
const { linkUrl:
|
|
11526
|
-
_ ? _() :
|
|
11527
|
-
}, G = /* @__PURE__ */ l(
|
|
11524
|
+
}, I = () => {
|
|
11525
|
+
const { linkUrl: z, onLinkClick: _ } = u.confirmationStep;
|
|
11526
|
+
_ ? _() : z && window.open(z, "_blank", "noopener,noreferrer");
|
|
11527
|
+
}, G = /* @__PURE__ */ l(pe, { children: "Flag this mockup" }), { selectionStep: Q, formStep: F, confirmationStep: $ } = u, X = () => {
|
|
11528
11528
|
x(!0);
|
|
11529
11529
|
}, q = t || G, H = P.isValidElement(q) ? P.cloneElement(q, {
|
|
11530
|
-
onClick: (
|
|
11530
|
+
onClick: (z) => {
|
|
11531
11531
|
var ce;
|
|
11532
11532
|
const _ = (ce = q.props) == null ? void 0 : ce.onClick;
|
|
11533
|
-
_ && _(
|
|
11533
|
+
_ && _(z), X();
|
|
11534
11534
|
}
|
|
11535
11535
|
}) : q;
|
|
11536
11536
|
return /* @__PURE__ */ N(R, { ref: A, className: `ds-flag-bad-mockups ${c}`, children: [
|
|
@@ -11555,11 +11555,11 @@ const un = {
|
|
|
11555
11555
|
value: h,
|
|
11556
11556
|
onValueChange: m,
|
|
11557
11557
|
size: "1",
|
|
11558
|
-
children: Q.options.map((
|
|
11558
|
+
children: Q.options.map((z) => /* @__PURE__ */ l(vi.Item, { value: z.value, children: z.label }, z.value))
|
|
11559
11559
|
}
|
|
11560
11560
|
) }) }),
|
|
11561
11561
|
/* @__PURE__ */ l(Be.Footer, { children: /* @__PURE__ */ l(
|
|
11562
|
-
|
|
11562
|
+
pe,
|
|
11563
11563
|
{
|
|
11564
11564
|
color: "blue",
|
|
11565
11565
|
size: "1",
|
|
@@ -11581,7 +11581,7 @@ const un = {
|
|
|
11581
11581
|
Cr,
|
|
11582
11582
|
{
|
|
11583
11583
|
value: v,
|
|
11584
|
-
onChange: (
|
|
11584
|
+
onChange: (z) => g(z.target.value),
|
|
11585
11585
|
placeholder: F.placeholder,
|
|
11586
11586
|
rows: 4,
|
|
11587
11587
|
resize: "none",
|
|
@@ -11589,9 +11589,9 @@ const un = {
|
|
|
11589
11589
|
}
|
|
11590
11590
|
) }) }),
|
|
11591
11591
|
/* @__PURE__ */ N(Be.Footer, { children: [
|
|
11592
|
-
/* @__PURE__ */ l(
|
|
11592
|
+
/* @__PURE__ */ l(pe, { variant: "soft", color: "blue", size: "1", onClick: S, children: F.backButtonText }),
|
|
11593
11593
|
/* @__PURE__ */ l(
|
|
11594
|
-
|
|
11594
|
+
pe,
|
|
11595
11595
|
{
|
|
11596
11596
|
color: "blue",
|
|
11597
11597
|
size: "1",
|
|
@@ -11619,11 +11619,11 @@ const un = {
|
|
|
11619
11619
|
textDecoration: "underline",
|
|
11620
11620
|
cursor: "pointer"
|
|
11621
11621
|
},
|
|
11622
|
-
onClick:
|
|
11622
|
+
onClick: I,
|
|
11623
11623
|
children: $.linkText
|
|
11624
11624
|
}
|
|
11625
11625
|
) }),
|
|
11626
|
-
/* @__PURE__ */ l(Be.Footer, { children: /* @__PURE__ */ l(
|
|
11626
|
+
/* @__PURE__ */ l(Be.Footer, { children: /* @__PURE__ */ l(pe, { color: "blue", size: "1", onClick: O, children: $.closeButtonText }) })
|
|
11627
11627
|
] })
|
|
11628
11628
|
]
|
|
11629
11629
|
}
|
|
@@ -11703,7 +11703,7 @@ const nt = P.forwardRef(
|
|
|
11703
11703
|
selectedFirstRadioOption: E,
|
|
11704
11704
|
onFirstRadioChange: B,
|
|
11705
11705
|
secondRadioOptions: S = [],
|
|
11706
|
-
selectedSecondRadioOption:
|
|
11706
|
+
selectedSecondRadioOption: I,
|
|
11707
11707
|
onSecondRadioChange: G,
|
|
11708
11708
|
textInputValue: Q = "",
|
|
11709
11709
|
onTextInputChange: F,
|
|
@@ -11711,7 +11711,7 @@ const nt = P.forwardRef(
|
|
|
11711
11711
|
launcherIcon: X = "rocket-bold",
|
|
11712
11712
|
launcherHeadline: q = "Launcher",
|
|
11713
11713
|
launcherText: H = "Let's get your product ready to sell.",
|
|
11714
|
-
launcherSubtext:
|
|
11714
|
+
launcherSubtext: z = "You're preparing to launch. We'll help you create professional product images so your first listings look credible from day one.",
|
|
11715
11715
|
infoBoxTitle: _ = "What we will focus on",
|
|
11716
11716
|
infoBoxItems: ce = [],
|
|
11717
11717
|
ctaLabel: ye = "YOUR FIRST ACTION",
|
|
@@ -11739,43 +11739,43 @@ const nt = P.forwardRef(
|
|
|
11739
11739
|
}, [Me, he, t, n, te]), Ss = P.useCallback(() => {
|
|
11740
11740
|
Me == null || Me(), he && t > 1 && he(t - 1), re == null || re();
|
|
11741
11741
|
}, [Me, he, t, re]), ho = P.useCallback(
|
|
11742
|
-
(
|
|
11743
|
-
i == null || i(
|
|
11742
|
+
(L) => {
|
|
11743
|
+
i == null || i(L), U == null || U({ [de || "radio"]: L });
|
|
11744
11744
|
},
|
|
11745
11745
|
[i, U, de]
|
|
11746
11746
|
), Es = P.useCallback(
|
|
11747
|
-
(
|
|
11748
|
-
u == null || u(
|
|
11747
|
+
(L) => {
|
|
11748
|
+
u == null || u(L), U == null || U({ [de || "checkbox"]: L });
|
|
11749
11749
|
},
|
|
11750
11750
|
[u, U, de]
|
|
11751
11751
|
), Qn = P.useCallback(
|
|
11752
|
-
(
|
|
11753
|
-
f == null || f(
|
|
11752
|
+
(L) => {
|
|
11753
|
+
f == null || f(L), U == null || U({ [de || "yesNo"]: L });
|
|
11754
11754
|
},
|
|
11755
11755
|
[f, U, de]
|
|
11756
11756
|
), Os = P.useCallback(
|
|
11757
|
-
(
|
|
11758
|
-
g == null || g(
|
|
11757
|
+
(L) => {
|
|
11758
|
+
g == null || g(L), U == null || U({ [de || "firstOption"]: L });
|
|
11759
11759
|
},
|
|
11760
11760
|
[g, U, de]
|
|
11761
11761
|
), Ms = P.useCallback(
|
|
11762
|
-
(
|
|
11763
|
-
C == null || C(
|
|
11762
|
+
(L) => {
|
|
11763
|
+
C == null || C(L), U == null || U({ [de || "secondOption"]: L });
|
|
11764
11764
|
},
|
|
11765
11765
|
[C, U, de]
|
|
11766
11766
|
), Ts = P.useCallback(
|
|
11767
|
-
(
|
|
11768
|
-
B == null || B(
|
|
11767
|
+
(L) => {
|
|
11768
|
+
B == null || B(L), U == null || U({ [de || "firstRadio"]: L });
|
|
11769
11769
|
},
|
|
11770
11770
|
[B, U, de]
|
|
11771
11771
|
), Ds = P.useCallback(
|
|
11772
|
-
(
|
|
11773
|
-
G == null || G(
|
|
11772
|
+
(L) => {
|
|
11773
|
+
G == null || G(L), U == null || U({ [de || "secondRadio"]: L });
|
|
11774
11774
|
},
|
|
11775
11775
|
[G, U, de]
|
|
11776
11776
|
), rm = P.useCallback(
|
|
11777
|
-
(
|
|
11778
|
-
F == null || F(
|
|
11777
|
+
(L) => {
|
|
11778
|
+
F == null || F(L), U == null || U({ [de || "textInput"]: L });
|
|
11779
11779
|
},
|
|
11780
11780
|
[F, U, de]
|
|
11781
11781
|
), Rs = P.useCallback(() => {
|
|
@@ -11811,7 +11811,7 @@ const nt = P.forwardRef(
|
|
|
11811
11811
|
] }),
|
|
11812
11812
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__launcher-text-section", children: [
|
|
11813
11813
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__launcher-text", children: H }),
|
|
11814
|
-
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__launcher-subtext", children:
|
|
11814
|
+
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__launcher-subtext", children: z })
|
|
11815
11815
|
] }),
|
|
11816
11816
|
/* @__PURE__ */ l(da, { title: _, items: ce }),
|
|
11817
11817
|
/* @__PURE__ */ l(
|
|
@@ -11844,18 +11844,18 @@ const nt = P.forwardRef(
|
|
|
11844
11844
|
switch (e) {
|
|
11845
11845
|
case "radio":
|
|
11846
11846
|
case "split-screen":
|
|
11847
|
-
return /* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list", children: o.map((
|
|
11847
|
+
return /* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list", children: o.map((L) => /* @__PURE__ */ l(
|
|
11848
11848
|
tt,
|
|
11849
11849
|
{
|
|
11850
|
-
state: a ===
|
|
11850
|
+
state: a === L.value ? "active" : "default",
|
|
11851
11851
|
showIcon: !0,
|
|
11852
11852
|
showSubtext: !0,
|
|
11853
|
-
icon:
|
|
11854
|
-
title:
|
|
11855
|
-
subtext:
|
|
11856
|
-
onClick: () => ho(
|
|
11853
|
+
icon: L.icon,
|
|
11854
|
+
title: L.title,
|
|
11855
|
+
subtext: L.description,
|
|
11856
|
+
onClick: () => ho(L.value)
|
|
11857
11857
|
},
|
|
11858
|
-
|
|
11858
|
+
L.value
|
|
11859
11859
|
)) });
|
|
11860
11860
|
case "checkbox-no-icon":
|
|
11861
11861
|
case "checkbox-with-icon":
|
|
@@ -11893,18 +11893,18 @@ const nt = P.forwardRef(
|
|
|
11893
11893
|
] }),
|
|
11894
11894
|
V === "yes" && /* @__PURE__ */ N("div", { className: "ds-onboarding-template__radio-section", children: [
|
|
11895
11895
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__second-question", children: p }),
|
|
11896
|
-
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list-secondary", children: o.map((
|
|
11896
|
+
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list-secondary", children: o.map((L) => /* @__PURE__ */ l(
|
|
11897
11897
|
tt,
|
|
11898
11898
|
{
|
|
11899
|
-
state: a ===
|
|
11899
|
+
state: a === L.value ? "active" : "default",
|
|
11900
11900
|
showIcon: !0,
|
|
11901
11901
|
showSubtext: !0,
|
|
11902
|
-
icon:
|
|
11903
|
-
title:
|
|
11904
|
-
subtext:
|
|
11905
|
-
onClick: () => ho(
|
|
11902
|
+
icon: L.icon,
|
|
11903
|
+
title: L.title,
|
|
11904
|
+
subtext: L.description,
|
|
11905
|
+
onClick: () => ho(L.value)
|
|
11906
11906
|
},
|
|
11907
|
-
|
|
11907
|
+
L.value
|
|
11908
11908
|
)) })
|
|
11909
11909
|
] })
|
|
11910
11910
|
] });
|
|
@@ -11917,8 +11917,8 @@ const nt = P.forwardRef(
|
|
|
11917
11917
|
{
|
|
11918
11918
|
options: m,
|
|
11919
11919
|
value: v ? [v] : [],
|
|
11920
|
-
onChange: (
|
|
11921
|
-
const bt =
|
|
11920
|
+
onChange: (L) => {
|
|
11921
|
+
const bt = L[L.length - 1];
|
|
11922
11922
|
Os(bt || "");
|
|
11923
11923
|
},
|
|
11924
11924
|
maxRows: 4
|
|
@@ -11932,8 +11932,8 @@ const nt = P.forwardRef(
|
|
|
11932
11932
|
{
|
|
11933
11933
|
options: w,
|
|
11934
11934
|
value: x ? [x] : [],
|
|
11935
|
-
onChange: (
|
|
11936
|
-
const bt =
|
|
11935
|
+
onChange: (L) => {
|
|
11936
|
+
const bt = L[L.length - 1];
|
|
11937
11937
|
Ms(bt || "");
|
|
11938
11938
|
},
|
|
11939
11939
|
maxRows: 4
|
|
@@ -11945,34 +11945,34 @@ const nt = P.forwardRef(
|
|
|
11945
11945
|
return /* @__PURE__ */ N("div", { className: "ds-onboarding-template__double-section", children: [
|
|
11946
11946
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__section", children: [
|
|
11947
11947
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__section-question", children: O }),
|
|
11948
|
-
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: y.map((
|
|
11948
|
+
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: y.map((L) => /* @__PURE__ */ l(
|
|
11949
11949
|
tt,
|
|
11950
11950
|
{
|
|
11951
|
-
state: E ===
|
|
11951
|
+
state: E === L.value ? "active" : "default",
|
|
11952
11952
|
showIcon: !0,
|
|
11953
11953
|
showSubtext: !0,
|
|
11954
|
-
icon:
|
|
11955
|
-
title:
|
|
11956
|
-
subtext:
|
|
11957
|
-
onClick: () => Ts(
|
|
11954
|
+
icon: L.icon,
|
|
11955
|
+
title: L.title,
|
|
11956
|
+
subtext: L.description,
|
|
11957
|
+
onClick: () => Ts(L.value)
|
|
11958
11958
|
},
|
|
11959
|
-
|
|
11959
|
+
L.value
|
|
11960
11960
|
)) })
|
|
11961
11961
|
] }),
|
|
11962
11962
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__section", children: [
|
|
11963
11963
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__section-question", children: p }),
|
|
11964
|
-
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: S.map((
|
|
11964
|
+
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: S.map((L) => /* @__PURE__ */ l(
|
|
11965
11965
|
tt,
|
|
11966
11966
|
{
|
|
11967
|
-
state:
|
|
11967
|
+
state: I === L.value ? "active" : "default",
|
|
11968
11968
|
showIcon: !0,
|
|
11969
11969
|
showSubtext: !0,
|
|
11970
|
-
icon:
|
|
11971
|
-
title:
|
|
11972
|
-
subtext:
|
|
11973
|
-
onClick: () => Ds(
|
|
11970
|
+
icon: L.icon,
|
|
11971
|
+
title: L.title,
|
|
11972
|
+
subtext: L.description,
|
|
11973
|
+
onClick: () => Ds(L.value)
|
|
11974
11974
|
},
|
|
11975
|
-
|
|
11975
|
+
L.value
|
|
11976
11976
|
)) })
|
|
11977
11977
|
] })
|
|
11978
11978
|
] });
|
|
@@ -11983,7 +11983,7 @@ const nt = P.forwardRef(
|
|
|
11983
11983
|
type: "text",
|
|
11984
11984
|
className: "ds-onboarding-template__text-input",
|
|
11985
11985
|
value: Q,
|
|
11986
|
-
onChange: (
|
|
11986
|
+
onChange: (L) => rm(L.target.value),
|
|
11987
11987
|
placeholder: $
|
|
11988
11988
|
}
|
|
11989
11989
|
) });
|
|
@@ -11993,7 +11993,7 @@ const nt = P.forwardRef(
|
|
|
11993
11993
|
})()
|
|
11994
11994
|
] }),
|
|
11995
11995
|
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__continue", children: /* @__PURE__ */ N(
|
|
11996
|
-
|
|
11996
|
+
pe,
|
|
11997
11997
|
{
|
|
11998
11998
|
onClick: gt,
|
|
11999
11999
|
disabled: ae,
|
|
@@ -12047,7 +12047,7 @@ const nt = P.forwardRef(
|
|
|
12047
12047
|
] }),
|
|
12048
12048
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__launcher-text-section", children: [
|
|
12049
12049
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__launcher-text", children: H }),
|
|
12050
|
-
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__launcher-subtext", children:
|
|
12050
|
+
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__launcher-subtext", children: z })
|
|
12051
12051
|
] }),
|
|
12052
12052
|
/* @__PURE__ */ l(da, { title: _, items: ce }),
|
|
12053
12053
|
/* @__PURE__ */ l(
|
|
@@ -12073,18 +12073,18 @@ const nt = P.forwardRef(
|
|
|
12073
12073
|
) }) }),
|
|
12074
12074
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__main", children: [
|
|
12075
12075
|
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__headline-section", children: /* @__PURE__ */ l("h2", { className: "ds-onboarding-template__headline", children: r }) }),
|
|
12076
|
-
e === "radio" && /* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list", children: o.map((
|
|
12076
|
+
e === "radio" && /* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list", children: o.map((L) => /* @__PURE__ */ l(
|
|
12077
12077
|
tt,
|
|
12078
12078
|
{
|
|
12079
|
-
state: a ===
|
|
12079
|
+
state: a === L.value ? "active" : "default",
|
|
12080
12080
|
showIcon: !0,
|
|
12081
12081
|
showSubtext: !0,
|
|
12082
|
-
icon:
|
|
12083
|
-
title:
|
|
12084
|
-
subtext:
|
|
12085
|
-
onClick: () => i == null ? void 0 : i(
|
|
12082
|
+
icon: L.icon,
|
|
12083
|
+
title: L.title,
|
|
12084
|
+
subtext: L.description,
|
|
12085
|
+
onClick: () => i == null ? void 0 : i(L.value)
|
|
12086
12086
|
},
|
|
12087
|
-
|
|
12087
|
+
L.value
|
|
12088
12088
|
)) }),
|
|
12089
12089
|
(e === "checkbox-no-icon" || e === "checkbox-with-icon") && /* @__PURE__ */ l("div", { className: "ds-onboarding-template__checkbox-section", children: /* @__PURE__ */ l(
|
|
12090
12090
|
Pt,
|
|
@@ -12119,18 +12119,18 @@ const nt = P.forwardRef(
|
|
|
12119
12119
|
] }),
|
|
12120
12120
|
V === "yes" && /* @__PURE__ */ N("div", { className: "ds-onboarding-template__radio-section", children: [
|
|
12121
12121
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__second-question", children: p }),
|
|
12122
|
-
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list-secondary", children: o.map((
|
|
12122
|
+
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__radio-list-secondary", children: o.map((L) => /* @__PURE__ */ l(
|
|
12123
12123
|
tt,
|
|
12124
12124
|
{
|
|
12125
|
-
state: a ===
|
|
12125
|
+
state: a === L.value ? "active" : "default",
|
|
12126
12126
|
showIcon: !0,
|
|
12127
12127
|
showSubtext: !0,
|
|
12128
|
-
icon:
|
|
12129
|
-
title:
|
|
12130
|
-
subtext:
|
|
12131
|
-
onClick: () => ho(
|
|
12128
|
+
icon: L.icon,
|
|
12129
|
+
title: L.title,
|
|
12130
|
+
subtext: L.description,
|
|
12131
|
+
onClick: () => ho(L.value)
|
|
12132
12132
|
},
|
|
12133
|
-
|
|
12133
|
+
L.value
|
|
12134
12134
|
)) })
|
|
12135
12135
|
] })
|
|
12136
12136
|
] }),
|
|
@@ -12142,8 +12142,8 @@ const nt = P.forwardRef(
|
|
|
12142
12142
|
{
|
|
12143
12143
|
options: m,
|
|
12144
12144
|
value: v ? [v] : [],
|
|
12145
|
-
onChange: (
|
|
12146
|
-
const bt =
|
|
12145
|
+
onChange: (L) => {
|
|
12146
|
+
const bt = L[L.length - 1];
|
|
12147
12147
|
Os(bt || "");
|
|
12148
12148
|
},
|
|
12149
12149
|
maxRows: 4
|
|
@@ -12157,8 +12157,8 @@ const nt = P.forwardRef(
|
|
|
12157
12157
|
{
|
|
12158
12158
|
options: w,
|
|
12159
12159
|
value: x ? [x] : [],
|
|
12160
|
-
onChange: (
|
|
12161
|
-
const bt =
|
|
12160
|
+
onChange: (L) => {
|
|
12161
|
+
const bt = L[L.length - 1];
|
|
12162
12162
|
Ms(bt || "");
|
|
12163
12163
|
},
|
|
12164
12164
|
maxRows: 4
|
|
@@ -12169,40 +12169,40 @@ const nt = P.forwardRef(
|
|
|
12169
12169
|
e === "double-radio" && /* @__PURE__ */ N("div", { className: "ds-onboarding-template__double-section", children: [
|
|
12170
12170
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__section", children: [
|
|
12171
12171
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__section-question", children: O }),
|
|
12172
|
-
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: y.map((
|
|
12172
|
+
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: y.map((L) => /* @__PURE__ */ l(
|
|
12173
12173
|
tt,
|
|
12174
12174
|
{
|
|
12175
|
-
state: E ===
|
|
12175
|
+
state: E === L.value ? "active" : "default",
|
|
12176
12176
|
showIcon: !0,
|
|
12177
12177
|
showSubtext: !0,
|
|
12178
|
-
icon:
|
|
12179
|
-
title:
|
|
12180
|
-
subtext:
|
|
12181
|
-
onClick: () => Ts(
|
|
12178
|
+
icon: L.icon,
|
|
12179
|
+
title: L.title,
|
|
12180
|
+
subtext: L.description,
|
|
12181
|
+
onClick: () => Ts(L.value)
|
|
12182
12182
|
},
|
|
12183
|
-
|
|
12183
|
+
L.value
|
|
12184
12184
|
)) })
|
|
12185
12185
|
] }),
|
|
12186
12186
|
/* @__PURE__ */ N("div", { className: "ds-onboarding-template__section", children: [
|
|
12187
12187
|
/* @__PURE__ */ l("p", { className: "ds-onboarding-template__section-question", children: p }),
|
|
12188
|
-
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: S.map((
|
|
12188
|
+
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__section-radio-grid", children: S.map((L) => /* @__PURE__ */ l(
|
|
12189
12189
|
tt,
|
|
12190
12190
|
{
|
|
12191
|
-
state:
|
|
12191
|
+
state: I === L.value ? "active" : "default",
|
|
12192
12192
|
showIcon: !0,
|
|
12193
12193
|
showSubtext: !0,
|
|
12194
|
-
icon:
|
|
12195
|
-
title:
|
|
12196
|
-
subtext:
|
|
12197
|
-
onClick: () => Ds(
|
|
12194
|
+
icon: L.icon,
|
|
12195
|
+
title: L.title,
|
|
12196
|
+
subtext: L.description,
|
|
12197
|
+
onClick: () => Ds(L.value)
|
|
12198
12198
|
},
|
|
12199
|
-
|
|
12199
|
+
L.value
|
|
12200
12200
|
)) })
|
|
12201
12201
|
] })
|
|
12202
12202
|
] })
|
|
12203
12203
|
] }),
|
|
12204
12204
|
/* @__PURE__ */ l("div", { className: "ds-onboarding-template__continue", children: /* @__PURE__ */ N(
|
|
12205
|
-
|
|
12205
|
+
pe,
|
|
12206
12206
|
{
|
|
12207
12207
|
onClick: gt,
|
|
12208
12208
|
disabled: ae,
|
|
@@ -12269,11 +12269,11 @@ const aE = ({
|
|
|
12269
12269
|
P.useEffect(() => {
|
|
12270
12270
|
var B;
|
|
12271
12271
|
const y = g.current;
|
|
12272
|
-
if ((p.length !== y.length || p.some((S,
|
|
12272
|
+
if ((p.length !== y.length || p.some((S, I) => S !== y[I])) && y.length > 0) {
|
|
12273
12273
|
const S = (B = h[u]) == null ? void 0 : B.id;
|
|
12274
12274
|
if (S) {
|
|
12275
|
-
const
|
|
12276
|
-
|
|
12275
|
+
const I = h.findIndex((G) => G.id === S);
|
|
12276
|
+
I !== -1 && I !== u && d(I);
|
|
12277
12277
|
}
|
|
12278
12278
|
}
|
|
12279
12279
|
g.current = p;
|
|
@@ -13333,8 +13333,8 @@ const YE = {
|
|
|
13333
13333
|
}) => {
|
|
13334
13334
|
const [n, r] = dn(e), [o, a] = dn(null), [i, c] = dn(""), [A, u] = dn(""), d = Pe(
|
|
13335
13335
|
(S) => {
|
|
13336
|
-
var
|
|
13337
|
-
(
|
|
13336
|
+
var I;
|
|
13337
|
+
(I = t.onStepChange) == null || I.call(t, S, n), r(S);
|
|
13338
13338
|
},
|
|
13339
13339
|
[n, t]
|
|
13340
13340
|
), V = Pe(() => {
|
|
@@ -13345,8 +13345,8 @@ const YE = {
|
|
|
13345
13345
|
(S = t.onContinueToCancel) == null || S.call(t, n), n === "initial" && d("reason-selection");
|
|
13346
13346
|
}, [n, t, d]), p = Pe(
|
|
13347
13347
|
(S) => {
|
|
13348
|
-
var
|
|
13349
|
-
a(S), (
|
|
13348
|
+
var I;
|
|
13349
|
+
a(S), (I = t.onReasonSelected) == null || I.call(t, S);
|
|
13350
13350
|
},
|
|
13351
13351
|
[t]
|
|
13352
13352
|
), h = Pe(() => {
|
|
@@ -13361,14 +13361,14 @@ const YE = {
|
|
|
13361
13361
|
}[o]);
|
|
13362
13362
|
}, [o, d]), m = Pe(
|
|
13363
13363
|
(S) => {
|
|
13364
|
-
var
|
|
13365
|
-
(
|
|
13364
|
+
var I, G;
|
|
13365
|
+
(I = t.onAcceptOffer) == null || I.call(t, S), (G = t.onClose) == null || G.call(t);
|
|
13366
13366
|
},
|
|
13367
13367
|
[t]
|
|
13368
13368
|
), v = Pe(
|
|
13369
13369
|
(S) => {
|
|
13370
|
-
var
|
|
13371
|
-
(
|
|
13370
|
+
var I;
|
|
13371
|
+
(I = t.onDeclineOffer) == null || I.call(t, S), d("confirm-cancellation");
|
|
13372
13372
|
},
|
|
13373
13373
|
[t, d]
|
|
13374
13374
|
), g = Pe(() => {
|
|
@@ -13381,9 +13381,10 @@ const YE = {
|
|
|
13381
13381
|
var S;
|
|
13382
13382
|
(S = t.onBookSupport) == null || S.call(t), d("confirm-cancellation");
|
|
13383
13383
|
}, [t, d]), x = Pe(() => {
|
|
13384
|
-
var
|
|
13385
|
-
|
|
13386
|
-
|
|
13384
|
+
var I;
|
|
13385
|
+
const S = i.trim() || A.trim() || void 0;
|
|
13386
|
+
(I = t.onConfirmCancellation) == null || I.call(t, o ?? void 0, S);
|
|
13387
|
+
}, [o, i, A, t]), C = Pe(() => {
|
|
13387
13388
|
n === "reason-selection" ? d("initial") : [
|
|
13388
13389
|
"too-expensive-offer",
|
|
13389
13390
|
"missing-mockups-offer",
|
|
@@ -13393,17 +13394,17 @@ const YE = {
|
|
|
13393
13394
|
"other-feedback"
|
|
13394
13395
|
].includes(n) && d("reason-selection");
|
|
13395
13396
|
}, [n, d]), O = Pe(() => {
|
|
13396
|
-
var S,
|
|
13397
|
-
(S = t.onClaimCredits) == null || S.call(t), (
|
|
13397
|
+
var S, I;
|
|
13398
|
+
(S = t.onClaimCredits) == null || S.call(t), (I = t.onClose) == null || I.call(t);
|
|
13398
13399
|
}, [t]), y = Pe(() => {
|
|
13399
|
-
var S,
|
|
13400
|
-
(S = t.onTryAI) == null || S.call(t), (
|
|
13400
|
+
var S, I;
|
|
13401
|
+
(S = t.onTryAI) == null || S.call(t), (I = t.onClose) == null || I.call(t);
|
|
13401
13402
|
}, [t]), E = Pe(() => {
|
|
13402
13403
|
var S;
|
|
13403
13404
|
(S = t.onViewRoadmap) == null || S.call(t);
|
|
13404
13405
|
}, [t]), B = Pe(() => {
|
|
13405
|
-
var S,
|
|
13406
|
-
(S = t.onBackToDashboard) == null || S.call(t), (
|
|
13406
|
+
var S, I;
|
|
13407
|
+
(S = t.onBackToDashboard) == null || S.call(t), (I = t.onClose) == null || I.call(t);
|
|
13407
13408
|
}, [t]);
|
|
13408
13409
|
return {
|
|
13409
13410
|
currentStep: n,
|
|
@@ -13450,7 +13451,7 @@ const YE = {
|
|
|
13450
13451
|
handleClaimCredits: E,
|
|
13451
13452
|
handleTryAI: B,
|
|
13452
13453
|
handleViewRoadmap: S,
|
|
13453
|
-
handleBackToDashboard:
|
|
13454
|
+
handleBackToDashboard: I
|
|
13454
13455
|
} = sE({ initialStep: r, callbacks: n }), G = () => /* @__PURE__ */ N(se, { children: [
|
|
13455
13456
|
/* @__PURE__ */ N(k, { direction: "column", align: "center", gap: "4", className: "ds-cancellation-flow__header", children: [
|
|
13456
13457
|
/* @__PURE__ */ l(k, { align: "center", justify: "center", className: "ds-cancellation-flow__header-icon", children: /* @__PURE__ */ l(ne, { icon: "solar:heart-bold", width: 35, height: 35 }) }),
|
|
@@ -13499,8 +13500,8 @@ const YE = {
|
|
|
13499
13500
|
/* @__PURE__ */ l(R, { className: "ds-cancellation-flow__creations-row", children: a ? [0, 1, 2].map((J) => /* @__PURE__ */ l(R, { className: "ds-cancellation-flow__creation ds-cancellation-flow__creation--skeleton" }, J)) : t.recentCreations.slice(0, 3).map((J) => /* @__PURE__ */ l(R, { className: "ds-cancellation-flow__creation", children: /* @__PURE__ */ l("img", { src: J.imageUrl, alt: J.alt || "Recent creation" }) }, J.id)) })
|
|
13500
13501
|
] }),
|
|
13501
13502
|
/* @__PURE__ */ N(k, { direction: "column", gap: "2", className: "ds-cancellation-flow__footer", children: [
|
|
13502
|
-
/* @__PURE__ */ l(
|
|
13503
|
-
/* @__PURE__ */ l(
|
|
13503
|
+
/* @__PURE__ */ l(pe, { size: "3", className: "ds-cancellation-flow__btn-primary", onClick: p, children: "Keep my account" }),
|
|
13504
|
+
/* @__PURE__ */ l(pe, { size: "3", variant: "ghost", color: "blue", className: "ds-cancellation-flow__btn-ghost", onClick: h, children: "Continue to cancel" })
|
|
13504
13505
|
] })
|
|
13505
13506
|
] }), Q = () => /* @__PURE__ */ N(se, { children: [
|
|
13506
13507
|
/* @__PURE__ */ N(k, { direction: "column", align: "center", gap: "4", className: "ds-cancellation-flow__header", children: [
|
|
@@ -13532,10 +13533,10 @@ const YE = {
|
|
|
13532
13533
|
);
|
|
13533
13534
|
}) }) }),
|
|
13534
13535
|
/* @__PURE__ */ N(k, { direction: "column", gap: "2", className: "ds-cancellation-flow__footer", children: [
|
|
13535
|
-
/* @__PURE__ */ l(
|
|
13536
|
+
/* @__PURE__ */ l(pe, { size: "3", className: "ds-cancellation-flow__btn-primary", onClick: p, children: "Keep my account" }),
|
|
13536
13537
|
/* @__PURE__ */ N(k, { gap: "2", style: { width: "100%" }, children: [
|
|
13537
13538
|
/* @__PURE__ */ l(
|
|
13538
|
-
|
|
13539
|
+
pe,
|
|
13539
13540
|
{
|
|
13540
13541
|
size: "3",
|
|
13541
13542
|
variant: "outline",
|
|
@@ -13546,7 +13547,7 @@ const YE = {
|
|
|
13546
13547
|
}
|
|
13547
13548
|
),
|
|
13548
13549
|
/* @__PURE__ */ l(
|
|
13549
|
-
|
|
13550
|
+
pe,
|
|
13550
13551
|
{
|
|
13551
13552
|
size: "3",
|
|
13552
13553
|
variant: "ghost",
|
|
@@ -13612,7 +13613,7 @@ const YE = {
|
|
|
13612
13613
|
)
|
|
13613
13614
|
] }) }),
|
|
13614
13615
|
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer", children: /* @__PURE__ */ l(
|
|
13615
|
-
|
|
13616
|
+
pe,
|
|
13616
13617
|
{
|
|
13617
13618
|
size: "3",
|
|
13618
13619
|
variant: "ghost",
|
|
@@ -13661,7 +13662,7 @@ const YE = {
|
|
|
13661
13662
|
] })
|
|
13662
13663
|
] }) }),
|
|
13663
13664
|
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer", children: /* @__PURE__ */ l(
|
|
13664
|
-
|
|
13665
|
+
pe,
|
|
13665
13666
|
{
|
|
13666
13667
|
size: "3",
|
|
13667
13668
|
variant: "ghost",
|
|
@@ -13709,17 +13710,7 @@ const YE = {
|
|
|
13709
13710
|
}
|
|
13710
13711
|
)
|
|
13711
13712
|
] }) }),
|
|
13712
|
-
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer"
|
|
13713
|
-
fe,
|
|
13714
|
-
{
|
|
13715
|
-
size: "3",
|
|
13716
|
-
variant: "ghost",
|
|
13717
|
-
color: "blue",
|
|
13718
|
-
className: "ds-cancellation-flow__btn-ghost",
|
|
13719
|
-
onClick: () => b("feature-request"),
|
|
13720
|
-
children: "No thanks, continue canceling"
|
|
13721
|
-
}
|
|
13722
|
-
) })
|
|
13713
|
+
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer" })
|
|
13723
13714
|
] }), q = () => {
|
|
13724
13715
|
var J, ee, we, ue, j;
|
|
13725
13716
|
return /* @__PURE__ */ N(se, { children: [
|
|
@@ -13775,7 +13766,7 @@ const YE = {
|
|
|
13775
13766
|
)
|
|
13776
13767
|
] }) }),
|
|
13777
13768
|
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer", children: /* @__PURE__ */ l(
|
|
13778
|
-
|
|
13769
|
+
pe,
|
|
13779
13770
|
{
|
|
13780
13771
|
size: "3",
|
|
13781
13772
|
variant: "ghost",
|
|
@@ -13815,7 +13806,7 @@ const YE = {
|
|
|
13815
13806
|
] })
|
|
13816
13807
|
] }) }),
|
|
13817
13808
|
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer", children: /* @__PURE__ */ l(
|
|
13818
|
-
|
|
13809
|
+
pe,
|
|
13819
13810
|
{
|
|
13820
13811
|
size: "3",
|
|
13821
13812
|
variant: "ghost",
|
|
@@ -13826,7 +13817,7 @@ const YE = {
|
|
|
13826
13817
|
}
|
|
13827
13818
|
) })
|
|
13828
13819
|
] });
|
|
13829
|
-
},
|
|
13820
|
+
}, z = () => /* @__PURE__ */ N(se, { children: [
|
|
13830
13821
|
/* @__PURE__ */ N(k, { direction: "column", align: "center", gap: "4", className: "ds-cancellation-flow__header", children: [
|
|
13831
13822
|
/* @__PURE__ */ l(k, { align: "center", justify: "center", className: "ds-cancellation-flow__header-icon", children: /* @__PURE__ */ l(ne, { icon: "solar:lightbulb-bold", width: 35, height: 35 }) }),
|
|
13832
13823
|
/* @__PURE__ */ N(k, { direction: "column", align: "center", gap: "1", style: { width: "100%" }, children: [
|
|
@@ -13864,17 +13855,7 @@ const YE = {
|
|
|
13864
13855
|
}
|
|
13865
13856
|
)
|
|
13866
13857
|
] }) }),
|
|
13867
|
-
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer"
|
|
13868
|
-
fe,
|
|
13869
|
-
{
|
|
13870
|
-
size: "3",
|
|
13871
|
-
variant: "ghost",
|
|
13872
|
-
color: "blue",
|
|
13873
|
-
className: "ds-cancellation-flow__btn-ghost",
|
|
13874
|
-
onClick: () => b("other-feedback"),
|
|
13875
|
-
children: "No thanks, continue canceling"
|
|
13876
|
-
}
|
|
13877
|
-
) })
|
|
13858
|
+
/* @__PURE__ */ l(k, { direction: "column", align: "center", className: "ds-cancellation-flow__footer" })
|
|
13878
13859
|
] }), _ = () => {
|
|
13879
13860
|
var J, ee;
|
|
13880
13861
|
return /* @__PURE__ */ N(se, { children: [
|
|
@@ -13911,7 +13892,7 @@ const YE = {
|
|
|
13911
13892
|
] }),
|
|
13912
13893
|
/* @__PURE__ */ l(R, { className: "ds-cancellation-flow__cta-message", children: ((ee = t.creditsReward) == null ? void 0 : ee.message) || "Use these credits to create more amazing mockups!" })
|
|
13913
13894
|
] }) }),
|
|
13914
|
-
/* @__PURE__ */ l(k, { direction: "column", className: "ds-cancellation-flow__footer", children: /* @__PURE__ */ l(
|
|
13895
|
+
/* @__PURE__ */ l(k, { direction: "column", className: "ds-cancellation-flow__footer", children: /* @__PURE__ */ l(pe, { size: "3", className: "ds-cancellation-flow__btn-primary", onClick: I, children: "Back to Dashboard" }) })
|
|
13915
13896
|
] });
|
|
13916
13897
|
}, ce = () => {
|
|
13917
13898
|
var J, ee;
|
|
@@ -13952,9 +13933,9 @@ const YE = {
|
|
|
13952
13933
|
/* @__PURE__ */ l(le, { className: "ds-cancellation-flow__disclaimer", children: (ee = t.cancellationInfo) == null ? void 0 : ee.disclaimer })
|
|
13953
13934
|
] }),
|
|
13954
13935
|
/* @__PURE__ */ N(k, { direction: "column", gap: "2", className: "ds-cancellation-flow__footer", children: [
|
|
13955
|
-
/* @__PURE__ */ l(
|
|
13936
|
+
/* @__PURE__ */ l(pe, { size: "3", className: "ds-cancellation-flow__btn-danger", onClick: O, children: "Confirm cancellation" }),
|
|
13956
13937
|
/* @__PURE__ */ l(
|
|
13957
|
-
|
|
13938
|
+
pe,
|
|
13958
13939
|
{
|
|
13959
13940
|
size: "3",
|
|
13960
13941
|
variant: "ghost",
|
|
@@ -13999,7 +13980,7 @@ const YE = {
|
|
|
13999
13980
|
case "technical-support":
|
|
14000
13981
|
return H();
|
|
14001
13982
|
case "other-feedback":
|
|
14002
|
-
return
|
|
13983
|
+
return z();
|
|
14003
13984
|
case "keep-account-success":
|
|
14004
13985
|
return _();
|
|
14005
13986
|
case "confirm-cancellation":
|
|
@@ -14137,7 +14118,7 @@ export {
|
|
|
14137
14118
|
X1 as Avatar,
|
|
14138
14119
|
j1 as Badge,
|
|
14139
14120
|
E1 as Blockquote,
|
|
14140
|
-
|
|
14121
|
+
pe as Button,
|
|
14141
14122
|
fE as COLOR_FAMILIES,
|
|
14142
14123
|
pE as COLOR_SCALES,
|
|
14143
14124
|
Va as CTABox,
|