@cal.macconnachie/web-components 2.4.3 → 2.4.4
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 +3 -0
- package/dist/index.js +671 -645
- 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;
|
|
@@ -247,53 +247,53 @@ let $e = class extends HTMLElement {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
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
|
-
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(""),
|
|
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(""), Fe = (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
261
|
const c = r[n];
|
|
262
|
-
let
|
|
263
|
-
for (; b < c.length && (a.lastIndex = b, d = a.exec(c), d !== null); ) b = a.lastIndex, a === Me ? d[1] === "!--" ? a = er : d[1] !== void 0 ? a = tr : d[2] !== void 0 ? (Ar.test(d[2]) && (s = RegExp("</" + d[2], "g")), a = ue) : d[3] !== void 0 && (a = ue) : a === ue ? d[0] === ">" ? (a = s ?? Me,
|
|
262
|
+
let h, d, p = -1, b = 0;
|
|
263
|
+
for (; b < c.length && (a.lastIndex = b, d = a.exec(c), d !== null); ) b = a.lastIndex, a === Me ? d[1] === "!--" ? a = er : d[1] !== void 0 ? a = tr : d[2] !== void 0 ? (Ar.test(d[2]) && (s = RegExp("</" + d[2], "g")), a = ue) : d[3] !== void 0 && (a = ue) : a === ue ? d[0] === ">" ? (a = s ?? Me, p = -1) : d[1] === void 0 ? p = -2 : (p = a.lastIndex - d[2].length, h = 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 ? c + ps :
|
|
265
|
+
o += a === Me ? c + ps : p >= 0 ? (i.push(h), c.slice(0, p) + Cr + c.slice(p) + ce + y) : c + ce + (p === -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 qe {
|
|
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, c = this.parts, [
|
|
275
|
-
if (this.el =
|
|
276
|
-
const
|
|
277
|
-
|
|
274
|
+
const n = e.length - 1, c = this.parts, [h, d] = fs(e, t);
|
|
275
|
+
if (this.el = qe.createElement(h, i), fe.currentNode = this.el.content, t === 2 || t === 3) {
|
|
276
|
+
const p = this.el.content.firstChild;
|
|
277
|
+
p.replaceWith(...p.childNodes);
|
|
278
278
|
}
|
|
279
|
-
for (; (s =
|
|
279
|
+
for (; (s = fe.nextNode()) !== null && c.length < n; ) {
|
|
280
280
|
if (s.nodeType === 1) {
|
|
281
|
-
if (s.hasAttributes()) for (const
|
|
282
|
-
const b = d[a++], y = s.getAttribute(
|
|
283
|
-
c.push({ type: 1, index: o, name:
|
|
284
|
-
} else
|
|
281
|
+
if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Cr)) {
|
|
282
|
+
const b = d[a++], y = s.getAttribute(p).split(ce), u = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
c.push({ type: 1, index: o, name: u[2], strings: y, ctor: u[1] === "." ? bs : u[1] === "?" ? vs : u[1] === "@" ? ys : dt }), s.removeAttribute(p);
|
|
284
|
+
} else p.startsWith(ce) && (c.push({ type: 6, index: o }), s.removeAttribute(p));
|
|
285
285
|
if (Ar.test(s.tagName)) {
|
|
286
|
-
const
|
|
286
|
+
const p = s.textContent.split(ce), b = p.length - 1;
|
|
287
287
|
if (b > 0) {
|
|
288
288
|
s.textContent = nt ? nt.emptyScript : "";
|
|
289
|
-
for (let y = 0; y < b; y++) s.append(
|
|
290
|
-
s.append(
|
|
289
|
+
for (let y = 0; y < b; y++) s.append(p[y], Ne()), fe.nextNode(), c.push({ type: 2, index: ++o });
|
|
290
|
+
s.append(p[b], Ne());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
} else if (s.nodeType === 8) if (s.data === Er) c.push({ type: 2, index: o });
|
|
294
294
|
else {
|
|
295
|
-
let
|
|
296
|
-
for (; (
|
|
295
|
+
let p = -1;
|
|
296
|
+
for (; (p = s.data.indexOf(ce, p + 1)) !== -1; ) c.push({ type: 7, index: o }), p += ce.length - 1;
|
|
297
297
|
}
|
|
298
298
|
o++;
|
|
299
299
|
}
|
|
@@ -306,10 +306,10 @@ class Fe {
|
|
|
306
306
|
function ke(r, e, t = r, i) {
|
|
307
307
|
if (e === oe) return e;
|
|
308
308
|
let s = i !== void 0 ? t._$Co?.[i] : t._$Cl;
|
|
309
|
-
const o =
|
|
309
|
+
const o = Fe(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 =
|
|
324
|
+
fe.currentNode = s;
|
|
325
|
+
let o = fe.nextNode(), a = 0, n = 0, c = i[0];
|
|
326
326
|
for (; c !== void 0; ) {
|
|
327
327
|
if (a === c.index) {
|
|
328
|
-
let
|
|
329
|
-
c.type === 2 ?
|
|
328
|
+
let h;
|
|
329
|
+
c.type === 2 ? h = new _e(o, o.nextSibling, this, e) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (h = new ws(o, this, e)), this._$AV.push(h), c = i[++n];
|
|
330
330
|
}
|
|
331
|
-
a !== c?.index && (o =
|
|
331
|
+
a !== c?.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;
|
|
@@ -356,7 +356,7 @@ class _e {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, t = this) {
|
|
359
|
-
e = ke(this, e, t),
|
|
359
|
+
e = ke(this, e, t), Fe(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== oe && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : us(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -365,19 +365,19 @@ class _e {
|
|
|
365
365
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
366
366
|
}
|
|
367
367
|
_(e) {
|
|
368
|
-
this._$AH !== k &&
|
|
368
|
+
this._$AH !== k && Fe(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 = qe.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 qe(e)), t;
|
|
381
381
|
}
|
|
382
382
|
k(e) {
|
|
383
383
|
Rt(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -409,11 +409,11 @@ class dt {
|
|
|
409
409
|
_$AI(e, t = this, i, s) {
|
|
410
410
|
const o = this.strings;
|
|
411
411
|
let a = !1;
|
|
412
|
-
if (o === void 0) e = ke(this, e, t, 0), a = !
|
|
412
|
+
if (o === void 0) e = ke(this, e, t, 0), a = !Fe(e) || e !== this._$AH && e !== oe, a && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const n = e;
|
|
415
|
-
let c,
|
|
416
|
-
for (e = o[0], c = 0; c < o.length - 1; c++)
|
|
415
|
+
let c, h;
|
|
416
|
+
for (e = o[0], c = 0; c < o.length - 1; c++) h = ke(this, n[i + c], t, c), h === oe && (h = this._$AH[c]), a ||= !Fe(h) || h !== this._$AH[c], h === k ? e = k : e !== k && (e += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
|
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?.(qe, _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$;
|
|
@@ -520,17 +520,17 @@ const _s = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged
|
|
|
520
520
|
}
|
|
521
521
|
throw Error("Unsupported decorator location: " + i);
|
|
522
522
|
};
|
|
523
|
-
function
|
|
523
|
+
function g(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 g({ ...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 Z(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() {
|
|
@@ -569,13 +569,13 @@ const { I: As } = xs, or = () => document.createComment(""), Ie = (r, e, t) => {
|
|
|
569
569
|
if (o !== s || n) {
|
|
570
570
|
let c = t._$AA;
|
|
571
571
|
for (; c !== o; ) {
|
|
572
|
-
const
|
|
573
|
-
i.insertBefore(c, s), c =
|
|
572
|
+
const h = c.nextSibling;
|
|
573
|
+
i.insertBefore(c, s), c = h;
|
|
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) => {
|
|
@@ -601,28 +601,28 @@ const ar = (r, e, t) => {
|
|
|
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
603
|
const n = this.ut ??= [], c = [];
|
|
604
|
-
let
|
|
605
|
-
for (;
|
|
604
|
+
let h, d, p = 0, b = s.length - 1, y = 0, u = o.length - 1;
|
|
605
|
+
for (; p <= b && y <= u; ) if (s[p] === null) p++;
|
|
606
606
|
else if (s[b] === null) b--;
|
|
607
|
-
else if (n[
|
|
608
|
-
else if (n[b] === a[
|
|
609
|
-
else if (n[
|
|
610
|
-
else if (n[b] === a[y]) c[y] =
|
|
611
|
-
else if (
|
|
612
|
-
const v = d.get(a[y]),
|
|
613
|
-
if (
|
|
614
|
-
const x = Ie(r, s[
|
|
615
|
-
|
|
616
|
-
} else c[y] =
|
|
607
|
+
else if (n[p] === a[y]) c[y] = ge(s[p], o[y]), p++, y++;
|
|
608
|
+
else if (n[b] === a[u]) c[u] = ge(s[b], o[u]), b--, u--;
|
|
609
|
+
else if (n[p] === a[u]) c[u] = ge(s[p], o[u]), Ie(r, c[u + 1], s[p]), p++, u--;
|
|
610
|
+
else if (n[b] === a[y]) c[y] = ge(s[b], o[y]), Ie(r, s[p], s[b]), b--, y++;
|
|
611
|
+
else if (h === void 0 && (h = ar(a, y, u), d = ar(n, p, b)), h.has(n[p])) if (h.has(n[b])) {
|
|
612
|
+
const v = d.get(a[y]), m = v !== void 0 ? s[v] : null;
|
|
613
|
+
if (m === null) {
|
|
614
|
+
const x = Ie(r, s[p]);
|
|
615
|
+
ge(x, o[y]), c[y] = x;
|
|
616
|
+
} else c[y] = ge(m, o[y]), Ie(r, s[p], m), s[v] = null;
|
|
617
617
|
y++;
|
|
618
618
|
} else wt(s[b]), b--;
|
|
619
|
-
else wt(s[
|
|
620
|
-
for (; y <=
|
|
621
|
-
const v = Ie(r, c[
|
|
622
|
-
|
|
619
|
+
else wt(s[p]), p++;
|
|
620
|
+
for (; y <= u; ) {
|
|
621
|
+
const v = Ie(r, c[u + 1]);
|
|
622
|
+
ge(v, o[y]), c[y++] = v;
|
|
623
623
|
}
|
|
624
|
-
for (;
|
|
625
|
-
const v = s[
|
|
624
|
+
for (; p <= b; ) {
|
|
625
|
+
const v = s[p++];
|
|
626
626
|
v !== null && wt(v);
|
|
627
627
|
}
|
|
628
628
|
return this.ut = a, Ds(r, c), oe;
|
|
@@ -660,10 +660,10 @@ class L extends Ue {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
Dr([
|
|
663
|
-
|
|
663
|
+
g({ type: String, attribute: "data-theme", reflect: !0 })
|
|
664
664
|
], L.prototype, "theme");
|
|
665
665
|
Dr([
|
|
666
|
-
|
|
666
|
+
g({ type: String, attribute: "storage-key" })
|
|
667
667
|
], L.prototype, "storageKey");
|
|
668
668
|
const z = ({
|
|
669
669
|
name: r,
|
|
@@ -686,10 +686,10 @@ const z = ({
|
|
|
686
686
|
return {
|
|
687
687
|
login: async ({
|
|
688
688
|
email: d,
|
|
689
|
-
password:
|
|
689
|
+
password: p,
|
|
690
690
|
accessToken: b,
|
|
691
691
|
refreshToken: y,
|
|
692
|
-
idToken:
|
|
692
|
+
idToken: u
|
|
693
693
|
}) => {
|
|
694
694
|
const v = await fetch(`${r}${e.login}`, {
|
|
695
695
|
method: "POST",
|
|
@@ -699,15 +699,15 @@ const z = ({
|
|
|
699
699
|
credentials: "include",
|
|
700
700
|
body: JSON.stringify({
|
|
701
701
|
email: d,
|
|
702
|
-
password:
|
|
702
|
+
password: p,
|
|
703
703
|
accessToken: b,
|
|
704
704
|
refreshToken: y,
|
|
705
|
-
idToken:
|
|
705
|
+
idToken: u
|
|
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
|
},
|
|
@@ -720,24 +720,24 @@ const z = ({
|
|
|
720
720
|
credentials: "include"
|
|
721
721
|
});
|
|
722
722
|
if (!d.ok) {
|
|
723
|
-
const
|
|
724
|
-
throw new Error(
|
|
723
|
+
const p = await d.json();
|
|
724
|
+
throw new Error(p.message || p.error || "Logout failed");
|
|
725
725
|
}
|
|
726
726
|
return d.json();
|
|
727
727
|
},
|
|
728
728
|
refresh: async () => {
|
|
729
|
-
const d = `${r}${e.refresh}`.replace(/\/api\/api\//, "/api/"),
|
|
729
|
+
const d = `${r}${e.refresh}`.replace(/\/api\/api\//, "/api/"), p = await fetch(d, {
|
|
730
730
|
method: "POST",
|
|
731
731
|
headers: {
|
|
732
732
|
"Content-Type": "application/json"
|
|
733
733
|
},
|
|
734
734
|
credentials: "include"
|
|
735
735
|
});
|
|
736
|
-
if (!
|
|
737
|
-
const b = await
|
|
736
|
+
if (!p.ok) {
|
|
737
|
+
const b = await p.json();
|
|
738
738
|
throw new Error(b.message || b.error || "Failed to refresh token");
|
|
739
739
|
}
|
|
740
|
-
return
|
|
740
|
+
return p.json();
|
|
741
741
|
},
|
|
742
742
|
checkSession: async () => {
|
|
743
743
|
const d = await fetch(`${r}${e.checkSession}`, {
|
|
@@ -748,13 +748,13 @@ const z = ({
|
|
|
748
748
|
credentials: "include"
|
|
749
749
|
});
|
|
750
750
|
if (!d.ok) {
|
|
751
|
-
const
|
|
752
|
-
throw new Error(
|
|
751
|
+
const p = await d.json();
|
|
752
|
+
throw new Error(p.message || p.error || "No valid session");
|
|
753
753
|
}
|
|
754
754
|
return d.json();
|
|
755
755
|
},
|
|
756
756
|
requestRegisterOtp: async ({ email: d }) => {
|
|
757
|
-
const
|
|
757
|
+
const p = await fetch(`${r}${e.requestRegisterOtp}`, {
|
|
758
758
|
method: "POST",
|
|
759
759
|
headers: {
|
|
760
760
|
"Content-Type": "application/json"
|
|
@@ -764,21 +764,21 @@ const z = ({
|
|
|
764
764
|
email: d
|
|
765
765
|
})
|
|
766
766
|
});
|
|
767
|
-
if (!
|
|
768
|
-
const b = await
|
|
767
|
+
if (!p.ok) {
|
|
768
|
+
const b = await p.json();
|
|
769
769
|
throw new Error(b.message || b.error || "Failed to request OTP");
|
|
770
770
|
}
|
|
771
|
-
return
|
|
771
|
+
return p.json();
|
|
772
772
|
},
|
|
773
773
|
register: async ({
|
|
774
774
|
email: d,
|
|
775
|
-
password:
|
|
775
|
+
password: p,
|
|
776
776
|
phone_number: b,
|
|
777
777
|
family_name: y,
|
|
778
|
-
given_name:
|
|
778
|
+
given_name: u,
|
|
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"
|
|
@@ -786,21 +786,21 @@ const z = ({
|
|
|
786
786
|
credentials: "include",
|
|
787
787
|
body: JSON.stringify({
|
|
788
788
|
email: d,
|
|
789
|
-
password:
|
|
789
|
+
password: p,
|
|
790
790
|
phone_number: b,
|
|
791
791
|
family_name: y,
|
|
792
|
-
given_name:
|
|
792
|
+
given_name: u,
|
|
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
802
|
requestResetPassword: async ({ email: d }) => {
|
|
803
|
-
const
|
|
803
|
+
const p = await fetch(`${r}${e.requestResetPassword}`, {
|
|
804
804
|
method: "POST",
|
|
805
805
|
headers: {
|
|
806
806
|
"Content-Type": "application/json"
|
|
@@ -810,15 +810,15 @@ const z = ({
|
|
|
810
810
|
email: d
|
|
811
811
|
})
|
|
812
812
|
});
|
|
813
|
-
if (!
|
|
814
|
-
const b = await
|
|
813
|
+
if (!p.ok) {
|
|
814
|
+
const b = await p.json();
|
|
815
815
|
throw new Error(b.message || b.error || "Failed to request password reset");
|
|
816
816
|
}
|
|
817
|
-
return
|
|
817
|
+
return p.json();
|
|
818
818
|
},
|
|
819
819
|
resetPassword: async ({
|
|
820
820
|
email: d,
|
|
821
|
-
otp:
|
|
821
|
+
otp: p,
|
|
822
822
|
newPassword: b
|
|
823
823
|
}) => {
|
|
824
824
|
const y = await fetch(`${r}${e.resetPassword}`, {
|
|
@@ -829,13 +829,13 @@ const z = ({
|
|
|
829
829
|
credentials: "include",
|
|
830
830
|
body: JSON.stringify({
|
|
831
831
|
email: d,
|
|
832
|
-
otp:
|
|
832
|
+
otp: p,
|
|
833
833
|
newPassword: b
|
|
834
834
|
})
|
|
835
835
|
});
|
|
836
836
|
if (!y.ok) {
|
|
837
|
-
const
|
|
838
|
-
throw new Error(
|
|
837
|
+
const u = await y.json();
|
|
838
|
+
throw new Error(u.message || u.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -864,11 +864,11 @@ const z = ({
|
|
|
864
864
|
}, c = async () => {
|
|
865
865
|
const x = a(128), _ = await n(x);
|
|
866
866
|
return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge: _ };
|
|
867
|
-
},
|
|
867
|
+
}, h = () => {
|
|
868
868
|
const x = a(32);
|
|
869
869
|
return sessionStorage.setItem("oauth_state", x), x;
|
|
870
870
|
}, d = async () => {
|
|
871
|
-
const { codeChallenge: x } = await c(), _ =
|
|
871
|
+
const { codeChallenge: x } = await c(), _ = h(), C = new URLSearchParams({
|
|
872
872
|
response_type: "code",
|
|
873
873
|
client_id: o.clientId,
|
|
874
874
|
redirect_uri: o.redirectUri,
|
|
@@ -880,11 +880,11 @@ const z = ({
|
|
|
880
880
|
prompt: "select_account"
|
|
881
881
|
});
|
|
882
882
|
return `${o.domain}/oauth2/authorize?${C.toString()}`;
|
|
883
|
-
},
|
|
883
|
+
}, p = async () => {
|
|
884
884
|
const x = await d();
|
|
885
885
|
window.location.href = x;
|
|
886
886
|
}, b = async () => {
|
|
887
|
-
const { codeChallenge: x } = await c(), _ =
|
|
887
|
+
const { codeChallenge: x } = await c(), _ = h(), C = new URLSearchParams({
|
|
888
888
|
response_type: "code",
|
|
889
889
|
client_id: o.clientId,
|
|
890
890
|
redirect_uri: o.redirectUri,
|
|
@@ -898,7 +898,7 @@ const z = ({
|
|
|
898
898
|
}, y = async () => {
|
|
899
899
|
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
901
|
-
},
|
|
901
|
+
}, u = (x) => {
|
|
902
902
|
const _ = sessionStorage.getItem("oauth_state");
|
|
903
903
|
return sessionStorage.removeItem("oauth_state"), _ === x;
|
|
904
904
|
}, v = () => {
|
|
@@ -906,9 +906,9 @@ const z = ({
|
|
|
906
906
|
return sessionStorage.removeItem("pkce_code_verifier"), x;
|
|
907
907
|
};
|
|
908
908
|
return {
|
|
909
|
-
redirectToGoogleAuth:
|
|
909
|
+
redirectToGoogleAuth: p,
|
|
910
910
|
redirectToAppleAuth: y,
|
|
911
|
-
validateState:
|
|
911
|
+
validateState: u,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
914
|
const _ = v();
|
|
@@ -1203,10 +1203,10 @@ class E extends L {
|
|
|
1203
1203
|
throw new Error("OAuth is not configured correctly. Please try again later.");
|
|
1204
1204
|
if (!d.validateState(a))
|
|
1205
1205
|
throw new Error("Invalid state parameter. Please try signing in again.");
|
|
1206
|
-
const
|
|
1207
|
-
accessToken:
|
|
1208
|
-
refreshToken:
|
|
1209
|
-
idToken:
|
|
1206
|
+
const p = await d.exchangeCodeForTokens(o), { user: b } = await this.getApiService().login({
|
|
1207
|
+
accessToken: p.access_token,
|
|
1208
|
+
refreshToken: p.refresh_token,
|
|
1209
|
+
idToken: p.id_token
|
|
1210
1210
|
});
|
|
1211
1211
|
this.handleAuthSuccess(b);
|
|
1212
1212
|
} else
|
|
@@ -1362,8 +1362,8 @@ class E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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 E 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;
|
|
@@ -2071,34 +2071,34 @@ class E extends L {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
2073
|
A([
|
|
2074
|
-
|
|
2074
|
+
g({ type: String, attribute: "initial-mode" })
|
|
2075
2075
|
], E.prototype, "initialMode");
|
|
2076
2076
|
A([
|
|
2077
|
-
|
|
2077
|
+
g({ type: String, attribute: "logo-url" })
|
|
2078
2078
|
], E.prototype, "logoUrl");
|
|
2079
2079
|
A([
|
|
2080
|
-
|
|
2080
|
+
g({ type: String, attribute: "oauth-domain" })
|
|
2081
2081
|
], E.prototype, "oauthDomain");
|
|
2082
2082
|
A([
|
|
2083
|
-
|
|
2083
|
+
g({ type: String, attribute: "oauth-region" })
|
|
2084
2084
|
], E.prototype, "oauthRegion");
|
|
2085
2085
|
A([
|
|
2086
|
-
|
|
2086
|
+
g({ type: String, attribute: "oauth-user-pool-id" })
|
|
2087
2087
|
], E.prototype, "oauthUserPoolId");
|
|
2088
2088
|
A([
|
|
2089
|
-
|
|
2089
|
+
g({ type: String, attribute: "oauth-client-id" })
|
|
2090
2090
|
], E.prototype, "oauthClientId");
|
|
2091
2091
|
A([
|
|
2092
|
-
|
|
2092
|
+
g({ type: String, attribute: "oauth-redirect-uri" })
|
|
2093
2093
|
], E.prototype, "oauthRedirectUri");
|
|
2094
2094
|
A([
|
|
2095
|
-
|
|
2095
|
+
g({ type: String, attribute: "oauth-spa-domain" })
|
|
2096
2096
|
], E.prototype, "oauthSpaDomain");
|
|
2097
2097
|
A([
|
|
2098
|
-
|
|
2098
|
+
g({ type: Boolean, attribute: "disable-signup" })
|
|
2099
2099
|
], E.prototype, "disableSignup");
|
|
2100
2100
|
A([
|
|
2101
|
-
|
|
2101
|
+
g({ type: Boolean, attribute: "mock-mode" })
|
|
2102
2102
|
], E.prototype, "mockMode");
|
|
2103
2103
|
A([
|
|
2104
2104
|
w()
|
|
@@ -2152,7 +2152,7 @@ A([
|
|
|
2152
2152
|
w()
|
|
2153
2153
|
], E.prototype, "signupOtpDigits");
|
|
2154
2154
|
A([
|
|
2155
|
-
|
|
2155
|
+
Z("#email-input")
|
|
2156
2156
|
], E.prototype, "emailInput");
|
|
2157
2157
|
const S = It(class extends Lt {
|
|
2158
2158
|
constructor(r) {
|
|
@@ -2181,7 +2181,7 @@ var Ns = Object.defineProperty, we = (r, e, t, i) => {
|
|
|
2181
2181
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
2182
2182
|
return s && Ns(e, t, s), s;
|
|
2183
2183
|
};
|
|
2184
|
-
const
|
|
2184
|
+
const Fs = () => z({
|
|
2185
2185
|
name: "base-button",
|
|
2186
2186
|
element: de
|
|
2187
2187
|
});
|
|
@@ -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,30 +2658,30 @@ class de extends L {
|
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
2660
|
we([
|
|
2661
|
-
|
|
2661
|
+
g({ type: String, attribute: "size" })
|
|
2662
2662
|
], de.prototype, "size");
|
|
2663
2663
|
we([
|
|
2664
|
-
|
|
2664
|
+
g({ type: String, attribute: "variant" })
|
|
2665
2665
|
], de.prototype, "variant");
|
|
2666
2666
|
we([
|
|
2667
|
-
|
|
2667
|
+
g({ type: String, attribute: "hover" })
|
|
2668
2668
|
], de.prototype, "hover");
|
|
2669
2669
|
we([
|
|
2670
|
-
|
|
2670
|
+
g({ type: Boolean, reflect: !0 })
|
|
2671
2671
|
], de.prototype, "disabled");
|
|
2672
2672
|
we([
|
|
2673
|
-
|
|
2673
|
+
g({ type: Boolean, reflect: !0, attribute: "full-width" })
|
|
2674
2674
|
], de.prototype, "fullWidth");
|
|
2675
2675
|
we([
|
|
2676
|
-
|
|
2676
|
+
g({ type: Boolean, reflect: !0, attribute: "loading" })
|
|
2677
2677
|
], de.prototype, "loading");
|
|
2678
2678
|
we([
|
|
2679
|
-
|
|
2679
|
+
g({ type: String, attribute: "type" })
|
|
2680
2680
|
], de.prototype, "type");
|
|
2681
|
-
var
|
|
2681
|
+
var qs = Object.defineProperty, He = (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 && qs(e, t, s), s;
|
|
2685
2685
|
};
|
|
2686
2686
|
const Hs = () => z({
|
|
2687
2687
|
name: "base-card",
|
|
@@ -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}
|
|
@@ -2935,16 +2935,16 @@ class Ce extends L {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
He([
|
|
2938
|
-
|
|
2938
|
+
g({ type: String, attribute: "variant" })
|
|
2939
2939
|
], Ce.prototype, "variant");
|
|
2940
2940
|
He([
|
|
2941
|
-
|
|
2941
|
+
g({ type: String, attribute: "padding" })
|
|
2942
2942
|
], Ce.prototype, "padding");
|
|
2943
2943
|
He([
|
|
2944
|
-
|
|
2944
|
+
g({ type: Boolean, reflect: !0, attribute: "hoverable" })
|
|
2945
2945
|
], Ce.prototype, "hoverable");
|
|
2946
2946
|
He([
|
|
2947
|
-
|
|
2947
|
+
g({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
2948
2948
|
], Ce.prototype, "expandable");
|
|
2949
2949
|
He([
|
|
2950
2950
|
w()
|
|
@@ -2977,7 +2977,7 @@ class D extends L {
|
|
|
2977
2977
|
];
|
|
2978
2978
|
}
|
|
2979
2979
|
static {
|
|
2980
|
-
this.styles =
|
|
2980
|
+
this.styles = 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
|
+
g({ type: String })
|
|
3738
3738
|
], D.prototype, "value");
|
|
3739
3739
|
O([
|
|
3740
|
-
|
|
3740
|
+
g({ type: String })
|
|
3741
3741
|
], D.prototype, "label");
|
|
3742
3742
|
O([
|
|
3743
|
-
|
|
3743
|
+
g({ type: String })
|
|
3744
3744
|
], D.prototype, "placeholder");
|
|
3745
3745
|
O([
|
|
3746
|
-
|
|
3746
|
+
g({ type: Boolean, reflect: !0 })
|
|
3747
3747
|
], D.prototype, "required");
|
|
3748
3748
|
O([
|
|
3749
|
-
|
|
3749
|
+
g({ type: Boolean, reflect: !0 })
|
|
3750
3750
|
], D.prototype, "disabled");
|
|
3751
3751
|
O([
|
|
3752
|
-
|
|
3752
|
+
g({ type: String })
|
|
3753
3753
|
], D.prototype, "error");
|
|
3754
3754
|
O([
|
|
3755
|
-
|
|
3755
|
+
g({ type: String })
|
|
3756
3756
|
], D.prototype, "hint");
|
|
3757
3757
|
O([
|
|
3758
|
-
|
|
3758
|
+
g({ type: String })
|
|
3759
3759
|
], D.prototype, "size");
|
|
3760
3760
|
O([
|
|
3761
|
-
|
|
3761
|
+
g({ type: String })
|
|
3762
3762
|
], D.prototype, "minDate");
|
|
3763
3763
|
O([
|
|
3764
|
-
|
|
3764
|
+
g({ type: String })
|
|
3765
3765
|
], D.prototype, "maxDate");
|
|
3766
3766
|
O([
|
|
3767
3767
|
w()
|
|
@@ -3788,10 +3788,10 @@ O([
|
|
|
3788
3788
|
w()
|
|
3789
3789
|
], D.prototype, "alignRight");
|
|
3790
3790
|
O([
|
|
3791
|
-
|
|
3791
|
+
Z(".date-display")
|
|
3792
3792
|
], D.prototype, "dateDisplay");
|
|
3793
3793
|
O([
|
|
3794
|
-
|
|
3794
|
+
Z(".calendar-container")
|
|
3795
3795
|
], D.prototype, "calendarContainer");
|
|
3796
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--)
|
|
@@ -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,41 +4247,41 @@ 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
4259
|
U([
|
|
4260
|
-
|
|
4260
|
+
g({ type: String })
|
|
4261
4261
|
], M.prototype, "value");
|
|
4262
4262
|
U([
|
|
4263
|
-
|
|
4263
|
+
g({ type: String })
|
|
4264
4264
|
], M.prototype, "label");
|
|
4265
4265
|
U([
|
|
4266
|
-
|
|
4266
|
+
g({ type: String })
|
|
4267
4267
|
], M.prototype, "placeholder");
|
|
4268
4268
|
U([
|
|
4269
|
-
|
|
4269
|
+
g({ type: Boolean, reflect: !0 })
|
|
4270
4270
|
], M.prototype, "required");
|
|
4271
4271
|
U([
|
|
4272
|
-
|
|
4272
|
+
g({ type: Boolean, reflect: !0 })
|
|
4273
4273
|
], M.prototype, "disabled");
|
|
4274
4274
|
U([
|
|
4275
|
-
|
|
4275
|
+
g({ type: String })
|
|
4276
4276
|
], M.prototype, "error");
|
|
4277
4277
|
U([
|
|
4278
|
-
|
|
4278
|
+
g({ type: String })
|
|
4279
4279
|
], M.prototype, "hint");
|
|
4280
4280
|
U([
|
|
4281
|
-
|
|
4281
|
+
g({ type: String })
|
|
4282
4282
|
], M.prototype, "size");
|
|
4283
4283
|
U([
|
|
4284
|
-
|
|
4284
|
+
g({ type: String })
|
|
4285
4285
|
], M.prototype, "format");
|
|
4286
4286
|
U([
|
|
4287
4287
|
w()
|
|
@@ -4302,12 +4302,12 @@ U([
|
|
|
4302
4302
|
w()
|
|
4303
4303
|
], M.prototype, "alignRight");
|
|
4304
4304
|
U([
|
|
4305
|
-
|
|
4305
|
+
Z(".time-display")
|
|
4306
4306
|
], M.prototype, "timeDisplay");
|
|
4307
4307
|
U([
|
|
4308
|
-
|
|
4308
|
+
Z(".time-container")
|
|
4309
4309
|
], M.prototype, "timeContainer");
|
|
4310
|
-
var Ws = Object.defineProperty,
|
|
4310
|
+
var Ws = Object.defineProperty, j = (r, e, t, i) => {
|
|
4311
4311
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4312
4312
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
4313
4313
|
return s && Ws(e, t, s), s;
|
|
@@ -4329,7 +4329,7 @@ class N extends L {
|
|
|
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 N 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(), c = String(a.getMonth() + 1).padStart(2, "0"),
|
|
4477
|
-
i = `${n}-${c}-${
|
|
4476
|
+
const a = /* @__PURE__ */ new Date(), n = a.getFullYear(), c = String(a.getMonth() + 1).padStart(2, "0"), h = String(a.getDate()).padStart(2, "0");
|
|
4477
|
+
i = `${n}-${c}-${h}`;
|
|
4478
4478
|
}
|
|
4479
4479
|
const s = `${i}T${t}`, o = this.value;
|
|
4480
4480
|
this.value = s, this.dispatchEvent(
|
|
@@ -4501,12 +4501,12 @@ class N 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,78 +4546,78 @@ class N 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
|
-
|
|
4559
|
-
|
|
4558
|
+
j([
|
|
4559
|
+
g({ type: String })
|
|
4560
4560
|
], N.prototype, "value");
|
|
4561
|
-
|
|
4562
|
-
|
|
4561
|
+
j([
|
|
4562
|
+
g({ type: String })
|
|
4563
4563
|
], N.prototype, "label");
|
|
4564
|
-
|
|
4565
|
-
|
|
4564
|
+
j([
|
|
4565
|
+
g({ type: String })
|
|
4566
4566
|
], N.prototype, "placeholder");
|
|
4567
|
-
|
|
4568
|
-
|
|
4567
|
+
j([
|
|
4568
|
+
g({ type: Boolean, reflect: !0 })
|
|
4569
4569
|
], N.prototype, "required");
|
|
4570
|
-
|
|
4571
|
-
|
|
4570
|
+
j([
|
|
4571
|
+
g({ type: Boolean, reflect: !0 })
|
|
4572
4572
|
], N.prototype, "disabled");
|
|
4573
|
-
|
|
4574
|
-
|
|
4573
|
+
j([
|
|
4574
|
+
g({ type: String })
|
|
4575
4575
|
], N.prototype, "error");
|
|
4576
|
-
|
|
4577
|
-
|
|
4576
|
+
j([
|
|
4577
|
+
g({ type: String })
|
|
4578
4578
|
], N.prototype, "hint");
|
|
4579
|
-
|
|
4580
|
-
|
|
4579
|
+
j([
|
|
4580
|
+
g({ type: String })
|
|
4581
4581
|
], N.prototype, "size");
|
|
4582
|
-
|
|
4583
|
-
|
|
4582
|
+
j([
|
|
4583
|
+
g({ type: String })
|
|
4584
4584
|
], N.prototype, "minDate");
|
|
4585
|
-
|
|
4586
|
-
|
|
4585
|
+
j([
|
|
4586
|
+
g({ type: String })
|
|
4587
4587
|
], N.prototype, "maxDate");
|
|
4588
|
-
|
|
4589
|
-
|
|
4588
|
+
j([
|
|
4589
|
+
g({ type: String })
|
|
4590
4590
|
], N.prototype, "format");
|
|
4591
|
-
|
|
4591
|
+
j([
|
|
4592
4592
|
w()
|
|
4593
4593
|
], N.prototype, "dateValue");
|
|
4594
|
-
|
|
4594
|
+
j([
|
|
4595
4595
|
w()
|
|
4596
4596
|
], N.prototype, "timeValue");
|
|
4597
|
-
|
|
4597
|
+
j([
|
|
4598
4598
|
w()
|
|
4599
4599
|
], N.prototype, "isFocused");
|
|
4600
|
-
|
|
4601
|
-
|
|
4600
|
+
j([
|
|
4601
|
+
Z("base-date-picker")
|
|
4602
4602
|
], N.prototype, "datePicker");
|
|
4603
|
-
|
|
4604
|
-
|
|
4603
|
+
j([
|
|
4604
|
+
Z("base-time-picker")
|
|
4605
4605
|
], N.prototype, "timePicker");
|
|
4606
|
-
var Js = Object.defineProperty,
|
|
4606
|
+
var Js = Object.defineProperty, V = (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;
|
|
4610
4610
|
};
|
|
4611
4611
|
const Xs = () => z({
|
|
4612
4612
|
name: "base-drawer",
|
|
4613
|
-
element:
|
|
4613
|
+
element: F
|
|
4614
4614
|
});
|
|
4615
|
-
class
|
|
4615
|
+
class F 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.dragCommitted = !1, 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.draggingFromContent = !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.dragCommitted = !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.draggingFromContent = !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,
|
|
@@ -4630,8 +4630,10 @@ class j extends L {
|
|
|
4630
4630
|
if (e.target !== e.currentTarget) return;
|
|
4631
4631
|
this.handleClose();
|
|
4632
4632
|
}
|
|
4633
|
-
}, this.handleDragStart = (e) => {
|
|
4634
|
-
this.modalContainer && (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));
|
|
4633
|
+
}, this.handleDragStart = (e, t = !1) => {
|
|
4634
|
+
this.modalContainer && (t && !this.isContentScrolledToTop() || (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.isDragging = !0, this.dragCommitted = !1, this.draggingFromContent = t, 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)));
|
|
4635
|
+
}, this.handleContentDragStart = (e) => {
|
|
4636
|
+
this.handleDragStart(e, !0);
|
|
4635
4637
|
}, this.handleDragMove = (e) => {
|
|
4636
4638
|
if (!this.isDragging || !this.modalContainer) return;
|
|
4637
4639
|
e instanceof TouchEvent ? this.dragCurrentY = e.touches[0].clientY : this.dragCurrentY = e.clientY;
|
|
@@ -4639,6 +4641,16 @@ class j extends L {
|
|
|
4639
4641
|
if (!this.dragCommitted) {
|
|
4640
4642
|
if (Math.abs(t) < 5)
|
|
4641
4643
|
return;
|
|
4644
|
+
if (this.draggingFromContent) {
|
|
4645
|
+
if (t < 0) {
|
|
4646
|
+
this.isDragging = !1, this.draggingFromContent = !1;
|
|
4647
|
+
return;
|
|
4648
|
+
}
|
|
4649
|
+
if (!this.isContentScrolledToTop()) {
|
|
4650
|
+
this.isDragging = !1, this.draggingFromContent = !1;
|
|
4651
|
+
return;
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4642
4654
|
this.dragCommitted = !0;
|
|
4643
4655
|
}
|
|
4644
4656
|
e.preventDefault();
|
|
@@ -4657,37 +4669,37 @@ class j extends L {
|
|
|
4657
4669
|
const e = this.dragCurrentY - this.dragStartY;
|
|
4658
4670
|
Math.abs(e) > 5 && (this.lastDragEndTime = Date.now());
|
|
4659
4671
|
const t = Date.now() - this.dragStartTime, i = Math.abs(e) / t;
|
|
4660
|
-
this.isDragging = !1, this.dragCommitted = !1;
|
|
4672
|
+
this.isDragging = !1, this.dragCommitted = !1, this.draggingFromContent = !1;
|
|
4661
4673
|
const s = this.getActiveDetents(), o = this.getCurrentDetentHeight(), a = window.innerHeight, n = Math.abs(e) / a * 100;
|
|
4662
4674
|
let c;
|
|
4663
4675
|
e < 0 ? c = o + n : c = o - n;
|
|
4664
|
-
let
|
|
4665
|
-
const d = 0.5,
|
|
4676
|
+
let h = this.currentDetentIndex;
|
|
4677
|
+
const d = 0.5, p = 1, b = this.isClosable(), y = s[0], u = this.currentDetentIndex === 0;
|
|
4666
4678
|
if (i > d && Math.abs(e) > 30)
|
|
4667
|
-
e > 0 ? b ? i >
|
|
4679
|
+
e > 0 ? this.draggingFromContent && i > p ? b ? h = -1 : h = 0 : b ? i > p && u && e > 50 || c < y * 0.8 ? h = -1 : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.min(s.length - 1, this.currentDetentIndex + 1);
|
|
4668
4680
|
else {
|
|
4669
4681
|
let _ = 0, C = Math.abs(c - s[0]);
|
|
4670
4682
|
for (let T = 1; T < s.length; T++) {
|
|
4671
4683
|
const B = Math.abs(c - s[T]);
|
|
4672
4684
|
B < C && (C = B, _ = T);
|
|
4673
4685
|
}
|
|
4674
|
-
|
|
4686
|
+
h = _, this.draggingFromContent && e > 0 && (h = Math.max(0, this.currentDetentIndex - 1), u && b && (h = -1)), b && (u && c < y * 0.7 || c < y - 5) && (h = -1);
|
|
4675
4687
|
}
|
|
4676
|
-
const v =
|
|
4677
|
-
if (
|
|
4688
|
+
const v = h < 0, m = this.modalContainer, x = v ? 0 : s[h];
|
|
4689
|
+
if (m.style.transition = "none", e < 0) {
|
|
4678
4690
|
const _ = Math.min(100, c);
|
|
4679
|
-
|
|
4691
|
+
m.style.height = `${_}dvh`, m.style.transform = "translateY(0)";
|
|
4680
4692
|
} else
|
|
4681
|
-
|
|
4693
|
+
m.style.transform = `translateY(${e}px)`, m.style.height = `${o}dvh`;
|
|
4682
4694
|
requestAnimationFrame(() => {
|
|
4683
|
-
v ? (
|
|
4695
|
+
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`);
|
|
4684
4696
|
}), setTimeout(() => {
|
|
4685
4697
|
this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.dragCommitted = !1, v ? (this.isVisible = !1, this.open = !1, this.dispatchEvent(
|
|
4686
4698
|
new CustomEvent("drawer-close", {
|
|
4687
4699
|
bubbles: !0,
|
|
4688
4700
|
composed: !0
|
|
4689
4701
|
})
|
|
4690
|
-
)) : (this.currentDetentIndex =
|
|
4702
|
+
)) : (this.currentDetentIndex = h, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${x}dvh`), this.dispatchEvent(
|
|
4691
4703
|
new CustomEvent("drawer-detent-change", {
|
|
4692
4704
|
bubbles: !0,
|
|
4693
4705
|
composed: !0,
|
|
@@ -4744,7 +4756,7 @@ class j extends L {
|
|
|
4744
4756
|
}, 0);
|
|
4745
4757
|
}
|
|
4746
4758
|
resetState() {
|
|
4747
|
-
this.isDragging = !1, this.dragCommitted = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0;
|
|
4759
|
+
this.isDragging = !1, this.dragCommitted = !1, this.draggingFromContent = !1, this.lastDragEndTime = 0, this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0;
|
|
4748
4760
|
}
|
|
4749
4761
|
getActiveDetents() {
|
|
4750
4762
|
return this.detents.filter((t) => t > 0).sort((t, i) => t - i);
|
|
@@ -4752,6 +4764,9 @@ class j extends L {
|
|
|
4752
4764
|
isClosable() {
|
|
4753
4765
|
return this.detents.includes(0);
|
|
4754
4766
|
}
|
|
4767
|
+
isContentScrolledToTop() {
|
|
4768
|
+
return this.drawerContent ? this.drawerContent.scrollTop === 0 : !0;
|
|
4769
|
+
}
|
|
4755
4770
|
getCurrentDetentHeight() {
|
|
4756
4771
|
const e = this.getActiveDetents();
|
|
4757
4772
|
return e.length === 0 ? 85 : e[this.currentDetentIndex] || e[e.length - 1];
|
|
@@ -4819,7 +4834,7 @@ class j extends L {
|
|
|
4819
4834
|
"modal-container--dragging": this.isDragging,
|
|
4820
4835
|
[`modal-container--${this.size}`]: !0
|
|
4821
4836
|
}, i = this.getCurrentDetentHeight();
|
|
4822
|
-
return
|
|
4837
|
+
return f`
|
|
4823
4838
|
<!-- Drawer Overlay -->
|
|
4824
4839
|
<div
|
|
4825
4840
|
class=${S(e)}
|
|
@@ -4849,7 +4864,15 @@ class j extends L {
|
|
|
4849
4864
|
</div>
|
|
4850
4865
|
|
|
4851
4866
|
<!-- Drawer Content Wrapper -->
|
|
4852
|
-
<div
|
|
4867
|
+
<div
|
|
4868
|
+
class="drawer-content drawer-content--${this.size}"
|
|
4869
|
+
@touchstart=${this.handleContentDragStart}
|
|
4870
|
+
@touchmove=${this.handleDragMove}
|
|
4871
|
+
@touchend=${this.handleDragEnd}
|
|
4872
|
+
@mousedown=${this.handleContentDragStart}
|
|
4873
|
+
@mousemove=${this.handleDragMove}
|
|
4874
|
+
@mouseup=${this.handleDragEnd}
|
|
4875
|
+
>
|
|
4853
4876
|
<slot></slot>
|
|
4854
4877
|
</div>
|
|
4855
4878
|
</div>
|
|
@@ -4857,7 +4880,7 @@ class j extends L {
|
|
|
4857
4880
|
`;
|
|
4858
4881
|
}
|
|
4859
4882
|
static {
|
|
4860
|
-
this.styles =
|
|
4883
|
+
this.styles = H`
|
|
4861
4884
|
:host {
|
|
4862
4885
|
display: inline-block;
|
|
4863
4886
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
@@ -5042,14 +5065,14 @@ class j extends L {
|
|
|
5042
5065
|
}`;
|
|
5043
5066
|
}
|
|
5044
5067
|
}
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
],
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
],
|
|
5051
|
-
|
|
5052
|
-
|
|
5068
|
+
V([
|
|
5069
|
+
g({ type: Boolean, reflect: !0 })
|
|
5070
|
+
], F.prototype, "open");
|
|
5071
|
+
V([
|
|
5072
|
+
g({ type: String, attribute: "size" })
|
|
5073
|
+
], F.prototype, "size");
|
|
5074
|
+
V([
|
|
5075
|
+
g({
|
|
5053
5076
|
type: Array,
|
|
5054
5077
|
converter: {
|
|
5055
5078
|
fromAttribute: (r) => {
|
|
@@ -5062,43 +5085,46 @@ Z([
|
|
|
5062
5085
|
}
|
|
5063
5086
|
}
|
|
5064
5087
|
})
|
|
5065
|
-
],
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
],
|
|
5069
|
-
|
|
5088
|
+
], F.prototype, "detents");
|
|
5089
|
+
V([
|
|
5090
|
+
g({ type: Boolean, attribute: "persist-on-overlay-click" })
|
|
5091
|
+
], F.prototype, "persistOnOverlayClick");
|
|
5092
|
+
V([
|
|
5093
|
+
w()
|
|
5094
|
+
], F.prototype, "isClosing");
|
|
5095
|
+
V([
|
|
5070
5096
|
w()
|
|
5071
|
-
],
|
|
5072
|
-
|
|
5097
|
+
], F.prototype, "isVisible");
|
|
5098
|
+
V([
|
|
5073
5099
|
w()
|
|
5074
|
-
],
|
|
5075
|
-
|
|
5100
|
+
], F.prototype, "isDragging");
|
|
5101
|
+
V([
|
|
5076
5102
|
w()
|
|
5077
|
-
],
|
|
5078
|
-
|
|
5103
|
+
], F.prototype, "dragStartY");
|
|
5104
|
+
V([
|
|
5079
5105
|
w()
|
|
5080
|
-
],
|
|
5081
|
-
|
|
5106
|
+
], F.prototype, "dragCurrentY");
|
|
5107
|
+
V([
|
|
5082
5108
|
w()
|
|
5083
|
-
],
|
|
5084
|
-
|
|
5109
|
+
], F.prototype, "dragStartTime");
|
|
5110
|
+
V([
|
|
5085
5111
|
w()
|
|
5086
|
-
],
|
|
5087
|
-
|
|
5112
|
+
], F.prototype, "lastDragEndTime");
|
|
5113
|
+
V([
|
|
5088
5114
|
w()
|
|
5089
|
-
],
|
|
5090
|
-
|
|
5115
|
+
], F.prototype, "currentDetentIndex");
|
|
5116
|
+
V([
|
|
5091
5117
|
w()
|
|
5092
|
-
],
|
|
5093
|
-
|
|
5118
|
+
], F.prototype, "dragCommitted");
|
|
5119
|
+
V([
|
|
5094
5120
|
w()
|
|
5095
|
-
],
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
],
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
],
|
|
5121
|
+
], F.prototype, "draggingFromContent");
|
|
5122
|
+
V([
|
|
5123
|
+
Z(".modal-container")
|
|
5124
|
+
], F.prototype, "modalContainer");
|
|
5125
|
+
V([
|
|
5126
|
+
Z(".drawer-content")
|
|
5127
|
+
], F.prototype, "drawerContent");
|
|
5102
5128
|
const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5103
5129
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5104
5130
|
<defs>
|
|
@@ -5299,7 +5325,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5299
5325
|
</style>
|
|
5300
5326
|
</defs>
|
|
5301
5327
|
<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"/>
|
|
5302
|
-
</svg>`,
|
|
5328
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5303
5329
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5304
5330
|
<defs>
|
|
5305
5331
|
<style>
|
|
@@ -5310,7 +5336,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5310
5336
|
</defs>
|
|
5311
5337
|
<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"/>
|
|
5312
5338
|
<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"/>
|
|
5313
|
-
</svg>`,
|
|
5339
|
+
</svg>`, fi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5314
5340
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5315
5341
|
<defs>
|
|
5316
5342
|
<style>
|
|
@@ -5322,7 +5348,7 @@ const Gs = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5322
5348
|
<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"/>
|
|
5323
5349
|
<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"/>
|
|
5324
5350
|
<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"/>
|
|
5325
|
-
</svg>`,
|
|
5351
|
+
</svg>`, mi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5326
5352
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5327
5353
|
<defs>
|
|
5328
5354
|
<style>
|
|
@@ -5405,9 +5431,9 @@ const xi = /* @__PURE__ */ Object.assign({
|
|
|
5405
5431
|
"../../public/icons/paperclip.svg": hi,
|
|
5406
5432
|
"../../public/icons/reply.svg": pi,
|
|
5407
5433
|
"../../public/icons/send.svg": ui,
|
|
5408
|
-
"../../public/icons/share.svg":
|
|
5409
|
-
"../../public/icons/shopping-cart.svg":
|
|
5410
|
-
"../../public/icons/suitcase.svg":
|
|
5434
|
+
"../../public/icons/share.svg": gi,
|
|
5435
|
+
"../../public/icons/shopping-cart.svg": fi,
|
|
5436
|
+
"../../public/icons/suitcase.svg": mi,
|
|
5411
5437
|
"../../public/icons/sun.svg": bi,
|
|
5412
5438
|
"../../public/icons/trash-can.svg": vi,
|
|
5413
5439
|
"../../public/icons/user.svg": yi
|
|
@@ -5420,7 +5446,7 @@ class Ee extends L {
|
|
|
5420
5446
|
super(...arguments), this.name = "", this.size = "24px", this.color = "currentColor", this.svgContent = "";
|
|
5421
5447
|
}
|
|
5422
5448
|
static {
|
|
5423
|
-
this.styles =
|
|
5449
|
+
this.styles = H`
|
|
5424
5450
|
:host {
|
|
5425
5451
|
display: inline-flex;
|
|
5426
5452
|
align-items: center;
|
|
@@ -5464,7 +5490,7 @@ class Ee extends L {
|
|
|
5464
5490
|
}
|
|
5465
5491
|
}
|
|
5466
5492
|
render() {
|
|
5467
|
-
return
|
|
5493
|
+
return f`
|
|
5468
5494
|
<div
|
|
5469
5495
|
style="
|
|
5470
5496
|
--icon-size: ${this.size};
|
|
@@ -5476,13 +5502,13 @@ class Ee extends L {
|
|
|
5476
5502
|
}
|
|
5477
5503
|
}
|
|
5478
5504
|
ht([
|
|
5479
|
-
|
|
5505
|
+
g({ type: String })
|
|
5480
5506
|
], Ee.prototype, "name");
|
|
5481
5507
|
ht([
|
|
5482
|
-
|
|
5508
|
+
g({ type: String })
|
|
5483
5509
|
], Ee.prototype, "size");
|
|
5484
5510
|
ht([
|
|
5485
|
-
|
|
5511
|
+
g({ type: String })
|
|
5486
5512
|
], Ee.prototype, "color");
|
|
5487
5513
|
ht([
|
|
5488
5514
|
w()
|
|
@@ -5501,7 +5527,7 @@ class G extends L {
|
|
|
5501
5527
|
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)}`;
|
|
5502
5528
|
}
|
|
5503
5529
|
static {
|
|
5504
|
-
this.styles =
|
|
5530
|
+
this.styles = H`
|
|
5505
5531
|
:host {
|
|
5506
5532
|
display: block;
|
|
5507
5533
|
}
|
|
@@ -5679,12 +5705,12 @@ class G extends L {
|
|
|
5679
5705
|
"base-input--error": e,
|
|
5680
5706
|
"base-input--disabled": this.disabled
|
|
5681
5707
|
};
|
|
5682
|
-
return
|
|
5708
|
+
return f`
|
|
5683
5709
|
<div class="input-group">
|
|
5684
|
-
${this.label ?
|
|
5710
|
+
${this.label ? f`
|
|
5685
5711
|
<label for=${this.inputId} class="input-label">
|
|
5686
5712
|
${this.label}
|
|
5687
|
-
${this.required ?
|
|
5713
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5688
5714
|
</label>
|
|
5689
5715
|
` : ""}
|
|
5690
5716
|
|
|
@@ -5710,47 +5736,47 @@ class G extends L {
|
|
|
5710
5736
|
</div>
|
|
5711
5737
|
</div>
|
|
5712
5738
|
|
|
5713
|
-
${e ?
|
|
5739
|
+
${e ? f`
|
|
5714
5740
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5715
5741
|
${this.error}
|
|
5716
5742
|
</div>
|
|
5717
|
-
` : this.hint ?
|
|
5743
|
+
` : this.hint ? f` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5718
5744
|
</div>
|
|
5719
5745
|
`;
|
|
5720
5746
|
}
|
|
5721
5747
|
}
|
|
5722
5748
|
ee([
|
|
5723
|
-
|
|
5749
|
+
g({ type: String })
|
|
5724
5750
|
], G.prototype, "value");
|
|
5725
5751
|
ee([
|
|
5726
|
-
|
|
5752
|
+
g({ type: String })
|
|
5727
5753
|
], G.prototype, "label");
|
|
5728
5754
|
ee([
|
|
5729
|
-
|
|
5755
|
+
g({ type: String })
|
|
5730
5756
|
], G.prototype, "placeholder");
|
|
5731
5757
|
ee([
|
|
5732
|
-
|
|
5758
|
+
g({ type: String })
|
|
5733
5759
|
], G.prototype, "type");
|
|
5734
5760
|
ee([
|
|
5735
|
-
|
|
5761
|
+
g({ type: Boolean, reflect: !0 })
|
|
5736
5762
|
], G.prototype, "required");
|
|
5737
5763
|
ee([
|
|
5738
|
-
|
|
5764
|
+
g({ type: Boolean, reflect: !0 })
|
|
5739
5765
|
], G.prototype, "disabled");
|
|
5740
5766
|
ee([
|
|
5741
|
-
|
|
5767
|
+
g({ type: String })
|
|
5742
5768
|
], G.prototype, "error");
|
|
5743
5769
|
ee([
|
|
5744
|
-
|
|
5770
|
+
g({ type: String })
|
|
5745
5771
|
], G.prototype, "hint");
|
|
5746
5772
|
ee([
|
|
5747
|
-
|
|
5773
|
+
g({ type: String })
|
|
5748
5774
|
], G.prototype, "autocomplete");
|
|
5749
5775
|
ee([
|
|
5750
|
-
|
|
5776
|
+
g({ type: String })
|
|
5751
5777
|
], G.prototype, "size");
|
|
5752
5778
|
ee([
|
|
5753
|
-
|
|
5779
|
+
Z("input")
|
|
5754
5780
|
], G.prototype, "inputElement");
|
|
5755
5781
|
var _i = Object.defineProperty, I = (r, e, t, i) => {
|
|
5756
5782
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -5782,7 +5808,7 @@ class R extends L {
|
|
|
5782
5808
|
}
|
|
5783
5809
|
}
|
|
5784
5810
|
static {
|
|
5785
|
-
this.styles =
|
|
5811
|
+
this.styles = H`
|
|
5786
5812
|
:host {
|
|
5787
5813
|
display: block;
|
|
5788
5814
|
position: relative;
|
|
@@ -6118,12 +6144,12 @@ class R extends L {
|
|
|
6118
6144
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6119
6145
|
"select-disabled": this.disabled
|
|
6120
6146
|
};
|
|
6121
|
-
return
|
|
6147
|
+
return f`
|
|
6122
6148
|
<div class="select-group">
|
|
6123
|
-
${this.label ?
|
|
6149
|
+
${this.label ? f`
|
|
6124
6150
|
<label for=${this.selectId} class="select-label">
|
|
6125
6151
|
${this.label}
|
|
6126
|
-
${this.required ?
|
|
6152
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6127
6153
|
</label>
|
|
6128
6154
|
` : ""}
|
|
6129
6155
|
|
|
@@ -6165,7 +6191,7 @@ class R extends L {
|
|
|
6165
6191
|
</svg>
|
|
6166
6192
|
</div>
|
|
6167
6193
|
|
|
6168
|
-
${this.isOpen ?
|
|
6194
|
+
${this.isOpen ? f`
|
|
6169
6195
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
6170
6196
|
<div
|
|
6171
6197
|
class=${S({
|
|
@@ -6175,8 +6201,8 @@ class R extends L {
|
|
|
6175
6201
|
})}
|
|
6176
6202
|
role="listbox"
|
|
6177
6203
|
>
|
|
6178
|
-
${this.filteredOptions.length === 0 ?
|
|
6179
|
-
(o, a) =>
|
|
6204
|
+
${this.filteredOptions.length === 0 ? f` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
6205
|
+
(o, a) => f`
|
|
6180
6206
|
<div
|
|
6181
6207
|
class=${S({
|
|
6182
6208
|
"dropdown-option": !0,
|
|
@@ -6195,11 +6221,11 @@ class R extends L {
|
|
|
6195
6221
|
` : ""}
|
|
6196
6222
|
</div>
|
|
6197
6223
|
|
|
6198
|
-
${e ?
|
|
6224
|
+
${e ? f`
|
|
6199
6225
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
6200
6226
|
${this.error}
|
|
6201
6227
|
</div>
|
|
6202
|
-
` : this.hint ?
|
|
6228
|
+
` : this.hint ? f` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
6203
6229
|
|
|
6204
6230
|
<!-- Hidden slot for option elements -->
|
|
6205
6231
|
<slot @slotchange=${this.parseSlottedOptions}></slot>
|
|
@@ -6208,34 +6234,34 @@ class R extends L {
|
|
|
6208
6234
|
}
|
|
6209
6235
|
}
|
|
6210
6236
|
I([
|
|
6211
|
-
|
|
6237
|
+
g({ type: String })
|
|
6212
6238
|
], R.prototype, "value");
|
|
6213
6239
|
I([
|
|
6214
|
-
|
|
6240
|
+
g({ type: String })
|
|
6215
6241
|
], R.prototype, "label");
|
|
6216
6242
|
I([
|
|
6217
|
-
|
|
6243
|
+
g({ type: String })
|
|
6218
6244
|
], R.prototype, "placeholder");
|
|
6219
6245
|
I([
|
|
6220
|
-
|
|
6246
|
+
g({ type: Boolean, reflect: !0 })
|
|
6221
6247
|
], R.prototype, "required");
|
|
6222
6248
|
I([
|
|
6223
|
-
|
|
6249
|
+
g({ type: Boolean, reflect: !0 })
|
|
6224
6250
|
], R.prototype, "disabled");
|
|
6225
6251
|
I([
|
|
6226
|
-
|
|
6252
|
+
g({ type: Boolean, reflect: !0 })
|
|
6227
6253
|
], R.prototype, "searchable");
|
|
6228
6254
|
I([
|
|
6229
|
-
|
|
6255
|
+
g({ type: String })
|
|
6230
6256
|
], R.prototype, "error");
|
|
6231
6257
|
I([
|
|
6232
|
-
|
|
6258
|
+
g({ type: String })
|
|
6233
6259
|
], R.prototype, "hint");
|
|
6234
6260
|
I([
|
|
6235
|
-
|
|
6261
|
+
g({ type: String })
|
|
6236
6262
|
], R.prototype, "size");
|
|
6237
6263
|
I([
|
|
6238
|
-
|
|
6264
|
+
g({ type: Array })
|
|
6239
6265
|
], R.prototype, "options");
|
|
6240
6266
|
I([
|
|
6241
6267
|
w()
|
|
@@ -6256,13 +6282,13 @@ I([
|
|
|
6256
6282
|
w()
|
|
6257
6283
|
], R.prototype, "alignRight");
|
|
6258
6284
|
I([
|
|
6259
|
-
|
|
6285
|
+
Z(".select-input")
|
|
6260
6286
|
], R.prototype, "selectInput");
|
|
6261
6287
|
I([
|
|
6262
|
-
|
|
6288
|
+
Z(".select-display")
|
|
6263
6289
|
], R.prototype, "selectDisplay");
|
|
6264
6290
|
I([
|
|
6265
|
-
|
|
6291
|
+
Z(".dropdown-options")
|
|
6266
6292
|
], R.prototype, "dropdownElement");
|
|
6267
6293
|
var Ei = Object.defineProperty, je = (r, e, t, i) => {
|
|
6268
6294
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -6278,7 +6304,7 @@ class Ae extends L {
|
|
|
6278
6304
|
super(...arguments), this.id = "", this.label = "", this.active = !1;
|
|
6279
6305
|
}
|
|
6280
6306
|
static {
|
|
6281
|
-
this.styles =
|
|
6307
|
+
this.styles = H`
|
|
6282
6308
|
:host {
|
|
6283
6309
|
display: none;
|
|
6284
6310
|
scroll-margin-top: 2rem;
|
|
@@ -6320,7 +6346,7 @@ class Ae extends L {
|
|
|
6320
6346
|
);
|
|
6321
6347
|
}
|
|
6322
6348
|
render() {
|
|
6323
|
-
return
|
|
6349
|
+
return f`
|
|
6324
6350
|
<div
|
|
6325
6351
|
class="base-tab"
|
|
6326
6352
|
id="tabpanel-${this.id}"
|
|
@@ -6333,19 +6359,19 @@ class Ae extends L {
|
|
|
6333
6359
|
}
|
|
6334
6360
|
}
|
|
6335
6361
|
je([
|
|
6336
|
-
|
|
6362
|
+
g({ type: String, reflect: !0 })
|
|
6337
6363
|
], Ae.prototype, "id");
|
|
6338
6364
|
je([
|
|
6339
|
-
|
|
6365
|
+
g({ type: String })
|
|
6340
6366
|
], Ae.prototype, "label");
|
|
6341
6367
|
je([
|
|
6342
|
-
|
|
6368
|
+
g({ type: Number })
|
|
6343
6369
|
], Ae.prototype, "badge");
|
|
6344
6370
|
je([
|
|
6345
|
-
|
|
6371
|
+
g({ type: String })
|
|
6346
6372
|
], Ae.prototype, "icon");
|
|
6347
6373
|
je([
|
|
6348
|
-
|
|
6374
|
+
g({ type: Boolean, reflect: !0 })
|
|
6349
6375
|
], Ae.prototype, "active");
|
|
6350
6376
|
var Ti = Object.defineProperty, ae = (r, e, t, i) => {
|
|
6351
6377
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -6361,7 +6387,7 @@ class ie extends L {
|
|
|
6361
6387
|
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;
|
|
6362
6388
|
}
|
|
6363
6389
|
static {
|
|
6364
|
-
this.styles =
|
|
6390
|
+
this.styles = H`
|
|
6365
6391
|
:host {
|
|
6366
6392
|
display: block;
|
|
6367
6393
|
min-width: 0;
|
|
@@ -6935,7 +6961,7 @@ class ie extends L {
|
|
|
6935
6961
|
"tab-button": !0,
|
|
6936
6962
|
"tab-button--active": i
|
|
6937
6963
|
};
|
|
6938
|
-
return
|
|
6964
|
+
return f`
|
|
6939
6965
|
<button
|
|
6940
6966
|
role="tab"
|
|
6941
6967
|
aria-selected=${i}
|
|
@@ -6946,9 +6972,9 @@ class ie extends L {
|
|
|
6946
6972
|
@click=${() => this.handleTabClick(e.id)}
|
|
6947
6973
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
6948
6974
|
>
|
|
6949
|
-
${e.icon ?
|
|
6950
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
6951
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
6975
|
+
${e.icon ? f`<span class="tab-icon">${Pr(e.icon)}</span>` : k}
|
|
6976
|
+
${s || this.variant !== "sidebar" || this.isMobile ? f`<span class="tab-label">${e.label}</span>` : k}
|
|
6977
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? f`<span class="tab-badge">${e.badge}</span>` : k}
|
|
6952
6978
|
</button>
|
|
6953
6979
|
`;
|
|
6954
6980
|
}
|
|
@@ -6963,9 +6989,9 @@ class ie extends L {
|
|
|
6963
6989
|
"sidebar-toggle": !0,
|
|
6964
6990
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
6965
6991
|
};
|
|
6966
|
-
return
|
|
6992
|
+
return f`
|
|
6967
6993
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
6968
|
-
${this.variant === "sidebar" ?
|
|
6994
|
+
${this.variant === "sidebar" ? f`
|
|
6969
6995
|
<div class=${S(i)}>
|
|
6970
6996
|
<!-- Sidebar Header -->
|
|
6971
6997
|
<div class="sidebar-header">
|
|
@@ -6995,7 +7021,7 @@ class ie extends L {
|
|
|
6995
7021
|
<slot name="sidebar-footer"></slot>
|
|
6996
7022
|
</div>
|
|
6997
7023
|
</div>
|
|
6998
|
-
` :
|
|
7024
|
+
` : f`
|
|
6999
7025
|
<div class="tabs-header">
|
|
7000
7026
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7001
7027
|
</div>
|
|
@@ -7010,19 +7036,19 @@ class ie extends L {
|
|
|
7010
7036
|
}
|
|
7011
7037
|
}
|
|
7012
7038
|
ae([
|
|
7013
|
-
|
|
7039
|
+
g({ type: String, attribute: "active-tab" })
|
|
7014
7040
|
], ie.prototype, "activeTab");
|
|
7015
7041
|
ae([
|
|
7016
|
-
|
|
7042
|
+
g({ type: String, attribute: "aria-label" })
|
|
7017
7043
|
], ie.prototype, "ariaLabel");
|
|
7018
7044
|
ae([
|
|
7019
|
-
|
|
7045
|
+
g({ type: Boolean, attribute: "sync-with-hash" })
|
|
7020
7046
|
], ie.prototype, "syncWithHash");
|
|
7021
7047
|
ae([
|
|
7022
|
-
|
|
7048
|
+
g({ type: String })
|
|
7023
7049
|
], ie.prototype, "variant");
|
|
7024
7050
|
ae([
|
|
7025
|
-
|
|
7051
|
+
g({ type: Boolean, attribute: "force-expanded" })
|
|
7026
7052
|
], ie.prototype, "forceExpanded");
|
|
7027
7053
|
ae([
|
|
7028
7054
|
w()
|
|
@@ -7034,7 +7060,7 @@ ae([
|
|
|
7034
7060
|
w()
|
|
7035
7061
|
], ie.prototype, "isMobile");
|
|
7036
7062
|
ae([
|
|
7037
|
-
|
|
7063
|
+
Z(".tabs-nav")
|
|
7038
7064
|
], ie.prototype, "tabsNav");
|
|
7039
7065
|
var Pi = Object.defineProperty, Q = (r, e, t, i) => {
|
|
7040
7066
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7050,7 +7076,7 @@ class K extends L {
|
|
|
7050
7076
|
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)}`;
|
|
7051
7077
|
}
|
|
7052
7078
|
static {
|
|
7053
|
-
this.styles =
|
|
7079
|
+
this.styles = H`
|
|
7054
7080
|
:host {
|
|
7055
7081
|
display: block;
|
|
7056
7082
|
}
|
|
@@ -7260,12 +7286,12 @@ class K extends L {
|
|
|
7260
7286
|
"character-count--warning": s && !o,
|
|
7261
7287
|
"character-count--error": o
|
|
7262
7288
|
};
|
|
7263
|
-
return
|
|
7289
|
+
return f`
|
|
7264
7290
|
<div class="textarea-group">
|
|
7265
|
-
${this.label ?
|
|
7291
|
+
${this.label ? f`
|
|
7266
7292
|
<label for=${this.textareaId} class="textarea-label">
|
|
7267
7293
|
${this.label}
|
|
7268
|
-
${this.required ?
|
|
7294
|
+
${this.required ? f`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
7269
7295
|
</label>
|
|
7270
7296
|
` : ""}
|
|
7271
7297
|
|
|
@@ -7286,57 +7312,57 @@ class K extends L {
|
|
|
7286
7312
|
@focus=${this.handleFocus}
|
|
7287
7313
|
></textarea>
|
|
7288
7314
|
|
|
7289
|
-
${i ?
|
|
7315
|
+
${i ? f`
|
|
7290
7316
|
<div class=${S(n)}>
|
|
7291
7317
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
7292
7318
|
</div>
|
|
7293
7319
|
` : ""}
|
|
7294
7320
|
</div>
|
|
7295
7321
|
|
|
7296
|
-
${e ?
|
|
7322
|
+
${e ? f`
|
|
7297
7323
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
7298
7324
|
${this.error}
|
|
7299
7325
|
</div>
|
|
7300
|
-
` : this.hint ?
|
|
7326
|
+
` : this.hint ? f` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
7301
7327
|
</div>
|
|
7302
7328
|
`;
|
|
7303
7329
|
}
|
|
7304
7330
|
}
|
|
7305
7331
|
Q([
|
|
7306
|
-
|
|
7332
|
+
g({ type: String })
|
|
7307
7333
|
], K.prototype, "value");
|
|
7308
7334
|
Q([
|
|
7309
|
-
|
|
7335
|
+
g({ type: String })
|
|
7310
7336
|
], K.prototype, "label");
|
|
7311
7337
|
Q([
|
|
7312
|
-
|
|
7338
|
+
g({ type: String })
|
|
7313
7339
|
], K.prototype, "placeholder");
|
|
7314
7340
|
Q([
|
|
7315
|
-
|
|
7341
|
+
g({ type: Boolean, reflect: !0 })
|
|
7316
7342
|
], K.prototype, "required");
|
|
7317
7343
|
Q([
|
|
7318
|
-
|
|
7344
|
+
g({ type: Boolean, reflect: !0 })
|
|
7319
7345
|
], K.prototype, "disabled");
|
|
7320
7346
|
Q([
|
|
7321
|
-
|
|
7347
|
+
g({ type: String })
|
|
7322
7348
|
], K.prototype, "error");
|
|
7323
7349
|
Q([
|
|
7324
|
-
|
|
7350
|
+
g({ type: String })
|
|
7325
7351
|
], K.prototype, "hint");
|
|
7326
7352
|
Q([
|
|
7327
|
-
|
|
7353
|
+
g({ type: String })
|
|
7328
7354
|
], K.prototype, "size");
|
|
7329
7355
|
Q([
|
|
7330
|
-
|
|
7356
|
+
g({ type: Number })
|
|
7331
7357
|
], K.prototype, "rows");
|
|
7332
7358
|
Q([
|
|
7333
|
-
|
|
7359
|
+
g({ type: Number })
|
|
7334
7360
|
], K.prototype, "maxlength");
|
|
7335
7361
|
Q([
|
|
7336
|
-
|
|
7362
|
+
g({ type: String })
|
|
7337
7363
|
], K.prototype, "resize");
|
|
7338
7364
|
Q([
|
|
7339
|
-
|
|
7365
|
+
Z("textarea")
|
|
7340
7366
|
], K.prototype, "textareaElement");
|
|
7341
7367
|
var Ri = Object.defineProperty, Ve = (r, e, t, i) => {
|
|
7342
7368
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -7400,7 +7426,7 @@ class Te extends L {
|
|
|
7400
7426
|
);
|
|
7401
7427
|
}
|
|
7402
7428
|
static {
|
|
7403
|
-
this.styles =
|
|
7429
|
+
this.styles = H`
|
|
7404
7430
|
:host {
|
|
7405
7431
|
position: fixed;
|
|
7406
7432
|
display: flex;
|
|
@@ -7752,13 +7778,13 @@ class Te extends L {
|
|
|
7752
7778
|
`;
|
|
7753
7779
|
}
|
|
7754
7780
|
render() {
|
|
7755
|
-
return
|
|
7781
|
+
return f`
|
|
7756
7782
|
<div class="toast-container ${this.variant}">
|
|
7757
|
-
${this.dismiss !== "manual" ?
|
|
7783
|
+
${this.dismiss !== "manual" ? f`
|
|
7758
7784
|
<div class="toast-progress"></div>
|
|
7759
7785
|
` : ""}
|
|
7760
7786
|
<slot></slot>
|
|
7761
|
-
${this.dismiss === "manual" ?
|
|
7787
|
+
${this.dismiss === "manual" ? f`
|
|
7762
7788
|
<button
|
|
7763
7789
|
class="toast-dismiss-btn ${this.variant}"
|
|
7764
7790
|
aria-label="Dismiss toast"
|
|
@@ -7772,19 +7798,19 @@ class Te extends L {
|
|
|
7772
7798
|
}
|
|
7773
7799
|
}
|
|
7774
7800
|
Ve([
|
|
7775
|
-
|
|
7801
|
+
g({ type: String, attribute: "variant", reflect: !0 })
|
|
7776
7802
|
], Te.prototype, "variant");
|
|
7777
7803
|
Ve([
|
|
7778
|
-
|
|
7804
|
+
g({ type: String, attribute: "padding", reflect: !0 })
|
|
7779
7805
|
], Te.prototype, "padding");
|
|
7780
7806
|
Ve([
|
|
7781
|
-
|
|
7807
|
+
g({ type: String, attribute: "size", reflect: !0 })
|
|
7782
7808
|
], Te.prototype, "size");
|
|
7783
7809
|
Ve([
|
|
7784
|
-
|
|
7810
|
+
g({ type: String, attribute: "dismiss", reflect: !0 })
|
|
7785
7811
|
], Te.prototype, "dismiss");
|
|
7786
7812
|
Ve([
|
|
7787
|
-
|
|
7813
|
+
g({ type: String, attribute: "position", reflect: !0 })
|
|
7788
7814
|
], Te.prototype, "position");
|
|
7789
7815
|
function va({
|
|
7790
7816
|
message: r,
|
|
@@ -7813,7 +7839,7 @@ class De extends L {
|
|
|
7813
7839
|
super(...arguments), this.value = 0, this.min = 0, this.max = 99, this.size = "md", this.allowInput = !0;
|
|
7814
7840
|
}
|
|
7815
7841
|
static {
|
|
7816
|
-
this.styles =
|
|
7842
|
+
this.styles = H`
|
|
7817
7843
|
:host {
|
|
7818
7844
|
display: inline-block;
|
|
7819
7845
|
}
|
|
@@ -7998,7 +8024,7 @@ class De extends L {
|
|
|
7998
8024
|
"quantity-input": !0,
|
|
7999
8025
|
[`quantity-input--${this.size}`]: !0
|
|
8000
8026
|
};
|
|
8001
|
-
return
|
|
8027
|
+
return f`
|
|
8002
8028
|
<div class=${S(e)}>
|
|
8003
8029
|
<button
|
|
8004
8030
|
type="button"
|
|
@@ -8035,19 +8061,19 @@ class De extends L {
|
|
|
8035
8061
|
}
|
|
8036
8062
|
}
|
|
8037
8063
|
Ze([
|
|
8038
|
-
|
|
8064
|
+
g({ type: Number })
|
|
8039
8065
|
], De.prototype, "value");
|
|
8040
8066
|
Ze([
|
|
8041
|
-
|
|
8067
|
+
g({ type: Number })
|
|
8042
8068
|
], De.prototype, "min");
|
|
8043
8069
|
Ze([
|
|
8044
|
-
|
|
8070
|
+
g({ type: Number })
|
|
8045
8071
|
], De.prototype, "max");
|
|
8046
8072
|
Ze([
|
|
8047
|
-
|
|
8073
|
+
g({ type: String })
|
|
8048
8074
|
], De.prototype, "size");
|
|
8049
8075
|
Ze([
|
|
8050
|
-
|
|
8076
|
+
g({ type: Boolean, attribute: "allow-input" })
|
|
8051
8077
|
], De.prototype, "allowInput");
|
|
8052
8078
|
var Li = Object.defineProperty, Ye = (r, e, t, i) => {
|
|
8053
8079
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -8111,7 +8137,7 @@ class Pe extends L {
|
|
|
8111
8137
|
}
|
|
8112
8138
|
render() {
|
|
8113
8139
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
8114
|
-
return
|
|
8140
|
+
return f`
|
|
8115
8141
|
<button
|
|
8116
8142
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
8117
8143
|
@click=${this.toggleTheme}
|
|
@@ -8129,7 +8155,7 @@ class Pe extends L {
|
|
|
8129
8155
|
`;
|
|
8130
8156
|
}
|
|
8131
8157
|
static {
|
|
8132
|
-
this.styles =
|
|
8158
|
+
this.styles = H`
|
|
8133
8159
|
:host {
|
|
8134
8160
|
display: inline-block;
|
|
8135
8161
|
}
|
|
@@ -8273,13 +8299,13 @@ class Pe extends L {
|
|
|
8273
8299
|
}
|
|
8274
8300
|
}
|
|
8275
8301
|
Ye([
|
|
8276
|
-
|
|
8302
|
+
g({ type: String, attribute: "size" })
|
|
8277
8303
|
], Pe.prototype, "size");
|
|
8278
8304
|
Ye([
|
|
8279
|
-
|
|
8305
|
+
g({ type: String, attribute: "variant" })
|
|
8280
8306
|
], Pe.prototype, "variant");
|
|
8281
8307
|
Ye([
|
|
8282
|
-
|
|
8308
|
+
g({ type: Object, attribute: "themes" })
|
|
8283
8309
|
], Pe.prototype, "themes");
|
|
8284
8310
|
Ye([
|
|
8285
8311
|
w()
|
|
@@ -8295,7 +8321,7 @@ function Or(r, e) {
|
|
|
8295
8321
|
const { toString: Ui } = Object.prototype, { getPrototypeOf: Bt } = Object, { iterator: pt, toStringTag: Rr } = Symbol, ut = /* @__PURE__ */ ((r) => (e) => {
|
|
8296
8322
|
const t = Ui.call(e);
|
|
8297
8323
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
8298
|
-
})(/* @__PURE__ */ Object.create(null)), te = (r) => (r = r.toLowerCase(), (e) => ut(e) === r),
|
|
8324
|
+
})(/* @__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");
|
|
8299
8325
|
function We(r) {
|
|
8300
8326
|
return r !== null && !Se(r) && r.constructor !== null && !Se(r.constructor) && Y(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
8301
8327
|
}
|
|
@@ -8304,7 +8330,7 @@ function Ni(r) {
|
|
|
8304
8330
|
let e;
|
|
8305
8331
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && zr(r.buffer), e;
|
|
8306
8332
|
}
|
|
8307
|
-
const
|
|
8333
|
+
const Fi = gt("string"), Y = gt("function"), Mr = gt("number"), Ke = (r) => r !== null && typeof r == "object", qi = (r) => r === !0 || r === !1, st = (r) => {
|
|
8308
8334
|
if (ut(r) !== "object")
|
|
8309
8335
|
return !1;
|
|
8310
8336
|
const e = Bt(r);
|
|
@@ -8349,7 +8375,7 @@ function Ir(r, e) {
|
|
|
8349
8375
|
return s;
|
|
8350
8376
|
return null;
|
|
8351
8377
|
}
|
|
8352
|
-
const
|
|
8378
|
+
const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lr = (r) => !Se(r) && r !== me;
|
|
8353
8379
|
function _t() {
|
|
8354
8380
|
const { caseless: r, skipUndefined: e } = Lr(this) && this || {}, t = {}, i = (s, o) => {
|
|
8355
8381
|
const a = r && Ir(t, o) || o;
|
|
@@ -8406,13 +8432,13 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8406
8432
|
function(t, i, s) {
|
|
8407
8433
|
return i.toUpperCase() + s;
|
|
8408
8434
|
}
|
|
8409
|
-
), lr = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype),
|
|
8435
|
+
), lr = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype), go = te("RegExp"), Br = (r, e) => {
|
|
8410
8436
|
const t = Object.getOwnPropertyDescriptors(r), i = {};
|
|
8411
8437
|
Je(t, (s, o) => {
|
|
8412
8438
|
let a;
|
|
8413
8439
|
(a = e(s, o, r)) !== !1 && (i[o] = a || s);
|
|
8414
8440
|
}), Object.defineProperties(r, i);
|
|
8415
|
-
},
|
|
8441
|
+
}, fo = (r) => {
|
|
8416
8442
|
Br(r, (e, t) => {
|
|
8417
8443
|
if (Y(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
8418
8444
|
return !1;
|
|
@@ -8427,7 +8453,7 @@ const ro = (r, e, t, { allOwnKeys: i } = {}) => (Je(e, (s, o) => {
|
|
|
8427
8453
|
});
|
|
8428
8454
|
}
|
|
8429
8455
|
});
|
|
8430
|
-
},
|
|
8456
|
+
}, mo = (r, e) => {
|
|
8431
8457
|
const t = {}, i = (s) => {
|
|
8432
8458
|
s.forEach((o) => {
|
|
8433
8459
|
t[o] = !0;
|
|
@@ -8458,22 +8484,22 @@ const wo = (r) => {
|
|
|
8458
8484
|
return i;
|
|
8459
8485
|
};
|
|
8460
8486
|
return t(r, 0);
|
|
8461
|
-
}, xo = te("AsyncFunction"), $o = (r) => r && (Ke(r) || Y(r)) && Y(r.then) && Y(r.catch), Ur = ((r, e) => r ? setImmediate : e ? ((t, i) => (
|
|
8462
|
-
s ===
|
|
8487
|
+
}, 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 }) => {
|
|
8488
|
+
s === me && o === t && i.length && i.shift()();
|
|
8463
8489
|
}, !1), (s) => {
|
|
8464
|
-
i.push(s),
|
|
8490
|
+
i.push(s), me.postMessage(t, "*");
|
|
8465
8491
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
8466
8492
|
typeof setImmediate == "function",
|
|
8467
|
-
Y(
|
|
8468
|
-
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
8493
|
+
Y(me.postMessage)
|
|
8494
|
+
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick || Ur, So = (r) => r != null && Y(r[pt]), l = {
|
|
8469
8495
|
isArray: Oe,
|
|
8470
8496
|
isArrayBuffer: zr,
|
|
8471
8497
|
isBuffer: We,
|
|
8472
8498
|
isFormData: Ki,
|
|
8473
8499
|
isArrayBufferView: Ni,
|
|
8474
|
-
isString:
|
|
8500
|
+
isString: Fi,
|
|
8475
8501
|
isNumber: Mr,
|
|
8476
|
-
isBoolean:
|
|
8502
|
+
isBoolean: qi,
|
|
8477
8503
|
isObject: Ke,
|
|
8478
8504
|
isPlainObject: st,
|
|
8479
8505
|
isEmptyObject: Hi,
|
|
@@ -8485,7 +8511,7 @@ const wo = (r) => {
|
|
|
8485
8511
|
isDate: ji,
|
|
8486
8512
|
isFile: Vi,
|
|
8487
8513
|
isBlob: Zi,
|
|
8488
|
-
isRegExp:
|
|
8514
|
+
isRegExp: go,
|
|
8489
8515
|
isFunction: Y,
|
|
8490
8516
|
isStream: Wi,
|
|
8491
8517
|
isURLSearchParams: Ji,
|
|
@@ -8509,13 +8535,13 @@ const wo = (r) => {
|
|
|
8509
8535
|
hasOwnProp: lr,
|
|
8510
8536
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8511
8537
|
reduceDescriptors: Br,
|
|
8512
|
-
freezeMethods:
|
|
8513
|
-
toObjectSet:
|
|
8538
|
+
freezeMethods: fo,
|
|
8539
|
+
toObjectSet: mo,
|
|
8514
8540
|
toCamelCase: uo,
|
|
8515
8541
|
noop: bo,
|
|
8516
8542
|
toFiniteNumber: vo,
|
|
8517
8543
|
findKey: Ir,
|
|
8518
|
-
global:
|
|
8544
|
+
global: me,
|
|
8519
8545
|
isContextDefined: Lr,
|
|
8520
8546
|
isSpecCompliantForm: yo,
|
|
8521
8547
|
toJSONObject: wo,
|
|
@@ -8549,7 +8575,7 @@ l.inherits($, Error, {
|
|
|
8549
8575
|
};
|
|
8550
8576
|
}
|
|
8551
8577
|
});
|
|
8552
|
-
const Nr = $.prototype,
|
|
8578
|
+
const Nr = $.prototype, Fr = {};
|
|
8553
8579
|
[
|
|
8554
8580
|
"ERR_BAD_OPTION_VALUE",
|
|
8555
8581
|
"ERR_BAD_OPTION",
|
|
@@ -8565,15 +8591,15 @@ const Nr = $.prototype, qr = {};
|
|
|
8565
8591
|
"ERR_INVALID_URL"
|
|
8566
8592
|
// eslint-disable-next-line func-names
|
|
8567
8593
|
].forEach((r) => {
|
|
8568
|
-
|
|
8594
|
+
Fr[r] = { value: r };
|
|
8569
8595
|
});
|
|
8570
|
-
Object.defineProperties($,
|
|
8596
|
+
Object.defineProperties($, Fr);
|
|
8571
8597
|
Object.defineProperty(Nr, "isAxiosError", { value: !0 });
|
|
8572
8598
|
$.from = (r, e, t, i, s, o) => {
|
|
8573
8599
|
const a = Object.create(Nr);
|
|
8574
8600
|
l.toFlatObject(r, a, function(d) {
|
|
8575
8601
|
return d !== Error.prototype;
|
|
8576
|
-
}, (
|
|
8602
|
+
}, (h) => h !== "isAxiosError");
|
|
8577
8603
|
const n = r && r.message ? r.message : "Error", c = e == null && r ? r.code : e;
|
|
8578
8604
|
return $.call(a, n, c, t, i, s), r && a.cause == null && Object.defineProperty(a, "cause", { value: r, configurable: !0 }), a.name = r && r.name || "Error", o && Object.assign(a, o), a;
|
|
8579
8605
|
};
|
|
@@ -8581,12 +8607,12 @@ const _o = null;
|
|
|
8581
8607
|
function Ct(r) {
|
|
8582
8608
|
return l.isPlainObject(r) || l.isArray(r);
|
|
8583
8609
|
}
|
|
8584
|
-
function
|
|
8610
|
+
function qr(r) {
|
|
8585
8611
|
return l.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
8586
8612
|
}
|
|
8587
8613
|
function cr(r, e, t) {
|
|
8588
8614
|
return r ? r.concat(e).map(function(s, o) {
|
|
8589
|
-
return s =
|
|
8615
|
+
return s = qr(s), !t && o ? "[" + s + "]" : s;
|
|
8590
8616
|
}).join(t ? "." : "") : e;
|
|
8591
8617
|
}
|
|
8592
8618
|
function Co(r) {
|
|
@@ -8595,55 +8621,55 @@ function Co(r) {
|
|
|
8595
8621
|
const Eo = l.toFlatObject(l, {}, null, function(e) {
|
|
8596
8622
|
return /^is[A-Z]/.test(e);
|
|
8597
8623
|
});
|
|
8598
|
-
function
|
|
8624
|
+
function ft(r, e, t) {
|
|
8599
8625
|
if (!l.isObject(r))
|
|
8600
8626
|
throw new TypeError("target must be an object");
|
|
8601
8627
|
e = e || new FormData(), t = l.toFlatObject(t, {
|
|
8602
8628
|
metaTokens: !0,
|
|
8603
8629
|
dots: !1,
|
|
8604
8630
|
indexes: !1
|
|
8605
|
-
}, !1, function(v,
|
|
8606
|
-
return !l.isUndefined(
|
|
8631
|
+
}, !1, function(v, m) {
|
|
8632
|
+
return !l.isUndefined(m[v]);
|
|
8607
8633
|
});
|
|
8608
8634
|
const i = t.metaTokens, s = t.visitor || d, o = t.dots, a = t.indexes, c = (t.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(e);
|
|
8609
8635
|
if (!l.isFunction(s))
|
|
8610
8636
|
throw new TypeError("visitor must be a function");
|
|
8611
|
-
function
|
|
8612
|
-
if (
|
|
8613
|
-
if (l.isDate(
|
|
8614
|
-
return
|
|
8615
|
-
if (l.isBoolean(
|
|
8616
|
-
return
|
|
8617
|
-
if (!c && l.isBlob(
|
|
8637
|
+
function h(u) {
|
|
8638
|
+
if (u === null) return "";
|
|
8639
|
+
if (l.isDate(u))
|
|
8640
|
+
return u.toISOString();
|
|
8641
|
+
if (l.isBoolean(u))
|
|
8642
|
+
return u.toString();
|
|
8643
|
+
if (!c && l.isBlob(u))
|
|
8618
8644
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
8619
|
-
return l.isArrayBuffer(
|
|
8645
|
+
return l.isArrayBuffer(u) || l.isTypedArray(u) ? c && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
8620
8646
|
}
|
|
8621
|
-
function d(
|
|
8622
|
-
let x =
|
|
8623
|
-
if (
|
|
8647
|
+
function d(u, v, m) {
|
|
8648
|
+
let x = u;
|
|
8649
|
+
if (u && !m && typeof u == "object") {
|
|
8624
8650
|
if (l.endsWith(v, "{}"))
|
|
8625
|
-
v = i ? v : v.slice(0, -2),
|
|
8626
|
-
else if (l.isArray(
|
|
8627
|
-
return v =
|
|
8651
|
+
v = i ? v : v.slice(0, -2), u = JSON.stringify(u);
|
|
8652
|
+
else if (l.isArray(u) && Co(u) || (l.isFileList(u) || l.endsWith(v, "[]")) && (x = l.toArray(u)))
|
|
8653
|
+
return v = qr(v), x.forEach(function(C, T) {
|
|
8628
8654
|
!(l.isUndefined(C) || C === null) && e.append(
|
|
8629
8655
|
// eslint-disable-next-line no-nested-ternary
|
|
8630
8656
|
a === !0 ? cr([v], T, o) : a === null ? v : v + "[]",
|
|
8631
|
-
|
|
8657
|
+
h(C)
|
|
8632
8658
|
);
|
|
8633
8659
|
}), !1;
|
|
8634
8660
|
}
|
|
8635
|
-
return Ct(
|
|
8661
|
+
return Ct(u) ? !0 : (e.append(cr(m, v, o), h(u)), !1);
|
|
8636
8662
|
}
|
|
8637
|
-
const
|
|
8663
|
+
const p = [], b = Object.assign(Eo, {
|
|
8638
8664
|
defaultVisitor: d,
|
|
8639
|
-
convertValue:
|
|
8665
|
+
convertValue: h,
|
|
8640
8666
|
isVisitable: Ct
|
|
8641
8667
|
});
|
|
8642
|
-
function y(
|
|
8643
|
-
if (!l.isUndefined(
|
|
8644
|
-
if (
|
|
8668
|
+
function y(u, v) {
|
|
8669
|
+
if (!l.isUndefined(u)) {
|
|
8670
|
+
if (p.indexOf(u) !== -1)
|
|
8645
8671
|
throw Error("Circular reference detected in " + v.join("."));
|
|
8646
|
-
|
|
8672
|
+
p.push(u), l.forEach(u, function(x, _) {
|
|
8647
8673
|
(!(l.isUndefined(x) || x === null) && s.call(
|
|
8648
8674
|
e,
|
|
8649
8675
|
x,
|
|
@@ -8651,7 +8677,7 @@ function mt(r, e, t) {
|
|
|
8651
8677
|
v,
|
|
8652
8678
|
b
|
|
8653
8679
|
)) === !0 && y(x, v ? v.concat(_) : [_]);
|
|
8654
|
-
}),
|
|
8680
|
+
}), p.pop();
|
|
8655
8681
|
}
|
|
8656
8682
|
}
|
|
8657
8683
|
if (!l.isObject(r))
|
|
@@ -8673,7 +8699,7 @@ function dr(r) {
|
|
|
8673
8699
|
});
|
|
8674
8700
|
}
|
|
8675
8701
|
function Ut(r, e) {
|
|
8676
|
-
this._pairs = [], r &&
|
|
8702
|
+
this._pairs = [], r && ft(r, this, e);
|
|
8677
8703
|
}
|
|
8678
8704
|
const Hr = Ut.prototype;
|
|
8679
8705
|
Hr.append = function(e, t) {
|
|
@@ -8784,7 +8810,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Mo
|
|
|
8784
8810
|
...Oo
|
|
8785
8811
|
};
|
|
8786
8812
|
function Lo(r, e) {
|
|
8787
|
-
return
|
|
8813
|
+
return ft(r, new q.classes.URLSearchParams(), {
|
|
8788
8814
|
visitor: function(t, i, s, o) {
|
|
8789
8815
|
return q.isNode && l.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
8790
8816
|
},
|
|
@@ -8847,7 +8873,7 @@ const Xe = {
|
|
|
8847
8873
|
return Lo(e, this.formSerializer).toString();
|
|
8848
8874
|
if ((n = l.isFileList(e)) || i.indexOf("multipart/form-data") > -1) {
|
|
8849
8875
|
const c = this.env && this.env.FormData;
|
|
8850
|
-
return
|
|
8876
|
+
return ft(
|
|
8851
8877
|
n ? { "files[]": e } : e,
|
|
8852
8878
|
c && new c(),
|
|
8853
8879
|
this.formSerializer
|
|
@@ -8897,7 +8923,7 @@ const Xe = {
|
|
|
8897
8923
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
|
|
8898
8924
|
Xe.headers[r] = {};
|
|
8899
8925
|
});
|
|
8900
|
-
const
|
|
8926
|
+
const Fo = l.toObjectSet([
|
|
8901
8927
|
"age",
|
|
8902
8928
|
"authorization",
|
|
8903
8929
|
"content-length",
|
|
@@ -8915,12 +8941,12 @@ const qo = l.toObjectSet([
|
|
|
8915
8941
|
"referer",
|
|
8916
8942
|
"retry-after",
|
|
8917
8943
|
"user-agent"
|
|
8918
|
-
]),
|
|
8944
|
+
]), qo = (r) => {
|
|
8919
8945
|
const e = {};
|
|
8920
8946
|
let t, i, s;
|
|
8921
8947
|
return r && r.split(`
|
|
8922
8948
|
`).forEach(function(a) {
|
|
8923
|
-
s = a.indexOf(":"), t = a.substring(0, s).trim().toLowerCase(), i = a.substring(s + 1).trim(), !(!t || e[t] &&
|
|
8949
|
+
s = a.indexOf(":"), t = a.substring(0, s).trim().toLowerCase(), i = a.substring(s + 1).trim(), !(!t || e[t] && Fo[t]) && (t === "set-cookie" ? e[t] ? e[t].push(i) : e[t] = [i] : e[t] = e[t] ? e[t] + ", " + i : i);
|
|
8924
8950
|
}), e;
|
|
8925
8951
|
}, pr = Symbol("internals");
|
|
8926
8952
|
function Le(r) {
|
|
@@ -8967,24 +8993,24 @@ class W {
|
|
|
8967
8993
|
}
|
|
8968
8994
|
set(e, t, i) {
|
|
8969
8995
|
const s = this;
|
|
8970
|
-
function o(n, c,
|
|
8996
|
+
function o(n, c, h) {
|
|
8971
8997
|
const d = Le(c);
|
|
8972
8998
|
if (!d)
|
|
8973
8999
|
throw new Error("header name must be a non-empty string");
|
|
8974
|
-
const
|
|
8975
|
-
(!
|
|
9000
|
+
const p = l.findKey(s, d);
|
|
9001
|
+
(!p || s[p] === void 0 || h === !0 || h === void 0 && s[p] !== !1) && (s[p || c] = it(n));
|
|
8976
9002
|
}
|
|
8977
|
-
const a = (n, c) => l.forEach(n, (
|
|
9003
|
+
const a = (n, c) => l.forEach(n, (h, d) => o(h, d, c));
|
|
8978
9004
|
if (l.isPlainObject(e) || e instanceof this.constructor)
|
|
8979
9005
|
a(e, t);
|
|
8980
9006
|
else if (l.isString(e) && (e = e.trim()) && !jo(e))
|
|
8981
|
-
a(
|
|
9007
|
+
a(qo(e), t);
|
|
8982
9008
|
else if (l.isObject(e) && l.isIterable(e)) {
|
|
8983
|
-
let n = {}, c,
|
|
9009
|
+
let n = {}, c, h;
|
|
8984
9010
|
for (const d of e) {
|
|
8985
9011
|
if (!l.isArray(d))
|
|
8986
9012
|
throw TypeError("Object iterator must return a key-value pair");
|
|
8987
|
-
n[
|
|
9013
|
+
n[h = d[0]] = (c = n[h]) ? l.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
|
|
8988
9014
|
}
|
|
8989
9015
|
a(n, t);
|
|
8990
9016
|
} else
|
|
@@ -9133,47 +9159,47 @@ function Wo(r, e) {
|
|
|
9133
9159
|
const t = new Array(r), i = new Array(r);
|
|
9134
9160
|
let s = 0, o = 0, a;
|
|
9135
9161
|
return e = e !== void 0 ? e : 1e3, function(c) {
|
|
9136
|
-
const
|
|
9137
|
-
a || (a =
|
|
9138
|
-
let
|
|
9139
|
-
for (;
|
|
9140
|
-
b += t[
|
|
9141
|
-
if (s = (s + 1) % r, s === o && (o = (o + 1) % r),
|
|
9162
|
+
const h = Date.now(), d = i[o];
|
|
9163
|
+
a || (a = h), t[s] = c, i[s] = h;
|
|
9164
|
+
let p = o, b = 0;
|
|
9165
|
+
for (; p !== s; )
|
|
9166
|
+
b += t[p++], p = p % r;
|
|
9167
|
+
if (s = (s + 1) % r, s === o && (o = (o + 1) % r), h - a < e)
|
|
9142
9168
|
return;
|
|
9143
|
-
const y = d &&
|
|
9169
|
+
const y = d && h - d;
|
|
9144
9170
|
return y ? Math.round(b * 1e3 / y) : void 0;
|
|
9145
9171
|
};
|
|
9146
9172
|
}
|
|
9147
9173
|
function Ko(r, e) {
|
|
9148
9174
|
let t = 0, i = 1e3 / e, s, o;
|
|
9149
|
-
const a = (
|
|
9150
|
-
t = d, s = null, o && (clearTimeout(o), o = null), r(...
|
|
9175
|
+
const a = (h, d = Date.now()) => {
|
|
9176
|
+
t = d, s = null, o && (clearTimeout(o), o = null), r(...h);
|
|
9151
9177
|
};
|
|
9152
|
-
return [(...
|
|
9153
|
-
const d = Date.now(),
|
|
9154
|
-
|
|
9178
|
+
return [(...h) => {
|
|
9179
|
+
const d = Date.now(), p = d - t;
|
|
9180
|
+
p >= i ? a(h, d) : (s = h, o || (o = setTimeout(() => {
|
|
9155
9181
|
o = null, a(s);
|
|
9156
|
-
}, i -
|
|
9182
|
+
}, i - p)));
|
|
9157
9183
|
}, () => s && a(s)];
|
|
9158
9184
|
}
|
|
9159
9185
|
const lt = (r, e, t = 3) => {
|
|
9160
9186
|
let i = 0;
|
|
9161
9187
|
const s = Wo(50, 250);
|
|
9162
9188
|
return Ko((o) => {
|
|
9163
|
-
const a = o.loaded, n = o.lengthComputable ? o.total : void 0, c = a - i,
|
|
9189
|
+
const a = o.loaded, n = o.lengthComputable ? o.total : void 0, c = a - i, h = s(c), d = a <= n;
|
|
9164
9190
|
i = a;
|
|
9165
|
-
const
|
|
9191
|
+
const p = {
|
|
9166
9192
|
loaded: a,
|
|
9167
9193
|
total: n,
|
|
9168
9194
|
progress: n ? a / n : void 0,
|
|
9169
9195
|
bytes: c,
|
|
9170
|
-
rate:
|
|
9171
|
-
estimated:
|
|
9196
|
+
rate: h || void 0,
|
|
9197
|
+
estimated: h && n && d ? (n - a) / h : void 0,
|
|
9172
9198
|
event: o,
|
|
9173
9199
|
lengthComputable: n != null,
|
|
9174
9200
|
[e ? "download" : "upload"]: !0
|
|
9175
9201
|
};
|
|
9176
|
-
r(
|
|
9202
|
+
r(p);
|
|
9177
9203
|
}, t);
|
|
9178
9204
|
}, ur = (r, e) => {
|
|
9179
9205
|
const t = r != null;
|
|
@@ -9182,7 +9208,7 @@ const lt = (r, e, t = 3) => {
|
|
|
9182
9208
|
total: r,
|
|
9183
9209
|
loaded: i
|
|
9184
9210
|
}), e[1]];
|
|
9185
|
-
},
|
|
9211
|
+
}, gr = (r) => (...e) => l.asap(() => r(...e)), Jo = q.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, q.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
9186
9212
|
new URL(q.origin),
|
|
9187
9213
|
q.navigator && /(msie|trident)/i.test(q.navigator.userAgent)
|
|
9188
9214
|
) : () => !0, Xo = q.hasStandardBrowserEnv ? (
|
|
@@ -9224,34 +9250,34 @@ function Kr(r, e, t) {
|
|
|
9224
9250
|
let i = !Go(e);
|
|
9225
9251
|
return r && (i || t == !1) ? Qo(r, e) : e;
|
|
9226
9252
|
}
|
|
9227
|
-
const
|
|
9253
|
+
const fr = (r) => r instanceof W ? { ...r } : r;
|
|
9228
9254
|
function ye(r, e) {
|
|
9229
9255
|
e = e || {};
|
|
9230
9256
|
const t = {};
|
|
9231
|
-
function i(
|
|
9232
|
-
return l.isPlainObject(
|
|
9257
|
+
function i(h, d, p, b) {
|
|
9258
|
+
return l.isPlainObject(h) && l.isPlainObject(d) ? l.merge.call({ caseless: b }, h, d) : l.isPlainObject(d) ? l.merge({}, d) : l.isArray(d) ? d.slice() : d;
|
|
9233
9259
|
}
|
|
9234
|
-
function s(
|
|
9260
|
+
function s(h, d, p, b) {
|
|
9235
9261
|
if (l.isUndefined(d)) {
|
|
9236
|
-
if (!l.isUndefined(
|
|
9237
|
-
return i(void 0,
|
|
9238
|
-
} else return i(
|
|
9262
|
+
if (!l.isUndefined(h))
|
|
9263
|
+
return i(void 0, h, p, b);
|
|
9264
|
+
} else return i(h, d, p, b);
|
|
9239
9265
|
}
|
|
9240
|
-
function o(
|
|
9266
|
+
function o(h, d) {
|
|
9241
9267
|
if (!l.isUndefined(d))
|
|
9242
9268
|
return i(void 0, d);
|
|
9243
9269
|
}
|
|
9244
|
-
function a(
|
|
9270
|
+
function a(h, d) {
|
|
9245
9271
|
if (l.isUndefined(d)) {
|
|
9246
|
-
if (!l.isUndefined(
|
|
9247
|
-
return i(void 0,
|
|
9272
|
+
if (!l.isUndefined(h))
|
|
9273
|
+
return i(void 0, h);
|
|
9248
9274
|
} else return i(void 0, d);
|
|
9249
9275
|
}
|
|
9250
|
-
function n(
|
|
9251
|
-
if (
|
|
9252
|
-
return i(
|
|
9253
|
-
if (
|
|
9254
|
-
return i(void 0,
|
|
9276
|
+
function n(h, d, p) {
|
|
9277
|
+
if (p in e)
|
|
9278
|
+
return i(h, d);
|
|
9279
|
+
if (p in r)
|
|
9280
|
+
return i(void 0, h);
|
|
9255
9281
|
}
|
|
9256
9282
|
const c = {
|
|
9257
9283
|
url: o,
|
|
@@ -9282,11 +9308,11 @@ function ye(r, e) {
|
|
|
9282
9308
|
socketPath: a,
|
|
9283
9309
|
responseEncoding: a,
|
|
9284
9310
|
validateStatus: n,
|
|
9285
|
-
headers: (
|
|
9311
|
+
headers: (h, d, p) => s(fr(h), fr(d), p, !0)
|
|
9286
9312
|
};
|
|
9287
9313
|
return l.forEach(Object.keys({ ...r, ...e }), function(d) {
|
|
9288
|
-
const
|
|
9289
|
-
l.isUndefined(b) &&
|
|
9314
|
+
const p = c[d] || s, b = p(r[d], e[d], d);
|
|
9315
|
+
l.isUndefined(b) && p !== n || (t[d] = b);
|
|
9290
9316
|
}), t;
|
|
9291
9317
|
}
|
|
9292
9318
|
const Jr = (r) => {
|
|
@@ -9299,9 +9325,9 @@ const Jr = (r) => {
|
|
|
9299
9325
|
if (q.hasStandardBrowserEnv || q.hasStandardBrowserWebWorkerEnv)
|
|
9300
9326
|
a.setContentType(void 0);
|
|
9301
9327
|
else if (l.isFunction(t.getHeaders)) {
|
|
9302
|
-
const c = t.getHeaders(),
|
|
9303
|
-
Object.entries(c).forEach(([d,
|
|
9304
|
-
|
|
9328
|
+
const c = t.getHeaders(), h = ["content-type", "content-length"];
|
|
9329
|
+
Object.entries(c).forEach(([d, p]) => {
|
|
9330
|
+
h.includes(d.toLowerCase()) && a.set(d, p);
|
|
9305
9331
|
});
|
|
9306
9332
|
}
|
|
9307
9333
|
}
|
|
@@ -9315,67 +9341,67 @@ const Jr = (r) => {
|
|
|
9315
9341
|
const s = Jr(r);
|
|
9316
9342
|
let o = s.data;
|
|
9317
9343
|
const a = W.from(s.headers).normalize();
|
|
9318
|
-
let { responseType: n, onUploadProgress: c, onDownloadProgress:
|
|
9344
|
+
let { responseType: n, onUploadProgress: c, onDownloadProgress: h } = s, d, p, b, y, u;
|
|
9319
9345
|
function v() {
|
|
9320
|
-
y && y(),
|
|
9346
|
+
y && y(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
|
|
9321
9347
|
}
|
|
9322
|
-
let
|
|
9323
|
-
|
|
9348
|
+
let m = new XMLHttpRequest();
|
|
9349
|
+
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
9324
9350
|
function x() {
|
|
9325
|
-
if (!
|
|
9351
|
+
if (!m)
|
|
9326
9352
|
return;
|
|
9327
9353
|
const C = W.from(
|
|
9328
|
-
"getAllResponseHeaders" in
|
|
9354
|
+
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
9329
9355
|
), B = {
|
|
9330
|
-
data: !n || n === "text" || n === "json" ?
|
|
9331
|
-
status:
|
|
9332
|
-
statusText:
|
|
9356
|
+
data: !n || n === "text" || n === "json" ? m.responseText : m.response,
|
|
9357
|
+
status: m.status,
|
|
9358
|
+
statusText: m.statusText,
|
|
9333
9359
|
headers: C,
|
|
9334
9360
|
config: r,
|
|
9335
|
-
request:
|
|
9361
|
+
request: m
|
|
9336
9362
|
};
|
|
9337
9363
|
Wr(function(J) {
|
|
9338
9364
|
t(J), v();
|
|
9339
9365
|
}, function(J) {
|
|
9340
9366
|
i(J), v();
|
|
9341
|
-
}, B),
|
|
9342
|
-
}
|
|
9343
|
-
"onloadend" in
|
|
9344
|
-
!
|
|
9345
|
-
},
|
|
9346
|
-
|
|
9347
|
-
},
|
|
9348
|
-
const B = T && T.message ? T.message : "Network Error", he = new $(B, $.ERR_NETWORK, r,
|
|
9349
|
-
he.event = T || null, i(he),
|
|
9350
|
-
},
|
|
9367
|
+
}, B), m = null;
|
|
9368
|
+
}
|
|
9369
|
+
"onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
|
|
9370
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
9371
|
+
}, m.onabort = function() {
|
|
9372
|
+
m && (i(new $("Request aborted", $.ECONNABORTED, r, m)), m = null);
|
|
9373
|
+
}, m.onerror = function(T) {
|
|
9374
|
+
const B = T && T.message ? T.message : "Network Error", he = new $(B, $.ERR_NETWORK, r, m);
|
|
9375
|
+
he.event = T || null, i(he), m = null;
|
|
9376
|
+
}, m.ontimeout = function() {
|
|
9351
9377
|
let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
9352
9378
|
const B = s.transitional || Vr;
|
|
9353
9379
|
s.timeoutErrorMessage && (T = s.timeoutErrorMessage), i(new $(
|
|
9354
9380
|
T,
|
|
9355
9381
|
B.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
9356
9382
|
r,
|
|
9357
|
-
|
|
9358
|
-
)),
|
|
9359
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in
|
|
9360
|
-
|
|
9361
|
-
}), l.isUndefined(s.withCredentials) || (
|
|
9362
|
-
|
|
9383
|
+
m
|
|
9384
|
+
)), m = null;
|
|
9385
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && l.forEach(a.toJSON(), function(T, B) {
|
|
9386
|
+
m.setRequestHeader(B, T);
|
|
9387
|
+
}), l.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, u] = lt(h, !0), m.addEventListener("progress", b)), c && m.upload && ([p, y] = lt(c), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (d = (C) => {
|
|
9388
|
+
m && (i(!C || C.type ? new Re(null, r, m) : C), m.abort(), m = null);
|
|
9363
9389
|
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
9364
9390
|
const _ = Yo(s.url);
|
|
9365
9391
|
if (_ && q.protocols.indexOf(_) === -1) {
|
|
9366
9392
|
i(new $("Unsupported protocol " + _ + ":", $.ERR_BAD_REQUEST, r));
|
|
9367
9393
|
return;
|
|
9368
9394
|
}
|
|
9369
|
-
|
|
9395
|
+
m.send(o || null);
|
|
9370
9396
|
});
|
|
9371
9397
|
}, ra = (r, e) => {
|
|
9372
9398
|
const { length: t } = r = r ? r.filter(Boolean) : [];
|
|
9373
9399
|
if (e || t) {
|
|
9374
9400
|
let i = new AbortController(), s;
|
|
9375
|
-
const o = function(
|
|
9401
|
+
const o = function(h) {
|
|
9376
9402
|
if (!s) {
|
|
9377
9403
|
s = !0, n();
|
|
9378
|
-
const d =
|
|
9404
|
+
const d = h instanceof Error ? h : this.reason;
|
|
9379
9405
|
i.abort(d instanceof $ ? d : new Re(d instanceof Error ? d.message : d));
|
|
9380
9406
|
}
|
|
9381
9407
|
};
|
|
@@ -9383,11 +9409,11 @@ const Jr = (r) => {
|
|
|
9383
9409
|
a = null, o(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
|
|
9384
9410
|
}, e);
|
|
9385
9411
|
const n = () => {
|
|
9386
|
-
r && (a && clearTimeout(a), a = null, r.forEach((
|
|
9387
|
-
|
|
9412
|
+
r && (a && clearTimeout(a), a = null, r.forEach((h) => {
|
|
9413
|
+
h.unsubscribe ? h.unsubscribe(o) : h.removeEventListener("abort", o);
|
|
9388
9414
|
}), r = null);
|
|
9389
9415
|
};
|
|
9390
|
-
r.forEach((
|
|
9416
|
+
r.forEach((h) => h.addEventListener("abort", o));
|
|
9391
9417
|
const { signal: c } = i;
|
|
9392
9418
|
return c.unsubscribe = () => l.asap(n), c;
|
|
9393
9419
|
}
|
|
@@ -9419,7 +9445,7 @@ const Jr = (r) => {
|
|
|
9419
9445
|
} finally {
|
|
9420
9446
|
await e.cancel();
|
|
9421
9447
|
}
|
|
9422
|
-
},
|
|
9448
|
+
}, mr = (r, e, t, i) => {
|
|
9423
9449
|
const s = ia(r, e);
|
|
9424
9450
|
let o = 0, a, n = (c) => {
|
|
9425
9451
|
a || (a = !0, i && i(c));
|
|
@@ -9427,19 +9453,19 @@ const Jr = (r) => {
|
|
|
9427
9453
|
return new ReadableStream({
|
|
9428
9454
|
async pull(c) {
|
|
9429
9455
|
try {
|
|
9430
|
-
const { done:
|
|
9431
|
-
if (
|
|
9456
|
+
const { done: h, value: d } = await s.next();
|
|
9457
|
+
if (h) {
|
|
9432
9458
|
n(), c.close();
|
|
9433
9459
|
return;
|
|
9434
9460
|
}
|
|
9435
|
-
let
|
|
9461
|
+
let p = d.byteLength;
|
|
9436
9462
|
if (t) {
|
|
9437
|
-
let b = o +=
|
|
9463
|
+
let b = o += p;
|
|
9438
9464
|
t(b);
|
|
9439
9465
|
}
|
|
9440
9466
|
c.enqueue(new Uint8Array(d));
|
|
9441
|
-
} catch (
|
|
9442
|
-
throw n(
|
|
9467
|
+
} catch (h) {
|
|
9468
|
+
throw n(h), h;
|
|
9443
9469
|
}
|
|
9444
9470
|
},
|
|
9445
9471
|
cancel(c) {
|
|
@@ -9467,49 +9493,49 @@ const Jr = (r) => {
|
|
|
9467
9493
|
const { fetch: e, Request: t, Response: i } = r, s = e ? tt(e) : typeof fetch == "function", o = tt(t), a = tt(i);
|
|
9468
9494
|
if (!s)
|
|
9469
9495
|
return !1;
|
|
9470
|
-
const n = s && tt(vr), c = s && (typeof yr == "function" ? /* @__PURE__ */ ((
|
|
9471
|
-
let
|
|
9496
|
+
const n = s && tt(vr), c = s && (typeof yr == "function" ? /* @__PURE__ */ ((u) => (v) => u.encode(v))(new yr()) : async (u) => new Uint8Array(await new t(u).arrayBuffer())), h = o && n && wr(() => {
|
|
9497
|
+
let u = !1;
|
|
9472
9498
|
const v = new t(q.origin, {
|
|
9473
9499
|
body: new vr(),
|
|
9474
9500
|
method: "POST",
|
|
9475
9501
|
get duplex() {
|
|
9476
|
-
return
|
|
9502
|
+
return u = !0, "half";
|
|
9477
9503
|
}
|
|
9478
9504
|
}).headers.has("Content-Type");
|
|
9479
|
-
return
|
|
9480
|
-
}), d = a && n && wr(() => l.isReadableStream(new i("").body)),
|
|
9481
|
-
stream: d && ((
|
|
9505
|
+
return u && !v;
|
|
9506
|
+
}), d = a && n && wr(() => l.isReadableStream(new i("").body)), p = {
|
|
9507
|
+
stream: d && ((u) => u.body)
|
|
9482
9508
|
};
|
|
9483
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
9484
|
-
!
|
|
9485
|
-
let x = v && v[
|
|
9509
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
9510
|
+
!p[u] && (p[u] = (v, m) => {
|
|
9511
|
+
let x = v && v[u];
|
|
9486
9512
|
if (x)
|
|
9487
9513
|
return x.call(v);
|
|
9488
|
-
throw new $(`Response type '${
|
|
9514
|
+
throw new $(`Response type '${u}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
9489
9515
|
});
|
|
9490
9516
|
});
|
|
9491
|
-
const b = async (
|
|
9492
|
-
if (
|
|
9517
|
+
const b = async (u) => {
|
|
9518
|
+
if (u == null)
|
|
9493
9519
|
return 0;
|
|
9494
|
-
if (l.isBlob(
|
|
9495
|
-
return
|
|
9496
|
-
if (l.isSpecCompliantForm(
|
|
9520
|
+
if (l.isBlob(u))
|
|
9521
|
+
return u.size;
|
|
9522
|
+
if (l.isSpecCompliantForm(u))
|
|
9497
9523
|
return (await new t(q.origin, {
|
|
9498
9524
|
method: "POST",
|
|
9499
|
-
body:
|
|
9525
|
+
body: u
|
|
9500
9526
|
}).arrayBuffer()).byteLength;
|
|
9501
|
-
if (l.isArrayBufferView(
|
|
9502
|
-
return
|
|
9503
|
-
if (l.isURLSearchParams(
|
|
9504
|
-
return (await c(
|
|
9505
|
-
}, y = async (
|
|
9506
|
-
const
|
|
9507
|
-
return
|
|
9527
|
+
if (l.isArrayBufferView(u) || l.isArrayBuffer(u))
|
|
9528
|
+
return u.byteLength;
|
|
9529
|
+
if (l.isURLSearchParams(u) && (u = u + ""), l.isString(u))
|
|
9530
|
+
return (await c(u)).byteLength;
|
|
9531
|
+
}, y = async (u, v) => {
|
|
9532
|
+
const m = l.toFiniteNumber(u.getContentLength());
|
|
9533
|
+
return m ?? b(v);
|
|
9508
9534
|
};
|
|
9509
|
-
return async (
|
|
9535
|
+
return async (u) => {
|
|
9510
9536
|
let {
|
|
9511
9537
|
url: v,
|
|
9512
|
-
method:
|
|
9538
|
+
method: m,
|
|
9513
9539
|
data: x,
|
|
9514
9540
|
signal: _,
|
|
9515
9541
|
cancelToken: C,
|
|
@@ -9520,7 +9546,7 @@ const Jr = (r) => {
|
|
|
9520
9546
|
headers: bt,
|
|
9521
9547
|
withCredentials: Ge = "same-origin",
|
|
9522
9548
|
fetchOptions: Ht
|
|
9523
|
-
} = Jr(
|
|
9549
|
+
} = Jr(u), jt = e || fetch;
|
|
9524
9550
|
J = J ? (J + "").toLowerCase() : "text";
|
|
9525
9551
|
let Qe = ra([_, C && C.toAbortSignal()], T), ze = null;
|
|
9526
9552
|
const pe = Qe && Qe.unsubscribe && (() => {
|
|
@@ -9528,7 +9554,7 @@ const Jr = (r) => {
|
|
|
9528
9554
|
});
|
|
9529
9555
|
let Vt;
|
|
9530
9556
|
try {
|
|
9531
|
-
if (he &&
|
|
9557
|
+
if (he && h && m !== "get" && m !== "head" && (Vt = await y(bt, x)) !== 0) {
|
|
9532
9558
|
let le = new t(v, {
|
|
9533
9559
|
method: "POST",
|
|
9534
9560
|
body: x,
|
|
@@ -9537,16 +9563,16 @@ const Jr = (r) => {
|
|
|
9537
9563
|
if (l.isFormData(x) && (xe = le.headers.get("content-type")) && bt.setContentType(xe), le.body) {
|
|
9538
9564
|
const [vt, et] = ur(
|
|
9539
9565
|
Vt,
|
|
9540
|
-
lt(
|
|
9566
|
+
lt(gr(he))
|
|
9541
9567
|
);
|
|
9542
|
-
x =
|
|
9568
|
+
x = mr(le.body, br, vt, et);
|
|
9543
9569
|
}
|
|
9544
9570
|
}
|
|
9545
9571
|
l.isString(Ge) || (Ge = Ge ? "include" : "omit");
|
|
9546
9572
|
const re = o && "credentials" in t.prototype, Zt = {
|
|
9547
9573
|
...Ht,
|
|
9548
9574
|
signal: Qe,
|
|
9549
|
-
method:
|
|
9575
|
+
method: m.toUpperCase(),
|
|
9550
9576
|
headers: bt.normalize().toJSON(),
|
|
9551
9577
|
body: x,
|
|
9552
9578
|
duplex: "half",
|
|
@@ -9562,34 +9588,34 @@ const Jr = (r) => {
|
|
|
9562
9588
|
});
|
|
9563
9589
|
const xe = l.toFiniteNumber(ne.headers.get("content-length")), [vt, et] = B && ur(
|
|
9564
9590
|
xe,
|
|
9565
|
-
lt(
|
|
9591
|
+
lt(gr(B), !0)
|
|
9566
9592
|
) || [];
|
|
9567
9593
|
ne = new i(
|
|
9568
|
-
|
|
9594
|
+
mr(ne.body, br, vt, () => {
|
|
9569
9595
|
et && et(), pe && pe();
|
|
9570
9596
|
}),
|
|
9571
9597
|
le
|
|
9572
9598
|
);
|
|
9573
9599
|
}
|
|
9574
9600
|
J = J || "text";
|
|
9575
|
-
let ts = await
|
|
9601
|
+
let ts = await p[l.findKey(p, J) || "text"](ne, u);
|
|
9576
9602
|
return !Yt && pe && pe(), await new Promise((le, xe) => {
|
|
9577
9603
|
Wr(le, xe, {
|
|
9578
9604
|
data: ts,
|
|
9579
9605
|
headers: W.from(ne.headers),
|
|
9580
9606
|
status: ne.status,
|
|
9581
9607
|
statusText: ne.statusText,
|
|
9582
|
-
config:
|
|
9608
|
+
config: u,
|
|
9583
9609
|
request: ze
|
|
9584
9610
|
});
|
|
9585
9611
|
});
|
|
9586
9612
|
} catch (re) {
|
|
9587
9613
|
throw pe && pe(), re && re.name === "TypeError" && /Load failed|fetch/i.test(re.message) ? Object.assign(
|
|
9588
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
9614
|
+
new $("Network Error", $.ERR_NETWORK, u, ze),
|
|
9589
9615
|
{
|
|
9590
9616
|
cause: re.cause || re
|
|
9591
9617
|
}
|
|
9592
|
-
) : $.from(re, re && re.code,
|
|
9618
|
+
) : $.from(re, re && re.code, u, ze);
|
|
9593
9619
|
}
|
|
9594
9620
|
};
|
|
9595
9621
|
}, la = /* @__PURE__ */ new Map(), Xr = (r) => {
|
|
@@ -9599,20 +9625,20 @@ const Jr = (r) => {
|
|
|
9599
9625
|
s,
|
|
9600
9626
|
t
|
|
9601
9627
|
];
|
|
9602
|
-
let a = o.length, n = a, c,
|
|
9628
|
+
let a = o.length, n = a, c, h, d = la;
|
|
9603
9629
|
for (; n--; )
|
|
9604
|
-
c = o[n],
|
|
9605
|
-
return
|
|
9630
|
+
c = o[n], h = d.get(c), h === void 0 && d.set(c, h = n ? /* @__PURE__ */ new Map() : na(e)), d = h;
|
|
9631
|
+
return h;
|
|
9606
9632
|
};
|
|
9607
9633
|
Xr();
|
|
9608
|
-
const
|
|
9634
|
+
const Ft = {
|
|
9609
9635
|
http: _o,
|
|
9610
9636
|
xhr: ta,
|
|
9611
9637
|
fetch: {
|
|
9612
9638
|
get: Xr
|
|
9613
9639
|
}
|
|
9614
9640
|
};
|
|
9615
|
-
l.forEach(
|
|
9641
|
+
l.forEach(Ft, (r, e) => {
|
|
9616
9642
|
if (r) {
|
|
9617
9643
|
try {
|
|
9618
9644
|
Object.defineProperty(r, "name", { value: e });
|
|
@@ -9630,7 +9656,7 @@ function da(r, e) {
|
|
|
9630
9656
|
for (let a = 0; a < t; a++) {
|
|
9631
9657
|
i = r[a];
|
|
9632
9658
|
let n;
|
|
9633
|
-
if (s = i, !ca(i) && (s =
|
|
9659
|
+
if (s = i, !ca(i) && (s = Ft[(n = String(i)).toLowerCase()], s === void 0))
|
|
9634
9660
|
throw new $(`Unknown adapter '${n}'`);
|
|
9635
9661
|
if (s && (l.isFunction(s) || (s = s.get(e))))
|
|
9636
9662
|
break;
|
|
@@ -9638,7 +9664,7 @@ function da(r, e) {
|
|
|
9638
9664
|
}
|
|
9639
9665
|
if (!s) {
|
|
9640
9666
|
const a = Object.entries(o).map(
|
|
9641
|
-
([c,
|
|
9667
|
+
([c, h]) => `adapter ${c} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
9642
9668
|
);
|
|
9643
9669
|
let n = t ? a.length > 1 ? `since :
|
|
9644
9670
|
` + a.map(xr).join(`
|
|
@@ -9660,7 +9686,7 @@ const Gr = {
|
|
|
9660
9686
|
* Exposes all known adapters
|
|
9661
9687
|
* @type {Object<string, Function|Object>}
|
|
9662
9688
|
*/
|
|
9663
|
-
adapters:
|
|
9689
|
+
adapters: Ft
|
|
9664
9690
|
};
|
|
9665
9691
|
function kt(r) {
|
|
9666
9692
|
if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
|
|
@@ -9684,14 +9710,14 @@ function $r(r) {
|
|
|
9684
9710
|
), i.response.headers = W.from(i.response.headers))), Promise.reject(i);
|
|
9685
9711
|
});
|
|
9686
9712
|
}
|
|
9687
|
-
const Qr = "1.13.2",
|
|
9713
|
+
const Qr = "1.13.2", mt = {};
|
|
9688
9714
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((r, e) => {
|
|
9689
|
-
|
|
9715
|
+
mt[r] = function(i) {
|
|
9690
9716
|
return typeof i === r || "a" + (e < 1 ? "n " : " ") + r;
|
|
9691
9717
|
};
|
|
9692
9718
|
});
|
|
9693
9719
|
const kr = {};
|
|
9694
|
-
|
|
9720
|
+
mt.transitional = function(e, t, i) {
|
|
9695
9721
|
function s(o, a) {
|
|
9696
9722
|
return "[Axios v" + Qr + "] Transitional option '" + o + "'" + a + (i ? ". " + i : "");
|
|
9697
9723
|
}
|
|
@@ -9704,7 +9730,7 @@ gt.transitional = function(e, t, i) {
|
|
|
9704
9730
|
return t && !kr[a] && (kr[a] = !0), e ? e(o, a, n) : !0;
|
|
9705
9731
|
};
|
|
9706
9732
|
};
|
|
9707
|
-
|
|
9733
|
+
mt.spelling = function(e) {
|
|
9708
9734
|
return (t, i) => !0;
|
|
9709
9735
|
};
|
|
9710
9736
|
function ha(r, e, t) {
|
|
@@ -9726,7 +9752,7 @@ function ha(r, e, t) {
|
|
|
9726
9752
|
}
|
|
9727
9753
|
const ot = {
|
|
9728
9754
|
assertOptions: ha,
|
|
9729
|
-
validators:
|
|
9755
|
+
validators: mt
|
|
9730
9756
|
}, se = ot.validators;
|
|
9731
9757
|
class be {
|
|
9732
9758
|
constructor(e) {
|
|
@@ -9782,8 +9808,8 @@ class be {
|
|
|
9782
9808
|
);
|
|
9783
9809
|
o && l.forEach(
|
|
9784
9810
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
9785
|
-
(
|
|
9786
|
-
delete o[
|
|
9811
|
+
(u) => {
|
|
9812
|
+
delete o[u];
|
|
9787
9813
|
}
|
|
9788
9814
|
), t.headers = W.concat(a, o);
|
|
9789
9815
|
const n = [];
|
|
@@ -9791,35 +9817,35 @@ class be {
|
|
|
9791
9817
|
this.interceptors.request.forEach(function(v) {
|
|
9792
9818
|
typeof v.runWhen == "function" && v.runWhen(t) === !1 || (c = c && v.synchronous, n.unshift(v.fulfilled, v.rejected));
|
|
9793
9819
|
});
|
|
9794
|
-
const
|
|
9820
|
+
const h = [];
|
|
9795
9821
|
this.interceptors.response.forEach(function(v) {
|
|
9796
|
-
|
|
9822
|
+
h.push(v.fulfilled, v.rejected);
|
|
9797
9823
|
});
|
|
9798
|
-
let d,
|
|
9824
|
+
let d, p = 0, b;
|
|
9799
9825
|
if (!c) {
|
|
9800
|
-
const
|
|
9801
|
-
for (
|
|
9802
|
-
d = d.then(
|
|
9826
|
+
const u = [$r.bind(this), void 0];
|
|
9827
|
+
for (u.unshift(...n), u.push(...h), b = u.length, d = Promise.resolve(t); p < b; )
|
|
9828
|
+
d = d.then(u[p++], u[p++]);
|
|
9803
9829
|
return d;
|
|
9804
9830
|
}
|
|
9805
9831
|
b = n.length;
|
|
9806
9832
|
let y = t;
|
|
9807
|
-
for (;
|
|
9808
|
-
const
|
|
9833
|
+
for (; p < b; ) {
|
|
9834
|
+
const u = n[p++], v = n[p++];
|
|
9809
9835
|
try {
|
|
9810
|
-
y =
|
|
9811
|
-
} catch (
|
|
9812
|
-
v.call(this,
|
|
9836
|
+
y = u(y);
|
|
9837
|
+
} catch (m) {
|
|
9838
|
+
v.call(this, m);
|
|
9813
9839
|
break;
|
|
9814
9840
|
}
|
|
9815
9841
|
}
|
|
9816
9842
|
try {
|
|
9817
9843
|
d = $r.call(this, y);
|
|
9818
|
-
} catch (
|
|
9819
|
-
return Promise.reject(
|
|
9844
|
+
} catch (u) {
|
|
9845
|
+
return Promise.reject(u);
|
|
9820
9846
|
}
|
|
9821
|
-
for (
|
|
9822
|
-
d = d.then(p
|
|
9847
|
+
for (p = 0, b = h.length; p < b; )
|
|
9848
|
+
d = d.then(h[p++], h[p++]);
|
|
9823
9849
|
return d;
|
|
9824
9850
|
}
|
|
9825
9851
|
getUri(e) {
|
|
@@ -9852,7 +9878,7 @@ l.forEach(["post", "put", "patch"], function(e) {
|
|
|
9852
9878
|
}
|
|
9853
9879
|
be.prototype[e] = t(), be.prototype[e + "Form"] = t(!0);
|
|
9854
9880
|
});
|
|
9855
|
-
class
|
|
9881
|
+
class qt {
|
|
9856
9882
|
constructor(e) {
|
|
9857
9883
|
if (typeof e != "function")
|
|
9858
9884
|
throw new TypeError("executor must be a function.");
|
|
@@ -9918,7 +9944,7 @@ class Ft {
|
|
|
9918
9944
|
static source() {
|
|
9919
9945
|
let e;
|
|
9920
9946
|
return {
|
|
9921
|
-
token: new
|
|
9947
|
+
token: new qt(function(s) {
|
|
9922
9948
|
e = s;
|
|
9923
9949
|
}),
|
|
9924
9950
|
cancel: e
|
|
@@ -10016,10 +10042,10 @@ function es(r) {
|
|
|
10016
10042
|
const P = es(Xe);
|
|
10017
10043
|
P.Axios = be;
|
|
10018
10044
|
P.CanceledError = Re;
|
|
10019
|
-
P.CancelToken =
|
|
10045
|
+
P.CancelToken = qt;
|
|
10020
10046
|
P.isCancel = Yr;
|
|
10021
10047
|
P.VERSION = Qr;
|
|
10022
|
-
P.toFormData =
|
|
10048
|
+
P.toFormData = ft;
|
|
10023
10049
|
P.AxiosError = $;
|
|
10024
10050
|
P.Cancel = P.CanceledError;
|
|
10025
10051
|
P.all = function(e) {
|
|
@@ -10070,8 +10096,8 @@ const ya = ({ baseUrl: r }) => {
|
|
|
10070
10096
|
},
|
|
10071
10097
|
credentials: "include"
|
|
10072
10098
|
}), c = {};
|
|
10073
|
-
if (n.headers.forEach((
|
|
10074
|
-
c[d] =
|
|
10099
|
+
if (n.headers.forEach((h, d) => {
|
|
10100
|
+
c[d] = h;
|
|
10075
10101
|
}), n.headers.get("content-type"), n.status === 400)
|
|
10076
10102
|
throw t = !0, await n.text(), new Error("No refresh token available");
|
|
10077
10103
|
if (!n.ok)
|
|
@@ -10102,7 +10128,7 @@ const ya = ({ baseUrl: r }) => {
|
|
|
10102
10128
|
), e;
|
|
10103
10129
|
};
|
|
10104
10130
|
function wa() {
|
|
10105
|
-
Us(),
|
|
10131
|
+
Us(), Fs(), Hs(), Vs(), Ks(), Xs(), $i(), Si(), Ci(), Ai(), Di(), Oi(), Ys(), zi(), Ii(), Bi();
|
|
10106
10132
|
}
|
|
10107
10133
|
export {
|
|
10108
10134
|
E as AuthForm,
|
|
@@ -10111,7 +10137,7 @@ export {
|
|
|
10111
10137
|
Ce as BaseCard,
|
|
10112
10138
|
D as BaseDatePicker,
|
|
10113
10139
|
N as BaseDateTimePicker,
|
|
10114
|
-
|
|
10140
|
+
F as BaseDrawer,
|
|
10115
10141
|
Ee as BaseIcon,
|
|
10116
10142
|
G as BaseInput,
|
|
10117
10143
|
R as BaseSelect,
|
|
@@ -10125,7 +10151,7 @@ export {
|
|
|
10125
10151
|
ya as createApiClient,
|
|
10126
10152
|
wa as registerAll,
|
|
10127
10153
|
Us as registerAuthForm,
|
|
10128
|
-
|
|
10154
|
+
Fs as registerBaseButton,
|
|
10129
10155
|
Hs as registerBaseCard,
|
|
10130
10156
|
Vs as registerBaseDatePicker,
|
|
10131
10157
|
Ks as registerBaseDateTimePicker,
|