@cal.macconnachie/web-components 2.4.7 → 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 +216 -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}
|
|
@@ -4858,6 +4858,10 @@ class j extends L {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
static {
|
|
4860
4860
|
this.styles = F`
|
|
4861
|
+
:host {
|
|
4862
|
+
--transition-slow: 300ms;
|
|
4863
|
+
}
|
|
4864
|
+
|
|
4861
4865
|
/* Body scroll lock */
|
|
4862
4866
|
:host(.modal-open) {
|
|
4863
4867
|
overflow: hidden;
|
|
@@ -4896,15 +4900,12 @@ class j extends L {
|
|
|
4896
4900
|
border-top-right-radius: var(--radius-xl);
|
|
4897
4901
|
box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
4898
4902
|
width: 100vw;
|
|
4899
|
-
max-width: 100vw;
|
|
4900
|
-
height: 85dvh;
|
|
4901
4903
|
display: flex;
|
|
4902
4904
|
flex-direction: column;
|
|
4903
4905
|
overflow: hidden;
|
|
4904
4906
|
animation: slideUp var(--transition-slow);
|
|
4905
4907
|
transform-origin: bottom center;
|
|
4906
4908
|
transition: height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
|
|
4907
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
4908
4909
|
}
|
|
4909
4910
|
|
|
4910
4911
|
.modal-container--closing {
|
|
@@ -5001,7 +5002,7 @@ class j extends L {
|
|
|
5001
5002
|
|
|
5002
5003
|
@media (max-width: 640px) {
|
|
5003
5004
|
.modal-container {
|
|
5004
|
-
|
|
5005
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
5005
5006
|
}
|
|
5006
5007
|
}
|
|
5007
5008
|
|
|
@@ -5270,7 +5271,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5270
5271
|
</style>
|
|
5271
5272
|
</defs>
|
|
5272
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"/>
|
|
5273
|
-
</svg>`,
|
|
5274
|
+
</svg>`, mi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5274
5275
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5275
5276
|
<defs>
|
|
5276
5277
|
<style>
|
|
@@ -5281,7 +5282,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5281
5282
|
</defs>
|
|
5282
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"/>
|
|
5283
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"/>
|
|
5284
|
-
</svg>`,
|
|
5285
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5285
5286
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5286
5287
|
<defs>
|
|
5287
5288
|
<style>
|
|
@@ -5376,8 +5377,8 @@ const xi = /* @__PURE__ */ Object.assign({
|
|
|
5376
5377
|
"../../public/icons/paperclip.svg": hi,
|
|
5377
5378
|
"../../public/icons/reply.svg": pi,
|
|
5378
5379
|
"../../public/icons/send.svg": ui,
|
|
5379
|
-
"../../public/icons/share.svg":
|
|
5380
|
-
"../../public/icons/shopping-cart.svg":
|
|
5380
|
+
"../../public/icons/share.svg": mi,
|
|
5381
|
+
"../../public/icons/shopping-cart.svg": gi,
|
|
5381
5382
|
"../../public/icons/suitcase.svg": fi,
|
|
5382
5383
|
"../../public/icons/sun.svg": bi,
|
|
5383
5384
|
"../../public/icons/trash-can.svg": vi,
|
|
@@ -5435,7 +5436,7 @@ class Ee extends L {
|
|
|
5435
5436
|
}
|
|
5436
5437
|
}
|
|
5437
5438
|
render() {
|
|
5438
|
-
return
|
|
5439
|
+
return g`
|
|
5439
5440
|
<div
|
|
5440
5441
|
style="
|
|
5441
5442
|
--icon-size: ${this.size};
|
|
@@ -5650,12 +5651,12 @@ class G extends L {
|
|
|
5650
5651
|
"base-input--error": e,
|
|
5651
5652
|
"base-input--disabled": this.disabled
|
|
5652
5653
|
};
|
|
5653
|
-
return
|
|
5654
|
+
return g`
|
|
5654
5655
|
<div class="input-group">
|
|
5655
|
-
${this.label ?
|
|
5656
|
+
${this.label ? g`
|
|
5656
5657
|
<label for=${this.inputId} class="input-label">
|
|
5657
5658
|
${this.label}
|
|
5658
|
-
${this.required ?
|
|
5659
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5659
5660
|
</label>
|
|
5660
5661
|
` : ""}
|
|
5661
5662
|
|
|
@@ -5681,11 +5682,11 @@ class G extends L {
|
|
|
5681
5682
|
</div>
|
|
5682
5683
|
</div>
|
|
5683
5684
|
|
|
5684
|
-
${e ?
|
|
5685
|
+
${e ? g`
|
|
5685
5686
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5686
5687
|
${this.error}
|
|
5687
5688
|
</div>
|
|
5688
|
-
` : this.hint ?
|
|
5689
|
+
` : this.hint ? g` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5689
5690
|
</div>
|
|
5690
5691
|
`;
|
|
5691
5692
|
}
|
|
@@ -6089,12 +6090,12 @@ class R extends L {
|
|
|
6089
6090
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6090
6091
|
"select-disabled": this.disabled
|
|
6091
6092
|
};
|
|
6092
|
-
return
|
|
6093
|
+
return g`
|
|
6093
6094
|
<div class="select-group">
|
|
6094
|
-
${this.label ?
|
|
6095
|
+
${this.label ? g`
|
|
6095
6096
|
<label for=${this.selectId} class="select-label">
|
|
6096
6097
|
${this.label}
|
|
6097
|
-
${this.required ?
|
|
6098
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6098
6099
|
</label>
|
|
6099
6100
|
` : ""}
|
|
6100
6101
|
|
|
@@ -6136,7 +6137,7 @@ class R extends L {
|
|
|
6136
6137
|
</svg>
|
|
6137
6138
|
</div>
|
|
6138
6139
|
|
|
6139
|
-
${this.isOpen ?
|
|
6140
|
+
${this.isOpen ? g`
|
|
6140
6141
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6141
6142
|
<div
|
|
6142
6143
|
class=${S({
|
|
@@ -6146,8 +6147,8 @@ class R extends L {
|
|
|
6146
6147
|
})}
|
|
6147
6148
|
role="listbox"
|
|
6148
6149
|
>
|
|
6149
|
-
${this.filteredOptions.length === 0 ?
|
|
6150
|
-
(o, a) =>
|
|
6150
|
+
${this.filteredOptions.length === 0 ? g` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6151
|
+
(o, a) => g`
|
|
6151
6152
|
<div
|
|
6152
6153
|
class=${S({
|
|
6153
6154
|
"dropdown-option": !0,
|
|
@@ -6166,11 +6167,11 @@ class R extends L {
|
|
|
6166
6167
|
` : ""}
|
|
6167
6168
|
</div>
|
|
6168
6169
|
|
|
6169
|
-
${e ?
|
|
6170
|
+
${e ? g`
|
|
6170
6171
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6171
6172
|
${this.error}
|
|
6172
6173
|
</div>
|
|
6173
|
-
` : this.hint ?
|
|
6174
|
+
` : this.hint ? g` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6174
6175
|
|
|
6175
6176
|
<!-- Hidden slot for option elements -->
|
|
6176
6177
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6291,7 +6292,7 @@ class Ae extends L {
|
|
|
6291
6292
|
);
|
|
6292
6293
|
}
|
|
6293
6294
|
render() {
|
|
6294
|
-
return
|
|
6295
|
+
return g`
|
|
6295
6296
|
<div
|
|
6296
6297
|
class="base-tab"
|
|
6297
6298
|
id="tabpanel-${this.id}"
|
|
@@ -6906,7 +6907,7 @@ class ie extends L {
|
|
|
6906
6907
|
"tab-button": !0,
|
|
6907
6908
|
"tab-button--active": i
|
|
6908
6909
|
};
|
|
6909
|
-
return
|
|
6910
|
+
return g`
|
|
6910
6911
|
<button
|
|
6911
6912
|
role="tab"
|
|
6912
6913
|
aria-selected=${i}
|
|
@@ -6917,9 +6918,9 @@ class ie extends L {
|
|
|
6917
6918
|
@click=${() => this.handleTabClick(e.id)}
|
|
6918
6919
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
6919
6920
|
>
|
|
6920
|
-
${e.icon ?
|
|
6921
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
6922
|
-
${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}
|
|
6923
6924
|
</button>
|
|
6924
6925
|
`;
|
|
6925
6926
|
}
|
|
@@ -6934,9 +6935,9 @@ class ie extends L {
|
|
|
6934
6935
|
"sidebar-toggle": !0,
|
|
6935
6936
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
6936
6937
|
};
|
|
6937
|
-
return
|
|
6938
|
+
return g`
|
|
6938
6939
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
6939
|
-
${this.variant === "sidebar" ?
|
|
6940
|
+
${this.variant === "sidebar" ? g`
|
|
6940
6941
|
<div class=${S(i)}>
|
|
6941
6942
|
<!-- Sidebar Header -->
|
|
6942
6943
|
<div class="sidebar-header">
|
|
@@ -6966,7 +6967,7 @@ class ie extends L {
|
|
|
6966
6967
|
<slot name="sidebar-footer"></slot>
|
|
6967
6968
|
</div>
|
|
6968
6969
|
</div>
|
|
6969
|
-
` :
|
|
6970
|
+
` : g`
|
|
6970
6971
|
<div class="tabs-header">
|
|
6971
6972
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
6972
6973
|
</div>
|
|
@@ -7231,12 +7232,12 @@ class K extends L {
|
|
|
7231
7232
|
"character-count--warning": s && !o,
|
|
7232
7233
|
"character-count--error": o
|
|
7233
7234
|
};
|
|
7234
|
-
return
|
|
7235
|
+
return g`
|
|
7235
7236
|
<div class="textarea-group">
|
|
7236
|
-
${this.label ?
|
|
7237
|
+
${this.label ? g`
|
|
7237
7238
|
<label for=${this.textareaId} class="textarea-label">
|
|
7238
7239
|
${this.label}
|
|
7239
|
-
${this.required ?
|
|
7240
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7240
7241
|
</label>
|
|
7241
7242
|
` : ""}
|
|
7242
7243
|
|
|
@@ -7257,18 +7258,18 @@ class K extends L {
|
|
|
7257
7258
|
@focus=${this.handleFocus}
|
|
7258
7259
|
></textarea>
|
|
7259
7260
|
|
|
7260
|
-
${i ?
|
|
7261
|
+
${i ? g`
|
|
7261
7262
|
<div class=${S(n)}>
|
|
7262
7263
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7263
7264
|
</div>
|
|
7264
7265
|
` : ""}
|
|
7265
7266
|
</div>
|
|
7266
7267
|
|
|
7267
|
-
${e ?
|
|
7268
|
+
${e ? g`
|
|
7268
7269
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7269
7270
|
${this.error}
|
|
7270
7271
|
</div>
|
|
7271
|
-
` : this.hint ?
|
|
7272
|
+
` : this.hint ? g` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7272
7273
|
</div>
|
|
7273
7274
|
`;
|
|
7274
7275
|
}
|
|
@@ -7723,13 +7724,13 @@ class Te extends L {
|
|
|
7723
7724
|
`;
|
|
7724
7725
|
}
|
|
7725
7726
|
render() {
|
|
7726
|
-
return
|
|
7727
|
+
return g`
|
|
7727
7728
|
<div class="toast-container ${this.variant}">
|
|
7728
|
-
${this.dismiss !== "manual" ?
|
|
7729
|
+
${this.dismiss !== "manual" ? g`
|
|
7729
7730
|
<div class="toast-progress"></div>
|
|
7730
7731
|
` : ""}
|
|
7731
7732
|
<slot></slot>
|
|
7732
|
-
${this.dismiss === "manual" ?
|
|
7733
|
+
${this.dismiss === "manual" ? g`
|
|
7733
7734
|
<button
|
|
7734
7735
|
class="toast-dismiss-btn ${this.variant}"
|
|
7735
7736
|
aria-label="Dismiss toast"
|
|
@@ -7969,7 +7970,7 @@ class De extends L {
|
|
|
7969
7970
|
"quantity-input": !0,
|
|
7970
7971
|
[`quantity-input--${this.size}`]: !0
|
|
7971
7972
|
};
|
|
7972
|
-
return
|
|
7973
|
+
return g`
|
|
7973
7974
|
<div class=${S(e)}>
|
|
7974
7975
|
<button
|
|
7975
7976
|
type="button"
|
|
@@ -8082,7 +8083,7 @@ class Pe extends L {
|
|
|
8082
8083
|
}
|
|
8083
8084
|
render() {
|
|
8084
8085
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8085
|
-
return
|
|
8086
|
+
return g`
|
|
8086
8087
|
<button
|
|
8087
8088
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8088
8089
|
@click=${this.toggleTheme}
|
|
@@ -8266,7 +8267,7 @@ function Or(r, e) {
|
|
|
8266
8267
|
const { toString: Ui } = Object.prototype, { getPrototypeOf: Bt } = Object, { iterator: pt, toStringTag: Rr } = Symbol, ut = /* @__PURE__ */ ((r) => (e) => {
|
|
8267
8268
|
const t = Ui.call(e);
|
|
8268
8269
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
8269
|
-
})(/* @__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");
|
|
8270
8271
|
function We(r) {
|
|
8271
8272
|
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) && Y(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
8272
8273
|
}
|
|
@@ -8275,7 +8276,7 @@ function Ni(r) {
|
|
|
8275
8276
|
let e;
|
|
8276
8277
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && zr(r.buffer), e;
|
|
8277
8278
|
}
|
|
8278
|
-
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) => {
|
|
8279
8280
|
if (ut(r) !== "object")
|
|
8280
8281
|
return !1;
|
|
8281
8282
|
const e = Bt(r);
|
|
@@ -8377,13 +8378,13 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8377
8378
|
function(t, i, s) {
|
|
8378
8379
|
return i.toUpperCase() + s;
|
|
8379
8380
|
}
|
|
8380
|
-
), 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) => {
|
|
8381
8382
|
const t = Object.getOwnPropertyDescriptors(r), i = {};
|
|
8382
8383
|
Je(t, (s, o) => {
|
|
8383
8384
|
let a;
|
|
8384
8385
|
(a = e(s, o, r)) !== !1 && (i[o] = a || s);
|
|
8385
8386
|
}), Object.defineProperties(r, i);
|
|
8386
|
-
},
|
|
8387
|
+
}, go = (r) => {
|
|
8387
8388
|
Br(r, (e, t) => {
|
|
8388
8389
|
if (Y(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
8389
8390
|
return !1;
|
|
@@ -8456,7 +8457,7 @@ const wo = (r) => {
|
|
|
8456
8457
|
isDate: ji,
|
|
8457
8458
|
isFile: Vi,
|
|
8458
8459
|
isBlob: Zi,
|
|
8459
|
-
isRegExp:
|
|
8460
|
+
isRegExp: mo,
|
|
8460
8461
|
isFunction: Y,
|
|
8461
8462
|
isStream: Wi,
|
|
8462
8463
|
isURLSearchParams: Ji,
|
|
@@ -8480,7 +8481,7 @@ const wo = (r) => {
|
|
|
8480
8481
|
hasOwnProp: lr,
|
|
8481
8482
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8482
8483
|
reduceDescriptors: Br,
|
|
8483
|
-
freezeMethods:
|
|
8484
|
+
freezeMethods: go,
|
|
8484
8485
|
toObjectSet: fo,
|
|
8485
8486
|
toCamelCase: uo,
|
|
8486
8487
|
noop: bo,
|
|
@@ -8566,7 +8567,7 @@ function Co(r) {
|
|
|
8566
8567
|
const Eo = l.toFlatObject(l, {}, null, function(e) {
|
|
8567
8568
|
return /^is[A-Z]/.test(e);
|
|
8568
8569
|
});
|
|
8569
|
-
function
|
|
8570
|
+
function gt(r, e, t) {
|
|
8570
8571
|
if (!l.isObject(r))
|
|
8571
8572
|
throw new TypeError("target must be an object");
|
|
8572
8573
|
e = e || new FormData(), t = l.toFlatObject(t, {
|
|
@@ -8579,22 +8580,22 @@ function mt(r, e, t) {
|
|
|
8579
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);
|
|
8580
8581
|
if (!l.isFunction(s))
|
|
8581
8582
|
throw new TypeError("visitor must be a function");
|
|
8582
|
-
function p(
|
|
8583
|
-
if (
|
|
8584
|
-
if (l.isDate(
|
|
8585
|
-
return
|
|
8586
|
-
if (l.isBoolean(
|
|
8587
|
-
return
|
|
8588
|
-
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))
|
|
8589
8590
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
8590
|
-
return l.isArrayBuffer(
|
|
8591
|
+
return l.isArrayBuffer(m) || l.isTypedArray(m) ? c && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
8591
8592
|
}
|
|
8592
|
-
function d(
|
|
8593
|
-
let x =
|
|
8594
|
-
if (
|
|
8593
|
+
function d(m, v, f) {
|
|
8594
|
+
let x = m;
|
|
8595
|
+
if (m && !f && typeof m == "object") {
|
|
8595
8596
|
if (l.endsWith(v, "{}"))
|
|
8596
|
-
v = i ? v : v.slice(0, -2),
|
|
8597
|
-
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)))
|
|
8598
8599
|
return v = Fr(v), x.forEach(function(C, T) {
|
|
8599
8600
|
!(l.isUndefined(C) || C === null) && e.append(
|
|
8600
8601
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -8603,18 +8604,18 @@ function mt(r, e, t) {
|
|
|
8603
8604
|
);
|
|
8604
8605
|
}), !1;
|
|
8605
8606
|
}
|
|
8606
|
-
return Ct(
|
|
8607
|
+
return Ct(m) ? !0 : (e.append(cr(f, v, o), p(m)), !1);
|
|
8607
8608
|
}
|
|
8608
8609
|
const h = [], b = Object.assign(Eo, {
|
|
8609
8610
|
defaultVisitor: d,
|
|
8610
8611
|
convertValue: p,
|
|
8611
8612
|
isVisitable: Ct
|
|
8612
8613
|
});
|
|
8613
|
-
function y(
|
|
8614
|
-
if (!l.isUndefined(
|
|
8615
|
-
if (h.indexOf(
|
|
8614
|
+
function y(m, v) {
|
|
8615
|
+
if (!l.isUndefined(m)) {
|
|
8616
|
+
if (h.indexOf(m) !== -1)
|
|
8616
8617
|
throw Error("Circular reference detected in " + v.join("."));
|
|
8617
|
-
h.push(
|
|
8618
|
+
h.push(m), l.forEach(m, function(x, _) {
|
|
8618
8619
|
(!(l.isUndefined(x) || x === null) && s.call(
|
|
8619
8620
|
e,
|
|
8620
8621
|
x,
|
|
@@ -8644,7 +8645,7 @@ function dr(r) {
|
|
|
8644
8645
|
});
|
|
8645
8646
|
}
|
|
8646
8647
|
function Ut(r, e) {
|
|
8647
|
-
this._pairs = [], r &&
|
|
8648
|
+
this._pairs = [], r && gt(r, this, e);
|
|
8648
8649
|
}
|
|
8649
8650
|
const Hr = Ut.prototype;
|
|
8650
8651
|
Hr.append = function(e, t) {
|
|
@@ -8755,7 +8756,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Mo
|
|
|
8755
8756
|
...Oo
|
|
8756
8757
|
};
|
|
8757
8758
|
function Lo(r, e) {
|
|
8758
|
-
return
|
|
8759
|
+
return gt(r, new q.classes.URLSearchParams(), {
|
|
8759
8760
|
visitor: function(t, i, s, o) {
|
|
8760
8761
|
return q.isNode && l.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
8761
8762
|
},
|
|
@@ -8818,7 +8819,7 @@ const Xe = {
|
|
|
8818
8819
|
return Lo(e, this.formSerializer).toString();
|
|
8819
8820
|
if ((n = l.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
8820
8821
|
const c = this.env && this.env.FormData;
|
|
8821
|
-
return
|
|
8822
|
+
return gt(
|
|
8822
8823
|
n ? { "files[]": e } : e,
|
|
8823
8824
|
c && new c(),
|
|
8824
8825
|
this.formSerializer
|
|
@@ -9153,7 +9154,7 @@ const lt = (r, e, t = 3) => {
|
|
|
9153
9154
|
total: r,
|
|
9154
9155
|
loaded: i
|
|
9155
9156
|
}), e[1]];
|
|
9156
|
-
},
|
|
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)))(
|
|
9157
9158
|
new URL(q.origin),
|
|
9158
9159
|
q.navigator && /(msie|trident)/i.test(q.navigator.userAgent)
|
|
9159
9160
|
) : () => !0, Xo = q.hasStandardBrowserEnv ? (
|
|
@@ -9195,7 +9196,7 @@ function Kr(r, e, t) {
|
|
|
9195
9196
|
let i = !Go(e);
|
|
9196
9197
|
return r && (i || t == !1) ? Qo(r, e) : e;
|
|
9197
9198
|
}
|
|
9198
|
-
const
|
|
9199
|
+
const gr = (r) => r instanceof W ? { ...r } : r;
|
|
9199
9200
|
function ye(r, e) {
|
|
9200
9201
|
e = e || {};
|
|
9201
9202
|
const t = {};
|
|
@@ -9253,7 +9254,7 @@ function ye(r, e) {
|
|
|
9253
9254
|
socketPath: a,
|
|
9254
9255
|
responseEncoding: a,
|
|
9255
9256
|
validateStatus: n,
|
|
9256
|
-
headers: (p, d, h) => s(
|
|
9257
|
+
headers: (p, d, h) => s(gr(p), gr(d), h, !0)
|
|
9257
9258
|
};
|
|
9258
9259
|
return l.forEach(Object.keys({ ...r, ...e }), function(d) {
|
|
9259
9260
|
const h = c[d] || s, b = h(r[d], e[d], d);
|
|
@@ -9286,9 +9287,9 @@ const Jr = (r) => {
|
|
|
9286
9287
|
const s = Jr(r);
|
|
9287
9288
|
let o = s.data;
|
|
9288
9289
|
const a = W.from(s.headers).normalize();
|
|
9289
|
-
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;
|
|
9290
9291
|
function v() {
|
|
9291
|
-
y && y(),
|
|
9292
|
+
y && y(), m && m(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
|
|
9292
9293
|
}
|
|
9293
9294
|
let f = new XMLHttpRequest();
|
|
9294
9295
|
f.open(s.method.toUpperCase(), s.url, !0), f.timeout = s.timeout;
|
|
@@ -9329,7 +9330,7 @@ const Jr = (r) => {
|
|
|
9329
9330
|
)), f = null;
|
|
9330
9331
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in f && l.forEach(a.toJSON(), function(T, B) {
|
|
9331
9332
|
f.setRequestHeader(B, T);
|
|
9332
|
-
}), 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) => {
|
|
9333
9334
|
f && (i(!C || C.type ? new Re(null, r, f) : C), f.abort(), f = null);
|
|
9334
9335
|
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
9335
9336
|
const _ = Yo(s.url);
|
|
@@ -9438,46 +9439,46 @@ const Jr = (r) => {
|
|
|
9438
9439
|
const { fetch: e, Request: t, Response: i } = r, s = e ? tt(e) : typeof fetch == "function", o = tt(t), a = tt(i);
|
|
9439
9440
|
if (!s)
|
|
9440
9441
|
return !1;
|
|
9441
|
-
const n = s && tt(vr), c = s && (typeof yr == "function" ? /* @__PURE__ */ ((
|
|
9442
|
-
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;
|
|
9443
9444
|
const v = new t(q.origin, {
|
|
9444
9445
|
body: new vr(),
|
|
9445
9446
|
method: "POST",
|
|
9446
9447
|
get duplex() {
|
|
9447
|
-
return
|
|
9448
|
+
return m = !0, "half";
|
|
9448
9449
|
}
|
|
9449
9450
|
}).headers.has("Content-Type");
|
|
9450
|
-
return
|
|
9451
|
+
return m && !v;
|
|
9451
9452
|
}), d = a && n && wr(() => l.isReadableStream(new i("").body)), h = {
|
|
9452
|
-
stream: d && ((
|
|
9453
|
+
stream: d && ((m) => m.body)
|
|
9453
9454
|
};
|
|
9454
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9455
|
-
!h[
|
|
9456
|
-
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];
|
|
9457
9458
|
if (x)
|
|
9458
9459
|
return x.call(v);
|
|
9459
|
-
throw new $(`Response type '${
|
|
9460
|
+
throw new $(`Response type '${m}' is not supported`, $.ERR_NOT_SUPPORT, f);
|
|
9460
9461
|
});
|
|
9461
9462
|
});
|
|
9462
|
-
const b = async (
|
|
9463
|
-
if (
|
|
9463
|
+
const b = async (m) => {
|
|
9464
|
+
if (m == null)
|
|
9464
9465
|
return 0;
|
|
9465
|
-
if (l.isBlob(
|
|
9466
|
-
return
|
|
9467
|
-
if (l.isSpecCompliantForm(
|
|
9466
|
+
if (l.isBlob(m))
|
|
9467
|
+
return m.size;
|
|
9468
|
+
if (l.isSpecCompliantForm(m))
|
|
9468
9469
|
return (await new t(q.origin, {
|
|
9469
9470
|
method: "POST",
|
|
9470
|
-
body:
|
|
9471
|
+
body: m
|
|
9471
9472
|
}).arrayBuffer()).byteLength;
|
|
9472
|
-
if (l.isArrayBufferView(
|
|
9473
|
-
return
|
|
9474
|
-
if (l.isURLSearchParams(
|
|
9475
|
-
return (await c(
|
|
9476
|
-
}, y = async (
|
|
9477
|
-
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());
|
|
9478
9479
|
return f ?? b(v);
|
|
9479
9480
|
};
|
|
9480
|
-
return async (
|
|
9481
|
+
return async (m) => {
|
|
9481
9482
|
let {
|
|
9482
9483
|
url: v,
|
|
9483
9484
|
method: f,
|
|
@@ -9491,7 +9492,7 @@ const Jr = (r) => {
|
|
|
9491
9492
|
headers: bt,
|
|
9492
9493
|
withCredentials: Ge = "same-origin",
|
|
9493
9494
|
fetchOptions: Ht
|
|
9494
|
-
} = Jr(
|
|
9495
|
+
} = Jr(m), jt = e || fetch;
|
|
9495
9496
|
J = J ? (J + "").toLowerCase() : "text";
|
|
9496
9497
|
let Qe = ra([_, C && C.toAbortSignal()], T), ze = null;
|
|
9497
9498
|
const pe = Qe && Qe.unsubscribe && (() => {
|
|
@@ -9508,7 +9509,7 @@ const Jr = (r) => {
|
|
|
9508
9509
|
if (l.isFormData(x) && (xe = le.headers.get("content-type")) && bt.setContentType(xe), le.body) {
|
|
9509
9510
|
const [vt, et] = ur(
|
|
9510
9511
|
Vt,
|
|
9511
|
-
lt(
|
|
9512
|
+
lt(mr(he))
|
|
9512
9513
|
);
|
|
9513
9514
|
x = fr(le.body, br, vt, et);
|
|
9514
9515
|
}
|
|
@@ -9533,7 +9534,7 @@ const Jr = (r) => {
|
|
|
9533
9534
|
});
|
|
9534
9535
|
const xe = l.toFiniteNumber(ne.headers.get("content-length")), [vt, et] = B && ur(
|
|
9535
9536
|
xe,
|
|
9536
|
-
lt(
|
|
9537
|
+
lt(mr(B), !0)
|
|
9537
9538
|
) || [];
|
|
9538
9539
|
ne = new i(
|
|
9539
9540
|
fr(ne.body, br, vt, () => {
|
|
@@ -9543,24 +9544,24 @@ const Jr = (r) => {
|
|
|
9543
9544
|
);
|
|
9544
9545
|
}
|
|
9545
9546
|
J = J || "text";
|
|
9546
|
-
let ts = await h[l.findKey(h, J) || "text"](ne,
|
|
9547
|
+
let ts = await h[l.findKey(h, J) || "text"](ne, m);
|
|
9547
9548
|
return !Yt && pe && pe(), await new Promise((le, xe) => {
|
|
9548
9549
|
Wr(le, xe, {
|
|
9549
9550
|
data: ts,
|
|
9550
9551
|
headers: W.from(ne.headers),
|
|
9551
9552
|
status: ne.status,
|
|
9552
9553
|
statusText: ne.statusText,
|
|
9553
|
-
config:
|
|
9554
|
+
config: m,
|
|
9554
9555
|
request: ze
|
|
9555
9556
|
});
|
|
9556
9557
|
});
|
|
9557
9558
|
} catch (re) {
|
|
9558
9559
|
throw pe && pe(), re && re.name === "TypeError" && /Load failed|fetch/i.test(re.message) ? Object.assign(
|
|
9559
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
9560
|
+
new $("Network Error", $.ERR_NETWORK, m, ze),
|
|
9560
9561
|
{
|
|
9561
9562
|
cause: re.cause || re
|
|
9562
9563
|
}
|
|
9563
|
-
) : $.from(re, re && re.code,
|
|
9564
|
+
) : $.from(re, re && re.code, m, ze);
|
|
9564
9565
|
}
|
|
9565
9566
|
};
|
|
9566
9567
|
}, la = /* @__PURE__ */ new Map(), Xr = (r) => {
|
|
@@ -9753,8 +9754,8 @@ class be {
|
|
|
9753
9754
|
);
|
|
9754
9755
|
o && l.forEach(
|
|
9755
9756
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
9756
|
-
(
|
|
9757
|
-
delete o[
|
|
9757
|
+
(m) => {
|
|
9758
|
+
delete o[m];
|
|
9758
9759
|
}
|
|
9759
9760
|
), t.headers = W.concat(a, o);
|
|
9760
9761
|
const n = [];
|
|
@@ -9768,17 +9769,17 @@ class be {
|
|
|
9768
9769
|
});
|
|
9769
9770
|
let d, h = 0, b;
|
|
9770
9771
|
if (!c) {
|
|
9771
|
-
const
|
|
9772
|
-
for (
|
|
9773
|
-
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++]);
|
|
9774
9775
|
return d;
|
|
9775
9776
|
}
|
|
9776
9777
|
b = n.length;
|
|
9777
9778
|
let y = t;
|
|
9778
9779
|
for (; h < b; ) {
|
|
9779
|
-
const
|
|
9780
|
+
const m = n[h++], v = n[h++];
|
|
9780
9781
|
try {
|
|
9781
|
-
y =
|
|
9782
|
+
y = m(y);
|
|
9782
9783
|
} catch (f) {
|
|
9783
9784
|
v.call(this, f);
|
|
9784
9785
|
break;
|
|
@@ -9786,8 +9787,8 @@ class be {
|
|
|
9786
9787
|
}
|
|
9787
9788
|
try {
|
|
9788
9789
|
d = $r.call(this, y);
|
|
9789
|
-
} catch (
|
|
9790
|
-
return Promise.reject(
|
|
9790
|
+
} catch (m) {
|
|
9791
|
+
return Promise.reject(m);
|
|
9791
9792
|
}
|
|
9792
9793
|
for (h = 0, b = p.length; h < b; )
|
|
9793
9794
|
d = d.then(p[h++], p[h++]);
|
|
@@ -9990,7 +9991,7 @@ P.CanceledError = Re;
|
|
|
9990
9991
|
P.CancelToken = Ft;
|
|
9991
9992
|
P.isCancel = Yr;
|
|
9992
9993
|
P.VERSION = Qr;
|
|
9993
|
-
P.toFormData =
|
|
9994
|
+
P.toFormData = gt;
|
|
9994
9995
|
P.AxiosError = $;
|
|
9995
9996
|
P.Cancel = P.CanceledError;
|
|
9996
9997
|
P.all = function(e) {
|