@cal.macconnachie/web-components 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +955 -939
- 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), H = (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,51 +249,51 @@ let $e = class extends HTMLElement {
|
|
|
249
249
|
$e.elementStyles = [], $e.shadowRootOptions = { mode: "open" }, $e[Be("elementProperties")] = /* @__PURE__ */ new Map(), $e[Be("finalized")] = /* @__PURE__ */ new Map(), hs?.({ ReactiveElement: $e }), (ct.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
250
|
const Ot = globalThis, nt = Ot.trustedTypes, Qt = nt ? nt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Cr = "$lit$", ce = `lit$${Math.random().toFixed(9).slice(2)}$`, Er = "?" + ce, ps = `<${Er}>`, ve = document, Ne = () => ve.createComment(""), qe = (r) => r === null || typeof r != "object" && typeof r != "function", Rt = Array.isArray, us = (r) => Rt(r) || typeof r?.[Symbol.iterator] == "function", yt = `[
|
|
251
251
|
\f\r]`, Me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, er = /-->/g, tr = />/g, ue = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, sr = /"/g, Ar = /^(?:script|style|textarea|title)$/i,
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), rr = /'/g, sr = /"/g, Ar = /^(?:script|style|textarea|title)$/i, gs = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), f = gs(1), oe = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), ir = /* @__PURE__ */ new WeakMap(), fe = 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 fs = (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 l = r[n];
|
|
262
|
+
let p, d, h = -1, b = 0;
|
|
263
|
+
for (; b < l.length && (a.lastIndex = b, d = a.exec(l), 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 ? l + ps : h >= 0 ? (i.push(p), l.slice(0, h) + Cr + l.slice(h) + ce + y) : l + ce + (h === -2 ? n : y);
|
|
266
266
|
}
|
|
267
267
|
return [Tr(r, o + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
268
268
|
};
|
|
269
|
-
class
|
|
269
|
+
class He {
|
|
270
270
|
constructor({ strings: e, _$litType$: t }, i) {
|
|
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 =
|
|
274
|
+
const n = e.length - 1, l = this.parts, [p, d] = fs(e, t);
|
|
275
|
+
if (this.el = He.createElement(p, i), fe.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 = fe.nextNode()) !== null && l.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), g = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
l.push({ type: 1, index: o, name: g[2], strings: y, ctor: g[1] === "." ? bs : g[1] === "?" ? vs : g[1] === "@" ? ys : dt }), s.removeAttribute(h);
|
|
284
|
+
} else h.startsWith(ce) && (l.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()), fe.nextNode(), l.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) l.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; ) l.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
|
+
fe.currentNode = s;
|
|
325
|
+
let o = fe.nextNode(), a = 0, n = 0, l = i[0];
|
|
326
|
+
for (; l !== void 0; ) {
|
|
327
|
+
if (a === l.index) {
|
|
328
328
|
let p;
|
|
329
|
-
|
|
329
|
+
l.type === 2 ? p = new _e(o, o.nextSibling, this, e) : l.type === 1 ? p = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (p = new ws(o, this, e)), this._$AV.push(p), l = i[++n];
|
|
330
330
|
}
|
|
331
|
-
a !==
|
|
331
|
+
a !== l?.index && (o = fe.nextNode(), a++);
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return fe.currentNode = ve, s;
|
|
334
334
|
}
|
|
335
335
|
p(e) {
|
|
336
336
|
let t = 0;
|
|
@@ -368,16 +368,16 @@ class _e {
|
|
|
368
368
|
this._$AH !== k && qe(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ve.createTextNode(e)), this._$AH = e;
|
|
369
369
|
}
|
|
370
370
|
$(e) {
|
|
371
|
-
const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el =
|
|
371
|
+
const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = He.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
|
}
|
|
378
378
|
_$AC(e) {
|
|
379
379
|
let t = ir.get(e.strings);
|
|
380
|
-
return t === void 0 && ir.set(e.strings, t = new
|
|
380
|
+
return t === void 0 && ir.set(e.strings, t = new He(e)), t;
|
|
381
381
|
}
|
|
382
382
|
k(e) {
|
|
383
383
|
Rt(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -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 l, p;
|
|
416
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) p = ke(this, n[i + l], t, l), p === oe && (p = this._$AH[l]), a ||= !qe(p) || p !== this._$AH[l], p === k ? e = k : e !== k && (e += (p ?? "") + o[l + 1]), this._$AH[l] = p;
|
|
417
417
|
}
|
|
418
418
|
a && !s && this.j(e);
|
|
419
419
|
}
|
|
@@ -462,7 +462,7 @@ class ws {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
const xs = { I: _e }, $s = Ot.litHtmlPolyfillSupport;
|
|
465
|
-
$s?.(
|
|
465
|
+
$s?.(He, _e), (Ot.litHtmlVersions ??= []).push("3.3.1");
|
|
466
466
|
const ks = (r, e, t) => {
|
|
467
467
|
const i = t?.renderBefore ?? e;
|
|
468
468
|
let s = i._$litPart$;
|
|
@@ -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 l = e.get.call(this);
|
|
509
|
+
e.set.call(this, n), this.requestUpdate(a, l, 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 l = this[a];
|
|
518
|
+
e.call(this, n), this.requestUpdate(a, l, 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,19 +563,19 @@ 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 l;
|
|
567
|
+
t._$AQ?.(r), t._$AM = r, t._$AP !== void 0 && (l = r._$AU) !== a._$AU && t._$AP(l);
|
|
568
568
|
}
|
|
569
569
|
if (o !== s || n) {
|
|
570
|
-
let
|
|
571
|
-
for (;
|
|
572
|
-
const p =
|
|
573
|
-
i.insertBefore(
|
|
570
|
+
let l = t._$AA;
|
|
571
|
+
for (; l !== o; ) {
|
|
572
|
+
const p = l.nextSibling;
|
|
573
|
+
i.insertBefore(l, s), l = p;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
return t;
|
|
578
|
-
},
|
|
578
|
+
}, ge = (r, e, t = r) => (r._$AI(e, t), r), Ts = {}, Ds = (r, e = Ts) => r._$AH = e, Ps = (r) => r._$AH, wt = (r) => {
|
|
579
579
|
r._$AR(), r._$AA.remove();
|
|
580
580
|
};
|
|
581
581
|
const ar = (r, e, t) => {
|
|
@@ -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 ??= [], l = [];
|
|
604
|
+
let p, d, h = 0, b = s.length - 1, y = 0, g = o.length - 1;
|
|
605
|
+
for (; h <= b && y <= g; ) if (s[h] === null) h++;
|
|
606
|
+
else if (s[b] === null) b--;
|
|
607
|
+
else if (n[h] === a[y]) l[y] = ge(s[h], o[y]), h++, y++;
|
|
608
|
+
else if (n[b] === a[g]) l[g] = ge(s[b], o[g]), b--, g--;
|
|
609
|
+
else if (n[h] === a[g]) l[g] = ge(s[h], o[g]), Ie(r, l[g + 1], s[h]), h++, g--;
|
|
610
|
+
else if (n[b] === a[y]) l[y] = ge(s[b], o[y]), Ie(r, s[h], s[b]), b--, y++;
|
|
611
|
+
else if (p === void 0 && (p = ar(a, y, g), 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
|
-
|
|
616
|
-
} else
|
|
615
|
+
ge(x, o[y]), l[y] = x;
|
|
616
|
+
} else l[y] = ge(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
|
-
|
|
620
|
+
for (; y <= g; ) {
|
|
621
|
+
const v = Ie(r, l[g + 1]);
|
|
622
|
+
ge(v, o[y]), l[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, l), 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: g
|
|
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: g
|
|
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: g,
|
|
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: g,
|
|
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 g = await y.json();
|
|
838
|
+
throw new Error(g.message || g.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -856,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
|
+
}, l = 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 l(), _ = 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 l(), _ = 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
|
+
}, g = (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: g,
|
|
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"), l = 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(l || `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 ? f`
|
|
1366
|
+
${this.logoUrl.length > 0 ? f`
|
|
1367
1367
|
<header class="modal-header">
|
|
1368
1368
|
<div class="auth-header">
|
|
1369
1369
|
<img
|
|
@@ -1393,9 +1393,9 @@ class C extends L {
|
|
|
1393
1393
|
${this.renderAlerts()}
|
|
1394
1394
|
</div>
|
|
1395
1395
|
</div>
|
|
1396
|
-
` : this.isLoggedIn ?
|
|
1396
|
+
` : this.isLoggedIn ? f`
|
|
1397
1397
|
<!-- Header -->
|
|
1398
|
-
${this.logoUrl.length > 0 ?
|
|
1398
|
+
${this.logoUrl.length > 0 ? f`
|
|
1399
1399
|
<header class="modal-header">
|
|
1400
1400
|
<div class="auth-header">
|
|
1401
1401
|
<img
|
|
@@ -1425,9 +1425,9 @@ class C extends L {
|
|
|
1425
1425
|
${this.renderAlerts()}
|
|
1426
1426
|
</div>
|
|
1427
1427
|
</div>
|
|
1428
|
-
` :
|
|
1428
|
+
` : f`
|
|
1429
1429
|
<!-- Header -->
|
|
1430
|
-
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ?
|
|
1430
|
+
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ? f`
|
|
1431
1431
|
<header class="modal-header">
|
|
1432
1432
|
|
|
1433
1433
|
<div class="auth-header">
|
|
@@ -1461,7 +1461,7 @@ class 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 f`
|
|
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 ? f`
|
|
1491
1491
|
<div class="forgot-row">
|
|
1492
1492
|
<button type="button" class="text-btn" @click=${this.startReset}>
|
|
1493
1493
|
Forgot your password?
|
|
@@ -1495,7 +1495,7 @@ class C extends L {
|
|
|
1495
1495
|
</div>
|
|
1496
1496
|
` : k}
|
|
1497
1497
|
|
|
1498
|
-
${this.mode === "signup" ?
|
|
1498
|
+
${this.mode === "signup" ? f`
|
|
1499
1499
|
<!-- Confirm Password -->
|
|
1500
1500
|
<base-input
|
|
1501
1501
|
type="password"
|
|
@@ -1534,14 +1534,14 @@ class C extends L {
|
|
|
1534
1534
|
` : k}
|
|
1535
1535
|
`;
|
|
1536
1536
|
if (this.mode === "signup" && this.signupStep === "otp")
|
|
1537
|
-
return
|
|
1537
|
+
return f`
|
|
1538
1538
|
<div class="otp-section">
|
|
1539
1539
|
<label class="otp-label">Enter 6-digit code</label>
|
|
1540
1540
|
<div class="otp-inputs" role="group" aria-label="One time code">
|
|
1541
1541
|
${nr(
|
|
1542
1542
|
Array.from({ length: 6 }, (e, t) => t),
|
|
1543
1543
|
(e) => e,
|
|
1544
|
-
(e) =>
|
|
1544
|
+
(e) => f`
|
|
1545
1545
|
<input
|
|
1546
1546
|
class="otp-input signup-otp-input ${this.errors.signup_otp ? "otp-input--error" : ""}"
|
|
1547
1547
|
type="text"
|
|
@@ -1558,7 +1558,7 @@ class C extends L {
|
|
|
1558
1558
|
`
|
|
1559
1559
|
)}
|
|
1560
1560
|
</div>
|
|
1561
|
-
${this.errors.signup_otp ?
|
|
1561
|
+
${this.errors.signup_otp ? f`<p class="otp-error">${this.errors.signup_otp}</p>` : k}
|
|
1562
1562
|
</div>
|
|
1563
1563
|
<div class="forgot-row">
|
|
1564
1564
|
<button type="button" class="text-btn" @click=${this.backToSignupForm}>
|
|
@@ -1567,7 +1567,7 @@ class C extends L {
|
|
|
1567
1567
|
</div>
|
|
1568
1568
|
`;
|
|
1569
1569
|
if (this.resetStep === "request")
|
|
1570
|
-
return
|
|
1570
|
+
return f`
|
|
1571
1571
|
<base-input
|
|
1572
1572
|
id="email-input"
|
|
1573
1573
|
type="email"
|
|
@@ -1587,7 +1587,7 @@ class 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 f`
|
|
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) => f`
|
|
1609
1609
|
<input
|
|
1610
1610
|
class="otp-input reset-otp-input ${this.errors.otp ? "otp-input--error" : ""}"
|
|
1611
1611
|
type="text"
|
|
@@ -1622,10 +1622,10 @@ class C extends L {
|
|
|
1622
1622
|
`
|
|
1623
1623
|
)}
|
|
1624
1624
|
</div>
|
|
1625
|
-
${this.errors.otp ?
|
|
1625
|
+
${this.errors.otp ? f`<p class="otp-error">${this.errors.otp}</p>` : k}
|
|
1626
1626
|
</div>
|
|
1627
1627
|
|
|
1628
|
-
${e ?
|
|
1628
|
+
${e ? f`
|
|
1629
1629
|
<div class="new-password-fields">
|
|
1630
1630
|
<base-input
|
|
1631
1631
|
type="password"
|
|
@@ -1662,7 +1662,7 @@ class C extends L {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
renderActions() {
|
|
1664
1664
|
if (this.resetStep === "request")
|
|
1665
|
-
return
|
|
1665
|
+
return f`
|
|
1666
1666
|
<base-button
|
|
1667
1667
|
type="submit"
|
|
1668
1668
|
variant="primary"
|
|
@@ -1675,7 +1675,7 @@ class 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)) ? f`
|
|
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 f`
|
|
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 f`
|
|
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" ? f`
|
|
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 f`
|
|
1742
|
+
${this.notice ? f`
|
|
1743
1743
|
<div class="alert alert--success">
|
|
1744
1744
|
${this.notice}
|
|
1745
1745
|
<button class="alert-close" @click=${() => this.notice = ""} aria-label="Dismiss">
|
|
@@ -1747,7 +1747,7 @@ class C extends L {
|
|
|
1747
1747
|
</button>
|
|
1748
1748
|
</div>
|
|
1749
1749
|
` : k}
|
|
1750
|
-
${this.error && !this.isLoading ?
|
|
1750
|
+
${this.error && !this.isLoading ? f`
|
|
1751
1751
|
<div class="alert alert--error">
|
|
1752
1752
|
${this.error}
|
|
1753
1753
|
<button class="alert-close" @click=${() => this.error = ""} aria-label="Dismiss">
|
|
@@ -1758,7 +1758,7 @@ class 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 : f`
|
|
1762
1762
|
<div class="auth-footer">
|
|
1763
1763
|
<p class="toggle-text">
|
|
1764
1764
|
${this.mode === "signup" ? "Already have an account?" : "Don't have an account?"}
|
|
@@ -1767,7 +1767,7 @@ class C extends L {
|
|
|
1767
1767
|
${this.mode === "signup" ? "Sign In" : "Sign Up"}
|
|
1768
1768
|
</button>
|
|
1769
1769
|
</div>
|
|
1770
|
-
` :
|
|
1770
|
+
` : f`
|
|
1771
1771
|
<div class="auth-footer">
|
|
1772
1772
|
<p class="toggle-text">
|
|
1773
1773
|
Having trouble? Email
|
|
@@ -1777,7 +1777,7 @@ class C extends L {
|
|
|
1777
1777
|
`;
|
|
1778
1778
|
}
|
|
1779
1779
|
renderGoogleIcon() {
|
|
1780
|
-
return
|
|
1780
|
+
return f`
|
|
1781
1781
|
<svg viewBox="-0.5 0 48 48" width="18" height="18" fill="none">
|
|
1782
1782
|
<path d="M9.82727273,24 C9.82727273,22.4757333 10.0804318,21.0144 10.5322727,19.6437333 L2.62345455,13.6042667 C1.08206818,16.7338667 0.213636364,20.2602667 0.213636364,24 C0.213636364,27.7365333 1.081,31.2608 2.62025,34.3882667 L10.5247955,28.3370667 C10.0772273,26.9728 9.82727273,25.5168 9.82727273,24" fill="#FBBC05"></path>
|
|
1783
1783
|
<path d="M23.7136364,10.1333333 C27.025,10.1333333 30.0159091,11.3066667 32.3659091,13.2266667 L39.2022727,6.4 C35.0363636,2.77333333 29.6954545,0.533333333 23.7136364,0.533333333 C14.4268636,0.533333333 6.44540909,5.84426667 2.62345455,13.6042667 L10.5322727,19.6437333 C12.3545909,14.112 17.5491591,10.1333333 23.7136364,10.1333333" fill="#EB4335"></path>
|
|
@@ -1787,7 +1787,7 @@ class C extends L {
|
|
|
1787
1787
|
`;
|
|
1788
1788
|
}
|
|
1789
1789
|
renderAppleIcon() {
|
|
1790
|
-
return
|
|
1790
|
+
return f`
|
|
1791
1791
|
<svg viewBox="-3.5 0 48 48" width="18" height="18" class="apple-icon">
|
|
1792
1792
|
<path d="M231.174735,567.792499 C232.740177,565.771699 233.926883,562.915484 233.497649,560 C230.939077,560.177808 227.948466,561.814769 226.203475,563.948463 C224.612784,565.88177 223.305444,568.757742 223.816036,571.549042 C226.613071,571.636535 229.499881,569.960061 231.174735,567.792499 L231.174735,567.792499 Z M245,595.217241 C243.880625,597.712195 243.341978,598.827022 241.899976,601.03692 C239.888467,604.121745 237.052156,607.962958 233.53412,607.991182 C230.411652,608.02505 229.606488,605.94498 225.367451,605.970382 C221.128414,605.99296 220.244696,608.030695 217.116618,607.999649 C213.601387,607.968603 210.913765,604.502761 208.902256,601.417937 C203.27452,592.79849 202.68257,582.680377 206.152914,577.298162 C208.621711,573.476705 212.515678,571.241407 216.173986,571.241407 C219.89682,571.241407 222.239372,573.296075 225.322563,573.296075 C228.313175,573.296075 230.133913,571.235762 234.440281,571.235762 C237.700215,571.235762 241.153726,573.022307 243.611302,576.10431 C235.554045,580.546683 236.85858,592.121127 245,595.217241 L245,595.217241 Z" transform="translate(-204.000000, -560.000000)" fill="#0b0b0a"></path>
|
|
1793
1793
|
</svg>
|
|
@@ -1811,7 +1811,7 @@ class C extends L {
|
|
|
1811
1811
|
return this.userEmail;
|
|
1812
1812
|
}
|
|
1813
1813
|
static {
|
|
1814
|
-
this.styles =
|
|
1814
|
+
this.styles = H`
|
|
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 = H`
|
|
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 f`
|
|
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 ? f`
|
|
2637
2637
|
<span class="loading-container">
|
|
2638
2638
|
<slot name="loading">
|
|
2639
2639
|
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -2658,32 +2658,32 @@ 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
|
-
var
|
|
2681
|
+
var Hs = Object.defineProperty, Fe = (r, e, t, i) => {
|
|
2682
2682
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
2683
2683
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
2684
|
-
return s &&
|
|
2684
|
+
return s && Hs(e, t, s), s;
|
|
2685
2685
|
};
|
|
2686
|
-
const
|
|
2686
|
+
const Fs = () => z({
|
|
2687
2687
|
name: "base-card",
|
|
2688
2688
|
element: Ce
|
|
2689
2689
|
});
|
|
@@ -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 = H`
|
|
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 = f`
|
|
2913
2913
|
<div class=${S(e)}>
|
|
2914
|
-
${this.expandable && !this.isExpanded ?
|
|
2914
|
+
${this.expandable && !this.isExpanded ? f`
|
|
2915
2915
|
<button
|
|
2916
2916
|
class="expand-btn"
|
|
2917
2917
|
aria-label="Expand card"
|
|
@@ -2925,7 +2925,7 @@ class Ce extends L {
|
|
|
2925
2925
|
<slot></slot>
|
|
2926
2926
|
</div>
|
|
2927
2927
|
`;
|
|
2928
|
-
return this.isExpanded ?
|
|
2928
|
+
return this.isExpanded ? f`
|
|
2929
2929
|
<div class="expanded-overlay" @click=${this.handleOverlayClick}>
|
|
2930
2930
|
<div class="expanded-card">
|
|
2931
2931
|
${t}
|
|
@@ -2934,19 +2934,19 @@ class Ce extends L {
|
|
|
2934
2934
|
` : t;
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
|
-
|
|
2938
|
-
|
|
2937
|
+
Fe([
|
|
2938
|
+
u({ type: String, attribute: "variant" })
|
|
2939
2939
|
], Ce.prototype, "variant");
|
|
2940
|
-
|
|
2941
|
-
|
|
2940
|
+
Fe([
|
|
2941
|
+
u({ type: String, attribute: "padding" })
|
|
2942
2942
|
], Ce.prototype, "padding");
|
|
2943
|
-
|
|
2944
|
-
|
|
2943
|
+
Fe([
|
|
2944
|
+
u({ type: Boolean, reflect: !0, attribute: "hoverable" })
|
|
2945
2945
|
], Ce.prototype, "hoverable");
|
|
2946
|
-
|
|
2947
|
-
|
|
2946
|
+
Fe([
|
|
2947
|
+
u({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
2948
2948
|
], Ce.prototype, "expandable");
|
|
2949
|
-
|
|
2949
|
+
Fe([
|
|
2950
2950
|
w()
|
|
2951
2951
|
], Ce.prototype, "isExpanded");
|
|
2952
2952
|
const X = (r) => r ?? k;
|
|
@@ -2977,7 +2977,7 @@ class D extends L {
|
|
|
2977
2977
|
];
|
|
2978
2978
|
}
|
|
2979
2979
|
static {
|
|
2980
|
-
this.styles =
|
|
2980
|
+
this.styles = H`
|
|
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 f`
|
|
3565
3565
|
<div class="date-picker-group">
|
|
3566
|
-
${this.label ?
|
|
3566
|
+
${this.label ? f`
|
|
3567
3567
|
<label for=${this.inputId} class="date-picker-label">
|
|
3568
3568
|
${this.label}
|
|
3569
|
-
${this.required ?
|
|
3569
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
3570
3570
|
</label>
|
|
3571
3571
|
` : ""}
|
|
3572
3572
|
|
|
@@ -3590,7 +3590,7 @@ class 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 ? f`
|
|
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 ? f`
|
|
3605
3605
|
<div class="picker-overlay">
|
|
3606
3606
|
<div class="month-picker-container">
|
|
3607
3607
|
<div class="month-picker-grid">
|
|
3608
3608
|
${this.monthNames.map(
|
|
3609
|
-
(s, o) =>
|
|
3609
|
+
(s, o) => f`
|
|
3610
3610
|
<div
|
|
3611
3611
|
class=${S({
|
|
3612
3612
|
"month-item": !0,
|
|
@@ -3621,7 +3621,7 @@ class D extends L {
|
|
|
3621
3621
|
</div>
|
|
3622
3622
|
</div>
|
|
3623
3623
|
</div>
|
|
3624
|
-
` : this.showYearPicker ?
|
|
3624
|
+
` : this.showYearPicker ? f`
|
|
3625
3625
|
<div class="picker-overlay">
|
|
3626
3626
|
<div class="year-picker-container">
|
|
3627
3627
|
<div class="year-picker-header">
|
|
@@ -3645,7 +3645,7 @@ class D extends L {
|
|
|
3645
3645
|
</div>
|
|
3646
3646
|
<div class="year-picker-grid">
|
|
3647
3647
|
${this.yearRange.map(
|
|
3648
|
-
(s) =>
|
|
3648
|
+
(s) => f`
|
|
3649
3649
|
<div
|
|
3650
3650
|
class=${S({
|
|
3651
3651
|
"year-item": !0,
|
|
@@ -3660,7 +3660,7 @@ class D extends L {
|
|
|
3660
3660
|
</div>
|
|
3661
3661
|
</div>
|
|
3662
3662
|
</div>
|
|
3663
|
-
` :
|
|
3663
|
+
` : f`
|
|
3664
3664
|
<div class="calendar-header">
|
|
3665
3665
|
<button
|
|
3666
3666
|
type="button"
|
|
@@ -3689,12 +3689,12 @@ class D extends L {
|
|
|
3689
3689
|
</div>
|
|
3690
3690
|
|
|
3691
3691
|
<div class="calendar-weekdays">
|
|
3692
|
-
${this.weekDays.map((s) =>
|
|
3692
|
+
${this.weekDays.map((s) => f`<div class="calendar-weekday">${s}</div>`)}
|
|
3693
3693
|
</div>
|
|
3694
3694
|
|
|
3695
3695
|
<div class="calendar-days">
|
|
3696
3696
|
${this.calendarDays.map(
|
|
3697
|
-
(s) => s ?
|
|
3697
|
+
(s) => s ? f`
|
|
3698
3698
|
<div
|
|
3699
3699
|
class=${S({
|
|
3700
3700
|
"calendar-day": !0,
|
|
@@ -3706,7 +3706,7 @@ class D extends L {
|
|
|
3706
3706
|
>
|
|
3707
3707
|
${s}
|
|
3708
3708
|
</div>
|
|
3709
|
-
` :
|
|
3709
|
+
` : f`<div class="calendar-day day-empty"></div>`
|
|
3710
3710
|
)}
|
|
3711
3711
|
</div>
|
|
3712
3712
|
|
|
@@ -3724,44 +3724,44 @@ class D extends L {
|
|
|
3724
3724
|
` : ""}
|
|
3725
3725
|
</div>
|
|
3726
3726
|
|
|
3727
|
-
${e ?
|
|
3727
|
+
${e ? f`
|
|
3728
3728
|
<div id="${this.inputId}-error" class="date-picker-error" role="alert">
|
|
3729
3729
|
${this.error}
|
|
3730
3730
|
</div>
|
|
3731
|
-
` : this.hint ?
|
|
3731
|
+
` : this.hint ? f` <div class="date-picker-hint">${this.hint}</div> ` : ""}
|
|
3732
3732
|
</div>
|
|
3733
3733
|
`;
|
|
3734
3734
|
}
|
|
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 = H`
|
|
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 f`
|
|
4135
4135
|
<div class="time-picker-group">
|
|
4136
|
-
${this.label ?
|
|
4136
|
+
${this.label ? f`
|
|
4137
4137
|
<label for=${this.inputId} class="time-picker-label">
|
|
4138
4138
|
${this.label}
|
|
4139
|
-
${this.required ?
|
|
4139
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4140
4140
|
</label>
|
|
4141
4141
|
` : ""}
|
|
4142
4142
|
|
|
@@ -4166,7 +4166,7 @@ class M extends L {
|
|
|
4166
4166
|
</svg>
|
|
4167
4167
|
</div>
|
|
4168
4168
|
|
|
4169
|
-
${this.isOpen ?
|
|
4169
|
+
${this.isOpen ? f`
|
|
4170
4170
|
<div class="time-overlay" @click=${this.closeTimePicker}></div>
|
|
4171
4171
|
<div
|
|
4172
4172
|
class=${S({
|
|
@@ -4182,7 +4182,7 @@ class 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) => f`
|
|
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) => f`
|
|
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" ? f`
|
|
4220
4220
|
<div class="time-column">
|
|
4221
4221
|
<div class="time-column-label">Period</div>
|
|
4222
4222
|
<div class="time-scroll">
|
|
4223
4223
|
${["AM", "PM"].map(
|
|
4224
|
-
(s) =>
|
|
4224
|
+
(s) => f`
|
|
4225
4225
|
<div
|
|
4226
4226
|
class=${S({
|
|
4227
4227
|
"time-option": !0,
|
|
@@ -4247,65 +4247,65 @@ class M extends L {
|
|
|
4247
4247
|
` : ""}
|
|
4248
4248
|
</div>
|
|
4249
4249
|
|
|
4250
|
-
${e ?
|
|
4250
|
+
${e ? f`
|
|
4251
4251
|
<div id="${this.inputId}-error" class="time-picker-error" role="alert">
|
|
4252
4252
|
${this.error}
|
|
4253
4253
|
</div>
|
|
4254
|
-
` : this.hint ?
|
|
4254
|
+
` : this.hint ? f` <div class="time-picker-hint">${this.hint}</div> ` : ""}
|
|
4255
4255
|
</div>
|
|
4256
4256
|
`;
|
|
4257
4257
|
}
|
|
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
4310
|
var Ws = Object.defineProperty, F = (r, e, t, i) => {
|
|
4311
4311
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -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 = H`
|
|
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(), l = String(a.getMonth() + 1).padStart(2, "0"), p = String(a.getDate()).padStart(2, "0");
|
|
4477
|
+
i = `${n}-${l}-${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 f`
|
|
4505
4505
|
<div class="datetime-picker-group">
|
|
4506
|
-
${this.label ?
|
|
4506
|
+
${this.label ? f`
|
|
4507
4507
|
<label for=${this.inputId} class="datetime-picker-label">
|
|
4508
4508
|
${this.label}
|
|
4509
|
-
${this.required ?
|
|
4509
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4510
4510
|
</label>
|
|
4511
4511
|
` : ""}
|
|
4512
4512
|
|
|
@@ -4546,64 +4546,64 @@ class U extends L {
|
|
|
4546
4546
|
</div>
|
|
4547
4547
|
</div>
|
|
4548
4548
|
|
|
4549
|
-
${e ?
|
|
4549
|
+
${e ? f`
|
|
4550
4550
|
<div id="${this.inputId}-error" class="datetime-picker-error" role="alert">
|
|
4551
4551
|
${this.error}
|
|
4552
4552
|
</div>
|
|
4553
|
-
` : this.hint ?
|
|
4553
|
+
` : this.hint ? f` <div class="datetime-picker-hint">${this.hint}</div> ` : ""}
|
|
4554
4554
|
</div>
|
|
4555
4555
|
`;
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
4558
|
F([
|
|
4559
|
-
|
|
4560
|
-
],
|
|
4559
|
+
u({ type: String })
|
|
4560
|
+
], N.prototype, "value");
|
|
4561
4561
|
F([
|
|
4562
|
-
|
|
4563
|
-
],
|
|
4562
|
+
u({ type: String })
|
|
4563
|
+
], N.prototype, "label");
|
|
4564
4564
|
F([
|
|
4565
|
-
|
|
4566
|
-
],
|
|
4565
|
+
u({ type: String })
|
|
4566
|
+
], N.prototype, "placeholder");
|
|
4567
4567
|
F([
|
|
4568
|
-
|
|
4569
|
-
],
|
|
4568
|
+
u({ type: Boolean, reflect: !0 })
|
|
4569
|
+
], N.prototype, "required");
|
|
4570
4570
|
F([
|
|
4571
|
-
|
|
4572
|
-
],
|
|
4571
|
+
u({ type: Boolean, reflect: !0 })
|
|
4572
|
+
], N.prototype, "disabled");
|
|
4573
4573
|
F([
|
|
4574
|
-
|
|
4575
|
-
],
|
|
4574
|
+
u({ type: String })
|
|
4575
|
+
], N.prototype, "error");
|
|
4576
4576
|
F([
|
|
4577
|
-
|
|
4578
|
-
],
|
|
4577
|
+
u({ type: String })
|
|
4578
|
+
], N.prototype, "hint");
|
|
4579
4579
|
F([
|
|
4580
|
-
|
|
4581
|
-
],
|
|
4580
|
+
u({ type: String })
|
|
4581
|
+
], N.prototype, "size");
|
|
4582
4582
|
F([
|
|
4583
|
-
|
|
4584
|
-
],
|
|
4583
|
+
u({ type: String })
|
|
4584
|
+
], N.prototype, "minDate");
|
|
4585
4585
|
F([
|
|
4586
|
-
|
|
4587
|
-
],
|
|
4586
|
+
u({ type: String })
|
|
4587
|
+
], N.prototype, "maxDate");
|
|
4588
4588
|
F([
|
|
4589
|
-
|
|
4590
|
-
],
|
|
4589
|
+
u({ type: String })
|
|
4590
|
+
], N.prototype, "format");
|
|
4591
4591
|
F([
|
|
4592
4592
|
w()
|
|
4593
|
-
],
|
|
4593
|
+
], N.prototype, "dateValue");
|
|
4594
4594
|
F([
|
|
4595
4595
|
w()
|
|
4596
|
-
],
|
|
4596
|
+
], N.prototype, "timeValue");
|
|
4597
4597
|
F([
|
|
4598
4598
|
w()
|
|
4599
|
-
],
|
|
4599
|
+
], N.prototype, "isFocused");
|
|
4600
4600
|
F([
|
|
4601
|
-
|
|
4602
|
-
],
|
|
4601
|
+
V("base-date-picker")
|
|
4602
|
+
], N.prototype, "datePicker");
|
|
4603
4603
|
F([
|
|
4604
|
-
|
|
4605
|
-
],
|
|
4606
|
-
var Js = Object.defineProperty,
|
|
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,57 +4631,83 @@ 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
|
|
4642
|
-
if (
|
|
4647
|
+
const t = this.dragCurrentY - this.dragStartY;
|
|
4648
|
+
if (!this.dragCommitted) {
|
|
4649
|
+
if (Math.abs(t) < 10)
|
|
4650
|
+
return;
|
|
4651
|
+
if (this.drawerContent && this.drawerContent.scrollHeight > this.drawerContent.clientHeight) {
|
|
4652
|
+
const n = this.drawerContent.scrollTop === 0, l = this.drawerContent.scrollTop + this.drawerContent.clientHeight >= this.drawerContent.scrollHeight - 1;
|
|
4653
|
+
if (t < 0 && !l) {
|
|
4654
|
+
this.isDragging = !1, this.dragCommitted = !1, this.dragStartY = 0, this.dragCurrentY = 0;
|
|
4655
|
+
return;
|
|
4656
|
+
}
|
|
4657
|
+
if (t > 0 && !n) {
|
|
4658
|
+
this.isDragging = !1, this.dragCommitted = !1, this.dragStartY = 0, this.dragCurrentY = 0;
|
|
4659
|
+
return;
|
|
4660
|
+
}
|
|
4661
|
+
}
|
|
4662
|
+
this.dragCommitted = !0;
|
|
4663
|
+
}
|
|
4664
|
+
e.preventDefault();
|
|
4665
|
+
const i = this.getCurrentDetentHeight(), s = window.innerHeight;
|
|
4666
|
+
if (this.modalContainer.style.transition = "none", t < 0) {
|
|
4643
4667
|
const a = Math.abs(t) / s * 100, n = Math.min(100, i + a);
|
|
4644
4668
|
this.modalContainer.style.height = `${n}dvh`, this.modalContainer.style.transform = "translateY(0)";
|
|
4645
4669
|
} else
|
|
4646
4670
|
this.modalContainer.style.transform = `translateY(${t}px)`, this.modalContainer.style.height = `${i}dvh`;
|
|
4647
4671
|
}, this.handleDragEnd = () => {
|
|
4648
4672
|
if (!this.isDragging || !this.modalContainer) return;
|
|
4673
|
+
if (!this.dragCommitted) {
|
|
4674
|
+
this.isDragging = !1, this.dragCommitted = !1;
|
|
4675
|
+
return;
|
|
4676
|
+
}
|
|
4649
4677
|
const e = this.dragCurrentY - this.dragStartY;
|
|
4650
4678
|
Math.abs(e) > 5 && (this.lastDragEndTime = Date.now());
|
|
4651
4679
|
const t = Date.now() - this.dragStartTime, i = Math.abs(e) / t;
|
|
4652
|
-
this.isDragging = !1;
|
|
4680
|
+
this.isDragging = !1, this.dragCommitted = !1;
|
|
4653
4681
|
const s = this.getActiveDetents(), o = this.getCurrentDetentHeight(), a = window.innerHeight, n = Math.abs(e) / a * 100;
|
|
4654
|
-
let
|
|
4655
|
-
e < 0 ?
|
|
4682
|
+
let l;
|
|
4683
|
+
e < 0 ? l = o + n : l = o - n;
|
|
4656
4684
|
let p = this.currentDetentIndex;
|
|
4657
|
-
|
|
4658
|
-
|
|
4685
|
+
const d = 0.5, h = 1, b = this.isClosable(), y = s[0], g = this.currentDetentIndex === 0;
|
|
4686
|
+
if (i > d && Math.abs(e) > 30)
|
|
4687
|
+
e > 0 ? b ? i > h && g && e > 50 || l < 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
4688
|
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);
|
|
4689
|
+
let _ = 0, C = Math.abs(l - s[0]);
|
|
4690
|
+
for (let T = 1; T < s.length; T++) {
|
|
4691
|
+
const B = Math.abs(l - s[T]);
|
|
4692
|
+
B < C && (C = B, _ = T);
|
|
4668
4693
|
}
|
|
4694
|
+
p = _, b && (g && l < y * 0.7 || l < y - 5) && (p = -1);
|
|
4669
4695
|
}
|
|
4670
|
-
const
|
|
4671
|
-
if (
|
|
4672
|
-
const
|
|
4673
|
-
|
|
4696
|
+
const v = p < 0, m = this.modalContainer, x = v ? 0 : s[p];
|
|
4697
|
+
if (m.style.transition = "none", e < 0) {
|
|
4698
|
+
const _ = Math.min(100, l);
|
|
4699
|
+
m.style.height = `${_}dvh`, m.style.transform = "translateY(0)";
|
|
4674
4700
|
} else
|
|
4675
|
-
|
|
4701
|
+
m.style.transform = `translateY(${e}px)`, m.style.height = `${o}dvh`;
|
|
4676
4702
|
requestAnimationFrame(() => {
|
|
4677
|
-
|
|
4703
|
+
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
4704
|
}), setTimeout(() => {
|
|
4679
|
-
this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0,
|
|
4705
|
+
this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.dragCommitted = !1, v ? (this.isVisible = !1, this.open = !1, this.dispatchEvent(
|
|
4680
4706
|
new CustomEvent("drawer-close", {
|
|
4681
4707
|
bubbles: !0,
|
|
4682
4708
|
composed: !0
|
|
4683
4709
|
})
|
|
4684
|
-
)) : (this.currentDetentIndex = p, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${
|
|
4710
|
+
)) : (this.currentDetentIndex = p, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${x}dvh`), this.dispatchEvent(
|
|
4685
4711
|
new CustomEvent("drawer-detent-change", {
|
|
4686
4712
|
bubbles: !0,
|
|
4687
4713
|
composed: !0,
|
|
@@ -4738,7 +4764,7 @@ class j extends L {
|
|
|
4738
4764
|
}, 0);
|
|
4739
4765
|
}
|
|
4740
4766
|
resetState() {
|
|
4741
|
-
this.isDragging = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0;
|
|
4767
|
+
this.isDragging = !1, this.dragCommitted = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0;
|
|
4742
4768
|
}
|
|
4743
4769
|
getActiveDetents() {
|
|
4744
4770
|
return this.detents.filter((t) => t > 0).sort((t, i) => t - i);
|
|
@@ -4813,21 +4839,21 @@ class j extends L {
|
|
|
4813
4839
|
"modal-container--dragging": this.isDragging,
|
|
4814
4840
|
[`modal-container--${this.size}`]: !0
|
|
4815
4841
|
}, i = this.getCurrentDetentHeight();
|
|
4816
|
-
return
|
|
4842
|
+
return f`
|
|
4817
4843
|
<!-- Drawer Overlay -->
|
|
4818
4844
|
<div
|
|
4819
4845
|
class=${S(e)}
|
|
4820
4846
|
@click=${this.handleOverlayClick}
|
|
4821
|
-
@touchstart=${this.handleDragStart}
|
|
4822
|
-
@touchmove=${this.handleDragMove}
|
|
4823
|
-
@touchend=${this.handleDragEnd}
|
|
4824
|
-
@mousedown=${this.handleDragStart}
|
|
4825
4847
|
>
|
|
4826
4848
|
<div
|
|
4827
4849
|
class=${S(t)}
|
|
4828
4850
|
style="height: ${i}dvh"
|
|
4829
4851
|
role="dialog"
|
|
4830
4852
|
aria-modal="true"
|
|
4853
|
+
@touchstart=${this.handleDragStart}
|
|
4854
|
+
@touchmove=${this.handleDragMove}
|
|
4855
|
+
@touchend=${this.handleDragEnd}
|
|
4856
|
+
@mousedown=${this.handleDragStart}
|
|
4831
4857
|
@mousemove=${this.handleDragMove}
|
|
4832
4858
|
@mouseup=${this.handleDragEnd}
|
|
4833
4859
|
>
|
|
@@ -4851,7 +4877,7 @@ class j extends L {
|
|
|
4851
4877
|
`;
|
|
4852
4878
|
}
|
|
4853
4879
|
static {
|
|
4854
|
-
this.styles =
|
|
4880
|
+
this.styles = H`
|
|
4855
4881
|
:host {
|
|
4856
4882
|
display: inline-block;
|
|
4857
4883
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -4986,19 +5012,6 @@ class j extends L {
|
|
|
4986
5012
|
max-width: 900px;
|
|
4987
5013
|
}
|
|
4988
5014
|
|
|
4989
|
-
/* Dark theme */
|
|
4990
|
-
:host([data-theme='dark']) {
|
|
4991
|
-
--color-primary: #3b82f6;
|
|
4992
|
-
--color-bg-primary: #1e293b;
|
|
4993
|
-
--color-bg-secondary: #0f172a;
|
|
4994
|
-
--color-text-primary: #f8fafc;
|
|
4995
|
-
--color-text-secondary: #cbd5e1;
|
|
4996
|
-
--color-text-muted: #94a3b8;
|
|
4997
|
-
--color-border: #334155;
|
|
4998
|
-
--color-error: #ef4444;
|
|
4999
|
-
--color-success: #10b981;
|
|
5000
|
-
}
|
|
5001
|
-
|
|
5002
5015
|
@keyframes fadeIn {
|
|
5003
5016
|
from {
|
|
5004
5017
|
opacity: 0;
|
|
@@ -5049,14 +5062,14 @@ class j extends L {
|
|
|
5049
5062
|
}`;
|
|
5050
5063
|
}
|
|
5051
5064
|
}
|
|
5052
|
-
|
|
5053
|
-
|
|
5065
|
+
Z([
|
|
5066
|
+
u({ type: Boolean, reflect: !0 })
|
|
5054
5067
|
], j.prototype, "open");
|
|
5055
|
-
|
|
5056
|
-
|
|
5068
|
+
Z([
|
|
5069
|
+
u({ type: String, attribute: "size" })
|
|
5057
5070
|
], j.prototype, "size");
|
|
5058
|
-
|
|
5059
|
-
|
|
5071
|
+
Z([
|
|
5072
|
+
u({
|
|
5060
5073
|
type: Array,
|
|
5061
5074
|
converter: {
|
|
5062
5075
|
fromAttribute: (r) => {
|
|
@@ -5070,39 +5083,42 @@ W([
|
|
|
5070
5083
|
}
|
|
5071
5084
|
})
|
|
5072
5085
|
], j.prototype, "detents");
|
|
5073
|
-
|
|
5074
|
-
|
|
5086
|
+
Z([
|
|
5087
|
+
u({ type: Boolean, attribute: "persist-on-overlay-click" })
|
|
5075
5088
|
], j.prototype, "persistOnOverlayClick");
|
|
5076
|
-
|
|
5089
|
+
Z([
|
|
5077
5090
|
w()
|
|
5078
5091
|
], j.prototype, "isClosing");
|
|
5079
|
-
|
|
5092
|
+
Z([
|
|
5080
5093
|
w()
|
|
5081
5094
|
], j.prototype, "isVisible");
|
|
5082
|
-
|
|
5095
|
+
Z([
|
|
5083
5096
|
w()
|
|
5084
5097
|
], j.prototype, "isDragging");
|
|
5085
|
-
|
|
5098
|
+
Z([
|
|
5086
5099
|
w()
|
|
5087
5100
|
], j.prototype, "dragStartY");
|
|
5088
|
-
|
|
5101
|
+
Z([
|
|
5089
5102
|
w()
|
|
5090
5103
|
], j.prototype, "dragCurrentY");
|
|
5091
|
-
|
|
5104
|
+
Z([
|
|
5092
5105
|
w()
|
|
5093
5106
|
], j.prototype, "dragStartTime");
|
|
5094
|
-
|
|
5107
|
+
Z([
|
|
5095
5108
|
w()
|
|
5096
5109
|
], j.prototype, "lastDragEndTime");
|
|
5097
|
-
|
|
5110
|
+
Z([
|
|
5098
5111
|
w()
|
|
5099
5112
|
], j.prototype, "currentDetentIndex");
|
|
5100
|
-
|
|
5101
|
-
|
|
5113
|
+
Z([
|
|
5114
|
+
w()
|
|
5115
|
+
], j.prototype, "dragCommitted");
|
|
5116
|
+
Z([
|
|
5117
|
+
V(".modal-container")
|
|
5102
5118
|
], j.prototype, "modalContainer");
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
], j.prototype, "
|
|
5119
|
+
Z([
|
|
5120
|
+
V(".drawer-content")
|
|
5121
|
+
], j.prototype, "drawerContent");
|
|
5106
5122
|
const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5107
5123
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5108
5124
|
<defs>
|
|
@@ -5303,7 +5319,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5303
5319
|
</style>
|
|
5304
5320
|
</defs>
|
|
5305
5321
|
<path class="cls-1" d="M75.04,27.92s0-.04-.01-.06c0,0,0,0,0-.01,0,0,0-.01,0-.02-.34-1.04-1.31-1.74-2.4-1.74h0l-55.76.13c-.82,0-1.56.51-1.86,1.28s-.09,1.64.52,2.2l13.55,12.38-3.13,19.53c-.13.8.24,1.6.93,2.02.32.2.68.29,1.04.29.42,0,.83-.13,1.18-.38l45.03-32.88c.86-.63,1.23-1.72.94-2.73ZM21.99,30.2l38.9-.09-29.19,8.97-9.71-8.88ZM32.97,42.87l30.41-9.34-32.75,23.91,2.34-14.57Z"/>
|
|
5306
|
-
</svg>`,
|
|
5322
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5307
5323
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5308
5324
|
<defs>
|
|
5309
5325
|
<style>
|
|
@@ -5314,7 +5330,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5314
5330
|
</defs>
|
|
5315
5331
|
<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
5332
|
<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>`,
|
|
5333
|
+
</svg>`, fi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5318
5334
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5319
5335
|
<defs>
|
|
5320
5336
|
<style>
|
|
@@ -5326,7 +5342,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5326
5342
|
<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
5343
|
<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
5344
|
<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>`,
|
|
5345
|
+
</svg>`, mi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5330
5346
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5331
5347
|
<defs>
|
|
5332
5348
|
<style>
|
|
@@ -5409,9 +5425,9 @@ const xi = /* @__PURE__ */ Object.assign({
|
|
|
5409
5425
|
"../../public/icons/paperclip.svg": hi,
|
|
5410
5426
|
"../../public/icons/reply.svg": pi,
|
|
5411
5427
|
"../../public/icons/send.svg": ui,
|
|
5412
|
-
"../../public/icons/share.svg":
|
|
5413
|
-
"../../public/icons/shopping-cart.svg":
|
|
5414
|
-
"../../public/icons/suitcase.svg":
|
|
5428
|
+
"../../public/icons/share.svg": gi,
|
|
5429
|
+
"../../public/icons/shopping-cart.svg": fi,
|
|
5430
|
+
"../../public/icons/suitcase.svg": mi,
|
|
5415
5431
|
"../../public/icons/sun.svg": bi,
|
|
5416
5432
|
"../../public/icons/trash-can.svg": vi,
|
|
5417
5433
|
"../../public/icons/user.svg": yi
|
|
@@ -5424,7 +5440,7 @@ class Ee extends L {
|
|
|
5424
5440
|
super(...arguments), this.name = "", this.size = "24px", this.color = "currentColor", this.svgContent = "";
|
|
5425
5441
|
}
|
|
5426
5442
|
static {
|
|
5427
|
-
this.styles =
|
|
5443
|
+
this.styles = H`
|
|
5428
5444
|
:host {
|
|
5429
5445
|
display: inline-flex;
|
|
5430
5446
|
align-items: center;
|
|
@@ -5468,7 +5484,7 @@ class Ee extends L {
|
|
|
5468
5484
|
}
|
|
5469
5485
|
}
|
|
5470
5486
|
render() {
|
|
5471
|
-
return
|
|
5487
|
+
return f`
|
|
5472
5488
|
<div
|
|
5473
5489
|
style="
|
|
5474
5490
|
--icon-size: ${this.size};
|
|
@@ -5480,13 +5496,13 @@ class Ee extends L {
|
|
|
5480
5496
|
}
|
|
5481
5497
|
}
|
|
5482
5498
|
ht([
|
|
5483
|
-
|
|
5499
|
+
u({ type: String })
|
|
5484
5500
|
], Ee.prototype, "name");
|
|
5485
5501
|
ht([
|
|
5486
|
-
|
|
5502
|
+
u({ type: String })
|
|
5487
5503
|
], Ee.prototype, "size");
|
|
5488
5504
|
ht([
|
|
5489
|
-
|
|
5505
|
+
u({ type: String })
|
|
5490
5506
|
], Ee.prototype, "color");
|
|
5491
5507
|
ht([
|
|
5492
5508
|
w()
|
|
@@ -5505,7 +5521,7 @@ class G extends L {
|
|
|
5505
5521
|
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
5522
|
}
|
|
5507
5523
|
static {
|
|
5508
|
-
this.styles =
|
|
5524
|
+
this.styles = H`
|
|
5509
5525
|
:host {
|
|
5510
5526
|
display: block;
|
|
5511
5527
|
}
|
|
@@ -5683,12 +5699,12 @@ class G extends L {
|
|
|
5683
5699
|
"base-input--error": e,
|
|
5684
5700
|
"base-input--disabled": this.disabled
|
|
5685
5701
|
};
|
|
5686
|
-
return
|
|
5702
|
+
return f`
|
|
5687
5703
|
<div class="input-group">
|
|
5688
|
-
${this.label ?
|
|
5704
|
+
${this.label ? f`
|
|
5689
5705
|
<label for=${this.inputId} class="input-label">
|
|
5690
5706
|
${this.label}
|
|
5691
|
-
${this.required ?
|
|
5707
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5692
5708
|
</label>
|
|
5693
5709
|
` : ""}
|
|
5694
5710
|
|
|
@@ -5714,47 +5730,47 @@ class G extends L {
|
|
|
5714
5730
|
</div>
|
|
5715
5731
|
</div>
|
|
5716
5732
|
|
|
5717
|
-
${e ?
|
|
5733
|
+
${e ? f`
|
|
5718
5734
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5719
5735
|
${this.error}
|
|
5720
5736
|
</div>
|
|
5721
|
-
` : this.hint ?
|
|
5737
|
+
` : this.hint ? f` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5722
5738
|
</div>
|
|
5723
5739
|
`;
|
|
5724
5740
|
}
|
|
5725
5741
|
}
|
|
5726
5742
|
ee([
|
|
5727
|
-
|
|
5743
|
+
u({ type: String })
|
|
5728
5744
|
], G.prototype, "value");
|
|
5729
5745
|
ee([
|
|
5730
|
-
|
|
5746
|
+
u({ type: String })
|
|
5731
5747
|
], G.prototype, "label");
|
|
5732
5748
|
ee([
|
|
5733
|
-
|
|
5749
|
+
u({ type: String })
|
|
5734
5750
|
], G.prototype, "placeholder");
|
|
5735
5751
|
ee([
|
|
5736
|
-
|
|
5752
|
+
u({ type: String })
|
|
5737
5753
|
], G.prototype, "type");
|
|
5738
5754
|
ee([
|
|
5739
|
-
|
|
5755
|
+
u({ type: Boolean, reflect: !0 })
|
|
5740
5756
|
], G.prototype, "required");
|
|
5741
5757
|
ee([
|
|
5742
|
-
|
|
5758
|
+
u({ type: Boolean, reflect: !0 })
|
|
5743
5759
|
], G.prototype, "disabled");
|
|
5744
5760
|
ee([
|
|
5745
|
-
|
|
5761
|
+
u({ type: String })
|
|
5746
5762
|
], G.prototype, "error");
|
|
5747
5763
|
ee([
|
|
5748
|
-
|
|
5764
|
+
u({ type: String })
|
|
5749
5765
|
], G.prototype, "hint");
|
|
5750
5766
|
ee([
|
|
5751
|
-
|
|
5767
|
+
u({ type: String })
|
|
5752
5768
|
], G.prototype, "autocomplete");
|
|
5753
5769
|
ee([
|
|
5754
|
-
|
|
5770
|
+
u({ type: String })
|
|
5755
5771
|
], G.prototype, "size");
|
|
5756
5772
|
ee([
|
|
5757
|
-
|
|
5773
|
+
V("input")
|
|
5758
5774
|
], G.prototype, "inputElement");
|
|
5759
5775
|
var _i = Object.defineProperty, I = (r, e, t, i) => {
|
|
5760
5776
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -5786,7 +5802,7 @@ class R extends L {
|
|
|
5786
5802
|
}
|
|
5787
5803
|
}
|
|
5788
5804
|
static {
|
|
5789
|
-
this.styles =
|
|
5805
|
+
this.styles = H`
|
|
5790
5806
|
:host {
|
|
5791
5807
|
display: block;
|
|
5792
5808
|
position: relative;
|
|
@@ -6122,12 +6138,12 @@ class R extends L {
|
|
|
6122
6138
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6123
6139
|
"select-disabled": this.disabled
|
|
6124
6140
|
};
|
|
6125
|
-
return
|
|
6141
|
+
return f`
|
|
6126
6142
|
<div class="select-group">
|
|
6127
|
-
${this.label ?
|
|
6143
|
+
${this.label ? f`
|
|
6128
6144
|
<label for=${this.selectId} class="select-label">
|
|
6129
6145
|
${this.label}
|
|
6130
|
-
${this.required ?
|
|
6146
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6131
6147
|
</label>
|
|
6132
6148
|
` : ""}
|
|
6133
6149
|
|
|
@@ -6169,7 +6185,7 @@ class R extends L {
|
|
|
6169
6185
|
</svg>
|
|
6170
6186
|
</div>
|
|
6171
6187
|
|
|
6172
|
-
${this.isOpen ?
|
|
6188
|
+
${this.isOpen ? f`
|
|
6173
6189
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6174
6190
|
<div
|
|
6175
6191
|
class=${S({
|
|
@@ -6179,8 +6195,8 @@ class R extends L {
|
|
|
6179
6195
|
})}
|
|
6180
6196
|
role="listbox"
|
|
6181
6197
|
>
|
|
6182
|
-
${this.filteredOptions.length === 0 ?
|
|
6183
|
-
(o, a) =>
|
|
6198
|
+
${this.filteredOptions.length === 0 ? f` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6199
|
+
(o, a) => f`
|
|
6184
6200
|
<div
|
|
6185
6201
|
class=${S({
|
|
6186
6202
|
"dropdown-option": !0,
|
|
@@ -6199,11 +6215,11 @@ class R extends L {
|
|
|
6199
6215
|
` : ""}
|
|
6200
6216
|
</div>
|
|
6201
6217
|
|
|
6202
|
-
${e ?
|
|
6218
|
+
${e ? f`
|
|
6203
6219
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6204
6220
|
${this.error}
|
|
6205
6221
|
</div>
|
|
6206
|
-
` : this.hint ?
|
|
6222
|
+
` : this.hint ? f` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6207
6223
|
|
|
6208
6224
|
<!-- Hidden slot for option elements -->
|
|
6209
6225
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6212,34 +6228,34 @@ class R extends L {
|
|
|
6212
6228
|
}
|
|
6213
6229
|
}
|
|
6214
6230
|
I([
|
|
6215
|
-
|
|
6231
|
+
u({ type: String })
|
|
6216
6232
|
], R.prototype, "value");
|
|
6217
6233
|
I([
|
|
6218
|
-
|
|
6234
|
+
u({ type: String })
|
|
6219
6235
|
], R.prototype, "label");
|
|
6220
6236
|
I([
|
|
6221
|
-
|
|
6237
|
+
u({ type: String })
|
|
6222
6238
|
], R.prototype, "placeholder");
|
|
6223
6239
|
I([
|
|
6224
|
-
|
|
6240
|
+
u({ type: Boolean, reflect: !0 })
|
|
6225
6241
|
], R.prototype, "required");
|
|
6226
6242
|
I([
|
|
6227
|
-
|
|
6243
|
+
u({ type: Boolean, reflect: !0 })
|
|
6228
6244
|
], R.prototype, "disabled");
|
|
6229
6245
|
I([
|
|
6230
|
-
|
|
6246
|
+
u({ type: Boolean, reflect: !0 })
|
|
6231
6247
|
], R.prototype, "searchable");
|
|
6232
6248
|
I([
|
|
6233
|
-
|
|
6249
|
+
u({ type: String })
|
|
6234
6250
|
], R.prototype, "error");
|
|
6235
6251
|
I([
|
|
6236
|
-
|
|
6252
|
+
u({ type: String })
|
|
6237
6253
|
], R.prototype, "hint");
|
|
6238
6254
|
I([
|
|
6239
|
-
|
|
6255
|
+
u({ type: String })
|
|
6240
6256
|
], R.prototype, "size");
|
|
6241
6257
|
I([
|
|
6242
|
-
|
|
6258
|
+
u({ type: Array })
|
|
6243
6259
|
], R.prototype, "options");
|
|
6244
6260
|
I([
|
|
6245
6261
|
w()
|
|
@@ -6260,13 +6276,13 @@ I([
|
|
|
6260
6276
|
w()
|
|
6261
6277
|
], R.prototype, "alignRight");
|
|
6262
6278
|
I([
|
|
6263
|
-
|
|
6279
|
+
V(".select-input")
|
|
6264
6280
|
], R.prototype, "selectInput");
|
|
6265
6281
|
I([
|
|
6266
|
-
|
|
6282
|
+
V(".select-display")
|
|
6267
6283
|
], R.prototype, "selectDisplay");
|
|
6268
6284
|
I([
|
|
6269
|
-
|
|
6285
|
+
V(".dropdown-options")
|
|
6270
6286
|
], R.prototype, "dropdownElement");
|
|
6271
6287
|
var Ei = Object.defineProperty, je = (r, e, t, i) => {
|
|
6272
6288
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -6282,7 +6298,7 @@ class Ae extends L {
|
|
|
6282
6298
|
super(...arguments), this.id = "", this.label = "", this.active = !1;
|
|
6283
6299
|
}
|
|
6284
6300
|
static {
|
|
6285
|
-
this.styles =
|
|
6301
|
+
this.styles = H`
|
|
6286
6302
|
:host {
|
|
6287
6303
|
display: none;
|
|
6288
6304
|
scroll-margin-top: 2rem;
|
|
@@ -6324,7 +6340,7 @@ class Ae extends L {
|
|
|
6324
6340
|
);
|
|
6325
6341
|
}
|
|
6326
6342
|
render() {
|
|
6327
|
-
return
|
|
6343
|
+
return f`
|
|
6328
6344
|
<div
|
|
6329
6345
|
class="base-tab"
|
|
6330
6346
|
id="tabpanel-${this.id}"
|
|
@@ -6337,19 +6353,19 @@ class Ae extends L {
|
|
|
6337
6353
|
}
|
|
6338
6354
|
}
|
|
6339
6355
|
je([
|
|
6340
|
-
|
|
6356
|
+
u({ type: String, reflect: !0 })
|
|
6341
6357
|
], Ae.prototype, "id");
|
|
6342
6358
|
je([
|
|
6343
|
-
|
|
6359
|
+
u({ type: String })
|
|
6344
6360
|
], Ae.prototype, "label");
|
|
6345
6361
|
je([
|
|
6346
|
-
|
|
6362
|
+
u({ type: Number })
|
|
6347
6363
|
], Ae.prototype, "badge");
|
|
6348
6364
|
je([
|
|
6349
|
-
|
|
6365
|
+
u({ type: String })
|
|
6350
6366
|
], Ae.prototype, "icon");
|
|
6351
6367
|
je([
|
|
6352
|
-
|
|
6368
|
+
u({ type: Boolean, reflect: !0 })
|
|
6353
6369
|
], Ae.prototype, "active");
|
|
6354
6370
|
var Ti = Object.defineProperty, ae = (r, e, t, i) => {
|
|
6355
6371
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -6365,7 +6381,7 @@ class ie extends L {
|
|
|
6365
6381
|
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
6382
|
}
|
|
6367
6383
|
static {
|
|
6368
|
-
this.styles =
|
|
6384
|
+
this.styles = H`
|
|
6369
6385
|
:host {
|
|
6370
6386
|
display: block;
|
|
6371
6387
|
min-width: 0;
|
|
@@ -6880,7 +6896,7 @@ class ie extends L {
|
|
|
6880
6896
|
e.stopPropagation();
|
|
6881
6897
|
const { id: s, badge: o } = e.detail, a = this.tabs.findIndex((n) => n.id === s);
|
|
6882
6898
|
a !== -1 && (this.tabs = this.tabs.map(
|
|
6883
|
-
(n,
|
|
6899
|
+
(n, l) => l === a ? { ...n, badge: o } : n
|
|
6884
6900
|
));
|
|
6885
6901
|
}
|
|
6886
6902
|
updateChildTabs() {
|
|
@@ -6939,7 +6955,7 @@ class ie extends L {
|
|
|
6939
6955
|
"tab-button": !0,
|
|
6940
6956
|
"tab-button--active": i
|
|
6941
6957
|
};
|
|
6942
|
-
return
|
|
6958
|
+
return f`
|
|
6943
6959
|
<button
|
|
6944
6960
|
role="tab"
|
|
6945
6961
|
aria-selected=${i}
|
|
@@ -6950,9 +6966,9 @@ class ie extends L {
|
|
|
6950
6966
|
@click=${() => this.handleTabClick(e.id)}
|
|
6951
6967
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
6952
6968
|
>
|
|
6953
|
-
${e.icon ?
|
|
6954
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
6955
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
6969
|
+
${e.icon ? f`<span class="tab-icon">${Pr(e.icon)}</span>` : k}
|
|
6970
|
+
${s || this.variant !== "sidebar" || this.isMobile ? f`<span class="tab-label">${e.label}</span>` : k}
|
|
6971
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? f`<span class="tab-badge">${e.badge}</span>` : k}
|
|
6956
6972
|
</button>
|
|
6957
6973
|
`;
|
|
6958
6974
|
}
|
|
@@ -6967,9 +6983,9 @@ class ie extends L {
|
|
|
6967
6983
|
"sidebar-toggle": !0,
|
|
6968
6984
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
6969
6985
|
};
|
|
6970
|
-
return
|
|
6986
|
+
return f`
|
|
6971
6987
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
6972
|
-
${this.variant === "sidebar" ?
|
|
6988
|
+
${this.variant === "sidebar" ? f`
|
|
6973
6989
|
<div class=${S(i)}>
|
|
6974
6990
|
<!-- Sidebar Header -->
|
|
6975
6991
|
<div class="sidebar-header">
|
|
@@ -6999,7 +7015,7 @@ class ie extends L {
|
|
|
6999
7015
|
<slot name="sidebar-footer"></slot>
|
|
7000
7016
|
</div>
|
|
7001
7017
|
</div>
|
|
7002
|
-
` :
|
|
7018
|
+
` : f`
|
|
7003
7019
|
<div class="tabs-header">
|
|
7004
7020
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7005
7021
|
</div>
|
|
@@ -7014,19 +7030,19 @@ class ie extends L {
|
|
|
7014
7030
|
}
|
|
7015
7031
|
}
|
|
7016
7032
|
ae([
|
|
7017
|
-
|
|
7033
|
+
u({ type: String, attribute: "active-tab" })
|
|
7018
7034
|
], ie.prototype, "activeTab");
|
|
7019
7035
|
ae([
|
|
7020
|
-
|
|
7036
|
+
u({ type: String, attribute: "aria-label" })
|
|
7021
7037
|
], ie.prototype, "ariaLabel");
|
|
7022
7038
|
ae([
|
|
7023
|
-
|
|
7039
|
+
u({ type: Boolean, attribute: "sync-with-hash" })
|
|
7024
7040
|
], ie.prototype, "syncWithHash");
|
|
7025
7041
|
ae([
|
|
7026
|
-
|
|
7042
|
+
u({ type: String })
|
|
7027
7043
|
], ie.prototype, "variant");
|
|
7028
7044
|
ae([
|
|
7029
|
-
|
|
7045
|
+
u({ type: Boolean, attribute: "force-expanded" })
|
|
7030
7046
|
], ie.prototype, "forceExpanded");
|
|
7031
7047
|
ae([
|
|
7032
7048
|
w()
|
|
@@ -7038,7 +7054,7 @@ ae([
|
|
|
7038
7054
|
w()
|
|
7039
7055
|
], ie.prototype, "isMobile");
|
|
7040
7056
|
ae([
|
|
7041
|
-
|
|
7057
|
+
V(".tabs-nav")
|
|
7042
7058
|
], ie.prototype, "tabsNav");
|
|
7043
7059
|
var Pi = Object.defineProperty, Q = (r, e, t, i) => {
|
|
7044
7060
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7054,7 +7070,7 @@ class K extends L {
|
|
|
7054
7070
|
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
7071
|
}
|
|
7056
7072
|
static {
|
|
7057
|
-
this.styles =
|
|
7073
|
+
this.styles = H`
|
|
7058
7074
|
:host {
|
|
7059
7075
|
display: block;
|
|
7060
7076
|
}
|
|
@@ -7264,12 +7280,12 @@ class K extends L {
|
|
|
7264
7280
|
"character-count--warning": s && !o,
|
|
7265
7281
|
"character-count--error": o
|
|
7266
7282
|
};
|
|
7267
|
-
return
|
|
7283
|
+
return f`
|
|
7268
7284
|
<div class="textarea-group">
|
|
7269
|
-
${this.label ?
|
|
7285
|
+
${this.label ? f`
|
|
7270
7286
|
<label for=${this.textareaId} class="textarea-label">
|
|
7271
7287
|
${this.label}
|
|
7272
|
-
${this.required ?
|
|
7288
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7273
7289
|
</label>
|
|
7274
7290
|
` : ""}
|
|
7275
7291
|
|
|
@@ -7290,57 +7306,57 @@ class K extends L {
|
|
|
7290
7306
|
@focus=${this.handleFocus}
|
|
7291
7307
|
></textarea>
|
|
7292
7308
|
|
|
7293
|
-
${i ?
|
|
7309
|
+
${i ? f`
|
|
7294
7310
|
<div class=${S(n)}>
|
|
7295
7311
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7296
7312
|
</div>
|
|
7297
7313
|
` : ""}
|
|
7298
7314
|
</div>
|
|
7299
7315
|
|
|
7300
|
-
${e ?
|
|
7316
|
+
${e ? f`
|
|
7301
7317
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7302
7318
|
${this.error}
|
|
7303
7319
|
</div>
|
|
7304
|
-
` : this.hint ?
|
|
7320
|
+
` : this.hint ? f` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7305
7321
|
</div>
|
|
7306
7322
|
`;
|
|
7307
7323
|
}
|
|
7308
7324
|
}
|
|
7309
7325
|
Q([
|
|
7310
|
-
|
|
7326
|
+
u({ type: String })
|
|
7311
7327
|
], K.prototype, "value");
|
|
7312
7328
|
Q([
|
|
7313
|
-
|
|
7329
|
+
u({ type: String })
|
|
7314
7330
|
], K.prototype, "label");
|
|
7315
7331
|
Q([
|
|
7316
|
-
|
|
7332
|
+
u({ type: String })
|
|
7317
7333
|
], K.prototype, "placeholder");
|
|
7318
7334
|
Q([
|
|
7319
|
-
|
|
7335
|
+
u({ type: Boolean, reflect: !0 })
|
|
7320
7336
|
], K.prototype, "required");
|
|
7321
7337
|
Q([
|
|
7322
|
-
|
|
7338
|
+
u({ type: Boolean, reflect: !0 })
|
|
7323
7339
|
], K.prototype, "disabled");
|
|
7324
7340
|
Q([
|
|
7325
|
-
|
|
7341
|
+
u({ type: String })
|
|
7326
7342
|
], K.prototype, "error");
|
|
7327
7343
|
Q([
|
|
7328
|
-
|
|
7344
|
+
u({ type: String })
|
|
7329
7345
|
], K.prototype, "hint");
|
|
7330
7346
|
Q([
|
|
7331
|
-
|
|
7347
|
+
u({ type: String })
|
|
7332
7348
|
], K.prototype, "size");
|
|
7333
7349
|
Q([
|
|
7334
|
-
|
|
7350
|
+
u({ type: Number })
|
|
7335
7351
|
], K.prototype, "rows");
|
|
7336
7352
|
Q([
|
|
7337
|
-
|
|
7353
|
+
u({ type: Number })
|
|
7338
7354
|
], K.prototype, "maxlength");
|
|
7339
7355
|
Q([
|
|
7340
|
-
|
|
7356
|
+
u({ type: String })
|
|
7341
7357
|
], K.prototype, "resize");
|
|
7342
7358
|
Q([
|
|
7343
|
-
|
|
7359
|
+
V("textarea")
|
|
7344
7360
|
], K.prototype, "textareaElement");
|
|
7345
7361
|
var Ri = Object.defineProperty, Ve = (r, e, t, i) => {
|
|
7346
7362
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7404,7 +7420,7 @@ class Te extends L {
|
|
|
7404
7420
|
);
|
|
7405
7421
|
}
|
|
7406
7422
|
static {
|
|
7407
|
-
this.styles =
|
|
7423
|
+
this.styles = H`
|
|
7408
7424
|
:host {
|
|
7409
7425
|
position: fixed;
|
|
7410
7426
|
display: flex;
|
|
@@ -7756,13 +7772,13 @@ class Te extends L {
|
|
|
7756
7772
|
`;
|
|
7757
7773
|
}
|
|
7758
7774
|
render() {
|
|
7759
|
-
return
|
|
7775
|
+
return f`
|
|
7760
7776
|
<div class="toast-container ${this.variant}">
|
|
7761
|
-
${this.dismiss !== "manual" ?
|
|
7777
|
+
${this.dismiss !== "manual" ? f`
|
|
7762
7778
|
<div class="toast-progress"></div>
|
|
7763
7779
|
` : ""}
|
|
7764
7780
|
<slot></slot>
|
|
7765
|
-
${this.dismiss === "manual" ?
|
|
7781
|
+
${this.dismiss === "manual" ? f`
|
|
7766
7782
|
<button
|
|
7767
7783
|
class="toast-dismiss-btn ${this.variant}"
|
|
7768
7784
|
aria-label="Dismiss toast"
|
|
@@ -7776,19 +7792,19 @@ class Te extends L {
|
|
|
7776
7792
|
}
|
|
7777
7793
|
}
|
|
7778
7794
|
Ve([
|
|
7779
|
-
|
|
7795
|
+
u({ type: String, attribute: "variant", reflect: !0 })
|
|
7780
7796
|
], Te.prototype, "variant");
|
|
7781
7797
|
Ve([
|
|
7782
|
-
|
|
7798
|
+
u({ type: String, attribute: "padding", reflect: !0 })
|
|
7783
7799
|
], Te.prototype, "padding");
|
|
7784
7800
|
Ve([
|
|
7785
|
-
|
|
7801
|
+
u({ type: String, attribute: "size", reflect: !0 })
|
|
7786
7802
|
], Te.prototype, "size");
|
|
7787
7803
|
Ve([
|
|
7788
|
-
|
|
7804
|
+
u({ type: String, attribute: "dismiss", reflect: !0 })
|
|
7789
7805
|
], Te.prototype, "dismiss");
|
|
7790
7806
|
Ve([
|
|
7791
|
-
|
|
7807
|
+
u({ type: String, attribute: "position", reflect: !0 })
|
|
7792
7808
|
], Te.prototype, "position");
|
|
7793
7809
|
function va({
|
|
7794
7810
|
message: r,
|
|
@@ -7817,7 +7833,7 @@ class De extends L {
|
|
|
7817
7833
|
super(...arguments), this.value = 0, this.min = 0, this.max = 99, this.size = "md", this.allowInput = !0;
|
|
7818
7834
|
}
|
|
7819
7835
|
static {
|
|
7820
|
-
this.styles =
|
|
7836
|
+
this.styles = H`
|
|
7821
7837
|
:host {
|
|
7822
7838
|
display: inline-block;
|
|
7823
7839
|
}
|
|
@@ -8002,7 +8018,7 @@ class De extends L {
|
|
|
8002
8018
|
"quantity-input": !0,
|
|
8003
8019
|
[`quantity-input--${this.size}`]: !0
|
|
8004
8020
|
};
|
|
8005
|
-
return
|
|
8021
|
+
return f`
|
|
8006
8022
|
<div class=${S(e)}>
|
|
8007
8023
|
<button
|
|
8008
8024
|
type="button"
|
|
@@ -8039,19 +8055,19 @@ class De extends L {
|
|
|
8039
8055
|
}
|
|
8040
8056
|
}
|
|
8041
8057
|
Ze([
|
|
8042
|
-
|
|
8058
|
+
u({ type: Number })
|
|
8043
8059
|
], De.prototype, "value");
|
|
8044
8060
|
Ze([
|
|
8045
|
-
|
|
8061
|
+
u({ type: Number })
|
|
8046
8062
|
], De.prototype, "min");
|
|
8047
8063
|
Ze([
|
|
8048
|
-
|
|
8064
|
+
u({ type: Number })
|
|
8049
8065
|
], De.prototype, "max");
|
|
8050
8066
|
Ze([
|
|
8051
|
-
|
|
8067
|
+
u({ type: String })
|
|
8052
8068
|
], De.prototype, "size");
|
|
8053
8069
|
Ze([
|
|
8054
|
-
|
|
8070
|
+
u({ type: Boolean, attribute: "allow-input" })
|
|
8055
8071
|
], De.prototype, "allowInput");
|
|
8056
8072
|
var Li = Object.defineProperty, Ye = (r, e, t, i) => {
|
|
8057
8073
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -8115,7 +8131,7 @@ class Pe extends L {
|
|
|
8115
8131
|
}
|
|
8116
8132
|
render() {
|
|
8117
8133
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8118
|
-
return
|
|
8134
|
+
return f`
|
|
8119
8135
|
<button
|
|
8120
8136
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8121
8137
|
@click=${this.toggleTheme}
|
|
@@ -8133,7 +8149,7 @@ class Pe extends L {
|
|
|
8133
8149
|
`;
|
|
8134
8150
|
}
|
|
8135
8151
|
static {
|
|
8136
|
-
this.styles =
|
|
8152
|
+
this.styles = H`
|
|
8137
8153
|
:host {
|
|
8138
8154
|
display: inline-block;
|
|
8139
8155
|
}
|
|
@@ -8277,13 +8293,13 @@ class Pe extends L {
|
|
|
8277
8293
|
}
|
|
8278
8294
|
}
|
|
8279
8295
|
Ye([
|
|
8280
|
-
|
|
8296
|
+
u({ type: String, attribute: "size" })
|
|
8281
8297
|
], Pe.prototype, "size");
|
|
8282
8298
|
Ye([
|
|
8283
|
-
|
|
8299
|
+
u({ type: String, attribute: "variant" })
|
|
8284
8300
|
], Pe.prototype, "variant");
|
|
8285
8301
|
Ye([
|
|
8286
|
-
|
|
8302
|
+
u({ type: Object, attribute: "themes" })
|
|
8287
8303
|
], Pe.prototype, "themes");
|
|
8288
8304
|
Ye([
|
|
8289
8305
|
w()
|
|
@@ -8299,21 +8315,21 @@ function Or(r, e) {
|
|
|
8299
8315
|
const { toString: Ui } = Object.prototype, { getPrototypeOf: Bt } = Object, { iterator: pt, toStringTag: Rr } = Symbol, ut = /* @__PURE__ */ ((r) => (e) => {
|
|
8300
8316
|
const t = Ui.call(e);
|
|
8301
8317
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
8302
|
-
})(/* @__PURE__ */ Object.create(null)), te = (r) => (r = r.toLowerCase(), (e) => ut(e) === r),
|
|
8318
|
+
})(/* @__PURE__ */ Object.create(null)), te = (r) => (r = r.toLowerCase(), (e) => ut(e) === r), gt = (r) => (e) => typeof e === r, { isArray: Oe } = Array, Se = gt("undefined");
|
|
8303
8319
|
function We(r) {
|
|
8304
|
-
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) &&
|
|
8320
|
+
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) && Y(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
8305
8321
|
}
|
|
8306
8322
|
const zr = te("ArrayBuffer");
|
|
8307
8323
|
function Ni(r) {
|
|
8308
8324
|
let e;
|
|
8309
8325
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && zr(r.buffer), e;
|
|
8310
8326
|
}
|
|
8311
|
-
const qi =
|
|
8327
|
+
const qi = gt("string"), Y = gt("function"), Mr = gt("number"), Ke = (r) => r !== null && typeof r == "object", Hi = (r) => r === !0 || r === !1, st = (r) => {
|
|
8312
8328
|
if (ut(r) !== "object")
|
|
8313
8329
|
return !1;
|
|
8314
8330
|
const e = Bt(r);
|
|
8315
8331
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Rr in r) && !(pt in r);
|
|
8316
|
-
},
|
|
8332
|
+
}, Fi = (r) => {
|
|
8317
8333
|
if (!Ke(r) || We(r))
|
|
8318
8334
|
return !1;
|
|
8319
8335
|
try {
|
|
@@ -8321,10 +8337,10 @@ const qi = ft("string"), Z = ft("function"), Mr = ft("number"), Ke = (r) => r !=
|
|
|
8321
8337
|
} catch {
|
|
8322
8338
|
return !1;
|
|
8323
8339
|
}
|
|
8324
|
-
}, ji = te("Date"), Vi = te("File"), Zi = te("Blob"), Yi = te("FileList"), Wi = (r) => Ke(r) &&
|
|
8340
|
+
}, ji = te("Date"), Vi = te("File"), Zi = te("Blob"), Yi = te("FileList"), Wi = (r) => Ke(r) && Y(r.pipe), Ki = (r) => {
|
|
8325
8341
|
let e;
|
|
8326
|
-
return r && (typeof FormData == "function" && r instanceof FormData ||
|
|
8327
|
-
e === "object" &&
|
|
8342
|
+
return r && (typeof FormData == "function" && r instanceof FormData || Y(r.append) && ((e = ut(r)) === "formdata" || // detect form-data instance
|
|
8343
|
+
e === "object" && Y(r.toString) && r.toString() === "[object FormData]"));
|
|
8328
8344
|
}, 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
8345
|
function Je(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
8330
8346
|
if (r === null || typeof r > "u")
|
|
@@ -8353,7 +8369,7 @@ function Ir(r, e) {
|
|
|
8353
8369
|
return s;
|
|
8354
8370
|
return null;
|
|
8355
8371
|
}
|
|
8356
|
-
const
|
|
8372
|
+
const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lr = (r) => !Se(r) && r !== me;
|
|
8357
8373
|
function _t() {
|
|
8358
8374
|
const { caseless: r, skipUndefined: e } = Lr(this) && this || {}, t = {}, i = (s, o) => {
|
|
8359
8375
|
const a = r && Ir(t, o) || o;
|
|
@@ -8364,7 +8380,7 @@ function _t() {
|
|
|
8364
8380
|
return t;
|
|
8365
8381
|
}
|
|
8366
8382
|
const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
8367
|
-
t &&
|
|
8383
|
+
t && Y(s) ? r[o] = Or(s, t) : r[o] = s;
|
|
8368
8384
|
}, { allOwnKeys: i }), r), so = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), io = (r, e, t, i) => {
|
|
8369
8385
|
r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, Object.defineProperty(r, "super", {
|
|
8370
8386
|
value: e.prototype
|
|
@@ -8410,18 +8426,18 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8410
8426
|
function(t, i, s) {
|
|
8411
8427
|
return i.toUpperCase() + s;
|
|
8412
8428
|
}
|
|
8413
|
-
), lr = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype),
|
|
8429
|
+
), lr = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype), go = te("RegExp"), Br = (r, e) => {
|
|
8414
8430
|
const t = Object.getOwnPropertyDescriptors(r), i = {};
|
|
8415
8431
|
Je(t, (s, o) => {
|
|
8416
8432
|
let a;
|
|
8417
8433
|
(a = e(s, o, r)) !== !1 && (i[o] = a || s);
|
|
8418
8434
|
}), Object.defineProperties(r, i);
|
|
8419
|
-
},
|
|
8435
|
+
}, fo = (r) => {
|
|
8420
8436
|
Br(r, (e, t) => {
|
|
8421
|
-
if (
|
|
8437
|
+
if (Y(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
8422
8438
|
return !1;
|
|
8423
8439
|
const i = r[t];
|
|
8424
|
-
if (
|
|
8440
|
+
if (Y(i)) {
|
|
8425
8441
|
if (e.enumerable = !1, "writable" in e) {
|
|
8426
8442
|
e.writable = !1;
|
|
8427
8443
|
return;
|
|
@@ -8431,7 +8447,7 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8431
8447
|
});
|
|
8432
8448
|
}
|
|
8433
8449
|
});
|
|
8434
|
-
},
|
|
8450
|
+
}, mo = (r, e) => {
|
|
8435
8451
|
const t = {}, i = (s) => {
|
|
8436
8452
|
s.forEach((o) => {
|
|
8437
8453
|
t[o] = !0;
|
|
@@ -8441,7 +8457,7 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8441
8457
|
}, bo = () => {
|
|
8442
8458
|
}, vo = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
|
|
8443
8459
|
function yo(r) {
|
|
8444
|
-
return !!(r &&
|
|
8460
|
+
return !!(r && Y(r.append) && r[Rr] === "FormData" && r[pt]);
|
|
8445
8461
|
}
|
|
8446
8462
|
const wo = (r) => {
|
|
8447
8463
|
const e = new Array(10), t = (i, s) => {
|
|
@@ -8454,22 +8470,22 @@ const wo = (r) => {
|
|
|
8454
8470
|
e[s] = i;
|
|
8455
8471
|
const o = Oe(i) ? [] : {};
|
|
8456
8472
|
return Je(i, (a, n) => {
|
|
8457
|
-
const
|
|
8458
|
-
!Se(
|
|
8473
|
+
const l = t(a, s + 1);
|
|
8474
|
+
!Se(l) && (o[n] = l);
|
|
8459
8475
|
}), e[s] = void 0, o;
|
|
8460
8476
|
}
|
|
8461
8477
|
}
|
|
8462
8478
|
return i;
|
|
8463
8479
|
};
|
|
8464
8480
|
return t(r, 0);
|
|
8465
|
-
}, xo = te("AsyncFunction"), $o = (r) => r && (Ke(r) ||
|
|
8466
|
-
s ===
|
|
8481
|
+
}, 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 }) => {
|
|
8482
|
+
s === me && o === t && i.length && i.shift()();
|
|
8467
8483
|
}, !1), (s) => {
|
|
8468
|
-
i.push(s),
|
|
8484
|
+
i.push(s), me.postMessage(t, "*");
|
|
8469
8485
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
8470
8486
|
typeof setImmediate == "function",
|
|
8471
|
-
|
|
8472
|
-
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
8487
|
+
Y(me.postMessage)
|
|
8488
|
+
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick || Ur, So = (r) => r != null && Y(r[pt]), c = {
|
|
8473
8489
|
isArray: Oe,
|
|
8474
8490
|
isArrayBuffer: zr,
|
|
8475
8491
|
isBuffer: We,
|
|
@@ -8477,10 +8493,10 @@ const wo = (r) => {
|
|
|
8477
8493
|
isArrayBufferView: Ni,
|
|
8478
8494
|
isString: qi,
|
|
8479
8495
|
isNumber: Mr,
|
|
8480
|
-
isBoolean:
|
|
8496
|
+
isBoolean: Hi,
|
|
8481
8497
|
isObject: Ke,
|
|
8482
8498
|
isPlainObject: st,
|
|
8483
|
-
isEmptyObject:
|
|
8499
|
+
isEmptyObject: Fi,
|
|
8484
8500
|
isReadableStream: Xi,
|
|
8485
8501
|
isRequest: Gi,
|
|
8486
8502
|
isResponse: Qi,
|
|
@@ -8489,8 +8505,8 @@ const wo = (r) => {
|
|
|
8489
8505
|
isDate: ji,
|
|
8490
8506
|
isFile: Vi,
|
|
8491
8507
|
isBlob: Zi,
|
|
8492
|
-
isRegExp:
|
|
8493
|
-
isFunction:
|
|
8508
|
+
isRegExp: go,
|
|
8509
|
+
isFunction: Y,
|
|
8494
8510
|
isStream: Wi,
|
|
8495
8511
|
isURLSearchParams: Ji,
|
|
8496
8512
|
isTypedArray: lo,
|
|
@@ -8513,13 +8529,13 @@ const wo = (r) => {
|
|
|
8513
8529
|
hasOwnProp: lr,
|
|
8514
8530
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8515
8531
|
reduceDescriptors: Br,
|
|
8516
|
-
freezeMethods:
|
|
8517
|
-
toObjectSet:
|
|
8532
|
+
freezeMethods: fo,
|
|
8533
|
+
toObjectSet: mo,
|
|
8518
8534
|
toCamelCase: uo,
|
|
8519
8535
|
noop: bo,
|
|
8520
8536
|
toFiniteNumber: vo,
|
|
8521
8537
|
findKey: Ir,
|
|
8522
|
-
global:
|
|
8538
|
+
global: me,
|
|
8523
8539
|
isContextDefined: Lr,
|
|
8524
8540
|
isSpecCompliantForm: yo,
|
|
8525
8541
|
toJSONObject: wo,
|
|
@@ -8532,7 +8548,7 @@ const wo = (r) => {
|
|
|
8532
8548
|
function $(r, e, t, i, s) {
|
|
8533
8549
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", e && (this.code = e), t && (this.config = t), i && (this.request = i), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
8534
8550
|
}
|
|
8535
|
-
|
|
8551
|
+
c.inherits($, Error, {
|
|
8536
8552
|
toJSON: function() {
|
|
8537
8553
|
return {
|
|
8538
8554
|
// Standard
|
|
@@ -8547,7 +8563,7 @@ l.inherits($, Error, {
|
|
|
8547
8563
|
columnNumber: this.columnNumber,
|
|
8548
8564
|
stack: this.stack,
|
|
8549
8565
|
// Axios
|
|
8550
|
-
config:
|
|
8566
|
+
config: c.toJSONObject(this.config),
|
|
8551
8567
|
code: this.code,
|
|
8552
8568
|
status: this.status
|
|
8553
8569
|
};
|
|
@@ -8575,90 +8591,90 @@ Object.defineProperties($, qr);
|
|
|
8575
8591
|
Object.defineProperty(Nr, "isAxiosError", { value: !0 });
|
|
8576
8592
|
$.from = (r, e, t, i, s, o) => {
|
|
8577
8593
|
const a = Object.create(Nr);
|
|
8578
|
-
|
|
8579
|
-
return
|
|
8594
|
+
c.toFlatObject(r, a, function(d) {
|
|
8595
|
+
return d !== Error.prototype;
|
|
8580
8596
|
}, (p) => p !== "isAxiosError");
|
|
8581
|
-
const n = r && r.message ? r.message : "Error",
|
|
8582
|
-
return $.call(a, n,
|
|
8597
|
+
const n = r && r.message ? r.message : "Error", l = e == null && r ? r.code : e;
|
|
8598
|
+
return $.call(a, n, l, 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
8599
|
};
|
|
8584
8600
|
const _o = null;
|
|
8585
8601
|
function Ct(r) {
|
|
8586
|
-
return
|
|
8602
|
+
return c.isPlainObject(r) || c.isArray(r);
|
|
8587
8603
|
}
|
|
8588
|
-
function
|
|
8589
|
-
return
|
|
8604
|
+
function Hr(r) {
|
|
8605
|
+
return c.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
8590
8606
|
}
|
|
8591
8607
|
function cr(r, e, t) {
|
|
8592
8608
|
return r ? r.concat(e).map(function(s, o) {
|
|
8593
|
-
return s =
|
|
8609
|
+
return s = Hr(s), !t && o ? "[" + s + "]" : s;
|
|
8594
8610
|
}).join(t ? "." : "") : e;
|
|
8595
8611
|
}
|
|
8596
8612
|
function Co(r) {
|
|
8597
|
-
return
|
|
8613
|
+
return c.isArray(r) && !r.some(Ct);
|
|
8598
8614
|
}
|
|
8599
|
-
const Eo =
|
|
8615
|
+
const Eo = c.toFlatObject(c, {}, null, function(e) {
|
|
8600
8616
|
return /^is[A-Z]/.test(e);
|
|
8601
8617
|
});
|
|
8602
|
-
function
|
|
8603
|
-
if (!
|
|
8618
|
+
function ft(r, e, t) {
|
|
8619
|
+
if (!c.isObject(r))
|
|
8604
8620
|
throw new TypeError("target must be an object");
|
|
8605
|
-
e = e || new FormData(), t =
|
|
8621
|
+
e = e || new FormData(), t = c.toFlatObject(t, {
|
|
8606
8622
|
metaTokens: !0,
|
|
8607
8623
|
dots: !1,
|
|
8608
8624
|
indexes: !1
|
|
8609
|
-
}, !1, function(v,
|
|
8610
|
-
return !
|
|
8625
|
+
}, !1, function(v, m) {
|
|
8626
|
+
return !c.isUndefined(m[v]);
|
|
8611
8627
|
});
|
|
8612
|
-
const i = t.metaTokens, s = t.visitor ||
|
|
8613
|
-
if (!
|
|
8628
|
+
const i = t.metaTokens, s = t.visitor || d, o = t.dots, a = t.indexes, l = (t.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
|
|
8629
|
+
if (!c.isFunction(s))
|
|
8614
8630
|
throw new TypeError("visitor must be a function");
|
|
8615
|
-
function p(
|
|
8616
|
-
if (
|
|
8617
|
-
if (
|
|
8618
|
-
return
|
|
8619
|
-
if (
|
|
8620
|
-
return
|
|
8621
|
-
if (!
|
|
8631
|
+
function p(g) {
|
|
8632
|
+
if (g === null) return "";
|
|
8633
|
+
if (c.isDate(g))
|
|
8634
|
+
return g.toISOString();
|
|
8635
|
+
if (c.isBoolean(g))
|
|
8636
|
+
return g.toString();
|
|
8637
|
+
if (!l && c.isBlob(g))
|
|
8622
8638
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
8623
|
-
return
|
|
8624
|
-
}
|
|
8625
|
-
function
|
|
8626
|
-
let x =
|
|
8627
|
-
if (
|
|
8628
|
-
if (
|
|
8629
|
-
v = i ? v : v.slice(0, -2),
|
|
8630
|
-
else if (
|
|
8631
|
-
return v =
|
|
8632
|
-
!(
|
|
8639
|
+
return c.isArrayBuffer(g) || c.isTypedArray(g) ? l && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
8640
|
+
}
|
|
8641
|
+
function d(g, v, m) {
|
|
8642
|
+
let x = g;
|
|
8643
|
+
if (g && !m && typeof g == "object") {
|
|
8644
|
+
if (c.endsWith(v, "{}"))
|
|
8645
|
+
v = i ? v : v.slice(0, -2), g = JSON.stringify(g);
|
|
8646
|
+
else if (c.isArray(g) && Co(g) || (c.isFileList(g) || c.endsWith(v, "[]")) && (x = c.toArray(g)))
|
|
8647
|
+
return v = Hr(v), x.forEach(function(C, T) {
|
|
8648
|
+
!(c.isUndefined(C) || C === null) && e.append(
|
|
8633
8649
|
// eslint-disable-next-line no-nested-ternary
|
|
8634
8650
|
a === !0 ? cr([v], T, o) : a === null ? v : v + "[]",
|
|
8635
|
-
p(
|
|
8651
|
+
p(C)
|
|
8636
8652
|
);
|
|
8637
8653
|
}), !1;
|
|
8638
8654
|
}
|
|
8639
|
-
return Ct(
|
|
8655
|
+
return Ct(g) ? !0 : (e.append(cr(m, v, o), p(g)), !1);
|
|
8640
8656
|
}
|
|
8641
|
-
const h = [],
|
|
8642
|
-
defaultVisitor:
|
|
8657
|
+
const h = [], b = Object.assign(Eo, {
|
|
8658
|
+
defaultVisitor: d,
|
|
8643
8659
|
convertValue: p,
|
|
8644
8660
|
isVisitable: Ct
|
|
8645
8661
|
});
|
|
8646
|
-
function y(
|
|
8647
|
-
if (!
|
|
8648
|
-
if (h.indexOf(
|
|
8662
|
+
function y(g, v) {
|
|
8663
|
+
if (!c.isUndefined(g)) {
|
|
8664
|
+
if (h.indexOf(g) !== -1)
|
|
8649
8665
|
throw Error("Circular reference detected in " + v.join("."));
|
|
8650
|
-
h.push(
|
|
8651
|
-
(!(
|
|
8666
|
+
h.push(g), c.forEach(g, function(x, _) {
|
|
8667
|
+
(!(c.isUndefined(x) || x === null) && s.call(
|
|
8652
8668
|
e,
|
|
8653
8669
|
x,
|
|
8654
|
-
|
|
8670
|
+
c.isString(_) ? _.trim() : _,
|
|
8655
8671
|
v,
|
|
8656
|
-
|
|
8657
|
-
)) === !0 && y(x, v ? v.concat(
|
|
8672
|
+
b
|
|
8673
|
+
)) === !0 && y(x, v ? v.concat(_) : [_]);
|
|
8658
8674
|
}), h.pop();
|
|
8659
8675
|
}
|
|
8660
8676
|
}
|
|
8661
|
-
if (!
|
|
8677
|
+
if (!c.isObject(r))
|
|
8662
8678
|
throw new TypeError("data must be an object");
|
|
8663
8679
|
return y(r), e;
|
|
8664
8680
|
}
|
|
@@ -8677,13 +8693,13 @@ function dr(r) {
|
|
|
8677
8693
|
});
|
|
8678
8694
|
}
|
|
8679
8695
|
function Ut(r, e) {
|
|
8680
|
-
this._pairs = [], r &&
|
|
8696
|
+
this._pairs = [], r && ft(r, this, e);
|
|
8681
8697
|
}
|
|
8682
|
-
const
|
|
8683
|
-
|
|
8698
|
+
const Fr = Ut.prototype;
|
|
8699
|
+
Fr.append = function(e, t) {
|
|
8684
8700
|
this._pairs.push([e, t]);
|
|
8685
8701
|
};
|
|
8686
|
-
|
|
8702
|
+
Fr.toString = function(e) {
|
|
8687
8703
|
const t = e ? function(i) {
|
|
8688
8704
|
return e.call(this, i, dr);
|
|
8689
8705
|
} : dr;
|
|
@@ -8698,12 +8714,12 @@ function jr(r, e, t) {
|
|
|
8698
8714
|
if (!e)
|
|
8699
8715
|
return r;
|
|
8700
8716
|
const i = t && t.encode || Ao;
|
|
8701
|
-
|
|
8717
|
+
c.isFunction(t) && (t = {
|
|
8702
8718
|
serialize: t
|
|
8703
8719
|
});
|
|
8704
8720
|
const s = t && t.serialize;
|
|
8705
8721
|
let o;
|
|
8706
|
-
if (s ? o = s(e, t) : o =
|
|
8722
|
+
if (s ? o = s(e, t) : o = c.isURLSearchParams(e) ? e.toString() : new Ut(e, t).toString(i), o) {
|
|
8707
8723
|
const a = r.indexOf("#");
|
|
8708
8724
|
a !== -1 && (r = r.slice(0, a)), r += (r.indexOf("?") === -1 ? "?" : "&") + o;
|
|
8709
8725
|
}
|
|
@@ -8758,7 +8774,7 @@ class hr {
|
|
|
8758
8774
|
* @returns {void}
|
|
8759
8775
|
*/
|
|
8760
8776
|
forEach(e) {
|
|
8761
|
-
|
|
8777
|
+
c.forEach(this.handlers, function(i) {
|
|
8762
8778
|
i !== null && e(i);
|
|
8763
8779
|
});
|
|
8764
8780
|
}
|
|
@@ -8783,20 +8799,20 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Mo
|
|
|
8783
8799
|
hasStandardBrowserWebWorkerEnv: zo,
|
|
8784
8800
|
navigator: Et,
|
|
8785
8801
|
origin: Mo
|
|
8786
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8802
|
+
}, Symbol.toStringTag, { value: "Module" })), q = {
|
|
8787
8803
|
...Io,
|
|
8788
8804
|
...Oo
|
|
8789
8805
|
};
|
|
8790
8806
|
function Lo(r, e) {
|
|
8791
|
-
return
|
|
8807
|
+
return ft(r, new q.classes.URLSearchParams(), {
|
|
8792
8808
|
visitor: function(t, i, s, o) {
|
|
8793
|
-
return
|
|
8809
|
+
return q.isNode && c.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
8794
8810
|
},
|
|
8795
8811
|
...e
|
|
8796
8812
|
});
|
|
8797
8813
|
}
|
|
8798
8814
|
function Bo(r) {
|
|
8799
|
-
return
|
|
8815
|
+
return c.matchAll(/\w+|\[(\w*)]/g, r).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
8800
8816
|
}
|
|
8801
8817
|
function Uo(r) {
|
|
8802
8818
|
const e = {}, t = Object.keys(r);
|
|
@@ -8811,21 +8827,21 @@ function Zr(r) {
|
|
|
8811
8827
|
function e(t, i, s, o) {
|
|
8812
8828
|
let a = t[o++];
|
|
8813
8829
|
if (a === "__proto__") return !0;
|
|
8814
|
-
const n = Number.isFinite(+a),
|
|
8815
|
-
return a = !a &&
|
|
8830
|
+
const n = Number.isFinite(+a), l = o >= t.length;
|
|
8831
|
+
return a = !a && c.isArray(s) ? s.length : a, l ? (c.hasOwnProp(s, a) ? s[a] = [s[a], i] : s[a] = i, !n) : ((!s[a] || !c.isObject(s[a])) && (s[a] = []), e(t, i, s[a], o) && c.isArray(s[a]) && (s[a] = Uo(s[a])), !n);
|
|
8816
8832
|
}
|
|
8817
|
-
if (
|
|
8833
|
+
if (c.isFormData(r) && c.isFunction(r.entries)) {
|
|
8818
8834
|
const t = {};
|
|
8819
|
-
return
|
|
8835
|
+
return c.forEachEntry(r, (i, s) => {
|
|
8820
8836
|
e(Bo(i), s, t, 0);
|
|
8821
8837
|
}), t;
|
|
8822
8838
|
}
|
|
8823
8839
|
return null;
|
|
8824
8840
|
}
|
|
8825
8841
|
function No(r, e, t) {
|
|
8826
|
-
if (
|
|
8842
|
+
if (c.isString(r))
|
|
8827
8843
|
try {
|
|
8828
|
-
return (0, JSON.parse)(r),
|
|
8844
|
+
return (0, JSON.parse)(r), c.trim(r);
|
|
8829
8845
|
} catch (i) {
|
|
8830
8846
|
if (i.name !== "SyntaxError")
|
|
8831
8847
|
throw i;
|
|
@@ -8836,24 +8852,24 @@ const Xe = {
|
|
|
8836
8852
|
transitional: Vr,
|
|
8837
8853
|
adapter: ["xhr", "http", "fetch"],
|
|
8838
8854
|
transformRequest: [function(e, t) {
|
|
8839
|
-
const i = t.getContentType() || "", s = i.indexOf("application/json") > -1, o =
|
|
8840
|
-
if (o &&
|
|
8855
|
+
const i = t.getContentType() || "", s = i.indexOf("application/json") > -1, o = c.isObject(e);
|
|
8856
|
+
if (o && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
|
|
8841
8857
|
return s ? JSON.stringify(Zr(e)) : e;
|
|
8842
|
-
if (
|
|
8858
|
+
if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e) || c.isReadableStream(e))
|
|
8843
8859
|
return e;
|
|
8844
|
-
if (
|
|
8860
|
+
if (c.isArrayBufferView(e))
|
|
8845
8861
|
return e.buffer;
|
|
8846
|
-
if (
|
|
8862
|
+
if (c.isURLSearchParams(e))
|
|
8847
8863
|
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
8848
8864
|
let n;
|
|
8849
8865
|
if (o) {
|
|
8850
8866
|
if (i.indexOf("application/x-www-form-urlencoded") > -1)
|
|
8851
8867
|
return Lo(e, this.formSerializer).toString();
|
|
8852
|
-
if ((n =
|
|
8853
|
-
const
|
|
8854
|
-
return
|
|
8868
|
+
if ((n = c.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
8869
|
+
const l = this.env && this.env.FormData;
|
|
8870
|
+
return ft(
|
|
8855
8871
|
n ? { "files[]": e } : e,
|
|
8856
|
-
|
|
8872
|
+
l && new l(),
|
|
8857
8873
|
this.formSerializer
|
|
8858
8874
|
);
|
|
8859
8875
|
}
|
|
@@ -8862,9 +8878,9 @@ const Xe = {
|
|
|
8862
8878
|
}],
|
|
8863
8879
|
transformResponse: [function(e) {
|
|
8864
8880
|
const t = this.transitional || Xe.transitional, i = t && t.forcedJSONParsing, s = this.responseType === "json";
|
|
8865
|
-
if (
|
|
8881
|
+
if (c.isResponse(e) || c.isReadableStream(e))
|
|
8866
8882
|
return e;
|
|
8867
|
-
if (e &&
|
|
8883
|
+
if (e && c.isString(e) && (i && !this.responseType || s)) {
|
|
8868
8884
|
const a = !(t && t.silentJSONParsing) && s;
|
|
8869
8885
|
try {
|
|
8870
8886
|
return JSON.parse(e, this.parseReviver);
|
|
@@ -8885,8 +8901,8 @@ const Xe = {
|
|
|
8885
8901
|
maxContentLength: -1,
|
|
8886
8902
|
maxBodyLength: -1,
|
|
8887
8903
|
env: {
|
|
8888
|
-
FormData:
|
|
8889
|
-
Blob:
|
|
8904
|
+
FormData: q.classes.FormData,
|
|
8905
|
+
Blob: q.classes.Blob
|
|
8890
8906
|
},
|
|
8891
8907
|
validateStatus: function(e) {
|
|
8892
8908
|
return e >= 200 && e < 300;
|
|
@@ -8898,10 +8914,10 @@ const Xe = {
|
|
|
8898
8914
|
}
|
|
8899
8915
|
}
|
|
8900
8916
|
};
|
|
8901
|
-
|
|
8917
|
+
c.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
|
|
8902
8918
|
Xe.headers[r] = {};
|
|
8903
8919
|
});
|
|
8904
|
-
const qo =
|
|
8920
|
+
const qo = c.toObjectSet([
|
|
8905
8921
|
"age",
|
|
8906
8922
|
"authorization",
|
|
8907
8923
|
"content-length",
|
|
@@ -8919,7 +8935,7 @@ const qo = l.toObjectSet([
|
|
|
8919
8935
|
"referer",
|
|
8920
8936
|
"retry-after",
|
|
8921
8937
|
"user-agent"
|
|
8922
|
-
]),
|
|
8938
|
+
]), Ho = (r) => {
|
|
8923
8939
|
const e = {};
|
|
8924
8940
|
let t, i, s;
|
|
8925
8941
|
return r && r.split(`
|
|
@@ -8931,9 +8947,9 @@ function Le(r) {
|
|
|
8931
8947
|
return r && String(r).trim().toLowerCase();
|
|
8932
8948
|
}
|
|
8933
8949
|
function it(r) {
|
|
8934
|
-
return r === !1 || r == null ? r :
|
|
8950
|
+
return r === !1 || r == null ? r : c.isArray(r) ? r.map(it) : String(r);
|
|
8935
8951
|
}
|
|
8936
|
-
function
|
|
8952
|
+
function Fo(r) {
|
|
8937
8953
|
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
8938
8954
|
let i;
|
|
8939
8955
|
for (; i = t.exec(r); )
|
|
@@ -8942,12 +8958,12 @@ function Ho(r) {
|
|
|
8942
8958
|
}
|
|
8943
8959
|
const jo = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
|
|
8944
8960
|
function xt(r, e, t, i, s) {
|
|
8945
|
-
if (
|
|
8961
|
+
if (c.isFunction(i))
|
|
8946
8962
|
return i.call(this, e, t);
|
|
8947
|
-
if (s && (e = t), !!
|
|
8948
|
-
if (
|
|
8963
|
+
if (s && (e = t), !!c.isString(e)) {
|
|
8964
|
+
if (c.isString(i))
|
|
8949
8965
|
return e.indexOf(i) !== -1;
|
|
8950
|
-
if (
|
|
8966
|
+
if (c.isRegExp(i))
|
|
8951
8967
|
return i.test(e);
|
|
8952
8968
|
}
|
|
8953
8969
|
}
|
|
@@ -8955,7 +8971,7 @@ function Vo(r) {
|
|
|
8955
8971
|
return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, i) => t.toUpperCase() + i);
|
|
8956
8972
|
}
|
|
8957
8973
|
function Zo(r, e) {
|
|
8958
|
-
const t =
|
|
8974
|
+
const t = c.toCamelCase(" " + e);
|
|
8959
8975
|
["get", "set", "has"].forEach((i) => {
|
|
8960
8976
|
Object.defineProperty(r, i + t, {
|
|
8961
8977
|
value: function(s, o, a) {
|
|
@@ -8965,30 +8981,30 @@ function Zo(r, e) {
|
|
|
8965
8981
|
});
|
|
8966
8982
|
});
|
|
8967
8983
|
}
|
|
8968
|
-
class
|
|
8984
|
+
class W {
|
|
8969
8985
|
constructor(e) {
|
|
8970
8986
|
e && this.set(e);
|
|
8971
8987
|
}
|
|
8972
8988
|
set(e, t, i) {
|
|
8973
8989
|
const s = this;
|
|
8974
|
-
function o(n,
|
|
8975
|
-
const
|
|
8976
|
-
if (!
|
|
8990
|
+
function o(n, l, p) {
|
|
8991
|
+
const d = Le(l);
|
|
8992
|
+
if (!d)
|
|
8977
8993
|
throw new Error("header name must be a non-empty string");
|
|
8978
|
-
const h =
|
|
8979
|
-
(!h || s[h] === void 0 || p === !0 || p === void 0 && s[h] !== !1) && (s[h ||
|
|
8994
|
+
const h = c.findKey(s, d);
|
|
8995
|
+
(!h || s[h] === void 0 || p === !0 || p === void 0 && s[h] !== !1) && (s[h || l] = it(n));
|
|
8980
8996
|
}
|
|
8981
|
-
const a = (n,
|
|
8982
|
-
if (
|
|
8997
|
+
const a = (n, l) => c.forEach(n, (p, d) => o(p, d, l));
|
|
8998
|
+
if (c.isPlainObject(e) || e instanceof this.constructor)
|
|
8983
8999
|
a(e, t);
|
|
8984
|
-
else if (
|
|
8985
|
-
a(
|
|
8986
|
-
else if (
|
|
8987
|
-
let n = {},
|
|
8988
|
-
for (const
|
|
8989
|
-
if (!
|
|
9000
|
+
else if (c.isString(e) && (e = e.trim()) && !jo(e))
|
|
9001
|
+
a(Ho(e), t);
|
|
9002
|
+
else if (c.isObject(e) && c.isIterable(e)) {
|
|
9003
|
+
let n = {}, l, p;
|
|
9004
|
+
for (const d of e) {
|
|
9005
|
+
if (!c.isArray(d))
|
|
8990
9006
|
throw TypeError("Object iterator must return a key-value pair");
|
|
8991
|
-
n[p =
|
|
9007
|
+
n[p = d[0]] = (l = n[p]) ? c.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
|
|
8992
9008
|
}
|
|
8993
9009
|
a(n, t);
|
|
8994
9010
|
} else
|
|
@@ -8997,16 +9013,16 @@ class Y {
|
|
|
8997
9013
|
}
|
|
8998
9014
|
get(e, t) {
|
|
8999
9015
|
if (e = Le(e), e) {
|
|
9000
|
-
const i =
|
|
9016
|
+
const i = c.findKey(this, e);
|
|
9001
9017
|
if (i) {
|
|
9002
9018
|
const s = this[i];
|
|
9003
9019
|
if (!t)
|
|
9004
9020
|
return s;
|
|
9005
9021
|
if (t === !0)
|
|
9006
|
-
return
|
|
9007
|
-
if (
|
|
9022
|
+
return Fo(s);
|
|
9023
|
+
if (c.isFunction(t))
|
|
9008
9024
|
return t.call(this, s, i);
|
|
9009
|
-
if (
|
|
9025
|
+
if (c.isRegExp(t))
|
|
9010
9026
|
return t.exec(s);
|
|
9011
9027
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
9012
9028
|
}
|
|
@@ -9014,7 +9030,7 @@ class Y {
|
|
|
9014
9030
|
}
|
|
9015
9031
|
has(e, t) {
|
|
9016
9032
|
if (e = Le(e), e) {
|
|
9017
|
-
const i =
|
|
9033
|
+
const i = c.findKey(this, e);
|
|
9018
9034
|
return !!(i && this[i] !== void 0 && (!t || xt(this, this[i], i, t)));
|
|
9019
9035
|
}
|
|
9020
9036
|
return !1;
|
|
@@ -9024,11 +9040,11 @@ class Y {
|
|
|
9024
9040
|
let s = !1;
|
|
9025
9041
|
function o(a) {
|
|
9026
9042
|
if (a = Le(a), a) {
|
|
9027
|
-
const n =
|
|
9043
|
+
const n = c.findKey(i, a);
|
|
9028
9044
|
n && (!t || xt(i, i[n], n, t)) && (delete i[n], s = !0);
|
|
9029
9045
|
}
|
|
9030
9046
|
}
|
|
9031
|
-
return
|
|
9047
|
+
return c.isArray(e) ? e.forEach(o) : o(e), s;
|
|
9032
9048
|
}
|
|
9033
9049
|
clear(e) {
|
|
9034
9050
|
const t = Object.keys(this);
|
|
@@ -9041,8 +9057,8 @@ class Y {
|
|
|
9041
9057
|
}
|
|
9042
9058
|
normalize(e) {
|
|
9043
9059
|
const t = this, i = {};
|
|
9044
|
-
return
|
|
9045
|
-
const a =
|
|
9060
|
+
return c.forEach(this, (s, o) => {
|
|
9061
|
+
const a = c.findKey(i, o);
|
|
9046
9062
|
if (a) {
|
|
9047
9063
|
t[a] = it(s), delete t[o];
|
|
9048
9064
|
return;
|
|
@@ -9056,8 +9072,8 @@ class Y {
|
|
|
9056
9072
|
}
|
|
9057
9073
|
toJSON(e) {
|
|
9058
9074
|
const t = /* @__PURE__ */ Object.create(null);
|
|
9059
|
-
return
|
|
9060
|
-
i != null && i !== !1 && (t[s] = e &&
|
|
9075
|
+
return c.forEach(this, (i, s) => {
|
|
9076
|
+
i != null && i !== !1 && (t[s] = e && c.isArray(i) ? i.join(", ") : i);
|
|
9061
9077
|
}), t;
|
|
9062
9078
|
}
|
|
9063
9079
|
[Symbol.iterator]() {
|
|
@@ -9088,11 +9104,11 @@ class Y {
|
|
|
9088
9104
|
const n = Le(a);
|
|
9089
9105
|
i[n] || (Zo(s, a), i[n] = !0);
|
|
9090
9106
|
}
|
|
9091
|
-
return
|
|
9107
|
+
return c.isArray(e) ? e.forEach(o) : o(e), this;
|
|
9092
9108
|
}
|
|
9093
9109
|
}
|
|
9094
|
-
|
|
9095
|
-
|
|
9110
|
+
W.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
9111
|
+
c.reduceDescriptors(W.prototype, ({ value: r }, e) => {
|
|
9096
9112
|
let t = e[0].toUpperCase() + e.slice(1);
|
|
9097
9113
|
return {
|
|
9098
9114
|
get: () => r,
|
|
@@ -9101,11 +9117,11 @@ l.reduceDescriptors(Y.prototype, ({ value: r }, e) => {
|
|
|
9101
9117
|
}
|
|
9102
9118
|
};
|
|
9103
9119
|
});
|
|
9104
|
-
|
|
9120
|
+
c.freezeMethods(W);
|
|
9105
9121
|
function $t(r, e) {
|
|
9106
|
-
const t = this || Xe, i = e || t, s =
|
|
9122
|
+
const t = this || Xe, i = e || t, s = W.from(i.headers);
|
|
9107
9123
|
let o = i.data;
|
|
9108
|
-
return
|
|
9124
|
+
return c.forEach(r, function(n) {
|
|
9109
9125
|
o = n.call(t, o, s.normalize(), e ? e.status : void 0);
|
|
9110
9126
|
}), s.normalize(), o;
|
|
9111
9127
|
}
|
|
@@ -9115,7 +9131,7 @@ function Yr(r) {
|
|
|
9115
9131
|
function Re(r, e, t) {
|
|
9116
9132
|
$.call(this, r ?? "canceled", $.ERR_CANCELED, e, t), this.name = "CanceledError";
|
|
9117
9133
|
}
|
|
9118
|
-
|
|
9134
|
+
c.inherits(Re, $, {
|
|
9119
9135
|
__CANCEL__: !0
|
|
9120
9136
|
});
|
|
9121
9137
|
function Wr(r, e, t) {
|
|
@@ -9136,26 +9152,26 @@ function Wo(r, e) {
|
|
|
9136
9152
|
r = r || 10;
|
|
9137
9153
|
const t = new Array(r), i = new Array(r);
|
|
9138
9154
|
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,
|
|
9155
|
+
return e = e !== void 0 ? e : 1e3, function(l) {
|
|
9156
|
+
const p = Date.now(), d = i[o];
|
|
9157
|
+
a || (a = p), t[s] = l, i[s] = p;
|
|
9158
|
+
let h = o, b = 0;
|
|
9143
9159
|
for (; h !== s; )
|
|
9144
|
-
|
|
9160
|
+
b += t[h++], h = h % r;
|
|
9145
9161
|
if (s = (s + 1) % r, s === o && (o = (o + 1) % r), p - a < e)
|
|
9146
9162
|
return;
|
|
9147
|
-
const y =
|
|
9148
|
-
return y ? Math.round(
|
|
9163
|
+
const y = d && p - d;
|
|
9164
|
+
return y ? Math.round(b * 1e3 / y) : void 0;
|
|
9149
9165
|
};
|
|
9150
9166
|
}
|
|
9151
9167
|
function Ko(r, e) {
|
|
9152
9168
|
let t = 0, i = 1e3 / e, s, o;
|
|
9153
|
-
const a = (p,
|
|
9154
|
-
t =
|
|
9169
|
+
const a = (p, d = Date.now()) => {
|
|
9170
|
+
t = d, s = null, o && (clearTimeout(o), o = null), r(...p);
|
|
9155
9171
|
};
|
|
9156
9172
|
return [(...p) => {
|
|
9157
|
-
const
|
|
9158
|
-
h >= i ? a(p,
|
|
9173
|
+
const d = Date.now(), h = d - t;
|
|
9174
|
+
h >= i ? a(p, d) : (s = p, o || (o = setTimeout(() => {
|
|
9159
9175
|
o = null, a(s);
|
|
9160
9176
|
}, i - h)));
|
|
9161
9177
|
}, () => s && a(s)];
|
|
@@ -9164,15 +9180,15 @@ const lt = (r, e, t = 3) => {
|
|
|
9164
9180
|
let i = 0;
|
|
9165
9181
|
const s = Wo(50, 250);
|
|
9166
9182
|
return Ko((o) => {
|
|
9167
|
-
const a = o.loaded, n = o.lengthComputable ? o.total : void 0,
|
|
9183
|
+
const a = o.loaded, n = o.lengthComputable ? o.total : void 0, l = a - i, p = s(l), d = a <= n;
|
|
9168
9184
|
i = a;
|
|
9169
9185
|
const h = {
|
|
9170
9186
|
loaded: a,
|
|
9171
9187
|
total: n,
|
|
9172
9188
|
progress: n ? a / n : void 0,
|
|
9173
|
-
bytes:
|
|
9189
|
+
bytes: l,
|
|
9174
9190
|
rate: p || void 0,
|
|
9175
|
-
estimated: p && n &&
|
|
9191
|
+
estimated: p && n && d ? (n - a) / p : void 0,
|
|
9176
9192
|
event: o,
|
|
9177
9193
|
lengthComputable: n != null,
|
|
9178
9194
|
[e ? "download" : "upload"]: !0
|
|
@@ -9186,16 +9202,16 @@ const lt = (r, e, t = 3) => {
|
|
|
9186
9202
|
total: r,
|
|
9187
9203
|
loaded: i
|
|
9188
9204
|
}), e[1]];
|
|
9189
|
-
},
|
|
9190
|
-
new URL(
|
|
9191
|
-
|
|
9192
|
-
) : () => !0, Xo =
|
|
9205
|
+
}, gr = (r) => (...e) => c.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)))(
|
|
9206
|
+
new URL(q.origin),
|
|
9207
|
+
q.navigator && /(msie|trident)/i.test(q.navigator.userAgent)
|
|
9208
|
+
) : () => !0, Xo = q.hasStandardBrowserEnv ? (
|
|
9193
9209
|
// Standard browser envs support document.cookie
|
|
9194
9210
|
{
|
|
9195
9211
|
write(r, e, t, i, s, o, a) {
|
|
9196
9212
|
if (typeof document > "u") return;
|
|
9197
9213
|
const n = [`${r}=${encodeURIComponent(e)}`];
|
|
9198
|
-
|
|
9214
|
+
c.isNumber(t) && n.push(`expires=${new Date(t).toUTCString()}`), c.isString(i) && n.push(`path=${i}`), c.isString(s) && n.push(`domain=${s}`), o === !0 && n.push("secure"), c.isString(a) && n.push(`SameSite=${a}`), document.cookie = n.join("; ");
|
|
9199
9215
|
},
|
|
9200
9216
|
read(r) {
|
|
9201
9217
|
if (typeof document > "u") return null;
|
|
@@ -9228,36 +9244,36 @@ function Kr(r, e, t) {
|
|
|
9228
9244
|
let i = !Go(e);
|
|
9229
9245
|
return r && (i || t == !1) ? Qo(r, e) : e;
|
|
9230
9246
|
}
|
|
9231
|
-
const
|
|
9247
|
+
const fr = (r) => r instanceof W ? { ...r } : r;
|
|
9232
9248
|
function ye(r, e) {
|
|
9233
9249
|
e = e || {};
|
|
9234
9250
|
const t = {};
|
|
9235
|
-
function i(p,
|
|
9236
|
-
return
|
|
9237
|
-
}
|
|
9238
|
-
function s(p,
|
|
9239
|
-
if (
|
|
9240
|
-
if (!
|
|
9241
|
-
return i(void 0, p, h,
|
|
9242
|
-
} else return i(p,
|
|
9243
|
-
}
|
|
9244
|
-
function o(p,
|
|
9245
|
-
if (!
|
|
9246
|
-
return i(void 0,
|
|
9247
|
-
}
|
|
9248
|
-
function a(p,
|
|
9249
|
-
if (
|
|
9250
|
-
if (!
|
|
9251
|
+
function i(p, d, h, b) {
|
|
9252
|
+
return c.isPlainObject(p) && c.isPlainObject(d) ? c.merge.call({ caseless: b }, p, d) : c.isPlainObject(d) ? c.merge({}, d) : c.isArray(d) ? d.slice() : d;
|
|
9253
|
+
}
|
|
9254
|
+
function s(p, d, h, b) {
|
|
9255
|
+
if (c.isUndefined(d)) {
|
|
9256
|
+
if (!c.isUndefined(p))
|
|
9257
|
+
return i(void 0, p, h, b);
|
|
9258
|
+
} else return i(p, d, h, b);
|
|
9259
|
+
}
|
|
9260
|
+
function o(p, d) {
|
|
9261
|
+
if (!c.isUndefined(d))
|
|
9262
|
+
return i(void 0, d);
|
|
9263
|
+
}
|
|
9264
|
+
function a(p, d) {
|
|
9265
|
+
if (c.isUndefined(d)) {
|
|
9266
|
+
if (!c.isUndefined(p))
|
|
9251
9267
|
return i(void 0, p);
|
|
9252
|
-
} else return i(void 0,
|
|
9268
|
+
} else return i(void 0, d);
|
|
9253
9269
|
}
|
|
9254
|
-
function n(p,
|
|
9270
|
+
function n(p, d, h) {
|
|
9255
9271
|
if (h in e)
|
|
9256
|
-
return i(p,
|
|
9272
|
+
return i(p, d);
|
|
9257
9273
|
if (h in r)
|
|
9258
9274
|
return i(void 0, p);
|
|
9259
9275
|
}
|
|
9260
|
-
const
|
|
9276
|
+
const l = {
|
|
9261
9277
|
url: o,
|
|
9262
9278
|
method: o,
|
|
9263
9279
|
data: o,
|
|
@@ -9286,91 +9302,91 @@ function ye(r, e) {
|
|
|
9286
9302
|
socketPath: a,
|
|
9287
9303
|
responseEncoding: a,
|
|
9288
9304
|
validateStatus: n,
|
|
9289
|
-
headers: (p,
|
|
9305
|
+
headers: (p, d, h) => s(fr(p), fr(d), h, !0)
|
|
9290
9306
|
};
|
|
9291
|
-
return
|
|
9292
|
-
const h = d
|
|
9293
|
-
|
|
9307
|
+
return c.forEach(Object.keys({ ...r, ...e }), function(d) {
|
|
9308
|
+
const h = l[d] || s, b = h(r[d], e[d], d);
|
|
9309
|
+
c.isUndefined(b) && h !== n || (t[d] = b);
|
|
9294
9310
|
}), t;
|
|
9295
9311
|
}
|
|
9296
9312
|
const Jr = (r) => {
|
|
9297
9313
|
const e = ye({}, r);
|
|
9298
9314
|
let { data: t, withXSRFToken: i, xsrfHeaderName: s, xsrfCookieName: o, headers: a, auth: n } = e;
|
|
9299
|
-
if (e.headers = a =
|
|
9315
|
+
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
9316
|
"Authorization",
|
|
9301
9317
|
"Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
|
|
9302
|
-
),
|
|
9303
|
-
if (
|
|
9318
|
+
), c.isFormData(t)) {
|
|
9319
|
+
if (q.hasStandardBrowserEnv || q.hasStandardBrowserWebWorkerEnv)
|
|
9304
9320
|
a.setContentType(void 0);
|
|
9305
|
-
else if (
|
|
9306
|
-
const
|
|
9307
|
-
Object.entries(
|
|
9308
|
-
p.includes(
|
|
9321
|
+
else if (c.isFunction(t.getHeaders)) {
|
|
9322
|
+
const l = t.getHeaders(), p = ["content-type", "content-length"];
|
|
9323
|
+
Object.entries(l).forEach(([d, h]) => {
|
|
9324
|
+
p.includes(d.toLowerCase()) && a.set(d, h);
|
|
9309
9325
|
});
|
|
9310
9326
|
}
|
|
9311
9327
|
}
|
|
9312
|
-
if (
|
|
9313
|
-
const
|
|
9314
|
-
|
|
9328
|
+
if (q.hasStandardBrowserEnv && (i && c.isFunction(i) && (i = i(e)), i || i !== !1 && Jo(e.url))) {
|
|
9329
|
+
const l = s && o && Xo.read(o);
|
|
9330
|
+
l && a.set(s, l);
|
|
9315
9331
|
}
|
|
9316
9332
|
return e;
|
|
9317
9333
|
}, ea = typeof XMLHttpRequest < "u", ta = ea && function(r) {
|
|
9318
9334
|
return new Promise(function(t, i) {
|
|
9319
9335
|
const s = Jr(r);
|
|
9320
9336
|
let o = s.data;
|
|
9321
|
-
const a =
|
|
9322
|
-
let { responseType: n, onUploadProgress:
|
|
9337
|
+
const a = W.from(s.headers).normalize();
|
|
9338
|
+
let { responseType: n, onUploadProgress: l, onDownloadProgress: p } = s, d, h, b, y, g;
|
|
9323
9339
|
function v() {
|
|
9324
|
-
y && y(),
|
|
9340
|
+
y && y(), g && g(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
|
|
9325
9341
|
}
|
|
9326
|
-
let
|
|
9327
|
-
|
|
9342
|
+
let m = new XMLHttpRequest();
|
|
9343
|
+
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
9328
9344
|
function x() {
|
|
9329
|
-
if (!
|
|
9345
|
+
if (!m)
|
|
9330
9346
|
return;
|
|
9331
|
-
const
|
|
9332
|
-
"getAllResponseHeaders" in
|
|
9333
|
-
),
|
|
9334
|
-
data: !n || n === "text" || n === "json" ?
|
|
9335
|
-
status:
|
|
9336
|
-
statusText:
|
|
9337
|
-
headers:
|
|
9347
|
+
const C = W.from(
|
|
9348
|
+
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
9349
|
+
), B = {
|
|
9350
|
+
data: !n || n === "text" || n === "json" ? m.responseText : m.response,
|
|
9351
|
+
status: m.status,
|
|
9352
|
+
statusText: m.statusText,
|
|
9353
|
+
headers: C,
|
|
9338
9354
|
config: r,
|
|
9339
|
-
request:
|
|
9355
|
+
request: m
|
|
9340
9356
|
};
|
|
9341
9357
|
Wr(function(J) {
|
|
9342
9358
|
t(J), v();
|
|
9343
9359
|
}, function(J) {
|
|
9344
9360
|
i(J), v();
|
|
9345
|
-
},
|
|
9346
|
-
}
|
|
9347
|
-
"onloadend" in
|
|
9348
|
-
!
|
|
9349
|
-
},
|
|
9350
|
-
|
|
9351
|
-
},
|
|
9352
|
-
const
|
|
9353
|
-
he.event = T || null, i(he),
|
|
9354
|
-
},
|
|
9361
|
+
}, B), m = null;
|
|
9362
|
+
}
|
|
9363
|
+
"onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
|
|
9364
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
9365
|
+
}, m.onabort = function() {
|
|
9366
|
+
m && (i(new $("Request aborted", $.ECONNABORTED, r, m)), m = null);
|
|
9367
|
+
}, m.onerror = function(T) {
|
|
9368
|
+
const B = T && T.message ? T.message : "Network Error", he = new $(B, $.ERR_NETWORK, r, m);
|
|
9369
|
+
he.event = T || null, i(he), m = null;
|
|
9370
|
+
}, m.ontimeout = function() {
|
|
9355
9371
|
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
9356
|
-
const
|
|
9372
|
+
const B = s.transitional || Vr;
|
|
9357
9373
|
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), i(new $(
|
|
9358
9374
|
T,
|
|
9359
|
-
|
|
9375
|
+
B.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
9360
9376
|
r,
|
|
9361
|
-
|
|
9362
|
-
)),
|
|
9363
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
9364
|
-
|
|
9365
|
-
}),
|
|
9366
|
-
|
|
9367
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
9368
|
-
const
|
|
9369
|
-
if (
|
|
9370
|
-
i(new $("Unsupported protocol " +
|
|
9377
|
+
m
|
|
9378
|
+
)), m = null;
|
|
9379
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && c.forEach(a.toJSON(), function(T, B) {
|
|
9380
|
+
m.setRequestHeader(B, T);
|
|
9381
|
+
}), c.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), p && ([b, g] = lt(p, !0), m.addEventListener("progress", b)), l && m.upload && ([h, y] = lt(l), m.upload.addEventListener("progress", h), m.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (d = (C) => {
|
|
9382
|
+
m && (i(!C || C.type ? new Re(null, r, m) : C), m.abort(), m = null);
|
|
9383
|
+
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
9384
|
+
const _ = Yo(s.url);
|
|
9385
|
+
if (_ && q.protocols.indexOf(_) === -1) {
|
|
9386
|
+
i(new $("Unsupported protocol " + _ + ":", $.ERR_BAD_REQUEST, r));
|
|
9371
9387
|
return;
|
|
9372
9388
|
}
|
|
9373
|
-
|
|
9389
|
+
m.send(o || null);
|
|
9374
9390
|
});
|
|
9375
9391
|
}, ra = (r, e) => {
|
|
9376
9392
|
const { length: t } = r = r ? r.filter(Boolean) : [];
|
|
@@ -9379,8 +9395,8 @@ const Jr = (r) => {
|
|
|
9379
9395
|
const o = function(p) {
|
|
9380
9396
|
if (!s) {
|
|
9381
9397
|
s = !0, n();
|
|
9382
|
-
const
|
|
9383
|
-
i.abort(
|
|
9398
|
+
const d = p instanceof Error ? p : this.reason;
|
|
9399
|
+
i.abort(d instanceof $ ? d : new Re(d instanceof Error ? d.message : d));
|
|
9384
9400
|
}
|
|
9385
9401
|
};
|
|
9386
9402
|
let a = e && setTimeout(() => {
|
|
@@ -9392,8 +9408,8 @@ const Jr = (r) => {
|
|
|
9392
9408
|
}), r = null);
|
|
9393
9409
|
};
|
|
9394
9410
|
r.forEach((p) => p.addEventListener("abort", o));
|
|
9395
|
-
const { signal:
|
|
9396
|
-
return
|
|
9411
|
+
const { signal: l } = i;
|
|
9412
|
+
return l.unsubscribe = () => c.asap(n), l;
|
|
9397
9413
|
}
|
|
9398
9414
|
}, sa = function* (r, e) {
|
|
9399
9415
|
let t = r.byteLength;
|
|
@@ -9423,177 +9439,177 @@ const Jr = (r) => {
|
|
|
9423
9439
|
} finally {
|
|
9424
9440
|
await e.cancel();
|
|
9425
9441
|
}
|
|
9426
|
-
},
|
|
9442
|
+
}, mr = (r, e, t, i) => {
|
|
9427
9443
|
const s = ia(r, e);
|
|
9428
|
-
let o = 0, a, n = (
|
|
9429
|
-
a || (a = !0, i && i(
|
|
9444
|
+
let o = 0, a, n = (l) => {
|
|
9445
|
+
a || (a = !0, i && i(l));
|
|
9430
9446
|
};
|
|
9431
9447
|
return new ReadableStream({
|
|
9432
|
-
async pull(
|
|
9448
|
+
async pull(l) {
|
|
9433
9449
|
try {
|
|
9434
|
-
const { done: p, value:
|
|
9450
|
+
const { done: p, value: d } = await s.next();
|
|
9435
9451
|
if (p) {
|
|
9436
|
-
n(),
|
|
9452
|
+
n(), l.close();
|
|
9437
9453
|
return;
|
|
9438
9454
|
}
|
|
9439
|
-
let h =
|
|
9455
|
+
let h = d.byteLength;
|
|
9440
9456
|
if (t) {
|
|
9441
|
-
let
|
|
9442
|
-
t(
|
|
9457
|
+
let b = o += h;
|
|
9458
|
+
t(b);
|
|
9443
9459
|
}
|
|
9444
|
-
|
|
9460
|
+
l.enqueue(new Uint8Array(d));
|
|
9445
9461
|
} catch (p) {
|
|
9446
9462
|
throw n(p), p;
|
|
9447
9463
|
}
|
|
9448
9464
|
},
|
|
9449
|
-
cancel(
|
|
9450
|
-
return n(
|
|
9465
|
+
cancel(l) {
|
|
9466
|
+
return n(l), s.return();
|
|
9451
9467
|
}
|
|
9452
9468
|
}, {
|
|
9453
9469
|
highWaterMark: 2
|
|
9454
9470
|
});
|
|
9455
|
-
}, br = 64 * 1024, { isFunction: tt } =
|
|
9471
|
+
}, br = 64 * 1024, { isFunction: tt } = c, aa = (({ Request: r, Response: e }) => ({
|
|
9456
9472
|
Request: r,
|
|
9457
9473
|
Response: e
|
|
9458
|
-
}))(
|
|
9474
|
+
}))(c.global), {
|
|
9459
9475
|
ReadableStream: vr,
|
|
9460
9476
|
TextEncoder: yr
|
|
9461
|
-
} =
|
|
9477
|
+
} = c.global, wr = (r, ...e) => {
|
|
9462
9478
|
try {
|
|
9463
9479
|
return !!r(...e);
|
|
9464
9480
|
} catch {
|
|
9465
9481
|
return !1;
|
|
9466
9482
|
}
|
|
9467
9483
|
}, na = (r) => {
|
|
9468
|
-
r =
|
|
9484
|
+
r = c.merge.call({
|
|
9469
9485
|
skipUndefined: !0
|
|
9470
9486
|
}, aa, r);
|
|
9471
9487
|
const { fetch: e, Request: t, Response: i } = r, s = e ? tt(e) : typeof fetch == "function", o = tt(t), a = tt(i);
|
|
9472
9488
|
if (!s)
|
|
9473
9489
|
return !1;
|
|
9474
|
-
const n = s && tt(vr),
|
|
9475
|
-
let
|
|
9476
|
-
const v = new t(
|
|
9490
|
+
const n = s && tt(vr), l = s && (typeof yr == "function" ? /* @__PURE__ */ ((g) => (v) => g.encode(v))(new yr()) : async (g) => new Uint8Array(await new t(g).arrayBuffer())), p = o && n && wr(() => {
|
|
9491
|
+
let g = !1;
|
|
9492
|
+
const v = new t(q.origin, {
|
|
9477
9493
|
body: new vr(),
|
|
9478
9494
|
method: "POST",
|
|
9479
9495
|
get duplex() {
|
|
9480
|
-
return
|
|
9496
|
+
return g = !0, "half";
|
|
9481
9497
|
}
|
|
9482
9498
|
}).headers.has("Content-Type");
|
|
9483
|
-
return
|
|
9484
|
-
}),
|
|
9485
|
-
stream:
|
|
9499
|
+
return g && !v;
|
|
9500
|
+
}), d = a && n && wr(() => c.isReadableStream(new i("").body)), h = {
|
|
9501
|
+
stream: d && ((g) => g.body)
|
|
9486
9502
|
};
|
|
9487
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9488
|
-
!h[
|
|
9489
|
-
let x = v && v[
|
|
9503
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
9504
|
+
!h[g] && (h[g] = (v, m) => {
|
|
9505
|
+
let x = v && v[g];
|
|
9490
9506
|
if (x)
|
|
9491
9507
|
return x.call(v);
|
|
9492
|
-
throw new $(`Response type '${
|
|
9508
|
+
throw new $(`Response type '${g}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
9493
9509
|
});
|
|
9494
9510
|
});
|
|
9495
|
-
const
|
|
9496
|
-
if (
|
|
9511
|
+
const b = async (g) => {
|
|
9512
|
+
if (g == null)
|
|
9497
9513
|
return 0;
|
|
9498
|
-
if (
|
|
9499
|
-
return
|
|
9500
|
-
if (
|
|
9501
|
-
return (await new t(
|
|
9514
|
+
if (c.isBlob(g))
|
|
9515
|
+
return g.size;
|
|
9516
|
+
if (c.isSpecCompliantForm(g))
|
|
9517
|
+
return (await new t(q.origin, {
|
|
9502
9518
|
method: "POST",
|
|
9503
|
-
body:
|
|
9519
|
+
body: g
|
|
9504
9520
|
}).arrayBuffer()).byteLength;
|
|
9505
|
-
if (
|
|
9506
|
-
return
|
|
9507
|
-
if (
|
|
9508
|
-
return (await
|
|
9509
|
-
}, y = async (
|
|
9510
|
-
const
|
|
9511
|
-
return
|
|
9521
|
+
if (c.isArrayBufferView(g) || c.isArrayBuffer(g))
|
|
9522
|
+
return g.byteLength;
|
|
9523
|
+
if (c.isURLSearchParams(g) && (g = g + ""), c.isString(g))
|
|
9524
|
+
return (await l(g)).byteLength;
|
|
9525
|
+
}, y = async (g, v) => {
|
|
9526
|
+
const m = c.toFiniteNumber(g.getContentLength());
|
|
9527
|
+
return m ?? b(v);
|
|
9512
9528
|
};
|
|
9513
|
-
return async (
|
|
9529
|
+
return async (g) => {
|
|
9514
9530
|
let {
|
|
9515
9531
|
url: v,
|
|
9516
|
-
method:
|
|
9532
|
+
method: m,
|
|
9517
9533
|
data: x,
|
|
9518
|
-
signal:
|
|
9519
|
-
cancelToken:
|
|
9534
|
+
signal: _,
|
|
9535
|
+
cancelToken: C,
|
|
9520
9536
|
timeout: T,
|
|
9521
|
-
onDownloadProgress:
|
|
9537
|
+
onDownloadProgress: B,
|
|
9522
9538
|
onUploadProgress: he,
|
|
9523
9539
|
responseType: J,
|
|
9524
9540
|
headers: bt,
|
|
9525
9541
|
withCredentials: Ge = "same-origin",
|
|
9526
|
-
fetchOptions:
|
|
9527
|
-
} = Jr(
|
|
9542
|
+
fetchOptions: Ft
|
|
9543
|
+
} = Jr(g), jt = e || fetch;
|
|
9528
9544
|
J = J ? (J + "").toLowerCase() : "text";
|
|
9529
|
-
let Qe = ra([
|
|
9545
|
+
let Qe = ra([_, C && C.toAbortSignal()], T), ze = null;
|
|
9530
9546
|
const pe = Qe && Qe.unsubscribe && (() => {
|
|
9531
9547
|
Qe.unsubscribe();
|
|
9532
9548
|
});
|
|
9533
9549
|
let Vt;
|
|
9534
9550
|
try {
|
|
9535
|
-
if (he && p &&
|
|
9551
|
+
if (he && p && m !== "get" && m !== "head" && (Vt = await y(bt, x)) !== 0) {
|
|
9536
9552
|
let le = new t(v, {
|
|
9537
9553
|
method: "POST",
|
|
9538
9554
|
body: x,
|
|
9539
9555
|
duplex: "half"
|
|
9540
9556
|
}), xe;
|
|
9541
|
-
if (
|
|
9557
|
+
if (c.isFormData(x) && (xe = le.headers.get("content-type")) && bt.setContentType(xe), le.body) {
|
|
9542
9558
|
const [vt, et] = ur(
|
|
9543
9559
|
Vt,
|
|
9544
|
-
lt(
|
|
9560
|
+
lt(gr(he))
|
|
9545
9561
|
);
|
|
9546
|
-
x =
|
|
9562
|
+
x = mr(le.body, br, vt, et);
|
|
9547
9563
|
}
|
|
9548
9564
|
}
|
|
9549
|
-
|
|
9565
|
+
c.isString(Ge) || (Ge = Ge ? "include" : "omit");
|
|
9550
9566
|
const re = o && "credentials" in t.prototype, Zt = {
|
|
9551
|
-
...
|
|
9567
|
+
...Ft,
|
|
9552
9568
|
signal: Qe,
|
|
9553
|
-
method:
|
|
9569
|
+
method: m.toUpperCase(),
|
|
9554
9570
|
headers: bt.normalize().toJSON(),
|
|
9555
9571
|
body: x,
|
|
9556
9572
|
duplex: "half",
|
|
9557
9573
|
credentials: re ? Ge : void 0
|
|
9558
9574
|
};
|
|
9559
9575
|
ze = o && new t(v, Zt);
|
|
9560
|
-
let ne = await (o ? jt(ze,
|
|
9561
|
-
const Yt =
|
|
9562
|
-
if (
|
|
9576
|
+
let ne = await (o ? jt(ze, Ft) : jt(v, Zt));
|
|
9577
|
+
const Yt = d && (J === "stream" || J === "response");
|
|
9578
|
+
if (d && (B || Yt && pe)) {
|
|
9563
9579
|
const le = {};
|
|
9564
9580
|
["status", "statusText", "headers"].forEach((Wt) => {
|
|
9565
9581
|
le[Wt] = ne[Wt];
|
|
9566
9582
|
});
|
|
9567
|
-
const xe =
|
|
9583
|
+
const xe = c.toFiniteNumber(ne.headers.get("content-length")), [vt, et] = B && ur(
|
|
9568
9584
|
xe,
|
|
9569
|
-
lt(
|
|
9585
|
+
lt(gr(B), !0)
|
|
9570
9586
|
) || [];
|
|
9571
9587
|
ne = new i(
|
|
9572
|
-
|
|
9588
|
+
mr(ne.body, br, vt, () => {
|
|
9573
9589
|
et && et(), pe && pe();
|
|
9574
9590
|
}),
|
|
9575
9591
|
le
|
|
9576
9592
|
);
|
|
9577
9593
|
}
|
|
9578
9594
|
J = J || "text";
|
|
9579
|
-
let ts = await h[
|
|
9595
|
+
let ts = await h[c.findKey(h, J) || "text"](ne, g);
|
|
9580
9596
|
return !Yt && pe && pe(), await new Promise((le, xe) => {
|
|
9581
9597
|
Wr(le, xe, {
|
|
9582
9598
|
data: ts,
|
|
9583
|
-
headers:
|
|
9599
|
+
headers: W.from(ne.headers),
|
|
9584
9600
|
status: ne.status,
|
|
9585
9601
|
statusText: ne.statusText,
|
|
9586
|
-
config:
|
|
9602
|
+
config: g,
|
|
9587
9603
|
request: ze
|
|
9588
9604
|
});
|
|
9589
9605
|
});
|
|
9590
9606
|
} catch (re) {
|
|
9591
9607
|
throw pe && pe(), re && re.name === "TypeError" && /Load failed|fetch/i.test(re.message) ? Object.assign(
|
|
9592
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
9608
|
+
new $("Network Error", $.ERR_NETWORK, g, ze),
|
|
9593
9609
|
{
|
|
9594
9610
|
cause: re.cause || re
|
|
9595
9611
|
}
|
|
9596
|
-
) : $.from(re, re && re.code,
|
|
9612
|
+
) : $.from(re, re && re.code, g, ze);
|
|
9597
9613
|
}
|
|
9598
9614
|
};
|
|
9599
9615
|
}, la = /* @__PURE__ */ new Map(), Xr = (r) => {
|
|
@@ -9603,9 +9619,9 @@ const Jr = (r) => {
|
|
|
9603
9619
|
s,
|
|
9604
9620
|
t
|
|
9605
9621
|
];
|
|
9606
|
-
let a = o.length, n = a,
|
|
9622
|
+
let a = o.length, n = a, l, p, d = la;
|
|
9607
9623
|
for (; n--; )
|
|
9608
|
-
|
|
9624
|
+
l = o[n], p = d.get(l), p === void 0 && d.set(l, p = n ? /* @__PURE__ */ new Map() : na(e)), d = p;
|
|
9609
9625
|
return p;
|
|
9610
9626
|
};
|
|
9611
9627
|
Xr();
|
|
@@ -9616,7 +9632,7 @@ const qt = {
|
|
|
9616
9632
|
get: Xr
|
|
9617
9633
|
}
|
|
9618
9634
|
};
|
|
9619
|
-
|
|
9635
|
+
c.forEach(qt, (r, e) => {
|
|
9620
9636
|
if (r) {
|
|
9621
9637
|
try {
|
|
9622
9638
|
Object.defineProperty(r, "name", { value: e });
|
|
@@ -9625,9 +9641,9 @@ l.forEach(qt, (r, e) => {
|
|
|
9625
9641
|
Object.defineProperty(r, "adapterName", { value: e });
|
|
9626
9642
|
}
|
|
9627
9643
|
});
|
|
9628
|
-
const xr = (r) => `- ${r}`, ca = (r) =>
|
|
9644
|
+
const xr = (r) => `- ${r}`, ca = (r) => c.isFunction(r) || r === null || r === !1;
|
|
9629
9645
|
function da(r, e) {
|
|
9630
|
-
r =
|
|
9646
|
+
r = c.isArray(r) ? r : [r];
|
|
9631
9647
|
const { length: t } = r;
|
|
9632
9648
|
let i, s;
|
|
9633
9649
|
const o = {};
|
|
@@ -9636,13 +9652,13 @@ function da(r, e) {
|
|
|
9636
9652
|
let n;
|
|
9637
9653
|
if (s = i, !ca(i) && (s = qt[(n = String(i)).toLowerCase()], s === void 0))
|
|
9638
9654
|
throw new $(`Unknown adapter '${n}'`);
|
|
9639
|
-
if (s && (
|
|
9655
|
+
if (s && (c.isFunction(s) || (s = s.get(e))))
|
|
9640
9656
|
break;
|
|
9641
9657
|
o[n || "#" + a] = s;
|
|
9642
9658
|
}
|
|
9643
9659
|
if (!s) {
|
|
9644
9660
|
const a = Object.entries(o).map(
|
|
9645
|
-
([
|
|
9661
|
+
([l, p]) => `adapter ${l} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
9646
9662
|
);
|
|
9647
9663
|
let n = t ? a.length > 1 ? `since :
|
|
9648
9664
|
` + a.map(xr).join(`
|
|
@@ -9671,7 +9687,7 @@ function kt(r) {
|
|
|
9671
9687
|
throw new Re(null, r);
|
|
9672
9688
|
}
|
|
9673
9689
|
function $r(r) {
|
|
9674
|
-
return kt(r), r.headers =
|
|
9690
|
+
return kt(r), r.headers = W.from(r.headers), r.data = $t.call(
|
|
9675
9691
|
r,
|
|
9676
9692
|
r.transformRequest
|
|
9677
9693
|
), ["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 +9695,23 @@ function $r(r) {
|
|
|
9679
9695
|
r,
|
|
9680
9696
|
r.transformResponse,
|
|
9681
9697
|
i
|
|
9682
|
-
), i.headers =
|
|
9698
|
+
), i.headers = W.from(i.headers), i;
|
|
9683
9699
|
}, function(i) {
|
|
9684
9700
|
return Yr(i) || (kt(r), i && i.response && (i.response.data = $t.call(
|
|
9685
9701
|
r,
|
|
9686
9702
|
r.transformResponse,
|
|
9687
9703
|
i.response
|
|
9688
|
-
), i.response.headers =
|
|
9704
|
+
), i.response.headers = W.from(i.response.headers))), Promise.reject(i);
|
|
9689
9705
|
});
|
|
9690
9706
|
}
|
|
9691
|
-
const Qr = "1.13.2",
|
|
9707
|
+
const Qr = "1.13.2", mt = {};
|
|
9692
9708
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((r, e) => {
|
|
9693
|
-
|
|
9709
|
+
mt[r] = function(i) {
|
|
9694
9710
|
return typeof i === r || "a" + (e < 1 ? "n " : " ") + r;
|
|
9695
9711
|
};
|
|
9696
9712
|
});
|
|
9697
9713
|
const kr = {};
|
|
9698
|
-
|
|
9714
|
+
mt.transitional = function(e, t, i) {
|
|
9699
9715
|
function s(o, a) {
|
|
9700
9716
|
return "[Axios v" + Qr + "] Transitional option '" + o + "'" + a + (i ? ". " + i : "");
|
|
9701
9717
|
}
|
|
@@ -9708,7 +9724,7 @@ gt.transitional = function(e, t, i) {
|
|
|
9708
9724
|
return t && !kr[a] && (kr[a] = !0), e ? e(o, a, n) : !0;
|
|
9709
9725
|
};
|
|
9710
9726
|
};
|
|
9711
|
-
|
|
9727
|
+
mt.spelling = function(e) {
|
|
9712
9728
|
return (t, i) => !0;
|
|
9713
9729
|
};
|
|
9714
9730
|
function ha(r, e, t) {
|
|
@@ -9719,9 +9735,9 @@ function ha(r, e, t) {
|
|
|
9719
9735
|
for (; s-- > 0; ) {
|
|
9720
9736
|
const o = i[s], a = e[o];
|
|
9721
9737
|
if (a) {
|
|
9722
|
-
const n = r[o],
|
|
9723
|
-
if (
|
|
9724
|
-
throw new $("option " + o + " must be " +
|
|
9738
|
+
const n = r[o], l = n === void 0 || a(n, o, r);
|
|
9739
|
+
if (l !== !0)
|
|
9740
|
+
throw new $("option " + o + " must be " + l, $.ERR_BAD_OPTION_VALUE);
|
|
9725
9741
|
continue;
|
|
9726
9742
|
}
|
|
9727
9743
|
if (t !== !0)
|
|
@@ -9730,7 +9746,7 @@ function ha(r, e, t) {
|
|
|
9730
9746
|
}
|
|
9731
9747
|
const ot = {
|
|
9732
9748
|
assertOptions: ha,
|
|
9733
|
-
validators:
|
|
9749
|
+
validators: mt
|
|
9734
9750
|
}, se = ot.validators;
|
|
9735
9751
|
class be {
|
|
9736
9752
|
constructor(e) {
|
|
@@ -9771,7 +9787,7 @@ class be {
|
|
|
9771
9787
|
silentJSONParsing: se.transitional(se.boolean),
|
|
9772
9788
|
forcedJSONParsing: se.transitional(se.boolean),
|
|
9773
9789
|
clarifyTimeoutError: se.transitional(se.boolean)
|
|
9774
|
-
}, !1), s != null && (
|
|
9790
|
+
}, !1), s != null && (c.isFunction(s) ? t.paramsSerializer = {
|
|
9775
9791
|
serialize: s
|
|
9776
9792
|
} : ot.assertOptions(s, {
|
|
9777
9793
|
encode: se.function,
|
|
@@ -9780,51 +9796,51 @@ class be {
|
|
|
9780
9796
|
baseUrl: se.spelling("baseURL"),
|
|
9781
9797
|
withXsrfToken: se.spelling("withXSRFToken")
|
|
9782
9798
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
9783
|
-
let a = o &&
|
|
9799
|
+
let a = o && c.merge(
|
|
9784
9800
|
o.common,
|
|
9785
9801
|
o[t.method]
|
|
9786
9802
|
);
|
|
9787
|
-
o &&
|
|
9803
|
+
o && c.forEach(
|
|
9788
9804
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
9789
|
-
(
|
|
9790
|
-
delete o[
|
|
9805
|
+
(g) => {
|
|
9806
|
+
delete o[g];
|
|
9791
9807
|
}
|
|
9792
|
-
), t.headers =
|
|
9808
|
+
), t.headers = W.concat(a, o);
|
|
9793
9809
|
const n = [];
|
|
9794
|
-
let
|
|
9810
|
+
let l = !0;
|
|
9795
9811
|
this.interceptors.request.forEach(function(v) {
|
|
9796
|
-
typeof v.runWhen == "function" && v.runWhen(t) === !1 || (
|
|
9812
|
+
typeof v.runWhen == "function" && v.runWhen(t) === !1 || (l = l && v.synchronous, n.unshift(v.fulfilled, v.rejected));
|
|
9797
9813
|
});
|
|
9798
9814
|
const p = [];
|
|
9799
9815
|
this.interceptors.response.forEach(function(v) {
|
|
9800
9816
|
p.push(v.fulfilled, v.rejected);
|
|
9801
9817
|
});
|
|
9802
|
-
let
|
|
9803
|
-
if (!
|
|
9804
|
-
const
|
|
9805
|
-
for (
|
|
9806
|
-
|
|
9807
|
-
return
|
|
9808
|
-
}
|
|
9809
|
-
|
|
9818
|
+
let d, h = 0, b;
|
|
9819
|
+
if (!l) {
|
|
9820
|
+
const g = [$r.bind(this), void 0];
|
|
9821
|
+
for (g.unshift(...n), g.push(...p), b = g.length, d = Promise.resolve(t); h < b; )
|
|
9822
|
+
d = d.then(g[h++], g[h++]);
|
|
9823
|
+
return d;
|
|
9824
|
+
}
|
|
9825
|
+
b = n.length;
|
|
9810
9826
|
let y = t;
|
|
9811
|
-
for (; h <
|
|
9812
|
-
const
|
|
9827
|
+
for (; h < b; ) {
|
|
9828
|
+
const g = n[h++], v = n[h++];
|
|
9813
9829
|
try {
|
|
9814
|
-
y =
|
|
9815
|
-
} catch (
|
|
9816
|
-
v.call(this,
|
|
9830
|
+
y = g(y);
|
|
9831
|
+
} catch (m) {
|
|
9832
|
+
v.call(this, m);
|
|
9817
9833
|
break;
|
|
9818
9834
|
}
|
|
9819
9835
|
}
|
|
9820
9836
|
try {
|
|
9821
|
-
|
|
9822
|
-
} catch (
|
|
9823
|
-
return Promise.reject(
|
|
9837
|
+
d = $r.call(this, y);
|
|
9838
|
+
} catch (g) {
|
|
9839
|
+
return Promise.reject(g);
|
|
9824
9840
|
}
|
|
9825
|
-
for (h = 0,
|
|
9826
|
-
|
|
9827
|
-
return
|
|
9841
|
+
for (h = 0, b = p.length; h < b; )
|
|
9842
|
+
d = d.then(p[h++], p[h++]);
|
|
9843
|
+
return d;
|
|
9828
9844
|
}
|
|
9829
9845
|
getUri(e) {
|
|
9830
9846
|
e = ye(this.defaults, e);
|
|
@@ -9832,7 +9848,7 @@ class be {
|
|
|
9832
9848
|
return jr(t, e.params, e.paramsSerializer);
|
|
9833
9849
|
}
|
|
9834
9850
|
}
|
|
9835
|
-
|
|
9851
|
+
c.forEach(["delete", "get", "head", "options"], function(e) {
|
|
9836
9852
|
be.prototype[e] = function(t, i) {
|
|
9837
9853
|
return this.request(ye(i || {}, {
|
|
9838
9854
|
method: e,
|
|
@@ -9841,7 +9857,7 @@ l.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
9841
9857
|
}));
|
|
9842
9858
|
};
|
|
9843
9859
|
});
|
|
9844
|
-
|
|
9860
|
+
c.forEach(["post", "put", "patch"], function(e) {
|
|
9845
9861
|
function t(i) {
|
|
9846
9862
|
return function(o, a, n) {
|
|
9847
9863
|
return this.request(ye(n || {}, {
|
|
@@ -9856,7 +9872,7 @@ l.forEach(["post", "put", "patch"], function(e) {
|
|
|
9856
9872
|
}
|
|
9857
9873
|
be.prototype[e] = t(), be.prototype[e + "Form"] = t(!0);
|
|
9858
9874
|
});
|
|
9859
|
-
class
|
|
9875
|
+
class Ht {
|
|
9860
9876
|
constructor(e) {
|
|
9861
9877
|
if (typeof e != "function")
|
|
9862
9878
|
throw new TypeError("executor must be a function.");
|
|
@@ -9922,7 +9938,7 @@ class Ft {
|
|
|
9922
9938
|
static source() {
|
|
9923
9939
|
let e;
|
|
9924
9940
|
return {
|
|
9925
|
-
token: new
|
|
9941
|
+
token: new Ht(function(s) {
|
|
9926
9942
|
e = s;
|
|
9927
9943
|
}),
|
|
9928
9944
|
cancel: e
|
|
@@ -9935,7 +9951,7 @@ function pa(r) {
|
|
|
9935
9951
|
};
|
|
9936
9952
|
}
|
|
9937
9953
|
function ua(r) {
|
|
9938
|
-
return
|
|
9954
|
+
return c.isObject(r) && r.isAxiosError === !0;
|
|
9939
9955
|
}
|
|
9940
9956
|
const At = {
|
|
9941
9957
|
Continue: 100,
|
|
@@ -10013,17 +10029,17 @@ Object.entries(At).forEach(([r, e]) => {
|
|
|
10013
10029
|
});
|
|
10014
10030
|
function es(r) {
|
|
10015
10031
|
const e = new be(r), t = Or(be.prototype.request, e);
|
|
10016
|
-
return
|
|
10032
|
+
return c.extend(t, be.prototype, e, { allOwnKeys: !0 }), c.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(s) {
|
|
10017
10033
|
return es(ye(r, s));
|
|
10018
10034
|
}, t;
|
|
10019
10035
|
}
|
|
10020
10036
|
const P = es(Xe);
|
|
10021
10037
|
P.Axios = be;
|
|
10022
10038
|
P.CanceledError = Re;
|
|
10023
|
-
P.CancelToken =
|
|
10039
|
+
P.CancelToken = Ht;
|
|
10024
10040
|
P.isCancel = Yr;
|
|
10025
10041
|
P.VERSION = Qr;
|
|
10026
|
-
P.toFormData =
|
|
10042
|
+
P.toFormData = ft;
|
|
10027
10043
|
P.AxiosError = $;
|
|
10028
10044
|
P.Cancel = P.CanceledError;
|
|
10029
10045
|
P.all = function(e) {
|
|
@@ -10032,8 +10048,8 @@ P.all = function(e) {
|
|
|
10032
10048
|
P.spread = pa;
|
|
10033
10049
|
P.isAxiosError = ua;
|
|
10034
10050
|
P.mergeConfig = ye;
|
|
10035
|
-
P.AxiosHeaders =
|
|
10036
|
-
P.formToJSON = (r) => Zr(
|
|
10051
|
+
P.AxiosHeaders = W;
|
|
10052
|
+
P.formToJSON = (r) => Zr(c.isHTMLForm(r) ? new FormData(r) : r);
|
|
10037
10053
|
P.getAdapter = Gr.getAdapter;
|
|
10038
10054
|
P.HttpStatusCode = At;
|
|
10039
10055
|
P.default = P;
|
|
@@ -10073,9 +10089,9 @@ const ya = ({ baseUrl: r }) => {
|
|
|
10073
10089
|
"Content-Type": "application/json"
|
|
10074
10090
|
},
|
|
10075
10091
|
credentials: "include"
|
|
10076
|
-
}),
|
|
10077
|
-
if (n.headers.forEach((p,
|
|
10078
|
-
d
|
|
10092
|
+
}), l = {};
|
|
10093
|
+
if (n.headers.forEach((p, d) => {
|
|
10094
|
+
l[d] = p;
|
|
10079
10095
|
}), n.headers.get("content-type"), n.status === 400)
|
|
10080
10096
|
throw t = !0, await n.text(), new Error("No refresh token available");
|
|
10081
10097
|
if (!n.ok)
|
|
@@ -10106,15 +10122,15 @@ const ya = ({ baseUrl: r }) => {
|
|
|
10106
10122
|
), e;
|
|
10107
10123
|
};
|
|
10108
10124
|
function wa() {
|
|
10109
|
-
Us(), qs(),
|
|
10125
|
+
Us(), qs(), Fs(), Vs(), Ks(), Xs(), $i(), Si(), Ci(), Ai(), Di(), Oi(), Ys(), zi(), Ii(), Bi();
|
|
10110
10126
|
}
|
|
10111
10127
|
export {
|
|
10112
|
-
|
|
10128
|
+
E as AuthForm,
|
|
10113
10129
|
Sr as AuthRefreshError,
|
|
10114
10130
|
de as BaseButton,
|
|
10115
10131
|
Ce as BaseCard,
|
|
10116
10132
|
D as BaseDatePicker,
|
|
10117
|
-
|
|
10133
|
+
N as BaseDateTimePicker,
|
|
10118
10134
|
j as BaseDrawer,
|
|
10119
10135
|
Ee as BaseIcon,
|
|
10120
10136
|
G as BaseInput,
|
|
@@ -10130,7 +10146,7 @@ export {
|
|
|
10130
10146
|
wa as registerAll,
|
|
10131
10147
|
Us as registerAuthForm,
|
|
10132
10148
|
qs as registerBaseButton,
|
|
10133
|
-
|
|
10149
|
+
Fs as registerBaseCard,
|
|
10134
10150
|
Vs as registerBaseDatePicker,
|
|
10135
10151
|
Ks as registerBaseDateTimePicker,
|
|
10136
10152
|
Xs as registerBaseDrawer,
|