@getcredify/credify-insurance-widget 1.38.1 → 1.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iframe/assets/{iframe-gQktg9dS.js → iframe-CAjv9kgJ.js} +18 -18
- package/dist/iframe/assets/iframe-CAjv9kgJ.js.map +1 -0
- package/dist/iframe/iframe.html +1 -1
- package/dist/index.es.js +191 -191
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/iframe/assets/iframe-gQktg9dS.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -198,20 +198,20 @@ function si(e) {
|
|
|
198
198
|
return Gr(e, Error);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Hn(e, t) {
|
|
202
202
|
return km.call(e) === `[object ${t}]`;
|
|
203
203
|
}
|
|
204
204
|
function Pm(e) {
|
|
205
|
-
return
|
|
205
|
+
return Hn(e, "ErrorEvent");
|
|
206
206
|
}
|
|
207
207
|
function ec(e) {
|
|
208
|
-
return
|
|
208
|
+
return Hn(e, "DOMError");
|
|
209
209
|
}
|
|
210
210
|
function B_(e) {
|
|
211
|
-
return
|
|
211
|
+
return Hn(e, "DOMException");
|
|
212
212
|
}
|
|
213
213
|
function or(e) {
|
|
214
|
-
return
|
|
214
|
+
return Hn(e, "String");
|
|
215
215
|
}
|
|
216
216
|
function zu(e) {
|
|
217
217
|
return typeof e == "object" && e !== null && "__sentry_template_string__" in e && "__sentry_template_values__" in e;
|
|
@@ -219,8 +219,8 @@ function zu(e) {
|
|
|
219
219
|
function ju(e) {
|
|
220
220
|
return e === null || zu(e) || typeof e != "object" && typeof e != "function";
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
return
|
|
222
|
+
function Pn(e) {
|
|
223
|
+
return Hn(e, "Object");
|
|
224
224
|
}
|
|
225
225
|
function ui(e) {
|
|
226
226
|
return typeof Event < "u" && Gr(e, Event);
|
|
@@ -229,13 +229,13 @@ function L_(e) {
|
|
|
229
229
|
return typeof Element < "u" && Gr(e, Element);
|
|
230
230
|
}
|
|
231
231
|
function U_(e) {
|
|
232
|
-
return
|
|
232
|
+
return Hn(e, "RegExp");
|
|
233
233
|
}
|
|
234
234
|
function li(e) {
|
|
235
235
|
return !!(e && e.then && typeof e.then == "function");
|
|
236
236
|
}
|
|
237
237
|
function H_(e) {
|
|
238
|
-
return
|
|
238
|
+
return Pn(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
|
|
239
239
|
}
|
|
240
240
|
function Gr(e, t) {
|
|
241
241
|
try {
|
|
@@ -454,7 +454,7 @@ function Fs(e, t) {
|
|
|
454
454
|
return e;
|
|
455
455
|
}
|
|
456
456
|
function K_(e) {
|
|
457
|
-
if (!
|
|
457
|
+
if (!Pn(e))
|
|
458
458
|
return !1;
|
|
459
459
|
try {
|
|
460
460
|
const t = Object.getPrototypeOf(e).constructor.name;
|
|
@@ -516,7 +516,7 @@ function Os(e, t, r) {
|
|
|
516
516
|
const n = e.exception = e.exception || {}, a = n.values = n.values || [], o = a[0] = a[0] || {};
|
|
517
517
|
o.value || (o.value = t || ""), o.type || (o.type = "Error");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Nn(e, t) {
|
|
520
520
|
const r = Om(e);
|
|
521
521
|
if (!r)
|
|
522
522
|
return;
|
|
@@ -668,9 +668,9 @@ function J_(e) {
|
|
|
668
668
|
ignoreDuration: !1,
|
|
669
669
|
toJSON: () => X_(r)
|
|
670
670
|
};
|
|
671
|
-
return e &&
|
|
671
|
+
return e && In(r, e), r;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function In(e, t = {}) {
|
|
674
674
|
if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || ir(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : Rt()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration)
|
|
675
675
|
e.duration = void 0;
|
|
676
676
|
else if (typeof t.duration == "number")
|
|
@@ -683,7 +683,7 @@ function Rn(e, t = {}) {
|
|
|
683
683
|
}
|
|
684
684
|
function Q_(e, t) {
|
|
685
685
|
let r = {};
|
|
686
|
-
e.status === "ok" && (r = { status: "exited" }),
|
|
686
|
+
e.status === "ok" && (r = { status: "exited" }), In(e, r);
|
|
687
687
|
}
|
|
688
688
|
function X_(e) {
|
|
689
689
|
return Nt({
|
|
@@ -818,7 +818,7 @@ class Gu {
|
|
|
818
818
|
id: void 0,
|
|
819
819
|
ip_address: void 0,
|
|
820
820
|
username: void 0
|
|
821
|
-
}, this._session &&
|
|
821
|
+
}, this._session && In(this._session, { user: t }), this._notifyScopeListeners(), this;
|
|
822
822
|
}
|
|
823
823
|
/**
|
|
824
824
|
* @inheritDoc
|
|
@@ -923,7 +923,7 @@ class Gu {
|
|
|
923
923
|
const r = typeof t == "function" ? t(this) : t, [n, a] = r instanceof Ar ? (
|
|
924
924
|
// eslint-disable-next-line deprecation/deprecation
|
|
925
925
|
[r.getScopeData(), r.getRequestSession()]
|
|
926
|
-
) :
|
|
926
|
+
) : Pn(r) ? [t, t.requestSession] : [], { tags: o, extra: i, user: s, contexts: u, level: l, fingerprint: c = [], propagationContext: d } = n || {};
|
|
927
927
|
return this._tags = { ...this._tags, ...o }, this._extra = { ...this._extra, ...i }, this._contexts = { ...this._contexts, ...u }, s && Object.keys(s).length && (this._user = s), l && (this._level = l), c.length && (this._fingerprint = c), d && (this._propagationContext = d), a && (this._requestSession = a), this;
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
@@ -1137,19 +1137,19 @@ class nv {
|
|
|
1137
1137
|
return this._stack.length <= 1 ? !1 : !!this._stack.pop();
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Rn() {
|
|
1141
1141
|
const e = ii(), t = Vu(e);
|
|
1142
1142
|
return t.stack = t.stack || new nv(tv(), rv());
|
|
1143
1143
|
}
|
|
1144
1144
|
function av(e) {
|
|
1145
|
-
return
|
|
1145
|
+
return Rn().withScope(e);
|
|
1146
1146
|
}
|
|
1147
1147
|
function ov(e, t) {
|
|
1148
|
-
const r =
|
|
1148
|
+
const r = Rn();
|
|
1149
1149
|
return r.withScope(() => (r.getStackTop().scope = e, t(e)));
|
|
1150
1150
|
}
|
|
1151
1151
|
function uc(e) {
|
|
1152
|
-
return
|
|
1152
|
+
return Rn().withScope(() => e(Rn().getIsolationScope()));
|
|
1153
1153
|
}
|
|
1154
1154
|
function iv() {
|
|
1155
1155
|
return {
|
|
@@ -1157,8 +1157,8 @@ function iv() {
|
|
|
1157
1157
|
withScope: av,
|
|
1158
1158
|
withSetScope: ov,
|
|
1159
1159
|
withSetIsolationScope: (e, t) => uc(t),
|
|
1160
|
-
getCurrentScope: () =>
|
|
1161
|
-
getIsolationScope: () =>
|
|
1160
|
+
getCurrentScope: () => Rn().getScope(),
|
|
1161
|
+
getIsolationScope: () => Rn().getIsolationScope()
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
1164
1164
|
function Ku(e) {
|
|
@@ -1731,7 +1731,7 @@ function o4(e, t, r, n, a, o) {
|
|
|
1731
1731
|
}, l = r.integrations || e.integrations.map((b) => b.name);
|
|
1732
1732
|
i4(u, e), l4(u, l), a && a.emit("applyFrameMetadata", t), t.type === void 0 && s4(u, e.stackParser);
|
|
1733
1733
|
const c = d4(n, r.captureContext);
|
|
1734
|
-
r.mechanism &&
|
|
1734
|
+
r.mechanism && Nn(u, r.mechanism);
|
|
1735
1735
|
const d = a ? a.getEventProcessors() : [], f = sv().getScopeData();
|
|
1736
1736
|
if (o) {
|
|
1737
1737
|
const b = o.getScopeData();
|
|
@@ -1872,7 +1872,7 @@ function yc(e) {
|
|
|
1872
1872
|
...i && { userAgent: i },
|
|
1873
1873
|
...e
|
|
1874
1874
|
}), u = r.getSession();
|
|
1875
|
-
return u && u.status === "ok" &&
|
|
1875
|
+
return u && u.status === "ok" && In(u, { status: "exited" }), Wm(), r.setSession(s), n.setSession(s), s;
|
|
1876
1876
|
}
|
|
1877
1877
|
function Wm() {
|
|
1878
1878
|
const e = cn(), t = Gt(), r = t.getSession() || e.getSession();
|
|
@@ -2079,7 +2079,7 @@ class A4 {
|
|
|
2079
2079
|
* @inheritDoc
|
|
2080
2080
|
*/
|
|
2081
2081
|
captureSession(t) {
|
|
2082
|
-
typeof t.release != "string" ? Be && $e.warn("Discarded session because of missing or non-string release") : (this.sendSession(t),
|
|
2082
|
+
typeof t.release != "string" ? Be && $e.warn("Discarded session because of missing or non-string release") : (this.sendSession(t), In(t, { init: !1 }));
|
|
2083
2083
|
}
|
|
2084
2084
|
/**
|
|
2085
2085
|
* @inheritDoc
|
|
@@ -2223,7 +2223,7 @@ class A4 {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
2225
|
const i = t.status === "ok";
|
|
2226
|
-
(i && t.errors === 0 || i && n) && (
|
|
2226
|
+
(i && t.errors === 0 || i && n) && (In(t, {
|
|
2227
2227
|
...n && { status: "crashed" },
|
|
2228
2228
|
errors: t.errors || Number(a || n)
|
|
2229
2229
|
}), this.captureSession(t));
|
|
@@ -2408,7 +2408,7 @@ function T4(e, t) {
|
|
|
2408
2408
|
if (li(e))
|
|
2409
2409
|
return e.then(
|
|
2410
2410
|
(n) => {
|
|
2411
|
-
if (!
|
|
2411
|
+
if (!Pn(n) && n !== null)
|
|
2412
2412
|
throw new Lt(r);
|
|
2413
2413
|
return n;
|
|
2414
2414
|
},
|
|
@@ -2416,7 +2416,7 @@ function T4(e, t) {
|
|
|
2416
2416
|
throw new Lt(`${t} rejected with ${n}`);
|
|
2417
2417
|
}
|
|
2418
2418
|
);
|
|
2419
|
-
if (!
|
|
2419
|
+
if (!Pn(e) && e !== null)
|
|
2420
2420
|
throw new Lt(r);
|
|
2421
2421
|
return e;
|
|
2422
2422
|
}
|
|
@@ -3020,7 +3020,7 @@ function D3() {
|
|
|
3020
3020
|
Gs--;
|
|
3021
3021
|
});
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3023
|
+
function Mn(e, t = {}) {
|
|
3024
3024
|
function r(a) {
|
|
3025
3025
|
return typeof a == "function";
|
|
3026
3026
|
}
|
|
@@ -3037,11 +3037,11 @@ function Fn(e, t = {}) {
|
|
|
3037
3037
|
}
|
|
3038
3038
|
const n = function(...a) {
|
|
3039
3039
|
try {
|
|
3040
|
-
const o = a.map((i) =>
|
|
3040
|
+
const o = a.map((i) => Mn(i, t));
|
|
3041
3041
|
return e.apply(this, o);
|
|
3042
3042
|
} catch (o) {
|
|
3043
3043
|
throw D3(), Yu((i) => {
|
|
3044
|
-
i.addEventProcessor((s) => (t.mechanism && (Os(s, void 0),
|
|
3044
|
+
i.addEventProcessor((s) => (t.mechanism && (Os(s, void 0), Nn(s, t.mechanism)), s.extra = {
|
|
3045
3045
|
...s.extra,
|
|
3046
3046
|
arguments: a
|
|
3047
3047
|
}, s)), fi(o);
|
|
@@ -3135,7 +3135,7 @@ function A3(e) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
function T3(e, t, r, n) {
|
|
3137
3137
|
const a = r && r.syntheticException || void 0, o = el(e, t, a, n);
|
|
3138
|
-
return
|
|
3138
|
+
return Nn(o), o.level = "error", r && r.event_id && (o.event_id = r.event_id), Yr(o);
|
|
3139
3139
|
}
|
|
3140
3140
|
function k3(e, t, r = "info", n, a) {
|
|
3141
3141
|
const o = n && n.syntheticException || void 0, i = Ks(e, t, o, a);
|
|
@@ -3155,9 +3155,9 @@ function el(e, t, r, n, a) {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
return "code" in i && (o.tags = { ...o.tags, "DOMException.code": `${i.code}` }), o;
|
|
3157
3157
|
}
|
|
3158
|
-
return si(t) ? ji(e, t) :
|
|
3158
|
+
return si(t) ? ji(e, t) : Pn(t) || ui(t) ? (o = E3(e, t, r, a), Nn(o, {
|
|
3159
3159
|
synthetic: !0
|
|
3160
|
-
}), o) : (o = Ks(e, t, r, n), Os(o, `${t}`),
|
|
3160
|
+
}), o) : (o = Ks(e, t, r, n), Os(o, `${t}`), Nn(o, {
|
|
3161
3161
|
synthetic: !0
|
|
3162
3162
|
}), o);
|
|
3163
3163
|
}
|
|
@@ -3167,7 +3167,7 @@ function Ks(e, t, r, n) {
|
|
|
3167
3167
|
const o = Xu(e, r);
|
|
3168
3168
|
o.length && (a.exception = {
|
|
3169
3169
|
values: [{ value: t, stacktrace: { frames: o } }]
|
|
3170
|
-
}),
|
|
3170
|
+
}), Nn(a, { synthetic: !0 });
|
|
3171
3171
|
}
|
|
3172
3172
|
if (zu(t)) {
|
|
3173
3173
|
const { __sentry_template_string__: o, __sentry_template_values__: i } = t;
|
|
@@ -3400,7 +3400,7 @@ function W3(e) {
|
|
|
3400
3400
|
function Pc(e) {
|
|
3401
3401
|
mo[e] = void 0;
|
|
3402
3402
|
}
|
|
3403
|
-
const
|
|
3403
|
+
const Xn = "__sentry_xhr_v3__";
|
|
3404
3404
|
function Z3(e) {
|
|
3405
3405
|
un("xhr", e), ln("xhr", G3);
|
|
3406
3406
|
}
|
|
@@ -3413,13 +3413,13 @@ function G3() {
|
|
|
3413
3413
|
const a = new Error(), o = ir() * 1e3, i = or(n[0]) ? n[0].toUpperCase() : void 0, s = K3(n[1]);
|
|
3414
3414
|
if (!i || !s)
|
|
3415
3415
|
return t.apply(r, n);
|
|
3416
|
-
r[
|
|
3416
|
+
r[Xn] = {
|
|
3417
3417
|
method: i,
|
|
3418
3418
|
url: s,
|
|
3419
3419
|
request_headers: {}
|
|
3420
3420
|
}, i === "POST" && s.match(/sentry_key/) && (r.__sentry_own_request__ = !0);
|
|
3421
3421
|
const u = () => {
|
|
3422
|
-
const l = r[
|
|
3422
|
+
const l = r[Xn];
|
|
3423
3423
|
if (l && r.readyState === 4) {
|
|
3424
3424
|
try {
|
|
3425
3425
|
l.status_code = r.status;
|
|
@@ -3440,14 +3440,14 @@ function G3() {
|
|
|
3440
3440
|
}
|
|
3441
3441
|
}) : r.addEventListener("readystatechange", u), r.setRequestHeader = new Proxy(r.setRequestHeader, {
|
|
3442
3442
|
apply(l, c, d) {
|
|
3443
|
-
const [f, m] = d, p = c[
|
|
3443
|
+
const [f, m] = d, p = c[Xn];
|
|
3444
3444
|
return p && or(f) && or(m) && (p.request_headers[f.toLowerCase()] = m), l.apply(c, d);
|
|
3445
3445
|
}
|
|
3446
3446
|
}), t.apply(r, n);
|
|
3447
3447
|
}
|
|
3448
3448
|
}), e.send = new Proxy(e.send, {
|
|
3449
3449
|
apply(t, r, n) {
|
|
3450
|
-
const a = r[
|
|
3450
|
+
const a = r[Xn];
|
|
3451
3451
|
if (!a)
|
|
3452
3452
|
return t.apply(r, n);
|
|
3453
3453
|
n[0] !== void 0 && (a.body = n[0]);
|
|
@@ -3635,7 +3635,7 @@ function h$(e) {
|
|
|
3635
3635
|
return function(r) {
|
|
3636
3636
|
if (tt() !== e)
|
|
3637
3637
|
return;
|
|
3638
|
-
const { startTimestamp: n, endTimestamp: a } = r, o = r.xhr[
|
|
3638
|
+
const { startTimestamp: n, endTimestamp: a } = r, o = r.xhr[Xn];
|
|
3639
3639
|
if (!n || !a || !o)
|
|
3640
3640
|
return;
|
|
3641
3641
|
const { method: i, url: s, status_code: u, body: l } = o, c = {
|
|
@@ -3778,7 +3778,7 @@ const _$ = [
|
|
|
3778
3778
|
function Nc(e) {
|
|
3779
3779
|
return function(...t) {
|
|
3780
3780
|
const r = t[0];
|
|
3781
|
-
return t[0] =
|
|
3781
|
+
return t[0] = Mn(r, {
|
|
3782
3782
|
mechanism: {
|
|
3783
3783
|
data: { function: xr(e) },
|
|
3784
3784
|
handled: !1,
|
|
@@ -3790,7 +3790,7 @@ function Nc(e) {
|
|
|
3790
3790
|
function E$(e) {
|
|
3791
3791
|
return function(t) {
|
|
3792
3792
|
return e.apply(this, [
|
|
3793
|
-
|
|
3793
|
+
Mn(t, {
|
|
3794
3794
|
mechanism: {
|
|
3795
3795
|
data: {
|
|
3796
3796
|
function: "requestAnimationFrame",
|
|
@@ -3818,7 +3818,7 @@ function S$(e) {
|
|
|
3818
3818
|
type: "instrument"
|
|
3819
3819
|
}
|
|
3820
3820
|
}, s = Zu(o);
|
|
3821
|
-
return s && (i.mechanism.data.handler = xr(s)),
|
|
3821
|
+
return s && (i.mechanism.data.handler = xr(s)), Mn(o, i);
|
|
3822
3822
|
});
|
|
3823
3823
|
}), e.apply(this, t);
|
|
3824
3824
|
};
|
|
@@ -3828,7 +3828,7 @@ function w$(e) {
|
|
|
3828
3828
|
!n || !n.hasOwnProperty || !n.hasOwnProperty("addEventListener") || (wt(n, "addEventListener", function(a) {
|
|
3829
3829
|
return function(o, i, s) {
|
|
3830
3830
|
try {
|
|
3831
|
-
C$(i) && (i.handleEvent =
|
|
3831
|
+
C$(i) && (i.handleEvent = Mn(i.handleEvent, {
|
|
3832
3832
|
mechanism: {
|
|
3833
3833
|
data: {
|
|
3834
3834
|
function: "handleEvent",
|
|
@@ -3843,7 +3843,7 @@ function w$(e) {
|
|
|
3843
3843
|
}
|
|
3844
3844
|
return a.apply(this, [
|
|
3845
3845
|
o,
|
|
3846
|
-
|
|
3846
|
+
Mn(i, {
|
|
3847
3847
|
mechanism: {
|
|
3848
3848
|
data: {
|
|
3849
3849
|
function: "addEventListener",
|
|
@@ -4743,13 +4743,13 @@ function y1(e) {
|
|
|
4743
4743
|
i
|
|
4744
4744
|
];
|
|
4745
4745
|
}
|
|
4746
|
-
let b1 = !!(typeof window < "u" && window.document && window.document.createElement), Sn = /* @__PURE__ */ new Map(),
|
|
4747
|
-
typeof FinalizationRegistry < "u" && (
|
|
4746
|
+
let b1 = !!(typeof window < "u" && window.document && window.document.createElement), Sn = /* @__PURE__ */ new Map(), ea;
|
|
4747
|
+
typeof FinalizationRegistry < "u" && (ea = new FinalizationRegistry((e) => {
|
|
4748
4748
|
Sn.delete(e);
|
|
4749
4749
|
}));
|
|
4750
4750
|
function Zt(e) {
|
|
4751
4751
|
let [t, r] = M(e), n = G(null), a = m1(t), o = G(null);
|
|
4752
|
-
if (
|
|
4752
|
+
if (ea && ea.register(o, a), b1) {
|
|
4753
4753
|
const i = Sn.get(a);
|
|
4754
4754
|
i && !i.includes(n) ? i.push(n) : Sn.set(a, [
|
|
4755
4755
|
n
|
|
@@ -4758,7 +4758,7 @@ function Zt(e) {
|
|
|
4758
4758
|
return Re(() => {
|
|
4759
4759
|
let i = a;
|
|
4760
4760
|
return () => {
|
|
4761
|
-
|
|
4761
|
+
ea && ea.unregister(o), Sn.delete(i);
|
|
4762
4762
|
};
|
|
4763
4763
|
}, [
|
|
4764
4764
|
a
|
|
@@ -5212,13 +5212,13 @@ function Tr(e) {
|
|
|
5212
5212
|
let t = null;
|
|
5213
5213
|
return () => (t == null && (t = e()), t);
|
|
5214
5214
|
}
|
|
5215
|
-
const
|
|
5215
|
+
const Fn = Tr(function() {
|
|
5216
5216
|
return ul(/^Mac/i);
|
|
5217
5217
|
}), O1 = Tr(function() {
|
|
5218
5218
|
return ul(/^iPhone/i);
|
|
5219
5219
|
}), gp = Tr(function() {
|
|
5220
5220
|
return ul(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
5221
|
-
|
|
5221
|
+
Fn() && navigator.maxTouchPoints > 1;
|
|
5222
5222
|
}), Aa = Tr(function() {
|
|
5223
5223
|
return O1() || gp();
|
|
5224
5224
|
}), yp = Tr(function() {
|
|
@@ -5238,8 +5238,8 @@ function L1(e) {
|
|
|
5238
5238
|
}
|
|
5239
5239
|
function Qr(e, t, r = !0) {
|
|
5240
5240
|
let { metaKey: n, ctrlKey: a, altKey: o, shiftKey: i } = t;
|
|
5241
|
-
B1() && window.event?.type?.startsWith("key") && e.target === "_blank" && (
|
|
5242
|
-
let s = yp() &&
|
|
5241
|
+
B1() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Fn() ? n = !0 : a = !0);
|
|
5242
|
+
let s = yp() && Fn() && !gp() ? new KeyboardEvent("keydown", {
|
|
5243
5243
|
keyIdentifier: "Enter",
|
|
5244
5244
|
metaKey: n,
|
|
5245
5245
|
ctrlKey: a,
|
|
@@ -5259,7 +5259,7 @@ function Qr(e, t, r = !0) {
|
|
|
5259
5259
|
Qr.isOpening = !1;
|
|
5260
5260
|
let dn = null;
|
|
5261
5261
|
const Xs = /* @__PURE__ */ new Set();
|
|
5262
|
-
let
|
|
5262
|
+
let ia = /* @__PURE__ */ new Map(), Xr = !1, eu = !1;
|
|
5263
5263
|
const U1 = {
|
|
5264
5264
|
Tab: !0,
|
|
5265
5265
|
Escape: !0
|
|
@@ -5268,7 +5268,7 @@ function gi(e, t) {
|
|
|
5268
5268
|
for (let r of Xs) r(e, t);
|
|
5269
5269
|
}
|
|
5270
5270
|
function H1(e) {
|
|
5271
|
-
return !(e.metaKey || !
|
|
5271
|
+
return !(e.metaKey || !Fn() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
5272
5272
|
}
|
|
5273
5273
|
function Fo(e) {
|
|
5274
5274
|
Xr = !0, !Qr.isOpening && H1(e) && (dn = "keyboard", gi("keyboard", e));
|
|
@@ -5289,7 +5289,7 @@ function Dp() {
|
|
|
5289
5289
|
function tu(e) {
|
|
5290
5290
|
if (typeof window > "u" || typeof document > "u") return;
|
|
5291
5291
|
const t = ht(e), r = Te(e);
|
|
5292
|
-
if (
|
|
5292
|
+
if (ia.get(t)) return;
|
|
5293
5293
|
let n = t.HTMLElement.prototype.focus;
|
|
5294
5294
|
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
|
|
5295
5295
|
configurable: !0,
|
|
@@ -5301,17 +5301,17 @@ function tu(e) {
|
|
|
5301
5301
|
Ep(e);
|
|
5302
5302
|
}, {
|
|
5303
5303
|
once: !0
|
|
5304
|
-
}),
|
|
5304
|
+
}), ia.set(t, {
|
|
5305
5305
|
focus: n
|
|
5306
5306
|
});
|
|
5307
5307
|
}
|
|
5308
5308
|
const Ep = (e, t) => {
|
|
5309
5309
|
const r = ht(e), n = Te(e);
|
|
5310
|
-
t && n.removeEventListener("DOMContentLoaded", t),
|
|
5310
|
+
t && n.removeEventListener("DOMContentLoaded", t), ia.has(r) && (Reflect.defineProperty(r.HTMLElement.prototype, "focus", {
|
|
5311
5311
|
configurable: !0,
|
|
5312
5312
|
writable: !0,
|
|
5313
|
-
value:
|
|
5314
|
-
}), n.removeEventListener("keydown", Fo, !0), n.removeEventListener("keyup", Fo, !0), n.removeEventListener("click", vp, !0), r.removeEventListener("focus", $p, !0), r.removeEventListener("blur", Dp, !1), typeof PointerEvent < "u" && (n.removeEventListener("pointerdown", wn, !0), n.removeEventListener("pointermove", wn, !0), n.removeEventListener("pointerup", wn, !0)),
|
|
5313
|
+
value: ia.get(r).focus
|
|
5314
|
+
}), n.removeEventListener("keydown", Fo, !0), n.removeEventListener("keyup", Fo, !0), n.removeEventListener("click", vp, !0), r.removeEventListener("focus", $p, !0), r.removeEventListener("blur", Dp, !1), typeof PointerEvent < "u" && (n.removeEventListener("pointerdown", wn, !0), n.removeEventListener("pointermove", wn, !0), n.removeEventListener("pointerup", wn, !0)), ia.delete(r));
|
|
5315
5315
|
};
|
|
5316
5316
|
function V1(e) {
|
|
5317
5317
|
const t = Te(e);
|
|
@@ -5472,15 +5472,15 @@ function wp() {
|
|
|
5472
5472
|
direction: J1(e) ? "rtl" : "ltr"
|
|
5473
5473
|
};
|
|
5474
5474
|
}
|
|
5475
|
-
let nu = wp(),
|
|
5475
|
+
let nu = wp(), ta = /* @__PURE__ */ new Set();
|
|
5476
5476
|
function jc() {
|
|
5477
5477
|
nu = wp();
|
|
5478
|
-
for (let e of
|
|
5478
|
+
for (let e of ta) e(nu);
|
|
5479
5479
|
}
|
|
5480
5480
|
function Q1() {
|
|
5481
5481
|
let e = rl(), [t, r] = M(nu);
|
|
5482
|
-
return oe(() => (
|
|
5483
|
-
|
|
5482
|
+
return oe(() => (ta.size === 0 && window.addEventListener("languagechange", jc), ta.add(r), () => {
|
|
5483
|
+
ta.delete(r), ta.size === 0 && window.removeEventListener("languagechange", jc);
|
|
5484
5484
|
}), []), e ? {
|
|
5485
5485
|
locale: typeof window < "u" && window[Sp] || "en-US",
|
|
5486
5486
|
direction: "ltr"
|
|
@@ -6034,7 +6034,7 @@ function dl(e) {
|
|
|
6034
6034
|
let C = P.currentTarget, k = (Q) => {
|
|
6035
6035
|
es(Q, C) && !Q.repeat && ke(C, ve(Q)) && w.target && N(Fr(w.target, Q), "keyboard");
|
|
6036
6036
|
};
|
|
6037
|
-
$(Te(P.currentTarget), "keyup", mi(k, H), !0), q && P.stopPropagation(), P.metaKey &&
|
|
6037
|
+
$(Te(P.currentTarget), "keyup", mi(k, H), !0), q && P.stopPropagation(), P.metaKey && Fn() && w.metaKeyEvents?.set(P.key, P.nativeEvent);
|
|
6038
6038
|
} else P.key === "Meta" && (w.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
6039
6039
|
},
|
|
6040
6040
|
onClick(P) {
|
|
@@ -6245,7 +6245,7 @@ function ka(e) {
|
|
|
6245
6245
|
}
|
|
6246
6246
|
};
|
|
6247
6247
|
}
|
|
6248
|
-
function
|
|
6248
|
+
function Vn(e = {}) {
|
|
6249
6249
|
let { autoFocus: t = !1, isTextInput: r, within: n } = e, a = G({
|
|
6250
6250
|
isFocused: !1,
|
|
6251
6251
|
isFocusVisible: t || ru()
|
|
@@ -6747,7 +6747,7 @@ const Na = /* @__PURE__ */ Le({}), ns = /* @__PURE__ */ Np(function(t, r) {
|
|
|
6747
6747
|
[t, r] = lr(t, r, Na);
|
|
6748
6748
|
let n = t, { isPending: a } = n, { buttonProps: o, isPressed: i } = ID(t, r);
|
|
6749
6749
|
o = MD(o, a);
|
|
6750
|
-
let { focusProps: s, isFocused: u, isFocusVisible: l } =
|
|
6750
|
+
let { focusProps: s, isFocused: u, isFocusVisible: l } = Vn(t), { hoverProps: c, isHovered: d } = Pa({
|
|
6751
6751
|
...t,
|
|
6752
6752
|
isDisabled: t.isDisabled || a
|
|
6753
6753
|
}), f = {
|
|
@@ -7695,7 +7695,7 @@ function Ch(e, t) {
|
|
|
7695
7695
|
function xh(e, t) {
|
|
7696
7696
|
return e && t ? e.compare(t) >= 0 ? e : t : e || t;
|
|
7697
7697
|
}
|
|
7698
|
-
function
|
|
7698
|
+
function On(e) {
|
|
7699
7699
|
e = Ve(e, new pt());
|
|
7700
7700
|
let t = Ra(e.era, e.year);
|
|
7701
7701
|
return Ah(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
|
|
@@ -7751,13 +7751,13 @@ function YD(e, t, r) {
|
|
|
7751
7751
|
}
|
|
7752
7752
|
function tr(e, t, r = "compatible") {
|
|
7753
7753
|
let n = sr(e);
|
|
7754
|
-
if (t === "UTC") return
|
|
7754
|
+
if (t === "UTC") return On(n);
|
|
7755
7755
|
if (t === $i() && r === "compatible" && !wh()) {
|
|
7756
7756
|
n = Ve(n, new pt());
|
|
7757
7757
|
let u = /* @__PURE__ */ new Date(), l = Ra(n.era, n.year);
|
|
7758
7758
|
return u.setFullYear(l, n.month - 1, n.day), u.setHours(n.hour, n.minute, n.second, n.millisecond), u.getTime();
|
|
7759
7759
|
}
|
|
7760
|
-
let a =
|
|
7760
|
+
let a = On(n), o = du(a - fd, t), i = du(a + fd, t), s = KD(n, t, a - o, a - i);
|
|
7761
7761
|
if (s.length === 1) return s[0];
|
|
7762
7762
|
if (s.length > 1) switch (r) {
|
|
7763
7763
|
// 'compatible' means 'earlier' for "fall back" transitions
|
|
@@ -7808,17 +7808,17 @@ function qD(e, t, r) {
|
|
|
7808
7808
|
return rr(n, t);
|
|
7809
7809
|
}
|
|
7810
7810
|
function JD(e) {
|
|
7811
|
-
let t =
|
|
7811
|
+
let t = On(e) - e.offset;
|
|
7812
7812
|
return new Date(t);
|
|
7813
7813
|
}
|
|
7814
7814
|
function Ph(e, t) {
|
|
7815
|
-
let r =
|
|
7815
|
+
let r = On(e) - e.offset;
|
|
7816
7816
|
return Ve(rr(r, t), e.calendar);
|
|
7817
7817
|
}
|
|
7818
7818
|
function QD(e) {
|
|
7819
7819
|
return Ph(e, $i());
|
|
7820
7820
|
}
|
|
7821
|
-
const
|
|
7821
|
+
const Zn = 36e5;
|
|
7822
7822
|
function Di(e, t) {
|
|
7823
7823
|
let r = e.copy(), n = "hour" in r ? Mh(r, t) : 0;
|
|
7824
7824
|
fu(r, t.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, e), r.month += t.months || 0, mu(r), Nh(r), r.day += (t.weeks || 0) * 7, r.day += t.days || 0, r.day += n, XD(r), r.calendar.balanceDate && r.calendar.balanceDate(r), r.year < 1 && (r.year = 1, r.month = 1, r.day = 1);
|
|
@@ -7960,7 +7960,7 @@ function Oh(e, t) {
|
|
|
7960
7960
|
});
|
|
7961
7961
|
r = tr(a, e.timeZone);
|
|
7962
7962
|
} else
|
|
7963
|
-
r =
|
|
7963
|
+
r = On(e) - e.offset;
|
|
7964
7964
|
r += t.milliseconds || 0, r += (t.seconds || 0) * 1e3, r += (t.minutes || 0) * 6e4, r += (t.hours || 0) * 36e5;
|
|
7965
7965
|
let n = rr(r, e.timeZone);
|
|
7966
7966
|
return Ve(n, e.calendar);
|
|
@@ -7986,8 +7986,8 @@ function nE(e, t, r, n) {
|
|
|
7986
7986
|
}), new pt()), c = [
|
|
7987
7987
|
tr(l, e.timeZone, "earlier"),
|
|
7988
7988
|
tr(l, e.timeZone, "later")
|
|
7989
|
-
].filter((p) => rr(p, e.timeZone).day === l.day).pop(), d =
|
|
7990
|
-
return d = nr(f, r, Math.floor(u /
|
|
7989
|
+
].filter((p) => rr(p, e.timeZone).day === l.day).pop(), d = On(e) - e.offset, f = Math.floor(d / Zn), m = d % Zn;
|
|
7990
|
+
return d = nr(f, r, Math.floor(u / Zn), Math.floor(c / Zn), n?.round) * Zn + m, Ve(rr(d, e.timeZone), e.calendar);
|
|
7991
7991
|
}
|
|
7992
7992
|
case "minute":
|
|
7993
7993
|
case "second":
|
|
@@ -8625,13 +8625,13 @@ let pu, An;
|
|
|
8625
8625
|
function yo(e) {
|
|
8626
8626
|
return gE + An[e - Tt];
|
|
8627
8627
|
}
|
|
8628
|
-
function
|
|
8628
|
+
function ra(e, t) {
|
|
8629
8629
|
let r = e - Tt, n = 1 << 11 - (t - 1);
|
|
8630
8630
|
return (pu[r] & n) === 0 ? 29 : 30;
|
|
8631
8631
|
}
|
|
8632
8632
|
function Ed(e, t) {
|
|
8633
8633
|
let r = yo(e);
|
|
8634
|
-
for (let n = 1; n < t; n++) r +=
|
|
8634
|
+
for (let n = 1; n < t; n++) r += ra(e, n);
|
|
8635
8635
|
return r;
|
|
8636
8636
|
}
|
|
8637
8637
|
function Sd(e) {
|
|
@@ -8644,7 +8644,7 @@ class _E extends El {
|
|
|
8644
8644
|
let t = 0;
|
|
8645
8645
|
for (let r = Tt; r <= hn; r++) {
|
|
8646
8646
|
An[r - Tt] = t;
|
|
8647
|
-
for (let n = 1; n <= 12; n++) t +=
|
|
8647
|
+
for (let n = 1; n <= 12; n++) t += ra(r, n);
|
|
8648
8648
|
}
|
|
8649
8649
|
}
|
|
8650
8650
|
}
|
|
@@ -8660,9 +8660,9 @@ class _E extends El {
|
|
|
8660
8660
|
i = 12;
|
|
8661
8661
|
break;
|
|
8662
8662
|
} else if (s < u) {
|
|
8663
|
-
let l =
|
|
8663
|
+
let l = ra(o, i);
|
|
8664
8664
|
for (i = 1; s > l; )
|
|
8665
|
-
s -= l, i++, l =
|
|
8665
|
+
s -= l, i++, l = ra(o, i);
|
|
8666
8666
|
break;
|
|
8667
8667
|
}
|
|
8668
8668
|
}
|
|
@@ -8673,7 +8673,7 @@ class _E extends El {
|
|
|
8673
8673
|
return t.year < Tt || t.year > hn ? super.toJulianDay(t) : Uo + Ed(t.year, t.month) + (t.day - 1);
|
|
8674
8674
|
}
|
|
8675
8675
|
getDaysInMonth(t) {
|
|
8676
|
-
return t.year < Tt || t.year > hn ? super.getDaysInMonth(t) :
|
|
8676
|
+
return t.year < Tt || t.year > hn ? super.getDaysInMonth(t) : ra(t.year, t.month);
|
|
8677
8677
|
}
|
|
8678
8678
|
getDaysInYear(t) {
|
|
8679
8679
|
return t.year < Tt || t.year > hn ? super.getDaysInYear(t) : Sd(t.year);
|
|
@@ -8691,11 +8691,11 @@ function EE(e) {
|
|
|
8691
8691
|
let t = bo(e - 1), r = bo(e);
|
|
8692
8692
|
return bo(e + 1) - r === 356 ? 2 : r - t === 382 ? 1 : 0;
|
|
8693
8693
|
}
|
|
8694
|
-
function
|
|
8694
|
+
function sa(e) {
|
|
8695
8695
|
return bo(e) + EE(e);
|
|
8696
8696
|
}
|
|
8697
8697
|
function Kh(e) {
|
|
8698
|
-
return
|
|
8698
|
+
return sa(e + 1) - sa(e);
|
|
8699
8699
|
}
|
|
8700
8700
|
function SE(e) {
|
|
8701
8701
|
let t = Kh(e);
|
|
@@ -8717,9 +8717,9 @@ function Qa(e, t) {
|
|
|
8717
8717
|
}
|
|
8718
8718
|
class wE {
|
|
8719
8719
|
fromJulianDay(t) {
|
|
8720
|
-
let r = t - wd, n = r * Gh / DE, a = Math.floor((19 * n + 234) / 235) + 1, o =
|
|
8720
|
+
let r = t - wd, n = r * Gh / DE, a = Math.floor((19 * n + 234) / 235) + 1, o = sa(a), i = Math.floor(r - o);
|
|
8721
8721
|
for (; i < 1; )
|
|
8722
|
-
a--, o =
|
|
8722
|
+
a--, o = sa(a), i = Math.floor(r - o);
|
|
8723
8723
|
let s = 1, u = 0;
|
|
8724
8724
|
for (; u < i; )
|
|
8725
8725
|
u += Qa(a, s), s++;
|
|
@@ -8728,7 +8728,7 @@ class wE {
|
|
|
8728
8728
|
return new Ke(this, a, s, l);
|
|
8729
8729
|
}
|
|
8730
8730
|
toJulianDay(t) {
|
|
8731
|
-
let r =
|
|
8731
|
+
let r = sa(t.year);
|
|
8732
8732
|
for (let n = 1; n < t.month; n++) r += Qa(t.year, n);
|
|
8733
8733
|
return r + t.day + wd;
|
|
8734
8734
|
}
|
|
@@ -9904,7 +9904,7 @@ function vu(e) {
|
|
|
9904
9904
|
let { children: t, elementType: r = "div", isFocusable: n, style: a, ...o } = e, { visuallyHiddenProps: i } = t0(e);
|
|
9905
9905
|
return /* @__PURE__ */ X.createElement(r, Fe(o, i), t);
|
|
9906
9906
|
}
|
|
9907
|
-
const jo = /* @__PURE__ */ Le(null), ZE = /* @__PURE__ */ Le(null),
|
|
9907
|
+
const jo = /* @__PURE__ */ Le(null), ZE = /* @__PURE__ */ Le(null), zn = /* @__PURE__ */ Le(null), Ma = /* @__PURE__ */ Le(null), GE = /* @__PURE__ */ st(function(t, r) {
|
|
9908
9908
|
[t, r] = lr(t, r, jo);
|
|
9909
9909
|
let { locale: n } = lt(), a = WE({
|
|
9910
9910
|
...t,
|
|
@@ -9947,7 +9947,7 @@ const jo = /* @__PURE__ */ Le(null), ZE = /* @__PURE__ */ Le(null), jn = /* @__P
|
|
|
9947
9947
|
}
|
|
9948
9948
|
],
|
|
9949
9949
|
[
|
|
9950
|
-
|
|
9950
|
+
zn,
|
|
9951
9951
|
a
|
|
9952
9952
|
],
|
|
9953
9953
|
[
|
|
@@ -9970,7 +9970,7 @@ const jo = /* @__PURE__ */ Le(null), ZE = /* @__PURE__ */ Le(null), jn = /* @__P
|
|
|
9970
9970
|
tabIndex: -1
|
|
9971
9971
|
}))));
|
|
9972
9972
|
}), Si = /* @__PURE__ */ Le(null), KE = /* @__PURE__ */ st(function(t, r) {
|
|
9973
|
-
let n = Ne(
|
|
9973
|
+
let n = Ne(zn), a = Ne(Ma), o = Ro(jo), i = Ro(ZE), s = n ?? a, u = s.visibleRange.start;
|
|
9974
9974
|
t.offset && (u = u.add(t.offset));
|
|
9975
9975
|
let l = o?.firstDayOfWeek ?? i?.firstDayOfWeek, { gridProps: c, headerProps: d, weekDays: f, weeksInMonth: m } = OE({
|
|
9976
9976
|
startDate: u,
|
|
@@ -10025,7 +10025,7 @@ function qE(e, t) {
|
|
|
10025
10025
|
}
|
|
10026
10026
|
const n0 = /* @__PURE__ */ st(qE);
|
|
10027
10027
|
function JE(e, t) {
|
|
10028
|
-
let { children: r, style: n, className: a } = e, o = Ne(
|
|
10028
|
+
let { children: r, style: n, className: a } = e, o = Ne(zn), i = Ne(Ma), s = o ?? i, { startDate: u, weeksInMonth: l } = Ne(Si), c = ct(e, {
|
|
10029
10029
|
global: !0
|
|
10030
10030
|
});
|
|
10031
10031
|
return /* @__PURE__ */ X.createElement($t.tbody, {
|
|
@@ -10045,7 +10045,7 @@ function JE(e, t) {
|
|
|
10045
10045
|
})))));
|
|
10046
10046
|
}
|
|
10047
10047
|
const a0 = /* @__PURE__ */ st(JE), QE = /* @__PURE__ */ st(function({ date: t, ...r }, n) {
|
|
10048
|
-
let a = Ne(
|
|
10048
|
+
let a = Ne(zn), o = Ne(Ma), i = a ?? o, { startDate: s } = Ne(Si) ?? {
|
|
10049
10049
|
startDate: i.visibleRange.start
|
|
10050
10050
|
}, u = i.visibleDuration.days || i.visibleDuration.weeks ? !1 : !LD(s, t), l = $h(t, i.timeZone), c = G(null), { cellProps: d, buttonProps: f, ...m } = UE({
|
|
10051
10051
|
date: t,
|
|
@@ -10053,7 +10053,7 @@ const a0 = /* @__PURE__ */ st(JE), QE = /* @__PURE__ */ st(function({ date: t, .
|
|
|
10053
10053
|
}, i, c), { hoverProps: p, isHovered: g } = Pa({
|
|
10054
10054
|
...r,
|
|
10055
10055
|
isDisabled: m.isDisabled || m.isUnavailable
|
|
10056
|
-
}), { focusProps: b, isFocusVisible: $ } =
|
|
10056
|
+
}), { focusProps: b, isFocusVisible: $ } = Vn();
|
|
10057
10057
|
$ &&= m.isFocused;
|
|
10058
10058
|
let S = !1, y = !1;
|
|
10059
10059
|
"highlightedRange" in i && i.highlightedRange && (S = je(t, i.highlightedRange.start), y = je(t, i.highlightedRange.end));
|
|
@@ -10097,11 +10097,11 @@ const a0 = /* @__PURE__ */ st(JE), QE = /* @__PURE__ */ st(function({ date: t, .
|
|
|
10097
10097
|
}));
|
|
10098
10098
|
});
|
|
10099
10099
|
function XE(e) {
|
|
10100
|
-
let t = X.useContext(
|
|
10100
|
+
let t = X.useContext(zn), r = X.useContext(Ma), a = VE(e, t || r);
|
|
10101
10101
|
return e.children(a);
|
|
10102
10102
|
}
|
|
10103
10103
|
function eS(e) {
|
|
10104
|
-
let t = X.useContext(
|
|
10104
|
+
let t = X.useContext(zn), r = X.useContext(Ma), a = HE(e, t || r);
|
|
10105
10105
|
return e.children(a);
|
|
10106
10106
|
}
|
|
10107
10107
|
const tS = /* @__PURE__ */ Le(null), o0 = {
|
|
@@ -10120,7 +10120,7 @@ const tS = /* @__PURE__ */ Le(null), o0 = {
|
|
|
10120
10120
|
...o0,
|
|
10121
10121
|
customError: !0,
|
|
10122
10122
|
valid: !1
|
|
10123
|
-
},
|
|
10123
|
+
}, Gn = {
|
|
10124
10124
|
isInvalid: !1,
|
|
10125
10125
|
validationDetails: o0,
|
|
10126
10126
|
validationErrors: []
|
|
@@ -10162,20 +10162,20 @@ function nS(e) {
|
|
|
10162
10162
|
let b = J(() => kd(p ? [] : d), [
|
|
10163
10163
|
p,
|
|
10164
10164
|
d
|
|
10165
|
-
]), $ = G(
|
|
10165
|
+
]), $ = G(Gn), [S, y] = M(Gn), E = G(Gn), _ = () => {
|
|
10166
10166
|
if (!A) return;
|
|
10167
10167
|
N(!1);
|
|
10168
10168
|
let Z = l || o || $.current;
|
|
10169
10169
|
hs(Z, E.current) || (E.current = Z, y(Z));
|
|
10170
10170
|
}, [A, N] = M(!1);
|
|
10171
10171
|
return oe(_), {
|
|
10172
|
-
realtimeValidation: u || b || l || o ||
|
|
10172
|
+
realtimeValidation: u || b || l || o || Gn,
|
|
10173
10173
|
displayValidation: s === "native" ? u || b || S : u || b || l || o || S,
|
|
10174
10174
|
updateValidation(Z) {
|
|
10175
10175
|
s === "aria" && !hs(S, Z) ? y(Z) : $.current = Z;
|
|
10176
10176
|
},
|
|
10177
10177
|
resetValidation() {
|
|
10178
|
-
let Z =
|
|
10178
|
+
let Z = Gn;
|
|
10179
10179
|
hs(Z, E.current) || (E.current = Z, y(Z)), s === "native" && N(!1), g(!0);
|
|
10180
10180
|
},
|
|
10181
10181
|
commitValidation() {
|
|
@@ -10321,7 +10321,7 @@ const wi = /* @__PURE__ */ Le({}), l0 = /* @__PURE__ */ st(function(t, r) {
|
|
|
10321
10321
|
onHoverChange: s,
|
|
10322
10322
|
onHoverEnd: u,
|
|
10323
10323
|
isDisabled: n
|
|
10324
|
-
}), { isFocused: f, isFocusVisible: m, focusProps: p } =
|
|
10324
|
+
}), { isFocused: f, isFocusVisible: m, focusProps: p } = Vn({
|
|
10325
10325
|
within: !0
|
|
10326
10326
|
}), g = ur({
|
|
10327
10327
|
...t,
|
|
@@ -10357,7 +10357,7 @@ const fS = /* @__PURE__ */ Np(function(t, r) {
|
|
|
10357
10357
|
let { hoverProps: n, isHovered: a } = Pa({
|
|
10358
10358
|
...t,
|
|
10359
10359
|
isDisabled: t.disabled
|
|
10360
|
-
}), { isFocused: o, isFocusVisible: i, focusProps: s } =
|
|
10360
|
+
}), { isFocused: o, isFocusVisible: i, focusProps: s } = Vn({
|
|
10361
10361
|
isTextInput: !0,
|
|
10362
10362
|
autoFocus: t.autoFocus
|
|
10363
10363
|
}), u = !!t["aria-invalid"] && t["aria-invalid"] !== "false", l = ur({
|
|
@@ -10914,7 +10914,7 @@ function yS(e) {
|
|
|
10914
10914
|
function zr(e) {
|
|
10915
10915
|
return e[0].parentElement;
|
|
10916
10916
|
}
|
|
10917
|
-
function
|
|
10917
|
+
function na(e) {
|
|
10918
10918
|
let t = Xe.getTreeNode(He);
|
|
10919
10919
|
for (; t && t.scopeRef !== e; ) {
|
|
10920
10920
|
if (t.contain) return !1;
|
|
@@ -10946,7 +10946,7 @@ function vS(e, t) {
|
|
|
10946
10946
|
}
|
|
10947
10947
|
const o = Te(a ? a[0] : void 0);
|
|
10948
10948
|
let i = (l) => {
|
|
10949
|
-
if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !
|
|
10949
|
+
if (l.key !== "Tab" || l.altKey || l.ctrlKey || l.metaKey || !na(e) || l.isComposing) return;
|
|
10950
10950
|
let c = ze(o), d = e.current;
|
|
10951
10951
|
if (!d || !Ft(c, d)) return;
|
|
10952
10952
|
let f = zr(d), m = vt(f, {
|
|
@@ -10957,11 +10957,11 @@ function vS(e, t) {
|
|
|
10957
10957
|
let p = l.shiftKey ? m.previousNode() : m.nextNode();
|
|
10958
10958
|
p || (m.currentNode = l.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, p = l.shiftKey ? m.previousNode() : m.nextNode()), l.preventDefault(), p && (_t(p, !0), p instanceof ht(p).HTMLInputElement && p.select());
|
|
10959
10959
|
}, s = (l) => {
|
|
10960
|
-
(!He || Wo(He, e)) && Ft(ve(l), e.current) ? (He = e, r.current = ve(l)) :
|
|
10960
|
+
(!He || Wo(He, e)) && Ft(ve(l), e.current) ? (He = e, r.current = ve(l)) : na(e) && !$r(ve(l), e) ? r.current ? r.current.focus() : He && He.current && Su(He.current) : na(e) && (r.current = ve(l));
|
|
10961
10961
|
}, u = (l) => {
|
|
10962
10962
|
n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
|
|
10963
10963
|
let c = yi(), d = (c === "virtual" || c === null) && ll() && bp(), f = ze(o);
|
|
10964
|
-
if (!d && f &&
|
|
10964
|
+
if (!d && f && na(e) && !$r(f, e)) {
|
|
10965
10965
|
He = e;
|
|
10966
10966
|
let m = ve(l);
|
|
10967
10967
|
m && m.isConnected ? (r.current = m, r.current?.focus()) : He.current && Su(He.current);
|
|
@@ -11084,7 +11084,7 @@ function SS(e, t, r) {
|
|
|
11084
11084
|
const a = Te(e.current ? e.current[0] : void 0);
|
|
11085
11085
|
if (!t) return;
|
|
11086
11086
|
let o = (i) => {
|
|
11087
|
-
if (i.key !== "Tab" || i.altKey || i.ctrlKey || i.metaKey || !
|
|
11087
|
+
if (i.key !== "Tab" || i.altKey || i.ctrlKey || i.metaKey || !na(e) || i.isComposing) return;
|
|
11088
11088
|
let s = a.activeElement;
|
|
11089
11089
|
if (!$r(s, e) || !Id(e)) return;
|
|
11090
11090
|
let u = Xe.getTreeNode(e);
|
|
@@ -11291,7 +11291,7 @@ const CS = /* @__PURE__ */ Le({
|
|
|
11291
11291
|
function Md(e) {
|
|
11292
11292
|
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
|
|
11293
11293
|
}
|
|
11294
|
-
let
|
|
11294
|
+
let Kn = /* @__PURE__ */ new WeakMap(), bt = [];
|
|
11295
11295
|
function AS(e, t) {
|
|
11296
11296
|
let r = ht(e?.[0]), n = t instanceof r.Element ? {
|
|
11297
11297
|
root: t
|
|
@@ -11322,8 +11322,8 @@ function AS(e, t) {
|
|
|
11322
11322
|
f(E), E = S.nextNode();
|
|
11323
11323
|
}
|
|
11324
11324
|
}, f = (b) => {
|
|
11325
|
-
let $ =
|
|
11326
|
-
u(b) && $ === 0 || ($ === 0 && l(b, !0), s.add(b),
|
|
11325
|
+
let $ = Kn.get(b) ?? 0;
|
|
11326
|
+
u(b) && $ === 0 || ($ === 0 && l(b, !0), s.add(b), Kn.set(b, $ + 1));
|
|
11327
11327
|
};
|
|
11328
11328
|
bt.length && bt[bt.length - 1].disconnect(), d(a);
|
|
11329
11329
|
let m = new MutationObserver((b) => {
|
|
@@ -11385,8 +11385,8 @@ function AS(e, t) {
|
|
|
11385
11385
|
return bt.push(g), () => {
|
|
11386
11386
|
if (m.disconnect(), er()) for (let b of p) b.disconnect();
|
|
11387
11387
|
for (let b of s) {
|
|
11388
|
-
let $ =
|
|
11389
|
-
$ != null && ($ === 1 ? (l(b, !1),
|
|
11388
|
+
let $ = Kn.get(b);
|
|
11389
|
+
$ != null && ($ === 1 ? (l(b, !1), Kn.delete(b)) : Kn.set(b, $ - 1));
|
|
11390
11390
|
}
|
|
11391
11391
|
g === bt[bt.length - 1] ? (bt.pop(), bt.length && bt[bt.length - 1].observe()) : bt.splice(bt.indexOf(g), 1);
|
|
11392
11392
|
};
|
|
@@ -11849,7 +11849,7 @@ function WS(e, t) {
|
|
|
11849
11849
|
underlayProps: {}
|
|
11850
11850
|
};
|
|
11851
11851
|
}
|
|
11852
|
-
const
|
|
11852
|
+
const ua = typeof document < "u" && window.visualViewport;
|
|
11853
11853
|
let to = 0, _s;
|
|
11854
11854
|
function ZS(e = {}) {
|
|
11855
11855
|
let { isDisabled: t } = e;
|
|
@@ -11926,7 +11926,7 @@ function vs(e, t, r, n) {
|
|
|
11926
11926
|
};
|
|
11927
11927
|
}
|
|
11928
11928
|
function zd(e, t) {
|
|
11929
|
-
t || !
|
|
11929
|
+
t || !ua ? jd(e) : ua.addEventListener("resize", () => jd(e), {
|
|
11930
11930
|
once: !0
|
|
11931
11931
|
});
|
|
11932
11932
|
}
|
|
@@ -11938,7 +11938,7 @@ function jd(e) {
|
|
|
11938
11938
|
let a = n.getBoundingClientRect(), o = r.getBoundingClientRect();
|
|
11939
11939
|
if (o.top < a.top || o.bottom > a.top + r.clientHeight) {
|
|
11940
11940
|
let i = a.bottom;
|
|
11941
|
-
|
|
11941
|
+
ua && (i = Math.min(i, ua.offsetTop + ua.height));
|
|
11942
11942
|
let s = o.top - a.top - ((i - a.top) / 2 - o.height / 2);
|
|
11943
11943
|
n.scrollTo({
|
|
11944
11944
|
// Clamp to the valid range to prevent over-scrolling.
|
|
@@ -13532,7 +13532,7 @@ function bw(e, t, r) {
|
|
|
13532
13532
|
k = Q === 0 ? "" : k, k.length === 0 || Q === 0 ? t.clearSegment(e.type) : t.setSegment(e.type, Q), n.current = k;
|
|
13533
13533
|
} else (e.type === "dayPeriod" || e.type === "era") && t.clearSegment(e.type);
|
|
13534
13534
|
}, S = (k) => {
|
|
13535
|
-
if (k.key === "a" && (
|
|
13535
|
+
if (k.key === "a" && (Fn() ? k.metaKey : k.ctrlKey) && k.preventDefault(), !(k.ctrlKey || k.metaKey || k.shiftKey || k.altKey))
|
|
13536
13536
|
switch (k.key) {
|
|
13537
13537
|
case "Backspace":
|
|
13538
13538
|
case "Delete":
|
|
@@ -15027,7 +15027,7 @@ const rb = /* @__PURE__ */ Le(null), Ai = /* @__PURE__ */ Le(null), Pl = /* @__P
|
|
|
15027
15027
|
className: ""
|
|
15028
15028
|
}));
|
|
15029
15029
|
}), Rw = /* @__PURE__ */ st(function({ segment: t, ...r }, n) {
|
|
15030
|
-
let a = Ne(Ai), o = Ne(Pl), i = a ?? o, s = dp(n), { segmentProps: u } = bw(t, i, s), { focusProps: l, isFocused: c, isFocusVisible: d } =
|
|
15030
|
+
let a = Ne(Ai), o = Ne(Pl), i = a ?? o, s = dp(n), { segmentProps: u } = bw(t, i, s), { focusProps: l, isFocused: c, isFocusVisible: d } = Vn(), { hoverProps: f, isHovered: m } = Pa({
|
|
15031
15031
|
...r,
|
|
15032
15032
|
isDisabled: i.isDisabled || t.type === "literal"
|
|
15033
15033
|
}), p = ur({
|
|
@@ -15249,7 +15249,7 @@ const Bw = /* @__PURE__ */ Le(null), Lw = /* @__PURE__ */ Le(null), Uw = [
|
|
|
15249
15249
|
...D1(t),
|
|
15250
15250
|
label: u,
|
|
15251
15251
|
validationBehavior: a
|
|
15252
|
-
}, o, i), { focusProps: S, isFocused: y, isFocusVisible: E } =
|
|
15252
|
+
}, o, i), { focusProps: S, isFocused: y, isFocusVisible: E } = Vn({
|
|
15253
15253
|
within: !0
|
|
15254
15254
|
}), _ = ur({
|
|
15255
15255
|
...t,
|
|
@@ -15725,7 +15725,7 @@ function Gw({
|
|
|
15725
15725
|
)) : /* @__PURE__ */ h("div", { className: "combobox-empty", role: "status", children: "No matches" }) })
|
|
15726
15726
|
] }) });
|
|
15727
15727
|
}
|
|
15728
|
-
function
|
|
15728
|
+
function Yn({ id: e, label: t, hint: r, error: n, required: a, className: o, placeholder: i, options: s, children: u, ...l }) {
|
|
15729
15729
|
const c = [r ? `${e}-hint` : null, n ? `${e}-error` : null].filter(Boolean).join(" ") || void 0, d = !!u;
|
|
15730
15730
|
if (!d) {
|
|
15731
15731
|
const { onChange: f, value: m, defaultValue: p, disabled: g, onFocus: b, onBlur: $, name: S, autoFocus: y } = l;
|
|
@@ -16113,7 +16113,7 @@ function ub(e) {
|
|
|
16113
16113
|
return Da(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
16114
16114
|
}
|
|
16115
16115
|
const tC = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
16116
|
-
function
|
|
16116
|
+
function Bn(e) {
|
|
16117
16117
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
16118
16118
|
}
|
|
16119
16119
|
function Nr(e, t, r) {
|
|
@@ -16637,7 +16637,7 @@ const zC = (e) => {
|
|
|
16637
16637
|
t.pattern ?? (t.pattern = KC), Pi.init(e, t);
|
|
16638
16638
|
}), n2 = /* @__PURE__ */ O("$ZodCheckIncludes", (e, t) => {
|
|
16639
16639
|
Dt.init(e, t);
|
|
16640
|
-
const r =
|
|
16640
|
+
const r = Bn(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
|
|
16641
16641
|
t.pattern = n, e._zod.onattach.push((a) => {
|
|
16642
16642
|
const o = a._zod.bag;
|
|
16643
16643
|
o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
|
|
@@ -16654,7 +16654,7 @@ const zC = (e) => {
|
|
|
16654
16654
|
};
|
|
16655
16655
|
}), a2 = /* @__PURE__ */ O("$ZodCheckStartsWith", (e, t) => {
|
|
16656
16656
|
Dt.init(e, t);
|
|
16657
|
-
const r = new RegExp(`^${
|
|
16657
|
+
const r = new RegExp(`^${Bn(t.prefix)}.*`);
|
|
16658
16658
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
16659
16659
|
const a = n._zod.bag;
|
|
16660
16660
|
a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(r);
|
|
@@ -16671,7 +16671,7 @@ const zC = (e) => {
|
|
|
16671
16671
|
};
|
|
16672
16672
|
}), o2 = /* @__PURE__ */ O("$ZodCheckEndsWith", (e, t) => {
|
|
16673
16673
|
Dt.init(e, t);
|
|
16674
|
-
const r = new RegExp(`.*${
|
|
16674
|
+
const r = new RegExp(`.*${Bn(t.suffix)}$`);
|
|
16675
16675
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
16676
16676
|
const a = n._zod.bag;
|
|
16677
16677
|
a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(r);
|
|
@@ -17330,7 +17330,7 @@ function af(e, t, r) {
|
|
|
17330
17330
|
const z2 = /* @__PURE__ */ O("$ZodEnum", (e, t) => {
|
|
17331
17331
|
Ye.init(e, t);
|
|
17332
17332
|
const r = ib(t.entries), n = new Set(r);
|
|
17333
|
-
e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((a) => tC.has(typeof a)).map((a) => typeof a == "string" ?
|
|
17333
|
+
e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((a) => tC.has(typeof a)).map((a) => typeof a == "string" ? Bn(a) : a.toString()).join("|")})$`), e._zod.parse = (a, o) => {
|
|
17334
17334
|
const i = a.value;
|
|
17335
17335
|
return n.has(i) || a.issues.push({
|
|
17336
17336
|
code: "invalid_value",
|
|
@@ -17343,7 +17343,7 @@ const z2 = /* @__PURE__ */ O("$ZodEnum", (e, t) => {
|
|
|
17343
17343
|
if (Ye.init(e, t), t.values.length === 0)
|
|
17344
17344
|
throw new Error("Cannot create literal schema with no valid values");
|
|
17345
17345
|
const r = new Set(t.values);
|
|
17346
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${t.values.map((n) => typeof n == "string" ?
|
|
17346
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${t.values.map((n) => typeof n == "string" ? Bn(n) : n ? Bn(n.toString()) : String(n)).join("|")})$`), e._zod.parse = (n, a) => {
|
|
17347
17347
|
const o = n.value;
|
|
17348
17348
|
return r.has(o) || n.issues.push({
|
|
17349
17349
|
code: "invalid_value",
|
|
@@ -17517,7 +17517,7 @@ function r5() {
|
|
|
17517
17517
|
return new t5();
|
|
17518
17518
|
}
|
|
17519
17519
|
(df = globalThis).__zod_globalRegistry ?? (df.__zod_globalRegistry = r5());
|
|
17520
|
-
const
|
|
17520
|
+
const aa = globalThis.__zod_globalRegistry;
|
|
17521
17521
|
// @__NO_SIDE_EFFECTS__
|
|
17522
17522
|
function n5(e, t) {
|
|
17523
17523
|
return new e({
|
|
@@ -17948,7 +17948,7 @@ function L5(e, t) {
|
|
|
17948
17948
|
});
|
|
17949
17949
|
}
|
|
17950
17950
|
// @__NO_SIDE_EFFECTS__
|
|
17951
|
-
function
|
|
17951
|
+
function jn(e) {
|
|
17952
17952
|
return new i2({
|
|
17953
17953
|
check: "overwrite",
|
|
17954
17954
|
tx: e
|
|
@@ -17956,23 +17956,23 @@ function Wn(e) {
|
|
|
17956
17956
|
}
|
|
17957
17957
|
// @__NO_SIDE_EFFECTS__
|
|
17958
17958
|
function U5(e) {
|
|
17959
|
-
return /* @__PURE__ */
|
|
17959
|
+
return /* @__PURE__ */ jn((t) => t.normalize(e));
|
|
17960
17960
|
}
|
|
17961
17961
|
// @__NO_SIDE_EFFECTS__
|
|
17962
17962
|
function H5() {
|
|
17963
|
-
return /* @__PURE__ */
|
|
17963
|
+
return /* @__PURE__ */ jn((e) => e.trim());
|
|
17964
17964
|
}
|
|
17965
17965
|
// @__NO_SIDE_EFFECTS__
|
|
17966
17966
|
function V5() {
|
|
17967
|
-
return /* @__PURE__ */
|
|
17967
|
+
return /* @__PURE__ */ jn((e) => e.toLowerCase());
|
|
17968
17968
|
}
|
|
17969
17969
|
// @__NO_SIDE_EFFECTS__
|
|
17970
17970
|
function z5() {
|
|
17971
|
-
return /* @__PURE__ */
|
|
17971
|
+
return /* @__PURE__ */ jn((e) => e.toUpperCase());
|
|
17972
17972
|
}
|
|
17973
17973
|
// @__NO_SIDE_EFFECTS__
|
|
17974
17974
|
function j5() {
|
|
17975
|
-
return /* @__PURE__ */
|
|
17975
|
+
return /* @__PURE__ */ jn((e) => Xw(e));
|
|
17976
17976
|
}
|
|
17977
17977
|
// @__NO_SIDE_EFFECTS__
|
|
17978
17978
|
function W5(e, t, r) {
|
|
@@ -18018,7 +18018,7 @@ function Cb(e) {
|
|
|
18018
18018
|
let t = e?.target ?? "draft-2020-12";
|
|
18019
18019
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
18020
18020
|
processors: e.processors ?? {},
|
|
18021
|
-
metadataRegistry: e?.metadata ??
|
|
18021
|
+
metadataRegistry: e?.metadata ?? aa,
|
|
18022
18022
|
target: t,
|
|
18023
18023
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
18024
18024
|
override: e?.override ?? (() => {
|
|
@@ -18451,19 +18451,19 @@ const wx = (e, t) => {
|
|
|
18451
18451
|
]
|
|
18452
18452
|
}), {
|
|
18453
18453
|
parent: !0
|
|
18454
|
-
}), e.with = e.check, e.clone = (r, n) => Nr(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Cx(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ax(e, r, n), e.parseAsync = async (r, n) => xx(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Tx(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => kx(e, r, n), e.decode = (r, n) => Px(e, r, n), e.encodeAsync = async (r, n) => Nx(e, r, n), e.decodeAsync = async (r, n) => Ix(e, r, n), e.safeEncode = (r, n) => Rx(e, r, n), e.safeDecode = (r, n) => Mx(e, r, n), e.safeEncodeAsync = async (r, n) => Fx(e, r, n), e.safeDecodeAsync = async (r, n) => Ox(e, r, n), e.refine = (r, n) => e.check(I6(r, n)), e.superRefine = (r) => e.check(R6(r)), e.overwrite = (r) => e.check(/* @__PURE__ */
|
|
18454
|
+
}), e.with = e.check, e.clone = (r, n) => Nr(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Cx(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ax(e, r, n), e.parseAsync = async (r, n) => xx(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Tx(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => kx(e, r, n), e.decode = (r, n) => Px(e, r, n), e.encodeAsync = async (r, n) => Nx(e, r, n), e.decodeAsync = async (r, n) => Ix(e, r, n), e.safeEncode = (r, n) => Rx(e, r, n), e.safeDecode = (r, n) => Mx(e, r, n), e.safeEncodeAsync = async (r, n) => Fx(e, r, n), e.safeDecodeAsync = async (r, n) => Ox(e, r, n), e.refine = (r, n) => e.check(I6(r, n)), e.superRefine = (r) => e.check(R6(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ jn(r)), e.optional = () => _f(e), e.exactOptional = () => v6(e), e.nullable = () => vf(e), e.nullish = () => _f(vf(e)), e.nonoptional = (r) => C6(e, r), e.array = () => l6(e), e.or = (r) => Nb([e, r]), e.and = (r) => p6(e, r), e.transform = (r) => $f(e, b6(r)), e.default = (r) => E6(e, r), e.prefault = (r) => w6(e, r), e.catch = (r) => A6(e, r), e.pipe = (r) => $f(e, r), e.readonly = () => P6(e), e.describe = (r) => {
|
|
18455
18455
|
const n = e.clone();
|
|
18456
|
-
return
|
|
18456
|
+
return aa.add(n, { description: r }), n;
|
|
18457
18457
|
}, Object.defineProperty(e, "description", {
|
|
18458
18458
|
get() {
|
|
18459
|
-
return
|
|
18459
|
+
return aa.get(e)?.description;
|
|
18460
18460
|
},
|
|
18461
18461
|
configurable: !0
|
|
18462
18462
|
}), e.meta = (...r) => {
|
|
18463
18463
|
if (r.length === 0)
|
|
18464
|
-
return
|
|
18464
|
+
return aa.get(e);
|
|
18465
18465
|
const n = e.clone();
|
|
18466
|
-
return
|
|
18466
|
+
return aa.add(n, r[0]), n;
|
|
18467
18467
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), kb = /* @__PURE__ */ O("_ZodString", (e, t) => {
|
|
18468
18468
|
Ll.init(e, t), qe.init(e, t), e._zod.processJSONSchema = (n, a, o) => J5(e, n, a);
|
|
18469
18469
|
const r = e._zod.bag;
|
|
@@ -18839,7 +18839,7 @@ const U6 = /* @__PURE__ */ new Set([
|
|
|
18839
18839
|
]), Mb = (/* @__PURE__ */ new Date()).getUTCFullYear(), oo = yr().trim().min(1, "Required").regex(/^[A-Za-z\s]+$/, "Only alphabetic characters are allowed."), Ef = Nb([
|
|
18840
18840
|
g6(""),
|
|
18841
18841
|
yr().trim().regex(/^[A-Za-z\s]*$/, "Only alphabetic characters are allowed.")
|
|
18842
|
-
]).optional(), H6 = (e, t, r) => Qe({ error: `${e} must be a number.` }).min(t, `${e} must be between ${t.toLocaleString("en-US")} and ${r.toLocaleString("en-US")}.`).max(r, `${e} must be between ${t.toLocaleString("en-US")} and ${r.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`), yn = (e, t) => Qe({ error: `${e} must be a number.` }).min(0, `${e} must be between 0 and ${t.toLocaleString("en-US")}.`).max(t, `${e} must be between 0 and ${t.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`), io = (e, t = 1600) => Qe({ error: `${e} must be a valid 4-digit year.` }).int(`${e} must be a whole number.`).min(t, `${e} should be between ${t} and the current year.`).max(Mb, `${e} cannot be in the future.`), so = (e) => Qe({ error: `${e} must be a number.` }).int(`${e} must be a whole number.`).min(0, `${e} must be between 0 and 99.`).max(99, `${e} must be between 0 and 99.`),
|
|
18842
|
+
]).optional(), H6 = (e, t, r) => Qe({ error: `${e} must be a number.` }).min(t, `${e} must be between ${t.toLocaleString("en-US")} and ${r.toLocaleString("en-US")}.`).max(r, `${e} must be between ${t.toLocaleString("en-US")} and ${r.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`), yn = (e, t) => Qe({ error: `${e} must be a number.` }).min(0, `${e} must be between 0 and ${t.toLocaleString("en-US")}.`).max(t, `${e} must be between 0 and ${t.toLocaleString("en-US")}.`).int(`${e} must be a whole number.`), io = (e, t = 1600) => Qe({ error: `${e} must be a valid 4-digit year.` }).int(`${e} must be a whole number.`).min(t, `${e} should be between ${t} and the current year.`).max(Mb, `${e} cannot be in the future.`), so = (e) => Qe({ error: `${e} must be a number.` }).int(`${e} must be a whole number.`).min(0, `${e} must be between 0 and 99.`).max(99, `${e} must be between 0 and 99.`), qn = (e, t, r = 0) => {
|
|
18843
18843
|
const n = Math.pow(10, t) - 1, a = n.toLocaleString("en-US"), o = r.toLocaleString("en-US");
|
|
18844
18844
|
return Qe({ error: `${e} must be a number.` }).min(r, `${e}: Value must be between ${o} and ${a}.`).max(n, `${e}: Value must be between ${o} and ${a}.`).int(`${e} must be a whole number.`);
|
|
18845
18845
|
}, V6 = {
|
|
@@ -18878,10 +18878,10 @@ const U6 = /* @__PURE__ */ new Set([
|
|
|
18878
18878
|
number_of_parking_spaces: Qe({ error: "Number of covered parking spaces must be a number." }).int("Number of covered parking spaces must be a whole number.").min(1, "Number of covered parking spaces must be between 1 and 3.").max(3, "Number of covered parking spaces must be between 1 and 3."),
|
|
18879
18879
|
// The three related coverages derive from the replacement cost, so they share
|
|
18880
18880
|
// its digit ceiling: a narrower one would reject a value we calculated.
|
|
18881
|
-
dwelling_replacement_cost:
|
|
18882
|
-
other_structures_coverage:
|
|
18883
|
-
personal_property_coverage:
|
|
18884
|
-
loss_of_use_coverage:
|
|
18881
|
+
dwelling_replacement_cost: qn("Replacement cost", 9, 1),
|
|
18882
|
+
other_structures_coverage: qn("Other structures", 9),
|
|
18883
|
+
personal_property_coverage: qn("Personal property", 9),
|
|
18884
|
+
loss_of_use_coverage: qn("Loss of use coverage", 9),
|
|
18885
18885
|
years_at_address: Qe({ error: "Years at address must be a number." }).int().min(0, "Years at address cannot be negative.").max(100, "Years at address must be 100 or less."),
|
|
18886
18886
|
months_at_address: Qe({ error: "Months at address must be a number." }).int().min(0, "Months at address cannot be negative.").max(11, "Months at address must be between 0 and 11."),
|
|
18887
18887
|
years_at_prior_address: Qe({ error: "Years at prior address must be a number." }).int().min(0, "Years at prior address cannot be negative.").max(100, "Years at prior address must be 100 or less."),
|
|
@@ -18891,7 +18891,7 @@ const U6 = /* @__PURE__ */ new Set([
|
|
|
18891
18891
|
}),
|
|
18892
18892
|
number_of_dogs: Qe({ error: "Number of dogs must be a number." }).int().min(0, "Number of dogs must be between 0 and 99.").max(99, "Number of dogs must be between 0 and 99."),
|
|
18893
18893
|
distance_to_coast_miles: Qe({ error: "Distance to coast must be a number." }).int().min(0, "Distance to coast cannot be negative.").max(9999, "Distance to coast must be at most 4 digits."),
|
|
18894
|
-
amount_paid_cents:
|
|
18894
|
+
amount_paid_cents: qn("Amount paid", 7),
|
|
18895
18895
|
// distance_from_fire_hydrant_ft and distance_from_fire_station_miles are select
|
|
18896
18896
|
// fields whose values are opaque string enums (e.g. '_0_500ft', 'Lessthan5miles').
|
|
18897
18897
|
// A number schema would coerce them to NaN and silently block the Next button,
|
|
@@ -20869,7 +20869,7 @@ function kf(e) {
|
|
|
20869
20869
|
const o = new Date(Date.UTC(r, n - 1, a));
|
|
20870
20870
|
return o.getUTCFullYear() !== r || o.getUTCMonth() !== n - 1 || o.getUTCDate() !== a ? null : o.getTime();
|
|
20871
20871
|
}
|
|
20872
|
-
function
|
|
20872
|
+
function la(e, t) {
|
|
20873
20873
|
if (!t.effectiveDateKey || !t.expirationDateKey) return !1;
|
|
20874
20874
|
const r = kf(e[t.expirationDateKey]), n = kf(e[t.effectiveDateKey]);
|
|
20875
20875
|
return r == null || n == null ? !1 : r < n;
|
|
@@ -20902,7 +20902,7 @@ function Hl(e) {
|
|
|
20902
20902
|
};
|
|
20903
20903
|
}
|
|
20904
20904
|
function ca(e, t) {
|
|
20905
|
-
return t.currentCarrierKey === "home_prior_carrier_name" && e.home_prior_carrier_name === "NoPriorInsurance" && e.auto_prior_carrier_name !== "NoPriorInsurance" ? !1 : (t.currentCarrierKey ? e[t.currentCarrierKey] : void 0) === "NoPriorInsurance" ? !0 : !t.effectiveDateKey || !t.expirationDateKey
|
|
20905
|
+
return t.currentCarrierKey === "home_prior_carrier_name" && e.home_prior_carrier_name === "NoPriorInsurance" && e.auto_prior_carrier_name !== "NoPriorInsurance" ? !1 : (t.currentCarrierKey ? e[t.currentCarrierKey] : void 0) === "NoPriorInsurance" ? !0 : !t.effectiveDateKey || !t.expirationDateKey ? !1 : la(e, t);
|
|
20906
20906
|
}
|
|
20907
20907
|
function Do(e, t, r) {
|
|
20908
20908
|
const n = String(e.key ?? "");
|
|
@@ -21239,7 +21239,7 @@ function vn(e, t = {}) {
|
|
|
21239
21239
|
}
|
|
21240
21240
|
}
|
|
21241
21241
|
const Ge = "https://api.getcredify.com";
|
|
21242
|
-
let
|
|
21242
|
+
let Ln = null;
|
|
21243
21243
|
const sT = 6e4, Uf = /* @__PURE__ */ new Map();
|
|
21244
21244
|
function uT(e) {
|
|
21245
21245
|
try {
|
|
@@ -21255,23 +21255,23 @@ function Hf(e, t, r) {
|
|
|
21255
21255
|
u && s - u < sT || (Uf.set(i, s), vn(e, { phase: "api_request", endpoint: o, statusCode: r }));
|
|
21256
21256
|
}
|
|
21257
21257
|
function So(e) {
|
|
21258
|
-
|
|
21258
|
+
Ln = e, HA(e);
|
|
21259
21259
|
}
|
|
21260
21260
|
function Qt() {
|
|
21261
|
-
return
|
|
21261
|
+
return Ln;
|
|
21262
21262
|
}
|
|
21263
21263
|
function wo() {
|
|
21264
21264
|
const e = VA();
|
|
21265
|
-
e && (
|
|
21265
|
+
e && (Ln = e);
|
|
21266
21266
|
}
|
|
21267
21267
|
function Kb() {
|
|
21268
|
-
|
|
21268
|
+
Ln = null, jb();
|
|
21269
21269
|
}
|
|
21270
21270
|
async function rt(e, t) {
|
|
21271
21271
|
const r = {
|
|
21272
21272
|
"Content-Type": "application/json"
|
|
21273
21273
|
};
|
|
21274
|
-
|
|
21274
|
+
Ln && (r.Authorization = `Bearer ${Ln}`);
|
|
21275
21275
|
let n;
|
|
21276
21276
|
try {
|
|
21277
21277
|
n = await fetch(e, {
|
|
@@ -21642,7 +21642,7 @@ function Jf(e, t) {
|
|
|
21642
21642
|
function TT(e, t) {
|
|
21643
21643
|
return Array.isArray(e) ? e.some((r) => r === t) : typeof e == "string" ? t != null && e.includes(String(t)) : !1;
|
|
21644
21644
|
}
|
|
21645
|
-
function
|
|
21645
|
+
function Jn(e, t, r) {
|
|
21646
21646
|
switch (t) {
|
|
21647
21647
|
case "equals":
|
|
21648
21648
|
return e === r;
|
|
@@ -21666,7 +21666,7 @@ function Qn(e, t, r) {
|
|
|
21666
21666
|
return !1;
|
|
21667
21667
|
}
|
|
21668
21668
|
}
|
|
21669
|
-
function
|
|
21669
|
+
function oa(e, t) {
|
|
21670
21670
|
return t.reduce((r, n) => r?.[n], e);
|
|
21671
21671
|
}
|
|
21672
21672
|
function At(e, t, r) {
|
|
@@ -21687,7 +21687,7 @@ function At(e, t, r) {
|
|
|
21687
21687
|
return { ...e, [n]: s };
|
|
21688
21688
|
}
|
|
21689
21689
|
function ot(e, t, r) {
|
|
21690
|
-
return
|
|
21690
|
+
return oa(e, [...t ?? [], r]);
|
|
21691
21691
|
}
|
|
21692
21692
|
function ut(e, t, r, n) {
|
|
21693
21693
|
return At(e, [...t ?? [], r], n);
|
|
@@ -21777,7 +21777,7 @@ function Qb({
|
|
|
21777
21777
|
[o, c]
|
|
21778
21778
|
);
|
|
21779
21779
|
function C(x, D, v) {
|
|
21780
|
-
const W = y, Y = x ?
|
|
21780
|
+
const W = y, Y = x ? oa(y, x) ?? {} : W;
|
|
21781
21781
|
return x ? { state: W.state, ...Y, [D]: v } : { ...Y, [D]: v };
|
|
21782
21782
|
}
|
|
21783
21783
|
function k(x, D) {
|
|
@@ -21826,7 +21826,7 @@ function Qb({
|
|
|
21826
21826
|
if (x.inputType === "radio" && x.conditionals) {
|
|
21827
21827
|
const B = x.conditionals ?? [];
|
|
21828
21828
|
for (const ne of B) {
|
|
21829
|
-
const re = ot(y, D, v), de =
|
|
21829
|
+
const re = ot(y, D, v), de = Jn(re, ne.conditionalType, ne.conditionalValue), ce = Jn(U, ne.conditionalType, ne.conditionalValue);
|
|
21830
21830
|
if (de && !ce && ne.conditionalQuestionsAllowMultiple) {
|
|
21831
21831
|
const he = ne.conditionalQuestions ?? [];
|
|
21832
21832
|
if (he.length > 0) {
|
|
@@ -21883,7 +21883,7 @@ function Qb({
|
|
|
21883
21883
|
/* @__PURE__ */ h("legend", { style: { fontWeight: 600, padding: "0 8px" }, children: Oe }),
|
|
21884
21884
|
/* @__PURE__ */ T("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))", gap: "12px" }, children: [
|
|
21885
21885
|
/* @__PURE__ */ h(
|
|
21886
|
-
|
|
21886
|
+
Yn,
|
|
21887
21887
|
{
|
|
21888
21888
|
id: `veh-${Se}-comp`,
|
|
21889
21889
|
label: "Comprehensive deductible",
|
|
@@ -21895,7 +21895,7 @@ function Qb({
|
|
|
21895
21895
|
}
|
|
21896
21896
|
),
|
|
21897
21897
|
/* @__PURE__ */ h(
|
|
21898
|
-
|
|
21898
|
+
Yn,
|
|
21899
21899
|
{
|
|
21900
21900
|
id: `veh-${Se}-coll`,
|
|
21901
21901
|
label: "Collision deductible",
|
|
@@ -21907,7 +21907,7 @@ function Qb({
|
|
|
21907
21907
|
}
|
|
21908
21908
|
),
|
|
21909
21909
|
/* @__PURE__ */ h(
|
|
21910
|
-
|
|
21910
|
+
Yn,
|
|
21911
21911
|
{
|
|
21912
21912
|
id: `veh-${Se}-tow`,
|
|
21913
21913
|
label: "Towing and Labor",
|
|
@@ -21919,7 +21919,7 @@ function Qb({
|
|
|
21919
21919
|
}
|
|
21920
21920
|
),
|
|
21921
21921
|
/* @__PURE__ */ h(
|
|
21922
|
-
|
|
21922
|
+
Yn,
|
|
21923
21923
|
{
|
|
21924
21924
|
id: `veh-${Se}-trans`,
|
|
21925
21925
|
label: "Transportation expense",
|
|
@@ -21945,8 +21945,8 @@ function Qb({
|
|
|
21945
21945
|
max: 100,
|
|
21946
21946
|
step: 1,
|
|
21947
21947
|
inputMode: "numeric",
|
|
21948
|
-
onChange: (
|
|
21949
|
-
const cr =
|
|
21948
|
+
onChange: (Wn) => {
|
|
21949
|
+
const cr = Wn.currentTarget.value.replace(/\D+/g, "");
|
|
21950
21950
|
be(Se, Ht, cr === "" ? 0 : Math.min(100, parseInt(cr, 10)));
|
|
21951
21951
|
}
|
|
21952
21952
|
}
|
|
@@ -22396,7 +22396,7 @@ function Qb({
|
|
|
22396
22396
|
}
|
|
22397
22397
|
const de = kT(D, v), ce = u?.has([...D ?? [], v].join(".")) ?? !1;
|
|
22398
22398
|
return /* @__PURE__ */ h(
|
|
22399
|
-
|
|
22399
|
+
Yn,
|
|
22400
22400
|
{
|
|
22401
22401
|
id: de,
|
|
22402
22402
|
label: B ? `${W} — ${B}` : W,
|
|
@@ -22425,7 +22425,7 @@ function Qb({
|
|
|
22425
22425
|
L = ut(L, D, "co_applicant_occupation", ye ?? "");
|
|
22426
22426
|
}
|
|
22427
22427
|
r && n ? n(L) : b(L), S(L);
|
|
22428
|
-
const se = D ?
|
|
22428
|
+
const se = D ? oa(L, D) ?? {} : L;
|
|
22429
22429
|
k(v, { ...se, [v]: R });
|
|
22430
22430
|
},
|
|
22431
22431
|
placeholder: B ?? "Select an option",
|
|
@@ -22476,7 +22476,7 @@ function Qb({
|
|
|
22476
22476
|
if (z === "months_at_address" && v || !Do(Y, y, f) || !As(Y, y, D) || !$o(Y, y, i)) return null;
|
|
22477
22477
|
if (Ts(z, Y, y, i)) {
|
|
22478
22478
|
const re = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
|
|
22479
|
-
if (!(re && re !== "NoPriorInsurance" &&
|
|
22479
|
+
if (!(re && re !== "NoPriorInsurance" && la(y, f) && Cs.has(z))) return null;
|
|
22480
22480
|
}
|
|
22481
22481
|
const me = fe(Y, D), Ce = z === "years_at_address" && W ? fe(W, D) : null, U = Y.conditionals ?? [];
|
|
22482
22482
|
if (!U.length)
|
|
@@ -22487,7 +22487,7 @@ function Qb({
|
|
|
22487
22487
|
me,
|
|
22488
22488
|
Ce
|
|
22489
22489
|
] }, `wrap-${z}-${ue}`);
|
|
22490
|
-
const le = Kf(Y, ot(y, D, z)), B = U.filter((re) =>
|
|
22490
|
+
const le = Kf(Y, ot(y, D, z)), B = U.filter((re) => Jn(le, re.conditionalType, re.conditionalValue)), ne = B.length > 1 && !B.some((re) => re.conditionalQuestionsAllowMultiple) ? B.slice(0, 1) : B;
|
|
22491
22491
|
return /* @__PURE__ */ T("div", { className: xs(z, i, D), "data-question-key": z, children: [
|
|
22492
22492
|
me,
|
|
22493
22493
|
Ce,
|
|
@@ -22496,7 +22496,7 @@ function Qb({
|
|
|
22496
22496
|
if (!ce.length) return null;
|
|
22497
22497
|
if (!re.conditionalQuestionsAllowMultiple)
|
|
22498
22498
|
return /* @__PURE__ */ h("div", { className: "mt-3", children: ie(ce, D) }, `branch-${z}-${de}`);
|
|
22499
|
-
const he = co(z), R =
|
|
22499
|
+
const he = co(z), R = oa(y, [...D ?? [], he]) ?? [], L = Math.max(1, R.length || 1), se = () => {
|
|
22500
22500
|
const ye = At(y, [...D ?? [], he, R.length], {});
|
|
22501
22501
|
r && n ? n(ye) : b(ye), S(ye);
|
|
22502
22502
|
}, ae = () => {
|
|
@@ -22519,24 +22519,24 @@ function Qb({
|
|
|
22519
22519
|
Fi
|
|
22520
22520
|
] }),
|
|
22521
22521
|
ce.map((Bt) => {
|
|
22522
|
-
const
|
|
22522
|
+
const Wn = String(Bt.key);
|
|
22523
22523
|
if (!Do(Bt, y, f) || !As(Bt, y, Ae) || !$o(Bt, y, i)) return null;
|
|
22524
|
-
if (Ts(
|
|
22524
|
+
if (Ts(Wn, Bt, y, i)) {
|
|
22525
22525
|
const cr = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
|
|
22526
|
-
if (!(cr && cr !== "NoPriorInsurance" &&
|
|
22526
|
+
if (!(cr && cr !== "NoPriorInsurance" && la(y, f) && Cs.has(Wn))) return null;
|
|
22527
22527
|
}
|
|
22528
22528
|
return /* @__PURE__ */ T("div", { className: "mt-3", children: [
|
|
22529
22529
|
fe(Bt, Ae),
|
|
22530
22530
|
(() => {
|
|
22531
22531
|
const cr = Bt.conditionals ?? [];
|
|
22532
22532
|
if (!cr.length) return null;
|
|
22533
|
-
const Kl = ot(y, Ae, Bt.key), Oa = cr.filter((Rr) =>
|
|
22533
|
+
const Kl = ot(y, Ae, Bt.key), Oa = cr.filter((Rr) => Jn(Kl, Rr.conditionalType, Rr.conditionalValue));
|
|
22534
22534
|
return (Oa.length > 1 && !Oa.some((Rr) => Rr.conditionalQuestionsAllowMultiple) ? Oa.slice(0, 1) : Oa).map((Rr, Oi) => {
|
|
22535
22535
|
const Bi = Rr.conditionalQuestions ?? [];
|
|
22536
22536
|
if (!Bi.length) return null;
|
|
22537
22537
|
if (!Rr.conditionalQuestionsAllowMultiple)
|
|
22538
22538
|
return /* @__PURE__ */ h("div", { className: "mt-3", children: ie(Bi, Ae) }, `nested-${we}-${Oi}`);
|
|
22539
|
-
const Ba = co(Bt.key), La =
|
|
22539
|
+
const Ba = co(Bt.key), La = oa(y, [...Ae, Ba]) ?? [], Yl = Math.max(1, La.length || 1), $_ = () => {
|
|
22540
22540
|
const pn = At(y, [...Ae, Ba, La.length], {});
|
|
22541
22541
|
r && n ? n(pn) : b(pn), S(pn);
|
|
22542
22542
|
}, D_ = () => {
|
|
@@ -22564,7 +22564,7 @@ function Qb({
|
|
|
22564
22564
|
] }, `nested-repeat-${we}-${Oi}`);
|
|
22565
22565
|
});
|
|
22566
22566
|
})()
|
|
22567
|
-
] }, `${we}-${
|
|
22567
|
+
] }, `${we}-${Wn}`);
|
|
22568
22568
|
})
|
|
22569
22569
|
] }, `group-${we}`);
|
|
22570
22570
|
})
|
|
@@ -22580,12 +22580,12 @@ function Qb({
|
|
|
22580
22580
|
const ue = String(Y.key);
|
|
22581
22581
|
if (Ts(ue, Y, y, i)) {
|
|
22582
22582
|
const le = f.currentCarrierKey ? y[f.currentCarrierKey] : void 0;
|
|
22583
|
-
if (!(le && le !== "NoPriorInsurance" &&
|
|
22583
|
+
if (!(le && le !== "NoPriorInsurance" && la(y, f) && Cs.has(ue))) return;
|
|
22584
22584
|
}
|
|
22585
22585
|
Co(Y) || x.push(Y);
|
|
22586
22586
|
const z = Y.conditionals ?? [];
|
|
22587
22587
|
if (!z.length) return;
|
|
22588
|
-
const me = Kf(Y, ot(y, W, ue)), Ce = z.filter((le) =>
|
|
22588
|
+
const me = Kf(Y, ot(y, W, ue)), Ce = z.filter((le) => Jn(me, le.conditionalType, le.conditionalValue));
|
|
22589
22589
|
(Ce.length > 1 && !Ce.some((le) => le.conditionalQuestionsAllowMultiple) ? Ce.slice(0, 1) : Ce).forEach((le) => {
|
|
22590
22590
|
const B = le.conditionalQuestions ?? [];
|
|
22591
22591
|
B.length && (le.conditionalQuestionsAllowMultiple || D(B, W));
|
|
@@ -22816,19 +22816,19 @@ function KT(e, t) {
|
|
|
22816
22816
|
function YT(e) {
|
|
22817
22817
|
return (e.drivers__items ?? []).some((r) => !t_(r));
|
|
22818
22818
|
}
|
|
22819
|
-
const
|
|
22819
|
+
const Un = {};
|
|
22820
22820
|
function qT(e) {
|
|
22821
|
-
let t =
|
|
22822
|
-
return t || (t = /* @__PURE__ */ new Set(),
|
|
22821
|
+
let t = Un[e];
|
|
22822
|
+
return t || (t = /* @__PURE__ */ new Set(), Un[e] = t), t;
|
|
22823
22823
|
}
|
|
22824
22824
|
function r_(e, t) {
|
|
22825
22825
|
qT(e).add(t);
|
|
22826
22826
|
}
|
|
22827
22827
|
function n_(e, t) {
|
|
22828
|
-
|
|
22828
|
+
Un[e]?.delete(t);
|
|
22829
22829
|
}
|
|
22830
22830
|
function Ir(e, ...t) {
|
|
22831
|
-
const r =
|
|
22831
|
+
const r = Un[e];
|
|
22832
22832
|
if (!r || r.size === 0) return;
|
|
22833
22833
|
const n = t[0], a = { quoteId: Ii(), timestamp: Date.now() };
|
|
22834
22834
|
for (const o of [...r])
|
|
@@ -22839,8 +22839,8 @@ function Ir(e, ...t) {
|
|
|
22839
22839
|
}
|
|
22840
22840
|
}
|
|
22841
22841
|
function JT() {
|
|
22842
|
-
for (const e of Object.keys(
|
|
22843
|
-
delete
|
|
22842
|
+
for (const e of Object.keys(Un))
|
|
22843
|
+
delete Un[e];
|
|
22844
22844
|
}
|
|
22845
22845
|
function QT() {
|
|
22846
22846
|
Ir("widgetOpened");
|
|
@@ -22863,7 +22863,7 @@ function rk(e) {
|
|
|
22863
22863
|
function nk() {
|
|
22864
22864
|
Ir("ratesBack");
|
|
22865
22865
|
}
|
|
22866
|
-
function
|
|
22866
|
+
function Qn(e) {
|
|
22867
22867
|
Ir("submissionFailed", e);
|
|
22868
22868
|
}
|
|
22869
22869
|
const a_ = /* @__PURE__ */ new Set(["Disabled", "Retired", "Unemployed", "Other"]);
|
|
@@ -22940,7 +22940,7 @@ function Mi(e, t, r) {
|
|
|
22940
22940
|
const l = String(u.key);
|
|
22941
22941
|
if (Ni(l, r, t)) {
|
|
22942
22942
|
const p = a.currentCarrierKey ? t[a.currentCarrierKey] : void 0;
|
|
22943
|
-
if (!(p && p !== "NoPriorInsurance" &&
|
|
22943
|
+
if (!(p && p !== "NoPriorInsurance" && la(t, a) && sk.has(l))) return;
|
|
22944
22944
|
}
|
|
22945
22945
|
o_(u) || o.push(u);
|
|
22946
22946
|
const c = Zl(u, t[l]), d = u.conditionals ?? [];
|
|
@@ -25623,7 +25623,7 @@ function yP({ isOpen: e, onClose: t }) {
|
|
|
25623
25623
|
vn(new Error("Quote failed: rate-generation worker reported rates_status=failed"), {
|
|
25624
25624
|
quoteId: i.current ?? void 0,
|
|
25625
25625
|
phase: "rates_status_failed"
|
|
25626
|
-
}),
|
|
25626
|
+
}), Qn({ reason: "submission" }), I({ message: "submission_failed" }), p(!1);
|
|
25627
25627
|
return;
|
|
25628
25628
|
}
|
|
25629
25629
|
} catch (ye) {
|
|
@@ -25632,7 +25632,7 @@ function yP({ isOpen: e, onClose: t }) {
|
|
|
25632
25632
|
quoteId: i.current ?? void 0,
|
|
25633
25633
|
phase: "rates_polling",
|
|
25634
25634
|
message: `Quote failed: ${R} consecutive get-quote poll failures`
|
|
25635
|
-
}),
|
|
25635
|
+
}), Qn({ reason: "network" }), I({ message: "submission_failed" }), p(!1);
|
|
25636
25636
|
return;
|
|
25637
25637
|
}
|
|
25638
25638
|
}
|
|
@@ -25641,7 +25641,7 @@ function yP({ isOpen: e, onClose: t }) {
|
|
|
25641
25641
|
vn(new Error(`Quote failed: rate-generation timed out after ${he} polls`), {
|
|
25642
25642
|
quoteId: i.current ?? void 0,
|
|
25643
25643
|
phase: "rates_polling_timeout"
|
|
25644
|
-
}),
|
|
25644
|
+
}), Qn({ reason: "timeout" }), I({ message: "submission_failed" }), p(!1);
|
|
25645
25645
|
return;
|
|
25646
25646
|
}
|
|
25647
25647
|
const pe = window.setTimeout(ae, L);
|
|
@@ -25815,7 +25815,7 @@ function yP({ isOpen: e, onClose: t }) {
|
|
|
25815
25815
|
vn(new Error(`Quote failed at submission: ${re.message}`), {
|
|
25816
25816
|
quoteId: a ?? void 0,
|
|
25817
25817
|
phase: ne
|
|
25818
|
-
}), p(!1), b(!1), y.current = null,
|
|
25818
|
+
}), p(!1), b(!1), y.current = null, Qn({ reason: "submission" }), I({ message: re.message });
|
|
25819
25819
|
return;
|
|
25820
25820
|
}
|
|
25821
25821
|
if (re.status === "success")
|
|
@@ -25836,7 +25836,7 @@ function yP({ isOpen: e, onClose: t }) {
|
|
|
25836
25836
|
re?.__sentryReported || vn(re, {
|
|
25837
25837
|
quoteId: a ?? void 0,
|
|
25838
25838
|
phase: ne
|
|
25839
|
-
}), p(!1),
|
|
25839
|
+
}), p(!1), Qn({ reason: "submission" }), I({ message: "Oops, something went wrong. Please try again later." });
|
|
25840
25840
|
}
|
|
25841
25841
|
},
|
|
25842
25842
|
[a, r]
|
|
@@ -26107,7 +26107,7 @@ function _P({ isOpen: e }) {
|
|
|
26107
26107
|
const t = () => v_.close();
|
|
26108
26108
|
return /* @__PURE__ */ h(tl, { fallback: /* @__PURE__ */ h(bP, { onClose: t }), children: /* @__PURE__ */ h(yP, { isOpen: e, onClose: t }) });
|
|
26109
26109
|
}
|
|
26110
|
-
var Is = { dsn: "", environment: "production", release: "
|
|
26110
|
+
var Is = { dsn: "", environment: "production", release: "7c7fb9e7767b5432e7fcfc82d3e2694afa34aa08" };
|
|
26111
26111
|
function vP() {
|
|
26112
26112
|
try {
|
|
26113
26113
|
return typeof Is < "u" && Is ? Is : {};
|