@cal.macconnachie/web-components 2.4.12 → 2.4.13
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 +226 -238
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const ls = (r) => new Dr(typeof r == "string" ? r : r + "", void 0, Mt), B = (r,
|
|
|
35
35
|
for (const i of e.cssRules) t += i.cssText;
|
|
36
36
|
return ls(t);
|
|
37
37
|
})(r) : r;
|
|
38
|
-
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols:
|
|
38
|
+
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: fs, getPrototypeOf: gs } = Object, ut = globalThis, rr = ut.trustedTypes, ms = rr ? rr.emptyScript : "", bs = ut.reactiveElementPolyfillSupport, Ue = (r, e) => r, dt = { toAttribute(r, e) {
|
|
39
39
|
switch (e) {
|
|
40
40
|
case Boolean:
|
|
41
41
|
r = r ? ms : null;
|
|
@@ -94,13 +94,13 @@ let Se = class extends HTMLElement {
|
|
|
94
94
|
}
|
|
95
95
|
static _$Ei() {
|
|
96
96
|
if (this.hasOwnProperty(Ue("elementProperties"))) return;
|
|
97
|
-
const e =
|
|
97
|
+
const e = gs(this);
|
|
98
98
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
99
99
|
}
|
|
100
100
|
static finalize() {
|
|
101
101
|
if (this.hasOwnProperty(Ue("finalized"))) return;
|
|
102
102
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ue("properties"))) {
|
|
103
|
-
const t = this.properties, i = [...us(t), ...
|
|
103
|
+
const t = this.properties, i = [...us(t), ...fs(t)];
|
|
104
104
|
for (const s of i) this.createProperty(s, t[s]);
|
|
105
105
|
}
|
|
106
106
|
const e = this[Symbol.metadata];
|
|
@@ -248,8 +248,8 @@ let Se = class extends HTMLElement {
|
|
|
248
248
|
};
|
|
249
249
|
Se.elementStyles = [], Se.shadowRootOptions = { mode: "open" }, Se[Ue("elementProperties")] = /* @__PURE__ */ new Map(), Se[Ue("finalized")] = /* @__PURE__ */ new Map(), bs?.({ ReactiveElement: Se }), (ut.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
250
|
const Lt = globalThis, ht = Lt.trustedTypes, ir = ht ? ht.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Pr = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Or = "?" + he, vs = `<${Or}>`, we = document, Fe = () => we.createComment(""), He = (r) => r === null || typeof r != "object" && typeof r != "function", Bt = Array.isArray, ys = (r) => Bt(r) || typeof r?.[Symbol.iterator] == "function", St = `[
|
|
251
|
-
\f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g,
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }),
|
|
251
|
+
\f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, ge = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = ws(1), ae = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), cr = /* @__PURE__ */ new WeakMap(), be = we.createTreeWalker(we, 129);
|
|
253
253
|
function zr(r, e) {
|
|
254
254
|
if (!Bt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
255
|
return ir !== void 0 ? ir.createHTML(e) : e;
|
|
@@ -260,8 +260,8 @@ const xs = (r, e) => {
|
|
|
260
260
|
for (let n = 0; n < t; n++) {
|
|
261
261
|
const l = r[n];
|
|
262
262
|
let h, c, p = -1, b = 0;
|
|
263
|
-
for (; b < l.length && (a.lastIndex = b, c = a.exec(l), c !== null); ) b = a.lastIndex, a === Le ? c[1] === "!--" ? a = or : c[1] !== void 0 ? a = ar : c[2] !== void 0 ? (Rr.test(c[2]) && (s = RegExp("</" + c[2], "g")), a =
|
|
264
|
-
const y = a ===
|
|
263
|
+
for (; b < l.length && (a.lastIndex = b, c = a.exec(l), c !== null); ) b = a.lastIndex, a === Le ? c[1] === "!--" ? a = or : c[1] !== void 0 ? a = ar : c[2] !== void 0 ? (Rr.test(c[2]) && (s = RegExp("</" + c[2], "g")), a = ge) : c[3] !== void 0 && (a = ge) : a === ge ? c[0] === ">" ? (a = s ?? Le, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, h = c[1], a = c[3] === void 0 ? ge : c[3] === '"' ? lr : nr) : a === lr || a === nr ? a = ge : a === or || a === ar ? a = Le : (a = ge, s = void 0);
|
|
264
|
+
const y = a === ge && r[n + 1].startsWith("/>") ? " " : "";
|
|
265
265
|
o += a === Le ? l + vs : p >= 0 ? (i.push(h), l.slice(0, p) + Pr + l.slice(p) + he + y) : l + he + (p === -2 ? n : y);
|
|
266
266
|
}
|
|
267
267
|
return [zr(r, o + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
@@ -279,8 +279,8 @@ class je {
|
|
|
279
279
|
for (; (s = be.nextNode()) !== null && l.length < n; ) {
|
|
280
280
|
if (s.nodeType === 1) {
|
|
281
281
|
if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Pr)) {
|
|
282
|
-
const b = c[a++], y = s.getAttribute(p).split(he),
|
|
283
|
-
l.push({ type: 1, index: o, name:
|
|
282
|
+
const b = c[a++], y = s.getAttribute(p).split(he), f = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
l.push({ type: 1, index: o, name: f[2], strings: y, ctor: f[1] === "." ? ks : f[1] === "?" ? Ss : f[1] === "@" ? _s : ft }), s.removeAttribute(p);
|
|
284
284
|
} else p.startsWith(he) && (l.push({ type: 6, index: o }), s.removeAttribute(p));
|
|
285
285
|
if (Rr.test(s.tagName)) {
|
|
286
286
|
const p = s.textContent.split(he), b = p.length - 1;
|
|
@@ -396,7 +396,7 @@ class Ae {
|
|
|
396
396
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class ft {
|
|
400
400
|
get tagName() {
|
|
401
401
|
return this.element.tagName;
|
|
402
402
|
}
|
|
@@ -421,7 +421,7 @@ class gt {
|
|
|
421
421
|
e === k ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class ks extends
|
|
424
|
+
class ks extends ft {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
@@ -429,7 +429,7 @@ class ks extends gt {
|
|
|
429
429
|
this.element[this.name] = e === k ? void 0 : e;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class Ss extends
|
|
432
|
+
class Ss extends ft {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
@@ -437,7 +437,7 @@ class Ss extends gt {
|
|
|
437
437
|
this.element.toggleAttribute(this.name, !!e && e !== k);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
class _s extends
|
|
440
|
+
class _s extends ft {
|
|
441
441
|
constructor(e, t, i, s, o) {
|
|
442
442
|
super(e, t, i, s, o), this.type = 5;
|
|
443
443
|
}
|
|
@@ -601,14 +601,14 @@ const hr = (r, e, t) => {
|
|
|
601
601
|
const s = Ls(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 ??= [], l = [];
|
|
604
|
-
let h, c, p = 0, b = s.length - 1, y = 0,
|
|
605
|
-
for (; p <= b && y <=
|
|
604
|
+
let h, c, p = 0, b = s.length - 1, y = 0, f = o.length - 1;
|
|
605
|
+
for (; p <= b && y <= f; ) if (s[p] === null) p++;
|
|
606
606
|
else if (s[b] === null) b--;
|
|
607
607
|
else if (n[p] === a[y]) l[y] = me(s[p], o[y]), p++, y++;
|
|
608
|
-
else if (n[b] === a[
|
|
609
|
-
else if (n[p] === a[
|
|
608
|
+
else if (n[b] === a[f]) l[f] = me(s[b], o[f]), b--, f--;
|
|
609
|
+
else if (n[p] === a[f]) l[f] = me(s[p], o[f]), Be(r, l[f + 1], s[p]), p++, f--;
|
|
610
610
|
else if (n[b] === a[y]) l[y] = me(s[b], o[y]), Be(r, s[p], s[b]), b--, y++;
|
|
611
|
-
else if (h === void 0 && (h = hr(a, y,
|
|
611
|
+
else if (h === void 0 && (h = hr(a, y, f), c = hr(n, p, b)), h.has(n[p])) if (h.has(n[b])) {
|
|
612
612
|
const v = c.get(a[y]), m = v !== void 0 ? s[v] : null;
|
|
613
613
|
if (m === null) {
|
|
614
614
|
const x = Be(r, s[p]);
|
|
@@ -617,8 +617,8 @@ const hr = (r, e, t) => {
|
|
|
617
617
|
y++;
|
|
618
618
|
} else _t(s[b]), b--;
|
|
619
619
|
else _t(s[p]), p++;
|
|
620
|
-
for (; y <=
|
|
621
|
-
const v = Be(r, l[
|
|
620
|
+
for (; y <= f; ) {
|
|
621
|
+
const v = Be(r, l[f + 1]);
|
|
622
622
|
me(v, o[y]), l[y++] = v;
|
|
623
623
|
}
|
|
624
624
|
for (; p <= b; ) {
|
|
@@ -689,7 +689,7 @@ const P = ({
|
|
|
689
689
|
password: p,
|
|
690
690
|
accessToken: b,
|
|
691
691
|
refreshToken: y,
|
|
692
|
-
idToken:
|
|
692
|
+
idToken: f
|
|
693
693
|
}) => {
|
|
694
694
|
const v = await fetch(`${r}${e.login}`, {
|
|
695
695
|
method: "POST",
|
|
@@ -702,7 +702,7 @@ const P = ({
|
|
|
702
702
|
password: p,
|
|
703
703
|
accessToken: b,
|
|
704
704
|
refreshToken: y,
|
|
705
|
-
idToken:
|
|
705
|
+
idToken: f
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
if (!v.ok) {
|
|
@@ -775,7 +775,7 @@ const P = ({
|
|
|
775
775
|
password: p,
|
|
776
776
|
phone_number: b,
|
|
777
777
|
family_name: y,
|
|
778
|
-
given_name:
|
|
778
|
+
given_name: f,
|
|
779
779
|
code: v
|
|
780
780
|
}) => {
|
|
781
781
|
const m = await fetch(`${r}${e.register}`, {
|
|
@@ -789,7 +789,7 @@ const P = ({
|
|
|
789
789
|
password: p,
|
|
790
790
|
phone_number: b,
|
|
791
791
|
family_name: y,
|
|
792
|
-
given_name:
|
|
792
|
+
given_name: f,
|
|
793
793
|
code: v
|
|
794
794
|
})
|
|
795
795
|
});
|
|
@@ -834,8 +834,8 @@ const P = ({
|
|
|
834
834
|
})
|
|
835
835
|
});
|
|
836
836
|
if (!y.ok) {
|
|
837
|
-
const
|
|
838
|
-
throw new Error(
|
|
837
|
+
const f = await y.json();
|
|
838
|
+
throw new Error(f.message || f.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -898,7 +898,7 @@ const P = ({
|
|
|
898
898
|
}, y = async () => {
|
|
899
899
|
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
901
|
-
},
|
|
901
|
+
}, f = (x) => {
|
|
902
902
|
const _ = sessionStorage.getItem("oauth_state");
|
|
903
903
|
return sessionStorage.removeItem("oauth_state"), _ === x;
|
|
904
904
|
}, v = () => {
|
|
@@ -908,7 +908,7 @@ const P = ({
|
|
|
908
908
|
return {
|
|
909
909
|
redirectToGoogleAuth: p,
|
|
910
910
|
redirectToAppleAuth: y,
|
|
911
|
-
validateState:
|
|
911
|
+
validateState: f,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
914
|
const _ = v();
|
|
@@ -1362,8 +1362,8 @@ class A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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
|
${pr(
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
1605
1605
|
${pr(
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 A extends R {
|
|
|
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 pe extends R {
|
|
|
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 pe extends R {
|
|
|
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 Ee extends R {
|
|
|
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 Ee extends R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 R {
|
|
|
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 I extends R {
|
|
|
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 I extends R {
|
|
|
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 I extends R {
|
|
|
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 I extends R {
|
|
|
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 I extends R {
|
|
|
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 I extends R {
|
|
|
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 q extends R {
|
|
|
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 q extends R {
|
|
|
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 R {
|
|
|
4662
4662
|
let l;
|
|
4663
4663
|
e < 0 ? l = o + n : l = o - n;
|
|
4664
4664
|
let h = this.currentDetentIndex;
|
|
4665
|
-
const c = 0.5, p = 1, b = this.isClosable(), y = s[0],
|
|
4665
|
+
const c = 0.5, p = 1, b = this.isClosable(), y = s[0], f = this.currentDetentIndex === 0;
|
|
4666
4666
|
if (i > c && Math.abs(e) > 30)
|
|
4667
|
-
e > 0 ? b ? i > p &&
|
|
4667
|
+
e > 0 ? b ? i > p && f && e > 50 || l < y * 0.8 ? h = -1 : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.min(s.length - 1, this.currentDetentIndex + 1);
|
|
4668
4668
|
else {
|
|
4669
4669
|
let _ = 0, C = Math.abs(l - s[0]);
|
|
4670
4670
|
for (let T = 1; T < s.length; T++) {
|
|
4671
4671
|
const N = Math.abs(l - s[T]);
|
|
4672
4672
|
N < C && (C = N, _ = T);
|
|
4673
4673
|
}
|
|
4674
|
-
h = _, b && (
|
|
4674
|
+
h = _, b && (f && l < y * 0.7 || l < y - 5) && (h = -1);
|
|
4675
4675
|
}
|
|
4676
4676
|
const v = h < 0, m = this.modalContainer, x = v ? 0 : s[h];
|
|
4677
4677
|
if (m.style.transition = "none", e < 0) {
|
|
@@ -4819,7 +4819,7 @@ class j extends R {
|
|
|
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 R {
|
|
|
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}
|
|
@@ -5211,7 +5211,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5211
5211
|
<path class="cls-1" d="M28.72,29.53l-.06-10.01c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-2,.91-1.99,2.01l.06,9.81c-4.04.77-7.11,4.33-7.11,8.59s3.12,7.88,7.21,8.61l.15,23.93c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.15-24.12c3.64-1.07,6.28-4.44,6.28-8.39s-2.68-7.38-6.38-8.41ZM26.68,42.68c-.11,0-.22.02-.33.02-2.61,0-4.74-2.13-4.74-4.75s2.13-4.75,4.74-4.75h.04c.08,0,.15.01.23.02,2.51.13,4.48,2.21,4.48,4.73s-1.94,4.57-4.42,4.73Z"/>
|
|
5212
5212
|
<path class="cls-1" d="M47.24,49.24l-.18-29.72c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-2,.91-1.99,2.01l.18,29.84c-3.74,1.01-6.45,4.4-6.45,8.44s2.76,7.5,6.55,8.46l.03,4.19c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.03-4.07c3.96-.83,6.95-4.35,6.95-8.56s-3.04-7.79-7.05-8.58ZM45.53,62.57s-.09,0-.13,0c-2.58-.08-4.6-2.16-4.6-4.74s2-4.63,4.54-4.74c.04,0,.16,0,.21,0,2.62,0,4.75,2.13,4.75,4.75s-2.12,4.74-4.76,4.75Z"/>
|
|
5213
5213
|
<path class="cls-1" d="M72.4,35.93c0-4.18-2.95-7.68-6.87-8.54l-.05-7.87c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-1.99.91-1.99,2.01l.05,7.91c-3.8.95-6.63,4.41-6.63,8.48s2.87,7.57,6.73,8.5l.15,26.04c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.15-26c3.87-.9,6.77-4.37,6.77-8.52ZM63.63,40.68c-2.61-.01-4.73-2.14-4.73-4.75s2.09-4.71,4.67-4.74c.05,0,.11,0,.16,0,2.58.04,4.67,2.16,4.67,4.75s-2.13,4.75-4.77,4.75Z"/>
|
|
5214
|
-
</svg>`,
|
|
5214
|
+
</svg>`, fi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5215
5215
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5216
5216
|
<defs>
|
|
5217
5217
|
<style>
|
|
@@ -5221,7 +5221,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5221
5221
|
</style>
|
|
5222
5222
|
</defs>
|
|
5223
5223
|
<path class="cls-1" d="M66.9,75.38h-10.67c-2.06,0-3.74-1.68-3.74-3.74v-13.62c0-1.6-1.3-2.91-2.91-2.91h-8.19c-1.6,0-2.91,1.31-2.91,2.91v13.62c0,2.06-1.68,3.74-3.74,3.74h-10.67c-1.92,0-3.48-1.56-3.48-3.48v-28.1h-5.25c-1.01,0-1.92-.6-2.3-1.54s-.17-2,.54-2.72l29.45-29.45c.66-.66,1.53-1.02,2.46-1.02h.02c.93,0,1.8.37,2.45,1.03l29.43,29.43c.72.72.93,1.78.54,2.72s-1.29,1.54-2.3,1.54h-5.25v28.1c0,1.92-1.56,3.48-3.48,3.48ZM56.49,71.38h9.89v-29.58c0-1.1.9-2,2-2h3.61l-26.51-26.51-26.51,26.51h3.61c1.1,0,2,.9,2,2v29.58h9.89v-13.36c0-3.81,3.1-6.91,6.91-6.91h8.19c3.81,0,6.91,3.1,6.91,6.91v13.36ZM74.57,42.37h0,0ZM45.12,12.93h0s0,0,0,0Z"/>
|
|
5224
|
-
</svg>`,
|
|
5224
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5225
5225
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5226
5226
|
<defs>
|
|
5227
5227
|
<style>
|
|
@@ -5355,7 +5355,7 @@ class Tt extends Ft {
|
|
|
5355
5355
|
}
|
|
5356
5356
|
Tt.directiveName = "unsafeHTML", Tt.resultType = 1;
|
|
5357
5357
|
const Ir = qt(Tt);
|
|
5358
|
-
var Ci = Object.defineProperty,
|
|
5358
|
+
var Ci = Object.defineProperty, gt = (r, e, t, i) => {
|
|
5359
5359
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5360
5360
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5361
5361
|
return s && Ci(e, t, s), s;
|
|
@@ -5371,8 +5371,8 @@ const Ai = /* @__PURE__ */ Object.assign({
|
|
|
5371
5371
|
"../../public/icons/external-link.svg": hi,
|
|
5372
5372
|
"../../public/icons/file-cabinet.svg": pi,
|
|
5373
5373
|
"../../public/icons/filters.svg": ui,
|
|
5374
|
-
"../../public/icons/house.svg":
|
|
5375
|
-
"../../public/icons/moon.svg":
|
|
5374
|
+
"../../public/icons/house.svg": fi,
|
|
5375
|
+
"../../public/icons/moon.svg": gi,
|
|
5376
5376
|
"../../public/icons/open-email.svg": mi,
|
|
5377
5377
|
"../../public/icons/paperclip.svg": bi,
|
|
5378
5378
|
"../../public/icons/reply.svg": vi,
|
|
@@ -5436,7 +5436,7 @@ class Te extends R {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
5438
|
render() {
|
|
5439
|
-
return
|
|
5439
|
+
return g`
|
|
5440
5440
|
<div
|
|
5441
5441
|
style="
|
|
5442
5442
|
--icon-size: ${this.size};
|
|
@@ -5447,16 +5447,16 @@ class Te extends R {
|
|
|
5447
5447
|
`;
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
|
-
|
|
5450
|
+
gt([
|
|
5451
5451
|
u({ type: String })
|
|
5452
5452
|
], Te.prototype, "name");
|
|
5453
|
-
|
|
5453
|
+
gt([
|
|
5454
5454
|
u({ type: String })
|
|
5455
5455
|
], Te.prototype, "size");
|
|
5456
|
-
|
|
5456
|
+
gt([
|
|
5457
5457
|
u({ type: String })
|
|
5458
5458
|
], Te.prototype, "color");
|
|
5459
|
-
|
|
5459
|
+
gt([
|
|
5460
5460
|
w()
|
|
5461
5461
|
], Te.prototype, "svgContent");
|
|
5462
5462
|
var Ti = Object.defineProperty, ee = (r, e, t, i) => {
|
|
@@ -5651,12 +5651,12 @@ class G extends R {
|
|
|
5651
5651
|
"base-input--error": e,
|
|
5652
5652
|
"base-input--disabled": this.disabled
|
|
5653
5653
|
};
|
|
5654
|
-
return
|
|
5654
|
+
return g`
|
|
5655
5655
|
<div class="input-group">
|
|
5656
|
-
${this.label ?
|
|
5656
|
+
${this.label ? g`
|
|
5657
5657
|
<label for=${this.inputId} class="input-label">
|
|
5658
5658
|
${this.label}
|
|
5659
|
-
${this.required ?
|
|
5659
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5660
5660
|
</label>
|
|
5661
5661
|
` : ""}
|
|
5662
5662
|
|
|
@@ -5682,11 +5682,11 @@ class G extends R {
|
|
|
5682
5682
|
</div>
|
|
5683
5683
|
</div>
|
|
5684
5684
|
|
|
5685
|
-
${e ?
|
|
5685
|
+
${e ? g`
|
|
5686
5686
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5687
5687
|
${this.error}
|
|
5688
5688
|
</div>
|
|
5689
|
-
` : this.hint ?
|
|
5689
|
+
` : this.hint ? g` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5690
5690
|
</div>
|
|
5691
5691
|
`;
|
|
5692
5692
|
}
|
|
@@ -5748,7 +5748,7 @@ class Ze extends R {
|
|
|
5748
5748
|
display: flex;
|
|
5749
5749
|
flex-direction: column;
|
|
5750
5750
|
width: 100%;
|
|
5751
|
-
background-color:
|
|
5751
|
+
background-color: inherit;
|
|
5752
5752
|
}
|
|
5753
5753
|
|
|
5754
5754
|
/* Variants */
|
|
@@ -5760,6 +5760,7 @@ class Ze extends R {
|
|
|
5760
5760
|
border: 1px solid var(--color-border);
|
|
5761
5761
|
border-radius: var(--radius-lg);
|
|
5762
5762
|
overflow: hidden;
|
|
5763
|
+
gap: 0;
|
|
5763
5764
|
}
|
|
5764
5765
|
|
|
5765
5766
|
.base-list--divided {
|
|
@@ -5770,27 +5771,15 @@ class Ze extends R {
|
|
|
5770
5771
|
border-bottom: 1px solid var(--color-border);
|
|
5771
5772
|
}
|
|
5772
5773
|
|
|
5773
|
-
/* Size variants - affects spacing between items */
|
|
5774
|
-
.base-list--sm {
|
|
5775
|
-
gap: var(--space-1);
|
|
5776
|
-
}
|
|
5777
|
-
|
|
5774
|
+
/* Size variants - affects spacing between items for default variant only */
|
|
5778
5775
|
.base-list--sm.base-list--default {
|
|
5779
5776
|
gap: var(--space-1);
|
|
5780
5777
|
}
|
|
5781
5778
|
|
|
5782
|
-
.base-list--md {
|
|
5783
|
-
gap: var(--space-2);
|
|
5784
|
-
}
|
|
5785
|
-
|
|
5786
5779
|
.base-list--md.base-list--default {
|
|
5787
5780
|
gap: var(--space-2);
|
|
5788
5781
|
}
|
|
5789
5782
|
|
|
5790
|
-
.base-list--lg {
|
|
5791
|
-
gap: var(--space-3);
|
|
5792
|
-
}
|
|
5793
|
-
|
|
5794
5783
|
.base-list--lg.base-list--default {
|
|
5795
5784
|
gap: var(--space-3);
|
|
5796
5785
|
}
|
|
@@ -5818,7 +5807,7 @@ class Ze extends R {
|
|
|
5818
5807
|
[`base-list--${this.variant}`]: !0,
|
|
5819
5808
|
"base-list--interactive": this.interactive
|
|
5820
5809
|
};
|
|
5821
|
-
return
|
|
5810
|
+
return g`
|
|
5822
5811
|
<div class=${S(e)} role=${this.role}>
|
|
5823
5812
|
<slot></slot>
|
|
5824
5813
|
</div>
|
|
@@ -5927,7 +5916,6 @@ class ie extends R {
|
|
|
5927
5916
|
transition: all var(--transition-fast);
|
|
5928
5917
|
pointer-events: none;
|
|
5929
5918
|
z-index: 2;
|
|
5930
|
-
background: linear-gradient(to right, transparent, var(--color-bg-primary) 20%);
|
|
5931
5919
|
padding-left: var(--space-8);
|
|
5932
5920
|
}
|
|
5933
5921
|
|
|
@@ -5987,7 +5975,7 @@ class ie extends R {
|
|
|
5987
5975
|
width: 100%;
|
|
5988
5976
|
font-family: var(--font-family-sans);
|
|
5989
5977
|
color: var(--color-text-primary);
|
|
5990
|
-
background-color:
|
|
5978
|
+
background-color: inherit;
|
|
5991
5979
|
border: none;
|
|
5992
5980
|
text-align: left;
|
|
5993
5981
|
box-sizing: border-box;
|
|
@@ -6112,9 +6100,9 @@ class ie extends R {
|
|
|
6112
6100
|
"base-list-item--selected": this.selected,
|
|
6113
6101
|
"base-list-item--swiping": this.isDragging
|
|
6114
6102
|
};
|
|
6115
|
-
return
|
|
6103
|
+
return g`
|
|
6116
6104
|
<div class="list-item-wrapper">
|
|
6117
|
-
${this.leftSwipeAction ?
|
|
6105
|
+
${this.leftSwipeAction ? g`
|
|
6118
6106
|
<div class="swipe-actions swipe-actions--left">
|
|
6119
6107
|
<button
|
|
6120
6108
|
class="swipe-action-button"
|
|
@@ -6126,12 +6114,12 @@ class ie extends R {
|
|
|
6126
6114
|
size="24px"
|
|
6127
6115
|
color="white"
|
|
6128
6116
|
></base-icon>
|
|
6129
|
-
${this.leftSwipeAction.label ?
|
|
6117
|
+
${this.leftSwipeAction.label ? g`<span>${this.leftSwipeAction.label}</span>` : ""}
|
|
6130
6118
|
</button>
|
|
6131
6119
|
</div>
|
|
6132
6120
|
` : ""}
|
|
6133
6121
|
|
|
6134
|
-
${this.rightSwipeAction ?
|
|
6122
|
+
${this.rightSwipeAction ? g`
|
|
6135
6123
|
<div class="swipe-actions swipe-actions--right">
|
|
6136
6124
|
<button
|
|
6137
6125
|
class="swipe-action-button"
|
|
@@ -6143,15 +6131,15 @@ class ie extends R {
|
|
|
6143
6131
|
size="24px"
|
|
6144
6132
|
color="white"
|
|
6145
6133
|
></base-icon>
|
|
6146
|
-
${this.rightSwipeAction.label ?
|
|
6134
|
+
${this.rightSwipeAction.label ? g`<span>${this.rightSwipeAction.label}</span>` : ""}
|
|
6147
6135
|
</button>
|
|
6148
6136
|
</div>
|
|
6149
6137
|
` : ""}
|
|
6150
6138
|
|
|
6151
6139
|
<!-- Desktop hover actions -->
|
|
6152
|
-
${this.leftSwipeAction || this.rightSwipeAction ?
|
|
6140
|
+
${this.leftSwipeAction || this.rightSwipeAction ? g`
|
|
6153
6141
|
<div class="desktop-actions">
|
|
6154
|
-
${this.leftSwipeAction ?
|
|
6142
|
+
${this.leftSwipeAction ? g`
|
|
6155
6143
|
<button
|
|
6156
6144
|
class="desktop-action-button"
|
|
6157
6145
|
style="background-color: ${this.leftSwipeAction.color || "var(--color-success)"}"
|
|
@@ -6168,7 +6156,7 @@ class ie extends R {
|
|
|
6168
6156
|
></base-icon>
|
|
6169
6157
|
</button>
|
|
6170
6158
|
` : ""}
|
|
6171
|
-
${this.rightSwipeAction ?
|
|
6159
|
+
${this.rightSwipeAction ? g`
|
|
6172
6160
|
<button
|
|
6173
6161
|
class="desktop-action-button"
|
|
6174
6162
|
style="background-color: ${this.rightSwipeAction.color || "var(--color-error)"}"
|
|
@@ -6601,12 +6589,12 @@ class M extends R {
|
|
|
6601
6589
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6602
6590
|
"select-disabled": this.disabled
|
|
6603
6591
|
};
|
|
6604
|
-
return
|
|
6592
|
+
return g`
|
|
6605
6593
|
<div class="select-group">
|
|
6606
|
-
${this.label ?
|
|
6594
|
+
${this.label ? g`
|
|
6607
6595
|
<label for=${this.selectId} class="select-label">
|
|
6608
6596
|
${this.label}
|
|
6609
|
-
${this.required ?
|
|
6597
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6610
6598
|
</label>
|
|
6611
6599
|
` : ""}
|
|
6612
6600
|
|
|
@@ -6648,7 +6636,7 @@ class M extends R {
|
|
|
6648
6636
|
</svg>
|
|
6649
6637
|
</div>
|
|
6650
6638
|
|
|
6651
|
-
${this.isOpen ?
|
|
6639
|
+
${this.isOpen ? g`
|
|
6652
6640
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6653
6641
|
<div
|
|
6654
6642
|
class=${S({
|
|
@@ -6658,8 +6646,8 @@ class M extends R {
|
|
|
6658
6646
|
})}
|
|
6659
6647
|
role="listbox"
|
|
6660
6648
|
>
|
|
6661
|
-
${this.filteredOptions.length === 0 ?
|
|
6662
|
-
(o, a) =>
|
|
6649
|
+
${this.filteredOptions.length === 0 ? g` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6650
|
+
(o, a) => g`
|
|
6663
6651
|
<div
|
|
6664
6652
|
class=${S({
|
|
6665
6653
|
"dropdown-option": !0,
|
|
@@ -6678,11 +6666,11 @@ class M extends R {
|
|
|
6678
6666
|
` : ""}
|
|
6679
6667
|
</div>
|
|
6680
6668
|
|
|
6681
|
-
${e ?
|
|
6669
|
+
${e ? g`
|
|
6682
6670
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6683
6671
|
${this.error}
|
|
6684
6672
|
</div>
|
|
6685
|
-
` : this.hint ?
|
|
6673
|
+
` : this.hint ? g` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6686
6674
|
|
|
6687
6675
|
<!-- Hidden slot for option elements -->
|
|
6688
6676
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6803,7 +6791,7 @@ class De extends R {
|
|
|
6803
6791
|
);
|
|
6804
6792
|
}
|
|
6805
6793
|
render() {
|
|
6806
|
-
return
|
|
6794
|
+
return g`
|
|
6807
6795
|
<div
|
|
6808
6796
|
class="base-tab"
|
|
6809
6797
|
id="tabpanel-${this.id}"
|
|
@@ -7418,7 +7406,7 @@ class oe extends R {
|
|
|
7418
7406
|
"tab-button": !0,
|
|
7419
7407
|
"tab-button--active": i
|
|
7420
7408
|
};
|
|
7421
|
-
return
|
|
7409
|
+
return g`
|
|
7422
7410
|
<button
|
|
7423
7411
|
role="tab"
|
|
7424
7412
|
aria-selected=${i}
|
|
@@ -7429,9 +7417,9 @@ class oe extends R {
|
|
|
7429
7417
|
@click=${() => this.handleTabClick(e.id)}
|
|
7430
7418
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
7431
7419
|
>
|
|
7432
|
-
${e.icon ?
|
|
7433
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
7434
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
7420
|
+
${e.icon ? g`<span class="tab-icon">${Ir(e.icon)}</span>` : k}
|
|
7421
|
+
${s || this.variant !== "sidebar" || this.isMobile ? g`<span class="tab-label">${e.label}</span>` : k}
|
|
7422
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? g`<span class="tab-badge">${e.badge}</span>` : k}
|
|
7435
7423
|
</button>
|
|
7436
7424
|
`;
|
|
7437
7425
|
}
|
|
@@ -7446,9 +7434,9 @@ class oe extends R {
|
|
|
7446
7434
|
"sidebar-toggle": !0,
|
|
7447
7435
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
7448
7436
|
};
|
|
7449
|
-
return
|
|
7437
|
+
return g`
|
|
7450
7438
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
7451
|
-
${this.variant === "sidebar" ?
|
|
7439
|
+
${this.variant === "sidebar" ? g`
|
|
7452
7440
|
<div class=${S(i)}>
|
|
7453
7441
|
<!-- Sidebar Header -->
|
|
7454
7442
|
<div class="sidebar-header">
|
|
@@ -7478,7 +7466,7 @@ class oe extends R {
|
|
|
7478
7466
|
<slot name="sidebar-footer"></slot>
|
|
7479
7467
|
</div>
|
|
7480
7468
|
</div>
|
|
7481
|
-
` :
|
|
7469
|
+
` : g`
|
|
7482
7470
|
<div class="tabs-header">
|
|
7483
7471
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7484
7472
|
</div>
|
|
@@ -7743,12 +7731,12 @@ class K extends R {
|
|
|
7743
7731
|
"character-count--warning": s && !o,
|
|
7744
7732
|
"character-count--error": o
|
|
7745
7733
|
};
|
|
7746
|
-
return
|
|
7734
|
+
return g`
|
|
7747
7735
|
<div class="textarea-group">
|
|
7748
|
-
${this.label ?
|
|
7736
|
+
${this.label ? g`
|
|
7749
7737
|
<label for=${this.textareaId} class="textarea-label">
|
|
7750
7738
|
${this.label}
|
|
7751
|
-
${this.required ?
|
|
7739
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7752
7740
|
</label>
|
|
7753
7741
|
` : ""}
|
|
7754
7742
|
|
|
@@ -7769,18 +7757,18 @@ class K extends R {
|
|
|
7769
7757
|
@focus=${this.handleFocus}
|
|
7770
7758
|
></textarea>
|
|
7771
7759
|
|
|
7772
|
-
${i ?
|
|
7760
|
+
${i ? g`
|
|
7773
7761
|
<div class=${S(n)}>
|
|
7774
7762
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7775
7763
|
</div>
|
|
7776
7764
|
` : ""}
|
|
7777
7765
|
</div>
|
|
7778
7766
|
|
|
7779
|
-
${e ?
|
|
7767
|
+
${e ? g`
|
|
7780
7768
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7781
7769
|
${this.error}
|
|
7782
7770
|
</div>
|
|
7783
|
-
` : this.hint ?
|
|
7771
|
+
` : this.hint ? g` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7784
7772
|
</div>
|
|
7785
7773
|
`;
|
|
7786
7774
|
}
|
|
@@ -8235,13 +8223,13 @@ class Pe extends R {
|
|
|
8235
8223
|
`;
|
|
8236
8224
|
}
|
|
8237
8225
|
render() {
|
|
8238
|
-
return
|
|
8226
|
+
return g`
|
|
8239
8227
|
<div class="toast-container ${this.variant}">
|
|
8240
|
-
${this.dismiss !== "manual" ?
|
|
8228
|
+
${this.dismiss !== "manual" ? g`
|
|
8241
8229
|
<div class="toast-progress"></div>
|
|
8242
8230
|
` : ""}
|
|
8243
8231
|
<slot></slot>
|
|
8244
|
-
${this.dismiss === "manual" ?
|
|
8232
|
+
${this.dismiss === "manual" ? g`
|
|
8245
8233
|
<button
|
|
8246
8234
|
class="toast-dismiss-btn ${this.variant}"
|
|
8247
8235
|
aria-label="Dismiss toast"
|
|
@@ -8481,7 +8469,7 @@ class Oe extends R {
|
|
|
8481
8469
|
"quantity-input": !0,
|
|
8482
8470
|
[`quantity-input--${this.size}`]: !0
|
|
8483
8471
|
};
|
|
8484
|
-
return
|
|
8472
|
+
return g`
|
|
8485
8473
|
<div class=${S(e)}>
|
|
8486
8474
|
<button
|
|
8487
8475
|
type="button"
|
|
@@ -8594,7 +8582,7 @@ class Re extends R {
|
|
|
8594
8582
|
}
|
|
8595
8583
|
render() {
|
|
8596
8584
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8597
|
-
return
|
|
8585
|
+
return g`
|
|
8598
8586
|
<button
|
|
8599
8587
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8600
8588
|
@click=${this.toggleTheme}
|
|
@@ -8844,11 +8832,11 @@ function Dt() {
|
|
|
8844
8832
|
}
|
|
8845
8833
|
const po = (r, e, t, { allOwnKeys: i } = {}) => (Qe(e, (s, o) => {
|
|
8846
8834
|
t && Y(s) ? r[o] = Br(s, t) : r[o] = s;
|
|
8847
|
-
}, { allOwnKeys: i }), r), uo = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r),
|
|
8835
|
+
}, { allOwnKeys: i }), r), uo = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), fo = (r, e, t, i) => {
|
|
8848
8836
|
r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, Object.defineProperty(r, "super", {
|
|
8849
8837
|
value: e.prototype
|
|
8850
8838
|
}), t && Object.assign(r.prototype, t);
|
|
8851
|
-
},
|
|
8839
|
+
}, go = (r, e, t, i) => {
|
|
8852
8840
|
let s, o, a;
|
|
8853
8841
|
const n = {};
|
|
8854
8842
|
if (e = e || {}, r == null) return e;
|
|
@@ -8979,8 +8967,8 @@ const To = (r) => {
|
|
|
8979
8967
|
extend: po,
|
|
8980
8968
|
trim: ho,
|
|
8981
8969
|
stripBOM: uo,
|
|
8982
|
-
inherits:
|
|
8983
|
-
toFlatObject:
|
|
8970
|
+
inherits: fo,
|
|
8971
|
+
toFlatObject: go,
|
|
8984
8972
|
kindOf: vt,
|
|
8985
8973
|
kindOfTest: te,
|
|
8986
8974
|
endsWith: mo,
|
|
@@ -9067,7 +9055,7 @@ function Pt(r) {
|
|
|
9067
9055
|
function Wr(r) {
|
|
9068
9056
|
return d.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
9069
9057
|
}
|
|
9070
|
-
function
|
|
9058
|
+
function fr(r, e, t) {
|
|
9071
9059
|
return r ? r.concat(e).map(function(s, o) {
|
|
9072
9060
|
return s = Wr(s), !t && o ? "[" + s + "]" : s;
|
|
9073
9061
|
}).join(t ? "." : "") : e;
|
|
@@ -9091,42 +9079,42 @@ function wt(r, e, t) {
|
|
|
9091
9079
|
const i = t.metaTokens, s = t.visitor || c, o = t.dots, a = t.indexes, l = (t.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
|
|
9092
9080
|
if (!d.isFunction(s))
|
|
9093
9081
|
throw new TypeError("visitor must be a function");
|
|
9094
|
-
function h(
|
|
9095
|
-
if (
|
|
9096
|
-
if (d.isDate(
|
|
9097
|
-
return
|
|
9098
|
-
if (d.isBoolean(
|
|
9099
|
-
return
|
|
9100
|
-
if (!l && d.isBlob(
|
|
9082
|
+
function h(f) {
|
|
9083
|
+
if (f === null) return "";
|
|
9084
|
+
if (d.isDate(f))
|
|
9085
|
+
return f.toISOString();
|
|
9086
|
+
if (d.isBoolean(f))
|
|
9087
|
+
return f.toString();
|
|
9088
|
+
if (!l && d.isBlob(f))
|
|
9101
9089
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
9102
|
-
return d.isArrayBuffer(
|
|
9090
|
+
return d.isArrayBuffer(f) || d.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
9103
9091
|
}
|
|
9104
|
-
function c(
|
|
9105
|
-
let x =
|
|
9106
|
-
if (
|
|
9092
|
+
function c(f, v, m) {
|
|
9093
|
+
let x = f;
|
|
9094
|
+
if (f && !m && typeof f == "object") {
|
|
9107
9095
|
if (d.endsWith(v, "{}"))
|
|
9108
|
-
v = i ? v : v.slice(0, -2),
|
|
9109
|
-
else if (d.isArray(
|
|
9096
|
+
v = i ? v : v.slice(0, -2), f = JSON.stringify(f);
|
|
9097
|
+
else if (d.isArray(f) && Mo(f) || (d.isFileList(f) || d.endsWith(v, "[]")) && (x = d.toArray(f)))
|
|
9110
9098
|
return v = Wr(v), x.forEach(function(C, T) {
|
|
9111
9099
|
!(d.isUndefined(C) || C === null) && e.append(
|
|
9112
9100
|
// eslint-disable-next-line no-nested-ternary
|
|
9113
|
-
a === !0 ?
|
|
9101
|
+
a === !0 ? fr([v], T, o) : a === null ? v : v + "[]",
|
|
9114
9102
|
h(C)
|
|
9115
9103
|
);
|
|
9116
9104
|
}), !1;
|
|
9117
9105
|
}
|
|
9118
|
-
return Pt(
|
|
9106
|
+
return Pt(f) ? !0 : (e.append(fr(m, v, o), h(f)), !1);
|
|
9119
9107
|
}
|
|
9120
9108
|
const p = [], b = Object.assign(Io, {
|
|
9121
9109
|
defaultVisitor: c,
|
|
9122
9110
|
convertValue: h,
|
|
9123
9111
|
isVisitable: Pt
|
|
9124
9112
|
});
|
|
9125
|
-
function y(
|
|
9126
|
-
if (!d.isUndefined(
|
|
9127
|
-
if (p.indexOf(
|
|
9113
|
+
function y(f, v) {
|
|
9114
|
+
if (!d.isUndefined(f)) {
|
|
9115
|
+
if (p.indexOf(f) !== -1)
|
|
9128
9116
|
throw Error("Circular reference detected in " + v.join("."));
|
|
9129
|
-
p.push(
|
|
9117
|
+
p.push(f), d.forEach(f, function(x, _) {
|
|
9130
9118
|
(!(d.isUndefined(x) || x === null) && s.call(
|
|
9131
9119
|
e,
|
|
9132
9120
|
x,
|
|
@@ -9141,7 +9129,7 @@ function wt(r, e, t) {
|
|
|
9141
9129
|
throw new TypeError("data must be an object");
|
|
9142
9130
|
return y(r), e;
|
|
9143
9131
|
}
|
|
9144
|
-
function
|
|
9132
|
+
function gr(r) {
|
|
9145
9133
|
const e = {
|
|
9146
9134
|
"!": "%21",
|
|
9147
9135
|
"'": "%27",
|
|
@@ -9164,8 +9152,8 @@ Kr.append = function(e, t) {
|
|
|
9164
9152
|
};
|
|
9165
9153
|
Kr.toString = function(e) {
|
|
9166
9154
|
const t = e ? function(i) {
|
|
9167
|
-
return e.call(this, i,
|
|
9168
|
-
} :
|
|
9155
|
+
return e.call(this, i, gr);
|
|
9156
|
+
} : gr;
|
|
9169
9157
|
return this._pairs.map(function(s) {
|
|
9170
9158
|
return t(s[0]) + "=" + t(s[1]);
|
|
9171
9159
|
}, "").join("&");
|
|
@@ -9798,9 +9786,9 @@ const rs = (r) => {
|
|
|
9798
9786
|
const s = rs(r);
|
|
9799
9787
|
let o = s.data;
|
|
9800
9788
|
const a = W.from(s.headers).normalize();
|
|
9801
|
-
let { responseType: n, onUploadProgress: l, onDownloadProgress: h } = s, c, p, b, y,
|
|
9789
|
+
let { responseType: n, onUploadProgress: l, onDownloadProgress: h } = s, c, p, b, y, f;
|
|
9802
9790
|
function v() {
|
|
9803
|
-
y && y(),
|
|
9791
|
+
y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
|
|
9804
9792
|
}
|
|
9805
9793
|
let m = new XMLHttpRequest();
|
|
9806
9794
|
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
@@ -9841,7 +9829,7 @@ const rs = (r) => {
|
|
|
9841
9829
|
)), m = null;
|
|
9842
9830
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && d.forEach(a.toJSON(), function(T, N) {
|
|
9843
9831
|
m.setRequestHeader(N, T);
|
|
9844
|
-
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b,
|
|
9832
|
+
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, f] = pt(h, !0), m.addEventListener("progress", b)), l && m.upload && ([p, y] = pt(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (c = (C) => {
|
|
9845
9833
|
m && (i(!C || C.type ? new Me(null, r, m) : C), m.abort(), m = null);
|
|
9846
9834
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
9847
9835
|
const _ = ra(s.url);
|
|
@@ -9884,9 +9872,9 @@ const rs = (r) => {
|
|
|
9884
9872
|
for (; i < t; )
|
|
9885
9873
|
s = i + e, yield r.slice(i, s), i = s;
|
|
9886
9874
|
}, ua = async function* (r, e) {
|
|
9887
|
-
for await (const t of
|
|
9875
|
+
for await (const t of fa(r))
|
|
9888
9876
|
yield* pa(t, e);
|
|
9889
|
-
},
|
|
9877
|
+
}, fa = async function* (r) {
|
|
9890
9878
|
if (r[Symbol.asyncIterator]) {
|
|
9891
9879
|
yield* r;
|
|
9892
9880
|
return;
|
|
@@ -9931,7 +9919,7 @@ const rs = (r) => {
|
|
|
9931
9919
|
}, {
|
|
9932
9920
|
highWaterMark: 2
|
|
9933
9921
|
});
|
|
9934
|
-
}, $r = 64 * 1024, { isFunction: ot } = d,
|
|
9922
|
+
}, $r = 64 * 1024, { isFunction: ot } = d, ga = (({ Request: r, Response: e }) => ({
|
|
9935
9923
|
Request: r,
|
|
9936
9924
|
Response: e
|
|
9937
9925
|
}))(d.global), {
|
|
@@ -9946,50 +9934,50 @@ const rs = (r) => {
|
|
|
9946
9934
|
}, ma = (r) => {
|
|
9947
9935
|
r = d.merge.call({
|
|
9948
9936
|
skipUndefined: !0
|
|
9949
|
-
},
|
|
9937
|
+
}, ga, r);
|
|
9950
9938
|
const { fetch: e, Request: t, Response: i } = r, s = e ? ot(e) : typeof fetch == "function", o = ot(t), a = ot(i);
|
|
9951
9939
|
if (!s)
|
|
9952
9940
|
return !1;
|
|
9953
|
-
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((
|
|
9954
|
-
let
|
|
9941
|
+
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new Sr()) : async (f) => new Uint8Array(await new t(f).arrayBuffer())), h = o && n && _r(() => {
|
|
9942
|
+
let f = !1;
|
|
9955
9943
|
const v = new t(F.origin, {
|
|
9956
9944
|
body: new kr(),
|
|
9957
9945
|
method: "POST",
|
|
9958
9946
|
get duplex() {
|
|
9959
|
-
return
|
|
9947
|
+
return f = !0, "half";
|
|
9960
9948
|
}
|
|
9961
9949
|
}).headers.has("Content-Type");
|
|
9962
|
-
return
|
|
9950
|
+
return f && !v;
|
|
9963
9951
|
}), c = a && n && _r(() => d.isReadableStream(new i("").body)), p = {
|
|
9964
|
-
stream: c && ((
|
|
9952
|
+
stream: c && ((f) => f.body)
|
|
9965
9953
|
};
|
|
9966
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9967
|
-
!p[
|
|
9968
|
-
let x = v && v[
|
|
9954
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
9955
|
+
!p[f] && (p[f] = (v, m) => {
|
|
9956
|
+
let x = v && v[f];
|
|
9969
9957
|
if (x)
|
|
9970
9958
|
return x.call(v);
|
|
9971
|
-
throw new $(`Response type '${
|
|
9959
|
+
throw new $(`Response type '${f}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
9972
9960
|
});
|
|
9973
9961
|
});
|
|
9974
|
-
const b = async (
|
|
9975
|
-
if (
|
|
9962
|
+
const b = async (f) => {
|
|
9963
|
+
if (f == null)
|
|
9976
9964
|
return 0;
|
|
9977
|
-
if (d.isBlob(
|
|
9978
|
-
return
|
|
9979
|
-
if (d.isSpecCompliantForm(
|
|
9965
|
+
if (d.isBlob(f))
|
|
9966
|
+
return f.size;
|
|
9967
|
+
if (d.isSpecCompliantForm(f))
|
|
9980
9968
|
return (await new t(F.origin, {
|
|
9981
9969
|
method: "POST",
|
|
9982
|
-
body:
|
|
9970
|
+
body: f
|
|
9983
9971
|
}).arrayBuffer()).byteLength;
|
|
9984
|
-
if (d.isArrayBufferView(
|
|
9985
|
-
return
|
|
9986
|
-
if (d.isURLSearchParams(
|
|
9987
|
-
return (await l(
|
|
9988
|
-
}, y = async (
|
|
9989
|
-
const m = d.toFiniteNumber(
|
|
9972
|
+
if (d.isArrayBufferView(f) || d.isArrayBuffer(f))
|
|
9973
|
+
return f.byteLength;
|
|
9974
|
+
if (d.isURLSearchParams(f) && (f = f + ""), d.isString(f))
|
|
9975
|
+
return (await l(f)).byteLength;
|
|
9976
|
+
}, y = async (f, v) => {
|
|
9977
|
+
const m = d.toFiniteNumber(f.getContentLength());
|
|
9990
9978
|
return m ?? b(v);
|
|
9991
9979
|
};
|
|
9992
|
-
return async (
|
|
9980
|
+
return async (f) => {
|
|
9993
9981
|
let {
|
|
9994
9982
|
url: v,
|
|
9995
9983
|
method: m,
|
|
@@ -10003,10 +9991,10 @@ const rs = (r) => {
|
|
|
10003
9991
|
headers: $t,
|
|
10004
9992
|
withCredentials: tt = "same-origin",
|
|
10005
9993
|
fetchOptions: Wt
|
|
10006
|
-
} = rs(
|
|
9994
|
+
} = rs(f), Kt = e || fetch;
|
|
10007
9995
|
X = X ? (X + "").toLowerCase() : "text";
|
|
10008
9996
|
let rt = ha([_, C && C.toAbortSignal()], T), Ie = null;
|
|
10009
|
-
const
|
|
9997
|
+
const fe = rt && rt.unsubscribe && (() => {
|
|
10010
9998
|
rt.unsubscribe();
|
|
10011
9999
|
});
|
|
10012
10000
|
let Xt;
|
|
@@ -10038,7 +10026,7 @@ const rs = (r) => {
|
|
|
10038
10026
|
Ie = o && new t(v, Jt);
|
|
10039
10027
|
let ce = await (o ? Kt(Ie, Wt) : Kt(v, Jt));
|
|
10040
10028
|
const Gt = c && (X === "stream" || X === "response");
|
|
10041
|
-
if (c && (N || Gt &&
|
|
10029
|
+
if (c && (N || Gt && fe)) {
|
|
10042
10030
|
const de = {};
|
|
10043
10031
|
["status", "statusText", "headers"].forEach((Qt) => {
|
|
10044
10032
|
de[Qt] = ce[Qt];
|
|
@@ -10049,30 +10037,30 @@ const rs = (r) => {
|
|
|
10049
10037
|
) || [];
|
|
10050
10038
|
ce = new i(
|
|
10051
10039
|
xr(ce.body, $r, kt, () => {
|
|
10052
|
-
st && st(),
|
|
10040
|
+
st && st(), fe && fe();
|
|
10053
10041
|
}),
|
|
10054
10042
|
de
|
|
10055
10043
|
);
|
|
10056
10044
|
}
|
|
10057
10045
|
X = X || "text";
|
|
10058
|
-
let ns = await p[d.findKey(p, X) || "text"](ce,
|
|
10059
|
-
return !Gt &&
|
|
10046
|
+
let ns = await p[d.findKey(p, X) || "text"](ce, f);
|
|
10047
|
+
return !Gt && fe && fe(), await new Promise((de, ke) => {
|
|
10060
10048
|
es(de, ke, {
|
|
10061
10049
|
data: ns,
|
|
10062
10050
|
headers: W.from(ce.headers),
|
|
10063
10051
|
status: ce.status,
|
|
10064
10052
|
statusText: ce.statusText,
|
|
10065
|
-
config:
|
|
10053
|
+
config: f,
|
|
10066
10054
|
request: Ie
|
|
10067
10055
|
});
|
|
10068
10056
|
});
|
|
10069
10057
|
} catch (re) {
|
|
10070
|
-
throw
|
|
10071
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
10058
|
+
throw fe && fe(), re && re.name === "TypeError" && /Load failed|fetch/i.test(re.message) ? Object.assign(
|
|
10059
|
+
new $("Network Error", $.ERR_NETWORK, f, Ie),
|
|
10072
10060
|
{
|
|
10073
10061
|
cause: re.cause || re
|
|
10074
10062
|
}
|
|
10075
|
-
) : $.from(re, re && re.code,
|
|
10063
|
+
) : $.from(re, re && re.code, f, Ie);
|
|
10076
10064
|
}
|
|
10077
10065
|
};
|
|
10078
10066
|
}, ba = /* @__PURE__ */ new Map(), ss = (r) => {
|
|
@@ -10265,8 +10253,8 @@ class ye {
|
|
|
10265
10253
|
);
|
|
10266
10254
|
o && d.forEach(
|
|
10267
10255
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
10268
|
-
(
|
|
10269
|
-
delete o[
|
|
10256
|
+
(f) => {
|
|
10257
|
+
delete o[f];
|
|
10270
10258
|
}
|
|
10271
10259
|
), t.headers = W.concat(a, o);
|
|
10272
10260
|
const n = [];
|
|
@@ -10280,17 +10268,17 @@ class ye {
|
|
|
10280
10268
|
});
|
|
10281
10269
|
let c, p = 0, b;
|
|
10282
10270
|
if (!l) {
|
|
10283
|
-
const
|
|
10284
|
-
for (
|
|
10285
|
-
c = c.then(
|
|
10271
|
+
const f = [Ar.bind(this), void 0];
|
|
10272
|
+
for (f.unshift(...n), f.push(...h), b = f.length, c = Promise.resolve(t); p < b; )
|
|
10273
|
+
c = c.then(f[p++], f[p++]);
|
|
10286
10274
|
return c;
|
|
10287
10275
|
}
|
|
10288
10276
|
b = n.length;
|
|
10289
10277
|
let y = t;
|
|
10290
10278
|
for (; p < b; ) {
|
|
10291
|
-
const
|
|
10279
|
+
const f = n[p++], v = n[p++];
|
|
10292
10280
|
try {
|
|
10293
|
-
y =
|
|
10281
|
+
y = f(y);
|
|
10294
10282
|
} catch (m) {
|
|
10295
10283
|
v.call(this, m);
|
|
10296
10284
|
break;
|
|
@@ -10298,8 +10286,8 @@ class ye {
|
|
|
10298
10286
|
}
|
|
10299
10287
|
try {
|
|
10300
10288
|
c = Ar.call(this, y);
|
|
10301
|
-
} catch (
|
|
10302
|
-
return Promise.reject(
|
|
10289
|
+
} catch (f) {
|
|
10290
|
+
return Promise.reject(f);
|
|
10303
10291
|
}
|
|
10304
10292
|
for (p = 0, b = h.length; p < b; )
|
|
10305
10293
|
c = c.then(h[p++], h[p++]);
|