@getsupertab/supertab-js 3.27.0 → 3.27.2
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/{browser-ponyfill-CNklgiN6.js → browser-ponyfill-KlDhDwfQ.js} +1 -1
- package/dist/pkg/prod/{sentry-D3TAWXDk.js → sentry-B6KXbiz9.js} +1 -1
- package/dist/pkg/prod/{supertab-BCEiM5iF.js → supertab-CmiLK7XV.js} +148 -148
- package/dist/pkg/prod/supertab.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-
|
|
1
|
+
import { r as mu, T as gu, P as _u, a as Su, V as yu } from "./supertab-CmiLK7XV.js";
|
|
2
2
|
const b = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, q = globalThis, at = "9.40.0";
|
|
3
3
|
function ht() {
|
|
4
4
|
return lr(q), q;
|
|
@@ -2466,7 +2466,7 @@ const eU = (r) => {
|
|
|
2466
2466
|
message: w
|
|
2467
2467
|
};
|
|
2468
2468
|
};
|
|
2469
|
-
function
|
|
2469
|
+
function Wt(r, e) {
|
|
2470
2470
|
const a = Jz(), l = eU({
|
|
2471
2471
|
issueData: e,
|
|
2472
2472
|
data: r.data,
|
|
@@ -2825,7 +2825,7 @@ class V1 extends va {
|
|
|
2825
2825
|
_parse(e) {
|
|
2826
2826
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== ln.string) {
|
|
2827
2827
|
const p = this._getOrReturnCtx(e);
|
|
2828
|
-
return
|
|
2828
|
+
return Wt(p, {
|
|
2829
2829
|
code: St.invalid_type,
|
|
2830
2830
|
expected: ln.string,
|
|
2831
2831
|
received: p.parsedType
|
|
@@ -2835,7 +2835,7 @@ class V1 extends va {
|
|
|
2835
2835
|
let c;
|
|
2836
2836
|
for (const p of this._def.checks)
|
|
2837
2837
|
if (p.kind === "min")
|
|
2838
|
-
e.data.length < p.value && (c = this._getOrReturnCtx(e, c),
|
|
2838
|
+
e.data.length < p.value && (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2839
2839
|
code: St.too_small,
|
|
2840
2840
|
minimum: p.value,
|
|
2841
2841
|
type: "string",
|
|
@@ -2844,7 +2844,7 @@ class V1 extends va {
|
|
|
2844
2844
|
message: p.message
|
|
2845
2845
|
}), l.dirty());
|
|
2846
2846
|
else if (p.kind === "max")
|
|
2847
|
-
e.data.length > p.value && (c = this._getOrReturnCtx(e, c),
|
|
2847
|
+
e.data.length > p.value && (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2848
2848
|
code: St.too_big,
|
|
2849
2849
|
maximum: p.value,
|
|
2850
2850
|
type: "string",
|
|
@@ -2854,14 +2854,14 @@ class V1 extends va {
|
|
|
2854
2854
|
}), l.dirty());
|
|
2855
2855
|
else if (p.kind === "length") {
|
|
2856
2856
|
const h = e.data.length > p.value, w = e.data.length < p.value;
|
|
2857
|
-
(h || w) && (c = this._getOrReturnCtx(e, c), h ?
|
|
2857
|
+
(h || w) && (c = this._getOrReturnCtx(e, c), h ? Wt(c, {
|
|
2858
2858
|
code: St.too_big,
|
|
2859
2859
|
maximum: p.value,
|
|
2860
2860
|
type: "string",
|
|
2861
2861
|
inclusive: !0,
|
|
2862
2862
|
exact: !0,
|
|
2863
2863
|
message: p.message
|
|
2864
|
-
}) : w &&
|
|
2864
|
+
}) : w && Wt(c, {
|
|
2865
2865
|
code: St.too_small,
|
|
2866
2866
|
minimum: p.value,
|
|
2867
2867
|
type: "string",
|
|
@@ -2870,43 +2870,43 @@ class V1 extends va {
|
|
|
2870
2870
|
message: p.message
|
|
2871
2871
|
}), l.dirty());
|
|
2872
2872
|
} else if (p.kind === "email")
|
|
2873
|
-
lU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2873
|
+
lU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2874
2874
|
validation: "email",
|
|
2875
2875
|
code: St.invalid_string,
|
|
2876
2876
|
message: p.message
|
|
2877
2877
|
}), l.dirty());
|
|
2878
2878
|
else if (p.kind === "emoji")
|
|
2879
|
-
MR || (MR = new RegExp(uU, "u")), MR.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2879
|
+
MR || (MR = new RegExp(uU, "u")), MR.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2880
2880
|
validation: "emoji",
|
|
2881
2881
|
code: St.invalid_string,
|
|
2882
2882
|
message: p.message
|
|
2883
2883
|
}), l.dirty());
|
|
2884
2884
|
else if (p.kind === "uuid")
|
|
2885
|
-
aU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2885
|
+
aU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2886
2886
|
validation: "uuid",
|
|
2887
2887
|
code: St.invalid_string,
|
|
2888
2888
|
message: p.message
|
|
2889
2889
|
}), l.dirty());
|
|
2890
2890
|
else if (p.kind === "nanoid")
|
|
2891
|
-
iU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2891
|
+
iU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2892
2892
|
validation: "nanoid",
|
|
2893
2893
|
code: St.invalid_string,
|
|
2894
2894
|
message: p.message
|
|
2895
2895
|
}), l.dirty());
|
|
2896
2896
|
else if (p.kind === "cuid")
|
|
2897
|
-
tU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2897
|
+
tU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2898
2898
|
validation: "cuid",
|
|
2899
2899
|
code: St.invalid_string,
|
|
2900
2900
|
message: p.message
|
|
2901
2901
|
}), l.dirty());
|
|
2902
2902
|
else if (p.kind === "cuid2")
|
|
2903
|
-
nU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2903
|
+
nU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2904
2904
|
validation: "cuid2",
|
|
2905
2905
|
code: St.invalid_string,
|
|
2906
2906
|
message: p.message
|
|
2907
2907
|
}), l.dirty());
|
|
2908
2908
|
else if (p.kind === "ulid")
|
|
2909
|
-
rU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2909
|
+
rU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2910
2910
|
validation: "ulid",
|
|
2911
2911
|
code: St.invalid_string,
|
|
2912
2912
|
message: p.message
|
|
@@ -2915,61 +2915,61 @@ class V1 extends va {
|
|
|
2915
2915
|
try {
|
|
2916
2916
|
new URL(e.data);
|
|
2917
2917
|
} catch {
|
|
2918
|
-
c = this._getOrReturnCtx(e, c),
|
|
2918
|
+
c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2919
2919
|
validation: "url",
|
|
2920
2920
|
code: St.invalid_string,
|
|
2921
2921
|
message: p.message
|
|
2922
2922
|
}), l.dirty();
|
|
2923
2923
|
}
|
|
2924
|
-
else p.kind === "regex" ? (p.regex.lastIndex = 0, p.regex.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2924
|
+
else p.kind === "regex" ? (p.regex.lastIndex = 0, p.regex.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2925
2925
|
validation: "regex",
|
|
2926
2926
|
code: St.invalid_string,
|
|
2927
2927
|
message: p.message
|
|
2928
|
-
}), l.dirty())) : p.kind === "trim" ? e.data = e.data.trim() : p.kind === "includes" ? e.data.includes(p.value, p.position) || (c = this._getOrReturnCtx(e, c),
|
|
2928
|
+
}), l.dirty())) : p.kind === "trim" ? e.data = e.data.trim() : p.kind === "includes" ? e.data.includes(p.value, p.position) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2929
2929
|
code: St.invalid_string,
|
|
2930
2930
|
validation: { includes: p.value, position: p.position },
|
|
2931
2931
|
message: p.message
|
|
2932
|
-
}), l.dirty()) : p.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : p.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : p.kind === "startsWith" ? e.data.startsWith(p.value) || (c = this._getOrReturnCtx(e, c),
|
|
2932
|
+
}), l.dirty()) : p.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : p.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : p.kind === "startsWith" ? e.data.startsWith(p.value) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2933
2933
|
code: St.invalid_string,
|
|
2934
2934
|
validation: { startsWith: p.value },
|
|
2935
2935
|
message: p.message
|
|
2936
|
-
}), l.dirty()) : p.kind === "endsWith" ? e.data.endsWith(p.value) || (c = this._getOrReturnCtx(e, c),
|
|
2936
|
+
}), l.dirty()) : p.kind === "endsWith" ? e.data.endsWith(p.value) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2937
2937
|
code: St.invalid_string,
|
|
2938
2938
|
validation: { endsWith: p.value },
|
|
2939
2939
|
message: p.message
|
|
2940
|
-
}), l.dirty()) : p.kind === "datetime" ? yU(p).test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2940
|
+
}), l.dirty()) : p.kind === "datetime" ? yU(p).test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2941
2941
|
code: St.invalid_string,
|
|
2942
2942
|
validation: "datetime",
|
|
2943
2943
|
message: p.message
|
|
2944
|
-
}), l.dirty()) : p.kind === "date" ? mU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2944
|
+
}), l.dirty()) : p.kind === "date" ? mU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2945
2945
|
code: St.invalid_string,
|
|
2946
2946
|
validation: "date",
|
|
2947
2947
|
message: p.message
|
|
2948
|
-
}), l.dirty()) : p.kind === "time" ? gU(p).test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2948
|
+
}), l.dirty()) : p.kind === "time" ? gU(p).test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2949
2949
|
code: St.invalid_string,
|
|
2950
2950
|
validation: "time",
|
|
2951
2951
|
message: p.message
|
|
2952
|
-
}), l.dirty()) : p.kind === "duration" ? sU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2952
|
+
}), l.dirty()) : p.kind === "duration" ? sU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2953
2953
|
validation: "duration",
|
|
2954
2954
|
code: St.invalid_string,
|
|
2955
2955
|
message: p.message
|
|
2956
|
-
}), l.dirty()) : p.kind === "ip" ? bU(e.data, p.version) || (c = this._getOrReturnCtx(e, c),
|
|
2956
|
+
}), l.dirty()) : p.kind === "ip" ? bU(e.data, p.version) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2957
2957
|
validation: "ip",
|
|
2958
2958
|
code: St.invalid_string,
|
|
2959
2959
|
message: p.message
|
|
2960
|
-
}), l.dirty()) : p.kind === "jwt" ? wU(e.data, p.alg) || (c = this._getOrReturnCtx(e, c),
|
|
2960
|
+
}), l.dirty()) : p.kind === "jwt" ? wU(e.data, p.alg) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2961
2961
|
validation: "jwt",
|
|
2962
2962
|
code: St.invalid_string,
|
|
2963
2963
|
message: p.message
|
|
2964
|
-
}), l.dirty()) : p.kind === "cidr" ? _U(e.data, p.version) || (c = this._getOrReturnCtx(e, c),
|
|
2964
|
+
}), l.dirty()) : p.kind === "cidr" ? _U(e.data, p.version) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2965
2965
|
validation: "cidr",
|
|
2966
2966
|
code: St.invalid_string,
|
|
2967
2967
|
message: p.message
|
|
2968
|
-
}), l.dirty()) : p.kind === "base64" ? hU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2968
|
+
}), l.dirty()) : p.kind === "base64" ? hU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2969
2969
|
validation: "base64",
|
|
2970
2970
|
code: St.invalid_string,
|
|
2971
2971
|
message: p.message
|
|
2972
|
-
}), l.dirty()) : p.kind === "base64url" ? vU.test(e.data) || (c = this._getOrReturnCtx(e, c),
|
|
2972
|
+
}), l.dirty()) : p.kind === "base64url" ? vU.test(e.data) || (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
2973
2973
|
validation: "base64url",
|
|
2974
2974
|
code: St.invalid_string,
|
|
2975
2975
|
message: p.message
|
|
@@ -3215,7 +3215,7 @@ class cx extends va {
|
|
|
3215
3215
|
_parse(e) {
|
|
3216
3216
|
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== ln.number) {
|
|
3217
3217
|
const p = this._getOrReturnCtx(e);
|
|
3218
|
-
return
|
|
3218
|
+
return Wt(p, {
|
|
3219
3219
|
code: St.invalid_type,
|
|
3220
3220
|
expected: ln.number,
|
|
3221
3221
|
received: p.parsedType
|
|
@@ -3224,30 +3224,30 @@ class cx extends va {
|
|
|
3224
3224
|
let l;
|
|
3225
3225
|
const c = new Sp();
|
|
3226
3226
|
for (const p of this._def.checks)
|
|
3227
|
-
p.kind === "int" ? xa.isInteger(e.data) || (l = this._getOrReturnCtx(e, l),
|
|
3227
|
+
p.kind === "int" ? xa.isInteger(e.data) || (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3228
3228
|
code: St.invalid_type,
|
|
3229
3229
|
expected: "integer",
|
|
3230
3230
|
received: "float",
|
|
3231
3231
|
message: p.message
|
|
3232
|
-
}), c.dirty()) : p.kind === "min" ? (p.inclusive ? e.data < p.value : e.data <= p.value) && (l = this._getOrReturnCtx(e, l),
|
|
3232
|
+
}), c.dirty()) : p.kind === "min" ? (p.inclusive ? e.data < p.value : e.data <= p.value) && (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3233
3233
|
code: St.too_small,
|
|
3234
3234
|
minimum: p.value,
|
|
3235
3235
|
type: "number",
|
|
3236
3236
|
inclusive: p.inclusive,
|
|
3237
3237
|
exact: !1,
|
|
3238
3238
|
message: p.message
|
|
3239
|
-
}), c.dirty()) : p.kind === "max" ? (p.inclusive ? e.data > p.value : e.data >= p.value) && (l = this._getOrReturnCtx(e, l),
|
|
3239
|
+
}), c.dirty()) : p.kind === "max" ? (p.inclusive ? e.data > p.value : e.data >= p.value) && (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3240
3240
|
code: St.too_big,
|
|
3241
3241
|
maximum: p.value,
|
|
3242
3242
|
type: "number",
|
|
3243
3243
|
inclusive: p.inclusive,
|
|
3244
3244
|
exact: !1,
|
|
3245
3245
|
message: p.message
|
|
3246
|
-
}), c.dirty()) : p.kind === "multipleOf" ? SU(e.data, p.value) !== 0 && (l = this._getOrReturnCtx(e, l),
|
|
3246
|
+
}), c.dirty()) : p.kind === "multipleOf" ? SU(e.data, p.value) !== 0 && (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3247
3247
|
code: St.not_multiple_of,
|
|
3248
3248
|
multipleOf: p.value,
|
|
3249
3249
|
message: p.message
|
|
3250
|
-
}), c.dirty()) : p.kind === "finite" ? Number.isFinite(e.data) || (l = this._getOrReturnCtx(e, l),
|
|
3250
|
+
}), c.dirty()) : p.kind === "finite" ? Number.isFinite(e.data) || (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3251
3251
|
code: St.not_finite,
|
|
3252
3252
|
message: p.message
|
|
3253
3253
|
}), c.dirty()) : xa.assertNever(p);
|
|
@@ -3396,19 +3396,19 @@ class $C extends va {
|
|
|
3396
3396
|
let l;
|
|
3397
3397
|
const c = new Sp();
|
|
3398
3398
|
for (const p of this._def.checks)
|
|
3399
|
-
p.kind === "min" ? (p.inclusive ? e.data < p.value : e.data <= p.value) && (l = this._getOrReturnCtx(e, l),
|
|
3399
|
+
p.kind === "min" ? (p.inclusive ? e.data < p.value : e.data <= p.value) && (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3400
3400
|
code: St.too_small,
|
|
3401
3401
|
type: "bigint",
|
|
3402
3402
|
minimum: p.value,
|
|
3403
3403
|
inclusive: p.inclusive,
|
|
3404
3404
|
message: p.message
|
|
3405
|
-
}), c.dirty()) : p.kind === "max" ? (p.inclusive ? e.data > p.value : e.data >= p.value) && (l = this._getOrReturnCtx(e, l),
|
|
3405
|
+
}), c.dirty()) : p.kind === "max" ? (p.inclusive ? e.data > p.value : e.data >= p.value) && (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3406
3406
|
code: St.too_big,
|
|
3407
3407
|
type: "bigint",
|
|
3408
3408
|
maximum: p.value,
|
|
3409
3409
|
inclusive: p.inclusive,
|
|
3410
3410
|
message: p.message
|
|
3411
|
-
}), c.dirty()) : p.kind === "multipleOf" ? e.data % p.value !== BigInt(0) && (l = this._getOrReturnCtx(e, l),
|
|
3411
|
+
}), c.dirty()) : p.kind === "multipleOf" ? e.data % p.value !== BigInt(0) && (l = this._getOrReturnCtx(e, l), Wt(l, {
|
|
3412
3412
|
code: St.not_multiple_of,
|
|
3413
3413
|
multipleOf: p.value,
|
|
3414
3414
|
message: p.message
|
|
@@ -3417,7 +3417,7 @@ class $C extends va {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
_getInvalidInput(e) {
|
|
3419
3419
|
const a = this._getOrReturnCtx(e);
|
|
3420
|
-
return
|
|
3420
|
+
return Wt(a, {
|
|
3421
3421
|
code: St.invalid_type,
|
|
3422
3422
|
expected: ln.bigint,
|
|
3423
3423
|
received: a.parsedType
|
|
@@ -3517,7 +3517,7 @@ class O9 extends va {
|
|
|
3517
3517
|
_parse(e) {
|
|
3518
3518
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== ln.boolean) {
|
|
3519
3519
|
const l = this._getOrReturnCtx(e);
|
|
3520
|
-
return
|
|
3520
|
+
return Wt(l, {
|
|
3521
3521
|
code: St.invalid_type,
|
|
3522
3522
|
expected: ln.boolean,
|
|
3523
3523
|
received: l.parsedType
|
|
@@ -3535,7 +3535,7 @@ class mT extends va {
|
|
|
3535
3535
|
_parse(e) {
|
|
3536
3536
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== ln.date) {
|
|
3537
3537
|
const p = this._getOrReturnCtx(e);
|
|
3538
|
-
return
|
|
3538
|
+
return Wt(p, {
|
|
3539
3539
|
code: St.invalid_type,
|
|
3540
3540
|
expected: ln.date,
|
|
3541
3541
|
received: p.parsedType
|
|
@@ -3543,21 +3543,21 @@ class mT extends va {
|
|
|
3543
3543
|
}
|
|
3544
3544
|
if (Number.isNaN(e.data.getTime())) {
|
|
3545
3545
|
const p = this._getOrReturnCtx(e);
|
|
3546
|
-
return
|
|
3546
|
+
return Wt(p, {
|
|
3547
3547
|
code: St.invalid_date
|
|
3548
3548
|
}), lr;
|
|
3549
3549
|
}
|
|
3550
3550
|
const l = new Sp();
|
|
3551
3551
|
let c;
|
|
3552
3552
|
for (const p of this._def.checks)
|
|
3553
|
-
p.kind === "min" ? e.data.getTime() < p.value && (c = this._getOrReturnCtx(e, c),
|
|
3553
|
+
p.kind === "min" ? e.data.getTime() < p.value && (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
3554
3554
|
code: St.too_small,
|
|
3555
3555
|
message: p.message,
|
|
3556
3556
|
inclusive: !0,
|
|
3557
3557
|
exact: !1,
|
|
3558
3558
|
minimum: p.value,
|
|
3559
3559
|
type: "date"
|
|
3560
|
-
}), l.dirty()) : p.kind === "max" ? e.data.getTime() > p.value && (c = this._getOrReturnCtx(e, c),
|
|
3560
|
+
}), l.dirty()) : p.kind === "max" ? e.data.getTime() > p.value && (c = this._getOrReturnCtx(e, c), Wt(c, {
|
|
3561
3561
|
code: St.too_big,
|
|
3562
3562
|
message: p.message,
|
|
3563
3563
|
inclusive: !0,
|
|
@@ -3613,7 +3613,7 @@ class IL extends va {
|
|
|
3613
3613
|
_parse(e) {
|
|
3614
3614
|
if (this._getType(e) !== ln.symbol) {
|
|
3615
3615
|
const l = this._getOrReturnCtx(e);
|
|
3616
|
-
return
|
|
3616
|
+
return Wt(l, {
|
|
3617
3617
|
code: St.invalid_type,
|
|
3618
3618
|
expected: ln.symbol,
|
|
3619
3619
|
received: l.parsedType
|
|
@@ -3630,7 +3630,7 @@ class N9 extends va {
|
|
|
3630
3630
|
_parse(e) {
|
|
3631
3631
|
if (this._getType(e) !== ln.undefined) {
|
|
3632
3632
|
const l = this._getOrReturnCtx(e);
|
|
3633
|
-
return
|
|
3633
|
+
return Wt(l, {
|
|
3634
3634
|
code: St.invalid_type,
|
|
3635
3635
|
expected: ln.undefined,
|
|
3636
3636
|
received: l.parsedType
|
|
@@ -3647,7 +3647,7 @@ class L9 extends va {
|
|
|
3647
3647
|
_parse(e) {
|
|
3648
3648
|
if (this._getType(e) !== ln.null) {
|
|
3649
3649
|
const l = this._getOrReturnCtx(e);
|
|
3650
|
-
return
|
|
3650
|
+
return Wt(l, {
|
|
3651
3651
|
code: St.invalid_type,
|
|
3652
3652
|
expected: ln.null,
|
|
3653
3653
|
received: l.parsedType
|
|
@@ -3687,7 +3687,7 @@ D9.create = (r) => new D9({
|
|
|
3687
3687
|
class X1 extends va {
|
|
3688
3688
|
_parse(e) {
|
|
3689
3689
|
const a = this._getOrReturnCtx(e);
|
|
3690
|
-
return
|
|
3690
|
+
return Wt(a, {
|
|
3691
3691
|
code: St.invalid_type,
|
|
3692
3692
|
expected: ln.never,
|
|
3693
3693
|
received: a.parsedType
|
|
@@ -3702,7 +3702,7 @@ class jL extends va {
|
|
|
3702
3702
|
_parse(e) {
|
|
3703
3703
|
if (this._getType(e) !== ln.undefined) {
|
|
3704
3704
|
const l = this._getOrReturnCtx(e);
|
|
3705
|
-
return
|
|
3705
|
+
return Wt(l, {
|
|
3706
3706
|
code: St.invalid_type,
|
|
3707
3707
|
expected: ln.void,
|
|
3708
3708
|
received: l.parsedType
|
|
@@ -3719,14 +3719,14 @@ class Gm extends va {
|
|
|
3719
3719
|
_parse(e) {
|
|
3720
3720
|
const { ctx: a, status: l } = this._processInputParams(e), c = this._def;
|
|
3721
3721
|
if (a.parsedType !== ln.array)
|
|
3722
|
-
return
|
|
3722
|
+
return Wt(a, {
|
|
3723
3723
|
code: St.invalid_type,
|
|
3724
3724
|
expected: ln.array,
|
|
3725
3725
|
received: a.parsedType
|
|
3726
3726
|
}), lr;
|
|
3727
3727
|
if (c.exactLength !== null) {
|
|
3728
3728
|
const h = a.data.length > c.exactLength.value, w = a.data.length < c.exactLength.value;
|
|
3729
|
-
(h || w) && (
|
|
3729
|
+
(h || w) && (Wt(a, {
|
|
3730
3730
|
code: h ? St.too_big : St.too_small,
|
|
3731
3731
|
minimum: w ? c.exactLength.value : void 0,
|
|
3732
3732
|
maximum: h ? c.exactLength.value : void 0,
|
|
@@ -3736,14 +3736,14 @@ class Gm extends va {
|
|
|
3736
3736
|
message: c.exactLength.message
|
|
3737
3737
|
}), l.dirty());
|
|
3738
3738
|
}
|
|
3739
|
-
if (c.minLength !== null && a.data.length < c.minLength.value && (
|
|
3739
|
+
if (c.minLength !== null && a.data.length < c.minLength.value && (Wt(a, {
|
|
3740
3740
|
code: St.too_small,
|
|
3741
3741
|
minimum: c.minLength.value,
|
|
3742
3742
|
type: "array",
|
|
3743
3743
|
inclusive: !0,
|
|
3744
3744
|
exact: !1,
|
|
3745
3745
|
message: c.minLength.message
|
|
3746
|
-
}), l.dirty()), c.maxLength !== null && a.data.length > c.maxLength.value && (
|
|
3746
|
+
}), l.dirty()), c.maxLength !== null && a.data.length > c.maxLength.value && (Wt(a, {
|
|
3747
3747
|
code: St.too_big,
|
|
3748
3748
|
maximum: c.maxLength.value,
|
|
3749
3749
|
type: "array",
|
|
@@ -3817,7 +3817,7 @@ class Hs extends va {
|
|
|
3817
3817
|
_parse(e) {
|
|
3818
3818
|
if (this._getType(e) !== ln.object) {
|
|
3819
3819
|
const E = this._getOrReturnCtx(e);
|
|
3820
|
-
return
|
|
3820
|
+
return Wt(E, {
|
|
3821
3821
|
code: St.invalid_type,
|
|
3822
3822
|
expected: ln.object,
|
|
3823
3823
|
received: E.parsedType
|
|
@@ -3845,7 +3845,7 @@ class Hs extends va {
|
|
|
3845
3845
|
value: { status: "valid", value: c.data[C] }
|
|
3846
3846
|
});
|
|
3847
3847
|
else if (E === "strict")
|
|
3848
|
-
w.length > 0 && (
|
|
3848
|
+
w.length > 0 && (Wt(c, {
|
|
3849
3849
|
code: St.unrecognized_keys,
|
|
3850
3850
|
keys: w
|
|
3851
3851
|
}), l.dirty());
|
|
@@ -4103,7 +4103,7 @@ class gT extends va {
|
|
|
4103
4103
|
if (w.result.status === "dirty")
|
|
4104
4104
|
return a.common.issues.push(...w.ctx.common.issues), w.result;
|
|
4105
4105
|
const h = p.map((w) => new y0(w.ctx.common.issues));
|
|
4106
|
-
return
|
|
4106
|
+
return Wt(a, {
|
|
4107
4107
|
code: St.invalid_union,
|
|
4108
4108
|
unionErrors: h
|
|
4109
4109
|
}), lr;
|
|
@@ -4150,7 +4150,7 @@ class gT extends va {
|
|
|
4150
4150
|
if (p)
|
|
4151
4151
|
return a.common.issues.push(...p.ctx.common.issues), p.result;
|
|
4152
4152
|
const w = h.map((S) => new y0(S));
|
|
4153
|
-
return
|
|
4153
|
+
return Wt(a, {
|
|
4154
4154
|
code: St.invalid_union,
|
|
4155
4155
|
unionErrors: w
|
|
4156
4156
|
}), lr;
|
|
@@ -4197,7 +4197,7 @@ class yT extends va {
|
|
|
4197
4197
|
if (DL(p) || DL(h))
|
|
4198
4198
|
return lr;
|
|
4199
4199
|
const w = P9(p.value, h.value);
|
|
4200
|
-
return w.valid ? ((PL(p) || PL(h)) && a.dirty(), { status: a.value, value: w.data }) : (
|
|
4200
|
+
return w.valid ? ((PL(p) || PL(h)) && a.dirty(), { status: a.value, value: w.data }) : (Wt(l, {
|
|
4201
4201
|
code: St.invalid_intersection_types
|
|
4202
4202
|
}), lr);
|
|
4203
4203
|
};
|
|
@@ -4233,20 +4233,20 @@ class z_ extends va {
|
|
|
4233
4233
|
_parse(e) {
|
|
4234
4234
|
const { status: a, ctx: l } = this._processInputParams(e);
|
|
4235
4235
|
if (l.parsedType !== ln.array)
|
|
4236
|
-
return
|
|
4236
|
+
return Wt(l, {
|
|
4237
4237
|
code: St.invalid_type,
|
|
4238
4238
|
expected: ln.array,
|
|
4239
4239
|
received: l.parsedType
|
|
4240
4240
|
}), lr;
|
|
4241
4241
|
if (l.data.length < this._def.items.length)
|
|
4242
|
-
return
|
|
4242
|
+
return Wt(l, {
|
|
4243
4243
|
code: St.too_small,
|
|
4244
4244
|
minimum: this._def.items.length,
|
|
4245
4245
|
inclusive: !0,
|
|
4246
4246
|
exact: !1,
|
|
4247
4247
|
type: "array"
|
|
4248
4248
|
}), lr;
|
|
4249
|
-
!this._def.rest && l.data.length > this._def.items.length && (
|
|
4249
|
+
!this._def.rest && l.data.length > this._def.items.length && (Wt(l, {
|
|
4250
4250
|
code: St.too_big,
|
|
4251
4251
|
maximum: this._def.items.length,
|
|
4252
4252
|
inclusive: !0,
|
|
@@ -4289,7 +4289,7 @@ class FL extends va {
|
|
|
4289
4289
|
_parse(e) {
|
|
4290
4290
|
const { status: a, ctx: l } = this._processInputParams(e);
|
|
4291
4291
|
if (l.parsedType !== ln.map)
|
|
4292
|
-
return
|
|
4292
|
+
return Wt(l, {
|
|
4293
4293
|
code: St.invalid_type,
|
|
4294
4294
|
expected: ln.map,
|
|
4295
4295
|
received: l.parsedType
|
|
@@ -4331,20 +4331,20 @@ class HC extends va {
|
|
|
4331
4331
|
_parse(e) {
|
|
4332
4332
|
const { status: a, ctx: l } = this._processInputParams(e);
|
|
4333
4333
|
if (l.parsedType !== ln.set)
|
|
4334
|
-
return
|
|
4334
|
+
return Wt(l, {
|
|
4335
4335
|
code: St.invalid_type,
|
|
4336
4336
|
expected: ln.set,
|
|
4337
4337
|
received: l.parsedType
|
|
4338
4338
|
}), lr;
|
|
4339
4339
|
const c = this._def;
|
|
4340
|
-
c.minSize !== null && l.data.size < c.minSize.value && (
|
|
4340
|
+
c.minSize !== null && l.data.size < c.minSize.value && (Wt(l, {
|
|
4341
4341
|
code: St.too_small,
|
|
4342
4342
|
minimum: c.minSize.value,
|
|
4343
4343
|
type: "set",
|
|
4344
4344
|
inclusive: !0,
|
|
4345
4345
|
exact: !1,
|
|
4346
4346
|
message: c.minSize.message
|
|
4347
|
-
}), a.dirty()), c.maxSize !== null && l.data.size > c.maxSize.value && (
|
|
4347
|
+
}), a.dirty()), c.maxSize !== null && l.data.size > c.maxSize.value && (Wt(l, {
|
|
4348
4348
|
code: St.too_big,
|
|
4349
4349
|
maximum: c.maxSize.value,
|
|
4350
4350
|
type: "set",
|
|
@@ -4409,7 +4409,7 @@ class A9 extends va {
|
|
|
4409
4409
|
_parse(e) {
|
|
4410
4410
|
if (e.data !== this._def.value) {
|
|
4411
4411
|
const a = this._getOrReturnCtx(e);
|
|
4412
|
-
return
|
|
4412
|
+
return Wt(a, {
|
|
4413
4413
|
received: a.data,
|
|
4414
4414
|
code: St.invalid_literal,
|
|
4415
4415
|
expected: this._def.value
|
|
@@ -4437,7 +4437,7 @@ class fx extends va {
|
|
|
4437
4437
|
_parse(e) {
|
|
4438
4438
|
if (typeof e.data != "string") {
|
|
4439
4439
|
const a = this._getOrReturnCtx(e), l = this._def.values;
|
|
4440
|
-
return
|
|
4440
|
+
return Wt(a, {
|
|
4441
4441
|
expected: xa.joinValues(l),
|
|
4442
4442
|
received: a.parsedType,
|
|
4443
4443
|
code: St.invalid_type
|
|
@@ -4445,7 +4445,7 @@ class fx extends va {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
|
|
4447
4447
|
const a = this._getOrReturnCtx(e), l = this._def.values;
|
|
4448
|
-
return
|
|
4448
|
+
return Wt(a, {
|
|
4449
4449
|
received: a.data,
|
|
4450
4450
|
code: St.invalid_enum_value,
|
|
4451
4451
|
options: l
|
|
@@ -4493,7 +4493,7 @@ class UL extends va {
|
|
|
4493
4493
|
const a = xa.getValidEnumValues(this._def.values), l = this._getOrReturnCtx(e);
|
|
4494
4494
|
if (l.parsedType !== ln.string && l.parsedType !== ln.number) {
|
|
4495
4495
|
const c = xa.objectValues(a);
|
|
4496
|
-
return
|
|
4496
|
+
return Wt(l, {
|
|
4497
4497
|
expected: xa.joinValues(c),
|
|
4498
4498
|
received: l.parsedType,
|
|
4499
4499
|
code: St.invalid_type
|
|
@@ -4501,7 +4501,7 @@ class UL extends va {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
if (this._cache || (this._cache = new Set(xa.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
|
|
4503
4503
|
const c = xa.objectValues(a);
|
|
4504
|
-
return
|
|
4504
|
+
return Wt(l, {
|
|
4505
4505
|
received: l.data,
|
|
4506
4506
|
code: St.invalid_enum_value,
|
|
4507
4507
|
options: c
|
|
@@ -4525,7 +4525,7 @@ class bT extends va {
|
|
|
4525
4525
|
_parse(e) {
|
|
4526
4526
|
const { ctx: a } = this._processInputParams(e);
|
|
4527
4527
|
if (a.parsedType !== ln.promise && a.common.async === !1)
|
|
4528
|
-
return
|
|
4528
|
+
return Wt(a, {
|
|
4529
4529
|
code: St.invalid_type,
|
|
4530
4530
|
expected: ln.promise,
|
|
4531
4531
|
received: a.parsedType
|
|
@@ -4552,7 +4552,7 @@ class dx extends va {
|
|
|
4552
4552
|
_parse(e) {
|
|
4553
4553
|
const { status: a, ctx: l } = this._processInputParams(e), c = this._def.effect || null, p = {
|
|
4554
4554
|
addIssue: (h) => {
|
|
4555
|
-
|
|
4555
|
+
Wt(l, h), h.fatal ? a.abort() : a.dirty();
|
|
4556
4556
|
},
|
|
4557
4557
|
get path() {
|
|
4558
4558
|
return l.path;
|
|
@@ -4727,7 +4727,7 @@ class $L extends va {
|
|
|
4727
4727
|
_parse(e) {
|
|
4728
4728
|
if (this._getType(e) !== ln.nan) {
|
|
4729
4729
|
const l = this._getOrReturnCtx(e);
|
|
4730
|
-
return
|
|
4730
|
+
return Wt(l, {
|
|
4731
4731
|
code: St.invalid_type,
|
|
4732
4732
|
expected: ln.nan,
|
|
4733
4733
|
received: l.parsedType
|
|
@@ -4859,7 +4859,7 @@ const kU = cr({
|
|
|
4859
4859
|
VITE_STATIC_REDIRECT_URI: void 0,
|
|
4860
4860
|
VITE_GTM_CONTAINER_ID: "GTM-NG9GT7FM",
|
|
4861
4861
|
VITE_SENTRY_DSN: "https://d08f3f301f364ceba6345c393c538faf@o23455.ingest.us.sentry.io/4507736861573120",
|
|
4862
|
-
VITE_BASE_URL: "https://js.supertab.co/v3.27.
|
|
4862
|
+
VITE_BASE_URL: "https://js.supertab.co/v3.27.2/",
|
|
4863
4863
|
VITE_DEMO_CLIENT_ID: void 0,
|
|
4864
4864
|
VITE_API_BASE_URL: void 0,
|
|
4865
4865
|
VITE_SSO_BASE_URL: void 0,
|
|
@@ -4868,11 +4868,11 @@ const kU = cr({
|
|
|
4868
4868
|
VITE_CHECKOUT_URL: void 0,
|
|
4869
4869
|
TAPPER_ENV: "prod",
|
|
4870
4870
|
PACKAGE_NAME: "@getsupertab/supertab-js",
|
|
4871
|
-
PACKAGE_VERSION: "3.27.
|
|
4871
|
+
PACKAGE_VERSION: "3.27.2",
|
|
4872
4872
|
MONETIZATION_PROVIDER_SCRIPT_URL: void 0,
|
|
4873
4873
|
VITE_POSTHOG_API_HOST: void 0,
|
|
4874
4874
|
VITE_POSTHOG_API_KEY: void 0
|
|
4875
|
-
}), T4 = XS === "ctl" || XS === "sbx" || XS === "stg" ? !0 : XS === "prod" && typeof window < "u" && window.location ? new URLSearchParams(window.location.search).has("supertab-enable-logging") : !1,
|
|
4875
|
+
}), T4 = XS === "ctl" || XS === "sbx" || XS === "stg" ? !0 : XS === "prod" && typeof window < "u" && window.location ? new URLSearchParams(window.location.search).has("supertab-enable-logging") : !1, Vt = {
|
|
4876
4876
|
log: (...r) => {
|
|
4877
4877
|
T4 && console.log(...r);
|
|
4878
4878
|
},
|
|
@@ -4970,7 +4970,7 @@ function z9(r) {
|
|
|
4970
4970
|
const l = setInterval(() => {
|
|
4971
4971
|
r.closed && (clearInterval(l), window.removeEventListener("message", c), a(new Error("Window closed")));
|
|
4972
4972
|
}, 500), c = (p) => {
|
|
4973
|
-
p.source === r && (
|
|
4973
|
+
p.source === r && (Vt.log("Received message:", p.data), p.data && (window.removeEventListener("message", c), l && clearInterval(l), r.close(), e(p.data)));
|
|
4974
4974
|
};
|
|
4975
4975
|
window.addEventListener("message", c);
|
|
4976
4976
|
});
|
|
@@ -5029,7 +5029,7 @@ function y_(r, { optional: e = !1 } = {}) {
|
|
|
5029
5029
|
try {
|
|
5030
5030
|
const l = this.apiConfig.authProvider, c = l.authStatus;
|
|
5031
5031
|
if (e && c === Rs.MISSING)
|
|
5032
|
-
return
|
|
5032
|
+
return Vt.log(
|
|
5033
5033
|
"Auth optional: no auth data, proceeding without auth"
|
|
5034
5034
|
), r.apply(this, a);
|
|
5035
5035
|
if (c === Rs.EXPIRED) {
|
|
@@ -5154,7 +5154,7 @@ class FU {
|
|
|
5154
5154
|
const e = localStorage.getItem(jR);
|
|
5155
5155
|
return e ? JSON.parse(e) : null;
|
|
5156
5156
|
} catch (e) {
|
|
5157
|
-
return
|
|
5157
|
+
return Vt.error(
|
|
5158
5158
|
"Error retrieving auth data from localStorage:",
|
|
5159
5159
|
e
|
|
5160
5160
|
), null;
|
|
@@ -5164,7 +5164,7 @@ class FU {
|
|
|
5164
5164
|
try {
|
|
5165
5165
|
localStorage.setItem(jR, JSON.stringify(e));
|
|
5166
5166
|
} catch (a) {
|
|
5167
|
-
|
|
5167
|
+
Vt.error("Error saving auth data to localStorage:", a);
|
|
5168
5168
|
}
|
|
5169
5169
|
}
|
|
5170
5170
|
get authStatus() {
|
|
@@ -5197,15 +5197,15 @@ class FU {
|
|
|
5197
5197
|
state: c,
|
|
5198
5198
|
challenge: p
|
|
5199
5199
|
});
|
|
5200
|
-
|
|
5200
|
+
Vt.log(
|
|
5201
5201
|
"Initiating auth flow with client ID:",
|
|
5202
5202
|
this.authConfig.clientId
|
|
5203
|
-
),
|
|
5203
|
+
), Vt.log("Setting auth popup URL:", w.toString()), l.location.href = w.toString();
|
|
5204
5204
|
const S = await z9(
|
|
5205
5205
|
l
|
|
5206
5206
|
);
|
|
5207
|
-
if (
|
|
5208
|
-
throw
|
|
5207
|
+
if (Vt.log("Received auth message:", S), S.state !== c)
|
|
5208
|
+
throw Vt.log("State mismatch:", S.state, c), new fo({ message: "State mismatch." });
|
|
5209
5209
|
if (S.authCode) {
|
|
5210
5210
|
if (S.scope !== FR)
|
|
5211
5211
|
throw new fo({ message: "Scope mismatch." });
|
|
@@ -5216,7 +5216,7 @@ class FU {
|
|
|
5216
5216
|
});
|
|
5217
5217
|
return this.authData = E, this.authData;
|
|
5218
5218
|
} catch (l) {
|
|
5219
|
-
if (
|
|
5219
|
+
if (Vt.error("Auth flow failed:", l), l instanceof fo)
|
|
5220
5220
|
throw l;
|
|
5221
5221
|
const c = AC(l);
|
|
5222
5222
|
throw new fo({ message: c });
|
|
@@ -5251,14 +5251,14 @@ class FU {
|
|
|
5251
5251
|
// no callback handling.
|
|
5252
5252
|
redirectUri: window.location.origin
|
|
5253
5253
|
});
|
|
5254
|
-
return
|
|
5254
|
+
return Vt.log(
|
|
5255
5255
|
"Initiating redirect auth flow with client ID:",
|
|
5256
5256
|
this.authConfig.clientId
|
|
5257
5257
|
), window.location.href = h.toString(), null;
|
|
5258
5258
|
}
|
|
5259
5259
|
async startMockRedirectFlow() {
|
|
5260
5260
|
const e = Math.floor(Math.random() * 1e3), a = VL(e);
|
|
5261
|
-
return this.authData = a,
|
|
5261
|
+
return this.authData = a, Vt.log("Mock redirect flow completed for user:", e), this.authData;
|
|
5262
5262
|
}
|
|
5263
5263
|
async handleRedirectCallback() {
|
|
5264
5264
|
try {
|
|
@@ -5288,9 +5288,9 @@ class FU {
|
|
|
5288
5288
|
});
|
|
5289
5289
|
localStorage.removeItem(R4), this.authData = h;
|
|
5290
5290
|
const w = new URL(window.location.href);
|
|
5291
|
-
return w.searchParams.delete("code"), w.searchParams.delete("state"), w.searchParams.delete("scope"), window.history.replaceState({}, document.title, w.toString()),
|
|
5291
|
+
return w.searchParams.delete("code"), w.searchParams.delete("state"), w.searchParams.delete("scope"), window.history.replaceState({}, document.title, w.toString()), Vt.log("Redirect callback handled successfully"), this.authData;
|
|
5292
5292
|
} catch (e) {
|
|
5293
|
-
if (
|
|
5293
|
+
if (Vt.error("Error handling redirect callback:", e), localStorage.removeItem(R4), e instanceof fo)
|
|
5294
5294
|
throw e;
|
|
5295
5295
|
const a = AC(e);
|
|
5296
5296
|
throw new fo({ message: a });
|
|
@@ -5324,7 +5324,7 @@ class FU {
|
|
|
5324
5324
|
var h;
|
|
5325
5325
|
let c = 0, p = null;
|
|
5326
5326
|
for (; c < 3; ) {
|
|
5327
|
-
c++,
|
|
5327
|
+
c++, Vt.log(
|
|
5328
5328
|
`Refreshing token (attempt ${c}/3)...`
|
|
5329
5329
|
);
|
|
5330
5330
|
try {
|
|
@@ -5351,20 +5351,20 @@ class FU {
|
|
|
5351
5351
|
}
|
|
5352
5352
|
} catch (w) {
|
|
5353
5353
|
const S = AC(w);
|
|
5354
|
-
if (p = new fo({ message: S }),
|
|
5354
|
+
if (p = new fo({ message: S }), Vt.error(
|
|
5355
5355
|
`Error refreshing token (attempt ${c}/3):`,
|
|
5356
5356
|
w
|
|
5357
5357
|
), c < 3) {
|
|
5358
|
-
|
|
5358
|
+
Vt.log(
|
|
5359
5359
|
"Waiting 1000ms before next refresh attempt..."
|
|
5360
5360
|
), await new Promise((E) => setTimeout(E, 1e3));
|
|
5361
5361
|
continue;
|
|
5362
5362
|
}
|
|
5363
5363
|
}
|
|
5364
5364
|
}
|
|
5365
|
-
return this.clearAuthData(),
|
|
5365
|
+
return this.clearAuthData(), Vt.error(
|
|
5366
5366
|
"Token refresh failed after 3 attempts"
|
|
5367
|
-
), p &&
|
|
5367
|
+
), p && Vt.error(`Last error: ${p.message}`), null;
|
|
5368
5368
|
})().finally(() => {
|
|
5369
5369
|
this.refreshPromise = null;
|
|
5370
5370
|
}), this.refreshPromise);
|
|
@@ -5372,7 +5372,7 @@ class FU {
|
|
|
5372
5372
|
async refreshMockToken() {
|
|
5373
5373
|
if (!this.authData)
|
|
5374
5374
|
return null;
|
|
5375
|
-
|
|
5375
|
+
Vt.log(
|
|
5376
5376
|
"Using mock refresh for user",
|
|
5377
5377
|
this.authData.accessToken
|
|
5378
5378
|
);
|
|
@@ -5424,7 +5424,7 @@ class FU {
|
|
|
5424
5424
|
try {
|
|
5425
5425
|
localStorage.removeItem(jR);
|
|
5426
5426
|
} catch (e) {
|
|
5427
|
-
|
|
5427
|
+
Vt.error(
|
|
5428
5428
|
"Error clearing auth data from localStorage:",
|
|
5429
5429
|
e
|
|
5430
5430
|
);
|
|
@@ -5570,17 +5570,17 @@ const In = /* @__PURE__ */ lN(I), _T = /* @__PURE__ */ Wz({
|
|
|
5570
5570
|
default: In
|
|
5571
5571
|
}, [I]), E_ = async (r) => {
|
|
5572
5572
|
if (EU) {
|
|
5573
|
-
const { captureException: e } = await import("./sentry-
|
|
5573
|
+
const { captureException: e } = await import("./sentry-B6KXbiz9.js");
|
|
5574
5574
|
e(r);
|
|
5575
5575
|
}
|
|
5576
5576
|
}, xC = "tabjs";
|
|
5577
5577
|
function Tx(r, e) {
|
|
5578
5578
|
if (!e)
|
|
5579
|
-
return
|
|
5579
|
+
return Vt.warn(
|
|
5580
5580
|
"Not sending GTM event because event data is null or undefined."
|
|
5581
5581
|
);
|
|
5582
5582
|
if (!e.event)
|
|
5583
|
-
return
|
|
5583
|
+
return Vt.warn(
|
|
5584
5584
|
"Not sending GTM event because event name is missing."
|
|
5585
5585
|
);
|
|
5586
5586
|
Rl(e);
|
|
@@ -5591,7 +5591,7 @@ function U_(r, e = !0) {
|
|
|
5591
5591
|
}, [e, r]);
|
|
5592
5592
|
}
|
|
5593
5593
|
function Rl(r) {
|
|
5594
|
-
|
|
5594
|
+
Vt.log("Enqueueing GTM event", r, { dataLayerName: xC }), window[xC] = window[xC] || [], window[xC].push(r);
|
|
5595
5595
|
}
|
|
5596
5596
|
async function $U(r) {
|
|
5597
5597
|
return new Promise((e, a) => {
|
|
@@ -5608,11 +5608,11 @@ async function $U(r) {
|
|
|
5608
5608
|
});
|
|
5609
5609
|
}
|
|
5610
5610
|
if (C4) {
|
|
5611
|
-
|
|
5611
|
+
Vt.log("Initializing GTM with container ID", C4);
|
|
5612
5612
|
try {
|
|
5613
5613
|
$U(C4);
|
|
5614
5614
|
} catch (r) {
|
|
5615
|
-
|
|
5615
|
+
Vt.error(
|
|
5616
5616
|
"Initialization of GTM container with container ID",
|
|
5617
5617
|
C4,
|
|
5618
5618
|
"failed.",
|
|
@@ -5620,7 +5620,7 @@ if (C4) {
|
|
|
5620
5620
|
), E_(r);
|
|
5621
5621
|
}
|
|
5622
5622
|
} else
|
|
5623
|
-
|
|
5623
|
+
Vt.log("No GTM container ID provided. Skipping initialization.");
|
|
5624
5624
|
function HU(r, e) {
|
|
5625
5625
|
if (!r || !Array.isArray(r) || !e || !Array.isArray(e))
|
|
5626
5626
|
return [];
|
|
@@ -5653,7 +5653,7 @@ function BU({
|
|
|
5653
5653
|
selectedOfferingId: r,
|
|
5654
5654
|
offerings: e
|
|
5655
5655
|
}) {
|
|
5656
|
-
|
|
5656
|
+
Vt.log("offerings?", e);
|
|
5657
5657
|
const a = e.find(
|
|
5658
5658
|
(l) => l.id === r
|
|
5659
5659
|
);
|
|
@@ -5661,7 +5661,7 @@ function BU({
|
|
|
5661
5661
|
throw Rl({ event: "state_offering_invalid" }), new Error(
|
|
5662
5662
|
`Offering with id ${r} is not available for this client.`
|
|
5663
5663
|
);
|
|
5664
|
-
return
|
|
5664
|
+
return Vt.log("Using selected offering", a), a;
|
|
5665
5665
|
}
|
|
5666
5666
|
function VU({
|
|
5667
5667
|
offerings: r
|
|
@@ -5669,7 +5669,7 @@ function VU({
|
|
|
5669
5669
|
const e = r[0];
|
|
5670
5670
|
if (!e)
|
|
5671
5671
|
throw new Error("No offerings found.");
|
|
5672
|
-
return
|
|
5672
|
+
return Vt.log(
|
|
5673
5673
|
"Defaulting to the first offering because no offering id was selected.",
|
|
5674
5674
|
e
|
|
5675
5675
|
), e;
|
|
@@ -5679,7 +5679,7 @@ function A_(r) {
|
|
|
5679
5679
|
}
|
|
5680
5680
|
async function bI(r) {
|
|
5681
5681
|
const e = document.createElement("style");
|
|
5682
|
-
e.textContent = (await import("./style-BOUaIYiU.js")).default, r.appendChild(e),
|
|
5682
|
+
e.textContent = (await import("./style-BOUaIYiU.js")).default, r.appendChild(e), Vt.log("Design system styles applied");
|
|
5683
5683
|
}
|
|
5684
5684
|
const l5 = (r, e) => {
|
|
5685
5685
|
const a = (S) => {
|
|
@@ -6288,21 +6288,21 @@ class E$ {
|
|
|
6288
6288
|
} = {}) {
|
|
6289
6289
|
const c = this.authProvider.authStatus;
|
|
6290
6290
|
if (!!!e && c === Rs.MISSING)
|
|
6291
|
-
return
|
|
6291
|
+
return Vt.log("AuthClient: start: Starting interactive flow", {
|
|
6292
6292
|
screenHint: a
|
|
6293
6293
|
}), this.authProvider.startInteractiveFlow({
|
|
6294
6294
|
screenHint: a,
|
|
6295
6295
|
flow: l
|
|
6296
6296
|
});
|
|
6297
6297
|
if (c === Rs.EXPIRED) {
|
|
6298
|
-
|
|
6298
|
+
Vt.log(
|
|
6299
6299
|
"AuthClient: start: Token expired, attempting refresh"
|
|
6300
6300
|
);
|
|
6301
6301
|
const h = await this.authProvider.refreshToken();
|
|
6302
6302
|
if (h)
|
|
6303
|
-
return
|
|
6303
|
+
return Vt.log("AuthClient: start: Token refreshed successfully"), h;
|
|
6304
6304
|
} else if (c === Rs.VALID)
|
|
6305
|
-
return
|
|
6305
|
+
return Vt.log("AuthClient: start: Already authenticated"), this.session;
|
|
6306
6306
|
return this.session;
|
|
6307
6307
|
}
|
|
6308
6308
|
/**
|
|
@@ -29493,7 +29493,7 @@ const BB = Ox(({ input: r, sendBack: e }) => {
|
|
|
29493
29493
|
});
|
|
29494
29494
|
}), VB = Nx({
|
|
29495
29495
|
actions: {
|
|
29496
|
-
logErrorEvent: ({ event: r }) =>
|
|
29496
|
+
logErrorEvent: ({ event: r }) => Vt.error("Error event", r),
|
|
29497
29497
|
sendGtmEvent: Tx
|
|
29498
29498
|
},
|
|
29499
29499
|
actors: {
|
|
@@ -29644,18 +29644,18 @@ const BB = Ox(({ input: r, sendBack: e }) => {
|
|
|
29644
29644
|
experience: c,
|
|
29645
29645
|
site: p
|
|
29646
29646
|
} = r;
|
|
29647
|
-
|
|
29647
|
+
Vt.log("Loading actor started with site in context:", {
|
|
29648
29648
|
contextSite: p
|
|
29649
29649
|
});
|
|
29650
29650
|
const w = (await a.api.retrieveCustomer()).tab, S = p || await a.api.retrieveSite();
|
|
29651
|
-
Rl({ event: "state_tab_loaded" }),
|
|
29651
|
+
Rl({ event: "state_tab_loaded" }), Vt.log("Loaded", { tab: w, site: S });
|
|
29652
29652
|
const E = l ? S.offerings : c ? dN(S, c.id) : S.offerings, C = await yI({
|
|
29653
29653
|
offerings: E,
|
|
29654
29654
|
selectedOfferingId: l
|
|
29655
29655
|
});
|
|
29656
29656
|
e({ type: "loaded", tab: w, offering: C, site: S });
|
|
29657
29657
|
})().catch((a) => {
|
|
29658
|
-
|
|
29658
|
+
Vt.error("Error during loading:", a), e({ type: "xstate.error.actor.loading", error: a });
|
|
29659
29659
|
});
|
|
29660
29660
|
});
|
|
29661
29661
|
var He = typeof window < "u" ? window : void 0, Ef = typeof globalThis < "u" ? globalThis : He, aM = Array.prototype, OD = aM.forEach, ND = aM.indexOf, gp = Ef == null ? void 0 : Ef.navigator, qt = Ef == null ? void 0 : Ef.document, kf = Ef == null ? void 0 : Ef.location, eO = Ef == null ? void 0 : Ef.fetch, tO = Ef != null && Ef.XMLHttpRequest && "withCredentials" in new Ef.XMLHttpRequest() ? Ef.XMLHttpRequest : void 0, LD = Ef == null ? void 0 : Ef.AbortController, xf = gp == null ? void 0 : gp.userAgent, Rn = He ?? {}, f0 = { DEBUG: !1, LIB_VERSION: "1.266.3" };
|
|
@@ -34333,11 +34333,11 @@ function mj() {
|
|
|
34333
34333
|
}
|
|
34334
34334
|
function VN(r, e) {
|
|
34335
34335
|
if (!e)
|
|
34336
|
-
return
|
|
34336
|
+
return Vt.warn(
|
|
34337
34337
|
"Not sending GTM event because event data is null or undefined."
|
|
34338
34338
|
);
|
|
34339
34339
|
if (!e.event)
|
|
34340
|
-
return
|
|
34340
|
+
return Vt.warn(
|
|
34341
34341
|
"Not sending GTM event because event name is missing."
|
|
34342
34342
|
);
|
|
34343
34343
|
X_(e);
|
|
@@ -34354,7 +34354,7 @@ function yj(r, e = !0) {
|
|
|
34354
34354
|
}, [r, e]);
|
|
34355
34355
|
}
|
|
34356
34356
|
function X_(r) {
|
|
34357
|
-
mj();
|
|
34357
|
+
mj(), Vt.log("Sending PostHog event", r);
|
|
34358
34358
|
const e = {
|
|
34359
34359
|
platform: "supertab-js",
|
|
34360
34360
|
...r.properties
|
|
@@ -34391,7 +34391,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34391
34391
|
tabTotal: (M = c == null ? void 0 : c.total) == null ? void 0 : M.amount,
|
|
34392
34392
|
tabCurrency: ($ = c == null ? void 0 : c.total) == null ? void 0 : $.currency.code
|
|
34393
34393
|
}
|
|
34394
|
-
}),
|
|
34394
|
+
}), Vt.log(
|
|
34395
34395
|
"User needs to complete purchase in Checkout app. Opening Checkout window…"
|
|
34396
34396
|
));
|
|
34397
34397
|
const E = await a.api.purchase({
|
|
@@ -34426,7 +34426,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34426
34426
|
} else
|
|
34427
34427
|
Rl({ event: "state_payment_canceled" }), A_(l) ? e({ type: "payNowPaymentCanceled" }) : e({ type: "paymentCanceled" });
|
|
34428
34428
|
} catch (G) {
|
|
34429
|
-
Rl({ event: "state_payment_error" }),
|
|
34429
|
+
Rl({ event: "state_payment_error" }), Vt.error("Error during payment:", G), e({ type: "xstate.error.actor.makingPurchase", error: G });
|
|
34430
34430
|
}
|
|
34431
34431
|
return;
|
|
34432
34432
|
}
|
|
@@ -34445,11 +34445,11 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34445
34445
|
`Unexpected purchase result: ${JSON.stringify(C)}`
|
|
34446
34446
|
);
|
|
34447
34447
|
})().catch((l) => {
|
|
34448
|
-
|
|
34448
|
+
Vt.error("Error during purchase:", l), a.checkout._destroyCheckoutWindow(), e({ type: "xstate.error.actor.makingPurchase", error: l });
|
|
34449
34449
|
});
|
|
34450
34450
|
}), Cq = Nx({
|
|
34451
34451
|
actions: {
|
|
34452
|
-
logErrorEvent: ({ event: r }) =>
|
|
34452
|
+
logErrorEvent: ({ event: r }) => Vt.error("Error event", r),
|
|
34453
34453
|
sendGtmEvent: Tx,
|
|
34454
34454
|
sendPostHogEvent: VN
|
|
34455
34455
|
},
|
|
@@ -34758,7 +34758,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34758
34758
|
const h = await a.api.retrieveSite(), w = (c || h.name) ?? "", S = (p || h.logoUrl) ?? "", E = l ? h.experiences.find((M) => M.id === l) : h.experiences[0];
|
|
34759
34759
|
if (!E)
|
|
34760
34760
|
throw new Error("No experience found for this site/client");
|
|
34761
|
-
|
|
34761
|
+
Vt.log("Experience loaded", E), Rl({ event: "state_experience_config_loaded" });
|
|
34762
34762
|
const C = dN(h, E.id), R = await yI({
|
|
34763
34763
|
offerings: C
|
|
34764
34764
|
}), D = (await a.api.retrieveCustomer()).tab;
|
|
@@ -34794,7 +34794,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34794
34794
|
merchantLogoUrl: S
|
|
34795
34795
|
});
|
|
34796
34796
|
})().catch((a) => {
|
|
34797
|
-
Rl({ event: "state_checking_prior_entitlement_error" }),
|
|
34797
|
+
Rl({ event: "state_checking_prior_entitlement_error" }), Vt.error("Error during initialization:", a), e({ type: "xstate.error.actor.initializing", error: a });
|
|
34798
34798
|
});
|
|
34799
34799
|
}), Oq = Ox(({ input: r, sendBack: e }) => {
|
|
34800
34800
|
(async () => {
|
|
@@ -34813,7 +34813,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34813
34813
|
const C = await a.auth.start({
|
|
34814
34814
|
screenHint: l
|
|
34815
34815
|
});
|
|
34816
|
-
|
|
34816
|
+
Vt.log("authResult", C);
|
|
34817
34817
|
} catch (C) {
|
|
34818
34818
|
if (C instanceof fo) {
|
|
34819
34819
|
Rl({ event: "state_sso_canceled" }), e({
|
|
@@ -34837,7 +34837,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34837
34837
|
canPurchase: S
|
|
34838
34838
|
});
|
|
34839
34839
|
})().catch((a) => {
|
|
34840
|
-
Rl({ event: "state_oauth_error" }),
|
|
34840
|
+
Rl({ event: "state_oauth_error" }), Vt.error("Error during authorization:", a), e({ type: "xstate.error.actor.authorizing", error: a });
|
|
34841
34841
|
});
|
|
34842
34842
|
}), Nq = Ox(({ input: r, sendBack: e }) => {
|
|
34843
34843
|
(async () => {
|
|
@@ -34872,7 +34872,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34872
34872
|
}
|
|
34873
34873
|
},
|
|
34874
34874
|
actions: {
|
|
34875
|
-
logErrorEvent: ({ event: r }) =>
|
|
34875
|
+
logErrorEvent: ({ event: r }) => Vt.error("Error event", r),
|
|
34876
34876
|
sendGtmEvent: Tx
|
|
34877
34877
|
}
|
|
34878
34878
|
}).createMachine({
|
|
@@ -34993,7 +34993,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
34993
34993
|
}
|
|
34994
34994
|
}), Dq = Nx({
|
|
34995
34995
|
actions: {
|
|
34996
|
-
logErrorEvent: ({ event: r }) =>
|
|
34996
|
+
logErrorEvent: ({ event: r }) => Vt.error("Error event", r),
|
|
34997
34997
|
sendGtmEvent: Tx,
|
|
34998
34998
|
sendPostHogEvent: VN,
|
|
34999
34999
|
resetAuth: () => {
|
|
@@ -35155,7 +35155,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
35155
35155
|
}
|
|
35156
35156
|
}), Pq = Nx({
|
|
35157
35157
|
actions: {
|
|
35158
|
-
logErrorEvent: ({ event: r }) =>
|
|
35158
|
+
logErrorEvent: ({ event: r }) => Vt.error("Error event", r),
|
|
35159
35159
|
resetAuth: () => {
|
|
35160
35160
|
localStorage.removeItem("supertab-auth"), Ua({ authStatus: Rs.MISSING });
|
|
35161
35161
|
},
|
|
@@ -35281,7 +35281,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
35281
35281
|
{
|
|
35282
35282
|
// If the user has an expired entitlement, re-initialize
|
|
35283
35283
|
guard: "entitlementExpired",
|
|
35284
|
-
actions: () =>
|
|
35284
|
+
actions: () => Vt.log(
|
|
35285
35285
|
"State Ready: User has an expired entitlement, re-initializing."
|
|
35286
35286
|
),
|
|
35287
35287
|
target: "Initializing"
|
|
@@ -35289,7 +35289,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
35289
35289
|
{
|
|
35290
35290
|
// Else, if the user has an active entitlement, check again in 1 second
|
|
35291
35291
|
guard: "hasEntitlement",
|
|
35292
|
-
actions: () =>
|
|
35292
|
+
actions: () => Vt.log(
|
|
35293
35293
|
"State Ready: User has an active entitlement, checking again in 1 sec."
|
|
35294
35294
|
),
|
|
35295
35295
|
target: "Ready",
|
|
@@ -35494,7 +35494,7 @@ const Eq = Ox(({ input: r, sendBack: e }) => {
|
|
|
35494
35494
|
actions: [
|
|
35495
35495
|
"logErrorEvent",
|
|
35496
35496
|
({ event: r }) => {
|
|
35497
|
-
|
|
35497
|
+
Vt.error(
|
|
35498
35498
|
"Invalid offering - exiting flow:",
|
|
35499
35499
|
r.error
|
|
35500
35500
|
);
|
|
@@ -67507,7 +67507,7 @@ const Ane = ({
|
|
|
67507
67507
|
var a;
|
|
67508
67508
|
const e = (a = r.entitlementDetails) == null ? void 0 : a.duration;
|
|
67509
67509
|
if (!e)
|
|
67510
|
-
return
|
|
67510
|
+
return Vt.warn("No duration found for offering", r), null;
|
|
67511
67511
|
try {
|
|
67512
67512
|
const { count: l, unit: c } = Ine(e);
|
|
67513
67513
|
return /* @__PURE__ */ ce.jsx(
|
|
@@ -67519,7 +67519,7 @@ const Ane = ({
|
|
|
67519
67519
|
}
|
|
67520
67520
|
);
|
|
67521
67521
|
} catch (l) {
|
|
67522
|
-
return
|
|
67522
|
+
return Vt.warn(`Failed to parse duration: ${e}
|
|
67523
67523
|
`, l), null;
|
|
67524
67524
|
}
|
|
67525
67525
|
}, Ine = (r) => {
|
|
@@ -69500,7 +69500,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
|
|
|
69500
69500
|
typeof ab != "function" && (ab = void 0);
|
|
69501
69501
|
if (!ab && !o5 && !i8)
|
|
69502
69502
|
try {
|
|
69503
|
-
import("./browser-ponyfill-
|
|
69503
|
+
import("./browser-ponyfill-KlDhDwfQ.js").then((r) => r.b).then(function(r) {
|
|
69504
69504
|
ab = r.default;
|
|
69505
69505
|
}).catch(function() {
|
|
69506
69506
|
});
|
|
@@ -69841,7 +69841,7 @@ const Nre = ({
|
|
|
69841
69841
|
l.matches("AwaitingConfirmation")
|
|
69842
69842
|
), yj(
|
|
69843
69843
|
{
|
|
69844
|
-
event: "confirm_screen_shown",
|
|
69844
|
+
event: R && q && !(p != null && p.isPayNow) ? "full_tab_screen_shown" : "confirm_screen_shown",
|
|
69845
69845
|
properties: {
|
|
69846
69846
|
experienceId: E == null ? void 0 : E.id,
|
|
69847
69847
|
offeringId: p == null ? void 0 : p.id,
|
|
@@ -69957,7 +69957,7 @@ const Nre = ({
|
|
|
69957
69957
|
state: Zp.Filled,
|
|
69958
69958
|
locale: Oe
|
|
69959
69959
|
} : void 0;
|
|
69960
|
-
return U_({ event: "view_purchase_complete" }, a), U_({ event: "view_payment_complete" }, l),
|
|
69960
|
+
return U_({ event: "view_purchase_complete" }, a), U_({ event: "view_payment_complete" }, l), Vt.log("ThankYou State", p.value, p.context), /* @__PURE__ */ ce.jsx(
|
|
69961
69961
|
Lz,
|
|
69962
69962
|
{
|
|
69963
69963
|
offering: w,
|
|
@@ -69988,7 +69988,7 @@ const Nre = ({
|
|
|
69988
69988
|
purchaseWidgetActor: r
|
|
69989
69989
|
}) => {
|
|
69990
69990
|
const e = m0(r, (h) => h), a = r.send.bind(r);
|
|
69991
|
-
|
|
69991
|
+
Vt.log("PurchaseWidget State", e.value);
|
|
69992
69992
|
const l = () => a({ type: "openAboutSupertab" }), c = () => a({ type: "close", cancellationIntent: "close" }), p = () => a({ type: "close", cancellationIntent: "back" });
|
|
69993
69993
|
return f5(), /* @__PURE__ */ ce.jsxs(ce.Fragment, { children: [
|
|
69994
69994
|
/* @__PURE__ */ ce.jsx(Y9, {}),
|
|
@@ -70089,9 +70089,9 @@ class jre {
|
|
|
70089
70089
|
}
|
|
70090
70090
|
}), this.purchaseWidgetActor.subscribe({
|
|
70091
70091
|
error: (S) => {
|
|
70092
|
-
|
|
70092
|
+
Vt.error("Unhandled XState error:", S), this.destroy(), p == null || p(S);
|
|
70093
70093
|
}
|
|
70094
|
-
}), c && (
|
|
70094
|
+
}), c && (Vt.log("Setting language to", c), Bl.changeLanguage(c));
|
|
70095
70095
|
}
|
|
70096
70096
|
async initialize() {
|
|
70097
70097
|
return new Promise((e) => {
|
|
@@ -70443,12 +70443,12 @@ class iae extends Wre {
|
|
|
70443
70443
|
const S = (W) => {
|
|
70444
70444
|
const xe = document.body.style.overflow === "hidden";
|
|
70445
70445
|
if (W) {
|
|
70446
|
-
w === null && !xe && (w = document.body.style.overflow || "", document.body.style.overflow = "hidden",
|
|
70446
|
+
w === null && !xe && (w = document.body.style.overflow || "", document.body.style.overflow = "hidden", Vt.log(
|
|
70447
70447
|
"Supertab: Preventing page scrolling while paywall is visible"
|
|
70448
70448
|
));
|
|
70449
70449
|
return;
|
|
70450
70450
|
}
|
|
70451
|
-
w !== null && (document.body.style.overflow = w, w = null,
|
|
70451
|
+
w !== null && (document.body.style.overflow = w, w = null, Vt.log("Supertab: Restored page scrolling"));
|
|
70452
70452
|
}, E = this.createPurchaseWidget({
|
|
70453
70453
|
experienceId: p,
|
|
70454
70454
|
merchantName: a,
|
|
@@ -70482,7 +70482,7 @@ class iae extends Wre {
|
|
|
70482
70482
|
W(de);
|
|
70483
70483
|
}
|
|
70484
70484
|
} catch (fe) {
|
|
70485
|
-
S(!1),
|
|
70485
|
+
S(!1), Vt.error("Error starting purchase:", fe), E_(fe), ee(fe);
|
|
70486
70486
|
}
|
|
70487
70487
|
}, q = (W) => () => {
|
|
70488
70488
|
re(), W(
|
|
@@ -70497,7 +70497,7 @@ class iae extends Wre {
|
|
|
70497
70497
|
)
|
|
70498
70498
|
)), xe;
|
|
70499
70499
|
} catch (xe) {
|
|
70500
|
-
throw
|
|
70500
|
+
throw Vt.error("Error during login:", xe), E_(xe), ee(xe), xe;
|
|
70501
70501
|
}
|
|
70502
70502
|
}, { experience: J } = this.getExperienceDetails(M, {
|
|
70503
70503
|
experienceId: p,
|
|
@@ -70517,7 +70517,7 @@ class iae extends Wre {
|
|
|
70517
70517
|
E.resetPreviousPurchaseData();
|
|
70518
70518
|
const { priorEntitlement: xe } = M.getSnapshot().context;
|
|
70519
70519
|
if (xe && !wT(xe)) {
|
|
70520
|
-
|
|
70520
|
+
Vt.warn(
|
|
70521
70521
|
"Not showing Paywall because user has an entitlement"
|
|
70522
70522
|
), W(
|
|
70523
70523
|
$m(
|
|
@@ -70555,7 +70555,7 @@ class iae extends Wre {
|
|
|
70555
70555
|
initialState: oe
|
|
70556
70556
|
};
|
|
70557
70557
|
} catch (w) {
|
|
70558
|
-
throw
|
|
70558
|
+
throw Vt.error("PaywallError: Failed to create Paywall:", w), w;
|
|
70559
70559
|
}
|
|
70560
70560
|
}
|
|
70561
70561
|
/**
|
|
@@ -70626,12 +70626,12 @@ class iae extends Wre {
|
|
|
70626
70626
|
)
|
|
70627
70627
|
};
|
|
70628
70628
|
} catch (C) {
|
|
70629
|
-
return
|
|
70629
|
+
return Vt.error(
|
|
70630
70630
|
"PurchaseButtonError: Failed to create PurchaseButton:",
|
|
70631
70631
|
C
|
|
70632
70632
|
), E_(C), {
|
|
70633
70633
|
destroy: () => {
|
|
70634
|
-
|
|
70634
|
+
Vt.warn("Nothing to destroy.");
|
|
70635
70635
|
}
|
|
70636
70636
|
};
|
|
70637
70637
|
}
|
|
@@ -70668,7 +70668,7 @@ class iae extends Wre {
|
|
|
70668
70668
|
}
|
|
70669
70669
|
};
|
|
70670
70670
|
} catch (S) {
|
|
70671
|
-
throw
|
|
70671
|
+
throw Vt.error(
|
|
70672
70672
|
"CreatePurchaseError: Failed to create purchase:",
|
|
70673
70673
|
S
|
|
70674
70674
|
), S;
|
|
@@ -70716,7 +70716,7 @@ class iae extends Wre {
|
|
|
70716
70716
|
...c,
|
|
70717
70717
|
onError: (p) => {
|
|
70718
70718
|
var h;
|
|
70719
|
-
|
|
70719
|
+
Vt.error(
|
|
70720
70720
|
`${l}: Caught async error from PurchaseWidget:`,
|
|
70721
70721
|
p
|
|
70722
70722
|
), (h = a.onError) == null || h.call(a, p);
|