@kong-ui-public/entities-plugins 9.271.3 → 9.271.4-pr.3786.6c80da227.0
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/entities-plugins.es.js +4801 -4793
- package/dist/entities-plugins.umd.js +34 -34
- package/dist/filler/cypress/index.js +1 -1
- package/dist/filler/{field-walker-DaPtaOyR.js → field-walker-DX9YG0uo.js} +673 -671
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/form-context.d.ts +2 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/form-context.d.ts.map +1 -1
- package/dist/filler/playwright/index.js +1 -1
- package/dist/freeform/index.js +534 -532
- package/dist/style.css +1 -1
- package/dist/types/components/fields/kong-identity/ConfigFormContent.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/composables/form-context.d.ts +2 -0
- package/dist/types/components/free-form/shared/composables/form-context.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1054,8 +1054,8 @@ function Wv(e, t, n = qo) {
|
|
|
1054
1054
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1055
1055
|
);
|
|
1056
1056
|
}, u = (x) => a ? x : /* @__PURE__ */ St(x) || a === !1 || a === 0 ? Fn(x, 1) : Fn(x);
|
|
1057
|
-
let d, p, f, g,
|
|
1058
|
-
if (/* @__PURE__ */ ut(e) ? (p = () => e.value,
|
|
1057
|
+
let d, p, f, g, h = !1, y = !1;
|
|
1058
|
+
if (/* @__PURE__ */ ut(e) ? (p = () => e.value, h = /* @__PURE__ */ St(e)) : /* @__PURE__ */ ho(e) ? (p = () => u(e), h = !0) : ve(e) ? (y = !0, h = e.some((x) => /* @__PURE__ */ ho(x) || /* @__PURE__ */ St(x)), p = () => e.map((x) => {
|
|
1059
1059
|
if (/* @__PURE__ */ ut(x))
|
|
1060
1060
|
return x.value;
|
|
1061
1061
|
if (/* @__PURE__ */ ho(x))
|
|
@@ -1093,12 +1093,12 @@ function Wv(e, t, n = qo) {
|
|
|
1093
1093
|
return T(), D;
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
|
-
let
|
|
1096
|
+
let $ = y ? new Array(e.length).fill(ki) : ki;
|
|
1097
1097
|
const S = (x) => {
|
|
1098
1098
|
if (!(!(d.flags & 1) || !d.dirty && !x))
|
|
1099
1099
|
if (t) {
|
|
1100
1100
|
const O = d.run();
|
|
1101
|
-
if (x || a ||
|
|
1101
|
+
if (x || a || h || (y ? O.some((D, C) => wn(D, $[C])) : wn(O, $))) {
|
|
1102
1102
|
f && f();
|
|
1103
1103
|
const D = Po;
|
|
1104
1104
|
Po = d;
|
|
@@ -1106,10 +1106,10 @@ function Wv(e, t, n = qo) {
|
|
|
1106
1106
|
const C = [
|
|
1107
1107
|
O,
|
|
1108
1108
|
// pass undefined as the old value when it's changed for the first time
|
|
1109
|
-
|
|
1109
|
+
$ === ki ? void 0 : y && $[0] === ki ? [] : $,
|
|
1110
1110
|
g
|
|
1111
1111
|
];
|
|
1112
|
-
|
|
1112
|
+
$ = O, c ? c(t, 3, C) : (
|
|
1113
1113
|
// @ts-expect-error
|
|
1114
1114
|
t(...C)
|
|
1115
1115
|
);
|
|
@@ -1129,7 +1129,7 @@ function Wv(e, t, n = qo) {
|
|
|
1129
1129
|
for (const O of x) O();
|
|
1130
1130
|
Gi.delete(d);
|
|
1131
1131
|
}
|
|
1132
|
-
}, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? o ? S(!0) :
|
|
1132
|
+
}, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? o ? S(!0) : $ = d.run() : i ? i(S.bind(null, !0), !0) : d.run(), T.pause = d.pause.bind(d), T.resume = d.resume.bind(d), T.stop = T, T;
|
|
1133
1133
|
}
|
|
1134
1134
|
function Fn(e, t = 1 / 0, n) {
|
|
1135
1135
|
if (t <= 0 || !Je(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
|
|
@@ -1607,7 +1607,7 @@ function Gc(e, t, n = qo) {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
const u = Mt;
|
|
1610
|
-
l.call = (f, g,
|
|
1610
|
+
l.call = (f, g, h) => Ml(f, u, g, h);
|
|
1611
1611
|
let d = !1;
|
|
1612
1612
|
r === "post" ? l.scheduler = (f) => {
|
|
1613
1613
|
Ag(f, u && u.suspense);
|
|
@@ -1657,14 +1657,14 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1657
1657
|
mc: u,
|
|
1658
1658
|
pc: d,
|
|
1659
1659
|
pbc: p,
|
|
1660
|
-
o: { insert: f, querySelector: g, createText:
|
|
1661
|
-
} = s,
|
|
1660
|
+
o: { insert: f, querySelector: g, createText: h, createComment: y, parentNode: T }
|
|
1661
|
+
} = s, $ = Yn(t.props);
|
|
1662
1662
|
let { dynamicChildren: S } = t;
|
|
1663
1663
|
process.env.NODE_ENV !== "production" && Ir && (c = !1, S = null);
|
|
1664
|
-
const x = (C,
|
|
1664
|
+
const x = (C, P, w) => {
|
|
1665
1665
|
C.shapeFlag & 16 && u(
|
|
1666
1666
|
C.children,
|
|
1667
|
-
|
|
1667
|
+
P,
|
|
1668
1668
|
w,
|
|
1669
1669
|
a,
|
|
1670
1670
|
r,
|
|
@@ -1673,11 +1673,11 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1673
1673
|
c
|
|
1674
1674
|
);
|
|
1675
1675
|
}, O = (C = t) => {
|
|
1676
|
-
const
|
|
1677
|
-
w ? (i !== "svg" && nd(w) ? i = "svg" : i !== "mathml" && od(w) && (i = "mathml"), a && a.isCE && (a.ce._teleportTargets || (a.ce._teleportTargets = /* @__PURE__ */ new Set())).add(w),
|
|
1676
|
+
const P = Yn(C.props), w = C.target = Xs(C.props, g), _ = ec(w, C, h, f);
|
|
1677
|
+
w ? (i !== "svg" && nd(w) ? i = "svg" : i !== "mathml" && od(w) && (i = "mathml"), a && a.isCE && (a.ce._teleportTargets || (a.ce._teleportTargets = /* @__PURE__ */ new Set())).add(w), P || (x(C, w, _), ya(C, !1))) : process.env.NODE_ENV !== "production" && !P && fe("Invalid Teleport target on mount:", w, `(${typeof w})`);
|
|
1678
1678
|
}, D = (C) => {
|
|
1679
|
-
const
|
|
1680
|
-
if (io.get(C) ===
|
|
1679
|
+
const P = () => {
|
|
1680
|
+
if (io.get(C) === P) {
|
|
1681
1681
|
if (io.delete(C), Yn(C.props)) {
|
|
1682
1682
|
const w = T(C.el) || n;
|
|
1683
1683
|
x(C, w, C.anchor), ya(C, !0);
|
|
@@ -1685,28 +1685,28 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1685
1685
|
O(C);
|
|
1686
1686
|
}
|
|
1687
1687
|
};
|
|
1688
|
-
io.set(C,
|
|
1688
|
+
io.set(C, P), Ag(P, r);
|
|
1689
1689
|
};
|
|
1690
1690
|
if (e == null) {
|
|
1691
|
-
const C = t.el = process.env.NODE_ENV !== "production" ?
|
|
1692
|
-
if (f(C, n, o), f(
|
|
1691
|
+
const C = t.el = process.env.NODE_ENV !== "production" ? y("teleport start") : h(""), P = t.anchor = process.env.NODE_ENV !== "production" ? y("teleport end") : h("");
|
|
1692
|
+
if (f(C, n, o), f(P, n, o), wb(t.props) || r && r.pendingBranch) {
|
|
1693
1693
|
D(t);
|
|
1694
1694
|
return;
|
|
1695
1695
|
}
|
|
1696
|
-
|
|
1696
|
+
$ && (x(t, n, P), ya(t, !0)), O();
|
|
1697
1697
|
} else {
|
|
1698
1698
|
t.el = e.el;
|
|
1699
|
-
const C = t.anchor = e.anchor,
|
|
1700
|
-
if (
|
|
1701
|
-
|
|
1699
|
+
const C = t.anchor = e.anchor, P = io.get(e);
|
|
1700
|
+
if (P) {
|
|
1701
|
+
P.flags |= 8, io.delete(e), D(t);
|
|
1702
1702
|
return;
|
|
1703
1703
|
}
|
|
1704
1704
|
t.targetStart = e.targetStart;
|
|
1705
|
-
const w = t.target = e.target, _ = t.targetAnchor = e.targetAnchor, Y = Yn(e.props),
|
|
1705
|
+
const w = t.target = e.target, _ = t.targetAnchor = e.targetAnchor, Y = Yn(e.props), v = Y ? n : w, b = Y ? C : _;
|
|
1706
1706
|
if (i === "svg" || nd(w) ? i = "svg" : (i === "mathml" || od(w)) && (i = "mathml"), S ? (p(
|
|
1707
1707
|
e.dynamicChildren,
|
|
1708
1708
|
S,
|
|
1709
|
-
|
|
1709
|
+
v,
|
|
1710
1710
|
a,
|
|
1711
1711
|
r,
|
|
1712
1712
|
i,
|
|
@@ -1714,14 +1714,14 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1714
1714
|
), $g(e, t, process.env.NODE_ENV === "production")) : c || d(
|
|
1715
1715
|
e,
|
|
1716
1716
|
t,
|
|
1717
|
-
|
|
1718
|
-
|
|
1717
|
+
v,
|
|
1718
|
+
b,
|
|
1719
1719
|
a,
|
|
1720
1720
|
r,
|
|
1721
1721
|
i,
|
|
1722
1722
|
l,
|
|
1723
1723
|
!1
|
|
1724
|
-
),
|
|
1724
|
+
), $)
|
|
1725
1725
|
Y ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : wi(
|
|
1726
1726
|
t,
|
|
1727
1727
|
n,
|
|
@@ -1730,10 +1730,10 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1730
1730
|
1
|
|
1731
1731
|
);
|
|
1732
1732
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1733
|
-
const
|
|
1734
|
-
|
|
1733
|
+
const A = Xs(t.props, g);
|
|
1734
|
+
A ? (t.target = A, wi(
|
|
1735
1735
|
t,
|
|
1736
|
-
|
|
1736
|
+
A,
|
|
1737
1737
|
null,
|
|
1738
1738
|
s,
|
|
1739
1739
|
0
|
|
@@ -1749,7 +1749,7 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1749
1749
|
s,
|
|
1750
1750
|
1
|
|
1751
1751
|
);
|
|
1752
|
-
ya(t,
|
|
1752
|
+
ya(t, $);
|
|
1753
1753
|
}
|
|
1754
1754
|
},
|
|
1755
1755
|
remove(e, t, n, { um: o, o: { remove: a } }, r) {
|
|
@@ -1761,10 +1761,10 @@ const io = /* @__PURE__ */ new WeakMap(), kb = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1761
1761
|
targetAnchor: u,
|
|
1762
1762
|
target: d,
|
|
1763
1763
|
props: p
|
|
1764
|
-
} = e, f = Yn(p), g = r || !f,
|
|
1765
|
-
if (
|
|
1766
|
-
for (let
|
|
1767
|
-
const T = l[
|
|
1764
|
+
} = e, f = Yn(p), g = r || !f, h = io.get(e);
|
|
1765
|
+
if (h && (h.flags |= 8, io.delete(e)), d && (a(s), a(u)), r && a(c), !h && (f || d) && i & 16)
|
|
1766
|
+
for (let y = 0; y < l.length; y++) {
|
|
1767
|
+
const T = l[y];
|
|
1768
1768
|
o(
|
|
1769
1769
|
T,
|
|
1770
1770
|
t,
|
|
@@ -1793,25 +1793,25 @@ function wi(e, t, n, { o: { insert: o }, m: a }, r = 2) {
|
|
|
1793
1793
|
function Sb(e, t, n, o, a, r, {
|
|
1794
1794
|
o: { nextSibling: i, parentNode: l, querySelector: c, insert: s, createText: u }
|
|
1795
1795
|
}, d) {
|
|
1796
|
-
function p(
|
|
1797
|
-
let
|
|
1798
|
-
for (;
|
|
1799
|
-
if (
|
|
1800
|
-
if (
|
|
1801
|
-
t.targetStart =
|
|
1802
|
-
else if (
|
|
1803
|
-
t.targetAnchor =
|
|
1796
|
+
function p(y, T) {
|
|
1797
|
+
let $ = T;
|
|
1798
|
+
for (; $; ) {
|
|
1799
|
+
if ($ && $.nodeType === 8) {
|
|
1800
|
+
if ($.data === "teleport start anchor")
|
|
1801
|
+
t.targetStart = $;
|
|
1802
|
+
else if ($.data === "teleport anchor") {
|
|
1803
|
+
t.targetAnchor = $, y._lpa = t.targetAnchor && i(t.targetAnchor);
|
|
1804
1804
|
break;
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
1807
|
-
|
|
1807
|
+
$ = i($);
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
|
-
function f(
|
|
1810
|
+
function f(y, T) {
|
|
1811
1811
|
T.anchor = d(
|
|
1812
|
-
i(
|
|
1812
|
+
i(y),
|
|
1813
1813
|
T,
|
|
1814
|
-
l(
|
|
1814
|
+
l(y),
|
|
1815
1815
|
n,
|
|
1816
1816
|
o,
|
|
1817
1817
|
a,
|
|
@@ -1821,10 +1821,10 @@ function Sb(e, t, n, o, a, r, {
|
|
|
1821
1821
|
const g = t.target = Xs(
|
|
1822
1822
|
t.props,
|
|
1823
1823
|
c
|
|
1824
|
-
),
|
|
1824
|
+
), h = Yn(t.props);
|
|
1825
1825
|
if (g) {
|
|
1826
|
-
const
|
|
1827
|
-
t.shapeFlag & 16 && (
|
|
1826
|
+
const y = g._lpa || g.firstChild;
|
|
1827
|
+
t.shapeFlag & 16 && (h ? (f(e, t), p(g, y), t.targetAnchor || ec(
|
|
1828
1828
|
g,
|
|
1829
1829
|
t,
|
|
1830
1830
|
u,
|
|
@@ -1832,16 +1832,16 @@ function Sb(e, t, n, o, a, r, {
|
|
|
1832
1832
|
// if target is the same as the main view, insert anchors before current node
|
|
1833
1833
|
// to avoid hydrating mismatch
|
|
1834
1834
|
l(e) === g ? e : null
|
|
1835
|
-
)) : (t.anchor = i(e), p(g,
|
|
1836
|
-
|
|
1835
|
+
)) : (t.anchor = i(e), p(g, y), t.targetAnchor || ec(g, t, u, s), d(
|
|
1836
|
+
y && i(y),
|
|
1837
1837
|
t,
|
|
1838
1838
|
g,
|
|
1839
1839
|
n,
|
|
1840
1840
|
o,
|
|
1841
1841
|
a,
|
|
1842
1842
|
r
|
|
1843
|
-
))), ya(t,
|
|
1844
|
-
} else
|
|
1843
|
+
))), ya(t, h);
|
|
1844
|
+
} else h && t.shapeFlag & 16 && (f(e, t), t.targetStart = e, t.targetAnchor = i(e));
|
|
1845
1845
|
return t.anchor && i(t.anchor);
|
|
1846
1846
|
}
|
|
1847
1847
|
const Eb = xb;
|
|
@@ -1935,11 +1935,11 @@ const Wt = [Function, Array], gg = {
|
|
|
1935
1935
|
o.isLeaving = !1, n.job.flags & 8 || n.update(), delete d.afterLeave, u = void 0;
|
|
1936
1936
|
}, bs(r);
|
|
1937
1937
|
l === "in-out" && c.type !== Ft ? d.delayLeave = (p, f, g) => {
|
|
1938
|
-
const
|
|
1938
|
+
const h = vg(
|
|
1939
1939
|
o,
|
|
1940
1940
|
u
|
|
1941
1941
|
);
|
|
1942
|
-
|
|
1942
|
+
h[String(u.key)] = u, p[jn] = () => {
|
|
1943
1943
|
f(), p[jn] = void 0, delete s.delayedLeave, u = void 0;
|
|
1944
1944
|
}, s.delayedLeave = () => {
|
|
1945
1945
|
g(), delete s.delayedLeave, u = void 0;
|
|
@@ -1985,10 +1985,10 @@ function tc(e, t, n, o, a) {
|
|
|
1985
1985
|
onBeforeLeave: p,
|
|
1986
1986
|
onLeave: f,
|
|
1987
1987
|
onAfterLeave: g,
|
|
1988
|
-
onLeaveCancelled:
|
|
1989
|
-
onBeforeAppear:
|
|
1988
|
+
onLeaveCancelled: h,
|
|
1989
|
+
onBeforeAppear: y,
|
|
1990
1990
|
onAppear: T,
|
|
1991
|
-
onAfterAppear:
|
|
1991
|
+
onAfterAppear: $,
|
|
1992
1992
|
onAppearCancelled: S
|
|
1993
1993
|
} = t, x = String(e.key), O = vg(n, e), D = (w, _) => {
|
|
1994
1994
|
w && Ml(
|
|
@@ -1999,15 +1999,15 @@ function tc(e, t, n, o, a) {
|
|
|
1999
1999
|
);
|
|
2000
2000
|
}, C = (w, _) => {
|
|
2001
2001
|
const Y = _[1];
|
|
2002
|
-
D(w, _), ve(w) ? w.every((
|
|
2003
|
-
},
|
|
2002
|
+
D(w, _), ve(w) ? w.every((v) => v.length <= 1) && Y() : w.length <= 1 && Y();
|
|
2003
|
+
}, P = {
|
|
2004
2004
|
mode: i,
|
|
2005
2005
|
persisted: l,
|
|
2006
2006
|
beforeEnter(w) {
|
|
2007
2007
|
let _ = c;
|
|
2008
2008
|
if (!n.isMounted)
|
|
2009
2009
|
if (r)
|
|
2010
|
-
_ =
|
|
2010
|
+
_ = y || c;
|
|
2011
2011
|
else
|
|
2012
2012
|
return;
|
|
2013
2013
|
w[jn] && w[jn](
|
|
@@ -2019,18 +2019,18 @@ function tc(e, t, n, o, a) {
|
|
|
2019
2019
|
},
|
|
2020
2020
|
enter(w) {
|
|
2021
2021
|
if (!Ir && O[x] === e) return;
|
|
2022
|
-
let _ = s, Y = u,
|
|
2022
|
+
let _ = s, Y = u, v = d;
|
|
2023
2023
|
if (!n.isMounted)
|
|
2024
2024
|
if (r)
|
|
2025
|
-
_ = T || s, Y =
|
|
2025
|
+
_ = T || s, Y = $ || u, v = S || d;
|
|
2026
2026
|
else
|
|
2027
2027
|
return;
|
|
2028
|
-
let
|
|
2028
|
+
let b = !1;
|
|
2029
2029
|
w[ia] = (Q) => {
|
|
2030
|
-
|
|
2030
|
+
b || (b = !0, Q ? D(v, [w]) : D(Y, [w]), P.delayedLeave && P.delayedLeave(), w[ia] = void 0);
|
|
2031
2031
|
};
|
|
2032
|
-
const
|
|
2033
|
-
_ ? C(_, [w,
|
|
2032
|
+
const A = w[ia].bind(null, !1);
|
|
2033
|
+
_ ? C(_, [w, A]) : A();
|
|
2034
2034
|
},
|
|
2035
2035
|
leave(w, _) {
|
|
2036
2036
|
const Y = String(e.key);
|
|
@@ -2040,12 +2040,12 @@ function tc(e, t, n, o, a) {
|
|
|
2040
2040
|
), n.isUnmounting)
|
|
2041
2041
|
return _();
|
|
2042
2042
|
D(p, [w]);
|
|
2043
|
-
let
|
|
2044
|
-
w[jn] = (
|
|
2045
|
-
|
|
2043
|
+
let v = !1;
|
|
2044
|
+
w[jn] = (A) => {
|
|
2045
|
+
v || (v = !0, _(), A ? D(h, [w]) : D(g, [w]), w[jn] = void 0, O[Y] === e && delete O[Y]);
|
|
2046
2046
|
};
|
|
2047
|
-
const
|
|
2048
|
-
O[Y] = e, f ? C(f, [w,
|
|
2047
|
+
const b = w[jn].bind(null, !1);
|
|
2048
|
+
O[Y] = e, f ? C(f, [w, b]) : b();
|
|
2049
2049
|
},
|
|
2050
2050
|
clone(w) {
|
|
2051
2051
|
const _ = tc(
|
|
@@ -2058,7 +2058,7 @@ function tc(e, t, n, o, a) {
|
|
|
2058
2058
|
return a && a(_), _;
|
|
2059
2059
|
}
|
|
2060
2060
|
};
|
|
2061
|
-
return
|
|
2061
|
+
return P;
|
|
2062
2062
|
}
|
|
2063
2063
|
function bs(e) {
|
|
2064
2064
|
if (yg(e))
|
|
@@ -2949,13 +2949,13 @@ function Jb() {
|
|
|
2949
2949
|
if (Le(f))
|
|
2950
2950
|
return;
|
|
2951
2951
|
const g = {};
|
|
2952
|
-
for (const
|
|
2953
|
-
s(f,
|
|
2952
|
+
for (const h in d.ctx)
|
|
2953
|
+
s(f, h, p) && (g[h] = d.ctx[h]);
|
|
2954
2954
|
return g;
|
|
2955
2955
|
}
|
|
2956
2956
|
function s(d, p, f) {
|
|
2957
2957
|
const g = d[f];
|
|
2958
|
-
if (ve(g) && g.includes(p) || Je(g) && p in g || d.extends && s(d.extends, p, f) || d.mixins && d.mixins.some((
|
|
2958
|
+
if (ve(g) && g.includes(p) || Je(g) && p in g || d.extends && s(d.extends, p, f) || d.mixins && d.mixins.some((h) => s(h, p, f)))
|
|
2959
2959
|
return !0;
|
|
2960
2960
|
}
|
|
2961
2961
|
function u(d) {
|
|
@@ -3004,8 +3004,8 @@ const oo = "transition", la = "animation", nl = /* @__PURE__ */ Symbol("_vtc"),
|
|
|
3004
3004
|
}, pd = (e) => e ? ve(e) ? e.some((t) => t.length > 1) : e.length > 1 : !1;
|
|
3005
3005
|
function ny(e) {
|
|
3006
3006
|
const t = {};
|
|
3007
|
-
for (const
|
|
3008
|
-
|
|
3007
|
+
for (const v in e)
|
|
3008
|
+
v in Fg || (t[v] = e[v]);
|
|
3009
3009
|
if (e.css === !1)
|
|
3010
3010
|
return t;
|
|
3011
3011
|
const {
|
|
@@ -3021,49 +3021,49 @@ function ny(e) {
|
|
|
3021
3021
|
leaveFromClass: d = `${n}-leave-from`,
|
|
3022
3022
|
leaveActiveClass: p = `${n}-leave-active`,
|
|
3023
3023
|
leaveToClass: f = `${n}-leave-to`
|
|
3024
|
-
} = e, g = oy(a),
|
|
3024
|
+
} = e, g = oy(a), h = g && g[0], y = g && g[1], {
|
|
3025
3025
|
onBeforeEnter: T,
|
|
3026
|
-
onEnter:
|
|
3026
|
+
onEnter: $,
|
|
3027
3027
|
onEnterCancelled: S,
|
|
3028
3028
|
onLeave: x,
|
|
3029
3029
|
onLeaveCancelled: O,
|
|
3030
3030
|
onBeforeAppear: D = T,
|
|
3031
|
-
onAppear: C =
|
|
3032
|
-
onAppearCancelled:
|
|
3033
|
-
} = t, w = (
|
|
3034
|
-
|
|
3035
|
-
}, _ = (
|
|
3036
|
-
|
|
3037
|
-
}, Y = (
|
|
3038
|
-
const Q =
|
|
3039
|
-
Do(Q, [
|
|
3040
|
-
Io(
|
|
3031
|
+
onAppear: C = $,
|
|
3032
|
+
onAppearCancelled: P = S
|
|
3033
|
+
} = t, w = (v, b, A, Q) => {
|
|
3034
|
+
v._enterCancelled = Q, Io(v, b ? u : l), Io(v, b ? s : i), A && A();
|
|
3035
|
+
}, _ = (v, b) => {
|
|
3036
|
+
v._isLeaving = !1, Io(v, d), Io(v, f), Io(v, p), b && b();
|
|
3037
|
+
}, Y = (v) => (b, A) => {
|
|
3038
|
+
const Q = v ? C : $, R = () => w(b, v, A);
|
|
3039
|
+
Do(Q, [b, R]), fd(() => {
|
|
3040
|
+
Io(b, v ? c : r), zn(b, v ? u : l), pd(Q) || gd(b, o, h, R);
|
|
3041
3041
|
});
|
|
3042
3042
|
};
|
|
3043
3043
|
return ft(t, {
|
|
3044
|
-
onBeforeEnter(
|
|
3045
|
-
Do(T, [
|
|
3044
|
+
onBeforeEnter(v) {
|
|
3045
|
+
Do(T, [v]), zn(v, r), zn(v, i);
|
|
3046
3046
|
},
|
|
3047
|
-
onBeforeAppear(
|
|
3048
|
-
Do(D, [
|
|
3047
|
+
onBeforeAppear(v) {
|
|
3048
|
+
Do(D, [v]), zn(v, c), zn(v, s);
|
|
3049
3049
|
},
|
|
3050
3050
|
onEnter: Y(!1),
|
|
3051
3051
|
onAppear: Y(!0),
|
|
3052
|
-
onLeave(
|
|
3053
|
-
|
|
3054
|
-
const
|
|
3055
|
-
zn(
|
|
3056
|
-
|
|
3057
|
-
}), Do(x, [
|
|
3052
|
+
onLeave(v, b) {
|
|
3053
|
+
v._isLeaving = !0;
|
|
3054
|
+
const A = () => _(v, b);
|
|
3055
|
+
zn(v, d), v._enterCancelled ? (zn(v, p), vd(v)) : (vd(v), zn(v, p)), fd(() => {
|
|
3056
|
+
v._isLeaving && (Io(v, d), zn(v, f), pd(x) || gd(v, o, y, A));
|
|
3057
|
+
}), Do(x, [v, A]);
|
|
3058
3058
|
},
|
|
3059
|
-
onEnterCancelled(
|
|
3060
|
-
w(
|
|
3059
|
+
onEnterCancelled(v) {
|
|
3060
|
+
w(v, !1, void 0, !0), Do(S, [v]);
|
|
3061
3061
|
},
|
|
3062
|
-
onAppearCancelled(
|
|
3063
|
-
w(
|
|
3062
|
+
onAppearCancelled(v) {
|
|
3063
|
+
w(v, !0, void 0, !0), Do(P, [v]);
|
|
3064
3064
|
},
|
|
3065
|
-
onLeaveCancelled(
|
|
3066
|
-
_(
|
|
3065
|
+
onLeaveCancelled(v) {
|
|
3066
|
+
_(v), Do(O, [v]);
|
|
3067
3067
|
}
|
|
3068
3068
|
});
|
|
3069
3069
|
}
|
|
@@ -3470,17 +3470,17 @@ ${d}` : d;
|
|
|
3470
3470
|
let f = i.at(-1);
|
|
3471
3471
|
if (f?.type === "code") break;
|
|
3472
3472
|
if (f?.type === "blockquote") {
|
|
3473
|
-
let g = f,
|
|
3474
|
-
`),
|
|
3475
|
-
` +
|
|
3473
|
+
let g = f, h = o.join(`
|
|
3474
|
+
`), y = g.raw + `
|
|
3475
|
+
` + h.replace(this.rules.other.blockquoteSetextReplace2, ""), T = this.blockquote(y);
|
|
3476
3476
|
i[i.length - 1] = T, a = `${a}
|
|
3477
|
-
${
|
|
3477
|
+
${h}`, r = r.substring(0, r.length - g.text.length) + T.text;
|
|
3478
3478
|
break;
|
|
3479
3479
|
} else if (f?.type === "list") {
|
|
3480
|
-
let g = f,
|
|
3480
|
+
let g = f, h = g.raw + `
|
|
3481
3481
|
` + o.join(`
|
|
3482
|
-
`),
|
|
3483
|
-
i[i.length - 1] =
|
|
3482
|
+
`), y = this.list(h);
|
|
3483
|
+
i[i.length - 1] = y, a = a.substring(0, a.length - f.raw.length) + y.raw, r = r.substring(0, r.length - g.raw.length) + y.raw, o = h.substring(i.at(-1).raw.length).split(`
|
|
3484
3484
|
`);
|
|
3485
3485
|
continue;
|
|
3486
3486
|
}
|
|
@@ -3500,23 +3500,23 @@ ${v}`, r = r.substring(0, r.length - g.text.length) + T.text;
|
|
|
3500
3500
|
u = n[0], t = t.substring(u.length);
|
|
3501
3501
|
let p = p0(n[2].split(`
|
|
3502
3502
|
`, 1)[0], n[1].length), f = t.split(`
|
|
3503
|
-
`, 1)[0], g = !p.trim(),
|
|
3504
|
-
if (this.options.pedantic ? (
|
|
3503
|
+
`, 1)[0], g = !p.trim(), h = 0;
|
|
3504
|
+
if (this.options.pedantic ? (h = 2, d = p.trimStart()) : g ? h = n[1].length + 1 : (h = p.search(this.rules.other.nonSpaceChar), h = h > 4 ? 1 : h, d = p.slice(h), h += n[1].length), g && this.rules.other.blankLine.test(f) && (u += f + `
|
|
3505
3505
|
`, t = t.substring(f.length + 1), s = !0), !s) {
|
|
3506
|
-
let
|
|
3506
|
+
let y = this.rules.other.nextBulletRegex(h), T = this.rules.other.hrRegex(h), $ = this.rules.other.fencesBeginRegex(h), S = this.rules.other.headingBeginRegex(h), x = this.rules.other.htmlBeginRegex(h), O = this.rules.other.blockquoteBeginRegex(h);
|
|
3507
3507
|
for (; t; ) {
|
|
3508
3508
|
let D = t.split(`
|
|
3509
3509
|
`, 1)[0], C;
|
|
3510
|
-
if (f = D, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), C = f) : C = f.replace(this.rules.other.tabCharGlobal, " "),
|
|
3511
|
-
if (C.search(this.rules.other.nonSpaceChar) >=
|
|
3512
|
-
` + C.slice(
|
|
3510
|
+
if (f = D, this.options.pedantic ? (f = f.replace(this.rules.other.listReplaceNesting, " "), C = f) : C = f.replace(this.rules.other.tabCharGlobal, " "), $.test(f) || S.test(f) || x.test(f) || O.test(f) || y.test(f) || T.test(f)) break;
|
|
3511
|
+
if (C.search(this.rules.other.nonSpaceChar) >= h || !f.trim()) d += `
|
|
3512
|
+
` + C.slice(h);
|
|
3513
3513
|
else {
|
|
3514
|
-
if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 ||
|
|
3514
|
+
if (g || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || $.test(p) || S.test(p) || T.test(p)) break;
|
|
3515
3515
|
d += `
|
|
3516
3516
|
` + f;
|
|
3517
3517
|
}
|
|
3518
3518
|
g = !f.trim(), u += D + `
|
|
3519
|
-
`, t = t.substring(D.length + 1), p = C.slice(
|
|
3519
|
+
`, t = t.substring(D.length + 1), p = C.slice(h);
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
3522
|
r.loose || (l ? r.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (l = !0)), r.items.push({ type: "list_item", raw: u, task: !!this.options.gfm && this.rules.other.listIsTask.test(d), loose: !1, text: d, tokens: [] }), r.raw += u;
|
|
@@ -3662,11 +3662,11 @@ ${v}`, r = r.substring(0, r.length - g.text.length) + T.text;
|
|
|
3662
3662
|
l = Math.min(l, l + c + s);
|
|
3663
3663
|
let f = [...a[0]][0].length, g = t.slice(0, r + a.index + f + l);
|
|
3664
3664
|
if (Math.min(r, l) % 2) {
|
|
3665
|
-
let
|
|
3666
|
-
return { type: "em", raw: g, text:
|
|
3665
|
+
let y = g.slice(1, -1);
|
|
3666
|
+
return { type: "em", raw: g, text: y, tokens: this.lexer.inlineTokens(y) };
|
|
3667
3667
|
}
|
|
3668
|
-
let
|
|
3669
|
-
return { type: "strong", raw: g, text:
|
|
3668
|
+
let h = g.slice(2, -2);
|
|
3669
|
+
return { type: "strong", raw: g, text: h, tokens: this.lexer.inlineTokens(h) };
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
3672
|
}
|
|
@@ -4712,36 +4712,36 @@ function am() {
|
|
|
4712
4712
|
e.DocumentFragment;
|
|
4713
4713
|
const r = e.HTMLTemplateElement, i = e.Node, l = e.Element, c = e.NodeFilter, s = e.NamedNodeMap;
|
|
4714
4714
|
s === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
4715
|
-
const u = e.DOMParser, d = e.trustedTypes, p = l.prototype, f = on(p, "cloneNode"), g = on(p, "remove"),
|
|
4715
|
+
const u = e.DOMParser, d = e.trustedTypes, p = l.prototype, f = on(p, "cloneNode"), g = on(p, "remove"), h = on(p, "nextSibling"), y = on(p, "childNodes"), T = on(p, "parentNode"), $ = on(p, "shadowRoot"), S = on(p, "attributes"), x = i && i.prototype ? on(i.prototype, "nodeType") : null, O = i && i.prototype ? on(i.prototype, "nodeName") : null, D = i && i.prototype ? on(i.prototype, "ownerDocument") : null, C = function(m) {
|
|
4716
4716
|
return x ? x(m) : m.nodeType;
|
|
4717
|
-
},
|
|
4717
|
+
}, P = function(m) {
|
|
4718
4718
|
return O ? O(m) : m.nodeName;
|
|
4719
4719
|
};
|
|
4720
4720
|
if (typeof r == "function") {
|
|
4721
4721
|
const j = n.createElement("template");
|
|
4722
4722
|
j.content && j.content.ownerDocument && (n = j.content.ownerDocument);
|
|
4723
4723
|
}
|
|
4724
|
-
let w, _ = "", Y,
|
|
4725
|
-
const
|
|
4726
|
-
if (
|
|
4724
|
+
let w, _ = "", Y, v = !1, b = 0;
|
|
4725
|
+
const A = function() {
|
|
4726
|
+
if (b > 0)
|
|
4727
4727
|
throw Oo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
4728
4728
|
}, Q = function(m) {
|
|
4729
|
-
|
|
4729
|
+
A(), b++;
|
|
4730
4730
|
try {
|
|
4731
4731
|
return w.createHTML(m);
|
|
4732
4732
|
} finally {
|
|
4733
|
-
|
|
4733
|
+
b--;
|
|
4734
4734
|
}
|
|
4735
4735
|
}, R = function(m) {
|
|
4736
|
-
|
|
4736
|
+
A(), b++;
|
|
4737
4737
|
try {
|
|
4738
4738
|
return w.createScriptURL(m);
|
|
4739
4739
|
} finally {
|
|
4740
|
-
|
|
4740
|
+
b--;
|
|
4741
4741
|
}
|
|
4742
4742
|
}, B = function() {
|
|
4743
|
-
return
|
|
4744
|
-
},
|
|
4743
|
+
return v || (Y = W0(d, a), v = !0), Y;
|
|
4744
|
+
}, z = n, Z = z.implementation, ee = z.createNodeIterator, Ve = z.createDocumentFragment, ze = z.getElementsByTagName, V = o.importNode;
|
|
4745
4745
|
let L = Ld();
|
|
4746
4746
|
t.isSupported = typeof nm == "function" && typeof T == "function" && Z && Z.createHTMLDocument !== void 0;
|
|
4747
4747
|
const oe = R0, qe = P0, Te = z0, yt = B0, Wr = L0, ls = j0, Kr = F0, ti = V0;
|
|
@@ -4922,7 +4922,7 @@ function am() {
|
|
|
4922
4922
|
}
|
|
4923
4923
|
}, pi = function(m) {
|
|
4924
4924
|
fi(m);
|
|
4925
|
-
const k =
|
|
4925
|
+
const k = y(m);
|
|
4926
4926
|
if (k) {
|
|
4927
4927
|
const q = [];
|
|
4928
4928
|
zo(k, (ne) => {
|
|
@@ -4982,7 +4982,7 @@ function am() {
|
|
|
4982
4982
|
for (; k.length > 0; ) {
|
|
4983
4983
|
const M = k.pop();
|
|
4984
4984
|
C(M) === zt.element && Gh(M);
|
|
4985
|
-
const ne =
|
|
4985
|
+
const ne = y(M);
|
|
4986
4986
|
if (ne)
|
|
4987
4987
|
for (let ue = ne.length - 1; ue >= 0; --ue)
|
|
4988
4988
|
k.push(ne[ue]);
|
|
@@ -5003,13 +5003,13 @@ function am() {
|
|
|
5003
5003
|
continue;
|
|
5004
5004
|
}
|
|
5005
5005
|
if (q === zt.element) {
|
|
5006
|
-
const ue = M, Pe = nt(
|
|
5006
|
+
const ue = M, Pe = nt(P(M));
|
|
5007
5007
|
try {
|
|
5008
5008
|
ue.hasAttribute && ue.hasAttribute("patchsrc") && ue.removeAttribute("patchsrc"), ue.hasAttribute && ue.hasAttribute("for") && Lu("for", Pe) && ue.removeAttribute("for");
|
|
5009
5009
|
} catch {
|
|
5010
5010
|
}
|
|
5011
5011
|
}
|
|
5012
|
-
const ne =
|
|
5012
|
+
const ne = y(M);
|
|
5013
5013
|
if (ne)
|
|
5014
5014
|
for (let ue = ne.length - 1; ue >= 0; --ue)
|
|
5015
5015
|
k.push(ne[ue]);
|
|
@@ -5091,7 +5091,7 @@ function am() {
|
|
|
5091
5091
|
// select, etc.) regardless of whether the named child happens to
|
|
5092
5092
|
// carry a numeric .length, which a typeof-based probe would miss
|
|
5093
5093
|
// (e.g. HTMLSelectElement.length is a defined unsigned-long).
|
|
5094
|
-
m.childNodes !==
|
|
5094
|
+
m.childNodes !== y(m);
|
|
5095
5095
|
}, dr = function(m) {
|
|
5096
5096
|
if (!x || typeof m != "object" || m === null)
|
|
5097
5097
|
return !1;
|
|
@@ -5129,12 +5129,12 @@ function am() {
|
|
|
5129
5129
|
if (!Jt[k] && Qu(k) && hi($t.tagNameCheck, k))
|
|
5130
5130
|
return !1;
|
|
5131
5131
|
if (ea && !to[k]) {
|
|
5132
|
-
const q = T(m), ne =
|
|
5132
|
+
const q = T(m), ne = y(m);
|
|
5133
5133
|
if (ne && q) {
|
|
5134
5134
|
const ue = ne.length;
|
|
5135
5135
|
for (let Pe = ue - 1; Pe >= 0; --Pe) {
|
|
5136
5136
|
const He = m === M ? f(ne[Pe], !0) : ne[Pe];
|
|
5137
|
-
q.insertBefore(He,
|
|
5137
|
+
q.insertBefore(He, h(m));
|
|
5138
5138
|
}
|
|
5139
5139
|
}
|
|
5140
5140
|
}
|
|
@@ -5148,7 +5148,7 @@ function am() {
|
|
|
5148
5148
|
return !0;
|
|
5149
5149
|
if (mi(m))
|
|
5150
5150
|
return no(m), !0;
|
|
5151
|
-
const M = nt(
|
|
5151
|
+
const M = nt(P(m));
|
|
5152
5152
|
if (Me = Yu(L.uponSanitizeElement, Me, sr, cr), hn(L.uponSanitizeElement, m, {
|
|
5153
5153
|
tagName: M,
|
|
5154
5154
|
allowedTags: Me
|
|
@@ -5247,7 +5247,7 @@ function am() {
|
|
|
5247
5247
|
const M = Fu(m);
|
|
5248
5248
|
for (hn(L.beforeSanitizeShadowDOM, m, null); k = M.nextNode(); )
|
|
5249
5249
|
if (hn(L.uponSanitizeShadowNode, k, null), Hu(k, m), Gu(k), dr(k.content) && vi(k.content), C(k) === zt.element) {
|
|
5250
|
-
const q =
|
|
5250
|
+
const q = $(k);
|
|
5251
5251
|
dr(q) && (us(q), vi(q));
|
|
5252
5252
|
}
|
|
5253
5253
|
hn(L.afterSanitizeShadowDOM, m, null);
|
|
@@ -5262,7 +5262,7 @@ function am() {
|
|
|
5262
5262
|
vi(M.shadow);
|
|
5263
5263
|
continue;
|
|
5264
5264
|
}
|
|
5265
|
-
const q = M.node, ue = C(q) === zt.element, Pe =
|
|
5265
|
+
const q = M.node, ue = C(q) === zt.element, Pe = y(q);
|
|
5266
5266
|
if (Pe)
|
|
5267
5267
|
for (let He = Pe.length - 1; He >= 0; --He)
|
|
5268
5268
|
k.push({
|
|
@@ -5280,7 +5280,7 @@ function am() {
|
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
5282
5282
|
if (ue) {
|
|
5283
|
-
const He =
|
|
5283
|
+
const He = $(q);
|
|
5284
5284
|
dr(He) && k.push({
|
|
5285
5285
|
node: null,
|
|
5286
5286
|
shadow: He
|
|
@@ -5301,7 +5301,7 @@ function am() {
|
|
|
5301
5301
|
const ue = ta && typeof j != "string" && ra(j);
|
|
5302
5302
|
if (ue) {
|
|
5303
5303
|
qh(j);
|
|
5304
|
-
const Dt =
|
|
5304
|
+
const Dt = P(j);
|
|
5305
5305
|
if (typeof Dt == "string") {
|
|
5306
5306
|
const It = nt(Dt);
|
|
5307
5307
|
if (!Me[It] || Jt[It])
|
|
@@ -11445,8 +11445,8 @@ async function vk(e, t) {
|
|
|
11445
11445
|
elementContext: d = "floating",
|
|
11446
11446
|
altBoundary: p = !1,
|
|
11447
11447
|
padding: f = 0
|
|
11448
|
-
} = Ll(t, e), g = hk(f),
|
|
11449
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(
|
|
11448
|
+
} = Ll(t, e), g = hk(f), h = l[p ? d === "floating" ? "reference" : "floating" : d], y = pl(await r.getClippingRect({
|
|
11449
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(h))) == null || n ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
|
|
11450
11450
|
boundary: s,
|
|
11451
11451
|
rootBoundary: u,
|
|
11452
11452
|
strategy: c
|
|
@@ -11455,7 +11455,7 @@ async function vk(e, t) {
|
|
|
11455
11455
|
y: a,
|
|
11456
11456
|
width: i.floating.width,
|
|
11457
11457
|
height: i.floating.height
|
|
11458
|
-
} : i.reference,
|
|
11458
|
+
} : i.reference, $ = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l.floating)), S = await (r.isElement == null ? void 0 : r.isElement($)) ? await (r.getScale == null ? void 0 : r.getScale($)) || {
|
|
11459
11459
|
x: 1,
|
|
11460
11460
|
y: 1
|
|
11461
11461
|
} : {
|
|
@@ -11464,14 +11464,14 @@ async function vk(e, t) {
|
|
|
11464
11464
|
}, x = pl(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
11465
11465
|
elements: l,
|
|
11466
11466
|
rect: T,
|
|
11467
|
-
offsetParent:
|
|
11467
|
+
offsetParent: $,
|
|
11468
11468
|
strategy: c
|
|
11469
11469
|
}) : T);
|
|
11470
11470
|
return {
|
|
11471
|
-
top: (
|
|
11472
|
-
bottom: (x.bottom -
|
|
11473
|
-
left: (
|
|
11474
|
-
right: (x.right -
|
|
11471
|
+
top: (y.top - x.top + g.top) / S.y,
|
|
11472
|
+
bottom: (x.bottom - y.bottom + g.bottom) / S.y,
|
|
11473
|
+
left: (y.left - x.left + g.left) / S.x,
|
|
11474
|
+
right: (x.right - y.right + g.right) / S.x
|
|
11475
11475
|
};
|
|
11476
11476
|
}
|
|
11477
11477
|
const bk = 50, yk = async (e, t, n) => {
|
|
@@ -11493,19 +11493,19 @@ const bk = 50, yk = async (e, t, n) => {
|
|
|
11493
11493
|
y: d
|
|
11494
11494
|
} = qd(s, o, c), p = o, f = 0;
|
|
11495
11495
|
const g = {};
|
|
11496
|
-
for (let
|
|
11497
|
-
const
|
|
11498
|
-
if (!
|
|
11496
|
+
for (let h = 0; h < r.length; h++) {
|
|
11497
|
+
const y = r[h];
|
|
11498
|
+
if (!y)
|
|
11499
11499
|
continue;
|
|
11500
11500
|
const {
|
|
11501
11501
|
name: T,
|
|
11502
|
-
fn:
|
|
11503
|
-
} =
|
|
11502
|
+
fn: $
|
|
11503
|
+
} = y, {
|
|
11504
11504
|
x: S,
|
|
11505
11505
|
y: x,
|
|
11506
11506
|
data: O,
|
|
11507
11507
|
reset: D
|
|
11508
|
-
} = await
|
|
11508
|
+
} = await $({
|
|
11509
11509
|
x: u,
|
|
11510
11510
|
y: d,
|
|
11511
11511
|
initialPlacement: o,
|
|
@@ -11529,7 +11529,7 @@ const bk = 50, yk = async (e, t, n) => {
|
|
|
11529
11529
|
}) : D.rects), {
|
|
11530
11530
|
x: u,
|
|
11531
11531
|
y: d
|
|
11532
|
-
} = qd(s, p, c)),
|
|
11532
|
+
} = qd(s, p, c)), h = -1);
|
|
11533
11533
|
}
|
|
11534
11534
|
return {
|
|
11535
11535
|
x: u,
|
|
@@ -11560,20 +11560,20 @@ const wk = function(e) {
|
|
|
11560
11560
|
allowedPlacements: p = Hd,
|
|
11561
11561
|
autoAlignment: f = !0,
|
|
11562
11562
|
...g
|
|
11563
|
-
} = Ll(e, t),
|
|
11564
|
-
if (
|
|
11563
|
+
} = Ll(e, t), h = d !== void 0 || p === Hd ? kk(d || null, f, p) : p, y = await c.detectOverflow(t, g), T = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, $ = h[T];
|
|
11564
|
+
if ($ == null)
|
|
11565
11565
|
return {};
|
|
11566
|
-
const S = fm(
|
|
11567
|
-
if (l !==
|
|
11566
|
+
const S = fm($, r, await (c.isRTL == null ? void 0 : c.isRTL(s.floating)));
|
|
11567
|
+
if (l !== $)
|
|
11568
11568
|
return {
|
|
11569
11569
|
reset: {
|
|
11570
|
-
placement:
|
|
11570
|
+
placement: h[0]
|
|
11571
11571
|
}
|
|
11572
11572
|
};
|
|
11573
|
-
const x = [
|
|
11574
|
-
placement:
|
|
11573
|
+
const x = [y[ko($)], y[S[0]], y[S[1]]], O = [...((o = i.autoPlacement) == null ? void 0 : o.overflows) || [], {
|
|
11574
|
+
placement: $,
|
|
11575
11575
|
overflows: x
|
|
11576
|
-
}], D =
|
|
11576
|
+
}], D = h[T + 1];
|
|
11577
11577
|
if (D)
|
|
11578
11578
|
return {
|
|
11579
11579
|
data: {
|
|
@@ -11588,24 +11588,24 @@ const wk = function(e) {
|
|
|
11588
11588
|
const _ = bo(w.placement);
|
|
11589
11589
|
return [w.placement, _ && u ? (
|
|
11590
11590
|
// Check along the mainAxis and main crossAxis side.
|
|
11591
|
-
w.overflows.slice(0, 2).reduce((Y,
|
|
11591
|
+
w.overflows.slice(0, 2).reduce((Y, v) => Y + v, 0)
|
|
11592
11592
|
) : (
|
|
11593
11593
|
// Check only the mainAxis.
|
|
11594
11594
|
w.overflows[0]
|
|
11595
11595
|
), w.overflows];
|
|
11596
|
-
}).sort((w, _) => w[1] - _[1]),
|
|
11596
|
+
}).sort((w, _) => w[1] - _[1]), P = ((a = C.filter((w) => w[2].slice(
|
|
11597
11597
|
0,
|
|
11598
11598
|
// Aligned placements should not check their opposite crossAxis
|
|
11599
11599
|
// side.
|
|
11600
11600
|
bo(w[0]) ? 2 : 3
|
|
11601
11601
|
).every((_) => _ <= 0))[0]) == null ? void 0 : a[0]) || C[0][0];
|
|
11602
|
-
return
|
|
11602
|
+
return P !== l ? {
|
|
11603
11603
|
data: {
|
|
11604
11604
|
index: T + 1,
|
|
11605
11605
|
overflows: O
|
|
11606
11606
|
},
|
|
11607
11607
|
reset: {
|
|
11608
|
-
placement:
|
|
11608
|
+
placement: P
|
|
11609
11609
|
}
|
|
11610
11610
|
} : {};
|
|
11611
11611
|
}
|
|
@@ -11629,51 +11629,51 @@ const wk = function(e) {
|
|
|
11629
11629
|
fallbackPlacements: p,
|
|
11630
11630
|
fallbackStrategy: f = "bestFit",
|
|
11631
11631
|
fallbackAxisSideDirection: g = "none",
|
|
11632
|
-
flipAlignment:
|
|
11633
|
-
...
|
|
11632
|
+
flipAlignment: h = !0,
|
|
11633
|
+
...y
|
|
11634
11634
|
} = Ll(e, t);
|
|
11635
11635
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
11636
11636
|
return {};
|
|
11637
|
-
const T = ko(a),
|
|
11638
|
-
!p && D && O.push(...gk(l,
|
|
11639
|
-
const C = [l, ...O],
|
|
11637
|
+
const T = ko(a), $ = Yo(l), S = ko(l) === l, x = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), O = p || (S || !h ? [dl(l)] : uk(l)), D = g !== "none";
|
|
11638
|
+
!p && D && O.push(...gk(l, h, g, x));
|
|
11639
|
+
const C = [l, ...O], P = await c.detectOverflow(t, y), w = [];
|
|
11640
11640
|
let _ = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
11641
|
-
if (u && w.push(
|
|
11642
|
-
const
|
|
11643
|
-
w.push(
|
|
11641
|
+
if (u && w.push(P[T]), d) {
|
|
11642
|
+
const A = fm(a, i, x);
|
|
11643
|
+
w.push(P[A[0]], P[A[1]]);
|
|
11644
11644
|
}
|
|
11645
11645
|
if (_ = [..._, {
|
|
11646
11646
|
placement: a,
|
|
11647
11647
|
overflows: w
|
|
11648
|
-
}], !w.every((
|
|
11649
|
-
var Y,
|
|
11650
|
-
const
|
|
11651
|
-
if (Q && (!(d === "alignment" &&
|
|
11648
|
+
}], !w.every((A) => A <= 0)) {
|
|
11649
|
+
var Y, v;
|
|
11650
|
+
const A = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, Q = C[A];
|
|
11651
|
+
if (Q && (!(d === "alignment" && $ !== Yo(Q)) || // We leave the current main axis only if every placement on that axis
|
|
11652
11652
|
// overflows the main axis.
|
|
11653
|
-
_.every((B) => Yo(B.placement) ===
|
|
11653
|
+
_.every((B) => Yo(B.placement) === $ ? B.overflows[0] > 0 : !0)))
|
|
11654
11654
|
return {
|
|
11655
11655
|
data: {
|
|
11656
|
-
index:
|
|
11656
|
+
index: A,
|
|
11657
11657
|
overflows: _
|
|
11658
11658
|
},
|
|
11659
11659
|
reset: {
|
|
11660
11660
|
placement: Q
|
|
11661
11661
|
}
|
|
11662
11662
|
};
|
|
11663
|
-
let R = (
|
|
11663
|
+
let R = (v = _.filter((B) => B.overflows[0] <= 0).sort((B, z) => B.overflows[1] - z.overflows[1])[0]) == null ? void 0 : v.placement;
|
|
11664
11664
|
if (!R)
|
|
11665
11665
|
switch (f) {
|
|
11666
11666
|
case "bestFit": {
|
|
11667
|
-
var
|
|
11668
|
-
const B = (
|
|
11667
|
+
var b;
|
|
11668
|
+
const B = (b = _.filter((z) => {
|
|
11669
11669
|
if (D) {
|
|
11670
|
-
const Z = Yo(
|
|
11671
|
-
return Z ===
|
|
11670
|
+
const Z = Yo(z.placement);
|
|
11671
|
+
return Z === $ || // Create a bias to the `y` side axis due to horizontal
|
|
11672
11672
|
// reading directions favoring greater width.
|
|
11673
11673
|
Z === "y";
|
|
11674
11674
|
}
|
|
11675
11675
|
return !0;
|
|
11676
|
-
}).map((
|
|
11676
|
+
}).map((z) => [z.placement, z.overflows.filter((Z) => Z > 0).reduce((Z, ee) => Z + ee, 0)]).sort((z, Z) => z[1] - Z[1])[0]) == null ? void 0 : b[0];
|
|
11677
11677
|
B && (R = B);
|
|
11678
11678
|
break;
|
|
11679
11679
|
}
|
|
@@ -11707,11 +11707,11 @@ const wk = function(e) {
|
|
|
11707
11707
|
limiter: c = {
|
|
11708
11708
|
fn: (T) => {
|
|
11709
11709
|
let {
|
|
11710
|
-
x:
|
|
11710
|
+
x: $,
|
|
11711
11711
|
y: S
|
|
11712
11712
|
} = T;
|
|
11713
11713
|
return {
|
|
11714
|
-
x:
|
|
11714
|
+
x: $,
|
|
11715
11715
|
y: S
|
|
11716
11716
|
};
|
|
11717
11717
|
}
|
|
@@ -11721,25 +11721,25 @@ const wk = function(e) {
|
|
|
11721
11721
|
x: n,
|
|
11722
11722
|
y: o
|
|
11723
11723
|
}, d = await r.detectOverflow(t, s), p = Yo(ko(a)), f = um(p);
|
|
11724
|
-
let g = u[f],
|
|
11724
|
+
let g = u[f], h = u[p];
|
|
11725
11725
|
if (i) {
|
|
11726
|
-
const T = f === "y" ? "top" : "left",
|
|
11726
|
+
const T = f === "y" ? "top" : "left", $ = f === "y" ? "bottom" : "right", S = g + d[T], x = g - d[$];
|
|
11727
11727
|
g = Ud(S, g, x);
|
|
11728
11728
|
}
|
|
11729
11729
|
if (l) {
|
|
11730
|
-
const T = p === "y" ? "top" : "left",
|
|
11731
|
-
|
|
11730
|
+
const T = p === "y" ? "top" : "left", $ = p === "y" ? "bottom" : "right", S = h + d[T], x = h - d[$];
|
|
11731
|
+
h = Ud(S, h, x);
|
|
11732
11732
|
}
|
|
11733
|
-
const
|
|
11733
|
+
const y = c.fn({
|
|
11734
11734
|
...t,
|
|
11735
11735
|
[f]: g,
|
|
11736
|
-
[p]:
|
|
11736
|
+
[p]: h
|
|
11737
11737
|
});
|
|
11738
11738
|
return {
|
|
11739
|
-
...
|
|
11739
|
+
...y,
|
|
11740
11740
|
data: {
|
|
11741
|
-
x:
|
|
11742
|
-
y:
|
|
11741
|
+
x: y.x - n,
|
|
11742
|
+
y: y.y - o,
|
|
11743
11743
|
enabled: {
|
|
11744
11744
|
[f]: i,
|
|
11745
11745
|
[p]: l
|
|
@@ -11911,10 +11911,10 @@ function Ko(e, t, n, o) {
|
|
|
11911
11911
|
let c = (a.left + l.x) / i.x, s = (a.top + l.y) / i.y, u = a.width / i.x, d = a.height / i.y;
|
|
11912
11912
|
if (r) {
|
|
11913
11913
|
const p = Ut(r), f = o && dn(o) ? Ut(o) : o;
|
|
11914
|
-
let g = p,
|
|
11915
|
-
for (;
|
|
11916
|
-
const
|
|
11917
|
-
c *=
|
|
11914
|
+
let g = p, h = pc(g);
|
|
11915
|
+
for (; h && o && f !== g; ) {
|
|
11916
|
+
const y = _r(h), T = h.getBoundingClientRect(), $ = pn(h), S = T.left + (h.clientLeft + parseFloat($.paddingLeft)) * y.x, x = T.top + (h.clientTop + parseFloat($.paddingTop)) * y.y;
|
|
11917
|
+
c *= y.x, s *= y.y, u *= y.x, d *= y.y, c += S, s += x, g = Ut(h), h = pc(g);
|
|
11918
11918
|
}
|
|
11919
11919
|
}
|
|
11920
11920
|
return pl({
|
|
@@ -12172,8 +12172,8 @@ function Yk(e, t) {
|
|
|
12172
12172
|
} = s;
|
|
12173
12173
|
if (l || t(), !p || !f)
|
|
12174
12174
|
return;
|
|
12175
|
-
const g = Ei(d),
|
|
12176
|
-
rootMargin: -g + "px " + -
|
|
12175
|
+
const g = Ei(d), h = Ei(a.clientWidth - (u + p)), y = Ei(a.clientHeight - (d + f)), T = Ei(u), $ = {
|
|
12176
|
+
rootMargin: -g + "px " + -h + "px " + -y + "px " + -T + "px",
|
|
12177
12177
|
threshold: Go(0, sl(1, c)) || 1
|
|
12178
12178
|
};
|
|
12179
12179
|
let S = !0;
|
|
@@ -12190,12 +12190,12 @@ function Yk(e, t) {
|
|
|
12190
12190
|
}
|
|
12191
12191
|
try {
|
|
12192
12192
|
n = new IntersectionObserver(x, {
|
|
12193
|
-
|
|
12193
|
+
...$,
|
|
12194
12194
|
// Handle <iframe>s
|
|
12195
12195
|
root: a.ownerDocument
|
|
12196
12196
|
});
|
|
12197
12197
|
} catch {
|
|
12198
|
-
n = new IntersectionObserver(x,
|
|
12198
|
+
n = new IntersectionObserver(x, $);
|
|
12199
12199
|
}
|
|
12200
12200
|
n.observe(e);
|
|
12201
12201
|
}
|
|
@@ -12218,22 +12218,22 @@ function Vk(e, t, n, o) {
|
|
|
12218
12218
|
const d = s && l ? Yk(s, n) : null;
|
|
12219
12219
|
let p = -1, f = null;
|
|
12220
12220
|
i && (f = new ResizeObserver((T) => {
|
|
12221
|
-
let [
|
|
12222
|
-
|
|
12221
|
+
let [$] = T;
|
|
12222
|
+
$ && $.target === s && f && t && (f.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
12223
12223
|
var S;
|
|
12224
12224
|
(S = f) == null || S.observe(t);
|
|
12225
12225
|
})), n();
|
|
12226
12226
|
}), s && !c && f.observe(s), t && f.observe(t));
|
|
12227
|
-
let g,
|
|
12228
|
-
c &&
|
|
12229
|
-
function
|
|
12227
|
+
let g, h = c ? Ko(e) : null;
|
|
12228
|
+
c && y();
|
|
12229
|
+
function y() {
|
|
12230
12230
|
const T = Ko(e);
|
|
12231
|
-
|
|
12231
|
+
h && !km(h, T) && n(), h = T, g = requestAnimationFrame(y);
|
|
12232
12232
|
}
|
|
12233
12233
|
return n(), () => {
|
|
12234
12234
|
var T;
|
|
12235
|
-
u.forEach((
|
|
12236
|
-
a &&
|
|
12235
|
+
u.forEach(($) => {
|
|
12236
|
+
a && $.removeEventListener("scroll", n), r && $.removeEventListener("resize", n);
|
|
12237
12237
|
}), d?.(), (T = f) == null || T.disconnect(), f = null, c && cancelAnimationFrame(g);
|
|
12238
12238
|
};
|
|
12239
12239
|
}
|
|
@@ -12284,7 +12284,7 @@ function Wk(e, t, n) {
|
|
|
12284
12284
|
}), c = I(() => {
|
|
12285
12285
|
var C;
|
|
12286
12286
|
return (C = fa(n.transform)) != null ? C : !0;
|
|
12287
|
-
}), s = I(() => Xd(e.value)), u = I(() => Xd(t.value)), d = /* @__PURE__ */ U(0), p = /* @__PURE__ */ U(0), f = /* @__PURE__ */ U(l.value), g = /* @__PURE__ */ U(i.value),
|
|
12287
|
+
}), s = I(() => Xd(e.value)), u = I(() => Xd(t.value)), d = /* @__PURE__ */ U(0), p = /* @__PURE__ */ U(0), f = /* @__PURE__ */ U(l.value), g = /* @__PURE__ */ U(i.value), h = /* @__PURE__ */ ag({}), y = /* @__PURE__ */ U(!1), T = I(() => {
|
|
12288
12288
|
const C = {
|
|
12289
12289
|
position: f.value,
|
|
12290
12290
|
left: "0",
|
|
@@ -12292,20 +12292,20 @@ function Wk(e, t, n) {
|
|
|
12292
12292
|
};
|
|
12293
12293
|
if (!u.value)
|
|
12294
12294
|
return C;
|
|
12295
|
-
const
|
|
12295
|
+
const P = ep(u.value, d.value), w = ep(u.value, p.value);
|
|
12296
12296
|
return c.value ? {
|
|
12297
12297
|
...C,
|
|
12298
|
-
transform: "translate(" +
|
|
12298
|
+
transform: "translate(" + P + "px, " + w + "px)",
|
|
12299
12299
|
...wm(u.value) >= 1.5 && {
|
|
12300
12300
|
willChange: "transform"
|
|
12301
12301
|
}
|
|
12302
12302
|
} : {
|
|
12303
12303
|
position: f.value,
|
|
12304
|
-
left:
|
|
12304
|
+
left: P + "px",
|
|
12305
12305
|
top: w + "px"
|
|
12306
12306
|
};
|
|
12307
12307
|
});
|
|
12308
|
-
let
|
|
12308
|
+
let $;
|
|
12309
12309
|
function S() {
|
|
12310
12310
|
if (s.value == null || u.value == null)
|
|
12311
12311
|
return;
|
|
@@ -12314,12 +12314,12 @@ function Wk(e, t, n) {
|
|
|
12314
12314
|
middleware: r.value,
|
|
12315
12315
|
placement: i.value,
|
|
12316
12316
|
strategy: l.value
|
|
12317
|
-
}).then((
|
|
12318
|
-
d.value =
|
|
12317
|
+
}).then((P) => {
|
|
12318
|
+
d.value = P.x, p.value = P.y, f.value = P.strategy, g.value = P.placement, h.value = P.middlewareData, y.value = C !== !1;
|
|
12319
12319
|
});
|
|
12320
12320
|
}
|
|
12321
12321
|
function x() {
|
|
12322
|
-
typeof
|
|
12322
|
+
typeof $ == "function" && ($(), $ = void 0);
|
|
12323
12323
|
}
|
|
12324
12324
|
function O() {
|
|
12325
12325
|
if (x(), o === void 0) {
|
|
@@ -12327,12 +12327,12 @@ function Wk(e, t, n) {
|
|
|
12327
12327
|
return;
|
|
12328
12328
|
}
|
|
12329
12329
|
if (s.value != null && u.value != null) {
|
|
12330
|
-
|
|
12330
|
+
$ = o(s.value, u.value, S);
|
|
12331
12331
|
return;
|
|
12332
12332
|
}
|
|
12333
12333
|
}
|
|
12334
12334
|
function D() {
|
|
12335
|
-
a.value || (
|
|
12335
|
+
a.value || (y.value = !1);
|
|
12336
12336
|
}
|
|
12337
12337
|
return ke([r, i, l, a], S, {
|
|
12338
12338
|
flush: "sync"
|
|
@@ -12345,8 +12345,8 @@ function Wk(e, t, n) {
|
|
|
12345
12345
|
y: /* @__PURE__ */ kn(p),
|
|
12346
12346
|
strategy: /* @__PURE__ */ kn(f),
|
|
12347
12347
|
placement: /* @__PURE__ */ kn(g),
|
|
12348
|
-
middlewareData: /* @__PURE__ */ kn(
|
|
12349
|
-
isPositioned: /* @__PURE__ */ kn(
|
|
12348
|
+
middlewareData: /* @__PURE__ */ kn(h),
|
|
12349
|
+
isPositioned: /* @__PURE__ */ kn(y),
|
|
12350
12350
|
floatingStyles: T,
|
|
12351
12351
|
update: S
|
|
12352
12352
|
};
|
|
@@ -12490,17 +12490,17 @@ const Sr = (e) => {
|
|
|
12490
12490
|
setup(e, { expose: t, emit: n }) {
|
|
12491
12491
|
const o = n, a = fn(), r = Qc(tp, null), i = I(() => e.zIndex ?? (r?.value != null ? r.value + 1 : 1e3));
|
|
12492
12492
|
Uc(tp, i);
|
|
12493
|
-
const l = Un(), c = Un(), s = /* @__PURE__ */ U(null), u = /* @__PURE__ */ U(null), d = /* @__PURE__ */ U(!1), p = I(() => s.value && s.value?.children[0] ? s.value?.children[0] : null), f = /* @__PURE__ */ U(null), g = /* @__PURE__ */ U(null),
|
|
12493
|
+
const l = Un(), c = Un(), s = /* @__PURE__ */ U(null), u = /* @__PURE__ */ U(null), d = /* @__PURE__ */ U(!1), p = I(() => s.value && s.value?.children[0] ? s.value?.children[0] : null), f = /* @__PURE__ */ U(null), g = /* @__PURE__ */ U(null), h = () => {
|
|
12494
12494
|
d.value ? x() : S();
|
|
12495
|
-
},
|
|
12496
|
-
|
|
12497
|
-
},
|
|
12498
|
-
T(), p.value && u.value && (
|
|
12495
|
+
}, y = /* @__PURE__ */ U(), T = () => {
|
|
12496
|
+
y.value && y.value();
|
|
12497
|
+
}, $ = () => {
|
|
12498
|
+
T(), p.value && u.value && (y.value = Vk(p.value, u.value, Y));
|
|
12499
12499
|
}, S = async () => {
|
|
12500
12500
|
if (!e.disabled) {
|
|
12501
12501
|
f.value && (clearTimeout(f.value), f.value = null);
|
|
12502
12502
|
const B = () => {
|
|
12503
|
-
|
|
12503
|
+
$(), d.value = !0;
|
|
12504
12504
|
};
|
|
12505
12505
|
e.trigger === "hover" && e.popoverDelay > 0 ? (g.value && clearTimeout(g.value), g.value = setTimeout(B, e.popoverDelay)) : B();
|
|
12506
12506
|
}
|
|
@@ -12509,19 +12509,19 @@ const Sr = (e) => {
|
|
|
12509
12509
|
T(), d.value = !1;
|
|
12510
12510
|
}, e.trigger === "hover" ? e.popoverTimeout : 0);
|
|
12511
12511
|
}, O = () => {
|
|
12512
|
-
|
|
12512
|
+
h();
|
|
12513
12513
|
}, D = () => {
|
|
12514
12514
|
o("popover-click"), e.closeOnPopoverClick && x();
|
|
12515
12515
|
}, C = (B) => {
|
|
12516
12516
|
if (!d.value)
|
|
12517
12517
|
return;
|
|
12518
|
-
const
|
|
12518
|
+
const z = B.target, Z = s.value?.contains(z), ee = u.value?.contains(z);
|
|
12519
12519
|
Z || ee || x();
|
|
12520
|
-
},
|
|
12521
|
-
...
|
|
12520
|
+
}, P = I(() => e.placement.trim().replace(/ /g, "-").replace(/[A-Z]+(?![a-z])|[A-Z]/g, (B, z) => (z ? "-" : "") + B.toLowerCase()).replace(/--+/g, "-").replace(/-+$/g, "")), { floatingStyles: w, placement: _, update: Y } = Wk(p, u, {
|
|
12521
|
+
...P.value === "auto" && { middleware: [Hk()] },
|
|
12522
12522
|
// when placement is auto just use autoPlacement middleware
|
|
12523
|
-
...
|
|
12524
|
-
placement:
|
|
12523
|
+
...P.value !== "auto" && {
|
|
12524
|
+
placement: P.value,
|
|
12525
12525
|
middleware: [
|
|
12526
12526
|
Uk(),
|
|
12527
12527
|
// Shifts the floating element to keep it in view.
|
|
@@ -12531,19 +12531,19 @@ const Sr = (e) => {
|
|
|
12531
12531
|
},
|
|
12532
12532
|
strategy: "fixed",
|
|
12533
12533
|
transform: !1
|
|
12534
|
-
}),
|
|
12535
|
-
marginBottom:
|
|
12534
|
+
}), v = I(() => Sr(e.offset)), b = I(() => _.value.includes("top") ? {
|
|
12535
|
+
marginBottom: v.value
|
|
12536
12536
|
} : _.value.includes("bottom") ? {
|
|
12537
|
-
marginTop:
|
|
12537
|
+
marginTop: v.value
|
|
12538
12538
|
} : _.value.includes("right") ? {
|
|
12539
|
-
marginLeft:
|
|
12539
|
+
marginLeft: v.value
|
|
12540
12540
|
} : _.value.includes("left") ? {
|
|
12541
|
-
marginRight:
|
|
12542
|
-
} : {}),
|
|
12541
|
+
marginRight: v.value
|
|
12542
|
+
} : {}), A = I(() => ({
|
|
12543
12543
|
...w.value,
|
|
12544
12544
|
zIndex: i.value
|
|
12545
12545
|
})), Q = I(() => ({
|
|
12546
|
-
...
|
|
12546
|
+
...b.value,
|
|
12547
12547
|
width: Sr(e.width),
|
|
12548
12548
|
maxWidth: Sr(e.maxWidth),
|
|
12549
12549
|
maxHeight: Sr(e.maxHeight)
|
|
@@ -12563,7 +12563,7 @@ const Sr = (e) => {
|
|
|
12563
12563
|
g.value && clearTimeout(g.value), f.value && clearTimeout(f.value), T();
|
|
12564
12564
|
}), ke(d, (B) => {
|
|
12565
12565
|
o(B ? "open" : "close");
|
|
12566
|
-
}), (B,
|
|
12566
|
+
}), (B, z) => (E(), ae(tt(e.tag), {
|
|
12567
12567
|
class: "k-popover",
|
|
12568
12568
|
onKeydown: py(sn(x, ["stop"]), ["esc"])
|
|
12569
12569
|
}, {
|
|
@@ -12600,7 +12600,7 @@ const Sr = (e) => {
|
|
|
12600
12600
|
"aria-labelledby": a.title || e.title ? te(c) : void 0,
|
|
12601
12601
|
class: ["popover", R.value],
|
|
12602
12602
|
role: "dialog",
|
|
12603
|
-
style:
|
|
12603
|
+
style: A.value,
|
|
12604
12604
|
"x-placement": te(_),
|
|
12605
12605
|
onClick: D
|
|
12606
12606
|
}), [
|
|
@@ -14041,8 +14041,8 @@ const lw = { class: "empty-state-content" }, sw = ["aria-hidden"], cw = {
|
|
|
14041
14041
|
e.selectionMenu && (s.value = f);
|
|
14042
14042
|
}, d = () => {
|
|
14043
14043
|
r.value?.hidePopover();
|
|
14044
|
-
}, p = (f, g,
|
|
14045
|
-
f.value !==
|
|
14044
|
+
}, p = (f, g, h) => {
|
|
14045
|
+
f.value !== h && (g(), o("toggleDropdown", f.value));
|
|
14046
14046
|
};
|
|
14047
14047
|
return ke(s, (f, g) => {
|
|
14048
14048
|
f && f !== g && o("change", f);
|
|
@@ -14060,15 +14060,15 @@ const lw = { class: "empty-state-content" }, sw = ["aria-hidden"], cw = {
|
|
|
14060
14060
|
class: Fe(["k-dropdown", { "selection-dropdown-menu": e.selectionMenu }])
|
|
14061
14061
|
}, [
|
|
14062
14062
|
re(J0, null, {
|
|
14063
|
-
default: J(({ toggle:
|
|
14063
|
+
default: J(({ toggle: h, isToggled: y }) => [
|
|
14064
14064
|
re(xm, Rt({ ref: "kPop" }, l, {
|
|
14065
14065
|
"close-on-popover-click": "",
|
|
14066
14066
|
"data-testid": "dropdown-popover",
|
|
14067
14067
|
"hide-close-icon": "",
|
|
14068
14068
|
offset: `var(--kui-space-20, ${te(cm)})`,
|
|
14069
|
-
onClose: () => p(
|
|
14070
|
-
onOpen: () => p(
|
|
14071
|
-
onPopoverClick: () => p(
|
|
14069
|
+
onClose: () => p(y, h, !1),
|
|
14070
|
+
onOpen: () => p(y, h, !0),
|
|
14071
|
+
onPopoverClick: () => p(y, h, !1)
|
|
14072
14072
|
}), {
|
|
14073
14073
|
content: J(() => [
|
|
14074
14074
|
le("ul", ww, [
|
|
@@ -14077,8 +14077,8 @@ const lw = { class: "empty-state-content" }, sw = ["aria-hidden"], cw = {
|
|
|
14077
14077
|
handleSelection: u,
|
|
14078
14078
|
items: e.items
|
|
14079
14079
|
}, () => [
|
|
14080
|
-
(E(!0), F(Xe, null, Ht(e.items, (T,
|
|
14081
|
-
key: `${T.label}-${
|
|
14080
|
+
(E(!0), F(Xe, null, Ht(e.items, (T, $) => (E(), ae(Tm, Rt({ ref_for: !0 }, T, {
|
|
14081
|
+
key: `${T.label}-${$}`,
|
|
14082
14082
|
item: T,
|
|
14083
14083
|
selected: e.selectionMenu && s.value?.value === T.value,
|
|
14084
14084
|
"selection-menu-child": e.selectionMenu,
|
|
@@ -14097,7 +14097,7 @@ const lw = { class: "empty-state-content" }, sw = ["aria-hidden"], cw = {
|
|
|
14097
14097
|
}, {
|
|
14098
14098
|
default: J(() => [
|
|
14099
14099
|
ie(f.$slots, "default", {
|
|
14100
|
-
isOpen:
|
|
14100
|
+
isOpen: y.value
|
|
14101
14101
|
}, () => [
|
|
14102
14102
|
c.value ? (E(), ae(Qt, {
|
|
14103
14103
|
key: 0,
|
|
@@ -14464,61 +14464,61 @@ const gc = 15, $w = {
|
|
|
14464
14464
|
setup(e, { emit: t }) {
|
|
14465
14465
|
const n = {
|
|
14466
14466
|
placement: "top"
|
|
14467
|
-
}, o = t, a = /* @__PURE__ */ U(null), r = /* @__PURE__ */ U(), i = /* @__PURE__ */ U(e.currentPage ? e.currentPage : 1), l = /* @__PURE__ */ U(e.initialPageSize ? e.initialPageSize : e.pageSizes[0] ?? gc), c = I(() => Math.ceil(e.totalCount / l.value)), s = e.pageSizes.map((
|
|
14468
|
-
label: `${
|
|
14467
|
+
}, o = t, a = /* @__PURE__ */ U(null), r = /* @__PURE__ */ U(), i = /* @__PURE__ */ U(e.currentPage ? e.currentPage : 1), l = /* @__PURE__ */ U(e.initialPageSize ? e.initialPageSize : e.pageSizes[0] ?? gc), c = I(() => Math.ceil(e.totalCount / l.value)), s = e.pageSizes.map((z, Z) => ({
|
|
14468
|
+
label: `${z}`,
|
|
14469
14469
|
key: `size-${Z}`,
|
|
14470
|
-
value:
|
|
14471
|
-
selected:
|
|
14470
|
+
value: z,
|
|
14471
|
+
selected: z === l.value
|
|
14472
14472
|
})), u = I(() => `${l.value} ${l.value === 1 ? "item per page" : " items per page"}`), d = /* @__PURE__ */ U(e.neighbors), p = /* @__PURE__ */ U(3), f = async () => (await Qo(), a.value ? a.value.scrollWidth > a.value.clientWidth : !1), g = async () => {
|
|
14473
|
-
await f() && (d.value > 1 || p.value > 1) && (d.value > 1 ? d.value-- : p.value > 1 && p.value--, _.value =
|
|
14474
|
-
},
|
|
14473
|
+
await f() && (d.value > 1 || p.value > 1) && (d.value > 1 ? d.value-- : p.value > 1 && p.value--, _.value = h(i.value, c.value, P.value, w.value));
|
|
14474
|
+
}, h = (z, Z, ee, Ve) => {
|
|
14475
14475
|
if (e.disablePageJump)
|
|
14476
14476
|
return [];
|
|
14477
14477
|
let ze = [...Array(Z).keys()].map((L) => L + 1);
|
|
14478
14478
|
const V = p.value + 2 + 2 * d.value;
|
|
14479
14479
|
return ze.length <= V || (ee ? ee && Ve ? ze = ze.filter(
|
|
14480
|
-
(L) => L >
|
|
14480
|
+
(L) => L > z - d.value - 1 && L < z + d.value + 1
|
|
14481
14481
|
) : ee && !Ve && (ze = ze.filter((L) => L > Z - d.value * 2 - p.value)) : ze = ze.filter((L) => L <= d.value * 2 + p.value)), ze;
|
|
14482
|
-
},
|
|
14483
|
-
const
|
|
14484
|
-
return
|
|
14485
|
-
}), x = I(() => `${
|
|
14482
|
+
}, y = /* @__PURE__ */ U(i.value === 1), T = /* @__PURE__ */ U(i.value === c.value), $ = I(() => (i.value - 1) * l.value + 1), S = I(() => {
|
|
14483
|
+
const z = $.value - 1 + l.value;
|
|
14484
|
+
return z > e.totalCount ? e.totalCount : z;
|
|
14485
|
+
}), x = I(() => `${$.value} to ${S.value}`), O = I(() => ` of ${e.totalCount}`), D = I(() => e.currentPage ? e.currentPage : i.value), C = I(() => 5 + 2 * d.value), P = I(() => c.value > C.value && D.value >= d.value + (p.value + 1)), w = I(() => c.value > C.value && D.value <= c.value - d.value - p.value), _ = /* @__PURE__ */ U(h(
|
|
14486
14486
|
D.value,
|
|
14487
14487
|
c.value,
|
|
14488
|
-
|
|
14488
|
+
P.value,
|
|
14489
14489
|
w.value
|
|
14490
14490
|
)), Y = () => {
|
|
14491
|
-
i.value++,
|
|
14492
|
-
},
|
|
14493
|
-
i.value--,
|
|
14494
|
-
},
|
|
14495
|
-
i.value =
|
|
14496
|
-
},
|
|
14497
|
-
const
|
|
14498
|
-
T.value =
|
|
14491
|
+
i.value++, A();
|
|
14492
|
+
}, v = () => {
|
|
14493
|
+
i.value--, A();
|
|
14494
|
+
}, b = (z) => {
|
|
14495
|
+
i.value = z, A();
|
|
14496
|
+
}, A = () => {
|
|
14497
|
+
const z = (i.value - 1) * l.value + l.value;
|
|
14498
|
+
T.value = z >= e.totalCount, y.value = i.value === 1, _.value = h(i.value, c.value, P.value, w.value), o("pageChange", {
|
|
14499
14499
|
page: i.value,
|
|
14500
14500
|
pageCount: c.value,
|
|
14501
|
-
firstItem:
|
|
14501
|
+
firstItem: $.value,
|
|
14502
14502
|
lastItem: S.value,
|
|
14503
|
-
visibleItems: e.items.slice(
|
|
14503
|
+
visibleItems: e.items.slice($.value - 1, S.value)
|
|
14504
14504
|
});
|
|
14505
|
-
}, Q = (
|
|
14506
|
-
l.value !==
|
|
14505
|
+
}, Q = (z) => {
|
|
14506
|
+
l.value !== z.value && (l.value = z.value, o("pageSizeChange", {
|
|
14507
14507
|
pageSize: l.value,
|
|
14508
14508
|
pageCount: c.value
|
|
14509
|
-
}), e.currentPage !== 1 &&
|
|
14509
|
+
}), e.currentPage !== 1 && b(1));
|
|
14510
14510
|
}, R = () => {
|
|
14511
14511
|
o("getNextOffset");
|
|
14512
14512
|
}, B = () => {
|
|
14513
14513
|
o("getPreviousOffset");
|
|
14514
14514
|
};
|
|
14515
|
-
return ke(() => e.currentPage, (
|
|
14516
|
-
|
|
14517
|
-
}), ke(c, (
|
|
14518
|
-
|
|
14515
|
+
return ke(() => e.currentPage, (z, Z) => {
|
|
14516
|
+
z !== Z && z && b(z);
|
|
14517
|
+
}), ke(c, (z, Z) => {
|
|
14518
|
+
z !== Z && (T.value = i.value === z, _.value = h(
|
|
14519
14519
|
D.value,
|
|
14520
|
-
|
|
14521
|
-
|
|
14520
|
+
z,
|
|
14521
|
+
P.value,
|
|
14522
14522
|
w.value
|
|
14523
14523
|
));
|
|
14524
14524
|
}), ke(_, () => {
|
|
@@ -14527,7 +14527,7 @@ const gc = 15, $w = {
|
|
|
14527
14527
|
!e.disablePageJump && !e.offset && (r.value = Aw.create(g), r.value.observe(a.value));
|
|
14528
14528
|
}), Rl(() => {
|
|
14529
14529
|
!e.disablePageJump && !e.offset && r.value?.unobserve(a.value);
|
|
14530
|
-
}), (
|
|
14530
|
+
}), (z, Z) => (E(), F("nav", {
|
|
14531
14531
|
ref_key: "kPaginationElement",
|
|
14532
14532
|
ref: a,
|
|
14533
14533
|
class: Fe(["k-pagination", { "page-jump": !e.disablePageJump && !e.offset }]),
|
|
@@ -14551,11 +14551,11 @@ const gc = 15, $w = {
|
|
|
14551
14551
|
"aria-label": "Go to the previous page",
|
|
14552
14552
|
class: "pagination-button arrow",
|
|
14553
14553
|
"data-testid": "previous-button",
|
|
14554
|
-
disabled:
|
|
14554
|
+
disabled: y.value,
|
|
14555
14555
|
icon: "",
|
|
14556
14556
|
size: "small",
|
|
14557
14557
|
type: "button",
|
|
14558
|
-
onClick:
|
|
14558
|
+
onClick: v
|
|
14559
14559
|
}, {
|
|
14560
14560
|
default: J(() => [
|
|
14561
14561
|
re(te(Am), {
|
|
@@ -14566,16 +14566,16 @@ const gc = 15, $w = {
|
|
|
14566
14566
|
_: 1
|
|
14567
14567
|
}, 8, ["disabled"])
|
|
14568
14568
|
]),
|
|
14569
|
-
!e.disablePageJump &&
|
|
14569
|
+
!e.disablePageJump && P.value ? (E(), F("li", Ow, [
|
|
14570
14570
|
le("button", {
|
|
14571
14571
|
"aria-label": "Go to the first page",
|
|
14572
14572
|
class: "pagination-button",
|
|
14573
14573
|
"data-testid": "page-1-button",
|
|
14574
14574
|
type: "button",
|
|
14575
|
-
onClick: Z[0] || (Z[0] = (ee) =>
|
|
14575
|
+
onClick: Z[0] || (Z[0] = (ee) => b(1))
|
|
14576
14576
|
}, " 1 ")
|
|
14577
14577
|
])) : de("", !0),
|
|
14578
|
-
!e.disablePageJump &&
|
|
14578
|
+
!e.disablePageJump && P.value ? (E(), F("li", Nw, " ... ")) : de("", !0),
|
|
14579
14579
|
(E(!0), F(Xe, null, Ht(_.value, (ee) => (E(), F("li", { key: ee }, [
|
|
14580
14580
|
le("button", {
|
|
14581
14581
|
"aria-current": ee == D.value && "page" || void 0,
|
|
@@ -14583,7 +14583,7 @@ const gc = 15, $w = {
|
|
|
14583
14583
|
class: Fe(["pagination-button", { active: ee == D.value }]),
|
|
14584
14584
|
"data-testid": `page-${ee}-button`,
|
|
14585
14585
|
type: "button",
|
|
14586
|
-
onClick: (Ve) =>
|
|
14586
|
+
onClick: (Ve) => b(ee)
|
|
14587
14587
|
}, De(ee), 11, Mw)
|
|
14588
14588
|
]))), 128)),
|
|
14589
14589
|
!e.disablePageJump && w.value ? (E(), F("li", Rw, " ... ")) : de("", !0),
|
|
@@ -14593,7 +14593,7 @@ const gc = 15, $w = {
|
|
|
14593
14593
|
class: "pagination-button",
|
|
14594
14594
|
"data-testid": "last-button",
|
|
14595
14595
|
type: "button",
|
|
14596
|
-
onClick: Z[1] || (Z[1] = (ee) =>
|
|
14596
|
+
onClick: Z[1] || (Z[1] = (ee) => b(c.value))
|
|
14597
14597
|
}, De(c.value), 1)
|
|
14598
14598
|
])) : de("", !0),
|
|
14599
14599
|
le("li", null, [
|
|
@@ -14972,21 +14972,21 @@ const gc = 15, $w = {
|
|
|
14972
14972
|
emits: ["change", "input", "update:modelValue"],
|
|
14973
14973
|
setup(e, { emit: t }) {
|
|
14974
14974
|
const n = t, o = fn(), a = Wa(), r = Un(), i = I(() => a.id ? String(a.id) : r), l = () => !!(e.label || o.default), c = I(() => a?.disabled !== void 0 && String(a?.disabled) !== "false"), s = () => l() && (!!e.description || !!o.description), u = () => !!o.tooltip, d = I(() => {
|
|
14975
|
-
const
|
|
14976
|
-
return delete
|
|
14975
|
+
const h = { ...a };
|
|
14976
|
+
return delete h.class, h.checked = e.modelValue, h.indeterminate !== void 0 && String(h.indeterminate) !== "false" && !e.modelValue ? (delete h.checked, h.indeterminate = !0) : delete h.indeterminate, h;
|
|
14977
14977
|
}), p = () => ({
|
|
14978
14978
|
disabled: c.value,
|
|
14979
14979
|
"has-description": s(),
|
|
14980
14980
|
"input-error": e.error
|
|
14981
14981
|
}), f = I(() => d.value.indeterminate !== void 0 && String(d.value.indeterminate) !== "false");
|
|
14982
|
-
ke(() => e.labelAttributes, (
|
|
14983
|
-
|
|
14982
|
+
ke(() => e.labelAttributes, (h) => {
|
|
14983
|
+
h.help && console.warn("KCheckbox: `help` property of `labelAttributes` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel");
|
|
14984
14984
|
}, { immediate: !0 });
|
|
14985
|
-
const g = (
|
|
14986
|
-
n("change",
|
|
14985
|
+
const g = (h) => {
|
|
14986
|
+
n("change", h.target.checked), n("input", h.target.checked), n("update:modelValue", h.target.checked);
|
|
14987
14987
|
};
|
|
14988
|
-
return (
|
|
14989
|
-
class: Fe(["k-checkbox", [
|
|
14988
|
+
return (h, y) => (E(), F("div", {
|
|
14989
|
+
class: Fe(["k-checkbox", [h.$attrs.class, p()]])
|
|
14990
14990
|
}, [
|
|
14991
14991
|
le("div", {
|
|
14992
14992
|
class: Fe(["checkbox-input-wrapper", { "has-label": l() }])
|
|
@@ -15020,7 +15020,7 @@ const gc = 15, $w = {
|
|
|
15020
15020
|
for: i.value
|
|
15021
15021
|
}), ja({
|
|
15022
15022
|
default: J(() => [
|
|
15023
|
-
ie(
|
|
15023
|
+
ie(h.$slots, "default", {}, () => [
|
|
15024
15024
|
Ge(De(e.label), 1)
|
|
15025
15025
|
], !0)
|
|
15026
15026
|
]),
|
|
@@ -15029,13 +15029,13 @@ const gc = 15, $w = {
|
|
|
15029
15029
|
u() ? {
|
|
15030
15030
|
name: "tooltip",
|
|
15031
15031
|
fn: J(() => [
|
|
15032
|
-
ie(
|
|
15032
|
+
ie(h.$slots, "tooltip", {}, void 0, !0)
|
|
15033
15033
|
]),
|
|
15034
15034
|
key: "0"
|
|
15035
15035
|
} : void 0
|
|
15036
15036
|
]), 1040, ["for"])) : de("", !0),
|
|
15037
15037
|
s() ? (E(), F("div", Ww, [
|
|
15038
|
-
ie(
|
|
15038
|
+
ie(h.$slots, "description", {}, () => [
|
|
15039
15039
|
le("p", null, De(e.description), 1)
|
|
15040
15040
|
], !0)
|
|
15041
15041
|
])) : de("", !0)
|
|
@@ -15294,27 +15294,27 @@ const gc = 15, $w = {
|
|
|
15294
15294
|
emits: ["input", "update:modelValue", "char-limit-exceeded"],
|
|
15295
15295
|
setup(e, { expose: t, emit: n }) {
|
|
15296
15296
|
Lr((R) => ({
|
|
15297
|
-
ee42c648:
|
|
15298
|
-
v677422af:
|
|
15297
|
+
ee42c648: v.value,
|
|
15298
|
+
v677422af: b.value
|
|
15299
15299
|
})), ke(() => e.hasError, (R) => {
|
|
15300
15300
|
R && console.warn("KInput: `hasError` prop is deprecated. Please use `error` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kinput");
|
|
15301
15301
|
}, { immediate: !0 }), ke(() => e.labelAttributes.help, (R) => {
|
|
15302
15302
|
R && console.warn("KInput: `help` property of `labelAttributes` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel");
|
|
15303
15303
|
});
|
|
15304
|
-
const o = n, a = fn(), r = Wc("inputElement"), i = /* @__PURE__ */ U(""), l = /* @__PURE__ */ U(!1), c = /* @__PURE__ */ U(0), { stripRequiredLabel: s } = Sm(), u = Wa(), d = I(() => u?.required !== void 0 && String(u?.required) !== "false"), p = Un(), f = I(() => u.id ? String(u.id) : p), g = Un(),
|
|
15304
|
+
const o = n, a = fn(), r = Wc("inputElement"), i = /* @__PURE__ */ U(""), l = /* @__PURE__ */ U(!1), c = /* @__PURE__ */ U(0), { stripRequiredLabel: s } = Sm(), u = Wa(), d = I(() => u?.required !== void 0 && String(u?.required) !== "false"), p = Un(), f = I(() => u.id ? String(u.id) : p), g = Un(), h = I(() => s(e.label, d.value)), y = () => !!(e.labelAttributes?.info || a["label-tooltip"]), T = I({
|
|
15305
15305
|
get() {
|
|
15306
15306
|
return e.modelValue;
|
|
15307
15307
|
},
|
|
15308
15308
|
set(R) {
|
|
15309
15309
|
C({ target: { value: R } });
|
|
15310
15310
|
}
|
|
15311
|
-
}),
|
|
15311
|
+
}), $ = I(() => {
|
|
15312
15312
|
const R = { ...u };
|
|
15313
15313
|
return delete R.class, delete R.input, delete R.onInput, R;
|
|
15314
15314
|
}), S = I(() => {
|
|
15315
15315
|
const R = i.value?.toString().length || 0, B = e.modelValue?.toString().length || 0;
|
|
15316
|
-
let
|
|
15317
|
-
return !l.value && B && (
|
|
15316
|
+
let z = R;
|
|
15317
|
+
return !l.value && B && (z = B), !!e.characterLimit && z > e.characterLimit;
|
|
15318
15318
|
}), x = I(() => S.value ? l.value ? `${i.value?.toString().length} / ${e.characterLimit}` : `${e.modelValue?.toString().length} / ${e.characterLimit}` : ""), O = () => !S.value && !e.error && !e.hasError && !!(e.help || a.help), D = I(() => S.value ? x.value : (e.error || e.hasError) && e.errorMessage ? e.errorMessage : e.help);
|
|
15319
15319
|
ke(S, (R, B) => {
|
|
15320
15320
|
R !== B && (o("char-limit-exceeded", {
|
|
@@ -15328,16 +15328,16 @@ const gc = 15, $w = {
|
|
|
15328
15328
|
});
|
|
15329
15329
|
const C = (R) => {
|
|
15330
15330
|
const B = JSON.parse(JSON.stringify(R?.target?.value));
|
|
15331
|
-
|
|
15332
|
-
},
|
|
15331
|
+
P(B);
|
|
15332
|
+
}, P = (R) => {
|
|
15333
15333
|
i.value = R, l.value = !0, o("input", R), o("update:modelValue", R);
|
|
15334
15334
|
}, w = () => i.value || l.value ? i.value : e.modelValue;
|
|
15335
15335
|
ke(() => e.error, (R, B) => {
|
|
15336
15336
|
R !== B && (c.value += 1);
|
|
15337
15337
|
});
|
|
15338
|
-
const _ = /* @__PURE__ */ U(null), Y = /* @__PURE__ */ U(null),
|
|
15338
|
+
const _ = /* @__PURE__ */ U(null), Y = /* @__PURE__ */ U(null), v = /* @__PURE__ */ U(ll), b = /* @__PURE__ */ U(ll), A = /* @__PURE__ */ U(!1), Q = I(() => e.type === "password" && A.value ? "text" : e.type);
|
|
15339
15339
|
return Pt(async () => {
|
|
15340
|
-
await Qo(), _.value?.offsetWidth && (
|
|
15340
|
+
await Qo(), _.value?.offsetWidth && (v.value = _.value.offsetWidth + "px"), Y.value?.offsetWidth && (b.value = Y.value.offsetWidth + "px");
|
|
15341
15341
|
}), t({
|
|
15342
15342
|
input: r
|
|
15343
15343
|
}), (R, B) => (E(), F("div", {
|
|
@@ -15348,11 +15348,11 @@ const gc = 15, $w = {
|
|
|
15348
15348
|
for: f.value
|
|
15349
15349
|
}, e.labelAttributes, { required: d.value }), ja({
|
|
15350
15350
|
default: J(() => [
|
|
15351
|
-
Ge(De(
|
|
15351
|
+
Ge(De(h.value) + " ", 1)
|
|
15352
15352
|
]),
|
|
15353
15353
|
_: 2
|
|
15354
15354
|
}, [
|
|
15355
|
-
|
|
15355
|
+
y() ? {
|
|
15356
15356
|
name: "tooltip",
|
|
15357
15357
|
fn: J(() => [
|
|
15358
15358
|
ie(R.$slots, "label-tooltip", {}, void 0, !0)
|
|
@@ -15378,7 +15378,7 @@ const gc = 15, $w = {
|
|
|
15378
15378
|
"aria-invalid": e.error || e.hasError || S.value ? "true" : void 0,
|
|
15379
15379
|
class: "input",
|
|
15380
15380
|
type: Q.value
|
|
15381
|
-
},
|
|
15381
|
+
}, $.value, {
|
|
15382
15382
|
value: w(),
|
|
15383
15383
|
onInput: C
|
|
15384
15384
|
}), null, 16, nx),
|
|
@@ -15390,16 +15390,16 @@ const gc = 15, $w = {
|
|
|
15390
15390
|
}, [
|
|
15391
15391
|
e.type === "password" && e.showPasswordMaskToggle ? (E(), F("button", {
|
|
15392
15392
|
key: 0,
|
|
15393
|
-
"aria-label": `${
|
|
15393
|
+
"aria-label": `${A.value ? "Hide" : "Show"} value`,
|
|
15394
15394
|
class: "mask-value-toggle-button",
|
|
15395
15395
|
type: "button",
|
|
15396
|
-
onClick: B[0] || (B[0] = sn((
|
|
15396
|
+
onClick: B[0] || (B[0] = sn((z) => A.value = !A.value, ["stop"])),
|
|
15397
15397
|
onMousedown: B[1] || (B[1] = sn(() => {
|
|
15398
15398
|
}, ["prevent"])),
|
|
15399
15399
|
onMouseup: B[2] || (B[2] = sn(() => {
|
|
15400
15400
|
}, ["prevent"]))
|
|
15401
15401
|
}, [
|
|
15402
|
-
|
|
15402
|
+
A.value ? (E(), ae(te(Xw), {
|
|
15403
15403
|
key: 0,
|
|
15404
15404
|
decorative: ""
|
|
15405
15405
|
})) : (E(), ae(te(tx), {
|
|
@@ -16002,24 +16002,24 @@ function LT(e, t, n, o, a, r) {
|
|
|
16002
16002
|
return s == t && u == e;
|
|
16003
16003
|
var d = -1, p = !0, f = n & BT ? new MT() : void 0;
|
|
16004
16004
|
for (r.set(e, t), r.set(t, e); ++d < l; ) {
|
|
16005
|
-
var g = e[d],
|
|
16005
|
+
var g = e[d], h = t[d];
|
|
16006
16006
|
if (o)
|
|
16007
|
-
var
|
|
16008
|
-
if (
|
|
16009
|
-
if (
|
|
16007
|
+
var y = i ? o(h, g, d, t, e, r) : o(g, h, d, e, t, r);
|
|
16008
|
+
if (y !== void 0) {
|
|
16009
|
+
if (y)
|
|
16010
16010
|
continue;
|
|
16011
16011
|
p = !1;
|
|
16012
16012
|
break;
|
|
16013
16013
|
}
|
|
16014
16014
|
if (f) {
|
|
16015
|
-
if (!RT(t, function(T,
|
|
16016
|
-
if (!PT(f,
|
|
16017
|
-
return f.push(
|
|
16015
|
+
if (!RT(t, function(T, $) {
|
|
16016
|
+
if (!PT(f, $) && (g === T || a(g, T, n, o, r)))
|
|
16017
|
+
return f.push($);
|
|
16018
16018
|
})) {
|
|
16019
16019
|
p = !1;
|
|
16020
16020
|
break;
|
|
16021
16021
|
}
|
|
16022
|
-
} else if (!(g ===
|
|
16022
|
+
} else if (!(g === h || a(g, h, n, o, r))) {
|
|
16023
16023
|
p = !1;
|
|
16024
16024
|
break;
|
|
16025
16025
|
}
|
|
@@ -16187,24 +16187,24 @@ function Q_(e, t, n, o, a, r) {
|
|
|
16187
16187
|
var f = r.get(e), g = r.get(t);
|
|
16188
16188
|
if (f && g)
|
|
16189
16189
|
return f == t && g == e;
|
|
16190
|
-
var
|
|
16190
|
+
var h = !0;
|
|
16191
16191
|
r.set(e, t), r.set(t, e);
|
|
16192
|
-
for (var
|
|
16192
|
+
for (var y = i; ++d < c; ) {
|
|
16193
16193
|
p = l[d];
|
|
16194
|
-
var T = e[p],
|
|
16194
|
+
var T = e[p], $ = t[p];
|
|
16195
16195
|
if (o)
|
|
16196
|
-
var S = i ? o(
|
|
16197
|
-
if (!(S === void 0 ? T ===
|
|
16198
|
-
|
|
16196
|
+
var S = i ? o($, T, p, t, e, r) : o(T, $, p, e, t, r);
|
|
16197
|
+
if (!(S === void 0 ? T === $ || a(T, $, n, o, r) : S)) {
|
|
16198
|
+
h = !1;
|
|
16199
16199
|
break;
|
|
16200
16200
|
}
|
|
16201
|
-
|
|
16201
|
+
y || (y = p == "constructor");
|
|
16202
16202
|
}
|
|
16203
|
-
if (
|
|
16203
|
+
if (h && !y) {
|
|
16204
16204
|
var x = e.constructor, O = t.constructor;
|
|
16205
|
-
x != O && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof O == "function" && O instanceof O) && (
|
|
16205
|
+
x != O && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof O == "function" && O instanceof O) && (h = !1);
|
|
16206
16206
|
}
|
|
16207
|
-
return r.delete(e), r.delete(t),
|
|
16207
|
+
return r.delete(e), r.delete(t), h;
|
|
16208
16208
|
}
|
|
16209
16209
|
var G_ = Q_, q_ = rr, W_ = In, K_ = q_(W_, "DataView"), Z_ = K_, J_ = rr, X_ = In, eA = J_(X_, "Promise"), tA = eA, nA = rr, oA = In, rA = nA(oA, "Set"), aA = rA, iA = rr, lA = In, sA = iA(lA, "WeakMap"), cA = sA, mc = Z_, hc = hu, vc = tA, bc = aA, yc = cA, Qm = Fr, Gr = zm, zp = "[object Map]", uA = "[object Object]", Bp = "[object Promise]", Lp = "[object Set]", jp = "[object WeakMap]", Fp = "[object DataView]", dA = Gr(mc), pA = Gr(hc), fA = Gr(vc), gA = Gr(bc), mA = Gr(yc), Bo = Qm;
|
|
16210
16210
|
(mc && Bo(new mc(new ArrayBuffer(1))) != Fp || hc && Bo(new hc()) != zp || vc && Bo(vc.resolve()) != Bp || bc && Bo(new bc()) != Lp || yc && Bo(new yc()) != jp) && (Bo = function(e) {
|
|
@@ -16239,8 +16239,8 @@ function SA(e, t, n, o, a, r) {
|
|
|
16239
16239
|
if (!(n & wA)) {
|
|
16240
16240
|
var f = u && Gp.call(e, "__wrapped__"), g = d && Gp.call(t, "__wrapped__");
|
|
16241
16241
|
if (f || g) {
|
|
16242
|
-
var
|
|
16243
|
-
return r || (r = new Ms()), a(
|
|
16242
|
+
var h = f ? e.value() : e, y = g ? t.value() : t;
|
|
16243
|
+
return r || (r = new Ms()), a(h, y, n, o, r);
|
|
16244
16244
|
}
|
|
16245
16245
|
}
|
|
16246
16246
|
return p ? (r || (r = new Ms()), yA(e, t, n, o, a, r)) : !1;
|
|
@@ -16889,10 +16889,10 @@ function uh(e, t) {
|
|
|
16889
16889
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
16890
16890
|
var g = /* @__PURE__ */ new Date(0);
|
|
16891
16891
|
g.setUTCFullYear(d + 1, 0, f), g.setUTCHours(0, 0, 0, 0);
|
|
16892
|
-
var
|
|
16893
|
-
|
|
16894
|
-
var T = Jo(
|
|
16895
|
-
return u.getTime() >=
|
|
16892
|
+
var h = Jo(g, t), y = /* @__PURE__ */ new Date(0);
|
|
16893
|
+
y.setUTCFullYear(d, 0, f), y.setUTCHours(0, 0, 0, 0);
|
|
16894
|
+
var T = Jo(y, t);
|
|
16895
|
+
return u.getTime() >= h.getTime() ? d + 1 : u.getTime() >= T.getTime() ? d : d - 1;
|
|
16896
16896
|
}
|
|
16897
16897
|
function U5(e, t) {
|
|
16898
16898
|
var n, o, a, r, i, l, c, s;
|
|
@@ -17775,8 +17775,8 @@ function Du(e, t, n) {
|
|
|
17775
17775
|
var d = es(), p = So((o = (a = (r = (i = n?.weekStartsOn) !== null && i !== void 0 ? i : n == null || (l = n.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && r !== void 0 ? r : d.weekStartsOn) !== null && a !== void 0 ? a : (s = d.locale) === null || s === void 0 || (u = s.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
17776
17776
|
if (!(p >= 0 && p <= 6))
|
|
17777
17777
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
17778
|
-
var f = On(e), g = So(t),
|
|
17779
|
-
return f.setUTCDate(f.getUTCDate() +
|
|
17778
|
+
var f = On(e), g = So(t), h = f.getUTCDay(), y = g % 7, T = (y + 7) % 7, $ = (T < p ? 7 : 0) + g - h;
|
|
17779
|
+
return f.setUTCDate(f.getUTCDate() + $), f;
|
|
17780
17780
|
}
|
|
17781
17781
|
var y3 = /* @__PURE__ */ (function(e) {
|
|
17782
17782
|
_e(n, e);
|
|
@@ -19011,64 +19011,64 @@ var Vn = {
|
|
|
19011
19011
|
delayInitialFocusTimer: void 0,
|
|
19012
19012
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
19013
19013
|
recentNavEvent: void 0
|
|
19014
|
-
}, i, l = function(
|
|
19015
|
-
return
|
|
19016
|
-
}, c = function(
|
|
19017
|
-
var
|
|
19014
|
+
}, i, l = function(v, b, A) {
|
|
19015
|
+
return v && v[b] !== void 0 ? v[b] : a[A || b];
|
|
19016
|
+
}, c = function(v, b) {
|
|
19017
|
+
var A = typeof b?.composedPath == "function" ? b.composedPath() : void 0;
|
|
19018
19018
|
return r.containerGroups.findIndex(function(Q) {
|
|
19019
19019
|
var R = Q.container, B = Q.tabbableNodes;
|
|
19020
|
-
return R.contains(
|
|
19021
|
-
return
|
|
19020
|
+
return R.contains(v) || A?.includes(R) || B.find(function(z) {
|
|
19021
|
+
return z === v;
|
|
19022
19022
|
});
|
|
19023
19023
|
});
|
|
19024
|
-
}, s = function(
|
|
19025
|
-
var
|
|
19026
|
-
if (typeof
|
|
19027
|
-
if (
|
|
19028
|
-
return
|
|
19029
|
-
throw new Error("`".concat(
|
|
19030
|
-
}
|
|
19031
|
-
var Z =
|
|
19032
|
-
if (typeof
|
|
19024
|
+
}, s = function(v) {
|
|
19025
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, A = b.hasFallback, Q = A === void 0 ? !1 : A, R = b.params, B = R === void 0 ? [] : R, z = a[v];
|
|
19026
|
+
if (typeof z == "function" && (z = z.apply(void 0, rI(B))), z === !0 && (z = void 0), !z) {
|
|
19027
|
+
if (z === void 0 || z === !1)
|
|
19028
|
+
return z;
|
|
19029
|
+
throw new Error("`".concat(v, "` was specified but was not a node, or did not return a node"));
|
|
19030
|
+
}
|
|
19031
|
+
var Z = z;
|
|
19032
|
+
if (typeof z == "string") {
|
|
19033
19033
|
try {
|
|
19034
|
-
Z = n.querySelector(
|
|
19034
|
+
Z = n.querySelector(z);
|
|
19035
19035
|
} catch (ee) {
|
|
19036
|
-
throw new Error("`".concat(
|
|
19036
|
+
throw new Error("`".concat(v, '` appears to be an invalid selector; error="').concat(ee.message, '"'));
|
|
19037
19037
|
}
|
|
19038
19038
|
if (!Z && !Q)
|
|
19039
|
-
throw new Error("`".concat(
|
|
19039
|
+
throw new Error("`".concat(v, "` as selector refers to no known node"));
|
|
19040
19040
|
}
|
|
19041
19041
|
return Z;
|
|
19042
19042
|
}, u = function() {
|
|
19043
|
-
var
|
|
19043
|
+
var v = s("initialFocus", {
|
|
19044
19044
|
hasFallback: !0
|
|
19045
19045
|
});
|
|
19046
|
-
if (
|
|
19046
|
+
if (v === !1)
|
|
19047
19047
|
return !1;
|
|
19048
|
-
if (
|
|
19048
|
+
if (v === void 0 || v && !Rs(v, a.tabbableOptions))
|
|
19049
19049
|
if (c(n.activeElement) >= 0)
|
|
19050
|
-
|
|
19050
|
+
v = n.activeElement;
|
|
19051
19051
|
else {
|
|
19052
|
-
var
|
|
19053
|
-
|
|
19052
|
+
var b = r.tabbableGroups[0], A = b && b.firstTabbableNode;
|
|
19053
|
+
v = A || s("fallbackFocus");
|
|
19054
19054
|
}
|
|
19055
|
-
else
|
|
19056
|
-
if (!
|
|
19055
|
+
else v === null && (v = s("fallbackFocus"));
|
|
19056
|
+
if (!v)
|
|
19057
19057
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
19058
|
-
return
|
|
19058
|
+
return v;
|
|
19059
19059
|
}, d = function() {
|
|
19060
|
-
if (r.containerGroups = r.containers.map(function(
|
|
19061
|
-
var
|
|
19060
|
+
if (r.containerGroups = r.containers.map(function(v) {
|
|
19061
|
+
var b = Z3(v, a.tabbableOptions), A = J3(v, a.tabbableOptions), Q = b.length > 0 ? b[0] : void 0, R = b.length > 0 ? b[b.length - 1] : void 0, B = A.find(function(ee) {
|
|
19062
19062
|
return gr(ee);
|
|
19063
|
-
}),
|
|
19063
|
+
}), z = A.slice().reverse().find(function(ee) {
|
|
19064
19064
|
return gr(ee);
|
|
19065
|
-
}), Z = !!
|
|
19065
|
+
}), Z = !!b.find(function(ee) {
|
|
19066
19066
|
return Fo(ee) > 0;
|
|
19067
19067
|
});
|
|
19068
19068
|
return {
|
|
19069
|
-
container:
|
|
19070
|
-
tabbableNodes:
|
|
19071
|
-
focusableNodes:
|
|
19069
|
+
container: v,
|
|
19070
|
+
tabbableNodes: b,
|
|
19071
|
+
focusableNodes: A,
|
|
19072
19072
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
19073
19073
|
posTabIndexesFound: Z,
|
|
19074
19074
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -19085,7 +19085,7 @@ var Vn = {
|
|
|
19085
19085
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
19086
19086
|
firstDomTabbableNode: B,
|
|
19087
19087
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
19088
|
-
lastDomTabbableNode:
|
|
19088
|
+
lastDomTabbableNode: z,
|
|
19089
19089
|
/**
|
|
19090
19090
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
19091
19091
|
* in this container, if any.
|
|
@@ -19095,75 +19095,75 @@ var Vn = {
|
|
|
19095
19095
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
19096
19096
|
*/
|
|
19097
19097
|
nextTabbableNode: function(ee) {
|
|
19098
|
-
var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ze =
|
|
19099
|
-
return ze < 0 ? Ve ?
|
|
19098
|
+
var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ze = b.indexOf(ee);
|
|
19099
|
+
return ze < 0 ? Ve ? A.slice(A.indexOf(ee) + 1).find(function(V) {
|
|
19100
19100
|
return gr(V);
|
|
19101
|
-
}) :
|
|
19101
|
+
}) : A.slice(0, A.indexOf(ee)).reverse().find(function(V) {
|
|
19102
19102
|
return gr(V);
|
|
19103
|
-
}) :
|
|
19103
|
+
}) : b[ze + (Ve ? 1 : -1)];
|
|
19104
19104
|
}
|
|
19105
19105
|
};
|
|
19106
|
-
}), r.tabbableGroups = r.containerGroups.filter(function(
|
|
19107
|
-
return
|
|
19106
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(v) {
|
|
19107
|
+
return v.tabbableNodes.length > 0;
|
|
19108
19108
|
}), r.tabbableGroups.length <= 0 && !s("fallbackFocus"))
|
|
19109
19109
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
19110
|
-
if (r.containerGroups.find(function(
|
|
19111
|
-
return
|
|
19110
|
+
if (r.containerGroups.find(function(v) {
|
|
19111
|
+
return v.posTabIndexesFound;
|
|
19112
19112
|
}) && r.containerGroups.length > 1)
|
|
19113
19113
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
19114
|
-
}, p = function(
|
|
19115
|
-
var
|
|
19116
|
-
if (
|
|
19117
|
-
return
|
|
19118
|
-
}, f = function(
|
|
19119
|
-
if (
|
|
19120
|
-
if (!
|
|
19114
|
+
}, p = function(v) {
|
|
19115
|
+
var b = v.activeElement;
|
|
19116
|
+
if (b)
|
|
19117
|
+
return b.shadowRoot && b.shadowRoot.activeElement !== null ? p(b.shadowRoot) : b;
|
|
19118
|
+
}, f = function(v) {
|
|
19119
|
+
if (v !== !1 && v !== p(document)) {
|
|
19120
|
+
if (!v || !v.focus) {
|
|
19121
19121
|
f(u());
|
|
19122
19122
|
return;
|
|
19123
19123
|
}
|
|
19124
|
-
|
|
19124
|
+
v.focus({
|
|
19125
19125
|
preventScroll: !!a.preventScroll
|
|
19126
|
-
}), r.mostRecentlyFocusedNode =
|
|
19126
|
+
}), r.mostRecentlyFocusedNode = v, lI(v) && v.select();
|
|
19127
19127
|
}
|
|
19128
|
-
}, g = function(
|
|
19129
|
-
var
|
|
19130
|
-
params: [
|
|
19128
|
+
}, g = function(v) {
|
|
19129
|
+
var b = s("setReturnFocus", {
|
|
19130
|
+
params: [v]
|
|
19131
19131
|
});
|
|
19132
|
-
return
|
|
19133
|
-
},
|
|
19134
|
-
var
|
|
19135
|
-
|
|
19132
|
+
return b || (b === !1 ? !1 : v);
|
|
19133
|
+
}, h = function(v) {
|
|
19134
|
+
var b = v.target, A = v.event, Q = v.isBackward, R = Q === void 0 ? !1 : Q;
|
|
19135
|
+
b = b || $i(A), d();
|
|
19136
19136
|
var B = null;
|
|
19137
19137
|
if (r.tabbableGroups.length > 0) {
|
|
19138
|
-
var
|
|
19139
|
-
if (
|
|
19138
|
+
var z = c(b, A), Z = z >= 0 ? r.containerGroups[z] : void 0;
|
|
19139
|
+
if (z < 0)
|
|
19140
19140
|
R ? B = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : B = r.tabbableGroups[0].firstTabbableNode;
|
|
19141
19141
|
else if (R) {
|
|
19142
19142
|
var ee = r.tabbableGroups.findIndex(function(qe) {
|
|
19143
19143
|
var Te = qe.firstTabbableNode;
|
|
19144
|
-
return
|
|
19144
|
+
return b === Te;
|
|
19145
19145
|
});
|
|
19146
|
-
if (ee < 0 && (Z.container ===
|
|
19146
|
+
if (ee < 0 && (Z.container === b || Rs(b, a.tabbableOptions) && !gr(b, a.tabbableOptions) && !Z.nextTabbableNode(b, !1)) && (ee = z), ee >= 0) {
|
|
19147
19147
|
var Ve = ee === 0 ? r.tabbableGroups.length - 1 : ee - 1, ze = r.tabbableGroups[Ve];
|
|
19148
|
-
B = Fo(
|
|
19149
|
-
} else Aa(
|
|
19148
|
+
B = Fo(b) >= 0 ? ze.lastTabbableNode : ze.lastDomTabbableNode;
|
|
19149
|
+
} else Aa(A) || (B = Z.nextTabbableNode(b, !1));
|
|
19150
19150
|
} else {
|
|
19151
19151
|
var V = r.tabbableGroups.findIndex(function(qe) {
|
|
19152
19152
|
var Te = qe.lastTabbableNode;
|
|
19153
|
-
return
|
|
19153
|
+
return b === Te;
|
|
19154
19154
|
});
|
|
19155
|
-
if (V < 0 && (Z.container ===
|
|
19155
|
+
if (V < 0 && (Z.container === b || Rs(b, a.tabbableOptions) && !gr(b, a.tabbableOptions) && !Z.nextTabbableNode(b)) && (V = z), V >= 0) {
|
|
19156
19156
|
var L = V === r.tabbableGroups.length - 1 ? 0 : V + 1, oe = r.tabbableGroups[L];
|
|
19157
|
-
B = Fo(
|
|
19158
|
-
} else Aa(
|
|
19157
|
+
B = Fo(b) >= 0 ? oe.firstTabbableNode : oe.firstDomTabbableNode;
|
|
19158
|
+
} else Aa(A) || (B = Z.nextTabbableNode(b));
|
|
19159
19159
|
}
|
|
19160
19160
|
} else
|
|
19161
19161
|
B = s("fallbackFocus");
|
|
19162
19162
|
return B;
|
|
19163
|
-
},
|
|
19164
|
-
var
|
|
19165
|
-
if (!(c(
|
|
19166
|
-
if (va(a.clickOutsideDeactivates,
|
|
19163
|
+
}, y = function(v) {
|
|
19164
|
+
var b = $i(v);
|
|
19165
|
+
if (!(c(b, v) >= 0)) {
|
|
19166
|
+
if (va(a.clickOutsideDeactivates, v)) {
|
|
19167
19167
|
i.deactivate({
|
|
19168
19168
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
19169
19169
|
// which will result in the outside click setting focus to the node
|
|
@@ -19175,23 +19175,23 @@ var Vn = {
|
|
|
19175
19175
|
});
|
|
19176
19176
|
return;
|
|
19177
19177
|
}
|
|
19178
|
-
va(a.allowOutsideClick,
|
|
19178
|
+
va(a.allowOutsideClick, v) || v.preventDefault();
|
|
19179
19179
|
}
|
|
19180
|
-
}, T = function(
|
|
19181
|
-
var
|
|
19182
|
-
if (
|
|
19183
|
-
|
|
19180
|
+
}, T = function(v) {
|
|
19181
|
+
var b = $i(v), A = c(b, v) >= 0;
|
|
19182
|
+
if (A || b instanceof Document)
|
|
19183
|
+
A && (r.mostRecentlyFocusedNode = b);
|
|
19184
19184
|
else {
|
|
19185
|
-
|
|
19185
|
+
v.stopImmediatePropagation();
|
|
19186
19186
|
var Q, R = !0;
|
|
19187
19187
|
if (r.mostRecentlyFocusedNode)
|
|
19188
19188
|
if (Fo(r.mostRecentlyFocusedNode) > 0) {
|
|
19189
|
-
var B = c(r.mostRecentlyFocusedNode),
|
|
19190
|
-
if (
|
|
19191
|
-
var Z =
|
|
19189
|
+
var B = c(r.mostRecentlyFocusedNode), z = r.containerGroups[B].tabbableNodes;
|
|
19190
|
+
if (z.length > 0) {
|
|
19191
|
+
var Z = z.findIndex(function(ee) {
|
|
19192
19192
|
return ee === r.mostRecentlyFocusedNode;
|
|
19193
19193
|
});
|
|
19194
|
-
Z >= 0 && (a.isKeyForward(r.recentNavEvent) ? Z + 1 <
|
|
19194
|
+
Z >= 0 && (a.isKeyForward(r.recentNavEvent) ? Z + 1 < z.length && (Q = z[Z + 1], R = !1) : Z - 1 >= 0 && (Q = z[Z - 1], R = !1));
|
|
19195
19195
|
}
|
|
19196
19196
|
} else
|
|
19197
19197
|
r.containerGroups.some(function(ee) {
|
|
@@ -19201,7 +19201,7 @@ var Vn = {
|
|
|
19201
19201
|
}) || (R = !1);
|
|
19202
19202
|
else
|
|
19203
19203
|
R = !1;
|
|
19204
|
-
R && (Q =
|
|
19204
|
+
R && (Q = h({
|
|
19205
19205
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
19206
19206
|
// outside the trap causing the focus escape we're trying to fix)
|
|
19207
19207
|
target: r.mostRecentlyFocusedNode,
|
|
@@ -19209,29 +19209,29 @@ var Vn = {
|
|
|
19209
19209
|
})), f(Q || r.mostRecentlyFocusedNode || u());
|
|
19210
19210
|
}
|
|
19211
19211
|
r.recentNavEvent = void 0;
|
|
19212
|
-
},
|
|
19213
|
-
var
|
|
19214
|
-
r.recentNavEvent =
|
|
19215
|
-
var
|
|
19216
|
-
event:
|
|
19217
|
-
isBackward:
|
|
19212
|
+
}, $ = function(v) {
|
|
19213
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
19214
|
+
r.recentNavEvent = v;
|
|
19215
|
+
var A = h({
|
|
19216
|
+
event: v,
|
|
19217
|
+
isBackward: b
|
|
19218
19218
|
});
|
|
19219
|
-
|
|
19220
|
-
}, S = function(
|
|
19221
|
-
(a.isKeyForward(
|
|
19222
|
-
}, x = function(
|
|
19223
|
-
sI(
|
|
19224
|
-
}, O = function(
|
|
19225
|
-
var
|
|
19226
|
-
c(
|
|
19219
|
+
A && (Aa(v) && v.preventDefault(), f(A));
|
|
19220
|
+
}, S = function(v) {
|
|
19221
|
+
(a.isKeyForward(v) || a.isKeyBackward(v)) && $(v, a.isKeyBackward(v));
|
|
19222
|
+
}, x = function(v) {
|
|
19223
|
+
sI(v) && va(a.escapeDeactivates, v) !== !1 && (v.preventDefault(), i.deactivate());
|
|
19224
|
+
}, O = function(v) {
|
|
19225
|
+
var b = $i(v);
|
|
19226
|
+
c(b, v) >= 0 || va(a.clickOutsideDeactivates, v) || va(a.allowOutsideClick, v) || (v.preventDefault(), v.stopImmediatePropagation());
|
|
19227
19227
|
}, D = function() {
|
|
19228
19228
|
if (r.active)
|
|
19229
19229
|
return Vn.activateTrap(o, i), r.delayInitialFocusTimer = a.delayInitialFocus ? df(function() {
|
|
19230
19230
|
f(u());
|
|
19231
|
-
}) : f(u()), n.addEventListener("focusin", T, !0), n.addEventListener("mousedown",
|
|
19231
|
+
}) : f(u()), n.addEventListener("focusin", T, !0), n.addEventListener("mousedown", y, {
|
|
19232
19232
|
capture: !0,
|
|
19233
19233
|
passive: !1
|
|
19234
|
-
}), n.addEventListener("touchstart",
|
|
19234
|
+
}), n.addEventListener("touchstart", y, {
|
|
19235
19235
|
capture: !0,
|
|
19236
19236
|
passive: !1
|
|
19237
19237
|
}), n.addEventListener("click", O, {
|
|
@@ -19241,22 +19241,22 @@ var Vn = {
|
|
|
19241
19241
|
capture: !0,
|
|
19242
19242
|
passive: !1
|
|
19243
19243
|
}), n.addEventListener("keydown", x), i;
|
|
19244
|
-
}, C = function(
|
|
19244
|
+
}, C = function(v) {
|
|
19245
19245
|
r.active && !r.paused && i._setSubtreeIsolation(!1), r.adjacentElements.clear(), r.alreadySilent.clear();
|
|
19246
|
-
var
|
|
19246
|
+
var b = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set(), Q = sf(v), R;
|
|
19247
19247
|
try {
|
|
19248
19248
|
for (Q.s(); !(R = Q.n()).done; ) {
|
|
19249
19249
|
var B = R.value;
|
|
19250
|
-
|
|
19251
|
-
for (var
|
|
19252
|
-
|
|
19250
|
+
b.add(B);
|
|
19251
|
+
for (var z = typeof ShadowRoot < "u" && B.getRootNode() instanceof ShadowRoot, Z = B; Z; ) {
|
|
19252
|
+
b.add(Z);
|
|
19253
19253
|
var ee = Z.parentElement, Ve = [];
|
|
19254
|
-
ee ? Ve = ee.children : !ee &&
|
|
19254
|
+
ee ? Ve = ee.children : !ee && z && (Ve = Z.getRootNode().children, ee = Z.getRootNode().host, z = typeof ShadowRoot < "u" && ee.getRootNode() instanceof ShadowRoot);
|
|
19255
19255
|
var ze = sf(Ve), V;
|
|
19256
19256
|
try {
|
|
19257
19257
|
for (ze.s(); !(V = ze.n()).done; ) {
|
|
19258
19258
|
var L = V.value;
|
|
19259
|
-
|
|
19259
|
+
A.add(L);
|
|
19260
19260
|
}
|
|
19261
19261
|
} catch (oe) {
|
|
19262
19262
|
ze.e(oe);
|
|
@@ -19271,23 +19271,23 @@ var Vn = {
|
|
|
19271
19271
|
} finally {
|
|
19272
19272
|
Q.f();
|
|
19273
19273
|
}
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
}), r.adjacentElements =
|
|
19277
|
-
},
|
|
19274
|
+
b.forEach(function(oe) {
|
|
19275
|
+
A.delete(oe);
|
|
19276
|
+
}), r.adjacentElements = A;
|
|
19277
|
+
}, P = function() {
|
|
19278
19278
|
if (r.active)
|
|
19279
|
-
return n.removeEventListener("focusin", T, !0), n.removeEventListener("mousedown",
|
|
19280
|
-
}, w = function(
|
|
19281
|
-
var
|
|
19282
|
-
var Q = Array.from(
|
|
19279
|
+
return n.removeEventListener("focusin", T, !0), n.removeEventListener("mousedown", y, !0), n.removeEventListener("touchstart", y, !0), n.removeEventListener("click", O, !0), n.removeEventListener("keydown", S, !0), n.removeEventListener("keydown", x), i;
|
|
19280
|
+
}, w = function(v) {
|
|
19281
|
+
var b = v.some(function(A) {
|
|
19282
|
+
var Q = Array.from(A.removedNodes);
|
|
19283
19283
|
return Q.some(function(R) {
|
|
19284
19284
|
return R === r.mostRecentlyFocusedNode;
|
|
19285
19285
|
});
|
|
19286
19286
|
});
|
|
19287
|
-
|
|
19287
|
+
b && f(u());
|
|
19288
19288
|
}, _ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(w) : void 0, Y = function() {
|
|
19289
|
-
_ && (_.disconnect(), r.active && !r.paused && r.containers.map(function(
|
|
19290
|
-
_.observe(
|
|
19289
|
+
_ && (_.disconnect(), r.active && !r.paused && r.containers.map(function(v) {
|
|
19290
|
+
_.observe(v, {
|
|
19291
19291
|
subtree: !0,
|
|
19292
19292
|
childList: !0
|
|
19293
19293
|
});
|
|
@@ -19300,18 +19300,18 @@ var Vn = {
|
|
|
19300
19300
|
get paused() {
|
|
19301
19301
|
return r.paused;
|
|
19302
19302
|
},
|
|
19303
|
-
activate: function(
|
|
19303
|
+
activate: function(v) {
|
|
19304
19304
|
if (r.active)
|
|
19305
19305
|
return this;
|
|
19306
|
-
var
|
|
19306
|
+
var b = l(v, "onActivate"), A = l(v, "onPostActivate"), Q = l(v, "checkCanFocusTrap"), R = Vn.getActiveTrap(o), B = !1;
|
|
19307
19307
|
if (R && !R.paused) {
|
|
19308
|
-
var
|
|
19309
|
-
(
|
|
19308
|
+
var z;
|
|
19309
|
+
(z = R._setSubtreeIsolation) === null || z === void 0 || z.call(R, !1), B = !0;
|
|
19310
19310
|
}
|
|
19311
19311
|
try {
|
|
19312
|
-
Q || d(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = p(n),
|
|
19312
|
+
Q || d(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = p(n), b?.();
|
|
19313
19313
|
var Z = function() {
|
|
19314
|
-
Q && d(), D(), Y(), a.isolateSubtrees && i._setSubtreeIsolation(!0),
|
|
19314
|
+
Q && d(), D(), Y(), a.isolateSubtrees && i._setSubtreeIsolation(!0), A?.();
|
|
19315
19315
|
};
|
|
19316
19316
|
if (Q)
|
|
19317
19317
|
return Q(r.containers.concat()).then(Z, Z), this;
|
|
@@ -19325,34 +19325,34 @@ var Vn = {
|
|
|
19325
19325
|
}
|
|
19326
19326
|
return this;
|
|
19327
19327
|
},
|
|
19328
|
-
deactivate: function(
|
|
19328
|
+
deactivate: function(v) {
|
|
19329
19329
|
if (!r.active)
|
|
19330
19330
|
return this;
|
|
19331
|
-
var
|
|
19331
|
+
var b = uf({
|
|
19332
19332
|
onDeactivate: a.onDeactivate,
|
|
19333
19333
|
onPostDeactivate: a.onPostDeactivate,
|
|
19334
19334
|
checkCanReturnFocus: a.checkCanReturnFocus
|
|
19335
|
-
},
|
|
19336
|
-
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, r.paused || i._setSubtreeIsolation(!1), r.alreadySilent.clear(),
|
|
19337
|
-
var
|
|
19338
|
-
|
|
19339
|
-
var
|
|
19335
|
+
}, v);
|
|
19336
|
+
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, r.paused || i._setSubtreeIsolation(!1), r.alreadySilent.clear(), P(), r.active = !1, r.paused = !1, Y(), Vn.deactivateTrap(o, i);
|
|
19337
|
+
var A = l(b, "onDeactivate"), Q = l(b, "onPostDeactivate"), R = l(b, "checkCanReturnFocus"), B = l(b, "returnFocus", "returnFocusOnDeactivate");
|
|
19338
|
+
A?.();
|
|
19339
|
+
var z = function() {
|
|
19340
19340
|
df(function() {
|
|
19341
19341
|
B && f(g(r.nodeFocusedBeforeActivation)), Q?.();
|
|
19342
19342
|
});
|
|
19343
19343
|
};
|
|
19344
|
-
return B && R ? (R(g(r.nodeFocusedBeforeActivation)).then(
|
|
19344
|
+
return B && R ? (R(g(r.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
|
|
19345
19345
|
},
|
|
19346
|
-
pause: function(
|
|
19347
|
-
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0,
|
|
19346
|
+
pause: function(v) {
|
|
19347
|
+
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0, v)) : this;
|
|
19348
19348
|
},
|
|
19349
|
-
unpause: function(
|
|
19350
|
-
return r.active ? (r.manuallyPaused = !1, o[o.length - 1] !== this ? this : this._setPausedState(!1,
|
|
19349
|
+
unpause: function(v) {
|
|
19350
|
+
return r.active ? (r.manuallyPaused = !1, o[o.length - 1] !== this ? this : this._setPausedState(!1, v)) : this;
|
|
19351
19351
|
},
|
|
19352
|
-
updateContainerElements: function(
|
|
19353
|
-
var
|
|
19354
|
-
return r.containers =
|
|
19355
|
-
return typeof
|
|
19352
|
+
updateContainerElements: function(v) {
|
|
19353
|
+
var b = [].concat(v).filter(Boolean);
|
|
19354
|
+
return r.containers = b.map(function(A) {
|
|
19355
|
+
return typeof A == "string" ? n.querySelector(A) : A;
|
|
19356
19356
|
}), a.isolateSubtrees && C(r.containers), r.active && (d(), a.isolateSubtrees && !r.paused && i._setSubtreeIsolation(!0)), Y(), this;
|
|
19357
19357
|
}
|
|
19358
19358
|
}, Object.defineProperties(i, {
|
|
@@ -19362,24 +19362,24 @@ var Vn = {
|
|
|
19362
19362
|
}
|
|
19363
19363
|
},
|
|
19364
19364
|
_setPausedState: {
|
|
19365
|
-
value: function(
|
|
19366
|
-
if (r.paused ===
|
|
19365
|
+
value: function(v, b) {
|
|
19366
|
+
if (r.paused === v)
|
|
19367
19367
|
return this;
|
|
19368
|
-
if (r.paused =
|
|
19369
|
-
var
|
|
19370
|
-
|
|
19368
|
+
if (r.paused = v, v) {
|
|
19369
|
+
var A = l(b, "onPause"), Q = l(b, "onPostPause");
|
|
19370
|
+
A?.(), P(), Y(), i._setSubtreeIsolation(!1), Q?.();
|
|
19371
19371
|
} else {
|
|
19372
|
-
var R = l(
|
|
19372
|
+
var R = l(b, "onUnpause"), B = l(b, "onPostUnpause");
|
|
19373
19373
|
R?.(), i._setSubtreeIsolation(!0), d(), D(), Y(), B?.();
|
|
19374
19374
|
}
|
|
19375
19375
|
return this;
|
|
19376
19376
|
}
|
|
19377
19377
|
},
|
|
19378
19378
|
_setSubtreeIsolation: {
|
|
19379
|
-
value: function(
|
|
19380
|
-
a.isolateSubtrees && r.adjacentElements.forEach(function(
|
|
19381
|
-
var
|
|
19382
|
-
|
|
19379
|
+
value: function(v) {
|
|
19380
|
+
a.isolateSubtrees && r.adjacentElements.forEach(function(b) {
|
|
19381
|
+
var A;
|
|
19382
|
+
v ? a.isolateSubtrees === "aria-hidden" ? ((b.ariaHidden === "true" || ((A = b.getAttribute("aria-hidden")) === null || A === void 0 ? void 0 : A.toLowerCase()) === "true") && r.alreadySilent.add(b), b.setAttribute("aria-hidden", "true")) : ((b.inert || b.hasAttribute("inert")) && r.alreadySilent.add(b), b.setAttribute("inert", !0)) : r.alreadySilent.has(b) || (a.isolateSubtrees === "aria-hidden" ? b.removeAttribute("aria-hidden") : b.removeAttribute("inert"));
|
|
19383
19383
|
});
|
|
19384
19384
|
}
|
|
19385
19385
|
}
|
|
@@ -19555,7 +19555,7 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19555
19555
|
emits: ["update"],
|
|
19556
19556
|
setup(e, { emit: t }) {
|
|
19557
19557
|
const n = t, o = /* @__PURE__ */ U(!1), a = /* @__PURE__ */ U({}), r = /* @__PURE__ */ U(!1), i = /* @__PURE__ */ U(), l = /* @__PURE__ */ U(""), c = () => {
|
|
19558
|
-
a.value = e.columns.reduce((g,
|
|
19558
|
+
a.value = e.columns.reduce((g, h) => (g[h.key] = e.visibilityPreferences[h.key] === void 0 ? !0 : e.visibilityPreferences[h.key], g), {}), r.value = !1;
|
|
19559
19559
|
}, s = gI((g) => {
|
|
19560
19560
|
l.value = g, i.value && f(i.value);
|
|
19561
19561
|
}, 500), u = I(() => l.value ? e.columns.filter((g) => (g.label ? g.label : g.key).toLowerCase().includes(l.value.toLowerCase())) : e.columns), d = () => {
|
|
@@ -19569,19 +19569,19 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19569
19569
|
g.classList.remove("is-bottom-overflowing");
|
|
19570
19570
|
return;
|
|
19571
19571
|
}
|
|
19572
|
-
const
|
|
19573
|
-
g.classList.toggle("is-bottom-overflowing", !
|
|
19572
|
+
const h = g.scrollHeight < g.clientHeight + g.scrollTop + 1;
|
|
19573
|
+
g.classList.toggle("is-bottom-overflowing", !h);
|
|
19574
19574
|
};
|
|
19575
19575
|
return ke(() => e.visibilityPreferences, () => {
|
|
19576
19576
|
c();
|
|
19577
19577
|
}, { immediate: !0 }), Pt(() => {
|
|
19578
19578
|
i.value && (i.value.addEventListener("scroll", (g) => {
|
|
19579
|
-
const
|
|
19580
|
-
f(
|
|
19579
|
+
const h = g.currentTarget;
|
|
19580
|
+
f(h);
|
|
19581
19581
|
}), f(i.value));
|
|
19582
19582
|
}), Ob(() => {
|
|
19583
19583
|
c();
|
|
19584
|
-
}), (g,
|
|
19584
|
+
}), (g, h) => (E(), F("div", vI, [
|
|
19585
19585
|
re(_m, {
|
|
19586
19586
|
"data-testid": "table-column-visibility-menu",
|
|
19587
19587
|
disabled: e.disabled,
|
|
@@ -19592,7 +19592,7 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19592
19592
|
l.value || u.value.length > 5 ? (E(), ae(ix, {
|
|
19593
19593
|
key: 0,
|
|
19594
19594
|
modelValue: l.value,
|
|
19595
|
-
"onUpdate:modelValue":
|
|
19595
|
+
"onUpdate:modelValue": h[1] || (h[1] = (y) => l.value = y),
|
|
19596
19596
|
modelModifiers: { trim: !0 },
|
|
19597
19597
|
autocapitalize: "off",
|
|
19598
19598
|
autocomplete: "off",
|
|
@@ -19603,7 +19603,7 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19603
19603
|
placeholder: "Search columns",
|
|
19604
19604
|
spellcheck: "false",
|
|
19605
19605
|
type: "search",
|
|
19606
|
-
onClick:
|
|
19606
|
+
onClick: h[2] || (h[2] = sn(() => {
|
|
19607
19607
|
}, ["stop"])),
|
|
19608
19608
|
onInput: te(s)
|
|
19609
19609
|
}, ja({
|
|
@@ -19622,7 +19622,7 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19622
19622
|
"data-testid": "clear-search-button",
|
|
19623
19623
|
icon: "",
|
|
19624
19624
|
size: "small",
|
|
19625
|
-
onClick:
|
|
19625
|
+
onClick: h[0] || (h[0] = sn(() => l.value = "", ["stop"]))
|
|
19626
19626
|
}, {
|
|
19627
19627
|
default: J(() => [
|
|
19628
19628
|
re(te(lm), { decorative: "" })
|
|
@@ -19638,28 +19638,28 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19638
19638
|
ref: i,
|
|
19639
19639
|
class: "menu-items-wrapper"
|
|
19640
19640
|
}, [
|
|
19641
|
-
(E(!0), F(Xe, null, Ht(u.value, (
|
|
19642
|
-
key:
|
|
19641
|
+
(E(!0), F(Xe, null, Ht(u.value, (y) => (E(), ae(Tm, {
|
|
19642
|
+
key: y.key,
|
|
19643
19643
|
class: "column-visibility-menu-item",
|
|
19644
|
-
"data-testid": `column-visibility-menu-item-${
|
|
19644
|
+
"data-testid": `column-visibility-menu-item-${y.key}`,
|
|
19645
19645
|
onClick: sn(() => {
|
|
19646
|
-
a.value[
|
|
19646
|
+
a.value[y.key] = !a.value[y.key], r.value = !0;
|
|
19647
19647
|
}, ["stop"])
|
|
19648
19648
|
}, {
|
|
19649
19649
|
default: J(() => [
|
|
19650
19650
|
re(Zw, {
|
|
19651
|
-
modelValue: a.value[
|
|
19652
|
-
"onUpdate:modelValue": (T) => a.value[
|
|
19653
|
-
"aria-labelledby": `${e.tableId}-${
|
|
19654
|
-
"data-testid": `column-visibility-checkbox-${
|
|
19651
|
+
modelValue: a.value[y.key],
|
|
19652
|
+
"onUpdate:modelValue": (T) => a.value[y.key] = T,
|
|
19653
|
+
"aria-labelledby": `${e.tableId}-${y.key}-visibility-checkbox-label`,
|
|
19654
|
+
"data-testid": `column-visibility-checkbox-${y.key}`
|
|
19655
19655
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "aria-labelledby", "data-testid"]),
|
|
19656
19656
|
re(pu, {
|
|
19657
|
-
id: `${e.tableId}-${
|
|
19657
|
+
id: `${e.tableId}-${y.key}-visibility-checkbox-label`,
|
|
19658
19658
|
class: "visibility-checkbox-label",
|
|
19659
|
-
title:
|
|
19659
|
+
title: y.label
|
|
19660
19660
|
}, {
|
|
19661
19661
|
default: J(() => [
|
|
19662
|
-
Ge(De(
|
|
19662
|
+
Ge(De(y.label), 1)
|
|
19663
19663
|
]),
|
|
19664
19664
|
_: 2
|
|
19665
19665
|
}, 1032, ["id", "title"])
|
|
@@ -19674,7 +19674,7 @@ const mI = ["aria-hidden"], pf = '<path d="M3.0249 17.75V7.75C3.0249 7.2 3.22074
|
|
|
19674
19674
|
"data-testid": "apply-button",
|
|
19675
19675
|
onClick: d
|
|
19676
19676
|
}, {
|
|
19677
|
-
default: J(() => [...
|
|
19677
|
+
default: J(() => [...h[3] || (h[3] = [
|
|
19678
19678
|
Ge(" Apply ", -1)
|
|
19679
19679
|
])]),
|
|
19680
19680
|
_: 1
|
|
@@ -19914,8 +19914,8 @@ function st(e, t, n, o, a) {
|
|
|
19914
19914
|
}
|
|
19915
19915
|
while (a = a.parentNode);
|
|
19916
19916
|
if (o && e !== window) {
|
|
19917
|
-
var f = Ar(a || e), g = f && f.a,
|
|
19918
|
-
f && (i /=
|
|
19917
|
+
var f = Ar(a || e), g = f && f.a, h = f && f.d;
|
|
19918
|
+
f && (i /= h, l /= g, d /= g, u /= h, c = i + u, s = l + d);
|
|
19919
19919
|
}
|
|
19920
19920
|
return {
|
|
19921
19921
|
top: i,
|
|
@@ -20142,15 +20142,15 @@ var mr = [], Bs = {
|
|
|
20142
20142
|
function WI(e) {
|
|
20143
20143
|
var t = e.sortable, n = e.rootEl, o = e.name, a = e.targetEl, r = e.cloneEl, i = e.toEl, l = e.fromEl, c = e.oldIndex, s = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, g = e.extraEventProperties;
|
|
20144
20144
|
if (t = t || n && n[Yt], !!t) {
|
|
20145
|
-
var
|
|
20146
|
-
window.CustomEvent && !Xn && !Xa ?
|
|
20145
|
+
var h, y = t.options, T = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
20146
|
+
window.CustomEvent && !Xn && !Xa ? h = new CustomEvent(o, {
|
|
20147
20147
|
bubbles: !0,
|
|
20148
20148
|
cancelable: !0
|
|
20149
|
-
}) : (
|
|
20150
|
-
var
|
|
20151
|
-
for (var S in
|
|
20152
|
-
|
|
20153
|
-
n && n.dispatchEvent(
|
|
20149
|
+
}) : (h = document.createEvent("Event"), h.initEvent(o, !0, !0)), h.to = i || n, h.from = l || n, h.item = a || n, h.clone = r, h.oldIndex = c, h.newIndex = s, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = p, h.pullMode = f ? f.lastPutMode : void 0;
|
|
20150
|
+
var $ = $n($n({}, g), ei.getEventProperties(o, t));
|
|
20151
|
+
for (var S in $)
|
|
20152
|
+
h[S] = $[S];
|
|
20153
|
+
n && n.dispatchEvent(h), y[T] && y[T].call(t, h);
|
|
20154
20154
|
}
|
|
20155
20155
|
}
|
|
20156
20156
|
var KI = ["evt"], Ot = function(e, t) {
|
|
@@ -20522,7 +20522,7 @@ ce.prototype = /** @lends Sortable.prototype */
|
|
|
20522
20522
|
_onDragOver: function(e) {
|
|
20523
20523
|
var t = this.el, n = e.target, o, a, r, i = this.options, l = i.group, c = ce.active, s = Di === l, u = i.sort, d = ht || c, p, f = this, g = !1;
|
|
20524
20524
|
if (Tc) return;
|
|
20525
|
-
function
|
|
20525
|
+
function h(B, z) {
|
|
20526
20526
|
Ot(B, f, $n({
|
|
20527
20527
|
evt: e,
|
|
20528
20528
|
isOwner: s,
|
|
@@ -20537,20 +20537,20 @@ ce.prototype = /** @lends Sortable.prototype */
|
|
|
20537
20537
|
onMove: function(Z, ee) {
|
|
20538
20538
|
return Ni(je, t, H, o, Z, st(Z), e, ee);
|
|
20539
20539
|
},
|
|
20540
|
-
changed:
|
|
20541
|
-
},
|
|
20540
|
+
changed: $
|
|
20541
|
+
}, z));
|
|
20542
20542
|
}
|
|
20543
|
-
function
|
|
20544
|
-
|
|
20543
|
+
function y() {
|
|
20544
|
+
h("dragOverAnimationCapture"), f.captureAnimationState(), f !== d && d.captureAnimationState();
|
|
20545
20545
|
}
|
|
20546
20546
|
function T(B) {
|
|
20547
|
-
return
|
|
20547
|
+
return h("dragOverCompleted", {
|
|
20548
20548
|
insertion: B
|
|
20549
20549
|
}), B && (s ? c._hideClone() : c._showClone(f), f !== d && (Bt(H, ht ? ht.options.ghostClass : c.options.ghostClass, !1), Bt(H, i.ghostClass, !0)), ht !== f && f !== ce.active ? ht = f : f === ce.active && ht && (ht = null), d === f && (f._ignoreWhileAnimating = n), f.animateAll(function() {
|
|
20550
|
-
|
|
20550
|
+
h("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
20551
20551
|
}), f !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === H && !H.animated || n === t && !n.animated) && (hr = null), !i.dragoverBubble && !e.rootEl && n !== document && (H.parentNode[Yt]._isOutsideThisEl(e.target), !B && Ro(e)), !i.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
|
|
20552
20552
|
}
|
|
20553
|
-
function
|
|
20553
|
+
function $() {
|
|
20554
20554
|
Lt = Kt(H), co = Kt(H, i.draggable), At({
|
|
20555
20555
|
sortable: f,
|
|
20556
20556
|
name: "change",
|
|
@@ -20560,44 +20560,44 @@ ce.prototype = /** @lends Sortable.prototype */
|
|
|
20560
20560
|
originalEvent: e
|
|
20561
20561
|
});
|
|
20562
20562
|
}
|
|
20563
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = bn(n, i.draggable, t, !0),
|
|
20563
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = bn(n, i.draggable, t, !0), h("dragOver"), ce.eventCanceled) return g;
|
|
20564
20564
|
if (H.contains(e.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
|
|
20565
20565
|
return T(!1);
|
|
20566
20566
|
if (Sl = !1, c && !i.disabled && (s ? u || (r = Ke !== je) : ht === this || (this.lastPutMode = Di.checkPull(this, c, H, e)) && l.checkPut(this, c, H, e))) {
|
|
20567
|
-
if (p = this._getDirection(e, n) === "vertical", o = st(H),
|
|
20567
|
+
if (p = this._getDirection(e, n) === "vertical", o = st(H), h("dragOverValid"), ce.eventCanceled) return g;
|
|
20568
20568
|
if (r)
|
|
20569
|
-
return Ke = je,
|
|
20569
|
+
return Ke = je, y(), this._hideClone(), h("revert"), ce.eventCanceled || (Lo ? je.insertBefore(H, Lo) : je.appendChild(H)), T(!0);
|
|
20570
20570
|
var S = Iu(t, i.draggable);
|
|
20571
20571
|
if (!S || rO(e, p, this) && !S.animated) {
|
|
20572
20572
|
if (S === H)
|
|
20573
20573
|
return T(!1);
|
|
20574
20574
|
if (S && t === e.target && (n = S), n && (a = st(n)), Ni(je, t, H, o, n, a, e, !!n) !== !1)
|
|
20575
|
-
return
|
|
20575
|
+
return y(), t.appendChild(H), Ke = t, $(), T(!0);
|
|
20576
20576
|
} else if (S && oO(e, p, this)) {
|
|
20577
20577
|
var x = Rr(t, 0, i, !0);
|
|
20578
20578
|
if (x === H)
|
|
20579
20579
|
return T(!1);
|
|
20580
20580
|
if (n = x, a = st(n), Ni(je, t, H, o, n, a, e, !1) !== !1)
|
|
20581
|
-
return
|
|
20581
|
+
return y(), t.insertBefore(H, x), Ke = t, $(), T(!0);
|
|
20582
20582
|
} else if (n.parentNode === t) {
|
|
20583
20583
|
a = st(n);
|
|
20584
|
-
var O = 0, D, C = H.parentNode !== t,
|
|
20585
|
-
hr !== n && (D = a[w], Na = !1, Ii = !
|
|
20586
|
-
var
|
|
20584
|
+
var O = 0, D, C = H.parentNode !== t, P = !JI(H.animated && H.toRect || o, n.animated && n.toRect || a, p), w = p ? "top" : "left", _ = bf(n, "top", "top") || bf(H, "top", "top"), Y = _ ? _.scrollTop : void 0;
|
|
20585
|
+
hr !== n && (D = a[w], Na = !1, Ii = !P && i.invertSwap || C), O = aO(e, n, a, p, P ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, Ii, hr === n);
|
|
20586
|
+
var v;
|
|
20587
20587
|
if (O !== 0) {
|
|
20588
|
-
var
|
|
20588
|
+
var b = Kt(H);
|
|
20589
20589
|
do
|
|
20590
|
-
|
|
20591
|
-
while (
|
|
20590
|
+
b -= O, v = Ke.children[b];
|
|
20591
|
+
while (v && (se(v, "display") === "none" || v === pe));
|
|
20592
20592
|
}
|
|
20593
|
-
if (O === 0 ||
|
|
20593
|
+
if (O === 0 || v === n)
|
|
20594
20594
|
return T(!1);
|
|
20595
20595
|
hr = n, Oa = O;
|
|
20596
|
-
var
|
|
20596
|
+
var A = n.nextElementSibling, Q = !1;
|
|
20597
20597
|
Q = O === 1;
|
|
20598
20598
|
var R = Ni(je, t, H, o, n, a, e, Q);
|
|
20599
20599
|
if (R !== !1)
|
|
20600
|
-
return (R === 1 || R === -1) && (Q = R === 1), Tc = !0, setTimeout(nO, 30),
|
|
20600
|
+
return (R === 1 || R === -1) && (Q = R === 1), Tc = !0, setTimeout(nO, 30), y(), Q && !A ? t.appendChild(H) : n.parentNode.insertBefore(H, Q ? A : n), _ && _h(_, 0, Y - _.scrollTop), Ke = H.parentNode, D !== void 0 && !Ii && (ji = Math.abs(D - st(n)[w])), $(), T(!0);
|
|
20601
20601
|
}
|
|
20602
20602
|
if (t.contains(H))
|
|
20603
20603
|
return T(!1);
|
|
@@ -20927,13 +20927,13 @@ var Us = Ch(function(e, t, n, o) {
|
|
|
20927
20927
|
_c !== n && (_c = n, Yi(), Ea = t.scroll, u = t.scrollFn, Ea === !0 && (Ea = go(n, !0)));
|
|
20928
20928
|
var d = 0, p = Ea;
|
|
20929
20929
|
do {
|
|
20930
|
-
var f = p, g = st(f),
|
|
20931
|
-
f === c ? (O = S < C && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), D = x <
|
|
20932
|
-
var
|
|
20930
|
+
var f = p, g = st(f), h = g.top, y = g.bottom, T = g.left, $ = g.right, S = g.width, x = g.height, O = void 0, D = void 0, C = f.scrollWidth, P = f.scrollHeight, w = se(f), _ = f.scrollLeft, Y = f.scrollTop;
|
|
20931
|
+
f === c ? (O = S < C && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), D = x < P && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (O = S < C && (w.overflowX === "auto" || w.overflowX === "scroll"), D = x < P && (w.overflowY === "auto" || w.overflowY === "scroll"));
|
|
20932
|
+
var v = O && (Math.abs($ - a) <= i && _ + S < C) - (Math.abs(T - a) <= i && !!_), b = D && (Math.abs(y - r) <= i && Y + x < P) - (Math.abs(h - r) <= i && !!Y);
|
|
20933
20933
|
if (!at[d])
|
|
20934
|
-
for (var
|
|
20935
|
-
at[
|
|
20936
|
-
(at[d].vx !=
|
|
20934
|
+
for (var A = 0; A <= d; A++)
|
|
20935
|
+
at[A] || (at[A] = {});
|
|
20936
|
+
(at[d].vx != v || at[d].vy != b || at[d].el !== f) && (at[d].el = f, at[d].vx = v, at[d].vy = b, clearInterval(at[d].pid), (v != 0 || b != 0) && (s = !0, at[d].pid = setInterval((function() {
|
|
20937
20937
|
o && this.layer === 0 && ce.active._onTouchMove(Cl);
|
|
20938
20938
|
var Q = at[this.layer].vy ? at[this.layer].vy * l : 0, R = at[this.layer].vx ? at[this.layer].vx * l : 0;
|
|
20939
20939
|
typeof u == "function" && u.call(ce.dragged.parentNode[Yt], R, Q, e, Cl, at[this.layer].el) !== "continue" || _h(at[this.layer].el, R, Q);
|
|
@@ -21335,58 +21335,58 @@ function wN(e, t) {
|
|
|
21335
21335
|
const a = I(() => n ? Bh(n) : {});
|
|
21336
21336
|
function r(g) {
|
|
21337
21337
|
if (g) {
|
|
21338
|
-
let
|
|
21339
|
-
return
|
|
21338
|
+
let h = Pr(g, a.value || {});
|
|
21339
|
+
return h.startsWith(`${xr}${zl}`) && (h = h.slice(2)), a.value?.[h];
|
|
21340
21340
|
}
|
|
21341
21341
|
return n;
|
|
21342
21342
|
}
|
|
21343
|
-
function i(g,
|
|
21344
|
-
const
|
|
21345
|
-
if (!
|
|
21343
|
+
function i(g, h = !1) {
|
|
21344
|
+
const y = r(g);
|
|
21345
|
+
if (!y)
|
|
21346
21346
|
return null;
|
|
21347
|
-
if (
|
|
21348
|
-
return
|
|
21349
|
-
if (!
|
|
21350
|
-
return
|
|
21347
|
+
if (y.default !== void 0)
|
|
21348
|
+
return y.default;
|
|
21349
|
+
if (!y.auto)
|
|
21350
|
+
return h || y.required ? y.type === "record" ? l(y, g) : y.type === "array" ? [] : y.type === "map" ? {} : o() : o();
|
|
21351
21351
|
}
|
|
21352
|
-
function l(g,
|
|
21353
|
-
const
|
|
21352
|
+
function l(g, h) {
|
|
21353
|
+
const y = {};
|
|
21354
21354
|
if (Array.isArray(g.fields))
|
|
21355
21355
|
for (const T of g.fields) {
|
|
21356
|
-
const
|
|
21357
|
-
x !== void 0 && (
|
|
21356
|
+
const $ = Object.keys(T)[0], S = h ? `${h}.${$}` : $, x = i(S, !1);
|
|
21357
|
+
x !== void 0 && (y[$] = x);
|
|
21358
21358
|
}
|
|
21359
|
-
return
|
|
21359
|
+
return y;
|
|
21360
21360
|
}
|
|
21361
21361
|
function c(g) {
|
|
21362
21362
|
return g ? i(g, !0) : l(r(), "");
|
|
21363
21363
|
}
|
|
21364
21364
|
function s(g) {
|
|
21365
|
-
const
|
|
21365
|
+
const h = r(g), y = h?.description ? K0.sanitize(Ne.parse(h.description, { async: !1 })) : void 0;
|
|
21366
21366
|
return {
|
|
21367
21367
|
...kN,
|
|
21368
21368
|
"data-testid": `ff-label-${g}`,
|
|
21369
|
-
info:
|
|
21369
|
+
info: y
|
|
21370
21370
|
};
|
|
21371
21371
|
}
|
|
21372
21372
|
function u(g) {
|
|
21373
|
-
const
|
|
21374
|
-
return gy(
|
|
21373
|
+
const h = r(g);
|
|
21374
|
+
return gy(h?.one_of || h.elements?.one_of || []);
|
|
21375
21375
|
}
|
|
21376
21376
|
function d(g) {
|
|
21377
|
-
const
|
|
21377
|
+
const h = r(g), y = h?.default;
|
|
21378
21378
|
let T = null;
|
|
21379
|
-
if (
|
|
21380
|
-
T =
|
|
21379
|
+
if (h?.type === "foreign" && y?.id)
|
|
21380
|
+
T = y.id;
|
|
21381
21381
|
else {
|
|
21382
|
-
if (
|
|
21382
|
+
if (y == null || typeof y == "object" || y === "")
|
|
21383
21383
|
return null;
|
|
21384
|
-
if (Array.isArray(
|
|
21385
|
-
if (
|
|
21384
|
+
if (Array.isArray(y)) {
|
|
21385
|
+
if (y.length === 0)
|
|
21386
21386
|
return null;
|
|
21387
|
-
T =
|
|
21387
|
+
T = y.join(", ");
|
|
21388
21388
|
} else
|
|
21389
|
-
T =
|
|
21389
|
+
T = y.toString();
|
|
21390
21390
|
}
|
|
21391
21391
|
return `Default: ${T}`;
|
|
21392
21392
|
}
|
|
@@ -21455,7 +21455,7 @@ function CN(e, t) {
|
|
|
21455
21455
|
function i(S, x) {
|
|
21456
21456
|
const O = S.map((C) => yr(C).length), D = O[0];
|
|
21457
21457
|
if (!O.every((C) => C === D)) {
|
|
21458
|
-
const C = S.map((
|
|
21458
|
+
const C = S.map((P, w) => ` - '${P}' is at level ${O[w]}`).join(`
|
|
21459
21459
|
`);
|
|
21460
21460
|
throw new Error(
|
|
21461
21461
|
`${x}: Fields must be at the same level. Found mixed levels:
|
|
@@ -21475,29 +21475,29 @@ ${C}`
|
|
|
21475
21475
|
}
|
|
21476
21476
|
const D = /* @__PURE__ */ new Map();
|
|
21477
21477
|
for (const C of O.bundles)
|
|
21478
|
-
for (let
|
|
21479
|
-
const w = C[
|
|
21478
|
+
for (let P = 1; P < C.length; P++) {
|
|
21479
|
+
const w = C[P], _ = C[P - 1];
|
|
21480
21480
|
D.has(w) || D.set(w, /* @__PURE__ */ new Set()), D.get(w).add(_);
|
|
21481
21481
|
}
|
|
21482
21482
|
for (const C of D.keys()) {
|
|
21483
|
-
let
|
|
21483
|
+
let P = function(Y) {
|
|
21484
21484
|
if (_.includes(Y)) {
|
|
21485
|
-
const
|
|
21485
|
+
const b = [..._, Y].join(" -> ");
|
|
21486
21486
|
throw new Error(
|
|
21487
21487
|
`Circular bundle detected in path '${x}':
|
|
21488
|
-
${
|
|
21488
|
+
${b}`
|
|
21489
21489
|
);
|
|
21490
21490
|
}
|
|
21491
21491
|
if (w.has(Y)) return;
|
|
21492
21492
|
w.add(Y), _.push(Y);
|
|
21493
|
-
const
|
|
21494
|
-
if (
|
|
21495
|
-
for (const
|
|
21496
|
-
|
|
21493
|
+
const v = D.get(Y);
|
|
21494
|
+
if (v)
|
|
21495
|
+
for (const b of v)
|
|
21496
|
+
P(b);
|
|
21497
21497
|
_.pop();
|
|
21498
21498
|
};
|
|
21499
21499
|
const w = /* @__PURE__ */ new Set(), _ = [];
|
|
21500
|
-
|
|
21500
|
+
P(C);
|
|
21501
21501
|
}
|
|
21502
21502
|
}
|
|
21503
21503
|
}
|
|
@@ -21507,22 +21507,22 @@ ${y}`
|
|
|
21507
21507
|
for (const D of Object.keys(O.dependencies)) {
|
|
21508
21508
|
let C = function(_) {
|
|
21509
21509
|
if (w.includes(_)) {
|
|
21510
|
-
const
|
|
21510
|
+
const v = [...w, _].join(" -> ");
|
|
21511
21511
|
throw new Error(
|
|
21512
21512
|
`Circular dependency detected in path '${x}':
|
|
21513
|
-
${
|
|
21513
|
+
${v}`
|
|
21514
21514
|
);
|
|
21515
21515
|
}
|
|
21516
|
-
if (
|
|
21517
|
-
|
|
21516
|
+
if (P.has(_)) return;
|
|
21517
|
+
P.add(_), w.push(_);
|
|
21518
21518
|
const Y = O.dependencies[_];
|
|
21519
21519
|
if (Y) {
|
|
21520
|
-
const [
|
|
21521
|
-
O.dependencies[
|
|
21520
|
+
const [v] = Y;
|
|
21521
|
+
O.dependencies[v] && C(v);
|
|
21522
21522
|
}
|
|
21523
21523
|
w.pop();
|
|
21524
21524
|
};
|
|
21525
|
-
const
|
|
21525
|
+
const P = /* @__PURE__ */ new Set(), w = [];
|
|
21526
21526
|
C(D);
|
|
21527
21527
|
}
|
|
21528
21528
|
}
|
|
@@ -21549,24 +21549,24 @@ ${h}`
|
|
|
21549
21549
|
throw new Error(
|
|
21550
21550
|
`Bundle must contain at least 2 fields. Found ${C.length} field(s) in bundle: [${C.join(", ")}]`
|
|
21551
21551
|
);
|
|
21552
|
-
const
|
|
21553
|
-
i(
|
|
21552
|
+
const P = C.map((Y) => D ? Ue(D, Y) : Y);
|
|
21553
|
+
i(P, `Bundle [${C.join(", ")}]`);
|
|
21554
21554
|
const w = s(C, D) || xr;
|
|
21555
21555
|
S[w] || (S[w] = {}), S[w].bundles || (S[w].bundles = []);
|
|
21556
|
-
const _ =
|
|
21556
|
+
const _ = P.map((Y) => u(Y, w));
|
|
21557
21557
|
S[w].bundles.push(_);
|
|
21558
21558
|
}
|
|
21559
21559
|
if (O.dependencies)
|
|
21560
|
-
for (const [C, [
|
|
21561
|
-
const _ = D ? Ue(D, C) : C, Y = D ? Ue(D,
|
|
21560
|
+
for (const [C, [P, w]] of Object.entries(O.dependencies)) {
|
|
21561
|
+
const _ = D ? Ue(D, C) : C, Y = D ? Ue(D, P) : P;
|
|
21562
21562
|
i(
|
|
21563
21563
|
[_, Y],
|
|
21564
|
-
`Dependency '${C}' -> '${
|
|
21564
|
+
`Dependency '${C}' -> '${P}'`
|
|
21565
21565
|
);
|
|
21566
|
-
const
|
|
21567
|
-
S[
|
|
21568
|
-
const
|
|
21569
|
-
S[
|
|
21566
|
+
const v = d(_) || xr;
|
|
21567
|
+
S[v] || (S[v] = {}), S[v].dependencies || (S[v].dependencies = {});
|
|
21568
|
+
const b = u(_, v), A = u(Y, v);
|
|
21569
|
+
S[v].dependencies[b] = [A, w];
|
|
21570
21570
|
}
|
|
21571
21571
|
}
|
|
21572
21572
|
return l(S), c(S), S;
|
|
@@ -21584,7 +21584,7 @@ ${h}`
|
|
|
21584
21584
|
const x = Pr(S, e());
|
|
21585
21585
|
return f.value[x];
|
|
21586
21586
|
}
|
|
21587
|
-
function
|
|
21587
|
+
function h(S) {
|
|
21588
21588
|
let x = !1;
|
|
21589
21589
|
return I(() => {
|
|
21590
21590
|
if (x) return;
|
|
@@ -21597,7 +21597,7 @@ ${h}`
|
|
|
21597
21597
|
}
|
|
21598
21598
|
});
|
|
21599
21599
|
}
|
|
21600
|
-
const
|
|
21600
|
+
const y = I(
|
|
21601
21601
|
() => Object.values(f.value).some(
|
|
21602
21602
|
(S) => S.dependencies && Object.keys(S.dependencies).length > 0
|
|
21603
21603
|
)
|
|
@@ -21612,33 +21612,33 @@ ${h}`
|
|
|
21612
21612
|
() => pt(O),
|
|
21613
21613
|
() => pt(x),
|
|
21614
21614
|
() => pt(D)
|
|
21615
|
-
], ([w, _, Y], [,
|
|
21616
|
-
w ? n.value[_] = w : delete n.value[_], a(_, C, Y),
|
|
21615
|
+
], ([w, _, Y], [, v]) => {
|
|
21616
|
+
w ? n.value[_] = w : delete n.value[_], a(_, C, Y), v && v !== _ && (delete n.value[v], r(v, C));
|
|
21617
21617
|
}, { immediate: !0, deep: !0 });
|
|
21618
|
-
const
|
|
21618
|
+
const P = h(x);
|
|
21619
21619
|
return Rl(() => {
|
|
21620
21620
|
const w = pt(x);
|
|
21621
21621
|
delete n.value[w], r(w, C);
|
|
21622
|
-
}),
|
|
21622
|
+
}), P;
|
|
21623
21623
|
}
|
|
21624
|
-
function
|
|
21624
|
+
function $(S) {
|
|
21625
21625
|
const x = yr(S);
|
|
21626
21626
|
if (!x.length) return !1;
|
|
21627
21627
|
const O = x[x.length - 1], D = Ue(...x.slice(0, -1)), C = o.value[D];
|
|
21628
21628
|
if (C) {
|
|
21629
|
-
const
|
|
21630
|
-
if (
|
|
21629
|
+
const A = Object.values(C);
|
|
21630
|
+
if (A.length && A.every((Q) => Q.includes(O))) return !1;
|
|
21631
21631
|
}
|
|
21632
|
-
const
|
|
21632
|
+
const P = D === "" ? xr : Pr(D, e()), w = f.value[P]?.dependencies?.[O];
|
|
21633
21633
|
if (!w) return !1;
|
|
21634
|
-
const [_, Y] = w,
|
|
21635
|
-
return !TN(
|
|
21634
|
+
const [_, Y] = w, v = D ? Ue(D, _) : _, b = zf(t(), yr(v));
|
|
21635
|
+
return !TN(b, Y);
|
|
21636
21636
|
}
|
|
21637
21637
|
return {
|
|
21638
21638
|
useCurrentRules: T,
|
|
21639
|
-
createComputedRules:
|
|
21640
|
-
hasDependencies:
|
|
21641
|
-
isFieldHidden:
|
|
21639
|
+
createComputedRules: h,
|
|
21640
|
+
hasDependencies: y,
|
|
21641
|
+
isFieldHidden: $
|
|
21642
21642
|
};
|
|
21643
21643
|
}
|
|
21644
21644
|
let _N = 0;
|
|
@@ -21720,8 +21720,8 @@ function IN(e, t, n) {
|
|
|
21720
21720
|
console.error(`[FreeForm] Missing name for key ID: ${String(d)}`);
|
|
21721
21721
|
return;
|
|
21722
21722
|
}
|
|
21723
|
-
const g = f || Jc,
|
|
21724
|
-
s[f] = o(p,
|
|
21723
|
+
const g = f || Jc, h = r ? Ue(r, g) : g;
|
|
21724
|
+
s[f] = o(p, h);
|
|
21725
21725
|
}), s;
|
|
21726
21726
|
}
|
|
21727
21727
|
const l = {};
|
|
@@ -21747,68 +21747,70 @@ EN(
|
|
|
21747
21747
|
} = wN(n, () => pt(i)), u = $N(s.getSchema), d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ Ga({}), f = /* @__PURE__ */ Hv(() => pt(i) ?? {}), g = fn();
|
|
21748
21748
|
Uc(vy, tv(g, "default", by));
|
|
21749
21749
|
const {
|
|
21750
|
-
useCurrentRules:
|
|
21751
|
-
createComputedRules:
|
|
21750
|
+
useCurrentRules: h,
|
|
21751
|
+
createComputedRules: y,
|
|
21752
21752
|
hasDependencies: T,
|
|
21753
|
-
isFieldHidden:
|
|
21754
|
-
} = CN(s.getSchemaMap, () => p), S =
|
|
21753
|
+
isFieldHidden: $
|
|
21754
|
+
} = CN(s.getSchemaMap, () => p), S = h({
|
|
21755
21755
|
fieldPath: xr,
|
|
21756
21756
|
rules: r
|
|
21757
21757
|
});
|
|
21758
|
-
function x(
|
|
21759
|
-
Object.keys(p).forEach((
|
|
21760
|
-
delete p[
|
|
21761
|
-
}), u.clear(), Object.assign(p, u.serialize(
|
|
21758
|
+
function x(b) {
|
|
21759
|
+
Object.keys(p).forEach((A) => {
|
|
21760
|
+
delete p[A];
|
|
21761
|
+
}), u.clear(), Object.assign(p, u.serialize(b));
|
|
21762
21762
|
}
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
|
|
21763
|
+
const O = /* @__PURE__ */ U(!1);
|
|
21764
|
+
function D(b) {
|
|
21765
|
+
let A;
|
|
21766
|
+
!b || !C(pt(b)) ? (O.value = !0, A = l()) : (O.value = !1, A = qu(pt(b))), Wu(f.value.prepareFormData) ? x(f.value.prepareFormData(A)) : x(A);
|
|
21766
21767
|
}
|
|
21767
|
-
function
|
|
21768
|
-
return Wu(f.value.hasValue) ? f.value.hasValue(
|
|
21768
|
+
function C(b) {
|
|
21769
|
+
return Wu(f.value.hasValue) ? f.value.hasValue(b) : !!b;
|
|
21769
21770
|
}
|
|
21770
|
-
function
|
|
21771
|
-
const
|
|
21771
|
+
function P() {
|
|
21772
|
+
const b = qu(pt(p));
|
|
21772
21773
|
return T.value && Ug(
|
|
21773
|
-
|
|
21774
|
-
|
|
21774
|
+
b,
|
|
21775
|
+
$,
|
|
21775
21776
|
c
|
|
21776
|
-
), u.deserialize(
|
|
21777
|
+
), u.deserialize(b);
|
|
21777
21778
|
}
|
|
21778
21779
|
ke(p, () => {
|
|
21779
|
-
a?.(
|
|
21780
|
+
a?.(P());
|
|
21780
21781
|
}, { deep: !0 });
|
|
21781
|
-
let
|
|
21782
|
-
ke(() => o?.value, (
|
|
21783
|
-
|
|
21782
|
+
let w = !1;
|
|
21783
|
+
ke(() => o?.value, (b) => {
|
|
21784
|
+
w && Mi(P(), pt(b)) || (D(b), w = !0);
|
|
21784
21785
|
}, { deep: !0, immediate: !0 });
|
|
21785
|
-
function
|
|
21786
|
-
return
|
|
21786
|
+
function _(b) {
|
|
21787
|
+
return b != null && typeof b == "object" && !Array.isArray(b) ? u.serialize(b) : b;
|
|
21787
21788
|
}
|
|
21788
|
-
function
|
|
21789
|
-
return
|
|
21789
|
+
function Y(b) {
|
|
21790
|
+
return _(l(b));
|
|
21790
21791
|
}
|
|
21791
|
-
function
|
|
21792
|
-
return
|
|
21792
|
+
function v(b) {
|
|
21793
|
+
return _(c(b));
|
|
21793
21794
|
}
|
|
21794
21795
|
return {
|
|
21795
21796
|
/**
|
|
21796
21797
|
* The reactive form data object
|
|
21797
21798
|
*/
|
|
21798
21799
|
formData: p,
|
|
21800
|
+
isSchemaDefaulted: O,
|
|
21799
21801
|
schema: n,
|
|
21800
21802
|
config: f,
|
|
21801
21803
|
fieldRendererRegistry: d,
|
|
21802
21804
|
setValue: x,
|
|
21803
|
-
useCurrentRenderRules:
|
|
21805
|
+
useCurrentRenderRules: h,
|
|
21804
21806
|
rootRenderRules: S,
|
|
21805
|
-
createComputedRenderRules:
|
|
21807
|
+
createComputedRenderRules: y,
|
|
21806
21808
|
...s,
|
|
21807
|
-
getValue:
|
|
21808
|
-
isFieldHidden:
|
|
21809
|
+
getValue: P,
|
|
21810
|
+
isFieldHidden: $,
|
|
21809
21811
|
keyIdMap: u,
|
|
21810
|
-
getDefault:
|
|
21811
|
-
getEmptyOrDefault:
|
|
21812
|
+
getDefault: Y,
|
|
21813
|
+
getEmptyOrDefault: v
|
|
21812
21814
|
};
|
|
21813
21815
|
}
|
|
21814
21816
|
);
|