backflow-ui-renderer 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -8395,35 +8395,35 @@ function zB(e, t, n) {
|
|
|
8395
8395
|
!h && f.length > 0 && (() => {
|
|
8396
8396
|
var G, X, lt, H, et;
|
|
8397
8397
|
const S = (G = t.groupBy) == null ? void 0 : G.field, A = (it) => {
|
|
8398
|
-
const
|
|
8399
|
-
if (
|
|
8400
|
-
return
|
|
8401
|
-
const ct = Date.parse(
|
|
8398
|
+
const at = it == null ? void 0 : it[S];
|
|
8399
|
+
if (at && typeof at == "object" && at._seconds)
|
|
8400
|
+
return at._seconds * 1e3;
|
|
8401
|
+
const ct = Date.parse(at);
|
|
8402
8402
|
return isNaN(ct) ? 0 : ct;
|
|
8403
8403
|
}, E = (it) => {
|
|
8404
8404
|
if (!it) return "Earlier";
|
|
8405
|
-
const
|
|
8406
|
-
if (yt(
|
|
8405
|
+
const at = new Date(it), ct = /* @__PURE__ */ new Date(), yt = (Et) => `${Et.getFullYear()}-${Et.getMonth()}-${Et.getDate()}`;
|
|
8406
|
+
if (yt(at) === yt(ct)) return "Today";
|
|
8407
8407
|
const vt = new Date(ct);
|
|
8408
|
-
return vt.setDate(ct.getDate() - 1), yt(
|
|
8409
|
-
}, T = ((X = t.sort) == null ? void 0 : X.field) || S ? [...f].sort((it,
|
|
8408
|
+
return vt.setDate(ct.getDate() - 1), yt(at) === yt(vt) ? "Yesterday" : at.toLocaleDateString();
|
|
8409
|
+
}, T = ((X = t.sort) == null ? void 0 : X.field) || S ? [...f].sort((it, at) => {
|
|
8410
8410
|
var yt;
|
|
8411
|
-
const ct = A(
|
|
8411
|
+
const ct = A(at) - A(it);
|
|
8412
8412
|
return ((yt = t.sort) == null ? void 0 : yt.direction) === "asc" ? -ct : ct;
|
|
8413
8413
|
}) : f, C = String(e.sceneData.recordingSearchApplied || "").trim().toLowerCase(), [I, R] = String(
|
|
8414
8414
|
e.sceneData.recordingDateFilterApplied || ""
|
|
8415
8415
|
).split("|"), F = I ? Date.parse(`${I}T00:00:00`) : 0, j = R ? Date.parse(`${R}T23:59:59.999`) : Number.POSITIVE_INFINITY, D = (lt = t.itemsFilter) != null && lt.eq ? e.interpolateText(String(t.itemsFilter.eq)) : "", U = ((H = t.itemsFilter) != null && H.field && D ? T.filter(
|
|
8416
8416
|
(it) => String(it == null ? void 0 : it[t.itemsFilter.field]) === D
|
|
8417
8417
|
) : T).filter((it) => {
|
|
8418
|
-
const
|
|
8418
|
+
const at = !C || [it.url, it.title, it.prompt].some(
|
|
8419
8419
|
(yt) => String(yt || "").toLowerCase().includes(C)
|
|
8420
8420
|
), ct = A(it);
|
|
8421
|
-
return
|
|
8421
|
+
return at && ct >= F && ct <= j;
|
|
8422
8422
|
}), z = {};
|
|
8423
8423
|
if (S)
|
|
8424
8424
|
for (const it of U)
|
|
8425
8425
|
(z[et = E(A(it))] || (z[et] = [])).push(it);
|
|
8426
|
-
const Y = (it,
|
|
8426
|
+
const Y = (it, at) => {
|
|
8427
8427
|
var ct, yt, vt, Et, Tt, ft, dt, Ot;
|
|
8428
8428
|
if (t.renderItem) {
|
|
8429
8429
|
const nt = JSON.parse(JSON.stringify(t.renderItem)), Nt = { ...it };
|
|
@@ -8498,7 +8498,7 @@ function zB(e, t, n) {
|
|
|
8498
8498
|
label: typeof oe == "object" ? oe.label || oe.name || JSON.stringify(oe) : String(oe),
|
|
8499
8499
|
value: typeof oe == "object" ? oe.value || oe.id || JSON.stringify(oe) : String(oe)
|
|
8500
8500
|
})),
|
|
8501
|
-
name: `${n}-${
|
|
8501
|
+
name: `${n}-${at}-${ie}`,
|
|
8502
8502
|
className: Wt.className || "w-full text-sm bg-slate-700 border border-slate-500 text-white rounded-lg px-3 py-1.5"
|
|
8503
8503
|
} : te === "multiselect" ? {
|
|
8504
8504
|
...Wt,
|
|
@@ -8522,7 +8522,7 @@ function zB(e, t, n) {
|
|
|
8522
8522
|
...Ce.map((oe, rn) => ({
|
|
8523
8523
|
type: "checkbox",
|
|
8524
8524
|
label: typeof oe == "object" ? oe.label || oe.name || JSON.stringify(oe) : String(oe),
|
|
8525
|
-
name: `${n}-${
|
|
8525
|
+
name: `${n}-${at}-${ie}-${rn}`,
|
|
8526
8526
|
className: "text-sm text-gray-200"
|
|
8527
8527
|
}))
|
|
8528
8528
|
]
|
|
@@ -8565,17 +8565,17 @@ function zB(e, t, n) {
|
|
|
8565
8565
|
className: Wt.className || "w-full h-32 rounded-lg object-cover"
|
|
8566
8566
|
} : Wt;
|
|
8567
8567
|
})), t.selectable && e.sceneData._selectMode) {
|
|
8568
|
-
const Wt = String(it.id ||
|
|
8568
|
+
const Wt = String(it.id || at), te = Array.isArray(e.sceneData._selIds) && e.sceneData._selIds.map(String).includes(Wt), ee = (Yt) => Yt ? [
|
|
8569
8569
|
Yt.text,
|
|
8570
8570
|
Yt.content,
|
|
8571
8571
|
...Yt.children ? Yt.children.flatMap(ee) : []
|
|
8572
8572
|
].filter(
|
|
8573
8573
|
(ie) => typeof ie == "string" && ie.trim() && !ie.includes("{{")
|
|
8574
8574
|
) : [];
|
|
8575
|
-
return Xt.text || Xt.label || ee(Xt).slice(0, 2).join(" — ") || String(it.id ||
|
|
8575
|
+
return Xt.text || Xt.label || ee(Xt).slice(0, 2).join(" — ") || String(it.id || at), V(
|
|
8576
8576
|
"div",
|
|
8577
8577
|
{
|
|
8578
|
-
key: `${n}-item-${
|
|
8578
|
+
key: `${n}-item-${at}`,
|
|
8579
8579
|
className: (ct = t.selectionStyle) == null ? void 0 : ct.className,
|
|
8580
8580
|
style: {
|
|
8581
8581
|
position: "relative",
|
|
@@ -8640,25 +8640,25 @@ function zB(e, t, n) {
|
|
|
8640
8640
|
te ? e.renderIcon("check", 12) : null
|
|
8641
8641
|
)
|
|
8642
8642
|
),
|
|
8643
|
-
e.renderComponent(Xt,
|
|
8643
|
+
e.renderComponent(Xt, at, `${n}-item`)
|
|
8644
8644
|
);
|
|
8645
8645
|
}
|
|
8646
8646
|
return V(
|
|
8647
8647
|
"div",
|
|
8648
8648
|
{
|
|
8649
|
-
key: `${n}-row-${
|
|
8649
|
+
key: `${n}-row-${at}`,
|
|
8650
8650
|
style: { display: "contents" },
|
|
8651
8651
|
onClickCapture: () => {
|
|
8652
8652
|
e.rowContextRef && (e.rowContextRef.current = it);
|
|
8653
8653
|
}
|
|
8654
8654
|
},
|
|
8655
|
-
e.renderComponent(Xt,
|
|
8655
|
+
e.renderComponent(Xt, at, `${n}-item`)
|
|
8656
8656
|
);
|
|
8657
8657
|
}
|
|
8658
8658
|
return null;
|
|
8659
8659
|
};
|
|
8660
8660
|
return S ? Object.entries(z).map(
|
|
8661
|
-
([it,
|
|
8661
|
+
([it, at], ct) => V(
|
|
8662
8662
|
"div",
|
|
8663
8663
|
{
|
|
8664
8664
|
key: `${n}-group-${ct}`,
|
|
@@ -8683,7 +8683,7 @@ function zB(e, t, n) {
|
|
|
8683
8683
|
},
|
|
8684
8684
|
it
|
|
8685
8685
|
),
|
|
8686
|
-
|
|
8686
|
+
at.map(Y)
|
|
8687
8687
|
)
|
|
8688
8688
|
) : U.map(Y);
|
|
8689
8689
|
})(),
|
|
@@ -8809,8 +8809,8 @@ function FB({
|
|
|
8809
8809
|
if (it.startsWith("sdk:"))
|
|
8810
8810
|
await e.handleButtonClick(E(it, U), {});
|
|
8811
8811
|
else {
|
|
8812
|
-
const
|
|
8813
|
-
await fetch(
|
|
8812
|
+
const at = E(it, U);
|
|
8813
|
+
await fetch(at, {
|
|
8814
8814
|
method: "PATCH",
|
|
8815
8815
|
headers: { "Content-Type": "application/json" },
|
|
8816
8816
|
body: JSON.stringify({ [H]: Y[H] })
|
|
@@ -8851,19 +8851,19 @@ function FB({
|
|
|
8851
8851
|
return V("select", {
|
|
8852
8852
|
...et,
|
|
8853
8853
|
value: String(lt ?? ""),
|
|
8854
|
-
onChange: (
|
|
8855
|
-
T(z, U,
|
|
8854
|
+
onChange: (at) => {
|
|
8855
|
+
T(z, U, at.target.value), U.onCellChange && x(z, [U]);
|
|
8856
8856
|
},
|
|
8857
8857
|
children: (Array.isArray(U.fieldOptions) ? U.fieldOptions : []).map(
|
|
8858
|
-
(
|
|
8858
|
+
(at, ct) => V("option", {
|
|
8859
8859
|
key: ct,
|
|
8860
|
-
value:
|
|
8861
|
-
children:
|
|
8860
|
+
value: at.value,
|
|
8861
|
+
children: at.label ?? at.value
|
|
8862
8862
|
})
|
|
8863
8863
|
)
|
|
8864
8864
|
});
|
|
8865
8865
|
if (H === "multiselect") {
|
|
8866
|
-
const
|
|
8866
|
+
const at = Array.isArray(lt) ? lt : [];
|
|
8867
8867
|
return V(
|
|
8868
8868
|
"div",
|
|
8869
8869
|
{
|
|
@@ -8875,7 +8875,7 @@ function FB({
|
|
|
8875
8875
|
},
|
|
8876
8876
|
(Array.isArray(U.fieldOptions) ? U.fieldOptions : []).map(
|
|
8877
8877
|
(ct, yt) => {
|
|
8878
|
-
const vt =
|
|
8878
|
+
const vt = at.includes(ct.value);
|
|
8879
8879
|
return V(
|
|
8880
8880
|
"label",
|
|
8881
8881
|
{
|
|
@@ -8891,7 +8891,7 @@ function FB({
|
|
|
8891
8891
|
type: "checkbox",
|
|
8892
8892
|
checked: vt,
|
|
8893
8893
|
onChange: (Et) => {
|
|
8894
|
-
const Tt = Et.target.checked ? [...
|
|
8894
|
+
const Tt = Et.target.checked ? [...at, ct.value] : at.filter((ft) => ft !== ct.value);
|
|
8895
8895
|
T(z, U, Tt), U.onCellChange && x(z, [U]);
|
|
8896
8896
|
}
|
|
8897
8897
|
}),
|
|
@@ -8924,7 +8924,7 @@ function FB({
|
|
|
8924
8924
|
...et,
|
|
8925
8925
|
value: String(lt ?? ""),
|
|
8926
8926
|
placeholder: U.fieldPlaceholder || "Image URL",
|
|
8927
|
-
onChange: (
|
|
8927
|
+
onChange: (at) => T(z, U, at.target.value),
|
|
8928
8928
|
onBlur: it
|
|
8929
8929
|
})
|
|
8930
8930
|
) : V("input", {
|
|
@@ -8932,10 +8932,10 @@ function FB({
|
|
|
8932
8932
|
type: H === "number" ? "number" : "text",
|
|
8933
8933
|
value: String(lt ?? ""),
|
|
8934
8934
|
placeholder: U.fieldPlaceholder || "",
|
|
8935
|
-
onChange: (
|
|
8935
|
+
onChange: (at) => T(
|
|
8936
8936
|
z,
|
|
8937
8937
|
U,
|
|
8938
|
-
H === "number" ? Number(
|
|
8938
|
+
H === "number" ? Number(at.target.value) : at.target.value
|
|
8939
8939
|
),
|
|
8940
8940
|
onBlur: it
|
|
8941
8941
|
});
|
|
@@ -16389,7 +16389,7 @@ function V4() {
|
|
|
16389
16389
|
function it(bt) {
|
|
16390
16390
|
return x(bt) === s;
|
|
16391
16391
|
}
|
|
16392
|
-
function
|
|
16392
|
+
function at(bt) {
|
|
16393
16393
|
return x(bt) === o;
|
|
16394
16394
|
}
|
|
16395
16395
|
function ct(bt) {
|
|
@@ -16422,7 +16422,7 @@ function V4() {
|
|
|
16422
16422
|
function Nt(bt) {
|
|
16423
16423
|
return x(bt) === u;
|
|
16424
16424
|
}
|
|
16425
|
-
we.ContextConsumer = T, we.ContextProvider = C, we.Element = I, we.ForwardRef = R, we.Fragment = F, we.Lazy = j, we.Memo = D, we.Portal = K, we.Profiler = U, we.StrictMode = z, we.Suspense = Y, we.SuspenseList = G, we.isAsyncMode = H, we.isConcurrentMode = et, we.isContextConsumer = it, we.isContextProvider =
|
|
16425
|
+
we.ContextConsumer = T, we.ContextProvider = C, we.Element = I, we.ForwardRef = R, we.Fragment = F, we.Lazy = j, we.Memo = D, we.Portal = K, we.Profiler = U, we.StrictMode = z, we.Suspense = Y, we.SuspenseList = G, we.isAsyncMode = H, we.isConcurrentMode = et, we.isContextConsumer = it, we.isContextProvider = at, we.isElement = ct, we.isForwardRef = yt, we.isFragment = vt, we.isLazy = Et, we.isMemo = Tt, we.isPortal = ft, we.isProfiler = dt, we.isStrictMode = Ot, we.isSuspense = nt, we.isSuspenseList = Nt, we.isValidElementType = E, we.typeOf = x;
|
|
16426
16426
|
}()), we;
|
|
16427
16427
|
}
|
|
16428
16428
|
process.env.NODE_ENV === "production" ? Ly.exports = W4() : Ly.exports = V4();
|
|
@@ -19241,8 +19241,8 @@ var EZ = function(t) {
|
|
|
19241
19241
|
if (G && H != null && et != null) {
|
|
19242
19242
|
var it = G(X, lt, U, z, u);
|
|
19243
19243
|
if (Array.isArray(it)) {
|
|
19244
|
-
var
|
|
19245
|
-
H =
|
|
19244
|
+
var at = vZ(it, 2);
|
|
19245
|
+
H = at[0], et = at[1];
|
|
19246
19246
|
} else
|
|
19247
19247
|
H = it;
|
|
19248
19248
|
}
|
|
@@ -19956,8 +19956,8 @@ var tm = /* @__PURE__ */ Aa(function(e, t) {
|
|
|
19956
19956
|
}, []);
|
|
19957
19957
|
Jn(function() {
|
|
19958
19958
|
var K = function(lt) {
|
|
19959
|
-
var H, et = lt[0].contentRect, it = et.width,
|
|
19960
|
-
j(it,
|
|
19959
|
+
var H, et = lt[0].contentRect, it = et.width, at = et.height;
|
|
19960
|
+
j(it, at), (H = T.current) === null || H === void 0 || H.call(T, it, at);
|
|
19961
19961
|
};
|
|
19962
19962
|
p > 0 && (K = iM(K, p, {
|
|
19963
19963
|
trailing: !0,
|
|
@@ -21955,7 +21955,7 @@ function IX(e) {
|
|
|
21955
21955
|
Z: mJ,
|
|
21956
21956
|
"%": sP
|
|
21957
21957
|
}, E = {
|
|
21958
|
-
a:
|
|
21958
|
+
a: at,
|
|
21959
21959
|
A: ct,
|
|
21960
21960
|
b: yt,
|
|
21961
21961
|
B: vt,
|
|
@@ -22100,7 +22100,7 @@ function IX(e) {
|
|
|
22100
22100
|
function it(ft) {
|
|
22101
22101
|
return 1 + ~~(ft.getMonth() / 3);
|
|
22102
22102
|
}
|
|
22103
|
-
function
|
|
22103
|
+
function at(ft) {
|
|
22104
22104
|
return s[ft.getUTCDay()];
|
|
22105
22105
|
}
|
|
22106
22106
|
function ct(ft) {
|
|
@@ -25382,7 +25382,7 @@ function Bet() {
|
|
|
25382
25382
|
function it(nt) {
|
|
25383
25383
|
return E(nt) === s;
|
|
25384
25384
|
}
|
|
25385
|
-
function
|
|
25385
|
+
function at(nt) {
|
|
25386
25386
|
return typeof nt == "object" && nt !== null && nt.$$typeof === t;
|
|
25387
25387
|
}
|
|
25388
25388
|
function ct(nt) {
|
|
@@ -25409,7 +25409,7 @@ function Bet() {
|
|
|
25409
25409
|
function Ot(nt) {
|
|
25410
25410
|
return E(nt) === f;
|
|
25411
25411
|
}
|
|
25412
|
-
Se.AsyncMode = x, Se.ConcurrentMode = T, Se.ContextConsumer = C, Se.ContextProvider = I, Se.Element = R, Se.ForwardRef = F, Se.Fragment = j, Se.Lazy = D, Se.Memo = K, Se.Portal = U, Se.Profiler = z, Se.StrictMode = Y, Se.Suspense = G, Se.isAsyncMode = lt, Se.isConcurrentMode = H, Se.isContextConsumer = et, Se.isContextProvider = it, Se.isElement =
|
|
25412
|
+
Se.AsyncMode = x, Se.ConcurrentMode = T, Se.ContextConsumer = C, Se.ContextProvider = I, Se.Element = R, Se.ForwardRef = F, Se.Fragment = j, Se.Lazy = D, Se.Memo = K, Se.Portal = U, Se.Profiler = z, Se.StrictMode = Y, Se.Suspense = G, Se.isAsyncMode = lt, Se.isConcurrentMode = H, Se.isContextConsumer = et, Se.isContextProvider = it, Se.isElement = at, Se.isForwardRef = ct, Se.isFragment = yt, Se.isLazy = vt, Se.isMemo = Et, Se.isPortal = Tt, Se.isProfiler = ft, Se.isStrictMode = dt, Se.isSuspense = Ot, Se.isValidElementType = A, Se.typeOf = E;
|
|
25413
25413
|
}()), Se;
|
|
25414
25414
|
}
|
|
25415
25415
|
var RP;
|
|
@@ -25582,7 +25582,7 @@ function Wet() {
|
|
|
25582
25582
|
function v(H) {
|
|
25583
25583
|
if (process.env.NODE_ENV !== "production")
|
|
25584
25584
|
var et = {}, it = 0;
|
|
25585
|
-
function
|
|
25585
|
+
function at(yt, vt, Et, Tt, ft, dt, Ot) {
|
|
25586
25586
|
if (Tt = Tt || m, dt = dt || Et, Ot !== n) {
|
|
25587
25587
|
if (c) {
|
|
25588
25588
|
var nt = new Error(
|
|
@@ -25599,12 +25599,12 @@ function Wet() {
|
|
|
25599
25599
|
}
|
|
25600
25600
|
return vt[Et] == null ? yt ? vt[Et] === null ? new p("The " + ft + " `" + dt + "` is marked as required " + ("in `" + Tt + "`, but its value is `null`.")) : new p("The " + ft + " `" + dt + "` is marked as required in " + ("`" + Tt + "`, but its value is `undefined`.")) : null : H(vt, Et, Tt, ft, dt);
|
|
25601
25601
|
}
|
|
25602
|
-
var ct =
|
|
25603
|
-
return ct.isRequired =
|
|
25602
|
+
var ct = at.bind(null, !1);
|
|
25603
|
+
return ct.isRequired = at.bind(null, !0), ct;
|
|
25604
25604
|
}
|
|
25605
25605
|
function P(H) {
|
|
25606
|
-
function et(it,
|
|
25607
|
-
var Tt = it[
|
|
25606
|
+
function et(it, at, ct, yt, vt, Et) {
|
|
25607
|
+
var Tt = it[at], ft = Y(Tt);
|
|
25608
25608
|
if (ft !== H) {
|
|
25609
25609
|
var dt = G(Tt);
|
|
25610
25610
|
return new p(
|
|
@@ -25620,10 +25620,10 @@ function Wet() {
|
|
|
25620
25620
|
return v(s);
|
|
25621
25621
|
}
|
|
25622
25622
|
function A(H) {
|
|
25623
|
-
function et(it,
|
|
25623
|
+
function et(it, at, ct, yt, vt) {
|
|
25624
25624
|
if (typeof H != "function")
|
|
25625
25625
|
return new p("Property `" + vt + "` of component `" + ct + "` has invalid PropType notation inside arrayOf.");
|
|
25626
|
-
var Et = it[
|
|
25626
|
+
var Et = it[at];
|
|
25627
25627
|
if (!Array.isArray(Et)) {
|
|
25628
25628
|
var Tt = Y(Et);
|
|
25629
25629
|
return new p("Invalid " + yt + " `" + vt + "` of type " + ("`" + Tt + "` supplied to `" + ct + "`, expected an array."));
|
|
@@ -25638,31 +25638,31 @@ function Wet() {
|
|
|
25638
25638
|
return v(et);
|
|
25639
25639
|
}
|
|
25640
25640
|
function E() {
|
|
25641
|
-
function H(et, it,
|
|
25641
|
+
function H(et, it, at, ct, yt) {
|
|
25642
25642
|
var vt = et[it];
|
|
25643
25643
|
if (!l(vt)) {
|
|
25644
25644
|
var Et = Y(vt);
|
|
25645
|
-
return new p("Invalid " + ct + " `" + yt + "` of type " + ("`" + Et + "` supplied to `" +
|
|
25645
|
+
return new p("Invalid " + ct + " `" + yt + "` of type " + ("`" + Et + "` supplied to `" + at + "`, expected a single ReactElement."));
|
|
25646
25646
|
}
|
|
25647
25647
|
return null;
|
|
25648
25648
|
}
|
|
25649
25649
|
return v(H);
|
|
25650
25650
|
}
|
|
25651
25651
|
function x() {
|
|
25652
|
-
function H(et, it,
|
|
25652
|
+
function H(et, it, at, ct, yt) {
|
|
25653
25653
|
var vt = et[it];
|
|
25654
25654
|
if (!e.isValidElementType(vt)) {
|
|
25655
25655
|
var Et = Y(vt);
|
|
25656
|
-
return new p("Invalid " + ct + " `" + yt + "` of type " + ("`" + Et + "` supplied to `" +
|
|
25656
|
+
return new p("Invalid " + ct + " `" + yt + "` of type " + ("`" + Et + "` supplied to `" + at + "`, expected a single ReactElement type."));
|
|
25657
25657
|
}
|
|
25658
25658
|
return null;
|
|
25659
25659
|
}
|
|
25660
25660
|
return v(H);
|
|
25661
25661
|
}
|
|
25662
25662
|
function T(H) {
|
|
25663
|
-
function et(it,
|
|
25664
|
-
if (!(it[
|
|
25665
|
-
var Et = H.name || m, Tt = lt(it[
|
|
25663
|
+
function et(it, at, ct, yt, vt) {
|
|
25664
|
+
if (!(it[at] instanceof H)) {
|
|
25665
|
+
var Et = H.name || m, Tt = lt(it[at]);
|
|
25666
25666
|
return new p("Invalid " + yt + " `" + vt + "` of type " + ("`" + Tt + "` supplied to `" + ct + "`, expected ") + ("instance of `" + Et + "`."));
|
|
25667
25667
|
}
|
|
25668
25668
|
return null;
|
|
@@ -25674,8 +25674,8 @@ function Wet() {
|
|
|
25674
25674
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
25675
25675
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
25676
25676
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
25677
|
-
function et(it,
|
|
25678
|
-
for (var Et = it[
|
|
25677
|
+
function et(it, at, ct, yt, vt) {
|
|
25678
|
+
for (var Et = it[at], Tt = 0; Tt < H.length; Tt++)
|
|
25679
25679
|
if (b(Et, H[Tt]))
|
|
25680
25680
|
return null;
|
|
25681
25681
|
var ft = JSON.stringify(H, function(Ot, nt) {
|
|
@@ -25687,10 +25687,10 @@ function Wet() {
|
|
|
25687
25687
|
return v(et);
|
|
25688
25688
|
}
|
|
25689
25689
|
function I(H) {
|
|
25690
|
-
function et(it,
|
|
25690
|
+
function et(it, at, ct, yt, vt) {
|
|
25691
25691
|
if (typeof H != "function")
|
|
25692
25692
|
return new p("Property `" + vt + "` of component `" + ct + "` has invalid PropType notation inside objectOf.");
|
|
25693
|
-
var Et = it[
|
|
25693
|
+
var Et = it[at], Tt = Y(Et);
|
|
25694
25694
|
if (Tt !== "object")
|
|
25695
25695
|
return new p("Invalid " + yt + " `" + vt + "` of type " + ("`" + Tt + "` supplied to `" + ct + "`, expected an object."));
|
|
25696
25696
|
for (var ft in Et)
|
|
@@ -25713,7 +25713,7 @@ function Wet() {
|
|
|
25713
25713
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(it) + " at index " + et + "."
|
|
25714
25714
|
), s;
|
|
25715
25715
|
}
|
|
25716
|
-
function
|
|
25716
|
+
function at(ct, yt, vt, Et, Tt) {
|
|
25717
25717
|
for (var ft = [], dt = 0; dt < H.length; dt++) {
|
|
25718
25718
|
var Ot = H[dt], nt = Ot(ct, yt, vt, Et, Tt, n);
|
|
25719
25719
|
if (nt == null)
|
|
@@ -25723,22 +25723,22 @@ function Wet() {
|
|
|
25723
25723
|
var Nt = ft.length > 0 ? ", expected one of type [" + ft.join(", ") + "]" : "";
|
|
25724
25724
|
return new p("Invalid " + Et + " `" + Tt + "` supplied to " + ("`" + vt + "`" + Nt + "."));
|
|
25725
25725
|
}
|
|
25726
|
-
return v(
|
|
25726
|
+
return v(at);
|
|
25727
25727
|
}
|
|
25728
25728
|
function F() {
|
|
25729
|
-
function H(et, it,
|
|
25730
|
-
return U(et[it]) ? null : new p("Invalid " + ct + " `" + yt + "` supplied to " + ("`" +
|
|
25729
|
+
function H(et, it, at, ct, yt) {
|
|
25730
|
+
return U(et[it]) ? null : new p("Invalid " + ct + " `" + yt + "` supplied to " + ("`" + at + "`, expected a ReactNode."));
|
|
25731
25731
|
}
|
|
25732
25732
|
return v(H);
|
|
25733
25733
|
}
|
|
25734
|
-
function j(H, et, it,
|
|
25734
|
+
function j(H, et, it, at, ct) {
|
|
25735
25735
|
return new p(
|
|
25736
|
-
(H || "React class") + ": " + et + " type `" + it + "." +
|
|
25736
|
+
(H || "React class") + ": " + et + " type `" + it + "." + at + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ct + "`."
|
|
25737
25737
|
);
|
|
25738
25738
|
}
|
|
25739
25739
|
function D(H) {
|
|
25740
|
-
function et(it,
|
|
25741
|
-
var Et = it[
|
|
25740
|
+
function et(it, at, ct, yt, vt) {
|
|
25741
|
+
var Et = it[at], Tt = Y(Et);
|
|
25742
25742
|
if (Tt !== "object")
|
|
25743
25743
|
return new p("Invalid " + yt + " `" + vt + "` of type `" + Tt + "` " + ("supplied to `" + ct + "`, expected `object`."));
|
|
25744
25744
|
for (var ft in H) {
|
|
@@ -25754,18 +25754,18 @@ function Wet() {
|
|
|
25754
25754
|
return v(et);
|
|
25755
25755
|
}
|
|
25756
25756
|
function K(H) {
|
|
25757
|
-
function et(it,
|
|
25758
|
-
var Et = it[
|
|
25757
|
+
function et(it, at, ct, yt, vt) {
|
|
25758
|
+
var Et = it[at], Tt = Y(Et);
|
|
25759
25759
|
if (Tt !== "object")
|
|
25760
25760
|
return new p("Invalid " + yt + " `" + vt + "` of type `" + Tt + "` " + ("supplied to `" + ct + "`, expected `object`."));
|
|
25761
|
-
var ft = t({}, it[
|
|
25761
|
+
var ft = t({}, it[at], H);
|
|
25762
25762
|
for (var dt in ft) {
|
|
25763
25763
|
var Ot = H[dt];
|
|
25764
25764
|
if (r(H, dt) && typeof Ot != "function")
|
|
25765
25765
|
return j(ct, yt, vt, dt, G(Ot));
|
|
25766
25766
|
if (!Ot)
|
|
25767
25767
|
return new p(
|
|
25768
|
-
"Invalid " + yt + " `" + vt + "` key `" + dt + "` supplied to `" + ct + "`.\nBad object: " + JSON.stringify(it[
|
|
25768
|
+
"Invalid " + yt + " `" + vt + "` key `" + dt + "` supplied to `" + ct + "`.\nBad object: " + JSON.stringify(it[at], null, " ") + `
|
|
25769
25769
|
Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
25770
25770
|
);
|
|
25771
25771
|
var nt = Ot(Et, dt, ct, yt, vt + "." + dt, n);
|
|
@@ -25791,14 +25791,14 @@ Valid keys: ` + JSON.stringify(Object.keys(H), null, " ")
|
|
|
25791
25791
|
return !0;
|
|
25792
25792
|
var et = f(H);
|
|
25793
25793
|
if (et) {
|
|
25794
|
-
var it = et.call(H),
|
|
25794
|
+
var it = et.call(H), at;
|
|
25795
25795
|
if (et !== H.entries) {
|
|
25796
|
-
for (; !(
|
|
25797
|
-
if (!U(
|
|
25796
|
+
for (; !(at = it.next()).done; )
|
|
25797
|
+
if (!U(at.value))
|
|
25798
25798
|
return !1;
|
|
25799
25799
|
} else
|
|
25800
|
-
for (; !(
|
|
25801
|
-
var ct =
|
|
25800
|
+
for (; !(at = it.next()).done; ) {
|
|
25801
|
+
var ct = at.value;
|
|
25802
25802
|
if (ct && !U(ct[1]))
|
|
25803
25803
|
return !1;
|
|
25804
25804
|
}
|
|
@@ -29805,8 +29805,8 @@ Jo(La, "getComposedData", function(e) {
|
|
|
29805
29805
|
width: U,
|
|
29806
29806
|
height: s.height
|
|
29807
29807
|
}, Math.abs(G) > 0 && Math.abs(z) < Math.abs(G)) {
|
|
29808
|
-
var
|
|
29809
|
-
K -=
|
|
29808
|
+
var at = Gn(z || G) * (Math.abs(G) - Math.abs(z));
|
|
29809
|
+
K -= at, z += at;
|
|
29810
29810
|
}
|
|
29811
29811
|
} else {
|
|
29812
29812
|
var ct = [o.scale(j[0]), o.scale(j[1])], yt = ct[0], vt = ct[1];
|
|
@@ -29939,7 +29939,7 @@ var dx = function(t, n, r, i, o) {
|
|
|
29939
29939
|
realScaleType: et
|
|
29940
29940
|
}));
|
|
29941
29941
|
i === "xAxis" ? (j = v === "top" && !E || v === "bottom" && E, R = r.left, F = f[T] - j * p.height) : i === "yAxis" && (j = v === "left" && !E || v === "right" && E, R = f[T] - j * p.width, F = r.top);
|
|
29942
|
-
var
|
|
29942
|
+
var at = ri(ri(ri({}, p), it), {}, {
|
|
29943
29943
|
realScaleType: et,
|
|
29944
29944
|
x: R,
|
|
29945
29945
|
y: F,
|
|
@@ -29947,7 +29947,7 @@ var dx = function(t, n, r, i, o) {
|
|
|
29947
29947
|
width: i === "xAxis" ? r.width : p.width,
|
|
29948
29948
|
height: i === "yAxis" ? r.height : p.height
|
|
29949
29949
|
});
|
|
29950
|
-
return
|
|
29950
|
+
return at.bandSize = Vd(at, it), !p.hide && i === "xAxis" ? f[T] += (j ? -1 : 1) * at.height : p.hide || (f[T] += (j ? -1 : 1) * at.width), ri(ri({}, y), {}, vm({}, b, at));
|
|
29951
29951
|
}, {});
|
|
29952
29952
|
}, Hk = function(t, n) {
|
|
29953
29953
|
var r = t.x, i = t.y, o = n.x, s = n.y;
|
|
@@ -33473,7 +33473,7 @@ var ub = function(t, n, r, i) {
|
|
|
33473
33473
|
return b;
|
|
33474
33474
|
var F = Pm(t.data, {
|
|
33475
33475
|
graphicalItems: i.filter(function(it) {
|
|
33476
|
-
var
|
|
33476
|
+
var at, ct = s in it.props ? it.props[s] : (at = it.type.defaultProps) === null || at === void 0 ? void 0 : at[s];
|
|
33477
33477
|
return ct === R;
|
|
33478
33478
|
}),
|
|
33479
33479
|
dataStartIndex: c,
|
|
@@ -33486,26 +33486,26 @@ var ub = function(t, n, r, i) {
|
|
|
33486
33486
|
if (A) {
|
|
33487
33487
|
if (D = Pu(F, A, S), S === "category" && y) {
|
|
33488
33488
|
var X = eV(D);
|
|
33489
|
-
x && X ? (K = D, D = ip(0, j)) : x || (D = wP(G, D, p).reduce(function(it,
|
|
33490
|
-
return it.indexOf(
|
|
33489
|
+
x && X ? (K = D, D = ip(0, j)) : x || (D = wP(G, D, p).reduce(function(it, at) {
|
|
33490
|
+
return it.indexOf(at) >= 0 ? it : [].concat(oc(it), [at]);
|
|
33491
33491
|
}, []));
|
|
33492
33492
|
} else if (S === "category")
|
|
33493
33493
|
x ? D = D.filter(function(it) {
|
|
33494
33494
|
return it !== "" && !Zt(it);
|
|
33495
|
-
}) : D = wP(G, D, p).reduce(function(it,
|
|
33496
|
-
return it.indexOf(
|
|
33495
|
+
}) : D = wP(G, D, p).reduce(function(it, at) {
|
|
33496
|
+
return it.indexOf(at) >= 0 || at === "" || Zt(at) ? it : [].concat(oc(it), [at]);
|
|
33497
33497
|
}, []);
|
|
33498
33498
|
else if (S === "number") {
|
|
33499
33499
|
var lt = btt(F, i.filter(function(it) {
|
|
33500
|
-
var
|
|
33500
|
+
var at, ct, yt = s in it.props ? it.props[s] : (at = it.type.defaultProps) === null || at === void 0 ? void 0 : at[s], vt = "hide" in it.props ? it.props.hide : (ct = it.type.defaultProps) === null || ct === void 0 ? void 0 : ct.hide;
|
|
33501
33501
|
return yt === R && (I || !vt);
|
|
33502
33502
|
}), A, o, u);
|
|
33503
33503
|
lt && (D = lt);
|
|
33504
33504
|
}
|
|
33505
33505
|
y && (S === "number" || T !== "auto") && (U = Pu(F, A, "category"));
|
|
33506
33506
|
} else y ? D = ip(0, j) : l && l[R] && l[R].hasStack && S === "number" ? D = m === "expand" ? [0, 1] : fk(l[R].stackGroups, c, h) : D = sk(F, i.filter(function(it) {
|
|
33507
|
-
var
|
|
33508
|
-
return
|
|
33507
|
+
var at = s in it.props ? it.props[s] : it.type.defaultProps[s], ct = "hide" in it.props ? it.props.hide : it.type.defaultProps.hide;
|
|
33508
|
+
return at === R && (I || !ct);
|
|
33509
33509
|
}), S, u, !0);
|
|
33510
33510
|
if (S === "number")
|
|
33511
33511
|
D = ab(f, D, R, o, C), G && (D = _v(G, D, E));
|
|
@@ -33649,7 +33649,7 @@ var ub = function(t, n, r, i) {
|
|
|
33649
33649
|
graphicalItems: [lt],
|
|
33650
33650
|
dataStartIndex: C,
|
|
33651
33651
|
dataEndIndex: I
|
|
33652
|
-
}), it = lt.type.defaultProps !== void 0 ? ht(ht({}, lt.type.defaultProps), lt.props) : lt.props,
|
|
33652
|
+
}), it = lt.type.defaultProps !== void 0 ? ht(ht({}, lt.type.defaultProps), lt.props) : lt.props, at = it.dataKey, ct = it.maxBarSize, yt = it["".concat(z, "Id")], vt = it["".concat(Y, "Id")], Et = {}, Tt = c.reduce(function(ee, Yt) {
|
|
33653
33653
|
var ie, Ce, oe = S["".concat(Yt.axisType, "Map")], rn = it["".concat(Yt.axisType, "Id")];
|
|
33654
33654
|
oe && oe[rn] || Yt.axisType === "zAxis" || (process.env.NODE_ENV !== "production" ? sr(!1, "Specifying a(n) ".concat(Yt.axisType, "Id requires a corresponding ").concat(
|
|
33655
33655
|
Yt.axisType,
|
|
@@ -33683,7 +33683,7 @@ var ub = function(t, n, r, i) {
|
|
|
33683
33683
|
props: ht(ht({}, te(ht(ht({}, Tt), {}, {
|
|
33684
33684
|
displayedData: et,
|
|
33685
33685
|
props: P,
|
|
33686
|
-
dataKey:
|
|
33686
|
+
dataKey: at,
|
|
33687
33687
|
item: lt,
|
|
33688
33688
|
bandSize: Nt,
|
|
33689
33689
|
barPosition: bt,
|
|
@@ -33705,11 +33705,11 @@ var ub = function(t, n, r, i) {
|
|
|
33705
33705
|
props: A
|
|
33706
33706
|
}))
|
|
33707
33707
|
return null;
|
|
33708
|
-
var C = A.children, I = A.layout, R = A.stackOffset, F = A.data, j = A.reverseStackOrder, D = lT(I), K = D.numericAxisName, U = D.cateAxisName, z = lr(C, r), Y = Ttt(F, z, "".concat(K, "Id"), "".concat(U, "Id"), R, j), G = c.reduce(function(it,
|
|
33709
|
-
var ct = "".concat(
|
|
33710
|
-
return ht(ht({}, it), {}, Ut({}, ct, _ut(A, ht(ht({},
|
|
33708
|
+
var C = A.children, I = A.layout, R = A.stackOffset, F = A.data, j = A.reverseStackOrder, D = lT(I), K = D.numericAxisName, U = D.cateAxisName, z = lr(C, r), Y = Ttt(F, z, "".concat(K, "Id"), "".concat(U, "Id"), R, j), G = c.reduce(function(it, at) {
|
|
33709
|
+
var ct = "".concat(at.axisType, "Map");
|
|
33710
|
+
return ht(ht({}, it), {}, Ut({}, ct, _ut(A, ht(ht({}, at), {}, {
|
|
33711
33711
|
graphicalItems: z,
|
|
33712
|
-
stackGroups:
|
|
33712
|
+
stackGroups: at.axisType === K && Y,
|
|
33713
33713
|
dataStartIndex: E,
|
|
33714
33714
|
dataEndIndex: x
|
|
33715
33715
|
}))));
|
|
@@ -33900,12 +33900,12 @@ var ub = function(t, n, r, i) {
|
|
|
33900
33900
|
var H = ht(ht({}, G), {}, {
|
|
33901
33901
|
x: G.left,
|
|
33902
33902
|
y: G.top
|
|
33903
|
-
}), et = Math.min(K, H.x + H.width), it = Math.min(U, H.y + H.height),
|
|
33903
|
+
}), et = Math.min(K, H.x + H.width), it = Math.min(U, H.y + H.height), at = X[z] && X[z].value, ct = ub(x.state, x.props.data, z), yt = X[z] ? {
|
|
33904
33904
|
x: I === "horizontal" ? X[z].coordinate : et,
|
|
33905
33905
|
y: I === "horizontal" ? it : X[z].coordinate
|
|
33906
33906
|
} : $$;
|
|
33907
33907
|
x.setState(ht(ht({}, T), {}, {
|
|
33908
|
-
activeLabel:
|
|
33908
|
+
activeLabel: at,
|
|
33909
33909
|
activeCoordinate: yt,
|
|
33910
33910
|
activePayload: ct,
|
|
33911
33911
|
activeTooltipIndex: z
|
|
@@ -34032,7 +34032,7 @@ var ub = function(t, n, r, i) {
|
|
|
34032
34032
|
var R = x.filterFormatItem(T, C, I);
|
|
34033
34033
|
if (!R)
|
|
34034
34034
|
return null;
|
|
34035
|
-
var F = x.getTooltipEventType(), j = x.state, D = j.isTooltipActive, K = j.tooltipAxis, U = j.activeTooltipIndex, z = j.activeLabel, Y = x.props.children, G = Sr(Y, Pr), X = R.props, lt = X.points, H = X.isRange, et = X.baseLine, it = R.item.type.defaultProps !== void 0 ? ht(ht({}, R.item.type.defaultProps), R.item.props) : R.item.props,
|
|
34035
|
+
var F = x.getTooltipEventType(), j = x.state, D = j.isTooltipActive, K = j.tooltipAxis, U = j.activeTooltipIndex, z = j.activeLabel, Y = x.props.children, G = Sr(Y, Pr), X = R.props, lt = X.points, H = X.isRange, et = X.baseLine, it = R.item.type.defaultProps !== void 0 ? ht(ht({}, R.item.type.defaultProps), R.item.props) : R.item.props, at = it.activeDot, ct = it.hide, yt = it.activeBar, vt = it.activeShape, Et = !!(!ct && D && G && (at || yt || vt)), Tt = {};
|
|
34036
34036
|
F !== "axis" && G && G.props.trigger === "click" ? Tt = {
|
|
34037
34037
|
onClick: Lf(x.handleItemMouseEnter, T.props.onClick)
|
|
34038
34038
|
} : F !== "axis" && (Tt = {
|
|
@@ -34514,7 +34514,7 @@ var ub = function(t, n, r, i) {
|
|
|
34514
34514
|
});
|
|
34515
34515
|
}
|
|
34516
34516
|
if (!Dy(E, P.prevChildren)) {
|
|
34517
|
-
var G, X, lt, H, et = Sr(E, ql), it = et && (G = (X = et.props) === null || X === void 0 ? void 0 : X.startIndex) !== null && G !== void 0 ? G : F,
|
|
34517
|
+
var G, X, lt, H, et = Sr(E, ql), it = et && (G = (X = et.props) === null || X === void 0 ? void 0 : X.startIndex) !== null && G !== void 0 ? G : F, at = et && (lt = (H = et.props) === null || H === void 0 ? void 0 : H.endIndex) !== null && lt !== void 0 ? lt : j, ct = it !== F || at !== j, yt = !Zt(A), vt = yt && !ct ? P.updateId : P.updateId + 1;
|
|
34518
34518
|
return ht(ht({
|
|
34519
34519
|
updateId: vt
|
|
34520
34520
|
}, y(ht(ht({
|
|
@@ -34522,11 +34522,11 @@ var ub = function(t, n, r, i) {
|
|
|
34522
34522
|
}, P), {}, {
|
|
34523
34523
|
updateId: vt,
|
|
34524
34524
|
dataStartIndex: it,
|
|
34525
|
-
dataEndIndex:
|
|
34525
|
+
dataEndIndex: at
|
|
34526
34526
|
}), P)), {}, {
|
|
34527
34527
|
prevChildren: E,
|
|
34528
34528
|
dataStartIndex: it,
|
|
34529
|
-
dataEndIndex:
|
|
34529
|
+
dataEndIndex: at
|
|
34530
34530
|
});
|
|
34531
34531
|
}
|
|
34532
34532
|
return null;
|
|
@@ -34813,7 +34813,8 @@ function Rut(e, t, n) {
|
|
|
34813
34813
|
payload: t.payload,
|
|
34814
34814
|
refetchScope: t.refetchScope,
|
|
34815
34815
|
mergeResponse: t.mergeResponse,
|
|
34816
|
-
anchorElement: A == null ? void 0 : A.currentTarget
|
|
34816
|
+
anchorElement: A == null ? void 0 : A.currentTarget,
|
|
34817
|
+
openUrl: t.openUrl
|
|
34817
34818
|
}
|
|
34818
34819
|
);
|
|
34819
34820
|
(e.withLoading ? e.withLoading(n, E) : E()).catch((T) => {
|
|
@@ -39813,8 +39814,8 @@ var fb = { exports: {} };
|
|
|
39813
39814
|
if (O) {
|
|
39814
39815
|
this._firingCount = this._firingCount + 1 || 1;
|
|
39815
39816
|
for (var N = 0, q = O.length; N < q; N++) {
|
|
39816
|
-
var rt = O[N],
|
|
39817
|
-
rt.once && this.off(a,
|
|
39817
|
+
var rt = O[N], st = rt.fn;
|
|
39818
|
+
rt.once && this.off(a, st, rt.ctx), st.call(rt.ctx || this, w);
|
|
39818
39819
|
}
|
|
39819
39820
|
this._firingCount--;
|
|
39820
39821
|
}
|
|
@@ -40106,12 +40107,12 @@ var fb = { exports: {} };
|
|
|
40106
40107
|
function it(a, d) {
|
|
40107
40108
|
return !a || a instanceof et ? a : new et(a, d);
|
|
40108
40109
|
}
|
|
40109
|
-
function
|
|
40110
|
+
function at(a, d) {
|
|
40110
40111
|
if (a)
|
|
40111
40112
|
for (var g = d ? [a, d] : a, w = 0, O = g.length; w < O; w++)
|
|
40112
40113
|
this.extend(g[w]);
|
|
40113
40114
|
}
|
|
40114
|
-
|
|
40115
|
+
at.prototype = {
|
|
40115
40116
|
// @method extend(latlng: LatLng): this
|
|
40116
40117
|
// Extend the bounds to contain the given point
|
|
40117
40118
|
// @alternative
|
|
@@ -40121,7 +40122,7 @@ var fb = { exports: {} };
|
|
|
40121
40122
|
var d = this._southWest, g = this._northEast, w, O;
|
|
40122
40123
|
if (a instanceof yt)
|
|
40123
40124
|
w = a, O = a;
|
|
40124
|
-
else if (a instanceof
|
|
40125
|
+
else if (a instanceof at) {
|
|
40125
40126
|
if (w = a._southWest, O = a._northEast, !w || !O)
|
|
40126
40127
|
return this;
|
|
40127
40128
|
} else
|
|
@@ -40134,7 +40135,7 @@ var fb = { exports: {} };
|
|
|
40134
40135
|
// Negative values will retract the bounds.
|
|
40135
40136
|
pad: function(a) {
|
|
40136
40137
|
var d = this._southWest, g = this._northEast, w = Math.abs(d.lat - g.lat) * a, O = Math.abs(d.lng - g.lng) * a;
|
|
40137
|
-
return new
|
|
40138
|
+
return new at(
|
|
40138
40139
|
new yt(d.lat - w, d.lng - O),
|
|
40139
40140
|
new yt(g.lat + w, g.lng + O)
|
|
40140
40141
|
);
|
|
@@ -40195,7 +40196,7 @@ var fb = { exports: {} };
|
|
|
40195
40196
|
contains: function(a) {
|
|
40196
40197
|
typeof a[0] == "number" || a instanceof yt || "lat" in a ? a = vt(a) : a = ct(a);
|
|
40197
40198
|
var d = this._southWest, g = this._northEast, w, O;
|
|
40198
|
-
return a instanceof
|
|
40199
|
+
return a instanceof at ? (w = a.getSouthWest(), O = a.getNorthEast()) : w = O = a, w.lat >= d.lat && O.lat <= g.lat && w.lng >= d.lng && O.lng <= g.lng;
|
|
40199
40200
|
},
|
|
40200
40201
|
// @method intersects(otherBounds: LatLngBounds): Boolean
|
|
40201
40202
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
|
|
@@ -40228,7 +40229,7 @@ var fb = { exports: {} };
|
|
|
40228
40229
|
}
|
|
40229
40230
|
};
|
|
40230
40231
|
function ct(a, d) {
|
|
40231
|
-
return a instanceof
|
|
40232
|
+
return a instanceof at ? a : new at(a, d);
|
|
40232
40233
|
}
|
|
40233
40234
|
function yt(a, d, g) {
|
|
40234
40235
|
if (isNaN(a) || isNaN(d))
|
|
@@ -40358,8 +40359,8 @@ var fb = { exports: {} };
|
|
|
40358
40359
|
var d = a.getCenter(), g = this.wrapLatLng(d), w = d.lat - g.lat, O = d.lng - g.lng;
|
|
40359
40360
|
if (w === 0 && O === 0)
|
|
40360
40361
|
return a;
|
|
40361
|
-
var N = a.getSouthWest(), q = a.getNorthEast(), rt = new yt(N.lat - w, N.lng - O),
|
|
40362
|
-
return new
|
|
40362
|
+
var N = a.getSouthWest(), q = a.getNorthEast(), rt = new yt(N.lat - w, N.lng - O), st = new yt(q.lat - w, q.lng - O);
|
|
40363
|
+
return new at(rt, st);
|
|
40363
40364
|
}
|
|
40364
40365
|
}, Tt = i({}, Et, {
|
|
40365
40366
|
wrapLng: [-180, 180],
|
|
@@ -40369,8 +40370,8 @@ var fb = { exports: {} };
|
|
|
40369
40370
|
R: 6371e3,
|
|
40370
40371
|
// distance between two geographical points using spherical law of cosines approximation
|
|
40371
40372
|
distance: function(a, d) {
|
|
40372
|
-
var g = Math.PI / 180, w = a.lat * g, O = d.lat * g, N = Math.sin((d.lat - a.lat) * g / 2), q = Math.sin((d.lng - a.lng) * g / 2), rt = N * N + Math.cos(w) * Math.cos(O) * q * q,
|
|
40373
|
-
return this.R *
|
|
40373
|
+
var g = Math.PI / 180, w = a.lat * g, O = d.lat * g, N = Math.sin((d.lat - a.lat) * g / 2), q = Math.sin((d.lng - a.lng) * g / 2), rt = N * N + Math.cos(w) * Math.cos(O) * q * q, st = 2 * Math.atan2(Math.sqrt(rt), Math.sqrt(1 - rt));
|
|
40374
|
+
return this.R * st;
|
|
40374
40375
|
}
|
|
40375
40376
|
}), ft = 6378137, dt = {
|
|
40376
40377
|
R: ft,
|
|
@@ -40439,10 +40440,10 @@ var fb = { exports: {} };
|
|
|
40439
40440
|
return document.createElementNS("http://www.w3.org/2000/svg", a);
|
|
40440
40441
|
}
|
|
40441
40442
|
function re(a, d) {
|
|
40442
|
-
var g = "", w, O, N, q, rt,
|
|
40443
|
+
var g = "", w, O, N, q, rt, st;
|
|
40443
40444
|
for (w = 0, N = a.length; w < N; w++) {
|
|
40444
40445
|
for (rt = a[w], O = 0, q = rt.length; O < q; O++)
|
|
40445
|
-
|
|
40446
|
+
st = rt[O], g += (O ? "L" : "M") + st.x + " " + st.y;
|
|
40446
40447
|
g += d ? It.svg ? "z" : "x" : "";
|
|
40447
40448
|
}
|
|
40448
40449
|
return g || "M0 0";
|
|
@@ -40574,10 +40575,10 @@ var fb = { exports: {} };
|
|
|
40574
40575
|
}
|
|
40575
40576
|
if (!(N.pointerType === "mouse" || N.sourceCapabilities && !N.sourceCapabilities.firesTouchEvents)) {
|
|
40576
40577
|
var q = Ba(N);
|
|
40577
|
-
if (!(q.some(function(
|
|
40578
|
-
return
|
|
40579
|
-
}) && !q.some(function(
|
|
40580
|
-
return
|
|
40578
|
+
if (!(q.some(function(st) {
|
|
40579
|
+
return st instanceof HTMLLabelElement && st.attributes.for;
|
|
40580
|
+
}) && !q.some(function(st) {
|
|
40581
|
+
return st instanceof HTMLInputElement || st instanceof HTMLSelectElement;
|
|
40581
40582
|
}))) {
|
|
40582
40583
|
var rt = Date.now();
|
|
40583
40584
|
rt - g <= As ? (w++, w === 2 && d(Ra(N))) : w = 1, g = rt;
|
|
@@ -41066,9 +41067,9 @@ var fb = { exports: {} };
|
|
|
41066
41067
|
center: a.getCenter(),
|
|
41067
41068
|
zoom: O
|
|
41068
41069
|
};
|
|
41069
|
-
var N = w.subtract(g).divideBy(2), q = this.project(a.getSouthWest(), O), rt = this.project(a.getNorthEast(), O),
|
|
41070
|
+
var N = w.subtract(g).divideBy(2), q = this.project(a.getSouthWest(), O), rt = this.project(a.getNorthEast(), O), st = this.unproject(q.add(rt).divideBy(2).add(N), O);
|
|
41070
41071
|
return {
|
|
41071
|
-
center:
|
|
41072
|
+
center: st,
|
|
41072
41073
|
zoom: O
|
|
41073
41074
|
};
|
|
41074
41075
|
},
|
|
@@ -41119,9 +41120,9 @@ var fb = { exports: {} };
|
|
|
41119
41120
|
this._stop();
|
|
41120
41121
|
var w = this.project(this.getCenter()), O = this.project(a), N = this.getSize(), q = this._zoom;
|
|
41121
41122
|
a = vt(a), d = d === void 0 ? q : d;
|
|
41122
|
-
var rt = Math.max(N.x, N.y),
|
|
41123
|
+
var rt = Math.max(N.x, N.y), st = rt * this.getZoomScale(q, d), pt = O.distanceTo(w) || 1, Ct = 1.42, zt = Ct * Ct;
|
|
41123
41124
|
function Rt(Ke) {
|
|
41124
|
-
var Xa = Ke ? -1 : 1, qc = Ke ?
|
|
41125
|
+
var Xa = Ke ? -1 : 1, qc = Ke ? st : rt, ir = st * st - rt * rt + Xa * zt * zt * pt * pt, sf = 2 * qc * zt * pt, Ja = ir / sf, Gc = Math.sqrt(Ja * Ja + 1) - Ja, Tx = Gc < 1e-9 ? -18 : Math.log(Gc);
|
|
41125
41126
|
return Tx;
|
|
41126
41127
|
}
|
|
41127
41128
|
function _t(Ke) {
|
|
@@ -41192,10 +41193,10 @@ var fb = { exports: {} };
|
|
|
41192
41193
|
// the map will not be panned.
|
|
41193
41194
|
panInside: function(a, d) {
|
|
41194
41195
|
d = d || {};
|
|
41195
|
-
var g = H(d.paddingTopLeft || d.padding || [0, 0]), w = H(d.paddingBottomRight || d.padding || [0, 0]), O = this.project(this.getCenter()), N = this.project(a), q = this.getPixelBounds(), rt = it([q.min.add(g), q.max.subtract(w)]),
|
|
41196
|
+
var g = H(d.paddingTopLeft || d.padding || [0, 0]), w = H(d.paddingBottomRight || d.padding || [0, 0]), O = this.project(this.getCenter()), N = this.project(a), q = this.getPixelBounds(), rt = it([q.min.add(g), q.max.subtract(w)]), st = rt.getSize();
|
|
41196
41197
|
if (!rt.contains(N)) {
|
|
41197
41198
|
this._enforcingBounds = !0;
|
|
41198
|
-
var pt = N.subtract(rt.getCenter()), Ct = rt.extend(N).getSize().subtract(
|
|
41199
|
+
var pt = N.subtract(rt.getCenter()), Ct = rt.extend(N).getSize().subtract(st);
|
|
41199
41200
|
O.x += pt.x < 0 ? -Ct.x : Ct.x, O.y += pt.y < 0 ? -Ct.y : Ct.y, this.panTo(this.unproject(O), d), this._enforcingBounds = !1;
|
|
41200
41201
|
}
|
|
41201
41202
|
return this;
|
|
@@ -41286,8 +41287,8 @@ var fb = { exports: {} };
|
|
|
41286
41287
|
bounds: O,
|
|
41287
41288
|
timestamp: a.timestamp
|
|
41288
41289
|
};
|
|
41289
|
-
for (var
|
|
41290
|
-
typeof a.coords[
|
|
41290
|
+
for (var st in a.coords)
|
|
41291
|
+
typeof a.coords[st] == "number" && (rt[st] = a.coords[st]);
|
|
41291
41292
|
this.fire("locationfound", rt);
|
|
41292
41293
|
}
|
|
41293
41294
|
},
|
|
@@ -41343,7 +41344,7 @@ var fb = { exports: {} };
|
|
|
41343
41344
|
// Returns the geographical bounds visible in the current map view
|
|
41344
41345
|
getBounds: function() {
|
|
41345
41346
|
var a = this.getPixelBounds(), d = this.unproject(a.getBottomLeft()), g = this.unproject(a.getTopRight());
|
|
41346
|
-
return new
|
|
41347
|
+
return new at(d, g);
|
|
41347
41348
|
},
|
|
41348
41349
|
// @method getMinZoom(): Number
|
|
41349
41350
|
// Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
|
|
@@ -41362,7 +41363,7 @@ var fb = { exports: {} };
|
|
|
41362
41363
|
// the given bounds in its entirety.
|
|
41363
41364
|
getBoundsZoom: function(a, d, g) {
|
|
41364
41365
|
a = ct(a), g = H(g || [0, 0]);
|
|
41365
|
-
var w = this.getZoom() || 0, O = this.getMinZoom(), N = this.getMaxZoom(), q = a.getNorthWest(), rt = a.getSouthEast(),
|
|
41366
|
+
var w = this.getZoom() || 0, O = this.getMinZoom(), N = this.getMaxZoom(), q = a.getNorthWest(), rt = a.getSouthEast(), st = this.getSize().subtract(g), pt = it(this.project(rt, w), this.project(q, w)).getSize(), Ct = It.any3d ? this.options.zoomSnap : 1, zt = st.x / pt.x, Rt = st.y / pt.y, _t = d ? Math.max(zt, Rt) : Math.min(zt, Rt);
|
|
41366
41367
|
return w = this.getScaleZoom(_t, w), Ct && (w = Math.round(w / (Ct / 100)) * (Ct / 100), w = d ? Math.ceil(w / Ct) * Ct : Math.floor(w / Ct) * Ct), Math.max(O, Math.min(N, w));
|
|
41367
41368
|
},
|
|
41368
41369
|
// @method getSize(): Point
|
|
@@ -41641,15 +41642,15 @@ var fb = { exports: {} };
|
|
|
41641
41642
|
}
|
|
41642
41643
|
if (O.length) {
|
|
41643
41644
|
d === "contextmenu" && un(a);
|
|
41644
|
-
var rt = O[0],
|
|
41645
|
+
var rt = O[0], st = {
|
|
41645
41646
|
originalEvent: a
|
|
41646
41647
|
};
|
|
41647
41648
|
if (a.type !== "keypress" && a.type !== "keydown" && a.type !== "keyup") {
|
|
41648
41649
|
var pt = rt.getLatLng && (!rt._radius || rt._radius <= 10);
|
|
41649
|
-
|
|
41650
|
+
st.containerPoint = pt ? this.latLngToContainerPoint(rt.getLatLng()) : this.mouseEventToContainerPoint(a), st.layerPoint = this.containerPointToLayerPoint(st.containerPoint), st.latlng = pt ? rt.getLatLng() : this.layerPointToLatLng(st.layerPoint);
|
|
41650
41651
|
}
|
|
41651
41652
|
for (q = 0; q < O.length; q++)
|
|
41652
|
-
if (O[q].fire(d,
|
|
41653
|
+
if (O[q].fire(d, st, !0), st.originalEvent._stopped || O[q].options.bubblingMouseEvents === !1 && E(this._mouseEvents, d) !== -1)
|
|
41653
41654
|
return;
|
|
41654
41655
|
}
|
|
41655
41656
|
},
|
|
@@ -42307,18 +42308,18 @@ var fb = { exports: {} };
|
|
|
42307
42308
|
}
|
|
42308
42309
|
});
|
|
42309
42310
|
function Fa(a, d, g) {
|
|
42310
|
-
var w, O = [1, 4, 2, 8], N, q, rt,
|
|
42311
|
+
var w, O = [1, 4, 2, 8], N, q, rt, st, pt, Ct, zt, Rt;
|
|
42311
42312
|
for (N = 0, Ct = a.length; N < Ct; N++)
|
|
42312
42313
|
a[N]._code = Xi(a[N], d);
|
|
42313
42314
|
for (rt = 0; rt < 4; rt++) {
|
|
42314
42315
|
for (zt = O[rt], w = [], N = 0, Ct = a.length, q = Ct - 1; N < Ct; q = N++)
|
|
42315
|
-
|
|
42316
|
+
st = a[N], pt = a[q], st._code & zt ? pt._code & zt || (Rt = Rs(pt, st, zt, d, g), Rt._code = Xi(Rt, d), w.push(Rt)) : (pt._code & zt && (Rt = Rs(pt, st, zt, d, g), Rt._code = Xi(Rt, d), w.push(Rt)), w.push(st));
|
|
42316
42317
|
a = w;
|
|
42317
42318
|
}
|
|
42318
42319
|
return a;
|
|
42319
42320
|
}
|
|
42320
42321
|
function kc(a, d) {
|
|
42321
|
-
var g, w, O, N, q, rt,
|
|
42322
|
+
var g, w, O, N, q, rt, st, pt, Ct;
|
|
42322
42323
|
if (!a || a.length === 0)
|
|
42323
42324
|
throw new Error("latlngs not passed");
|
|
42324
42325
|
er(a) || (console.warn("latlngs are not flat! Only the first ring will be used"), a = a[0]);
|
|
@@ -42329,9 +42330,9 @@ var fb = { exports: {} };
|
|
|
42329
42330
|
var ce = vt(a[g]);
|
|
42330
42331
|
Gt.push(d.project(vt([ce.lat - zt.lat, ce.lng - zt.lng])));
|
|
42331
42332
|
}
|
|
42332
|
-
for (rt =
|
|
42333
|
-
O = Gt[g], N = Gt[w], q = O.y * N.x - N.y * O.x,
|
|
42334
|
-
rt === 0 ? Ct = Gt[0] : Ct = [
|
|
42333
|
+
for (rt = st = pt = 0, g = 0, w = Dt - 1; g < Dt; w = g++)
|
|
42334
|
+
O = Gt[g], N = Gt[w], q = O.y * N.x - N.y * O.x, st += (O.x + N.x) * q, pt += (O.y + N.y) * q, rt += q * 3;
|
|
42335
|
+
rt === 0 ? Ct = Gt[0] : Ct = [st / rt, pt / rt];
|
|
42335
42336
|
var Oe = d.unproject(H(Ct));
|
|
42336
42337
|
return vt([Oe.lat + zt.lat, Oe.lng + zt.lng]);
|
|
42337
42338
|
}
|
|
@@ -42369,9 +42370,9 @@ var fb = { exports: {} };
|
|
|
42369
42370
|
return q;
|
|
42370
42371
|
}
|
|
42371
42372
|
function $c(a, d, g, w, O) {
|
|
42372
|
-
var N = 0, q, rt,
|
|
42373
|
+
var N = 0, q, rt, st;
|
|
42373
42374
|
for (rt = w + 1; rt <= O - 1; rt++)
|
|
42374
|
-
|
|
42375
|
+
st = Ds(a[rt], a[w], a[O], !0), st > N && (q = rt, N = st);
|
|
42375
42376
|
N > g && (d[q] = 1, $c(a, d, g, w, q), $c(a, d, g, q, O));
|
|
42376
42377
|
}
|
|
42377
42378
|
function Uh(a, d) {
|
|
@@ -42381,18 +42382,18 @@ var fb = { exports: {} };
|
|
|
42381
42382
|
}
|
|
42382
42383
|
var Ls;
|
|
42383
42384
|
function Ns(a, d, g, w, O) {
|
|
42384
|
-
var N = w ? Ls : Xi(a, g), q = Xi(d, g), rt,
|
|
42385
|
+
var N = w ? Ls : Xi(a, g), q = Xi(d, g), rt, st, pt;
|
|
42385
42386
|
for (Ls = q; ; ) {
|
|
42386
42387
|
if (!(N | q))
|
|
42387
42388
|
return [a, d];
|
|
42388
42389
|
if (N & q)
|
|
42389
42390
|
return !1;
|
|
42390
|
-
rt = N || q,
|
|
42391
|
+
rt = N || q, st = Rs(a, d, rt, g, O), pt = Xi(st, g), rt === N ? (a = st, N = pt) : (d = st, q = pt);
|
|
42391
42392
|
}
|
|
42392
42393
|
}
|
|
42393
42394
|
function Rs(a, d, g, w, O) {
|
|
42394
|
-
var N = d.x - a.x, q = d.y - a.y, rt = w.min,
|
|
42395
|
-
return g & 8 ? (pt = a.x + N * (
|
|
42395
|
+
var N = d.x - a.x, q = d.y - a.y, rt = w.min, st = w.max, pt, Ct;
|
|
42396
|
+
return g & 8 ? (pt = a.x + N * (st.y - a.y) / q, Ct = st.y) : g & 4 ? (pt = a.x + N * (rt.y - a.y) / q, Ct = rt.y) : g & 2 ? (pt = st.x, Ct = a.y + q * (st.x - a.x) / N) : g & 1 && (pt = rt.x, Ct = a.y + q * (rt.x - a.x) / N), new X(pt, Ct, O);
|
|
42396
42397
|
}
|
|
42397
42398
|
function Xi(a, d) {
|
|
42398
42399
|
var g = 0;
|
|
@@ -42403,8 +42404,8 @@ var fb = { exports: {} };
|
|
|
42403
42404
|
return g * g + w * w;
|
|
42404
42405
|
}
|
|
42405
42406
|
function Ds(a, d, g, w) {
|
|
42406
|
-
var O = d.x, N = d.y, q = g.x - O, rt = g.y - N,
|
|
42407
|
-
return
|
|
42407
|
+
var O = d.x, N = d.y, q = g.x - O, rt = g.y - N, st = q * q + rt * rt, pt;
|
|
42408
|
+
return st > 0 && (pt = ((a.x - O) * q + (a.y - N) * rt) / st, pt > 1 ? (O = g.x, N = g.y) : pt > 0 && (O += q * pt, N += rt * pt)), q = a.x - O, rt = a.y - N, w ? q * q + rt * rt : new X(O, N);
|
|
42408
42409
|
}
|
|
42409
42410
|
function er(a) {
|
|
42410
42411
|
return !A(a[0]) || typeof a[0][0] != "object" && typeof a[0][0] < "u";
|
|
@@ -42413,7 +42414,7 @@ var fb = { exports: {} };
|
|
|
42413
42414
|
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), er(a);
|
|
42414
42415
|
}
|
|
42415
42416
|
function Hh(a, d) {
|
|
42416
|
-
var g, w, O, N, q, rt,
|
|
42417
|
+
var g, w, O, N, q, rt, st, pt;
|
|
42417
42418
|
if (!a || a.length === 0)
|
|
42418
42419
|
throw new Error("latlngs not passed");
|
|
42419
42420
|
er(a) || (console.warn("latlngs are not flat! Only the first ring will be used"), a = a[0]);
|
|
@@ -42431,9 +42432,9 @@ var fb = { exports: {} };
|
|
|
42431
42432
|
else
|
|
42432
42433
|
for (g = 0, N = 0; g < _t - 1; g++)
|
|
42433
42434
|
if (q = Dt[g], rt = Dt[g + 1], O = q.distanceTo(rt), N += O, N > w) {
|
|
42434
|
-
|
|
42435
|
-
rt.x -
|
|
42436
|
-
rt.y -
|
|
42435
|
+
st = (N - w) / O, pt = [
|
|
42436
|
+
rt.x - st * (rt.x - q.x),
|
|
42437
|
+
rt.y - st * (rt.y - q.y)
|
|
42437
42438
|
];
|
|
42438
42439
|
break;
|
|
42439
42440
|
}
|
|
@@ -42469,8 +42470,8 @@ var fb = { exports: {} };
|
|
|
42469
42470
|
return w = -g * Math.log(Math.max(rt, 1e-10)), new X(a.lng * d * g, w);
|
|
42470
42471
|
},
|
|
42471
42472
|
unproject: function(a) {
|
|
42472
|
-
for (var d = 180 / Math.PI, g = this.R, w = this.R_MINOR / g, O = Math.sqrt(1 - w * w), N = Math.exp(-a.y / g), q = Math.PI / 2 - 2 * Math.atan(N), rt = 0,
|
|
42473
|
-
pt = O * Math.sin(q), pt = Math.pow((1 - pt) / (1 + pt), O / 2),
|
|
42473
|
+
for (var d = 180 / Math.PI, g = this.R, w = this.R_MINOR / g, O = Math.sqrt(1 - w * w), N = Math.exp(-a.y / g), q = Math.PI / 2 - 2 * Math.atan(N), rt = 0, st = 0.1, pt; rt < 15 && Math.abs(st) > 1e-7; rt++)
|
|
42474
|
+
pt = O * Math.sin(q), pt = Math.pow((1 - pt) / (1 + pt), O / 2), st = Math.PI / 2 - 2 * Math.atan(N * pt) - q, q += st;
|
|
42474
42475
|
return new yt(q * d, a.x * d / g);
|
|
42475
42476
|
}
|
|
42476
42477
|
}, Ua = {
|
|
@@ -42735,7 +42736,7 @@ var fb = { exports: {} };
|
|
|
42735
42736
|
// @method getBounds(): LatLngBounds
|
|
42736
42737
|
// Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
|
|
42737
42738
|
getBounds: function() {
|
|
42738
|
-
var a = new
|
|
42739
|
+
var a = new at();
|
|
42739
42740
|
for (var d in this._layers) {
|
|
42740
42741
|
var g = this._layers[d];
|
|
42741
42742
|
a.extend(g.getBounds ? g.getBounds() : g.getLatLng());
|
|
@@ -42886,14 +42887,14 @@ var fb = { exports: {} };
|
|
|
42886
42887
|
return this._draggable && this._draggable._moved;
|
|
42887
42888
|
},
|
|
42888
42889
|
_adjustPan: function(a) {
|
|
42889
|
-
var d = this._marker, g = d._map, w = this._marker.options.autoPanSpeed, O = this._marker.options.autoPanPadding, N = Te(d._icon), q = g.getPixelBounds(), rt = g.getPixelOrigin(),
|
|
42890
|
+
var d = this._marker, g = d._map, w = this._marker.options.autoPanSpeed, O = this._marker.options.autoPanPadding, N = Te(d._icon), q = g.getPixelBounds(), rt = g.getPixelOrigin(), st = it(
|
|
42890
42891
|
q.min._subtract(rt).add(O),
|
|
42891
42892
|
q.max._subtract(rt).subtract(O)
|
|
42892
42893
|
);
|
|
42893
|
-
if (!
|
|
42894
|
+
if (!st.contains(N)) {
|
|
42894
42895
|
var pt = H(
|
|
42895
|
-
(Math.max(
|
|
42896
|
-
(Math.max(
|
|
42896
|
+
(Math.max(st.max.x, N.x) - st.max.x) / (q.max.x - st.max.x) - (Math.min(st.min.x, N.x) - st.min.x) / (q.min.x - st.min.x),
|
|
42897
|
+
(Math.max(st.max.y, N.y) - st.max.y) / (q.max.y - st.max.y) - (Math.min(st.min.y, N.y) - st.min.y) / (q.min.y - st.min.y)
|
|
42897
42898
|
).multiplyBy(w);
|
|
42898
42899
|
g.panBy(pt, { animate: !1 }), this._draggable._newPos._add(pt), this._draggable._startPos._add(pt), $e(d._icon, this._draggable._newPos), this._onDrag(a), this._panRequest = j(this._adjustPan.bind(this, a));
|
|
42899
42900
|
}
|
|
@@ -43266,7 +43267,7 @@ var fb = { exports: {} };
|
|
|
43266
43267
|
// Returns the `LatLngBounds` of the path.
|
|
43267
43268
|
getBounds: function() {
|
|
43268
43269
|
var a = [this._radius, this._radiusY || this._radius];
|
|
43269
|
-
return new
|
|
43270
|
+
return new at(
|
|
43270
43271
|
this._map.layerPointToLatLng(this._point.subtract(a)),
|
|
43271
43272
|
this._map.layerPointToLatLng(this._point.add(a))
|
|
43272
43273
|
);
|
|
@@ -43275,8 +43276,8 @@ var fb = { exports: {} };
|
|
|
43275
43276
|
_project: function() {
|
|
43276
43277
|
var a = this._latlng.lng, d = this._latlng.lat, g = this._map, w = g.options.crs;
|
|
43277
43278
|
if (w.distance === Tt.distance) {
|
|
43278
|
-
var O = Math.PI / 180, N = this._mRadius / Tt.R / O, q = g.project([d + N, a]), rt = g.project([d - N, a]),
|
|
43279
|
-
(isNaN(Ct) || Ct === 0) && (Ct = N / Math.cos(Math.PI / 180 * d)), this._point =
|
|
43279
|
+
var O = Math.PI / 180, N = this._mRadius / Tt.R / O, q = g.project([d + N, a]), rt = g.project([d - N, a]), st = q.add(rt).divideBy(2), pt = g.unproject(st).lat, Ct = Math.acos((Math.cos(N * O) - Math.sin(d * O) * Math.sin(pt * O)) / (Math.cos(d * O) * Math.cos(pt * O))) / O;
|
|
43280
|
+
(isNaN(Ct) || Ct === 0) && (Ct = N / Math.cos(Math.PI / 180 * d)), this._point = st.subtract(g.getPixelOrigin()), this._radius = isNaN(Ct) ? 0 : st.x - g.project([pt, a - Ct]).x, this._radiusY = st.y - q.y;
|
|
43280
43281
|
} else {
|
|
43281
43282
|
var zt = w.unproject(w.project(this._latlng).subtract([this._mRadius, 0]));
|
|
43282
43283
|
this._point = g.latLngToLayerPoint(this._latlng), this._radius = this._point.x - g.latLngToLayerPoint(zt).x;
|
|
@@ -43321,8 +43322,8 @@ var fb = { exports: {} };
|
|
|
43321
43322
|
// Returns the point closest to `p` on the Polyline.
|
|
43322
43323
|
closestLayerPoint: function(a) {
|
|
43323
43324
|
for (var d = 1 / 0, g = null, w = Ds, O, N, q = 0, rt = this._parts.length; q < rt; q++)
|
|
43324
|
-
for (var
|
|
43325
|
-
O =
|
|
43325
|
+
for (var st = this._parts[q], pt = 1, Ct = st.length; pt < Ct; pt++) {
|
|
43326
|
+
O = st[pt - 1], N = st[pt];
|
|
43326
43327
|
var zt = w(a, O, N, !0);
|
|
43327
43328
|
zt < d && (d = zt, g = w(a, O, N));
|
|
43328
43329
|
}
|
|
@@ -43348,7 +43349,7 @@ var fb = { exports: {} };
|
|
|
43348
43349
|
return d = d || this._defaultShape(), a = vt(a), d.push(a), this._bounds.extend(a), this.redraw();
|
|
43349
43350
|
},
|
|
43350
43351
|
_setLatLngs: function(a) {
|
|
43351
|
-
this._bounds = new
|
|
43352
|
+
this._bounds = new at(), this._latlngs = this._convertLatLngs(a);
|
|
43352
43353
|
},
|
|
43353
43354
|
_defaultShape: function() {
|
|
43354
43355
|
return er(this._latlngs) ? this._latlngs : this._latlngs[0];
|
|
@@ -43389,10 +43390,10 @@ var fb = { exports: {} };
|
|
|
43389
43390
|
this._parts = this._rings;
|
|
43390
43391
|
return;
|
|
43391
43392
|
}
|
|
43392
|
-
var d = this._parts, g, w, O, N, q, rt,
|
|
43393
|
+
var d = this._parts, g, w, O, N, q, rt, st;
|
|
43393
43394
|
for (g = 0, O = 0, N = this._rings.length; g < N; g++)
|
|
43394
|
-
for (
|
|
43395
|
-
rt = Ns(
|
|
43395
|
+
for (st = this._rings[g], w = 0, q = st.length; w < q - 1; w++)
|
|
43396
|
+
rt = Ns(st[w], st[w + 1], a, w, !0), rt && (d[O] = d[O] || [], d[O].push(rt[0]), (rt[1] !== st[w + 1] || w === q - 2) && (d[O].push(rt[1]), O++));
|
|
43396
43397
|
}
|
|
43397
43398
|
},
|
|
43398
43399
|
// simplify each clipped part of the polyline for performance
|
|
@@ -43408,12 +43409,12 @@ var fb = { exports: {} };
|
|
|
43408
43409
|
},
|
|
43409
43410
|
// Needed by the `Canvas` renderer for interactivity
|
|
43410
43411
|
_containsPoint: function(a, d) {
|
|
43411
|
-
var g, w, O, N, q, rt,
|
|
43412
|
+
var g, w, O, N, q, rt, st = this._clickTolerance();
|
|
43412
43413
|
if (!this._pxBounds || !this._pxBounds.contains(a))
|
|
43413
43414
|
return !1;
|
|
43414
43415
|
for (g = 0, N = this._parts.length; g < N; g++)
|
|
43415
43416
|
for (rt = this._parts[g], w = 0, q = rt.length, O = q - 1; w < q; O = w++)
|
|
43416
|
-
if (!(!d && w === 0) && Wa(a, rt[O], rt[w]) <=
|
|
43417
|
+
if (!(!d && w === 0) && Wa(a, rt[O], rt[w]) <= st)
|
|
43417
43418
|
return !0;
|
|
43418
43419
|
return !1;
|
|
43419
43420
|
}
|
|
@@ -43462,10 +43463,10 @@ var fb = { exports: {} };
|
|
|
43462
43463
|
},
|
|
43463
43464
|
// Needed by the `Canvas` renderer for interactivity
|
|
43464
43465
|
_containsPoint: function(a) {
|
|
43465
|
-
var d = !1, g, w, O, N, q, rt,
|
|
43466
|
+
var d = !1, g, w, O, N, q, rt, st, pt;
|
|
43466
43467
|
if (!this._pxBounds || !this._pxBounds.contains(a))
|
|
43467
43468
|
return !1;
|
|
43468
|
-
for (N = 0,
|
|
43469
|
+
for (N = 0, st = this._parts.length; N < st; N++)
|
|
43469
43470
|
for (g = this._parts[N], q = 0, pt = g.length, rt = pt - 1; q < pt; rt = q++)
|
|
43470
43471
|
w = g[q], O = g[rt], w.y > a.y != O.y > a.y && a.x < (O.x - w.x) * (a.y - w.y) / (O.y - w.y) + w.x && (d = !d);
|
|
43471
43472
|
return d || ti.prototype._containsPoint.call(this, a, !0);
|
|
@@ -43560,7 +43561,7 @@ var fb = { exports: {} };
|
|
|
43560
43561
|
}
|
|
43561
43562
|
});
|
|
43562
43563
|
function Ga(a, d) {
|
|
43563
|
-
var g = a.type === "Feature" ? a.geometry : a, w = g ? g.coordinates : null, O = [], N = d && d.pointToLayer, q = d && d.coordsToLatLng || Bc, rt,
|
|
43564
|
+
var g = a.type === "Feature" ? a.geometry : a, w = g ? g.coordinates : null, O = [], N = d && d.pointToLayer, q = d && d.coordsToLatLng || Bc, rt, st, pt, Ct;
|
|
43564
43565
|
if (!w && !g)
|
|
43565
43566
|
return null;
|
|
43566
43567
|
switch (g.type) {
|
|
@@ -43572,10 +43573,10 @@ var fb = { exports: {} };
|
|
|
43572
43573
|
return new vr(O);
|
|
43573
43574
|
case "LineString":
|
|
43574
43575
|
case "MultiLineString":
|
|
43575
|
-
return
|
|
43576
|
+
return st = xr(w, g.type === "LineString" ? 0 : 1, q), new ti(st, d);
|
|
43576
43577
|
case "Polygon":
|
|
43577
43578
|
case "MultiPolygon":
|
|
43578
|
-
return
|
|
43579
|
+
return st = xr(w, g.type === "Polygon" ? 1 : 2, q), new zo(st, d);
|
|
43579
43580
|
case "GeometryCollection":
|
|
43580
43581
|
for (pt = 0, Ct = g.geometries.length; pt < Ct; pt++) {
|
|
43581
43582
|
var zt = Ga({
|
|
@@ -44145,8 +44146,8 @@ var fb = { exports: {} };
|
|
|
44145
44146
|
}
|
|
44146
44147
|
var a = this._map, d = parseInt(kn(this._container, "marginBottom"), 10) || 0, g = this._container.offsetHeight + d, w = this._containerWidth, O = new X(this._containerLeft, -g - this._containerBottom);
|
|
44147
44148
|
O._add(Te(this._container));
|
|
44148
|
-
var N = a.layerPointToContainerPoint(O), q = H(this.options.autoPanPadding), rt = H(this.options.autoPanPaddingTopLeft || q),
|
|
44149
|
-
N.x + w +
|
|
44149
|
+
var N = a.layerPointToContainerPoint(O), q = H(this.options.autoPanPadding), rt = H(this.options.autoPanPaddingTopLeft || q), st = H(this.options.autoPanPaddingBottomRight || q), pt = a.getSize(), Ct = 0, zt = 0;
|
|
44150
|
+
N.x + w + st.x > pt.x && (Ct = N.x + w - pt.x + st.x), N.x - Ct - rt.x < 0 && (Ct = N.x - rt.x), N.y + g + st.y > pt.y && (zt = N.y + g - pt.y + st.y), N.y - zt - rt.y < 0 && (zt = N.y - rt.y), (Ct || zt) && (this.options.keepInView && (this._autopanning = !0), a.fire("autopanstart").panBy([Ct, zt]));
|
|
44150
44151
|
}
|
|
44151
44152
|
},
|
|
44152
44153
|
_getAnchor: function() {
|
|
@@ -44287,8 +44288,8 @@ var fb = { exports: {} };
|
|
|
44287
44288
|
_adjustPan: function() {
|
|
44288
44289
|
},
|
|
44289
44290
|
_setPosition: function(a) {
|
|
44290
|
-
var d, g, w = this._map, O = this._container, N = w.latLngToContainerPoint(w.getCenter()), q = w.layerPointToContainerPoint(a), rt = this.options.direction,
|
|
44291
|
-
rt === "top" ? (d =
|
|
44291
|
+
var d, g, w = this._map, O = this._container, N = w.latLngToContainerPoint(w.getCenter()), q = w.layerPointToContainerPoint(a), rt = this.options.direction, st = O.offsetWidth, pt = O.offsetHeight, Ct = H(this.options.offset), zt = this._getAnchor();
|
|
44292
|
+
rt === "top" ? (d = st / 2, g = pt) : rt === "bottom" ? (d = st / 2, g = 0) : rt === "center" ? (d = st / 2, g = pt / 2) : rt === "right" ? (d = 0, g = pt / 2) : rt === "left" ? (d = st, g = pt / 2) : q.x < N.x ? (rt = "right", d = 0, g = pt / 2) : (rt = "left", d = st + (Ct.x + zt.x) * 2, g = pt / 2), a = a.subtract(H(d, g, !0)).add(Ct).add(zt), ae(O, "leaflet-tooltip-right"), ae(O, "leaflet-tooltip-left"), ae(O, "leaflet-tooltip-top"), ae(O, "leaflet-tooltip-bottom"), Lt(O, "leaflet-tooltip-" + rt), $e(O, a);
|
|
44292
44293
|
},
|
|
44293
44294
|
_updatePosition: function() {
|
|
44294
44295
|
var a = this._map.latLngToLayerPoint(this._latlng);
|
|
@@ -44648,7 +44649,7 @@ var fb = { exports: {} };
|
|
|
44648
44649
|
_retainParent: function(a, d, g, w) {
|
|
44649
44650
|
var O = Math.floor(a / 2), N = Math.floor(d / 2), q = g - 1, rt = new X(+O, +N);
|
|
44650
44651
|
rt.z = +q;
|
|
44651
|
-
var
|
|
44652
|
+
var st = this._tileCoordsToKey(rt), pt = this._tiles[st];
|
|
44652
44653
|
return pt && pt.active ? (pt.retain = !0, !0) : (pt && pt.loaded && (pt.retain = !0), q > w ? this._retainParent(O, N, q, w) : !1);
|
|
44653
44654
|
},
|
|
44654
44655
|
_retainChildren: function(a, d, g, w) {
|
|
@@ -44656,11 +44657,11 @@ var fb = { exports: {} };
|
|
|
44656
44657
|
for (var N = 2 * d; N < 2 * d + 2; N++) {
|
|
44657
44658
|
var q = new X(O, N);
|
|
44658
44659
|
q.z = g + 1;
|
|
44659
|
-
var rt = this._tileCoordsToKey(q),
|
|
44660
|
-
if (
|
|
44661
|
-
|
|
44660
|
+
var rt = this._tileCoordsToKey(q), st = this._tiles[rt];
|
|
44661
|
+
if (st && st.active) {
|
|
44662
|
+
st.retain = !0;
|
|
44662
44663
|
continue;
|
|
44663
|
-
} else
|
|
44664
|
+
} else st && st.loaded && (st.retain = !0);
|
|
44664
44665
|
g + 1 < w && this._retainChildren(O, N, g + 1, w);
|
|
44665
44666
|
}
|
|
44666
44667
|
},
|
|
@@ -44712,7 +44713,7 @@ var fb = { exports: {} };
|
|
|
44712
44713
|
if (d) {
|
|
44713
44714
|
var g = this._clampZoom(d.getZoom());
|
|
44714
44715
|
if (a === void 0 && (a = d.getCenter()), this._tileZoom !== void 0) {
|
|
44715
|
-
var w = this._getTiledPixelBounds(a), O = this._pxBoundsToTileRange(w), N = O.getCenter(), q = [], rt = this.options.keepBuffer,
|
|
44716
|
+
var w = this._getTiledPixelBounds(a), O = this._pxBoundsToTileRange(w), N = O.getCenter(), q = [], rt = this.options.keepBuffer, st = new et(
|
|
44716
44717
|
O.getBottomLeft().subtract([rt, -rt]),
|
|
44717
44718
|
O.getTopRight().add([rt, -rt])
|
|
44718
44719
|
);
|
|
@@ -44720,7 +44721,7 @@ var fb = { exports: {} };
|
|
|
44720
44721
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
44721
44722
|
for (var pt in this._tiles) {
|
|
44722
44723
|
var Ct = this._tiles[pt].coords;
|
|
44723
|
-
(Ct.z !== this._tileZoom || !
|
|
44724
|
+
(Ct.z !== this._tileZoom || !st.contains(new X(Ct.x, Ct.y))) && (this._tiles[pt].current = !1);
|
|
44724
44725
|
}
|
|
44725
44726
|
if (Math.abs(g - this._tileZoom) > 1) {
|
|
44726
44727
|
this._setView(a, g);
|
|
@@ -44767,7 +44768,7 @@ var fb = { exports: {} };
|
|
|
44767
44768
|
},
|
|
44768
44769
|
// converts tile coordinates to its geographical bounds
|
|
44769
44770
|
_tileCoordsToBounds: function(a) {
|
|
44770
|
-
var d = this._tileCoordsToNwSe(a), g = new
|
|
44771
|
+
var d = this._tileCoordsToNwSe(a), g = new at(d[0], d[1]);
|
|
44771
44772
|
return this.options.noWrap || (g = this._map.wrapLatLngBounds(g)), g;
|
|
44772
44773
|
},
|
|
44773
44774
|
// converts tile coordinates to key for the tile cache
|
|
@@ -45191,14 +45192,14 @@ var fb = { exports: {} };
|
|
|
45191
45192
|
},
|
|
45192
45193
|
_updatePoly: function(a, d) {
|
|
45193
45194
|
if (this._drawing) {
|
|
45194
|
-
var g, w, O, N, q = a._parts, rt = q.length,
|
|
45195
|
+
var g, w, O, N, q = a._parts, rt = q.length, st = this._ctx;
|
|
45195
45196
|
if (rt) {
|
|
45196
|
-
for (
|
|
45197
|
+
for (st.beginPath(), g = 0; g < rt; g++) {
|
|
45197
45198
|
for (w = 0, O = q[g].length; w < O; w++)
|
|
45198
|
-
N = q[g][w],
|
|
45199
|
-
d &&
|
|
45199
|
+
N = q[g][w], st[w ? "lineTo" : "moveTo"](N.x, N.y);
|
|
45200
|
+
d && st.closePath();
|
|
45200
45201
|
}
|
|
45201
|
-
this._fillStroke(
|
|
45202
|
+
this._fillStroke(st, a);
|
|
45202
45203
|
}
|
|
45203
45204
|
}
|
|
45204
45205
|
},
|
|
@@ -45461,7 +45462,7 @@ var fb = { exports: {} };
|
|
|
45461
45462
|
_onMouseUp: function(a) {
|
|
45462
45463
|
if (!(a.which !== 1 && a.button !== 1) && (this._finish(), !!this._moved)) {
|
|
45463
45464
|
this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(s(this._resetState, this), 0);
|
|
45464
|
-
var d = new
|
|
45465
|
+
var d = new at(
|
|
45465
45466
|
this._map.containerPointToLatLng(this._startPoint),
|
|
45466
45467
|
this._map.containerPointToLatLng(this._point)
|
|
45467
45468
|
);
|
|
@@ -45527,7 +45528,7 @@ var fb = { exports: {} };
|
|
|
45527
45528
|
// solid, preventing the user from dragging outside the bounds.
|
|
45528
45529
|
maxBoundsViscosity: 0
|
|
45529
45530
|
});
|
|
45530
|
-
var
|
|
45531
|
+
var ot = tr.extend({
|
|
45531
45532
|
addHooks: function() {
|
|
45532
45533
|
if (!this._draggable) {
|
|
45533
45534
|
var a = this._map;
|
|
@@ -45594,7 +45595,7 @@ var fb = { exports: {} };
|
|
|
45594
45595
|
d.fire("moveend");
|
|
45595
45596
|
else {
|
|
45596
45597
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
45597
|
-
var O = this._lastPos.subtract(this._positions[0]), N = (this._lastTime - this._times[0]) / 1e3, q = g.easeLinearity, rt = O.multiplyBy(q / N),
|
|
45598
|
+
var O = this._lastPos.subtract(this._positions[0]), N = (this._lastTime - this._times[0]) / 1e3, q = g.easeLinearity, rt = O.multiplyBy(q / N), st = rt.distanceTo([0, 0]), pt = Math.min(g.inertiaMaxSpeed, st), Ct = rt.multiplyBy(pt / st), zt = pt / (g.inertiaDeceleration * q), Rt = Ct.multiplyBy(-zt / 2).round();
|
|
45598
45599
|
!Rt.x && !Rt.y ? d.fire("moveend") : (Rt = d._limitOffset(Rt, d.options.maxBounds), j(function() {
|
|
45599
45600
|
d.panBy(Rt, {
|
|
45600
45601
|
duration: zt,
|
|
@@ -45606,7 +45607,7 @@ var fb = { exports: {} };
|
|
|
45606
45607
|
}
|
|
45607
45608
|
}
|
|
45608
45609
|
});
|
|
45609
|
-
de.addInitHook("addHandler", "dragging",
|
|
45610
|
+
de.addInitHook("addHandler", "dragging", ot), de.mergeOptions({
|
|
45610
45611
|
// @option keyboard: Boolean = true
|
|
45611
45612
|
// Makes the map focusable and allows users to navigate the map with keyboard
|
|
45612
45613
|
// arrows and `+`/`-` keys.
|
|
@@ -45848,7 +45849,7 @@ var fb = { exports: {} };
|
|
|
45848
45849
|
this._zooming = !1, D(this._animRequest), Ee(document, "touchmove", this._onTouchMove, this), Ee(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
45849
45850
|
}
|
|
45850
45851
|
});
|
|
45851
|
-
de.addInitHook("addHandler", "touchZoom", mt), de.BoxZoom = Q, de.DoubleClickZoom = J, de.Drag =
|
|
45852
|
+
de.addInitHook("addHandler", "touchZoom", mt), de.BoxZoom = Q, de.DoubleClickZoom = J, de.Drag = ot, de.Keyboard = ut, de.ScrollWheelZoom = gt, de.TapHold = Mt, de.TouchZoom = mt, n.Bounds = et, n.Browser = It, n.CRS = Et, n.Canvas = Uc, n.Circle = Bo, n.CircleMarker = mi, n.Class = U, n.Control = gr, n.DivIcon = Fc, n.DivOverlay = wr, n.DomEvent = Bh, n.DomUtil = Mm, n.Draggable = pi, n.Evented = G, n.FeatureGroup = vr, n.GeoJSON = gi, n.GridLayer = Fo, n.Handler = tr, n.Icon = br, n.ImageOverlay = Ka, n.LatLng = yt, n.LatLngBounds = at, n.Layer = nr, n.LayerGroup = Ji, n.LineUtil = Hn, n.Map = de, n.Marker = js, n.Mixin = Re, n.Path = Jt, n.Point = X, n.PolyUtil = hn, n.Polygon = zo, n.Polyline = ti, n.Popup = zs, n.PosAnimation = $r, n.Projection = Ua, n.Rectangle = W, n.Renderer = Ir, n.SVG = Z, n.SVGOverlay = Jh, n.TileLayer = to, n.Tooltip = Fs, n.Transformation = Ot, n.Util = K, n.VideoOverlay = Xh, n.bind = s, n.bounds = it, n.canvas = Hc, n.circle = qa, n.circleMarker = Gh, n.control = $s, n.divIcon = ef, n.extend = i, n.featureGroup = Dc, n.geoJSON = Kh, n.geoJson = Nm, n.gridLayer = nf, n.icon = jc, n.imageOverlay = Ax, n.latLng = vt, n.latLngBounds = ct, n.layerGroup = qh, n.map = za, n.marker = Ha, n.point = H, n.polygon = Yh, n.polyline = Zh, n.popup = Qh, n.rectangle = tt, n.setOptions = p, n.stamp = c, n.svg = B, n.svgOverlay = Dm, n.tileLayer = Wc, n.tooltip = tf, n.transformation = nt, n.version = r, n.videoOverlay = Rm;
|
|
45852
45853
|
var At = window.L;
|
|
45853
45854
|
n.noConflict = function() {
|
|
45854
45855
|
return window.L = At, this;
|
|
@@ -48349,9 +48350,9 @@ function Tft(e, t, n = !0) {
|
|
|
48349
48350
|
u.marginLeft = it[1];
|
|
48350
48351
|
continue;
|
|
48351
48352
|
}
|
|
48352
|
-
const
|
|
48353
|
-
if (
|
|
48354
|
-
u.gap =
|
|
48353
|
+
const at = p.match(/^gap-\[([^\]]+)\]$/);
|
|
48354
|
+
if (at) {
|
|
48355
|
+
u.gap = at[1];
|
|
48355
48356
|
continue;
|
|
48356
48357
|
}
|
|
48357
48358
|
const ct = p.match(/^gap-x-\[([^\]]+)\]$/);
|
|
@@ -50264,7 +50265,7 @@ function ST(e, t, n, r, i, o, s) {
|
|
|
50264
50265
|
color: "#ffffff",
|
|
50265
50266
|
border: "none"
|
|
50266
50267
|
}
|
|
50267
|
-
},
|
|
50268
|
+
}, at = it[X.variant || "primary"] || it.primary;
|
|
50268
50269
|
return _.createElement(
|
|
50269
50270
|
"button",
|
|
50270
50271
|
{
|
|
@@ -50288,7 +50289,7 @@ function ST(e, t, n, r, i, o, s) {
|
|
|
50288
50289
|
cursor: "pointer",
|
|
50289
50290
|
fontSize: "14px",
|
|
50290
50291
|
fontWeight: 500,
|
|
50291
|
-
...
|
|
50292
|
+
...at
|
|
50292
50293
|
}
|
|
50293
50294
|
},
|
|
50294
50295
|
X.label
|
|
@@ -50388,11 +50389,11 @@ function kft({
|
|
|
50388
50389
|
return ((k = $ == null ? void 0 : $.config) == null ? void 0 : k.requireAuth) === !0 || ($ == null ? void 0 : $.requiresAuth) === !0;
|
|
50389
50390
|
},
|
|
50390
50391
|
[H]
|
|
50391
|
-
),
|
|
50392
|
-
|
|
50392
|
+
), at = e && !((wr = e.config) != null && wr.colorMode) ? PL(e) : void 0, ct = AL(
|
|
50393
|
+
at ? { ...(e == null ? void 0 : e.config) || {}, colorMode: at } : e == null ? void 0 : e.config,
|
|
50393
50394
|
void 0,
|
|
50394
50395
|
y
|
|
50395
|
-
), yt = !((zs = e == null ? void 0 : e.config) != null && zs.colorMode) && !
|
|
50396
|
+
), yt = !((zs = e == null ? void 0 : e.config) != null && zs.colorMode) && !at && !(y != null && y.colorMode), vt = (M) => Tft(
|
|
50396
50397
|
M,
|
|
50397
50398
|
{
|
|
50398
50399
|
primary: le.colors.primary,
|
|
@@ -50425,9 +50426,9 @@ function kft({
|
|
|
50425
50426
|
}, [r]);
|
|
50426
50427
|
const kt = p ?? Yt;
|
|
50427
50428
|
_.useEffect(() => {
|
|
50428
|
-
var Q, J,
|
|
50429
|
+
var Q, J, ot;
|
|
50429
50430
|
const M = et.find((ut) => ut.id === kt), $ = !!((Q = e == null ? void 0 : e.config) != null && Q.remoteControl) && !!(M != null && M.remoteScene);
|
|
50430
|
-
if (sL($), aL($ && !!((
|
|
50431
|
+
if (sL($), aL($ && !!((ot = (J = e == null ? void 0 : e.config) == null ? void 0 : J.mouse) != null && ot.enabled)), !$ || !K) {
|
|
50431
50432
|
Rx();
|
|
50432
50433
|
return;
|
|
50433
50434
|
}
|
|
@@ -50564,7 +50565,7 @@ function kft({
|
|
|
50564
50565
|
const Q = await tt.json(), J = (Q == null ? void 0 : Q.app) || Q;
|
|
50565
50566
|
if (!Array.isArray(J == null ? void 0 : J.steps))
|
|
50566
50567
|
throw new Error(`Workflow reference ${M.id} is invalid`);
|
|
50567
|
-
xs((
|
|
50568
|
+
xs((ot) => ({ ...ot, [M.id]: J }));
|
|
50568
50569
|
},
|
|
50569
50570
|
[R, r, dt, t]
|
|
50570
50571
|
);
|
|
@@ -50851,9 +50852,9 @@ function kft({
|
|
|
50851
50852
|
}).replace(/\{\{(\w+)\}\}/g, (Mt, mt) => {
|
|
50852
50853
|
const At = k[mt];
|
|
50853
50854
|
return At === void 0 ? Mt : String(At);
|
|
50854
|
-
}),
|
|
50855
|
+
}), ot = mr(), ut = tt !== "GET" && tt !== "DELETE";
|
|
50855
50856
|
tt !== "GET" && de(tt, J, k, !0);
|
|
50856
|
-
const gt = await fetch(new URL(J,
|
|
50857
|
+
const gt = await fetch(new URL(J, ot).toString(), {
|
|
50857
50858
|
method: tt,
|
|
50858
50859
|
headers: {
|
|
50859
50860
|
"Content-Type": "application/json",
|
|
@@ -50900,14 +50901,14 @@ function kft({
|
|
|
50900
50901
|
const tt = $.replace("show_modal:", "");
|
|
50901
50902
|
if (We[tt]) {
|
|
50902
50903
|
const Q = We[tt], J = Q.clearFormKeys;
|
|
50903
|
-
se((
|
|
50904
|
-
const ut = { ...
|
|
50904
|
+
se((ot) => {
|
|
50905
|
+
const ut = { ...ot };
|
|
50905
50906
|
let gt = Array.isArray(J) && J.length > 0;
|
|
50906
50907
|
if (gt)
|
|
50907
50908
|
for (const xt of J) delete ut[xt];
|
|
50908
50909
|
for (const xt of Object.keys(ut))
|
|
50909
50910
|
xt.startsWith("__acc_") && (delete ut[xt], gt = !0);
|
|
50910
|
-
return gt ? ut :
|
|
50911
|
+
return gt ? ut : ot;
|
|
50911
50912
|
}), Q.preload && await Is(String(Q.preload)), ln({
|
|
50912
50913
|
id: tt,
|
|
50913
50914
|
definition: Q
|
|
@@ -50975,7 +50976,7 @@ function kft({
|
|
|
50975
50976
|
[]
|
|
50976
50977
|
), di = _.useRef({}), Yi = _.useRef(/* @__PURE__ */ new Set()), un = _.useRef(/* @__PURE__ */ new Set()), jn = _.useRef(null), Ba = _.useRef([]), Ro = _.useRef({}), Bn = _.useCallback(
|
|
50977
50978
|
async (M, $, k = 0, Z = 10, B, W, tt, Q = !1) => {
|
|
50978
|
-
var
|
|
50979
|
+
var ot;
|
|
50979
50980
|
if (!M || Ye.current || !dt) return;
|
|
50980
50981
|
di.current[$] = M;
|
|
50981
50982
|
const J = M.match(
|
|
@@ -51005,7 +51006,7 @@ function kft({
|
|
|
51005
51006
|
limit: Z,
|
|
51006
51007
|
page: k
|
|
51007
51008
|
}), At = B ? zh(mt, B, W) : mt, a = Ff(At), d = await ny(t, a, Mt);
|
|
51008
|
-
xt = d, ut = (d == null ? void 0 : d.emails) || (d == null ? void 0 : d.items) || (d == null ? void 0 : d.data) || (d == null ? void 0 : d.history) || (Array.isArray(d) ? d : []), gt = ((
|
|
51009
|
+
xt = d, ut = (d == null ? void 0 : d.emails) || (d == null ? void 0 : d.items) || (d == null ? void 0 : d.data) || (d == null ? void 0 : d.history) || (Array.isArray(d) ? d : []), gt = ((ot = d == null ? void 0 : d.pagination) == null ? void 0 : ot.total) ?? (d == null ? void 0 : d.count) ?? ut.length;
|
|
51009
51010
|
} else if (!Xf(M)) {
|
|
51010
51011
|
const mt = t == null ? void 0 : t.endpoint, At = R || (mt && /^https?:\/\//.test(mt) ? mt : window.location.origin);
|
|
51011
51012
|
let a = M;
|
|
@@ -51133,21 +51134,21 @@ function kft({
|
|
|
51133
51134
|
(M, $) => {
|
|
51134
51135
|
var tt, Q;
|
|
51135
51136
|
const k = /* @__PURE__ */ new Map();
|
|
51136
|
-
for (const [J,
|
|
51137
|
-
k.set(
|
|
51137
|
+
for (const [J, ot] of Object.entries(Ro.current))
|
|
51138
|
+
k.set(ot, J);
|
|
51138
51139
|
const Z = /* @__PURE__ */ new Map();
|
|
51139
|
-
for (const [J,
|
|
51140
|
-
Z.set(J, { ds:
|
|
51141
|
-
for (const [J,
|
|
51142
|
-
Object.values(di.current).includes(
|
|
51140
|
+
for (const [J, ot] of Object.entries(di.current))
|
|
51141
|
+
Z.set(J, { ds: ot, dataKey: k.get(ot) });
|
|
51142
|
+
for (const [J, ot] of Object.entries(Ro.current))
|
|
51143
|
+
Object.values(di.current).includes(ot) || Z.set(J, { ds: ot, dataKey: J });
|
|
51143
51144
|
if (Z.size === 0) return;
|
|
51144
|
-
const B = Array.isArray($) ? new Set($) : void 0, W = (J,
|
|
51145
|
-
for (const [J, { ds:
|
|
51145
|
+
const B = Array.isArray($) ? new Set($) : void 0, W = (J, ot) => Yi.current.has(J) || (ot ? Yi.current.has(ot) : !1);
|
|
51146
|
+
for (const [J, { ds: ot, dataKey: ut }] of Z) {
|
|
51146
51147
|
if (!W(J, ut)) continue;
|
|
51147
51148
|
const gt = !!(B != null && B.has(J) || ut && (B != null && B.has(ut)));
|
|
51148
51149
|
if ($ === "view" || gt) {
|
|
51149
51150
|
Bn(
|
|
51150
|
-
|
|
51151
|
+
ot,
|
|
51151
51152
|
J,
|
|
51152
51153
|
0,
|
|
51153
51154
|
((tt = Mn[J]) == null ? void 0 : tt.limit) || 10,
|
|
@@ -51157,9 +51158,9 @@ function kft({
|
|
|
51157
51158
|
);
|
|
51158
51159
|
continue;
|
|
51159
51160
|
}
|
|
51160
|
-
const xt =
|
|
51161
|
+
const xt = ot == null ? void 0 : ot.split("?")[0];
|
|
51161
51162
|
xt && M.startsWith(xt) && Bn(
|
|
51162
|
-
|
|
51163
|
+
ot,
|
|
51163
51164
|
J,
|
|
51164
51165
|
0,
|
|
51165
51166
|
((Q = Mn[J]) == null ? void 0 : Q.limit) || 10,
|
|
@@ -51180,18 +51181,18 @@ function kft({
|
|
|
51180
51181
|
const J = String($).match(/\/([^/]+)\/?$/);
|
|
51181
51182
|
return J ? decodeURIComponent(J[1]) : void 0;
|
|
51182
51183
|
}, Q = [];
|
|
51183
|
-
for (const [J,
|
|
51184
|
-
|
|
51184
|
+
for (const [J, ot] of Object.entries(di.current))
|
|
51185
|
+
ot && $.startsWith(ot) && Q.push({ key: J, ds: ot });
|
|
51185
51186
|
Q.length !== 0 && Zr((J) => {
|
|
51186
|
-
const
|
|
51187
|
+
const ot = { ...J };
|
|
51187
51188
|
for (const { key: ut, ds: gt } of Q) {
|
|
51188
51189
|
const xt = J[ut] || [];
|
|
51189
51190
|
if (W === "remove") {
|
|
51190
51191
|
const Mt = (k == null ? void 0 : k.id) || tt();
|
|
51191
|
-
|
|
51192
|
+
ot[ut] = xt.filter((mt) => mt.id !== Mt);
|
|
51192
51193
|
} else if (W === "merge") {
|
|
51193
51194
|
const Mt = (k == null ? void 0 : k.id) || tt();
|
|
51194
|
-
|
|
51195
|
+
ot[ut] = xt.map(
|
|
51195
51196
|
(mt) => mt.id === Mt ? { ...mt, ...k } : mt
|
|
51196
51197
|
);
|
|
51197
51198
|
} else {
|
|
@@ -51199,10 +51200,10 @@ function kft({
|
|
|
51199
51200
|
...k || {},
|
|
51200
51201
|
id: (k == null ? void 0 : k.id) || `temp_${Date.now()}`
|
|
51201
51202
|
};
|
|
51202
|
-
W === "add" && Mt.status === void 0 && (Mt.status = "queued"),
|
|
51203
|
+
W === "add" && Mt.status === void 0 && (Mt.status = "queued"), ot[ut] = [Mt, ...xt];
|
|
51203
51204
|
}
|
|
51204
51205
|
}
|
|
51205
|
-
return
|
|
51206
|
+
return ot;
|
|
51206
51207
|
});
|
|
51207
51208
|
},
|
|
51208
51209
|
[]
|
|
@@ -51211,15 +51212,15 @@ function kft({
|
|
|
51211
51212
|
var J;
|
|
51212
51213
|
const B = mr();
|
|
51213
51214
|
let W = !1;
|
|
51214
|
-
const tt = (
|
|
51215
|
-
W || (W = !0,
|
|
51215
|
+
const tt = (ot) => {
|
|
51216
|
+
W || (W = !0, ot());
|
|
51216
51217
|
}, Q = t == null ? void 0 : t.queues;
|
|
51217
51218
|
if (M === "sse" && (Q != null && Q.subscribe))
|
|
51218
51219
|
try {
|
|
51219
|
-
const
|
|
51220
|
+
const ot = Z.sseUrl || `${B}/queues/bulk-operations/jobs/${$}/subscribe?token=${encodeURIComponent(k)}`, ut = ((t == null ? void 0 : t.endpoint) || B).replace(
|
|
51220
51221
|
/\/$/,
|
|
51221
51222
|
""
|
|
51222
|
-
), gt =
|
|
51223
|
+
), gt = ot.startsWith(ut) ? ot.slice(ut.length) : ot;
|
|
51223
51224
|
Q.subscribe(gt, {
|
|
51224
51225
|
onComplete: (xt) => tt(() => Z.onComplete(xt)),
|
|
51225
51226
|
onFailed: (xt) => tt(
|
|
@@ -51248,8 +51249,8 @@ function kft({
|
|
|
51248
51249
|
}
|
|
51249
51250
|
if (M === "ws" && ((J = t == null ? void 0 : t.client) != null && J.createWebSocket))
|
|
51250
51251
|
try {
|
|
51251
|
-
const
|
|
51252
|
-
|
|
51252
|
+
const ot = t.client.createWebSocket(`job:${$}`);
|
|
51253
|
+
ot.onmessage = (ut) => {
|
|
51253
51254
|
try {
|
|
51254
51255
|
const gt = JSON.parse(ut.data);
|
|
51255
51256
|
(gt == null ? void 0 : gt.type) === "completed" ? tt(() => Z.onComplete(gt.result)) : (gt == null ? void 0 : gt.type) === "failed" && tt(
|
|
@@ -51260,7 +51261,7 @@ function kft({
|
|
|
51260
51261
|
);
|
|
51261
51262
|
} catch {
|
|
51262
51263
|
}
|
|
51263
|
-
},
|
|
51264
|
+
}, ot.onerror = () => tt(
|
|
51264
51265
|
() => Z.onFailed({ message: "Connection error", kind: "transport" })
|
|
51265
51266
|
), setTimeout(
|
|
51266
51267
|
() => tt(
|
|
@@ -51272,21 +51273,21 @@ function kft({
|
|
|
51272
51273
|
} catch {
|
|
51273
51274
|
}
|
|
51274
51275
|
if (M === "poll" && (Q != null && Q.getJob)) {
|
|
51275
|
-
const
|
|
51276
|
+
const ot = window.setInterval(async () => {
|
|
51276
51277
|
var ut;
|
|
51277
51278
|
try {
|
|
51278
51279
|
const gt = await Q.getJob("bulk-operations", $), xt = (gt == null ? void 0 : gt.status) || ((ut = gt == null ? void 0 : gt.job) == null ? void 0 : ut.status), Mt = (gt == null ? void 0 : gt.result) || (gt == null ? void 0 : gt.data);
|
|
51279
|
-
xt === "failed" || Mt != null && Mt.final ? (window.clearInterval(
|
|
51280
|
+
xt === "failed" || Mt != null && Mt.final ? (window.clearInterval(ot), tt(
|
|
51280
51281
|
() => xt === "failed" ? Z.onFailed({
|
|
51281
51282
|
message: (Mt == null ? void 0 : Mt.error) || "Job failed",
|
|
51282
51283
|
kind: "job"
|
|
51283
51284
|
}) : Z.onComplete(Mt)
|
|
51284
|
-
)) : xt === "completed" && (window.clearInterval(
|
|
51285
|
+
)) : xt === "completed" && (window.clearInterval(ot), tt(() => Z.onComplete(Mt)));
|
|
51285
51286
|
} catch {
|
|
51286
51287
|
}
|
|
51287
51288
|
}, 600);
|
|
51288
51289
|
setTimeout(() => {
|
|
51289
|
-
window.clearInterval(
|
|
51290
|
+
window.clearInterval(ot), tt(
|
|
51290
51291
|
() => Z.onFailed({ message: "Timed out", kind: "transport" })
|
|
51291
51292
|
);
|
|
51292
51293
|
}, 3e4);
|
|
@@ -51352,7 +51353,7 @@ function kft({
|
|
|
51352
51353
|
_selIds: [],
|
|
51353
51354
|
_selectMode: !1
|
|
51354
51355
|
}));
|
|
51355
|
-
const
|
|
51356
|
+
const ot = (ut, gt, xt) => {
|
|
51356
51357
|
var Mt;
|
|
51357
51358
|
if (ut)
|
|
51358
51359
|
Re(xt || "Bulk operation failed", "error");
|
|
@@ -51371,7 +51372,7 @@ function kft({
|
|
|
51371
51372
|
);
|
|
51372
51373
|
};
|
|
51373
51374
|
J.jobId && J.token && M.feedback ? za(M.feedback, J.jobId, J.token, {
|
|
51374
|
-
onComplete: (ut) =>
|
|
51375
|
+
onComplete: (ut) => ot(!1, ut),
|
|
51375
51376
|
onFailed: (ut) => {
|
|
51376
51377
|
var gt;
|
|
51377
51378
|
if (ut.kind === "transport") {
|
|
@@ -51383,9 +51384,9 @@ function kft({
|
|
|
51383
51384
|
);
|
|
51384
51385
|
return;
|
|
51385
51386
|
}
|
|
51386
|
-
|
|
51387
|
+
ot(!0, null, ut.message);
|
|
51387
51388
|
}
|
|
51388
|
-
}) :
|
|
51389
|
+
}) : ot(!1, J);
|
|
51389
51390
|
} catch {
|
|
51390
51391
|
Re("Request failed", "error");
|
|
51391
51392
|
}
|
|
@@ -51481,42 +51482,42 @@ function kft({
|
|
|
51481
51482
|
...W ? { body: JSON.stringify(Q) } : {}
|
|
51482
51483
|
});
|
|
51483
51484
|
if (await No(J) || tn.current) return;
|
|
51484
|
-
let
|
|
51485
|
+
let ot;
|
|
51485
51486
|
try {
|
|
51486
|
-
|
|
51487
|
+
ot = await J.json();
|
|
51487
51488
|
} catch {
|
|
51488
51489
|
if (tn.current) return;
|
|
51489
51490
|
if (!J.ok)
|
|
51490
51491
|
throw new Do([`Request failed: ${J.statusText}`]);
|
|
51491
51492
|
return;
|
|
51492
51493
|
}
|
|
51493
|
-
if (!J.ok ||
|
|
51494
|
+
if (!J.ok || ot.success === !1) {
|
|
51494
51495
|
$r(B, $ == null ? void 0 : $.refetchScope);
|
|
51495
51496
|
let g = ["Something went wrong"];
|
|
51496
|
-
throw (Mt =
|
|
51497
|
+
throw (Mt = ot.error) != null && Mt.message ? g = Fh(ot.error.message) || [ot.error.message] : ot.message && (g = [ot.message]), new Do(g, ot);
|
|
51497
51498
|
}
|
|
51498
|
-
|
|
51499
|
+
ot.token && localStorage.setItem("token", ot.token), $ != null && $.openUrl && (ot != null && ot.url) && String(ot.url).startsWith("http") && window.open(String(ot.url), "_blank", "noopener,noreferrer"), ot && typeof ot == "object" && !Array.isArray(ot) && se((g) => ({ ...g, feedback: ot })), ot.data && ($ == null ? void 0 : $.mergeResponse) !== !1 && se((g) => ({ ...g, ...ot.data })), ot.user && typeof ot.user == "object" ? se((g) => ({ ...g, user: ot.user })) : se((g) => ({ ...g })), hn.current[B.replace(/^\//, "")] = { response: ot };
|
|
51499
51500
|
for (const [g, w] of Object.entries(Ro.current))
|
|
51500
51501
|
if (w === B || w.endsWith(B)) {
|
|
51501
51502
|
const O = hn.current[g];
|
|
51502
51503
|
hn.current[g] = {
|
|
51503
51504
|
items: Array.isArray(O) ? O : Array.isArray(O == null ? void 0 : O.items) ? O.items : [],
|
|
51504
|
-
response:
|
|
51505
|
+
response: ot
|
|
51505
51506
|
};
|
|
51506
51507
|
}
|
|
51507
|
-
const ut = (At = (mt =
|
|
51508
|
+
const ut = (At = (mt = ot.subscribe) == null ? void 0 : mt.websocket) == null ? void 0 : At.workflowChannel;
|
|
51508
51509
|
ut && ($ == null ? void 0 : $.mergeResponse) !== !1 && se((g) => {
|
|
51509
51510
|
var w, O, N, q;
|
|
51510
51511
|
return {
|
|
51511
51512
|
...g,
|
|
51512
51513
|
liveCastChannel: ut,
|
|
51513
|
-
execution_id:
|
|
51514
|
-
id:
|
|
51514
|
+
execution_id: ot.draftId || g.execution_id,
|
|
51515
|
+
id: ot.sessionId || g.id,
|
|
51515
51516
|
status: "running",
|
|
51516
51517
|
test_session: {
|
|
51517
51518
|
...g.test_session || {},
|
|
51518
|
-
id:
|
|
51519
|
-
execution_id:
|
|
51519
|
+
id: ot.sessionId || ((w = g.test_session) == null ? void 0 : w.id),
|
|
51520
|
+
execution_id: ot.draftId || ((O = g.test_session) == null ? void 0 : O.execution_id),
|
|
51520
51521
|
status: "running",
|
|
51521
51522
|
liveCastChannel: ut,
|
|
51522
51523
|
prompt: (Q == null ? void 0 : Q.prompt) || ((N = g.test_session) == null ? void 0 : N.prompt),
|
|
@@ -51525,19 +51526,19 @@ function kft({
|
|
|
51525
51526
|
};
|
|
51526
51527
|
}), $r(B, $ == null ? void 0 : $.refetchScope);
|
|
51527
51528
|
const gt = $ == null ? void 0 : $.feedback, xt = typeof gt == "string" ? gt : gt == null ? void 0 : gt.transport;
|
|
51528
|
-
if (xt &&
|
|
51529
|
-
let g = (d =
|
|
51529
|
+
if (xt && ot.jobId && (ot.token || (a = ot.subscribe) != null && a.sse || typeof gt == "object")) {
|
|
51530
|
+
let g = (d = ot.subscribe) != null && d.sse ? /^https?:\/\//.test(ot.subscribe.sse) ? ot.subscribe.sse : tt + ot.subscribe.sse : void 0;
|
|
51530
51531
|
if (typeof gt == "object" && gt.subscribeUrl) {
|
|
51531
51532
|
const w = String(gt.subscribeUrl).trim(), O = w.startsWith("{{") && w.endsWith("}}") ? w.slice(2, -2).trim() : w, N = O.match(/^\[(.+?)\](?:\.(.*))?$/), q = N ? Qr(
|
|
51532
51533
|
`${N[1]}${N[2] ? "." + N[2] : ""}`
|
|
51533
51534
|
) : O.split(".").reduce(
|
|
51534
|
-
(rt,
|
|
51535
|
-
|
|
51535
|
+
(rt, st) => rt == null ? void 0 : rt[st],
|
|
51536
|
+
ot
|
|
51536
51537
|
);
|
|
51537
51538
|
q && (g = /^https?:\/\//.test(q) ? q : tt + q);
|
|
51538
51539
|
}
|
|
51539
51540
|
if (g) {
|
|
51540
|
-
za(xt,
|
|
51541
|
+
za(xt, ot.jobId, ot.token, {
|
|
51541
51542
|
sseUrl: g,
|
|
51542
51543
|
onProgress: (w) => {
|
|
51543
51544
|
s == null || s(w);
|
|
@@ -51560,7 +51561,7 @@ function kft({
|
|
|
51560
51561
|
});
|
|
51561
51562
|
return;
|
|
51562
51563
|
}
|
|
51563
|
-
za(xt,
|
|
51564
|
+
za(xt, ot.jobId, ot.token, {
|
|
51564
51565
|
onComplete: (w) => {
|
|
51565
51566
|
const O = w || {}, N = O.total, q = O.successful;
|
|
51566
51567
|
N !== void 0 && Re(
|
|
@@ -51637,7 +51638,7 @@ ${M.message}` : M.message;
|
|
|
51637
51638
|
}, [dt, Y, et]);
|
|
51638
51639
|
const Re = (M, $ = "success", k) => {
|
|
51639
51640
|
const Z = Array.isArray(M) ? M.join(`
|
|
51640
|
-
`) : M, B = $ === "success", W = B ? "#10B981" : "#EF4444", tt = le.toast || {}, Q = k ?? tt.duration ?? 3e3, J = tt.position || "bottom-right",
|
|
51641
|
+
`) : M, B = $ === "success", W = B ? "#10B981" : "#EF4444", tt = le.toast || {}, Q = k ?? tt.duration ?? 3e3, J = tt.position || "bottom-right", ot = {
|
|
51641
51642
|
"bottom-right": { right: "24px", bottom: "24px" },
|
|
51642
51643
|
"bottom-left": { left: "24px", bottom: "24px" },
|
|
51643
51644
|
"bottom-center": {
|
|
@@ -51648,7 +51649,7 @@ ${M.message}` : M.message;
|
|
|
51648
51649
|
"top-right": { right: "24px", top: "24px" },
|
|
51649
51650
|
"top-left": { left: "24px", top: "24px" },
|
|
51650
51651
|
"top-center": { left: "50%", top: "24px", transform: "translateX(-50%)" }
|
|
51651
|
-
}, ut =
|
|
51652
|
+
}, ut = ot[J] || ot["bottom-right"], gt = document.createElement("div"), xt = document.createElement("span");
|
|
51652
51653
|
xt.textContent = B ? "✓" : "✕", Object.assign(xt.style, {
|
|
51653
51654
|
display: "flex",
|
|
51654
51655
|
alignItems: "center",
|
|
@@ -51749,7 +51750,7 @@ ${M.message}` : M.message;
|
|
|
51749
51750
|
}
|
|
51750
51751
|
} else !$ && (M != null && M.onError) && Re(M.onError.message || "An error occurred", "error");
|
|
51751
51752
|
}, pi = () => {
|
|
51752
|
-
var q, rt,
|
|
51753
|
+
var q, rt, st, pt, Ct, zt, Rt;
|
|
51753
51754
|
const M = async () => {
|
|
51754
51755
|
var Gt, ce, Oe, eo, qn, Ws;
|
|
51755
51756
|
if (!Kt || !ve || kn === "register" && !be) return;
|
|
@@ -51862,7 +51863,7 @@ ${M.message}` : M.message;
|
|
|
51862
51863
|
}
|
|
51863
51864
|
}, Z = (_t) => {
|
|
51864
51865
|
ne(_t), cn(null), _t !== "reset" && ($n(""), St("")), Lt(""), Es({});
|
|
51865
|
-
}, B = le.colorMode === "dark", W = B ? "#f3f4f6" : "#111827", tt = B ? "#9ca3af" : "#6b7280", Q = B ? "#374151" : "#f3f4f6", J = B ? "#4b5563" : "#d1d5db",
|
|
51866
|
+
}, B = le.colorMode === "dark", W = B ? "#f3f4f6" : "#111827", tt = B ? "#9ca3af" : "#6b7280", Q = B ? "#374151" : "#f3f4f6", J = B ? "#4b5563" : "#d1d5db", ot = B ? "#ffffff" : "#000000", ut = B ? "#000000" : "#ffffff", gt = B ? "#1f2937" : "#ffffff", xt = "#ef4444", Mt = (_t = "12px") => ({
|
|
51866
51867
|
width: "100%",
|
|
51867
51868
|
padding: "12px 16px",
|
|
51868
51869
|
border: `1px solid ${J}`,
|
|
@@ -51919,7 +51920,7 @@ ${M.message}` : M.message;
|
|
|
51919
51920
|
)
|
|
51920
51921
|
);
|
|
51921
51922
|
l || e != null && e.title;
|
|
51922
|
-
const At = (q = e == null ? void 0 : e.config) != null && q.logo && ((rt = e == null ? void 0 : e.config) == null ? void 0 : rt.logo) !== "" ? e.config.logo : "", a = c || ((
|
|
51923
|
+
const At = (q = e == null ? void 0 : e.config) != null && q.logo && ((rt = e == null ? void 0 : e.config) == null ? void 0 : rt.logo) !== "" ? e.config.logo : "", a = c || ((st = e == null ? void 0 : e.navigation) == null ? void 0 : st.logo) || "mail", d = [];
|
|
51923
51924
|
d.push(
|
|
51924
51925
|
_.createElement(
|
|
51925
51926
|
"div",
|
|
@@ -52057,7 +52058,7 @@ ${M.message}` : M.message;
|
|
|
52057
52058
|
borderRadius: "8px",
|
|
52058
52059
|
fontSize: "15px",
|
|
52059
52060
|
fontWeight: 600,
|
|
52060
|
-
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" :
|
|
52061
|
+
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" : ot,
|
|
52061
52062
|
color: ut,
|
|
52062
52063
|
border: "none",
|
|
52063
52064
|
cursor: Ge ? "not-allowed" : "pointer",
|
|
@@ -52231,7 +52232,7 @@ ${M.message}` : M.message;
|
|
|
52231
52232
|
borderRadius: "8px",
|
|
52232
52233
|
fontSize: "15px",
|
|
52233
52234
|
fontWeight: 600,
|
|
52234
|
-
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" :
|
|
52235
|
+
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" : ot,
|
|
52235
52236
|
color: ut,
|
|
52236
52237
|
border: "none",
|
|
52237
52238
|
cursor: Ge ? "not-allowed" : "pointer",
|
|
@@ -52342,7 +52343,7 @@ ${M.message}` : M.message;
|
|
|
52342
52343
|
borderRadius: "8px",
|
|
52343
52344
|
fontSize: "15px",
|
|
52344
52345
|
fontWeight: 600,
|
|
52345
|
-
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" :
|
|
52346
|
+
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" : ot,
|
|
52346
52347
|
color: ut,
|
|
52347
52348
|
border: "none",
|
|
52348
52349
|
cursor: Ge ? "not-allowed" : "pointer",
|
|
@@ -52456,7 +52457,7 @@ ${M.message}` : M.message;
|
|
|
52456
52457
|
borderRadius: "8px",
|
|
52457
52458
|
fontSize: "15px",
|
|
52458
52459
|
fontWeight: 600,
|
|
52459
|
-
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" :
|
|
52460
|
+
backgroundColor: Ge ? B ? "#4b5563" : "#9ca3af" : ot,
|
|
52460
52461
|
color: ut,
|
|
52461
52462
|
border: "none",
|
|
52462
52463
|
cursor: Ge ? "not-allowed" : "pointer",
|
|
@@ -52618,9 +52619,9 @@ ${M.message}` : M.message;
|
|
|
52618
52619
|
mt && Re(mt, "success");
|
|
52619
52620
|
return;
|
|
52620
52621
|
}
|
|
52621
|
-
const
|
|
52622
|
-
if (
|
|
52623
|
-
(Z = document.getElementById(
|
|
52622
|
+
const ot = W.match(/^scroll_to:([\w-]+)$/);
|
|
52623
|
+
if (ot) {
|
|
52624
|
+
(Z = document.getElementById(ot[1])) == null || Z.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
52624
52625
|
return;
|
|
52625
52626
|
}
|
|
52626
52627
|
const ut = W.match(/^set_data:([\w.]+)=(.*)$/);
|
|
@@ -52825,10 +52826,10 @@ ${M.message}` : M.message;
|
|
|
52825
52826
|
return t && ny(t, J, {
|
|
52826
52827
|
...fe,
|
|
52827
52828
|
$data: hn.current
|
|
52828
|
-
}).then((
|
|
52829
|
-
tn.current || (Z && (hn.current[Z] =
|
|
52829
|
+
}).then((ot) => {
|
|
52830
|
+
tn.current || (Z && (hn.current[Z] = ot), Vh((ut) => ({
|
|
52830
52831
|
...ut,
|
|
52831
|
-
[tt]: String(
|
|
52832
|
+
[tt]: String(ot ?? "")
|
|
52832
52833
|
})));
|
|
52833
52834
|
}).catch(() => {
|
|
52834
52835
|
}), "";
|
|
@@ -52838,9 +52839,9 @@ ${M.message}` : M.message;
|
|
|
52838
52839
|
const tt = B[1], Q = Uh(B[2]);
|
|
52839
52840
|
if ($) {
|
|
52840
52841
|
const J = Wh[k || ""];
|
|
52841
|
-
return k && J !== void 0 ? J : ($c($).then((
|
|
52842
|
+
return k && J !== void 0 ? J : ($c($).then((ot) => {
|
|
52842
52843
|
var gt, xt;
|
|
52843
|
-
const ut =
|
|
52844
|
+
const ut = ot && (ot[tt] || ((gt = ot.default) == null ? void 0 : gt[tt]) || ((xt = ot.exports) == null ? void 0 : xt[tt])) || (typeof ot == "function" ? ot : void 0);
|
|
52844
52845
|
typeof ut == "function" && k && Promise.resolve(ut(Q, { data: hn.current })).then(
|
|
52845
52846
|
(Mt) => {
|
|
52846
52847
|
tn.current || (Z && (hn.current[Z] = Mt), Vh((mt) => ({
|
|
@@ -52855,8 +52856,8 @@ ${M.message}` : M.message;
|
|
|
52855
52856
|
return tt === "timeago" ? kc(Q) : tt === "date" ? Jr(Q, "date") : tt === "time" ? Jr(Q, "time") : tt === "datetime" ? Jr(Q, "datetime") : tt === "upper" ? String(Q).toUpperCase() : tt === "lower" ? String(Q).toLowerCase() : String(Q ?? "");
|
|
52856
52857
|
}
|
|
52857
52858
|
if (M.startsWith("{{") && M.endsWith("}}")) {
|
|
52858
|
-
const Q = M.slice(2, -2).trim().split("|").map((gt) => gt.trim()), J = Q[0],
|
|
52859
|
-
return
|
|
52859
|
+
const Q = M.slice(2, -2).trim().split("|").map((gt) => gt.trim()), J = Q[0], ot = Q[1], ut = J.startsWith("{") && J.endsWith("}") ? Qr(J.slice(1, -1)) : J.startsWith("$") ? Qr(J.slice(1)) : fe[J];
|
|
52860
|
+
return ot ? Jr(ut, ot) : String(ut ?? "");
|
|
52860
52861
|
}
|
|
52861
52862
|
if (M.startsWith("{") && M.endsWith("}"))
|
|
52862
52863
|
return String(Qr(M.slice(1, -1)) ?? "");
|
|
@@ -52930,10 +52931,10 @@ ${M.message}` : M.message;
|
|
|
52930
52931
|
return J === void 0 ? dt : J;
|
|
52931
52932
|
}
|
|
52932
52933
|
if (W.startsWith("[") && W.includes("]")) {
|
|
52933
|
-
const J = W.indexOf("]"),
|
|
52934
|
+
const J = W.indexOf("]"), ot = hn.current[W.slice(1, J)], ut = W.slice(J + 1).replace(/^\./, "");
|
|
52934
52935
|
let gt;
|
|
52935
52936
|
const xt = ut.split(".").filter(Boolean);
|
|
52936
|
-
xt[0] === "response" || xt[0] === "items" ? gt =
|
|
52937
|
+
xt[0] === "response" || xt[0] === "items" ? gt = ot : gt = (ot == null ? void 0 : ot.items) ?? ot;
|
|
52937
52938
|
for (const Mt of xt) {
|
|
52938
52939
|
if (gt == null) return;
|
|
52939
52940
|
Array.isArray(gt) && Mt === "length" ? gt = gt.length : gt = gt == null ? void 0 : gt[Mt];
|
|
@@ -52986,12 +52987,12 @@ ${M.message}` : M.message;
|
|
|
52986
52987
|
Z
|
|
52987
52988
|
), J = (k == null ? void 0 : k.className) || "";
|
|
52988
52989
|
/\bfont-serif\b/.test(J) && (Q.fontFamily = le.typography.headingFontFamily), /\bfont-sans\b/.test(J) && (Q.fontFamily = le.typography.fontFamily), k != null && k.fieldSpan && k.fieldSpan > 1 && (Q.gridColumn = `span ${k.fieldSpan} / span ${k.fieldSpan}`), k != null && k.rawStyle && Object.assign(Q, k.rawStyle);
|
|
52989
|
-
const
|
|
52990
|
+
const ot = Et === "css-driven" ? { "data-bf-r": `${mn}-${M}` } : {};
|
|
52990
52991
|
if (W) {
|
|
52991
52992
|
const gt = Q.boxShadow ? `${Q.boxShadow}, ` : "";
|
|
52992
52993
|
return {
|
|
52993
52994
|
"data-component-key": M,
|
|
52994
|
-
...
|
|
52995
|
+
...ot,
|
|
52995
52996
|
style: {
|
|
52996
52997
|
...Q,
|
|
52997
52998
|
boxShadow: `${gt}0 0 0 3px ${le.colors.primary}`
|
|
@@ -53000,9 +53001,9 @@ ${M.message}` : M.message;
|
|
|
53000
53001
|
}
|
|
53001
53002
|
return Object.keys(Q).length > 0 ? {
|
|
53002
53003
|
"data-component-key": M,
|
|
53003
|
-
...
|
|
53004
|
+
...ot,
|
|
53004
53005
|
style: Q
|
|
53005
|
-
} : { "data-component-key": M, ...
|
|
53006
|
+
} : { "data-component-key": M, ...ot };
|
|
53006
53007
|
}, er = (M, $) => {
|
|
53007
53008
|
var tt;
|
|
53008
53009
|
if (!M) return {};
|
|
@@ -53032,9 +53033,9 @@ ${M.message}` : M.message;
|
|
|
53032
53033
|
marginRight: "mr",
|
|
53033
53034
|
marginBottom: "mb",
|
|
53034
53035
|
marginLeft: "ml"
|
|
53035
|
-
}, J = (
|
|
53036
|
+
}, J = (ot, ut) => `var(--bf-${Q[ot] || ot}-${$}, ${B[ot] || ut})`;
|
|
53036
53037
|
if (k.flexDirection.size > 0 && (B.flexDirection = J("flexDirection", "column")), k.gap.size > 0 && (B.gap = J("gap", "0px")), k.width.size > 0 && (B.width = J("width", "auto")), k.minHeight.size > 0 && (B.minHeight = J("minHeight", "0px")), k.alignItems.size > 0 && (B.alignItems = J("alignItems", "stretch")), k.justifyContent.size > 0 && (B.justifyContent = J("justifyContent", "flex-start")), k.display.size > 0 && (B.display = J("display", "flex")), k.gridCols.size > 0) {
|
|
53037
|
-
const
|
|
53038
|
+
const ot = B.gridTemplateColumns || "1", ut = typeof ot == "string" ? (tt = ot.match(/^repeat\((\d+)/)) == null ? void 0 : tt[1] : ot;
|
|
53038
53039
|
B.gridTemplateColumns = `repeat(var(--bf-cols-${$}, ${ut || "1"}), minmax(0, 1fr))`;
|
|
53039
53040
|
}
|
|
53040
53041
|
return k.gridTemplateColumns.size > 0 && (B.gridTemplateColumns = J(
|
|
@@ -53188,8 +53189,8 @@ ${M.message}` : M.message;
|
|
|
53188
53189
|
).finally(() => {
|
|
53189
53190
|
var J;
|
|
53190
53191
|
if (vr.current[Z] = !1, k.target.isConnected) {
|
|
53191
|
-
const
|
|
53192
|
-
|
|
53192
|
+
const ot = k.target.getBoundingClientRect();
|
|
53193
|
+
ot.bottom > -160 && ot.top < (window.innerHeight || 800) + 160 && ((J = br.current) == null || J.observe(k.target));
|
|
53193
53194
|
}
|
|
53194
53195
|
});
|
|
53195
53196
|
}
|
|
@@ -53210,23 +53211,23 @@ ${M.message}` : M.message;
|
|
|
53210
53211
|
if (!me) return;
|
|
53211
53212
|
const M = (tt) => typeof tt == "string" ? tt.replace(
|
|
53212
53213
|
/\{\{\s*\[([\w/.-]+)\](?:\.([\w.]+))?\s*(?:\|\|\s*(.+?))?\}\}/g,
|
|
53213
|
-
(Q, J,
|
|
53214
|
-
const gt = Qr(
|
|
53214
|
+
(Q, J, ot, ut) => {
|
|
53215
|
+
const gt = Qr(ot ? `${J}.${ot}` : J);
|
|
53215
53216
|
return gt != null ? String(gt) : ut !== void 0 ? ut.replace(/^["']|["']$/g, "") : "";
|
|
53216
53217
|
}
|
|
53217
53218
|
).replace(/\{\{([\w.]+)\}\}/g, (Q, J) => {
|
|
53218
|
-
const
|
|
53219
|
+
const ot = J.split(".").reduce(
|
|
53219
53220
|
(ut, gt) => ut == null ? void 0 : ut[gt],
|
|
53220
53221
|
fe
|
|
53221
53222
|
);
|
|
53222
|
-
return
|
|
53223
|
+
return ot != null ? String(ot) : "";
|
|
53223
53224
|
}) : "";
|
|
53224
53225
|
Lc.current !== kt && (Lc.current = kt);
|
|
53225
53226
|
let $ = /* @__PURE__ */ new Set();
|
|
53226
53227
|
const k = (tt, Q = "") => {
|
|
53227
|
-
Array.isArray(tt) && tt.forEach((J,
|
|
53228
|
+
Array.isArray(tt) && tt.forEach((J, ot) => {
|
|
53228
53229
|
var Mt;
|
|
53229
|
-
const ut = `${Q}-${
|
|
53230
|
+
const ut = `${Q}-${ot}`;
|
|
53230
53231
|
if ((J.type === "list" || J.type === "table") && J.dataSource) {
|
|
53231
53232
|
$.add(ut), J.key && $.add(J.key), nr.current[ut] = J.sort || {};
|
|
53232
53233
|
const mt = M(J.dataSource), At = Ua.current[ut] !== mt;
|
|
@@ -53245,7 +53246,7 @@ ${M.message}` : M.message;
|
|
|
53245
53246
|
const q = Yr.current.get(ut);
|
|
53246
53247
|
q && q();
|
|
53247
53248
|
const rt = J.pageSize || 10;
|
|
53248
|
-
let
|
|
53249
|
+
let st;
|
|
53249
53250
|
const pt = (Rt) => {
|
|
53250
53251
|
if (!a.bind) return;
|
|
53251
53252
|
let _t = Rt;
|
|
@@ -53301,25 +53302,25 @@ ${M.message}` : M.message;
|
|
|
53301
53302
|
() => Bn(mt, ut, 0, rt),
|
|
53302
53303
|
Rt
|
|
53303
53304
|
);
|
|
53304
|
-
|
|
53305
|
+
st = () => clearInterval(_t);
|
|
53305
53306
|
break;
|
|
53306
53307
|
}
|
|
53307
53308
|
case "sse": {
|
|
53308
53309
|
if (!g && !d) {
|
|
53309
|
-
|
|
53310
|
+
st = () => {
|
|
53310
53311
|
};
|
|
53311
53312
|
break;
|
|
53312
53313
|
}
|
|
53313
53314
|
const Rt = r || localStorage.getItem("token") || "", _t = g || `/events?channel=${d}`, Dt = Rt && !_t.includes("token=") ? `${_t}${_t.includes("?") ? "&" : "?"}token=${encodeURIComponent(Rt)}` : _t, Gt = new EventSource(Dt), ce = (Oe) => {
|
|
53314
53315
|
Ct(Oe.data) && (pt(Oe.data), Bn(mt, ut, 0, rt));
|
|
53315
53316
|
};
|
|
53316
|
-
w ? Gt.addEventListener(w, ce) : Gt.onmessage = ce, Gt.onerror = () => Gt.close(),
|
|
53317
|
+
w ? Gt.addEventListener(w, ce) : Gt.onmessage = ce, Gt.onerror = () => Gt.close(), st = () => Gt.close();
|
|
53317
53318
|
break;
|
|
53318
53319
|
}
|
|
53319
53320
|
case "ws": {
|
|
53320
53321
|
const Rt = d || (x ? `tenant:${x}:entities` : "");
|
|
53321
53322
|
if (!g && !Rt) {
|
|
53322
|
-
|
|
53323
|
+
st = () => {
|
|
53323
53324
|
};
|
|
53324
53325
|
break;
|
|
53325
53326
|
}
|
|
@@ -53347,14 +53348,14 @@ ${M.message}` : M.message;
|
|
|
53347
53348
|
));
|
|
53348
53349
|
}, Gt.onclose = () => setTimeout(Dt, 3e3), _t = Gt;
|
|
53349
53350
|
};
|
|
53350
|
-
Dt(),
|
|
53351
|
+
Dt(), st = () => _t == null ? void 0 : _t.close();
|
|
53351
53352
|
break;
|
|
53352
53353
|
}
|
|
53353
53354
|
default:
|
|
53354
|
-
|
|
53355
|
+
st = () => {
|
|
53355
53356
|
};
|
|
53356
53357
|
}
|
|
53357
|
-
Yr.current.set(ut,
|
|
53358
|
+
Yr.current.set(ut, st);
|
|
53358
53359
|
}
|
|
53359
53360
|
}
|
|
53360
53361
|
if (J.type === "select" && J.dataSource) {
|
|
@@ -53367,13 +53368,13 @@ ${M.message}` : M.message;
|
|
|
53367
53368
|
}
|
|
53368
53369
|
});
|
|
53369
53370
|
if (!g.ok) return;
|
|
53370
|
-
const w = await g.json(), O = J.dataField || "configs", N = J.optionLabel || "label", q = J.optionValue || "value", rt = w[O] || w.data || w,
|
|
53371
|
+
const w = await g.json(), O = J.dataField || "configs", N = J.optionLabel || "label", q = J.optionValue || "value", rt = w[O] || w.data || w, st = Array.isArray(rt) ? rt.map((pt) => ({
|
|
53371
53372
|
label: pt[N] || pt.name || pt.label,
|
|
53372
53373
|
value: pt[q] || pt.id || pt.name || pt.label
|
|
53373
53374
|
})) : [];
|
|
53374
53375
|
ji((pt) => ({
|
|
53375
53376
|
...pt,
|
|
53376
|
-
[ut]:
|
|
53377
|
+
[ut]: st
|
|
53377
53378
|
}));
|
|
53378
53379
|
} catch {
|
|
53379
53380
|
}
|