@wf-financing/ui 4.5.0 → 4.5.1
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/CHANGELOG.md +7 -0
- package/dist/index.es.js +225 -225
- package/package.json +3 -3
- package/src/components/modal/BulletList.tsx +3 -2
- package/src/components/modal/ModalHeader.tsx +1 -1
package/dist/index.es.js
CHANGED
|
@@ -252,7 +252,7 @@ var y1;
|
|
|
252
252
|
function fI() {
|
|
253
253
|
return y1 || (y1 = 1, lp.exports = dI()), lp.exports;
|
|
254
254
|
}
|
|
255
|
-
var
|
|
255
|
+
var U = fI(), Qc = {}, cp = { exports: {} }, On = {}, dp = { exports: {} }, fp = {};
|
|
256
256
|
/**
|
|
257
257
|
* @license React
|
|
258
258
|
* scheduler.production.min.js
|
|
@@ -5698,7 +5698,7 @@ function Ut(e, t, n) {
|
|
|
5698
5698
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
5699
5699
|
}
|
|
5700
5700
|
var S = Kg();
|
|
5701
|
-
const
|
|
5701
|
+
const V = /* @__PURE__ */ $u(S);
|
|
5702
5702
|
var ht = "-ms-", eu = "-moz-", Je = "-webkit-", PE = "comm", tf = "rule", Zg = "decl", xI = "@import", bI = "@namespace", _E = "@keyframes", wI = "@layer", RE = Math.abs, Xg = String.fromCharCode, vm = Object.assign;
|
|
5703
5703
|
function SI(e, t) {
|
|
5704
5704
|
return Vt(e, 0) ^ 45 ? (((t << 2 ^ Vt(e, 0)) << 2 ^ Vt(e, 1)) << 2 ^ Vt(e, 2)) << 2 ^ Vt(e, 3) : 0;
|
|
@@ -6279,7 +6279,7 @@ var FI = {
|
|
|
6279
6279
|
strokeOpacity: 1,
|
|
6280
6280
|
strokeWidth: 1
|
|
6281
6281
|
}, Zn = {}, La = typeof gm < "u" && Zn !== void 0 && (Zn.REACT_APP_SC_ATTR || Zn.SC_ATTR) || "data-styled", LE = "active", OE = "data-styled-version", sf = "6.3.8", Qg = `/*!sc*/
|
|
6282
|
-
`, Rd = typeof window < "u" && typeof document < "u", $i =
|
|
6282
|
+
`, Rd = typeof window < "u" && typeof document < "u", $i = V.createContext === void 0, BI = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof gm < "u" && Zn !== void 0 && Zn.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && Zn.REACT_APP_SC_DISABLE_SPEEDY !== "" ? Zn.REACT_APP_SC_DISABLE_SPEEDY !== "false" && Zn.REACT_APP_SC_DISABLE_SPEEDY : typeof gm < "u" && Zn !== void 0 && Zn.SC_DISABLE_SPEEDY !== void 0 && Zn.SC_DISABLE_SPEEDY !== "" && Zn.SC_DISABLE_SPEEDY !== "false" && Zn.SC_DISABLE_SPEEDY), af = Object.freeze([]), Oa = Object.freeze({});
|
|
6283
6283
|
function jI(e, t, n) {
|
|
6284
6284
|
return n === void 0 && (n = Oa), e.theme !== n.theme && e.theme || t || n.theme;
|
|
6285
6285
|
}
|
|
@@ -6620,25 +6620,25 @@ var fA = new VE(), Sm = WE(), Em = { shouldForwardProp: void 0, styleSheet: fA,
|
|
|
6620
6620
|
return e.children;
|
|
6621
6621
|
}, Consumer: function(e) {
|
|
6622
6622
|
return (0, e.children)(Em);
|
|
6623
|
-
} } :
|
|
6623
|
+
} } : V.createContext(Em);
|
|
6624
6624
|
ey.Consumer;
|
|
6625
6625
|
var hA = $i ? { Provider: function(e) {
|
|
6626
6626
|
return e.children;
|
|
6627
|
-
} } :
|
|
6627
|
+
} } : V.createContext(void 0);
|
|
6628
6628
|
function km() {
|
|
6629
|
-
return $i ? Em :
|
|
6629
|
+
return $i ? Em : V.useContext(ey);
|
|
6630
6630
|
}
|
|
6631
6631
|
function pA(e) {
|
|
6632
|
-
if ($i || !
|
|
6633
|
-
var t = km().styleSheet, n =
|
|
6632
|
+
if ($i || !V.useMemo) return e.children;
|
|
6633
|
+
var t = km().styleSheet, n = V.useMemo(function() {
|
|
6634
6634
|
var a = t;
|
|
6635
6635
|
return e.sheet ? a = e.sheet : e.target && (a = a.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (a = a.reconstructWithOptions({ useCSSOMInjection: !1 })), a;
|
|
6636
|
-
}, [e.disableCSSOMInjection, e.sheet, e.target, t]), r =
|
|
6636
|
+
}, [e.disableCSSOMInjection, e.sheet, e.target, t]), r = V.useMemo(function() {
|
|
6637
6637
|
return WE({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: e.stylisPlugins });
|
|
6638
|
-
}, [e.enableVendorPrefixes, e.namespace, e.stylisPlugins]), o =
|
|
6638
|
+
}, [e.enableVendorPrefixes, e.namespace, e.stylisPlugins]), o = V.useMemo(function() {
|
|
6639
6639
|
return { shouldForwardProp: e.shouldForwardProp, styleSheet: n, stylis: r };
|
|
6640
6640
|
}, [e.shouldForwardProp, n, r]);
|
|
6641
|
-
return
|
|
6641
|
+
return V.createElement(ey.Provider, { value: o }, V.createElement(hA.Provider, { value: r }, e.children));
|
|
6642
6642
|
}
|
|
6643
6643
|
var mA = (function() {
|
|
6644
6644
|
function e(t, n) {
|
|
@@ -6738,16 +6738,16 @@ var xA = DE(sf), bA = (function() {
|
|
|
6738
6738
|
return e.children;
|
|
6739
6739
|
}, Consumer: function(e) {
|
|
6740
6740
|
return (0, e.children)(void 0);
|
|
6741
|
-
} } :
|
|
6741
|
+
} } : V.createContext(void 0);
|
|
6742
6742
|
pu.Consumer;
|
|
6743
6743
|
function KE() {
|
|
6744
|
-
var e = $i ? void 0 :
|
|
6744
|
+
var e = $i ? void 0 : V.useContext(pu);
|
|
6745
6745
|
if (!e) throw Ao(18);
|
|
6746
6746
|
return e;
|
|
6747
6747
|
}
|
|
6748
6748
|
function wA(e) {
|
|
6749
6749
|
if ($i) return e.children;
|
|
6750
|
-
var t =
|
|
6750
|
+
var t = V.useContext(pu), n = V.useMemo(function() {
|
|
6751
6751
|
return (function(r, o) {
|
|
6752
6752
|
if (!r) throw Ao(14);
|
|
6753
6753
|
if (ws(r)) {
|
|
@@ -6758,7 +6758,7 @@ function wA(e) {
|
|
|
6758
6758
|
return o ? ue(ue({}, o), r) : r;
|
|
6759
6759
|
})(e.theme, t);
|
|
6760
6760
|
}, [e.theme, t]);
|
|
6761
|
-
return e.children ?
|
|
6761
|
+
return e.children ? V.createElement(pu.Provider, { value: n }, e.children) : null;
|
|
6762
6762
|
}
|
|
6763
6763
|
var gp = {};
|
|
6764
6764
|
function SA(e, t, n) {
|
|
@@ -6782,7 +6782,7 @@ function SA(e, t, n) {
|
|
|
6782
6782
|
var k = new bA(n, y, r ? o.componentStyle : void 0);
|
|
6783
6783
|
function $(F, A) {
|
|
6784
6784
|
return (function(I, D, j) {
|
|
6785
|
-
var K = I.attrs, W = I.componentStyle, Q = I.defaultProps, J = I.foldedComponentIds, be = I.styledComponentId, ce = I.target, te = $i ? void 0 :
|
|
6785
|
+
var K = I.attrs, W = I.componentStyle, Q = I.defaultProps, J = I.foldedComponentIds, be = I.styledComponentId, ce = I.target, te = $i ? void 0 : V.useContext(pu), de = km(), ae = I.shouldForwardProp || de.shouldForwardProp, Z = jI(D, te, Q) || Oa, oe = (function(me, Le, tt) {
|
|
6786
6786
|
for (var _t, kt = ue(ue({}, Le), { className: void 0, theme: tt }), Qn = 0; Qn < me.length; Qn += 1) {
|
|
6787
6787
|
var Pn = ws(_t = me[Qn]) ? _t(kt) : _t;
|
|
6788
6788
|
for (var _n in Pn) _n === "className" ? kt.className = os(kt.className, Pn[_n]) : _n === "style" ? kt.style = ue(ue({}, kt.style), Pn[_n]) : kt[_n] = Pn[_n];
|
|
@@ -6796,11 +6796,11 @@ function SA(e, t, n) {
|
|
|
6796
6796
|
})(W, oe), le = _.className, ve = _.css, ge = os(J, be);
|
|
6797
6797
|
le && (ge += " " + le), oe.className && (ge += " " + oe.className), O[mp(P) && !ME.has(P) ? "class" : "className"] = ge, j && (O.ref = j);
|
|
6798
6798
|
var Fe = S.createElement(P, O);
|
|
6799
|
-
return $i && ve ?
|
|
6799
|
+
return $i && ve ? V.createElement(V.Fragment, null, V.createElement("style", { precedence: "styled-components", href: "sc-".concat(be, "-").concat(le), children: ve }), Fe) : Fe;
|
|
6800
6800
|
})(T, F, A);
|
|
6801
6801
|
}
|
|
6802
6802
|
$.displayName = p;
|
|
6803
|
-
var T =
|
|
6803
|
+
var T = V.forwardRef($);
|
|
6804
6804
|
return T.attrs = x, T.componentStyle = k, T.displayName = p, T.shouldForwardProp = b, T.foldedComponentIds = r ? os(o.foldedComponentIds, o.styledComponentId) : "", T.styledComponentId = y, T.target = r ? o.target : e, Object.defineProperty(T, "defaultProps", { get: function() {
|
|
6805
6805
|
return this._foldedDefaultProps;
|
|
6806
6806
|
}, set: function(F) {
|
|
@@ -10594,7 +10594,7 @@ function KL({ children: e, isPresent: t, anchorX: n, root: r }) {
|
|
|
10594
10594
|
`), () => {
|
|
10595
10595
|
$.contains(k) && $.removeChild(k);
|
|
10596
10596
|
};
|
|
10597
|
-
}, [t]),
|
|
10597
|
+
}, [t]), U.jsx(qL, { isPresent: t, childRef: a, sizeRef: l, children: S.cloneElement(e, { ref: f }) });
|
|
10598
10598
|
}
|
|
10599
10599
|
const ZL = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: a, mode: l, anchorX: c, root: d }) => {
|
|
10600
10600
|
const f = ny(XL), m = S.useId();
|
|
@@ -10616,7 +10616,7 @@ const ZL = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
|
10616
10616
|
f.forEach((x, b) => f.set(b, !1));
|
|
10617
10617
|
}, [n]), S.useEffect(() => {
|
|
10618
10618
|
!n && !f.size && r && r();
|
|
10619
|
-
}, [n]), l === "popLayout" && (e =
|
|
10619
|
+
}, [n]), l === "popLayout" && (e = U.jsx(KL, { isPresent: n, anchorX: c, root: d, children: e })), U.jsx(lf.Provider, { value: y, children: e });
|
|
10620
10620
|
};
|
|
10621
10621
|
function XL() {
|
|
10622
10622
|
return /* @__PURE__ */ new Map();
|
|
@@ -10659,7 +10659,7 @@ const wC = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
|
|
|
10659
10659
|
return a === "wait" && A.length && (D = A), F(Bb(D)), $(p), null;
|
|
10660
10660
|
}
|
|
10661
10661
|
const { forceRender: I } = S.useContext(ty);
|
|
10662
|
-
return
|
|
10662
|
+
return U.jsx(U.Fragment, { children: T.map((D) => {
|
|
10663
10663
|
const j = ed(D), K = l && !f ? !1 : p === T || y.includes(j), W = () => {
|
|
10664
10664
|
if (C.current.has(j))
|
|
10665
10665
|
return;
|
|
@@ -10672,7 +10672,7 @@ const wC = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
|
|
|
10672
10672
|
J || (Q = !1);
|
|
10673
10673
|
}), Q && (I == null || I(), F(b.current), l && (m == null || m()), r && r());
|
|
10674
10674
|
};
|
|
10675
|
-
return
|
|
10675
|
+
return U.jsx(ZL, { isPresent: K, initial: !x.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: o, mode: a, root: d, onExitComplete: K ? void 0 : W, anchorX: c, children: D }, j);
|
|
10676
10676
|
}) });
|
|
10677
10677
|
}, $y = S.createContext({ strict: !1 }), jb = {
|
|
10678
10678
|
animation: [
|
|
@@ -10727,7 +10727,7 @@ function YL({ children: e, features: t, strict: n = !1 }) {
|
|
|
10727
10727
|
_p(t) && t().then(({ renderer: a, ...l }) => {
|
|
10728
10728
|
Wm(l), o.current = a, r(!0);
|
|
10729
10729
|
});
|
|
10730
|
-
}, []),
|
|
10730
|
+
}, []), U.jsx($y.Provider, { value: { renderer: o.current, strict: n }, children: e });
|
|
10731
10731
|
}
|
|
10732
10732
|
function _p(e) {
|
|
10733
10733
|
return typeof e == "function";
|
|
@@ -11033,7 +11033,7 @@ function Rp(e, { forwardMotionProps: t = !1, type: n } = {}, r, o) {
|
|
|
11033
11033
|
const C = bO(y);
|
|
11034
11034
|
p = C.MeasureLayout, b.visualElement = gO(e, E, y, o, C.ProjectionNode, a);
|
|
11035
11035
|
}
|
|
11036
|
-
return
|
|
11036
|
+
return U.jsxs(df.Provider, { value: b, children: [p && b.visualElement ? U.jsx(p, { visualElement: b.visualElement, ...y }) : null, uO(e, f, mO(E, b.visualElement, m), E, x, t, a)] });
|
|
11037
11037
|
}
|
|
11038
11038
|
c.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
11039
11039
|
const d = S.forwardRef(c);
|
|
@@ -11654,7 +11654,7 @@ class BO extends S.Component {
|
|
|
11654
11654
|
}
|
|
11655
11655
|
function MC(e) {
|
|
11656
11656
|
const [t, n] = bC(), r = S.useContext(ty);
|
|
11657
|
-
return
|
|
11657
|
+
return U.jsx(BO, { ...e, layoutGroup: r, switchLayoutGroup: S.useContext(PC), isPresent: t, safeToRemove: n });
|
|
11658
11658
|
}
|
|
11659
11659
|
const jO = {
|
|
11660
11660
|
pan: {
|
|
@@ -13512,7 +13512,7 @@ var Eo, ko, Fn, Ti, Ai, Ed, sg, CE, bM = (CE = class extends Ka {
|
|
|
13512
13512
|
children: t
|
|
13513
13513
|
}) => (S.useEffect(() => (e.mount(), () => {
|
|
13514
13514
|
e.unmount();
|
|
13515
|
-
}), [e]), /* @__PURE__ */
|
|
13515
|
+
}), [e]), /* @__PURE__ */ U.jsx(QC.Provider, { value: e, children: t })), JC = S.createContext(!1), SM = () => S.useContext(JC);
|
|
13516
13516
|
JC.Provider;
|
|
13517
13517
|
function EM() {
|
|
13518
13518
|
let e = !1;
|
|
@@ -14286,7 +14286,7 @@ const lw = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Da = rT, j
|
|
|
14286
14286
|
} : {},
|
|
14287
14287
|
...D
|
|
14288
14288
|
};
|
|
14289
|
-
return /* @__PURE__ */
|
|
14289
|
+
return /* @__PURE__ */ U.jsx(K, {
|
|
14290
14290
|
...J,
|
|
14291
14291
|
ref: j,
|
|
14292
14292
|
className: Da(Q, E),
|
|
@@ -14294,7 +14294,7 @@ const lw = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Da = rT, j
|
|
|
14294
14294
|
});
|
|
14295
14295
|
});
|
|
14296
14296
|
zy.displayName = "Typography";
|
|
14297
|
-
const Du = ({ id: e, align: t, color: n, children: r, ["data-testid"]: o, strikeThrough: a, size: l = "base", textWrap: c, wordWrap: d, tabularNums: f, element: m = "p", superScript: p, fontWeight: y = "regular", fontStyle: x = "regular", lineHeight: b = "loose", fullWidth: E, truncate: C, className: k, title: $, slashedZero: T }) => /* @__PURE__ */
|
|
14297
|
+
const Du = ({ id: e, align: t, color: n, children: r, ["data-testid"]: o, strikeThrough: a, size: l = "base", textWrap: c, wordWrap: d, tabularNums: f, element: m = "p", superScript: p, fontWeight: y = "regular", fontStyle: x = "regular", lineHeight: b = "loose", fullWidth: E, truncate: C, className: k, title: $, slashedZero: T }) => /* @__PURE__ */ U.jsx(zy, {
|
|
14298
14298
|
fontFamily: "body",
|
|
14299
14299
|
id: e,
|
|
14300
14300
|
className: [
|
|
@@ -14435,7 +14435,7 @@ const cw = /\/fly-assets/, HD = "https://static.wayflyer.com/flyui-assets", iT =
|
|
|
14435
14435
|
overflowX: $,
|
|
14436
14436
|
overflowY: T
|
|
14437
14437
|
});
|
|
14438
|
-
return /* @__PURE__ */
|
|
14438
|
+
return /* @__PURE__ */ U.jsx("div", {
|
|
14439
14439
|
ref: D,
|
|
14440
14440
|
className: Da(K, A),
|
|
14441
14441
|
style: Object.keys(j).length > 0 ? j : void 0,
|
|
@@ -14616,7 +14616,7 @@ const P4 = /* @__PURE__ */ S.forwardRef(T4), _4 = {
|
|
|
14616
14616
|
"svg{opacity:0.8;}"
|
|
14617
14617
|
])), Fa = ({ size: e, color: t, backgroundColor: n, className: r, children: o, motion: a, subtle: l = !1, ...c }) => {
|
|
14618
14618
|
const d = tT();
|
|
14619
|
-
return /* @__PURE__ */
|
|
14619
|
+
return /* @__PURE__ */ U.jsx(R4, {
|
|
14620
14620
|
$size: e,
|
|
14621
14621
|
$color: t && d.palette.content.status[t] ? d.palette.content.status[t] : t === "onDark" ? d.palette.content.neutral.onInverse : "inherit",
|
|
14622
14622
|
$backgroundColor: n === "dark" ? d.palette.bg.neutral.inverse : void 0,
|
|
@@ -14652,13 +14652,13 @@ const P4 = /* @__PURE__ */ S.forwardRef(T4), _4 = {
|
|
|
14652
14652
|
tertiaryButton: r.palette.content.neutral.subtle,
|
|
14653
14653
|
tertiaryAccentButton: r.palette.content.accent.strong
|
|
14654
14654
|
};
|
|
14655
|
-
return /* @__PURE__ */
|
|
14655
|
+
return /* @__PURE__ */ U.jsx(I4, {
|
|
14656
14656
|
$isChromatic: v4(),
|
|
14657
14657
|
size: e,
|
|
14658
14658
|
color: a[t],
|
|
14659
14659
|
"data-testid": "spinner-container",
|
|
14660
14660
|
className: n,
|
|
14661
|
-
children: /* @__PURE__ */
|
|
14661
|
+
children: /* @__PURE__ */ U.jsx(o, {})
|
|
14662
14662
|
});
|
|
14663
14663
|
}, $4 = 250, N4 = ({ loading: e }) => {
|
|
14664
14664
|
const [t, n] = S.useState(e);
|
|
@@ -16012,13 +16012,13 @@ const e5 = () => () => {
|
|
|
16012
16012
|
}), [
|
|
16013
16013
|
t
|
|
16014
16014
|
]);
|
|
16015
|
-
return /* @__PURE__ */
|
|
16015
|
+
return /* @__PURE__ */ U.jsx(ET.Provider, {
|
|
16016
16016
|
value: n,
|
|
16017
16017
|
children: e
|
|
16018
16018
|
});
|
|
16019
16019
|
}, ev = (e) => S.useContext(ET)(e), kT = /* @__PURE__ */ S.createContext({
|
|
16020
16020
|
defaultLinkBehavior: "documentReload"
|
|
16021
|
-
}), r5 = ({ children: e, defaultLinkBehavior: t = "documentReload" }) => /* @__PURE__ */
|
|
16021
|
+
}), r5 = ({ children: e, defaultLinkBehavior: t = "documentReload" }) => /* @__PURE__ */ U.jsx(kT.Provider, {
|
|
16022
16022
|
value: {
|
|
16023
16023
|
defaultLinkBehavior: t
|
|
16024
16024
|
},
|
|
@@ -16046,13 +16046,13 @@ const e5 = () => () => {
|
|
|
16046
16046
|
role: l,
|
|
16047
16047
|
...y
|
|
16048
16048
|
};
|
|
16049
|
-
return d && !a && (k !== "native" || f !== void 0) ? /* @__PURE__ */
|
|
16049
|
+
return d && !a && (k !== "native" || f !== void 0) ? /* @__PURE__ */ U.jsx(Yy, {
|
|
16050
16050
|
...$,
|
|
16051
16051
|
to: d,
|
|
16052
16052
|
prefetch: m,
|
|
16053
16053
|
reloadDocument: f !== void 0 ? f : k === "documentReload",
|
|
16054
16054
|
children: r
|
|
16055
|
-
}) : /* @__PURE__ */
|
|
16055
|
+
}) : /* @__PURE__ */ U.jsx("a", {
|
|
16056
16056
|
href: d,
|
|
16057
16057
|
...$,
|
|
16058
16058
|
children: r
|
|
@@ -16072,7 +16072,7 @@ const e5 = () => () => {
|
|
|
16072
16072
|
onTouchStart: k,
|
|
16073
16073
|
onPointerDown: $
|
|
16074
16074
|
};
|
|
16075
|
-
return f && !T ? /* @__PURE__ */
|
|
16075
|
+
return f && !T ? /* @__PURE__ */ U.jsx(CT, {
|
|
16076
16076
|
...j,
|
|
16077
16077
|
analyticsAttrs: e,
|
|
16078
16078
|
analyticsId: n ?? t,
|
|
@@ -16082,17 +16082,17 @@ const e5 = () => () => {
|
|
|
16082
16082
|
ref: I,
|
|
16083
16083
|
role: d,
|
|
16084
16084
|
url: f,
|
|
16085
|
-
children: a && f && !l ? /* @__PURE__ */
|
|
16085
|
+
children: a && f && !l ? /* @__PURE__ */ U.jsxs("span", {
|
|
16086
16086
|
className: l5.externalLinkWrapper,
|
|
16087
16087
|
children: [
|
|
16088
16088
|
r,
|
|
16089
|
-
/* @__PURE__ */
|
|
16089
|
+
/* @__PURE__ */ U.jsx(Fa, {
|
|
16090
16090
|
subtle: !0,
|
|
16091
|
-
children: /* @__PURE__ */
|
|
16091
|
+
children: /* @__PURE__ */ U.jsx(oT, {})
|
|
16092
16092
|
})
|
|
16093
16093
|
]
|
|
16094
16094
|
}) : r
|
|
16095
|
-
}) : /* @__PURE__ */
|
|
16095
|
+
}) : /* @__PURE__ */ U.jsx("button", {
|
|
16096
16096
|
...j,
|
|
16097
16097
|
"aria-busy": c ? !0 : void 0,
|
|
16098
16098
|
disabled: T,
|
|
@@ -16319,7 +16319,7 @@ const w5 = "88px", S5 = [
|
|
|
16319
16319
|
}, [
|
|
16320
16320
|
I,
|
|
16321
16321
|
t
|
|
16322
|
-
]), /* @__PURE__ */
|
|
16322
|
+
]), /* @__PURE__ */ U.jsxs(F, {
|
|
16323
16323
|
ref: I,
|
|
16324
16324
|
loading: A,
|
|
16325
16325
|
disabled: r,
|
|
@@ -16344,22 +16344,22 @@ const w5 = "88px", S5 = [
|
|
|
16344
16344
|
"aria-label": b || (typeof e == "string" ? e : void 0),
|
|
16345
16345
|
maxWidth: x,
|
|
16346
16346
|
children: [
|
|
16347
|
-
a && A ? /* @__PURE__ */
|
|
16347
|
+
a && A ? /* @__PURE__ */ U.jsx(Op, {
|
|
16348
16348
|
variant: Fp(t)
|
|
16349
|
-
}) : a ? /* @__PURE__ */
|
|
16349
|
+
}) : a ? /* @__PURE__ */ U.jsx(Fa, {
|
|
16350
16350
|
size: E,
|
|
16351
16351
|
subtle: !0,
|
|
16352
|
-
children: /* @__PURE__ */
|
|
16352
|
+
children: /* @__PURE__ */ U.jsx(a, {})
|
|
16353
16353
|
}) : null,
|
|
16354
16354
|
e,
|
|
16355
|
-
l && A ? /* @__PURE__ */
|
|
16355
|
+
l && A ? /* @__PURE__ */ U.jsx(Op, {
|
|
16356
16356
|
variant: Fp(t)
|
|
16357
|
-
}) : l ? /* @__PURE__ */
|
|
16357
|
+
}) : l ? /* @__PURE__ */ U.jsx(Fa, {
|
|
16358
16358
|
size: E,
|
|
16359
16359
|
subtle: !0,
|
|
16360
|
-
children: /* @__PURE__ */
|
|
16360
|
+
children: /* @__PURE__ */ U.jsx(l, {})
|
|
16361
16361
|
}) : null,
|
|
16362
|
-
!l && !a && A ? /* @__PURE__ */
|
|
16362
|
+
!l && !a && A ? /* @__PURE__ */ U.jsx(Op, {
|
|
16363
16363
|
variant: Fp(t)
|
|
16364
16364
|
}) : null
|
|
16365
16365
|
]
|
|
@@ -16374,7 +16374,7 @@ function Fp(e) {
|
|
|
16374
16374
|
}
|
|
16375
16375
|
function ug(e) {
|
|
16376
16376
|
try {
|
|
16377
|
-
return typeof e == "string" || typeof e == "number" ? e.toString() : Array.isArray(e) ? e.map(ug).join("") : /* @__PURE__ */
|
|
16377
|
+
return typeof e == "string" || typeof e == "number" ? e.toString() : Array.isArray(e) ? e.map(ug).join("") : /* @__PURE__ */ V.isValidElement(e) ? ug(e.props.children) : "";
|
|
16378
16378
|
} catch {
|
|
16379
16379
|
return "";
|
|
16380
16380
|
}
|
|
@@ -16384,9 +16384,9 @@ const E5 = gt.div.withConfig({
|
|
|
16384
16384
|
componentId: "FlyUI__sc-4a80bb94-0"
|
|
16385
16385
|
})([
|
|
16386
16386
|
'width:100%;display:flex;align-items:center;text-align:center;&:after,&:before{content:"";flex:1;border-bottom:1px solid var(--palette-border-neutral-subtle);}&:not(:empty)::before{margin-right:var(--sizes-spacing-6);}&:not(:empty)::after{margin-left:var(--sizes-spacing-6);}'
|
|
16387
|
-
]), k5 = ({ className: e, label: t }) => /* @__PURE__ */
|
|
16387
|
+
]), k5 = ({ className: e, label: t }) => /* @__PURE__ */ U.jsx(E5, {
|
|
16388
16388
|
className: e,
|
|
16389
|
-
children: t ? /* @__PURE__ */
|
|
16389
|
+
children: t ? /* @__PURE__ */ U.jsx(Du, {
|
|
16390
16390
|
lineHeight: "normal",
|
|
16391
16391
|
children: t
|
|
16392
16392
|
}) : null
|
|
@@ -16399,7 +16399,7 @@ S.createContext(null);
|
|
|
16399
16399
|
const C5 = S.createContext({});
|
|
16400
16400
|
S.createContext(null);
|
|
16401
16401
|
S.createContext(null);
|
|
16402
|
-
const Gt = typeof document < "u" ?
|
|
16402
|
+
const Gt = typeof document < "u" ? V.useLayoutEffect : () => {
|
|
16403
16403
|
};
|
|
16404
16404
|
function T5(e) {
|
|
16405
16405
|
let [t, n] = S.useState(e), r = S.useRef(t), o = S.useRef(null), a = S.useRef(() => {
|
|
@@ -16427,13 +16427,13 @@ function T5(e) {
|
|
|
16427
16427
|
const _T = {
|
|
16428
16428
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
16429
16429
|
current: 0
|
|
16430
|
-
}, RT = /* @__PURE__ */
|
|
16430
|
+
}, RT = /* @__PURE__ */ V.createContext(_T), P5 = /* @__PURE__ */ V.createContext(!1);
|
|
16431
16431
|
let Bp = /* @__PURE__ */ new WeakMap();
|
|
16432
16432
|
function _5(e = !1) {
|
|
16433
16433
|
let t = S.useContext(RT), n = S.useRef(null);
|
|
16434
16434
|
if (n.current === null && !e) {
|
|
16435
16435
|
var r, o;
|
|
16436
|
-
let a = (o =
|
|
16436
|
+
let a = (o = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
16437
16437
|
if (a) {
|
|
16438
16438
|
let l = Bp.get(a);
|
|
16439
16439
|
l == null ? Bp.set(a, {
|
|
@@ -16450,10 +16450,10 @@ function R5(e) {
|
|
|
16450
16450
|
return e || `${r}-${n}`;
|
|
16451
16451
|
}
|
|
16452
16452
|
function I5(e) {
|
|
16453
|
-
let t =
|
|
16453
|
+
let t = V.useId(), [n] = S.useState(Bu()), r = n ? "react-aria" : `react-aria${_T.prefix}`;
|
|
16454
16454
|
return e || `${r}-${t}`;
|
|
16455
16455
|
}
|
|
16456
|
-
const A5 = typeof
|
|
16456
|
+
const A5 = typeof V.useId == "function" ? I5 : R5;
|
|
16457
16457
|
function $5() {
|
|
16458
16458
|
return !1;
|
|
16459
16459
|
}
|
|
@@ -16465,7 +16465,7 @@ function L5(e) {
|
|
|
16465
16465
|
};
|
|
16466
16466
|
}
|
|
16467
16467
|
function Bu() {
|
|
16468
|
-
return typeof
|
|
16468
|
+
return typeof V.useSyncExternalStore == "function" ? V.useSyncExternalStore(L5, $5, N5) : S.useContext(P5);
|
|
16469
16469
|
}
|
|
16470
16470
|
let O5 = !!(typeof window < "u" && window.document && window.document.createElement), ya = /* @__PURE__ */ new Map(), Xl;
|
|
16471
16471
|
typeof FinalizationRegistry < "u" && (Xl = new FinalizationRegistry((e) => {
|
|
@@ -16972,7 +16972,7 @@ function iv(e) {
|
|
|
16972
16972
|
]);
|
|
16973
16973
|
}
|
|
16974
16974
|
var jp;
|
|
16975
|
-
const oF = (jp =
|
|
16975
|
+
const oF = (jp = V.useInsertionEffect) !== null && jp !== void 0 ? jp : Gt;
|
|
16976
16976
|
function yw(e) {
|
|
16977
16977
|
const t = S.useRef(null);
|
|
16978
16978
|
return oF(() => {
|
|
@@ -17154,7 +17154,7 @@ function FT(e) {
|
|
|
17154
17154
|
return !1;
|
|
17155
17155
|
}
|
|
17156
17156
|
var zp;
|
|
17157
|
-
const gF = typeof document < "u" ? (zp =
|
|
17157
|
+
const gF = typeof document < "u" ? (zp = V.useInsertionEffect) !== null && zp !== void 0 ? zp : V.useLayoutEffect : () => {
|
|
17158
17158
|
};
|
|
17159
17159
|
function yF(e, t, n) {
|
|
17160
17160
|
let [r, o] = S.useState(e || t), a = S.useRef(r), l = S.useRef(e !== void 0), c = e !== void 0;
|
|
@@ -17181,7 +17181,7 @@ function yF(e, t, n) {
|
|
|
17181
17181
|
const hg = Symbol("default");
|
|
17182
17182
|
function BT({ values: e, children: t }) {
|
|
17183
17183
|
for (let [n, r] of e)
|
|
17184
|
-
t = /* @__PURE__ */
|
|
17184
|
+
t = /* @__PURE__ */ V.createElement(n.Provider, {
|
|
17185
17185
|
value: r
|
|
17186
17186
|
}, t);
|
|
17187
17187
|
return t;
|
|
@@ -17327,7 +17327,7 @@ function SF() {
|
|
|
17327
17327
|
direction: "ltr"
|
|
17328
17328
|
} : t;
|
|
17329
17329
|
}
|
|
17330
|
-
const EF = /* @__PURE__ */
|
|
17330
|
+
const EF = /* @__PURE__ */ V.createContext(null);
|
|
17331
17331
|
function kF() {
|
|
17332
17332
|
let e = SF();
|
|
17333
17333
|
return S.useContext(EF) || e;
|
|
@@ -17478,7 +17478,7 @@ function LF(e) {
|
|
|
17478
17478
|
]);
|
|
17479
17479
|
}
|
|
17480
17480
|
let OF = !1;
|
|
17481
|
-
const UT =
|
|
17481
|
+
const UT = V.createContext({
|
|
17482
17482
|
register: () => {
|
|
17483
17483
|
}
|
|
17484
17484
|
});
|
|
@@ -17549,7 +17549,7 @@ function BF({ children: e }) {
|
|
|
17549
17549
|
register: () => {
|
|
17550
17550
|
}
|
|
17551
17551
|
}), []);
|
|
17552
|
-
return /* @__PURE__ */
|
|
17552
|
+
return /* @__PURE__ */ V.createElement(UT.Provider, {
|
|
17553
17553
|
value: t
|
|
17554
17554
|
}, e);
|
|
17555
17555
|
}
|
|
@@ -17636,7 +17636,7 @@ function Cw(e, t) {
|
|
|
17636
17636
|
}
|
|
17637
17637
|
return t.current ? !e.composedPath().includes(t.current) : !1;
|
|
17638
17638
|
}
|
|
17639
|
-
const Tw = /* @__PURE__ */
|
|
17639
|
+
const Tw = /* @__PURE__ */ V.createContext(null), yg = "react-aria-focus-scope-restore";
|
|
17640
17640
|
let ut = null;
|
|
17641
17641
|
function zF(e) {
|
|
17642
17642
|
let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, a = S.useRef(null), l = S.useRef(null), c = S.useRef([]), { parentNode: d } = S.useContext(Tw) || {}, f = S.useMemo(() => new xg({
|
|
@@ -17692,13 +17692,13 @@ function zF(e) {
|
|
|
17692
17692
|
f,
|
|
17693
17693
|
m
|
|
17694
17694
|
]);
|
|
17695
|
-
return /* @__PURE__ */
|
|
17695
|
+
return /* @__PURE__ */ V.createElement(Tw.Provider, {
|
|
17696
17696
|
value: p
|
|
17697
|
-
}, /* @__PURE__ */
|
|
17697
|
+
}, /* @__PURE__ */ V.createElement("span", {
|
|
17698
17698
|
"data-focus-scope-start": !0,
|
|
17699
17699
|
hidden: !0,
|
|
17700
17700
|
ref: a
|
|
17701
|
-
}), t, /* @__PURE__ */
|
|
17701
|
+
}), t, /* @__PURE__ */ V.createElement("span", {
|
|
17702
17702
|
"data-focus-scope-end": !0,
|
|
17703
17703
|
hidden: !0,
|
|
17704
17704
|
ref: l
|
|
@@ -17869,7 +17869,7 @@ function vg(e, t = !0) {
|
|
|
17869
17869
|
Pi(YT(e, t));
|
|
17870
17870
|
}
|
|
17871
17871
|
function GF(e, t) {
|
|
17872
|
-
const n =
|
|
17872
|
+
const n = V.useRef(t);
|
|
17873
17873
|
S.useEffect(() => {
|
|
17874
17874
|
if (n.current) {
|
|
17875
17875
|
ut = e;
|
|
@@ -18217,7 +18217,7 @@ function Iw(e) {
|
|
|
18217
18217
|
const JT = /* @__PURE__ */ S.createContext({});
|
|
18218
18218
|
function JF(e) {
|
|
18219
18219
|
let { getContainer: t } = e, { getContainer: n } = eP();
|
|
18220
|
-
return /* @__PURE__ */
|
|
18220
|
+
return /* @__PURE__ */ V.createElement(JT.Provider, {
|
|
18221
18221
|
value: {
|
|
18222
18222
|
getContainer: t === null ? void 0 : t ?? n
|
|
18223
18223
|
}
|
|
@@ -18431,7 +18431,7 @@ function e6(e = {}) {
|
|
|
18431
18431
|
}
|
|
18432
18432
|
function t6(e) {
|
|
18433
18433
|
let { children: t, elementType: n = "div", isFocusable: r, style: o, ...a } = e, { visuallyHiddenProps: l } = e6(e);
|
|
18434
|
-
return /* @__PURE__ */
|
|
18434
|
+
return /* @__PURE__ */ V.createElement(n, Ya(a, l), t);
|
|
18435
18435
|
}
|
|
18436
18436
|
function n6(e) {
|
|
18437
18437
|
return e && e.__esModule ? e.default : e;
|
|
@@ -18440,7 +18440,7 @@ function r6(e) {
|
|
|
18440
18440
|
let { onDismiss: t, ...n } = e, r = $F(n6(OP), "@react-aria/overlays"), o = iF(n, r.format("dismiss")), a = () => {
|
|
18441
18441
|
t && t();
|
|
18442
18442
|
};
|
|
18443
|
-
return /* @__PURE__ */
|
|
18443
|
+
return /* @__PURE__ */ V.createElement(t6, null, /* @__PURE__ */ V.createElement("button", {
|
|
18444
18444
|
...o,
|
|
18445
18445
|
tabIndex: -1,
|
|
18446
18446
|
onClick: a,
|
|
@@ -18515,7 +18515,7 @@ function o6(e, t) {
|
|
|
18515
18515
|
b === lr[lr.length - 1] ? (lr.pop(), lr.length && lr[lr.length - 1].observe()) : lr.splice(lr.indexOf(b), 1);
|
|
18516
18516
|
};
|
|
18517
18517
|
}
|
|
18518
|
-
const MP = /* @__PURE__ */
|
|
18518
|
+
const MP = /* @__PURE__ */ V.createContext(null);
|
|
18519
18519
|
function s6(e) {
|
|
18520
18520
|
let t = Bu(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, a] = S.useState(!1), l = S.useMemo(() => ({
|
|
18521
18521
|
contain: o,
|
|
@@ -18526,12 +18526,12 @@ function s6(e) {
|
|
|
18526
18526
|
]), { getContainer: c } = eP();
|
|
18527
18527
|
if (!e.portalContainer && c && (n = c()), !n) return null;
|
|
18528
18528
|
let d = e.children;
|
|
18529
|
-
return e.disableFocusManagement || (d = /* @__PURE__ */
|
|
18529
|
+
return e.disableFocusManagement || (d = /* @__PURE__ */ V.createElement(zF, {
|
|
18530
18530
|
restoreFocus: !0,
|
|
18531
18531
|
contain: (e.shouldContainFocus || o) && !r
|
|
18532
|
-
}, d)), d = /* @__PURE__ */
|
|
18532
|
+
}, d)), d = /* @__PURE__ */ V.createElement(MP.Provider, {
|
|
18533
18533
|
value: l
|
|
18534
|
-
}, /* @__PURE__ */
|
|
18534
|
+
}, /* @__PURE__ */ V.createElement(BF, null, d)), /* @__PURE__ */ ST.createPortal(d, n);
|
|
18535
18535
|
}
|
|
18536
18536
|
function DP() {
|
|
18537
18537
|
let e = S.useContext(MP), t = e == null ? void 0 : e.setContain;
|
|
@@ -18646,11 +18646,11 @@ const d6 = /* @__PURE__ */ S.createContext(null), bf = /* @__PURE__ */ S.createC
|
|
|
18646
18646
|
}), d = yf(t, {
|
|
18647
18647
|
global: !0
|
|
18648
18648
|
});
|
|
18649
|
-
return /* @__PURE__ */
|
|
18649
|
+
return /* @__PURE__ */ V.createElement("section", {
|
|
18650
18650
|
...Ya(d, c, o),
|
|
18651
18651
|
ref: n,
|
|
18652
18652
|
slot: t.slot || void 0
|
|
18653
|
-
}, /* @__PURE__ */
|
|
18653
|
+
}, /* @__PURE__ */ V.createElement(BT, {
|
|
18654
18654
|
values: [
|
|
18655
18655
|
[
|
|
18656
18656
|
C5,
|
|
@@ -18679,12 +18679,12 @@ const d6 = /* @__PURE__ */ S.createContext(null), bf = /* @__PURE__ */ S.createC
|
|
|
18679
18679
|
}, c.children));
|
|
18680
18680
|
}), h6 = /* @__PURE__ */ S.createContext(null), cv = /* @__PURE__ */ S.createContext(null), p6 = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
18681
18681
|
if (S.useContext(cv))
|
|
18682
|
-
return /* @__PURE__ */
|
|
18682
|
+
return /* @__PURE__ */ V.createElement($w, {
|
|
18683
18683
|
...t,
|
|
18684
18684
|
modalRef: n
|
|
18685
18685
|
}, t.children);
|
|
18686
18686
|
let { isDismissable: o, isKeyboardDismissDisabled: a, isOpen: l, defaultOpen: c, onOpenChange: d, children: f, isEntering: m, isExiting: p, UNSTABLE_portalContainer: y, shouldCloseOnInteractOutside: x, ...b } = t;
|
|
18687
|
-
return /* @__PURE__ */
|
|
18687
|
+
return /* @__PURE__ */ V.createElement(FP, {
|
|
18688
18688
|
isDismissable: o,
|
|
18689
18689
|
isKeyboardDismissDisabled: a,
|
|
18690
18690
|
isOpen: l,
|
|
@@ -18694,7 +18694,7 @@ const d6 = /* @__PURE__ */ S.createContext(null), bf = /* @__PURE__ */ S.createC
|
|
|
18694
18694
|
isExiting: p,
|
|
18695
18695
|
UNSTABLE_portalContainer: y,
|
|
18696
18696
|
shouldCloseOnInteractOutside: x
|
|
18697
|
-
}, /* @__PURE__ */
|
|
18697
|
+
}, /* @__PURE__ */ V.createElement($w, {
|
|
18698
18698
|
...b,
|
|
18699
18699
|
modalRef: n
|
|
18700
18700
|
}, f));
|
|
@@ -18702,7 +18702,7 @@ const d6 = /* @__PURE__ */ S.createContext(null), bf = /* @__PURE__ */ S.createC
|
|
|
18702
18702
|
function m6(e, t) {
|
|
18703
18703
|
[e, t] = jT(e, t, h6);
|
|
18704
18704
|
let n = S.useContext(bf), r = c6(e), o = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iv(t), l = S.useRef(null), c = xw(a, o.isOpen), d = xw(l, o.isOpen), f = c || d || e.isExiting || !1, m = Bu();
|
|
18705
|
-
return !o.isOpen && !f || m ? null : /* @__PURE__ */
|
|
18705
|
+
return !o.isOpen && !f || m ? null : /* @__PURE__ */ V.createElement(g6, {
|
|
18706
18706
|
...e,
|
|
18707
18707
|
state: o,
|
|
18708
18708
|
isExiting: f,
|
|
@@ -18730,10 +18730,10 @@ function g6({ UNSTABLE_portalContainer: e, ...t }) {
|
|
|
18730
18730
|
"--visual-viewport-height": d.height + "px",
|
|
18731
18731
|
"--page-height": f !== void 0 ? f + "px" : void 0
|
|
18732
18732
|
};
|
|
18733
|
-
return /* @__PURE__ */
|
|
18733
|
+
return /* @__PURE__ */ V.createElement(s6, {
|
|
18734
18734
|
isExiting: t.isExiting,
|
|
18735
18735
|
portalContainer: e
|
|
18736
|
-
}, /* @__PURE__ */
|
|
18736
|
+
}, /* @__PURE__ */ V.createElement("div", {
|
|
18737
18737
|
...Ya(yf(t, {
|
|
18738
18738
|
global: !0
|
|
18739
18739
|
}), a),
|
|
@@ -18742,7 +18742,7 @@ function g6({ UNSTABLE_portalContainer: e, ...t }) {
|
|
|
18742
18742
|
ref: t.overlayRef,
|
|
18743
18743
|
"data-entering": l || void 0,
|
|
18744
18744
|
"data-exiting": t.isExiting || void 0
|
|
18745
|
-
}, /* @__PURE__ */
|
|
18745
|
+
}, /* @__PURE__ */ V.createElement(BT, {
|
|
18746
18746
|
values: [
|
|
18747
18747
|
[
|
|
18748
18748
|
cv,
|
|
@@ -18773,7 +18773,7 @@ function $w(e) {
|
|
|
18773
18773
|
state: a
|
|
18774
18774
|
}
|
|
18775
18775
|
});
|
|
18776
|
-
return /* @__PURE__ */
|
|
18776
|
+
return /* @__PURE__ */ V.createElement("div", {
|
|
18777
18777
|
...Ya(yf(e, {
|
|
18778
18778
|
global: !0
|
|
18779
18779
|
}), t),
|
|
@@ -18781,7 +18781,7 @@ function $w(e) {
|
|
|
18781
18781
|
ref: c,
|
|
18782
18782
|
"data-entering": d || void 0,
|
|
18783
18783
|
"data-exiting": r || void 0
|
|
18784
|
-
}, o && /* @__PURE__ */
|
|
18784
|
+
}, o && /* @__PURE__ */ V.createElement(r6, {
|
|
18785
18785
|
onDismiss: a.close
|
|
18786
18786
|
}), f.children);
|
|
18787
18787
|
}
|
|
@@ -18810,7 +18810,7 @@ const Nw = () => Math.max(document.documentElement.clientWidth || 0, window.inne
|
|
|
18810
18810
|
isDesktop: r,
|
|
18811
18811
|
isDesktopXL: o
|
|
18812
18812
|
};
|
|
18813
|
-
}, fv = /* @__PURE__ */ S.forwardRef(({ element: e = "h2", size: t = "2xl", color: n = "heading", textWrap: r = "balance", fontWeight: o = "semiBold", lineHeight: a, id: l, children: c, className: d, align: f, slashedZero: m }, p) => /* @__PURE__ */
|
|
18813
|
+
}, fv = /* @__PURE__ */ S.forwardRef(({ element: e = "h2", size: t = "2xl", color: n = "heading", textWrap: r = "balance", fontWeight: o = "semiBold", lineHeight: a, id: l, children: c, className: d, align: f, slashedZero: m }, p) => /* @__PURE__ */ U.jsx(zy, {
|
|
18814
18814
|
id: l,
|
|
18815
18815
|
element: e,
|
|
18816
18816
|
fontWeight: o,
|
|
@@ -18830,7 +18830,7 @@ const y6 = ({ size: e = "normal", fullWidth: t, primaryAction: n, primaryActionV
|
|
|
18830
18830
|
const x = dv()("xs").windowLt;
|
|
18831
18831
|
if (!n && !l)
|
|
18832
18832
|
return null;
|
|
18833
|
-
const b = n ? /* @__PURE__ */
|
|
18833
|
+
const b = n ? /* @__PURE__ */ U.jsx(ni, {
|
|
18834
18834
|
"data-dd-action-name": n.analyticsId,
|
|
18835
18835
|
accessibilityLabel: n.accessibilityLabel,
|
|
18836
18836
|
"data-testid": a ?? "primary-button",
|
|
@@ -18844,7 +18844,7 @@ const y6 = ({ size: e = "normal", fullWidth: t, primaryAction: n, primaryActionV
|
|
|
18844
18844
|
type: o ?? "submit",
|
|
18845
18845
|
iconRight: n == null ? void 0 : n.icon,
|
|
18846
18846
|
children: n.content
|
|
18847
|
-
}, "primary-button") : null, E = l ? /* @__PURE__ */
|
|
18847
|
+
}, "primary-button") : null, E = l ? /* @__PURE__ */ U.jsx(ni, {
|
|
18848
18848
|
"data-dd-action-name": l.analyticsId,
|
|
18849
18849
|
accessibilityLabel: l.accessibilityLabel,
|
|
18850
18850
|
"data-testid": c ?? "secondary-button",
|
|
@@ -18857,7 +18857,7 @@ const y6 = ({ size: e = "normal", fullWidth: t, primaryAction: n, primaryActionV
|
|
|
18857
18857
|
fullWidth: x || t,
|
|
18858
18858
|
type: d || (n ? "button" : void 0),
|
|
18859
18859
|
children: l.content
|
|
18860
|
-
}, "secondary-button") : null, C = f ? /* @__PURE__ */
|
|
18860
|
+
}, "secondary-button") : null, C = f ? /* @__PURE__ */ U.jsx(ni, {
|
|
18861
18861
|
"data-dd-action-name": f.analyticsId,
|
|
18862
18862
|
accessibilityLabel: f.accessibilityLabel,
|
|
18863
18863
|
"data-testid": m ?? "secondary-button",
|
|
@@ -18872,7 +18872,7 @@ const y6 = ({ size: e = "normal", fullWidth: t, primaryAction: n, primaryActionV
|
|
|
18872
18872
|
iconLeft: f == null ? void 0 : f.icon,
|
|
18873
18873
|
children: f.content
|
|
18874
18874
|
}, "tertiary-button") : null;
|
|
18875
|
-
return /* @__PURE__ */
|
|
18875
|
+
return /* @__PURE__ */ U.jsxs(Yt, {
|
|
18876
18876
|
grow: 1,
|
|
18877
18877
|
width: "100%",
|
|
18878
18878
|
gap: "4",
|
|
@@ -18881,7 +18881,7 @@ const y6 = ({ size: e = "normal", fullWidth: t, primaryAction: n, primaryActionV
|
|
|
18881
18881
|
justify: "space-between",
|
|
18882
18882
|
className: y,
|
|
18883
18883
|
children: [
|
|
18884
|
-
/* @__PURE__ */
|
|
18884
|
+
/* @__PURE__ */ U.jsx(Yt, {
|
|
18885
18885
|
grow: 1,
|
|
18886
18886
|
width: "100%",
|
|
18887
18887
|
gap: "4",
|
|
@@ -22627,13 +22627,13 @@ function Q9({ accessibilityLabel: e, children: t, external: n, url: r, testId: o
|
|
|
22627
22627
|
onDark: m,
|
|
22628
22628
|
critical: p,
|
|
22629
22629
|
size: b
|
|
22630
|
-
}), y), k = n && r ? /* @__PURE__ */
|
|
22630
|
+
}), y), k = n && r ? /* @__PURE__ */ U.jsxs("span", {
|
|
22631
22631
|
className: aa.externalLinkWrapper,
|
|
22632
22632
|
children: [
|
|
22633
22633
|
t,
|
|
22634
|
-
/* @__PURE__ */
|
|
22634
|
+
/* @__PURE__ */ U.jsx(Fa, {
|
|
22635
22635
|
size: 16,
|
|
22636
|
-
children: /* @__PURE__ */
|
|
22636
|
+
children: /* @__PURE__ */ U.jsx(oT, {
|
|
22637
22637
|
style: {
|
|
22638
22638
|
transform: "translate(4px, 4px)"
|
|
22639
22639
|
}
|
|
@@ -22641,7 +22641,7 @@ function Q9({ accessibilityLabel: e, children: t, external: n, url: r, testId: o
|
|
|
22641
22641
|
})
|
|
22642
22642
|
]
|
|
22643
22643
|
}) : t;
|
|
22644
|
-
return r ? /* @__PURE__ */
|
|
22644
|
+
return r ? /* @__PURE__ */ U.jsx(CT, {
|
|
22645
22645
|
className: C,
|
|
22646
22646
|
accessibilityLabel: e,
|
|
22647
22647
|
analyticsAttrs: a,
|
|
@@ -22653,7 +22653,7 @@ function Q9({ accessibilityLabel: e, children: t, external: n, url: r, testId: o
|
|
|
22653
22653
|
title: d,
|
|
22654
22654
|
reloadDocument: x,
|
|
22655
22655
|
children: k
|
|
22656
|
-
}) : /* @__PURE__ */
|
|
22656
|
+
}) : /* @__PURE__ */ U.jsx("button", {
|
|
22657
22657
|
className: C,
|
|
22658
22658
|
"aria-label": e,
|
|
22659
22659
|
type: "button",
|
|
@@ -22823,7 +22823,7 @@ function iB(e, t) {
|
|
|
22823
22823
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
22824
22824
|
).trim();
|
|
22825
22825
|
}
|
|
22826
|
-
var oB =
|
|
22826
|
+
var oB = V.createContext({
|
|
22827
22827
|
hadKeyboardEvent: !0,
|
|
22828
22828
|
isInitialized: !1
|
|
22829
22829
|
});
|
|
@@ -22852,7 +22852,7 @@ function sB(e) {
|
|
|
22852
22852
|
return document.addEventListener("keydown", d, !0), document.addEventListener("mousedown", o, !0), document.addEventListener("pointerdown", o, !0), document.addEventListener("touchstart", o, !0), document.addEventListener("visibilitychange", f, !0), l(), function() {
|
|
22853
22853
|
document.removeEventListener("keydown", d, !0), document.removeEventListener("mousedown", o, !0), document.removeEventListener("pointerdown", o, !0), document.removeEventListener("touchstart", o, !0), document.removeEventListener("visibilitychange", f, !0), c();
|
|
22854
22854
|
};
|
|
22855
|
-
}, [r]),
|
|
22855
|
+
}, [r]), V.createElement(oB.Provider, {
|
|
22856
22856
|
value: {
|
|
22857
22857
|
hadKeyboardEvent: n,
|
|
22858
22858
|
isInitialized: !0
|
|
@@ -22919,7 +22919,7 @@ const lB = ({ themeKey: e, rootElement: t, onThemeLoad: n, onThemeLoadError: r,
|
|
|
22919
22919
|
}));
|
|
22920
22920
|
return S.useEffect(() => {
|
|
22921
22921
|
d.current.observe(document.documentElement), iS();
|
|
22922
|
-
}), /* @__PURE__ */
|
|
22922
|
+
}), /* @__PURE__ */ U.jsx(wA, {
|
|
22923
22923
|
theme: {
|
|
22924
22924
|
...wu,
|
|
22925
22925
|
themeName: t
|
|
@@ -22951,7 +22951,7 @@ const lB = ({ themeKey: e, rootElement: t, onThemeLoad: n, onThemeLoadError: r,
|
|
|
22951
22951
|
}
|
|
22952
22952
|
}), pB = ({ children: e }) => {
|
|
22953
22953
|
const [t, n] = S.useState(null), [r, o] = S.useState(null);
|
|
22954
|
-
return /* @__PURE__ */
|
|
22954
|
+
return /* @__PURE__ */ U.jsx(hB.Provider, {
|
|
22955
22955
|
value: {
|
|
22956
22956
|
layout: t,
|
|
22957
22957
|
isConstrainedWidth: r,
|
|
@@ -22979,58 +22979,58 @@ const gB = (e) => {
|
|
|
22979
22979
|
default:
|
|
22980
22980
|
return null;
|
|
22981
22981
|
}
|
|
22982
|
-
}, yB = Array(12).fill(0), vB = ({ visible: e, className: t }) => /* @__PURE__ */
|
|
22982
|
+
}, yB = Array(12).fill(0), vB = ({ visible: e, className: t }) => /* @__PURE__ */ V.createElement("div", {
|
|
22983
22983
|
className: [
|
|
22984
22984
|
"sonner-loading-wrapper",
|
|
22985
22985
|
t
|
|
22986
22986
|
].filter(Boolean).join(" "),
|
|
22987
22987
|
"data-visible": e
|
|
22988
|
-
}, /* @__PURE__ */
|
|
22988
|
+
}, /* @__PURE__ */ V.createElement("div", {
|
|
22989
22989
|
className: "sonner-spinner"
|
|
22990
|
-
}, yB.map((n, r) => /* @__PURE__ */
|
|
22990
|
+
}, yB.map((n, r) => /* @__PURE__ */ V.createElement("div", {
|
|
22991
22991
|
className: "sonner-loading-bar",
|
|
22992
22992
|
key: `spinner-bar-${r}`
|
|
22993
|
-
})))), xB = /* @__PURE__ */
|
|
22993
|
+
})))), xB = /* @__PURE__ */ V.createElement("svg", {
|
|
22994
22994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22995
22995
|
viewBox: "0 0 20 20",
|
|
22996
22996
|
fill: "currentColor",
|
|
22997
22997
|
height: "20",
|
|
22998
22998
|
width: "20"
|
|
22999
|
-
}, /* @__PURE__ */
|
|
22999
|
+
}, /* @__PURE__ */ V.createElement("path", {
|
|
23000
23000
|
fillRule: "evenodd",
|
|
23001
23001
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
23002
23002
|
clipRule: "evenodd"
|
|
23003
|
-
})), bB = /* @__PURE__ */
|
|
23003
|
+
})), bB = /* @__PURE__ */ V.createElement("svg", {
|
|
23004
23004
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23005
23005
|
viewBox: "0 0 24 24",
|
|
23006
23006
|
fill: "currentColor",
|
|
23007
23007
|
height: "20",
|
|
23008
23008
|
width: "20"
|
|
23009
|
-
}, /* @__PURE__ */
|
|
23009
|
+
}, /* @__PURE__ */ V.createElement("path", {
|
|
23010
23010
|
fillRule: "evenodd",
|
|
23011
23011
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
23012
23012
|
clipRule: "evenodd"
|
|
23013
|
-
})), wB = /* @__PURE__ */
|
|
23013
|
+
})), wB = /* @__PURE__ */ V.createElement("svg", {
|
|
23014
23014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23015
23015
|
viewBox: "0 0 20 20",
|
|
23016
23016
|
fill: "currentColor",
|
|
23017
23017
|
height: "20",
|
|
23018
23018
|
width: "20"
|
|
23019
|
-
}, /* @__PURE__ */
|
|
23019
|
+
}, /* @__PURE__ */ V.createElement("path", {
|
|
23020
23020
|
fillRule: "evenodd",
|
|
23021
23021
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
23022
23022
|
clipRule: "evenodd"
|
|
23023
|
-
})), SB = /* @__PURE__ */
|
|
23023
|
+
})), SB = /* @__PURE__ */ V.createElement("svg", {
|
|
23024
23024
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23025
23025
|
viewBox: "0 0 20 20",
|
|
23026
23026
|
fill: "currentColor",
|
|
23027
23027
|
height: "20",
|
|
23028
23028
|
width: "20"
|
|
23029
|
-
}, /* @__PURE__ */
|
|
23029
|
+
}, /* @__PURE__ */ V.createElement("path", {
|
|
23030
23030
|
fillRule: "evenodd",
|
|
23031
23031
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
23032
23032
|
clipRule: "evenodd"
|
|
23033
|
-
})), EB = /* @__PURE__ */
|
|
23033
|
+
})), EB = /* @__PURE__ */ V.createElement("svg", {
|
|
23034
23034
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23035
23035
|
width: "12",
|
|
23036
23036
|
height: "12",
|
|
@@ -23040,19 +23040,19 @@ const gB = (e) => {
|
|
|
23040
23040
|
strokeWidth: "1.5",
|
|
23041
23041
|
strokeLinecap: "round",
|
|
23042
23042
|
strokeLinejoin: "round"
|
|
23043
|
-
}, /* @__PURE__ */
|
|
23043
|
+
}, /* @__PURE__ */ V.createElement("line", {
|
|
23044
23044
|
x1: "18",
|
|
23045
23045
|
y1: "6",
|
|
23046
23046
|
x2: "6",
|
|
23047
23047
|
y2: "18"
|
|
23048
|
-
}), /* @__PURE__ */
|
|
23048
|
+
}), /* @__PURE__ */ V.createElement("line", {
|
|
23049
23049
|
x1: "6",
|
|
23050
23050
|
y1: "6",
|
|
23051
23051
|
x2: "18",
|
|
23052
23052
|
y2: "18"
|
|
23053
23053
|
})), kB = () => {
|
|
23054
|
-
const [e, t] =
|
|
23055
|
-
return
|
|
23054
|
+
const [e, t] = V.useState(document.hidden);
|
|
23055
|
+
return V.useEffect(() => {
|
|
23056
23056
|
const n = () => {
|
|
23057
23057
|
t(document.hidden);
|
|
23058
23058
|
};
|
|
@@ -23140,7 +23140,7 @@ class CB {
|
|
|
23140
23140
|
if (l = [
|
|
23141
23141
|
"resolve",
|
|
23142
23142
|
f
|
|
23143
|
-
],
|
|
23143
|
+
], V.isValidElement(f))
|
|
23144
23144
|
a = !1, this.create({
|
|
23145
23145
|
id: r,
|
|
23146
23146
|
type: "default",
|
|
@@ -23148,7 +23148,7 @@ class CB {
|
|
|
23148
23148
|
});
|
|
23149
23149
|
else if (PB(f) && !f.ok) {
|
|
23150
23150
|
a = !1;
|
|
23151
|
-
const p = typeof n.error == "function" ? await n.error(`HTTP error! status: ${f.status}`) : n.error, y = typeof n.description == "function" ? await n.description(`HTTP error! status: ${f.status}`) : n.description, b = typeof p == "object" && !
|
|
23151
|
+
const p = typeof n.error == "function" ? await n.error(`HTTP error! status: ${f.status}`) : n.error, y = typeof n.description == "function" ? await n.description(`HTTP error! status: ${f.status}`) : n.description, b = typeof p == "object" && !V.isValidElement(p) ? p : {
|
|
23152
23152
|
message: p
|
|
23153
23153
|
};
|
|
23154
23154
|
this.create({
|
|
@@ -23159,7 +23159,7 @@ class CB {
|
|
|
23159
23159
|
});
|
|
23160
23160
|
} else if (f instanceof Error) {
|
|
23161
23161
|
a = !1;
|
|
23162
|
-
const p = typeof n.error == "function" ? await n.error(f) : n.error, y = typeof n.description == "function" ? await n.description(f) : n.description, b = typeof p == "object" && !
|
|
23162
|
+
const p = typeof n.error == "function" ? await n.error(f) : n.error, y = typeof n.description == "function" ? await n.description(f) : n.description, b = typeof p == "object" && !V.isValidElement(p) ? p : {
|
|
23163
23163
|
message: p
|
|
23164
23164
|
};
|
|
23165
23165
|
this.create({
|
|
@@ -23170,7 +23170,7 @@ class CB {
|
|
|
23170
23170
|
});
|
|
23171
23171
|
} else if (n.success !== void 0) {
|
|
23172
23172
|
a = !1;
|
|
23173
|
-
const p = typeof n.success == "function" ? await n.success(f) : n.success, y = typeof n.description == "function" ? await n.description(f) : n.description, b = typeof p == "object" && !
|
|
23173
|
+
const p = typeof n.success == "function" ? await n.success(f) : n.success, y = typeof n.description == "function" ? await n.description(f) : n.description, b = typeof p == "object" && !V.isValidElement(p) ? p : {
|
|
23174
23174
|
message: p
|
|
23175
23175
|
};
|
|
23176
23176
|
this.create({
|
|
@@ -23186,7 +23186,7 @@ class CB {
|
|
|
23186
23186
|
f
|
|
23187
23187
|
], n.error !== void 0) {
|
|
23188
23188
|
a = !1;
|
|
23189
|
-
const m = typeof n.error == "function" ? await n.error(f) : n.error, p = typeof n.description == "function" ? await n.description(f) : n.description, x = typeof m == "object" && !
|
|
23189
|
+
const m = typeof n.error == "function" ? await n.error(f) : n.error, p = typeof n.description == "function" ? await n.description(f) : n.description, x = typeof m == "object" && !V.isValidElement(m) ? m : {
|
|
23190
23190
|
message: m
|
|
23191
23191
|
};
|
|
23192
23192
|
this.create({
|
|
@@ -23250,32 +23250,32 @@ function FB(e) {
|
|
|
23250
23250
|
}
|
|
23251
23251
|
const BB = (e) => {
|
|
23252
23252
|
var t, n, r, o, a, l, c, d, f;
|
|
23253
|
-
const { invert: m, toast: p, unstyled: y, interacting: x, setHeights: b, visibleToasts: E, heights: C, index: k, toasts: $, expanded: T, removeToast: F, defaultRichColors: A, closeButton: I, style: D, cancelButtonStyle: j, actionButtonStyle: K, className: W = "", descriptionClassName: Q = "", duration: J, position: be, gap: ce, expandByDefault: te, classNames: de, icons: ae, closeButtonAriaLabel: Z = "Close toast" } = e, [oe, P] =
|
|
23253
|
+
const { invert: m, toast: p, unstyled: y, interacting: x, setHeights: b, visibleToasts: E, heights: C, index: k, toasts: $, expanded: T, removeToast: F, defaultRichColors: A, closeButton: I, style: D, cancelButtonStyle: j, actionButtonStyle: K, className: W = "", descriptionClassName: Q = "", duration: J, position: be, gap: ce, expandByDefault: te, classNames: de, icons: ae, closeButtonAriaLabel: Z = "Close toast" } = e, [oe, P] = V.useState(null), [O, G] = V.useState(null), [_, le] = V.useState(!1), [ve, ge] = V.useState(!1), [Fe, me] = V.useState(!1), [Le, tt] = V.useState(!1), [_t, kt] = V.useState(!1), [Qn, Pn] = V.useState(0), [_n, Fi] = V.useState(0), Yn = V.useRef(p.duration || J || oS), jo = V.useRef(null), sn = V.useRef(null), Br = k === 0, jr = k + 1 <= E, Ft = p.type, br = p.dismissible !== !1, $s = p.className || "", Ns = p.descriptionClassName || "", q = V.useMemo(() => C.findIndex((De) => De.toastId === p.id) || 0, [
|
|
23254
23254
|
C,
|
|
23255
23255
|
p.id
|
|
23256
|
-
]), se =
|
|
23256
|
+
]), se = V.useMemo(() => {
|
|
23257
23257
|
var De;
|
|
23258
23258
|
return (De = p.closeButton) != null ? De : I;
|
|
23259
23259
|
}, [
|
|
23260
23260
|
p.closeButton,
|
|
23261
23261
|
I
|
|
23262
|
-
]), Ie =
|
|
23262
|
+
]), Ie = V.useMemo(() => p.duration || J || oS, [
|
|
23263
23263
|
p.duration,
|
|
23264
23264
|
J
|
|
23265
|
-
]), Be =
|
|
23265
|
+
]), Be = V.useRef(0), ze = V.useRef(0), Rt = V.useRef(0), an = V.useRef(null), [Rn, zr] = be.split("-"), Hr = V.useMemo(() => C.reduce((De, Ct, Bt) => Bt >= q ? De : De + Ct.height, 0), [
|
|
23266
23266
|
C,
|
|
23267
23267
|
q
|
|
23268
23268
|
]), It = kB(), Jn = p.invert || m, Jt = Ft === "loading";
|
|
23269
|
-
ze.current =
|
|
23269
|
+
ze.current = V.useMemo(() => q * ce + Hr, [
|
|
23270
23270
|
q,
|
|
23271
23271
|
Hr
|
|
23272
|
-
]),
|
|
23272
|
+
]), V.useEffect(() => {
|
|
23273
23273
|
Yn.current = Ie;
|
|
23274
23274
|
}, [
|
|
23275
23275
|
Ie
|
|
23276
|
-
]),
|
|
23276
|
+
]), V.useEffect(() => {
|
|
23277
23277
|
le(!0);
|
|
23278
|
-
}, []),
|
|
23278
|
+
}, []), V.useEffect(() => {
|
|
23279
23279
|
const De = sn.current;
|
|
23280
23280
|
if (De) {
|
|
23281
23281
|
const Ct = De.getBoundingClientRect().height;
|
|
@@ -23291,7 +23291,7 @@ const BB = (e) => {
|
|
|
23291
23291
|
}, [
|
|
23292
23292
|
b,
|
|
23293
23293
|
p.id
|
|
23294
|
-
]),
|
|
23294
|
+
]), V.useLayoutEffect(() => {
|
|
23295
23295
|
if (!_) return;
|
|
23296
23296
|
const De = sn.current, Ct = De.style.height;
|
|
23297
23297
|
De.style.height = "auto";
|
|
@@ -23317,7 +23317,7 @@ const BB = (e) => {
|
|
|
23317
23317
|
p.action,
|
|
23318
23318
|
p.cancel
|
|
23319
23319
|
]);
|
|
23320
|
-
const er =
|
|
23320
|
+
const er = V.useCallback(() => {
|
|
23321
23321
|
ge(!0), Pn(ze.current), b((De) => De.filter((Ct) => Ct.toastId !== p.id)), setTimeout(() => {
|
|
23322
23322
|
F(p);
|
|
23323
23323
|
}, DB);
|
|
@@ -23327,7 +23327,7 @@ const BB = (e) => {
|
|
|
23327
23327
|
b,
|
|
23328
23328
|
ze
|
|
23329
23329
|
]);
|
|
23330
|
-
|
|
23330
|
+
V.useEffect(() => {
|
|
23331
23331
|
if (p.promise && Ft === "loading" || p.duration === 1 / 0 || p.type === "loading") return;
|
|
23332
23332
|
let De;
|
|
23333
23333
|
return T || x || It ? (() => {
|
|
@@ -23348,7 +23348,7 @@ const BB = (e) => {
|
|
|
23348
23348
|
Ft,
|
|
23349
23349
|
It,
|
|
23350
23350
|
er
|
|
23351
|
-
]),
|
|
23351
|
+
]), V.useEffect(() => {
|
|
23352
23352
|
p.delete && (er(), p.onDismiss == null || p.onDismiss.call(p, p));
|
|
23353
23353
|
}, [
|
|
23354
23354
|
er,
|
|
@@ -23358,19 +23358,19 @@ const BB = (e) => {
|
|
|
23358
23358
|
var De;
|
|
23359
23359
|
if (ae != null && ae.loading) {
|
|
23360
23360
|
var Ct;
|
|
23361
|
-
return /* @__PURE__ */
|
|
23361
|
+
return /* @__PURE__ */ V.createElement("div", {
|
|
23362
23362
|
className: Zr(de == null ? void 0 : de.loader, p == null || (Ct = p.classNames) == null ? void 0 : Ct.loader, "sonner-loader"),
|
|
23363
23363
|
"data-visible": Ft === "loading"
|
|
23364
23364
|
}, ae.loading);
|
|
23365
23365
|
}
|
|
23366
|
-
return /* @__PURE__ */
|
|
23366
|
+
return /* @__PURE__ */ V.createElement(vB, {
|
|
23367
23367
|
className: Zr(de == null ? void 0 : de.loader, p == null || (De = p.classNames) == null ? void 0 : De.loader),
|
|
23368
23368
|
visible: Ft === "loading"
|
|
23369
23369
|
});
|
|
23370
23370
|
}
|
|
23371
23371
|
const Bi = p.icon || (ae == null ? void 0 : ae[Ft]) || gB(Ft);
|
|
23372
23372
|
var di, nl;
|
|
23373
|
-
return /* @__PURE__ */
|
|
23373
|
+
return /* @__PURE__ */ V.createElement("li", {
|
|
23374
23374
|
tabIndex: 0,
|
|
23375
23375
|
ref: sn,
|
|
23376
23376
|
className: Zr(W, $s, de == null ? void 0 : de.toast, p == null || (t = p.classNames) == null ? void 0 : t.toast, de == null ? void 0 : de.default, de == null ? void 0 : de[Ft], p == null || (n = p.classNames) == null ? void 0 : n[Ft]),
|
|
@@ -23455,7 +23455,7 @@ const BB = (e) => {
|
|
|
23455
23455
|
}
|
|
23456
23456
|
(Math.abs(Vn.x) > 0 || Math.abs(Vn.y) > 0) && kt(!0), (Bt = sn.current) == null || Bt.style.setProperty("--swipe-amount-x", `${Vn.x}px`), (ln = sn.current) == null || ln.style.setProperty("--swipe-amount-y", `${Vn.y}px`);
|
|
23457
23457
|
}
|
|
23458
|
-
}, se && !p.jsx && Ft !== "loading" ? /* @__PURE__ */
|
|
23458
|
+
}, se && !p.jsx && Ft !== "loading" ? /* @__PURE__ */ V.createElement("button", {
|
|
23459
23459
|
"aria-label": Z,
|
|
23460
23460
|
"data-disabled": Jt,
|
|
23461
23461
|
"data-close-button": !0,
|
|
@@ -23464,19 +23464,19 @@ const BB = (e) => {
|
|
|
23464
23464
|
er(), p.onDismiss == null || p.onDismiss.call(p, p);
|
|
23465
23465
|
},
|
|
23466
23466
|
className: Zr(de == null ? void 0 : de.closeButton, p == null || (r = p.classNames) == null ? void 0 : r.closeButton)
|
|
23467
|
-
}, (nl = ae == null ? void 0 : ae.close) != null ? nl : EB) : null, (Ft || p.icon || p.promise) && p.icon !== null && ((ae == null ? void 0 : ae[Ft]) !== null || p.icon) ? /* @__PURE__ */
|
|
23467
|
+
}, (nl = ae == null ? void 0 : ae.close) != null ? nl : EB) : null, (Ft || p.icon || p.promise) && p.icon !== null && ((ae == null ? void 0 : ae[Ft]) !== null || p.icon) ? /* @__PURE__ */ V.createElement("div", {
|
|
23468
23468
|
"data-icon": "",
|
|
23469
23469
|
className: Zr(de == null ? void 0 : de.icon, p == null || (o = p.classNames) == null ? void 0 : o.icon)
|
|
23470
|
-
}, p.promise || p.type === "loading" && !p.icon ? p.icon || tl() : null, p.type !== "loading" ? Bi : null) : null, /* @__PURE__ */
|
|
23470
|
+
}, p.promise || p.type === "loading" && !p.icon ? p.icon || tl() : null, p.type !== "loading" ? Bi : null) : null, /* @__PURE__ */ V.createElement("div", {
|
|
23471
23471
|
"data-content": "",
|
|
23472
23472
|
className: Zr(de == null ? void 0 : de.content, p == null || (a = p.classNames) == null ? void 0 : a.content)
|
|
23473
|
-
}, /* @__PURE__ */
|
|
23473
|
+
}, /* @__PURE__ */ V.createElement("div", {
|
|
23474
23474
|
"data-title": "",
|
|
23475
23475
|
className: Zr(de == null ? void 0 : de.title, p == null || (l = p.classNames) == null ? void 0 : l.title)
|
|
23476
|
-
}, p.jsx ? p.jsx : typeof p.title == "function" ? p.title() : p.title), p.description ? /* @__PURE__ */
|
|
23476
|
+
}, p.jsx ? p.jsx : typeof p.title == "function" ? p.title() : p.title), p.description ? /* @__PURE__ */ V.createElement("div", {
|
|
23477
23477
|
"data-description": "",
|
|
23478
23478
|
className: Zr(Q, Ns, de == null ? void 0 : de.description, p == null || (c = p.classNames) == null ? void 0 : c.description)
|
|
23479
|
-
}, typeof p.description == "function" ? p.description() : p.description) : null), /* @__PURE__ */
|
|
23479
|
+
}, typeof p.description == "function" ? p.description() : p.description) : null), /* @__PURE__ */ V.isValidElement(p.cancel) ? p.cancel : p.cancel && ld(p.cancel) ? /* @__PURE__ */ V.createElement("button", {
|
|
23480
23480
|
"data-button": !0,
|
|
23481
23481
|
"data-cancel": !0,
|
|
23482
23482
|
style: p.cancelButtonStyle || j,
|
|
@@ -23484,7 +23484,7 @@ const BB = (e) => {
|
|
|
23484
23484
|
ld(p.cancel) && br && (p.cancel.onClick == null || p.cancel.onClick.call(p.cancel, De), er());
|
|
23485
23485
|
},
|
|
23486
23486
|
className: Zr(de == null ? void 0 : de.cancelButton, p == null || (d = p.classNames) == null ? void 0 : d.cancelButton)
|
|
23487
|
-
}, p.cancel.label) : null, /* @__PURE__ */
|
|
23487
|
+
}, p.cancel.label) : null, /* @__PURE__ */ V.isValidElement(p.action) ? p.action : p.action && ld(p.action) ? /* @__PURE__ */ V.createElement("button", {
|
|
23488
23488
|
"data-button": !0,
|
|
23489
23489
|
"data-action": !0,
|
|
23490
23490
|
style: p.actionButtonStyle || K,
|
|
@@ -23526,25 +23526,25 @@ function jB(e, t) {
|
|
|
23526
23526
|
}) : d(c);
|
|
23527
23527
|
}), n;
|
|
23528
23528
|
}
|
|
23529
|
-
const zB = /* @__PURE__ */
|
|
23529
|
+
const zB = /* @__PURE__ */ V.forwardRef(function(t, n) {
|
|
23530
23530
|
const { id: r, invert: o, position: a = "bottom-right", hotkey: l = [
|
|
23531
23531
|
"altKey",
|
|
23532
23532
|
"KeyT"
|
|
23533
|
-
], expand: c, closeButton: d, className: f, offset: m, mobileOffset: p, theme: y = "light", richColors: x, duration: b, style: E, visibleToasts: C = AB, toastOptions: k, dir: $ = sS(), gap: T = OB, icons: F, containerAriaLabel: A = "Notifications" } = t, [I, D] =
|
|
23533
|
+
], expand: c, closeButton: d, className: f, offset: m, mobileOffset: p, theme: y = "light", richColors: x, duration: b, style: E, visibleToasts: C = AB, toastOptions: k, dir: $ = sS(), gap: T = OB, icons: F, containerAriaLabel: A = "Notifications" } = t, [I, D] = V.useState([]), j = V.useMemo(() => r ? I.filter((_) => _.toasterId === r) : I.filter((_) => !_.toasterId), [
|
|
23534
23534
|
I,
|
|
23535
23535
|
r
|
|
23536
|
-
]), K =
|
|
23536
|
+
]), K = V.useMemo(() => Array.from(new Set([
|
|
23537
23537
|
a
|
|
23538
23538
|
].concat(j.filter((_) => _.position).map((_) => _.position)))), [
|
|
23539
23539
|
j,
|
|
23540
23540
|
a
|
|
23541
|
-
]), [W, Q] =
|
|
23541
|
+
]), [W, Q] = V.useState([]), [J, be] = V.useState(!1), [ce, te] = V.useState(!1), [de, ae] = V.useState(y !== "system" ? y : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Z = V.useRef(null), oe = l.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = V.useRef(null), O = V.useRef(!1), G = V.useCallback((_) => {
|
|
23542
23542
|
D((le) => {
|
|
23543
23543
|
var ve;
|
|
23544
23544
|
return (ve = le.find((ge) => ge.id === _.id)) != null && ve.delete || Bn.dismiss(_.id), le.filter(({ id: ge }) => ge !== _.id);
|
|
23545
23545
|
});
|
|
23546
23546
|
}, []);
|
|
23547
|
-
return
|
|
23547
|
+
return V.useEffect(() => Bn.subscribe((_) => {
|
|
23548
23548
|
if (_.dismiss) {
|
|
23549
23549
|
requestAnimationFrame(() => {
|
|
23550
23550
|
D((le) => le.map((ve) => ve.id === _.id ? {
|
|
@@ -23574,7 +23574,7 @@ const zB = /* @__PURE__ */ U.forwardRef(function(t, n) {
|
|
|
23574
23574
|
});
|
|
23575
23575
|
}), [
|
|
23576
23576
|
I
|
|
23577
|
-
]),
|
|
23577
|
+
]), V.useEffect(() => {
|
|
23578
23578
|
if (y !== "system") {
|
|
23579
23579
|
ae(y);
|
|
23580
23580
|
return;
|
|
@@ -23596,11 +23596,11 @@ const zB = /* @__PURE__ */ U.forwardRef(function(t, n) {
|
|
|
23596
23596
|
}
|
|
23597
23597
|
}, [
|
|
23598
23598
|
y
|
|
23599
|
-
]),
|
|
23599
|
+
]), V.useEffect(() => {
|
|
23600
23600
|
I.length <= 1 && be(!1);
|
|
23601
23601
|
}, [
|
|
23602
23602
|
I
|
|
23603
|
-
]),
|
|
23603
|
+
]), V.useEffect(() => {
|
|
23604
23604
|
const _ = (le) => {
|
|
23605
23605
|
var ve;
|
|
23606
23606
|
if (l.every((me) => le[me] || le.code === me)) {
|
|
@@ -23612,7 +23612,7 @@ const zB = /* @__PURE__ */ U.forwardRef(function(t, n) {
|
|
|
23612
23612
|
return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
|
|
23613
23613
|
}, [
|
|
23614
23614
|
l
|
|
23615
|
-
]),
|
|
23615
|
+
]), V.useEffect(() => {
|
|
23616
23616
|
if (Z.current)
|
|
23617
23617
|
return () => {
|
|
23618
23618
|
P.current && (P.current.focus({
|
|
@@ -23622,7 +23622,7 @@ const zB = /* @__PURE__ */ U.forwardRef(function(t, n) {
|
|
|
23622
23622
|
}, [
|
|
23623
23623
|
Z.current
|
|
23624
23624
|
]), // Remove item from normal navigation flow, only available via hotkey
|
|
23625
|
-
/* @__PURE__ */
|
|
23625
|
+
/* @__PURE__ */ V.createElement("section", {
|
|
23626
23626
|
ref: n,
|
|
23627
23627
|
"aria-label": `${A} ${oe}`,
|
|
23628
23628
|
tabIndex: -1,
|
|
@@ -23633,7 +23633,7 @@ const zB = /* @__PURE__ */ U.forwardRef(function(t, n) {
|
|
|
23633
23633
|
}, K.map((_, le) => {
|
|
23634
23634
|
var ve;
|
|
23635
23635
|
const [ge, Fe] = _.split("-");
|
|
23636
|
-
return j.length ? /* @__PURE__ */
|
|
23636
|
+
return j.length ? /* @__PURE__ */ V.createElement("ol", {
|
|
23637
23637
|
key: _,
|
|
23638
23638
|
dir: $ === "auto" ? sS() : $,
|
|
23639
23639
|
tabIndex: -1,
|
|
@@ -23670,7 +23670,7 @@ const zB = /* @__PURE__ */ U.forwardRef(function(t, n) {
|
|
|
23670
23670
|
onPointerUp: () => te(!1)
|
|
23671
23671
|
}, j.filter((me) => !me.position && le === 0 || me.position === _).map((me, Le) => {
|
|
23672
23672
|
var tt, _t;
|
|
23673
|
-
return /* @__PURE__ */
|
|
23673
|
+
return /* @__PURE__ */ V.createElement(BB, {
|
|
23674
23674
|
key: me.id,
|
|
23675
23675
|
icons: F,
|
|
23676
23676
|
index: Le,
|
|
@@ -23715,7 +23715,7 @@ const HB = gt(zB).withConfig({
|
|
|
23715
23715
|
"[data-sonner-toast]{padding:var(--sizes-spacing-4);border-radius:var(--sizes-radius-sm);min-height:48px;&.toast-success{background-color:var(--palette-bg-status-positive);}&.toast-error{background-color:var(--palette-bg-status-critical);}&.toast-warning{background-color:var(--palette-bg-status-warning);}&.toast-info{background-color:var(--palette-bg-status-info);}&:focus-visible{outline:2px solid var(--palette-border-interactive-focusRingOuter);outline-offset:2px;}}"
|
|
23716
23716
|
]), VB = () => {
|
|
23717
23717
|
const e = KE();
|
|
23718
|
-
return /* @__PURE__ */
|
|
23718
|
+
return /* @__PURE__ */ U.jsx(HB, {
|
|
23719
23719
|
position: "bottom-center",
|
|
23720
23720
|
expand: !1,
|
|
23721
23721
|
visibleToasts: 3,
|
|
@@ -23736,17 +23736,17 @@ const HB = gt(zB).withConfig({
|
|
|
23736
23736
|
});
|
|
23737
23737
|
};
|
|
23738
23738
|
function UB({ children: e }) {
|
|
23739
|
-
return /* @__PURE__ */
|
|
23739
|
+
return /* @__PURE__ */ U.jsxs(U.Fragment, {
|
|
23740
23740
|
children: [
|
|
23741
23741
|
e,
|
|
23742
|
-
/* @__PURE__ */
|
|
23742
|
+
/* @__PURE__ */ U.jsx(VB, {})
|
|
23743
23743
|
]
|
|
23744
23744
|
});
|
|
23745
23745
|
}
|
|
23746
23746
|
const WB = () => {
|
|
23747
23747
|
}, GB = ({ children: e, theme: t, rootElement: n, analyticsHandler: r = WB, intl: o = null, defaultLinkBehavior: a = "documentReload", isTest: l = !1, onThemeLoad: c, onThemeLoadError: d, themeOverrides: f, isThemeEditMode: m = !1 }) => {
|
|
23748
23748
|
fB();
|
|
23749
|
-
const p = /* @__PURE__ */
|
|
23749
|
+
const p = /* @__PURE__ */ U.jsx(uB, {
|
|
23750
23750
|
theme: t,
|
|
23751
23751
|
isTest: l,
|
|
23752
23752
|
rootElement: n,
|
|
@@ -23754,13 +23754,13 @@ const WB = () => {
|
|
|
23754
23754
|
onThemeLoadError: d,
|
|
23755
23755
|
themeOverrides: f,
|
|
23756
23756
|
isThemeEditMode: m,
|
|
23757
|
-
children: /* @__PURE__ */
|
|
23757
|
+
children: /* @__PURE__ */ U.jsx(n5, {
|
|
23758
23758
|
analyticsHandler: r,
|
|
23759
|
-
children: /* @__PURE__ */
|
|
23760
|
-
children: /* @__PURE__ */
|
|
23761
|
-
children: /* @__PURE__ */
|
|
23759
|
+
children: /* @__PURE__ */ U.jsx(UB, {
|
|
23760
|
+
children: /* @__PURE__ */ U.jsx(sB, {
|
|
23761
|
+
children: /* @__PURE__ */ U.jsx(r5, {
|
|
23762
23762
|
defaultLinkBehavior: a,
|
|
23763
|
-
children: /* @__PURE__ */
|
|
23763
|
+
children: /* @__PURE__ */ U.jsx(pB, {
|
|
23764
23764
|
children: e
|
|
23765
23765
|
})
|
|
23766
23766
|
})
|
|
@@ -23768,16 +23768,16 @@ const WB = () => {
|
|
|
23768
23768
|
})
|
|
23769
23769
|
})
|
|
23770
23770
|
});
|
|
23771
|
-
return o ? /* @__PURE__ */
|
|
23771
|
+
return o ? /* @__PURE__ */ U.jsx(d_, {
|
|
23772
23772
|
value: o,
|
|
23773
23773
|
children: p
|
|
23774
|
-
}) : /* @__PURE__ */
|
|
23774
|
+
}) : /* @__PURE__ */ U.jsx(W9, {
|
|
23775
23775
|
locale: "en",
|
|
23776
23776
|
children: p
|
|
23777
23777
|
});
|
|
23778
23778
|
}, aS = ({ src: e, alt: t, ...n }) => {
|
|
23779
23779
|
const [r, o] = S.useState(!1), a = iT(e);
|
|
23780
|
-
return r ? null : /* @__PURE__ */
|
|
23780
|
+
return r ? null : /* @__PURE__ */ U.jsx("img", {
|
|
23781
23781
|
...n,
|
|
23782
23782
|
src: a,
|
|
23783
23783
|
alt: t,
|
|
@@ -23989,7 +23989,7 @@ const o8 = "https://static.wayflyer.com/flyui-assets/styles/flyui-b0050fc0.css",
|
|
|
23989
23989
|
rootName: "bannerRoot",
|
|
23990
23990
|
rootElement: "div",
|
|
23991
23991
|
rootElementId: "banner-root"
|
|
23992
|
-
}, c8 = [a8, l8, u8], fS = "wayflyer-headless-sdk", d8 = "https://embedded-finance-frontend.vercel.app/npm/@wf-financing/headless@3", yv = "4.5.
|
|
23992
|
+
}, c8 = [a8, l8, u8], fS = "wayflyer-headless-sdk", d8 = "https://embedded-finance-frontend.vercel.app/npm/@wf-financing/headless@3", yv = "4.5.1", f8 = (e) => c8.reduce((t, n) => {
|
|
23993
23993
|
const { rootElement: r, rootElementId: o, rootName: a } = n;
|
|
23994
23994
|
let l = e.getElementById(o);
|
|
23995
23995
|
return l || (l = document.createElement(r), l.id = o, e.appendChild(l)), {
|
|
@@ -24122,7 +24122,7 @@ const g8 = (e, t, n, r) => {
|
|
|
24122
24122
|
}
|
|
24123
24123
|
}, y8 = ({ children: e, skipAnimation: t }) => {
|
|
24124
24124
|
const n = t ? tm.animate : tm.initial;
|
|
24125
|
-
return /* @__PURE__ */
|
|
24125
|
+
return /* @__PURE__ */ U.jsx(FC.div, { ...tm, initial: n, children: e }, "cta-banner-wrapper");
|
|
24126
24126
|
}, ci = () => S.useContext(v_);
|
|
24127
24127
|
let ud = null;
|
|
24128
24128
|
const Sf = async (e, t) => {
|
|
@@ -27111,10 +27111,10 @@ const vj = () => {
|
|
|
27111
27111
|
};
|
|
27112
27112
|
}, NS = ({ isOnDarkTheme: e, buttonAction: t, buttonText: n }) => {
|
|
27113
27113
|
const { isMobile: r } = Rs();
|
|
27114
|
-
return r ? /* @__PURE__ */
|
|
27114
|
+
return r ? /* @__PURE__ */ U.jsx(ni, { variant: e ? "PrimaryOnInverse" : "Primary", fullWidth: !0, onClick: t, children: n }) : /* @__PURE__ */ U.jsx(Yt, { gap: "4", children: /* @__PURE__ */ U.jsx(ni, { variant: e ? "PrimaryOnInverse" : "Primary", fullWidth: !0, onClick: t, children: n }) });
|
|
27115
27115
|
}, wj = ({ mainText: e, isOnDarkTheme: t }) => {
|
|
27116
27116
|
const { isMobile: n } = Rs(), r = n ? Du : fv;
|
|
27117
|
-
return /* @__PURE__ */
|
|
27117
|
+
return /* @__PURE__ */ U.jsx(
|
|
27118
27118
|
r,
|
|
27119
27119
|
{
|
|
27120
27120
|
size: n ? "base" : "lg",
|
|
@@ -27135,7 +27135,7 @@ const vj = () => {
|
|
|
27135
27135
|
}
|
|
27136
27136
|
});
|
|
27137
27137
|
};
|
|
27138
|
-
return n ? /* @__PURE__ */
|
|
27138
|
+
return n ? /* @__PURE__ */ U.jsx(Sj, { children: /* @__PURE__ */ U.jsx(ni, { onClick: o, variant: e ? "TertiaryOnInverse" : "Tertiary", children: /* @__PURE__ */ U.jsx(Yt, { padding: "2", children: /* @__PURE__ */ U.jsx(bg, {}) }) }) }) : /* @__PURE__ */ U.jsx(ni, { onClick: o, variant: e ? "TertiaryOnInverse" : "Tertiary", children: /* @__PURE__ */ U.jsx(Yt, { padding: "2", children: /* @__PURE__ */ U.jsx(bg, {}) }) });
|
|
27139
27139
|
};
|
|
27140
27140
|
function Ej({
|
|
27141
27141
|
title: e,
|
|
@@ -27163,9 +27163,9 @@ function Ej({
|
|
|
27163
27163
|
}
|
|
27164
27164
|
const kj = /* @__PURE__ */ S.forwardRef(Ej), Cj = ({ isOnDarkTheme: e, bulletPoints: t }) => {
|
|
27165
27165
|
const { isMobile: n, isTablet: r } = Rs();
|
|
27166
|
-
return /* @__PURE__ */
|
|
27167
|
-
/* @__PURE__ */
|
|
27168
|
-
/* @__PURE__ */
|
|
27166
|
+
return /* @__PURE__ */ U.jsx(U.Fragment, { children: !(r || n) && t && /* @__PURE__ */ U.jsx(Yt, { gap: "4", children: t.map((o) => /* @__PURE__ */ U.jsxs(Yt, { gap: "1", align: "center", children: [
|
|
27167
|
+
/* @__PURE__ */ U.jsx(Fa, { color: e ? "onDark" : "default", subtle: !0, children: /* @__PURE__ */ U.jsx(kj, {}) }),
|
|
27168
|
+
/* @__PURE__ */ U.jsx(
|
|
27169
27169
|
Du,
|
|
27170
27170
|
{
|
|
27171
27171
|
size: "sm",
|
|
@@ -27215,40 +27215,40 @@ const kj = /* @__PURE__ */ S.forwardRef(Ej), Cj = ({ isOnDarkTheme: e, bulletPoi
|
|
|
27215
27215
|
}
|
|
27216
27216
|
}, Pj = ({ buttonAction: e, buttonText: t, mainText: n, bulletPoints: r, skipAnimation: o }) => {
|
|
27217
27217
|
const { isMobile: a } = Rs(), { portalContainer: l } = ci(), { cta: c } = NM({ rootElement: l }), d = c.content === "onDark";
|
|
27218
|
-
return /* @__PURE__ */
|
|
27218
|
+
return /* @__PURE__ */ U.jsxs(
|
|
27219
27219
|
Tj,
|
|
27220
27220
|
{
|
|
27221
27221
|
$bgVariant: c.surface,
|
|
27222
27222
|
...im,
|
|
27223
27223
|
initial: o ? im.animate : im.initial,
|
|
27224
27224
|
children: [
|
|
27225
|
-
/* @__PURE__ */
|
|
27226
|
-
/* @__PURE__ */
|
|
27227
|
-
/* @__PURE__ */
|
|
27228
|
-
/* @__PURE__ */
|
|
27225
|
+
/* @__PURE__ */ U.jsxs(Yt, { gap: "4", align: a ? "flex-start" : "center", justify: "space-between", width: "100%", children: [
|
|
27226
|
+
/* @__PURE__ */ U.jsxs(Yt, { direction: "column", gap: "1", children: [
|
|
27227
|
+
/* @__PURE__ */ U.jsx(wj, { mainText: n, isOnDarkTheme: d }),
|
|
27228
|
+
/* @__PURE__ */ U.jsx(Cj, { isOnDarkTheme: d, bulletPoints: r })
|
|
27229
27229
|
] }),
|
|
27230
|
-
a ? /* @__PURE__ */
|
|
27231
|
-
/* @__PURE__ */
|
|
27232
|
-
/* @__PURE__ */
|
|
27230
|
+
a ? /* @__PURE__ */ U.jsx(LS, { isOnDarkTheme: d }) : /* @__PURE__ */ U.jsxs(Yt, { gap: "4", children: [
|
|
27231
|
+
/* @__PURE__ */ U.jsx(NS, { isOnDarkTheme: d, buttonText: t, buttonAction: e }),
|
|
27232
|
+
/* @__PURE__ */ U.jsx(LS, { isOnDarkTheme: d })
|
|
27233
27233
|
] })
|
|
27234
27234
|
] }),
|
|
27235
|
-
a && /* @__PURE__ */
|
|
27235
|
+
a && /* @__PURE__ */ U.jsx(NS, { isOnDarkTheme: d, buttonText: t, buttonAction: e })
|
|
27236
27236
|
]
|
|
27237
27237
|
}
|
|
27238
27238
|
);
|
|
27239
|
-
}, _j = ({ title: e, logoUrl: t, partnerLogoUrl: n }) => /* @__PURE__ */
|
|
27240
|
-
/* @__PURE__ */
|
|
27241
|
-
/* @__PURE__ */
|
|
27242
|
-
n && /* @__PURE__ */
|
|
27239
|
+
}, _j = ({ title: e, logoUrl: t, partnerLogoUrl: n }) => /* @__PURE__ */ U.jsxs(Yt, { direction: "column", gap: "6", children: [
|
|
27240
|
+
/* @__PURE__ */ U.jsxs(Yt, { direction: "row", align: "center", justify: "center", gap: "4", children: [
|
|
27241
|
+
/* @__PURE__ */ U.jsx(aS, { src: t, height: 64, width: 64 }),
|
|
27242
|
+
n && /* @__PURE__ */ U.jsx(aS, { src: n, height: 64, width: 64 })
|
|
27243
27243
|
] }),
|
|
27244
|
-
/* @__PURE__ */
|
|
27245
|
-
] }), Rj = ({ bulletPoints: e }) => /* @__PURE__ */
|
|
27246
|
-
n !== 0 && /* @__PURE__ */
|
|
27247
|
-
/* @__PURE__ */
|
|
27248
|
-
/* @__PURE__ */
|
|
27249
|
-
/* @__PURE__ */
|
|
27244
|
+
/* @__PURE__ */ U.jsx(fv, { align: "center", fontWeight: "medium", lineHeight: "tight", size: "2xl", children: e })
|
|
27245
|
+
] }), Rj = ({ bulletPoints: e }) => /* @__PURE__ */ U.jsx(Yt, { direction: "column", gap: "3", children: e.map((t, n) => /* @__PURE__ */ U.jsxs(S.Fragment, { children: [
|
|
27246
|
+
n !== 0 && /* @__PURE__ */ U.jsx(k5, {}),
|
|
27247
|
+
/* @__PURE__ */ U.jsxs(Yt, { direction: "row", align: "center", gap: "2", children: [
|
|
27248
|
+
/* @__PURE__ */ U.jsx(w6, { color: "#7F8592" }),
|
|
27249
|
+
/* @__PURE__ */ U.jsx(Du, { fontWeight: "regular", fontStyle: "regular", lineHeight: "tight", size: "sm", children: t })
|
|
27250
27250
|
] })
|
|
27251
|
-
] })) });
|
|
27251
|
+
] }, t)) });
|
|
27252
27252
|
const Ij = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Aj = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, $j = {};
|
|
27253
27253
|
function OS(e, t) {
|
|
27254
27254
|
return ($j.jsx ? Aj : Ij).test(e);
|
|
@@ -33806,11 +33806,11 @@ function zV(e, t) {
|
|
|
33806
33806
|
for (const m of DV)
|
|
33807
33807
|
Object.hasOwn(t, m.from) && ("" + m.from + (m.to ? "use `" + m.to + "` instead" : "remove it") + OV + m.id, void 0);
|
|
33808
33808
|
return h2(e, f), nz(e, {
|
|
33809
|
-
Fragment:
|
|
33809
|
+
Fragment: U.Fragment,
|
|
33810
33810
|
components: o,
|
|
33811
33811
|
ignoreInvalidStyle: !0,
|
|
33812
|
-
jsx:
|
|
33813
|
-
jsxs:
|
|
33812
|
+
jsx: U.jsx,
|
|
33813
|
+
jsxs: U.jsxs,
|
|
33814
33814
|
passKeys: !0,
|
|
33815
33815
|
passNode: !0
|
|
33816
33816
|
});
|
|
@@ -33845,12 +33845,12 @@ const VV = ({ templateString: e }) => {
|
|
|
33845
33845
|
const n = m8(e, "https://wayflyer.com/en/privacy-notice", "termsUrl"), r = () => {
|
|
33846
33846
|
Or.logEvent("cta_open_privacy_note"), window.open("https://wayflyer.com/en/privacy-notice", "_blank", "noopener,noreferrer");
|
|
33847
33847
|
};
|
|
33848
|
-
return /* @__PURE__ */
|
|
33848
|
+
return /* @__PURE__ */ U.jsx(
|
|
33849
33849
|
FV,
|
|
33850
33850
|
{
|
|
33851
33851
|
components: {
|
|
33852
|
-
a: ({ children: o }) => /* @__PURE__ */
|
|
33853
|
-
p: ({ children: o }) => /* @__PURE__ */
|
|
33852
|
+
a: ({ children: o }) => /* @__PURE__ */ U.jsx(Q9, { onClick: r, children: o }),
|
|
33853
|
+
p: ({ children: o }) => /* @__PURE__ */ U.jsx(Du, { color: "placeholder", size: "xs", lineHeight: "normal", children: o })
|
|
33854
33854
|
},
|
|
33855
33855
|
children: n
|
|
33856
33856
|
}
|
|
@@ -33867,12 +33867,12 @@ const VV = ({ templateString: e }) => {
|
|
|
33867
33867
|
}
|
|
33868
33868
|
});
|
|
33869
33869
|
};
|
|
33870
|
-
return /* @__PURE__ */
|
|
33871
|
-
/* @__PURE__ */
|
|
33870
|
+
return /* @__PURE__ */ U.jsxs(Yt, { direction: "column", gap: "3", children: [
|
|
33871
|
+
/* @__PURE__ */ U.jsx(Yt, { gap: "2", direction: l || r ? "column" : "row", children: /* @__PURE__ */ U.jsxs(ni, { fullWidth: !0, onClick: c, loading: a, variant: "Primary", external: !0, children: [
|
|
33872
33872
|
e,
|
|
33873
|
-
!a && /* @__PURE__ */
|
|
33873
|
+
!a && /* @__PURE__ */ U.jsx(x6, {})
|
|
33874
33874
|
] }) }),
|
|
33875
|
-
/* @__PURE__ */
|
|
33875
|
+
/* @__PURE__ */ U.jsx(VV, { templateString: t })
|
|
33876
33876
|
] });
|
|
33877
33877
|
}, WV = IC(qB), GV = IC(ZB), hE = { transform: "scale(0.7)", opacity: 0 }, qV = { transform: "scale(1)", opacity: 1 }, pE = { backgroundColor: "rgba(0, 0, 0, 0)" }, KV = {
|
|
33878
33878
|
backgroundColor: "var(--palette-bg-neutral-overlay)",
|
|
@@ -33905,7 +33905,7 @@ const VV = ({ templateString: e }) => {
|
|
|
33905
33905
|
}
|
|
33906
33906
|
`, XV = ({ isModalOpen: e, setIsModalOpen: t, children: n }) => {
|
|
33907
33907
|
const r = S.useId(), { portalContainer: o } = ci(), a = S.useRef(null), { isMobile: l } = Rs();
|
|
33908
|
-
return P8(e, o), /* @__PURE__ */
|
|
33908
|
+
return P8(e, o), /* @__PURE__ */ U.jsx(YL, { features: JO, children: /* @__PURE__ */ U.jsx(wC, { children: e && /* @__PURE__ */ U.jsx(JF, { getContainer: () => o, children: /* @__PURE__ */ U.jsxs(
|
|
33909
33909
|
GV,
|
|
33910
33910
|
{
|
|
33911
33911
|
isDismissable: !0,
|
|
@@ -33919,7 +33919,7 @@ const VV = ({ templateString: e }) => {
|
|
|
33919
33919
|
transition: { duration: 0.2 },
|
|
33920
33920
|
style: { width: "420px", border: "none", maxWidth: "90vw", maxHeight: "100vh" },
|
|
33921
33921
|
children: [
|
|
33922
|
-
/* @__PURE__ */
|
|
33922
|
+
/* @__PURE__ */ U.jsx(
|
|
33923
33923
|
WV,
|
|
33924
33924
|
{
|
|
33925
33925
|
"data-id": "modal-mask",
|
|
@@ -33930,9 +33930,9 @@ const VV = ({ templateString: e }) => {
|
|
|
33930
33930
|
transition: { duration: 0.2 }
|
|
33931
33931
|
}
|
|
33932
33932
|
),
|
|
33933
|
-
/* @__PURE__ */
|
|
33934
|
-
/* @__PURE__ */
|
|
33935
|
-
/* @__PURE__ */
|
|
33933
|
+
/* @__PURE__ */ U.jsxs(XB, { role: "dialog", "aria-labelledby": r, children: [
|
|
33934
|
+
/* @__PURE__ */ U.jsx("div", { style: { position: "absolute", right: "10px", top: "10px" }, children: /* @__PURE__ */ U.jsx(ni, { variant: "Tertiary", onClick: () => t(!1), children: /* @__PURE__ */ U.jsx(Yt, { padding: "2", children: /* @__PURE__ */ U.jsx(bg, {}) }) }) }),
|
|
33935
|
+
/* @__PURE__ */ U.jsx(ZV, { $isMobile: l, ref: a, "data-testid": "modal-body", children: n })
|
|
33936
33936
|
] })
|
|
33937
33937
|
]
|
|
33938
33938
|
}
|
|
@@ -33946,10 +33946,10 @@ const VV = ({ templateString: e }) => {
|
|
|
33946
33946
|
title: a,
|
|
33947
33947
|
onModalStateChange: l,
|
|
33948
33948
|
partnerLogoUrl: c
|
|
33949
|
-
}) => /* @__PURE__ */
|
|
33950
|
-
/* @__PURE__ */
|
|
33951
|
-
/* @__PURE__ */
|
|
33952
|
-
/* @__PURE__ */
|
|
33949
|
+
}) => /* @__PURE__ */ U.jsxs(XV, { isModalOpen: e, setIsModalOpen: l, children: [
|
|
33950
|
+
/* @__PURE__ */ U.jsx(_j, { title: a, logoUrl: t, partnerLogoUrl: c }),
|
|
33951
|
+
/* @__PURE__ */ U.jsx(Rj, { bulletPoints: o }),
|
|
33952
|
+
/* @__PURE__ */ U.jsx(UV, { setIsModalOpen: l, button: n, termsAndConditions: r })
|
|
33953
33953
|
] }), YV = ({ cta: e, copy: t, skipAnimation: n }) => {
|
|
33954
33954
|
const [r, o] = S.useState(!1), { mutate: a } = C8(), l = bj(), c = () => o(() => !r), d = () => {
|
|
33955
33955
|
a(void 0, {
|
|
@@ -33967,9 +33967,9 @@ const VV = ({ templateString: e }) => {
|
|
|
33967
33967
|
c,
|
|
33968
33968
|
d
|
|
33969
33969
|
);
|
|
33970
|
-
return l(e, f), /* @__PURE__ */
|
|
33971
|
-
/* @__PURE__ */
|
|
33972
|
-
m && /* @__PURE__ */
|
|
33970
|
+
return l(e, f), /* @__PURE__ */ U.jsxs(U.Fragment, { children: [
|
|
33971
|
+
/* @__PURE__ */ U.jsx(Pj, { skipAnimation: n, ...f }),
|
|
33972
|
+
m && /* @__PURE__ */ U.jsx(QV, { ...m, ...p, isModalOpen: r })
|
|
33973
33973
|
] });
|
|
33974
33974
|
}, JV = () => {
|
|
33975
33975
|
const { isLoading: e, data: t } = S8(), { data: n } = vj(), { onWidgetClose: r, isWidgetDismissed: o, options: a } = ci(), [l] = S.useState(() => !!(a != null && a.skipAnimations) || !e);
|
|
@@ -33977,7 +33977,7 @@ const VV = ({ templateString: e }) => {
|
|
|
33977
33977
|
const d = () => {
|
|
33978
33978
|
(!e && !t || o) && r();
|
|
33979
33979
|
};
|
|
33980
|
-
return /* @__PURE__ */
|
|
33980
|
+
return /* @__PURE__ */ U.jsx(wC, { mode: "wait", onExitComplete: d, children: /* @__PURE__ */ U.jsx(y8, { skipAnimation: l, children: /* @__PURE__ */ U.jsx(YV, { cta: t, copy: n, skipAnimation: l }) }) });
|
|
33981
33981
|
}, eU = new gM(), tU = ({
|
|
33982
33982
|
companyToken: e,
|
|
33983
33983
|
options: t,
|
|
@@ -33989,7 +33989,7 @@ const VV = ({ templateString: e }) => {
|
|
|
33989
33989
|
const [l, c] = S.useState(!1), [d, f] = S.useState(!1), m = () => {
|
|
33990
33990
|
f(!0), Or.logEvent("ui_sdk_banner_dismissed");
|
|
33991
33991
|
};
|
|
33992
|
-
return /* @__PURE__ */
|
|
33992
|
+
return /* @__PURE__ */ U.jsx(wM, { client: eU, children: /* @__PURE__ */ U.jsx(
|
|
33993
33993
|
v_.Provider,
|
|
33994
33994
|
{
|
|
33995
33995
|
value: {
|
|
@@ -34002,7 +34002,7 @@ const VV = ({ templateString: e }) => {
|
|
|
34002
34002
|
onWidgetDismiss: m,
|
|
34003
34003
|
mountToTargetTimestamp: a
|
|
34004
34004
|
},
|
|
34005
|
-
children: /* @__PURE__ */
|
|
34005
|
+
children: /* @__PURE__ */ U.jsx(
|
|
34006
34006
|
GB,
|
|
34007
34007
|
{
|
|
34008
34008
|
theme: "whiteLabel",
|
|
@@ -34016,7 +34016,7 @@ const VV = ({ templateString: e }) => {
|
|
|
34016
34016
|
onThemeLoadError: () => {
|
|
34017
34017
|
Or.logError(`Error while loading theme for partner: ${e}`);
|
|
34018
34018
|
},
|
|
34019
|
-
children: l && /* @__PURE__ */
|
|
34019
|
+
children: l && /* @__PURE__ */ U.jsx(JV, {})
|
|
34020
34020
|
}
|
|
34021
34021
|
)
|
|
34022
34022
|
}
|
|
@@ -34029,7 +34029,7 @@ const VV = ({ templateString: e }) => {
|
|
|
34029
34029
|
};
|
|
34030
34030
|
Or.logEvent(n, o);
|
|
34031
34031
|
};
|
|
34032
|
-
return /* @__PURE__ */
|
|
34032
|
+
return /* @__PURE__ */ U.jsx(x_.Provider, { value: { logEvent: t }, children: e });
|
|
34033
34033
|
};
|
|
34034
34034
|
let sa, hd;
|
|
34035
34035
|
const mE = async (e, t, n, r) => {
|
|
@@ -34051,7 +34051,7 @@ const mE = async (e, t, n, r) => {
|
|
|
34051
34051
|
sa.unmount(), sa = void 0;
|
|
34052
34052
|
};
|
|
34053
34053
|
Mr.skipAnimations = r == null ? void 0 : r.skipAnimations, sa.render(
|
|
34054
|
-
/* @__PURE__ */
|
|
34054
|
+
/* @__PURE__ */ U.jsx(pA, { target: d, children: /* @__PURE__ */ U.jsx(nU, { children: /* @__PURE__ */ U.jsx(
|
|
34055
34055
|
tU,
|
|
34056
34056
|
{
|
|
34057
34057
|
companyToken: n,
|