@techlabi/kycrazy-ui-kit 0.61.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var v4 = (r) => {
|
|
|
4
4
|
};
|
|
5
5
|
var _9 = (r, e, a) => e in r ? C9(r, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[e] = a;
|
|
6
6
|
var Rn = (r, e, a) => _9(r, typeof e != "symbol" ? e + "" : e, a), rl = (r, e, a) => e.has(r) || v4("Cannot " + a);
|
|
7
|
-
var W = (r, e, a) => (rl(r, e, "read from private field"), a ? a.call(r) : e.get(r)), Br = (r, e, a) => e.has(r) ? v4("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, a), hr = (r, e, a, t) => (rl(r, e, "write to private field"), t ? t.call(r, a) : e.set(r, a), a),
|
|
7
|
+
var W = (r, e, a) => (rl(r, e, "read from private field"), a ? a.call(r) : e.get(r)), Br = (r, e, a) => e.has(r) ? v4("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, a), hr = (r, e, a, t) => (rl(r, e, "write to private field"), t ? t.call(r, a) : e.set(r, a), a), qr = (r, e, a) => (rl(r, e, "access private method"), a);
|
|
8
8
|
var CA = (r, e, a, t) => ({
|
|
9
9
|
set _(n) {
|
|
10
10
|
hr(r, e, n, a);
|
|
@@ -3888,7 +3888,7 @@ function zk(r) {
|
|
|
3888
3888
|
}
|
|
3889
3889
|
var Kk = (r) => {
|
|
3890
3890
|
var e, a, t, n, i, o, A, s, f, u, c;
|
|
3891
|
-
let { invert: h, toast: d, unstyled: b, interacting: m, setHeights: v, visibleToasts: w, heights: N, index: I, toasts: R, expanded: k, removeToast: T, defaultRichColors: M, closeButton: J, style: q, cancelButtonStyle: nr, actionButtonStyle: rr, className: L = "", descriptionClassName: tr = "", duration: $, position: H, gap: j, loadingIcon: D, expandByDefault: p, classNames: E, icons: y, closeButtonAriaLabel: C = "Close toast", pauseWhenPageIsHidden: _ } = r, [B, x] = X.useState(null), [P, F] = X.useState(null), [S, U] = X.useState(!1), [ar, Y] = X.useState(!1), [K, G] = X.useState(!1), [z, dr] = X.useState(!1), [yr, $r] = X.useState(!1), [Rr, Fr] = X.useState(0), [Gr,
|
|
3891
|
+
let { invert: h, toast: d, unstyled: b, interacting: m, setHeights: v, visibleToasts: w, heights: N, index: I, toasts: R, expanded: k, removeToast: T, defaultRichColors: M, closeButton: J, style: q, cancelButtonStyle: nr, actionButtonStyle: rr, className: L = "", descriptionClassName: tr = "", duration: $, position: H, gap: j, loadingIcon: D, expandByDefault: p, classNames: E, icons: y, closeButtonAriaLabel: C = "Close toast", pauseWhenPageIsHidden: _ } = r, [B, x] = X.useState(null), [P, F] = X.useState(null), [S, U] = X.useState(!1), [ar, Y] = X.useState(!1), [K, G] = X.useState(!1), [z, dr] = X.useState(!1), [yr, $r] = X.useState(!1), [Rr, Fr] = X.useState(0), [Gr, zr] = X.useState(0), Z = X.useRef(d.duration || $ || Z4), V = X.useRef(null), Q = X.useRef(null), fr = I === 0, or = I + 1 <= w, ir = d.type, mr = d.dismissible !== !1, Hr = d.className || "", Kr = d.descriptionClassName || "", y0 = X.useMemo(() => N.findIndex((Ar) => Ar.toastId === d.id) || 0, [N, d.id]), P0 = X.useMemo(() => {
|
|
3892
3892
|
var Ar;
|
|
3893
3893
|
return (Ar = d.closeButton) != null ? Ar : J;
|
|
3894
3894
|
}, [d.closeButton, J]), re = X.useMemo(() => d.duration || $ || Z4, [d.duration, $]), pa = X.useRef(0), pe = X.useRef(0), va = X.useRef(0), Ve = X.useRef(null), [jt, xe] = H.split("-"), ve = X.useMemo(() => N.reduce((Ar, Cr, ur) => ur >= y0 ? Ar : Ar + Cr.height, 0), [N, y0]), ya = Tk(), La = d.invert || h, gt = ir === "loading";
|
|
@@ -3900,14 +3900,14 @@ var Kk = (r) => {
|
|
|
3900
3900
|
let Ar = Q.current;
|
|
3901
3901
|
if (Ar) {
|
|
3902
3902
|
let Cr = Ar.getBoundingClientRect().height;
|
|
3903
|
-
return
|
|
3903
|
+
return zr(Cr), v((ur) => [{ toastId: d.id, height: Cr, position: d.position }, ...ur]), () => v((ur) => ur.filter((kr) => kr.toastId !== d.id));
|
|
3904
3904
|
}
|
|
3905
3905
|
}, [v, d.id]), X.useLayoutEffect(() => {
|
|
3906
3906
|
if (!S) return;
|
|
3907
3907
|
let Ar = Q.current, Cr = Ar.style.height;
|
|
3908
3908
|
Ar.style.height = "auto";
|
|
3909
3909
|
let ur = Ar.getBoundingClientRect().height;
|
|
3910
|
-
Ar.style.height = Cr,
|
|
3910
|
+
Ar.style.height = Cr, zr(ur), v((kr) => kr.find((cr) => cr.toastId === d.id) ? kr.map((cr) => cr.toastId === d.id ? { ...cr, height: ur } : cr) : [{ toastId: d.id, height: ur, position: d.position }, ...kr]);
|
|
3911
3911
|
}, [S, d.title, d.description, v, d.id]);
|
|
3912
3912
|
let he = X.useCallback(() => {
|
|
3913
3913
|
Y(!0), Fr(pe.current), v((Ar) => Ar.filter((Cr) => Cr.toastId !== d.id)), setTimeout(() => {
|
|
@@ -3959,7 +3959,7 @@ var Kk = (r) => {
|
|
|
3959
3959
|
} : () => {
|
|
3960
3960
|
var Ar;
|
|
3961
3961
|
he(), (Ar = d.onDismiss) == null || Ar.call(d, d);
|
|
3962
|
-
}, className: ka(E == null ? void 0 : E.closeButton, (n = d == null ? void 0 : d.classNames) == null ? void 0 : n.closeButton) }, (i = y == null ? void 0 : y.close) != null ? i : $k) : null, d.jsx || el(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : X.createElement(X.Fragment, null, ir || d.icon || d.promise ? X.createElement("div", { "data-icon": "", className: ka(E == null ? void 0 : E.icon, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Zr() : null, d.type !== "loading" ? d.icon || (y == null ? void 0 : y[ir]) || Ik(ir) : null) : null, X.createElement("div", { "data-content": "", className: ka(E == null ? void 0 : E.content, (A = d == null ? void 0 : d.classNames) == null ? void 0 : A.content) }, X.createElement("div", { "data-title": "", className: ka(E == null ? void 0 : E.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? X.createElement("div", { "data-description": "", className: ka(tr,
|
|
3962
|
+
}, className: ka(E == null ? void 0 : E.closeButton, (n = d == null ? void 0 : d.classNames) == null ? void 0 : n.closeButton) }, (i = y == null ? void 0 : y.close) != null ? i : $k) : null, d.jsx || el(d.title) ? d.jsx ? d.jsx : typeof d.title == "function" ? d.title() : d.title : X.createElement(X.Fragment, null, ir || d.icon || d.promise ? X.createElement("div", { "data-icon": "", className: ka(E == null ? void 0 : E.icon, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Zr() : null, d.type !== "loading" ? d.icon || (y == null ? void 0 : y[ir]) || Ik(ir) : null) : null, X.createElement("div", { "data-content": "", className: ka(E == null ? void 0 : E.content, (A = d == null ? void 0 : d.classNames) == null ? void 0 : A.content) }, X.createElement("div", { "data-title": "", className: ka(E == null ? void 0 : E.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, typeof d.title == "function" ? d.title() : d.title), d.description ? X.createElement("div", { "data-description": "", className: ka(tr, Kr, E == null ? void 0 : E.description, (f = d == null ? void 0 : d.classNames) == null ? void 0 : f.description) }, typeof d.description == "function" ? d.description() : d.description) : null), el(d.cancel) ? d.cancel : d.cancel && xA(d.cancel) ? X.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle || nr, onClick: (Ar) => {
|
|
3963
3963
|
var Cr, ur;
|
|
3964
3964
|
xA(d.cancel) && mr && ((ur = (Cr = d.cancel).onClick) == null || ur.call(Cr, Ar), he());
|
|
3965
3965
|
}, className: ka(E == null ? void 0 : E.cancelButton, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.cancelButton) }, d.cancel.label) : null, el(d.action) ? d.action : d.action && xA(d.action) ? X.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle || rr, onClick: (Ar) => {
|
|
@@ -6414,7 +6414,7 @@ var Gn, Vm, g8 = (Vm = class {
|
|
|
6414
6414
|
}
|
|
6415
6415
|
setData(e, a) {
|
|
6416
6416
|
const t = cu(this.state.data, e, this.options);
|
|
6417
|
-
return
|
|
6417
|
+
return qr(this, Ba, wt).call(this, {
|
|
6418
6418
|
data: t,
|
|
6419
6419
|
type: "success",
|
|
6420
6420
|
dataUpdatedAt: a == null ? void 0 : a.updatedAt,
|
|
@@ -6422,7 +6422,7 @@ var Gn, Vm, g8 = (Vm = class {
|
|
|
6422
6422
|
}), t;
|
|
6423
6423
|
}
|
|
6424
6424
|
setState(e, a) {
|
|
6425
|
-
|
|
6425
|
+
qr(this, Ba, wt).call(this, { type: "setState", state: e, setStateOptions: a });
|
|
6426
6426
|
}
|
|
6427
6427
|
cancel(e) {
|
|
6428
6428
|
var t, n;
|
|
@@ -6476,7 +6476,7 @@ var Gn, Vm, g8 = (Vm = class {
|
|
|
6476
6476
|
return this.observers.length;
|
|
6477
6477
|
}
|
|
6478
6478
|
invalidate() {
|
|
6479
|
-
this.state.isInvalidated ||
|
|
6479
|
+
this.state.isInvalidated || qr(this, Ba, wt).call(this, { type: "invalidate" });
|
|
6480
6480
|
}
|
|
6481
6481
|
async fetch(e, a) {
|
|
6482
6482
|
var s, f, u, c, h, d, b, m, v, w, N, I;
|
|
@@ -6526,7 +6526,7 @@ var Gn, Vm, g8 = (Vm = class {
|
|
|
6526
6526
|
};
|
|
6527
6527
|
return n(R), R;
|
|
6528
6528
|
})();
|
|
6529
|
-
(f = this.options.behavior) == null || f.onFetch(A, this), hr(this, Ki, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = A.fetchOptions) == null ? void 0 : u.meta)) &&
|
|
6529
|
+
(f = this.options.behavior) == null || f.onFetch(A, this), hr(this, Ki, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = A.fetchOptions) == null ? void 0 : u.meta)) && qr(this, Ba, wt).call(this, { type: "fetch", meta: (c = A.fetchOptions) == null ? void 0 : c.meta }), hr(this, Ae, m8({
|
|
6530
6530
|
initialPromise: a == null ? void 0 : a.initialPromise,
|
|
6531
6531
|
fn: A.fetchFn,
|
|
6532
6532
|
onCancel: (R) => {
|
|
@@ -6536,13 +6536,13 @@ var Gn, Vm, g8 = (Vm = class {
|
|
|
6536
6536
|
}), t.abort();
|
|
6537
6537
|
},
|
|
6538
6538
|
onFail: (R, k) => {
|
|
6539
|
-
|
|
6539
|
+
qr(this, Ba, wt).call(this, { type: "failed", failureCount: R, error: k });
|
|
6540
6540
|
},
|
|
6541
6541
|
onPause: () => {
|
|
6542
|
-
|
|
6542
|
+
qr(this, Ba, wt).call(this, { type: "pause" });
|
|
6543
6543
|
},
|
|
6544
6544
|
onContinue: () => {
|
|
6545
|
-
|
|
6545
|
+
qr(this, Ba, wt).call(this, { type: "continue" });
|
|
6546
6546
|
},
|
|
6547
6547
|
retry: A.options.retry,
|
|
6548
6548
|
retryDelay: A.options.retryDelay,
|
|
@@ -6571,7 +6571,7 @@ var Gn, Vm, g8 = (Vm = class {
|
|
|
6571
6571
|
return this.state.data;
|
|
6572
6572
|
}
|
|
6573
6573
|
}
|
|
6574
|
-
throw
|
|
6574
|
+
throw qr(this, Ba, wt).call(this, {
|
|
6575
6575
|
type: "error",
|
|
6576
6576
|
error: R
|
|
6577
6577
|
}), (w = (v = W(this, ua).config).onError) == null || w.call(
|
|
@@ -6722,7 +6722,7 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6722
6722
|
this.refetch = this.refetch.bind(this);
|
|
6723
6723
|
}
|
|
6724
6724
|
onSubscribe() {
|
|
6725
|
-
this.listeners.size === 1 && (W(this, n0).addObserver(this), K4(W(this, n0), this.options) ?
|
|
6725
|
+
this.listeners.size === 1 && (W(this, n0).addObserver(this), K4(W(this, n0), this.options) ? qr(this, g0, uo).call(this) : this.updateResult(), qr(this, g0, pu).call(this));
|
|
6726
6726
|
}
|
|
6727
6727
|
onUnsubscribe() {
|
|
6728
6728
|
this.hasListeners() || this.destroy();
|
|
@@ -6742,7 +6742,7 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6742
6742
|
);
|
|
6743
6743
|
}
|
|
6744
6744
|
destroy() {
|
|
6745
|
-
this.listeners = /* @__PURE__ */ new Set(),
|
|
6745
|
+
this.listeners = /* @__PURE__ */ new Set(), qr(this, g0, vu).call(this), qr(this, g0, yu).call(this), W(this, n0).removeObserver(this);
|
|
6746
6746
|
}
|
|
6747
6747
|
setOptions(e) {
|
|
6748
6748
|
const a = this.options, t = W(this, n0);
|
|
@@ -6750,7 +6750,7 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6750
6750
|
throw new Error(
|
|
6751
6751
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
6752
6752
|
);
|
|
6753
|
-
|
|
6753
|
+
qr(this, g0, wu).call(this), W(this, n0).setOptions(this.options), a._defaulted && !fs(this.options, a) && W(this, Re).getQueryCache().notify({
|
|
6754
6754
|
type: "observerOptionsUpdated",
|
|
6755
6755
|
query: W(this, n0),
|
|
6756
6756
|
observer: this
|
|
@@ -6761,9 +6761,9 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6761
6761
|
t,
|
|
6762
6762
|
this.options,
|
|
6763
6763
|
a
|
|
6764
|
-
) &&
|
|
6765
|
-
const i =
|
|
6766
|
-
n && (W(this, n0) !== t || ca(this.options.enabled, W(this, n0)) !== ca(a.enabled, W(this, n0)) || i !== W(this, sn)) &&
|
|
6764
|
+
) && qr(this, g0, uo).call(this), this.updateResult(), n && (W(this, n0) !== t || ca(this.options.enabled, W(this, n0)) !== ca(a.enabled, W(this, n0)) || dn(this.options.staleTime, W(this, n0)) !== dn(a.staleTime, W(this, n0))) && qr(this, g0, bu).call(this);
|
|
6765
|
+
const i = qr(this, g0, mu).call(this);
|
|
6766
|
+
n && (W(this, n0) !== t || ca(this.options.enabled, W(this, n0)) !== ca(a.enabled, W(this, n0)) || i !== W(this, sn)) && qr(this, g0, gu).call(this, i);
|
|
6767
6767
|
}
|
|
6768
6768
|
getOptimisticResult(e) {
|
|
6769
6769
|
const a = W(this, Re).getQueryCache().build(W(this, Re), e), t = this.createResult(a, e);
|
|
@@ -6797,7 +6797,7 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6797
6797
|
return t.fetch().then(() => this.createResult(t, a));
|
|
6798
6798
|
}
|
|
6799
6799
|
fetch(e) {
|
|
6800
|
-
return
|
|
6800
|
+
return qr(this, g0, uo).call(this, {
|
|
6801
6801
|
...e,
|
|
6802
6802
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
6803
6803
|
}).then(() => (this.updateResult(), W(this, ye)));
|
|
@@ -6905,20 +6905,20 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6905
6905
|
return W(this, ye)[s] !== e[s] && o.has(s);
|
|
6906
6906
|
});
|
|
6907
6907
|
};
|
|
6908
|
-
|
|
6908
|
+
qr(this, g0, v8).call(this, { listeners: t() });
|
|
6909
6909
|
}
|
|
6910
6910
|
onQueryUpdate() {
|
|
6911
|
-
this.updateResult(), this.hasListeners() &&
|
|
6911
|
+
this.updateResult(), this.hasListeners() && qr(this, g0, pu).call(this);
|
|
6912
6912
|
}
|
|
6913
6913
|
}, Re = new WeakMap(), n0 = new WeakMap(), Jo = new WeakMap(), ye = new WeakMap(), Un = new WeakMap(), qi = new WeakMap(), Et = new WeakMap(), An = new WeakMap(), zo = new WeakMap(), r2 = new WeakMap(), e2 = new WeakMap(), Yn = new WeakMap(), Hn = new WeakMap(), sn = new WeakMap(), a2 = new WeakMap(), g0 = new WeakSet(), uo = function(e) {
|
|
6914
|
-
|
|
6914
|
+
qr(this, g0, wu).call(this);
|
|
6915
6915
|
let a = W(this, n0).fetch(
|
|
6916
6916
|
this.options,
|
|
6917
6917
|
e
|
|
6918
6918
|
);
|
|
6919
6919
|
return e != null && e.throwOnError || (a = a.catch(ke)), a;
|
|
6920
6920
|
}, bu = function() {
|
|
6921
|
-
|
|
6921
|
+
qr(this, g0, vu).call(this);
|
|
6922
6922
|
const e = dn(
|
|
6923
6923
|
this.options.staleTime,
|
|
6924
6924
|
W(this, n0)
|
|
@@ -6932,11 +6932,11 @@ var Re, n0, Jo, ye, Un, qi, Et, An, zo, r2, e2, Yn, Hn, sn, a2, g0, uo, bu, mu,
|
|
|
6932
6932
|
}, mu = function() {
|
|
6933
6933
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(W(this, n0)) : this.options.refetchInterval) ?? !1;
|
|
6934
6934
|
}, gu = function(e) {
|
|
6935
|
-
|
|
6936
|
-
(this.options.refetchIntervalInBackground || o1.isFocused()) &&
|
|
6935
|
+
qr(this, g0, yu).call(this), hr(this, sn, e), !(ni || ca(this.options.enabled, W(this, n0)) === !1 || !fu(W(this, sn)) || W(this, sn) === 0) && hr(this, Hn, $n.setInterval(() => {
|
|
6936
|
+
(this.options.refetchIntervalInBackground || o1.isFocused()) && qr(this, g0, uo).call(this);
|
|
6937
6937
|
}, W(this, sn)));
|
|
6938
6938
|
}, pu = function() {
|
|
6939
|
-
|
|
6939
|
+
qr(this, g0, bu).call(this), qr(this, g0, gu).call(this, qr(this, g0, mu).call(this));
|
|
6940
6940
|
}, vu = function() {
|
|
6941
6941
|
W(this, Yn) && ($n.clearTimeout(W(this, Yn)), hr(this, Yn, void 0));
|
|
6942
6942
|
}, yu = function() {
|
|
@@ -7101,7 +7101,7 @@ var Ko, Ka, be, Qn, qa, zt, jm, lC = (jm = class extends g8 {
|
|
|
7101
7101
|
async execute(e) {
|
|
7102
7102
|
var o, A, s, f, u, c, h, d, b, m, v, w, N, I, R, k, T, M;
|
|
7103
7103
|
const a = () => {
|
|
7104
|
-
|
|
7104
|
+
qr(this, qa, zt).call(this, { type: "continue" });
|
|
7105
7105
|
}, t = {
|
|
7106
7106
|
client: W(this, Ko),
|
|
7107
7107
|
meta: this.options.meta,
|
|
@@ -7110,10 +7110,10 @@ var Ko, Ka, be, Qn, qa, zt, jm, lC = (jm = class extends g8 {
|
|
|
7110
7110
|
hr(this, Qn, m8({
|
|
7111
7111
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, t) : Promise.reject(new Error("No mutationFn found")),
|
|
7112
7112
|
onFail: (J, q) => {
|
|
7113
|
-
|
|
7113
|
+
qr(this, qa, zt).call(this, { type: "failed", failureCount: J, error: q });
|
|
7114
7114
|
},
|
|
7115
7115
|
onPause: () => {
|
|
7116
|
-
|
|
7116
|
+
qr(this, qa, zt).call(this, { type: "pause" });
|
|
7117
7117
|
},
|
|
7118
7118
|
onContinue: a,
|
|
7119
7119
|
retry: this.options.retry ?? 0,
|
|
@@ -7126,7 +7126,7 @@ var Ko, Ka, be, Qn, qa, zt, jm, lC = (jm = class extends g8 {
|
|
|
7126
7126
|
if (n)
|
|
7127
7127
|
a();
|
|
7128
7128
|
else {
|
|
7129
|
-
|
|
7129
|
+
qr(this, qa, zt).call(this, { type: "pending", variables: e, isPaused: i }), W(this, be).config.onMutate && await W(this, be).config.onMutate(
|
|
7130
7130
|
e,
|
|
7131
7131
|
this,
|
|
7132
7132
|
t
|
|
@@ -7136,7 +7136,7 @@ var Ko, Ka, be, Qn, qa, zt, jm, lC = (jm = class extends g8 {
|
|
|
7136
7136
|
e,
|
|
7137
7137
|
t
|
|
7138
7138
|
));
|
|
7139
|
-
q !== this.state.context &&
|
|
7139
|
+
q !== this.state.context && qr(this, qa, zt).call(this, {
|
|
7140
7140
|
type: "pending",
|
|
7141
7141
|
context: q,
|
|
7142
7142
|
variables: e,
|
|
@@ -7172,7 +7172,7 @@ var Ko, Ka, be, Qn, qa, zt, jm, lC = (jm = class extends g8 {
|
|
|
7172
7172
|
e,
|
|
7173
7173
|
this.state.context,
|
|
7174
7174
|
t
|
|
7175
|
-
)),
|
|
7175
|
+
)), qr(this, qa, zt).call(this, { type: "success", data: J }), J;
|
|
7176
7176
|
} catch (J) {
|
|
7177
7177
|
try {
|
|
7178
7178
|
await ((w = (v = W(this, be).config).onError) == null ? void 0 : w.call(
|
|
@@ -7222,7 +7222,7 @@ var Ko, Ka, be, Qn, qa, zt, jm, lC = (jm = class extends g8 {
|
|
|
7222
7222
|
} catch (q) {
|
|
7223
7223
|
Promise.reject(q);
|
|
7224
7224
|
}
|
|
7225
|
-
throw
|
|
7225
|
+
throw qr(this, qa, zt).call(this, { type: "error", error: J }), J;
|
|
7226
7226
|
} finally {
|
|
7227
7227
|
W(this, be).runNext(this);
|
|
7228
7228
|
}
|
|
@@ -7411,7 +7411,7 @@ var _t, fn, Se, Nt, Rt, LA, Eu, Um, cC = (Um = class extends O2 {
|
|
|
7411
7411
|
Br(this, fn);
|
|
7412
7412
|
Br(this, Se);
|
|
7413
7413
|
Br(this, Nt);
|
|
7414
|
-
hr(this, _t, a), this.setOptions(t), this.bindMethods(),
|
|
7414
|
+
hr(this, _t, a), this.setOptions(t), this.bindMethods(), qr(this, Rt, LA).call(this);
|
|
7415
7415
|
}
|
|
7416
7416
|
bindMethods() {
|
|
7417
7417
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -7430,14 +7430,14 @@ var _t, fn, Se, Nt, Rt, LA, Eu, Um, cC = (Um = class extends O2 {
|
|
|
7430
7430
|
this.hasListeners() || (a = W(this, Se)) == null || a.removeObserver(this);
|
|
7431
7431
|
}
|
|
7432
7432
|
onMutationUpdate(a) {
|
|
7433
|
-
|
|
7433
|
+
qr(this, Rt, LA).call(this), qr(this, Rt, Eu).call(this, a);
|
|
7434
7434
|
}
|
|
7435
7435
|
getCurrentResult() {
|
|
7436
7436
|
return W(this, fn);
|
|
7437
7437
|
}
|
|
7438
7438
|
reset() {
|
|
7439
7439
|
var a;
|
|
7440
|
-
(a = W(this, Se)) == null || a.removeObserver(this), hr(this, Se, void 0),
|
|
7440
|
+
(a = W(this, Se)) == null || a.removeObserver(this), hr(this, Se, void 0), qr(this, Rt, LA).call(this), qr(this, Rt, Eu).call(this);
|
|
7441
7441
|
}
|
|
7442
7442
|
mutate(a, t) {
|
|
7443
7443
|
var n;
|
|
@@ -10628,12 +10628,12 @@ function FN(r = {}) {
|
|
|
10628
10628
|
if (!e.disabled) {
|
|
10629
10629
|
if (!Q || fr) {
|
|
10630
10630
|
(c.isDirty || h.isDirty) && (mr = a.isDirty, a.isDirty = Hr.isDirty = L(), ir = mr !== Hr.isDirty);
|
|
10631
|
-
const
|
|
10632
|
-
mr = !!br(a.dirtyFields, Z),
|
|
10631
|
+
const Kr = Za(br(n, Z), V);
|
|
10632
|
+
mr = !!br(a.dirtyFields, Z), Kr ? U0(a.dirtyFields, Z) : p0(a.dirtyFields, Z, !0), Hr.dirtyFields = a.dirtyFields, ir = ir || (c.dirtyFields || h.dirtyFields) && mr !== !Kr;
|
|
10633
10633
|
}
|
|
10634
10634
|
if (Q) {
|
|
10635
|
-
const
|
|
10636
|
-
|
|
10635
|
+
const Kr = br(a.touchedFields, Z);
|
|
10636
|
+
Kr || (p0(a.touchedFields, Z, Q), Hr.touchedFields = a.touchedFields, ir = ir || (c.touchedFields || h.touchedFields) && Kr !== Q);
|
|
10637
10637
|
}
|
|
10638
10638
|
ir && or && d.state.next(Hr);
|
|
10639
10639
|
}
|
|
@@ -10670,10 +10670,10 @@ function FN(r = {}) {
|
|
|
10670
10670
|
if (or) {
|
|
10671
10671
|
const { _f: ir, ...mr } = or;
|
|
10672
10672
|
if (ir) {
|
|
10673
|
-
const Hr = A.array.has(ir.name),
|
|
10674
|
-
|
|
10673
|
+
const Hr = A.array.has(ir.name), Kr = or._f && _N(or._f);
|
|
10674
|
+
Kr && c.validatingFields && w([ir.name], !0);
|
|
10675
10675
|
const y0 = await Bh(or, A.disabled, i, b, e.shouldUseNativeValidation && !V, Hr);
|
|
10676
|
-
if (
|
|
10676
|
+
if (Kr && c.validatingFields && w([ir.name]), y0[ir.name] && (Q.valid = !1, V || r.shouldUseNativeValidation))
|
|
10677
10677
|
break;
|
|
10678
10678
|
!V && (br(y0, ir.name) ? Hr ? SN(a.errors, y0, ir.name) : p0(a.errors, ir.name, y0[ir.name]) : U0(a.errors, ir.name));
|
|
10679
10679
|
}
|
|
@@ -10730,11 +10730,11 @@ function FN(r = {}) {
|
|
|
10730
10730
|
o.mount = !0;
|
|
10731
10731
|
const V = Z.target;
|
|
10732
10732
|
let Q = V.name, fr = !0;
|
|
10733
|
-
const or = br(t, Q), ir = (
|
|
10734
|
-
fr = Number.isNaN(
|
|
10733
|
+
const or = br(t, Q), ir = (Kr) => {
|
|
10734
|
+
fr = Number.isNaN(Kr) || Wn(Kr) && isNaN(Kr.getTime()) || Za(Kr, br(i, Q, Kr));
|
|
10735
10735
|
}, mr = Ch(e.mode), Hr = Ch(e.reValidateMode);
|
|
10736
10736
|
if (or) {
|
|
10737
|
-
let
|
|
10737
|
+
let Kr, y0;
|
|
10738
10738
|
const P0 = V.type ? Eh(or._f) : Q8(Z), re = Z.type === hs.BLUR || Z.type === hs.FOCUS_OUT, pa = !NN(or._f) && !e.resolver && !br(a.errors, Q) && !or._f.deps || BN(re, br(a.touchedFields, Q), a.isSubmitted, Hr, mr), pe = Nh(Q, A, re);
|
|
10739
10739
|
p0(i, Q, P0), re ? (!V || !V.readOnly) && (or._f.onBlur && or._f.onBlur(Z), s && s(0)) : or._f.onChange && or._f.onChange(Z);
|
|
10740
10740
|
const va = T(Q, P0, re), Ve = !we(va) || pe;
|
|
@@ -10748,11 +10748,11 @@ function FN(r = {}) {
|
|
|
10748
10748
|
const { errors: jt } = await J([Q]);
|
|
10749
10749
|
if (w([Q]), ir(P0), fr) {
|
|
10750
10750
|
const xe = xh(a.errors, t, Q), ve = xh(jt, t, xe.name || Q);
|
|
10751
|
-
|
|
10751
|
+
Kr = ve.error, Q = ve.name, y0 = we(jt);
|
|
10752
10752
|
}
|
|
10753
10753
|
} else
|
|
10754
|
-
w([Q], !0),
|
|
10755
|
-
fr && (or._f.deps && (!Array.isArray(or._f.deps) || or._f.deps.length > 0) && y(or._f.deps), M(Q, y0,
|
|
10754
|
+
w([Q], !0), Kr = (await Bh(or, A.disabled, i, b, e.shouldUseNativeValidation))[Q], w([Q]), ir(P0), fr && (Kr ? y0 = !1 : (c.isValid || h.isValid) && (y0 = await nr(t, !0)));
|
|
10755
|
+
fr && (or._f.deps && (!Array.isArray(or._f.deps) || or._f.deps.length > 0) && y(or._f.deps), M(Q, y0, Kr, va));
|
|
10756
10756
|
}
|
|
10757
10757
|
}, E = (Z, V) => {
|
|
10758
10758
|
if (br(a.errors, V) && Z.focus)
|
|
@@ -10794,9 +10794,9 @@ function FN(r = {}) {
|
|
|
10794
10794
|
errors: {}
|
|
10795
10795
|
});
|
|
10796
10796
|
}, x = (Z, V, Q) => {
|
|
10797
|
-
const fr = (br(t, Z, { _f: {} })._f || {}).ref, or = br(a.errors, Z) || {}, { ref: ir, message: mr, type: Hr, ...
|
|
10797
|
+
const fr = (br(t, Z, { _f: {} })._f || {}).ref, or = br(a.errors, Z) || {}, { ref: ir, message: mr, type: Hr, ...Kr } = or;
|
|
10798
10798
|
p0(a.errors, Z, {
|
|
10799
|
-
...
|
|
10799
|
+
...Kr,
|
|
10800
10800
|
...V,
|
|
10801
10801
|
ref: fr
|
|
10802
10802
|
}), d.state.next({
|
|
@@ -10869,7 +10869,7 @@ function FN(r = {}) {
|
|
|
10869
10869
|
if (or) {
|
|
10870
10870
|
Y(Z, V), Q = br(t, Z);
|
|
10871
10871
|
const ir = R0(or.value) && or.querySelectorAll && or.querySelectorAll("input,select,textarea")[0] || or, mr = yN(ir), Hr = Q._f.refs || [];
|
|
10872
|
-
if (mr ? Hr.find((
|
|
10872
|
+
if (mr ? Hr.find((Kr) => Kr === ir) : ir === Q._f.ref)
|
|
10873
10873
|
return;
|
|
10874
10874
|
p0(t, Z, {
|
|
10875
10875
|
_f: {
|
|
@@ -10939,17 +10939,17 @@ function FN(r = {}) {
|
|
|
10939
10939
|
...Object.keys(Ti(n, i))
|
|
10940
10940
|
]);
|
|
10941
10941
|
for (const Hr of Array.from(mr)) {
|
|
10942
|
-
const
|
|
10943
|
-
|
|
10942
|
+
const Kr = br(a.dirtyFields, Hr), y0 = br(i, Hr), P0 = br(ir, Hr);
|
|
10943
|
+
Kr && !R0(y0) ? p0(ir, Hr, y0) : !Kr && !R0(P0) && D(Hr, P0);
|
|
10944
10944
|
}
|
|
10945
10945
|
} else {
|
|
10946
10946
|
if (g1 && R0(Z))
|
|
10947
10947
|
for (const mr of A.mount) {
|
|
10948
10948
|
const Hr = br(t, mr);
|
|
10949
10949
|
if (Hr && Hr._f) {
|
|
10950
|
-
const
|
|
10951
|
-
if (bs(
|
|
10952
|
-
const y0 =
|
|
10950
|
+
const Kr = Array.isArray(Hr._f.refs) ? Hr._f.refs[0] : Hr._f.ref;
|
|
10951
|
+
if (bs(Kr)) {
|
|
10952
|
+
const y0 = Kr.closest("form");
|
|
10953
10953
|
if (y0) {
|
|
10954
10954
|
y0.reset();
|
|
10955
10955
|
break;
|
|
@@ -11001,7 +11001,7 @@ function FN(r = {}) {
|
|
|
11001
11001
|
...a,
|
|
11002
11002
|
...Z
|
|
11003
11003
|
};
|
|
11004
|
-
},
|
|
11004
|
+
}, zr = {
|
|
11005
11005
|
control: {
|
|
11006
11006
|
register: Y,
|
|
11007
11007
|
unregister: U,
|
|
@@ -11079,8 +11079,8 @@ function FN(r = {}) {
|
|
|
11079
11079
|
getFieldState: _
|
|
11080
11080
|
};
|
|
11081
11081
|
return {
|
|
11082
|
-
...
|
|
11083
|
-
formControl:
|
|
11082
|
+
...zr,
|
|
11083
|
+
formControl: zr
|
|
11084
11084
|
};
|
|
11085
11085
|
}
|
|
11086
11086
|
function yi(r = {}) {
|
|
@@ -13829,7 +13829,7 @@ var Ur;
|
|
|
13829
13829
|
})(Ur || (Ur = {}));
|
|
13830
13830
|
const JA = (r, e = {
|
|
13831
13831
|
message: `Input not instance of ${r.name}`
|
|
13832
|
-
}) => fx((a) => a instanceof r, e),
|
|
13832
|
+
}) => fx((a) => a instanceof r, e), Jr = It.create;
|
|
13833
13833
|
Ai.create;
|
|
13834
13834
|
si.create;
|
|
13835
13835
|
ps.create;
|
|
@@ -28808,16 +28808,16 @@ const y3 = yW.getAllCountries().map((r) => ({ code: r.shortName, name: r.name })
|
|
|
28808
28808
|
);
|
|
28809
28809
|
xf.displayName = "CountrySelect";
|
|
28810
28810
|
const hD = y5(/* @__PURE__ */ new Date()), bD = ki({
|
|
28811
|
-
fullName:
|
|
28812
|
-
email:
|
|
28813
|
-
country:
|
|
28814
|
-
phone:
|
|
28811
|
+
fullName: Jr().min(2, "Full name must be at least 2 characters"),
|
|
28812
|
+
email: Jr().nonempty("Email is required").email("Invalid email"),
|
|
28813
|
+
country: Jr().min(1, "Country is required"),
|
|
28814
|
+
phone: Jr().min(1, "Phone number is required").refine((r) => Sp(r), {
|
|
28815
28815
|
message: "Invalid phone number"
|
|
28816
28816
|
}),
|
|
28817
28817
|
birth: l5({
|
|
28818
28818
|
required_error: "Birth date is required"
|
|
28819
28819
|
}).refine((r) => of(r, hD), { message: "You must be at least 16 years old" }),
|
|
28820
|
-
tax_identification_number:
|
|
28820
|
+
tax_identification_number: Jr().trim().min(2, "Tax Identification Number is required")
|
|
28821
28821
|
}), mD = ({
|
|
28822
28822
|
fullName: r,
|
|
28823
28823
|
email: e,
|
|
@@ -33535,11 +33535,11 @@ const Jt = new qM(), rV = (r, e, a, t, n, i, o, A) => {
|
|
|
33535
33535
|
if (Rr <= 0 || Fr <= 0) return null;
|
|
33536
33536
|
const Gr = document.createElement("canvas");
|
|
33537
33537
|
Gr.width = Rr, Gr.height = Fr;
|
|
33538
|
-
const
|
|
33538
|
+
const zr = Gr.getContext("2d", {
|
|
33539
33539
|
willReadFrequently: !1,
|
|
33540
33540
|
colorSpace: "srgb"
|
|
33541
33541
|
});
|
|
33542
|
-
return
|
|
33542
|
+
return zr && (zr.imageSmoothingEnabled = !0, zr.imageSmoothingQuality = "high", r === "selfie" ? zr.filter = "contrast(1.1) brightness(1.02)" : zr.filter = "contrast(1.15) brightness(1.05) saturate(1.05)", zr.drawImage($, z, dr, yr, $r, 0, 0, Rr, Fr)), Gr;
|
|
33543
33543
|
}
|
|
33544
33544
|
}, [h, a, r, A]), nr = H0(() => {
|
|
33545
33545
|
const $ = a.current;
|
|
@@ -33565,8 +33565,8 @@ const Jt = new qM(), rV = (r, e, a, t, n, i, o, A) => {
|
|
|
33565
33565
|
if (U <= 0 || ar <= 0) return null;
|
|
33566
33566
|
let Y = F * B, K = S * B, G = U * B, z = ar * B;
|
|
33567
33567
|
if (r === "selfie") {
|
|
33568
|
-
const
|
|
33569
|
-
Y = Math.max(0, Y -
|
|
33568
|
+
const zr = G * 0.2, Z = z * 0.2;
|
|
33569
|
+
Y = Math.max(0, Y - zr / 2), K = Math.max(0, K - Z / 2), G = Math.min($.videoWidth - Y, G + zr), z = Math.min($.videoHeight - K, z + Z);
|
|
33570
33570
|
}
|
|
33571
33571
|
if (G < p || z < p)
|
|
33572
33572
|
return null;
|
|
@@ -34015,12 +34015,12 @@ const aV = {
|
|
|
34015
34015
|
}
|
|
34016
34016
|
) })
|
|
34017
34017
|
] }) }), tV = ki({
|
|
34018
|
-
street:
|
|
34019
|
-
number:
|
|
34020
|
-
postal_code:
|
|
34021
|
-
city:
|
|
34022
|
-
address_country:
|
|
34023
|
-
state:
|
|
34018
|
+
street: Jr().min(1, "Street Address is required"),
|
|
34019
|
+
number: Jr().optional(),
|
|
34020
|
+
postal_code: Jr().min(1, "Postal code is required"),
|
|
34021
|
+
city: Jr().min(1, "City is required"),
|
|
34022
|
+
address_country: Jr().min(1, "Country is required"),
|
|
34023
|
+
state: Jr()
|
|
34024
34024
|
}), b9 = ({
|
|
34025
34025
|
data: r,
|
|
34026
34026
|
isBusinessAddress: e,
|
|
@@ -34641,7 +34641,7 @@ var p9 = { exports: {} };
|
|
|
34641
34641
|
function p(Zr, Ar, Cr) {
|
|
34642
34642
|
var ur, kr;
|
|
34643
34643
|
for (ar = Zr, Y = Ar, K = Cr, G = new Array(z), ur = 0; z > ur; ur++)
|
|
34644
|
-
G[ur] = new Array(4), kr = G[ur], kr[0] = kr[1] = kr[2] = (ur <<
|
|
34644
|
+
G[ur] = new Array(4), kr = G[ur], kr[0] = kr[1] = kr[2] = (ur << zr + 8) / z | 0, La[ur] = Q / z | 0, ya[ur] = 0;
|
|
34645
34645
|
}
|
|
34646
34646
|
function E() {
|
|
34647
34647
|
for (var Zr = [], Ar = new Array(z), Cr = 0; z > Cr; Cr++)
|
|
@@ -34668,11 +34668,11 @@ var p9 = { exports: {} };
|
|
|
34668
34668
|
}
|
|
34669
34669
|
function C() {
|
|
34670
34670
|
var Zr, Ar, Cr, ur, kr, cr, pr, r0, t0, h0, wa, $0, Ie, p4;
|
|
34671
|
-
for (Fr > Y && (K = 1), U = 30 + (K - 1) / 3, $0 = ar, Ie = 0, p4 = Y, wa = Y / (3 * K), h0 = wa / Z | 0, r0 = pe, cr = P0, pr = cr >>
|
|
34671
|
+
for (Fr > Y && (K = 1), U = 30 + (K - 1) / 3, $0 = ar, Ie = 0, p4 = Y, wa = Y / (3 * K), h0 = wa / Z | 0, r0 = pe, cr = P0, pr = cr >> Kr, 1 >= pr && (pr = 0), Zr = 0; pr > Zr; Zr++)
|
|
34672
34672
|
gt[Zr] = r0 * ((pr * pr - Zr * Zr) * Ve / (pr * pr));
|
|
34673
34673
|
for (t0 = Fr > Y ? 3 : Y % dr !== 0 ? 3 * dr : Y % yr !== 0 ? 3 * yr : Y % $r !== 0 ? 3 * $r : 3 * Rr, Zr = 0; wa > Zr; )
|
|
34674
|
-
if (Cr = (255 & $0[Ie + 0]) <<
|
|
34675
|
-
for (r0 -= r0 / U, cr -= cr / re, pr = cr >>
|
|
34674
|
+
if (Cr = (255 & $0[Ie + 0]) << zr, ur = (255 & $0[Ie + 1]) << zr, kr = (255 & $0[Ie + 2]) << zr, Ar = S(Cr, ur, kr), F(r0, Ar, Cr, ur, kr), pr !== 0 && P(pr, Ar, Cr, ur, kr), Ie += t0, Ie >= p4 && (Ie -= Y), Zr++, h0 === 0 && (h0 = 1), Zr % h0 === 0)
|
|
34675
|
+
for (r0 -= r0 / U, cr -= cr / re, pr = cr >> Kr, 1 >= pr && (pr = 0), Ar = 0; pr > Ar; Ar++)
|
|
34676
34676
|
gt[Ar] = r0 * ((pr * pr - Ar * Ar) * Ve / (pr * pr));
|
|
34677
34677
|
}
|
|
34678
34678
|
function _(Zr, Ar, Cr) {
|
|
@@ -34687,7 +34687,7 @@ var p9 = { exports: {} };
|
|
|
34687
34687
|
function x() {
|
|
34688
34688
|
var Zr;
|
|
34689
34689
|
for (Zr = 0; z > Zr; Zr++)
|
|
34690
|
-
G[Zr][0] >>=
|
|
34690
|
+
G[Zr][0] >>= zr, G[Zr][1] >>= zr, G[Zr][2] >>= zr, G[Zr][3] = Zr;
|
|
34691
34691
|
}
|
|
34692
34692
|
function P(Zr, Ar, Cr, ur, kr) {
|
|
34693
34693
|
var cr, pr, r0, t0, h0, wa, $0;
|
|
@@ -34715,10 +34715,10 @@ var p9 = { exports: {} };
|
|
|
34715
34715
|
function S(Zr, Ar, Cr) {
|
|
34716
34716
|
var ur, kr, cr, pr, r0, t0, h0, wa, $0, Ie;
|
|
34717
34717
|
for (wa = 2147483647, $0 = wa, t0 = -1, h0 = t0, ur = 0; z > ur; ur++)
|
|
34718
|
-
Ie = G[ur], kr = Ie[0] - Zr, 0 > kr && (kr = -kr), cr = Ie[1] - Ar, 0 > cr && (cr = -cr), kr += cr, cr = Ie[2] - Cr, 0 > cr && (cr = -cr), kr += cr, wa > kr && (wa = kr, t0 = ur), pr = kr - (ya[ur] >> V -
|
|
34718
|
+
Ie = G[ur], kr = Ie[0] - Zr, 0 > kr && (kr = -kr), cr = Ie[1] - Ar, 0 > cr && (cr = -cr), kr += cr, cr = Ie[2] - Cr, 0 > cr && (cr = -cr), kr += cr, wa > kr && (wa = kr, t0 = ur), pr = kr - (ya[ur] >> V - zr), $0 > pr && ($0 = pr, h0 = ur), r0 = La[ur] >> or, La[ur] -= r0, ya[ur] += r0 << fr;
|
|
34719
34719
|
return La[t0] += ir, ya[t0] -= mr, h0;
|
|
34720
34720
|
}
|
|
34721
|
-
var U, ar, Y, K, G, z = 256, dr = 499, yr = 491, $r = 487, Rr = 503, Fr = 3 * Rr, Gr = z - 1,
|
|
34721
|
+
var U, ar, Y, K, G, z = 256, dr = 499, yr = 491, $r = 487, Rr = 503, Fr = 3 * Rr, Gr = z - 1, zr = 4, Z = 100, V = 16, Q = 1 << V, fr = 10, or = 10, ir = Q >> or, mr = Q << fr - or, Hr = z >> 3, Kr = 6, y0 = 1 << Kr, P0 = Hr * y0, re = 30, pa = 10, pe = 1 << pa, va = 8, Ve = 1 << va, jt = pa + va, xe = 1 << jt, ve = [], ya = [], La = [], gt = [];
|
|
34722
34722
|
p.apply(this, arguments);
|
|
34723
34723
|
var he = {};
|
|
34724
34724
|
return he.map = _, he.process = B, he;
|
|
@@ -34772,14 +34772,14 @@ var p9 = { exports: {} };
|
|
|
34772
34772
|
Q |= P0 << V, V += Z, dr(8);
|
|
34773
34773
|
}
|
|
34774
34774
|
Y[K++] = G;
|
|
34775
|
-
var $r = K++, Rr = 1 << G, Fr = Rr - 1, Gr = Rr + 1,
|
|
34775
|
+
var $r = K++, Rr = 1 << G, Fr = Rr - 1, Gr = Rr + 1, zr = Gr + 1, Z = G + 1, V = 0, Q = 0, fr = z[0] & Fr, or = {};
|
|
34776
34776
|
yr(Rr);
|
|
34777
34777
|
for (var ir = 1, mr = z.length; mr > ir; ++ir) {
|
|
34778
|
-
var Hr = z[ir] & Fr,
|
|
34778
|
+
var Hr = z[ir] & Fr, Kr = fr << 8 | Hr, y0 = or[Kr];
|
|
34779
34779
|
if (y0 === i) {
|
|
34780
34780
|
for (Q |= fr << V, V += Z; V >= 8; )
|
|
34781
34781
|
Y[K++] = 255 & Q, Q >>= 8, V -= 8, K === $r + 256 && (Y[$r] = 255, $r = K++);
|
|
34782
|
-
|
|
34782
|
+
zr === 4096 ? (yr(Rr), zr = Gr + 1, Z = G + 1, or = {}) : (zr >= 1 << Z && ++Z, or[Kr] = zr++), fr = Hr;
|
|
34783
34783
|
} else
|
|
34784
34784
|
fr = y0;
|
|
34785
34785
|
}
|
|
@@ -34811,13 +34811,13 @@ var p9 = { exports: {} };
|
|
|
34811
34811
|
for (var Fr = _(Rr), Gr = 0; Fr >>= 1; )
|
|
34812
34812
|
++Gr;
|
|
34813
34813
|
Fr = 1 << Gr;
|
|
34814
|
-
var
|
|
34814
|
+
var zr = yr.delay === i ? 0 : yr.delay, Z = yr.disposal === i ? 0 : yr.disposal;
|
|
34815
34815
|
if (0 > Z || Z > 3)
|
|
34816
34816
|
throw "Disposal out of range.";
|
|
34817
34817
|
var V = !1, Q = 0;
|
|
34818
34818
|
if (yr.transparent !== i && yr.transparent !== null && (V = !0, Q = yr.transparent, 0 > Q || Q >= Fr))
|
|
34819
34819
|
throw "Transparent color index.";
|
|
34820
|
-
if ((Z !== 0 || V ||
|
|
34820
|
+
if ((Z !== 0 || V || zr !== 0) && (p[x++] = 33, p[x++] = 249, p[x++] = 4, p[x++] = Z << 2 | (V === !0 ? 1 : 0), p[x++] = 255 & zr, p[x++] = zr >> 8 & 255, p[x++] = Q, p[x++] = 0), p[x++] = 44, p[x++] = 255 & Y, p[x++] = Y >> 8 & 255, p[x++] = 255 & K, p[x++] = K >> 8 & 255, p[x++] = 255 & G, p[x++] = G >> 8 & 255, p[x++] = 255 & z, p[x++] = z >> 8 & 255, p[x++] = $r === !0 ? 128 | Gr - 1 : 0, $r === !0)
|
|
34821
34821
|
for (var fr = 0, or = Rr.length; or > fr; ++fr) {
|
|
34822
34822
|
var ir = Rr[fr];
|
|
34823
34823
|
p[x++] = ir >> 16 & 255, p[x++] = ir >> 8 & 255, p[x++] = 255 & ir;
|
|
@@ -35060,9 +35060,9 @@ var p9 = { exports: {} };
|
|
|
35060
35060
|
this.repeat = p;
|
|
35061
35061
|
}, addFrame: function(p, E, y) {
|
|
35062
35062
|
E = k.isObject(E) ? E : {};
|
|
35063
|
-
var C = this, _ = C.ctx, B = C.options, x = B.gifWidth, P = B.gifHeight, F = k.getFontSize(E), S = E, U = S.filter, ar = S.fontColor, Y = S.fontFamily, K = S.fontWeight, G = (S.gifHeight, S.gifWidth, S.text), z = S.textAlign, dr = S.textBaseline, yr = S.waterMark, $r = S.waterMarkHeight, Rr = S.waterMarkWidth, Fr = S.waterMarkXCoordinate, Gr = S.waterMarkYCoordinate,
|
|
35063
|
+
var C = this, _ = C.ctx, B = C.options, x = B.gifWidth, P = B.gifHeight, F = k.getFontSize(E), S = E, U = S.filter, ar = S.fontColor, Y = S.fontFamily, K = S.fontWeight, G = (S.gifHeight, S.gifWidth, S.text), z = S.textAlign, dr = S.textBaseline, yr = S.waterMark, $r = S.waterMarkHeight, Rr = S.waterMarkWidth, Fr = S.waterMarkXCoordinate, Gr = S.waterMarkYCoordinate, zr = E.textXCoordinate ? E.textXCoordinate : z === "left" ? 1 : z === "right" ? x : x / 2, Z = E.textYCoordinate ? E.textYCoordinate : dr === "top" ? 1 : dr === "center" ? P / 2 : P, V = K + " " + F + " " + Y, Q = y && E.showFrameText ? y : G, fr = void 0;
|
|
35064
35064
|
try {
|
|
35065
|
-
_.filter = U, _.drawImage(p, 0, 0, x, P), Q && (_.font = V, _.fillStyle = ar, _.textAlign = z, _.textBaseline = dr, _.fillText(Q,
|
|
35065
|
+
_.filter = U, _.drawImage(p, 0, 0, x, P), Q && (_.font = V, _.fillStyle = ar, _.textAlign = z, _.textBaseline = dr, _.fillText(Q, zr, Z)), yr && _.drawImage(yr, Fr, Gr, Rr, $r), fr = _.getImageData(0, 0, x, P), C.addFrameImageData(fr);
|
|
35066
35066
|
} catch (or) {
|
|
35067
35067
|
return "" + or;
|
|
35068
35068
|
}
|
|
@@ -35093,7 +35093,7 @@ var p9 = { exports: {} };
|
|
|
35093
35093
|
}, H = { getGIF: function() {
|
|
35094
35094
|
var p = arguments.length > 0 && arguments[0] !== i ? arguments[0] : {}, E = arguments[1];
|
|
35095
35095
|
E = k.isFunction(E) ? E : $;
|
|
35096
|
-
var y = t.createElement("canvas"), C = void 0, _ = p.images, B = !!_.length, x = p.cameraStream, P = p.crop, F = p.filter, S = p.fontColor, U = p.fontFamily, ar = p.fontWeight, Y = p.keepCameraOn, K = (p.numWorkers, p.progressCallback), G = p.saveRenderingContexts, z = p.savedRenderingContexts, dr = p.text, yr = p.textAlign, $r = p.textBaseline, Rr = p.videoElement, Fr = p.videoHeight, Gr = p.videoWidth,
|
|
35096
|
+
var y = t.createElement("canvas"), C = void 0, _ = p.images, B = !!_.length, x = p.cameraStream, P = p.crop, F = p.filter, S = p.fontColor, U = p.fontFamily, ar = p.fontWeight, Y = p.keepCameraOn, K = (p.numWorkers, p.progressCallback), G = p.saveRenderingContexts, z = p.savedRenderingContexts, dr = p.text, yr = p.textAlign, $r = p.textBaseline, Rr = p.videoElement, Fr = p.videoHeight, Gr = p.videoWidth, zr = p.webcamVideoElement, Z = p.waterMark, V = p.waterMarkHeight, Q = p.waterMarkWidth, fr = p.waterMarkXCoordinate, or = p.waterMarkYCoordinate, ir = Number(p.gifWidth), mr = Number(p.gifHeight), Hr = Number(p.interval), Kr = (Number(p.sampleInterval), B ? 0 : 1e3 * Hr), y0 = [], P0 = z.length ? z.length : p.numFrames, re = P0, pa = new tr(p), pe = k.getFontSize(p), va = p.textXCoordinate ? p.textXCoordinate : yr === "left" ? 1 : yr === "right" ? ir : ir / 2, Ve = p.textYCoordinate ? p.textYCoordinate : $r === "top" ? 1 : $r === "center" ? mr / 2 : mr, jt = ar + " " + pe + " " + U, xe = P ? Math.floor(P.scaledWidth / 2) : 0, ve = P ? Gr - P.scaledWidth : 0, ya = P ? Math.floor(P.scaledHeight / 2) : 0, La = P ? Fr - P.scaledHeight : 0, gt = function he() {
|
|
35097
35097
|
function Zr() {
|
|
35098
35098
|
try {
|
|
35099
35099
|
ve > Gr && (ve = Gr), La > Fr && (La = Fr), 0 > xe && (xe = 0), 0 > ya && (ya = 0), C.filter = F, C.drawImage(Rr, xe, ya, ve, La, 0, 0, ir, mr), Ar();
|
|
@@ -35105,8 +35105,8 @@ var p9 = { exports: {} };
|
|
|
35105
35105
|
}
|
|
35106
35106
|
function Ar() {
|
|
35107
35107
|
var ur = void 0;
|
|
35108
|
-
G && y0.push(C.getImageData(0, 0, ir, mr)), Z && C.drawImage(Z, fr, or, Q, V), dr && (C.font = jt, C.fillStyle = S, C.textAlign = yr, C.textBaseline = $r, C.fillText(dr, va, Ve)), ur = C.getImageData(0, 0, ir, mr), pa.addFrameImageData(ur), re = Cr, K((P0 - re) / P0), Cr > 0 && k.requestTimeout(he,
|
|
35109
|
-
E({ error: !1, errorCode: "", errorMsg: "", image: kr, cameraStream: x, videoElement: Rr, webcamVideoElement:
|
|
35108
|
+
G && y0.push(C.getImageData(0, 0, ir, mr)), Z && C.drawImage(Z, fr, or, Q, V), dr && (C.font = jt, C.fillStyle = S, C.textAlign = yr, C.textBaseline = $r, C.fillText(dr, va, Ve)), ur = C.getImageData(0, 0, ir, mr), pa.addFrameImageData(ur), re = Cr, K((P0 - re) / P0), Cr > 0 && k.requestTimeout(he, Kr), re || pa.getBase64GIF(function(kr) {
|
|
35109
|
+
E({ error: !1, errorCode: "", errorMsg: "", image: kr, cameraStream: x, videoElement: Rr, webcamVideoElement: zr, savedRenderingContexts: y0, keepCameraOn: Y });
|
|
35110
35110
|
});
|
|
35111
35111
|
}
|
|
35112
35112
|
var Cr = re - 1;
|
|
@@ -35840,11 +35840,23 @@ const $c = 5, hV = 10, ts = {
|
|
|
35840
35840
|
) })
|
|
35841
35841
|
] }) });
|
|
35842
35842
|
}, gV = ki({
|
|
35843
|
-
industry:
|
|
35844
|
-
business_model:
|
|
35845
|
-
avg_transaction_size:
|
|
35846
|
-
monthly_sales_volume:
|
|
35847
|
-
website_url:
|
|
35843
|
+
industry: Jr().min(1, "Industry is required"),
|
|
35844
|
+
business_model: Jr().min(1, "Business model is required"),
|
|
35845
|
+
avg_transaction_size: Jr().trim().min(1, "Average transaction size is required").refine((r) => !isNaN(Number(r)), { message: "Must be a valid number" }).refine((r) => Number(r) > 0, { message: "Must be greater than 0" }),
|
|
35846
|
+
monthly_sales_volume: Jr().trim().min(1, "Monthly sales volume is required").refine((r) => !isNaN(Number(r)), { message: "Must be a valid number" }).refine((r) => Number(r) > 0, { message: "Must be greater than 0" }),
|
|
35847
|
+
website_url: Jr().min(1, "Website URL is required").transform((r) => r.startsWith("http://") || r.startsWith("https://") ? r : `https://${r}`).pipe(Jr().url()).refine(
|
|
35848
|
+
(r) => {
|
|
35849
|
+
try {
|
|
35850
|
+
const a = new URL(r).hostname;
|
|
35851
|
+
return a.includes(".") && /^[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$/.test(a) || /^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(a);
|
|
35852
|
+
} catch {
|
|
35853
|
+
return !1;
|
|
35854
|
+
}
|
|
35855
|
+
},
|
|
35856
|
+
{
|
|
35857
|
+
message: "Please enter a valid domain (e.g. example.com)"
|
|
35858
|
+
}
|
|
35859
|
+
)
|
|
35848
35860
|
}), pV = [
|
|
35849
35861
|
{ value: "technology", label: "Technology" },
|
|
35850
35862
|
{ value: "finance", label: "Finance" },
|
|
@@ -36108,13 +36120,13 @@ const $c = 5, hV = 10, ts = {
|
|
|
36108
36120
|
);
|
|
36109
36121
|
v9.displayName = "MccCodeSelect";
|
|
36110
36122
|
const EV = ki({
|
|
36111
|
-
registration_number:
|
|
36112
|
-
mcc_code:
|
|
36113
|
-
country:
|
|
36114
|
-
company_name:
|
|
36115
|
-
tax_identity_number:
|
|
36116
|
-
doing_business_as:
|
|
36117
|
-
corporate_type:
|
|
36123
|
+
registration_number: Jr().min(1, "Registration number is required"),
|
|
36124
|
+
mcc_code: Jr().min(1, "MCC code is required"),
|
|
36125
|
+
country: Jr().min(1, "Country is required"),
|
|
36126
|
+
company_name: Jr().min(2, "Company name must be at least 2 characters"),
|
|
36127
|
+
tax_identity_number: Jr().min(1, "Tax identity number is required"),
|
|
36128
|
+
doing_business_as: Jr().trim().min(1, "Doing Business As (DBA) is required"),
|
|
36129
|
+
corporate_type: Jr().min(1, "Corporate type is required"),
|
|
36118
36130
|
date_of_establishment: ux.date({
|
|
36119
36131
|
required_error: "Date of establishment is required"
|
|
36120
36132
|
})
|
|
@@ -36311,14 +36323,14 @@ const EV = ki({
|
|
|
36311
36323
|
] })
|
|
36312
36324
|
] });
|
|
36313
36325
|
}, NV = y5(/* @__PURE__ */ new Date()), xV = ki({
|
|
36314
|
-
full_name:
|
|
36315
|
-
title:
|
|
36316
|
-
email:
|
|
36326
|
+
full_name: Jr().min(2, "Full name must be at least 2 characters"),
|
|
36327
|
+
title: Jr().min(1, "Title is required"),
|
|
36328
|
+
email: Jr().min(1, "Email is required").email("Invalid email format"),
|
|
36317
36329
|
birth: l5({
|
|
36318
36330
|
required_error: "Birth date is required"
|
|
36319
36331
|
}).refine((r) => of(r, NV), { message: "You must be at least 16 years old" }),
|
|
36320
|
-
phone_number:
|
|
36321
|
-
ssn_or_equivalent:
|
|
36332
|
+
phone_number: Jr().min(1, "Phone number is required").refine((r) => Sp(r), { message: "Invalid phone number" }),
|
|
36333
|
+
ssn_or_equivalent: Jr().trim().min(1, "SSN / Equivalent is required")
|
|
36322
36334
|
}), IV = ({
|
|
36323
36335
|
data: r,
|
|
36324
36336
|
onDataChange: e,
|
|
@@ -36462,20 +36474,20 @@ const EV = ki({
|
|
|
36462
36474
|
] })
|
|
36463
36475
|
] });
|
|
36464
36476
|
}, BV = ki({
|
|
36465
|
-
inventory_maintained:
|
|
36466
|
-
offsite_address:
|
|
36477
|
+
inventory_maintained: Jr().min(1, "Please select an inventory option"),
|
|
36478
|
+
offsite_address: Jr().optional(),
|
|
36467
36479
|
fulfillment_agreement: JA(File).nullable().optional(),
|
|
36468
|
-
other_companies_involved:
|
|
36480
|
+
other_companies_involved: Jr().min(1, "Please select an option"),
|
|
36469
36481
|
other_fulfillment_agreement: JA(File).nullable().optional(),
|
|
36470
|
-
recurring_services:
|
|
36471
|
-
recurring_services_description:
|
|
36472
|
-
fulfillment_time:
|
|
36473
|
-
delivery_time:
|
|
36474
|
-
charge_time:
|
|
36475
|
-
return_policy:
|
|
36476
|
-
bankruptcy_filed:
|
|
36477
|
-
was_terminated_from_card_acceptance:
|
|
36478
|
-
has_coa:
|
|
36482
|
+
recurring_services: Jr().min(1, "Please select an option"),
|
|
36483
|
+
recurring_services_description: Jr().optional(),
|
|
36484
|
+
fulfillment_time: Jr().min(1, "Please select a fulfillment time"),
|
|
36485
|
+
delivery_time: Jr().min(1, "Please select a delivery time"),
|
|
36486
|
+
charge_time: Jr().min(1, "Please select a charge time"),
|
|
36487
|
+
return_policy: Jr().min(1, "Return policy is required"),
|
|
36488
|
+
bankruptcy_filed: Jr().min(1, "Please select an option"),
|
|
36489
|
+
was_terminated_from_card_acceptance: Jr().min(1, "Please select an option"),
|
|
36490
|
+
has_coa: Jr().min(1, "Please select an option"),
|
|
36479
36491
|
coa_document: JA(File).nullable().optional()
|
|
36480
36492
|
}).superRefine((r, e) => {
|
|
36481
36493
|
var a, t;
|
|
@@ -36993,7 +37005,7 @@ const EV = ki({
|
|
|
36993
37005
|
const dr = (Fr) => {
|
|
36994
37006
|
if (!Fr) return !0;
|
|
36995
37007
|
const Gr = Object.entries(Fr);
|
|
36996
|
-
return Gr.length === 0 || Gr.length === 1 && Gr[0][0] === "document_type" ? !0 : Gr.every(([
|
|
37008
|
+
return Gr.length === 0 || Gr.length === 1 && Gr[0][0] === "document_type" ? !0 : Gr.every(([zr, Z]) => Z == null || typeof Z == "string" && Z.trim() === "");
|
|
36997
37009
|
};
|
|
36998
37010
|
let yr = "";
|
|
36999
37011
|
if ((F = z.personal_details) != null && F.document_type) {
|
|
@@ -37006,8 +37018,8 @@ const EV = ki({
|
|
|
37006
37018
|
const $r = !dr(z.personal_details) || !dr(z.business_information) || !dr(z.business_address) || !dr(z.company_activity) || !dr(z.questionary) || !dr(z.company_documents);
|
|
37007
37019
|
let Rr = "landing";
|
|
37008
37020
|
if ($r) {
|
|
37009
|
-
const Fr = z.personal_details || {}, Gr = Fr.document_type ? Tm[Fr.document_type] : yr,
|
|
37010
|
-
!
|
|
37021
|
+
const Fr = z.personal_details || {}, Gr = Fr.document_type ? Tm[Fr.document_type] : yr, zr = !!((U = Fr.full_name) != null && U.trim()), Z = !!((ar = Fr.email) != null && ar.trim()), V = !!((Y = Fr.title) != null && Y.trim()), Q = !!Fr.birth, fr = !!((K = Fr.phone_number) != null && K.trim()), or = !!Fr.id_photo, ir = Gr === "passport" ? !0 : !!Fr.id_photo_back, mr = !!Fr.selfie_photo;
|
|
37022
|
+
!zr || !Z || !V || !Q || !fr ? Rr = "personal-details" : Gr ? or ? ir ? mr ? dr(z.business_information) ? Rr = "business-information" : dr(z.business_address) ? Rr = "business-address" : dr(z.company_activity) ? Rr = "company-activity" : d.enable_business_questionnaire && dr(z.questionary) ? Rr = "questionary" : dr(z.company_documents) ? Rr = "company-documents" : Rr = "processing" : Rr = "pre-selfie" : Rr = "id-back" : Rr = "id-front" : Rr = "document-selection";
|
|
37011
37023
|
}
|
|
37012
37024
|
c(Rr), z.personal_details && R({
|
|
37013
37025
|
full_name: z.personal_details.full_name || "",
|