@cal.macconnachie/web-components 2.4.8 → 2.4.9
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.js +212 -215
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -249,12 +249,12 @@ let $e = class extends HTMLElement {
|
|
|
249
249
|
$e.elementStyles = [], $e.shadowRootOptions = { mode: "open" }, $e[Be("elementProperties")] = /* @__PURE__ */ new Map(), $e[Be("finalized")] = /* @__PURE__ */ new Map(), hs?.({ ReactiveElement: $e }), (ct.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
250
|
const Ot = globalThis, nt = Ot.trustedTypes, Qt = nt ? nt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Cr = "$lit$", ce = `lit$${Math.random().toFixed(9).slice(2)}$`, Er = "?" + ce, ps = `<${Er}>`, ve = document, Ne = () => ve.createComment(""), qe = (r) => r === null || typeof r != "object" && typeof r != "function", Rt = Array.isArray, us = (r) => Rt(r) || typeof r?.[Symbol.iterator] == "function", yt = `[
|
|
251
251
|
\f\r]`, Me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, er = /-->/g, tr = />/g, ue = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, sr = /"/g, Ar = /^(?:script|style|textarea|title)$/i,
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, sr = /"/g, Ar = /^(?:script|style|textarea|title)$/i, ms = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = ms(1), oe = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), ir = /* @__PURE__ */ new WeakMap(), ge = ve.createTreeWalker(ve, 129);
|
|
253
253
|
function Tr(r, e) {
|
|
254
254
|
if (!Rt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
255
|
return Qt !== void 0 ? Qt.createHTML(e) : e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const gs = (r, e) => {
|
|
258
258
|
const t = r.length - 1, i = [];
|
|
259
259
|
let s, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", a = Me;
|
|
260
260
|
for (let n = 0; n < t; n++) {
|
|
@@ -271,22 +271,22 @@ class Fe {
|
|
|
271
271
|
let s;
|
|
272
272
|
this.parts = [];
|
|
273
273
|
let o = 0, a = 0;
|
|
274
|
-
const n = e.length - 1, c = this.parts, [p, d] =
|
|
275
|
-
if (this.el = Fe.createElement(p, i),
|
|
274
|
+
const n = e.length - 1, c = this.parts, [p, d] = gs(e, t);
|
|
275
|
+
if (this.el = Fe.createElement(p, i), ge.currentNode = this.el.content, t === 2 || t === 3) {
|
|
276
276
|
const h = this.el.content.firstChild;
|
|
277
277
|
h.replaceWith(...h.childNodes);
|
|
278
278
|
}
|
|
279
|
-
for (; (s =
|
|
279
|
+
for (; (s = ge.nextNode()) !== null && c.length < n; ) {
|
|
280
280
|
if (s.nodeType === 1) {
|
|
281
281
|
if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(Cr)) {
|
|
282
|
-
const b = d[a++], y = s.getAttribute(h).split(ce),
|
|
283
|
-
c.push({ type: 1, index: o, name:
|
|
282
|
+
const b = d[a++], y = s.getAttribute(h).split(ce), m = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
c.push({ type: 1, index: o, name: m[2], strings: y, ctor: m[1] === "." ? bs : m[1] === "?" ? vs : m[1] === "@" ? ys : dt }), s.removeAttribute(h);
|
|
284
284
|
} else h.startsWith(ce) && (c.push({ type: 6, index: o }), s.removeAttribute(h));
|
|
285
285
|
if (Ar.test(s.tagName)) {
|
|
286
286
|
const h = s.textContent.split(ce), b = h.length - 1;
|
|
287
287
|
if (b > 0) {
|
|
288
288
|
s.textContent = nt ? nt.emptyScript : "";
|
|
289
|
-
for (let y = 0; y < b; y++) s.append(h[y], Ne()),
|
|
289
|
+
for (let y = 0; y < b; y++) s.append(h[y], Ne()), ge.nextNode(), c.push({ type: 2, index: ++o });
|
|
290
290
|
s.append(h[b], Ne());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
@@ -321,16 +321,16 @@ let fs = class {
|
|
|
321
321
|
}
|
|
322
322
|
u(e) {
|
|
323
323
|
const { el: { content: t }, parts: i } = this._$AD, s = (e?.creationScope ?? ve).importNode(t, !0);
|
|
324
|
-
|
|
325
|
-
let o =
|
|
324
|
+
ge.currentNode = s;
|
|
325
|
+
let o = ge.nextNode(), a = 0, n = 0, c = i[0];
|
|
326
326
|
for (; c !== void 0; ) {
|
|
327
327
|
if (a === c.index) {
|
|
328
328
|
let p;
|
|
329
329
|
c.type === 2 ? p = new _e(o, o.nextSibling, this, e) : c.type === 1 ? p = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (p = new ws(o, this, e)), this._$AV.push(p), c = i[++n];
|
|
330
330
|
}
|
|
331
|
-
a !== c?.index && (o =
|
|
331
|
+
a !== c?.index && (o = ge.nextNode(), a++);
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return ge.currentNode = ve, s;
|
|
334
334
|
}
|
|
335
335
|
p(e) {
|
|
336
336
|
let t = 0;
|
|
@@ -575,7 +575,7 @@ const { I: As } = xs, or = () => document.createComment(""), Ie = (r, e, t) => {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
return t;
|
|
578
|
-
},
|
|
578
|
+
}, me = (r, e, t = r) => (r._$AI(e, t), r), Ts = {}, Ds = (r, e = Ts) => r._$AH = e, Ps = (r) => r._$AH, wt = (r) => {
|
|
579
579
|
r._$AR(), r._$AA.remove();
|
|
580
580
|
};
|
|
581
581
|
const ar = (r, e, t) => {
|
|
@@ -601,25 +601,25 @@ const ar = (r, e, t) => {
|
|
|
601
601
|
const s = Ps(r), { values: o, keys: a } = this.dt(e, t, i);
|
|
602
602
|
if (!Array.isArray(s)) return this.ut = a, o;
|
|
603
603
|
const n = this.ut ??= [], c = [];
|
|
604
|
-
let p, d, h = 0, b = s.length - 1, y = 0,
|
|
605
|
-
for (; h <= b && y <=
|
|
604
|
+
let p, d, h = 0, b = s.length - 1, y = 0, m = o.length - 1;
|
|
605
|
+
for (; h <= b && y <= m; ) if (s[h] === null) h++;
|
|
606
606
|
else if (s[b] === null) b--;
|
|
607
|
-
else if (n[h] === a[y]) c[y] =
|
|
608
|
-
else if (n[b] === a[
|
|
609
|
-
else if (n[h] === a[
|
|
610
|
-
else if (n[b] === a[y]) c[y] =
|
|
611
|
-
else if (p === void 0 && (p = ar(a, y,
|
|
607
|
+
else if (n[h] === a[y]) c[y] = me(s[h], o[y]), h++, y++;
|
|
608
|
+
else if (n[b] === a[m]) c[m] = me(s[b], o[m]), b--, m--;
|
|
609
|
+
else if (n[h] === a[m]) c[m] = me(s[h], o[m]), Ie(r, c[m + 1], s[h]), h++, m--;
|
|
610
|
+
else if (n[b] === a[y]) c[y] = me(s[b], o[y]), Ie(r, s[h], s[b]), b--, y++;
|
|
611
|
+
else if (p === void 0 && (p = ar(a, y, m), d = ar(n, h, b)), p.has(n[h])) if (p.has(n[b])) {
|
|
612
612
|
const v = d.get(a[y]), f = v !== void 0 ? s[v] : null;
|
|
613
613
|
if (f === null) {
|
|
614
614
|
const x = Ie(r, s[h]);
|
|
615
|
-
|
|
616
|
-
} else c[y] =
|
|
615
|
+
me(x, o[y]), c[y] = x;
|
|
616
|
+
} else c[y] = me(f, o[y]), Ie(r, s[h], f), s[v] = null;
|
|
617
617
|
y++;
|
|
618
618
|
} else wt(s[b]), b--;
|
|
619
619
|
else wt(s[h]), h++;
|
|
620
|
-
for (; y <=
|
|
621
|
-
const v = Ie(r, c[
|
|
622
|
-
|
|
620
|
+
for (; y <= m; ) {
|
|
621
|
+
const v = Ie(r, c[m + 1]);
|
|
622
|
+
me(v, o[y]), c[y++] = v;
|
|
623
623
|
}
|
|
624
624
|
for (; h <= b; ) {
|
|
625
625
|
const v = s[h++];
|
|
@@ -689,7 +689,7 @@ const z = ({
|
|
|
689
689
|
password: h,
|
|
690
690
|
accessToken: b,
|
|
691
691
|
refreshToken: y,
|
|
692
|
-
idToken:
|
|
692
|
+
idToken: m
|
|
693
693
|
}) => {
|
|
694
694
|
const v = await fetch(`${r}${e.login}`, {
|
|
695
695
|
method: "POST",
|
|
@@ -702,7 +702,7 @@ const z = ({
|
|
|
702
702
|
password: h,
|
|
703
703
|
accessToken: b,
|
|
704
704
|
refreshToken: y,
|
|
705
|
-
idToken:
|
|
705
|
+
idToken: m
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
if (!v.ok) {
|
|
@@ -775,7 +775,7 @@ const z = ({
|
|
|
775
775
|
password: h,
|
|
776
776
|
phone_number: b,
|
|
777
777
|
family_name: y,
|
|
778
|
-
given_name:
|
|
778
|
+
given_name: m,
|
|
779
779
|
code: v
|
|
780
780
|
}) => {
|
|
781
781
|
const f = await fetch(`${r}${e.register}`, {
|
|
@@ -789,7 +789,7 @@ const z = ({
|
|
|
789
789
|
password: h,
|
|
790
790
|
phone_number: b,
|
|
791
791
|
family_name: y,
|
|
792
|
-
given_name:
|
|
792
|
+
given_name: m,
|
|
793
793
|
code: v
|
|
794
794
|
})
|
|
795
795
|
});
|
|
@@ -834,8 +834,8 @@ const z = ({
|
|
|
834
834
|
})
|
|
835
835
|
});
|
|
836
836
|
if (!y.ok) {
|
|
837
|
-
const
|
|
838
|
-
throw new Error(
|
|
837
|
+
const m = await y.json();
|
|
838
|
+
throw new Error(m.message || m.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -898,7 +898,7 @@ const z = ({
|
|
|
898
898
|
}, y = async () => {
|
|
899
899
|
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
901
|
-
},
|
|
901
|
+
}, m = (x) => {
|
|
902
902
|
const _ = sessionStorage.getItem("oauth_state");
|
|
903
903
|
return sessionStorage.removeItem("oauth_state"), _ === x;
|
|
904
904
|
}, v = () => {
|
|
@@ -908,7 +908,7 @@ const z = ({
|
|
|
908
908
|
return {
|
|
909
909
|
redirectToGoogleAuth: h,
|
|
910
910
|
redirectToAppleAuth: y,
|
|
911
|
-
validateState:
|
|
911
|
+
validateState: m,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
914
|
const _ = v();
|
|
@@ -1362,8 +1362,8 @@ class E extends L {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
render() {
|
|
1365
|
-
return this.isLoading && this.hasHandledOAuthCallback ?
|
|
1366
|
-
${this.logoUrl.length > 0 ?
|
|
1365
|
+
return this.isLoading && this.hasHandledOAuthCallback ? g`
|
|
1366
|
+
${this.logoUrl.length > 0 ? g`
|
|
1367
1367
|
<header class="modal-header">
|
|
1368
1368
|
<div class="auth-header">
|
|
1369
1369
|
<img
|
|
@@ -1393,9 +1393,9 @@ class E extends L {
|
|
|
1393
1393
|
${this.renderAlerts()}
|
|
1394
1394
|
</div>
|
|
1395
1395
|
</div>
|
|
1396
|
-
` : this.isLoggedIn ?
|
|
1396
|
+
` : this.isLoggedIn ? g`
|
|
1397
1397
|
<!-- Header -->
|
|
1398
|
-
${this.logoUrl.length > 0 ?
|
|
1398
|
+
${this.logoUrl.length > 0 ? g`
|
|
1399
1399
|
<header class="modal-header">
|
|
1400
1400
|
<div class="auth-header">
|
|
1401
1401
|
<img
|
|
@@ -1425,9 +1425,9 @@ class E extends L {
|
|
|
1425
1425
|
${this.renderAlerts()}
|
|
1426
1426
|
</div>
|
|
1427
1427
|
</div>
|
|
1428
|
-
` :
|
|
1428
|
+
` : g`
|
|
1429
1429
|
<!-- Header -->
|
|
1430
|
-
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ?
|
|
1430
|
+
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ? g`
|
|
1431
1431
|
<header class="modal-header">
|
|
1432
1432
|
|
|
1433
1433
|
<div class="auth-header">
|
|
@@ -1461,7 +1461,7 @@ class E extends L {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
renderFormContent() {
|
|
1463
1463
|
if (this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form"))
|
|
1464
|
-
return
|
|
1464
|
+
return g`
|
|
1465
1465
|
<!-- Email -->
|
|
1466
1466
|
<base-input
|
|
1467
1467
|
id="email-input"
|
|
@@ -1487,7 +1487,7 @@ class E extends L {
|
|
|
1487
1487
|
@input=${(e) => this.password = e.detail.value}
|
|
1488
1488
|
></base-input>
|
|
1489
1489
|
|
|
1490
|
-
${this.mode === "signin" && this.error ?
|
|
1490
|
+
${this.mode === "signin" && this.error ? g`
|
|
1491
1491
|
<div class="forgot-row">
|
|
1492
1492
|
<button type="button" class="text-btn" @click=${this.startReset}>
|
|
1493
1493
|
Forgot your password?
|
|
@@ -1495,7 +1495,7 @@ class E extends L {
|
|
|
1495
1495
|
</div>
|
|
1496
1496
|
` : k}
|
|
1497
1497
|
|
|
1498
|
-
${this.mode === "signup" ?
|
|
1498
|
+
${this.mode === "signup" ? g`
|
|
1499
1499
|
<!-- Confirm Password -->
|
|
1500
1500
|
<base-input
|
|
1501
1501
|
type="password"
|
|
@@ -1534,14 +1534,14 @@ class E extends L {
|
|
|
1534
1534
|
` : k}
|
|
1535
1535
|
`;
|
|
1536
1536
|
if (this.mode === "signup" && this.signupStep === "otp")
|
|
1537
|
-
return
|
|
1537
|
+
return g`
|
|
1538
1538
|
<div class="otp-section">
|
|
1539
1539
|
<label class="otp-label">Enter 6-digit code</label>
|
|
1540
1540
|
<div class="otp-inputs" role="group" aria-label="One time code">
|
|
1541
1541
|
${nr(
|
|
1542
1542
|
Array.from({ length: 6 }, (e, t) => t),
|
|
1543
1543
|
(e) => e,
|
|
1544
|
-
(e) =>
|
|
1544
|
+
(e) => g`
|
|
1545
1545
|
<input
|
|
1546
1546
|
class="otp-input signup-otp-input ${this.errors.signup_otp ? "otp-input--error" : ""}"
|
|
1547
1547
|
type="text"
|
|
@@ -1558,7 +1558,7 @@ class E extends L {
|
|
|
1558
1558
|
`
|
|
1559
1559
|
)}
|
|
1560
1560
|
</div>
|
|
1561
|
-
${this.errors.signup_otp ?
|
|
1561
|
+
${this.errors.signup_otp ? g`<p class="otp-error">${this.errors.signup_otp}</p>` : k}
|
|
1562
1562
|
</div>
|
|
1563
1563
|
<div class="forgot-row">
|
|
1564
1564
|
<button type="button" class="text-btn" @click=${this.backToSignupForm}>
|
|
@@ -1567,7 +1567,7 @@ class E extends L {
|
|
|
1567
1567
|
</div>
|
|
1568
1568
|
`;
|
|
1569
1569
|
if (this.resetStep === "request")
|
|
1570
|
-
return
|
|
1570
|
+
return g`
|
|
1571
1571
|
<base-input
|
|
1572
1572
|
id="email-input"
|
|
1573
1573
|
type="email"
|
|
@@ -1587,7 +1587,7 @@ class E extends L {
|
|
|
1587
1587
|
`;
|
|
1588
1588
|
if (this.resetStep === "confirm") {
|
|
1589
1589
|
const e = this.otpDigits.every((t) => /^\d$/.test(t));
|
|
1590
|
-
return
|
|
1590
|
+
return g`
|
|
1591
1591
|
<base-input
|
|
1592
1592
|
type="email"
|
|
1593
1593
|
label="Email Address"
|
|
@@ -1605,7 +1605,7 @@ class E extends L {
|
|
|
1605
1605
|
${nr(
|
|
1606
1606
|
Array.from({ length: 6 }, (t, i) => i),
|
|
1607
1607
|
(t) => t,
|
|
1608
|
-
(t) =>
|
|
1608
|
+
(t) => g`
|
|
1609
1609
|
<input
|
|
1610
1610
|
class="otp-input reset-otp-input ${this.errors.otp ? "otp-input--error" : ""}"
|
|
1611
1611
|
type="text"
|
|
@@ -1622,10 +1622,10 @@ class E extends L {
|
|
|
1622
1622
|
`
|
|
1623
1623
|
)}
|
|
1624
1624
|
</div>
|
|
1625
|
-
${this.errors.otp ?
|
|
1625
|
+
${this.errors.otp ? g`<p class="otp-error">${this.errors.otp}</p>` : k}
|
|
1626
1626
|
</div>
|
|
1627
1627
|
|
|
1628
|
-
${e ?
|
|
1628
|
+
${e ? g`
|
|
1629
1629
|
<div class="new-password-fields">
|
|
1630
1630
|
<base-input
|
|
1631
1631
|
type="password"
|
|
@@ -1662,7 +1662,7 @@ class E extends L {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
renderActions() {
|
|
1664
1664
|
if (this.resetStep === "request")
|
|
1665
|
-
return
|
|
1665
|
+
return g`
|
|
1666
1666
|
<base-button
|
|
1667
1667
|
type="submit"
|
|
1668
1668
|
variant="primary"
|
|
@@ -1675,7 +1675,7 @@ class E extends L {
|
|
|
1675
1675
|
</base-button>
|
|
1676
1676
|
`;
|
|
1677
1677
|
if (this.resetStep === "confirm")
|
|
1678
|
-
return this.otpDigits.every((t) => /^\d$/.test(t)) ?
|
|
1678
|
+
return this.otpDigits.every((t) => /^\d$/.test(t)) ? g`
|
|
1679
1679
|
<base-button
|
|
1680
1680
|
type="submit"
|
|
1681
1681
|
variant="primary"
|
|
@@ -1689,7 +1689,7 @@ class E extends L {
|
|
|
1689
1689
|
` : k;
|
|
1690
1690
|
if (this.mode === "signup" && this.signupStep === "otp") {
|
|
1691
1691
|
const e = this.signupOtpDigits.every((t) => /^\d$/.test(t));
|
|
1692
|
-
return
|
|
1692
|
+
return g`
|
|
1693
1693
|
<base-button
|
|
1694
1694
|
type="submit"
|
|
1695
1695
|
variant="primary"
|
|
@@ -1702,7 +1702,7 @@ class E extends L {
|
|
|
1702
1702
|
</base-button>
|
|
1703
1703
|
`;
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1705
|
+
return g`
|
|
1706
1706
|
<base-button
|
|
1707
1707
|
type="submit"
|
|
1708
1708
|
variant="primary"
|
|
@@ -1714,7 +1714,7 @@ class E extends L {
|
|
|
1714
1714
|
${this.isLoading ? "Loading..." : this.mode === "signup" ? "Continue" : "Sign In"}
|
|
1715
1715
|
</base-button>
|
|
1716
1716
|
|
|
1717
|
-
${this.isOAuthConfigured() && this.mode === "signin" ?
|
|
1717
|
+
${this.isOAuthConfigured() && this.mode === "signin" ? g`
|
|
1718
1718
|
<div class="button-row">
|
|
1719
1719
|
<button
|
|
1720
1720
|
type="button"
|
|
@@ -1738,8 +1738,8 @@ class E extends L {
|
|
|
1738
1738
|
`;
|
|
1739
1739
|
}
|
|
1740
1740
|
renderAlerts() {
|
|
1741
|
-
return
|
|
1742
|
-
${this.notice ?
|
|
1741
|
+
return g`
|
|
1742
|
+
${this.notice ? g`
|
|
1743
1743
|
<div class="alert alert--success">
|
|
1744
1744
|
${this.notice}
|
|
1745
1745
|
<button class="alert-close" @click=${() => this.notice = ""} aria-label="Dismiss">
|
|
@@ -1747,7 +1747,7 @@ class E extends L {
|
|
|
1747
1747
|
</button>
|
|
1748
1748
|
</div>
|
|
1749
1749
|
` : k}
|
|
1750
|
-
${this.error && !this.isLoading ?
|
|
1750
|
+
${this.error && !this.isLoading ? g`
|
|
1751
1751
|
<div class="alert alert--error">
|
|
1752
1752
|
${this.error}
|
|
1753
1753
|
<button class="alert-close" @click=${() => this.error = ""} aria-label="Dismiss">
|
|
@@ -1758,7 +1758,7 @@ class E extends L {
|
|
|
1758
1758
|
`;
|
|
1759
1759
|
}
|
|
1760
1760
|
renderFooter() {
|
|
1761
|
-
return this.isLoggedIn ? k : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? k :
|
|
1761
|
+
return this.isLoggedIn ? k : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? k : g`
|
|
1762
1762
|
<div class="auth-footer">
|
|
1763
1763
|
<p class="toggle-text">
|
|
1764
1764
|
${this.mode === "signup" ? "Already have an account?" : "Don't have an account?"}
|
|
@@ -1767,7 +1767,7 @@ class E extends L {
|
|
|
1767
1767
|
${this.mode === "signup" ? "Sign In" : "Sign Up"}
|
|
1768
1768
|
</button>
|
|
1769
1769
|
</div>
|
|
1770
|
-
` :
|
|
1770
|
+
` : g`
|
|
1771
1771
|
<div class="auth-footer">
|
|
1772
1772
|
<p class="toggle-text">
|
|
1773
1773
|
Having trouble? Email
|
|
@@ -1777,7 +1777,7 @@ class E extends L {
|
|
|
1777
1777
|
`;
|
|
1778
1778
|
}
|
|
1779
1779
|
renderGoogleIcon() {
|
|
1780
|
-
return
|
|
1780
|
+
return g`
|
|
1781
1781
|
<svg viewBox="-0.5 0 48 48" width="18" height="18" fill="none">
|
|
1782
1782
|
<path d="M9.82727273,24 C9.82727273,22.4757333 10.0804318,21.0144 10.5322727,19.6437333 L2.62345455,13.6042667 C1.08206818,16.7338667 0.213636364,20.2602667 0.213636364,24 C0.213636364,27.7365333 1.081,31.2608 2.62025,34.3882667 L10.5247955,28.3370667 C10.0772273,26.9728 9.82727273,25.5168 9.82727273,24" fill="#FBBC05"></path>
|
|
1783
1783
|
<path d="M23.7136364,10.1333333 C27.025,10.1333333 30.0159091,11.3066667 32.3659091,13.2266667 L39.2022727,6.4 C35.0363636,2.77333333 29.6954545,0.533333333 23.7136364,0.533333333 C14.4268636,0.533333333 6.44540909,5.84426667 2.62345455,13.6042667 L10.5322727,19.6437333 C12.3545909,14.112 17.5491591,10.1333333 23.7136364,10.1333333" fill="#EB4335"></path>
|
|
@@ -1787,7 +1787,7 @@ class E extends L {
|
|
|
1787
1787
|
`;
|
|
1788
1788
|
}
|
|
1789
1789
|
renderAppleIcon() {
|
|
1790
|
-
return
|
|
1790
|
+
return g`
|
|
1791
1791
|
<svg viewBox="-3.5 0 48 48" width="18" height="18" class="apple-icon">
|
|
1792
1792
|
<path d="M231.174735,567.792499 C232.740177,565.771699 233.926883,562.915484 233.497649,560 C230.939077,560.177808 227.948466,561.814769 226.203475,563.948463 C224.612784,565.88177 223.305444,568.757742 223.816036,571.549042 C226.613071,571.636535 229.499881,569.960061 231.174735,567.792499 L231.174735,567.792499 Z M245,595.217241 C243.880625,597.712195 243.341978,598.827022 241.899976,601.03692 C239.888467,604.121745 237.052156,607.962958 233.53412,607.991182 C230.411652,608.02505 229.606488,605.94498 225.367451,605.970382 C221.128414,605.99296 220.244696,608.030695 217.116618,607.999649 C213.601387,607.968603 210.913765,604.502761 208.902256,601.417937 C203.27452,592.79849 202.68257,582.680377 206.152914,577.298162 C208.621711,573.476705 212.515678,571.241407 216.173986,571.241407 C219.89682,571.241407 222.239372,573.296075 225.322563,573.296075 C228.313175,573.296075 230.133913,571.235762 234.440281,571.235762 C237.700215,571.235762 241.153726,573.022307 243.611302,576.10431 C235.554045,580.546683 236.85858,592.121127 245,595.217241 L245,595.217241 Z" transform="translate(-204.000000, -560.000000)" fill="#0b0b0a"></path>
|
|
1793
1793
|
</svg>
|
|
@@ -2623,7 +2623,7 @@ class de extends L {
|
|
|
2623
2623
|
"base-button--loading": this.loading,
|
|
2624
2624
|
[`base-button--hover-${this.hover}`]: !!this.hover
|
|
2625
2625
|
};
|
|
2626
|
-
return
|
|
2626
|
+
return g`
|
|
2627
2627
|
<button
|
|
2628
2628
|
class=${S(e)}
|
|
2629
2629
|
type=${this.type}
|
|
@@ -2633,7 +2633,7 @@ class de extends L {
|
|
|
2633
2633
|
<span class=${S({ "button-text": !0, hidden: this.loading })}>
|
|
2634
2634
|
<slot></slot>
|
|
2635
2635
|
</span>
|
|
2636
|
-
${this.loading ?
|
|
2636
|
+
${this.loading ? g`
|
|
2637
2637
|
<span class="loading-container">
|
|
2638
2638
|
<slot name="loading">
|
|
2639
2639
|
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -2909,9 +2909,9 @@ class Ce extends L {
|
|
|
2909
2909
|
[`base-card--padding-${this.padding}`]: !0,
|
|
2910
2910
|
"base-card--hoverable": this.hoverable,
|
|
2911
2911
|
"base-card--expandable": this.expandable
|
|
2912
|
-
}, t =
|
|
2912
|
+
}, t = g`
|
|
2913
2913
|
<div class=${S(e)}>
|
|
2914
|
-
${this.expandable && !this.isExpanded ?
|
|
2914
|
+
${this.expandable && !this.isExpanded ? g`
|
|
2915
2915
|
<button
|
|
2916
2916
|
class="expand-btn"
|
|
2917
2917
|
aria-label="Expand card"
|
|
@@ -2925,7 +2925,7 @@ class Ce extends L {
|
|
|
2925
2925
|
<slot></slot>
|
|
2926
2926
|
</div>
|
|
2927
2927
|
`;
|
|
2928
|
-
return this.isExpanded ?
|
|
2928
|
+
return this.isExpanded ? g`
|
|
2929
2929
|
<div class="expanded-overlay" @click=${this.handleOverlayClick}>
|
|
2930
2930
|
<div class="expanded-card">
|
|
2931
2931
|
${t}
|
|
@@ -3561,12 +3561,12 @@ class D extends L {
|
|
|
3561
3561
|
"date-display--empty": !this.value,
|
|
3562
3562
|
"date-disabled": this.disabled
|
|
3563
3563
|
};
|
|
3564
|
-
return
|
|
3564
|
+
return g`
|
|
3565
3565
|
<div class="date-picker-group">
|
|
3566
|
-
${this.label ?
|
|
3566
|
+
${this.label ? g`
|
|
3567
3567
|
<label for=${this.inputId} class="date-picker-label">
|
|
3568
3568
|
${this.label}
|
|
3569
|
-
${this.required ?
|
|
3569
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
3570
3570
|
</label>
|
|
3571
3571
|
` : ""}
|
|
3572
3572
|
|
|
@@ -3590,7 +3590,7 @@ class D extends L {
|
|
|
3590
3590
|
<base-icon name="calendar-day" size="20px"></base-icon>
|
|
3591
3591
|
</div>
|
|
3592
3592
|
|
|
3593
|
-
${this.isOpen ?
|
|
3593
|
+
${this.isOpen ? g`
|
|
3594
3594
|
<div class="calendar-overlay" @click=${this.closeCalendar}></div>
|
|
3595
3595
|
<div
|
|
3596
3596
|
class=${S({
|
|
@@ -3601,12 +3601,12 @@ class D extends L {
|
|
|
3601
3601
|
role="dialog"
|
|
3602
3602
|
aria-label="Choose date"
|
|
3603
3603
|
>
|
|
3604
|
-
${this.showMonthPicker ?
|
|
3604
|
+
${this.showMonthPicker ? g`
|
|
3605
3605
|
<div class="picker-overlay">
|
|
3606
3606
|
<div class="month-picker-container">
|
|
3607
3607
|
<div class="month-picker-grid">
|
|
3608
3608
|
${this.monthNames.map(
|
|
3609
|
-
(s, o) =>
|
|
3609
|
+
(s, o) => g`
|
|
3610
3610
|
<div
|
|
3611
3611
|
class=${S({
|
|
3612
3612
|
"month-item": !0,
|
|
@@ -3621,7 +3621,7 @@ class D extends L {
|
|
|
3621
3621
|
</div>
|
|
3622
3622
|
</div>
|
|
3623
3623
|
</div>
|
|
3624
|
-
` : this.showYearPicker ?
|
|
3624
|
+
` : this.showYearPicker ? g`
|
|
3625
3625
|
<div class="picker-overlay">
|
|
3626
3626
|
<div class="year-picker-container">
|
|
3627
3627
|
<div class="year-picker-header">
|
|
@@ -3645,7 +3645,7 @@ class D extends L {
|
|
|
3645
3645
|
</div>
|
|
3646
3646
|
<div class="year-picker-grid">
|
|
3647
3647
|
${this.yearRange.map(
|
|
3648
|
-
(s) =>
|
|
3648
|
+
(s) => g`
|
|
3649
3649
|
<div
|
|
3650
3650
|
class=${S({
|
|
3651
3651
|
"year-item": !0,
|
|
@@ -3660,7 +3660,7 @@ class D extends L {
|
|
|
3660
3660
|
</div>
|
|
3661
3661
|
</div>
|
|
3662
3662
|
</div>
|
|
3663
|
-
` :
|
|
3663
|
+
` : g`
|
|
3664
3664
|
<div class="calendar-header">
|
|
3665
3665
|
<button
|
|
3666
3666
|
type="button"
|
|
@@ -3689,12 +3689,12 @@ class D extends L {
|
|
|
3689
3689
|
</div>
|
|
3690
3690
|
|
|
3691
3691
|
<div class="calendar-weekdays">
|
|
3692
|
-
${this.weekDays.map((s) =>
|
|
3692
|
+
${this.weekDays.map((s) => g`<div class="calendar-weekday">${s}</div>`)}
|
|
3693
3693
|
</div>
|
|
3694
3694
|
|
|
3695
3695
|
<div class="calendar-days">
|
|
3696
3696
|
${this.calendarDays.map(
|
|
3697
|
-
(s) => s ?
|
|
3697
|
+
(s) => s ? g`
|
|
3698
3698
|
<div
|
|
3699
3699
|
class=${S({
|
|
3700
3700
|
"calendar-day": !0,
|
|
@@ -3706,7 +3706,7 @@ class D extends L {
|
|
|
3706
3706
|
>
|
|
3707
3707
|
${s}
|
|
3708
3708
|
</div>
|
|
3709
|
-
` :
|
|
3709
|
+
` : g`<div class="calendar-day day-empty"></div>`
|
|
3710
3710
|
)}
|
|
3711
3711
|
</div>
|
|
3712
3712
|
|
|
@@ -3724,11 +3724,11 @@ class D extends L {
|
|
|
3724
3724
|
` : ""}
|
|
3725
3725
|
</div>
|
|
3726
3726
|
|
|
3727
|
-
${e ?
|
|
3727
|
+
${e ? g`
|
|
3728
3728
|
<div id="${this.inputId}-error" class="date-picker-error" role="alert">
|
|
3729
3729
|
${this.error}
|
|
3730
3730
|
</div>
|
|
3731
|
-
` : this.hint ?
|
|
3731
|
+
` : this.hint ? g` <div class="date-picker-hint">${this.hint}</div> ` : ""}
|
|
3732
3732
|
</div>
|
|
3733
3733
|
`;
|
|
3734
3734
|
}
|
|
@@ -4131,12 +4131,12 @@ class M extends L {
|
|
|
4131
4131
|
"time-display--empty": !this.value,
|
|
4132
4132
|
"time-disabled": this.disabled
|
|
4133
4133
|
};
|
|
4134
|
-
return
|
|
4134
|
+
return g`
|
|
4135
4135
|
<div class="time-picker-group">
|
|
4136
|
-
${this.label ?
|
|
4136
|
+
${this.label ? g`
|
|
4137
4137
|
<label for=${this.inputId} class="time-picker-label">
|
|
4138
4138
|
${this.label}
|
|
4139
|
-
${this.required ?
|
|
4139
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4140
4140
|
</label>
|
|
4141
4141
|
` : ""}
|
|
4142
4142
|
|
|
@@ -4166,7 +4166,7 @@ class M extends L {
|
|
|
4166
4166
|
</svg>
|
|
4167
4167
|
</div>
|
|
4168
4168
|
|
|
4169
|
-
${this.isOpen ?
|
|
4169
|
+
${this.isOpen ? g`
|
|
4170
4170
|
<div class="time-overlay" @click=${this.closeTimePicker}></div>
|
|
4171
4171
|
<div
|
|
4172
4172
|
class=${S({
|
|
@@ -4182,7 +4182,7 @@ class M extends L {
|
|
|
4182
4182
|
<div class="time-column-label">Hour</div>
|
|
4183
4183
|
<div class="time-scroll">
|
|
4184
4184
|
${this.hours.map(
|
|
4185
|
-
(s) =>
|
|
4185
|
+
(s) => g`
|
|
4186
4186
|
<div
|
|
4187
4187
|
class=${S({
|
|
4188
4188
|
"time-option": !0,
|
|
@@ -4201,7 +4201,7 @@ class M extends L {
|
|
|
4201
4201
|
<div class="time-column-label">Minute</div>
|
|
4202
4202
|
<div class="time-scroll">
|
|
4203
4203
|
${this.minutes.map(
|
|
4204
|
-
(s) =>
|
|
4204
|
+
(s) => g`
|
|
4205
4205
|
<div
|
|
4206
4206
|
class=${S({
|
|
4207
4207
|
"time-option": !0,
|
|
@@ -4216,12 +4216,12 @@ class M extends L {
|
|
|
4216
4216
|
</div>
|
|
4217
4217
|
</div>
|
|
4218
4218
|
|
|
4219
|
-
${this.format === "12" ?
|
|
4219
|
+
${this.format === "12" ? g`
|
|
4220
4220
|
<div class="time-column">
|
|
4221
4221
|
<div class="time-column-label">Period</div>
|
|
4222
4222
|
<div class="time-scroll">
|
|
4223
4223
|
${["AM", "PM"].map(
|
|
4224
|
-
(s) =>
|
|
4224
|
+
(s) => g`
|
|
4225
4225
|
<div
|
|
4226
4226
|
class=${S({
|
|
4227
4227
|
"time-option": !0,
|
|
@@ -4247,11 +4247,11 @@ class M extends L {
|
|
|
4247
4247
|
` : ""}
|
|
4248
4248
|
</div>
|
|
4249
4249
|
|
|
4250
|
-
${e ?
|
|
4250
|
+
${e ? g`
|
|
4251
4251
|
<div id="${this.inputId}-error" class="time-picker-error" role="alert">
|
|
4252
4252
|
${this.error}
|
|
4253
4253
|
</div>
|
|
4254
|
-
` : this.hint ?
|
|
4254
|
+
` : this.hint ? g` <div class="time-picker-hint">${this.hint}</div> ` : ""}
|
|
4255
4255
|
</div>
|
|
4256
4256
|
`;
|
|
4257
4257
|
}
|
|
@@ -4501,12 +4501,12 @@ class N extends L {
|
|
|
4501
4501
|
"datetime-pickers--error": e,
|
|
4502
4502
|
"datetime-pickers--disabled": this.disabled
|
|
4503
4503
|
};
|
|
4504
|
-
return
|
|
4504
|
+
return g`
|
|
4505
4505
|
<div class="datetime-picker-group">
|
|
4506
|
-
${this.label ?
|
|
4506
|
+
${this.label ? g`
|
|
4507
4507
|
<label for=${this.inputId} class="datetime-picker-label">
|
|
4508
4508
|
${this.label}
|
|
4509
|
-
${this.required ?
|
|
4509
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4510
4510
|
</label>
|
|
4511
4511
|
` : ""}
|
|
4512
4512
|
|
|
@@ -4546,11 +4546,11 @@ class N extends L {
|
|
|
4546
4546
|
</div>
|
|
4547
4547
|
</div>
|
|
4548
4548
|
|
|
4549
|
-
${e ?
|
|
4549
|
+
${e ? g`
|
|
4550
4550
|
<div id="${this.inputId}-error" class="datetime-picker-error" role="alert">
|
|
4551
4551
|
${this.error}
|
|
4552
4552
|
</div>
|
|
4553
|
-
` : this.hint ?
|
|
4553
|
+
` : this.hint ? g` <div class="datetime-picker-hint">${this.hint}</div> ` : ""}
|
|
4554
4554
|
</div>
|
|
4555
4555
|
`;
|
|
4556
4556
|
}
|
|
@@ -4662,16 +4662,16 @@ class j extends L {
|
|
|
4662
4662
|
let c;
|
|
4663
4663
|
e < 0 ? c = o + n : c = o - n;
|
|
4664
4664
|
let p = this.currentDetentIndex;
|
|
4665
|
-
const d = 0.5, h = 1, b = this.isClosable(), y = s[0],
|
|
4665
|
+
const d = 0.5, h = 1, b = this.isClosable(), y = s[0], m = this.currentDetentIndex === 0;
|
|
4666
4666
|
if (i > d && Math.abs(e) > 30)
|
|
4667
|
-
e > 0 ? b ? i > h &&
|
|
4667
|
+
e > 0 ? b ? i > h && m && e > 50 || c < y * 0.8 ? p = -1 : p = Math.max(0, this.currentDetentIndex - 1) : p = Math.max(0, this.currentDetentIndex - 1) : p = Math.min(s.length - 1, this.currentDetentIndex + 1);
|
|
4668
4668
|
else {
|
|
4669
4669
|
let _ = 0, C = Math.abs(c - s[0]);
|
|
4670
4670
|
for (let T = 1; T < s.length; T++) {
|
|
4671
4671
|
const B = Math.abs(c - s[T]);
|
|
4672
4672
|
B < C && (C = B, _ = T);
|
|
4673
4673
|
}
|
|
4674
|
-
p = _, b && (
|
|
4674
|
+
p = _, b && (m && c < y * 0.7 || c < y - 5) && (p = -1);
|
|
4675
4675
|
}
|
|
4676
4676
|
const v = p < 0, f = this.modalContainer, x = v ? 0 : s[p];
|
|
4677
4677
|
if (f.style.transition = "none", e < 0) {
|
|
@@ -4819,7 +4819,7 @@ class j extends L {
|
|
|
4819
4819
|
"modal-container--dragging": this.isDragging,
|
|
4820
4820
|
[`modal-container--${this.size}`]: !0
|
|
4821
4821
|
}, i = this.getCurrentDetentHeight(), s = this.getActiveDetents(), o = this.isClosable() || s.length > 1;
|
|
4822
|
-
return
|
|
4822
|
+
return g`
|
|
4823
4823
|
<!-- Drawer Overlay -->
|
|
4824
4824
|
<div
|
|
4825
4825
|
class=${S(e)}
|
|
@@ -4832,7 +4832,7 @@ class j extends L {
|
|
|
4832
4832
|
aria-modal="true"
|
|
4833
4833
|
>
|
|
4834
4834
|
<!-- Drawer Handle -->
|
|
4835
|
-
${o ?
|
|
4835
|
+
${o ? g`
|
|
4836
4836
|
<div
|
|
4837
4837
|
class="drawer-handle"
|
|
4838
4838
|
@click=${this.handleHandleClick}
|
|
@@ -4900,15 +4900,12 @@ class j extends L {
|
|
|
4900
4900
|
border-top-right-radius: var(--radius-xl);
|
|
4901
4901
|
box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
4902
4902
|
width: 100vw;
|
|
4903
|
-
max-width: 100vw;
|
|
4904
|
-
height: 85dvh;
|
|
4905
4903
|
display: flex;
|
|
4906
4904
|
flex-direction: column;
|
|
4907
4905
|
overflow: hidden;
|
|
4908
4906
|
animation: slideUp var(--transition-slow);
|
|
4909
4907
|
transform-origin: bottom center;
|
|
4910
4908
|
transition: height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
|
|
4911
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
4912
4909
|
}
|
|
4913
4910
|
|
|
4914
4911
|
.modal-container--closing {
|
|
@@ -5005,7 +5002,7 @@ class j extends L {
|
|
|
5005
5002
|
|
|
5006
5003
|
@media (max-width: 640px) {
|
|
5007
5004
|
.modal-container {
|
|
5008
|
-
|
|
5005
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
5009
5006
|
}
|
|
5010
5007
|
}
|
|
5011
5008
|
|
|
@@ -5274,7 +5271,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5274
5271
|
</style>
|
|
5275
5272
|
</defs>
|
|
5276
5273
|
<path class="cls-1" d="M75.04,27.92s0-.04-.01-.06c0,0,0,0,0-.01,0,0,0-.01,0-.02-.34-1.04-1.31-1.74-2.4-1.74h0l-55.76.13c-.82,0-1.56.51-1.86,1.28s-.09,1.64.52,2.2l13.55,12.38-3.13,19.53c-.13.8.24,1.6.93,2.02.32.2.68.29,1.04.29.42,0,.83-.13,1.18-.38l45.03-32.88c.86-.63,1.23-1.72.94-2.73ZM21.99,30.2l38.9-.09-29.19,8.97-9.71-8.88ZM32.97,42.87l30.41-9.34-32.75,23.91,2.34-14.57Z"/>
|
|
5277
|
-
</svg>`,
|
|
5274
|
+
</svg>`, mi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5278
5275
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5279
5276
|
<defs>
|
|
5280
5277
|
<style>
|
|
@@ -5285,7 +5282,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5285
5282
|
</defs>
|
|
5286
5283
|
<path class="cls-1" d="M77.83,43.24l-12.92-12.29c-.8-.76-2.06-.73-2.83.07-.76.8-.73,2.07.07,2.83l9.2,8.75-37.76.11c-1.1,0-2,.9-1.99,2.01,0,1.1.9,1.99,2,1.99h0l38.09-.11c.07,0,.14-.01.21-.02l-9.19,9.66c-.76.8-.73,2.07.07,2.83.39.37.88.55,1.38.55.53,0,1.06-.21,1.45-.62l12.29-12.92c.76-.8.73-2.07-.07-2.83Z"/>
|
|
5287
5284
|
<path class="cls-1" d="M54.17,51.76c-1.1,0-2,.9-2,2v15.88c0,2.5-2.03,4.53-4.53,4.53h-27.57c-2.5,0-4.53-2.03-4.53-4.53V20.36c0-2.5,2.03-4.53,4.53-4.53h27.57c2.5,0,4.53,2.03,4.53,4.53v15.25c0,1.1.9,2,2,2s2-.9,2-2v-15.25c0-4.7-3.83-8.53-8.53-8.53h-27.57c-4.7,0-8.53,3.83-8.53,8.53v49.28c0,4.7,3.83,8.53,8.53,8.53h27.57c4.7,0,8.53-3.83,8.53-8.53v-15.88c0-1.1-.9-2-2-2Z"/>
|
|
5288
|
-
</svg>`,
|
|
5285
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5289
5286
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5290
5287
|
<defs>
|
|
5291
5288
|
<style>
|
|
@@ -5380,8 +5377,8 @@ const xi = /* @__PURE__ */ Object.assign({
|
|
|
5380
5377
|
"../../public/icons/paperclip.svg": hi,
|
|
5381
5378
|
"../../public/icons/reply.svg": pi,
|
|
5382
5379
|
"../../public/icons/send.svg": ui,
|
|
5383
|
-
"../../public/icons/share.svg":
|
|
5384
|
-
"../../public/icons/shopping-cart.svg":
|
|
5380
|
+
"../../public/icons/share.svg": mi,
|
|
5381
|
+
"../../public/icons/shopping-cart.svg": gi,
|
|
5385
5382
|
"../../public/icons/suitcase.svg": fi,
|
|
5386
5383
|
"../../public/icons/sun.svg": bi,
|
|
5387
5384
|
"../../public/icons/trash-can.svg": vi,
|
|
@@ -5439,7 +5436,7 @@ class Ee extends L {
|
|
|
5439
5436
|
}
|
|
5440
5437
|
}
|
|
5441
5438
|
render() {
|
|
5442
|
-
return
|
|
5439
|
+
return g`
|
|
5443
5440
|
<div
|
|
5444
5441
|
style="
|
|
5445
5442
|
--icon-size: ${this.size};
|
|
@@ -5654,12 +5651,12 @@ class G extends L {
|
|
|
5654
5651
|
"base-input--error": e,
|
|
5655
5652
|
"base-input--disabled": this.disabled
|
|
5656
5653
|
};
|
|
5657
|
-
return
|
|
5654
|
+
return g`
|
|
5658
5655
|
<div class="input-group">
|
|
5659
|
-
${this.label ?
|
|
5656
|
+
${this.label ? g`
|
|
5660
5657
|
<label for=${this.inputId} class="input-label">
|
|
5661
5658
|
${this.label}
|
|
5662
|
-
${this.required ?
|
|
5659
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5663
5660
|
</label>
|
|
5664
5661
|
` : ""}
|
|
5665
5662
|
|
|
@@ -5685,11 +5682,11 @@ class G extends L {
|
|
|
5685
5682
|
</div>
|
|
5686
5683
|
</div>
|
|
5687
5684
|
|
|
5688
|
-
${e ?
|
|
5685
|
+
${e ? g`
|
|
5689
5686
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5690
5687
|
${this.error}
|
|
5691
5688
|
</div>
|
|
5692
|
-
` : this.hint ?
|
|
5689
|
+
` : this.hint ? g` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5693
5690
|
</div>
|
|
5694
5691
|
`;
|
|
5695
5692
|
}
|
|
@@ -6093,12 +6090,12 @@ class R extends L {
|
|
|
6093
6090
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6094
6091
|
"select-disabled": this.disabled
|
|
6095
6092
|
};
|
|
6096
|
-
return
|
|
6093
|
+
return g`
|
|
6097
6094
|
<div class="select-group">
|
|
6098
|
-
${this.label ?
|
|
6095
|
+
${this.label ? g`
|
|
6099
6096
|
<label for=${this.selectId} class="select-label">
|
|
6100
6097
|
${this.label}
|
|
6101
|
-
${this.required ?
|
|
6098
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6102
6099
|
</label>
|
|
6103
6100
|
` : ""}
|
|
6104
6101
|
|
|
@@ -6140,7 +6137,7 @@ class R extends L {
|
|
|
6140
6137
|
</svg>
|
|
6141
6138
|
</div>
|
|
6142
6139
|
|
|
6143
|
-
${this.isOpen ?
|
|
6140
|
+
${this.isOpen ? g`
|
|
6144
6141
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6145
6142
|
<div
|
|
6146
6143
|
class=${S({
|
|
@@ -6150,8 +6147,8 @@ class R extends L {
|
|
|
6150
6147
|
})}
|
|
6151
6148
|
role="listbox"
|
|
6152
6149
|
>
|
|
6153
|
-
${this.filteredOptions.length === 0 ?
|
|
6154
|
-
(o, a) =>
|
|
6150
|
+
${this.filteredOptions.length === 0 ? g` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6151
|
+
(o, a) => g`
|
|
6155
6152
|
<div
|
|
6156
6153
|
class=${S({
|
|
6157
6154
|
"dropdown-option": !0,
|
|
@@ -6170,11 +6167,11 @@ class R extends L {
|
|
|
6170
6167
|
` : ""}
|
|
6171
6168
|
</div>
|
|
6172
6169
|
|
|
6173
|
-
${e ?
|
|
6170
|
+
${e ? g`
|
|
6174
6171
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6175
6172
|
${this.error}
|
|
6176
6173
|
</div>
|
|
6177
|
-
` : this.hint ?
|
|
6174
|
+
` : this.hint ? g` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6178
6175
|
|
|
6179
6176
|
<!-- Hidden slot for option elements -->
|
|
6180
6177
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6295,7 +6292,7 @@ class Ae extends L {
|
|
|
6295
6292
|
);
|
|
6296
6293
|
}
|
|
6297
6294
|
render() {
|
|
6298
|
-
return
|
|
6295
|
+
return g`
|
|
6299
6296
|
<div
|
|
6300
6297
|
class="base-tab"
|
|
6301
6298
|
id="tabpanel-${this.id}"
|
|
@@ -6910,7 +6907,7 @@ class ie extends L {
|
|
|
6910
6907
|
"tab-button": !0,
|
|
6911
6908
|
"tab-button--active": i
|
|
6912
6909
|
};
|
|
6913
|
-
return
|
|
6910
|
+
return g`
|
|
6914
6911
|
<button
|
|
6915
6912
|
role="tab"
|
|
6916
6913
|
aria-selected=${i}
|
|
@@ -6921,9 +6918,9 @@ class ie extends L {
|
|
|
6921
6918
|
@click=${() => this.handleTabClick(e.id)}
|
|
6922
6919
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
6923
6920
|
>
|
|
6924
|
-
${e.icon ?
|
|
6925
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
6926
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
6921
|
+
${e.icon ? g`<span class="tab-icon">${Pr(e.icon)}</span>` : k}
|
|
6922
|
+
${s || this.variant !== "sidebar" || this.isMobile ? g`<span class="tab-label">${e.label}</span>` : k}
|
|
6923
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? g`<span class="tab-badge">${e.badge}</span>` : k}
|
|
6927
6924
|
</button>
|
|
6928
6925
|
`;
|
|
6929
6926
|
}
|
|
@@ -6938,9 +6935,9 @@ class ie extends L {
|
|
|
6938
6935
|
"sidebar-toggle": !0,
|
|
6939
6936
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
6940
6937
|
};
|
|
6941
|
-
return
|
|
6938
|
+
return g`
|
|
6942
6939
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
6943
|
-
${this.variant === "sidebar" ?
|
|
6940
|
+
${this.variant === "sidebar" ? g`
|
|
6944
6941
|
<div class=${S(i)}>
|
|
6945
6942
|
<!-- Sidebar Header -->
|
|
6946
6943
|
<div class="sidebar-header">
|
|
@@ -6970,7 +6967,7 @@ class ie extends L {
|
|
|
6970
6967
|
<slot name="sidebar-footer"></slot>
|
|
6971
6968
|
</div>
|
|
6972
6969
|
</div>
|
|
6973
|
-
` :
|
|
6970
|
+
` : g`
|
|
6974
6971
|
<div class="tabs-header">
|
|
6975
6972
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
6976
6973
|
</div>
|
|
@@ -7235,12 +7232,12 @@ class K extends L {
|
|
|
7235
7232
|
"character-count--warning": s && !o,
|
|
7236
7233
|
"character-count--error": o
|
|
7237
7234
|
};
|
|
7238
|
-
return
|
|
7235
|
+
return g`
|
|
7239
7236
|
<div class="textarea-group">
|
|
7240
|
-
${this.label ?
|
|
7237
|
+
${this.label ? g`
|
|
7241
7238
|
<label for=${this.textareaId} class="textarea-label">
|
|
7242
7239
|
${this.label}
|
|
7243
|
-
${this.required ?
|
|
7240
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7244
7241
|
</label>
|
|
7245
7242
|
` : ""}
|
|
7246
7243
|
|
|
@@ -7261,18 +7258,18 @@ class K extends L {
|
|
|
7261
7258
|
@focus=${this.handleFocus}
|
|
7262
7259
|
></textarea>
|
|
7263
7260
|
|
|
7264
|
-
${i ?
|
|
7261
|
+
${i ? g`
|
|
7265
7262
|
<div class=${S(n)}>
|
|
7266
7263
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7267
7264
|
</div>
|
|
7268
7265
|
` : ""}
|
|
7269
7266
|
</div>
|
|
7270
7267
|
|
|
7271
|
-
${e ?
|
|
7268
|
+
${e ? g`
|
|
7272
7269
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7273
7270
|
${this.error}
|
|
7274
7271
|
</div>
|
|
7275
|
-
` : this.hint ?
|
|
7272
|
+
` : this.hint ? g` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7276
7273
|
</div>
|
|
7277
7274
|
`;
|
|
7278
7275
|
}
|
|
@@ -7727,13 +7724,13 @@ class Te extends L {
|
|
|
7727
7724
|
`;
|
|
7728
7725
|
}
|
|
7729
7726
|
render() {
|
|
7730
|
-
return
|
|
7727
|
+
return g`
|
|
7731
7728
|
<div class="toast-container ${this.variant}">
|
|
7732
|
-
${this.dismiss !== "manual" ?
|
|
7729
|
+
${this.dismiss !== "manual" ? g`
|
|
7733
7730
|
<div class="toast-progress"></div>
|
|
7734
7731
|
` : ""}
|
|
7735
7732
|
<slot></slot>
|
|
7736
|
-
${this.dismiss === "manual" ?
|
|
7733
|
+
${this.dismiss === "manual" ? g`
|
|
7737
7734
|
<button
|
|
7738
7735
|
class="toast-dismiss-btn ${this.variant}"
|
|
7739
7736
|
aria-label="Dismiss toast"
|
|
@@ -7973,7 +7970,7 @@ class De extends L {
|
|
|
7973
7970
|
"quantity-input": !0,
|
|
7974
7971
|
[`quantity-input--${this.size}`]: !0
|
|
7975
7972
|
};
|
|
7976
|
-
return
|
|
7973
|
+
return g`
|
|
7977
7974
|
<div class=${S(e)}>
|
|
7978
7975
|
<button
|
|
7979
7976
|
type="button"
|
|
@@ -8086,7 +8083,7 @@ class Pe extends L {
|
|
|
8086
8083
|
}
|
|
8087
8084
|
render() {
|
|
8088
8085
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8089
|
-
return
|
|
8086
|
+
return g`
|
|
8090
8087
|
<button
|
|
8091
8088
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8092
8089
|
@click=${this.toggleTheme}
|
|
@@ -8270,7 +8267,7 @@ function Or(r, e) {
|
|
|
8270
8267
|
const { toString: Ui } = Object.prototype, { getPrototypeOf: Bt } = Object, { iterator: pt, toStringTag: Rr } = Symbol, ut = /* @__PURE__ */ ((r) => (e) => {
|
|
8271
8268
|
const t = Ui.call(e);
|
|
8272
8269
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
8273
|
-
})(/* @__PURE__ */ Object.create(null)), te = (r) => (r = r.toLowerCase(), (e) => ut(e) === r),
|
|
8270
|
+
})(/* @__PURE__ */ Object.create(null)), te = (r) => (r = r.toLowerCase(), (e) => ut(e) === r), mt = (r) => (e) => typeof e === r, { isArray: Oe } = Array, Se = mt("undefined");
|
|
8274
8271
|
function We(r) {
|
|
8275
8272
|
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) && Y(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
8276
8273
|
}
|
|
@@ -8279,7 +8276,7 @@ function Ni(r) {
|
|
|
8279
8276
|
let e;
|
|
8280
8277
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && zr(r.buffer), e;
|
|
8281
8278
|
}
|
|
8282
|
-
const qi =
|
|
8279
|
+
const qi = mt("string"), Y = mt("function"), Mr = mt("number"), Ke = (r) => r !== null && typeof r == "object", Fi = (r) => r === !0 || r === !1, st = (r) => {
|
|
8283
8280
|
if (ut(r) !== "object")
|
|
8284
8281
|
return !1;
|
|
8285
8282
|
const e = Bt(r);
|
|
@@ -8381,13 +8378,13 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8381
8378
|
function(t, i, s) {
|
|
8382
8379
|
return i.toUpperCase() + s;
|
|
8383
8380
|
}
|
|
8384
|
-
), lr = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype),
|
|
8381
|
+
), lr = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype), mo = te("RegExp"), Br = (r, e) => {
|
|
8385
8382
|
const t = Object.getOwnPropertyDescriptors(r), i = {};
|
|
8386
8383
|
Je(t, (s, o) => {
|
|
8387
8384
|
let a;
|
|
8388
8385
|
(a = e(s, o, r)) !== !1 && (i[o] = a || s);
|
|
8389
8386
|
}), Object.defineProperties(r, i);
|
|
8390
|
-
},
|
|
8387
|
+
}, go = (r) => {
|
|
8391
8388
|
Br(r, (e, t) => {
|
|
8392
8389
|
if (Y(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
8393
8390
|
return !1;
|
|
@@ -8460,7 +8457,7 @@ const wo = (r) => {
|
|
|
8460
8457
|
isDate: ji,
|
|
8461
8458
|
isFile: Vi,
|
|
8462
8459
|
isBlob: Zi,
|
|
8463
|
-
isRegExp:
|
|
8460
|
+
isRegExp: mo,
|
|
8464
8461
|
isFunction: Y,
|
|
8465
8462
|
isStream: Wi,
|
|
8466
8463
|
isURLSearchParams: Ji,
|
|
@@ -8484,7 +8481,7 @@ const wo = (r) => {
|
|
|
8484
8481
|
hasOwnProp: lr,
|
|
8485
8482
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8486
8483
|
reduceDescriptors: Br,
|
|
8487
|
-
freezeMethods:
|
|
8484
|
+
freezeMethods: go,
|
|
8488
8485
|
toObjectSet: fo,
|
|
8489
8486
|
toCamelCase: uo,
|
|
8490
8487
|
noop: bo,
|
|
@@ -8570,7 +8567,7 @@ function Co(r) {
|
|
|
8570
8567
|
const Eo = l.toFlatObject(l, {}, null, function(e) {
|
|
8571
8568
|
return /^is[A-Z]/.test(e);
|
|
8572
8569
|
});
|
|
8573
|
-
function
|
|
8570
|
+
function gt(r, e, t) {
|
|
8574
8571
|
if (!l.isObject(r))
|
|
8575
8572
|
throw new TypeError("target must be an object");
|
|
8576
8573
|
e = e || new FormData(), t = l.toFlatObject(t, {
|
|
@@ -8583,22 +8580,22 @@ function mt(r, e, t) {
|
|
|
8583
8580
|
const i = t.metaTokens, s = t.visitor || d, o = t.dots, a = t.indexes, c = (t.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(e);
|
|
8584
8581
|
if (!l.isFunction(s))
|
|
8585
8582
|
throw new TypeError("visitor must be a function");
|
|
8586
|
-
function p(
|
|
8587
|
-
if (
|
|
8588
|
-
if (l.isDate(
|
|
8589
|
-
return
|
|
8590
|
-
if (l.isBoolean(
|
|
8591
|
-
return
|
|
8592
|
-
if (!c && l.isBlob(
|
|
8583
|
+
function p(m) {
|
|
8584
|
+
if (m === null) return "";
|
|
8585
|
+
if (l.isDate(m))
|
|
8586
|
+
return m.toISOString();
|
|
8587
|
+
if (l.isBoolean(m))
|
|
8588
|
+
return m.toString();
|
|
8589
|
+
if (!c && l.isBlob(m))
|
|
8593
8590
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
8594
|
-
return l.isArrayBuffer(
|
|
8591
|
+
return l.isArrayBuffer(m) || l.isTypedArray(m) ? c && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
8595
8592
|
}
|
|
8596
|
-
function d(
|
|
8597
|
-
let x =
|
|
8598
|
-
if (
|
|
8593
|
+
function d(m, v, f) {
|
|
8594
|
+
let x = m;
|
|
8595
|
+
if (m && !f && typeof m == "object") {
|
|
8599
8596
|
if (l.endsWith(v, "{}"))
|
|
8600
|
-
v = i ? v : v.slice(0, -2),
|
|
8601
|
-
else if (l.isArray(
|
|
8597
|
+
v = i ? v : v.slice(0, -2), m = JSON.stringify(m);
|
|
8598
|
+
else if (l.isArray(m) && Co(m) || (l.isFileList(m) || l.endsWith(v, "[]")) && (x = l.toArray(m)))
|
|
8602
8599
|
return v = Fr(v), x.forEach(function(C, T) {
|
|
8603
8600
|
!(l.isUndefined(C) || C === null) && e.append(
|
|
8604
8601
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -8607,18 +8604,18 @@ function mt(r, e, t) {
|
|
|
8607
8604
|
);
|
|
8608
8605
|
}), !1;
|
|
8609
8606
|
}
|
|
8610
|
-
return Ct(
|
|
8607
|
+
return Ct(m) ? !0 : (e.append(cr(f, v, o), p(m)), !1);
|
|
8611
8608
|
}
|
|
8612
8609
|
const h = [], b = Object.assign(Eo, {
|
|
8613
8610
|
defaultVisitor: d,
|
|
8614
8611
|
convertValue: p,
|
|
8615
8612
|
isVisitable: Ct
|
|
8616
8613
|
});
|
|
8617
|
-
function y(
|
|
8618
|
-
if (!l.isUndefined(
|
|
8619
|
-
if (h.indexOf(
|
|
8614
|
+
function y(m, v) {
|
|
8615
|
+
if (!l.isUndefined(m)) {
|
|
8616
|
+
if (h.indexOf(m) !== -1)
|
|
8620
8617
|
throw Error("Circular reference detected in " + v.join("."));
|
|
8621
|
-
h.push(
|
|
8618
|
+
h.push(m), l.forEach(m, function(x, _) {
|
|
8622
8619
|
(!(l.isUndefined(x) || x === null) && s.call(
|
|
8623
8620
|
e,
|
|
8624
8621
|
x,
|
|
@@ -8648,7 +8645,7 @@ function dr(r) {
|
|
|
8648
8645
|
});
|
|
8649
8646
|
}
|
|
8650
8647
|
function Ut(r, e) {
|
|
8651
|
-
this._pairs = [], r &&
|
|
8648
|
+
this._pairs = [], r && gt(r, this, e);
|
|
8652
8649
|
}
|
|
8653
8650
|
const Hr = Ut.prototype;
|
|
8654
8651
|
Hr.append = function(e, t) {
|
|
@@ -8759,7 +8756,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Mo
|
|
|
8759
8756
|
...Oo
|
|
8760
8757
|
};
|
|
8761
8758
|
function Lo(r, e) {
|
|
8762
|
-
return
|
|
8759
|
+
return gt(r, new q.classes.URLSearchParams(), {
|
|
8763
8760
|
visitor: function(t, i, s, o) {
|
|
8764
8761
|
return q.isNode && l.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
8765
8762
|
},
|
|
@@ -8822,7 +8819,7 @@ const Xe = {
|
|
|
8822
8819
|
return Lo(e, this.formSerializer).toString();
|
|
8823
8820
|
if ((n = l.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
8824
8821
|
const c = this.env && this.env.FormData;
|
|
8825
|
-
return
|
|
8822
|
+
return gt(
|
|
8826
8823
|
n ? { "files[]": e } : e,
|
|
8827
8824
|
c && new c(),
|
|
8828
8825
|
this.formSerializer
|
|
@@ -9157,7 +9154,7 @@ const lt = (r, e, t = 3) => {
|
|
|
9157
9154
|
total: r,
|
|
9158
9155
|
loaded: i
|
|
9159
9156
|
}), e[1]];
|
|
9160
|
-
},
|
|
9157
|
+
}, mr = (r) => (...e) => l.asap(() => r(...e)), Jo = q.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, q.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
9161
9158
|
new URL(q.origin),
|
|
9162
9159
|
q.navigator && /(msie|trident)/i.test(q.navigator.userAgent)
|
|
9163
9160
|
) : () => !0, Xo = q.hasStandardBrowserEnv ? (
|
|
@@ -9199,7 +9196,7 @@ function Kr(r, e, t) {
|
|
|
9199
9196
|
let i = !Go(e);
|
|
9200
9197
|
return r && (i || t == !1) ? Qo(r, e) : e;
|
|
9201
9198
|
}
|
|
9202
|
-
const
|
|
9199
|
+
const gr = (r) => r instanceof W ? { ...r } : r;
|
|
9203
9200
|
function ye(r, e) {
|
|
9204
9201
|
e = e || {};
|
|
9205
9202
|
const t = {};
|
|
@@ -9257,7 +9254,7 @@ function ye(r, e) {
|
|
|
9257
9254
|
socketPath: a,
|
|
9258
9255
|
responseEncoding: a,
|
|
9259
9256
|
validateStatus: n,
|
|
9260
|
-
headers: (p, d, h) => s(
|
|
9257
|
+
headers: (p, d, h) => s(gr(p), gr(d), h, !0)
|
|
9261
9258
|
};
|
|
9262
9259
|
return l.forEach(Object.keys({ ...r, ...e }), function(d) {
|
|
9263
9260
|
const h = c[d] || s, b = h(r[d], e[d], d);
|
|
@@ -9290,9 +9287,9 @@ const Jr = (r) => {
|
|
|
9290
9287
|
const s = Jr(r);
|
|
9291
9288
|
let o = s.data;
|
|
9292
9289
|
const a = W.from(s.headers).normalize();
|
|
9293
|
-
let { responseType: n, onUploadProgress: c, onDownloadProgress: p } = s, d, h, b, y,
|
|
9290
|
+
let { responseType: n, onUploadProgress: c, onDownloadProgress: p } = s, d, h, b, y, m;
|
|
9294
9291
|
function v() {
|
|
9295
|
-
y && y(),
|
|
9292
|
+
y && y(), m && m(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
|
|
9296
9293
|
}
|
|
9297
9294
|
let f = new XMLHttpRequest();
|
|
9298
9295
|
f.open(s.method.toUpperCase(), s.url, !0), f.timeout = s.timeout;
|
|
@@ -9333,7 +9330,7 @@ const Jr = (r) => {
|
|
|
9333
9330
|
)), f = null;
|
|
9334
9331
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && l.forEach(a.toJSON(), function(T, B) {
|
|
9335
9332
|
f.setRequestHeader(B, T);
|
|
9336
|
-
}), l.isUndefined(s.withCredentials) || (f.withCredentials = !!s.withCredentials), n && n !== "json" && (f.responseType = s.responseType), p && ([b,
|
|
9333
|
+
}), l.isUndefined(s.withCredentials) || (f.withCredentials = !!s.withCredentials), n && n !== "json" && (f.responseType = s.responseType), p && ([b, m] = lt(p, !0), f.addEventListener("progress", b)), c && f.upload && ([h, y] = lt(c), f.upload.addEventListener("progress", h), f.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (d = (C) => {
|
|
9337
9334
|
f && (i(!C || C.type ? new Re(null, r, f) : C), f.abort(), f = null);
|
|
9338
9335
|
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
9339
9336
|
const _ = Yo(s.url);
|
|
@@ -9442,46 +9439,46 @@ const Jr = (r) => {
|
|
|
9442
9439
|
const { fetch: e, Request: t, Response: i } = r, s = e ? tt(e) : typeof fetch == "function", o = tt(t), a = tt(i);
|
|
9443
9440
|
if (!s)
|
|
9444
9441
|
return !1;
|
|
9445
|
-
const n = s && tt(vr), c = s && (typeof yr == "function" ? /* @__PURE__ */ ((
|
|
9446
|
-
let
|
|
9442
|
+
const n = s && tt(vr), c = s && (typeof yr == "function" ? /* @__PURE__ */ ((m) => (v) => m.encode(v))(new yr()) : async (m) => new Uint8Array(await new t(m).arrayBuffer())), p = o && n && wr(() => {
|
|
9443
|
+
let m = !1;
|
|
9447
9444
|
const v = new t(q.origin, {
|
|
9448
9445
|
body: new vr(),
|
|
9449
9446
|
method: "POST",
|
|
9450
9447
|
get duplex() {
|
|
9451
|
-
return
|
|
9448
|
+
return m = !0, "half";
|
|
9452
9449
|
}
|
|
9453
9450
|
}).headers.has("Content-Type");
|
|
9454
|
-
return
|
|
9451
|
+
return m && !v;
|
|
9455
9452
|
}), d = a && n && wr(() => l.isReadableStream(new i("").body)), h = {
|
|
9456
|
-
stream: d && ((
|
|
9453
|
+
stream: d && ((m) => m.body)
|
|
9457
9454
|
};
|
|
9458
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9459
|
-
!h[
|
|
9460
|
-
let x = v && v[
|
|
9455
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
|
|
9456
|
+
!h[m] && (h[m] = (v, f) => {
|
|
9457
|
+
let x = v && v[m];
|
|
9461
9458
|
if (x)
|
|
9462
9459
|
return x.call(v);
|
|
9463
|
-
throw new $(`Response type '${
|
|
9460
|
+
throw new $(`Response type '${m}' is not supported`, $.ERR_NOT_SUPPORT, f);
|
|
9464
9461
|
});
|
|
9465
9462
|
});
|
|
9466
|
-
const b = async (
|
|
9467
|
-
if (
|
|
9463
|
+
const b = async (m) => {
|
|
9464
|
+
if (m == null)
|
|
9468
9465
|
return 0;
|
|
9469
|
-
if (l.isBlob(
|
|
9470
|
-
return
|
|
9471
|
-
if (l.isSpecCompliantForm(
|
|
9466
|
+
if (l.isBlob(m))
|
|
9467
|
+
return m.size;
|
|
9468
|
+
if (l.isSpecCompliantForm(m))
|
|
9472
9469
|
return (await new t(q.origin, {
|
|
9473
9470
|
method: "POST",
|
|
9474
|
-
body:
|
|
9471
|
+
body: m
|
|
9475
9472
|
}).arrayBuffer()).byteLength;
|
|
9476
|
-
if (l.isArrayBufferView(
|
|
9477
|
-
return
|
|
9478
|
-
if (l.isURLSearchParams(
|
|
9479
|
-
return (await c(
|
|
9480
|
-
}, y = async (
|
|
9481
|
-
const f = l.toFiniteNumber(
|
|
9473
|
+
if (l.isArrayBufferView(m) || l.isArrayBuffer(m))
|
|
9474
|
+
return m.byteLength;
|
|
9475
|
+
if (l.isURLSearchParams(m) && (m = m + ""), l.isString(m))
|
|
9476
|
+
return (await c(m)).byteLength;
|
|
9477
|
+
}, y = async (m, v) => {
|
|
9478
|
+
const f = l.toFiniteNumber(m.getContentLength());
|
|
9482
9479
|
return f ?? b(v);
|
|
9483
9480
|
};
|
|
9484
|
-
return async (
|
|
9481
|
+
return async (m) => {
|
|
9485
9482
|
let {
|
|
9486
9483
|
url: v,
|
|
9487
9484
|
method: f,
|
|
@@ -9495,7 +9492,7 @@ const Jr = (r) => {
|
|
|
9495
9492
|
headers: bt,
|
|
9496
9493
|
withCredentials: Ge = "same-origin",
|
|
9497
9494
|
fetchOptions: Ht
|
|
9498
|
-
} = Jr(
|
|
9495
|
+
} = Jr(m), jt = e || fetch;
|
|
9499
9496
|
J = J ? (J + "").toLowerCase() : "text";
|
|
9500
9497
|
let Qe = ra([_, C && C.toAbortSignal()], T), ze = null;
|
|
9501
9498
|
const pe = Qe && Qe.unsubscribe && (() => {
|
|
@@ -9512,7 +9509,7 @@ const Jr = (r) => {
|
|
|
9512
9509
|
if (l.isFormData(x) && (xe = le.headers.get("content-type")) && bt.setContentType(xe), le.body) {
|
|
9513
9510
|
const [vt, et] = ur(
|
|
9514
9511
|
Vt,
|
|
9515
|
-
lt(
|
|
9512
|
+
lt(mr(he))
|
|
9516
9513
|
);
|
|
9517
9514
|
x = fr(le.body, br, vt, et);
|
|
9518
9515
|
}
|
|
@@ -9537,7 +9534,7 @@ const Jr = (r) => {
|
|
|
9537
9534
|
});
|
|
9538
9535
|
const xe = l.toFiniteNumber(ne.headers.get("content-length")), [vt, et] = B && ur(
|
|
9539
9536
|
xe,
|
|
9540
|
-
lt(
|
|
9537
|
+
lt(mr(B), !0)
|
|
9541
9538
|
) || [];
|
|
9542
9539
|
ne = new i(
|
|
9543
9540
|
fr(ne.body, br, vt, () => {
|
|
@@ -9547,24 +9544,24 @@ const Jr = (r) => {
|
|
|
9547
9544
|
);
|
|
9548
9545
|
}
|
|
9549
9546
|
J = J || "text";
|
|
9550
|
-
let ts = await h[l.findKey(h, J) || "text"](ne,
|
|
9547
|
+
let ts = await h[l.findKey(h, J) || "text"](ne, m);
|
|
9551
9548
|
return !Yt && pe && pe(), await new Promise((le, xe) => {
|
|
9552
9549
|
Wr(le, xe, {
|
|
9553
9550
|
data: ts,
|
|
9554
9551
|
headers: W.from(ne.headers),
|
|
9555
9552
|
status: ne.status,
|
|
9556
9553
|
statusText: ne.statusText,
|
|
9557
|
-
config:
|
|
9554
|
+
config: m,
|
|
9558
9555
|
request: ze
|
|
9559
9556
|
});
|
|
9560
9557
|
});
|
|
9561
9558
|
} catch (re) {
|
|
9562
9559
|
throw pe && pe(), re && re.name === "TypeError" && /Load failed|fetch/i.test(re.message) ? Object.assign(
|
|
9563
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
9560
|
+
new $("Network Error", $.ERR_NETWORK, m, ze),
|
|
9564
9561
|
{
|
|
9565
9562
|
cause: re.cause || re
|
|
9566
9563
|
}
|
|
9567
|
-
) : $.from(re, re && re.code,
|
|
9564
|
+
) : $.from(re, re && re.code, m, ze);
|
|
9568
9565
|
}
|
|
9569
9566
|
};
|
|
9570
9567
|
}, la = /* @__PURE__ */ new Map(), Xr = (r) => {
|
|
@@ -9757,8 +9754,8 @@ class be {
|
|
|
9757
9754
|
);
|
|
9758
9755
|
o && l.forEach(
|
|
9759
9756
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
9760
|
-
(
|
|
9761
|
-
delete o[
|
|
9757
|
+
(m) => {
|
|
9758
|
+
delete o[m];
|
|
9762
9759
|
}
|
|
9763
9760
|
), t.headers = W.concat(a, o);
|
|
9764
9761
|
const n = [];
|
|
@@ -9772,17 +9769,17 @@ class be {
|
|
|
9772
9769
|
});
|
|
9773
9770
|
let d, h = 0, b;
|
|
9774
9771
|
if (!c) {
|
|
9775
|
-
const
|
|
9776
|
-
for (
|
|
9777
|
-
d = d.then(
|
|
9772
|
+
const m = [$r.bind(this), void 0];
|
|
9773
|
+
for (m.unshift(...n), m.push(...p), b = m.length, d = Promise.resolve(t); h < b; )
|
|
9774
|
+
d = d.then(m[h++], m[h++]);
|
|
9778
9775
|
return d;
|
|
9779
9776
|
}
|
|
9780
9777
|
b = n.length;
|
|
9781
9778
|
let y = t;
|
|
9782
9779
|
for (; h < b; ) {
|
|
9783
|
-
const
|
|
9780
|
+
const m = n[h++], v = n[h++];
|
|
9784
9781
|
try {
|
|
9785
|
-
y =
|
|
9782
|
+
y = m(y);
|
|
9786
9783
|
} catch (f) {
|
|
9787
9784
|
v.call(this, f);
|
|
9788
9785
|
break;
|
|
@@ -9790,8 +9787,8 @@ class be {
|
|
|
9790
9787
|
}
|
|
9791
9788
|
try {
|
|
9792
9789
|
d = $r.call(this, y);
|
|
9793
|
-
} catch (
|
|
9794
|
-
return Promise.reject(
|
|
9790
|
+
} catch (m) {
|
|
9791
|
+
return Promise.reject(m);
|
|
9795
9792
|
}
|
|
9796
9793
|
for (h = 0, b = p.length; h < b; )
|
|
9797
9794
|
d = d.then(p[h++], p[h++]);
|
|
@@ -9994,7 +9991,7 @@ P.CanceledError = Re;
|
|
|
9994
9991
|
P.CancelToken = Ft;
|
|
9995
9992
|
P.isCancel = Yr;
|
|
9996
9993
|
P.VERSION = Qr;
|
|
9997
|
-
P.toFormData =
|
|
9994
|
+
P.toFormData = gt;
|
|
9998
9995
|
P.AxiosError = $;
|
|
9999
9996
|
P.Cancel = P.CanceledError;
|
|
10000
9997
|
P.all = function(e) {
|