@cal.macconnachie/web-components 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +96 -94
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -295,7 +295,9 @@ export declare class BaseList extends BaseElement {
|
|
|
295
295
|
private isPulling;
|
|
296
296
|
private pullDistance;
|
|
297
297
|
private startY;
|
|
298
|
+
private startScrollTop;
|
|
298
299
|
private pullThreshold;
|
|
300
|
+
private pullActivationDistance;
|
|
299
301
|
static styles: CSSResult;
|
|
300
302
|
connectedCallback(): void;
|
|
301
303
|
disconnectedCallback(): void;
|
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ const { is: ds, defineProperty: hs, getOwnPropertyDescriptor: ps, getOwnProperty
|
|
|
65
65
|
return t;
|
|
66
66
|
} }, It = (r, e) => !ds(r, 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
|
}
|
|
@@ -246,7 +246,7 @@ let Ce = 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: (r) => r }) : void 0, Or = "$lit$", he = `lit$${Math.random().toFixed(9).slice(2)}$`, Pr = "?" + he, vs = `<${Pr}>`, xe = document, je = () => xe.createComment(""), Ve = (r) => r === null || typeof r != "object" && typeof r != "function", Bt = Array.isArray, ys = (r) => Bt(r) || typeof r?.[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 = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), f = ws(1), ne = 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 Ce(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
309
|
const o = Ve(e) ? void 0 : e._$litDirective$;
|
|
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 =
|
|
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 = Ce(r, s._$AS(r, e.values), s, 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 h;
|
|
329
|
-
l.type === 2 ? h = new Te(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new
|
|
329
|
+
l.type === 2 ? h = new Te(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new As(o, this, e)), this._$AV.push(h), 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 = Ce(this, e, t), Ve(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);
|
|
@@ -409,11 +409,11 @@ class gt {
|
|
|
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 =
|
|
412
|
+
if (o === void 0) e = Ce(this, e, t, 0), a = !Ve(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 =
|
|
416
|
+
for (e = o[0], l = 0; l < o.length - 1; l++) h = Ce(this, n[i + l], t, l), h === ne && (h = this._$AH[l]), a ||= !Ve(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
|
}
|
|
@@ -442,7 +442,7 @@ class _s extends gt {
|
|
|
442
442
|
super(e, t, i, s, o), this.type = 5;
|
|
443
443
|
}
|
|
444
444
|
_$AI(e, t = this) {
|
|
445
|
-
if ((e =
|
|
445
|
+
if ((e = Ce(this, e, t, 0) ?? k) === ne) return;
|
|
446
446
|
const i = this._$AH, s = e === k && i !== k || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, o = e !== k && (i === k || s);
|
|
447
447
|
s && 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 _s 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 Cs {
|
|
|
458
458
|
return this._$AM._$AU;
|
|
459
459
|
}
|
|
460
460
|
_$AI(e) {
|
|
461
|
-
|
|
461
|
+
Ce(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
464
|
+
const Cs = { I: Te }, Es = Lt.litHtmlPolyfillSupport;
|
|
465
465
|
Es?.(Ye, Te), (Lt.litHtmlVersions ??= []).push("3.3.1");
|
|
466
466
|
const Ts = (r, e, t) => {
|
|
467
467
|
const i = t?.renderBefore ?? e;
|
|
@@ -473,7 +473,7 @@ const Ts = (r, e, t) => {
|
|
|
473
473
|
return s._$AI(r), s;
|
|
474
474
|
};
|
|
475
475
|
const Nt = globalThis;
|
|
476
|
-
let Fe = class extends
|
|
476
|
+
let Fe = class extends Ae {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
479
479
|
}
|
|
@@ -555,7 +555,7 @@ class Ht {
|
|
|
555
555
|
return this.render(...t);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const { I: zs } =
|
|
558
|
+
const { I: zs } = Cs, dr = () => document.createComment(""), Ue = (r, e, t) => {
|
|
559
559
|
const i = r._$AA.parentNode, s = e === void 0 ? r._$AB : e._$AA;
|
|
560
560
|
if (t === void 0) {
|
|
561
561
|
const o = i.insertBefore(dr(), s), a = i.insertBefore(dr(), s);
|
|
@@ -856,10 +856,10 @@ const R = ({
|
|
|
856
856
|
clientId: i,
|
|
857
857
|
redirectUri: qs(s)
|
|
858
858
|
}, a = (x) => {
|
|
859
|
-
const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",
|
|
860
|
-
return crypto.getRandomValues(
|
|
859
|
+
const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", A = new Uint8Array(x);
|
|
860
|
+
return crypto.getRandomValues(A), Array.from(A).map((T) => _[T % _.length]).join("");
|
|
861
861
|
}, n = async (x) => {
|
|
862
|
-
const
|
|
862
|
+
const A = new TextEncoder().encode(x), T = await crypto.subtle.digest("SHA-256", A);
|
|
863
863
|
return btoa(String.fromCharCode(...new Uint8Array(T))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
864
864
|
}, l = async () => {
|
|
865
865
|
const x = a(128), _ = await n(x);
|
|
@@ -868,7 +868,7 @@ const R = ({
|
|
|
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(), _ = h(),
|
|
871
|
+
const { codeChallenge: x } = await l(), _ = h(), A = new URLSearchParams({
|
|
872
872
|
response_type: "code",
|
|
873
873
|
client_id: o.clientId,
|
|
874
874
|
redirect_uri: o.redirectUri,
|
|
@@ -879,12 +879,12 @@ const R = ({
|
|
|
879
879
|
code_challenge: x,
|
|
880
880
|
prompt: "select_account"
|
|
881
881
|
});
|
|
882
|
-
return `${o.domain}/oauth2/authorize?${
|
|
882
|
+
return `${o.domain}/oauth2/authorize?${A.toString()}`;
|
|
883
883
|
}, p = async () => {
|
|
884
884
|
const x = await c();
|
|
885
885
|
window.location.href = x;
|
|
886
886
|
}, b = async () => {
|
|
887
|
-
const { codeChallenge: x } = await l(), _ = h(),
|
|
887
|
+
const { codeChallenge: x } = await l(), _ = h(), A = new URLSearchParams({
|
|
888
888
|
response_type: "code",
|
|
889
889
|
client_id: o.clientId,
|
|
890
890
|
redirect_uri: o.redirectUri,
|
|
@@ -894,7 +894,7 @@ const R = ({
|
|
|
894
894
|
code_challenge_method: "S256",
|
|
895
895
|
code_challenge: x
|
|
896
896
|
});
|
|
897
|
-
return `${o.domain}/oauth2/authorize?${
|
|
897
|
+
return `${o.domain}/oauth2/authorize?${A.toString()}`;
|
|
898
898
|
}, w = async () => {
|
|
899
899
|
const x = await b();
|
|
900
900
|
window.location.href = x;
|
|
@@ -914,7 +914,7 @@ const R = ({
|
|
|
914
914
|
const _ = v();
|
|
915
915
|
if (!_)
|
|
916
916
|
throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
|
|
917
|
-
const
|
|
917
|
+
const A = new URLSearchParams({
|
|
918
918
|
grant_type: "authorization_code",
|
|
919
919
|
client_id: o.clientId,
|
|
920
920
|
code: x,
|
|
@@ -925,7 +925,7 @@ const R = ({
|
|
|
925
925
|
headers: {
|
|
926
926
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
927
927
|
},
|
|
928
|
-
body:
|
|
928
|
+
body: A.toString()
|
|
929
929
|
});
|
|
930
930
|
if (!T.ok) {
|
|
931
931
|
const N = await T.text();
|
|
@@ -952,9 +952,9 @@ const js = [
|
|
|
952
952
|
"expires_in"
|
|
953
953
|
], Vs = () => R({
|
|
954
954
|
name: "auth-form",
|
|
955
|
-
element:
|
|
955
|
+
element: C
|
|
956
956
|
});
|
|
957
|
-
class
|
|
957
|
+
class C extends M {
|
|
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;
|
|
@@ -2072,88 +2072,88 @@ class A extends M {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
E([
|
|
2074
2074
|
u({ type: String, attribute: "initial-mode" })
|
|
2075
|
-
],
|
|
2075
|
+
], C.prototype, "initialMode");
|
|
2076
2076
|
E([
|
|
2077
2077
|
u({ type: String, attribute: "logo-url" })
|
|
2078
|
-
],
|
|
2078
|
+
], C.prototype, "logoUrl");
|
|
2079
2079
|
E([
|
|
2080
2080
|
u({ type: String, attribute: "oauth-domain" })
|
|
2081
|
-
],
|
|
2081
|
+
], C.prototype, "oauthDomain");
|
|
2082
2082
|
E([
|
|
2083
2083
|
u({ type: String, attribute: "oauth-region" })
|
|
2084
|
-
],
|
|
2084
|
+
], C.prototype, "oauthRegion");
|
|
2085
2085
|
E([
|
|
2086
2086
|
u({ type: String, attribute: "oauth-user-pool-id" })
|
|
2087
|
-
],
|
|
2087
|
+
], C.prototype, "oauthUserPoolId");
|
|
2088
2088
|
E([
|
|
2089
2089
|
u({ type: String, attribute: "oauth-client-id" })
|
|
2090
|
-
],
|
|
2090
|
+
], C.prototype, "oauthClientId");
|
|
2091
2091
|
E([
|
|
2092
2092
|
u({ type: String, attribute: "oauth-redirect-uri" })
|
|
2093
|
-
],
|
|
2093
|
+
], C.prototype, "oauthRedirectUri");
|
|
2094
2094
|
E([
|
|
2095
2095
|
u({ type: String, attribute: "oauth-spa-domain" })
|
|
2096
|
-
],
|
|
2096
|
+
], C.prototype, "oauthSpaDomain");
|
|
2097
2097
|
E([
|
|
2098
2098
|
u({ type: Boolean, attribute: "disable-signup" })
|
|
2099
|
-
],
|
|
2099
|
+
], C.prototype, "disableSignup");
|
|
2100
2100
|
E([
|
|
2101
2101
|
u({ type: Boolean, attribute: "mock-mode" })
|
|
2102
|
-
],
|
|
2102
|
+
], C.prototype, "mockMode");
|
|
2103
2103
|
E([
|
|
2104
2104
|
y()
|
|
2105
|
-
],
|
|
2105
|
+
], C.prototype, "mode");
|
|
2106
2106
|
E([
|
|
2107
2107
|
y()
|
|
2108
|
-
],
|
|
2108
|
+
], C.prototype, "resetStep");
|
|
2109
2109
|
E([
|
|
2110
2110
|
y()
|
|
2111
|
-
],
|
|
2111
|
+
], C.prototype, "signupStep");
|
|
2112
2112
|
E([
|
|
2113
2113
|
y()
|
|
2114
|
-
],
|
|
2114
|
+
], C.prototype, "isLoading");
|
|
2115
2115
|
E([
|
|
2116
2116
|
y()
|
|
2117
|
-
],
|
|
2117
|
+
], C.prototype, "isLoggedIn");
|
|
2118
2118
|
E([
|
|
2119
2119
|
y()
|
|
2120
|
-
],
|
|
2120
|
+
], C.prototype, "email");
|
|
2121
2121
|
E([
|
|
2122
2122
|
y()
|
|
2123
|
-
],
|
|
2123
|
+
], C.prototype, "password");
|
|
2124
2124
|
E([
|
|
2125
2125
|
y()
|
|
2126
|
-
],
|
|
2126
|
+
], C.prototype, "givenName");
|
|
2127
2127
|
E([
|
|
2128
2128
|
y()
|
|
2129
|
-
],
|
|
2129
|
+
], C.prototype, "familyName");
|
|
2130
2130
|
E([
|
|
2131
2131
|
y()
|
|
2132
|
-
],
|
|
2132
|
+
], C.prototype, "newPassword");
|
|
2133
2133
|
E([
|
|
2134
2134
|
y()
|
|
2135
|
-
],
|
|
2135
|
+
], C.prototype, "confirmPassword");
|
|
2136
2136
|
E([
|
|
2137
2137
|
y()
|
|
2138
|
-
],
|
|
2138
|
+
], C.prototype, "notice");
|
|
2139
2139
|
E([
|
|
2140
2140
|
y()
|
|
2141
|
-
],
|
|
2141
|
+
], C.prototype, "error");
|
|
2142
2142
|
E([
|
|
2143
2143
|
y()
|
|
2144
|
-
],
|
|
2144
|
+
], C.prototype, "errors");
|
|
2145
2145
|
E([
|
|
2146
2146
|
y()
|
|
2147
|
-
],
|
|
2147
|
+
], C.prototype, "userEmail");
|
|
2148
2148
|
E([
|
|
2149
2149
|
y()
|
|
2150
|
-
],
|
|
2150
|
+
], C.prototype, "otpDigits");
|
|
2151
2151
|
E([
|
|
2152
2152
|
y()
|
|
2153
|
-
],
|
|
2153
|
+
], C.prototype, "signupOtpDigits");
|
|
2154
2154
|
E([
|
|
2155
2155
|
V("#email-input")
|
|
2156
|
-
],
|
|
2156
|
+
], C.prototype, "emailInput");
|
|
2157
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.");
|
|
@@ -4666,10 +4666,10 @@ class j extends M {
|
|
|
4666
4666
|
if (i > c && Math.abs(e) > 30)
|
|
4667
4667
|
e > 0 ? b ? i > p && g && e > 50 || l < w * 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
|
-
let _ = 0,
|
|
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
|
-
N <
|
|
4672
|
+
N < A && (A = N, _ = T);
|
|
4673
4673
|
}
|
|
4674
4674
|
h = _, b && (g && l < w * 0.7 || l < w - 5) && (h = -1);
|
|
4675
4675
|
}
|
|
@@ -5355,12 +5355,12 @@ class Tt extends Ht {
|
|
|
5355
5355
|
}
|
|
5356
5356
|
Tt.directiveName = "unsafeHTML", Tt.resultType = 1;
|
|
5357
5357
|
const Ir = qt(Tt);
|
|
5358
|
-
var
|
|
5358
|
+
var Ai = Object.defineProperty, mt = (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
|
-
return s &&
|
|
5361
|
+
return s && Ai(e, t, s), s;
|
|
5362
5362
|
};
|
|
5363
|
-
const
|
|
5363
|
+
const Ci = /* @__PURE__ */ Object.assign({
|
|
5364
5364
|
"../../public/icons/arrow.svg": ii,
|
|
5365
5365
|
"../../public/icons/calendar-day.svg": oi,
|
|
5366
5366
|
"../../public/icons/calendar-month.svg": ai,
|
|
@@ -5427,7 +5427,7 @@ class Oe extends M {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
try {
|
|
5429
5429
|
const e = `../../public/icons/${this.name}.svg`;
|
|
5430
|
-
let t =
|
|
5430
|
+
let t = Ci[e];
|
|
5431
5431
|
if (!t)
|
|
5432
5432
|
throw new Error(`Icon "${this.name}" not found`);
|
|
5433
5433
|
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;
|
|
@@ -5735,21 +5735,21 @@ const Pi = () => R({
|
|
|
5735
5735
|
});
|
|
5736
5736
|
class ue extends M {
|
|
5737
5737
|
constructor() {
|
|
5738
|
-
super(...arguments), this.size = "md", this.variant = "default", this.interactive = !1, this.role = "list", this.isPulling = !1, this.pullDistance = 0, this.startY = 0, this.pullThreshold = 80, this.handleTouchStart = (e) => {
|
|
5739
|
-
this.scrollTop === 0 && (this.startY = e.touches[0].clientY);
|
|
5738
|
+
super(...arguments), this.size = "md", this.variant = "default", this.interactive = !1, this.role = "list", this.isPulling = !1, this.pullDistance = 0, this.startY = 0, this.startScrollTop = 0, this.pullThreshold = 80, this.pullActivationDistance = 20, this.handleTouchStart = (e) => {
|
|
5739
|
+
this.scrollTop === 0 && (this.startY = e.touches[0].clientY, this.startScrollTop = this.scrollTop);
|
|
5740
5740
|
}, this.handleTouchMove = (e) => {
|
|
5741
5741
|
if (this.startY === 0) return;
|
|
5742
5742
|
const i = e.touches[0].clientY - this.startY;
|
|
5743
|
-
i >
|
|
5743
|
+
i > this.pullActivationDistance && this.scrollTop === 0 && this.startScrollTop === 0 ? (e.preventDefault(), this.isPulling = !0, this.pullDistance = Math.min(i * 0.5, this.pullThreshold * 1.5)) : (i <= 0 || this.scrollTop > 0) && (this.startY = 0, this.startScrollTop = 0, this.isPulling = !1, this.pullDistance = 0);
|
|
5744
5744
|
}, this.handleTouchEnd = () => {
|
|
5745
5745
|
if (!this.isPulling) {
|
|
5746
|
-
this.startY = 0;
|
|
5746
|
+
this.startY = 0, this.startScrollTop = 0;
|
|
5747
5747
|
return;
|
|
5748
5748
|
}
|
|
5749
5749
|
this.pullDistance >= this.pullThreshold && this.dispatchEvent(new CustomEvent("list-pulled", {
|
|
5750
5750
|
bubbles: !0,
|
|
5751
5751
|
composed: !0
|
|
5752
|
-
})), this.isPulling = !1, this.pullDistance = 0, this.startY = 0;
|
|
5752
|
+
})), this.isPulling = !1, this.pullDistance = 0, this.startY = 0, this.startScrollTop = 0;
|
|
5753
5753
|
};
|
|
5754
5754
|
}
|
|
5755
5755
|
static {
|
|
@@ -5770,6 +5770,8 @@ class ue extends M {
|
|
|
5770
5770
|
.base-list-wrapper {
|
|
5771
5771
|
position: relative;
|
|
5772
5772
|
width: 100%;
|
|
5773
|
+
overflow: hidden;
|
|
5774
|
+
height: 100%;
|
|
5773
5775
|
}
|
|
5774
5776
|
|
|
5775
5777
|
.pull-indicator {
|
|
@@ -9460,8 +9462,8 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (et(e, (s, o) => {
|
|
|
9460
9462
|
});
|
|
9461
9463
|
};
|
|
9462
9464
|
return Ie(r) ? i(r) : i(String(r).split(e)), t;
|
|
9463
|
-
},
|
|
9464
|
-
},
|
|
9465
|
+
}, Ao = () => {
|
|
9466
|
+
}, Co = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
|
|
9465
9467
|
function Eo(r) {
|
|
9466
9468
|
return !!(r && W(r.append) && r[Nr] === "FormData" && r[bt]);
|
|
9467
9469
|
}
|
|
@@ -9538,8 +9540,8 @@ const To = (r) => {
|
|
|
9538
9540
|
freezeMethods: So,
|
|
9539
9541
|
toObjectSet: _o,
|
|
9540
9542
|
toCamelCase: $o,
|
|
9541
|
-
noop:
|
|
9542
|
-
toFiniteNumber:
|
|
9543
|
+
noop: Ao,
|
|
9544
|
+
toFiniteNumber: Co,
|
|
9543
9545
|
findKey: Hr,
|
|
9544
9546
|
global: ye,
|
|
9545
9547
|
isContextDefined: Fr,
|
|
@@ -9650,11 +9652,11 @@ function wt(r, e, t) {
|
|
|
9650
9652
|
if (d.endsWith(v, "{}"))
|
|
9651
9653
|
v = i ? v : v.slice(0, -2), g = JSON.stringify(g);
|
|
9652
9654
|
else if (d.isArray(g) && Mo(g) || (d.isFileList(g) || d.endsWith(v, "[]")) && (x = d.toArray(g)))
|
|
9653
|
-
return v = Wr(v), x.forEach(function(
|
|
9654
|
-
!(d.isUndefined(
|
|
9655
|
+
return v = Wr(v), x.forEach(function(A, T) {
|
|
9656
|
+
!(d.isUndefined(A) || A === null) && e.append(
|
|
9655
9657
|
// eslint-disable-next-line no-nested-ternary
|
|
9656
9658
|
a === !0 ? fr([v], T, o) : a === null ? v : v + "[]",
|
|
9657
|
-
h(
|
|
9659
|
+
h(A)
|
|
9658
9660
|
);
|
|
9659
9661
|
}), !1;
|
|
9660
9662
|
}
|
|
@@ -9963,7 +9965,7 @@ function Qo(r) {
|
|
|
9963
9965
|
return e;
|
|
9964
9966
|
}
|
|
9965
9967
|
const Go = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
|
|
9966
|
-
function
|
|
9968
|
+
function At(r, e, t, i, s) {
|
|
9967
9969
|
if (d.isFunction(i))
|
|
9968
9970
|
return i.call(this, e, t);
|
|
9969
9971
|
if (s && (e = t), !!d.isString(e)) {
|
|
@@ -10037,7 +10039,7 @@ class K {
|
|
|
10037
10039
|
has(e, t) {
|
|
10038
10040
|
if (e = qe(e), e) {
|
|
10039
10041
|
const i = d.findKey(this, e);
|
|
10040
|
-
return !!(i && this[i] !== void 0 && (!t ||
|
|
10042
|
+
return !!(i && this[i] !== void 0 && (!t || At(this, this[i], i, t)));
|
|
10041
10043
|
}
|
|
10042
10044
|
return !1;
|
|
10043
10045
|
}
|
|
@@ -10047,7 +10049,7 @@ class K {
|
|
|
10047
10049
|
function o(a) {
|
|
10048
10050
|
if (a = qe(a), a) {
|
|
10049
10051
|
const n = d.findKey(i, a);
|
|
10050
|
-
n && (!t ||
|
|
10052
|
+
n && (!t || At(i, i[n], n, t)) && (delete i[n], s = !0);
|
|
10051
10053
|
}
|
|
10052
10054
|
}
|
|
10053
10055
|
return d.isArray(e) ? e.forEach(o) : o(e), s;
|
|
@@ -10057,7 +10059,7 @@ class K {
|
|
|
10057
10059
|
let i = t.length, s = !1;
|
|
10058
10060
|
for (; i--; ) {
|
|
10059
10061
|
const o = t[i];
|
|
10060
|
-
(!e ||
|
|
10062
|
+
(!e || At(this, this[o], o, e, !0)) && (delete this[o], s = !0);
|
|
10061
10063
|
}
|
|
10062
10064
|
return s;
|
|
10063
10065
|
}
|
|
@@ -10124,7 +10126,7 @@ d.reduceDescriptors(K.prototype, ({ value: r }, e) => {
|
|
|
10124
10126
|
};
|
|
10125
10127
|
});
|
|
10126
10128
|
d.freezeMethods(K);
|
|
10127
|
-
function
|
|
10129
|
+
function Ct(r, e) {
|
|
10128
10130
|
const t = this || tt, i = e || t, s = K.from(i.headers);
|
|
10129
10131
|
let o = i.data;
|
|
10130
10132
|
return d.forEach(r, function(n) {
|
|
@@ -10350,13 +10352,13 @@ const rs = (r) => {
|
|
|
10350
10352
|
function x() {
|
|
10351
10353
|
if (!m)
|
|
10352
10354
|
return;
|
|
10353
|
-
const
|
|
10355
|
+
const A = K.from(
|
|
10354
10356
|
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
10355
10357
|
), N = {
|
|
10356
10358
|
data: !n || n === "text" || n === "json" ? m.responseText : m.response,
|
|
10357
10359
|
status: m.status,
|
|
10358
10360
|
statusText: m.statusText,
|
|
10359
|
-
headers:
|
|
10361
|
+
headers: A,
|
|
10360
10362
|
config: r,
|
|
10361
10363
|
request: m
|
|
10362
10364
|
};
|
|
@@ -10384,8 +10386,8 @@ const rs = (r) => {
|
|
|
10384
10386
|
)), m = null;
|
|
10385
10387
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in m && d.forEach(a.toJSON(), function(T, N) {
|
|
10386
10388
|
m.setRequestHeader(N, T);
|
|
10387
|
-
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, g] = ut(h, !0), m.addEventListener("progress", b)), l && m.upload && ([p, w] = ut(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (c = (
|
|
10388
|
-
m && (i(!
|
|
10389
|
+
}), d.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), n && n !== "json" && (m.responseType = s.responseType), h && ([b, g] = ut(h, !0), m.addEventListener("progress", b)), l && m.upload && ([p, w] = ut(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (c = (A) => {
|
|
10390
|
+
m && (i(!A || A.type ? new Le(null, r, m) : A), m.abort(), m = null);
|
|
10389
10391
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
10390
10392
|
const _ = ra(s.url);
|
|
10391
10393
|
if (_ && H.protocols.indexOf(_) === -1) {
|
|
@@ -10538,7 +10540,7 @@ const rs = (r) => {
|
|
|
10538
10540
|
method: m,
|
|
10539
10541
|
data: x,
|
|
10540
10542
|
signal: _,
|
|
10541
|
-
cancelToken:
|
|
10543
|
+
cancelToken: A,
|
|
10542
10544
|
timeout: T,
|
|
10543
10545
|
onDownloadProgress: N,
|
|
10544
10546
|
onUploadProgress: fe,
|
|
@@ -10548,7 +10550,7 @@ const rs = (r) => {
|
|
|
10548
10550
|
fetchOptions: Wt
|
|
10549
10551
|
} = rs(g), Kt = e || fetch;
|
|
10550
10552
|
Q = Q ? (Q + "").toLowerCase() : "text";
|
|
10551
|
-
let st = ha([_,
|
|
10553
|
+
let st = ha([_, A && A.toAbortSignal()], T), Be = null;
|
|
10552
10554
|
const ge = st && st.unsubscribe && (() => {
|
|
10553
10555
|
st.unsubscribe();
|
|
10554
10556
|
});
|
|
@@ -10647,7 +10649,7 @@ d.forEach(Yt, (r, e) => {
|
|
|
10647
10649
|
Object.defineProperty(r, "adapterName", { value: e });
|
|
10648
10650
|
}
|
|
10649
10651
|
});
|
|
10650
|
-
const
|
|
10652
|
+
const Ar = (r) => `- ${r}`, va = (r) => d.isFunction(r) || r === null || r === !1;
|
|
10651
10653
|
function ya(r, e) {
|
|
10652
10654
|
r = d.isArray(r) ? r : [r];
|
|
10653
10655
|
const { length: t } = r;
|
|
@@ -10667,8 +10669,8 @@ function ya(r, e) {
|
|
|
10667
10669
|
([l, h]) => `adapter ${l} ` + (h === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
10668
10670
|
);
|
|
10669
10671
|
let n = t ? a.length > 1 ? `since :
|
|
10670
|
-
` + a.map(
|
|
10671
|
-
`) : " " +
|
|
10672
|
+
` + a.map(Ar).join(`
|
|
10673
|
+
`) : " " + Ar(a[0]) : "as no adapter specified";
|
|
10672
10674
|
throw new $(
|
|
10673
10675
|
"There is no suitable adapter to dispatch the request " + n,
|
|
10674
10676
|
"ERR_NOT_SUPPORT"
|
|
@@ -10692,18 +10694,18 @@ function Et(r) {
|
|
|
10692
10694
|
if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
|
|
10693
10695
|
throw new Le(null, r);
|
|
10694
10696
|
}
|
|
10695
|
-
function
|
|
10696
|
-
return Et(r), r.headers = K.from(r.headers), r.data =
|
|
10697
|
+
function Cr(r) {
|
|
10698
|
+
return Et(r), r.headers = K.from(r.headers), r.data = Ct.call(
|
|
10697
10699
|
r,
|
|
10698
10700
|
r.transformRequest
|
|
10699
10701
|
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), is.getAdapter(r.adapter || tt.adapter, r)(r).then(function(i) {
|
|
10700
|
-
return Et(r), i.data =
|
|
10702
|
+
return Et(r), i.data = Ct.call(
|
|
10701
10703
|
r,
|
|
10702
10704
|
r.transformResponse,
|
|
10703
10705
|
i
|
|
10704
10706
|
), i.headers = K.from(i.headers), i;
|
|
10705
10707
|
}, function(i) {
|
|
10706
|
-
return Gr(i) || (Et(r), i && i.response && (i.response.data =
|
|
10708
|
+
return Gr(i) || (Et(r), i && i.response && (i.response.data = Ct.call(
|
|
10707
10709
|
r,
|
|
10708
10710
|
r.transformResponse,
|
|
10709
10711
|
i.response
|
|
@@ -10823,7 +10825,7 @@ class we {
|
|
|
10823
10825
|
});
|
|
10824
10826
|
let c, p = 0, b;
|
|
10825
10827
|
if (!l) {
|
|
10826
|
-
const g = [
|
|
10828
|
+
const g = [Cr.bind(this), void 0];
|
|
10827
10829
|
for (g.unshift(...n), g.push(...h), b = g.length, c = Promise.resolve(t); p < b; )
|
|
10828
10830
|
c = c.then(g[p++], g[p++]);
|
|
10829
10831
|
return c;
|
|
@@ -10840,7 +10842,7 @@ class we {
|
|
|
10840
10842
|
}
|
|
10841
10843
|
}
|
|
10842
10844
|
try {
|
|
10843
|
-
c =
|
|
10845
|
+
c = Cr.call(this, w);
|
|
10844
10846
|
} catch (g) {
|
|
10845
10847
|
return Promise.reject(g);
|
|
10846
10848
|
}
|
|
@@ -11065,7 +11067,7 @@ class Tr extends Error {
|
|
|
11065
11067
|
super(e), this.name = "AuthRefreshError";
|
|
11066
11068
|
}
|
|
11067
11069
|
}
|
|
11068
|
-
const
|
|
11070
|
+
const Ca = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
11069
11071
|
const t = z.create({
|
|
11070
11072
|
baseURL: r,
|
|
11071
11073
|
headers: {
|
|
@@ -11171,7 +11173,7 @@ function Ea() {
|
|
|
11171
11173
|
Vs(), Zs(), Ks(), Xs(), ti(), si(), Ei(), Di(), Pi(), zi(), Ii(), Bi(), Ui(), Hi(), Gs(), Lr(), Vi(), Zi();
|
|
11172
11174
|
}
|
|
11173
11175
|
export {
|
|
11174
|
-
|
|
11176
|
+
C as AuthForm,
|
|
11175
11177
|
Tr as AuthRefreshError,
|
|
11176
11178
|
pe as BaseButton,
|
|
11177
11179
|
De as BaseCard,
|
|
@@ -11190,7 +11192,7 @@ export {
|
|
|
11190
11192
|
Re as BaseToast,
|
|
11191
11193
|
ze as QuantitySelect,
|
|
11192
11194
|
Me as ThemeToggle,
|
|
11193
|
-
|
|
11195
|
+
Ca as createApiClient,
|
|
11194
11196
|
Ea as registerAll,
|
|
11195
11197
|
Vs as registerAuthForm,
|
|
11196
11198
|
Zs as registerBaseButton,
|