@cal.macconnachie/web-components 2.4.11 → 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 +428 -331
- 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;
|
|
@@ -326,7 +326,7 @@ let $s = class {
|
|
|
326
326
|
for (; l !== void 0; ) {
|
|
327
327
|
if (a === l.index) {
|
|
328
328
|
let h;
|
|
329
|
-
l.type === 2 ? h = new
|
|
329
|
+
l.type === 2 ? h = new Ae(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new Cs(o, this, e)), this._$AV.push(h), l = i[++n];
|
|
330
330
|
}
|
|
331
331
|
a !== l?.index && (o = be.nextNode(), a++);
|
|
332
332
|
}
|
|
@@ -337,7 +337,7 @@ let $s = class {
|
|
|
337
337
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
|
-
class
|
|
340
|
+
class Ae {
|
|
341
341
|
get _$AU() {
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
@@ -383,7 +383,7 @@ class Ee {
|
|
|
383
383
|
Bt(this._$AH) || (this._$AH = [], this._$AR());
|
|
384
384
|
const t = this._$AH;
|
|
385
385
|
let i, s = 0;
|
|
386
|
-
for (const o of e) s === t.length ? t.push(i = new
|
|
386
|
+
for (const o of e) s === t.length ? t.push(i = new Ae(this.O(Fe()), this.O(Fe()), this, this.options)) : i = t[s], i._$AI(o), s++;
|
|
387
387
|
s < t.length && (this._$AR(i && i._$AB.nextSibling, s), t.length = s);
|
|
388
388
|
}
|
|
389
389
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -396,7 +396,7 @@ class Ee {
|
|
|
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
|
}
|
|
@@ -461,14 +461,14 @@ class Cs {
|
|
|
461
461
|
_e(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
465
|
-
|
|
464
|
+
const As = { I: Ae }, Es = Lt.litHtmlPolyfillSupport;
|
|
465
|
+
Es?.(je, Ae), (Lt.litHtmlVersions ??= []).push("3.3.1");
|
|
466
466
|
const Ts = (r, e, t) => {
|
|
467
467
|
const i = t?.renderBefore ?? e;
|
|
468
468
|
let s = i._$litPart$;
|
|
469
469
|
if (s === void 0) {
|
|
470
470
|
const o = t?.renderBefore ?? null;
|
|
471
|
-
i._$litPart$ = s = new
|
|
471
|
+
i._$litPart$ = s = new Ae(e.insertBefore(Fe(), o), o, void 0, t ?? {});
|
|
472
472
|
}
|
|
473
473
|
return s._$AI(r), s;
|
|
474
474
|
};
|
|
@@ -555,7 +555,7 @@ class Ft {
|
|
|
555
555
|
return this.render(...t);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const { I: zs } =
|
|
558
|
+
const { I: zs } = As, dr = () => document.createComment(""), Be = (r, e, t) => {
|
|
559
559
|
const i = r._$AA.parentNode, s = e === void 0 ? r._$AB : e._$AA;
|
|
560
560
|
if (t === void 0) {
|
|
561
561
|
const o = i.insertBefore(dr(), s), a = i.insertBefore(dr(), s);
|
|
@@ -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();
|
|
@@ -935,7 +935,7 @@ const P = ({
|
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
};
|
|
938
|
-
var Hs = Object.defineProperty,
|
|
938
|
+
var Hs = Object.defineProperty, E = (r, e, t, i) => {
|
|
939
939
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
940
940
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
941
941
|
return s && Hs(e, t, s), s;
|
|
@@ -952,9 +952,9 @@ const js = [
|
|
|
952
952
|
"expires_in"
|
|
953
953
|
], Vs = () => P({
|
|
954
954
|
name: "auth-form",
|
|
955
|
-
element:
|
|
955
|
+
element: A
|
|
956
956
|
});
|
|
957
|
-
class
|
|
957
|
+
class A extends R {
|
|
958
958
|
constructor() {
|
|
959
959
|
super(...arguments), this.initialMode = "signin", this.logoUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.disableSignup = !1, this.mockMode = !1, this.mode = "signin", this.resetStep = "none", this.signupStep = "form", this.isLoading = !1, this.isLoggedIn = !1, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.notice = "", this.error = "", this.errors = {}, this.userEmail = null, this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.hasHandledOAuthCallback = !1, this.handleAuthRefreshFailed = () => {
|
|
960
960
|
this.isLoggedIn = !1, this.userEmail = null;
|
|
@@ -1362,8 +1362,8 @@ class E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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>
|
|
@@ -2070,90 +2070,90 @@ class E extends R {
|
|
|
2070
2070
|
}`;
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
|
|
2073
|
+
E([
|
|
2074
2074
|
u({ type: String, attribute: "initial-mode" })
|
|
2075
|
-
],
|
|
2076
|
-
|
|
2075
|
+
], A.prototype, "initialMode");
|
|
2076
|
+
E([
|
|
2077
2077
|
u({ type: String, attribute: "logo-url" })
|
|
2078
|
-
],
|
|
2079
|
-
|
|
2078
|
+
], A.prototype, "logoUrl");
|
|
2079
|
+
E([
|
|
2080
2080
|
u({ type: String, attribute: "oauth-domain" })
|
|
2081
|
-
],
|
|
2082
|
-
|
|
2081
|
+
], A.prototype, "oauthDomain");
|
|
2082
|
+
E([
|
|
2083
2083
|
u({ type: String, attribute: "oauth-region" })
|
|
2084
|
-
],
|
|
2085
|
-
|
|
2084
|
+
], A.prototype, "oauthRegion");
|
|
2085
|
+
E([
|
|
2086
2086
|
u({ type: String, attribute: "oauth-user-pool-id" })
|
|
2087
|
-
],
|
|
2088
|
-
|
|
2087
|
+
], A.prototype, "oauthUserPoolId");
|
|
2088
|
+
E([
|
|
2089
2089
|
u({ type: String, attribute: "oauth-client-id" })
|
|
2090
|
-
],
|
|
2091
|
-
|
|
2090
|
+
], A.prototype, "oauthClientId");
|
|
2091
|
+
E([
|
|
2092
2092
|
u({ type: String, attribute: "oauth-redirect-uri" })
|
|
2093
|
-
],
|
|
2094
|
-
|
|
2093
|
+
], A.prototype, "oauthRedirectUri");
|
|
2094
|
+
E([
|
|
2095
2095
|
u({ type: String, attribute: "oauth-spa-domain" })
|
|
2096
|
-
],
|
|
2097
|
-
|
|
2096
|
+
], A.prototype, "oauthSpaDomain");
|
|
2097
|
+
E([
|
|
2098
2098
|
u({ type: Boolean, attribute: "disable-signup" })
|
|
2099
|
-
],
|
|
2100
|
-
|
|
2099
|
+
], A.prototype, "disableSignup");
|
|
2100
|
+
E([
|
|
2101
2101
|
u({ type: Boolean, attribute: "mock-mode" })
|
|
2102
|
-
],
|
|
2103
|
-
|
|
2102
|
+
], A.prototype, "mockMode");
|
|
2103
|
+
E([
|
|
2104
2104
|
w()
|
|
2105
|
-
],
|
|
2106
|
-
|
|
2105
|
+
], A.prototype, "mode");
|
|
2106
|
+
E([
|
|
2107
2107
|
w()
|
|
2108
|
-
],
|
|
2109
|
-
|
|
2108
|
+
], A.prototype, "resetStep");
|
|
2109
|
+
E([
|
|
2110
2110
|
w()
|
|
2111
|
-
],
|
|
2112
|
-
|
|
2111
|
+
], A.prototype, "signupStep");
|
|
2112
|
+
E([
|
|
2113
2113
|
w()
|
|
2114
|
-
],
|
|
2115
|
-
|
|
2114
|
+
], A.prototype, "isLoading");
|
|
2115
|
+
E([
|
|
2116
2116
|
w()
|
|
2117
|
-
],
|
|
2118
|
-
|
|
2117
|
+
], A.prototype, "isLoggedIn");
|
|
2118
|
+
E([
|
|
2119
2119
|
w()
|
|
2120
|
-
],
|
|
2121
|
-
|
|
2120
|
+
], A.prototype, "email");
|
|
2121
|
+
E([
|
|
2122
2122
|
w()
|
|
2123
|
-
],
|
|
2124
|
-
|
|
2123
|
+
], A.prototype, "password");
|
|
2124
|
+
E([
|
|
2125
2125
|
w()
|
|
2126
|
-
],
|
|
2127
|
-
|
|
2126
|
+
], A.prototype, "givenName");
|
|
2127
|
+
E([
|
|
2128
2128
|
w()
|
|
2129
|
-
],
|
|
2130
|
-
|
|
2129
|
+
], A.prototype, "familyName");
|
|
2130
|
+
E([
|
|
2131
2131
|
w()
|
|
2132
|
-
],
|
|
2133
|
-
|
|
2132
|
+
], A.prototype, "newPassword");
|
|
2133
|
+
E([
|
|
2134
2134
|
w()
|
|
2135
|
-
],
|
|
2136
|
-
|
|
2135
|
+
], A.prototype, "confirmPassword");
|
|
2136
|
+
E([
|
|
2137
2137
|
w()
|
|
2138
|
-
],
|
|
2139
|
-
|
|
2138
|
+
], A.prototype, "notice");
|
|
2139
|
+
E([
|
|
2140
2140
|
w()
|
|
2141
|
-
],
|
|
2142
|
-
|
|
2141
|
+
], A.prototype, "error");
|
|
2142
|
+
E([
|
|
2143
2143
|
w()
|
|
2144
|
-
],
|
|
2145
|
-
|
|
2144
|
+
], A.prototype, "errors");
|
|
2145
|
+
E([
|
|
2146
2146
|
w()
|
|
2147
|
-
],
|
|
2148
|
-
|
|
2147
|
+
], A.prototype, "userEmail");
|
|
2148
|
+
E([
|
|
2149
2149
|
w()
|
|
2150
|
-
],
|
|
2151
|
-
|
|
2150
|
+
], A.prototype, "otpDigits");
|
|
2151
|
+
E([
|
|
2152
2152
|
w()
|
|
2153
|
-
],
|
|
2154
|
-
|
|
2153
|
+
], A.prototype, "signupOtpDigits");
|
|
2154
|
+
E([
|
|
2155
2155
|
V("#email-input")
|
|
2156
|
-
],
|
|
2156
|
+
], A.prototype, "emailInput");
|
|
2157
2157
|
const S = qt(class extends Ft {
|
|
2158
2158
|
constructor(r) {
|
|
2159
2159
|
if (super(r), r.type !== Ut.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -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">
|
|
@@ -2685,9 +2685,9 @@ var Ws = Object.defineProperty, Ve = (r, e, t, i) => {
|
|
|
2685
2685
|
};
|
|
2686
2686
|
const Ks = () => P({
|
|
2687
2687
|
name: "base-card",
|
|
2688
|
-
element:
|
|
2688
|
+
element: Ee
|
|
2689
2689
|
});
|
|
2690
|
-
class
|
|
2690
|
+
class Ee extends R {
|
|
2691
2691
|
constructor() {
|
|
2692
2692
|
super(...arguments), this.variant = "default", this.padding = "none", this.hoverable = !1, this.expandable = !1, this.isExpanded = !1;
|
|
2693
2693
|
}
|
|
@@ -2909,9 +2909,9 @@ class Ae 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 Ae 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}
|
|
@@ -2936,19 +2936,19 @@ class Ae extends R {
|
|
|
2936
2936
|
}
|
|
2937
2937
|
Ve([
|
|
2938
2938
|
u({ type: String, attribute: "variant" })
|
|
2939
|
-
],
|
|
2939
|
+
], Ee.prototype, "variant");
|
|
2940
2940
|
Ve([
|
|
2941
2941
|
u({ type: String, attribute: "padding" })
|
|
2942
|
-
],
|
|
2942
|
+
], Ee.prototype, "padding");
|
|
2943
2943
|
Ve([
|
|
2944
2944
|
u({ type: Boolean, reflect: !0, attribute: "hoverable" })
|
|
2945
|
-
],
|
|
2945
|
+
], Ee.prototype, "hoverable");
|
|
2946
2946
|
Ve([
|
|
2947
2947
|
u({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
2948
|
-
],
|
|
2948
|
+
], Ee.prototype, "expandable");
|
|
2949
2949
|
Ve([
|
|
2950
2950
|
w()
|
|
2951
|
-
],
|
|
2951
|
+
], Ee.prototype, "isExpanded");
|
|
2952
2952
|
const J = (r) => r ?? k;
|
|
2953
2953
|
var Xs = Object.defineProperty, z = (r, e, t, i) => {
|
|
2954
2954
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -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,12 +5355,12 @@ 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;
|
|
5362
5362
|
};
|
|
5363
|
-
const
|
|
5363
|
+
const Ai = /* @__PURE__ */ Object.assign({
|
|
5364
5364
|
"../../public/icons/arrow.svg": ii,
|
|
5365
5365
|
"../../public/icons/calendar-day.svg": oi,
|
|
5366
5366
|
"../../public/icons/calendar-month.svg": ai,
|
|
@@ -5371,8 +5371,8 @@ const Ei = /* @__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,
|
|
@@ -5383,7 +5383,7 @@ const Ei = /* @__PURE__ */ Object.assign({
|
|
|
5383
5383
|
"../../public/icons/sun.svg": ki,
|
|
5384
5384
|
"../../public/icons/trash-can.svg": Si,
|
|
5385
5385
|
"../../public/icons/user.svg": _i
|
|
5386
|
-
}),
|
|
5386
|
+
}), Ei = () => P({
|
|
5387
5387
|
name: "base-icon",
|
|
5388
5388
|
element: Te
|
|
5389
5389
|
});
|
|
@@ -5427,7 +5427,7 @@ class Te extends R {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
try {
|
|
5429
5429
|
const e = `../../public/icons/${this.name}.svg`;
|
|
5430
|
-
let t =
|
|
5430
|
+
let t = Ai[e];
|
|
5431
5431
|
if (!t)
|
|
5432
5432
|
throw new Error(`Icon "${this.name}" not found`);
|
|
5433
5433
|
t = t.replace(/<\?xml[^?]*\?>/g, ""), t = t.replace(/<style[\s\S]*?<\/style>/gi, ""), t = t.replace(/\s+style="[^"]*"/gi, ""), t = t.replace(/<defs>\s*<\/defs>/gi, ""), t = t.replace(/\s+fill="[^"]*"/gi, ""), t = t.trim(), this.svgContent = t;
|
|
@@ -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>
|
|
@@ -5912,13 +5901,81 @@ class ie extends R {
|
|
|
5912
5901
|
filter: brightness(0.9);
|
|
5913
5902
|
}
|
|
5914
5903
|
|
|
5904
|
+
/* Desktop hover actions */
|
|
5905
|
+
.desktop-actions {
|
|
5906
|
+
position: absolute;
|
|
5907
|
+
right: 0;
|
|
5908
|
+
top: 0;
|
|
5909
|
+
bottom: 0;
|
|
5910
|
+
display: flex;
|
|
5911
|
+
align-items: center;
|
|
5912
|
+
gap: var(--space-1);
|
|
5913
|
+
padding-right: var(--space-3);
|
|
5914
|
+
opacity: 0;
|
|
5915
|
+
transform: translateX(10px);
|
|
5916
|
+
transition: all var(--transition-fast);
|
|
5917
|
+
pointer-events: none;
|
|
5918
|
+
z-index: 2;
|
|
5919
|
+
padding-left: var(--space-8);
|
|
5920
|
+
}
|
|
5921
|
+
|
|
5922
|
+
.desktop-action-button {
|
|
5923
|
+
display: flex;
|
|
5924
|
+
align-items: center;
|
|
5925
|
+
justify-content: center;
|
|
5926
|
+
width: 32px;
|
|
5927
|
+
height: 32px;
|
|
5928
|
+
border: none;
|
|
5929
|
+
border-radius: var(--radius-md);
|
|
5930
|
+
cursor: pointer;
|
|
5931
|
+
transition: all var(--transition-fast);
|
|
5932
|
+
color: white;
|
|
5933
|
+
pointer-events: auto;
|
|
5934
|
+
}
|
|
5935
|
+
|
|
5936
|
+
.desktop-action-button:hover {
|
|
5937
|
+
transform: scale(1.1);
|
|
5938
|
+
filter: brightness(1.1);
|
|
5939
|
+
}
|
|
5940
|
+
|
|
5941
|
+
.desktop-action-button:active {
|
|
5942
|
+
transform: scale(0.95);
|
|
5943
|
+
}
|
|
5944
|
+
|
|
5945
|
+
.desktop-action-button:focus-visible {
|
|
5946
|
+
outline: 2px solid var(--color-border-focus);
|
|
5947
|
+
outline-offset: 2px;
|
|
5948
|
+
}
|
|
5949
|
+
|
|
5950
|
+
/* Show desktop actions on hover (desktop only) */
|
|
5951
|
+
@media (hover: hover) and (pointer: fine) {
|
|
5952
|
+
:host(:hover) .desktop-actions,
|
|
5953
|
+
:host(:focus-within) .desktop-actions {
|
|
5954
|
+
opacity: 1;
|
|
5955
|
+
transform: translateX(0);
|
|
5956
|
+
pointer-events: auto;
|
|
5957
|
+
}
|
|
5958
|
+
|
|
5959
|
+
/* Hide swipe actions on desktop */
|
|
5960
|
+
.swipe-actions {
|
|
5961
|
+
display: none;
|
|
5962
|
+
}
|
|
5963
|
+
}
|
|
5964
|
+
|
|
5965
|
+
/* Hide desktop actions on touch devices */
|
|
5966
|
+
@media (hover: none) {
|
|
5967
|
+
.desktop-actions {
|
|
5968
|
+
display: none;
|
|
5969
|
+
}
|
|
5970
|
+
}
|
|
5971
|
+
|
|
5915
5972
|
.base-list-item {
|
|
5916
5973
|
position: relative;
|
|
5917
5974
|
display: block;
|
|
5918
5975
|
width: 100%;
|
|
5919
5976
|
font-family: var(--font-family-sans);
|
|
5920
5977
|
color: var(--color-text-primary);
|
|
5921
|
-
background-color:
|
|
5978
|
+
background-color: inherit;
|
|
5922
5979
|
border: none;
|
|
5923
5980
|
text-align: left;
|
|
5924
5981
|
box-sizing: border-box;
|
|
@@ -6043,9 +6100,9 @@ class ie extends R {
|
|
|
6043
6100
|
"base-list-item--selected": this.selected,
|
|
6044
6101
|
"base-list-item--swiping": this.isDragging
|
|
6045
6102
|
};
|
|
6046
|
-
return
|
|
6103
|
+
return g`
|
|
6047
6104
|
<div class="list-item-wrapper">
|
|
6048
|
-
${this.leftSwipeAction ?
|
|
6105
|
+
${this.leftSwipeAction ? g`
|
|
6049
6106
|
<div class="swipe-actions swipe-actions--left">
|
|
6050
6107
|
<button
|
|
6051
6108
|
class="swipe-action-button"
|
|
@@ -6057,12 +6114,12 @@ class ie extends R {
|
|
|
6057
6114
|
size="24px"
|
|
6058
6115
|
color="white"
|
|
6059
6116
|
></base-icon>
|
|
6060
|
-
${this.leftSwipeAction.label ?
|
|
6117
|
+
${this.leftSwipeAction.label ? g`<span>${this.leftSwipeAction.label}</span>` : ""}
|
|
6061
6118
|
</button>
|
|
6062
6119
|
</div>
|
|
6063
6120
|
` : ""}
|
|
6064
6121
|
|
|
6065
|
-
${this.rightSwipeAction ?
|
|
6122
|
+
${this.rightSwipeAction ? g`
|
|
6066
6123
|
<div class="swipe-actions swipe-actions--right">
|
|
6067
6124
|
<button
|
|
6068
6125
|
class="swipe-action-button"
|
|
@@ -6074,11 +6131,51 @@ class ie extends R {
|
|
|
6074
6131
|
size="24px"
|
|
6075
6132
|
color="white"
|
|
6076
6133
|
></base-icon>
|
|
6077
|
-
${this.rightSwipeAction.label ?
|
|
6134
|
+
${this.rightSwipeAction.label ? g`<span>${this.rightSwipeAction.label}</span>` : ""}
|
|
6078
6135
|
</button>
|
|
6079
6136
|
</div>
|
|
6080
6137
|
` : ""}
|
|
6081
6138
|
|
|
6139
|
+
<!-- Desktop hover actions -->
|
|
6140
|
+
${this.leftSwipeAction || this.rightSwipeAction ? g`
|
|
6141
|
+
<div class="desktop-actions">
|
|
6142
|
+
${this.leftSwipeAction ? g`
|
|
6143
|
+
<button
|
|
6144
|
+
class="desktop-action-button"
|
|
6145
|
+
style="background-color: ${this.leftSwipeAction.color || "var(--color-success)"}"
|
|
6146
|
+
@click=${(t) => {
|
|
6147
|
+
t.stopPropagation(), this.triggerSwipeAction(this.leftSwipeAction);
|
|
6148
|
+
}}
|
|
6149
|
+
title=${this.leftSwipeAction.label || ""}
|
|
6150
|
+
aria-label=${this.leftSwipeAction.label || ""}
|
|
6151
|
+
>
|
|
6152
|
+
<base-icon
|
|
6153
|
+
name=${this.leftSwipeAction.icon}
|
|
6154
|
+
size="20px"
|
|
6155
|
+
color="white"
|
|
6156
|
+
></base-icon>
|
|
6157
|
+
</button>
|
|
6158
|
+
` : ""}
|
|
6159
|
+
${this.rightSwipeAction ? g`
|
|
6160
|
+
<button
|
|
6161
|
+
class="desktop-action-button"
|
|
6162
|
+
style="background-color: ${this.rightSwipeAction.color || "var(--color-error)"}"
|
|
6163
|
+
@click=${(t) => {
|
|
6164
|
+
t.stopPropagation(), this.triggerSwipeAction(this.rightSwipeAction);
|
|
6165
|
+
}}
|
|
6166
|
+
title=${this.rightSwipeAction.label || ""}
|
|
6167
|
+
aria-label=${this.rightSwipeAction.label || ""}
|
|
6168
|
+
>
|
|
6169
|
+
<base-icon
|
|
6170
|
+
name=${this.rightSwipeAction.icon}
|
|
6171
|
+
size="20px"
|
|
6172
|
+
color="white"
|
|
6173
|
+
></base-icon>
|
|
6174
|
+
</button>
|
|
6175
|
+
` : ""}
|
|
6176
|
+
</div>
|
|
6177
|
+
` : ""}
|
|
6178
|
+
|
|
6082
6179
|
<div
|
|
6083
6180
|
class=${S(e)}
|
|
6084
6181
|
style="transform: translateX(${this.swipeOffset}px)"
|
|
@@ -6492,12 +6589,12 @@ class M extends R {
|
|
|
6492
6589
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6493
6590
|
"select-disabled": this.disabled
|
|
6494
6591
|
};
|
|
6495
|
-
return
|
|
6592
|
+
return g`
|
|
6496
6593
|
<div class="select-group">
|
|
6497
|
-
${this.label ?
|
|
6594
|
+
${this.label ? g`
|
|
6498
6595
|
<label for=${this.selectId} class="select-label">
|
|
6499
6596
|
${this.label}
|
|
6500
|
-
${this.required ?
|
|
6597
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6501
6598
|
</label>
|
|
6502
6599
|
` : ""}
|
|
6503
6600
|
|
|
@@ -6539,7 +6636,7 @@ class M extends R {
|
|
|
6539
6636
|
</svg>
|
|
6540
6637
|
</div>
|
|
6541
6638
|
|
|
6542
|
-
${this.isOpen ?
|
|
6639
|
+
${this.isOpen ? g`
|
|
6543
6640
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6544
6641
|
<div
|
|
6545
6642
|
class=${S({
|
|
@@ -6549,8 +6646,8 @@ class M extends R {
|
|
|
6549
6646
|
})}
|
|
6550
6647
|
role="listbox"
|
|
6551
6648
|
>
|
|
6552
|
-
${this.filteredOptions.length === 0 ?
|
|
6553
|
-
(o, a) =>
|
|
6649
|
+
${this.filteredOptions.length === 0 ? g` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6650
|
+
(o, a) => g`
|
|
6554
6651
|
<div
|
|
6555
6652
|
class=${S({
|
|
6556
6653
|
"dropdown-option": !0,
|
|
@@ -6569,11 +6666,11 @@ class M extends R {
|
|
|
6569
6666
|
` : ""}
|
|
6570
6667
|
</div>
|
|
6571
6668
|
|
|
6572
|
-
${e ?
|
|
6669
|
+
${e ? g`
|
|
6573
6670
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6574
6671
|
${this.error}
|
|
6575
6672
|
</div>
|
|
6576
|
-
` : this.hint ?
|
|
6673
|
+
` : this.hint ? g` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6577
6674
|
|
|
6578
6675
|
<!-- Hidden slot for option elements -->
|
|
6579
6676
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6694,7 +6791,7 @@ class De extends R {
|
|
|
6694
6791
|
);
|
|
6695
6792
|
}
|
|
6696
6793
|
render() {
|
|
6697
|
-
return
|
|
6794
|
+
return g`
|
|
6698
6795
|
<div
|
|
6699
6796
|
class="base-tab"
|
|
6700
6797
|
id="tabpanel-${this.id}"
|
|
@@ -7309,7 +7406,7 @@ class oe extends R {
|
|
|
7309
7406
|
"tab-button": !0,
|
|
7310
7407
|
"tab-button--active": i
|
|
7311
7408
|
};
|
|
7312
|
-
return
|
|
7409
|
+
return g`
|
|
7313
7410
|
<button
|
|
7314
7411
|
role="tab"
|
|
7315
7412
|
aria-selected=${i}
|
|
@@ -7320,9 +7417,9 @@ class oe extends R {
|
|
|
7320
7417
|
@click=${() => this.handleTabClick(e.id)}
|
|
7321
7418
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
7322
7419
|
>
|
|
7323
|
-
${e.icon ?
|
|
7324
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
7325
|
-
${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}
|
|
7326
7423
|
</button>
|
|
7327
7424
|
`;
|
|
7328
7425
|
}
|
|
@@ -7337,9 +7434,9 @@ class oe extends R {
|
|
|
7337
7434
|
"sidebar-toggle": !0,
|
|
7338
7435
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
7339
7436
|
};
|
|
7340
|
-
return
|
|
7437
|
+
return g`
|
|
7341
7438
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
7342
|
-
${this.variant === "sidebar" ?
|
|
7439
|
+
${this.variant === "sidebar" ? g`
|
|
7343
7440
|
<div class=${S(i)}>
|
|
7344
7441
|
<!-- Sidebar Header -->
|
|
7345
7442
|
<div class="sidebar-header">
|
|
@@ -7369,7 +7466,7 @@ class oe extends R {
|
|
|
7369
7466
|
<slot name="sidebar-footer"></slot>
|
|
7370
7467
|
</div>
|
|
7371
7468
|
</div>
|
|
7372
|
-
` :
|
|
7469
|
+
` : g`
|
|
7373
7470
|
<div class="tabs-header">
|
|
7374
7471
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7375
7472
|
</div>
|
|
@@ -7634,12 +7731,12 @@ class K extends R {
|
|
|
7634
7731
|
"character-count--warning": s && !o,
|
|
7635
7732
|
"character-count--error": o
|
|
7636
7733
|
};
|
|
7637
|
-
return
|
|
7734
|
+
return g`
|
|
7638
7735
|
<div class="textarea-group">
|
|
7639
|
-
${this.label ?
|
|
7736
|
+
${this.label ? g`
|
|
7640
7737
|
<label for=${this.textareaId} class="textarea-label">
|
|
7641
7738
|
${this.label}
|
|
7642
|
-
${this.required ?
|
|
7739
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7643
7740
|
</label>
|
|
7644
7741
|
` : ""}
|
|
7645
7742
|
|
|
@@ -7660,18 +7757,18 @@ class K extends R {
|
|
|
7660
7757
|
@focus=${this.handleFocus}
|
|
7661
7758
|
></textarea>
|
|
7662
7759
|
|
|
7663
|
-
${i ?
|
|
7760
|
+
${i ? g`
|
|
7664
7761
|
<div class=${S(n)}>
|
|
7665
7762
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7666
7763
|
</div>
|
|
7667
7764
|
` : ""}
|
|
7668
7765
|
</div>
|
|
7669
7766
|
|
|
7670
|
-
${e ?
|
|
7767
|
+
${e ? g`
|
|
7671
7768
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7672
7769
|
${this.error}
|
|
7673
7770
|
</div>
|
|
7674
|
-
` : this.hint ?
|
|
7771
|
+
` : this.hint ? g` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7675
7772
|
</div>
|
|
7676
7773
|
`;
|
|
7677
7774
|
}
|
|
@@ -8126,13 +8223,13 @@ class Pe extends R {
|
|
|
8126
8223
|
`;
|
|
8127
8224
|
}
|
|
8128
8225
|
render() {
|
|
8129
|
-
return
|
|
8226
|
+
return g`
|
|
8130
8227
|
<div class="toast-container ${this.variant}">
|
|
8131
|
-
${this.dismiss !== "manual" ?
|
|
8228
|
+
${this.dismiss !== "manual" ? g`
|
|
8132
8229
|
<div class="toast-progress"></div>
|
|
8133
8230
|
` : ""}
|
|
8134
8231
|
<slot></slot>
|
|
8135
|
-
${this.dismiss === "manual" ?
|
|
8232
|
+
${this.dismiss === "manual" ? g`
|
|
8136
8233
|
<button
|
|
8137
8234
|
class="toast-dismiss-btn ${this.variant}"
|
|
8138
8235
|
aria-label="Dismiss toast"
|
|
@@ -8372,7 +8469,7 @@ class Oe extends R {
|
|
|
8372
8469
|
"quantity-input": !0,
|
|
8373
8470
|
[`quantity-input--${this.size}`]: !0
|
|
8374
8471
|
};
|
|
8375
|
-
return
|
|
8472
|
+
return g`
|
|
8376
8473
|
<div class=${S(e)}>
|
|
8377
8474
|
<button
|
|
8378
8475
|
type="button"
|
|
@@ -8485,7 +8582,7 @@ class Re extends R {
|
|
|
8485
8582
|
}
|
|
8486
8583
|
render() {
|
|
8487
8584
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8488
|
-
return
|
|
8585
|
+
return g`
|
|
8489
8586
|
<button
|
|
8490
8587
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8491
8588
|
@click=${this.toggleTheme}
|
|
@@ -8735,11 +8832,11 @@ function Dt() {
|
|
|
8735
8832
|
}
|
|
8736
8833
|
const po = (r, e, t, { allOwnKeys: i } = {}) => (Qe(e, (s, o) => {
|
|
8737
8834
|
t && Y(s) ? r[o] = Br(s, t) : r[o] = s;
|
|
8738
|
-
}, { 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) => {
|
|
8739
8836
|
r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, Object.defineProperty(r, "super", {
|
|
8740
8837
|
value: e.prototype
|
|
8741
8838
|
}), t && Object.assign(r.prototype, t);
|
|
8742
|
-
},
|
|
8839
|
+
}, go = (r, e, t, i) => {
|
|
8743
8840
|
let s, o, a;
|
|
8744
8841
|
const n = {};
|
|
8745
8842
|
if (e = e || {}, r == null) return e;
|
|
@@ -8809,8 +8906,8 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (Qe(e, (s, o) => {
|
|
|
8809
8906
|
};
|
|
8810
8907
|
return ze(r) ? i(r) : i(String(r).split(e)), t;
|
|
8811
8908
|
}, Co = () => {
|
|
8812
|
-
},
|
|
8813
|
-
function
|
|
8909
|
+
}, Ao = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
|
|
8910
|
+
function Eo(r) {
|
|
8814
8911
|
return !!(r && Y(r.append) && r[Nr] === "FormData" && r[bt]);
|
|
8815
8912
|
}
|
|
8816
8913
|
const To = (r) => {
|
|
@@ -8870,8 +8967,8 @@ const To = (r) => {
|
|
|
8870
8967
|
extend: po,
|
|
8871
8968
|
trim: ho,
|
|
8872
8969
|
stripBOM: uo,
|
|
8873
|
-
inherits:
|
|
8874
|
-
toFlatObject:
|
|
8970
|
+
inherits: fo,
|
|
8971
|
+
toFlatObject: go,
|
|
8875
8972
|
kindOf: vt,
|
|
8876
8973
|
kindOfTest: te,
|
|
8877
8974
|
endsWith: mo,
|
|
@@ -8887,11 +8984,11 @@ const To = (r) => {
|
|
|
8887
8984
|
toObjectSet: _o,
|
|
8888
8985
|
toCamelCase: $o,
|
|
8889
8986
|
noop: Co,
|
|
8890
|
-
toFiniteNumber:
|
|
8987
|
+
toFiniteNumber: Ao,
|
|
8891
8988
|
findKey: Fr,
|
|
8892
8989
|
global: ve,
|
|
8893
8990
|
isContextDefined: Hr,
|
|
8894
|
-
isSpecCompliantForm:
|
|
8991
|
+
isSpecCompliantForm: Eo,
|
|
8895
8992
|
toJSONObject: To,
|
|
8896
8993
|
isAsyncFn: Do,
|
|
8897
8994
|
isThenable: Po,
|
|
@@ -8958,7 +9055,7 @@ function Pt(r) {
|
|
|
8958
9055
|
function Wr(r) {
|
|
8959
9056
|
return d.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
8960
9057
|
}
|
|
8961
|
-
function
|
|
9058
|
+
function fr(r, e, t) {
|
|
8962
9059
|
return r ? r.concat(e).map(function(s, o) {
|
|
8963
9060
|
return s = Wr(s), !t && o ? "[" + s + "]" : s;
|
|
8964
9061
|
}).join(t ? "." : "") : e;
|
|
@@ -8982,42 +9079,42 @@ function wt(r, e, t) {
|
|
|
8982
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);
|
|
8983
9080
|
if (!d.isFunction(s))
|
|
8984
9081
|
throw new TypeError("visitor must be a function");
|
|
8985
|
-
function h(
|
|
8986
|
-
if (
|
|
8987
|
-
if (d.isDate(
|
|
8988
|
-
return
|
|
8989
|
-
if (d.isBoolean(
|
|
8990
|
-
return
|
|
8991
|
-
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))
|
|
8992
9089
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
8993
|
-
return d.isArrayBuffer(
|
|
9090
|
+
return d.isArrayBuffer(f) || d.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
8994
9091
|
}
|
|
8995
|
-
function c(
|
|
8996
|
-
let x =
|
|
8997
|
-
if (
|
|
9092
|
+
function c(f, v, m) {
|
|
9093
|
+
let x = f;
|
|
9094
|
+
if (f && !m && typeof f == "object") {
|
|
8998
9095
|
if (d.endsWith(v, "{}"))
|
|
8999
|
-
v = i ? v : v.slice(0, -2),
|
|
9000
|
-
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)))
|
|
9001
9098
|
return v = Wr(v), x.forEach(function(C, T) {
|
|
9002
9099
|
!(d.isUndefined(C) || C === null) && e.append(
|
|
9003
9100
|
// eslint-disable-next-line no-nested-ternary
|
|
9004
|
-
a === !0 ?
|
|
9101
|
+
a === !0 ? fr([v], T, o) : a === null ? v : v + "[]",
|
|
9005
9102
|
h(C)
|
|
9006
9103
|
);
|
|
9007
9104
|
}), !1;
|
|
9008
9105
|
}
|
|
9009
|
-
return Pt(
|
|
9106
|
+
return Pt(f) ? !0 : (e.append(fr(m, v, o), h(f)), !1);
|
|
9010
9107
|
}
|
|
9011
9108
|
const p = [], b = Object.assign(Io, {
|
|
9012
9109
|
defaultVisitor: c,
|
|
9013
9110
|
convertValue: h,
|
|
9014
9111
|
isVisitable: Pt
|
|
9015
9112
|
});
|
|
9016
|
-
function y(
|
|
9017
|
-
if (!d.isUndefined(
|
|
9018
|
-
if (p.indexOf(
|
|
9113
|
+
function y(f, v) {
|
|
9114
|
+
if (!d.isUndefined(f)) {
|
|
9115
|
+
if (p.indexOf(f) !== -1)
|
|
9019
9116
|
throw Error("Circular reference detected in " + v.join("."));
|
|
9020
|
-
p.push(
|
|
9117
|
+
p.push(f), d.forEach(f, function(x, _) {
|
|
9021
9118
|
(!(d.isUndefined(x) || x === null) && s.call(
|
|
9022
9119
|
e,
|
|
9023
9120
|
x,
|
|
@@ -9032,7 +9129,7 @@ function wt(r, e, t) {
|
|
|
9032
9129
|
throw new TypeError("data must be an object");
|
|
9033
9130
|
return y(r), e;
|
|
9034
9131
|
}
|
|
9035
|
-
function
|
|
9132
|
+
function gr(r) {
|
|
9036
9133
|
const e = {
|
|
9037
9134
|
"!": "%21",
|
|
9038
9135
|
"'": "%27",
|
|
@@ -9055,8 +9152,8 @@ Kr.append = function(e, t) {
|
|
|
9055
9152
|
};
|
|
9056
9153
|
Kr.toString = function(e) {
|
|
9057
9154
|
const t = e ? function(i) {
|
|
9058
|
-
return e.call(this, i,
|
|
9059
|
-
} :
|
|
9155
|
+
return e.call(this, i, gr);
|
|
9156
|
+
} : gr;
|
|
9060
9157
|
return this._pairs.map(function(s) {
|
|
9061
9158
|
return t(s[0]) + "=" + t(s[1]);
|
|
9062
9159
|
}, "").join("&");
|
|
@@ -9472,7 +9569,7 @@ d.reduceDescriptors(W.prototype, ({ value: r }, e) => {
|
|
|
9472
9569
|
};
|
|
9473
9570
|
});
|
|
9474
9571
|
d.freezeMethods(W);
|
|
9475
|
-
function
|
|
9572
|
+
function At(r, e) {
|
|
9476
9573
|
const t = this || et, i = e || t, s = W.from(i.headers);
|
|
9477
9574
|
let o = i.data;
|
|
9478
9575
|
return d.forEach(r, function(n) {
|
|
@@ -9689,9 +9786,9 @@ const rs = (r) => {
|
|
|
9689
9786
|
const s = rs(r);
|
|
9690
9787
|
let o = s.data;
|
|
9691
9788
|
const a = W.from(s.headers).normalize();
|
|
9692
|
-
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;
|
|
9693
9790
|
function v() {
|
|
9694
|
-
y && y(),
|
|
9791
|
+
y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
|
|
9695
9792
|
}
|
|
9696
9793
|
let m = new XMLHttpRequest();
|
|
9697
9794
|
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
@@ -9732,7 +9829,7 @@ const rs = (r) => {
|
|
|
9732
9829
|
)), m = null;
|
|
9733
9830
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && d.forEach(a.toJSON(), function(T, N) {
|
|
9734
9831
|
m.setRequestHeader(N, T);
|
|
9735
|
-
}), 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) => {
|
|
9736
9833
|
m && (i(!C || C.type ? new Me(null, r, m) : C), m.abort(), m = null);
|
|
9737
9834
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
9738
9835
|
const _ = ra(s.url);
|
|
@@ -9775,9 +9872,9 @@ const rs = (r) => {
|
|
|
9775
9872
|
for (; i < t; )
|
|
9776
9873
|
s = i + e, yield r.slice(i, s), i = s;
|
|
9777
9874
|
}, ua = async function* (r, e) {
|
|
9778
|
-
for await (const t of
|
|
9875
|
+
for await (const t of fa(r))
|
|
9779
9876
|
yield* pa(t, e);
|
|
9780
|
-
},
|
|
9877
|
+
}, fa = async function* (r) {
|
|
9781
9878
|
if (r[Symbol.asyncIterator]) {
|
|
9782
9879
|
yield* r;
|
|
9783
9880
|
return;
|
|
@@ -9822,7 +9919,7 @@ const rs = (r) => {
|
|
|
9822
9919
|
}, {
|
|
9823
9920
|
highWaterMark: 2
|
|
9824
9921
|
});
|
|
9825
|
-
}, $r = 64 * 1024, { isFunction: ot } = d,
|
|
9922
|
+
}, $r = 64 * 1024, { isFunction: ot } = d, ga = (({ Request: r, Response: e }) => ({
|
|
9826
9923
|
Request: r,
|
|
9827
9924
|
Response: e
|
|
9828
9925
|
}))(d.global), {
|
|
@@ -9837,50 +9934,50 @@ const rs = (r) => {
|
|
|
9837
9934
|
}, ma = (r) => {
|
|
9838
9935
|
r = d.merge.call({
|
|
9839
9936
|
skipUndefined: !0
|
|
9840
|
-
},
|
|
9937
|
+
}, ga, r);
|
|
9841
9938
|
const { fetch: e, Request: t, Response: i } = r, s = e ? ot(e) : typeof fetch == "function", o = ot(t), a = ot(i);
|
|
9842
9939
|
if (!s)
|
|
9843
9940
|
return !1;
|
|
9844
|
-
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((
|
|
9845
|
-
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;
|
|
9846
9943
|
const v = new t(F.origin, {
|
|
9847
9944
|
body: new kr(),
|
|
9848
9945
|
method: "POST",
|
|
9849
9946
|
get duplex() {
|
|
9850
|
-
return
|
|
9947
|
+
return f = !0, "half";
|
|
9851
9948
|
}
|
|
9852
9949
|
}).headers.has("Content-Type");
|
|
9853
|
-
return
|
|
9950
|
+
return f && !v;
|
|
9854
9951
|
}), c = a && n && _r(() => d.isReadableStream(new i("").body)), p = {
|
|
9855
|
-
stream: c && ((
|
|
9952
|
+
stream: c && ((f) => f.body)
|
|
9856
9953
|
};
|
|
9857
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9858
|
-
!p[
|
|
9859
|
-
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];
|
|
9860
9957
|
if (x)
|
|
9861
9958
|
return x.call(v);
|
|
9862
|
-
throw new $(`Response type '${
|
|
9959
|
+
throw new $(`Response type '${f}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
9863
9960
|
});
|
|
9864
9961
|
});
|
|
9865
|
-
const b = async (
|
|
9866
|
-
if (
|
|
9962
|
+
const b = async (f) => {
|
|
9963
|
+
if (f == null)
|
|
9867
9964
|
return 0;
|
|
9868
|
-
if (d.isBlob(
|
|
9869
|
-
return
|
|
9870
|
-
if (d.isSpecCompliantForm(
|
|
9965
|
+
if (d.isBlob(f))
|
|
9966
|
+
return f.size;
|
|
9967
|
+
if (d.isSpecCompliantForm(f))
|
|
9871
9968
|
return (await new t(F.origin, {
|
|
9872
9969
|
method: "POST",
|
|
9873
|
-
body:
|
|
9970
|
+
body: f
|
|
9874
9971
|
}).arrayBuffer()).byteLength;
|
|
9875
|
-
if (d.isArrayBufferView(
|
|
9876
|
-
return
|
|
9877
|
-
if (d.isURLSearchParams(
|
|
9878
|
-
return (await l(
|
|
9879
|
-
}, y = async (
|
|
9880
|
-
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());
|
|
9881
9978
|
return m ?? b(v);
|
|
9882
9979
|
};
|
|
9883
|
-
return async (
|
|
9980
|
+
return async (f) => {
|
|
9884
9981
|
let {
|
|
9885
9982
|
url: v,
|
|
9886
9983
|
method: m,
|
|
@@ -9894,10 +9991,10 @@ const rs = (r) => {
|
|
|
9894
9991
|
headers: $t,
|
|
9895
9992
|
withCredentials: tt = "same-origin",
|
|
9896
9993
|
fetchOptions: Wt
|
|
9897
|
-
} = rs(
|
|
9994
|
+
} = rs(f), Kt = e || fetch;
|
|
9898
9995
|
X = X ? (X + "").toLowerCase() : "text";
|
|
9899
9996
|
let rt = ha([_, C && C.toAbortSignal()], T), Ie = null;
|
|
9900
|
-
const
|
|
9997
|
+
const fe = rt && rt.unsubscribe && (() => {
|
|
9901
9998
|
rt.unsubscribe();
|
|
9902
9999
|
});
|
|
9903
10000
|
let Xt;
|
|
@@ -9929,7 +10026,7 @@ const rs = (r) => {
|
|
|
9929
10026
|
Ie = o && new t(v, Jt);
|
|
9930
10027
|
let ce = await (o ? Kt(Ie, Wt) : Kt(v, Jt));
|
|
9931
10028
|
const Gt = c && (X === "stream" || X === "response");
|
|
9932
|
-
if (c && (N || Gt &&
|
|
10029
|
+
if (c && (N || Gt && fe)) {
|
|
9933
10030
|
const de = {};
|
|
9934
10031
|
["status", "statusText", "headers"].forEach((Qt) => {
|
|
9935
10032
|
de[Qt] = ce[Qt];
|
|
@@ -9940,30 +10037,30 @@ const rs = (r) => {
|
|
|
9940
10037
|
) || [];
|
|
9941
10038
|
ce = new i(
|
|
9942
10039
|
xr(ce.body, $r, kt, () => {
|
|
9943
|
-
st && st(),
|
|
10040
|
+
st && st(), fe && fe();
|
|
9944
10041
|
}),
|
|
9945
10042
|
de
|
|
9946
10043
|
);
|
|
9947
10044
|
}
|
|
9948
10045
|
X = X || "text";
|
|
9949
|
-
let ns = await p[d.findKey(p, X) || "text"](ce,
|
|
9950
|
-
return !Gt &&
|
|
10046
|
+
let ns = await p[d.findKey(p, X) || "text"](ce, f);
|
|
10047
|
+
return !Gt && fe && fe(), await new Promise((de, ke) => {
|
|
9951
10048
|
es(de, ke, {
|
|
9952
10049
|
data: ns,
|
|
9953
10050
|
headers: W.from(ce.headers),
|
|
9954
10051
|
status: ce.status,
|
|
9955
10052
|
statusText: ce.statusText,
|
|
9956
|
-
config:
|
|
10053
|
+
config: f,
|
|
9957
10054
|
request: Ie
|
|
9958
10055
|
});
|
|
9959
10056
|
});
|
|
9960
10057
|
} catch (re) {
|
|
9961
|
-
throw
|
|
9962
|
-
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),
|
|
9963
10060
|
{
|
|
9964
10061
|
cause: re.cause || re
|
|
9965
10062
|
}
|
|
9966
|
-
) : $.from(re, re && re.code,
|
|
10063
|
+
) : $.from(re, re && re.code, f, Ie);
|
|
9967
10064
|
}
|
|
9968
10065
|
};
|
|
9969
10066
|
}, ba = /* @__PURE__ */ new Map(), ss = (r) => {
|
|
@@ -10036,22 +10133,22 @@ const is = {
|
|
|
10036
10133
|
*/
|
|
10037
10134
|
adapters: Zt
|
|
10038
10135
|
};
|
|
10039
|
-
function
|
|
10136
|
+
function Et(r) {
|
|
10040
10137
|
if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
|
|
10041
10138
|
throw new Me(null, r);
|
|
10042
10139
|
}
|
|
10043
|
-
function
|
|
10044
|
-
return
|
|
10140
|
+
function Ar(r) {
|
|
10141
|
+
return Et(r), r.headers = W.from(r.headers), r.data = At.call(
|
|
10045
10142
|
r,
|
|
10046
10143
|
r.transformRequest
|
|
10047
10144
|
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), is.getAdapter(r.adapter || et.adapter, r)(r).then(function(i) {
|
|
10048
|
-
return
|
|
10145
|
+
return Et(r), i.data = At.call(
|
|
10049
10146
|
r,
|
|
10050
10147
|
r.transformResponse,
|
|
10051
10148
|
i
|
|
10052
10149
|
), i.headers = W.from(i.headers), i;
|
|
10053
10150
|
}, function(i) {
|
|
10054
|
-
return Qr(i) || (
|
|
10151
|
+
return Qr(i) || (Et(r), i && i.response && (i.response.data = At.call(
|
|
10055
10152
|
r,
|
|
10056
10153
|
r.transformResponse,
|
|
10057
10154
|
i.response
|
|
@@ -10064,7 +10161,7 @@ const os = "1.13.2", xt = {};
|
|
|
10064
10161
|
return typeof i === r || "a" + (e < 1 ? "n " : " ") + r;
|
|
10065
10162
|
};
|
|
10066
10163
|
});
|
|
10067
|
-
const
|
|
10164
|
+
const Er = {};
|
|
10068
10165
|
xt.transitional = function(e, t, i) {
|
|
10069
10166
|
function s(o, a) {
|
|
10070
10167
|
return "[Axios v" + os + "] Transitional option '" + o + "'" + a + (i ? ". " + i : "");
|
|
@@ -10075,7 +10172,7 @@ xt.transitional = function(e, t, i) {
|
|
|
10075
10172
|
s(a, " has been removed" + (t ? " in " + t : "")),
|
|
10076
10173
|
$.ERR_DEPRECATED
|
|
10077
10174
|
);
|
|
10078
|
-
return t && !
|
|
10175
|
+
return t && !Er[a] && (Er[a] = !0), e ? e(o, a, n) : !0;
|
|
10079
10176
|
};
|
|
10080
10177
|
};
|
|
10081
10178
|
xt.spelling = function(e) {
|
|
@@ -10156,8 +10253,8 @@ class ye {
|
|
|
10156
10253
|
);
|
|
10157
10254
|
o && d.forEach(
|
|
10158
10255
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
10159
|
-
(
|
|
10160
|
-
delete o[
|
|
10256
|
+
(f) => {
|
|
10257
|
+
delete o[f];
|
|
10161
10258
|
}
|
|
10162
10259
|
), t.headers = W.concat(a, o);
|
|
10163
10260
|
const n = [];
|
|
@@ -10171,26 +10268,26 @@ class ye {
|
|
|
10171
10268
|
});
|
|
10172
10269
|
let c, p = 0, b;
|
|
10173
10270
|
if (!l) {
|
|
10174
|
-
const
|
|
10175
|
-
for (
|
|
10176
|
-
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++]);
|
|
10177
10274
|
return c;
|
|
10178
10275
|
}
|
|
10179
10276
|
b = n.length;
|
|
10180
10277
|
let y = t;
|
|
10181
10278
|
for (; p < b; ) {
|
|
10182
|
-
const
|
|
10279
|
+
const f = n[p++], v = n[p++];
|
|
10183
10280
|
try {
|
|
10184
|
-
y =
|
|
10281
|
+
y = f(y);
|
|
10185
10282
|
} catch (m) {
|
|
10186
10283
|
v.call(this, m);
|
|
10187
10284
|
break;
|
|
10188
10285
|
}
|
|
10189
10286
|
}
|
|
10190
10287
|
try {
|
|
10191
|
-
c =
|
|
10192
|
-
} catch (
|
|
10193
|
-
return Promise.reject(
|
|
10288
|
+
c = Ar.call(this, y);
|
|
10289
|
+
} catch (f) {
|
|
10290
|
+
return Promise.reject(f);
|
|
10194
10291
|
}
|
|
10195
10292
|
for (p = 0, b = h.length; p < b; )
|
|
10196
10293
|
c = c.then(h[p++], h[p++]);
|
|
@@ -10413,7 +10510,7 @@ class Tr extends Error {
|
|
|
10413
10510
|
super(e), this.name = "AuthRefreshError";
|
|
10414
10511
|
}
|
|
10415
10512
|
}
|
|
10416
|
-
const
|
|
10513
|
+
const Aa = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
10417
10514
|
const t = O.create({
|
|
10418
10515
|
baseURL: r,
|
|
10419
10516
|
headers: {
|
|
@@ -10515,14 +10612,14 @@ const Ea = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
|
10515
10612
|
}
|
|
10516
10613
|
), t;
|
|
10517
10614
|
};
|
|
10518
|
-
function
|
|
10519
|
-
Vs(), Ys(), Ks(), Js(), ti(), si(),
|
|
10615
|
+
function Ea() {
|
|
10616
|
+
Vs(), Ys(), Ks(), Js(), ti(), si(), Ei(), Di(), Oi(), zi(), Ii(), Bi(), Ui(), Fi(), Qs(), Lr(), Vi(), Yi();
|
|
10520
10617
|
}
|
|
10521
10618
|
export {
|
|
10522
|
-
|
|
10619
|
+
A as AuthForm,
|
|
10523
10620
|
Tr as AuthRefreshError,
|
|
10524
10621
|
pe as BaseButton,
|
|
10525
|
-
|
|
10622
|
+
Ee as BaseCard,
|
|
10526
10623
|
D as BaseDatePicker,
|
|
10527
10624
|
q as BaseDateTimePicker,
|
|
10528
10625
|
j as BaseDrawer,
|
|
@@ -10538,15 +10635,15 @@ export {
|
|
|
10538
10635
|
Pe as BaseToast,
|
|
10539
10636
|
Oe as QuantitySelect,
|
|
10540
10637
|
Re as ThemeToggle,
|
|
10541
|
-
|
|
10542
|
-
|
|
10638
|
+
Aa as createApiClient,
|
|
10639
|
+
Ea as registerAll,
|
|
10543
10640
|
Vs as registerAuthForm,
|
|
10544
10641
|
Ys as registerBaseButton,
|
|
10545
10642
|
Ks as registerBaseCard,
|
|
10546
10643
|
Js as registerBaseDatePicker,
|
|
10547
10644
|
ti as registerBaseDateTimePicker,
|
|
10548
10645
|
si as registerBaseDrawer,
|
|
10549
|
-
|
|
10646
|
+
Ei as registerBaseIcon,
|
|
10550
10647
|
Di as registerBaseInput,
|
|
10551
10648
|
Oi as registerBaseList,
|
|
10552
10649
|
zi as registerBaseListItem,
|