@cal.macconnachie/web-components 2.5.5 → 2.5.7
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 +1 -0
- package/dist/index.js +403 -390
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const ls = (r) => new Dr(typeof r == "string" ? r : r + "", void 0, Mt), B = (r,
|
|
|
35
35
|
for (const i of e.cssRules) t += i.cssText;
|
|
36
36
|
return ls(t);
|
|
37
37
|
})(r) : r;
|
|
38
|
-
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols:
|
|
38
|
+
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: gs, getPrototypeOf: fs } = Object, ut = globalThis, rr = ut.trustedTypes, ms = rr ? rr.emptyScript : "", bs = ut.reactiveElementPolyfillSupport, Ue = (r, e) => r, dt = { toAttribute(r, e) {
|
|
39
39
|
switch (e) {
|
|
40
40
|
case Boolean:
|
|
41
41
|
r = r ? ms : null;
|
|
@@ -94,13 +94,13 @@ let Se = class extends HTMLElement {
|
|
|
94
94
|
}
|
|
95
95
|
static _$Ei() {
|
|
96
96
|
if (this.hasOwnProperty(Ue("elementProperties"))) return;
|
|
97
|
-
const e =
|
|
97
|
+
const e = fs(this);
|
|
98
98
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
99
99
|
}
|
|
100
100
|
static finalize() {
|
|
101
101
|
if (this.hasOwnProperty(Ue("finalized"))) return;
|
|
102
102
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ue("properties"))) {
|
|
103
|
-
const t = this.properties, i = [...us(t), ...
|
|
103
|
+
const t = this.properties, i = [...us(t), ...gs(t)];
|
|
104
104
|
for (const s of i) this.createProperty(s, t[s]);
|
|
105
105
|
}
|
|
106
106
|
const e = this[Symbol.metadata];
|
|
@@ -247,9 +247,9 @@ let Se = class extends HTMLElement {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
Se.elementStyles = [], Se.shadowRootOptions = { mode: "open" }, Se[Ue("elementProperties")] = /* @__PURE__ */ new Map(), Se[Ue("finalized")] = /* @__PURE__ */ new Map(), bs?.({ ReactiveElement: Se }), (ut.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
|
-
const Lt = globalThis, ht = Lt.trustedTypes, ir = ht ? ht.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Or = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + he, vs = `<${Pr}>`, we = document,
|
|
251
|
-
\f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g,
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }),
|
|
250
|
+
const Lt = globalThis, ht = Lt.trustedTypes, ir = ht ? ht.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Or = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + he, vs = `<${Pr}>`, we = document, He = () => we.createComment(""), Fe = (r) => r === null || typeof r != "object" && typeof r != "function", Bt = Array.isArray, ys = (r) => Bt(r) || typeof r?.[Symbol.iterator] == "function", St = `[
|
|
251
|
+
\f\r]`, Le = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, fe = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = ws(1), ne = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), cr = /* @__PURE__ */ new WeakMap(), be = we.createTreeWalker(we, 129);
|
|
253
253
|
function zr(r, e) {
|
|
254
254
|
if (!Bt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
255
|
return ir !== void 0 ? ir.createHTML(e) : e;
|
|
@@ -260,8 +260,8 @@ const xs = (r, e) => {
|
|
|
260
260
|
for (let n = 0; n < t; n++) {
|
|
261
261
|
const l = r[n];
|
|
262
262
|
let h, c, p = -1, b = 0;
|
|
263
|
-
for (; b < l.length && (a.lastIndex = b, c = a.exec(l), c !== null); ) b = a.lastIndex, a === Le ? c[1] === "!--" ? a = or : c[1] !== void 0 ? a = ar : c[2] !== void 0 ? (Rr.test(c[2]) && (s = RegExp("</" + c[2], "g")), a =
|
|
264
|
-
const y = a ===
|
|
263
|
+
for (; b < l.length && (a.lastIndex = b, c = a.exec(l), c !== null); ) b = a.lastIndex, a === Le ? c[1] === "!--" ? a = or : c[1] !== void 0 ? a = ar : c[2] !== void 0 ? (Rr.test(c[2]) && (s = RegExp("</" + c[2], "g")), a = fe) : c[3] !== void 0 && (a = fe) : a === fe ? c[0] === ">" ? (a = s ?? Le, p = -1) : c[1] === void 0 ? p = -2 : (p = a.lastIndex - c[2].length, h = c[1], a = c[3] === void 0 ? fe : c[3] === '"' ? lr : nr) : a === lr || a === nr ? a = fe : a === or || a === ar ? a = Le : (a = fe, s = void 0);
|
|
264
|
+
const y = a === fe && r[n + 1].startsWith("/>") ? " " : "";
|
|
265
265
|
o += a === Le ? l + vs : p >= 0 ? (i.push(h), l.slice(0, p) + Or + l.slice(p) + he + y) : l + he + (p === -2 ? n : y);
|
|
266
266
|
}
|
|
267
267
|
return [zr(r, o + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
@@ -279,15 +279,15 @@ class je {
|
|
|
279
279
|
for (; (s = be.nextNode()) !== null && l.length < n; ) {
|
|
280
280
|
if (s.nodeType === 1) {
|
|
281
281
|
if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Or)) {
|
|
282
|
-
const b = c[a++], y = s.getAttribute(p).split(he),
|
|
283
|
-
l.push({ type: 1, index: o, name:
|
|
282
|
+
const b = c[a++], y = s.getAttribute(p).split(he), f = /([.?@])?(.*)/.exec(b);
|
|
283
|
+
l.push({ type: 1, index: o, name: f[2], strings: y, ctor: f[1] === "." ? ks : f[1] === "?" ? Ss : f[1] === "@" ? _s : gt }), s.removeAttribute(p);
|
|
284
284
|
} else p.startsWith(he) && (l.push({ type: 6, index: o }), s.removeAttribute(p));
|
|
285
285
|
if (Rr.test(s.tagName)) {
|
|
286
286
|
const p = s.textContent.split(he), b = p.length - 1;
|
|
287
287
|
if (b > 0) {
|
|
288
288
|
s.textContent = ht ? ht.emptyScript : "";
|
|
289
|
-
for (let y = 0; y < b; y++) s.append(p[y],
|
|
290
|
-
s.append(p[b],
|
|
289
|
+
for (let y = 0; y < b; y++) s.append(p[y], He()), be.nextNode(), l.push({ type: 2, index: ++o });
|
|
290
|
+
s.append(p[b], He());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
} else if (s.nodeType === 8) if (s.data === Pr) l.push({ type: 2, index: o });
|
|
@@ -306,7 +306,7 @@ class je {
|
|
|
306
306
|
function _e(r, e, t = r, i) {
|
|
307
307
|
if (e === ne) 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 = _e(r, s._$AS(r, e.values), s, i)), e;
|
|
311
311
|
}
|
|
312
312
|
let $s = class {
|
|
@@ -356,7 +356,7 @@ class Ce {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, t = this) {
|
|
359
|
-
e = _e(this, e, t),
|
|
359
|
+
e = _e(this, e, t), Fe(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== ne && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ys(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -365,7 +365,7 @@ class Ce {
|
|
|
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(we.createTextNode(e)), this._$AH = e;
|
|
369
369
|
}
|
|
370
370
|
$(e) {
|
|
371
371
|
const { values: t, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = je.createElement(zr(i.h, i.h[0]), this.options)), i);
|
|
@@ -383,7 +383,7 @@ class Ce {
|
|
|
383
383
|
Bt(this._$AH) || (this._$AH = [], this._$AR());
|
|
384
384
|
const t = this._$AH;
|
|
385
385
|
let i, s = 0;
|
|
386
|
-
for (const o of e) s === t.length ? t.push(i = new Ce(this.O(
|
|
386
|
+
for (const o of e) s === t.length ? t.push(i = new Ce(this.O(He()), this.O(He()), this, this.options)) : i = t[s], i._$AI(o), s++;
|
|
387
387
|
s < t.length && (this._$AR(i && i._$AB.nextSibling, s), t.length = s);
|
|
388
388
|
}
|
|
389
389
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -396,7 +396,7 @@ class Ce {
|
|
|
396
396
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class gt {
|
|
400
400
|
get tagName() {
|
|
401
401
|
return this.element.tagName;
|
|
402
402
|
}
|
|
@@ -409,11 +409,11 @@ class ft {
|
|
|
409
409
|
_$AI(e, t = this, i, s) {
|
|
410
410
|
const o = this.strings;
|
|
411
411
|
let a = !1;
|
|
412
|
-
if (o === void 0) e = _e(this, e, t, 0), a = !
|
|
412
|
+
if (o === void 0) e = _e(this, e, t, 0), a = !Fe(e) || e !== this._$AH && e !== ne, a && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const n = e;
|
|
415
415
|
let l, h;
|
|
416
|
-
for (e = o[0], l = 0; l < o.length - 1; l++) h = _e(this, n[i + l], t, l), h === ne && (h = this._$AH[l]), a ||= !
|
|
416
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) h = _e(this, n[i + l], t, l), h === ne && (h = this._$AH[l]), a ||= !Fe(h) || h !== this._$AH[l], h === k ? e = k : e !== k && (e += (h ?? "") + o[l + 1]), this._$AH[l] = h;
|
|
417
417
|
}
|
|
418
418
|
a && !s && this.j(e);
|
|
419
419
|
}
|
|
@@ -421,7 +421,7 @@ class ft {
|
|
|
421
421
|
e === k ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class ks extends
|
|
424
|
+
class ks extends gt {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
@@ -429,7 +429,7 @@ class ks extends ft {
|
|
|
429
429
|
this.element[this.name] = e === k ? void 0 : e;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class Ss extends
|
|
432
|
+
class Ss extends gt {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
@@ -437,7 +437,7 @@ class Ss extends ft {
|
|
|
437
437
|
this.element.toggleAttribute(this.name, !!e && e !== k);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
class _s extends
|
|
440
|
+
class _s extends gt {
|
|
441
441
|
constructor(e, t, i, s, o) {
|
|
442
442
|
super(e, t, i, s, o), this.type = 5;
|
|
443
443
|
}
|
|
@@ -468,7 +468,7 @@ const Ts = (r, e, t) => {
|
|
|
468
468
|
let s = i._$litPart$;
|
|
469
469
|
if (s === void 0) {
|
|
470
470
|
const o = t?.renderBefore ?? null;
|
|
471
|
-
i._$litPart$ = s = new Ce(e.insertBefore(
|
|
471
|
+
i._$litPart$ = s = new Ce(e.insertBefore(He(), o), o, void 0, t ?? {});
|
|
472
472
|
}
|
|
473
473
|
return s._$AI(r), s;
|
|
474
474
|
};
|
|
@@ -539,7 +539,7 @@ function V(r, e) {
|
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
541
|
const Ut = { ATTRIBUTE: 1, CHILD: 2 }, qt = (r) => (...e) => ({ _$litDirective$: r, values: e });
|
|
542
|
-
class
|
|
542
|
+
class Ht {
|
|
543
543
|
constructor(e) {
|
|
544
544
|
}
|
|
545
545
|
get _$AU() {
|
|
@@ -582,7 +582,7 @@ const hr = (r, e, t) => {
|
|
|
582
582
|
const i = /* @__PURE__ */ new Map();
|
|
583
583
|
for (let s = e; s <= t; s++) i.set(r[s], s);
|
|
584
584
|
return i;
|
|
585
|
-
}, pr = qt(class extends
|
|
585
|
+
}, pr = qt(class extends Ht {
|
|
586
586
|
constructor(r) {
|
|
587
587
|
if (super(r), r.type !== Ut.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
588
588
|
}
|
|
@@ -601,14 +601,14 @@ const hr = (r, e, t) => {
|
|
|
601
601
|
const s = Ls(r), { values: o, keys: a } = this.dt(e, t, i);
|
|
602
602
|
if (!Array.isArray(s)) return this.ut = a, o;
|
|
603
603
|
const n = this.ut ??= [], l = [];
|
|
604
|
-
let h, c, p = 0, b = s.length - 1, y = 0,
|
|
605
|
-
for (; p <= b && y <=
|
|
604
|
+
let h, c, p = 0, b = s.length - 1, y = 0, f = o.length - 1;
|
|
605
|
+
for (; p <= b && y <= f; ) if (s[p] === null) p++;
|
|
606
606
|
else if (s[b] === null) b--;
|
|
607
607
|
else if (n[p] === a[y]) l[y] = me(s[p], o[y]), p++, y++;
|
|
608
|
-
else if (n[b] === a[
|
|
609
|
-
else if (n[p] === a[
|
|
608
|
+
else if (n[b] === a[f]) l[f] = me(s[b], o[f]), b--, f--;
|
|
609
|
+
else if (n[p] === a[f]) l[f] = me(s[p], o[f]), Be(r, l[f + 1], s[p]), p++, f--;
|
|
610
610
|
else if (n[b] === a[y]) l[y] = me(s[b], o[y]), Be(r, s[p], s[b]), b--, y++;
|
|
611
|
-
else if (h === void 0 && (h = hr(a, y,
|
|
611
|
+
else if (h === void 0 && (h = hr(a, y, f), c = hr(n, p, b)), h.has(n[p])) if (h.has(n[b])) {
|
|
612
612
|
const v = c.get(a[y]), m = v !== void 0 ? s[v] : null;
|
|
613
613
|
if (m === null) {
|
|
614
614
|
const x = Be(r, s[p]);
|
|
@@ -617,8 +617,8 @@ const hr = (r, e, t) => {
|
|
|
617
617
|
y++;
|
|
618
618
|
} else _t(s[b]), b--;
|
|
619
619
|
else _t(s[p]), p++;
|
|
620
|
-
for (; y <=
|
|
621
|
-
const v = Be(r, l[
|
|
620
|
+
for (; y <= f; ) {
|
|
621
|
+
const v = Be(r, l[f + 1]);
|
|
622
622
|
me(v, o[y]), l[y++] = v;
|
|
623
623
|
}
|
|
624
624
|
for (; p <= b; ) {
|
|
@@ -689,7 +689,7 @@ const R = ({
|
|
|
689
689
|
password: p,
|
|
690
690
|
accessToken: b,
|
|
691
691
|
refreshToken: y,
|
|
692
|
-
idToken:
|
|
692
|
+
idToken: f
|
|
693
693
|
}) => {
|
|
694
694
|
const v = await fetch(`${r}${e.login}`, {
|
|
695
695
|
method: "POST",
|
|
@@ -702,7 +702,7 @@ const R = ({
|
|
|
702
702
|
password: p,
|
|
703
703
|
accessToken: b,
|
|
704
704
|
refreshToken: y,
|
|
705
|
-
idToken:
|
|
705
|
+
idToken: f
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
if (!v.ok) {
|
|
@@ -775,7 +775,7 @@ const R = ({
|
|
|
775
775
|
password: p,
|
|
776
776
|
phone_number: b,
|
|
777
777
|
family_name: y,
|
|
778
|
-
given_name:
|
|
778
|
+
given_name: f,
|
|
779
779
|
code: v
|
|
780
780
|
}) => {
|
|
781
781
|
const m = await fetch(`${r}${e.register}`, {
|
|
@@ -789,7 +789,7 @@ const R = ({
|
|
|
789
789
|
password: p,
|
|
790
790
|
phone_number: b,
|
|
791
791
|
family_name: y,
|
|
792
|
-
given_name:
|
|
792
|
+
given_name: f,
|
|
793
793
|
code: v
|
|
794
794
|
})
|
|
795
795
|
});
|
|
@@ -834,8 +834,8 @@ const R = ({
|
|
|
834
834
|
})
|
|
835
835
|
});
|
|
836
836
|
if (!y.ok) {
|
|
837
|
-
const
|
|
838
|
-
throw new Error(
|
|
837
|
+
const f = await y.json();
|
|
838
|
+
throw new Error(f.message || f.error || "Failed to reset password");
|
|
839
839
|
}
|
|
840
840
|
return y.json();
|
|
841
841
|
}
|
|
@@ -844,7 +844,7 @@ const R = ({
|
|
|
844
844
|
if (r) return r;
|
|
845
845
|
const e = new URL(window.location.href);
|
|
846
846
|
return Us.forEach((t) => e.searchParams.delete(t)), e.toString();
|
|
847
|
-
},
|
|
847
|
+
}, Hs = ({
|
|
848
848
|
domain: r,
|
|
849
849
|
cognitoRegion: e,
|
|
850
850
|
userPoolId: t,
|
|
@@ -898,7 +898,7 @@ const R = ({
|
|
|
898
898
|
}, y = async () => {
|
|
899
899
|
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
901
|
-
},
|
|
901
|
+
}, f = (x) => {
|
|
902
902
|
const _ = sessionStorage.getItem("oauth_state");
|
|
903
903
|
return sessionStorage.removeItem("oauth_state"), _ === x;
|
|
904
904
|
}, v = () => {
|
|
@@ -908,7 +908,7 @@ const R = ({
|
|
|
908
908
|
return {
|
|
909
909
|
redirectToGoogleAuth: p,
|
|
910
910
|
redirectToAppleAuth: y,
|
|
911
|
-
validateState:
|
|
911
|
+
validateState: f,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
914
|
const _ = v();
|
|
@@ -935,10 +935,10 @@ const R = ({
|
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
};
|
|
938
|
-
var
|
|
938
|
+
var Fs = Object.defineProperty, E = (r, e, t, i) => {
|
|
939
939
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
940
940
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
941
|
-
return s &&
|
|
941
|
+
return s && Fs(e, t, s), s;
|
|
942
942
|
};
|
|
943
943
|
const js = [
|
|
944
944
|
"code",
|
|
@@ -1160,7 +1160,7 @@ class C extends M {
|
|
|
1160
1160
|
return null;
|
|
1161
1161
|
if (!this.oauthService) {
|
|
1162
1162
|
const e = this.oauthRedirectUri?.trim() ? this.oauthRedirectUri.trim() : void 0;
|
|
1163
|
-
this.oauthService =
|
|
1163
|
+
this.oauthService = Hs({
|
|
1164
1164
|
domain: this.oauthDomain.trim(),
|
|
1165
1165
|
cognitoRegion: this.oauthRegion.trim(),
|
|
1166
1166
|
userPoolId: this.oauthUserPoolId.trim(),
|
|
@@ -1362,8 +1362,8 @@ class C extends M {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
render() {
|
|
1365
|
-
return this.isLoading && this.hasHandledOAuthCallback ?
|
|
1366
|
-
${this.logoUrl.length > 0 ?
|
|
1365
|
+
return this.isLoading && this.hasHandledOAuthCallback ? g`
|
|
1366
|
+
${this.logoUrl.length > 0 ? g`
|
|
1367
1367
|
<header class="modal-header">
|
|
1368
1368
|
<div class="auth-header">
|
|
1369
1369
|
<img
|
|
@@ -1393,9 +1393,9 @@ class C extends M {
|
|
|
1393
1393
|
${this.renderAlerts()}
|
|
1394
1394
|
</div>
|
|
1395
1395
|
</div>
|
|
1396
|
-
` : this.isLoggedIn ?
|
|
1396
|
+
` : this.isLoggedIn ? g`
|
|
1397
1397
|
<!-- Header -->
|
|
1398
|
-
${this.logoUrl.length > 0 ?
|
|
1398
|
+
${this.logoUrl.length > 0 ? g`
|
|
1399
1399
|
<header class="modal-header">
|
|
1400
1400
|
<div class="auth-header">
|
|
1401
1401
|
<img
|
|
@@ -1425,9 +1425,9 @@ class C extends M {
|
|
|
1425
1425
|
${this.renderAlerts()}
|
|
1426
1426
|
</div>
|
|
1427
1427
|
</div>
|
|
1428
|
-
` :
|
|
1428
|
+
` : g`
|
|
1429
1429
|
<!-- Header -->
|
|
1430
|
-
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ?
|
|
1430
|
+
${(!this.mode || this.resetStep === "none") && this.logoUrl.length > 0 && this.mode === "signin" ? g`
|
|
1431
1431
|
<header class="modal-header">
|
|
1432
1432
|
|
|
1433
1433
|
<div class="auth-header">
|
|
@@ -1461,7 +1461,7 @@ class C extends M {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
renderFormContent() {
|
|
1463
1463
|
if (this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form"))
|
|
1464
|
-
return
|
|
1464
|
+
return g`
|
|
1465
1465
|
<!-- Email -->
|
|
1466
1466
|
<base-input
|
|
1467
1467
|
id="email-input"
|
|
@@ -1487,7 +1487,7 @@ class C extends M {
|
|
|
1487
1487
|
@input=${(e) => this.password = e.detail.value}
|
|
1488
1488
|
></base-input>
|
|
1489
1489
|
|
|
1490
|
-
${this.mode === "signin" && this.error ?
|
|
1490
|
+
${this.mode === "signin" && this.error ? g`
|
|
1491
1491
|
<div class="forgot-row">
|
|
1492
1492
|
<button type="button" class="text-btn" @click=${this.startReset}>
|
|
1493
1493
|
Forgot your password?
|
|
@@ -1495,7 +1495,7 @@ class C extends M {
|
|
|
1495
1495
|
</div>
|
|
1496
1496
|
` : k}
|
|
1497
1497
|
|
|
1498
|
-
${this.mode === "signup" ?
|
|
1498
|
+
${this.mode === "signup" ? g`
|
|
1499
1499
|
<!-- Confirm Password -->
|
|
1500
1500
|
<base-input
|
|
1501
1501
|
type="password"
|
|
@@ -1534,14 +1534,14 @@ class C extends M {
|
|
|
1534
1534
|
` : k}
|
|
1535
1535
|
`;
|
|
1536
1536
|
if (this.mode === "signup" && this.signupStep === "otp")
|
|
1537
|
-
return
|
|
1537
|
+
return g`
|
|
1538
1538
|
<div class="otp-section">
|
|
1539
1539
|
<label class="otp-label">Enter 6-digit code</label>
|
|
1540
1540
|
<div class="otp-inputs" role="group" aria-label="One time code">
|
|
1541
1541
|
${pr(
|
|
1542
1542
|
Array.from({ length: 6 }, (e, t) => t),
|
|
1543
1543
|
(e) => e,
|
|
1544
|
-
(e) =>
|
|
1544
|
+
(e) => g`
|
|
1545
1545
|
<input
|
|
1546
1546
|
class="otp-input signup-otp-input ${this.errors.signup_otp ? "otp-input--error" : ""}"
|
|
1547
1547
|
type="text"
|
|
@@ -1558,7 +1558,7 @@ class C extends M {
|
|
|
1558
1558
|
`
|
|
1559
1559
|
)}
|
|
1560
1560
|
</div>
|
|
1561
|
-
${this.errors.signup_otp ?
|
|
1561
|
+
${this.errors.signup_otp ? g`<p class="otp-error">${this.errors.signup_otp}</p>` : k}
|
|
1562
1562
|
</div>
|
|
1563
1563
|
<div class="forgot-row">
|
|
1564
1564
|
<button type="button" class="text-btn" @click=${this.backToSignupForm}>
|
|
@@ -1567,7 +1567,7 @@ class C extends M {
|
|
|
1567
1567
|
</div>
|
|
1568
1568
|
`;
|
|
1569
1569
|
if (this.resetStep === "request")
|
|
1570
|
-
return
|
|
1570
|
+
return g`
|
|
1571
1571
|
<base-input
|
|
1572
1572
|
id="email-input"
|
|
1573
1573
|
type="email"
|
|
@@ -1587,7 +1587,7 @@ class C extends M {
|
|
|
1587
1587
|
`;
|
|
1588
1588
|
if (this.resetStep === "confirm") {
|
|
1589
1589
|
const e = this.otpDigits.every((t) => /^\d$/.test(t));
|
|
1590
|
-
return
|
|
1590
|
+
return g`
|
|
1591
1591
|
<base-input
|
|
1592
1592
|
type="email"
|
|
1593
1593
|
label="Email Address"
|
|
@@ -1605,7 +1605,7 @@ class C extends M {
|
|
|
1605
1605
|
${pr(
|
|
1606
1606
|
Array.from({ length: 6 }, (t, i) => i),
|
|
1607
1607
|
(t) => t,
|
|
1608
|
-
(t) =>
|
|
1608
|
+
(t) => g`
|
|
1609
1609
|
<input
|
|
1610
1610
|
class="otp-input reset-otp-input ${this.errors.otp ? "otp-input--error" : ""}"
|
|
1611
1611
|
type="text"
|
|
@@ -1622,10 +1622,10 @@ class C extends M {
|
|
|
1622
1622
|
`
|
|
1623
1623
|
)}
|
|
1624
1624
|
</div>
|
|
1625
|
-
${this.errors.otp ?
|
|
1625
|
+
${this.errors.otp ? g`<p class="otp-error">${this.errors.otp}</p>` : k}
|
|
1626
1626
|
</div>
|
|
1627
1627
|
|
|
1628
|
-
${e ?
|
|
1628
|
+
${e ? g`
|
|
1629
1629
|
<div class="new-password-fields">
|
|
1630
1630
|
<base-input
|
|
1631
1631
|
type="password"
|
|
@@ -1662,7 +1662,7 @@ class C extends M {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
renderActions() {
|
|
1664
1664
|
if (this.resetStep === "request")
|
|
1665
|
-
return
|
|
1665
|
+
return g`
|
|
1666
1666
|
<base-button
|
|
1667
1667
|
type="submit"
|
|
1668
1668
|
variant="primary"
|
|
@@ -1675,7 +1675,7 @@ class C extends M {
|
|
|
1675
1675
|
</base-button>
|
|
1676
1676
|
`;
|
|
1677
1677
|
if (this.resetStep === "confirm")
|
|
1678
|
-
return this.otpDigits.every((t) => /^\d$/.test(t)) ?
|
|
1678
|
+
return this.otpDigits.every((t) => /^\d$/.test(t)) ? g`
|
|
1679
1679
|
<base-button
|
|
1680
1680
|
type="submit"
|
|
1681
1681
|
variant="primary"
|
|
@@ -1689,7 +1689,7 @@ class C extends M {
|
|
|
1689
1689
|
` : k;
|
|
1690
1690
|
if (this.mode === "signup" && this.signupStep === "otp") {
|
|
1691
1691
|
const e = this.signupOtpDigits.every((t) => /^\d$/.test(t));
|
|
1692
|
-
return
|
|
1692
|
+
return g`
|
|
1693
1693
|
<base-button
|
|
1694
1694
|
type="submit"
|
|
1695
1695
|
variant="primary"
|
|
@@ -1702,7 +1702,7 @@ class C extends M {
|
|
|
1702
1702
|
</base-button>
|
|
1703
1703
|
`;
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1705
|
+
return g`
|
|
1706
1706
|
<base-button
|
|
1707
1707
|
type="submit"
|
|
1708
1708
|
variant="primary"
|
|
@@ -1714,7 +1714,7 @@ class C extends M {
|
|
|
1714
1714
|
${this.isLoading ? "Loading..." : this.mode === "signup" ? "Continue" : "Sign In"}
|
|
1715
1715
|
</base-button>
|
|
1716
1716
|
|
|
1717
|
-
${this.isOAuthConfigured() && this.mode === "signin" ?
|
|
1717
|
+
${this.isOAuthConfigured() && this.mode === "signin" ? g`
|
|
1718
1718
|
<div class="button-row">
|
|
1719
1719
|
<button
|
|
1720
1720
|
type="button"
|
|
@@ -1738,8 +1738,8 @@ class C extends M {
|
|
|
1738
1738
|
`;
|
|
1739
1739
|
}
|
|
1740
1740
|
renderAlerts() {
|
|
1741
|
-
return
|
|
1742
|
-
${this.notice ?
|
|
1741
|
+
return g`
|
|
1742
|
+
${this.notice ? g`
|
|
1743
1743
|
<div class="alert alert--success">
|
|
1744
1744
|
${this.notice}
|
|
1745
1745
|
<button class="alert-close" @click=${() => this.notice = ""} aria-label="Dismiss">
|
|
@@ -1747,7 +1747,7 @@ class C extends M {
|
|
|
1747
1747
|
</button>
|
|
1748
1748
|
</div>
|
|
1749
1749
|
` : k}
|
|
1750
|
-
${this.error && !this.isLoading ?
|
|
1750
|
+
${this.error && !this.isLoading ? g`
|
|
1751
1751
|
<div class="alert alert--error">
|
|
1752
1752
|
${this.error}
|
|
1753
1753
|
<button class="alert-close" @click=${() => this.error = ""} aria-label="Dismiss">
|
|
@@ -1758,7 +1758,7 @@ class C extends M {
|
|
|
1758
1758
|
`;
|
|
1759
1759
|
}
|
|
1760
1760
|
renderFooter() {
|
|
1761
|
-
return this.isLoggedIn ? k : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? k :
|
|
1761
|
+
return this.isLoggedIn ? k : this.resetStep === "none" && (!this.mode || this.mode === "signin" || this.signupStep === "form") ? this.disableSignup ? k : g`
|
|
1762
1762
|
<div class="auth-footer">
|
|
1763
1763
|
<p class="toggle-text">
|
|
1764
1764
|
${this.mode === "signup" ? "Already have an account?" : "Don't have an account?"}
|
|
@@ -1767,7 +1767,7 @@ class C extends M {
|
|
|
1767
1767
|
${this.mode === "signup" ? "Sign In" : "Sign Up"}
|
|
1768
1768
|
</button>
|
|
1769
1769
|
</div>
|
|
1770
|
-
` :
|
|
1770
|
+
` : g`
|
|
1771
1771
|
<div class="auth-footer">
|
|
1772
1772
|
<p class="toggle-text">
|
|
1773
1773
|
Having trouble? Email
|
|
@@ -1777,7 +1777,7 @@ class C extends M {
|
|
|
1777
1777
|
`;
|
|
1778
1778
|
}
|
|
1779
1779
|
renderGoogleIcon() {
|
|
1780
|
-
return
|
|
1780
|
+
return g`
|
|
1781
1781
|
<svg viewBox="-0.5 0 48 48" width="18" height="18" fill="none">
|
|
1782
1782
|
<path d="M9.82727273,24 C9.82727273,22.4757333 10.0804318,21.0144 10.5322727,19.6437333 L2.62345455,13.6042667 C1.08206818,16.7338667 0.213636364,20.2602667 0.213636364,24 C0.213636364,27.7365333 1.081,31.2608 2.62025,34.3882667 L10.5247955,28.3370667 C10.0772273,26.9728 9.82727273,25.5168 9.82727273,24" fill="#FBBC05"></path>
|
|
1783
1783
|
<path d="M23.7136364,10.1333333 C27.025,10.1333333 30.0159091,11.3066667 32.3659091,13.2266667 L39.2022727,6.4 C35.0363636,2.77333333 29.6954545,0.533333333 23.7136364,0.533333333 C14.4268636,0.533333333 6.44540909,5.84426667 2.62345455,13.6042667 L10.5322727,19.6437333 C12.3545909,14.112 17.5491591,10.1333333 23.7136364,10.1333333" fill="#EB4335"></path>
|
|
@@ -1787,7 +1787,7 @@ class C extends M {
|
|
|
1787
1787
|
`;
|
|
1788
1788
|
}
|
|
1789
1789
|
renderAppleIcon() {
|
|
1790
|
-
return
|
|
1790
|
+
return g`
|
|
1791
1791
|
<svg viewBox="-3.5 0 48 48" width="18" height="18" class="apple-icon">
|
|
1792
1792
|
<path d="M231.174735,567.792499 C232.740177,565.771699 233.926883,562.915484 233.497649,560 C230.939077,560.177808 227.948466,561.814769 226.203475,563.948463 C224.612784,565.88177 223.305444,568.757742 223.816036,571.549042 C226.613071,571.636535 229.499881,569.960061 231.174735,567.792499 L231.174735,567.792499 Z M245,595.217241 C243.880625,597.712195 243.341978,598.827022 241.899976,601.03692 C239.888467,604.121745 237.052156,607.962958 233.53412,607.991182 C230.411652,608.02505 229.606488,605.94498 225.367451,605.970382 C221.128414,605.99296 220.244696,608.030695 217.116618,607.999649 C213.601387,607.968603 210.913765,604.502761 208.902256,601.417937 C203.27452,592.79849 202.68257,582.680377 206.152914,577.298162 C208.621711,573.476705 212.515678,571.241407 216.173986,571.241407 C219.89682,571.241407 222.239372,573.296075 225.322563,573.296075 C228.313175,573.296075 230.133913,571.235762 234.440281,571.235762 C237.700215,571.235762 241.153726,573.022307 243.611302,576.10431 C235.554045,580.546683 236.85858,592.121127 245,595.217241 L245,595.217241 Z" transform="translate(-204.000000, -560.000000)" fill="#0b0b0a"></path>
|
|
1793
1793
|
</svg>
|
|
@@ -2154,7 +2154,7 @@ E([
|
|
|
2154
2154
|
E([
|
|
2155
2155
|
V("#email-input")
|
|
2156
2156
|
], C.prototype, "emailInput");
|
|
2157
|
-
const S = qt(class extends
|
|
2157
|
+
const S = qt(class extends Ht {
|
|
2158
2158
|
constructor(r) {
|
|
2159
2159
|
if (super(r), r.type !== Ut.ATTRIBUTE || r.name !== "class" || r.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2160
2160
|
}
|
|
@@ -2623,7 +2623,7 @@ class pe extends M {
|
|
|
2623
2623
|
"base-button--loading": this.loading,
|
|
2624
2624
|
[`base-button--hover-${this.hover}`]: !!this.hover
|
|
2625
2625
|
};
|
|
2626
|
-
return
|
|
2626
|
+
return g`
|
|
2627
2627
|
<button
|
|
2628
2628
|
class=${S(e)}
|
|
2629
2629
|
type=${this.type}
|
|
@@ -2633,7 +2633,7 @@ class pe extends M {
|
|
|
2633
2633
|
<span class=${S({ "button-text": !0, hidden: this.loading })}>
|
|
2634
2634
|
<slot></slot>
|
|
2635
2635
|
</span>
|
|
2636
|
-
${this.loading ?
|
|
2636
|
+
${this.loading ? g`
|
|
2637
2637
|
<span class="loading-container">
|
|
2638
2638
|
<slot name="loading">
|
|
2639
2639
|
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -2909,9 +2909,9 @@ class Ee extends M {
|
|
|
2909
2909
|
[`base-card--padding-${this.padding}`]: !0,
|
|
2910
2910
|
"base-card--hoverable": this.hoverable,
|
|
2911
2911
|
"base-card--expandable": this.expandable
|
|
2912
|
-
}, t =
|
|
2912
|
+
}, t = g`
|
|
2913
2913
|
<div class=${S(e)}>
|
|
2914
|
-
${this.expandable && !this.isExpanded ?
|
|
2914
|
+
${this.expandable && !this.isExpanded ? g`
|
|
2915
2915
|
<button
|
|
2916
2916
|
class="expand-btn"
|
|
2917
2917
|
aria-label="Expand card"
|
|
@@ -2925,7 +2925,7 @@ class Ee extends M {
|
|
|
2925
2925
|
<slot></slot>
|
|
2926
2926
|
</div>
|
|
2927
2927
|
`;
|
|
2928
|
-
return this.isExpanded ?
|
|
2928
|
+
return this.isExpanded ? g`
|
|
2929
2929
|
<div class="expanded-overlay" @click=${this.handleOverlayClick}>
|
|
2930
2930
|
<div class="expanded-card">
|
|
2931
2931
|
${t}
|
|
@@ -3561,12 +3561,12 @@ class P extends M {
|
|
|
3561
3561
|
"date-display--empty": !this.value,
|
|
3562
3562
|
"date-disabled": this.disabled
|
|
3563
3563
|
};
|
|
3564
|
-
return
|
|
3564
|
+
return g`
|
|
3565
3565
|
<div class="date-picker-group">
|
|
3566
|
-
${this.label ?
|
|
3566
|
+
${this.label ? g`
|
|
3567
3567
|
<label for=${this.inputId} class="date-picker-label">
|
|
3568
3568
|
${this.label}
|
|
3569
|
-
${this.required ?
|
|
3569
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
3570
3570
|
</label>
|
|
3571
3571
|
` : ""}
|
|
3572
3572
|
|
|
@@ -3590,7 +3590,7 @@ class P extends M {
|
|
|
3590
3590
|
<base-icon name="calendar-day" size="20px"></base-icon>
|
|
3591
3591
|
</div>
|
|
3592
3592
|
|
|
3593
|
-
${this.isOpen ?
|
|
3593
|
+
${this.isOpen ? g`
|
|
3594
3594
|
<div class="calendar-overlay" @click=${this.closeCalendar}></div>
|
|
3595
3595
|
<div
|
|
3596
3596
|
class=${S({
|
|
@@ -3601,12 +3601,12 @@ class P extends M {
|
|
|
3601
3601
|
role="dialog"
|
|
3602
3602
|
aria-label="Choose date"
|
|
3603
3603
|
>
|
|
3604
|
-
${this.showMonthPicker ?
|
|
3604
|
+
${this.showMonthPicker ? g`
|
|
3605
3605
|
<div class="picker-overlay">
|
|
3606
3606
|
<div class="month-picker-container">
|
|
3607
3607
|
<div class="month-picker-grid">
|
|
3608
3608
|
${this.monthNames.map(
|
|
3609
|
-
(s, o) =>
|
|
3609
|
+
(s, o) => g`
|
|
3610
3610
|
<div
|
|
3611
3611
|
class=${S({
|
|
3612
3612
|
"month-item": !0,
|
|
@@ -3621,7 +3621,7 @@ class P extends M {
|
|
|
3621
3621
|
</div>
|
|
3622
3622
|
</div>
|
|
3623
3623
|
</div>
|
|
3624
|
-
` : this.showYearPicker ?
|
|
3624
|
+
` : this.showYearPicker ? g`
|
|
3625
3625
|
<div class="picker-overlay">
|
|
3626
3626
|
<div class="year-picker-container">
|
|
3627
3627
|
<div class="year-picker-header">
|
|
@@ -3645,7 +3645,7 @@ class P extends M {
|
|
|
3645
3645
|
</div>
|
|
3646
3646
|
<div class="year-picker-grid">
|
|
3647
3647
|
${this.yearRange.map(
|
|
3648
|
-
(s) =>
|
|
3648
|
+
(s) => g`
|
|
3649
3649
|
<div
|
|
3650
3650
|
class=${S({
|
|
3651
3651
|
"year-item": !0,
|
|
@@ -3660,7 +3660,7 @@ class P extends M {
|
|
|
3660
3660
|
</div>
|
|
3661
3661
|
</div>
|
|
3662
3662
|
</div>
|
|
3663
|
-
` :
|
|
3663
|
+
` : g`
|
|
3664
3664
|
<div class="calendar-header">
|
|
3665
3665
|
<button
|
|
3666
3666
|
type="button"
|
|
@@ -3689,12 +3689,12 @@ class P extends M {
|
|
|
3689
3689
|
</div>
|
|
3690
3690
|
|
|
3691
3691
|
<div class="calendar-weekdays">
|
|
3692
|
-
${this.weekDays.map((s) =>
|
|
3692
|
+
${this.weekDays.map((s) => g`<div class="calendar-weekday">${s}</div>`)}
|
|
3693
3693
|
</div>
|
|
3694
3694
|
|
|
3695
3695
|
<div class="calendar-days">
|
|
3696
3696
|
${this.calendarDays.map(
|
|
3697
|
-
(s) => s ?
|
|
3697
|
+
(s) => s ? g`
|
|
3698
3698
|
<div
|
|
3699
3699
|
class=${S({
|
|
3700
3700
|
"calendar-day": !0,
|
|
@@ -3706,7 +3706,7 @@ class P extends M {
|
|
|
3706
3706
|
>
|
|
3707
3707
|
${s}
|
|
3708
3708
|
</div>
|
|
3709
|
-
` :
|
|
3709
|
+
` : g`<div class="calendar-day day-empty"></div>`
|
|
3710
3710
|
)}
|
|
3711
3711
|
</div>
|
|
3712
3712
|
|
|
@@ -3724,11 +3724,11 @@ class P extends M {
|
|
|
3724
3724
|
` : ""}
|
|
3725
3725
|
</div>
|
|
3726
3726
|
|
|
3727
|
-
${e ?
|
|
3727
|
+
${e ? g`
|
|
3728
3728
|
<div id="${this.inputId}-error" class="date-picker-error" role="alert">
|
|
3729
3729
|
${this.error}
|
|
3730
3730
|
</div>
|
|
3731
|
-
` : this.hint ?
|
|
3731
|
+
` : this.hint ? g` <div class="date-picker-hint">${this.hint}</div> ` : ""}
|
|
3732
3732
|
</div>
|
|
3733
3733
|
`;
|
|
3734
3734
|
}
|
|
@@ -4131,12 +4131,12 @@ class L extends M {
|
|
|
4131
4131
|
"time-display--empty": !this.value,
|
|
4132
4132
|
"time-disabled": this.disabled
|
|
4133
4133
|
};
|
|
4134
|
-
return
|
|
4134
|
+
return g`
|
|
4135
4135
|
<div class="time-picker-group">
|
|
4136
|
-
${this.label ?
|
|
4136
|
+
${this.label ? g`
|
|
4137
4137
|
<label for=${this.inputId} class="time-picker-label">
|
|
4138
4138
|
${this.label}
|
|
4139
|
-
${this.required ?
|
|
4139
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4140
4140
|
</label>
|
|
4141
4141
|
` : ""}
|
|
4142
4142
|
|
|
@@ -4166,7 +4166,7 @@ class L extends M {
|
|
|
4166
4166
|
</svg>
|
|
4167
4167
|
</div>
|
|
4168
4168
|
|
|
4169
|
-
${this.isOpen ?
|
|
4169
|
+
${this.isOpen ? g`
|
|
4170
4170
|
<div class="time-overlay" @click=${this.closeTimePicker}></div>
|
|
4171
4171
|
<div
|
|
4172
4172
|
class=${S({
|
|
@@ -4182,7 +4182,7 @@ class L extends M {
|
|
|
4182
4182
|
<div class="time-column-label">Hour</div>
|
|
4183
4183
|
<div class="time-scroll">
|
|
4184
4184
|
${this.hours.map(
|
|
4185
|
-
(s) =>
|
|
4185
|
+
(s) => g`
|
|
4186
4186
|
<div
|
|
4187
4187
|
class=${S({
|
|
4188
4188
|
"time-option": !0,
|
|
@@ -4201,7 +4201,7 @@ class L extends M {
|
|
|
4201
4201
|
<div class="time-column-label">Minute</div>
|
|
4202
4202
|
<div class="time-scroll">
|
|
4203
4203
|
${this.minutes.map(
|
|
4204
|
-
(s) =>
|
|
4204
|
+
(s) => g`
|
|
4205
4205
|
<div
|
|
4206
4206
|
class=${S({
|
|
4207
4207
|
"time-option": !0,
|
|
@@ -4216,12 +4216,12 @@ class L extends M {
|
|
|
4216
4216
|
</div>
|
|
4217
4217
|
</div>
|
|
4218
4218
|
|
|
4219
|
-
${this.format === "12" ?
|
|
4219
|
+
${this.format === "12" ? g`
|
|
4220
4220
|
<div class="time-column">
|
|
4221
4221
|
<div class="time-column-label">Period</div>
|
|
4222
4222
|
<div class="time-scroll">
|
|
4223
4223
|
${["AM", "PM"].map(
|
|
4224
|
-
(s) =>
|
|
4224
|
+
(s) => g`
|
|
4225
4225
|
<div
|
|
4226
4226
|
class=${S({
|
|
4227
4227
|
"time-option": !0,
|
|
@@ -4247,11 +4247,11 @@ class L extends M {
|
|
|
4247
4247
|
` : ""}
|
|
4248
4248
|
</div>
|
|
4249
4249
|
|
|
4250
|
-
${e ?
|
|
4250
|
+
${e ? g`
|
|
4251
4251
|
<div id="${this.inputId}-error" class="time-picker-error" role="alert">
|
|
4252
4252
|
${this.error}
|
|
4253
4253
|
</div>
|
|
4254
|
-
` : this.hint ?
|
|
4254
|
+
` : this.hint ? g` <div class="time-picker-hint">${this.hint}</div> ` : ""}
|
|
4255
4255
|
</div>
|
|
4256
4256
|
`;
|
|
4257
4257
|
}
|
|
@@ -4307,7 +4307,7 @@ U([
|
|
|
4307
4307
|
U([
|
|
4308
4308
|
V(".time-container")
|
|
4309
4309
|
], L.prototype, "timeContainer");
|
|
4310
|
-
var ei = Object.defineProperty,
|
|
4310
|
+
var ei = Object.defineProperty, F = (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 && ei(e, t, s), s;
|
|
@@ -4501,12 +4501,12 @@ class q extends M {
|
|
|
4501
4501
|
"datetime-pickers--error": e,
|
|
4502
4502
|
"datetime-pickers--disabled": this.disabled
|
|
4503
4503
|
};
|
|
4504
|
-
return
|
|
4504
|
+
return g`
|
|
4505
4505
|
<div class="datetime-picker-group">
|
|
4506
|
-
${this.label ?
|
|
4506
|
+
${this.label ? g`
|
|
4507
4507
|
<label for=${this.inputId} class="datetime-picker-label">
|
|
4508
4508
|
${this.label}
|
|
4509
|
-
${this.required ?
|
|
4509
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
4510
4510
|
</label>
|
|
4511
4511
|
` : ""}
|
|
4512
4512
|
|
|
@@ -4546,61 +4546,61 @@ class q extends M {
|
|
|
4546
4546
|
</div>
|
|
4547
4547
|
</div>
|
|
4548
4548
|
|
|
4549
|
-
${e ?
|
|
4549
|
+
${e ? g`
|
|
4550
4550
|
<div id="${this.inputId}-error" class="datetime-picker-error" role="alert">
|
|
4551
4551
|
${this.error}
|
|
4552
4552
|
</div>
|
|
4553
|
-
` : this.hint ?
|
|
4553
|
+
` : this.hint ? g` <div class="datetime-picker-hint">${this.hint}</div> ` : ""}
|
|
4554
4554
|
</div>
|
|
4555
4555
|
`;
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
|
-
|
|
4558
|
+
F([
|
|
4559
4559
|
u({ type: String })
|
|
4560
4560
|
], q.prototype, "value");
|
|
4561
|
-
|
|
4561
|
+
F([
|
|
4562
4562
|
u({ type: String })
|
|
4563
4563
|
], q.prototype, "label");
|
|
4564
|
-
|
|
4564
|
+
F([
|
|
4565
4565
|
u({ type: String })
|
|
4566
4566
|
], q.prototype, "placeholder");
|
|
4567
|
-
|
|
4567
|
+
F([
|
|
4568
4568
|
u({ type: Boolean, reflect: !0 })
|
|
4569
4569
|
], q.prototype, "required");
|
|
4570
|
-
|
|
4570
|
+
F([
|
|
4571
4571
|
u({ type: Boolean, reflect: !0 })
|
|
4572
4572
|
], q.prototype, "disabled");
|
|
4573
|
-
|
|
4573
|
+
F([
|
|
4574
4574
|
u({ type: String })
|
|
4575
4575
|
], q.prototype, "error");
|
|
4576
|
-
|
|
4576
|
+
F([
|
|
4577
4577
|
u({ type: String })
|
|
4578
4578
|
], q.prototype, "hint");
|
|
4579
|
-
|
|
4579
|
+
F([
|
|
4580
4580
|
u({ type: String })
|
|
4581
4581
|
], q.prototype, "size");
|
|
4582
|
-
|
|
4582
|
+
F([
|
|
4583
4583
|
u({ type: String })
|
|
4584
4584
|
], q.prototype, "minDate");
|
|
4585
|
-
|
|
4585
|
+
F([
|
|
4586
4586
|
u({ type: String })
|
|
4587
4587
|
], q.prototype, "maxDate");
|
|
4588
|
-
|
|
4588
|
+
F([
|
|
4589
4589
|
u({ type: String })
|
|
4590
4590
|
], q.prototype, "format");
|
|
4591
|
-
|
|
4591
|
+
F([
|
|
4592
4592
|
w()
|
|
4593
4593
|
], q.prototype, "dateValue");
|
|
4594
|
-
|
|
4594
|
+
F([
|
|
4595
4595
|
w()
|
|
4596
4596
|
], q.prototype, "timeValue");
|
|
4597
|
-
|
|
4597
|
+
F([
|
|
4598
4598
|
w()
|
|
4599
4599
|
], q.prototype, "isFocused");
|
|
4600
|
-
|
|
4600
|
+
F([
|
|
4601
4601
|
V("base-date-picker")
|
|
4602
4602
|
], q.prototype, "datePicker");
|
|
4603
|
-
|
|
4603
|
+
F([
|
|
4604
4604
|
V("base-time-picker")
|
|
4605
4605
|
], q.prototype, "timePicker");
|
|
4606
4606
|
var ri = Object.defineProperty, Z = (r, e, t, i) => {
|
|
@@ -4662,16 +4662,16 @@ class j extends M {
|
|
|
4662
4662
|
let l;
|
|
4663
4663
|
e < 0 ? l = o + n : l = o - n;
|
|
4664
4664
|
let h = this.currentDetentIndex;
|
|
4665
|
-
const c = 0.5, p = 1, b = this.isClosable(), y = s[0],
|
|
4665
|
+
const c = 0.5, p = 1, b = this.isClosable(), y = s[0], f = this.currentDetentIndex === 0;
|
|
4666
4666
|
if (i > c && Math.abs(e) > 30)
|
|
4667
|
-
e > 0 ? b ? i > p &&
|
|
4667
|
+
e > 0 ? b ? i > p && f && e > 50 || l < y * 0.8 ? h = -1 : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.max(0, this.currentDetentIndex - 1) : h = Math.min(s.length - 1, this.currentDetentIndex + 1);
|
|
4668
4668
|
else {
|
|
4669
4669
|
let _ = 0, A = Math.abs(l - s[0]);
|
|
4670
4670
|
for (let T = 1; T < s.length; T++) {
|
|
4671
4671
|
const N = Math.abs(l - s[T]);
|
|
4672
4672
|
N < A && (A = N, _ = T);
|
|
4673
4673
|
}
|
|
4674
|
-
h = _, b && (
|
|
4674
|
+
h = _, b && (f && l < y * 0.7 || l < y - 5) && (h = -1);
|
|
4675
4675
|
}
|
|
4676
4676
|
const v = h < 0, m = this.modalContainer, x = v ? 0 : s[h];
|
|
4677
4677
|
if (m.style.transition = "none", e < 0) {
|
|
@@ -4819,7 +4819,7 @@ class j extends M {
|
|
|
4819
4819
|
"modal-container--dragging": this.isDragging,
|
|
4820
4820
|
[`modal-container--${this.size}`]: !0
|
|
4821
4821
|
}, i = this.getCurrentDetentHeight(), s = this.getActiveDetents(), o = this.isClosable() || s.length > 1;
|
|
4822
|
-
return
|
|
4822
|
+
return g`
|
|
4823
4823
|
<!-- Drawer Overlay -->
|
|
4824
4824
|
<div
|
|
4825
4825
|
class=${S(e)}
|
|
@@ -4832,7 +4832,7 @@ class j extends M {
|
|
|
4832
4832
|
aria-modal="true"
|
|
4833
4833
|
>
|
|
4834
4834
|
<!-- Drawer Handle -->
|
|
4835
|
-
${o ?
|
|
4835
|
+
${o ? g`
|
|
4836
4836
|
<div
|
|
4837
4837
|
class="drawer-handle"
|
|
4838
4838
|
@click=${this.handleHandleClick}
|
|
@@ -5211,7 +5211,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5211
5211
|
<path class="cls-1" d="M28.72,29.53l-.06-10.01c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-2,.91-1.99,2.01l.06,9.81c-4.04.77-7.11,4.33-7.11,8.59s3.12,7.88,7.21,8.61l.15,23.93c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.15-24.12c3.64-1.07,6.28-4.44,6.28-8.39s-2.68-7.38-6.38-8.41ZM26.68,42.68c-.11,0-.22.02-.33.02-2.61,0-4.74-2.13-4.74-4.75s2.13-4.75,4.74-4.75h.04c.08,0,.15.01.23.02,2.51.13,4.48,2.21,4.48,4.73s-1.94,4.57-4.42,4.73Z"/>
|
|
5212
5212
|
<path class="cls-1" d="M47.24,49.24l-.18-29.72c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-2,.91-1.99,2.01l.18,29.84c-3.74,1.01-6.45,4.4-6.45,8.44s2.76,7.5,6.55,8.46l.03,4.19c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.03-4.07c3.96-.83,6.95-4.35,6.95-8.56s-3.04-7.79-7.05-8.58ZM45.53,62.57s-.09,0-.13,0c-2.58-.08-4.6-2.16-4.6-4.74s2-4.63,4.54-4.74c.04,0,.16,0,.21,0,2.62,0,4.75,2.13,4.75,4.75s-2.12,4.74-4.76,4.75Z"/>
|
|
5213
5213
|
<path class="cls-1" d="M72.4,35.93c0-4.18-2.95-7.68-6.87-8.54l-.05-7.87c0-1.1-.9-1.99-2-1.99h-.01c-1.1,0-1.99.91-1.99,2.01l.05,7.91c-3.8.95-6.63,4.41-6.63,8.48s2.87,7.57,6.73,8.5l.15,26.04c0,1.1.9,1.99,2,1.99h.01c1.1,0,1.99-.91,1.99-2.01l-.15-26c3.87-.9,6.77-4.37,6.77-8.52ZM63.63,40.68c-2.61-.01-4.73-2.14-4.73-4.75s2.09-4.71,4.67-4.74c.05,0,.11,0,.16,0,2.58.04,4.67,2.16,4.67,4.75s-2.13,4.75-4.77,4.75Z"/>
|
|
5214
|
-
</svg>`,
|
|
5214
|
+
</svg>`, gi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5215
5215
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5216
5216
|
<defs>
|
|
5217
5217
|
<style>
|
|
@@ -5221,7 +5221,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5221
5221
|
</style>
|
|
5222
5222
|
</defs>
|
|
5223
5223
|
<path class="cls-1" d="M66.9,75.38h-10.67c-2.06,0-3.74-1.68-3.74-3.74v-13.62c0-1.6-1.3-2.91-2.91-2.91h-8.19c-1.6,0-2.91,1.31-2.91,2.91v13.62c0,2.06-1.68,3.74-3.74,3.74h-10.67c-1.92,0-3.48-1.56-3.48-3.48v-28.1h-5.25c-1.01,0-1.92-.6-2.3-1.54s-.17-2,.54-2.72l29.45-29.45c.66-.66,1.53-1.02,2.46-1.02h.02c.93,0,1.8.37,2.45,1.03l29.43,29.43c.72.72.93,1.78.54,2.72s-1.29,1.54-2.3,1.54h-5.25v28.1c0,1.92-1.56,3.48-3.48,3.48ZM56.49,71.38h9.89v-29.58c0-1.1.9-2,2-2h3.61l-26.51-26.51-26.51,26.51h3.61c1.1,0,2,.9,2,2v29.58h9.89v-13.36c0-3.81,3.1-6.91,6.91-6.91h8.19c3.81,0,6.91,3.1,6.91,6.91v13.36ZM74.57,42.37h0,0ZM45.12,12.93h0s0,0,0,0Z"/>
|
|
5224
|
-
</svg>`,
|
|
5224
|
+
</svg>`, fi = `<?xml version="1.0" encoding="UTF-8"?>
|
|
5225
5225
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90">
|
|
5226
5226
|
<defs>
|
|
5227
5227
|
<style>
|
|
@@ -5339,7 +5339,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5339
5339
|
<path class="cls-1" d="M66.8,66.28H23.2c-1.1,0-2-.9-2-2v-2.94c0-5.74,4.67-10.42,10.42-10.42h26.77c5.74,0,10.42,4.67,10.42,10.42v2.94c0,1.1-.9,2-2,2ZM25.2,62.28h39.6v-.94c0-3.54-2.88-6.42-6.42-6.42h-26.77c-3.54,0-6.42,2.88-6.42,6.42v.94Z"/>
|
|
5340
5340
|
<path class="cls-1" d="M45.13,49.37c-7.07,0-12.82-5.75-12.82-12.82s5.75-12.82,12.82-12.82,12.82,5.75,12.82,12.82-5.75,12.82-12.82,12.82ZM45.13,27.72c-4.87,0-8.82,3.96-8.82,8.82s3.96,8.82,8.82,8.82,8.82-3.96,8.82-8.82-3.96-8.82-8.82-8.82Z"/>
|
|
5341
5341
|
</svg>`;
|
|
5342
|
-
class Tt extends
|
|
5342
|
+
class Tt extends Ht {
|
|
5343
5343
|
constructor(e) {
|
|
5344
5344
|
if (super(e), this.it = k, e.type !== Ut.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
5345
5345
|
}
|
|
@@ -5355,7 +5355,7 @@ class Tt extends Ft {
|
|
|
5355
5355
|
}
|
|
5356
5356
|
Tt.directiveName = "unsafeHTML", Tt.resultType = 1;
|
|
5357
5357
|
const Ir = qt(Tt);
|
|
5358
|
-
var Ai = Object.defineProperty,
|
|
5358
|
+
var Ai = Object.defineProperty, ft = (r, e, t, i) => {
|
|
5359
5359
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5360
5360
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5361
5361
|
return s && Ai(e, t, s), s;
|
|
@@ -5371,8 +5371,8 @@ const Ci = /* @__PURE__ */ Object.assign({
|
|
|
5371
5371
|
"../../public/icons/external-link.svg": hi,
|
|
5372
5372
|
"../../public/icons/file-cabinet.svg": pi,
|
|
5373
5373
|
"../../public/icons/filters.svg": ui,
|
|
5374
|
-
"../../public/icons/house.svg":
|
|
5375
|
-
"../../public/icons/moon.svg":
|
|
5374
|
+
"../../public/icons/house.svg": gi,
|
|
5375
|
+
"../../public/icons/moon.svg": fi,
|
|
5376
5376
|
"../../public/icons/open-email.svg": mi,
|
|
5377
5377
|
"../../public/icons/paperclip.svg": bi,
|
|
5378
5378
|
"../../public/icons/reply.svg": vi,
|
|
@@ -5436,7 +5436,7 @@ class Te extends M {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
5438
|
render() {
|
|
5439
|
-
return
|
|
5439
|
+
return g`
|
|
5440
5440
|
<div
|
|
5441
5441
|
style="
|
|
5442
5442
|
--icon-size: ${this.size};
|
|
@@ -5447,28 +5447,28 @@ class Te extends M {
|
|
|
5447
5447
|
`;
|
|
5448
5448
|
}
|
|
5449
5449
|
}
|
|
5450
|
-
|
|
5450
|
+
ft([
|
|
5451
5451
|
u({ type: String })
|
|
5452
5452
|
], Te.prototype, "name");
|
|
5453
|
-
|
|
5453
|
+
ft([
|
|
5454
5454
|
u({ type: String })
|
|
5455
5455
|
], Te.prototype, "size");
|
|
5456
|
-
|
|
5456
|
+
ft([
|
|
5457
5457
|
u({ type: String })
|
|
5458
5458
|
], Te.prototype, "color");
|
|
5459
|
-
|
|
5459
|
+
ft([
|
|
5460
5460
|
w()
|
|
5461
5461
|
], Te.prototype, "svgContent");
|
|
5462
|
-
var Ti = Object.defineProperty,
|
|
5462
|
+
var Ti = Object.defineProperty, re = (r, e, t, i) => {
|
|
5463
5463
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5464
5464
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5465
5465
|
return s && Ti(e, t, s), s;
|
|
5466
5466
|
};
|
|
5467
5467
|
const Di = () => R({
|
|
5468
5468
|
name: "base-input",
|
|
5469
|
-
element:
|
|
5469
|
+
element: G
|
|
5470
5470
|
});
|
|
5471
|
-
class
|
|
5471
|
+
class G extends M {
|
|
5472
5472
|
constructor() {
|
|
5473
5473
|
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)}`;
|
|
5474
5474
|
}
|
|
@@ -5651,12 +5651,12 @@ class Q extends M {
|
|
|
5651
5651
|
"base-input--error": e,
|
|
5652
5652
|
"base-input--disabled": this.disabled
|
|
5653
5653
|
};
|
|
5654
|
-
return
|
|
5654
|
+
return g`
|
|
5655
5655
|
<div class="input-group">
|
|
5656
|
-
${this.label ?
|
|
5656
|
+
${this.label ? g`
|
|
5657
5657
|
<label for=${this.inputId} class="input-label">
|
|
5658
5658
|
${this.label}
|
|
5659
|
-
${this.required ?
|
|
5659
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
5660
5660
|
</label>
|
|
5661
5661
|
` : ""}
|
|
5662
5662
|
|
|
@@ -5682,48 +5682,48 @@ class Q extends M {
|
|
|
5682
5682
|
</div>
|
|
5683
5683
|
</div>
|
|
5684
5684
|
|
|
5685
|
-
${e ?
|
|
5685
|
+
${e ? g`
|
|
5686
5686
|
<div id="${this.inputId}-error" class="input-error" role="alert">
|
|
5687
5687
|
${this.error}
|
|
5688
5688
|
</div>
|
|
5689
|
-
` : this.hint ?
|
|
5689
|
+
` : this.hint ? g` <div class="input-hint">${this.hint}</div> ` : ""}
|
|
5690
5690
|
</div>
|
|
5691
5691
|
`;
|
|
5692
5692
|
}
|
|
5693
5693
|
}
|
|
5694
|
-
|
|
5694
|
+
re([
|
|
5695
5695
|
u({ type: String })
|
|
5696
|
-
],
|
|
5697
|
-
|
|
5696
|
+
], G.prototype, "value");
|
|
5697
|
+
re([
|
|
5698
5698
|
u({ type: String })
|
|
5699
|
-
],
|
|
5700
|
-
|
|
5699
|
+
], G.prototype, "label");
|
|
5700
|
+
re([
|
|
5701
5701
|
u({ type: String })
|
|
5702
|
-
],
|
|
5703
|
-
|
|
5702
|
+
], G.prototype, "placeholder");
|
|
5703
|
+
re([
|
|
5704
5704
|
u({ type: String })
|
|
5705
|
-
],
|
|
5706
|
-
|
|
5705
|
+
], G.prototype, "type");
|
|
5706
|
+
re([
|
|
5707
5707
|
u({ type: Boolean, reflect: !0 })
|
|
5708
|
-
],
|
|
5709
|
-
|
|
5708
|
+
], G.prototype, "required");
|
|
5709
|
+
re([
|
|
5710
5710
|
u({ type: Boolean, reflect: !0 })
|
|
5711
|
-
],
|
|
5712
|
-
|
|
5711
|
+
], G.prototype, "disabled");
|
|
5712
|
+
re([
|
|
5713
5713
|
u({ type: String })
|
|
5714
|
-
],
|
|
5715
|
-
|
|
5714
|
+
], G.prototype, "error");
|
|
5715
|
+
re([
|
|
5716
5716
|
u({ type: String })
|
|
5717
|
-
],
|
|
5718
|
-
|
|
5717
|
+
], G.prototype, "hint");
|
|
5718
|
+
re([
|
|
5719
5719
|
u({ type: String })
|
|
5720
|
-
],
|
|
5721
|
-
|
|
5720
|
+
], G.prototype, "autocomplete");
|
|
5721
|
+
re([
|
|
5722
5722
|
u({ type: String })
|
|
5723
|
-
],
|
|
5724
|
-
|
|
5723
|
+
], G.prototype, "size");
|
|
5724
|
+
re([
|
|
5725
5725
|
V("input")
|
|
5726
|
-
],
|
|
5726
|
+
], G.prototype, "inputElement");
|
|
5727
5727
|
var Oi = Object.defineProperty, mt = (r, e, t, i) => {
|
|
5728
5728
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5729
5729
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
@@ -5807,7 +5807,7 @@ class Ze extends M {
|
|
|
5807
5807
|
[`base-list--${this.variant}`]: !0,
|
|
5808
5808
|
"base-list--interactive": this.interactive
|
|
5809
5809
|
};
|
|
5810
|
-
return
|
|
5810
|
+
return g`
|
|
5811
5811
|
<div class=${S(e)} role=${this.role}>
|
|
5812
5812
|
<slot></slot>
|
|
5813
5813
|
</div>
|
|
@@ -5826,18 +5826,18 @@ mt([
|
|
|
5826
5826
|
mt([
|
|
5827
5827
|
u({ type: String, attribute: "role" })
|
|
5828
5828
|
], Ze.prototype, "role");
|
|
5829
|
-
var Ri = Object.defineProperty,
|
|
5829
|
+
var Ri = Object.defineProperty, ee = (r, e, t, i) => {
|
|
5830
5830
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5831
5831
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5832
5832
|
return s && Ri(e, t, s), s;
|
|
5833
5833
|
};
|
|
5834
5834
|
const zi = () => R({
|
|
5835
5835
|
name: "base-list-item",
|
|
5836
|
-
element:
|
|
5836
|
+
element: J
|
|
5837
5837
|
});
|
|
5838
|
-
class
|
|
5838
|
+
class J extends M {
|
|
5839
5839
|
constructor() {
|
|
5840
|
-
super(...arguments), this.size = "md", this.disabled = !1, this.selected = !1, this.interactive = !1, this.role = "listitem", this.swipeOffset = 0, this.isSwiping = !1, this.desktopActionsOpen = !1, this.desktopActionSide = null, this.touchStartX = 0, this.touchStartY = 0, this.currentX = 0, this.isDragging = !1, this.swipeThreshold = 80, this.documentClickHandler = this.handleDocumentClick.bind(this);
|
|
5840
|
+
super(...arguments), this.size = "md", this.disabled = !1, this.selected = !1, this.interactive = !1, this.noHover = !1, this.role = "listitem", this.swipeOffset = 0, this.isSwiping = !1, this.desktopActionsOpen = !1, this.desktopActionSide = null, this.touchStartX = 0, this.touchStartY = 0, this.currentX = 0, this.isDragging = !1, this.swipeThreshold = 80, this.documentClickHandler = this.handleDocumentClick.bind(this);
|
|
5841
5841
|
}
|
|
5842
5842
|
static {
|
|
5843
5843
|
this.styles = B`
|
|
@@ -6028,6 +6028,15 @@ class G extends M {
|
|
|
6028
6028
|
background-color: var(--color-bg-secondary, var(--color-bg-muted));
|
|
6029
6029
|
}
|
|
6030
6030
|
|
|
6031
|
+
/* No hover variant - keeps cursor but removes hover effects */
|
|
6032
|
+
.base-list-item--no-hover:hover:not([disabled]) {
|
|
6033
|
+
background-color: var(--list-item-bg, var(--color-bg-primary));
|
|
6034
|
+
}
|
|
6035
|
+
|
|
6036
|
+
.base-list-item--no-hover:active:not([disabled]) {
|
|
6037
|
+
background-color: var(--list-item-bg, var(--color-bg-primary));
|
|
6038
|
+
}
|
|
6039
|
+
|
|
6031
6040
|
.base-list-item--interactive:focus-visible {
|
|
6032
6041
|
outline: 2px solid var(--color-border-focus);
|
|
6033
6042
|
outline-offset: -2px;
|
|
@@ -6097,13 +6106,13 @@ class G extends M {
|
|
|
6097
6106
|
}
|
|
6098
6107
|
renderActionIcon(e, t = "24px") {
|
|
6099
6108
|
const i = e.iconColor || "white";
|
|
6100
|
-
return e.icon.includes("<") ?
|
|
6109
|
+
return e.icon.includes("<") ? g`<span
|
|
6101
6110
|
style="display: inline-flex; width: ${t}; height: ${t}; color: ${i};"
|
|
6102
6111
|
.innerHTML=${e.icon}
|
|
6103
|
-
></span>` :
|
|
6112
|
+
></span>` : g`<base-icon
|
|
6104
6113
|
name=${e.icon}
|
|
6105
6114
|
size=${t}
|
|
6106
|
-
color
|
|
6115
|
+
style="--icon-color: ${i};"
|
|
6107
6116
|
></base-icon>`;
|
|
6108
6117
|
}
|
|
6109
6118
|
triggerSwipeAction(e) {
|
|
@@ -6134,12 +6143,13 @@ class G extends M {
|
|
|
6134
6143
|
"base-list-item--interactive": this.interactive,
|
|
6135
6144
|
"base-list-item--selected": this.selected,
|
|
6136
6145
|
"base-list-item--swiping": this.isDragging,
|
|
6137
|
-
"base-list-item--desktop-open": this.desktopActionsOpen
|
|
6146
|
+
"base-list-item--desktop-open": this.desktopActionsOpen,
|
|
6147
|
+
"base-list-item--no-hover": this.noHover
|
|
6138
6148
|
};
|
|
6139
6149
|
let t = this.swipeOffset;
|
|
6140
|
-
return this.desktopActionsOpen && this.desktopActionSide && (this.desktopActionSide === "left" ? t = 100 : t = -100),
|
|
6150
|
+
return this.desktopActionsOpen && this.desktopActionSide && (this.desktopActionSide === "left" ? t = 100 : t = -100), g`
|
|
6141
6151
|
<div class="list-item-wrapper">
|
|
6142
|
-
${this.leftSwipeAction ?
|
|
6152
|
+
${this.leftSwipeAction ? g`
|
|
6143
6153
|
<div class="swipe-actions swipe-actions--left">
|
|
6144
6154
|
<button
|
|
6145
6155
|
class="swipe-action-button"
|
|
@@ -6147,12 +6157,12 @@ class G extends M {
|
|
|
6147
6157
|
@click=${() => this.triggerSwipeAction(this.leftSwipeAction)}
|
|
6148
6158
|
>
|
|
6149
6159
|
${this.renderActionIcon(this.leftSwipeAction, "24px")}
|
|
6150
|
-
${this.leftSwipeAction.label ?
|
|
6160
|
+
${this.leftSwipeAction.label ? g`<span>${this.leftSwipeAction.label}</span>` : ""}
|
|
6151
6161
|
</button>
|
|
6152
6162
|
</div>
|
|
6153
6163
|
` : ""}
|
|
6154
6164
|
|
|
6155
|
-
${this.rightSwipeAction ?
|
|
6165
|
+
${this.rightSwipeAction ? g`
|
|
6156
6166
|
<div class="swipe-actions swipe-actions--right">
|
|
6157
6167
|
<button
|
|
6158
6168
|
class="swipe-action-button"
|
|
@@ -6160,30 +6170,30 @@ class G extends M {
|
|
|
6160
6170
|
@click=${() => this.triggerSwipeAction(this.rightSwipeAction)}
|
|
6161
6171
|
>
|
|
6162
6172
|
${this.renderActionIcon(this.rightSwipeAction, "24px")}
|
|
6163
|
-
${this.rightSwipeAction.label ?
|
|
6173
|
+
${this.rightSwipeAction.label ? g`<span>${this.rightSwipeAction.label}</span>` : ""}
|
|
6164
6174
|
</button>
|
|
6165
6175
|
</div>
|
|
6166
6176
|
` : ""}
|
|
6167
6177
|
|
|
6168
6178
|
<!-- Desktop plus icons -->
|
|
6169
|
-
${this.leftSwipeAction && !this.desktopActionsOpen ?
|
|
6179
|
+
${this.leftSwipeAction && !this.desktopActionsOpen ? g`
|
|
6170
6180
|
<button
|
|
6171
6181
|
class="desktop-plus-icon desktop-plus-icon--left"
|
|
6172
6182
|
@click=${(i) => this.handleDesktopActionToggle("left", i)}
|
|
6173
6183
|
title="Show action"
|
|
6174
6184
|
aria-label="Show action"
|
|
6175
6185
|
>
|
|
6176
|
-
|
|
6186
|
+
⋮
|
|
6177
6187
|
</button>
|
|
6178
6188
|
` : ""}
|
|
6179
|
-
${this.rightSwipeAction && !this.desktopActionsOpen ?
|
|
6189
|
+
${this.rightSwipeAction && !this.desktopActionsOpen ? g`
|
|
6180
6190
|
<button
|
|
6181
6191
|
class="desktop-plus-icon desktop-plus-icon--right"
|
|
6182
6192
|
@click=${(i) => this.handleDesktopActionToggle("right", i)}
|
|
6183
6193
|
title="Show action"
|
|
6184
6194
|
aria-label="Show action"
|
|
6185
6195
|
>
|
|
6186
|
-
|
|
6196
|
+
⋮
|
|
6187
6197
|
</button>
|
|
6188
6198
|
` : ""}
|
|
6189
6199
|
|
|
@@ -6207,39 +6217,42 @@ class G extends M {
|
|
|
6207
6217
|
`;
|
|
6208
6218
|
}
|
|
6209
6219
|
}
|
|
6210
|
-
|
|
6220
|
+
ee([
|
|
6211
6221
|
u({ type: String, attribute: "size" })
|
|
6212
|
-
],
|
|
6213
|
-
|
|
6222
|
+
], J.prototype, "size");
|
|
6223
|
+
ee([
|
|
6214
6224
|
u({ type: Boolean, reflect: !0, attribute: "disabled" })
|
|
6215
|
-
],
|
|
6216
|
-
|
|
6225
|
+
], J.prototype, "disabled");
|
|
6226
|
+
ee([
|
|
6217
6227
|
u({ type: Boolean, reflect: !0, attribute: "selected" })
|
|
6218
|
-
],
|
|
6219
|
-
|
|
6228
|
+
], J.prototype, "selected");
|
|
6229
|
+
ee([
|
|
6220
6230
|
u({ type: Boolean, reflect: !0, attribute: "interactive" })
|
|
6221
|
-
],
|
|
6222
|
-
|
|
6231
|
+
], J.prototype, "interactive");
|
|
6232
|
+
ee([
|
|
6233
|
+
u({ type: Boolean, reflect: !0, attribute: "no-hover" })
|
|
6234
|
+
], J.prototype, "noHover");
|
|
6235
|
+
ee([
|
|
6223
6236
|
u({ type: String, attribute: "role" })
|
|
6224
|
-
],
|
|
6225
|
-
|
|
6237
|
+
], J.prototype, "role");
|
|
6238
|
+
ee([
|
|
6226
6239
|
u({ type: Object, attribute: "left-swipe-action" })
|
|
6227
|
-
],
|
|
6228
|
-
|
|
6240
|
+
], J.prototype, "leftSwipeAction");
|
|
6241
|
+
ee([
|
|
6229
6242
|
u({ type: Object, attribute: "right-swipe-action" })
|
|
6230
|
-
],
|
|
6231
|
-
|
|
6243
|
+
], J.prototype, "rightSwipeAction");
|
|
6244
|
+
ee([
|
|
6232
6245
|
w()
|
|
6233
|
-
],
|
|
6234
|
-
|
|
6246
|
+
], J.prototype, "swipeOffset");
|
|
6247
|
+
ee([
|
|
6235
6248
|
w()
|
|
6236
|
-
],
|
|
6237
|
-
|
|
6249
|
+
], J.prototype, "isSwiping");
|
|
6250
|
+
ee([
|
|
6238
6251
|
w()
|
|
6239
|
-
],
|
|
6240
|
-
|
|
6252
|
+
], J.prototype, "desktopActionsOpen");
|
|
6253
|
+
ee([
|
|
6241
6254
|
w()
|
|
6242
|
-
],
|
|
6255
|
+
], J.prototype, "desktopActionSide");
|
|
6243
6256
|
var Mi = Object.defineProperty, O = (r, e, t, i) => {
|
|
6244
6257
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
6245
6258
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
@@ -6876,7 +6889,7 @@ class D extends M {
|
|
|
6876
6889
|
}, 1e3);
|
|
6877
6890
|
}
|
|
6878
6891
|
renderChip(e) {
|
|
6879
|
-
return
|
|
6892
|
+
return g`
|
|
6880
6893
|
<div class="chip" role="listitem">
|
|
6881
6894
|
<span class="chip-label">${e.label}</span>
|
|
6882
6895
|
<button
|
|
@@ -6947,17 +6960,17 @@ class D extends M {
|
|
|
6947
6960
|
"select-input--visible": this.searchable && this.isOpen,
|
|
6948
6961
|
"select-disabled": this.disabled
|
|
6949
6962
|
};
|
|
6950
|
-
return
|
|
6963
|
+
return g`
|
|
6951
6964
|
<div class="select-group">
|
|
6952
|
-
${this.label ?
|
|
6965
|
+
${this.label ? g`
|
|
6953
6966
|
<label for=${this.selectId} class="select-label">
|
|
6954
6967
|
${this.label}
|
|
6955
|
-
${this.required ?
|
|
6968
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
6956
6969
|
</label>
|
|
6957
6970
|
` : ""}
|
|
6958
6971
|
|
|
6959
6972
|
<div class=${S(t)}>
|
|
6960
|
-
${this.multiple ?
|
|
6973
|
+
${this.multiple ? g`
|
|
6961
6974
|
<!-- Multiple select mode with chips -->
|
|
6962
6975
|
<div
|
|
6963
6976
|
id=${this.selectId}
|
|
@@ -6974,7 +6987,7 @@ class D extends M {
|
|
|
6974
6987
|
>
|
|
6975
6988
|
<div class="chips-container ${this.isOpen && !this.searchable ? "chips-container--open" : ""}" role="list">
|
|
6976
6989
|
${this.selectedOptions.map((o) => this.renderChip(o))}
|
|
6977
|
-
${this.searchable ?
|
|
6990
|
+
${this.searchable ? g`
|
|
6978
6991
|
<input
|
|
6979
6992
|
id="${this.selectId}-input"
|
|
6980
6993
|
class="chips-search-input"
|
|
@@ -6989,10 +7002,10 @@ class D extends M {
|
|
|
6989
7002
|
this.isOpen || this.toggleDropdown();
|
|
6990
7003
|
}}
|
|
6991
7004
|
/>
|
|
6992
|
-
` :
|
|
7005
|
+
` : g`${this.selectedOptions.length === 0 ? g`<span class="chips-placeholder">${this.placeholder}</span>` : ""}`}
|
|
6993
7006
|
</div>
|
|
6994
7007
|
</div>
|
|
6995
|
-
${this.selectedValues.length > 0 && !this.disabled ?
|
|
7008
|
+
${this.selectedValues.length > 0 && !this.disabled ? g`
|
|
6996
7009
|
<button
|
|
6997
7010
|
type="button"
|
|
6998
7011
|
class="clear-all-button"
|
|
@@ -7004,7 +7017,7 @@ class D extends M {
|
|
|
7004
7017
|
</svg>
|
|
7005
7018
|
</button>
|
|
7006
7019
|
` : ""}
|
|
7007
|
-
` :
|
|
7020
|
+
` : g`
|
|
7008
7021
|
<!-- Single select mode (original) -->
|
|
7009
7022
|
<input
|
|
7010
7023
|
id="${this.selectId}-input"
|
|
@@ -7044,7 +7057,7 @@ class D extends M {
|
|
|
7044
7057
|
</svg>
|
|
7045
7058
|
</div>
|
|
7046
7059
|
|
|
7047
|
-
${this.isOpen ?
|
|
7060
|
+
${this.isOpen ? g`
|
|
7048
7061
|
<div class="dropdown-overlay" @click=${this.closeDropdown}></div>
|
|
7049
7062
|
<div
|
|
7050
7063
|
class=${S({
|
|
@@ -7055,7 +7068,7 @@ class D extends M {
|
|
|
7055
7068
|
role="listbox"
|
|
7056
7069
|
aria-multiselectable=${Y(this.multiple ? "true" : void 0)}
|
|
7057
7070
|
>
|
|
7058
|
-
${this.filteredOptions.length === 0 ? this.creatable && this.searchable && this.searchQuery.trim() ?
|
|
7071
|
+
${this.filteredOptions.length === 0 ? this.creatable && this.searchable && this.searchQuery.trim() ? g`
|
|
7059
7072
|
<button
|
|
7060
7073
|
type="button"
|
|
7061
7074
|
class="dropdown-create-button"
|
|
@@ -7068,8 +7081,8 @@ class D extends M {
|
|
|
7068
7081
|
</div>
|
|
7069
7082
|
<span class="dropdown-create-label">"${this.searchQuery.trim()}"</span>
|
|
7070
7083
|
</button>
|
|
7071
|
-
` :
|
|
7072
|
-
(o, a) =>
|
|
7084
|
+
` : g` <div class="dropdown-no-results">No options found</div> ` : this.filteredOptions.map(
|
|
7085
|
+
(o, a) => g`
|
|
7073
7086
|
<div
|
|
7074
7087
|
class=${S({
|
|
7075
7088
|
"dropdown-option": !0,
|
|
@@ -7088,11 +7101,11 @@ class D extends M {
|
|
|
7088
7101
|
` : ""}
|
|
7089
7102
|
</div>
|
|
7090
7103
|
|
|
7091
|
-
${e ?
|
|
7104
|
+
${e ? g`
|
|
7092
7105
|
<div id="${this.selectId}-error" class="select-error" role="alert">
|
|
7093
7106
|
${this.error}
|
|
7094
7107
|
</div>
|
|
7095
|
-
` : this.hint ?
|
|
7108
|
+
` : this.hint ? g` <div class="select-hint">${this.hint}</div> ` : ""}
|
|
7096
7109
|
|
|
7097
7110
|
<!-- Screen reader announcements -->
|
|
7098
7111
|
<div class="sr-only" role="status" aria-live="polite" aria-atomic="true">
|
|
@@ -7244,7 +7257,7 @@ class De extends M {
|
|
|
7244
7257
|
);
|
|
7245
7258
|
}
|
|
7246
7259
|
render() {
|
|
7247
|
-
return
|
|
7260
|
+
return g`
|
|
7248
7261
|
<div
|
|
7249
7262
|
class="base-tab"
|
|
7250
7263
|
id="tabpanel-${this.id}"
|
|
@@ -7859,7 +7872,7 @@ class ae extends M {
|
|
|
7859
7872
|
"tab-button": !0,
|
|
7860
7873
|
"tab-button--active": i
|
|
7861
7874
|
};
|
|
7862
|
-
return
|
|
7875
|
+
return g`
|
|
7863
7876
|
<button
|
|
7864
7877
|
role="tab"
|
|
7865
7878
|
aria-selected=${i}
|
|
@@ -7870,9 +7883,9 @@ class ae extends M {
|
|
|
7870
7883
|
@click=${() => this.handleTabClick(e.id)}
|
|
7871
7884
|
@keydown=${(a) => this.handleKeyDown(a, t)}
|
|
7872
7885
|
>
|
|
7873
|
-
${e.icon ?
|
|
7874
|
-
${s || this.variant !== "sidebar" || this.isMobile ?
|
|
7875
|
-
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ?
|
|
7886
|
+
${e.icon ? g`<span class="tab-icon">${Ir(e.icon)}</span>` : k}
|
|
7887
|
+
${s || this.variant !== "sidebar" || this.isMobile ? g`<span class="tab-label">${e.label}</span>` : k}
|
|
7888
|
+
${e.badge !== void 0 && e.badge > 0 && (s || this.variant !== "sidebar" || this.isMobile) ? g`<span class="tab-badge">${e.badge}</span>` : k}
|
|
7876
7889
|
</button>
|
|
7877
7890
|
`;
|
|
7878
7891
|
}
|
|
@@ -7887,9 +7900,9 @@ class ae extends M {
|
|
|
7887
7900
|
"sidebar-toggle": !0,
|
|
7888
7901
|
"sidebar-toggle--hidden": this.forceExpanded
|
|
7889
7902
|
};
|
|
7890
|
-
return
|
|
7903
|
+
return g`
|
|
7891
7904
|
<div class=${S(e)} role="tablist" aria-label=${this.ariaLabel}>
|
|
7892
|
-
${this.variant === "sidebar" ?
|
|
7905
|
+
${this.variant === "sidebar" ? g`
|
|
7893
7906
|
<div class=${S(i)}>
|
|
7894
7907
|
<!-- Sidebar Header -->
|
|
7895
7908
|
<div class="sidebar-header">
|
|
@@ -7919,7 +7932,7 @@ class ae extends M {
|
|
|
7919
7932
|
<slot name="sidebar-footer"></slot>
|
|
7920
7933
|
</div>
|
|
7921
7934
|
</div>
|
|
7922
|
-
` :
|
|
7935
|
+
` : g`
|
|
7923
7936
|
<div class="tabs-header">
|
|
7924
7937
|
${this.tabs.map((o, a) => this.renderTabButton(o, a))}
|
|
7925
7938
|
</div>
|
|
@@ -7960,16 +7973,16 @@ le([
|
|
|
7960
7973
|
le([
|
|
7961
7974
|
V(".tabs-nav")
|
|
7962
7975
|
], ae.prototype, "tabsNav");
|
|
7963
|
-
var qi = Object.defineProperty,
|
|
7976
|
+
var qi = Object.defineProperty, te = (r, e, t, i) => {
|
|
7964
7977
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7965
7978
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
7966
7979
|
return s && qi(e, t, s), s;
|
|
7967
7980
|
};
|
|
7968
|
-
const
|
|
7981
|
+
const Hi = () => R({
|
|
7969
7982
|
name: "base-textarea",
|
|
7970
|
-
element:
|
|
7983
|
+
element: X
|
|
7971
7984
|
});
|
|
7972
|
-
class
|
|
7985
|
+
class X extends M {
|
|
7973
7986
|
constructor() {
|
|
7974
7987
|
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)}`;
|
|
7975
7988
|
}
|
|
@@ -8184,12 +8197,12 @@ class J extends M {
|
|
|
8184
8197
|
"character-count--warning": s && !o,
|
|
8185
8198
|
"character-count--error": o
|
|
8186
8199
|
};
|
|
8187
|
-
return
|
|
8200
|
+
return g`
|
|
8188
8201
|
<div class="textarea-group">
|
|
8189
|
-
${this.label ?
|
|
8202
|
+
${this.label ? g`
|
|
8190
8203
|
<label for=${this.textareaId} class="textarea-label">
|
|
8191
8204
|
${this.label}
|
|
8192
|
-
${this.required ?
|
|
8205
|
+
${this.required ? g`<span class="required-indicator" aria-label="required">*</span>` : ""}
|
|
8193
8206
|
</label>
|
|
8194
8207
|
` : ""}
|
|
8195
8208
|
|
|
@@ -8210,62 +8223,62 @@ class J extends M {
|
|
|
8210
8223
|
@focus=${this.handleFocus}
|
|
8211
8224
|
></textarea>
|
|
8212
8225
|
|
|
8213
|
-
${i ?
|
|
8226
|
+
${i ? g`
|
|
8214
8227
|
<div class=${S(n)}>
|
|
8215
8228
|
${t}${this.maxlength ? ` / ${this.maxlength}` : ""}
|
|
8216
8229
|
</div>
|
|
8217
8230
|
` : ""}
|
|
8218
8231
|
</div>
|
|
8219
8232
|
|
|
8220
|
-
${e ?
|
|
8233
|
+
${e ? g`
|
|
8221
8234
|
<div id="${this.textareaId}-error" class="textarea-error" role="alert">
|
|
8222
8235
|
${this.error}
|
|
8223
8236
|
</div>
|
|
8224
|
-
` : this.hint ?
|
|
8237
|
+
` : this.hint ? g` <div class="textarea-hint">${this.hint}</div> ` : ""}
|
|
8225
8238
|
</div>
|
|
8226
8239
|
`;
|
|
8227
8240
|
}
|
|
8228
8241
|
}
|
|
8229
|
-
|
|
8242
|
+
te([
|
|
8230
8243
|
u({ type: String })
|
|
8231
|
-
],
|
|
8232
|
-
|
|
8244
|
+
], X.prototype, "value");
|
|
8245
|
+
te([
|
|
8233
8246
|
u({ type: String })
|
|
8234
|
-
],
|
|
8235
|
-
|
|
8247
|
+
], X.prototype, "label");
|
|
8248
|
+
te([
|
|
8236
8249
|
u({ type: String })
|
|
8237
|
-
],
|
|
8238
|
-
|
|
8250
|
+
], X.prototype, "placeholder");
|
|
8251
|
+
te([
|
|
8239
8252
|
u({ type: Boolean, reflect: !0 })
|
|
8240
|
-
],
|
|
8241
|
-
|
|
8253
|
+
], X.prototype, "required");
|
|
8254
|
+
te([
|
|
8242
8255
|
u({ type: Boolean, reflect: !0 })
|
|
8243
|
-
],
|
|
8244
|
-
|
|
8256
|
+
], X.prototype, "disabled");
|
|
8257
|
+
te([
|
|
8245
8258
|
u({ type: String })
|
|
8246
|
-
],
|
|
8247
|
-
|
|
8259
|
+
], X.prototype, "error");
|
|
8260
|
+
te([
|
|
8248
8261
|
u({ type: String })
|
|
8249
|
-
],
|
|
8250
|
-
|
|
8262
|
+
], X.prototype, "hint");
|
|
8263
|
+
te([
|
|
8251
8264
|
u({ type: String })
|
|
8252
|
-
],
|
|
8253
|
-
|
|
8265
|
+
], X.prototype, "size");
|
|
8266
|
+
te([
|
|
8254
8267
|
u({ type: Number })
|
|
8255
|
-
],
|
|
8256
|
-
|
|
8268
|
+
], X.prototype, "rows");
|
|
8269
|
+
te([
|
|
8257
8270
|
u({ type: Number })
|
|
8258
|
-
],
|
|
8259
|
-
|
|
8271
|
+
], X.prototype, "maxlength");
|
|
8272
|
+
te([
|
|
8260
8273
|
u({ type: String })
|
|
8261
|
-
],
|
|
8262
|
-
|
|
8274
|
+
], X.prototype, "resize");
|
|
8275
|
+
te([
|
|
8263
8276
|
V("textarea")
|
|
8264
|
-
],
|
|
8265
|
-
var
|
|
8277
|
+
], X.prototype, "textareaElement");
|
|
8278
|
+
var Fi = Object.defineProperty, We = (r, e, t, i) => {
|
|
8266
8279
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8267
8280
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
8268
|
-
return s &&
|
|
8281
|
+
return s && Fi(e, t, s), s;
|
|
8269
8282
|
};
|
|
8270
8283
|
const Lr = () => R({
|
|
8271
8284
|
name: "base-toast",
|
|
@@ -8676,13 +8689,13 @@ class Oe extends M {
|
|
|
8676
8689
|
`;
|
|
8677
8690
|
}
|
|
8678
8691
|
render() {
|
|
8679
|
-
return
|
|
8692
|
+
return g`
|
|
8680
8693
|
<div class="toast-container ${this.variant}">
|
|
8681
|
-
${this.dismiss !== "manual" ?
|
|
8694
|
+
${this.dismiss !== "manual" ? g`
|
|
8682
8695
|
<div class="toast-progress"></div>
|
|
8683
8696
|
` : ""}
|
|
8684
8697
|
<slot></slot>
|
|
8685
|
-
${this.dismiss === "manual" ?
|
|
8698
|
+
${this.dismiss === "manual" ? g`
|
|
8686
8699
|
<button
|
|
8687
8700
|
class="toast-dismiss-btn ${this.variant}"
|
|
8688
8701
|
aria-label="Dismiss toast"
|
|
@@ -8922,7 +8935,7 @@ class Pe extends M {
|
|
|
8922
8935
|
"quantity-input": !0,
|
|
8923
8936
|
[`quantity-input--${this.size}`]: !0
|
|
8924
8937
|
};
|
|
8925
|
-
return
|
|
8938
|
+
return g`
|
|
8926
8939
|
<div class=${S(e)}>
|
|
8927
8940
|
<button
|
|
8928
8941
|
type="button"
|
|
@@ -9035,7 +9048,7 @@ class Re extends M {
|
|
|
9035
9048
|
}
|
|
9036
9049
|
render() {
|
|
9037
9050
|
const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], i = `Switch to ${t?.theme ?? "next"} theme`;
|
|
9038
|
-
return
|
|
9051
|
+
return g`
|
|
9039
9052
|
<button
|
|
9040
9053
|
class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
|
|
9041
9054
|
@click=${this.toggleTheme}
|
|
@@ -9216,7 +9229,7 @@ function Br(r, e) {
|
|
|
9216
9229
|
return r.apply(e, arguments);
|
|
9217
9230
|
};
|
|
9218
9231
|
}
|
|
9219
|
-
const { toString: Wi } = Object.prototype, { getPrototypeOf:
|
|
9232
|
+
const { toString: Wi } = Object.prototype, { getPrototypeOf: Ft } = Object, { iterator: bt, toStringTag: Nr } = Symbol, vt = /* @__PURE__ */ ((r) => (e) => {
|
|
9220
9233
|
const t = Wi.call(e);
|
|
9221
9234
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
9222
9235
|
})(/* @__PURE__ */ Object.create(null)), se = (r) => (r = r.toLowerCase(), (e) => vt(e) === r), yt = (r) => (e) => typeof e === r, { isArray: ze } = Array, Ae = yt("undefined");
|
|
@@ -9231,7 +9244,7 @@ function Ki(r) {
|
|
|
9231
9244
|
const Ji = yt("string"), W = yt("function"), qr = yt("number"), Qe = (r) => r !== null && typeof r == "object", Xi = (r) => r === !0 || r === !1, nt = (r) => {
|
|
9232
9245
|
if (vt(r) !== "object")
|
|
9233
9246
|
return !1;
|
|
9234
|
-
const e =
|
|
9247
|
+
const e = Ft(r);
|
|
9235
9248
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Nr in r) && !(bt in r);
|
|
9236
9249
|
}, Qi = (r) => {
|
|
9237
9250
|
if (!Qe(r) || Xe(r))
|
|
@@ -9262,7 +9275,7 @@ function Ge(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
9262
9275
|
n = o[i], e.call(null, r[n], n, r);
|
|
9263
9276
|
}
|
|
9264
9277
|
}
|
|
9265
|
-
function
|
|
9278
|
+
function Hr(r, e) {
|
|
9266
9279
|
if (Xe(r))
|
|
9267
9280
|
return null;
|
|
9268
9281
|
e = e.toLowerCase();
|
|
@@ -9273,10 +9286,10 @@ function Fr(r, e) {
|
|
|
9273
9286
|
return s;
|
|
9274
9287
|
return null;
|
|
9275
9288
|
}
|
|
9276
|
-
const ve = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
9289
|
+
const ve = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fr = (r) => !Ae(r) && r !== ve;
|
|
9277
9290
|
function Dt() {
|
|
9278
|
-
const { caseless: r, skipUndefined: e } =
|
|
9279
|
-
const a = r &&
|
|
9291
|
+
const { caseless: r, skipUndefined: e } = Fr(this) && this || {}, t = {}, i = (s, o) => {
|
|
9292
|
+
const a = r && Hr(t, o) || o;
|
|
9280
9293
|
nt(t[a]) && nt(s) ? t[a] = Dt(t[a], s) : nt(s) ? t[a] = Dt({}, s) : ze(s) ? t[a] = s.slice() : (!e || !Ae(s)) && (t[a] = s);
|
|
9281
9294
|
};
|
|
9282
9295
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
@@ -9285,18 +9298,18 @@ function Dt() {
|
|
|
9285
9298
|
}
|
|
9286
9299
|
const po = (r, e, t, { allOwnKeys: i } = {}) => (Ge(e, (s, o) => {
|
|
9287
9300
|
t && W(s) ? r[o] = Br(s, t) : r[o] = s;
|
|
9288
|
-
}, { allOwnKeys: i }), r), uo = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r),
|
|
9301
|
+
}, { allOwnKeys: i }), r), uo = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), go = (r, e, t, i) => {
|
|
9289
9302
|
r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, Object.defineProperty(r, "super", {
|
|
9290
9303
|
value: e.prototype
|
|
9291
9304
|
}), t && Object.assign(r.prototype, t);
|
|
9292
|
-
},
|
|
9305
|
+
}, fo = (r, e, t, i) => {
|
|
9293
9306
|
let s, o, a;
|
|
9294
9307
|
const n = {};
|
|
9295
9308
|
if (e = e || {}, r == null) return e;
|
|
9296
9309
|
do {
|
|
9297
9310
|
for (s = Object.getOwnPropertyNames(r), o = s.length; o-- > 0; )
|
|
9298
9311
|
a = s[o], (!i || i(a, r, e)) && !n[a] && (e[a] = r[a], n[a] = !0);
|
|
9299
|
-
r = t !== !1 &&
|
|
9312
|
+
r = t !== !1 && Ft(r);
|
|
9300
9313
|
} while (r && (!t || t(r, e)) && r !== Object.prototype);
|
|
9301
9314
|
return e;
|
|
9302
9315
|
}, mo = (r, e, t) => {
|
|
@@ -9312,7 +9325,7 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (Ge(e, (s, o) => {
|
|
|
9312
9325
|
for (; e-- > 0; )
|
|
9313
9326
|
t[e] = r[e];
|
|
9314
9327
|
return t;
|
|
9315
|
-
}, vo = /* @__PURE__ */ ((r) => (e) => r && e instanceof r)(typeof Uint8Array < "u" &&
|
|
9328
|
+
}, vo = /* @__PURE__ */ ((r) => (e) => r && e instanceof r)(typeof Uint8Array < "u" && Ft(Uint8Array)), yo = (r, e) => {
|
|
9316
9329
|
const i = (r && r[bt]).call(r);
|
|
9317
9330
|
let s;
|
|
9318
9331
|
for (; (s = i.next()) && !s.done; ) {
|
|
@@ -9420,8 +9433,8 @@ const To = (r) => {
|
|
|
9420
9433
|
extend: po,
|
|
9421
9434
|
trim: ho,
|
|
9422
9435
|
stripBOM: uo,
|
|
9423
|
-
inherits:
|
|
9424
|
-
toFlatObject:
|
|
9436
|
+
inherits: go,
|
|
9437
|
+
toFlatObject: fo,
|
|
9425
9438
|
kindOf: vt,
|
|
9426
9439
|
kindOfTest: se,
|
|
9427
9440
|
endsWith: mo,
|
|
@@ -9438,9 +9451,9 @@ const To = (r) => {
|
|
|
9438
9451
|
toCamelCase: $o,
|
|
9439
9452
|
noop: Ao,
|
|
9440
9453
|
toFiniteNumber: Co,
|
|
9441
|
-
findKey:
|
|
9454
|
+
findKey: Hr,
|
|
9442
9455
|
global: ve,
|
|
9443
|
-
isContextDefined:
|
|
9456
|
+
isContextDefined: Fr,
|
|
9444
9457
|
isSpecCompliantForm: Eo,
|
|
9445
9458
|
toJSONObject: To,
|
|
9446
9459
|
isAsyncFn: Do,
|
|
@@ -9508,7 +9521,7 @@ function Ot(r) {
|
|
|
9508
9521
|
function Wr(r) {
|
|
9509
9522
|
return d.endsWith(r, "[]") ? r.slice(0, -2) : r;
|
|
9510
9523
|
}
|
|
9511
|
-
function
|
|
9524
|
+
function gr(r, e, t) {
|
|
9512
9525
|
return r ? r.concat(e).map(function(s, o) {
|
|
9513
9526
|
return s = Wr(s), !t && o ? "[" + s + "]" : s;
|
|
9514
9527
|
}).join(t ? "." : "") : e;
|
|
@@ -9532,42 +9545,42 @@ function wt(r, e, t) {
|
|
|
9532
9545
|
const i = t.metaTokens, s = t.visitor || c, o = t.dots, a = t.indexes, l = (t.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
|
|
9533
9546
|
if (!d.isFunction(s))
|
|
9534
9547
|
throw new TypeError("visitor must be a function");
|
|
9535
|
-
function h(
|
|
9536
|
-
if (
|
|
9537
|
-
if (d.isDate(
|
|
9538
|
-
return
|
|
9539
|
-
if (d.isBoolean(
|
|
9540
|
-
return
|
|
9541
|
-
if (!l && d.isBlob(
|
|
9548
|
+
function h(f) {
|
|
9549
|
+
if (f === null) return "";
|
|
9550
|
+
if (d.isDate(f))
|
|
9551
|
+
return f.toISOString();
|
|
9552
|
+
if (d.isBoolean(f))
|
|
9553
|
+
return f.toString();
|
|
9554
|
+
if (!l && d.isBlob(f))
|
|
9542
9555
|
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
9543
|
-
return d.isArrayBuffer(
|
|
9556
|
+
return d.isArrayBuffer(f) || d.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
9544
9557
|
}
|
|
9545
|
-
function c(
|
|
9546
|
-
let x =
|
|
9547
|
-
if (
|
|
9558
|
+
function c(f, v, m) {
|
|
9559
|
+
let x = f;
|
|
9560
|
+
if (f && !m && typeof f == "object") {
|
|
9548
9561
|
if (d.endsWith(v, "{}"))
|
|
9549
|
-
v = i ? v : v.slice(0, -2),
|
|
9550
|
-
else if (d.isArray(
|
|
9562
|
+
v = i ? v : v.slice(0, -2), f = JSON.stringify(f);
|
|
9563
|
+
else if (d.isArray(f) && Mo(f) || (d.isFileList(f) || d.endsWith(v, "[]")) && (x = d.toArray(f)))
|
|
9551
9564
|
return v = Wr(v), x.forEach(function(A, T) {
|
|
9552
9565
|
!(d.isUndefined(A) || A === null) && e.append(
|
|
9553
9566
|
// eslint-disable-next-line no-nested-ternary
|
|
9554
|
-
a === !0 ?
|
|
9567
|
+
a === !0 ? gr([v], T, o) : a === null ? v : v + "[]",
|
|
9555
9568
|
h(A)
|
|
9556
9569
|
);
|
|
9557
9570
|
}), !1;
|
|
9558
9571
|
}
|
|
9559
|
-
return Ot(
|
|
9572
|
+
return Ot(f) ? !0 : (e.append(gr(m, v, o), h(f)), !1);
|
|
9560
9573
|
}
|
|
9561
9574
|
const p = [], b = Object.assign(Io, {
|
|
9562
9575
|
defaultVisitor: c,
|
|
9563
9576
|
convertValue: h,
|
|
9564
9577
|
isVisitable: Ot
|
|
9565
9578
|
});
|
|
9566
|
-
function y(
|
|
9567
|
-
if (!d.isUndefined(
|
|
9568
|
-
if (p.indexOf(
|
|
9579
|
+
function y(f, v) {
|
|
9580
|
+
if (!d.isUndefined(f)) {
|
|
9581
|
+
if (p.indexOf(f) !== -1)
|
|
9569
9582
|
throw Error("Circular reference detected in " + v.join("."));
|
|
9570
|
-
p.push(
|
|
9583
|
+
p.push(f), d.forEach(f, function(x, _) {
|
|
9571
9584
|
(!(d.isUndefined(x) || x === null) && s.call(
|
|
9572
9585
|
e,
|
|
9573
9586
|
x,
|
|
@@ -9582,7 +9595,7 @@ function wt(r, e, t) {
|
|
|
9582
9595
|
throw new TypeError("data must be an object");
|
|
9583
9596
|
return y(r), e;
|
|
9584
9597
|
}
|
|
9585
|
-
function
|
|
9598
|
+
function fr(r) {
|
|
9586
9599
|
const e = {
|
|
9587
9600
|
"!": "%21",
|
|
9588
9601
|
"'": "%27",
|
|
@@ -9605,8 +9618,8 @@ Kr.append = function(e, t) {
|
|
|
9605
9618
|
};
|
|
9606
9619
|
Kr.toString = function(e) {
|
|
9607
9620
|
const t = e ? function(i) {
|
|
9608
|
-
return e.call(this, i,
|
|
9609
|
-
} :
|
|
9621
|
+
return e.call(this, i, fr);
|
|
9622
|
+
} : fr;
|
|
9610
9623
|
return this._pairs.map(function(s) {
|
|
9611
9624
|
return t(s[0]) + "=" + t(s[1]);
|
|
9612
9625
|
}, "").join("&");
|
|
@@ -9695,22 +9708,22 @@ const Xr = {
|
|
|
9695
9708
|
Blob: Uo
|
|
9696
9709
|
},
|
|
9697
9710
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
9698
|
-
}, Vt = typeof window < "u" && typeof document < "u", Pt = typeof navigator == "object" && navigator || void 0,
|
|
9711
|
+
}, Vt = typeof window < "u" && typeof document < "u", Pt = typeof navigator == "object" && navigator || void 0, Ho = Vt && (!Pt || ["ReactNative", "NativeScript", "NS"].indexOf(Pt.product) < 0), Fo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
9699
9712
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jo = Vt && window.location.href || "http://localhost", Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9700
9713
|
__proto__: null,
|
|
9701
9714
|
hasBrowserEnv: Vt,
|
|
9702
|
-
hasStandardBrowserEnv:
|
|
9703
|
-
hasStandardBrowserWebWorkerEnv:
|
|
9715
|
+
hasStandardBrowserEnv: Ho,
|
|
9716
|
+
hasStandardBrowserWebWorkerEnv: Fo,
|
|
9704
9717
|
navigator: Pt,
|
|
9705
9718
|
origin: jo
|
|
9706
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9719
|
+
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
9707
9720
|
...Vo,
|
|
9708
9721
|
...qo
|
|
9709
9722
|
};
|
|
9710
9723
|
function Zo(r, e) {
|
|
9711
|
-
return wt(r, new
|
|
9724
|
+
return wt(r, new H.classes.URLSearchParams(), {
|
|
9712
9725
|
visitor: function(t, i, s, o) {
|
|
9713
|
-
return
|
|
9726
|
+
return H.isNode && d.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
9714
9727
|
},
|
|
9715
9728
|
...e
|
|
9716
9729
|
});
|
|
@@ -9805,8 +9818,8 @@ const et = {
|
|
|
9805
9818
|
maxContentLength: -1,
|
|
9806
9819
|
maxBodyLength: -1,
|
|
9807
9820
|
env: {
|
|
9808
|
-
FormData:
|
|
9809
|
-
Blob:
|
|
9821
|
+
FormData: H.classes.FormData,
|
|
9822
|
+
Blob: H.classes.Blob
|
|
9810
9823
|
},
|
|
9811
9824
|
validateStatus: function(e) {
|
|
9812
9825
|
return e >= 200 && e < 300;
|
|
@@ -10106,10 +10119,10 @@ const pt = (r, e, t = 3) => {
|
|
|
10106
10119
|
total: r,
|
|
10107
10120
|
loaded: i
|
|
10108
10121
|
}), e[1]];
|
|
10109
|
-
}, yr = (r) => (...e) => d.asap(() => r(...e)), oa =
|
|
10110
|
-
new URL(
|
|
10111
|
-
|
|
10112
|
-
) : () => !0, aa =
|
|
10122
|
+
}, yr = (r) => (...e) => d.asap(() => r(...e)), oa = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, H.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
10123
|
+
new URL(H.origin),
|
|
10124
|
+
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
10125
|
+
) : () => !0, aa = H.hasStandardBrowserEnv ? (
|
|
10113
10126
|
// Standard browser envs support document.cookie
|
|
10114
10127
|
{
|
|
10115
10128
|
write(r, e, t, i, s, o, a) {
|
|
@@ -10220,7 +10233,7 @@ const rs = (r) => {
|
|
|
10220
10233
|
"Authorization",
|
|
10221
10234
|
"Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
|
|
10222
10235
|
), d.isFormData(t)) {
|
|
10223
|
-
if (
|
|
10236
|
+
if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
|
|
10224
10237
|
a.setContentType(void 0);
|
|
10225
10238
|
else if (d.isFunction(t.getHeaders)) {
|
|
10226
10239
|
const l = t.getHeaders(), h = ["content-type", "content-length"];
|
|
@@ -10229,7 +10242,7 @@ const rs = (r) => {
|
|
|
10229
10242
|
});
|
|
10230
10243
|
}
|
|
10231
10244
|
}
|
|
10232
|
-
if (
|
|
10245
|
+
if (H.hasStandardBrowserEnv && (i && d.isFunction(i) && (i = i(e)), i || i !== !1 && oa(e.url))) {
|
|
10233
10246
|
const l = s && o && aa.read(o);
|
|
10234
10247
|
l && a.set(s, l);
|
|
10235
10248
|
}
|
|
@@ -10239,9 +10252,9 @@ const rs = (r) => {
|
|
|
10239
10252
|
const s = rs(r);
|
|
10240
10253
|
let o = s.data;
|
|
10241
10254
|
const a = K.from(s.headers).normalize();
|
|
10242
|
-
let { responseType: n, onUploadProgress: l, onDownloadProgress: h } = s, c, p, b, y,
|
|
10255
|
+
let { responseType: n, onUploadProgress: l, onDownloadProgress: h } = s, c, p, b, y, f;
|
|
10243
10256
|
function v() {
|
|
10244
|
-
y && y(),
|
|
10257
|
+
y && y(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
|
|
10245
10258
|
}
|
|
10246
10259
|
let m = new XMLHttpRequest();
|
|
10247
10260
|
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
@@ -10258,10 +10271,10 @@ const rs = (r) => {
|
|
|
10258
10271
|
config: r,
|
|
10259
10272
|
request: m
|
|
10260
10273
|
};
|
|
10261
|
-
es(function(
|
|
10262
|
-
t(
|
|
10263
|
-
}, function(
|
|
10264
|
-
i(
|
|
10274
|
+
es(function(Q) {
|
|
10275
|
+
t(Q), v();
|
|
10276
|
+
}, function(Q) {
|
|
10277
|
+
i(Q), v();
|
|
10265
10278
|
}, N), m = null;
|
|
10266
10279
|
}
|
|
10267
10280
|
"onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
|
|
@@ -10282,11 +10295,11 @@ const rs = (r) => {
|
|
|
10282
10295
|
)), m = null;
|
|
10283
10296
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && d.forEach(a.toJSON(), function(T, N) {
|
|
10284
10297
|
m.setRequestHeader(N, T);
|
|
10285
|
-
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b,
|
|
10298
|
+
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, f] = pt(h, !0), m.addEventListener("progress", b)), l && m.upload && ([p, y] = pt(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (c = (A) => {
|
|
10286
10299
|
m && (i(!A || A.type ? new Me(null, r, m) : A), m.abort(), m = null);
|
|
10287
10300
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
10288
10301
|
const _ = ra(s.url);
|
|
10289
|
-
if (_ &&
|
|
10302
|
+
if (_ && H.protocols.indexOf(_) === -1) {
|
|
10290
10303
|
i(new $("Unsupported protocol " + _ + ":", $.ERR_BAD_REQUEST, r));
|
|
10291
10304
|
return;
|
|
10292
10305
|
}
|
|
@@ -10325,9 +10338,9 @@ const rs = (r) => {
|
|
|
10325
10338
|
for (; i < t; )
|
|
10326
10339
|
s = i + e, yield r.slice(i, s), i = s;
|
|
10327
10340
|
}, ua = async function* (r, e) {
|
|
10328
|
-
for await (const t of
|
|
10341
|
+
for await (const t of ga(r))
|
|
10329
10342
|
yield* pa(t, e);
|
|
10330
|
-
},
|
|
10343
|
+
}, ga = async function* (r) {
|
|
10331
10344
|
if (r[Symbol.asyncIterator]) {
|
|
10332
10345
|
yield* r;
|
|
10333
10346
|
return;
|
|
@@ -10372,7 +10385,7 @@ const rs = (r) => {
|
|
|
10372
10385
|
}, {
|
|
10373
10386
|
highWaterMark: 2
|
|
10374
10387
|
});
|
|
10375
|
-
}, $r = 64 * 1024, { isFunction: ot } = d,
|
|
10388
|
+
}, $r = 64 * 1024, { isFunction: ot } = d, fa = (({ Request: r, Response: e }) => ({
|
|
10376
10389
|
Request: r,
|
|
10377
10390
|
Response: e
|
|
10378
10391
|
}))(d.global), {
|
|
@@ -10387,50 +10400,50 @@ const rs = (r) => {
|
|
|
10387
10400
|
}, ma = (r) => {
|
|
10388
10401
|
r = d.merge.call({
|
|
10389
10402
|
skipUndefined: !0
|
|
10390
|
-
},
|
|
10403
|
+
}, fa, r);
|
|
10391
10404
|
const { fetch: e, Request: t, Response: i } = r, s = e ? ot(e) : typeof fetch == "function", o = ot(t), a = ot(i);
|
|
10392
10405
|
if (!s)
|
|
10393
10406
|
return !1;
|
|
10394
|
-
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((
|
|
10395
|
-
let
|
|
10396
|
-
const v = new t(
|
|
10407
|
+
const n = s && ot(kr), l = s && (typeof Sr == "function" ? /* @__PURE__ */ ((f) => (v) => f.encode(v))(new Sr()) : async (f) => new Uint8Array(await new t(f).arrayBuffer())), h = o && n && _r(() => {
|
|
10408
|
+
let f = !1;
|
|
10409
|
+
const v = new t(H.origin, {
|
|
10397
10410
|
body: new kr(),
|
|
10398
10411
|
method: "POST",
|
|
10399
10412
|
get duplex() {
|
|
10400
|
-
return
|
|
10413
|
+
return f = !0, "half";
|
|
10401
10414
|
}
|
|
10402
10415
|
}).headers.has("Content-Type");
|
|
10403
|
-
return
|
|
10416
|
+
return f && !v;
|
|
10404
10417
|
}), c = a && n && _r(() => d.isReadableStream(new i("").body)), p = {
|
|
10405
|
-
stream: c && ((
|
|
10418
|
+
stream: c && ((f) => f.body)
|
|
10406
10419
|
};
|
|
10407
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
10408
|
-
!p[
|
|
10409
|
-
let x = v && v[
|
|
10420
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
10421
|
+
!p[f] && (p[f] = (v, m) => {
|
|
10422
|
+
let x = v && v[f];
|
|
10410
10423
|
if (x)
|
|
10411
10424
|
return x.call(v);
|
|
10412
|
-
throw new $(`Response type '${
|
|
10425
|
+
throw new $(`Response type '${f}' is not supported`, $.ERR_NOT_SUPPORT, m);
|
|
10413
10426
|
});
|
|
10414
10427
|
});
|
|
10415
|
-
const b = async (
|
|
10416
|
-
if (
|
|
10428
|
+
const b = async (f) => {
|
|
10429
|
+
if (f == null)
|
|
10417
10430
|
return 0;
|
|
10418
|
-
if (d.isBlob(
|
|
10419
|
-
return
|
|
10420
|
-
if (d.isSpecCompliantForm(
|
|
10421
|
-
return (await new t(
|
|
10431
|
+
if (d.isBlob(f))
|
|
10432
|
+
return f.size;
|
|
10433
|
+
if (d.isSpecCompliantForm(f))
|
|
10434
|
+
return (await new t(H.origin, {
|
|
10422
10435
|
method: "POST",
|
|
10423
|
-
body:
|
|
10436
|
+
body: f
|
|
10424
10437
|
}).arrayBuffer()).byteLength;
|
|
10425
|
-
if (d.isArrayBufferView(
|
|
10426
|
-
return
|
|
10427
|
-
if (d.isURLSearchParams(
|
|
10428
|
-
return (await l(
|
|
10429
|
-
}, y = async (
|
|
10430
|
-
const m = d.toFiniteNumber(
|
|
10438
|
+
if (d.isArrayBufferView(f) || d.isArrayBuffer(f))
|
|
10439
|
+
return f.byteLength;
|
|
10440
|
+
if (d.isURLSearchParams(f) && (f = f + ""), d.isString(f))
|
|
10441
|
+
return (await l(f)).byteLength;
|
|
10442
|
+
}, y = async (f, v) => {
|
|
10443
|
+
const m = d.toFiniteNumber(f.getContentLength());
|
|
10431
10444
|
return m ?? b(v);
|
|
10432
10445
|
};
|
|
10433
|
-
return async (
|
|
10446
|
+
return async (f) => {
|
|
10434
10447
|
let {
|
|
10435
10448
|
url: v,
|
|
10436
10449
|
method: m,
|
|
@@ -10440,14 +10453,14 @@ const rs = (r) => {
|
|
|
10440
10453
|
timeout: T,
|
|
10441
10454
|
onDownloadProgress: N,
|
|
10442
10455
|
onUploadProgress: ue,
|
|
10443
|
-
responseType:
|
|
10456
|
+
responseType: Q,
|
|
10444
10457
|
headers: $t,
|
|
10445
10458
|
withCredentials: tt = "same-origin",
|
|
10446
10459
|
fetchOptions: Wt
|
|
10447
|
-
} = rs(
|
|
10448
|
-
|
|
10460
|
+
} = rs(f), Kt = e || fetch;
|
|
10461
|
+
Q = Q ? (Q + "").toLowerCase() : "text";
|
|
10449
10462
|
let rt = ha([_, A && A.toAbortSignal()], T), Ie = null;
|
|
10450
|
-
const
|
|
10463
|
+
const ge = rt && rt.unsubscribe && (() => {
|
|
10451
10464
|
rt.unsubscribe();
|
|
10452
10465
|
});
|
|
10453
10466
|
let Jt;
|
|
@@ -10478,8 +10491,8 @@ const rs = (r) => {
|
|
|
10478
10491
|
};
|
|
10479
10492
|
Ie = o && new t(v, Xt);
|
|
10480
10493
|
let ce = await (o ? Kt(Ie, Wt) : Kt(v, Xt));
|
|
10481
|
-
const Qt = c && (
|
|
10482
|
-
if (c && (N || Qt &&
|
|
10494
|
+
const Qt = c && (Q === "stream" || Q === "response");
|
|
10495
|
+
if (c && (N || Qt && ge)) {
|
|
10483
10496
|
const de = {};
|
|
10484
10497
|
["status", "statusText", "headers"].forEach((Gt) => {
|
|
10485
10498
|
de[Gt] = ce[Gt];
|
|
@@ -10490,30 +10503,30 @@ const rs = (r) => {
|
|
|
10490
10503
|
) || [];
|
|
10491
10504
|
ce = new i(
|
|
10492
10505
|
xr(ce.body, $r, kt, () => {
|
|
10493
|
-
st && st(),
|
|
10506
|
+
st && st(), ge && ge();
|
|
10494
10507
|
}),
|
|
10495
10508
|
de
|
|
10496
10509
|
);
|
|
10497
10510
|
}
|
|
10498
|
-
|
|
10499
|
-
let ns = await p[d.findKey(p,
|
|
10500
|
-
return !Qt &&
|
|
10511
|
+
Q = Q || "text";
|
|
10512
|
+
let ns = await p[d.findKey(p, Q) || "text"](ce, f);
|
|
10513
|
+
return !Qt && ge && ge(), await new Promise((de, ke) => {
|
|
10501
10514
|
es(de, ke, {
|
|
10502
10515
|
data: ns,
|
|
10503
10516
|
headers: K.from(ce.headers),
|
|
10504
10517
|
status: ce.status,
|
|
10505
10518
|
statusText: ce.statusText,
|
|
10506
|
-
config:
|
|
10519
|
+
config: f,
|
|
10507
10520
|
request: Ie
|
|
10508
10521
|
});
|
|
10509
10522
|
});
|
|
10510
10523
|
} catch (ie) {
|
|
10511
|
-
throw
|
|
10512
|
-
new $("Network Error", $.ERR_NETWORK,
|
|
10524
|
+
throw ge && ge(), ie && ie.name === "TypeError" && /Load failed|fetch/i.test(ie.message) ? Object.assign(
|
|
10525
|
+
new $("Network Error", $.ERR_NETWORK, f, Ie),
|
|
10513
10526
|
{
|
|
10514
10527
|
cause: ie.cause || ie
|
|
10515
10528
|
}
|
|
10516
|
-
) : $.from(ie, ie && ie.code,
|
|
10529
|
+
) : $.from(ie, ie && ie.code, f, Ie);
|
|
10517
10530
|
}
|
|
10518
10531
|
};
|
|
10519
10532
|
}, ba = /* @__PURE__ */ new Map(), ss = (r) => {
|
|
@@ -10706,8 +10719,8 @@ class ye {
|
|
|
10706
10719
|
);
|
|
10707
10720
|
o && d.forEach(
|
|
10708
10721
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
10709
|
-
(
|
|
10710
|
-
delete o[
|
|
10722
|
+
(f) => {
|
|
10723
|
+
delete o[f];
|
|
10711
10724
|
}
|
|
10712
10725
|
), t.headers = K.concat(a, o);
|
|
10713
10726
|
const n = [];
|
|
@@ -10721,17 +10734,17 @@ class ye {
|
|
|
10721
10734
|
});
|
|
10722
10735
|
let c, p = 0, b;
|
|
10723
10736
|
if (!l) {
|
|
10724
|
-
const
|
|
10725
|
-
for (
|
|
10726
|
-
c = c.then(
|
|
10737
|
+
const f = [Cr.bind(this), void 0];
|
|
10738
|
+
for (f.unshift(...n), f.push(...h), b = f.length, c = Promise.resolve(t); p < b; )
|
|
10739
|
+
c = c.then(f[p++], f[p++]);
|
|
10727
10740
|
return c;
|
|
10728
10741
|
}
|
|
10729
10742
|
b = n.length;
|
|
10730
10743
|
let y = t;
|
|
10731
10744
|
for (; p < b; ) {
|
|
10732
|
-
const
|
|
10745
|
+
const f = n[p++], v = n[p++];
|
|
10733
10746
|
try {
|
|
10734
|
-
y =
|
|
10747
|
+
y = f(y);
|
|
10735
10748
|
} catch (m) {
|
|
10736
10749
|
v.call(this, m);
|
|
10737
10750
|
break;
|
|
@@ -10739,8 +10752,8 @@ class ye {
|
|
|
10739
10752
|
}
|
|
10740
10753
|
try {
|
|
10741
10754
|
c = Cr.call(this, y);
|
|
10742
|
-
} catch (
|
|
10743
|
-
return Promise.reject(
|
|
10755
|
+
} catch (f) {
|
|
10756
|
+
return Promise.reject(f);
|
|
10744
10757
|
}
|
|
10745
10758
|
for (p = 0, b = h.length; p < b; )
|
|
10746
10759
|
c = c.then(h[p++], h[p++]);
|
|
@@ -11066,7 +11079,7 @@ const Ca = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
|
11066
11079
|
), t;
|
|
11067
11080
|
};
|
|
11068
11081
|
function Ea() {
|
|
11069
|
-
Vs(), Ys(), Ks(), Xs(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(),
|
|
11082
|
+
Vs(), Ys(), Ks(), Xs(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(), Hi(), Gs(), Lr(), Vi(), Yi();
|
|
11070
11083
|
}
|
|
11071
11084
|
export {
|
|
11072
11085
|
C as AuthForm,
|
|
@@ -11077,13 +11090,13 @@ export {
|
|
|
11077
11090
|
q as BaseDateTimePicker,
|
|
11078
11091
|
j as BaseDrawer,
|
|
11079
11092
|
Te as BaseIcon,
|
|
11080
|
-
|
|
11093
|
+
G as BaseInput,
|
|
11081
11094
|
Ze as BaseList,
|
|
11082
|
-
|
|
11095
|
+
J as BaseListItem,
|
|
11083
11096
|
D as BaseSelect,
|
|
11084
11097
|
De as BaseTab,
|
|
11085
11098
|
ae as BaseTabs,
|
|
11086
|
-
|
|
11099
|
+
X as BaseTextarea,
|
|
11087
11100
|
L as BaseTimePicker,
|
|
11088
11101
|
Oe as BaseToast,
|
|
11089
11102
|
Pe as QuantitySelect,
|
|
@@ -11103,7 +11116,7 @@ export {
|
|
|
11103
11116
|
Ii as registerBaseSelect,
|
|
11104
11117
|
Bi as registerBaseTab,
|
|
11105
11118
|
Ui as registerBaseTabs,
|
|
11106
|
-
|
|
11119
|
+
Hi as registerBaseTextarea,
|
|
11107
11120
|
Gs as registerBaseTimePicker,
|
|
11108
11121
|
Lr as registerBaseToast,
|
|
11109
11122
|
Vi as registerQuantitySelect,
|