quasar-factory-lib 0.0.62 → 0.0.63
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/quasar-factory-lib.js +385 -369
- package/dist/quasar-factory-lib.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +11 -2
- package/src/components/Table/components/BasicCheckBox.vue +5 -0
- package/src/components/Table/components/CustomizedCheckBox.vue +5 -0
- package/src/components/Table/components/TableSlotGrid.vue +1 -1
- package/src/css/app.css +1 -4
- package/src/layouts/MenuLayout.vue +1 -0
- package/src/layouts/PdaLayout.vue +1 -1
|
@@ -255,8 +255,8 @@ const jr = ["sm", "md", "lg", "xl"], { passive: $a } = vt, df = Ar({
|
|
|
255
255
|
n.height * n.scale + window.innerHeight - r.clientHeight
|
|
256
256
|
], a = ((f = e.config.screen) == null ? void 0 : f.bodyClasses) === !0;
|
|
257
257
|
this.__update = (u) => {
|
|
258
|
-
const [d,
|
|
259
|
-
if (
|
|
258
|
+
const [d, h] = l();
|
|
259
|
+
if (h !== this.height && (this.height = h), d !== this.width)
|
|
260
260
|
this.width = d;
|
|
261
261
|
else if (u !== !0)
|
|
262
262
|
return;
|
|
@@ -276,8 +276,8 @@ const jr = ["sm", "md", "lg", "xl"], { passive: $a } = vt, df = Ar({
|
|
|
276
276
|
u.getPropertyValue("--q-size-sm") && jr.forEach((d) => {
|
|
277
277
|
this.sizes[d] = parseInt(u.getPropertyValue(`--q-size-${d}`), 10);
|
|
278
278
|
}), this.setSizes = (d) => {
|
|
279
|
-
jr.forEach((
|
|
280
|
-
d[
|
|
279
|
+
jr.forEach((h) => {
|
|
280
|
+
d[h] && (this.sizes[h] = d[h]);
|
|
281
281
|
}), this.__update(!0);
|
|
282
282
|
}, this.setDebounce = (d) => {
|
|
283
283
|
i !== void 0 && o.removeEventListener("resize", i, $a), i = d > 0 ? Xl(this.__update, d) : this.__update, o.addEventListener("resize", i, $a);
|
|
@@ -981,8 +981,8 @@ const za = "0 0 24 24", Kr = (e) => e, Yr = (e) => `ionicons ${e}`, Nu = {
|
|
|
981
981
|
svg: !0,
|
|
982
982
|
viewBox: f,
|
|
983
983
|
nodes: c.split("&&").map((u) => {
|
|
984
|
-
const [d,
|
|
985
|
-
return w("path", { style:
|
|
984
|
+
const [d, h, p] = u.split("@@");
|
|
985
|
+
return w("path", { style: h, d, transform: p });
|
|
986
986
|
})
|
|
987
987
|
};
|
|
988
988
|
}
|
|
@@ -1245,7 +1245,7 @@ function qu({
|
|
|
1245
1245
|
}) {
|
|
1246
1246
|
const r = Ee(), { props: l, emit: a, proxy: i } = r, { $q: s } = i;
|
|
1247
1247
|
let m, c, f, u = [], d;
|
|
1248
|
-
const
|
|
1248
|
+
const h = se(0), p = se(0), g = se({}), v = se(null), _ = se(null), S = se(null), y = se({ from: 0, to: 0 }), D = b(() => l.tableColspan !== void 0 ? l.tableColspan : 100);
|
|
1249
1249
|
o === void 0 && (o = b(() => l.virtualScrollItemSize));
|
|
1250
1250
|
const x = b(() => o.value + ";" + l.virtualScrollHorizontal), O = b(
|
|
1251
1251
|
() => x.value + ";" + l.virtualScrollSliceRatioBefore + ";" + l.virtualScrollSliceRatioAfter
|
|
@@ -1310,8 +1310,8 @@ function qu({
|
|
|
1310
1310
|
return;
|
|
1311
1311
|
}
|
|
1312
1312
|
let z = 0, X = T.scrollStart - T.offsetStart, we = X;
|
|
1313
|
-
if (X <= ce && X + T.scrollViewSize >=
|
|
1314
|
-
X -=
|
|
1313
|
+
if (X <= ce && X + T.scrollViewSize >= h.value)
|
|
1314
|
+
X -= h.value, z = y.value.from, we = X;
|
|
1315
1315
|
else
|
|
1316
1316
|
for (let K = 0; X >= u[K] && z < Y; K++)
|
|
1317
1317
|
X -= u[K], z += $t;
|
|
@@ -1326,8 +1326,8 @@ function qu({
|
|
|
1326
1326
|
}
|
|
1327
1327
|
function I(A, T, Y, ce, ge) {
|
|
1328
1328
|
const z = typeof ge == "string" && ge.indexOf("-force") !== -1, X = z === !0 ? ge.replace("-force", "") : ge, we = X !== void 0 ? X : "start";
|
|
1329
|
-
let K = Math.max(0, Y -
|
|
1330
|
-
Ie > e.value && (Ie = e.value, K = Math.max(0, Ie -
|
|
1329
|
+
let K = Math.max(0, Y - g.value[we]), Ie = K + g.value.total;
|
|
1330
|
+
Ie > e.value && (Ie = e.value, K = Math.max(0, Ie - g.value.total)), m = T.scrollStart;
|
|
1331
1331
|
const Ue = K !== y.value.from || Ie !== y.value.to;
|
|
1332
1332
|
if (Ue === !1 && X === void 0) {
|
|
1333
1333
|
W(Y);
|
|
@@ -1340,14 +1340,14 @@ function qu({
|
|
|
1340
1340
|
const kt = X !== void 0 ? d.slice(K, Y).reduce(eo, 0) : 0;
|
|
1341
1341
|
if (Ue === !0) {
|
|
1342
1342
|
const nt = Ie >= y.value.from && K <= y.value.to ? y.value.to : Ie;
|
|
1343
|
-
y.value = { from: K, to: nt },
|
|
1343
|
+
y.value = { from: K, to: nt }, h.value = ho(u, d, 0, K), p.value = ho(u, d, Ie, e.value), requestAnimationFrame(() => {
|
|
1344
1344
|
y.value.to !== Ie && m === T.scrollStart && (y.value = { from: y.value.from, to: Ie }, p.value = ho(u, d, Ie, e.value));
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
1347
|
requestAnimationFrame(() => {
|
|
1348
1348
|
if (m !== T.scrollStart) return;
|
|
1349
1349
|
Ue === !0 && G(K);
|
|
1350
|
-
const nt = d.slice(K, Y).reduce(eo, 0), ft = nt + T.offsetStart +
|
|
1350
|
+
const nt = d.slice(K, Y).reduce(eo, 0), ft = nt + T.offsetStart + h.value, Pt = ft + d[Y];
|
|
1351
1351
|
let E = ft + ce;
|
|
1352
1352
|
if (X !== void 0) {
|
|
1353
1353
|
const k = nt - kt, V = T.scrollStart + k;
|
|
@@ -1396,7 +1396,7 @@ function qu({
|
|
|
1396
1396
|
X += d[K];
|
|
1397
1397
|
u.push(X);
|
|
1398
1398
|
}
|
|
1399
|
-
c = -1, m = void 0,
|
|
1399
|
+
c = -1, m = void 0, h.value = ho(u, d, 0, y.value.from), p.value = ho(u, d, y.value.to, e.value), A >= 0 ? (G(y.value.from), We(() => {
|
|
1400
1400
|
P(A);
|
|
1401
1401
|
})) : J();
|
|
1402
1402
|
}
|
|
@@ -1420,7 +1420,7 @@ function qu({
|
|
|
1420
1420
|
ge,
|
|
1421
1421
|
Math.ceil((l.virtualScrollSliceSize > 0 ? l.virtualScrollSliceSize : 10) / ce)
|
|
1422
1422
|
);
|
|
1423
|
-
|
|
1423
|
+
g.value = {
|
|
1424
1424
|
total: Math.ceil(z * ce),
|
|
1425
1425
|
start: Math.ceil(z * T),
|
|
1426
1426
|
center: Math.ceil(z * (0.5 + T)),
|
|
@@ -1440,7 +1440,7 @@ function qu({
|
|
|
1440
1440
|
}, [
|
|
1441
1441
|
w("tr", [
|
|
1442
1442
|
w("td", {
|
|
1443
|
-
style: { [Y]: `${
|
|
1443
|
+
style: { [Y]: `${h.value}px`, ...ce },
|
|
1444
1444
|
colspan: D.value
|
|
1445
1445
|
})
|
|
1446
1446
|
])
|
|
@@ -1448,7 +1448,7 @@ function qu({
|
|
|
1448
1448
|
class: "q-virtual-scroll__padding",
|
|
1449
1449
|
key: "before",
|
|
1450
1450
|
ref: v,
|
|
1451
|
-
style: { [Y]: `${
|
|
1451
|
+
style: { [Y]: `${h.value}px`, ...ce }
|
|
1452
1452
|
}),
|
|
1453
1453
|
w(A, {
|
|
1454
1454
|
class: "q-virtual-scroll__content",
|
|
@@ -1508,7 +1508,7 @@ function qu({
|
|
|
1508
1508
|
J.cancel();
|
|
1509
1509
|
}), Object.assign(i, { scrollTo: P, reset: B, refresh: L }), {
|
|
1510
1510
|
virtualScrollSliceRange: y,
|
|
1511
|
-
virtualScrollSliceSizeComputed:
|
|
1511
|
+
virtualScrollSliceSizeComputed: g,
|
|
1512
1512
|
setVirtualScrollSize: Q,
|
|
1513
1513
|
onVirtualScrollEvt: J,
|
|
1514
1514
|
localResetVirtualScroll: ae,
|
|
@@ -1614,7 +1614,7 @@ const Yf = {
|
|
|
1614
1614
|
onVirtualScrollEvt: m
|
|
1615
1615
|
} = qu({
|
|
1616
1616
|
virtualScrollLength: l,
|
|
1617
|
-
getVirtualScrollTarget:
|
|
1617
|
+
getVirtualScrollTarget: h,
|
|
1618
1618
|
getVirtualScrollEl: d
|
|
1619
1619
|
}), c = b(() => {
|
|
1620
1620
|
if (l.value === 0)
|
|
@@ -1630,18 +1630,18 @@ const Yf = {
|
|
|
1630
1630
|
he(l, () => {
|
|
1631
1631
|
i();
|
|
1632
1632
|
}), he(() => e.scrollTarget, () => {
|
|
1633
|
-
|
|
1633
|
+
g(), p();
|
|
1634
1634
|
});
|
|
1635
1635
|
function d() {
|
|
1636
1636
|
return r.value.$el || r.value;
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function h() {
|
|
1639
1639
|
return o;
|
|
1640
1640
|
}
|
|
1641
1641
|
function p() {
|
|
1642
1642
|
o = zu(d(), e.scrollTarget), o.addEventListener("scroll", m, vt.passive);
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function g() {
|
|
1645
1645
|
o !== void 0 && (o.removeEventListener("scroll", m, vt.passive), o = void 0);
|
|
1646
1646
|
}
|
|
1647
1647
|
function v() {
|
|
@@ -1658,9 +1658,9 @@ const Yf = {
|
|
|
1658
1658
|
}), Ql(() => {
|
|
1659
1659
|
p();
|
|
1660
1660
|
}), Bo(() => {
|
|
1661
|
-
|
|
1661
|
+
g();
|
|
1662
1662
|
}), bt(() => {
|
|
1663
|
-
|
|
1663
|
+
g();
|
|
1664
1664
|
}), () => {
|
|
1665
1665
|
if (t.default === void 0) {
|
|
1666
1666
|
console.error("QVirtualScroll: default scoped slot is required for rendering");
|
|
@@ -1835,7 +1835,7 @@ const Qa = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Xa = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
1835
1835
|
};
|
|
1836
1836
|
function rm(e, t) {
|
|
1837
1837
|
const { props: n, proxy: o } = Ee(), r = se(!1), l = se(null), a = se(!1);
|
|
1838
|
-
tm({ validate: p, resetValidation:
|
|
1838
|
+
tm({ validate: p, resetValidation: h });
|
|
1839
1839
|
let i = 0, s;
|
|
1840
1840
|
const m = b(
|
|
1841
1841
|
() => n.rules !== void 0 && n.rules !== null && n.rules.length !== 0
|
|
@@ -1843,18 +1843,18 @@ function rm(e, t) {
|
|
|
1843
1843
|
() => n.error === !0 || r.value === !0
|
|
1844
1844
|
), u = b(() => typeof n.errorMessage == "string" && n.errorMessage.length !== 0 ? n.errorMessage : l.value);
|
|
1845
1845
|
he(() => n.modelValue, () => {
|
|
1846
|
-
a.value = !0, c.value === !0 && n.lazyRules === !1 &&
|
|
1846
|
+
a.value = !0, c.value === !0 && n.lazyRules === !1 && g();
|
|
1847
1847
|
});
|
|
1848
1848
|
function d() {
|
|
1849
|
-
n.lazyRules !== "ondemand" && c.value === !0 && a.value === !0 &&
|
|
1849
|
+
n.lazyRules !== "ondemand" && c.value === !0 && a.value === !0 && g();
|
|
1850
1850
|
}
|
|
1851
1851
|
he(() => n.reactiveRules, (v) => {
|
|
1852
1852
|
v === !0 ? s === void 0 && (s = he(() => n.rules, d, { immediate: !0, deep: !0 })) : s !== void 0 && (s(), s = void 0);
|
|
1853
1853
|
}, { immediate: !0 }), he(() => n.lazyRules, d), he(e, (v) => {
|
|
1854
|
-
v === !0 ? a.value = !0 : c.value === !0 && n.lazyRules !== "ondemand" &&
|
|
1854
|
+
v === !0 ? a.value = !0 : c.value === !0 && n.lazyRules !== "ondemand" && g();
|
|
1855
1855
|
});
|
|
1856
|
-
function
|
|
1857
|
-
i++, t.value = !1, a.value = !1, r.value = !1, l.value = null,
|
|
1856
|
+
function h() {
|
|
1857
|
+
i++, t.value = !1, a.value = !1, r.value = !1, l.value = null, g.cancel();
|
|
1858
1858
|
}
|
|
1859
1859
|
function p(v = n.modelValue) {
|
|
1860
1860
|
if (n.disable === !0 || m.value === !1)
|
|
@@ -1882,16 +1882,16 @@ function rm(e, t) {
|
|
|
1882
1882
|
(x) => (_ === i && (console.error(x), y(!0)), !1)
|
|
1883
1883
|
));
|
|
1884
1884
|
}
|
|
1885
|
-
const
|
|
1885
|
+
const g = Xl(p, 0);
|
|
1886
1886
|
return bt(() => {
|
|
1887
|
-
s == null || s(),
|
|
1888
|
-
}), Object.assign(o, { resetValidation:
|
|
1887
|
+
s == null || s(), g.cancel();
|
|
1888
|
+
}), Object.assign(o, { resetValidation: h, validate: p }), xt(o, "hasError", () => f.value), {
|
|
1889
1889
|
isDirtyModel: a,
|
|
1890
1890
|
hasRules: m,
|
|
1891
1891
|
hasError: f,
|
|
1892
1892
|
errorMessage: u,
|
|
1893
1893
|
validate: p,
|
|
1894
|
-
resetValidation:
|
|
1894
|
+
resetValidation: h
|
|
1895
1895
|
};
|
|
1896
1896
|
}
|
|
1897
1897
|
let Tn = [], Oo = [];
|
|
@@ -2014,10 +2014,10 @@ function oa(e) {
|
|
|
2014
2014
|
hasError: c,
|
|
2015
2015
|
errorMessage: f,
|
|
2016
2016
|
resetValidation: u
|
|
2017
|
-
} = rm(e.focused, e.innerLoading), d = e.floatingLabel !== void 0 ? b(() => t.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : b(() => t.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0),
|
|
2017
|
+
} = rm(e.focused, e.innerLoading), d = e.floatingLabel !== void 0 ? b(() => t.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : b(() => t.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), h = b(
|
|
2018
2018
|
() => t.bottomSlots === !0 || t.hint !== void 0 || m.value === !0 || t.counter === !0 || t.error !== null
|
|
2019
|
-
), p = b(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"),
|
|
2020
|
-
() => `q-field row no-wrap items-start q-field--${p.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (d.value === !0 ? " q-field--float" : "") + (_.value === !0 ? " q-field--labeled" : "") + (t.dense === !0 ? " q-field--dense" : "") + (t.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (c.value === !0 ? " q-field--error" : "") + (c.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (t.hideBottomSpace !== !0 &&
|
|
2019
|
+
), p = b(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), g = b(
|
|
2020
|
+
() => `q-field row no-wrap items-start q-field--${p.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (d.value === !0 ? " q-field--float" : "") + (_.value === !0 ? " q-field--labeled" : "") + (t.dense === !0 ? " q-field--dense" : "") + (t.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (c.value === !0 ? " q-field--error" : "") + (c.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (t.hideBottomSpace !== !0 && h.value === !0 ? " q-field--with-bottom" : "") + (t.disable === !0 ? " q-field--disabled" : t.readonly === !0 ? " q-field--readonly" : "")
|
|
2021
2021
|
), v = b(
|
|
2022
2022
|
() => "q-field__control relative-position row no-wrap" + (t.bgColor !== void 0 ? ` bg-${t.bgColor}` : "") + (c.value === !0 ? " text-negative" : typeof t.standout == "string" && t.standout.length !== 0 && e.focused.value === !0 ? ` ${t.standout}` : t.color !== void 0 ? ` text-${t.color}` : "")
|
|
2023
2023
|
), _ = b(
|
|
@@ -2182,7 +2182,7 @@ function oa(e) {
|
|
|
2182
2182
|
return w(e.tag.value, {
|
|
2183
2183
|
ref: e.rootRef,
|
|
2184
2184
|
class: [
|
|
2185
|
-
|
|
2185
|
+
g.value,
|
|
2186
2186
|
r.class
|
|
2187
2187
|
],
|
|
2188
2188
|
style: r.style,
|
|
@@ -2201,7 +2201,7 @@ function oa(e) {
|
|
|
2201
2201
|
tabindex: -1,
|
|
2202
2202
|
...e.controlEvents
|
|
2203
2203
|
}, G()),
|
|
2204
|
-
|
|
2204
|
+
h.value === !0 ? ae() : null
|
|
2205
2205
|
]),
|
|
2206
2206
|
o.after !== void 0 ? w("div", {
|
|
2207
2207
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
@@ -2240,11 +2240,11 @@ function ei(e, t, n, o) {
|
|
|
2240
2240
|
const r = n.modifiers.color;
|
|
2241
2241
|
let l = n.modifiers.center;
|
|
2242
2242
|
l = l === !0 || o === !0;
|
|
2243
|
-
const a = document.createElement("span"), i = document.createElement("span"), s = Tu(e), { left: m, top: c, width: f, height: u } = t.getBoundingClientRect(), d = Math.sqrt(f * f + u * u),
|
|
2243
|
+
const a = document.createElement("span"), i = document.createElement("span"), s = Tu(e), { left: m, top: c, width: f, height: u } = t.getBoundingClientRect(), d = Math.sqrt(f * f + u * u), h = d / 2, p = `${(f - d) / 2}px`, g = l ? p : `${s.left - m - h}px`, v = `${(u - d) / 2}px`, _ = l ? v : `${s.top - c - h}px`;
|
|
2244
2244
|
i.className = "q-ripple__inner", El(i, {
|
|
2245
2245
|
height: `${d}px`,
|
|
2246
2246
|
width: `${d}px`,
|
|
2247
|
-
transform: `translate3d(${
|
|
2247
|
+
transform: `translate3d(${g},${_},0) scale3d(.2,.2,1)`,
|
|
2248
2248
|
opacity: 0
|
|
2249
2249
|
}), a.className = `q-ripple${r ? " text-" + r : ""}`, a.setAttribute("dir", "ltr"), a.appendChild(i), t.appendChild(a);
|
|
2250
2250
|
const S = () => {
|
|
@@ -2351,69 +2351,69 @@ const Gu = uf(
|
|
|
2351
2351
|
const { proxy: { $q: o } } = Ee(), r = At(e, o), l = qo(e, cm), a = b(() => e.selected === !0 || e.icon !== void 0), i = b(() => e.selected === !0 ? e.iconSelected || o.iconSet.chip.selected : e.icon), s = b(() => e.iconRemove || o.iconSet.chip.remove), m = b(
|
|
2352
2352
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
2353
2353
|
), c = b(() => {
|
|
2354
|
-
const
|
|
2355
|
-
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (
|
|
2354
|
+
const g = e.outline === !0 && e.color || e.textColor;
|
|
2355
|
+
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (g ? ` text-${g} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (m.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (r.value === !0 ? " q-chip--dark q-dark" : "");
|
|
2356
2356
|
}), f = b(() => {
|
|
2357
|
-
const
|
|
2358
|
-
...
|
|
2357
|
+
const g = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 }, v = {
|
|
2358
|
+
...g,
|
|
2359
2359
|
role: "button",
|
|
2360
2360
|
"aria-hidden": "false",
|
|
2361
2361
|
"aria-label": e.removeAriaLabel || o.lang.label.remove
|
|
2362
2362
|
};
|
|
2363
|
-
return { chip:
|
|
2363
|
+
return { chip: g, remove: v };
|
|
2364
2364
|
});
|
|
2365
|
-
function u(
|
|
2366
|
-
|
|
2365
|
+
function u(g) {
|
|
2366
|
+
g.keyCode === 13 && d(g);
|
|
2367
2367
|
}
|
|
2368
|
-
function d(
|
|
2369
|
-
e.disable || (n("update:selected", !e.selected), n("click",
|
|
2368
|
+
function d(g) {
|
|
2369
|
+
e.disable || (n("update:selected", !e.selected), n("click", g));
|
|
2370
2370
|
}
|
|
2371
|
-
function g
|
|
2372
|
-
(
|
|
2371
|
+
function h(g) {
|
|
2372
|
+
(g.keyCode === void 0 || g.keyCode === 13) && (lt(g), e.disable === !1 && (n("update:modelValue", !1), n("remove")));
|
|
2373
2373
|
}
|
|
2374
2374
|
function p() {
|
|
2375
|
-
const
|
|
2376
|
-
m.value === !0 &&
|
|
2375
|
+
const g = [];
|
|
2376
|
+
m.value === !0 && g.push(
|
|
2377
2377
|
w("div", { class: "q-focus-helper" })
|
|
2378
|
-
), a.value === !0 &&
|
|
2378
|
+
), a.value === !0 && g.push(
|
|
2379
2379
|
w(Ke, {
|
|
2380
2380
|
class: "q-chip__icon q-chip__icon--left",
|
|
2381
2381
|
name: i.value
|
|
2382
2382
|
})
|
|
2383
2383
|
);
|
|
2384
2384
|
const v = e.label !== void 0 ? [w("div", { class: "ellipsis" }, [e.label])] : void 0;
|
|
2385
|
-
return
|
|
2385
|
+
return g.push(
|
|
2386
2386
|
w("div", {
|
|
2387
2387
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
2388
2388
|
}, Df(t.default, v))
|
|
2389
|
-
), e.iconRight &&
|
|
2389
|
+
), e.iconRight && g.push(
|
|
2390
2390
|
w(Ke, {
|
|
2391
2391
|
class: "q-chip__icon q-chip__icon--right",
|
|
2392
2392
|
name: e.iconRight
|
|
2393
2393
|
})
|
|
2394
|
-
), e.removable === !0 &&
|
|
2394
|
+
), e.removable === !0 && g.push(
|
|
2395
2395
|
w(Ke, {
|
|
2396
2396
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
2397
2397
|
name: s.value,
|
|
2398
2398
|
...f.value.remove,
|
|
2399
|
-
onClick:
|
|
2400
|
-
onKeyup:
|
|
2399
|
+
onClick: h,
|
|
2400
|
+
onKeyup: h
|
|
2401
2401
|
})
|
|
2402
|
-
),
|
|
2402
|
+
), g;
|
|
2403
2403
|
}
|
|
2404
2404
|
return () => {
|
|
2405
2405
|
if (e.modelValue === !1) return;
|
|
2406
|
-
const
|
|
2406
|
+
const g = {
|
|
2407
2407
|
class: c.value,
|
|
2408
2408
|
style: l.value
|
|
2409
2409
|
};
|
|
2410
2410
|
return m.value === !0 && Object.assign(
|
|
2411
|
-
|
|
2411
|
+
g,
|
|
2412
2412
|
f.value.chip,
|
|
2413
2413
|
{ onClick: d, onKeyup: u }
|
|
2414
2414
|
), If(
|
|
2415
2415
|
"div",
|
|
2416
|
-
|
|
2416
|
+
g,
|
|
2417
2417
|
p(),
|
|
2418
2418
|
"ripple",
|
|
2419
2419
|
e.ripple !== !1 && e.disable !== !0,
|
|
@@ -2502,7 +2502,7 @@ function Zu({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
2502
2502
|
} : c.value === !0 ? {
|
|
2503
2503
|
href: m.value.href,
|
|
2504
2504
|
target: o.target
|
|
2505
|
-
} : {}),
|
|
2505
|
+
} : {}), h = b(() => {
|
|
2506
2506
|
if (c.value === !1)
|
|
2507
2507
|
return -1;
|
|
2508
2508
|
const { matched: D } = m.value, { length: x } = D, O = D[x - 1];
|
|
@@ -2524,10 +2524,10 @@ function Zu({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
2524
2524
|
) : L
|
|
2525
2525
|
);
|
|
2526
2526
|
}), p = b(
|
|
2527
|
-
() => c.value === !0 &&
|
|
2528
|
-
),
|
|
2529
|
-
() => p.value === !0 &&
|
|
2530
|
-
), v = b(() => c.value === !0 ?
|
|
2527
|
+
() => c.value === !0 && h.value !== -1 && fm(r.$route.params, m.value.params)
|
|
2528
|
+
), g = b(
|
|
2529
|
+
() => p.value === !0 && h.value === r.$route.matched.length - 1 && vm(r.$route.params, m.value.params)
|
|
2530
|
+
), v = b(() => c.value === !0 ? g.value === !0 ? ` ${o.exactActiveClass} ${o.activeClass}` : o.exact === !0 ? "" : p.value === !0 ? ` ${o.activeClass}` : "" : "");
|
|
2531
2531
|
function _(D) {
|
|
2532
2532
|
try {
|
|
2533
2533
|
return r.$router.resolve(D);
|
|
@@ -2564,7 +2564,7 @@ function Zu({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
2564
2564
|
linkTag: u,
|
|
2565
2565
|
resolvedLink: m,
|
|
2566
2566
|
linkIsActive: p,
|
|
2567
|
-
linkIsExactActive:
|
|
2567
|
+
linkIsExactActive: g,
|
|
2568
2568
|
linkClass: v,
|
|
2569
2569
|
linkAttrs: d,
|
|
2570
2570
|
getLink: _,
|
|
@@ -2598,12 +2598,12 @@ const Ft = Oe({
|
|
|
2598
2598
|
() => e.clickable === !0 || l.value === !0 || e.tag === "label"
|
|
2599
2599
|
), d = b(
|
|
2600
2600
|
() => e.disable !== !0 && u.value === !0
|
|
2601
|
-
),
|
|
2601
|
+
), h = b(
|
|
2602
2602
|
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (r.value === !0 ? " q-item--dark" : "") + (l.value === !0 && e.active === null ? i.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (d.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")
|
|
2603
2603
|
), p = b(() => e.insetLevel === void 0 ? null : {
|
|
2604
2604
|
["padding" + (o.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
2605
2605
|
});
|
|
2606
|
-
function
|
|
2606
|
+
function g(S) {
|
|
2607
2607
|
d.value === !0 && (f.value !== null && S.qAvoidFocus !== !0 && (S.qKeyEvent !== !0 && document.activeElement === c.value ? f.value.focus() : document.activeElement === f.value && c.value.focus()), m(S));
|
|
2608
2608
|
}
|
|
2609
2609
|
function v(S) {
|
|
@@ -2623,10 +2623,10 @@ const Ft = Oe({
|
|
|
2623
2623
|
return () => {
|
|
2624
2624
|
const S = {
|
|
2625
2625
|
ref: c,
|
|
2626
|
-
class:
|
|
2626
|
+
class: h.value,
|
|
2627
2627
|
style: p.value,
|
|
2628
2628
|
role: "listitem",
|
|
2629
|
-
onClick:
|
|
2629
|
+
onClick: g,
|
|
2630
2630
|
onKeyup: v
|
|
2631
2631
|
};
|
|
2632
2632
|
return d.value === !0 ? (S.tabindex = e.tabindex || "0", Object.assign(S, a.value)) : u.value === !0 && (S["aria-disabled"] = "true"), w(
|
|
@@ -2723,11 +2723,11 @@ function bm({
|
|
|
2723
2723
|
mobileTouch(d) {
|
|
2724
2724
|
if (m.mobileCleanup(d), s(d) !== !0) return;
|
|
2725
2725
|
r.hide(d), a.value.classList.add("non-selectable");
|
|
2726
|
-
const
|
|
2726
|
+
const h = d.target;
|
|
2727
2727
|
vl(m, "anchor", [
|
|
2728
|
-
[
|
|
2729
|
-
[
|
|
2730
|
-
[
|
|
2728
|
+
[h, "touchmove", "mobileCleanup", "passive"],
|
|
2729
|
+
[h, "touchend", "mobileCleanup", "passive"],
|
|
2730
|
+
[h, "touchcancel", "mobileCleanup", "passive"],
|
|
2731
2731
|
[a.value, "contextmenu", "prevent", "notPassive"]
|
|
2732
2732
|
]), i = setTimeout(() => {
|
|
2733
2733
|
i = null, r.show(d), d.qAnchorHandled = !0;
|
|
@@ -2738,16 +2738,16 @@ function bm({
|
|
|
2738
2738
|
}
|
|
2739
2739
|
}), n = function(d = o.contextMenu) {
|
|
2740
2740
|
if (o.noParentEvent === !0 || a.value === null) return;
|
|
2741
|
-
let
|
|
2742
|
-
d === !0 ? r.$q.platform.is.mobile === !0 ?
|
|
2741
|
+
let h;
|
|
2742
|
+
d === !0 ? r.$q.platform.is.mobile === !0 ? h = [
|
|
2743
2743
|
[a.value, "touchstart", "mobileTouch", "passive"]
|
|
2744
|
-
] :
|
|
2744
|
+
] : h = [
|
|
2745
2745
|
[a.value, "mousedown", "hide", "passive"],
|
|
2746
2746
|
[a.value, "contextmenu", "contextClick", "notPassive"]
|
|
2747
|
-
] :
|
|
2747
|
+
] : h = [
|
|
2748
2748
|
[a.value, "click", "toggle", "passive"],
|
|
2749
2749
|
[a.value, "keyup", "toggleKey", "passive"]
|
|
2750
|
-
], vl(m, "anchor",
|
|
2750
|
+
], vl(m, "anchor", h);
|
|
2751
2751
|
});
|
|
2752
2752
|
function c() {
|
|
2753
2753
|
Ou(m, "anchor");
|
|
@@ -2836,7 +2836,7 @@ function tc({
|
|
|
2836
2836
|
const a = Ee(), { props: i, emit: s, proxy: m } = a;
|
|
2837
2837
|
let c;
|
|
2838
2838
|
function f(_) {
|
|
2839
|
-
e.value === !0 ?
|
|
2839
|
+
e.value === !0 ? h(_) : u(_);
|
|
2840
2840
|
}
|
|
2841
2841
|
function u(_) {
|
|
2842
2842
|
if (i.disable === !0 || (_ == null ? void 0 : _.qAnchorHandled) === !0 || t !== void 0 && t(_) !== !0) return;
|
|
@@ -2848,7 +2848,7 @@ function tc({
|
|
|
2848
2848
|
function d(_) {
|
|
2849
2849
|
e.value !== !0 && (e.value = !0, s("beforeShow", _), o !== void 0 ? o(_) : s("show", _));
|
|
2850
2850
|
}
|
|
2851
|
-
function
|
|
2851
|
+
function h(_) {
|
|
2852
2852
|
if (i.disable === !0) return;
|
|
2853
2853
|
const S = i["onUpdate:modelValue"] !== void 0;
|
|
2854
2854
|
S === !0 && (s("update:modelValue", !1), c = _, We(() => {
|
|
@@ -2858,15 +2858,15 @@ function tc({
|
|
|
2858
2858
|
function p(_) {
|
|
2859
2859
|
e.value !== !1 && (e.value = !1, s("beforeHide", _), r !== void 0 ? r(_) : s("hide", _));
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function g(_) {
|
|
2862
2862
|
i.disable === !0 && _ === !0 ? i["onUpdate:modelValue"] !== void 0 && s("update:modelValue", !1) : _ === !0 !== e.value && (_ === !0 ? d : p)(c);
|
|
2863
2863
|
}
|
|
2864
|
-
he(() => i.modelValue,
|
|
2865
|
-
n.value === !0 && e.value === !0 &&
|
|
2864
|
+
he(() => i.modelValue, g), n !== void 0 && ra(a) === !0 && he(() => m.$route.fullPath, () => {
|
|
2865
|
+
n.value === !0 && e.value === !0 && h();
|
|
2866
2866
|
}), ln(() => {
|
|
2867
|
-
|
|
2867
|
+
g(i.modelValue);
|
|
2868
2868
|
});
|
|
2869
|
-
const v = { show: u, hide:
|
|
2869
|
+
const v = { show: u, hide: h, toggle: f };
|
|
2870
2870
|
return Object.assign(m, v), v;
|
|
2871
2871
|
}
|
|
2872
2872
|
let Em = 1, Sm = document.body;
|
|
@@ -3153,7 +3153,7 @@ function dc(e, t = 0) {
|
|
|
3153
3153
|
const x = document.body.style, { offsetLeft: O, offsetTop: B } = window.visualViewport;
|
|
3154
3154
|
O !== ai && (x.setProperty("--q-pe-left", O + "px"), ai = O), B !== ii && (x.setProperty("--q-pe-top", B + "px"), ii = B);
|
|
3155
3155
|
}
|
|
3156
|
-
const { scrollLeft: u, scrollTop: d } = n,
|
|
3156
|
+
const { scrollLeft: u, scrollTop: d } = n, h = i === void 0 ? Nm(r, m === !0 ? [0, 0] : o) : Pm(r, i, o);
|
|
3157
3157
|
Object.assign(n.style, {
|
|
3158
3158
|
top: 0,
|
|
3159
3159
|
left: 0,
|
|
@@ -3163,33 +3163,33 @@ function dc(e, t = 0) {
|
|
|
3163
3163
|
maxHeight: c,
|
|
3164
3164
|
visibility: "visible"
|
|
3165
3165
|
});
|
|
3166
|
-
const { offsetWidth: p, offsetHeight:
|
|
3166
|
+
const { offsetWidth: p, offsetHeight: g } = n, { elWidth: v, elHeight: _ } = s === !0 || m === !0 ? { elWidth: Math.max(h.width, p), elHeight: m === !0 ? Math.max(h.height, g) : g } : { elWidth: p, elHeight: g };
|
|
3167
3167
|
let S = { maxWidth: f, maxHeight: c };
|
|
3168
|
-
(s === !0 || m === !0) && (S.minWidth =
|
|
3168
|
+
(s === !0 || m === !0) && (S.minWidth = h.width + "px", m === !0 && (S.minHeight = h.height + "px")), Object.assign(n.style, S);
|
|
3169
3169
|
const y = Rm(v, _);
|
|
3170
|
-
let D = ci(
|
|
3170
|
+
let D = ci(h, y, l, a);
|
|
3171
3171
|
if (i === void 0 || o === void 0)
|
|
3172
|
-
Jr(D,
|
|
3172
|
+
Jr(D, h, y, l, a);
|
|
3173
3173
|
else {
|
|
3174
3174
|
const { top: x, left: O } = D;
|
|
3175
|
-
Jr(D,
|
|
3175
|
+
Jr(D, h, y, l, a);
|
|
3176
3176
|
let B = !1;
|
|
3177
3177
|
if (D.top !== x) {
|
|
3178
3178
|
B = !0;
|
|
3179
3179
|
const L = 2 * o[1];
|
|
3180
|
-
|
|
3180
|
+
h.center = h.top -= L, h.bottom -= L + 2;
|
|
3181
3181
|
}
|
|
3182
3182
|
if (D.left !== O) {
|
|
3183
3183
|
B = !0;
|
|
3184
3184
|
const L = 2 * o[0];
|
|
3185
|
-
|
|
3185
|
+
h.middle = h.left -= L, h.right -= L + 2;
|
|
3186
3186
|
}
|
|
3187
|
-
B === !0 && (D = ci(
|
|
3187
|
+
B === !0 && (D = ci(h, y, l, a), Jr(D, h, y, l, a));
|
|
3188
3188
|
}
|
|
3189
3189
|
S = {
|
|
3190
3190
|
top: D.top + "px",
|
|
3191
3191
|
left: D.left + "px"
|
|
3192
|
-
}, D.maxHeight !== void 0 && (S.maxHeight = D.maxHeight + "px",
|
|
3192
|
+
}, D.maxHeight !== void 0 && (S.maxHeight = D.maxHeight + "px", h.height > D.maxHeight && (S.minHeight = S.maxHeight)), D.maxWidth !== void 0 && (S.maxWidth = D.maxWidth + "px", h.width > D.maxWidth && (S.minWidth = S.maxWidth)), Object.assign(n.style, S), n.scrollTop !== d && (n.scrollTop = d), n.scrollLeft !== u && (n.scrollLeft = u);
|
|
3193
3193
|
}
|
|
3194
3194
|
function Jr(e, t, n, o, r) {
|
|
3195
3195
|
const l = n.bottom, a = n.right, i = Wf(), s = window.innerHeight - i, m = document.body.clientWidth;
|
|
@@ -3272,7 +3272,7 @@ const fc = Oe({
|
|
|
3272
3272
|
let r = null, l, a, i;
|
|
3273
3273
|
const s = Ee(), { proxy: m } = s, { $q: c } = m, f = se(null), u = se(!1), d = b(
|
|
3274
3274
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
3275
|
-
),
|
|
3275
|
+
), h = At(e, c), { registerTick: p, removeTick: g } = lc(), { registerTimeout: v } = ac(), { transitionProps: _, transitionStyle: S } = rc(e), { localScrollTarget: y, changeScrollEvent: D, unconfigureScrollTarget: x } = ym(e, Y), { anchorEl: O, canShow: B } = bm({ showing: u }), { hide: L } = tc({
|
|
3276
3276
|
showing: u,
|
|
3277
3277
|
canShow: B,
|
|
3278
3278
|
handleShow: ie,
|
|
@@ -3293,7 +3293,7 @@ const fc = Oe({
|
|
|
3293
3293
|
c.lang.rtl
|
|
3294
3294
|
)
|
|
3295
3295
|
), ae = b(() => e.cover === !0 ? M.value : ui(e.self || "top start", c.lang.rtl)), Q = b(
|
|
3296
|
-
() => (e.square === !0 ? " q-menu--square" : "") + (
|
|
3296
|
+
() => (e.square === !0 ? " q-menu--square" : "") + (h.value === !0 ? " q-menu--dark q-dark" : "")
|
|
3297
3297
|
), H = b(() => e.autoClose === !0 ? { onClick: ce } : {}), W = b(
|
|
3298
3298
|
() => u.value === !0 && e.persistent !== !0
|
|
3299
3299
|
);
|
|
@@ -3324,7 +3324,7 @@ const fc = Oe({
|
|
|
3324
3324
|
}, e.transitionDuration);
|
|
3325
3325
|
}
|
|
3326
3326
|
function A(K) {
|
|
3327
|
-
|
|
3327
|
+
g(), q(), T(!0), r !== null && // menu was hidden from code or ESC plugin
|
|
3328
3328
|
(K === void 0 || K.qClickOutside !== !0) && ((((K == null ? void 0 : K.type.indexOf("key")) === 0 ? r.closest('[tabindex]:not([tabindex^="-"])') : void 0) || r).focus(), r = null), v(() => {
|
|
3329
3329
|
q(!0), n("hide", K);
|
|
3330
3330
|
}, e.transitionDuration);
|
|
@@ -3514,7 +3514,7 @@ const qm = {
|
|
|
3514
3514
|
let s = null, m = null, c, f;
|
|
3515
3515
|
const u = b(
|
|
3516
3516
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
3517
|
-
), { preventBodyScroll: d } = $m(), { registerTimeout:
|
|
3517
|
+
), { preventBodyScroll: d } = $m(), { registerTimeout: h } = ac(), { registerTick: p, removeTick: g } = lc(), { transitionProps: v, transitionStyle: _ } = rc(
|
|
3518
3518
|
e,
|
|
3519
3519
|
() => hi[e.position][0],
|
|
3520
3520
|
() => hi[e.position][1]
|
|
@@ -3542,7 +3542,7 @@ const qm = {
|
|
|
3542
3542
|
});
|
|
3543
3543
|
function ae(z) {
|
|
3544
3544
|
var X;
|
|
3545
|
-
L(), m = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, A(e.maximized), y(), i.value = !0, e.noFocus !== !0 ? ((X = document.activeElement) == null || X.blur(), p(H)) :
|
|
3545
|
+
L(), m = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, A(e.maximized), y(), i.value = !0, e.noFocus !== !0 ? ((X = document.activeElement) == null || X.blur(), p(H)) : g(), h(() => {
|
|
3546
3546
|
if (r.proxy.$q.platform.is.ios === !0) {
|
|
3547
3547
|
if (e.seamless !== !0 && document.activeElement) {
|
|
3548
3548
|
const { top: we, bottom: K } = document.activeElement.getBoundingClientRect(), { innerHeight: Ie } = window, Ue = window.visualViewport !== void 0 ? window.visualViewport.height : Ie;
|
|
@@ -3557,7 +3557,7 @@ const qm = {
|
|
|
3557
3557
|
}, e.transitionDuration);
|
|
3558
3558
|
}
|
|
3559
3559
|
function Q(z) {
|
|
3560
|
-
|
|
3560
|
+
g(), P(), ie(!0), i.value = !0, D(), m !== null && ((((z == null ? void 0 : z.type.indexOf("key")) === 0 ? m.closest('[tabindex]:not([tabindex^="-"])') : void 0) || m).focus(), m = null), h(() => {
|
|
3561
3561
|
D(!0), i.value = !1, n("hide", z);
|
|
3562
3562
|
}, e.transitionDuration);
|
|
3563
3563
|
}
|
|
@@ -3777,7 +3777,7 @@ const aa = Oe({
|
|
|
3777
3777
|
],
|
|
3778
3778
|
setup(e, { slots: t, emit: n }) {
|
|
3779
3779
|
const { proxy: o } = Ee(), { $q: r } = o, l = se(!1), a = se(!1), i = se(-1), s = se(""), m = se(!1), c = se(!1);
|
|
3780
|
-
let f = null, u = null, d,
|
|
3780
|
+
let f = null, u = null, d, h, p, g = null, v, _, S, y;
|
|
3781
3781
|
const D = se(null), x = se(null), O = se(null), B = se(null), L = se(null), P = mc(e), q = vc(N), I = b(() => Array.isArray(e.options) ? e.options.length : 0), G = b(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
3782
3782
|
virtualScrollSliceRange: M,
|
|
3783
3783
|
virtualScrollSliceSizeComputed: ae,
|
|
@@ -3885,7 +3885,7 @@ const aa = Oe({
|
|
|
3885
3885
|
onKeypress: go,
|
|
3886
3886
|
onFocus: vo,
|
|
3887
3887
|
onClick(ee) {
|
|
3888
|
-
|
|
3888
|
+
h === !0 && Gt(ee);
|
|
3889
3889
|
}
|
|
3890
3890
|
};
|
|
3891
3891
|
return C.onCompositionstart = C.onCompositionupdate = C.onCompositionend = q, C;
|
|
@@ -3937,7 +3937,7 @@ const aa = Oe({
|
|
|
3937
3937
|
), Cn()), (Ye = x.value) == null || Ye.focus(), (T.value.length === 0 || nn(oe.value(T.value[0]), re) !== !0) && n("update:modelValue", e.emitValue === !0 ? re : C);
|
|
3938
3938
|
return;
|
|
3939
3939
|
}
|
|
3940
|
-
if ((
|
|
3940
|
+
if ((h !== !0 || m.value === !0) && A.focus(), vo(), T.value.length === 0) {
|
|
3941
3941
|
const Me = e.emitValue === !0 ? re : C;
|
|
3942
3942
|
n("add", { index: 0, value: Me }), n("update:modelValue", e.multiple === !0 ? [Me] : Me);
|
|
3943
3943
|
return;
|
|
@@ -4071,7 +4071,7 @@ const aa = Oe({
|
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
4073
|
function jo() {
|
|
4074
|
-
return
|
|
4074
|
+
return h === !0 ? L.value : O.value !== null && O.value.contentEl !== null ? O.value.contentEl : void 0;
|
|
4075
4075
|
}
|
|
4076
4076
|
function $r() {
|
|
4077
4077
|
return jo();
|
|
@@ -4132,10 +4132,10 @@ const aa = Oe({
|
|
|
4132
4132
|
readonly: e.readonly === !0,
|
|
4133
4133
|
...R.value
|
|
4134
4134
|
};
|
|
4135
|
-
return C !== !0 &&
|
|
4135
|
+
return C !== !0 && h === !0 && (Array.isArray(Ce.class) === !0 ? Ce.class = [...Ce.class, "no-pointer-events"] : Ce.class += " no-pointer-events"), w("input", Ce);
|
|
4136
4136
|
}
|
|
4137
4137
|
function N(C) {
|
|
4138
|
-
f !== null && (clearTimeout(f), f = null), u !== null && (clearTimeout(u), u = null), !(C && C.target && C.target.qComposing === !0) && (te(C.target.value || ""), p = !0, v = s.value, A.focused.value !== !0 && (
|
|
4138
|
+
f !== null && (clearTimeout(f), f = null), u !== null && (clearTimeout(u), u = null), !(C && C.target && C.target.qComposing === !0) && (te(C.target.value || ""), p = !0, v = s.value, A.focused.value !== !0 && (h !== !0 || m.value === !0) && A.focus(), e.onFilter !== void 0 && (f = setTimeout(() => {
|
|
4139
4139
|
f = null, ue(s.value);
|
|
4140
4140
|
}, e.inputDebounce)));
|
|
4141
4141
|
}
|
|
@@ -4153,11 +4153,11 @@ const aa = Oe({
|
|
|
4153
4153
|
const Ce = setTimeout(() => {
|
|
4154
4154
|
l.value === !0 && (l.value = !1);
|
|
4155
4155
|
}, 10);
|
|
4156
|
-
|
|
4156
|
+
g !== null && clearTimeout(g), g = Ce, n(
|
|
4157
4157
|
"filter",
|
|
4158
4158
|
C,
|
|
4159
4159
|
(Re, Ye) => {
|
|
4160
|
-
(ee === !0 || A.focused.value === !0) &&
|
|
4160
|
+
(ee === !0 || A.focused.value === !0) && g === Ce && (clearTimeout(g), typeof Re == "function" && Re(), c.value = !1, We(() => {
|
|
4161
4161
|
A.innerLoading.value = !1, A.editable.value === !0 && (ee === !0 ? l.value === !0 && Cn() : l.value === !0 ? zr(!0) : l.value = !0), typeof Ye == "function" && We(() => {
|
|
4162
4162
|
Ye(o);
|
|
4163
4163
|
}), typeof re == "function" && We(() => {
|
|
@@ -4166,7 +4166,7 @@ const aa = Oe({
|
|
|
4166
4166
|
}));
|
|
4167
4167
|
},
|
|
4168
4168
|
() => {
|
|
4169
|
-
A.focused.value === !0 &&
|
|
4169
|
+
A.focused.value === !0 && g === Ce && (clearTimeout(g), A.innerLoading.value = !1, c.value = !1), l.value === !0 && (l.value = !1);
|
|
4170
4170
|
}
|
|
4171
4171
|
);
|
|
4172
4172
|
}
|
|
@@ -4273,10 +4273,10 @@ const aa = Oe({
|
|
|
4273
4273
|
(C === null || C.id !== A.targetUid.value) && x.value !== null && x.value !== C && x.value.focus(), ie();
|
|
4274
4274
|
}
|
|
4275
4275
|
function qn() {
|
|
4276
|
-
a.value !== !0 && (i.value = -1, l.value === !0 && (l.value = !1), A.focused.value === !1 && (
|
|
4276
|
+
a.value !== !0 && (i.value = -1, l.value === !0 && (l.value = !1), A.focused.value === !1 && (g !== null && (clearTimeout(g), g = null), A.innerLoading.value === !0 && (n("filterAbort"), A.innerLoading.value = !1, c.value = !1)));
|
|
4277
4277
|
}
|
|
4278
4278
|
function Un(C) {
|
|
4279
|
-
A.editable.value === !0 && (
|
|
4279
|
+
A.editable.value === !0 && (h === !0 ? (A.onControlFocusin(C), a.value = !0, We(() => {
|
|
4280
4280
|
A.focus();
|
|
4281
4281
|
})) : A.focus(), e.onFilter !== void 0 ? ue(s.value) : (we.value !== !0 || t["no-option"] !== void 0) && (l.value = !0));
|
|
4282
4282
|
}
|
|
@@ -4316,7 +4316,7 @@ const aa = Oe({
|
|
|
4316
4316
|
C !== void 0 && Gt(C), n("popupHide", C), A.hasPopupOpen = !1, A.onControlFocusout(C);
|
|
4317
4317
|
}
|
|
4318
4318
|
function Fa() {
|
|
4319
|
-
|
|
4319
|
+
h = r.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || we.value === !1 : !0), _ = r.platform.is.ios === !0 && h === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
4320
4320
|
}
|
|
4321
4321
|
return _u(Fa), Jd(Ra), Fa(), bt(() => {
|
|
4322
4322
|
f !== null && clearTimeout(f), u !== null && clearTimeout(u);
|
|
@@ -4351,7 +4351,7 @@ const aa = Oe({
|
|
|
4351
4351
|
),
|
|
4352
4352
|
getControlChild: () => {
|
|
4353
4353
|
if (A.editable.value !== !1 && (a.value === !0 || we.value !== !0 || t["no-option"] !== void 0))
|
|
4354
|
-
return
|
|
4354
|
+
return h === !0 ? Jt() : _e();
|
|
4355
4355
|
A.hasPopupOpen === !0 && (A.hasPopupOpen = !1);
|
|
4356
4356
|
},
|
|
4357
4357
|
controlEvents: {
|
|
@@ -4365,7 +4365,7 @@ const aa = Oe({
|
|
|
4365
4365
|
},
|
|
4366
4366
|
onClick(C) {
|
|
4367
4367
|
var ee;
|
|
4368
|
-
if (qt(C),
|
|
4368
|
+
if (qt(C), h !== !0 && l.value === !0) {
|
|
4369
4369
|
qn(), (ee = x.value) == null || ee.focus();
|
|
4370
4370
|
return;
|
|
4371
4371
|
}
|
|
@@ -4373,7 +4373,7 @@ const aa = Oe({
|
|
|
4373
4373
|
}
|
|
4374
4374
|
},
|
|
4375
4375
|
getControl: (C) => {
|
|
4376
|
-
const ee = qr(), re = C === !0 || a.value !== !0 ||
|
|
4376
|
+
const ee = qr(), re = C === !0 || a.value !== !0 || h !== !0;
|
|
4377
4377
|
if (e.useInput === !0)
|
|
4378
4378
|
ee.push(Ur(C, re));
|
|
4379
4379
|
else if (A.editable.value === !0) {
|
|
@@ -4471,11 +4471,11 @@ const Xm = Oe({
|
|
|
4471
4471
|
() => `q-linear-progress__track absolute-full q-linear-progress__track--${c.value} q-linear-progress__track--${o.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
|
|
4472
4472
|
), u = b(() => bi(l.value === !0 ? 1 : e.value, a.value, n.$q)), d = b(
|
|
4473
4473
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${c.value} q-linear-progress__model--${l.value === !0 ? "in" : ""}determinate`
|
|
4474
|
-
),
|
|
4474
|
+
), h = b(() => ({ width: `${e.value * 100}%` })), p = b(
|
|
4475
4475
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${c.value}`
|
|
4476
4476
|
);
|
|
4477
4477
|
return () => {
|
|
4478
|
-
const
|
|
4478
|
+
const g = [
|
|
4479
4479
|
w("div", {
|
|
4480
4480
|
class: f.value,
|
|
4481
4481
|
style: m.value
|
|
@@ -4485,10 +4485,10 @@ const Xm = Oe({
|
|
|
4485
4485
|
style: u.value
|
|
4486
4486
|
})
|
|
4487
4487
|
];
|
|
4488
|
-
return e.stripe === !0 && l.value === !1 &&
|
|
4488
|
+
return e.stripe === !0 && l.value === !1 && g.push(
|
|
4489
4489
|
w("div", {
|
|
4490
4490
|
class: p.value,
|
|
4491
|
-
style:
|
|
4491
|
+
style: h.value
|
|
4492
4492
|
})
|
|
4493
4493
|
), w("div", {
|
|
4494
4494
|
class: s.value,
|
|
@@ -4497,7 +4497,7 @@ const Xm = Oe({
|
|
|
4497
4497
|
"aria-valuemin": 0,
|
|
4498
4498
|
"aria-valuemax": 1,
|
|
4499
4499
|
"aria-valuenow": e.indeterminate === !0 ? void 0 : e.value
|
|
4500
|
-
}, on(t.default,
|
|
4500
|
+
}, on(t.default, g));
|
|
4501
4501
|
};
|
|
4502
4502
|
}
|
|
4503
4503
|
});
|
|
@@ -4556,19 +4556,19 @@ function nv(e, t) {
|
|
|
4556
4556
|
), d = b(() => {
|
|
4557
4557
|
const I = Yt(n.val);
|
|
4558
4558
|
return u.value === !0 ? n.modelValue.findIndex((G) => Yt(G) === I) : -1;
|
|
4559
|
-
}),
|
|
4560
|
-
() =>
|
|
4559
|
+
}), h = b(() => u.value === !0 ? d.value !== -1 : Yt(n.modelValue) === Yt(n.trueValue)), p = b(() => u.value === !0 ? d.value === -1 : Yt(n.modelValue) === Yt(n.falseValue)), g = b(
|
|
4560
|
+
() => h.value === !1 && p.value === !1
|
|
4561
4561
|
), v = b(() => n.disable === !0 ? -1 : n.tabindex || 0), _ = b(
|
|
4562
4562
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (n.disable === !0 ? " disabled" : "") + (i.value === !0 ? ` q-${e}--dark` : "") + (n.dense === !0 ? ` q-${e}--dense` : "") + (n.leftLabel === !0 ? " reverse" : "")
|
|
4563
4563
|
), S = b(() => {
|
|
4564
|
-
const I =
|
|
4564
|
+
const I = h.value === !0 ? "truthy" : p.value === !0 ? "falsy" : "indet", G = n.color !== void 0 && (n.keepColor === !0 || p.value !== !0) ? ` text-${n.color}` : "";
|
|
4565
4565
|
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${I}${G}`;
|
|
4566
4566
|
}), y = b(() => {
|
|
4567
4567
|
const I = { type: "checkbox" };
|
|
4568
4568
|
return n.name !== void 0 && Object.assign(I, {
|
|
4569
4569
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
4570
|
-
".checked":
|
|
4571
|
-
"^checked":
|
|
4570
|
+
".checked": h.value,
|
|
4571
|
+
"^checked": h.value === !0 ? "checked" : void 0,
|
|
4572
4572
|
name: n.name,
|
|
4573
4573
|
value: u.value === !0 ? n.val : n.trueValue
|
|
4574
4574
|
}), I;
|
|
@@ -4577,7 +4577,7 @@ function nv(e, t) {
|
|
|
4577
4577
|
tabindex: v.value,
|
|
4578
4578
|
role: "checkbox",
|
|
4579
4579
|
"aria-label": n.label,
|
|
4580
|
-
"aria-checked":
|
|
4580
|
+
"aria-checked": g.value === !0 ? "mixed" : h.value === !0 ? "true" : "false"
|
|
4581
4581
|
};
|
|
4582
4582
|
return n.disable === !0 && (I["aria-disabled"] = "true"), I;
|
|
4583
4583
|
});
|
|
@@ -4586,13 +4586,13 @@ function nv(e, t) {
|
|
|
4586
4586
|
}
|
|
4587
4587
|
function B() {
|
|
4588
4588
|
if (u.value === !0) {
|
|
4589
|
-
if (
|
|
4589
|
+
if (h.value === !0) {
|
|
4590
4590
|
const I = n.modelValue.slice();
|
|
4591
4591
|
return I.splice(d.value, 1), I;
|
|
4592
4592
|
}
|
|
4593
4593
|
return n.modelValue.concat([n.val]);
|
|
4594
4594
|
}
|
|
4595
|
-
if (
|
|
4595
|
+
if (h.value === !0) {
|
|
4596
4596
|
if (n.toggleOrder !== "ft" || n.toggleIndeterminate === !1)
|
|
4597
4597
|
return n.falseValue;
|
|
4598
4598
|
} else if (p.value === !0) {
|
|
@@ -4608,7 +4608,7 @@ function nv(e, t) {
|
|
|
4608
4608
|
function P(I) {
|
|
4609
4609
|
(I.keyCode === 13 || I.keyCode === 32) && O(I);
|
|
4610
4610
|
}
|
|
4611
|
-
const q = t(
|
|
4611
|
+
const q = t(h, g);
|
|
4612
4612
|
return Object.assign(l, { toggle: O }), () => {
|
|
4613
4613
|
const I = q();
|
|
4614
4614
|
n.disable !== !0 && D(
|
|
@@ -4768,34 +4768,34 @@ function fv(e) {
|
|
|
4768
4768
|
const t = qo(e, lv), n = _c(e), { hasRouterLink: o, hasLink: r, linkTag: l, linkAttrs: a, navigateOnClick: i } = Zu({
|
|
4769
4769
|
fallbackTag: "button"
|
|
4770
4770
|
}), s = b(() => {
|
|
4771
|
-
const
|
|
4772
|
-
return e.padding !== void 0 ? Object.assign({},
|
|
4771
|
+
const g = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
4772
|
+
return e.padding !== void 0 ? Object.assign({}, g, {
|
|
4773
4773
|
padding: e.padding.split(/\s+/).map((v) => v in yi ? yi[v] + "px" : v).join(" "),
|
|
4774
4774
|
minWidth: "0",
|
|
4775
4775
|
minHeight: "0"
|
|
4776
|
-
}) :
|
|
4776
|
+
}) : g;
|
|
4777
4777
|
}), m = b(
|
|
4778
4778
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
4779
4779
|
), c = b(
|
|
4780
4780
|
() => e.disable !== !0 && e.loading !== !0
|
|
4781
4781
|
), f = b(() => c.value === !0 ? e.tabindex || 0 : -1), u = b(() => uv(e, "standard")), d = b(() => {
|
|
4782
|
-
const
|
|
4783
|
-
return r.value === !0 ? Object.assign(
|
|
4782
|
+
const g = { tabindex: f.value };
|
|
4783
|
+
return r.value === !0 ? Object.assign(g, a.value) : av.includes(e.type) === !0 && (g.type = e.type), l.value === "a" ? (e.disable === !0 ? g["aria-disabled"] = "true" : g.href === void 0 && (g.role = "button"), o.value !== !0 && iv.test(e.type) === !0 && (g.type = e.type)) : e.disable === !0 && (g.disabled = "", g["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(g, {
|
|
4784
4784
|
role: "progressbar",
|
|
4785
4785
|
"aria-valuemin": 0,
|
|
4786
4786
|
"aria-valuemax": 100,
|
|
4787
4787
|
"aria-valuenow": e.percentage
|
|
4788
|
-
}),
|
|
4789
|
-
}),
|
|
4790
|
-
let
|
|
4791
|
-
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ?
|
|
4788
|
+
}), g;
|
|
4789
|
+
}), h = b(() => {
|
|
4790
|
+
let g;
|
|
4791
|
+
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? g = `text-${e.textColor || e.color}` : g = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (g = `text-${e.textColor}`);
|
|
4792
4792
|
const v = e.round === !0 ? "round" : `rectangle${m.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
4793
|
-
return `q-btn--${u.value} q-btn--${v}` + (
|
|
4793
|
+
return `q-btn--${u.value} q-btn--${v}` + (g !== void 0 ? " " + g : "") + (c.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
4794
4794
|
}), p = b(
|
|
4795
4795
|
() => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
4796
4796
|
);
|
|
4797
4797
|
return {
|
|
4798
|
-
classes:
|
|
4798
|
+
classes: h,
|
|
4799
4799
|
style: s,
|
|
4800
4800
|
innerClasses: p,
|
|
4801
4801
|
attributes: d,
|
|
@@ -4827,7 +4827,7 @@ const Ct = Oe({
|
|
|
4827
4827
|
navigateOnClick: c,
|
|
4828
4828
|
isActionable: f
|
|
4829
4829
|
} = fv(e), u = se(null), d = se(null);
|
|
4830
|
-
let
|
|
4830
|
+
let h = null, p, g = null;
|
|
4831
4831
|
const v = b(
|
|
4832
4832
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
4833
4833
|
), _ = b(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
@@ -4889,8 +4889,8 @@ const Ct = Oe({
|
|
|
4889
4889
|
u.value !== null && (n("keydown", M), Nn(M, [13, 32]) === !0 && Wn !== u.value && (Wn !== null && I(), M.defaultPrevented !== !0 && (M.qAvoidFocus !== !0 && u.value.focus(), Wn = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("keyup", q, !0), u.value.addEventListener("blur", q, Mt)), lt(M)));
|
|
4890
4890
|
}
|
|
4891
4891
|
function L(M) {
|
|
4892
|
-
u.value !== null && (n("touchstart", M), M.defaultPrevented !== !0 && (jn !== u.value && (jn !== null && I(), jn = u.value,
|
|
4893
|
-
|
|
4892
|
+
u.value !== null && (n("touchstart", M), M.defaultPrevented !== !0 && (jn !== u.value && (jn !== null && I(), jn = u.value, h = M.target, h.addEventListener("touchcancel", q, Mt), h.addEventListener("touchend", q, Mt)), p = !0, g !== null && clearTimeout(g), g = setTimeout(() => {
|
|
4893
|
+
g = null, p = !1;
|
|
4894
4894
|
}, 200)));
|
|
4895
4895
|
}
|
|
4896
4896
|
function P(M) {
|
|
@@ -4911,7 +4911,7 @@ const Ct = Oe({
|
|
|
4911
4911
|
function I(M) {
|
|
4912
4912
|
var Q, H;
|
|
4913
4913
|
const ae = d.value;
|
|
4914
|
-
M !== !0 && (jn === u.value || Kn === u.value) && ae !== null && ae !== document.activeElement && (ae.setAttribute("tabindex", -1), ae.focus()), jn === u.value && (
|
|
4914
|
+
M !== !0 && (jn === u.value || Kn === u.value) && ae !== null && ae !== document.activeElement && (ae.setAttribute("tabindex", -1), ae.focus()), jn === u.value && (h !== null && (h.removeEventListener("touchcancel", q, Mt), h.removeEventListener("touchend", q, Mt)), jn = h = null), Kn === u.value && (document.removeEventListener("mouseup", q, Mt), Kn = null), Wn === u.value && (document.removeEventListener("keyup", q, !0), (Q = u.value) == null || Q.removeEventListener("blur", q, Mt), Wn = null), (H = u.value) == null || H.classList.remove("q-btn--active");
|
|
4915
4915
|
}
|
|
4916
4916
|
function G(M) {
|
|
4917
4917
|
lt(M), M.qSkipRipple = !0;
|
|
@@ -5046,9 +5046,9 @@ function pv(e, t, n, o) {
|
|
|
5046
5046
|
if (c === void 0 || c.field === void 0)
|
|
5047
5047
|
return i;
|
|
5048
5048
|
const f = m === !0 ? -1 : 1, u = typeof c.field == "function" ? (d) => c.field(d) : (d) => d[c.field];
|
|
5049
|
-
return i.sort((d,
|
|
5050
|
-
let p = u(d),
|
|
5051
|
-
return c.rawSort !== void 0 ? c.rawSort(p,
|
|
5049
|
+
return i.sort((d, h) => {
|
|
5050
|
+
let p = u(d), g = u(h);
|
|
5051
|
+
return c.rawSort !== void 0 ? c.rawSort(p, g, d, h) * f : p == null ? -1 * f : g == null ? 1 * f : c.sort !== void 0 ? c.sort(p, g, d, h) * f : _l(p) === !0 && _l(g) === !0 ? (p - g) * f : pr(p) === !0 && pr(g) === !0 ? hv(p, g) * f : typeof p == "boolean" && typeof g == "boolean" ? (p - g) * f : ([p, g] = [p, g].map((v) => (v + "").toLocaleString().toLowerCase()), p < g ? -1 * f : p === g ? 0 : f);
|
|
5052
5052
|
});
|
|
5053
5053
|
});
|
|
5054
5054
|
function a(i) {
|
|
@@ -5169,7 +5169,7 @@ function wv(e, t, n, o, r, l) {
|
|
|
5169
5169
|
}), u = b(() => n.value.page === 1), d = b(() => n.value.rowsPerPage === 0 ? 1 : Math.max(
|
|
5170
5170
|
1,
|
|
5171
5171
|
Math.ceil(m.value / n.value.rowsPerPage)
|
|
5172
|
-
)),
|
|
5172
|
+
)), h = b(() => f.value === 0 ? !0 : n.value.page >= d.value), p = b(() => (a.rowsPerPageOptions.includes(t.value.rowsPerPage) ? a.rowsPerPageOptions : [t.value.rowsPerPage].concat(a.rowsPerPageOptions)).map((D) => ({
|
|
5173
5173
|
label: D === 0 ? s.lang.table.allRows : "" + D,
|
|
5174
5174
|
value: D
|
|
5175
5175
|
})));
|
|
@@ -5178,7 +5178,7 @@ function wv(e, t, n, o, r, l) {
|
|
|
5178
5178
|
const x = n.value.page;
|
|
5179
5179
|
y && !x ? r({ page: 1 }) : y < x && r({ page: y });
|
|
5180
5180
|
});
|
|
5181
|
-
function
|
|
5181
|
+
function g() {
|
|
5182
5182
|
r({ page: 1 });
|
|
5183
5183
|
}
|
|
5184
5184
|
function v() {
|
|
@@ -5196,11 +5196,11 @@ function wv(e, t, n, o, r, l) {
|
|
|
5196
5196
|
firstRowIndex: c,
|
|
5197
5197
|
lastRowIndex: f,
|
|
5198
5198
|
isFirstPage: u,
|
|
5199
|
-
isLastPage:
|
|
5199
|
+
isLastPage: h,
|
|
5200
5200
|
pagesNumber: d,
|
|
5201
5201
|
computedRowsPerPageOptions: p,
|
|
5202
5202
|
computedRowsNumber: m,
|
|
5203
|
-
firstPage:
|
|
5203
|
+
firstPage: g,
|
|
5204
5204
|
prevPage: v,
|
|
5205
5205
|
nextPage: _,
|
|
5206
5206
|
lastPage: S
|
|
@@ -5219,27 +5219,27 @@ const kv = {
|
|
|
5219
5219
|
}, Tv = ["update:selected", "selection"];
|
|
5220
5220
|
function Ov(e, t, n, o) {
|
|
5221
5221
|
const r = b(() => {
|
|
5222
|
-
const
|
|
5222
|
+
const h = {};
|
|
5223
5223
|
return e.selected.map(o.value).forEach((p) => {
|
|
5224
|
-
|
|
5225
|
-
}),
|
|
5224
|
+
h[p] = !0;
|
|
5225
|
+
}), h;
|
|
5226
5226
|
}), l = b(() => e.selection !== "none"), a = b(() => e.selection === "single"), i = b(() => e.selection === "multiple"), s = b(
|
|
5227
5227
|
() => n.value.length !== 0 && n.value.every(
|
|
5228
|
-
(
|
|
5228
|
+
(h) => r.value[o.value(h)] === !0
|
|
5229
5229
|
)
|
|
5230
5230
|
), m = b(
|
|
5231
|
-
() => s.value !== !0 && n.value.some((
|
|
5231
|
+
() => s.value !== !0 && n.value.some((h) => r.value[o.value(h)] === !0)
|
|
5232
5232
|
), c = b(() => e.selected.length);
|
|
5233
|
-
function f(
|
|
5234
|
-
return r.value[
|
|
5233
|
+
function f(h) {
|
|
5234
|
+
return r.value[h] === !0;
|
|
5235
5235
|
}
|
|
5236
5236
|
function u() {
|
|
5237
5237
|
t("update:selected", []);
|
|
5238
5238
|
}
|
|
5239
|
-
function d(
|
|
5240
|
-
t("selection", { rows: p, added:
|
|
5241
|
-
const _ = a.value === !0 ?
|
|
5242
|
-
(S) =>
|
|
5239
|
+
function d(h, p, g, v) {
|
|
5240
|
+
t("selection", { rows: p, added: g, keys: h, evt: v });
|
|
5241
|
+
const _ = a.value === !0 ? g === !0 ? p : [] : g === !0 ? e.selected.concat(p) : e.selected.filter(
|
|
5242
|
+
(S) => h.includes(o.value(S)) === !1
|
|
5243
5243
|
);
|
|
5244
5244
|
t("update:selected", _);
|
|
5245
5245
|
}
|
|
@@ -5413,7 +5413,7 @@ const Nv = Oe({
|
|
|
5413
5413
|
() => " q-table__card" + (l.value === !0 ? " q-table__card--dark q-dark" : "") + (e.square === !0 ? " q-table--square" : "") + (e.flat === !0 ? " q-table--flat" : "") + (e.bordered === !0 ? " q-table--bordered" : "")
|
|
5414
5414
|
), d = b(
|
|
5415
5415
|
() => `q-table__container q-table--${e.separator}-separator column no-wrap` + (e.grid === !0 ? " q-table--grid" : u.value) + (l.value === !0 ? " q-table--dark" : "") + (e.dense === !0 ? " q-table--dense" : "") + (e.wrapCells === !1 ? " q-table--no-wrap" : "") + (a.value === !0 ? " fullscreen scroll" : "")
|
|
5416
|
-
),
|
|
5416
|
+
), h = b(
|
|
5417
5417
|
() => d.value + (e.loading === !0 ? " q-table--loading" : "")
|
|
5418
5418
|
);
|
|
5419
5419
|
he(
|
|
@@ -5425,7 +5425,7 @@ const Nv = Oe({
|
|
|
5425
5425
|
);
|
|
5426
5426
|
const {
|
|
5427
5427
|
innerPagination: p,
|
|
5428
|
-
computedPagination:
|
|
5428
|
+
computedPagination: g,
|
|
5429
5429
|
isServerSide: v,
|
|
5430
5430
|
requestServerInteraction: _,
|
|
5431
5431
|
setPagination: S
|
|
@@ -5433,7 +5433,7 @@ const Nv = Oe({
|
|
|
5433
5433
|
let N = e.rows;
|
|
5434
5434
|
if (v.value === !0 || N.length === 0)
|
|
5435
5435
|
return N;
|
|
5436
|
-
const { sortBy: te, descending: de } =
|
|
5436
|
+
const { sortBy: te, descending: de } = g.value;
|
|
5437
5437
|
return e.filter && (N = y.value(N, e.filter, A.value, Ze)), ce.value !== null && (N = ge.value(
|
|
5438
5438
|
e.rows === N ? N.slice() : N,
|
|
5439
5439
|
te,
|
|
@@ -5443,7 +5443,7 @@ const Nv = Oe({
|
|
|
5443
5443
|
let N = B.value;
|
|
5444
5444
|
if (v.value === !0)
|
|
5445
5445
|
return N;
|
|
5446
|
-
const { rowsPerPage: te } =
|
|
5446
|
+
const { rowsPerPage: te } = g.value;
|
|
5447
5447
|
return te !== 0 && (X.value === 0 && e.rows !== N ? N.length > we.value && (N = N.slice(0, we.value)) : N = N.slice(X.value, we.value)), N;
|
|
5448
5448
|
}), {
|
|
5449
5449
|
hasSelectionMode: q,
|
|
@@ -5455,7 +5455,7 @@ const Nv = Oe({
|
|
|
5455
5455
|
isRowSelected: H,
|
|
5456
5456
|
clearSelection: W,
|
|
5457
5457
|
updateSelection: J
|
|
5458
|
-
} = Ov(e, n, P, s), { colList: ie, computedCols: A, computedColsMap: T, computedColspan: Y } = Lv(e,
|
|
5458
|
+
} = Ov(e, n, P, s), { colList: ie, computedCols: A, computedColsMap: T, computedColspan: Y } = Lv(e, g, q), { columnToSort: ce, computedSortMethod: ge, sort: z } = pv(e, g, ie, S), {
|
|
5459
5459
|
firstRowIndex: X,
|
|
5460
5460
|
lastRowIndex: we,
|
|
5461
5461
|
isFirstPage: K,
|
|
@@ -5467,7 +5467,7 @@ const Nv = Oe({
|
|
|
5467
5467
|
prevPage: nt,
|
|
5468
5468
|
nextPage: ft,
|
|
5469
5469
|
lastPage: Pt
|
|
5470
|
-
} = wv(o, p,
|
|
5470
|
+
} = wv(o, p, g, v, S, L), E = b(() => P.value.length === 0), k = b(() => {
|
|
5471
5471
|
const N = {};
|
|
5472
5472
|
return $u.forEach((te) => {
|
|
5473
5473
|
N[te] = e[te];
|
|
@@ -5640,7 +5640,7 @@ const Nv = Oe({
|
|
|
5640
5640
|
return N.format !== void 0 ? N.format(de, te) : de;
|
|
5641
5641
|
}
|
|
5642
5642
|
const ot = b(() => ({
|
|
5643
|
-
pagination:
|
|
5643
|
+
pagination: g.value,
|
|
5644
5644
|
pagesNumber: Ue.value,
|
|
5645
5645
|
isFirstPage: K.value,
|
|
5646
5646
|
isLastPage: Ie.value,
|
|
@@ -5794,7 +5794,7 @@ const Nv = Oe({
|
|
|
5794
5794
|
}
|
|
5795
5795
|
function qr(N) {
|
|
5796
5796
|
let te;
|
|
5797
|
-
const { rowsPerPage: de } =
|
|
5797
|
+
const { rowsPerPage: de } = g.value, ue = e.paginationLabel || r.lang.table.pagination, _e = t.pagination, He = e.rowsPerPageOptions.length > 1;
|
|
5798
5798
|
if (N.push(
|
|
5799
5799
|
w("div", { class: "q-table__separator col" })
|
|
5800
5800
|
), He === !0 && N.push(
|
|
@@ -5958,7 +5958,7 @@ const Nv = Oe({
|
|
|
5958
5958
|
computedRows: () => P.value,
|
|
5959
5959
|
computedRowsNumber: () => je.value
|
|
5960
5960
|
}), () => {
|
|
5961
|
-
const N = [mo()], te = { ref: m, class:
|
|
5961
|
+
const N = [mo()], te = { ref: m, class: h.value };
|
|
5962
5962
|
return e.grid === !0 ? N.push(Wo()) : Object.assign(te, {
|
|
5963
5963
|
class: [te.class, e.cardClass],
|
|
5964
5964
|
style: e.cardStyle
|
|
@@ -6176,15 +6176,15 @@ function Hv(e, t, n, o) {
|
|
|
6176
6176
|
}
|
|
6177
6177
|
he(() => e.type + e.autogrow, p), he(() => e.mask, (L) => {
|
|
6178
6178
|
if (L !== void 0)
|
|
6179
|
-
|
|
6179
|
+
g(f.value, !0);
|
|
6180
6180
|
else {
|
|
6181
6181
|
const P = O(f.value);
|
|
6182
6182
|
p(), e.modelValue !== P && t("update:modelValue", P);
|
|
6183
6183
|
}
|
|
6184
6184
|
}), he(() => e.fillMask + e.reverseFillMask, () => {
|
|
6185
|
-
c.value === !0 &&
|
|
6185
|
+
c.value === !0 && g(f.value, !0);
|
|
6186
6186
|
}), he(() => e.unmaskedValue, () => {
|
|
6187
|
-
c.value === !0 &&
|
|
6187
|
+
c.value === !0 && g(f.value);
|
|
6188
6188
|
});
|
|
6189
6189
|
function d() {
|
|
6190
6190
|
if (p(), c.value === !0) {
|
|
@@ -6193,7 +6193,7 @@ function Hv(e, t, n, o) {
|
|
|
6193
6193
|
}
|
|
6194
6194
|
return e.modelValue;
|
|
6195
6195
|
}
|
|
6196
|
-
function
|
|
6196
|
+
function h(L) {
|
|
6197
6197
|
if (L < r.length)
|
|
6198
6198
|
return r.slice(-L);
|
|
6199
6199
|
let P = "", q = r;
|
|
@@ -6241,7 +6241,7 @@ function Hv(e, t, n, o) {
|
|
|
6241
6241
|
return Y.length !== 0 ? Y.join("") : A;
|
|
6242
6242
|
}, r = M.map((A) => typeof A == "string" ? A : Je).join(""), l = r.split(Je).join(P);
|
|
6243
6243
|
}
|
|
6244
|
-
function
|
|
6244
|
+
function g(L, P, q) {
|
|
6245
6245
|
const I = o.value, G = I.selectionEnd, M = I.value.length - G, ae = O(L);
|
|
6246
6246
|
P === !0 && p();
|
|
6247
6247
|
const Q = D(ae), H = e.fillMask !== !1 ? B(Q) : Q, W = f.value !== H;
|
|
@@ -6313,7 +6313,7 @@ function Hv(e, t, n, o) {
|
|
|
6313
6313
|
L.setSelectionRange(P, P, "forward");
|
|
6314
6314
|
},
|
|
6315
6315
|
leftReverse(L, P) {
|
|
6316
|
-
const q =
|
|
6316
|
+
const q = h(L.value.length);
|
|
6317
6317
|
let I = Math.max(0, P - 1);
|
|
6318
6318
|
for (; I >= 0; I--)
|
|
6319
6319
|
if (q[I - 1] === Je) {
|
|
@@ -6326,7 +6326,7 @@ function Hv(e, t, n, o) {
|
|
|
6326
6326
|
P >= 0 && L.setSelectionRange(P, P, "backward");
|
|
6327
6327
|
},
|
|
6328
6328
|
rightReverse(L, P) {
|
|
6329
|
-
const q = L.value.length, I =
|
|
6329
|
+
const q = L.value.length, I = h(q), G = I.slice(0, P + 1).indexOf(Je) === -1;
|
|
6330
6330
|
let M = Math.min(q, P + 1);
|
|
6331
6331
|
for (; M <= q; M++)
|
|
6332
6332
|
if (I[M - 1] === Je) {
|
|
@@ -6398,7 +6398,7 @@ function Hv(e, t, n, o) {
|
|
|
6398
6398
|
innerValue: f,
|
|
6399
6399
|
hasMask: c,
|
|
6400
6400
|
moveCursorForPaste: v,
|
|
6401
|
-
updateMaskValue:
|
|
6401
|
+
updateMaskValue: g,
|
|
6402
6402
|
onMaskedKeydown: y,
|
|
6403
6403
|
onMaskedClick: S
|
|
6404
6404
|
};
|
|
@@ -6457,9 +6457,9 @@ const ia = Oe({
|
|
|
6457
6457
|
let a = NaN, i, s, m = null, c;
|
|
6458
6458
|
const f = se(null), u = mc(e), {
|
|
6459
6459
|
innerValue: d,
|
|
6460
|
-
hasMask:
|
|
6460
|
+
hasMask: h,
|
|
6461
6461
|
moveCursorForPaste: p,
|
|
6462
|
-
updateMaskValue:
|
|
6462
|
+
updateMaskValue: g,
|
|
6463
6463
|
onMaskedKeydown: v,
|
|
6464
6464
|
onMaskedClick: _
|
|
6465
6465
|
} = Hv(e, t, Q, f), S = zv(
|
|
@@ -6481,7 +6481,7 @@ const ia = Oe({
|
|
|
6481
6481
|
onBlur: J,
|
|
6482
6482
|
onFocus: Gt
|
|
6483
6483
|
};
|
|
6484
|
-
return T.onCompositionstart = T.onCompositionupdate = T.onCompositionend = D,
|
|
6484
|
+
return T.onCompositionstart = T.onCompositionupdate = T.onCompositionend = D, h.value === !0 && (T.onKeydown = v, T.onClick = _), e.autogrow === !0 && (T.onAnimationend = ae), T;
|
|
6485
6485
|
}), P = b(() => {
|
|
6486
6486
|
const T = {
|
|
6487
6487
|
tabindex: 0,
|
|
@@ -6500,10 +6500,10 @@ const ia = Oe({
|
|
|
6500
6500
|
he(() => e.type, () => {
|
|
6501
6501
|
f.value && (f.value.value = e.modelValue);
|
|
6502
6502
|
}), he(() => e.modelValue, (T) => {
|
|
6503
|
-
if (
|
|
6503
|
+
if (h.value === !0) {
|
|
6504
6504
|
if (s === !0 && (s = !1, String(T) === a))
|
|
6505
6505
|
return;
|
|
6506
|
-
|
|
6506
|
+
g(T);
|
|
6507
6507
|
} else d.value !== T && (d.value = T, e.type === "number" && l.hasOwnProperty("value") === !0 && (i === !0 ? i = !1 : delete l.value));
|
|
6508
6508
|
e.autogrow === !0 && We(H);
|
|
6509
6509
|
}), he(() => e.autogrow, (T) => {
|
|
@@ -6522,7 +6522,7 @@ const ia = Oe({
|
|
|
6522
6522
|
(T = f.value) == null || T.select();
|
|
6523
6523
|
}
|
|
6524
6524
|
function G(T) {
|
|
6525
|
-
if (
|
|
6525
|
+
if (h.value === !0 && e.reverseFillMask !== !0) {
|
|
6526
6526
|
const Y = T.target;
|
|
6527
6527
|
p(Y, Y.selectionStart, Y.selectionEnd);
|
|
6528
6528
|
}
|
|
@@ -6539,8 +6539,8 @@ const ia = Oe({
|
|
|
6539
6539
|
l.value = Y;
|
|
6540
6540
|
return;
|
|
6541
6541
|
}
|
|
6542
|
-
if (
|
|
6543
|
-
|
|
6542
|
+
if (h.value === !0)
|
|
6543
|
+
g(Y, !1, T.inputType);
|
|
6544
6544
|
else if (Q(Y), B.value === !0 && T.target === document.activeElement) {
|
|
6545
6545
|
const { selectionStart: ce, selectionEnd: ge } = T.target;
|
|
6546
6546
|
ce !== void 0 && ge !== void 0 && We(() => {
|
|
@@ -6693,10 +6693,10 @@ const yc = Oe({
|
|
|
6693
6693
|
i.value = y;
|
|
6694
6694
|
}));
|
|
6695
6695
|
function c() {
|
|
6696
|
-
e.validate(i.value) !== !1 && (d() === !0 && (n("save", i.value, a.value), n("update:modelValue", i.value)),
|
|
6696
|
+
e.validate(i.value) !== !1 && (d() === !0 && (n("save", i.value, a.value), n("update:modelValue", i.value)), h());
|
|
6697
6697
|
}
|
|
6698
6698
|
function f() {
|
|
6699
|
-
d() === !0 && n("cancel", i.value, a.value),
|
|
6699
|
+
d() === !0 && n("cancel", i.value, a.value), h();
|
|
6700
6700
|
}
|
|
6701
6701
|
function u() {
|
|
6702
6702
|
We(() => {
|
|
@@ -6706,13 +6706,13 @@ const yc = Oe({
|
|
|
6706
6706
|
function d() {
|
|
6707
6707
|
return nn(i.value, a.value) === !1;
|
|
6708
6708
|
}
|
|
6709
|
-
function
|
|
6709
|
+
function h() {
|
|
6710
6710
|
s = !0, l.value.hide();
|
|
6711
6711
|
}
|
|
6712
6712
|
function p() {
|
|
6713
6713
|
s = !1, a.value = Co(e.modelValue), i.value = Co(e.modelValue), n("beforeShow");
|
|
6714
6714
|
}
|
|
6715
|
-
function
|
|
6715
|
+
function g() {
|
|
6716
6716
|
n("show");
|
|
6717
6717
|
}
|
|
6718
6718
|
function v() {
|
|
@@ -6761,7 +6761,7 @@ const yc = Oe({
|
|
|
6761
6761
|
class: "q-popup-edit",
|
|
6762
6762
|
cover: e.cover,
|
|
6763
6763
|
onBeforeShow: p,
|
|
6764
|
-
onShow:
|
|
6764
|
+
onShow: g,
|
|
6765
6765
|
onBeforeHide: v,
|
|
6766
6766
|
onHide: _,
|
|
6767
6767
|
onEscapeKey: f
|
|
@@ -6942,6 +6942,11 @@ const Sc = /* @__PURE__ */ Xe(Kv, [["render", Yv]]), Gv = {
|
|
|
6942
6942
|
tablePropsData: this.tableProps,
|
|
6943
6943
|
modelData: this.model
|
|
6944
6944
|
};
|
|
6945
|
+
},
|
|
6946
|
+
watch: {
|
|
6947
|
+
model(e) {
|
|
6948
|
+
this.modelData = e;
|
|
6949
|
+
}
|
|
6945
6950
|
}
|
|
6946
6951
|
};
|
|
6947
6952
|
function Qv(e, t, n, o, r, l) {
|
|
@@ -6994,6 +6999,11 @@ const Cc = /* @__PURE__ */ Xe(Gv, [["render", Qv]]), Xv = {
|
|
|
6994
6999
|
tablePropsData: this.tableProps,
|
|
6995
7000
|
modelData: this.model
|
|
6996
7001
|
};
|
|
7002
|
+
},
|
|
7003
|
+
watch: {
|
|
7004
|
+
model(e) {
|
|
7005
|
+
this.modelData = e;
|
|
7006
|
+
}
|
|
6997
7007
|
}
|
|
6998
7008
|
};
|
|
6999
7009
|
function Zv(e, t, n, o, r, l) {
|
|
@@ -7323,7 +7333,7 @@ function cg(e, t, n, o, r, l) {
|
|
|
7323
7333
|
)
|
|
7324
7334
|
}, {
|
|
7325
7335
|
default: j(() => [
|
|
7326
|
-
F(xr,
|
|
7336
|
+
F(xr, { class: "q-py-sm" }, {
|
|
7327
7337
|
default: j(() => [
|
|
7328
7338
|
n.selectionType != "none" ? (ne(), fe(mn, {
|
|
7329
7339
|
key: 0,
|
|
@@ -8000,20 +8010,26 @@ const Pg = /* @__PURE__ */ Xe(Lg, [["render", Ng]]), Rg = zt({
|
|
|
8000
8010
|
},
|
|
8001
8011
|
getSortedData(e, t, n) {
|
|
8002
8012
|
e && t.sort((o, r) => {
|
|
8003
|
-
const l = n ? r : o, a = n ? o : r, i = l[e], s = a[e], m = (
|
|
8004
|
-
const [
|
|
8005
|
-
return /* @__PURE__ */ new Date(`${
|
|
8006
|
-
}, c = (
|
|
8007
|
-
const [
|
|
8008
|
-
return
|
|
8009
|
-
};
|
|
8013
|
+
const l = n ? r : o, a = n ? o : r, i = l[e], s = a[e], m = (u) => {
|
|
8014
|
+
const [d, h, p] = u.split("/");
|
|
8015
|
+
return /* @__PURE__ */ new Date(`${p}-${h}-${d}`);
|
|
8016
|
+
}, c = (u) => {
|
|
8017
|
+
const [d, h, p] = u.split(":").map(Number);
|
|
8018
|
+
return d * 3600 + h * 60 + p;
|
|
8019
|
+
}, f = (u) => parseFloat(u.replace("%", "")) / 100;
|
|
8010
8020
|
if (typeof i == "string" && typeof s == "string") {
|
|
8011
|
-
const
|
|
8012
|
-
if (!isNaN(
|
|
8013
|
-
return
|
|
8014
|
-
const
|
|
8015
|
-
|
|
8016
|
-
|
|
8021
|
+
const u = m(i), d = m(s);
|
|
8022
|
+
if (!isNaN(u.getTime()) && !isNaN(d.getTime()))
|
|
8023
|
+
return u.getTime() - d.getTime();
|
|
8024
|
+
const h = c(i), p = c(s);
|
|
8025
|
+
if (!isNaN(h) && !isNaN(p))
|
|
8026
|
+
return h - p;
|
|
8027
|
+
if (i.includes("%") && s.includes("%")) {
|
|
8028
|
+
const g = f(i), v = f(s);
|
|
8029
|
+
return g - v;
|
|
8030
|
+
} else
|
|
8031
|
+
return i.localeCompare(s);
|
|
8032
|
+
} else return typeof i == "number" && typeof s == "number" ? i - s : typeof i == "boolean" && typeof s == "boolean" ? (console.log(i, s), i === s ? 0 : i ? 1 : -1) : String(i) > String(s) ? 1 : String(i) < String(s) ? -1 : 0;
|
|
8017
8033
|
});
|
|
8018
8034
|
},
|
|
8019
8035
|
containsSearchTermInRow(e, t) {
|
|
@@ -8104,7 +8120,7 @@ function Mg(e, t, n, o, r, l) {
|
|
|
8104
8120
|
onOnUpdateCustomizedCheckboxValue: e.onUpdateCustomizedCheckboxValue,
|
|
8105
8121
|
onOnSaveValuePopupEdit: e.onSaveValuePopupEdit,
|
|
8106
8122
|
onOnClickButton: e.onClickButton,
|
|
8107
|
-
onClick: (
|
|
8123
|
+
onClick: (h) => e.onRowClick(d.row)
|
|
8108
8124
|
}, null, 8, ["table-props", "selection-type", "getCellClass", "onOnUpdateBasicCheckboxValue", "onOnUpdateCustomizedCheckboxValue", "onOnSaveValuePopupEdit", "onOnClickButton", "onClick"]))
|
|
8109
8125
|
]),
|
|
8110
8126
|
item: j((d) => [
|
|
@@ -8118,7 +8134,7 @@ function Mg(e, t, n, o, r, l) {
|
|
|
8118
8134
|
onOnUpdateBasicCheckboxValue: e.onUpdateBasicCheckboxValue,
|
|
8119
8135
|
onOnSaveValuePopupEdit: e.onSaveValuePopupEdit,
|
|
8120
8136
|
onOnClickButton: e.onClickButton,
|
|
8121
|
-
onClick: (
|
|
8137
|
+
onClick: (h) => e.onRowClick(d.row)
|
|
8122
8138
|
}, null, 8, ["table-props", "selection-type", "popup-edit-number-options", "getCellClass", "onOnUpdateCustomizedCheckboxValue", "onOnUpdateBasicCheckboxValue", "onOnSaveValuePopupEdit", "onOnClickButton", "onClick"]))
|
|
8123
8139
|
]),
|
|
8124
8140
|
_: 1
|
|
@@ -8538,8 +8554,8 @@ function rh(e, t, n, o, r) {
|
|
|
8538
8554
|
const d = parseInt(f[c.X !== void 0 ? c.X : c.x], 10);
|
|
8539
8555
|
if (isNaN(d) === !0 || d < 0)
|
|
8540
8556
|
return l;
|
|
8541
|
-
const
|
|
8542
|
-
l.year =
|
|
8557
|
+
const h = new Date(d * (c.X !== void 0 ? 1e3 : 1));
|
|
8558
|
+
l.year = h.getFullYear(), l.month = h.getMonth() + 1, l.day = h.getDate(), l.hour = h.getHours(), l.minute = h.getMinutes(), l.second = h.getSeconds(), l.millisecond = h.getMilliseconds();
|
|
8543
8559
|
} else {
|
|
8544
8560
|
if (c.YYYY !== void 0)
|
|
8545
8561
|
l.year = parseInt(f[c.YYYY], 10);
|
|
@@ -9625,12 +9641,12 @@ var f_ = Object.create, Rc = Object.defineProperty, m_ = Object.getOwnPropertyDe
|
|
|
9625
9641
|
let i = null;
|
|
9626
9642
|
return l.proto ? c : m;
|
|
9627
9643
|
function s(f, u) {
|
|
9628
|
-
const d = Object.keys(f),
|
|
9644
|
+
const d = Object.keys(f), h = new Array(d.length);
|
|
9629
9645
|
for (let p = 0; p < d.length; p++) {
|
|
9630
|
-
const
|
|
9631
|
-
typeof v != "object" || v === null ? g
|
|
9646
|
+
const g = d[p], v = f[g];
|
|
9647
|
+
typeof v != "object" || v === null ? h[g] = v : v.constructor !== Object && (i = a.get(v.constructor)) ? h[g] = i(v, u) : ArrayBuffer.isView(v) ? h[g] = n(v) : h[g] = u(v);
|
|
9632
9648
|
}
|
|
9633
|
-
return
|
|
9649
|
+
return h;
|
|
9634
9650
|
}
|
|
9635
9651
|
function m(f) {
|
|
9636
9652
|
if (typeof f != "object" || f === null) return f;
|
|
@@ -9640,8 +9656,8 @@ var f_ = Object.create, Rc = Object.defineProperty, m_ = Object.getOwnPropertyDe
|
|
|
9640
9656
|
const u = {};
|
|
9641
9657
|
for (const d in f) {
|
|
9642
9658
|
if (Object.hasOwnProperty.call(f, d) === !1) continue;
|
|
9643
|
-
const
|
|
9644
|
-
typeof
|
|
9659
|
+
const h = f[d];
|
|
9660
|
+
typeof h != "object" || h === null ? u[d] = h : h.constructor !== Object && (i = a.get(h.constructor)) ? u[d] = i(h, m) : ArrayBuffer.isView(h) ? u[d] = n(h) : u[d] = m(h);
|
|
9645
9661
|
}
|
|
9646
9662
|
return u;
|
|
9647
9663
|
}
|
|
@@ -9652,80 +9668,80 @@ var f_ = Object.create, Rc = Object.defineProperty, m_ = Object.getOwnPropertyDe
|
|
|
9652
9668
|
return i(f, c);
|
|
9653
9669
|
const u = {};
|
|
9654
9670
|
for (const d in f) {
|
|
9655
|
-
const
|
|
9656
|
-
typeof
|
|
9671
|
+
const h = f[d];
|
|
9672
|
+
typeof h != "object" || h === null ? u[d] = h : h.constructor !== Object && (i = a.get(h.constructor)) ? u[d] = i(h, c) : ArrayBuffer.isView(h) ? u[d] = n(h) : u[d] = c(h);
|
|
9657
9673
|
}
|
|
9658
9674
|
return u;
|
|
9659
9675
|
}
|
|
9660
9676
|
}
|
|
9661
9677
|
function r(l) {
|
|
9662
9678
|
const a = [], i = [], s = /* @__PURE__ */ new Map();
|
|
9663
|
-
if (s.set(Date, (d) => new Date(d)), s.set(Map, (d,
|
|
9679
|
+
if (s.set(Date, (d) => new Date(d)), s.set(Map, (d, h) => new Map(c(Array.from(d), h))), s.set(Set, (d, h) => new Set(c(Array.from(d), h))), l.constructorHandlers)
|
|
9664
9680
|
for (const d of l.constructorHandlers)
|
|
9665
9681
|
s.set(d[0], d[1]);
|
|
9666
9682
|
let m = null;
|
|
9667
9683
|
return l.proto ? u : f;
|
|
9668
|
-
function c(d,
|
|
9669
|
-
const p = Object.keys(d),
|
|
9684
|
+
function c(d, h) {
|
|
9685
|
+
const p = Object.keys(d), g = new Array(p.length);
|
|
9670
9686
|
for (let v = 0; v < p.length; v++) {
|
|
9671
9687
|
const _ = p[v], S = d[_];
|
|
9672
9688
|
if (typeof S != "object" || S === null)
|
|
9673
|
-
|
|
9689
|
+
g[_] = S;
|
|
9674
9690
|
else if (S.constructor !== Object && (m = s.get(S.constructor)))
|
|
9675
|
-
|
|
9691
|
+
g[_] = m(S, h);
|
|
9676
9692
|
else if (ArrayBuffer.isView(S))
|
|
9677
|
-
|
|
9693
|
+
g[_] = n(S);
|
|
9678
9694
|
else {
|
|
9679
9695
|
const y = a.indexOf(S);
|
|
9680
|
-
y !== -1 ?
|
|
9696
|
+
y !== -1 ? g[_] = i[y] : g[_] = h(S);
|
|
9681
9697
|
}
|
|
9682
9698
|
}
|
|
9683
|
-
return
|
|
9699
|
+
return g;
|
|
9684
9700
|
}
|
|
9685
9701
|
function f(d) {
|
|
9686
9702
|
if (typeof d != "object" || d === null) return d;
|
|
9687
9703
|
if (Array.isArray(d)) return c(d, f);
|
|
9688
9704
|
if (d.constructor !== Object && (m = s.get(d.constructor)))
|
|
9689
9705
|
return m(d, f);
|
|
9690
|
-
const
|
|
9691
|
-
a.push(d), i.push(
|
|
9706
|
+
const h = {};
|
|
9707
|
+
a.push(d), i.push(h);
|
|
9692
9708
|
for (const p in d) {
|
|
9693
9709
|
if (Object.hasOwnProperty.call(d, p) === !1) continue;
|
|
9694
|
-
const
|
|
9695
|
-
if (typeof
|
|
9696
|
-
|
|
9697
|
-
else if (
|
|
9698
|
-
|
|
9699
|
-
else if (ArrayBuffer.isView(
|
|
9700
|
-
|
|
9710
|
+
const g = d[p];
|
|
9711
|
+
if (typeof g != "object" || g === null)
|
|
9712
|
+
h[p] = g;
|
|
9713
|
+
else if (g.constructor !== Object && (m = s.get(g.constructor)))
|
|
9714
|
+
h[p] = m(g, f);
|
|
9715
|
+
else if (ArrayBuffer.isView(g))
|
|
9716
|
+
h[p] = n(g);
|
|
9701
9717
|
else {
|
|
9702
|
-
const v = a.indexOf(
|
|
9703
|
-
v !== -1 ?
|
|
9718
|
+
const v = a.indexOf(g);
|
|
9719
|
+
v !== -1 ? h[p] = i[v] : h[p] = f(g);
|
|
9704
9720
|
}
|
|
9705
9721
|
}
|
|
9706
|
-
return a.pop(), i.pop(),
|
|
9722
|
+
return a.pop(), i.pop(), h;
|
|
9707
9723
|
}
|
|
9708
9724
|
function u(d) {
|
|
9709
9725
|
if (typeof d != "object" || d === null) return d;
|
|
9710
9726
|
if (Array.isArray(d)) return c(d, u);
|
|
9711
9727
|
if (d.constructor !== Object && (m = s.get(d.constructor)))
|
|
9712
9728
|
return m(d, u);
|
|
9713
|
-
const
|
|
9714
|
-
a.push(d), i.push(
|
|
9729
|
+
const h = {};
|
|
9730
|
+
a.push(d), i.push(h);
|
|
9715
9731
|
for (const p in d) {
|
|
9716
|
-
const
|
|
9717
|
-
if (typeof
|
|
9718
|
-
|
|
9719
|
-
else if (
|
|
9720
|
-
|
|
9721
|
-
else if (ArrayBuffer.isView(
|
|
9722
|
-
|
|
9732
|
+
const g = d[p];
|
|
9733
|
+
if (typeof g != "object" || g === null)
|
|
9734
|
+
h[p] = g;
|
|
9735
|
+
else if (g.constructor !== Object && (m = s.get(g.constructor)))
|
|
9736
|
+
h[p] = m(g, u);
|
|
9737
|
+
else if (ArrayBuffer.isView(g))
|
|
9738
|
+
h[p] = n(g);
|
|
9723
9739
|
else {
|
|
9724
|
-
const v = a.indexOf(
|
|
9725
|
-
v !== -1 ?
|
|
9740
|
+
const v = a.indexOf(g);
|
|
9741
|
+
v !== -1 ? h[p] = i[v] : h[p] = u(g);
|
|
9726
9742
|
}
|
|
9727
9743
|
}
|
|
9728
|
-
return a.pop(), i.pop(),
|
|
9744
|
+
return a.pop(), i.pop(), h;
|
|
9729
9745
|
}
|
|
9730
9746
|
}
|
|
9731
9747
|
}
|
|
@@ -11268,9 +11284,9 @@ var N_ = Object.create, Bc = Object.defineProperty, P_ = Object.getOwnPropertyDe
|
|
|
11268
11284
|
"∑": "tong",
|
|
11269
11285
|
"¤": "tien te"
|
|
11270
11286
|
}
|
|
11271
|
-
}, s = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), m = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(
|
|
11287
|
+
}, s = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), m = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(g, v) {
|
|
11272
11288
|
var _ = "-", S = "", y = "", D = !0, x = {}, O, B, L, P, q, I, G, M, ae, Q, H, W, J, ie, A = "";
|
|
11273
|
-
if (typeof
|
|
11289
|
+
if (typeof g != "string")
|
|
11274
11290
|
return "";
|
|
11275
11291
|
if (typeof v == "string" && (_ = v), G = i.en, M = a.en, typeof v == "object") {
|
|
11276
11292
|
O = v.maintainCase || !1, x = v.custom && typeof v.custom == "object" ? v.custom : x, L = +v.truncate > 1 && v.truncate || !1, P = v.uric || !1, q = v.uricNoSlash || !1, I = v.mark || !1, D = !(v.symbols === !1 || v.lang === !1), _ = v.separator || _, P && (A += s), q && (A += m), I && (A += c), G = v.lang && i[v.lang] && D ? i[v.lang] : D ? i.en : {}, M = v.lang && a[v.lang] ? a[v.lang] : v.lang === !1 || v.lang === !0 ? {} : a.en, v.titleCase && typeof v.titleCase.length == "number" && Array.prototype.toString.call(v.titleCase) ? (v.titleCase.forEach(function(T) {
|
|
@@ -11279,26 +11295,26 @@ var N_ = Object.create, Bc = Object.defineProperty, P_ = Object.getOwnPropertyDe
|
|
|
11279
11295
|
x[T + ""] = T + "";
|
|
11280
11296
|
}), Object.keys(x).forEach(function(T) {
|
|
11281
11297
|
var Y;
|
|
11282
|
-
T.length > 1 ? Y = new RegExp("\\b" + d(T) + "\\b", "gi") : Y = new RegExp(d(T), "gi"),
|
|
11298
|
+
T.length > 1 ? Y = new RegExp("\\b" + d(T) + "\\b", "gi") : Y = new RegExp(d(T), "gi"), g = g.replace(Y, x[T]);
|
|
11283
11299
|
});
|
|
11284
11300
|
for (H in x)
|
|
11285
11301
|
A += H;
|
|
11286
11302
|
}
|
|
11287
|
-
for (A += _, A = d(A),
|
|
11288
|
-
H =
|
|
11303
|
+
for (A += _, A = d(A), g = g.replace(/(^\s+|\s+$)/g, ""), J = !1, ie = !1, Q = 0, W = g.length; Q < W; Q++)
|
|
11304
|
+
H = g[Q], h(H, x) ? J = !1 : M[H] ? (H = J && M[H].match(/[A-Za-z0-9]/) ? " " + M[H] : M[H], J = !1) : H in o ? (Q + 1 < W && r.indexOf(g[Q + 1]) >= 0 ? (y += H, H = "") : ie === !0 ? (H = l[y] + o[H], y = "") : H = J && o[H].match(/[A-Za-z0-9]/) ? " " + o[H] : o[H], J = !1, ie = !1) : H in l ? (y += H, H = "", Q === W - 1 && (H = l[y]), ie = !0) : /* process symbol chars */ G[H] && !(P && s.indexOf(H) !== -1) && !(q && m.indexOf(H) !== -1) ? (H = J || S.substr(-1).match(/[A-Za-z0-9]/) ? _ + G[H] : G[H], H += g[Q + 1] !== void 0 && g[Q + 1].match(/[A-Za-z0-9]/) ? _ : "", J = !0) : (ie === !0 ? (H = l[y] + H, y = "", ie = !1) : J && (/[A-Za-z0-9]/.test(H) || S.substr(-1).match(/A-Za-z0-9]/)) && (H = " " + H), J = !1), S += H.replace(new RegExp("[^\\w\\s" + A + "_-]", "g"), _);
|
|
11289
11305
|
return B && (S = S.replace(/(\w)(\S*)/g, function(T, Y, ce) {
|
|
11290
11306
|
var ge = Y.toUpperCase() + (ce !== null ? ce : "");
|
|
11291
11307
|
return Object.keys(x).indexOf(ge.toLowerCase()) < 0 ? ge : ge.toLowerCase();
|
|
11292
11308
|
})), S = S.replace(/\s+/g, _).replace(new RegExp("\\" + _ + "+", "g"), _).replace(new RegExp("(^\\" + _ + "+|\\" + _ + "+$)", "g"), ""), L && S.length > L && (ae = S.charAt(L) === _, S = S.slice(0, L), ae || (S = S.slice(0, S.lastIndexOf(_)))), !O && !B && (S = S.toLowerCase()), S;
|
|
11293
|
-
}, u = function(
|
|
11309
|
+
}, u = function(g) {
|
|
11294
11310
|
return function(_) {
|
|
11295
|
-
return f(_,
|
|
11311
|
+
return f(_, g);
|
|
11296
11312
|
};
|
|
11297
|
-
}, d = function(
|
|
11298
|
-
return
|
|
11299
|
-
},
|
|
11300
|
-
for (var v in
|
|
11301
|
-
if (
|
|
11313
|
+
}, d = function(g) {
|
|
11314
|
+
return g.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
11315
|
+
}, h = function(p, g) {
|
|
11316
|
+
for (var v in g)
|
|
11317
|
+
if (g[v] === p)
|
|
11302
11318
|
return !0;
|
|
11303
11319
|
};
|
|
11304
11320
|
if (typeof t < "u" && t.exports)
|
|
@@ -12842,16 +12858,16 @@ var vd = (e, t, n, o, r = [], l = [], a = /* @__PURE__ */ new Map()) => {
|
|
|
12842
12858
|
const s = e0(e);
|
|
12843
12859
|
if (!s) {
|
|
12844
12860
|
f0(e, r, t);
|
|
12845
|
-
const
|
|
12846
|
-
if (
|
|
12861
|
+
const h = a.get(e);
|
|
12862
|
+
if (h)
|
|
12847
12863
|
return o ? {
|
|
12848
12864
|
transformedValue: null
|
|
12849
|
-
} :
|
|
12865
|
+
} : h;
|
|
12850
12866
|
}
|
|
12851
12867
|
if (!d0(e, n)) {
|
|
12852
|
-
const
|
|
12853
|
-
transformedValue:
|
|
12854
|
-
annotations: [
|
|
12868
|
+
const h = _s(e, n), p = h ? {
|
|
12869
|
+
transformedValue: h.value,
|
|
12870
|
+
annotations: [h.type]
|
|
12855
12871
|
} : {
|
|
12856
12872
|
transformedValue: e
|
|
12857
12873
|
};
|
|
@@ -12862,11 +12878,11 @@ var vd = (e, t, n, o, r = [], l = [], a = /* @__PURE__ */ new Map()) => {
|
|
|
12862
12878
|
transformedValue: null
|
|
12863
12879
|
};
|
|
12864
12880
|
const m = _s(e, n), c = (i = m == null ? void 0 : m.value) != null ? i : e, f = hn(c) ? [] : {}, u = {};
|
|
12865
|
-
lo(c, (
|
|
12881
|
+
lo(c, (h, p) => {
|
|
12866
12882
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
12867
12883
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
12868
|
-
const
|
|
12869
|
-
f[p] =
|
|
12884
|
+
const g = vd(h, t, n, o, [...r, p], [...l, e], a);
|
|
12885
|
+
f[p] = g.transformedValue, hn(g.annotations) ? u[p] = g.annotations : Io(g.annotations) && lo(g.annotations, (v, _) => {
|
|
12870
12886
|
u[ld(p) + "." + _] = v;
|
|
12871
12887
|
});
|
|
12872
12888
|
});
|
|
@@ -13958,7 +13974,7 @@ const Q0 = /<\/?[\w\s="/.':;#-\/]+>/, X0 = (e) => Q0.test(e), tn = " ", Z0 = "\r
|
|
|
13958
13974
|
function tb(e) {
|
|
13959
13975
|
const t = e;
|
|
13960
13976
|
let n = 0, o = 1, r = 1, l = 0;
|
|
13961
|
-
const a = (O) => t[O] === Z0 && t[O + 1] === yt, i = (O) => t[O] === yt, s = (O) => t[O] === eb, m = (O) => t[O] === J0, c = (O) => a(O) || i(O) || s(O) || m(O), f = () => n, u = () => o, d = () => r,
|
|
13977
|
+
const a = (O) => t[O] === Z0 && t[O + 1] === yt, i = (O) => t[O] === yt, s = (O) => t[O] === eb, m = (O) => t[O] === J0, c = (O) => a(O) || i(O) || s(O) || m(O), f = () => n, u = () => o, d = () => r, h = () => l, p = (O) => a(O) || s(O) || m(O) ? yt : t[O], g = () => p(n), v = () => p(n + l);
|
|
13962
13978
|
function _() {
|
|
13963
13979
|
return l = 0, c(n) && (o++, r = 0), a(n) && n++, n++, r++, t[n];
|
|
13964
13980
|
}
|
|
@@ -13981,9 +13997,9 @@ function tb(e) {
|
|
|
13981
13997
|
index: f,
|
|
13982
13998
|
line: u,
|
|
13983
13999
|
column: d,
|
|
13984
|
-
peekOffset:
|
|
14000
|
+
peekOffset: h,
|
|
13985
14001
|
charAt: p,
|
|
13986
|
-
currentChar:
|
|
14002
|
+
currentChar: g,
|
|
13987
14003
|
currentPeek: v,
|
|
13988
14004
|
next: _,
|
|
13989
14005
|
peek: S,
|
|
@@ -14027,7 +14043,7 @@ function rb(e, t = {}) {
|
|
|
14027
14043
|
13
|
|
14028
14044
|
/* TokenTypes.EOF */
|
|
14029
14045
|
);
|
|
14030
|
-
function
|
|
14046
|
+
function h(E, k) {
|
|
14031
14047
|
return E.currentChar() === k ? (E.next(), k) : (f(ve.EXPECTED_TOKEN, l(), 0, k), "");
|
|
14032
14048
|
}
|
|
14033
14049
|
function p(E) {
|
|
@@ -14036,7 +14052,7 @@ function rb(e, t = {}) {
|
|
|
14036
14052
|
k += E.currentPeek(), E.peek();
|
|
14037
14053
|
return k;
|
|
14038
14054
|
}
|
|
14039
|
-
function
|
|
14055
|
+
function g(E) {
|
|
14040
14056
|
const k = p(E);
|
|
14041
14057
|
return E.skipToPeek(), k;
|
|
14042
14058
|
}
|
|
@@ -14193,14 +14209,14 @@ function rb(e, t = {}) {
|
|
|
14193
14209
|
return k;
|
|
14194
14210
|
}
|
|
14195
14211
|
function Y(E) {
|
|
14196
|
-
|
|
14212
|
+
g(E);
|
|
14197
14213
|
let k = "", V = "";
|
|
14198
14214
|
for (; k = Q(E); )
|
|
14199
14215
|
V += k;
|
|
14200
14216
|
return E.currentChar() === un && f(ve.UNTERMINATED_CLOSING_BRACE, l(), 0), V;
|
|
14201
14217
|
}
|
|
14202
14218
|
function ce(E) {
|
|
14203
|
-
|
|
14219
|
+
g(E);
|
|
14204
14220
|
let k = "";
|
|
14205
14221
|
return E.currentChar() === "-" ? (E.next(), k += `-${A(E)}`) : k += A(E), E.currentChar() === un && f(ve.UNTERMINATED_CLOSING_BRACE, l(), 0), k;
|
|
14206
14222
|
}
|
|
@@ -14208,12 +14224,12 @@ function rb(e, t = {}) {
|
|
|
14208
14224
|
return E !== Fs && E !== yt;
|
|
14209
14225
|
}
|
|
14210
14226
|
function z(E) {
|
|
14211
|
-
|
|
14227
|
+
g(E), h(E, "'");
|
|
14212
14228
|
let k = "", V = "";
|
|
14213
14229
|
for (; k = I(E, ge); )
|
|
14214
14230
|
k === "\\" ? V += X(E) : V += k;
|
|
14215
14231
|
const oe = E.currentChar();
|
|
14216
|
-
return oe === yt || oe === un ? (f(ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), oe === yt && (E.next(),
|
|
14232
|
+
return oe === yt || oe === un ? (f(ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, l(), 0), oe === yt && (E.next(), h(E, "'")), V) : (h(E, "'"), V);
|
|
14217
14233
|
}
|
|
14218
14234
|
function X(E) {
|
|
14219
14235
|
const k = E.currentChar();
|
|
@@ -14230,7 +14246,7 @@ function rb(e, t = {}) {
|
|
|
14230
14246
|
}
|
|
14231
14247
|
}
|
|
14232
14248
|
function we(E, k, V) {
|
|
14233
|
-
|
|
14249
|
+
h(E, k);
|
|
14234
14250
|
let oe = "";
|
|
14235
14251
|
for (let Se = 0; Se < V; Se++) {
|
|
14236
14252
|
const De = ie(E);
|
|
@@ -14246,7 +14262,7 @@ function rb(e, t = {}) {
|
|
|
14246
14262
|
return E !== "{" && E !== "}" && E !== tn && E !== yt;
|
|
14247
14263
|
}
|
|
14248
14264
|
function Ie(E) {
|
|
14249
|
-
|
|
14265
|
+
g(E);
|
|
14250
14266
|
let k = "", V = "";
|
|
14251
14267
|
for (; k = I(E, K); )
|
|
14252
14268
|
V += k;
|
|
@@ -14266,13 +14282,13 @@ function rb(e, t = {}) {
|
|
|
14266
14282
|
return k("");
|
|
14267
14283
|
}
|
|
14268
14284
|
function je(E) {
|
|
14269
|
-
|
|
14270
|
-
const k =
|
|
14285
|
+
g(E);
|
|
14286
|
+
const k = h(
|
|
14271
14287
|
E,
|
|
14272
14288
|
"|"
|
|
14273
14289
|
/* TokenChars.Pipe */
|
|
14274
14290
|
);
|
|
14275
|
-
return
|
|
14291
|
+
return g(E), k;
|
|
14276
14292
|
}
|
|
14277
14293
|
function kt(E, k) {
|
|
14278
14294
|
let V = null;
|
|
@@ -14283,14 +14299,14 @@ function rb(e, t = {}) {
|
|
|
14283
14299
|
2,
|
|
14284
14300
|
"{"
|
|
14285
14301
|
/* TokenChars.BraceLeft */
|
|
14286
|
-
),
|
|
14302
|
+
), g(E), k.braceNest++, V;
|
|
14287
14303
|
case "}":
|
|
14288
14304
|
return k.braceNest > 0 && k.currentType === 2 && f(ve.EMPTY_PLACEHOLDER, l(), 0), E.next(), V = u(
|
|
14289
14305
|
k,
|
|
14290
14306
|
3,
|
|
14291
14307
|
"}"
|
|
14292
14308
|
/* TokenChars.BraceRight */
|
|
14293
|
-
), k.braceNest--, k.braceNest > 0 &&
|
|
14309
|
+
), k.braceNest--, k.braceNest > 0 && g(E), k.inLinked && k.braceNest === 0 && (k.inLinked = !1), V;
|
|
14294
14310
|
case "@":
|
|
14295
14311
|
return k.braceNest > 0 && f(ve.UNTERMINATED_CLOSING_BRACE, l(), 0), V = nt(E, k) || d(k), k.braceNest = 0, V;
|
|
14296
14312
|
default: {
|
|
@@ -14300,13 +14316,13 @@ function rb(e, t = {}) {
|
|
|
14300
14316
|
if (k.braceNest > 0 && (k.currentType === 4 || k.currentType === 5 || k.currentType === 6))
|
|
14301
14317
|
return f(ve.UNTERMINATED_CLOSING_BRACE, l(), 0), k.braceNest = 0, ft(E, k);
|
|
14302
14318
|
if (Se = S(E, k))
|
|
14303
|
-
return V = u(k, 4, Y(E)),
|
|
14319
|
+
return V = u(k, 4, Y(E)), g(E), V;
|
|
14304
14320
|
if (De = y(E, k))
|
|
14305
|
-
return V = u(k, 5, ce(E)),
|
|
14321
|
+
return V = u(k, 5, ce(E)), g(E), V;
|
|
14306
14322
|
if (pe = D(E, k))
|
|
14307
|
-
return V = u(k, 6, z(E)),
|
|
14323
|
+
return V = u(k, 6, z(E)), g(E), V;
|
|
14308
14324
|
if (!Se && !De && !pe)
|
|
14309
|
-
return V = u(k, 12, Ie(E)), f(ve.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, V.value),
|
|
14325
|
+
return V = u(k, 12, Ie(E)), f(ve.INVALID_TOKEN_IN_PLACEHOLDER, l(), 0, V.value), g(E), V;
|
|
14310
14326
|
break;
|
|
14311
14327
|
}
|
|
14312
14328
|
}
|
|
@@ -14325,21 +14341,21 @@ function rb(e, t = {}) {
|
|
|
14325
14341
|
/* TokenChars.LinkedAlias */
|
|
14326
14342
|
), k.inLinked = !0, oe;
|
|
14327
14343
|
case ".":
|
|
14328
|
-
return
|
|
14344
|
+
return g(E), E.next(), u(
|
|
14329
14345
|
k,
|
|
14330
14346
|
8,
|
|
14331
14347
|
"."
|
|
14332
14348
|
/* TokenChars.LinkedDot */
|
|
14333
14349
|
);
|
|
14334
14350
|
case ":":
|
|
14335
|
-
return
|
|
14351
|
+
return g(E), E.next(), u(
|
|
14336
14352
|
k,
|
|
14337
14353
|
9,
|
|
14338
14354
|
":"
|
|
14339
14355
|
/* TokenChars.LinkedDelimiter */
|
|
14340
14356
|
);
|
|
14341
14357
|
default:
|
|
14342
|
-
return P(E) ? (oe = u(k, 1, je(E)), k.braceNest = 0, k.inLinked = !1, oe) : x(E, k) || B(E, k) ? (
|
|
14358
|
+
return P(E) ? (oe = u(k, 1, je(E)), k.braceNest = 0, k.inLinked = !1, oe) : x(E, k) || B(E, k) ? (g(E), nt(E, k)) : O(E, k) ? (g(E), u(k, 11, Ue(E))) : L(E, k) ? (g(E), Se === "{" ? kt(E, k) || oe : u(k, 10, Nt(E))) : (V === 7 && f(ve.INVALID_LINKED_FORMAT, l(), 0), k.braceNest = 0, k.inLinked = !1, ft(E, k));
|
|
14343
14359
|
}
|
|
14344
14360
|
}
|
|
14345
14361
|
function ft(E, k) {
|
|
@@ -14511,7 +14527,7 @@ function sb(e = {}) {
|
|
|
14511
14527
|
const O = _.currentType === 1 ? _.lastOffset : v.currentOffset(), B = _.currentType === 1 ? _.lastEndLoc : v.currentPosition();
|
|
14512
14528
|
return l(D, O, B), D;
|
|
14513
14529
|
}
|
|
14514
|
-
function
|
|
14530
|
+
function h(v, _, S, y) {
|
|
14515
14531
|
const D = v.context();
|
|
14516
14532
|
let x = y.items.length === 0;
|
|
14517
14533
|
const O = r(1, _, S);
|
|
@@ -14524,13 +14540,13 @@ function sb(e = {}) {
|
|
|
14524
14540
|
}
|
|
14525
14541
|
function p(v) {
|
|
14526
14542
|
const _ = v.context(), { offset: S, startLoc: y } = _, D = d(v);
|
|
14527
|
-
return _.currentType === 13 ? D :
|
|
14543
|
+
return _.currentType === 13 ? D : h(v, S, y, D);
|
|
14528
14544
|
}
|
|
14529
|
-
function
|
|
14545
|
+
function g(v) {
|
|
14530
14546
|
const _ = rb(v, st({}, e)), S = _.context(), y = r(0, S.offset, S.startLoc);
|
|
14531
14547
|
return t && y.loc && (y.loc.source = v), y.body = p(_), e.onCacheKey && (y.cacheKey = e.onCacheKey(v)), S.currentType !== 13 && o(_, ve.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, v[S.offset] || ""), l(y, _.currentOffset(), _.currentPosition()), y;
|
|
14532
14548
|
}
|
|
14533
|
-
return { parse:
|
|
14549
|
+
return { parse: g };
|
|
14534
14550
|
}
|
|
14535
14551
|
function Wt(e) {
|
|
14536
14552
|
if (e.type === 13)
|
|
@@ -14693,20 +14709,20 @@ function vb(e, t) {
|
|
|
14693
14709
|
};
|
|
14694
14710
|
l && e.loc && (a.source = e.loc.source);
|
|
14695
14711
|
const i = () => a;
|
|
14696
|
-
function s(p,
|
|
14712
|
+
function s(p, g) {
|
|
14697
14713
|
a.code += p;
|
|
14698
14714
|
}
|
|
14699
|
-
function m(p,
|
|
14700
|
-
const v =
|
|
14715
|
+
function m(p, g = !0) {
|
|
14716
|
+
const v = g ? o : "";
|
|
14701
14717
|
s(r ? v + " ".repeat(p) : v);
|
|
14702
14718
|
}
|
|
14703
14719
|
function c(p = !0) {
|
|
14704
|
-
const
|
|
14705
|
-
p && m(
|
|
14720
|
+
const g = ++a.indentLevel;
|
|
14721
|
+
p && m(g);
|
|
14706
14722
|
}
|
|
14707
14723
|
function f(p = !0) {
|
|
14708
|
-
const
|
|
14709
|
-
p && m(
|
|
14724
|
+
const g = --a.indentLevel;
|
|
14725
|
+
p && m(g);
|
|
14710
14726
|
}
|
|
14711
14727
|
function u() {
|
|
14712
14728
|
m(a.indentLevel);
|
|
@@ -15337,9 +15353,9 @@ function ny(e) {
|
|
|
15337
15353
|
}
|
|
15338
15354
|
};
|
|
15339
15355
|
function d() {
|
|
15340
|
-
const
|
|
15341
|
-
if (o === 5 &&
|
|
15342
|
-
return n++, i = "\\" +
|
|
15356
|
+
const h = e[n + 1];
|
|
15357
|
+
if (o === 5 && h === "'" || o === 6 && h === '"')
|
|
15358
|
+
return n++, i = "\\" + h, u[
|
|
15343
15359
|
0
|
|
15344
15360
|
/* Actions.APPEND */
|
|
15345
15361
|
](), !0;
|
|
@@ -15422,7 +15438,7 @@ const Ws = (e) => {
|
|
|
15422
15438
|
}, vy = () => Ld;
|
|
15423
15439
|
let Ks = 0;
|
|
15424
15440
|
function gy(e = {}) {
|
|
15425
|
-
const t = Ne(e.onWarn) ? e.onWarn : bn, n = Z(e.version) ? e.version : iy, o = Z(e.locale) || Ne(e.locale) ? e.locale : Ro, r = Ne(o) ? Ro : o, l = ze(e.fallbackLocale) || be(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, a = be(e.messages) ? e.messages : dl(r), i = be(e.datetimeFormats) ? e.datetimeFormats : dl(r), s = be(e.numberFormats) ? e.numberFormats : dl(r), m = st(xe(), e.modifiers, sy()), c = e.pluralRules || xe(), f = Ne(e.missing) ? e.missing : null, u = Ae(e.missingWarn) || ao(e.missingWarn) ? e.missingWarn : !0, d = Ae(e.fallbackWarn) || ao(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
15441
|
+
const t = Ne(e.onWarn) ? e.onWarn : bn, n = Z(e.version) ? e.version : iy, o = Z(e.locale) || Ne(e.locale) ? e.locale : Ro, r = Ne(o) ? Ro : o, l = ze(e.fallbackLocale) || be(e.fallbackLocale) || Z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, a = be(e.messages) ? e.messages : dl(r), i = be(e.datetimeFormats) ? e.datetimeFormats : dl(r), s = be(e.numberFormats) ? e.numberFormats : dl(r), m = st(xe(), e.modifiers, sy()), c = e.pluralRules || xe(), f = Ne(e.missing) ? e.missing : null, u = Ae(e.missingWarn) || ao(e.missingWarn) ? e.missingWarn : !0, d = Ae(e.fallbackWarn) || ao(e.fallbackWarn) ? e.fallbackWarn : !0, h = !!e.fallbackFormat, p = !!e.unresolving, g = Ne(e.postTranslation) ? e.postTranslation : null, v = be(e.processor) ? e.processor : null, _ = Ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, y = Ne(e.messageCompiler) ? e.messageCompiler : Ad;
|
|
15426
15442
|
process.env.NODE_ENV !== "production" && Ne(e.messageCompiler) && Td(Mn(Tt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
15427
15443
|
const D = Ne(e.messageResolver) ? e.messageResolver : Dd || oy, x = Ne(e.localeFallbacker) ? e.localeFallbacker : Id || Yb, O = Te(e.fallbackContext) ? e.fallbackContext : void 0, B = e, L = Te(B.__datetimeFormatters) ? B.__datetimeFormatters : /* @__PURE__ */ new Map(), P = Te(B.__numberFormatters) ? B.__numberFormatters : /* @__PURE__ */ new Map(), q = Te(B.__meta) ? B.__meta : {};
|
|
15428
15444
|
Ks++;
|
|
@@ -15437,9 +15453,9 @@ function gy(e = {}) {
|
|
|
15437
15453
|
missing: f,
|
|
15438
15454
|
missingWarn: u,
|
|
15439
15455
|
fallbackWarn: d,
|
|
15440
|
-
fallbackFormat:
|
|
15456
|
+
fallbackFormat: h,
|
|
15441
15457
|
unresolving: p,
|
|
15442
|
-
postTranslation:
|
|
15458
|
+
postTranslation: g,
|
|
15443
15459
|
processor: v,
|
|
15444
15460
|
warnHtmlMessage: _,
|
|
15445
15461
|
escapeParameter: S,
|
|
@@ -15500,7 +15516,7 @@ function Gs(e, ...t) {
|
|
|
15500
15516
|
const { datetimeFormats: n, unresolving: o, fallbackLocale: r, onWarn: l, localeFallbacker: a } = e, { __datetimeFormatters: i } = e;
|
|
15501
15517
|
if (process.env.NODE_ENV !== "production" && !Rd.dateTimeFormat)
|
|
15502
15518
|
return l(Mn(Tt.CANNOT_FORMAT_DATE)), Tr;
|
|
15503
|
-
const [s, m, c, f] = Fl(...t), u = Ae(c.missingWarn) ? c.missingWarn : e.missingWarn, d = Ae(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn,
|
|
15519
|
+
const [s, m, c, f] = Fl(...t), u = Ae(c.missingWarn) ? c.missingWarn : e.missingWarn, d = Ae(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = !!c.part, p = Aa(e, c), g = a(
|
|
15504
15520
|
e,
|
|
15505
15521
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
15506
15522
|
r,
|
|
@@ -15510,8 +15526,8 @@ function Gs(e, ...t) {
|
|
|
15510
15526
|
return new Intl.DateTimeFormat(p, f).format(m);
|
|
15511
15527
|
let v = {}, _, S = null, y = p, D = null;
|
|
15512
15528
|
const x = "datetime format";
|
|
15513
|
-
for (let L = 0; L <
|
|
15514
|
-
if (_ = D =
|
|
15529
|
+
for (let L = 0; L < g.length; L++) {
|
|
15530
|
+
if (_ = D = g[L], process.env.NODE_ENV !== "production" && p !== _ && Fr(d, s) && l(Mn(Tt.FALLBACK_TO_DATE_FORMAT, {
|
|
15515
15531
|
key: s,
|
|
15516
15532
|
target: _
|
|
15517
15533
|
})), process.env.NODE_ENV !== "production" && p !== _) {
|
|
@@ -15533,7 +15549,7 @@ function Gs(e, ...t) {
|
|
|
15533
15549
|
let O = `${_}__${s}`;
|
|
15534
15550
|
Mr(f) || (O = `${O}__${JSON.stringify(f)}`);
|
|
15535
15551
|
let B = i.get(O);
|
|
15536
|
-
return B || (B = new Intl.DateTimeFormat(_, st({}, S, f)), i.set(O, B)),
|
|
15552
|
+
return B || (B = new Intl.DateTimeFormat(_, st({}, S, f)), i.set(O, B)), h ? B.formatToParts(m) : B.format(m);
|
|
15537
15553
|
}
|
|
15538
15554
|
const Md = [
|
|
15539
15555
|
"localeMatcher",
|
|
@@ -15594,7 +15610,7 @@ function Xs(e, ...t) {
|
|
|
15594
15610
|
const { numberFormats: n, unresolving: o, fallbackLocale: r, onWarn: l, localeFallbacker: a } = e, { __numberFormatters: i } = e;
|
|
15595
15611
|
if (process.env.NODE_ENV !== "production" && !Rd.numberFormat)
|
|
15596
15612
|
return l(Mn(Tt.CANNOT_FORMAT_NUMBER)), Tr;
|
|
15597
|
-
const [s, m, c, f] = Bl(...t), u = Ae(c.missingWarn) ? c.missingWarn : e.missingWarn, d = Ae(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn,
|
|
15613
|
+
const [s, m, c, f] = Bl(...t), u = Ae(c.missingWarn) ? c.missingWarn : e.missingWarn, d = Ae(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = !!c.part, p = Aa(e, c), g = a(
|
|
15598
15614
|
e,
|
|
15599
15615
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
15600
15616
|
r,
|
|
@@ -15604,8 +15620,8 @@ function Xs(e, ...t) {
|
|
|
15604
15620
|
return new Intl.NumberFormat(p, f).format(m);
|
|
15605
15621
|
let v = {}, _, S = null, y = p, D = null;
|
|
15606
15622
|
const x = "number format";
|
|
15607
|
-
for (let L = 0; L <
|
|
15608
|
-
if (_ = D =
|
|
15623
|
+
for (let L = 0; L < g.length; L++) {
|
|
15624
|
+
if (_ = D = g[L], process.env.NODE_ENV !== "production" && p !== _ && Fr(d, s) && l(Mn(Tt.FALLBACK_TO_NUMBER_FORMAT, {
|
|
15609
15625
|
key: s,
|
|
15610
15626
|
target: _
|
|
15611
15627
|
})), process.env.NODE_ENV !== "production" && p !== _) {
|
|
@@ -15627,7 +15643,7 @@ function Xs(e, ...t) {
|
|
|
15627
15643
|
let O = `${_}__${s}`;
|
|
15628
15644
|
Mr(f) || (O = `${O}__${JSON.stringify(f)}`);
|
|
15629
15645
|
let B = i.get(O);
|
|
15630
|
-
return B || (B = new Intl.NumberFormat(_, st({}, S, f)), i.set(O, B)),
|
|
15646
|
+
return B || (B = new Intl.NumberFormat(_, st({}, S, f)), i.set(O, B)), h ? B.formatToParts(m) : B.format(m);
|
|
15631
15647
|
}
|
|
15632
15648
|
const Vd = [
|
|
15633
15649
|
"localeMatcher",
|
|
@@ -15687,7 +15703,7 @@ function wy(e = {}) {
|
|
|
15687
15703
|
const S = Ne(e.messages) ? e.messages(v, !!_) : Te(e.messages) ? e.messages[v] : !1;
|
|
15688
15704
|
return S || (e.parent ? e.parent.message(v) : py);
|
|
15689
15705
|
}
|
|
15690
|
-
const f = (v) => e.modifiers ? e.modifiers[v] : _y, u = be(e.processor) && Ne(e.processor.normalize) ? e.processor.normalize : yy, d = be(e.processor) && Ne(e.processor.interpolate) ? e.processor.interpolate : Ey,
|
|
15706
|
+
const f = (v) => e.modifiers ? e.modifiers[v] : _y, u = be(e.processor) && Ne(e.processor.normalize) ? e.processor.normalize : yy, d = be(e.processor) && Ne(e.processor.interpolate) ? e.processor.interpolate : Ey, h = be(e.processor) && Z(e.processor.type) ? e.processor.type : by, g = {
|
|
15691
15707
|
list: i,
|
|
15692
15708
|
named: m,
|
|
15693
15709
|
plural: l,
|
|
@@ -15695,30 +15711,30 @@ function wy(e = {}) {
|
|
|
15695
15711
|
const [S, y] = _;
|
|
15696
15712
|
let D = "text", x = "";
|
|
15697
15713
|
_.length === 1 ? Te(S) ? (x = S.modifier || x, D = S.type || D) : Z(S) && (x = S || x) : _.length === 2 && (Z(S) && (x = S || x), Z(y) && (D = y || D));
|
|
15698
|
-
const O = c(v, !0)(
|
|
15714
|
+
const O = c(v, !0)(g), B = (
|
|
15699
15715
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
15700
15716
|
D === "vnode" && ze(O) && x ? O[0] : O
|
|
15701
15717
|
);
|
|
15702
15718
|
return x ? f(x)(B, D) : B;
|
|
15703
15719
|
},
|
|
15704
15720
|
message: c,
|
|
15705
|
-
type:
|
|
15721
|
+
type: h,
|
|
15706
15722
|
interpolate: d,
|
|
15707
15723
|
normalize: u,
|
|
15708
15724
|
values: st(xe(), a, s)
|
|
15709
15725
|
};
|
|
15710
|
-
return
|
|
15726
|
+
return g;
|
|
15711
15727
|
}
|
|
15712
15728
|
const eu = () => "", Vt = (e) => Ne(e);
|
|
15713
15729
|
function tu(e, ...t) {
|
|
15714
|
-
const { fallbackFormat: n, postTranslation: o, unresolving: r, messageCompiler: l, fallbackLocale: a, messages: i } = e, [s, m] = $l(...t), c = Ae(m.missingWarn) ? m.missingWarn : e.missingWarn, f = Ae(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, u = Ae(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, d = !!m.resolvedMessage,
|
|
15730
|
+
const { fallbackFormat: n, postTranslation: o, unresolving: r, messageCompiler: l, fallbackLocale: a, messages: i } = e, [s, m] = $l(...t), c = Ae(m.missingWarn) ? m.missingWarn : e.missingWarn, f = Ae(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, u = Ae(m.escapeParameter) ? m.escapeParameter : e.escapeParameter, d = !!m.resolvedMessage, h = Z(m.default) || Ae(m.default) ? Ae(m.default) ? l ? s : () => s : m.default : n ? l ? s : () => s : null, p = n || h != null && (Z(h) || Ne(h)), g = Aa(e, m);
|
|
15715
15731
|
u && ky(m);
|
|
15716
15732
|
let [v, _, S] = d ? [
|
|
15717
15733
|
s,
|
|
15718
|
-
|
|
15719
|
-
i[
|
|
15720
|
-
] : Fd(e, s,
|
|
15721
|
-
if (!d && !(Z(y) || _n(y) || Vt(y)) && p && (y =
|
|
15734
|
+
g,
|
|
15735
|
+
i[g] || xe()
|
|
15736
|
+
] : Fd(e, s, g, a, f, c), y = v, D = s;
|
|
15737
|
+
if (!d && !(Z(y) || _n(y) || Vt(y)) && p && (y = h, D = y), !d && (!(Z(y) || _n(y) || Vt(y)) || !Z(_)))
|
|
15722
15738
|
return r ? Vr : s;
|
|
15723
15739
|
if (process.env.NODE_ENV !== "production" && Z(y) && e.messageCompiler == null)
|
|
15724
15740
|
return bn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${s}'.`), s;
|
|
@@ -15748,8 +15764,8 @@ function ky(e) {
|
|
|
15748
15764
|
}
|
|
15749
15765
|
function Fd(e, t, n, o, r, l) {
|
|
15750
15766
|
const { messages: a, onWarn: i, messageResolver: s, localeFallbacker: m } = e, c = m(e, o, n);
|
|
15751
|
-
let f = xe(), u, d = null,
|
|
15752
|
-
const
|
|
15767
|
+
let f = xe(), u, d = null, h = n, p = null;
|
|
15768
|
+
const g = "translate";
|
|
15753
15769
|
for (let v = 0; v < c.length; v++) {
|
|
15754
15770
|
if (u = p = c[v], process.env.NODE_ENV !== "production" && n !== u && !Pd(n, u) && Fr(r, t) && i(Mn(Tt.FALLBACK_TO_TRANSLATE, {
|
|
15755
15771
|
key: t,
|
|
@@ -15757,11 +15773,11 @@ function Fd(e, t, n, o, r, l) {
|
|
|
15757
15773
|
})), process.env.NODE_ENV !== "production" && n !== u) {
|
|
15758
15774
|
const D = e.__v_emitter;
|
|
15759
15775
|
D && D.emit("fallback", {
|
|
15760
|
-
type:
|
|
15776
|
+
type: g,
|
|
15761
15777
|
key: t,
|
|
15762
|
-
from:
|
|
15778
|
+
from: h,
|
|
15763
15779
|
to: p,
|
|
15764
|
-
groupId: `${
|
|
15780
|
+
groupId: `${g}:${t}`
|
|
15765
15781
|
});
|
|
15766
15782
|
}
|
|
15767
15783
|
f = a[u] || xe();
|
|
@@ -15773,7 +15789,7 @@ function Fd(e, t, n, o, r, l) {
|
|
|
15773
15789
|
key: t,
|
|
15774
15790
|
message: d,
|
|
15775
15791
|
time: D - _,
|
|
15776
|
-
groupId: `${
|
|
15792
|
+
groupId: `${g}:${t}`
|
|
15777
15793
|
}), S && y && Lt && Rn && (Lt(y), Rn("intlify message resolve", S, y));
|
|
15778
15794
|
}
|
|
15779
15795
|
if (Z(d) || _n(d) || Vt(d))
|
|
@@ -15785,11 +15801,11 @@ function Fd(e, t, n, o, r, l) {
|
|
|
15785
15801
|
t,
|
|
15786
15802
|
u,
|
|
15787
15803
|
l,
|
|
15788
|
-
|
|
15804
|
+
g
|
|
15789
15805
|
);
|
|
15790
15806
|
D !== t && (d = D);
|
|
15791
15807
|
}
|
|
15792
|
-
|
|
15808
|
+
h = p;
|
|
15793
15809
|
}
|
|
15794
15810
|
return [d, u, f];
|
|
15795
15811
|
}
|
|
@@ -15872,10 +15888,10 @@ function Dy(e, t, n, o) {
|
|
|
15872
15888
|
locale: t,
|
|
15873
15889
|
modifiers: r,
|
|
15874
15890
|
pluralRules: l,
|
|
15875
|
-
messages: (d,
|
|
15891
|
+
messages: (d, h) => {
|
|
15876
15892
|
let p = a(n, d);
|
|
15877
|
-
if (p == null && (c ||
|
|
15878
|
-
const [, ,
|
|
15893
|
+
if (p == null && (c || h)) {
|
|
15894
|
+
const [, , g] = Fd(
|
|
15879
15895
|
c || e,
|
|
15880
15896
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
15881
15897
|
d,
|
|
@@ -15884,14 +15900,14 @@ function Dy(e, t, n, o) {
|
|
|
15884
15900
|
s,
|
|
15885
15901
|
m
|
|
15886
15902
|
);
|
|
15887
|
-
p = a(
|
|
15903
|
+
p = a(g, d);
|
|
15888
15904
|
}
|
|
15889
15905
|
if (Z(p) || _n(p)) {
|
|
15890
|
-
let
|
|
15906
|
+
let g = !1;
|
|
15891
15907
|
const _ = Bd(e, d, t, p, d, () => {
|
|
15892
|
-
|
|
15908
|
+
g = !0;
|
|
15893
15909
|
});
|
|
15894
|
-
return
|
|
15910
|
+
return g ? eu : _;
|
|
15895
15911
|
} else return Vt(p) ? p : eu;
|
|
15896
15912
|
}
|
|
15897
15913
|
};
|
|
@@ -16137,7 +16153,7 @@ function xa(e = {}) {
|
|
|
16137
16153
|
// prettier-ignore
|
|
16138
16154
|
t && a ? t.fallbackLocale.value : Z(e.fallbackLocale) || ze(e.fallbackLocale) || be(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
16139
16155
|
), m = l(Ia(i.value, e)), c = l(be(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), f = l(be(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
16140
|
-
let u = t ? t.missingWarn : Ae(e.missingWarn) || ao(e.missingWarn) ? e.missingWarn : !0, d = t ? t.fallbackWarn : Ae(e.fallbackWarn) || ao(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
16156
|
+
let u = t ? t.missingWarn : Ae(e.missingWarn) || ao(e.missingWarn) ? e.missingWarn : !0, d = t ? t.fallbackWarn : Ae(e.fallbackWarn) || ao(e.fallbackWarn) ? e.fallbackWarn : !0, h = t ? t.fallbackRoot : Ae(e.fallbackRoot) ? e.fallbackRoot : !0, p = !!e.fallbackFormat, g = Ne(e.missing) ? e.missing : null, v = Ne(e.missing) ? au(e.missing) : null, _ = Ne(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : Ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
16141
16157
|
const D = t ? t.modifiers : be(e.modifiers) ? e.modifiers : {};
|
|
16142
16158
|
let x = e.pluralRules || t && t.pluralRules, O;
|
|
16143
16159
|
O = (() => {
|
|
@@ -16192,10 +16208,10 @@ function xa(e = {}) {
|
|
|
16192
16208
|
_ = R, O.postTranslation = R;
|
|
16193
16209
|
}
|
|
16194
16210
|
function H() {
|
|
16195
|
-
return
|
|
16211
|
+
return g;
|
|
16196
16212
|
}
|
|
16197
16213
|
function W(R) {
|
|
16198
|
-
R !== null && (v = au(R)),
|
|
16214
|
+
R !== null && (v = au(R)), g = R, O.missing = v;
|
|
16199
16215
|
}
|
|
16200
16216
|
function J(R, U) {
|
|
16201
16217
|
return R !== "translate" || !U.resolvedMessage;
|
|
@@ -16211,19 +16227,19 @@ function xa(e = {}) {
|
|
|
16211
16227
|
if (ye !== "translate exists" && // for not `te` (e.g `t`)
|
|
16212
16228
|
Qe(Ze) && Ze === Vr || ye === "translate exists" && !Ze) {
|
|
16213
16229
|
const [ot, mo] = U();
|
|
16214
|
-
if (process.env.NODE_ENV !== "production" && t && Z(ot) && J(ye, mo) && (
|
|
16230
|
+
if (process.env.NODE_ENV !== "production" && t && Z(ot) && J(ye, mo) && (h && (Fr(d, ot) || Nd(u, ot)) && bn(Br(dn.FALLBACK_TO_ROOT, {
|
|
16215
16231
|
key: ot,
|
|
16216
16232
|
type: ye
|
|
16217
16233
|
})), process.env.NODE_ENV !== "production")) {
|
|
16218
16234
|
const { __v_emitter: Zt } = O;
|
|
16219
|
-
Zt &&
|
|
16235
|
+
Zt && h && Zt.emit("fallback", {
|
|
16220
16236
|
type: ye,
|
|
16221
16237
|
key: ot,
|
|
16222
16238
|
to: "global",
|
|
16223
16239
|
groupId: `${ye}:${ot}`
|
|
16224
16240
|
});
|
|
16225
16241
|
}
|
|
16226
|
-
return t &&
|
|
16242
|
+
return t && h ? Be(t) : Rt(ot);
|
|
16227
16243
|
} else {
|
|
16228
16244
|
if (gt(Ze))
|
|
16229
16245
|
return Ze;
|
|
@@ -16377,10 +16393,10 @@ function xa(e = {}) {
|
|
|
16377
16393
|
d = R, O.fallbackWarn = d;
|
|
16378
16394
|
},
|
|
16379
16395
|
get fallbackRoot() {
|
|
16380
|
-
return
|
|
16396
|
+
return h;
|
|
16381
16397
|
},
|
|
16382
16398
|
set fallbackRoot(R) {
|
|
16383
|
-
|
|
16399
|
+
h = R;
|
|
16384
16400
|
},
|
|
16385
16401
|
get fallbackFormat() {
|
|
16386
16402
|
return p;
|
|
@@ -16678,19 +16694,19 @@ function nE(e, t) {
|
|
|
16678
16694
|
}
|
|
16679
16695
|
function oE(e) {
|
|
16680
16696
|
const t = Z(e.locale) ? e.locale : Ro, n = Z(e.fallbackLocale) || ze(e.fallbackLocale) || be(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, o = Ne(e.missing) ? e.missing : void 0, r = Ae(e.silentTranslationWarn) || ao(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = Ae(e.silentFallbackWarn) || ao(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, a = Ae(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, s = be(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, c = Ne(e.postTranslation) ? e.postTranslation : void 0, f = Z(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, u = !!e.escapeParameterHtml, d = Ae(e.sync) ? e.sync : !0;
|
|
16681
|
-
let
|
|
16697
|
+
let h = e.messages;
|
|
16682
16698
|
if (be(e.sharedMessages)) {
|
|
16683
16699
|
const D = e.sharedMessages;
|
|
16684
|
-
|
|
16700
|
+
h = Object.keys(D).reduce((O, B) => {
|
|
16685
16701
|
const L = O[B] || (O[B] = {});
|
|
16686
16702
|
return st(L, D[B]), O;
|
|
16687
|
-
},
|
|
16703
|
+
}, h || {});
|
|
16688
16704
|
}
|
|
16689
|
-
const { __i18n: p, __root:
|
|
16705
|
+
const { __i18n: p, __root: g, __injectWithOption: v } = e, _ = e.datetimeFormats, S = e.numberFormats, y = e.flatJson;
|
|
16690
16706
|
return {
|
|
16691
16707
|
locale: t,
|
|
16692
16708
|
fallbackLocale: n,
|
|
16693
|
-
messages:
|
|
16709
|
+
messages: h,
|
|
16694
16710
|
flatJson: y,
|
|
16695
16711
|
datetimeFormats: _,
|
|
16696
16712
|
numberFormats: S,
|
|
@@ -16707,7 +16723,7 @@ function oE(e) {
|
|
|
16707
16723
|
messageResolver: e.messageResolver,
|
|
16708
16724
|
inheritLocale: d,
|
|
16709
16725
|
__i18n: p,
|
|
16710
|
-
__root:
|
|
16726
|
+
__root: g,
|
|
16711
16727
|
__injectWithOption: v
|
|
16712
16728
|
};
|
|
16713
16729
|
}
|
|
@@ -17022,7 +17038,7 @@ function Gd(e, t, n, o) {
|
|
|
17022
17038
|
const s = o(e.value, a, i);
|
|
17023
17039
|
let m = [a.key];
|
|
17024
17040
|
ze(s) ? m = s.map((u, d) => {
|
|
17025
|
-
const
|
|
17041
|
+
const h = r[u.type], p = h ? h({ [u.type]: u.value, index: d, parts: s }) : [u.value];
|
|
17026
17042
|
return iE(p) && (p[0].key = `${u.type}-${d}`), p;
|
|
17027
17043
|
}) : Z(s) && (m = [s]);
|
|
17028
17044
|
const c = st(xe(), l), f = Z(e.tag) || Te(e.tag) ? e.tag : Yd();
|
|
@@ -17160,14 +17176,14 @@ function vE(e = {}, t) {
|
|
|
17160
17176
|
// install plugin
|
|
17161
17177
|
async install(u, ...d) {
|
|
17162
17178
|
if (process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = i, u.provide(u.__VUE_I18N_SYMBOL__, f), be(d[0])) {
|
|
17163
|
-
const
|
|
17164
|
-
f.__composerExtend =
|
|
17179
|
+
const g = d[0];
|
|
17180
|
+
f.__composerExtend = g.__composerExtend, f.__vueI18nExtend = g.__vueI18nExtend;
|
|
17165
17181
|
}
|
|
17166
|
-
let
|
|
17167
|
-
!n && o && (
|
|
17182
|
+
let h = null;
|
|
17183
|
+
!n && o && (h = CE(u, f.global)), __VUE_I18N_FULL_INSTALL__ && fE(u, f, ...d), __VUE_I18N_LEGACY_API__ && n && u.mixin(rE(a, a.__composer, f));
|
|
17168
17184
|
const p = u.unmount;
|
|
17169
17185
|
if (u.unmount = () => {
|
|
17170
|
-
|
|
17186
|
+
h && h(), f.dispose(), p();
|
|
17171
17187
|
}, process.env.NODE_ENV !== "production") {
|
|
17172
17188
|
if (!await Wy(u, f))
|
|
17173
17189
|
throw wt(Le.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|