@cal.macconnachie/web-components 2.4.11 → 2.4.12
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 +207 -98
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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
|
|
329
|
+
l.type === 2 ? h = new Ae(o, o.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (h = new Cs(o, this, e)), this._$AV.push(h), l = i[++n];
|
|
330
330
|
}
|
|
331
331
|
a !== l?.index && (o = be.nextNode(), a++);
|
|
332
332
|
}
|
|
@@ -337,7 +337,7 @@ let $s = class {
|
|
|
337
337
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
|
-
class
|
|
340
|
+
class Ae {
|
|
341
341
|
get _$AU() {
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
@@ -383,7 +383,7 @@ class Ee {
|
|
|
383
383
|
Bt(this._$AH) || (this._$AH = [], this._$AR());
|
|
384
384
|
const t = this._$AH;
|
|
385
385
|
let i, s = 0;
|
|
386
|
-
for (const o of e) s === t.length ? t.push(i = new
|
|
386
|
+
for (const o of e) s === t.length ? t.push(i = new Ae(this.O(Fe()), this.O(Fe()), this, this.options)) : i = t[s], i._$AI(o), s++;
|
|
387
387
|
s < t.length && (this._$AR(i && i._$AB.nextSibling, s), t.length = s);
|
|
388
388
|
}
|
|
389
389
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -461,14 +461,14 @@ class Cs {
|
|
|
461
461
|
_e(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
465
|
-
|
|
464
|
+
const As = { I: Ae }, Es = Lt.litHtmlPolyfillSupport;
|
|
465
|
+
Es?.(je, Ae), (Lt.litHtmlVersions ??= []).push("3.3.1");
|
|
466
466
|
const Ts = (r, e, t) => {
|
|
467
467
|
const i = t?.renderBefore ?? e;
|
|
468
468
|
let s = i._$litPart$;
|
|
469
469
|
if (s === void 0) {
|
|
470
470
|
const o = t?.renderBefore ?? null;
|
|
471
|
-
i._$litPart$ = s = new
|
|
471
|
+
i._$litPart$ = s = new Ae(e.insertBefore(Fe(), o), o, void 0, t ?? {});
|
|
472
472
|
}
|
|
473
473
|
return s._$AI(r), s;
|
|
474
474
|
};
|
|
@@ -555,7 +555,7 @@ class Ft {
|
|
|
555
555
|
return this.render(...t);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
const { I: zs } =
|
|
558
|
+
const { I: zs } = As, dr = () => document.createComment(""), Be = (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);
|
|
@@ -935,7 +935,7 @@ const P = ({
|
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
};
|
|
938
|
-
var Hs = Object.defineProperty,
|
|
938
|
+
var Hs = Object.defineProperty, E = (r, e, t, i) => {
|
|
939
939
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
940
940
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
941
941
|
return s && Hs(e, t, s), s;
|
|
@@ -952,9 +952,9 @@ const js = [
|
|
|
952
952
|
"expires_in"
|
|
953
953
|
], Vs = () => P({
|
|
954
954
|
name: "auth-form",
|
|
955
|
-
element:
|
|
955
|
+
element: A
|
|
956
956
|
});
|
|
957
|
-
class
|
|
957
|
+
class A extends R {
|
|
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;
|
|
@@ -2070,90 +2070,90 @@ class E extends R {
|
|
|
2070
2070
|
}`;
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
|
|
2073
|
+
E([
|
|
2074
2074
|
u({ type: String, attribute: "initial-mode" })
|
|
2075
|
-
],
|
|
2076
|
-
|
|
2075
|
+
], A.prototype, "initialMode");
|
|
2076
|
+
E([
|
|
2077
2077
|
u({ type: String, attribute: "logo-url" })
|
|
2078
|
-
],
|
|
2079
|
-
|
|
2078
|
+
], A.prototype, "logoUrl");
|
|
2079
|
+
E([
|
|
2080
2080
|
u({ type: String, attribute: "oauth-domain" })
|
|
2081
|
-
],
|
|
2082
|
-
|
|
2081
|
+
], A.prototype, "oauthDomain");
|
|
2082
|
+
E([
|
|
2083
2083
|
u({ type: String, attribute: "oauth-region" })
|
|
2084
|
-
],
|
|
2085
|
-
|
|
2084
|
+
], A.prototype, "oauthRegion");
|
|
2085
|
+
E([
|
|
2086
2086
|
u({ type: String, attribute: "oauth-user-pool-id" })
|
|
2087
|
-
],
|
|
2088
|
-
|
|
2087
|
+
], A.prototype, "oauthUserPoolId");
|
|
2088
|
+
E([
|
|
2089
2089
|
u({ type: String, attribute: "oauth-client-id" })
|
|
2090
|
-
],
|
|
2091
|
-
|
|
2090
|
+
], A.prototype, "oauthClientId");
|
|
2091
|
+
E([
|
|
2092
2092
|
u({ type: String, attribute: "oauth-redirect-uri" })
|
|
2093
|
-
],
|
|
2094
|
-
|
|
2093
|
+
], A.prototype, "oauthRedirectUri");
|
|
2094
|
+
E([
|
|
2095
2095
|
u({ type: String, attribute: "oauth-spa-domain" })
|
|
2096
|
-
],
|
|
2097
|
-
|
|
2096
|
+
], A.prototype, "oauthSpaDomain");
|
|
2097
|
+
E([
|
|
2098
2098
|
u({ type: Boolean, attribute: "disable-signup" })
|
|
2099
|
-
],
|
|
2100
|
-
|
|
2099
|
+
], A.prototype, "disableSignup");
|
|
2100
|
+
E([
|
|
2101
2101
|
u({ type: Boolean, attribute: "mock-mode" })
|
|
2102
|
-
],
|
|
2103
|
-
|
|
2102
|
+
], A.prototype, "mockMode");
|
|
2103
|
+
E([
|
|
2104
2104
|
w()
|
|
2105
|
-
],
|
|
2106
|
-
|
|
2105
|
+
], A.prototype, "mode");
|
|
2106
|
+
E([
|
|
2107
2107
|
w()
|
|
2108
|
-
],
|
|
2109
|
-
|
|
2108
|
+
], A.prototype, "resetStep");
|
|
2109
|
+
E([
|
|
2110
2110
|
w()
|
|
2111
|
-
],
|
|
2112
|
-
|
|
2111
|
+
], A.prototype, "signupStep");
|
|
2112
|
+
E([
|
|
2113
2113
|
w()
|
|
2114
|
-
],
|
|
2115
|
-
|
|
2114
|
+
], A.prototype, "isLoading");
|
|
2115
|
+
E([
|
|
2116
2116
|
w()
|
|
2117
|
-
],
|
|
2118
|
-
|
|
2117
|
+
], A.prototype, "isLoggedIn");
|
|
2118
|
+
E([
|
|
2119
2119
|
w()
|
|
2120
|
-
],
|
|
2121
|
-
|
|
2120
|
+
], A.prototype, "email");
|
|
2121
|
+
E([
|
|
2122
2122
|
w()
|
|
2123
|
-
],
|
|
2124
|
-
|
|
2123
|
+
], A.prototype, "password");
|
|
2124
|
+
E([
|
|
2125
2125
|
w()
|
|
2126
|
-
],
|
|
2127
|
-
|
|
2126
|
+
], A.prototype, "givenName");
|
|
2127
|
+
E([
|
|
2128
2128
|
w()
|
|
2129
|
-
],
|
|
2130
|
-
|
|
2129
|
+
], A.prototype, "familyName");
|
|
2130
|
+
E([
|
|
2131
2131
|
w()
|
|
2132
|
-
],
|
|
2133
|
-
|
|
2132
|
+
], A.prototype, "newPassword");
|
|
2133
|
+
E([
|
|
2134
2134
|
w()
|
|
2135
|
-
],
|
|
2136
|
-
|
|
2135
|
+
], A.prototype, "confirmPassword");
|
|
2136
|
+
E([
|
|
2137
2137
|
w()
|
|
2138
|
-
],
|
|
2139
|
-
|
|
2138
|
+
], A.prototype, "notice");
|
|
2139
|
+
E([
|
|
2140
2140
|
w()
|
|
2141
|
-
],
|
|
2142
|
-
|
|
2141
|
+
], A.prototype, "error");
|
|
2142
|
+
E([
|
|
2143
2143
|
w()
|
|
2144
|
-
],
|
|
2145
|
-
|
|
2144
|
+
], A.prototype, "errors");
|
|
2145
|
+
E([
|
|
2146
2146
|
w()
|
|
2147
|
-
],
|
|
2148
|
-
|
|
2147
|
+
], A.prototype, "userEmail");
|
|
2148
|
+
E([
|
|
2149
2149
|
w()
|
|
2150
|
-
],
|
|
2151
|
-
|
|
2150
|
+
], A.prototype, "otpDigits");
|
|
2151
|
+
E([
|
|
2152
2152
|
w()
|
|
2153
|
-
],
|
|
2154
|
-
|
|
2153
|
+
], A.prototype, "signupOtpDigits");
|
|
2154
|
+
E([
|
|
2155
2155
|
V("#email-input")
|
|
2156
|
-
],
|
|
2156
|
+
], A.prototype, "emailInput");
|
|
2157
2157
|
const S = qt(class extends Ft {
|
|
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.");
|
|
@@ -2685,9 +2685,9 @@ var Ws = Object.defineProperty, Ve = (r, e, t, i) => {
|
|
|
2685
2685
|
};
|
|
2686
2686
|
const Ks = () => P({
|
|
2687
2687
|
name: "base-card",
|
|
2688
|
-
element:
|
|
2688
|
+
element: Ee
|
|
2689
2689
|
});
|
|
2690
|
-
class
|
|
2690
|
+
class Ee extends R {
|
|
2691
2691
|
constructor() {
|
|
2692
2692
|
super(...arguments), this.variant = "default", this.padding = "none", this.hoverable = !1, this.expandable = !1, this.isExpanded = !1;
|
|
2693
2693
|
}
|
|
@@ -2936,19 +2936,19 @@ class Ae extends R {
|
|
|
2936
2936
|
}
|
|
2937
2937
|
Ve([
|
|
2938
2938
|
u({ type: String, attribute: "variant" })
|
|
2939
|
-
],
|
|
2939
|
+
], Ee.prototype, "variant");
|
|
2940
2940
|
Ve([
|
|
2941
2941
|
u({ type: String, attribute: "padding" })
|
|
2942
|
-
],
|
|
2942
|
+
], Ee.prototype, "padding");
|
|
2943
2943
|
Ve([
|
|
2944
2944
|
u({ type: Boolean, reflect: !0, attribute: "hoverable" })
|
|
2945
|
-
],
|
|
2945
|
+
], Ee.prototype, "hoverable");
|
|
2946
2946
|
Ve([
|
|
2947
2947
|
u({ type: Boolean, reflect: !0, attribute: "expandable" })
|
|
2948
|
-
],
|
|
2948
|
+
], Ee.prototype, "expandable");
|
|
2949
2949
|
Ve([
|
|
2950
2950
|
w()
|
|
2951
|
-
],
|
|
2951
|
+
], Ee.prototype, "isExpanded");
|
|
2952
2952
|
const J = (r) => r ?? k;
|
|
2953
2953
|
var Xs = Object.defineProperty, z = (r, e, t, i) => {
|
|
2954
2954
|
for (var s = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
@@ -5360,7 +5360,7 @@ var Ci = Object.defineProperty, ft = (r, e, t, i) => {
|
|
|
5360
5360
|
(a = r[o]) && (s = a(e, t, s) || s);
|
|
5361
5361
|
return s && Ci(e, t, s), s;
|
|
5362
5362
|
};
|
|
5363
|
-
const
|
|
5363
|
+
const Ai = /* @__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,
|
|
@@ -5383,7 +5383,7 @@ const Ei = /* @__PURE__ */ Object.assign({
|
|
|
5383
5383
|
"../../public/icons/sun.svg": ki,
|
|
5384
5384
|
"../../public/icons/trash-can.svg": Si,
|
|
5385
5385
|
"../../public/icons/user.svg": _i
|
|
5386
|
-
}),
|
|
5386
|
+
}), Ei = () => P({
|
|
5387
5387
|
name: "base-icon",
|
|
5388
5388
|
element: Te
|
|
5389
5389
|
});
|
|
@@ -5427,7 +5427,7 @@ class Te extends R {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
try {
|
|
5429
5429
|
const e = `../../public/icons/${this.name}.svg`;
|
|
5430
|
-
let t =
|
|
5430
|
+
let t = Ai[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;
|
|
@@ -5912,6 +5912,75 @@ class ie extends R {
|
|
|
5912
5912
|
filter: brightness(0.9);
|
|
5913
5913
|
}
|
|
5914
5914
|
|
|
5915
|
+
/* Desktop hover actions */
|
|
5916
|
+
.desktop-actions {
|
|
5917
|
+
position: absolute;
|
|
5918
|
+
right: 0;
|
|
5919
|
+
top: 0;
|
|
5920
|
+
bottom: 0;
|
|
5921
|
+
display: flex;
|
|
5922
|
+
align-items: center;
|
|
5923
|
+
gap: var(--space-1);
|
|
5924
|
+
padding-right: var(--space-3);
|
|
5925
|
+
opacity: 0;
|
|
5926
|
+
transform: translateX(10px);
|
|
5927
|
+
transition: all var(--transition-fast);
|
|
5928
|
+
pointer-events: none;
|
|
5929
|
+
z-index: 2;
|
|
5930
|
+
background: linear-gradient(to right, transparent, var(--color-bg-primary) 20%);
|
|
5931
|
+
padding-left: var(--space-8);
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5934
|
+
.desktop-action-button {
|
|
5935
|
+
display: flex;
|
|
5936
|
+
align-items: center;
|
|
5937
|
+
justify-content: center;
|
|
5938
|
+
width: 32px;
|
|
5939
|
+
height: 32px;
|
|
5940
|
+
border: none;
|
|
5941
|
+
border-radius: var(--radius-md);
|
|
5942
|
+
cursor: pointer;
|
|
5943
|
+
transition: all var(--transition-fast);
|
|
5944
|
+
color: white;
|
|
5945
|
+
pointer-events: auto;
|
|
5946
|
+
}
|
|
5947
|
+
|
|
5948
|
+
.desktop-action-button:hover {
|
|
5949
|
+
transform: scale(1.1);
|
|
5950
|
+
filter: brightness(1.1);
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5953
|
+
.desktop-action-button:active {
|
|
5954
|
+
transform: scale(0.95);
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
.desktop-action-button:focus-visible {
|
|
5958
|
+
outline: 2px solid var(--color-border-focus);
|
|
5959
|
+
outline-offset: 2px;
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
/* Show desktop actions on hover (desktop only) */
|
|
5963
|
+
@media (hover: hover) and (pointer: fine) {
|
|
5964
|
+
:host(:hover) .desktop-actions,
|
|
5965
|
+
:host(:focus-within) .desktop-actions {
|
|
5966
|
+
opacity: 1;
|
|
5967
|
+
transform: translateX(0);
|
|
5968
|
+
pointer-events: auto;
|
|
5969
|
+
}
|
|
5970
|
+
|
|
5971
|
+
/* Hide swipe actions on desktop */
|
|
5972
|
+
.swipe-actions {
|
|
5973
|
+
display: none;
|
|
5974
|
+
}
|
|
5975
|
+
}
|
|
5976
|
+
|
|
5977
|
+
/* Hide desktop actions on touch devices */
|
|
5978
|
+
@media (hover: none) {
|
|
5979
|
+
.desktop-actions {
|
|
5980
|
+
display: none;
|
|
5981
|
+
}
|
|
5982
|
+
}
|
|
5983
|
+
|
|
5915
5984
|
.base-list-item {
|
|
5916
5985
|
position: relative;
|
|
5917
5986
|
display: block;
|
|
@@ -6079,6 +6148,46 @@ class ie extends R {
|
|
|
6079
6148
|
</div>
|
|
6080
6149
|
` : ""}
|
|
6081
6150
|
|
|
6151
|
+
<!-- Desktop hover actions -->
|
|
6152
|
+
${this.leftSwipeAction || this.rightSwipeAction ? f`
|
|
6153
|
+
<div class="desktop-actions">
|
|
6154
|
+
${this.leftSwipeAction ? f`
|
|
6155
|
+
<button
|
|
6156
|
+
class="desktop-action-button"
|
|
6157
|
+
style="background-color: ${this.leftSwipeAction.color || "var(--color-success)"}"
|
|
6158
|
+
@click=${(t) => {
|
|
6159
|
+
t.stopPropagation(), this.triggerSwipeAction(this.leftSwipeAction);
|
|
6160
|
+
}}
|
|
6161
|
+
title=${this.leftSwipeAction.label || ""}
|
|
6162
|
+
aria-label=${this.leftSwipeAction.label || ""}
|
|
6163
|
+
>
|
|
6164
|
+
<base-icon
|
|
6165
|
+
name=${this.leftSwipeAction.icon}
|
|
6166
|
+
size="20px"
|
|
6167
|
+
color="white"
|
|
6168
|
+
></base-icon>
|
|
6169
|
+
</button>
|
|
6170
|
+
` : ""}
|
|
6171
|
+
${this.rightSwipeAction ? f`
|
|
6172
|
+
<button
|
|
6173
|
+
class="desktop-action-button"
|
|
6174
|
+
style="background-color: ${this.rightSwipeAction.color || "var(--color-error)"}"
|
|
6175
|
+
@click=${(t) => {
|
|
6176
|
+
t.stopPropagation(), this.triggerSwipeAction(this.rightSwipeAction);
|
|
6177
|
+
}}
|
|
6178
|
+
title=${this.rightSwipeAction.label || ""}
|
|
6179
|
+
aria-label=${this.rightSwipeAction.label || ""}
|
|
6180
|
+
>
|
|
6181
|
+
<base-icon
|
|
6182
|
+
name=${this.rightSwipeAction.icon}
|
|
6183
|
+
size="20px"
|
|
6184
|
+
color="white"
|
|
6185
|
+
></base-icon>
|
|
6186
|
+
</button>
|
|
6187
|
+
` : ""}
|
|
6188
|
+
</div>
|
|
6189
|
+
` : ""}
|
|
6190
|
+
|
|
6082
6191
|
<div
|
|
6083
6192
|
class=${S(e)}
|
|
6084
6193
|
style="transform: translateX(${this.swipeOffset}px)"
|
|
@@ -8809,8 +8918,8 @@ const po = (r, e, t, { allOwnKeys: i } = {}) => (Qe(e, (s, o) => {
|
|
|
8809
8918
|
};
|
|
8810
8919
|
return ze(r) ? i(r) : i(String(r).split(e)), t;
|
|
8811
8920
|
}, Co = () => {
|
|
8812
|
-
},
|
|
8813
|
-
function
|
|
8921
|
+
}, Ao = (r, e) => r != null && Number.isFinite(r = +r) ? r : e;
|
|
8922
|
+
function Eo(r) {
|
|
8814
8923
|
return !!(r && Y(r.append) && r[Nr] === "FormData" && r[bt]);
|
|
8815
8924
|
}
|
|
8816
8925
|
const To = (r) => {
|
|
@@ -8887,11 +8996,11 @@ const To = (r) => {
|
|
|
8887
8996
|
toObjectSet: _o,
|
|
8888
8997
|
toCamelCase: $o,
|
|
8889
8998
|
noop: Co,
|
|
8890
|
-
toFiniteNumber:
|
|
8999
|
+
toFiniteNumber: Ao,
|
|
8891
9000
|
findKey: Fr,
|
|
8892
9001
|
global: ve,
|
|
8893
9002
|
isContextDefined: Hr,
|
|
8894
|
-
isSpecCompliantForm:
|
|
9003
|
+
isSpecCompliantForm: Eo,
|
|
8895
9004
|
toJSONObject: To,
|
|
8896
9005
|
isAsyncFn: Do,
|
|
8897
9006
|
isThenable: Po,
|
|
@@ -9472,7 +9581,7 @@ d.reduceDescriptors(W.prototype, ({ value: r }, e) => {
|
|
|
9472
9581
|
};
|
|
9473
9582
|
});
|
|
9474
9583
|
d.freezeMethods(W);
|
|
9475
|
-
function
|
|
9584
|
+
function At(r, e) {
|
|
9476
9585
|
const t = this || et, i = e || t, s = W.from(i.headers);
|
|
9477
9586
|
let o = i.data;
|
|
9478
9587
|
return d.forEach(r, function(n) {
|
|
@@ -10036,22 +10145,22 @@ const is = {
|
|
|
10036
10145
|
*/
|
|
10037
10146
|
adapters: Zt
|
|
10038
10147
|
};
|
|
10039
|
-
function
|
|
10148
|
+
function Et(r) {
|
|
10040
10149
|
if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
|
|
10041
10150
|
throw new Me(null, r);
|
|
10042
10151
|
}
|
|
10043
|
-
function
|
|
10044
|
-
return
|
|
10152
|
+
function Ar(r) {
|
|
10153
|
+
return Et(r), r.headers = W.from(r.headers), r.data = At.call(
|
|
10045
10154
|
r,
|
|
10046
10155
|
r.transformRequest
|
|
10047
10156
|
), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), is.getAdapter(r.adapter || et.adapter, r)(r).then(function(i) {
|
|
10048
|
-
return
|
|
10157
|
+
return Et(r), i.data = At.call(
|
|
10049
10158
|
r,
|
|
10050
10159
|
r.transformResponse,
|
|
10051
10160
|
i
|
|
10052
10161
|
), i.headers = W.from(i.headers), i;
|
|
10053
10162
|
}, function(i) {
|
|
10054
|
-
return Qr(i) || (
|
|
10163
|
+
return Qr(i) || (Et(r), i && i.response && (i.response.data = At.call(
|
|
10055
10164
|
r,
|
|
10056
10165
|
r.transformResponse,
|
|
10057
10166
|
i.response
|
|
@@ -10064,7 +10173,7 @@ const os = "1.13.2", xt = {};
|
|
|
10064
10173
|
return typeof i === r || "a" + (e < 1 ? "n " : " ") + r;
|
|
10065
10174
|
};
|
|
10066
10175
|
});
|
|
10067
|
-
const
|
|
10176
|
+
const Er = {};
|
|
10068
10177
|
xt.transitional = function(e, t, i) {
|
|
10069
10178
|
function s(o, a) {
|
|
10070
10179
|
return "[Axios v" + os + "] Transitional option '" + o + "'" + a + (i ? ". " + i : "");
|
|
@@ -10075,7 +10184,7 @@ xt.transitional = function(e, t, i) {
|
|
|
10075
10184
|
s(a, " has been removed" + (t ? " in " + t : "")),
|
|
10076
10185
|
$.ERR_DEPRECATED
|
|
10077
10186
|
);
|
|
10078
|
-
return t && !
|
|
10187
|
+
return t && !Er[a] && (Er[a] = !0), e ? e(o, a, n) : !0;
|
|
10079
10188
|
};
|
|
10080
10189
|
};
|
|
10081
10190
|
xt.spelling = function(e) {
|
|
@@ -10171,7 +10280,7 @@ class ye {
|
|
|
10171
10280
|
});
|
|
10172
10281
|
let c, p = 0, b;
|
|
10173
10282
|
if (!l) {
|
|
10174
|
-
const g = [
|
|
10283
|
+
const g = [Ar.bind(this), void 0];
|
|
10175
10284
|
for (g.unshift(...n), g.push(...h), b = g.length, c = Promise.resolve(t); p < b; )
|
|
10176
10285
|
c = c.then(g[p++], g[p++]);
|
|
10177
10286
|
return c;
|
|
@@ -10188,7 +10297,7 @@ class ye {
|
|
|
10188
10297
|
}
|
|
10189
10298
|
}
|
|
10190
10299
|
try {
|
|
10191
|
-
c =
|
|
10300
|
+
c = Ar.call(this, y);
|
|
10192
10301
|
} catch (g) {
|
|
10193
10302
|
return Promise.reject(g);
|
|
10194
10303
|
}
|
|
@@ -10413,7 +10522,7 @@ class Tr extends Error {
|
|
|
10413
10522
|
super(e), this.name = "AuthRefreshError";
|
|
10414
10523
|
}
|
|
10415
10524
|
}
|
|
10416
|
-
const
|
|
10525
|
+
const Aa = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
10417
10526
|
const t = O.create({
|
|
10418
10527
|
baseURL: r,
|
|
10419
10528
|
headers: {
|
|
@@ -10515,14 +10624,14 @@ const Ea = ({ baseUrl: r, useToasts: e = !0 }) => {
|
|
|
10515
10624
|
}
|
|
10516
10625
|
), t;
|
|
10517
10626
|
};
|
|
10518
|
-
function
|
|
10519
|
-
Vs(), Ys(), Ks(), Js(), ti(), si(),
|
|
10627
|
+
function Ea() {
|
|
10628
|
+
Vs(), Ys(), Ks(), Js(), ti(), si(), Ei(), Di(), Oi(), zi(), Ii(), Bi(), Ui(), Fi(), Qs(), Lr(), Vi(), Yi();
|
|
10520
10629
|
}
|
|
10521
10630
|
export {
|
|
10522
|
-
|
|
10631
|
+
A as AuthForm,
|
|
10523
10632
|
Tr as AuthRefreshError,
|
|
10524
10633
|
pe as BaseButton,
|
|
10525
|
-
|
|
10634
|
+
Ee as BaseCard,
|
|
10526
10635
|
D as BaseDatePicker,
|
|
10527
10636
|
q as BaseDateTimePicker,
|
|
10528
10637
|
j as BaseDrawer,
|
|
@@ -10538,15 +10647,15 @@ export {
|
|
|
10538
10647
|
Pe as BaseToast,
|
|
10539
10648
|
Oe as QuantitySelect,
|
|
10540
10649
|
Re as ThemeToggle,
|
|
10541
|
-
|
|
10542
|
-
|
|
10650
|
+
Aa as createApiClient,
|
|
10651
|
+
Ea as registerAll,
|
|
10543
10652
|
Vs as registerAuthForm,
|
|
10544
10653
|
Ys as registerBaseButton,
|
|
10545
10654
|
Ks as registerBaseCard,
|
|
10546
10655
|
Js as registerBaseDatePicker,
|
|
10547
10656
|
ti as registerBaseDateTimePicker,
|
|
10548
10657
|
si as registerBaseDrawer,
|
|
10549
|
-
|
|
10658
|
+
Ei as registerBaseIcon,
|
|
10550
10659
|
Di as registerBaseInput,
|
|
10551
10660
|
Oi as registerBaseList,
|
|
10552
10661
|
zi as registerBaseListItem,
|