@cal.macconnachie/web-components 2.4.0 → 2.4.1
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 +2 -1
- package/dist/index.js +848 -824
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ let _r = class {
|
|
|
17
17
|
return this.cssText;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const rs = (r) => new _r(typeof r == "string" ? r : r + "", void 0, Dt),
|
|
20
|
+
const rs = (r) => new _r(typeof r == "string" ? r : r + "", void 0, Dt), F = (r, ...e) => {
|
|
21
21
|
const t = r.length === 1 ? r[0] : e.reduce(((i, s, o) => i + ((a) => {
|
|
22
22
|
if (a._$cssResult$ === !0) return a.cssText;
|
|
23
23
|
if (typeof a == "number") return a;
|
|
@@ -249,20 +249,20 @@ let $e = class extends HTMLElement {
|
|
|
249
249
|
$e.elementStyles = [], $e.shadowRootOptions = { mode: "open" }, $e[Be("elementProperties")] = /* @__PURE__ */ new Map(), $e[Be("finalized")] = /* @__PURE__ */ new Map(), hs?.({ ReactiveElement: $e }), (ct.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
250
|
const Ot = globalThis, nt = Ot.trustedTypes, Qt = nt ? nt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Cr = "$lit$", ce = `lit$${Math.random().toFixed(9).slice(2)}$`, Er = "?" + ce, ps = `<${Er}>`, ve = document, Ne = () => ve.createComment(""), qe = (r) => r === null || typeof r != "object" && typeof r != "function", Rt = Array.isArray, us = (r) => Rt(r) || typeof r?.[Symbol.iterator] == "function", yt = `[
|
|
251
251
|
\f\r]`, Me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, er = /-->/g, tr = />/g, ue = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, sr = /"/g, Ar = /^(?:script|style|textarea|title)$/i, fs = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }),
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, sr = /"/g, Ar = /^(?:script|style|textarea|title)$/i, fs = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = fs(1), oe = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), ir = /* @__PURE__ */ new WeakMap(), ge = ve.createTreeWalker(ve, 129);
|
|
253
253
|
function Tr(r, e) {
|
|
254
254
|
if (!Rt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
255
|
return Qt !== void 0 ? Qt.createHTML(e) : e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const gs = (r, e) => {
|
|
258
258
|
const t = r.length - 1, i = [];
|
|
259
259
|
let s, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", a = Me;
|
|
260
260
|
for (let n = 0; n < t; n++) {
|
|
261
|
-
const
|
|
262
|
-
let p,
|
|
263
|
-
for (;
|
|
261
|
+
const c = r[n];
|
|
262
|
+
let p, d, h = -1, b = 0;
|
|
263
|
+
for (; b < c.length && (a.lastIndex = b, d = a.exec(c), d !== null); ) b = a.lastIndex, a === Me ? d[1] === "!--" ? a = er : d[1] !== void 0 ? a = tr : d[2] !== void 0 ? (Ar.test(d[2]) && (s = RegExp("</" + d[2], "g")), a = ue) : d[3] !== void 0 && (a = ue) : a === ue ? d[0] === ">" ? (a = s ?? Me, h = -1) : d[1] === void 0 ? h = -2 : (h = a.lastIndex - d[2].length, p = d[1], a = d[3] === void 0 ? ue : d[3] === '"' ? sr : rr) : a === sr || a === rr ? a = ue : a === er || a === tr ? a = Me : (a = ue, s = void 0);
|
|
264
264
|
const y = a === ue && r[n + 1].startsWith("/>") ? " " : "";
|
|
265
|
-
o += a === Me ?
|
|
265
|
+
o += a === Me ? c + ps : h >= 0 ? (i.push(p), c.slice(0, h) + Cr + c.slice(h) + ce + y) : c + ce + (h === -2 ? n : y);
|
|
266
266
|
}
|
|
267
267
|
return [Tr(r, o + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
268
268
|
};
|
|
@@ -271,29 +271,29 @@ class Fe {
|
|
|
271
271
|
let s;
|
|
272
272
|
this.parts = [];
|
|
273
273
|
let o = 0, a = 0;
|
|
274
|
-
const n = e.length - 1,
|
|
275
|
-
if (this.el = Fe.createElement(p, i),
|
|
274
|
+
const n = e.length - 1, c = this.parts, [p, d] = gs(e, t);
|
|
275
|
+
if (this.el = Fe.createElement(p, i), ge.currentNode = this.el.content, t === 2 || t === 3) {
|
|
276
276
|
const h = this.el.content.firstChild;
|
|
277
277
|
h.replaceWith(...h.childNodes);
|
|
278
278
|
}
|
|
279
|
-
for (; (s =
|
|
279
|
+
for (; (s = ge.nextNode()) !== null && c.length < n; ) {
|
|
280
280
|
if (s.nodeType === 1) {
|
|
281
281
|
if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(Cr)) {
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
} else h.startsWith(ce) && (
|
|
282
|
+
const b = d[a++], y = s.getAttribute(h).split(ce), f = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
c.push({ type: 1, index: o, name: f[2], strings: y, ctor: f[1] === "." ? bs : f[1] === "?" ? vs : f[1] === "@" ? ys : dt }), s.removeAttribute(h);
|
|
284
|
+
} else h.startsWith(ce) && (c.push({ type: 6, index: o }), s.removeAttribute(h));
|
|
285
285
|
if (Ar.test(s.tagName)) {
|
|
286
|
-
const h = s.textContent.split(ce),
|
|
287
|
-
if (
|
|
286
|
+
const h = s.textContent.split(ce), b = h.length - 1;
|
|
287
|
+
if (b > 0) {
|
|
288
288
|
s.textContent = nt ? nt.emptyScript : "";
|
|
289
|
-
for (let y = 0; y <
|
|
290
|
-
s.append(h[
|
|
289
|
+
for (let y = 0; y < b; y++) s.append(h[y], Ne()), ge.nextNode(), c.push({ type: 2, index: ++o });
|
|
290
|
+
s.append(h[b], Ne());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
} else if (s.nodeType === 8) if (s.data === Er)
|
|
293
|
+
} else if (s.nodeType === 8) if (s.data === Er) c.push({ type: 2, index: o });
|
|
294
294
|
else {
|
|
295
295
|
let h = -1;
|
|
296
|
-
for (; (h = s.data.indexOf(ce, h + 1)) !== -1; )
|
|
296
|
+
for (; (h = s.data.indexOf(ce, h + 1)) !== -1; ) c.push({ type: 7, index: o }), h += ce.length - 1;
|
|
297
297
|
}
|
|
298
298
|
o++;
|
|
299
299
|
}
|
|
@@ -309,7 +309,7 @@ function ke(r, e, t = r, i) {
|
|
|
309
309
|
const o = qe(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 = ke(r, s._$AS(r, e.values), s, i)), e;
|
|
311
311
|
}
|
|
312
|
-
let
|
|
312
|
+
let ms = class {
|
|
313
313
|
constructor(e, t) {
|
|
314
314
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
315
315
|
}
|
|
@@ -321,16 +321,16 @@ let gs = class {
|
|
|
321
321
|
}
|
|
322
322
|
u(e) {
|
|
323
323
|
const { el: { content: t }, parts: i } = this._$AD, s = (e?.creationScope ?? ve).importNode(t, !0);
|
|
324
|
-
|
|
325
|
-
let o =
|
|
326
|
-
for (;
|
|
327
|
-
if (a ===
|
|
324
|
+
ge.currentNode = s;
|
|
325
|
+
let o = ge.nextNode(), a = 0, n = 0, c = i[0];
|
|
326
|
+
for (; c !== void 0; ) {
|
|
327
|
+
if (a === c.index) {
|
|
328
328
|
let p;
|
|
329
|
-
|
|
329
|
+
c.type === 2 ? p = new _e(o, o.nextSibling, this, e) : c.type === 1 ? p = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (p = new ws(o, this, e)), this._$AV.push(p), c = i[++n];
|
|
330
330
|
}
|
|
331
|
-
a !==
|
|
331
|
+
a !== c?.index && (o = ge.nextNode(), a++);
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return ge.currentNode = ve, s;
|
|
334
334
|
}
|
|
335
335
|
p(e) {
|
|
336
336
|
let t = 0;
|
|
@@ -371,7 +371,7 @@ class _e {
|
|
|
371
371
|
const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Fe.createElement(Tr(i.h, i.h[0]), this.options)), i);
|
|
372
372
|
if (this._$AH?._$AD === s) this._$AH.p(t);
|
|
373
373
|
else {
|
|
374
|
-
const o = new
|
|
374
|
+
const o = new ms(s, this), a = o.u(this.options);
|
|
375
375
|
o.p(t), this.T(a), this._$AH = o;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
@@ -412,8 +412,8 @@ class dt {
|
|
|
412
412
|
if (o === void 0) e = ke(this, e, t, 0), a = !qe(e) || e !== this._$AH && e !== oe, a && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const n = e;
|
|
415
|
-
let
|
|
416
|
-
for (e = o[0],
|
|
415
|
+
let c, p;
|
|
416
|
+
for (e = o[0], c = 0; c < o.length - 1; c++) p = ke(this, n[i + c], t, c), p === oe && (p = this._$AH[c]), a ||= !qe(p) || p !== this._$AH[c], p === k ? e = k : e !== k && (e += (p ?? "") + o[c + 1]), this._$AH[c] = p;
|
|
417
417
|
}
|
|
418
418
|
a && !s && this.j(e);
|
|
419
419
|
}
|
|
@@ -505,8 +505,8 @@ const _s = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged
|
|
|
505
505
|
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(t.name, r), i === "accessor") {
|
|
506
506
|
const { name: a } = t;
|
|
507
507
|
return { set(n) {
|
|
508
|
-
const
|
|
509
|
-
e.set.call(this, n), this.requestUpdate(a,
|
|
508
|
+
const c = e.get.call(this);
|
|
509
|
+
e.set.call(this, n), this.requestUpdate(a, c, r);
|
|
510
510
|
}, init(n) {
|
|
511
511
|
return n !== void 0 && this.C(a, void 0, r, n), n;
|
|
512
512
|
} };
|
|
@@ -514,23 +514,23 @@ const _s = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged
|
|
|
514
514
|
if (i === "setter") {
|
|
515
515
|
const { name: a } = t;
|
|
516
516
|
return function(n) {
|
|
517
|
-
const
|
|
518
|
-
e.call(this, n), this.requestUpdate(a,
|
|
517
|
+
const c = this[a];
|
|
518
|
+
e.call(this, n), this.requestUpdate(a, c, r);
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
throw Error("Unsupported decorator location: " + i);
|
|
522
522
|
};
|
|
523
|
-
function
|
|
523
|
+
function u(r) {
|
|
524
524
|
return (e, t) => typeof t == "object" ? Cs(r, e, t) : ((i, s, o) => {
|
|
525
525
|
const a = s.hasOwnProperty(o);
|
|
526
526
|
return s.constructor.createProperty(o, i), a ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
|
527
527
|
})(r, e, t);
|
|
528
528
|
}
|
|
529
529
|
function w(r) {
|
|
530
|
-
return
|
|
530
|
+
return u({ ...r, state: !0, attribute: !1 });
|
|
531
531
|
}
|
|
532
532
|
const Es = (r, e, t) => (t.configurable = !0, t.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(r, e, t), t);
|
|
533
|
-
function
|
|
533
|
+
function V(r, e) {
|
|
534
534
|
return (t, i, s) => {
|
|
535
535
|
const o = (a) => a.renderRoot?.querySelector(r) ?? null;
|
|
536
536
|
return Es(t, i, { get() {
|
|
@@ -563,14 +563,14 @@ const { I: As } = xs, or = () => document.createComment(""), Ie = (r, e, t) => {
|
|
|
563
563
|
} else {
|
|
564
564
|
const o = t._$AB.nextSibling, a = t._$AM, n = a !== r;
|
|
565
565
|
if (n) {
|
|
566
|
-
let
|
|
567
|
-
t._$AQ?.(r), t._$AM = r, t._$AP !== void 0 && (
|
|
566
|
+
let c;
|
|
567
|
+
t._$AQ?.(r), t._$AM = r, t._$AP !== void 0 && (c = r._$AU) !== a._$AU && t._$AP(c);
|
|
568
568
|
}
|
|
569
569
|
if (o !== s || n) {
|
|
570
|
-
let
|
|
571
|
-
for (;
|
|
572
|
-
const p =
|
|
573
|
-
i.insertBefore(
|
|
570
|
+
let c = t._$AA;
|
|
571
|
+
for (; c !== o; ) {
|
|
572
|
+
const p = c.nextSibling;
|
|
573
|
+
i.insertBefore(c, s), c = p;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
@@ -600,32 +600,32 @@ const ar = (r, e, t) => {
|
|
|
600
600
|
update(r, [e, t, i]) {
|
|
601
601
|
const s = Ps(r), { values: o, keys: a } = this.dt(e, t, i);
|
|
602
602
|
if (!Array.isArray(s)) return this.ut = a, o;
|
|
603
|
-
const n = this.ut ??= [],
|
|
604
|
-
let p,
|
|
605
|
-
for (; h <=
|
|
606
|
-
else if (s[
|
|
607
|
-
else if (n[h] === a[y])
|
|
608
|
-
else if (n[
|
|
609
|
-
else if (n[h] === a[
|
|
610
|
-
else if (n[
|
|
611
|
-
else if (p === void 0 && (p = ar(a, y,
|
|
612
|
-
const v =
|
|
613
|
-
if (
|
|
603
|
+
const n = this.ut ??= [], c = [];
|
|
604
|
+
let p, d, h = 0, b = s.length - 1, y = 0, f = o.length - 1;
|
|
605
|
+
for (; h <= b && y <= f; ) if (s[h] === null) h++;
|
|
606
|
+
else if (s[b] === null) b--;
|
|
607
|
+
else if (n[h] === a[y]) c[y] = fe(s[h], o[y]), h++, y++;
|
|
608
|
+
else if (n[b] === a[f]) c[f] = fe(s[b], o[f]), b--, f--;
|
|
609
|
+
else if (n[h] === a[f]) c[f] = fe(s[h], o[f]), Ie(r, c[f + 1], s[h]), h++, f--;
|
|
610
|
+
else if (n[b] === a[y]) c[y] = fe(s[b], o[y]), Ie(r, s[h], s[b]), b--, y++;
|
|
611
|
+
else if (p === void 0 && (p = ar(a, y, f), d = ar(n, h, b)), p.has(n[h])) if (p.has(n[b])) {
|
|
612
|
+
const v = d.get(a[y]), m = v !== void 0 ? s[v] : null;
|
|
613
|
+
if (m === null) {
|
|
614
614
|
const x = Ie(r, s[h]);
|
|
615
|
-
fe(x, o[y]),
|
|
616
|
-
} else
|
|
615
|
+
fe(x, o[y]), c[y] = x;
|
|
616
|
+
} else c[y] = fe(m, o[y]), Ie(r, s[h], m), s[v] = null;
|
|
617
617
|
y++;
|
|
618
|
-
} else wt(s[
|
|
618
|
+
} else wt(s[b]), b--;
|
|
619
619
|
else wt(s[h]), h++;
|
|
620
|
-
for (; y <=
|
|
621
|
-
const v = Ie(r,
|
|
622
|
-
fe(v, o[y]),
|
|
620
|
+
for (; y <= f; ) {
|
|
621
|
+
const v = Ie(r, c[f + 1]);
|
|
622
|
+
fe(v, o[y]), c[y++] = v;
|
|
623
623
|
}
|
|
624
|
-
for (; h <=
|
|
624
|
+
for (; h <= b; ) {
|
|
625
625
|
const v = s[h++];
|
|
626
626
|
v !== null && wt(v);
|
|
627
627
|
}
|
|
628
|
-
return this.ut = a, Ds(r,
|
|
628
|
+
return this.ut = a, Ds(r, c), oe;
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
var Os = Object.defineProperty, Dr = (r, e, t, i) => {
|
|
@@ -660,10 +660,10 @@ class L extends Ue {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
Dr([
|
|
663
|
-
|
|
663
|
+
u({ type: String, attribute: "data-theme", reflect: !0 })
|
|
664
664
|
], L.prototype, "theme");
|
|
665
665
|
Dr([
|
|
666
|
-
|
|
666
|
+
u({ type: String, attribute: "storage-key" })
|
|
667
667
|
], L.prototype, "storageKey");
|
|
668
668
|
const z = ({
|
|
669
669
|
name: r,
|
|
@@ -685,11 +685,11 @@ const z = ({
|
|
|
685
685
|
};
|
|
686
686
|
return {
|
|
687
687
|
login: async ({
|
|
688
|
-
email:
|
|
688
|
+
email: d,
|
|
689
689
|
password: h,
|
|
690
|
-
accessToken:
|
|
690
|
+
accessToken: b,
|
|
691
691
|
refreshToken: y,
|
|
692
|
-
idToken:
|
|
692
|
+
idToken: f
|
|
693
693
|
}) => {
|
|
694
694
|
const v = await fetch(`${r}${e.login}`, {
|
|
695
695
|
method: "POST",
|
|
@@ -698,35 +698,35 @@ const z = ({
|
|
|
698
698
|
},
|
|
699
699
|
credentials: "include",
|
|
700
700
|
body: JSON.stringify({
|
|
701
|
-
email:
|
|
701
|
+
email: d,
|
|
702
702
|
password: h,
|
|
703
|
-
accessToken:
|
|
703
|
+
accessToken: b,
|
|
704
704
|
refreshToken: y,
|
|
705
|
-
idToken:
|
|
705
|
+
idToken: f
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
if (!v.ok) {
|
|
709
|
-
const
|
|
710
|
-
throw new Error(
|
|
709
|
+
const m = await v.json();
|
|
710
|
+
throw new Error(m.message || m.error || "Login failed");
|
|
711
711
|
}
|
|
712
712
|
return v.json();
|
|
713
713
|
},
|
|
714
714
|
logout: async () => {
|
|
715
|
-
const
|
|
715
|
+
const d = await fetch(`${r}${e.logout}?return_url=${encodeURIComponent(window.location.href)}`, {
|
|
716
716
|
method: "POST",
|
|
717
717
|
headers: {
|
|
718
718
|
"Content-Type": "application/json"
|
|
719
719
|
},
|
|
720
720
|
credentials: "include"
|
|
721
721
|
});
|
|
722
|
-
if (!
|
|
723
|
-
const h = await
|
|
722
|
+
if (!d.ok) {
|
|
723
|
+
const h = await d.json();
|
|
724
724
|
throw new Error(h.message || h.error || "Logout failed");
|
|
725
725
|
}
|
|
726
|
-
return
|
|
726
|
+
return d.json();
|
|
727
727
|
},
|
|
728
728
|
refresh: async () => {
|
|
729
|
-
const
|
|
729
|
+
const d = `${r}${e.refresh}`.replace(/\/api\/api\//, "/api/"), h = await fetch(d, {
|
|
730
730
|
method: "POST",
|
|
731
731
|
headers: {
|
|
732
732
|
"Content-Type": "application/json"
|
|
@@ -734,26 +734,26 @@ const z = ({
|
|
|
734
734
|
credentials: "include"
|
|
735
735
|
});
|
|
736
736
|
if (!h.ok) {
|
|
737
|
-
const
|
|
738
|
-
throw new Error(
|
|
737
|
+
const b = await h.json();
|
|
738
|
+
throw new Error(b.message || b.error || "Failed to refresh token");
|
|
739
739
|
}
|
|
740
740
|
return h.json();
|
|
741
741
|
},
|
|
742
742
|
checkSession: async () => {
|
|
743
|
-
const
|
|
743
|
+
const d = await fetch(`${r}${e.checkSession}`, {
|
|
744
744
|
method: "GET",
|
|
745
745
|
headers: {
|
|
746
746
|
"Content-Type": "application/json"
|
|
747
747
|
},
|
|
748
748
|
credentials: "include"
|
|
749
749
|
});
|
|
750
|
-
if (!
|
|
751
|
-
const h = await
|
|
750
|
+
if (!d.ok) {
|
|
751
|
+
const h = await d.json();
|
|
752
752
|
throw new Error(h.message || h.error || "No valid session");
|
|
753
753
|
}
|
|
754
|
-
return
|
|
754
|
+
return d.json();
|
|
755
755
|
},
|
|
756
|
-
requestRegisterOtp: async ({ email:
|
|
756
|
+
requestRegisterOtp: async ({ email: d }) => {
|
|
757
757
|
const h = await fetch(`${r}${e.requestRegisterOtp}`, {
|
|
758
758
|
method: "POST",
|
|
759
759
|
headers: {
|
|
@@ -761,45 +761,45 @@ const z = ({
|
|
|
761
761
|
},
|
|
762
762
|
credentials: "include",
|
|
763
763
|
body: JSON.stringify({
|
|
764
|
-
email:
|
|
764
|
+
email: d
|
|
765
765
|
})
|
|
766
766
|
});
|
|
767
767
|
if (!h.ok) {
|
|
768
|
-
const
|
|
769
|
-
throw new Error(
|
|
768
|
+
const b = await h.json();
|
|
769
|
+
throw new Error(b.message || b.error || "Failed to request OTP");
|
|
770
770
|
}
|
|
771
771
|
return h.json();
|
|
772
772
|
},
|
|
773
773
|
register: async ({
|
|
774
|
-
email:
|
|
774
|
+
email: d,
|
|
775
775
|
password: h,
|
|
776
|
-
phone_number:
|
|
776
|
+
phone_number: b,
|
|
777
777
|
family_name: y,
|
|
778
|
-
given_name:
|
|
778
|
+
given_name: f,
|
|
779
779
|
code: v
|
|
780
780
|
}) => {
|
|
781
|
-
const
|
|
781
|
+
const m = await fetch(`${r}${e.register}`, {
|
|
782
782
|
method: "POST",
|
|
783
783
|
headers: {
|
|
784
784
|
"Content-Type": "application/json"
|
|
785
785
|
},
|
|
786
786
|
credentials: "include",
|
|
787
787
|
body: JSON.stringify({
|
|
788
|
-
email:
|
|
788
|
+
email: d,
|
|
789
789
|
password: h,
|
|
790
|
-
phone_number:
|
|
790
|
+
phone_number: b,
|
|
791
791
|
family_name: y,
|
|
792
|
-
given_name:
|
|
792
|
+
given_name: f,
|
|
793
793
|
code: v
|
|
794
794
|
})
|
|
795
795
|
});
|
|
796
|
-
if (!
|
|
797
|
-
const x = await
|
|
796
|
+
if (!m.ok) {
|
|
797
|
+
const x = await m.json();
|
|
798
798
|
throw new Error(x.message || x.error || "Registration failed");
|
|
799
799
|
}
|
|
800
|
-
return
|
|
800
|
+
return m.json();
|
|
801
801
|
},
|
|
802
|
-
requestResetPassword: async ({ email:
|
|
802
|
+
requestResetPassword: async ({ email: d }) => {
|
|
803
803
|
const h = await fetch(`${r}${e.requestResetPassword}`, {
|
|
804
804
|
method: "POST",
|
|
805
805
|
headers: {
|
|
@@ -807,19 +807,19 @@ const z = ({
|
|
|
807
807
|
},
|
|
808
808
|
credentials: "include",
|
|
809
809
|
body: JSON.stringify({
|
|
810
|
-
email:
|
|
810
|
+
email: d
|
|
811
811
|
})
|
|
812
812
|
});
|
|
813
813
|
if (!h.ok) {
|
|
814
|
-
const
|
|
815
|
-
throw new Error(
|
|
814
|
+
const b = await h.json();
|
|
815
|
+
throw new Error(b.message || b.error || "Failed to request password reset");
|
|
816
816
|
}
|
|
817
817
|
return h.json();
|
|
818
818
|
},
|
|
819
819
|
resetPassword: async ({
|
|
820
|
-
email:
|
|
820
|
+
email: d,
|
|
821
821
|
otp: h,
|
|
822
|
-
newPassword:
|
|
822
|
+
newPassword: b
|
|
823
823
|
}) => {
|
|
824
824
|
const y = await fetch(`${r}${e.resetPassword}`, {
|
|
825
825
|
method: "POST",
|
|
@@ -828,14 +828,14 @@ const z = ({
|
|
|
828
828
|
},
|
|
829
829
|
credentials: "include",
|
|
830
830
|
body: JSON.stringify({
|
|
831
|
-
email:
|
|
831
|
+
email: d,
|
|
832
832
|
otp: h,
|
|
833
|
-
newPassword:
|
|
833
|
+
newPassword: b
|
|
834
834
|
})
|
|
835
835
|
});
|
|
836
836
|
if (!y.ok) {
|
|
837
|
-
const
|
|
838
|
-
throw new Error(
|
|
837
|
+
const f = await y.json();
|
|
838
|
+
throw new Error(f.message || f.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -856,51 +856,51 @@ const z = ({
|
|
|
856
856
|
clientId: i,
|
|
857
857
|
redirectUri: Ms(s)
|
|
858
858
|
}, a = (x) => {
|
|
859
|
-
const
|
|
860
|
-
return crypto.getRandomValues(
|
|
859
|
+
const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", C = new Uint8Array(x);
|
|
860
|
+
return crypto.getRandomValues(C), Array.from(C).map((T) => _[T % _.length]).join("");
|
|
861
861
|
}, n = async (x) => {
|
|
862
|
-
const
|
|
862
|
+
const C = new TextEncoder().encode(x), T = await crypto.subtle.digest("SHA-256", C);
|
|
863
863
|
return btoa(String.fromCharCode(...new Uint8Array(T))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
864
|
-
},
|
|
865
|
-
const x = a(128),
|
|
866
|
-
return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge:
|
|
864
|
+
}, c = async () => {
|
|
865
|
+
const x = a(128), _ = await n(x);
|
|
866
|
+
return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge: _ };
|
|
867
867
|
}, p = () => {
|
|
868
868
|
const x = a(32);
|
|
869
869
|
return sessionStorage.setItem("oauth_state", x), x;
|
|
870
|
-
},
|
|
871
|
-
const { codeChallenge: x } = await
|
|
870
|
+
}, d = async () => {
|
|
871
|
+
const { codeChallenge: x } = await c(), _ = p(), C = new URLSearchParams({
|
|
872
872
|
response_type: "code",
|
|
873
873
|
client_id: o.clientId,
|
|
874
874
|
redirect_uri: o.redirectUri,
|
|
875
875
|
identity_provider: "Google",
|
|
876
876
|
scope: "openid email profile",
|
|
877
|
-
state:
|
|
877
|
+
state: _,
|
|
878
878
|
code_challenge_method: "S256",
|
|
879
879
|
code_challenge: x,
|
|
880
880
|
prompt: "select_account"
|
|
881
881
|
});
|
|
882
|
-
return `${o.domain}/oauth2/authorize?${
|
|
882
|
+
return `${o.domain}/oauth2/authorize?${C.toString()}`;
|
|
883
883
|
}, h = async () => {
|
|
884
|
-
const x = await
|
|
884
|
+
const x = await d();
|
|
885
885
|
window.location.href = x;
|
|
886
|
-
},
|
|
887
|
-
const { codeChallenge: x } = await
|
|
886
|
+
}, b = async () => {
|
|
887
|
+
const { codeChallenge: x } = await c(), _ = p(), C = new URLSearchParams({
|
|
888
888
|
response_type: "code",
|
|
889
889
|
client_id: o.clientId,
|
|
890
890
|
redirect_uri: o.redirectUri,
|
|
891
891
|
identity_provider: "SignInWithApple",
|
|
892
892
|
scope: "openid email profile",
|
|
893
|
-
state:
|
|
893
|
+
state: _,
|
|
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?${C.toString()}`;
|
|
898
898
|
}, y = async () => {
|
|
899
|
-
const x = await
|
|
899
|
+
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
901
|
-
},
|
|
902
|
-
const
|
|
903
|
-
return sessionStorage.removeItem("oauth_state"),
|
|
901
|
+
}, f = (x) => {
|
|
902
|
+
const _ = sessionStorage.getItem("oauth_state");
|
|
903
|
+
return sessionStorage.removeItem("oauth_state"), _ === x;
|
|
904
904
|
}, v = () => {
|
|
905
905
|
const x = sessionStorage.getItem("pkce_code_verifier");
|
|
906
906
|
return sessionStorage.removeItem("pkce_code_verifier"), x;
|
|
@@ -908,34 +908,34 @@ const z = ({
|
|
|
908
908
|
return {
|
|
909
909
|
redirectToGoogleAuth: h,
|
|
910
910
|
redirectToAppleAuth: y,
|
|
911
|
-
validateState:
|
|
911
|
+
validateState: f,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
|
-
const
|
|
915
|
-
if (!
|
|
914
|
+
const _ = v();
|
|
915
|
+
if (!_)
|
|
916
916
|
throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
|
|
917
|
-
const
|
|
917
|
+
const C = new URLSearchParams({
|
|
918
918
|
grant_type: "authorization_code",
|
|
919
919
|
client_id: o.clientId,
|
|
920
920
|
code: x,
|
|
921
921
|
redirect_uri: o.redirectUri,
|
|
922
|
-
code_verifier:
|
|
922
|
+
code_verifier: _
|
|
923
923
|
}), T = await fetch(`${o.domain}/oauth2/token`, {
|
|
924
924
|
method: "POST",
|
|
925
925
|
headers: {
|
|
926
926
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
927
927
|
},
|
|
928
|
-
body:
|
|
928
|
+
body: C.toString()
|
|
929
929
|
});
|
|
930
930
|
if (!T.ok) {
|
|
931
|
-
const
|
|
932
|
-
throw new Error(`Token exchange failed: ${
|
|
931
|
+
const B = await T.text();
|
|
932
|
+
throw new Error(`Token exchange failed: ${B}`);
|
|
933
933
|
}
|
|
934
934
|
return T.json();
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
};
|
|
938
|
-
var Ls = Object.defineProperty,
|
|
938
|
+
var Ls = Object.defineProperty, A = (r, e, t, i) => {
|
|
939
939
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
940
940
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
941
941
|
return s && Ls(e, t, s), s;
|
|
@@ -952,9 +952,9 @@ const Bs = [
|
|
|
952
952
|
"expires_in"
|
|
953
953
|
], Us = () => z({
|
|
954
954
|
name: "auth-form",
|
|
955
|
-
element:
|
|
955
|
+
element: E
|
|
956
956
|
});
|
|
957
|
-
class
|
|
957
|
+
class E extends L {
|
|
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;
|
|
@@ -1182,37 +1182,37 @@ class C extends L {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
async handleOAuthCallbackIfPresent() {
|
|
1184
1184
|
this.error = "";
|
|
1185
|
-
const e = new URLSearchParams(window.location.search), t = e.get("access_token"), i = e.get("id_token"), s = e.get("refresh_token"), o = e.get("code"), a = e.get("state"), n = e.get("error"),
|
|
1185
|
+
const e = new URLSearchParams(window.location.search), t = e.get("access_token"), i = e.get("id_token"), s = e.get("refresh_token"), o = e.get("code"), a = e.get("state"), n = e.get("error"), c = e.get("error_description");
|
|
1186
1186
|
if ((t || i || o || n) && !this.hasHandledOAuthCallback) {
|
|
1187
1187
|
this.hasHandledOAuthCallback = !0, this.isLoading = !0;
|
|
1188
1188
|
try {
|
|
1189
1189
|
if (n)
|
|
1190
|
-
throw new Error(
|
|
1190
|
+
throw new Error(c || `OAuth error: ${n}`);
|
|
1191
1191
|
if (t && i && s) {
|
|
1192
|
-
const { user:
|
|
1192
|
+
const { user: d } = await this.getApiService().login({
|
|
1193
1193
|
accessToken: t,
|
|
1194
1194
|
refreshToken: s,
|
|
1195
1195
|
idToken: i
|
|
1196
1196
|
});
|
|
1197
|
-
this.handleAuthSuccess(
|
|
1197
|
+
this.handleAuthSuccess(d);
|
|
1198
1198
|
} else if (o && a) {
|
|
1199
1199
|
if (!this.isOAuthConfigured())
|
|
1200
1200
|
throw new Error("OAuth is not configured correctly. Please try again later.");
|
|
1201
|
-
const
|
|
1202
|
-
if (!
|
|
1201
|
+
const d = this.getOAuthService();
|
|
1202
|
+
if (!d)
|
|
1203
1203
|
throw new Error("OAuth is not configured correctly. Please try again later.");
|
|
1204
|
-
if (!
|
|
1204
|
+
if (!d.validateState(a))
|
|
1205
1205
|
throw new Error("Invalid state parameter. Please try signing in again.");
|
|
1206
|
-
const h = await
|
|
1206
|
+
const h = await d.exchangeCodeForTokens(o), { user: b } = await this.getApiService().login({
|
|
1207
1207
|
accessToken: h.access_token,
|
|
1208
1208
|
refreshToken: h.refresh_token,
|
|
1209
1209
|
idToken: h.id_token
|
|
1210
1210
|
});
|
|
1211
|
-
this.handleAuthSuccess(
|
|
1211
|
+
this.handleAuthSuccess(b);
|
|
1212
1212
|
} else
|
|
1213
1213
|
throw new Error("Missing required OAuth parameters");
|
|
1214
|
-
} catch (
|
|
1215
|
-
this.error =
|
|
1214
|
+
} catch (d) {
|
|
1215
|
+
this.error = d.message || "An unexpected error occurred during authentication";
|
|
1216
1216
|
} finally {
|
|
1217
1217
|
this.stripOAuthParamsFromUrl(), this.isLoading = !1;
|
|
1218
1218
|
}
|
|
@@ -1362,8 +1362,8 @@ class C extends L {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
render() {
|
|
1365
|
-
return this.isLoading && this.hasHandledOAuthCallback ?
|
|
1366
|
-
${this.logoUrl.length > 0 ?
|
|
1365
|
+
return this.isLoading && this.hasHandledOAuthCallback ? g`
|
|
1366
|
+
${this.logoUrl.length > 0 ? g`
|
|
1367
1367
|
<header class="modal-header">
|
|
1368
1368
|
<div class="auth-header">
|
|
1369
1369
|
<img
|
|
@@ -1393,9 +1393,9 @@ class C extends L {
|
|
|
1393
1393
|
${this.renderAlerts()}
|
|
1394
1394
|
</div>
|
|
1395
1395
|
</div>
|
|
1396
|
-
` : this.isLoggedIn ?
|
|
1396
|
+
` : this.isLoggedIn ? g`
|
|
1397
1397
|
<!-- Header -->
|
|
1398
|
-
${this.logoUrl.length > 0 ?
|
|
1398
|
+
${this.logoUrl.length > 0 ? g`
|
|
1399
1399
|
<header class="modal-header">
|
|
1400
1400
|
<div class="auth-header">
|
|
1401
1401
|
<img
|
|
@@ -1425,9 +1425,9 @@ class C extends L {
|
|
|
1425
1425
|
${this.renderAlerts()}
|
|
1426
1426
|
</div>
|
|
1427
1427
|
</div>
|
|
1428
|
-
` :
|
|
1428
|
+
` : g`
|
|
1429
1429
|
<!-- Header -->
|
|
1430
|
-
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ?
|
|
1430
|
+
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ? g`
|
|
1431
1431
|
<header class="modal-header">
|
|
1432
1432
|
|
|
1433
1433
|
<div class="auth-header">
|
|
@@ -1461,7 +1461,7 @@ class C extends L {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
renderFormContent() {
|
|
1463
1463
|
if (this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form"))
|
|
1464
|
-
return
|
|
1464
|
+
return g`
|
|
1465
1465
|
<!-- Email -->
|
|
1466
1466
|
<base-input
|
|
1467
1467
|
id="email-input"
|
|
@@ -1487,7 +1487,7 @@ class C extends L {
|
|
|
1487
1487
|
@input=${(e) => this.password = e.detail.value}
|
|
1488
1488
|
></base-input>
|
|
1489
1489
|
|
|
1490
|
-
${this.mode === "signin" && this.error ?
|
|
1490
|
+
${this.mode === "signin" && this.error ? g`
|
|
1491
1491
|
<div class="forgot-row">
|
|
1492
1492
|
<button type="button" class="text-btn" @click=${this.startReset}>
|
|
1493
1493
|
Forgot your password?
|
|
@@ -1495,7 +1495,7 @@ class C extends L {
|
|
|
1495
1495
|
</div>
|
|
1496
1496
|
` : k}
|
|
1497
1497
|
|
|
1498
|
-
${this.mode === "signup" ?
|
|
1498
|
+
${this.mode === "signup" ? g`
|
|
1499
1499
|
<!-- Confirm Password -->
|
|
1500
1500
|
<base-input
|
|
1501
1501
|
type="password"
|
|
@@ -1534,14 +1534,14 @@ class C extends L {
|
|
|
1534
1534
|
` : k}
|
|
1535
1535
|
`;
|
|
1536
1536
|
if (this.mode === "signup" && this.signupStep === "otp")
|
|
1537
|
-
return
|
|
1537
|
+
return g`
|
|
1538
1538
|
<div class="otp-section">
|
|
1539
1539
|
<label class="otp-label">Enter 6-digit code</label>
|
|
1540
1540
|
<div class="otp-inputs" role="group" aria-label="One time code">
|
|
1541
1541
|
${nr(
|
|
1542
1542
|
Array.from({ length: 6 }, (e, t) => t),
|
|
1543
1543
|
(e) => e,
|
|
1544
|
-
(e) =>
|
|
1544
|
+
(e) => g`
|
|
1545
1545
|
<input
|
|
1546
1546
|
class="otp-input signup-otp-input ${this.errors.signup_otp ? "otp-input--error" : ""}"
|
|
1547
1547
|
type="text"
|
|
@@ -1558,7 +1558,7 @@ class C extends L {
|
|
|
1558
1558
|
`
|
|
1559
1559
|
)}
|
|
1560
1560
|
</div>
|
|
1561
|
-
${this.errors.signup_otp ?
|
|
1561
|
+
${this.errors.signup_otp ? g`<p class="otp-error">${this.errors.signup_otp}</p>` : k}
|
|
1562
1562
|
</div>
|
|
1563
1563
|
<div class="forgot-row">
|
|
1564
1564
|
<button type="button" class="text-btn" @click=${this.backToSignupForm}>
|
|
@@ -1567,7 +1567,7 @@ class C extends L {
|
|
|
1567
1567
|
</div>
|
|
1568
1568
|
`;
|
|
1569
1569
|
if (this.resetStep === "request")
|
|
1570
|
-
return
|
|
1570
|
+
return g`
|
|
1571
1571
|
<base-input
|
|
1572
1572
|
id="email-input"
|
|
1573
1573
|
type="email"
|
|
@@ -1587,7 +1587,7 @@ class C extends L {
|
|
|
1587
1587
|
`;
|
|
1588
1588
|
if (this.resetStep === "confirm") {
|
|
1589
1589
|
const e = this.otpDigits.every((t) => /^\d$/.test(t));
|
|
1590
|
-
return
|
|
1590
|
+
return g`
|
|
1591
1591
|
<base-input
|
|
1592
1592
|
type="email"
|
|
1593
1593
|
label="Email Address"
|
|
@@ -1605,7 +1605,7 @@ class C extends L {
|
|
|
1605
1605
|
${nr(
|
|
1606
1606
|
Array.from({ length: 6 }, (t, i) => i),
|
|
1607
1607
|
(t) => t,
|
|
1608
|
-
(t) =>
|
|
1608
|
+
(t) => g`
|
|
1609
1609
|
<input
|
|
1610
1610
|
class="otp-input reset-otp-input ${this.errors.otp ? "otp-input--error" : ""}"
|
|
1611
1611
|
type="text"
|
|
@@ -1622,10 +1622,10 @@ class C extends L {
|
|
|
1622
1622
|
`
|
|
1623
1623
|
)}
|
|
1624
1624
|
</div>
|
|
1625
|
-
${this.errors.otp ?
|
|
1625
|
+
${this.errors.otp ? g`<p class="otp-error">${this.errors.otp}</p>` : k}
|
|
1626
1626
|
</div>
|
|
1627
1627
|
|
|
1628
|
-
${e ?
|
|
1628
|
+
${e ? g`
|
|
1629
1629
|
<div class="new-password-fields">
|
|
1630
1630
|
<base-input
|
|
1631
1631
|
type="password"
|
|
@@ -1662,7 +1662,7 @@ class C extends L {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
renderActions() {
|
|
1664
1664
|
if (this.resetStep === "request")
|
|
1665
|
-
return
|
|
1665
|
+
return g`
|
|
1666
1666
|
<base-button
|
|
1667
1667
|
type="submit"
|
|
1668
1668
|
variant="primary"
|
|
@@ -1675,7 +1675,7 @@ class C extends L {
|
|
|
1675
1675
|
</base-button>
|
|
1676
1676
|
`;
|
|
1677
1677
|
if (this.resetStep === "confirm")
|
|
1678
|
-
return this.otpDigits.every((t) => /^\d$/.test(t)) ?
|
|
1678
|
+
return this.otpDigits.every((t) => /^\d$/.test(t)) ? g`
|
|
1679
1679
|
<base-button
|
|
1680
1680
|
type="submit"
|
|
1681
1681
|
variant="primary"
|
|
@@ -1689,7 +1689,7 @@ class C extends L {
|
|
|
1689
1689
|
` : k;
|
|
1690
1690
|
if (this.mode === "signup" && this.signupStep === "otp") {
|
|
1691
1691
|
const e = this.signupOtpDigits.every((t) => /^\d$/.test(t));
|
|
1692
|
-
return
|
|
1692
|
+
return g`
|
|
1693
1693
|
<base-button
|
|
1694
1694
|
type="submit"
|
|
1695
1695
|
variant="primary"
|
|
@@ -1702,7 +1702,7 @@ class C extends L {
|
|
|
1702
1702
|
</base-button>
|
|
1703
1703
|
`;
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1705
|
+
return g`
|
|
1706
1706
|
<base-button
|
|
1707
1707
|
type="submit"
|
|
1708
1708
|
variant="primary"
|
|
@@ -1714,7 +1714,7 @@ class C extends L {
|
|
|
1714
1714
|
${this.isLoading ? "Loading..." : this.mode === "signup" ? "Continue" : "Sign In"}
|
|
1715
1715
|
</base-button>
|
|
1716
1716
|
|
|
1717
|
-
${this.isOAuthConfigured() && this.mode === "signin" ?
|
|
1717
|
+
${this.isOAuthConfigured() && this.mode === "signin" ? g`
|
|
1718
1718
|
<div class="button-row">
|
|
1719
1719
|
<button
|
|
1720
1720
|
type="button"
|
|
@@ -1738,8 +1738,8 @@ class C extends L {
|
|
|
1738
1738
|
`;
|
|
1739
1739
|
}
|
|
1740
1740
|
renderAlerts() {
|
|
1741
|
-
return
|
|
1742
|
-
${this.notice ?
|
|
1741
|
+
return g`
|
|
1742
|
+
${this.notice ? g`
|
|
1743
1743
|
<div class="alert alert--success">
|
|
1744
1744
|
${this.notice}
|
|
1745
1745
|
<button class="alert-close" @click=${() => this.notice = ""} aria-label="Dismiss">
|
|
@@ -1747,7 +1747,7 @@ class C extends L {
|
|
|
1747
1747
|
</button>
|
|
1748
1748
|
</div>
|
|
1749
1749
|
` : k}
|
|
1750
|
-
${this.error && !this.isLoading ?
|
|
1750
|
+
${this.error && !this.isLoading ? g`
|
|
1751
1751
|
<div class="alert alert--error">
|
|
1752
1752
|
${this.error}
|
|
1753
1753
|
<button class="alert-close" @click=${() => this.error = ""} aria-label="Dismiss">
|
|
@@ -1758,7 +1758,7 @@ class C extends L {
|
|
|
1758
1758
|
`;
|
|
1759
1759
|
}
|
|
1760
1760
|
renderFooter() {
|
|
1761
|
-
return this.isLoggedIn ? k : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? k :
|
|
1761
|
+
return this.isLoggedIn ? k : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? k : g`
|
|
1762
1762
|
<div class="auth-footer">
|
|
1763
1763
|
<p class="toggle-text">
|
|
1764
1764
|
${this.mode === "signup" ? "Already have an account?" : "Don't have an account?"}
|
|
@@ -1767,7 +1767,7 @@ class C extends L {
|
|
|
1767
1767
|
${this.mode === "signup" ? "Sign In" : "Sign Up"}
|
|
1768
1768
|
</button>
|
|
1769
1769
|
</div>
|
|
1770
|
-
` :
|
|
1770
|
+
` : g`
|
|
1771
1771
|
<div class="auth-footer">
|
|
1772
1772
|
<p class="toggle-text">
|
|
1773
1773
|
Having trouble? Email
|
|
@@ -1777,7 +1777,7 @@ class C extends L {
|
|
|
1777
1777
|
`;
|
|
1778
1778
|
}
|
|
1779
1779
|
renderGoogleIcon() {
|
|
1780
|
-
return
|
|
1780
|
+
return g`
|
|
1781
1781
|
<svg viewBox="-0.5 0 48 48" width="18" height="18" fill="none">
|
|
1782
1782
|
<path d="M9.82727273,24 C9.82727273,22.4757333 10.0804318,21.0144 10.5322727,19.6437333 L2.62345455,13.6042667 C1.08206818,16.7338667 0.213636364,20.2602667 0.213636364,24 C0.213636364,27.7365333 1.081,31.2608 2.62025,34.3882667 L10.5247955,28.3370667 C10.0772273,26.9728 9.82727273,25.5168 9.82727273,24" fill="#FBBC05"></path>
|
|
1783
1783
|
<path d="M23.7136364,10.1333333 C27.025,10.1333333 30.0159091,11.3066667 32.3659091,13.2266667 L39.2022727,6.4 C35.0363636,2.77333333 29.6954545,0.533333333 23.7136364,0.533333333 C14.4268636,0.533333333 6.44540909,5.84426667 2.62345455,13.6042667 L10.5322727,19.6437333 C12.3545909,14.112 17.5491591,10.1333333 23.7136364,10.1333333" fill="#EB4335"></path>
|
|
@@ -1787,7 +1787,7 @@ class C extends L {
|
|
|
1787
1787
|
`;
|
|
1788
1788
|
}
|
|
1789
1789
|
renderAppleIcon() {
|
|
1790
|
-
return
|
|
1790
|
+
return g`
|
|
1791
1791
|
<svg viewBox="-3.5 0 48 48" width="18" height="18" class="apple-icon">
|
|
1792
1792
|
<path d="M231.174735,567.792499 C232.740177,565.771699 233.926883,562.915484 233.497649,560 C230.939077,560.177808 227.948466,561.814769 226.203475,563.948463 C224.612784,565.88177 223.305444,568.757742 223.816036,571.549042 C226.613071,571.636535 229.499881,569.960061 231.174735,567.792499 L231.174735,567.792499 Z M245,595.217241 C243.880625,597.712195 243.341978,598.827022 241.899976,601.03692 C239.888467,604.121745 237.052156,607.962958 233.53412,607.991182 C230.411652,608.02505 229.606488,605.94498 225.367451,605.970382 C221.128414,605.99296 220.244696,608.030695 217.116618,607.999649 C213.601387,607.968603 210.913765,604.502761 208.902256,601.417937 C203.27452,592.79849 202.68257,582.680377 206.152914,577.298162 C208.621711,573.476705 212.515678,571.241407 216.173986,571.241407 C219.89682,571.241407 222.239372,573.296075 225.322563,573.296075 C228.313175,573.296075 230.133913,571.235762 234.440281,571.235762 C237.700215,571.235762 241.153726,573.022307 243.611302,576.10431 C235.554045,580.546683 236.85858,592.121127 245,595.217241 L245,595.217241 Z" transform="translate(-204.000000, -560.000000)" fill="#0b0b0a"></path>
|
|
1793
1793
|
</svg>
|
|
@@ -1811,7 +1811,7 @@ class C extends L {
|
|
|
1811
1811
|
return this.userEmail;
|
|
1812
1812
|
}
|
|
1813
1813
|
static {
|
|
1814
|
-
this.styles =
|
|
1814
|
+
this.styles = F`
|
|
1815
1815
|
.modal-header {
|
|
1816
1816
|
display: flex;
|
|
1817
1817
|
align-items: center;
|
|
@@ -2070,90 +2070,90 @@ class C extends L {
|
|
|
2070
2070
|
}`;
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
],
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
],
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
],
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
],
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
],
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
],
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
],
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
],
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
],
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
],
|
|
2103
|
-
|
|
2073
|
+
A([
|
|
2074
|
+
u({ type: String, attribute: "initial-mode" })
|
|
2075
|
+
], E.prototype, "initialMode");
|
|
2076
|
+
A([
|
|
2077
|
+
u({ type: String, attribute: "logo-url" })
|
|
2078
|
+
], E.prototype, "logoUrl");
|
|
2079
|
+
A([
|
|
2080
|
+
u({ type: String, attribute: "oauth-domain" })
|
|
2081
|
+
], E.prototype, "oauthDomain");
|
|
2082
|
+
A([
|
|
2083
|
+
u({ type: String, attribute: "oauth-region" })
|
|
2084
|
+
], E.prototype, "oauthRegion");
|
|
2085
|
+
A([
|
|
2086
|
+
u({ type: String, attribute: "oauth-user-pool-id" })
|
|
2087
|
+
], E.prototype, "oauthUserPoolId");
|
|
2088
|
+
A([
|
|
2089
|
+
u({ type: String, attribute: "oauth-client-id" })
|
|
2090
|
+
], E.prototype, "oauthClientId");
|
|
2091
|
+
A([
|
|
2092
|
+
u({ type: String, attribute: "oauth-redirect-uri" })
|
|
2093
|
+
], E.prototype, "oauthRedirectUri");
|
|
2094
|
+
A([
|
|
2095
|
+
u({ type: String, attribute: "oauth-spa-domain" })
|
|
2096
|
+
], E.prototype, "oauthSpaDomain");
|
|
2097
|
+
A([
|
|
2098
|
+
u({ type: Boolean, attribute: "disable-signup" })
|
|
2099
|
+
], E.prototype, "disableSignup");
|
|
2100
|
+
A([
|
|
2101
|
+
u({ type: Boolean, attribute: "mock-mode" })
|
|
2102
|
+
], E.prototype, "mockMode");
|
|
2103
|
+
A([
|
|
2104
2104
|
w()
|
|
2105
|
-
],
|
|
2106
|
-
|
|
2105
|
+
], E.prototype, "mode");
|
|
2106
|
+
A([
|
|
2107
2107
|
w()
|
|
2108
|
-
],
|
|
2109
|
-
|
|
2108
|
+
], E.prototype, "resetStep");
|
|
2109
|
+
A([
|
|
2110
2110
|
w()
|
|
2111
|
-
],
|
|
2112
|
-
|
|
2111
|
+
], E.prototype, "signupStep");
|
|
2112
|
+
A([
|
|
2113
2113
|
w()
|
|
2114
|
-
],
|
|
2115
|
-
|
|
2114
|
+
], E.prototype, "isLoading");
|
|
2115
|
+
A([
|
|
2116
2116
|
w()
|
|
2117
|
-
],
|
|
2118
|
-
|
|
2117
|
+
], E.prototype, "isLoggedIn");
|
|
2118
|
+
A([
|
|
2119
2119
|
w()
|
|
2120
|
-
],
|
|
2121
|
-
|
|
2120
|
+
], E.prototype, "email");
|
|
2121
|
+
A([
|
|
2122
2122
|
w()
|
|
2123
|
-
],
|
|
2124
|
-
|
|
2123
|
+
], E.prototype, "password");
|
|
2124
|
+
A([
|
|
2125
2125
|
w()
|
|
2126
|
-
],
|
|
2127
|
-
|
|
2126
|
+
], E.prototype, "givenName");
|
|
2127
|
+
A([
|
|
2128
2128
|
w()
|
|
2129
|
-
],
|
|
2130
|
-
|
|
2129
|
+
], E.prototype, "familyName");
|
|
2130
|
+
A([
|
|
2131
2131
|
w()
|
|
2132
|
-
],
|
|
2133
|
-
|
|
2132
|
+
], E.prototype, "newPassword");
|
|
2133
|
+
A([
|
|
2134
2134
|
w()
|
|
2135
|
-
],
|
|
2136
|
-
|
|
2135
|
+
], E.prototype, "confirmPassword");
|
|
2136
|
+
A([
|
|
2137
2137
|
w()
|
|
2138
|
-
],
|
|
2139
|
-
|
|
2138
|
+
], E.prototype, "notice");
|
|
2139
|
+
A([
|
|
2140
2140
|
w()
|
|
2141
|
-
],
|
|
2142
|
-
|
|
2141
|
+
], E.prototype, "error");
|
|
2142
|
+
A([
|
|
2143
2143
|
w()
|
|
2144
|
-
],
|
|
2145
|
-
|
|
2144
|
+
], E.prototype, "errors");
|
|
2145
|
+
A([
|
|
2146
2146
|
w()
|
|
2147
|
-
],
|
|
2148
|
-
|
|
2147
|
+
], E.prototype, "userEmail");
|
|
2148
|
+
A([
|
|
2149
2149
|
w()
|
|
2150
|
-
],
|
|
2151
|
-
|
|
2150
|
+
], E.prototype, "otpDigits");
|
|
2151
|
+
A([
|
|
2152
2152
|
w()
|
|
2153
|
-
],
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
],
|
|
2153
|
+
], E.prototype, "signupOtpDigits");
|
|
2154
|
+
A([
|
|
2155
|
+
V("#email-input")
|
|
2156
|
+
], E.prototype, "emailInput");
|
|
2157
2157
|
const S = It(class extends Lt {
|
|
2158
2158
|
constructor(r) {
|
|
2159
2159
|
if (super(r), r.type !== Mt.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.");
|
|
@@ -2190,7 +2190,7 @@ class de extends L {
|
|
|
2190
2190
|
super(...arguments), this.size = "md", this.variant = "primary", this.hover = void 0, this.disabled = !1, this.fullWidth = !1, this.loading = !1, this.type = "button";
|
|
2191
2191
|
}
|
|
2192
2192
|
static {
|
|
2193
|
-
this.styles =
|
|
2193
|
+
this.styles = F`
|
|
2194
2194
|
:host {
|
|
2195
2195
|
display: inline-block;
|
|
2196
2196
|
}
|
|
@@ -2623,7 +2623,7 @@ class de extends L {
|
|
|
2623
2623
|
"base-button--loading": this.loading,
|
|
2624
2624
|
[`base-button--hover-${this.hover}`]: !!this.hover
|
|
2625
2625
|
};
|
|
2626
|
-
return
|
|
2626
|
+
return g`
|
|
2627
2627
|
<button
|
|
2628
2628
|
class=${S(e)}
|
|
2629
2629
|
type=${this.type}
|
|
@@ -2633,7 +2633,7 @@ class de extends L {
|
|
|
2633
2633
|
<span class=${S({ "button-text": !0, hidden: this.loading })}>
|
|
2634
2634
|
<slot></slot>
|
|
2635
2635
|
</span>
|
|
2636
|
-
${this.loading ?
|
|
2636
|
+
${this.loading ? g`
|
|
2637
2637
|
<span class="loading-container">
|
|
2638
2638
|
<slot name="loading">
|
|
2639
2639
|
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -2658,25 +2658,25 @@ class de extends L {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
2660
|
we([
|
|
2661
|
-
|
|
2661
|
+
u({ type: String, attribute: "size" })
|
|
2662
2662
|
], de.prototype, "size");
|
|
2663
2663
|
we([
|
|
2664
|
-
|
|
2664
|
+
u({ type: String, attribute: "variant" })
|
|
2665
2665
|
], de.prototype, "variant");
|
|
2666
2666
|
we([
|
|
2667
|
-
|
|
2667
|
+
u({ type: String, attribute: "hover" })
|
|
2668
2668
|
], de.prototype, "hover");
|
|
2669
2669
|
we([
|
|
2670
|
-
|
|
2670
|
+
u({ type: Boolean, reflect: !0 })
|
|
2671
2671
|
], de.prototype, "disabled");
|
|
2672
2672
|
we([
|
|
2673
|
-
|
|
2673
|
+
u({ type: Boolean, reflect: !0, attribute: "full-width" })
|
|
2674
2674
|
], de.prototype, "fullWidth");
|
|
2675
2675
|
we([
|
|
2676
|
-
|
|
2676
|
+
u({ type: Boolean, reflect: !0, attribute: "loading" })
|
|
2677
2677
|
], de.prototype, "loading");
|
|
2678
2678
|
we([
|
|
2679
|
-
|
|
2679
|
+
u({ type: String, attribute: "type" })
|
|
2680
2680
|
], de.prototype, "type");
|
|
2681
2681
|
var Fs = Object.defineProperty, He = (r, e, t, i) => {
|
|
2682
2682
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -2692,7 +2692,7 @@ class Ce extends L {
|
|
|
2692
2692
|
super(...arguments), this.variant = "default", this.padding = "none", this.hoverable = !1, this.expandable = !1, this.isExpanded = !1;
|
|
2693
2693
|
}
|
|
2694
2694
|
static {
|
|
2695
|
-
this.styles =
|
|
2695
|
+
this.styles = F`
|
|
2696
2696
|
:host {
|
|
2697
2697
|
display: block;
|
|
2698
2698
|
min-width: 0;
|
|
@@ -2909,9 +2909,9 @@ class Ce extends L {
|
|
|
2909
2909
|
[`base-card--padding-${this.padding}`]: !0,
|
|
2910
2910
|
"base-card--hoverable": this.hoverable,
|
|
2911
2911
|
"base-card--expandable": this.expandable
|
|
2912
|
-
}, t =
|
|
2912
|
+
}, t = g`
|
|
2913
2913
|
<div class=${S(e)}>
|
|
2914
|
-
${this.expandable && !this.isExpanded ?
|
|
2914
|
+
${this.expandable && !this.isExpanded ? g`
|
|
2915
2915
|
<button
|
|
2916
2916
|
class="expand-btn"
|
|
2917
2917
|
aria-label="Expand card"
|
|
@@ -2925,7 +2925,7 @@ class Ce extends L {
|
|
|
2925
2925
|
<slot></slot>
|
|
2926
2926
|
</div>
|
|
2927
2927
|
`;
|
|
2928
|
-
return this.isExpanded ?
|
|
2928
|
+
return this.isExpanded ? g`
|
|
2929
2929
|
<div class="expanded-overlay" @click=${this.handleOverlayClick}>
|
|
2930
2930
|
<div class="expanded-card">
|
|
2931
2931
|
${t}
|
|
@@ -2935,16 +2935,16 @@ class Ce extends L {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
He([
|
|
2938
|
-
|
|
2938
|
+
u({ type: String, attribute: "variant" })
|
|
2939
2939
|
], Ce.prototype, "variant");
|
|
2940
2940
|
He([
|
|
2941
|
-
|
|
2941
|
+
u({ type: String, attribute: "padding" })
|
|
2942
2942
|
], Ce.prototype, "padding");
|
|
2943
2943
|
He([
|
|
2944
|
-
|
|
2944
|
+
u({ type: Boolean, reflect: !0, attribute: "hoverable" })
|
|
2945
2945
|
], Ce.prototype, "hoverable");
|
|
2946
2946
|
He([
|
|
2947
|
-
|
|
2947
|
+
u({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
2948
2948
|
], Ce.prototype, "expandable");
|
|
2949
2949
|
He([
|
|
2950
2950
|
w()
|
|
@@ -2977,7 +2977,7 @@ class D extends L {
|
|
|
2977
2977
|
];
|
|
2978
2978
|
}
|
|
2979
2979
|
static {
|
|
2980
|
-
this.styles =
|
|
2980
|
+
this.styles = F`
|
|
2981
2981
|
:host {
|
|
2982
2982
|
display: block;
|
|
2983
2983
|
position: relative;
|
|
@@ -3561,12 +3561,12 @@ class D extends L {
|
|
|
3561
3561
|
"date-display--empty": !this.value,
|
|
3562
3562
|
"date-disabled": this.disabled
|
|
3563
3563
|
};
|
|
3564
|
-
return
|
|
3564
|
+
return g`
|
|
3565
3565
|
<div class="date-picker-group">
|
|
3566
|
-
${this.label ?
|
|
3566
|
+
${this.label ? g`
|
|
3567
3567
|
<label for=${this.inputId} class="date-picker-label">
|
|
3568
3568
|
${this.label}
|
|
3569
|
-
${this.required ?
|
|
3569
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
3570
3570
|
</label>
|
|
3571
3571
|
` : ""}
|
|
3572
3572
|
|
|
@@ -3590,7 +3590,7 @@ class D extends L {
|
|
|
3590
3590
|
<base-icon name="calendar-day" size="20px"></base-icon>
|
|
3591
3591
|
</div>
|
|
3592
3592
|
|
|
3593
|
-
${this.isOpen ?
|
|
3593
|
+
${this.isOpen ? g`
|
|
3594
3594
|
<div class="calendar-overlay" @click=${this.closeCalendar}></div>
|
|
3595
3595
|
<div
|
|
3596
3596
|
class=${S({
|
|
@@ -3601,12 +3601,12 @@ class D extends L {
|
|
|
3601
3601
|
role="dialog"
|
|
3602
3602
|
aria-label="Choose date"
|
|
3603
3603
|
>
|
|
3604
|
-
${this.showMonthPicker ?
|
|
3604
|
+
${this.showMonthPicker ? g`
|
|
3605
3605
|
<div class="picker-overlay">
|
|
3606
3606
|
<div class="month-picker-container">
|
|
3607
3607
|
<div class="month-picker-grid">
|
|
3608
3608
|
${this.monthNames.map(
|
|
3609
|
-
(s, o) =>
|
|
3609
|
+
(s, o) => g`
|
|
3610
3610
|
<div
|
|
3611
3611
|
class=${S({
|
|
3612
3612
|
"month-item": !0,
|
|
@@ -3621,7 +3621,7 @@ class D extends L {
|
|
|
3621
3621
|
</div>
|
|
3622
3622
|
</div>
|
|
3623
3623
|
</div>
|
|
3624
|
-
` : this.showYearPicker ?
|
|
3624
|
+
` : this.showYearPicker ? g`
|
|
3625
3625
|
<div class="picker-overlay">
|
|
3626
3626
|
<div class="year-picker-container">
|
|
3627
3627
|
<div class="year-picker-header">
|
|
@@ -3645,7 +3645,7 @@ class D extends L {
|
|
|
3645
3645
|
</div>
|
|
3646
3646
|
<div class="year-picker-grid">
|
|
3647
3647
|
${this.yearRange.map(
|
|
3648
|
-
(s) =>
|
|
3648
|
+
(s) => g`
|
|
3649
3649
|
<div
|
|
3650
3650
|
class=${S({
|
|
3651
3651
|
"year-item": !0,
|
|
@@ -3660,7 +3660,7 @@ class D extends L {
|
|
|
3660
3660
|
</div>
|
|
3661
3661
|
</div>
|
|
3662
3662
|
</div>
|
|
3663
|
-
` :
|
|
3663
|
+
` : g`
|
|
3664
3664
|
<div class="calendar-header">
|
|
3665
3665
|
<button
|
|
3666
3666
|
type="button"
|
|
@@ -3689,12 +3689,12 @@ class D extends L {
|
|
|
3689
3689
|
</div>
|
|
3690
3690
|
|
|
3691
3691
|
<div class="calendar-weekdays">
|
|
3692
|
-
${this.weekDays.map((s) =>
|
|
3692
|
+
${this.weekDays.map((s) => g`<div class="calendar-weekday">${s}</div>`)}
|
|
3693
3693
|
</div>
|
|
3694
3694
|
|
|
3695
3695
|
<div class="calendar-days">
|
|
3696
3696
|
${this.calendarDays.map(
|
|
3697
|
-
(s) => s ?
|
|
3697
|
+
(s) => s ? g`
|
|
3698
3698
|
<div
|
|
3699
3699
|
class=${S({
|
|
3700
3700
|
"calendar-day": !0,
|
|
@@ -3706,7 +3706,7 @@ class D extends L {
|
|
|
3706
3706
|
>
|
|
3707
3707
|
${s}
|
|
3708
3708
|
</div>
|
|
3709
|
-
` :
|
|
3709
|
+
` : g`<div class="calendar-day day-empty"></div>`
|
|
3710
3710
|
)}
|
|
3711
3711
|
</div>
|
|
3712
3712
|
|
|
@@ -3724,44 +3724,44 @@ class D extends L {
|
|
|
3724
3724
|
` : ""}
|
|
3725
3725
|
</div>
|
|
3726
3726
|
|
|
3727
|
-
${e ?
|
|
3727
|
+
${e ? g`
|
|
3728
3728
|
<div id="${this.inputId}-error" class="date-picker-error" role="alert">
|
|
3729
3729
|
${this.error}
|
|
3730
3730
|
</div>
|
|
3731
|
-
` : this.hint ?
|
|
3731
|
+
` : this.hint ? g` <div class="date-picker-hint">${this.hint}</div> ` : ""}
|
|
3732
3732
|
</div>
|
|
3733
3733
|
`;
|
|
3734
3734
|
}
|
|
3735
3735
|
}
|
|
3736
3736
|
O([
|
|
3737
|
-
|
|
3737
|
+
u({ type: String })
|
|
3738
3738
|
], D.prototype, "value");
|
|
3739
3739
|
O([
|
|
3740
|
-
|
|
3740
|
+
u({ type: String })
|
|
3741
3741
|
], D.prototype, "label");
|
|
3742
3742
|
O([
|
|
3743
|
-
|
|
3743
|
+
u({ type: String })
|
|
3744
3744
|
], D.prototype, "placeholder");
|
|
3745
3745
|
O([
|
|
3746
|
-
|
|
3746
|
+
u({ type: Boolean, reflect: !0 })
|
|
3747
3747
|
], D.prototype, "required");
|
|
3748
3748
|
O([
|
|
3749
|
-
|
|
3749
|
+
u({ type: Boolean, reflect: !0 })
|
|
3750
3750
|
], D.prototype, "disabled");
|
|
3751
3751
|
O([
|
|
3752
|
-
|
|
3752
|
+
u({ type: String })
|
|
3753
3753
|
], D.prototype, "error");
|
|
3754
3754
|
O([
|
|
3755
|
-
|
|
3755
|
+
u({ type: String })
|
|
3756
3756
|
], D.prototype, "hint");
|
|
3757
3757
|
O([
|
|
3758
|
-
|
|
3758
|
+
u({ type: String })
|
|
3759
3759
|
], D.prototype, "size");
|
|
3760
3760
|
O([
|
|
3761
|
-
|
|
3761
|
+
u({ type: String })
|
|
3762
3762
|
], D.prototype, "minDate");
|
|
3763
3763
|
O([
|
|
3764
|
-
|
|
3764
|
+
u({ type: String })
|
|
3765
3765
|
], D.prototype, "maxDate");
|
|
3766
3766
|
O([
|
|
3767
3767
|
w()
|
|
@@ -3788,12 +3788,12 @@ O([
|
|
|
3788
3788
|
w()
|
|
3789
3789
|
], D.prototype, "alignRight");
|
|
3790
3790
|
O([
|
|
3791
|
-
|
|
3791
|
+
V(".date-display")
|
|
3792
3792
|
], D.prototype, "dateDisplay");
|
|
3793
3793
|
O([
|
|
3794
|
-
|
|
3794
|
+
V(".calendar-container")
|
|
3795
3795
|
], D.prototype, "calendarContainer");
|
|
3796
|
-
var Zs = Object.defineProperty,
|
|
3796
|
+
var Zs = Object.defineProperty, U = (r, e, t, i) => {
|
|
3797
3797
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3798
3798
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
3799
3799
|
return s && Zs(e, t, s), s;
|
|
@@ -3807,7 +3807,7 @@ class M extends L {
|
|
|
3807
3807
|
super(...arguments), this.value = "", this.placeholder = "Select a time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.isOpen = !1, this.selectedHour = 12, this.selectedMinute = 0, this.selectedPeriod = "AM", this.isFlipped = !1, this.alignRight = !1, this.inputId = `time-picker-${Math.random().toString(36).substr(2, 9)}`;
|
|
3808
3808
|
}
|
|
3809
3809
|
static {
|
|
3810
|
-
this.styles =
|
|
3810
|
+
this.styles = F`
|
|
3811
3811
|
:host {
|
|
3812
3812
|
display: block;
|
|
3813
3813
|
position: relative;
|
|
@@ -4131,12 +4131,12 @@ class M extends L {
|
|
|
4131
4131
|
"time-display--empty": !this.value,
|
|
4132
4132
|
"time-disabled": this.disabled
|
|
4133
4133
|
};
|
|
4134
|
-
return
|
|
4134
|
+
return g`
|
|
4135
4135
|
<div class="time-picker-group">
|
|
4136
|
-
${this.label ?
|
|
4136
|
+
${this.label ? g`
|
|
4137
4137
|
<label for=${this.inputId} class="time-picker-label">
|
|
4138
4138
|
${this.label}
|
|
4139
|
-
${this.required ?
|
|
4139
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4140
4140
|
</label>
|
|
4141
4141
|
` : ""}
|
|
4142
4142
|
|
|
@@ -4166,7 +4166,7 @@ class M extends L {
|
|
|
4166
4166
|
</svg>
|
|
4167
4167
|
</div>
|
|
4168
4168
|
|
|
4169
|
-
${this.isOpen ?
|
|
4169
|
+
${this.isOpen ? g`
|
|
4170
4170
|
<div class="time-overlay" @click=${this.closeTimePicker}></div>
|
|
4171
4171
|
<div
|
|
4172
4172
|
class=${S({
|
|
@@ -4182,7 +4182,7 @@ class M extends L {
|
|
|
4182
4182
|
<div class="time-column-label">Hour</div>
|
|
4183
4183
|
<div class="time-scroll">
|
|
4184
4184
|
${this.hours.map(
|
|
4185
|
-
(s) =>
|
|
4185
|
+
(s) => g`
|
|
4186
4186
|
<div
|
|
4187
4187
|
class=${S({
|
|
4188
4188
|
"time-option": !0,
|
|
@@ -4201,7 +4201,7 @@ class M extends L {
|
|
|
4201
4201
|
<div class="time-column-label">Minute</div>
|
|
4202
4202
|
<div class="time-scroll">
|
|
4203
4203
|
${this.minutes.map(
|
|
4204
|
-
(s) =>
|
|
4204
|
+
(s) => g`
|
|
4205
4205
|
<div
|
|
4206
4206
|
class=${S({
|
|
4207
4207
|
"time-option": !0,
|
|
@@ -4216,12 +4216,12 @@ class M extends L {
|
|
|
4216
4216
|
</div>
|
|
4217
4217
|
</div>
|
|
4218
4218
|
|
|
4219
|
-
${this.format === "12" ?
|
|
4219
|
+
${this.format === "12" ? g`
|
|
4220
4220
|
<div class="time-column">
|
|
4221
4221
|
<div class="time-column-label">Period</div>
|
|
4222
4222
|
<div class="time-scroll">
|
|
4223
4223
|
${["AM", "PM"].map(
|
|
4224
|
-
(s) =>
|
|
4224
|
+
(s) => g`
|
|
4225
4225
|
<div
|
|
4226
4226
|
class=${S({
|
|
4227
4227
|
"time-option": !0,
|
|
@@ -4247,67 +4247,67 @@ class M extends L {
|
|
|
4247
4247
|
` : ""}
|
|
4248
4248
|
</div>
|
|
4249
4249
|
|
|
4250
|
-
${e ?
|
|
4250
|
+
${e ? g`
|
|
4251
4251
|
<div id="${this.inputId}-error" class="time-picker-error" role="alert">
|
|
4252
4252
|
${this.error}
|
|
4253
4253
|
</div>
|
|
4254
|
-
` : this.hint ?
|
|
4254
|
+
` : this.hint ? g` <div class="time-picker-hint">${this.hint}</div> ` : ""}
|
|
4255
4255
|
</div>
|
|
4256
4256
|
`;
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
|
|
4260
|
-
|
|
4259
|
+
U([
|
|
4260
|
+
u({ type: String })
|
|
4261
4261
|
], M.prototype, "value");
|
|
4262
|
-
|
|
4263
|
-
|
|
4262
|
+
U([
|
|
4263
|
+
u({ type: String })
|
|
4264
4264
|
], M.prototype, "label");
|
|
4265
|
-
|
|
4266
|
-
|
|
4265
|
+
U([
|
|
4266
|
+
u({ type: String })
|
|
4267
4267
|
], M.prototype, "placeholder");
|
|
4268
|
-
|
|
4269
|
-
|
|
4268
|
+
U([
|
|
4269
|
+
u({ type: Boolean, reflect: !0 })
|
|
4270
4270
|
], M.prototype, "required");
|
|
4271
|
-
|
|
4272
|
-
|
|
4271
|
+
U([
|
|
4272
|
+
u({ type: Boolean, reflect: !0 })
|
|
4273
4273
|
], M.prototype, "disabled");
|
|
4274
|
-
|
|
4275
|
-
|
|
4274
|
+
U([
|
|
4275
|
+
u({ type: String })
|
|
4276
4276
|
], M.prototype, "error");
|
|
4277
|
-
|
|
4278
|
-
|
|
4277
|
+
U([
|
|
4278
|
+
u({ type: String })
|
|
4279
4279
|
], M.prototype, "hint");
|
|
4280
|
-
|
|
4281
|
-
|
|
4280
|
+
U([
|
|
4281
|
+
u({ type: String })
|
|
4282
4282
|
], M.prototype, "size");
|
|
4283
|
-
|
|
4284
|
-
|
|
4283
|
+
U([
|
|
4284
|
+
u({ type: String })
|
|
4285
4285
|
], M.prototype, "format");
|
|
4286
|
-
|
|
4286
|
+
U([
|
|
4287
4287
|
w()
|
|
4288
4288
|
], M.prototype, "isOpen");
|
|
4289
|
-
|
|
4289
|
+
U([
|
|
4290
4290
|
w()
|
|
4291
4291
|
], M.prototype, "selectedHour");
|
|
4292
|
-
|
|
4292
|
+
U([
|
|
4293
4293
|
w()
|
|
4294
4294
|
], M.prototype, "selectedMinute");
|
|
4295
|
-
|
|
4295
|
+
U([
|
|
4296
4296
|
w()
|
|
4297
4297
|
], M.prototype, "selectedPeriod");
|
|
4298
|
-
|
|
4298
|
+
U([
|
|
4299
4299
|
w()
|
|
4300
4300
|
], M.prototype, "isFlipped");
|
|
4301
|
-
|
|
4301
|
+
U([
|
|
4302
4302
|
w()
|
|
4303
4303
|
], M.prototype, "alignRight");
|
|
4304
|
-
|
|
4305
|
-
|
|
4304
|
+
U([
|
|
4305
|
+
V(".time-display")
|
|
4306
4306
|
], M.prototype, "timeDisplay");
|
|
4307
|
-
|
|
4308
|
-
|
|
4307
|
+
U([
|
|
4308
|
+
V(".time-container")
|
|
4309
4309
|
], M.prototype, "timeContainer");
|
|
4310
|
-
var Ws = Object.defineProperty,
|
|
4310
|
+
var Ws = Object.defineProperty, H = (r, e, t, i) => {
|
|
4311
4311
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4312
4312
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
4313
4313
|
return s && Ws(e, t, s), s;
|
|
@@ -4321,15 +4321,15 @@ const Ks = () => {
|
|
|
4321
4321
|
element: M
|
|
4322
4322
|
}), z({
|
|
4323
4323
|
name: "base-datetime-picker",
|
|
4324
|
-
element:
|
|
4324
|
+
element: N
|
|
4325
4325
|
});
|
|
4326
4326
|
};
|
|
4327
|
-
class
|
|
4327
|
+
class N extends L {
|
|
4328
4328
|
constructor() {
|
|
4329
4329
|
super(...arguments), this.value = "", this.placeholder = "Select date and time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.dateValue = "", this.timeValue = "", this.isFocused = !1, this.inputId = `datetime-picker-${Math.random().toString(36).substring(2, 9)}`;
|
|
4330
4330
|
}
|
|
4331
4331
|
static {
|
|
4332
|
-
this.styles =
|
|
4332
|
+
this.styles = F`
|
|
4333
4333
|
:host {
|
|
4334
4334
|
display: block;
|
|
4335
4335
|
position: relative;
|
|
@@ -4473,8 +4473,8 @@ class U extends L {
|
|
|
4473
4473
|
const t = e.detail.value;
|
|
4474
4474
|
let i = this.dateValue;
|
|
4475
4475
|
if (!i) {
|
|
4476
|
-
const a = /* @__PURE__ */ new Date(), n = a.getFullYear(),
|
|
4477
|
-
i = `${n}-${
|
|
4476
|
+
const a = /* @__PURE__ */ new Date(), n = a.getFullYear(), c = String(a.getMonth() + 1).padStart(2, "0"), p = String(a.getDate()).padStart(2, "0");
|
|
4477
|
+
i = `${n}-${c}-${p}`;
|
|
4478
4478
|
}
|
|
4479
4479
|
const s = `${i}T${t}`, o = this.value;
|
|
4480
4480
|
this.value = s, this.dispatchEvent(
|
|
@@ -4501,12 +4501,12 @@ class U extends L {
|
|
|
4501
4501
|
"datetime-pickers--error": e,
|
|
4502
4502
|
"datetime-pickers--disabled": this.disabled
|
|
4503
4503
|
};
|
|
4504
|
-
return
|
|
4504
|
+
return g`
|
|
4505
4505
|
<div class="datetime-picker-group">
|
|
4506
|
-
${this.label ?
|
|
4506
|
+
${this.label ? g`
|
|
4507
4507
|
<label for=${this.inputId} class="datetime-picker-label">
|
|
4508
4508
|
${this.label}
|
|
4509
|
-
${this.required ?
|
|
4509
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4510
4510
|
</label>
|
|
4511
4511
|
` : ""}
|
|
4512
4512
|
|
|
@@ -4546,64 +4546,64 @@ class U extends L {
|
|
|
4546
4546
|
</div>
|
|
4547
4547
|
</div>
|
|
4548
4548
|
|
|
4549
|
-
${e ?
|
|
4549
|
+
${e ? g`
|
|
4550
4550
|
<div id="${this.inputId}-error" class="datetime-picker-error" role="alert">
|
|
4551
4551
|
${this.error}
|
|
4552
4552
|
</div>
|
|
4553
|
-
` : this.hint ?
|
|
4553
|
+
` : this.hint ? g` <div class="datetime-picker-hint">${this.hint}</div> ` : ""}
|
|
4554
4554
|
</div>
|
|
4555
4555
|
`;
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
],
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
],
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
],
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
],
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
],
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
],
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
],
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
],
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
],
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
],
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
],
|
|
4591
|
-
|
|
4558
|
+
H([
|
|
4559
|
+
u({ type: String })
|
|
4560
|
+
], N.prototype, "value");
|
|
4561
|
+
H([
|
|
4562
|
+
u({ type: String })
|
|
4563
|
+
], N.prototype, "label");
|
|
4564
|
+
H([
|
|
4565
|
+
u({ type: String })
|
|
4566
|
+
], N.prototype, "placeholder");
|
|
4567
|
+
H([
|
|
4568
|
+
u({ type: Boolean, reflect: !0 })
|
|
4569
|
+
], N.prototype, "required");
|
|
4570
|
+
H([
|
|
4571
|
+
u({ type: Boolean, reflect: !0 })
|
|
4572
|
+
], N.prototype, "disabled");
|
|
4573
|
+
H([
|
|
4574
|
+
u({ type: String })
|
|
4575
|
+
], N.prototype, "error");
|
|
4576
|
+
H([
|
|
4577
|
+
u({ type: String })
|
|
4578
|
+
], N.prototype, "hint");
|
|
4579
|
+
H([
|
|
4580
|
+
u({ type: String })
|
|
4581
|
+
], N.prototype, "size");
|
|
4582
|
+
H([
|
|
4583
|
+
u({ type: String })
|
|
4584
|
+
], N.prototype, "minDate");
|
|
4585
|
+
H([
|
|
4586
|
+
u({ type: String })
|
|
4587
|
+
], N.prototype, "maxDate");
|
|
4588
|
+
H([
|
|
4589
|
+
u({ type: String })
|
|
4590
|
+
], N.prototype, "format");
|
|
4591
|
+
H([
|
|
4592
4592
|
w()
|
|
4593
|
-
],
|
|
4594
|
-
|
|
4593
|
+
], N.prototype, "dateValue");
|
|
4594
|
+
H([
|
|
4595
4595
|
w()
|
|
4596
|
-
],
|
|
4597
|
-
|
|
4596
|
+
], N.prototype, "timeValue");
|
|
4597
|
+
H([
|
|
4598
4598
|
w()
|
|
4599
|
-
],
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
],
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
],
|
|
4606
|
-
var Js = Object.defineProperty,
|
|
4599
|
+
], N.prototype, "isFocused");
|
|
4600
|
+
H([
|
|
4601
|
+
V("base-date-picker")
|
|
4602
|
+
], N.prototype, "datePicker");
|
|
4603
|
+
H([
|
|
4604
|
+
V("base-time-picker")
|
|
4605
|
+
], N.prototype, "timePicker");
|
|
4606
|
+
var Js = Object.defineProperty, Z = (r, e, t, i) => {
|
|
4607
4607
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4608
4608
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
4609
4609
|
return s && Js(e, t, s), s;
|
|
@@ -4614,10 +4614,10 @@ const Xs = () => z({
|
|
|
4614
4614
|
});
|
|
4615
4615
|
class j extends L {
|
|
4616
4616
|
constructor() {
|
|
4617
|
-
super(...arguments), this.open = !1, this.size = "sm", this.detents = [0, 85], this.persistOnOverlayClick = !1, this.isClosing = !1, this.isVisible = !1, this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.currentDetentIndex = 0, this.transitionDuration = 300, this.boundKeyHandler = (e) => {
|
|
4617
|
+
super(...arguments), this.open = !1, this.size = "sm", this.detents = [0, 85], this.persistOnOverlayClick = !1, this.isClosing = !1, this.isVisible = !1, this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.lastDragEndTime = 0, this.currentDetentIndex = 0, this.dragCommitted = !1, this.transitionDuration = 300, this.boundKeyHandler = (e) => {
|
|
4618
4618
|
e.key === "Escape" && this.isVisible && this.isClosable() && this.handleClose();
|
|
4619
4619
|
}, this.handleClose = () => {
|
|
4620
|
-
this.isClosing || !this.isVisible || (this.cleanupInlineStyles(), this.isDragging = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.isClosing = !0, setTimeout(() => {
|
|
4620
|
+
this.isClosing || !this.isVisible || (this.cleanupInlineStyles(), this.isDragging = !1, this.dragCommitted = !1, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.isClosing = !0, setTimeout(() => {
|
|
4621
4621
|
this.isClosing = !1, this.isVisible = !1, this.open = !1, this.dispatchEvent(
|
|
4622
4622
|
new CustomEvent("drawer-close", {
|
|
4623
4623
|
bubbles: !0,
|
|
@@ -4631,14 +4631,33 @@ class j extends L {
|
|
|
4631
4631
|
this.handleClose();
|
|
4632
4632
|
}
|
|
4633
4633
|
}, this.handleDragStart = (e) => {
|
|
4634
|
-
if (!this.modalContainer
|
|
4635
|
-
return;
|
|
4634
|
+
if (!this.modalContainer) return;
|
|
4636
4635
|
const t = e.target;
|
|
4637
|
-
!(t.classList.contains("drawer-handle") || t.classList.contains("drawer-handle-bar") || t.closest(".drawer-handle"))
|
|
4636
|
+
if (!(t.classList.contains("drawer-handle") || t.classList.contains("drawer-handle-bar") || t.closest(".drawer-handle"))) {
|
|
4637
|
+
if (this.drawerContent) {
|
|
4638
|
+
const s = this.drawerContent.scrollHeight > this.drawerContent.clientHeight, o = this.drawerContent.contains(t);
|
|
4639
|
+
if (s && o && !(this.drawerContent.scrollTop === 0))
|
|
4640
|
+
return;
|
|
4641
|
+
}
|
|
4642
|
+
}
|
|
4643
|
+
this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.isDragging = !0, this.dragCommitted = !1, this.dragStartTime = Date.now(), e instanceof TouchEvent ? (this.dragStartY = e.touches[0].clientY, this.dragCurrentY = e.touches[0].clientY) : (this.dragStartY = e.clientY, this.dragCurrentY = e.clientY);
|
|
4638
4644
|
}, this.handleDragMove = (e) => {
|
|
4639
4645
|
if (!this.isDragging || !this.modalContainer) return;
|
|
4640
4646
|
e instanceof TouchEvent ? this.dragCurrentY = e.touches[0].clientY : this.dragCurrentY = e.clientY;
|
|
4641
|
-
const t = this.dragCurrentY - this.dragStartY
|
|
4647
|
+
const t = this.dragCurrentY - this.dragStartY;
|
|
4648
|
+
if (!this.dragCommitted) {
|
|
4649
|
+
if (Math.abs(t) < 5)
|
|
4650
|
+
return;
|
|
4651
|
+
if (this.drawerContent) {
|
|
4652
|
+
const a = this.drawerContent.scrollHeight > this.drawerContent.clientHeight, n = this.drawerContent.scrollTop === 0;
|
|
4653
|
+
if (a && n && t < 0) {
|
|
4654
|
+
this.isDragging = !1, this.dragCommitted = !1, this.dragStartY = 0, this.dragCurrentY = 0;
|
|
4655
|
+
return;
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
this.dragCommitted = !0;
|
|
4659
|
+
}
|
|
4660
|
+
const i = this.getCurrentDetentHeight(), s = window.innerHeight;
|
|
4642
4661
|
if (e.preventDefault(), this.modalContainer.style.transition = "none", t < 0) {
|
|
4643
4662
|
const a = Math.abs(t) / s * 100, n = Math.min(100, i + a);
|
|
4644
4663
|
this.modalContainer.style.height = `${n}dvh`, this.modalContainer.style.transform = "translateY(0)";
|
|
@@ -4646,42 +4665,44 @@ class j extends L {
|
|
|
4646
4665
|
this.modalContainer.style.transform = `translateY(${t}px)`, this.modalContainer.style.height = `${i}dvh`;
|
|
4647
4666
|
}, this.handleDragEnd = () => {
|
|
4648
4667
|
if (!this.isDragging || !this.modalContainer) return;
|
|
4668
|
+
if (!this.dragCommitted) {
|
|
4669
|
+
this.isDragging = !1, this.dragCommitted = !1;
|
|
4670
|
+
return;
|
|
4671
|
+
}
|
|
4649
4672
|
const e = this.dragCurrentY - this.dragStartY;
|
|
4650
4673
|
Math.abs(e) > 5 && (this.lastDragEndTime = Date.now());
|
|
4651
4674
|
const t = Date.now() - this.dragStartTime, i = Math.abs(e) / t;
|
|
4652
|
-
this.isDragging = !1;
|
|
4675
|
+
this.isDragging = !1, this.dragCommitted = !1;
|
|
4653
4676
|
const s = this.getActiveDetents(), o = this.getCurrentDetentHeight(), a = window.innerHeight, n = Math.abs(e) / a * 100;
|
|
4654
|
-
let
|
|
4655
|
-
e < 0 ?
|
|
4677
|
+
let c;
|
|
4678
|
+
e < 0 ? c = o + n : c = o - n;
|
|
4656
4679
|
let p = this.currentDetentIndex;
|
|
4657
|
-
|
|
4658
|
-
|
|
4680
|
+
const d = 0.5, h = 1, b = this.isClosable(), y = s[0], f = this.currentDetentIndex === 0;
|
|
4681
|
+
if (i > d && Math.abs(e) > 30)
|
|
4682
|
+
e > 0 ? b ? i > h && f && e > 50 || c < y * 0.8 ? p = -1 : p = Math.max(0, this.currentDetentIndex - 1) : p = Math.max(0, this.currentDetentIndex - 1) : p = Math.min(s.length - 1, this.currentDetentIndex + 1);
|
|
4659
4683
|
else {
|
|
4660
|
-
let
|
|
4661
|
-
for (let
|
|
4662
|
-
const
|
|
4663
|
-
|
|
4664
|
-
}
|
|
4665
|
-
if (p = u, this.isClosable()) {
|
|
4666
|
-
const b = s[0];
|
|
4667
|
-
d < b - 10 && (p = -1);
|
|
4684
|
+
let _ = 0, C = Math.abs(c - s[0]);
|
|
4685
|
+
for (let T = 1; T < s.length; T++) {
|
|
4686
|
+
const B = Math.abs(c - s[T]);
|
|
4687
|
+
B < C && (C = B, _ = T);
|
|
4668
4688
|
}
|
|
4689
|
+
p = _, b && (f && c < y * 0.7 || c < y - 5) && (p = -1);
|
|
4669
4690
|
}
|
|
4670
|
-
const
|
|
4671
|
-
if (
|
|
4672
|
-
const
|
|
4673
|
-
|
|
4691
|
+
const v = p < 0, m = this.modalContainer, x = v ? 0 : s[p];
|
|
4692
|
+
if (m.style.transition = "none", e < 0) {
|
|
4693
|
+
const _ = Math.min(100, c);
|
|
4694
|
+
m.style.height = `${_}dvh`, m.style.transform = "translateY(0)";
|
|
4674
4695
|
} else
|
|
4675
|
-
|
|
4696
|
+
m.style.transform = `translateY(${e}px)`, m.style.height = `${o}dvh`;
|
|
4676
4697
|
requestAnimationFrame(() => {
|
|
4677
|
-
|
|
4698
|
+
v ? (m.style.transition = `transform ${this.transitionDuration}ms cubic-bezier(0.4, 0, 0.2, 1)`, m.style.transform = "translateY(100%)") : (m.style.transition = `transform ${this.transitionDuration}ms cubic-bezier(0.4, 0, 0.2, 1), height ${this.transitionDuration}ms cubic-bezier(0.4, 0, 0.2, 1)`, m.style.transform = "translateY(0)", m.style.height = `${x}dvh`);
|
|
4678
4699
|
}), setTimeout(() => {
|
|
4679
|
-
this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0,
|
|
4700
|
+
this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.dragCommitted = !1, v ? (this.isVisible = !1, this.open = !1, this.dispatchEvent(
|
|
4680
4701
|
new CustomEvent("drawer-close", {
|
|
4681
4702
|
bubbles: !0,
|
|
4682
4703
|
composed: !0
|
|
4683
4704
|
})
|
|
4684
|
-
)) : (this.currentDetentIndex = p, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${
|
|
4705
|
+
)) : (this.currentDetentIndex = p, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${x}dvh`), this.dispatchEvent(
|
|
4685
4706
|
new CustomEvent("drawer-detent-change", {
|
|
4686
4707
|
bubbles: !0,
|
|
4687
4708
|
composed: !0,
|
|
@@ -4738,7 +4759,7 @@ class j extends L {
|
|
|
4738
4759
|
}, 0);
|
|
4739
4760
|
}
|
|
4740
4761
|
resetState() {
|
|
4741
|
-
this.isDragging = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0;
|
|
4762
|
+
this.isDragging = !1, this.dragCommitted = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0;
|
|
4742
4763
|
}
|
|
4743
4764
|
getActiveDetents() {
|
|
4744
4765
|
return this.detents.filter((t) => t > 0).sort((t, i) => t - i);
|
|
@@ -4813,21 +4834,21 @@ class j extends L {
|
|
|
4813
4834
|
"modal-container--dragging": this.isDragging,
|
|
4814
4835
|
[`modal-container--${this.size}`]: !0
|
|
4815
4836
|
}, i = this.getCurrentDetentHeight();
|
|
4816
|
-
return
|
|
4837
|
+
return g`
|
|
4817
4838
|
<!-- Drawer Overlay -->
|
|
4818
4839
|
<div
|
|
4819
4840
|
class=${S(e)}
|
|
4820
4841
|
@click=${this.handleOverlayClick}
|
|
4821
|
-
@touchstart=${this.handleDragStart}
|
|
4822
|
-
@touchmove=${this.handleDragMove}
|
|
4823
|
-
@touchend=${this.handleDragEnd}
|
|
4824
|
-
@mousedown=${this.handleDragStart}
|
|
4825
4842
|
>
|
|
4826
4843
|
<div
|
|
4827
4844
|
class=${S(t)}
|
|
4828
4845
|
style="height: ${i}dvh"
|
|
4829
4846
|
role="dialog"
|
|
4830
4847
|
aria-modal="true"
|
|
4848
|
+
@touchstart=${this.handleDragStart}
|
|
4849
|
+
@touchmove=${this.handleDragMove}
|
|
4850
|
+
@touchend=${this.handleDragEnd}
|
|
4851
|
+
@mousedown=${this.handleDragStart}
|
|
4831
4852
|
@mousemove=${this.handleDragMove}
|
|
4832
4853
|
@mouseup=${this.handleDragEnd}
|
|
4833
4854
|
>
|
|
@@ -4851,7 +4872,7 @@ class j extends L {
|
|
|
4851
4872
|
`;
|
|
4852
4873
|
}
|
|
4853
4874
|
static {
|
|
4854
|
-
this.styles =
|
|
4875
|
+
this.styles = F`
|
|
4855
4876
|
:host {
|
|
4856
4877
|
display: inline-block;
|
|
4857
4878
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -5049,14 +5070,14 @@ class j extends L {
|
|
|
5049
5070
|
}`;
|
|
5050
5071
|
}
|
|
5051
5072
|
}
|
|
5052
|
-
|
|
5053
|
-
|
|
5073
|
+
Z([
|
|
5074
|
+
u({ type: Boolean, reflect: !0 })
|
|
5054
5075
|
], j.prototype, "open");
|
|
5055
|
-
|
|
5056
|
-
|
|
5076
|
+
Z([
|
|
5077
|
+
u({ type: String, attribute: "size" })
|
|
5057
5078
|
], j.prototype, "size");
|
|
5058
|
-
|
|
5059
|
-
|
|
5079
|
+
Z([
|
|
5080
|
+
u({
|
|
5060
5081
|
type: Array,
|
|
5061
5082
|
converter: {
|
|
5062
5083
|
fromAttribute: (r) => {
|
|
@@ -5070,39 +5091,42 @@ W([
|
|
|
5070
5091
|
}
|
|
5071
5092
|
})
|
|
5072
5093
|
], j.prototype, "detents");
|
|
5073
|
-
|
|
5074
|
-
|
|
5094
|
+
Z([
|
|
5095
|
+
u({ type: Boolean, attribute: "persist-on-overlay-click" })
|
|
5075
5096
|
], j.prototype, "persistOnOverlayClick");
|
|
5076
|
-
|
|
5097
|
+
Z([
|
|
5077
5098
|
w()
|
|
5078
5099
|
], j.prototype, "isClosing");
|
|
5079
|
-
|
|
5100
|
+
Z([
|
|
5080
5101
|
w()
|
|
5081
5102
|
], j.prototype, "isVisible");
|
|
5082
|
-
|
|
5103
|
+
Z([
|
|
5083
5104
|
w()
|
|
5084
5105
|
], j.prototype, "isDragging");
|
|
5085
|
-
|
|
5106
|
+
Z([
|
|
5086
5107
|
w()
|
|
5087
5108
|
], j.prototype, "dragStartY");
|
|
5088
|
-
|
|
5109
|
+
Z([
|
|
5089
5110
|
w()
|
|
5090
5111
|
], j.prototype, "dragCurrentY");
|
|
5091
|
-
|
|
5112
|
+
Z([
|
|
5092
5113
|
w()
|
|
5093
5114
|
], j.prototype, "dragStartTime");
|
|
5094
|
-
|
|
5115
|
+
Z([
|
|
5095
5116
|
w()
|
|
5096
5117
|
], j.prototype, "lastDragEndTime");
|
|
5097
|
-
|
|
5118
|
+
Z([
|
|
5098
5119
|
w()
|
|
5099
5120
|
], j.prototype, "currentDetentIndex");
|
|
5100
|
-
|
|
5101
|
-
|
|
5121
|
+
Z([
|
|
5122
|
+
w()
|
|
5123
|
+
], j.prototype, "dragCommitted");
|
|
5124
|
+
Z([
|
|
5125
|
+
V(".modal-container")
|
|
5102
5126
|
], j.prototype, "modalContainer");
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
], j.prototype, "
|
|
5127
|
+
Z([
|
|
5128
|
+
V(".drawer-content")
|
|
5129
|
+
], j.prototype, "drawerContent");
|
|
5106
5130
|
const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5107
5131
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5108
5132
|
<defs>
|
|
@@ -5314,7 +5338,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5314
5338
|
</defs>
|
|
5315
5339
|
<path class="cls-1" d="M77.83,43.24l-12.92-12.29c-.8-.76-2.06-.73-2.83.07-.76.8-.73,2.07.07,2.83l9.2,8.75-37.76.11c-1.1,0-2,.9-1.99,2.01,0,1.1.9,1.99,2,1.99h0l38.09-.11c.07,0,.14-.01.21-.02l-9.19,9.66c-.76.8-.73,2.07.07,2.83.39.37.88.55,1.38.55.53,0,1.06-.21,1.45-.62l12.29-12.92c.76-.8.73-2.07-.07-2.83Z"/>
|
|
5316
5340
|
<path class="cls-1" d="M54.17,51.76c-1.1,0-2,.9-2,2v15.88c0,2.5-2.03,4.53-4.53,4.53h-27.57c-2.5,0-4.53-2.03-4.53-4.53V20.36c0-2.5,2.03-4.53,4.53-4.53h27.57c2.5,0,4.53,2.03,4.53,4.53v15.25c0,1.1.9,2,2,2s2-.9,2-2v-15.25c0-4.7-3.83-8.53-8.53-8.53h-27.57c-4.7,0-8.53,3.83-8.53,8.53v49.28c0,4.7,3.83,8.53,8.53,8.53h27.57c4.7,0,8.53-3.83,8.53-8.53v-15.88c0-1.1-.9-2-2-2Z"/>
|
|
5317
|
-
</svg>`,
|
|
5341
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5318
5342
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5319
5343
|
<defs>
|
|
5320
5344
|
<style>
|
|
@@ -5326,7 +5350,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5326
5350
|
<path class="cls-1" d="M79.02,31.68c-.91-1.29-2.28-2.14-3.84-2.39l-45.66-7.17c-1-.16-2-.04-2.91.3l-4.44-5.23c-.38-.45-.94-.71-1.53-.71h-8.73c-1.1,0-2,.9-2,2s.9,2,2,2h7.8l3.85,4.54c-.57,1.02-.83,2.19-.72,3.39l2.16,22.13c.05.48.17.93.32,1.36l-.05,4.5c-.03,1.55.55,3.02,1.64,4.13s2.54,1.72,4.1,1.72h43.48c1.1,0,2-.9,2-2s-.9-2-2-2H31.03c-.47,0-.91-.19-1.24-.52-.33-.34-.51-.78-.5-1.27v-.91c.49.13.98.22,1.5.22h40.66c2.78,0,5.18-1.98,5.7-4.72l2.84-14.96c.3-1.56-.04-3.13-.96-4.42ZM76.05,35.35l-2.84,14.96c-.16.85-.9,1.46-1.77,1.46H30.79c-.63,0-1.18-.32-1.5-.81-.05-.22-.14-.43-.25-.62-.01-.06-.03-.12-.04-.19l-2.16-22.13c-.05-.56.15-1.1.56-1.48.34-.32.77-.49,1.23-.49.09,0,.19,0,.28.02l45.66,7.17c.48.08.91.34,1.19.74.28.4.39.89.3,1.37Z"/>
|
|
5327
5351
|
<path class="cls-1" d="M33.41,63.25c-2.83,0-5.14,2.3-5.14,5.13s2.3,5.14,5.14,5.14,5.13-2.3,5.13-5.14-2.3-5.13-5.13-5.13ZM33.41,69.52c-.63,0-1.14-.51-1.14-1.14s.51-1.13,1.14-1.13,1.13.51,1.13,1.13-.51,1.14-1.13,1.14Z"/>
|
|
5328
5352
|
<path class="cls-1" d="M68.07,63.25c-2.83,0-5.14,2.3-5.14,5.13s2.3,5.14,5.14,5.14,5.13-2.3,5.13-5.14-2.3-5.13-5.13-5.13ZM68.07,69.52c-.63,0-1.14-.51-1.14-1.14s.51-1.13,1.14-1.13,1.13.51,1.13,1.13-.51,1.14-1.13,1.14Z"/>
|
|
5329
|
-
</svg>`,
|
|
5353
|
+
</svg>`, mi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5330
5354
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5331
5355
|
<defs>
|
|
5332
5356
|
<style>
|
|
@@ -5410,8 +5434,8 @@ const xi = /* @__PURE__ */ Object.assign({
|
|
|
5410
5434
|
"../../public/icons/reply.svg": pi,
|
|
5411
5435
|
"../../public/icons/send.svg": ui,
|
|
5412
5436
|
"../../public/icons/share.svg": fi,
|
|
5413
|
-
"../../public/icons/shopping-cart.svg":
|
|
5414
|
-
"../../public/icons/suitcase.svg":
|
|
5437
|
+
"../../public/icons/shopping-cart.svg": gi,
|
|
5438
|
+
"../../public/icons/suitcase.svg": mi,
|
|
5415
5439
|
"../../public/icons/sun.svg": bi,
|
|
5416
5440
|
"../../public/icons/trash-can.svg": vi,
|
|
5417
5441
|
"../../public/icons/user.svg": yi
|
|
@@ -5424,7 +5448,7 @@ class Ee extends L {
|
|
|
5424
5448
|
super(...arguments), this.name = "", this.size = "24px", this.color = "currentColor", this.svgContent = "";
|
|
5425
5449
|
}
|
|
5426
5450
|
static {
|
|
5427
|
-
this.styles =
|
|
5451
|
+
this.styles = F`
|
|
5428
5452
|
:host {
|
|
5429
5453
|
display: inline-flex;
|
|
5430
5454
|
align-items: center;
|
|
@@ -5468,7 +5492,7 @@ class Ee extends L {
|
|
|
5468
5492
|
}
|
|
5469
5493
|
}
|
|
5470
5494
|
render() {
|
|
5471
|
-
return
|
|
5495
|
+
return g`
|
|
5472
5496
|
<div
|
|
5473
5497
|
style="
|
|
5474
5498
|
--icon-size: ${this.size};
|
|
@@ -5480,13 +5504,13 @@ class Ee extends L {
|
|
|
5480
5504
|
}
|
|
5481
5505
|
}
|
|
5482
5506
|
ht([
|
|
5483
|
-
|
|
5507
|
+
u({ type: String })
|
|
5484
5508
|
], Ee.prototype, "name");
|
|
5485
5509
|
ht([
|
|
5486
|
-
|
|
5510
|
+
u({ type: String })
|
|
5487
5511
|
], Ee.prototype, "size");
|
|
5488
5512
|
ht([
|
|
5489
|
-
|
|
5513
|
+
u({ type: String })
|
|
5490
5514
|
], Ee.prototype, "color");
|
|
5491
5515
|
ht([
|
|
5492
5516
|
w()
|
|
@@ -5505,7 +5529,7 @@ class G extends L {
|
|
|
5505
5529
|
super(...arguments), this.value = "", this.type = "text", this.required = !1, this.disabled = !1, this.size = "md", this.inputId = `input-${Math.random().toString(36).substr(2, 9)}`;
|
|
5506
5530
|
}
|
|
5507
5531
|
static {
|
|
5508
|
-
this.styles =
|
|
5532
|
+
this.styles = F`
|
|
5509
5533
|
:host {
|
|
5510
5534
|
display: block;
|
|
5511
5535
|
}
|
|
@@ -5683,12 +5707,12 @@ class G extends L {
|
|
|
5683
5707
|
"base-input--error": e,
|
|
5684
5708
|
"base-input--disabled": this.disabled
|
|
5685
5709
|
};
|
|
5686
|
-
return
|
|
5710
|
+
return g`
|
|
5687
5711
|
<div class="input-group">
|
|
5688
|
-
${this.label ?
|
|
5712
|
+
${this.label ? g`
|
|
5689
5713
|
<label for=${this.inputId} class="input-label">
|
|
5690
5714
|
${this.label}
|
|
5691
|
-
${this.required ?
|
|
5715
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5692
5716
|
</label>
|
|
5693
5717
|
` : ""}
|
|
5694
5718
|
|
|
@@ -5714,47 +5738,47 @@ class G extends L {
|
|
|
5714
5738
|
</div>
|
|
5715
5739
|
</div>
|
|
5716
5740
|
|
|
5717
|
-
${e ?
|
|
5741
|
+
${e ? g`
|
|
5718
5742
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5719
5743
|
${this.error}
|
|
5720
5744
|
</div>
|
|
5721
|
-
` : this.hint ?
|
|
5745
|
+
` : this.hint ? g` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5722
5746
|
</div>
|
|
5723
5747
|
`;
|
|
5724
5748
|
}
|
|
5725
5749
|
}
|
|
5726
5750
|
ee([
|
|
5727
|
-
|
|
5751
|
+
u({ type: String })
|
|
5728
5752
|
], G.prototype, "value");
|
|
5729
5753
|
ee([
|
|
5730
|
-
|
|
5754
|
+
u({ type: String })
|
|
5731
5755
|
], G.prototype, "label");
|
|
5732
5756
|
ee([
|
|
5733
|
-
|
|
5757
|
+
u({ type: String })
|
|
5734
5758
|
], G.prototype, "placeholder");
|
|
5735
5759
|
ee([
|
|
5736
|
-
|
|
5760
|
+
u({ type: String })
|
|
5737
5761
|
], G.prototype, "type");
|
|
5738
5762
|
ee([
|
|
5739
|
-
|
|
5763
|
+
u({ type: Boolean, reflect: !0 })
|
|
5740
5764
|
], G.prototype, "required");
|
|
5741
5765
|
ee([
|
|
5742
|
-
|
|
5766
|
+
u({ type: Boolean, reflect: !0 })
|
|
5743
5767
|
], G.prototype, "disabled");
|
|
5744
5768
|
ee([
|
|
5745
|
-
|
|
5769
|
+
u({ type: String })
|
|
5746
5770
|
], G.prototype, "error");
|
|
5747
5771
|
ee([
|
|
5748
|
-
|
|
5772
|
+
u({ type: String })
|
|
5749
5773
|
], G.prototype, "hint");
|
|
5750
5774
|
ee([
|
|
5751
|
-
|
|
5775
|
+
u({ type: String })
|
|
5752
5776
|
], G.prototype, "autocomplete");
|
|
5753
5777
|
ee([
|
|
5754
|
-
|
|
5778
|
+
u({ type: String })
|
|
5755
5779
|
], G.prototype, "size");
|
|
5756
5780
|
ee([
|
|
5757
|
-
|
|
5781
|
+
V("input")
|
|
5758
5782
|
], G.prototype, "inputElement");
|
|
5759
5783
|
var _i = Object.defineProperty, I = (r, e, t, i) => {
|
|
5760
5784
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -5786,7 +5810,7 @@ class R extends L {
|
|
|
5786
5810
|
}
|
|
5787
5811
|
}
|
|
5788
5812
|
static {
|
|
5789
|
-
this.styles =
|
|
5813
|
+
this.styles = F`
|
|
5790
5814
|
:host {
|
|
5791
5815
|
display: block;
|
|
5792
5816
|
position: relative;
|
|
@@ -6122,12 +6146,12 @@ class R extends L {
|
|
|
6122
6146
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6123
6147
|
"select-disabled": this.disabled
|
|
6124
6148
|
};
|
|
6125
|
-
return
|
|
6149
|
+
return g`
|
|
6126
6150
|
<div class="select-group">
|
|
6127
|
-
${this.label ?
|
|
6151
|
+
${this.label ? g`
|
|
6128
6152
|
<label for=${this.selectId} class="select-label">
|
|
6129
6153
|
${this.label}
|
|
6130
|
-
${this.required ?
|
|
6154
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6131
6155
|
</label>
|
|
6132
6156
|
` : ""}
|
|
6133
6157
|
|
|
@@ -6169,7 +6193,7 @@ class R extends L {
|
|
|
6169
6193
|
</svg>
|
|
6170
6194
|
</div>
|
|
6171
6195
|
|
|
6172
|
-
${this.isOpen ?
|
|
6196
|
+
${this.isOpen ? g`
|
|
6173
6197
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6174
6198
|
<div
|
|
6175
6199
|
class=${S({
|
|
@@ -6179,8 +6203,8 @@ class R extends L {
|
|
|
6179
6203
|
})}
|
|
6180
6204
|
role="listbox"
|
|
6181
6205
|
>
|
|
6182
|
-
${this.filteredOptions.length === 0 ?
|
|
6183
|
-
(o, a) =>
|
|
6206
|
+
${this.filteredOptions.length === 0 ? g` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6207
|
+
(o, a) => g`
|
|
6184
6208
|
<div
|
|
6185
6209
|
class=${S({
|
|
6186
6210
|
"dropdown-option": !0,
|
|
@@ -6199,11 +6223,11 @@ class R extends L {
|
|
|
6199
6223
|
` : ""}
|
|
6200
6224
|
</div>
|
|
6201
6225
|
|
|
6202
|
-
${e ?
|
|
6226
|
+
${e ? g`
|
|
6203
6227
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6204
6228
|
${this.error}
|
|
6205
6229
|
</div>
|
|
6206
|
-
` : this.hint ?
|
|
6230
|
+
` : this.hint ? g` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6207
6231
|
|
|
6208
6232
|
<!-- Hidden slot for option elements -->
|
|
6209
6233
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6212,34 +6236,34 @@ class R extends L {
|
|
|
6212
6236
|
}
|
|
6213
6237
|
}
|
|
6214
6238
|
I([
|
|
6215
|
-
|
|
6239
|
+
u({ type: String })
|
|
6216
6240
|
], R.prototype, "value");
|
|
6217
6241
|
I([
|
|
6218
|
-
|
|
6242
|
+
u({ type: String })
|
|
6219
6243
|
], R.prototype, "label");
|
|
6220
6244
|
I([
|
|
6221
|
-
|
|
6245
|
+
u({ type: String })
|
|
6222
6246
|
], R.prototype, "placeholder");
|
|
6223
6247
|
I([
|
|
6224
|
-
|
|
6248
|
+
u({ type: Boolean, reflect: !0 })
|
|
6225
6249
|
], R.prototype, "required");
|
|
6226
6250
|
I([
|
|
6227
|
-
|
|
6251
|
+
u({ type: Boolean, reflect: !0 })
|
|
6228
6252
|
], R.prototype, "disabled");
|
|
6229
6253
|
I([
|
|
6230
|
-
|
|
6254
|
+
u({ type: Boolean, reflect: !0 })
|
|
6231
6255
|
], R.prototype, "searchable");
|
|
6232
6256
|
I([
|
|
6233
|
-
|
|
6257
|
+
u({ type: String })
|
|
6234
6258
|
], R.prototype, "error");
|
|
6235
6259
|
I([
|
|
6236
|
-
|
|
6260
|
+
u({ type: String })
|
|
6237
6261
|
], R.prototype, "hint");
|
|
6238
6262
|
I([
|
|
6239
|
-
|
|
6263
|
+
u({ type: String })
|
|
6240
6264
|
], R.prototype, "size");
|
|
6241
6265
|
I([
|
|
6242
|
-
|
|
6266
|
+
u({ type: Array })
|
|
6243
6267
|
], R.prototype, "options");
|
|
6244
6268
|
I([
|
|
6245
6269
|
w()
|
|
@@ -6260,13 +6284,13 @@ I([
|
|
|
6260
6284
|
w()
|
|
6261
6285
|
], R.prototype, "alignRight");
|
|
6262
6286
|
I([
|
|
6263
|
-
|
|
6287
|
+
V(".select-input")
|
|
6264
6288
|
], R.prototype, "selectInput");
|
|
6265
6289
|
I([
|
|
6266
|
-
|
|
6290
|
+
V(".select-display")
|
|
6267
6291
|
], R.prototype, "selectDisplay");
|
|
6268
6292
|
I([
|
|
6269
|
-
|
|
6293
|
+
V(".dropdown-options")
|
|
6270
6294
|
], R.prototype, "dropdownElement");
|
|
6271
6295
|
var Ei = Object.defineProperty, je = (r, e, t, i) => {
|
|
6272
6296
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -6282,7 +6306,7 @@ class Ae extends L {
|
|
|
6282
6306
|
super(...arguments), this.id = "", this.label = "", this.active = !1;
|
|
6283
6307
|
}
|
|
6284
6308
|
static {
|
|
6285
|
-
this.styles =
|
|
6309
|
+
this.styles = F`
|
|
6286
6310
|
:host {
|
|
6287
6311
|
display: none;
|
|
6288
6312
|
scroll-margin-top: 2rem;
|
|
@@ -6324,7 +6348,7 @@ class Ae extends L {
|
|
|
6324
6348
|
);
|
|
6325
6349
|
}
|
|
6326
6350
|
render() {
|
|
6327
|
-
return
|
|
6351
|
+
return g`
|
|
6328
6352
|
<div
|
|
6329
6353
|
class="base-tab"
|
|
6330
6354
|
id="tabpanel-${this.id}"
|
|
@@ -6337,19 +6361,19 @@ class Ae extends L {
|
|
|
6337
6361
|
}
|
|
6338
6362
|
}
|
|
6339
6363
|
je([
|
|
6340
|
-
|
|
6364
|
+
u({ type: String, reflect: !0 })
|
|
6341
6365
|
], Ae.prototype, "id");
|
|
6342
6366
|
je([
|
|
6343
|
-
|
|
6367
|
+
u({ type: String })
|
|
6344
6368
|
], Ae.prototype, "label");
|
|
6345
6369
|
je([
|
|
6346
|
-
|
|
6370
|
+
u({ type: Number })
|
|
6347
6371
|
], Ae.prototype, "badge");
|
|
6348
6372
|
je([
|
|
6349
|
-
|
|
6373
|
+
u({ type: String })
|
|
6350
6374
|
], Ae.prototype, "icon");
|
|
6351
6375
|
je([
|
|
6352
|
-
|
|
6376
|
+
u({ type: Boolean, reflect: !0 })
|
|
6353
6377
|
], Ae.prototype, "active");
|
|
6354
6378
|
var Ti = Object.defineProperty, ae = (r, e, t, i) => {
|
|
6355
6379
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -6365,7 +6389,7 @@ class ie extends L {
|
|
|
6365
6389
|
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;
|
|
6366
6390
|
}
|
|
6367
6391
|
static {
|
|
6368
|
-
this.styles =
|
|
6392
|
+
this.styles = F`
|
|
6369
6393
|
:host {
|
|
6370
6394
|
display: block;
|
|
6371
6395
|
min-width: 0;
|
|
@@ -6880,7 +6904,7 @@ class ie extends L {
|
|
|
6880
6904
|
e.stopPropagation();
|
|
6881
6905
|
const { id: s, badge: o } = e.detail, a = this.tabs.findIndex((n) => n.id === s);
|
|
6882
6906
|
a !== -1 && (this.tabs = this.tabs.map(
|
|
6883
|
-
(n,
|
|
6907
|
+
(n, c) => c === a ? { ...n, badge: o } : n
|
|
6884
6908
|
));
|
|
6885
6909
|
}
|
|
6886
6910
|
updateChildTabs() {
|
|
@@ -6939,7 +6963,7 @@ class ie extends L {
|
|
|
6939
6963
|
"tab-button": !0,
|
|
6940
6964
|
"tab-button--active": i
|
|
6941
6965
|
};
|
|
6942
|
-
return
|
|
6966
|
+
return g`
|
|
6943
6967
|
<button
|
|
6944
6968
|
role="tab"
|
|
6945
6969
|
aria-selected=${i}
|
|
@@ -6950,9 +6974,9 @@ class ie extends L {
|
|
|
6950
6974
|
@click=${() => this.handleTabClick(e.id)}
|
|
6951
6975
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
6952
6976
|
>
|
|
6953
|
-
${e.icon ?
|
|
6954
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
6955
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
6977
|
+
${e.icon ? g`<span class="tab-icon">${Pr(e.icon)}</span>` : k}
|
|
6978
|
+
${s || this.variant !== "sidebar" || this.isMobile ? g`<span class="tab-label">${e.label}</span>` : k}
|
|
6979
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? g`<span class="tab-badge">${e.badge}</span>` : k}
|
|
6956
6980
|
</button>
|
|
6957
6981
|
`;
|
|
6958
6982
|
}
|
|
@@ -6967,9 +6991,9 @@ class ie extends L {
|
|
|
6967
6991
|
"sidebar-toggle": !0,
|
|
6968
6992
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
6969
6993
|
};
|
|
6970
|
-
return
|
|
6994
|
+
return g`
|
|
6971
6995
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
6972
|
-
${this.variant === "sidebar" ?
|
|
6996
|
+
${this.variant === "sidebar" ? g`
|
|
6973
6997
|
<div class=${S(i)}>
|
|
6974
6998
|
<!-- Sidebar Header -->
|
|
6975
6999
|
<div class="sidebar-header">
|
|
@@ -6999,7 +7023,7 @@ class ie extends L {
|
|
|
6999
7023
|
<slot name="sidebar-footer"></slot>
|
|
7000
7024
|
</div>
|
|
7001
7025
|
</div>
|
|
7002
|
-
` :
|
|
7026
|
+
` : g`
|
|
7003
7027
|
<div class="tabs-header">
|
|
7004
7028
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7005
7029
|
</div>
|
|
@@ -7014,19 +7038,19 @@ class ie extends L {
|
|
|
7014
7038
|
}
|
|
7015
7039
|
}
|
|
7016
7040
|
ae([
|
|
7017
|
-
|
|
7041
|
+
u({ type: String, attribute: "active-tab" })
|
|
7018
7042
|
], ie.prototype, "activeTab");
|
|
7019
7043
|
ae([
|
|
7020
|
-
|
|
7044
|
+
u({ type: String, attribute: "aria-label" })
|
|
7021
7045
|
], ie.prototype, "ariaLabel");
|
|
7022
7046
|
ae([
|
|
7023
|
-
|
|
7047
|
+
u({ type: Boolean, attribute: "sync-with-hash" })
|
|
7024
7048
|
], ie.prototype, "syncWithHash");
|
|
7025
7049
|
ae([
|
|
7026
|
-
|
|
7050
|
+
u({ type: String })
|
|
7027
7051
|
], ie.prototype, "variant");
|
|
7028
7052
|
ae([
|
|
7029
|
-
|
|
7053
|
+
u({ type: Boolean, attribute: "force-expanded" })
|
|
7030
7054
|
], ie.prototype, "forceExpanded");
|
|
7031
7055
|
ae([
|
|
7032
7056
|
w()
|
|
@@ -7038,7 +7062,7 @@ ae([
|
|
|
7038
7062
|
w()
|
|
7039
7063
|
], ie.prototype, "isMobile");
|
|
7040
7064
|
ae([
|
|
7041
|
-
|
|
7065
|
+
V(".tabs-nav")
|
|
7042
7066
|
], ie.prototype, "tabsNav");
|
|
7043
7067
|
var Pi = Object.defineProperty, Q = (r, e, t, i) => {
|
|
7044
7068
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7054,7 +7078,7 @@ class K extends L {
|
|
|
7054
7078
|
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)}`;
|
|
7055
7079
|
}
|
|
7056
7080
|
static {
|
|
7057
|
-
this.styles =
|
|
7081
|
+
this.styles = F`
|
|
7058
7082
|
:host {
|
|
7059
7083
|
display: block;
|
|
7060
7084
|
}
|
|
@@ -7264,12 +7288,12 @@ class K extends L {
|
|
|
7264
7288
|
"character-count--warning": s && !o,
|
|
7265
7289
|
"character-count--error": o
|
|
7266
7290
|
};
|
|
7267
|
-
return
|
|
7291
|
+
return g`
|
|
7268
7292
|
<div class="textarea-group">
|
|
7269
|
-
${this.label ?
|
|
7293
|
+
${this.label ? g`
|
|
7270
7294
|
<label for=${this.textareaId} class="textarea-label">
|
|
7271
7295
|
${this.label}
|
|
7272
|
-
${this.required ?
|
|
7296
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7273
7297
|
</label>
|
|
7274
7298
|
` : ""}
|
|
7275
7299
|
|
|
@@ -7290,57 +7314,57 @@ class K extends L {
|
|
|
7290
7314
|
@focus=${this.handleFocus}
|
|
7291
7315
|
></textarea>
|
|
7292
7316
|
|
|
7293
|
-
${i ?
|
|
7317
|
+
${i ? g`
|
|
7294
7318
|
<div class=${S(n)}>
|
|
7295
7319
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7296
7320
|
</div>
|
|
7297
7321
|
` : ""}
|
|
7298
7322
|
</div>
|
|
7299
7323
|
|
|
7300
|
-
${e ?
|
|
7324
|
+
${e ? g`
|
|
7301
7325
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7302
7326
|
${this.error}
|
|
7303
7327
|
</div>
|
|
7304
|
-
` : this.hint ?
|
|
7328
|
+
` : this.hint ? g` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7305
7329
|
</div>
|
|
7306
7330
|
`;
|
|
7307
7331
|
}
|
|
7308
7332
|
}
|
|
7309
7333
|
Q([
|
|
7310
|
-
|
|
7334
|
+
u({ type: String })
|
|
7311
7335
|
], K.prototype, "value");
|
|
7312
7336
|
Q([
|
|
7313
|
-
|
|
7337
|
+
u({ type: String })
|
|
7314
7338
|
], K.prototype, "label");
|
|
7315
7339
|
Q([
|
|
7316
|
-
|
|
7340
|
+
u({ type: String })
|
|
7317
7341
|
], K.prototype, "placeholder");
|
|
7318
7342
|
Q([
|
|
7319
|
-
|
|
7343
|
+
u({ type: Boolean, reflect: !0 })
|
|
7320
7344
|
], K.prototype, "required");
|
|
7321
7345
|
Q([
|
|
7322
|
-
|
|
7346
|
+
u({ type: Boolean, reflect: !0 })
|
|
7323
7347
|
], K.prototype, "disabled");
|
|
7324
7348
|
Q([
|
|
7325
|
-
|
|
7349
|
+
u({ type: String })
|
|
7326
7350
|
], K.prototype, "error");
|
|
7327
7351
|
Q([
|
|
7328
|
-
|
|
7352
|
+
u({ type: String })
|
|
7329
7353
|
], K.prototype, "hint");
|
|
7330
7354
|
Q([
|
|
7331
|
-
|
|
7355
|
+
u({ type: String })
|
|
7332
7356
|
], K.prototype, "size");
|
|
7333
7357
|
Q([
|
|
7334
|
-
|
|
7358
|
+
u({ type: Number })
|
|
7335
7359
|
], K.prototype, "rows");
|
|
7336
7360
|
Q([
|
|
7337
|
-
|
|
7361
|
+
u({ type: Number })
|
|
7338
7362
|
], K.prototype, "maxlength");
|
|
7339
7363
|
Q([
|
|
7340
|
-
|
|
7364
|
+
u({ type: String })
|
|
7341
7365
|
], K.prototype, "resize");
|
|
7342
7366
|
Q([
|
|
7343
|
-
|
|
7367
|
+
V("textarea")
|
|
7344
7368
|
], K.prototype, "textareaElement");
|
|
7345
7369
|
var Ri = Object.defineProperty, Ve = (r, e, t, i) => {
|
|
7346
7370
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7404,7 +7428,7 @@ class Te extends L {
|
|
|
7404
7428
|
);
|
|
7405
7429
|
}
|
|
7406
7430
|
static {
|
|
7407
|
-
this.styles =
|
|
7431
|
+
this.styles = F`
|
|
7408
7432
|
:host {
|
|
7409
7433
|
position: fixed;
|
|
7410
7434
|
display: flex;
|
|
@@ -7756,13 +7780,13 @@ class Te extends L {
|
|
|
7756
7780
|
`;
|
|
7757
7781
|
}
|
|
7758
7782
|
render() {
|
|
7759
|
-
return
|
|
7783
|
+
return g`
|
|
7760
7784
|
<div class="toast-container ${this.variant}">
|
|
7761
|
-
${this.dismiss !== "manual" ?
|
|
7785
|
+
${this.dismiss !== "manual" ? g`
|
|
7762
7786
|
<div class="toast-progress"></div>
|
|
7763
7787
|
` : ""}
|
|
7764
7788
|
<slot></slot>
|
|
7765
|
-
${this.dismiss === "manual" ?
|
|
7789
|
+
${this.dismiss === "manual" ? g`
|
|
7766
7790
|
<button
|
|
7767
7791
|
class="toast-dismiss-btn ${this.variant}"
|
|
7768
7792
|
aria-label="Dismiss toast"
|
|
@@ -7776,19 +7800,19 @@ class Te extends L {
|
|
|
7776
7800
|
}
|
|
7777
7801
|
}
|
|
7778
7802
|
Ve([
|
|
7779
|
-
|
|
7803
|
+
u({ type: String, attribute: "variant", reflect: !0 })
|
|
7780
7804
|
], Te.prototype, "variant");
|
|
7781
7805
|
Ve([
|
|
7782
|
-
|
|
7806
|
+
u({ type: String, attribute: "padding", reflect: !0 })
|
|
7783
7807
|
], Te.prototype, "padding");
|
|
7784
7808
|
Ve([
|
|
7785
|
-
|
|
7809
|
+
u({ type: String, attribute: "size", reflect: !0 })
|
|
7786
7810
|
], Te.prototype, "size");
|
|
7787
7811
|
Ve([
|
|
7788
|
-
|
|
7812
|
+
u({ type: String, attribute: "dismiss", reflect: !0 })
|
|
7789
7813
|
], Te.prototype, "dismiss");
|
|
7790
7814
|
Ve([
|
|
7791
|
-
|
|
7815
|
+
u({ type: String, attribute: "position", reflect: !0 })
|
|
7792
7816
|
], Te.prototype, "position");
|
|
7793
7817
|
function va({
|
|
7794
7818
|
message: r,
|
|
@@ -7817,7 +7841,7 @@ class De extends L {
|
|
|
7817
7841
|
super(...arguments), this.value = 0, this.min = 0, this.max = 99, this.size = "md", this.allowInput = !0;
|
|
7818
7842
|
}
|
|
7819
7843
|
static {
|
|
7820
|
-
this.styles =
|
|
7844
|
+
this.styles = F`
|
|
7821
7845
|
:host {
|
|
7822
7846
|
display: inline-block;
|
|
7823
7847
|
}
|
|
@@ -8002,7 +8026,7 @@ class De extends L {
|
|
|
8002
8026
|
"quantity-input": !0,
|
|
8003
8027
|
[`quantity-input--${this.size}`]: !0
|
|
8004
8028
|
};
|
|
8005
|
-
return
|
|
8029
|
+
return g`
|
|
8006
8030
|
<div class=${S(e)}>
|
|
8007
8031
|
<button
|
|
8008
8032
|
type="button"
|
|
@@ -8039,19 +8063,19 @@ class De extends L {
|
|
|
8039
8063
|
}
|
|
8040
8064
|
}
|
|
8041
8065
|
Ze([
|
|
8042
|
-
|
|
8066
|
+
u({ type: Number })
|
|
8043
8067
|
], De.prototype, "value");
|
|
8044
8068
|
Ze([
|
|
8045
|
-
|
|
8069
|
+
u({ type: Number })
|
|
8046
8070
|
], De.prototype, "min");
|
|
8047
8071
|
Ze([
|
|
8048
|
-
|
|
8072
|
+
u({ type: Number })
|
|
8049
8073
|
], De.prototype, "max");
|
|
8050
8074
|
Ze([
|
|
8051
|
-
|
|
8075
|
+
u({ type: String })
|
|
8052
8076
|
], De.prototype, "size");
|
|
8053
8077
|
Ze([
|
|
8054
|
-
|
|
8078
|
+
u({ type: Boolean, attribute: "allow-input" })
|
|
8055
8079
|
], De.prototype, "allowInput");
|
|
8056
8080
|
var Li = Object.defineProperty, Ye = (r, e, t, i) => {
|
|
8057
8081
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -8115,7 +8139,7 @@ class Pe extends L {
|
|
|
8115
8139
|
}
|
|
8116
8140
|
render() {
|
|
8117
8141
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8118
|
-
return
|
|
8142
|
+
return g`
|
|
8119
8143
|
<button
|
|
8120
8144
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8121
8145
|
@click=${this.toggleTheme}
|
|
@@ -8133,7 +8157,7 @@ class Pe extends L {
|
|
|
8133
8157
|
`;
|
|
8134
8158
|
}
|
|
8135
8159
|
static {
|
|
8136
|
-
this.styles =
|
|
8160
|
+
this.styles = F`
|
|
8137
8161
|
:host {
|
|
8138
8162
|
display: inline-block;
|
|
8139
8163
|
}
|
|
@@ -8277,13 +8301,13 @@ class Pe extends L {
|
|
|
8277
8301
|
}
|
|
8278
8302
|
}
|
|
8279
8303
|
Ye([
|
|
8280
|
-
|
|
8304
|
+
u({ type: String, attribute: "size" })
|
|
8281
8305
|
], Pe.prototype, "size");
|
|
8282
8306
|
Ye([
|
|
8283
|
-
|
|
8307
|
+
u({ type: String, attribute: "variant" })
|
|
8284
8308
|
], Pe.prototype, "variant");
|
|
8285
8309
|
Ye([
|
|
8286
|
-
|
|
8310
|
+
u({ type: Object, attribute: "themes" })
|
|
8287
8311
|
], Pe.prototype, "themes");
|
|
8288
8312
|
Ye([
|
|
8289
8313
|
w()
|
|
@@ -8301,14 +8325,14 @@ const { toString: Ui } = Object.prototype, { getPrototypeOf: Bt } = Object, { it
|
|
|
8301
8325
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
8302
8326
|
})(/* @__PURE__ */ Object.create(null)), te = (r) => (r = r.toLowerCase(), (e) => ut(e) === r), ft = (r) => (e) => typeof e === r, { isArray: Oe } = Array, Se = ft("undefined");
|
|
8303
8327
|
function We(r) {
|
|
8304
|
-
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) &&
|
|
8328
|
+
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) && Y(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
8305
8329
|
}
|
|
8306
8330
|
const zr = te("ArrayBuffer");
|
|
8307
8331
|
function Ni(r) {
|
|
8308
8332
|
let e;
|
|
8309
8333
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && zr(r.buffer), e;
|
|
8310
8334
|
}
|
|
8311
|
-
const qi = ft("string"),
|
|
8335
|
+
const qi = ft("string"), Y = ft("function"), Mr = ft("number"), Ke = (r) => r !== null && typeof r == "object", Fi = (r) => r === !0 || r === !1, st = (r) => {
|
|
8312
8336
|
if (ut(r) !== "object")
|
|
8313
8337
|
return !1;
|
|
8314
8338
|
const e = Bt(r);
|
|
@@ -8321,10 +8345,10 @@ const qi = ft("string"), Z = ft("function"), Mr = ft("number"), Ke = (r) => r !=
|
|
|
8321
8345
|
} catch {
|
|
8322
8346
|
return !1;
|
|
8323
8347
|
}
|
|
8324
|
-
}, ji = te("Date"), Vi = te("File"), Zi = te("Blob"), Yi = te("FileList"), Wi = (r) => Ke(r) &&
|
|
8348
|
+
}, ji = te("Date"), Vi = te("File"), Zi = te("Blob"), Yi = te("FileList"), Wi = (r) => Ke(r) && Y(r.pipe), Ki = (r) => {
|
|
8325
8349
|
let e;
|
|
8326
|
-
return r && (typeof FormData == "function" && r instanceof FormData ||
|
|
8327
|
-
e === "object" &&
|
|
8350
|
+
return r && (typeof FormData == "function" && r instanceof FormData || Y(r.append) && ((e = ut(r)) === "formdata" || // detect form-data instance
|
|
8351
|
+
e === "object" && Y(r.toString) && r.toString() === "[object FormData]"));
|
|
8328
8352
|
}, Ji = te("URLSearchParams"), [Xi, Gi, Qi, eo] = ["ReadableStream", "Request", "Response", "Headers"].map(te), to = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8329
8353
|
function Je(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
8330
8354
|
if (r === null || typeof r > "u")
|
|
@@ -8353,7 +8377,7 @@ function Ir(r, e) {
|
|
|
8353
8377
|
return s;
|
|
8354
8378
|
return null;
|
|
8355
8379
|
}
|
|
8356
|
-
const
|
|
8380
|
+
const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lr = (r) => !Se(r) && r !== me;
|
|
8357
8381
|
function _t() {
|
|
8358
8382
|
const { caseless: r, skipUndefined: e } = Lr(this) && this || {}, t = {}, i = (s, o) => {
|
|
8359
8383
|
const a = r && Ir(t, o) || o;
|
|
@@ -8364,7 +8388,7 @@ function _t() {
|
|
|
8364
8388
|
return t;
|
|
8365
8389
|
}
|
|
8366
8390
|
const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
8367
|
-
t &&
|
|
8391
|
+
t && Y(s) ? r[o] = Or(s, t) : r[o] = s;
|
|
8368
8392
|
}, { allOwnKeys: i }), r), so = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), io = (r, e, t, i) => {
|
|
8369
8393
|
r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, Object.defineProperty(r, "super", {
|
|
8370
8394
|
value: e.prototype
|
|
@@ -8416,12 +8440,12 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8416
8440
|
let a;
|
|
8417
8441
|
(a = e(s, o, r)) !== !1 && (i[o] = a || s);
|
|
8418
8442
|
}), Object.defineProperties(r, i);
|
|
8419
|
-
},
|
|
8443
|
+
}, go = (r) => {
|
|
8420
8444
|
Br(r, (e, t) => {
|
|
8421
|
-
if (
|
|
8445
|
+
if (Y(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
8422
8446
|
return !1;
|
|
8423
8447
|
const i = r[t];
|
|
8424
|
-
if (
|
|
8448
|
+
if (Y(i)) {
|
|
8425
8449
|
if (e.enumerable = !1, "writable" in e) {
|
|
8426
8450
|
e.writable = !1;
|
|
8427
8451
|
return;
|
|
@@ -8431,7 +8455,7 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8431
8455
|
});
|
|
8432
8456
|
}
|
|
8433
8457
|
});
|
|
8434
|
-
},
|
|
8458
|
+
}, mo = (r, e) => {
|
|
8435
8459
|
const t = {}, i = (s) => {
|
|
8436
8460
|
s.forEach((o) => {
|
|
8437
8461
|
t[o] = !0;
|
|
@@ -8441,7 +8465,7 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8441
8465
|
}, bo = () => {
|
|
8442
8466
|
}, vo = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
|
|
8443
8467
|
function yo(r) {
|
|
8444
|
-
return !!(r &&
|
|
8468
|
+
return !!(r && Y(r.append) && r[Rr] === "FormData" && r[pt]);
|
|
8445
8469
|
}
|
|
8446
8470
|
const wo = (r) => {
|
|
8447
8471
|
const e = new Array(10), t = (i, s) => {
|
|
@@ -8454,22 +8478,22 @@ const wo = (r) => {
|
|
|
8454
8478
|
e[s] = i;
|
|
8455
8479
|
const o = Oe(i) ? [] : {};
|
|
8456
8480
|
return Je(i, (a, n) => {
|
|
8457
|
-
const
|
|
8458
|
-
!Se(
|
|
8481
|
+
const c = t(a, s + 1);
|
|
8482
|
+
!Se(c) && (o[n] = c);
|
|
8459
8483
|
}), e[s] = void 0, o;
|
|
8460
8484
|
}
|
|
8461
8485
|
}
|
|
8462
8486
|
return i;
|
|
8463
8487
|
};
|
|
8464
8488
|
return t(r, 0);
|
|
8465
|
-
}, xo = te("AsyncFunction"), $o = (r) => r && (Ke(r) ||
|
|
8466
|
-
s ===
|
|
8489
|
+
}, xo = te("AsyncFunction"), $o = (r) => r && (Ke(r) || Y(r)) && Y(r.then) && Y(r.catch), Ur = ((r, e) => r ? setImmediate : e ? ((t, i) => (me.addEventListener("message", ({ source: s, data: o }) => {
|
|
8490
|
+
s === me && o === t && i.length && i.shift()();
|
|
8467
8491
|
}, !1), (s) => {
|
|
8468
|
-
i.push(s),
|
|
8492
|
+
i.push(s), me.postMessage(t, "*");
|
|
8469
8493
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
8470
8494
|
typeof setImmediate == "function",
|
|
8471
|
-
|
|
8472
|
-
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
8495
|
+
Y(me.postMessage)
|
|
8496
|
+
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick || Ur, So = (r) => r != null && Y(r[pt]), l = {
|
|
8473
8497
|
isArray: Oe,
|
|
8474
8498
|
isArrayBuffer: zr,
|
|
8475
8499
|
isBuffer: We,
|
|
@@ -8490,7 +8514,7 @@ const wo = (r) => {
|
|
|
8490
8514
|
isFile: Vi,
|
|
8491
8515
|
isBlob: Zi,
|
|
8492
8516
|
isRegExp: fo,
|
|
8493
|
-
isFunction:
|
|
8517
|
+
isFunction: Y,
|
|
8494
8518
|
isStream: Wi,
|
|
8495
8519
|
isURLSearchParams: Ji,
|
|
8496
8520
|
isTypedArray: lo,
|
|
@@ -8513,13 +8537,13 @@ const wo = (r) => {
|
|
|
8513
8537
|
hasOwnProp: lr,
|
|
8514
8538
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8515
8539
|
reduceDescriptors: Br,
|
|
8516
|
-
freezeMethods:
|
|
8517
|
-
toObjectSet:
|
|
8540
|
+
freezeMethods: go,
|
|
8541
|
+
toObjectSet: mo,
|
|
8518
8542
|
toCamelCase: uo,
|
|
8519
8543
|
noop: bo,
|
|
8520
8544
|
toFiniteNumber: vo,
|
|
8521
8545
|
findKey: Ir,
|
|
8522
|
-
global:
|
|
8546
|
+
global: me,
|
|
8523
8547
|
isContextDefined: Lr,
|
|
8524
8548
|
isSpecCompliantForm: yo,
|
|
8525
8549
|
toJSONObject: wo,
|
|
@@ -8575,11 +8599,11 @@ Object.defineProperties($, qr);
|
|
|
8575
8599
|
Object.defineProperty(Nr, "isAxiosError", { value: !0 });
|
|
8576
8600
|
$.from = (r, e, t, i, s, o) => {
|
|
8577
8601
|
const a = Object.create(Nr);
|
|
8578
|
-
l.toFlatObject(r, a, function(
|
|
8579
|
-
return
|
|
8602
|
+
l.toFlatObject(r, a, function(d) {
|
|
8603
|
+
return d !== Error.prototype;
|
|
8580
8604
|
}, (p) => p !== "isAxiosError");
|
|
8581
|
-
const n = r && r.message ? r.message : "Error",
|
|
8582
|
-
return $.call(a, n,
|
|
8605
|
+
const n = r && r.message ? r.message : "Error", c = e == null && r ? r.code : e;
|
|
8606
|
+
return $.call(a, n, c, t, i, s), r && a.cause == null && Object.defineProperty(a, "cause", { value: r, configurable: !0 }), a.name = r && r.name || "Error", o && Object.assign(a, o), a;
|
|
8583
8607
|
};
|
|
8584
8608
|
const _o = null;
|
|
8585
8609
|
function Ct(r) {
|
|
@@ -8599,62 +8623,62 @@ function Co(r) {
|
|
|
8599
8623
|
const Eo = l.toFlatObject(l, {}, null, function(e) {
|
|
8600
8624
|
return /^is[A-Z]/.test(e);
|
|
8601
8625
|
});
|
|
8602
|
-
function
|
|
8626
|
+
function gt(r, e, t) {
|
|
8603
8627
|
if (!l.isObject(r))
|
|
8604
8628
|
throw new TypeError("target must be an object");
|
|
8605
8629
|
e = e || new FormData(), t = l.toFlatObject(t, {
|
|
8606
8630
|
metaTokens: !0,
|
|
8607
8631
|
dots: !1,
|
|
8608
8632
|
indexes: !1
|
|
8609
|
-
}, !1, function(v,
|
|
8610
|
-
return !l.isUndefined(
|
|
8633
|
+
}, !1, function(v, m) {
|
|
8634
|
+
return !l.isUndefined(m[v]);
|
|
8611
8635
|
});
|
|
8612
|
-
const i = t.metaTokens, s = t.visitor ||
|
|
8636
|
+
const i = t.metaTokens, s = t.visitor || d, o = t.dots, a = t.indexes, c = (t.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(e);
|
|
8613
8637
|
if (!l.isFunction(s))
|
|
8614
8638
|
throw new TypeError("visitor must be a function");
|
|
8615
|
-
function p(
|
|
8616
|
-
if (
|
|
8617
|
-
if (l.isDate(
|
|
8618
|
-
return
|
|
8619
|
-
if (l.isBoolean(
|
|
8620
|
-
return
|
|
8621
|
-
if (!
|
|
8639
|
+
function p(f) {
|
|
8640
|
+
if (f === null) return "";
|
|
8641
|
+
if (l.isDate(f))
|
|
8642
|
+
return f.toISOString();
|
|
8643
|
+
if (l.isBoolean(f))
|
|
8644
|
+
return f.toString();
|
|
8645
|
+
if (!c && l.isBlob(f))
|
|
8622
8646
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
8623
|
-
return l.isArrayBuffer(
|
|
8647
|
+
return l.isArrayBuffer(f) || l.isTypedArray(f) ? c && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
8624
8648
|
}
|
|
8625
|
-
function
|
|
8626
|
-
let x =
|
|
8627
|
-
if (
|
|
8649
|
+
function d(f, v, m) {
|
|
8650
|
+
let x = f;
|
|
8651
|
+
if (f && !m && typeof f == "object") {
|
|
8628
8652
|
if (l.endsWith(v, "{}"))
|
|
8629
|
-
v = i ? v : v.slice(0, -2),
|
|
8630
|
-
else if (l.isArray(
|
|
8631
|
-
return v = Fr(v), x.forEach(function(
|
|
8632
|
-
!(l.isUndefined(
|
|
8653
|
+
v = i ? v : v.slice(0, -2), f = JSON.stringify(f);
|
|
8654
|
+
else if (l.isArray(f) && Co(f) || (l.isFileList(f) || l.endsWith(v, "[]")) && (x = l.toArray(f)))
|
|
8655
|
+
return v = Fr(v), x.forEach(function(C, T) {
|
|
8656
|
+
!(l.isUndefined(C) || C === null) && e.append(
|
|
8633
8657
|
// eslint-disable-next-line no-nested-ternary
|
|
8634
8658
|
a === !0 ? cr([v], T, o) : a === null ? v : v + "[]",
|
|
8635
|
-
p(
|
|
8659
|
+
p(C)
|
|
8636
8660
|
);
|
|
8637
8661
|
}), !1;
|
|
8638
8662
|
}
|
|
8639
|
-
return Ct(
|
|
8663
|
+
return Ct(f) ? !0 : (e.append(cr(m, v, o), p(f)), !1);
|
|
8640
8664
|
}
|
|
8641
|
-
const h = [],
|
|
8642
|
-
defaultVisitor:
|
|
8665
|
+
const h = [], b = Object.assign(Eo, {
|
|
8666
|
+
defaultVisitor: d,
|
|
8643
8667
|
convertValue: p,
|
|
8644
8668
|
isVisitable: Ct
|
|
8645
8669
|
});
|
|
8646
|
-
function y(
|
|
8647
|
-
if (!l.isUndefined(
|
|
8648
|
-
if (h.indexOf(
|
|
8670
|
+
function y(f, v) {
|
|
8671
|
+
if (!l.isUndefined(f)) {
|
|
8672
|
+
if (h.indexOf(f) !== -1)
|
|
8649
8673
|
throw Error("Circular reference detected in " + v.join("."));
|
|
8650
|
-
h.push(
|
|
8674
|
+
h.push(f), l.forEach(f, function(x, _) {
|
|
8651
8675
|
(!(l.isUndefined(x) || x === null) && s.call(
|
|
8652
8676
|
e,
|
|
8653
8677
|
x,
|
|
8654
|
-
l.isString(
|
|
8678
|
+
l.isString(_) ? _.trim() : _,
|
|
8655
8679
|
v,
|
|
8656
|
-
|
|
8657
|
-
)) === !0 && y(x, v ? v.concat(
|
|
8680
|
+
b
|
|
8681
|
+
)) === !0 && y(x, v ? v.concat(_) : [_]);
|
|
8658
8682
|
}), h.pop();
|
|
8659
8683
|
}
|
|
8660
8684
|
}
|
|
@@ -8677,7 +8701,7 @@ function dr(r) {
|
|
|
8677
8701
|
});
|
|
8678
8702
|
}
|
|
8679
8703
|
function Ut(r, e) {
|
|
8680
|
-
this._pairs = [], r &&
|
|
8704
|
+
this._pairs = [], r && gt(r, this, e);
|
|
8681
8705
|
}
|
|
8682
8706
|
const Hr = Ut.prototype;
|
|
8683
8707
|
Hr.append = function(e, t) {
|
|
@@ -8783,14 +8807,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Mo
|
|
|
8783
8807
|
hasStandardBrowserWebWorkerEnv: zo,
|
|
8784
8808
|
navigator: Et,
|
|
8785
8809
|
origin: Mo
|
|
8786
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8810
|
+
}, Symbol.toStringTag, { value: "Module" })), q = {
|
|
8787
8811
|
...Io,
|
|
8788
8812
|
...Oo
|
|
8789
8813
|
};
|
|
8790
8814
|
function Lo(r, e) {
|
|
8791
|
-
return
|
|
8815
|
+
return gt(r, new q.classes.URLSearchParams(), {
|
|
8792
8816
|
visitor: function(t, i, s, o) {
|
|
8793
|
-
return
|
|
8817
|
+
return q.isNode && l.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
8794
8818
|
},
|
|
8795
8819
|
...e
|
|
8796
8820
|
});
|
|
@@ -8811,8 +8835,8 @@ function Zr(r) {
|
|
|
8811
8835
|
function e(t, i, s, o) {
|
|
8812
8836
|
let a = t[o++];
|
|
8813
8837
|
if (a === "__proto__") return !0;
|
|
8814
|
-
const n = Number.isFinite(+a),
|
|
8815
|
-
return a = !a && l.isArray(s) ? s.length : a,
|
|
8838
|
+
const n = Number.isFinite(+a), c = o >= t.length;
|
|
8839
|
+
return a = !a && l.isArray(s) ? s.length : a, c ? (l.hasOwnProp(s, a) ? s[a] = [s[a], i] : s[a] = i, !n) : ((!s[a] || !l.isObject(s[a])) && (s[a] = []), e(t, i, s[a], o) && l.isArray(s[a]) && (s[a] = Uo(s[a])), !n);
|
|
8816
8840
|
}
|
|
8817
8841
|
if (l.isFormData(r) && l.isFunction(r.entries)) {
|
|
8818
8842
|
const t = {};
|
|
@@ -8850,10 +8874,10 @@ const Xe = {
|
|
|
8850
8874
|
if (i.indexOf("application/x-www-form-urlencoded") > -1)
|
|
8851
8875
|
return Lo(e, this.formSerializer).toString();
|
|
8852
8876
|
if ((n = l.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
8853
|
-
const
|
|
8854
|
-
return
|
|
8877
|
+
const c = this.env && this.env.FormData;
|
|
8878
|
+
return gt(
|
|
8855
8879
|
n ? { "files[]": e } : e,
|
|
8856
|
-
|
|
8880
|
+
c && new c(),
|
|
8857
8881
|
this.formSerializer
|
|
8858
8882
|
);
|
|
8859
8883
|
}
|
|
@@ -8885,8 +8909,8 @@ const Xe = {
|
|
|
8885
8909
|
maxContentLength: -1,
|
|
8886
8910
|
maxBodyLength: -1,
|
|
8887
8911
|
env: {
|
|
8888
|
-
FormData:
|
|
8889
|
-
Blob:
|
|
8912
|
+
FormData: q.classes.FormData,
|
|
8913
|
+
Blob: q.classes.Blob
|
|
8890
8914
|
},
|
|
8891
8915
|
validateStatus: function(e) {
|
|
8892
8916
|
return e >= 200 && e < 300;
|
|
@@ -8965,30 +8989,30 @@ function Zo(r, e) {
|
|
|
8965
8989
|
});
|
|
8966
8990
|
});
|
|
8967
8991
|
}
|
|
8968
|
-
class
|
|
8992
|
+
class W {
|
|
8969
8993
|
constructor(e) {
|
|
8970
8994
|
e && this.set(e);
|
|
8971
8995
|
}
|
|
8972
8996
|
set(e, t, i) {
|
|
8973
8997
|
const s = this;
|
|
8974
|
-
function o(n,
|
|
8975
|
-
const
|
|
8976
|
-
if (!
|
|
8998
|
+
function o(n, c, p) {
|
|
8999
|
+
const d = Le(c);
|
|
9000
|
+
if (!d)
|
|
8977
9001
|
throw new Error("header name must be a non-empty string");
|
|
8978
|
-
const h = l.findKey(s,
|
|
8979
|
-
(!h || s[h] === void 0 || p === !0 || p === void 0 && s[h] !== !1) && (s[h ||
|
|
9002
|
+
const h = l.findKey(s, d);
|
|
9003
|
+
(!h || s[h] === void 0 || p === !0 || p === void 0 && s[h] !== !1) && (s[h || c] = it(n));
|
|
8980
9004
|
}
|
|
8981
|
-
const a = (n,
|
|
9005
|
+
const a = (n, c) => l.forEach(n, (p, d) => o(p, d, c));
|
|
8982
9006
|
if (l.isPlainObject(e) || e instanceof this.constructor)
|
|
8983
9007
|
a(e, t);
|
|
8984
9008
|
else if (l.isString(e) && (e = e.trim()) && !jo(e))
|
|
8985
9009
|
a(Fo(e), t);
|
|
8986
9010
|
else if (l.isObject(e) && l.isIterable(e)) {
|
|
8987
|
-
let n = {},
|
|
8988
|
-
for (const
|
|
8989
|
-
if (!l.isArray(
|
|
9011
|
+
let n = {}, c, p;
|
|
9012
|
+
for (const d of e) {
|
|
9013
|
+
if (!l.isArray(d))
|
|
8990
9014
|
throw TypeError("Object iterator must return a key-value pair");
|
|
8991
|
-
n[p =
|
|
9015
|
+
n[p = d[0]] = (c = n[p]) ? l.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
|
|
8992
9016
|
}
|
|
8993
9017
|
a(n, t);
|
|
8994
9018
|
} else
|
|
@@ -9091,8 +9115,8 @@ class Y {
|
|
|
9091
9115
|
return l.isArray(e) ? e.forEach(o) : o(e), this;
|
|
9092
9116
|
}
|
|
9093
9117
|
}
|
|
9094
|
-
|
|
9095
|
-
l.reduceDescriptors(
|
|
9118
|
+
W.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
9119
|
+
l.reduceDescriptors(W.prototype, ({ value: r }, e) => {
|
|
9096
9120
|
let t = e[0].toUpperCase() + e.slice(1);
|
|
9097
9121
|
return {
|
|
9098
9122
|
get: () => r,
|
|
@@ -9101,9 +9125,9 @@ l.reduceDescriptors(Y.prototype, ({ value: r }, e) => {
|
|
|
9101
9125
|
}
|
|
9102
9126
|
};
|
|
9103
9127
|
});
|
|
9104
|
-
l.freezeMethods(
|
|
9128
|
+
l.freezeMethods(W);
|
|
9105
9129
|
function $t(r, e) {
|
|
9106
|
-
const t = this || Xe, i = e || t, s =
|
|
9130
|
+
const t = this || Xe, i = e || t, s = W.from(i.headers);
|
|
9107
9131
|
let o = i.data;
|
|
9108
9132
|
return l.forEach(r, function(n) {
|
|
9109
9133
|
o = n.call(t, o, s.normalize(), e ? e.status : void 0);
|
|
@@ -9136,26 +9160,26 @@ function Wo(r, e) {
|
|
|
9136
9160
|
r = r || 10;
|
|
9137
9161
|
const t = new Array(r), i = new Array(r);
|
|
9138
9162
|
let s = 0, o = 0, a;
|
|
9139
|
-
return e = e !== void 0 ? e : 1e3, function(
|
|
9140
|
-
const p = Date.now(),
|
|
9141
|
-
a || (a = p), t[s] =
|
|
9142
|
-
let h = o,
|
|
9163
|
+
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
9164
|
+
const p = Date.now(), d = i[o];
|
|
9165
|
+
a || (a = p), t[s] = c, i[s] = p;
|
|
9166
|
+
let h = o, b = 0;
|
|
9143
9167
|
for (; h !== s; )
|
|
9144
|
-
|
|
9168
|
+
b += t[h++], h = h % r;
|
|
9145
9169
|
if (s = (s + 1) % r, s === o && (o = (o + 1) % r), p - a < e)
|
|
9146
9170
|
return;
|
|
9147
|
-
const y =
|
|
9148
|
-
return y ? Math.round(
|
|
9171
|
+
const y = d && p - d;
|
|
9172
|
+
return y ? Math.round(b * 1e3 / y) : void 0;
|
|
9149
9173
|
};
|
|
9150
9174
|
}
|
|
9151
9175
|
function Ko(r, e) {
|
|
9152
9176
|
let t = 0, i = 1e3 / e, s, o;
|
|
9153
|
-
const a = (p,
|
|
9154
|
-
t =
|
|
9177
|
+
const a = (p, d = Date.now()) => {
|
|
9178
|
+
t = d, s = null, o && (clearTimeout(o), o = null), r(...p);
|
|
9155
9179
|
};
|
|
9156
9180
|
return [(...p) => {
|
|
9157
|
-
const
|
|
9158
|
-
h >= i ? a(p,
|
|
9181
|
+
const d = Date.now(), h = d - t;
|
|
9182
|
+
h >= i ? a(p, d) : (s = p, o || (o = setTimeout(() => {
|
|
9159
9183
|
o = null, a(s);
|
|
9160
9184
|
}, i - h)));
|
|
9161
9185
|
}, () => s && a(s)];
|
|
@@ -9164,15 +9188,15 @@ const lt = (r, e, t = 3) => {
|
|
|
9164
9188
|
let i = 0;
|
|
9165
9189
|
const s = Wo(50, 250);
|
|
9166
9190
|
return Ko((o) => {
|
|
9167
|
-
const a = o.loaded, n = o.lengthComputable ? o.total : void 0,
|
|
9191
|
+
const a = o.loaded, n = o.lengthComputable ? o.total : void 0, c = a - i, p = s(c), d = a <= n;
|
|
9168
9192
|
i = a;
|
|
9169
9193
|
const h = {
|
|
9170
9194
|
loaded: a,
|
|
9171
9195
|
total: n,
|
|
9172
9196
|
progress: n ? a / n : void 0,
|
|
9173
|
-
bytes:
|
|
9197
|
+
bytes: c,
|
|
9174
9198
|
rate: p || void 0,
|
|
9175
|
-
estimated: p && n &&
|
|
9199
|
+
estimated: p && n && d ? (n - a) / p : void 0,
|
|
9176
9200
|
event: o,
|
|
9177
9201
|
lengthComputable: n != null,
|
|
9178
9202
|
[e ? "download" : "upload"]: !0
|
|
@@ -9186,10 +9210,10 @@ const lt = (r, e, t = 3) => {
|
|
|
9186
9210
|
total: r,
|
|
9187
9211
|
loaded: i
|
|
9188
9212
|
}), e[1]];
|
|
9189
|
-
}, fr = (r) => (...e) => l.asap(() => r(...e)), Jo =
|
|
9190
|
-
new URL(
|
|
9191
|
-
|
|
9192
|
-
) : () => !0, Xo =
|
|
9213
|
+
}, fr = (r) => (...e) => l.asap(() => r(...e)), Jo = q.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, q.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
9214
|
+
new URL(q.origin),
|
|
9215
|
+
q.navigator && /(msie|trident)/i.test(q.navigator.userAgent)
|
|
9216
|
+
) : () => !0, Xo = q.hasStandardBrowserEnv ? (
|
|
9193
9217
|
// Standard browser envs support document.cookie
|
|
9194
9218
|
{
|
|
9195
9219
|
write(r, e, t, i, s, o, a) {
|
|
@@ -9228,36 +9252,36 @@ function Kr(r, e, t) {
|
|
|
9228
9252
|
let i = !Go(e);
|
|
9229
9253
|
return r && (i || t == !1) ? Qo(r, e) : e;
|
|
9230
9254
|
}
|
|
9231
|
-
const
|
|
9255
|
+
const gr = (r) => r instanceof W ? { ...r } : r;
|
|
9232
9256
|
function ye(r, e) {
|
|
9233
9257
|
e = e || {};
|
|
9234
9258
|
const t = {};
|
|
9235
|
-
function i(p,
|
|
9236
|
-
return l.isPlainObject(p) && l.isPlainObject(
|
|
9259
|
+
function i(p, d, h, b) {
|
|
9260
|
+
return l.isPlainObject(p) && l.isPlainObject(d) ? l.merge.call({ caseless: b }, p, d) : l.isPlainObject(d) ? l.merge({}, d) : l.isArray(d) ? d.slice() : d;
|
|
9237
9261
|
}
|
|
9238
|
-
function s(p,
|
|
9239
|
-
if (l.isUndefined(
|
|
9262
|
+
function s(p, d, h, b) {
|
|
9263
|
+
if (l.isUndefined(d)) {
|
|
9240
9264
|
if (!l.isUndefined(p))
|
|
9241
|
-
return i(void 0, p, h,
|
|
9242
|
-
} else return i(p,
|
|
9265
|
+
return i(void 0, p, h, b);
|
|
9266
|
+
} else return i(p, d, h, b);
|
|
9243
9267
|
}
|
|
9244
|
-
function o(p,
|
|
9245
|
-
if (!l.isUndefined(
|
|
9246
|
-
return i(void 0,
|
|
9268
|
+
function o(p, d) {
|
|
9269
|
+
if (!l.isUndefined(d))
|
|
9270
|
+
return i(void 0, d);
|
|
9247
9271
|
}
|
|
9248
|
-
function a(p,
|
|
9249
|
-
if (l.isUndefined(
|
|
9272
|
+
function a(p, d) {
|
|
9273
|
+
if (l.isUndefined(d)) {
|
|
9250
9274
|
if (!l.isUndefined(p))
|
|
9251
9275
|
return i(void 0, p);
|
|
9252
|
-
} else return i(void 0,
|
|
9276
|
+
} else return i(void 0, d);
|
|
9253
9277
|
}
|
|
9254
|
-
function n(p,
|
|
9278
|
+
function n(p, d, h) {
|
|
9255
9279
|
if (h in e)
|
|
9256
|
-
return i(p,
|
|
9280
|
+
return i(p, d);
|
|
9257
9281
|
if (h in r)
|
|
9258
9282
|
return i(void 0, p);
|
|
9259
9283
|
}
|
|
9260
|
-
const
|
|
9284
|
+
const c = {
|
|
9261
9285
|
url: o,
|
|
9262
9286
|
method: o,
|
|
9263
9287
|
data: o,
|
|
@@ -9286,91 +9310,91 @@ function ye(r, e) {
|
|
|
9286
9310
|
socketPath: a,
|
|
9287
9311
|
responseEncoding: a,
|
|
9288
9312
|
validateStatus: n,
|
|
9289
|
-
headers: (p,
|
|
9313
|
+
headers: (p, d, h) => s(gr(p), gr(d), h, !0)
|
|
9290
9314
|
};
|
|
9291
|
-
return l.forEach(Object.keys({ ...r, ...e }), function(
|
|
9292
|
-
const h = d
|
|
9293
|
-
l.isUndefined(
|
|
9315
|
+
return l.forEach(Object.keys({ ...r, ...e }), function(d) {
|
|
9316
|
+
const h = c[d] || s, b = h(r[d], e[d], d);
|
|
9317
|
+
l.isUndefined(b) && h !== n || (t[d] = b);
|
|
9294
9318
|
}), t;
|
|
9295
9319
|
}
|
|
9296
9320
|
const Jr = (r) => {
|
|
9297
9321
|
const e = ye({}, r);
|
|
9298
9322
|
let { data: t, withXSRFToken: i, xsrfHeaderName: s, xsrfCookieName: o, headers: a, auth: n } = e;
|
|
9299
|
-
if (e.headers = a =
|
|
9323
|
+
if (e.headers = a = W.from(a), e.url = jr(Kr(e.baseURL, e.url, e.allowAbsoluteUrls), r.params, r.paramsSerializer), n && a.set(
|
|
9300
9324
|
"Authorization",
|
|
9301
9325
|
"Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
|
|
9302
9326
|
), l.isFormData(t)) {
|
|
9303
|
-
if (
|
|
9327
|
+
if (q.hasStandardBrowserEnv || q.hasStandardBrowserWebWorkerEnv)
|
|
9304
9328
|
a.setContentType(void 0);
|
|
9305
9329
|
else if (l.isFunction(t.getHeaders)) {
|
|
9306
|
-
const
|
|
9307
|
-
Object.entries(
|
|
9308
|
-
p.includes(
|
|
9330
|
+
const c = t.getHeaders(), p = ["content-type", "content-length"];
|
|
9331
|
+
Object.entries(c).forEach(([d, h]) => {
|
|
9332
|
+
p.includes(d.toLowerCase()) && a.set(d, h);
|
|
9309
9333
|
});
|
|
9310
9334
|
}
|
|
9311
9335
|
}
|
|
9312
|
-
if (
|
|
9313
|
-
const
|
|
9314
|
-
|
|
9336
|
+
if (q.hasStandardBrowserEnv && (i && l.isFunction(i) && (i = i(e)), i || i !== !1 && Jo(e.url))) {
|
|
9337
|
+
const c = s && o && Xo.read(o);
|
|
9338
|
+
c && a.set(s, c);
|
|
9315
9339
|
}
|
|
9316
9340
|
return e;
|
|
9317
9341
|
}, ea = typeof XMLHttpRequest < "u", ta = ea && function(r) {
|
|
9318
9342
|
return new Promise(function(t, i) {
|
|
9319
9343
|
const s = Jr(r);
|
|
9320
9344
|
let o = s.data;
|
|
9321
|
-
const a =
|
|
9322
|
-
let { responseType: n, onUploadProgress:
|
|
9345
|
+
const a = W.from(s.headers).normalize();
|
|
9346
|
+
let { responseType: n, onUploadProgress: c, onDownloadProgress: p } = s, d, h, b, y, f;
|
|
9323
9347
|
function v() {
|
|
9324
|
-
y && y(),
|
|
9348
|
+
y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
|
|
9325
9349
|
}
|
|
9326
|
-
let
|
|
9327
|
-
|
|
9350
|
+
let m = new XMLHttpRequest();
|
|
9351
|
+
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
9328
9352
|
function x() {
|
|
9329
|
-
if (!
|
|
9353
|
+
if (!m)
|
|
9330
9354
|
return;
|
|
9331
|
-
const
|
|
9332
|
-
"getAllResponseHeaders" in
|
|
9333
|
-
),
|
|
9334
|
-
data: !n || n === "text" || n === "json" ?
|
|
9335
|
-
status:
|
|
9336
|
-
statusText:
|
|
9337
|
-
headers:
|
|
9355
|
+
const C = W.from(
|
|
9356
|
+
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
9357
|
+
), B = {
|
|
9358
|
+
data: !n || n === "text" || n === "json" ? m.responseText : m.response,
|
|
9359
|
+
status: m.status,
|
|
9360
|
+
statusText: m.statusText,
|
|
9361
|
+
headers: C,
|
|
9338
9362
|
config: r,
|
|
9339
|
-
request:
|
|
9363
|
+
request: m
|
|
9340
9364
|
};
|
|
9341
9365
|
Wr(function(J) {
|
|
9342
9366
|
t(J), v();
|
|
9343
9367
|
}, function(J) {
|
|
9344
9368
|
i(J), v();
|
|
9345
|
-
},
|
|
9346
|
-
}
|
|
9347
|
-
"onloadend" in
|
|
9348
|
-
!
|
|
9349
|
-
},
|
|
9350
|
-
|
|
9351
|
-
},
|
|
9352
|
-
const
|
|
9353
|
-
he.event = T || null, i(he),
|
|
9354
|
-
},
|
|
9369
|
+
}, B), m = null;
|
|
9370
|
+
}
|
|
9371
|
+
"onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
|
|
9372
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
9373
|
+
}, m.onabort = function() {
|
|
9374
|
+
m && (i(new $("Request aborted", $.ECONNABORTED, r, m)), m = null);
|
|
9375
|
+
}, m.onerror = function(T) {
|
|
9376
|
+
const B = T && T.message ? T.message : "Network Error", he = new $(B, $.ERR_NETWORK, r, m);
|
|
9377
|
+
he.event = T || null, i(he), m = null;
|
|
9378
|
+
}, m.ontimeout = function() {
|
|
9355
9379
|
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
9356
|
-
const
|
|
9380
|
+
const B = s.transitional || Vr;
|
|
9357
9381
|
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), i(new $(
|
|
9358
9382
|
T,
|
|
9359
|
-
|
|
9383
|
+
B.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
9360
9384
|
r,
|
|
9361
|
-
|
|
9362
|
-
)),
|
|
9363
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
9364
|
-
|
|
9365
|
-
}), l.isUndefined(s.withCredentials) || (
|
|
9366
|
-
|
|
9367
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
9368
|
-
const
|
|
9369
|
-
if (
|
|
9370
|
-
i(new $("Unsupported protocol " +
|
|
9385
|
+
m
|
|
9386
|
+
)), m = null;
|
|
9387
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && l.forEach(a.toJSON(), function(T, B) {
|
|
9388
|
+
m.setRequestHeader(B, T);
|
|
9389
|
+
}), l.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), p && ([b, f] = lt(p, !0), m.addEventListener("progress", b)), c && m.upload && ([h, y] = lt(c), m.upload.addEventListener("progress", h), m.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (d = (C) => {
|
|
9390
|
+
m && (i(!C || C.type ? new Re(null, r, m) : C), m.abort(), m = null);
|
|
9391
|
+
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
9392
|
+
const _ = Yo(s.url);
|
|
9393
|
+
if (_ && q.protocols.indexOf(_) === -1) {
|
|
9394
|
+
i(new $("Unsupported protocol " + _ + ":", $.ERR_BAD_REQUEST, r));
|
|
9371
9395
|
return;
|
|
9372
9396
|
}
|
|
9373
|
-
|
|
9397
|
+
m.send(o || null);
|
|
9374
9398
|
});
|
|
9375
9399
|
}, ra = (r, e) => {
|
|
9376
9400
|
const { length: t } = r = r ? r.filter(Boolean) : [];
|
|
@@ -9379,8 +9403,8 @@ const Jr = (r) => {
|
|
|
9379
9403
|
const o = function(p) {
|
|
9380
9404
|
if (!s) {
|
|
9381
9405
|
s = !0, n();
|
|
9382
|
-
const
|
|
9383
|
-
i.abort(
|
|
9406
|
+
const d = p instanceof Error ? p : this.reason;
|
|
9407
|
+
i.abort(d instanceof $ ? d : new Re(d instanceof Error ? d.message : d));
|
|
9384
9408
|
}
|
|
9385
9409
|
};
|
|
9386
9410
|
let a = e && setTimeout(() => {
|
|
@@ -9392,8 +9416,8 @@ const Jr = (r) => {
|
|
|
9392
9416
|
}), r = null);
|
|
9393
9417
|
};
|
|
9394
9418
|
r.forEach((p) => p.addEventListener("abort", o));
|
|
9395
|
-
const { signal:
|
|
9396
|
-
return
|
|
9419
|
+
const { signal: c } = i;
|
|
9420
|
+
return c.unsubscribe = () => l.asap(n), c;
|
|
9397
9421
|
}
|
|
9398
9422
|
}, sa = function* (r, e) {
|
|
9399
9423
|
let t = r.byteLength;
|
|
@@ -9423,31 +9447,31 @@ const Jr = (r) => {
|
|
|
9423
9447
|
} finally {
|
|
9424
9448
|
await e.cancel();
|
|
9425
9449
|
}
|
|
9426
|
-
},
|
|
9450
|
+
}, mr = (r, e, t, i) => {
|
|
9427
9451
|
const s = ia(r, e);
|
|
9428
|
-
let o = 0, a, n = (
|
|
9429
|
-
a || (a = !0, i && i(
|
|
9452
|
+
let o = 0, a, n = (c) => {
|
|
9453
|
+
a || (a = !0, i && i(c));
|
|
9430
9454
|
};
|
|
9431
9455
|
return new ReadableStream({
|
|
9432
|
-
async pull(
|
|
9456
|
+
async pull(c) {
|
|
9433
9457
|
try {
|
|
9434
|
-
const { done: p, value:
|
|
9458
|
+
const { done: p, value: d } = await s.next();
|
|
9435
9459
|
if (p) {
|
|
9436
|
-
n(),
|
|
9460
|
+
n(), c.close();
|
|
9437
9461
|
return;
|
|
9438
9462
|
}
|
|
9439
|
-
let h =
|
|
9463
|
+
let h = d.byteLength;
|
|
9440
9464
|
if (t) {
|
|
9441
|
-
let
|
|
9442
|
-
t(
|
|
9465
|
+
let b = o += h;
|
|
9466
|
+
t(b);
|
|
9443
9467
|
}
|
|
9444
|
-
|
|
9468
|
+
c.enqueue(new Uint8Array(d));
|
|
9445
9469
|
} catch (p) {
|
|
9446
9470
|
throw n(p), p;
|
|
9447
9471
|
}
|
|
9448
9472
|
},
|
|
9449
|
-
cancel(
|
|
9450
|
-
return n(
|
|
9473
|
+
cancel(c) {
|
|
9474
|
+
return n(c), s.return();
|
|
9451
9475
|
}
|
|
9452
9476
|
}, {
|
|
9453
9477
|
highWaterMark: 2
|
|
@@ -9471,68 +9495,68 @@ const Jr = (r) => {
|
|
|
9471
9495
|
const { fetch: e, Request: t, Response: i } = r, s = e ? tt(e) : typeof fetch == "function", o = tt(t), a = tt(i);
|
|
9472
9496
|
if (!s)
|
|
9473
9497
|
return !1;
|
|
9474
|
-
const n = s && tt(vr),
|
|
9475
|
-
let
|
|
9476
|
-
const v = new t(
|
|
9498
|
+
const n = s && tt(vr), c = s && (typeof yr == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new yr()) : async (f) => new Uint8Array(await new t(f).arrayBuffer())), p = o && n && wr(() => {
|
|
9499
|
+
let f = !1;
|
|
9500
|
+
const v = new t(q.origin, {
|
|
9477
9501
|
body: new vr(),
|
|
9478
9502
|
method: "POST",
|
|
9479
9503
|
get duplex() {
|
|
9480
|
-
return
|
|
9504
|
+
return f = !0, "half";
|
|
9481
9505
|
}
|
|
9482
9506
|
}).headers.has("Content-Type");
|
|
9483
|
-
return
|
|
9484
|
-
}),
|
|
9485
|
-
stream:
|
|
9507
|
+
return f && !v;
|
|
9508
|
+
}), d = a && n && wr(() => l.isReadableStream(new i("").body)), h = {
|
|
9509
|
+
stream: d && ((f) => f.body)
|
|
9486
9510
|
};
|
|
9487
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9488
|
-
!h[
|
|
9489
|
-
let x = v && v[
|
|
9511
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
9512
|
+
!h[f] && (h[f] = (v, m) => {
|
|
9513
|
+
let x = v && v[f];
|
|
9490
9514
|
if (x)
|
|
9491
9515
|
return x.call(v);
|
|
9492
|
-
throw new $(`Response type '${
|
|
9516
|
+
throw new $(`Response type '${f}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
9493
9517
|
});
|
|
9494
9518
|
});
|
|
9495
|
-
const
|
|
9496
|
-
if (
|
|
9519
|
+
const b = async (f) => {
|
|
9520
|
+
if (f == null)
|
|
9497
9521
|
return 0;
|
|
9498
|
-
if (l.isBlob(
|
|
9499
|
-
return
|
|
9500
|
-
if (l.isSpecCompliantForm(
|
|
9501
|
-
return (await new t(
|
|
9522
|
+
if (l.isBlob(f))
|
|
9523
|
+
return f.size;
|
|
9524
|
+
if (l.isSpecCompliantForm(f))
|
|
9525
|
+
return (await new t(q.origin, {
|
|
9502
9526
|
method: "POST",
|
|
9503
|
-
body:
|
|
9527
|
+
body: f
|
|
9504
9528
|
}).arrayBuffer()).byteLength;
|
|
9505
|
-
if (l.isArrayBufferView(
|
|
9506
|
-
return
|
|
9507
|
-
if (l.isURLSearchParams(
|
|
9508
|
-
return (await
|
|
9509
|
-
}, y = async (
|
|
9510
|
-
const
|
|
9511
|
-
return
|
|
9529
|
+
if (l.isArrayBufferView(f) || l.isArrayBuffer(f))
|
|
9530
|
+
return f.byteLength;
|
|
9531
|
+
if (l.isURLSearchParams(f) && (f = f + ""), l.isString(f))
|
|
9532
|
+
return (await c(f)).byteLength;
|
|
9533
|
+
}, y = async (f, v) => {
|
|
9534
|
+
const m = l.toFiniteNumber(f.getContentLength());
|
|
9535
|
+
return m ?? b(v);
|
|
9512
9536
|
};
|
|
9513
|
-
return async (
|
|
9537
|
+
return async (f) => {
|
|
9514
9538
|
let {
|
|
9515
9539
|
url: v,
|
|
9516
|
-
method:
|
|
9540
|
+
method: m,
|
|
9517
9541
|
data: x,
|
|
9518
|
-
signal:
|
|
9519
|
-
cancelToken:
|
|
9542
|
+
signal: _,
|
|
9543
|
+
cancelToken: C,
|
|
9520
9544
|
timeout: T,
|
|
9521
|
-
onDownloadProgress:
|
|
9545
|
+
onDownloadProgress: B,
|
|
9522
9546
|
onUploadProgress: he,
|
|
9523
9547
|
responseType: J,
|
|
9524
9548
|
headers: bt,
|
|
9525
9549
|
withCredentials: Ge = "same-origin",
|
|
9526
9550
|
fetchOptions: Ht
|
|
9527
|
-
} = Jr(
|
|
9551
|
+
} = Jr(f), jt = e || fetch;
|
|
9528
9552
|
J = J ? (J + "").toLowerCase() : "text";
|
|
9529
|
-
let Qe = ra([
|
|
9553
|
+
let Qe = ra([_, C && C.toAbortSignal()], T), ze = null;
|
|
9530
9554
|
const pe = Qe && Qe.unsubscribe && (() => {
|
|
9531
9555
|
Qe.unsubscribe();
|
|
9532
9556
|
});
|
|
9533
9557
|
let Vt;
|
|
9534
9558
|
try {
|
|
9535
|
-
if (he && p &&
|
|
9559
|
+
if (he && p && m !== "get" && m !== "head" && (Vt = await y(bt, x)) !== 0) {
|
|
9536
9560
|
let le = new t(v, {
|
|
9537
9561
|
method: "POST",
|
|
9538
9562
|
body: x,
|
|
@@ -9543,14 +9567,14 @@ const Jr = (r) => {
|
|
|
9543
9567
|
Vt,
|
|
9544
9568
|
lt(fr(he))
|
|
9545
9569
|
);
|
|
9546
|
-
x =
|
|
9570
|
+
x = mr(le.body, br, vt, et);
|
|
9547
9571
|
}
|
|
9548
9572
|
}
|
|
9549
9573
|
l.isString(Ge) || (Ge = Ge ? "include" : "omit");
|
|
9550
9574
|
const re = o && "credentials" in t.prototype, Zt = {
|
|
9551
9575
|
...Ht,
|
|
9552
9576
|
signal: Qe,
|
|
9553
|
-
method:
|
|
9577
|
+
method: m.toUpperCase(),
|
|
9554
9578
|
headers: bt.normalize().toJSON(),
|
|
9555
9579
|
body: x,
|
|
9556
9580
|
duplex: "half",
|
|
@@ -9558,42 +9582,42 @@ const Jr = (r) => {
|
|
|
9558
9582
|
};
|
|
9559
9583
|
ze = o && new t(v, Zt);
|
|
9560
9584
|
let ne = await (o ? jt(ze, Ht) : jt(v, Zt));
|
|
9561
|
-
const Yt =
|
|
9562
|
-
if (
|
|
9585
|
+
const Yt = d && (J === "stream" || J === "response");
|
|
9586
|
+
if (d && (B || Yt && pe)) {
|
|
9563
9587
|
const le = {};
|
|
9564
9588
|
["status", "statusText", "headers"].forEach((Wt) => {
|
|
9565
9589
|
le[Wt] = ne[Wt];
|
|
9566
9590
|
});
|
|
9567
|
-
const xe = l.toFiniteNumber(ne.headers.get("content-length")), [vt, et] =
|
|
9591
|
+
const xe = l.toFiniteNumber(ne.headers.get("content-length")), [vt, et] = B && ur(
|
|
9568
9592
|
xe,
|
|
9569
|
-
lt(fr(
|
|
9593
|
+
lt(fr(B), !0)
|
|
9570
9594
|
) || [];
|
|
9571
9595
|
ne = new i(
|
|
9572
|
-
|
|
9596
|
+
mr(ne.body, br, vt, () => {
|
|
9573
9597
|
et && et(), pe && pe();
|
|
9574
9598
|
}),
|
|
9575
9599
|
le
|
|
9576
9600
|
);
|
|
9577
9601
|
}
|
|
9578
9602
|
J = J || "text";
|
|
9579
|
-
let ts = await h[l.findKey(h, J) || "text"](ne,
|
|
9603
|
+
let ts = await h[l.findKey(h, J) || "text"](ne, f);
|
|
9580
9604
|
return !Yt && pe && pe(), await new Promise((le, xe) => {
|
|
9581
9605
|
Wr(le, xe, {
|
|
9582
9606
|
data: ts,
|
|
9583
|
-
headers:
|
|
9607
|
+
headers: W.from(ne.headers),
|
|
9584
9608
|
status: ne.status,
|
|
9585
9609
|
statusText: ne.statusText,
|
|
9586
|
-
config:
|
|
9610
|
+
config: f,
|
|
9587
9611
|
request: ze
|
|
9588
9612
|
});
|
|
9589
9613
|
});
|
|
9590
9614
|
} catch (re) {
|
|
9591
9615
|
throw pe && pe(), re && re.name === "TypeError" && /Load failed|fetch/i.test(re.message) ? Object.assign(
|
|
9592
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
9616
|
+
new $("Network Error", $.ERR_NETWORK, f, ze),
|
|
9593
9617
|
{
|
|
9594
9618
|
cause: re.cause || re
|
|
9595
9619
|
}
|
|
9596
|
-
) : $.from(re, re && re.code,
|
|
9620
|
+
) : $.from(re, re && re.code, f, ze);
|
|
9597
9621
|
}
|
|
9598
9622
|
};
|
|
9599
9623
|
}, la = /* @__PURE__ */ new Map(), Xr = (r) => {
|
|
@@ -9603,9 +9627,9 @@ const Jr = (r) => {
|
|
|
9603
9627
|
s,
|
|
9604
9628
|
t
|
|
9605
9629
|
];
|
|
9606
|
-
let a = o.length, n = a,
|
|
9630
|
+
let a = o.length, n = a, c, p, d = la;
|
|
9607
9631
|
for (; n--; )
|
|
9608
|
-
|
|
9632
|
+
c = o[n], p = d.get(c), p === void 0 && d.set(c, p = n ? /* @__PURE__ */ new Map() : na(e)), d = p;
|
|
9609
9633
|
return p;
|
|
9610
9634
|
};
|
|
9611
9635
|
Xr();
|
|
@@ -9642,7 +9666,7 @@ function da(r, e) {
|
|
|
9642
9666
|
}
|
|
9643
9667
|
if (!s) {
|
|
9644
9668
|
const a = Object.entries(o).map(
|
|
9645
|
-
([
|
|
9669
|
+
([c, p]) => `adapter ${c} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
9646
9670
|
);
|
|
9647
9671
|
let n = t ? a.length > 1 ? `since :
|
|
9648
9672
|
` + a.map(xr).join(`
|
|
@@ -9671,7 +9695,7 @@ function kt(r) {
|
|
|
9671
9695
|
throw new Re(null, r);
|
|
9672
9696
|
}
|
|
9673
9697
|
function $r(r) {
|
|
9674
|
-
return kt(r), r.headers =
|
|
9698
|
+
return kt(r), r.headers = W.from(r.headers), r.data = $t.call(
|
|
9675
9699
|
r,
|
|
9676
9700
|
r.transformRequest
|
|
9677
9701
|
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), Gr.getAdapter(r.adapter || Xe.adapter, r)(r).then(function(i) {
|
|
@@ -9679,23 +9703,23 @@ function $r(r) {
|
|
|
9679
9703
|
r,
|
|
9680
9704
|
r.transformResponse,
|
|
9681
9705
|
i
|
|
9682
|
-
), i.headers =
|
|
9706
|
+
), i.headers = W.from(i.headers), i;
|
|
9683
9707
|
}, function(i) {
|
|
9684
9708
|
return Yr(i) || (kt(r), i && i.response && (i.response.data = $t.call(
|
|
9685
9709
|
r,
|
|
9686
9710
|
r.transformResponse,
|
|
9687
9711
|
i.response
|
|
9688
|
-
), i.response.headers =
|
|
9712
|
+
), i.response.headers = W.from(i.response.headers))), Promise.reject(i);
|
|
9689
9713
|
});
|
|
9690
9714
|
}
|
|
9691
|
-
const Qr = "1.13.2",
|
|
9715
|
+
const Qr = "1.13.2", mt = {};
|
|
9692
9716
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((r, e) => {
|
|
9693
|
-
|
|
9717
|
+
mt[r] = function(i) {
|
|
9694
9718
|
return typeof i === r || "a" + (e < 1 ? "n " : " ") + r;
|
|
9695
9719
|
};
|
|
9696
9720
|
});
|
|
9697
9721
|
const kr = {};
|
|
9698
|
-
|
|
9722
|
+
mt.transitional = function(e, t, i) {
|
|
9699
9723
|
function s(o, a) {
|
|
9700
9724
|
return "[Axios v" + Qr + "] Transitional option '" + o + "'" + a + (i ? ". " + i : "");
|
|
9701
9725
|
}
|
|
@@ -9708,7 +9732,7 @@ gt.transitional = function(e, t, i) {
|
|
|
9708
9732
|
return t && !kr[a] && (kr[a] = !0), e ? e(o, a, n) : !0;
|
|
9709
9733
|
};
|
|
9710
9734
|
};
|
|
9711
|
-
|
|
9735
|
+
mt.spelling = function(e) {
|
|
9712
9736
|
return (t, i) => !0;
|
|
9713
9737
|
};
|
|
9714
9738
|
function ha(r, e, t) {
|
|
@@ -9719,9 +9743,9 @@ function ha(r, e, t) {
|
|
|
9719
9743
|
for (; s-- > 0; ) {
|
|
9720
9744
|
const o = i[s], a = e[o];
|
|
9721
9745
|
if (a) {
|
|
9722
|
-
const n = r[o],
|
|
9723
|
-
if (
|
|
9724
|
-
throw new $("option " + o + " must be " +
|
|
9746
|
+
const n = r[o], c = n === void 0 || a(n, o, r);
|
|
9747
|
+
if (c !== !0)
|
|
9748
|
+
throw new $("option " + o + " must be " + c, $.ERR_BAD_OPTION_VALUE);
|
|
9725
9749
|
continue;
|
|
9726
9750
|
}
|
|
9727
9751
|
if (t !== !0)
|
|
@@ -9730,7 +9754,7 @@ function ha(r, e, t) {
|
|
|
9730
9754
|
}
|
|
9731
9755
|
const ot = {
|
|
9732
9756
|
assertOptions: ha,
|
|
9733
|
-
validators:
|
|
9757
|
+
validators: mt
|
|
9734
9758
|
}, se = ot.validators;
|
|
9735
9759
|
class be {
|
|
9736
9760
|
constructor(e) {
|
|
@@ -9786,45 +9810,45 @@ class be {
|
|
|
9786
9810
|
);
|
|
9787
9811
|
o && l.forEach(
|
|
9788
9812
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
9789
|
-
(
|
|
9790
|
-
delete o[
|
|
9813
|
+
(f) => {
|
|
9814
|
+
delete o[f];
|
|
9791
9815
|
}
|
|
9792
|
-
), t.headers =
|
|
9816
|
+
), t.headers = W.concat(a, o);
|
|
9793
9817
|
const n = [];
|
|
9794
|
-
let
|
|
9818
|
+
let c = !0;
|
|
9795
9819
|
this.interceptors.request.forEach(function(v) {
|
|
9796
|
-
typeof v.runWhen == "function" && v.runWhen(t) === !1 || (
|
|
9820
|
+
typeof v.runWhen == "function" && v.runWhen(t) === !1 || (c = c && v.synchronous, n.unshift(v.fulfilled, v.rejected));
|
|
9797
9821
|
});
|
|
9798
9822
|
const p = [];
|
|
9799
9823
|
this.interceptors.response.forEach(function(v) {
|
|
9800
9824
|
p.push(v.fulfilled, v.rejected);
|
|
9801
9825
|
});
|
|
9802
|
-
let
|
|
9803
|
-
if (!
|
|
9804
|
-
const
|
|
9805
|
-
for (
|
|
9806
|
-
|
|
9807
|
-
return
|
|
9808
|
-
}
|
|
9809
|
-
|
|
9826
|
+
let d, h = 0, b;
|
|
9827
|
+
if (!c) {
|
|
9828
|
+
const f = [$r.bind(this), void 0];
|
|
9829
|
+
for (f.unshift(...n), f.push(...p), b = f.length, d = Promise.resolve(t); h < b; )
|
|
9830
|
+
d = d.then(f[h++], f[h++]);
|
|
9831
|
+
return d;
|
|
9832
|
+
}
|
|
9833
|
+
b = n.length;
|
|
9810
9834
|
let y = t;
|
|
9811
|
-
for (; h <
|
|
9812
|
-
const
|
|
9835
|
+
for (; h < b; ) {
|
|
9836
|
+
const f = n[h++], v = n[h++];
|
|
9813
9837
|
try {
|
|
9814
|
-
y =
|
|
9815
|
-
} catch (
|
|
9816
|
-
v.call(this,
|
|
9838
|
+
y = f(y);
|
|
9839
|
+
} catch (m) {
|
|
9840
|
+
v.call(this, m);
|
|
9817
9841
|
break;
|
|
9818
9842
|
}
|
|
9819
9843
|
}
|
|
9820
9844
|
try {
|
|
9821
|
-
|
|
9822
|
-
} catch (
|
|
9823
|
-
return Promise.reject(
|
|
9845
|
+
d = $r.call(this, y);
|
|
9846
|
+
} catch (f) {
|
|
9847
|
+
return Promise.reject(f);
|
|
9824
9848
|
}
|
|
9825
|
-
for (h = 0,
|
|
9826
|
-
|
|
9827
|
-
return
|
|
9849
|
+
for (h = 0, b = p.length; h < b; )
|
|
9850
|
+
d = d.then(p[h++], p[h++]);
|
|
9851
|
+
return d;
|
|
9828
9852
|
}
|
|
9829
9853
|
getUri(e) {
|
|
9830
9854
|
e = ye(this.defaults, e);
|
|
@@ -10023,7 +10047,7 @@ P.CanceledError = Re;
|
|
|
10023
10047
|
P.CancelToken = Ft;
|
|
10024
10048
|
P.isCancel = Yr;
|
|
10025
10049
|
P.VERSION = Qr;
|
|
10026
|
-
P.toFormData =
|
|
10050
|
+
P.toFormData = gt;
|
|
10027
10051
|
P.AxiosError = $;
|
|
10028
10052
|
P.Cancel = P.CanceledError;
|
|
10029
10053
|
P.all = function(e) {
|
|
@@ -10032,7 +10056,7 @@ P.all = function(e) {
|
|
|
10032
10056
|
P.spread = pa;
|
|
10033
10057
|
P.isAxiosError = ua;
|
|
10034
10058
|
P.mergeConfig = ye;
|
|
10035
|
-
P.AxiosHeaders =
|
|
10059
|
+
P.AxiosHeaders = W;
|
|
10036
10060
|
P.formToJSON = (r) => Zr(l.isHTMLForm(r) ? new FormData(r) : r);
|
|
10037
10061
|
P.getAdapter = Gr.getAdapter;
|
|
10038
10062
|
P.HttpStatusCode = At;
|
|
@@ -10073,9 +10097,9 @@ const ya = ({ baseUrl: r }) => {
|
|
|
10073
10097
|
"Content-Type": "application/json"
|
|
10074
10098
|
},
|
|
10075
10099
|
credentials: "include"
|
|
10076
|
-
}),
|
|
10077
|
-
if (n.headers.forEach((p,
|
|
10078
|
-
d
|
|
10100
|
+
}), c = {};
|
|
10101
|
+
if (n.headers.forEach((p, d) => {
|
|
10102
|
+
c[d] = p;
|
|
10079
10103
|
}), n.headers.get("content-type"), n.status === 400)
|
|
10080
10104
|
throw t = !0, await n.text(), new Error("No refresh token available");
|
|
10081
10105
|
if (!n.ok)
|
|
@@ -10109,12 +10133,12 @@ function wa() {
|
|
|
10109
10133
|
Us(), qs(), Hs(), Vs(), Ks(), Xs(), $i(), Si(), Ci(), Ai(), Di(), Oi(), Ys(), zi(), Ii(), Bi();
|
|
10110
10134
|
}
|
|
10111
10135
|
export {
|
|
10112
|
-
|
|
10136
|
+
E as AuthForm,
|
|
10113
10137
|
Sr as AuthRefreshError,
|
|
10114
10138
|
de as BaseButton,
|
|
10115
10139
|
Ce as BaseCard,
|
|
10116
10140
|
D as BaseDatePicker,
|
|
10117
|
-
|
|
10141
|
+
N as BaseDateTimePicker,
|
|
10118
10142
|
j as BaseDrawer,
|
|
10119
10143
|
Ee as BaseIcon,
|
|
10120
10144
|
G as BaseInput,
|