@cal.macconnachie/web-components 2.6.15 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/index.js +202 -167
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -363,6 +363,8 @@ export declare class BaseListItem extends BaseElement {
|
|
|
363
363
|
private isDragging;
|
|
364
364
|
private swipeThreshold;
|
|
365
365
|
private documentClickHandler;
|
|
366
|
+
private leftTimeout;
|
|
367
|
+
private rightTimeout;
|
|
366
368
|
static styles: CSSResult;
|
|
367
369
|
private handleClick;
|
|
368
370
|
private handleKeyDown;
|
|
@@ -678,6 +680,11 @@ export declare interface SwipeAction {
|
|
|
678
680
|
color?: string;
|
|
679
681
|
iconColor?: string;
|
|
680
682
|
label?: string;
|
|
683
|
+
desktopConfig?: {
|
|
684
|
+
showOnHover?: boolean;
|
|
685
|
+
hoverChar?: string;
|
|
686
|
+
hoverDelay?: number;
|
|
687
|
+
};
|
|
681
688
|
}
|
|
682
689
|
|
|
683
690
|
export declare interface TabData {
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const ls = (s) => new Dr(typeof s == "string" ? s : s + "", void 0, Mt), U = (s,
|
|
|
35
35
|
for (const i of e.cssRules) t += i.cssText;
|
|
36
36
|
return ls(t);
|
|
37
37
|
})(s) : s;
|
|
38
|
-
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: fs, getPrototypeOf: gs } = Object, ft = globalThis, rr = ft.trustedTypes, ms = rr ? rr.emptyScript : "", bs = ft.reactiveElementPolyfillSupport,
|
|
38
|
+
const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnPropertyNames: us, getOwnPropertySymbols: fs, getPrototypeOf: gs } = Object, ft = globalThis, rr = ft.trustedTypes, ms = rr ? rr.emptyScript : "", bs = ft.reactiveElementPolyfillSupport, He = (s, e) => s, ht = { toAttribute(s, e) {
|
|
39
39
|
switch (e) {
|
|
40
40
|
case Boolean:
|
|
41
41
|
s = s ? ms : null;
|
|
@@ -65,7 +65,7 @@ const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnProperty
|
|
|
65
65
|
return t;
|
|
66
66
|
} }, It = (s, e) => !ds(s, e), sr = { attribute: !0, type: String, converter: ht, reflect: !1, useDefault: !1, hasChanged: It };
|
|
67
67
|
Symbol.metadata ??= Symbol("metadata"), ft.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
68
|
-
let
|
|
68
|
+
let Ae = class extends HTMLElement {
|
|
69
69
|
static addInitializer(e) {
|
|
70
70
|
this._$Ei(), (this.l ??= []).push(e);
|
|
71
71
|
}
|
|
@@ -93,13 +93,13 @@ let _e = class extends HTMLElement {
|
|
|
93
93
|
return this.elementProperties.get(e) ?? sr;
|
|
94
94
|
}
|
|
95
95
|
static _$Ei() {
|
|
96
|
-
if (this.hasOwnProperty(
|
|
96
|
+
if (this.hasOwnProperty(He("elementProperties"))) return;
|
|
97
97
|
const e = gs(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
|
-
if (this.hasOwnProperty(
|
|
102
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
101
|
+
if (this.hasOwnProperty(He("finalized"))) return;
|
|
102
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(He("properties"))) {
|
|
103
103
|
const t = this.properties, i = [...us(t), ...fs(t)];
|
|
104
104
|
for (const r of i) this.createProperty(r, t[r]);
|
|
105
105
|
}
|
|
@@ -246,7 +246,7 @@ let _e = class extends HTMLElement {
|
|
|
246
246
|
firstUpdated(e) {
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
|
|
249
|
+
Ae.elementStyles = [], Ae.shadowRootOptions = { mode: "open" }, Ae[He("elementProperties")] = /* @__PURE__ */ new Map(), Ae[He("finalized")] = /* @__PURE__ */ new Map(), bs?.({ ReactiveElement: Ae }), (ft.reactiveElementVersions ??= []).push("2.1.1");
|
|
250
250
|
const Lt = globalThis, pt = Lt.trustedTypes, ir = pt ? pt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Or = "$lit$", pe = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + pe, vs = `<${Pr}>`, xe = document, je = () => xe.createComment(""), Ve = (s) => s === null || typeof s != "object" && typeof s != "function", Bt = Array.isArray, ys = (s) => Bt(s) || typeof s?.[Symbol.iterator] == "function", St = `[
|
|
251
251
|
\f\r]`, Ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, or = /-->/g, ar = />/g, me = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
|
252
252
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), nr = /'/g, lr = /"/g, Rr = /^(?:script|style|textarea|title)$/i, ws = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), f = ws(1), le = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), cr = /* @__PURE__ */ new WeakMap(), ve = xe.createTreeWalker(xe, 129);
|
|
@@ -303,11 +303,11 @@ class Ye {
|
|
|
303
303
|
return i.innerHTML = e, i;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function _e(s, e, t = s, i) {
|
|
307
307
|
if (e === le) return e;
|
|
308
308
|
let r = i !== void 0 ? t._$Co?.[i] : t._$Cl;
|
|
309
309
|
const o = Ve(e) ? void 0 : e._$litDirective$;
|
|
310
|
-
return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = r : t._$Cl = r), r !== void 0 && (e =
|
|
310
|
+
return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = r : t._$Cl = r), r !== void 0 && (e = _e(s, r._$AS(s, e.values), r, i)), e;
|
|
311
311
|
}
|
|
312
312
|
let $s = class {
|
|
313
313
|
constructor(e, t) {
|
|
@@ -326,7 +326,7 @@ let $s = class {
|
|
|
326
326
|
for (; l !== void 0; ) {
|
|
327
327
|
if (a === l.index) {
|
|
328
328
|
let p;
|
|
329
|
-
l.type === 2 ? p = new Te(o, o.nextSibling, this, e) : l.type === 1 ? p = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (p = new
|
|
329
|
+
l.type === 2 ? p = new Te(o, o.nextSibling, this, e) : l.type === 1 ? p = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (p = new As(o, this, e)), this._$AV.push(p), l = i[++n];
|
|
330
330
|
}
|
|
331
331
|
a !== l?.index && (o = ve.nextNode(), a++);
|
|
332
332
|
}
|
|
@@ -356,7 +356,7 @@ class Te {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, t = this) {
|
|
359
|
-
e =
|
|
359
|
+
e = _e(this, e, t), Ve(e) ? e === k || e == null || e === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : e !== this._$AH && e !== le && 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);
|
|
@@ -409,11 +409,11 @@ class gt {
|
|
|
409
409
|
_$AI(e, t = this, i, r) {
|
|
410
410
|
const o = this.strings;
|
|
411
411
|
let a = !1;
|
|
412
|
-
if (o === void 0) e =
|
|
412
|
+
if (o === void 0) e = _e(this, e, t, 0), a = !Ve(e) || e !== this._$AH && e !== le, a && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const n = e;
|
|
415
415
|
let l, p;
|
|
416
|
-
for (e = o[0], l = 0; l < o.length - 1; l++) p =
|
|
416
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) p = _e(this, n[i + l], t, l), p === le && (p = this._$AH[l]), a ||= !Ve(p) || p !== this._$AH[l], p === k ? e = k : e !== k && (e += (p ?? "") + o[l + 1]), this._$AH[l] = p;
|
|
417
417
|
}
|
|
418
418
|
a && !r && this.j(e);
|
|
419
419
|
}
|
|
@@ -442,7 +442,7 @@ class Cs extends gt {
|
|
|
442
442
|
super(e, t, i, r, o), this.type = 5;
|
|
443
443
|
}
|
|
444
444
|
_$AI(e, t = this) {
|
|
445
|
-
if ((e =
|
|
445
|
+
if ((e = _e(this, e, t, 0) ?? k) === le) return;
|
|
446
446
|
const i = this._$AH, r = e === k && i !== k || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, o = e !== k && (i === k || r);
|
|
447
447
|
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
448
448
|
}
|
|
@@ -450,7 +450,7 @@ class Cs extends gt {
|
|
|
450
450
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class As {
|
|
454
454
|
constructor(e, t, i) {
|
|
455
455
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
456
456
|
}
|
|
@@ -458,10 +458,10 @@ class _s {
|
|
|
458
458
|
return this._$AM._$AU;
|
|
459
459
|
}
|
|
460
460
|
_$AI(e) {
|
|
461
|
-
|
|
461
|
+
_e(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const _s = { I: Te }, Es = Lt.litHtmlPolyfillSupport;
|
|
465
465
|
Es?.(Ye, Te), (Lt.litHtmlVersions ??= []).push("3.3.1");
|
|
466
466
|
const Ts = (s, e, t) => {
|
|
467
467
|
const i = t?.renderBefore ?? e;
|
|
@@ -473,7 +473,7 @@ const Ts = (s, e, t) => {
|
|
|
473
473
|
return r._$AI(s), r;
|
|
474
474
|
};
|
|
475
475
|
const Nt = globalThis;
|
|
476
|
-
let
|
|
476
|
+
let Fe = class extends Ae {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
479
479
|
}
|
|
@@ -495,9 +495,9 @@ let He = class extends _e {
|
|
|
495
495
|
return le;
|
|
496
496
|
}
|
|
497
497
|
};
|
|
498
|
-
|
|
498
|
+
Fe._$litElement$ = !0, Fe.finalized = !0, Nt.litElementHydrateSupport?.({ LitElement: Fe });
|
|
499
499
|
const Ds = Nt.litElementPolyfillSupport;
|
|
500
|
-
Ds?.({ LitElement:
|
|
500
|
+
Ds?.({ LitElement: Fe });
|
|
501
501
|
(Nt.litElementVersions ??= []).push("4.2.1");
|
|
502
502
|
const Os = { attribute: !0, type: String, converter: ht, reflect: !1, hasChanged: It }, Ps = (s = Os, e, t) => {
|
|
503
503
|
const { kind: i, metadata: r } = t;
|
|
@@ -539,7 +539,7 @@ function Z(s, e) {
|
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
541
|
const Ut = { ATTRIBUTE: 1, CHILD: 2 }, qt = (s) => (...e) => ({ _$litDirective$: s, values: e });
|
|
542
|
-
class
|
|
542
|
+
class Ht {
|
|
543
543
|
constructor(e) {
|
|
544
544
|
}
|
|
545
545
|
get _$AU() {
|
|
@@ -555,7 +555,7 @@ class Ft {
|
|
|
555
555
|
return this.render(...t);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const { I: zs } =
|
|
558
|
+
const { I: zs } = _s, dr = () => document.createComment(""), Ue = (s, e, t) => {
|
|
559
559
|
const i = s._$AA.parentNode, r = e === void 0 ? s._$AB : e._$AA;
|
|
560
560
|
if (t === void 0) {
|
|
561
561
|
const o = i.insertBefore(dr(), r), a = i.insertBefore(dr(), r);
|
|
@@ -582,7 +582,7 @@ const hr = (s, e, t) => {
|
|
|
582
582
|
const i = /* @__PURE__ */ new Map();
|
|
583
583
|
for (let r = e; r <= t; r++) i.set(s[r], r);
|
|
584
584
|
return i;
|
|
585
|
-
}, pr = qt(class extends
|
|
585
|
+
}, pr = qt(class extends Ht {
|
|
586
586
|
constructor(s) {
|
|
587
587
|
if (super(s), s.type !== Ut.CHILD) throw Error("repeat() can only be used in text expressions");
|
|
588
588
|
}
|
|
@@ -633,7 +633,7 @@ var Bs = Object.defineProperty, Mr = (s, e, t, i) => {
|
|
|
633
633
|
(a = s[o]) && (r = a(e, t, r) || r);
|
|
634
634
|
return r && Bs(e, t, r), r;
|
|
635
635
|
};
|
|
636
|
-
class L extends
|
|
636
|
+
class L extends Fe {
|
|
637
637
|
constructor() {
|
|
638
638
|
super(...arguments), this.theme = "light", this.storageKey = "theme-preference", this.boundThemeChangeHandler = this.handleGlobalThemeChange.bind(this);
|
|
639
639
|
}
|
|
@@ -844,7 +844,7 @@ const z = ({
|
|
|
844
844
|
if (s) return s;
|
|
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: s,
|
|
849
849
|
cognitoRegion: e,
|
|
850
850
|
userPoolId: t,
|
|
@@ -856,25 +856,25 @@ const z = ({
|
|
|
856
856
|
clientId: i,
|
|
857
857
|
redirectUri: qs(r)
|
|
858
858
|
}, a = (x) => {
|
|
859
|
-
const
|
|
860
|
-
return crypto.getRandomValues(C), Array.from(C).map((T) =>
|
|
859
|
+
const A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", C = new Uint8Array(x);
|
|
860
|
+
return crypto.getRandomValues(C), Array.from(C).map((T) => A[T % A.length]).join("");
|
|
861
861
|
}, n = async (x) => {
|
|
862
862
|
const C = new TextEncoder().encode(x), T = await crypto.subtle.digest("SHA-256", C);
|
|
863
863
|
return btoa(String.fromCharCode(...new Uint8Array(T))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
864
864
|
}, l = async () => {
|
|
865
|
-
const x = a(128),
|
|
866
|
-
return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge:
|
|
865
|
+
const x = a(128), A = await n(x);
|
|
866
|
+
return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge: A };
|
|
867
867
|
}, p = () => {
|
|
868
868
|
const x = a(32);
|
|
869
869
|
return sessionStorage.setItem("oauth_state", x), x;
|
|
870
870
|
}, c = async () => {
|
|
871
|
-
const { codeChallenge: x } = await l(),
|
|
871
|
+
const { codeChallenge: x } = await l(), A = p(), C = new URLSearchParams({
|
|
872
872
|
response_type: "code",
|
|
873
873
|
client_id: o.clientId,
|
|
874
874
|
redirect_uri: o.redirectUri,
|
|
875
875
|
identity_provider: "Google",
|
|
876
876
|
scope: "openid email profile",
|
|
877
|
-
state:
|
|
877
|
+
state: A,
|
|
878
878
|
code_challenge_method: "S256",
|
|
879
879
|
code_challenge: x,
|
|
880
880
|
prompt: "select_account"
|
|
@@ -884,13 +884,13 @@ const z = ({
|
|
|
884
884
|
const x = await c();
|
|
885
885
|
window.location.href = x;
|
|
886
886
|
}, m = async () => {
|
|
887
|
-
const { codeChallenge: x } = await l(),
|
|
887
|
+
const { codeChallenge: x } = await l(), A = p(), C = new URLSearchParams({
|
|
888
888
|
response_type: "code",
|
|
889
889
|
client_id: o.clientId,
|
|
890
890
|
redirect_uri: o.redirectUri,
|
|
891
891
|
identity_provider: "SignInWithApple",
|
|
892
892
|
scope: "openid email profile",
|
|
893
|
-
state:
|
|
893
|
+
state: A,
|
|
894
894
|
code_challenge_method: "S256",
|
|
895
895
|
code_challenge: x
|
|
896
896
|
});
|
|
@@ -899,8 +899,8 @@ const z = ({
|
|
|
899
899
|
const x = await m();
|
|
900
900
|
window.location.href = x;
|
|
901
901
|
}, g = (x) => {
|
|
902
|
-
const
|
|
903
|
-
return sessionStorage.removeItem("oauth_state"),
|
|
902
|
+
const A = sessionStorage.getItem("oauth_state");
|
|
903
|
+
return sessionStorage.removeItem("oauth_state"), A === x;
|
|
904
904
|
}, v = () => {
|
|
905
905
|
const x = sessionStorage.getItem("pkce_code_verifier");
|
|
906
906
|
return sessionStorage.removeItem("pkce_code_verifier"), x;
|
|
@@ -911,15 +911,15 @@ const z = ({
|
|
|
911
911
|
validateState: g,
|
|
912
912
|
getCodeVerifier: v,
|
|
913
913
|
exchangeCodeForTokens: async (x) => {
|
|
914
|
-
const
|
|
915
|
-
if (!
|
|
914
|
+
const A = v();
|
|
915
|
+
if (!A)
|
|
916
916
|
throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
|
|
917
917
|
const C = new URLSearchParams({
|
|
918
918
|
grant_type: "authorization_code",
|
|
919
919
|
client_id: o.clientId,
|
|
920
920
|
code: x,
|
|
921
921
|
redirect_uri: o.redirectUri,
|
|
922
|
-
code_verifier:
|
|
922
|
+
code_verifier: A
|
|
923
923
|
}), T = await fetch(`${o.domain}/oauth2/token`, {
|
|
924
924
|
method: "POST",
|
|
925
925
|
headers: {
|
|
@@ -928,17 +928,17 @@ const z = ({
|
|
|
928
928
|
body: C.toString()
|
|
929
929
|
});
|
|
930
930
|
if (!T.ok) {
|
|
931
|
-
const
|
|
932
|
-
throw new Error(`Token exchange failed: ${
|
|
931
|
+
const F = await T.text();
|
|
932
|
+
throw new Error(`Token exchange failed: ${F}`);
|
|
933
933
|
}
|
|
934
934
|
return T.json();
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
};
|
|
938
|
-
var
|
|
938
|
+
var Fs = Object.defineProperty, E = (s, e, t, i) => {
|
|
939
939
|
for (var r = void 0, o = s.length - 1, a; o >= 0; o--)
|
|
940
940
|
(a = s[o]) && (r = a(e, t, r) || r);
|
|
941
|
-
return r &&
|
|
941
|
+
return r && Fs(e, t, r), r;
|
|
942
942
|
};
|
|
943
943
|
const js = [
|
|
944
944
|
"code",
|
|
@@ -952,9 +952,9 @@ const js = [
|
|
|
952
952
|
"expires_in"
|
|
953
953
|
], Vs = () => z({
|
|
954
954
|
name: "auth-form",
|
|
955
|
-
element:
|
|
955
|
+
element: _
|
|
956
956
|
});
|
|
957
|
-
class
|
|
957
|
+
class _ extends L {
|
|
958
958
|
constructor() {
|
|
959
959
|
super(...arguments), this.initialMode = "signin", this.logoUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.disableSignup = !1, this.mockMode = !1, this.mode = "signin", this.resetStep = "none", this.signupStep = "form", this.isLoading = !1, this.isLoggedIn = !1, this.email = "", this.password = "", this.givenName = "", this.familyName = "", this.newPassword = "", this.confirmPassword = "", this.notice = "", this.error = "", this.errors = {}, this.userEmail = null, this.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.hasHandledOAuthCallback = !1, this.handleAuthRefreshFailed = () => {
|
|
960
960
|
this.isLoggedIn = !1, this.userEmail = null;
|
|
@@ -1161,7 +1161,7 @@ class A extends L {
|
|
|
1161
1161
|
return null;
|
|
1162
1162
|
if (!this.oauthService) {
|
|
1163
1163
|
const e = this.oauthRedirectUri?.trim() ? this.oauthRedirectUri.trim() : void 0;
|
|
1164
|
-
this.oauthService =
|
|
1164
|
+
this.oauthService = Hs({
|
|
1165
1165
|
domain: this.oauthDomain.trim(),
|
|
1166
1166
|
cognitoRegion: this.oauthRegion.trim(),
|
|
1167
1167
|
userPoolId: this.oauthUserPoolId.trim(),
|
|
@@ -2073,89 +2073,89 @@ class A extends L {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
E([
|
|
2075
2075
|
u({ type: String, attribute: "initial-mode" })
|
|
2076
|
-
],
|
|
2076
|
+
], _.prototype, "initialMode");
|
|
2077
2077
|
E([
|
|
2078
2078
|
u({ type: String, attribute: "logo-url" })
|
|
2079
|
-
],
|
|
2079
|
+
], _.prototype, "logoUrl");
|
|
2080
2080
|
E([
|
|
2081
2081
|
u({ type: String, attribute: "oauth-domain" })
|
|
2082
|
-
],
|
|
2082
|
+
], _.prototype, "oauthDomain");
|
|
2083
2083
|
E([
|
|
2084
2084
|
u({ type: String, attribute: "oauth-region" })
|
|
2085
|
-
],
|
|
2085
|
+
], _.prototype, "oauthRegion");
|
|
2086
2086
|
E([
|
|
2087
2087
|
u({ type: String, attribute: "oauth-user-pool-id" })
|
|
2088
|
-
],
|
|
2088
|
+
], _.prototype, "oauthUserPoolId");
|
|
2089
2089
|
E([
|
|
2090
2090
|
u({ type: String, attribute: "oauth-client-id" })
|
|
2091
|
-
],
|
|
2091
|
+
], _.prototype, "oauthClientId");
|
|
2092
2092
|
E([
|
|
2093
2093
|
u({ type: String, attribute: "oauth-redirect-uri" })
|
|
2094
|
-
],
|
|
2094
|
+
], _.prototype, "oauthRedirectUri");
|
|
2095
2095
|
E([
|
|
2096
2096
|
u({ type: String, attribute: "oauth-spa-domain" })
|
|
2097
|
-
],
|
|
2097
|
+
], _.prototype, "oauthSpaDomain");
|
|
2098
2098
|
E([
|
|
2099
2099
|
u({ type: Boolean, attribute: "disable-signup" })
|
|
2100
|
-
],
|
|
2100
|
+
], _.prototype, "disableSignup");
|
|
2101
2101
|
E([
|
|
2102
2102
|
u({ type: Boolean, attribute: "mock-mode" })
|
|
2103
|
-
],
|
|
2103
|
+
], _.prototype, "mockMode");
|
|
2104
2104
|
E([
|
|
2105
2105
|
y()
|
|
2106
|
-
],
|
|
2106
|
+
], _.prototype, "mode");
|
|
2107
2107
|
E([
|
|
2108
2108
|
y()
|
|
2109
|
-
],
|
|
2109
|
+
], _.prototype, "resetStep");
|
|
2110
2110
|
E([
|
|
2111
2111
|
y()
|
|
2112
|
-
],
|
|
2112
|
+
], _.prototype, "signupStep");
|
|
2113
2113
|
E([
|
|
2114
2114
|
y()
|
|
2115
|
-
],
|
|
2115
|
+
], _.prototype, "isLoading");
|
|
2116
2116
|
E([
|
|
2117
2117
|
y()
|
|
2118
|
-
],
|
|
2118
|
+
], _.prototype, "isLoggedIn");
|
|
2119
2119
|
E([
|
|
2120
2120
|
y()
|
|
2121
|
-
],
|
|
2121
|
+
], _.prototype, "email");
|
|
2122
2122
|
E([
|
|
2123
2123
|
y()
|
|
2124
|
-
],
|
|
2124
|
+
], _.prototype, "password");
|
|
2125
2125
|
E([
|
|
2126
2126
|
y()
|
|
2127
|
-
],
|
|
2127
|
+
], _.prototype, "givenName");
|
|
2128
2128
|
E([
|
|
2129
2129
|
y()
|
|
2130
|
-
],
|
|
2130
|
+
], _.prototype, "familyName");
|
|
2131
2131
|
E([
|
|
2132
2132
|
y()
|
|
2133
|
-
],
|
|
2133
|
+
], _.prototype, "newPassword");
|
|
2134
2134
|
E([
|
|
2135
2135
|
y()
|
|
2136
|
-
],
|
|
2136
|
+
], _.prototype, "confirmPassword");
|
|
2137
2137
|
E([
|
|
2138
2138
|
y()
|
|
2139
|
-
],
|
|
2139
|
+
], _.prototype, "notice");
|
|
2140
2140
|
E([
|
|
2141
2141
|
y()
|
|
2142
|
-
],
|
|
2142
|
+
], _.prototype, "error");
|
|
2143
2143
|
E([
|
|
2144
2144
|
y()
|
|
2145
|
-
],
|
|
2145
|
+
], _.prototype, "errors");
|
|
2146
2146
|
E([
|
|
2147
2147
|
y()
|
|
2148
|
-
],
|
|
2148
|
+
], _.prototype, "userEmail");
|
|
2149
2149
|
E([
|
|
2150
2150
|
y()
|
|
2151
|
-
],
|
|
2151
|
+
], _.prototype, "otpDigits");
|
|
2152
2152
|
E([
|
|
2153
2153
|
y()
|
|
2154
|
-
],
|
|
2154
|
+
], _.prototype, "signupOtpDigits");
|
|
2155
2155
|
E([
|
|
2156
2156
|
Z("#email-input")
|
|
2157
|
-
],
|
|
2158
|
-
const S = qt(class extends
|
|
2157
|
+
], _.prototype, "emailInput");
|
|
2158
|
+
const S = qt(class extends Ht {
|
|
2159
2159
|
constructor(s) {
|
|
2160
2160
|
if (super(s), s.type !== Ut.ATTRIBUTE || s.name !== "class" || s.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
2161
2161
|
}
|
|
@@ -4322,10 +4322,10 @@ const ti = () => {
|
|
|
4322
4322
|
element: N
|
|
4323
4323
|
}), z({
|
|
4324
4324
|
name: "base-datetime-picker",
|
|
4325
|
-
element:
|
|
4325
|
+
element: H
|
|
4326
4326
|
});
|
|
4327
4327
|
};
|
|
4328
|
-
class
|
|
4328
|
+
class H extends L {
|
|
4329
4329
|
constructor() {
|
|
4330
4330
|
super(...arguments), this.value = "", this.placeholder = "Select date and time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.dateValue = "", this.timeValue = "", this.isFocused = !1, this.inputId = `datetime-picker-${Math.random().toString(36).substring(2, 9)}`;
|
|
4331
4331
|
}
|
|
@@ -4558,52 +4558,52 @@ class F extends L {
|
|
|
4558
4558
|
}
|
|
4559
4559
|
V([
|
|
4560
4560
|
u({ type: String })
|
|
4561
|
-
],
|
|
4561
|
+
], H.prototype, "value");
|
|
4562
4562
|
V([
|
|
4563
4563
|
u({ type: String })
|
|
4564
|
-
],
|
|
4564
|
+
], H.prototype, "label");
|
|
4565
4565
|
V([
|
|
4566
4566
|
u({ type: String })
|
|
4567
|
-
],
|
|
4567
|
+
], H.prototype, "placeholder");
|
|
4568
4568
|
V([
|
|
4569
4569
|
u({ type: Boolean, reflect: !0 })
|
|
4570
|
-
],
|
|
4570
|
+
], H.prototype, "required");
|
|
4571
4571
|
V([
|
|
4572
4572
|
u({ type: Boolean, reflect: !0 })
|
|
4573
|
-
],
|
|
4573
|
+
], H.prototype, "disabled");
|
|
4574
4574
|
V([
|
|
4575
4575
|
u({ type: String })
|
|
4576
|
-
],
|
|
4576
|
+
], H.prototype, "error");
|
|
4577
4577
|
V([
|
|
4578
4578
|
u({ type: String })
|
|
4579
|
-
],
|
|
4579
|
+
], H.prototype, "hint");
|
|
4580
4580
|
V([
|
|
4581
4581
|
u({ type: String })
|
|
4582
|
-
],
|
|
4582
|
+
], H.prototype, "size");
|
|
4583
4583
|
V([
|
|
4584
4584
|
u({ type: String })
|
|
4585
|
-
],
|
|
4585
|
+
], H.prototype, "minDate");
|
|
4586
4586
|
V([
|
|
4587
4587
|
u({ type: String })
|
|
4588
|
-
],
|
|
4588
|
+
], H.prototype, "maxDate");
|
|
4589
4589
|
V([
|
|
4590
4590
|
u({ type: String })
|
|
4591
|
-
],
|
|
4591
|
+
], H.prototype, "format");
|
|
4592
4592
|
V([
|
|
4593
4593
|
y()
|
|
4594
|
-
],
|
|
4594
|
+
], H.prototype, "dateValue");
|
|
4595
4595
|
V([
|
|
4596
4596
|
y()
|
|
4597
|
-
],
|
|
4597
|
+
], H.prototype, "timeValue");
|
|
4598
4598
|
V([
|
|
4599
4599
|
y()
|
|
4600
|
-
],
|
|
4600
|
+
], H.prototype, "isFocused");
|
|
4601
4601
|
V([
|
|
4602
4602
|
Z("base-date-picker")
|
|
4603
|
-
],
|
|
4603
|
+
], H.prototype, "datePicker");
|
|
4604
4604
|
V([
|
|
4605
4605
|
Z("base-time-picker")
|
|
4606
|
-
],
|
|
4606
|
+
], H.prototype, "timePicker");
|
|
4607
4607
|
var ri = Object.defineProperty, M = (s, e, t, i) => {
|
|
4608
4608
|
for (var r = void 0, o = s.length - 1, a; o >= 0; o--)
|
|
4609
4609
|
(a = s[o]) && (r = a(e, t, r) || r);
|
|
@@ -4680,18 +4680,18 @@ class R extends L {
|
|
|
4680
4680
|
Y < v && (v = Y, g = G);
|
|
4681
4681
|
}
|
|
4682
4682
|
p = g, h && (i > c && w && e > 50 || l < m * 0.7) && (p = -1);
|
|
4683
|
-
const b = p < 0, x = this.modalContainer,
|
|
4683
|
+
const b = p < 0, x = this.modalContainer, A = b ? 0 : r[p], C = 300, T = "ease";
|
|
4684
4684
|
x.style.transition = "none", x.style.transform = "translateY(0)";
|
|
4685
|
-
const
|
|
4686
|
-
x.style.height = `${
|
|
4687
|
-
b ? (x.style.transition = `transform ${C}ms ${T}`, x.style.transform = "translateY(100%)") : (x.style.transition = `height ${C}ms ${T}`, x.style.height = `${
|
|
4685
|
+
const F = Math.min(100, l);
|
|
4686
|
+
x.style.height = `${F}dvh`, requestAnimationFrame(() => {
|
|
4687
|
+
b ? (x.style.transition = `transform ${C}ms ${T}`, x.style.transform = "translateY(100%)") : (x.style.transition = `height ${C}ms ${T}`, x.style.height = `${A}dvh`);
|
|
4688
4688
|
}), setTimeout(() => {
|
|
4689
4689
|
this.dragStartY = 0, this.dragCurrentY = 0, this.dragStartTime = 0, this.dragCommitted = !1, b ? (this.isVisible = !1, this.open = !1, this.dispatchEvent(
|
|
4690
4690
|
new CustomEvent("drawer-close", {
|
|
4691
4691
|
bubbles: !0,
|
|
4692
4692
|
composed: !0
|
|
4693
4693
|
})
|
|
4694
|
-
)) : (this.currentDetentIndex = p, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${
|
|
4694
|
+
)) : (this.currentDetentIndex = p, this.modalContainer && (this.modalContainer.style.transition = "", this.modalContainer.style.transform = "", this.modalContainer.style.height = `${A}dvh`), this.dispatchEvent(
|
|
4695
4695
|
new CustomEvent("drawer-detent-change", {
|
|
4696
4696
|
bubbles: !0,
|
|
4697
4697
|
composed: !0,
|
|
@@ -5475,7 +5475,7 @@ const ii = `<?xml version="1.0" encoding="UTF-8"?>
|
|
|
5475
5475
|
<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"/>
|
|
5476
5476
|
<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"/>
|
|
5477
5477
|
</svg>`;
|
|
5478
|
-
class Tt extends
|
|
5478
|
+
class Tt extends Ht {
|
|
5479
5479
|
constructor(e) {
|
|
5480
5480
|
if (super(e), this.it = k, e.type !== Ut.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
5481
5481
|
}
|
|
@@ -5491,12 +5491,12 @@ class Tt extends Ft {
|
|
|
5491
5491
|
}
|
|
5492
5492
|
Tt.directiveName = "unsafeHTML", Tt.resultType = 1;
|
|
5493
5493
|
const Ir = qt(Tt);
|
|
5494
|
-
var
|
|
5494
|
+
var Ai = Object.defineProperty, mt = (s, e, t, i) => {
|
|
5495
5495
|
for (var r = void 0, o = s.length - 1, a; o >= 0; o--)
|
|
5496
5496
|
(a = s[o]) && (r = a(e, t, r) || r);
|
|
5497
|
-
return r &&
|
|
5497
|
+
return r && Ai(e, t, r), r;
|
|
5498
5498
|
};
|
|
5499
|
-
const
|
|
5499
|
+
const _i = /* @__PURE__ */ Object.assign({
|
|
5500
5500
|
"../../public/icons/arrow.svg": ii,
|
|
5501
5501
|
"../../public/icons/calendar-day.svg": oi,
|
|
5502
5502
|
"../../public/icons/calendar-month.svg": ai,
|
|
@@ -5563,7 +5563,7 @@ class Oe extends L {
|
|
|
5563
5563
|
}
|
|
5564
5564
|
try {
|
|
5565
5565
|
const e = `../../public/icons/${this.name}.svg`;
|
|
5566
|
-
let t =
|
|
5566
|
+
let t = _i[e];
|
|
5567
5567
|
if (!t)
|
|
5568
5568
|
throw new Error(`Icon "${this.name}" not found`);
|
|
5569
5569
|
t = t.replace(/<\?xml[^?]*\?>/g, ""), t = t.replace(/<style[\s\S]*?<\/style>/gi, ""), t = t.replace(/\s+style="[^"]*"/gi, ""), t = t.replace(/<defs>\s*<\/defs>/gi, ""), t = t.replace(/\s+fill="[^"]*"/gi, ""), t = t.trim(), this.svgContent = t;
|
|
@@ -6066,7 +6066,7 @@ const zi = () => z({
|
|
|
6066
6066
|
});
|
|
6067
6067
|
class J extends L {
|
|
6068
6068
|
constructor() {
|
|
6069
|
-
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);
|
|
6069
|
+
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), this.leftTimeout = null, this.rightTimeout = null;
|
|
6070
6070
|
}
|
|
6071
6071
|
static {
|
|
6072
6072
|
this.styles = U`
|
|
@@ -6155,6 +6155,16 @@ class J extends L {
|
|
|
6155
6155
|
color: var(--color-text-muted);
|
|
6156
6156
|
}
|
|
6157
6157
|
|
|
6158
|
+
.desktop-plus-icon::after {
|
|
6159
|
+
content: "";
|
|
6160
|
+
position: absolute;
|
|
6161
|
+
top: -2px;
|
|
6162
|
+
left: -2px;
|
|
6163
|
+
right: -2px;
|
|
6164
|
+
bottom: -2px;
|
|
6165
|
+
cursor: pointer;
|
|
6166
|
+
}
|
|
6167
|
+
|
|
6158
6168
|
.desktop-plus-icon--left {
|
|
6159
6169
|
left: -2px;
|
|
6160
6170
|
}
|
|
@@ -6353,8 +6363,8 @@ class J extends L {
|
|
|
6353
6363
|
})
|
|
6354
6364
|
), this.desktopActionsOpen = !1, this.desktopActionSide = null;
|
|
6355
6365
|
}
|
|
6356
|
-
handleDesktopActionToggle(e, t) {
|
|
6357
|
-
t.preventDefault(), this.desktopActionsOpen ? (this.desktopActionsOpen = !1, this.desktopActionSide = null) : (this.desktopActionsOpen = !0, this.desktopActionSide = e);
|
|
6366
|
+
handleDesktopActionToggle(e, t = {}) {
|
|
6367
|
+
"preventDefault" in t && t.preventDefault(), this.desktopActionsOpen ? (this.desktopActionsOpen = !1, this.desktopActionSide = null) : (this.desktopActionsOpen = !0, this.desktopActionSide = e);
|
|
6358
6368
|
}
|
|
6359
6369
|
handleDocumentClick(e) {
|
|
6360
6370
|
e.composedPath().includes(this) || (this.desktopActionsOpen = !1, this.desktopActionSide = null);
|
|
@@ -6379,7 +6389,11 @@ class J extends L {
|
|
|
6379
6389
|
return this.desktopActionsOpen && this.desktopActionSide && (this.desktopActionSide === "left" ? t = 100 : t = -100), f`
|
|
6380
6390
|
<div class="list-item-wrapper">
|
|
6381
6391
|
${this.leftSwipeAction ? f`
|
|
6382
|
-
<div
|
|
6392
|
+
<div
|
|
6393
|
+
class="swipe-actions swipe-actions--left"
|
|
6394
|
+
@mouseleave="${() => {
|
|
6395
|
+
this.desktopActionsOpen && this.leftSwipeAction?.desktopConfig?.showOnHover && (this.desktopActionsOpen = !1, this.desktopActionSide = null);
|
|
6396
|
+
}}">
|
|
6383
6397
|
<button
|
|
6384
6398
|
class="swipe-action-button"
|
|
6385
6399
|
style="background-color: ${this.leftSwipeAction.color || "var(--color-success)"}; color: ${this.leftSwipeAction.iconColor || "white"}"
|
|
@@ -6392,7 +6406,12 @@ class J extends L {
|
|
|
6392
6406
|
` : ""}
|
|
6393
6407
|
|
|
6394
6408
|
${this.rightSwipeAction ? f`
|
|
6395
|
-
<div
|
|
6409
|
+
<div
|
|
6410
|
+
class="swipe-actions swipe-actions--right"
|
|
6411
|
+
@mouseleave="${() => {
|
|
6412
|
+
this.desktopActionsOpen && this.rightSwipeAction?.desktopConfig?.showOnHover && (this.desktopActionsOpen = !1, this.desktopActionSide = null);
|
|
6413
|
+
}}"
|
|
6414
|
+
>
|
|
6396
6415
|
<button
|
|
6397
6416
|
class="swipe-action-button"
|
|
6398
6417
|
style="background-color: ${this.rightSwipeAction.color || "var(--color-error)"}; color: ${this.rightSwipeAction.iconColor || "white"}"
|
|
@@ -6409,20 +6428,36 @@ class J extends L {
|
|
|
6409
6428
|
<button
|
|
6410
6429
|
class="desktop-plus-icon desktop-plus-icon--left"
|
|
6411
6430
|
@click=${(i) => this.handleDesktopActionToggle("left", i)}
|
|
6431
|
+
@mouseenter=${() => {
|
|
6432
|
+
this.leftSwipeAction?.desktopConfig?.showOnHover && (this.leftTimeout = window.setTimeout((i) => {
|
|
6433
|
+
this.desktopActionsOpen || this.handleDesktopActionToggle("left", i);
|
|
6434
|
+
}, this.leftSwipeAction?.desktopConfig?.hoverDelay || 0));
|
|
6435
|
+
}}
|
|
6436
|
+
@mouseleave=${() => {
|
|
6437
|
+
this.leftTimeout && this.leftSwipeAction?.desktopConfig?.showOnHover && (clearTimeout(this.leftTimeout), this.leftTimeout = null);
|
|
6438
|
+
}}
|
|
6412
6439
|
title="Show action"
|
|
6413
6440
|
aria-label="Show action"
|
|
6414
6441
|
>
|
|
6415
|
-
⋮
|
|
6442
|
+
${this.leftSwipeAction?.desktopConfig?.hoverChar ?? "⋮"}
|
|
6416
6443
|
</button>
|
|
6417
6444
|
` : ""}
|
|
6418
6445
|
${this.rightSwipeAction && !this.desktopActionsOpen ? f`
|
|
6419
6446
|
<button
|
|
6420
6447
|
class="desktop-plus-icon desktop-plus-icon--right"
|
|
6421
6448
|
@click=${(i) => this.handleDesktopActionToggle("right", i)}
|
|
6449
|
+
@mouseenter=${() => {
|
|
6450
|
+
this.rightSwipeAction?.desktopConfig?.showOnHover && (this.rightTimeout = window.setTimeout((i) => {
|
|
6451
|
+
this.desktopActionsOpen || this.handleDesktopActionToggle("right", i);
|
|
6452
|
+
}, this.rightSwipeAction?.desktopConfig?.hoverDelay || 0));
|
|
6453
|
+
}}
|
|
6454
|
+
@mouseleave=${() => {
|
|
6455
|
+
this.rightTimeout && this.rightSwipeAction?.desktopConfig?.showOnHover && (clearTimeout(this.rightTimeout), this.rightTimeout = null);
|
|
6456
|
+
}}
|
|
6422
6457
|
title="Show action"
|
|
6423
6458
|
aria-label="Show action"
|
|
6424
6459
|
>
|
|
6425
|
-
⋮
|
|
6460
|
+
${this.rightSwipeAction?.desktopConfig?.hoverChar ?? "⋮"}
|
|
6426
6461
|
</button>
|
|
6427
6462
|
` : ""}
|
|
6428
6463
|
|
|
@@ -8217,7 +8252,7 @@ var qi = Object.defineProperty, re = (s, e, t, i) => {
|
|
|
8217
8252
|
(a = s[o]) && (r = a(e, t, r) || r);
|
|
8218
8253
|
return r && qi(e, t, r), r;
|
|
8219
8254
|
};
|
|
8220
|
-
const
|
|
8255
|
+
const Hi = () => z({
|
|
8221
8256
|
name: "base-textarea",
|
|
8222
8257
|
element: Q
|
|
8223
8258
|
});
|
|
@@ -8514,10 +8549,10 @@ re([
|
|
|
8514
8549
|
re([
|
|
8515
8550
|
Z("textarea")
|
|
8516
8551
|
], Q.prototype, "textareaElement");
|
|
8517
|
-
var
|
|
8552
|
+
var Fi = Object.defineProperty, Ke = (s, e, t, i) => {
|
|
8518
8553
|
for (var r = void 0, o = s.length - 1, a; o >= 0; o--)
|
|
8519
8554
|
(a = s[o]) && (r = a(e, t, r) || r);
|
|
8520
|
-
return r &&
|
|
8555
|
+
return r && Fi(e, t, r), r;
|
|
8521
8556
|
};
|
|
8522
8557
|
const Lr = () => z({
|
|
8523
8558
|
name: "base-toast",
|
|
@@ -9468,7 +9503,7 @@ function Br(s, e) {
|
|
|
9468
9503
|
return s.apply(e, arguments);
|
|
9469
9504
|
};
|
|
9470
9505
|
}
|
|
9471
|
-
const { toString: Wi } = Object.prototype, { getPrototypeOf:
|
|
9506
|
+
const { toString: Wi } = Object.prototype, { getPrototypeOf: Ft } = Object, { iterator: bt, toStringTag: Nr } = Symbol, vt = /* @__PURE__ */ ((s) => (e) => {
|
|
9472
9507
|
const t = Wi.call(e);
|
|
9473
9508
|
return s[t] || (s[t] = t.slice(8, -1).toLowerCase());
|
|
9474
9509
|
})(/* @__PURE__ */ Object.create(null)), ie = (s) => (s = s.toLowerCase(), (e) => vt(e) === s), yt = (s) => (e) => typeof e === s, { isArray: Ie } = Array, Ee = yt("undefined");
|
|
@@ -9483,7 +9518,7 @@ function Ki(s) {
|
|
|
9483
9518
|
const Xi = yt("string"), K = yt("function"), qr = yt("number"), Ge = (s) => s !== null && typeof s == "object", Ji = (s) => s === !0 || s === !1, lt = (s) => {
|
|
9484
9519
|
if (vt(s) !== "object")
|
|
9485
9520
|
return !1;
|
|
9486
|
-
const e =
|
|
9521
|
+
const e = Ft(s);
|
|
9487
9522
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Nr in s) && !(bt in s);
|
|
9488
9523
|
}, Qi = (s) => {
|
|
9489
9524
|
if (!Ge(s) || Qe(s))
|
|
@@ -9514,7 +9549,7 @@ function et(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
9514
9549
|
n = o[i], e.call(null, s[n], n, s);
|
|
9515
9550
|
}
|
|
9516
9551
|
}
|
|
9517
|
-
function
|
|
9552
|
+
function Hr(s, e) {
|
|
9518
9553
|
if (Qe(s))
|
|
9519
9554
|
return null;
|
|
9520
9555
|
e = e.toLowerCase();
|
|
@@ -9525,10 +9560,10 @@ function Fr(s, e) {
|
|
|
9525
9560
|
return r;
|
|
9526
9561
|
return null;
|
|
9527
9562
|
}
|
|
9528
|
-
const ye = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
9563
|
+
const ye = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Fr = (s) => !Ee(s) && s !== ye;
|
|
9529
9564
|
function Dt() {
|
|
9530
|
-
const { caseless: s, skipUndefined: e } =
|
|
9531
|
-
const a = s &&
|
|
9565
|
+
const { caseless: s, skipUndefined: e } = Fr(this) && this || {}, t = {}, i = (r, o) => {
|
|
9566
|
+
const a = s && Hr(t, o) || o;
|
|
9532
9567
|
lt(t[a]) && lt(r) ? t[a] = Dt(t[a], r) : lt(r) ? t[a] = Dt({}, r) : Ie(r) ? t[a] = r.slice() : (!e || !Ee(r)) && (t[a] = r);
|
|
9533
9568
|
};
|
|
9534
9569
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
@@ -9548,7 +9583,7 @@ const po = (s, e, t, { allOwnKeys: i } = {}) => (et(e, (r, o) => {
|
|
|
9548
9583
|
do {
|
|
9549
9584
|
for (r = Object.getOwnPropertyNames(s), o = r.length; o-- > 0; )
|
|
9550
9585
|
a = r[o], (!i || i(a, s, e)) && !n[a] && (e[a] = s[a], n[a] = !0);
|
|
9551
|
-
s = t !== !1 &&
|
|
9586
|
+
s = t !== !1 && Ft(s);
|
|
9552
9587
|
} while (s && (!t || t(s, e)) && s !== Object.prototype);
|
|
9553
9588
|
return e;
|
|
9554
9589
|
}, mo = (s, e, t) => {
|
|
@@ -9564,7 +9599,7 @@ const po = (s, e, t, { allOwnKeys: i } = {}) => (et(e, (r, o) => {
|
|
|
9564
9599
|
for (; e-- > 0; )
|
|
9565
9600
|
t[e] = s[e];
|
|
9566
9601
|
return t;
|
|
9567
|
-
}, vo = /* @__PURE__ */ ((s) => (e) => s && e instanceof s)(typeof Uint8Array < "u" &&
|
|
9602
|
+
}, vo = /* @__PURE__ */ ((s) => (e) => s && e instanceof s)(typeof Uint8Array < "u" && Ft(Uint8Array)), yo = (s, e) => {
|
|
9568
9603
|
const i = (s && s[bt]).call(s);
|
|
9569
9604
|
let r;
|
|
9570
9605
|
for (; (r = i.next()) && !r.done; ) {
|
|
@@ -9610,8 +9645,8 @@ const po = (s, e, t, { allOwnKeys: i } = {}) => (et(e, (r, o) => {
|
|
|
9610
9645
|
});
|
|
9611
9646
|
};
|
|
9612
9647
|
return Ie(s) ? i(s) : i(String(s).split(e)), t;
|
|
9613
|
-
},
|
|
9614
|
-
},
|
|
9648
|
+
}, Ao = () => {
|
|
9649
|
+
}, _o = (s, e) => s != null && Number.isFinite(s = +s) ? s : e;
|
|
9615
9650
|
function Eo(s) {
|
|
9616
9651
|
return !!(s && K(s.append) && s[Nr] === "FormData" && s[bt]);
|
|
9617
9652
|
}
|
|
@@ -9688,11 +9723,11 @@ const To = (s) => {
|
|
|
9688
9723
|
freezeMethods: So,
|
|
9689
9724
|
toObjectSet: Co,
|
|
9690
9725
|
toCamelCase: $o,
|
|
9691
|
-
noop:
|
|
9692
|
-
toFiniteNumber:
|
|
9693
|
-
findKey:
|
|
9726
|
+
noop: Ao,
|
|
9727
|
+
toFiniteNumber: _o,
|
|
9728
|
+
findKey: Hr,
|
|
9694
9729
|
global: ye,
|
|
9695
|
-
isContextDefined:
|
|
9730
|
+
isContextDefined: Fr,
|
|
9696
9731
|
isSpecCompliantForm: Eo,
|
|
9697
9732
|
toJSONObject: To,
|
|
9698
9733
|
isAsyncFn: Do,
|
|
@@ -9819,14 +9854,14 @@ function wt(s, e, t) {
|
|
|
9819
9854
|
if (!d.isUndefined(g)) {
|
|
9820
9855
|
if (h.indexOf(g) !== -1)
|
|
9821
9856
|
throw Error("Circular reference detected in " + v.join("."));
|
|
9822
|
-
h.push(g), d.forEach(g, function(x,
|
|
9857
|
+
h.push(g), d.forEach(g, function(x, A) {
|
|
9823
9858
|
(!(d.isUndefined(x) || x === null) && r.call(
|
|
9824
9859
|
e,
|
|
9825
9860
|
x,
|
|
9826
|
-
d.isString(
|
|
9861
|
+
d.isString(A) ? A.trim() : A,
|
|
9827
9862
|
v,
|
|
9828
9863
|
m
|
|
9829
|
-
)) === !0 && w(x, v ? v.concat(
|
|
9864
|
+
)) === !0 && w(x, v ? v.concat(A) : [A]);
|
|
9830
9865
|
}), h.pop();
|
|
9831
9866
|
}
|
|
9832
9867
|
}
|
|
@@ -9947,12 +9982,12 @@ const Jr = {
|
|
|
9947
9982
|
Blob: Uo
|
|
9948
9983
|
},
|
|
9949
9984
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
9950
|
-
}, Vt = typeof window < "u" && typeof document < "u", Pt = typeof navigator == "object" && navigator || void 0,
|
|
9985
|
+
}, 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
|
|
9951
9986
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jo = Vt && window.location.href || "http://localhost", Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9952
9987
|
__proto__: null,
|
|
9953
9988
|
hasBrowserEnv: Vt,
|
|
9954
|
-
hasStandardBrowserEnv:
|
|
9955
|
-
hasStandardBrowserWebWorkerEnv:
|
|
9989
|
+
hasStandardBrowserEnv: Ho,
|
|
9990
|
+
hasStandardBrowserWebWorkerEnv: Fo,
|
|
9956
9991
|
navigator: Pt,
|
|
9957
9992
|
origin: jo
|
|
9958
9993
|
}, Symbol.toStringTag, { value: "Module" })), j = {
|
|
@@ -10113,7 +10148,7 @@ function Qo(s) {
|
|
|
10113
10148
|
return e;
|
|
10114
10149
|
}
|
|
10115
10150
|
const Go = (s) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());
|
|
10116
|
-
function
|
|
10151
|
+
function At(s, e, t, i, r) {
|
|
10117
10152
|
if (d.isFunction(i))
|
|
10118
10153
|
return i.call(this, e, t);
|
|
10119
10154
|
if (r && (e = t), !!d.isString(e)) {
|
|
@@ -10187,7 +10222,7 @@ class X {
|
|
|
10187
10222
|
has(e, t) {
|
|
10188
10223
|
if (e = qe(e), e) {
|
|
10189
10224
|
const i = d.findKey(this, e);
|
|
10190
|
-
return !!(i && this[i] !== void 0 && (!t ||
|
|
10225
|
+
return !!(i && this[i] !== void 0 && (!t || At(this, this[i], i, t)));
|
|
10191
10226
|
}
|
|
10192
10227
|
return !1;
|
|
10193
10228
|
}
|
|
@@ -10197,7 +10232,7 @@ class X {
|
|
|
10197
10232
|
function o(a) {
|
|
10198
10233
|
if (a = qe(a), a) {
|
|
10199
10234
|
const n = d.findKey(i, a);
|
|
10200
|
-
n && (!t ||
|
|
10235
|
+
n && (!t || At(i, i[n], n, t)) && (delete i[n], r = !0);
|
|
10201
10236
|
}
|
|
10202
10237
|
}
|
|
10203
10238
|
return d.isArray(e) ? e.forEach(o) : o(e), r;
|
|
@@ -10207,7 +10242,7 @@ class X {
|
|
|
10207
10242
|
let i = t.length, r = !1;
|
|
10208
10243
|
for (; i--; ) {
|
|
10209
10244
|
const o = t[i];
|
|
10210
|
-
(!e ||
|
|
10245
|
+
(!e || At(this, this[o], o, e, !0)) && (delete this[o], r = !0);
|
|
10211
10246
|
}
|
|
10212
10247
|
return r;
|
|
10213
10248
|
}
|
|
@@ -10274,7 +10309,7 @@ d.reduceDescriptors(X.prototype, ({ value: s }, e) => {
|
|
|
10274
10309
|
};
|
|
10275
10310
|
});
|
|
10276
10311
|
d.freezeMethods(X);
|
|
10277
|
-
function
|
|
10312
|
+
function _t(s, e) {
|
|
10278
10313
|
const t = this || tt, i = e || t, r = X.from(i.headers);
|
|
10279
10314
|
let o = i.data;
|
|
10280
10315
|
return d.forEach(s, function(n) {
|
|
@@ -10502,7 +10537,7 @@ const rs = (s) => {
|
|
|
10502
10537
|
return;
|
|
10503
10538
|
const C = X.from(
|
|
10504
10539
|
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
10505
|
-
),
|
|
10540
|
+
), F = {
|
|
10506
10541
|
data: !n || n === "text" || n === "json" ? b.responseText : b.response,
|
|
10507
10542
|
status: b.status,
|
|
10508
10543
|
statusText: b.statusText,
|
|
@@ -10514,32 +10549,32 @@ const rs = (s) => {
|
|
|
10514
10549
|
t(Y), v();
|
|
10515
10550
|
}, function(Y) {
|
|
10516
10551
|
i(Y), v();
|
|
10517
|
-
},
|
|
10552
|
+
}, F), b = null;
|
|
10518
10553
|
}
|
|
10519
10554
|
"onloadend" in b ? b.onloadend = x : b.onreadystatechange = function() {
|
|
10520
10555
|
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
10521
10556
|
}, b.onabort = function() {
|
|
10522
10557
|
b && (i(new $("Request aborted", $.ECONNABORTED, s, b)), b = null);
|
|
10523
10558
|
}, b.onerror = function(T) {
|
|
10524
|
-
const
|
|
10559
|
+
const F = T && T.message ? T.message : "Network Error", G = new $(F, $.ERR_NETWORK, s, b);
|
|
10525
10560
|
G.event = T || null, i(G), b = null;
|
|
10526
10561
|
}, b.ontimeout = function() {
|
|
10527
10562
|
let T = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
10528
|
-
const
|
|
10563
|
+
const F = r.transitional || Jr;
|
|
10529
10564
|
r.timeoutErrorMessage && (T = r.timeoutErrorMessage), i(new $(
|
|
10530
10565
|
T,
|
|
10531
|
-
|
|
10566
|
+
F.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
10532
10567
|
s,
|
|
10533
10568
|
b
|
|
10534
10569
|
)), b = null;
|
|
10535
|
-
}, o === void 0 && a.setContentType(null), "setRequestHeader" in b && d.forEach(a.toJSON(), function(T,
|
|
10536
|
-
b.setRequestHeader(
|
|
10570
|
+
}, o === void 0 && a.setContentType(null), "setRequestHeader" in b && d.forEach(a.toJSON(), function(T, F) {
|
|
10571
|
+
b.setRequestHeader(F, T);
|
|
10537
10572
|
}), d.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), n && n !== "json" && (b.responseType = r.responseType), p && ([m, g] = ut(p, !0), b.addEventListener("progress", m)), l && b.upload && ([h, w] = ut(l), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", w)), (r.cancelToken || r.signal) && (c = (C) => {
|
|
10538
10573
|
b && (i(!C || C.type ? new Le(null, s, b) : C), b.abort(), b = null);
|
|
10539
10574
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
|
10540
|
-
const
|
|
10541
|
-
if (
|
|
10542
|
-
i(new $("Unsupported protocol " +
|
|
10575
|
+
const A = ra(r.url);
|
|
10576
|
+
if (A && j.protocols.indexOf(A) === -1) {
|
|
10577
|
+
i(new $("Unsupported protocol " + A + ":", $.ERR_BAD_REQUEST, s));
|
|
10543
10578
|
return;
|
|
10544
10579
|
}
|
|
10545
10580
|
b.send(o || null);
|
|
@@ -10687,10 +10722,10 @@ const rs = (s) => {
|
|
|
10687
10722
|
url: v,
|
|
10688
10723
|
method: b,
|
|
10689
10724
|
data: x,
|
|
10690
|
-
signal:
|
|
10725
|
+
signal: A,
|
|
10691
10726
|
cancelToken: C,
|
|
10692
10727
|
timeout: T,
|
|
10693
|
-
onDownloadProgress:
|
|
10728
|
+
onDownloadProgress: F,
|
|
10694
10729
|
onUploadProgress: G,
|
|
10695
10730
|
responseType: Y,
|
|
10696
10731
|
headers: $t,
|
|
@@ -10698,7 +10733,7 @@ const rs = (s) => {
|
|
|
10698
10733
|
fetchOptions: Wt
|
|
10699
10734
|
} = rs(g), Kt = e || fetch;
|
|
10700
10735
|
Y = Y ? (Y + "").toLowerCase() : "text";
|
|
10701
|
-
let st = ha([
|
|
10736
|
+
let st = ha([A, C && C.toAbortSignal()], T), Be = null;
|
|
10702
10737
|
const ge = st && st.unsubscribe && (() => {
|
|
10703
10738
|
st.unsubscribe();
|
|
10704
10739
|
});
|
|
@@ -10731,14 +10766,14 @@ const rs = (s) => {
|
|
|
10731
10766
|
Be = o && new t(v, Jt);
|
|
10732
10767
|
let de = await (o ? Kt(Be, Wt) : Kt(v, Jt));
|
|
10733
10768
|
const Qt = c && (Y === "stream" || Y === "response");
|
|
10734
|
-
if (c && (
|
|
10769
|
+
if (c && (F || Qt && ge)) {
|
|
10735
10770
|
const he = {};
|
|
10736
10771
|
["status", "statusText", "headers"].forEach((Gt) => {
|
|
10737
10772
|
he[Gt] = de[Gt];
|
|
10738
10773
|
});
|
|
10739
|
-
const Ce = d.toFiniteNumber(de.headers.get("content-length")), [kt, it] =
|
|
10774
|
+
const Ce = d.toFiniteNumber(de.headers.get("content-length")), [kt, it] = F && vr(
|
|
10740
10775
|
Ce,
|
|
10741
|
-
ut(yr(
|
|
10776
|
+
ut(yr(F), !0)
|
|
10742
10777
|
) || [];
|
|
10743
10778
|
de = new i(
|
|
10744
10779
|
xr(de.body, $r, kt, () => {
|
|
@@ -10797,7 +10832,7 @@ d.forEach(Yt, (s, e) => {
|
|
|
10797
10832
|
Object.defineProperty(s, "adapterName", { value: e });
|
|
10798
10833
|
}
|
|
10799
10834
|
});
|
|
10800
|
-
const
|
|
10835
|
+
const Ar = (s) => `- ${s}`, va = (s) => d.isFunction(s) || s === null || s === !1;
|
|
10801
10836
|
function ya(s, e) {
|
|
10802
10837
|
s = d.isArray(s) ? s : [s];
|
|
10803
10838
|
const { length: t } = s;
|
|
@@ -10817,8 +10852,8 @@ function ya(s, e) {
|
|
|
10817
10852
|
([l, p]) => `adapter ${l} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
10818
10853
|
);
|
|
10819
10854
|
let n = t ? a.length > 1 ? `since :
|
|
10820
|
-
` + a.map(
|
|
10821
|
-
`) : " " +
|
|
10855
|
+
` + a.map(Ar).join(`
|
|
10856
|
+
`) : " " + Ar(a[0]) : "as no adapter specified";
|
|
10822
10857
|
throw new $(
|
|
10823
10858
|
"There is no suitable adapter to dispatch the request " + n,
|
|
10824
10859
|
"ERR_NOT_SUPPORT"
|
|
@@ -10842,18 +10877,18 @@ function Et(s) {
|
|
|
10842
10877
|
if (s.cancelToken && s.cancelToken.throwIfRequested(), s.signal && s.signal.aborted)
|
|
10843
10878
|
throw new Le(null, s);
|
|
10844
10879
|
}
|
|
10845
|
-
function
|
|
10846
|
-
return Et(s), s.headers = X.from(s.headers), s.data =
|
|
10880
|
+
function _r(s) {
|
|
10881
|
+
return Et(s), s.headers = X.from(s.headers), s.data = _t.call(
|
|
10847
10882
|
s,
|
|
10848
10883
|
s.transformRequest
|
|
10849
10884
|
), ["post", "put", "patch"].indexOf(s.method) !== -1 && s.headers.setContentType("application/x-www-form-urlencoded", !1), is.getAdapter(s.adapter || tt.adapter, s)(s).then(function(i) {
|
|
10850
|
-
return Et(s), i.data =
|
|
10885
|
+
return Et(s), i.data = _t.call(
|
|
10851
10886
|
s,
|
|
10852
10887
|
s.transformResponse,
|
|
10853
10888
|
i
|
|
10854
10889
|
), i.headers = X.from(i.headers), i;
|
|
10855
10890
|
}, function(i) {
|
|
10856
|
-
return Gr(i) || (Et(s), i && i.response && (i.response.data =
|
|
10891
|
+
return Gr(i) || (Et(s), i && i.response && (i.response.data = _t.call(
|
|
10857
10892
|
s,
|
|
10858
10893
|
s.transformResponse,
|
|
10859
10894
|
i.response
|
|
@@ -10973,7 +11008,7 @@ class we {
|
|
|
10973
11008
|
});
|
|
10974
11009
|
let c, h = 0, m;
|
|
10975
11010
|
if (!l) {
|
|
10976
|
-
const g = [
|
|
11011
|
+
const g = [_r.bind(this), void 0];
|
|
10977
11012
|
for (g.unshift(...n), g.push(...p), m = g.length, c = Promise.resolve(t); h < m; )
|
|
10978
11013
|
c = c.then(g[h++], g[h++]);
|
|
10979
11014
|
return c;
|
|
@@ -10990,7 +11025,7 @@ class we {
|
|
|
10990
11025
|
}
|
|
10991
11026
|
}
|
|
10992
11027
|
try {
|
|
10993
|
-
c =
|
|
11028
|
+
c = _r.call(this, w);
|
|
10994
11029
|
} catch (g) {
|
|
10995
11030
|
return Promise.reject(g);
|
|
10996
11031
|
}
|
|
@@ -11215,7 +11250,7 @@ class Tr extends Error {
|
|
|
11215
11250
|
super(e), this.name = "AuthRefreshError";
|
|
11216
11251
|
}
|
|
11217
11252
|
}
|
|
11218
|
-
const
|
|
11253
|
+
const _a = ({ baseUrl: s, useToasts: e = !0 }) => {
|
|
11219
11254
|
const t = I.create({
|
|
11220
11255
|
baseURL: s,
|
|
11221
11256
|
headers: {
|
|
@@ -11318,15 +11353,15 @@ const Aa = ({ baseUrl: s, useToasts: e = !0 }) => {
|
|
|
11318
11353
|
), t;
|
|
11319
11354
|
};
|
|
11320
11355
|
function Ea() {
|
|
11321
|
-
Vs(), Zs(), Ks(), Js(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(),
|
|
11356
|
+
Vs(), Zs(), Ks(), Js(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(), Hi(), Gs(), Lr(), Vi(), Zi();
|
|
11322
11357
|
}
|
|
11323
11358
|
export {
|
|
11324
|
-
|
|
11359
|
+
_ as AuthForm,
|
|
11325
11360
|
Tr as AuthRefreshError,
|
|
11326
11361
|
ue as BaseButton,
|
|
11327
11362
|
De as BaseCard,
|
|
11328
11363
|
P as BaseDatePicker,
|
|
11329
|
-
|
|
11364
|
+
H as BaseDateTimePicker,
|
|
11330
11365
|
R as BaseDrawer,
|
|
11331
11366
|
Oe as BaseIcon,
|
|
11332
11367
|
ee as BaseInput,
|
|
@@ -11340,7 +11375,7 @@ export {
|
|
|
11340
11375
|
Re as BaseToast,
|
|
11341
11376
|
ze as QuantitySelect,
|
|
11342
11377
|
Me as ThemeToggle,
|
|
11343
|
-
|
|
11378
|
+
_a as createApiClient,
|
|
11344
11379
|
Ea as registerAll,
|
|
11345
11380
|
Vs as registerAuthForm,
|
|
11346
11381
|
Zs as registerBaseButton,
|
|
@@ -11355,7 +11390,7 @@ export {
|
|
|
11355
11390
|
Ii as registerBaseSelect,
|
|
11356
11391
|
Bi as registerBaseTab,
|
|
11357
11392
|
Ui as registerBaseTabs,
|
|
11358
|
-
|
|
11393
|
+
Hi as registerBaseTextarea,
|
|
11359
11394
|
Gs as registerBaseTimePicker,
|
|
11360
11395
|
Lr as registerBaseToast,
|
|
11361
11396
|
Vi as registerQuantitySelect,
|