@cal.macconnachie/web-components 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +297 -281
  2. 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 Fe {
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 = Fe.createElement(d, o), ye.currentNode = this.el.content, r === 2 || r === 3) {
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 = Fe.createElement(Er(o.h, o.h[0]), this.options)), o);
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 Fe(t)), r;
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?.(Fe, _e), (_t.litHtmlVersions ??= []).push("3.3.1");
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 w(e) {
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 x = Ie(e, i[p]);
620
- ve(x, s[y]), l[y] = x;
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: p,
847
- path: g = "/",
848
- secure: y = window.location.protocol === "https:",
849
- sameSite: u = "lax",
850
- domain: v
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 m = `${encodeURIComponent(l)}=${encodeURIComponent(d)}`;
853
- p !== void 0 && (m += `; Max-Age=${p}`), m += `; Path=${g}`, y && (m += "; Secure"), m += `; SameSite=${u}`, v && (m += `; Domain=${v}`), document.cookie = m;
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, Ro);
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 = (x) => {
902
- const _ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", E = new Uint8Array(x);
903
- return crypto.getRandomValues(E), Array.from(E).map((D) => _[D % _.length]).join("");
904
- }, n = async (x) => {
905
- const E = new TextEncoder().encode(x), D = await crypto.subtle.digest("SHA-256", E);
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 x = a(128), _ = await n(x);
909
- return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge: _ };
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 x = a(32);
912
- return sessionStorage.setItem("oauth_state", x), x;
927
+ const w = a(32);
928
+ return sessionStorage.setItem("oauth_state", w), w;
913
929
  }, c = async () => {
914
- const { codeChallenge: x } = await l(), _ = d(), E = new URLSearchParams({
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: x,
938
+ code_challenge: w,
923
939
  prompt: "select_account"
924
940
  });
925
- return `${s.domain}/oauth2/authorize?${E.toString()}`;
941
+ return `${s.domain}/oauth2/authorize?${A.toString()}`;
926
942
  }, p = async () => {
927
- const x = await c();
928
- window.location.href = x;
943
+ const w = await c();
944
+ window.location.href = w;
929
945
  }, g = async () => {
930
- const { codeChallenge: x } = await l(), _ = d(), E = new URLSearchParams({
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: x
954
+ code_challenge: w
939
955
  });
940
- return `${s.domain}/oauth2/authorize?${E.toString()}`;
956
+ return `${s.domain}/oauth2/authorize?${A.toString()}`;
941
957
  }, y = async () => {
942
- const x = await g();
943
- window.location.href = x;
944
- }, u = (x) => {
945
- const _ = sessionStorage.getItem("oauth_state");
946
- return sessionStorage.removeItem("oauth_state"), _ === x;
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 x = sessionStorage.getItem("pkce_code_verifier");
949
- return sessionStorage.removeItem("pkce_code_verifier"), x;
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 (x) => {
957
- const _ = v();
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 E = new URLSearchParams({
976
+ const A = new URLSearchParams({
961
977
  grant_type: "authorization_code",
962
978
  client_id: s.clientId,
963
- code: x,
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: E.toString()
987
+ body: A.toString()
972
988
  });
973
989
  if (!D.ok) {
974
- const F = await D.text();
975
- throw new Error(`Token exchange failed: ${F}`);
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, C = (e, t, r, o) => {
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 A = class extends B {
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
  }
@@ -2350,91 +2366,91 @@ let A = class extends B {
2350
2366
  return this.cookies.getCookie("USER_EMAIL") || null;
2351
2367
  }
2352
2368
  };
2353
- A.styles = Or();
2354
- C([
2369
+ T.styles = Or();
2370
+ _([
2355
2371
  b({ type: String, attribute: "initial-mode" })
2356
- ], A.prototype, "initialMode", 2);
2357
- C([
2372
+ ], T.prototype, "initialMode", 2);
2373
+ _([
2358
2374
  b({ type: String, attribute: "logo-url" })
2359
- ], A.prototype, "logoUrl", 2);
2360
- C([
2375
+ ], T.prototype, "logoUrl", 2);
2376
+ _([
2361
2377
  b({ type: String, attribute: "api-domain" })
2362
- ], A.prototype, "baseUrl", 2);
2363
- C([
2378
+ ], T.prototype, "baseUrl", 2);
2379
+ _([
2364
2380
  b({ type: String, attribute: "oauth-domain" })
2365
- ], A.prototype, "oauthDomain", 2);
2366
- C([
2381
+ ], T.prototype, "oauthDomain", 2);
2382
+ _([
2367
2383
  b({ type: String, attribute: "oauth-region" })
2368
- ], A.prototype, "oauthRegion", 2);
2369
- C([
2384
+ ], T.prototype, "oauthRegion", 2);
2385
+ _([
2370
2386
  b({ type: String, attribute: "oauth-user-pool-id" })
2371
- ], A.prototype, "oauthUserPoolId", 2);
2372
- C([
2387
+ ], T.prototype, "oauthUserPoolId", 2);
2388
+ _([
2373
2389
  b({ type: String, attribute: "oauth-client-id" })
2374
- ], A.prototype, "oauthClientId", 2);
2375
- C([
2390
+ ], T.prototype, "oauthClientId", 2);
2391
+ _([
2376
2392
  b({ type: String, attribute: "oauth-redirect-uri" })
2377
- ], A.prototype, "oauthRedirectUri", 2);
2378
- C([
2393
+ ], T.prototype, "oauthRedirectUri", 2);
2394
+ _([
2379
2395
  b({ type: String, attribute: "oauth-spa-domain" })
2380
- ], A.prototype, "oauthSpaDomain", 2);
2381
- C([
2396
+ ], T.prototype, "oauthSpaDomain", 2);
2397
+ _([
2382
2398
  b({ type: Boolean, attribute: "disable-signup" })
2383
- ], A.prototype, "disableSignup", 2);
2384
- C([
2385
- w()
2386
- ], A.prototype, "mode", 2);
2387
- C([
2388
- w()
2389
- ], A.prototype, "resetStep", 2);
2390
- C([
2391
- w()
2392
- ], A.prototype, "signupStep", 2);
2393
- C([
2394
- w()
2395
- ], A.prototype, "isLoading", 2);
2396
- C([
2397
- w()
2398
- ], A.prototype, "isLoggedIn", 2);
2399
- C([
2400
- w()
2401
- ], A.prototype, "email", 2);
2402
- C([
2403
- w()
2404
- ], A.prototype, "password", 2);
2405
- C([
2406
- w()
2407
- ], A.prototype, "givenName", 2);
2408
- C([
2409
- w()
2410
- ], A.prototype, "familyName", 2);
2411
- C([
2412
- w()
2413
- ], A.prototype, "newPassword", 2);
2414
- C([
2415
- w()
2416
- ], A.prototype, "confirmPassword", 2);
2417
- C([
2418
- w()
2419
- ], A.prototype, "notice", 2);
2420
- C([
2421
- w()
2422
- ], A.prototype, "error", 2);
2423
- C([
2424
- w()
2425
- ], A.prototype, "errors", 2);
2426
- C([
2427
- w()
2428
- ], A.prototype, "otpDigits", 2);
2429
- C([
2430
- w()
2431
- ], A.prototype, "signupOtpDigits", 2);
2432
- C([
2399
+ ], T.prototype, "disableSignup", 2);
2400
+ _([
2401
+ x()
2402
+ ], T.prototype, "mode", 2);
2403
+ _([
2404
+ x()
2405
+ ], T.prototype, "resetStep", 2);
2406
+ _([
2407
+ x()
2408
+ ], T.prototype, "signupStep", 2);
2409
+ _([
2410
+ x()
2411
+ ], T.prototype, "isLoading", 2);
2412
+ _([
2413
+ x()
2414
+ ], T.prototype, "isLoggedIn", 2);
2415
+ _([
2416
+ x()
2417
+ ], T.prototype, "email", 2);
2418
+ _([
2419
+ x()
2420
+ ], T.prototype, "password", 2);
2421
+ _([
2422
+ x()
2423
+ ], T.prototype, "givenName", 2);
2424
+ _([
2425
+ x()
2426
+ ], T.prototype, "familyName", 2);
2427
+ _([
2428
+ x()
2429
+ ], T.prototype, "newPassword", 2);
2430
+ _([
2431
+ x()
2432
+ ], T.prototype, "confirmPassword", 2);
2433
+ _([
2434
+ x()
2435
+ ], T.prototype, "notice", 2);
2436
+ _([
2437
+ x()
2438
+ ], T.prototype, "error", 2);
2439
+ _([
2440
+ x()
2441
+ ], T.prototype, "errors", 2);
2442
+ _([
2443
+ x()
2444
+ ], T.prototype, "otpDigits", 2);
2445
+ _([
2446
+ x()
2447
+ ], T.prototype, "signupOtpDigits", 2);
2448
+ _([
2433
2449
  q("#email-input")
2434
- ], A.prototype, "emailInput", 2);
2435
- A = C([
2450
+ ], T.prototype, "emailInput", 2);
2451
+ T = _([
2436
2452
  W("auth-form")
2437
- ], A);
2453
+ ], T);
2438
2454
  const $ = Rt(class extends zt {
2439
2455
  constructor(e) {
2440
2456
  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 +2972,8 @@ fe([
2956
2972
  se = fe([
2957
2973
  W("base-button")
2958
2974
  ], se);
2959
- var qo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, Oe = (e, t, r, o) => {
2960
- for (var i = o > 1 ? void 0 : o ? Fo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
2975
+ var qo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Oe = (e, t, r, o) => {
2976
+ for (var i = o > 1 ? void 0 : o ? jo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
2961
2977
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
2962
2978
  return o && i && qo(t, r, i), i;
2963
2979
  };
@@ -3219,16 +3235,16 @@ Oe([
3219
3235
  b({ type: Boolean, reflect: !0, attribute: "expandable" })
3220
3236
  ], he.prototype, "expandable", 2);
3221
3237
  Oe([
3222
- w()
3238
+ x()
3223
3239
  ], he.prototype, "isExpanded", 2);
3224
3240
  he = Oe([
3225
3241
  W("base-card")
3226
3242
  ], he);
3227
3243
  const te = (e) => e ?? S;
3228
- var jo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, M = (e, t, r, o) => {
3244
+ var Fo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, M = (e, t, r, o) => {
3229
3245
  for (var i = o > 1 ? void 0 : o ? Yo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
3230
3246
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
3231
- return o && i && jo(t, r, i), i;
3247
+ return o && i && Fo(t, r, i), i;
3232
3248
  };
3233
3249
  let P = class extends B {
3234
3250
  constructor() {
@@ -4029,25 +4045,25 @@ M([
4029
4045
  b({ type: String })
4030
4046
  ], P.prototype, "maxDate", 2);
4031
4047
  M([
4032
- w()
4048
+ x()
4033
4049
  ], P.prototype, "isOpen", 2);
4034
4050
  M([
4035
- w()
4051
+ x()
4036
4052
  ], P.prototype, "currentMonth", 2);
4037
4053
  M([
4038
- w()
4054
+ x()
4039
4055
  ], P.prototype, "currentYear", 2);
4040
4056
  M([
4041
- w()
4057
+ x()
4042
4058
  ], P.prototype, "showMonthPicker", 2);
4043
4059
  M([
4044
- w()
4060
+ x()
4045
4061
  ], P.prototype, "showYearPicker", 2);
4046
4062
  M([
4047
- w()
4063
+ x()
4048
4064
  ], P.prototype, "yearRangeStart", 2);
4049
4065
  M([
4050
- w()
4066
+ x()
4051
4067
  ], P.prototype, "isFlipped", 2);
4052
4068
  M([
4053
4069
  q(".date-display")
@@ -4063,7 +4079,7 @@ var Vo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, O = (e, t,
4063
4079
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
4064
4080
  return o && i && Vo(t, r, i), i;
4065
4081
  };
4066
- let T = class extends B {
4082
+ let C = class extends B {
4067
4083
  constructor() {
4068
4084
  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
4085
  "Jan",
@@ -4516,7 +4532,7 @@ let T = class extends B {
4516
4532
  `;
4517
4533
  }
4518
4534
  };
4519
- T.styles = J`
4535
+ C.styles = J`
4520
4536
  :host {
4521
4537
  display: block;
4522
4538
  position: relative;
@@ -5054,82 +5070,82 @@ T.styles = J`
5054
5070
  `;
5055
5071
  O([
5056
5072
  b({ type: String })
5057
- ], T.prototype, "value", 2);
5073
+ ], C.prototype, "value", 2);
5058
5074
  O([
5059
5075
  b({ type: String })
5060
- ], T.prototype, "label", 2);
5076
+ ], C.prototype, "label", 2);
5061
5077
  O([
5062
5078
  b({ type: String })
5063
- ], T.prototype, "placeholder", 2);
5079
+ ], C.prototype, "placeholder", 2);
5064
5080
  O([
5065
5081
  b({ type: Boolean, reflect: !0 })
5066
- ], T.prototype, "required", 2);
5082
+ ], C.prototype, "required", 2);
5067
5083
  O([
5068
5084
  b({ type: Boolean, reflect: !0 })
5069
- ], T.prototype, "disabled", 2);
5085
+ ], C.prototype, "disabled", 2);
5070
5086
  O([
5071
5087
  b({ type: String })
5072
- ], T.prototype, "error", 2);
5088
+ ], C.prototype, "error", 2);
5073
5089
  O([
5074
5090
  b({ type: String })
5075
- ], T.prototype, "hint", 2);
5091
+ ], C.prototype, "hint", 2);
5076
5092
  O([
5077
5093
  b({ type: String })
5078
- ], T.prototype, "size", 2);
5094
+ ], C.prototype, "size", 2);
5079
5095
  O([
5080
5096
  b({ type: String })
5081
- ], T.prototype, "minDate", 2);
5097
+ ], C.prototype, "minDate", 2);
5082
5098
  O([
5083
5099
  b({ type: String })
5084
- ], T.prototype, "maxDate", 2);
5100
+ ], C.prototype, "maxDate", 2);
5085
5101
  O([
5086
5102
  b({ type: String })
5087
- ], T.prototype, "format", 2);
5103
+ ], C.prototype, "format", 2);
5088
5104
  O([
5089
- w()
5090
- ], T.prototype, "isOpen", 2);
5105
+ x()
5106
+ ], C.prototype, "isOpen", 2);
5091
5107
  O([
5092
- w()
5093
- ], T.prototype, "currentMonth", 2);
5108
+ x()
5109
+ ], C.prototype, "currentMonth", 2);
5094
5110
  O([
5095
- w()
5096
- ], T.prototype, "currentYear", 2);
5111
+ x()
5112
+ ], C.prototype, "currentYear", 2);
5097
5113
  O([
5098
- w()
5099
- ], T.prototype, "showMonthPicker", 2);
5114
+ x()
5115
+ ], C.prototype, "showMonthPicker", 2);
5100
5116
  O([
5101
- w()
5102
- ], T.prototype, "showYearPicker", 2);
5117
+ x()
5118
+ ], C.prototype, "showYearPicker", 2);
5103
5119
  O([
5104
- w()
5105
- ], T.prototype, "yearRangeStart", 2);
5120
+ x()
5121
+ ], C.prototype, "yearRangeStart", 2);
5106
5122
  O([
5107
- w()
5108
- ], T.prototype, "selectedDate", 2);
5123
+ x()
5124
+ ], C.prototype, "selectedDate", 2);
5109
5125
  O([
5110
- w()
5111
- ], T.prototype, "selectedHour", 2);
5126
+ x()
5127
+ ], C.prototype, "selectedHour", 2);
5112
5128
  O([
5113
- w()
5114
- ], T.prototype, "selectedMinute", 2);
5129
+ x()
5130
+ ], C.prototype, "selectedMinute", 2);
5115
5131
  O([
5116
- w()
5117
- ], T.prototype, "selectedPeriod", 2);
5132
+ x()
5133
+ ], C.prototype, "selectedPeriod", 2);
5118
5134
  O([
5119
- w()
5120
- ], T.prototype, "isFlipped", 2);
5135
+ x()
5136
+ ], C.prototype, "isFlipped", 2);
5121
5137
  O([
5122
- w()
5123
- ], T.prototype, "currentStep", 2);
5138
+ x()
5139
+ ], C.prototype, "currentStep", 2);
5124
5140
  O([
5125
5141
  q(".datetime-display")
5126
- ], T.prototype, "datetimeDisplay", 2);
5142
+ ], C.prototype, "datetimeDisplay", 2);
5127
5143
  O([
5128
5144
  q(".datetime-container")
5129
- ], T.prototype, "datetimeContainer", 2);
5130
- T = O([
5145
+ ], C.prototype, "datetimeContainer", 2);
5146
+ C = O([
5131
5147
  W("base-datetime-picker")
5132
- ], T);
5148
+ ], C);
5133
5149
  var Wo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, Z = (e, t, r, o) => {
5134
5150
  for (var i = o > 1 ? void 0 : o ? Jo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
5135
5151
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
@@ -5277,25 +5293,25 @@ Z([
5277
5293
  b({ type: String, attribute: "size" })
5278
5294
  ], V.prototype, "size", 2);
5279
5295
  Z([
5280
- w()
5296
+ x()
5281
5297
  ], V.prototype, "isClosing", 2);
5282
5298
  Z([
5283
- w()
5299
+ x()
5284
5300
  ], V.prototype, "isVisible", 2);
5285
5301
  Z([
5286
- w()
5302
+ x()
5287
5303
  ], V.prototype, "isDragging", 2);
5288
5304
  Z([
5289
- w()
5305
+ x()
5290
5306
  ], V.prototype, "dragStartY", 2);
5291
5307
  Z([
5292
- w()
5308
+ x()
5293
5309
  ], V.prototype, "dragCurrentY", 2);
5294
5310
  Z([
5295
- w()
5311
+ x()
5296
5312
  ], V.prototype, "dragStartTime", 2);
5297
5313
  Z([
5298
- w()
5314
+ x()
5299
5315
  ], V.prototype, "lastDragEndTime", 2);
5300
5316
  Z([
5301
5317
  q(".modal-container")
@@ -5996,16 +6012,16 @@ I([
5996
6012
  b({ type: Array })
5997
6013
  ], R.prototype, "options", 2);
5998
6014
  I([
5999
- w()
6015
+ x()
6000
6016
  ], R.prototype, "isOpen", 2);
6001
6017
  I([
6002
- w()
6018
+ x()
6003
6019
  ], R.prototype, "searchQuery", 2);
6004
6020
  I([
6005
- w()
6021
+ x()
6006
6022
  ], R.prototype, "highlightedIndex", 2);
6007
6023
  I([
6008
- w()
6024
+ x()
6009
6025
  ], R.prototype, "isFlipped", 2);
6010
6026
  I([
6011
6027
  q(".select-input")
@@ -6774,13 +6790,13 @@ ae([
6774
6790
  b({ type: Boolean, attribute: "force-expanded" })
6775
6791
  ], X.prototype, "forceExpanded", 2);
6776
6792
  ae([
6777
- w()
6793
+ x()
6778
6794
  ], X.prototype, "tabs", 2);
6779
6795
  ae([
6780
- w()
6796
+ x()
6781
6797
  ], X.prototype, "isExpanded", 2);
6782
6798
  ae([
6783
- w()
6799
+ x()
6784
6800
  ], X.prototype, "isMobile", 2);
6785
6801
  ae([
6786
6802
  q(".tabs-nav")
@@ -7580,19 +7596,19 @@ U([
7580
7596
  b({ type: String })
7581
7597
  ], N.prototype, "format", 2);
7582
7598
  U([
7583
- w()
7599
+ x()
7584
7600
  ], N.prototype, "isOpen", 2);
7585
7601
  U([
7586
- w()
7602
+ x()
7587
7603
  ], N.prototype, "selectedHour", 2);
7588
7604
  U([
7589
- w()
7605
+ x()
7590
7606
  ], N.prototype, "selectedMinute", 2);
7591
7607
  U([
7592
- w()
7608
+ x()
7593
7609
  ], N.prototype, "selectedPeriod", 2);
7594
7610
  U([
7595
- w()
7611
+ x()
7596
7612
  ], N.prototype, "isFlipped", 2);
7597
7613
  U([
7598
7614
  q(".time-display")
@@ -8076,7 +8092,7 @@ nt([
8076
8092
  b({ type: String, attribute: "variant" })
8077
8093
  ], Te.prototype, "variant", 2);
8078
8094
  nt([
8079
- w()
8095
+ x()
8080
8096
  ], Te.prototype, "isDark", 2);
8081
8097
  Te = nt([
8082
8098
  W("theme-toggle")
@@ -8090,31 +8106,31 @@ const { toString: ui } = Object.prototype, { getPrototypeOf: Mt } = Object, { it
8090
8106
  const r = ui.call(t);
8091
8107
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
8092
8108
  })(/* @__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 je(e) {
8094
- return e !== null && !Ce(e) && e.constructor !== null && !Ce(e.constructor) && j(e.constructor.isBuffer) && e.constructor.isBuffer(e);
8109
+ function Fe(e) {
8110
+ return e !== null && !Ce(e) && e.constructor !== null && !Ce(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
8095
8111
  }
8096
8112
  const Rr = re("ArrayBuffer");
8097
8113
  function fi(e) {
8098
8114
  let t;
8099
8115
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Rr(e.buffer), t;
8100
8116
  }
8101
- const bi = dt("string"), j = dt("function"), zr = dt("number"), Ye = (e) => e !== null && typeof e == "object", gi = (e) => e === !0 || e === !1, Ze = (e) => {
8117
+ 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
8118
  if (ct(e) !== "object")
8103
8119
  return !1;
8104
8120
  const t = Mt(e);
8105
8121
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Pr in e) && !(lt in e);
8106
8122
  }, mi = (e) => {
8107
- if (!Ye(e) || je(e))
8123
+ if (!Ye(e) || Fe(e))
8108
8124
  return !1;
8109
8125
  try {
8110
8126
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
8111
8127
  } catch {
8112
8128
  return !1;
8113
8129
  }
8114
- }, vi = re("Date"), yi = re("File"), wi = re("Blob"), xi = re("FileList"), $i = (e) => Ye(e) && j(e.pipe), ki = (e) => {
8130
+ }, vi = re("Date"), yi = re("File"), wi = re("Blob"), xi = re("FileList"), $i = (e) => Ye(e) && F(e.pipe), ki = (e) => {
8115
8131
  let t;
8116
- return e && (typeof FormData == "function" && e instanceof FormData || j(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
8117
- t === "object" && j(e.toString) && e.toString() === "[object FormData]"));
8132
+ return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
8133
+ t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
8118
8134
  }, 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
8135
  function Ve(e, t, { allOwnKeys: r = !1 } = {}) {
8120
8136
  if (e === null || typeof e > "u")
@@ -8124,7 +8140,7 @@ function Ve(e, t, { allOwnKeys: r = !1 } = {}) {
8124
8140
  for (o = 0, i = e.length; o < i; o++)
8125
8141
  t.call(null, e[o], o, e);
8126
8142
  else {
8127
- if (je(e))
8143
+ if (Fe(e))
8128
8144
  return;
8129
8145
  const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
8130
8146
  let n;
@@ -8133,7 +8149,7 @@ function Ve(e, t, { allOwnKeys: r = !1 } = {}) {
8133
8149
  }
8134
8150
  }
8135
8151
  function Mr(e, t) {
8136
- if (je(e))
8152
+ if (Fe(e))
8137
8153
  return null;
8138
8154
  t = t.toLowerCase();
8139
8155
  const r = Object.keys(e);
@@ -8154,7 +8170,7 @@ function $t() {
8154
8170
  return r;
8155
8171
  }
8156
8172
  const Oi = (e, t, r, { allOwnKeys: o } = {}) => (Ve(t, (i, s) => {
8157
- r && j(i) ? e[s] = Dr(i, r) : e[s] = i;
8173
+ r && F(i) ? e[s] = Dr(i, r) : e[s] = i;
8158
8174
  }, { allOwnKeys: o }), e), Di = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Pi = (e, t, r, o) => {
8159
8175
  e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
8160
8176
  value: t.prototype
@@ -8208,10 +8224,10 @@ const Oi = (e, t, r, { allOwnKeys: o } = {}) => (Ve(t, (i, s) => {
8208
8224
  }), Object.defineProperties(e, o);
8209
8225
  }, qi = (e) => {
8210
8226
  Ir(e, (t, r) => {
8211
- if (j(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
8227
+ if (F(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
8212
8228
  return !1;
8213
8229
  const o = e[r];
8214
- if (j(o)) {
8230
+ if (F(o)) {
8215
8231
  if (t.enumerable = !1, "writable" in t) {
8216
8232
  t.writable = !1;
8217
8233
  return;
@@ -8221,24 +8237,24 @@ const Oi = (e, t, r, { allOwnKeys: o } = {}) => (Ve(t, (i, s) => {
8221
8237
  });
8222
8238
  }
8223
8239
  });
8224
- }, Fi = (e, t) => {
8240
+ }, ji = (e, t) => {
8225
8241
  const r = {}, o = (i) => {
8226
8242
  i.forEach((s) => {
8227
8243
  r[s] = !0;
8228
8244
  });
8229
8245
  };
8230
8246
  return Re(e) ? o(e) : o(String(e).split(t)), r;
8231
- }, ji = () => {
8247
+ }, Fi = () => {
8232
8248
  }, Yi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
8233
8249
  function Vi(e) {
8234
- return !!(e && j(e.append) && e[Pr] === "FormData" && e[lt]);
8250
+ return !!(e && F(e.append) && e[Pr] === "FormData" && e[lt]);
8235
8251
  }
8236
8252
  const Ki = (e) => {
8237
8253
  const t = new Array(10), r = (o, i) => {
8238
8254
  if (Ye(o)) {
8239
8255
  if (t.indexOf(o) >= 0)
8240
8256
  return;
8241
- if (je(o))
8257
+ if (Fe(o))
8242
8258
  return o;
8243
8259
  if (!("toJSON" in o)) {
8244
8260
  t[i] = o;
@@ -8252,17 +8268,17 @@ const Ki = (e) => {
8252
8268
  return o;
8253
8269
  };
8254
8270
  return r(e, 0);
8255
- }, Wi = re("AsyncFunction"), Ji = (e) => e && (Ye(e) || j(e)) && j(e.then) && j(e.catch), Ur = ((e, t) => e ? setImmediate : t ? ((r, o) => (we.addEventListener("message", ({ source: i, data: s }) => {
8271
+ }, 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
8272
  i === we && s === r && o.length && o.shift()();
8257
8273
  }, !1), (i) => {
8258
8274
  o.push(i), we.postMessage(r, "*");
8259
8275
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
8260
8276
  typeof setImmediate == "function",
8261
- j(we.postMessage)
8262
- ), Gi = typeof queueMicrotask < "u" ? queueMicrotask.bind(we) : typeof process < "u" && process.nextTick || Ur, Qi = (e) => e != null && j(e[lt]), h = {
8277
+ F(we.postMessage)
8278
+ ), Gi = typeof queueMicrotask < "u" ? queueMicrotask.bind(we) : typeof process < "u" && process.nextTick || Ur, Qi = (e) => e != null && F(e[lt]), h = {
8263
8279
  isArray: Re,
8264
8280
  isArrayBuffer: Rr,
8265
- isBuffer: je,
8281
+ isBuffer: Fe,
8266
8282
  isFormData: ki,
8267
8283
  isArrayBufferView: fi,
8268
8284
  isString: bi,
@@ -8280,7 +8296,7 @@ const Ki = (e) => {
8280
8296
  isFile: yi,
8281
8297
  isBlob: wi,
8282
8298
  isRegExp: Li,
8283
- isFunction: j,
8299
+ isFunction: F,
8284
8300
  isStream: $i,
8285
8301
  isURLSearchParams: Si,
8286
8302
  isTypedArray: Ni,
@@ -8304,9 +8320,9 @@ const Ki = (e) => {
8304
8320
  // an alias to avoid ESLint no-prototype-builtins detection
8305
8321
  reduceDescriptors: Ir,
8306
8322
  freezeMethods: qi,
8307
- toObjectSet: Fi,
8323
+ toObjectSet: ji,
8308
8324
  toCamelCase: Bi,
8309
- noop: ji,
8325
+ noop: Fi,
8310
8326
  toFiniteNumber: Yi,
8311
8327
  findKey: Mr,
8312
8328
  global: we,
@@ -8413,16 +8429,16 @@ function ht(e, t, r) {
8413
8429
  return h.isArrayBuffer(u) || h.isTypedArray(u) ? l && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
8414
8430
  }
8415
8431
  function c(u, v, m) {
8416
- let x = u;
8432
+ let w = u;
8417
8433
  if (u && !m && typeof u == "object") {
8418
8434
  if (h.endsWith(v, "{}"))
8419
8435
  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, "[]")) && (x = h.toArray(u)))
8421
- return v = Lr(v), x.forEach(function(E, D) {
8422
- !(h.isUndefined(E) || E === null) && t.append(
8436
+ else if (h.isArray(u) && Zi(u) || (h.isFileList(u) || h.endsWith(v, "[]")) && (w = h.toArray(u)))
8437
+ return v = Lr(v), w.forEach(function(A, D) {
8438
+ !(h.isUndefined(A) || A === null) && t.append(
8423
8439
  // eslint-disable-next-line no-nested-ternary
8424
8440
  a === !0 ? ar([v], D, s) : a === null ? v : v + "[]",
8425
- d(E)
8441
+ d(A)
8426
8442
  );
8427
8443
  }), !1;
8428
8444
  }
@@ -8437,14 +8453,14 @@ function ht(e, t, r) {
8437
8453
  if (!h.isUndefined(u)) {
8438
8454
  if (p.indexOf(u) !== -1)
8439
8455
  throw Error("Circular reference detected in " + v.join("."));
8440
- p.push(u), h.forEach(u, function(x, _) {
8441
- (!(h.isUndefined(x) || x === null) && i.call(
8456
+ p.push(u), h.forEach(u, function(w, E) {
8457
+ (!(h.isUndefined(w) || w === null) && i.call(
8442
8458
  t,
8443
- x,
8444
- h.isString(_) ? _.trim() : _,
8459
+ w,
8460
+ h.isString(E) ? E.trim() : E,
8445
8461
  v,
8446
8462
  g
8447
- )) === !0 && y(x, v ? v.concat(_) : [_]);
8463
+ )) === !0 && y(w, v ? v.concat(E) : [E]);
8448
8464
  }), p.pop();
8449
8465
  }
8450
8466
  }
@@ -8484,7 +8500,7 @@ qr.toString = function(t) {
8484
8500
  function ts(e) {
8485
8501
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
8486
8502
  }
8487
- function Fr(e, t, r) {
8503
+ function jr(e, t, r) {
8488
8504
  if (!t)
8489
8505
  return e;
8490
8506
  const o = r && r.encode || ts;
@@ -8553,7 +8569,7 @@ class lr {
8553
8569
  });
8554
8570
  }
8555
8571
  }
8556
- const jr = {
8572
+ const Fr = {
8557
8573
  silentJSONParsing: !0,
8558
8574
  forcedJSONParsing: !0,
8559
8575
  clarifyTimeoutError: !1
@@ -8623,7 +8639,7 @@ function us(e, t, r) {
8623
8639
  return (r || JSON.stringify)(e);
8624
8640
  }
8625
8641
  const Ke = {
8626
- transitional: jr,
8642
+ transitional: Fr,
8627
8643
  adapter: ["xhr", "http", "fetch"],
8628
8644
  transformRequest: [function(t, r) {
8629
8645
  const o = r.getContentType() || "", i = o.indexOf("application/json") > -1, s = h.isObject(t);
@@ -9086,7 +9102,7 @@ function ke(e, t) {
9086
9102
  const Jr = (e) => {
9087
9103
  const t = ke({}, e);
9088
9104
  let { data: r, withXSRFToken: o, xsrfHeaderName: i, xsrfCookieName: s, headers: a, auth: n } = t;
9089
- if (t.headers = a = Y.from(a), t.url = Fr(Wr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), n && a.set(
9105
+ 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
9106
  "Authorization",
9091
9107
  "Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
9092
9108
  ), h.isFormData(r)) {
@@ -9115,16 +9131,16 @@ const Jr = (e) => {
9115
9131
  }
9116
9132
  let m = new XMLHttpRequest();
9117
9133
  m.open(i.method.toUpperCase(), i.url, !0), m.timeout = i.timeout;
9118
- function x() {
9134
+ function w() {
9119
9135
  if (!m)
9120
9136
  return;
9121
- const E = Y.from(
9137
+ const A = Y.from(
9122
9138
  "getAllResponseHeaders" in m && m.getAllResponseHeaders()
9123
- ), F = {
9139
+ ), j = {
9124
9140
  data: !n || n === "text" || n === "json" ? m.responseText : m.response,
9125
9141
  status: m.status,
9126
9142
  statusText: m.statusText,
9127
- headers: E,
9143
+ headers: A,
9128
9144
  config: e,
9129
9145
  request: m
9130
9146
  };
@@ -9132,32 +9148,32 @@ const Jr = (e) => {
9132
9148
  r(Q), v();
9133
9149
  }, function(Q) {
9134
9150
  o(Q), v();
9135
- }, F), m = null;
9151
+ }, j), m = null;
9136
9152
  }
9137
- "onloadend" in m ? m.onloadend = x : m.onreadystatechange = function() {
9138
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(x);
9153
+ "onloadend" in m ? m.onloadend = w : m.onreadystatechange = function() {
9154
+ !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(w);
9139
9155
  }, m.onabort = function() {
9140
9156
  m && (o(new k("Request aborted", k.ECONNABORTED, e, m)), m = null);
9141
9157
  }, m.onerror = function(D) {
9142
- const F = D && D.message ? D.message : "Network Error", be = new k(F, k.ERR_NETWORK, e, m);
9158
+ const j = D && D.message ? D.message : "Network Error", be = new k(j, k.ERR_NETWORK, e, m);
9143
9159
  be.event = D || null, o(be), m = null;
9144
9160
  }, m.ontimeout = function() {
9145
9161
  let D = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
9146
- const F = i.transitional || jr;
9162
+ const j = i.transitional || Fr;
9147
9163
  i.timeoutErrorMessage && (D = i.timeoutErrorMessage), o(new k(
9148
9164
  D,
9149
- F.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
9165
+ j.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
9150
9166
  e,
9151
9167
  m
9152
9168
  )), m = null;
9153
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in m && h.forEach(a.toJSON(), function(D, F) {
9154
- m.setRequestHeader(F, D);
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 = (E) => {
9156
- m && (o(!E || E.type ? new ze(null, e, m) : E), m.abort(), m = null);
9169
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in m && h.forEach(a.toJSON(), function(D, j) {
9170
+ m.setRequestHeader(j, D);
9171
+ }), 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) => {
9172
+ m && (o(!A || A.type ? new ze(null, e, m) : A), m.abort(), m = null);
9157
9173
  }, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
9158
- const _ = ws(i.url);
9159
- if (_ && H.protocols.indexOf(_) === -1) {
9160
- o(new k("Unsupported protocol " + _ + ":", k.ERR_BAD_REQUEST, e));
9174
+ const E = ws(i.url);
9175
+ if (E && H.protocols.indexOf(E) === -1) {
9176
+ o(new k("Unsupported protocol " + E + ":", k.ERR_BAD_REQUEST, e));
9161
9177
  return;
9162
9178
  }
9163
9179
  m.send(s || null);
@@ -9276,9 +9292,9 @@ const Jr = (e) => {
9276
9292
  };
9277
9293
  i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
9278
9294
  !p[u] && (p[u] = (v, m) => {
9279
- let x = v && v[u];
9280
- if (x)
9281
- return x.call(v);
9295
+ let w = v && v[u];
9296
+ if (w)
9297
+ return w.call(v);
9282
9298
  throw new k(`Response type '${u}' is not supported`, k.ERR_NOT_SUPPORT, m);
9283
9299
  });
9284
9300
  });
@@ -9304,11 +9320,11 @@ const Jr = (e) => {
9304
9320
  let {
9305
9321
  url: v,
9306
9322
  method: m,
9307
- data: x,
9308
- signal: _,
9309
- cancelToken: E,
9323
+ data: w,
9324
+ signal: E,
9325
+ cancelToken: A,
9310
9326
  timeout: D,
9311
- onDownloadProgress: F,
9327
+ onDownloadProgress: j,
9312
9328
  onUploadProgress: be,
9313
9329
  responseType: Q,
9314
9330
  headers: ut,
@@ -9316,47 +9332,47 @@ const Jr = (e) => {
9316
9332
  fetchOptions: Bt
9317
9333
  } = Jr(u), Lt = t || fetch;
9318
9334
  Q = Q ? (Q + "").toLowerCase() : "text";
9319
- let Je = _s([_, E && E.toAbortSignal()], D), Me = null;
9335
+ let Je = _s([E, A && A.toAbortSignal()], D), Me = null;
9320
9336
  const ge = Je && Je.unsubscribe && (() => {
9321
9337
  Je.unsubscribe();
9322
9338
  });
9323
9339
  let qt;
9324
9340
  try {
9325
- if (be && d && m !== "get" && m !== "head" && (qt = await y(ut, x)) !== 0) {
9341
+ if (be && d && m !== "get" && m !== "head" && (qt = await y(ut, w)) !== 0) {
9326
9342
  let ce = new r(v, {
9327
9343
  method: "POST",
9328
- body: x,
9344
+ body: w,
9329
9345
  duplex: "half"
9330
9346
  }), Se;
9331
- if (h.isFormData(x) && (Se = ce.headers.get("content-type")) && ut.setContentType(Se), ce.body) {
9347
+ if (h.isFormData(w) && (Se = ce.headers.get("content-type")) && ut.setContentType(Se), ce.body) {
9332
9348
  const [ft, Ge] = dr(
9333
9349
  qt,
9334
9350
  it(hr(be))
9335
9351
  );
9336
- x = ur(ce.body, fr, ft, Ge);
9352
+ w = ur(ce.body, fr, ft, Ge);
9337
9353
  }
9338
9354
  }
9339
9355
  h.isString(We) || (We = We ? "include" : "omit");
9340
- const oe = s && "credentials" in r.prototype, Ft = {
9356
+ const oe = s && "credentials" in r.prototype, jt = {
9341
9357
  ...Bt,
9342
9358
  signal: Je,
9343
9359
  method: m.toUpperCase(),
9344
9360
  headers: ut.normalize().toJSON(),
9345
- body: x,
9361
+ body: w,
9346
9362
  duplex: "half",
9347
9363
  credentials: oe ? We : void 0
9348
9364
  };
9349
- Me = s && new r(v, Ft);
9350
- let le = await (s ? Lt(Me, Bt) : Lt(v, Ft));
9351
- const jt = c && (Q === "stream" || Q === "response");
9352
- if (c && (F || jt && ge)) {
9365
+ Me = s && new r(v, jt);
9366
+ let le = await (s ? Lt(Me, Bt) : Lt(v, jt));
9367
+ const Ft = c && (Q === "stream" || Q === "response");
9368
+ if (c && (j || Ft && ge)) {
9353
9369
  const ce = {};
9354
9370
  ["status", "statusText", "headers"].forEach((Yt) => {
9355
9371
  ce[Yt] = le[Yt];
9356
9372
  });
9357
- const Se = h.toFiniteNumber(le.headers.get("content-length")), [ft, Ge] = F && dr(
9373
+ const Se = h.toFiniteNumber(le.headers.get("content-length")), [ft, Ge] = j && dr(
9358
9374
  Se,
9359
- it(hr(F), !0)
9375
+ it(hr(j), !0)
9360
9376
  ) || [];
9361
9377
  le = new o(
9362
9378
  ur(le.body, fr, ft, () => {
@@ -9367,7 +9383,7 @@ const Jr = (e) => {
9367
9383
  }
9368
9384
  Q = Q || "text";
9369
9385
  let eo = await p[h.findKey(p, Q) || "text"](le, u);
9370
- return !jt && ge && ge(), await new Promise((ce, Se) => {
9386
+ return !Ft && ge && ge(), await new Promise((ce, Se) => {
9371
9387
  Kr(ce, Se, {
9372
9388
  data: eo,
9373
9389
  headers: Y.from(le.headers),
@@ -9619,7 +9635,7 @@ class xe {
9619
9635
  getUri(t) {
9620
9636
  t = ke(this.defaults, t);
9621
9637
  const r = Wr(t.baseURL, t.url, t.allowAbsoluteUrls);
9622
- return Fr(r, t.params, t.paramsSerializer);
9638
+ return jr(r, t.params, t.paramsSerializer);
9623
9639
  }
9624
9640
  }
9625
9641
  h.forEach(["delete", "get", "head", "options"], function(t) {
@@ -9895,12 +9911,12 @@ const Ls = ({ baseUrl: e, apiBaseUrl: t }) => {
9895
9911
  ), i;
9896
9912
  }, Vs = Ls;
9897
9913
  export {
9898
- A as AuthForm,
9914
+ T as AuthForm,
9899
9915
  xr as AuthRefreshError,
9900
9916
  se as BaseButton,
9901
9917
  he as BaseCard,
9902
9918
  P as BaseDatePicker,
9903
- T as BaseDateTimePicker,
9919
+ C as BaseDateTimePicker,
9904
9920
  V as BaseDrawer,
9905
9921
  K as BaseInput,
9906
9922
  R as BaseSelect,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cal.macconnachie/web-components",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Web components hosted on a CDN",
5
5
  "keywords": [
6
6
  "web-components",