@cal.macconnachie/web-components 1.1.3 → 1.1.5
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.js +298 -281
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -266,13 +266,13 @@ const bo = (e, t) => {
|
|
|
266
266
|
}
|
|
267
267
|
return [Er(e, s + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
|
|
268
268
|
};
|
|
269
|
-
class
|
|
269
|
+
class je {
|
|
270
270
|
constructor({ strings: t, _$litType$: r }, o) {
|
|
271
271
|
let i;
|
|
272
272
|
this.parts = [];
|
|
273
273
|
let s = 0, a = 0;
|
|
274
274
|
const n = t.length - 1, l = this.parts, [d, c] = bo(t, r);
|
|
275
|
-
if (this.el =
|
|
275
|
+
if (this.el = je.createElement(d, o), ye.currentNode = this.el.content, r === 2 || r === 3) {
|
|
276
276
|
const p = this.el.content.firstChild;
|
|
277
277
|
p.replaceWith(...p.childNodes);
|
|
278
278
|
}
|
|
@@ -368,7 +368,7 @@ class _e {
|
|
|
368
368
|
this._$AH !== S && qe(this._$AH) ? this._$AA.nextSibling.data = t : this.T($e.createTextNode(t)), this._$AH = t;
|
|
369
369
|
}
|
|
370
370
|
$(t) {
|
|
371
|
-
const { values: r, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el =
|
|
371
|
+
const { values: r, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = je.createElement(Er(o.h, o.h[0]), this.options)), o);
|
|
372
372
|
if (this._$AH?._$AD === i) this._$AH.p(r);
|
|
373
373
|
else {
|
|
374
374
|
const s = new go(i, this), a = s.u(this.options);
|
|
@@ -377,7 +377,7 @@ class _e {
|
|
|
377
377
|
}
|
|
378
378
|
_$AC(t) {
|
|
379
379
|
let r = tr.get(t.strings);
|
|
380
|
-
return r === void 0 && tr.set(t.strings, r = new
|
|
380
|
+
return r === void 0 && tr.set(t.strings, r = new je(t)), r;
|
|
381
381
|
}
|
|
382
382
|
k(t) {
|
|
383
383
|
Ot(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -462,7 +462,7 @@ class wo {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
const xo = { I: _e }, $o = _t.litHtmlPolyfillSupport;
|
|
465
|
-
$o?.(
|
|
465
|
+
$o?.(je, _e), (_t.litHtmlVersions ??= []).push("3.3.1");
|
|
466
466
|
const ko = (e, t, r) => {
|
|
467
467
|
const o = r?.renderBefore ?? t;
|
|
468
468
|
let i = o._$litPart$;
|
|
@@ -531,7 +531,7 @@ function b(e) {
|
|
|
531
531
|
return i.constructor.createProperty(s, o), a ? Object.getOwnPropertyDescriptor(i, s) : void 0;
|
|
532
532
|
})(e, t, r);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function x(e) {
|
|
535
535
|
return b({ ...e, state: !0, attribute: !1 });
|
|
536
536
|
}
|
|
537
537
|
const To = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
|
|
@@ -616,8 +616,8 @@ const or = (e, t, r) => {
|
|
|
616
616
|
else if (d === void 0 && (d = or(a, y, u), c = or(n, p, g)), d.has(n[p])) if (d.has(n[g])) {
|
|
617
617
|
const v = c.get(a[y]), m = v !== void 0 ? i[v] : null;
|
|
618
618
|
if (m === null) {
|
|
619
|
-
const
|
|
620
|
-
ve(
|
|
619
|
+
const w = Ie(e, i[p]);
|
|
620
|
+
ve(w, s[y]), l[y] = w;
|
|
621
621
|
} else l[y] = ve(m, s[y]), Ie(e, i[p], m), i[v] = null;
|
|
622
622
|
y++;
|
|
623
623
|
} else gt(i[g]), g--;
|
|
@@ -841,16 +841,26 @@ const Cr = ({
|
|
|
841
841
|
sameSite: "lax",
|
|
842
842
|
path: "/"
|
|
843
843
|
}, _r = () => {
|
|
844
|
-
const e = (l, d, c = {}) => {
|
|
844
|
+
const e = (l, d, c = {}, p = !1) => {
|
|
845
845
|
const {
|
|
846
|
-
maxAge:
|
|
847
|
-
path:
|
|
848
|
-
secure:
|
|
849
|
-
sameSite:
|
|
850
|
-
domain:
|
|
846
|
+
maxAge: g,
|
|
847
|
+
path: y = "/",
|
|
848
|
+
secure: u = window.location.protocol === "https:",
|
|
849
|
+
sameSite: v = "lax",
|
|
850
|
+
domain: m
|
|
851
851
|
} = c;
|
|
852
|
-
let
|
|
853
|
-
|
|
852
|
+
let w = `${encodeURIComponent(l)}=${encodeURIComponent(d)}`;
|
|
853
|
+
if (g !== void 0 && (w += `; Max-Age=${g}`), w += `; Path=${y}`, u && (w += "; Secure"), w += `; SameSite=${v}`, m)
|
|
854
|
+
if (p) {
|
|
855
|
+
const E = m.split(".");
|
|
856
|
+
if (E.length > 2) {
|
|
857
|
+
const A = E.slice(-2);
|
|
858
|
+
w += `; Domain=.${A.join(".")}`;
|
|
859
|
+
} else
|
|
860
|
+
w += `; Domain=.${m}`;
|
|
861
|
+
} else
|
|
862
|
+
w += `; Domain=${m}`;
|
|
863
|
+
document.cookie = w;
|
|
854
864
|
}, t = (l) => {
|
|
855
865
|
const d = encodeURIComponent(l) + "=", c = document.cookie.split(";");
|
|
856
866
|
for (let p = 0; p < c.length; p++) {
|
|
@@ -861,15 +871,21 @@ const Cr = ({
|
|
|
861
871
|
return decodeURIComponent(g.substring(d.length));
|
|
862
872
|
}
|
|
863
873
|
return null;
|
|
864
|
-
}, r = (l, d = {}) => {
|
|
874
|
+
}, r = (l, d = {}, c = !1) => {
|
|
865
875
|
e(l, "", {
|
|
866
876
|
...d,
|
|
867
877
|
maxAge: -1
|
|
868
|
-
});
|
|
878
|
+
}, c);
|
|
869
879
|
}, o = (l) => t(l) !== null, i = (l, d) => {
|
|
870
|
-
e(mt[l], d,
|
|
880
|
+
e(mt[l], d, {
|
|
881
|
+
...Ro,
|
|
882
|
+
domain: window.location.hostname
|
|
883
|
+
}, !0);
|
|
871
884
|
}, s = (l) => t(mt[l]), a = (l) => {
|
|
872
|
-
r(mt[l]
|
|
885
|
+
r(mt[l], {
|
|
886
|
+
path: "/",
|
|
887
|
+
domain: window.location.hostname
|
|
888
|
+
}, !0);
|
|
873
889
|
};
|
|
874
890
|
return {
|
|
875
891
|
setCookie: e,
|
|
@@ -898,81 +914,81 @@ const Cr = ({
|
|
|
898
914
|
domain: e,
|
|
899
915
|
clientId: o,
|
|
900
916
|
redirectUri: Mo(i)
|
|
901
|
-
}, a = (
|
|
902
|
-
const
|
|
903
|
-
return crypto.getRandomValues(
|
|
904
|
-
}, n = async (
|
|
905
|
-
const
|
|
917
|
+
}, a = (w) => {
|
|
918
|
+
const E = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", A = new Uint8Array(w);
|
|
919
|
+
return crypto.getRandomValues(A), Array.from(A).map((D) => E[D % E.length]).join("");
|
|
920
|
+
}, n = async (w) => {
|
|
921
|
+
const A = new TextEncoder().encode(w), D = await crypto.subtle.digest("SHA-256", A);
|
|
906
922
|
return btoa(String.fromCharCode(...new Uint8Array(D))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
907
923
|
}, l = async () => {
|
|
908
|
-
const
|
|
909
|
-
return sessionStorage.setItem("pkce_code_verifier",
|
|
924
|
+
const w = a(128), E = await n(w);
|
|
925
|
+
return sessionStorage.setItem("pkce_code_verifier", w), { codeVerifier: w, codeChallenge: E };
|
|
910
926
|
}, d = () => {
|
|
911
|
-
const
|
|
912
|
-
return sessionStorage.setItem("oauth_state",
|
|
927
|
+
const w = a(32);
|
|
928
|
+
return sessionStorage.setItem("oauth_state", w), w;
|
|
913
929
|
}, c = async () => {
|
|
914
|
-
const { codeChallenge:
|
|
930
|
+
const { codeChallenge: w } = await l(), E = d(), A = new URLSearchParams({
|
|
915
931
|
response_type: "code",
|
|
916
932
|
client_id: s.clientId,
|
|
917
933
|
redirect_uri: s.redirectUri,
|
|
918
934
|
identity_provider: "Google",
|
|
919
935
|
scope: "openid email profile",
|
|
920
|
-
state:
|
|
936
|
+
state: E,
|
|
921
937
|
code_challenge_method: "S256",
|
|
922
|
-
code_challenge:
|
|
938
|
+
code_challenge: w,
|
|
923
939
|
prompt: "select_account"
|
|
924
940
|
});
|
|
925
|
-
return `${s.domain}/oauth2/authorize?${
|
|
941
|
+
return `${s.domain}/oauth2/authorize?${A.toString()}`;
|
|
926
942
|
}, p = async () => {
|
|
927
|
-
const
|
|
928
|
-
window.location.href =
|
|
943
|
+
const w = await c();
|
|
944
|
+
window.location.href = w;
|
|
929
945
|
}, g = async () => {
|
|
930
|
-
const { codeChallenge:
|
|
946
|
+
const { codeChallenge: w } = await l(), E = d(), A = new URLSearchParams({
|
|
931
947
|
response_type: "code",
|
|
932
948
|
client_id: s.clientId,
|
|
933
949
|
redirect_uri: s.redirectUri,
|
|
934
950
|
identity_provider: "SignInWithApple",
|
|
935
951
|
scope: "openid email profile",
|
|
936
|
-
state:
|
|
952
|
+
state: E,
|
|
937
953
|
code_challenge_method: "S256",
|
|
938
|
-
code_challenge:
|
|
954
|
+
code_challenge: w
|
|
939
955
|
});
|
|
940
|
-
return `${s.domain}/oauth2/authorize?${
|
|
956
|
+
return `${s.domain}/oauth2/authorize?${A.toString()}`;
|
|
941
957
|
}, y = async () => {
|
|
942
|
-
const
|
|
943
|
-
window.location.href =
|
|
944
|
-
}, u = (
|
|
945
|
-
const
|
|
946
|
-
return sessionStorage.removeItem("oauth_state"),
|
|
958
|
+
const w = await g();
|
|
959
|
+
window.location.href = w;
|
|
960
|
+
}, u = (w) => {
|
|
961
|
+
const E = sessionStorage.getItem("oauth_state");
|
|
962
|
+
return sessionStorage.removeItem("oauth_state"), E === w;
|
|
947
963
|
}, v = () => {
|
|
948
|
-
const
|
|
949
|
-
return sessionStorage.removeItem("pkce_code_verifier"),
|
|
964
|
+
const w = sessionStorage.getItem("pkce_code_verifier");
|
|
965
|
+
return sessionStorage.removeItem("pkce_code_verifier"), w;
|
|
950
966
|
};
|
|
951
967
|
return {
|
|
952
968
|
redirectToGoogleAuth: p,
|
|
953
969
|
redirectToAppleAuth: y,
|
|
954
970
|
validateState: u,
|
|
955
971
|
getCodeVerifier: v,
|
|
956
|
-
exchangeCodeForTokens: async (
|
|
957
|
-
const
|
|
958
|
-
if (!
|
|
972
|
+
exchangeCodeForTokens: async (w) => {
|
|
973
|
+
const E = v();
|
|
974
|
+
if (!E)
|
|
959
975
|
throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
|
|
960
|
-
const
|
|
976
|
+
const A = new URLSearchParams({
|
|
961
977
|
grant_type: "authorization_code",
|
|
962
978
|
client_id: s.clientId,
|
|
963
|
-
code:
|
|
979
|
+
code: w,
|
|
964
980
|
redirect_uri: s.redirectUri,
|
|
965
|
-
code_verifier:
|
|
981
|
+
code_verifier: E
|
|
966
982
|
}), D = await fetch(`${s.domain}/oauth2/token`, {
|
|
967
983
|
method: "POST",
|
|
968
984
|
headers: {
|
|
969
985
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
970
986
|
},
|
|
971
|
-
body:
|
|
987
|
+
body: A.toString()
|
|
972
988
|
});
|
|
973
989
|
if (!D.ok) {
|
|
974
|
-
const
|
|
975
|
-
throw new Error(`Token exchange failed: ${
|
|
990
|
+
const j = await D.text();
|
|
991
|
+
throw new Error(`Token exchange failed: ${j}`);
|
|
976
992
|
}
|
|
977
993
|
return D.json();
|
|
978
994
|
}
|
|
@@ -1477,7 +1493,7 @@ const Cr = ({
|
|
|
1477
1493
|
transition: none !important;
|
|
1478
1494
|
}
|
|
1479
1495
|
}`;
|
|
1480
|
-
var Io = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor,
|
|
1496
|
+
var Io = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, _ = (e, t, r, o) => {
|
|
1481
1497
|
for (var i = o > 1 ? void 0 : o ? Uo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
|
|
1482
1498
|
(a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
|
|
1483
1499
|
return o && i && Io(t, r, i), i;
|
|
@@ -1493,7 +1509,7 @@ const Ho = [
|
|
|
1493
1509
|
"token_type",
|
|
1494
1510
|
"expires_in"
|
|
1495
1511
|
];
|
|
1496
|
-
let
|
|
1512
|
+
let T = class extends B {
|
|
1497
1513
|
constructor() {
|
|
1498
1514
|
super(...arguments), this.initialMode = "signin", this.logoUrl = "", this.baseUrl = "", this.oauthDomain = "", this.oauthRegion = "", this.oauthUserPoolId = "", this.oauthClientId = "", this.oauthRedirectUri = "", this.oauthSpaDomain = "", this.disableSignup = !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.otpDigits = ["", "", "", "", "", ""], this.signupOtpDigits = ["", "", "", "", "", ""], this.cookies = _r(), this.hasHandledOAuthCallback = !1, this.baseUrlErrorMessage = "Authentication service is not configured correctly. Please add an API domain or contact support.";
|
|
1499
1515
|
}
|
|
@@ -1631,6 +1647,7 @@ let A = class extends B {
|
|
|
1631
1647
|
setAuthTokens(e, t, r, o) {
|
|
1632
1648
|
this.cookies.setAuthToken("ACCESS_TOKEN", e), this.cookies.setAuthToken("AUTH_TOKEN", t), this.cookies.setAuthToken("REFRESH_TOKEN", r), this.cookies.setCookie("USER_EMAIL", o.email), this.isLoggedIn = !0, this.dispatchEvent(
|
|
1633
1649
|
new CustomEvent("auth-success", {
|
|
1650
|
+
detail: { user: o },
|
|
1634
1651
|
bubbles: !0,
|
|
1635
1652
|
composed: !0
|
|
1636
1653
|
})
|
|
@@ -2350,91 +2367,91 @@ let A = class extends B {
|
|
|
2350
2367
|
return this.cookies.getCookie("USER_EMAIL") || null;
|
|
2351
2368
|
}
|
|
2352
2369
|
};
|
|
2353
|
-
|
|
2354
|
-
|
|
2370
|
+
T.styles = Or();
|
|
2371
|
+
_([
|
|
2355
2372
|
b({ type: String, attribute: "initial-mode" })
|
|
2356
|
-
],
|
|
2357
|
-
|
|
2373
|
+
], T.prototype, "initialMode", 2);
|
|
2374
|
+
_([
|
|
2358
2375
|
b({ type: String, attribute: "logo-url" })
|
|
2359
|
-
],
|
|
2360
|
-
|
|
2376
|
+
], T.prototype, "logoUrl", 2);
|
|
2377
|
+
_([
|
|
2361
2378
|
b({ type: String, attribute: "api-domain" })
|
|
2362
|
-
],
|
|
2363
|
-
|
|
2379
|
+
], T.prototype, "baseUrl", 2);
|
|
2380
|
+
_([
|
|
2364
2381
|
b({ type: String, attribute: "oauth-domain" })
|
|
2365
|
-
],
|
|
2366
|
-
|
|
2382
|
+
], T.prototype, "oauthDomain", 2);
|
|
2383
|
+
_([
|
|
2367
2384
|
b({ type: String, attribute: "oauth-region" })
|
|
2368
|
-
],
|
|
2369
|
-
|
|
2385
|
+
], T.prototype, "oauthRegion", 2);
|
|
2386
|
+
_([
|
|
2370
2387
|
b({ type: String, attribute: "oauth-user-pool-id" })
|
|
2371
|
-
],
|
|
2372
|
-
|
|
2388
|
+
], T.prototype, "oauthUserPoolId", 2);
|
|
2389
|
+
_([
|
|
2373
2390
|
b({ type: String, attribute: "oauth-client-id" })
|
|
2374
|
-
],
|
|
2375
|
-
|
|
2391
|
+
], T.prototype, "oauthClientId", 2);
|
|
2392
|
+
_([
|
|
2376
2393
|
b({ type: String, attribute: "oauth-redirect-uri" })
|
|
2377
|
-
],
|
|
2378
|
-
|
|
2394
|
+
], T.prototype, "oauthRedirectUri", 2);
|
|
2395
|
+
_([
|
|
2379
2396
|
b({ type: String, attribute: "oauth-spa-domain" })
|
|
2380
|
-
],
|
|
2381
|
-
|
|
2397
|
+
], T.prototype, "oauthSpaDomain", 2);
|
|
2398
|
+
_([
|
|
2382
2399
|
b({ type: Boolean, attribute: "disable-signup" })
|
|
2383
|
-
],
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
],
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
],
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
],
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
],
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
],
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
],
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
],
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
],
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
],
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
],
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
],
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
],
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
],
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
],
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
],
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
],
|
|
2432
|
-
|
|
2400
|
+
], T.prototype, "disableSignup", 2);
|
|
2401
|
+
_([
|
|
2402
|
+
x()
|
|
2403
|
+
], T.prototype, "mode", 2);
|
|
2404
|
+
_([
|
|
2405
|
+
x()
|
|
2406
|
+
], T.prototype, "resetStep", 2);
|
|
2407
|
+
_([
|
|
2408
|
+
x()
|
|
2409
|
+
], T.prototype, "signupStep", 2);
|
|
2410
|
+
_([
|
|
2411
|
+
x()
|
|
2412
|
+
], T.prototype, "isLoading", 2);
|
|
2413
|
+
_([
|
|
2414
|
+
x()
|
|
2415
|
+
], T.prototype, "isLoggedIn", 2);
|
|
2416
|
+
_([
|
|
2417
|
+
x()
|
|
2418
|
+
], T.prototype, "email", 2);
|
|
2419
|
+
_([
|
|
2420
|
+
x()
|
|
2421
|
+
], T.prototype, "password", 2);
|
|
2422
|
+
_([
|
|
2423
|
+
x()
|
|
2424
|
+
], T.prototype, "givenName", 2);
|
|
2425
|
+
_([
|
|
2426
|
+
x()
|
|
2427
|
+
], T.prototype, "familyName", 2);
|
|
2428
|
+
_([
|
|
2429
|
+
x()
|
|
2430
|
+
], T.prototype, "newPassword", 2);
|
|
2431
|
+
_([
|
|
2432
|
+
x()
|
|
2433
|
+
], T.prototype, "confirmPassword", 2);
|
|
2434
|
+
_([
|
|
2435
|
+
x()
|
|
2436
|
+
], T.prototype, "notice", 2);
|
|
2437
|
+
_([
|
|
2438
|
+
x()
|
|
2439
|
+
], T.prototype, "error", 2);
|
|
2440
|
+
_([
|
|
2441
|
+
x()
|
|
2442
|
+
], T.prototype, "errors", 2);
|
|
2443
|
+
_([
|
|
2444
|
+
x()
|
|
2445
|
+
], T.prototype, "otpDigits", 2);
|
|
2446
|
+
_([
|
|
2447
|
+
x()
|
|
2448
|
+
], T.prototype, "signupOtpDigits", 2);
|
|
2449
|
+
_([
|
|
2433
2450
|
q("#email-input")
|
|
2434
|
-
],
|
|
2435
|
-
|
|
2451
|
+
], T.prototype, "emailInput", 2);
|
|
2452
|
+
T = _([
|
|
2436
2453
|
W("auth-form")
|
|
2437
|
-
],
|
|
2454
|
+
], T);
|
|
2438
2455
|
const $ = Rt(class extends zt {
|
|
2439
2456
|
constructor(e) {
|
|
2440
2457
|
if (super(e), e.type !== Pt.ATTRIBUTE || e.name !== "class" || e.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -2956,8 +2973,8 @@ fe([
|
|
|
2956
2973
|
se = fe([
|
|
2957
2974
|
W("base-button")
|
|
2958
2975
|
], se);
|
|
2959
|
-
var qo = Object.defineProperty,
|
|
2960
|
-
for (var i = o > 1 ? void 0 : o ?
|
|
2976
|
+
var qo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Oe = (e, t, r, o) => {
|
|
2977
|
+
for (var i = o > 1 ? void 0 : o ? jo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
|
|
2961
2978
|
(a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
|
|
2962
2979
|
return o && i && qo(t, r, i), i;
|
|
2963
2980
|
};
|
|
@@ -3219,16 +3236,16 @@ Oe([
|
|
|
3219
3236
|
b({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
3220
3237
|
], he.prototype, "expandable", 2);
|
|
3221
3238
|
Oe([
|
|
3222
|
-
|
|
3239
|
+
x()
|
|
3223
3240
|
], he.prototype, "isExpanded", 2);
|
|
3224
3241
|
he = Oe([
|
|
3225
3242
|
W("base-card")
|
|
3226
3243
|
], he);
|
|
3227
3244
|
const te = (e) => e ?? S;
|
|
3228
|
-
var
|
|
3245
|
+
var Fo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, M = (e, t, r, o) => {
|
|
3229
3246
|
for (var i = o > 1 ? void 0 : o ? Yo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
|
|
3230
3247
|
(a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
|
|
3231
|
-
return o && i &&
|
|
3248
|
+
return o && i && Fo(t, r, i), i;
|
|
3232
3249
|
};
|
|
3233
3250
|
let P = class extends B {
|
|
3234
3251
|
constructor() {
|
|
@@ -4029,25 +4046,25 @@ M([
|
|
|
4029
4046
|
b({ type: String })
|
|
4030
4047
|
], P.prototype, "maxDate", 2);
|
|
4031
4048
|
M([
|
|
4032
|
-
|
|
4049
|
+
x()
|
|
4033
4050
|
], P.prototype, "isOpen", 2);
|
|
4034
4051
|
M([
|
|
4035
|
-
|
|
4052
|
+
x()
|
|
4036
4053
|
], P.prototype, "currentMonth", 2);
|
|
4037
4054
|
M([
|
|
4038
|
-
|
|
4055
|
+
x()
|
|
4039
4056
|
], P.prototype, "currentYear", 2);
|
|
4040
4057
|
M([
|
|
4041
|
-
|
|
4058
|
+
x()
|
|
4042
4059
|
], P.prototype, "showMonthPicker", 2);
|
|
4043
4060
|
M([
|
|
4044
|
-
|
|
4061
|
+
x()
|
|
4045
4062
|
], P.prototype, "showYearPicker", 2);
|
|
4046
4063
|
M([
|
|
4047
|
-
|
|
4064
|
+
x()
|
|
4048
4065
|
], P.prototype, "yearRangeStart", 2);
|
|
4049
4066
|
M([
|
|
4050
|
-
|
|
4067
|
+
x()
|
|
4051
4068
|
], P.prototype, "isFlipped", 2);
|
|
4052
4069
|
M([
|
|
4053
4070
|
q(".date-display")
|
|
@@ -4063,7 +4080,7 @@ var Vo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, O = (e, t,
|
|
|
4063
4080
|
(a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
|
|
4064
4081
|
return o && i && Vo(t, r, i), i;
|
|
4065
4082
|
};
|
|
4066
|
-
let
|
|
4083
|
+
let C = class extends B {
|
|
4067
4084
|
constructor() {
|
|
4068
4085
|
super(...arguments), this.value = "", this.placeholder = "Select date and time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.isOpen = !1, this.currentMonth = (/* @__PURE__ */ new Date()).getMonth(), this.currentYear = (/* @__PURE__ */ new Date()).getFullYear(), this.showMonthPicker = !1, this.showYearPicker = !1, this.yearRangeStart = (/* @__PURE__ */ new Date()).getFullYear() - 5, this.selectedDate = "", this.selectedHour = 12, this.selectedMinute = 0, this.selectedPeriod = "AM", this.isFlipped = !1, this.currentStep = "date", this.inputId = `datetime-picker-${Math.random().toString(36).substr(2, 9)}`, this.weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = [
|
|
4069
4086
|
"Jan",
|
|
@@ -4516,7 +4533,7 @@ let T = class extends B {
|
|
|
4516
4533
|
`;
|
|
4517
4534
|
}
|
|
4518
4535
|
};
|
|
4519
|
-
|
|
4536
|
+
C.styles = J`
|
|
4520
4537
|
:host {
|
|
4521
4538
|
display: block;
|
|
4522
4539
|
position: relative;
|
|
@@ -5054,82 +5071,82 @@ T.styles = J`
|
|
|
5054
5071
|
`;
|
|
5055
5072
|
O([
|
|
5056
5073
|
b({ type: String })
|
|
5057
|
-
],
|
|
5074
|
+
], C.prototype, "value", 2);
|
|
5058
5075
|
O([
|
|
5059
5076
|
b({ type: String })
|
|
5060
|
-
],
|
|
5077
|
+
], C.prototype, "label", 2);
|
|
5061
5078
|
O([
|
|
5062
5079
|
b({ type: String })
|
|
5063
|
-
],
|
|
5080
|
+
], C.prototype, "placeholder", 2);
|
|
5064
5081
|
O([
|
|
5065
5082
|
b({ type: Boolean, reflect: !0 })
|
|
5066
|
-
],
|
|
5083
|
+
], C.prototype, "required", 2);
|
|
5067
5084
|
O([
|
|
5068
5085
|
b({ type: Boolean, reflect: !0 })
|
|
5069
|
-
],
|
|
5086
|
+
], C.prototype, "disabled", 2);
|
|
5070
5087
|
O([
|
|
5071
5088
|
b({ type: String })
|
|
5072
|
-
],
|
|
5089
|
+
], C.prototype, "error", 2);
|
|
5073
5090
|
O([
|
|
5074
5091
|
b({ type: String })
|
|
5075
|
-
],
|
|
5092
|
+
], C.prototype, "hint", 2);
|
|
5076
5093
|
O([
|
|
5077
5094
|
b({ type: String })
|
|
5078
|
-
],
|
|
5095
|
+
], C.prototype, "size", 2);
|
|
5079
5096
|
O([
|
|
5080
5097
|
b({ type: String })
|
|
5081
|
-
],
|
|
5098
|
+
], C.prototype, "minDate", 2);
|
|
5082
5099
|
O([
|
|
5083
5100
|
b({ type: String })
|
|
5084
|
-
],
|
|
5101
|
+
], C.prototype, "maxDate", 2);
|
|
5085
5102
|
O([
|
|
5086
5103
|
b({ type: String })
|
|
5087
|
-
],
|
|
5104
|
+
], C.prototype, "format", 2);
|
|
5088
5105
|
O([
|
|
5089
|
-
|
|
5090
|
-
],
|
|
5106
|
+
x()
|
|
5107
|
+
], C.prototype, "isOpen", 2);
|
|
5091
5108
|
O([
|
|
5092
|
-
|
|
5093
|
-
],
|
|
5109
|
+
x()
|
|
5110
|
+
], C.prototype, "currentMonth", 2);
|
|
5094
5111
|
O([
|
|
5095
|
-
|
|
5096
|
-
],
|
|
5112
|
+
x()
|
|
5113
|
+
], C.prototype, "currentYear", 2);
|
|
5097
5114
|
O([
|
|
5098
|
-
|
|
5099
|
-
],
|
|
5115
|
+
x()
|
|
5116
|
+
], C.prototype, "showMonthPicker", 2);
|
|
5100
5117
|
O([
|
|
5101
|
-
|
|
5102
|
-
],
|
|
5118
|
+
x()
|
|
5119
|
+
], C.prototype, "showYearPicker", 2);
|
|
5103
5120
|
O([
|
|
5104
|
-
|
|
5105
|
-
],
|
|
5121
|
+
x()
|
|
5122
|
+
], C.prototype, "yearRangeStart", 2);
|
|
5106
5123
|
O([
|
|
5107
|
-
|
|
5108
|
-
],
|
|
5124
|
+
x()
|
|
5125
|
+
], C.prototype, "selectedDate", 2);
|
|
5109
5126
|
O([
|
|
5110
|
-
|
|
5111
|
-
],
|
|
5127
|
+
x()
|
|
5128
|
+
], C.prototype, "selectedHour", 2);
|
|
5112
5129
|
O([
|
|
5113
|
-
|
|
5114
|
-
],
|
|
5130
|
+
x()
|
|
5131
|
+
], C.prototype, "selectedMinute", 2);
|
|
5115
5132
|
O([
|
|
5116
|
-
|
|
5117
|
-
],
|
|
5133
|
+
x()
|
|
5134
|
+
], C.prototype, "selectedPeriod", 2);
|
|
5118
5135
|
O([
|
|
5119
|
-
|
|
5120
|
-
],
|
|
5136
|
+
x()
|
|
5137
|
+
], C.prototype, "isFlipped", 2);
|
|
5121
5138
|
O([
|
|
5122
|
-
|
|
5123
|
-
],
|
|
5139
|
+
x()
|
|
5140
|
+
], C.prototype, "currentStep", 2);
|
|
5124
5141
|
O([
|
|
5125
5142
|
q(".datetime-display")
|
|
5126
|
-
],
|
|
5143
|
+
], C.prototype, "datetimeDisplay", 2);
|
|
5127
5144
|
O([
|
|
5128
5145
|
q(".datetime-container")
|
|
5129
|
-
],
|
|
5130
|
-
|
|
5146
|
+
], C.prototype, "datetimeContainer", 2);
|
|
5147
|
+
C = O([
|
|
5131
5148
|
W("base-datetime-picker")
|
|
5132
|
-
],
|
|
5149
|
+
], C);
|
|
5133
5150
|
var Wo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, Z = (e, t, r, o) => {
|
|
5134
5151
|
for (var i = o > 1 ? void 0 : o ? Jo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
|
|
5135
5152
|
(a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
|
|
@@ -5277,25 +5294,25 @@ Z([
|
|
|
5277
5294
|
b({ type: String, attribute: "size" })
|
|
5278
5295
|
], V.prototype, "size", 2);
|
|
5279
5296
|
Z([
|
|
5280
|
-
|
|
5297
|
+
x()
|
|
5281
5298
|
], V.prototype, "isClosing", 2);
|
|
5282
5299
|
Z([
|
|
5283
|
-
|
|
5300
|
+
x()
|
|
5284
5301
|
], V.prototype, "isVisible", 2);
|
|
5285
5302
|
Z([
|
|
5286
|
-
|
|
5303
|
+
x()
|
|
5287
5304
|
], V.prototype, "isDragging", 2);
|
|
5288
5305
|
Z([
|
|
5289
|
-
|
|
5306
|
+
x()
|
|
5290
5307
|
], V.prototype, "dragStartY", 2);
|
|
5291
5308
|
Z([
|
|
5292
|
-
|
|
5309
|
+
x()
|
|
5293
5310
|
], V.prototype, "dragCurrentY", 2);
|
|
5294
5311
|
Z([
|
|
5295
|
-
|
|
5312
|
+
x()
|
|
5296
5313
|
], V.prototype, "dragStartTime", 2);
|
|
5297
5314
|
Z([
|
|
5298
|
-
|
|
5315
|
+
x()
|
|
5299
5316
|
], V.prototype, "lastDragEndTime", 2);
|
|
5300
5317
|
Z([
|
|
5301
5318
|
q(".modal-container")
|
|
@@ -5996,16 +6013,16 @@ I([
|
|
|
5996
6013
|
b({ type: Array })
|
|
5997
6014
|
], R.prototype, "options", 2);
|
|
5998
6015
|
I([
|
|
5999
|
-
|
|
6016
|
+
x()
|
|
6000
6017
|
], R.prototype, "isOpen", 2);
|
|
6001
6018
|
I([
|
|
6002
|
-
|
|
6019
|
+
x()
|
|
6003
6020
|
], R.prototype, "searchQuery", 2);
|
|
6004
6021
|
I([
|
|
6005
|
-
|
|
6022
|
+
x()
|
|
6006
6023
|
], R.prototype, "highlightedIndex", 2);
|
|
6007
6024
|
I([
|
|
6008
|
-
|
|
6025
|
+
x()
|
|
6009
6026
|
], R.prototype, "isFlipped", 2);
|
|
6010
6027
|
I([
|
|
6011
6028
|
q(".select-input")
|
|
@@ -6774,13 +6791,13 @@ ae([
|
|
|
6774
6791
|
b({ type: Boolean, attribute: "force-expanded" })
|
|
6775
6792
|
], X.prototype, "forceExpanded", 2);
|
|
6776
6793
|
ae([
|
|
6777
|
-
|
|
6794
|
+
x()
|
|
6778
6795
|
], X.prototype, "tabs", 2);
|
|
6779
6796
|
ae([
|
|
6780
|
-
|
|
6797
|
+
x()
|
|
6781
6798
|
], X.prototype, "isExpanded", 2);
|
|
6782
6799
|
ae([
|
|
6783
|
-
|
|
6800
|
+
x()
|
|
6784
6801
|
], X.prototype, "isMobile", 2);
|
|
6785
6802
|
ae([
|
|
6786
6803
|
q(".tabs-nav")
|
|
@@ -7580,19 +7597,19 @@ U([
|
|
|
7580
7597
|
b({ type: String })
|
|
7581
7598
|
], N.prototype, "format", 2);
|
|
7582
7599
|
U([
|
|
7583
|
-
|
|
7600
|
+
x()
|
|
7584
7601
|
], N.prototype, "isOpen", 2);
|
|
7585
7602
|
U([
|
|
7586
|
-
|
|
7603
|
+
x()
|
|
7587
7604
|
], N.prototype, "selectedHour", 2);
|
|
7588
7605
|
U([
|
|
7589
|
-
|
|
7606
|
+
x()
|
|
7590
7607
|
], N.prototype, "selectedMinute", 2);
|
|
7591
7608
|
U([
|
|
7592
|
-
|
|
7609
|
+
x()
|
|
7593
7610
|
], N.prototype, "selectedPeriod", 2);
|
|
7594
7611
|
U([
|
|
7595
|
-
|
|
7612
|
+
x()
|
|
7596
7613
|
], N.prototype, "isFlipped", 2);
|
|
7597
7614
|
U([
|
|
7598
7615
|
q(".time-display")
|
|
@@ -8076,7 +8093,7 @@ nt([
|
|
|
8076
8093
|
b({ type: String, attribute: "variant" })
|
|
8077
8094
|
], Te.prototype, "variant", 2);
|
|
8078
8095
|
nt([
|
|
8079
|
-
|
|
8096
|
+
x()
|
|
8080
8097
|
], Te.prototype, "isDark", 2);
|
|
8081
8098
|
Te = nt([
|
|
8082
8099
|
W("theme-toggle")
|
|
@@ -8090,31 +8107,31 @@ const { toString: ui } = Object.prototype, { getPrototypeOf: Mt } = Object, { it
|
|
|
8090
8107
|
const r = ui.call(t);
|
|
8091
8108
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
8092
8109
|
})(/* @__PURE__ */ Object.create(null)), re = (e) => (e = e.toLowerCase(), (t) => ct(t) === e), dt = (e) => (t) => typeof t === e, { isArray: Re } = Array, Ce = dt("undefined");
|
|
8093
|
-
function
|
|
8094
|
-
return e !== null && !Ce(e) && e.constructor !== null && !Ce(e.constructor) &&
|
|
8110
|
+
function Fe(e) {
|
|
8111
|
+
return e !== null && !Ce(e) && e.constructor !== null && !Ce(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
8095
8112
|
}
|
|
8096
8113
|
const Rr = re("ArrayBuffer");
|
|
8097
8114
|
function fi(e) {
|
|
8098
8115
|
let t;
|
|
8099
8116
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Rr(e.buffer), t;
|
|
8100
8117
|
}
|
|
8101
|
-
const bi = dt("string"),
|
|
8118
|
+
const bi = dt("string"), F = dt("function"), zr = dt("number"), Ye = (e) => e !== null && typeof e == "object", gi = (e) => e === !0 || e === !1, Ze = (e) => {
|
|
8102
8119
|
if (ct(e) !== "object")
|
|
8103
8120
|
return !1;
|
|
8104
8121
|
const t = Mt(e);
|
|
8105
8122
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Pr in e) && !(lt in e);
|
|
8106
8123
|
}, mi = (e) => {
|
|
8107
|
-
if (!Ye(e) ||
|
|
8124
|
+
if (!Ye(e) || Fe(e))
|
|
8108
8125
|
return !1;
|
|
8109
8126
|
try {
|
|
8110
8127
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
8111
8128
|
} catch {
|
|
8112
8129
|
return !1;
|
|
8113
8130
|
}
|
|
8114
|
-
}, vi = re("Date"), yi = re("File"), wi = re("Blob"), xi = re("FileList"), $i = (e) => Ye(e) &&
|
|
8131
|
+
}, vi = re("Date"), yi = re("File"), wi = re("Blob"), xi = re("FileList"), $i = (e) => Ye(e) && F(e.pipe), ki = (e) => {
|
|
8115
8132
|
let t;
|
|
8116
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
8117
|
-
t === "object" &&
|
|
8133
|
+
return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
|
|
8134
|
+
t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
|
|
8118
8135
|
}, Si = re("URLSearchParams"), [Ai, Ei, Ti, Ci] = ["ReadableStream", "Request", "Response", "Headers"].map(re), _i = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8119
8136
|
function Ve(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
8120
8137
|
if (e === null || typeof e > "u")
|
|
@@ -8124,7 +8141,7 @@ function Ve(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
8124
8141
|
for (o = 0, i = e.length; o < i; o++)
|
|
8125
8142
|
t.call(null, e[o], o, e);
|
|
8126
8143
|
else {
|
|
8127
|
-
if (
|
|
8144
|
+
if (Fe(e))
|
|
8128
8145
|
return;
|
|
8129
8146
|
const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
|
|
8130
8147
|
let n;
|
|
@@ -8133,7 +8150,7 @@ function Ve(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
8133
8150
|
}
|
|
8134
8151
|
}
|
|
8135
8152
|
function Mr(e, t) {
|
|
8136
|
-
if (
|
|
8153
|
+
if (Fe(e))
|
|
8137
8154
|
return null;
|
|
8138
8155
|
t = t.toLowerCase();
|
|
8139
8156
|
const r = Object.keys(e);
|
|
@@ -8154,7 +8171,7 @@ function $t() {
|
|
|
8154
8171
|
return r;
|
|
8155
8172
|
}
|
|
8156
8173
|
const Oi = (e, t, r, { allOwnKeys: o } = {}) => (Ve(t, (i, s) => {
|
|
8157
|
-
r &&
|
|
8174
|
+
r && F(i) ? e[s] = Dr(i, r) : e[s] = i;
|
|
8158
8175
|
}, { allOwnKeys: o }), e), Di = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Pi = (e, t, r, o) => {
|
|
8159
8176
|
e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
8160
8177
|
value: t.prototype
|
|
@@ -8208,10 +8225,10 @@ const Oi = (e, t, r, { allOwnKeys: o } = {}) => (Ve(t, (i, s) => {
|
|
|
8208
8225
|
}), Object.defineProperties(e, o);
|
|
8209
8226
|
}, qi = (e) => {
|
|
8210
8227
|
Ir(e, (t, r) => {
|
|
8211
|
-
if (
|
|
8228
|
+
if (F(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
8212
8229
|
return !1;
|
|
8213
8230
|
const o = e[r];
|
|
8214
|
-
if (
|
|
8231
|
+
if (F(o)) {
|
|
8215
8232
|
if (t.enumerable = !1, "writable" in t) {
|
|
8216
8233
|
t.writable = !1;
|
|
8217
8234
|
return;
|
|
@@ -8221,24 +8238,24 @@ const Oi = (e, t, r, { allOwnKeys: o } = {}) => (Ve(t, (i, s) => {
|
|
|
8221
8238
|
});
|
|
8222
8239
|
}
|
|
8223
8240
|
});
|
|
8224
|
-
},
|
|
8241
|
+
}, ji = (e, t) => {
|
|
8225
8242
|
const r = {}, o = (i) => {
|
|
8226
8243
|
i.forEach((s) => {
|
|
8227
8244
|
r[s] = !0;
|
|
8228
8245
|
});
|
|
8229
8246
|
};
|
|
8230
8247
|
return Re(e) ? o(e) : o(String(e).split(t)), r;
|
|
8231
|
-
},
|
|
8248
|
+
}, Fi = () => {
|
|
8232
8249
|
}, Yi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
8233
8250
|
function Vi(e) {
|
|
8234
|
-
return !!(e &&
|
|
8251
|
+
return !!(e && F(e.append) && e[Pr] === "FormData" && e[lt]);
|
|
8235
8252
|
}
|
|
8236
8253
|
const Ki = (e) => {
|
|
8237
8254
|
const t = new Array(10), r = (o, i) => {
|
|
8238
8255
|
if (Ye(o)) {
|
|
8239
8256
|
if (t.indexOf(o) >= 0)
|
|
8240
8257
|
return;
|
|
8241
|
-
if (
|
|
8258
|
+
if (Fe(o))
|
|
8242
8259
|
return o;
|
|
8243
8260
|
if (!("toJSON" in o)) {
|
|
8244
8261
|
t[i] = o;
|
|
@@ -8252,17 +8269,17 @@ const Ki = (e) => {
|
|
|
8252
8269
|
return o;
|
|
8253
8270
|
};
|
|
8254
8271
|
return r(e, 0);
|
|
8255
|
-
}, Wi = re("AsyncFunction"), Ji = (e) => e && (Ye(e) ||
|
|
8272
|
+
}, Wi = re("AsyncFunction"), Ji = (e) => e && (Ye(e) || F(e)) && F(e.then) && F(e.catch), Ur = ((e, t) => e ? setImmediate : t ? ((r, o) => (we.addEventListener("message", ({ source: i, data: s }) => {
|
|
8256
8273
|
i === we && s === r && o.length && o.shift()();
|
|
8257
8274
|
}, !1), (i) => {
|
|
8258
8275
|
o.push(i), we.postMessage(r, "*");
|
|
8259
8276
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
8260
8277
|
typeof setImmediate == "function",
|
|
8261
|
-
|
|
8262
|
-
), Gi = typeof queueMicrotask < "u" ? queueMicrotask.bind(we) : typeof process < "u" && process.nextTick || Ur, Qi = (e) => e != null &&
|
|
8278
|
+
F(we.postMessage)
|
|
8279
|
+
), Gi = typeof queueMicrotask < "u" ? queueMicrotask.bind(we) : typeof process < "u" && process.nextTick || Ur, Qi = (e) => e != null && F(e[lt]), h = {
|
|
8263
8280
|
isArray: Re,
|
|
8264
8281
|
isArrayBuffer: Rr,
|
|
8265
|
-
isBuffer:
|
|
8282
|
+
isBuffer: Fe,
|
|
8266
8283
|
isFormData: ki,
|
|
8267
8284
|
isArrayBufferView: fi,
|
|
8268
8285
|
isString: bi,
|
|
@@ -8280,7 +8297,7 @@ const Ki = (e) => {
|
|
|
8280
8297
|
isFile: yi,
|
|
8281
8298
|
isBlob: wi,
|
|
8282
8299
|
isRegExp: Li,
|
|
8283
|
-
isFunction:
|
|
8300
|
+
isFunction: F,
|
|
8284
8301
|
isStream: $i,
|
|
8285
8302
|
isURLSearchParams: Si,
|
|
8286
8303
|
isTypedArray: Ni,
|
|
@@ -8304,9 +8321,9 @@ const Ki = (e) => {
|
|
|
8304
8321
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8305
8322
|
reduceDescriptors: Ir,
|
|
8306
8323
|
freezeMethods: qi,
|
|
8307
|
-
toObjectSet:
|
|
8324
|
+
toObjectSet: ji,
|
|
8308
8325
|
toCamelCase: Bi,
|
|
8309
|
-
noop:
|
|
8326
|
+
noop: Fi,
|
|
8310
8327
|
toFiniteNumber: Yi,
|
|
8311
8328
|
findKey: Mr,
|
|
8312
8329
|
global: we,
|
|
@@ -8413,16 +8430,16 @@ function ht(e, t, r) {
|
|
|
8413
8430
|
return h.isArrayBuffer(u) || h.isTypedArray(u) ? l && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
8414
8431
|
}
|
|
8415
8432
|
function c(u, v, m) {
|
|
8416
|
-
let
|
|
8433
|
+
let w = u;
|
|
8417
8434
|
if (u && !m && typeof u == "object") {
|
|
8418
8435
|
if (h.endsWith(v, "{}"))
|
|
8419
8436
|
v = o ? v : v.slice(0, -2), u = JSON.stringify(u);
|
|
8420
|
-
else if (h.isArray(u) && Zi(u) || (h.isFileList(u) || h.endsWith(v, "[]")) && (
|
|
8421
|
-
return v = Lr(v),
|
|
8422
|
-
!(h.isUndefined(
|
|
8437
|
+
else if (h.isArray(u) && Zi(u) || (h.isFileList(u) || h.endsWith(v, "[]")) && (w = h.toArray(u)))
|
|
8438
|
+
return v = Lr(v), w.forEach(function(A, D) {
|
|
8439
|
+
!(h.isUndefined(A) || A === null) && t.append(
|
|
8423
8440
|
// eslint-disable-next-line no-nested-ternary
|
|
8424
8441
|
a === !0 ? ar([v], D, s) : a === null ? v : v + "[]",
|
|
8425
|
-
d(
|
|
8442
|
+
d(A)
|
|
8426
8443
|
);
|
|
8427
8444
|
}), !1;
|
|
8428
8445
|
}
|
|
@@ -8437,14 +8454,14 @@ function ht(e, t, r) {
|
|
|
8437
8454
|
if (!h.isUndefined(u)) {
|
|
8438
8455
|
if (p.indexOf(u) !== -1)
|
|
8439
8456
|
throw Error("Circular reference detected in " + v.join("."));
|
|
8440
|
-
p.push(u), h.forEach(u, function(
|
|
8441
|
-
(!(h.isUndefined(
|
|
8457
|
+
p.push(u), h.forEach(u, function(w, E) {
|
|
8458
|
+
(!(h.isUndefined(w) || w === null) && i.call(
|
|
8442
8459
|
t,
|
|
8443
|
-
|
|
8444
|
-
h.isString(
|
|
8460
|
+
w,
|
|
8461
|
+
h.isString(E) ? E.trim() : E,
|
|
8445
8462
|
v,
|
|
8446
8463
|
g
|
|
8447
|
-
)) === !0 && y(
|
|
8464
|
+
)) === !0 && y(w, v ? v.concat(E) : [E]);
|
|
8448
8465
|
}), p.pop();
|
|
8449
8466
|
}
|
|
8450
8467
|
}
|
|
@@ -8484,7 +8501,7 @@ qr.toString = function(t) {
|
|
|
8484
8501
|
function ts(e) {
|
|
8485
8502
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
8486
8503
|
}
|
|
8487
|
-
function
|
|
8504
|
+
function jr(e, t, r) {
|
|
8488
8505
|
if (!t)
|
|
8489
8506
|
return e;
|
|
8490
8507
|
const o = r && r.encode || ts;
|
|
@@ -8553,7 +8570,7 @@ class lr {
|
|
|
8553
8570
|
});
|
|
8554
8571
|
}
|
|
8555
8572
|
}
|
|
8556
|
-
const
|
|
8573
|
+
const Fr = {
|
|
8557
8574
|
silentJSONParsing: !0,
|
|
8558
8575
|
forcedJSONParsing: !0,
|
|
8559
8576
|
clarifyTimeoutError: !1
|
|
@@ -8623,7 +8640,7 @@ function us(e, t, r) {
|
|
|
8623
8640
|
return (r || JSON.stringify)(e);
|
|
8624
8641
|
}
|
|
8625
8642
|
const Ke = {
|
|
8626
|
-
transitional:
|
|
8643
|
+
transitional: Fr,
|
|
8627
8644
|
adapter: ["xhr", "http", "fetch"],
|
|
8628
8645
|
transformRequest: [function(t, r) {
|
|
8629
8646
|
const o = r.getContentType() || "", i = o.indexOf("application/json") > -1, s = h.isObject(t);
|
|
@@ -9086,7 +9103,7 @@ function ke(e, t) {
|
|
|
9086
9103
|
const Jr = (e) => {
|
|
9087
9104
|
const t = ke({}, e);
|
|
9088
9105
|
let { data: r, withXSRFToken: o, xsrfHeaderName: i, xsrfCookieName: s, headers: a, auth: n } = t;
|
|
9089
|
-
if (t.headers = a = Y.from(a), t.url =
|
|
9106
|
+
if (t.headers = a = Y.from(a), t.url = jr(Wr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), n && a.set(
|
|
9090
9107
|
"Authorization",
|
|
9091
9108
|
"Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
|
|
9092
9109
|
), h.isFormData(r)) {
|
|
@@ -9115,16 +9132,16 @@ const Jr = (e) => {
|
|
|
9115
9132
|
}
|
|
9116
9133
|
let m = new XMLHttpRequest();
|
|
9117
9134
|
m.open(i.method.toUpperCase(), i.url, !0), m.timeout = i.timeout;
|
|
9118
|
-
function
|
|
9135
|
+
function w() {
|
|
9119
9136
|
if (!m)
|
|
9120
9137
|
return;
|
|
9121
|
-
const
|
|
9138
|
+
const A = Y.from(
|
|
9122
9139
|
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
9123
|
-
),
|
|
9140
|
+
), j = {
|
|
9124
9141
|
data: !n || n === "text" || n === "json" ? m.responseText : m.response,
|
|
9125
9142
|
status: m.status,
|
|
9126
9143
|
statusText: m.statusText,
|
|
9127
|
-
headers:
|
|
9144
|
+
headers: A,
|
|
9128
9145
|
config: e,
|
|
9129
9146
|
request: m
|
|
9130
9147
|
};
|
|
@@ -9132,32 +9149,32 @@ const Jr = (e) => {
|
|
|
9132
9149
|
r(Q), v();
|
|
9133
9150
|
}, function(Q) {
|
|
9134
9151
|
o(Q), v();
|
|
9135
|
-
},
|
|
9152
|
+
}, j), m = null;
|
|
9136
9153
|
}
|
|
9137
|
-
"onloadend" in m ? m.onloadend =
|
|
9138
|
-
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
9154
|
+
"onloadend" in m ? m.onloadend = w : m.onreadystatechange = function() {
|
|
9155
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(w);
|
|
9139
9156
|
}, m.onabort = function() {
|
|
9140
9157
|
m && (o(new k("Request aborted", k.ECONNABORTED, e, m)), m = null);
|
|
9141
9158
|
}, m.onerror = function(D) {
|
|
9142
|
-
const
|
|
9159
|
+
const j = D && D.message ? D.message : "Network Error", be = new k(j, k.ERR_NETWORK, e, m);
|
|
9143
9160
|
be.event = D || null, o(be), m = null;
|
|
9144
9161
|
}, m.ontimeout = function() {
|
|
9145
9162
|
let D = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
9146
|
-
const
|
|
9163
|
+
const j = i.transitional || Fr;
|
|
9147
9164
|
i.timeoutErrorMessage && (D = i.timeoutErrorMessage), o(new k(
|
|
9148
9165
|
D,
|
|
9149
|
-
|
|
9166
|
+
j.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
|
|
9150
9167
|
e,
|
|
9151
9168
|
m
|
|
9152
9169
|
)), m = null;
|
|
9153
|
-
}, s === void 0 && a.setContentType(null), "setRequestHeader" in m && h.forEach(a.toJSON(), function(D,
|
|
9154
|
-
m.setRequestHeader(
|
|
9155
|
-
}), h.isUndefined(i.withCredentials) || (m.withCredentials = !!i.withCredentials), n && n !== "json" && (m.responseType = i.responseType), d && ([g, u] = it(d, !0), m.addEventListener("progress", g)), l && m.upload && ([p, y] = it(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", y)), (i.cancelToken || i.signal) && (c = (
|
|
9156
|
-
m && (o(!
|
|
9170
|
+
}, s === void 0 && a.setContentType(null), "setRequestHeader" in m && h.forEach(a.toJSON(), function(D, j) {
|
|
9171
|
+
m.setRequestHeader(j, D);
|
|
9172
|
+
}), h.isUndefined(i.withCredentials) || (m.withCredentials = !!i.withCredentials), n && n !== "json" && (m.responseType = i.responseType), d && ([g, u] = it(d, !0), m.addEventListener("progress", g)), l && m.upload && ([p, y] = it(l), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", y)), (i.cancelToken || i.signal) && (c = (A) => {
|
|
9173
|
+
m && (o(!A || A.type ? new ze(null, e, m) : A), m.abort(), m = null);
|
|
9157
9174
|
}, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
|
|
9158
|
-
const
|
|
9159
|
-
if (
|
|
9160
|
-
o(new k("Unsupported protocol " +
|
|
9175
|
+
const E = ws(i.url);
|
|
9176
|
+
if (E && H.protocols.indexOf(E) === -1) {
|
|
9177
|
+
o(new k("Unsupported protocol " + E + ":", k.ERR_BAD_REQUEST, e));
|
|
9161
9178
|
return;
|
|
9162
9179
|
}
|
|
9163
9180
|
m.send(s || null);
|
|
@@ -9276,9 +9293,9 @@ const Jr = (e) => {
|
|
|
9276
9293
|
};
|
|
9277
9294
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
9278
9295
|
!p[u] && (p[u] = (v, m) => {
|
|
9279
|
-
let
|
|
9280
|
-
if (
|
|
9281
|
-
return
|
|
9296
|
+
let w = v && v[u];
|
|
9297
|
+
if (w)
|
|
9298
|
+
return w.call(v);
|
|
9282
9299
|
throw new k(`Response type '${u}' is not supported`, k.ERR_NOT_SUPPORT, m);
|
|
9283
9300
|
});
|
|
9284
9301
|
});
|
|
@@ -9304,11 +9321,11 @@ const Jr = (e) => {
|
|
|
9304
9321
|
let {
|
|
9305
9322
|
url: v,
|
|
9306
9323
|
method: m,
|
|
9307
|
-
data:
|
|
9308
|
-
signal:
|
|
9309
|
-
cancelToken:
|
|
9324
|
+
data: w,
|
|
9325
|
+
signal: E,
|
|
9326
|
+
cancelToken: A,
|
|
9310
9327
|
timeout: D,
|
|
9311
|
-
onDownloadProgress:
|
|
9328
|
+
onDownloadProgress: j,
|
|
9312
9329
|
onUploadProgress: be,
|
|
9313
9330
|
responseType: Q,
|
|
9314
9331
|
headers: ut,
|
|
@@ -9316,47 +9333,47 @@ const Jr = (e) => {
|
|
|
9316
9333
|
fetchOptions: Bt
|
|
9317
9334
|
} = Jr(u), Lt = t || fetch;
|
|
9318
9335
|
Q = Q ? (Q + "").toLowerCase() : "text";
|
|
9319
|
-
let Je = _s([
|
|
9336
|
+
let Je = _s([E, A && A.toAbortSignal()], D), Me = null;
|
|
9320
9337
|
const ge = Je && Je.unsubscribe && (() => {
|
|
9321
9338
|
Je.unsubscribe();
|
|
9322
9339
|
});
|
|
9323
9340
|
let qt;
|
|
9324
9341
|
try {
|
|
9325
|
-
if (be && d && m !== "get" && m !== "head" && (qt = await y(ut,
|
|
9342
|
+
if (be && d && m !== "get" && m !== "head" && (qt = await y(ut, w)) !== 0) {
|
|
9326
9343
|
let ce = new r(v, {
|
|
9327
9344
|
method: "POST",
|
|
9328
|
-
body:
|
|
9345
|
+
body: w,
|
|
9329
9346
|
duplex: "half"
|
|
9330
9347
|
}), Se;
|
|
9331
|
-
if (h.isFormData(
|
|
9348
|
+
if (h.isFormData(w) && (Se = ce.headers.get("content-type")) && ut.setContentType(Se), ce.body) {
|
|
9332
9349
|
const [ft, Ge] = dr(
|
|
9333
9350
|
qt,
|
|
9334
9351
|
it(hr(be))
|
|
9335
9352
|
);
|
|
9336
|
-
|
|
9353
|
+
w = ur(ce.body, fr, ft, Ge);
|
|
9337
9354
|
}
|
|
9338
9355
|
}
|
|
9339
9356
|
h.isString(We) || (We = We ? "include" : "omit");
|
|
9340
|
-
const oe = s && "credentials" in r.prototype,
|
|
9357
|
+
const oe = s && "credentials" in r.prototype, jt = {
|
|
9341
9358
|
...Bt,
|
|
9342
9359
|
signal: Je,
|
|
9343
9360
|
method: m.toUpperCase(),
|
|
9344
9361
|
headers: ut.normalize().toJSON(),
|
|
9345
|
-
body:
|
|
9362
|
+
body: w,
|
|
9346
9363
|
duplex: "half",
|
|
9347
9364
|
credentials: oe ? We : void 0
|
|
9348
9365
|
};
|
|
9349
|
-
Me = s && new r(v,
|
|
9350
|
-
let le = await (s ? Lt(Me, Bt) : Lt(v,
|
|
9351
|
-
const
|
|
9352
|
-
if (c && (
|
|
9366
|
+
Me = s && new r(v, jt);
|
|
9367
|
+
let le = await (s ? Lt(Me, Bt) : Lt(v, jt));
|
|
9368
|
+
const Ft = c && (Q === "stream" || Q === "response");
|
|
9369
|
+
if (c && (j || Ft && ge)) {
|
|
9353
9370
|
const ce = {};
|
|
9354
9371
|
["status", "statusText", "headers"].forEach((Yt) => {
|
|
9355
9372
|
ce[Yt] = le[Yt];
|
|
9356
9373
|
});
|
|
9357
|
-
const Se = h.toFiniteNumber(le.headers.get("content-length")), [ft, Ge] =
|
|
9374
|
+
const Se = h.toFiniteNumber(le.headers.get("content-length")), [ft, Ge] = j && dr(
|
|
9358
9375
|
Se,
|
|
9359
|
-
it(hr(
|
|
9376
|
+
it(hr(j), !0)
|
|
9360
9377
|
) || [];
|
|
9361
9378
|
le = new o(
|
|
9362
9379
|
ur(le.body, fr, ft, () => {
|
|
@@ -9367,7 +9384,7 @@ const Jr = (e) => {
|
|
|
9367
9384
|
}
|
|
9368
9385
|
Q = Q || "text";
|
|
9369
9386
|
let eo = await p[h.findKey(p, Q) || "text"](le, u);
|
|
9370
|
-
return !
|
|
9387
|
+
return !Ft && ge && ge(), await new Promise((ce, Se) => {
|
|
9371
9388
|
Kr(ce, Se, {
|
|
9372
9389
|
data: eo,
|
|
9373
9390
|
headers: Y.from(le.headers),
|
|
@@ -9619,7 +9636,7 @@ class xe {
|
|
|
9619
9636
|
getUri(t) {
|
|
9620
9637
|
t = ke(this.defaults, t);
|
|
9621
9638
|
const r = Wr(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
9622
|
-
return
|
|
9639
|
+
return jr(r, t.params, t.paramsSerializer);
|
|
9623
9640
|
}
|
|
9624
9641
|
}
|
|
9625
9642
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -9895,12 +9912,12 @@ const Ls = ({ baseUrl: e, apiBaseUrl: t }) => {
|
|
|
9895
9912
|
), i;
|
|
9896
9913
|
}, Vs = Ls;
|
|
9897
9914
|
export {
|
|
9898
|
-
|
|
9915
|
+
T as AuthForm,
|
|
9899
9916
|
xr as AuthRefreshError,
|
|
9900
9917
|
se as BaseButton,
|
|
9901
9918
|
he as BaseCard,
|
|
9902
9919
|
P as BaseDatePicker,
|
|
9903
|
-
|
|
9920
|
+
C as BaseDateTimePicker,
|
|
9904
9921
|
V as BaseDrawer,
|
|
9905
9922
|
K as BaseInput,
|
|
9906
9923
|
R as BaseSelect,
|