@pipedream/connect-react 1.0.0-preview.22 → 1.0.0-preview.23
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/connect-react.es.js +238 -231
- package/dist/connect-react.umd.js +7 -7
- package/package.json +2 -2
package/dist/connect-react.es.js
CHANGED
|
@@ -30,8 +30,8 @@ function vs(e) {
|
|
|
30
30
|
var wr = { exports: {} };
|
|
31
31
|
wr.exports;
|
|
32
32
|
(function(e, t) {
|
|
33
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, a = 9007199254740991, s = "[object Arguments]", u = "[object Array]", l = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", I = "[object Number]", v = "[object Null]", A = "[object Object]",
|
|
34
|
-
ee[K] = ee[ie] = ee[M] = ee[Y] = ee[_] = ee[ue] = ee[me] = ee[b] = ee[ve] = !0, ee[s] = ee[u] = ee[N] = ee[c] = ee[O] = ee[d] = ee[f] = ee[p] = ee[g] = ee[I] = ee[A] = ee[P] = ee[
|
|
33
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, a = 9007199254740991, s = "[object Arguments]", u = "[object Array]", l = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", I = "[object Number]", v = "[object Null]", A = "[object Object]", E = "[object Promise]", S = "[object Proxy]", P = "[object RegExp]", w = "[object Set]", k = "[object String]", R = "[object Symbol]", T = "[object Undefined]", H = "[object WeakMap]", N = "[object ArrayBuffer]", O = "[object DataView]", K = "[object Float32Array]", ie = "[object Float64Array]", M = "[object Int8Array]", Y = "[object Int16Array]", _ = "[object Int32Array]", ue = "[object Uint8Array]", me = "[object Uint8ClampedArray]", b = "[object Uint16Array]", ve = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, m = /^\[object .+?Constructor\]$/, fe = /^(?:0|[1-9]\d*)$/, ee = {};
|
|
34
|
+
ee[K] = ee[ie] = ee[M] = ee[Y] = ee[_] = ee[ue] = ee[me] = ee[b] = ee[ve] = !0, ee[s] = ee[u] = ee[N] = ee[c] = ee[O] = ee[d] = ee[f] = ee[p] = ee[g] = ee[I] = ee[A] = ee[P] = ee[w] = ee[k] = ee[H] = !1;
|
|
35
35
|
var de = typeof cn == "object" && cn && cn.Object === Object && cn, Fe = typeof self == "object" && self && self.Object === Object && self, D = de || Fe || Function("return this")(), X = t && !t.nodeType && t, U = X && !0 && e && !e.nodeType && e, pe = U && U.exports === X, Pe = pe && de.process, We = function() {
|
|
36
36
|
try {
|
|
37
37
|
return Pe && Pe.binding && Pe.binding("util");
|
|
@@ -342,7 +342,7 @@ wr.exports;
|
|
|
342
342
|
return h == x + "";
|
|
343
343
|
case g:
|
|
344
344
|
var Ge = Yr;
|
|
345
|
-
case
|
|
345
|
+
case w:
|
|
346
346
|
var Re = L & i;
|
|
347
347
|
if (Ge || (Ge = Ur), h.size != x.size && !Re)
|
|
348
348
|
return !1;
|
|
@@ -415,7 +415,7 @@ wr.exports;
|
|
|
415
415
|
return yt.call(h, x);
|
|
416
416
|
}));
|
|
417
417
|
} : Jl, Ft = Tn;
|
|
418
|
-
(qr && Ft(new qr(new ArrayBuffer(1))) != O || Bn && Ft(new Bn()) != g || $r && Ft($r.resolve()) !=
|
|
418
|
+
(qr && Ft(new qr(new ArrayBuffer(1))) != O || Bn && Ft(new Bn()) != g || $r && Ft($r.resolve()) != E || Kr && Ft(new Kr()) != w || ei && Ft(new ei()) != H) && (Ft = function(h) {
|
|
419
419
|
var x = Tn(h), G = x == A ? h.constructor : void 0, L = G ? Zt(G) : "";
|
|
420
420
|
if (L)
|
|
421
421
|
switch (L) {
|
|
@@ -424,9 +424,9 @@ wr.exports;
|
|
|
424
424
|
case tl:
|
|
425
425
|
return g;
|
|
426
426
|
case nl:
|
|
427
|
-
return w;
|
|
428
|
-
case rl:
|
|
429
427
|
return E;
|
|
428
|
+
case rl:
|
|
429
|
+
return w;
|
|
430
430
|
case il:
|
|
431
431
|
return H;
|
|
432
432
|
}
|
|
@@ -808,15 +808,15 @@ function ws(e) {
|
|
|
808
808
|
g = Promise.reject(v);
|
|
809
809
|
}
|
|
810
810
|
Promise.resolve(g).then(d).catch((v) => {
|
|
811
|
-
var
|
|
811
|
+
var w;
|
|
812
812
|
if (r)
|
|
813
813
|
return;
|
|
814
|
-
const A = e.retry ?? (tn ? 0 : 3),
|
|
814
|
+
const A = e.retry ?? (tn ? 0 : 3), E = e.retryDelay ?? uc, S = typeof E == "function" ? E(n, v) : E, P = A === !0 || typeof A == "number" && n < A || typeof A == "function" && A(n, v);
|
|
815
815
|
if (t || !P) {
|
|
816
816
|
f(v);
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
|
-
n++, (
|
|
819
|
+
n++, (w = e.onFail) == null || w.call(e, n, v), rc(S).then(() => l() ? void 0 : p()).then(() => {
|
|
820
820
|
t ? f(v) : y();
|
|
821
821
|
});
|
|
822
822
|
});
|
|
@@ -1303,7 +1303,7 @@ var lt, ps, pc = (ps = class extends Kn {
|
|
|
1303
1303
|
this.execute(this.state.variables);
|
|
1304
1304
|
}
|
|
1305
1305
|
async execute(t) {
|
|
1306
|
-
var i, o, a, s, u, l, c, d, f, p, y, g, I, v, A,
|
|
1306
|
+
var i, o, a, s, u, l, c, d, f, p, y, g, I, v, A, E, S, P, w, k;
|
|
1307
1307
|
z(this, qt, ws({
|
|
1308
1308
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
1309
1309
|
onFail: (R, T) => {
|
|
@@ -1359,7 +1359,7 @@ var lt, ps, pc = (ps = class extends Kn {
|
|
|
1359
1359
|
t,
|
|
1360
1360
|
this.state.context,
|
|
1361
1361
|
this
|
|
1362
|
-
)), await ((
|
|
1362
|
+
)), await ((E = (A = this.options).onError) == null ? void 0 : E.call(
|
|
1363
1363
|
A,
|
|
1364
1364
|
R,
|
|
1365
1365
|
t,
|
|
@@ -1371,8 +1371,8 @@ var lt, ps, pc = (ps = class extends Kn {
|
|
|
1371
1371
|
this.state.variables,
|
|
1372
1372
|
this.state.context,
|
|
1373
1373
|
this
|
|
1374
|
-
)), await ((k = (
|
|
1375
|
-
|
|
1374
|
+
)), await ((k = (w = this.options).onSettled) == null ? void 0 : k.call(
|
|
1375
|
+
w,
|
|
1376
1376
|
void 0,
|
|
1377
1377
|
R,
|
|
1378
1378
|
t,
|
|
@@ -1548,47 +1548,47 @@ function Zo(e) {
|
|
|
1548
1548
|
let s = { pages: [], pageParams: [] }, u = 0;
|
|
1549
1549
|
const l = async () => {
|
|
1550
1550
|
let g = !1;
|
|
1551
|
-
const I = (
|
|
1552
|
-
Object.defineProperty(
|
|
1551
|
+
const I = (E) => {
|
|
1552
|
+
Object.defineProperty(E, "signal", {
|
|
1553
1553
|
enumerable: !0,
|
|
1554
1554
|
get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
|
|
1555
1555
|
g = !0;
|
|
1556
1556
|
}), t.signal)
|
|
1557
1557
|
});
|
|
1558
|
-
}, v = xs(t.options, t.fetchOptions), A = async (
|
|
1558
|
+
}, v = xs(t.options, t.fetchOptions), A = async (E, S, P) => {
|
|
1559
1559
|
if (g)
|
|
1560
1560
|
return Promise.reject();
|
|
1561
|
-
if (S == null &&
|
|
1562
|
-
return Promise.resolve(
|
|
1563
|
-
const
|
|
1561
|
+
if (S == null && E.pages.length)
|
|
1562
|
+
return Promise.resolve(E);
|
|
1563
|
+
const w = {
|
|
1564
1564
|
queryKey: t.queryKey,
|
|
1565
1565
|
pageParam: S,
|
|
1566
1566
|
direction: P ? "backward" : "forward",
|
|
1567
1567
|
meta: t.options.meta
|
|
1568
1568
|
};
|
|
1569
|
-
I(
|
|
1569
|
+
I(w);
|
|
1570
1570
|
const k = await v(
|
|
1571
|
-
|
|
1571
|
+
w
|
|
1572
1572
|
), { maxPages: R } = t.options, T = P ? oc : ic;
|
|
1573
1573
|
return {
|
|
1574
|
-
pages: T(
|
|
1575
|
-
pageParams: T(
|
|
1574
|
+
pages: T(E.pages, k, R),
|
|
1575
|
+
pageParams: T(E.pageParams, S, R)
|
|
1576
1576
|
};
|
|
1577
1577
|
};
|
|
1578
1578
|
if (i && o.length) {
|
|
1579
|
-
const
|
|
1579
|
+
const E = i === "backward", S = E ? mc : jo, P = {
|
|
1580
1580
|
pages: o,
|
|
1581
1581
|
pageParams: a
|
|
1582
|
-
},
|
|
1583
|
-
s = await A(P,
|
|
1582
|
+
}, w = S(r, P);
|
|
1583
|
+
s = await A(P, w, E);
|
|
1584
1584
|
} else {
|
|
1585
|
-
const
|
|
1585
|
+
const E = e ?? o.length;
|
|
1586
1586
|
do {
|
|
1587
1587
|
const S = u === 0 ? a[0] ?? r.initialPageParam : jo(r, s);
|
|
1588
1588
|
if (u > 0 && S == null)
|
|
1589
1589
|
break;
|
|
1590
1590
|
s = await A(s, S), u++;
|
|
1591
|
-
} while (u <
|
|
1591
|
+
} while (u < E);
|
|
1592
1592
|
}
|
|
1593
1593
|
return s;
|
|
1594
1594
|
};
|
|
@@ -1977,12 +1977,12 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, gs, bc = (gs = class {
|
|
|
1977
1977
|
), f = !0);
|
|
1978
1978
|
}
|
|
1979
1979
|
C(this, pt) && (y = C(this, pt), p = C(this, wn), g = Date.now(), I = "error");
|
|
1980
|
-
const v = d.fetchStatus === "fetching", A = I === "pending",
|
|
1980
|
+
const v = d.fetchStatus === "fetching", A = I === "pending", E = I === "error", S = A && v, P = p !== void 0, k = {
|
|
1981
1981
|
status: I,
|
|
1982
1982
|
fetchStatus: d.fetchStatus,
|
|
1983
1983
|
isPending: A,
|
|
1984
1984
|
isSuccess: I === "success",
|
|
1985
|
-
isError:
|
|
1985
|
+
isError: E,
|
|
1986
1986
|
isInitialLoading: S,
|
|
1987
1987
|
isLoading: S,
|
|
1988
1988
|
data: p,
|
|
@@ -1996,10 +1996,10 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, gs, bc = (gs = class {
|
|
|
1996
1996
|
isFetchedAfterMount: d.dataUpdateCount > l.dataUpdateCount || d.errorUpdateCount > l.errorUpdateCount,
|
|
1997
1997
|
isFetching: v,
|
|
1998
1998
|
isRefetching: v && !A,
|
|
1999
|
-
isLoadingError:
|
|
1999
|
+
isLoadingError: E && !P,
|
|
2000
2000
|
isPaused: d.fetchStatus === "paused",
|
|
2001
2001
|
isPlaceholderData: f,
|
|
2002
|
-
isRefetchError:
|
|
2002
|
+
isRefetchError: E && P,
|
|
2003
2003
|
isStale: no(t, n),
|
|
2004
2004
|
refetch: this.refetch,
|
|
2005
2005
|
promise: C(this, Dt)
|
|
@@ -2387,12 +2387,12 @@ const Cr = [
|
|
|
2387
2387
|
}, [
|
|
2388
2388
|
i.key
|
|
2389
2389
|
]);
|
|
2390
|
-
const
|
|
2390
|
+
const E = (D) => v[D.name];
|
|
2391
2391
|
let S = o || {};
|
|
2392
2392
|
const [
|
|
2393
2393
|
P,
|
|
2394
|
-
|
|
2395
|
-
] = Ce(S), k = t.onUpdateConfiguredProps ||
|
|
2394
|
+
w
|
|
2395
|
+
] = Ce(S), k = t.onUpdateConfiguredProps || w;
|
|
2396
2396
|
t.onUpdateConfiguredProps || (S = P);
|
|
2397
2397
|
const [
|
|
2398
2398
|
R,
|
|
@@ -2471,7 +2471,7 @@ const Cr = [
|
|
|
2471
2471
|
let X;
|
|
2472
2472
|
for (let U = 0; U < _.length; U++) {
|
|
2473
2473
|
const pe = _[U];
|
|
2474
|
-
if (pe.hidden || pe.optional && !
|
|
2474
|
+
if (pe.hidden || pe.optional && !E(pe))
|
|
2475
2475
|
continue;
|
|
2476
2476
|
if (D[pe.name] === void 0 && X == null && (pe.type === "app" || pe.remoteOptions)) {
|
|
2477
2477
|
X = U;
|
|
@@ -2491,7 +2491,7 @@ const Cr = [
|
|
|
2491
2491
|
Yt(() => {
|
|
2492
2492
|
const D = {};
|
|
2493
2493
|
for (const X of _) {
|
|
2494
|
-
if (X.hidden || Cr.includes(X.type) || X.optional && !
|
|
2494
|
+
if (X.hidden || Cr.includes(X.type) || X.optional && !E(X))
|
|
2495
2495
|
continue;
|
|
2496
2496
|
const U = S[X.name];
|
|
2497
2497
|
U === void 0 ? "default" in X && X.default != null && (D[X.name] = X.default) : X.type === "integer" && typeof U != "number" ? delete D[X.name] : D[X.name] = U;
|
|
@@ -2551,7 +2551,7 @@ const Cr = [
|
|
|
2551
2551
|
dynamicPropsQueryIsFetching: ie,
|
|
2552
2552
|
errors: g,
|
|
2553
2553
|
fields: d,
|
|
2554
|
-
optionalPropIsEnabled:
|
|
2554
|
+
optionalPropIsEnabled: E,
|
|
2555
2555
|
optionalPropSetEnabled: fe,
|
|
2556
2556
|
propsNeedConfiguring: M,
|
|
2557
2557
|
queryDisabledIdx: l,
|
|
@@ -2676,15 +2676,15 @@ function bt(e, t) {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
var _c = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
2678
2678
|
function Ds(e) {
|
|
2679
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, a = o === void 0 ? null : o, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, p = e.value, y = bt(e, _c), g = Ce(s !== void 0 ? s : n), I = At(g, 2), v = I[0], A = I[1],
|
|
2679
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, o = e.defaultValue, a = o === void 0 ? null : o, s = e.inputValue, u = e.menuIsOpen, l = e.onChange, c = e.onInputChange, d = e.onMenuClose, f = e.onMenuOpen, p = e.value, y = bt(e, _c), g = Ce(s !== void 0 ? s : n), I = At(g, 2), v = I[0], A = I[1], E = Ce(u !== void 0 ? u : i), S = At(E, 2), P = S[0], w = S[1], k = Ce(p !== void 0 ? p : a), R = At(k, 2), T = R[0], H = R[1], N = Ve(function(ue, me) {
|
|
2680
2680
|
typeof l == "function" && l(ue, me), H(ue);
|
|
2681
2681
|
}, [l]), O = Ve(function(ue, me) {
|
|
2682
2682
|
var b;
|
|
2683
2683
|
typeof c == "function" && (b = c(ue, me)), A(b !== void 0 ? b : ue);
|
|
2684
2684
|
}, [c]), K = Ve(function() {
|
|
2685
|
-
typeof f == "function" && f(),
|
|
2685
|
+
typeof f == "function" && f(), w(!0);
|
|
2686
2686
|
}, [f]), ie = Ve(function() {
|
|
2687
|
-
typeof d == "function" && d(),
|
|
2687
|
+
typeof d == "function" && d(), w(!1);
|
|
2688
2688
|
}, [d]), M = s !== void 0 ? s : v, Y = u !== void 0 ? u : P, _ = p !== void 0 ? p : T;
|
|
2689
2689
|
return Z(Z({}, y), {}, {
|
|
2690
2690
|
inputValue: M,
|
|
@@ -2936,8 +2936,8 @@ function ea(e, t, n, r) {
|
|
|
2936
2936
|
const f = St(o), p = r;
|
|
2937
2937
|
let y = f, g = Li(y);
|
|
2938
2938
|
for (; g && r && p !== y; ) {
|
|
2939
|
-
const I = Ko(g), v = g.getBoundingClientRect(), A = oo(g),
|
|
2940
|
-
u *= I.x, l *= I.y, c *= I.x, d *= I.y, u +=
|
|
2939
|
+
const I = Ko(g), v = g.getBoundingClientRect(), A = oo(g), E = v.left + (g.clientLeft + parseFloat(A.paddingLeft)) * I.x, S = v.top + (g.clientTop + parseFloat(A.paddingTop)) * I.y;
|
|
2940
|
+
u *= I.x, l *= I.y, c *= I.x, d *= I.y, u += E, l += S, y = St(g), g = Li(y);
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
return sd({
|
|
@@ -2968,17 +2968,17 @@ function md(e, t) {
|
|
|
2968
2968
|
rootMargin: -p + "px " + -y + "px " + -g + "px " + -I + "px",
|
|
2969
2969
|
threshold: ad(0, od(1, u)) || 1
|
|
2970
2970
|
};
|
|
2971
|
-
let
|
|
2971
|
+
let E = !0;
|
|
2972
2972
|
function S(P) {
|
|
2973
|
-
const
|
|
2974
|
-
if (
|
|
2975
|
-
if (!
|
|
2973
|
+
const w = P[0].intersectionRatio;
|
|
2974
|
+
if (w !== u) {
|
|
2975
|
+
if (!E)
|
|
2976
2976
|
return a();
|
|
2977
|
-
|
|
2977
|
+
w ? a(!1, w) : r = setTimeout(() => {
|
|
2978
2978
|
a(!1, 1e-7);
|
|
2979
2979
|
}, 1e3);
|
|
2980
2980
|
}
|
|
2981
|
-
|
|
2981
|
+
E = !1;
|
|
2982
2982
|
}
|
|
2983
2983
|
try {
|
|
2984
2984
|
n = new IntersectionObserver(S, {
|
|
@@ -3012,8 +3012,8 @@ function bd(e, t, n, r) {
|
|
|
3012
3012
|
a && (p = new ResizeObserver((v) => {
|
|
3013
3013
|
let [A] = v;
|
|
3014
3014
|
A && A.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
3015
|
-
var
|
|
3016
|
-
(
|
|
3015
|
+
var E;
|
|
3016
|
+
(E = p) == null || E.observe(t);
|
|
3017
3017
|
})), n();
|
|
3018
3018
|
}), l && !u && p.observe(l), p.observe(t));
|
|
3019
3019
|
let y, g = u ? ea(e) : null;
|
|
@@ -3159,7 +3159,7 @@ function Od(e) {
|
|
|
3159
3159
|
maxHeight: t
|
|
3160
3160
|
};
|
|
3161
3161
|
if (!n || !n.offsetParent) return l;
|
|
3162
|
-
var c = u.getBoundingClientRect(), d = c.height, f = n.getBoundingClientRect(), p = f.bottom, y = f.height, g = f.top, I = n.offsetParent.getBoundingClientRect(), v = I.top, A = a ? window.innerHeight : Cd(u),
|
|
3162
|
+
var c = u.getBoundingClientRect(), d = c.height, f = n.getBoundingClientRect(), p = f.bottom, y = f.height, g = f.top, I = n.offsetParent.getBoundingClientRect(), v = I.top, A = a ? window.innerHeight : Cd(u), E = Zs(u), S = parseInt(getComputedStyle(n).marginBottom, 10), P = parseInt(getComputedStyle(n).marginTop, 10), w = v - P, k = A - g, R = w + E, T = d - E - g, H = p - A + E + S, N = E + g - P, O = 160;
|
|
3163
3163
|
switch (i) {
|
|
3164
3164
|
case "auto":
|
|
3165
3165
|
case "bottom":
|
|
@@ -3182,7 +3182,7 @@ function Od(e) {
|
|
|
3182
3182
|
};
|
|
3183
3183
|
}
|
|
3184
3184
|
if (i === "auto" || a) {
|
|
3185
|
-
var ie = t, M = a ?
|
|
3185
|
+
var ie = t, M = a ? w : R;
|
|
3186
3186
|
return M >= r && (ie = Math.min(M - S - s, t)), {
|
|
3187
3187
|
placement: "top",
|
|
3188
3188
|
maxHeight: ie
|
|
@@ -3195,7 +3195,7 @@ function Od(e) {
|
|
|
3195
3195
|
};
|
|
3196
3196
|
break;
|
|
3197
3197
|
case "top":
|
|
3198
|
-
if (
|
|
3198
|
+
if (w >= y)
|
|
3199
3199
|
return {
|
|
3200
3200
|
placement: "top",
|
|
3201
3201
|
maxHeight: t
|
|
@@ -3205,9 +3205,9 @@ function Od(e) {
|
|
|
3205
3205
|
placement: "top",
|
|
3206
3206
|
maxHeight: t
|
|
3207
3207
|
};
|
|
3208
|
-
if (!a && R >= r || a &&
|
|
3208
|
+
if (!a && R >= r || a && w >= r) {
|
|
3209
3209
|
var Y = t;
|
|
3210
|
-
return (!a && R >= r || a &&
|
|
3210
|
+
return (!a && R >= r || a && w >= r) && (Y = a ? w - P : R - P), o && mr(u, N, O), {
|
|
3211
3211
|
placement: "top",
|
|
3212
3212
|
maxHeight: Y
|
|
3213
3213
|
};
|
|
@@ -3242,20 +3242,20 @@ var Js = function(t) {
|
|
|
3242
3242
|
marginTop: s.menuGutter
|
|
3243
3243
|
});
|
|
3244
3244
|
}, Ys = /* @__PURE__ */ $n(null), Dd = function(t) {
|
|
3245
|
-
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, l = Pn(Ys) || {}, c = l.setPortalPlacement, d = xt(null), f = Ce(i), p = At(f, 2), y = p[0], g = p[1], I = Ce(null), v = At(I, 2), A = v[0],
|
|
3245
|
+
var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, o = t.menuPlacement, a = t.menuPosition, s = t.menuShouldScrollIntoView, u = t.theme, l = Pn(Ys) || {}, c = l.setPortalPlacement, d = xt(null), f = Ce(i), p = At(f, 2), y = p[0], g = p[1], I = Ce(null), v = At(I, 2), A = v[0], E = v[1], S = u.spacing.controlHeight;
|
|
3246
3246
|
return Xi(function() {
|
|
3247
3247
|
var P = d.current;
|
|
3248
3248
|
if (P) {
|
|
3249
|
-
var
|
|
3249
|
+
var w = a === "fixed", k = s && !w, R = Od({
|
|
3250
3250
|
maxHeight: i,
|
|
3251
3251
|
menuEl: P,
|
|
3252
3252
|
minHeight: r,
|
|
3253
3253
|
placement: o,
|
|
3254
3254
|
shouldScroll: k,
|
|
3255
|
-
isFixedPosition:
|
|
3255
|
+
isFixedPosition: w,
|
|
3256
3256
|
controlHeight: S
|
|
3257
3257
|
});
|
|
3258
|
-
g(R.maxHeight),
|
|
3258
|
+
g(R.maxHeight), E(R.placement), c == null || c(R.placement);
|
|
3259
3259
|
}
|
|
3260
3260
|
}, [i, o, a, s, r, c, S]), n({
|
|
3261
3261
|
ref: d,
|
|
@@ -3331,7 +3331,7 @@ var Js = function(t) {
|
|
|
3331
3331
|
return {
|
|
3332
3332
|
setPortalPlacement: p
|
|
3333
3333
|
};
|
|
3334
|
-
}, []), g = Ce(null), I = At(g, 2), v = I[0], A = I[1],
|
|
3334
|
+
}, []), g = Ce(null), I = At(g, 2), v = I[0], A = I[1], E = Ve(function() {
|
|
3335
3335
|
if (i) {
|
|
3336
3336
|
var k = Sd(i), R = s === "fixed" ? 0 : window.pageYOffset, T = k[f] + R;
|
|
3337
3337
|
(T !== (v == null ? void 0 : v.offset) || k.left !== (v == null ? void 0 : v.rect.left) || k.width !== (v == null ? void 0 : v.rect.width)) && A({
|
|
@@ -3341,13 +3341,13 @@ var Js = function(t) {
|
|
|
3341
3341
|
}
|
|
3342
3342
|
}, [i, s, f, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
|
|
3343
3343
|
Xi(function() {
|
|
3344
|
-
|
|
3345
|
-
}, [
|
|
3344
|
+
E();
|
|
3345
|
+
}, [E]);
|
|
3346
3346
|
var S = Ve(function() {
|
|
3347
|
-
typeof l.current == "function" && (l.current(), l.current = null), i && u.current && (l.current = bd(i, u.current,
|
|
3347
|
+
typeof l.current == "function" && (l.current(), l.current = null), i && u.current && (l.current = bd(i, u.current, E, {
|
|
3348
3348
|
elementResize: "ResizeObserver" in window
|
|
3349
3349
|
}));
|
|
3350
|
-
}, [i,
|
|
3350
|
+
}, [i, E]);
|
|
3351
3351
|
Xi(function() {
|
|
3352
3352
|
S();
|
|
3353
3353
|
}, [S]);
|
|
@@ -3355,7 +3355,7 @@ var Js = function(t) {
|
|
|
3355
3355
|
u.current = k, S();
|
|
3356
3356
|
}, [S]);
|
|
3357
3357
|
if (!n && s !== "fixed" || !v) return null;
|
|
3358
|
-
var
|
|
3358
|
+
var w = j("div", J({
|
|
3359
3359
|
ref: P
|
|
3360
3360
|
}, we(Z(Z({}, t), {}, {
|
|
3361
3361
|
offset: v.offset,
|
|
@@ -3366,7 +3366,7 @@ var Js = function(t) {
|
|
|
3366
3366
|
}), o), r);
|
|
3367
3367
|
return j(Ys.Provider, {
|
|
3368
3368
|
value: y
|
|
3369
|
-
}, n ? /* @__PURE__ */ $l(
|
|
3369
|
+
}, n ? /* @__PURE__ */ $l(w, n) : w);
|
|
3370
3370
|
}, Yd = function(t) {
|
|
3371
3371
|
var n = t.isDisabled, r = t.isRtl;
|
|
3372
3372
|
return {
|
|
@@ -3933,7 +3933,7 @@ var Up = process.env.NODE_ENV === "production" ? {
|
|
|
3933
3933
|
return "".concat(r).concat(n ? " for search term " + n : "", ".");
|
|
3934
3934
|
}
|
|
3935
3935
|
}, $p = function(t) {
|
|
3936
|
-
var n = t.ariaSelection, r = t.focusedOption, i = t.focusedValue, o = t.focusableOptions, a = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, f = u.getOptionLabel, p = u.inputValue, y = u.isMulti, g = u.isOptionDisabled, I = u.isSearchable, v = u.menuIsOpen, A = u.options,
|
|
3936
|
+
var n = t.ariaSelection, r = t.focusedOption, i = t.focusedValue, o = t.focusableOptions, a = t.isFocused, s = t.selectValue, u = t.selectProps, l = t.id, c = t.isAppleDevice, d = u.ariaLiveMessages, f = u.getOptionLabel, p = u.inputValue, y = u.isMulti, g = u.isOptionDisabled, I = u.isSearchable, v = u.menuIsOpen, A = u.options, E = u.screenReaderStatus, S = u.tabSelectsValue, P = u.isLoading, w = u["aria-label"], k = u["aria-live"], R = ft(function() {
|
|
3937
3937
|
return Z(Z({}, qp), d || {});
|
|
3938
3938
|
}, [d]), T = ft(function() {
|
|
3939
3939
|
var M = "";
|
|
@@ -3969,7 +3969,7 @@ var Up = process.env.NODE_ENV === "production" ? {
|
|
|
3969
3969
|
}, [r, i, f, g, R, o, s, c]), N = ft(function() {
|
|
3970
3970
|
var M = "";
|
|
3971
3971
|
if (v && A.length && !P && R.onFilter) {
|
|
3972
|
-
var Y =
|
|
3972
|
+
var Y = E({
|
|
3973
3973
|
count: o.length
|
|
3974
3974
|
});
|
|
3975
3975
|
M = R.onFilter({
|
|
@@ -3978,12 +3978,12 @@ var Up = process.env.NODE_ENV === "production" ? {
|
|
|
3978
3978
|
});
|
|
3979
3979
|
}
|
|
3980
3980
|
return M;
|
|
3981
|
-
}, [o, p, v, R, A,
|
|
3981
|
+
}, [o, p, v, R, A, E, P]), O = (n == null ? void 0 : n.action) === "initial-input-focus", K = ft(function() {
|
|
3982
3982
|
var M = "";
|
|
3983
3983
|
if (R.guidance) {
|
|
3984
3984
|
var Y = i ? "value" : v ? "menu" : "input";
|
|
3985
3985
|
M = R.guidance({
|
|
3986
|
-
"aria-label":
|
|
3986
|
+
"aria-label": w,
|
|
3987
3987
|
context: Y,
|
|
3988
3988
|
isDisabled: r && g(r, s),
|
|
3989
3989
|
isMulti: y,
|
|
@@ -3993,7 +3993,7 @@ var Up = process.env.NODE_ENV === "production" ? {
|
|
|
3993
3993
|
});
|
|
3994
3994
|
}
|
|
3995
3995
|
return M;
|
|
3996
|
-
}, [
|
|
3996
|
+
}, [w, r, i, y, g, I, v, R, s, S, O]), ie = j(xi, null, j("span", {
|
|
3997
3997
|
id: "aria-selection"
|
|
3998
3998
|
}, T), j("span", {
|
|
3999
3999
|
id: "aria-focused"
|
|
@@ -4323,8 +4323,8 @@ var sf = function(t) {
|
|
|
4323
4323
|
function uf(e) {
|
|
4324
4324
|
var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, i = e.onTopArrive, o = e.onTopLeave, a = xt(!1), s = xt(!1), u = xt(0), l = xt(null), c = Ve(function(I, v) {
|
|
4325
4325
|
if (l.current !== null) {
|
|
4326
|
-
var A = l.current,
|
|
4327
|
-
R > v && a.current && (r && r(I), a.current = !1), k && s.current && (o && o(I), s.current = !1), k && v > R ? (n && !a.current && n(I),
|
|
4326
|
+
var A = l.current, E = A.scrollTop, S = A.scrollHeight, P = A.clientHeight, w = l.current, k = v > 0, R = S - P - E, T = !1;
|
|
4327
|
+
R > v && a.current && (r && r(I), a.current = !1), k && s.current && (o && o(I), s.current = !1), k && v > R ? (n && !a.current && n(I), w.scrollTop = S, T = !0, a.current = !0) : !k && -v > E && (i && !s.current && i(I), w.scrollTop = 0, T = !0, s.current = !0), T && sf(I);
|
|
4328
4328
|
}
|
|
4329
4329
|
}, [n, r, i, o]), d = Ve(function(I) {
|
|
4330
4330
|
c(I, I.deltaY);
|
|
@@ -4914,7 +4914,7 @@ var du = function(t) {
|
|
|
4914
4914
|
}, i.onValueInputFocus = function(u) {
|
|
4915
4915
|
u.preventDefault(), u.stopPropagation(), i.focus();
|
|
4916
4916
|
}, i.onKeyDown = function(u) {
|
|
4917
|
-
var l = i.props, c = l.isMulti, d = l.backspaceRemovesValue, f = l.escapeClearsValue, p = l.inputValue, y = l.isClearable, g = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, A = l.tabSelectsValue,
|
|
4917
|
+
var l = i.props, c = l.isMulti, d = l.backspaceRemovesValue, f = l.escapeClearsValue, p = l.inputValue, y = l.isClearable, g = l.isDisabled, I = l.menuIsOpen, v = l.onKeyDown, A = l.tabSelectsValue, E = l.openMenuOnFocus, S = i.state, P = S.focusedOption, w = S.focusedValue, k = S.selectValue;
|
|
4918
4918
|
if (!g && !(typeof v == "function" && (v(u), u.defaultPrevented))) {
|
|
4919
4919
|
switch (i.blockOptionHover = !0, u.key) {
|
|
4920
4920
|
case "ArrowLeft":
|
|
@@ -4928,8 +4928,8 @@ var du = function(t) {
|
|
|
4928
4928
|
case "Delete":
|
|
4929
4929
|
case "Backspace":
|
|
4930
4930
|
if (p) return;
|
|
4931
|
-
if (
|
|
4932
|
-
i.removeValue(
|
|
4931
|
+
if (w)
|
|
4932
|
+
i.removeValue(w);
|
|
4933
4933
|
else {
|
|
4934
4934
|
if (!d) return;
|
|
4935
4935
|
c ? i.popValue() : y && i.clearValue();
|
|
@@ -4938,7 +4938,7 @@ var du = function(t) {
|
|
|
4938
4938
|
case "Tab":
|
|
4939
4939
|
if (i.isComposing || u.shiftKey || !I || !A || !P || // don't capture the event if the menu opens on focus and the focused
|
|
4940
4940
|
// option is already selected; it breaks the flow of navigation
|
|
4941
|
-
|
|
4941
|
+
E && i.isOptionSelected(P, k))
|
|
4942
4942
|
return;
|
|
4943
4943
|
i.selectOption(P);
|
|
4944
4944
|
break;
|
|
@@ -5236,7 +5236,7 @@ var du = function(t) {
|
|
|
5236
5236
|
// Renderers
|
|
5237
5237
|
// ==============================
|
|
5238
5238
|
function() {
|
|
5239
|
-
var i = this.props, o = i.isDisabled, a = i.isSearchable, s = i.inputId, u = i.inputValue, l = i.tabIndex, c = i.form, d = i.menuIsOpen, f = i.required, p = this.getComponents(), y = p.Input, g = this.state, I = g.inputIsHidden, v = g.ariaSelection, A = this.commonProps,
|
|
5239
|
+
var i = this.props, o = i.isDisabled, a = i.isSearchable, s = i.inputId, u = i.inputValue, l = i.tabIndex, c = i.form, d = i.menuIsOpen, f = i.required, p = this.getComponents(), y = p.Input, g = this.state, I = g.inputIsHidden, v = g.ariaSelection, A = this.commonProps, E = s || this.getElementId("input"), S = Z(Z(Z({
|
|
5240
5240
|
"aria-autocomplete": "list",
|
|
5241
5241
|
"aria-expanded": d,
|
|
5242
5242
|
"aria-haspopup": !0,
|
|
@@ -5260,7 +5260,7 @@ var du = function(t) {
|
|
|
5260
5260
|
autoCapitalize: "none",
|
|
5261
5261
|
autoComplete: "off",
|
|
5262
5262
|
autoCorrect: "off",
|
|
5263
|
-
id:
|
|
5263
|
+
id: E,
|
|
5264
5264
|
innerRef: this.getInputRef,
|
|
5265
5265
|
isDisabled: o,
|
|
5266
5266
|
isHidden: I,
|
|
@@ -5273,7 +5273,7 @@ var du = function(t) {
|
|
|
5273
5273
|
type: "text",
|
|
5274
5274
|
value: u
|
|
5275
5275
|
}, S)) : /* @__PURE__ */ te.createElement(af, J({
|
|
5276
|
-
id:
|
|
5276
|
+
id: E,
|
|
5277
5277
|
innerRef: this.getInputRef,
|
|
5278
5278
|
onBlur: this.onInputBlur,
|
|
5279
5279
|
onChange: Br,
|
|
@@ -5289,12 +5289,12 @@ var du = function(t) {
|
|
|
5289
5289
|
}, {
|
|
5290
5290
|
key: "renderPlaceholderOrValue",
|
|
5291
5291
|
value: function() {
|
|
5292
|
-
var i = this, o = this.getComponents(), a = o.MultiValue, s = o.MultiValueContainer, u = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, p = this.props, y = p.controlShouldRenderValue, g = p.isDisabled, I = p.isMulti, v = p.inputValue, A = p.placeholder,
|
|
5292
|
+
var i = this, o = this.getComponents(), a = o.MultiValue, s = o.MultiValueContainer, u = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, d = o.Placeholder, f = this.commonProps, p = this.props, y = p.controlShouldRenderValue, g = p.isDisabled, I = p.isMulti, v = p.inputValue, A = p.placeholder, E = this.state, S = E.selectValue, P = E.focusedValue, w = E.isFocused;
|
|
5293
5293
|
if (!this.hasValue() || !y)
|
|
5294
5294
|
return v ? null : /* @__PURE__ */ te.createElement(d, J({}, f, {
|
|
5295
5295
|
key: "placeholder",
|
|
5296
5296
|
isDisabled: g,
|
|
5297
|
-
isFocused:
|
|
5297
|
+
isFocused: w,
|
|
5298
5298
|
innerProps: {
|
|
5299
5299
|
id: this.getElementId("placeholder")
|
|
5300
5300
|
}
|
|
@@ -5394,7 +5394,7 @@ var du = function(t) {
|
|
|
5394
5394
|
}, {
|
|
5395
5395
|
key: "renderMenu",
|
|
5396
5396
|
value: function() {
|
|
5397
|
-
var i = this, o = this.getComponents(), a = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option, y = this.commonProps, g = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, A = I.inputValue,
|
|
5397
|
+
var i = this, o = this.getComponents(), a = o.Group, s = o.GroupHeading, u = o.Menu, l = o.MenuList, c = o.MenuPortal, d = o.LoadingMessage, f = o.NoOptionsMessage, p = o.Option, y = this.commonProps, g = this.state.focusedOption, I = this.props, v = I.captureMenuScroll, A = I.inputValue, E = I.isLoading, S = I.loadingMessage, P = I.minMenuHeight, w = I.maxMenuHeight, k = I.menuIsOpen, R = I.menuPlacement, T = I.menuPosition, H = I.menuPortalTarget, N = I.menuShouldBlockScroll, O = I.menuShouldScrollIntoView, K = I.noOptionsMessage, ie = I.onMenuScrollToTop, M = I.onMenuScrollToBottom;
|
|
5398
5398
|
if (!k) return null;
|
|
5399
5399
|
var Y = function(m, fe) {
|
|
5400
5400
|
var ee = m.type, de = m.data, Fe = m.isDisabled, D = m.isSelected, X = m.label, U = m.value, pe = g === de, Pe = Fe ? void 0 : function() {
|
|
@@ -5444,7 +5444,7 @@ var du = function(t) {
|
|
|
5444
5444
|
} else if (se.type === "option")
|
|
5445
5445
|
return Y(se, "".concat(se.index));
|
|
5446
5446
|
});
|
|
5447
|
-
else if (
|
|
5447
|
+
else if (E) {
|
|
5448
5448
|
var ue = S({
|
|
5449
5449
|
inputValue: A
|
|
5450
5450
|
});
|
|
@@ -5459,7 +5459,7 @@ var du = function(t) {
|
|
|
5459
5459
|
}
|
|
5460
5460
|
var b = {
|
|
5461
5461
|
minMenuHeight: P,
|
|
5462
|
-
maxMenuHeight:
|
|
5462
|
+
maxMenuHeight: w,
|
|
5463
5463
|
menuPlacement: R,
|
|
5464
5464
|
menuPosition: T,
|
|
5465
5465
|
menuShouldScrollIntoView: O
|
|
@@ -5471,7 +5471,7 @@ var du = function(t) {
|
|
|
5471
5471
|
onMouseDown: i.onMenuMouseDown,
|
|
5472
5472
|
onMouseMove: i.onMenuMouseMove
|
|
5473
5473
|
},
|
|
5474
|
-
isLoading:
|
|
5474
|
+
isLoading: E,
|
|
5475
5475
|
placement: ee
|
|
5476
5476
|
}), /* @__PURE__ */ te.createElement(ff, {
|
|
5477
5477
|
captureEnabled: v,
|
|
@@ -5488,7 +5488,7 @@ var du = function(t) {
|
|
|
5488
5488
|
"aria-multiselectable": y.isMulti,
|
|
5489
5489
|
id: i.getElementId("listbox")
|
|
5490
5490
|
},
|
|
5491
|
-
isLoading:
|
|
5491
|
+
isLoading: E,
|
|
5492
5492
|
maxHeight: de,
|
|
5493
5493
|
focusedOption: g
|
|
5494
5494
|
}), _);
|
|
@@ -5590,15 +5590,15 @@ var du = function(t) {
|
|
|
5590
5590
|
}], [{
|
|
5591
5591
|
key: "getDerivedStateFromProps",
|
|
5592
5592
|
value: function(i, o) {
|
|
5593
|
-
var a = o.prevProps, s = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, y = i.value, g = i.menuIsOpen, I = i.inputValue, v = i.isMulti, A = Or(y),
|
|
5593
|
+
var a = o.prevProps, s = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, y = i.value, g = i.menuIsOpen, I = i.inputValue, v = i.isMulti, A = Or(y), E = {};
|
|
5594
5594
|
if (a && (y !== a.value || p !== a.options || g !== a.menuIsOpen || I !== a.inputValue)) {
|
|
5595
|
-
var S = g ? Bf(i, A) : [], P = g ? ga(xr(i, A), "".concat(f, "-option")) : [],
|
|
5596
|
-
|
|
5595
|
+
var S = g ? Bf(i, A) : [], P = g ? ga(xr(i, A), "".concat(f, "-option")) : [], w = s ? Of(o, A) : null, k = Tf(o, S), R = li(P, k);
|
|
5596
|
+
E = {
|
|
5597
5597
|
selectValue: A,
|
|
5598
5598
|
focusedOption: k,
|
|
5599
5599
|
focusedOptionId: R,
|
|
5600
5600
|
focusableOptionsWithIds: P,
|
|
5601
|
-
focusedValue:
|
|
5601
|
+
focusedValue: w,
|
|
5602
5602
|
clearFocusValueOnUpdate: !1
|
|
5603
5603
|
};
|
|
5604
5604
|
}
|
|
@@ -5610,7 +5610,7 @@ var du = function(t) {
|
|
|
5610
5610
|
value: zn(v, A, A[0] || null),
|
|
5611
5611
|
options: A,
|
|
5612
5612
|
action: "initial-input-focus"
|
|
5613
|
-
}, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (H = null), Z(Z(Z({},
|
|
5613
|
+
}, N = !d), (l == null ? void 0 : l.action) === "initial-input-focus" && (H = null), Z(Z(Z({}, E), T), {}, {
|
|
5614
5614
|
prevProps: i,
|
|
5615
5615
|
ariaSelection: H,
|
|
5616
5616
|
prevWasFocused: N
|
|
@@ -7598,83 +7598,83 @@ function ng(e) {
|
|
|
7598
7598
|
const t = this, n = [];
|
|
7599
7599
|
let r = 0, i, o, a;
|
|
7600
7600
|
return s;
|
|
7601
|
-
function s(
|
|
7601
|
+
function s(E) {
|
|
7602
7602
|
if (r < n.length) {
|
|
7603
7603
|
const S = n[r];
|
|
7604
|
-
return t.containerState = S[1], e.attempt(S[0].continuation, u, l)(
|
|
7604
|
+
return t.containerState = S[1], e.attempt(S[0].continuation, u, l)(E);
|
|
7605
7605
|
}
|
|
7606
|
-
return l(
|
|
7606
|
+
return l(E);
|
|
7607
7607
|
}
|
|
7608
|
-
function u(
|
|
7608
|
+
function u(E) {
|
|
7609
7609
|
if (r++, t.containerState._closeFlow) {
|
|
7610
7610
|
t.containerState._closeFlow = void 0, i && A();
|
|
7611
7611
|
const S = t.events.length;
|
|
7612
|
-
let P = S,
|
|
7612
|
+
let P = S, w;
|
|
7613
7613
|
for (; P--; )
|
|
7614
7614
|
if (t.events[P][0] === "exit" && t.events[P][1].type === "chunkFlow") {
|
|
7615
|
-
|
|
7615
|
+
w = t.events[P][1].end;
|
|
7616
7616
|
break;
|
|
7617
7617
|
}
|
|
7618
7618
|
v(r);
|
|
7619
7619
|
let k = S;
|
|
7620
7620
|
for (; k < t.events.length; )
|
|
7621
7621
|
t.events[k][1].end = {
|
|
7622
|
-
...
|
|
7622
|
+
...w
|
|
7623
7623
|
}, k++;
|
|
7624
|
-
return mt(t.events, P + 1, 0, t.events.slice(S)), t.events.length = k, l(
|
|
7624
|
+
return mt(t.events, P + 1, 0, t.events.slice(S)), t.events.length = k, l(E);
|
|
7625
7625
|
}
|
|
7626
|
-
return s(
|
|
7626
|
+
return s(E);
|
|
7627
7627
|
}
|
|
7628
|
-
function l(
|
|
7628
|
+
function l(E) {
|
|
7629
7629
|
if (r === n.length) {
|
|
7630
7630
|
if (!i)
|
|
7631
|
-
return f(
|
|
7631
|
+
return f(E);
|
|
7632
7632
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
7633
|
-
return y(
|
|
7633
|
+
return y(E);
|
|
7634
7634
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
7635
7635
|
}
|
|
7636
|
-
return t.containerState = {}, e.check(ka, c, d)(
|
|
7636
|
+
return t.containerState = {}, e.check(ka, c, d)(E);
|
|
7637
7637
|
}
|
|
7638
|
-
function c(
|
|
7639
|
-
return i && A(), v(r), f(
|
|
7638
|
+
function c(E) {
|
|
7639
|
+
return i && A(), v(r), f(E);
|
|
7640
7640
|
}
|
|
7641
|
-
function d(
|
|
7642
|
-
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, y(
|
|
7641
|
+
function d(E) {
|
|
7642
|
+
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, y(E);
|
|
7643
7643
|
}
|
|
7644
|
-
function f(
|
|
7645
|
-
return t.containerState = {}, e.attempt(ka, p, y)(
|
|
7644
|
+
function f(E) {
|
|
7645
|
+
return t.containerState = {}, e.attempt(ka, p, y)(E);
|
|
7646
7646
|
}
|
|
7647
|
-
function p(
|
|
7648
|
-
return r++, n.push([t.currentConstruct, t.containerState]), f(
|
|
7647
|
+
function p(E) {
|
|
7648
|
+
return r++, n.push([t.currentConstruct, t.containerState]), f(E);
|
|
7649
7649
|
}
|
|
7650
|
-
function y(
|
|
7651
|
-
if (
|
|
7652
|
-
i && A(), v(0), e.consume(
|
|
7650
|
+
function y(E) {
|
|
7651
|
+
if (E === null) {
|
|
7652
|
+
i && A(), v(0), e.consume(E);
|
|
7653
7653
|
return;
|
|
7654
7654
|
}
|
|
7655
7655
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
7656
7656
|
_tokenizer: i,
|
|
7657
7657
|
contentType: "flow",
|
|
7658
7658
|
previous: o
|
|
7659
|
-
}), g(
|
|
7659
|
+
}), g(E);
|
|
7660
7660
|
}
|
|
7661
|
-
function g(
|
|
7662
|
-
if (
|
|
7663
|
-
I(e.exit("chunkFlow"), !0), v(0), e.consume(
|
|
7661
|
+
function g(E) {
|
|
7662
|
+
if (E === null) {
|
|
7663
|
+
I(e.exit("chunkFlow"), !0), v(0), e.consume(E);
|
|
7664
7664
|
return;
|
|
7665
7665
|
}
|
|
7666
|
-
return q(
|
|
7666
|
+
return q(E) ? (e.consume(E), I(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(E), g);
|
|
7667
7667
|
}
|
|
7668
|
-
function I(
|
|
7669
|
-
const P = t.sliceStream(
|
|
7670
|
-
if (S && P.push(null),
|
|
7671
|
-
let
|
|
7672
|
-
for (;
|
|
7668
|
+
function I(E, S) {
|
|
7669
|
+
const P = t.sliceStream(E);
|
|
7670
|
+
if (S && P.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(P), t.parser.lazy[E.start.line]) {
|
|
7671
|
+
let w = i.events.length;
|
|
7672
|
+
for (; w--; )
|
|
7673
7673
|
if (
|
|
7674
7674
|
// The token starts before the line ending…
|
|
7675
|
-
i.events[
|
|
7676
|
-
(!i.events[
|
|
7677
|
-
i.events[
|
|
7675
|
+
i.events[w][1].start.offset < a && // …and either is not ended yet…
|
|
7676
|
+
(!i.events[w][1].end || // …or ends after it.
|
|
7677
|
+
i.events[w][1].end.offset > a)
|
|
7678
7678
|
)
|
|
7679
7679
|
return;
|
|
7680
7680
|
const k = t.events.length;
|
|
@@ -7687,20 +7687,20 @@ function ng(e) {
|
|
|
7687
7687
|
}
|
|
7688
7688
|
T = !0;
|
|
7689
7689
|
}
|
|
7690
|
-
for (v(r),
|
|
7691
|
-
t.events[
|
|
7690
|
+
for (v(r), w = k; w < t.events.length; )
|
|
7691
|
+
t.events[w][1].end = {
|
|
7692
7692
|
...H
|
|
7693
|
-
},
|
|
7694
|
-
mt(t.events, R + 1, 0, t.events.slice(k)), t.events.length =
|
|
7693
|
+
}, w++;
|
|
7694
|
+
mt(t.events, R + 1, 0, t.events.slice(k)), t.events.length = w;
|
|
7695
7695
|
}
|
|
7696
7696
|
}
|
|
7697
|
-
function v(
|
|
7697
|
+
function v(E) {
|
|
7698
7698
|
let S = n.length;
|
|
7699
|
-
for (; S-- >
|
|
7699
|
+
for (; S-- > E; ) {
|
|
7700
7700
|
const P = n[S];
|
|
7701
7701
|
t.containerState = P[1], P[0].exit.call(t, e);
|
|
7702
7702
|
}
|
|
7703
|
-
n.length =
|
|
7703
|
+
n.length = E;
|
|
7704
7704
|
}
|
|
7705
7705
|
function A() {
|
|
7706
7706
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
@@ -7943,67 +7943,67 @@ function hg(e, t, n) {
|
|
|
7943
7943
|
};
|
|
7944
7944
|
let o = 0, a = 0, s;
|
|
7945
7945
|
return u;
|
|
7946
|
-
function u(
|
|
7947
|
-
return l(
|
|
7946
|
+
function u(w) {
|
|
7947
|
+
return l(w);
|
|
7948
7948
|
}
|
|
7949
|
-
function l(
|
|
7949
|
+
function l(w) {
|
|
7950
7950
|
const k = r.events[r.events.length - 1];
|
|
7951
|
-
return o = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s =
|
|
7951
|
+
return o = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(w);
|
|
7952
7952
|
}
|
|
7953
|
-
function c(
|
|
7954
|
-
return
|
|
7953
|
+
function c(w) {
|
|
7954
|
+
return w === s ? (a++, e.consume(w), c) : a < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), he(w) ? ye(e, d, "whitespace")(w) : d(w));
|
|
7955
7955
|
}
|
|
7956
|
-
function d(
|
|
7957
|
-
return
|
|
7956
|
+
function d(w) {
|
|
7957
|
+
return w === null || q(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(Ta, g, S)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
7958
7958
|
contentType: "string"
|
|
7959
|
-
}), f(
|
|
7959
|
+
}), f(w));
|
|
7960
7960
|
}
|
|
7961
|
-
function f(
|
|
7962
|
-
return
|
|
7961
|
+
function f(w) {
|
|
7962
|
+
return w === null || q(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(w)) : he(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ye(e, p, "whitespace")(w)) : w === 96 && w === s ? n(w) : (e.consume(w), f);
|
|
7963
7963
|
}
|
|
7964
|
-
function p(
|
|
7965
|
-
return
|
|
7964
|
+
function p(w) {
|
|
7965
|
+
return w === null || q(w) ? d(w) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
7966
7966
|
contentType: "string"
|
|
7967
|
-
}), y(
|
|
7967
|
+
}), y(w));
|
|
7968
7968
|
}
|
|
7969
|
-
function y(
|
|
7970
|
-
return
|
|
7969
|
+
function y(w) {
|
|
7970
|
+
return w === null || q(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(w)) : w === 96 && w === s ? n(w) : (e.consume(w), y);
|
|
7971
7971
|
}
|
|
7972
|
-
function g(
|
|
7973
|
-
return e.attempt(i, S, I)(
|
|
7972
|
+
function g(w) {
|
|
7973
|
+
return e.attempt(i, S, I)(w);
|
|
7974
7974
|
}
|
|
7975
|
-
function I(
|
|
7976
|
-
return e.enter("lineEnding"), e.consume(
|
|
7975
|
+
function I(w) {
|
|
7976
|
+
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), v;
|
|
7977
7977
|
}
|
|
7978
|
-
function v(
|
|
7979
|
-
return o > 0 && he(
|
|
7978
|
+
function v(w) {
|
|
7979
|
+
return o > 0 && he(w) ? ye(e, A, "linePrefix", o + 1)(w) : A(w);
|
|
7980
7980
|
}
|
|
7981
|
-
function A(
|
|
7982
|
-
return
|
|
7981
|
+
function A(w) {
|
|
7982
|
+
return w === null || q(w) ? e.check(Ta, g, S)(w) : (e.enter("codeFlowValue"), E(w));
|
|
7983
7983
|
}
|
|
7984
|
-
function w
|
|
7985
|
-
return
|
|
7984
|
+
function E(w) {
|
|
7985
|
+
return w === null || q(w) ? (e.exit("codeFlowValue"), A(w)) : (e.consume(w), E);
|
|
7986
7986
|
}
|
|
7987
|
-
function S(
|
|
7988
|
-
return e.exit("codeFenced"), t(
|
|
7987
|
+
function S(w) {
|
|
7988
|
+
return e.exit("codeFenced"), t(w);
|
|
7989
7989
|
}
|
|
7990
|
-
function P(
|
|
7990
|
+
function P(w, k, R) {
|
|
7991
7991
|
let T = 0;
|
|
7992
7992
|
return H;
|
|
7993
7993
|
function H(M) {
|
|
7994
|
-
return
|
|
7994
|
+
return w.enter("lineEnding"), w.consume(M), w.exit("lineEnding"), N;
|
|
7995
7995
|
}
|
|
7996
7996
|
function N(M) {
|
|
7997
|
-
return
|
|
7997
|
+
return w.enter("codeFencedFence"), he(M) ? ye(w, O, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(M) : O(M);
|
|
7998
7998
|
}
|
|
7999
7999
|
function O(M) {
|
|
8000
|
-
return M === s ? (
|
|
8000
|
+
return M === s ? (w.enter("codeFencedFenceSequence"), K(M)) : R(M);
|
|
8001
8001
|
}
|
|
8002
8002
|
function K(M) {
|
|
8003
|
-
return M === s ? (T++,
|
|
8003
|
+
return M === s ? (T++, w.consume(M), K) : T >= a ? (w.exit("codeFencedFenceSequence"), he(M) ? ye(w, ie, "whitespace")(M) : ie(M)) : R(M);
|
|
8004
8004
|
}
|
|
8005
8005
|
function ie(M) {
|
|
8006
|
-
return M === null || q(M) ? (
|
|
8006
|
+
return M === null || q(M) ? (w.exit("codeFencedFence"), k(M)) : R(M);
|
|
8007
8007
|
}
|
|
8008
8008
|
}
|
|
8009
8009
|
}
|
|
@@ -8668,7 +8668,7 @@ function Zg(e, t, n) {
|
|
|
8668
8668
|
function I(m) {
|
|
8669
8669
|
if (m === null || m === 47 || m === 62 || He(m)) {
|
|
8670
8670
|
const fe = m === 47, ee = a.toLowerCase();
|
|
8671
|
-
return !fe && !o && Da.includes(ee) ? (i = 1, r.interrupt ? t(m) : O(m)) : Lg.includes(a.toLowerCase()) ? (i = 6, fe ? (e.consume(m), v) : r.interrupt ? t(m) : O(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : o ? A(m) :
|
|
8671
|
+
return !fe && !o && Da.includes(ee) ? (i = 1, r.interrupt ? t(m) : O(m)) : Lg.includes(a.toLowerCase()) ? (i = 6, fe ? (e.consume(m), v) : r.interrupt ? t(m) : O(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : o ? A(m) : E(m));
|
|
8672
8672
|
}
|
|
8673
8673
|
return m === 45 || Ye(m) ? (e.consume(m), a += String.fromCharCode(m), I) : n(m);
|
|
8674
8674
|
}
|
|
@@ -8678,17 +8678,17 @@ function Zg(e, t, n) {
|
|
|
8678
8678
|
function A(m) {
|
|
8679
8679
|
return he(m) ? (e.consume(m), A) : H(m);
|
|
8680
8680
|
}
|
|
8681
|
-
function
|
|
8682
|
-
return m === 47 ? (e.consume(m), H) : m === 58 || m === 95 || ht(m) ? (e.consume(m), S) : he(m) ? (e.consume(m),
|
|
8681
|
+
function E(m) {
|
|
8682
|
+
return m === 47 ? (e.consume(m), H) : m === 58 || m === 95 || ht(m) ? (e.consume(m), S) : he(m) ? (e.consume(m), E) : H(m);
|
|
8683
8683
|
}
|
|
8684
8684
|
function S(m) {
|
|
8685
8685
|
return m === 45 || m === 46 || m === 58 || m === 95 || Ye(m) ? (e.consume(m), S) : P(m);
|
|
8686
8686
|
}
|
|
8687
8687
|
function P(m) {
|
|
8688
|
-
return m === 61 ? (e.consume(m),
|
|
8688
|
+
return m === 61 ? (e.consume(m), w) : he(m) ? (e.consume(m), P) : E(m);
|
|
8689
8689
|
}
|
|
8690
|
-
function
|
|
8691
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, k) : he(m) ? (e.consume(m),
|
|
8690
|
+
function w(m) {
|
|
8691
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, k) : he(m) ? (e.consume(m), w) : R(m);
|
|
8692
8692
|
}
|
|
8693
8693
|
function k(m) {
|
|
8694
8694
|
return m === u ? (e.consume(m), u = null, T) : m === null || q(m) ? n(m) : (e.consume(m), k);
|
|
@@ -8697,7 +8697,7 @@ function Zg(e, t, n) {
|
|
|
8697
8697
|
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || He(m) ? P(m) : (e.consume(m), R);
|
|
8698
8698
|
}
|
|
8699
8699
|
function T(m) {
|
|
8700
|
-
return m === 47 || m === 62 || he(m) ?
|
|
8700
|
+
return m === 47 || m === 62 || he(m) ? E(m) : n(m);
|
|
8701
8701
|
}
|
|
8702
8702
|
function H(m) {
|
|
8703
8703
|
return m === 62 ? (e.consume(m), N) : n(m);
|
|
@@ -8771,7 +8771,7 @@ function _g(e, t, n) {
|
|
|
8771
8771
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(b), u;
|
|
8772
8772
|
}
|
|
8773
8773
|
function u(b) {
|
|
8774
|
-
return b === 33 ? (e.consume(b), l) : b === 47 ? (e.consume(b), P) : b === 63 ? (e.consume(b),
|
|
8774
|
+
return b === 33 ? (e.consume(b), l) : b === 47 ? (e.consume(b), P) : b === 63 ? (e.consume(b), E) : ht(b) ? (e.consume(b), R) : n(b);
|
|
8775
8775
|
}
|
|
8776
8776
|
function l(b) {
|
|
8777
8777
|
return b === 45 ? (e.consume(b), c) : b === 91 ? (e.consume(b), o = 0, y) : ht(b) ? (e.consume(b), A) : n(b);
|
|
@@ -8804,17 +8804,17 @@ function _g(e, t, n) {
|
|
|
8804
8804
|
function A(b) {
|
|
8805
8805
|
return b === null || b === 62 ? Y(b) : q(b) ? (a = A, _(b)) : (e.consume(b), A);
|
|
8806
8806
|
}
|
|
8807
|
-
function
|
|
8808
|
-
return b === null ? n(b) : b === 63 ? (e.consume(b), S) : q(b) ? (a =
|
|
8807
|
+
function E(b) {
|
|
8808
|
+
return b === null ? n(b) : b === 63 ? (e.consume(b), S) : q(b) ? (a = E, _(b)) : (e.consume(b), E);
|
|
8809
8809
|
}
|
|
8810
8810
|
function S(b) {
|
|
8811
|
-
return b === 62 ? Y(b) :
|
|
8811
|
+
return b === 62 ? Y(b) : E(b);
|
|
8812
8812
|
}
|
|
8813
8813
|
function P(b) {
|
|
8814
|
-
return ht(b) ? (e.consume(b),
|
|
8814
|
+
return ht(b) ? (e.consume(b), w) : n(b);
|
|
8815
8815
|
}
|
|
8816
|
-
function
|
|
8817
|
-
return b === 45 || Ye(b) ? (e.consume(b),
|
|
8816
|
+
function w(b) {
|
|
8817
|
+
return b === 45 || Ye(b) ? (e.consume(b), w) : k(b);
|
|
8818
8818
|
}
|
|
8819
8819
|
function k(b) {
|
|
8820
8820
|
return q(b) ? (a = k, _(b)) : he(b) ? (e.consume(b), k) : Y(b);
|
|
@@ -9388,11 +9388,11 @@ function Vm(e, t, n) {
|
|
|
9388
9388
|
let a = [], s = [];
|
|
9389
9389
|
const u = {
|
|
9390
9390
|
attempt: k(P),
|
|
9391
|
-
check: k(
|
|
9391
|
+
check: k(w),
|
|
9392
9392
|
consume: A,
|
|
9393
|
-
enter:
|
|
9393
|
+
enter: E,
|
|
9394
9394
|
exit: S,
|
|
9395
|
-
interrupt: k(
|
|
9395
|
+
interrupt: k(w, {
|
|
9396
9396
|
interrupt: !0
|
|
9397
9397
|
})
|
|
9398
9398
|
}, l = {
|
|
@@ -9457,7 +9457,7 @@ function Vm(e, t, n) {
|
|
|
9457
9457
|
/** @type {string} */
|
|
9458
9458
|
a[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = N;
|
|
9459
9459
|
}
|
|
9460
|
-
function
|
|
9460
|
+
function E(N, O) {
|
|
9461
9461
|
const K = O || {};
|
|
9462
9462
|
return K.type = N, K.start = y(), l.events.push(["enter", K, l]), s.push(K), K;
|
|
9463
9463
|
}
|
|
@@ -9468,7 +9468,7 @@ function Vm(e, t, n) {
|
|
|
9468
9468
|
function P(N, O) {
|
|
9469
9469
|
R(N, O.from);
|
|
9470
9470
|
}
|
|
9471
|
-
function
|
|
9471
|
+
function w(N, O) {
|
|
9472
9472
|
O.restore();
|
|
9473
9473
|
}
|
|
9474
9474
|
function k(N, O) {
|
|
@@ -9744,7 +9744,7 @@ function jm(e) {
|
|
|
9744
9744
|
definition: u(),
|
|
9745
9745
|
definitionDestinationString: S,
|
|
9746
9746
|
definitionLabelString: A,
|
|
9747
|
-
definitionTitleString:
|
|
9747
|
+
definitionTitleString: E,
|
|
9748
9748
|
emphasis: u(),
|
|
9749
9749
|
hardBreakEscape: u(O),
|
|
9750
9750
|
hardBreakTrailing: u(O),
|
|
@@ -9767,7 +9767,7 @@ function jm(e) {
|
|
|
9767
9767
|
resource: se,
|
|
9768
9768
|
setextHeading: u(R),
|
|
9769
9769
|
setextHeadingLineSequence: k,
|
|
9770
|
-
setextHeadingText:
|
|
9770
|
+
setextHeadingText: w,
|
|
9771
9771
|
strong: u(),
|
|
9772
9772
|
thematicBreak: u()
|
|
9773
9773
|
}
|
|
@@ -9944,7 +9944,7 @@ function jm(e) {
|
|
|
9944
9944
|
const V = this.resume(), Q = this.stack[this.stack.length - 1];
|
|
9945
9945
|
Q.label = V, Q.identifier = hn(this.sliceSerialize(F)).toLowerCase();
|
|
9946
9946
|
}
|
|
9947
|
-
function
|
|
9947
|
+
function E() {
|
|
9948
9948
|
const F = this.resume(), V = this.stack[this.stack.length - 1];
|
|
9949
9949
|
V.title = F;
|
|
9950
9950
|
}
|
|
@@ -9959,7 +9959,7 @@ function jm(e) {
|
|
|
9959
9959
|
V.depth = Q;
|
|
9960
9960
|
}
|
|
9961
9961
|
}
|
|
9962
|
-
function
|
|
9962
|
+
function w() {
|
|
9963
9963
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
9964
9964
|
}
|
|
9965
9965
|
function k(F) {
|
|
@@ -12340,21 +12340,21 @@ function py(e) {
|
|
|
12340
12340
|
passKeys: !0,
|
|
12341
12341
|
passNode: !0
|
|
12342
12342
|
});
|
|
12343
|
-
function v(A,
|
|
12344
|
-
if (A.type === "raw" && S && typeof
|
|
12345
|
-
return c ? S.children.splice(
|
|
12343
|
+
function v(A, E, S) {
|
|
12344
|
+
if (A.type === "raw" && S && typeof E == "number")
|
|
12345
|
+
return c ? S.children.splice(E, 1) : S.children[E] = { type: "text", value: A.value }, E;
|
|
12346
12346
|
if (A.type === "element") {
|
|
12347
12347
|
let P;
|
|
12348
12348
|
for (P in di)
|
|
12349
12349
|
if (Object.hasOwn(di, P) && Object.hasOwn(A.properties, P)) {
|
|
12350
|
-
const
|
|
12351
|
-
(k === null || k.includes(A.tagName)) && (A.properties[P] = f(String(
|
|
12350
|
+
const w = A.properties[P], k = di[P];
|
|
12351
|
+
(k === null || k.includes(A.tagName)) && (A.properties[P] = f(String(w || ""), P, A));
|
|
12352
12352
|
}
|
|
12353
12353
|
}
|
|
12354
12354
|
if (A.type === "element") {
|
|
12355
12355
|
let P = t ? !t.includes(A.tagName) : a ? a.includes(A.tagName) : !1;
|
|
12356
|
-
if (!P && n && typeof
|
|
12357
|
-
return d && A.children ? S.children.splice(
|
|
12356
|
+
if (!P && n && typeof E == "number" && (P = !n(A, E, S)), P && S && typeof E == "number")
|
|
12357
|
+
return d && A.children ? S.children.splice(E, 1, ...A.children) : S.children.splice(E, 1), E;
|
|
12358
12358
|
}
|
|
12359
12359
|
}
|
|
12360
12360
|
}
|
|
@@ -12661,7 +12661,7 @@ function xy({ app: e }) {
|
|
|
12661
12661
|
onError: () => {
|
|
12662
12662
|
}
|
|
12663
12663
|
});
|
|
12664
|
-
},
|
|
12664
|
+
}, E = ft(() => {
|
|
12665
12665
|
let S = o;
|
|
12666
12666
|
if (S != null) {
|
|
12667
12667
|
for (const P of I)
|
|
@@ -12682,7 +12682,7 @@ function xy({ app: e }) {
|
|
|
12682
12682
|
zr,
|
|
12683
12683
|
{
|
|
12684
12684
|
instanceId: r,
|
|
12685
|
-
value:
|
|
12685
|
+
value: E,
|
|
12686
12686
|
options: [
|
|
12687
12687
|
...I,
|
|
12688
12688
|
{
|
|
@@ -12796,12 +12796,12 @@ var wy = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
12796
12796
|
}
|
|
12797
12797
|
};
|
|
12798
12798
|
function Ey(e) {
|
|
12799
|
-
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, i = r === void 0 ? "last" : r, o = e.formatCreateLabel, a = o === void 0 ? Ci.formatCreateLabel : o, s = e.isValidNewOption, u = s === void 0 ? Ci.isValidNewOption : s, l = e.getNewOptionData, c = l === void 0 ? Ci.getNewOptionData : l, d = e.onCreateOption, f = e.options, p = f === void 0 ? [] : f, y = e.onChange, g = bt(e, wy), I = g.getOptionValue, v = I === void 0 ? iu : I, A = g.getOptionLabel,
|
|
12799
|
+
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, i = r === void 0 ? "last" : r, o = e.formatCreateLabel, a = o === void 0 ? Ci.formatCreateLabel : o, s = e.isValidNewOption, u = s === void 0 ? Ci.isValidNewOption : s, l = e.getNewOptionData, c = l === void 0 ? Ci.getNewOptionData : l, d = e.onCreateOption, f = e.options, p = f === void 0 ? [] : f, y = e.onChange, g = bt(e, wy), I = g.getOptionValue, v = I === void 0 ? iu : I, A = g.getOptionLabel, E = A === void 0 ? ru : A, S = g.inputValue, P = g.isLoading, w = g.isMulti, k = g.value, R = g.name, T = ft(function() {
|
|
12800
12800
|
return u(S, Or(k), p, {
|
|
12801
12801
|
getOptionValue: v,
|
|
12802
|
-
getOptionLabel:
|
|
12802
|
+
getOptionLabel: E
|
|
12803
12803
|
}) ? c(S, a(S)) : void 0;
|
|
12804
|
-
}, [a, c,
|
|
12804
|
+
}, [a, c, E, v, S, u, p, k]), H = ft(function() {
|
|
12805
12805
|
return (n || !P) && T ? i === "first" ? [T].concat(pn(p)) : [].concat(pn(p), [T]) : p;
|
|
12806
12806
|
}, [n, i, P, T, p]), N = Ve(function(O, K) {
|
|
12807
12807
|
if (K.action !== "select-option")
|
|
@@ -12815,12 +12815,12 @@ function Ey(e) {
|
|
|
12815
12815
|
name: R,
|
|
12816
12816
|
option: M
|
|
12817
12817
|
};
|
|
12818
|
-
y(zn(
|
|
12818
|
+
y(zn(w, [].concat(pn(Or(k)), [M]), M), Y);
|
|
12819
12819
|
}
|
|
12820
12820
|
return;
|
|
12821
12821
|
}
|
|
12822
12822
|
y(O, K);
|
|
12823
|
-
}, [c, S,
|
|
12823
|
+
}, [c, S, w, R, T, d, y, k]);
|
|
12824
12824
|
return Z(Z({}, g), {}, {
|
|
12825
12825
|
options: H,
|
|
12826
12826
|
onChange: N
|
|
@@ -12860,13 +12860,20 @@ function $i({
|
|
|
12860
12860
|
if (A != null)
|
|
12861
12861
|
if (Array.isArray(A)) {
|
|
12862
12862
|
if (typeof A[0] != "object") {
|
|
12863
|
-
const
|
|
12864
|
-
for (const S of A)
|
|
12865
|
-
|
|
12863
|
+
const E = [];
|
|
12864
|
+
for (const S of A) {
|
|
12865
|
+
let P = {
|
|
12866
12866
|
label: S,
|
|
12867
12867
|
value: S
|
|
12868
|
-
}
|
|
12869
|
-
|
|
12868
|
+
};
|
|
12869
|
+
for (const w of t)
|
|
12870
|
+
if (w.value === S) {
|
|
12871
|
+
P = w;
|
|
12872
|
+
break;
|
|
12873
|
+
}
|
|
12874
|
+
E.push(P);
|
|
12875
|
+
}
|
|
12876
|
+
A = E;
|
|
12870
12877
|
}
|
|
12871
12878
|
} else if (typeof A != "object") {
|
|
12872
12879
|
if ((t == null ? void 0 : t[0]) && typeof t[0] == "object") {
|
|
@@ -12884,8 +12891,8 @@ function $i({
|
|
|
12884
12891
|
]), y = ({
|
|
12885
12892
|
// eslint-disable-next-line react/prop-types
|
|
12886
12893
|
children: A,
|
|
12887
|
-
...
|
|
12888
|
-
}) => /* @__PURE__ */ gt(er.MenuList, { ...
|
|
12894
|
+
...E
|
|
12895
|
+
}) => /* @__PURE__ */ gt(er.MenuList, { ...E, children: [
|
|
12889
12896
|
A,
|
|
12890
12897
|
/* @__PURE__ */ W("div", { className: "pt-4", children: /* @__PURE__ */ W(Qu, { onChange: i }) })
|
|
12891
12898
|
] }), g = c.getProps("controlSelect", f);
|
|
@@ -12917,10 +12924,10 @@ function $i({
|
|
|
12917
12924
|
if (A)
|
|
12918
12925
|
if (Array.isArray(A))
|
|
12919
12926
|
if (typeof A[0] == "object" && "value" in A[0]) {
|
|
12920
|
-
const
|
|
12927
|
+
const E = [];
|
|
12921
12928
|
for (const S of A)
|
|
12922
|
-
s.withLabel ?
|
|
12923
|
-
l(
|
|
12929
|
+
s.withLabel ? E.push(S) : E.push(S.value);
|
|
12930
|
+
l(E);
|
|
12924
12931
|
} else
|
|
12925
12932
|
l(A);
|
|
12926
12933
|
else if (typeof A == "object" && "value" in A)
|
|
@@ -12960,7 +12967,7 @@ function Gy({ queryEnabled: e }) {
|
|
|
12960
12967
|
v
|
|
12961
12968
|
] = Ce(void 0), [
|
|
12962
12969
|
A,
|
|
12963
|
-
|
|
12970
|
+
E
|
|
12964
12971
|
] = Ce({
|
|
12965
12972
|
page: 0,
|
|
12966
12973
|
prevContext: {},
|
|
@@ -12981,15 +12988,15 @@ function Gy({ queryEnabled: e }) {
|
|
|
12981
12988
|
dynamicPropsId: a == null ? void 0 : a.id
|
|
12982
12989
|
};
|
|
12983
12990
|
l.useQuery && (P.query = c || "");
|
|
12984
|
-
const
|
|
12991
|
+
const w = {
|
|
12985
12992
|
...P
|
|
12986
12993
|
};
|
|
12987
|
-
delete
|
|
12994
|
+
delete w.dynamicPropsId;
|
|
12988
12995
|
const [
|
|
12989
12996
|
k,
|
|
12990
12997
|
R
|
|
12991
12998
|
] = Ce(), T = () => {
|
|
12992
|
-
p(A.page), v(A.prevContext),
|
|
12999
|
+
p(A.page), v(A.prevContext), E({
|
|
12993
13000
|
...A,
|
|
12994
13001
|
prevContext: {}
|
|
12995
13002
|
});
|
|
@@ -12999,7 +13006,7 @@ function Gy({ queryEnabled: e }) {
|
|
|
12999
13006
|
} = rn({
|
|
13000
13007
|
queryKey: [
|
|
13001
13008
|
"componentConfigure",
|
|
13002
|
-
|
|
13009
|
+
w
|
|
13003
13010
|
],
|
|
13004
13011
|
queryFn: async () => {
|
|
13005
13012
|
R(void 0);
|
|
@@ -13038,7 +13045,7 @@ function Gy({ queryEnabled: e }) {
|
|
|
13038
13045
|
return b.length ? (se = [
|
|
13039
13046
|
...A.data,
|
|
13040
13047
|
...b
|
|
13041
|
-
],
|
|
13048
|
+
], E({
|
|
13042
13049
|
page: f + 1,
|
|
13043
13050
|
prevContext: M.context,
|
|
13044
13051
|
data: se,
|
|
@@ -13266,16 +13273,16 @@ function Dy() {
|
|
|
13266
13273
|
s(!1);
|
|
13267
13274
|
}
|
|
13268
13275
|
}
|
|
13269
|
-
}, A = [],
|
|
13276
|
+
}, A = [], E = [];
|
|
13270
13277
|
for (let S = 0; S < t.length; S++) {
|
|
13271
13278
|
const P = t[S];
|
|
13272
13279
|
if (!P.hidden && !Cr.includes(P.type)) {
|
|
13273
13280
|
if (P.optional) {
|
|
13274
|
-
const
|
|
13275
|
-
if (
|
|
13281
|
+
const w = i(P);
|
|
13282
|
+
if (E.push([
|
|
13276
13283
|
P,
|
|
13277
|
-
|
|
13278
|
-
]), !
|
|
13284
|
+
w
|
|
13285
|
+
]), !w)
|
|
13279
13286
|
continue;
|
|
13280
13287
|
}
|
|
13281
13288
|
A.push([
|
|
@@ -13295,9 +13302,9 @@ function Dy() {
|
|
|
13295
13302
|
P
|
|
13296
13303
|
]) => S.type === "alert" ? /* @__PURE__ */ W(Kl, { prop: S }, S.name) : /* @__PURE__ */ W(Oy, { prop: S, idx: P }, S.name)),
|
|
13297
13304
|
n && /* @__PURE__ */ W("p", { children: "Loading dynamic props..." }),
|
|
13298
|
-
!u &&
|
|
13305
|
+
!u && E.length ? /* @__PURE__ */ gt("div", { children: [
|
|
13299
13306
|
/* @__PURE__ */ W("div", { ...d("heading", I, a), children: "Optional Props" }),
|
|
13300
|
-
/* @__PURE__ */ W("div", { ...d("optionalFields", g, a), children:
|
|
13307
|
+
/* @__PURE__ */ W("div", { ...d("optionalFields", g, a), children: E.map(([
|
|
13301
13308
|
S,
|
|
13302
13309
|
P
|
|
13303
13310
|
]) => /* @__PURE__ */ W(
|