@pprogroup/drop-in-checkout 2.20.3 → 2.20.4
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/drop-in-checkout.es.js +572 -572
- package/dist/drop-in-checkout.umd.js +15 -15
- package/package.json +1 -1
|
@@ -1732,17 +1732,17 @@ function Ya(e, t, n) {
|
|
|
1732
1732
|
var a, i, r;
|
|
1733
1733
|
n === void 0 && (n = w1), process.env.NODE_ENV !== "production" && ((!Ye(e) || !Ye(t)) && Q("First and second argument to reaction should be functions"), Zt(n) || Q("Third argument of reactions should be an object"));
|
|
1734
1734
|
var o = (a = n.name) != null ? a : process.env.NODE_ENV !== "production" ? "Reaction@" + Gt() : "Reaction", s = pt(o, n.onError ? e5(n.onError, t) : t), c = !n.scheduler && !n.delay, u = Fu(n), d = !0, f = !1, p, h = n.compareStructural ? ba.structural : n.equals || ba.default, g = new un(o, function() {
|
|
1735
|
-
d || c ?
|
|
1735
|
+
d || c ? b() : f || (f = !0, u(b));
|
|
1736
1736
|
}, n.onError, n.requiresObservable);
|
|
1737
|
-
function
|
|
1737
|
+
function b() {
|
|
1738
1738
|
if (f = !1, !g.isDisposed) {
|
|
1739
|
-
var
|
|
1739
|
+
var y = !1, P = p;
|
|
1740
1740
|
g.track(function() {
|
|
1741
1741
|
var C = L0(!1, function() {
|
|
1742
1742
|
return e(g);
|
|
1743
1743
|
});
|
|
1744
|
-
|
|
1745
|
-
}), (d && n.fireImmediately || !d &&
|
|
1744
|
+
y = d || !h(p, C), p = C;
|
|
1745
|
+
}), (d && n.fireImmediately || !d && y) && s(p, P, g), d = !1;
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
return (i = n) != null && (i = i.signal) != null && i.aborted || g.schedule_(), g.getDisposer_((r = n) == null ? void 0 : r.signal);
|
|
@@ -1823,16 +1823,16 @@ var po = /* @__PURE__ */ vu("flow"), u5 = /* @__PURE__ */ vu("flow.bound", {
|
|
|
1823
1823
|
return ai(t, n, po);
|
|
1824
1824
|
process.env.NODE_ENV !== "production" && arguments.length !== 1 && Q("Flow expects single argument with generator function");
|
|
1825
1825
|
var a = t, i = a.name || "<unnamed flow>", r = function() {
|
|
1826
|
-
var s = this, c = arguments, u = ++l5, d = pt(i + " - runid: " + u + " - init", a).apply(s, c), f, p = void 0, h = new Promise(function(g,
|
|
1827
|
-
var
|
|
1828
|
-
f =
|
|
1826
|
+
var s = this, c = arguments, u = ++l5, d = pt(i + " - runid: " + u + " - init", a).apply(s, c), f, p = void 0, h = new Promise(function(g, b) {
|
|
1827
|
+
var y = 0;
|
|
1828
|
+
f = b;
|
|
1829
1829
|
function P(k) {
|
|
1830
1830
|
p = void 0;
|
|
1831
1831
|
var v;
|
|
1832
1832
|
try {
|
|
1833
|
-
v = pt(i + " - runid: " + u + " - yield " +
|
|
1833
|
+
v = pt(i + " - runid: " + u + " - yield " + y++, d.next).call(d, k);
|
|
1834
1834
|
} catch (E) {
|
|
1835
|
-
return
|
|
1835
|
+
return b(E);
|
|
1836
1836
|
}
|
|
1837
1837
|
A(v);
|
|
1838
1838
|
}
|
|
@@ -1840,15 +1840,15 @@ var po = /* @__PURE__ */ vu("flow"), u5 = /* @__PURE__ */ vu("flow.bound", {
|
|
|
1840
1840
|
p = void 0;
|
|
1841
1841
|
var v;
|
|
1842
1842
|
try {
|
|
1843
|
-
v = pt(i + " - runid: " + u + " - yield " +
|
|
1843
|
+
v = pt(i + " - runid: " + u + " - yield " + y++, d.throw).call(d, k);
|
|
1844
1844
|
} catch (E) {
|
|
1845
|
-
return
|
|
1845
|
+
return b(E);
|
|
1846
1846
|
}
|
|
1847
1847
|
A(v);
|
|
1848
1848
|
}
|
|
1849
1849
|
function A(k) {
|
|
1850
1850
|
if (Ye(k == null ? void 0 : k.then)) {
|
|
1851
|
-
k.then(A,
|
|
1851
|
+
k.then(A, b);
|
|
1852
1852
|
return;
|
|
1853
1853
|
}
|
|
1854
1854
|
return k.done ? g(k.value) : (p = Promise.resolve(k.value), p.then(P, C));
|
|
@@ -1858,10 +1858,10 @@ var po = /* @__PURE__ */ vu("flow"), u5 = /* @__PURE__ */ vu("flow.bound", {
|
|
|
1858
1858
|
return h.cancel = pt(i + " - runid: " + u + " - cancel", function() {
|
|
1859
1859
|
try {
|
|
1860
1860
|
p && ic(p);
|
|
1861
|
-
var g = d.return(void 0),
|
|
1862
|
-
|
|
1863
|
-
} catch (
|
|
1864
|
-
f(
|
|
1861
|
+
var g = d.return(void 0), b = Promise.resolve(g.value);
|
|
1862
|
+
b.then(sa, sa), ic(b), f(new Wu());
|
|
1863
|
+
} catch (y) {
|
|
1864
|
+
f(y);
|
|
1865
1865
|
}
|
|
1866
1866
|
}), h;
|
|
1867
1867
|
};
|
|
@@ -2433,10 +2433,10 @@ var C5 = {}, En = "add", tr = "delete", Zu = /* @__PURE__ */ function() {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
for (var h = ca(r.entries()), g; !(g = h()).done; ) {
|
|
2436
|
-
var
|
|
2437
|
-
if (i.set(
|
|
2438
|
-
var A = i.data_.get(
|
|
2439
|
-
o.set(
|
|
2436
|
+
var b = g.value, y = b[0], P = b[1], C = i.data_.has(y);
|
|
2437
|
+
if (i.set(y, P), i.data_.has(y)) {
|
|
2438
|
+
var A = i.data_.get(y);
|
|
2439
|
+
o.set(y, A), C || (s = !0);
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
2442
|
if (!s)
|
|
@@ -3278,16 +3278,16 @@ function D5() {
|
|
|
3278
3278
|
}
|
|
3279
3279
|
var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, r = e.useLayoutEffect, o = e.useDebugValue;
|
|
3280
3280
|
function s(f, p) {
|
|
3281
|
-
var h = p(), g = a({ inst: { value: h, getSnapshot: p } }),
|
|
3281
|
+
var h = p(), g = a({ inst: { value: h, getSnapshot: p } }), b = g[0].inst, y = g[1];
|
|
3282
3282
|
return r(
|
|
3283
3283
|
function() {
|
|
3284
|
-
|
|
3284
|
+
b.value = h, b.getSnapshot = p, c(b) && y({ inst: b });
|
|
3285
3285
|
},
|
|
3286
3286
|
[f, h, p]
|
|
3287
3287
|
), i(
|
|
3288
3288
|
function() {
|
|
3289
|
-
return c(
|
|
3290
|
-
c(
|
|
3289
|
+
return c(b) && y({ inst: b }), f(function() {
|
|
3290
|
+
c(b) && y({ inst: b });
|
|
3291
3291
|
});
|
|
3292
3292
|
},
|
|
3293
3293
|
[f]
|
|
@@ -3329,22 +3329,22 @@ function V5() {
|
|
|
3329
3329
|
d || i.startTransition === void 0 || (d = !0, console.error(
|
|
3330
3330
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
3331
3331
|
));
|
|
3332
|
-
var
|
|
3332
|
+
var b = g();
|
|
3333
3333
|
if (!f) {
|
|
3334
|
-
var
|
|
3335
|
-
r(
|
|
3334
|
+
var y = g();
|
|
3335
|
+
r(b, y) || (console.error(
|
|
3336
3336
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
3337
3337
|
), f = !0);
|
|
3338
3338
|
}
|
|
3339
|
-
|
|
3340
|
-
inst: { value:
|
|
3339
|
+
y = o({
|
|
3340
|
+
inst: { value: b, getSnapshot: g }
|
|
3341
3341
|
});
|
|
3342
|
-
var P =
|
|
3342
|
+
var P = y[0].inst, C = y[1];
|
|
3343
3343
|
return c(
|
|
3344
3344
|
function() {
|
|
3345
|
-
P.value =
|
|
3345
|
+
P.value = b, P.getSnapshot = g, n(P) && C({ inst: P });
|
|
3346
3346
|
},
|
|
3347
|
-
[h,
|
|
3347
|
+
[h, b, g]
|
|
3348
3348
|
), s(
|
|
3349
3349
|
function() {
|
|
3350
3350
|
return n(P) && C({ inst: P }), h(function() {
|
|
@@ -3352,14 +3352,14 @@ function V5() {
|
|
|
3352
3352
|
});
|
|
3353
3353
|
},
|
|
3354
3354
|
[h]
|
|
3355
|
-
), u(
|
|
3355
|
+
), u(b), b;
|
|
3356
3356
|
}
|
|
3357
3357
|
function n(h) {
|
|
3358
3358
|
var g = h.getSnapshot;
|
|
3359
3359
|
h = h.value;
|
|
3360
3360
|
try {
|
|
3361
|
-
var
|
|
3362
|
-
return !r(h,
|
|
3361
|
+
var b = g();
|
|
3362
|
+
return !r(h, b);
|
|
3363
3363
|
} catch {
|
|
3364
3364
|
return !0;
|
|
3365
3365
|
}
|
|
@@ -3522,13 +3522,13 @@ var J5 = { parse: function(e, t) {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
var d, f = c.charAt(1) !== "/", p = c.startsWith("<!--"), h = u + c.length, g = e.charAt(h);
|
|
3524
3524
|
if (p) {
|
|
3525
|
-
var
|
|
3526
|
-
return r < 0 ? (a.push(
|
|
3525
|
+
var b = Ec(c);
|
|
3526
|
+
return r < 0 ? (a.push(b), a) : ((d = i[r]).children.push(b), a);
|
|
3527
3527
|
}
|
|
3528
3528
|
if (f && (r++, (n = Ec(c)).type === "tag" && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !g || g === "<" || n.children.push({ type: "text", content: e.slice(h, e.indexOf("<", h)) }), r === 0 && a.push(n), (d = i[r - 1]) && d.children.push(n), i[r] = n), (!f || n.voidElement) && (r > -1 && (n.voidElement || n.name === c.slice(2, -1)) && (r--, n = r === -1 ? a : i[r]), !o && g !== "<" && g)) {
|
|
3529
3529
|
d = r === -1 ? a : i[r].children;
|
|
3530
|
-
var
|
|
3531
|
-
Y5.test(P) && (P = " "), (
|
|
3530
|
+
var y = e.indexOf("<", h), P = e.slice(h, y === -1 ? void 0 : y);
|
|
3531
|
+
Y5.test(P) && (P = " "), (y > -1 && r + d.length >= 0 || P !== " ") && d.push({ type: "text", content: P });
|
|
3532
3532
|
}
|
|
3533
3533
|
}), a;
|
|
3534
3534
|
}, stringify: function(e) {
|
|
@@ -3677,10 +3677,10 @@ const r6 = (e) => {
|
|
|
3677
3677
|
}), n;
|
|
3678
3678
|
}, c6 = (e, t, n, a, i, r) => {
|
|
3679
3679
|
if (t === "") return [];
|
|
3680
|
-
const o = a.transKeepBasicHtmlNodesFor || [], s = t && new RegExp(o.map((
|
|
3680
|
+
const o = a.transKeepBasicHtmlNodesFor || [], s = t && new RegExp(o.map((y) => `<${y}`).join("|")).test(t);
|
|
3681
3681
|
if (!e && !s && !r) return [t];
|
|
3682
|
-
const c = {}, u = (
|
|
3683
|
-
ua(
|
|
3682
|
+
const c = {}, u = (y) => {
|
|
3683
|
+
ua(y).forEach((C) => {
|
|
3684
3684
|
Vt(C) || (bo(C) ? u(vo(C)) : la(C) && !Wi(C) && Object.assign(c, C));
|
|
3685
3685
|
});
|
|
3686
3686
|
};
|
|
@@ -3688,13 +3688,13 @@ const r6 = (e) => {
|
|
|
3688
3688
|
const d = J5.parse(`<0>${t}</0>`), f = {
|
|
3689
3689
|
...c,
|
|
3690
3690
|
...i
|
|
3691
|
-
}, p = (
|
|
3692
|
-
const A = vo(
|
|
3693
|
-
return o6(A) && k.length === 0 ||
|
|
3694
|
-
}, h = (
|
|
3695
|
-
|
|
3691
|
+
}, p = (y, P, C) => {
|
|
3692
|
+
const A = vo(y), k = g(A, P.children, C);
|
|
3693
|
+
return o6(A) && k.length === 0 || y.props && y.props.i18nIsDynamicList ? A : k;
|
|
3694
|
+
}, h = (y, P, C, A, k) => {
|
|
3695
|
+
y.dummy ? (y.children = P, C.push(cu(y, {
|
|
3696
3696
|
key: A
|
|
3697
|
-
}, k ? void 0 : P))) : C.push(...k3.map([
|
|
3697
|
+
}, k ? void 0 : P))) : C.push(...k3.map([y], (v) => {
|
|
3698
3698
|
const E = {
|
|
3699
3699
|
...v.props
|
|
3700
3700
|
};
|
|
@@ -3704,8 +3704,8 @@ const r6 = (e) => {
|
|
|
3704
3704
|
ref: v.ref
|
|
3705
3705
|
}, k ? null : P);
|
|
3706
3706
|
}));
|
|
3707
|
-
}, g = (
|
|
3708
|
-
const A = ua(
|
|
3707
|
+
}, g = (y, P, C) => {
|
|
3708
|
+
const A = ua(y);
|
|
3709
3709
|
return ua(P).reduce((v, E, R) => {
|
|
3710
3710
|
const B = E.children && E.children[0] && E.children[0].content && n.services.interpolator.interpolate(E.children[0].content, f, n.language);
|
|
3711
3711
|
if (E.type === "tag") {
|
|
@@ -3757,11 +3757,11 @@ const r6 = (e) => {
|
|
|
3757
3757
|
}
|
|
3758
3758
|
return v;
|
|
3759
3759
|
}, []);
|
|
3760
|
-
},
|
|
3760
|
+
}, b = g([{
|
|
3761
3761
|
dummy: !0,
|
|
3762
3762
|
children: e || []
|
|
3763
3763
|
}], d, ua(e || []));
|
|
3764
|
-
return vo(
|
|
3764
|
+
return vo(b[0]);
|
|
3765
3765
|
};
|
|
3766
3766
|
function l6(e) {
|
|
3767
3767
|
let {
|
|
@@ -3780,23 +3780,23 @@ function l6(e) {
|
|
|
3780
3780
|
shouldUnescape: h,
|
|
3781
3781
|
...g
|
|
3782
3782
|
} = e;
|
|
3783
|
-
const
|
|
3784
|
-
if (!
|
|
3783
|
+
const b = f || L1();
|
|
3784
|
+
if (!b)
|
|
3785
3785
|
return ar("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
3786
|
-
const
|
|
3786
|
+
const y = p || b.t.bind(b) || ((x) => x), P = {
|
|
3787
3787
|
...r2(),
|
|
3788
|
-
...
|
|
3788
|
+
...b.options && b.options.react
|
|
3789
3789
|
};
|
|
3790
|
-
let C = d ||
|
|
3790
|
+
let C = d || y.ns || b.options && b.options.defaultNS;
|
|
3791
3791
|
C = Vt(C) ? [C] : C || ["translation"];
|
|
3792
3792
|
const A = s2(t, P), k = c || A || P.transEmptyNodeValue || i, {
|
|
3793
3793
|
hashTransKey: v
|
|
3794
3794
|
} = P, E = i || (v ? v(A || k) : A || k);
|
|
3795
|
-
|
|
3795
|
+
b.options && b.options.interpolation && b.options.interpolation.defaultVariables && (s = s && Object.keys(s).length > 0 ? {
|
|
3796
3796
|
...s,
|
|
3797
|
-
...
|
|
3797
|
+
...b.options.interpolation.defaultVariables
|
|
3798
3798
|
} : {
|
|
3799
|
-
...
|
|
3799
|
+
...b.options.interpolation.defaultVariables
|
|
3800
3800
|
});
|
|
3801
3801
|
const R = s || n !== void 0 || !t ? o.interpolation : {
|
|
3802
3802
|
interpolation: {
|
|
@@ -3812,7 +3812,7 @@ function l6(e) {
|
|
|
3812
3812
|
...R,
|
|
3813
3813
|
defaultValue: k,
|
|
3814
3814
|
ns: C
|
|
3815
|
-
}, T = E ?
|
|
3815
|
+
}, T = E ? y(E, B) : k;
|
|
3816
3816
|
u && Object.keys(u).forEach((x) => {
|
|
3817
3817
|
const j = u[x];
|
|
3818
3818
|
if (typeof j.type == "function" || !j.props || !j.props.children || T.indexOf(`${x}/>`) < 0 && T.indexOf(`${x} />`) < 0) return;
|
|
@@ -3821,7 +3821,7 @@ function l6(e) {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
u[x] = An(G);
|
|
3823
3823
|
});
|
|
3824
|
-
const M = c6(u || t, T,
|
|
3824
|
+
const M = c6(u || t, T, b, P, B, h), K = a !== void 0 ? a : P.defaultTransParent;
|
|
3825
3825
|
return K ? An(K, g, M) : M;
|
|
3826
3826
|
}
|
|
3827
3827
|
const u6 = {
|
|
@@ -3859,9 +3859,9 @@ function x1(e) {
|
|
|
3859
3859
|
...g
|
|
3860
3860
|
} = e;
|
|
3861
3861
|
const {
|
|
3862
|
-
i18n:
|
|
3863
|
-
defaultNS:
|
|
3864
|
-
} = ni($1) || {}, P = f ||
|
|
3862
|
+
i18n: b,
|
|
3863
|
+
defaultNS: y
|
|
3864
|
+
} = ni($1) || {}, P = f || b || L1(), C = p || P && P.t.bind(P);
|
|
3865
3865
|
return l6({
|
|
3866
3866
|
children: t,
|
|
3867
3867
|
count: n,
|
|
@@ -3872,7 +3872,7 @@ function x1(e) {
|
|
|
3872
3872
|
values: s,
|
|
3873
3873
|
defaults: c,
|
|
3874
3874
|
components: u,
|
|
3875
|
-
ns: d || C && C.ns ||
|
|
3875
|
+
ns: d || C && C.ns || y || P && P.options && P.options.defaultNS,
|
|
3876
3876
|
i18n: P,
|
|
3877
3877
|
t: p,
|
|
3878
3878
|
shouldUnescape: h,
|
|
@@ -3908,28 +3908,28 @@ const p6 = (e, t) => {
|
|
|
3908
3908
|
} = o;
|
|
3909
3909
|
let u = i || r.options && r.options.defaultNS;
|
|
3910
3910
|
u = Vt(u) ? [u] : u || ["translation"], r.reportNamespaces.addUsedNamespaces && r.reportNamespaces.addUsedNamespaces(u);
|
|
3911
|
-
const d = (r.isInitialized || r.initializedStoreOnce) && u.every((k) => X5(k, r, o)), f = m6(r, t.lng || null, o.nsMode === "fallback" ? u : u[0], c), p = () => f, h = () => c2(r, t.lng || null, o.nsMode === "fallback" ? u : u[0], c), [g,
|
|
3912
|
-
let
|
|
3913
|
-
t.lng && (
|
|
3914
|
-
const P = p6(
|
|
3911
|
+
const d = (r.isInitialized || r.initializedStoreOnce) && u.every((k) => X5(k, r, o)), f = m6(r, t.lng || null, o.nsMode === "fallback" ? u : u[0], c), p = () => f, h = () => c2(r, t.lng || null, o.nsMode === "fallback" ? u : u[0], c), [g, b] = ot(p);
|
|
3912
|
+
let y = u.join();
|
|
3913
|
+
t.lng && (y = `${t.lng}${y}`);
|
|
3914
|
+
const P = p6(y), C = rt(!0);
|
|
3915
3915
|
Ke(() => {
|
|
3916
3916
|
const {
|
|
3917
3917
|
bindI18n: k,
|
|
3918
3918
|
bindI18nStore: v
|
|
3919
3919
|
} = o;
|
|
3920
3920
|
C.current = !0, !d && !s && (t.lng ? wc(r, t.lng, u, () => {
|
|
3921
|
-
C.current &&
|
|
3921
|
+
C.current && b(h);
|
|
3922
3922
|
}) : Pc(r, u, () => {
|
|
3923
|
-
C.current &&
|
|
3924
|
-
})), d && P && P !==
|
|
3923
|
+
C.current && b(h);
|
|
3924
|
+
})), d && P && P !== y && C.current && b(h);
|
|
3925
3925
|
const E = () => {
|
|
3926
|
-
C.current &&
|
|
3926
|
+
C.current && b(h);
|
|
3927
3927
|
};
|
|
3928
3928
|
return k && r && r.on(k, E), v && r && r.store.on(v, E), () => {
|
|
3929
3929
|
C.current = !1, k && r && k.split(" ").forEach((R) => r.off(R, E)), v && r && v.split(" ").forEach((R) => r.store.off(R, E));
|
|
3930
3930
|
};
|
|
3931
|
-
}, [r,
|
|
3932
|
-
C.current && d &&
|
|
3931
|
+
}, [r, y]), Ke(() => {
|
|
3932
|
+
C.current && d && b(p);
|
|
3933
3933
|
}, [r, c, d]);
|
|
3934
3934
|
const A = [g, r, d];
|
|
3935
3935
|
if (A.t = g, A.i18n = r, A.ready = d, d || !d && !s) return A;
|
|
@@ -3954,7 +3954,7 @@ function f6(e) {
|
|
|
3954
3954
|
const D1 = he.createContext({}), Ne = () => {
|
|
3955
3955
|
const { options: e } = ni(D1);
|
|
3956
3956
|
return e;
|
|
3957
|
-
},
|
|
3957
|
+
}, Le = () => ni(D1), h6 = ({
|
|
3958
3958
|
title: e,
|
|
3959
3959
|
titleId: t,
|
|
3960
3960
|
...n
|
|
@@ -4006,7 +4006,7 @@ var di = (e) => Array.isArray(e) ? e.filter(Boolean) : [], je = (e) => e === voi
|
|
|
4006
4006
|
return n;
|
|
4007
4007
|
const a = di(t.split(/[,[\].]+?/)).reduce((i, r) => ft(i) ? i : i[r], e);
|
|
4008
4008
|
return je(a) || a === e ? je(e[t]) ? n : e[t] : a;
|
|
4009
|
-
}, Xt = (e) => typeof e == "boolean", H1 = (e) => /^\w*$/.test(e), p2 = (e) => di(e.replace(/["|']|\]/g, "").split(/\.|\[/)),
|
|
4009
|
+
}, Xt = (e) => typeof e == "boolean", H1 = (e) => /^\w*$/.test(e), p2 = (e) => di(e.replace(/["|']|\]/g, "").split(/\.|\[/)), $e = (e, t, n) => {
|
|
4010
4010
|
let a = -1;
|
|
4011
4011
|
const i = H1(t) ? [t] : p2(t), r = i.length, o = r - 1;
|
|
4012
4012
|
for (; ++a < r; ) {
|
|
@@ -4128,7 +4128,7 @@ function S6(e) {
|
|
|
4128
4128
|
};
|
|
4129
4129
|
if (f(n, !0), d) {
|
|
4130
4130
|
const p = gt(q(i._options.defaultValues, n));
|
|
4131
|
-
|
|
4131
|
+
$e(i._defaultValues, n, p), je(q(i._formValues, n)) && $e(i._formValues, n, p);
|
|
4132
4132
|
}
|
|
4133
4133
|
return () => {
|
|
4134
4134
|
(o ? d && !i._state.action : d) ? i.unregister(n) : f(n, !1);
|
|
@@ -4225,7 +4225,7 @@ const za = (e, t, n, a) => {
|
|
|
4225
4225
|
};
|
|
4226
4226
|
var w6 = (e, t, n) => {
|
|
4227
4227
|
const a = di(q(e, n));
|
|
4228
|
-
return
|
|
4228
|
+
return $e(a, "root", t[n]), $e(e, n, a), e;
|
|
4229
4229
|
}, G1 = (e) => e.type === "file", Sn = (e) => typeof e == "function", or = (e) => {
|
|
4230
4230
|
if (!V1)
|
|
4231
4231
|
return !1;
|
|
@@ -4269,12 +4269,12 @@ var Xn = (e) => nt(e) && !sr(e) ? e : {
|
|
|
4269
4269
|
value: e,
|
|
4270
4270
|
message: ""
|
|
4271
4271
|
}, Oc = async (e, t, n, a, i) => {
|
|
4272
|
-
const { ref: r, refs: o, required: s, maxLength: c, minLength: u, min: d, max: f, pattern: p, validate: h, name: g, valueAsNumber:
|
|
4273
|
-
if (!
|
|
4272
|
+
const { ref: r, refs: o, required: s, maxLength: c, minLength: u, min: d, max: f, pattern: p, validate: h, name: g, valueAsNumber: b, mount: y, disabled: P } = e._f, C = q(t, g);
|
|
4273
|
+
if (!y || P)
|
|
4274
4274
|
return {};
|
|
4275
4275
|
const A = o ? o[0] : r, k = (x) => {
|
|
4276
4276
|
a && A.reportValidity && (A.setCustomValidity(Xt(x) ? "" : x || ""), A.reportValidity());
|
|
4277
|
-
}, v = {}, E = z1(r), R = ui(r), B = E || R, T = (
|
|
4277
|
+
}, v = {}, E = z1(r), R = ui(r), B = E || R, T = (b || G1(r)) && je(r.value) && je(C) || or(r) && r.value === "" || C === "" || Array.isArray(C) && !C.length, M = P6.bind(null, g, n, v), K = (x, j, G, ee = dn.maxLength, se = dn.minLength) => {
|
|
4278
4278
|
const ce = x ? j : G;
|
|
4279
4279
|
v[g] = {
|
|
4280
4280
|
type: x ? ee : se,
|
|
@@ -4436,7 +4436,7 @@ var I6 = (e, t, n, a) => {
|
|
|
4436
4436
|
const i = {};
|
|
4437
4437
|
for (const r of e) {
|
|
4438
4438
|
const o = q(t, r);
|
|
4439
|
-
o &&
|
|
4439
|
+
o && $e(i, r, o._f);
|
|
4440
4440
|
}
|
|
4441
4441
|
return {
|
|
4442
4442
|
criteriaMode: n,
|
|
@@ -4514,9 +4514,9 @@ function L6(e = {}) {
|
|
|
4514
4514
|
values: Co(),
|
|
4515
4515
|
array: Co(),
|
|
4516
4516
|
state: Co()
|
|
4517
|
-
}, p = _c(t.mode), h = _c(t.reValidateMode), g = t.criteriaMode === Kt.all,
|
|
4517
|
+
}, p = _c(t.mode), h = _c(t.reValidateMode), g = t.criteriaMode === Kt.all, b = (S) => (_) => {
|
|
4518
4518
|
clearTimeout(u), u = setTimeout(S, _);
|
|
4519
|
-
},
|
|
4519
|
+
}, y = async (S) => {
|
|
4520
4520
|
if (d.isValid || S) {
|
|
4521
4521
|
const _ = t.resolver ? kt((await B()).errors) : await M(a, !0);
|
|
4522
4522
|
_ !== n.isValid && f.state.next({
|
|
@@ -4525,7 +4525,7 @@ function L6(e = {}) {
|
|
|
4525
4525
|
}
|
|
4526
4526
|
}, P = (S, _) => {
|
|
4527
4527
|
(d.isValidating || d.validatingFields) && ((S || Array.from(s.mount)).forEach((I) => {
|
|
4528
|
-
I && (_ ?
|
|
4528
|
+
I && (_ ? $e(n.validatingFields, I, _) : et(n.validatingFields, I));
|
|
4529
4529
|
}), f.state.next({
|
|
4530
4530
|
validatingFields: n.validatingFields,
|
|
4531
4531
|
isValidating: !kt(n.validatingFields)
|
|
@@ -4534,15 +4534,15 @@ function L6(e = {}) {
|
|
|
4534
4534
|
if (Y && I) {
|
|
4535
4535
|
if (o.action = !0, D && Array.isArray(q(a, S))) {
|
|
4536
4536
|
const ne = I(q(a, S), Y.argA, Y.argB);
|
|
4537
|
-
Z &&
|
|
4537
|
+
Z && $e(a, S, ne);
|
|
4538
4538
|
}
|
|
4539
4539
|
if (D && Array.isArray(q(n.errors, S))) {
|
|
4540
4540
|
const ne = I(q(n.errors, S), Y.argA, Y.argB);
|
|
4541
|
-
Z &&
|
|
4541
|
+
Z && $e(n.errors, S, ne), O6(n.errors, S);
|
|
4542
4542
|
}
|
|
4543
4543
|
if (d.touchedFields && D && Array.isArray(q(n.touchedFields, S))) {
|
|
4544
4544
|
const ne = I(q(n.touchedFields, S), Y.argA, Y.argB);
|
|
4545
|
-
Z &&
|
|
4545
|
+
Z && $e(n.touchedFields, S, ne);
|
|
4546
4546
|
}
|
|
4547
4547
|
d.dirtyFields && (n.dirtyFields = ki(i, r)), f.state.next({
|
|
4548
4548
|
name: S,
|
|
@@ -4552,9 +4552,9 @@ function L6(e = {}) {
|
|
|
4552
4552
|
isValid: n.isValid
|
|
4553
4553
|
});
|
|
4554
4554
|
} else
|
|
4555
|
-
|
|
4555
|
+
$e(r, S, _);
|
|
4556
4556
|
}, A = (S, _) => {
|
|
4557
|
-
|
|
4557
|
+
$e(n.errors, S, _), f.state.next({
|
|
4558
4558
|
errors: n.errors
|
|
4559
4559
|
});
|
|
4560
4560
|
}, k = (S) => {
|
|
@@ -4566,7 +4566,7 @@ function L6(e = {}) {
|
|
|
4566
4566
|
const Z = q(a, S);
|
|
4567
4567
|
if (Z) {
|
|
4568
4568
|
const D = q(r, S, je(I) ? q(i, S) : I);
|
|
4569
|
-
je(D) || Y && Y.defaultChecked || _ ?
|
|
4569
|
+
je(D) || Y && Y.defaultChecked || _ ? $e(r, S, _ ? D : Ao(Z._f)) : ee(S, D), o.mount && y();
|
|
4570
4570
|
}
|
|
4571
4571
|
}, E = (S, _, I, Y, Z) => {
|
|
4572
4572
|
let D = !1, ne = !1;
|
|
@@ -4576,16 +4576,16 @@ function L6(e = {}) {
|
|
|
4576
4576
|
if (!I || Y) {
|
|
4577
4577
|
d.isDirty && (ne = n.isDirty, n.isDirty = ve.isDirty = x(), D = ne !== ve.isDirty);
|
|
4578
4578
|
const Fe = Te || Bn(q(i, S), _);
|
|
4579
|
-
ne = !!(!Te && q(n.dirtyFields, S)), Fe || Te ? et(n.dirtyFields, S) :
|
|
4579
|
+
ne = !!(!Te && q(n.dirtyFields, S)), Fe || Te ? et(n.dirtyFields, S) : $e(n.dirtyFields, S, !0), ve.dirtyFields = n.dirtyFields, D = D || d.dirtyFields && ne !== !Fe;
|
|
4580
4580
|
}
|
|
4581
4581
|
if (I) {
|
|
4582
4582
|
const Fe = q(n.touchedFields, S);
|
|
4583
|
-
Fe || (
|
|
4583
|
+
Fe || ($e(n.touchedFields, S, I), ve.touchedFields = n.touchedFields, D = D || d.touchedFields && Fe !== I);
|
|
4584
4584
|
}
|
|
4585
4585
|
return D && Z && f.state.next(ve), D ? ve : {};
|
|
4586
4586
|
}, R = (S, _, I, Y) => {
|
|
4587
4587
|
const Z = q(n.errors, S), D = d.isValid && Xt(_) && n.isValid !== _;
|
|
4588
|
-
if (e.delayError && I ? (c =
|
|
4588
|
+
if (e.delayError && I ? (c = b(() => A(S, I)), c(e.delayError)) : (clearTimeout(u), c = null, I ? $e(n.errors, S, I) : et(n.errors, S)), (I ? !Bn(Z, I) : Z) || !kt(Y) || D) {
|
|
4589
4589
|
const ne = {
|
|
4590
4590
|
...Y,
|
|
4591
4591
|
...D && Xt(_) ? { isValid: _ } : {},
|
|
@@ -4606,7 +4606,7 @@ function L6(e = {}) {
|
|
|
4606
4606
|
if (S)
|
|
4607
4607
|
for (const I of S) {
|
|
4608
4608
|
const Y = q(_, I);
|
|
4609
|
-
Y ?
|
|
4609
|
+
Y ? $e(n.errors, I, Y) : et(n.errors, I);
|
|
4610
4610
|
}
|
|
4611
4611
|
else
|
|
4612
4612
|
n.errors = _;
|
|
@@ -4624,7 +4624,7 @@ function L6(e = {}) {
|
|
|
4624
4624
|
const Te = await Oc(Z, r, g, t.shouldUseNativeValidation && !_, ve);
|
|
4625
4625
|
if (P([Y]), Te[D.name] && (I.valid = !1, _))
|
|
4626
4626
|
break;
|
|
4627
|
-
!_ && (q(Te, D.name) ? ve ? w6(n.errors, Te, D.name) :
|
|
4627
|
+
!_ && (q(Te, D.name) ? ve ? w6(n.errors, Te, D.name) : $e(n.errors, D.name, Te[D.name]) : et(n.errors, D.name));
|
|
4628
4628
|
}
|
|
4629
4629
|
ne && await M(ne, _, I);
|
|
4630
4630
|
}
|
|
@@ -4636,14 +4636,14 @@ function L6(e = {}) {
|
|
|
4636
4636
|
_ && (_._f.refs ? _._f.refs.every((I) => !ko(I)) : !ko(_._f.ref)) && L(S);
|
|
4637
4637
|
}
|
|
4638
4638
|
s.unMount = /* @__PURE__ */ new Set();
|
|
4639
|
-
}, x = (S, _) => (S && _ &&
|
|
4639
|
+
}, x = (S, _) => (S && _ && $e(r, S, _), !Bn(U(), i)), j = (S, _, I) => y2(S, s, {
|
|
4640
4640
|
...o.mount ? r : je(_) ? i : tn(S) ? { [S]: _ } : _
|
|
4641
4641
|
}, I, _), G = (S) => di(q(o.mount ? r : i, S, e.shouldUnregister ? q(i, S, []) : [])), ee = (S, _, I = {}) => {
|
|
4642
4642
|
const Y = q(a, S);
|
|
4643
4643
|
let Z = _;
|
|
4644
4644
|
if (Y) {
|
|
4645
4645
|
const D = Y._f;
|
|
4646
|
-
D && (!D.disabled &&
|
|
4646
|
+
D && (!D.disabled && $e(r, S, E2(_, D)), Z = or(D.ref) && ft(_) ? "" : _, C2(D.ref) ? [...D.ref.options].forEach((ne) => ne.selected = Z.includes(ne.value)) : D.refs ? ui(D.ref) ? D.refs.length > 1 ? D.refs.forEach((ne) => (!ne.defaultChecked || !ne.disabled) && (ne.checked = Array.isArray(Z) ? !!Z.find((ve) => ve === ne.value) : Z === ne.value)) : D.refs[0] && (D.refs[0].checked = !!Z) : D.refs.forEach((ne) => ne.checked = ne.value === Z) : G1(D.ref) ? D.ref.value = "" : (D.ref.value = Z, D.ref.type || f.values.next({
|
|
4647
4647
|
name: S,
|
|
4648
4648
|
values: { ...r }
|
|
4649
4649
|
})));
|
|
@@ -4656,7 +4656,7 @@ function L6(e = {}) {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
}, ce = (S, _, I = {}) => {
|
|
4658
4658
|
const Y = q(a, S), Z = s.array.has(S), D = gt(_);
|
|
4659
|
-
|
|
4659
|
+
$e(r, S, D), Z ? (f.array.next({
|
|
4660
4660
|
name: S,
|
|
4661
4661
|
values: { ...r }
|
|
4662
4662
|
}), (d.isDirty || d.dirtyFields) && I.shouldDirty && f.state.next({
|
|
@@ -4677,14 +4677,14 @@ function L6(e = {}) {
|
|
|
4677
4677
|
if (Z) {
|
|
4678
4678
|
let ve, Te;
|
|
4679
4679
|
const Fe = D(), De = S.type === rr.BLUR || S.type === rr.FOCUS_OUT, st = !N6(Z._f) && !t.resolver && !q(n.errors, I) && !Z._f.deps || T6(De, q(n.touchedFields, I), n.isSubmitted, h, p), Xe = Mc(I, s, De);
|
|
4680
|
-
|
|
4680
|
+
$e(r, I, Fe), De ? (Z._f.onBlur && Z._f.onBlur(S), c && c(0)) : Z._f.onChange && Z._f.onChange(S);
|
|
4681
4681
|
const be = E(I, Fe, De, !1), Ee = !kt(be) || Xe;
|
|
4682
4682
|
if (!De && f.values.next({
|
|
4683
4683
|
name: I,
|
|
4684
4684
|
type: S.type,
|
|
4685
4685
|
values: { ...r }
|
|
4686
4686
|
}), st)
|
|
4687
|
-
return d.isValid &&
|
|
4687
|
+
return d.isValid && y(), Ee && f.state.next({ name: I, ...Xe ? {} : be });
|
|
4688
4688
|
if (!De && Xe && f.state.next({ ...n }), t.resolver) {
|
|
4689
4689
|
const { errors: ue } = await B([I]);
|
|
4690
4690
|
if (ne(Fe), Y) {
|
|
@@ -4707,7 +4707,7 @@ function L6(e = {}) {
|
|
|
4707
4707
|
} else S ? (Y = (await Promise.all(Z.map(async (D) => {
|
|
4708
4708
|
const ne = q(a, D);
|
|
4709
4709
|
return await M(ne && ne._f ? { [D]: ne } : ne);
|
|
4710
|
-
}))).every(Boolean), !(!Y && !n.isValid) &&
|
|
4710
|
+
}))).every(Boolean), !(!Y && !n.isValid) && y()) : Y = I = await M(a);
|
|
4711
4711
|
return f.state.next({
|
|
4712
4712
|
...!tn(S) || d.isValid && I !== n.isValid ? {} : { name: S },
|
|
4713
4713
|
...t.resolver || !S ? { isValid: I } : {},
|
|
@@ -4730,7 +4730,7 @@ function L6(e = {}) {
|
|
|
4730
4730
|
});
|
|
4731
4731
|
}, $ = (S, _, I) => {
|
|
4732
4732
|
const Y = (q(a, S, { _f: {} })._f || {}).ref, Z = q(n.errors, S) || {}, { ref: D, message: ne, type: ve, ...Te } = Z;
|
|
4733
|
-
|
|
4733
|
+
$e(n.errors, S, {
|
|
4734
4734
|
...Te,
|
|
4735
4735
|
..._,
|
|
4736
4736
|
ref: Y
|
|
@@ -4749,16 +4749,16 @@ function L6(e = {}) {
|
|
|
4749
4749
|
}), f.state.next({
|
|
4750
4750
|
...n,
|
|
4751
4751
|
..._.keepDirty ? { isDirty: x() } : {}
|
|
4752
|
-
}), !_.keepIsValid &&
|
|
4752
|
+
}), !_.keepIsValid && y();
|
|
4753
4753
|
}, z = ({ disabled: S, name: _, field: I, fields: Y, value: Z }) => {
|
|
4754
4754
|
if (Xt(S) && o.mount || S) {
|
|
4755
4755
|
const D = S ? void 0 : je(Z) ? Ao(I ? I._f : q(Y, _)._f) : Z;
|
|
4756
|
-
|
|
4756
|
+
$e(r, _, D), E(_, D, !1, !1, !0);
|
|
4757
4757
|
}
|
|
4758
4758
|
}, ae = (S, _ = {}) => {
|
|
4759
4759
|
let I = q(a, S);
|
|
4760
4760
|
const Y = Xt(_.disabled);
|
|
4761
|
-
return
|
|
4761
|
+
return $e(a, S, {
|
|
4762
4762
|
...I || {},
|
|
4763
4763
|
_f: {
|
|
4764
4764
|
...I && I._f ? I._f : { ref: { name: S } },
|
|
@@ -4790,7 +4790,7 @@ function L6(e = {}) {
|
|
|
4790
4790
|
const D = je(Z.value) && Z.querySelectorAll && Z.querySelectorAll("input,select,textarea")[0] || Z, ne = R6(D), ve = I._f.refs || [];
|
|
4791
4791
|
if (ne ? ve.find((Te) => Te === D) : D === I._f.ref)
|
|
4792
4792
|
return;
|
|
4793
|
-
|
|
4793
|
+
$e(a, S, {
|
|
4794
4794
|
_f: {
|
|
4795
4795
|
...I._f,
|
|
4796
4796
|
...ne ? {
|
|
@@ -4845,13 +4845,13 @@ function L6(e = {}) {
|
|
|
4845
4845
|
}), Y)
|
|
4846
4846
|
throw Y;
|
|
4847
4847
|
}, F = (S, _ = {}) => {
|
|
4848
|
-
q(a, S) && (je(_.defaultValue) ? ce(S, gt(q(i, S))) : (ce(S, _.defaultValue),
|
|
4848
|
+
q(a, S) && (je(_.defaultValue) ? ce(S, gt(q(i, S))) : (ce(S, _.defaultValue), $e(i, S, gt(_.defaultValue))), _.keepTouched || et(n.touchedFields, S), _.keepDirty || (et(n.dirtyFields, S), n.isDirty = _.defaultValue ? x(S, gt(q(i, S))) : x()), _.keepError || (et(n.errors, S), d.isValid && y()), f.state.next({ ...n }));
|
|
4849
4849
|
}, ke = (S, _ = {}) => {
|
|
4850
4850
|
const I = S ? gt(S) : i, Y = gt(I), Z = kt(S), D = Z ? i : Y;
|
|
4851
4851
|
if (_.keepDefaultValues || (i = I), !_.keepValues) {
|
|
4852
4852
|
if (_.keepDirtyValues)
|
|
4853
4853
|
for (const ne of s.mount)
|
|
4854
|
-
q(n.dirtyFields, ne) ?
|
|
4854
|
+
q(n.dirtyFields, ne) ? $e(D, ne, q(r, ne)) : ce(ne, q(D, ne));
|
|
4855
4855
|
else {
|
|
4856
4856
|
if (V1 && je(S))
|
|
4857
4857
|
for (const ne of s.mount) {
|
|
@@ -4903,7 +4903,7 @@ function L6(e = {}) {
|
|
|
4903
4903
|
_executeSchema: B,
|
|
4904
4904
|
_getWatch: j,
|
|
4905
4905
|
_getDirty: x,
|
|
4906
|
-
_updateValid:
|
|
4906
|
+
_updateValid: y,
|
|
4907
4907
|
_removeUnmounted: K,
|
|
4908
4908
|
_updateFieldArray: C,
|
|
4909
4909
|
_updateDisabledField: z,
|
|
@@ -5029,7 +5029,7 @@ function $6(e = {}) {
|
|
|
5029
5029
|
}, [e.shouldUnregister, r]), t.current.formState = f2(a, r), t.current;
|
|
5030
5030
|
}
|
|
5031
5031
|
const x6 = (e, t) => {
|
|
5032
|
-
const n =
|
|
5032
|
+
const n = Le(), { options: a, submitPayment: i } = n, { t: r } = Ae(), { handleSubmit: o } = Rt(), s = r(
|
|
5033
5033
|
a.paymentSession.recurring ? `${t}.buttonRecurring` : `${t}.button`
|
|
5034
5034
|
), u = o(async () => {
|
|
5035
5035
|
await i(e);
|
|
@@ -5318,14 +5318,14 @@ function Z6(e) {
|
|
|
5318
5318
|
return c.current.init = t, c.current.tracking = n, c.current.eventType = a, c.current.eventHandler = i, ji(function() {
|
|
5319
5319
|
return function(u, d, f) {
|
|
5320
5320
|
var p = f.onFocus, h = f.onBlur, g = f.onInput;
|
|
5321
|
-
return new Proxy(u, { set: function(
|
|
5322
|
-
if (
|
|
5321
|
+
return new Proxy(u, { set: function(b, y, P) {
|
|
5322
|
+
if (y !== "current") return !1;
|
|
5323
5323
|
var C = P !== null && Hc.includes(P.type);
|
|
5324
5324
|
if (process.env.NODE_ENV === "production" || P === null || C || console.warn("Warn: The input element type does not match one of the types: ".concat(Hc.join(", "), ".")), P !== u.current && (u.current !== null && (u.current.removeEventListener("focus", p), u.current.removeEventListener("blur", h), u.current.removeEventListener("input", g)), P !== null && C)) {
|
|
5325
5325
|
var A, k = (A = P._wrapperState) !== null && A !== void 0 ? A : {}, v = k.controlled, E = v !== void 0 && v, R = k.initialValue, B = R === void 0 ? "" : R, T = d({ controlled: E, initialValue: P.value || B });
|
|
5326
5326
|
Ei(P, { value: T.value }), document.activeElement === P && p(), P.addEventListener("focus", p), P.addEventListener("blur", h), P.addEventListener("input", g);
|
|
5327
5327
|
}
|
|
5328
|
-
return y
|
|
5328
|
+
return b[y] = P, !0;
|
|
5329
5329
|
} });
|
|
5330
5330
|
}(s, c.current.init, { onFocus: function() {
|
|
5331
5331
|
r.current.timeoutId = window.setTimeout(function u() {
|
|
@@ -5337,20 +5337,20 @@ function Z6(e) {
|
|
|
5337
5337
|
}, onInput: function(u) {
|
|
5338
5338
|
var d = s.current;
|
|
5339
5339
|
if (d !== null) try {
|
|
5340
|
-
var f, p, h, g,
|
|
5340
|
+
var f, p, h, g, b;
|
|
5341
5341
|
if (r.current.cachedTimeoutId === r.current.timeoutId) throw new ga("The input selection has not been updated.");
|
|
5342
5342
|
r.current.cachedTimeoutId = r.current.timeoutId;
|
|
5343
|
-
var
|
|
5343
|
+
var y = d.value, P = d.selectionStart, C = d.selectionEnd;
|
|
5344
5344
|
if (P === null || C === null) throw new ga("The selection attributes have not been initialized.");
|
|
5345
5345
|
var A, k = (f = (p = d._valueTracker) === null || p === void 0 || (h = p.getValue) === null || h === void 0 ? void 0 : h.call(p)) !== null && f !== void 0 ? f : "";
|
|
5346
|
-
if (u.inputType === void 0 && (r.current.start = 0, r.current.end = k.length), P > r.current.start ? A = "insert" : P <= r.current.start && P < r.current.end ? A = "deleteBackward" : P === r.current.end &&
|
|
5346
|
+
if (u.inputType === void 0 && (r.current.start = 0, r.current.end = k.length), P > r.current.start ? A = "insert" : P <= r.current.start && P < r.current.end ? A = "deleteBackward" : P === r.current.end && y.length < k.length && (A = "deleteForward"), A === void 0 || (A === "deleteBackward" || A === "deleteForward") && y.length > k.length) throw new ga("Input type detection error.");
|
|
5347
5347
|
var v = "", E = "", R = r.current.start, B = r.current.end;
|
|
5348
|
-
if (A === "insert") v =
|
|
5348
|
+
if (A === "insert") v = y.slice(r.current.start, P);
|
|
5349
5349
|
else {
|
|
5350
|
-
var T = k.length -
|
|
5350
|
+
var T = k.length - y.length;
|
|
5351
5351
|
R = P, B = P + T, E = k.slice(R, B);
|
|
5352
5352
|
}
|
|
5353
|
-
var M = c.current.tracking({ inputType: A, previousValue: k, value:
|
|
5353
|
+
var M = c.current.tracking({ inputType: A, previousValue: k, value: y, addedValue: v, deletedValue: E, changeStart: R, changeEnd: B, selectionStart: P, selectionEnd: C });
|
|
5354
5354
|
Ei(d, { value: M.value, selectionStart: M.selectionStart, selectionEnd: M.selectionEnd });
|
|
5355
5355
|
var K = c.current.eventType, x = c.current.eventHandler;
|
|
5356
5356
|
if (typeof K == "string" && x) {
|
|
@@ -5361,7 +5361,7 @@ function Z6(e) {
|
|
|
5361
5361
|
d.dispatchEvent(X), Wo ? Wo(x, X) : x(X), o.current = !0;
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
(g = d._valueTracker) === null || g === void 0 || (
|
|
5364
|
+
(g = d._valueTracker) === null || g === void 0 || (b = g.setValue) === null || b === void 0 || b.call(g, k), r.current.start = M.selectionStart, r.current.end = M.selectionEnd;
|
|
5365
5365
|
} catch (X) {
|
|
5366
5366
|
var se, ce, ge, Ce, O, U, ie, re, $, V, L, z = X, ae = z.name, te = z.cause;
|
|
5367
5367
|
if (Ei(d, { value: (se = (ce = te == null || (ge = te.__attributes) === null || ge === void 0 ? void 0 : ge.value) !== null && ce !== void 0 ? ce : (Ce = d._valueTracker) === null || Ce === void 0 || (O = Ce.getValue) === null || O === void 0 ? void 0 : O.call(Ce)) !== null && se !== void 0 ? se : "", selectionStart: (U = te == null || (ie = te.__attributes) === null || ie === void 0 ? void 0 : ie.selectionStart) !== null && U !== void 0 ? U : r.current.start, selectionEnd: (re = te == null || ($ = te.__attributes) === null || $ === void 0 ? void 0 : $.selectionEnd) !== null && re !== void 0 ? re : r.current.end }), (te == null || (V = te.__attributes) === null || V === void 0 ? void 0 : V.selectionStart) !== void 0 && (r.current.start = te.__attributes.selectionStart), (te == null || (L = te.__attributes) === null || L === void 0 ? void 0 : L.selectionEnd) !== void 0 && (r.current.end = te.__attributes.selectionEnd), u.preventDefault(), u.stopPropagation(), ae !== "SyntheticChangeError") throw X;
|
|
@@ -5381,8 +5381,8 @@ var So = function(e) {
|
|
|
5381
5381
|
function Y6() {
|
|
5382
5382
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mask, n = t === void 0 ? "" : t, a = e.replacement, i = a === void 0 ? {} : a, r = e.showMask, o = r !== void 0 && r, s = e.separate, c = s !== void 0 && s, u = e.track, d = e.modify, f = e.onMask, p = typeof i == "string" ? o1(i) : i, h = rt(null);
|
|
5383
5383
|
return Z6({ init: function(g) {
|
|
5384
|
-
var
|
|
5385
|
-
|
|
5384
|
+
var b = g.controlled, y = g.initialValue;
|
|
5385
|
+
y = b || y ? y : o ? n : "", process.env.NODE_ENV !== "production" && function(C) {
|
|
5386
5386
|
var A = C.initialValue, k = C.mask, v = C.replacement;
|
|
5387
5387
|
A.length > k.length && console.error(So(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(A, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
5388
5388
|
var E = Object.keys(v).filter(function(K) {
|
|
@@ -5397,24 +5397,24 @@ function Y6() {
|
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
5399
5399
|
B !== -1 && console.error(So(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(B, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(A, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
5400
|
-
}({ initialValue:
|
|
5400
|
+
}({ initialValue: y, mask: n, replacement: p });
|
|
5401
5401
|
var P = { mask: n, replacement: p, separate: c };
|
|
5402
|
-
return h.current = { value:
|
|
5402
|
+
return h.current = { value: y, props: P, fallbackProps: P }, { value: y };
|
|
5403
5403
|
}, tracking: function(g) {
|
|
5404
|
-
var
|
|
5404
|
+
var b, y = g.inputType, P = g.previousValue, C = g.addedValue, A = g.changeStart, k = g.changeEnd;
|
|
5405
5405
|
if (h.current === null) throw new ga("The state has not been initialized.");
|
|
5406
5406
|
h.current.value !== P ? h.current.props = h.current.fallbackProps : h.current.fallbackProps = h.current.props;
|
|
5407
|
-
var v = u == null ? void 0 : u(Ai(Ai({},
|
|
5407
|
+
var v = u == null ? void 0 : u(Ai(Ai({}, y === "insert" ? { inputType: y, data: C } : { inputType: y, data: null }), {}, { value: P, selectionStart: A, selectionEnd: k }));
|
|
5408
5408
|
if (v === !1) throw new ga("Custom tracking stop.");
|
|
5409
5409
|
v === null ? C = "" : v !== !0 && v !== void 0 && (C = v);
|
|
5410
5410
|
var E = xc(P, Ai({ end: A }, h.current.props)), R = xc(P, Ai({ start: k }, h.current.props)), B = RegExp("[^".concat(Object.keys(h.current.props.replacement).join(""), "]"), "g"), T = h.current.props.mask.replace(B, "");
|
|
5411
|
-
if (E && (E = Eo(E, { replacementChars: T, replacement: h.current.props.replacement, separate: h.current.props.separate }), T = T.slice(E.length)), C && (C = Eo(C, { replacementChars: T, replacement: h.current.props.replacement, separate: !1 }), T = T.slice(C.length)),
|
|
5411
|
+
if (E && (E = Eo(E, { replacementChars: T, replacement: h.current.props.replacement, separate: h.current.props.separate }), T = T.slice(E.length)), C && (C = Eo(C, { replacementChars: T, replacement: h.current.props.replacement, separate: !1 }), T = T.slice(C.length)), y === "insert" && C === "") throw new ga("The character does not match the key value of the `replacement` object.");
|
|
5412
5412
|
if (h.current.props.separate) {
|
|
5413
5413
|
var M = h.current.props.mask.slice(A, k).replace(B, ""), K = M.length - C.length;
|
|
5414
5414
|
K < 0 ? R = R.slice(-K) : K > 0 && (R = M.slice(-K) + R);
|
|
5415
5415
|
}
|
|
5416
5416
|
R && (R = Eo(R, { replacementChars: T, replacement: h.current.props.replacement, separate: h.current.props.separate }));
|
|
5417
|
-
var x = E + C + R, j = (
|
|
5417
|
+
var x = E + C + R, j = (b = d == null ? void 0 : d(x)) !== null && b !== void 0 ? b : {}, G = j.mask, ee = G === void 0 ? n : G, se = j.replacement, ce = se === void 0 ? p : se, ge = j.showMask, Ce = ge === void 0 ? o : ge, O = j.separate, U = O === void 0 ? c : O;
|
|
5418
5418
|
typeof ce == "string" && (ce = o1(ce));
|
|
5419
5419
|
var ie = function($, V) {
|
|
5420
5420
|
var L = V.mask, z = V.replacement, ae = V.separate, te = V.showMask, X = H6($, { mask: L, replacement: z, separate: ae, showMask: te }), ye = F6(X, { mask: L, replacement: z }), F = Vc({ mask: L, replacement: z }), ke = Vc({ mask: L, replacement: z }, !0);
|
|
@@ -5441,7 +5441,7 @@ function Y6() {
|
|
|
5441
5441
|
return Object.prototype.hasOwnProperty.call(ke, I);
|
|
5442
5442
|
});
|
|
5443
5443
|
return _ !== -1 ? _ : te.length;
|
|
5444
|
-
}({ inputType:
|
|
5444
|
+
}({ inputType: y, value: ie.value, addedValue: C, beforeChangeValue: E, parts: ie.parts, replacement: ce, separate: U });
|
|
5445
5445
|
return h.current.value = ie.value, h.current.props = { mask: ee, replacement: ce, separate: U }, { value: ie.value, selectionStart: re, selectionEnd: re, __detail: ie };
|
|
5446
5446
|
}, eventType: "input-mask", eventHandler: f });
|
|
5447
5447
|
}
|
|
@@ -5488,7 +5488,7 @@ var Q6 = oe(J6), M2 = { exports: {} };
|
|
|
5488
5488
|
})(M2);
|
|
5489
5489
|
var X6 = M2.exports;
|
|
5490
5490
|
const dt = /* @__PURE__ */ Yn(X6), e4 = (e) => {
|
|
5491
|
-
const { _analytics: t } =
|
|
5491
|
+
const { _analytics: t } = Le(), n = P2();
|
|
5492
5492
|
return () => {
|
|
5493
5493
|
t.trackInputAction(`input ${e}`, n, "FOCUS");
|
|
5494
5494
|
};
|
|
@@ -5559,12 +5559,12 @@ const dt = /* @__PURE__ */ Yn(X6), e4 = (e) => {
|
|
|
5559
5559
|
...c,
|
|
5560
5560
|
ref: u
|
|
5561
5561
|
}
|
|
5562
|
-
),
|
|
5562
|
+
), b = /* @__PURE__ */ N(ze, { children: [
|
|
5563
5563
|
n && /* @__PURE__ */ m("span", { className: "absolute right-2.5", children: n }),
|
|
5564
5564
|
/* @__PURE__ */ m(R2, { error: t, isTouched: i })
|
|
5565
|
-
] }),
|
|
5565
|
+
] }), y = (d == null ? void 0 : d.floatingLabels) && !s;
|
|
5566
5566
|
return /* @__PURE__ */ N("div", { className: `text-field text-field-${c.name} mb-2`, children: [
|
|
5567
|
-
|
|
5567
|
+
y && /* @__PURE__ */ N("div", { className: "relative flex items-center", children: [
|
|
5568
5568
|
g("text-input peer pt-5"),
|
|
5569
5569
|
/* @__PURE__ */ m(
|
|
5570
5570
|
"label",
|
|
@@ -5578,13 +5578,13 @@ const dt = /* @__PURE__ */ Yn(X6), e4 = (e) => {
|
|
|
5578
5578
|
children: e
|
|
5579
5579
|
}
|
|
5580
5580
|
),
|
|
5581
|
-
|
|
5581
|
+
b
|
|
5582
5582
|
] }),
|
|
5583
|
-
!
|
|
5583
|
+
!y && /* @__PURE__ */ N("div", { children: [
|
|
5584
5584
|
/* @__PURE__ */ m("label", { htmlFor: p, className: "block mb-1 text-sm", children: e }),
|
|
5585
5585
|
/* @__PURE__ */ N("div", { className: "relative flex items-center", children: [
|
|
5586
5586
|
g("text-input pt-1.5"),
|
|
5587
|
-
|
|
5587
|
+
b
|
|
5588
5588
|
] })
|
|
5589
5589
|
] }),
|
|
5590
5590
|
!f && /* @__PURE__ */ m("div", { className: "form-helper-text error", children: t == null ? void 0 : t.message })
|
|
@@ -5599,17 +5599,17 @@ const dt = /* @__PURE__ */ Yn(X6), e4 = (e) => {
|
|
|
5599
5599
|
maskProps: r,
|
|
5600
5600
|
textFieldProps: o
|
|
5601
5601
|
}) => {
|
|
5602
|
-
var
|
|
5603
|
-
const [s, c] = ot(!1), { forms: u } = Ne(), { control: d, formState: f } = Rt(), { errors: p, touchedFields: h, isSubmitted: g } = f, { t:
|
|
5602
|
+
var y;
|
|
5603
|
+
const [s, c] = ot(!1), { forms: u } = Ne(), { control: d, formState: f } = Rt(), { errors: p, touchedFields: h, isSubmitted: g } = f, { t: b } = Ae();
|
|
5604
5604
|
return /* @__PURE__ */ m(
|
|
5605
5605
|
xn,
|
|
5606
5606
|
{
|
|
5607
5607
|
name: e,
|
|
5608
5608
|
control: d,
|
|
5609
5609
|
defaultValue: i || "",
|
|
5610
|
-
disabled: ((
|
|
5610
|
+
disabled: ((y = u == null ? void 0 : u.disabledFields) == null ? void 0 : y.includes(e)) || (u == null ? void 0 : u.disableAllFields),
|
|
5611
5611
|
rules: {
|
|
5612
|
-
required: n ?
|
|
5612
|
+
required: n ? b("validation.requiredField") : !1,
|
|
5613
5613
|
validate: a
|
|
5614
5614
|
},
|
|
5615
5615
|
render: ({
|
|
@@ -5629,7 +5629,7 @@ const dt = /* @__PURE__ */ Yn(X6), e4 = (e) => {
|
|
|
5629
5629
|
v,
|
|
5630
5630
|
{
|
|
5631
5631
|
error: s || g ? p[e] : void 0,
|
|
5632
|
-
label: t ||
|
|
5632
|
+
label: t || b(e),
|
|
5633
5633
|
isTouched: h[e],
|
|
5634
5634
|
onBlur: () => (c(!0), P()),
|
|
5635
5635
|
onChange: C,
|
|
@@ -5681,7 +5681,7 @@ var Gc;
|
|
|
5681
5681
|
function o4() {
|
|
5682
5682
|
if (Gc) return we;
|
|
5683
5683
|
Gc = 1;
|
|
5684
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116,
|
|
5684
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
5685
5685
|
function A(v) {
|
|
5686
5686
|
if (typeof v == "object" && v !== null) {
|
|
5687
5687
|
var E = v.$$typeof;
|
|
@@ -5740,7 +5740,7 @@ function o4() {
|
|
|
5740
5740
|
}, we.isSuspense = function(v) {
|
|
5741
5741
|
return A(v) === f;
|
|
5742
5742
|
}, we.isValidElementType = function(v) {
|
|
5743
|
-
return typeof v == "string" || typeof v == "function" || v === a || v === u || v === r || v === i || v === f || v === p || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === o || v.$$typeof === s || v.$$typeof === d || v.$$typeof ===
|
|
5743
|
+
return typeof v == "string" || typeof v == "function" || v === a || v === u || v === r || v === i || v === f || v === p || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === o || v.$$typeof === s || v.$$typeof === d || v.$$typeof === y || v.$$typeof === P || v.$$typeof === C || v.$$typeof === b);
|
|
5744
5744
|
}, we.typeOf = A, we;
|
|
5745
5745
|
}
|
|
5746
5746
|
var _e = {};
|
|
@@ -5755,10 +5755,10 @@ var _e = {};
|
|
|
5755
5755
|
var zc;
|
|
5756
5756
|
function s4() {
|
|
5757
5757
|
return zc || (zc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5758
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116,
|
|
5758
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
5759
5759
|
function A(F) {
|
|
5760
5760
|
return typeof F == "string" || typeof F == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
5761
|
-
F === a || F === u || F === r || F === i || F === f || F === p || typeof F == "object" && F !== null && (F.$$typeof === g || F.$$typeof === h || F.$$typeof === o || F.$$typeof === s || F.$$typeof === d || F.$$typeof ===
|
|
5761
|
+
F === a || F === u || F === r || F === i || F === f || F === p || typeof F == "object" && F !== null && (F.$$typeof === g || F.$$typeof === h || F.$$typeof === o || F.$$typeof === s || F.$$typeof === d || F.$$typeof === y || F.$$typeof === P || F.$$typeof === C || F.$$typeof === b);
|
|
5762
5762
|
}
|
|
5763
5763
|
function k(F) {
|
|
5764
5764
|
if (typeof F == "object" && F !== null) {
|
|
@@ -5998,11 +5998,11 @@ function u4() {
|
|
|
5998
5998
|
function g(O, U) {
|
|
5999
5999
|
return O === U ? O !== 0 || 1 / O === 1 / U : O !== O && U !== U;
|
|
6000
6000
|
}
|
|
6001
|
-
function
|
|
6001
|
+
function b(O, U) {
|
|
6002
6002
|
this.message = O, this.data = U && typeof U == "object" ? U : {}, this.stack = "";
|
|
6003
6003
|
}
|
|
6004
|
-
|
|
6005
|
-
function
|
|
6004
|
+
b.prototype = Error.prototype;
|
|
6005
|
+
function y(O) {
|
|
6006
6006
|
if (process.env.NODE_ENV !== "production")
|
|
6007
6007
|
var U = {}, ie = 0;
|
|
6008
6008
|
function re(V, L, z, ae, te, X, ye) {
|
|
@@ -6020,7 +6020,7 @@ function u4() {
|
|
|
6020
6020
|
), U[ke] = !0, ie++);
|
|
6021
6021
|
}
|
|
6022
6022
|
}
|
|
6023
|
-
return L[z] == null ? V ? L[z] === null ? new
|
|
6023
|
+
return L[z] == null ? V ? L[z] === null ? new b("The " + te + " `" + X + "` is marked as required " + ("in `" + ae + "`, but its value is `null`.")) : new b("The " + te + " `" + X + "` is marked as required in " + ("`" + ae + "`, but its value is `undefined`.")) : null : O(L, z, ae, te, X);
|
|
6024
6024
|
}
|
|
6025
6025
|
var $ = re.bind(null, !1);
|
|
6026
6026
|
return $.isRequired = re.bind(null, !0), $;
|
|
@@ -6030,26 +6030,26 @@ function u4() {
|
|
|
6030
6030
|
var ae = ie[re], te = se(ae);
|
|
6031
6031
|
if (te !== O) {
|
|
6032
6032
|
var X = ce(ae);
|
|
6033
|
-
return new
|
|
6033
|
+
return new b(
|
|
6034
6034
|
"Invalid " + V + " `" + L + "` of type " + ("`" + X + "` supplied to `" + $ + "`, expected ") + ("`" + O + "`."),
|
|
6035
6035
|
{ expectedType: O }
|
|
6036
6036
|
);
|
|
6037
6037
|
}
|
|
6038
6038
|
return null;
|
|
6039
6039
|
}
|
|
6040
|
-
return
|
|
6040
|
+
return y(U);
|
|
6041
6041
|
}
|
|
6042
6042
|
function C() {
|
|
6043
|
-
return
|
|
6043
|
+
return y(o);
|
|
6044
6044
|
}
|
|
6045
6045
|
function A(O) {
|
|
6046
6046
|
function U(ie, re, $, V, L) {
|
|
6047
6047
|
if (typeof O != "function")
|
|
6048
|
-
return new
|
|
6048
|
+
return new b("Property `" + L + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
6049
6049
|
var z = ie[re];
|
|
6050
6050
|
if (!Array.isArray(z)) {
|
|
6051
6051
|
var ae = se(z);
|
|
6052
|
-
return new
|
|
6052
|
+
return new b("Invalid " + V + " `" + L + "` of type " + ("`" + ae + "` supplied to `" + $ + "`, expected an array."));
|
|
6053
6053
|
}
|
|
6054
6054
|
for (var te = 0; te < z.length; te++) {
|
|
6055
6055
|
var X = O(z, te, $, V, L + "[" + te + "]", n);
|
|
@@ -6058,39 +6058,39 @@ function u4() {
|
|
|
6058
6058
|
}
|
|
6059
6059
|
return null;
|
|
6060
6060
|
}
|
|
6061
|
-
return
|
|
6061
|
+
return y(U);
|
|
6062
6062
|
}
|
|
6063
6063
|
function k() {
|
|
6064
6064
|
function O(U, ie, re, $, V) {
|
|
6065
6065
|
var L = U[ie];
|
|
6066
6066
|
if (!s(L)) {
|
|
6067
6067
|
var z = se(L);
|
|
6068
|
-
return new
|
|
6068
|
+
return new b("Invalid " + $ + " `" + V + "` of type " + ("`" + z + "` supplied to `" + re + "`, expected a single ReactElement."));
|
|
6069
6069
|
}
|
|
6070
6070
|
return null;
|
|
6071
6071
|
}
|
|
6072
|
-
return
|
|
6072
|
+
return y(O);
|
|
6073
6073
|
}
|
|
6074
6074
|
function v() {
|
|
6075
6075
|
function O(U, ie, re, $, V) {
|
|
6076
6076
|
var L = U[ie];
|
|
6077
6077
|
if (!e.isValidElementType(L)) {
|
|
6078
6078
|
var z = se(L);
|
|
6079
|
-
return new
|
|
6079
|
+
return new b("Invalid " + $ + " `" + V + "` of type " + ("`" + z + "` supplied to `" + re + "`, expected a single ReactElement type."));
|
|
6080
6080
|
}
|
|
6081
6081
|
return null;
|
|
6082
6082
|
}
|
|
6083
|
-
return
|
|
6083
|
+
return y(O);
|
|
6084
6084
|
}
|
|
6085
6085
|
function E(O) {
|
|
6086
6086
|
function U(ie, re, $, V, L) {
|
|
6087
6087
|
if (!(ie[re] instanceof O)) {
|
|
6088
6088
|
var z = O.name || p, ae = Ce(ie[re]);
|
|
6089
|
-
return new
|
|
6089
|
+
return new b("Invalid " + V + " `" + L + "` of type " + ("`" + ae + "` supplied to `" + $ + "`, expected ") + ("instance of `" + z + "`."));
|
|
6090
6090
|
}
|
|
6091
6091
|
return null;
|
|
6092
6092
|
}
|
|
6093
|
-
return
|
|
6093
|
+
return y(U);
|
|
6094
6094
|
}
|
|
6095
6095
|
function R(O) {
|
|
6096
6096
|
if (!Array.isArray(O))
|
|
@@ -6105,17 +6105,17 @@ function u4() {
|
|
|
6105
6105
|
var ke = ce(F);
|
|
6106
6106
|
return ke === "symbol" ? String(F) : F;
|
|
6107
6107
|
});
|
|
6108
|
-
return new
|
|
6108
|
+
return new b("Invalid " + V + " `" + L + "` of value `" + String(z) + "` " + ("supplied to `" + $ + "`, expected one of " + te + "."));
|
|
6109
6109
|
}
|
|
6110
|
-
return
|
|
6110
|
+
return y(U);
|
|
6111
6111
|
}
|
|
6112
6112
|
function B(O) {
|
|
6113
6113
|
function U(ie, re, $, V, L) {
|
|
6114
6114
|
if (typeof O != "function")
|
|
6115
|
-
return new
|
|
6115
|
+
return new b("Property `" + L + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
6116
6116
|
var z = ie[re], ae = se(z);
|
|
6117
6117
|
if (ae !== "object")
|
|
6118
|
-
return new
|
|
6118
|
+
return new b("Invalid " + V + " `" + L + "` of type " + ("`" + ae + "` supplied to `" + $ + "`, expected an object."));
|
|
6119
6119
|
for (var te in z)
|
|
6120
6120
|
if (a(z, te)) {
|
|
6121
6121
|
var X = O(z, te, $, V, L + "." + te, n);
|
|
@@ -6124,7 +6124,7 @@ function u4() {
|
|
|
6124
6124
|
}
|
|
6125
6125
|
return null;
|
|
6126
6126
|
}
|
|
6127
|
-
return
|
|
6127
|
+
return y(U);
|
|
6128
6128
|
}
|
|
6129
6129
|
function T(O) {
|
|
6130
6130
|
if (!Array.isArray(O))
|
|
@@ -6144,18 +6144,18 @@ function u4() {
|
|
|
6144
6144
|
F.data && a(F.data, "expectedType") && te.push(F.data.expectedType);
|
|
6145
6145
|
}
|
|
6146
6146
|
var ke = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
|
|
6147
|
-
return new
|
|
6147
|
+
return new b("Invalid " + z + " `" + ae + "` supplied to " + ("`" + L + "`" + ke + "."));
|
|
6148
6148
|
}
|
|
6149
|
-
return
|
|
6149
|
+
return y(re);
|
|
6150
6150
|
}
|
|
6151
6151
|
function M() {
|
|
6152
6152
|
function O(U, ie, re, $, V) {
|
|
6153
|
-
return G(U[ie]) ? null : new
|
|
6153
|
+
return G(U[ie]) ? null : new b("Invalid " + $ + " `" + V + "` supplied to " + ("`" + re + "`, expected a ReactNode."));
|
|
6154
6154
|
}
|
|
6155
|
-
return
|
|
6155
|
+
return y(O);
|
|
6156
6156
|
}
|
|
6157
6157
|
function K(O, U, ie, re, $) {
|
|
6158
|
-
return new
|
|
6158
|
+
return new b(
|
|
6159
6159
|
(O || "React class") + ": " + U + " type `" + ie + "." + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
6160
6160
|
);
|
|
6161
6161
|
}
|
|
@@ -6163,7 +6163,7 @@ function u4() {
|
|
|
6163
6163
|
function U(ie, re, $, V, L) {
|
|
6164
6164
|
var z = ie[re], ae = se(z);
|
|
6165
6165
|
if (ae !== "object")
|
|
6166
|
-
return new
|
|
6166
|
+
return new b("Invalid " + V + " `" + L + "` of type `" + ae + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
6167
6167
|
for (var te in O) {
|
|
6168
6168
|
var X = O[te];
|
|
6169
6169
|
if (typeof X != "function")
|
|
@@ -6174,20 +6174,20 @@ function u4() {
|
|
|
6174
6174
|
}
|
|
6175
6175
|
return null;
|
|
6176
6176
|
}
|
|
6177
|
-
return
|
|
6177
|
+
return y(U);
|
|
6178
6178
|
}
|
|
6179
6179
|
function j(O) {
|
|
6180
6180
|
function U(ie, re, $, V, L) {
|
|
6181
6181
|
var z = ie[re], ae = se(z);
|
|
6182
6182
|
if (ae !== "object")
|
|
6183
|
-
return new
|
|
6183
|
+
return new b("Invalid " + V + " `" + L + "` of type `" + ae + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
6184
6184
|
var te = t({}, ie[re], O);
|
|
6185
6185
|
for (var X in te) {
|
|
6186
6186
|
var ye = O[X];
|
|
6187
6187
|
if (a(O, X) && typeof ye != "function")
|
|
6188
6188
|
return K($, V, L, X, ce(ye));
|
|
6189
6189
|
if (!ye)
|
|
6190
|
-
return new
|
|
6190
|
+
return new b(
|
|
6191
6191
|
"Invalid " + V + " `" + L + "` key `" + X + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(ie[re], null, " ") + `
|
|
6192
6192
|
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
6193
6193
|
);
|
|
@@ -6197,7 +6197,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
6197
6197
|
}
|
|
6198
6198
|
return null;
|
|
6199
6199
|
}
|
|
6200
|
-
return
|
|
6200
|
+
return y(U);
|
|
6201
6201
|
}
|
|
6202
6202
|
function G(O) {
|
|
6203
6203
|
switch (typeof O) {
|
|
@@ -6342,27 +6342,27 @@ function h4() {
|
|
|
6342
6342
|
Jc = 1;
|
|
6343
6343
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g;
|
|
6344
6344
|
g = Symbol.for("react.module.reference");
|
|
6345
|
-
function y
|
|
6346
|
-
if (typeof
|
|
6347
|
-
var P =
|
|
6345
|
+
function b(y) {
|
|
6346
|
+
if (typeof y == "object" && y !== null) {
|
|
6347
|
+
var P = y.$$typeof;
|
|
6348
6348
|
switch (P) {
|
|
6349
6349
|
case e:
|
|
6350
|
-
switch (
|
|
6350
|
+
switch (y = y.type, y) {
|
|
6351
6351
|
case n:
|
|
6352
6352
|
case i:
|
|
6353
6353
|
case a:
|
|
6354
6354
|
case u:
|
|
6355
6355
|
case d:
|
|
6356
|
-
return
|
|
6356
|
+
return y;
|
|
6357
6357
|
default:
|
|
6358
|
-
switch (
|
|
6358
|
+
switch (y = y && y.$$typeof, y) {
|
|
6359
6359
|
case s:
|
|
6360
6360
|
case o:
|
|
6361
6361
|
case c:
|
|
6362
6362
|
case p:
|
|
6363
6363
|
case f:
|
|
6364
6364
|
case r:
|
|
6365
|
-
return
|
|
6365
|
+
return y;
|
|
6366
6366
|
default:
|
|
6367
6367
|
return P;
|
|
6368
6368
|
}
|
|
@@ -6376,33 +6376,33 @@ function h4() {
|
|
|
6376
6376
|
return !1;
|
|
6377
6377
|
}, Me.isConcurrentMode = function() {
|
|
6378
6378
|
return !1;
|
|
6379
|
-
}, Me.isContextConsumer = function(
|
|
6380
|
-
return y
|
|
6381
|
-
}, Me.isContextProvider = function(
|
|
6382
|
-
return y
|
|
6383
|
-
}, Me.isElement = function(
|
|
6384
|
-
return typeof
|
|
6385
|
-
}, Me.isForwardRef = function(
|
|
6386
|
-
return y
|
|
6387
|
-
}, Me.isFragment = function(
|
|
6388
|
-
return y
|
|
6389
|
-
}, Me.isLazy = function(
|
|
6390
|
-
return y
|
|
6391
|
-
}, Me.isMemo = function(
|
|
6392
|
-
return y
|
|
6393
|
-
}, Me.isPortal = function(
|
|
6394
|
-
return y
|
|
6395
|
-
}, Me.isProfiler = function(
|
|
6396
|
-
return y
|
|
6397
|
-
}, Me.isStrictMode = function(
|
|
6398
|
-
return y
|
|
6399
|
-
}, Me.isSuspense = function(
|
|
6400
|
-
return y
|
|
6401
|
-
}, Me.isSuspenseList = function(
|
|
6402
|
-
return y
|
|
6403
|
-
}, Me.isValidElementType = function(
|
|
6404
|
-
return typeof
|
|
6405
|
-
}, Me.typeOf =
|
|
6379
|
+
}, Me.isContextConsumer = function(y) {
|
|
6380
|
+
return b(y) === o;
|
|
6381
|
+
}, Me.isContextProvider = function(y) {
|
|
6382
|
+
return b(y) === r;
|
|
6383
|
+
}, Me.isElement = function(y) {
|
|
6384
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
6385
|
+
}, Me.isForwardRef = function(y) {
|
|
6386
|
+
return b(y) === c;
|
|
6387
|
+
}, Me.isFragment = function(y) {
|
|
6388
|
+
return b(y) === n;
|
|
6389
|
+
}, Me.isLazy = function(y) {
|
|
6390
|
+
return b(y) === p;
|
|
6391
|
+
}, Me.isMemo = function(y) {
|
|
6392
|
+
return b(y) === f;
|
|
6393
|
+
}, Me.isPortal = function(y) {
|
|
6394
|
+
return b(y) === t;
|
|
6395
|
+
}, Me.isProfiler = function(y) {
|
|
6396
|
+
return b(y) === i;
|
|
6397
|
+
}, Me.isStrictMode = function(y) {
|
|
6398
|
+
return b(y) === a;
|
|
6399
|
+
}, Me.isSuspense = function(y) {
|
|
6400
|
+
return b(y) === u;
|
|
6401
|
+
}, Me.isSuspenseList = function(y) {
|
|
6402
|
+
return b(y) === d;
|
|
6403
|
+
}, Me.isValidElementType = function(y) {
|
|
6404
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === i || y === a || y === u || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === r || y.$$typeof === o || y.$$typeof === c || y.$$typeof === g || y.getModuleId !== void 0);
|
|
6405
|
+
}, Me.typeOf = b, Me;
|
|
6406
6406
|
}
|
|
6407
6407
|
var Re = {};
|
|
6408
6408
|
/**
|
|
@@ -6417,10 +6417,10 @@ var Re = {};
|
|
|
6417
6417
|
var Qc;
|
|
6418
6418
|
function g4() {
|
|
6419
6419
|
return Qc || (Qc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6420
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = !1,
|
|
6420
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = !1, b = !1, y = !1, P = !1, C = !1, A;
|
|
6421
6421
|
A = Symbol.for("react.module.reference");
|
|
6422
6422
|
function k(J) {
|
|
6423
|
-
return !!(typeof J == "string" || typeof J == "function" || J === n || J === i || C || J === a || J === u || J === d || P || J === h || g ||
|
|
6423
|
+
return !!(typeof J == "string" || typeof J == "function" || J === n || J === i || C || J === a || J === u || J === d || P || J === h || g || b || y || typeof J == "object" && J !== null && (J.$$typeof === p || J.$$typeof === f || J.$$typeof === r || J.$$typeof === o || J.$$typeof === c || // This needs to include all possible module reference object
|
|
6424
6424
|
// types supported by any Flight configuration anywhere since
|
|
6425
6425
|
// we don't know which Flight build this will end up being used
|
|
6426
6426
|
// with.
|
|
@@ -6539,7 +6539,7 @@ const el = (e) => typeof e == "object" && e != null && e.nodeType === 1, tl = (e
|
|
|
6539
6539
|
}
|
|
6540
6540
|
p != null && p === document.body && Pi(p) && !Pi(document.documentElement) || p != null && Pi(p, c) && f.push(p);
|
|
6541
6541
|
}
|
|
6542
|
-
const h = (a = (n = window.visualViewport) == null ? void 0 : n.width) != null ? a : innerWidth, g = (r = (i = window.visualViewport) == null ? void 0 : i.height) != null ? r : innerHeight, { scrollX:
|
|
6542
|
+
const h = (a = (n = window.visualViewport) == null ? void 0 : n.width) != null ? a : innerWidth, g = (r = (i = window.visualViewport) == null ? void 0 : i.height) != null ? r : innerHeight, { scrollX: b, scrollY: y } = window, { height: P, width: C, top: A, right: k, bottom: v, left: E } = e.getBoundingClientRect(), { top: R, right: B, left: T } = ((j) => {
|
|
6543
6543
|
const G = window.getComputedStyle(j);
|
|
6544
6544
|
return { top: parseFloat(G.scrollMarginTop) || 0, right: parseFloat(G.scrollMarginRight) || 0, bottom: parseFloat(G.scrollMarginBottom) || 0, left: parseFloat(G.scrollMarginLeft) || 0 };
|
|
6545
6545
|
})(e);
|
|
@@ -6551,7 +6551,7 @@ const el = (e) => typeof e == "object" && e != null && e.nodeType === 1, tl = (e
|
|
|
6551
6551
|
const U = getComputedStyle(G), ie = parseInt(U.borderLeftWidth, 10), re = parseInt(U.borderTopWidth, 10), $ = parseInt(U.borderRightWidth, 10), V = parseInt(U.borderBottomWidth, 10);
|
|
6552
6552
|
let L = 0, z = 0;
|
|
6553
6553
|
const ae = "offsetWidth" in G ? G.offsetWidth - G.clientWidth - ie - $ : 0, te = "offsetHeight" in G ? G.offsetHeight - G.clientHeight - re - V : 0, X = "offsetWidth" in G ? G.offsetWidth === 0 ? 0 : se / G.offsetWidth : 0, ye = "offsetHeight" in G ? G.offsetHeight === 0 ? 0 : ee / G.offsetHeight : 0;
|
|
6554
|
-
if (d === G) L = wi(
|
|
6554
|
+
if (d === G) L = wi(y, y + g, g, re, V, y + M, y + M + P, P), z = o === "start" ? K : o === "center" ? K - h / 2 : o === "end" ? K - h : wi(b, b + h, h, ie, $, b + K, b + K + C, C), L = Math.max(0, L + y), z = Math.max(0, z + b);
|
|
6555
6555
|
else {
|
|
6556
6556
|
L = wi(ce, Ce, ee, re, V + te, M, M + P, P), z = o === "start" ? K - O - ie : o === "center" ? K - (O + se / 2) + ae / 2 : o === "end" ? K - ge + $ + ae : wi(O, ge, se, ie, $ + ae, K, K + C, C);
|
|
6557
6557
|
const { scrollLeft: F, scrollTop: ke } = G;
|
|
@@ -7104,11 +7104,11 @@ var M4 = ["refKey", "ref"], R4 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
|
|
|
7104
7104
|
r.previousResultCount = v, q2(E, r.props.environment.document);
|
|
7105
7105
|
}
|
|
7106
7106
|
}, 200);
|
|
7107
|
-
var o = r.props, s = o.defaultHighlightedIndex, c = o.initialHighlightedIndex, u = c === void 0 ? s : c, d = o.defaultIsOpen, f = o.initialIsOpen, p = f === void 0 ? d : f, h = o.initialInputValue, g = h === void 0 ? "" : h,
|
|
7107
|
+
var o = r.props, s = o.defaultHighlightedIndex, c = o.initialHighlightedIndex, u = c === void 0 ? s : c, d = o.defaultIsOpen, f = o.initialIsOpen, p = f === void 0 ? d : f, h = o.initialInputValue, g = h === void 0 ? "" : h, b = o.initialSelectedItem, y = b === void 0 ? null : b, P = r.getState({
|
|
7108
7108
|
highlightedIndex: u,
|
|
7109
7109
|
isOpen: p,
|
|
7110
7110
|
inputValue: g,
|
|
7111
|
-
selectedItem:
|
|
7111
|
+
selectedItem: y
|
|
7112
7112
|
});
|
|
7113
7113
|
return P.selectedItem != null && r.props.initialInputValue === void 0 && (P.inputValue = r.props.itemToString(P.selectedItem)), r.state = P, r;
|
|
7114
7114
|
}
|
|
@@ -7139,14 +7139,14 @@ var M4 = ["refKey", "ref"], R4 = ["onClick", "onPress", "onKeyDown", "onKeyUp",
|
|
|
7139
7139
|
this.setHighlightedIndex(d, o);
|
|
7140
7140
|
}
|
|
7141
7141
|
}, a.getStateAndHelpers = function() {
|
|
7142
|
-
var r = this.getState(), o = r.highlightedIndex, s = r.inputValue, c = r.selectedItem, u = r.isOpen, d = this.props.itemToString, f = this.id, p = this.getRootProps, h = this.getToggleButtonProps, g = this.getLabelProps,
|
|
7142
|
+
var r = this.getState(), o = r.highlightedIndex, s = r.inputValue, c = r.selectedItem, u = r.isOpen, d = this.props.itemToString, f = this.id, p = this.getRootProps, h = this.getToggleButtonProps, g = this.getLabelProps, b = this.getMenuProps, y = this.getInputProps, P = this.getItemProps, C = this.openMenu, A = this.closeMenu, k = this.toggleMenu, v = this.selectItem, E = this.selectItemAtIndex, R = this.selectHighlightedItem, B = this.setHighlightedIndex, T = this.clearSelection, M = this.clearItems, K = this.reset, x = this.setItemCount, j = this.unsetItemCount, G = this.internalSetState;
|
|
7143
7143
|
return {
|
|
7144
7144
|
// prop getters
|
|
7145
7145
|
getRootProps: p,
|
|
7146
7146
|
getToggleButtonProps: h,
|
|
7147
7147
|
getLabelProps: g,
|
|
7148
|
-
getMenuProps:
|
|
7149
|
-
getInputProps:
|
|
7148
|
+
getMenuProps: b,
|
|
7149
|
+
getInputProps: y,
|
|
7150
7150
|
getItemProps: P,
|
|
7151
7151
|
// actions
|
|
7152
7152
|
reset: K,
|
|
@@ -7336,10 +7336,10 @@ function $4(e, t, n, a, i) {
|
|
|
7336
7336
|
function x4(e, t, n, a) {
|
|
7337
7337
|
var i = l.useRef(null), r = l.useRef(void 0), o = j2(t), s = l.useCallback(function(p, h) {
|
|
7338
7338
|
r.current = h, p = dr(p, o.current);
|
|
7339
|
-
var g = e(p, o.current, h),
|
|
7339
|
+
var g = e(p, o.current, h), b = o.current.stateReducer(p, fe({}, h, {
|
|
7340
7340
|
changes: g
|
|
7341
7341
|
}));
|
|
7342
|
-
return fe({}, p,
|
|
7342
|
+
return fe({}, p, b);
|
|
7343
7343
|
}, [o, e]), c = l.useReducer(s, t, n), u = c[0], d = c[1], f = r.current;
|
|
7344
7344
|
return l.useEffect(function() {
|
|
7345
7345
|
var p, h = dr((p = i.current) != null ? p : {}, o.current), g = f && i.current && !a(h, u);
|
|
@@ -7830,7 +7830,7 @@ var i9 = ["onMouseLeave", "refKey", "ref"], r9 = ["item", "index", "refKey", "re
|
|
|
7830
7830
|
ss.stateChangeTypes = hd;
|
|
7831
7831
|
function ss(e) {
|
|
7832
7832
|
e === void 0 && (e = {}), J2(e, ss, e9);
|
|
7833
|
-
var t = fe({}, n9, e), n = t.items, a = t.scrollIntoView, i = t.environment, r = t.getA11yStatusMessage, o = t9(a9, t, X4, W4), s = o[0], c = o[1], u = s.isOpen, d = s.highlightedIndex, f = s.selectedItem, p = s.inputValue, h = rt(null), g = rt({}),
|
|
7833
|
+
var t = fe({}, n9, e), n = t.items, a = t.scrollIntoView, i = t.environment, r = t.getA11yStatusMessage, o = t9(a9, t, X4, W4), s = o[0], c = o[1], u = s.isOpen, d = s.highlightedIndex, f = s.selectedItem, p = s.inputValue, h = rt(null), g = rt({}), b = rt(null), y = rt(null), P = Dr(), C = q4(t), A = rt(), k = j2({
|
|
7834
7834
|
state: s,
|
|
7835
7835
|
props: t
|
|
7836
7836
|
}), v = ct(function($) {
|
|
@@ -7850,7 +7850,7 @@ function ss(e) {
|
|
|
7850
7850
|
state: s
|
|
7851
7851
|
}), Ke(function() {
|
|
7852
7852
|
var $ = Ua(t, "isOpen", Ht);
|
|
7853
|
-
$ &&
|
|
7853
|
+
$ && b.current && b.current.focus();
|
|
7854
7854
|
}, []), Ke(function() {
|
|
7855
7855
|
P || (A.current = n.length);
|
|
7856
7856
|
});
|
|
@@ -7859,13 +7859,13 @@ function ss(e) {
|
|
|
7859
7859
|
type: mr
|
|
7860
7860
|
});
|
|
7861
7861
|
}, [c, k]), B = ji(function() {
|
|
7862
|
-
return [h,
|
|
7862
|
+
return [h, y, b];
|
|
7863
7863
|
}, []), T = K4(i, R, B), M = ad("getInputProps", "getMenuProps");
|
|
7864
7864
|
Ke(function() {
|
|
7865
7865
|
u || (g.current = {});
|
|
7866
7866
|
}, [u]), Ke(function() {
|
|
7867
7867
|
var $;
|
|
7868
|
-
!u || !(i != null && i.document) || !(
|
|
7868
|
+
!u || !(i != null && i.document) || !(b != null && ($ = b.current) != null && $.focus) || i.document.activeElement !== b.current && b.current.focus();
|
|
7869
7869
|
}, [u, i]);
|
|
7870
7870
|
var K = ji(function() {
|
|
7871
7871
|
return {
|
|
@@ -7958,13 +7958,13 @@ function ss(e) {
|
|
|
7958
7958
|
});
|
|
7959
7959
|
};
|
|
7960
7960
|
return fe((V = {}, V[te] = pa(X, function(J) {
|
|
7961
|
-
|
|
7961
|
+
y.current = J;
|
|
7962
7962
|
}), V["aria-controls"] = C.menuId, V["aria-expanded"] = F.isOpen, V.id = C.toggleButtonId, V.tabIndex = -1, V), !ye.disabled && fe({}, {
|
|
7963
7963
|
onClick: tt(z, ke)
|
|
7964
7964
|
}), ye);
|
|
7965
7965
|
}, [c, k, C]), se = ct(function($, V) {
|
|
7966
7966
|
var L, z = $ === void 0 ? {} : $, ae = z.onKeyDown, te = z.onChange, X = z.onInput, ye = z.onBlur, F = z.onClick, ke = z.refKey, J = ke === void 0 ? "ref" : ke, Je = z.ref, Qe = hn(z, s9), ut = V === void 0 ? {} : V, S = ut.suppressRefError, _ = S === void 0 ? !1 : S;
|
|
7967
|
-
M("getInputProps", _, J,
|
|
7967
|
+
M("getInputProps", _, J, b);
|
|
7968
7968
|
var I = k.current.state, Y = function(st) {
|
|
7969
7969
|
var Xe = f1(st);
|
|
7970
7970
|
Xe && K[Xe] && K[Xe](st);
|
|
@@ -7991,7 +7991,7 @@ function ss(e) {
|
|
|
7991
7991
|
Te = (Fe = {}, Fe[ve] = tt(te, X, Z), Fe.onKeyDown = tt(ae, Y), Fe.onBlur = tt(ye, D), Fe.onClick = tt(F, ne), Fe);
|
|
7992
7992
|
}
|
|
7993
7993
|
return fe((L = {}, L[J] = pa(Je, function(De) {
|
|
7994
|
-
|
|
7994
|
+
b.current = De;
|
|
7995
7995
|
}), L["aria-activedescendant"] = I.isOpen && I.highlightedIndex > -1 ? C.getItemId(I.highlightedIndex) : "", L["aria-autocomplete"] = "list", L["aria-controls"] = C.menuId, L["aria-expanded"] = I.isOpen, L["aria-labelledby"] = Qe && Qe["aria-label"] ? void 0 : C.labelId, L.autoComplete = "off", L.id = C.inputId, L.role = "combobox", L.value = I.inputValue, L), Te, Qe);
|
|
7996
7996
|
}, [c, C, i, K, k, T, M]), ce = ct(function() {
|
|
7997
7997
|
c({
|
|
@@ -8061,8 +8061,8 @@ const Ki = (e) => {
|
|
|
8061
8061
|
getMenuProps: p,
|
|
8062
8062
|
getInputProps: h,
|
|
8063
8063
|
getItemProps: g,
|
|
8064
|
-
highlightedIndex:
|
|
8065
|
-
selectedItem:
|
|
8064
|
+
highlightedIndex: b,
|
|
8065
|
+
selectedItem: y,
|
|
8066
8066
|
setInputValue: P
|
|
8067
8067
|
} = ss({
|
|
8068
8068
|
items: o,
|
|
@@ -8136,8 +8136,8 @@ const Ki = (e) => {
|
|
|
8136
8136
|
className: dt(
|
|
8137
8137
|
"px-3 py-2 bg-gray-100 dark:bg-gray-700 cursor-pointer dark:text-gray-200",
|
|
8138
8138
|
{
|
|
8139
|
-
"bg-gray-200 dark:bg-gray-500":
|
|
8140
|
-
"font-bold": (
|
|
8139
|
+
"bg-gray-200 dark:bg-gray-500": b === x,
|
|
8140
|
+
"font-bold": (y == null ? void 0 : y.value) === K.value
|
|
8141
8141
|
}
|
|
8142
8142
|
),
|
|
8143
8143
|
children: K.label
|
|
@@ -8152,7 +8152,7 @@ const Ki = (e) => {
|
|
|
8152
8152
|
return h({}, { suppressRefError: !0 }), p({}, { suppressRefError: !0 }), null;
|
|
8153
8153
|
const R = (M = !1) => {
|
|
8154
8154
|
if (M) {
|
|
8155
|
-
const K = t ? e.value :
|
|
8155
|
+
const K = t ? e.value : y;
|
|
8156
8156
|
return /* @__PURE__ */ m(
|
|
8157
8157
|
"label",
|
|
8158
8158
|
{
|
|
@@ -10541,14 +10541,14 @@ Vr.diacriticsMap = cs;
|
|
|
10541
10541
|
return r[v];
|
|
10542
10542
|
}
|
|
10543
10543
|
e.alpha2ToAlpha3 = g;
|
|
10544
|
-
function
|
|
10544
|
+
function b(v) {
|
|
10545
10545
|
return c[h(v)];
|
|
10546
10546
|
}
|
|
10547
|
-
e.alpha3ToNumeric =
|
|
10548
|
-
function
|
|
10547
|
+
e.alpha3ToNumeric = b;
|
|
10548
|
+
function y(v) {
|
|
10549
10549
|
return c[v];
|
|
10550
10550
|
}
|
|
10551
|
-
e.alpha2ToNumeric =
|
|
10551
|
+
e.alpha2ToNumeric = y;
|
|
10552
10552
|
function P(v) {
|
|
10553
10553
|
const E = u(v);
|
|
10554
10554
|
return g(s[E]);
|
|
@@ -16431,7 +16431,7 @@ const K7 = [
|
|
|
16431
16431
|
"ET",
|
|
16432
16432
|
"AT"
|
|
16433
16433
|
], yd = () => {
|
|
16434
|
-
const { selectedLocale: e } =
|
|
16434
|
+
const { selectedLocale: e } = Le(), t = e == null ? void 0 : e.substring(0, 2), { forms: n } = Ne();
|
|
16435
16435
|
return ct(
|
|
16436
16436
|
(i) => i.map((o) => {
|
|
16437
16437
|
if (o === "US" && t === "en")
|
|
@@ -16722,8 +16722,8 @@ const ll = /* @__PURE__ */ new Map([
|
|
|
16722
16722
|
render: ({ field: h }) => /* @__PURE__ */ m(
|
|
16723
16723
|
Ki,
|
|
16724
16724
|
{
|
|
16725
|
-
options: Object.entries($9).map(([g,
|
|
16726
|
-
label:
|
|
16725
|
+
options: Object.entries($9).map(([g, b]) => ({
|
|
16726
|
+
label: b,
|
|
16727
16727
|
value: g
|
|
16728
16728
|
})),
|
|
16729
16729
|
required: !0,
|
|
@@ -17178,8 +17178,8 @@ class yr extends Hr {
|
|
|
17178
17178
|
}
|
|
17179
17179
|
const f = this.resolve(t, n);
|
|
17180
17180
|
let p = f && f.res;
|
|
17181
|
-
const h = f && f.usedKey || o, g = f && f.exactUsedKey || o,
|
|
17182
|
-
if (C && p && A &&
|
|
17181
|
+
const h = f && f.usedKey || o, g = f && f.exactUsedKey || o, b = Object.prototype.toString.apply(p), y = ["[object Number]", "[object Function]", "[object RegExp]"], P = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, A = !me(p) && typeof p != "boolean" && typeof p != "number";
|
|
17182
|
+
if (C && p && A && y.indexOf(b) < 0 && !(me(P) && Array.isArray(p))) {
|
|
17183
17183
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
17184
17184
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
17185
17185
|
const k = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, p, {
|
|
@@ -17293,14 +17293,14 @@ class yr extends Hr {
|
|
|
17293
17293
|
i = d;
|
|
17294
17294
|
let f = u.namespaces;
|
|
17295
17295
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
17296
|
-
const p = n.count !== void 0 && !me(n.count), h = p && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (me(n.context) || typeof n.context == "number") && n.context !== "",
|
|
17297
|
-
f.forEach((
|
|
17298
|
-
this.isValidLookup(a) || (s =
|
|
17296
|
+
const p = n.count !== void 0 && !me(n.count), h = p && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (me(n.context) || typeof n.context == "number") && n.context !== "", b = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
17297
|
+
f.forEach((y) => {
|
|
17298
|
+
this.isValidLookup(a) || (s = y, !gl[`${b[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(s) && (gl[`${b[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach((P) => {
|
|
17299
17299
|
if (this.isValidLookup(a)) return;
|
|
17300
17300
|
o = P;
|
|
17301
17301
|
const C = [d];
|
|
17302
17302
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
17303
|
-
this.i18nFormat.addLookupKeys(C, d, P,
|
|
17303
|
+
this.i18nFormat.addLookupKeys(C, d, P, y, n);
|
|
17304
17304
|
else {
|
|
17305
17305
|
let k;
|
|
17306
17306
|
p && (k = this.pluralResolver.getSuffix(P, n.count, n));
|
|
@@ -17312,7 +17312,7 @@ class yr extends Hr {
|
|
|
17312
17312
|
}
|
|
17313
17313
|
let A;
|
|
17314
17314
|
for (; A = C.pop(); )
|
|
17315
|
-
this.isValidLookup(a) || (r = A, a = this.getResource(P,
|
|
17315
|
+
this.isValidLookup(a) || (r = A, a = this.getResource(P, y, A, n));
|
|
17316
17316
|
}));
|
|
17317
17317
|
});
|
|
17318
17318
|
}), {
|
|
@@ -17646,12 +17646,12 @@ class m8 {
|
|
|
17646
17646
|
nestingPrefix: p,
|
|
17647
17647
|
nestingPrefixEscaped: h,
|
|
17648
17648
|
nestingSuffix: g,
|
|
17649
|
-
nestingSuffixEscaped:
|
|
17650
|
-
nestingOptionsSeparator:
|
|
17649
|
+
nestingSuffixEscaped: b,
|
|
17650
|
+
nestingOptionsSeparator: y,
|
|
17651
17651
|
maxReplaces: P,
|
|
17652
17652
|
alwaysFormat: C
|
|
17653
17653
|
} = t.interpolation;
|
|
17654
|
-
this.escape = n !== void 0 ? n : t8, this.escapeValue = a !== void 0 ? a : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? ea(r) : o || "{{", this.suffix = s ? ea(s) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = d ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? ea(p) : h || ea("$t("), this.nestingSuffix = g ? ea(g) :
|
|
17654
|
+
this.escape = n !== void 0 ? n : t8, this.escapeValue = a !== void 0 ? a : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? ea(r) : o || "{{", this.suffix = s ? ea(s) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = d ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? ea(p) : h || ea("$t("), this.nestingSuffix = g ? ea(g) : b || ea(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
|
|
17655
17655
|
}
|
|
17656
17656
|
reset() {
|
|
17657
17657
|
this.options && this.init(this.options);
|
|
@@ -17671,11 +17671,11 @@ class m8 {
|
|
|
17671
17671
|
interpolationkey: h
|
|
17672
17672
|
}) : P;
|
|
17673
17673
|
}
|
|
17674
|
-
const g = h.split(this.formatSeparator),
|
|
17675
|
-
return this.format(vl(n, c,
|
|
17674
|
+
const g = h.split(this.formatSeparator), b = g.shift().trim(), y = g.join(this.formatSeparator).trim();
|
|
17675
|
+
return this.format(vl(n, c, b, this.options.keySeparator, this.options.ignoreJSONStructure), y, a, {
|
|
17676
17676
|
...i,
|
|
17677
17677
|
...n,
|
|
17678
|
-
interpolationkey:
|
|
17678
|
+
interpolationkey: b
|
|
17679
17679
|
});
|
|
17680
17680
|
};
|
|
17681
17681
|
this.resetRegExp();
|
|
@@ -17691,8 +17691,8 @@ class m8 {
|
|
|
17691
17691
|
const g = r[1].trim();
|
|
17692
17692
|
if (o = u(g), o === void 0)
|
|
17693
17693
|
if (typeof d == "function") {
|
|
17694
|
-
const
|
|
17695
|
-
o = me(
|
|
17694
|
+
const y = d(t, r, i);
|
|
17695
|
+
o = me(y) ? y : "";
|
|
17696
17696
|
} else if (i && Object.prototype.hasOwnProperty.call(i, g))
|
|
17697
17697
|
o = "";
|
|
17698
17698
|
else if (f) {
|
|
@@ -17701,8 +17701,8 @@ class m8 {
|
|
|
17701
17701
|
} else
|
|
17702
17702
|
this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`), o = "";
|
|
17703
17703
|
else !me(o) && !this.useRawValueToEscape && (o = dl(o));
|
|
17704
|
-
const
|
|
17705
|
-
if (t = t.replace(r[0],
|
|
17704
|
+
const b = h.safeValue(o);
|
|
17705
|
+
if (t = t.replace(r[0], b), f ? (h.regex.lastIndex += o.length, h.regex.lastIndex -= r[0].length) : h.regex.lastIndex = 0, s++, s >= this.maxReplaces)
|
|
17706
17706
|
break;
|
|
17707
17707
|
}
|
|
17708
17708
|
}), t;
|
|
@@ -17722,8 +17722,8 @@ class m8 {
|
|
|
17722
17722
|
...u,
|
|
17723
17723
|
...o
|
|
17724
17724
|
});
|
|
17725
|
-
} catch (
|
|
17726
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`,
|
|
17725
|
+
} catch (b) {
|
|
17726
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, b), `${c}${d}${p}`;
|
|
17727
17727
|
}
|
|
17728
17728
|
return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, c;
|
|
17729
17729
|
};
|
|
@@ -18098,13 +18098,13 @@ class ei extends Hr {
|
|
|
18098
18098
|
}), d && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (p.formatter = r(d), p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new m8(this.options), p.utils = {
|
|
18099
18099
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
18100
18100
|
}, p.backendConnector = new y8(r(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", function(h) {
|
|
18101
|
-
for (var g = arguments.length,
|
|
18102
|
-
y
|
|
18103
|
-
t.emit(h, ...
|
|
18101
|
+
for (var g = arguments.length, b = new Array(g > 1 ? g - 1 : 0), y = 1; y < g; y++)
|
|
18102
|
+
b[y - 1] = arguments[y];
|
|
18103
|
+
t.emit(h, ...b);
|
|
18104
18104
|
}), this.modules.languageDetector && (p.languageDetector = r(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = r(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new yr(this.services, this.options), this.translator.on("*", function(h) {
|
|
18105
|
-
for (var g = arguments.length,
|
|
18106
|
-
y
|
|
18107
|
-
t.emit(h, ...
|
|
18105
|
+
for (var g = arguments.length, b = new Array(g > 1 ? g - 1 : 0), y = 1; y < g; y++)
|
|
18106
|
+
b[y - 1] = arguments[y];
|
|
18107
|
+
t.emit(h, ...b);
|
|
18108
18108
|
}), this.modules.external.forEach((h) => {
|
|
18109
18109
|
h.init && h.init(this);
|
|
18110
18110
|
});
|
|
@@ -18714,7 +18714,7 @@ function mg(e) {
|
|
|
18714
18714
|
return e = e.replace(/[^A-Z0-9]/gi, "").toUpperCase(), !!/^([A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST]{1}[0-9LMNPQRSTUV]{2}[A-Z]{1}[0-9LMNPQRSTUV]{3}[A-Z]{1})$|([0-9]{11})$/.test(e);
|
|
18715
18715
|
}
|
|
18716
18716
|
function Fr() {
|
|
18717
|
-
const { t: e } = Ae(), n =
|
|
18717
|
+
const { t: e } = Ae(), n = Le()._getConsumerCountry(), a = (r) => {
|
|
18718
18718
|
if (n === "IT") {
|
|
18719
18719
|
if (mg(r)) return !0;
|
|
18720
18720
|
} else if (n === "BR" && pg(r))
|
|
@@ -18754,7 +18754,7 @@ const fg = Be(() => {
|
|
|
18754
18754
|
...n
|
|
18755
18755
|
}, a) => /* @__PURE__ */ l.createElement("svg", { width: 35, height: 24, viewBox: "0 0 35 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("rect", { x: 0.5, y: 0.5, width: 34, height: 23, rx: 3.5, fill: "#281932", stroke: "#E2E8F0" }), /* @__PURE__ */ l.createElement("path", { d: "M9 20L9 19H13.9966V20L9 20Z", fill: "#2674E0" }), /* @__PURE__ */ l.createElement("path", { d: "M15.006 20V19H16.006V20L15.006 20Z", fill: "#2674E0" }), /* @__PURE__ */ l.createElement("path", { d: "M7 6C7 4.89543 7.89543 4 9 4H26C27.1046 4 28 4.89543 28 6V18C28 19.1046 27.1046 20 26 20H9C7.89543 20 7 19.1046 7 18V6Z", fill: "white" }), /* @__PURE__ */ l.createElement("path", { d: "M9 7C9 6.44772 9.44772 6 10 6H25C25.5523 6 26 6.44772 26 7V17C26 17.5523 25.5523 18 25 18H10C9.44772 18 9 17.5523 9 17V7Z", fill: "#281932" }), /* @__PURE__ */ l.createElement("path", { d: "M28 8H7V10H28V8Z", fill: "#5190E6" }), /* @__PURE__ */ l.createElement("path", { d: "M11 16.1123V14.3178C12.2181 14.3178 13.2055 13.3304 13.2055 12.1123H15C15 14.3214 13.2091 16.1123 11 16.1123Z", fill: "white" }), /* @__PURE__ */ l.createElement("path", { d: "M29 9.1123L29 11.804C27.1729 11.804 25.6917 13.2852 25.6917 15.1123L23 15.1123C23 11.7986 25.6863 9.11231 29 9.1123Z", fill: "#FFCD32" }));
|
|
18756
18756
|
oe(gg);
|
|
18757
|
-
const
|
|
18757
|
+
const xe = {
|
|
18758
18758
|
small: {
|
|
18759
18759
|
width: 23,
|
|
18760
18760
|
height: 16,
|
|
@@ -18774,12 +18774,12 @@ const $e = {
|
|
|
18774
18774
|
backgroundColor: "#ffffff",
|
|
18775
18775
|
border: "1px solid #94a3b8",
|
|
18776
18776
|
// colors.grey[400]
|
|
18777
|
-
borderRadius: e ?
|
|
18777
|
+
borderRadius: e ? xe[e].radius : "4px"
|
|
18778
18778
|
}), yg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
18779
18779
|
"svg",
|
|
18780
18780
|
{
|
|
18781
|
-
width:
|
|
18782
|
-
height:
|
|
18781
|
+
width: xe[t].width,
|
|
18782
|
+
height: xe[t].height,
|
|
18783
18783
|
viewBox: "0 0 35 24",
|
|
18784
18784
|
...e,
|
|
18785
18785
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -18797,8 +18797,8 @@ const $e = {
|
|
|
18797
18797
|
), bg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ N(
|
|
18798
18798
|
"svg",
|
|
18799
18799
|
{
|
|
18800
|
-
width:
|
|
18801
|
-
height:
|
|
18800
|
+
width: xe[t].width,
|
|
18801
|
+
height: xe[t].height,
|
|
18802
18802
|
viewBox: "0 0 70 48",
|
|
18803
18803
|
...e,
|
|
18804
18804
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -18869,8 +18869,8 @@ const $e = {
|
|
|
18869
18869
|
), Cd = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ N(
|
|
18870
18870
|
"svg",
|
|
18871
18871
|
{
|
|
18872
|
-
width:
|
|
18873
|
-
height:
|
|
18872
|
+
width: xe[t].width,
|
|
18873
|
+
height: xe[t].height,
|
|
18874
18874
|
viewBox: "0 0 35 24",
|
|
18875
18875
|
...e,
|
|
18876
18876
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -18920,8 +18920,8 @@ const $e = {
|
|
|
18920
18920
|
), vg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ N(
|
|
18921
18921
|
"svg",
|
|
18922
18922
|
{
|
|
18923
|
-
width:
|
|
18924
|
-
height:
|
|
18923
|
+
width: xe[t].width,
|
|
18924
|
+
height: xe[t].height,
|
|
18925
18925
|
viewBox: "0 0 35 24",
|
|
18926
18926
|
...e,
|
|
18927
18927
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -18940,8 +18940,8 @@ const $e = {
|
|
|
18940
18940
|
), Cg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
18941
18941
|
"svg",
|
|
18942
18942
|
{
|
|
18943
|
-
width:
|
|
18944
|
-
height:
|
|
18943
|
+
width: xe[t].width,
|
|
18944
|
+
height: xe[t].height,
|
|
18945
18945
|
viewBox: "0 0 35 24",
|
|
18946
18946
|
...e,
|
|
18947
18947
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -18983,8 +18983,8 @@ const $e = {
|
|
|
18983
18983
|
), kg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
18984
18984
|
"svg",
|
|
18985
18985
|
{
|
|
18986
|
-
width:
|
|
18987
|
-
height:
|
|
18986
|
+
width: xe[t].width,
|
|
18987
|
+
height: xe[t].height,
|
|
18988
18988
|
viewBox: "0 0 35 24",
|
|
18989
18989
|
...e,
|
|
18990
18990
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19015,8 +19015,8 @@ const $e = {
|
|
|
19015
19015
|
), Ag = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
19016
19016
|
"svg",
|
|
19017
19017
|
{
|
|
19018
|
-
width:
|
|
19019
|
-
height:
|
|
19018
|
+
width: xe[t].width,
|
|
19019
|
+
height: xe[t].height,
|
|
19020
19020
|
viewBox: "0 0 35 24",
|
|
19021
19021
|
...e,
|
|
19022
19022
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19060,8 +19060,8 @@ const $e = {
|
|
|
19060
19060
|
), Pl = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ N(
|
|
19061
19061
|
"svg",
|
|
19062
19062
|
{
|
|
19063
|
-
width:
|
|
19064
|
-
height:
|
|
19063
|
+
width: xe[t].width,
|
|
19064
|
+
height: xe[t].height,
|
|
19065
19065
|
viewBox: "0 0 35 24",
|
|
19066
19066
|
...e,
|
|
19067
19067
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19090,8 +19090,8 @@ const $e = {
|
|
|
19090
19090
|
), Eg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ N(
|
|
19091
19091
|
"svg",
|
|
19092
19092
|
{
|
|
19093
|
-
width:
|
|
19094
|
-
height:
|
|
19093
|
+
width: xe[t].width,
|
|
19094
|
+
height: xe[t].height,
|
|
19095
19095
|
viewBox: "0 0 35 24",
|
|
19096
19096
|
...e,
|
|
19097
19097
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19141,8 +19141,8 @@ const $e = {
|
|
|
19141
19141
|
), Sg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
19142
19142
|
"svg",
|
|
19143
19143
|
{
|
|
19144
|
-
width:
|
|
19145
|
-
height:
|
|
19144
|
+
width: xe[t].width,
|
|
19145
|
+
height: xe[t].height,
|
|
19146
19146
|
viewBox: "0 0 35 24",
|
|
19147
19147
|
...e,
|
|
19148
19148
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19178,8 +19178,8 @@ const $e = {
|
|
|
19178
19178
|
), Pg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
19179
19179
|
"svg",
|
|
19180
19180
|
{
|
|
19181
|
-
width:
|
|
19182
|
-
height:
|
|
19181
|
+
width: xe[t].width,
|
|
19182
|
+
height: xe[t].height,
|
|
19183
19183
|
viewBox: "0 0 35 24",
|
|
19184
19184
|
...e,
|
|
19185
19185
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19219,8 +19219,8 @@ const $e = {
|
|
|
19219
19219
|
), wg = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
19220
19220
|
"svg",
|
|
19221
19221
|
{
|
|
19222
|
-
width:
|
|
19223
|
-
height:
|
|
19222
|
+
width: xe[t].width,
|
|
19223
|
+
height: xe[t].height,
|
|
19224
19224
|
viewBox: "0 0 35 24",
|
|
19225
19225
|
...e,
|
|
19226
19226
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19318,8 +19318,8 @@ const $e = {
|
|
|
19318
19318
|
), _g = ({ svgProps: e, size: t = "medium" }) => /* @__PURE__ */ m(
|
|
19319
19319
|
"svg",
|
|
19320
19320
|
{
|
|
19321
|
-
width:
|
|
19322
|
-
height:
|
|
19321
|
+
width: xe[t].width,
|
|
19322
|
+
height: xe[t].height,
|
|
19323
19323
|
viewBox: "0 0 35 24",
|
|
19324
19324
|
...e,
|
|
19325
19325
|
style: { ...It(t), ...e == null ? void 0 : e.style },
|
|
@@ -19369,7 +19369,7 @@ function Ng({ text: e, className: t }) {
|
|
|
19369
19369
|
] });
|
|
19370
19370
|
}
|
|
19371
19371
|
const Tg = Be(() => {
|
|
19372
|
-
const e = "cardCVV", { t } = Ae(), { _cardIFrame: n, options: a } =
|
|
19372
|
+
const e = "cardCVV", { t } = Ae(), { _cardIFrame: n, options: a } = Le(), { environment: i } = a.pproAPIConfig, { creditCardType: r } = n, o = r.length === 1 ? r[0] : void 0, s = (o == null ? void 0 : o.type) === "AMEX", c = (o == null ? void 0 : o.code.size) || 3, u = t(s ? "cvvHintOnFront" : "cvvHintOnBack", {
|
|
19373
19373
|
digits: c
|
|
19374
19374
|
});
|
|
19375
19375
|
return /* @__PURE__ */ m(
|
|
@@ -19479,7 +19479,7 @@ function Hg({
|
|
|
19479
19479
|
);
|
|
19480
19480
|
}
|
|
19481
19481
|
const Fg = Be(() => {
|
|
19482
|
-
const e = "cardPAN", { t } = Ae(), { _cardIFrame: n, options: a } =
|
|
19482
|
+
const e = "cardPAN", { t } = Ae(), { _cardIFrame: n, options: a } = Le(), i = n.creditCardType, { environment: r } = a.pproAPIConfig, o = () => n.validationErrors[e] || !0, s = i.length === 1 ? /* @__PURE__ */ m(kd, { type: i[0].type, className: "fade-in" }) : null;
|
|
19483
19483
|
return /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(
|
|
19484
19484
|
it,
|
|
19485
19485
|
{
|
|
@@ -19498,8 +19498,8 @@ const Fg = Be(() => {
|
|
|
19498
19498
|
) });
|
|
19499
19499
|
});
|
|
19500
19500
|
function Gg() {
|
|
19501
|
-
var g,
|
|
19502
|
-
const { t: e } = Ae(), { _cardIFrame: t, selectedLocale: n } =
|
|
19501
|
+
var g, b, y, P, C, A;
|
|
19502
|
+
const { t: e } = Ae(), { _cardIFrame: t, selectedLocale: n } = Le(), { paymentSession: a, forms: i } = Ne(), { recurring: r } = a, o = Ze("CARD"), s = (g = i == null ? void 0 : i.card) == null ? void 0 : g.hideCvvField, c = (b = i == null ? void 0 : i.card) == null ? void 0 : b.hideHolderNameField, u = (y = i == null ? void 0 : i.card) == null ? void 0 : y.displayBillingAddressFields, d = (P = i == null ? void 0 : i.card) == null ? void 0 : P.displayInstallmentPlan, f = (C = a.order) == null ? void 0 : C.installmentPlan, p = d && f, h = (A = i == null ? void 0 : i.card) == null ? void 0 : A.displayTaxIdField;
|
|
19503
19503
|
return /* @__PURE__ */ N(We, { paymentMethodId: "CARD", name: "card", children: [
|
|
19504
19504
|
/* @__PURE__ */ m("div", { className: "flex gap-1 slide-up", children: t.brands.map((k) => /* @__PURE__ */ m(kd, { type: k.type }, k.type)) }),
|
|
19505
19505
|
/* @__PURE__ */ m("p", { className: "text-sm my-3", children: e(r ? "card.descriptionRecurring" : "card.description") }),
|
|
@@ -20255,7 +20255,7 @@ const Nl = ({
|
|
|
20255
20255
|
] });
|
|
20256
20256
|
}, xo = "debitMandate", us = ({ introTranslationKey: e = "mandate.intro" }) => {
|
|
20257
20257
|
var P;
|
|
20258
|
-
const { t } = Ae(), n = P2(), { _analytics: a } =
|
|
20258
|
+
const { t } = Ae(), n = P2(), { _analytics: a } = Le();
|
|
20259
20259
|
Ke(() => {
|
|
20260
20260
|
a.trackElementAction(
|
|
20261
20261
|
"debit-mandate show-more",
|
|
@@ -20277,7 +20277,7 @@ const Nl = ({
|
|
|
20277
20277
|
creditorId: f,
|
|
20278
20278
|
creditorAddress: p,
|
|
20279
20279
|
mandateId: h
|
|
20280
|
-
} = o, g = c[xo],
|
|
20280
|
+
} = o, g = c[xo], b = (C) => (A) => {
|
|
20281
20281
|
const { checked: k } = A.target;
|
|
20282
20282
|
return a.trackInputAction(
|
|
20283
20283
|
"input debitMandate",
|
|
@@ -20285,7 +20285,7 @@ const Nl = ({
|
|
|
20285
20285
|
"TOGGLE",
|
|
20286
20286
|
k
|
|
20287
20287
|
), C(A);
|
|
20288
|
-
},
|
|
20288
|
+
}, y = (C) => {
|
|
20289
20289
|
C ? a.trackElementAction(
|
|
20290
20290
|
"debit-mandate show-more",
|
|
20291
20291
|
n,
|
|
@@ -20318,7 +20318,7 @@ const Nl = ({
|
|
|
20318
20318
|
required: !0,
|
|
20319
20319
|
error: g,
|
|
20320
20320
|
...Ka(["ref"], C),
|
|
20321
|
-
onChange:
|
|
20321
|
+
onChange: b(C.onChange),
|
|
20322
20322
|
"data-testid": "debit-mandate-checkbox"
|
|
20323
20323
|
}
|
|
20324
20324
|
)
|
|
@@ -20328,7 +20328,7 @@ const Nl = ({
|
|
|
20328
20328
|
_y,
|
|
20329
20329
|
{
|
|
20330
20330
|
alwaysExpanded: i == null ? void 0 : i.isDebitMandateAlwaysExpanded,
|
|
20331
|
-
onChange:
|
|
20331
|
+
onChange: y,
|
|
20332
20332
|
children: /* @__PURE__ */ N("div", { className: "debit-mandate__text text-xs dark:text-gray-200", children: [
|
|
20333
20333
|
t(e),
|
|
20334
20334
|
t("mandate", {
|
|
@@ -26826,7 +26826,7 @@ const aZ = {
|
|
|
26826
26826
|
var k1 = { exports: {} };
|
|
26827
26827
|
(function(e, t) {
|
|
26828
26828
|
(function(n, a) {
|
|
26829
|
-
var i = "1.0.41", r = "", o = "?", s = "function", c = "undefined", u = "object", d = "string", f = "major", p = "model", h = "name", g = "type",
|
|
26829
|
+
var i = "1.0.41", r = "", o = "?", s = "function", c = "undefined", u = "object", d = "string", f = "major", p = "model", h = "name", g = "type", b = "vendor", y = "version", P = "architecture", C = "console", A = "mobile", k = "tablet", v = "smarttv", E = "wearable", R = "embedded", B = 500, T = "Amazon", M = "Apple", K = "ASUS", x = "BlackBerry", j = "Browser", G = "Chrome", ee = "Edge", se = "Firefox", ce = "Google", ge = "Honor", Ce = "Huawei", O = "Lenovo", U = "LG", ie = "Microsoft", re = "Motorola", $ = "Nvidia", V = "OnePlus", L = "Opera", z = "OPPO", ae = "Samsung", te = "Sharp", X = "Sony", ye = "Xiaomi", F = "Zebra", ke = "Facebook", J = "Chromium OS", Je = "Mac OS", Qe = " Browser", ut = function(be, Ee) {
|
|
26830
26830
|
var ue = {};
|
|
26831
26831
|
for (var Oe in be)
|
|
26832
26832
|
Ee[Oe] && Ee[Oe].length % 2 === 0 ? ue[Oe] = Ee[Oe].concat(be[Oe]) : ue[Oe] = be[Oe];
|
|
@@ -26889,12 +26889,12 @@ var k1 = { exports: {} };
|
|
|
26889
26889
|
/\b(?:crmo|crios)\/([\w\.]+)/i
|
|
26890
26890
|
// Chrome for Android/iOS
|
|
26891
26891
|
],
|
|
26892
|
-
[
|
|
26892
|
+
[y, [h, "Chrome"]],
|
|
26893
26893
|
[
|
|
26894
26894
|
/edg(?:e|ios|a)?\/([\w\.]+)/i
|
|
26895
26895
|
// Microsoft Edge
|
|
26896
26896
|
],
|
|
26897
|
-
[
|
|
26897
|
+
[y, [h, "Edge"]],
|
|
26898
26898
|
[
|
|
26899
26899
|
// Presto based
|
|
26900
26900
|
/(opera mini)\/([-\w\.]+)/i,
|
|
@@ -26904,33 +26904,33 @@ var k1 = { exports: {} };
|
|
|
26904
26904
|
/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i
|
|
26905
26905
|
// Opera
|
|
26906
26906
|
],
|
|
26907
|
-
[h,
|
|
26907
|
+
[h, y],
|
|
26908
26908
|
[
|
|
26909
26909
|
/opios[\/ ]+([\w\.]+)/i
|
|
26910
26910
|
// Opera mini on iphone >= 8.0
|
|
26911
26911
|
],
|
|
26912
|
-
[
|
|
26912
|
+
[y, [h, L + " Mini"]],
|
|
26913
26913
|
[
|
|
26914
26914
|
/\bop(?:rg)?x\/([\w\.]+)/i
|
|
26915
26915
|
// Opera GX
|
|
26916
26916
|
],
|
|
26917
|
-
[
|
|
26917
|
+
[y, [h, L + " GX"]],
|
|
26918
26918
|
[
|
|
26919
26919
|
/\bopr\/([\w\.]+)/i
|
|
26920
26920
|
// Opera Webkit
|
|
26921
26921
|
],
|
|
26922
|
-
[
|
|
26922
|
+
[y, [h, L]],
|
|
26923
26923
|
[
|
|
26924
26924
|
// Mixed
|
|
26925
26925
|
/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
|
|
26926
26926
|
// Baidu
|
|
26927
26927
|
],
|
|
26928
|
-
[
|
|
26928
|
+
[y, [h, "Baidu"]],
|
|
26929
26929
|
[
|
|
26930
26930
|
/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i
|
|
26931
26931
|
// Maxthon
|
|
26932
26932
|
],
|
|
26933
|
-
[
|
|
26933
|
+
[y, [h, "Maxthon"]],
|
|
26934
26934
|
[
|
|
26935
26935
|
/(kindle)\/([\w\.]+)/i,
|
|
26936
26936
|
// Kindle
|
|
@@ -26949,22 +26949,22 @@ var k1 = { exports: {} };
|
|
|
26949
26949
|
/(weibo)__([\d\.]+)/i
|
|
26950
26950
|
// Weibo
|
|
26951
26951
|
],
|
|
26952
|
-
[h,
|
|
26952
|
+
[h, y],
|
|
26953
26953
|
[
|
|
26954
26954
|
/quark(?:pc)?\/([-\w\.]+)/i
|
|
26955
26955
|
// Quark
|
|
26956
26956
|
],
|
|
26957
|
-
[
|
|
26957
|
+
[y, [h, "Quark"]],
|
|
26958
26958
|
[
|
|
26959
26959
|
/\bddg\/([\w\.]+)/i
|
|
26960
26960
|
// DuckDuckGo
|
|
26961
26961
|
],
|
|
26962
|
-
[
|
|
26962
|
+
[y, [h, "DuckDuckGo"]],
|
|
26963
26963
|
[
|
|
26964
26964
|
/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i
|
|
26965
26965
|
// UCBrowser
|
|
26966
26966
|
],
|
|
26967
|
-
[
|
|
26967
|
+
[y, [h, "UC" + j]],
|
|
26968
26968
|
[
|
|
26969
26969
|
/microm.+\bqbcore\/([\w\.]+)/i,
|
|
26970
26970
|
// WeChat Desktop for Windows Built-in Browser
|
|
@@ -26972,97 +26972,97 @@ var k1 = { exports: {} };
|
|
|
26972
26972
|
/micromessenger\/([\w\.]+)/i
|
|
26973
26973
|
// WeChat
|
|
26974
26974
|
],
|
|
26975
|
-
[
|
|
26975
|
+
[y, [h, "WeChat"]],
|
|
26976
26976
|
[
|
|
26977
26977
|
/konqueror\/([\w\.]+)/i
|
|
26978
26978
|
// Konqueror
|
|
26979
26979
|
],
|
|
26980
|
-
[
|
|
26980
|
+
[y, [h, "Konqueror"]],
|
|
26981
26981
|
[
|
|
26982
26982
|
/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i
|
|
26983
26983
|
// IE11
|
|
26984
26984
|
],
|
|
26985
|
-
[
|
|
26985
|
+
[y, [h, "IE"]],
|
|
26986
26986
|
[
|
|
26987
26987
|
/ya(?:search)?browser\/([\w\.]+)/i
|
|
26988
26988
|
// Yandex
|
|
26989
26989
|
],
|
|
26990
|
-
[
|
|
26990
|
+
[y, [h, "Yandex"]],
|
|
26991
26991
|
[
|
|
26992
26992
|
/slbrowser\/([\w\.]+)/i
|
|
26993
26993
|
// Smart Lenovo Browser
|
|
26994
26994
|
],
|
|
26995
|
-
[
|
|
26995
|
+
[y, [h, "Smart Lenovo " + j]],
|
|
26996
26996
|
[
|
|
26997
26997
|
/(avast|avg)\/([\w\.]+)/i
|
|
26998
26998
|
// Avast/AVG Secure Browser
|
|
26999
26999
|
],
|
|
27000
|
-
[[h, /(.+)/, "$1 Secure " + j],
|
|
27000
|
+
[[h, /(.+)/, "$1 Secure " + j], y],
|
|
27001
27001
|
[
|
|
27002
27002
|
/\bfocus\/([\w\.]+)/i
|
|
27003
27003
|
// Firefox Focus
|
|
27004
27004
|
],
|
|
27005
|
-
[
|
|
27005
|
+
[y, [h, se + " Focus"]],
|
|
27006
27006
|
[
|
|
27007
27007
|
/\bopt\/([\w\.]+)/i
|
|
27008
27008
|
// Opera Touch
|
|
27009
27009
|
],
|
|
27010
|
-
[
|
|
27010
|
+
[y, [h, L + " Touch"]],
|
|
27011
27011
|
[
|
|
27012
27012
|
/coc_coc\w+\/([\w\.]+)/i
|
|
27013
27013
|
// Coc Coc Browser
|
|
27014
27014
|
],
|
|
27015
|
-
[
|
|
27015
|
+
[y, [h, "Coc Coc"]],
|
|
27016
27016
|
[
|
|
27017
27017
|
/dolfin\/([\w\.]+)/i
|
|
27018
27018
|
// Dolphin
|
|
27019
27019
|
],
|
|
27020
|
-
[
|
|
27020
|
+
[y, [h, "Dolphin"]],
|
|
27021
27021
|
[
|
|
27022
27022
|
/coast\/([\w\.]+)/i
|
|
27023
27023
|
// Opera Coast
|
|
27024
27024
|
],
|
|
27025
|
-
[
|
|
27025
|
+
[y, [h, L + " Coast"]],
|
|
27026
27026
|
[
|
|
27027
27027
|
/miuibrowser\/([\w\.]+)/i
|
|
27028
27028
|
// MIUI Browser
|
|
27029
27029
|
],
|
|
27030
|
-
[
|
|
27030
|
+
[y, [h, "MIUI" + Qe]],
|
|
27031
27031
|
[
|
|
27032
27032
|
/fxios\/([\w\.-]+)/i
|
|
27033
27033
|
// Firefox for iOS
|
|
27034
27034
|
],
|
|
27035
|
-
[
|
|
27035
|
+
[y, [h, se]],
|
|
27036
27036
|
[
|
|
27037
27037
|
/\bqihoobrowser\/?([\w\.]*)/i
|
|
27038
27038
|
// 360
|
|
27039
27039
|
],
|
|
27040
|
-
[
|
|
27040
|
+
[y, [h, "360"]],
|
|
27041
27041
|
[
|
|
27042
27042
|
/\b(qq)\/([\w\.]+)/i
|
|
27043
27043
|
// QQ
|
|
27044
27044
|
],
|
|
27045
|
-
[[h, /(.+)/, "$1Browser"],
|
|
27045
|
+
[[h, /(.+)/, "$1Browser"], y],
|
|
27046
27046
|
[
|
|
27047
27047
|
/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
|
|
27048
27048
|
],
|
|
27049
|
-
[[h, /(.+)/, "$1" + Qe],
|
|
27049
|
+
[[h, /(.+)/, "$1" + Qe], y],
|
|
27050
27050
|
[
|
|
27051
27051
|
// Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
|
|
27052
27052
|
/samsungbrowser\/([\w\.]+)/i
|
|
27053
27053
|
// Samsung Internet
|
|
27054
27054
|
],
|
|
27055
|
-
[
|
|
27055
|
+
[y, [h, ae + " Internet"]],
|
|
27056
27056
|
[
|
|
27057
27057
|
/metasr[\/ ]?([\d\.]+)/i
|
|
27058
27058
|
// Sogou Explorer
|
|
27059
27059
|
],
|
|
27060
|
-
[
|
|
27060
|
+
[y, [h, "Sogou Explorer"]],
|
|
27061
27061
|
[
|
|
27062
27062
|
/(sogou)mo\w+\/([\d\.]+)/i
|
|
27063
27063
|
// Sogou Mobile
|
|
27064
27064
|
],
|
|
27065
|
-
[[h, "Sogou Mobile"],
|
|
27065
|
+
[[h, "Sogou Mobile"], y],
|
|
27066
27066
|
[
|
|
27067
27067
|
/(electron)\/([\w\.]+) safari/i,
|
|
27068
27068
|
// Electron-based App
|
|
@@ -27071,7 +27071,7 @@ var k1 = { exports: {} };
|
|
|
27071
27071
|
/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i
|
|
27072
27072
|
// QQ/2345
|
|
27073
27073
|
],
|
|
27074
|
-
[h,
|
|
27074
|
+
[h, y],
|
|
27075
27075
|
[
|
|
27076
27076
|
/(lbbrowser|rekonq)/i,
|
|
27077
27077
|
// LieBao Browser/Rekonq
|
|
@@ -27085,13 +27085,13 @@ var k1 = { exports: {} };
|
|
|
27085
27085
|
/ome\/([\w\.]+).+qihu (360)[es]e/i
|
|
27086
27086
|
// 360
|
|
27087
27087
|
],
|
|
27088
|
-
[
|
|
27088
|
+
[y, h],
|
|
27089
27089
|
[
|
|
27090
27090
|
// WebView
|
|
27091
27091
|
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
|
|
27092
27092
|
// Facebook App for iOS & Android
|
|
27093
27093
|
],
|
|
27094
|
-
[[h, ke],
|
|
27094
|
+
[[h, ke], y],
|
|
27095
27095
|
[
|
|
27096
27096
|
/(Klarna)\/([\w\.]+)/i,
|
|
27097
27097
|
// Klarna Shopping Browser for iOS & Android
|
|
@@ -27112,72 +27112,72 @@ var k1 = { exports: {} };
|
|
|
27112
27112
|
/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i
|
|
27113
27113
|
// Chromium/Instagram/Snapchat
|
|
27114
27114
|
],
|
|
27115
|
-
[h,
|
|
27115
|
+
[h, y],
|
|
27116
27116
|
[
|
|
27117
27117
|
/\bgsa\/([\w\.]+) .*safari\//i
|
|
27118
27118
|
// Google Search Appliance on iOS
|
|
27119
27119
|
],
|
|
27120
|
-
[
|
|
27120
|
+
[y, [h, "GSA"]],
|
|
27121
27121
|
[
|
|
27122
27122
|
/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i
|
|
27123
27123
|
// TikTok
|
|
27124
27124
|
],
|
|
27125
|
-
[
|
|
27125
|
+
[y, [h, "TikTok"]],
|
|
27126
27126
|
[
|
|
27127
27127
|
/headlesschrome(?:\/([\w\.]+)| )/i
|
|
27128
27128
|
// Chrome Headless
|
|
27129
27129
|
],
|
|
27130
|
-
[
|
|
27130
|
+
[y, [h, G + " Headless"]],
|
|
27131
27131
|
[
|
|
27132
27132
|
/ wv\).+(chrome)\/([\w\.]+)/i
|
|
27133
27133
|
// Chrome WebView
|
|
27134
27134
|
],
|
|
27135
|
-
[[h, G + " WebView"],
|
|
27135
|
+
[[h, G + " WebView"], y],
|
|
27136
27136
|
[
|
|
27137
27137
|
/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
|
|
27138
27138
|
// Android Browser
|
|
27139
27139
|
],
|
|
27140
|
-
[
|
|
27140
|
+
[y, [h, "Android " + j]],
|
|
27141
27141
|
[
|
|
27142
27142
|
/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i
|
|
27143
27143
|
// Chrome/OmniWeb/Arora/Tizen/Nokia
|
|
27144
27144
|
],
|
|
27145
|
-
[h,
|
|
27145
|
+
[h, y],
|
|
27146
27146
|
[
|
|
27147
27147
|
/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i
|
|
27148
27148
|
// Mobile Safari
|
|
27149
27149
|
],
|
|
27150
|
-
[
|
|
27150
|
+
[y, [h, "Mobile Safari"]],
|
|
27151
27151
|
[
|
|
27152
27152
|
/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i
|
|
27153
27153
|
// Safari & Safari Mobile
|
|
27154
27154
|
],
|
|
27155
|
-
[
|
|
27155
|
+
[y, h],
|
|
27156
27156
|
[
|
|
27157
27157
|
/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i
|
|
27158
27158
|
// Safari < 3.0
|
|
27159
27159
|
],
|
|
27160
|
-
[h, [
|
|
27160
|
+
[h, [y, ne, ve]],
|
|
27161
27161
|
[
|
|
27162
27162
|
/(webkit|khtml)\/([\w\.]+)/i
|
|
27163
27163
|
],
|
|
27164
|
-
[h,
|
|
27164
|
+
[h, y],
|
|
27165
27165
|
[
|
|
27166
27166
|
// Gecko based
|
|
27167
27167
|
/(navigator|netscape\d?)\/([-\w\.]+)/i
|
|
27168
27168
|
// Netscape
|
|
27169
27169
|
],
|
|
27170
|
-
[[h, "Netscape"],
|
|
27170
|
+
[[h, "Netscape"], y],
|
|
27171
27171
|
[
|
|
27172
27172
|
/(wolvic|librewolf)\/([\w\.]+)/i
|
|
27173
27173
|
// Wolvic/LibreWolf
|
|
27174
27174
|
],
|
|
27175
|
-
[h,
|
|
27175
|
+
[h, y],
|
|
27176
27176
|
[
|
|
27177
27177
|
/mobile vr; rv:([\w\.]+)\).+firefox/i
|
|
27178
27178
|
// Firefox Reality
|
|
27179
27179
|
],
|
|
27180
|
-
[
|
|
27180
|
+
[y, [h, se + " Reality"]],
|
|
27181
27181
|
[
|
|
27182
27182
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
27183
27183
|
// Flow
|
|
@@ -27197,12 +27197,12 @@ var k1 = { exports: {} };
|
|
|
27197
27197
|
/\b(links) \(([\w\.]+)/i
|
|
27198
27198
|
// Links
|
|
27199
27199
|
],
|
|
27200
|
-
[h, [
|
|
27200
|
+
[h, [y, /_/g, "."]],
|
|
27201
27201
|
[
|
|
27202
27202
|
/(cobalt)\/([\w\.]+)/i
|
|
27203
27203
|
// Cobalt
|
|
27204
27204
|
],
|
|
27205
|
-
[h, [
|
|
27205
|
+
[h, [y, /master.|lts./, ""]]
|
|
27206
27206
|
],
|
|
27207
27207
|
cpu: [
|
|
27208
27208
|
[
|
|
@@ -27256,61 +27256,61 @@ var k1 = { exports: {} };
|
|
|
27256
27256
|
// Samsung
|
|
27257
27257
|
/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
|
|
27258
27258
|
],
|
|
27259
|
-
[p, [
|
|
27259
|
+
[p, [b, ae], [g, k]],
|
|
27260
27260
|
[
|
|
27261
27261
|
/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
27262
27262
|
/samsung[- ]((?!sm-[lr])[-\w]+)/i,
|
|
27263
27263
|
/sec-(sgh\w+)/i
|
|
27264
27264
|
],
|
|
27265
|
-
[p, [
|
|
27265
|
+
[p, [b, ae], [g, A]],
|
|
27266
27266
|
[
|
|
27267
27267
|
// Apple
|
|
27268
27268
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
|
|
27269
27269
|
// iPod/iPhone
|
|
27270
27270
|
],
|
|
27271
|
-
[p, [
|
|
27271
|
+
[p, [b, M], [g, A]],
|
|
27272
27272
|
[
|
|
27273
27273
|
/\((ipad);[-\w\),; ]+apple/i,
|
|
27274
27274
|
// iPad
|
|
27275
27275
|
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
|
27276
27276
|
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i
|
|
27277
27277
|
],
|
|
27278
|
-
[p, [
|
|
27278
|
+
[p, [b, M], [g, k]],
|
|
27279
27279
|
[
|
|
27280
27280
|
/(macintosh);/i
|
|
27281
27281
|
],
|
|
27282
|
-
[p, [
|
|
27282
|
+
[p, [b, M]],
|
|
27283
27283
|
[
|
|
27284
27284
|
// Sharp
|
|
27285
27285
|
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
27286
27286
|
],
|
|
27287
|
-
[p, [
|
|
27287
|
+
[p, [b, te], [g, A]],
|
|
27288
27288
|
[
|
|
27289
27289
|
// Honor
|
|
27290
27290
|
/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
|
|
27291
27291
|
],
|
|
27292
|
-
[p, [
|
|
27292
|
+
[p, [b, ge], [g, k]],
|
|
27293
27293
|
[
|
|
27294
27294
|
/honor([-\w ]+)[;\)]/i
|
|
27295
27295
|
],
|
|
27296
|
-
[p, [
|
|
27296
|
+
[p, [b, ge], [g, A]],
|
|
27297
27297
|
[
|
|
27298
27298
|
// Huawei
|
|
27299
27299
|
/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i
|
|
27300
27300
|
],
|
|
27301
|
-
[p, [
|
|
27301
|
+
[p, [b, Ce], [g, k]],
|
|
27302
27302
|
[
|
|
27303
27303
|
/(?:huawei)([-\w ]+)[;\)]/i,
|
|
27304
27304
|
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
|
|
27305
27305
|
],
|
|
27306
|
-
[p, [
|
|
27306
|
+
[p, [b, Ce], [g, A]],
|
|
27307
27307
|
[
|
|
27308
27308
|
// Xiaomi
|
|
27309
27309
|
/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
|
|
27310
27310
|
/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
|
|
27311
27311
|
// Mi Pad tablets
|
|
27312
27312
|
],
|
|
27313
|
-
[[p, /_/g, " "], [
|
|
27313
|
+
[[p, /_/g, " "], [b, ye], [g, k]],
|
|
27314
27314
|
[
|
|
27315
27315
|
/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,
|
|
27316
27316
|
// Xiaomi POCO
|
|
@@ -27326,93 +27326,93 @@ var k1 = { exports: {} };
|
|
|
27326
27326
|
// Xiaomi Mi
|
|
27327
27327
|
/ ([\w ]+) miui\/v?\d/i
|
|
27328
27328
|
],
|
|
27329
|
-
[[p, /_/g, " "], [
|
|
27329
|
+
[[p, /_/g, " "], [b, ye], [g, A]],
|
|
27330
27330
|
[
|
|
27331
27331
|
// OPPO
|
|
27332
27332
|
/; (\w+) bui.+ oppo/i,
|
|
27333
27333
|
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
|
|
27334
27334
|
],
|
|
27335
|
-
[p, [
|
|
27335
|
+
[p, [b, z], [g, A]],
|
|
27336
27336
|
[
|
|
27337
27337
|
/\b(opd2(\d{3}a?))(?: bui|\))/i
|
|
27338
27338
|
],
|
|
27339
|
-
[p, [
|
|
27339
|
+
[p, [b, ne, { OnePlus: ["304", "403", "203"], "*": z }], [g, k]],
|
|
27340
27340
|
[
|
|
27341
27341
|
// Vivo
|
|
27342
27342
|
/vivo (\w+)(?: bui|\))/i,
|
|
27343
27343
|
/\b(v[12]\d{3}\w?[at])(?: bui|;)/i
|
|
27344
27344
|
],
|
|
27345
|
-
[p, [
|
|
27345
|
+
[p, [b, "Vivo"], [g, A]],
|
|
27346
27346
|
[
|
|
27347
27347
|
// Realme
|
|
27348
27348
|
/\b(rmx[1-3]\d{3})(?: bui|;|\))/i
|
|
27349
27349
|
],
|
|
27350
|
-
[p, [
|
|
27350
|
+
[p, [b, "Realme"], [g, A]],
|
|
27351
27351
|
[
|
|
27352
27352
|
// Motorola
|
|
27353
27353
|
/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
|
|
27354
27354
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
27355
27355
|
/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
27356
27356
|
],
|
|
27357
|
-
[p, [
|
|
27357
|
+
[p, [b, re], [g, A]],
|
|
27358
27358
|
[
|
|
27359
27359
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
27360
27360
|
],
|
|
27361
|
-
[p, [
|
|
27361
|
+
[p, [b, re], [g, k]],
|
|
27362
27362
|
[
|
|
27363
27363
|
// LG
|
|
27364
27364
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
27365
27365
|
],
|
|
27366
|
-
[p, [
|
|
27366
|
+
[p, [b, U], [g, k]],
|
|
27367
27367
|
[
|
|
27368
27368
|
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
27369
27369
|
/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,
|
|
27370
27370
|
/\blg-?([\d\w]+) bui/i
|
|
27371
27371
|
],
|
|
27372
|
-
[p, [
|
|
27372
|
+
[p, [b, U], [g, A]],
|
|
27373
27373
|
[
|
|
27374
27374
|
// Lenovo
|
|
27375
27375
|
/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
|
|
27376
27376
|
/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
|
|
27377
27377
|
],
|
|
27378
|
-
[p, [
|
|
27378
|
+
[p, [b, O], [g, k]],
|
|
27379
27379
|
[
|
|
27380
27380
|
// Nokia
|
|
27381
27381
|
/(nokia) (t[12][01])/i
|
|
27382
27382
|
],
|
|
27383
|
-
[
|
|
27383
|
+
[b, p, [g, k]],
|
|
27384
27384
|
[
|
|
27385
27385
|
/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,
|
|
27386
27386
|
/nokia[-_ ]?(([-\w\. ]*))/i
|
|
27387
27387
|
],
|
|
27388
|
-
[[p, /_/g, " "], [g, A], [
|
|
27388
|
+
[[p, /_/g, " "], [g, A], [b, "Nokia"]],
|
|
27389
27389
|
[
|
|
27390
27390
|
// Google
|
|
27391
27391
|
/(pixel (c|tablet))\b/i
|
|
27392
27392
|
// Google Pixel C/Tablet
|
|
27393
27393
|
],
|
|
27394
|
-
[p, [
|
|
27394
|
+
[p, [b, ce], [g, k]],
|
|
27395
27395
|
[
|
|
27396
27396
|
/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
|
|
27397
27397
|
// Google Pixel
|
|
27398
27398
|
],
|
|
27399
|
-
[p, [
|
|
27399
|
+
[p, [b, ce], [g, A]],
|
|
27400
27400
|
[
|
|
27401
27401
|
// Sony
|
|
27402
27402
|
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
|
|
27403
27403
|
],
|
|
27404
|
-
[p, [
|
|
27404
|
+
[p, [b, X], [g, A]],
|
|
27405
27405
|
[
|
|
27406
27406
|
/sony tablet [ps]/i,
|
|
27407
27407
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
27408
27408
|
],
|
|
27409
|
-
[[p, "Xperia Tablet"], [
|
|
27409
|
+
[[p, "Xperia Tablet"], [b, X], [g, k]],
|
|
27410
27410
|
[
|
|
27411
27411
|
// OnePlus
|
|
27412
27412
|
/ (kb2005|in20[12]5|be20[12][59])\b/i,
|
|
27413
27413
|
/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
|
|
27414
27414
|
],
|
|
27415
|
-
[p, [
|
|
27415
|
+
[p, [b, V], [g, A]],
|
|
27416
27416
|
[
|
|
27417
27417
|
// Amazon
|
|
27418
27418
|
/(alexa)webm/i,
|
|
@@ -27421,39 +27421,39 @@ var k1 = { exports: {} };
|
|
|
27421
27421
|
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
27422
27422
|
// Kindle Fire HD
|
|
27423
27423
|
],
|
|
27424
|
-
[p, [
|
|
27424
|
+
[p, [b, T], [g, k]],
|
|
27425
27425
|
[
|
|
27426
27426
|
/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
|
|
27427
27427
|
// Fire Phone
|
|
27428
27428
|
],
|
|
27429
|
-
[[p, /(.+)/g, "Fire Phone $1"], [
|
|
27429
|
+
[[p, /(.+)/g, "Fire Phone $1"], [b, T], [g, A]],
|
|
27430
27430
|
[
|
|
27431
27431
|
// BlackBerry
|
|
27432
27432
|
/(playbook);[-\w\),; ]+(rim)/i
|
|
27433
27433
|
// BlackBerry PlayBook
|
|
27434
27434
|
],
|
|
27435
|
-
[p,
|
|
27435
|
+
[p, b, [g, k]],
|
|
27436
27436
|
[
|
|
27437
27437
|
/\b((?:bb[a-f]|st[hv])100-\d)/i,
|
|
27438
27438
|
/\(bb10; (\w+)/i
|
|
27439
27439
|
// BlackBerry 10
|
|
27440
27440
|
],
|
|
27441
|
-
[p, [
|
|
27441
|
+
[p, [b, x], [g, A]],
|
|
27442
27442
|
[
|
|
27443
27443
|
// Asus
|
|
27444
27444
|
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
27445
27445
|
],
|
|
27446
|
-
[p, [
|
|
27446
|
+
[p, [b, K], [g, k]],
|
|
27447
27447
|
[
|
|
27448
27448
|
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
27449
27449
|
],
|
|
27450
|
-
[p, [
|
|
27450
|
+
[p, [b, K], [g, A]],
|
|
27451
27451
|
[
|
|
27452
27452
|
// HTC
|
|
27453
27453
|
/(nexus 9)/i
|
|
27454
27454
|
// HTC Nexus 9
|
|
27455
27455
|
],
|
|
27456
|
-
[p, [
|
|
27456
|
+
[p, [b, "HTC"], [g, k]],
|
|
27457
27457
|
[
|
|
27458
27458
|
/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,
|
|
27459
27459
|
// HTC
|
|
@@ -27462,66 +27462,66 @@ var k1 = { exports: {} };
|
|
|
27462
27462
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
27463
27463
|
// Alcatel/GeeksPhone/Nexian/Panasonic/Sony
|
|
27464
27464
|
],
|
|
27465
|
-
[
|
|
27465
|
+
[b, [p, /_/g, " "], [g, A]],
|
|
27466
27466
|
[
|
|
27467
27467
|
// TCL
|
|
27468
27468
|
/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i
|
|
27469
27469
|
],
|
|
27470
|
-
[p, [
|
|
27470
|
+
[p, [b, "TCL"], [g, k]],
|
|
27471
27471
|
[
|
|
27472
27472
|
// itel
|
|
27473
27473
|
/(itel) ((\w+))/i
|
|
27474
27474
|
],
|
|
27475
|
-
[[
|
|
27475
|
+
[[b, I], p, [g, ne, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
|
|
27476
27476
|
[
|
|
27477
27477
|
// Acer
|
|
27478
27478
|
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
27479
27479
|
],
|
|
27480
|
-
[p, [
|
|
27480
|
+
[p, [b, "Acer"], [g, k]],
|
|
27481
27481
|
[
|
|
27482
27482
|
// Meizu
|
|
27483
27483
|
/droid.+; (m[1-5] note) bui/i,
|
|
27484
27484
|
/\bmz-([-\w]{2,})/i
|
|
27485
27485
|
],
|
|
27486
|
-
[p, [
|
|
27486
|
+
[p, [b, "Meizu"], [g, A]],
|
|
27487
27487
|
[
|
|
27488
27488
|
// Ulefone
|
|
27489
27489
|
/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
|
|
27490
27490
|
],
|
|
27491
|
-
[p, [
|
|
27491
|
+
[p, [b, "Ulefone"], [g, A]],
|
|
27492
27492
|
[
|
|
27493
27493
|
// Energizer
|
|
27494
27494
|
/; (energy ?\w+)(?: bui|\))/i,
|
|
27495
27495
|
/; energizer ([\w ]+)(?: bui|\))/i
|
|
27496
27496
|
],
|
|
27497
|
-
[p, [
|
|
27497
|
+
[p, [b, "Energizer"], [g, A]],
|
|
27498
27498
|
[
|
|
27499
27499
|
// Cat
|
|
27500
27500
|
/; cat (b35);/i,
|
|
27501
27501
|
/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i
|
|
27502
27502
|
],
|
|
27503
|
-
[p, [
|
|
27503
|
+
[p, [b, "Cat"], [g, A]],
|
|
27504
27504
|
[
|
|
27505
27505
|
// Smartfren
|
|
27506
27506
|
/((?:new )?andromax[\w- ]+)(?: bui|\))/i
|
|
27507
27507
|
],
|
|
27508
|
-
[p, [
|
|
27508
|
+
[p, [b, "Smartfren"], [g, A]],
|
|
27509
27509
|
[
|
|
27510
27510
|
// Nothing
|
|
27511
27511
|
/droid.+; (a(?:015|06[35]|142p?))/i
|
|
27512
27512
|
],
|
|
27513
|
-
[p, [
|
|
27513
|
+
[p, [b, "Nothing"], [g, A]],
|
|
27514
27514
|
[
|
|
27515
27515
|
// Archos
|
|
27516
27516
|
/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,
|
|
27517
27517
|
/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i
|
|
27518
27518
|
],
|
|
27519
|
-
[p, [
|
|
27519
|
+
[p, [b, "Archos"], [g, k]],
|
|
27520
27520
|
[
|
|
27521
27521
|
/archos ([\w ]+)( b|\))/i,
|
|
27522
27522
|
/; (ac[3-6]\d\w{2,8})( b|\))/i
|
|
27523
27523
|
],
|
|
27524
|
-
[p, [
|
|
27524
|
+
[p, [b, "Archos"], [g, A]],
|
|
27525
27525
|
[
|
|
27526
27526
|
// MIXED
|
|
27527
27527
|
/(imo) (tab \w+)/i,
|
|
@@ -27529,7 +27529,7 @@ var k1 = { exports: {} };
|
|
|
27529
27529
|
/(infinix) (x1101b?)/i
|
|
27530
27530
|
// Infinix XPad
|
|
27531
27531
|
],
|
|
27532
|
-
[
|
|
27532
|
+
[b, p, [g, k]],
|
|
27533
27533
|
[
|
|
27534
27534
|
/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,
|
|
27535
27535
|
// BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron/Infinix/Tecno/Micromax/Advan
|
|
@@ -27544,7 +27544,7 @@ var k1 = { exports: {} };
|
|
|
27544
27544
|
/(oppo) ?([\w ]+) bui/i
|
|
27545
27545
|
// OPPO
|
|
27546
27546
|
],
|
|
27547
|
-
[
|
|
27547
|
+
[b, p, [g, A]],
|
|
27548
27548
|
[
|
|
27549
27549
|
/(kobo)\s(ereader|touch)/i,
|
|
27550
27550
|
// Kobo
|
|
@@ -27565,146 +27565,146 @@ var k1 = { exports: {} };
|
|
|
27565
27565
|
/(vodafone) ([\w ]+)(?:\)| bui)/i
|
|
27566
27566
|
// Vodafone
|
|
27567
27567
|
],
|
|
27568
|
-
[
|
|
27568
|
+
[b, p, [g, k]],
|
|
27569
27569
|
[
|
|
27570
27570
|
/(surface duo)/i
|
|
27571
27571
|
// Surface Duo
|
|
27572
27572
|
],
|
|
27573
|
-
[p, [
|
|
27573
|
+
[p, [b, ie], [g, k]],
|
|
27574
27574
|
[
|
|
27575
27575
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
27576
27576
|
// Fairphone
|
|
27577
27577
|
],
|
|
27578
|
-
[p, [
|
|
27578
|
+
[p, [b, "Fairphone"], [g, A]],
|
|
27579
27579
|
[
|
|
27580
27580
|
/(u304aa)/i
|
|
27581
27581
|
// AT&T
|
|
27582
27582
|
],
|
|
27583
|
-
[p, [
|
|
27583
|
+
[p, [b, "AT&T"], [g, A]],
|
|
27584
27584
|
[
|
|
27585
27585
|
/\bsie-(\w*)/i
|
|
27586
27586
|
// Siemens
|
|
27587
27587
|
],
|
|
27588
|
-
[p, [
|
|
27588
|
+
[p, [b, "Siemens"], [g, A]],
|
|
27589
27589
|
[
|
|
27590
27590
|
/\b(rct\w+) b/i
|
|
27591
27591
|
// RCA Tablets
|
|
27592
27592
|
],
|
|
27593
|
-
[p, [
|
|
27593
|
+
[p, [b, "RCA"], [g, k]],
|
|
27594
27594
|
[
|
|
27595
27595
|
/\b(venue[\d ]{2,7}) b/i
|
|
27596
27596
|
// Dell Venue Tablets
|
|
27597
27597
|
],
|
|
27598
|
-
[p, [
|
|
27598
|
+
[p, [b, "Dell"], [g, k]],
|
|
27599
27599
|
[
|
|
27600
27600
|
/\b(q(?:mv|ta)\w+) b/i
|
|
27601
27601
|
// Verizon Tablet
|
|
27602
27602
|
],
|
|
27603
|
-
[p, [
|
|
27603
|
+
[p, [b, "Verizon"], [g, k]],
|
|
27604
27604
|
[
|
|
27605
27605
|
/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i
|
|
27606
27606
|
// Barnes & Noble Tablet
|
|
27607
27607
|
],
|
|
27608
|
-
[p, [
|
|
27608
|
+
[p, [b, "Barnes & Noble"], [g, k]],
|
|
27609
27609
|
[
|
|
27610
27610
|
/\b(tm\d{3}\w+) b/i
|
|
27611
27611
|
],
|
|
27612
|
-
[p, [
|
|
27612
|
+
[p, [b, "NuVision"], [g, k]],
|
|
27613
27613
|
[
|
|
27614
27614
|
/\b(k88) b/i
|
|
27615
27615
|
// ZTE K Series Tablet
|
|
27616
27616
|
],
|
|
27617
|
-
[p, [
|
|
27617
|
+
[p, [b, "ZTE"], [g, k]],
|
|
27618
27618
|
[
|
|
27619
27619
|
/\b(nx\d{3}j) b/i
|
|
27620
27620
|
// ZTE Nubia
|
|
27621
27621
|
],
|
|
27622
|
-
[p, [
|
|
27622
|
+
[p, [b, "ZTE"], [g, A]],
|
|
27623
27623
|
[
|
|
27624
27624
|
/\b(gen\d{3}) b.+49h/i
|
|
27625
27625
|
// Swiss GEN Mobile
|
|
27626
27626
|
],
|
|
27627
|
-
[p, [
|
|
27627
|
+
[p, [b, "Swiss"], [g, A]],
|
|
27628
27628
|
[
|
|
27629
27629
|
/\b(zur\d{3}) b/i
|
|
27630
27630
|
// Swiss ZUR Tablet
|
|
27631
27631
|
],
|
|
27632
|
-
[p, [
|
|
27632
|
+
[p, [b, "Swiss"], [g, k]],
|
|
27633
27633
|
[
|
|
27634
27634
|
/\b((zeki)?tb.*\b) b/i
|
|
27635
27635
|
// Zeki Tablets
|
|
27636
27636
|
],
|
|
27637
|
-
[p, [
|
|
27637
|
+
[p, [b, "Zeki"], [g, k]],
|
|
27638
27638
|
[
|
|
27639
27639
|
/\b([yr]\d{2}) b/i,
|
|
27640
27640
|
/\b(dragon[- ]+touch |dt)(\w{5}) b/i
|
|
27641
27641
|
// Dragon Touch Tablet
|
|
27642
27642
|
],
|
|
27643
|
-
[[
|
|
27643
|
+
[[b, "Dragon Touch"], p, [g, k]],
|
|
27644
27644
|
[
|
|
27645
27645
|
/\b(ns-?\w{0,9}) b/i
|
|
27646
27646
|
// Insignia Tablets
|
|
27647
27647
|
],
|
|
27648
|
-
[p, [
|
|
27648
|
+
[p, [b, "Insignia"], [g, k]],
|
|
27649
27649
|
[
|
|
27650
27650
|
/\b((nxa|next)-?\w{0,9}) b/i
|
|
27651
27651
|
// NextBook Tablets
|
|
27652
27652
|
],
|
|
27653
|
-
[p, [
|
|
27653
|
+
[p, [b, "NextBook"], [g, k]],
|
|
27654
27654
|
[
|
|
27655
27655
|
/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i
|
|
27656
27656
|
// Voice Xtreme Phones
|
|
27657
27657
|
],
|
|
27658
|
-
[[
|
|
27658
|
+
[[b, "Voice"], p, [g, A]],
|
|
27659
27659
|
[
|
|
27660
27660
|
/\b(lvtel\-)?(v1[12]) b/i
|
|
27661
27661
|
// LvTel Phones
|
|
27662
27662
|
],
|
|
27663
|
-
[[
|
|
27663
|
+
[[b, "LvTel"], p, [g, A]],
|
|
27664
27664
|
[
|
|
27665
27665
|
/\b(ph-1) /i
|
|
27666
27666
|
// Essential PH-1
|
|
27667
27667
|
],
|
|
27668
|
-
[p, [
|
|
27668
|
+
[p, [b, "Essential"], [g, A]],
|
|
27669
27669
|
[
|
|
27670
27670
|
/\b(v(100md|700na|7011|917g).*\b) b/i
|
|
27671
27671
|
// Envizen Tablets
|
|
27672
27672
|
],
|
|
27673
|
-
[p, [
|
|
27673
|
+
[p, [b, "Envizen"], [g, k]],
|
|
27674
27674
|
[
|
|
27675
27675
|
/\b(trio[-\w\. ]+) b/i
|
|
27676
27676
|
// MachSpeed Tablets
|
|
27677
27677
|
],
|
|
27678
|
-
[p, [
|
|
27678
|
+
[p, [b, "MachSpeed"], [g, k]],
|
|
27679
27679
|
[
|
|
27680
27680
|
/\btu_(1491) b/i
|
|
27681
27681
|
// Rotor Tablets
|
|
27682
27682
|
],
|
|
27683
|
-
[p, [
|
|
27683
|
+
[p, [b, "Rotor"], [g, k]],
|
|
27684
27684
|
[
|
|
27685
27685
|
/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i
|
|
27686
27686
|
// Nvidia Tablets
|
|
27687
27687
|
],
|
|
27688
|
-
[p, [
|
|
27688
|
+
[p, [b, $], [g, k]],
|
|
27689
27689
|
[
|
|
27690
27690
|
/(sprint) (\w+)/i
|
|
27691
27691
|
// Sprint Phones
|
|
27692
27692
|
],
|
|
27693
|
-
[
|
|
27693
|
+
[b, p, [g, A]],
|
|
27694
27694
|
[
|
|
27695
27695
|
/(kin\.[onetw]{3})/i
|
|
27696
27696
|
// Microsoft Kin
|
|
27697
27697
|
],
|
|
27698
|
-
[[p, /\./g, " "], [
|
|
27698
|
+
[[p, /\./g, " "], [b, ie], [g, A]],
|
|
27699
27699
|
[
|
|
27700
27700
|
/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
27701
27701
|
// Zebra
|
|
27702
27702
|
],
|
|
27703
|
-
[p, [
|
|
27703
|
+
[p, [b, F], [g, k]],
|
|
27704
27704
|
[
|
|
27705
27705
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
27706
27706
|
],
|
|
27707
|
-
[p, [
|
|
27707
|
+
[p, [b, F], [g, A]],
|
|
27708
27708
|
[
|
|
27709
27709
|
///////////////////
|
|
27710
27710
|
// SMARTTVS
|
|
@@ -27712,64 +27712,64 @@ var k1 = { exports: {} };
|
|
|
27712
27712
|
/smart-tv.+(samsung)/i
|
|
27713
27713
|
// Samsung
|
|
27714
27714
|
],
|
|
27715
|
-
[
|
|
27715
|
+
[b, [g, v]],
|
|
27716
27716
|
[
|
|
27717
27717
|
/hbbtv.+maple;(\d+)/i
|
|
27718
27718
|
],
|
|
27719
|
-
[[p, /^/, "SmartTV"], [
|
|
27719
|
+
[[p, /^/, "SmartTV"], [b, ae], [g, v]],
|
|
27720
27720
|
[
|
|
27721
27721
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
27722
27722
|
// LG SmartTV
|
|
27723
27723
|
],
|
|
27724
|
-
[[
|
|
27724
|
+
[[b, U], [g, v]],
|
|
27725
27725
|
[
|
|
27726
27726
|
/(apple) ?tv/i
|
|
27727
27727
|
// Apple TV
|
|
27728
27728
|
],
|
|
27729
|
-
[
|
|
27729
|
+
[b, [p, M + " TV"], [g, v]],
|
|
27730
27730
|
[
|
|
27731
27731
|
/crkey/i
|
|
27732
27732
|
// Google Chromecast
|
|
27733
27733
|
],
|
|
27734
|
-
[[p, G + "cast"], [
|
|
27734
|
+
[[p, G + "cast"], [b, ce], [g, v]],
|
|
27735
27735
|
[
|
|
27736
27736
|
/droid.+aft(\w+)( bui|\))/i
|
|
27737
27737
|
// Fire TV
|
|
27738
27738
|
],
|
|
27739
|
-
[p, [
|
|
27739
|
+
[p, [b, T], [g, v]],
|
|
27740
27740
|
[
|
|
27741
27741
|
/(shield \w+ tv)/i
|
|
27742
27742
|
// Nvidia Shield TV
|
|
27743
27743
|
],
|
|
27744
|
-
[p, [
|
|
27744
|
+
[p, [b, $], [g, v]],
|
|
27745
27745
|
[
|
|
27746
27746
|
/\(dtv[\);].+(aquos)/i,
|
|
27747
27747
|
/(aquos-tv[\w ]+)\)/i
|
|
27748
27748
|
// Sharp
|
|
27749
27749
|
],
|
|
27750
|
-
[p, [
|
|
27750
|
+
[p, [b, te], [g, v]],
|
|
27751
27751
|
[
|
|
27752
27752
|
/(bravia[\w ]+)( bui|\))/i
|
|
27753
27753
|
// Sony
|
|
27754
27754
|
],
|
|
27755
|
-
[p, [
|
|
27755
|
+
[p, [b, X], [g, v]],
|
|
27756
27756
|
[
|
|
27757
27757
|
/(mi(tv|box)-?\w+) bui/i
|
|
27758
27758
|
// Xiaomi
|
|
27759
27759
|
],
|
|
27760
|
-
[p, [
|
|
27760
|
+
[p, [b, ye], [g, v]],
|
|
27761
27761
|
[
|
|
27762
27762
|
/Hbbtv.*(technisat) (.*);/i
|
|
27763
27763
|
// TechniSAT
|
|
27764
27764
|
],
|
|
27765
|
-
[
|
|
27765
|
+
[b, p, [g, v]],
|
|
27766
27766
|
[
|
|
27767
27767
|
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
27768
27768
|
// Roku
|
|
27769
27769
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
27770
27770
|
// HbbTV devices
|
|
27771
27771
|
],
|
|
27772
|
-
[[
|
|
27772
|
+
[[b, Z], [p, Z], [g, v]],
|
|
27773
27773
|
[
|
|
27774
27774
|
// SmartTV from Unidentified Vendors
|
|
27775
27775
|
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
@@ -27788,22 +27788,22 @@ var k1 = { exports: {} };
|
|
|
27788
27788
|
/(nintendo) ([wids3utch]+)/i
|
|
27789
27789
|
// Nintendo
|
|
27790
27790
|
],
|
|
27791
|
-
[
|
|
27791
|
+
[b, p, [g, C]],
|
|
27792
27792
|
[
|
|
27793
27793
|
/droid.+; (shield)( bui|\))/i
|
|
27794
27794
|
// Nvidia Portable
|
|
27795
27795
|
],
|
|
27796
|
-
[p, [
|
|
27796
|
+
[p, [b, $], [g, C]],
|
|
27797
27797
|
[
|
|
27798
27798
|
/(playstation \w+)/i
|
|
27799
27799
|
// Playstation
|
|
27800
27800
|
],
|
|
27801
|
-
[p, [
|
|
27801
|
+
[p, [b, X], [g, C]],
|
|
27802
27802
|
[
|
|
27803
27803
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
27804
27804
|
// Microsoft Xbox
|
|
27805
27805
|
],
|
|
27806
|
-
[p, [
|
|
27806
|
+
[p, [b, ie], [g, C]],
|
|
27807
27807
|
[
|
|
27808
27808
|
///////////////////
|
|
27809
27809
|
// WEARABLES
|
|
@@ -27811,48 +27811,48 @@ var k1 = { exports: {} };
|
|
|
27811
27811
|
/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
|
|
27812
27812
|
// Samsung Galaxy Watch
|
|
27813
27813
|
],
|
|
27814
|
-
[p, [
|
|
27814
|
+
[p, [b, ae], [g, E]],
|
|
27815
27815
|
[
|
|
27816
27816
|
/((pebble))app/i,
|
|
27817
27817
|
// Pebble
|
|
27818
27818
|
/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i
|
|
27819
27819
|
// Asus ZenWatch / LG Watch / Pixel Watch
|
|
27820
27820
|
],
|
|
27821
|
-
[
|
|
27821
|
+
[b, p, [g, E]],
|
|
27822
27822
|
[
|
|
27823
27823
|
/(ow(?:19|20)?we?[1-3]{1,3})/i
|
|
27824
27824
|
// Oppo Watch
|
|
27825
27825
|
],
|
|
27826
|
-
[p, [
|
|
27826
|
+
[p, [b, z], [g, E]],
|
|
27827
27827
|
[
|
|
27828
27828
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
27829
27829
|
// Apple Watch
|
|
27830
27830
|
],
|
|
27831
|
-
[p, [
|
|
27831
|
+
[p, [b, M], [g, E]],
|
|
27832
27832
|
[
|
|
27833
27833
|
/(opwwe\d{3})/i
|
|
27834
27834
|
// OnePlus Watch
|
|
27835
27835
|
],
|
|
27836
|
-
[p, [
|
|
27836
|
+
[p, [b, V], [g, E]],
|
|
27837
27837
|
[
|
|
27838
27838
|
/(moto 360)/i
|
|
27839
27839
|
// Motorola 360
|
|
27840
27840
|
],
|
|
27841
|
-
[p, [
|
|
27841
|
+
[p, [b, re], [g, E]],
|
|
27842
27842
|
[
|
|
27843
27843
|
/(smartwatch 3)/i
|
|
27844
27844
|
// Sony SmartWatch
|
|
27845
27845
|
],
|
|
27846
|
-
[p, [
|
|
27846
|
+
[p, [b, X], [g, E]],
|
|
27847
27847
|
[
|
|
27848
27848
|
/(g watch r)/i
|
|
27849
27849
|
// LG G Watch R
|
|
27850
27850
|
],
|
|
27851
|
-
[p, [
|
|
27851
|
+
[p, [b, U], [g, E]],
|
|
27852
27852
|
[
|
|
27853
27853
|
/droid.+; (wt63?0{2,3})\)/i
|
|
27854
27854
|
],
|
|
27855
|
-
[p, [
|
|
27855
|
+
[p, [b, F], [g, E]],
|
|
27856
27856
|
[
|
|
27857
27857
|
///////////////////
|
|
27858
27858
|
// XR
|
|
@@ -27860,17 +27860,17 @@ var k1 = { exports: {} };
|
|
|
27860
27860
|
/droid.+; (glass) \d/i
|
|
27861
27861
|
// Google Glass
|
|
27862
27862
|
],
|
|
27863
|
-
[p, [
|
|
27863
|
+
[p, [b, ce], [g, E]],
|
|
27864
27864
|
[
|
|
27865
27865
|
/(pico) (4|neo3(?: link|pro)?)/i
|
|
27866
27866
|
// Pico
|
|
27867
27867
|
],
|
|
27868
|
-
[
|
|
27868
|
+
[b, p, [g, E]],
|
|
27869
27869
|
[
|
|
27870
27870
|
/; (quest( \d| pro)?)/i
|
|
27871
27871
|
// Oculus Quest
|
|
27872
27872
|
],
|
|
27873
|
-
[p, [
|
|
27873
|
+
[p, [b, ke], [g, E]],
|
|
27874
27874
|
[
|
|
27875
27875
|
///////////////////
|
|
27876
27876
|
// EMBEDDED
|
|
@@ -27878,17 +27878,17 @@ var k1 = { exports: {} };
|
|
|
27878
27878
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
27879
27879
|
// Tesla
|
|
27880
27880
|
],
|
|
27881
|
-
[
|
|
27881
|
+
[b, [g, R]],
|
|
27882
27882
|
[
|
|
27883
27883
|
/(aeobc)\b/i
|
|
27884
27884
|
// Echo Dot
|
|
27885
27885
|
],
|
|
27886
|
-
[p, [
|
|
27886
|
+
[p, [b, T], [g, R]],
|
|
27887
27887
|
[
|
|
27888
27888
|
/(homepod).+mac os/i
|
|
27889
27889
|
// Apple HomePod
|
|
27890
27890
|
],
|
|
27891
|
-
[p, [
|
|
27891
|
+
[p, [b, M], [g, R]],
|
|
27892
27892
|
[
|
|
27893
27893
|
/windows iot/i
|
|
27894
27894
|
],
|
|
@@ -27920,24 +27920,24 @@ var k1 = { exports: {} };
|
|
|
27920
27920
|
/droid .+?; ([\w\. -]+)( bui|\))/i
|
|
27921
27921
|
// Generic Android Device
|
|
27922
27922
|
],
|
|
27923
|
-
[p, [
|
|
27923
|
+
[p, [b, "Generic"]]
|
|
27924
27924
|
],
|
|
27925
27925
|
engine: [
|
|
27926
27926
|
[
|
|
27927
27927
|
/windows.+ edge\/([\w\.]+)/i
|
|
27928
27928
|
// EdgeHTML
|
|
27929
27929
|
],
|
|
27930
|
-
[
|
|
27930
|
+
[y, [h, ee + "HTML"]],
|
|
27931
27931
|
[
|
|
27932
27932
|
/(arkweb)\/([\w\.]+)/i
|
|
27933
27933
|
// ArkWeb
|
|
27934
27934
|
],
|
|
27935
|
-
[h,
|
|
27935
|
+
[h, y],
|
|
27936
27936
|
[
|
|
27937
27937
|
/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i
|
|
27938
27938
|
// Blink
|
|
27939
27939
|
],
|
|
27940
|
-
[
|
|
27940
|
+
[y, [h, "Blink"]],
|
|
27941
27941
|
[
|
|
27942
27942
|
/(presto)\/([\w\.]+)/i,
|
|
27943
27943
|
// Presto
|
|
@@ -27952,7 +27952,7 @@ var k1 = { exports: {} };
|
|
|
27952
27952
|
/\b(libweb)/i
|
|
27953
27953
|
// LibWeb
|
|
27954
27954
|
],
|
|
27955
|
-
[h,
|
|
27955
|
+
[h, y],
|
|
27956
27956
|
[
|
|
27957
27957
|
/ladybird\//i
|
|
27958
27958
|
],
|
|
@@ -27961,7 +27961,7 @@ var k1 = { exports: {} };
|
|
|
27961
27961
|
/rv\:([\w\.]{1,9})\b.+(gecko)/i
|
|
27962
27962
|
// Gecko
|
|
27963
27963
|
],
|
|
27964
|
-
[
|
|
27964
|
+
[y, h]
|
|
27965
27965
|
],
|
|
27966
27966
|
os: [
|
|
27967
27967
|
[
|
|
@@ -27969,19 +27969,19 @@ var k1 = { exports: {} };
|
|
|
27969
27969
|
/microsoft (windows) (vista|xp)/i
|
|
27970
27970
|
// Windows (iTunes)
|
|
27971
27971
|
],
|
|
27972
|
-
[h,
|
|
27972
|
+
[h, y],
|
|
27973
27973
|
[
|
|
27974
27974
|
/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i
|
|
27975
27975
|
// Windows Phone
|
|
27976
27976
|
],
|
|
27977
|
-
[h, [
|
|
27977
|
+
[h, [y, ne, Te]],
|
|
27978
27978
|
[
|
|
27979
27979
|
/windows nt 6\.2; (arm)/i,
|
|
27980
27980
|
// Windows RT
|
|
27981
27981
|
/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,
|
|
27982
27982
|
/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i
|
|
27983
27983
|
],
|
|
27984
|
-
[[
|
|
27984
|
+
[[y, ne, Te], [h, "Windows"]],
|
|
27985
27985
|
[
|
|
27986
27986
|
// iOS/macOS
|
|
27987
27987
|
/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -27989,66 +27989,66 @@ var k1 = { exports: {} };
|
|
|
27989
27989
|
/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
|
|
27990
27990
|
/cfnetwork\/.+darwin/i
|
|
27991
27991
|
],
|
|
27992
|
-
[[
|
|
27992
|
+
[[y, /_/g, "."], [h, "iOS"]],
|
|
27993
27993
|
[
|
|
27994
27994
|
/(mac os x) ?([\w\. ]*)/i,
|
|
27995
27995
|
/(macintosh|mac_powerpc\b)(?!.+haiku)/i
|
|
27996
27996
|
// Mac OS
|
|
27997
27997
|
],
|
|
27998
|
-
[[h, Je], [
|
|
27998
|
+
[[h, Je], [y, /_/g, "."]],
|
|
27999
27999
|
[
|
|
28000
28000
|
// Mobile OSes
|
|
28001
28001
|
/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i
|
|
28002
28002
|
// Android-x86/HarmonyOS
|
|
28003
28003
|
],
|
|
28004
|
-
[
|
|
28004
|
+
[y, h],
|
|
28005
28005
|
[
|
|
28006
28006
|
/(ubuntu) ([\w\.]+) like android/i
|
|
28007
28007
|
// Ubuntu Touch
|
|
28008
28008
|
],
|
|
28009
|
-
[[h, /(.+)/, "$1 Touch"],
|
|
28009
|
+
[[h, /(.+)/, "$1 Touch"], y],
|
|
28010
28010
|
[
|
|
28011
28011
|
// Android/Blackberry/WebOS/QNX/Bada/RIM/KaiOS/Maemo/MeeGo/S40/Sailfish OS/OpenHarmony/Tizen
|
|
28012
28012
|
/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i
|
|
28013
28013
|
],
|
|
28014
|
-
[h,
|
|
28014
|
+
[h, y],
|
|
28015
28015
|
[
|
|
28016
28016
|
/\(bb(10);/i
|
|
28017
28017
|
// BlackBerry 10
|
|
28018
28018
|
],
|
|
28019
|
-
[
|
|
28019
|
+
[y, [h, x]],
|
|
28020
28020
|
[
|
|
28021
28021
|
/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i
|
|
28022
28022
|
// Symbian
|
|
28023
28023
|
],
|
|
28024
|
-
[
|
|
28024
|
+
[y, [h, "Symbian"]],
|
|
28025
28025
|
[
|
|
28026
28026
|
/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
|
|
28027
28027
|
// Firefox OS
|
|
28028
28028
|
],
|
|
28029
|
-
[
|
|
28029
|
+
[y, [h, se + " OS"]],
|
|
28030
28030
|
[
|
|
28031
28031
|
/web0s;.+rt(tv)/i,
|
|
28032
28032
|
/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i
|
|
28033
28033
|
// WebOS
|
|
28034
28034
|
],
|
|
28035
|
-
[
|
|
28035
|
+
[y, [h, "webOS"]],
|
|
28036
28036
|
[
|
|
28037
28037
|
/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i
|
|
28038
28038
|
// watchOS
|
|
28039
28039
|
],
|
|
28040
|
-
[
|
|
28040
|
+
[y, [h, "watchOS"]],
|
|
28041
28041
|
[
|
|
28042
28042
|
// Google Chromecast
|
|
28043
28043
|
/crkey\/([\d\.]+)/i
|
|
28044
28044
|
// Google Chromecast
|
|
28045
28045
|
],
|
|
28046
|
-
[
|
|
28046
|
+
[y, [h, G + "cast"]],
|
|
28047
28047
|
[
|
|
28048
28048
|
/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i
|
|
28049
28049
|
// Chromium OS
|
|
28050
28050
|
],
|
|
28051
|
-
[[h, J],
|
|
28051
|
+
[[h, J], y],
|
|
28052
28052
|
[
|
|
28053
28053
|
// Smart TVs
|
|
28054
28054
|
/panasonic;(viera)/i,
|
|
@@ -28080,12 +28080,12 @@ var k1 = { exports: {} };
|
|
|
28080
28080
|
/(haiku) (\w+)/i
|
|
28081
28081
|
// Haiku
|
|
28082
28082
|
],
|
|
28083
|
-
[h,
|
|
28083
|
+
[h, y],
|
|
28084
28084
|
[
|
|
28085
28085
|
/(sunos) ?([\w\.\d]*)/i
|
|
28086
28086
|
// Solaris
|
|
28087
28087
|
],
|
|
28088
|
-
[[h, "Solaris"],
|
|
28088
|
+
[[h, "Solaris"], y],
|
|
28089
28089
|
[
|
|
28090
28090
|
/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,
|
|
28091
28091
|
// Solaris
|
|
@@ -28096,7 +28096,7 @@ var k1 = { exports: {} };
|
|
|
28096
28096
|
/(unix) ?([\w\.]*)/i
|
|
28097
28097
|
// UNIX
|
|
28098
28098
|
],
|
|
28099
|
-
[h,
|
|
28099
|
+
[h, y]
|
|
28100
28100
|
]
|
|
28101
28101
|
}, De = function(be, Ee) {
|
|
28102
28102
|
if (typeof be === u && (Ee = be, be = a), !(this instanceof De))
|
|
@@ -28104,19 +28104,19 @@ var k1 = { exports: {} };
|
|
|
28104
28104
|
var ue = typeof n !== c && n.navigator ? n.navigator : a, Oe = be || (ue && ue.userAgent ? ue.userAgent : r), Nt = ue && ue.userAgentData ? ue.userAgentData : a, qt = Ee ? ut(Fe, Ee) : Fe, Pe = ue && ue.userAgent == Oe;
|
|
28105
28105
|
return this.getBrowser = function() {
|
|
28106
28106
|
var de = {};
|
|
28107
|
-
return de[h] = a, de[
|
|
28107
|
+
return de[h] = a, de[y] = a, D.call(de, Oe, qt.browser), de[f] = Y(de[y]), Pe && ue && ue.brave && typeof ue.brave.isBrave == s && (de[h] = "Brave"), de;
|
|
28108
28108
|
}, this.getCPU = function() {
|
|
28109
28109
|
var de = {};
|
|
28110
28110
|
return de[P] = a, D.call(de, Oe, qt.cpu), de;
|
|
28111
28111
|
}, this.getDevice = function() {
|
|
28112
28112
|
var de = {};
|
|
28113
|
-
return de[
|
|
28113
|
+
return de[b] = a, de[p] = a, de[g] = a, D.call(de, Oe, qt.device), Pe && !de[g] && Nt && Nt.mobile && (de[g] = A), Pe && de[p] == "Macintosh" && ue && typeof ue.standalone !== c && ue.maxTouchPoints && ue.maxTouchPoints > 2 && (de[p] = "iPad", de[g] = k), de;
|
|
28114
28114
|
}, this.getEngine = function() {
|
|
28115
28115
|
var de = {};
|
|
28116
|
-
return de[h] = a, de[
|
|
28116
|
+
return de[h] = a, de[y] = a, D.call(de, Oe, qt.engine), de;
|
|
28117
28117
|
}, this.getOS = function() {
|
|
28118
28118
|
var de = {};
|
|
28119
|
-
return de[h] = a, de[
|
|
28119
|
+
return de[h] = a, de[y] = a, D.call(de, Oe, qt.os), Pe && !de[h] && Nt && Nt.platform && Nt.platform != "Unknown" && (de[h] = Nt.platform.replace(/chrome os/i, J).replace(/macos/i, Je)), de;
|
|
28120
28120
|
}, this.getResult = function() {
|
|
28121
28121
|
return {
|
|
28122
28122
|
ua: this.getUA(),
|
|
@@ -28132,7 +28132,7 @@ var k1 = { exports: {} };
|
|
|
28132
28132
|
return Oe = typeof de === d && de.length > B ? Z(de, B) : de, this;
|
|
28133
28133
|
}, this.setUA(Oe), this;
|
|
28134
28134
|
};
|
|
28135
|
-
De.VERSION = i, De.BROWSER = S([h,
|
|
28135
|
+
De.VERSION = i, De.BROWSER = S([h, y, f]), De.CPU = S([P]), De.DEVICE = S([p, b, g, C, A, v, k, E, R]), De.ENGINE = De.OS = S([h, y]), e.exports && (t = e.exports = De), t.UAParser = De;
|
|
28136
28136
|
var st = typeof n !== c && (n.jQuery || n.Zepto);
|
|
28137
28137
|
if (st && !st.ua) {
|
|
28138
28138
|
var Xe = new De();
|
|
@@ -28192,38 +28192,38 @@ function HZ() {
|
|
|
28192
28192
|
}
|
|
28193
28193
|
const $a = 6;
|
|
28194
28194
|
function FZ() {
|
|
28195
|
-
const { t: e } = Ae(), { register: t, setValue: n, formState: a } = Rt(),
|
|
28195
|
+
const { t: e } = Ae(), { register: t, setValue: n, formState: a } = Rt(), i = Le(), [r, o] = ot(Array($a).fill("")), s = rt([]);
|
|
28196
28196
|
t("verificationCode", {
|
|
28197
28197
|
required: e("validation.requiredField"),
|
|
28198
|
-
validate: (
|
|
28198
|
+
validate: (g) => /^\d{6}$/.test(g) || e("blik.invalidCode")
|
|
28199
28199
|
});
|
|
28200
|
-
const
|
|
28201
|
-
const
|
|
28202
|
-
n("verificationCode",
|
|
28200
|
+
const c = (g) => {
|
|
28201
|
+
const b = g.join("");
|
|
28202
|
+
n("verificationCode", b, {
|
|
28203
28203
|
shouldValidate: a.isSubmitted
|
|
28204
28204
|
});
|
|
28205
|
-
},
|
|
28206
|
-
var
|
|
28207
|
-
const y =
|
|
28208
|
-
|
|
28209
|
-
},
|
|
28210
|
-
var y,
|
|
28211
|
-
if (
|
|
28212
|
-
const
|
|
28213
|
-
|
|
28214
|
-
} else /^\d$/.test(
|
|
28215
|
-
},
|
|
28216
|
-
var
|
|
28217
|
-
|
|
28218
|
-
const
|
|
28219
|
-
if (!
|
|
28220
|
-
const y = [...
|
|
28221
|
-
for (let
|
|
28222
|
-
y[
|
|
28223
|
-
|
|
28224
|
-
const
|
|
28225
|
-
(
|
|
28226
|
-
},
|
|
28205
|
+
}, u = (g, b) => {
|
|
28206
|
+
var C;
|
|
28207
|
+
const y = b.replace(/\D/g, "").slice(-1), P = [...r];
|
|
28208
|
+
P[g] = y, o(P), c(P), y && g < $a - 1 && ((C = s.current[g + 1]) == null || C.focus());
|
|
28209
|
+
}, d = (g, b) => {
|
|
28210
|
+
var y, P;
|
|
28211
|
+
if (b.key === "Backspace" && !r[g] && g > 0) {
|
|
28212
|
+
const C = [...r];
|
|
28213
|
+
C[g - 1] = "", o(C), c(C), (y = s.current[g - 1]) == null || y.focus();
|
|
28214
|
+
} else /^\d$/.test(b.key) && r[g] ? (b.preventDefault(), u(g, b.key)) : b.key === "Enter" && r.every((C) => C) && (b.preventDefault(), (P = i._submitPaymentButton) == null || P.onClick());
|
|
28215
|
+
}, f = (g) => {
|
|
28216
|
+
var C;
|
|
28217
|
+
g.preventDefault();
|
|
28218
|
+
const b = g.clipboardData.getData("text").replace(/\D/g, "").slice(0, $a);
|
|
28219
|
+
if (!b) return;
|
|
28220
|
+
const y = [...r];
|
|
28221
|
+
for (let A = 0; A < b.length; A++)
|
|
28222
|
+
y[A] = b[A];
|
|
28223
|
+
o(y), c(y);
|
|
28224
|
+
const P = y.findIndex((A) => !A);
|
|
28225
|
+
(C = s.current[P >= 0 ? P : $a - 1]) == null || C.focus();
|
|
28226
|
+
}, p = a.errors.verificationCode, h = a.isSubmitted && p;
|
|
28227
28227
|
return /* @__PURE__ */ m("div", { className: "col-span-12", children: /* @__PURE__ */ m("div", { className: "text-field text-field-verificationCode mb-6 flex flex-col items-center", children: /* @__PURE__ */ N("div", { className: "inline-flex flex-col", children: [
|
|
28228
28228
|
/* @__PURE__ */ m("label", { id: "blik-code-label", className: "block mb-1 text-sm", children: e("blik.verificationCode") }),
|
|
28229
28229
|
/* @__PURE__ */ m(
|
|
@@ -28231,37 +28231,37 @@ function FZ() {
|
|
|
28231
28231
|
{
|
|
28232
28232
|
role: "group",
|
|
28233
28233
|
"aria-labelledby": "blik-code-label",
|
|
28234
|
-
className: `text-input !w-auto flex items-center gap-2 px-3 pb-2 pt-1.5 ${
|
|
28235
|
-
onPaste:
|
|
28236
|
-
children:
|
|
28234
|
+
className: `text-input !w-auto flex items-center gap-2 px-3 pb-2 pt-1.5 ${h ? "error" : ""}`,
|
|
28235
|
+
onPaste: f,
|
|
28236
|
+
children: r.map((g, b) => /* @__PURE__ */ m(
|
|
28237
28237
|
"input",
|
|
28238
28238
|
{
|
|
28239
28239
|
ref: (y) => {
|
|
28240
|
-
|
|
28240
|
+
s.current[b] = y;
|
|
28241
28241
|
},
|
|
28242
28242
|
type: "text",
|
|
28243
28243
|
inputMode: "numeric",
|
|
28244
|
-
"aria-label": `${e("blik.verificationCode")} ${
|
|
28245
|
-
autoComplete:
|
|
28244
|
+
"aria-label": `${e("blik.verificationCode")} ${b + 1} / ${$a}`,
|
|
28245
|
+
autoComplete: b === 0 ? "one-time-code" : "off",
|
|
28246
28246
|
maxLength: 1,
|
|
28247
|
-
value:
|
|
28248
|
-
onChange: (y) =>
|
|
28247
|
+
value: g,
|
|
28248
|
+
onChange: (y) => u(b, y.target.value),
|
|
28249
28249
|
onMouseDown: (y) => {
|
|
28250
|
-
var
|
|
28251
|
-
if (!
|
|
28252
|
-
const
|
|
28253
|
-
|
|
28250
|
+
var P;
|
|
28251
|
+
if (!g) {
|
|
28252
|
+
const C = r.findIndex((A) => !A);
|
|
28253
|
+
C >= 0 && C !== b && (y.preventDefault(), (P = s.current[C]) == null || P.focus());
|
|
28254
28254
|
}
|
|
28255
28255
|
},
|
|
28256
28256
|
onFocus: (y) => y.target.select(),
|
|
28257
|
-
onKeyDown: (y) =>
|
|
28257
|
+
onKeyDown: (y) => d(b, y),
|
|
28258
28258
|
className: "w-8 text-center text-lg bg-transparent border-0 border-b-2 border-gray-300 rounded-none outline-none focus:border-gray-900 dark:focus:border-gray-200 dark:text-gray-200"
|
|
28259
28259
|
},
|
|
28260
|
-
`blik-digit-${
|
|
28260
|
+
`blik-digit-${b}`
|
|
28261
28261
|
))
|
|
28262
28262
|
}
|
|
28263
28263
|
),
|
|
28264
|
-
|
|
28264
|
+
h && /* @__PURE__ */ m("div", { className: "form-helper-text error", children: p == null ? void 0 : p.message })
|
|
28265
28265
|
] }) }) });
|
|
28266
28266
|
}
|
|
28267
28267
|
const GZ = Be(() => {
|
|
@@ -28453,7 +28453,7 @@ const GZ = Be(() => {
|
|
|
28453
28453
|
const a = e.find((r) => r.id === t), { Component: i } = a;
|
|
28454
28454
|
return /* @__PURE__ */ m(ZZ, { rootStore: n, children: /* @__PURE__ */ m(xd, { className: `payment-method-form ${t}`, children: /* @__PURE__ */ m(i, {}) }) });
|
|
28455
28455
|
}, YZ = () => {
|
|
28456
|
-
const e =
|
|
28456
|
+
const e = Le(), [t, n] = ot(
|
|
28457
28457
|
e._submitPaymentButton
|
|
28458
28458
|
);
|
|
28459
28459
|
Ke(() => {
|
|
@@ -28571,7 +28571,7 @@ const eY = ({
|
|
|
28571
28571
|
children: /* @__PURE__ */ m(JZ, { width: "100", height: "40" })
|
|
28572
28572
|
}
|
|
28573
28573
|
), Dd = ({ paymentMethodId: e }) => {
|
|
28574
|
-
const { label: t, onClick: n, isSubmitting: a } = YZ(), { _analytics: i } =
|
|
28574
|
+
const { label: t, onClick: n, isSubmitting: a } = YZ(), { _analytics: i } = Le(), r = () => {
|
|
28575
28575
|
i.trackElementAction(
|
|
28576
28576
|
"submit-payment-button",
|
|
28577
28577
|
e,
|
|
@@ -28613,7 +28613,7 @@ const eY = ({
|
|
|
28613
28613
|
)
|
|
28614
28614
|
] });
|
|
28615
28615
|
}, Vd = (e) => {
|
|
28616
|
-
const { _analytics: t } =
|
|
28616
|
+
const { _analytics: t } = Le(), { openFirstPaymentMethod: n } = Ne(), [a, i] = ot(
|
|
28617
28617
|
n ? 0 : null
|
|
28618
28618
|
);
|
|
28619
28619
|
return {
|
|
@@ -28750,7 +28750,7 @@ const eY = ({
|
|
|
28750
28750
|
a
|
|
28751
28751
|
)) });
|
|
28752
28752
|
}, sY = ({ paymentMethods: e }) => {
|
|
28753
|
-
var
|
|
28753
|
+
var y;
|
|
28754
28754
|
const t = Un.t, { selected: n, setSelected: a, onMouseEnter: i } = Vd(e), { width: r } = aY(), o = r > 430 ? 3 : 2, [s, c] = ot(e), u = s.slice(0, o), d = s.slice(o), f = n !== null && s[n].id, p = (P) => {
|
|
28755
28755
|
const C = s.findIndex((k) => k.name === P.target.value), A = [
|
|
28756
28756
|
...s.slice(0, o - 1),
|
|
@@ -28760,7 +28760,7 @@ const eY = ({
|
|
|
28760
28760
|
...s.slice(C + 1, s.length)
|
|
28761
28761
|
];
|
|
28762
28762
|
c(A), a(o - 1);
|
|
28763
|
-
}, h = (
|
|
28763
|
+
}, h = (y = s[n]) == null ? void 0 : y.name, g = rt(null), b = (P) => {
|
|
28764
28764
|
var C;
|
|
28765
28765
|
(P.key === " " || P.key === "Enter") && (P.preventDefault(), (C = g.current) == null || C.focus());
|
|
28766
28766
|
};
|
|
@@ -28798,7 +28798,7 @@ const eY = ({
|
|
|
28798
28798
|
"aria-haspopup": "listbox",
|
|
28799
28799
|
"aria-checked": !1,
|
|
28800
28800
|
tabIndex: 0,
|
|
28801
|
-
onKeyDown:
|
|
28801
|
+
onKeyDown: b,
|
|
28802
28802
|
children: [
|
|
28803
28803
|
/* @__PURE__ */ m(oY, { list: d }),
|
|
28804
28804
|
/* @__PURE__ */ N(
|
|
@@ -28885,7 +28885,7 @@ const uY = ({
|
|
|
28885
28885
|
...n
|
|
28886
28886
|
}, a) => /* @__PURE__ */ l.createElement("svg", { height: 24, width: 24, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true", ref: a, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })), Hd = oe(uY), dY = Be(
|
|
28887
28887
|
({ children: e }) => {
|
|
28888
|
-
const t =
|
|
28888
|
+
const t = Le();
|
|
28889
28889
|
return /* @__PURE__ */ N(ze, { children: [
|
|
28890
28890
|
t._overlayContent,
|
|
28891
28891
|
e
|
|
@@ -28928,7 +28928,7 @@ const uY = ({
|
|
|
28928
28928
|
),
|
|
28929
28929
|
e
|
|
28930
28930
|
] }), pY = () => {
|
|
28931
|
-
const { _transactionConfirmation: e } =
|
|
28931
|
+
const { _transactionConfirmation: e } = Le(), { t } = Ae();
|
|
28932
28932
|
return /* @__PURE__ */ m(Nn, { onClose: () => e.onCloseCancel(), children: /* @__PURE__ */ N("div", { className: "scan-code-modal scan-code-modal--blik flex flex-col items-center text-center mt-10", children: [
|
|
28933
28933
|
/* @__PURE__ */ m(Ld, { className: "scan-code-modal__icon h-20 w-20" }),
|
|
28934
28934
|
/* @__PURE__ */ m("div", { className: "scan-code-modal__instruction max-w-[300px] text-sm text-center my-8 mx-8 dark:text-gray-200", children: t("blik.modalInstruction") })
|
|
@@ -31582,14 +31582,14 @@ function m3({
|
|
|
31582
31582
|
);
|
|
31583
31583
|
}
|
|
31584
31584
|
function gte() {
|
|
31585
|
-
const { _scanCode: e } =
|
|
31585
|
+
const { _scanCode: e } = Le();
|
|
31586
31586
|
Ke(() => (e.lockOnPaymentResult = !0, () => {
|
|
31587
31587
|
e.lockOnPaymentResult = !1;
|
|
31588
31588
|
}), [e]);
|
|
31589
31589
|
}
|
|
31590
31590
|
function eo() {
|
|
31591
31591
|
var c, u;
|
|
31592
|
-
const { selectedLocale: e, options: t, _authorizationStore: n } =
|
|
31592
|
+
const { selectedLocale: e, options: t, _authorizationStore: n } = Le(), { paymentSession: a } = t, i = ((c = n.paymentAuthResponse) == null ? void 0 : c.status) === "AUTHENTICATION_PENDING" ? (u = n.paymentAuthResponse.data) == null ? void 0 : u.initialPaymentCharge : null, r = (i == null ? void 0 : i.amount) || (a.recurring && a.initialPaymentCharge ? a.initialPaymentCharge.amount : a.amount);
|
|
31593
31593
|
if (a.recurring && !a.initialPaymentCharge && !(i != null && i.amount))
|
|
31594
31594
|
return null;
|
|
31595
31595
|
if (!r)
|
|
@@ -31617,7 +31617,7 @@ function kte(e) {
|
|
|
31617
31617
|
);
|
|
31618
31618
|
}
|
|
31619
31619
|
const Ate = () => {
|
|
31620
|
-
const { _scanCode: e, options: t } =
|
|
31620
|
+
const { _scanCode: e, options: t } = Le(), { t: n } = Ae();
|
|
31621
31621
|
gte();
|
|
31622
31622
|
const a = eo();
|
|
31623
31623
|
if (Ke(() => {
|
|
@@ -31705,7 +31705,7 @@ function to(e) {
|
|
|
31705
31705
|
}
|
|
31706
31706
|
const Ete = () => {
|
|
31707
31707
|
var r;
|
|
31708
|
-
const { _scanCode: e } =
|
|
31708
|
+
const { _scanCode: e } = Le(), [t, n] = ot(!1), a = to((r = e.details) == null ? void 0 : r.scanBy);
|
|
31709
31709
|
if (!e.details)
|
|
31710
31710
|
return null;
|
|
31711
31711
|
const i = e.details;
|
|
@@ -31749,7 +31749,7 @@ const Ete = () => {
|
|
|
31749
31749
|
titleId: t,
|
|
31750
31750
|
...n
|
|
31751
31751
|
}, a) => /* @__PURE__ */ l.createElement("svg", { width: 35, height: 24, viewBox: "0 0 35 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("g", { id: "Size=24-NuPay" }, /* @__PURE__ */ l.createElement("rect", { id: "BASE", x: 0.5, y: 0.5, width: 34, height: 23, rx: 3.5, fill: "white", stroke: "#E2E8F0" }), /* @__PURE__ */ l.createElement("svg", { x: 4, y: 4, width: 27, height: 16, viewBox: "0 0 44 24", ref: a, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { d: "M0.0243654 9.87682C-0.0304567 10.9469 0.0243654 12.042 0.0243654 13.1171V23.4431H5.83551V13.9822C5.83551 11.0319 5.81557 8.41669 5.83551 7.88164C5.94515 5.33141 6.64289 3.65626 7.95364 2.29613C7.85894 2.29613 7.7493 2.28613 7.65461 2.28613C4.82379 2.28613 2.16741 3.90628 0.8766 6.40651C0.293492 7.51161 0.0891551 8.69171 0.0243654 9.88182V9.87682Z", fill: "#820AD1" }), /* @__PURE__ */ l.createElement("path", { d: "M13.3499 0C11.177 0 9.323 0.845077 7.9375 2.29521C12.2635 2.29521 15.0743 5.23547 15.2239 9.9109C15.2538 10.981 15.2687 16.7315 15.2687 16.7315V23.4471H21.0799V14.3763C21.0799 11.6311 21.0998 9.26084 20.9054 7.62069C20.3771 3.06028 17.5712 0.00500045 13.3499 0.00500045V0Z", fill: "#820AD1" }), /* @__PURE__ */ l.createElement("path", { d: "M43.9757 14.1248C44.0305 13.0547 43.9757 11.9596 43.9757 10.8845V0.558594H38.1645V10.0195C38.1645 12.9697 38.1844 15.585 38.1645 16.12C38.0549 18.6702 37.3571 20.3454 36.0464 21.7055C36.1411 21.7055 36.2507 21.7155 36.3454 21.7155C39.1762 21.7155 41.8326 20.0954 43.1234 17.5951C43.7065 16.49 43.9109 15.3199 43.9757 14.1198V14.1248Z", fill: "#820AD1" }), /* @__PURE__ */ l.createElement("path", { d: "M30.6536 24.0007C32.8265 24.0007 34.6805 23.1556 36.066 21.7055C31.74 21.7055 28.9291 18.7652 28.7796 14.0898C28.7497 13.0197 28.7248 10.3595 28.7248 7.2692V0.558594L22.9137 0.568595V9.63942C22.9137 12.3847 22.8937 14.7549 23.0881 16.395C23.6264 20.9554 26.4372 24.0007 30.6536 24.0007Z", fill: "#820AD1" })))), Pte = oe(Ste), wte = () => {
|
|
31752
|
-
const { _transactionConfirmation: e } =
|
|
31752
|
+
const { _transactionConfirmation: e } = Le(), { t } = Ae();
|
|
31753
31753
|
return /* @__PURE__ */ m(Nn, { onClose: () => e.onCloseCancel(), children: /* @__PURE__ */ N("div", { className: "scan-code-modal scan-code-modal--nupay flex flex-col items-center text-center mt-10", children: [
|
|
31754
31754
|
/* @__PURE__ */ m(Pte, { className: "scan-code-modal__icon h-20 w-20" }),
|
|
31755
31755
|
/* @__PURE__ */ m("div", { className: "scan-code-modal__instruction max-w-[300px] text-sm text-center my-8 mx-8 dark:text-gray-200", children: t("nuPay.modalInstruction") })
|
|
@@ -31757,7 +31757,7 @@ const Ete = () => {
|
|
|
31757
31757
|
};
|
|
31758
31758
|
function Ys() {
|
|
31759
31759
|
var i, r;
|
|
31760
|
-
const { options: e, _authorizationStore: t } =
|
|
31760
|
+
const { options: e, _authorizationStore: t } = Le(), { paymentSession: n } = e, a = ((i = t.paymentAuthResponse) == null ? void 0 : i.status) === "AUTHENTICATION_PENDING" ? (r = t.paymentAuthResponse.data) == null ? void 0 : r.initialPaymentCharge : null;
|
|
31761
31761
|
return (a == null ? void 0 : a.paymentDescriptor) || n.paymentDescriptor;
|
|
31762
31762
|
}
|
|
31763
31763
|
const _te = ({
|
|
@@ -31765,7 +31765,7 @@ const _te = ({
|
|
|
31765
31765
|
titleId: t,
|
|
31766
31766
|
...n
|
|
31767
31767
|
}, a) => /* @__PURE__ */ l.createElement("svg", { viewBox: "0 12 70 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M20.6543 30.0792L17.1038 33.5104C15.7384 34.8298 13.5042 34.8298 12.1388 33.5104L8.59321 30.0839C9.25445 30.078 9.81848 30.0007 10.2852 29.8519C10.7741 29.6961 11.1567 29.4619 11.4329 29.1494L14.2954 26.3383C14.4424 26.2182 14.5881 26.1578 14.7324 26.1571C14.8767 26.1578 15.0223 26.2182 15.1693 26.3383L18.0318 29.1494C18.3081 29.4619 18.6907 29.6961 19.1795 29.8519C19.5943 29.9841 20.0859 30.0599 20.6543 30.0792ZM8.57755 19.6783L12.1389 16.2366C13.5042 14.9172 15.7384 14.9172 17.1038 16.2367L20.6695 19.6825C20.0946 19.7011 19.598 19.777 19.1795 19.9104C18.6907 20.0662 18.3081 20.3004 18.0318 20.6129L15.1693 23.424C15.0224 23.5441 14.8767 23.6045 14.7324 23.6052C14.5881 23.6045 14.4424 23.5441 14.2954 23.424L11.4329 20.6129C11.1567 20.3004 10.7741 20.0662 10.2852 19.9104C9.81481 19.7604 9.24553 19.6831 8.57755 19.6783ZM5.68407 22.4745L7.34207 20.8722C8.61327 20.6743 9.44599 20.7516 10.0416 20.9544C10.6444 21.1597 11.0057 21.4945 11.3332 21.8023C13.4194 23.8408 14.0817 24.3439 14.0836 24.3454L14.0847 24.3462C14.1665 24.4017 14.279 24.4489 14.3991 24.4823C14.5216 24.5165 14.6525 24.5365 14.7666 24.5367C14.8807 24.5369 15.0064 24.5174 15.1237 24.4839C15.2408 24.4504 15.3501 24.4026 15.4317 24.3461L15.4326 24.3454C15.4346 24.3439 16.0969 23.8408 18.1831 21.8024C18.5107 21.4946 18.8719 21.1597 19.4747 20.9544C20.0188 20.7692 20.7606 20.6887 21.8537 20.8269L23.5586 22.4745C24.924 23.794 24.924 25.9531 23.5586 27.2725L21.8298 28.9432C20.7498 29.0773 20.0148 28.9966 19.4747 28.8127C18.8718 28.6075 18.5106 28.2726 18.1831 27.9648C16.0968 25.9263 15.4346 25.4232 15.4326 25.4217L15.4317 25.421C15.3501 25.3645 15.2408 25.3167 15.1236 25.2832C15.0064 25.2497 14.8807 25.2303 14.7666 25.2304C14.6525 25.2306 14.5216 25.2506 14.399 25.2848C14.279 25.3182 14.1664 25.3654 14.0847 25.4209L14.0836 25.4217C14.0817 25.4232 13.4193 25.9263 11.3331 27.9647C11.0056 28.2725 10.6444 28.6075 10.0416 28.8127C9.44985 29.0142 8.62401 29.0918 7.36677 28.8987L5.68407 27.2726C4.31869 25.9531 4.31869 23.794 5.68407 22.4745Z", fill: "#31BDAE" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M29.958 33.503C30.2358 32.8561 30.0601 23.1302 30.0638 21.5285C30.0681 19.6828 31.0771 18.3779 32.5375 17.8897C33.4624 17.5804 37.3945 17.5632 38.4021 17.8308C39.8609 18.2183 41.0574 19.5108 41.0872 21.2874C41.1219 23.3607 41.3391 25.0351 40.0689 26.2817C38.6569 27.6675 37.4479 27.4278 35.0685 27.4254C34.497 27.4247 32.3334 27.267 32.009 27.5208C31.8575 27.6393 31.8421 27.8876 31.9679 28.0273C32.1337 28.2113 32.3099 28.1736 32.5859 28.1743C34.9296 28.1805 38.1292 28.4667 39.7133 27.5344C40.9215 26.8234 41.8599 25.5559 41.8575 23.6043C41.8545 21.2022 42.1159 20.196 40.8313 18.5141C39.6888 17.0182 37.9482 16.9416 36.2244 16.9422C33.9676 16.943 32.4719 16.6948 30.9352 17.9329C29.6406 18.9759 29.297 20.106 29.2969 22.3276L29.2933 32.8656C29.2961 33.4328 29.3946 33.6677 29.958 33.503Z", fill: "#9B9D9F" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M58.9782 21.0976C59.5459 20.5519 60.0639 20.0532 60.6241 19.4954C61.0901 19.0314 61.7246 18.3242 62.365 17.9879C63.3489 17.4712 64.6619 17.8815 65.2024 17.5448C65.325 16.7403 64.6068 16.9459 63.9671 16.9454C63.3687 16.9448 62.9334 16.9557 62.4134 17.1503C61.2508 17.5855 59.642 19.3925 58.6312 20.3626C57.8759 21.0875 57.3583 21.8985 56.6256 21.6041C56.2942 21.4709 53.5685 18.7189 53.0793 18.247C52.5174 17.7048 52.0028 17.1476 50.8504 16.973C50.3618 16.899 49.7075 16.9331 49.1823 16.9295C48.5025 16.9248 48.2047 17.0468 48.5112 17.626C49.6012 17.8424 50.4004 17.439 51.546 17.9736C52.1087 18.2361 54.3559 20.5688 54.9528 21.1453C55.3962 21.5735 56.0226 22.4082 56.9486 22.4185C57.888 22.429 58.53 21.5284 58.9782 21.0976Z", fill: "#9B9D9F" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M48.4292 28.024C49.0342 28.2805 50.845 28.1817 51.5164 27.9293C52.656 27.5008 54.2563 25.685 55.1535 24.8222C55.8481 24.1544 56.4455 23.3241 57.109 23.4177C57.6192 23.4897 60.1467 26.1231 60.6644 26.6361C61.2066 27.1733 61.6775 27.7438 62.7076 28.0158C63.089 28.1166 65.9298 28.4393 65.1342 27.5171C64.9146 27.2625 63.0967 27.5441 62.1937 26.9933C61.8286 26.7706 59.2068 24.2094 58.7176 23.7296C58.1901 23.2123 57.627 22.4067 56.5243 22.7104C55.2023 23.0744 52.6816 26.9014 50.9631 27.3182C49.5195 27.6684 48.2048 26.9064 48.4292 28.024Z", fill: "#9B9D9F" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M42.224 17.6332C43.941 17.9381 45.3632 17.1139 45.3631 19.3753L45.3631 27.5141C45.3631 27.8814 45.3541 28.1886 45.7282 28.2097C46.219 28.2373 46.1263 27.6913 46.1263 27.1949L46.126 22.0882C46.1264 19.6883 46.7206 16.9355 43.8206 16.936C42.7976 16.9363 41.8258 16.7637 42.224 17.6332Z", fill: "#9B9D9F" }), /* @__PURE__ */ l.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M45.6803 15.0994L44.0254 13.5C44.1357 13.6066 44.246 13.6066 44.3563 13.5L42.7014 15.0994C42.8117 14.9927 42.8117 14.8861 42.7014 14.7795L44.3563 16.3788C44.246 16.2722 44.1357 16.2722 44.0254 16.3788L45.6803 14.7795C45.57 14.8861 45.57 14.9927 45.6803 15.0994Z", fill: "#31BDAE" })), Mte = oe(_te), Rte = () => {
|
|
31768
|
-
const { _scanCode: e } =
|
|
31768
|
+
const { _scanCode: e } = Le(), { t } = Ae();
|
|
31769
31769
|
if (!e.details)
|
|
31770
31770
|
return null;
|
|
31771
31771
|
const n = e.details, a = to(n.scanBy), i = eo(), r = Ys();
|
|
@@ -31799,7 +31799,7 @@ const _te = ({
|
|
|
31799
31799
|
] }) });
|
|
31800
31800
|
}, Ite = () => {
|
|
31801
31801
|
var u, d;
|
|
31802
|
-
const { _scanCode: e } =
|
|
31802
|
+
const { _scanCode: e } = Le(), { t } = Ae(), [n, a] = ot(!1), i = eo(), r = Ys(), o = to((u = e.details) == null ? void 0 : u.scanBy);
|
|
31803
31803
|
if (!e.details)
|
|
31804
31804
|
return null;
|
|
31805
31805
|
const s = e.details, c = (d = s.codeImage) != null && d.startsWith("http") ? s.codeImage : `data:image/png;base64,${s.codeImage}`;
|
|
@@ -31876,7 +31876,7 @@ const _te = ({
|
|
|
31876
31876
|
...n
|
|
31877
31877
|
}, a) => /* @__PURE__ */ l.createElement("svg", { fill: "none", viewBox: "0 0 8 12", id: "svg3", "sodipodi:docname": "upi-id.svg", "inkscape:version": "1.4 (e7c3feb1, 2024-10-09)", "xmlns:inkscape": "http://www.inkscape.org/namespaces/inkscape", "xmlns:sodipodi": "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd", xmlns: "http://www.w3.org/2000/svg", "xmlns:svg": "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("defs", { id: "defs3" }), /* @__PURE__ */ l.createElement("sodipodi:namedview", { id: "namedview3", pagecolor: "#ffffff", bordercolor: "#000000", borderopacity: 0.25, "inkscape:showpageshadow": 2, "inkscape:pageopacity": 0, "inkscape:pagecheckerboard": 0, "inkscape:deskcolor": "#d1d1d1", "inkscape:zoom": 14.384081, "inkscape:cx": 3.3370223, "inkscape:cy": 11.158168, "inkscape:window-width": 1512, "inkscape:window-height": 700, "inkscape:window-x": 0, "inkscape:window-y": 38, "inkscape:window-maximized": 0, "inkscape:current-layer": "svg3" }), /* @__PURE__ */ l.createElement("path", { d: "m 2.4981567,10.487433 2.835,-9.99999978 2.63,4.98499998 z", fill: "#028c3c", id: "path2" }), /* @__PURE__ */ l.createElement("path", { d: "m 0.71315673,10.487433 2.83499997,-9.99999978 2.63,4.98499998 z", fill: "#fe7a09", id: "path3" })), Dte = oe(xte), Vte = () => {
|
|
31878
31878
|
var c;
|
|
31879
|
-
const { _scanCode: e } =
|
|
31879
|
+
const { _scanCode: e } = Le(), { t } = Ae(), [n, a] = ot(!1), i = eo(), r = Ys(), o = to((c = e.details) == null ? void 0 : c.scanBy);
|
|
31880
31880
|
if (!e.details)
|
|
31881
31881
|
return null;
|
|
31882
31882
|
const s = e.details;
|
|
@@ -31916,7 +31916,7 @@ const _te = ({
|
|
|
31916
31916
|
)
|
|
31917
31917
|
] });
|
|
31918
31918
|
}, Hte = Be(() => {
|
|
31919
|
-
const { _scanCode: e, _transactionConfirmation: t } =
|
|
31919
|
+
const { _scanCode: e, _transactionConfirmation: t } = Le(), n = t.paymentMethodId !== null, a = e.details && e.paymentMethodId, i = n ? t.paymentMethodId : a ? e.paymentMethodId : null;
|
|
31920
31920
|
return i ? /* @__PURE__ */ m(hs, { children: (() => {
|
|
31921
31921
|
switch (i) {
|
|
31922
31922
|
case "PIX":
|
|
@@ -32402,8 +32402,8 @@ Ta.useWebSocket = function(e, t, n) {
|
|
|
32402
32402
|
}
|
|
32403
32403
|
return null;
|
|
32404
32404
|
}, [i]), d = mt.useRef(null), f = mt.useRef(null), p = mt.useRef(function() {
|
|
32405
|
-
}), h = mt.useRef(0), g = mt.useRef([]),
|
|
32406
|
-
|
|
32405
|
+
}), h = mt.useRef(0), g = mt.useRef([]), b = mt.useRef(null), y = mt.useRef(t);
|
|
32406
|
+
y.current = t;
|
|
32407
32407
|
var P = d.current && s[d.current] !== void 0 ? s[d.current] : e !== null && n === !0 ? pn.ReadyState.CONNECTING : pn.ReadyState.UNINSTANTIATED, C = t.queryParams ? JSON.stringify(t.queryParams) : null, A = mt.useCallback(function(E, R) {
|
|
32408
32408
|
var B;
|
|
32409
32409
|
if (R === void 0 && (R = !0), pn.isEventSourceSupported && f.current instanceof EventSource) {
|
|
@@ -32414,7 +32414,7 @@ Ta.useWebSocket = function(e, t, n) {
|
|
|
32414
32414
|
}, []), k = mt.useCallback(function(E, R) {
|
|
32415
32415
|
R === void 0 && (R = !0), A(JSON.stringify(E), R);
|
|
32416
32416
|
}, [A]), v = mt.useCallback(function() {
|
|
32417
|
-
return
|
|
32417
|
+
return y.current.share !== !0 || pn.isEventSourceSupported && f.current instanceof EventSource ? f.current : (b.current === null && f.current && (nu.assertIsWebSocket(f.current), b.current = mne.default(f.current, p)), b.current);
|
|
32418
32418
|
}, []);
|
|
32419
32419
|
return mt.useEffect(function() {
|
|
32420
32420
|
if (e !== null && n === !0) {
|
|
@@ -32424,7 +32424,7 @@ Ta.useWebSocket = function(e, t, n) {
|
|
|
32424
32424
|
return lne(this, function(x) {
|
|
32425
32425
|
switch (x.label) {
|
|
32426
32426
|
case 0:
|
|
32427
|
-
return T = d, [4, pne.getUrl(e,
|
|
32427
|
+
return T = d, [4, pne.getUrl(e, y)];
|
|
32428
32428
|
case 1:
|
|
32429
32429
|
return T.current = x.sent(), M = function(j) {
|
|
32430
32430
|
R || r(j);
|
|
@@ -32433,7 +32433,7 @@ Ta.useWebSocket = function(e, t, n) {
|
|
|
32433
32433
|
var ee;
|
|
32434
32434
|
return fa(fa({}, G), d.current && (ee = {}, ee[d.current] = j, ee));
|
|
32435
32435
|
});
|
|
32436
|
-
}, E = dne.createOrJoinSocket(f, d.current, K,
|
|
32436
|
+
}, E = dne.createOrJoinSocket(f, d.current, K, y, M, p, h, A), [
|
|
32437
32437
|
2
|
|
32438
32438
|
/*return*/
|
|
32439
32439
|
];
|
|
@@ -32442,9 +32442,9 @@ Ta.useWebSocket = function(e, t, n) {
|
|
|
32442
32442
|
});
|
|
32443
32443
|
};
|
|
32444
32444
|
return p.current = function() {
|
|
32445
|
-
R || (
|
|
32445
|
+
R || (b.current && (b.current = null), E == null || E(), B());
|
|
32446
32446
|
}, B(), function() {
|
|
32447
|
-
R = !0,
|
|
32447
|
+
R = !0, b.current && (b.current = null), E == null || E(), r(null);
|
|
32448
32448
|
};
|
|
32449
32449
|
} else (e === null || n === !1) && (h.current = 0, c(function(T) {
|
|
32450
32450
|
var M;
|
|
@@ -32567,7 +32567,7 @@ lo.useEventSource = function(e, t, n) {
|
|
|
32567
32567
|
})(qs);
|
|
32568
32568
|
const vne = /* @__PURE__ */ Yn(qs);
|
|
32569
32569
|
function Cne() {
|
|
32570
|
-
const e =
|
|
32570
|
+
const e = Le();
|
|
32571
32571
|
return {
|
|
32572
32572
|
logError: (...t) => {
|
|
32573
32573
|
e.logConsoleError(...t);
|
|
@@ -32578,7 +32578,7 @@ function Cne() {
|
|
|
32578
32578
|
};
|
|
32579
32579
|
}
|
|
32580
32580
|
const kne = () => {
|
|
32581
|
-
const e =
|
|
32581
|
+
const e = Le(), { paymentSession: t, pproAPIConfig: n } = Ne();
|
|
32582
32582
|
Ke(() => {
|
|
32583
32583
|
typeof window < "u" && !(n != null && n.publicKey) && e._handleError(
|
|
32584
32584
|
new kn(
|
|
@@ -32596,7 +32596,7 @@ const kne = () => {
|
|
|
32596
32596
|
}, [t]);
|
|
32597
32597
|
}, Ane = 6e4;
|
|
32598
32598
|
function Ene() {
|
|
32599
|
-
const e =
|
|
32599
|
+
const e = Le(), { _messageBus: t } = e, { paymentSession: n, pproAPIConfig: a } = Ne(), { logDebug: i, logError: r } = Cne();
|
|
32600
32600
|
kne();
|
|
32601
32601
|
const o = !!(n != null && n.id && (a != null && a.publicKey)), c = `${lu(a).replace(
|
|
32602
32602
|
/^http(s?):\/\//,
|
|
@@ -32639,7 +32639,7 @@ function Ene() {
|
|
|
32639
32639
|
}
|
|
32640
32640
|
const Sne = () => {
|
|
32641
32641
|
var n, a;
|
|
32642
|
-
const e =
|
|
32642
|
+
const e = Le(), t = $6({
|
|
32643
32643
|
mode: "onChange",
|
|
32644
32644
|
reValidateMode: "onChange",
|
|
32645
32645
|
defaultValues: (n = e.options.forms) == null ? void 0 : n.defaultValues
|
|
@@ -33050,11 +33050,11 @@ class Nne {
|
|
|
33050
33050
|
const h = (f = c == null ? void 0 : c.apiPaymentMethodNameMap) == null ? void 0 : f[t], g = h ? {
|
|
33051
33051
|
...p.paymentAuthRequest,
|
|
33052
33052
|
paymentMethod: h
|
|
33053
|
-
} : p.paymentAuthRequest,
|
|
33053
|
+
} : p.paymentAuthRequest, y = await new T3(r).postAuthorizePayment(
|
|
33054
33054
|
a.id,
|
|
33055
33055
|
g
|
|
33056
33056
|
);
|
|
33057
|
-
await this.processResponse(
|
|
33057
|
+
await this.processResponse(y, t);
|
|
33058
33058
|
}
|
|
33059
33059
|
} else throw p.status === "ERROR" ? new kn(
|
|
33060
33060
|
"ON_SUBMIT_PAYMENT_ERROR",
|
|
@@ -33421,7 +33421,7 @@ class Bne {
|
|
|
33421
33421
|
});
|
|
33422
33422
|
}
|
|
33423
33423
|
}
|
|
33424
|
-
const Lne = "2.20.
|
|
33424
|
+
const Lne = "2.20.4";
|
|
33425
33425
|
class $ne {
|
|
33426
33426
|
constructor(t) {
|
|
33427
33427
|
pe(this, "sendJsonMessage");
|
|
@@ -33741,7 +33741,7 @@ class Une {
|
|
|
33741
33741
|
return new g3(t);
|
|
33742
33742
|
}
|
|
33743
33743
|
}
|
|
33744
|
-
typeof window < "u" && (window.__DROPINCHECKOUT_VERSION = "2.20.
|
|
33744
|
+
typeof window < "u" && (window.__DROPINCHECKOUT_VERSION = "2.20.4");
|
|
33745
33745
|
export {
|
|
33746
33746
|
eY as AmazonPayButton,
|
|
33747
33747
|
Hne as DropInCheckout,
|
|
@@ -33755,5 +33755,5 @@ export {
|
|
|
33755
33755
|
M3 as createPaymentAuthRequest,
|
|
33756
33756
|
w3 as mapResponseToPaymentResult,
|
|
33757
33757
|
YZ as useCustomSubmitButton,
|
|
33758
|
-
|
|
33758
|
+
Le as useDropInCheckout
|
|
33759
33759
|
};
|