@commercelayer/app-elements 6.8.0 → 6.9.1
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/{InputDateComponent-HBIJB0ef.js → InputDateComponent-CLU0eefS.js} +79 -75
- package/dist/{RuleEngineComponent-CR8GxFNt.js → RuleEngineComponent-0_e_USma.js} +2 -2
- package/dist/{main-B681ROwD.js → main-BuFWdBkv.js} +341 -322
- package/dist/main.js +1 -1
- package/dist/{parseISO-rPNJQMj2.js → parseISO-CZGZrZsH.js} +1 -1
- package/dist/providers/TokenProvider/TokenProvider.d.ts +2 -1
- package/dist/providers/TokenProvider/index.d.ts +1 -1
- package/dist/providers/TokenProvider/reducer.d.ts +3 -1
- package/dist/providers/TokenProvider/types.d.ts +5 -0
- package/dist/providers/TokenProvider/validateToken.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/ui/forms/InputDate/InputDateComponent.d.ts +6 -0
- package/dist/ui/forms/InputDateRange/InputDateRange.d.ts +3 -1
- package/package.json +1 -1
|
@@ -365,9 +365,9 @@ class fr extends Jr {
|
|
|
365
365
|
let g = p?.res;
|
|
366
366
|
const b = p?.usedKey || l, y = p?.exactUsedKey || l, A = ["[object Number]", "[object Function]", "[object RegExp]"], v = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, Z = s.count !== void 0 && !he(s.count), E = fr.hasDefaultValue(s), w = Z ? this.pluralResolver.getSuffix(m, s.count, s) : "", x = s.ordinal && Z ? this.pluralResolver.getSuffix(m, s.count, {
|
|
367
367
|
ordinal: !1
|
|
368
|
-
}) : "", I = Z && !s.ordinal && s.count === 0,
|
|
368
|
+
}) : "", I = Z && !s.ordinal && s.count === 0, M = I && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${w}`] || s[`defaultValue${x}`] || s.defaultValue;
|
|
369
369
|
let S = g;
|
|
370
|
-
_ && !g && E && (S =
|
|
370
|
+
_ && !g && E && (S = M);
|
|
371
371
|
const j = Rs(S), R = Object.prototype.toString.apply(S);
|
|
372
372
|
if (_ && S && j && A.indexOf(R) < 0 && !(he(v) && Array.isArray(S))) {
|
|
373
373
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
@@ -380,19 +380,19 @@ class fr extends Jr {
|
|
|
380
380
|
}
|
|
381
381
|
if (o) {
|
|
382
382
|
const Y = Array.isArray(S), D = Y ? [] : {}, V = Y ? y : b;
|
|
383
|
-
for (const
|
|
384
|
-
if (Object.prototype.hasOwnProperty.call(S,
|
|
385
|
-
const P = `${V}${o}${
|
|
386
|
-
E && !g ? D[
|
|
383
|
+
for (const C in S)
|
|
384
|
+
if (Object.prototype.hasOwnProperty.call(S, C)) {
|
|
385
|
+
const P = `${V}${o}${C}`;
|
|
386
|
+
E && !g ? D[C] = this.translate(P, {
|
|
387
387
|
...s,
|
|
388
|
-
defaultValue: Rs(
|
|
388
|
+
defaultValue: Rs(M) ? M[C] : void 0,
|
|
389
389
|
joinArrays: !1,
|
|
390
390
|
ns: c
|
|
391
|
-
}) : D[
|
|
391
|
+
}) : D[C] = this.translate(P, {
|
|
392
392
|
...s,
|
|
393
393
|
joinArrays: !1,
|
|
394
394
|
ns: c
|
|
395
|
-
}), D[
|
|
395
|
+
}), D[C] === P && (D[C] = S[C]);
|
|
396
396
|
}
|
|
397
397
|
g = D;
|
|
398
398
|
}
|
|
@@ -400,10 +400,10 @@ class fr extends Jr {
|
|
|
400
400
|
g = g.join(v), g && (g = this.extendTranslation(g, t, s, r));
|
|
401
401
|
else {
|
|
402
402
|
let Y = !1, D = !1;
|
|
403
|
-
!this.isValidLookup(g) && E && (Y = !0, g =
|
|
404
|
-
const
|
|
403
|
+
!this.isValidLookup(g) && E && (Y = !0, g = M), this.isValidLookup(g) || (D = !0, g = l);
|
|
404
|
+
const C = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && D ? void 0 : g, P = E && M !== g && this.options.updateMissing;
|
|
405
405
|
if (D || Y || P) {
|
|
406
|
-
if (this.logger.log(P ? "updateKey" : "missingKey", m, d, l, P ?
|
|
406
|
+
if (this.logger.log(P ? "updateKey" : "missingKey", m, d, l, P ? M : g), o) {
|
|
407
407
|
const L = this.resolve(l, {
|
|
408
408
|
...s,
|
|
409
409
|
keySeparator: !1
|
|
@@ -417,15 +417,15 @@ class fr extends Jr {
|
|
|
417
417
|
$.push(J[L]);
|
|
418
418
|
else this.options.saveMissingTo === "all" ? $ = this.languageUtils.toResolveHierarchy(s.lng || this.language) : $.push(s.lng || this.language);
|
|
419
419
|
const W = (L, N, Q) => {
|
|
420
|
-
const q = E && Q !== g ? Q :
|
|
420
|
+
const q = E && Q !== g ? Q : C;
|
|
421
421
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(L, d, N, q, P, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(L, d, N, q, P, s), this.emit("missingKey", L, d, N, g);
|
|
422
422
|
};
|
|
423
423
|
this.options.saveMissing && (this.options.saveMissingPlurals && Z ? $.forEach((L) => {
|
|
424
424
|
const N = this.pluralResolver.getSuffixes(L, s);
|
|
425
425
|
I && s[`defaultValue${this.options.pluralSeparator}zero`] && N.indexOf(`${this.options.pluralSeparator}zero`) < 0 && N.push(`${this.options.pluralSeparator}zero`), N.forEach((Q) => {
|
|
426
|
-
W([L], l + Q, s[`defaultValue${Q}`] ||
|
|
426
|
+
W([L], l + Q, s[`defaultValue${Q}`] || M);
|
|
427
427
|
});
|
|
428
|
-
}) : W($, l,
|
|
428
|
+
}) : W($, l, M));
|
|
429
429
|
}
|
|
430
430
|
g = this.extendTranslation(g, t, s, p, r), D && g === l && this.options.appendNamespaceToMissingKey && (g = `${d}${f}${l}`), (D || Y) && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}${f}${l}` : l, Y ? g : void 0, s));
|
|
431
431
|
}
|
|
@@ -11196,7 +11196,7 @@ function Sy() {
|
|
|
11196
11196
|
return L = L.displayName, L || (L = N.displayName || N.name || "", L = L !== "" ? "ForwardRef(" + L + ")" : "ForwardRef"), L;
|
|
11197
11197
|
case I:
|
|
11198
11198
|
return N = L.displayName || null, N !== null ? N : e(L.type) || "Memo";
|
|
11199
|
-
case
|
|
11199
|
+
case M:
|
|
11200
11200
|
N = L._payload, L = L._init;
|
|
11201
11201
|
try {
|
|
11202
11202
|
return e(L(N));
|
|
@@ -11227,7 +11227,7 @@ function Sy() {
|
|
|
11227
11227
|
}
|
|
11228
11228
|
function r(L) {
|
|
11229
11229
|
if (L === y) return "<>";
|
|
11230
|
-
if (typeof L == "object" && L !== null && L.$$typeof ===
|
|
11230
|
+
if (typeof L == "object" && L !== null && L.$$typeof === M)
|
|
11231
11231
|
return "<...>";
|
|
11232
11232
|
try {
|
|
11233
11233
|
var N = e(L);
|
|
@@ -11252,7 +11252,7 @@ function Sy() {
|
|
|
11252
11252
|
}
|
|
11253
11253
|
function l(L, N) {
|
|
11254
11254
|
function Q() {
|
|
11255
|
-
|
|
11255
|
+
C || (C = !0, console.error(
|
|
11256
11256
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
11257
11257
|
N
|
|
11258
11258
|
));
|
|
@@ -11350,12 +11350,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
11350
11350
|
);
|
|
11351
11351
|
}
|
|
11352
11352
|
function m(L) {
|
|
11353
|
-
h(L) ? L._store && (L._store.validated = 1) : typeof L == "object" && L !== null && L.$$typeof ===
|
|
11353
|
+
h(L) ? L._store && (L._store.validated = 1) : typeof L == "object" && L !== null && L.$$typeof === M && (L._payload.status === "fulfilled" ? h(L._payload.value) && L._payload.value._store && (L._payload.value._store.validated = 1) : L._store && (L._store.validated = 1));
|
|
11354
11354
|
}
|
|
11355
11355
|
function h(L) {
|
|
11356
11356
|
return typeof L == "object" && L !== null && L.$$typeof === g;
|
|
11357
11357
|
}
|
|
11358
|
-
var p = ge, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"), A = /* @__PURE__ */ Symbol.for("react.strict_mode"), v = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.consumer"), Z = /* @__PURE__ */ Symbol.for("react.context"), E = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"),
|
|
11358
|
+
var p = ge, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"), A = /* @__PURE__ */ Symbol.for("react.strict_mode"), v = /* @__PURE__ */ Symbol.for("react.profiler"), _ = /* @__PURE__ */ Symbol.for("react.consumer"), Z = /* @__PURE__ */ Symbol.for("react.context"), E = /* @__PURE__ */ Symbol.for("react.forward_ref"), w = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), I = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.activity"), j = /* @__PURE__ */ Symbol.for("react.client.reference"), R = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, D = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
11359
11359
|
return null;
|
|
11360
11360
|
};
|
|
11361
11361
|
p = {
|
|
@@ -11363,7 +11363,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
11363
11363
|
return L();
|
|
11364
11364
|
}
|
|
11365
11365
|
};
|
|
11366
|
-
var
|
|
11366
|
+
var C, P = {}, $ = p.react_stack_bottom_frame.bind(
|
|
11367
11367
|
p,
|
|
11368
11368
|
i
|
|
11369
11369
|
)(), J = V(r(i)), W = {};
|
|
@@ -11700,8 +11700,8 @@ async function y6(...e) {
|
|
|
11700
11700
|
I,
|
|
11701
11701
|
0
|
|
11702
11702
|
];
|
|
11703
|
-
const
|
|
11704
|
-
if (
|
|
11703
|
+
const M = !Ie(c), S = g(), j = S.data, R = S._c, Y = Ie(R) ? j : R;
|
|
11704
|
+
if (M && (c = C0(c) ? c(Y, j) : c, b({
|
|
11705
11705
|
data: c,
|
|
11706
11706
|
_c: Y
|
|
11707
11707
|
})), C0(E))
|
|
@@ -11716,7 +11716,7 @@ async function y6(...e) {
|
|
|
11716
11716
|
}), I !== A[p][0]) {
|
|
11717
11717
|
if (x) throw w;
|
|
11718
11718
|
return E;
|
|
11719
|
-
} else x &&
|
|
11719
|
+
} else x && M && d(w) && (o = !0, b({
|
|
11720
11720
|
data: Y,
|
|
11721
11721
|
_c: Mt
|
|
11722
11722
|
}));
|
|
@@ -11883,7 +11883,7 @@ const si = ge.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
11883
11883
|
}), ii = {
|
|
11884
11884
|
dedupe: !0
|
|
11885
11885
|
}, w8 = Promise.resolve(Mt), pv = () => X0, hv = (e, t, a) => {
|
|
11886
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: l, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: m, keepPreviousData: h, strictServerPrefetchWarning: p } = a, [g, b, y, A] = z0.get(r), [v, _] = Uo(e), Z = te(!1), E = te(!1), w = te(v), x = te(t), I = te(a),
|
|
11886
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: l, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: m, keepPreviousData: h, strictServerPrefetchWarning: p } = a, [g, b, y, A] = z0.get(r), [v, _] = Uo(e), Z = te(!1), E = te(!1), w = te(v), x = te(t), I = te(a), M = () => I.current, S = () => M().isVisible() && M().isOnline(), [j, R, Y, D] = b6(r, v), V = te({}).current, C = Ie(o) ? Ie(a.fallback) ? Mt : a.fallback[v] : o, P = (Me, Ae) => {
|
|
11887
11887
|
for (const Ve in V) {
|
|
11888
11888
|
const Ee = Ve;
|
|
11889
11889
|
if (Ee === "data") {
|
|
@@ -11897,9 +11897,9 @@ const si = ge.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
11897
11897
|
const Me = j(), Ae = D(), Ve = (Se) => {
|
|
11898
11898
|
const yt = p1(Se);
|
|
11899
11899
|
return delete yt._k, (() => {
|
|
11900
|
-
if (!v || !t ||
|
|
11900
|
+
if (!v || !t || M().isPaused()) return !1;
|
|
11901
11901
|
if ($ && !Ie(l)) return l;
|
|
11902
|
-
const pt = Ie(
|
|
11902
|
+
const pt = Ie(C) ? yt.data : C;
|
|
11903
11903
|
return Ie(pt) || c;
|
|
11904
11904
|
})() ? {
|
|
11905
11905
|
isValidating: !0,
|
|
@@ -11927,16 +11927,16 @@ const si = ge.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
11927
11927
|
r,
|
|
11928
11928
|
v
|
|
11929
11929
|
]
|
|
11930
|
-
), J[0], J[1]), L = g[v] && g[v].length > 0, N = W.data, Q = Ie(N) ?
|
|
11930
|
+
), J[0], J[1]), L = g[v] && g[v].length > 0, N = W.data, Q = Ie(N) ? C && g6(C) ? si(C) : C : N, q = W.error, ve = te(Q), de = h ? Ie(N) ? Ie(ve.current) ? Q : ve.current : N : Q, oe = v && Ie(Q), we = te(null);
|
|
11931
11931
|
!ta && // getServerSnapshot is only called during hydration
|
|
11932
11932
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11933
11933
|
Xi.useSyncExternalStore(pv, () => (we.current = !1, we), () => (we.current = !0, we));
|
|
11934
11934
|
const Je = we.current;
|
|
11935
11935
|
p && Je && !i && oe && console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
|
|
11936
|
-
const $e = !v || !t ||
|
|
11936
|
+
const $e = !v || !t || M().isPaused() || L && !Ie(q) ? !1 : $ && !Ie(l) ? l : i ? Ie(Q) ? !1 : c : Ie(Q) || c, Re = Ie(W.isValidating) ? $e : W.isValidating, X = Ie(W.isLoading) ? $e : W.isLoading, Ke = ee(
|
|
11937
11937
|
async (Me) => {
|
|
11938
11938
|
const Ae = x.current;
|
|
11939
|
-
if (!v || !Ae || E.current ||
|
|
11939
|
+
if (!v || !Ae || E.current || M().isPaused())
|
|
11940
11940
|
return !1;
|
|
11941
11941
|
let Ve, Ee, Ce = !0;
|
|
11942
11942
|
const _e = Me || {}, Se = !y[v] || !_e.dedupe, yt = () => x8 ? !E.current && v === w.current && Z.current : v === w.current, Pt = {
|
|
@@ -11953,25 +11953,25 @@ const si = ge.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
11953
11953
|
Ie(j().data) && (y0.isLoading = !0);
|
|
11954
11954
|
try {
|
|
11955
11955
|
if (Se && (R(y0), a.loadingTimeout && Ie(j().data) && setTimeout(() => {
|
|
11956
|
-
Ce && yt() &&
|
|
11956
|
+
Ce && yt() && M().onLoadingSlow(v, a);
|
|
11957
11957
|
}, a.loadingTimeout), y[v] = [
|
|
11958
11958
|
Ae(_),
|
|
11959
11959
|
to()
|
|
11960
11960
|
]), [Ve, Ee] = y[v], Ve = await Ve, Se && setTimeout(o0, a.dedupingInterval), !y[v] || y[v][1] !== Ee)
|
|
11961
|
-
return Se && yt() &&
|
|
11961
|
+
return Se && yt() && M().onDiscarded(v), !1;
|
|
11962
11962
|
Pt.error = Mt;
|
|
11963
11963
|
const rt = b[v];
|
|
11964
11964
|
if (!Ie(rt) && // case 1
|
|
11965
11965
|
(Ee <= rt[0] || // case 2
|
|
11966
11966
|
Ee <= rt[1] || // case 3
|
|
11967
11967
|
rt[1] === 0))
|
|
11968
|
-
return pt(), Se && yt() &&
|
|
11968
|
+
return pt(), Se && yt() && M().onDiscarded(v), !1;
|
|
11969
11969
|
const Et = j().data;
|
|
11970
|
-
Pt.data = s(Et, Ve) ? Et : Ve, Se && yt() &&
|
|
11970
|
+
Pt.data = s(Et, Ve) ? Et : Ve, Se && yt() && M().onSuccess(Ve, v, a);
|
|
11971
11971
|
} catch (rt) {
|
|
11972
11972
|
o0();
|
|
11973
|
-
const Et =
|
|
11974
|
-
Et.isPaused() || (Pt.error = rt, Se && yt() && (Et.onError(rt, v, Et), (Gt === !0 || C0(Gt) && Gt(rt)) && (!
|
|
11973
|
+
const Et = M(), { shouldRetryOnError: Gt } = Et;
|
|
11974
|
+
Et.isPaused() || (Pt.error = rt, Se && yt() && (Et.onError(rt, v, Et), (Gt === !0 || C0(Gt) && Gt(rt)) && (!M().revalidateOnFocus || !M().revalidateOnReconnect || S()) && Et.onErrorRetry(rt, v, Et, (v0) => {
|
|
11975
11975
|
const A0 = g[v];
|
|
11976
11976
|
A0 && A0[0] && A0[0](A8, v0);
|
|
11977
11977
|
}, {
|
|
@@ -12008,13 +12008,13 @@ const si = ge.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
12008
12008
|
if (!v) return;
|
|
12009
12009
|
const Me = Ke.bind(Mt, ii);
|
|
12010
12010
|
let Ae = 0;
|
|
12011
|
-
|
|
12011
|
+
M().revalidateOnFocus && (Ae = Date.now() + M().focusThrottleInterval);
|
|
12012
12012
|
const Ee = fv(v, g, (Ce, _e = {}) => {
|
|
12013
12013
|
if (Ce == f6) {
|
|
12014
12014
|
const Se = Date.now();
|
|
12015
|
-
|
|
12015
|
+
M().revalidateOnFocus && Se > Ae && S() && (Ae = Se + M().focusThrottleInterval, Me());
|
|
12016
12016
|
} else if (Ce == p6)
|
|
12017
|
-
|
|
12017
|
+
M().revalidateOnReconnect && S() && Me();
|
|
12018
12018
|
else {
|
|
12019
12019
|
if (Ce == h6)
|
|
12020
12020
|
return Ke();
|
|
@@ -12036,7 +12036,7 @@ const si = ge.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
12036
12036
|
Ee && Me !== -1 && (Me = setTimeout(Ve, Ee));
|
|
12037
12037
|
}
|
|
12038
12038
|
function Ve() {
|
|
12039
|
-
!j().error && (f ||
|
|
12039
|
+
!j().error && (f || M().isVisible()) && (m || M().isOnline()) ? Ke(ii).then(Ae) : Ae();
|
|
12040
12040
|
}
|
|
12041
12041
|
return Ae(), () => {
|
|
12042
12042
|
Me && (clearTimeout(Me), Me = -1);
|
|
@@ -17962,8 +17962,8 @@ function g2(e, t, a) {
|
|
|
17962
17962
|
return d = w, l = setTimeout(A, t), f ? p(w) : o;
|
|
17963
17963
|
}
|
|
17964
17964
|
function b(w) {
|
|
17965
|
-
var x = w - c, I = w - d,
|
|
17966
|
-
return m ? SZ(
|
|
17965
|
+
var x = w - c, I = w - d, M = t - x;
|
|
17966
|
+
return m ? SZ(M, i - I) : M;
|
|
17967
17967
|
}
|
|
17968
17968
|
function y(w) {
|
|
17969
17969
|
var x = w - c, I = w - d;
|
|
@@ -18251,7 +18251,7 @@ const XZ = (e) => {
|
|
|
18251
18251
|
}, b = (A, v, _) => {
|
|
18252
18252
|
const Z = Y1(A);
|
|
18253
18253
|
return Y1(v).reduce((w, x, I) => {
|
|
18254
|
-
const
|
|
18254
|
+
const M = x.children?.[0]?.content && r.services.interpolator.interpolate(x.children[0].content, h, r.language);
|
|
18255
18255
|
if (x.type === "tag") {
|
|
18256
18256
|
let S = Z[parseInt(x.name, 10)];
|
|
18257
18257
|
!S && t && (S = t[x.name]), _.length === 1 && !S && (S = _[0][x.name]), S || (S = {});
|
|
@@ -18259,40 +18259,40 @@ const XZ = (e) => {
|
|
|
18259
18259
|
props: x.attrs
|
|
18260
18260
|
}, S) : S, R = Ct(j), Y = R && ui(x, !0) && !x.voidElement, D = c && o1(j) && j.dummy && !R, V = o1(t) && Object.hasOwnProperty.call(t, x.name);
|
|
18261
18261
|
if (a0(j)) {
|
|
18262
|
-
const
|
|
18263
|
-
w.push(
|
|
18262
|
+
const C = r.services.interpolator.interpolate(j, h, r.language);
|
|
18263
|
+
w.push(C);
|
|
18264
18264
|
} else if (ui(j) || Y) {
|
|
18265
|
-
const
|
|
18266
|
-
g(j,
|
|
18265
|
+
const C = p(j, x, _);
|
|
18266
|
+
g(j, C, w, I);
|
|
18267
18267
|
} else if (D) {
|
|
18268
|
-
const
|
|
18269
|
-
g(j,
|
|
18268
|
+
const C = b(Z, x.children, _);
|
|
18269
|
+
g(j, C, w, I);
|
|
18270
18270
|
} else if (Number.isNaN(parseFloat(x.name)))
|
|
18271
18271
|
if (V) {
|
|
18272
|
-
const
|
|
18273
|
-
g(j,
|
|
18272
|
+
const C = p(j, x, _);
|
|
18273
|
+
g(j, C, w, I, x.voidElement);
|
|
18274
18274
|
} else if (s.transSupportBasicHtmlNodes && l.indexOf(x.name) > -1)
|
|
18275
18275
|
if (x.voidElement)
|
|
18276
18276
|
w.push(W0(x.name, {
|
|
18277
18277
|
key: `${x.name}-${I}`
|
|
18278
18278
|
}));
|
|
18279
18279
|
else {
|
|
18280
|
-
const
|
|
18280
|
+
const C = b(Z, x.children, _);
|
|
18281
18281
|
w.push(W0(x.name, {
|
|
18282
18282
|
key: `${x.name}-${I}`
|
|
18283
|
-
},
|
|
18283
|
+
}, C));
|
|
18284
18284
|
}
|
|
18285
18285
|
else if (x.voidElement)
|
|
18286
18286
|
w.push(`<${x.name} />`);
|
|
18287
18287
|
else {
|
|
18288
|
-
const
|
|
18289
|
-
w.push(`<${x.name}>${
|
|
18288
|
+
const C = b(Z, x.children, _);
|
|
18289
|
+
w.push(`<${x.name}>${C}</${x.name}>`);
|
|
18290
18290
|
}
|
|
18291
18291
|
else if (o1(j) && !R) {
|
|
18292
|
-
const
|
|
18293
|
-
|
|
18292
|
+
const C = x.children[0] ? M : null;
|
|
18293
|
+
C && w.push(C);
|
|
18294
18294
|
} else
|
|
18295
|
-
g(j,
|
|
18295
|
+
g(j, M, w, I, x.children.length !== 1 || !M);
|
|
18296
18296
|
} else if (x.type === "text") {
|
|
18297
18297
|
const S = s.transWrapTextNodes, j = o ? s.unescape(r.services.interpolator.interpolate(x.content, h, r.language)) : r.services.interpolator.interpolate(x.content, h, r.language);
|
|
18298
18298
|
S ? w.push(W0(S, {
|
|
@@ -18378,9 +18378,9 @@ function tw({
|
|
|
18378
18378
|
...w,
|
|
18379
18379
|
defaultValue: _,
|
|
18380
18380
|
ns: A
|
|
18381
|
-
}, I = E ? b(E, x) : _,
|
|
18382
|
-
let S =
|
|
18383
|
-
ew(
|
|
18381
|
+
}, I = E ? b(E, x) : _, M = KZ(c, I, g, r);
|
|
18382
|
+
let S = M || e, j = null;
|
|
18383
|
+
ew(M) && (j = M, S = e);
|
|
18384
18384
|
const R = JZ(S, j, I, g, y, x, h), Y = a ?? y.defaultTransParent;
|
|
18385
18385
|
return Y ? W0(Y, p, R) : R;
|
|
18386
18386
|
}
|
|
@@ -19545,13 +19545,13 @@ const us = Ue(
|
|
|
19545
19545
|
{
|
|
19546
19546
|
className: k(
|
|
19547
19547
|
"rounded font-medium w-full px-11 transition placeholder:text-gray-400",
|
|
19548
|
-
"
|
|
19548
|
+
"ring-0 outline-0",
|
|
19549
19549
|
"focus:caret-primary focus:bg-white",
|
|
19550
19550
|
{
|
|
19551
|
-
"bg-gray-100 border-0 py-2": d !== "outline",
|
|
19551
|
+
"bg-gray-100 border-0 shadow-none py-2": d !== "outline",
|
|
19552
19552
|
// default variant
|
|
19553
|
-
"bg-white
|
|
19554
|
-
// outline variant
|
|
19553
|
+
"bg-white text-sm py-1.5 shadow-[inset_0_0_0_1px_rgb(229,229,229)]": d === "outline",
|
|
19554
|
+
// outline variant with explicit inset box-shadow border
|
|
19555
19555
|
"animate-pulse bg-gray-50! placeholder:text-gray-50": l === !0
|
|
19556
19556
|
}
|
|
19557
19557
|
),
|
|
@@ -19640,7 +19640,8 @@ const Vm = {
|
|
|
19640
19640
|
isInDashboard: !1,
|
|
19641
19641
|
dashboardUrl: "https://dashboard.commercelayer.io/"
|
|
19642
19642
|
},
|
|
19643
|
-
user: null
|
|
19643
|
+
user: null,
|
|
19644
|
+
role: null
|
|
19644
19645
|
}, xw = (e, t) => {
|
|
19645
19646
|
switch (t.type) {
|
|
19646
19647
|
case "invalidAuth":
|
|
@@ -19745,56 +19746,56 @@ function Ew() {
|
|
|
19745
19746
|
return typeof V != "string" && (V = String(V)), V;
|
|
19746
19747
|
}
|
|
19747
19748
|
function g(V) {
|
|
19748
|
-
var
|
|
19749
|
+
var C = {
|
|
19749
19750
|
next: function() {
|
|
19750
19751
|
var P = V.shift();
|
|
19751
19752
|
return { done: P === void 0, value: P };
|
|
19752
19753
|
}
|
|
19753
19754
|
};
|
|
19754
|
-
return c.iterable && (
|
|
19755
|
-
return
|
|
19756
|
-
}),
|
|
19755
|
+
return c.iterable && (C[Symbol.iterator] = function() {
|
|
19756
|
+
return C;
|
|
19757
|
+
}), C;
|
|
19757
19758
|
}
|
|
19758
19759
|
function b(V) {
|
|
19759
|
-
this.map = {}, V instanceof b ? V.forEach(function(
|
|
19760
|
-
this.append(P,
|
|
19761
|
-
}, this) : Array.isArray(V) ? V.forEach(function(
|
|
19762
|
-
if (
|
|
19763
|
-
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" +
|
|
19764
|
-
this.append(
|
|
19765
|
-
}, this) : V && Object.getOwnPropertyNames(V).forEach(function(
|
|
19766
|
-
this.append(
|
|
19760
|
+
this.map = {}, V instanceof b ? V.forEach(function(C, P) {
|
|
19761
|
+
this.append(P, C);
|
|
19762
|
+
}, this) : Array.isArray(V) ? V.forEach(function(C) {
|
|
19763
|
+
if (C.length != 2)
|
|
19764
|
+
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + C.length);
|
|
19765
|
+
this.append(C[0], C[1]);
|
|
19766
|
+
}, this) : V && Object.getOwnPropertyNames(V).forEach(function(C) {
|
|
19767
|
+
this.append(C, V[C]);
|
|
19767
19768
|
}, this);
|
|
19768
19769
|
}
|
|
19769
|
-
b.prototype.append = function(V,
|
|
19770
|
-
V = h(V),
|
|
19770
|
+
b.prototype.append = function(V, C) {
|
|
19771
|
+
V = h(V), C = p(C);
|
|
19771
19772
|
var P = this.map[V];
|
|
19772
|
-
this.map[V] = P ? P + ", " +
|
|
19773
|
+
this.map[V] = P ? P + ", " + C : C;
|
|
19773
19774
|
}, b.prototype.delete = function(V) {
|
|
19774
19775
|
delete this.map[h(V)];
|
|
19775
19776
|
}, b.prototype.get = function(V) {
|
|
19776
19777
|
return V = h(V), this.has(V) ? this.map[V] : null;
|
|
19777
19778
|
}, b.prototype.has = function(V) {
|
|
19778
19779
|
return this.map.hasOwnProperty(h(V));
|
|
19779
|
-
}, b.prototype.set = function(V,
|
|
19780
|
-
this.map[h(V)] = p(
|
|
19781
|
-
}, b.prototype.forEach = function(V,
|
|
19780
|
+
}, b.prototype.set = function(V, C) {
|
|
19781
|
+
this.map[h(V)] = p(C);
|
|
19782
|
+
}, b.prototype.forEach = function(V, C) {
|
|
19782
19783
|
for (var P in this.map)
|
|
19783
|
-
this.map.hasOwnProperty(P) && V.call(
|
|
19784
|
+
this.map.hasOwnProperty(P) && V.call(C, this.map[P], P, this);
|
|
19784
19785
|
}, b.prototype.keys = function() {
|
|
19785
19786
|
var V = [];
|
|
19786
|
-
return this.forEach(function(
|
|
19787
|
+
return this.forEach(function(C, P) {
|
|
19787
19788
|
V.push(P);
|
|
19788
19789
|
}), g(V);
|
|
19789
19790
|
}, b.prototype.values = function() {
|
|
19790
19791
|
var V = [];
|
|
19791
|
-
return this.forEach(function(
|
|
19792
|
-
V.push(
|
|
19792
|
+
return this.forEach(function(C) {
|
|
19793
|
+
V.push(C);
|
|
19793
19794
|
}), g(V);
|
|
19794
19795
|
}, b.prototype.entries = function() {
|
|
19795
19796
|
var V = [];
|
|
19796
|
-
return this.forEach(function(
|
|
19797
|
-
V.push([P,
|
|
19797
|
+
return this.forEach(function(C, P) {
|
|
19798
|
+
V.push([P, C]);
|
|
19798
19799
|
}), g(V);
|
|
19799
19800
|
}, c.iterable && (b.prototype[Symbol.iterator] = b.prototype.entries);
|
|
19800
19801
|
function y(V) {
|
|
@@ -19805,32 +19806,32 @@ function Ew() {
|
|
|
19805
19806
|
}
|
|
19806
19807
|
}
|
|
19807
19808
|
function A(V) {
|
|
19808
|
-
return new Promise(function(
|
|
19809
|
+
return new Promise(function(C, P) {
|
|
19809
19810
|
V.onload = function() {
|
|
19810
|
-
|
|
19811
|
+
C(V.result);
|
|
19811
19812
|
}, V.onerror = function() {
|
|
19812
19813
|
P(V.error);
|
|
19813
19814
|
};
|
|
19814
19815
|
});
|
|
19815
19816
|
}
|
|
19816
19817
|
function v(V) {
|
|
19817
|
-
var
|
|
19818
|
-
return
|
|
19818
|
+
var C = new FileReader(), P = A(C);
|
|
19819
|
+
return C.readAsArrayBuffer(V), P;
|
|
19819
19820
|
}
|
|
19820
19821
|
function _(V) {
|
|
19821
|
-
var
|
|
19822
|
-
return
|
|
19822
|
+
var C = new FileReader(), P = A(C), $ = /charset=([A-Za-z0-9_-]+)/.exec(V.type), J = $ ? $[1] : "utf-8";
|
|
19823
|
+
return C.readAsText(V, J), P;
|
|
19823
19824
|
}
|
|
19824
19825
|
function Z(V) {
|
|
19825
|
-
for (var
|
|
19826
|
-
P[$] = String.fromCharCode(
|
|
19826
|
+
for (var C = new Uint8Array(V), P = new Array(C.length), $ = 0; $ < C.length; $++)
|
|
19827
|
+
P[$] = String.fromCharCode(C[$]);
|
|
19827
19828
|
return P.join("");
|
|
19828
19829
|
}
|
|
19829
19830
|
function E(V) {
|
|
19830
19831
|
if (V.slice)
|
|
19831
19832
|
return V.slice(0);
|
|
19832
|
-
var
|
|
19833
|
-
return
|
|
19833
|
+
var C = new Uint8Array(V.byteLength);
|
|
19834
|
+
return C.set(new Uint8Array(V)), C.buffer;
|
|
19834
19835
|
}
|
|
19835
19836
|
function w() {
|
|
19836
19837
|
return this.bodyUsed = !1, this._initBody = function(V) {
|
|
@@ -19879,28 +19880,28 @@ function Ew() {
|
|
|
19879
19880
|
}
|
|
19880
19881
|
var x = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
19881
19882
|
function I(V) {
|
|
19882
|
-
var
|
|
19883
|
-
return x.indexOf(
|
|
19883
|
+
var C = V.toUpperCase();
|
|
19884
|
+
return x.indexOf(C) > -1 ? C : V;
|
|
19884
19885
|
}
|
|
19885
|
-
function
|
|
19886
|
-
if (!(this instanceof
|
|
19886
|
+
function M(V, C) {
|
|
19887
|
+
if (!(this instanceof M))
|
|
19887
19888
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
19888
|
-
|
|
19889
|
-
var P =
|
|
19890
|
-
if (V instanceof
|
|
19889
|
+
C = C || {};
|
|
19890
|
+
var P = C.body;
|
|
19891
|
+
if (V instanceof M) {
|
|
19891
19892
|
if (V.bodyUsed)
|
|
19892
19893
|
throw new TypeError("Already read");
|
|
19893
|
-
this.url = V.url, this.credentials = V.credentials,
|
|
19894
|
+
this.url = V.url, this.credentials = V.credentials, C.headers || (this.headers = new b(V.headers)), this.method = V.method, this.mode = V.mode, this.signal = V.signal, !P && V._bodyInit != null && (P = V._bodyInit, V.bodyUsed = !0);
|
|
19894
19895
|
} else
|
|
19895
19896
|
this.url = String(V);
|
|
19896
|
-
if (this.credentials =
|
|
19897
|
+
if (this.credentials = C.credentials || this.credentials || "same-origin", (C.headers || !this.headers) && (this.headers = new b(C.headers)), this.method = I(C.method || this.method || "GET"), this.mode = C.mode || this.mode || null, this.signal = C.signal || this.signal || (function() {
|
|
19897
19898
|
if ("AbortController" in l) {
|
|
19898
19899
|
var W = new AbortController();
|
|
19899
19900
|
return W.signal;
|
|
19900
19901
|
}
|
|
19901
19902
|
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && P)
|
|
19902
19903
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
19903
|
-
if (this._initBody(P), (this.method === "GET" || this.method === "HEAD") && (
|
|
19904
|
+
if (this._initBody(P), (this.method === "GET" || this.method === "HEAD") && (C.cache === "no-store" || C.cache === "no-cache")) {
|
|
19904
19905
|
var $ = /([?&])_=[^&]*/;
|
|
19905
19906
|
if ($.test(this.url))
|
|
19906
19907
|
this.url = this.url.replace($, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -19910,20 +19911,20 @@ function Ew() {
|
|
|
19910
19911
|
}
|
|
19911
19912
|
}
|
|
19912
19913
|
}
|
|
19913
|
-
|
|
19914
|
-
return new
|
|
19914
|
+
M.prototype.clone = function() {
|
|
19915
|
+
return new M(this, { body: this._bodyInit });
|
|
19915
19916
|
};
|
|
19916
19917
|
function S(V) {
|
|
19917
|
-
var
|
|
19918
|
+
var C = new FormData();
|
|
19918
19919
|
return V.trim().split("&").forEach(function(P) {
|
|
19919
19920
|
if (P) {
|
|
19920
19921
|
var $ = P.split("="), J = $.shift().replace(/\+/g, " "), W = $.join("=").replace(/\+/g, " ");
|
|
19921
|
-
|
|
19922
|
+
C.append(decodeURIComponent(J), decodeURIComponent(W));
|
|
19922
19923
|
}
|
|
19923
|
-
}),
|
|
19924
|
+
}), C;
|
|
19924
19925
|
}
|
|
19925
19926
|
function j(V) {
|
|
19926
|
-
var
|
|
19927
|
+
var C = new b(), P = V.replace(/\r?\n[\t ]+/g, " ");
|
|
19927
19928
|
return P.split("\r").map(function($) {
|
|
19928
19929
|
return $.indexOf(`
|
|
19929
19930
|
`) === 0 ? $.substr(1, $.length) : $;
|
|
@@ -19932,20 +19933,20 @@ function Ew() {
|
|
|
19932
19933
|
if (W) {
|
|
19933
19934
|
var L = J.join(":").trim();
|
|
19934
19935
|
try {
|
|
19935
|
-
|
|
19936
|
+
C.append(W, L);
|
|
19936
19937
|
} catch (N) {
|
|
19937
19938
|
console.warn("Response " + N.message);
|
|
19938
19939
|
}
|
|
19939
19940
|
}
|
|
19940
|
-
}),
|
|
19941
|
+
}), C;
|
|
19941
19942
|
}
|
|
19942
|
-
w.call(
|
|
19943
|
-
function R(V,
|
|
19943
|
+
w.call(M.prototype);
|
|
19944
|
+
function R(V, C) {
|
|
19944
19945
|
if (!(this instanceof R))
|
|
19945
19946
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
19946
|
-
if (
|
|
19947
|
+
if (C || (C = {}), this.type = "default", this.status = C.status === void 0 ? 200 : C.status, this.status < 200 || this.status > 599)
|
|
19947
19948
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
19948
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText =
|
|
19949
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = C.statusText === void 0 ? "" : "" + C.statusText, this.headers = new b(C.headers), this.url = C.url || "", this._initBody(V);
|
|
19949
19950
|
}
|
|
19950
19951
|
w.call(R.prototype), R.prototype.clone = function() {
|
|
19951
19952
|
return new R(this._bodyInit, {
|
|
@@ -19959,23 +19960,23 @@ function Ew() {
|
|
|
19959
19960
|
return V.ok = !1, V.status = 0, V.type = "error", V;
|
|
19960
19961
|
};
|
|
19961
19962
|
var Y = [301, 302, 303, 307, 308];
|
|
19962
|
-
R.redirect = function(V,
|
|
19963
|
-
if (Y.indexOf(
|
|
19963
|
+
R.redirect = function(V, C) {
|
|
19964
|
+
if (Y.indexOf(C) === -1)
|
|
19964
19965
|
throw new RangeError("Invalid status code");
|
|
19965
|
-
return new R(null, { status:
|
|
19966
|
+
return new R(null, { status: C, headers: { location: V } });
|
|
19966
19967
|
}, o.DOMException = l.DOMException;
|
|
19967
19968
|
try {
|
|
19968
19969
|
new o.DOMException();
|
|
19969
19970
|
} catch {
|
|
19970
|
-
o.DOMException = function(
|
|
19971
|
-
this.message =
|
|
19972
|
-
var $ = Error(
|
|
19971
|
+
o.DOMException = function(C, P) {
|
|
19972
|
+
this.message = C, this.name = P;
|
|
19973
|
+
var $ = Error(C);
|
|
19973
19974
|
this.stack = $.stack;
|
|
19974
19975
|
}, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
|
|
19975
19976
|
}
|
|
19976
|
-
function D(V,
|
|
19977
|
+
function D(V, C) {
|
|
19977
19978
|
return new Promise(function(P, $) {
|
|
19978
|
-
var J = new
|
|
19979
|
+
var J = new M(V, C);
|
|
19979
19980
|
if (J.signal && J.signal.aborted)
|
|
19980
19981
|
return $(new o.DOMException("Aborted", "AbortError"));
|
|
19981
19982
|
var W = new XMLHttpRequest();
|
|
@@ -20012,10 +20013,10 @@ function Ew() {
|
|
|
20012
20013
|
return q;
|
|
20013
20014
|
}
|
|
20014
20015
|
}
|
|
20015
|
-
if (W.open(J.method, N(J.url), !0), J.credentials === "include" ? W.withCredentials = !0 : J.credentials === "omit" && (W.withCredentials = !1), "responseType" in W && (c.blob ? W.responseType = "blob" : c.arrayBuffer && (W.responseType = "arraybuffer")),
|
|
20016
|
+
if (W.open(J.method, N(J.url), !0), J.credentials === "include" ? W.withCredentials = !0 : J.credentials === "omit" && (W.withCredentials = !1), "responseType" in W && (c.blob ? W.responseType = "blob" : c.arrayBuffer && (W.responseType = "arraybuffer")), C && typeof C.headers == "object" && !(C.headers instanceof b || l.Headers && C.headers instanceof l.Headers)) {
|
|
20016
20017
|
var Q = [];
|
|
20017
|
-
Object.getOwnPropertyNames(
|
|
20018
|
-
Q.push(h(q)), W.setRequestHeader(q, p(
|
|
20018
|
+
Object.getOwnPropertyNames(C.headers).forEach(function(q) {
|
|
20019
|
+
Q.push(h(q)), W.setRequestHeader(q, p(C.headers[q]));
|
|
20019
20020
|
}), J.headers.forEach(function(q, ve) {
|
|
20020
20021
|
Q.indexOf(ve) === -1 && W.setRequestHeader(ve, q);
|
|
20021
20022
|
});
|
|
@@ -20028,7 +20029,7 @@ function Ew() {
|
|
|
20028
20029
|
}), W.send(typeof J._bodyInit > "u" ? null : J._bodyInit);
|
|
20029
20030
|
});
|
|
20030
20031
|
}
|
|
20031
|
-
return D.polyfill = !0, l.fetch || (l.fetch = D, l.Headers = b, l.Request =
|
|
20032
|
+
return D.polyfill = !0, l.fetch || (l.fetch = D, l.Headers = b, l.Request = M, l.Response = R), o.Headers = b, o.Request = M, o.Response = R, o.fetch = D, o;
|
|
20032
20033
|
})({});
|
|
20033
20034
|
})(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
|
|
20034
20035
|
var s = a.fetch ? a : r;
|
|
@@ -20065,6 +20066,11 @@ async function Hw({
|
|
|
20065
20066
|
permissions: {},
|
|
20066
20067
|
token: {
|
|
20067
20068
|
test: i.mode !== "live"
|
|
20069
|
+
},
|
|
20070
|
+
role: {
|
|
20071
|
+
id: "integration",
|
|
20072
|
+
kind: "admin",
|
|
20073
|
+
name: "Admin"
|
|
20068
20074
|
}
|
|
20069
20075
|
} : await Mw({
|
|
20070
20076
|
accessToken: e,
|
|
@@ -20104,7 +20110,8 @@ async function Hw({
|
|
|
20104
20110
|
locale: "en-US"
|
|
20105
20111
|
// setting a default for now, then this will probably arrive from tokenInfo.owner.locale
|
|
20106
20112
|
} : null,
|
|
20107
|
-
scopes: i.scopes
|
|
20113
|
+
scopes: i.scopes,
|
|
20114
|
+
role: o?.role ?? null
|
|
20108
20115
|
};
|
|
20109
20116
|
} catch {
|
|
20110
20117
|
return {
|
|
@@ -20151,7 +20158,8 @@ const Mm = Q0({
|
|
|
20151
20158
|
emitInvalidAuth: () => {
|
|
20152
20159
|
},
|
|
20153
20160
|
settings: Vm.settings,
|
|
20154
|
-
user: null
|
|
20161
|
+
user: null,
|
|
20162
|
+
role: null
|
|
20155
20163
|
}), Ye = () => R0(Mm), Iw = ({
|
|
20156
20164
|
kind: e,
|
|
20157
20165
|
appSlug: t,
|
|
@@ -20174,13 +20182,13 @@ const Mm = Q0({
|
|
|
20174
20182
|
})), y = Cy() ?? (i?.getEncodedExtra != null ? i?.getEncodedExtra() : J8({ appSlug: t, organizationSlug: s, itemType: "extras" })), A = h ?? My(y), v = b != null ? E6(b) : null, _ = Hv(v), Z = Vv({
|
|
20175
20183
|
domain: _,
|
|
20176
20184
|
accessToken: b
|
|
20177
|
-
}), E = ee((
|
|
20178
|
-
g({ type: "invalidAuth" }), o?.({ dashboardUrl: Z, reason:
|
|
20185
|
+
}), E = ee((M) => {
|
|
20186
|
+
g({ type: "invalidAuth" }), o?.({ dashboardUrl: Z, reason: M });
|
|
20179
20187
|
}, []), w = ee(
|
|
20180
|
-
(
|
|
20188
|
+
(M, S) => e === "integration" ? !0 : !!p.rolePermissions?.[S]?.[M],
|
|
20181
20189
|
[p.rolePermissions]
|
|
20182
20190
|
), x = ee(
|
|
20183
|
-
(
|
|
20191
|
+
(M) => e === "integration" ? !0 : p.accessibleApps.includes(M),
|
|
20184
20192
|
[p.accessibleApps]
|
|
20185
20193
|
);
|
|
20186
20194
|
O(
|
|
@@ -20241,7 +20249,8 @@ const Mm = Q0({
|
|
|
20241
20249
|
},
|
|
20242
20250
|
user: S.user ?? j,
|
|
20243
20251
|
rolePermissions: S.permissions ?? {},
|
|
20244
|
-
accessibleApps: S.accessibleApps ?? []
|
|
20252
|
+
accessibleApps: S.accessibleApps ?? [],
|
|
20253
|
+
role: S.role
|
|
20245
20254
|
}
|
|
20246
20255
|
});
|
|
20247
20256
|
})();
|
|
@@ -20251,6 +20260,7 @@ const Mm = Q0({
|
|
|
20251
20260
|
const I = {
|
|
20252
20261
|
settings: p.settings,
|
|
20253
20262
|
user: p.user,
|
|
20263
|
+
role: p.role,
|
|
20254
20264
|
canUser: w,
|
|
20255
20265
|
canAccess: x,
|
|
20256
20266
|
emitInvalidAuth: E
|
|
@@ -21479,19 +21489,19 @@ function Bm(e, t) {
|
|
|
21479
21489
|
return e.Uri.parse(t);
|
|
21480
21490
|
}
|
|
21481
21491
|
function sH({ original: e, modified: t, language: a, originalLanguage: r, modifiedLanguage: s, originalModelPath: i, modifiedModelPath: o, keepCurrentOriginalModel: l = !1, keepCurrentModifiedModel: c = !1, theme: d = "light", loading: f = "Loading...", options: m = {}, height: h = "100%", width: p = "100%", className: g, wrapperProps: b = {}, beforeMount: y = Ya, onMount: A = Ya }) {
|
|
21482
|
-
let [v, _] = B(!1), [Z, E] = B(!0), w = te(null), x = te(null), I = te(null),
|
|
21492
|
+
let [v, _] = B(!1), [Z, E] = B(!0), w = te(null), x = te(null), I = te(null), M = te(A), S = te(y), j = te(!1);
|
|
21483
21493
|
Z2(() => {
|
|
21484
21494
|
let V = Sr.init();
|
|
21485
|
-
return V.then((
|
|
21495
|
+
return V.then((C) => (x.current = C) && E(!1)).catch((C) => C?.type !== "cancelation" && console.error("Monaco initialization: error:", C)), () => w.current ? D() : V.cancel();
|
|
21486
21496
|
}), Ut(() => {
|
|
21487
21497
|
if (w.current && x.current) {
|
|
21488
|
-
let V = w.current.getOriginalEditor(),
|
|
21489
|
-
|
|
21498
|
+
let V = w.current.getOriginalEditor(), C = U1(x.current, e || "", r || a || "text", i || "");
|
|
21499
|
+
C !== V.getModel() && V.setModel(C);
|
|
21490
21500
|
}
|
|
21491
21501
|
}, [i], v), Ut(() => {
|
|
21492
21502
|
if (w.current && x.current) {
|
|
21493
|
-
let V = w.current.getModifiedEditor(),
|
|
21494
|
-
|
|
21503
|
+
let V = w.current.getModifiedEditor(), C = U1(x.current, t || "", s || a || "text", o || "");
|
|
21504
|
+
C !== V.getModel() && V.setModel(C);
|
|
21495
21505
|
}
|
|
21496
21506
|
}, [o], v), Ut(() => {
|
|
21497
21507
|
let V = w.current.getModifiedEditor();
|
|
@@ -21499,8 +21509,8 @@ function sH({ original: e, modified: t, language: a, originalLanguage: r, modifi
|
|
|
21499
21509
|
}, [t], v), Ut(() => {
|
|
21500
21510
|
w.current?.getModel()?.original.setValue(e || "");
|
|
21501
21511
|
}, [e], v), Ut(() => {
|
|
21502
|
-
let { original: V, modified:
|
|
21503
|
-
x.current.editor.setModelLanguage(V, r || a || "text"), x.current.editor.setModelLanguage(
|
|
21512
|
+
let { original: V, modified: C } = w.current.getModel();
|
|
21513
|
+
x.current.editor.setModelLanguage(V, r || a || "text"), x.current.editor.setModelLanguage(C, s || a || "text");
|
|
21504
21514
|
}, [a, r, s], v), Ut(() => {
|
|
21505
21515
|
x.current?.editor.setTheme(d);
|
|
21506
21516
|
}, [d], v), Ut(() => {
|
|
@@ -21509,13 +21519,13 @@ function sH({ original: e, modified: t, language: a, originalLanguage: r, modifi
|
|
|
21509
21519
|
let R = ee(() => {
|
|
21510
21520
|
if (!x.current) return;
|
|
21511
21521
|
S.current(x.current);
|
|
21512
|
-
let V = U1(x.current, e || "", r || a || "text", i || ""),
|
|
21513
|
-
w.current?.setModel({ original: V, modified:
|
|
21522
|
+
let V = U1(x.current, e || "", r || a || "text", i || ""), C = U1(x.current, t || "", s || a || "text", o || "");
|
|
21523
|
+
w.current?.setModel({ original: V, modified: C });
|
|
21514
21524
|
}, [a, t, s, e, r, i, o]), Y = ee(() => {
|
|
21515
21525
|
!j.current && I.current && (w.current = x.current.editor.createDiffEditor(I.current, { automaticLayout: !0, ...m }), R(), x.current?.editor.setTheme(d), _(!0), j.current = !0);
|
|
21516
21526
|
}, [m, d, R]);
|
|
21517
21527
|
O(() => {
|
|
21518
|
-
v &&
|
|
21528
|
+
v && M.current(w.current, x.current);
|
|
21519
21529
|
}, [v]), O(() => {
|
|
21520
21530
|
!Z && !v && Y();
|
|
21521
21531
|
}, [Z, v, Y]);
|
|
@@ -21545,34 +21555,34 @@ function cH(e) {
|
|
|
21545
21555
|
}
|
|
21546
21556
|
var uH = cH, Yn = /* @__PURE__ */ new Map();
|
|
21547
21557
|
function dH({ defaultValue: e, defaultLanguage: t, defaultPath: a, value: r, language: s, path: i, theme: o = "light", line: l, loading: c = "Loading...", options: d = {}, overrideServices: f = {}, saveViewState: m = !0, keepCurrentModel: h = !1, width: p = "100%", height: g = "100%", className: b, wrapperProps: y = {}, beforeMount: A = Ya, onMount: v = Ya, onChange: _, onValidate: Z = Ya }) {
|
|
21548
|
-
let [E, w] = B(!1), [x, I] = B(!0),
|
|
21558
|
+
let [E, w] = B(!1), [x, I] = B(!0), M = te(null), S = te(null), j = te(null), R = te(v), Y = te(A), D = te(), V = te(r), C = uH(i), P = te(!1), $ = te(!1);
|
|
21549
21559
|
Z2(() => {
|
|
21550
21560
|
let L = Sr.init();
|
|
21551
|
-
return L.then((N) => (
|
|
21561
|
+
return L.then((N) => (M.current = N) && I(!1)).catch((N) => N?.type !== "cancelation" && console.error("Monaco initialization: error:", N)), () => S.current ? W() : L.cancel();
|
|
21552
21562
|
}), Ut(() => {
|
|
21553
|
-
let L = U1(
|
|
21554
|
-
L !== S.current?.getModel() && (m && Yn.set(
|
|
21563
|
+
let L = U1(M.current, e || r || "", t || s || "", i || a || "");
|
|
21564
|
+
L !== S.current?.getModel() && (m && Yn.set(C, S.current?.saveViewState()), S.current?.setModel(L), m && S.current?.restoreViewState(Yn.get(i)));
|
|
21555
21565
|
}, [i], E), Ut(() => {
|
|
21556
21566
|
S.current?.updateOptions(d);
|
|
21557
21567
|
}, [d], E), Ut(() => {
|
|
21558
|
-
!S.current || r === void 0 || (S.current.getOption(
|
|
21568
|
+
!S.current || r === void 0 || (S.current.getOption(M.current.editor.EditorOption.readOnly) ? S.current.setValue(r) : r !== S.current.getValue() && ($.current = !0, S.current.executeEdits("", [{ range: S.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), S.current.pushUndoStop(), $.current = !1));
|
|
21559
21569
|
}, [r], E), Ut(() => {
|
|
21560
21570
|
let L = S.current?.getModel();
|
|
21561
|
-
L && s &&
|
|
21571
|
+
L && s && M.current?.editor.setModelLanguage(L, s);
|
|
21562
21572
|
}, [s], E), Ut(() => {
|
|
21563
21573
|
l !== void 0 && S.current?.revealLine(l);
|
|
21564
21574
|
}, [l], E), Ut(() => {
|
|
21565
|
-
|
|
21575
|
+
M.current?.editor.setTheme(o);
|
|
21566
21576
|
}, [o], E);
|
|
21567
21577
|
let J = ee(() => {
|
|
21568
|
-
if (!(!j.current || !
|
|
21569
|
-
Y.current(
|
|
21570
|
-
let L = i || a, N = U1(
|
|
21571
|
-
S.current =
|
|
21578
|
+
if (!(!j.current || !M.current) && !P.current) {
|
|
21579
|
+
Y.current(M.current);
|
|
21580
|
+
let L = i || a, N = U1(M.current, r || e || "", t || s || "", L || "");
|
|
21581
|
+
S.current = M.current?.editor.create(j.current, { model: N, automaticLayout: !0, ...d }, f), m && S.current.restoreViewState(Yn.get(L)), M.current.editor.setTheme(o), l !== void 0 && S.current.revealLine(l), w(!0), P.current = !0;
|
|
21572
21582
|
}
|
|
21573
21583
|
}, [e, t, a, r, s, i, d, f, m, o, l]);
|
|
21574
21584
|
O(() => {
|
|
21575
|
-
E && R.current(S.current,
|
|
21585
|
+
E && R.current(S.current, M.current);
|
|
21576
21586
|
}, [E]), O(() => {
|
|
21577
21587
|
!x && !E && J();
|
|
21578
21588
|
}, [x, E, J]), V.current = r, O(() => {
|
|
@@ -21581,10 +21591,10 @@ function dH({ defaultValue: e, defaultLanguage: t, defaultPath: a, value: r, lan
|
|
|
21581
21591
|
}));
|
|
21582
21592
|
}, [E, _]), O(() => {
|
|
21583
21593
|
if (E) {
|
|
21584
|
-
let L =
|
|
21594
|
+
let L = M.current.editor.onDidChangeMarkers((N) => {
|
|
21585
21595
|
let Q = S.current.getModel()?.uri;
|
|
21586
21596
|
if (Q && N.find((q) => q.path === Q.path)) {
|
|
21587
|
-
let q =
|
|
21597
|
+
let q = M.current.editor.getModelMarkers({ resource: Q });
|
|
21588
21598
|
Z?.(q);
|
|
21589
21599
|
}
|
|
21590
21600
|
});
|
|
@@ -21769,11 +21779,11 @@ const yH = vH(500), w2 = Ue(
|
|
|
21769
21779
|
null
|
|
21770
21780
|
), {
|
|
21771
21781
|
settings: { domain: x }
|
|
21772
|
-
} = Ye(), I = (
|
|
21773
|
-
|
|
21774
|
-
})),
|
|
21775
|
-
})),
|
|
21776
|
-
|
|
21782
|
+
} = Ye(), I = (M) => {
|
|
21783
|
+
M != null && A != null && typeof A == "object" && (A.current = M), w(M), M.onDidBlurEditorText(g ?? (() => {
|
|
21784
|
+
})), M.onDidFocusEditorText(p ?? (() => {
|
|
21785
|
+
})), M.layout(), M.onDidPaste(() => {
|
|
21786
|
+
M.getAction("editor.action.formatDocument")?.run();
|
|
21777
21787
|
});
|
|
21778
21788
|
};
|
|
21779
21789
|
return O(
|
|
@@ -21791,8 +21801,8 @@ const yH = vH(500), w2 = Ue(
|
|
|
21791
21801
|
},
|
|
21792
21802
|
[E, v, h]
|
|
21793
21803
|
), O(() => ((async () => {
|
|
21794
|
-
const
|
|
21795
|
-
if (v != null &&
|
|
21804
|
+
const M = E?.getModel()?.uri.toString();
|
|
21805
|
+
if (v != null && M != null && d != null) {
|
|
21796
21806
|
_.current?.dispose();
|
|
21797
21807
|
const S = v.languages.json.jsonDefaults.diagnosticsOptions.schemas ?? [], j = await hH(d, x).then(
|
|
21798
21808
|
(R) => R != null ? (console.log(R), oo(R)) : R
|
|
@@ -21804,7 +21814,7 @@ const yH = vH(500), w2 = Ue(
|
|
|
21804
21814
|
S.push({
|
|
21805
21815
|
schema: j,
|
|
21806
21816
|
uri: `file:///json-schema--${d}.json`,
|
|
21807
|
-
fileMatch: [
|
|
21817
|
+
fileMatch: [M]
|
|
21808
21818
|
});
|
|
21809
21819
|
break;
|
|
21810
21820
|
}
|
|
@@ -21812,16 +21822,16 @@ const yH = vH(500), w2 = Ue(
|
|
|
21812
21822
|
S.push({
|
|
21813
21823
|
schema: j,
|
|
21814
21824
|
uri: `file:///json-schema--${d}.json`,
|
|
21815
|
-
fileMatch: [
|
|
21816
|
-
}), _.current = cc(v,
|
|
21825
|
+
fileMatch: [M]
|
|
21826
|
+
}), _.current = cc(v, M, ["order"]);
|
|
21817
21827
|
break;
|
|
21818
21828
|
}
|
|
21819
21829
|
case "price-rules": {
|
|
21820
21830
|
S.push({
|
|
21821
21831
|
schema: j,
|
|
21822
21832
|
uri: `file:///json-schema--${d}.json`,
|
|
21823
|
-
fileMatch: [
|
|
21824
|
-
}), _.current = cc(v,
|
|
21833
|
+
fileMatch: [M]
|
|
21834
|
+
}), _.current = cc(v, M, ["price"]);
|
|
21825
21835
|
break;
|
|
21826
21836
|
}
|
|
21827
21837
|
}
|
|
@@ -23186,7 +23196,7 @@ function pM() {
|
|
|
23186
23196
|
}
|
|
23187
23197
|
}
|
|
23188
23198
|
}
|
|
23189
|
-
var E = c, w = d, x = l, I = o,
|
|
23199
|
+
var E = c, w = d, x = l, I = o, M = t, S = f, j = r, R = g, Y = p, D = a, V = i, C = s, P = m, $ = !1;
|
|
23190
23200
|
function J(X) {
|
|
23191
23201
|
return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), W(X) || Z(X) === c;
|
|
23192
23202
|
}
|
|
@@ -23226,7 +23236,7 @@ function pM() {
|
|
|
23226
23236
|
function Re(X) {
|
|
23227
23237
|
return Z(X) === m;
|
|
23228
23238
|
}
|
|
23229
|
-
Pe.AsyncMode = E, Pe.ConcurrentMode = w, Pe.ContextConsumer = x, Pe.ContextProvider = I, Pe.Element =
|
|
23239
|
+
Pe.AsyncMode = E, Pe.ConcurrentMode = w, Pe.ContextConsumer = x, Pe.ContextProvider = I, Pe.Element = M, Pe.ForwardRef = S, Pe.Fragment = j, Pe.Lazy = R, Pe.Memo = Y, Pe.Portal = D, Pe.Profiler = V, Pe.StrictMode = C, Pe.Suspense = P, Pe.isAsyncMode = J, Pe.isConcurrentMode = W, Pe.isContextConsumer = L, Pe.isContextProvider = N, Pe.isElement = Q, Pe.isForwardRef = q, Pe.isFragment = ve, Pe.isLazy = de, Pe.isMemo = oe, Pe.isPortal = we, Pe.isProfiler = Je, Pe.isStrictMode = $e, Pe.isSuspense = Re, Pe.isValidElementType = _, Pe.typeOf = Z;
|
|
23230
23240
|
})()), Pe;
|
|
23231
23241
|
}
|
|
23232
23242
|
var bc;
|
|
@@ -23935,17 +23945,17 @@ const qM = async (e, t, a) => {
|
|
|
23935
23945
|
}, p = S2(s), g = L2(p), b = await o.getDimensions(d), y = p === "y", A = y ? "top" : "left", v = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", Z = i.reference[g] + i.reference[p] - h[p] - i.floating[g], E = h[p] - i.reference[p], w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d));
|
|
23936
23946
|
let x = w ? w[_] : 0;
|
|
23937
23947
|
(!x || !await (o.isElement == null ? void 0 : o.isElement(w))) && (x = l.floating[_] || i.floating[g]);
|
|
23938
|
-
const I = Z / 2 - E / 2,
|
|
23948
|
+
const I = Z / 2 - E / 2, M = x / 2 - b[g] / 2 - 1, S = ba(m[A], M), j = ba(m[v], M), R = S, Y = x - b[g] - j, D = x / 2 - b[g] / 2 + I, V = po(R, D, Y), C = !c.arrow && Cn(s) != null && D !== V && i.reference[g] / 2 - (D < R ? S : j) - b[g] / 2 < 0, P = C ? D < R ? D - R : D - Y : 0;
|
|
23939
23949
|
return {
|
|
23940
23950
|
[p]: h[p] + P,
|
|
23941
23951
|
data: {
|
|
23942
23952
|
[p]: V,
|
|
23943
23953
|
centerOffset: D - V - P,
|
|
23944
|
-
...
|
|
23954
|
+
...C && {
|
|
23945
23955
|
alignmentOffset: P
|
|
23946
23956
|
}
|
|
23947
23957
|
},
|
|
23948
|
-
reset:
|
|
23958
|
+
reset: C
|
|
23949
23959
|
};
|
|
23950
23960
|
}
|
|
23951
23961
|
}), KM = function(e) {
|
|
@@ -23974,16 +23984,16 @@ const qM = async (e, t, a) => {
|
|
|
23974
23984
|
return {};
|
|
23975
23985
|
const A = C1(s), v = l1(l), _ = C1(l) === l, Z = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), E = h || (_ || !b ? [jr(l)] : GM(l)), w = g !== "none";
|
|
23976
23986
|
!h && w && E.push(...YM(l, b, g, Z));
|
|
23977
|
-
const x = [l, ...E], I = await c.detectOverflow(t, y),
|
|
23987
|
+
const x = [l, ...E], I = await c.detectOverflow(t, y), M = [];
|
|
23978
23988
|
let S = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
23979
|
-
if (f &&
|
|
23989
|
+
if (f && M.push(I[A]), m) {
|
|
23980
23990
|
const D = BM(s, o, Z);
|
|
23981
|
-
|
|
23991
|
+
M.push(I[D[0]], I[D[1]]);
|
|
23982
23992
|
}
|
|
23983
23993
|
if (S = [...S, {
|
|
23984
23994
|
placement: s,
|
|
23985
|
-
overflows:
|
|
23986
|
-
}], !
|
|
23995
|
+
overflows: M
|
|
23996
|
+
}], !M.every((D) => D <= 0)) {
|
|
23987
23997
|
var j, R;
|
|
23988
23998
|
const D = (((j = i.flip) == null ? void 0 : j.index) || 0) + 1, V = x[D];
|
|
23989
23999
|
if (V && (!(m === "alignment" ? v !== l1(V) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -23998,8 +24008,8 @@ const qM = async (e, t, a) => {
|
|
|
23998
24008
|
placement: V
|
|
23999
24009
|
}
|
|
24000
24010
|
};
|
|
24001
|
-
let
|
|
24002
|
-
if (!
|
|
24011
|
+
let C = (R = S.filter((P) => P.overflows[0] <= 0).sort((P, $) => P.overflows[1] - $.overflows[1])[0]) == null ? void 0 : R.placement;
|
|
24012
|
+
if (!C)
|
|
24003
24013
|
switch (p) {
|
|
24004
24014
|
case "bestFit": {
|
|
24005
24015
|
var Y;
|
|
@@ -24012,17 +24022,17 @@ const qM = async (e, t, a) => {
|
|
|
24012
24022
|
}
|
|
24013
24023
|
return !0;
|
|
24014
24024
|
}).map(($) => [$.placement, $.overflows.filter((J) => J > 0).reduce((J, W) => J + W, 0)]).sort(($, J) => $[1] - J[1])[0]) == null ? void 0 : Y[0];
|
|
24015
|
-
P && (
|
|
24025
|
+
P && (C = P);
|
|
24016
24026
|
break;
|
|
24017
24027
|
}
|
|
24018
24028
|
case "initialPlacement":
|
|
24019
|
-
|
|
24029
|
+
C = l;
|
|
24020
24030
|
break;
|
|
24021
24031
|
}
|
|
24022
|
-
if (s !==
|
|
24032
|
+
if (s !== C)
|
|
24023
24033
|
return {
|
|
24024
24034
|
reset: {
|
|
24025
|
-
placement:
|
|
24035
|
+
placement: C
|
|
24026
24036
|
}
|
|
24027
24037
|
};
|
|
24028
24038
|
}
|
|
@@ -24774,7 +24784,7 @@ function UC(e) {
|
|
|
24774
24784
|
maxHeight: t
|
|
24775
24785
|
};
|
|
24776
24786
|
if (!a || !a.offsetParent) return d;
|
|
24777
|
-
var f = c.getBoundingClientRect(), m = f.height, h = a.getBoundingClientRect(), p = h.bottom, g = h.height, b = h.top, y = a.offsetParent.getBoundingClientRect(), A = y.top, v = o ? window.innerHeight : NC(c), _ = v3(c), Z = parseInt(getComputedStyle(a).marginBottom, 10), E = parseInt(getComputedStyle(a).marginTop, 10), w = A - E, x = v - b, I = w + _,
|
|
24787
|
+
var f = c.getBoundingClientRect(), m = f.height, h = a.getBoundingClientRect(), p = h.bottom, g = h.height, b = h.top, y = a.offsetParent.getBoundingClientRect(), A = y.top, v = o ? window.innerHeight : NC(c), _ = v3(c), Z = parseInt(getComputedStyle(a).marginBottom, 10), E = parseInt(getComputedStyle(a).marginTop, 10), w = A - E, x = v - b, I = w + _, M = m - _ - b, S = p - v + _ + Z, j = _ + b - E, R = 160;
|
|
24778
24788
|
switch (s) {
|
|
24779
24789
|
case "auto":
|
|
24780
24790
|
case "bottom":
|
|
@@ -24783,14 +24793,14 @@ function UC(e) {
|
|
|
24783
24793
|
placement: "bottom",
|
|
24784
24794
|
maxHeight: t
|
|
24785
24795
|
};
|
|
24786
|
-
if (
|
|
24796
|
+
if (M >= g && !o)
|
|
24787
24797
|
return i && Qn(c, S, R), {
|
|
24788
24798
|
placement: "bottom",
|
|
24789
24799
|
maxHeight: t
|
|
24790
24800
|
};
|
|
24791
|
-
if (!o &&
|
|
24801
|
+
if (!o && M >= r || o && x >= r) {
|
|
24792
24802
|
i && Qn(c, S, R);
|
|
24793
|
-
var Y = o ? x - Z :
|
|
24803
|
+
var Y = o ? x - Z : M - Z;
|
|
24794
24804
|
return {
|
|
24795
24805
|
placement: "bottom",
|
|
24796
24806
|
maxHeight: Y
|
|
@@ -24821,10 +24831,10 @@ function UC(e) {
|
|
|
24821
24831
|
maxHeight: t
|
|
24822
24832
|
};
|
|
24823
24833
|
if (!o && I >= r || o && w >= r) {
|
|
24824
|
-
var
|
|
24825
|
-
return (!o && I >= r || o && w >= r) && (
|
|
24834
|
+
var C = t;
|
|
24835
|
+
return (!o && I >= r || o && w >= r) && (C = o ? w - E : I - E), i && Qn(c, j, R), {
|
|
24826
24836
|
placement: "top",
|
|
24827
|
-
maxHeight:
|
|
24837
|
+
maxHeight: C
|
|
24828
24838
|
};
|
|
24829
24839
|
}
|
|
24830
24840
|
return {
|
|
@@ -24948,9 +24958,9 @@ var _3 = function(t) {
|
|
|
24948
24958
|
};
|
|
24949
24959
|
}, []), b = B(null), y = xt(b, 2), A = y[0], v = y[1], _ = ee(function() {
|
|
24950
24960
|
if (s) {
|
|
24951
|
-
var x = PC(s), I = l === "fixed" ? 0 : window.pageYOffset,
|
|
24952
|
-
(
|
|
24953
|
-
offset:
|
|
24961
|
+
var x = PC(s), I = l === "fixed" ? 0 : window.pageYOffset, M = x[h] + I;
|
|
24962
|
+
(M !== A?.offset || x.left !== A?.rect.left || x.width !== A?.rect.width) && v({
|
|
24963
|
+
offset: M,
|
|
24954
24964
|
rect: x
|
|
24955
24965
|
});
|
|
24956
24966
|
}
|
|
@@ -25550,12 +25560,12 @@ var dL = process.env.NODE_ENV === "production" ? {
|
|
|
25550
25560
|
}, pL = function(t) {
|
|
25551
25561
|
var a = t.ariaSelection, r = t.focusedOption, s = t.focusedValue, i = t.focusableOptions, o = t.isFocused, l = t.selectValue, c = t.selectProps, d = t.id, f = t.isAppleDevice, m = c.ariaLiveMessages, h = c.getOptionLabel, p = c.inputValue, g = c.isMulti, b = c.isOptionDisabled, y = c.isSearchable, A = c.menuIsOpen, v = c.options, _ = c.screenReaderStatus, Z = c.tabSelectsValue, E = c.isLoading, w = c["aria-label"], x = c["aria-live"], I = fe(function() {
|
|
25552
25562
|
return re(re({}, fL), m || {});
|
|
25553
|
-
}, [m]),
|
|
25563
|
+
}, [m]), M = fe(function() {
|
|
25554
25564
|
var V = "";
|
|
25555
25565
|
if (a && I.onChange) {
|
|
25556
|
-
var
|
|
25566
|
+
var C = a.option, P = a.options, $ = a.removedValue, J = a.removedValues, W = a.value, L = function(we) {
|
|
25557
25567
|
return Array.isArray(we) ? null : we;
|
|
25558
|
-
}, N = $ ||
|
|
25568
|
+
}, N = $ || C || L(W), Q = N ? h(N) : "", q = P || J || void 0, ve = q ? q.map(h) : [], de = re({
|
|
25559
25569
|
// multiSelected items are usually items that have already been selected
|
|
25560
25570
|
// or set by the user as a default value so we assume they are not disabled
|
|
25561
25571
|
isDisabled: N && b(N, l),
|
|
@@ -25566,15 +25576,15 @@ var dL = process.env.NODE_ENV === "production" ? {
|
|
|
25566
25576
|
}
|
|
25567
25577
|
return V;
|
|
25568
25578
|
}, [a, I, b, l, h]), S = fe(function() {
|
|
25569
|
-
var V = "",
|
|
25570
|
-
if (
|
|
25579
|
+
var V = "", C = r || s, P = !!(r && l && l.includes(r));
|
|
25580
|
+
if (C && I.onFocus) {
|
|
25571
25581
|
var $ = {
|
|
25572
|
-
focused:
|
|
25573
|
-
label: h(
|
|
25574
|
-
isDisabled: b(
|
|
25582
|
+
focused: C,
|
|
25583
|
+
label: h(C),
|
|
25584
|
+
isDisabled: b(C, l),
|
|
25575
25585
|
isSelected: P,
|
|
25576
25586
|
options: i,
|
|
25577
|
-
context:
|
|
25587
|
+
context: C === r ? "menu" : "value",
|
|
25578
25588
|
selectValue: l,
|
|
25579
25589
|
isAppleDevice: f
|
|
25580
25590
|
};
|
|
@@ -25584,22 +25594,22 @@ var dL = process.env.NODE_ENV === "production" ? {
|
|
|
25584
25594
|
}, [r, s, h, b, I, i, l, f]), j = fe(function() {
|
|
25585
25595
|
var V = "";
|
|
25586
25596
|
if (A && v.length && !E && I.onFilter) {
|
|
25587
|
-
var
|
|
25597
|
+
var C = _({
|
|
25588
25598
|
count: i.length
|
|
25589
25599
|
});
|
|
25590
25600
|
V = I.onFilter({
|
|
25591
25601
|
inputValue: p,
|
|
25592
|
-
resultsMessage:
|
|
25602
|
+
resultsMessage: C
|
|
25593
25603
|
});
|
|
25594
25604
|
}
|
|
25595
25605
|
return V;
|
|
25596
25606
|
}, [i, p, A, I, v, _, E]), R = a?.action === "initial-input-focus", Y = fe(function() {
|
|
25597
25607
|
var V = "";
|
|
25598
25608
|
if (I.guidance) {
|
|
25599
|
-
var
|
|
25609
|
+
var C = s ? "value" : A ? "menu" : "input";
|
|
25600
25610
|
V = I.guidance({
|
|
25601
25611
|
"aria-label": w,
|
|
25602
|
-
context:
|
|
25612
|
+
context: C,
|
|
25603
25613
|
isDisabled: r && b(r, l),
|
|
25604
25614
|
isMulti: g,
|
|
25605
25615
|
isSearchable: y,
|
|
@@ -25610,7 +25620,7 @@ var dL = process.env.NODE_ENV === "production" ? {
|
|
|
25610
25620
|
return V;
|
|
25611
25621
|
}, [w, r, s, g, b, y, A, I, l, Z, R]), D = ie(k0, null, ie("span", {
|
|
25612
25622
|
id: "aria-selection"
|
|
25613
|
-
},
|
|
25623
|
+
}, M), ie("span", {
|
|
25614
25624
|
id: "aria-focused"
|
|
25615
25625
|
}, S), ie("span", {
|
|
25616
25626
|
id: "aria-results"
|
|
@@ -25938,8 +25948,8 @@ var xL = function(t) {
|
|
|
25938
25948
|
function EL(e) {
|
|
25939
25949
|
var t = e.isEnabled, a = e.onBottomArrive, r = e.onBottomLeave, s = e.onTopArrive, i = e.onTopLeave, o = te(!1), l = te(!1), c = te(0), d = te(null), f = ee(function(y, A) {
|
|
25940
25950
|
if (d.current !== null) {
|
|
25941
|
-
var v = d.current, _ = v.scrollTop, Z = v.scrollHeight, E = v.clientHeight, w = d.current, x = A > 0, I = Z - E - _,
|
|
25942
|
-
I > A && o.current && (r && r(y), o.current = !1), x && l.current && (i && i(y), l.current = !1), x && A > I ? (a && !o.current && a(y), w.scrollTop = Z,
|
|
25951
|
+
var v = d.current, _ = v.scrollTop, Z = v.scrollHeight, E = v.clientHeight, w = d.current, x = A > 0, I = Z - E - _, M = !1;
|
|
25952
|
+
I > A && o.current && (r && r(y), o.current = !1), x && l.current && (i && i(y), l.current = !1), x && A > I ? (a && !o.current && a(y), w.scrollTop = Z, M = !0, o.current = !0) : !x && -A > _ && (s && !l.current && s(y), w.scrollTop = 0, M = !0, l.current = !0), M && xL(y);
|
|
25943
25953
|
}
|
|
25944
25954
|
}, [a, r, s, i]), m = ee(function(y) {
|
|
25945
25955
|
f(y, y.deltaY);
|
|
@@ -26908,7 +26918,7 @@ var P3 = function(t) {
|
|
|
26908
26918
|
}
|
|
26909
26919
|
}), v);
|
|
26910
26920
|
if (y)
|
|
26911
|
-
return Z.map(function(I,
|
|
26921
|
+
return Z.map(function(I, M) {
|
|
26912
26922
|
var S = I === E, j = "".concat(s.getOptionLabel(I), "-").concat(s.getOptionValue(I));
|
|
26913
26923
|
return /* @__PURE__ */ n.createElement(o, ce({}, h, {
|
|
26914
26924
|
components: {
|
|
@@ -26919,7 +26929,7 @@ var P3 = function(t) {
|
|
|
26919
26929
|
isFocused: S,
|
|
26920
26930
|
isDisabled: b,
|
|
26921
26931
|
key: j,
|
|
26922
|
-
index:
|
|
26932
|
+
index: M,
|
|
26923
26933
|
removeProps: {
|
|
26924
26934
|
onClick: function() {
|
|
26925
26935
|
return s.removeValue(I);
|
|
@@ -27002,9 +27012,9 @@ var P3 = function(t) {
|
|
|
27002
27012
|
}, {
|
|
27003
27013
|
key: "renderMenu",
|
|
27004
27014
|
value: function() {
|
|
27005
|
-
var s = this, i = this.getComponents(), o = i.Group, l = i.GroupHeading, c = i.Menu, d = i.MenuList, f = i.MenuPortal, m = i.LoadingMessage, h = i.NoOptionsMessage, p = i.Option, g = this.commonProps, b = this.state.focusedOption, y = this.props, A = y.captureMenuScroll, v = y.inputValue, _ = y.isLoading, Z = y.loadingMessage, E = y.minMenuHeight, w = y.maxMenuHeight, x = y.menuIsOpen, I = y.menuPlacement,
|
|
27015
|
+
var s = this, i = this.getComponents(), o = i.Group, l = i.GroupHeading, c = i.Menu, d = i.MenuList, f = i.MenuPortal, m = i.LoadingMessage, h = i.NoOptionsMessage, p = i.Option, g = this.commonProps, b = this.state.focusedOption, y = this.props, A = y.captureMenuScroll, v = y.inputValue, _ = y.isLoading, Z = y.loadingMessage, E = y.minMenuHeight, w = y.maxMenuHeight, x = y.menuIsOpen, I = y.menuPlacement, M = y.menuPosition, S = y.menuPortalTarget, j = y.menuShouldBlockScroll, R = y.menuShouldScrollIntoView, Y = y.noOptionsMessage, D = y.onMenuScrollToTop, V = y.onMenuScrollToBottom;
|
|
27006
27016
|
if (!x) return null;
|
|
27007
|
-
var
|
|
27017
|
+
var C = function(Q, q) {
|
|
27008
27018
|
var ve = Q.type, de = Q.data, oe = Q.isDisabled, we = Q.isSelected, Je = Q.label, $e = Q.value, Re = b === de, X = oe ? void 0 : function() {
|
|
27009
27019
|
return s.onOptionHover(de);
|
|
27010
27020
|
}, Ke = oe ? void 0 : function() {
|
|
@@ -27047,10 +27057,10 @@ var P3 = function(t) {
|
|
|
27047
27057
|
},
|
|
27048
27058
|
label: s.formatGroupLabel(N.data)
|
|
27049
27059
|
}), N.options.map(function(we) {
|
|
27050
|
-
return
|
|
27060
|
+
return C(we, "".concat(ve, "-").concat(we.index));
|
|
27051
27061
|
}));
|
|
27052
27062
|
} else if (N.type === "option")
|
|
27053
|
-
return
|
|
27063
|
+
return C(N, "".concat(N.index));
|
|
27054
27064
|
});
|
|
27055
27065
|
else if (_) {
|
|
27056
27066
|
var $ = Z({
|
|
@@ -27069,7 +27079,7 @@ var P3 = function(t) {
|
|
|
27069
27079
|
minMenuHeight: E,
|
|
27070
27080
|
maxMenuHeight: w,
|
|
27071
27081
|
menuPlacement: I,
|
|
27072
|
-
menuPosition:
|
|
27082
|
+
menuPosition: M,
|
|
27073
27083
|
menuShouldScrollIntoView: R
|
|
27074
27084
|
}, L = /* @__PURE__ */ n.createElement(QC, ce({}, g, W), function(N) {
|
|
27075
27085
|
var Q = N.ref, q = N.placerProps, ve = q.placement, de = q.maxHeight;
|
|
@@ -27102,11 +27112,11 @@ var P3 = function(t) {
|
|
|
27102
27112
|
}), P);
|
|
27103
27113
|
}));
|
|
27104
27114
|
});
|
|
27105
|
-
return S ||
|
|
27115
|
+
return S || M === "fixed" ? /* @__PURE__ */ n.createElement(f, ce({}, g, {
|
|
27106
27116
|
appendTo: S,
|
|
27107
27117
|
controlElement: this.controlRef,
|
|
27108
27118
|
menuPlacement: I,
|
|
27109
|
-
menuPosition:
|
|
27119
|
+
menuPosition: M
|
|
27110
27120
|
}), L) : L;
|
|
27111
27121
|
}
|
|
27112
27122
|
}, {
|
|
@@ -27210,7 +27220,7 @@ var P3 = function(t) {
|
|
|
27210
27220
|
clearFocusValueOnUpdate: !1
|
|
27211
27221
|
};
|
|
27212
27222
|
}
|
|
27213
|
-
var
|
|
27223
|
+
var M = c != null && s !== o ? {
|
|
27214
27224
|
inputIsHidden: c,
|
|
27215
27225
|
inputIsHiddenAfterUpdate: void 0
|
|
27216
27226
|
} : {}, S = d, j = f && m;
|
|
@@ -27218,7 +27228,7 @@ var P3 = function(t) {
|
|
|
27218
27228
|
value: Pa(A, v, v[0] || null),
|
|
27219
27229
|
options: v,
|
|
27220
27230
|
action: "initial-input-focus"
|
|
27221
|
-
}, j = !m), d?.action === "initial-input-focus" && (S = null), re(re(re({}, _),
|
|
27231
|
+
}, j = !m), d?.action === "initial-input-focus" && (S = null), re(re(re({}, _), M), {}, {
|
|
27222
27232
|
prevProps: s,
|
|
27223
27233
|
ariaSelection: S,
|
|
27224
27234
|
prevWasFocused: j
|
|
@@ -27229,7 +27239,7 @@ var P3 = function(t) {
|
|
|
27229
27239
|
Ln.defaultProps = zL;
|
|
27230
27240
|
var JL = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
27231
27241
|
function Zs(e) {
|
|
27232
|
-
var t = e.defaultInputValue, a = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, s = r === void 0 ? !1 : r, i = e.defaultValue, o = i === void 0 ? null : i, l = e.inputValue, c = e.menuIsOpen, d = e.onChange, f = e.onInputChange, m = e.onMenuClose, h = e.onMenuOpen, p = e.value, g = b0(e, JL), b = B(l !== void 0 ? l : a), y = xt(b, 2), A = y[0], v = y[1], _ = B(c !== void 0 ? c : s), Z = xt(_, 2), E = Z[0], w = Z[1], x = B(p !== void 0 ? p : o), I = xt(x, 2),
|
|
27242
|
+
var t = e.defaultInputValue, a = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, s = r === void 0 ? !1 : r, i = e.defaultValue, o = i === void 0 ? null : i, l = e.inputValue, c = e.menuIsOpen, d = e.onChange, f = e.onInputChange, m = e.onMenuClose, h = e.onMenuOpen, p = e.value, g = b0(e, JL), b = B(l !== void 0 ? l : a), y = xt(b, 2), A = y[0], v = y[1], _ = B(c !== void 0 ? c : s), Z = xt(_, 2), E = Z[0], w = Z[1], x = B(p !== void 0 ? p : o), I = xt(x, 2), M = I[0], S = I[1], j = ee(function($, J) {
|
|
27233
27243
|
typeof d == "function" && d($, J), S($);
|
|
27234
27244
|
}, [d]), R = ee(function($, J) {
|
|
27235
27245
|
var W;
|
|
@@ -27238,10 +27248,10 @@ function Zs(e) {
|
|
|
27238
27248
|
typeof h == "function" && h(), w(!0);
|
|
27239
27249
|
}, [h]), D = ee(function() {
|
|
27240
27250
|
typeof m == "function" && m(), w(!1);
|
|
27241
|
-
}, [m]), V = l !== void 0 ? l : A,
|
|
27251
|
+
}, [m]), V = l !== void 0 ? l : A, C = c !== void 0 ? c : E, P = p !== void 0 ? p : M;
|
|
27242
27252
|
return re(re({}, g), {}, {
|
|
27243
27253
|
inputValue: V,
|
|
27244
|
-
menuIsOpen:
|
|
27254
|
+
menuIsOpen: C,
|
|
27245
27255
|
onChange: j,
|
|
27246
27256
|
onInputChange: R,
|
|
27247
27257
|
onMenuClose: D,
|
|
@@ -27253,7 +27263,7 @@ var qL = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading
|
|
|
27253
27263
|
function $3(e) {
|
|
27254
27264
|
var t = e.defaultOptions, a = t === void 0 ? !1 : t, r = e.cacheOptions, s = r === void 0 ? !1 : r, i = e.loadOptions;
|
|
27255
27265
|
e.options;
|
|
27256
|
-
var o = e.isLoading, l = o === void 0 ? !1 : o, c = e.onInputChange, d = e.filterOption, f = d === void 0 ? null : d, m = b0(e, qL), h = m.inputValue, p = te(void 0), g = te(!1), b = B(Array.isArray(a) ? a : void 0), y = xt(b, 2), A = y[0], v = y[1], _ = B(typeof h < "u" ? h : ""), Z = xt(_, 2), E = Z[0], w = Z[1], x = B(a === !0), I = xt(x, 2),
|
|
27266
|
+
var o = e.isLoading, l = o === void 0 ? !1 : o, c = e.onInputChange, d = e.filterOption, f = d === void 0 ? null : d, m = b0(e, qL), h = m.inputValue, p = te(void 0), g = te(!1), b = B(Array.isArray(a) ? a : void 0), y = xt(b, 2), A = y[0], v = y[1], _ = B(typeof h < "u" ? h : ""), Z = xt(_, 2), E = Z[0], w = Z[1], x = B(a === !0), I = xt(x, 2), M = I[0], S = I[1], j = B(void 0), R = xt(j, 2), Y = R[0], D = R[1], V = B([]), C = xt(V, 2), P = C[0], $ = C[1], J = B(!1), W = xt(J, 2), L = W[0], N = W[1], Q = B({}), q = xt(Q, 2), ve = q[0], de = q[1], oe = B(void 0), we = xt(oe, 2), Je = we[0], $e = we[1], Re = B(void 0), X = xt(Re, 2), Ke = X[0], nt = X[1];
|
|
27257
27267
|
s !== Ke && (de({}), nt(s)), a !== Je && (v(Array.isArray(a) ? a : void 0), $e(a)), O(function() {
|
|
27258
27268
|
return g.current = !0, function() {
|
|
27259
27269
|
g.current = !1;
|
|
@@ -27288,7 +27298,7 @@ function $3(e) {
|
|
|
27288
27298
|
}, [s, ft, Y, ve, c]), Ae = L ? [] : E && Y ? P : A || [];
|
|
27289
27299
|
return re(re({}, m), {}, {
|
|
27290
27300
|
options: Ae,
|
|
27291
|
-
isLoading:
|
|
27301
|
+
isLoading: M || l,
|
|
27292
27302
|
onInputChange: Me,
|
|
27293
27303
|
filterOption: f
|
|
27294
27304
|
});
|
|
@@ -27528,13 +27538,13 @@ function z3(e = LS) {
|
|
|
27528
27538
|
return R0(FS).getTooltipData(e);
|
|
27529
27539
|
}
|
|
27530
27540
|
var $1 = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, wi = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
27531
|
-
const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s = "dark", anchorId: i, anchorSelect: o, place: l = "top", offset: c = 10, events: d = ["hover"], openOnClick: f = !1, positionStrategy: m = "absolute", middlewares: h, wrapper: p, delayShow: g = 0, delayHide: b = 0, float: y = !1, hidden: A = !1, noArrow: v = !1, clickable: _ = !1, closeOnEsc: Z = !1, closeOnScroll: E = !1, closeOnResize: w = !1, openEvents: x, closeEvents: I, globalCloseEvents:
|
|
27541
|
+
const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s = "dark", anchorId: i, anchorSelect: o, place: l = "top", offset: c = 10, events: d = ["hover"], openOnClick: f = !1, positionStrategy: m = "absolute", middlewares: h, wrapper: p, delayShow: g = 0, delayHide: b = 0, float: y = !1, hidden: A = !1, noArrow: v = !1, clickable: _ = !1, closeOnEsc: Z = !1, closeOnScroll: E = !1, closeOnResize: w = !1, openEvents: x, closeEvents: I, globalCloseEvents: M, imperativeModeOnly: S, style: j, position: R, afterShow: Y, afterHide: D, disableTooltip: V, content: C, contentWrapperRef: P, isOpen: $, defaultIsOpen: J = !1, setIsOpen: W, previousActiveAnchor: L, activeAnchor: N, setActiveAnchor: Q, border: q, opacity: ve, arrowColor: de, arrowSize: oe = 8, role: we = "tooltip" }) => {
|
|
27532
27542
|
var Je;
|
|
27533
27543
|
const $e = te(null), Re = te(null), X = te(null), Ke = te(null), nt = te(null), [ft, Me] = B({ tooltipStyles: {}, tooltipArrowStyles: {}, place: l }), [Ae, Ve] = B(!1), [Ee, Ce] = B(!1), [_e, Se] = B(null), yt = te(!1), Pt = te(null), { anchorRefs: pt, setActiveAnchor: o0 } = z3(t), y0 = te(!1), [rt, Et] = B([]), Gt = te(!1), v0 = f || d.includes("click"), A0 = v0 || x?.click || x?.dblclick || x?.mousedown, t1 = x ? { ...x } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
27534
27544
|
!x && v0 && Object.assign(t1, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
27535
27545
|
const D0 = I ? { ...I } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
27536
27546
|
!I && v0 && Object.assign(D0, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
27537
|
-
const He =
|
|
27547
|
+
const He = M ? { ...M } : { escape: Z || !1, scroll: E || !1, resize: w || !1, clickOutsideAnchor: A0 || !1 };
|
|
27538
27548
|
S && (Object.assign(t1, { mouseover: !1, focus: !1, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 }), Object.assign(D0, { mouseout: !1, blur: !1, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 }), Object.assign(He, { escape: !1, scroll: !1, resize: !1, clickOutsideAnchor: !1 })), IS((() => (Gt.current = !0, () => {
|
|
27539
27549
|
Gt.current = !1;
|
|
27540
27550
|
})), []);
|
|
@@ -27628,7 +27638,7 @@ const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s
|
|
|
27628
27638
|
le ? l0(le) : y ? Pt.current && l0(Pt.current) : N?.isConnected && Uc({ place: (ue = _e?.place) !== null && ue !== void 0 ? ue : l, offset: c, elementReference: N, tooltipReference: $e.current, tooltipArrowReference: Re.current, strategy: m, middlewares: h, border: q, arrowSize: oe }).then(((ze) => {
|
|
27629
27639
|
Gt.current && it(ze);
|
|
27630
27640
|
}));
|
|
27631
|
-
}), [Ae, N,
|
|
27641
|
+
}), [Ae, N, C, j, l, _e?.place, c, m, R, _e?.position, y, oe]);
|
|
27632
27642
|
O((() => {
|
|
27633
27643
|
var U, ue;
|
|
27634
27644
|
const le = new Set(pt);
|
|
@@ -27676,7 +27686,7 @@ const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s
|
|
|
27676
27686
|
}));
|
|
27677
27687
|
}));
|
|
27678
27688
|
};
|
|
27679
|
-
}), [N, Le, Ee, pt, rt, x, I,
|
|
27689
|
+
}), [N, Le, Ee, pt, rt, x, I, M, v0, g, b]), O((() => {
|
|
27680
27690
|
var U, ue;
|
|
27681
27691
|
let le = (ue = (U = _e?.anchorSelect) !== null && U !== void 0 ? U : o) !== null && ue !== void 0 ? ue : "";
|
|
27682
27692
|
!le && t && (le = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
@@ -27716,7 +27726,7 @@ const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s
|
|
|
27716
27726
|
return U.observe(P.current), () => {
|
|
27717
27727
|
U.disconnect();
|
|
27718
27728
|
};
|
|
27719
|
-
}), [
|
|
27729
|
+
}), [C, P?.current]), O((() => {
|
|
27720
27730
|
var U;
|
|
27721
27731
|
const ue = document.querySelector(`[id='${i}']`), le = [...rt, ue];
|
|
27722
27732
|
N && le.includes(N) || Q((U = rt[0]) !== null && U !== void 0 ? U : ue);
|
|
@@ -27734,7 +27744,7 @@ const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s
|
|
|
27734
27744
|
}), [t, o, _e?.anchorSelect]), O((() => {
|
|
27735
27745
|
X.current && (e0(X), vt(g));
|
|
27736
27746
|
}), [g]);
|
|
27737
|
-
const Wt = (Je = _e?.content) !== null && Je !== void 0 ? Je :
|
|
27747
|
+
const Wt = (Je = _e?.content) !== null && Je !== void 0 ? Je : C, A1 = Ae && Object.keys(ft.tooltipStyles).length > 0;
|
|
27738
27748
|
return g4(e, (() => ({ open: (U) => {
|
|
27739
27749
|
if (U?.anchorSelect) try {
|
|
27740
27750
|
document.querySelector(U.anchorSelect);
|
|
@@ -27747,7 +27757,7 @@ const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s
|
|
|
27747
27757
|
}, activeAnchor: N, place: ft.place, isOpen: !!(Ee && !A && Wt && A1) }))), Ee && !A && Wt ? ge.createElement(p, { id: t, role: we, className: k("react-tooltip", $1.tooltip, wi.tooltip, wi[s], a, `react-tooltip__place-${ft.place}`, $1[A1 ? "show" : "closing"], A1 ? "react-tooltip__show" : "react-tooltip__closing", m === "fixed" && $1.fixed, _ && $1.clickable), onTransitionEnd: (U) => {
|
|
27748
27758
|
e0(nt), Ae || U.propertyName !== "opacity" || (Ce(!1), Se(null), D?.());
|
|
27749
27759
|
}, style: { ...j, ...ft.tooltipStyles, opacity: ve !== void 0 && A1 ? ve : void 0 }, ref: $e }, Wt, ge.createElement(p, { className: k("react-tooltip-arrow", $1.arrow, wi.arrow, r, v && $1.noArrow), style: { ...ft.tooltipArrowStyles, background: de ? `linear-gradient(to right bottom, transparent 50%, ${de} 50%)` : void 0, "--rt-arrow-size": `${oe}px` }, ref: Re })) : null;
|
|
27750
|
-
}, TS = ({ content: e }) => ge.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), jS = ge.forwardRef((({ id: e, anchorId: t, anchorSelect: a, content: r, html: s, render: i, className: o, classNameArrow: l, variant: c = "dark", place: d = "top", offset: f = 10, wrapper: m = "div", children: h = null, events: p = ["hover"], openOnClick: g = !1, positionStrategy: b = "absolute", middlewares: y, delayShow: A = 0, delayHide: v = 0, float: _ = !1, hidden: Z = !1, noArrow: E = !1, clickable: w = !1, closeOnEsc: x = !1, closeOnScroll: I = !1, closeOnResize:
|
|
27760
|
+
}, TS = ({ content: e }) => ge.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), jS = ge.forwardRef((({ id: e, anchorId: t, anchorSelect: a, content: r, html: s, render: i, className: o, classNameArrow: l, variant: c = "dark", place: d = "top", offset: f = 10, wrapper: m = "div", children: h = null, events: p = ["hover"], openOnClick: g = !1, positionStrategy: b = "absolute", middlewares: y, delayShow: A = 0, delayHide: v = 0, float: _ = !1, hidden: Z = !1, noArrow: E = !1, clickable: w = !1, closeOnEsc: x = !1, closeOnScroll: I = !1, closeOnResize: M = !1, openEvents: S, closeEvents: j, globalCloseEvents: R, imperativeModeOnly: Y = !1, style: D, position: V, isOpen: C, defaultIsOpen: P = !1, disableStyleInjection: $ = !1, border: J, opacity: W, arrowColor: L, arrowSize: N, setIsOpen: Q, afterShow: q, afterHide: ve, disableTooltip: de, role: oe = "tooltip" }, we) => {
|
|
27751
27761
|
const [Je, $e] = B(r), [Re, X] = B(s), [Ke, nt] = B(d), [ft, Me] = B(c), [Ae, Ve] = B(f), [Ee, Ce] = B(A), [_e, Se] = B(v), [yt, Pt] = B(_), [pt, o0] = B(Z), [y0, rt] = B(m), [Et, Gt] = B(p), [v0, A0] = B(b), [t1, D0] = B(null), [He, De] = B(null), it = te(null), vt = te($), { anchorRefs: lt, activeAnchor: et } = z3(e), zt = (ut) => ut?.getAttributeNames().reduce(((St, me) => {
|
|
27752
27762
|
var Le;
|
|
27753
27763
|
return me.startsWith("data-tooltip-") && (St[me.replace(/^data-tooltip-/, "")] = (Le = ut?.getAttribute(me)) !== null && Le !== void 0 ? Le : null), St;
|
|
@@ -27851,7 +27861,7 @@ const kS = ({ forwardRef: e, id: t, className: a, classNameArrow: r, variant: s
|
|
|
27851
27861
|
_0 = ut ? ge.createElement("div", { ref: x0, className: "react-tooltip-content-wrapper" }, ut) : null;
|
|
27852
27862
|
} else Je && (_0 = Je);
|
|
27853
27863
|
Re && (_0 = ge.createElement(TS, { content: Re }));
|
|
27854
|
-
const j1 = { forwardRef: we, id: e, anchorId: t, anchorSelect: a, className: k(o, t1), classNameArrow: l, content: _0, contentWrapperRef: x0, place: Ke, variant: ft, offset: Ae, wrapper: y0, events: Et, openOnClick: g, positionStrategy: v0, middlewares: y, delayShow: Ee, delayHide: _e, float: yt, hidden: pt, noArrow: E, clickable: w, closeOnEsc: x, closeOnScroll: I, closeOnResize:
|
|
27864
|
+
const j1 = { forwardRef: we, id: e, anchorId: t, anchorSelect: a, className: k(o, t1), classNameArrow: l, content: _0, contentWrapperRef: x0, place: Ke, variant: ft, offset: Ae, wrapper: y0, events: Et, openOnClick: g, positionStrategy: v0, middlewares: y, delayShow: Ee, delayHide: _e, float: yt, hidden: pt, noArrow: E, clickable: w, closeOnEsc: x, closeOnScroll: I, closeOnResize: M, openEvents: S, closeEvents: j, globalCloseEvents: R, imperativeModeOnly: Y, style: D, position: V, isOpen: C, defaultIsOpen: P, border: J, opacity: W, arrowColor: L, arrowSize: N, setIsOpen: Q, afterShow: q, afterHide: ve, disableTooltip: de, activeAnchor: He, previousActiveAnchor: it.current, setActiveAnchor: (ut) => {
|
|
27855
27865
|
De(((St) => (ut?.isSameNode(St) || (it.current = St), ut)));
|
|
27856
27866
|
}, role: oe };
|
|
27857
27867
|
return ge.createElement(kS, { ...j1 });
|
|
@@ -28237,31 +28247,31 @@ var eF = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
28237
28247
|
}
|
|
28238
28248
|
};
|
|
28239
28249
|
function Y3(e) {
|
|
28240
|
-
var t = e.allowCreateWhileLoading, a = t === void 0 ? !1 : t, r = e.createOptionPosition, s = r === void 0 ? "last" : r, i = e.formatCreateLabel, o = i === void 0 ? Vi.formatCreateLabel : i, l = e.isValidNewOption, c = l === void 0 ? Vi.isValidNewOption : l, d = e.getNewOptionData, f = d === void 0 ? Vi.getNewOptionData : d, m = e.onCreateOption, h = e.options, p = h === void 0 ? [] : h, g = e.onChange, b = b0(e, eF), y = b.getOptionValue, A = y === void 0 ? F3 : y, v = b.getOptionLabel, _ = v === void 0 ? S3 : v, Z = b.inputValue, E = b.isLoading, w = b.isMulti, x = b.value, I = b.name,
|
|
28250
|
+
var t = e.allowCreateWhileLoading, a = t === void 0 ? !1 : t, r = e.createOptionPosition, s = r === void 0 ? "last" : r, i = e.formatCreateLabel, o = i === void 0 ? Vi.formatCreateLabel : i, l = e.isValidNewOption, c = l === void 0 ? Vi.isValidNewOption : l, d = e.getNewOptionData, f = d === void 0 ? Vi.getNewOptionData : d, m = e.onCreateOption, h = e.options, p = h === void 0 ? [] : h, g = e.onChange, b = b0(e, eF), y = b.getOptionValue, A = y === void 0 ? F3 : y, v = b.getOptionLabel, _ = v === void 0 ? S3 : v, Z = b.inputValue, E = b.isLoading, w = b.isMulti, x = b.value, I = b.name, M = fe(function() {
|
|
28241
28251
|
return c(Z, Or(x), p, {
|
|
28242
28252
|
getOptionValue: A,
|
|
28243
28253
|
getOptionLabel: _
|
|
28244
28254
|
}) ? f(Z, o(Z)) : void 0;
|
|
28245
28255
|
}, [o, f, _, A, Z, c, p, x]), S = fe(function() {
|
|
28246
|
-
return (a || !E) &&
|
|
28247
|
-
}, [a, s, E,
|
|
28256
|
+
return (a || !E) && M ? s === "first" ? [M].concat(aa(p)) : [].concat(aa(p), [M]) : p;
|
|
28257
|
+
}, [a, s, E, M, p]), j = ee(function(R, Y) {
|
|
28248
28258
|
if (Y.action !== "select-option")
|
|
28249
28259
|
return g(R, Y);
|
|
28250
28260
|
var D = Array.isArray(R) ? R : [R];
|
|
28251
|
-
if (D[D.length - 1] ===
|
|
28261
|
+
if (D[D.length - 1] === M) {
|
|
28252
28262
|
if (m) m(Z);
|
|
28253
28263
|
else {
|
|
28254
|
-
var V = f(Z, Z),
|
|
28264
|
+
var V = f(Z, Z), C = {
|
|
28255
28265
|
action: "create-option",
|
|
28256
28266
|
name: I,
|
|
28257
28267
|
option: V
|
|
28258
28268
|
};
|
|
28259
|
-
g(Pa(w, [].concat(aa(Or(x)), [V]), V),
|
|
28269
|
+
g(Pa(w, [].concat(aa(Or(x)), [V]), V), C);
|
|
28260
28270
|
}
|
|
28261
28271
|
return;
|
|
28262
28272
|
}
|
|
28263
28273
|
g(R, Y);
|
|
28264
|
-
}, [f, Z, w, I,
|
|
28274
|
+
}, [f, Z, w, I, M, m, g, x]);
|
|
28265
28275
|
return re(re({}, b), {}, {
|
|
28266
28276
|
options: S,
|
|
28267
28277
|
onChange: j
|
|
@@ -28493,7 +28503,7 @@ const sF = (e) => ({
|
|
|
28493
28503
|
menuFooterText: w,
|
|
28494
28504
|
isCreatable: x,
|
|
28495
28505
|
asTextSearch: I,
|
|
28496
|
-
menuPortalTarget:
|
|
28506
|
+
menuPortalTarget: M,
|
|
28497
28507
|
...S
|
|
28498
28508
|
}, j) => {
|
|
28499
28509
|
const R = {
|
|
@@ -28529,7 +28539,7 @@ const sF = (e) => ({
|
|
|
28529
28539
|
inputId: A,
|
|
28530
28540
|
loadAsyncValues: _,
|
|
28531
28541
|
asTextSearch: I,
|
|
28532
|
-
menuPortalTarget:
|
|
28542
|
+
menuPortalTarget: M,
|
|
28533
28543
|
debounceMs: Z,
|
|
28534
28544
|
noOptionsMessage: E
|
|
28535
28545
|
}
|
|
@@ -28541,7 +28551,7 @@ const sF = (e) => ({
|
|
|
28541
28551
|
inputId: A,
|
|
28542
28552
|
loadAsyncValues: _,
|
|
28543
28553
|
asTextSearch: I,
|
|
28544
|
-
menuPortalTarget:
|
|
28554
|
+
menuPortalTarget: M,
|
|
28545
28555
|
debounceMs: Z,
|
|
28546
28556
|
noOptionsMessage: E
|
|
28547
28557
|
}
|
|
@@ -28552,7 +28562,7 @@ const sF = (e) => ({
|
|
|
28552
28562
|
ref: j,
|
|
28553
28563
|
inputId: A,
|
|
28554
28564
|
isSearchable: p,
|
|
28555
|
-
menuPortalTarget:
|
|
28565
|
+
menuPortalTarget: M
|
|
28556
28566
|
}
|
|
28557
28567
|
) : /* @__PURE__ */ u.jsx(
|
|
28558
28568
|
q3,
|
|
@@ -28561,7 +28571,7 @@ const sF = (e) => ({
|
|
|
28561
28571
|
ref: j,
|
|
28562
28572
|
inputId: A,
|
|
28563
28573
|
isSearchable: p,
|
|
28564
|
-
menuPortalTarget:
|
|
28574
|
+
menuPortalTarget: M
|
|
28565
28575
|
}
|
|
28566
28576
|
)
|
|
28567
28577
|
}
|
|
@@ -28647,14 +28657,14 @@ function iF() {
|
|
|
28647
28657
|
}
|
|
28648
28658
|
]
|
|
28649
28659
|
), _ = ee(
|
|
28650
|
-
(I) => I.map((
|
|
28651
|
-
value:
|
|
28652
|
-
label: `${
|
|
28653
|
-
meta:
|
|
28660
|
+
(I) => I.map((M) => ({
|
|
28661
|
+
value: M.id,
|
|
28662
|
+
label: `${M.name}`,
|
|
28663
|
+
meta: M
|
|
28654
28664
|
})),
|
|
28655
28665
|
[]
|
|
28656
28666
|
), Z = ee(
|
|
28657
|
-
(I) => I.length > 0 ? I.map((
|
|
28667
|
+
(I) => I.length > 0 ? I.map((M) => M.meta) : [{ id: null, type: "tags" }],
|
|
28658
28668
|
[]
|
|
28659
28669
|
), [E, w] = B(
|
|
28660
28670
|
_(y ?? [])
|
|
@@ -28680,8 +28690,8 @@ function iF() {
|
|
|
28680
28690
|
include: ["tags"]
|
|
28681
28691
|
}
|
|
28682
28692
|
).then((I) => {
|
|
28683
|
-
const
|
|
28684
|
-
v(
|
|
28693
|
+
const M = I.tags ?? [];
|
|
28694
|
+
v(M, {
|
|
28685
28695
|
revalidate: !1
|
|
28686
28696
|
}).then(() => {
|
|
28687
28697
|
a();
|
|
@@ -30559,8 +30569,8 @@ function tk(e, t, a) {
|
|
|
30559
30569
|
};
|
|
30560
30570
|
return { id: e, props: l, observe: f, toggle: p, removeToast: b, toasts: c, clearQueue: y, buildToast: (v, _) => {
|
|
30561
30571
|
if (h(_)) return;
|
|
30562
|
-
let { toastId: Z, updateId: E, data: w, staleId: x, delay: I } = _,
|
|
30563
|
-
|
|
30572
|
+
let { toastId: Z, updateId: E, data: w, staleId: x, delay: I } = _, M = E == null;
|
|
30573
|
+
M && s++;
|
|
30564
30574
|
let S = { ...l, style: l.toastStyle, key: r++, ...Object.fromEntries(Object.entries(_).filter(([R, Y]) => Y != null)), toastId: Z, updateId: E, data: w, isIn: !1, className: Eo(_.className || l.toastClassName), progressClassName: Eo(_.progressClassName || l.progressClassName), autoClose: _.isLoading ? !1 : UF(_.autoClose, l.autoClose), closeToast(R) {
|
|
30565
30575
|
c.get(Z).removalReason = R, b(Z);
|
|
30566
30576
|
}, deleteToast() {
|
|
@@ -30575,7 +30585,7 @@ function tk(e, t, a) {
|
|
|
30575
30585
|
} };
|
|
30576
30586
|
S.closeButton = l.closeButton, _.closeButton === !1 || Zo(_.closeButton) ? S.closeButton = _.closeButton : _.closeButton === !0 && (S.closeButton = Zo(l.closeButton) ? l.closeButton : !0);
|
|
30577
30587
|
let j = { content: v, props: S, staleId: x };
|
|
30578
|
-
l.limit && l.limit > 0 && s > l.limit &&
|
|
30588
|
+
l.limit && l.limit > 0 && s > l.limit && M ? i.push(j) : kn(I) ? setTimeout(() => {
|
|
30579
30589
|
A(j);
|
|
30580
30590
|
}, I) : A(j);
|
|
30581
30591
|
}, setProps(v) {
|
|
@@ -30753,8 +30763,8 @@ function pk(e) {
|
|
|
30753
30763
|
}
|
|
30754
30764
|
}
|
|
30755
30765
|
function b(x) {
|
|
30756
|
-
let { top: I, bottom:
|
|
30757
|
-
x.nativeEvent.type !== "touchend" && e.pauseOnHover && x.clientX >= S && x.clientX <= j && x.clientY >= I && x.clientY <=
|
|
30766
|
+
let { top: I, bottom: M, left: S, right: j } = i.current.getBoundingClientRect();
|
|
30767
|
+
x.nativeEvent.type !== "touchend" && e.pauseOnHover && x.clientX >= S && x.clientX <= j && x.clientY >= I && x.clientY <= M ? A() : y();
|
|
30758
30768
|
}
|
|
30759
30769
|
function y() {
|
|
30760
30770
|
a(!0);
|
|
@@ -30772,8 +30782,8 @@ function pk(e) {
|
|
|
30772
30782
|
let I = i.current;
|
|
30773
30783
|
if (o.canDrag && I) {
|
|
30774
30784
|
o.didMove = !0, t && A(), e.draggableDirection === "x" ? o.delta = x.clientX - o.start : o.delta = x.clientY - o.start, o.start !== x.clientX && (o.canCloseOnClick = !1);
|
|
30775
|
-
let
|
|
30776
|
-
I.style.transform = `translate3d(${
|
|
30785
|
+
let M = e.draggableDirection === "x" ? `${o.delta}px, var(--y)` : `0, calc(${o.delta}px + var(--y))`;
|
|
30786
|
+
I.style.transform = `translate3d(${M},0)`, I.style.opacity = `${1 - Math.abs(o.delta / o.removalDistance)}`;
|
|
30777
30787
|
}
|
|
30778
30788
|
}
|
|
30779
30789
|
function E() {
|
|
@@ -30814,8 +30824,8 @@ function xk({ theme: e, type: t, isLoading: a, icon: r }) {
|
|
|
30814
30824
|
return r === !1 || (q0(r) ? s = r({ ...i, isLoading: a }) : Ct(r) ? s = c0(r, i) : a ? s = Vo.spinner() : _k(t) && (s = Vo[t](i))), s;
|
|
30815
30825
|
}
|
|
30816
30826
|
var Ek = (e) => {
|
|
30817
|
-
let { isRunning: t, preventExitTransition: a, toastRef: r, eventHandlers: s, playToast: i } = pk(e), { closeButton: o, children: l, autoClose: c, onClick: d, type: f, hideProgressBar: m, closeToast: h, transition: p, position: g, className: b, style: y, progressClassName: A, updateId: v, role: _, progress: Z, rtl: E, toastId: w, deleteToast: x, isIn: I, isLoading:
|
|
30818
|
-
return o === !1 || (q0(o) ? $ = o(P) : Ct(o) ? $ = c0(o, P) : $ = QF(P)), ge.createElement(p, { isIn: I, done: x, position: g, preventExitTransition: a, nodeRef: r, playToast: i }, ge.createElement("div", { id: w, tabIndex: 0, onClick: d, "data-in": I, className: D, ...s, style: y, ref: r, ...I && { role: _, "aria-label": R } }, V != null && ge.createElement("div", { className: E1("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !
|
|
30827
|
+
let { isRunning: t, preventExitTransition: a, toastRef: r, eventHandlers: s, playToast: i } = pk(e), { closeButton: o, children: l, autoClose: c, onClick: d, type: f, hideProgressBar: m, closeToast: h, transition: p, position: g, className: b, style: y, progressClassName: A, updateId: v, role: _, progress: Z, rtl: E, toastId: w, deleteToast: x, isIn: I, isLoading: M, closeOnClick: S, theme: j, ariaLabel: R } = e, Y = E1("Toastify__toast", `Toastify__toast-theme--${j}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": E }, { "Toastify__toast--close-on-click": S }), D = q0(b) ? b({ rtl: E, position: g, type: f, defaultClassName: Y }) : E1(Y, b), V = xk(e), C = !!Z || !c, P = { closeToast: h, type: f, theme: j }, $ = null;
|
|
30828
|
+
return o === !1 || (q0(o) ? $ = o(P) : Ct(o) ? $ = c0(o, P) : $ = QF(P)), ge.createElement(p, { isIn: I, done: x, position: g, preventExitTransition: a, nodeRef: r, playToast: i }, ge.createElement("div", { id: w, tabIndex: 0, onClick: d, "data-in": I, className: D, ...s, style: y, ref: r, ...I && { role: _, "aria-label": R } }, V != null && ge.createElement("div", { className: E1("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !M }) }, V), df(l, e, !t), $, !e.customProgressBar && ge.createElement(KF, { ...v && !C ? { key: `p-${v}` } : {}, rtl: E, theme: j, delay: c, isRunning: t, isIn: I, closeToast: h, hide: m, type: f, className: A, controlledProgress: C, progress: Z || 0 })));
|
|
30819
30829
|
}, Zk = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), wk = qF(Zk("bounce", !0)), Vk = { position: "top-right", transition: wk, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" };
|
|
30820
30830
|
function Hk(e) {
|
|
30821
30831
|
let t = { ...Vk, ...e }, a = e.stacked, [r, s] = B(!0), i = te(null), { getToastToRender: o, isToastActive: l, count: c } = fk(t), { className: d, style: f, rtl: m, containerId: h, hotKeys: p } = t;
|
|
@@ -30833,8 +30843,8 @@ function Hk(e) {
|
|
|
30833
30843
|
Array.from(A).reverse().forEach((w, x) => {
|
|
30834
30844
|
let I = w;
|
|
30835
30845
|
I.classList.add("Toastify__toast--stacked"), x > 0 && (I.dataset.collapsed = `${r}`), I.dataset.pos || (I.dataset.pos = _ ? "top" : "bot");
|
|
30836
|
-
let
|
|
30837
|
-
I.style.setProperty("--y", `${_ ?
|
|
30846
|
+
let M = Z * (r ? 0.2 : 1) + (r ? 0 : v * x);
|
|
30847
|
+
I.style.setProperty("--y", `${_ ? M : M * -1}px`), I.style.setProperty("--g", `${v}`), I.style.setProperty("--s", `${1 - (r ? E : 0)}`), Z += I.offsetHeight, E += 0.025;
|
|
30838
30848
|
});
|
|
30839
30849
|
}
|
|
30840
30850
|
}, [r, c, a]), O(() => {
|
|
@@ -31308,7 +31318,7 @@ var N0 = function(e) {
|
|
|
31308
31318
|
} : y, v = A(t);
|
|
31309
31319
|
if (v === "-")
|
|
31310
31320
|
return v;
|
|
31311
|
-
var _ = p ? [] : ["k", "m", "b"], Z = new RegExp("((^|\\D)-\\d)|(-".concat(N0(b), ")")), E = Z.test(v), w = RegExp("(\\d+)-?".concat(N0(b))).exec(t) || [], x = w[0], I = w[1],
|
|
31321
|
+
var _ = p ? [] : ["k", "m", "b"], Z = new RegExp("((^|\\D)-\\d)|(-".concat(N0(b), ")")), E = Z.test(v), w = RegExp("(\\d+)-?".concat(N0(b))).exec(t) || [], x = w[0], I = w[1], M = b ? x ? v.replace(x, "").concat(I) : v.replace(b, "") : v, S = Tk(M, r), j = jk(S, Xt([
|
|
31312
31322
|
r,
|
|
31313
31323
|
i
|
|
31314
31324
|
], _, !0)), R = j;
|
|
@@ -31322,8 +31332,8 @@ var N0 = function(e) {
|
|
|
31322
31332
|
}
|
|
31323
31333
|
var D = E && m ? "-" : "";
|
|
31324
31334
|
if (i && R.includes(i)) {
|
|
31325
|
-
var V = j.split(i),
|
|
31326
|
-
return "".concat(D).concat(
|
|
31335
|
+
var V = j.split(i), C = V[0], P = V[1], $ = d && P ? P.slice(0, d) : P, J = l ? "".concat(i).concat($) : "";
|
|
31336
|
+
return "".concat(D).concat(C).concat(J);
|
|
31327
31337
|
}
|
|
31328
31338
|
return "".concat(D).concat(R);
|
|
31329
31339
|
}, Nk = function(e, t, a) {
|
|
@@ -31402,7 +31412,7 @@ var N0 = function(e) {
|
|
|
31402
31412
|
}
|
|
31403
31413
|
return { modifiedValue: l, cursorPosition: t };
|
|
31404
31414
|
}, Af = Ue(function(e, t) {
|
|
31405
|
-
var a = e.allowDecimals, r = a === void 0 ? !0 : a, s = e.allowNegativeValue, i = s === void 0 ? !0 : s, o = e.id, l = e.name, c = e.className, d = e.customInput, f = e.decimalsLimit, m = e.defaultValue, h = e.disabled, p = h === void 0 ? !1 : h, g = e.maxLength, b = e.value, y = e.onValueChange, A = e.fixedDecimalLength, v = e.placeholder, _ = e.decimalScale, Z = e.prefix, E = e.suffix, w = e.intlConfig, x = e.step, I = e.min,
|
|
31415
|
+
var a = e.allowDecimals, r = a === void 0 ? !0 : a, s = e.allowNegativeValue, i = s === void 0 ? !0 : s, o = e.id, l = e.name, c = e.className, d = e.customInput, f = e.decimalsLimit, m = e.defaultValue, h = e.disabled, p = h === void 0 ? !1 : h, g = e.maxLength, b = e.value, y = e.onValueChange, A = e.fixedDecimalLength, v = e.placeholder, _ = e.decimalScale, Z = e.prefix, E = e.suffix, w = e.intlConfig, x = e.step, I = e.min, M = e.max, S = e.disableGroupSeparators, j = S === void 0 ? !1 : S, R = e.disableAbbreviations, Y = R === void 0 ? !1 : R, D = e.decimalSeparator, V = e.groupSeparator, C = e.onChange, P = e.onFocus, $ = e.onBlur, J = e.onKeyDown, W = e.onKeyUp, L = e.transformRawValue, N = e.formatValueOnBlur, Q = N === void 0 ? !0 : N, q = W2(e, ["allowDecimals", "allowNegativeValue", "id", "name", "className", "customInput", "decimalsLimit", "defaultValue", "disabled", "maxLength", "value", "onValueChange", "fixedDecimalLength", "placeholder", "decimalScale", "prefix", "suffix", "intlConfig", "step", "min", "max", "disableGroupSeparators", "disableAbbreviations", "decimalSeparator", "groupSeparator", "onChange", "onFocus", "onBlur", "onKeyDown", "onKeyUp", "transformRawValue", "formatValueOnBlur"]);
|
|
31406
31416
|
if (D && o4(D))
|
|
31407
31417
|
throw new Error("decimalSeparator cannot be a number");
|
|
31408
31418
|
if (V && o4(V))
|
|
@@ -31464,7 +31474,7 @@ var N0 = function(e) {
|
|
|
31464
31474
|
}
|
|
31465
31475
|
}, y0 = function(He) {
|
|
31466
31476
|
var De = He.target, it = De.value, vt = De.selectionStart;
|
|
31467
|
-
o0(it, vt),
|
|
31477
|
+
o0(it, vt), C && C(He);
|
|
31468
31478
|
}, rt = function(He) {
|
|
31469
31479
|
return P && P(He), Re ? Re.length : 0;
|
|
31470
31480
|
}, Et = function(He) {
|
|
@@ -31484,7 +31494,7 @@ var N0 = function(e) {
|
|
|
31484
31494
|
if (Pt(De), x && (De === "ArrowUp" || De === "ArrowDown")) {
|
|
31485
31495
|
He.preventDefault(), Ve(Re.length);
|
|
31486
31496
|
var it = b != null ? String(b) : void 0, vt = de && it ? it.replace(de, ".") : it, lt = parseFloat(vt ?? Ci(ke({ value: Re }, Je))) || 0, et = De === "ArrowUp" ? lt + x : lt - x;
|
|
31487
|
-
if (I !== void 0 && et < Number(I) || !i && et < 0 ||
|
|
31497
|
+
if (I !== void 0 && et < Number(I) || !i && et < 0 || M !== void 0 && et > Number(M))
|
|
31488
31498
|
return;
|
|
31489
31499
|
var zt = String(x).includes(".") ? Number(String(x).split(".")[1].length) : void 0;
|
|
31490
31500
|
o0(String(zt ? et.toFixed(zt) : et).replace(".", de));
|
|
@@ -31790,7 +31800,7 @@ function xf({
|
|
|
31790
31800
|
}
|
|
31791
31801
|
xf.displayName = "InputCurrencyRange";
|
|
31792
31802
|
const Xk = Wr(
|
|
31793
|
-
async () => await import("./InputDateComponent-
|
|
31803
|
+
async () => await import("./InputDateComponent-CLU0eefS.js").then((e) => ({
|
|
31794
31804
|
default: e.InputDateComponent
|
|
31795
31805
|
}))
|
|
31796
31806
|
), Gr = Ue(
|
|
@@ -31844,68 +31854,77 @@ const Ef = Ue(
|
|
|
31844
31854
|
toHint: b,
|
|
31845
31855
|
fromFeedback: y,
|
|
31846
31856
|
toFeedback: A,
|
|
31847
|
-
|
|
31848
|
-
|
|
31849
|
-
|
|
31857
|
+
stacked: v = !1,
|
|
31858
|
+
fixedPopper: _,
|
|
31859
|
+
...Z
|
|
31860
|
+
}, E) => {
|
|
31861
|
+
const [w, x] = e;
|
|
31850
31862
|
O(
|
|
31851
31863
|
function() {
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
m === !0 ?
|
|
31864
|
+
w == null || x == null || w > x && c([
|
|
31865
|
+
w,
|
|
31866
|
+
m === !0 ? w : c4(w)
|
|
31855
31867
|
]);
|
|
31856
31868
|
},
|
|
31857
|
-
[
|
|
31869
|
+
[w, x]
|
|
31858
31870
|
);
|
|
31859
|
-
const
|
|
31860
|
-
return /* @__PURE__ */ u.jsx(bt, { label: r, hint: d, feedback: f, ...
|
|
31871
|
+
const I = h != null || p != null;
|
|
31872
|
+
return /* @__PURE__ */ u.jsx(bt, { label: r, hint: d, feedback: f, ...Z, children: /* @__PURE__ */ u.jsxs(
|
|
31861
31873
|
"div",
|
|
31862
31874
|
{
|
|
31863
31875
|
className: k("flex", {
|
|
31864
|
-
"
|
|
31865
|
-
"items-
|
|
31876
|
+
"flex-col gap-2": v,
|
|
31877
|
+
"items-center": !I,
|
|
31878
|
+
"items-start": I
|
|
31866
31879
|
}),
|
|
31867
31880
|
children: [
|
|
31868
31881
|
/* @__PURE__ */ u.jsx(
|
|
31869
31882
|
Gr,
|
|
31870
31883
|
{
|
|
31871
|
-
value:
|
|
31872
|
-
onChange: (
|
|
31873
|
-
c([
|
|
31884
|
+
value: w,
|
|
31885
|
+
onChange: (M) => {
|
|
31886
|
+
c([M, x]);
|
|
31874
31887
|
},
|
|
31875
31888
|
placeholder: t,
|
|
31876
31889
|
format: s,
|
|
31877
31890
|
timezone: i,
|
|
31878
|
-
wrapperClassName: "flex-1",
|
|
31891
|
+
wrapperClassName: k("flex-1", {
|
|
31892
|
+
"w-full": v
|
|
31893
|
+
}),
|
|
31879
31894
|
isClearable: l,
|
|
31880
31895
|
autoPlaceholder: o,
|
|
31881
31896
|
feedback: y,
|
|
31882
31897
|
showTimeSelect: m,
|
|
31883
31898
|
label: h,
|
|
31884
|
-
hint: g
|
|
31899
|
+
hint: g,
|
|
31900
|
+
fixedPopper: _
|
|
31885
31901
|
}
|
|
31886
31902
|
),
|
|
31887
|
-
/* @__PURE__ */ u.jsx("div", { className: "px-4 text-gray-300", children:
|
|
31903
|
+
/* @__PURE__ */ u.jsx("div", { className: "px-4 text-gray-300", children: I ? null : /* @__PURE__ */ u.jsx(Jo, { size: 24 }) }),
|
|
31888
31904
|
/* @__PURE__ */ u.jsx(
|
|
31889
31905
|
Gr,
|
|
31890
31906
|
{
|
|
31891
|
-
value:
|
|
31892
|
-
onChange: (
|
|
31907
|
+
value: x,
|
|
31908
|
+
onChange: (M) => {
|
|
31893
31909
|
c([
|
|
31894
|
-
|
|
31895
|
-
m === !0 ?
|
|
31910
|
+
w,
|
|
31911
|
+
m === !0 ? M : c4(M)
|
|
31896
31912
|
]);
|
|
31897
31913
|
},
|
|
31898
31914
|
placeholder: a,
|
|
31899
|
-
minDate:
|
|
31915
|
+
minDate: w ?? void 0,
|
|
31900
31916
|
format: s,
|
|
31901
31917
|
timezone: i,
|
|
31902
|
-
wrapperClassName: "flex-1",
|
|
31918
|
+
wrapperClassName: k("flex-1", {
|
|
31919
|
+
"w-full": v
|
|
31920
|
+
}),
|
|
31903
31921
|
isClearable: l,
|
|
31904
31922
|
autoPlaceholder: o,
|
|
31905
31923
|
feedback: A,
|
|
31906
31924
|
showTimeSelect: m,
|
|
31907
31925
|
label: p,
|
|
31908
|
-
hint: b
|
|
31926
|
+
hint: b,
|
|
31927
|
+
fixedPopper: _
|
|
31909
31928
|
}
|
|
31910
31929
|
)
|
|
31911
31930
|
]
|
|
@@ -32634,12 +32653,12 @@ function wf({
|
|
|
32634
32653
|
titleSize: w,
|
|
32635
32654
|
variant: x,
|
|
32636
32655
|
actionButton: I,
|
|
32637
|
-
...
|
|
32656
|
+
...M
|
|
32638
32657
|
}) => {
|
|
32639
32658
|
const S = typeof E == "function" ? E(g) : lT({
|
|
32640
32659
|
title: E,
|
|
32641
32660
|
recordCount: g
|
|
32642
|
-
}), j = w ?? (x === "table" || x === "boxed" ? "normal" : "small"), R = x === "boxed" || x === "table" ? "none" : void 0, Y = "headings" in
|
|
32661
|
+
}), j = w ?? (x === "table" || x === "boxed" ? "normal" : "small"), R = x === "boxed" || x === "table" ? "none" : void 0, Y = "headings" in M ? M.headings : void 0;
|
|
32643
32662
|
if (m)
|
|
32644
32663
|
return /* @__PURE__ */ u.jsx(
|
|
32645
32664
|
pa,
|
|
@@ -32699,9 +32718,9 @@ function wf({
|
|
|
32699
32718
|
f({ query: t });
|
|
32700
32719
|
}
|
|
32701
32720
|
}
|
|
32702
|
-
) : o ? Array(p ? 8 : 2).fill(null).map((V,
|
|
32721
|
+
) : o ? Array(p ? 8 : 2).fill(null).map((V, C) => (
|
|
32703
32722
|
// biome-ignore lint/suspicious/noArrayIndexKey: Using index as key is acceptable here since items are static
|
|
32704
|
-
/* @__PURE__ */ u.jsx(_, { isLoading: !0, delayMs: 0 },
|
|
32723
|
+
/* @__PURE__ */ u.jsx(_, { isLoading: !0, delayMs: 0 }, C)
|
|
32705
32724
|
)) : /* @__PURE__ */ u.jsx(
|
|
32706
32725
|
cT,
|
|
32707
32726
|
{
|
|
@@ -32953,8 +32972,8 @@ const pT = () => {
|
|
|
32953
32972
|
InputResourceGroupOverlay: w,
|
|
32954
32973
|
closeInputResourceGroupOverlay: x,
|
|
32955
32974
|
openInputResourceGroupOverlay: I
|
|
32956
|
-
} = pT(),
|
|
32957
|
-
return
|
|
32975
|
+
} = pT(), M = !Z && _.length === 0, S = d === !0 && E === 1 && e.length === 0;
|
|
32976
|
+
return M || S ? null : /* @__PURE__ */ u.jsx(Ot, { isLoading: Z, children: /* @__PURE__ */ u.jsxs(
|
|
32958
32977
|
bt,
|
|
32959
32978
|
{
|
|
32960
32979
|
fieldset: !0,
|
|
@@ -33493,7 +33512,7 @@ function AT({
|
|
|
33493
33512
|
}
|
|
33494
33513
|
vT.displayName = "HookedMarketWithCurrencySelector";
|
|
33495
33514
|
const _T = Wr(
|
|
33496
|
-
async () => await import("./RuleEngineComponent-
|
|
33515
|
+
async () => await import("./RuleEngineComponent-0_e_USma.js").then((e) => ({
|
|
33497
33516
|
default: e.RuleEngine
|
|
33498
33517
|
}))
|
|
33499
33518
|
), xT = (e) => /* @__PURE__ */ u.jsx(Xr, { fallback: /* @__PURE__ */ u.jsx(Yt, { className: "h-11 w-full" }), children: /* @__PURE__ */ u.jsx(_T, { ...e }) });
|
|
@@ -34081,7 +34100,7 @@ const HN = pe(
|
|
|
34081
34100
|
);
|
|
34082
34101
|
return /* @__PURE__ */ u.jsx("table", { className: "w-full", children: /* @__PURE__ */ u.jsxs("tbody", { children: [
|
|
34083
34102
|
m.map((p, g, b) => {
|
|
34084
|
-
const y = g === b.length - 1, A = p.type === "line_items" ? d(p) && p.gift_card?.code != null ? Rb(p.gift_card.code) : p.item_type === "skus" ? p.sku_code : p.bundle_code : p.sku_code, v = p.name, _ = d(p) ? "gift_card" : p.image_url, Z = p.type === "line_items" && p.line_item_options != null, E = p.type === "return_line_items" && p.return_reason != null, w = p.type === "stock_line_items" && p.stockTransfer != null, x = p.type === "line_items" && p.item_type === "bundles" && p.bundle_code != null, I = "tax_amount_cents" in p && p.tax_amount_cents != null && p.tax_amount_cents > 0,
|
|
34103
|
+
const y = g === b.length - 1, A = p.type === "line_items" ? d(p) && p.gift_card?.code != null ? Rb(p.gift_card.code) : p.item_type === "skus" ? p.sku_code : p.bundle_code : p.sku_code, v = p.name, _ = d(p) ? "gift_card" : p.image_url, Z = p.type === "line_items" && p.line_item_options != null, E = p.type === "return_line_items" && p.return_reason != null, w = p.type === "stock_line_items" && p.stockTransfer != null, x = p.type === "line_items" && p.item_type === "bundles" && p.bundle_code != null, I = "tax_amount_cents" in p && p.tax_amount_cents != null && p.tax_amount_cents > 0, M = p.type === "line_items" && (!z(p.discount_breakdown) || I);
|
|
34085
34104
|
return /* @__PURE__ */ u.jsxs(k0, { children: [
|
|
34086
34105
|
/* @__PURE__ */ u.jsxs("tr", { className: "h-0", children: [
|
|
34087
34106
|
/* @__PURE__ */ u.jsx(
|
|
@@ -34173,7 +34192,7 @@ const HN = pe(
|
|
|
34173
34192
|
"font-semibold": t === "normal",
|
|
34174
34193
|
"text-sm font-bold": t === "small"
|
|
34175
34194
|
}),
|
|
34176
|
-
children:
|
|
34195
|
+
children: M ? /* @__PURE__ */ u.jsx(OT, { lineItem: p }) : p.formatted_total_amount
|
|
34177
34196
|
}
|
|
34178
34197
|
) })
|
|
34179
34198
|
] }),
|
|
@@ -36909,7 +36928,7 @@ function Lj({
|
|
|
36909
36928
|
), b = ee(() => {
|
|
36910
36929
|
const x = o({ queryString: "" }), I = o({
|
|
36911
36930
|
queryString: r
|
|
36912
|
-
}),
|
|
36931
|
+
}), M = Object.entries(I).reduce(
|
|
36913
36932
|
(S, [j, R]) => {
|
|
36914
36933
|
const Y = e.find($f)?.sdk.predicate;
|
|
36915
36934
|
return g.includes(j) || j === "viewTitle" || j === Y ? {
|
|
@@ -36923,7 +36942,7 @@ function Lj({
|
|
|
36923
36942
|
l({
|
|
36924
36943
|
formValues: {
|
|
36925
36944
|
...x,
|
|
36926
|
-
...
|
|
36945
|
+
...M
|
|
36927
36946
|
}
|
|
36928
36947
|
})
|
|
36929
36948
|
);
|
|
@@ -36974,19 +36993,19 @@ function Lj({
|
|
|
36974
36993
|
}
|
|
36975
36994
|
),
|
|
36976
36995
|
v.map(([x, I]) => {
|
|
36977
|
-
const
|
|
36996
|
+
const M = Sj({
|
|
36978
36997
|
instructions: e,
|
|
36979
36998
|
filterPredicate: x
|
|
36980
36999
|
});
|
|
36981
|
-
if (
|
|
37000
|
+
if (M == null || M.type === "textSearch" && M.render.component === "searchBar")
|
|
36982
37001
|
return null;
|
|
36983
37002
|
const S = Ha(I);
|
|
36984
|
-
return
|
|
37003
|
+
return M.render.component === "inputResourceGroup" && S[0] !== void 0 && S.length === 1 ? /* @__PURE__ */ u.jsx(
|
|
36985
37004
|
Fj,
|
|
36986
37005
|
{
|
|
36987
37006
|
id: S[0],
|
|
36988
|
-
resource:
|
|
36989
|
-
fieldForLabel:
|
|
37007
|
+
resource: M.render.props.resource,
|
|
37008
|
+
fieldForLabel: M.render.props.fieldForLabel,
|
|
36990
37009
|
onClick: () => {
|
|
36991
37010
|
y(x);
|
|
36992
37011
|
},
|
|
@@ -37000,7 +37019,7 @@ function Lj({
|
|
|
37000
37019
|
{
|
|
37001
37020
|
label: kj({
|
|
37002
37021
|
values: I,
|
|
37003
|
-
instructionItem:
|
|
37022
|
+
instructionItem: M
|
|
37004
37023
|
}),
|
|
37005
37024
|
onClick: () => {
|
|
37006
37025
|
y(x);
|