@getsupertab/supertab-js 3.67.0 → 3.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pkg/prod/{env-Bp1w6KZE.js → env-DIlw1Eak.js} +2 -2
- package/dist/pkg/prod/{sentry-DHW07j-l.js → sentry-CMqKxuCJ.js} +1 -1
- package/dist/pkg/prod/supertab.d.ts +1 -0
- package/dist/pkg/prod/supertab.js +949 -1009
- package/dist/pkg/prod/tailwind-Dfq2wvev.js +4 -0
- package/package.json +2 -2
- package/dist/pkg/prod/tailwind-CZwhf7A1.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./chunk-C5e3QaDY.js";
|
|
2
|
-
import { C as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, o as y, p as b, r as x, s as S, u as C, v as w, w as T, x as E, y as D } from "./env-
|
|
2
|
+
import { C as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, o as y, p as b, r as x, s as S, u as C, v as w, w as T, x as E, y as D } from "./env-DIlw1Eak.js";
|
|
3
3
|
//#region src/capture-errors.ts
|
|
4
4
|
var O = /* @__PURE__ */ e(s(), 1), k = async (e) => {
|
|
5
5
|
if (f) {
|
|
6
|
-
let { captureException: t } = await import("./sentry-
|
|
6
|
+
let { captureException: t } = await import("./sentry-CMqKxuCJ.js");
|
|
7
7
|
t(e);
|
|
8
8
|
}
|
|
9
9
|
}, A = x === "ctl" || x === "sbx" || x === "stg" ? !0 : x === "prod" && typeof window < "u" && window.location ? new URLSearchParams(window.location.search).has("supertab-enable-logging") : !1, j = {
|
|
@@ -82,7 +82,7 @@ function L(e) {
|
|
|
82
82
|
}
|
|
83
83
|
async function ie(e) {
|
|
84
84
|
let t = document.createElement("style");
|
|
85
|
-
t.textContent = (await import("./tailwind-
|
|
85
|
+
t.textContent = (await import("./tailwind-Dfq2wvev.js")).default, e.appendChild(t), j.log("Design system and Tailwind styles applied");
|
|
86
86
|
}
|
|
87
87
|
var ae = (e, t) => {
|
|
88
88
|
let n = e?.total.amount ?? 0, r = t?.price.amount ?? 0, i = e?.limit.amount ?? Infinity;
|
|
@@ -7503,7 +7503,8 @@ var $l = D({
|
|
|
7503
7503
|
content_keys: v(u()),
|
|
7504
7504
|
offerings: v($l),
|
|
7505
7505
|
experiences: v(Ql),
|
|
7506
|
-
test_mode: h()
|
|
7506
|
+
test_mode: h(),
|
|
7507
|
+
white_label: h().default(!1)
|
|
7507
7508
|
}), su = {
|
|
7508
7509
|
method: m("GET"),
|
|
7509
7510
|
path: m("/customers/me"),
|
|
@@ -7713,8 +7714,11 @@ var mu = class {
|
|
|
7713
7714
|
}
|
|
7714
7715
|
async retrieveSite() {
|
|
7715
7716
|
return Ie(async () => {
|
|
7716
|
-
let e = new URL(this.apiConfig.urls.apiBaseUrl), t = this.apiConfig.headers;
|
|
7717
|
-
return
|
|
7717
|
+
let e = new URL(this.apiConfig.urls.apiBaseUrl), t = this.apiConfig.headers, n = await pu(e, "get", "/site", { header: t });
|
|
7718
|
+
return new URLSearchParams(window.location.search).has("supertab-white-label-enabled") ? {
|
|
7719
|
+
...n,
|
|
7720
|
+
whiteLabel: !0
|
|
7721
|
+
} : n;
|
|
7718
7722
|
}, { optional: !0 }).call(this);
|
|
7719
7723
|
}
|
|
7720
7724
|
async retrievePurchase({ purchaseId: e }) {
|
|
@@ -44552,9 +44556,9 @@ var RI = {
|
|
|
44552
44556
|
});
|
|
44553
44557
|
function GI({ className: e, children: t }) {
|
|
44554
44558
|
return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
44555
|
-
className: Gj(e, "border-1/2 border-neutral-0 inline-block min-w-full overflow-x-auto
|
|
44559
|
+
className: Gj(e, "border-1/2 border-neutral-0 inline-block min-w-full overflow-x-auto rounded-md align-middle"),
|
|
44556
44560
|
children: /* @__PURE__ */ (0, K.jsx)("table", {
|
|
44557
|
-
className: "text-primary-10 w-full table-
|
|
44561
|
+
className: "text-primary-10 w-full table-auto text-left text-sm/6 font-medium",
|
|
44558
44562
|
children: t
|
|
44559
44563
|
})
|
|
44560
44564
|
});
|
|
@@ -44562,7 +44566,7 @@ function GI({ className: e, children: t }) {
|
|
|
44562
44566
|
function KI({ className: e, children: t, ...n }) {
|
|
44563
44567
|
return /* @__PURE__ */ (0, K.jsx)("td", {
|
|
44564
44568
|
...n,
|
|
44565
|
-
className: Gj(
|
|
44569
|
+
className: Gj("border-b-1/2 border-neutral-3 relative px-6 py-px", e),
|
|
44566
44570
|
children: t
|
|
44567
44571
|
});
|
|
44568
44572
|
}
|
|
@@ -44576,7 +44580,7 @@ function JI({ canSort: e = !1, handleToggleSort: t, className: n, children: r, .
|
|
|
44576
44580
|
return /* @__PURE__ */ (0, K.jsx)("th", {
|
|
44577
44581
|
...i,
|
|
44578
44582
|
"aria-hidden": r ? "false" : "true",
|
|
44579
|
-
className: Gj(
|
|
44583
|
+
className: Gj("border-b-1/2 border-neutral-3 bg-neutral-0 text-body-xxs tracking-th text-neutral-6 px-6 font-medium whitespace-nowrap uppercase outline-none", n),
|
|
44580
44584
|
children: e ? /* @__PURE__ */ (0, K.jsx)("button", {
|
|
44581
44585
|
type: "button",
|
|
44582
44586
|
className: "font-inherit flex w-full cursor-pointer items-center bg-transparent p-0 text-left uppercase outline-hidden",
|
|
@@ -44588,74 +44592,192 @@ function JI({ canSort: e = !1, handleToggleSort: t, className: n, children: r, .
|
|
|
44588
44592
|
function YI({ className: e, children: t, ...n }) {
|
|
44589
44593
|
return /* @__PURE__ */ (0, K.jsx)("tr", {
|
|
44590
44594
|
...n,
|
|
44591
|
-
className: Gj("bg-neutral-0 hover:bg-neutral-
|
|
44595
|
+
className: Gj("bg-neutral-0 hover:bg-neutral-1 active:bg-neutral-1 h-20 last:[&>td]:border-b-0", e),
|
|
44592
44596
|
children: t
|
|
44593
44597
|
});
|
|
44594
44598
|
}
|
|
44595
|
-
|
|
44599
|
+
function XI(e, t) {
|
|
44600
|
+
if (t.cell) return t.cell({ row: e });
|
|
44601
|
+
let n = e[t.id];
|
|
44602
|
+
return n == null ? "" : typeof n != "object" || !("content" in n) ? n : n.content;
|
|
44603
|
+
}
|
|
44604
|
+
function ZI(e) {
|
|
44605
|
+
if (e != null) {
|
|
44606
|
+
if (e.sortableValue != null) return e.sortableValue;
|
|
44607
|
+
if (qj(e.content)) return e.content;
|
|
44608
|
+
}
|
|
44609
|
+
}
|
|
44610
|
+
function QI(e, t) {
|
|
44611
|
+
return e == null && t == null ? 0 : e == null ? -1 : t == null ? 1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t));
|
|
44612
|
+
}
|
|
44613
|
+
var $I = "No results found.", eL = "button, a, input, select, textarea, [role=\"button\"], [data-row-click-ignore]", tL = (e) => {
|
|
44614
|
+
let t = e.target;
|
|
44615
|
+
if (!t || t === e.currentTarget) return !1;
|
|
44616
|
+
let n = t.closest(eL);
|
|
44617
|
+
return n !== null && n !== e.currentTarget;
|
|
44618
|
+
}, nL = ({ columns: e, rows: t, showHeader: n = !0, className: r, sorting: i, onSortingChange: a, columnVisibility: o, emptyMessage: s, onRowClick: c }) => {
|
|
44619
|
+
let l = (e) => {
|
|
44620
|
+
if (c) return {
|
|
44621
|
+
tabIndex: 0,
|
|
44622
|
+
className: "cursor-pointer",
|
|
44623
|
+
onClick: (t) => {
|
|
44624
|
+
tL(t) || c(e, t);
|
|
44625
|
+
},
|
|
44626
|
+
onKeyDown: (t) => {
|
|
44627
|
+
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), c(e, t));
|
|
44628
|
+
}
|
|
44629
|
+
};
|
|
44630
|
+
}, [u, d] = (0, O.useState)(void 0), f = a !== void 0, p = f ? i : u, m = f ? a : d, h = (0, O.useMemo)(() => e.filter((e) => o && e.id in o ? o[e.id] : !0), [e, o]), g = (0, O.useMemo)(() => {
|
|
44631
|
+
if (!p) return t;
|
|
44632
|
+
let n = e.find((e) => e.id === p.id);
|
|
44633
|
+
if (!n) return t;
|
|
44634
|
+
let r = [...t];
|
|
44635
|
+
return r.sort((e, t) => {
|
|
44636
|
+
let r = n.onSort ? n.onSort(e, t, p.id) : QI(ZI(e[n.id]), ZI(t[n.id]));
|
|
44637
|
+
return p.desc ? -r : r;
|
|
44638
|
+
}), r;
|
|
44639
|
+
}, [
|
|
44640
|
+
t,
|
|
44641
|
+
p,
|
|
44642
|
+
e
|
|
44643
|
+
]), _ = (e) => {
|
|
44644
|
+
!p || p.id !== e.id ? m({
|
|
44645
|
+
id: e.id,
|
|
44646
|
+
desc: !1
|
|
44647
|
+
}) : p.desc ? m(void 0) : m({
|
|
44648
|
+
id: e.id,
|
|
44649
|
+
desc: !0
|
|
44650
|
+
});
|
|
44651
|
+
};
|
|
44652
|
+
return /* @__PURE__ */ (0, K.jsxs)(GI, {
|
|
44653
|
+
className: Gj("shadow-soft h-auto max-h-full overflow-y-scroll", r),
|
|
44654
|
+
children: [n && /* @__PURE__ */ (0, K.jsx)(qI, { children: /* @__PURE__ */ (0, K.jsx)(YI, {
|
|
44655
|
+
className: "h-14",
|
|
44656
|
+
children: h.map((e) => {
|
|
44657
|
+
let t = e.enableSorting, n = p?.id === e.id ? p : void 0, r = n ? n.desc ? "descending" : "ascending" : "none", i = /* @__PURE__ */ (0, K.jsxs)("span", {
|
|
44658
|
+
className: Gj(e.innerClassName, "flex min-w-0 flex-1 items-center gap-2"),
|
|
44659
|
+
children: [/* @__PURE__ */ (0, K.jsx)("span", {
|
|
44660
|
+
className: "min-w-0",
|
|
44661
|
+
children: e.header
|
|
44662
|
+
}), t && /* @__PURE__ */ (0, K.jsx)("span", {
|
|
44663
|
+
className: "shrink-0",
|
|
44664
|
+
children: n ? n.desc ? /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
44665
|
+
name: "ArrowDownIcon",
|
|
44666
|
+
variant: "outline",
|
|
44667
|
+
size: "sm"
|
|
44668
|
+
}) : /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
44669
|
+
name: "ArrowUpIcon",
|
|
44670
|
+
variant: "outline",
|
|
44671
|
+
size: "sm"
|
|
44672
|
+
}) : /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
44673
|
+
name: "ArrowsUpDownIcon",
|
|
44674
|
+
variant: "outline",
|
|
44675
|
+
size: "sm"
|
|
44676
|
+
})
|
|
44677
|
+
})]
|
|
44678
|
+
});
|
|
44679
|
+
return /* @__PURE__ */ (0, K.jsx)(JI, {
|
|
44680
|
+
scope: "col",
|
|
44681
|
+
"aria-sort": t ? r : void 0,
|
|
44682
|
+
canSort: t,
|
|
44683
|
+
className: e.headerClassName,
|
|
44684
|
+
style: e.width === void 0 ? void 0 : {
|
|
44685
|
+
width: e.width,
|
|
44686
|
+
minWidth: e.width,
|
|
44687
|
+
maxWidth: e.width
|
|
44688
|
+
},
|
|
44689
|
+
handleToggleSort: t ? () => _(e) : void 0,
|
|
44690
|
+
children: i
|
|
44691
|
+
}, e.id);
|
|
44692
|
+
})
|
|
44693
|
+
}) }), /* @__PURE__ */ (0, K.jsx)("tbody", { children: g.length === 0 ? /* @__PURE__ */ (0, K.jsx)(YI, { children: /* @__PURE__ */ (0, K.jsx)(KI, {
|
|
44694
|
+
colSpan: h.length,
|
|
44695
|
+
className: "text-center",
|
|
44696
|
+
children: /* @__PURE__ */ (0, K.jsx)(HI, {
|
|
44697
|
+
className: "m-20",
|
|
44698
|
+
children: s ?? $I
|
|
44699
|
+
})
|
|
44700
|
+
}) }) : g.map((e) => /* @__PURE__ */ (0, K.jsx)(YI, {
|
|
44701
|
+
...l(e),
|
|
44702
|
+
children: h.map((t) => {
|
|
44703
|
+
let n = XI(e, t);
|
|
44704
|
+
return /* @__PURE__ */ (0, K.jsx)(KI, {
|
|
44705
|
+
className: t.width === void 0 ? void 0 : "break-all",
|
|
44706
|
+
children: t.showTooltip ?? typeof n == "string" ? /* @__PURE__ */ (0, K.jsx)(HI, {
|
|
44707
|
+
size: "md",
|
|
44708
|
+
as: "span",
|
|
44709
|
+
children: n
|
|
44710
|
+
}) : n
|
|
44711
|
+
}, t.id);
|
|
44712
|
+
})
|
|
44713
|
+
}, e.id)) })]
|
|
44714
|
+
});
|
|
44715
|
+
};
|
|
44716
|
+
nL.displayName = "DataTable";
|
|
44717
|
+
var rL = (e, t, n) => {
|
|
44596
44718
|
var r, i;
|
|
44597
44719
|
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
44598
44720
|
return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
|
|
44599
44721
|
};
|
|
44600
|
-
|
|
44601
|
-
var
|
|
44722
|
+
rL.autoRemove = (e) => fL(e);
|
|
44723
|
+
var iL = (e, t, n) => {
|
|
44602
44724
|
var r;
|
|
44603
44725
|
return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
|
|
44604
44726
|
};
|
|
44605
|
-
|
|
44606
|
-
var
|
|
44727
|
+
iL.autoRemove = (e) => fL(e);
|
|
44728
|
+
var aL = (e, t, n) => {
|
|
44607
44729
|
var r;
|
|
44608
44730
|
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
44609
44731
|
};
|
|
44610
|
-
|
|
44611
|
-
var
|
|
44612
|
-
|
|
44613
|
-
var
|
|
44732
|
+
aL.autoRemove = (e) => fL(e);
|
|
44733
|
+
var oL = (e, t, n) => e.getValue(t)?.includes(n);
|
|
44734
|
+
oL.autoRemove = (e) => fL(e);
|
|
44735
|
+
var sL = (e, t, n) => !n.some((n) => {
|
|
44614
44736
|
var r;
|
|
44615
44737
|
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
44616
44738
|
});
|
|
44617
|
-
|
|
44618
|
-
var
|
|
44619
|
-
|
|
44620
|
-
var
|
|
44621
|
-
|
|
44622
|
-
var
|
|
44623
|
-
|
|
44624
|
-
var
|
|
44739
|
+
sL.autoRemove = (e) => fL(e) || !(e != null && e.length);
|
|
44740
|
+
var cL = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
44741
|
+
cL.autoRemove = (e) => fL(e) || !(e != null && e.length);
|
|
44742
|
+
var lL = (e, t, n) => e.getValue(t) === n;
|
|
44743
|
+
lL.autoRemove = (e) => fL(e);
|
|
44744
|
+
var uL = (e, t, n) => e.getValue(t) == n;
|
|
44745
|
+
uL.autoRemove = (e) => fL(e);
|
|
44746
|
+
var dL = (e, t, n) => {
|
|
44625
44747
|
let [r, i] = n, a = e.getValue(t);
|
|
44626
44748
|
return a >= r && a <= i;
|
|
44627
44749
|
};
|
|
44628
|
-
|
|
44750
|
+
dL.resolveFilterValue = (e) => {
|
|
44629
44751
|
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
|
|
44630
44752
|
if (a > o) {
|
|
44631
44753
|
let e = a;
|
|
44632
44754
|
a = o, o = e;
|
|
44633
44755
|
}
|
|
44634
44756
|
return [a, o];
|
|
44635
|
-
},
|
|
44636
|
-
function
|
|
44757
|
+
}, dL.autoRemove = (e) => fL(e) || fL(e[0]) && fL(e[1]);
|
|
44758
|
+
function fL(e) {
|
|
44637
44759
|
return e == null || e === "";
|
|
44638
44760
|
}
|
|
44639
|
-
var
|
|
44761
|
+
var pL = (e, t, n, r, i) => {
|
|
44640
44762
|
var a;
|
|
44641
44763
|
let o = i.getRow(t, !0);
|
|
44642
|
-
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) =>
|
|
44764
|
+
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => pL(e, t.id, n, r, i));
|
|
44643
44765
|
};
|
|
44644
|
-
function
|
|
44766
|
+
function mL(e, t) {
|
|
44645
44767
|
return t[e.id] ?? !1;
|
|
44646
44768
|
}
|
|
44647
|
-
function
|
|
44769
|
+
function hL(e, t, n) {
|
|
44648
44770
|
var r;
|
|
44649
44771
|
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
44650
44772
|
let i = !0, a = !1;
|
|
44651
44773
|
return e.subRows.forEach((e) => {
|
|
44652
|
-
if (!(a && !i) && (e.getCanSelect() && (
|
|
44653
|
-
let n =
|
|
44774
|
+
if (!(a && !i) && (e.getCanSelect() && (mL(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
44775
|
+
let n = hL(e, t);
|
|
44654
44776
|
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
44655
44777
|
}
|
|
44656
44778
|
}), i ? "all" : a ? "some" : !1;
|
|
44657
44779
|
}
|
|
44658
|
-
var
|
|
44780
|
+
var gL = {
|
|
44659
44781
|
base: "relative inline-flex rounded-sm justify-center text-deprecated-body-lg font-deprecated px-2.5 py-0.5 cursor-default",
|
|
44660
44782
|
success: "bg-deprecatedSuccess-1 text-deprecatedSuccess-9 dark:bg-lime-400/10 dark:text-lime-300 dark:group-data-hover:bg-lime-400/15",
|
|
44661
44783
|
warning: "bg-deprecatedWarning-1 text-deprecatedWarning-7 dark:bg-yellow-400/10 dark:text-yellow-300 dark:group-data-hover:bg-yellow-400/15",
|
|
@@ -44664,39 +44786,39 @@ var lL = {
|
|
|
44664
44786
|
info: "bg-deprecatedInfo-1 text-deprecatedInfo-7",
|
|
44665
44787
|
neutral: "bg-deprecatedNeutral-2 text-deprecatedNeutral-7",
|
|
44666
44788
|
plain: "bg-none"
|
|
44667
|
-
},
|
|
44789
|
+
}, _L = ({ variant: e = "success", className: t, ...n }) => /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
44668
44790
|
...n,
|
|
44669
44791
|
as: "span",
|
|
44670
|
-
className: Gj(
|
|
44792
|
+
className: Gj(gL.base, gL[e], t)
|
|
44671
44793
|
});
|
|
44672
44794
|
typeof window < "u" && window.document && window.document.createElement;
|
|
44673
|
-
function
|
|
44795
|
+
function vL(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
44674
44796
|
return function(r) {
|
|
44675
44797
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
44676
44798
|
};
|
|
44677
44799
|
}
|
|
44678
|
-
function
|
|
44800
|
+
function yL(e, t) {
|
|
44679
44801
|
if (typeof e == "function") return e(t);
|
|
44680
44802
|
e != null && (e.current = t);
|
|
44681
44803
|
}
|
|
44682
|
-
function
|
|
44804
|
+
function bL(...e) {
|
|
44683
44805
|
return (t) => {
|
|
44684
44806
|
let n = !1, r = e.map((e) => {
|
|
44685
|
-
let r =
|
|
44807
|
+
let r = yL(e, t);
|
|
44686
44808
|
return !n && typeof r == "function" && (n = !0), r;
|
|
44687
44809
|
});
|
|
44688
44810
|
if (n) return () => {
|
|
44689
44811
|
for (let t = 0; t < r.length; t++) {
|
|
44690
44812
|
let n = r[t];
|
|
44691
|
-
typeof n == "function" ? n() :
|
|
44813
|
+
typeof n == "function" ? n() : yL(e[t], null);
|
|
44692
44814
|
}
|
|
44693
44815
|
};
|
|
44694
44816
|
};
|
|
44695
44817
|
}
|
|
44696
|
-
function
|
|
44697
|
-
return O.useCallback(
|
|
44818
|
+
function xL(...e) {
|
|
44819
|
+
return O.useCallback(bL(...e), e);
|
|
44698
44820
|
}
|
|
44699
|
-
function
|
|
44821
|
+
function SL(e, t = []) {
|
|
44700
44822
|
let n = [];
|
|
44701
44823
|
function r(t, r) {
|
|
44702
44824
|
let i = O.createContext(r), a = n.length;
|
|
@@ -44727,9 +44849,9 @@ function hL(e, t = []) {
|
|
|
44727
44849
|
} }), [n, r]);
|
|
44728
44850
|
};
|
|
44729
44851
|
};
|
|
44730
|
-
return i.scopeName = e, [r,
|
|
44852
|
+
return i.scopeName = e, [r, CL(i, ...t)];
|
|
44731
44853
|
}
|
|
44732
|
-
function
|
|
44854
|
+
function CL(...e) {
|
|
44733
44855
|
let t = e[0];
|
|
44734
44856
|
if (e.length === 1) return t;
|
|
44735
44857
|
let n = () => {
|
|
@@ -44751,9 +44873,9 @@ function gL(...e) {
|
|
|
44751
44873
|
return n.scopeName = t.scopeName, n;
|
|
44752
44874
|
}
|
|
44753
44875
|
/* @__NO_SIDE_EFFECTS__ */
|
|
44754
|
-
function
|
|
44755
|
-
let t = /* @__PURE__ */
|
|
44756
|
-
let { children: r, ...i } = e, a = O.Children.toArray(r), o = a.find(
|
|
44876
|
+
function wL(e) {
|
|
44877
|
+
let t = /* @__PURE__ */ TL(e), n = O.forwardRef((e, n) => {
|
|
44878
|
+
let { children: r, ...i } = e, a = O.Children.toArray(r), o = a.find(OL);
|
|
44757
44879
|
if (o) {
|
|
44758
44880
|
let e = o.props.children, r = a.map((t) => t === o ? O.Children.count(e) > 1 ? O.Children.only(null) : O.isValidElement(e) ? e.props.children : null : t);
|
|
44759
44881
|
return /* @__PURE__ */ (0, K.jsx)(t, {
|
|
@@ -44771,27 +44893,27 @@ function _L(e) {
|
|
|
44771
44893
|
return n.displayName = `${e}.Slot`, n;
|
|
44772
44894
|
}
|
|
44773
44895
|
/* @__NO_SIDE_EFFECTS__ */
|
|
44774
|
-
function
|
|
44896
|
+
function TL(e) {
|
|
44775
44897
|
let t = O.forwardRef((e, t) => {
|
|
44776
44898
|
let { children: n, ...r } = e;
|
|
44777
44899
|
if (O.isValidElement(n)) {
|
|
44778
|
-
let e =
|
|
44779
|
-
return n.type !== O.Fragment && (i.ref = t ?
|
|
44900
|
+
let e = AL(n), i = kL(r, n.props);
|
|
44901
|
+
return n.type !== O.Fragment && (i.ref = t ? bL(t, e) : e), O.cloneElement(n, i);
|
|
44780
44902
|
}
|
|
44781
44903
|
return O.Children.count(n) > 1 ? O.Children.only(null) : null;
|
|
44782
44904
|
});
|
|
44783
44905
|
return t.displayName = `${e}.SlotClone`, t;
|
|
44784
44906
|
}
|
|
44785
|
-
var
|
|
44907
|
+
var EL = Symbol("radix.slottable");
|
|
44786
44908
|
/* @__NO_SIDE_EFFECTS__ */
|
|
44787
|
-
function
|
|
44909
|
+
function DL(e) {
|
|
44788
44910
|
let t = ({ children: e }) => /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: e });
|
|
44789
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
44911
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = EL, t;
|
|
44790
44912
|
}
|
|
44791
|
-
function
|
|
44792
|
-
return O.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
44913
|
+
function OL(e) {
|
|
44914
|
+
return O.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === EL;
|
|
44793
44915
|
}
|
|
44794
|
-
function
|
|
44916
|
+
function kL(e, t) {
|
|
44795
44917
|
let n = { ...t };
|
|
44796
44918
|
for (let r in t) {
|
|
44797
44919
|
let i = e[r], a = t[r];
|
|
@@ -44808,11 +44930,11 @@ function SL(e, t) {
|
|
|
44808
44930
|
...n
|
|
44809
44931
|
};
|
|
44810
44932
|
}
|
|
44811
|
-
function
|
|
44933
|
+
function AL(e) {
|
|
44812
44934
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
44813
44935
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
44814
44936
|
}
|
|
44815
|
-
var
|
|
44937
|
+
var jL = [
|
|
44816
44938
|
"a",
|
|
44817
44939
|
"button",
|
|
44818
44940
|
"div",
|
|
@@ -44831,7 +44953,7 @@ var wL = [
|
|
|
44831
44953
|
"svg",
|
|
44832
44954
|
"ul"
|
|
44833
44955
|
].reduce((e, t) => {
|
|
44834
|
-
let n = /* @__PURE__ */
|
|
44956
|
+
let n = /* @__PURE__ */ wL(`Primitive.${t}`), r = O.forwardRef((e, r) => {
|
|
44835
44957
|
let { asChild: i, ...a } = e, o = i ? n : t;
|
|
44836
44958
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ (0, K.jsx)(o, {
|
|
44837
44959
|
...a,
|
|
@@ -44843,17 +44965,17 @@ var wL = [
|
|
|
44843
44965
|
[t]: r
|
|
44844
44966
|
};
|
|
44845
44967
|
}, {});
|
|
44846
|
-
function
|
|
44968
|
+
function ML(e, t) {
|
|
44847
44969
|
e && ix.flushSync(() => e.dispatchEvent(t));
|
|
44848
44970
|
}
|
|
44849
|
-
function
|
|
44971
|
+
function NL(e) {
|
|
44850
44972
|
let t = O.useRef(e);
|
|
44851
44973
|
return O.useEffect(() => {
|
|
44852
44974
|
t.current = e;
|
|
44853
44975
|
}), O.useMemo(() => (...e) => t.current?.(...e), []);
|
|
44854
44976
|
}
|
|
44855
|
-
function
|
|
44856
|
-
let n =
|
|
44977
|
+
function PL(e, t = globalThis?.document) {
|
|
44978
|
+
let n = NL(e);
|
|
44857
44979
|
O.useEffect(() => {
|
|
44858
44980
|
let e = (e) => {
|
|
44859
44981
|
e.key === "Escape" && n(e);
|
|
@@ -44861,23 +44983,23 @@ function DL(e, t = globalThis?.document) {
|
|
|
44861
44983
|
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
44862
44984
|
}, [n, t]);
|
|
44863
44985
|
}
|
|
44864
|
-
var
|
|
44986
|
+
var FL = "DismissableLayer", IL = "dismissableLayer.update", LL = "dismissableLayer.pointerDownOutside", RL = "dismissableLayer.focusOutside", zL, BL = O.createContext({
|
|
44865
44987
|
layers: /* @__PURE__ */ new Set(),
|
|
44866
44988
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
44867
44989
|
branches: /* @__PURE__ */ new Set()
|
|
44868
|
-
}),
|
|
44869
|
-
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = O.useContext(
|
|
44990
|
+
}), VL = O.forwardRef((e, t) => {
|
|
44991
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = O.useContext(BL), [u, d] = O.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = O.useState({}), m = xL(t, (e) => d(e)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = h.indexOf(g), v = u ? h.indexOf(u) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, b = v >= _, x = WL((e) => {
|
|
44870
44992
|
let t = e.target, n = [...l.branches].some((e) => e.contains(t));
|
|
44871
44993
|
!b || n || (i?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
44872
|
-
}, f), S =
|
|
44994
|
+
}, f), S = GL((e) => {
|
|
44873
44995
|
let t = e.target;
|
|
44874
44996
|
[...l.branches].some((e) => e.contains(t)) || (a?.(e), o?.(e), e.defaultPrevented || s?.());
|
|
44875
44997
|
}, f);
|
|
44876
|
-
return
|
|
44998
|
+
return PL((e) => {
|
|
44877
44999
|
v === l.layers.size - 1 && (r?.(e), !e.defaultPrevented && s && (e.preventDefault(), s()));
|
|
44878
45000
|
}, f), O.useEffect(() => {
|
|
44879
|
-
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
44880
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents =
|
|
45001
|
+
if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (zL = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), KL(), () => {
|
|
45002
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = zL);
|
|
44881
45003
|
};
|
|
44882
45004
|
}, [
|
|
44883
45005
|
u,
|
|
@@ -44885,43 +45007,43 @@ var OL = "DismissableLayer", kL = "dismissableLayer.update", AL = "dismissableLa
|
|
|
44885
45007
|
n,
|
|
44886
45008
|
l
|
|
44887
45009
|
]), O.useEffect(() => () => {
|
|
44888
|
-
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
45010
|
+
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), KL());
|
|
44889
45011
|
}, [u, l]), O.useEffect(() => {
|
|
44890
45012
|
let e = () => p({});
|
|
44891
|
-
return document.addEventListener(
|
|
44892
|
-
}, []), /* @__PURE__ */ (0, K.jsx)(
|
|
45013
|
+
return document.addEventListener(IL, e), () => document.removeEventListener(IL, e);
|
|
45014
|
+
}, []), /* @__PURE__ */ (0, K.jsx)(jL.div, {
|
|
44893
45015
|
...c,
|
|
44894
45016
|
ref: m,
|
|
44895
45017
|
style: {
|
|
44896
45018
|
pointerEvents: y ? b ? "auto" : "none" : void 0,
|
|
44897
45019
|
...e.style
|
|
44898
45020
|
},
|
|
44899
|
-
onFocusCapture:
|
|
44900
|
-
onBlurCapture:
|
|
44901
|
-
onPointerDownCapture:
|
|
45021
|
+
onFocusCapture: vL(e.onFocusCapture, S.onFocusCapture),
|
|
45022
|
+
onBlurCapture: vL(e.onBlurCapture, S.onBlurCapture),
|
|
45023
|
+
onPointerDownCapture: vL(e.onPointerDownCapture, x.onPointerDownCapture)
|
|
44902
45024
|
});
|
|
44903
45025
|
});
|
|
44904
|
-
|
|
44905
|
-
var
|
|
44906
|
-
let n = O.useContext(
|
|
45026
|
+
VL.displayName = FL;
|
|
45027
|
+
var HL = "DismissableLayerBranch", UL = O.forwardRef((e, t) => {
|
|
45028
|
+
let n = O.useContext(BL), r = O.useRef(null), i = xL(t, r);
|
|
44907
45029
|
return O.useEffect(() => {
|
|
44908
45030
|
let e = r.current;
|
|
44909
45031
|
if (e) return n.branches.add(e), () => {
|
|
44910
45032
|
n.branches.delete(e);
|
|
44911
45033
|
};
|
|
44912
|
-
}, [n.branches]), /* @__PURE__ */ (0, K.jsx)(
|
|
45034
|
+
}, [n.branches]), /* @__PURE__ */ (0, K.jsx)(jL.div, {
|
|
44913
45035
|
...e,
|
|
44914
45036
|
ref: i
|
|
44915
45037
|
});
|
|
44916
45038
|
});
|
|
44917
|
-
|
|
44918
|
-
function
|
|
44919
|
-
let n =
|
|
45039
|
+
UL.displayName = HL;
|
|
45040
|
+
function WL(e, t = globalThis?.document) {
|
|
45041
|
+
let n = NL(e), r = O.useRef(!1), i = O.useRef(() => {});
|
|
44920
45042
|
return O.useEffect(() => {
|
|
44921
45043
|
let e = (e) => {
|
|
44922
45044
|
if (e.target && !r.current) {
|
|
44923
45045
|
let r = function() {
|
|
44924
|
-
|
|
45046
|
+
qL(LL, n, a, { discrete: !0 });
|
|
44925
45047
|
}, a = { originalEvent: e };
|
|
44926
45048
|
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
44927
45049
|
} else t.removeEventListener("click", i.current);
|
|
@@ -44934,11 +45056,11 @@ function LL(e, t = globalThis?.document) {
|
|
|
44934
45056
|
};
|
|
44935
45057
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
44936
45058
|
}
|
|
44937
|
-
function
|
|
44938
|
-
let n =
|
|
45059
|
+
function GL(e, t = globalThis?.document) {
|
|
45060
|
+
let n = NL(e), r = O.useRef(!1);
|
|
44939
45061
|
return O.useEffect(() => {
|
|
44940
45062
|
let e = (e) => {
|
|
44941
|
-
e.target && !r.current &&
|
|
45063
|
+
e.target && !r.current && qL(RL, n, { originalEvent: e }, { discrete: !1 });
|
|
44942
45064
|
};
|
|
44943
45065
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
44944
45066
|
}, [t, n]), {
|
|
@@ -44946,28 +45068,28 @@ function RL(e, t = globalThis?.document) {
|
|
|
44946
45068
|
onBlurCapture: () => r.current = !1
|
|
44947
45069
|
};
|
|
44948
45070
|
}
|
|
44949
|
-
function
|
|
44950
|
-
let e = new CustomEvent(
|
|
45071
|
+
function KL() {
|
|
45072
|
+
let e = new CustomEvent(IL);
|
|
44951
45073
|
document.dispatchEvent(e);
|
|
44952
45074
|
}
|
|
44953
|
-
function
|
|
45075
|
+
function qL(e, t, n, { discrete: r }) {
|
|
44954
45076
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
44955
45077
|
bubbles: !1,
|
|
44956
45078
|
cancelable: !0,
|
|
44957
45079
|
detail: n
|
|
44958
45080
|
});
|
|
44959
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
45081
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? ML(i, a) : i.dispatchEvent(a);
|
|
44960
45082
|
}
|
|
44961
|
-
var
|
|
44962
|
-
function
|
|
44963
|
-
let [t, n] = O.useState(
|
|
44964
|
-
return
|
|
44965
|
-
e || n((e) => e ?? String(
|
|
45083
|
+
var JL = globalThis?.document ? O.useLayoutEffect : () => {}, YL = O.useId || (() => void 0), XL = 0;
|
|
45084
|
+
function ZL(e) {
|
|
45085
|
+
let [t, n] = O.useState(YL());
|
|
45086
|
+
return JL(() => {
|
|
45087
|
+
e || n((e) => e ?? String(XL++));
|
|
44966
45088
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
44967
45089
|
}
|
|
44968
|
-
var
|
|
45090
|
+
var QL = "Arrow", $L = O.forwardRef((e, t) => {
|
|
44969
45091
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
44970
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
45092
|
+
return /* @__PURE__ */ (0, K.jsx)(jL.svg, {
|
|
44971
45093
|
...a,
|
|
44972
45094
|
ref: t,
|
|
44973
45095
|
width: r,
|
|
@@ -44977,11 +45099,11 @@ var GL = "Arrow", KL = O.forwardRef((e, t) => {
|
|
|
44977
45099
|
children: e.asChild ? n : /* @__PURE__ */ (0, K.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
|
44978
45100
|
});
|
|
44979
45101
|
});
|
|
44980
|
-
|
|
44981
|
-
var
|
|
44982
|
-
function
|
|
45102
|
+
$L.displayName = QL;
|
|
45103
|
+
var eR = $L;
|
|
45104
|
+
function tR(e) {
|
|
44983
45105
|
let [t, n] = O.useState(void 0);
|
|
44984
|
-
return
|
|
45106
|
+
return JL(() => {
|
|
44985
45107
|
if (e) {
|
|
44986
45108
|
n({
|
|
44987
45109
|
width: e.offsetWidth,
|
|
@@ -45003,29 +45125,29 @@ function JL(e) {
|
|
|
45003
45125
|
} else n(void 0);
|
|
45004
45126
|
}, [e]), t;
|
|
45005
45127
|
}
|
|
45006
|
-
var
|
|
45128
|
+
var nR = "Popper", [rR, iR] = SL(nR), [aR, oR] = rR(nR), sR = (e) => {
|
|
45007
45129
|
let { __scopePopper: t, children: n } = e, [r, i] = O.useState(null);
|
|
45008
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
45130
|
+
return /* @__PURE__ */ (0, K.jsx)(aR, {
|
|
45009
45131
|
scope: t,
|
|
45010
45132
|
anchor: r,
|
|
45011
45133
|
onAnchorChange: i,
|
|
45012
45134
|
children: n
|
|
45013
45135
|
});
|
|
45014
45136
|
};
|
|
45015
|
-
|
|
45016
|
-
var
|
|
45017
|
-
let { __scopePopper: n, virtualRef: r, ...i } = e, a =
|
|
45137
|
+
sR.displayName = nR;
|
|
45138
|
+
var cR = "PopperAnchor", lR = O.forwardRef((e, t) => {
|
|
45139
|
+
let { __scopePopper: n, virtualRef: r, ...i } = e, a = oR(cR, n), o = O.useRef(null), s = xL(t, o), c = O.useRef(null);
|
|
45018
45140
|
return O.useEffect(() => {
|
|
45019
45141
|
let e = c.current;
|
|
45020
45142
|
c.current = r?.current || o.current, e !== c.current && a.onAnchorChange(c.current);
|
|
45021
|
-
}), r ? null : /* @__PURE__ */ (0, K.jsx)(
|
|
45143
|
+
}), r ? null : /* @__PURE__ */ (0, K.jsx)(jL.div, {
|
|
45022
45144
|
...i,
|
|
45023
45145
|
ref: s
|
|
45024
45146
|
});
|
|
45025
45147
|
});
|
|
45026
|
-
|
|
45027
|
-
var
|
|
45028
|
-
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g =
|
|
45148
|
+
lR.displayName = cR;
|
|
45149
|
+
var uR = "PopperContent", [dR, fR] = rR(uR), pR = O.forwardRef((e, t) => {
|
|
45150
|
+
let { __scopePopper: n, side: r = "bottom", sideOffset: i = 0, align: a = "center", alignOffset: o = 0, arrowPadding: s = 0, avoidCollisions: c = !0, collisionBoundary: l = [], collisionPadding: u = 0, sticky: d = "partial", hideWhenDetached: f = !1, updatePositionStrategy: p = "optimized", onPlaced: m, ...h } = e, g = oR(uR, n), [_, v] = O.useState(null), y = xL(t, (e) => v(e)), [b, x] = O.useState(null), S = tR(b), C = S?.width ?? 0, w = S?.height ?? 0, T = r + (a === "center" ? "" : "-" + a), E = typeof u == "number" ? u : {
|
|
45029
45151
|
top: 0,
|
|
45030
45152
|
right: 0,
|
|
45031
45153
|
bottom: 0,
|
|
@@ -45033,7 +45155,7 @@ var rR = "PopperContent", [iR, aR] = XL(rR), oR = O.forwardRef((e, t) => {
|
|
|
45033
45155
|
...u
|
|
45034
45156
|
}, D = Array.isArray(l) ? l : [l], k = D.length > 0, A = {
|
|
45035
45157
|
padding: E,
|
|
45036
|
-
boundary: D.filter(
|
|
45158
|
+
boundary: D.filter(_R),
|
|
45037
45159
|
altBoundary: k
|
|
45038
45160
|
}, { refs: j, floatingStyles: M, placement: N, isPositioned: P, middlewareData: F } = XT({
|
|
45039
45161
|
strategy: "fixed",
|
|
@@ -45063,7 +45185,7 @@ var rR = "PopperContent", [iR, aR] = XL(rR), oR = O.forwardRef((e, t) => {
|
|
|
45063
45185
|
element: b,
|
|
45064
45186
|
padding: s
|
|
45065
45187
|
}),
|
|
45066
|
-
|
|
45188
|
+
vR({
|
|
45067
45189
|
arrowWidth: C,
|
|
45068
45190
|
arrowHeight: w
|
|
45069
45191
|
}),
|
|
@@ -45072,12 +45194,12 @@ var rR = "PopperContent", [iR, aR] = XL(rR), oR = O.forwardRef((e, t) => {
|
|
|
45072
45194
|
...A
|
|
45073
45195
|
})
|
|
45074
45196
|
]
|
|
45075
|
-
}), [I, ee] =
|
|
45076
|
-
|
|
45197
|
+
}), [I, ee] = yR(N), te = NL(m);
|
|
45198
|
+
JL(() => {
|
|
45077
45199
|
P && te?.();
|
|
45078
45200
|
}, [P, te]);
|
|
45079
45201
|
let ne = F.arrow?.x, re = F.arrow?.y, L = F.arrow?.centerOffset !== 0, [ie, ae] = O.useState();
|
|
45080
|
-
return
|
|
45202
|
+
return JL(() => {
|
|
45081
45203
|
_ && ae(window.getComputedStyle(_).zIndex);
|
|
45082
45204
|
}, [_]), /* @__PURE__ */ (0, K.jsx)("div", {
|
|
45083
45205
|
ref: j.setFloating,
|
|
@@ -45094,14 +45216,14 @@ var rR = "PopperContent", [iR, aR] = XL(rR), oR = O.forwardRef((e, t) => {
|
|
|
45094
45216
|
}
|
|
45095
45217
|
},
|
|
45096
45218
|
dir: e.dir,
|
|
45097
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45219
|
+
children: /* @__PURE__ */ (0, K.jsx)(dR, {
|
|
45098
45220
|
scope: n,
|
|
45099
45221
|
placedSide: I,
|
|
45100
45222
|
onArrowChange: x,
|
|
45101
45223
|
arrowX: ne,
|
|
45102
45224
|
arrowY: re,
|
|
45103
45225
|
shouldHideArrow: L,
|
|
45104
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45226
|
+
children: /* @__PURE__ */ (0, K.jsx)(jL.div, {
|
|
45105
45227
|
"data-side": I,
|
|
45106
45228
|
"data-align": ee,
|
|
45107
45229
|
...h,
|
|
@@ -45114,14 +45236,14 @@ var rR = "PopperContent", [iR, aR] = XL(rR), oR = O.forwardRef((e, t) => {
|
|
|
45114
45236
|
})
|
|
45115
45237
|
});
|
|
45116
45238
|
});
|
|
45117
|
-
|
|
45118
|
-
var
|
|
45239
|
+
pR.displayName = uR;
|
|
45240
|
+
var mR = "PopperArrow", hR = {
|
|
45119
45241
|
top: "bottom",
|
|
45120
45242
|
right: "left",
|
|
45121
45243
|
bottom: "top",
|
|
45122
45244
|
left: "right"
|
|
45123
|
-
},
|
|
45124
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
45245
|
+
}, gR = O.forwardRef(function(e, t) {
|
|
45246
|
+
let { __scopePopper: n, ...r } = e, i = fR(mR, n), a = hR[i.placedSide];
|
|
45125
45247
|
return /* @__PURE__ */ (0, K.jsx)("span", {
|
|
45126
45248
|
ref: i.onArrowChange,
|
|
45127
45249
|
style: {
|
|
@@ -45143,7 +45265,7 @@ var sR = "PopperArrow", cR = {
|
|
|
45143
45265
|
}[i.placedSide],
|
|
45144
45266
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
45145
45267
|
},
|
|
45146
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45268
|
+
children: /* @__PURE__ */ (0, K.jsx)(eR, {
|
|
45147
45269
|
...r,
|
|
45148
45270
|
ref: t,
|
|
45149
45271
|
style: {
|
|
@@ -45153,15 +45275,15 @@ var sR = "PopperArrow", cR = {
|
|
|
45153
45275
|
})
|
|
45154
45276
|
});
|
|
45155
45277
|
});
|
|
45156
|
-
|
|
45157
|
-
function
|
|
45278
|
+
gR.displayName = mR;
|
|
45279
|
+
function _R(e) {
|
|
45158
45280
|
return e !== null;
|
|
45159
45281
|
}
|
|
45160
|
-
var
|
|
45282
|
+
var vR = (e) => ({
|
|
45161
45283
|
name: "transformOrigin",
|
|
45162
45284
|
options: e,
|
|
45163
45285
|
fn(t) {
|
|
45164
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
45286
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = yR(n), u = {
|
|
45165
45287
|
start: "0%",
|
|
45166
45288
|
center: "50%",
|
|
45167
45289
|
end: "100%"
|
|
@@ -45172,30 +45294,30 @@ var dR = (e) => ({
|
|
|
45172
45294
|
} };
|
|
45173
45295
|
}
|
|
45174
45296
|
});
|
|
45175
|
-
function
|
|
45297
|
+
function yR(e) {
|
|
45176
45298
|
let [t, n = "center"] = e.split("-");
|
|
45177
45299
|
return [t, n];
|
|
45178
45300
|
}
|
|
45179
|
-
var
|
|
45301
|
+
var bR = sR, xR = lR, SR = pR, CR = gR, wR = "Portal", TR = O.forwardRef((e, t) => {
|
|
45180
45302
|
let { container: n, ...r } = e, [i, a] = O.useState(!1);
|
|
45181
|
-
|
|
45303
|
+
JL(() => a(!0), []);
|
|
45182
45304
|
let o = n || i && globalThis?.document?.body;
|
|
45183
|
-
return o ? ix.createPortal(/* @__PURE__ */ (0, K.jsx)(
|
|
45305
|
+
return o ? ix.createPortal(/* @__PURE__ */ (0, K.jsx)(jL.div, {
|
|
45184
45306
|
...r,
|
|
45185
45307
|
ref: t
|
|
45186
45308
|
}), o) : null;
|
|
45187
45309
|
});
|
|
45188
|
-
|
|
45189
|
-
function
|
|
45310
|
+
TR.displayName = wR;
|
|
45311
|
+
function ER(e, t) {
|
|
45190
45312
|
return O.useReducer((e, n) => t[e][n] ?? e, e);
|
|
45191
45313
|
}
|
|
45192
|
-
var
|
|
45193
|
-
let { present: t, children: n } = e, r =
|
|
45314
|
+
var DR = (e) => {
|
|
45315
|
+
let { present: t, children: n } = e, r = OR(t), i = typeof n == "function" ? n({ present: r.isPresent }) : O.Children.only(n), a = xL(r.ref, AR(i));
|
|
45194
45316
|
return typeof n == "function" || r.isPresent ? O.cloneElement(i, { ref: a }) : null;
|
|
45195
45317
|
};
|
|
45196
|
-
|
|
45197
|
-
function
|
|
45198
|
-
let [t, n] = O.useState(), r = O.useRef(null), i = O.useRef(e), a = O.useRef("none"), [o, s] =
|
|
45318
|
+
DR.displayName = "Presence";
|
|
45319
|
+
function OR(e) {
|
|
45320
|
+
let [t, n] = O.useState(), r = O.useRef(null), i = O.useRef(e), a = O.useRef("none"), [o, s] = ER(e ? "mounted" : "unmounted", {
|
|
45199
45321
|
mounted: {
|
|
45200
45322
|
UNMOUNT: "unmounted",
|
|
45201
45323
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -45207,18 +45329,18 @@ function xR(e) {
|
|
|
45207
45329
|
unmounted: { MOUNT: "mounted" }
|
|
45208
45330
|
});
|
|
45209
45331
|
return O.useEffect(() => {
|
|
45210
|
-
let e =
|
|
45332
|
+
let e = kR(r.current);
|
|
45211
45333
|
a.current = o === "mounted" ? e : "none";
|
|
45212
|
-
}, [o]),
|
|
45334
|
+
}, [o]), JL(() => {
|
|
45213
45335
|
let t = r.current, n = i.current;
|
|
45214
45336
|
if (n !== e) {
|
|
45215
|
-
let r = a.current, o =
|
|
45337
|
+
let r = a.current, o = kR(t);
|
|
45216
45338
|
e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
45217
45339
|
}
|
|
45218
|
-
}, [e, s]),
|
|
45340
|
+
}, [e, s]), JL(() => {
|
|
45219
45341
|
if (t) {
|
|
45220
45342
|
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
45221
|
-
let o =
|
|
45343
|
+
let o = kR(r.current).includes(CSS.escape(a.animationName));
|
|
45222
45344
|
if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
|
|
45223
45345
|
let r = t.style.animationFillMode;
|
|
45224
45346
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
@@ -45226,7 +45348,7 @@ function xR(e) {
|
|
|
45226
45348
|
});
|
|
45227
45349
|
}
|
|
45228
45350
|
}, c = (e) => {
|
|
45229
|
-
e.target === t && (a.current =
|
|
45351
|
+
e.target === t && (a.current = kR(r.current));
|
|
45230
45352
|
};
|
|
45231
45353
|
return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
45232
45354
|
n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
@@ -45239,16 +45361,16 @@ function xR(e) {
|
|
|
45239
45361
|
}, [])
|
|
45240
45362
|
};
|
|
45241
45363
|
}
|
|
45242
|
-
function
|
|
45364
|
+
function kR(e) {
|
|
45243
45365
|
return e?.animationName || "none";
|
|
45244
45366
|
}
|
|
45245
|
-
function
|
|
45367
|
+
function AR(e) {
|
|
45246
45368
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
45247
45369
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
45248
45370
|
}
|
|
45249
|
-
var
|
|
45250
|
-
function
|
|
45251
|
-
let [i, a, o] =
|
|
45371
|
+
var jR = O.useInsertionEffect || JL;
|
|
45372
|
+
function MR({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
45373
|
+
let [i, a, o] = NR({
|
|
45252
45374
|
defaultProp: t,
|
|
45253
45375
|
onChange: n
|
|
45254
45376
|
}), s = e !== void 0, c = s ? e : i;
|
|
@@ -45261,7 +45383,7 @@ function TR({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
45261
45383
|
}
|
|
45262
45384
|
return [c, O.useCallback((t) => {
|
|
45263
45385
|
if (s) {
|
|
45264
|
-
let n =
|
|
45386
|
+
let n = PR(t) ? t(e) : t;
|
|
45265
45387
|
n !== e && o.current?.(n);
|
|
45266
45388
|
} else a(t);
|
|
45267
45389
|
}, [
|
|
@@ -45271,9 +45393,9 @@ function TR({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
|
45271
45393
|
o
|
|
45272
45394
|
])];
|
|
45273
45395
|
}
|
|
45274
|
-
function
|
|
45396
|
+
function NR({ defaultProp: e, onChange: t }) {
|
|
45275
45397
|
let [n, r] = O.useState(e), i = O.useRef(n), a = O.useRef(t);
|
|
45276
|
-
return
|
|
45398
|
+
return jR(() => {
|
|
45277
45399
|
a.current = t;
|
|
45278
45400
|
}, [t]), O.useEffect(() => {
|
|
45279
45401
|
i.current !== n && (a.current?.(n), i.current = n);
|
|
@@ -45283,10 +45405,10 @@ function ER({ defaultProp: e, onChange: t }) {
|
|
|
45283
45405
|
a
|
|
45284
45406
|
];
|
|
45285
45407
|
}
|
|
45286
|
-
function
|
|
45408
|
+
function PR(e) {
|
|
45287
45409
|
return typeof e == "function";
|
|
45288
45410
|
}
|
|
45289
|
-
var
|
|
45411
|
+
var FR = Object.freeze({
|
|
45290
45412
|
position: "absolute",
|
|
45291
45413
|
border: 0,
|
|
45292
45414
|
width: 1,
|
|
@@ -45297,21 +45419,21 @@ var OR = Object.freeze({
|
|
|
45297
45419
|
clip: "rect(0, 0, 0, 0)",
|
|
45298
45420
|
whiteSpace: "nowrap",
|
|
45299
45421
|
wordWrap: "normal"
|
|
45300
|
-
}),
|
|
45422
|
+
}), IR = "VisuallyHidden", LR = O.forwardRef((e, t) => /* @__PURE__ */ (0, K.jsx)(jL.span, {
|
|
45301
45423
|
...e,
|
|
45302
45424
|
ref: t,
|
|
45303
45425
|
style: {
|
|
45304
|
-
...
|
|
45426
|
+
...FR,
|
|
45305
45427
|
...e.style
|
|
45306
45428
|
}
|
|
45307
45429
|
}));
|
|
45308
|
-
|
|
45309
|
-
var
|
|
45310
|
-
let { __scopeTooltip: t, delayDuration: n =
|
|
45430
|
+
LR.displayName = IR;
|
|
45431
|
+
var RR = LR, [zR, BR] = SL("Tooltip", [iR]), VR = iR(), HR = "TooltipProvider", UR = 700, WR = "tooltip.open", [GR, KR] = zR(HR), qR = (e) => {
|
|
45432
|
+
let { __scopeTooltip: t, delayDuration: n = UR, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = O.useRef(!0), s = O.useRef(!1), c = O.useRef(0);
|
|
45311
45433
|
return O.useEffect(() => {
|
|
45312
45434
|
let e = c.current;
|
|
45313
45435
|
return () => window.clearTimeout(e);
|
|
45314
|
-
}, []), /* @__PURE__ */ (0, K.jsx)(
|
|
45436
|
+
}, []), /* @__PURE__ */ (0, K.jsx)(GR, {
|
|
45315
45437
|
scope: t,
|
|
45316
45438
|
isOpenDelayedRef: o,
|
|
45317
45439
|
delayDuration: n,
|
|
@@ -45329,15 +45451,15 @@ var jR = AR, [MR, NR] = hL("Tooltip", [ZL]), PR = ZL(), FR = "TooltipProvider",
|
|
|
45329
45451
|
children: a
|
|
45330
45452
|
});
|
|
45331
45453
|
};
|
|
45332
|
-
|
|
45333
|
-
var
|
|
45334
|
-
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c =
|
|
45454
|
+
qR.displayName = HR;
|
|
45455
|
+
var JR = "Tooltip", [YR, XR] = zR(JR), ZR = (e) => {
|
|
45456
|
+
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = KR(JR, e.__scopeTooltip), l = VR(t), [u, d] = O.useState(null), f = ZL(), p = O.useRef(0), m = o ?? c.disableHoverableContent, h = s ?? c.delayDuration, g = O.useRef(!1), [_, v] = MR({
|
|
45335
45457
|
prop: r,
|
|
45336
45458
|
defaultProp: i ?? !1,
|
|
45337
45459
|
onChange: (e) => {
|
|
45338
|
-
e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
45460
|
+
e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(WR))) : c.onClose(), a?.(e);
|
|
45339
45461
|
},
|
|
45340
|
-
caller:
|
|
45462
|
+
caller: JR
|
|
45341
45463
|
}), y = O.useMemo(() => _ ? g.current ? "delayed-open" : "instant-open" : "closed", [_]), b = O.useCallback(() => {
|
|
45342
45464
|
window.clearTimeout(p.current), p.current = 0, g.current = !1, v(!0);
|
|
45343
45465
|
}, [v]), x = O.useCallback(() => {
|
|
@@ -45349,9 +45471,9 @@ var VR = "Tooltip", [HR, UR] = MR(VR), WR = (e) => {
|
|
|
45349
45471
|
}, [h, v]);
|
|
45350
45472
|
return O.useEffect(() => () => {
|
|
45351
45473
|
p.current &&= (window.clearTimeout(p.current), 0);
|
|
45352
|
-
}, []), /* @__PURE__ */ (0, K.jsx)(
|
|
45474
|
+
}, []), /* @__PURE__ */ (0, K.jsx)(bR, {
|
|
45353
45475
|
...l,
|
|
45354
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45476
|
+
children: /* @__PURE__ */ (0, K.jsx)(YR, {
|
|
45355
45477
|
scope: t,
|
|
45356
45478
|
contentId: f,
|
|
45357
45479
|
open: _,
|
|
@@ -45375,43 +45497,43 @@ var VR = "Tooltip", [HR, UR] = MR(VR), WR = (e) => {
|
|
|
45375
45497
|
})
|
|
45376
45498
|
});
|
|
45377
45499
|
};
|
|
45378
|
-
|
|
45379
|
-
var
|
|
45380
|
-
let { __scopeTooltip: n, ...r } = e, i =
|
|
45381
|
-
return O.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ (0, K.jsx)(
|
|
45500
|
+
ZR.displayName = JR;
|
|
45501
|
+
var QR = "TooltipTrigger", $R = O.forwardRef((e, t) => {
|
|
45502
|
+
let { __scopeTooltip: n, ...r } = e, i = XR(QR, n), a = KR(QR, n), o = VR(n), s = xL(t, O.useRef(null), i.onTriggerChange), c = O.useRef(!1), l = O.useRef(!1), u = O.useCallback(() => c.current = !1, []);
|
|
45503
|
+
return O.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ (0, K.jsx)(xR, {
|
|
45382
45504
|
asChild: !0,
|
|
45383
45505
|
...o,
|
|
45384
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45506
|
+
children: /* @__PURE__ */ (0, K.jsx)(jL.button, {
|
|
45385
45507
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
45386
45508
|
"data-state": i.stateAttribute,
|
|
45387
45509
|
...r,
|
|
45388
45510
|
ref: s,
|
|
45389
|
-
onPointerMove:
|
|
45511
|
+
onPointerMove: vL(e.onPointerMove, (e) => {
|
|
45390
45512
|
e.pointerType !== "touch" && !l.current && !a.isPointerInTransitRef.current && (i.onTriggerEnter(), l.current = !0);
|
|
45391
45513
|
}),
|
|
45392
|
-
onPointerLeave:
|
|
45514
|
+
onPointerLeave: vL(e.onPointerLeave, () => {
|
|
45393
45515
|
i.onTriggerLeave(), l.current = !1;
|
|
45394
45516
|
}),
|
|
45395
|
-
onPointerDown:
|
|
45517
|
+
onPointerDown: vL(e.onPointerDown, () => {
|
|
45396
45518
|
i.open && i.onClose(), c.current = !0, document.addEventListener("pointerup", u, { once: !0 });
|
|
45397
45519
|
}),
|
|
45398
|
-
onFocus:
|
|
45520
|
+
onFocus: vL(e.onFocus, () => {
|
|
45399
45521
|
c.current || i.onOpen();
|
|
45400
45522
|
}),
|
|
45401
|
-
onBlur:
|
|
45402
|
-
onClick:
|
|
45523
|
+
onBlur: vL(e.onBlur, i.onClose),
|
|
45524
|
+
onClick: vL(e.onClick, i.onClose)
|
|
45403
45525
|
})
|
|
45404
45526
|
});
|
|
45405
45527
|
});
|
|
45406
|
-
|
|
45407
|
-
var
|
|
45408
|
-
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a =
|
|
45409
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
45528
|
+
$R.displayName = QR;
|
|
45529
|
+
var ez = "TooltipPortal", [tz, nz] = zR(ez, { forceMount: void 0 }), rz = (e) => {
|
|
45530
|
+
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = XR(ez, t);
|
|
45531
|
+
return /* @__PURE__ */ (0, K.jsx)(tz, {
|
|
45410
45532
|
scope: t,
|
|
45411
45533
|
forceMount: n,
|
|
45412
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45534
|
+
children: /* @__PURE__ */ (0, K.jsx)(DR, {
|
|
45413
45535
|
present: n || a.open,
|
|
45414
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45536
|
+
children: /* @__PURE__ */ (0, K.jsx)(TR, {
|
|
45415
45537
|
asChild: !0,
|
|
45416
45538
|
container: i,
|
|
45417
45539
|
children: r
|
|
@@ -45419,30 +45541,30 @@ var qR = "TooltipPortal", [JR, YR] = MR(qR, { forceMount: void 0 }), XR = (e) =>
|
|
|
45419
45541
|
})
|
|
45420
45542
|
});
|
|
45421
45543
|
};
|
|
45422
|
-
|
|
45423
|
-
var
|
|
45424
|
-
let n =
|
|
45425
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
45544
|
+
rz.displayName = ez;
|
|
45545
|
+
var iz = "TooltipContent", az = O.forwardRef((e, t) => {
|
|
45546
|
+
let n = nz(iz, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = XR(iz, e.__scopeTooltip);
|
|
45547
|
+
return /* @__PURE__ */ (0, K.jsx)(DR, {
|
|
45426
45548
|
present: r || o.open,
|
|
45427
|
-
children: o.disableHoverableContent ? /* @__PURE__ */ (0, K.jsx)(
|
|
45549
|
+
children: o.disableHoverableContent ? /* @__PURE__ */ (0, K.jsx)(uz, {
|
|
45428
45550
|
side: i,
|
|
45429
45551
|
...a,
|
|
45430
45552
|
ref: t
|
|
45431
|
-
}) : /* @__PURE__ */ (0, K.jsx)(
|
|
45553
|
+
}) : /* @__PURE__ */ (0, K.jsx)(oz, {
|
|
45432
45554
|
side: i,
|
|
45433
45555
|
...a,
|
|
45434
45556
|
ref: t
|
|
45435
45557
|
})
|
|
45436
45558
|
});
|
|
45437
|
-
}),
|
|
45438
|
-
let n =
|
|
45559
|
+
}), oz = O.forwardRef((e, t) => {
|
|
45560
|
+
let n = XR(iz, e.__scopeTooltip), r = KR(iz, e.__scopeTooltip), i = O.useRef(null), a = xL(t, i), [o, s] = O.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = O.useCallback(() => {
|
|
45439
45561
|
s(null), d(!1);
|
|
45440
45562
|
}, [d]), p = O.useCallback((e, t) => {
|
|
45441
45563
|
let n = e.currentTarget, r = {
|
|
45442
45564
|
x: e.clientX,
|
|
45443
45565
|
y: e.clientY
|
|
45444
|
-
}, i =
|
|
45445
|
-
s(
|
|
45566
|
+
}, i = mz(r, pz(r, n.getBoundingClientRect())), a = hz(t.getBoundingClientRect());
|
|
45567
|
+
s(_z([...i, ...a])), d(!0);
|
|
45446
45568
|
}, [d]);
|
|
45447
45569
|
return O.useEffect(() => () => f(), [f]), O.useEffect(() => {
|
|
45448
45570
|
if (c && u) {
|
|
@@ -45462,7 +45584,7 @@ var ZR = "TooltipContent", QR = O.forwardRef((e, t) => {
|
|
|
45462
45584
|
let t = e.target, n = {
|
|
45463
45585
|
x: e.clientX,
|
|
45464
45586
|
y: e.clientY
|
|
45465
|
-
}, r = c?.contains(t) || u?.contains(t), i = !
|
|
45587
|
+
}, r = c?.contains(t) || u?.contains(t), i = !gz(n, o);
|
|
45466
45588
|
r ? f() : i && (f(), l());
|
|
45467
45589
|
};
|
|
45468
45590
|
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
|
|
@@ -45473,27 +45595,27 @@ var ZR = "TooltipContent", QR = O.forwardRef((e, t) => {
|
|
|
45473
45595
|
o,
|
|
45474
45596
|
l,
|
|
45475
45597
|
f
|
|
45476
|
-
]), /* @__PURE__ */ (0, K.jsx)(
|
|
45598
|
+
]), /* @__PURE__ */ (0, K.jsx)(uz, {
|
|
45477
45599
|
...e,
|
|
45478
45600
|
ref: a
|
|
45479
45601
|
});
|
|
45480
|
-
}), [
|
|
45481
|
-
let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c =
|
|
45482
|
-
return O.useEffect(() => (document.addEventListener(
|
|
45602
|
+
}), [sz, cz] = zR(JR, { isInside: !1 }), lz = /* @__PURE__ */ DL("TooltipContent"), uz = O.forwardRef((e, t) => {
|
|
45603
|
+
let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = XR(iz, n), l = VR(n), { onClose: u } = c;
|
|
45604
|
+
return O.useEffect(() => (document.addEventListener(WR, u), () => document.removeEventListener(WR, u)), [u]), O.useEffect(() => {
|
|
45483
45605
|
if (c.trigger) {
|
|
45484
45606
|
let e = (e) => {
|
|
45485
45607
|
e.target?.contains(c.trigger) && u();
|
|
45486
45608
|
};
|
|
45487
45609
|
return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
|
|
45488
45610
|
}
|
|
45489
|
-
}, [c.trigger, u]), /* @__PURE__ */ (0, K.jsx)(
|
|
45611
|
+
}, [c.trigger, u]), /* @__PURE__ */ (0, K.jsx)(VL, {
|
|
45490
45612
|
asChild: !0,
|
|
45491
45613
|
disableOutsidePointerEvents: !1,
|
|
45492
45614
|
onEscapeKeyDown: a,
|
|
45493
45615
|
onPointerDownOutside: o,
|
|
45494
45616
|
onFocusOutside: (e) => e.preventDefault(),
|
|
45495
45617
|
onDismiss: u,
|
|
45496
|
-
children: /* @__PURE__ */ (0, K.jsxs)(
|
|
45618
|
+
children: /* @__PURE__ */ (0, K.jsxs)(SR, {
|
|
45497
45619
|
"data-state": c.stateAttribute,
|
|
45498
45620
|
...l,
|
|
45499
45621
|
...s,
|
|
@@ -45506,10 +45628,10 @@ var ZR = "TooltipContent", QR = O.forwardRef((e, t) => {
|
|
|
45506
45628
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
45507
45629
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
45508
45630
|
},
|
|
45509
|
-
children: [/* @__PURE__ */ (0, K.jsx)(
|
|
45631
|
+
children: [/* @__PURE__ */ (0, K.jsx)(lz, { children: r }), /* @__PURE__ */ (0, K.jsx)(sz, {
|
|
45510
45632
|
scope: n,
|
|
45511
45633
|
isInside: !0,
|
|
45512
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
45634
|
+
children: /* @__PURE__ */ (0, K.jsx)(RR, {
|
|
45513
45635
|
id: c.contentId,
|
|
45514
45636
|
role: "tooltip",
|
|
45515
45637
|
children: i || r
|
|
@@ -45518,17 +45640,17 @@ var ZR = "TooltipContent", QR = O.forwardRef((e, t) => {
|
|
|
45518
45640
|
})
|
|
45519
45641
|
});
|
|
45520
45642
|
});
|
|
45521
|
-
|
|
45522
|
-
var
|
|
45523
|
-
let { __scopeTooltip: n, ...r } = e, i =
|
|
45524
|
-
return
|
|
45643
|
+
az.displayName = iz;
|
|
45644
|
+
var dz = "TooltipArrow", fz = O.forwardRef((e, t) => {
|
|
45645
|
+
let { __scopeTooltip: n, ...r } = e, i = VR(n);
|
|
45646
|
+
return cz(dz, n).isInside ? null : /* @__PURE__ */ (0, K.jsx)(CR, {
|
|
45525
45647
|
...i,
|
|
45526
45648
|
...r,
|
|
45527
45649
|
ref: t
|
|
45528
45650
|
});
|
|
45529
45651
|
});
|
|
45530
|
-
|
|
45531
|
-
function
|
|
45652
|
+
fz.displayName = dz;
|
|
45653
|
+
function pz(e, t) {
|
|
45532
45654
|
let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
45533
45655
|
switch (Math.min(n, r, i, a)) {
|
|
45534
45656
|
case a: return "left";
|
|
@@ -45538,7 +45660,7 @@ function oz(e, t) {
|
|
|
45538
45660
|
default: throw Error("unreachable");
|
|
45539
45661
|
}
|
|
45540
45662
|
}
|
|
45541
|
-
function
|
|
45663
|
+
function mz(e, t, n = 5) {
|
|
45542
45664
|
let r = [];
|
|
45543
45665
|
switch (t) {
|
|
45544
45666
|
case "top":
|
|
@@ -45580,7 +45702,7 @@ function sz(e, t, n = 5) {
|
|
|
45580
45702
|
}
|
|
45581
45703
|
return r;
|
|
45582
45704
|
}
|
|
45583
|
-
function
|
|
45705
|
+
function hz(e) {
|
|
45584
45706
|
let { top: t, right: n, bottom: r, left: i } = e;
|
|
45585
45707
|
return [
|
|
45586
45708
|
{
|
|
@@ -45601,7 +45723,7 @@ function cz(e) {
|
|
|
45601
45723
|
}
|
|
45602
45724
|
];
|
|
45603
45725
|
}
|
|
45604
|
-
function
|
|
45726
|
+
function gz(e, t) {
|
|
45605
45727
|
let { x: n, y: r } = e, i = !1;
|
|
45606
45728
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
45607
45729
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -45609,11 +45731,11 @@ function lz(e, t) {
|
|
|
45609
45731
|
}
|
|
45610
45732
|
return i;
|
|
45611
45733
|
}
|
|
45612
|
-
function
|
|
45734
|
+
function _z(e) {
|
|
45613
45735
|
let t = e.slice();
|
|
45614
|
-
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)),
|
|
45736
|
+
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), vz(t);
|
|
45615
45737
|
}
|
|
45616
|
-
function
|
|
45738
|
+
function vz(e) {
|
|
45617
45739
|
if (e.length <= 1) return e.slice();
|
|
45618
45740
|
let t = [];
|
|
45619
45741
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -45638,40 +45760,40 @@ function dz(e) {
|
|
|
45638
45760
|
}
|
|
45639
45761
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
45640
45762
|
}
|
|
45641
|
-
var
|
|
45763
|
+
var yz = qR, bz = ZR, xz = $R, Sz = az, Cz = fz, wz = Gj("z-50 rounded-md", "text-deprecated-body-sm font-deprecated text-center", "data-[side=top]:animate-tooltip-in-top data-[side=bottom]:animate-tooltip-in-bottom", "data-[side=left]:animate-tooltip-in-left data-[side=right]:animate-tooltip-in-right", "data-[state=closed]:animate-tooltip-out", "whitespace-pre-wrap", "wrap-break-word"), Tz = "py-[4px] px-[8px]", Ez = "py-[8px] px-[12px]", Dz = "max-w-[188px]", Oz = "max-w-[240px]", kz = "max-w-[280px]", Az = {
|
|
45642
45764
|
primary: "bg-deprecatedSecondary-9 text-deprecatedNeutral-1",
|
|
45643
45765
|
secondary: "bg-deprecatedPrimary-1 text-deprecatedPrimary-9",
|
|
45644
45766
|
danger: "bg-deprecatedDanger-6 text-deprecatedNeutral-1"
|
|
45645
|
-
},
|
|
45767
|
+
}, jz = "w-[12px] h-[6px]", Mz = "w-[18px] h-[9px]", Nz = {
|
|
45646
45768
|
primary: "fill-deprecatedSecondary-9",
|
|
45647
45769
|
secondary: "fill-deprecatedPrimary-1",
|
|
45648
45770
|
danger: "fill-deprecatedDanger-6"
|
|
45649
|
-
},
|
|
45771
|
+
}, Pz = "M18 0L0 0L7.58579 7.58579C8.36683 8.36683 9.63317 8.36683 10.4142 7.58579L18 0Z", Fz = bz, Iz = yz, Lz = xz, Rz = Cz, zz = ({ className: e, sideOffset: t = 4, ref: n, ...r }) => /* @__PURE__ */ (0, K.jsx)(Sz, {
|
|
45650
45772
|
ref: n,
|
|
45651
45773
|
sideOffset: t,
|
|
45652
|
-
className: Gj(
|
|
45774
|
+
className: Gj(wz, e),
|
|
45653
45775
|
...r
|
|
45654
|
-
}),
|
|
45655
|
-
let c = n === "sm", l = n === "md", u = n === "lg", d = Gj(
|
|
45656
|
-
[
|
|
45657
|
-
[
|
|
45776
|
+
}), Bz = ({ children: e, variant: t = "primary", size: n = "sm", side: r = "top", align: i = "center", width: a, content: o, config: s }) => {
|
|
45777
|
+
let c = n === "sm", l = n === "md", u = n === "lg", d = Gj(Az[t], {
|
|
45778
|
+
[Tz]: c,
|
|
45779
|
+
[Ez]: l || u
|
|
45658
45780
|
}, {
|
|
45659
|
-
[
|
|
45660
|
-
[
|
|
45661
|
-
[
|
|
45662
|
-
}), f = a ? { maxWidth: `${a}px` } : void 0, p = Gj(
|
|
45663
|
-
[
|
|
45664
|
-
[
|
|
45781
|
+
[Dz]: c && !a,
|
|
45782
|
+
[Oz]: l && !a,
|
|
45783
|
+
[kz]: u && !a
|
|
45784
|
+
}), f = a ? { maxWidth: `${a}px` } : void 0, p = Gj(Nz[t], {
|
|
45785
|
+
[jz]: c,
|
|
45786
|
+
[Mz]: l || u
|
|
45665
45787
|
});
|
|
45666
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
45788
|
+
return /* @__PURE__ */ (0, K.jsx)(Iz, {
|
|
45667
45789
|
delayDuration: 0,
|
|
45668
45790
|
skipDelayDuration: 0,
|
|
45669
|
-
children: /* @__PURE__ */ (0, K.jsxs)(
|
|
45791
|
+
children: /* @__PURE__ */ (0, K.jsxs)(Fz, {
|
|
45670
45792
|
...s?.root,
|
|
45671
|
-
children: [/* @__PURE__ */ (0, K.jsx)(
|
|
45793
|
+
children: [/* @__PURE__ */ (0, K.jsx)(Lz, {
|
|
45672
45794
|
asChild: !0,
|
|
45673
45795
|
children: e
|
|
45674
|
-
}), /* @__PURE__ */ (0, K.jsxs)(
|
|
45796
|
+
}), /* @__PURE__ */ (0, K.jsxs)(zz, {
|
|
45675
45797
|
side: r,
|
|
45676
45798
|
align: i,
|
|
45677
45799
|
className: d,
|
|
@@ -45682,52 +45804,52 @@ var fz = BR, pz = WR, mz = KR, hz = QR, gz = az, _z = Gj("z-50 rounded-md", "tex
|
|
|
45682
45804
|
size: "sm",
|
|
45683
45805
|
className: "wrap-break-word whitespace-pre-wrap",
|
|
45684
45806
|
children: o
|
|
45685
|
-
}), /* @__PURE__ */ (0, K.jsx)(
|
|
45807
|
+
}), /* @__PURE__ */ (0, K.jsx)(Rz, {
|
|
45686
45808
|
...s?.arrow,
|
|
45687
45809
|
className: p,
|
|
45688
45810
|
asChild: !0,
|
|
45689
45811
|
children: /* @__PURE__ */ (0, K.jsx)("svg", {
|
|
45690
45812
|
viewBox: "0 0 18 9",
|
|
45691
|
-
children: /* @__PURE__ */ (0, K.jsx)("path", { d:
|
|
45813
|
+
children: /* @__PURE__ */ (0, K.jsx)("path", { d: Pz })
|
|
45692
45814
|
})
|
|
45693
45815
|
})]
|
|
45694
45816
|
})]
|
|
45695
45817
|
})
|
|
45696
45818
|
});
|
|
45697
|
-
},
|
|
45698
|
-
Gj("flex flex-col align-start shrink-0", "max-h-96 w-[244px] min-w-[244px]", "overflow-y-auto", "bg-white", "border border-neutral-3 rounded-[6px] border-[0.5px]!", "text-left text-neutral-7",
|
|
45699
|
-
var
|
|
45819
|
+
}, Vz = Gj("[--anchor-gap:--spacing(2)] [--anchor-padding:--spacing(3)] data-[anchor~=start]:[--anchor-offset:-4px] data-[anchor~=end]:[--anchor-offset:4px]"), Hz = Gj("outline-solid outline-1 outline-transparent focus:outline-hidden"), Uz = "pl-[38px] pr-[14px] py-[7px]";
|
|
45820
|
+
Gj("flex flex-col align-start shrink-0", "max-h-96 w-[244px] min-w-[244px]", "overflow-y-auto", "bg-white", "border border-neutral-3 rounded-[6px] border-[0.5px]!", "text-left text-neutral-7", Hz, Vz), Gj("flex w-full text-start", "data-focus:bg-primary-1", "hover:cursor-pointer", "relative", Uz), Gj(Hz, "w-full"), Gj(Uz, "font-medium! pt-[10px] pb-[9px]"), Gj(Uz, "flex flex-col");
|
|
45821
|
+
var Wz = /* @__PURE__ */ function(e) {
|
|
45700
45822
|
return e.Empty = "empty", e.Filling = "filling", e.Filled = "filled", e.TransitioningToFilled = "transitioningToFilled", e.Pending = "pending", e;
|
|
45701
|
-
}({}),
|
|
45823
|
+
}({}), Gz = "#000000", Kz = 1200, qz = .15, Jz = .3, Yz = (e, t, n = !1) => t ? 1 : e === Wz.Empty ? qz : e === Wz.Filled || e === Wz.Pending || e === Wz.TransitioningToFilled && n ? 1 : Jz, Xz = (e, t, n, r, i, a) => {
|
|
45702
45824
|
let o = 2 * Math.PI * r, s = Math.abs(a - i), c = Math.min(e + t, n), l = Math.min(Math.max(c / n * 100, 0), 100), u = l / 100;
|
|
45703
45825
|
return {
|
|
45704
45826
|
pendingAnimationOffset: o - s / 360 * o * u,
|
|
45705
45827
|
pendingStrokeLength: o,
|
|
45706
45828
|
totalProgressPercentage: l
|
|
45707
45829
|
};
|
|
45708
|
-
},
|
|
45830
|
+
}, Zz = (e, t, n, r) => {
|
|
45709
45831
|
let i = (r - 90) * Math.PI / 180;
|
|
45710
45832
|
return {
|
|
45711
45833
|
x: e + n * Math.cos(i),
|
|
45712
45834
|
y: t + n * Math.sin(i)
|
|
45713
45835
|
};
|
|
45714
|
-
},
|
|
45715
|
-
let a =
|
|
45836
|
+
}, Qz = (e, t, n, r, i) => {
|
|
45837
|
+
let a = Zz(e, t, n, r), o = Zz(e, t, n, i), s = 1 ^ i - r < 180;
|
|
45716
45838
|
return `M ${a.x} ${a.y} A ${n} ${n} 0 ${s} 1 ${o.x} ${o.y}`;
|
|
45717
|
-
},
|
|
45839
|
+
}, $z = (e, t) => {
|
|
45718
45840
|
if (e.startsWith("#")) {
|
|
45719
45841
|
let n = e.slice(1);
|
|
45720
45842
|
return `rgba(${parseInt(n.slice(0, 2), 16)}, ${parseInt(n.slice(2, 4), 16)}, ${parseInt(n.slice(4, 6), 16)}, ${t})`;
|
|
45721
45843
|
}
|
|
45722
45844
|
return e.includes("rgba") ? e.replace(/[\d.]+\)$/g, `${t})`) : e.includes("rgb") ? e.replace("rgb(", "rgba(").replace(")", `, ${t})`) : e;
|
|
45723
|
-
},
|
|
45845
|
+
}, eB = (e, t, n, r, i) => {
|
|
45724
45846
|
let a = 2 * Math.PI * n, o = Math.abs(i - r), s = Math.min(Math.max(e / t * 100, 0), 100), c = s / 100;
|
|
45725
45847
|
return {
|
|
45726
45848
|
animationOffset: a - o / 360 * a * c,
|
|
45727
45849
|
strokeLength: a,
|
|
45728
45850
|
progressPercentage: s
|
|
45729
45851
|
};
|
|
45730
|
-
},
|
|
45852
|
+
}, tB = (e, t, n) => {
|
|
45731
45853
|
let r = e > 0, i = e + t;
|
|
45732
45854
|
return r ? n ? {
|
|
45733
45855
|
omegaProgress: e + t,
|
|
@@ -45743,20 +45865,20 @@ var Lz = /* @__PURE__ */ function(e) {
|
|
|
45743
45865
|
omegaPendingProgress: i
|
|
45744
45866
|
};
|
|
45745
45867
|
};
|
|
45746
|
-
function
|
|
45868
|
+
function nB(e, t, n = {}) {
|
|
45747
45869
|
let { amount: r, currency: i } = e, { baseUnit: a } = i;
|
|
45748
45870
|
if (!e || typeof r != "number") throw Error("Invalid price object: amount must be a number");
|
|
45749
45871
|
if (!i || !i.code) throw Error("Invalid price object: currency code is required");
|
|
45750
45872
|
if (!t || typeof t != "string") throw Error("Invalid locale: must be a non-empty string");
|
|
45751
|
-
let o = a && a > 0 ? r / a : r, s =
|
|
45873
|
+
let o = a && a > 0 ? r / a : r, s = sB(t, i.code, n), c = s.format(o), l = s.formatToParts(o);
|
|
45752
45874
|
return {
|
|
45753
45875
|
formatted: c,
|
|
45754
45876
|
parts: l,
|
|
45755
45877
|
numericValue: o,
|
|
45756
|
-
...
|
|
45878
|
+
...rB(l)
|
|
45757
45879
|
};
|
|
45758
45880
|
}
|
|
45759
|
-
function
|
|
45881
|
+
function rB(e) {
|
|
45760
45882
|
let t = "", n = "", r, i, a, o = !1, s = !1, c;
|
|
45761
45883
|
for (let l = 0; l < e.length; l++) {
|
|
45762
45884
|
let u = e[l];
|
|
@@ -45792,21 +45914,21 @@ function Xz(e) {
|
|
|
45792
45914
|
groupSeparator: a
|
|
45793
45915
|
};
|
|
45794
45916
|
}
|
|
45795
|
-
function
|
|
45796
|
-
return
|
|
45917
|
+
function iB(e, t, n, r = {}) {
|
|
45918
|
+
return sB(t, e.currency.code, r).format(n);
|
|
45797
45919
|
}
|
|
45798
|
-
function
|
|
45920
|
+
function aB(e, t, n = {}) {
|
|
45799
45921
|
try {
|
|
45800
|
-
let r =
|
|
45922
|
+
let r = nB(e, t, n);
|
|
45801
45923
|
return !!(r.fractionPart && r.fractionPart !== "00" && r.fractionPart !== "0" && parseInt(r.fractionPart, 10) > 0);
|
|
45802
45924
|
} catch (e) {
|
|
45803
45925
|
return console.warn(`Failed to check decimal significance for price formatting. Defaulting to no decimals. Error: ${e}`), !1;
|
|
45804
45926
|
}
|
|
45805
45927
|
}
|
|
45806
|
-
var
|
|
45807
|
-
function
|
|
45928
|
+
var oB = /* @__PURE__ */ new Map();
|
|
45929
|
+
function sB(e, t, n = {}) {
|
|
45808
45930
|
let r = `${e}_${t}_${JSON.stringify(n)}`;
|
|
45809
|
-
if (
|
|
45931
|
+
if (!oB.has(r)) try {
|
|
45810
45932
|
let i = new Intl.NumberFormat(e, {
|
|
45811
45933
|
style: "currency",
|
|
45812
45934
|
currency: t,
|
|
@@ -45815,7 +45937,7 @@ function eB(e, t, n = {}) {
|
|
|
45815
45937
|
maximumFractionDigits: 2,
|
|
45816
45938
|
...n
|
|
45817
45939
|
});
|
|
45818
|
-
|
|
45940
|
+
oB.set(r, i);
|
|
45819
45941
|
} catch (i) {
|
|
45820
45942
|
console.warn(`Invalid locale/currency combination "${e}/${t}". Falling back to "en-US". Please ensure that both "locale" and "currency" are valid ISO codes. Refer to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat for valid combinations.`, i);
|
|
45821
45943
|
let a = new Intl.NumberFormat("en-US", {
|
|
@@ -45826,11 +45948,11 @@ function eB(e, t, n = {}) {
|
|
|
45826
45948
|
maximumFractionDigits: 2,
|
|
45827
45949
|
...n
|
|
45828
45950
|
});
|
|
45829
|
-
|
|
45951
|
+
oB.set(r, a);
|
|
45830
45952
|
}
|
|
45831
|
-
return
|
|
45953
|
+
return oB.get(r);
|
|
45832
45954
|
}
|
|
45833
|
-
var
|
|
45955
|
+
var cB = "text-[13px]", lB = {
|
|
45834
45956
|
MULTILINE_MIN_LENGTH: 5,
|
|
45835
45957
|
MAX_SINGLE_LINE_LENGTH: 7,
|
|
45836
45958
|
ROUNDING_MIN_LENGTH: 5,
|
|
@@ -45841,7 +45963,7 @@ var tB = "text-[13px]", nB = {
|
|
|
45841
45963
|
CURRENCY_CODE_MAX_LENGTH: 4,
|
|
45842
45964
|
LARGE_NUMBER_THRESHOLD: 1e3,
|
|
45843
45965
|
DECIMAL_PRECISION: 1
|
|
45844
|
-
},
|
|
45966
|
+
}, uB = [
|
|
45845
45967
|
{
|
|
45846
45968
|
threshold: 19,
|
|
45847
45969
|
suffix: "Q",
|
|
@@ -45872,15 +45994,15 @@ var tB = "text-[13px]", nB = {
|
|
|
45872
45994
|
suffix: "K",
|
|
45873
45995
|
divisor: 3
|
|
45874
45996
|
}
|
|
45875
|
-
],
|
|
45997
|
+
], dB = {
|
|
45876
45998
|
QUADRILLION: 0x38d7ea4c68000,
|
|
45877
45999
|
TRILLION: 0xe8d4a51000,
|
|
45878
46000
|
BILLION: 1e9,
|
|
45879
46001
|
MILLION: 1e6,
|
|
45880
46002
|
THOUSAND: 1e3
|
|
45881
|
-
},
|
|
46003
|
+
}, fB = .01, pB = 1e-5, mB = (e, t) => `${1 * parseFloat(e.toFixed(t))}`, hB = (e, t = 1) => {
|
|
45882
46004
|
let n = e.length;
|
|
45883
|
-
for (let r of
|
|
46005
|
+
for (let r of uB) if (n >= r.threshold) {
|
|
45884
46006
|
let i = e.substring(0, n - r.divisor), a = e.substring(n - r.divisor), o = a.substring(0, t).padEnd(t, "0");
|
|
45885
46007
|
if (a.length > t && parseInt(a[t] || "0") >= 5) {
|
|
45886
46008
|
let e = parseInt(o) + 1;
|
|
@@ -45891,16 +46013,16 @@ var tB = "text-[13px]", nB = {
|
|
|
45891
46013
|
return `${parseFloat(s)}${r.suffix}`;
|
|
45892
46014
|
}
|
|
45893
46015
|
return e;
|
|
45894
|
-
},
|
|
46016
|
+
}, gB = (e, t = 1) => {
|
|
45895
46017
|
let n = e.toString();
|
|
45896
|
-
if (n.length > 15 && /^\d+$/.test(n)) return
|
|
46018
|
+
if (n.length > 15 && /^\d+$/.test(n)) return hB(n, t);
|
|
45897
46019
|
let r = typeof e == "string" ? parseFloat(e) : e;
|
|
45898
46020
|
if (isNaN(r)) return console.warn(`formatLargeNumber received NaN value: ${e}. Please ensure the input is a valid number.`), "0";
|
|
45899
|
-
let i = Math.abs(r), a = (e, n) =>
|
|
45900
|
-
return i >=
|
|
46021
|
+
let i = Math.abs(r), a = (e, n) => mB(r / e, t) + n;
|
|
46022
|
+
return i >= dB.QUADRILLION ? a(dB.QUADRILLION, "Q") : i >= dB.TRILLION ? a(dB.TRILLION, "T") : i >= dB.BILLION ? a(dB.BILLION, "B") : i >= dB.MILLION ? a(dB.MILLION, "M") : i >= dB.THOUSAND ? a(dB.THOUSAND, "K") : r.toString();
|
|
45901
46023
|
};
|
|
45902
|
-
function
|
|
45903
|
-
let { formatted: t, currencySymbol: n, isPrefix: r, hasSpace: i, spaceChar: a, numericValue: o } = e, s =
|
|
46024
|
+
function _B(e) {
|
|
46025
|
+
let { formatted: t, currencySymbol: n, isPrefix: r, hasSpace: i, spaceChar: a, numericValue: o } = e, s = vB(t, n, i, a);
|
|
45904
46026
|
return !n || o === 0 ? {
|
|
45905
46027
|
type: "single-line",
|
|
45906
46028
|
isValid: !1,
|
|
@@ -45915,11 +46037,11 @@ function uB(e) {
|
|
|
45915
46037
|
originalFormatted: t
|
|
45916
46038
|
};
|
|
45917
46039
|
}
|
|
45918
|
-
function
|
|
46040
|
+
function vB(e, t, n, r) {
|
|
45919
46041
|
let i = n ? r || " " : "";
|
|
45920
46042
|
return e.replace(t + i, "").replace(i + t, "").trim();
|
|
45921
46043
|
}
|
|
45922
|
-
function
|
|
46044
|
+
function yB(e) {
|
|
45923
46045
|
return !e.isValid || !e.prefix || !e.number ? {
|
|
45924
46046
|
line1: e.originalFormatted || "",
|
|
45925
46047
|
line2: ""
|
|
@@ -45928,45 +46050,45 @@ function fB(e) {
|
|
|
45928
46050
|
line2: e.number
|
|
45929
46051
|
};
|
|
45930
46052
|
}
|
|
45931
|
-
function
|
|
45932
|
-
return
|
|
46053
|
+
function bB(e) {
|
|
46054
|
+
return yB(_B(e));
|
|
45933
46055
|
}
|
|
45934
|
-
function
|
|
45935
|
-
let t =
|
|
45936
|
-
if (!t.isValid || n <
|
|
46056
|
+
function xB(e) {
|
|
46057
|
+
let t = _B(e), n = e.formatted.length;
|
|
46058
|
+
if (!t.isValid || n < lB.MULTILINE_MIN_LENGTH) return !1;
|
|
45937
46059
|
switch (t.type) {
|
|
45938
46060
|
case "complex-currency": return !0;
|
|
45939
|
-
case "simple-currency": return n >
|
|
46061
|
+
case "simple-currency": return n > lB.MAX_SINGLE_LINE_LENGTH;
|
|
45940
46062
|
default: return !1;
|
|
45941
46063
|
}
|
|
45942
46064
|
}
|
|
45943
|
-
var
|
|
46065
|
+
var SB = (e, t) => {
|
|
45944
46066
|
let { isShowingFullContent: n, isMultiline: r, hasClickBehavior: i } = t;
|
|
45945
|
-
if (!e) return
|
|
46067
|
+
if (!e) return cB;
|
|
45946
46068
|
if (r) return n ? "text-[10px]" : "text-[11px]";
|
|
45947
46069
|
let a = e.length;
|
|
45948
|
-
return n ? i ? a <= 4 || a <= 6 || a <= 8 ? "text-[10px]" : a <= 10 ? "text-[8px]" : "text-[7px]" : a <= 6 ? "text-xs" : a <= 8 ? "text-[10px]" : a <= 10 ? "text-[8px]" : "text-[7px]" : a <= 4 ?
|
|
45949
|
-
},
|
|
46070
|
+
return n ? i ? a <= 4 || a <= 6 || a <= 8 ? "text-[10px]" : a <= 10 ? "text-[8px]" : "text-[7px]" : a <= 6 ? "text-xs" : a <= 8 ? "text-[10px]" : a <= 10 ? "text-[8px]" : "text-[7px]" : a <= 4 ? cB : a <= 6 ? "text-xs" : a <= 8 ? "text-[11px]" : a <= 10 ? "text-[10px]" : a <= 12 ? "text-[9px]" : "text-[8px]";
|
|
46071
|
+
}, CB = (e) => {
|
|
45950
46072
|
let { displayContent: t, fullContent: n, isShowingFullContent: r, isMultiline: i, hasClickBehavior: a } = e;
|
|
45951
|
-
return
|
|
46073
|
+
return SB(r ? n : t, {
|
|
45952
46074
|
isShowingFullContent: r,
|
|
45953
46075
|
isMultiline: i,
|
|
45954
46076
|
hasClickBehavior: a
|
|
45955
46077
|
});
|
|
45956
46078
|
};
|
|
45957
|
-
function
|
|
46079
|
+
function wB(e, t, n, r, i, a, o) {
|
|
45958
46080
|
return o(a(i(r(n(t(e))))));
|
|
45959
46081
|
}
|
|
45960
|
-
function
|
|
46082
|
+
function TB(e, t, n = {}) {
|
|
45961
46083
|
let { formatOptions: r = {} } = n;
|
|
45962
|
-
return
|
|
46084
|
+
return wB({
|
|
45963
46085
|
price: e,
|
|
45964
46086
|
locale: t,
|
|
45965
46087
|
formatOptions: r
|
|
45966
|
-
},
|
|
46088
|
+
}, EB, DB, OB, kB, AB, jB);
|
|
45967
46089
|
}
|
|
45968
|
-
function
|
|
45969
|
-
let { price: t, locale: n, formatOptions: r } = e, i =
|
|
46090
|
+
function EB(e) {
|
|
46091
|
+
let { price: t, locale: n, formatOptions: r } = e, i = nB(t, n, r), a = aB(t, n, r);
|
|
45970
46092
|
return {
|
|
45971
46093
|
...e,
|
|
45972
46094
|
currencyInfo: i,
|
|
@@ -45976,13 +46098,13 @@ function yB(e) {
|
|
|
45976
46098
|
hasDecimals: a
|
|
45977
46099
|
};
|
|
45978
46100
|
}
|
|
45979
|
-
function
|
|
46101
|
+
function DB(e) {
|
|
45980
46102
|
let { currencyInfo: t } = e;
|
|
45981
|
-
if (t.numericValue <
|
|
46103
|
+
if (t.numericValue < lB.LARGE_NUMBER_THRESHOLD) return {
|
|
45982
46104
|
...e,
|
|
45983
46105
|
wasAbbreviated: !1
|
|
45984
46106
|
};
|
|
45985
|
-
let n =
|
|
46107
|
+
let n = gB(t.numericValue), r = t.hasSpace ? t.spaceChar || " " : "", i = t.isPrefix ? `${t.currencySymbol}${r}${n}` : `${n}${r}${t.currencySymbol}`, a = {
|
|
45986
46108
|
...t,
|
|
45987
46109
|
formatted: i
|
|
45988
46110
|
};
|
|
@@ -45993,13 +46115,13 @@ function bB(e) {
|
|
|
45993
46115
|
wasAbbreviated: !0
|
|
45994
46116
|
};
|
|
45995
46117
|
}
|
|
45996
|
-
function
|
|
46118
|
+
function OB(e) {
|
|
45997
46119
|
let { wasAbbreviated: t, currencyInfo: n, originalFormatted: r, price: i, locale: a, formatOptions: o } = e;
|
|
45998
|
-
if (t || !
|
|
46120
|
+
if (t || !MB(r, n.numericValue)) return {
|
|
45999
46121
|
...e,
|
|
46000
46122
|
wasRounded: !1
|
|
46001
46123
|
};
|
|
46002
|
-
let s = Math.round(n.numericValue), c =
|
|
46124
|
+
let s = Math.round(n.numericValue), c = iB(i, a, s, o), l = {
|
|
46003
46125
|
...n,
|
|
46004
46126
|
formatted: c,
|
|
46005
46127
|
numericValue: s
|
|
@@ -46011,8 +46133,8 @@ function xB(e) {
|
|
|
46011
46133
|
wasRounded: !0
|
|
46012
46134
|
};
|
|
46013
46135
|
}
|
|
46014
|
-
function
|
|
46015
|
-
let { currencyInfo: t, originalCurrencyInfo: n } = e, r =
|
|
46136
|
+
function kB(e) {
|
|
46137
|
+
let { currencyInfo: t, originalCurrencyInfo: n } = e, r = xB(t), i = bB(t), a = bB(n);
|
|
46016
46138
|
return {
|
|
46017
46139
|
...e,
|
|
46018
46140
|
shouldUseMultiline: r,
|
|
@@ -46020,14 +46142,14 @@ function SB(e) {
|
|
|
46020
46142
|
fullContentMultiline: a
|
|
46021
46143
|
};
|
|
46022
46144
|
}
|
|
46023
|
-
function
|
|
46024
|
-
let { displayContent: t, wasAbbreviated: n, wasRounded: r, originalFormatted: i, hasDecimals: a, currencyInfo: o } = e, s =
|
|
46145
|
+
function AB(e) {
|
|
46146
|
+
let { displayContent: t, wasAbbreviated: n, wasRounded: r, originalFormatted: i, hasDecimals: a, currencyInfo: o } = e, s = PB(t, i, n, r, a, o.numericValue, o);
|
|
46025
46147
|
return {
|
|
46026
46148
|
...e,
|
|
46027
46149
|
hasClickBehavior: s
|
|
46028
46150
|
};
|
|
46029
46151
|
}
|
|
46030
|
-
function
|
|
46152
|
+
function jB(e) {
|
|
46031
46153
|
let { displayContent: t, originalFormatted: n, shouldUseMultiline: r, hasClickBehavior: i, multilineContent: a, fullContentMultiline: o, wasAbbreviated: s, wasRounded: c, hasDecimals: l, currencyInfo: u } = e;
|
|
46032
46154
|
return {
|
|
46033
46155
|
displayContent: t,
|
|
@@ -46036,7 +46158,7 @@ function wB(e) {
|
|
|
46036
46158
|
hasClickBehavior: i,
|
|
46037
46159
|
multilineContent: a,
|
|
46038
46160
|
fullContentMultiline: o,
|
|
46039
|
-
fontSize:
|
|
46161
|
+
fontSize: CB({
|
|
46040
46162
|
displayContent: t,
|
|
46041
46163
|
fullContent: n,
|
|
46042
46164
|
isShowingFullContent: !1,
|
|
@@ -46051,18 +46173,18 @@ function wB(e) {
|
|
|
46051
46173
|
currencyInfo: u
|
|
46052
46174
|
};
|
|
46053
46175
|
}
|
|
46054
|
-
function
|
|
46176
|
+
function MB(e, t) {
|
|
46055
46177
|
let n = e.length;
|
|
46056
|
-
return n >
|
|
46178
|
+
return n > lB.ROUNDING_MIN_LENGTH && n <= lB.ROUNDING_MAX_LENGTH && t >= lB.ROUNDING_MIN_VALUE && t % 1 != 0 && !NB(t);
|
|
46057
46179
|
}
|
|
46058
|
-
function
|
|
46180
|
+
function NB(e) {
|
|
46059
46181
|
let t = e - Math.floor(e);
|
|
46060
|
-
return Math.abs(t - .5) <
|
|
46182
|
+
return Math.abs(t - .5) < pB;
|
|
46061
46183
|
}
|
|
46062
|
-
function
|
|
46063
|
-
return e === t ? !1 : r || i ? !0 : n ?
|
|
46184
|
+
function PB(e, t, n, r, i, a, o) {
|
|
46185
|
+
return e === t ? !1 : r || i ? !0 : n ? IB(e, a, o) : !1;
|
|
46064
46186
|
}
|
|
46065
|
-
function
|
|
46187
|
+
function FB(e, t) {
|
|
46066
46188
|
if (!e.trim()) return NaN;
|
|
46067
46189
|
let n = e.trim();
|
|
46068
46190
|
if (t.groupSeparator) {
|
|
@@ -46075,15 +46197,15 @@ function OB(e, t) {
|
|
|
46075
46197
|
}
|
|
46076
46198
|
return parseFloat(n);
|
|
46077
46199
|
}
|
|
46078
|
-
function
|
|
46200
|
+
function IB(e, t, n) {
|
|
46079
46201
|
let r = e.match(/([\d.,\s]+)([KMBTQ])/i);
|
|
46080
46202
|
if (!r) return !1;
|
|
46081
|
-
let [, i, a] = r, o =
|
|
46203
|
+
let [, i, a] = r, o = FB(i.trim(), n);
|
|
46082
46204
|
if (isNaN(o)) return !1;
|
|
46083
|
-
let s = o *
|
|
46084
|
-
return Math.abs(t - s) / t >
|
|
46205
|
+
let s = o * LB(a);
|
|
46206
|
+
return Math.abs(t - s) / t > fB;
|
|
46085
46207
|
}
|
|
46086
|
-
function
|
|
46208
|
+
function LB(e) {
|
|
46087
46209
|
switch (e.toUpperCase()) {
|
|
46088
46210
|
case "K": return 1e3;
|
|
46089
46211
|
case "M": return 1e6;
|
|
@@ -46093,7 +46215,7 @@ function AB(e) {
|
|
|
46093
46215
|
default: return 1;
|
|
46094
46216
|
}
|
|
46095
46217
|
}
|
|
46096
|
-
var
|
|
46218
|
+
var RB = (e) => {
|
|
46097
46219
|
let [t, n] = (0, O.useState)(!1), { displayContent: r, fullContent: i, shouldUseMultiline: a, hasClickBehavior: o, multilineContent: s, fullContentMultiline: c, fontSize: l } = e;
|
|
46098
46220
|
return {
|
|
46099
46221
|
displayContent: (0, O.useMemo)(() => t ? i : r, [
|
|
@@ -46106,7 +46228,7 @@ var jB = (e) => {
|
|
|
46106
46228
|
c,
|
|
46107
46229
|
t
|
|
46108
46230
|
]),
|
|
46109
|
-
fontSize: (0, O.useMemo)(() => t ?
|
|
46231
|
+
fontSize: (0, O.useMemo)(() => t ? CB({
|
|
46110
46232
|
displayContent: i,
|
|
46111
46233
|
fullContent: i,
|
|
46112
46234
|
isShowingFullContent: !0,
|
|
@@ -46129,12 +46251,12 @@ var jB = (e) => {
|
|
|
46129
46251
|
o && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n((e) => !e));
|
|
46130
46252
|
}, [o])
|
|
46131
46253
|
};
|
|
46132
|
-
},
|
|
46133
|
-
let { omegaProgress: y, omegaPendingProgress: b } = (0, O.useMemo)(() =>
|
|
46254
|
+
}, zB = ({ limit: e = 100, progressColor: t = Gz, strokeWidth: n = 6, animationDuration: r = Kz, tabTotal: i, offeringPrice: a = 0, currency: o, locale: s, "aria-label": c = "Progress", isResetting: l = !1, state: u = Wz.Filling, className: d, autoAnimate: f = !0, autoAnimatePending: p = !0, autoAnimatePrice: m = !0, onAnimationComplete: h, onResetComplete: g, offeringHasBeenConfirmed: _ = !1, ...v }) => {
|
|
46255
|
+
let { omegaProgress: y, omegaPendingProgress: b } = (0, O.useMemo)(() => tB(i, a, _), [
|
|
46134
46256
|
_,
|
|
46135
46257
|
a,
|
|
46136
46258
|
i
|
|
46137
|
-
]), x = (0, O.useMemo)(() => (i ?? 0) + a, [i, a]), [S, C] = (0, O.useState)(f ? 0 : y), [w, T] = (0, O.useState)(p ? 0 : b), [E, D] = (0, O.useState)(() => m ? f ? 0 : p ? i : 0 : x), [k, A] = (0, O.useState)(!1), j = (0, O.useRef)(void 0), M = (58 - n) / 2, { animationOffset: N, strokeLength: P } =
|
|
46259
|
+
]), x = (0, O.useMemo)(() => (i ?? 0) + a, [i, a]), [S, C] = (0, O.useState)(f ? 0 : y), [w, T] = (0, O.useState)(p ? 0 : b), [E, D] = (0, O.useState)(() => m ? f ? 0 : p ? i : 0 : x), [k, A] = (0, O.useState)(!1), j = (0, O.useRef)(void 0), M = (58 - n) / 2, { animationOffset: N, strokeLength: P } = eB(S, e, M, 210, 510), F = b > 0, I = (0, O.useMemo)(() => F ? Xz(S, w, e, M, 210, 510) : null, [
|
|
46138
46260
|
w,
|
|
46139
46261
|
S,
|
|
46140
46262
|
F,
|
|
@@ -46172,7 +46294,7 @@ var jB = (e) => {
|
|
|
46172
46294
|
g,
|
|
46173
46295
|
x
|
|
46174
46296
|
]), (0, O.useEffect)(() => {
|
|
46175
|
-
if (u ===
|
|
46297
|
+
if (u === Wz.TransitioningToFilled) {
|
|
46176
46298
|
A(!1);
|
|
46177
46299
|
let e = setTimeout(() => {
|
|
46178
46300
|
A(!0);
|
|
@@ -46182,7 +46304,7 @@ var jB = (e) => {
|
|
|
46182
46304
|
}, [u]), (0, O.useEffect)(() => () => {
|
|
46183
46305
|
j.current && cancelAnimationFrame(j.current);
|
|
46184
46306
|
}, []);
|
|
46185
|
-
let ee = S >= e, te =
|
|
46307
|
+
let ee = S >= e, te = $z(t, qz), ne = Yz(u, ee, k), re = ne === 1 ? t : $z(t, ne), L = $z(t, Jz), { displayContent: ie, multilineContent: ae, fontSize: oe, shouldUseMultiline: se, hasClickBehavior: ce, handleClick: le, handleKeyDown: ue } = RB(TB((0, O.useMemo)(() => ({
|
|
46186
46308
|
currency: o,
|
|
46187
46309
|
amount: Math.max(0, E)
|
|
46188
46310
|
}), [o, E]), s));
|
|
@@ -46208,14 +46330,14 @@ var jB = (e) => {
|
|
|
46208
46330
|
"aria-hidden": "true",
|
|
46209
46331
|
children: [
|
|
46210
46332
|
/* @__PURE__ */ (0, K.jsx)("path", {
|
|
46211
|
-
d:
|
|
46333
|
+
d: Qz(58 / 2, 58 / 2, M, 210, 510),
|
|
46212
46334
|
stroke: te,
|
|
46213
46335
|
strokeWidth: n,
|
|
46214
46336
|
fill: "transparent",
|
|
46215
46337
|
strokeLinecap: "round"
|
|
46216
46338
|
}),
|
|
46217
46339
|
F && I && /* @__PURE__ */ (0, K.jsx)("path", {
|
|
46218
|
-
d:
|
|
46340
|
+
d: Qz(58 / 2, 58 / 2, M, 210, 510),
|
|
46219
46341
|
stroke: L,
|
|
46220
46342
|
strokeWidth: n,
|
|
46221
46343
|
fill: "transparent",
|
|
@@ -46226,7 +46348,7 @@ var jB = (e) => {
|
|
|
46226
46348
|
style: { transition: f ? "none" : `stroke ${r}ms ease-in-out` }
|
|
46227
46349
|
}),
|
|
46228
46350
|
/* @__PURE__ */ (0, K.jsx)("path", {
|
|
46229
|
-
d:
|
|
46351
|
+
d: Qz(58 / 2, 58 / 2, M, 210, 510),
|
|
46230
46352
|
stroke: re,
|
|
46231
46353
|
strokeWidth: n,
|
|
46232
46354
|
fill: "transparent",
|
|
@@ -46267,14 +46389,14 @@ var jB = (e) => {
|
|
|
46267
46389
|
})
|
|
46268
46390
|
})]
|
|
46269
46391
|
});
|
|
46270
|
-
},
|
|
46392
|
+
}, BB = (e) => /* @__PURE__ */ (0, K.jsxs)("svg", {
|
|
46271
46393
|
role: "img",
|
|
46272
46394
|
width: "26",
|
|
46273
46395
|
height: "24",
|
|
46274
46396
|
viewBox: "0 0 26 24",
|
|
46275
46397
|
...e,
|
|
46276
46398
|
children: [/* @__PURE__ */ (0, K.jsx)("title", { children: "Supertab logo" }), /* @__PURE__ */ (0, K.jsx)("path", { d: "M15.8049 24C15.1846 24 14.5912 23.6055 14.4024 22.9742C14.1597 22.2114 14.5912 21.396 15.3734 21.1593C16.9107 20.6858 18.3401 19.8442 19.4459 18.6868C20.6866 17.4243 21.5227 15.8461 21.8733 14.1364C22.2239 12.4267 22.0891 10.6644 21.4688 9.00736C20.8484 7.37658 19.7696 5.92993 18.3671 4.87781C16.9646 3.7994 15.2655 3.14182 13.4854 2.9577C11.7053 2.77358 9.92525 3.08921 8.307 3.852C6.68875 4.61478 5.34021 5.79841 4.39624 7.29767C3.45226 8.77063 2.93981 10.4803 2.93981 12.2426C2.93981 16.0039 5.2593 19.4496 8.71156 20.8174L9.46675 21.0804C9.52069 21.1067 9.6016 21.133 9.65554 21.133C10.4377 21.3697 10.8692 22.1851 10.6265 22.9479C10.3838 23.7107 9.54766 24.1315 8.76551 23.8948C8.6846 23.8685 8.60368 23.8422 8.52277 23.8159L8.22609 23.7107C8.19912 23.7107 8.19912 23.7107 8.17215 23.6844L7.6597 23.4739H7.63273C3.07467 21.659 0 17.135 0 12.2163C0 9.92796 0.647299 7.69222 1.88796 5.74581C3.12861 3.79939 4.90868 2.24752 7.01241 1.24801C9.11613 0.248504 11.4626 -0.172342 13.809 0.0643838C16.1555 0.30111 18.3671 1.1691 20.2011 2.56316C22.0621 3.95721 23.4646 5.85102 24.2737 7.98155C25.0828 10.1384 25.2716 12.453 24.7862 14.6888C24.3007 16.9245 23.1949 19.0025 21.5766 20.6595C20.1202 22.1588 18.2592 23.2898 16.2364 23.8948C16.1016 23.9737 15.9667 24 15.8049 24Z" })]
|
|
46277
|
-
}),
|
|
46399
|
+
}), VB = ({ className: e, height: t = "27", dataTestId: n = "full-supertab-logo", ...r }) => /* @__PURE__ */ (0, K.jsxs)("svg", {
|
|
46278
46400
|
role: "img",
|
|
46279
46401
|
height: t,
|
|
46280
46402
|
viewBox: "0 0 147 27",
|
|
@@ -46293,9 +46415,9 @@ var jB = (e) => {
|
|
|
46293
46415
|
/* @__PURE__ */ (0, K.jsx)("path", { d: "M87.7353 9.8447C87.166 9.27438 86.5225 8.82805 85.8047 8.50569C85.0869 8.18334 84.3196 8.00977 83.5028 8.00977C82.4385 8.00977 81.4485 8.28252 80.508 8.85284C79.5674 9.39836 78.8002 10.1919 78.2061 11.2333C77.6369 12.25 77.3398 13.4898 77.3398 14.9528C77.3398 16.2422 77.6121 17.3828 78.1566 18.3995C78.7259 19.3913 79.4932 20.1848 80.508 20.7551C81.5228 21.3254 82.7108 21.5982 84.0721 21.5982C84.9384 21.5982 85.7552 21.4246 86.5225 21.1023C87.3145 20.7799 87.9333 20.3832 88.3788 19.9616C88.7501 19.6641 88.9233 19.3417 88.9233 18.9698C88.9233 18.697 88.8243 18.4491 88.6263 18.2507C88.4283 18.0275 88.1808 17.9283 87.8838 17.9283C87.6363 17.9283 87.3888 18.0027 87.1412 18.1515C86.9432 18.3251 86.7205 18.4987 86.4482 18.6722C86.176 18.8458 85.8542 19.0194 85.4582 19.1434C85.0622 19.2673 84.5671 19.3169 83.9484 19.3169C83.1811 19.3169 82.4633 19.1434 81.8198 18.7714C81.1762 18.3995 80.6565 17.8539 80.2852 17.1844C80.0129 16.6885 79.8397 16.1182 79.7654 15.4983H88.354C88.6758 15.4983 88.9728 15.3991 89.2203 15.1759C89.4678 14.9528 89.5916 14.68 89.6163 14.3577C89.5916 13.4402 89.4183 12.6219 89.0966 11.8532C88.7748 11.0597 88.3293 10.3902 87.7353 9.8447ZM80.8545 11.3077C81.2258 10.9605 81.6218 10.7126 82.0673 10.5638C82.5376 10.3902 83.0078 10.3158 83.5028 10.3158C84.0721 10.3158 84.5919 10.4398 85.1117 10.6878C85.6314 10.9109 86.0522 11.2581 86.3987 11.7044C86.7452 12.126 86.9432 12.6467 86.968 13.217V13.3906H79.8397C79.8892 13.1426 79.9387 12.8947 80.013 12.6963C80.2357 12.1012 80.508 11.6548 80.8545 11.3077Z" }),
|
|
46294
46416
|
/* @__PURE__ */ (0, K.jsx)("path", { d: "M100.21 8.35691C99.8882 8.13375 99.5169 8.00977 99.0961 8.00977C98.5764 8.00977 98.0813 8.08415 97.6111 8.25773C97.1408 8.4313 96.72 8.65447 96.3488 8.95203C95.9775 9.24958 95.631 9.59674 95.3587 9.99348C95.235 10.1919 95.1112 10.3902 95.0122 10.6134V9.57194C95.0122 9.19999 94.8885 8.90244 94.6409 8.67927C94.4182 8.43131 94.1212 8.30733 93.7747 8.30733C93.4034 8.30733 93.1064 8.43131 92.8836 8.67927C92.6609 8.90244 92.5371 9.19999 92.5371 9.57194V20.0856C92.5371 20.4576 92.6609 20.7551 92.8836 21.0031C93.1064 21.2263 93.4034 21.3502 93.7747 21.3502C94.1212 21.3502 94.4182 21.2263 94.6409 21.0031C94.8885 20.7551 95.0122 20.4576 95.0122 20.0856V14.1345C95.0122 13.5394 95.0865 12.9938 95.2597 12.5227C95.433 12.0516 95.6805 11.63 95.9775 11.2829C96.2745 10.9109 96.5963 10.6382 96.9675 10.4646C97.3388 10.291 97.6853 10.1918 98.0318 10.1918C98.3536 10.1918 98.6259 10.2414 98.8486 10.3654C99.0714 10.4646 99.3189 10.5142 99.5664 10.5142C99.8387 10.5142 100.111 10.415 100.334 10.2166C100.556 9.99348 100.68 9.67112 100.68 9.22479C100.68 8.87764 100.532 8.58008 100.21 8.35691Z" })
|
|
46295
46417
|
]
|
|
46296
|
-
}),
|
|
46418
|
+
}), HB = ({ onlySymbol: e = !1, ...t }) => (0, K.jsx)(e ? BB : VB, { ...t });
|
|
46297
46419
|
K.Fragment, K.Fragment;
|
|
46298
|
-
var
|
|
46420
|
+
var UB = "74px", WB = "http://localhost".replace(/\/+$/, ""), GB = new class {
|
|
46299
46421
|
constructor(e = {}) {
|
|
46300
46422
|
this.configuration = e;
|
|
46301
46423
|
}
|
|
@@ -46303,7 +46425,7 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46303
46425
|
this.configuration = e;
|
|
46304
46426
|
}
|
|
46305
46427
|
get basePath() {
|
|
46306
|
-
return this.configuration.basePath == null ?
|
|
46428
|
+
return this.configuration.basePath == null ? WB : this.configuration.basePath;
|
|
46307
46429
|
}
|
|
46308
46430
|
get fetchApi() {
|
|
46309
46431
|
return this.configuration.fetchApi;
|
|
@@ -46312,7 +46434,7 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46312
46434
|
return this.configuration.middleware || [];
|
|
46313
46435
|
}
|
|
46314
46436
|
get queryParamsStringify() {
|
|
46315
|
-
return this.configuration.queryParamsStringify ||
|
|
46437
|
+
return this.configuration.queryParamsStringify || QB;
|
|
46316
46438
|
}
|
|
46317
46439
|
get username() {
|
|
46318
46440
|
return this.configuration.username;
|
|
@@ -46334,8 +46456,8 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46334
46456
|
get credentials() {
|
|
46335
46457
|
return this.configuration.credentials;
|
|
46336
46458
|
}
|
|
46337
|
-
}(),
|
|
46338
|
-
constructor(e =
|
|
46459
|
+
}(), KB = class {
|
|
46460
|
+
constructor(e = GB) {
|
|
46339
46461
|
this.configuration = e, this.fetchApi = async (e, t) => {
|
|
46340
46462
|
let n = {
|
|
46341
46463
|
url: e,
|
|
@@ -46356,7 +46478,7 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46356
46478
|
error: e,
|
|
46357
46479
|
response: r ? r.clone() : void 0
|
|
46358
46480
|
}) || r);
|
|
46359
|
-
if (r === void 0) throw e instanceof Error ? new
|
|
46481
|
+
if (r === void 0) throw e instanceof Error ? new ZB(e, "The request failed and the interceptors did not return an alternative response") : e;
|
|
46360
46482
|
}
|
|
46361
46483
|
for (let e of this.middleware) e.post && (r = await e.post({
|
|
46362
46484
|
fetch: this.fetchApi,
|
|
@@ -46380,12 +46502,12 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46380
46502
|
return this.withMiddleware(...t);
|
|
46381
46503
|
}
|
|
46382
46504
|
isJsonMime(e) {
|
|
46383
|
-
return e ?
|
|
46505
|
+
return e ? KB.jsonRegex.test(e) : !1;
|
|
46384
46506
|
}
|
|
46385
46507
|
async request(e, t) {
|
|
46386
46508
|
let { url: n, init: r } = await this.createFetchParams(e, t), i = await this.fetchApi(n, r);
|
|
46387
46509
|
if (i && i.status >= 200 && i.status < 300) return i;
|
|
46388
|
-
throw new
|
|
46510
|
+
throw new XB(i, "Response returned an error code");
|
|
46389
46511
|
}
|
|
46390
46512
|
async createFetchParams(e, t) {
|
|
46391
46513
|
let n = this.configuration.basePath + e.path;
|
|
@@ -46404,7 +46526,7 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46404
46526
|
context: e
|
|
46405
46527
|
})
|
|
46406
46528
|
}, s;
|
|
46407
|
-
s =
|
|
46529
|
+
s = YB(o.body) || o.body instanceof URLSearchParams || JB(o.body) ? o.body : this.isJsonMime(r["Content-Type"]) ? JSON.stringify(o.body) : o.body;
|
|
46408
46530
|
let c = {
|
|
46409
46531
|
...o,
|
|
46410
46532
|
body: s
|
|
@@ -46418,49 +46540,49 @@ var IB = "74px", LB = "http://localhost".replace(/\/+$/, ""), RB = new class {
|
|
|
46418
46540
|
let e = this.constructor, t = new e(this.configuration);
|
|
46419
46541
|
return t.middleware = this.middleware.slice(), t;
|
|
46420
46542
|
}
|
|
46421
|
-
},
|
|
46422
|
-
|
|
46423
|
-
function
|
|
46543
|
+
}, qB = KB;
|
|
46544
|
+
qB.jsonRegex = /* @__PURE__ */ RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
46545
|
+
function JB(e) {
|
|
46424
46546
|
return typeof Blob < "u" && e instanceof Blob;
|
|
46425
46547
|
}
|
|
46426
|
-
function
|
|
46548
|
+
function YB(e) {
|
|
46427
46549
|
return typeof FormData < "u" && e instanceof FormData;
|
|
46428
46550
|
}
|
|
46429
|
-
var
|
|
46551
|
+
var XB = class extends Error {
|
|
46430
46552
|
constructor(e, t) {
|
|
46431
46553
|
super(t), this.response = e, this.name = "ResponseError";
|
|
46432
46554
|
}
|
|
46433
|
-
},
|
|
46555
|
+
}, ZB = class extends Error {
|
|
46434
46556
|
constructor(e, t) {
|
|
46435
46557
|
super(t), this.cause = e, this.name = "FetchError";
|
|
46436
46558
|
}
|
|
46437
46559
|
};
|
|
46438
|
-
function
|
|
46439
|
-
return Object.keys(e).map((n) =>
|
|
46560
|
+
function QB(e, t = "") {
|
|
46561
|
+
return Object.keys(e).map((n) => $B(n, e[n], t)).filter((e) => e.length > 0).join("&");
|
|
46440
46562
|
}
|
|
46441
|
-
function
|
|
46563
|
+
function $B(e, t, n = "") {
|
|
46442
46564
|
let r = n + (n.length ? `[${e}]` : e);
|
|
46443
46565
|
if (t instanceof Array) {
|
|
46444
46566
|
let e = t.map((e) => encodeURIComponent(String(e))).join(`&${encodeURIComponent(r)}=`);
|
|
46445
46567
|
return `${encodeURIComponent(r)}=${e}`;
|
|
46446
46568
|
}
|
|
46447
|
-
return t instanceof Set ?
|
|
46569
|
+
return t instanceof Set ? $B(e, Array.from(t), n) : t instanceof Date ? `${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? QB(t, r) : `${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`;
|
|
46448
46570
|
}
|
|
46449
|
-
var
|
|
46571
|
+
var eV = {
|
|
46450
46572
|
Contribution: "contribution",
|
|
46451
46573
|
SinglePurchase: "single_purchase",
|
|
46452
46574
|
TimePass: "time_pass",
|
|
46453
46575
|
Subscription: "subscription",
|
|
46454
46576
|
ManagedByMerchant: "managed_by_merchant"
|
|
46455
|
-
},
|
|
46577
|
+
}, tV = /* @__PURE__ */ function(e) {
|
|
46456
46578
|
return e.MAIN = "main", e.MORE_OPTIONS = "moreOptions", e.ABOUT = "about", e.SUBSCRIPTION_INFO = "subscriptionInfo", e;
|
|
46457
|
-
}({}),
|
|
46579
|
+
}({}), nV = /* @__PURE__ */ function(e) {
|
|
46458
46580
|
return e.TEXT = "text", e.BACKGROUND = "background", e.HIGHLIGHTED_OFFERING_TEXT = "highlightedOfferingText", e;
|
|
46459
|
-
}({}),
|
|
46460
|
-
[
|
|
46461
|
-
[
|
|
46462
|
-
[
|
|
46463
|
-
},
|
|
46581
|
+
}({}), rV = {
|
|
46582
|
+
[nV.TEXT]: "#ffffffff",
|
|
46583
|
+
[nV.BACKGROUND]: "#000000ff",
|
|
46584
|
+
[nV.HIGHLIGHTED_OFFERING_TEXT]: "#4d4d4dff"
|
|
46585
|
+
}, iV = {
|
|
46464
46586
|
title: /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: "Get Access In Seconds" }),
|
|
46465
46587
|
subtitle: /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: "Create an account and get access in under 10 seconds." }),
|
|
46466
46588
|
backButtonLabel: "Back",
|
|
@@ -46473,7 +46595,6 @@ var qB = {
|
|
|
46473
46595
|
subscription: "Get {{duration}} subscription for {{price}}"
|
|
46474
46596
|
},
|
|
46475
46597
|
subscriptionLabel: "Subscription",
|
|
46476
|
-
tabInfoLimit: "You’ll only pay when your Tab reaches $5",
|
|
46477
46598
|
aboutSupertab: {
|
|
46478
46599
|
title: "About Supertab",
|
|
46479
46600
|
items: {
|
|
@@ -46512,24 +46633,24 @@ var qB = {
|
|
|
46512
46633
|
putItOnMyTab: "Put it on my Tab",
|
|
46513
46634
|
continueToCheckout: "Continue to checkout"
|
|
46514
46635
|
} }
|
|
46515
|
-
},
|
|
46636
|
+
}, aV = "400px", oV = "#F6F3FF", sV = "#4902F4", cV = ({ iconName: e, children: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46516
46637
|
className: "flex items-start gap-3",
|
|
46517
46638
|
children: [/* @__PURE__ */ (0, K.jsx)("div", {
|
|
46518
46639
|
className: "flex shrink-0 items-center justify-center rounded-md p-1.5",
|
|
46519
|
-
style: { backgroundColor:
|
|
46640
|
+
style: { backgroundColor: oV },
|
|
46520
46641
|
children: /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
46521
46642
|
variant: "outline",
|
|
46522
46643
|
name: e,
|
|
46523
46644
|
size: "md",
|
|
46524
|
-
style: { color:
|
|
46645
|
+
style: { color: sV }
|
|
46525
46646
|
})
|
|
46526
46647
|
}), /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46527
46648
|
size: "md",
|
|
46528
46649
|
className: "text-deprecatedNeutral-9",
|
|
46529
46650
|
children: t
|
|
46530
46651
|
})]
|
|
46531
|
-
}),
|
|
46532
|
-
let r =
|
|
46652
|
+
}), lV = ({ title: e, items: t, className: n }) => {
|
|
46653
|
+
let r = iV.aboutSupertab.items, i = t || r, a = e || iV.aboutSupertab.title;
|
|
46533
46654
|
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46534
46655
|
className: Gj("flex flex-col gap-4", n),
|
|
46535
46656
|
children: [/* @__PURE__ */ (0, K.jsx)(BI, {
|
|
@@ -46539,55 +46660,55 @@ var qB = {
|
|
|
46539
46660
|
}), /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46540
46661
|
className: "flex flex-col gap-5",
|
|
46541
46662
|
children: [
|
|
46542
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
46663
|
+
/* @__PURE__ */ (0, K.jsx)(cV, {
|
|
46543
46664
|
iconName: "IdentificationIcon",
|
|
46544
46665
|
children: i.createAccount
|
|
46545
46666
|
}),
|
|
46546
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
46667
|
+
/* @__PURE__ */ (0, K.jsx)(cV, {
|
|
46547
46668
|
iconName: "CurrencyEuroIcon",
|
|
46548
46669
|
children: i.accountLimit
|
|
46549
46670
|
}),
|
|
46550
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
46671
|
+
/* @__PURE__ */ (0, K.jsx)(cV, {
|
|
46551
46672
|
iconName: "EnvelopeIcon",
|
|
46552
46673
|
children: i.managePayments
|
|
46553
46674
|
}),
|
|
46554
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
46675
|
+
/* @__PURE__ */ (0, K.jsx)(cV, {
|
|
46555
46676
|
iconName: "CalendarIcon",
|
|
46556
46677
|
children: i.inactiveAccount
|
|
46557
46678
|
})
|
|
46558
46679
|
]
|
|
46559
46680
|
})]
|
|
46560
46681
|
});
|
|
46561
|
-
},
|
|
46682
|
+
}, uV = (0, O.createContext)(void 0), dV = ({ translationsConfig: e, children: t }) => /* @__PURE__ */ (0, K.jsx)(uV, {
|
|
46562
46683
|
value: e,
|
|
46563
46684
|
children: t
|
|
46564
|
-
}),
|
|
46565
|
-
let e = (0, O.useContext)(
|
|
46685
|
+
}), fV = () => {
|
|
46686
|
+
let e = (0, O.useContext)(uV);
|
|
46566
46687
|
if (!e) throw Error("useTranslations must be used within a TranslationsProvider");
|
|
46567
46688
|
return e;
|
|
46568
|
-
},
|
|
46569
|
-
let { aboutSupertab: e } =
|
|
46689
|
+
}, pV = () => {
|
|
46690
|
+
let { aboutSupertab: e } = fV();
|
|
46570
46691
|
if (!e) return null;
|
|
46571
46692
|
let { title: t, items: n } = e;
|
|
46572
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
46693
|
+
return /* @__PURE__ */ (0, K.jsx)(lV, {
|
|
46573
46694
|
title: t,
|
|
46574
46695
|
items: n,
|
|
46575
46696
|
className: "mt-5"
|
|
46576
46697
|
});
|
|
46577
|
-
},
|
|
46698
|
+
}, mV = /* @__PURE__ */ function(e) {
|
|
46578
46699
|
return e.DEFAULT = "default", e.PAYWALL = "paywall", e;
|
|
46579
|
-
}({}),
|
|
46700
|
+
}({}), hV = ({ key: e, fallback: t, uiConfig: n, language: r, isPreview: i }) => {
|
|
46580
46701
|
if (!i || !n?.paywallCopy) return t;
|
|
46581
46702
|
let a = r || "en";
|
|
46582
46703
|
return n.paywallCopy[a]?.[e] || t;
|
|
46583
|
-
},
|
|
46584
|
-
let i = r ===
|
|
46704
|
+
}, gV = ({ fallback: e, uiConfig: t, language: n, mode: r = mV.DEFAULT }) => {
|
|
46705
|
+
let i = r === mV.PAYWALL ? t?.paywallCopy : t?.purchaseButtonCopy;
|
|
46585
46706
|
return i && i[n || "en"]?.purchaseButton || e;
|
|
46586
|
-
},
|
|
46707
|
+
}, _V = ({ filteredOfferings: e, screenConfig: t }) => {
|
|
46587
46708
|
let n = t?.highlightedOfferingIds?.length && t.highlightedOfferingIds?.length > 0, r = 0;
|
|
46588
46709
|
return r = n ? t?.highlightedOfferingIds.findIndex((e) => e !== null) : t?.highlightedOfferingId ? e.findIndex((e) => e.id === t.highlightedOfferingId) : 0, r === -1 && (r = 0), { selectedMainOffering: e[r] };
|
|
46589
|
-
},
|
|
46590
|
-
let { moreAccessOptions: i } =
|
|
46710
|
+
}, vV = (e, t) => /\{\{.*?\}\}/.test(e) ? e.replace(/\{\{(\w+)\}\}/g, (e, n) => t[n] ?? "") : e, yV = ({ onMoreAccessOptionsClick: e, language: t, isPreview: n, uiConfig: r }) => {
|
|
46711
|
+
let { moreAccessOptions: i } = fV(), a = { ...t?.startsWith("ja") ? { wordBreak: "break-all" } : {} };
|
|
46591
46712
|
return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46592
46713
|
className: "mt-4 flex justify-center",
|
|
46593
46714
|
children: /* @__PURE__ */ (0, K.jsx)(II, {
|
|
@@ -46600,7 +46721,7 @@ var qB = {
|
|
|
46600
46721
|
size: "lg",
|
|
46601
46722
|
className: "text-deprecatedNeutral-9",
|
|
46602
46723
|
style: a,
|
|
46603
|
-
children:
|
|
46724
|
+
children: hV({
|
|
46604
46725
|
key: "moreOptionsCTA",
|
|
46605
46726
|
fallback: i,
|
|
46606
46727
|
uiConfig: r,
|
|
@@ -46610,53 +46731,53 @@ var qB = {
|
|
|
46610
46731
|
})
|
|
46611
46732
|
})
|
|
46612
46733
|
});
|
|
46613
|
-
},
|
|
46734
|
+
}, bV = () => /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46614
46735
|
className: "mt-5 flex items-center justify-center",
|
|
46615
46736
|
children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46616
46737
|
className: "rounded-lg border border-dashed border-deprecatedNeutral-3 bg-deprecatedNeutral-2 px-6 py-2 leading-6",
|
|
46617
46738
|
children: "No offerings selected"
|
|
46618
46739
|
})
|
|
46619
|
-
}),
|
|
46740
|
+
}), xV = () => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46620
46741
|
className: "flex items-center gap-1",
|
|
46621
|
-
children: [/* @__PURE__ */ (0, K.jsx)("div", { className: "h-2 w-px bg-deprecatedNeutral-9" }), /* @__PURE__ */ (0, K.jsx)(
|
|
46742
|
+
children: [/* @__PURE__ */ (0, K.jsx)("div", { className: "h-2 w-px bg-deprecatedNeutral-9" }), /* @__PURE__ */ (0, K.jsx)($V, {
|
|
46622
46743
|
showOnlyPreferred: !0,
|
|
46623
46744
|
size: "sm"
|
|
46624
46745
|
})]
|
|
46625
|
-
}),
|
|
46746
|
+
}), SV = ({ onLogin: e, loginButtonLabel: t }) => /* @__PURE__ */ (0, K.jsx)("button", {
|
|
46626
46747
|
className: `text-xs text-deprecatedNeutral-8 ${e ? "cursor-pointer" : "cursor-default"}`,
|
|
46627
46748
|
onClick: e,
|
|
46628
46749
|
children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46629
46750
|
size: "sm",
|
|
46630
46751
|
children: t
|
|
46631
46752
|
})
|
|
46632
|
-
}),
|
|
46753
|
+
}), CV = ({ onLogin: e, isUserLoggedIn: t = !1, loginButtonLabel: n, showVisaLogo: r = !0, showLoginButton: i = !0, showPaymentMethods: a = !1 }) => /* @__PURE__ */ (0, K.jsxs)("footer", {
|
|
46633
46754
|
className: "mt-8 flex items-center justify-between",
|
|
46634
46755
|
children: [
|
|
46635
46756
|
/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46636
46757
|
className: "flex items-center justify-center",
|
|
46637
|
-
children: [/* @__PURE__ */ (0, K.jsx)(
|
|
46758
|
+
children: [/* @__PURE__ */ (0, K.jsx)(HB, {
|
|
46638
46759
|
height: 12,
|
|
46639
46760
|
className: "mr-1"
|
|
46640
|
-
}), r && /* @__PURE__ */ (0, K.jsx)(
|
|
46761
|
+
}), r && /* @__PURE__ */ (0, K.jsx)(xV, {})]
|
|
46641
46762
|
}),
|
|
46642
|
-
!t && i && /* @__PURE__ */ (0, K.jsx)(
|
|
46763
|
+
!t && i && /* @__PURE__ */ (0, K.jsx)(SV, {
|
|
46643
46764
|
onLogin: e,
|
|
46644
46765
|
loginButtonLabel: n
|
|
46645
46766
|
}),
|
|
46646
|
-
a && /* @__PURE__ */ (0, K.jsx)(
|
|
46767
|
+
a && /* @__PURE__ */ (0, K.jsx)($V, { size: "sm" })
|
|
46647
46768
|
]
|
|
46648
|
-
}),
|
|
46649
|
-
let { labelTooltip: n } =
|
|
46769
|
+
}), wV = ({ currentScreen: e, boxStyle: t }) => {
|
|
46770
|
+
let { labelTooltip: n } = fV(), r = (() => {
|
|
46650
46771
|
switch (e) {
|
|
46651
|
-
case
|
|
46652
|
-
case
|
|
46653
|
-
case
|
|
46772
|
+
case tV.ABOUT: return "About";
|
|
46773
|
+
case tV.MAIN: return "Main";
|
|
46774
|
+
case tV.MORE_OPTIONS: return "More Options";
|
|
46654
46775
|
default: return "";
|
|
46655
46776
|
}
|
|
46656
46777
|
})();
|
|
46657
46778
|
return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46658
46779
|
className: Gj("relative left-0 right-0 mb-5 flex justify-end"),
|
|
46659
|
-
children: r === "Main" || r === "More Options" ? /* @__PURE__ */ (0, K.jsx)(
|
|
46780
|
+
children: r === "Main" || r === "More Options" ? /* @__PURE__ */ (0, K.jsx)(Bz, {
|
|
46660
46781
|
side: "top",
|
|
46661
46782
|
content: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46662
46783
|
size: "sm",
|
|
@@ -46674,78 +46795,74 @@ var qB = {
|
|
|
46674
46795
|
})
|
|
46675
46796
|
}) : null
|
|
46676
46797
|
});
|
|
46677
|
-
},
|
|
46798
|
+
}, TV = () => /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46678
46799
|
className: "absolute left-0 top-0 w-full text-center",
|
|
46679
46800
|
children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46680
46801
|
size: "md",
|
|
46681
46802
|
className: "bg-deprecatedWarning-1 text-deprecatedWarning-7 rounded-t-md px-2 py-0.5",
|
|
46682
46803
|
children: "Test Mode"
|
|
46683
46804
|
})
|
|
46684
|
-
}),
|
|
46685
|
-
let { subscriptionLabel: i } =
|
|
46686
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
46805
|
+
}), EV = ({ offering: e, selectedOffering: t, handleOfferingOptionClick: n, uiConfig: r }) => {
|
|
46806
|
+
let { subscriptionLabel: i } = fV(), { dynamicTranslations: { duration: a, formattedPrice: o } } = e, { background: s = rV.background } = r?.colors || {}, c = t?.id === e.id;
|
|
46807
|
+
return /* @__PURE__ */ (0, K.jsx)(UV, {
|
|
46687
46808
|
title: a,
|
|
46688
46809
|
subtitle: o,
|
|
46689
|
-
badgeLabel: e.salesModel ===
|
|
46810
|
+
badgeLabel: e.salesModel === eV.Subscription ? i : void 0,
|
|
46690
46811
|
isSelected: c,
|
|
46691
46812
|
isOutlined: t?.id === e.id,
|
|
46692
46813
|
onClick: () => n(e),
|
|
46693
46814
|
backgroundColor: s
|
|
46694
46815
|
});
|
|
46695
|
-
},
|
|
46696
|
-
let { singleOffering: { timePass: n, subscription: r } = {} } =
|
|
46816
|
+
}, DV = ({ offering: e, isPreview: t }) => {
|
|
46817
|
+
let { singleOffering: { timePass: n, subscription: r } = {} } = fV(), { dynamicTranslations: i } = e, a = e.salesModel === eV.TimePass ? n : r;
|
|
46697
46818
|
return /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46698
46819
|
size: "md",
|
|
46699
46820
|
className: "mb-1.5 flex font-medium text-deprecatedNeutral-9",
|
|
46700
|
-
children: t && a ?
|
|
46821
|
+
children: t && a ? vV(a, {
|
|
46701
46822
|
duration: i.duration,
|
|
46702
46823
|
price: i.formattedPrice
|
|
46703
46824
|
}) : i.singleOfferingDescription
|
|
46704
46825
|
});
|
|
46705
|
-
},
|
|
46826
|
+
}, OV = ({ offerings: e, selectedOffering: t, setSelectedOffering: n, uiConfig: r, isPreview: i }) => e.length === 1 ? /* @__PURE__ */ (0, K.jsx)(DV, {
|
|
46706
46827
|
offering: e[0],
|
|
46707
46828
|
isPreview: i
|
|
46708
46829
|
}) : /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46709
46830
|
className: "mt-5 flex items-center justify-center gap-2",
|
|
46710
|
-
children: e.map((e) => e ? /* @__PURE__ */ (0, K.jsx)(
|
|
46831
|
+
children: e.map((e) => e ? /* @__PURE__ */ (0, K.jsx)(EV, {
|
|
46711
46832
|
offering: e,
|
|
46712
46833
|
selectedOffering: t,
|
|
46713
46834
|
handleOfferingOptionClick: n,
|
|
46714
46835
|
uiConfig: r
|
|
46715
46836
|
}, e.id) : null)
|
|
46716
|
-
}),
|
|
46717
|
-
let { uiConfigColors: n =
|
|
46837
|
+
}), kV = ({ purchaseButtonConfig: e, mode: t = mV.DEFAULT }) => {
|
|
46838
|
+
let { uiConfigColors: n = rV, onStartPurchase: r, label: i, uiConfig: a, language: o } = e, s = n?.text || rV.text, c = n?.background || rV.background, l = () => {
|
|
46718
46839
|
r && r();
|
|
46719
|
-
},
|
|
46840
|
+
}, u = gV({
|
|
46720
46841
|
fallback: i,
|
|
46721
|
-
uiConfig:
|
|
46722
|
-
language:
|
|
46842
|
+
uiConfig: a,
|
|
46843
|
+
language: o,
|
|
46723
46844
|
mode: t
|
|
46724
46845
|
});
|
|
46725
|
-
return /* @__PURE__ */ (0, K.
|
|
46726
|
-
className: Gj("hover:outline-0! focus-visible:outline-0! active:outline-0!
|
|
46846
|
+
return /* @__PURE__ */ (0, K.jsx)(II, {
|
|
46847
|
+
className: Gj("h-auto py-2.5 hover:outline-0! focus-visible:outline-0! active:outline-0!", t === mV.PAYWALL && "mt-5 w-full"),
|
|
46727
46848
|
size: "lg",
|
|
46728
46849
|
style: {
|
|
46729
|
-
color:
|
|
46730
|
-
backgroundColor:
|
|
46850
|
+
color: s,
|
|
46851
|
+
backgroundColor: c
|
|
46731
46852
|
},
|
|
46732
|
-
onClick:
|
|
46853
|
+
onClick: l,
|
|
46733
46854
|
"data-testid": "supertab-purchase-button",
|
|
46734
|
-
children:
|
|
46735
|
-
onlySymbol: !0,
|
|
46736
|
-
className: "mr-2",
|
|
46737
|
-
style: { fill: c }
|
|
46738
|
-
}), /* @__PURE__ */ (0, K.jsx)(WI, { children: f })]
|
|
46855
|
+
children: /* @__PURE__ */ (0, K.jsx)(WI, { children: u })
|
|
46739
46856
|
});
|
|
46740
|
-
},
|
|
46741
|
-
let { cancelSubscriptionAnytime: r
|
|
46742
|
-
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46857
|
+
}, AV = ({ selectedOfferingSalesModel: e, onInfoButtonClick: t, onInfoButtonClickCallback: n }) => {
|
|
46858
|
+
let { cancelSubscriptionAnytime: r } = fV();
|
|
46859
|
+
return e === eV.Subscription ? /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46743
46860
|
className: "text-deprecatedNeutral-7",
|
|
46744
46861
|
"data-testid": "tab-info-limit-text",
|
|
46745
46862
|
children: [/* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46746
46863
|
size: "md",
|
|
46747
46864
|
className: "inline",
|
|
46748
|
-
children:
|
|
46865
|
+
children: r
|
|
46749
46866
|
}), /* @__PURE__ */ (0, K.jsxs)(WI, {
|
|
46750
46867
|
size: "md",
|
|
46751
46868
|
as: "span",
|
|
@@ -46765,23 +46882,32 @@ var qB = {
|
|
|
46765
46882
|
})
|
|
46766
46883
|
})]
|
|
46767
46884
|
})]
|
|
46885
|
+
}) : /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46886
|
+
className: "text-deprecatedNeutral-7 invisible",
|
|
46887
|
+
"aria-hidden": "true",
|
|
46888
|
+
"data-testid": "tab-info-limit-text",
|
|
46889
|
+
children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46890
|
+
size: "md",
|
|
46891
|
+
className: "inline",
|
|
46892
|
+
children: "\xA0"
|
|
46893
|
+
})
|
|
46768
46894
|
});
|
|
46769
|
-
},
|
|
46770
|
-
let { ctaButton: { label: u } } =
|
|
46895
|
+
}, jV = ({ offerings: e, screenConfig: t, onInfoButtonClick: n, uiConfig: r, onStartPurchase: i, isPreview: a, selectedOfferingId: o, onOfferingSelect: s, onInfoButtonClickCallback: c, language: l }) => {
|
|
46896
|
+
let { ctaButton: { label: u } } = fV(), d = t?.offeringIds.filter((e) => !!e).map((t) => e.find((e) => e.id === t)), { selectedMainOffering: f } = _V({
|
|
46771
46897
|
filteredOfferings: d,
|
|
46772
46898
|
allOfferings: e,
|
|
46773
46899
|
screenConfig: t
|
|
46774
|
-
}), p = o && d.find((e) => e.id === o) || f, m = p ? p.salesModel ===
|
|
46900
|
+
}), p = o && d.find((e) => e.id === o) || f, m = p ? p.salesModel === eV.Subscription : !1, h = d.length > 1, g = (e) => {
|
|
46775
46901
|
s(e.id);
|
|
46776
46902
|
};
|
|
46777
46903
|
return /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [
|
|
46778
46904
|
h ? /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46779
46905
|
className: "mt-5",
|
|
46780
|
-
children: [d.length > 0 && p && /* @__PURE__ */ (0, K.jsx)(
|
|
46906
|
+
children: [d.length > 0 && p && /* @__PURE__ */ (0, K.jsx)(AV, {
|
|
46781
46907
|
selectedOfferingSalesModel: p.salesModel,
|
|
46782
46908
|
onInfoButtonClick: n,
|
|
46783
46909
|
onInfoButtonClickCallback: c
|
|
46784
|
-
}), /* @__PURE__ */ (0, K.jsx)(
|
|
46910
|
+
}), /* @__PURE__ */ (0, K.jsx)(OV, {
|
|
46785
46911
|
offerings: d,
|
|
46786
46912
|
selectedOffering: p,
|
|
46787
46913
|
setSelectedOffering: g,
|
|
@@ -46790,24 +46916,24 @@ var qB = {
|
|
|
46790
46916
|
})]
|
|
46791
46917
|
}) : /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46792
46918
|
className: "mt-5",
|
|
46793
|
-
children: [/* @__PURE__ */ (0, K.jsx)(
|
|
46919
|
+
children: [/* @__PURE__ */ (0, K.jsx)(OV, {
|
|
46794
46920
|
offerings: d,
|
|
46795
46921
|
selectedOffering: p,
|
|
46796
46922
|
setSelectedOffering: g,
|
|
46797
46923
|
uiConfig: r,
|
|
46798
46924
|
isPreview: a
|
|
46799
|
-
}), d.length > 0 && p && /* @__PURE__ */ (0, K.jsx)(
|
|
46925
|
+
}), d.length > 0 && p && /* @__PURE__ */ (0, K.jsx)(AV, {
|
|
46800
46926
|
selectedOfferingSalesModel: p.salesModel,
|
|
46801
46927
|
onInfoButtonClick: n,
|
|
46802
46928
|
onInfoButtonClickCallback: c
|
|
46803
46929
|
})]
|
|
46804
46930
|
}),
|
|
46805
|
-
d.length === 0 && /* @__PURE__ */ (0, K.jsx)(
|
|
46806
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
46931
|
+
d.length === 0 && /* @__PURE__ */ (0, K.jsx)(bV, {}),
|
|
46932
|
+
/* @__PURE__ */ (0, K.jsx)(kV, {
|
|
46807
46933
|
purchaseButtonConfig: {
|
|
46808
46934
|
uiConfigColors: r?.colors,
|
|
46809
46935
|
label: m ? u.continueToCheckout : u.putItOnMyTab,
|
|
46810
|
-
salesModel: m ?
|
|
46936
|
+
salesModel: m ? eV.Subscription : eV.TimePass,
|
|
46811
46937
|
onStartPurchase: () => {
|
|
46812
46938
|
if (!p.id) throw Error("Selected Offering is missing an ID");
|
|
46813
46939
|
i && i({ offeringId: p.id });
|
|
@@ -46815,11 +46941,11 @@ var qB = {
|
|
|
46815
46941
|
uiConfig: r,
|
|
46816
46942
|
language: l
|
|
46817
46943
|
},
|
|
46818
|
-
mode:
|
|
46944
|
+
mode: mV.PAYWALL
|
|
46819
46945
|
})
|
|
46820
46946
|
] });
|
|
46821
|
-
},
|
|
46822
|
-
let r = (0, O.useCallback)(() => typeof window > "u" || window.innerWidth >=
|
|
46947
|
+
}, MV = 375, NV = 80, PV = ({ siteLogoUrl: e, siteName: t, logoSize: n = 100 }) => {
|
|
46948
|
+
let r = (0, O.useCallback)(() => typeof window > "u" || window.innerWidth >= MV ? n : Math.min(n, NV), [n]), [i, a] = (0, O.useState)(r);
|
|
46823
46949
|
return (0, O.useEffect)(() => {
|
|
46824
46950
|
if (typeof window > "u") return;
|
|
46825
46951
|
let e = () => {
|
|
@@ -46837,14 +46963,14 @@ var qB = {
|
|
|
46837
46963
|
className: "text-md text-deprecatedNeutral-9 font-bold!",
|
|
46838
46964
|
children: t && ((e) => e.length <= 25 ? e : `${e.slice(0, 22)}...`)(t)
|
|
46839
46965
|
});
|
|
46840
|
-
},
|
|
46966
|
+
}, FV = ({ onClick: e, backButtonLabel: t }) => /* @__PURE__ */ (0, K.jsxs)("button", {
|
|
46841
46967
|
className: "font-deprecated text-deprecated-body-md relative -left-[5px] flex items-center",
|
|
46842
46968
|
onClick: e,
|
|
46843
46969
|
children: [/* @__PURE__ */ (0, K.jsx)(SI, {
|
|
46844
46970
|
name: "ChevronLeftIcon",
|
|
46845
46971
|
size: "md"
|
|
46846
46972
|
}), t]
|
|
46847
|
-
}),
|
|
46973
|
+
}), IV = ({ onCancel: e }) => /* @__PURE__ */ (0, K.jsx)("button", {
|
|
46848
46974
|
className: `flex justify-start ${e ? "cursor-pointer" : "cursor-default"}`,
|
|
46849
46975
|
"aria-label": "Close",
|
|
46850
46976
|
onClick: e,
|
|
@@ -46852,8 +46978,8 @@ var qB = {
|
|
|
46852
46978
|
name: "XMarkIcon",
|
|
46853
46979
|
size: "md"
|
|
46854
46980
|
})
|
|
46855
|
-
}),
|
|
46856
|
-
let { title: u, backButtonLabel: d } =
|
|
46981
|
+
}), LV = ({ isMainScreenOpen: e, isInfoScreenOpen: t, onBackButtonClick: n, siteLogoUrl: r, siteName: i, onCancel: a, language: o, logoSize: s, isPreview: c, uiConfig: l }) => {
|
|
46982
|
+
let { title: u, backButtonLabel: d } = fV(), f = { ...o?.startsWith("ja") ? { wordBreak: "break-all" } : {} }, p = hV({
|
|
46857
46983
|
key: "title",
|
|
46858
46984
|
fallback: u,
|
|
46859
46985
|
uiConfig: l,
|
|
@@ -46864,17 +46990,17 @@ var qB = {
|
|
|
46864
46990
|
className: "font-deprecated flex flex-col justify-between",
|
|
46865
46991
|
children: [/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46866
46992
|
className: "flex flex-row justify-between",
|
|
46867
|
-
children: [/* @__PURE__ */ (0, K.jsxs)("div", { children: [!e && /* @__PURE__ */ (0, K.jsx)(
|
|
46993
|
+
children: [/* @__PURE__ */ (0, K.jsxs)("div", { children: [!e && /* @__PURE__ */ (0, K.jsx)(FV, {
|
|
46868
46994
|
onClick: n,
|
|
46869
46995
|
backButtonLabel: d
|
|
46870
46996
|
}), !t && /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46871
46997
|
className: "mt-3.5",
|
|
46872
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
46998
|
+
children: /* @__PURE__ */ (0, K.jsx)(PV, {
|
|
46873
46999
|
siteLogoUrl: r,
|
|
46874
47000
|
siteName: i,
|
|
46875
47001
|
logoSize: s
|
|
46876
47002
|
})
|
|
46877
|
-
})] }), /* @__PURE__ */ (0, K.jsx)(
|
|
47003
|
+
})] }), /* @__PURE__ */ (0, K.jsx)(IV, { onCancel: a })]
|
|
46878
47004
|
}), /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46879
47005
|
className: "flex flex-col text-start",
|
|
46880
47006
|
children: e && /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: /* @__PURE__ */ (0, K.jsx)(BI, {
|
|
@@ -46885,8 +47011,8 @@ var qB = {
|
|
|
46885
47011
|
}) })
|
|
46886
47012
|
})]
|
|
46887
47013
|
});
|
|
46888
|
-
},
|
|
46889
|
-
let { orLabel: e } =
|
|
47014
|
+
}, RV = () => {
|
|
47015
|
+
let { orLabel: e } = fV();
|
|
46890
47016
|
return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46891
47017
|
style: { lineHeight: "0.1px" },
|
|
46892
47018
|
className: "my-8 w-full border-b-1 border-deprecatedNeutral-7 text-center text-deprecatedNeutral-7",
|
|
@@ -46898,20 +47024,20 @@ var qB = {
|
|
|
46898
47024
|
children: e
|
|
46899
47025
|
})
|
|
46900
47026
|
});
|
|
46901
|
-
},
|
|
47027
|
+
}, zV = ({ title: e, content: t, ctaButtonLabel: n, className: r, accountSettingsUrl: i }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46902
47028
|
className: Gj(r, "flex flex-col text-start"),
|
|
46903
47029
|
children: [
|
|
46904
47030
|
/* @__PURE__ */ (0, K.jsx)(BI, {
|
|
46905
47031
|
size: "xs",
|
|
46906
47032
|
className: "text-deprecatedNeutral-9 text-base! font-medium! mb-3",
|
|
46907
|
-
children: e ||
|
|
47033
|
+
children: e || iV.subscriptionInfoScreen.title
|
|
46908
47034
|
}),
|
|
46909
47035
|
/* @__PURE__ */ (0, K.jsx)(WI, {
|
|
46910
47036
|
as: "span",
|
|
46911
47037
|
size: "md",
|
|
46912
47038
|
className: "flex flex-col gap-4 text-start",
|
|
46913
47039
|
style: { marginBottom: "20px" },
|
|
46914
|
-
children: t ||
|
|
47040
|
+
children: t || iV.subscriptionInfoScreen.content
|
|
46915
47041
|
}),
|
|
46916
47042
|
/* @__PURE__ */ (0, K.jsx)(II, {
|
|
46917
47043
|
onClick: () => window.open(i || "https://my.supertab.co", "_blank"),
|
|
@@ -46919,65 +47045,65 @@ var qB = {
|
|
|
46919
47045
|
size: "lg",
|
|
46920
47046
|
variant: "primary",
|
|
46921
47047
|
className: "hover:outline-0! focus-visible:outline-0! active:outline-0! w-full",
|
|
46922
|
-
children: n ||
|
|
47048
|
+
children: n || iV.subscriptionInfoScreen.ctaButton.label
|
|
46923
47049
|
})
|
|
46924
47050
|
]
|
|
46925
|
-
}),
|
|
46926
|
-
let { loginButtonLabel: r } =
|
|
46927
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
47051
|
+
}), BV = ({ onLogin: e, isUserLoggedIn: t, showVisaLogo: n }) => {
|
|
47052
|
+
let { loginButtonLabel: r } = fV();
|
|
47053
|
+
return /* @__PURE__ */ (0, K.jsx)(CV, {
|
|
46928
47054
|
onLogin: e,
|
|
46929
47055
|
isUserLoggedIn: t,
|
|
46930
47056
|
loginButtonLabel: r,
|
|
46931
47057
|
showVisaLogo: n
|
|
46932
47058
|
});
|
|
46933
|
-
},
|
|
46934
|
-
let { subscriptionInfoScreen: e } =
|
|
47059
|
+
}, VV = () => {
|
|
47060
|
+
let { subscriptionInfoScreen: e } = fV();
|
|
46935
47061
|
return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
46936
47062
|
className: "mt-6",
|
|
46937
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47063
|
+
children: /* @__PURE__ */ (0, K.jsx)(zV, {
|
|
46938
47064
|
title: e.title,
|
|
46939
47065
|
content: e.content,
|
|
46940
47066
|
ctaButtonLabel: e.ctaButton.label
|
|
46941
47067
|
})
|
|
46942
47068
|
});
|
|
46943
|
-
},
|
|
46944
|
-
let { offerings: a, baseScreen: o =
|
|
46945
|
-
if (h ===
|
|
47069
|
+
}, HV = ({ paywallConfig: e, translationsConfig: t = iV, isPreview: n = !1, isTestMode: r = !1, language: i }) => {
|
|
47070
|
+
let { offerings: a, baseScreen: o = tV.MAIN, uiConfig: s, siteLogoUrl: c, siteName: l, onLogin: u, onCancel: d, onStartPurchase: f, isUserLoggedIn: p, onInfoButtonClick: m } = e, [h, g] = (0, O.useState)(o), [_, v] = (0, O.useState)(h), [y, b] = (0, O.useState)(null), x = () => {
|
|
47071
|
+
if (h === tV.ABOUT || h === tV.SUBSCRIPTION_INFO) {
|
|
46946
47072
|
g(_);
|
|
46947
47073
|
return;
|
|
46948
47074
|
}
|
|
46949
|
-
g(
|
|
47075
|
+
g(tV.MAIN), v(tV.MAIN), b(null);
|
|
46950
47076
|
}, S = (e) => {
|
|
46951
|
-
v(h), e ===
|
|
47077
|
+
v(h), e === eV.Subscription ? g(tV.SUBSCRIPTION_INFO) : g(tV.ABOUT);
|
|
46952
47078
|
}, C = () => {
|
|
46953
|
-
g(
|
|
47079
|
+
g(tV.MORE_OPTIONS), v(tV.MORE_OPTIONS), b(null);
|
|
46954
47080
|
}, w = (s.moreOptionsScreen?.offeringIds || []).filter((e) => e && e !== "").length > 0, T = {
|
|
46955
|
-
width:
|
|
47081
|
+
width: aV,
|
|
46956
47082
|
maxWidth: "95vw",
|
|
46957
47083
|
minWidth: "320px"
|
|
46958
47084
|
};
|
|
46959
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
47085
|
+
return /* @__PURE__ */ (0, K.jsx)(dV, {
|
|
46960
47086
|
translationsConfig: t,
|
|
46961
47087
|
children: /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46962
47088
|
className: "relative",
|
|
46963
47089
|
style: { ...T },
|
|
46964
|
-
children: [r && n && w && /* @__PURE__ */ (0, K.jsx)(
|
|
47090
|
+
children: [r && n && w && /* @__PURE__ */ (0, K.jsx)(wV, {
|
|
46965
47091
|
currentScreen: h,
|
|
46966
47092
|
boxStyle: "rounded-md bg-deprecatedNeutral-1 text-deprecatedNeutral-9"
|
|
46967
47093
|
}), /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46968
47094
|
className: "relative",
|
|
46969
47095
|
style: T,
|
|
46970
|
-
children: [n && !r && w && /* @__PURE__ */ (0, K.jsx)(
|
|
47096
|
+
children: [n && !r && w && /* @__PURE__ */ (0, K.jsx)(wV, {
|
|
46971
47097
|
currentScreen: h,
|
|
46972
47098
|
boxStyle: "rounded-md bg-deprecatedNeutral-1 text-deprecatedNeutral-9"
|
|
46973
47099
|
}), /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
46974
47100
|
className: Gj("rounded-xl", "bg-white", "p-5", "shadow-lg", { "pt-10": r }),
|
|
46975
47101
|
style: T,
|
|
46976
47102
|
children: [
|
|
46977
|
-
r && /* @__PURE__ */ (0, K.jsx)(
|
|
46978
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
46979
|
-
isMainScreenOpen: h ===
|
|
46980
|
-
isInfoScreenOpen: h ===
|
|
47103
|
+
r && /* @__PURE__ */ (0, K.jsx)(TV, {}),
|
|
47104
|
+
/* @__PURE__ */ (0, K.jsx)(LV, {
|
|
47105
|
+
isMainScreenOpen: h === tV.MAIN,
|
|
47106
|
+
isInfoScreenOpen: h === tV.ABOUT || h === tV.SUBSCRIPTION_INFO,
|
|
46981
47107
|
siteLogoUrl: c,
|
|
46982
47108
|
siteName: l,
|
|
46983
47109
|
onBackButtonClick: x,
|
|
@@ -46987,7 +47113,7 @@ var qB = {
|
|
|
46987
47113
|
isPreview: n,
|
|
46988
47114
|
uiConfig: s
|
|
46989
47115
|
}),
|
|
46990
|
-
h ===
|
|
47116
|
+
h === tV.MAIN && /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(jV, {
|
|
46991
47117
|
offerings: a,
|
|
46992
47118
|
screenConfig: s.mainScreen,
|
|
46993
47119
|
onInfoButtonClick: S,
|
|
@@ -46998,13 +47124,13 @@ var qB = {
|
|
|
46998
47124
|
onOfferingSelect: b,
|
|
46999
47125
|
onInfoButtonClickCallback: m,
|
|
47000
47126
|
language: i
|
|
47001
|
-
}), w && /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(
|
|
47127
|
+
}), w && /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(RV, {}), /* @__PURE__ */ (0, K.jsx)(yV, {
|
|
47002
47128
|
onMoreAccessOptionsClick: C,
|
|
47003
47129
|
language: i,
|
|
47004
47130
|
isPreview: n,
|
|
47005
47131
|
uiConfig: s
|
|
47006
47132
|
})] })] }),
|
|
47007
|
-
h ===
|
|
47133
|
+
h === tV.MORE_OPTIONS && /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: /* @__PURE__ */ (0, K.jsx)(jV, {
|
|
47008
47134
|
uiConfig: s,
|
|
47009
47135
|
offerings: a,
|
|
47010
47136
|
screenConfig: s.moreOptionsScreen,
|
|
@@ -47016,40 +47142,40 @@ var qB = {
|
|
|
47016
47142
|
onInfoButtonClickCallback: m,
|
|
47017
47143
|
language: i
|
|
47018
47144
|
}) }),
|
|
47019
|
-
h ===
|
|
47145
|
+
h === tV.ABOUT && /* @__PURE__ */ (0, K.jsx)("div", {
|
|
47020
47146
|
className: "mt-5",
|
|
47021
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47147
|
+
children: /* @__PURE__ */ (0, K.jsx)(pV, {})
|
|
47022
47148
|
}),
|
|
47023
|
-
h ===
|
|
47024
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
47149
|
+
h === tV.SUBSCRIPTION_INFO && /* @__PURE__ */ (0, K.jsx)(VV, {}),
|
|
47150
|
+
/* @__PURE__ */ (0, K.jsx)(BV, {
|
|
47025
47151
|
onLogin: u,
|
|
47026
47152
|
isUserLoggedIn: p,
|
|
47027
|
-
showVisaLogo: h !==
|
|
47153
|
+
showVisaLogo: h !== tV.ABOUT && h !== tV.SUBSCRIPTION_INFO
|
|
47028
47154
|
})
|
|
47029
47155
|
]
|
|
47030
47156
|
})]
|
|
47031
47157
|
})]
|
|
47032
47158
|
})
|
|
47033
47159
|
});
|
|
47034
|
-
},
|
|
47160
|
+
}, UV = ({ title: e, subtitle: t, badgeLabel: n, isSelected: r = !1, isOutlined: i = !1, backgroundColor: a, onClick: o }) => {
|
|
47035
47161
|
let s = Kj(a), c = {
|
|
47036
47162
|
backgroundColor: s,
|
|
47037
47163
|
borderColor: s,
|
|
47038
|
-
color:
|
|
47164
|
+
color: rV.highlightedOfferingText
|
|
47039
47165
|
}, l = {
|
|
47040
47166
|
backgroundColor: "transparent",
|
|
47041
47167
|
borderColor: "var(--color-gray-200)",
|
|
47042
47168
|
color: "#000000"
|
|
47043
|
-
}, u = { borderColor:
|
|
47169
|
+
}, u = { borderColor: rV.highlightedOfferingText };
|
|
47044
47170
|
return /* @__PURE__ */ (0, K.jsxs)("button", {
|
|
47045
47171
|
className: "relative flex grow basis-1 flex-col items-center justify-center rounded-md border",
|
|
47046
47172
|
onClick: o,
|
|
47047
47173
|
style: {
|
|
47048
|
-
height:
|
|
47174
|
+
height: UB,
|
|
47049
47175
|
...r ? c : i ? u : l
|
|
47050
47176
|
},
|
|
47051
47177
|
children: [
|
|
47052
|
-
n && /* @__PURE__ */ (0, K.jsx)(
|
|
47178
|
+
n && /* @__PURE__ */ (0, K.jsx)(_L, {
|
|
47053
47179
|
variant: "info",
|
|
47054
47180
|
className: "bg-deprecatedNeutral-3 text-deprecatedNeutral-9 absolute top-[-12px]",
|
|
47055
47181
|
style: { fontSize: 10 },
|
|
@@ -47067,70 +47193,15 @@ var qB = {
|
|
|
47067
47193
|
})
|
|
47068
47194
|
]
|
|
47069
47195
|
});
|
|
47070
|
-
}, LV = Gj("z-50 rounded-md", "text-body-sm font-medium text-center", "data-[side=top]:animate-tooltip-in-top data-[side=bottom]:animate-tooltip-in-bottom", "data-[side=left]:animate-tooltip-in-left data-[side=right]:animate-tooltip-in-right", "data-[state=closed]:animate-tooltip-out", "whitespace-pre-wrap", "wrap-break-word"), RV = "py-[4px] px-[8px]", zV = "py-[8px] px-[12px]", BV = "max-w-[188px]", VV = "max-w-[240px]", HV = "max-w-[280px]", UV = {
|
|
47071
|
-
primary: "bg-primary-9 text-neutral-1",
|
|
47072
|
-
secondary: "bg-primary-1 text-primary-9",
|
|
47073
|
-
danger: "bg-danger-6 text-neutral-1"
|
|
47074
|
-
}, WV = "w-[12px] h-[6px]", GV = "w-[18px] h-[9px]", KV = {
|
|
47075
|
-
primary: "fill-primary-9",
|
|
47076
|
-
secondary: "fill-primary-1",
|
|
47077
|
-
danger: "fill-danger-6"
|
|
47078
|
-
}, qV = "M18 0L0 0L7.58579 7.58579C8.36683 8.36683 9.63317 8.36683 10.4142 7.58579L18 0Z", JV = pz, YV = fz, XV = mz, ZV = gz, QV = ({ className: e, sideOffset: t = 4, ref: n, ...r }) => /* @__PURE__ */ (0, K.jsx)(hz, {
|
|
47079
|
-
ref: n,
|
|
47080
|
-
sideOffset: t,
|
|
47081
|
-
className: Gj(LV, e),
|
|
47082
|
-
...r
|
|
47083
|
-
}), $V = ({ children: e, variant: t = "primary", size: n = "sm", side: r = "top", align: i = "center", width: a, content: o, config: s }) => {
|
|
47084
|
-
let c = n === "sm", l = n === "md", u = n === "lg", d = Gj(UV[t], {
|
|
47085
|
-
[RV]: c,
|
|
47086
|
-
[zV]: l || u
|
|
47087
|
-
}, {
|
|
47088
|
-
[BV]: c && !a,
|
|
47089
|
-
[VV]: l && !a,
|
|
47090
|
-
[HV]: u && !a
|
|
47091
|
-
}), f = a ? { maxWidth: `${a}px` } : void 0, p = Gj(KV[t], {
|
|
47092
|
-
[WV]: c,
|
|
47093
|
-
[GV]: l || u
|
|
47094
|
-
});
|
|
47095
|
-
return /* @__PURE__ */ (0, K.jsx)(YV, {
|
|
47096
|
-
delayDuration: 0,
|
|
47097
|
-
skipDelayDuration: 0,
|
|
47098
|
-
children: /* @__PURE__ */ (0, K.jsxs)(JV, {
|
|
47099
|
-
...s?.root,
|
|
47100
|
-
children: [/* @__PURE__ */ (0, K.jsx)(XV, {
|
|
47101
|
-
asChild: !0,
|
|
47102
|
-
children: e
|
|
47103
|
-
}), /* @__PURE__ */ (0, K.jsxs)(QV, {
|
|
47104
|
-
side: r,
|
|
47105
|
-
align: i,
|
|
47106
|
-
className: d,
|
|
47107
|
-
style: f,
|
|
47108
|
-
sideOffset: c ? 4 : 6,
|
|
47109
|
-
...s?.content,
|
|
47110
|
-
children: [/* @__PURE__ */ (0, K.jsx)(HI, {
|
|
47111
|
-
size: "sm",
|
|
47112
|
-
className: "wrap-break-word whitespace-pre-wrap",
|
|
47113
|
-
children: o
|
|
47114
|
-
}), /* @__PURE__ */ (0, K.jsx)(ZV, {
|
|
47115
|
-
...s?.arrow,
|
|
47116
|
-
className: p,
|
|
47117
|
-
asChild: !0,
|
|
47118
|
-
children: /* @__PURE__ */ (0, K.jsx)("svg", {
|
|
47119
|
-
viewBox: "0 0 18 9",
|
|
47120
|
-
children: /* @__PURE__ */ (0, K.jsx)("path", { d: qV })
|
|
47121
|
-
})
|
|
47122
|
-
})]
|
|
47123
|
-
})]
|
|
47124
|
-
})
|
|
47125
|
-
});
|
|
47126
47196
|
};
|
|
47127
|
-
|
|
47197
|
+
Gj("z-50 rounded-md", "text-body-sm font-medium text-center", "data-[side=top]:animate-tooltip-in-top data-[side=bottom]:animate-tooltip-in-bottom", "data-[side=left]:animate-tooltip-in-left data-[side=right]:animate-tooltip-in-right", "data-[state=closed]:animate-tooltip-out", "whitespace-pre-wrap", "wrap-break-word");
|
|
47198
|
+
function WV(e) {
|
|
47128
47199
|
if (!e || typeof document > "u") return;
|
|
47129
47200
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
47130
47201
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
47131
47202
|
}
|
|
47132
47203
|
Array(12).fill(0);
|
|
47133
|
-
var
|
|
47204
|
+
var GV = 1, KV = new class {
|
|
47134
47205
|
constructor() {
|
|
47135
47206
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
47136
47207
|
let t = this.subscribers.indexOf(e);
|
|
@@ -47140,7 +47211,7 @@ var tH = 1, nH = new class {
|
|
|
47140
47211
|
}, this.addToast = (e) => {
|
|
47141
47212
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
47142
47213
|
}, this.create = (e) => {
|
|
47143
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id :
|
|
47214
|
+
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : GV++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
47144
47215
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
47145
47216
|
...n,
|
|
47146
47217
|
...e,
|
|
@@ -47205,7 +47276,7 @@ var tH = 1, nH = new class {
|
|
|
47205
47276
|
type: "default",
|
|
47206
47277
|
message: e
|
|
47207
47278
|
});
|
|
47208
|
-
else if (
|
|
47279
|
+
else if (JV(e) && !e.ok) {
|
|
47209
47280
|
i = !1;
|
|
47210
47281
|
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !O.isValidElement(r) ? r : { message: r };
|
|
47211
47282
|
this.create({
|
|
@@ -47249,7 +47320,7 @@ var tH = 1, nH = new class {
|
|
|
47249
47320
|
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
|
|
47250
47321
|
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
|
|
47251
47322
|
}, this.custom = (e, t) => {
|
|
47252
|
-
let n = t?.id ||
|
|
47323
|
+
let n = t?.id || GV++;
|
|
47253
47324
|
return this.create({
|
|
47254
47325
|
jsx: e(n),
|
|
47255
47326
|
id: n,
|
|
@@ -47257,49 +47328,49 @@ var tH = 1, nH = new class {
|
|
|
47257
47328
|
}), n;
|
|
47258
47329
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
47259
47330
|
}
|
|
47260
|
-
}(),
|
|
47261
|
-
let n = t?.id ||
|
|
47262
|
-
return
|
|
47331
|
+
}(), qV = (e, t) => {
|
|
47332
|
+
let n = t?.id || GV++;
|
|
47333
|
+
return KV.addToast({
|
|
47263
47334
|
title: e,
|
|
47264
47335
|
...t,
|
|
47265
47336
|
id: n
|
|
47266
47337
|
}), n;
|
|
47267
|
-
},
|
|
47268
|
-
Object.assign(
|
|
47269
|
-
success:
|
|
47270
|
-
info:
|
|
47271
|
-
warning:
|
|
47272
|
-
error:
|
|
47273
|
-
custom:
|
|
47274
|
-
message:
|
|
47275
|
-
promise:
|
|
47276
|
-
dismiss:
|
|
47277
|
-
loading:
|
|
47338
|
+
}, JV = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number";
|
|
47339
|
+
Object.assign(qV, {
|
|
47340
|
+
success: KV.success,
|
|
47341
|
+
info: KV.info,
|
|
47342
|
+
warning: KV.warning,
|
|
47343
|
+
error: KV.error,
|
|
47344
|
+
custom: KV.custom,
|
|
47345
|
+
message: KV.message,
|
|
47346
|
+
promise: KV.promise,
|
|
47347
|
+
dismiss: KV.dismiss,
|
|
47348
|
+
loading: KV.loading
|
|
47278
47349
|
}, {
|
|
47279
|
-
getHistory: () =>
|
|
47280
|
-
getToasts: () =>
|
|
47281
|
-
}), eH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}"), Gj("fixed inset-0 z-40 bg-primary-5 opacity-60", "transition data-closed:opacity-0", "data-enter:duration-300 data-enter:ease-out", "data-leave:duration-200 data-leave:ease-in");
|
|
47282
|
-
var
|
|
47283
|
-
Gj(
|
|
47284
|
-
var
|
|
47350
|
+
getHistory: () => KV.toasts,
|
|
47351
|
+
getToasts: () => KV.getActiveToasts()
|
|
47352
|
+
}), WV("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}"), Gj("fixed inset-0 z-40 bg-primary-5 opacity-60", "transition data-closed:opacity-0", "data-enter:duration-300 data-enter:ease-out", "data-leave:duration-200 data-leave:ease-in");
|
|
47353
|
+
var YV = Gj("relative flex flex-col overflow-y-auto bg-white p-8 pt-0 shadow-2xl", Gj("transition will-change-transform", "data-enter:duration-500 data-enter:ease-spring", "data-leave:duration-300 data-leave:ease-in"));
|
|
47354
|
+
Gj(YV, "h-full w-104 max-w-full data-closed:translate-x-full"), Gj(YV, "h-full w-104 max-w-full data-closed:-translate-x-full"), Gj(YV, "w-full max-h-104 data-closed:-translate-y-full"), Gj(YV, "w-full max-h-104 data-closed:translate-y-full");
|
|
47355
|
+
var XV = .05, ZV = ({ siteName: e, siteLogoUrl: t, description: n, isCollapsed: r = !1, collapsibleContent: i, omegaConfig: a, showOmegaProgress: o = !0, primaryColor: s = Gz, isCollapsible: c = !0, logoSize: l }) => {
|
|
47285
47356
|
let [u, d] = (0, O.useState)(r);
|
|
47286
47357
|
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47287
47358
|
className: "overflow-hidden",
|
|
47288
47359
|
style: {
|
|
47289
47360
|
maxWidth: "360px",
|
|
47290
47361
|
borderRadius: "4px",
|
|
47291
|
-
border: `1px solid ${
|
|
47362
|
+
border: `1px solid ${$z(s, XV)}`
|
|
47292
47363
|
},
|
|
47293
47364
|
children: [/* @__PURE__ */ (0, K.jsx)("div", {
|
|
47294
47365
|
className: "min-h-20 px-4 py-3",
|
|
47295
|
-
style: { backgroundColor:
|
|
47366
|
+
style: { backgroundColor: $z(s, XV) },
|
|
47296
47367
|
children: /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47297
47368
|
className: "flex items-center gap-4",
|
|
47298
47369
|
children: [/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47299
47370
|
className: "flex-1",
|
|
47300
47371
|
children: [/* @__PURE__ */ (0, K.jsx)("div", {
|
|
47301
47372
|
className: "flex items-center",
|
|
47302
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47373
|
+
children: /* @__PURE__ */ (0, K.jsx)(PV, {
|
|
47303
47374
|
siteLogoUrl: t,
|
|
47304
47375
|
siteName: e,
|
|
47305
47376
|
logoSize: l
|
|
@@ -47327,7 +47398,7 @@ var oH = .05, sH = ({ siteName: e, siteLogoUrl: t, description: n, isCollapsed:
|
|
|
47327
47398
|
})]
|
|
47328
47399
|
}), o && a && /* @__PURE__ */ (0, K.jsx)("div", {
|
|
47329
47400
|
className: "mr-1 flex justify-center",
|
|
47330
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47401
|
+
children: /* @__PURE__ */ (0, K.jsx)(zB, {
|
|
47331
47402
|
...a,
|
|
47332
47403
|
progressColor: s
|
|
47333
47404
|
})
|
|
@@ -47335,15 +47406,15 @@ var oH = .05, sH = ({ siteName: e, siteLogoUrl: t, description: n, isCollapsed:
|
|
|
47335
47406
|
})
|
|
47336
47407
|
}), !u && i && /* @__PURE__ */ (0, K.jsx)("div", {
|
|
47337
47408
|
className: "min-h-14 bg-white px-4 py-2.5",
|
|
47338
|
-
style: { borderTop: `1px solid ${
|
|
47409
|
+
style: { borderTop: `1px solid ${$z(s, .05)}` },
|
|
47339
47410
|
children: i
|
|
47340
47411
|
})]
|
|
47341
47412
|
});
|
|
47342
|
-
},
|
|
47413
|
+
}, QV = {
|
|
47343
47414
|
sm: "xl",
|
|
47344
47415
|
md: "2xl"
|
|
47345
|
-
},
|
|
47346
|
-
let r = Gj(t, "h-auto"), i =
|
|
47416
|
+
}, $V = ({ size: e = "sm", className: t = "", showOnlyPreferred: n = !1 }) => {
|
|
47417
|
+
let r = Gj(t, "h-auto"), i = QV[e];
|
|
47347
47418
|
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47348
47419
|
className: "flex items-center gap-1",
|
|
47349
47420
|
children: [/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
@@ -47379,140 +47450,7 @@ var oH = .05, sH = ({ siteName: e, siteLogoUrl: t, description: n, isCollapsed:
|
|
|
47379
47450
|
]
|
|
47380
47451
|
})]
|
|
47381
47452
|
});
|
|
47382
|
-
},
|
|
47383
|
-
let a = (0, O.useRef)(null), [o, s] = (0, O.useState)(!1);
|
|
47384
|
-
(0, O.useEffect)(() => {
|
|
47385
|
-
let e = () => {
|
|
47386
|
-
if (a.current) {
|
|
47387
|
-
let { scrollWidth: e, clientWidth: t } = a.current;
|
|
47388
|
-
s(e > t);
|
|
47389
|
-
}
|
|
47390
|
-
};
|
|
47391
|
-
return e(), window.addEventListener("resize", e), () => {
|
|
47392
|
-
window.removeEventListener("resize", e);
|
|
47393
|
-
};
|
|
47394
|
-
}, [e]);
|
|
47395
|
-
let c = /* @__PURE__ */ (0, K.jsx)("span", {
|
|
47396
|
-
ref: a,
|
|
47397
|
-
className: Gj("block truncate", n ? "w-full" : "", i),
|
|
47398
|
-
children: e
|
|
47399
|
-
});
|
|
47400
|
-
return o && r ? /* @__PURE__ */ (0, K.jsx)($V, {
|
|
47401
|
-
content: e,
|
|
47402
|
-
size: t,
|
|
47403
|
-
children: c
|
|
47404
|
-
}) : c;
|
|
47405
|
-
};
|
|
47406
|
-
function dH(e, t) {
|
|
47407
|
-
if (t.cell) return t.cell({ row: e });
|
|
47408
|
-
let n = e[t.id];
|
|
47409
|
-
return n == null ? "" : typeof n != "object" || !("content" in n) ? n : n.content;
|
|
47410
|
-
}
|
|
47411
|
-
function fH(e) {
|
|
47412
|
-
if (e != null) {
|
|
47413
|
-
if (e.sortableValue != null) return e.sortableValue;
|
|
47414
|
-
if (qj(e.content)) return e.content;
|
|
47415
|
-
}
|
|
47416
|
-
}
|
|
47417
|
-
function pH(e, t) {
|
|
47418
|
-
return e == null && t == null ? 0 : e == null ? -1 : t == null ? 1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t));
|
|
47419
|
-
}
|
|
47420
|
-
var mH = "No results found.", hH = "button, a, input, select, textarea, [role=\"button\"], [data-row-click-ignore]", gH = (e) => {
|
|
47421
|
-
let t = e.target;
|
|
47422
|
-
if (!t || t === e.currentTarget) return !1;
|
|
47423
|
-
let n = t.closest(hH);
|
|
47424
|
-
return n !== null && n !== e.currentTarget;
|
|
47425
|
-
}, _H = ({ columns: e, rows: t, showHeader: n = !0, className: r, sorting: i, onSortingChange: a, columnVisibility: o, emptyMessage: s, onRowClick: c }) => {
|
|
47426
|
-
let l = (e) => {
|
|
47427
|
-
if (c) return {
|
|
47428
|
-
tabIndex: 0,
|
|
47429
|
-
className: "cursor-pointer",
|
|
47430
|
-
onClick: (t) => {
|
|
47431
|
-
gH(t) || c(e, t);
|
|
47432
|
-
},
|
|
47433
|
-
onKeyDown: (t) => {
|
|
47434
|
-
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), c(e, t));
|
|
47435
|
-
}
|
|
47436
|
-
};
|
|
47437
|
-
}, [u, d] = (0, O.useState)(void 0), f = a !== void 0, p = f ? i : u, m = f ? a : d, h = (0, O.useMemo)(() => e.filter((e) => o && e.id in o ? o[e.id] : !0), [e, o]), g = (0, O.useMemo)(() => {
|
|
47438
|
-
if (!p) return t;
|
|
47439
|
-
let n = e.find((e) => e.id === p.id);
|
|
47440
|
-
if (!n) return t;
|
|
47441
|
-
let r = [...t];
|
|
47442
|
-
return r.sort((e, t) => {
|
|
47443
|
-
let r = n.onSort ? n.onSort(e, t, p.id) : pH(fH(e[n.id]), fH(t[n.id]));
|
|
47444
|
-
return p.desc ? -r : r;
|
|
47445
|
-
}), r;
|
|
47446
|
-
}, [
|
|
47447
|
-
t,
|
|
47448
|
-
p,
|
|
47449
|
-
e
|
|
47450
|
-
]), _ = (e) => {
|
|
47451
|
-
!p || p.id !== e.id ? m({
|
|
47452
|
-
id: e.id,
|
|
47453
|
-
desc: !1
|
|
47454
|
-
}) : p.desc ? m(void 0) : m({
|
|
47455
|
-
id: e.id,
|
|
47456
|
-
desc: !0
|
|
47457
|
-
});
|
|
47458
|
-
};
|
|
47459
|
-
return /* @__PURE__ */ (0, K.jsxs)(GI, {
|
|
47460
|
-
className: Gj("shadow-soft h-auto max-h-full overflow-y-scroll", r),
|
|
47461
|
-
children: [n && /* @__PURE__ */ (0, K.jsx)(qI, { children: /* @__PURE__ */ (0, K.jsx)(YI, {
|
|
47462
|
-
className: "h-14",
|
|
47463
|
-
children: h.map((e) => {
|
|
47464
|
-
let t = e.enableSorting, n = p?.id === e.id ? p : void 0, r = n ? n.desc ? "descending" : "ascending" : "none", i = /* @__PURE__ */ (0, K.jsxs)("span", {
|
|
47465
|
-
className: Gj(e.innerClassName, "flex items-center gap-2"),
|
|
47466
|
-
children: [e.header, t && /* @__PURE__ */ (0, K.jsx)("span", { children: n ? n.desc ? /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
47467
|
-
name: "ArrowDownIcon",
|
|
47468
|
-
variant: "outline",
|
|
47469
|
-
size: "sm"
|
|
47470
|
-
}) : /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
47471
|
-
name: "ArrowUpIcon",
|
|
47472
|
-
variant: "outline",
|
|
47473
|
-
size: "sm"
|
|
47474
|
-
}) : /* @__PURE__ */ (0, K.jsx)(SI, {
|
|
47475
|
-
name: "ArrowsUpDownIcon",
|
|
47476
|
-
variant: "outline",
|
|
47477
|
-
size: "sm"
|
|
47478
|
-
}) })]
|
|
47479
|
-
});
|
|
47480
|
-
return /* @__PURE__ */ (0, K.jsx)(JI, {
|
|
47481
|
-
scope: "col",
|
|
47482
|
-
"aria-sort": t ? r : void 0,
|
|
47483
|
-
canSort: t,
|
|
47484
|
-
className: e.headerClassName,
|
|
47485
|
-
handleToggleSort: t ? () => _(e) : void 0,
|
|
47486
|
-
children: i
|
|
47487
|
-
}, e.id);
|
|
47488
|
-
})
|
|
47489
|
-
}) }), /* @__PURE__ */ (0, K.jsx)("tbody", { children: g.length === 0 ? /* @__PURE__ */ (0, K.jsx)(YI, { children: /* @__PURE__ */ (0, K.jsx)(KI, {
|
|
47490
|
-
colSpan: h.length,
|
|
47491
|
-
className: "text-center",
|
|
47492
|
-
children: /* @__PURE__ */ (0, K.jsx)(HI, {
|
|
47493
|
-
className: "m-20",
|
|
47494
|
-
children: s ?? mH
|
|
47495
|
-
})
|
|
47496
|
-
}) }) : g.map((e) => /* @__PURE__ */ (0, K.jsx)(YI, {
|
|
47497
|
-
...l(e),
|
|
47498
|
-
children: h.map((t) => {
|
|
47499
|
-
let n = dH(e, t);
|
|
47500
|
-
return /* @__PURE__ */ (0, K.jsx)(KI, { children: t.showTooltip ?? typeof n == "string" ? /* @__PURE__ */ (0, K.jsx)(HI, {
|
|
47501
|
-
size: "md",
|
|
47502
|
-
as: "span",
|
|
47503
|
-
children: /* @__PURE__ */ (0, K.jsx)(uH, {
|
|
47504
|
-
content: n,
|
|
47505
|
-
tooltipSize: "md"
|
|
47506
|
-
})
|
|
47507
|
-
}) : n }, t.id);
|
|
47508
|
-
})
|
|
47509
|
-
}, e.id)) })]
|
|
47510
|
-
});
|
|
47511
|
-
};
|
|
47512
|
-
_H.displayName = "DataTable";
|
|
47513
|
-
//#endregion
|
|
47514
|
-
//#region src/Components/Modal/styled.ts
|
|
47515
|
-
var vH = Bf.div`
|
|
47453
|
+
}, eH = Bf.div`
|
|
47516
47454
|
position: fixed;
|
|
47517
47455
|
top: 0;
|
|
47518
47456
|
right: 0;
|
|
@@ -47520,7 +47458,7 @@ var vH = Bf.div`
|
|
|
47520
47458
|
left: 0;
|
|
47521
47459
|
z-index: 2147483647;
|
|
47522
47460
|
background: rgba(0, 0, 0, 0.6);
|
|
47523
|
-
`,
|
|
47461
|
+
`, tH = Bf.div`
|
|
47524
47462
|
position: fixed;
|
|
47525
47463
|
z-index: 2147483647;
|
|
47526
47464
|
width: 100%;
|
|
@@ -47535,7 +47473,7 @@ var vH = Bf.div`
|
|
|
47535
47473
|
height: 100%;
|
|
47536
47474
|
justify-content: center;
|
|
47537
47475
|
}
|
|
47538
|
-
`,
|
|
47476
|
+
`, nH = Bf.div`
|
|
47539
47477
|
width: 100%;
|
|
47540
47478
|
${({ minHeight: e }) => vf`
|
|
47541
47479
|
min-height: ${e};
|
|
@@ -47543,7 +47481,7 @@ var vH = Bf.div`
|
|
|
47543
47481
|
background: ${Uf.white};
|
|
47544
47482
|
border-radius: 6px;
|
|
47545
47483
|
position: relative;
|
|
47546
|
-
max-width: ${
|
|
47484
|
+
max-width: ${aV};
|
|
47547
47485
|
overflow: auto;
|
|
47548
47486
|
@media (max-width: ${Kf.xs}) {
|
|
47549
47487
|
max-width: 95vw;
|
|
@@ -47553,20 +47491,20 @@ var vH = Bf.div`
|
|
|
47553
47491
|
height: max-content;
|
|
47554
47492
|
justify-content: center;
|
|
47555
47493
|
}
|
|
47556
|
-
`,
|
|
47494
|
+
`, rH = ({ children: e, onClose: t, minHeight: n }) => /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(eH, {}), /* @__PURE__ */ (0, K.jsx)(tH, {
|
|
47557
47495
|
onClick: t,
|
|
47558
47496
|
role: "dialog",
|
|
47559
47497
|
"aria-label": "Supertab Modal Dialog",
|
|
47560
47498
|
children: /* @__PURE__ */ (0, K.jsx)(Jv.FocusTrap, {
|
|
47561
47499
|
active: !0,
|
|
47562
47500
|
focusTrapOptions: { initialFocus: !1 },
|
|
47563
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47501
|
+
children: /* @__PURE__ */ (0, K.jsx)(nH, {
|
|
47564
47502
|
onClick: (e) => e.stopPropagation(),
|
|
47565
47503
|
minHeight: n,
|
|
47566
47504
|
children: /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: e })
|
|
47567
47505
|
})
|
|
47568
47506
|
})
|
|
47569
|
-
})] }),
|
|
47507
|
+
})] }), iH = ({ color: e = "#333333", height: t = 20 }) => /* @__PURE__ */ (0, K.jsxs)("svg", {
|
|
47570
47508
|
"data-testid": "full-supertab-logo",
|
|
47571
47509
|
height: t,
|
|
47572
47510
|
viewBox: "0 0 109 20",
|
|
@@ -47611,7 +47549,7 @@ var vH = Bf.div`
|
|
|
47611
47549
|
fill: "currentColor"
|
|
47612
47550
|
})
|
|
47613
47551
|
]
|
|
47614
|
-
}),
|
|
47552
|
+
}), aH = Bf.button`
|
|
47615
47553
|
border: none;
|
|
47616
47554
|
background: none;
|
|
47617
47555
|
position: absolute;
|
|
@@ -47621,7 +47559,7 @@ var vH = Bf.div`
|
|
|
47621
47559
|
&:hover {
|
|
47622
47560
|
cursor: pointer;
|
|
47623
47561
|
}
|
|
47624
|
-
`,
|
|
47562
|
+
`, oH = Bf.div`
|
|
47625
47563
|
position: fixed;
|
|
47626
47564
|
top: 0;
|
|
47627
47565
|
right: 0;
|
|
@@ -47629,7 +47567,7 @@ var vH = Bf.div`
|
|
|
47629
47567
|
left: 0;
|
|
47630
47568
|
z-index: 2147483647;
|
|
47631
47569
|
background: rgb(0, 0, 0, 0.8);
|
|
47632
|
-
`,
|
|
47570
|
+
`, sH = Bf.div`
|
|
47633
47571
|
position: fixed;
|
|
47634
47572
|
z-index: 2147483647;
|
|
47635
47573
|
height: 100%;
|
|
@@ -47646,7 +47584,7 @@ var vH = Bf.div`
|
|
|
47646
47584
|
left: 0;
|
|
47647
47585
|
height: 100vh;
|
|
47648
47586
|
}
|
|
47649
|
-
`,
|
|
47587
|
+
`, cH = Bf.div`
|
|
47650
47588
|
font-size: 15px;
|
|
47651
47589
|
line-height: 24px;
|
|
47652
47590
|
color: white;
|
|
@@ -47655,34 +47593,34 @@ var vH = Bf.div`
|
|
|
47655
47593
|
align-items: center;
|
|
47656
47594
|
flex-direction: column;
|
|
47657
47595
|
text-align: center;
|
|
47658
|
-
`,
|
|
47596
|
+
`, lH = Bf.div`
|
|
47659
47597
|
margin-top: 24px;
|
|
47660
47598
|
margin-bottom: 33px;
|
|
47661
|
-
`,
|
|
47599
|
+
`, uH = Bf.button`
|
|
47662
47600
|
border: none;
|
|
47663
47601
|
background: none;
|
|
47664
47602
|
text-decoration: underline;
|
|
47665
|
-
`,
|
|
47603
|
+
`, dH = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M14%201.41L12.59%200L7%205.59L1.41%200L0%201.41L5.59%207L0%2012.59L1.41%2014L7%208.41L12.59%2014L14%2012.59L8.41%207L14%201.41Z'%20fill='%2398A3A7'/%3e%3c/svg%3e", fH = ({ onContinue: e, onClose: t, whiteLabel: n = !1 }) => /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(oH, {}), /* @__PURE__ */ (0, K.jsx)(sH, {
|
|
47666
47604
|
role: "dialog",
|
|
47667
|
-
"aria-label": "Supertab Modal Dialog",
|
|
47668
|
-
children: /* @__PURE__ */ (0, K.jsx)(Jv.FocusTrap, { children: /* @__PURE__ */ (0, K.jsxs)(
|
|
47669
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
47605
|
+
"aria-label": n ? "Checkout Modal Dialog" : "Supertab Modal Dialog",
|
|
47606
|
+
children: /* @__PURE__ */ (0, K.jsx)(Jv.FocusTrap, { children: /* @__PURE__ */ (0, K.jsxs)(cH, { children: [
|
|
47607
|
+
/* @__PURE__ */ (0, K.jsx)(aH, {
|
|
47670
47608
|
onClick: t,
|
|
47671
47609
|
"data-testid": "close-button",
|
|
47672
47610
|
children: /* @__PURE__ */ (0, K.jsx)("img", {
|
|
47673
|
-
src:
|
|
47611
|
+
src: dH,
|
|
47674
47612
|
alt: "Close button"
|
|
47675
47613
|
})
|
|
47676
47614
|
}),
|
|
47677
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
47615
|
+
!n && /* @__PURE__ */ (0, K.jsx)(iH, {
|
|
47678
47616
|
color: "white",
|
|
47679
47617
|
height: 25
|
|
47680
47618
|
}),
|
|
47681
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
47619
|
+
/* @__PURE__ */ (0, K.jsx)(lH, { children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
47682
47620
|
size: "md",
|
|
47683
|
-
children: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "overlay_during_popup.message" })
|
|
47621
|
+
children: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: n ? "overlay_during_popup.message_white_label" : "overlay_during_popup.message" })
|
|
47684
47622
|
}) }),
|
|
47685
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
47623
|
+
/* @__PURE__ */ (0, K.jsx)(uH, {
|
|
47686
47624
|
onClick: e,
|
|
47687
47625
|
children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
47688
47626
|
size: "md",
|
|
@@ -47690,32 +47628,32 @@ var vH = Bf.div`
|
|
|
47690
47628
|
})
|
|
47691
47629
|
})
|
|
47692
47630
|
] }) })
|
|
47693
|
-
})] }),
|
|
47631
|
+
})] }), pH = ({ children: e, onBackClick: t, onCloseClick: n, showVisaLogo: r = !1, showPaymentMethods: i = !0 }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47694
47632
|
className: "w-full bg-white flex flex-col",
|
|
47695
47633
|
style: { padding: "18px" },
|
|
47696
47634
|
children: [
|
|
47697
47635
|
/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47698
47636
|
className: "flex justify-between",
|
|
47699
47637
|
style: { marginBottom: "28px" },
|
|
47700
|
-
children: [t ? /* @__PURE__ */ (0, K.jsx)(
|
|
47638
|
+
children: [t ? /* @__PURE__ */ (0, K.jsx)(FV, {
|
|
47701
47639
|
onClick: t,
|
|
47702
47640
|
backButtonLabel: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "paygate.back_button_label" })
|
|
47703
|
-
}) : /* @__PURE__ */ (0, K.jsx)("div", {}), n && /* @__PURE__ */ (0, K.jsx)(
|
|
47641
|
+
}) : /* @__PURE__ */ (0, K.jsx)("div", {}), n && /* @__PURE__ */ (0, K.jsx)(IV, { onCancel: n })]
|
|
47704
47642
|
}),
|
|
47705
47643
|
/* @__PURE__ */ (0, K.jsx)("div", {
|
|
47706
47644
|
className: "flex-1",
|
|
47707
47645
|
children: e
|
|
47708
47646
|
}),
|
|
47709
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
47647
|
+
/* @__PURE__ */ (0, K.jsx)(CV, {
|
|
47710
47648
|
showVisaLogo: r,
|
|
47711
47649
|
showPaymentMethods: i
|
|
47712
47650
|
})
|
|
47713
47651
|
]
|
|
47714
|
-
}),
|
|
47652
|
+
}), mH = /* @__PURE__ */ function(e) {
|
|
47715
47653
|
return e.PopupWindow = "PopupWindow", e.RefreshingToken = "RefreshingToken", e;
|
|
47716
|
-
}({}),
|
|
47654
|
+
}({}), hH = ({ onRestartAuthorization: e, onClose: t, mode: n, whiteLabel: r = !1 }) => {
|
|
47717
47655
|
switch (n) {
|
|
47718
|
-
case
|
|
47656
|
+
case mH.RefreshingToken: return /* @__PURE__ */ (0, K.jsx)(pH, {
|
|
47719
47657
|
onCloseClick: t,
|
|
47720
47658
|
showVisaLogo: !1,
|
|
47721
47659
|
showPaymentMethods: !0,
|
|
@@ -47731,12 +47669,13 @@ var vH = Bf.div`
|
|
|
47731
47669
|
})]
|
|
47732
47670
|
})
|
|
47733
47671
|
});
|
|
47734
|
-
case
|
|
47672
|
+
case mH.PopupWindow: return /* @__PURE__ */ (0, K.jsx)(fH, {
|
|
47735
47673
|
onContinue: e,
|
|
47736
|
-
onClose: t
|
|
47674
|
+
onClose: t,
|
|
47675
|
+
whiteLabel: r
|
|
47737
47676
|
});
|
|
47738
47677
|
}
|
|
47739
|
-
},
|
|
47678
|
+
}, gH = ({ size: e = 68, color: t = "#343434", speed: n = .6 }) => /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: /* @__PURE__ */ (0, K.jsxs)("svg", {
|
|
47740
47679
|
width: e,
|
|
47741
47680
|
height: e,
|
|
47742
47681
|
viewBox: "0 0 44 44",
|
|
@@ -47753,14 +47692,14 @@ var vH = Bf.div`
|
|
|
47753
47692
|
r: "19",
|
|
47754
47693
|
strokeOpacity: ".3"
|
|
47755
47694
|
}), /* @__PURE__ */ (0, K.jsx)("path", { d: "M41 22c0-10.493-8.507-19-19-19" })]
|
|
47756
|
-
}) }),
|
|
47695
|
+
}) }), _H = /* @__PURE__ */ function(e) {
|
|
47757
47696
|
return e.PriorEntitlement = "prior_entitlement", e.Confirmation = "confirmation", e.About = "about", e.Subscription = "subscription", e;
|
|
47758
|
-
}({}),
|
|
47697
|
+
}({}), vH = ({ onBackClick: e, onCloseClick: t }) => /* @__PURE__ */ (0, K.jsx)(pH, {
|
|
47759
47698
|
onBackClick: e,
|
|
47760
47699
|
onCloseClick: t,
|
|
47761
47700
|
showVisaLogo: !1,
|
|
47762
47701
|
showPaymentMethods: !0,
|
|
47763
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47702
|
+
children: /* @__PURE__ */ (0, K.jsx)(zV, {
|
|
47764
47703
|
title: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.subscription_explainer.title" }),
|
|
47765
47704
|
content: /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
47766
47705
|
i18nKey: "widget.purchasing.subscription_explainer.content",
|
|
@@ -47777,7 +47716,7 @@ var vH = Bf.div`
|
|
|
47777
47716
|
ctaButtonLabel: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.subscription_explainer.cta_button_label" }),
|
|
47778
47717
|
accountSettingsUrl: le()
|
|
47779
47718
|
})
|
|
47780
|
-
}),
|
|
47719
|
+
}), yH = ({ to: e, updateInterval: t }) => {
|
|
47781
47720
|
let [n, r] = (0, O.useState)(ce(e));
|
|
47782
47721
|
(0, O.useEffect)(() => {
|
|
47783
47722
|
if (t) {
|
|
@@ -47798,7 +47737,7 @@ var vH = Bf.div`
|
|
|
47798
47737
|
return c && e.push(p(i)), l && e.push(m(a)), u && e.push(h(o, "hour")), d && e.push(h(s, "minute")), e.join(" ");
|
|
47799
47738
|
})()
|
|
47800
47739
|
});
|
|
47801
|
-
},
|
|
47740
|
+
}, bH = ({ onClick: e }) => {
|
|
47802
47741
|
let { t } = L_();
|
|
47803
47742
|
return /* @__PURE__ */ (0, K.jsxs)("span", {
|
|
47804
47743
|
className: "inline-flex items-center whitespace-nowrap",
|
|
@@ -47814,31 +47753,31 @@ var vH = Bf.div`
|
|
|
47814
47753
|
})
|
|
47815
47754
|
})]
|
|
47816
47755
|
});
|
|
47817
|
-
},
|
|
47756
|
+
}, xH = /* @__PURE__ */ function(e) {
|
|
47818
47757
|
return e.Expired = "expired", e.TimePass = "timePass", e.Subscription = "subscription", e;
|
|
47819
|
-
}({}),
|
|
47820
|
-
let d = l ?
|
|
47821
|
-
return /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(
|
|
47758
|
+
}({}), SH = ({ merchantName: e, merchantLogoUrl: t, hasTimePassEntitlement: n, primaryColor: r, textColor: i, onClose: a, sortedTimePassEntitlements: o, subscriptionEntitlement: s, onInfoClick: c, isEntitlementExpired: l = !1, onContinueClick: u }) => {
|
|
47759
|
+
let d = l ? xH.Expired : n ? xH.TimePass : xH.Subscription, f = l ? u : a;
|
|
47760
|
+
return /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(ZV, {
|
|
47822
47761
|
siteName: e,
|
|
47823
47762
|
siteLogoUrl: t,
|
|
47824
|
-
isCollapsed: d ===
|
|
47825
|
-
isCollapsible: d ===
|
|
47763
|
+
isCollapsed: d === xH.TimePass || d === xH.Expired,
|
|
47764
|
+
isCollapsible: d === xH.Subscription,
|
|
47826
47765
|
description: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
47827
47766
|
size: "sm",
|
|
47828
47767
|
className: "text-deprecatedNeutral-9 !font-medium text-left",
|
|
47829
47768
|
children: (() => {
|
|
47830
47769
|
switch (d) {
|
|
47831
|
-
case
|
|
47832
|
-
case
|
|
47770
|
+
case xH.Expired: return /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.checking_and_handling_prior_entitlement.expired.message.time_pass" });
|
|
47771
|
+
case xH.TimePass: return /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
47833
47772
|
i18nKey: "widget.checking_and_handling_prior_entitlement.showing_time_remaining.description.time_pass",
|
|
47834
|
-
components: [/* @__PURE__ */ (0, K.jsx)(
|
|
47773
|
+
components: [/* @__PURE__ */ (0, K.jsx)(yH, {
|
|
47835
47774
|
to: new Date(o?.[0]?.expires ?? ""),
|
|
47836
47775
|
updateInterval: 1e3
|
|
47837
47776
|
}, "timeRemaining")]
|
|
47838
47777
|
});
|
|
47839
|
-
case
|
|
47778
|
+
case xH.Subscription: return /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
47840
47779
|
i18nKey: "widget.checking_and_handling_prior_entitlement.showing_time_remaining.description.subscription",
|
|
47841
|
-
components: [/* @__PURE__ */ (0, K.jsx)(
|
|
47780
|
+
components: [/* @__PURE__ */ (0, K.jsx)(yH, {
|
|
47842
47781
|
to: new Date(s?.expires ?? ""),
|
|
47843
47782
|
updateInterval: 1e3
|
|
47844
47783
|
}, "timeRemaining")]
|
|
@@ -47858,7 +47797,7 @@ var vH = Bf.div`
|
|
|
47858
47797
|
}), /* @__PURE__ */ (0, K.jsxs)(WI, {
|
|
47859
47798
|
size: "sm",
|
|
47860
47799
|
className: "text-deprecatedNeutral-9 mt-1 inline-flex items-center",
|
|
47861
|
-
children: [/* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.collapsible_explanation.info.pay_now" }), /* @__PURE__ */ (0, K.jsx)(
|
|
47800
|
+
children: [/* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.collapsible_explanation.info.pay_now" }), /* @__PURE__ */ (0, K.jsx)(bH, { onClick: c })]
|
|
47862
47801
|
})]
|
|
47863
47802
|
}),
|
|
47864
47803
|
primaryColor: r,
|
|
@@ -47881,13 +47820,13 @@ var vH = Bf.div`
|
|
|
47881
47820
|
}), /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.checking_and_handling_prior_entitlement.showing_time_remaining.cta_button_label" })] })
|
|
47882
47821
|
})
|
|
47883
47822
|
})] });
|
|
47884
|
-
},
|
|
47823
|
+
}, CH = (e) => {
|
|
47885
47824
|
let t = Jh(e, (e) => e), n = e.send.bind(e), { priorEntitlement: r, merchantName: i, merchantLogoUrl: a, experience: o, uiConfig: s } = t.context, c = (0, O.useMemo)(() => oe(r), [r]), l = (0, O.useMemo)(() => se(r), [r]), u = l && [...l].sort((e, t) => {
|
|
47886
47825
|
let n = new Date(e.expires).getTime();
|
|
47887
47826
|
return new Date(t.expires).getTime() - n;
|
|
47888
47827
|
}), d = t.matches("CheckingPriorEntitlement"), f = t.matches("ShowingTimeRemaining"), p = t.matches("EntitlementExpired"), m = {
|
|
47889
|
-
primary: s?.colors?.background ?? o?.configuration?.uiConfig?.colors?.background ??
|
|
47890
|
-
text: s?.colors?.text ?? o?.configuration?.uiConfig?.colors?.text ??
|
|
47828
|
+
primary: s?.colors?.background ?? o?.configuration?.uiConfig?.colors?.background ?? rV.background,
|
|
47829
|
+
text: s?.colors?.text ?? o?.configuration?.uiConfig?.colors?.text ?? rV.text
|
|
47891
47830
|
};
|
|
47892
47831
|
return P({ event: "view_prior_entitlement_time_remaining" }, f), P({ event: "view_prior_entitlement_expired" }, p), {
|
|
47893
47832
|
send: n,
|
|
@@ -47901,10 +47840,10 @@ var vH = Bf.div`
|
|
|
47901
47840
|
isEntitlementExpired: p,
|
|
47902
47841
|
uiColors: m
|
|
47903
47842
|
};
|
|
47904
|
-
},
|
|
47905
|
-
let { send: n, merchantName: r, merchantLogoUrl: i, subscriptionEntitlement: a, hasTimePassEntitlement: o, sortedTimePassEntitlements: s, uiColors: c, isLoading: l, isShowingTimeRemaining: u, isEntitlementExpired: d } =
|
|
47906
|
-
if (f ===
|
|
47907
|
-
if (f ===
|
|
47843
|
+
}, wH = ({ checkingAndHandlingPriorEntitlementActor: e, onBack: t }) => {
|
|
47844
|
+
let { send: n, merchantName: r, merchantLogoUrl: i, subscriptionEntitlement: a, hasTimePassEntitlement: o, sortedTimePassEntitlements: s, uiColors: c, isLoading: l, isShowingTimeRemaining: u, isEntitlementExpired: d } = CH(e), [f, p] = (0, O.useState)(_H.Confirmation), m = () => p(_H.Subscription), h = () => p(_H.Confirmation), g = () => n({ type: "close" });
|
|
47845
|
+
if (f === _H.Subscription) return /* @__PURE__ */ (0, K.jsx)(vH, { onBackClick: h });
|
|
47846
|
+
if (f === _H.Confirmation) return /* @__PURE__ */ (0, K.jsx)(pH, {
|
|
47908
47847
|
onCloseClick: g,
|
|
47909
47848
|
showVisaLogo: !1,
|
|
47910
47849
|
showPaymentMethods: !0,
|
|
@@ -47913,8 +47852,8 @@ var vH = Bf.div`
|
|
|
47913
47852
|
children: [l && /* @__PURE__ */ (0, K.jsx)("div", {
|
|
47914
47853
|
className: "flex justify-center items-center",
|
|
47915
47854
|
style: { minHeight: "136px" },
|
|
47916
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
47917
|
-
}), (u || d) && /* @__PURE__ */ (0, K.jsx)(
|
|
47855
|
+
children: /* @__PURE__ */ (0, K.jsx)(gH, {})
|
|
47856
|
+
}), (u || d) && /* @__PURE__ */ (0, K.jsx)(SH, {
|
|
47918
47857
|
merchantName: r,
|
|
47919
47858
|
merchantLogoUrl: i,
|
|
47920
47859
|
hasTimePassEntitlement: o,
|
|
@@ -47932,21 +47871,22 @@ var vH = Bf.div`
|
|
|
47932
47871
|
};
|
|
47933
47872
|
//#endregion
|
|
47934
47873
|
//#region src/PurchaseWidget/states/AuthorizingAndHandlingPriorEntitlement/AuthorizingAndHandlingPriorEntitlementComponent.tsx
|
|
47935
|
-
function
|
|
47874
|
+
function TH({ actor: e, onInfoButtonClick: t, onBack: n }) {
|
|
47936
47875
|
let r = Jh(e, (e) => e), i = e.send.bind(e);
|
|
47937
|
-
return /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [r.matches("Authorizing") && /* @__PURE__ */ (0, K.jsx)(
|
|
47876
|
+
return /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [r.matches("Authorizing") && /* @__PURE__ */ (0, K.jsx)(hH, {
|
|
47938
47877
|
onRestartAuthorization: () => i({ type: "restartAuthorization" }),
|
|
47939
47878
|
onClose: () => i({ type: "close" }),
|
|
47940
47879
|
onInfoButtonClick: t,
|
|
47941
|
-
mode: r.context.supertabClient.auth.status === "expired" ?
|
|
47942
|
-
|
|
47880
|
+
mode: r.context.supertabClient.auth.status === "expired" ? mH.RefreshingToken : mH.PopupWindow,
|
|
47881
|
+
whiteLabel: r.context.site?.whiteLabel ?? !1
|
|
47882
|
+
}), r.matches("CheckingAndHandlingPriorEntitlement") && /* @__PURE__ */ (0, K.jsx)(wH, {
|
|
47943
47883
|
checkingAndHandlingPriorEntitlementActor: r.children.checkingAndHandlingPriorEntitlement,
|
|
47944
47884
|
onBack: n
|
|
47945
47885
|
})] });
|
|
47946
47886
|
}
|
|
47947
47887
|
//#endregion
|
|
47948
47888
|
//#region src/Components/ConfirmationScreen/Description.tsx
|
|
47949
|
-
var
|
|
47889
|
+
var EH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
47950
47890
|
className: "flex items-center",
|
|
47951
47891
|
children: [
|
|
47952
47892
|
/* @__PURE__ */ (0, K.jsx)(WI, {
|
|
@@ -47964,11 +47904,11 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
47964
47904
|
children: t
|
|
47965
47905
|
})
|
|
47966
47906
|
]
|
|
47967
|
-
}),
|
|
47907
|
+
}), DH = ({ offering: e }) => {
|
|
47968
47908
|
let t = e.entitlementDetails?.duration;
|
|
47969
47909
|
if (!t) return j.warn("No duration found for offering", e), null;
|
|
47970
47910
|
try {
|
|
47971
|
-
let { count: e, unit: n } =
|
|
47911
|
+
let { count: e, unit: n } = OH(t);
|
|
47972
47912
|
return /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
47973
47913
|
i18nKey: `time_delta.${n}_${e === 1 ? "one" : "other"}`,
|
|
47974
47914
|
count: e,
|
|
@@ -47977,7 +47917,7 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
47977
47917
|
} catch (e) {
|
|
47978
47918
|
return j.warn(`Failed to parse duration: ${t}\n`, e), null;
|
|
47979
47919
|
}
|
|
47980
|
-
},
|
|
47920
|
+
}, OH = (e) => {
|
|
47981
47921
|
let t = parseInt(e);
|
|
47982
47922
|
if (isNaN(t)) throw Error(`Failed to parse duration, count is NaN: ${e}`);
|
|
47983
47923
|
let n = e.slice(-1), r = [
|
|
@@ -47994,11 +47934,11 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
47994
47934
|
count: t,
|
|
47995
47935
|
unit: n
|
|
47996
47936
|
};
|
|
47997
|
-
},
|
|
47937
|
+
}, kH = /* @__PURE__ */ function(e) {
|
|
47998
47938
|
return e.TAB_FULL = "TAB_FULL", e.PAY_NOW = "PAY_NOW", e.PAY_LATER = "PAY_LATER", e;
|
|
47999
|
-
}({}),
|
|
47939
|
+
}({}), AH = ({ offering: e, tabLimit: t, confirmationScreenState: n, onInfoIconClick: r, isPostPurchase: i = !1, isAfterPayment: a = !1, isAfterSubscribing: o = !1, purchase: s = null }) => {
|
|
48000
47940
|
switch (n) {
|
|
48001
|
-
case
|
|
47941
|
+
case kH.TAB_FULL: return /* @__PURE__ */ (0, K.jsx)("div", {
|
|
48002
47942
|
className: "text-left",
|
|
48003
47943
|
"data-testid": "full-tab-info",
|
|
48004
47944
|
children: /* @__PURE__ */ (0, K.jsx)(WI, {
|
|
@@ -48015,7 +47955,7 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48015
47955
|
})
|
|
48016
47956
|
})
|
|
48017
47957
|
});
|
|
48018
|
-
case
|
|
47958
|
+
case kH.PAY_NOW: return i && o && s?.entitlementStatus?.recursAt ? /* @__PURE__ */ (0, K.jsx)("div", {
|
|
48019
47959
|
className: "text-left",
|
|
48020
47960
|
children: /* @__PURE__ */ (0, K.jsxs)(WI, {
|
|
48021
47961
|
size: "sm",
|
|
@@ -48023,7 +47963,7 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48023
47963
|
children: [/* @__PURE__ */ (0, K.jsx)(Y, {
|
|
48024
47964
|
i18nKey: "widget.thank_you.message.after_subscribing",
|
|
48025
47965
|
values: { validTo: new Date(s.entitlementStatus.recursAt).toLocaleDateString() }
|
|
48026
|
-
}), /* @__PURE__ */ (0, K.jsx)(
|
|
47966
|
+
}), /* @__PURE__ */ (0, K.jsx)(bH, { onClick: r })]
|
|
48027
47967
|
})
|
|
48028
47968
|
}) : /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
48029
47969
|
className: "text-left",
|
|
@@ -48032,20 +47972,20 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48032
47972
|
className: "text-deprecatedNeutral-9",
|
|
48033
47973
|
children: /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
48034
47974
|
i18nKey: "widget.purchasing.collapsible_explanation.price.pay_now",
|
|
48035
|
-
components: { duration: /* @__PURE__ */ (0, K.jsx)(
|
|
47975
|
+
components: { duration: /* @__PURE__ */ (0, K.jsx)(DH, { offering: e }) }
|
|
48036
47976
|
})
|
|
48037
47977
|
}), /* @__PURE__ */ (0, K.jsxs)(WI, {
|
|
48038
47978
|
size: "sm",
|
|
48039
47979
|
className: "text-deprecatedNeutral-9 mt-1 inline-flex items-center",
|
|
48040
|
-
children: [/* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.collapsible_explanation.info.pay_now" }), /* @__PURE__ */ (0, K.jsx)(
|
|
47980
|
+
children: [/* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.collapsible_explanation.info.pay_now" }), /* @__PURE__ */ (0, K.jsx)(bH, { onClick: r })]
|
|
48041
47981
|
})]
|
|
48042
47982
|
});
|
|
48043
|
-
case
|
|
47983
|
+
case kH.PAY_LATER: return i && a ? /* @__PURE__ */ (0, K.jsx)("div", {
|
|
48044
47984
|
className: "text-left",
|
|
48045
47985
|
children: /* @__PURE__ */ (0, K.jsxs)(WI, {
|
|
48046
47986
|
size: "sm",
|
|
48047
47987
|
className: "text-deprecatedNeutral-9",
|
|
48048
|
-
children: [/* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.thank_you.message.after_payment" }), /* @__PURE__ */ (0, K.jsx)(
|
|
47988
|
+
children: [/* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.thank_you.message.after_payment" }), /* @__PURE__ */ (0, K.jsx)(bH, { onClick: r })]
|
|
48049
47989
|
})
|
|
48050
47990
|
}) : /* @__PURE__ */ (0, K.jsx)("div", {
|
|
48051
47991
|
className: "text-left",
|
|
@@ -48058,25 +47998,25 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48058
47998
|
price: jl(e.price),
|
|
48059
47999
|
limit: jl(t)
|
|
48060
48000
|
}
|
|
48061
|
-
}), /* @__PURE__ */ (0, K.jsx)(
|
|
48001
|
+
}), /* @__PURE__ */ (0, K.jsx)(bH, { onClick: r })]
|
|
48062
48002
|
})
|
|
48063
48003
|
});
|
|
48064
48004
|
}
|
|
48065
|
-
},
|
|
48066
|
-
let [v, y] = (0, O.useState)(
|
|
48005
|
+
}, jH = ({ offering: e, merchantName: t, merchantLogoUrl: n, tab: r, onBackClick: i, onCloseClick: a, onContinueClick: o, continueButtonLabel: s, primaryColor: c, textColor: l, isButtonDisabled: u, isCollapsed: d = !1, omegaConfig: f, offeringHasBeenConfirmed: p = !1, isPostPurchase: m = !1, isAfterPayment: h = !1, isAfterSubscribing: g = !1, purchase: _ = null }) => {
|
|
48006
|
+
let [v, y] = (0, O.useState)(_H.Confirmation), { isTabFull: b } = ae(r, m ? null : e), x = L(e), S = () => {
|
|
48067
48007
|
if (!e) return null;
|
|
48068
48008
|
let t = !!e.entitlementDetails;
|
|
48069
48009
|
return !x && !t ? e.description : /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
48070
48010
|
i18nKey: x ? "widget.purchasing.purchase_box.description.subscription" : "widget.purchasing.purchase_box.description.time_pass",
|
|
48071
|
-
components: { timeDelta: /* @__PURE__ */ (0, K.jsx)(
|
|
48011
|
+
components: { timeDelta: /* @__PURE__ */ (0, K.jsx)(DH, { offering: e }) }
|
|
48072
48012
|
});
|
|
48073
|
-
}, C = () => y(
|
|
48074
|
-
if (v ===
|
|
48013
|
+
}, C = () => y(_H.About), w = () => y(_H.Subscription), T = () => y(_H.Confirmation);
|
|
48014
|
+
if (v === _H.About && r) return /* @__PURE__ */ (0, K.jsx)(pH, {
|
|
48075
48015
|
onBackClick: T,
|
|
48076
48016
|
onCloseClick: a,
|
|
48077
48017
|
showVisaLogo: !1,
|
|
48078
48018
|
showPaymentMethods: !1,
|
|
48079
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
48019
|
+
children: /* @__PURE__ */ (0, K.jsx)(lV, {
|
|
48080
48020
|
title: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "paygate.how_it_works_label" }),
|
|
48081
48021
|
items: {
|
|
48082
48022
|
createAccount: /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
@@ -48103,12 +48043,12 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48103
48043
|
}
|
|
48104
48044
|
})
|
|
48105
48045
|
});
|
|
48106
|
-
if (v ===
|
|
48046
|
+
if (v === _H.Subscription) return /* @__PURE__ */ (0, K.jsx)(vH, {
|
|
48107
48047
|
onBackClick: T,
|
|
48108
48048
|
onCloseClick: a
|
|
48109
48049
|
});
|
|
48110
48050
|
function E(e, t, n) {
|
|
48111
|
-
return !L(e) && t && n ?
|
|
48051
|
+
return !L(e) && t && n ? kH.TAB_FULL : L(e) ? kH.PAY_NOW : kH.PAY_LATER;
|
|
48112
48052
|
}
|
|
48113
48053
|
return /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
48114
48054
|
className: "w-full bg-white flex flex-col",
|
|
@@ -48117,19 +48057,19 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48117
48057
|
/* @__PURE__ */ (0, K.jsxs)("div", {
|
|
48118
48058
|
className: `flex ${i ? "justify-between" : "justify-end"}`,
|
|
48119
48059
|
style: { marginBottom: "28px" },
|
|
48120
|
-
children: [i && /* @__PURE__ */ (0, K.jsx)(
|
|
48060
|
+
children: [i && /* @__PURE__ */ (0, K.jsx)(FV, {
|
|
48121
48061
|
onClick: i,
|
|
48122
48062
|
backButtonLabel: /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "paygate.back_button_label" })
|
|
48123
|
-
}), a && /* @__PURE__ */ (0, K.jsx)(
|
|
48063
|
+
}), a && /* @__PURE__ */ (0, K.jsx)(IV, { onCancel: a })]
|
|
48124
48064
|
}),
|
|
48125
|
-
e && r ? /* @__PURE__ */ (0, K.jsx)(
|
|
48065
|
+
e && r ? /* @__PURE__ */ (0, K.jsx)(ZV, {
|
|
48126
48066
|
siteName: t,
|
|
48127
48067
|
siteLogoUrl: n,
|
|
48128
|
-
description: /* @__PURE__ */ (0, K.jsx)(
|
|
48068
|
+
description: /* @__PURE__ */ (0, K.jsx)(EH, {
|
|
48129
48069
|
description: S(),
|
|
48130
48070
|
price: jl(e.price)
|
|
48131
48071
|
}),
|
|
48132
|
-
collapsibleContent: /* @__PURE__ */ (0, K.jsx)(
|
|
48072
|
+
collapsibleContent: /* @__PURE__ */ (0, K.jsx)(AH, {
|
|
48133
48073
|
confirmationScreenState: E(e, b, p),
|
|
48134
48074
|
offering: e,
|
|
48135
48075
|
tabLimit: r.limit,
|
|
@@ -48146,7 +48086,7 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48146
48086
|
}) : /* @__PURE__ */ (0, K.jsx)("div", {
|
|
48147
48087
|
className: "flex justify-center items-center",
|
|
48148
48088
|
style: { minHeight: "136px" },
|
|
48149
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
48089
|
+
children: /* @__PURE__ */ (0, K.jsx)(gH, {})
|
|
48150
48090
|
}),
|
|
48151
48091
|
/* @__PURE__ */ (0, K.jsx)("div", {
|
|
48152
48092
|
style: {
|
|
@@ -48166,19 +48106,19 @@ var WH = ({ description: e, price: t }) => /* @__PURE__ */ (0, K.jsxs)("div", {
|
|
|
48166
48106
|
children: /* @__PURE__ */ (0, K.jsx)(K.Fragment, { children: s })
|
|
48167
48107
|
})
|
|
48168
48108
|
}),
|
|
48169
|
-
/* @__PURE__ */ (0, K.jsx)(
|
|
48109
|
+
/* @__PURE__ */ (0, K.jsx)(CV, {
|
|
48170
48110
|
showVisaLogo: !1,
|
|
48171
48111
|
showPaymentMethods: !0
|
|
48172
48112
|
})
|
|
48173
48113
|
]
|
|
48174
48114
|
});
|
|
48175
|
-
}, { slice:
|
|
48176
|
-
function
|
|
48177
|
-
return
|
|
48115
|
+
}, { slice: MH, forEach: NH } = [];
|
|
48116
|
+
function PH(e) {
|
|
48117
|
+
return NH.call(MH.call(arguments, 1), (t) => {
|
|
48178
48118
|
if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
|
|
48179
48119
|
}), e;
|
|
48180
48120
|
}
|
|
48181
|
-
function
|
|
48121
|
+
function FH(e) {
|
|
48182
48122
|
return typeof e == "string" ? [
|
|
48183
48123
|
/<\s*script.*?>/i,
|
|
48184
48124
|
/<\s*\/\s*script\s*>/i,
|
|
@@ -48195,7 +48135,7 @@ function $H(e) {
|
|
|
48195
48135
|
/innerHTML/i
|
|
48196
48136
|
].some((t) => t.test(e)) : !1;
|
|
48197
48137
|
}
|
|
48198
|
-
var
|
|
48138
|
+
var IH = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, LH = function(e, t) {
|
|
48199
48139
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
|
|
48200
48140
|
if (n.maxAge > 0) {
|
|
48201
48141
|
let e = n.maxAge - 0;
|
|
@@ -48203,11 +48143,11 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48203
48143
|
r += `; Max-Age=${Math.floor(e)}`;
|
|
48204
48144
|
}
|
|
48205
48145
|
if (n.domain) {
|
|
48206
|
-
if (!
|
|
48146
|
+
if (!IH.test(n.domain)) throw TypeError("option domain is invalid");
|
|
48207
48147
|
r += `; Domain=${n.domain}`;
|
|
48208
48148
|
}
|
|
48209
48149
|
if (n.path) {
|
|
48210
|
-
if (!
|
|
48150
|
+
if (!IH.test(n.path)) throw TypeError("option path is invalid");
|
|
48211
48151
|
r += `; Path=${n.path}`;
|
|
48212
48152
|
}
|
|
48213
48153
|
if (n.expires) {
|
|
@@ -48230,13 +48170,13 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48230
48170
|
default: throw TypeError("option sameSite is invalid");
|
|
48231
48171
|
}
|
|
48232
48172
|
return n.partitioned && (r += "; Partitioned"), r;
|
|
48233
|
-
},
|
|
48173
|
+
}, RH = {
|
|
48234
48174
|
create(e, t, n, r) {
|
|
48235
48175
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
48236
48176
|
path: "/",
|
|
48237
48177
|
sameSite: "strict"
|
|
48238
48178
|
};
|
|
48239
|
-
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie =
|
|
48179
|
+
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = LH(e, t, i);
|
|
48240
48180
|
},
|
|
48241
48181
|
read(e) {
|
|
48242
48182
|
let t = `${e}=`, n = document.cookie.split(";");
|
|
@@ -48250,17 +48190,17 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48250
48190
|
remove(e, t) {
|
|
48251
48191
|
this.create(e, "", -1, t);
|
|
48252
48192
|
}
|
|
48253
|
-
},
|
|
48193
|
+
}, zH = {
|
|
48254
48194
|
name: "cookie",
|
|
48255
48195
|
lookup(e) {
|
|
48256
48196
|
let { lookupCookie: t } = e;
|
|
48257
|
-
if (t && typeof document < "u") return
|
|
48197
|
+
if (t && typeof document < "u") return RH.read(t) || void 0;
|
|
48258
48198
|
},
|
|
48259
48199
|
cacheUserLanguage(e, t) {
|
|
48260
48200
|
let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
|
|
48261
|
-
n && typeof document < "u" &&
|
|
48201
|
+
n && typeof document < "u" && RH.create(n, e, r, i, a);
|
|
48262
48202
|
}
|
|
48263
|
-
},
|
|
48203
|
+
}, BH = {
|
|
48264
48204
|
name: "querystring",
|
|
48265
48205
|
lookup(e) {
|
|
48266
48206
|
let { lookupQuerystring: t } = e, n;
|
|
@@ -48275,7 +48215,7 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48275
48215
|
}
|
|
48276
48216
|
return n;
|
|
48277
48217
|
}
|
|
48278
|
-
},
|
|
48218
|
+
}, VH = {
|
|
48279
48219
|
name: "hash",
|
|
48280
48220
|
lookup(e) {
|
|
48281
48221
|
let { lookupHash: t, lookupFromHashIndex: n } = e, r;
|
|
@@ -48299,47 +48239,47 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48299
48239
|
}
|
|
48300
48240
|
return r;
|
|
48301
48241
|
}
|
|
48302
|
-
},
|
|
48303
|
-
if (
|
|
48242
|
+
}, HH = null, UH = () => {
|
|
48243
|
+
if (HH !== null) return HH;
|
|
48304
48244
|
try {
|
|
48305
|
-
if (
|
|
48245
|
+
if (HH = typeof window < "u" && window.localStorage !== null, !HH) return !1;
|
|
48306
48246
|
let e = "i18next.translate.boo";
|
|
48307
48247
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
48308
48248
|
} catch {
|
|
48309
|
-
|
|
48249
|
+
HH = !1;
|
|
48310
48250
|
}
|
|
48311
|
-
return
|
|
48312
|
-
},
|
|
48251
|
+
return HH;
|
|
48252
|
+
}, WH = {
|
|
48313
48253
|
name: "localStorage",
|
|
48314
48254
|
lookup(e) {
|
|
48315
48255
|
let { lookupLocalStorage: t } = e;
|
|
48316
|
-
if (t &&
|
|
48256
|
+
if (t && UH()) return window.localStorage.getItem(t) || void 0;
|
|
48317
48257
|
},
|
|
48318
48258
|
cacheUserLanguage(e, t) {
|
|
48319
48259
|
let { lookupLocalStorage: n } = t;
|
|
48320
|
-
n &&
|
|
48260
|
+
n && UH() && window.localStorage.setItem(n, e);
|
|
48321
48261
|
}
|
|
48322
|
-
},
|
|
48323
|
-
if (
|
|
48262
|
+
}, GH = null, KH = () => {
|
|
48263
|
+
if (GH !== null) return GH;
|
|
48324
48264
|
try {
|
|
48325
|
-
if (
|
|
48265
|
+
if (GH = typeof window < "u" && window.sessionStorage !== null, !GH) return !1;
|
|
48326
48266
|
let e = "i18next.translate.boo";
|
|
48327
48267
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
48328
48268
|
} catch {
|
|
48329
|
-
|
|
48269
|
+
GH = !1;
|
|
48330
48270
|
}
|
|
48331
|
-
return
|
|
48332
|
-
},
|
|
48271
|
+
return GH;
|
|
48272
|
+
}, qH = {
|
|
48333
48273
|
name: "sessionStorage",
|
|
48334
48274
|
lookup(e) {
|
|
48335
48275
|
let { lookupSessionStorage: t } = e;
|
|
48336
|
-
if (t &&
|
|
48276
|
+
if (t && KH()) return window.sessionStorage.getItem(t) || void 0;
|
|
48337
48277
|
},
|
|
48338
48278
|
cacheUserLanguage(e, t) {
|
|
48339
48279
|
let { lookupSessionStorage: n } = t;
|
|
48340
|
-
n &&
|
|
48280
|
+
n && KH() && window.sessionStorage.setItem(n, e);
|
|
48341
48281
|
}
|
|
48342
|
-
},
|
|
48282
|
+
}, JH = {
|
|
48343
48283
|
name: "navigator",
|
|
48344
48284
|
lookup(e) {
|
|
48345
48285
|
let t = [];
|
|
@@ -48350,13 +48290,13 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48350
48290
|
}
|
|
48351
48291
|
return t.length > 0 ? t : void 0;
|
|
48352
48292
|
}
|
|
48353
|
-
},
|
|
48293
|
+
}, YH = {
|
|
48354
48294
|
name: "htmlTag",
|
|
48355
48295
|
lookup(e) {
|
|
48356
48296
|
let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
|
|
48357
48297
|
return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
|
|
48358
48298
|
}
|
|
48359
|
-
},
|
|
48299
|
+
}, XH = {
|
|
48360
48300
|
name: "path",
|
|
48361
48301
|
lookup(e) {
|
|
48362
48302
|
let { lookupFromPathIndex: t } = e;
|
|
@@ -48364,17 +48304,17 @@ var eU = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, tU = function(e, t) {
|
|
|
48364
48304
|
let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
48365
48305
|
if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
|
|
48366
48306
|
}
|
|
48367
|
-
},
|
|
48307
|
+
}, ZH = {
|
|
48368
48308
|
name: "subdomain",
|
|
48369
48309
|
lookup(e) {
|
|
48370
48310
|
let { lookupFromSubdomainIndex: t } = e, n = typeof t == "number" ? t + 1 : 1, r = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
48371
48311
|
if (r) return r[n];
|
|
48372
48312
|
}
|
|
48373
|
-
},
|
|
48313
|
+
}, QH = !1;
|
|
48374
48314
|
try {
|
|
48375
|
-
document.cookie,
|
|
48315
|
+
document.cookie, QH = !0;
|
|
48376
48316
|
} catch {}
|
|
48377
|
-
var
|
|
48317
|
+
var $H = [
|
|
48378
48318
|
"querystring",
|
|
48379
48319
|
"cookie",
|
|
48380
48320
|
"localStorage",
|
|
@@ -48382,9 +48322,9 @@ var _U = [
|
|
|
48382
48322
|
"navigator",
|
|
48383
48323
|
"htmlTag"
|
|
48384
48324
|
];
|
|
48385
|
-
|
|
48386
|
-
var
|
|
48387
|
-
order:
|
|
48325
|
+
QH || $H.splice(1, 1);
|
|
48326
|
+
var eU = () => ({
|
|
48327
|
+
order: $H,
|
|
48388
48328
|
lookupQuerystring: "lng",
|
|
48389
48329
|
lookupCookie: "i18next",
|
|
48390
48330
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -48392,14 +48332,14 @@ var vU = () => ({
|
|
|
48392
48332
|
caches: ["localStorage"],
|
|
48393
48333
|
excludeCacheFor: ["cimode"],
|
|
48394
48334
|
convertDetectedLanguage: (e) => e
|
|
48395
|
-
}),
|
|
48335
|
+
}), tU = class {
|
|
48396
48336
|
constructor(e) {
|
|
48397
48337
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
48398
48338
|
this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
48399
48339
|
}
|
|
48400
48340
|
init() {
|
|
48401
48341
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { languageUtils: {} }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
48402
|
-
this.services = e, this.options =
|
|
48342
|
+
this.services = e, this.options = PH(t, this.options || {}, eU()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(zH), this.addDetector(BH), this.addDetector(WH), this.addDetector(qH), this.addDetector(JH), this.addDetector(YH), this.addDetector(XH), this.addDetector(ZH), this.addDetector(VH);
|
|
48403
48343
|
}
|
|
48404
48344
|
addDetector(e) {
|
|
48405
48345
|
return this.detectors[e.name] = e, this;
|
|
@@ -48411,7 +48351,7 @@ var vU = () => ({
|
|
|
48411
48351
|
let n = this.detectors[e].lookup(this.options);
|
|
48412
48352
|
n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
|
|
48413
48353
|
}
|
|
48414
|
-
}), t = t.filter((e) => e != null &&
|
|
48354
|
+
}), t = t.filter((e) => e != null && !FH(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
|
|
48415
48355
|
}
|
|
48416
48356
|
cacheUserLanguage(e) {
|
|
48417
48357
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -48420,13 +48360,13 @@ var vU = () => ({
|
|
|
48420
48360
|
}));
|
|
48421
48361
|
}
|
|
48422
48362
|
};
|
|
48423
|
-
|
|
48363
|
+
tU.type = "languageDetector";
|
|
48424
48364
|
//#endregion
|
|
48425
48365
|
//#region node_modules/i18next-http-backend/esm/utils.js
|
|
48426
|
-
function
|
|
48366
|
+
function nU(e, t) {
|
|
48427
48367
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
48428
48368
|
if (!n) {
|
|
48429
|
-
if (Array.isArray(e) || (n =
|
|
48369
|
+
if (Array.isArray(e) || (n = rU(e)) || t && e && typeof e.length == "number") {
|
|
48430
48370
|
n && (e = n);
|
|
48431
48371
|
var r = 0, i = function() {};
|
|
48432
48372
|
return {
|
|
@@ -48466,50 +48406,50 @@ function bU(e, t) {
|
|
|
48466
48406
|
}
|
|
48467
48407
|
};
|
|
48468
48408
|
}
|
|
48469
|
-
function
|
|
48409
|
+
function rU(e, t) {
|
|
48470
48410
|
if (e) {
|
|
48471
|
-
if (typeof e == "string") return
|
|
48411
|
+
if (typeof e == "string") return iU(e, t);
|
|
48472
48412
|
var n = {}.toString.call(e).slice(8, -1);
|
|
48473
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
48413
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? iU(e, t) : void 0;
|
|
48474
48414
|
}
|
|
48475
48415
|
}
|
|
48476
|
-
function
|
|
48416
|
+
function iU(e, t) {
|
|
48477
48417
|
(t == null || t > e.length) && (t = e.length);
|
|
48478
48418
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
48479
48419
|
return r;
|
|
48480
48420
|
}
|
|
48481
|
-
function
|
|
48421
|
+
function aU(e) {
|
|
48482
48422
|
"@babel/helpers - typeof";
|
|
48483
|
-
return
|
|
48423
|
+
return aU = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
48484
48424
|
return typeof e;
|
|
48485
48425
|
} : function(e) {
|
|
48486
48426
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
48487
|
-
},
|
|
48427
|
+
}, aU(e);
|
|
48488
48428
|
}
|
|
48489
|
-
var
|
|
48490
|
-
|
|
48491
|
-
var
|
|
48429
|
+
var oU = [];
|
|
48430
|
+
oU.forEach, oU.slice;
|
|
48431
|
+
var sU = [
|
|
48492
48432
|
"__proto__",
|
|
48493
48433
|
"constructor",
|
|
48494
48434
|
"prototype"
|
|
48495
48435
|
];
|
|
48496
|
-
function
|
|
48497
|
-
return !(typeof e != "string" || e.length === 0 || e.length > 128 ||
|
|
48436
|
+
function cU(e) {
|
|
48437
|
+
return !(typeof e != "string" || e.length === 0 || e.length > 128 || sU.indexOf(e) > -1 || e.indexOf("..") > -1 || e.indexOf("\\") > -1 || /[?#%\s@]/.test(e) || /[\x00-\x1F\x7F]/.test(e));
|
|
48498
48438
|
}
|
|
48499
|
-
function
|
|
48500
|
-
return !(!
|
|
48439
|
+
function lU(e) {
|
|
48440
|
+
return !(!cU(e) || e.indexOf("/") > -1);
|
|
48501
48441
|
}
|
|
48502
|
-
function
|
|
48503
|
-
return
|
|
48442
|
+
function uU(e) {
|
|
48443
|
+
return cU(e);
|
|
48504
48444
|
}
|
|
48505
|
-
var
|
|
48506
|
-
lng:
|
|
48507
|
-
ns:
|
|
48445
|
+
var dU = {
|
|
48446
|
+
lng: lU,
|
|
48447
|
+
ns: uU
|
|
48508
48448
|
};
|
|
48509
|
-
function
|
|
48449
|
+
function fU(e) {
|
|
48510
48450
|
return typeof e == "string" ? e.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : e;
|
|
48511
48451
|
}
|
|
48512
|
-
function
|
|
48452
|
+
function pU(e) {
|
|
48513
48453
|
if (typeof e != "string" || e.length === 0) return e;
|
|
48514
48454
|
try {
|
|
48515
48455
|
var t = new URL(e);
|
|
@@ -48518,23 +48458,23 @@ function jU(e) {
|
|
|
48518
48458
|
return e.replace(/(\/\/)[^/@\s]+@/g, "$1");
|
|
48519
48459
|
}
|
|
48520
48460
|
}
|
|
48521
|
-
function
|
|
48522
|
-
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" :
|
|
48461
|
+
function mU() {
|
|
48462
|
+
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : aU(XMLHttpRequest)) === "object";
|
|
48523
48463
|
}
|
|
48524
|
-
function
|
|
48464
|
+
function hU(e) {
|
|
48525
48465
|
return !!e && typeof e.then == "function";
|
|
48526
48466
|
}
|
|
48527
|
-
function
|
|
48528
|
-
return
|
|
48467
|
+
function gU(e) {
|
|
48468
|
+
return hU(e) ? e : Promise.resolve(e);
|
|
48529
48469
|
}
|
|
48530
|
-
var
|
|
48531
|
-
function
|
|
48532
|
-
var n = !1, r = e.replace(
|
|
48470
|
+
var _U = /\{\{(.+?)\}\}/g;
|
|
48471
|
+
function vU(e, t) {
|
|
48472
|
+
var n = !1, r = e.replace(_U, function(e, r) {
|
|
48533
48473
|
var i = r.trim();
|
|
48534
|
-
if (
|
|
48474
|
+
if (sU.indexOf(i) > -1) return e;
|
|
48535
48475
|
var a = t[i];
|
|
48536
48476
|
if (a == null) return e;
|
|
48537
|
-
var o =
|
|
48477
|
+
var o = dU[i] || lU, s = String(a).split("+"), c = nU(s), l;
|
|
48538
48478
|
try {
|
|
48539
48479
|
for (c.s(); !(l = c.n()).done;) {
|
|
48540
48480
|
var u = l.value;
|
|
@@ -48551,7 +48491,7 @@ function IU(e, t) {
|
|
|
48551
48491
|
}
|
|
48552
48492
|
//#endregion
|
|
48553
48493
|
//#region node_modules/i18next-http-backend/esm/request.js
|
|
48554
|
-
function
|
|
48494
|
+
function yU(e, t) {
|
|
48555
48495
|
var n = Object.keys(e);
|
|
48556
48496
|
if (Object.getOwnPropertySymbols) {
|
|
48557
48497
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -48561,72 +48501,72 @@ function LU(e, t) {
|
|
|
48561
48501
|
}
|
|
48562
48502
|
return n;
|
|
48563
48503
|
}
|
|
48564
|
-
function
|
|
48504
|
+
function bU(e) {
|
|
48565
48505
|
for (var t = 1; t < arguments.length; t++) {
|
|
48566
48506
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
48567
|
-
t % 2 ?
|
|
48568
|
-
|
|
48569
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
48507
|
+
t % 2 ? yU(Object(n), !0).forEach(function(t) {
|
|
48508
|
+
xU(e, t, n[t]);
|
|
48509
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yU(Object(n)).forEach(function(t) {
|
|
48570
48510
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
48571
48511
|
});
|
|
48572
48512
|
}
|
|
48573
48513
|
return e;
|
|
48574
48514
|
}
|
|
48575
|
-
function
|
|
48576
|
-
return (t =
|
|
48515
|
+
function xU(e, t, n) {
|
|
48516
|
+
return (t = SU(t)) in e ? Object.defineProperty(e, t, {
|
|
48577
48517
|
value: n,
|
|
48578
48518
|
enumerable: !0,
|
|
48579
48519
|
configurable: !0,
|
|
48580
48520
|
writable: !0
|
|
48581
48521
|
}) : e[t] = n, e;
|
|
48582
48522
|
}
|
|
48583
|
-
function
|
|
48584
|
-
var t =
|
|
48585
|
-
return
|
|
48523
|
+
function SU(e) {
|
|
48524
|
+
var t = CU(e, "string");
|
|
48525
|
+
return wU(t) == "symbol" ? t : t + "";
|
|
48586
48526
|
}
|
|
48587
|
-
function
|
|
48588
|
-
if (
|
|
48527
|
+
function CU(e, t) {
|
|
48528
|
+
if (wU(e) != "object" || !e) return e;
|
|
48589
48529
|
var n = e[Symbol.toPrimitive];
|
|
48590
48530
|
if (n !== void 0) {
|
|
48591
48531
|
var r = n.call(e, t || "default");
|
|
48592
|
-
if (
|
|
48532
|
+
if (wU(r) != "object") return r;
|
|
48593
48533
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
48594
48534
|
}
|
|
48595
48535
|
return (t === "string" ? String : Number)(e);
|
|
48596
48536
|
}
|
|
48597
|
-
function
|
|
48537
|
+
function wU(e) {
|
|
48598
48538
|
"@babel/helpers - typeof";
|
|
48599
|
-
return
|
|
48539
|
+
return wU = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
48600
48540
|
return typeof e;
|
|
48601
48541
|
} : function(e) {
|
|
48602
48542
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
48603
|
-
},
|
|
48604
|
-
}
|
|
48605
|
-
var
|
|
48606
|
-
typeof global < "u" && global.fetch ?
|
|
48607
|
-
var
|
|
48608
|
-
|
|
48609
|
-
var
|
|
48610
|
-
if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ?
|
|
48543
|
+
}, wU(e);
|
|
48544
|
+
}
|
|
48545
|
+
var TU = typeof fetch == "function" ? fetch : void 0;
|
|
48546
|
+
typeof global < "u" && global.fetch ? TU = global.fetch : typeof window < "u" && window.fetch && (TU = window.fetch);
|
|
48547
|
+
var EU;
|
|
48548
|
+
mU() && (typeof global < "u" && global.XMLHttpRequest ? EU = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (EU = window.XMLHttpRequest));
|
|
48549
|
+
var DU;
|
|
48550
|
+
if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? DU = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (DU = window.ActiveXObject)), typeof TU != "function" && (TU = void 0), !TU && !EU && !DU) try {
|
|
48611
48551
|
import("./browser-ponyfill-fbxoTU-H.js").then((t) => /* @__PURE__ */ e(t.default, 1)).then(function(e) {
|
|
48612
|
-
|
|
48552
|
+
TU = e.default;
|
|
48613
48553
|
}).catch(function() {});
|
|
48614
48554
|
} catch {}
|
|
48615
|
-
var
|
|
48555
|
+
var OU = [
|
|
48616
48556
|
"__proto__",
|
|
48617
48557
|
"constructor",
|
|
48618
48558
|
"prototype"
|
|
48619
|
-
],
|
|
48620
|
-
if (t &&
|
|
48559
|
+
], kU = function(e, t) {
|
|
48560
|
+
if (t && wU(t) === "object") {
|
|
48621
48561
|
for (var n = "", r = 0, i = Object.keys(t); r < i.length; r++) {
|
|
48622
48562
|
var a = i[r];
|
|
48623
|
-
|
|
48563
|
+
OU.indexOf(a) > -1 || (n += "&" + encodeURIComponent(a) + "=" + encodeURIComponent(t[a]));
|
|
48624
48564
|
}
|
|
48625
48565
|
if (!n) return e;
|
|
48626
48566
|
e = e + (e.indexOf("?") === -1 ? "?" : "&") + n.slice(1);
|
|
48627
48567
|
}
|
|
48628
48568
|
return e;
|
|
48629
|
-
},
|
|
48569
|
+
}, AU = function(e, t, n, r) {
|
|
48630
48570
|
var i = function(e) {
|
|
48631
48571
|
if (!e.ok) return n(e.statusText || "Error", { status: e.status });
|
|
48632
48572
|
e.text().then(function(t) {
|
|
@@ -48643,37 +48583,37 @@ var KU = [
|
|
|
48643
48583
|
return;
|
|
48644
48584
|
}
|
|
48645
48585
|
}
|
|
48646
|
-
typeof fetch == "function" ? fetch(e, t).then(i).catch(n) :
|
|
48647
|
-
},
|
|
48648
|
-
e.queryStringParams && (t =
|
|
48649
|
-
var i =
|
|
48586
|
+
typeof fetch == "function" ? fetch(e, t).then(i).catch(n) : TU(e, t).then(i).catch(n);
|
|
48587
|
+
}, jU = function(e, t, n, r) {
|
|
48588
|
+
e.queryStringParams && (t = kU(t, e.queryStringParams));
|
|
48589
|
+
var i = bU({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
48650
48590
|
typeof window > "u" && typeof global < "u" && global.process !== void 0 && global.process.versions && global.process.versions.node && (i["User-Agent"] = `i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`), n && (i["Content-Type"] = "application/json");
|
|
48651
|
-
var a = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, o =
|
|
48591
|
+
var a = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, o = bU({
|
|
48652
48592
|
method: n ? "POST" : "GET",
|
|
48653
48593
|
body: n ? e.stringify(n) : void 0,
|
|
48654
48594
|
headers: i
|
|
48655
48595
|
}, e._omitFetchOptions ? {} : a), s = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
|
|
48656
48596
|
try {
|
|
48657
|
-
|
|
48597
|
+
AU(t, o, r, s);
|
|
48658
48598
|
} catch (n) {
|
|
48659
48599
|
if (!a || Object.keys(a).length === 0 || !n.message || n.message.indexOf("not implemented") < 0) return r(n);
|
|
48660
48600
|
try {
|
|
48661
48601
|
Object.keys(a).forEach(function(e) {
|
|
48662
48602
|
delete o[e];
|
|
48663
|
-
}),
|
|
48603
|
+
}), AU(t, o, r, s), e._omitFetchOptions = !0;
|
|
48664
48604
|
} catch (e) {
|
|
48665
48605
|
r(e);
|
|
48666
48606
|
}
|
|
48667
48607
|
}
|
|
48668
|
-
},
|
|
48669
|
-
n &&
|
|
48608
|
+
}, MU = function(e, t, n, r) {
|
|
48609
|
+
n && wU(n) === "object" && (n = kU("", n).slice(1)), e.queryStringParams && (t = kU(t, e.queryStringParams));
|
|
48670
48610
|
try {
|
|
48671
|
-
var i =
|
|
48611
|
+
var i = EU ? new EU() : new DU("MSXML2.XMLHTTP.3.0");
|
|
48672
48612
|
i.open(n ? "POST" : "GET", t, 1), e.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!e.withCredentials, n && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
|
|
48673
48613
|
var a = e.customHeaders;
|
|
48674
48614
|
if (a = typeof a == "function" ? a() : a, a) for (var o = 0, s = Object.keys(a); o < s.length; o++) {
|
|
48675
48615
|
var c = s[o];
|
|
48676
|
-
|
|
48616
|
+
OU.indexOf(c) > -1 || i.setRequestHeader(c, a[c]);
|
|
48677
48617
|
}
|
|
48678
48618
|
i.onreadystatechange = function() {
|
|
48679
48619
|
i.readyState > 3 && r(i.status >= 400 ? i.statusText : null, {
|
|
@@ -48684,22 +48624,22 @@ var KU = [
|
|
|
48684
48624
|
} catch (e) {
|
|
48685
48625
|
console && console.log(e);
|
|
48686
48626
|
}
|
|
48687
|
-
},
|
|
48688
|
-
if (typeof n == "function" && (r = n, n = void 0), r ||= function() {},
|
|
48689
|
-
if (
|
|
48627
|
+
}, NU = function(e, t, n, r) {
|
|
48628
|
+
if (typeof n == "function" && (r = n, n = void 0), r ||= function() {}, TU && t.indexOf("file:") !== 0) return jU(e, t, n, r);
|
|
48629
|
+
if (mU() || typeof ActiveXObject == "function") return MU(e, t, n, r);
|
|
48690
48630
|
r(/* @__PURE__ */ Error("No fetch and no xhr implementation found!"));
|
|
48691
48631
|
};
|
|
48692
48632
|
//#endregion
|
|
48693
48633
|
//#region node_modules/i18next-http-backend/esm/index.js
|
|
48694
|
-
function
|
|
48634
|
+
function PU(e) {
|
|
48695
48635
|
"@babel/helpers - typeof";
|
|
48696
|
-
return
|
|
48636
|
+
return PU = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
48697
48637
|
return typeof e;
|
|
48698
48638
|
} : function(e) {
|
|
48699
48639
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
48700
|
-
},
|
|
48640
|
+
}, PU(e);
|
|
48701
48641
|
}
|
|
48702
|
-
function
|
|
48642
|
+
function FU(e, t) {
|
|
48703
48643
|
var n = Object.keys(e);
|
|
48704
48644
|
if (Object.getOwnPropertySymbols) {
|
|
48705
48645
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -48709,52 +48649,52 @@ function $U(e, t) {
|
|
|
48709
48649
|
}
|
|
48710
48650
|
return n;
|
|
48711
48651
|
}
|
|
48712
|
-
function
|
|
48652
|
+
function IU(e) {
|
|
48713
48653
|
for (var t = 1; t < arguments.length; t++) {
|
|
48714
48654
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
48715
|
-
t % 2 ?
|
|
48716
|
-
|
|
48717
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
48655
|
+
t % 2 ? FU(Object(n), !0).forEach(function(t) {
|
|
48656
|
+
BU(e, t, n[t]);
|
|
48657
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FU(Object(n)).forEach(function(t) {
|
|
48718
48658
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
48719
48659
|
});
|
|
48720
48660
|
}
|
|
48721
48661
|
return e;
|
|
48722
48662
|
}
|
|
48723
|
-
function
|
|
48663
|
+
function LU(e, t) {
|
|
48724
48664
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
48725
48665
|
}
|
|
48726
|
-
function
|
|
48666
|
+
function RU(e, t) {
|
|
48727
48667
|
for (var n = 0; n < t.length; n++) {
|
|
48728
48668
|
var r = t[n];
|
|
48729
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
48669
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, VU(r.key), r);
|
|
48730
48670
|
}
|
|
48731
48671
|
}
|
|
48732
|
-
function
|
|
48733
|
-
return t &&
|
|
48672
|
+
function zU(e, t, n) {
|
|
48673
|
+
return t && RU(e.prototype, t), n && RU(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
48734
48674
|
}
|
|
48735
|
-
function
|
|
48736
|
-
return (t =
|
|
48675
|
+
function BU(e, t, n) {
|
|
48676
|
+
return (t = VU(t)) in e ? Object.defineProperty(e, t, {
|
|
48737
48677
|
value: n,
|
|
48738
48678
|
enumerable: !0,
|
|
48739
48679
|
configurable: !0,
|
|
48740
48680
|
writable: !0
|
|
48741
48681
|
}) : e[t] = n, e;
|
|
48742
48682
|
}
|
|
48743
|
-
function
|
|
48744
|
-
var t =
|
|
48745
|
-
return
|
|
48683
|
+
function VU(e) {
|
|
48684
|
+
var t = HU(e, "string");
|
|
48685
|
+
return PU(t) == "symbol" ? t : t + "";
|
|
48746
48686
|
}
|
|
48747
|
-
function
|
|
48748
|
-
if (
|
|
48687
|
+
function HU(e, t) {
|
|
48688
|
+
if (PU(e) != "object" || !e) return e;
|
|
48749
48689
|
var n = e[Symbol.toPrimitive];
|
|
48750
48690
|
if (n !== void 0) {
|
|
48751
48691
|
var r = n.call(e, t || "default");
|
|
48752
|
-
if (
|
|
48692
|
+
if (PU(r) != "object") return r;
|
|
48753
48693
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
48754
48694
|
}
|
|
48755
48695
|
return (t === "string" ? String : Number)(e);
|
|
48756
48696
|
}
|
|
48757
|
-
var
|
|
48697
|
+
var UU = function() {
|
|
48758
48698
|
return {
|
|
48759
48699
|
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
48760
48700
|
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
@@ -48763,10 +48703,10 @@ var sW = function() {
|
|
|
48763
48703
|
},
|
|
48764
48704
|
stringify: JSON.stringify,
|
|
48765
48705
|
parsePayload: function(e, t, n) {
|
|
48766
|
-
return
|
|
48706
|
+
return BU({}, t, n || "");
|
|
48767
48707
|
},
|
|
48768
48708
|
parseLoadPayload: function(e, t) {},
|
|
48769
|
-
request:
|
|
48709
|
+
request: NU,
|
|
48770
48710
|
reloadInterval: typeof window < "u" ? !1 : 3600 * 1e3,
|
|
48771
48711
|
customHeaders: {},
|
|
48772
48712
|
queryStringParams: {},
|
|
@@ -48779,21 +48719,21 @@ var sW = function() {
|
|
|
48779
48719
|
cache: "default"
|
|
48780
48720
|
}
|
|
48781
48721
|
};
|
|
48782
|
-
},
|
|
48722
|
+
}, WU = function() {
|
|
48783
48723
|
function e(t) {
|
|
48784
48724
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
48785
|
-
|
|
48725
|
+
LU(this, e), this.services = t, this.options = n, this.allOptions = r, this.type = "backend", this.init(t, n, r);
|
|
48786
48726
|
}
|
|
48787
|
-
return
|
|
48727
|
+
return zU(e, [
|
|
48788
48728
|
{
|
|
48789
48729
|
key: "init",
|
|
48790
48730
|
value: function(e) {
|
|
48791
48731
|
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
48792
|
-
if (this.services = e, this.options =
|
|
48732
|
+
if (this.services = e, this.options = IU(IU(IU({}, UU()), this.options || {}), n), this.allOptions = r, this.services && this.options.reloadInterval) {
|
|
48793
48733
|
var i = setInterval(function() {
|
|
48794
48734
|
return t.reload();
|
|
48795
48735
|
}, this.options.reloadInterval);
|
|
48796
|
-
|
|
48736
|
+
PU(i) === "object" && typeof i.unref == "function" && i.unref();
|
|
48797
48737
|
}
|
|
48798
48738
|
}
|
|
48799
48739
|
},
|
|
@@ -48813,14 +48753,14 @@ var sW = function() {
|
|
|
48813
48753
|
key: "_readAny",
|
|
48814
48754
|
value: function(e, t, n, r, i) {
|
|
48815
48755
|
var a = this, o = this.options.loadPath;
|
|
48816
|
-
typeof this.options.loadPath == "function" && (o = this.options.loadPath(e, n)), o =
|
|
48756
|
+
typeof this.options.loadPath == "function" && (o = this.options.loadPath(e, n)), o = gU(o), o.then(function(o) {
|
|
48817
48757
|
if (!o) return i(null, {});
|
|
48818
|
-
var s =
|
|
48758
|
+
var s = vU(o, {
|
|
48819
48759
|
lng: e.join("+"),
|
|
48820
48760
|
ns: n.join("+")
|
|
48821
48761
|
});
|
|
48822
48762
|
if (s == null) {
|
|
48823
|
-
var c = e.map(
|
|
48763
|
+
var c = e.map(fU).join(", "), l = n.map(fU).join(", ");
|
|
48824
48764
|
return i(/* @__PURE__ */ Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=[" + c + "] namespaces=[" + l + "]"), !1);
|
|
48825
48765
|
}
|
|
48826
48766
|
a.loadUrl(s, i, t, r);
|
|
@@ -48830,7 +48770,7 @@ var sW = function() {
|
|
|
48830
48770
|
{
|
|
48831
48771
|
key: "loadUrl",
|
|
48832
48772
|
value: function(e, t, n, r) {
|
|
48833
|
-
var i = this, a = typeof n == "string" ? [n] : n, o = typeof r == "string" ? [r] : r, s = this.options.parseLoadPayload(a, o), c =
|
|
48773
|
+
var i = this, a = typeof n == "string" ? [n] : n, o = typeof r == "string" ? [r] : r, s = this.options.parseLoadPayload(a, o), c = fU(pU(e));
|
|
48834
48774
|
this.options.request(this.options, e, s, function(e, a) {
|
|
48835
48775
|
if (a && (a.status >= 500 && a.status < 600 || !a.status)) return t("failed loading " + c + "; status code: " + a.status, !0);
|
|
48836
48776
|
if (a && a.status >= 400 && a.status < 500) return t("failed loading " + c + "; status code: " + a.status, !1);
|
|
@@ -48843,7 +48783,7 @@ var sW = function() {
|
|
|
48843
48783
|
"load"
|
|
48844
48784
|
].find(function(e) {
|
|
48845
48785
|
return o.indexOf(e) > -1;
|
|
48846
|
-
})) return t("failed loading " + c + ": " +
|
|
48786
|
+
})) return t("failed loading " + c + ": " + fU(e.message), !0);
|
|
48847
48787
|
}
|
|
48848
48788
|
if (e) return t(e, !1);
|
|
48849
48789
|
var s, l;
|
|
@@ -48867,7 +48807,7 @@ var sW = function() {
|
|
|
48867
48807
|
e.forEach(function(n) {
|
|
48868
48808
|
var r = a.options.addPath;
|
|
48869
48809
|
typeof a.options.addPath == "function" && (r = a.options.addPath(n, t));
|
|
48870
|
-
var u =
|
|
48810
|
+
var u = vU(r, {
|
|
48871
48811
|
lng: n,
|
|
48872
48812
|
ns: t
|
|
48873
48813
|
});
|
|
@@ -48908,7 +48848,7 @@ var sW = function() {
|
|
|
48908
48848
|
}();
|
|
48909
48849
|
//#endregion
|
|
48910
48850
|
//#region src/i18n.ts
|
|
48911
|
-
|
|
48851
|
+
WU.type = "backend", Wg.use(WU).use(tU).use(M_).init({
|
|
48912
48852
|
debug: !1,
|
|
48913
48853
|
fallbackLng: { default: ["en"] },
|
|
48914
48854
|
backend: { loadPath: (e, t) => `${y}locales/${e}/${t}.json` },
|
|
@@ -48935,7 +48875,7 @@ cW.type = "backend", Wg.use(cW).use(yU).use(M_).init({
|
|
|
48935
48875
|
"p"
|
|
48936
48876
|
] }
|
|
48937
48877
|
});
|
|
48938
|
-
var
|
|
48878
|
+
var GU = Wg, KU = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
48939
48879
|
let r = Jh(e, (e) => e), i = e.send.bind(e), { offering: a, merchantName: o, merchantLogoUrl: s, tab: c, experience: l, cancelButtonConfigOnEntry: u, hasBeenConfirmed: d, supertabClient: f } = r.context, p = (0, O.useMemo)(() => c?.total?.currency || a?.price?.currency || {
|
|
48940
48880
|
code: "USD",
|
|
48941
48881
|
name: "United States Dollar",
|
|
@@ -48949,11 +48889,11 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
48949
48889
|
onClose: t
|
|
48950
48890
|
},
|
|
48951
48891
|
none: {}
|
|
48952
|
-
}[u], { isTabFull: v, tabLimit: y, currentTabTotal: b, offeringPrice: x } = ae(c, a), S = b > 0, C = r.matches("Loading") ? /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.loading" }) : r.matches("AwaitingConfirmation") ? /* @__PURE__ */ (0, K.jsx)(
|
|
48892
|
+
}[u], { isTabFull: v, tabLimit: y, currentTabTotal: b, offeringPrice: x } = ae(c, a), S = b > 0, C = r.matches("Loading") ? /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.loading" }) : r.matches("AwaitingConfirmation") ? /* @__PURE__ */ (0, K.jsx)(qU, {
|
|
48953
48893
|
offering: a,
|
|
48954
48894
|
isTabFull: v,
|
|
48955
48895
|
hasBeenConfirmed: d
|
|
48956
|
-
}) : r.matches("MakingPurchase") ? /* @__PURE__ */ (0, K.jsx)(
|
|
48896
|
+
}) : r.matches("MakingPurchase") ? /* @__PURE__ */ (0, K.jsx)(JU, { offering: a }) : "";
|
|
48957
48897
|
return P({ event: "view_confirm" }, r.matches("AwaitingConfirmation")), gl({
|
|
48958
48898
|
event: d && v && !a?.isPayNow ? "full_tab_screen_shown" : "confirm_screen_shown",
|
|
48959
48899
|
properties: {
|
|
@@ -48961,7 +48901,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
48961
48901
|
offeringId: a?.id,
|
|
48962
48902
|
clientId: f.clientId
|
|
48963
48903
|
}
|
|
48964
|
-
}, r.matches("AwaitingConfirmation")), /* @__PURE__ */ (0, K.jsx)(
|
|
48904
|
+
}, r.matches("AwaitingConfirmation")), /* @__PURE__ */ (0, K.jsx)(jH, {
|
|
48965
48905
|
offering: a,
|
|
48966
48906
|
merchantName: o,
|
|
48967
48907
|
merchantLogoUrl: s,
|
|
@@ -48970,22 +48910,22 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
48970
48910
|
onBackClick: r.matches("MakingPurchase") ? void 0 : g,
|
|
48971
48911
|
onContinueClick: () => i({ type: "confirmPurchase" }),
|
|
48972
48912
|
continueButtonLabel: C,
|
|
48973
|
-
primaryColor: h?.colors?.background ||
|
|
48913
|
+
primaryColor: h?.colors?.background || rV.background,
|
|
48974
48914
|
omegaConfig: {
|
|
48975
48915
|
tabTotal: b,
|
|
48976
48916
|
limit: y,
|
|
48977
48917
|
currency: p,
|
|
48978
|
-
locale:
|
|
48918
|
+
locale: GU.language,
|
|
48979
48919
|
offeringPrice: x,
|
|
48980
|
-
state: v ?
|
|
48920
|
+
state: v ? Wz.Filled : Wz.Filling,
|
|
48981
48921
|
autoAnimate: d ? !0 : !S,
|
|
48982
48922
|
offeringHasBeenConfirmed: d
|
|
48983
48923
|
},
|
|
48984
|
-
textColor: h?.colors?.text ||
|
|
48924
|
+
textColor: h?.colors?.text || rV.text,
|
|
48985
48925
|
isButtonDisabled: r.matches("Loading") || r.matches("MakingPurchase") || !a,
|
|
48986
48926
|
offeringHasBeenConfirmed: d
|
|
48987
48927
|
});
|
|
48988
|
-
},
|
|
48928
|
+
}, qU = ({ offering: e, isTabFull: t, hasBeenConfirmed: n }) => L(e) || t && n ? /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.confirmation.pay_now" }) : /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.confirmation.default" }), JU = ({ offering: e }) => L(e) ? /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.processing.pay_now" }) : /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.processing.default" }), YU = ({ isAfterPurchase: e, isAfterPayment: t, isAnimating: n }) => {
|
|
48989
48929
|
let r = "";
|
|
48990
48930
|
return e ? r = n ? /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.purchasing.cta_button_label.processing.default" }) : /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.thank_you.cta_button_label.after_purchase" }) : t && (r = /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "widget.thank_you.cta_button_label.after_payment" })), /* @__PURE__ */ (0, K.jsxs)("span", {
|
|
48991
48931
|
style: {
|
|
@@ -48998,21 +48938,21 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
48998
48938
|
variant: "outline"
|
|
48999
48939
|
}), r]
|
|
49000
48940
|
});
|
|
49001
|
-
},
|
|
48941
|
+
}, XU = "en-US", ZU = ({ thankYouActor: e, onClose: t }) => {
|
|
49002
48942
|
let n = Jh(e, (e) => e), r = n.matches("AfterPurchase"), i = n.matches("AfterPayment"), a = n.matches("AfterSubscribing"), { tab: o, purchasedOffering: s, merchantLogoUrl: c, merchantName: l, experience: u, uiConfig: d } = n.context;
|
|
49003
48943
|
j.log("ThankYouComponent", n.value);
|
|
49004
48944
|
let { primaryColor: f, textColor: p } = (0, O.useMemo)(() => {
|
|
49005
|
-
let e = d?.colors ?? u?.configuration?.uiConfig?.colors ??
|
|
48945
|
+
let e = d?.colors ?? u?.configuration?.uiConfig?.colors ?? rV;
|
|
49006
48946
|
return {
|
|
49007
|
-
primaryColor: e.background ??
|
|
49008
|
-
textColor: e.text ??
|
|
48947
|
+
primaryColor: e.background ?? rV.background,
|
|
48948
|
+
textColor: e.text ?? rV.text
|
|
49009
48949
|
};
|
|
49010
|
-
}, [d?.colors, u?.configuration?.uiConfig?.colors]), m = o.limit.amount, h = o.total.currency, g = r ? 0 : m, _ = r ? o.total.amount : 0, [v, y] = (0, O.useState)(g), [b, x] = (0, O.useState)(!1), [S, C] = (0, O.useState)(r), [w, T] = (0, O.useState)(
|
|
48950
|
+
}, [d?.colors, u?.configuration?.uiConfig?.colors]), m = o.limit.amount, h = o.total.currency, g = r ? 0 : m, _ = r ? o.total.amount : 0, [v, y] = (0, O.useState)(g), [b, x] = (0, O.useState)(!1), [S, C] = (0, O.useState)(r), [w, T] = (0, O.useState)(Wz.Filling), { offeringPrice: E } = ae(o, null), D = (0, O.useMemo)(() => {
|
|
49011
48951
|
let e = {
|
|
49012
48952
|
tabTotal: v,
|
|
49013
48953
|
limit: m,
|
|
49014
48954
|
currency: h,
|
|
49015
|
-
locale:
|
|
48955
|
+
locale: XU,
|
|
49016
48956
|
autoAnimate: b
|
|
49017
48957
|
};
|
|
49018
48958
|
if (r) return {
|
|
@@ -49023,7 +48963,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49023
48963
|
};
|
|
49024
48964
|
if (i) return {
|
|
49025
48965
|
...e,
|
|
49026
|
-
state:
|
|
48966
|
+
state: Wz.Filled
|
|
49027
48967
|
};
|
|
49028
48968
|
}, [
|
|
49029
48969
|
i,
|
|
@@ -49037,7 +48977,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49037
48977
|
]);
|
|
49038
48978
|
return P({ event: "view_purchase_complete" }, r), P({ event: "view_payment_complete" }, i), (0, O.useEffect)(() => {
|
|
49039
48979
|
if (!r) return;
|
|
49040
|
-
y(_), C(!0), T(
|
|
48980
|
+
y(_), C(!0), T(Wz.TransitioningToFilled);
|
|
49041
48981
|
let e = setTimeout(() => {
|
|
49042
48982
|
C(!1);
|
|
49043
48983
|
}, 800);
|
|
@@ -49046,13 +48986,13 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49046
48986
|
i && (x(!0), y(0), C(!1));
|
|
49047
48987
|
}, [i, m]), (0, O.useEffect)(() => {
|
|
49048
48988
|
r || i || C(!1);
|
|
49049
|
-
}, [r, i]), /* @__PURE__ */ (0, K.jsx)(
|
|
48989
|
+
}, [r, i]), /* @__PURE__ */ (0, K.jsx)(jH, {
|
|
49050
48990
|
offering: s,
|
|
49051
48991
|
merchantName: l,
|
|
49052
48992
|
merchantLogoUrl: c,
|
|
49053
48993
|
tab: o,
|
|
49054
48994
|
onContinueClick: t,
|
|
49055
|
-
continueButtonLabel: /* @__PURE__ */ (0, K.jsx)(
|
|
48995
|
+
continueButtonLabel: /* @__PURE__ */ (0, K.jsx)(YU, {
|
|
49056
48996
|
isAfterPurchase: r,
|
|
49057
48997
|
isAfterPayment: i || a,
|
|
49058
48998
|
isAnimating: S
|
|
@@ -49067,7 +49007,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49067
49007
|
isAfterSubscribing: a,
|
|
49068
49008
|
purchase: n.context.purchase
|
|
49069
49009
|
});
|
|
49070
|
-
},
|
|
49010
|
+
}, QU = ({ purchaseWidgetActor: e }) => {
|
|
49071
49011
|
let t = Jh(e, (e) => e), n = e.send.bind(e);
|
|
49072
49012
|
j.log("PurchaseWidget State", t.value);
|
|
49073
49013
|
let r = () => n({ type: "openAboutSupertab" }), i = () => n({
|
|
@@ -49080,26 +49020,26 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49080
49020
|
return L_(), /* @__PURE__ */ (0, K.jsxs)(K.Fragment, { children: [/* @__PURE__ */ (0, K.jsx)(kf, {}), t.can({
|
|
49081
49021
|
type: "close",
|
|
49082
49022
|
cancellationIntent: "close"
|
|
49083
|
-
}) && /* @__PURE__ */ (0, K.jsxs)(
|
|
49023
|
+
}) && /* @__PURE__ */ (0, K.jsxs)(rH, {
|
|
49084
49024
|
onClose: i,
|
|
49085
49025
|
children: [
|
|
49086
|
-
(t.matches("LoggingIn") || t.matches("PreparingPurchase")) && /* @__PURE__ */ (0, K.jsx)(
|
|
49026
|
+
(t.matches("LoggingIn") || t.matches("PreparingPurchase")) && /* @__PURE__ */ (0, K.jsx)(TH, {
|
|
49087
49027
|
actor: t.children.authorizingAndHandlingPriorEntitlement,
|
|
49088
49028
|
onInfoButtonClick: r,
|
|
49089
49029
|
onBack: a
|
|
49090
49030
|
}),
|
|
49091
|
-
t.matches("Purchasing") && /* @__PURE__ */ (0, K.jsx)(
|
|
49031
|
+
t.matches("Purchasing") && /* @__PURE__ */ (0, K.jsx)(KU, {
|
|
49092
49032
|
purchasingActor: t.children.purchasing,
|
|
49093
49033
|
onClose: i,
|
|
49094
49034
|
onBack: a
|
|
49095
49035
|
}),
|
|
49096
|
-
t.matches("ThankYou") && /* @__PURE__ */ (0, K.jsx)(
|
|
49036
|
+
t.matches("ThankYou") && /* @__PURE__ */ (0, K.jsx)(ZU, {
|
|
49097
49037
|
thankYouActor: t.children.thankYou,
|
|
49098
49038
|
onClose: i
|
|
49099
49039
|
})
|
|
49100
49040
|
]
|
|
49101
49041
|
})] });
|
|
49102
|
-
},
|
|
49042
|
+
}, $U = {
|
|
49103
49043
|
borderCollapse: "initial",
|
|
49104
49044
|
borderSpacing: "initial",
|
|
49105
49045
|
captionSide: "initial",
|
|
@@ -49135,10 +49075,10 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49135
49075
|
cursor: "initial",
|
|
49136
49076
|
visibility: "initial",
|
|
49137
49077
|
widows: "initial"
|
|
49138
|
-
},
|
|
49139
|
-
style:
|
|
49078
|
+
}, eW = ({ children: e }) => /* @__PURE__ */ (0, K.jsx)("span", {
|
|
49079
|
+
style: $U,
|
|
49140
49080
|
children: e
|
|
49141
|
-
}),
|
|
49081
|
+
}), tW = class {
|
|
49142
49082
|
cleanUpRender;
|
|
49143
49083
|
purchaseWidgetActor;
|
|
49144
49084
|
constructor({ supertabClient: e, merchantName: t, merchantLogoUrl: n, language: r, onError: i, experienceId: a, cancelButtonConfigOnEntry: o }) {
|
|
@@ -49153,7 +49093,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49153
49093
|
}
|
|
49154
49094
|
}), this.purchaseWidgetActor.subscribe({ error: (e) => {
|
|
49155
49095
|
j.error("Unhandled XState error:", e), this.destroy(), i?.(e);
|
|
49156
|
-
} }), r && (j.log("Setting language to", r),
|
|
49096
|
+
} }), r && (j.log("Setting language to", r), GU.changeLanguage(r));
|
|
49157
49097
|
}
|
|
49158
49098
|
async initialize() {
|
|
49159
49099
|
return new Promise((e) => {
|
|
@@ -49220,9 +49160,9 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49220
49160
|
let i = (0, Df.createRoot)(n);
|
|
49221
49161
|
i.render(/* @__PURE__ */ (0, K.jsx)(cf, {
|
|
49222
49162
|
value: r,
|
|
49223
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
49163
|
+
children: /* @__PURE__ */ (0, K.jsx)(eW, { children: /* @__PURE__ */ (0, K.jsx)(O.Suspense, {
|
|
49224
49164
|
fallback: null,
|
|
49225
|
-
children: /* @__PURE__ */ (0, K.jsx)(hl, { children: /* @__PURE__ */ (0, K.jsx)(
|
|
49165
|
+
children: /* @__PURE__ */ (0, K.jsx)(hl, { children: /* @__PURE__ */ (0, K.jsx)(QU, { purchaseWidgetActor: this.purchaseWidgetActor }) })
|
|
49226
49166
|
}) })
|
|
49227
49167
|
})), this.cleanUpRender = () => {
|
|
49228
49168
|
i.unmount(), document.body.removeChild(e);
|
|
@@ -49236,19 +49176,19 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49236
49176
|
destroy() {
|
|
49237
49177
|
this.cleanUpRender?.(), this.purchaseWidgetActor.stop(), this.cleanUpRender = void 0;
|
|
49238
49178
|
}
|
|
49239
|
-
},
|
|
49179
|
+
}, nW = ({ children: e, onClick: t, salesModel: n, uiConfig: r }) => {
|
|
49240
49180
|
P({ event: "view_experience_single_item_button" });
|
|
49241
49181
|
let { i18n: i } = L_(), a = i.language, o = r?.purchaseButtonCopy && r.purchaseButtonCopy?.[a], s = n === "subscription" ? /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "purchase_button.label.subscription" }) : /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "purchase_button.label.default" });
|
|
49242
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
49182
|
+
return /* @__PURE__ */ (0, K.jsx)(kV, {
|
|
49243
49183
|
purchaseButtonConfig: {
|
|
49244
49184
|
onStartPurchase: t,
|
|
49245
49185
|
uiConfigColors: r?.colors,
|
|
49246
49186
|
label: e ?? o?.purchaseButton ?? s,
|
|
49247
49187
|
salesModel: n
|
|
49248
49188
|
},
|
|
49249
|
-
mode:
|
|
49189
|
+
mode: mV.DEFAULT
|
|
49250
49190
|
});
|
|
49251
|
-
},
|
|
49191
|
+
}, rW = (e) => e.map((e) => {
|
|
49252
49192
|
let { id: t, entitlementDetails: n, price: r } = e, i;
|
|
49253
49193
|
return i = n && !n?.isRecurring ? "paygate.single_offering.time_pass" : n?.isRecurring ? "paygate.single_offering.subscription" : "", {
|
|
49254
49194
|
id: t,
|
|
@@ -49256,14 +49196,14 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49256
49196
|
singleOfferingDescription: /* @__PURE__ */ (0, K.jsx)(Y, {
|
|
49257
49197
|
i18nKey: i,
|
|
49258
49198
|
values: { price: jl(r) },
|
|
49259
|
-
components: { duration: /* @__PURE__ */ (0, K.jsx)(
|
|
49199
|
+
components: { duration: /* @__PURE__ */ (0, K.jsx)(DH, { offering: e }) }
|
|
49260
49200
|
}),
|
|
49261
|
-
duration: /* @__PURE__ */ (0, K.jsx)(
|
|
49201
|
+
duration: /* @__PURE__ */ (0, K.jsx)(DH, { offering: e }),
|
|
49262
49202
|
formattedPrice: jl(r)
|
|
49263
49203
|
},
|
|
49264
49204
|
salesModel: n?.isRecurring ? "subscription" : "time_pass"
|
|
49265
49205
|
};
|
|
49266
|
-
}),
|
|
49206
|
+
}), iW = (e, t) => {
|
|
49267
49207
|
let n = /* @__PURE__ */ (0, K.jsx)(Y, { i18nKey: "paygate.title" });
|
|
49268
49208
|
return {
|
|
49269
49209
|
title: t?.title ?? n,
|
|
@@ -49327,7 +49267,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49327
49267
|
}
|
|
49328
49268
|
}
|
|
49329
49269
|
};
|
|
49330
|
-
},
|
|
49270
|
+
}, aW = (e, t) => {
|
|
49331
49271
|
let n = e && e?.mainScreen ? e.mainScreen.offeringIds.filter((e) => !!e) : t.map((e) => e.id), r = {
|
|
49332
49272
|
...e,
|
|
49333
49273
|
mainScreen: {
|
|
@@ -49336,13 +49276,13 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49336
49276
|
}
|
|
49337
49277
|
};
|
|
49338
49278
|
return r.moreOptionsScreen && (r.moreOptionsScreen.offeringIds = r.moreOptionsScreen.offeringIds.filter((e) => !!e)), r;
|
|
49339
|
-
},
|
|
49279
|
+
}, oW = ({ purchaseWidgetActor: e, onStartPurchase: t, onCancel: n, onLogin: r }) => {
|
|
49340
49280
|
P({ event: "view_experience_paygate" });
|
|
49341
49281
|
let { i18n: i } = L_(), a = i.language, { authStatus: o, experience: s, site: c, tab: l, merchantName: u, merchantLogoUrl: d, supertabClient: f } = Jh(e, (e) => e).context;
|
|
49342
49282
|
if (!s || !c || !l) throw Error("Cannot render Paygate without experience");
|
|
49343
49283
|
let p = s.configuration, m = ee(c, s.id), [h, g] = (0, O.useState)(o === fe.VALID), _ = async () => {
|
|
49344
49284
|
g(await r() === fe.VALID);
|
|
49345
|
-
}, v = (0, O.useMemo)(() => jl(l.limit), [l]), y =
|
|
49285
|
+
}, v = (0, O.useMemo)(() => jl(l.limit), [l]), y = aW(p?.uiConfig, m), b = y?.paywallCopy && y.paywallCopy?.[a], x = () => {
|
|
49346
49286
|
_l({
|
|
49347
49287
|
event: "info_button_clicked",
|
|
49348
49288
|
properties: {
|
|
@@ -49350,16 +49290,16 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49350
49290
|
experienceId: s.id
|
|
49351
49291
|
}
|
|
49352
49292
|
});
|
|
49353
|
-
}, S =
|
|
49354
|
-
return /* @__PURE__ */ (0, K.jsx)(
|
|
49293
|
+
}, S = iW(v, b);
|
|
49294
|
+
return /* @__PURE__ */ (0, K.jsx)(rH, {
|
|
49355
49295
|
onClose: n,
|
|
49356
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
49296
|
+
children: /* @__PURE__ */ (0, K.jsx)(HV, {
|
|
49357
49297
|
paywallConfig: {
|
|
49358
49298
|
onStartPurchase: t,
|
|
49359
49299
|
onCancel: n,
|
|
49360
49300
|
onLogin: _,
|
|
49361
49301
|
uiConfig: y,
|
|
49362
|
-
offerings:
|
|
49302
|
+
offerings: rW(m),
|
|
49363
49303
|
siteName: u,
|
|
49364
49304
|
siteLogoUrl: d,
|
|
49365
49305
|
isUserLoggedIn: h,
|
|
@@ -49370,12 +49310,12 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49370
49310
|
language: a
|
|
49371
49311
|
})
|
|
49372
49312
|
});
|
|
49373
|
-
},
|
|
49313
|
+
}, sW = class {
|
|
49374
49314
|
systemProps;
|
|
49375
49315
|
constructor(e) {
|
|
49376
49316
|
this.systemProps = Re(e);
|
|
49377
49317
|
}
|
|
49378
|
-
},
|
|
49318
|
+
}, cW = class extends sW {
|
|
49379
49319
|
apiConfig;
|
|
49380
49320
|
api;
|
|
49381
49321
|
auth;
|
|
@@ -49446,9 +49386,9 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49446
49386
|
}
|
|
49447
49387
|
o(!0), f ||= (0, Df.createRoot)(u), f.render(/* @__PURE__ */ (0, K.jsx)(cf, {
|
|
49448
49388
|
value: d,
|
|
49449
|
-
children: /* @__PURE__ */ (0, K.jsxs)(
|
|
49389
|
+
children: /* @__PURE__ */ (0, K.jsxs)(eW, { children: [/* @__PURE__ */ (0, K.jsx)(kf, {}), /* @__PURE__ */ (0, K.jsx)(O.Suspense, {
|
|
49450
49390
|
fallback: null,
|
|
49451
|
-
children: /* @__PURE__ */ (0, K.jsx)(hl, { children: /* @__PURE__ */ (0, K.jsx)(
|
|
49391
|
+
children: /* @__PURE__ */ (0, K.jsx)(hl, { children: /* @__PURE__ */ (0, K.jsx)(oW, {
|
|
49452
49392
|
purchaseWidgetActor: p,
|
|
49453
49393
|
onStartPurchase: m(e, t),
|
|
49454
49394
|
onLogin: g(e, t),
|
|
@@ -49557,9 +49497,9 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49557
49497
|
renderButton({ reactRoot: e, emotionCache: t, onClick: n, salesModel: r, label: i, uiConfig: a }) {
|
|
49558
49498
|
e.render(/* @__PURE__ */ (0, K.jsx)(cf, {
|
|
49559
49499
|
value: t,
|
|
49560
|
-
children: /* @__PURE__ */ (0, K.jsxs)(
|
|
49500
|
+
children: /* @__PURE__ */ (0, K.jsxs)(eW, { children: [/* @__PURE__ */ (0, K.jsx)(kf, {}), /* @__PURE__ */ (0, K.jsx)(O.Suspense, {
|
|
49561
49501
|
fallback: null,
|
|
49562
|
-
children: /* @__PURE__ */ (0, K.jsx)(
|
|
49502
|
+
children: /* @__PURE__ */ (0, K.jsx)(nW, {
|
|
49563
49503
|
onClick: n,
|
|
49564
49504
|
salesModel: r,
|
|
49565
49505
|
uiConfig: a,
|
|
@@ -49590,7 +49530,7 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49590
49530
|
}
|
|
49591
49531
|
createPurchaseWidget(e) {
|
|
49592
49532
|
let { errorPrefix: t, ...n } = e;
|
|
49593
|
-
return new
|
|
49533
|
+
return new tW({
|
|
49594
49534
|
supertabClient: this,
|
|
49595
49535
|
...n,
|
|
49596
49536
|
onError: (n) => {
|
|
@@ -49618,6 +49558,6 @@ var lW = Wg, uW = ({ purchasingActor: e, onClose: t, onBack: n }) => {
|
|
|
49618
49558
|
experience: a
|
|
49619
49559
|
};
|
|
49620
49560
|
}
|
|
49621
|
-
},
|
|
49561
|
+
}, lW = ue({ esmUrl: "https://js.supertab.co/v3/supertab.js" });
|
|
49622
49562
|
//#endregion
|
|
49623
|
-
export {
|
|
49563
|
+
export { cW as Supertab, lW as loadSupertab };
|