@cal.macconnachie/web-components 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/index.js +515 -500
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -249,7 +249,7 @@ let Se = class extends HTMLElement {
|
|
|
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, Or = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + he, vs = `<${Pr}>`, 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
251
|
\f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, fe = 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 }),
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), f = ws(1), ne = 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;
|
|
@@ -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(Or)) {
|
|
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), g = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
l.push({ type: 1, index: o, name: g[2], strings: y, ctor: g[1] === "." ? ks : g[1] === "?" ? Ss : g[1] === "@" ? _s : gt }), 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;
|
|
@@ -304,7 +304,7 @@ class je {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
function _e(r, e, t = r, i) {
|
|
307
|
-
if (e ===
|
|
307
|
+
if (e === ne) return e;
|
|
308
308
|
let s = i !== void 0 ? t._$Co?.[i] : t._$Cl;
|
|
309
309
|
const o = He(e) ? void 0 : e._$litDirective$;
|
|
310
310
|
return s?.constructor !== o && (s?._$AO?.(!1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = s : t._$Cl = s), s !== void 0 && (e = _e(r, s._$AS(r, e.values), s, i)), e;
|
|
@@ -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 Ce(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new As(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 Ce {
|
|
341
341
|
get _$AU() {
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
@@ -356,7 +356,7 @@ class Ae {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, t = this) {
|
|
359
|
-
e = _e(this, e, t), He(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !==
|
|
359
|
+
e = _e(this, e, t), He(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== ne && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ys(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -383,7 +383,7 @@ class Ae {
|
|
|
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 Ce(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) {
|
|
@@ -409,11 +409,11 @@ class gt {
|
|
|
409
409
|
_$AI(e, t = this, i, s) {
|
|
410
410
|
const o = this.strings;
|
|
411
411
|
let a = !1;
|
|
412
|
-
if (o === void 0) e = _e(this, e, t, 0), a = !He(e) || e !== this._$AH && e !==
|
|
412
|
+
if (o === void 0) e = _e(this, e, t, 0), a = !He(e) || e !== this._$AH && e !== ne, a && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const n = e;
|
|
415
415
|
let l, h;
|
|
416
|
-
for (e = o[0], l = 0; l < o.length - 1; l++) h = _e(this, n[i + l], t, l), h ===
|
|
416
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) h = _e(this, n[i + l], t, l), h === ne && (h = this._$AH[l]), a ||= !He(h) || h !== this._$AH[l], h === k ? e = k : e !== k && (e += (h ?? "") + o[l + 1]), this._$AH[l] = h;
|
|
417
417
|
}
|
|
418
418
|
a && !s && this.j(e);
|
|
419
419
|
}
|
|
@@ -442,7 +442,7 @@ class _s extends gt {
|
|
|
442
442
|
super(e, t, i, s, o), this.type = 5;
|
|
443
443
|
}
|
|
444
444
|
_$AI(e, t = this) {
|
|
445
|
-
if ((e = _e(this, e, t, 0) ?? k) ===
|
|
445
|
+
if ((e = _e(this, e, t, 0) ?? k) === ne) return;
|
|
446
446
|
const i = this._$AH, s = e === k && i !== k || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, o = e !== k && (i === k || s);
|
|
447
447
|
s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
448
448
|
}
|
|
@@ -450,7 +450,7 @@ class _s extends gt {
|
|
|
450
450
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class As {
|
|
454
454
|
constructor(e, t, i) {
|
|
455
455
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
456
456
|
}
|
|
@@ -461,14 +461,14 @@ class Cs {
|
|
|
461
461
|
_e(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
465
|
-
Es?.(je,
|
|
464
|
+
const Cs = { I: Ce }, Es = Lt.litHtmlPolyfillSupport;
|
|
465
|
+
Es?.(je, Ce), (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 Ce(e.insertBefore(Fe(), o), o, void 0, t ?? {});
|
|
472
472
|
}
|
|
473
473
|
return s._$AI(r), s;
|
|
474
474
|
};
|
|
@@ -492,7 +492,7 @@ let qe = class extends Se {
|
|
|
492
492
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
493
493
|
}
|
|
494
494
|
render() {
|
|
495
|
-
return
|
|
495
|
+
return ne;
|
|
496
496
|
}
|
|
497
497
|
};
|
|
498
498
|
qe._$litElement$ = !0, qe.finalized = !0, Nt.litElementHydrateSupport?.({ LitElement: qe });
|
|
@@ -555,7 +555,7 @@ class Ft {
|
|
|
555
555
|
return this.render(...t);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const { I: zs } =
|
|
558
|
+
const { I: zs } = Cs, 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, g = o.length - 1;
|
|
605
|
+
for (; p <= b && y <= g; ) 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[g]) l[g] = me(s[b], o[g]), b--, g--;
|
|
609
|
+
else if (n[p] === a[g]) l[g] = me(s[p], o[g]), Be(r, l[g + 1], s[p]), p++, g--;
|
|
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, g), 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,15 +617,15 @@ 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 <= g; ) {
|
|
621
|
+
const v = Be(r, l[g + 1]);
|
|
622
622
|
me(v, o[y]), l[y++] = v;
|
|
623
623
|
}
|
|
624
624
|
for (; p <= b; ) {
|
|
625
625
|
const v = s[p++];
|
|
626
626
|
v !== null && _t(v);
|
|
627
627
|
}
|
|
628
|
-
return this.ut = a, Is(r, l),
|
|
628
|
+
return this.ut = a, Is(r, l), ne;
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
var Bs = Object.defineProperty, Mr = (r, e, t, i) => {
|
|
@@ -689,7 +689,7 @@ const R = ({
|
|
|
689
689
|
password: p,
|
|
690
690
|
accessToken: b,
|
|
691
691
|
refreshToken: y,
|
|
692
|
-
idToken:
|
|
692
|
+
idToken: g
|
|
693
693
|
}) => {
|
|
694
694
|
const v = await fetch(`${r}${e.login}`, {
|
|
695
695
|
method: "POST",
|
|
@@ -702,7 +702,7 @@ const R = ({
|
|
|
702
702
|
password: p,
|
|
703
703
|
accessToken: b,
|
|
704
704
|
refreshToken: y,
|
|
705
|
-
idToken:
|
|
705
|
+
idToken: g
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
if (!v.ok) {
|
|
@@ -775,7 +775,7 @@ const R = ({
|
|
|
775
775
|
password: p,
|
|
776
776
|
phone_number: b,
|
|
777
777
|
family_name: y,
|
|
778
|
-
given_name:
|
|
778
|
+
given_name: g,
|
|
779
779
|
code: v
|
|
780
780
|
}) => {
|
|
781
781
|
const m = await fetch(`${r}${e.register}`, {
|
|
@@ -789,7 +789,7 @@ const R = ({
|
|
|
789
789
|
password: p,
|
|
790
790
|
phone_number: b,
|
|
791
791
|
family_name: y,
|
|
792
|
-
given_name:
|
|
792
|
+
given_name: g,
|
|
793
793
|
code: v
|
|
794
794
|
})
|
|
795
795
|
});
|
|
@@ -834,8 +834,8 @@ const R = ({
|
|
|
834
834
|
})
|
|
835
835
|
});
|
|
836
836
|
if (!y.ok) {
|
|
837
|
-
const
|
|
838
|
-
throw new Error(
|
|
837
|
+
const g = await y.json();
|
|
838
|
+
throw new Error(g.message || g.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -856,10 +856,10 @@ const R = ({
|
|
|
856
856
|
clientId: i,
|
|
857
857
|
redirectUri: qs(s)
|
|
858
858
|
}, a = (x) => {
|
|
859
|
-
const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",
|
|
860
|
-
return crypto.getRandomValues(
|
|
859
|
+
const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", A = new Uint8Array(x);
|
|
860
|
+
return crypto.getRandomValues(A), Array.from(A).map((T) => _[T % _.length]).join("");
|
|
861
861
|
}, n = async (x) => {
|
|
862
|
-
const
|
|
862
|
+
const A = new TextEncoder().encode(x), T = await crypto.subtle.digest("SHA-256", A);
|
|
863
863
|
return btoa(String.fromCharCode(...new Uint8Array(T))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
864
864
|
}, l = async () => {
|
|
865
865
|
const x = a(128), _ = await n(x);
|
|
@@ -868,7 +868,7 @@ const R = ({
|
|
|
868
868
|
const x = a(32);
|
|
869
869
|
return sessionStorage.setItem("oauth_state", x), x;
|
|
870
870
|
}, c = async () => {
|
|
871
|
-
const { codeChallenge: x } = await l(), _ = h(),
|
|
871
|
+
const { codeChallenge: x } = await l(), _ = h(), A = new URLSearchParams({
|
|
872
872
|
response_type: "code",
|
|
873
873
|
client_id: o.clientId,
|
|
874
874
|
redirect_uri: o.redirectUri,
|
|
@@ -879,12 +879,12 @@ const R = ({
|
|
|
879
879
|
code_challenge: x,
|
|
880
880
|
prompt: "select_account"
|
|
881
881
|
});
|
|
882
|
-
return `${o.domain}/oauth2/authorize?${
|
|
882
|
+
return `${o.domain}/oauth2/authorize?${A.toString()}`;
|
|
883
883
|
}, p = async () => {
|
|
884
884
|
const x = await c();
|
|
885
885
|
window.location.href = x;
|
|
886
886
|
}, b = async () => {
|
|
887
|
-
const { codeChallenge: x } = await l(), _ = h(),
|
|
887
|
+
const { codeChallenge: x } = await l(), _ = h(), A = new URLSearchParams({
|
|
888
888
|
response_type: "code",
|
|
889
889
|
client_id: o.clientId,
|
|
890
890
|
redirect_uri: o.redirectUri,
|
|
@@ -894,11 +894,11 @@ const R = ({
|
|
|
894
894
|
code_challenge_method: "S256",
|
|
895
895
|
code_challenge: x
|
|
896
896
|
});
|
|
897
|
-
return `${o.domain}/oauth2/authorize?${
|
|
897
|
+
return `${o.domain}/oauth2/authorize?${A.toString()}`;
|
|
898
898
|
}, y = async () => {
|
|
899
899
|
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
901
|
-
},
|
|
901
|
+
}, g = (x) => {
|
|
902
902
|
const _ = sessionStorage.getItem("oauth_state");
|
|
903
903
|
return sessionStorage.removeItem("oauth_state"), _ === x;
|
|
904
904
|
}, v = () => {
|
|
@@ -908,13 +908,13 @@ const R = ({
|
|
|
908
908
|
return {
|
|
909
909
|
redirectToGoogleAuth: p,
|
|
910
910
|
redirectToAppleAuth: y,
|
|
911
|
-
validateState:
|
|
911
|
+
validateState: g,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
914
|
const _ = v();
|
|
915
915
|
if (!_)
|
|
916
916
|
throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
|
|
917
|
-
const
|
|
917
|
+
const A = new URLSearchParams({
|
|
918
918
|
grant_type: "authorization_code",
|
|
919
919
|
client_id: o.clientId,
|
|
920
920
|
code: x,
|
|
@@ -925,7 +925,7 @@ const R = ({
|
|
|
925
925
|
headers: {
|
|
926
926
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
927
927
|
},
|
|
928
|
-
body:
|
|
928
|
+
body: A.toString()
|
|
929
929
|
});
|
|
930
930
|
if (!T.ok) {
|
|
931
931
|
const N = await T.text();
|
|
@@ -952,9 +952,9 @@ const js = [
|
|
|
952
952
|
"expires_in"
|
|
953
953
|
], Vs = () => R({
|
|
954
954
|
name: "auth-form",
|
|
955
|
-
element:
|
|
955
|
+
element: C
|
|
956
956
|
});
|
|
957
|
-
class
|
|
957
|
+
class C extends M {
|
|
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 A extends M {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
render() {
|
|
1365
|
-
return this.isLoading && this.hasHandledOAuthCallback ?
|
|
1366
|
-
${this.logoUrl.length > 0 ?
|
|
1365
|
+
return this.isLoading && this.hasHandledOAuthCallback ? f`
|
|
1366
|
+
${this.logoUrl.length > 0 ? f`
|
|
1367
1367
|
<header class="modal-header">
|
|
1368
1368
|
<div class="auth-header">
|
|
1369
1369
|
<img
|
|
@@ -1393,9 +1393,9 @@ class A extends M {
|
|
|
1393
1393
|
${this.renderAlerts()}
|
|
1394
1394
|
</div>
|
|
1395
1395
|
</div>
|
|
1396
|
-
` : this.isLoggedIn ?
|
|
1396
|
+
` : this.isLoggedIn ? f`
|
|
1397
1397
|
<!-- Header -->
|
|
1398
|
-
${this.logoUrl.length > 0 ?
|
|
1398
|
+
${this.logoUrl.length > 0 ? f`
|
|
1399
1399
|
<header class="modal-header">
|
|
1400
1400
|
<div class="auth-header">
|
|
1401
1401
|
<img
|
|
@@ -1425,9 +1425,9 @@ class A extends M {
|
|
|
1425
1425
|
${this.renderAlerts()}
|
|
1426
1426
|
</div>
|
|
1427
1427
|
</div>
|
|
1428
|
-
` :
|
|
1428
|
+
` : f`
|
|
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" ? f`
|
|
1431
1431
|
<header class="modal-header">
|
|
1432
1432
|
|
|
1433
1433
|
<div class="auth-header">
|
|
@@ -1461,7 +1461,7 @@ class A extends M {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
renderFormContent() {
|
|
1463
1463
|
if (this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form"))
|
|
1464
|
-
return
|
|
1464
|
+
return f`
|
|
1465
1465
|
<!-- Email -->
|
|
1466
1466
|
<base-input
|
|
1467
1467
|
id="email-input"
|
|
@@ -1487,7 +1487,7 @@ class A extends M {
|
|
|
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 ? f`
|
|
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 M {
|
|
|
1495
1495
|
</div>
|
|
1496
1496
|
` : k}
|
|
1497
1497
|
|
|
1498
|
-
${this.mode === "signup" ?
|
|
1498
|
+
${this.mode === "signup" ? f`
|
|
1499
1499
|
<!-- Confirm Password -->
|
|
1500
1500
|
<base-input
|
|
1501
1501
|
type="password"
|
|
@@ -1534,14 +1534,14 @@ class A extends M {
|
|
|
1534
1534
|
` : k}
|
|
1535
1535
|
`;
|
|
1536
1536
|
if (this.mode === "signup" && this.signupStep === "otp")
|
|
1537
|
-
return
|
|
1537
|
+
return f`
|
|
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) => f`
|
|
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 M {
|
|
|
1558
1558
|
`
|
|
1559
1559
|
)}
|
|
1560
1560
|
</div>
|
|
1561
|
-
${this.errors.signup_otp ?
|
|
1561
|
+
${this.errors.signup_otp ? f`<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 M {
|
|
|
1567
1567
|
</div>
|
|
1568
1568
|
`;
|
|
1569
1569
|
if (this.resetStep === "request")
|
|
1570
|
-
return
|
|
1570
|
+
return f`
|
|
1571
1571
|
<base-input
|
|
1572
1572
|
id="email-input"
|
|
1573
1573
|
type="email"
|
|
@@ -1587,7 +1587,7 @@ class A extends M {
|
|
|
1587
1587
|
`;
|
|
1588
1588
|
if (this.resetStep === "confirm") {
|
|
1589
1589
|
const e = this.otpDigits.every((t) => /^\d$/.test(t));
|
|
1590
|
-
return
|
|
1590
|
+
return f`
|
|
1591
1591
|
<base-input
|
|
1592
1592
|
type="email"
|
|
1593
1593
|
label="Email Address"
|
|
@@ -1605,7 +1605,7 @@ class A extends M {
|
|
|
1605
1605
|
${pr(
|
|
1606
1606
|
Array.from({ length: 6 }, (t, i) => i),
|
|
1607
1607
|
(t) => t,
|
|
1608
|
-
(t) =>
|
|
1608
|
+
(t) => f`
|
|
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 M {
|
|
|
1622
1622
|
`
|
|
1623
1623
|
)}
|
|
1624
1624
|
</div>
|
|
1625
|
-
${this.errors.otp ?
|
|
1625
|
+
${this.errors.otp ? f`<p class="otp-error">${this.errors.otp}</p>` : k}
|
|
1626
1626
|
</div>
|
|
1627
1627
|
|
|
1628
|
-
${e ?
|
|
1628
|
+
${e ? f`
|
|
1629
1629
|
<div class="new-password-fields">
|
|
1630
1630
|
<base-input
|
|
1631
1631
|
type="password"
|
|
@@ -1662,7 +1662,7 @@ class A extends M {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
renderActions() {
|
|
1664
1664
|
if (this.resetStep === "request")
|
|
1665
|
-
return
|
|
1665
|
+
return f`
|
|
1666
1666
|
<base-button
|
|
1667
1667
|
type="submit"
|
|
1668
1668
|
variant="primary"
|
|
@@ -1675,7 +1675,7 @@ class A extends M {
|
|
|
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)) ? f`
|
|
1679
1679
|
<base-button
|
|
1680
1680
|
type="submit"
|
|
1681
1681
|
variant="primary"
|
|
@@ -1689,7 +1689,7 @@ class A extends M {
|
|
|
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 f`
|
|
1693
1693
|
<base-button
|
|
1694
1694
|
type="submit"
|
|
1695
1695
|
variant="primary"
|
|
@@ -1702,7 +1702,7 @@ class A extends M {
|
|
|
1702
1702
|
</base-button>
|
|
1703
1703
|
`;
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1705
|
+
return f`
|
|
1706
1706
|
<base-button
|
|
1707
1707
|
type="submit"
|
|
1708
1708
|
variant="primary"
|
|
@@ -1714,7 +1714,7 @@ class A extends M {
|
|
|
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" ? f`
|
|
1718
1718
|
<div class="button-row">
|
|
1719
1719
|
<button
|
|
1720
1720
|
type="button"
|
|
@@ -1738,8 +1738,8 @@ class A extends M {
|
|
|
1738
1738
|
`;
|
|
1739
1739
|
}
|
|
1740
1740
|
renderAlerts() {
|
|
1741
|
-
return
|
|
1742
|
-
${this.notice ?
|
|
1741
|
+
return f`
|
|
1742
|
+
${this.notice ? f`
|
|
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 M {
|
|
|
1747
1747
|
</button>
|
|
1748
1748
|
</div>
|
|
1749
1749
|
` : k}
|
|
1750
|
-
${this.error && !this.isLoading ?
|
|
1750
|
+
${this.error && !this.isLoading ? f`
|
|
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 M {
|
|
|
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 : f`
|
|
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 M {
|
|
|
1767
1767
|
${this.mode === "signup" ? "Sign In" : "Sign Up"}
|
|
1768
1768
|
</button>
|
|
1769
1769
|
</div>
|
|
1770
|
-
` :
|
|
1770
|
+
` : f`
|
|
1771
1771
|
<div class="auth-footer">
|
|
1772
1772
|
<p class="toggle-text">
|
|
1773
1773
|
Having trouble? Email
|
|
@@ -1777,7 +1777,7 @@ class A extends M {
|
|
|
1777
1777
|
`;
|
|
1778
1778
|
}
|
|
1779
1779
|
renderGoogleIcon() {
|
|
1780
|
-
return
|
|
1780
|
+
return f`
|
|
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 M {
|
|
|
1787
1787
|
`;
|
|
1788
1788
|
}
|
|
1789
1789
|
renderAppleIcon() {
|
|
1790
|
-
return
|
|
1790
|
+
return f`
|
|
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>
|
|
@@ -2072,88 +2072,88 @@ class A extends M {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
E([
|
|
2074
2074
|
u({ type: String, attribute: "initial-mode" })
|
|
2075
|
-
],
|
|
2075
|
+
], C.prototype, "initialMode");
|
|
2076
2076
|
E([
|
|
2077
2077
|
u({ type: String, attribute: "logo-url" })
|
|
2078
|
-
],
|
|
2078
|
+
], C.prototype, "logoUrl");
|
|
2079
2079
|
E([
|
|
2080
2080
|
u({ type: String, attribute: "oauth-domain" })
|
|
2081
|
-
],
|
|
2081
|
+
], C.prototype, "oauthDomain");
|
|
2082
2082
|
E([
|
|
2083
2083
|
u({ type: String, attribute: "oauth-region" })
|
|
2084
|
-
],
|
|
2084
|
+
], C.prototype, "oauthRegion");
|
|
2085
2085
|
E([
|
|
2086
2086
|
u({ type: String, attribute: "oauth-user-pool-id" })
|
|
2087
|
-
],
|
|
2087
|
+
], C.prototype, "oauthUserPoolId");
|
|
2088
2088
|
E([
|
|
2089
2089
|
u({ type: String, attribute: "oauth-client-id" })
|
|
2090
|
-
],
|
|
2090
|
+
], C.prototype, "oauthClientId");
|
|
2091
2091
|
E([
|
|
2092
2092
|
u({ type: String, attribute: "oauth-redirect-uri" })
|
|
2093
|
-
],
|
|
2093
|
+
], C.prototype, "oauthRedirectUri");
|
|
2094
2094
|
E([
|
|
2095
2095
|
u({ type: String, attribute: "oauth-spa-domain" })
|
|
2096
|
-
],
|
|
2096
|
+
], C.prototype, "oauthSpaDomain");
|
|
2097
2097
|
E([
|
|
2098
2098
|
u({ type: Boolean, attribute: "disable-signup" })
|
|
2099
|
-
],
|
|
2099
|
+
], C.prototype, "disableSignup");
|
|
2100
2100
|
E([
|
|
2101
2101
|
u({ type: Boolean, attribute: "mock-mode" })
|
|
2102
|
-
],
|
|
2102
|
+
], C.prototype, "mockMode");
|
|
2103
2103
|
E([
|
|
2104
2104
|
w()
|
|
2105
|
-
],
|
|
2105
|
+
], C.prototype, "mode");
|
|
2106
2106
|
E([
|
|
2107
2107
|
w()
|
|
2108
|
-
],
|
|
2108
|
+
], C.prototype, "resetStep");
|
|
2109
2109
|
E([
|
|
2110
2110
|
w()
|
|
2111
|
-
],
|
|
2111
|
+
], C.prototype, "signupStep");
|
|
2112
2112
|
E([
|
|
2113
2113
|
w()
|
|
2114
|
-
],
|
|
2114
|
+
], C.prototype, "isLoading");
|
|
2115
2115
|
E([
|
|
2116
2116
|
w()
|
|
2117
|
-
],
|
|
2117
|
+
], C.prototype, "isLoggedIn");
|
|
2118
2118
|
E([
|
|
2119
2119
|
w()
|
|
2120
|
-
],
|
|
2120
|
+
], C.prototype, "email");
|
|
2121
2121
|
E([
|
|
2122
2122
|
w()
|
|
2123
|
-
],
|
|
2123
|
+
], C.prototype, "password");
|
|
2124
2124
|
E([
|
|
2125
2125
|
w()
|
|
2126
|
-
],
|
|
2126
|
+
], C.prototype, "givenName");
|
|
2127
2127
|
E([
|
|
2128
2128
|
w()
|
|
2129
|
-
],
|
|
2129
|
+
], C.prototype, "familyName");
|
|
2130
2130
|
E([
|
|
2131
2131
|
w()
|
|
2132
|
-
],
|
|
2132
|
+
], C.prototype, "newPassword");
|
|
2133
2133
|
E([
|
|
2134
2134
|
w()
|
|
2135
|
-
],
|
|
2135
|
+
], C.prototype, "confirmPassword");
|
|
2136
2136
|
E([
|
|
2137
2137
|
w()
|
|
2138
|
-
],
|
|
2138
|
+
], C.prototype, "notice");
|
|
2139
2139
|
E([
|
|
2140
2140
|
w()
|
|
2141
|
-
],
|
|
2141
|
+
], C.prototype, "error");
|
|
2142
2142
|
E([
|
|
2143
2143
|
w()
|
|
2144
|
-
],
|
|
2144
|
+
], C.prototype, "errors");
|
|
2145
2145
|
E([
|
|
2146
2146
|
w()
|
|
2147
|
-
],
|
|
2147
|
+
], C.prototype, "userEmail");
|
|
2148
2148
|
E([
|
|
2149
2149
|
w()
|
|
2150
|
-
],
|
|
2150
|
+
], C.prototype, "otpDigits");
|
|
2151
2151
|
E([
|
|
2152
2152
|
w()
|
|
2153
|
-
],
|
|
2153
|
+
], C.prototype, "signupOtpDigits");
|
|
2154
2154
|
E([
|
|
2155
2155
|
V("#email-input")
|
|
2156
|
-
],
|
|
2156
|
+
], C.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.");
|
|
@@ -2173,7 +2173,7 @@ const S = qt(class extends Ft {
|
|
|
2173
2173
|
const s = !!e[i];
|
|
2174
2174
|
s === this.st.has(i) || this.nt?.has(i) || (s ? (t.add(i), this.st.add(i)) : (t.remove(i), this.st.delete(i)));
|
|
2175
2175
|
}
|
|
2176
|
-
return
|
|
2176
|
+
return ne;
|
|
2177
2177
|
}
|
|
2178
2178
|
});
|
|
2179
2179
|
var Zs = Object.defineProperty, $e = (r, e, t, i) => {
|
|
@@ -2623,7 +2623,7 @@ class pe extends M {
|
|
|
2623
2623
|
"base-button--loading": this.loading,
|
|
2624
2624
|
[`base-button--hover-${this.hover}`]: !!this.hover
|
|
2625
2625
|
};
|
|
2626
|
-
return
|
|
2626
|
+
return f`
|
|
2627
2627
|
<button
|
|
2628
2628
|
class=${S(e)}
|
|
2629
2629
|
type=${this.type}
|
|
@@ -2633,7 +2633,7 @@ class pe extends M {
|
|
|
2633
2633
|
<span class=${S({ "button-text": !0, hidden: this.loading })}>
|
|
2634
2634
|
<slot></slot>
|
|
2635
2635
|
</span>
|
|
2636
|
-
${this.loading ?
|
|
2636
|
+
${this.loading ? f`
|
|
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 M {
|
|
|
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 = f`
|
|
2913
2913
|
<div class=${S(e)}>
|
|
2914
|
-
${this.expandable && !this.isExpanded ?
|
|
2914
|
+
${this.expandable && !this.isExpanded ? f`
|
|
2915
2915
|
<button
|
|
2916
2916
|
class="expand-btn"
|
|
2917
2917
|
aria-label="Expand card"
|
|
@@ -2925,7 +2925,7 @@ class Ee extends M {
|
|
|
2925
2925
|
<slot></slot>
|
|
2926
2926
|
</div>
|
|
2927
2927
|
`;
|
|
2928
|
-
return this.isExpanded ?
|
|
2928
|
+
return this.isExpanded ? f`
|
|
2929
2929
|
<div class="expanded-overlay" @click=${this.handleOverlayClick}>
|
|
2930
2930
|
<div class="expanded-card">
|
|
2931
2931
|
${t}
|
|
@@ -2950,12 +2950,12 @@ Ve([
|
|
|
2950
2950
|
w()
|
|
2951
2951
|
], Ee.prototype, "isExpanded");
|
|
2952
2952
|
const Y = (r) => r ?? k;
|
|
2953
|
-
var
|
|
2953
|
+
var Js = Object.defineProperty, I = (r, e, t, i) => {
|
|
2954
2954
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
2955
2955
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
2956
|
-
return s &&
|
|
2956
|
+
return s && Js(e, t, s), s;
|
|
2957
2957
|
};
|
|
2958
|
-
const
|
|
2958
|
+
const Xs = () => R({
|
|
2959
2959
|
name: "base-date-picker",
|
|
2960
2960
|
element: P
|
|
2961
2961
|
});
|
|
@@ -3561,12 +3561,12 @@ class P extends M {
|
|
|
3561
3561
|
"date-display--empty": !this.value,
|
|
3562
3562
|
"date-disabled": this.disabled
|
|
3563
3563
|
};
|
|
3564
|
-
return
|
|
3564
|
+
return f`
|
|
3565
3565
|
<div class="date-picker-group">
|
|
3566
|
-
${this.label ?
|
|
3566
|
+
${this.label ? f`
|
|
3567
3567
|
<label for=${this.inputId} class="date-picker-label">
|
|
3568
3568
|
${this.label}
|
|
3569
|
-
${this.required ?
|
|
3569
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
3570
3570
|
</label>
|
|
3571
3571
|
` : ""}
|
|
3572
3572
|
|
|
@@ -3590,7 +3590,7 @@ class P extends M {
|
|
|
3590
3590
|
<base-icon name="calendar-day" size="20px"></base-icon>
|
|
3591
3591
|
</div>
|
|
3592
3592
|
|
|
3593
|
-
${this.isOpen ?
|
|
3593
|
+
${this.isOpen ? f`
|
|
3594
3594
|
<div class="calendar-overlay" @click=${this.closeCalendar}></div>
|
|
3595
3595
|
<div
|
|
3596
3596
|
class=${S({
|
|
@@ -3601,12 +3601,12 @@ class P extends M {
|
|
|
3601
3601
|
role="dialog"
|
|
3602
3602
|
aria-label="Choose date"
|
|
3603
3603
|
>
|
|
3604
|
-
${this.showMonthPicker ?
|
|
3604
|
+
${this.showMonthPicker ? f`
|
|
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) => f`
|
|
3610
3610
|
<div
|
|
3611
3611
|
class=${S({
|
|
3612
3612
|
"month-item": !0,
|
|
@@ -3621,7 +3621,7 @@ class P extends M {
|
|
|
3621
3621
|
</div>
|
|
3622
3622
|
</div>
|
|
3623
3623
|
</div>
|
|
3624
|
-
` : this.showYearPicker ?
|
|
3624
|
+
` : this.showYearPicker ? f`
|
|
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 P extends M {
|
|
|
3645
3645
|
</div>
|
|
3646
3646
|
<div class="year-picker-grid">
|
|
3647
3647
|
${this.yearRange.map(
|
|
3648
|
-
(s) =>
|
|
3648
|
+
(s) => f`
|
|
3649
3649
|
<div
|
|
3650
3650
|
class=${S({
|
|
3651
3651
|
"year-item": !0,
|
|
@@ -3660,7 +3660,7 @@ class P extends M {
|
|
|
3660
3660
|
</div>
|
|
3661
3661
|
</div>
|
|
3662
3662
|
</div>
|
|
3663
|
-
` :
|
|
3663
|
+
` : f`
|
|
3664
3664
|
<div class="calendar-header">
|
|
3665
3665
|
<button
|
|
3666
3666
|
type="button"
|
|
@@ -3689,12 +3689,12 @@ class P extends M {
|
|
|
3689
3689
|
</div>
|
|
3690
3690
|
|
|
3691
3691
|
<div class="calendar-weekdays">
|
|
3692
|
-
${this.weekDays.map((s) =>
|
|
3692
|
+
${this.weekDays.map((s) => f`<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 ? f`
|
|
3698
3698
|
<div
|
|
3699
3699
|
class=${S({
|
|
3700
3700
|
"calendar-day": !0,
|
|
@@ -3706,7 +3706,7 @@ class P extends M {
|
|
|
3706
3706
|
>
|
|
3707
3707
|
${s}
|
|
3708
3708
|
</div>
|
|
3709
|
-
` :
|
|
3709
|
+
` : f`<div class="calendar-day day-empty"></div>`
|
|
3710
3710
|
)}
|
|
3711
3711
|
</div>
|
|
3712
3712
|
|
|
@@ -3724,11 +3724,11 @@ class P extends M {
|
|
|
3724
3724
|
` : ""}
|
|
3725
3725
|
</div>
|
|
3726
3726
|
|
|
3727
|
-
${e ?
|
|
3727
|
+
${e ? f`
|
|
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 ? f` <div class="date-picker-hint">${this.hint}</div> ` : ""}
|
|
3732
3732
|
</div>
|
|
3733
3733
|
`;
|
|
3734
3734
|
}
|
|
@@ -4131,12 +4131,12 @@ class L extends M {
|
|
|
4131
4131
|
"time-display--empty": !this.value,
|
|
4132
4132
|
"time-disabled": this.disabled
|
|
4133
4133
|
};
|
|
4134
|
-
return
|
|
4134
|
+
return f`
|
|
4135
4135
|
<div class="time-picker-group">
|
|
4136
|
-
${this.label ?
|
|
4136
|
+
${this.label ? f`
|
|
4137
4137
|
<label for=${this.inputId} class="time-picker-label">
|
|
4138
4138
|
${this.label}
|
|
4139
|
-
${this.required ?
|
|
4139
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4140
4140
|
</label>
|
|
4141
4141
|
` : ""}
|
|
4142
4142
|
|
|
@@ -4166,7 +4166,7 @@ class L extends M {
|
|
|
4166
4166
|
</svg>
|
|
4167
4167
|
</div>
|
|
4168
4168
|
|
|
4169
|
-
${this.isOpen ?
|
|
4169
|
+
${this.isOpen ? f`
|
|
4170
4170
|
<div class="time-overlay" @click=${this.closeTimePicker}></div>
|
|
4171
4171
|
<div
|
|
4172
4172
|
class=${S({
|
|
@@ -4182,7 +4182,7 @@ class L extends M {
|
|
|
4182
4182
|
<div class="time-column-label">Hour</div>
|
|
4183
4183
|
<div class="time-scroll">
|
|
4184
4184
|
${this.hours.map(
|
|
4185
|
-
(s) =>
|
|
4185
|
+
(s) => f`
|
|
4186
4186
|
<div
|
|
4187
4187
|
class=${S({
|
|
4188
4188
|
"time-option": !0,
|
|
@@ -4201,7 +4201,7 @@ class L extends M {
|
|
|
4201
4201
|
<div class="time-column-label">Minute</div>
|
|
4202
4202
|
<div class="time-scroll">
|
|
4203
4203
|
${this.minutes.map(
|
|
4204
|
-
(s) =>
|
|
4204
|
+
(s) => f`
|
|
4205
4205
|
<div
|
|
4206
4206
|
class=${S({
|
|
4207
4207
|
"time-option": !0,
|
|
@@ -4216,12 +4216,12 @@ class L extends M {
|
|
|
4216
4216
|
</div>
|
|
4217
4217
|
</div>
|
|
4218
4218
|
|
|
4219
|
-
${this.format === "12" ?
|
|
4219
|
+
${this.format === "12" ? f`
|
|
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) => f`
|
|
4225
4225
|
<div
|
|
4226
4226
|
class=${S({
|
|
4227
4227
|
"time-option": !0,
|
|
@@ -4247,11 +4247,11 @@ class L extends M {
|
|
|
4247
4247
|
` : ""}
|
|
4248
4248
|
</div>
|
|
4249
4249
|
|
|
4250
|
-
${e ?
|
|
4250
|
+
${e ? f`
|
|
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 ? f` <div class="time-picker-hint">${this.hint}</div> ` : ""}
|
|
4255
4255
|
</div>
|
|
4256
4256
|
`;
|
|
4257
4257
|
}
|
|
@@ -4501,12 +4501,12 @@ class q extends M {
|
|
|
4501
4501
|
"datetime-pickers--error": e,
|
|
4502
4502
|
"datetime-pickers--disabled": this.disabled
|
|
4503
4503
|
};
|
|
4504
|
-
return
|
|
4504
|
+
return f`
|
|
4505
4505
|
<div class="datetime-picker-group">
|
|
4506
|
-
${this.label ?
|
|
4506
|
+
${this.label ? f`
|
|
4507
4507
|
<label for=${this.inputId} class="datetime-picker-label">
|
|
4508
4508
|
${this.label}
|
|
4509
|
-
${this.required ?
|
|
4509
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4510
4510
|
</label>
|
|
4511
4511
|
` : ""}
|
|
4512
4512
|
|
|
@@ -4546,11 +4546,11 @@ class q extends M {
|
|
|
4546
4546
|
</div>
|
|
4547
4547
|
</div>
|
|
4548
4548
|
|
|
4549
|
-
${e ?
|
|
4549
|
+
${e ? f`
|
|
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 ? f` <div class="datetime-picker-hint">${this.hint}</div> ` : ""}
|
|
4554
4554
|
</div>
|
|
4555
4555
|
`;
|
|
4556
4556
|
}
|
|
@@ -4662,16 +4662,16 @@ class j extends M {
|
|
|
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], g = this.currentDetentIndex === 0;
|
|
4666
4666
|
if (i > c && Math.abs(e) > 30)
|
|
4667
|
-
e > 0 ? b ? i > p &&
|
|
4667
|
+
e > 0 ? b ? i > p && g && 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
|
-
let _ = 0,
|
|
4669
|
+
let _ = 0, A = 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
|
-
N <
|
|
4672
|
+
N < A && (A = N, _ = T);
|
|
4673
4673
|
}
|
|
4674
|
-
h = _, b && (
|
|
4674
|
+
h = _, b && (g && 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 M {
|
|
|
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 f`
|
|
4823
4823
|
<!-- Drawer Overlay -->
|
|
4824
4824
|
<div
|
|
4825
4825
|
class=${S(e)}
|
|
@@ -4832,7 +4832,7 @@ class j extends M {
|
|
|
4832
4832
|
aria-modal="true"
|
|
4833
4833
|
>
|
|
4834
4834
|
<!-- Drawer Handle -->
|
|
4835
|
-
${o ?
|
|
4835
|
+
${o ? f`
|
|
4836
4836
|
<div
|
|
4837
4837
|
class="drawer-handle"
|
|
4838
4838
|
@click=${this.handleHandleClick}
|
|
@@ -5345,7 +5345,7 @@ class Tt extends Ft {
|
|
|
5345
5345
|
}
|
|
5346
5346
|
render(e) {
|
|
5347
5347
|
if (e === k || e == null) return this._t = void 0, this.it = e;
|
|
5348
|
-
if (e ===
|
|
5348
|
+
if (e === ne) return e;
|
|
5349
5349
|
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
5350
5350
|
if (e === this.it) return this._t;
|
|
5351
5351
|
this.it = e;
|
|
@@ -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
|
|
5358
|
+
var Ai = Object.defineProperty, ft = (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
|
-
return s &&
|
|
5361
|
+
return s && Ai(e, t, s), s;
|
|
5362
5362
|
};
|
|
5363
|
-
const
|
|
5363
|
+
const Ci = /* @__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,
|
|
@@ -5427,7 +5427,7 @@ class Te extends M {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
try {
|
|
5429
5429
|
const e = `../../public/icons/${this.name}.svg`;
|
|
5430
|
-
let t =
|
|
5430
|
+
let t = Ci[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 M {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
5438
|
render() {
|
|
5439
|
-
return
|
|
5439
|
+
return f`
|
|
5440
5440
|
<div
|
|
5441
5441
|
style="
|
|
5442
5442
|
--icon-size: ${this.size};
|
|
@@ -5459,7 +5459,7 @@ ft([
|
|
|
5459
5459
|
ft([
|
|
5460
5460
|
w()
|
|
5461
5461
|
], Te.prototype, "svgContent");
|
|
5462
|
-
var Ti = Object.defineProperty,
|
|
5462
|
+
var Ti = Object.defineProperty, te = (r, e, t, i) => {
|
|
5463
5463
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5464
5464
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5465
5465
|
return s && Ti(e, t, s), s;
|
|
@@ -5651,12 +5651,12 @@ class Q extends M {
|
|
|
5651
5651
|
"base-input--error": e,
|
|
5652
5652
|
"base-input--disabled": this.disabled
|
|
5653
5653
|
};
|
|
5654
|
-
return
|
|
5654
|
+
return f`
|
|
5655
5655
|
<div class="input-group">
|
|
5656
|
-
${this.label ?
|
|
5656
|
+
${this.label ? f`
|
|
5657
5657
|
<label for=${this.inputId} class="input-label">
|
|
5658
5658
|
${this.label}
|
|
5659
|
-
${this.required ?
|
|
5659
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5660
5660
|
</label>
|
|
5661
5661
|
` : ""}
|
|
5662
5662
|
|
|
@@ -5682,46 +5682,46 @@ class Q extends M {
|
|
|
5682
5682
|
</div>
|
|
5683
5683
|
</div>
|
|
5684
5684
|
|
|
5685
|
-
${e ?
|
|
5685
|
+
${e ? f`
|
|
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 ? f` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5690
5690
|
</div>
|
|
5691
5691
|
`;
|
|
5692
5692
|
}
|
|
5693
5693
|
}
|
|
5694
|
-
|
|
5694
|
+
te([
|
|
5695
5695
|
u({ type: String })
|
|
5696
5696
|
], Q.prototype, "value");
|
|
5697
|
-
|
|
5697
|
+
te([
|
|
5698
5698
|
u({ type: String })
|
|
5699
5699
|
], Q.prototype, "label");
|
|
5700
|
-
|
|
5700
|
+
te([
|
|
5701
5701
|
u({ type: String })
|
|
5702
5702
|
], Q.prototype, "placeholder");
|
|
5703
|
-
|
|
5703
|
+
te([
|
|
5704
5704
|
u({ type: String })
|
|
5705
5705
|
], Q.prototype, "type");
|
|
5706
|
-
|
|
5706
|
+
te([
|
|
5707
5707
|
u({ type: Boolean, reflect: !0 })
|
|
5708
5708
|
], Q.prototype, "required");
|
|
5709
|
-
|
|
5709
|
+
te([
|
|
5710
5710
|
u({ type: Boolean, reflect: !0 })
|
|
5711
5711
|
], Q.prototype, "disabled");
|
|
5712
|
-
|
|
5712
|
+
te([
|
|
5713
5713
|
u({ type: String })
|
|
5714
5714
|
], Q.prototype, "error");
|
|
5715
|
-
|
|
5715
|
+
te([
|
|
5716
5716
|
u({ type: String })
|
|
5717
5717
|
], Q.prototype, "hint");
|
|
5718
|
-
|
|
5718
|
+
te([
|
|
5719
5719
|
u({ type: String })
|
|
5720
5720
|
], Q.prototype, "autocomplete");
|
|
5721
|
-
|
|
5721
|
+
te([
|
|
5722
5722
|
u({ type: String })
|
|
5723
5723
|
], Q.prototype, "size");
|
|
5724
|
-
|
|
5724
|
+
te([
|
|
5725
5725
|
V("input")
|
|
5726
5726
|
], Q.prototype, "inputElement");
|
|
5727
5727
|
var Oi = Object.defineProperty, mt = (r, e, t, i) => {
|
|
@@ -5807,7 +5807,7 @@ class Ze extends M {
|
|
|
5807
5807
|
[`base-list--${this.variant}`]: !0,
|
|
5808
5808
|
"base-list--interactive": this.interactive
|
|
5809
5809
|
};
|
|
5810
|
-
return
|
|
5810
|
+
return f`
|
|
5811
5811
|
<div class=${S(e)} role=${this.role}>
|
|
5812
5812
|
<slot></slot>
|
|
5813
5813
|
</div>
|
|
@@ -5826,18 +5826,18 @@ mt([
|
|
|
5826
5826
|
mt([
|
|
5827
5827
|
u({ type: String, attribute: "role" })
|
|
5828
5828
|
], Ze.prototype, "role");
|
|
5829
|
-
var Ri = Object.defineProperty,
|
|
5829
|
+
var Ri = Object.defineProperty, re = (r, e, t, i) => {
|
|
5830
5830
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5831
5831
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5832
5832
|
return s && Ri(e, t, s), s;
|
|
5833
5833
|
};
|
|
5834
5834
|
const zi = () => R({
|
|
5835
5835
|
name: "base-list-item",
|
|
5836
|
-
element:
|
|
5836
|
+
element: G
|
|
5837
5837
|
});
|
|
5838
|
-
class
|
|
5838
|
+
class G extends M {
|
|
5839
5839
|
constructor() {
|
|
5840
|
-
super(...arguments), this.size = "md", this.disabled = !1, this.selected = !1, this.interactive = !1, this.role = "listitem", this.swipeOffset = 0, this.isSwiping = !1, this.touchStartX = 0, this.touchStartY = 0, this.currentX = 0, this.isDragging = !1, this.swipeThreshold = 80;
|
|
5840
|
+
super(...arguments), this.size = "md", this.disabled = !1, this.selected = !1, this.interactive = !1, this.role = "listitem", this.swipeOffset = 0, this.isSwiping = !1, this.desktopActionsOpen = !1, this.desktopActionSide = null, this.touchStartX = 0, this.touchStartY = 0, this.currentX = 0, this.isDragging = !1, this.swipeThreshold = 80, this.documentClickHandler = this.handleDocumentClick.bind(this);
|
|
5841
5841
|
}
|
|
5842
5842
|
static {
|
|
5843
5843
|
this.styles = B`
|
|
@@ -5859,6 +5859,7 @@ class ie extends M {
|
|
|
5859
5859
|
width: 100%;
|
|
5860
5860
|
display: flex;
|
|
5861
5861
|
align-items: stretch;
|
|
5862
|
+
isolation: isolate;
|
|
5862
5863
|
}
|
|
5863
5864
|
|
|
5864
5865
|
.swipe-actions {
|
|
@@ -5901,70 +5902,73 @@ class ie extends M {
|
|
|
5901
5902
|
filter: brightness(0.9);
|
|
5902
5903
|
}
|
|
5903
5904
|
|
|
5904
|
-
/* Desktop
|
|
5905
|
-
.desktop-
|
|
5905
|
+
/* Desktop plus icons on edges */
|
|
5906
|
+
.desktop-plus-icon {
|
|
5906
5907
|
position: absolute;
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5908
|
+
top: 50%;
|
|
5909
|
+
transform: translateY(-50%);
|
|
5910
|
+
color: var(--color-text-muted);
|
|
5911
|
+
width: 18px;
|
|
5912
|
+
height: 18px;
|
|
5913
|
+
border: none;
|
|
5914
|
+
border-radius: 50%;
|
|
5915
|
+
background: none;
|
|
5916
|
+
background-color: none;
|
|
5917
|
+
cursor: pointer;
|
|
5910
5918
|
display: flex;
|
|
5911
5919
|
align-items: center;
|
|
5912
|
-
|
|
5913
|
-
padding-right: var(--space-3);
|
|
5920
|
+
justify-content: center;
|
|
5914
5921
|
opacity: 0;
|
|
5915
|
-
|
|
5916
|
-
|
|
5922
|
+
transition: opacity var(--transition-fast);
|
|
5923
|
+
z-index: 3;
|
|
5917
5924
|
pointer-events: none;
|
|
5918
|
-
|
|
5919
|
-
|
|
5925
|
+
font-size: 18px;
|
|
5926
|
+
line-height: 1;
|
|
5927
|
+
padding: 0;
|
|
5920
5928
|
}
|
|
5921
5929
|
|
|
5922
|
-
.desktop-
|
|
5923
|
-
|
|
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;
|
|
5930
|
+
.desktop-plus-icon--left {
|
|
5931
|
+
left: -4px;
|
|
5934
5932
|
}
|
|
5935
5933
|
|
|
5936
|
-
.desktop-
|
|
5937
|
-
|
|
5934
|
+
.desktop-plus-icon--right {
|
|
5935
|
+
right: -4px;
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
.desktop-plus-icon:hover {
|
|
5938
5939
|
filter: brightness(1.1);
|
|
5939
5940
|
}
|
|
5940
5941
|
|
|
5941
|
-
.desktop-
|
|
5942
|
-
transform: scale(0.95);
|
|
5942
|
+
.desktop-plus-icon:active {
|
|
5943
|
+
transform: translateY(-50%) scale(0.95);
|
|
5943
5944
|
}
|
|
5944
5945
|
|
|
5945
|
-
.desktop-
|
|
5946
|
+
.desktop-plus-icon:focus-visible {
|
|
5946
5947
|
outline: 2px solid var(--color-border-focus);
|
|
5947
5948
|
outline-offset: 2px;
|
|
5948
5949
|
}
|
|
5949
5950
|
|
|
5950
|
-
/* Show
|
|
5951
|
+
/* Show plus icons on hover (desktop only) */
|
|
5951
5952
|
@media (hover: hover) and (pointer: fine) {
|
|
5952
|
-
:host(:hover) .desktop-
|
|
5953
|
-
:host(:focus-within) .desktop-actions {
|
|
5953
|
+
:host(:hover) .desktop-plus-icon {
|
|
5954
5954
|
opacity: 1;
|
|
5955
|
-
transform: translateX(0);
|
|
5956
5955
|
pointer-events: auto;
|
|
5957
5956
|
}
|
|
5958
5957
|
|
|
5959
|
-
/*
|
|
5958
|
+
/* Show swipe actions on desktop when opened */
|
|
5960
5959
|
.swipe-actions {
|
|
5961
|
-
display:
|
|
5960
|
+
display: flex;
|
|
5961
|
+
}
|
|
5962
|
+
|
|
5963
|
+
/* Disable swipe gestures on desktop */
|
|
5964
|
+
.base-list-item {
|
|
5965
|
+
touch-action: auto;
|
|
5962
5966
|
}
|
|
5963
5967
|
}
|
|
5964
5968
|
|
|
5965
|
-
/* Hide desktop
|
|
5969
|
+
/* Hide desktop plus icons on touch devices */
|
|
5966
5970
|
@media (hover: none) {
|
|
5967
|
-
.desktop-
|
|
5971
|
+
.desktop-plus-icon {
|
|
5968
5972
|
display: none;
|
|
5969
5973
|
}
|
|
5970
5974
|
}
|
|
@@ -5982,12 +5986,17 @@ class ie extends M {
|
|
|
5982
5986
|
z-index: 1;
|
|
5983
5987
|
touch-action: pan-y;
|
|
5984
5988
|
transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
|
|
5989
|
+
will-change: transform;
|
|
5985
5990
|
}
|
|
5986
5991
|
|
|
5987
5992
|
.base-list-item--swiping {
|
|
5988
5993
|
transition: none;
|
|
5989
5994
|
}
|
|
5990
5995
|
|
|
5996
|
+
.base-list-item--desktop-open {
|
|
5997
|
+
transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
|
|
5998
|
+
}
|
|
5999
|
+
|
|
5991
6000
|
/* Size variants */
|
|
5992
6001
|
.base-list-item--sm {
|
|
5993
6002
|
padding: var(--space-2) var(--space-3);
|
|
@@ -6042,6 +6051,10 @@ class ie extends M {
|
|
|
6042
6051
|
e.preventDefault(), e.stopPropagation();
|
|
6043
6052
|
return;
|
|
6044
6053
|
}
|
|
6054
|
+
if (this.desktopActionsOpen) {
|
|
6055
|
+
this.desktopActionsOpen = !1, this.desktopActionSide = null;
|
|
6056
|
+
return;
|
|
6057
|
+
}
|
|
6045
6058
|
this.dispatchEvent(
|
|
6046
6059
|
new CustomEvent("item-click", {
|
|
6047
6060
|
detail: { item: this },
|
|
@@ -6090,7 +6103,19 @@ class ie extends M {
|
|
|
6090
6103
|
bubbles: !0,
|
|
6091
6104
|
composed: !0
|
|
6092
6105
|
})
|
|
6093
|
-
);
|
|
6106
|
+
), this.desktopActionsOpen = !1, this.desktopActionSide = null;
|
|
6107
|
+
}
|
|
6108
|
+
handleDesktopActionToggle(e, t) {
|
|
6109
|
+
t.preventDefault(), this.desktopActionsOpen ? (this.desktopActionsOpen = !1, this.desktopActionSide = null) : (this.desktopActionsOpen = !0, this.desktopActionSide = e);
|
|
6110
|
+
}
|
|
6111
|
+
handleDocumentClick(e) {
|
|
6112
|
+
e.composedPath().includes(this) || (this.desktopActionsOpen = !1, this.desktopActionSide = null);
|
|
6113
|
+
}
|
|
6114
|
+
connectedCallback() {
|
|
6115
|
+
super.connectedCallback(), document.addEventListener("click", this.documentClickHandler);
|
|
6116
|
+
}
|
|
6117
|
+
disconnectedCallback() {
|
|
6118
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.documentClickHandler);
|
|
6094
6119
|
}
|
|
6095
6120
|
render() {
|
|
6096
6121
|
const e = {
|
|
@@ -6098,11 +6123,13 @@ class ie extends M {
|
|
|
6098
6123
|
[`base-list-item--${this.size}`]: !0,
|
|
6099
6124
|
"base-list-item--interactive": this.interactive,
|
|
6100
6125
|
"base-list-item--selected": this.selected,
|
|
6101
|
-
"base-list-item--swiping": this.isDragging
|
|
6126
|
+
"base-list-item--swiping": this.isDragging,
|
|
6127
|
+
"base-list-item--desktop-open": this.desktopActionsOpen
|
|
6102
6128
|
};
|
|
6103
|
-
|
|
6129
|
+
let t = this.swipeOffset;
|
|
6130
|
+
return this.desktopActionsOpen && this.desktopActionSide && (this.desktopActionSide === "left" ? t = 100 : t = -100), f`
|
|
6104
6131
|
<div class="list-item-wrapper">
|
|
6105
|
-
${this.leftSwipeAction ?
|
|
6132
|
+
${this.leftSwipeAction ? f`
|
|
6106
6133
|
<div class="swipe-actions swipe-actions--left">
|
|
6107
6134
|
<button
|
|
6108
6135
|
class="swipe-action-button"
|
|
@@ -6114,12 +6141,12 @@ class ie extends M {
|
|
|
6114
6141
|
size="24px"
|
|
6115
6142
|
color="white"
|
|
6116
6143
|
></base-icon>
|
|
6117
|
-
${this.leftSwipeAction.label ?
|
|
6144
|
+
${this.leftSwipeAction.label ? f`<span>${this.leftSwipeAction.label}</span>` : ""}
|
|
6118
6145
|
</button>
|
|
6119
6146
|
</div>
|
|
6120
6147
|
` : ""}
|
|
6121
6148
|
|
|
6122
|
-
${this.rightSwipeAction ?
|
|
6149
|
+
${this.rightSwipeAction ? f`
|
|
6123
6150
|
<div class="swipe-actions swipe-actions--right">
|
|
6124
6151
|
<button
|
|
6125
6152
|
class="swipe-action-button"
|
|
@@ -6131,54 +6158,36 @@ class ie extends M {
|
|
|
6131
6158
|
size="24px"
|
|
6132
6159
|
color="white"
|
|
6133
6160
|
></base-icon>
|
|
6134
|
-
${this.rightSwipeAction.label ?
|
|
6161
|
+
${this.rightSwipeAction.label ? f`<span>${this.rightSwipeAction.label}</span>` : ""}
|
|
6135
6162
|
</button>
|
|
6136
6163
|
</div>
|
|
6137
6164
|
` : ""}
|
|
6138
6165
|
|
|
6139
|
-
<!-- Desktop
|
|
6140
|
-
${this.leftSwipeAction
|
|
6141
|
-
<
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
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>
|
|
6166
|
+
<!-- Desktop plus icons -->
|
|
6167
|
+
${this.leftSwipeAction && !this.desktopActionsOpen ? f`
|
|
6168
|
+
<button
|
|
6169
|
+
class="desktop-plus-icon desktop-plus-icon--left"
|
|
6170
|
+
@click=${(i) => this.handleDesktopActionToggle("left", i)}
|
|
6171
|
+
title="Show action"
|
|
6172
|
+
aria-label="Show action"
|
|
6173
|
+
>
|
|
6174
|
+
+
|
|
6175
|
+
</button>
|
|
6176
|
+
` : ""}
|
|
6177
|
+
${this.rightSwipeAction && !this.desktopActionsOpen ? f`
|
|
6178
|
+
<button
|
|
6179
|
+
class="desktop-plus-icon desktop-plus-icon--right"
|
|
6180
|
+
@click=${(i) => this.handleDesktopActionToggle("right", i)}
|
|
6181
|
+
title="Show action"
|
|
6182
|
+
aria-label="Show action"
|
|
6183
|
+
>
|
|
6184
|
+
+
|
|
6185
|
+
</button>
|
|
6177
6186
|
` : ""}
|
|
6178
6187
|
|
|
6179
6188
|
<div
|
|
6180
6189
|
class=${S(e)}
|
|
6181
|
-
style="transform: translateX(${
|
|
6190
|
+
style="transform: translateX(${t}px)"
|
|
6182
6191
|
role=${this.role}
|
|
6183
6192
|
tabindex=${this.interactive && !this.disabled ? "0" : "-1"}
|
|
6184
6193
|
aria-selected=${this.selected ? "true" : "false"}
|
|
@@ -6196,33 +6205,39 @@ class ie extends M {
|
|
|
6196
6205
|
`;
|
|
6197
6206
|
}
|
|
6198
6207
|
}
|
|
6199
|
-
|
|
6208
|
+
re([
|
|
6200
6209
|
u({ type: String, attribute: "size" })
|
|
6201
|
-
],
|
|
6202
|
-
|
|
6210
|
+
], G.prototype, "size");
|
|
6211
|
+
re([
|
|
6203
6212
|
u({ type: Boolean, reflect: !0, attribute: "disabled" })
|
|
6204
|
-
],
|
|
6205
|
-
|
|
6213
|
+
], G.prototype, "disabled");
|
|
6214
|
+
re([
|
|
6206
6215
|
u({ type: Boolean, reflect: !0, attribute: "selected" })
|
|
6207
|
-
],
|
|
6208
|
-
|
|
6216
|
+
], G.prototype, "selected");
|
|
6217
|
+
re([
|
|
6209
6218
|
u({ type: Boolean, reflect: !0, attribute: "interactive" })
|
|
6210
|
-
],
|
|
6211
|
-
|
|
6219
|
+
], G.prototype, "interactive");
|
|
6220
|
+
re([
|
|
6212
6221
|
u({ type: String, attribute: "role" })
|
|
6213
|
-
],
|
|
6214
|
-
|
|
6222
|
+
], G.prototype, "role");
|
|
6223
|
+
re([
|
|
6215
6224
|
u({ type: Object, attribute: "left-swipe-action" })
|
|
6216
|
-
],
|
|
6217
|
-
|
|
6225
|
+
], G.prototype, "leftSwipeAction");
|
|
6226
|
+
re([
|
|
6218
6227
|
u({ type: Object, attribute: "right-swipe-action" })
|
|
6219
|
-
],
|
|
6220
|
-
|
|
6228
|
+
], G.prototype, "rightSwipeAction");
|
|
6229
|
+
re([
|
|
6221
6230
|
w()
|
|
6222
|
-
],
|
|
6223
|
-
|
|
6231
|
+
], G.prototype, "swipeOffset");
|
|
6232
|
+
re([
|
|
6224
6233
|
w()
|
|
6225
|
-
],
|
|
6234
|
+
], G.prototype, "isSwiping");
|
|
6235
|
+
re([
|
|
6236
|
+
w()
|
|
6237
|
+
], G.prototype, "desktopActionsOpen");
|
|
6238
|
+
re([
|
|
6239
|
+
w()
|
|
6240
|
+
], G.prototype, "desktopActionSide");
|
|
6226
6241
|
var Mi = Object.defineProperty, O = (r, e, t, i) => {
|
|
6227
6242
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
6228
6243
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
@@ -6859,7 +6874,7 @@ class D extends M {
|
|
|
6859
6874
|
}, 1e3);
|
|
6860
6875
|
}
|
|
6861
6876
|
renderChip(e) {
|
|
6862
|
-
return
|
|
6877
|
+
return f`
|
|
6863
6878
|
<div class="chip" role="listitem">
|
|
6864
6879
|
<span class="chip-label">${e.label}</span>
|
|
6865
6880
|
<button
|
|
@@ -6930,17 +6945,17 @@ class D extends M {
|
|
|
6930
6945
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6931
6946
|
"select-disabled": this.disabled
|
|
6932
6947
|
};
|
|
6933
|
-
return
|
|
6948
|
+
return f`
|
|
6934
6949
|
<div class="select-group">
|
|
6935
|
-
${this.label ?
|
|
6950
|
+
${this.label ? f`
|
|
6936
6951
|
<label for=${this.selectId} class="select-label">
|
|
6937
6952
|
${this.label}
|
|
6938
|
-
${this.required ?
|
|
6953
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6939
6954
|
</label>
|
|
6940
6955
|
` : ""}
|
|
6941
6956
|
|
|
6942
6957
|
<div class=${S(t)}>
|
|
6943
|
-
${this.multiple ?
|
|
6958
|
+
${this.multiple ? f`
|
|
6944
6959
|
<!-- Multiple select mode with chips -->
|
|
6945
6960
|
<div
|
|
6946
6961
|
id=${this.selectId}
|
|
@@ -6957,7 +6972,7 @@ class D extends M {
|
|
|
6957
6972
|
>
|
|
6958
6973
|
<div class="chips-container ${this.isOpen && !this.searchable ? "chips-container--open" : ""}" role="list">
|
|
6959
6974
|
${this.selectedOptions.map((o) => this.renderChip(o))}
|
|
6960
|
-
${this.searchable ?
|
|
6975
|
+
${this.searchable ? f`
|
|
6961
6976
|
<input
|
|
6962
6977
|
id="${this.selectId}-input"
|
|
6963
6978
|
class="chips-search-input"
|
|
@@ -6972,10 +6987,10 @@ class D extends M {
|
|
|
6972
6987
|
this.isOpen || this.toggleDropdown();
|
|
6973
6988
|
}}
|
|
6974
6989
|
/>
|
|
6975
|
-
` :
|
|
6990
|
+
` : f`${this.selectedOptions.length === 0 ? f`<span class="chips-placeholder">${this.placeholder}</span>` : ""}`}
|
|
6976
6991
|
</div>
|
|
6977
6992
|
</div>
|
|
6978
|
-
${this.selectedValues.length > 0 && !this.disabled ?
|
|
6993
|
+
${this.selectedValues.length > 0 && !this.disabled ? f`
|
|
6979
6994
|
<button
|
|
6980
6995
|
type="button"
|
|
6981
6996
|
class="clear-all-button"
|
|
@@ -6987,7 +7002,7 @@ class D extends M {
|
|
|
6987
7002
|
</svg>
|
|
6988
7003
|
</button>
|
|
6989
7004
|
` : ""}
|
|
6990
|
-
` :
|
|
7005
|
+
` : f`
|
|
6991
7006
|
<!-- Single select mode (original) -->
|
|
6992
7007
|
<input
|
|
6993
7008
|
id="${this.selectId}-input"
|
|
@@ -7027,7 +7042,7 @@ class D extends M {
|
|
|
7027
7042
|
</svg>
|
|
7028
7043
|
</div>
|
|
7029
7044
|
|
|
7030
|
-
${this.isOpen ?
|
|
7045
|
+
${this.isOpen ? f`
|
|
7031
7046
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
7032
7047
|
<div
|
|
7033
7048
|
class=${S({
|
|
@@ -7038,7 +7053,7 @@ class D extends M {
|
|
|
7038
7053
|
role="listbox"
|
|
7039
7054
|
aria-multiselectable=${Y(this.multiple ? "true" : void 0)}
|
|
7040
7055
|
>
|
|
7041
|
-
${this.filteredOptions.length === 0 ? this.creatable && this.searchable && this.searchQuery.trim() ?
|
|
7056
|
+
${this.filteredOptions.length === 0 ? this.creatable && this.searchable && this.searchQuery.trim() ? f`
|
|
7042
7057
|
<button
|
|
7043
7058
|
type="button"
|
|
7044
7059
|
class="dropdown-create-button"
|
|
@@ -7051,8 +7066,8 @@ class D extends M {
|
|
|
7051
7066
|
</div>
|
|
7052
7067
|
<span class="dropdown-create-label">"${this.searchQuery.trim()}"</span>
|
|
7053
7068
|
</button>
|
|
7054
|
-
` :
|
|
7055
|
-
(o, a) =>
|
|
7069
|
+
` : f` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
7070
|
+
(o, a) => f`
|
|
7056
7071
|
<div
|
|
7057
7072
|
class=${S({
|
|
7058
7073
|
"dropdown-option": !0,
|
|
@@ -7071,11 +7086,11 @@ class D extends M {
|
|
|
7071
7086
|
` : ""}
|
|
7072
7087
|
</div>
|
|
7073
7088
|
|
|
7074
|
-
${e ?
|
|
7089
|
+
${e ? f`
|
|
7075
7090
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
7076
7091
|
${this.error}
|
|
7077
7092
|
</div>
|
|
7078
|
-
` : this.hint ?
|
|
7093
|
+
` : this.hint ? f` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
7079
7094
|
|
|
7080
7095
|
<!-- Screen reader announcements -->
|
|
7081
7096
|
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true">
|
|
@@ -7227,7 +7242,7 @@ class De extends M {
|
|
|
7227
7242
|
);
|
|
7228
7243
|
}
|
|
7229
7244
|
render() {
|
|
7230
|
-
return
|
|
7245
|
+
return f`
|
|
7231
7246
|
<div
|
|
7232
7247
|
class="base-tab"
|
|
7233
7248
|
id="tabpanel-${this.id}"
|
|
@@ -7261,9 +7276,9 @@ var Ni = Object.defineProperty, le = (r, e, t, i) => {
|
|
|
7261
7276
|
};
|
|
7262
7277
|
const Ui = () => R({
|
|
7263
7278
|
name: "base-tabs",
|
|
7264
|
-
element:
|
|
7279
|
+
element: ae
|
|
7265
7280
|
});
|
|
7266
|
-
class
|
|
7281
|
+
class ae extends M {
|
|
7267
7282
|
constructor() {
|
|
7268
7283
|
super(...arguments), this.activeTab = "", this.ariaLabel = "Dashboard navigation", this.syncWithHash = !0, this.variant = "sidebar", this.forceExpanded = !1, this.tabs = [], this.isExpanded = !1, this.isMobile = !1, this.boundHashChangeHandler = this.handleHashChange.bind(this), this.boundResizeHandler = this.handleResize.bind(this), this.hasInitialized = !1;
|
|
7269
7284
|
}
|
|
@@ -7842,7 +7857,7 @@ class oe extends M {
|
|
|
7842
7857
|
"tab-button": !0,
|
|
7843
7858
|
"tab-button--active": i
|
|
7844
7859
|
};
|
|
7845
|
-
return
|
|
7860
|
+
return f`
|
|
7846
7861
|
<button
|
|
7847
7862
|
role="tab"
|
|
7848
7863
|
aria-selected=${i}
|
|
@@ -7853,9 +7868,9 @@ class oe extends M {
|
|
|
7853
7868
|
@click=${() => this.handleTabClick(e.id)}
|
|
7854
7869
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
7855
7870
|
>
|
|
7856
|
-
${e.icon ?
|
|
7857
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
7858
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
7871
|
+
${e.icon ? f`<span class="tab-icon">${Ir(e.icon)}</span>` : k}
|
|
7872
|
+
${s || this.variant !== "sidebar" || this.isMobile ? f`<span class="tab-label">${e.label}</span>` : k}
|
|
7873
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? f`<span class="tab-badge">${e.badge}</span>` : k}
|
|
7859
7874
|
</button>
|
|
7860
7875
|
`;
|
|
7861
7876
|
}
|
|
@@ -7870,9 +7885,9 @@ class oe extends M {
|
|
|
7870
7885
|
"sidebar-toggle": !0,
|
|
7871
7886
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
7872
7887
|
};
|
|
7873
|
-
return
|
|
7888
|
+
return f`
|
|
7874
7889
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
7875
|
-
${this.variant === "sidebar" ?
|
|
7890
|
+
${this.variant === "sidebar" ? f`
|
|
7876
7891
|
<div class=${S(i)}>
|
|
7877
7892
|
<!-- Sidebar Header -->
|
|
7878
7893
|
<div class="sidebar-header">
|
|
@@ -7902,7 +7917,7 @@ class oe extends M {
|
|
|
7902
7917
|
<slot name="sidebar-footer"></slot>
|
|
7903
7918
|
</div>
|
|
7904
7919
|
</div>
|
|
7905
|
-
` :
|
|
7920
|
+
` : f`
|
|
7906
7921
|
<div class="tabs-header">
|
|
7907
7922
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7908
7923
|
</div>
|
|
@@ -7918,41 +7933,41 @@ class oe extends M {
|
|
|
7918
7933
|
}
|
|
7919
7934
|
le([
|
|
7920
7935
|
u({ type: String, attribute: "active-tab" })
|
|
7921
|
-
],
|
|
7936
|
+
], ae.prototype, "activeTab");
|
|
7922
7937
|
le([
|
|
7923
7938
|
u({ type: String, attribute: "aria-label" })
|
|
7924
|
-
],
|
|
7939
|
+
], ae.prototype, "ariaLabel");
|
|
7925
7940
|
le([
|
|
7926
7941
|
u({ type: Boolean, attribute: "sync-with-hash" })
|
|
7927
|
-
],
|
|
7942
|
+
], ae.prototype, "syncWithHash");
|
|
7928
7943
|
le([
|
|
7929
7944
|
u({ type: String })
|
|
7930
|
-
],
|
|
7945
|
+
], ae.prototype, "variant");
|
|
7931
7946
|
le([
|
|
7932
7947
|
u({ type: Boolean, attribute: "force-expanded" })
|
|
7933
|
-
],
|
|
7948
|
+
], ae.prototype, "forceExpanded");
|
|
7934
7949
|
le([
|
|
7935
7950
|
w()
|
|
7936
|
-
],
|
|
7951
|
+
], ae.prototype, "tabs");
|
|
7937
7952
|
le([
|
|
7938
7953
|
w()
|
|
7939
|
-
],
|
|
7954
|
+
], ae.prototype, "isExpanded");
|
|
7940
7955
|
le([
|
|
7941
7956
|
w()
|
|
7942
|
-
],
|
|
7957
|
+
], ae.prototype, "isMobile");
|
|
7943
7958
|
le([
|
|
7944
7959
|
V(".tabs-nav")
|
|
7945
|
-
],
|
|
7946
|
-
var qi = Object.defineProperty,
|
|
7960
|
+
], ae.prototype, "tabsNav");
|
|
7961
|
+
var qi = Object.defineProperty, ee = (r, e, t, i) => {
|
|
7947
7962
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7948
7963
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
7949
7964
|
return s && qi(e, t, s), s;
|
|
7950
7965
|
};
|
|
7951
7966
|
const Fi = () => R({
|
|
7952
7967
|
name: "base-textarea",
|
|
7953
|
-
element:
|
|
7968
|
+
element: J
|
|
7954
7969
|
});
|
|
7955
|
-
class
|
|
7970
|
+
class J extends M {
|
|
7956
7971
|
constructor() {
|
|
7957
7972
|
super(...arguments), this.value = "", this.required = !1, this.disabled = !1, this.size = "md", this.rows = 4, this.resize = "vertical", this.textareaId = `textarea-${Math.random().toString(36).substr(2, 9)}`;
|
|
7958
7973
|
}
|
|
@@ -8167,12 +8182,12 @@ class X extends M {
|
|
|
8167
8182
|
"character-count--warning": s && !o,
|
|
8168
8183
|
"character-count--error": o
|
|
8169
8184
|
};
|
|
8170
|
-
return
|
|
8185
|
+
return f`
|
|
8171
8186
|
<div class="textarea-group">
|
|
8172
|
-
${this.label ?
|
|
8187
|
+
${this.label ? f`
|
|
8173
8188
|
<label for=${this.textareaId} class="textarea-label">
|
|
8174
8189
|
${this.label}
|
|
8175
|
-
${this.required ?
|
|
8190
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
8176
8191
|
</label>
|
|
8177
8192
|
` : ""}
|
|
8178
8193
|
|
|
@@ -8193,58 +8208,58 @@ class X extends M {
|
|
|
8193
8208
|
@focus=${this.handleFocus}
|
|
8194
8209
|
></textarea>
|
|
8195
8210
|
|
|
8196
|
-
${i ?
|
|
8211
|
+
${i ? f`
|
|
8197
8212
|
<div class=${S(n)}>
|
|
8198
8213
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
8199
8214
|
</div>
|
|
8200
8215
|
` : ""}
|
|
8201
8216
|
</div>
|
|
8202
8217
|
|
|
8203
|
-
${e ?
|
|
8218
|
+
${e ? f`
|
|
8204
8219
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
8205
8220
|
${this.error}
|
|
8206
8221
|
</div>
|
|
8207
|
-
` : this.hint ?
|
|
8222
|
+
` : this.hint ? f` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
8208
8223
|
</div>
|
|
8209
8224
|
`;
|
|
8210
8225
|
}
|
|
8211
8226
|
}
|
|
8212
|
-
|
|
8227
|
+
ee([
|
|
8213
8228
|
u({ type: String })
|
|
8214
|
-
],
|
|
8215
|
-
|
|
8229
|
+
], J.prototype, "value");
|
|
8230
|
+
ee([
|
|
8216
8231
|
u({ type: String })
|
|
8217
|
-
],
|
|
8218
|
-
|
|
8232
|
+
], J.prototype, "label");
|
|
8233
|
+
ee([
|
|
8219
8234
|
u({ type: String })
|
|
8220
|
-
],
|
|
8221
|
-
|
|
8235
|
+
], J.prototype, "placeholder");
|
|
8236
|
+
ee([
|
|
8222
8237
|
u({ type: Boolean, reflect: !0 })
|
|
8223
|
-
],
|
|
8224
|
-
|
|
8238
|
+
], J.prototype, "required");
|
|
8239
|
+
ee([
|
|
8225
8240
|
u({ type: Boolean, reflect: !0 })
|
|
8226
|
-
],
|
|
8227
|
-
|
|
8241
|
+
], J.prototype, "disabled");
|
|
8242
|
+
ee([
|
|
8228
8243
|
u({ type: String })
|
|
8229
|
-
],
|
|
8230
|
-
|
|
8244
|
+
], J.prototype, "error");
|
|
8245
|
+
ee([
|
|
8231
8246
|
u({ type: String })
|
|
8232
|
-
],
|
|
8233
|
-
|
|
8247
|
+
], J.prototype, "hint");
|
|
8248
|
+
ee([
|
|
8234
8249
|
u({ type: String })
|
|
8235
|
-
],
|
|
8236
|
-
|
|
8250
|
+
], J.prototype, "size");
|
|
8251
|
+
ee([
|
|
8237
8252
|
u({ type: Number })
|
|
8238
|
-
],
|
|
8239
|
-
|
|
8253
|
+
], J.prototype, "rows");
|
|
8254
|
+
ee([
|
|
8240
8255
|
u({ type: Number })
|
|
8241
|
-
],
|
|
8242
|
-
|
|
8256
|
+
], J.prototype, "maxlength");
|
|
8257
|
+
ee([
|
|
8243
8258
|
u({ type: String })
|
|
8244
|
-
],
|
|
8245
|
-
|
|
8259
|
+
], J.prototype, "resize");
|
|
8260
|
+
ee([
|
|
8246
8261
|
V("textarea")
|
|
8247
|
-
],
|
|
8262
|
+
], J.prototype, "textareaElement");
|
|
8248
8263
|
var Hi = Object.defineProperty, We = (r, e, t, i) => {
|
|
8249
8264
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8250
8265
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
@@ -8659,13 +8674,13 @@ class Oe extends M {
|
|
|
8659
8674
|
`;
|
|
8660
8675
|
}
|
|
8661
8676
|
render() {
|
|
8662
|
-
return
|
|
8677
|
+
return f`
|
|
8663
8678
|
<div class="toast-container ${this.variant}">
|
|
8664
|
-
${this.dismiss !== "manual" ?
|
|
8679
|
+
${this.dismiss !== "manual" ? f`
|
|
8665
8680
|
<div class="toast-progress"></div>
|
|
8666
8681
|
` : ""}
|
|
8667
8682
|
<slot></slot>
|
|
8668
|
-
${this.dismiss === "manual" ?
|
|
8683
|
+
${this.dismiss === "manual" ? f`
|
|
8669
8684
|
<button
|
|
8670
8685
|
class="toast-dismiss-btn ${this.variant}"
|
|
8671
8686
|
aria-label="Dismiss toast"
|
|
@@ -8905,7 +8920,7 @@ class Pe extends M {
|
|
|
8905
8920
|
"quantity-input": !0,
|
|
8906
8921
|
[`quantity-input--${this.size}`]: !0
|
|
8907
8922
|
};
|
|
8908
|
-
return
|
|
8923
|
+
return f`
|
|
8909
8924
|
<div class=${S(e)}>
|
|
8910
8925
|
<button
|
|
8911
8926
|
type="button"
|
|
@@ -8956,7 +8971,7 @@ Ke([
|
|
|
8956
8971
|
Ke([
|
|
8957
8972
|
u({ type: Boolean, attribute: "allow-input" })
|
|
8958
8973
|
], Pe.prototype, "allowInput");
|
|
8959
|
-
var Zi = Object.defineProperty,
|
|
8974
|
+
var Zi = Object.defineProperty, Je = (r, e, t, i) => {
|
|
8960
8975
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8961
8976
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
8962
8977
|
return s && Zi(e, t, s), s;
|
|
@@ -9018,7 +9033,7 @@ class Re extends M {
|
|
|
9018
9033
|
}
|
|
9019
9034
|
render() {
|
|
9020
9035
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
9021
|
-
return
|
|
9036
|
+
return f`
|
|
9022
9037
|
<button
|
|
9023
9038
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
9024
9039
|
@click=${this.toggleTheme}
|
|
@@ -9179,19 +9194,19 @@ class Re extends M {
|
|
|
9179
9194
|
`;
|
|
9180
9195
|
}
|
|
9181
9196
|
}
|
|
9182
|
-
|
|
9197
|
+
Je([
|
|
9183
9198
|
u({ type: String, attribute: "size" })
|
|
9184
9199
|
], Re.prototype, "size");
|
|
9185
|
-
|
|
9200
|
+
Je([
|
|
9186
9201
|
u({ type: String, attribute: "variant" })
|
|
9187
9202
|
], Re.prototype, "variant");
|
|
9188
|
-
|
|
9203
|
+
Je([
|
|
9189
9204
|
u({ type: Object, attribute: "themes" })
|
|
9190
9205
|
], Re.prototype, "themes");
|
|
9191
|
-
|
|
9206
|
+
Je([
|
|
9192
9207
|
w()
|
|
9193
9208
|
], Re.prototype, "currentTheme");
|
|
9194
|
-
|
|
9209
|
+
Je([
|
|
9195
9210
|
w()
|
|
9196
9211
|
], Re.prototype, "animating");
|
|
9197
9212
|
function Br(r, e) {
|
|
@@ -9202,33 +9217,33 @@ function Br(r, e) {
|
|
|
9202
9217
|
const { toString: Wi } = Object.prototype, { getPrototypeOf: Ht } = Object, { iterator: bt, toStringTag: Nr } = Symbol, vt = /* @__PURE__ */ ((r) => (e) => {
|
|
9203
9218
|
const t = Wi.call(e);
|
|
9204
9219
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
9205
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
9206
|
-
function
|
|
9207
|
-
return r !== null && !
|
|
9220
|
+
})(/* @__PURE__ */ Object.create(null)), se = (r) => (r = r.toLowerCase(), (e) => vt(e) === r), yt = (r) => (e) => typeof e === r, { isArray: ze } = Array, Ae = yt("undefined");
|
|
9221
|
+
function Xe(r) {
|
|
9222
|
+
return r !== null && !Ae(r) && r.constructor !== null && !Ae(r.constructor) && W(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
9208
9223
|
}
|
|
9209
|
-
const Ur =
|
|
9224
|
+
const Ur = se("ArrayBuffer");
|
|
9210
9225
|
function Ki(r) {
|
|
9211
9226
|
let e;
|
|
9212
9227
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && Ur(r.buffer), e;
|
|
9213
9228
|
}
|
|
9214
|
-
const
|
|
9229
|
+
const Ji = yt("string"), W = yt("function"), qr = yt("number"), Qe = (r) => r !== null && typeof r == "object", Xi = (r) => r === !0 || r === !1, nt = (r) => {
|
|
9215
9230
|
if (vt(r) !== "object")
|
|
9216
9231
|
return !1;
|
|
9217
9232
|
const e = Ht(r);
|
|
9218
9233
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Nr in r) && !(bt in r);
|
|
9219
9234
|
}, Qi = (r) => {
|
|
9220
|
-
if (!Qe(r) ||
|
|
9235
|
+
if (!Qe(r) || Xe(r))
|
|
9221
9236
|
return !1;
|
|
9222
9237
|
try {
|
|
9223
9238
|
return Object.keys(r).length === 0 && Object.getPrototypeOf(r) === Object.prototype;
|
|
9224
9239
|
} catch {
|
|
9225
9240
|
return !1;
|
|
9226
9241
|
}
|
|
9227
|
-
}, Gi =
|
|
9242
|
+
}, Gi = se("Date"), eo = se("File"), to = se("Blob"), ro = se("FileList"), so = (r) => Qe(r) && W(r.pipe), io = (r) => {
|
|
9228
9243
|
let e;
|
|
9229
9244
|
return r && (typeof FormData == "function" && r instanceof FormData || W(r.append) && ((e = vt(r)) === "formdata" || // detect form-data instance
|
|
9230
9245
|
e === "object" && W(r.toString) && r.toString() === "[object FormData]"));
|
|
9231
|
-
}, oo =
|
|
9246
|
+
}, oo = se("URLSearchParams"), [ao, no, lo, co] = ["ReadableStream", "Request", "Response", "Headers"].map(se), ho = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
9232
9247
|
function Ge(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
9233
9248
|
if (r === null || typeof r > "u")
|
|
9234
9249
|
return;
|
|
@@ -9237,7 +9252,7 @@ function Ge(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
9237
9252
|
for (i = 0, s = r.length; i < s; i++)
|
|
9238
9253
|
e.call(null, r[i], i, r);
|
|
9239
9254
|
else {
|
|
9240
|
-
if (
|
|
9255
|
+
if (Xe(r))
|
|
9241
9256
|
return;
|
|
9242
9257
|
const o = t ? Object.getOwnPropertyNames(r) : Object.keys(r), a = o.length;
|
|
9243
9258
|
let n;
|
|
@@ -9246,7 +9261,7 @@ function Ge(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
9246
9261
|
}
|
|
9247
9262
|
}
|
|
9248
9263
|
function Fr(r, e) {
|
|
9249
|
-
if (
|
|
9264
|
+
if (Xe(r))
|
|
9250
9265
|
return null;
|
|
9251
9266
|
e = e.toLowerCase();
|
|
9252
9267
|
const t = Object.keys(r);
|
|
@@ -9256,11 +9271,11 @@ function Fr(r, e) {
|
|
|
9256
9271
|
return s;
|
|
9257
9272
|
return null;
|
|
9258
9273
|
}
|
|
9259
|
-
const ve = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Hr = (r) => !
|
|
9274
|
+
const ve = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Hr = (r) => !Ae(r) && r !== ve;
|
|
9260
9275
|
function Dt() {
|
|
9261
9276
|
const { caseless: r, skipUndefined: e } = Hr(this) && this || {}, t = {}, i = (s, o) => {
|
|
9262
9277
|
const a = r && Fr(t, o) || o;
|
|
9263
|
-
nt(t[a]) && nt(s) ? t[a] = Dt(t[a], s) : nt(s) ? t[a] = Dt({}, s) : ze(s) ? t[a] = s.slice() : (!e || !
|
|
9278
|
+
nt(t[a]) && nt(s) ? t[a] = Dt(t[a], s) : nt(s) ? t[a] = Dt({}, s) : ze(s) ? t[a] = s.slice() : (!e || !Ae(s)) && (t[a] = s);
|
|
9264
9279
|
};
|
|
9265
9280
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
9266
9281
|
arguments[s] && Ge(arguments[s], i);
|
|
@@ -9308,12 +9323,12 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (Ge(e, (s, o) => {
|
|
|
9308
9323
|
for (; (t = r.exec(e)) !== null; )
|
|
9309
9324
|
i.push(t);
|
|
9310
9325
|
return i;
|
|
9311
|
-
}, xo =
|
|
9326
|
+
}, xo = se("HTMLFormElement"), $o = (r) => r.toLowerCase().replace(
|
|
9312
9327
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
9313
9328
|
function(t, i, s) {
|
|
9314
9329
|
return i.toUpperCase() + s;
|
|
9315
9330
|
}
|
|
9316
|
-
), ur = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype), ko =
|
|
9331
|
+
), ur = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype), ko = se("RegExp"), jr = (r, e) => {
|
|
9317
9332
|
const t = Object.getOwnPropertyDescriptors(r), i = {};
|
|
9318
9333
|
Ge(t, (s, o) => {
|
|
9319
9334
|
let a;
|
|
@@ -9341,8 +9356,8 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (Ge(e, (s, o) => {
|
|
|
9341
9356
|
});
|
|
9342
9357
|
};
|
|
9343
9358
|
return ze(r) ? i(r) : i(String(r).split(e)), t;
|
|
9344
|
-
},
|
|
9345
|
-
},
|
|
9359
|
+
}, Ao = () => {
|
|
9360
|
+
}, Co = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
|
|
9346
9361
|
function Eo(r) {
|
|
9347
9362
|
return !!(r && W(r.append) && r[Nr] === "FormData" && r[bt]);
|
|
9348
9363
|
}
|
|
@@ -9351,21 +9366,21 @@ const To = (r) => {
|
|
|
9351
9366
|
if (Qe(i)) {
|
|
9352
9367
|
if (e.indexOf(i) >= 0)
|
|
9353
9368
|
return;
|
|
9354
|
-
if (
|
|
9369
|
+
if (Xe(i))
|
|
9355
9370
|
return i;
|
|
9356
9371
|
if (!("toJSON" in i)) {
|
|
9357
9372
|
e[s] = i;
|
|
9358
9373
|
const o = ze(i) ? [] : {};
|
|
9359
9374
|
return Ge(i, (a, n) => {
|
|
9360
9375
|
const l = t(a, s + 1);
|
|
9361
|
-
!
|
|
9376
|
+
!Ae(l) && (o[n] = l);
|
|
9362
9377
|
}), e[s] = void 0, o;
|
|
9363
9378
|
}
|
|
9364
9379
|
}
|
|
9365
9380
|
return i;
|
|
9366
9381
|
};
|
|
9367
9382
|
return t(r, 0);
|
|
9368
|
-
}, Do =
|
|
9383
|
+
}, Do = se("AsyncFunction"), Oo = (r) => r && (Qe(r) || W(r)) && W(r.then) && W(r.catch), Vr = ((r, e) => r ? setImmediate : e ? ((t, i) => (ve.addEventListener("message", ({ source: s, data: o }) => {
|
|
9369
9384
|
s === ve && o === t && i.length && i.shift()();
|
|
9370
9385
|
}, !1), (s) => {
|
|
9371
9386
|
i.push(s), ve.postMessage(t, "*");
|
|
@@ -9375,12 +9390,12 @@ const To = (r) => {
|
|
|
9375
9390
|
), Po = typeof queueMicrotask < "u" ? queueMicrotask.bind(ve) : typeof process < "u" && process.nextTick || Vr, Ro = (r) => r != null && W(r[bt]), d = {
|
|
9376
9391
|
isArray: ze,
|
|
9377
9392
|
isArrayBuffer: Ur,
|
|
9378
|
-
isBuffer:
|
|
9393
|
+
isBuffer: Xe,
|
|
9379
9394
|
isFormData: io,
|
|
9380
9395
|
isArrayBufferView: Ki,
|
|
9381
|
-
isString:
|
|
9396
|
+
isString: Ji,
|
|
9382
9397
|
isNumber: qr,
|
|
9383
|
-
isBoolean:
|
|
9398
|
+
isBoolean: Xi,
|
|
9384
9399
|
isObject: Qe,
|
|
9385
9400
|
isPlainObject: nt,
|
|
9386
9401
|
isEmptyObject: Qi,
|
|
@@ -9388,7 +9403,7 @@ const To = (r) => {
|
|
|
9388
9403
|
isRequest: no,
|
|
9389
9404
|
isResponse: lo,
|
|
9390
9405
|
isHeaders: co,
|
|
9391
|
-
isUndefined:
|
|
9406
|
+
isUndefined: Ae,
|
|
9392
9407
|
isDate: Gi,
|
|
9393
9408
|
isFile: eo,
|
|
9394
9409
|
isBlob: to,
|
|
@@ -9406,7 +9421,7 @@ const To = (r) => {
|
|
|
9406
9421
|
inherits: go,
|
|
9407
9422
|
toFlatObject: fo,
|
|
9408
9423
|
kindOf: vt,
|
|
9409
|
-
kindOfTest:
|
|
9424
|
+
kindOfTest: se,
|
|
9410
9425
|
endsWith: mo,
|
|
9411
9426
|
toArray: bo,
|
|
9412
9427
|
forEachEntry: yo,
|
|
@@ -9419,8 +9434,8 @@ const To = (r) => {
|
|
|
9419
9434
|
freezeMethods: So,
|
|
9420
9435
|
toObjectSet: _o,
|
|
9421
9436
|
toCamelCase: $o,
|
|
9422
|
-
noop:
|
|
9423
|
-
toFiniteNumber:
|
|
9437
|
+
noop: Ao,
|
|
9438
|
+
toFiniteNumber: Co,
|
|
9424
9439
|
findKey: Fr,
|
|
9425
9440
|
global: ve,
|
|
9426
9441
|
isContextDefined: Hr,
|
|
@@ -9515,42 +9530,42 @@ function wt(r, e, t) {
|
|
|
9515
9530
|
const i = t.metaTokens, s = t.visitor || c, o = t.dots, a = t.indexes, l = (t.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
|
|
9516
9531
|
if (!d.isFunction(s))
|
|
9517
9532
|
throw new TypeError("visitor must be a function");
|
|
9518
|
-
function h(
|
|
9519
|
-
if (
|
|
9520
|
-
if (d.isDate(
|
|
9521
|
-
return
|
|
9522
|
-
if (d.isBoolean(
|
|
9523
|
-
return
|
|
9524
|
-
if (!l && d.isBlob(
|
|
9533
|
+
function h(g) {
|
|
9534
|
+
if (g === null) return "";
|
|
9535
|
+
if (d.isDate(g))
|
|
9536
|
+
return g.toISOString();
|
|
9537
|
+
if (d.isBoolean(g))
|
|
9538
|
+
return g.toString();
|
|
9539
|
+
if (!l && d.isBlob(g))
|
|
9525
9540
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
9526
|
-
return d.isArrayBuffer(
|
|
9541
|
+
return d.isArrayBuffer(g) || d.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
9527
9542
|
}
|
|
9528
|
-
function c(
|
|
9529
|
-
let x =
|
|
9530
|
-
if (
|
|
9543
|
+
function c(g, v, m) {
|
|
9544
|
+
let x = g;
|
|
9545
|
+
if (g && !m && typeof g == "object") {
|
|
9531
9546
|
if (d.endsWith(v, "{}"))
|
|
9532
|
-
v = i ? v : v.slice(0, -2),
|
|
9533
|
-
else if (d.isArray(
|
|
9534
|
-
return v = Wr(v), x.forEach(function(
|
|
9535
|
-
!(d.isUndefined(
|
|
9547
|
+
v = i ? v : v.slice(0, -2), g = JSON.stringify(g);
|
|
9548
|
+
else if (d.isArray(g) && Mo(g) || (d.isFileList(g) || d.endsWith(v, "[]")) && (x = d.toArray(g)))
|
|
9549
|
+
return v = Wr(v), x.forEach(function(A, T) {
|
|
9550
|
+
!(d.isUndefined(A) || A === null) && e.append(
|
|
9536
9551
|
// eslint-disable-next-line no-nested-ternary
|
|
9537
9552
|
a === !0 ? gr([v], T, o) : a === null ? v : v + "[]",
|
|
9538
|
-
h(
|
|
9553
|
+
h(A)
|
|
9539
9554
|
);
|
|
9540
9555
|
}), !1;
|
|
9541
9556
|
}
|
|
9542
|
-
return Ot(
|
|
9557
|
+
return Ot(g) ? !0 : (e.append(gr(m, v, o), h(g)), !1);
|
|
9543
9558
|
}
|
|
9544
9559
|
const p = [], b = Object.assign(Io, {
|
|
9545
9560
|
defaultVisitor: c,
|
|
9546
9561
|
convertValue: h,
|
|
9547
9562
|
isVisitable: Ot
|
|
9548
9563
|
});
|
|
9549
|
-
function y(
|
|
9550
|
-
if (!d.isUndefined(
|
|
9551
|
-
if (p.indexOf(
|
|
9564
|
+
function y(g, v) {
|
|
9565
|
+
if (!d.isUndefined(g)) {
|
|
9566
|
+
if (p.indexOf(g) !== -1)
|
|
9552
9567
|
throw Error("Circular reference detected in " + v.join("."));
|
|
9553
|
-
p.push(
|
|
9568
|
+
p.push(g), d.forEach(g, function(x, _) {
|
|
9554
9569
|
(!(d.isUndefined(x) || x === null) && s.call(
|
|
9555
9570
|
e,
|
|
9556
9571
|
x,
|
|
@@ -9597,7 +9612,7 @@ Kr.toString = function(e) {
|
|
|
9597
9612
|
function Lo(r) {
|
|
9598
9613
|
return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
9599
9614
|
}
|
|
9600
|
-
function
|
|
9615
|
+
function Jr(r, e, t) {
|
|
9601
9616
|
if (!e)
|
|
9602
9617
|
return r;
|
|
9603
9618
|
const i = t && t.encode || Lo;
|
|
@@ -9666,7 +9681,7 @@ class mr {
|
|
|
9666
9681
|
});
|
|
9667
9682
|
}
|
|
9668
9683
|
}
|
|
9669
|
-
const
|
|
9684
|
+
const Xr = {
|
|
9670
9685
|
silentJSONParsing: !0,
|
|
9671
9686
|
forcedJSONParsing: !0,
|
|
9672
9687
|
clarifyTimeoutError: !1
|
|
@@ -9736,7 +9751,7 @@ function Ko(r, e, t) {
|
|
|
9736
9751
|
return (t || JSON.stringify)(r);
|
|
9737
9752
|
}
|
|
9738
9753
|
const et = {
|
|
9739
|
-
transitional:
|
|
9754
|
+
transitional: Xr,
|
|
9740
9755
|
adapter: ["xhr", "http", "fetch"],
|
|
9741
9756
|
transformRequest: [function(e, t) {
|
|
9742
9757
|
const i = t.getContentType() || "", s = i.indexOf("application/json") > -1, o = d.isObject(e);
|
|
@@ -9804,7 +9819,7 @@ const et = {
|
|
|
9804
9819
|
d.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
|
|
9805
9820
|
et.headers[r] = {};
|
|
9806
9821
|
});
|
|
9807
|
-
const
|
|
9822
|
+
const Jo = d.toObjectSet([
|
|
9808
9823
|
"age",
|
|
9809
9824
|
"authorization",
|
|
9810
9825
|
"content-length",
|
|
@@ -9822,12 +9837,12 @@ const Xo = d.toObjectSet([
|
|
|
9822
9837
|
"referer",
|
|
9823
9838
|
"retry-after",
|
|
9824
9839
|
"user-agent"
|
|
9825
|
-
]),
|
|
9840
|
+
]), Xo = (r) => {
|
|
9826
9841
|
const e = {};
|
|
9827
9842
|
let t, i, s;
|
|
9828
9843
|
return r && r.split(`
|
|
9829
9844
|
`).forEach(function(a) {
|
|
9830
|
-
s = a.indexOf(":"), t = a.substring(0, s).trim().toLowerCase(), i = a.substring(s + 1).trim(), !(!t || e[t] &&
|
|
9845
|
+
s = a.indexOf(":"), t = a.substring(0, s).trim().toLowerCase(), i = a.substring(s + 1).trim(), !(!t || e[t] && Jo[t]) && (t === "set-cookie" ? e[t] ? e[t].push(i) : e[t] = [i] : e[t] = e[t] ? e[t] + ", " + i : i);
|
|
9831
9846
|
}), e;
|
|
9832
9847
|
}, br = Symbol("internals");
|
|
9833
9848
|
function Ne(r) {
|
|
@@ -9844,7 +9859,7 @@ function Qo(r) {
|
|
|
9844
9859
|
return e;
|
|
9845
9860
|
}
|
|
9846
9861
|
const Go = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
|
|
9847
|
-
function
|
|
9862
|
+
function At(r, e, t, i, s) {
|
|
9848
9863
|
if (d.isFunction(i))
|
|
9849
9864
|
return i.call(this, e, t);
|
|
9850
9865
|
if (s && (e = t), !!d.isString(e)) {
|
|
@@ -9885,7 +9900,7 @@ class K {
|
|
|
9885
9900
|
if (d.isPlainObject(e) || e instanceof this.constructor)
|
|
9886
9901
|
a(e, t);
|
|
9887
9902
|
else if (d.isString(e) && (e = e.trim()) && !Go(e))
|
|
9888
|
-
a(
|
|
9903
|
+
a(Xo(e), t);
|
|
9889
9904
|
else if (d.isObject(e) && d.isIterable(e)) {
|
|
9890
9905
|
let n = {}, l, h;
|
|
9891
9906
|
for (const c of e) {
|
|
@@ -9918,7 +9933,7 @@ class K {
|
|
|
9918
9933
|
has(e, t) {
|
|
9919
9934
|
if (e = Ne(e), e) {
|
|
9920
9935
|
const i = d.findKey(this, e);
|
|
9921
|
-
return !!(i && this[i] !== void 0 && (!t ||
|
|
9936
|
+
return !!(i && this[i] !== void 0 && (!t || At(this, this[i], i, t)));
|
|
9922
9937
|
}
|
|
9923
9938
|
return !1;
|
|
9924
9939
|
}
|
|
@@ -9928,7 +9943,7 @@ class K {
|
|
|
9928
9943
|
function o(a) {
|
|
9929
9944
|
if (a = Ne(a), a) {
|
|
9930
9945
|
const n = d.findKey(i, a);
|
|
9931
|
-
n && (!t ||
|
|
9946
|
+
n && (!t || At(i, i[n], n, t)) && (delete i[n], s = !0);
|
|
9932
9947
|
}
|
|
9933
9948
|
}
|
|
9934
9949
|
return d.isArray(e) ? e.forEach(o) : o(e), s;
|
|
@@ -9938,7 +9953,7 @@ class K {
|
|
|
9938
9953
|
let i = t.length, s = !1;
|
|
9939
9954
|
for (; i--; ) {
|
|
9940
9955
|
const o = t[i];
|
|
9941
|
-
(!e ||
|
|
9956
|
+
(!e || At(this, this[o], o, e, !0)) && (delete this[o], s = !0);
|
|
9942
9957
|
}
|
|
9943
9958
|
return s;
|
|
9944
9959
|
}
|
|
@@ -10005,7 +10020,7 @@ d.reduceDescriptors(K.prototype, ({ value: r }, e) => {
|
|
|
10005
10020
|
};
|
|
10006
10021
|
});
|
|
10007
10022
|
d.freezeMethods(K);
|
|
10008
|
-
function
|
|
10023
|
+
function Ct(r, e) {
|
|
10009
10024
|
const t = this || et, i = e || t, s = K.from(i.headers);
|
|
10010
10025
|
let o = i.data;
|
|
10011
10026
|
return d.forEach(r, function(n) {
|
|
@@ -10199,7 +10214,7 @@ function xe(r, e) {
|
|
|
10199
10214
|
const rs = (r) => {
|
|
10200
10215
|
const e = xe({}, r);
|
|
10201
10216
|
let { data: t, withXSRFToken: i, xsrfHeaderName: s, xsrfCookieName: o, headers: a, auth: n } = e;
|
|
10202
|
-
if (e.headers = a = K.from(a), e.url =
|
|
10217
|
+
if (e.headers = a = K.from(a), e.url = Jr(ts(e.baseURL, e.url, e.allowAbsoluteUrls), r.params, r.paramsSerializer), n && a.set(
|
|
10203
10218
|
"Authorization",
|
|
10204
10219
|
"Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
|
|
10205
10220
|
), d.isFormData(t)) {
|
|
@@ -10222,29 +10237,29 @@ const rs = (r) => {
|
|
|
10222
10237
|
const s = rs(r);
|
|
10223
10238
|
let o = s.data;
|
|
10224
10239
|
const a = K.from(s.headers).normalize();
|
|
10225
|
-
let { responseType: n, onUploadProgress: l, onDownloadProgress: h } = s, c, p, b, y,
|
|
10240
|
+
let { responseType: n, onUploadProgress: l, onDownloadProgress: h } = s, c, p, b, y, g;
|
|
10226
10241
|
function v() {
|
|
10227
|
-
y && y(),
|
|
10242
|
+
y && y(), g && g(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
|
|
10228
10243
|
}
|
|
10229
10244
|
let m = new XMLHttpRequest();
|
|
10230
10245
|
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
10231
10246
|
function x() {
|
|
10232
10247
|
if (!m)
|
|
10233
10248
|
return;
|
|
10234
|
-
const
|
|
10249
|
+
const A = K.from(
|
|
10235
10250
|
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
10236
10251
|
), N = {
|
|
10237
10252
|
data: !n || n === "text" || n === "json" ? m.responseText : m.response,
|
|
10238
10253
|
status: m.status,
|
|
10239
10254
|
statusText: m.statusText,
|
|
10240
|
-
headers:
|
|
10255
|
+
headers: A,
|
|
10241
10256
|
config: r,
|
|
10242
10257
|
request: m
|
|
10243
10258
|
};
|
|
10244
|
-
es(function(
|
|
10245
|
-
t(
|
|
10246
|
-
}, function(
|
|
10247
|
-
i(
|
|
10259
|
+
es(function(X) {
|
|
10260
|
+
t(X), v();
|
|
10261
|
+
}, function(X) {
|
|
10262
|
+
i(X), v();
|
|
10248
10263
|
}, N), m = null;
|
|
10249
10264
|
}
|
|
10250
10265
|
"onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
|
|
@@ -10256,7 +10271,7 @@ const rs = (r) => {
|
|
|
10256
10271
|
ue.event = T || null, i(ue), m = null;
|
|
10257
10272
|
}, m.ontimeout = function() {
|
|
10258
10273
|
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
10259
|
-
const N = s.transitional ||
|
|
10274
|
+
const N = s.transitional || Xr;
|
|
10260
10275
|
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), i(new $(
|
|
10261
10276
|
T,
|
|
10262
10277
|
N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
@@ -10265,8 +10280,8 @@ const rs = (r) => {
|
|
|
10265
10280
|
)), m = null;
|
|
10266
10281
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && d.forEach(a.toJSON(), function(T, N) {
|
|
10267
10282
|
m.setRequestHeader(N, T);
|
|
10268
|
-
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b,
|
|
10269
|
-
m && (i(!
|
|
10283
|
+
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, g] = 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 = (A) => {
|
|
10284
|
+
m && (i(!A || A.type ? new Me(null, r, m) : A), m.abort(), m = null);
|
|
10270
10285
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
10271
10286
|
const _ = ra(s.url);
|
|
10272
10287
|
if (_ && F.protocols.indexOf(_) === -1) {
|
|
@@ -10374,68 +10389,68 @@ const rs = (r) => {
|
|
|
10374
10389
|
const { fetch: e, Request: t, Response: i } = r, s = e ? ot(e) : typeof fetch == "function", o = ot(t), a = ot(i);
|
|
10375
10390
|
if (!s)
|
|
10376
10391
|
return !1;
|
|
10377
|
-
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((
|
|
10378
|
-
let
|
|
10392
|
+
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((g) => (v) => g.encode(v))(new Sr()) : async (g) => new Uint8Array(await new t(g).arrayBuffer())), h = o && n && _r(() => {
|
|
10393
|
+
let g = !1;
|
|
10379
10394
|
const v = new t(F.origin, {
|
|
10380
10395
|
body: new kr(),
|
|
10381
10396
|
method: "POST",
|
|
10382
10397
|
get duplex() {
|
|
10383
|
-
return
|
|
10398
|
+
return g = !0, "half";
|
|
10384
10399
|
}
|
|
10385
10400
|
}).headers.has("Content-Type");
|
|
10386
|
-
return
|
|
10401
|
+
return g && !v;
|
|
10387
10402
|
}), c = a && n && _r(() => d.isReadableStream(new i("").body)), p = {
|
|
10388
|
-
stream: c && ((
|
|
10403
|
+
stream: c && ((g) => g.body)
|
|
10389
10404
|
};
|
|
10390
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
10391
|
-
!p[
|
|
10392
|
-
let x = v && v[
|
|
10405
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
10406
|
+
!p[g] && (p[g] = (v, m) => {
|
|
10407
|
+
let x = v && v[g];
|
|
10393
10408
|
if (x)
|
|
10394
10409
|
return x.call(v);
|
|
10395
|
-
throw new $(`Response type '${
|
|
10410
|
+
throw new $(`Response type '${g}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
10396
10411
|
});
|
|
10397
10412
|
});
|
|
10398
|
-
const b = async (
|
|
10399
|
-
if (
|
|
10413
|
+
const b = async (g) => {
|
|
10414
|
+
if (g == null)
|
|
10400
10415
|
return 0;
|
|
10401
|
-
if (d.isBlob(
|
|
10402
|
-
return
|
|
10403
|
-
if (d.isSpecCompliantForm(
|
|
10416
|
+
if (d.isBlob(g))
|
|
10417
|
+
return g.size;
|
|
10418
|
+
if (d.isSpecCompliantForm(g))
|
|
10404
10419
|
return (await new t(F.origin, {
|
|
10405
10420
|
method: "POST",
|
|
10406
|
-
body:
|
|
10421
|
+
body: g
|
|
10407
10422
|
}).arrayBuffer()).byteLength;
|
|
10408
|
-
if (d.isArrayBufferView(
|
|
10409
|
-
return
|
|
10410
|
-
if (d.isURLSearchParams(
|
|
10411
|
-
return (await l(
|
|
10412
|
-
}, y = async (
|
|
10413
|
-
const m = d.toFiniteNumber(
|
|
10423
|
+
if (d.isArrayBufferView(g) || d.isArrayBuffer(g))
|
|
10424
|
+
return g.byteLength;
|
|
10425
|
+
if (d.isURLSearchParams(g) && (g = g + ""), d.isString(g))
|
|
10426
|
+
return (await l(g)).byteLength;
|
|
10427
|
+
}, y = async (g, v) => {
|
|
10428
|
+
const m = d.toFiniteNumber(g.getContentLength());
|
|
10414
10429
|
return m ?? b(v);
|
|
10415
10430
|
};
|
|
10416
|
-
return async (
|
|
10431
|
+
return async (g) => {
|
|
10417
10432
|
let {
|
|
10418
10433
|
url: v,
|
|
10419
10434
|
method: m,
|
|
10420
10435
|
data: x,
|
|
10421
10436
|
signal: _,
|
|
10422
|
-
cancelToken:
|
|
10437
|
+
cancelToken: A,
|
|
10423
10438
|
timeout: T,
|
|
10424
10439
|
onDownloadProgress: N,
|
|
10425
10440
|
onUploadProgress: ue,
|
|
10426
|
-
responseType:
|
|
10441
|
+
responseType: X,
|
|
10427
10442
|
headers: $t,
|
|
10428
10443
|
withCredentials: tt = "same-origin",
|
|
10429
10444
|
fetchOptions: Wt
|
|
10430
|
-
} = rs(
|
|
10431
|
-
|
|
10432
|
-
let rt = ha([_,
|
|
10445
|
+
} = rs(g), Kt = e || fetch;
|
|
10446
|
+
X = X ? (X + "").toLowerCase() : "text";
|
|
10447
|
+
let rt = ha([_, A && A.toAbortSignal()], T), Ie = null;
|
|
10433
10448
|
const ge = rt && rt.unsubscribe && (() => {
|
|
10434
10449
|
rt.unsubscribe();
|
|
10435
10450
|
});
|
|
10436
|
-
let
|
|
10451
|
+
let Jt;
|
|
10437
10452
|
try {
|
|
10438
|
-
if (ue && h && m !== "get" && m !== "head" && (
|
|
10453
|
+
if (ue && h && m !== "get" && m !== "head" && (Jt = await y($t, x)) !== 0) {
|
|
10439
10454
|
let de = new t(v, {
|
|
10440
10455
|
method: "POST",
|
|
10441
10456
|
body: x,
|
|
@@ -10443,25 +10458,25 @@ const rs = (r) => {
|
|
|
10443
10458
|
}), ke;
|
|
10444
10459
|
if (d.isFormData(x) && (ke = de.headers.get("content-type")) && $t.setContentType(ke), de.body) {
|
|
10445
10460
|
const [kt, st] = vr(
|
|
10446
|
-
|
|
10461
|
+
Jt,
|
|
10447
10462
|
pt(yr(ue))
|
|
10448
10463
|
);
|
|
10449
10464
|
x = xr(de.body, $r, kt, st);
|
|
10450
10465
|
}
|
|
10451
10466
|
}
|
|
10452
10467
|
d.isString(tt) || (tt = tt ? "include" : "omit");
|
|
10453
|
-
const
|
|
10468
|
+
const ie = o && "credentials" in t.prototype, Xt = {
|
|
10454
10469
|
...Wt,
|
|
10455
10470
|
signal: rt,
|
|
10456
10471
|
method: m.toUpperCase(),
|
|
10457
10472
|
headers: $t.normalize().toJSON(),
|
|
10458
10473
|
body: x,
|
|
10459
10474
|
duplex: "half",
|
|
10460
|
-
credentials:
|
|
10475
|
+
credentials: ie ? tt : void 0
|
|
10461
10476
|
};
|
|
10462
|
-
Ie = o && new t(v,
|
|
10463
|
-
let ce = await (o ? Kt(Ie, Wt) : Kt(v,
|
|
10464
|
-
const Qt = c && (
|
|
10477
|
+
Ie = o && new t(v, Xt);
|
|
10478
|
+
let ce = await (o ? Kt(Ie, Wt) : Kt(v, Xt));
|
|
10479
|
+
const Qt = c && (X === "stream" || X === "response");
|
|
10465
10480
|
if (c && (N || Qt && ge)) {
|
|
10466
10481
|
const de = {};
|
|
10467
10482
|
["status", "statusText", "headers"].forEach((Gt) => {
|
|
@@ -10478,25 +10493,25 @@ const rs = (r) => {
|
|
|
10478
10493
|
de
|
|
10479
10494
|
);
|
|
10480
10495
|
}
|
|
10481
|
-
|
|
10482
|
-
let ns = await p[d.findKey(p,
|
|
10496
|
+
X = X || "text";
|
|
10497
|
+
let ns = await p[d.findKey(p, X) || "text"](ce, g);
|
|
10483
10498
|
return !Qt && ge && ge(), await new Promise((de, ke) => {
|
|
10484
10499
|
es(de, ke, {
|
|
10485
10500
|
data: ns,
|
|
10486
10501
|
headers: K.from(ce.headers),
|
|
10487
10502
|
status: ce.status,
|
|
10488
10503
|
statusText: ce.statusText,
|
|
10489
|
-
config:
|
|
10504
|
+
config: g,
|
|
10490
10505
|
request: Ie
|
|
10491
10506
|
});
|
|
10492
10507
|
});
|
|
10493
|
-
} catch (
|
|
10494
|
-
throw ge && ge(),
|
|
10495
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
10508
|
+
} catch (ie) {
|
|
10509
|
+
throw ge && ge(), ie && ie.name === "TypeError" && /Load failed|fetch/i.test(ie.message) ? Object.assign(
|
|
10510
|
+
new $("Network Error", $.ERR_NETWORK, g, Ie),
|
|
10496
10511
|
{
|
|
10497
|
-
cause:
|
|
10512
|
+
cause: ie.cause || ie
|
|
10498
10513
|
}
|
|
10499
|
-
) : $.from(
|
|
10514
|
+
) : $.from(ie, ie && ie.code, g, Ie);
|
|
10500
10515
|
}
|
|
10501
10516
|
};
|
|
10502
10517
|
}, ba = /* @__PURE__ */ new Map(), ss = (r) => {
|
|
@@ -10528,7 +10543,7 @@ d.forEach(Zt, (r, e) => {
|
|
|
10528
10543
|
Object.defineProperty(r, "adapterName", { value: e });
|
|
10529
10544
|
}
|
|
10530
10545
|
});
|
|
10531
|
-
const
|
|
10546
|
+
const Ar = (r) => `- ${r}`, va = (r) => d.isFunction(r) || r === null || r === !1;
|
|
10532
10547
|
function ya(r, e) {
|
|
10533
10548
|
r = d.isArray(r) ? r : [r];
|
|
10534
10549
|
const { length: t } = r;
|
|
@@ -10548,8 +10563,8 @@ function ya(r, e) {
|
|
|
10548
10563
|
([l, h]) => `adapter ${l} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
10549
10564
|
);
|
|
10550
10565
|
let n = t ? a.length > 1 ? `since :
|
|
10551
|
-
` + a.map(
|
|
10552
|
-
`) : " " +
|
|
10566
|
+
` + a.map(Ar).join(`
|
|
10567
|
+
`) : " " + Ar(a[0]) : "as no adapter specified";
|
|
10553
10568
|
throw new $(
|
|
10554
10569
|
"There is no suitable adapter to dispatch the request " + n,
|
|
10555
10570
|
"ERR_NOT_SUPPORT"
|
|
@@ -10573,18 +10588,18 @@ function Et(r) {
|
|
|
10573
10588
|
if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
|
|
10574
10589
|
throw new Me(null, r);
|
|
10575
10590
|
}
|
|
10576
|
-
function
|
|
10577
|
-
return Et(r), r.headers = K.from(r.headers), r.data =
|
|
10591
|
+
function Cr(r) {
|
|
10592
|
+
return Et(r), r.headers = K.from(r.headers), r.data = Ct.call(
|
|
10578
10593
|
r,
|
|
10579
10594
|
r.transformRequest
|
|
10580
10595
|
), ["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) {
|
|
10581
|
-
return Et(r), i.data =
|
|
10596
|
+
return Et(r), i.data = Ct.call(
|
|
10582
10597
|
r,
|
|
10583
10598
|
r.transformResponse,
|
|
10584
10599
|
i
|
|
10585
10600
|
), i.headers = K.from(i.headers), i;
|
|
10586
10601
|
}, function(i) {
|
|
10587
|
-
return Gr(i) || (Et(r), i && i.response && (i.response.data =
|
|
10602
|
+
return Gr(i) || (Et(r), i && i.response && (i.response.data = Ct.call(
|
|
10588
10603
|
r,
|
|
10589
10604
|
r.transformResponse,
|
|
10590
10605
|
i.response
|
|
@@ -10634,7 +10649,7 @@ function wa(r, e, t) {
|
|
|
10634
10649
|
const ct = {
|
|
10635
10650
|
assertOptions: wa,
|
|
10636
10651
|
validators: xt
|
|
10637
|
-
},
|
|
10652
|
+
}, oe = ct.validators;
|
|
10638
10653
|
class ye {
|
|
10639
10654
|
constructor(e) {
|
|
10640
10655
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -10671,17 +10686,17 @@ class ye {
|
|
|
10671
10686
|
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = xe(this.defaults, t);
|
|
10672
10687
|
const { transitional: i, paramsSerializer: s, headers: o } = t;
|
|
10673
10688
|
i !== void 0 && ct.assertOptions(i, {
|
|
10674
|
-
silentJSONParsing:
|
|
10675
|
-
forcedJSONParsing:
|
|
10676
|
-
clarifyTimeoutError:
|
|
10689
|
+
silentJSONParsing: oe.transitional(oe.boolean),
|
|
10690
|
+
forcedJSONParsing: oe.transitional(oe.boolean),
|
|
10691
|
+
clarifyTimeoutError: oe.transitional(oe.boolean)
|
|
10677
10692
|
}, !1), s != null && (d.isFunction(s) ? t.paramsSerializer = {
|
|
10678
10693
|
serialize: s
|
|
10679
10694
|
} : ct.assertOptions(s, {
|
|
10680
|
-
encode:
|
|
10681
|
-
serialize:
|
|
10695
|
+
encode: oe.function,
|
|
10696
|
+
serialize: oe.function
|
|
10682
10697
|
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), ct.assertOptions(t, {
|
|
10683
|
-
baseUrl:
|
|
10684
|
-
withXsrfToken:
|
|
10698
|
+
baseUrl: oe.spelling("baseURL"),
|
|
10699
|
+
withXsrfToken: oe.spelling("withXSRFToken")
|
|
10685
10700
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
10686
10701
|
let a = o && d.merge(
|
|
10687
10702
|
o.common,
|
|
@@ -10689,8 +10704,8 @@ class ye {
|
|
|
10689
10704
|
);
|
|
10690
10705
|
o && d.forEach(
|
|
10691
10706
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
10692
|
-
(
|
|
10693
|
-
delete o[
|
|
10707
|
+
(g) => {
|
|
10708
|
+
delete o[g];
|
|
10694
10709
|
}
|
|
10695
10710
|
), t.headers = K.concat(a, o);
|
|
10696
10711
|
const n = [];
|
|
@@ -10704,26 +10719,26 @@ class ye {
|
|
|
10704
10719
|
});
|
|
10705
10720
|
let c, p = 0, b;
|
|
10706
10721
|
if (!l) {
|
|
10707
|
-
const
|
|
10708
|
-
for (
|
|
10709
|
-
c = c.then(
|
|
10722
|
+
const g = [Cr.bind(this), void 0];
|
|
10723
|
+
for (g.unshift(...n), g.push(...h), b = g.length, c = Promise.resolve(t); p < b; )
|
|
10724
|
+
c = c.then(g[p++], g[p++]);
|
|
10710
10725
|
return c;
|
|
10711
10726
|
}
|
|
10712
10727
|
b = n.length;
|
|
10713
10728
|
let y = t;
|
|
10714
10729
|
for (; p < b; ) {
|
|
10715
|
-
const
|
|
10730
|
+
const g = n[p++], v = n[p++];
|
|
10716
10731
|
try {
|
|
10717
|
-
y =
|
|
10732
|
+
y = g(y);
|
|
10718
10733
|
} catch (m) {
|
|
10719
10734
|
v.call(this, m);
|
|
10720
10735
|
break;
|
|
10721
10736
|
}
|
|
10722
10737
|
}
|
|
10723
10738
|
try {
|
|
10724
|
-
c =
|
|
10725
|
-
} catch (
|
|
10726
|
-
return Promise.reject(
|
|
10739
|
+
c = Cr.call(this, y);
|
|
10740
|
+
} catch (g) {
|
|
10741
|
+
return Promise.reject(g);
|
|
10727
10742
|
}
|
|
10728
10743
|
for (p = 0, b = h.length; p < b; )
|
|
10729
10744
|
c = c.then(h[p++], h[p++]);
|
|
@@ -10732,7 +10747,7 @@ class ye {
|
|
|
10732
10747
|
getUri(e) {
|
|
10733
10748
|
e = xe(this.defaults, e);
|
|
10734
10749
|
const t = ts(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
10735
|
-
return
|
|
10750
|
+
return Jr(t, e.params, e.paramsSerializer);
|
|
10736
10751
|
}
|
|
10737
10752
|
}
|
|
10738
10753
|
d.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -10946,7 +10961,7 @@ class Tr extends Error {
|
|
|
10946
10961
|
super(e), this.name = "AuthRefreshError";
|
|
10947
10962
|
}
|
|
10948
10963
|
}
|
|
10949
|
-
const
|
|
10964
|
+
const Ca = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
10950
10965
|
const t = z.create({
|
|
10951
10966
|
baseURL: r,
|
|
10952
10967
|
headers: {
|
|
@@ -11049,10 +11064,10 @@ const Aa = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
|
11049
11064
|
), t;
|
|
11050
11065
|
};
|
|
11051
11066
|
function Ea() {
|
|
11052
|
-
Vs(), Ys(), Ks(),
|
|
11067
|
+
Vs(), Ys(), Ks(), Xs(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(), Fi(), Gs(), Lr(), Vi(), Yi();
|
|
11053
11068
|
}
|
|
11054
11069
|
export {
|
|
11055
|
-
|
|
11070
|
+
C as AuthForm,
|
|
11056
11071
|
Tr as AuthRefreshError,
|
|
11057
11072
|
pe as BaseButton,
|
|
11058
11073
|
Ee as BaseCard,
|
|
@@ -11062,21 +11077,21 @@ export {
|
|
|
11062
11077
|
Te as BaseIcon,
|
|
11063
11078
|
Q as BaseInput,
|
|
11064
11079
|
Ze as BaseList,
|
|
11065
|
-
|
|
11080
|
+
G as BaseListItem,
|
|
11066
11081
|
D as BaseSelect,
|
|
11067
11082
|
De as BaseTab,
|
|
11068
|
-
|
|
11069
|
-
|
|
11083
|
+
ae as BaseTabs,
|
|
11084
|
+
J as BaseTextarea,
|
|
11070
11085
|
L as BaseTimePicker,
|
|
11071
11086
|
Oe as BaseToast,
|
|
11072
11087
|
Pe as QuantitySelect,
|
|
11073
11088
|
Re as ThemeToggle,
|
|
11074
|
-
|
|
11089
|
+
Ca as createApiClient,
|
|
11075
11090
|
Ea as registerAll,
|
|
11076
11091
|
Vs as registerAuthForm,
|
|
11077
11092
|
Ys as registerBaseButton,
|
|
11078
11093
|
Ks as registerBaseCard,
|
|
11079
|
-
|
|
11094
|
+
Xs as registerBaseDatePicker,
|
|
11080
11095
|
ti as registerBaseDateTimePicker,
|
|
11081
11096
|
si as registerBaseDrawer,
|
|
11082
11097
|
Ei as registerBaseIcon,
|