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