@opengis/table 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -158
- package/dist/components/Export.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +771 -766
- package/dist/index.umd.js +14 -14
- package/package.json +58 -58
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { getCurrentInstance as
|
|
1
|
+
import * as br from "vue";
|
|
2
|
+
import { getCurrentInstance as xs, defineComponent as ie, useAttrs as ks, ref as $, computed as q, onUnmounted as Bt, onMounted as Ge, watch as Te, onBeforeUnmount as Es, createElementBlock as k, openBlock as v, Fragment as se, createElementVNode as d, createBlock as Ce, normalizeClass as L, unref as Z, createStaticVNode as hn, Teleport as jt, createCommentVNode as Y, normalizeStyle as ct, toDisplayString as A, withDirectives as Ee, vModelText as Nt, withModifiers as ot, renderList as Se, createTextVNode as be, nextTick as mn, renderSlot as Ae, withKeys as Jt, vModelSelect as xr, useSlots as ws, provide as kr, withCtx as Er, resolveDynamicComponent as kt, createVNode as wr, inject as Sr, vShow as Ss, vModelCheckbox as _r, vModelRadio as Yt } from "vue";
|
|
3
3
|
const Kn = {
|
|
4
4
|
en: {
|
|
5
5
|
choose: "Оберіть колонки для відображення",
|
|
@@ -42,22 +42,22 @@ const Kn = {
|
|
|
42
42
|
download: "Завантажити таблицю"
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
function
|
|
45
|
+
function Nr(e) {
|
|
46
46
|
const t = e.split(".")[1];
|
|
47
47
|
return (Kn[localStorage.language || navigator.language] || Kn.uk)[t];
|
|
48
48
|
}
|
|
49
49
|
function gn() {
|
|
50
|
-
const e =
|
|
51
|
-
return e.appContext.config.globalProperties.$i18n ? e.appContext.config.globalProperties.$t :
|
|
50
|
+
const e = xs();
|
|
51
|
+
return e.appContext.config.globalProperties.$i18n ? e.appContext.config.globalProperties.$t : Nr;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const Cr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, Tr = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, Or = ["placeholder"], Ir = { class: "p-1 pt-3 max-h-80 overflow-y-auto" }, Dr = { class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500" }, Ar = ["onClick"], $r = { class: "flex justify-between flex-1 items-center gap-x-2.5 cursor-pointer text-[13px] text-gray-800 dark:text-neutral-300 pointer-events-none" }, Vr = ["value"], Mr = /* @__PURE__ */ ie({
|
|
54
54
|
__name: "ColumnsSettings",
|
|
55
55
|
props: {
|
|
56
56
|
columns: {}
|
|
57
57
|
},
|
|
58
58
|
emits: ["update:columns"],
|
|
59
59
|
setup(e, { emit: t }) {
|
|
60
|
-
const n = gn(), s = e, r = t, i =
|
|
60
|
+
const n = gn(), s = e, r = t, i = ks(), o = $(!1), a = $(""), l = $(s.columns), u = $(null), m = $(null), c = $(null), f = $({ top: 0, left: 0 }), h = q(() => a.value ? l.value.filter((w) => w.ua.toLowerCase().includes(a.value.toLowerCase())) : l.value), x = $("uk"), y = (w) => {
|
|
61
61
|
w.detail.key === "locale" && (x.value = w.detail.newValue);
|
|
62
62
|
};
|
|
63
63
|
Bt(() => {
|
|
@@ -88,7 +88,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
88
88
|
}
|
|
89
89
|
return Ge(() => {
|
|
90
90
|
document.addEventListener("click", R, !0);
|
|
91
|
-
}),
|
|
91
|
+
}), Es(() => {
|
|
92
92
|
document.removeEventListener("click", R, !0);
|
|
93
93
|
}), (w, E) => (v(), k(se, null, [
|
|
94
94
|
d("button", {
|
|
@@ -105,10 +105,10 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
105
105
|
ref_key: "modalRef",
|
|
106
106
|
ref: m,
|
|
107
107
|
class: "fixed z-10 w-64 transition-[opacity,margin] duration bg-white rounded-xl shadow-lg dark:bg-neutral-900",
|
|
108
|
-
style:
|
|
108
|
+
style: ct([{ position: "fixed" }, { top: `${f.value.top}px`, left: `${f.value.left}px` }])
|
|
109
109
|
}, [
|
|
110
|
-
d("div",
|
|
111
|
-
d("div",
|
|
110
|
+
d("div", Cr, A(Z(n)("table.columns")), 1),
|
|
111
|
+
d("div", Tr, [
|
|
112
112
|
Ee(d("input", {
|
|
113
113
|
type: "text",
|
|
114
114
|
ref_key: "searchInput",
|
|
@@ -116,12 +116,12 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
116
116
|
"onUpdate:modelValue": E[0] || (E[0] = (C) => a.value = C),
|
|
117
117
|
class: "py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",
|
|
118
118
|
placeholder: Z(n)("table.search")
|
|
119
|
-
}, null, 8,
|
|
120
|
-
[
|
|
119
|
+
}, null, 8, Or), [
|
|
120
|
+
[Nt, a.value]
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
|
-
d("div",
|
|
124
|
-
d("span",
|
|
123
|
+
d("div", Ir, [
|
|
124
|
+
d("span", Dr, A(Z(n)("table.choose")), 1),
|
|
125
125
|
d("div", {
|
|
126
126
|
class: "space-y-1",
|
|
127
127
|
onClick: E[1] || (E[1] = ot(() => {
|
|
@@ -132,13 +132,13 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
132
132
|
class: "flex justify-between items-center py-1.5 px-3 cursor-pointer rounded-lg hover:bg-gray-100 has-[:disabled]:opacity-50 has-[:disabled]:pointer-events-none dark:hover:bg-neutral-800",
|
|
133
133
|
onClick: (T) => O(C)
|
|
134
134
|
}, [
|
|
135
|
-
d("label",
|
|
135
|
+
d("label", $r, [
|
|
136
136
|
be(A(C[x.value] || C.ua || C.label) + " ", 1),
|
|
137
137
|
d("input", {
|
|
138
138
|
type: "checkbox",
|
|
139
139
|
class: "hidden",
|
|
140
140
|
value: C.hidden
|
|
141
|
-
}, null, 8,
|
|
141
|
+
}, null, 8, Vr),
|
|
142
142
|
d("span", {
|
|
143
143
|
class: L(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none", C.hidden ? "bg-white" : "bg-blue-600 border-0"])
|
|
144
144
|
}, E[3] || (E[3] = [
|
|
@@ -157,14 +157,14 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
157
157
|
], -1)
|
|
158
158
|
]), 2)
|
|
159
159
|
])
|
|
160
|
-
], 8,
|
|
160
|
+
], 8, Ar))), 128))
|
|
161
161
|
])
|
|
162
162
|
])
|
|
163
163
|
], 4)) : Y("", !0)
|
|
164
164
|
]))
|
|
165
165
|
], 64));
|
|
166
166
|
}
|
|
167
|
-
}),
|
|
167
|
+
}), Rr = /* @__PURE__ */ ie({
|
|
168
168
|
name: "NumberFormat",
|
|
169
169
|
__name: "NumberFormat",
|
|
170
170
|
props: {
|
|
@@ -178,7 +178,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
178
178
|
}).format(Number(t.value)));
|
|
179
179
|
return (s, r) => (v(), k("span", null, A(n.value || "-"), 1));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), Lr = /* @__PURE__ */ ie({
|
|
182
182
|
name: "DateFormat",
|
|
183
183
|
__name: "DateFormat",
|
|
184
184
|
props: {
|
|
@@ -197,7 +197,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
197
197
|
});
|
|
198
198
|
return (s, r) => (v(), k("span", null, A(n.value || "-"), 1));
|
|
199
199
|
}
|
|
200
|
-
}),
|
|
200
|
+
}), Pr = /* @__PURE__ */ ie({
|
|
201
201
|
name: "TextFormat",
|
|
202
202
|
__name: "TextFormat",
|
|
203
203
|
props: {
|
|
@@ -209,7 +209,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
209
209
|
const t = e, { value: n } = t, s = q(() => Array.isArray(n) ? n.map((r) => r.text || r).join(",") : n?.text || n);
|
|
210
210
|
return (r, i) => (v(), k("span", null, A(s.value || "-"), 1));
|
|
211
211
|
}
|
|
212
|
-
}),
|
|
212
|
+
}), Fr = /* @__PURE__ */ ie({
|
|
213
213
|
name: "BadgeFormat",
|
|
214
214
|
__name: "BadgeFormat",
|
|
215
215
|
props: {
|
|
@@ -241,15 +241,15 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
241
241
|
return (i, o) => i.value ? (v(), k("span", {
|
|
242
242
|
key: 0,
|
|
243
243
|
class: L(["badge", n.value]),
|
|
244
|
-
style:
|
|
244
|
+
style: ct(r.value)
|
|
245
245
|
}, A(i.value?.text || i.value || "-"), 7)) : Y("", !0);
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
247
|
+
}), Br = (e, t) => {
|
|
248
248
|
const n = e.__vccOpts || e;
|
|
249
249
|
for (const [s, r] of t)
|
|
250
250
|
n[s] = r;
|
|
251
251
|
return n;
|
|
252
|
-
},
|
|
252
|
+
}, jr = /* @__PURE__ */ Br(Fr, [["__scopeId", "data-v-14567189"]]), Ur = { class: "flex flex-wrap gap-1" }, zr = /* @__PURE__ */ ie({
|
|
253
253
|
name: "ArrayFormat",
|
|
254
254
|
__name: "ArrayFormat",
|
|
255
255
|
props: {
|
|
@@ -259,14 +259,14 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
259
259
|
},
|
|
260
260
|
setup(e) {
|
|
261
261
|
const t = e, n = q(() => t.value ? Array.isArray(t.value) ? t.value : [t.value] : []), s = (r) => r ? typeof r == "object" && r.name ? r.name : typeof r == "string" || typeof r == "number" ? String(r) : JSON.stringify(r) : "";
|
|
262
|
-
return (r, i) => (v(), k("div",
|
|
262
|
+
return (r, i) => (v(), k("div", Ur, [
|
|
263
263
|
(v(!0), k(se, null, Se(n.value, (o, a) => (v(), k("span", {
|
|
264
264
|
key: a,
|
|
265
265
|
class: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"
|
|
266
266
|
}, A(s(o)), 1))), 128))
|
|
267
267
|
]));
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
269
|
+
}), Hr = /* @__PURE__ */ ie({
|
|
270
270
|
name: "TextFormat",
|
|
271
271
|
__name: "SelectFormat",
|
|
272
272
|
props: {
|
|
@@ -278,12 +278,12 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
278
278
|
const t = e, { value: n } = t, s = q(() => Array.isArray(n) ? n.map((r) => r.text || r).filter((r, i) => i < 2).join(", ") + (n.length > 2 ? ` +${n.length - 2}` : "") : n?.text || n);
|
|
279
279
|
return (r, i) => (v(), k("span", null, A(s.value || "-"), 1));
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
281
|
+
}), qr = {
|
|
282
282
|
key: 0,
|
|
283
283
|
"data-state": "checked",
|
|
284
284
|
"data-slot": "checkbox-indicator",
|
|
285
285
|
class: "pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"
|
|
286
|
-
},
|
|
286
|
+
}, Kr = /* @__PURE__ */ ie({
|
|
287
287
|
name: "BooleanFormat",
|
|
288
288
|
__name: "BooleanFormat",
|
|
289
289
|
props: {
|
|
@@ -299,7 +299,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
299
299
|
// hover: resolveColorClass('hover:text-border-cyan-500'),
|
|
300
300
|
// bg: resolveColorClass('bg-border-cyan-500 hover:bg-border-cyan-500/90'),
|
|
301
301
|
})), (t, n) => (v(), k(se, null, [
|
|
302
|
-
t.value ? (v(), k("span",
|
|
302
|
+
t.value ? (v(), k("span", qr, n[0] || (n[0] = [
|
|
303
303
|
d("svg", {
|
|
304
304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
305
305
|
width: "24",
|
|
@@ -318,10 +318,10 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
318
318
|
n[1] || (n[1] = d("span", null, null, -1))
|
|
319
319
|
], 64));
|
|
320
320
|
}
|
|
321
|
-
}),
|
|
321
|
+
}), Wr = {
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60"
|
|
324
|
-
},
|
|
324
|
+
}, Gr = { class: "relative bg-white rounded-lg shadow-lg w-[90vw] h-[80vh] overflow-hidden" }, Jr = /* @__PURE__ */ ie({
|
|
325
325
|
name: "GeomFormat",
|
|
326
326
|
__name: "GeomFormat",
|
|
327
327
|
props: {
|
|
@@ -407,8 +407,8 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
407
407
|
], -1)
|
|
408
408
|
])),
|
|
409
409
|
(v(), Ce(jt, { to: "body" }, [
|
|
410
|
-
n.value ? (v(), k("div",
|
|
411
|
-
d("div",
|
|
410
|
+
n.value ? (v(), k("div", Wr, [
|
|
411
|
+
d("div", Gr, [
|
|
412
412
|
d("button", {
|
|
413
413
|
type: "button",
|
|
414
414
|
class: "absolute top-3 right-3 z-[1001] inline-flex items-center justify-center w-8 h-8 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors text-gray-900",
|
|
@@ -442,15 +442,15 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
442
442
|
]));
|
|
443
443
|
}
|
|
444
444
|
}), Wn = {
|
|
445
|
-
number:
|
|
446
|
-
date:
|
|
447
|
-
text:
|
|
448
|
-
badge:
|
|
449
|
-
array:
|
|
450
|
-
select:
|
|
451
|
-
boolean:
|
|
452
|
-
geom:
|
|
453
|
-
},
|
|
445
|
+
number: Rr,
|
|
446
|
+
date: Lr,
|
|
447
|
+
text: Pr,
|
|
448
|
+
badge: jr,
|
|
449
|
+
array: zr,
|
|
450
|
+
select: Hr,
|
|
451
|
+
boolean: Kr,
|
|
452
|
+
geom: Jr
|
|
453
|
+
}, Yr = { class: "flex items-center space-x-4" }, Xr = { class: "font-medium" }, Zr = { class: "font-medium" }, Qr = { class: "font-medium" }, ei = { class: "flex items-center space-x-2" }, ti = ["disabled"], ni = { class: "flex items-center space-x-1" }, si = ["onClick"], ri = ["disabled"], _s = /* @__PURE__ */ ie({
|
|
454
454
|
name: "Pagination",
|
|
455
455
|
__name: "Pagination",
|
|
456
456
|
props: {
|
|
@@ -521,22 +521,22 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
521
521
|
return (c, f) => (v(), k("div", {
|
|
522
522
|
class: L(["flex items-center justify-between py-3 border-t", r.value.container])
|
|
523
523
|
}, [
|
|
524
|
-
d("div",
|
|
524
|
+
d("div", Yr, [
|
|
525
525
|
d("div", {
|
|
526
526
|
class: L(["flex items-center text-sm", r.value.text, s.value.text])
|
|
527
527
|
}, [
|
|
528
528
|
d("span", null, [
|
|
529
|
-
f[2] || (f[2] = be(" Показано ")),
|
|
530
|
-
d("span",
|
|
531
|
-
f[3] || (f[3] = be(" до ")),
|
|
532
|
-
d("span",
|
|
533
|
-
f[4] || (f[4] = be(" з ")),
|
|
534
|
-
d("span",
|
|
535
|
-
f[5] || (f[5] = be(" результатів "))
|
|
529
|
+
f[2] || (f[2] = be(" Показано ", -1)),
|
|
530
|
+
d("span", Xr, A(a.value), 1),
|
|
531
|
+
f[3] || (f[3] = be(" до ", -1)),
|
|
532
|
+
d("span", Zr, A(l.value), 1),
|
|
533
|
+
f[4] || (f[4] = be(" з ", -1)),
|
|
534
|
+
d("span", Qr, A(c.total), 1),
|
|
535
|
+
f[5] || (f[5] = be(" результатів ", -1))
|
|
536
536
|
])
|
|
537
537
|
], 2)
|
|
538
538
|
]),
|
|
539
|
-
d("div",
|
|
539
|
+
d("div", ei, [
|
|
540
540
|
d("button", {
|
|
541
541
|
onClick: f[0] || (f[0] = (h) => m(c.page - 1)),
|
|
542
542
|
disabled: c.page <= 1,
|
|
@@ -559,8 +559,8 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
559
559
|
d: "M15 19l-7-7 7-7"
|
|
560
560
|
}, null, -1)
|
|
561
561
|
]), 2))
|
|
562
|
-
], 10,
|
|
563
|
-
d("div",
|
|
562
|
+
], 10, ti),
|
|
563
|
+
d("div", ni, [
|
|
564
564
|
(v(!0), k(se, null, Se(u.value, (h) => (v(), k(se, { key: h }, [
|
|
565
565
|
h === "..." ? (v(), k("span", {
|
|
566
566
|
key: 0,
|
|
@@ -573,7 +573,7 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
573
573
|
s.value.button,
|
|
574
574
|
h === c.page ? r.value.buttonActive : r.value.button
|
|
575
575
|
])
|
|
576
|
-
}, A(h), 11,
|
|
576
|
+
}, A(h), 11, si))
|
|
577
577
|
], 64))), 128))
|
|
578
578
|
]),
|
|
579
579
|
d("button", {
|
|
@@ -598,13 +598,13 @@ const Nr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
598
598
|
d: "M9 5l7 7-7 7"
|
|
599
599
|
}, null, -1)
|
|
600
600
|
]), 2))
|
|
601
|
-
], 10,
|
|
601
|
+
], 10, ri)
|
|
602
602
|
])
|
|
603
603
|
], 2));
|
|
604
604
|
}
|
|
605
605
|
});
|
|
606
606
|
/**
|
|
607
|
-
* @vue/shared v3.5.
|
|
607
|
+
* @vue/shared v3.5.18
|
|
608
608
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
609
609
|
* @license MIT
|
|
610
610
|
**/
|
|
@@ -615,23 +615,23 @@ function Ie(e) {
|
|
|
615
615
|
for (const n of e.split(",")) t[n] = 1;
|
|
616
616
|
return (n) => n in t;
|
|
617
617
|
}
|
|
618
|
-
const
|
|
618
|
+
const ii = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
619
619
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
620
620
|
const Xt = () => {
|
|
621
|
-
},
|
|
622
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Le = Object.assign, Oe = Array.isArray, re = (e) => typeof e == "string", vn = (e) => typeof e == "symbol",
|
|
621
|
+
}, Et = () => !1, nn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
622
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Le = Object.assign, Oe = Array.isArray, re = (e) => typeof e == "string", vn = (e) => typeof e == "symbol", oi = (e) => e !== null && typeof e == "object", Gn = /* @__PURE__ */ Ie(
|
|
623
623
|
// the leading comma is intentional so empty string "" is also included
|
|
624
624
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
625
|
-
),
|
|
625
|
+
), ai = /* @__PURE__ */ Ie(
|
|
626
626
|
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
627
627
|
), yn = (e) => {
|
|
628
628
|
const t = /* @__PURE__ */ Object.create(null);
|
|
629
629
|
return (n) => t[n] || (t[n] = e(n));
|
|
630
|
-
},
|
|
631
|
-
(e) => e.replace(
|
|
632
|
-
), bn = yn((e) => e.charAt(0).toUpperCase() + e.slice(1)),
|
|
630
|
+
}, li = /-(\w)/g, Pe = yn(
|
|
631
|
+
(e) => e.replace(li, (t, n) => n ? n.toUpperCase() : "")
|
|
632
|
+
), bn = yn((e) => e.charAt(0).toUpperCase() + e.slice(1)), ci = yn(
|
|
633
633
|
(e) => e ? `on${bn(e)}` : ""
|
|
634
|
-
),
|
|
634
|
+
), at = {
|
|
635
635
|
1: "TEXT",
|
|
636
636
|
2: "CLASS",
|
|
637
637
|
4: "STYLE",
|
|
@@ -646,37 +646,37 @@ const Xt = () => {
|
|
|
646
646
|
2048: "DEV_ROOT_FRAGMENT",
|
|
647
647
|
[-1]: "CACHED",
|
|
648
648
|
[-2]: "BAIL"
|
|
649
|
-
},
|
|
649
|
+
}, ui = {
|
|
650
650
|
1: "STABLE",
|
|
651
651
|
2: "DYNAMIC",
|
|
652
652
|
3: "FORWARDED"
|
|
653
|
-
},
|
|
654
|
-
function
|
|
653
|
+
}, di = /;(?![^(]*\))/g, fi = /:([^]+)/, pi = /\/\*[^]*?\*\//g;
|
|
654
|
+
function hi(e) {
|
|
655
655
|
const t = {};
|
|
656
|
-
return e.replace(
|
|
656
|
+
return e.replace(pi, "").split(di).forEach((n) => {
|
|
657
657
|
if (n) {
|
|
658
|
-
const s = n.split(
|
|
658
|
+
const s = n.split(fi);
|
|
659
659
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
660
660
|
}
|
|
661
661
|
}), t;
|
|
662
662
|
}
|
|
663
|
-
const
|
|
663
|
+
const mi = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", gi = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view", vi = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics", yi = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr", bi = /* @__PURE__ */ Ie(mi), xi = /* @__PURE__ */ Ie(gi), ki = /* @__PURE__ */ Ie(vi), Ei = /* @__PURE__ */ Ie(yi);
|
|
664
664
|
/**
|
|
665
|
-
* @vue/compiler-core v3.5.
|
|
665
|
+
* @vue/compiler-core v3.5.18
|
|
666
666
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
667
667
|
* @license MIT
|
|
668
668
|
**/
|
|
669
|
-
const
|
|
669
|
+
const ut = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt = Symbol(process.env.NODE_ENV !== "production" ? "Teleport" : ""), xn = Symbol(process.env.NODE_ENV !== "production" ? "Suspense" : ""), Dt = Symbol(process.env.NODE_ENV !== "production" ? "KeepAlive" : ""), Ns = Symbol(
|
|
670
670
|
process.env.NODE_ENV !== "production" ? "BaseTransition" : ""
|
|
671
|
-
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""),
|
|
671
|
+
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""), Cs = Symbol(process.env.NODE_ENV !== "production" ? "createBlock" : ""), Ts = Symbol(
|
|
672
672
|
process.env.NODE_ENV !== "production" ? "createElementBlock" : ""
|
|
673
673
|
), kn = Symbol(process.env.NODE_ENV !== "production" ? "createVNode" : ""), En = Symbol(
|
|
674
674
|
process.env.NODE_ENV !== "production" ? "createElementVNode" : ""
|
|
675
|
-
),
|
|
675
|
+
), gt = Symbol(
|
|
676
676
|
process.env.NODE_ENV !== "production" ? "createCommentVNode" : ""
|
|
677
677
|
), wn = Symbol(
|
|
678
678
|
process.env.NODE_ENV !== "production" ? "createTextVNode" : ""
|
|
679
|
-
),
|
|
679
|
+
), Os = Symbol(
|
|
680
680
|
process.env.NODE_ENV !== "production" ? "createStaticVNode" : ""
|
|
681
681
|
), Sn = Symbol(
|
|
682
682
|
process.env.NODE_ENV !== "production" ? "resolveComponent" : ""
|
|
@@ -688,62 +688,62 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), at =
|
|
|
688
688
|
process.env.NODE_ENV !== "production" ? "resolveFilter" : ""
|
|
689
689
|
), Tn = Symbol(
|
|
690
690
|
process.env.NODE_ENV !== "production" ? "withDirectives" : ""
|
|
691
|
-
), On = Symbol(process.env.NODE_ENV !== "production" ? "renderList" : ""),
|
|
691
|
+
), On = Symbol(process.env.NODE_ENV !== "production" ? "renderList" : ""), Is = Symbol(process.env.NODE_ENV !== "production" ? "renderSlot" : ""), Ds = Symbol(process.env.NODE_ENV !== "production" ? "createSlots" : ""), Ut = Symbol(
|
|
692
692
|
process.env.NODE_ENV !== "production" ? "toDisplayString" : ""
|
|
693
693
|
), At = Symbol(process.env.NODE_ENV !== "production" ? "mergeProps" : ""), In = Symbol(
|
|
694
694
|
process.env.NODE_ENV !== "production" ? "normalizeClass" : ""
|
|
695
695
|
), Dn = Symbol(
|
|
696
696
|
process.env.NODE_ENV !== "production" ? "normalizeStyle" : ""
|
|
697
|
-
),
|
|
697
|
+
), dt = Symbol(
|
|
698
698
|
process.env.NODE_ENV !== "production" ? "normalizeProps" : ""
|
|
699
|
-
),
|
|
699
|
+
), vt = Symbol(
|
|
700
700
|
process.env.NODE_ENV !== "production" ? "guardReactiveProps" : ""
|
|
701
|
-
), An = Symbol(process.env.NODE_ENV !== "production" ? "toHandlers" : ""), sn = Symbol(process.env.NODE_ENV !== "production" ? "camelize" : ""),
|
|
701
|
+
), An = Symbol(process.env.NODE_ENV !== "production" ? "toHandlers" : ""), sn = Symbol(process.env.NODE_ENV !== "production" ? "camelize" : ""), wi = Symbol(process.env.NODE_ENV !== "production" ? "capitalize" : ""), rn = Symbol(
|
|
702
702
|
process.env.NODE_ENV !== "production" ? "toHandlerKey" : ""
|
|
703
703
|
), $t = Symbol(
|
|
704
704
|
process.env.NODE_ENV !== "production" ? "setBlockTracking" : ""
|
|
705
|
-
),
|
|
706
|
-
[
|
|
707
|
-
[
|
|
705
|
+
), Si = Symbol(process.env.NODE_ENV !== "production" ? "pushScopeId" : ""), _i = Symbol(process.env.NODE_ENV !== "production" ? "popScopeId" : ""), $n = Symbol(process.env.NODE_ENV !== "production" ? "withCtx" : ""), Ni = Symbol(process.env.NODE_ENV !== "production" ? "unref" : ""), Ci = Symbol(process.env.NODE_ENV !== "production" ? "isRef" : ""), Vn = Symbol(process.env.NODE_ENV !== "production" ? "withMemo" : ""), As = Symbol(process.env.NODE_ENV !== "production" ? "isMemoSame" : ""), Qe = {
|
|
706
|
+
[ut]: "Fragment",
|
|
707
|
+
[lt]: "Teleport",
|
|
708
708
|
[xn]: "Suspense",
|
|
709
709
|
[Dt]: "KeepAlive",
|
|
710
|
-
[
|
|
710
|
+
[Ns]: "BaseTransition",
|
|
711
711
|
[Je]: "openBlock",
|
|
712
|
-
[
|
|
713
|
-
[
|
|
712
|
+
[Cs]: "createBlock",
|
|
713
|
+
[Ts]: "createElementBlock",
|
|
714
714
|
[kn]: "createVNode",
|
|
715
715
|
[En]: "createElementVNode",
|
|
716
|
-
[
|
|
716
|
+
[gt]: "createCommentVNode",
|
|
717
717
|
[wn]: "createTextVNode",
|
|
718
|
-
[
|
|
718
|
+
[Os]: "createStaticVNode",
|
|
719
719
|
[Sn]: "resolveComponent",
|
|
720
720
|
[_n]: "resolveDynamicComponent",
|
|
721
721
|
[Nn]: "resolveDirective",
|
|
722
722
|
[Cn]: "resolveFilter",
|
|
723
723
|
[Tn]: "withDirectives",
|
|
724
724
|
[On]: "renderList",
|
|
725
|
-
[
|
|
726
|
-
[
|
|
725
|
+
[Is]: "renderSlot",
|
|
726
|
+
[Ds]: "createSlots",
|
|
727
727
|
[Ut]: "toDisplayString",
|
|
728
728
|
[At]: "mergeProps",
|
|
729
729
|
[In]: "normalizeClass",
|
|
730
730
|
[Dn]: "normalizeStyle",
|
|
731
|
-
[
|
|
732
|
-
[
|
|
731
|
+
[dt]: "normalizeProps",
|
|
732
|
+
[vt]: "guardReactiveProps",
|
|
733
733
|
[An]: "toHandlers",
|
|
734
734
|
[sn]: "camelize",
|
|
735
|
-
[
|
|
735
|
+
[wi]: "capitalize",
|
|
736
736
|
[rn]: "toHandlerKey",
|
|
737
737
|
[$t]: "setBlockTracking",
|
|
738
|
-
[
|
|
739
|
-
[
|
|
738
|
+
[Si]: "pushScopeId",
|
|
739
|
+
[_i]: "popScopeId",
|
|
740
740
|
[$n]: "withCtx",
|
|
741
|
-
[
|
|
742
|
-
[
|
|
741
|
+
[Ni]: "unref",
|
|
742
|
+
[Ci]: "isRef",
|
|
743
743
|
[Vn]: "withMemo",
|
|
744
|
-
[
|
|
744
|
+
[As]: "isMemoSame"
|
|
745
745
|
};
|
|
746
|
-
function
|
|
746
|
+
function Ti(e) {
|
|
747
747
|
Object.getOwnPropertySymbols(e).forEach((t) => {
|
|
748
748
|
Qe[t] = e[t];
|
|
749
749
|
});
|
|
@@ -753,7 +753,7 @@ const ye = {
|
|
|
753
753
|
end: { line: 1, column: 1, offset: 0 },
|
|
754
754
|
source: ""
|
|
755
755
|
};
|
|
756
|
-
function
|
|
756
|
+
function Oi(e, t = "") {
|
|
757
757
|
return {
|
|
758
758
|
type: 0,
|
|
759
759
|
source: t,
|
|
@@ -769,7 +769,7 @@ function Ti(e, t = "") {
|
|
|
769
769
|
loc: ye
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function ft(e, t, n, s, r, i, o, a = !1, l = !1, u = !1, m = ye) {
|
|
773
773
|
return e && (a ? (e.helper(Je), e.helper(nt(e.inSSR, u))) : e.helper(tt(e.inSSR, u)), o && e.helper(Tn)), {
|
|
774
774
|
type: 13,
|
|
775
775
|
tag: t,
|
|
@@ -850,7 +850,7 @@ function on(e, t, n, s = !0) {
|
|
|
850
850
|
loc: ye
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Ii(e, t, n = !1, s = !1) {
|
|
854
854
|
return {
|
|
855
855
|
type: 20,
|
|
856
856
|
index: e,
|
|
@@ -861,7 +861,7 @@ function Oi(e, t, n = !1, s = !1) {
|
|
|
861
861
|
loc: ye
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Di(e) {
|
|
865
865
|
return {
|
|
866
866
|
type: 21,
|
|
867
867
|
body: e,
|
|
@@ -872,7 +872,7 @@ function tt(e, t) {
|
|
|
872
872
|
return e || t ? kn : En;
|
|
873
873
|
}
|
|
874
874
|
function nt(e, t) {
|
|
875
|
-
return e || t ?
|
|
875
|
+
return e || t ? Cs : Ts;
|
|
876
876
|
}
|
|
877
877
|
function Mn(e, { helper: t, removeHelper: n, inSSR: s }) {
|
|
878
878
|
e.isBlock || (e.isBlock = !0, n(tt(s, e.isComponent)), t(Je), t(nt(s, e.isComponent)));
|
|
@@ -920,7 +920,7 @@ const oe = {
|
|
|
920
920
|
])
|
|
921
921
|
// `</textarea
|
|
922
922
|
};
|
|
923
|
-
class
|
|
923
|
+
class Ai {
|
|
924
924
|
constructor(t, n) {
|
|
925
925
|
this.stack = t, this.cbs = n, this.state = 1, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = 1, this.inRCDATA = !1, this.inXML = !1, this.inVPre = !1, this.newlines = [], this.mode = 0, this.delimiterOpen = Jn, this.delimiterClose = Yn, this.delimiterIndex = -1, this.currentSequence = void 0, this.sequenceIndex = 0;
|
|
926
926
|
}
|
|
@@ -1314,7 +1314,7 @@ class Di {
|
|
|
1314
1314
|
emitCodePoint(t, n) {
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
const
|
|
1317
|
+
const $i = {
|
|
1318
1318
|
COMPILER_IS_ON_ELEMENT: {
|
|
1319
1319
|
message: 'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',
|
|
1320
1320
|
link: "https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"
|
|
@@ -1362,21 +1362,21 @@ function st(e, t, n, ...s) {
|
|
|
1362
1362
|
function Mt(e, t, n, ...s) {
|
|
1363
1363
|
if (an(e, t) === "suppress-warning")
|
|
1364
1364
|
return;
|
|
1365
|
-
const { message: i, link: o } =
|
|
1365
|
+
const { message: i, link: o } = $i[e], a = `(deprecation ${e}) ${typeof i == "function" ? i(...s) : i}${o ? `
|
|
1366
1366
|
Details: ${o}` : ""}`, l = new SyntaxError(a);
|
|
1367
1367
|
l.code = e, n && (l.loc = n), t.onWarn(l);
|
|
1368
1368
|
}
|
|
1369
1369
|
function Rn(e) {
|
|
1370
1370
|
throw e;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function $s(e) {
|
|
1373
1373
|
process.env.NODE_ENV !== "production" && console.warn(`[Vue warn] ${e.message}`);
|
|
1374
1374
|
}
|
|
1375
1375
|
function K(e, t, n, s) {
|
|
1376
|
-
const r = process.env.NODE_ENV !== "production" ? (n ||
|
|
1376
|
+
const r = process.env.NODE_ENV !== "production" ? (n || Vi)[e] + (s || "") : `https://vuejs.org/error-reference/#compiler-${e}`, i = new SyntaxError(String(r));
|
|
1377
1377
|
return i.code = e, i.loc = t, i;
|
|
1378
1378
|
}
|
|
1379
|
-
const
|
|
1379
|
+
const Vi = {
|
|
1380
1380
|
// parse errors
|
|
1381
1381
|
0: "Illegal comment.",
|
|
1382
1382
|
1: "CDATA section is allowed only in XML context.",
|
|
@@ -1438,11 +1438,11 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
1438
1438
|
// just to fulfill types
|
|
1439
1439
|
53: ""
|
|
1440
1440
|
}, he = (e) => e.type === 4 && e.isStatic;
|
|
1441
|
-
function
|
|
1441
|
+
function Vs(e) {
|
|
1442
1442
|
switch (e) {
|
|
1443
1443
|
case "Teleport":
|
|
1444
1444
|
case "teleport":
|
|
1445
|
-
return
|
|
1445
|
+
return lt;
|
|
1446
1446
|
case "Suspense":
|
|
1447
1447
|
case "suspense":
|
|
1448
1448
|
return xn;
|
|
@@ -1451,11 +1451,11 @@ function $s(e) {
|
|
|
1451
1451
|
return Dt;
|
|
1452
1452
|
case "BaseTransition":
|
|
1453
1453
|
case "base-transition":
|
|
1454
|
-
return
|
|
1454
|
+
return Ns;
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1458
|
-
const t =
|
|
1457
|
+
const Mi = /^$|^\d|[^\$\w\xA0-\uFFFF]/, Ln = (e) => !Mi.test(e), Ri = /[A-Za-z_$\xA0-\uFFFF]/, Li = /[\.\?\w$\xA0-\uFFFF]/, Pi = /\s+[.[]\s*|\s*[.[]\s+/g, Ms = (e) => e.type === 4 ? e.content : e.loc.source, Fi = (e) => {
|
|
1458
|
+
const t = Ms(e).trim().replace(Pi, (a) => a.trim());
|
|
1459
1459
|
let n = 0, s = [], r = 0, i = 0, o = null;
|
|
1460
1460
|
for (let a = 0; a < t.length; a++) {
|
|
1461
1461
|
const l = t.charAt(a);
|
|
@@ -1465,7 +1465,7 @@ const Vi = /^\d|[^\$\w\xA0-\uFFFF]/, Ln = (e) => !Vi.test(e), Mi = /[A-Za-z_$\xA
|
|
|
1465
1465
|
s.push(n), n = 1, r++;
|
|
1466
1466
|
else if (l === "(")
|
|
1467
1467
|
s.push(n), n = 2, i++;
|
|
1468
|
-
else if (!(a === 0 ?
|
|
1468
|
+
else if (!(a === 0 ? Ri : Li).test(l))
|
|
1469
1469
|
return !1;
|
|
1470
1470
|
break;
|
|
1471
1471
|
case 1:
|
|
@@ -1488,7 +1488,7 @@ const Vi = /^\d|[^\$\w\xA0-\uFFFF]/, Ln = (e) => !Vi.test(e), Mi = /[A-Za-z_$\xA
|
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
return !r && !i;
|
|
1491
|
-
},
|
|
1491
|
+
}, Rs = Fi, Bi = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/, ji = (e) => Bi.test(Ms(e)), Ui = ji;
|
|
1492
1492
|
function Zn(e, t) {
|
|
1493
1493
|
if (!e)
|
|
1494
1494
|
throw new Error(t || "unexpected compiler condition");
|
|
@@ -1500,7 +1500,7 @@ function pe(e, t, n = !1) {
|
|
|
1500
1500
|
return r;
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function pt(e, t, n = !1, s = !1) {
|
|
1504
1504
|
for (let r = 0; r < e.props.length; r++) {
|
|
1505
1505
|
const i = e.props[r];
|
|
1506
1506
|
if (i.type === 6) {
|
|
@@ -1514,7 +1514,7 @@ function ft(e, t, n = !1, s = !1) {
|
|
|
1514
1514
|
function Re(e, t) {
|
|
1515
1515
|
return !!(e && he(e) && e.content === t);
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function zi(e) {
|
|
1518
1518
|
return e.props.some(
|
|
1519
1519
|
(t) => t.type === 7 && t.name === "bind" && (!t.arg || // v-bind="obj"
|
|
1520
1520
|
t.arg.type !== 4 || // v-bind:[_ctx.foo]
|
|
@@ -1525,7 +1525,10 @@ function Ui(e) {
|
|
|
1525
1525
|
function Zt(e) {
|
|
1526
1526
|
return e.type === 5 || e.type === 2;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Qn(e) {
|
|
1529
|
+
return e.type === 7 && e.name === "pre";
|
|
1530
|
+
}
|
|
1531
|
+
function Hi(e) {
|
|
1529
1532
|
return e.type === 7 && e.name === "slot";
|
|
1530
1533
|
}
|
|
1531
1534
|
function Rt(e) {
|
|
@@ -1534,12 +1537,12 @@ function Rt(e) {
|
|
|
1534
1537
|
function Lt(e) {
|
|
1535
1538
|
return e.type === 1 && e.tagType === 2;
|
|
1536
1539
|
}
|
|
1537
|
-
const
|
|
1538
|
-
function
|
|
1540
|
+
const qi = /* @__PURE__ */ new Set([dt, vt]);
|
|
1541
|
+
function Ls(e, t = []) {
|
|
1539
1542
|
if (e && !re(e) && e.type === 14) {
|
|
1540
1543
|
const n = e.callee;
|
|
1541
|
-
if (!re(n) &&
|
|
1542
|
-
return
|
|
1544
|
+
if (!re(n) && qi.has(n))
|
|
1545
|
+
return Ls(
|
|
1543
1546
|
e.arguments[0],
|
|
1544
1547
|
t.concat(e)
|
|
1545
1548
|
);
|
|
@@ -1549,24 +1552,24 @@ function Rs(e, t = []) {
|
|
|
1549
1552
|
function Pt(e, t, n) {
|
|
1550
1553
|
let s, r = e.type === 13 ? e.props : e.arguments[2], i = [], o;
|
|
1551
1554
|
if (r && !re(r) && r.type === 14) {
|
|
1552
|
-
const a =
|
|
1555
|
+
const a = Ls(r);
|
|
1553
1556
|
r = a[0], i = a[1], o = i[i.length - 1];
|
|
1554
1557
|
}
|
|
1555
1558
|
if (r == null || re(r))
|
|
1556
1559
|
s = xe([t]);
|
|
1557
1560
|
else if (r.type === 14) {
|
|
1558
1561
|
const a = r.arguments[0];
|
|
1559
|
-
!re(a) && a.type === 15 ?
|
|
1562
|
+
!re(a) && a.type === 15 ? es(t, a) || a.properties.unshift(t) : r.callee === An ? s = ne(n.helper(At), [
|
|
1560
1563
|
xe([t]),
|
|
1561
1564
|
r
|
|
1562
1565
|
]) : r.arguments.unshift(xe([t])), !s && (s = r);
|
|
1563
|
-
} else r.type === 15 ? (
|
|
1566
|
+
} else r.type === 15 ? (es(t, r) || r.properties.unshift(t), s = r) : (s = ne(n.helper(At), [
|
|
1564
1567
|
xe([t]),
|
|
1565
1568
|
r
|
|
1566
|
-
]), o && o.callee ===
|
|
1569
|
+
]), o && o.callee === vt && (o = i[i.length - 2]));
|
|
1567
1570
|
e.type === 13 ? o ? o.arguments[0] = s : e.props = s : o ? o.arguments[0] = s : e.arguments[2] = s;
|
|
1568
1571
|
}
|
|
1569
|
-
function
|
|
1572
|
+
function es(e, t) {
|
|
1570
1573
|
let n = !1;
|
|
1571
1574
|
if (e.key.type === 4) {
|
|
1572
1575
|
const s = e.key.content;
|
|
@@ -1576,45 +1579,45 @@ function Qn(e, t) {
|
|
|
1576
1579
|
}
|
|
1577
1580
|
return n;
|
|
1578
1581
|
}
|
|
1579
|
-
function
|
|
1582
|
+
function ht(e, t) {
|
|
1580
1583
|
return `_${t}_${e.replace(/[^\w]/g, (n, s) => n === "-" ? "_" : e.charCodeAt(s).toString())}`;
|
|
1581
1584
|
}
|
|
1582
|
-
function
|
|
1585
|
+
function Ki(e) {
|
|
1583
1586
|
return e.type === 14 && e.callee === Vn ? e.arguments[1].returns : e;
|
|
1584
1587
|
}
|
|
1585
|
-
const
|
|
1588
|
+
const Wi = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/, Ps = {
|
|
1586
1589
|
parseMode: "base",
|
|
1587
1590
|
ns: 0,
|
|
1588
1591
|
delimiters: ["{{", "}}"],
|
|
1589
1592
|
getNamespace: () => 0,
|
|
1590
|
-
isVoidTag:
|
|
1591
|
-
isPreTag:
|
|
1592
|
-
isIgnoreNewlineTag:
|
|
1593
|
-
isCustomElement:
|
|
1593
|
+
isVoidTag: Et,
|
|
1594
|
+
isPreTag: Et,
|
|
1595
|
+
isIgnoreNewlineTag: Et,
|
|
1596
|
+
isCustomElement: Et,
|
|
1594
1597
|
onError: Rn,
|
|
1595
|
-
onWarn:
|
|
1598
|
+
onWarn: $s,
|
|
1596
1599
|
comments: process.env.NODE_ENV !== "production",
|
|
1597
1600
|
prefixIdentifiers: !1
|
|
1598
1601
|
};
|
|
1599
|
-
let
|
|
1600
|
-
const X = [], J = new
|
|
1602
|
+
let B = Ps, mt = null, $e = "", le = null, F = null, fe = "", De = -1, ze = -1, Pn = 0, Me = !1, ln = null;
|
|
1603
|
+
const X = [], J = new Ai(X, {
|
|
1601
1604
|
onerr: de,
|
|
1602
1605
|
ontext(e, t) {
|
|
1603
|
-
|
|
1606
|
+
wt(ae(e, t), e, t);
|
|
1604
1607
|
},
|
|
1605
1608
|
ontextentity(e, t, n) {
|
|
1606
|
-
|
|
1609
|
+
wt(e, t, n);
|
|
1607
1610
|
},
|
|
1608
1611
|
oninterpolation(e, t) {
|
|
1609
1612
|
if (Me)
|
|
1610
|
-
return
|
|
1613
|
+
return wt(ae(e, t), e, t);
|
|
1611
1614
|
let n = e + J.delimiterOpen.length, s = t - J.delimiterClose.length;
|
|
1612
1615
|
for (; ge($e.charCodeAt(n)); )
|
|
1613
1616
|
n++;
|
|
1614
1617
|
for (; ge($e.charCodeAt(s - 1)); )
|
|
1615
1618
|
s--;
|
|
1616
1619
|
let r = ae(n, s);
|
|
1617
|
-
r.includes("&") && (r =
|
|
1620
|
+
r.includes("&") && (r = B.decodeEntities(r, !1)), cn({
|
|
1618
1621
|
type: 5,
|
|
1619
1622
|
content: Tt(r, !1, te(n, s)),
|
|
1620
1623
|
loc: te(e, t)
|
|
@@ -1625,7 +1628,7 @@ const X = [], J = new Di(X, {
|
|
|
1625
1628
|
le = {
|
|
1626
1629
|
type: 1,
|
|
1627
1630
|
tag: n,
|
|
1628
|
-
ns:
|
|
1631
|
+
ns: B.getNamespace(n, X[0], B.ns),
|
|
1629
1632
|
tagType: 0,
|
|
1630
1633
|
// will be refined on tag close
|
|
1631
1634
|
props: [],
|
|
@@ -1635,11 +1638,11 @@ const X = [], J = new Di(X, {
|
|
|
1635
1638
|
};
|
|
1636
1639
|
},
|
|
1637
1640
|
onopentagend(e) {
|
|
1638
|
-
|
|
1641
|
+
ns(e);
|
|
1639
1642
|
},
|
|
1640
1643
|
onclosetag(e, t) {
|
|
1641
1644
|
const n = ae(e, t);
|
|
1642
|
-
if (!
|
|
1645
|
+
if (!B.isVoidTag(n)) {
|
|
1643
1646
|
let s = !1;
|
|
1644
1647
|
for (let r = 0; r < X.length; r++)
|
|
1645
1648
|
if (X[r].tag.toLowerCase() === n.toLowerCase()) {
|
|
@@ -1650,15 +1653,15 @@ const X = [], J = new Di(X, {
|
|
|
1650
1653
|
}
|
|
1651
1654
|
break;
|
|
1652
1655
|
}
|
|
1653
|
-
s || de(23,
|
|
1656
|
+
s || de(23, Fs(e, 60));
|
|
1654
1657
|
}
|
|
1655
1658
|
},
|
|
1656
1659
|
onselfclosingtag(e) {
|
|
1657
1660
|
const t = le.tag;
|
|
1658
|
-
le.isSelfClosing = !0,
|
|
1661
|
+
le.isSelfClosing = !0, ns(e), X[0] && X[0].tag === t && Ct(X.shift(), e);
|
|
1659
1662
|
},
|
|
1660
1663
|
onattribname(e, t) {
|
|
1661
|
-
|
|
1664
|
+
F = {
|
|
1662
1665
|
type: 6,
|
|
1663
1666
|
name: ae(e, t),
|
|
1664
1667
|
nameLoc: te(e, t),
|
|
@@ -1669,14 +1672,14 @@ const X = [], J = new Di(X, {
|
|
|
1669
1672
|
ondirname(e, t) {
|
|
1670
1673
|
const n = ae(e, t), s = n === "." || n === ":" ? "bind" : n === "@" ? "on" : n === "#" ? "slot" : n.slice(2);
|
|
1671
1674
|
if (!Me && s === "" && de(26, e), Me || s === "")
|
|
1672
|
-
|
|
1675
|
+
F = {
|
|
1673
1676
|
type: 6,
|
|
1674
1677
|
name: n,
|
|
1675
1678
|
nameLoc: te(e, t),
|
|
1676
1679
|
value: void 0,
|
|
1677
1680
|
loc: te(e)
|
|
1678
1681
|
};
|
|
1679
|
-
else if (
|
|
1682
|
+
else if (F = {
|
|
1680
1683
|
type: 7,
|
|
1681
1684
|
name: s,
|
|
1682
1685
|
rawName: n,
|
|
@@ -1688,17 +1691,17 @@ const X = [], J = new Di(X, {
|
|
|
1688
1691
|
Me = J.inVPre = !0, ln = le;
|
|
1689
1692
|
const r = le.props;
|
|
1690
1693
|
for (let i = 0; i < r.length; i++)
|
|
1691
|
-
r[i].type === 7 && (r[i] =
|
|
1694
|
+
r[i].type === 7 && (r[i] = ro(r[i]));
|
|
1692
1695
|
}
|
|
1693
1696
|
},
|
|
1694
1697
|
ondirarg(e, t) {
|
|
1695
1698
|
if (e === t) return;
|
|
1696
1699
|
const n = ae(e, t);
|
|
1697
|
-
if (Me)
|
|
1698
|
-
|
|
1700
|
+
if (Me && !Qn(F))
|
|
1701
|
+
F.name += n, qe(F.nameLoc, t);
|
|
1699
1702
|
else {
|
|
1700
1703
|
const s = n[0] !== "[";
|
|
1701
|
-
|
|
1704
|
+
F.arg = Tt(
|
|
1702
1705
|
s ? n : n.slice(1, -1),
|
|
1703
1706
|
s,
|
|
1704
1707
|
te(e, t),
|
|
@@ -1708,14 +1711,14 @@ const X = [], J = new Di(X, {
|
|
|
1708
1711
|
},
|
|
1709
1712
|
ondirmodifier(e, t) {
|
|
1710
1713
|
const n = ae(e, t);
|
|
1711
|
-
if (Me)
|
|
1712
|
-
|
|
1713
|
-
else if (
|
|
1714
|
-
const s =
|
|
1714
|
+
if (Me && !Qn(F))
|
|
1715
|
+
F.name += "." + n, qe(F.nameLoc, t);
|
|
1716
|
+
else if (F.name === "slot") {
|
|
1717
|
+
const s = F.arg;
|
|
1715
1718
|
s && (s.content += "." + n, qe(s.loc, t));
|
|
1716
1719
|
} else {
|
|
1717
1720
|
const s = V(n, !0, te(e, t));
|
|
1718
|
-
|
|
1721
|
+
F.modifiers.push(s);
|
|
1719
1722
|
}
|
|
1720
1723
|
},
|
|
1721
1724
|
onattribdata(e, t) {
|
|
@@ -1725,48 +1728,48 @@ const X = [], J = new Di(X, {
|
|
|
1725
1728
|
fe += e, De < 0 && (De = t), ze = n;
|
|
1726
1729
|
},
|
|
1727
1730
|
onattribnameend(e) {
|
|
1728
|
-
const t =
|
|
1729
|
-
|
|
1731
|
+
const t = F.loc.start.offset, n = ae(t, e);
|
|
1732
|
+
F.type === 7 && (F.rawName = n), le.props.some(
|
|
1730
1733
|
(s) => (s.type === 7 ? s.rawName : s.name) === n
|
|
1731
1734
|
) && de(2, t);
|
|
1732
1735
|
},
|
|
1733
1736
|
onattribend(e, t) {
|
|
1734
|
-
if (le &&
|
|
1735
|
-
if (qe(
|
|
1736
|
-
if (fe.includes("&") && (fe =
|
|
1737
|
+
if (le && F) {
|
|
1738
|
+
if (qe(F.loc, t), e !== 0)
|
|
1739
|
+
if (fe.includes("&") && (fe = B.decodeEntities(
|
|
1737
1740
|
fe,
|
|
1738
1741
|
!0
|
|
1739
|
-
)),
|
|
1740
|
-
|
|
1742
|
+
)), F.type === 6)
|
|
1743
|
+
F.name === "class" && (fe = js(fe).trim()), e === 1 && !fe && de(13, t), F.value = {
|
|
1741
1744
|
type: 2,
|
|
1742
1745
|
content: fe,
|
|
1743
1746
|
loc: e === 1 ? te(De, ze) : te(De - 1, ze + 1)
|
|
1744
|
-
}, J.inSFCRoot && le.tag === "template" &&
|
|
1747
|
+
}, J.inSFCRoot && le.tag === "template" && F.name === "lang" && fe && fe !== "html" && J.enterRCDATA(Vt("</template"), 0);
|
|
1745
1748
|
else {
|
|
1746
1749
|
let n = 0;
|
|
1747
|
-
|
|
1750
|
+
F.exp = Tt(
|
|
1748
1751
|
fe,
|
|
1749
1752
|
!1,
|
|
1750
1753
|
te(De, ze),
|
|
1751
1754
|
0,
|
|
1752
1755
|
n
|
|
1753
|
-
),
|
|
1756
|
+
), F.name === "for" && (F.forParseResult = Ji(F.exp));
|
|
1754
1757
|
let s = -1;
|
|
1755
|
-
|
|
1758
|
+
F.name === "bind" && (s = F.modifiers.findIndex(
|
|
1756
1759
|
(r) => r.content === "sync"
|
|
1757
1760
|
)) > -1 && st(
|
|
1758
1761
|
"COMPILER_V_BIND_SYNC",
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
) && (
|
|
1762
|
+
B,
|
|
1763
|
+
F.loc,
|
|
1764
|
+
F.arg.loc.source
|
|
1765
|
+
) && (F.name = "model", F.modifiers.splice(s, 1));
|
|
1763
1766
|
}
|
|
1764
|
-
(
|
|
1767
|
+
(F.type !== 7 || F.name !== "pre") && le.props.push(F);
|
|
1765
1768
|
}
|
|
1766
1769
|
fe = "", De = ze = -1;
|
|
1767
1770
|
},
|
|
1768
1771
|
oncomment(e, t) {
|
|
1769
|
-
|
|
1772
|
+
B.comments && cn({
|
|
1770
1773
|
type: 3,
|
|
1771
1774
|
content: ae(e, t),
|
|
1772
1775
|
loc: te(e - 4, t + 3)
|
|
@@ -1813,17 +1816,17 @@ const X = [], J = new Di(X, {
|
|
|
1813
1816
|
Ct(X[t], e - 1), de(24, X[t].loc.start.offset);
|
|
1814
1817
|
},
|
|
1815
1818
|
oncdata(e, t) {
|
|
1816
|
-
X[0].ns !== 0 ?
|
|
1819
|
+
X[0].ns !== 0 ? wt(ae(e, t), e, t) : de(1, e - 9);
|
|
1817
1820
|
},
|
|
1818
1821
|
onprocessinginstruction(e) {
|
|
1819
|
-
(X[0] ? X[0].ns :
|
|
1822
|
+
(X[0] ? X[0].ns : B.ns) === 0 && de(
|
|
1820
1823
|
21,
|
|
1821
1824
|
e - 1
|
|
1822
1825
|
);
|
|
1823
1826
|
}
|
|
1824
|
-
}),
|
|
1825
|
-
function
|
|
1826
|
-
const t = e.loc, n = e.content, s = n.match(
|
|
1827
|
+
}), ts = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/, Gi = /^\(|\)$/g;
|
|
1828
|
+
function Ji(e) {
|
|
1829
|
+
const t = e.loc, n = e.content, s = n.match(Wi);
|
|
1827
1830
|
if (!s) return;
|
|
1828
1831
|
const [, r, i] = s, o = (c, f, h = !1) => {
|
|
1829
1832
|
const x = t.start.offset + f, y = x + c.length;
|
|
@@ -1842,10 +1845,10 @@ function Gi(e) {
|
|
|
1842
1845
|
index: void 0,
|
|
1843
1846
|
finalized: !1
|
|
1844
1847
|
};
|
|
1845
|
-
let l = r.trim().replace(
|
|
1846
|
-
const u = r.indexOf(l), m = l.match(
|
|
1848
|
+
let l = r.trim().replace(Gi, "").trim();
|
|
1849
|
+
const u = r.indexOf(l), m = l.match(ts);
|
|
1847
1850
|
if (m) {
|
|
1848
|
-
l = l.replace(
|
|
1851
|
+
l = l.replace(ts, "").trim();
|
|
1849
1852
|
const c = m[1].trim();
|
|
1850
1853
|
let f;
|
|
1851
1854
|
if (c && (f = n.indexOf(c, u + l.length), a.key = o(c, f, !0)), m[2]) {
|
|
@@ -1865,17 +1868,17 @@ function Gi(e) {
|
|
|
1865
1868
|
function ae(e, t) {
|
|
1866
1869
|
return $e.slice(e, t);
|
|
1867
1870
|
}
|
|
1868
|
-
function
|
|
1871
|
+
function ns(e) {
|
|
1869
1872
|
J.inSFCRoot && (le.innerLoc = te(e + 1, e + 1)), cn(le);
|
|
1870
1873
|
const { tag: t, ns: n } = le;
|
|
1871
|
-
n === 0 &&
|
|
1874
|
+
n === 0 && B.isPreTag(t) && Pn++, B.isVoidTag(t) ? Ct(le, e) : (X.unshift(le), (n === 1 || n === 2) && (J.inXML = !0)), le = null;
|
|
1872
1875
|
}
|
|
1873
|
-
function
|
|
1876
|
+
function wt(e, t, n) {
|
|
1874
1877
|
{
|
|
1875
1878
|
const i = X[0] && X[0].tag;
|
|
1876
|
-
i !== "script" && i !== "style" && e.includes("&") && (e =
|
|
1879
|
+
i !== "script" && i !== "style" && e.includes("&") && (e = B.decodeEntities(e, !1));
|
|
1877
1880
|
}
|
|
1878
|
-
const s = X[0] ||
|
|
1881
|
+
const s = X[0] || mt, r = s.children[s.children.length - 1];
|
|
1879
1882
|
r && r.type === 2 ? (r.content += e, qe(r.loc, n)) : s.children.push({
|
|
1880
1883
|
type: 2,
|
|
1881
1884
|
content: e,
|
|
@@ -1883,21 +1886,21 @@ function Et(e, t, n) {
|
|
|
1883
1886
|
});
|
|
1884
1887
|
}
|
|
1885
1888
|
function Ct(e, t, n = !1) {
|
|
1886
|
-
n ? qe(e.loc,
|
|
1889
|
+
n ? qe(e.loc, Fs(t, 60)) : qe(e.loc, Yi(t, 62) + 1), J.inSFCRoot && (e.children.length ? e.innerLoc.end = Le({}, e.children[e.children.length - 1].loc.end) : e.innerLoc.end = Le({}, e.innerLoc.start), e.innerLoc.source = ae(
|
|
1887
1890
|
e.innerLoc.start.offset,
|
|
1888
1891
|
e.innerLoc.end.offset
|
|
1889
1892
|
));
|
|
1890
1893
|
const { tag: s, ns: r, children: i } = e;
|
|
1891
|
-
if (Me || (s === "slot" ? e.tagType = 2 :
|
|
1894
|
+
if (Me || (s === "slot" ? e.tagType = 2 : ss(e) ? e.tagType = 3 : Zi(e) && (e.tagType = 1)), J.inRCDATA || (e.children = Bs(i)), r === 0 && B.isIgnoreNewlineTag(s)) {
|
|
1892
1895
|
const o = i[0];
|
|
1893
1896
|
o && o.type === 2 && (o.content = o.content.replace(/^\r?\n/, ""));
|
|
1894
1897
|
}
|
|
1895
|
-
r === 0 &&
|
|
1898
|
+
r === 0 && B.isPreTag(s) && Pn--, ln === e && (Me = J.inVPre = !1, ln = null), J.inXML && (X[0] ? X[0].ns : B.ns) === 0 && (J.inXML = !1);
|
|
1896
1899
|
{
|
|
1897
1900
|
const o = e.props;
|
|
1898
1901
|
if (process.env.NODE_ENV !== "production" && Fe(
|
|
1899
1902
|
"COMPILER_V_IF_V_FOR_PRECEDENCE",
|
|
1900
|
-
|
|
1903
|
+
B
|
|
1901
1904
|
)) {
|
|
1902
1905
|
let l = !1, u = !1;
|
|
1903
1906
|
for (let m = 0; m < o.length; m++) {
|
|
@@ -1905,7 +1908,7 @@ function Ct(e, t, n = !1) {
|
|
|
1905
1908
|
if (c.type === 7 && (c.name === "if" ? l = !0 : c.name === "for" && (u = !0)), l && u) {
|
|
1906
1909
|
Mt(
|
|
1907
1910
|
"COMPILER_V_IF_V_FOR_PRECEDENCE",
|
|
1908
|
-
|
|
1911
|
+
B,
|
|
1909
1912
|
e.loc
|
|
1910
1913
|
);
|
|
1911
1914
|
break;
|
|
@@ -1914,14 +1917,14 @@ function Ct(e, t, n = !1) {
|
|
|
1914
1917
|
}
|
|
1915
1918
|
if (!J.inSFCRoot && Fe(
|
|
1916
1919
|
"COMPILER_NATIVE_TEMPLATE",
|
|
1917
|
-
|
|
1918
|
-
) && e.tag === "template" && !
|
|
1920
|
+
B
|
|
1921
|
+
) && e.tag === "template" && !ss(e)) {
|
|
1919
1922
|
process.env.NODE_ENV !== "production" && Mt(
|
|
1920
1923
|
"COMPILER_NATIVE_TEMPLATE",
|
|
1921
|
-
|
|
1924
|
+
B,
|
|
1922
1925
|
e.loc
|
|
1923
1926
|
);
|
|
1924
|
-
const l = X[0] ||
|
|
1927
|
+
const l = X[0] || mt, u = l.children.indexOf(e);
|
|
1925
1928
|
l.children.splice(u, 1, ...e.children);
|
|
1926
1929
|
}
|
|
1927
1930
|
const a = o.find(
|
|
@@ -1929,7 +1932,7 @@ function Ct(e, t, n = !1) {
|
|
|
1929
1932
|
);
|
|
1930
1933
|
a && st(
|
|
1931
1934
|
"COMPILER_INLINE_TEMPLATE",
|
|
1932
|
-
|
|
1935
|
+
B,
|
|
1933
1936
|
a.loc
|
|
1934
1937
|
) && e.children.length && (a.value = {
|
|
1935
1938
|
type: 2,
|
|
@@ -1941,29 +1944,29 @@ function Ct(e, t, n = !1) {
|
|
|
1941
1944
|
});
|
|
1942
1945
|
}
|
|
1943
1946
|
}
|
|
1944
|
-
function
|
|
1947
|
+
function Yi(e, t) {
|
|
1945
1948
|
let n = e;
|
|
1946
1949
|
for (; $e.charCodeAt(n) !== t && n < $e.length - 1; ) n++;
|
|
1947
1950
|
return n;
|
|
1948
1951
|
}
|
|
1949
|
-
function
|
|
1952
|
+
function Fs(e, t) {
|
|
1950
1953
|
let n = e;
|
|
1951
1954
|
for (; $e.charCodeAt(n) !== t && n >= 0; ) n--;
|
|
1952
1955
|
return n;
|
|
1953
1956
|
}
|
|
1954
|
-
const
|
|
1955
|
-
function
|
|
1957
|
+
const Xi = /* @__PURE__ */ new Set(["if", "else", "else-if", "for", "slot"]);
|
|
1958
|
+
function ss({ tag: e, props: t }) {
|
|
1956
1959
|
if (e === "template") {
|
|
1957
1960
|
for (let n = 0; n < t.length; n++)
|
|
1958
|
-
if (t[n].type === 7 &&
|
|
1961
|
+
if (t[n].type === 7 && Xi.has(t[n].name))
|
|
1959
1962
|
return !0;
|
|
1960
1963
|
}
|
|
1961
1964
|
return !1;
|
|
1962
1965
|
}
|
|
1963
|
-
function
|
|
1964
|
-
if (
|
|
1966
|
+
function Zi({ tag: e, props: t }) {
|
|
1967
|
+
if (B.isCustomElement(e))
|
|
1965
1968
|
return !1;
|
|
1966
|
-
if (e === "component" ||
|
|
1969
|
+
if (e === "component" || Qi(e.charCodeAt(0)) || Vs(e) || B.isBuiltInComponent && B.isBuiltInComponent(e) || B.isNativeTag && !B.isNativeTag(e))
|
|
1967
1970
|
return !0;
|
|
1968
1971
|
for (let n = 0; n < t.length; n++) {
|
|
1969
1972
|
const s = t[n];
|
|
@@ -1973,7 +1976,7 @@ function Xi({ tag: e, props: t }) {
|
|
|
1973
1976
|
return !0;
|
|
1974
1977
|
if (st(
|
|
1975
1978
|
"COMPILER_IS_ON_ELEMENT",
|
|
1976
|
-
|
|
1979
|
+
B,
|
|
1977
1980
|
s.loc
|
|
1978
1981
|
))
|
|
1979
1982
|
return !0;
|
|
@@ -1982,7 +1985,7 @@ function Xi({ tag: e, props: t }) {
|
|
|
1982
1985
|
// :is on plain element - only treat as component in compat mode
|
|
1983
1986
|
s.name === "bind" && Re(s.arg, "is") && st(
|
|
1984
1987
|
"COMPILER_IS_ON_ELEMENT",
|
|
1985
|
-
|
|
1988
|
+
B,
|
|
1986
1989
|
s.loc
|
|
1987
1990
|
)
|
|
1988
1991
|
)
|
|
@@ -1990,33 +1993,33 @@ function Xi({ tag: e, props: t }) {
|
|
|
1990
1993
|
}
|
|
1991
1994
|
return !1;
|
|
1992
1995
|
}
|
|
1993
|
-
function
|
|
1996
|
+
function Qi(e) {
|
|
1994
1997
|
return e > 64 && e < 91;
|
|
1995
1998
|
}
|
|
1996
|
-
const
|
|
1997
|
-
function
|
|
1998
|
-
const t =
|
|
1999
|
+
const eo = /\r\n/g;
|
|
2000
|
+
function Bs(e) {
|
|
2001
|
+
const t = B.whitespace !== "preserve";
|
|
1999
2002
|
let n = !1;
|
|
2000
2003
|
for (let s = 0; s < e.length; s++) {
|
|
2001
2004
|
const r = e[s];
|
|
2002
2005
|
if (r.type === 2)
|
|
2003
2006
|
if (Pn)
|
|
2004
|
-
r.content = r.content.replace(
|
|
2007
|
+
r.content = r.content.replace(eo, `
|
|
2005
2008
|
`);
|
|
2006
|
-
else if (
|
|
2009
|
+
else if (to(r.content)) {
|
|
2007
2010
|
const i = e[s - 1] && e[s - 1].type, o = e[s + 1] && e[s + 1].type;
|
|
2008
|
-
!i || !o || t && (i === 3 && (o === 3 || o === 1) || i === 1 && (o === 3 || o === 1 &&
|
|
2009
|
-
} else t && (r.content =
|
|
2011
|
+
!i || !o || t && (i === 3 && (o === 3 || o === 1) || i === 1 && (o === 3 || o === 1 && no(r.content))) ? (n = !0, e[s] = null) : r.content = " ";
|
|
2012
|
+
} else t && (r.content = js(r.content));
|
|
2010
2013
|
}
|
|
2011
2014
|
return n ? e.filter(Boolean) : e;
|
|
2012
2015
|
}
|
|
2013
|
-
function
|
|
2016
|
+
function to(e) {
|
|
2014
2017
|
for (let t = 0; t < e.length; t++)
|
|
2015
2018
|
if (!ge(e.charCodeAt(t)))
|
|
2016
2019
|
return !1;
|
|
2017
2020
|
return !0;
|
|
2018
2021
|
}
|
|
2019
|
-
function
|
|
2022
|
+
function no(e) {
|
|
2020
2023
|
for (let t = 0; t < e.length; t++) {
|
|
2021
2024
|
const n = e.charCodeAt(t);
|
|
2022
2025
|
if (n === 10 || n === 13)
|
|
@@ -2024,14 +2027,14 @@ function to(e) {
|
|
|
2024
2027
|
}
|
|
2025
2028
|
return !1;
|
|
2026
2029
|
}
|
|
2027
|
-
function
|
|
2030
|
+
function js(e) {
|
|
2028
2031
|
let t = "", n = !1;
|
|
2029
2032
|
for (let s = 0; s < e.length; s++)
|
|
2030
2033
|
ge(e.charCodeAt(s)) ? n || (t += " ", n = !0) : (t += e[s], n = !1);
|
|
2031
2034
|
return t;
|
|
2032
2035
|
}
|
|
2033
2036
|
function cn(e) {
|
|
2034
|
-
(X[0] ||
|
|
2037
|
+
(X[0] || mt).children.push(e);
|
|
2035
2038
|
}
|
|
2036
2039
|
function te(e, t) {
|
|
2037
2040
|
return {
|
|
@@ -2042,13 +2045,13 @@ function te(e, t) {
|
|
|
2042
2045
|
source: t == null ? t : ae(e, t)
|
|
2043
2046
|
};
|
|
2044
2047
|
}
|
|
2045
|
-
function
|
|
2048
|
+
function so(e) {
|
|
2046
2049
|
return te(e.start.offset, e.end.offset);
|
|
2047
2050
|
}
|
|
2048
2051
|
function qe(e, t) {
|
|
2049
2052
|
e.end = J.getPos(t), e.source = ae(e.start.offset, t);
|
|
2050
2053
|
}
|
|
2051
|
-
function
|
|
2054
|
+
function ro(e) {
|
|
2052
2055
|
const t = {
|
|
2053
2056
|
type: 6,
|
|
2054
2057
|
name: e.rawName,
|
|
@@ -2073,40 +2076,40 @@ function Tt(e, t = !1, n, s = 0, r = 0) {
|
|
|
2073
2076
|
return V(e, t, n, s);
|
|
2074
2077
|
}
|
|
2075
2078
|
function de(e, t, n) {
|
|
2076
|
-
|
|
2079
|
+
B.onError(
|
|
2077
2080
|
K(e, te(t, t), void 0, n)
|
|
2078
2081
|
);
|
|
2079
2082
|
}
|
|
2080
|
-
function
|
|
2081
|
-
J.reset(), le = null,
|
|
2083
|
+
function io() {
|
|
2084
|
+
J.reset(), le = null, F = null, fe = "", De = -1, ze = -1, X.length = 0;
|
|
2082
2085
|
}
|
|
2083
|
-
function
|
|
2084
|
-
if (
|
|
2086
|
+
function oo(e, t) {
|
|
2087
|
+
if (io(), $e = e, B = Le({}, Ps), t) {
|
|
2085
2088
|
let r;
|
|
2086
2089
|
for (r in t)
|
|
2087
|
-
t[r] != null && (
|
|
2090
|
+
t[r] != null && (B[r] = t[r]);
|
|
2088
2091
|
}
|
|
2089
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2092
|
+
if (process.env.NODE_ENV !== "production" && !B.decodeEntities)
|
|
2090
2093
|
throw new Error(
|
|
2091
2094
|
"[@vue/compiler-core] decodeEntities option is required in browser builds."
|
|
2092
2095
|
);
|
|
2093
|
-
J.mode =
|
|
2096
|
+
J.mode = B.parseMode === "html" ? 1 : B.parseMode === "sfc" ? 2 : 0, J.inXML = B.ns === 1 || B.ns === 2;
|
|
2094
2097
|
const n = t && t.delimiters;
|
|
2095
2098
|
n && (J.delimiterOpen = Vt(n[0]), J.delimiterClose = Vt(n[1]));
|
|
2096
|
-
const s =
|
|
2097
|
-
return J.parse($e), s.loc = te(0, e.length), s.children =
|
|
2099
|
+
const s = mt = Oi([], e);
|
|
2100
|
+
return J.parse($e), s.loc = te(0, e.length), s.children = Bs(s.children), mt = null, s;
|
|
2098
2101
|
}
|
|
2099
|
-
function
|
|
2102
|
+
function ao(e, t) {
|
|
2100
2103
|
Ot(
|
|
2101
2104
|
e,
|
|
2102
2105
|
void 0,
|
|
2103
2106
|
t,
|
|
2104
2107
|
// Root node is unfortunately non-hoistable due to potential parent
|
|
2105
2108
|
// fallthrough attributes.
|
|
2106
|
-
!!
|
|
2109
|
+
!!Us(e)
|
|
2107
2110
|
);
|
|
2108
2111
|
}
|
|
2109
|
-
function
|
|
2112
|
+
function Us(e) {
|
|
2110
2113
|
const t = e.children.filter((n) => n.type !== 3);
|
|
2111
2114
|
return t.length === 1 && t[0].type === 1 && !Lt(t[0]) ? t[0] : null;
|
|
2112
2115
|
}
|
|
@@ -2125,15 +2128,17 @@ function Ot(e, t, n, s = !1, r = !1) {
|
|
|
2125
2128
|
const x = f.codegenNode;
|
|
2126
2129
|
if (x.type === 13) {
|
|
2127
2130
|
const y = x.patchFlag;
|
|
2128
|
-
if ((y === void 0 || y === 512 || y === 1) &&
|
|
2129
|
-
const O =
|
|
2131
|
+
if ((y === void 0 || y === 512 || y === 1) && Hs(f, n) >= 2) {
|
|
2132
|
+
const O = qs(f);
|
|
2130
2133
|
O && (x.props = n.hoist(O));
|
|
2131
2134
|
}
|
|
2132
2135
|
x.dynamicProps && (x.dynamicProps = n.hoist(x.dynamicProps));
|
|
2133
2136
|
}
|
|
2134
2137
|
}
|
|
2135
2138
|
} else if (f.type === 12 && (s ? 0 : ve(f, n)) >= 2) {
|
|
2136
|
-
|
|
2139
|
+
f.codegenNode.type === 14 && f.codegenNode.arguments.length > 0 && f.codegenNode.arguments.push(
|
|
2140
|
+
-1 + (process.env.NODE_ENV !== "production" ? ` /* ${at[-1]} */` : "")
|
|
2141
|
+
), o.push(f);
|
|
2137
2142
|
continue;
|
|
2138
2143
|
}
|
|
2139
2144
|
if (f.type === 1) {
|
|
@@ -2207,7 +2212,7 @@ function ve(e, t) {
|
|
|
2207
2212
|
return 0;
|
|
2208
2213
|
if (r.patchFlag === void 0) {
|
|
2209
2214
|
let o = 3;
|
|
2210
|
-
const a =
|
|
2215
|
+
const a = Hs(e, t);
|
|
2211
2216
|
if (a === 0)
|
|
2212
2217
|
return n.set(e, 0), 0;
|
|
2213
2218
|
a < o && (o = a);
|
|
@@ -2268,25 +2273,25 @@ function ve(e, t) {
|
|
|
2268
2273
|
return process.env.NODE_ENV, 0;
|
|
2269
2274
|
}
|
|
2270
2275
|
}
|
|
2271
|
-
const
|
|
2276
|
+
const lo = /* @__PURE__ */ new Set([
|
|
2272
2277
|
In,
|
|
2273
2278
|
Dn,
|
|
2274
|
-
|
|
2275
|
-
|
|
2279
|
+
dt,
|
|
2280
|
+
vt
|
|
2276
2281
|
]);
|
|
2277
|
-
function
|
|
2278
|
-
if (e.type === 14 && !re(e.callee) &&
|
|
2282
|
+
function zs(e, t) {
|
|
2283
|
+
if (e.type === 14 && !re(e.callee) && lo.has(e.callee)) {
|
|
2279
2284
|
const n = e.arguments[0];
|
|
2280
2285
|
if (n.type === 4)
|
|
2281
2286
|
return ve(n, t);
|
|
2282
2287
|
if (n.type === 14)
|
|
2283
|
-
return
|
|
2288
|
+
return zs(n, t);
|
|
2284
2289
|
}
|
|
2285
2290
|
return 0;
|
|
2286
2291
|
}
|
|
2287
|
-
function
|
|
2292
|
+
function Hs(e, t) {
|
|
2288
2293
|
let n = 3;
|
|
2289
|
-
const s =
|
|
2294
|
+
const s = qs(e);
|
|
2290
2295
|
if (s && s.type === 15) {
|
|
2291
2296
|
const { properties: r } = s;
|
|
2292
2297
|
for (let i = 0; i < r.length; i++) {
|
|
@@ -2295,19 +2300,19 @@ function zs(e, t) {
|
|
|
2295
2300
|
return l;
|
|
2296
2301
|
l < n && (n = l);
|
|
2297
2302
|
let u;
|
|
2298
|
-
if (a.type === 4 ? u = ve(a, t) : a.type === 14 ? u =
|
|
2303
|
+
if (a.type === 4 ? u = ve(a, t) : a.type === 14 ? u = zs(a, t) : u = 0, u === 0)
|
|
2299
2304
|
return u;
|
|
2300
2305
|
u < n && (n = u);
|
|
2301
2306
|
}
|
|
2302
2307
|
}
|
|
2303
2308
|
return n;
|
|
2304
2309
|
}
|
|
2305
|
-
function
|
|
2310
|
+
function qs(e) {
|
|
2306
2311
|
const t = e.codegenNode;
|
|
2307
2312
|
if (t.type === 13)
|
|
2308
2313
|
return t.props;
|
|
2309
2314
|
}
|
|
2310
|
-
function
|
|
2315
|
+
function co(e, {
|
|
2311
2316
|
filename: t = "",
|
|
2312
2317
|
prefixIdentifiers: n = !1,
|
|
2313
2318
|
hoistStatic: s = !1,
|
|
@@ -2324,11 +2329,11 @@ function lo(e, {
|
|
|
2324
2329
|
ssr: x = !1,
|
|
2325
2330
|
inSSR: y = !1,
|
|
2326
2331
|
ssrCssVars: O = "",
|
|
2327
|
-
bindingMetadata: _ =
|
|
2332
|
+
bindingMetadata: _ = ii,
|
|
2328
2333
|
inline: R = !1,
|
|
2329
2334
|
isTS: w = !1,
|
|
2330
2335
|
onError: E = Rn,
|
|
2331
|
-
onWarn: C =
|
|
2336
|
+
onWarn: C = $s,
|
|
2332
2337
|
compatConfig: T
|
|
2333
2338
|
}) {
|
|
2334
2339
|
const I = t.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/), S = {
|
|
@@ -2380,14 +2385,14 @@ function lo(e, {
|
|
|
2380
2385
|
inVOnce: !1,
|
|
2381
2386
|
// methods
|
|
2382
2387
|
helper(N) {
|
|
2383
|
-
const
|
|
2384
|
-
return S.helpers.set(N,
|
|
2388
|
+
const j = S.helpers.get(N) || 0;
|
|
2389
|
+
return S.helpers.set(N, j + 1), N;
|
|
2385
2390
|
},
|
|
2386
2391
|
removeHelper(N) {
|
|
2387
|
-
const
|
|
2388
|
-
if (
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2392
|
+
const j = S.helpers.get(N);
|
|
2393
|
+
if (j) {
|
|
2394
|
+
const U = j - 1;
|
|
2395
|
+
U ? S.helpers.set(N, U) : S.helpers.delete(N);
|
|
2391
2396
|
}
|
|
2392
2397
|
},
|
|
2393
2398
|
helperString(N) {
|
|
@@ -2405,10 +2410,10 @@ function lo(e, {
|
|
|
2405
2410
|
removeNode(N) {
|
|
2406
2411
|
if (process.env.NODE_ENV !== "production" && !S.parent)
|
|
2407
2412
|
throw new Error("Cannot remove root node.");
|
|
2408
|
-
const
|
|
2409
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2413
|
+
const j = S.parent.children, U = N ? j.indexOf(N) : S.currentNode ? S.childIndex : -1;
|
|
2414
|
+
if (process.env.NODE_ENV !== "production" && U < 0)
|
|
2410
2415
|
throw new Error("node being removed is not a child of current parent");
|
|
2411
|
-
!N || N === S.currentNode ? (S.currentNode = null, S.onNodeRemoved()) : S.childIndex >
|
|
2416
|
+
!N || N === S.currentNode ? (S.currentNode = null, S.onNodeRemoved()) : S.childIndex > U && (S.childIndex--, S.onNodeRemoved()), S.parent.children.splice(U, 1);
|
|
2412
2417
|
},
|
|
2413
2418
|
onNodeRemoved: Xt,
|
|
2414
2419
|
addIdentifiers(N) {
|
|
@@ -2417,34 +2422,34 @@ function lo(e, {
|
|
|
2417
2422
|
},
|
|
2418
2423
|
hoist(N) {
|
|
2419
2424
|
re(N) && (N = V(N)), S.hoists.push(N);
|
|
2420
|
-
const
|
|
2425
|
+
const j = V(
|
|
2421
2426
|
`_hoisted_${S.hoists.length}`,
|
|
2422
2427
|
!1,
|
|
2423
2428
|
N.loc,
|
|
2424
2429
|
2
|
|
2425
2430
|
);
|
|
2426
|
-
return
|
|
2431
|
+
return j.hoisted = N, j;
|
|
2427
2432
|
},
|
|
2428
|
-
cache(N,
|
|
2429
|
-
const M =
|
|
2433
|
+
cache(N, j = !1, U = !1) {
|
|
2434
|
+
const M = Ii(
|
|
2430
2435
|
S.cached.length,
|
|
2431
2436
|
N,
|
|
2432
|
-
|
|
2433
|
-
|
|
2437
|
+
j,
|
|
2438
|
+
U
|
|
2434
2439
|
);
|
|
2435
2440
|
return S.cached.push(M), M;
|
|
2436
2441
|
}
|
|
2437
2442
|
};
|
|
2438
2443
|
return S.filters = /* @__PURE__ */ new Set(), S;
|
|
2439
2444
|
}
|
|
2440
|
-
function co(e, t) {
|
|
2441
|
-
const n = lo(e, t);
|
|
2442
|
-
zt(e, n), t.hoistStatic && oo(e, n), t.ssr || uo(e, n), e.helpers = /* @__PURE__ */ new Set([...n.helpers.keys()]), e.components = [...n.components], e.directives = [...n.directives], e.imports = n.imports, e.hoists = n.hoists, e.temps = n.temps, e.cached = n.cached, e.transformed = !0, e.filters = [...n.filters];
|
|
2443
|
-
}
|
|
2444
2445
|
function uo(e, t) {
|
|
2446
|
+
const n = co(e, t);
|
|
2447
|
+
zt(e, n), t.hoistStatic && ao(e, n), t.ssr || fo(e, n), e.helpers = /* @__PURE__ */ new Set([...n.helpers.keys()]), e.components = [...n.components], e.directives = [...n.directives], e.imports = n.imports, e.hoists = n.hoists, e.temps = n.temps, e.cached = n.cached, e.transformed = !0, e.filters = [...n.filters];
|
|
2448
|
+
}
|
|
2449
|
+
function fo(e, t) {
|
|
2445
2450
|
const { helper: n } = t, { children: s } = e;
|
|
2446
2451
|
if (s.length === 1) {
|
|
2447
|
-
const r =
|
|
2452
|
+
const r = Us(e);
|
|
2448
2453
|
if (r && r.codegenNode) {
|
|
2449
2454
|
const i = r.codegenNode;
|
|
2450
2455
|
i.type === 13 && Mn(i, t), e.codegenNode = i;
|
|
@@ -2452,9 +2457,9 @@ function uo(e, t) {
|
|
|
2452
2457
|
e.codegenNode = s[0];
|
|
2453
2458
|
} else if (s.length > 1) {
|
|
2454
2459
|
let r = 64;
|
|
2455
|
-
process.env.NODE_ENV !== "production" && s.filter((i) => i.type !== 3).length === 1 && (r |= 2048), e.codegenNode =
|
|
2460
|
+
process.env.NODE_ENV !== "production" && s.filter((i) => i.type !== 3).length === 1 && (r |= 2048), e.codegenNode = ft(
|
|
2456
2461
|
t,
|
|
2457
|
-
n(
|
|
2462
|
+
n(ut),
|
|
2458
2463
|
void 0,
|
|
2459
2464
|
e.children,
|
|
2460
2465
|
r,
|
|
@@ -2466,7 +2471,7 @@ function uo(e, t) {
|
|
|
2466
2471
|
);
|
|
2467
2472
|
}
|
|
2468
2473
|
}
|
|
2469
|
-
function
|
|
2474
|
+
function po(e, t) {
|
|
2470
2475
|
let n = 0;
|
|
2471
2476
|
const s = () => {
|
|
2472
2477
|
n--;
|
|
@@ -2488,7 +2493,7 @@ function zt(e, t) {
|
|
|
2488
2493
|
}
|
|
2489
2494
|
switch (e.type) {
|
|
2490
2495
|
case 3:
|
|
2491
|
-
t.ssr || t.helper(
|
|
2496
|
+
t.ssr || t.helper(gt);
|
|
2492
2497
|
break;
|
|
2493
2498
|
case 5:
|
|
2494
2499
|
t.ssr || t.helper(Ut);
|
|
@@ -2502,7 +2507,7 @@ function zt(e, t) {
|
|
|
2502
2507
|
case 11:
|
|
2503
2508
|
case 1:
|
|
2504
2509
|
case 0:
|
|
2505
|
-
|
|
2510
|
+
po(e, t);
|
|
2506
2511
|
break;
|
|
2507
2512
|
}
|
|
2508
2513
|
t.currentNode = e;
|
|
@@ -2510,12 +2515,12 @@ function zt(e, t) {
|
|
|
2510
2515
|
for (; r--; )
|
|
2511
2516
|
s[r]();
|
|
2512
2517
|
}
|
|
2513
|
-
function
|
|
2518
|
+
function Ks(e, t) {
|
|
2514
2519
|
const n = re(e) ? (s) => s === e : (s) => e.test(s);
|
|
2515
2520
|
return (s, r) => {
|
|
2516
2521
|
if (s.type === 1) {
|
|
2517
2522
|
const { props: i } = s;
|
|
2518
|
-
if (s.tagType === 3 && i.some(
|
|
2523
|
+
if (s.tagType === 3 && i.some(Hi))
|
|
2519
2524
|
return;
|
|
2520
2525
|
const o = [];
|
|
2521
2526
|
for (let a = 0; a < i.length; a++) {
|
|
@@ -2530,8 +2535,8 @@ function qs(e, t) {
|
|
|
2530
2535
|
}
|
|
2531
2536
|
};
|
|
2532
2537
|
}
|
|
2533
|
-
const Ht = "/*@__PURE__*/",
|
|
2534
|
-
function
|
|
2538
|
+
const Ht = "/*@__PURE__*/", Ws = (e) => `${Qe[e]}: _${Qe[e]}`;
|
|
2539
|
+
function ho(e, {
|
|
2535
2540
|
mode: t = "function",
|
|
2536
2541
|
prefixIdentifiers: n = t === "module",
|
|
2537
2542
|
sourceMap: s = !1,
|
|
@@ -2592,8 +2597,8 @@ function po(e, {
|
|
|
2592
2597
|
}
|
|
2593
2598
|
return h;
|
|
2594
2599
|
}
|
|
2595
|
-
function
|
|
2596
|
-
const n =
|
|
2600
|
+
function mo(e, t = {}) {
|
|
2601
|
+
const n = ho(e, t);
|
|
2597
2602
|
t.onContextCreated && t.onContextCreated(n);
|
|
2598
2603
|
const {
|
|
2599
2604
|
mode: s,
|
|
@@ -2605,10 +2610,10 @@ function ho(e, t = {}) {
|
|
|
2605
2610
|
scopeId: u,
|
|
2606
2611
|
ssr: m
|
|
2607
2612
|
} = n, c = Array.from(e.helpers), f = c.length > 0, h = !i && s !== "module";
|
|
2608
|
-
|
|
2613
|
+
go(e, n);
|
|
2609
2614
|
const y = m ? "ssrRender" : "render", _ = (m ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]).join(", ");
|
|
2610
2615
|
if (r(`function ${y}(${_}) {`), o(), h && (r("with (_ctx) {"), o(), f && (r(
|
|
2611
|
-
`const { ${c.map(
|
|
2616
|
+
`const { ${c.map(Ws).join(", ")} } = _Vue
|
|
2612
2617
|
`,
|
|
2613
2618
|
-1
|
|
2614
2619
|
/* End */
|
|
@@ -2629,7 +2634,7 @@ function ho(e, t = {}) {
|
|
|
2629
2634
|
map: n.map ? n.map.toJSON() : void 0
|
|
2630
2635
|
};
|
|
2631
2636
|
}
|
|
2632
|
-
function
|
|
2637
|
+
function go(e, t) {
|
|
2633
2638
|
const {
|
|
2634
2639
|
ssr: n,
|
|
2635
2640
|
prefixIdentifiers: s,
|
|
@@ -2648,10 +2653,10 @@ function mo(e, t) {
|
|
|
2648
2653
|
const c = [
|
|
2649
2654
|
kn,
|
|
2650
2655
|
En,
|
|
2651
|
-
|
|
2656
|
+
gt,
|
|
2652
2657
|
wn,
|
|
2653
|
-
|
|
2654
|
-
].filter((f) => m.includes(f)).map(
|
|
2658
|
+
Os
|
|
2659
|
+
].filter((f) => m.includes(f)).map(Ws).join(", ");
|
|
2655
2660
|
r(
|
|
2656
2661
|
`const { ${c} } = _Vue
|
|
2657
2662
|
`,
|
|
@@ -2659,7 +2664,7 @@ function mo(e, t) {
|
|
|
2659
2664
|
/* End */
|
|
2660
2665
|
);
|
|
2661
2666
|
}
|
|
2662
|
-
|
|
2667
|
+
vo(e.hoists, t), i(), r("return ");
|
|
2663
2668
|
}
|
|
2664
2669
|
function Qt(e, t, { helper: n, push: s, newline: r, isTS: i }) {
|
|
2665
2670
|
const o = n(
|
|
@@ -2669,11 +2674,11 @@ function Qt(e, t, { helper: n, push: s, newline: r, isTS: i }) {
|
|
|
2669
2674
|
let l = e[a];
|
|
2670
2675
|
const u = l.endsWith("__self");
|
|
2671
2676
|
u && (l = l.slice(0, -6)), s(
|
|
2672
|
-
`const ${
|
|
2677
|
+
`const ${ht(l, t)} = ${o}(${JSON.stringify(l)}${u ? ", true" : ""})${i ? "!" : ""}`
|
|
2673
2678
|
), a < e.length - 1 && r();
|
|
2674
2679
|
}
|
|
2675
2680
|
}
|
|
2676
|
-
function
|
|
2681
|
+
function vo(e, t) {
|
|
2677
2682
|
if (!e.length)
|
|
2678
2683
|
return;
|
|
2679
2684
|
t.pure = !0;
|
|
@@ -2685,14 +2690,14 @@ function go(e, t) {
|
|
|
2685
2690
|
}
|
|
2686
2691
|
t.pure = !1;
|
|
2687
2692
|
}
|
|
2688
|
-
function
|
|
2693
|
+
function yo(e) {
|
|
2689
2694
|
return re(e) || e.type === 4 || e.type === 2 || e.type === 5 || e.type === 8;
|
|
2690
2695
|
}
|
|
2691
2696
|
function Fn(e, t) {
|
|
2692
|
-
const n = e.length > 3 || process.env.NODE_ENV !== "production" && e.some((s) => Oe(s) || !
|
|
2693
|
-
t.push("["), n && t.indent(),
|
|
2697
|
+
const n = e.length > 3 || process.env.NODE_ENV !== "production" && e.some((s) => Oe(s) || !yo(s));
|
|
2698
|
+
t.push("["), n && t.indent(), yt(e, t, n), n && t.deindent(), t.push("]");
|
|
2694
2699
|
}
|
|
2695
|
-
function
|
|
2700
|
+
function yt(e, t, n = !1, s = !0) {
|
|
2696
2701
|
const { push: r, newline: i } = t;
|
|
2697
2702
|
for (let o = 0; o < e.length; o++) {
|
|
2698
2703
|
const a = e[o];
|
|
@@ -2726,46 +2731,46 @@ function ce(e, t) {
|
|
|
2726
2731
|
), ce(e.codegenNode, t);
|
|
2727
2732
|
break;
|
|
2728
2733
|
case 2:
|
|
2729
|
-
|
|
2734
|
+
bo(e, t);
|
|
2730
2735
|
break;
|
|
2731
2736
|
case 4:
|
|
2732
|
-
|
|
2737
|
+
Gs(e, t);
|
|
2733
2738
|
break;
|
|
2734
2739
|
case 5:
|
|
2735
|
-
|
|
2740
|
+
xo(e, t);
|
|
2736
2741
|
break;
|
|
2737
2742
|
case 12:
|
|
2738
2743
|
ce(e.codegenNode, t);
|
|
2739
2744
|
break;
|
|
2740
2745
|
case 8:
|
|
2741
|
-
|
|
2746
|
+
Js(e, t);
|
|
2742
2747
|
break;
|
|
2743
2748
|
case 3:
|
|
2744
|
-
|
|
2749
|
+
Eo(e, t);
|
|
2745
2750
|
break;
|
|
2746
2751
|
case 13:
|
|
2747
|
-
|
|
2752
|
+
wo(e, t);
|
|
2748
2753
|
break;
|
|
2749
2754
|
case 14:
|
|
2750
|
-
|
|
2755
|
+
_o(e, t);
|
|
2751
2756
|
break;
|
|
2752
2757
|
case 15:
|
|
2753
|
-
|
|
2758
|
+
No(e, t);
|
|
2754
2759
|
break;
|
|
2755
2760
|
case 17:
|
|
2756
|
-
|
|
2761
|
+
Co(e, t);
|
|
2757
2762
|
break;
|
|
2758
2763
|
case 18:
|
|
2759
|
-
|
|
2764
|
+
To(e, t);
|
|
2760
2765
|
break;
|
|
2761
2766
|
case 19:
|
|
2762
|
-
|
|
2767
|
+
Oo(e, t);
|
|
2763
2768
|
break;
|
|
2764
2769
|
case 20:
|
|
2765
|
-
|
|
2770
|
+
Io(e, t);
|
|
2766
2771
|
break;
|
|
2767
2772
|
case 21:
|
|
2768
|
-
|
|
2773
|
+
yt(e.body, t, !0, !1);
|
|
2769
2774
|
break;
|
|
2770
2775
|
// SSR only types
|
|
2771
2776
|
case 22:
|
|
@@ -2786,10 +2791,10 @@ function ce(e, t) {
|
|
|
2786
2791
|
return Zn(!1, `unhandled codegen node type: ${e.type}`), e;
|
|
2787
2792
|
}
|
|
2788
2793
|
}
|
|
2789
|
-
function
|
|
2794
|
+
function bo(e, t) {
|
|
2790
2795
|
t.push(JSON.stringify(e.content), -3, e);
|
|
2791
2796
|
}
|
|
2792
|
-
function
|
|
2797
|
+
function Gs(e, t) {
|
|
2793
2798
|
const { content: n, isStatic: s } = e;
|
|
2794
2799
|
t.push(
|
|
2795
2800
|
s ? JSON.stringify(n) : n,
|
|
@@ -2797,11 +2802,11 @@ function Ws(e, t) {
|
|
|
2797
2802
|
e
|
|
2798
2803
|
);
|
|
2799
2804
|
}
|
|
2800
|
-
function
|
|
2805
|
+
function xo(e, t) {
|
|
2801
2806
|
const { push: n, helper: s, pure: r } = t;
|
|
2802
2807
|
r && n(Ht), n(`${s(Ut)}(`), ce(e.content, t), n(")");
|
|
2803
2808
|
}
|
|
2804
|
-
function
|
|
2809
|
+
function Js(e, t) {
|
|
2805
2810
|
for (let n = 0; n < e.children.length; n++) {
|
|
2806
2811
|
const s = e.children[n];
|
|
2807
2812
|
re(s) ? t.push(
|
|
@@ -2811,25 +2816,25 @@ function Gs(e, t) {
|
|
|
2811
2816
|
) : ce(s, t);
|
|
2812
2817
|
}
|
|
2813
2818
|
}
|
|
2814
|
-
function
|
|
2819
|
+
function ko(e, t) {
|
|
2815
2820
|
const { push: n } = t;
|
|
2816
2821
|
if (e.type === 8)
|
|
2817
|
-
n("["),
|
|
2822
|
+
n("["), Js(e, t), n("]");
|
|
2818
2823
|
else if (e.isStatic) {
|
|
2819
2824
|
const s = Ln(e.content) ? e.content : JSON.stringify(e.content);
|
|
2820
2825
|
n(s, -2, e);
|
|
2821
2826
|
} else
|
|
2822
2827
|
n(`[${e.content}]`, -3, e);
|
|
2823
2828
|
}
|
|
2824
|
-
function
|
|
2829
|
+
function Eo(e, t) {
|
|
2825
2830
|
const { push: n, helper: s, pure: r } = t;
|
|
2826
2831
|
r && n(Ht), n(
|
|
2827
|
-
`${s(
|
|
2832
|
+
`${s(gt)}(${JSON.stringify(e.content)})`,
|
|
2828
2833
|
-3,
|
|
2829
2834
|
e
|
|
2830
2835
|
);
|
|
2831
2836
|
}
|
|
2832
|
-
function
|
|
2837
|
+
function wo(e, t) {
|
|
2833
2838
|
const { push: n, helper: s, pure: r } = t, {
|
|
2834
2839
|
tag: i,
|
|
2835
2840
|
props: o,
|
|
@@ -2845,31 +2850,31 @@ function Eo(e, t) {
|
|
|
2845
2850
|
if (l)
|
|
2846
2851
|
if (process.env.NODE_ENV !== "production")
|
|
2847
2852
|
if (l < 0)
|
|
2848
|
-
x = l + ` /* ${
|
|
2853
|
+
x = l + ` /* ${at[l]} */`;
|
|
2849
2854
|
else {
|
|
2850
|
-
const O = Object.keys(
|
|
2855
|
+
const O = Object.keys(at).map(Number).filter((_) => _ > 0 && l & _).map((_) => at[_]).join(", ");
|
|
2851
2856
|
x = l + ` /* ${O} */`;
|
|
2852
2857
|
}
|
|
2853
2858
|
else
|
|
2854
2859
|
x = String(l);
|
|
2855
2860
|
m && n(s(Tn) + "("), c && n(`(${s(Je)}(${f ? "true" : ""}), `), r && n(Ht);
|
|
2856
2861
|
const y = c ? nt(t.inSSR, h) : tt(t.inSSR, h);
|
|
2857
|
-
n(s(y) + "(", -2, e),
|
|
2858
|
-
|
|
2862
|
+
n(s(y) + "(", -2, e), yt(
|
|
2863
|
+
So([i, o, a, x, u]),
|
|
2859
2864
|
t
|
|
2860
2865
|
), n(")"), c && n(")"), m && (n(", "), ce(m, t), n(")"));
|
|
2861
2866
|
}
|
|
2862
|
-
function
|
|
2867
|
+
function So(e) {
|
|
2863
2868
|
let t = e.length;
|
|
2864
2869
|
for (; t-- && e[t] == null; )
|
|
2865
2870
|
;
|
|
2866
2871
|
return e.slice(0, t + 1).map((n) => n || "null");
|
|
2867
2872
|
}
|
|
2868
|
-
function
|
|
2873
|
+
function _o(e, t) {
|
|
2869
2874
|
const { push: n, helper: s, pure: r } = t, i = re(e.callee) ? e.callee : s(e.callee);
|
|
2870
|
-
r && n(Ht), n(i + "(", -2, e),
|
|
2875
|
+
r && n(Ht), n(i + "(", -2, e), yt(e.arguments, t), n(")");
|
|
2871
2876
|
}
|
|
2872
|
-
function
|
|
2877
|
+
function No(e, t) {
|
|
2873
2878
|
const { push: n, indent: s, deindent: r, newline: i } = t, { properties: o } = e;
|
|
2874
2879
|
if (!o.length) {
|
|
2875
2880
|
n("{}", -2, e);
|
|
@@ -2879,22 +2884,22 @@ function _o(e, t) {
|
|
|
2879
2884
|
n(a ? "{" : "{ "), a && s();
|
|
2880
2885
|
for (let l = 0; l < o.length; l++) {
|
|
2881
2886
|
const { key: u, value: m } = o[l];
|
|
2882
|
-
|
|
2887
|
+
ko(u, t), n(": "), ce(m, t), l < o.length - 1 && (n(","), i());
|
|
2883
2888
|
}
|
|
2884
2889
|
a && r(), n(a ? "}" : " }");
|
|
2885
2890
|
}
|
|
2886
|
-
function
|
|
2891
|
+
function Co(e, t) {
|
|
2887
2892
|
Fn(e.elements, t);
|
|
2888
2893
|
}
|
|
2889
|
-
function
|
|
2894
|
+
function To(e, t) {
|
|
2890
2895
|
const { push: n, indent: s, deindent: r } = t, { params: i, returns: o, body: a, newline: l, isSlot: u } = e;
|
|
2891
|
-
u && n(`_${Qe[$n]}(`), n("(", -2, e), Oe(i) ?
|
|
2896
|
+
u && n(`_${Qe[$n]}(`), n("(", -2, e), Oe(i) ? yt(i, t) : i && ce(i, t), n(") => "), (l || a) && (n("{"), s()), o ? (l && n("return "), Oe(o) ? Fn(o, t) : ce(o, t)) : a && ce(a, t), (l || a) && (r(), n("}")), u && (e.isNonScopedSlot && n(", undefined, true"), n(")"));
|
|
2892
2897
|
}
|
|
2893
|
-
function
|
|
2898
|
+
function Oo(e, t) {
|
|
2894
2899
|
const { test: n, consequent: s, alternate: r, newline: i } = e, { push: o, indent: a, deindent: l, newline: u } = t;
|
|
2895
2900
|
if (n.type === 4) {
|
|
2896
2901
|
const c = !Ln(n.content);
|
|
2897
|
-
c && o("("),
|
|
2902
|
+
c && o("("), Gs(n, t), c && o(")");
|
|
2898
2903
|
} else
|
|
2899
2904
|
o("("), ce(n, t), o(")");
|
|
2900
2905
|
i && a(), t.indentLevel++, i || o(" "), o("? "), ce(s, t), t.indentLevel--, i && u(), i || o(" "), o(": ");
|
|
@@ -2904,13 +2909,13 @@ function To(e, t) {
|
|
|
2904
2909
|
/* without newline */
|
|
2905
2910
|
);
|
|
2906
2911
|
}
|
|
2907
|
-
function
|
|
2912
|
+
function Io(e, t) {
|
|
2908
2913
|
const { push: n, helper: s, indent: r, deindent: i, newline: o } = t, { needPauseTracking: a, needArraySpread: l } = e;
|
|
2909
2914
|
l && n("[...("), n(`_cache[${e.index}] || (`), a && (r(), n(`${s($t)}(-1`), e.inVOnce && n(", true"), n("),"), o(), n("(")), n(`_cache[${e.index}] = `), ce(e.value, t), a && (n(`).cacheIndex = ${e.index},`), o(), n(`${s($t)}(1),`), o(), n(`_cache[${e.index}]`), i()), n(")"), l && n(")]");
|
|
2910
2915
|
}
|
|
2911
|
-
const
|
|
2916
|
+
const Do = new RegExp(
|
|
2912
2917
|
"\\b" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b") + "\\b"
|
|
2913
|
-
),
|
|
2918
|
+
), Ao = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
|
|
2914
2919
|
function Ke(e, t, n = !1, s = !1) {
|
|
2915
2920
|
const r = e.content;
|
|
2916
2921
|
if (r.trim())
|
|
@@ -2920,7 +2925,7 @@ function Ke(e, t, n = !1, s = !1) {
|
|
|
2920
2925
|
);
|
|
2921
2926
|
} catch (i) {
|
|
2922
2927
|
let o = i.message;
|
|
2923
|
-
const a = r.replace(
|
|
2928
|
+
const a = r.replace(Ao, "").match(Do);
|
|
2924
2929
|
a && (o = `avoid using JavaScript keyword as property name: "${a[0]}"`), t.onError(
|
|
2925
2930
|
K(
|
|
2926
2931
|
45,
|
|
@@ -2931,7 +2936,7 @@ function Ke(e, t, n = !1, s = !1) {
|
|
|
2931
2936
|
);
|
|
2932
2937
|
}
|
|
2933
2938
|
}
|
|
2934
|
-
const
|
|
2939
|
+
const $o = (e, t) => {
|
|
2935
2940
|
if (e.type === 5)
|
|
2936
2941
|
e.content = en(
|
|
2937
2942
|
e.content,
|
|
@@ -2957,9 +2962,9 @@ const Ao = (e, t) => {
|
|
|
2957
2962
|
function en(e, t, n = !1, s = !1, r = Object.create(t.identifiers)) {
|
|
2958
2963
|
return process.env.NODE_ENV !== "production" && Ke(e, t, n, s), e;
|
|
2959
2964
|
}
|
|
2960
|
-
const
|
|
2965
|
+
const Vo = Ks(
|
|
2961
2966
|
/^(if|else|else-if)$/,
|
|
2962
|
-
(e, t, n) =>
|
|
2967
|
+
(e, t, n) => Mo(e, t, n, (s, r, i) => {
|
|
2963
2968
|
const o = n.parent.children;
|
|
2964
2969
|
let a = o.indexOf(s), l = 0;
|
|
2965
2970
|
for (; a-- >= 0; ) {
|
|
@@ -2968,14 +2973,14 @@ const $o = qs(
|
|
|
2968
2973
|
}
|
|
2969
2974
|
return () => {
|
|
2970
2975
|
if (i)
|
|
2971
|
-
s.codegenNode =
|
|
2976
|
+
s.codegenNode = is(
|
|
2972
2977
|
r,
|
|
2973
2978
|
l,
|
|
2974
2979
|
n
|
|
2975
2980
|
);
|
|
2976
2981
|
else {
|
|
2977
|
-
const u =
|
|
2978
|
-
u.alternate =
|
|
2982
|
+
const u = Lo(s.codegenNode);
|
|
2983
|
+
u.alternate = is(
|
|
2979
2984
|
r,
|
|
2980
2985
|
l + s.branches.length - 1,
|
|
2981
2986
|
n
|
|
@@ -2984,7 +2989,7 @@ const $o = qs(
|
|
|
2984
2989
|
};
|
|
2985
2990
|
})
|
|
2986
2991
|
);
|
|
2987
|
-
function
|
|
2992
|
+
function Mo(e, t, n, s) {
|
|
2988
2993
|
if (t.name !== "else" && (!t.exp || !t.exp.content.trim())) {
|
|
2989
2994
|
const r = t.exp ? t.exp.loc : e.loc;
|
|
2990
2995
|
n.onError(
|
|
@@ -2992,9 +2997,9 @@ function Vo(e, t, n, s) {
|
|
|
2992
2997
|
), t.exp = V("true", !1, r);
|
|
2993
2998
|
}
|
|
2994
2999
|
if (process.env.NODE_ENV !== "production" && t.exp && Ke(t.exp, n), t.name === "if") {
|
|
2995
|
-
const r =
|
|
3000
|
+
const r = rs(e, t), i = {
|
|
2996
3001
|
type: 9,
|
|
2997
|
-
loc:
|
|
3002
|
+
loc: so(e.loc),
|
|
2998
3003
|
branches: [r]
|
|
2999
3004
|
};
|
|
3000
3005
|
if (n.replaceNode(i), s)
|
|
@@ -3016,12 +3021,12 @@ function Vo(e, t, n, s) {
|
|
|
3016
3021
|
t.name === "else-if" && a.branches[a.branches.length - 1].condition === void 0 && n.onError(
|
|
3017
3022
|
K(30, e.loc)
|
|
3018
3023
|
), n.removeNode();
|
|
3019
|
-
const l =
|
|
3024
|
+
const l = rs(e, t);
|
|
3020
3025
|
if (process.env.NODE_ENV !== "production" && i.length && // #3619 ignore comments if the v-if is direct child of <transition>
|
|
3021
3026
|
!(n.parent && n.parent.type === 1 && (n.parent.tag === "transition" || n.parent.tag === "Transition")) && (l.children = [...i, ...l.children]), process.env.NODE_ENV !== "production") {
|
|
3022
3027
|
const m = l.userKey;
|
|
3023
3028
|
m && a.branches.forEach(({ userKey: c }) => {
|
|
3024
|
-
|
|
3029
|
+
Ro(c, m) && n.onError(
|
|
3025
3030
|
K(
|
|
3026
3031
|
29,
|
|
3027
3032
|
l.userKey.loc
|
|
@@ -3040,30 +3045,30 @@ function Vo(e, t, n, s) {
|
|
|
3040
3045
|
}
|
|
3041
3046
|
}
|
|
3042
3047
|
}
|
|
3043
|
-
function
|
|
3048
|
+
function rs(e, t) {
|
|
3044
3049
|
const n = e.tagType === 3;
|
|
3045
3050
|
return {
|
|
3046
3051
|
type: 10,
|
|
3047
3052
|
loc: e.loc,
|
|
3048
3053
|
condition: t.name === "else" ? void 0 : t.exp,
|
|
3049
3054
|
children: n && !pe(e, "for") ? e.children : [e],
|
|
3050
|
-
userKey:
|
|
3055
|
+
userKey: pt(e, "key"),
|
|
3051
3056
|
isTemplateIf: n
|
|
3052
3057
|
};
|
|
3053
3058
|
}
|
|
3054
|
-
function
|
|
3059
|
+
function is(e, t, n) {
|
|
3055
3060
|
return e.condition ? on(
|
|
3056
3061
|
e.condition,
|
|
3057
|
-
|
|
3062
|
+
os(e, t, n),
|
|
3058
3063
|
// make sure to pass in asBlock: true so that the comment node call
|
|
3059
3064
|
// closes the current block.
|
|
3060
|
-
ne(n.helper(
|
|
3065
|
+
ne(n.helper(gt), [
|
|
3061
3066
|
process.env.NODE_ENV !== "production" ? '"v-if"' : '""',
|
|
3062
3067
|
"true"
|
|
3063
3068
|
])
|
|
3064
|
-
) :
|
|
3069
|
+
) : os(e, t, n);
|
|
3065
3070
|
}
|
|
3066
|
-
function
|
|
3071
|
+
function os(e, t, n) {
|
|
3067
3072
|
const { helper: s } = n, r = ee(
|
|
3068
3073
|
"key",
|
|
3069
3074
|
V(
|
|
@@ -3079,9 +3084,9 @@ function is(e, t, n) {
|
|
|
3079
3084
|
return Pt(l, r, n), l;
|
|
3080
3085
|
} else {
|
|
3081
3086
|
let l = 64;
|
|
3082
|
-
return process.env.NODE_ENV !== "production" && !e.isTemplateIf && i.filter((u) => u.type !== 3).length === 1 && (l |= 2048),
|
|
3087
|
+
return process.env.NODE_ENV !== "production" && !e.isTemplateIf && i.filter((u) => u.type !== 3).length === 1 && (l |= 2048), ft(
|
|
3083
3088
|
n,
|
|
3084
|
-
s(
|
|
3089
|
+
s(ut),
|
|
3085
3090
|
xe([r]),
|
|
3086
3091
|
i,
|
|
3087
3092
|
l,
|
|
@@ -3094,11 +3099,11 @@ function is(e, t, n) {
|
|
|
3094
3099
|
);
|
|
3095
3100
|
}
|
|
3096
3101
|
else {
|
|
3097
|
-
const l = o.codegenNode, u =
|
|
3102
|
+
const l = o.codegenNode, u = Ki(l);
|
|
3098
3103
|
return u.type === 13 && Mn(u, n), Pt(u, r, n), l;
|
|
3099
3104
|
}
|
|
3100
3105
|
}
|
|
3101
|
-
function
|
|
3106
|
+
function Ro(e, t) {
|
|
3102
3107
|
if (!e || e.type !== t.type)
|
|
3103
3108
|
return !1;
|
|
3104
3109
|
if (e.type === 6) {
|
|
@@ -3111,7 +3116,7 @@ function Mo(e, t) {
|
|
|
3111
3116
|
}
|
|
3112
3117
|
return !0;
|
|
3113
3118
|
}
|
|
3114
|
-
function
|
|
3119
|
+
function Lo(e) {
|
|
3115
3120
|
for (; ; )
|
|
3116
3121
|
if (e.type === 19)
|
|
3117
3122
|
if (e.alternate.type === 19)
|
|
@@ -3120,7 +3125,7 @@ function Ro(e) {
|
|
|
3120
3125
|
return e;
|
|
3121
3126
|
else e.type === 20 && (e = e.value);
|
|
3122
3127
|
}
|
|
3123
|
-
const
|
|
3128
|
+
const Po = (e, t, n) => {
|
|
3124
3129
|
const { modifiers: s, loc: r } = e, i = e.arg;
|
|
3125
3130
|
let { exp: o } = e;
|
|
3126
3131
|
if (o && o.type === 4 && !o.content.trim() && (o = void 0), !o) {
|
|
@@ -3135,30 +3140,30 @@ const Lo = (e, t, n) => {
|
|
|
3135
3140
|
ee(i, V("", !0, r))
|
|
3136
3141
|
]
|
|
3137
3142
|
};
|
|
3138
|
-
|
|
3143
|
+
Ys(e), o = e.exp;
|
|
3139
3144
|
}
|
|
3140
|
-
return i.type !== 4 ? (i.children.unshift("("), i.children.push(') || ""')) : i.isStatic || (i.content = `${i.content} || ""`), s.some((a) => a.content === "camel") && (i.type === 4 ? i.isStatic ? i.content = Pe(i.content) : i.content = `${n.helperString(sn)}(${i.content})` : (i.children.unshift(`${n.helperString(sn)}(`), i.children.push(")"))), n.inSSR || (s.some((a) => a.content === "prop") &&
|
|
3145
|
+
return i.type !== 4 ? (i.children.unshift("("), i.children.push(') || ""')) : i.isStatic || (i.content = i.content ? `${i.content} || ""` : '""'), s.some((a) => a.content === "camel") && (i.type === 4 ? i.isStatic ? i.content = Pe(i.content) : i.content = `${n.helperString(sn)}(${i.content})` : (i.children.unshift(`${n.helperString(sn)}(`), i.children.push(")"))), n.inSSR || (s.some((a) => a.content === "prop") && as(i, "."), s.some((a) => a.content === "attr") && as(i, "^")), {
|
|
3141
3146
|
props: [ee(i, o)]
|
|
3142
3147
|
};
|
|
3143
|
-
},
|
|
3148
|
+
}, Ys = (e, t) => {
|
|
3144
3149
|
const n = e.arg, s = Pe(n.content);
|
|
3145
3150
|
e.exp = V(s, !1, n.loc);
|
|
3146
|
-
},
|
|
3151
|
+
}, as = (e, t) => {
|
|
3147
3152
|
e.type === 4 ? e.isStatic ? e.content = t + e.content : e.content = `\`${t}\${${e.content}}\`` : (e.children.unshift(`'${t}' + (`), e.children.push(")"));
|
|
3148
|
-
},
|
|
3153
|
+
}, Fo = Ks(
|
|
3149
3154
|
"for",
|
|
3150
3155
|
(e, t, n) => {
|
|
3151
3156
|
const { helper: s, removeHelper: r } = n;
|
|
3152
|
-
return
|
|
3157
|
+
return Bo(e, t, n, (i) => {
|
|
3153
3158
|
const o = ne(s(On), [
|
|
3154
3159
|
i.source
|
|
3155
|
-
]), a = Rt(e), l = pe(e, "memo"), u =
|
|
3156
|
-
u && u.type === 7 && !u.exp &&
|
|
3160
|
+
]), a = Rt(e), l = pe(e, "memo"), u = pt(e, "key", !1, !0);
|
|
3161
|
+
u && u.type === 7 && !u.exp && Ys(u);
|
|
3157
3162
|
let c = u && (u.type === 6 ? u.value ? V(u.value.content, !0) : void 0 : u.exp);
|
|
3158
3163
|
const f = u && c ? ee("key", c) : null, h = i.source.type === 4 && i.source.constType > 0, x = h ? 64 : u ? 128 : 256;
|
|
3159
|
-
return i.codegenNode =
|
|
3164
|
+
return i.codegenNode = ft(
|
|
3160
3165
|
n,
|
|
3161
|
-
s(
|
|
3166
|
+
s(ut),
|
|
3162
3167
|
void 0,
|
|
3163
3168
|
o,
|
|
3164
3169
|
x,
|
|
@@ -3173,7 +3178,7 @@ const Lo = (e, t, n) => {
|
|
|
3173
3178
|
const { children: O } = i;
|
|
3174
3179
|
process.env.NODE_ENV !== "production" && a && e.children.some((w) => {
|
|
3175
3180
|
if (w.type === 1) {
|
|
3176
|
-
const E =
|
|
3181
|
+
const E = pt(w, "key");
|
|
3177
3182
|
if (E)
|
|
3178
3183
|
return n.onError(
|
|
3179
3184
|
K(
|
|
@@ -3184,9 +3189,9 @@ const Lo = (e, t, n) => {
|
|
|
3184
3189
|
}
|
|
3185
3190
|
});
|
|
3186
3191
|
const _ = O.length !== 1 || O[0].type !== 1, R = Lt(e) ? e : a && e.children.length === 1 && Lt(e.children[0]) ? e.children[0] : null;
|
|
3187
|
-
if (R ? (y = R.codegenNode, a && f && Pt(y, f, n)) : _ ? y =
|
|
3192
|
+
if (R ? (y = R.codegenNode, a && f && Pt(y, f, n)) : _ ? y = ft(
|
|
3188
3193
|
n,
|
|
3189
|
-
s(
|
|
3194
|
+
s(ut),
|
|
3190
3195
|
f ? xe([f]) : void 0,
|
|
3191
3196
|
e.children,
|
|
3192
3197
|
64,
|
|
@@ -3205,13 +3210,13 @@ const Lo = (e, t, n) => {
|
|
|
3205
3210
|
V("_cached")
|
|
3206
3211
|
])
|
|
3207
3212
|
);
|
|
3208
|
-
w.body =
|
|
3213
|
+
w.body = Di([
|
|
3209
3214
|
_e(["const _memo = (", l.exp, ")"]),
|
|
3210
3215
|
_e([
|
|
3211
3216
|
"if (_cached",
|
|
3212
3217
|
...c ? [" && _cached.key === ", c] : [],
|
|
3213
3218
|
` && ${n.helperString(
|
|
3214
|
-
|
|
3219
|
+
As
|
|
3215
3220
|
)}(_cached, _memo)) return _cached`
|
|
3216
3221
|
]),
|
|
3217
3222
|
_e(["const _item = ", y]),
|
|
@@ -3234,7 +3239,7 @@ const Lo = (e, t, n) => {
|
|
|
3234
3239
|
});
|
|
3235
3240
|
}
|
|
3236
3241
|
);
|
|
3237
|
-
function
|
|
3242
|
+
function Bo(e, t, n, s) {
|
|
3238
3243
|
if (!t.exp) {
|
|
3239
3244
|
n.onError(
|
|
3240
3245
|
K(31, t.loc)
|
|
@@ -3248,7 +3253,7 @@ function Fo(e, t, n, s) {
|
|
|
3248
3253
|
);
|
|
3249
3254
|
return;
|
|
3250
3255
|
}
|
|
3251
|
-
|
|
3256
|
+
Xs(r, n);
|
|
3252
3257
|
const { addIdentifiers: i, removeIdentifiers: o, scopes: a } = n, { source: l, value: u, key: m, index: c } = r, f = {
|
|
3253
3258
|
type: 11,
|
|
3254
3259
|
loc: t.loc,
|
|
@@ -3265,7 +3270,7 @@ function Fo(e, t, n, s) {
|
|
|
3265
3270
|
a.vFor--, h && h();
|
|
3266
3271
|
};
|
|
3267
3272
|
}
|
|
3268
|
-
function
|
|
3273
|
+
function Xs(e, t) {
|
|
3269
3274
|
e.finalized || (process.env.NODE_ENV !== "production" && (Ke(e.source, t), e.key && Ke(
|
|
3270
3275
|
e.key,
|
|
3271
3276
|
t,
|
|
@@ -3281,15 +3286,15 @@ function Ys(e, t) {
|
|
|
3281
3286
|
)), e.finalized = !0);
|
|
3282
3287
|
}
|
|
3283
3288
|
function un({ value: e, key: t, index: n }, s = []) {
|
|
3284
|
-
return
|
|
3289
|
+
return jo([e, t, n, ...s]);
|
|
3285
3290
|
}
|
|
3286
|
-
function
|
|
3291
|
+
function jo(e) {
|
|
3287
3292
|
let t = e.length;
|
|
3288
3293
|
for (; t-- && !e[t]; )
|
|
3289
3294
|
;
|
|
3290
3295
|
return e.slice(0, t + 1).map((n, s) => n || V("_".repeat(s + 1), !1));
|
|
3291
3296
|
}
|
|
3292
|
-
const
|
|
3297
|
+
const ls = V("undefined", !1), Uo = (e, t) => {
|
|
3293
3298
|
if (e.type === 1 && (e.tagType === 1 || e.tagType === 3)) {
|
|
3294
3299
|
const n = pe(e, "slot");
|
|
3295
3300
|
if (n)
|
|
@@ -3297,14 +3302,14 @@ const as = V("undefined", !1), jo = (e, t) => {
|
|
|
3297
3302
|
t.scopes.vSlot--;
|
|
3298
3303
|
};
|
|
3299
3304
|
}
|
|
3300
|
-
},
|
|
3305
|
+
}, zo = (e, t, n, s) => et(
|
|
3301
3306
|
e,
|
|
3302
3307
|
n,
|
|
3303
3308
|
!1,
|
|
3304
3309
|
!0,
|
|
3305
3310
|
n.length ? n[0].loc : s
|
|
3306
3311
|
);
|
|
3307
|
-
function
|
|
3312
|
+
function Ho(e, t, n = zo) {
|
|
3308
3313
|
t.helper($n);
|
|
3309
3314
|
const { children: s, loc: r } = e, i = [], o = [];
|
|
3310
3315
|
let a = t.scopes.vSlot > 0 || t.scopes.vFor > 0;
|
|
@@ -3342,14 +3347,14 @@ function zo(e, t, n = Uo) {
|
|
|
3342
3347
|
} = R;
|
|
3343
3348
|
let S;
|
|
3344
3349
|
he(C) ? S = C ? C.content : "default" : a = !0;
|
|
3345
|
-
const N = pe(_, "for"),
|
|
3346
|
-
let
|
|
3347
|
-
if (
|
|
3350
|
+
const N = pe(_, "for"), j = n(T, N, w, E);
|
|
3351
|
+
let U, M;
|
|
3352
|
+
if (U = pe(_, "if"))
|
|
3348
3353
|
a = !0, o.push(
|
|
3349
3354
|
on(
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3355
|
+
U.exp,
|
|
3356
|
+
St(C, j, h++),
|
|
3357
|
+
ls
|
|
3353
3358
|
)
|
|
3354
3359
|
);
|
|
3355
3360
|
else if (M = pe(
|
|
@@ -3367,13 +3372,13 @@ function zo(e, t, n = Uo) {
|
|
|
3367
3372
|
G = G.alternate;
|
|
3368
3373
|
G.alternate = M.exp ? on(
|
|
3369
3374
|
M.exp,
|
|
3370
|
-
|
|
3375
|
+
St(
|
|
3371
3376
|
C,
|
|
3372
|
-
|
|
3377
|
+
j,
|
|
3373
3378
|
h++
|
|
3374
3379
|
),
|
|
3375
|
-
|
|
3376
|
-
) :
|
|
3380
|
+
ls
|
|
3381
|
+
) : St(C, j, h++);
|
|
3377
3382
|
} else
|
|
3378
3383
|
t.onError(
|
|
3379
3384
|
K(30, M.loc)
|
|
@@ -3381,12 +3386,12 @@ function zo(e, t, n = Uo) {
|
|
|
3381
3386
|
} else if (N) {
|
|
3382
3387
|
a = !0;
|
|
3383
3388
|
const H = N.forParseResult;
|
|
3384
|
-
H ? (
|
|
3389
|
+
H ? (Xs(H, t), o.push(
|
|
3385
3390
|
ne(t.helper(On), [
|
|
3386
3391
|
H.source,
|
|
3387
3392
|
et(
|
|
3388
3393
|
un(H),
|
|
3389
|
-
|
|
3394
|
+
St(C, j),
|
|
3390
3395
|
!0
|
|
3391
3396
|
)
|
|
3392
3397
|
])
|
|
@@ -3409,7 +3414,7 @@ function zo(e, t, n = Uo) {
|
|
|
3409
3414
|
}
|
|
3410
3415
|
f.add(S), S === "default" && (m = !0);
|
|
3411
3416
|
}
|
|
3412
|
-
i.push(ee(C,
|
|
3417
|
+
i.push(ee(C, j));
|
|
3413
3418
|
}
|
|
3414
3419
|
}
|
|
3415
3420
|
if (!l) {
|
|
@@ -3437,14 +3442,14 @@ function zo(e, t, n = Uo) {
|
|
|
3437
3442
|
// 2 = compiled but dynamic = can skip normalization, but must run diff
|
|
3438
3443
|
// 1 = compiled and static = can skip normalization AND diff as optimized
|
|
3439
3444
|
V(
|
|
3440
|
-
x + (process.env.NODE_ENV !== "production" ? ` /* ${
|
|
3445
|
+
x + (process.env.NODE_ENV !== "production" ? ` /* ${ui[x]} */` : ""),
|
|
3441
3446
|
!1
|
|
3442
3447
|
)
|
|
3443
3448
|
)
|
|
3444
3449
|
),
|
|
3445
3450
|
r
|
|
3446
3451
|
);
|
|
3447
|
-
return o.length && (y = ne(t.helper(
|
|
3452
|
+
return o.length && (y = ne(t.helper(Ds), [
|
|
3448
3453
|
y,
|
|
3449
3454
|
We(o)
|
|
3450
3455
|
])), {
|
|
@@ -3452,7 +3457,7 @@ function zo(e, t, n = Uo) {
|
|
|
3452
3457
|
hasDynamicSlots: a
|
|
3453
3458
|
};
|
|
3454
3459
|
}
|
|
3455
|
-
function
|
|
3460
|
+
function St(e, t, n) {
|
|
3456
3461
|
const s = [
|
|
3457
3462
|
ee("name", e),
|
|
3458
3463
|
ee("fn", t)
|
|
@@ -3483,22 +3488,22 @@ function It(e) {
|
|
|
3483
3488
|
function dn(e) {
|
|
3484
3489
|
return e.type !== 2 && e.type !== 12 ? !0 : e.type === 2 ? !!e.content.trim() : dn(e.content);
|
|
3485
3490
|
}
|
|
3486
|
-
const
|
|
3491
|
+
const Zs = /* @__PURE__ */ new WeakMap(), qo = (e, t) => function() {
|
|
3487
3492
|
if (e = t.currentNode, !(e.type === 1 && (e.tagType === 0 || e.tagType === 1)))
|
|
3488
3493
|
return;
|
|
3489
3494
|
const { tag: s, props: r } = e, i = e.tagType === 1;
|
|
3490
|
-
let o = i ?
|
|
3491
|
-
const a =
|
|
3495
|
+
let o = i ? Ko(e, t) : `"${s}"`;
|
|
3496
|
+
const a = oi(o) && o.callee === _n;
|
|
3492
3497
|
let l, u, m = 0, c, f, h, x = (
|
|
3493
3498
|
// dynamic component may resolve to plain elements
|
|
3494
|
-
a || o ===
|
|
3499
|
+
a || o === lt || o === xn || !i && // <svg> and <foreignObject> must be forced into blocks so that block
|
|
3495
3500
|
// updates inside get proper isSVG flag at runtime. (#639, #643)
|
|
3496
3501
|
// This is technically web-specific, but splitting the logic out of core
|
|
3497
3502
|
// leads to too much unnecessary complexity.
|
|
3498
3503
|
(s === "svg" || s === "foreignObject" || s === "math")
|
|
3499
3504
|
);
|
|
3500
3505
|
if (r.length > 0) {
|
|
3501
|
-
const y =
|
|
3506
|
+
const y = Qs(
|
|
3502
3507
|
e,
|
|
3503
3508
|
t,
|
|
3504
3509
|
void 0,
|
|
@@ -3508,7 +3513,7 @@ const Xs = /* @__PURE__ */ new WeakMap(), Ho = (e, t) => function() {
|
|
|
3508
3513
|
l = y.props, m = y.patchFlag, f = y.dynamicPropNames;
|
|
3509
3514
|
const O = y.directives;
|
|
3510
3515
|
h = O && O.length ? We(
|
|
3511
|
-
O.map((_) =>
|
|
3516
|
+
O.map((_) => Go(_, t))
|
|
3512
3517
|
) : void 0, y.shouldUseBlock && (x = !0);
|
|
3513
3518
|
}
|
|
3514
3519
|
if (e.children.length > 0)
|
|
@@ -3519,16 +3524,16 @@ const Xs = /* @__PURE__ */ new WeakMap(), Ho = (e, t) => function() {
|
|
|
3519
3524
|
source: ""
|
|
3520
3525
|
})
|
|
3521
3526
|
)), i && // Teleport is not a real component and has dedicated runtime handling
|
|
3522
|
-
o !==
|
|
3527
|
+
o !== lt && // explained above.
|
|
3523
3528
|
o !== Dt) {
|
|
3524
|
-
const { slots: O, hasDynamicSlots: _ } =
|
|
3529
|
+
const { slots: O, hasDynamicSlots: _ } = Ho(e, t);
|
|
3525
3530
|
u = O, _ && (m |= 1024);
|
|
3526
|
-
} else if (e.children.length === 1 && o !==
|
|
3531
|
+
} else if (e.children.length === 1 && o !== lt) {
|
|
3527
3532
|
const O = e.children[0], _ = O.type, R = _ === 5 || _ === 8;
|
|
3528
3533
|
R && ve(O, t) === 0 && (m |= 1), R || _ === 2 ? u = O : u = e.children;
|
|
3529
3534
|
} else
|
|
3530
3535
|
u = e.children;
|
|
3531
|
-
f && f.length && (c =
|
|
3536
|
+
f && f.length && (c = Jo(f)), e.codegenNode = ft(
|
|
3532
3537
|
t,
|
|
3533
3538
|
o,
|
|
3534
3539
|
l,
|
|
@@ -3542,9 +3547,9 @@ const Xs = /* @__PURE__ */ new WeakMap(), Ho = (e, t) => function() {
|
|
|
3542
3547
|
e.loc
|
|
3543
3548
|
);
|
|
3544
3549
|
};
|
|
3545
|
-
function
|
|
3550
|
+
function Ko(e, t, n = !1) {
|
|
3546
3551
|
let { tag: s } = e;
|
|
3547
|
-
const r = fn(s), i =
|
|
3552
|
+
const r = fn(s), i = pt(
|
|
3548
3553
|
e,
|
|
3549
3554
|
"is",
|
|
3550
3555
|
!1,
|
|
@@ -3562,18 +3567,18 @@ function qo(e, t, n = !1) {
|
|
|
3562
3567
|
a
|
|
3563
3568
|
]);
|
|
3564
3569
|
} else i.type === 6 && i.value.content.startsWith("vue:") && (s = i.value.content.slice(4));
|
|
3565
|
-
const o =
|
|
3566
|
-
return o ? (n || t.helper(o), o) : (t.helper(Sn), t.components.add(s),
|
|
3570
|
+
const o = Vs(s) || t.isBuiltInComponent(s);
|
|
3571
|
+
return o ? (n || t.helper(o), o) : (t.helper(Sn), t.components.add(s), ht(s, "component"));
|
|
3567
3572
|
}
|
|
3568
|
-
function
|
|
3573
|
+
function Qs(e, t, n = e.props, s, r, i = !1) {
|
|
3569
3574
|
const { tag: o, loc: a, children: l } = e;
|
|
3570
3575
|
let u = [];
|
|
3571
3576
|
const m = [], c = [], f = l.length > 0;
|
|
3572
3577
|
let h = !1, x = 0, y = !1, O = !1, _ = !1, R = !1, w = !1, E = !1;
|
|
3573
|
-
const C = [], T = (
|
|
3578
|
+
const C = [], T = (j) => {
|
|
3574
3579
|
u.length && (m.push(
|
|
3575
|
-
xe(
|
|
3576
|
-
), u = []),
|
|
3580
|
+
xe(cs(u), a)
|
|
3581
|
+
), u = []), j && m.push(j);
|
|
3577
3582
|
}, I = () => {
|
|
3578
3583
|
t.scopes.vFor > 0 && u.push(
|
|
3579
3584
|
ee(
|
|
@@ -3581,23 +3586,23 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3581
3586
|
V("true")
|
|
3582
3587
|
)
|
|
3583
3588
|
);
|
|
3584
|
-
}, S = ({ key:
|
|
3585
|
-
if (he(
|
|
3586
|
-
const M =
|
|
3589
|
+
}, S = ({ key: j, value: U }) => {
|
|
3590
|
+
if (he(j)) {
|
|
3591
|
+
const M = j.content, H = nn(M);
|
|
3587
3592
|
if (H && (!s || r) && // omit the flag for click handlers because hydration gives click
|
|
3588
3593
|
// dedicated fast path.
|
|
3589
3594
|
M.toLowerCase() !== "onclick" && // omit v-model handlers
|
|
3590
3595
|
M !== "onUpdate:modelValue" && // omit onVnodeXXX hooks
|
|
3591
|
-
!Gn(M) && (R = !0), H && Gn(M) && (E = !0), H &&
|
|
3596
|
+
!Gn(M) && (R = !0), H && Gn(M) && (E = !0), H && U.type === 14 && (U = U.arguments[0]), U.type === 20 || (U.type === 4 || U.type === 8) && ve(U, t) > 0)
|
|
3592
3597
|
return;
|
|
3593
3598
|
M === "ref" ? y = !0 : M === "class" ? O = !0 : M === "style" ? _ = !0 : M !== "key" && !C.includes(M) && C.push(M), s && (M === "class" || M === "style") && !C.includes(M) && C.push(M);
|
|
3594
3599
|
} else
|
|
3595
3600
|
w = !0;
|
|
3596
3601
|
};
|
|
3597
|
-
for (let
|
|
3598
|
-
const
|
|
3599
|
-
if (
|
|
3600
|
-
const { loc: M, name: H, nameLoc: W, value: G } =
|
|
3602
|
+
for (let j = 0; j < n.length; j++) {
|
|
3603
|
+
const U = n[j];
|
|
3604
|
+
if (U.type === 6) {
|
|
3605
|
+
const { loc: M, name: H, nameLoc: W, value: G } = U;
|
|
3601
3606
|
let me = !0;
|
|
3602
3607
|
if (H === "ref" && (y = !0, I()), H === "is" && (fn(o) || G && G.content.startsWith("vue:") || Fe(
|
|
3603
3608
|
"COMPILER_IS_ON_ELEMENT",
|
|
@@ -3615,7 +3620,7 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3615
3620
|
)
|
|
3616
3621
|
);
|
|
3617
3622
|
} else {
|
|
3618
|
-
const { name: M, arg: H, exp: W, loc: G, modifiers: me } =
|
|
3623
|
+
const { name: M, arg: H, exp: W, loc: G, modifiers: me } = U, Ne = M === "bind", Be = M === "on";
|
|
3619
3624
|
if (M === "slot") {
|
|
3620
3625
|
s || t.onError(
|
|
3621
3626
|
K(40, G)
|
|
@@ -3666,9 +3671,9 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3666
3671
|
Ne && me.some((Q) => Q.content === "prop") && (x |= 32);
|
|
3667
3672
|
const rt = t.directiveTransforms[M];
|
|
3668
3673
|
if (rt) {
|
|
3669
|
-
const { props: Q, needRuntime: ke } = rt(
|
|
3670
|
-
!i && Q.forEach(S), Be && H && !he(H) ? T(xe(Q, a)) : u.push(...Q), ke && (c.push(
|
|
3671
|
-
} else
|
|
3674
|
+
const { props: Q, needRuntime: ke } = rt(U, e, t);
|
|
3675
|
+
!i && Q.forEach(S), Be && H && !he(H) ? T(xe(Q, a)) : u.push(...Q), ke && (c.push(U), vn(ke) && Zs.set(U, ke));
|
|
3676
|
+
} else ai(M) || (c.push(U), f && (h = !0));
|
|
3672
3677
|
}
|
|
3673
3678
|
}
|
|
3674
3679
|
let N;
|
|
@@ -3677,19 +3682,19 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3677
3682
|
m,
|
|
3678
3683
|
a
|
|
3679
3684
|
) : N = m[0]) : u.length && (N = xe(
|
|
3680
|
-
|
|
3685
|
+
cs(u),
|
|
3681
3686
|
a
|
|
3682
3687
|
)), w ? x |= 16 : (O && !s && (x |= 2), _ && !s && (x |= 4), C.length && (x |= 8), R && (x |= 32)), !h && (x === 0 || x === 32) && (y || E || c.length > 0) && (x |= 512), !t.inSSR && N)
|
|
3683
3688
|
switch (N.type) {
|
|
3684
3689
|
case 15:
|
|
3685
|
-
let
|
|
3690
|
+
let j = -1, U = -1, M = !1;
|
|
3686
3691
|
for (let G = 0; G < N.properties.length; G++) {
|
|
3687
3692
|
const me = N.properties[G].key;
|
|
3688
|
-
he(me) ? me.content === "class" ?
|
|
3693
|
+
he(me) ? me.content === "class" ? j = G : me.content === "style" && (U = G) : me.isHandlerKey || (M = !0);
|
|
3689
3694
|
}
|
|
3690
|
-
const H = N.properties[
|
|
3695
|
+
const H = N.properties[j], W = N.properties[U];
|
|
3691
3696
|
M ? N = ne(
|
|
3692
|
-
t.helper(
|
|
3697
|
+
t.helper(dt),
|
|
3693
3698
|
[N]
|
|
3694
3699
|
) : (H && !he(H.value) && (H.value = ne(
|
|
3695
3700
|
t.helper(In),
|
|
@@ -3707,9 +3712,9 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3707
3712
|
break;
|
|
3708
3713
|
default:
|
|
3709
3714
|
N = ne(
|
|
3710
|
-
t.helper(
|
|
3715
|
+
t.helper(dt),
|
|
3711
3716
|
[
|
|
3712
|
-
ne(t.helper(
|
|
3717
|
+
ne(t.helper(vt), [
|
|
3713
3718
|
N
|
|
3714
3719
|
])
|
|
3715
3720
|
]
|
|
@@ -3724,7 +3729,7 @@ function Zs(e, t, n = e.props, s, r, i = !1) {
|
|
|
3724
3729
|
shouldUseBlock: h
|
|
3725
3730
|
};
|
|
3726
3731
|
}
|
|
3727
|
-
function
|
|
3732
|
+
function cs(e) {
|
|
3728
3733
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
3729
3734
|
for (let s = 0; s < e.length; s++) {
|
|
3730
3735
|
const r = e[s];
|
|
@@ -3733,19 +3738,19 @@ function ls(e) {
|
|
|
3733
3738
|
continue;
|
|
3734
3739
|
}
|
|
3735
3740
|
const i = r.key.content, o = t.get(i);
|
|
3736
|
-
o ? (i === "style" || i === "class" || nn(i)) &&
|
|
3741
|
+
o ? (i === "style" || i === "class" || nn(i)) && Wo(o, r) : (t.set(i, r), n.push(r));
|
|
3737
3742
|
}
|
|
3738
3743
|
return n;
|
|
3739
3744
|
}
|
|
3740
|
-
function
|
|
3745
|
+
function Wo(e, t) {
|
|
3741
3746
|
e.value.type === 17 ? e.value.elements.push(t.value) : e.value = We(
|
|
3742
3747
|
[e.value, t.value],
|
|
3743
3748
|
e.loc
|
|
3744
3749
|
);
|
|
3745
3750
|
}
|
|
3746
|
-
function
|
|
3747
|
-
const n = [], s =
|
|
3748
|
-
s ? n.push(t.helperString(s)) : (t.helper(Nn), t.directives.add(e.name), n.push(
|
|
3751
|
+
function Go(e, t) {
|
|
3752
|
+
const n = [], s = Zs.get(e);
|
|
3753
|
+
s ? n.push(t.helperString(s)) : (t.helper(Nn), t.directives.add(e.name), n.push(ht(e.name, "directive")));
|
|
3749
3754
|
const { loc: r } = e;
|
|
3750
3755
|
if (e.exp && n.push(e.exp), e.arg && (e.exp || n.push("void 0"), n.push(e.arg)), Object.keys(e.modifiers).length) {
|
|
3751
3756
|
e.arg || (e.exp || n.push("void 0"), n.push("void 0"));
|
|
@@ -3761,7 +3766,7 @@ function Wo(e, t) {
|
|
|
3761
3766
|
}
|
|
3762
3767
|
return We(n, e.loc);
|
|
3763
3768
|
}
|
|
3764
|
-
function
|
|
3769
|
+
function Jo(e) {
|
|
3765
3770
|
let t = "[";
|
|
3766
3771
|
for (let n = 0, s = e.length; n < s; n++)
|
|
3767
3772
|
t += JSON.stringify(e[n]), n < s - 1 && (t += ", ");
|
|
@@ -3770,9 +3775,9 @@ function Go(e) {
|
|
|
3770
3775
|
function fn(e) {
|
|
3771
3776
|
return e === "component" || e === "Component";
|
|
3772
3777
|
}
|
|
3773
|
-
const
|
|
3778
|
+
const Yo = (e, t) => {
|
|
3774
3779
|
if (Lt(e)) {
|
|
3775
|
-
const { children: n, loc: s } = e, { slotName: r, slotProps: i } =
|
|
3780
|
+
const { children: n, loc: s } = e, { slotName: r, slotProps: i } = Xo(e, t), o = [
|
|
3776
3781
|
t.prefixIdentifiers ? "_ctx.$slots" : "$slots",
|
|
3777
3782
|
r,
|
|
3778
3783
|
"{}",
|
|
@@ -3781,13 +3786,13 @@ const Jo = (e, t) => {
|
|
|
3781
3786
|
];
|
|
3782
3787
|
let a = 2;
|
|
3783
3788
|
i && (o[2] = i, a = 3), n.length && (o[3] = et([], n, !1, !1, s), a = 4), t.scopeId && !t.slotted && (a = 5), o.splice(a), e.codegenNode = ne(
|
|
3784
|
-
t.helper(
|
|
3789
|
+
t.helper(Is),
|
|
3785
3790
|
o,
|
|
3786
3791
|
s
|
|
3787
3792
|
);
|
|
3788
3793
|
}
|
|
3789
3794
|
};
|
|
3790
|
-
function
|
|
3795
|
+
function Xo(e, t) {
|
|
3791
3796
|
let n = '"default"', s;
|
|
3792
3797
|
const r = [];
|
|
3793
3798
|
for (let i = 0; i < e.props.length; i++) {
|
|
@@ -3805,7 +3810,7 @@ function Yo(e, t) {
|
|
|
3805
3810
|
o.name === "bind" && o.arg && he(o.arg) && (o.arg.content = Pe(o.arg.content)), r.push(o);
|
|
3806
3811
|
}
|
|
3807
3812
|
if (r.length > 0) {
|
|
3808
|
-
const { props: i, directives: o } =
|
|
3813
|
+
const { props: i, directives: o } = Qs(
|
|
3809
3814
|
e,
|
|
3810
3815
|
t,
|
|
3811
3816
|
r,
|
|
@@ -3824,7 +3829,7 @@ function Yo(e, t) {
|
|
|
3824
3829
|
slotProps: s
|
|
3825
3830
|
};
|
|
3826
3831
|
}
|
|
3827
|
-
const
|
|
3832
|
+
const er = (e, t, n, s) => {
|
|
3828
3833
|
const { loc: r, modifiers: i, arg: o } = e;
|
|
3829
3834
|
!e.exp && !i.length && n.onError(K(35, r));
|
|
3830
3835
|
let a;
|
|
@@ -3835,7 +3840,7 @@ const Qs = (e, t, n, s) => {
|
|
|
3835
3840
|
const f = t.tagType !== 0 || c.startsWith("vnode") || !/[A-Z]/.test(c) ? (
|
|
3836
3841
|
// for non-element and vnode lifecycle event listeners, auto convert
|
|
3837
3842
|
// it to camelCase. See issue #2249
|
|
3838
|
-
|
|
3843
|
+
ci(Pe(c))
|
|
3839
3844
|
) : (
|
|
3840
3845
|
// preserve case for plain element listeners that have uppercase
|
|
3841
3846
|
// letters, as these may be custom elements' custom events
|
|
@@ -3854,7 +3859,7 @@ const Qs = (e, t, n, s) => {
|
|
|
3854
3859
|
l && !l.content.trim() && (l = void 0);
|
|
3855
3860
|
let u = n.cacheHandlers && !l && !n.inVOnce;
|
|
3856
3861
|
if (l) {
|
|
3857
|
-
const c =
|
|
3862
|
+
const c = Rs(l), f = !(c || Ui(l)), h = l.content.includes(";");
|
|
3858
3863
|
process.env.NODE_ENV !== "production" && Ke(
|
|
3859
3864
|
l,
|
|
3860
3865
|
n,
|
|
@@ -3875,7 +3880,7 @@ const Qs = (e, t, n, s) => {
|
|
|
3875
3880
|
]
|
|
3876
3881
|
};
|
|
3877
3882
|
return s && (m = s(m)), u && (m.props[0].value = n.cache(m.props[0].value)), m.props.forEach((c) => c.key.isHandlerKey = !0), m;
|
|
3878
|
-
},
|
|
3883
|
+
}, Zo = (e, t) => {
|
|
3879
3884
|
if (e.type === 0 || e.type === 1 || e.type === 11 || e.type === 10)
|
|
3880
3885
|
return () => {
|
|
3881
3886
|
const n = e.children;
|
|
@@ -3915,7 +3920,7 @@ const Qs = (e, t, n, s) => {
|
|
|
3915
3920
|
if (Zt(o) || o.type === 8) {
|
|
3916
3921
|
const a = [];
|
|
3917
3922
|
(o.type !== 2 || o.content !== " ") && a.push(o), !t.ssr && ve(o, t) === 0 && a.push(
|
|
3918
|
-
1 + (process.env.NODE_ENV !== "production" ? ` /* ${
|
|
3923
|
+
1 + (process.env.NODE_ENV !== "production" ? ` /* ${at[1]} */` : "")
|
|
3919
3924
|
), n[i] = {
|
|
3920
3925
|
type: 12,
|
|
3921
3926
|
content: o,
|
|
@@ -3928,9 +3933,9 @@ const Qs = (e, t, n, s) => {
|
|
|
3928
3933
|
}
|
|
3929
3934
|
}
|
|
3930
3935
|
};
|
|
3931
|
-
},
|
|
3936
|
+
}, us = /* @__PURE__ */ new WeakSet(), Qo = (e, t) => {
|
|
3932
3937
|
if (e.type === 1 && pe(e, "once", !0))
|
|
3933
|
-
return
|
|
3938
|
+
return us.has(e) || t.inVOnce || t.inSSR ? void 0 : (us.add(e), t.inVOnce = !0, t.helper($t), () => {
|
|
3934
3939
|
t.inVOnce = !1;
|
|
3935
3940
|
const n = t.currentNode;
|
|
3936
3941
|
n.codegenNode && (n.codegenNode = t.cache(
|
|
@@ -3939,19 +3944,19 @@ const Qs = (e, t, n, s) => {
|
|
|
3939
3944
|
!0
|
|
3940
3945
|
));
|
|
3941
3946
|
});
|
|
3942
|
-
},
|
|
3947
|
+
}, tr = (e, t, n) => {
|
|
3943
3948
|
const { exp: s, arg: r } = e;
|
|
3944
3949
|
if (!s)
|
|
3945
3950
|
return n.onError(
|
|
3946
3951
|
K(41, e.loc)
|
|
3947
|
-
),
|
|
3952
|
+
), _t();
|
|
3948
3953
|
const i = s.loc.source.trim(), o = s.type === 4 ? s.content : i, a = n.bindingMetadata[i];
|
|
3949
3954
|
if (a === "props" || a === "props-aliased")
|
|
3950
|
-
return n.onError(K(44, s.loc)),
|
|
3951
|
-
if (!o.trim() || !
|
|
3955
|
+
return n.onError(K(44, s.loc)), _t();
|
|
3956
|
+
if (!o.trim() || !Rs(s))
|
|
3952
3957
|
return n.onError(
|
|
3953
3958
|
K(42, s.loc)
|
|
3954
|
-
),
|
|
3959
|
+
), _t();
|
|
3955
3960
|
const l = r || V("modelValue", !0), u = r ? he(r) ? `onUpdate:${Pe(r.content)}` : _e(['"onUpdate:" + ', r]) : "onUpdate:modelValue";
|
|
3956
3961
|
let m;
|
|
3957
3962
|
const c = n.isTS ? "($event: any)" : "$event";
|
|
@@ -3980,26 +3985,26 @@ const Qs = (e, t, n, s) => {
|
|
|
3980
3985
|
)
|
|
3981
3986
|
);
|
|
3982
3987
|
}
|
|
3983
|
-
return
|
|
3988
|
+
return _t(f);
|
|
3984
3989
|
};
|
|
3985
|
-
function
|
|
3990
|
+
function _t(e = []) {
|
|
3986
3991
|
return { props: e };
|
|
3987
3992
|
}
|
|
3988
|
-
const
|
|
3993
|
+
const ea = /[\w).+\-_$\]]/, ta = (e, t) => {
|
|
3989
3994
|
Fe("COMPILER_FILTERS", t) && (e.type === 5 ? Ft(e.content, t) : e.type === 1 && e.props.forEach((n) => {
|
|
3990
3995
|
n.type === 7 && n.name !== "for" && n.exp && Ft(n.exp, t);
|
|
3991
3996
|
}));
|
|
3992
3997
|
};
|
|
3993
3998
|
function Ft(e, t) {
|
|
3994
3999
|
if (e.type === 4)
|
|
3995
|
-
|
|
4000
|
+
ds(e, t);
|
|
3996
4001
|
else
|
|
3997
4002
|
for (let n = 0; n < e.children.length; n++) {
|
|
3998
4003
|
const s = e.children[n];
|
|
3999
|
-
typeof s == "object" && (s.type === 4 ?
|
|
4004
|
+
typeof s == "object" && (s.type === 4 ? ds(s, t) : s.type === 8 ? Ft(e, t) : s.type === 5 && Ft(s.content, t));
|
|
4000
4005
|
}
|
|
4001
4006
|
}
|
|
4002
|
-
function
|
|
4007
|
+
function ds(e, t) {
|
|
4003
4008
|
const n = e.content;
|
|
4004
4009
|
let s = !1, r = !1, i = !1, o = !1, a = 0, l = 0, u = 0, m = 0, c, f, h, x, y = [];
|
|
4005
4010
|
for (h = 0; h < n.length; h++)
|
|
@@ -4056,7 +4061,7 @@ function us(e, t) {
|
|
|
4056
4061
|
let _ = h - 1, R;
|
|
4057
4062
|
for (; _ >= 0 && (R = n.charAt(_), R === " "); _--)
|
|
4058
4063
|
;
|
|
4059
|
-
(!R || !
|
|
4064
|
+
(!R || !ea.test(R)) && (o = !0);
|
|
4060
4065
|
}
|
|
4061
4066
|
}
|
|
4062
4067
|
x === void 0 ? x = n.slice(0, h).trim() : m !== 0 && O();
|
|
@@ -4069,24 +4074,24 @@ function us(e, t) {
|
|
|
4069
4074
|
t,
|
|
4070
4075
|
e.loc
|
|
4071
4076
|
), h = 0; h < y.length; h++)
|
|
4072
|
-
x =
|
|
4077
|
+
x = na(x, y[h], t);
|
|
4073
4078
|
e.content = x, e.ast = void 0;
|
|
4074
4079
|
}
|
|
4075
4080
|
}
|
|
4076
|
-
function
|
|
4081
|
+
function na(e, t, n) {
|
|
4077
4082
|
n.helper(Cn);
|
|
4078
4083
|
const s = t.indexOf("(");
|
|
4079
4084
|
if (s < 0)
|
|
4080
|
-
return n.filters.add(t), `${
|
|
4085
|
+
return n.filters.add(t), `${ht(t, "filter")}(${e})`;
|
|
4081
4086
|
{
|
|
4082
4087
|
const r = t.slice(0, s), i = t.slice(s + 1);
|
|
4083
|
-
return n.filters.add(r), `${
|
|
4088
|
+
return n.filters.add(r), `${ht(r, "filter")}(${e}${i !== ")" ? "," + i : i}`;
|
|
4084
4089
|
}
|
|
4085
4090
|
}
|
|
4086
|
-
const
|
|
4091
|
+
const fs = /* @__PURE__ */ new WeakSet(), sa = (e, t) => {
|
|
4087
4092
|
if (e.type === 1) {
|
|
4088
4093
|
const n = pe(e, "memo");
|
|
4089
|
-
return !n ||
|
|
4094
|
+
return !n || fs.has(e) ? void 0 : (fs.add(e), () => {
|
|
4090
4095
|
const s = e.codegenNode || t.currentNode.codegenNode;
|
|
4091
4096
|
s && s.type === 13 && (e.tagType !== 1 && Mn(s, t), e.codegenNode = ne(t.helper(Vn), [
|
|
4092
4097
|
n.exp,
|
|
@@ -4097,36 +4102,36 @@ const ds = /* @__PURE__ */ new WeakSet(), na = (e, t) => {
|
|
|
4097
4102
|
});
|
|
4098
4103
|
}
|
|
4099
4104
|
};
|
|
4100
|
-
function
|
|
4105
|
+
function ra(e) {
|
|
4101
4106
|
return [
|
|
4102
4107
|
[
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
...process.env.NODE_ENV !== "production" ? [
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4108
|
+
Qo,
|
|
4109
|
+
Vo,
|
|
4110
|
+
sa,
|
|
4111
|
+
Fo,
|
|
4112
|
+
ta,
|
|
4113
|
+
...process.env.NODE_ENV !== "production" ? [$o] : [],
|
|
4114
|
+
Yo,
|
|
4115
|
+
qo,
|
|
4116
|
+
Uo,
|
|
4117
|
+
Zo
|
|
4113
4118
|
],
|
|
4114
4119
|
{
|
|
4115
|
-
on:
|
|
4116
|
-
bind:
|
|
4117
|
-
model:
|
|
4120
|
+
on: er,
|
|
4121
|
+
bind: Po,
|
|
4122
|
+
model: tr
|
|
4118
4123
|
}
|
|
4119
4124
|
];
|
|
4120
4125
|
}
|
|
4121
|
-
function
|
|
4126
|
+
function ia(e, t = {}) {
|
|
4122
4127
|
const n = t.onError || Rn, s = t.mode === "module";
|
|
4123
4128
|
t.prefixIdentifiers === !0 ? n(K(47)) : s && n(K(48));
|
|
4124
4129
|
const r = !1;
|
|
4125
4130
|
t.cacheHandlers && n(K(49)), t.scopeId && !s && n(K(50));
|
|
4126
4131
|
const i = Le({}, t, {
|
|
4127
4132
|
prefixIdentifiers: r
|
|
4128
|
-
}), o = re(e) ?
|
|
4129
|
-
return
|
|
4133
|
+
}), o = re(e) ? oo(e, i) : e, [a, l] = ra();
|
|
4134
|
+
return uo(
|
|
4130
4135
|
o,
|
|
4131
4136
|
Le({}, i, {
|
|
4132
4137
|
nodeTransforms: [
|
|
@@ -4141,55 +4146,55 @@ function ra(e, t = {}) {
|
|
|
4141
4146
|
// user transforms
|
|
4142
4147
|
)
|
|
4143
4148
|
})
|
|
4144
|
-
),
|
|
4149
|
+
), mo(o, i);
|
|
4145
4150
|
}
|
|
4146
|
-
const
|
|
4151
|
+
const oa = () => ({ props: [] });
|
|
4147
4152
|
/**
|
|
4148
|
-
* @vue/compiler-dom v3.5.
|
|
4153
|
+
* @vue/compiler-dom v3.5.18
|
|
4149
4154
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4150
4155
|
* @license MIT
|
|
4151
4156
|
**/
|
|
4152
|
-
const
|
|
4157
|
+
const nr = Symbol(process.env.NODE_ENV !== "production" ? "vModelRadio" : ""), sr = Symbol(
|
|
4153
4158
|
process.env.NODE_ENV !== "production" ? "vModelCheckbox" : ""
|
|
4154
|
-
),
|
|
4159
|
+
), rr = Symbol(process.env.NODE_ENV !== "production" ? "vModelText" : ""), ir = Symbol(
|
|
4155
4160
|
process.env.NODE_ENV !== "production" ? "vModelSelect" : ""
|
|
4156
4161
|
), pn = Symbol(
|
|
4157
4162
|
process.env.NODE_ENV !== "production" ? "vModelDynamic" : ""
|
|
4158
|
-
), ir = Symbol(
|
|
4159
|
-
process.env.NODE_ENV !== "production" ? "vOnModifiersGuard" : ""
|
|
4160
4163
|
), or = Symbol(
|
|
4164
|
+
process.env.NODE_ENV !== "production" ? "vOnModifiersGuard" : ""
|
|
4165
|
+
), ar = Symbol(
|
|
4161
4166
|
process.env.NODE_ENV !== "production" ? "vOnKeysGuard" : ""
|
|
4162
|
-
),
|
|
4167
|
+
), lr = Symbol(process.env.NODE_ENV !== "production" ? "vShow" : ""), Bn = Symbol(process.env.NODE_ENV !== "production" ? "Transition" : ""), cr = Symbol(
|
|
4163
4168
|
process.env.NODE_ENV !== "production" ? "TransitionGroup" : ""
|
|
4164
4169
|
);
|
|
4165
|
-
|
|
4166
|
-
[
|
|
4167
|
-
[
|
|
4168
|
-
[
|
|
4169
|
-
[
|
|
4170
|
+
Ti({
|
|
4171
|
+
[nr]: "vModelRadio",
|
|
4172
|
+
[sr]: "vModelCheckbox",
|
|
4173
|
+
[rr]: "vModelText",
|
|
4174
|
+
[ir]: "vModelSelect",
|
|
4170
4175
|
[pn]: "vModelDynamic",
|
|
4171
|
-
[
|
|
4172
|
-
[
|
|
4173
|
-
[
|
|
4176
|
+
[or]: "withModifiers",
|
|
4177
|
+
[ar]: "withKeys",
|
|
4178
|
+
[lr]: "vShow",
|
|
4174
4179
|
[Bn]: "Transition",
|
|
4175
|
-
[
|
|
4180
|
+
[cr]: "TransitionGroup"
|
|
4176
4181
|
});
|
|
4177
4182
|
let Xe;
|
|
4178
|
-
function
|
|
4183
|
+
function aa(e, t = !1) {
|
|
4179
4184
|
return Xe || (Xe = document.createElement("div")), t ? (Xe.innerHTML = `<div foo="${e.replace(/"/g, """)}">`, Xe.children[0].getAttribute("foo")) : (Xe.innerHTML = e, Xe.textContent);
|
|
4180
4185
|
}
|
|
4181
|
-
const
|
|
4186
|
+
const la = {
|
|
4182
4187
|
parseMode: "html",
|
|
4183
|
-
isVoidTag:
|
|
4184
|
-
isNativeTag: (e) =>
|
|
4188
|
+
isVoidTag: Ei,
|
|
4189
|
+
isNativeTag: (e) => bi(e) || xi(e) || ki(e),
|
|
4185
4190
|
isPreTag: (e) => e === "pre",
|
|
4186
4191
|
isIgnoreNewlineTag: (e) => e === "pre" || e === "textarea",
|
|
4187
|
-
decodeEntities:
|
|
4192
|
+
decodeEntities: aa,
|
|
4188
4193
|
isBuiltInComponent: (e) => {
|
|
4189
4194
|
if (e === "Transition" || e === "transition")
|
|
4190
4195
|
return Bn;
|
|
4191
4196
|
if (e === "TransitionGroup" || e === "transition-group")
|
|
4192
|
-
return
|
|
4197
|
+
return cr;
|
|
4193
4198
|
},
|
|
4194
4199
|
// https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
|
|
4195
4200
|
getNamespace(e, t, n) {
|
|
@@ -4211,19 +4216,19 @@ const aa = {
|
|
|
4211
4216
|
}
|
|
4212
4217
|
return s;
|
|
4213
4218
|
}
|
|
4214
|
-
},
|
|
4219
|
+
}, ca = (e) => {
|
|
4215
4220
|
e.type === 1 && e.props.forEach((t, n) => {
|
|
4216
4221
|
t.type === 6 && t.name === "style" && t.value && (e.props[n] = {
|
|
4217
4222
|
type: 7,
|
|
4218
4223
|
name: "bind",
|
|
4219
4224
|
arg: V("style", !0, t.loc),
|
|
4220
|
-
exp:
|
|
4225
|
+
exp: ua(t.value.content, t.loc),
|
|
4221
4226
|
modifiers: [],
|
|
4222
4227
|
loc: t.loc
|
|
4223
4228
|
});
|
|
4224
4229
|
});
|
|
4225
|
-
},
|
|
4226
|
-
const n =
|
|
4230
|
+
}, ua = (e, t) => {
|
|
4231
|
+
const n = hi(e);
|
|
4227
4232
|
return V(
|
|
4228
4233
|
JSON.stringify(n),
|
|
4229
4234
|
!1,
|
|
@@ -4235,10 +4240,10 @@ function we(e, t) {
|
|
|
4235
4240
|
return K(
|
|
4236
4241
|
e,
|
|
4237
4242
|
t,
|
|
4238
|
-
process.env.NODE_ENV !== "production" ?
|
|
4243
|
+
process.env.NODE_ENV !== "production" ? da : void 0
|
|
4239
4244
|
);
|
|
4240
4245
|
}
|
|
4241
|
-
const
|
|
4246
|
+
const da = {
|
|
4242
4247
|
53: "v-html is missing expression.",
|
|
4243
4248
|
54: "v-html will override element children.",
|
|
4244
4249
|
55: "v-text is missing expression.",
|
|
@@ -4250,7 +4255,7 @@ const ua = {
|
|
|
4250
4255
|
61: "v-show is missing expression.",
|
|
4251
4256
|
62: "<Transition> expects exactly one child element or component.",
|
|
4252
4257
|
63: "Tags with side effect (<script> and <style>) are ignored in client component templates."
|
|
4253
|
-
},
|
|
4258
|
+
}, fa = (e, t, n) => {
|
|
4254
4259
|
const { exp: s, loc: r } = e;
|
|
4255
4260
|
return s || n.onError(
|
|
4256
4261
|
we(53, r)
|
|
@@ -4264,7 +4269,7 @@ const ua = {
|
|
|
4264
4269
|
)
|
|
4265
4270
|
]
|
|
4266
4271
|
};
|
|
4267
|
-
},
|
|
4272
|
+
}, pa = (e, t, n) => {
|
|
4268
4273
|
const { exp: s, loc: r } = e;
|
|
4269
4274
|
return s || n.onError(
|
|
4270
4275
|
we(55, r)
|
|
@@ -4282,8 +4287,8 @@ const ua = {
|
|
|
4282
4287
|
)
|
|
4283
4288
|
]
|
|
4284
4289
|
};
|
|
4285
|
-
},
|
|
4286
|
-
const s =
|
|
4290
|
+
}, ha = (e, t, n) => {
|
|
4291
|
+
const s = tr(e, t, n);
|
|
4287
4292
|
if (!s.props.length || t.tagType === 1)
|
|
4288
4293
|
return s;
|
|
4289
4294
|
e.arg && n.onError(
|
|
@@ -4303,19 +4308,19 @@ const ua = {
|
|
|
4303
4308
|
}
|
|
4304
4309
|
const { tag: i } = t, o = n.isCustomElement(i);
|
|
4305
4310
|
if (i === "input" || i === "textarea" || i === "select" || o) {
|
|
4306
|
-
let a =
|
|
4311
|
+
let a = rr, l = !1;
|
|
4307
4312
|
if (i === "input" || o) {
|
|
4308
|
-
const u =
|
|
4313
|
+
const u = pt(t, "type");
|
|
4309
4314
|
if (u) {
|
|
4310
4315
|
if (u.type === 7)
|
|
4311
4316
|
a = pn;
|
|
4312
4317
|
else if (u.value)
|
|
4313
4318
|
switch (u.value.content) {
|
|
4314
4319
|
case "radio":
|
|
4315
|
-
a =
|
|
4320
|
+
a = nr;
|
|
4316
4321
|
break;
|
|
4317
4322
|
case "checkbox":
|
|
4318
|
-
a =
|
|
4323
|
+
a = sr;
|
|
4319
4324
|
break;
|
|
4320
4325
|
case "file":
|
|
4321
4326
|
l = !0, n.onError(
|
|
@@ -4329,8 +4334,8 @@ const ua = {
|
|
|
4329
4334
|
process.env.NODE_ENV !== "production" && r();
|
|
4330
4335
|
break;
|
|
4331
4336
|
}
|
|
4332
|
-
} else
|
|
4333
|
-
} else i === "select" ? a =
|
|
4337
|
+
} else zi(t) ? a = pn : process.env.NODE_ENV !== "production" && r();
|
|
4338
|
+
} else i === "select" ? a = ir : process.env.NODE_ENV !== "production" && r();
|
|
4334
4339
|
l || (s.needRuntime = n.helper(a));
|
|
4335
4340
|
} else
|
|
4336
4341
|
n.onError(
|
|
@@ -4342,10 +4347,10 @@ const ua = {
|
|
|
4342
4347
|
return s.props = s.props.filter(
|
|
4343
4348
|
(a) => !(a.key.type === 4 && a.key.content === "modelValue")
|
|
4344
4349
|
), s;
|
|
4345
|
-
},
|
|
4350
|
+
}, ma = /* @__PURE__ */ Ie("passive,once,capture"), ga = /* @__PURE__ */ Ie(
|
|
4346
4351
|
// event propagation management
|
|
4347
4352
|
"stop,prevent,self,ctrl,shift,alt,meta,exact,middle"
|
|
4348
|
-
),
|
|
4353
|
+
), va = /* @__PURE__ */ Ie("left,right"), ur = /* @__PURE__ */ Ie("onkeyup,onkeydown,onkeypress"), ya = (e, t, n, s) => {
|
|
4349
4354
|
const r = [], i = [], o = [];
|
|
4350
4355
|
for (let a = 0; a < t.length; a++) {
|
|
4351
4356
|
const l = t[a].content;
|
|
@@ -4353,29 +4358,29 @@ const ua = {
|
|
|
4353
4358
|
"COMPILER_V_ON_NATIVE",
|
|
4354
4359
|
n,
|
|
4355
4360
|
s
|
|
4356
|
-
) ||
|
|
4361
|
+
) || ma(l) ? o.push(l) : va(l) ? he(e) ? ur(e.content.toLowerCase()) ? r.push(l) : i.push(l) : (r.push(l), i.push(l)) : ga(l) ? i.push(l) : r.push(l);
|
|
4357
4362
|
}
|
|
4358
4363
|
return {
|
|
4359
4364
|
keyModifiers: r,
|
|
4360
4365
|
nonKeyModifiers: i,
|
|
4361
4366
|
eventOptionModifiers: o
|
|
4362
4367
|
};
|
|
4363
|
-
},
|
|
4368
|
+
}, ps = (e, t) => he(e) && e.content.toLowerCase() === "onclick" ? V(t, !0) : e.type !== 4 ? _e([
|
|
4364
4369
|
"(",
|
|
4365
4370
|
e,
|
|
4366
4371
|
`) === "onClick" ? "${t}" : (`,
|
|
4367
4372
|
e,
|
|
4368
4373
|
")"
|
|
4369
|
-
]) : e,
|
|
4374
|
+
]) : e, ba = (e, t, n) => er(e, t, n, (s) => {
|
|
4370
4375
|
const { modifiers: r } = e;
|
|
4371
4376
|
if (!r.length) return s;
|
|
4372
4377
|
let { key: i, value: o } = s.props[0];
|
|
4373
|
-
const { keyModifiers: a, nonKeyModifiers: l, eventOptionModifiers: u } =
|
|
4374
|
-
if (l.includes("right") && (i =
|
|
4378
|
+
const { keyModifiers: a, nonKeyModifiers: l, eventOptionModifiers: u } = ya(i, r, n, e.loc);
|
|
4379
|
+
if (l.includes("right") && (i = ps(i, "onContextmenu")), l.includes("middle") && (i = ps(i, "onMouseup")), l.length && (o = ne(n.helper(or), [
|
|
4375
4380
|
o,
|
|
4376
4381
|
JSON.stringify(l)
|
|
4377
4382
|
])), a.length && // if event name is dynamic, always wrap with keys guard
|
|
4378
|
-
(!he(i) ||
|
|
4383
|
+
(!he(i) || ur(i.content.toLowerCase())) && (o = ne(n.helper(ar), [
|
|
4379
4384
|
o,
|
|
4380
4385
|
JSON.stringify(a)
|
|
4381
4386
|
])), u.length) {
|
|
@@ -4385,20 +4390,20 @@ const ua = {
|
|
|
4385
4390
|
return {
|
|
4386
4391
|
props: [ee(i, o)]
|
|
4387
4392
|
};
|
|
4388
|
-
}),
|
|
4393
|
+
}), xa = (e, t, n) => {
|
|
4389
4394
|
const { exp: s, loc: r } = e;
|
|
4390
4395
|
return s || n.onError(
|
|
4391
4396
|
we(61, r)
|
|
4392
4397
|
), {
|
|
4393
4398
|
props: [],
|
|
4394
|
-
needRuntime: n.helper(
|
|
4399
|
+
needRuntime: n.helper(lr)
|
|
4395
4400
|
};
|
|
4396
|
-
},
|
|
4401
|
+
}, ka = (e, t) => {
|
|
4397
4402
|
if (e.type === 1 && e.tagType === 1 && t.isBuiltInComponent(e.tag) === Bn)
|
|
4398
4403
|
return () => {
|
|
4399
4404
|
if (!e.children.length)
|
|
4400
4405
|
return;
|
|
4401
|
-
|
|
4406
|
+
dr(e) && t.onError(
|
|
4402
4407
|
we(
|
|
4403
4408
|
62,
|
|
4404
4409
|
{
|
|
@@ -4420,13 +4425,13 @@ const ua = {
|
|
|
4420
4425
|
});
|
|
4421
4426
|
};
|
|
4422
4427
|
};
|
|
4423
|
-
function
|
|
4428
|
+
function dr(e) {
|
|
4424
4429
|
const t = e.children = e.children.filter(
|
|
4425
4430
|
(s) => s.type !== 3 && !(s.type === 2 && !s.content.trim())
|
|
4426
4431
|
), n = t[0];
|
|
4427
|
-
return t.length !== 1 || n.type === 11 || n.type === 9 && n.branches.some(
|
|
4432
|
+
return t.length !== 1 || n.type === 11 || n.type === 9 && n.branches.some(dr);
|
|
4428
4433
|
}
|
|
4429
|
-
const
|
|
4434
|
+
const Ea = (e, t) => {
|
|
4430
4435
|
e.type === 1 && e.tagType === 0 && (e.tag === "script" || e.tag === "style") && (process.env.NODE_ENV !== "production" && t.onError(
|
|
4431
4436
|
we(
|
|
4432
4437
|
63,
|
|
@@ -4434,10 +4439,10 @@ const ka = (e, t) => {
|
|
|
4434
4439
|
)
|
|
4435
4440
|
), t.removeNode());
|
|
4436
4441
|
};
|
|
4437
|
-
function
|
|
4438
|
-
return e === "template" ? !0 : e in
|
|
4442
|
+
function wa(e, t) {
|
|
4443
|
+
return e === "template" ? !0 : e in hs ? hs[e].has(t) : t in ms ? ms[t].has(e) : !(e in gs && gs[e].has(t) || t in vs && vs[t].has(e));
|
|
4439
4444
|
}
|
|
4440
|
-
const Ze = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), He = /* @__PURE__ */ new Set([]),
|
|
4445
|
+
const Ze = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), He = /* @__PURE__ */ new Set([]), hs = {
|
|
4441
4446
|
head: /* @__PURE__ */ new Set([
|
|
4442
4447
|
"base",
|
|
4443
4448
|
"basefront",
|
|
@@ -4467,7 +4472,7 @@ const Ze = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), He = /
|
|
|
4467
4472
|
textarea: He,
|
|
4468
4473
|
style: He,
|
|
4469
4474
|
title: He
|
|
4470
|
-
},
|
|
4475
|
+
}, ms = {
|
|
4471
4476
|
// sections
|
|
4472
4477
|
html: He,
|
|
4473
4478
|
body: /* @__PURE__ */ new Set(["html"]),
|
|
@@ -4490,7 +4495,7 @@ const Ze = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), He = /
|
|
|
4490
4495
|
// li: new Set(["ul", "ol"]),
|
|
4491
4496
|
summary: /* @__PURE__ */ new Set(["details"]),
|
|
4492
4497
|
area: /* @__PURE__ */ new Set(["map"])
|
|
4493
|
-
},
|
|
4498
|
+
}, gs = {
|
|
4494
4499
|
p: /* @__PURE__ */ new Set([
|
|
4495
4500
|
"address",
|
|
4496
4501
|
"article",
|
|
@@ -4564,7 +4569,7 @@ const Ze = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), He = /
|
|
|
4564
4569
|
"ul",
|
|
4565
4570
|
"var"
|
|
4566
4571
|
])
|
|
4567
|
-
},
|
|
4572
|
+
}, vs = {
|
|
4568
4573
|
a: /* @__PURE__ */ new Set(["a"]),
|
|
4569
4574
|
button: /* @__PURE__ */ new Set(["button"]),
|
|
4570
4575
|
dd: /* @__PURE__ */ new Set(["dd", "dt"]),
|
|
@@ -4577,49 +4582,49 @@ const Ze = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), He = /
|
|
|
4577
4582
|
h4: Ze,
|
|
4578
4583
|
h5: Ze,
|
|
4579
4584
|
h6: Ze
|
|
4580
|
-
},
|
|
4581
|
-
if (e.type === 1 && e.tagType === 0 && t.parent && t.parent.type === 1 && t.parent.tagType === 0 && !
|
|
4585
|
+
}, Sa = (e, t) => {
|
|
4586
|
+
if (e.type === 1 && e.tagType === 0 && t.parent && t.parent.type === 1 && t.parent.tagType === 0 && !wa(t.parent.tag, e.tag)) {
|
|
4582
4587
|
const n = new SyntaxError(
|
|
4583
4588
|
`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`
|
|
4584
4589
|
);
|
|
4585
4590
|
n.loc = e.loc, t.onWarn(n);
|
|
4586
4591
|
}
|
|
4587
|
-
},
|
|
4588
|
-
|
|
4589
|
-
...process.env.NODE_ENV !== "production" ? [
|
|
4590
|
-
],
|
|
4591
|
-
cloak:
|
|
4592
|
-
html:
|
|
4593
|
-
text:
|
|
4594
|
-
model:
|
|
4592
|
+
}, _a = [
|
|
4593
|
+
ca,
|
|
4594
|
+
...process.env.NODE_ENV !== "production" ? [ka, Sa] : []
|
|
4595
|
+
], Na = {
|
|
4596
|
+
cloak: oa,
|
|
4597
|
+
html: fa,
|
|
4598
|
+
text: pa,
|
|
4599
|
+
model: ha,
|
|
4595
4600
|
// override compiler-core
|
|
4596
|
-
on:
|
|
4601
|
+
on: ba,
|
|
4597
4602
|
// override compiler-core
|
|
4598
|
-
show:
|
|
4603
|
+
show: xa
|
|
4599
4604
|
};
|
|
4600
|
-
function
|
|
4601
|
-
return
|
|
4605
|
+
function Ca(e, t = {}) {
|
|
4606
|
+
return ia(
|
|
4602
4607
|
e,
|
|
4603
|
-
Le({},
|
|
4608
|
+
Le({}, la, t, {
|
|
4604
4609
|
nodeTransforms: [
|
|
4605
4610
|
// ignore <script> and <tag>
|
|
4606
4611
|
// this is not put inside DOMNodeTransforms because that list is used
|
|
4607
4612
|
// by compiler-ssr to generate vnode fallback branches
|
|
4608
|
-
|
|
4609
|
-
...
|
|
4613
|
+
Ea,
|
|
4614
|
+
..._a,
|
|
4610
4615
|
...t.nodeTransforms || []
|
|
4611
4616
|
],
|
|
4612
4617
|
directiveTransforms: Le(
|
|
4613
4618
|
{},
|
|
4614
|
-
|
|
4619
|
+
Na,
|
|
4615
4620
|
t.directiveTransforms || {}
|
|
4616
4621
|
),
|
|
4617
4622
|
transformHoist: null
|
|
4618
4623
|
})
|
|
4619
4624
|
);
|
|
4620
4625
|
}
|
|
4621
|
-
function
|
|
4622
|
-
const n = e.trim().startsWith("<") ? e : `<span>${e}</span>`, { code: s } =
|
|
4626
|
+
function Ta(e, t) {
|
|
4627
|
+
const n = e.trim().startsWith("<") ? e : `<span>${e}</span>`, { code: s } = Ca(n, { mode: "function" }), r = new Function("Vue", `${s}; return render`)(br);
|
|
4623
4628
|
return ie({
|
|
4624
4629
|
name: "DynamicFromString",
|
|
4625
4630
|
props: t?.props ?? {},
|
|
@@ -4631,41 +4636,41 @@ function Ca(e, t) {
|
|
|
4631
4636
|
});
|
|
4632
4637
|
}
|
|
4633
4638
|
const tn = {};
|
|
4634
|
-
function
|
|
4635
|
-
return tn[e] || (tn[e] =
|
|
4639
|
+
function ys(e) {
|
|
4640
|
+
return tn[e] || (tn[e] = Ta(e, {
|
|
4636
4641
|
props: { row: Object, value: null, data: Object, column: Object }
|
|
4637
4642
|
})), tn[e];
|
|
4638
4643
|
}
|
|
4639
|
-
const
|
|
4644
|
+
const Oa = { class: "py-10 flex flex-col justify-center items-center text-center" }, Ia = { class: "max-w-sm mx-auto" }, Da = { class: "mt-2 font-medium text-gray-800 dark:text-neutral-200" }, Aa = { class: "mb-5 text-sm text-gray-500 dark:text-neutral-500" }, $a = /* @__PURE__ */ ie({
|
|
4640
4645
|
__name: "nodata",
|
|
4641
4646
|
props: {
|
|
4642
4647
|
title: { default: "No data" },
|
|
4643
4648
|
description: { default: "No data here yet. We will notify you when there's an update." }
|
|
4644
4649
|
},
|
|
4645
4650
|
setup(e) {
|
|
4646
|
-
return (t, n) => (v(), k("div",
|
|
4651
|
+
return (t, n) => (v(), k("div", Oa, [
|
|
4647
4652
|
n[0] || (n[0] = hn('<svg class="w-48 mx-auto mb-4" width="178" height="90" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter19)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter19" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>', 1)),
|
|
4648
|
-
d("div",
|
|
4649
|
-
d("p",
|
|
4650
|
-
d("p",
|
|
4653
|
+
d("div", Ia, [
|
|
4654
|
+
d("p", Da, A(t.title), 1),
|
|
4655
|
+
d("p", Aa, A(t.description), 1)
|
|
4651
4656
|
])
|
|
4652
4657
|
]));
|
|
4653
4658
|
}
|
|
4654
|
-
}),
|
|
4659
|
+
}), Va = ["aria-checked", "data-state"], Ma = {
|
|
4655
4660
|
key: 0,
|
|
4656
4661
|
"data-state": "checked",
|
|
4657
4662
|
"data-slot": "checkbox-indicator",
|
|
4658
4663
|
class: "flex items-center justify-center transition-none text-white"
|
|
4659
|
-
},
|
|
4664
|
+
}, Ra = { class: "truncate" }, La = ["onKeydown"], Pa = {
|
|
4660
4665
|
key: 0,
|
|
4661
4666
|
class: "hs-dropdown-menu hs-dropdown-open:opacity-100 w-44 transition-[opacity,margin] duration z-11 bg-white rounded-xl shadow-lg dark:bg-neutral-950",
|
|
4662
4667
|
role: "menu",
|
|
4663
4668
|
"aria-orientation": "vertical",
|
|
4664
4669
|
"aria-labelledby": "hs-pro-inthmtdid1"
|
|
4665
|
-
},
|
|
4670
|
+
}, Fa = { class: "py-2 px-4" }, Ba = { class: "block font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, ja = { class: "truncate" }, Ua = { class: "p-1 border-t border-gray-200 dark:border-neutral-800" }, za = { class: "space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, Ha = ["onClick"], qa = {
|
|
4666
4671
|
key: 0,
|
|
4667
4672
|
class: "shrink-0 size-3.5 flex justify-center items-center"
|
|
4668
|
-
},
|
|
4673
|
+
}, Ka = {
|
|
4669
4674
|
key: 1,
|
|
4670
4675
|
class: "shrink-0 size-3.5 ms-auto",
|
|
4671
4676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4677,10 +4682,10 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4677
4682
|
"stroke-width": "2",
|
|
4678
4683
|
"stroke-linecap": "round",
|
|
4679
4684
|
"stroke-linejoin": "round"
|
|
4680
|
-
},
|
|
4685
|
+
}, Wa = {
|
|
4681
4686
|
key: 1,
|
|
4682
4687
|
class: "p-4"
|
|
4683
|
-
},
|
|
4688
|
+
}, Ga = { class: "text-base font-semibold text-gray-800 mb-3" }, Ja = { class: "mb-4" }, Ya = { class: "block text-sm font-medium text-gray-700 mb-1" }, Xa = ["value"], Za = { class: "flex justify-end gap-2 border-t pt-3" }, Qa = /* @__PURE__ */ ie({
|
|
4684
4689
|
__name: "EditableCell",
|
|
4685
4690
|
props: {
|
|
4686
4691
|
row: {},
|
|
@@ -4746,7 +4751,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4746
4751
|
document.addEventListener("click", _), window.addEventListener("storage", m), u.value = localStorage.locale, document.addEventListener("close-all-popovers", () => {
|
|
4747
4752
|
r.value = !1;
|
|
4748
4753
|
});
|
|
4749
|
-
}),
|
|
4754
|
+
}), Es(() => {
|
|
4750
4755
|
document.removeEventListener("click", _), window.removeEventListener("storage", m), document.removeEventListener("close-all-popovers", () => {
|
|
4751
4756
|
r.value = !1;
|
|
4752
4757
|
});
|
|
@@ -4791,7 +4796,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4791
4796
|
]),
|
|
4792
4797
|
onClick: ot(R, ["stop"])
|
|
4793
4798
|
}, [
|
|
4794
|
-
a.value ? (v(), k("span",
|
|
4799
|
+
a.value ? (v(), k("span", Ma, I[4] || (I[4] = [
|
|
4795
4800
|
d("svg", {
|
|
4796
4801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4797
4802
|
width: "24",
|
|
@@ -4807,12 +4812,12 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4807
4812
|
d("path", { d: "M20 6 9 17l-5-5" })
|
|
4808
4813
|
], -1)
|
|
4809
4814
|
]))) : Y("", !0)
|
|
4810
|
-
], 10,
|
|
4815
|
+
], 10, Va)) : (v(), k(se, { key: 1 }, [
|
|
4811
4816
|
d("div", {
|
|
4812
4817
|
class: "flex items-center justify-between cursor-pointer",
|
|
4813
4818
|
onClick: ot(x, ["stop"])
|
|
4814
4819
|
}, [
|
|
4815
|
-
d("span",
|
|
4820
|
+
d("span", Ra, [
|
|
4816
4821
|
Ae(T.$slots, "default")
|
|
4817
4822
|
]),
|
|
4818
4823
|
T.editable ? (v(), k("svg", {
|
|
@@ -4838,14 +4843,14 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4838
4843
|
class: L(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg", c.value === "select" ? "" : "w-[450px]"]),
|
|
4839
4844
|
onKeydown: Jt(ot(O, ["stop", "prevent"]), ["esc"])
|
|
4840
4845
|
}, [
|
|
4841
|
-
c.value === "select" ? (v(), k("div",
|
|
4842
|
-
d("div",
|
|
4843
|
-
d("span",
|
|
4844
|
-
d("span",
|
|
4846
|
+
c.value === "select" ? (v(), k("div", Pa, [
|
|
4847
|
+
d("div", Fa, [
|
|
4848
|
+
d("span", Ba, [
|
|
4849
|
+
d("span", ja, " Редагувати " + A(T.column[u.value] || T.column.header || T.column.ua || T.column.name), 1)
|
|
4845
4850
|
])
|
|
4846
4851
|
]),
|
|
4847
|
-
d("div",
|
|
4848
|
-
d("div",
|
|
4852
|
+
d("div", Ua, [
|
|
4853
|
+
d("div", za, [
|
|
4849
4854
|
(v(!0), k(se, null, Se(f.value, (S) => (v(), k("label", {
|
|
4850
4855
|
key: S.value.toString(),
|
|
4851
4856
|
onClick: ot(() => {
|
|
@@ -4859,20 +4864,20 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4859
4864
|
id: "hs-pro-chthuts1op",
|
|
4860
4865
|
name: "hs-pro-chthuts1"
|
|
4861
4866
|
}, null, -1)),
|
|
4862
|
-
S.color ? (v(), k("span",
|
|
4867
|
+
S.color ? (v(), k("span", qa, I[6] || (I[6] = [
|
|
4863
4868
|
d("span", { class: "shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full" }, null, -1)
|
|
4864
4869
|
]))) : Y("", !0),
|
|
4865
4870
|
be(" " + A(S.label) + " ", 1),
|
|
4866
|
-
a.value === S.value ? (v(), k("svg",
|
|
4871
|
+
a.value === S.value ? (v(), k("svg", Ka, I[7] || (I[7] = [
|
|
4867
4872
|
d("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
|
4868
4873
|
]))) : Y("", !0)
|
|
4869
|
-
], 8,
|
|
4874
|
+
], 8, Ha))), 128))
|
|
4870
4875
|
])
|
|
4871
4876
|
])
|
|
4872
|
-
])) : (v(), k("div",
|
|
4873
|
-
d("h3",
|
|
4874
|
-
d("div",
|
|
4875
|
-
d("label",
|
|
4877
|
+
])) : (v(), k("div", Wa, [
|
|
4878
|
+
d("h3", Ga, " Редагувати " + A(T.column[u.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4879
|
+
d("div", Ja, [
|
|
4880
|
+
d("label", Ya, A(T.column[u.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4876
4881
|
c.value === "text" ? Ee((v(), k("input", {
|
|
4877
4882
|
key: 0,
|
|
4878
4883
|
ref_key: "inputRef",
|
|
@@ -4882,7 +4887,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4882
4887
|
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300", E.value.ring, E.value.border]),
|
|
4883
4888
|
onKeyup: Jt(y, ["enter"])
|
|
4884
4889
|
}, null, 34)), [
|
|
4885
|
-
[
|
|
4890
|
+
[Nt, a.value]
|
|
4886
4891
|
]) : c.value === "number" ? Ee((v(), k("input", {
|
|
4887
4892
|
key: 1,
|
|
4888
4893
|
ref_key: "inputRef",
|
|
@@ -4893,7 +4898,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4893
4898
|
onKeyup: Jt(y, ["enter"])
|
|
4894
4899
|
}, null, 34)), [
|
|
4895
4900
|
[
|
|
4896
|
-
|
|
4901
|
+
Nt,
|
|
4897
4902
|
a.value,
|
|
4898
4903
|
void 0,
|
|
4899
4904
|
{ number: !0 }
|
|
@@ -4907,7 +4912,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4907
4912
|
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300", E.value.ring, E.value.border]),
|
|
4908
4913
|
onChange: y
|
|
4909
4914
|
}, null, 34)), [
|
|
4910
|
-
[
|
|
4915
|
+
[Nt, a.value]
|
|
4911
4916
|
]) : c.value === "select" ? Ee((v(), k("select", {
|
|
4912
4917
|
key: 3,
|
|
4913
4918
|
ref_key: "inputRef",
|
|
@@ -4922,12 +4927,12 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4922
4927
|
(v(!0), k(se, null, Se(f.value, (S) => (v(), k("option", {
|
|
4923
4928
|
key: S.value.toString(),
|
|
4924
4929
|
value: S.value
|
|
4925
|
-
}, A(S.label), 9,
|
|
4930
|
+
}, A(S.label), 9, Xa))), 128))
|
|
4926
4931
|
], 2)), [
|
|
4927
|
-
[
|
|
4932
|
+
[xr, a.value]
|
|
4928
4933
|
]) : Y("", !0)
|
|
4929
4934
|
]),
|
|
4930
|
-
d("div",
|
|
4935
|
+
d("div", Za, [
|
|
4931
4936
|
d("button", {
|
|
4932
4937
|
type: "button",
|
|
4933
4938
|
class: "px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
@@ -4940,26 +4945,26 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4940
4945
|
}, " Зберегти ", 2)
|
|
4941
4946
|
])
|
|
4942
4947
|
]))
|
|
4943
|
-
], 42,
|
|
4948
|
+
], 42, La)) : Y("", !0)
|
|
4944
4949
|
], 64))
|
|
4945
4950
|
], 2));
|
|
4946
4951
|
}
|
|
4947
|
-
}),
|
|
4952
|
+
}), el = {
|
|
4948
4953
|
key: 0,
|
|
4949
4954
|
class: "text-center py-8"
|
|
4950
|
-
},
|
|
4955
|
+
}, tl = { class: "inline-flex items-center space-x-2" }, nl = {
|
|
4951
4956
|
key: 2,
|
|
4952
4957
|
class: "overflow-x-auto"
|
|
4953
|
-
},
|
|
4958
|
+
}, sl = ["checked", "indeterminate"], rl = ["onClick"], il = { class: "flex items-center justify-between" }, ol = { class: "flex items-center gap-1.5" }, al = {
|
|
4954
4959
|
key: 0,
|
|
4955
4960
|
class: "relative group"
|
|
4956
|
-
},
|
|
4961
|
+
}, ll = ["onMouseenter"], cl = {
|
|
4957
4962
|
key: 0,
|
|
4958
4963
|
class: "ml-1 text-xs"
|
|
4959
|
-
},
|
|
4964
|
+
}, ul = ["onClick"], dl = ["checked", "onChange"], fl = ["onClick"], pl = {
|
|
4960
4965
|
key: 1,
|
|
4961
4966
|
class: "text-center"
|
|
4962
|
-
},
|
|
4967
|
+
}, hl = ["colspan"], bs = /* @__PURE__ */ ie({
|
|
4963
4968
|
name: "DataTable",
|
|
4964
4969
|
__name: "DataTable",
|
|
4965
4970
|
props: {
|
|
@@ -4998,7 +5003,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4998
5003
|
const n = e, s = t, r = $(n.selectedRows || []), i = $(n.defaultSort.map((p) => ({
|
|
4999
5004
|
field: p.name,
|
|
5000
5005
|
direction: p.asc ? "asc" : "desc"
|
|
5001
|
-
}))), o = $([]), a = $([]), l = $(!1), u = $(null), m = $(n.router), c =
|
|
5006
|
+
}))), o = $([]), a = $([]), l = $(!1), u = $(null), m = $(n.router), c = ws(), f = q(() => c.action);
|
|
5002
5007
|
function h(p) {
|
|
5003
5008
|
if (m.value) {
|
|
5004
5009
|
m.value.push(p);
|
|
@@ -5015,11 +5020,11 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5015
5020
|
for (const P of i.value) {
|
|
5016
5021
|
if (!P.direction)
|
|
5017
5022
|
return 0;
|
|
5018
|
-
const g = D[P.field],
|
|
5023
|
+
const g = D[P.field], z = b[P.field];
|
|
5019
5024
|
if (g == null) return 1;
|
|
5020
|
-
if (
|
|
5025
|
+
if (z == null) return -1;
|
|
5021
5026
|
let ue = 0;
|
|
5022
|
-
typeof g == "string" && typeof
|
|
5027
|
+
typeof g == "string" && typeof z == "string" ? ue = g.localeCompare(z) : g < z ? ue = -1 : g > z ? ue = 1 : ue = 0;
|
|
5023
5028
|
const Ye = P.direction === "desc" ? -ue : ue;
|
|
5024
5029
|
if (Ye !== 0) return Ye;
|
|
5025
5030
|
}
|
|
@@ -5039,17 +5044,17 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5039
5044
|
}, E = (p, D) => {
|
|
5040
5045
|
if (!n.sortable) return;
|
|
5041
5046
|
if (D?.ctrlKey || D?.metaKey) {
|
|
5042
|
-
const g = i.value.findIndex((
|
|
5047
|
+
const g = i.value.findIndex((z) => z.field === p);
|
|
5043
5048
|
if (g >= 0) {
|
|
5044
|
-
const
|
|
5045
|
-
|
|
5049
|
+
const z = i.value[g];
|
|
5050
|
+
z.direction === "asc" ? z.direction = "desc" : z.direction === "desc" && i.value.splice(g, 1);
|
|
5046
5051
|
} else
|
|
5047
5052
|
i.value.unshift({
|
|
5048
5053
|
field: p,
|
|
5049
5054
|
direction: "asc"
|
|
5050
5055
|
});
|
|
5051
5056
|
} else {
|
|
5052
|
-
const g = i.value.find((
|
|
5057
|
+
const g = i.value.find((z) => z.field === p);
|
|
5053
5058
|
g ? g.direction === "asc" ? g.direction = "desc" : g.direction === "desc" && (i.value = []) : i.value = [{ field: p, direction: "asc" }];
|
|
5054
5059
|
}
|
|
5055
5060
|
const P = i.value.filter((g) => g.direction).map((g) => ({
|
|
@@ -5090,7 +5095,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5090
5095
|
const g = `${p.name}${P}`;
|
|
5091
5096
|
return D[g] ? D[g] : null;
|
|
5092
5097
|
}).find((P) => P) || (p.link ? b || "-" : b);
|
|
5093
|
-
},
|
|
5098
|
+
}, j = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px] max-w-[${p.width}px] min-w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px] max-w-[${p.width}px] min-w-[${p.width}px]` : "" : "", U = $(n.page), M = $(n.limit), H = $(n.total), W = $(1), G = $(10), me = $(0), Ne = q(() => n.api ? W.value : U.value), Be = q(() => n.api ? G.value : M.value), rt = q(() => n.api ? me.value : H.value), Q = q(() => {
|
|
5094
5099
|
const { theme: p } = n;
|
|
5095
5100
|
return p === "dark" ? {
|
|
5096
5101
|
container: "dark",
|
|
@@ -5131,7 +5136,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5131
5136
|
};
|
|
5132
5137
|
});
|
|
5133
5138
|
Te(() => n.page, (p) => {
|
|
5134
|
-
|
|
5139
|
+
U.value = p;
|
|
5135
5140
|
}), Te(() => n.limit, (p) => {
|
|
5136
5141
|
M.value = p;
|
|
5137
5142
|
}), Te(() => n.total, (p) => {
|
|
@@ -5159,8 +5164,8 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5159
5164
|
}
|
|
5160
5165
|
}
|
|
5161
5166
|
const je = (p) => {
|
|
5162
|
-
n.api ? W.value = p : (
|
|
5163
|
-
},
|
|
5167
|
+
n.api ? W.value = p : (U.value = p, s("update:page", p)), n.api && ke();
|
|
5168
|
+
}, fr = q(() => n.showPagination && rt.value > 0), it = q(() => ({
|
|
5164
5169
|
small: {
|
|
5165
5170
|
header: "px-3 py-2 text-xs",
|
|
5166
5171
|
cell: "px-3 py-2 text-xs"
|
|
@@ -5173,41 +5178,41 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5173
5178
|
header: "px-8 py-4 text-sm",
|
|
5174
5179
|
cell: "px-8 py-6 text-base"
|
|
5175
5180
|
}
|
|
5176
|
-
})[n.size]),
|
|
5177
|
-
p.detail.key === "locale" && (
|
|
5181
|
+
})[n.size]), pr = gn(), bt = $("uk"), jn = (p) => {
|
|
5182
|
+
p.detail.key === "locale" && (bt.value = p.detail.newValue);
|
|
5178
5183
|
};
|
|
5179
5184
|
Bt(() => {
|
|
5180
5185
|
window.removeEventListener("resize", jn);
|
|
5181
5186
|
}), Ge(() => {
|
|
5182
|
-
window.addEventListener("storage", jn),
|
|
5187
|
+
window.addEventListener("storage", jn), bt.value = localStorage.locale, n.api && (n.page && (W.value = n.page), n.limit && (G.value = n.limit), n.total && (me.value = n.total), ke());
|
|
5183
5188
|
}), Te(() => n.api, (p) => {
|
|
5184
5189
|
p && (W.value = n.page || 1, G.value = n.limit || 10, me.value = n.total || 0, ke());
|
|
5185
5190
|
});
|
|
5186
|
-
const Un = q(() => n.api ? a.value : n.columns), qt = $([]),
|
|
5187
|
-
|
|
5188
|
-
qt.value.push(p), D && p.slotName && (
|
|
5191
|
+
const Un = q(() => n.api ? a.value : n.columns), qt = $([]), xt = $({});
|
|
5192
|
+
kr("registerColumn", (p, D) => {
|
|
5193
|
+
qt.value.push(p), D && p.slotName && (xt.value[p.name] = D);
|
|
5189
5194
|
});
|
|
5190
5195
|
const Kt = q(() => {
|
|
5191
5196
|
const p = Un.value || [], D = [], b = c.default?.();
|
|
5192
5197
|
if (b) {
|
|
5193
5198
|
const P = b.filter((g) => g.type?.name === "Column" || g.type === "Column" || g.type && typeof g.type == "object" && g.type.name === "Column").map((g) => {
|
|
5194
|
-
const
|
|
5199
|
+
const z = g.props || g.componentProps || {}, ue = z.field || z.name || "", Ye = z.header || z.label || "", qn = g.children && g.children.body, Gt = {
|
|
5195
5200
|
name: ue,
|
|
5196
5201
|
// Use field as the name for data access
|
|
5197
5202
|
ua: Ye,
|
|
5198
5203
|
// Use header as the display name
|
|
5199
|
-
format:
|
|
5204
|
+
format: z.format || "text",
|
|
5200
5205
|
slotName: qn ? "body" : void 0,
|
|
5201
|
-
...
|
|
5206
|
+
...z
|
|
5202
5207
|
};
|
|
5203
|
-
return qn && Gt.name && (
|
|
5208
|
+
return qn && Gt.name && (xt.value[Gt.name] = g.children.body), Gt;
|
|
5204
5209
|
});
|
|
5205
5210
|
D.push(...P);
|
|
5206
5211
|
}
|
|
5207
5212
|
if (qt.value.length > 0 && D.push(...qt.value), D.length > 0) {
|
|
5208
|
-
const P = [], g = new Set(D.map((
|
|
5209
|
-
return p.forEach((
|
|
5210
|
-
g.has(
|
|
5213
|
+
const P = [], g = new Set(D.map((z) => z.name));
|
|
5214
|
+
return p.forEach((z) => {
|
|
5215
|
+
g.has(z.name) || P.push(z);
|
|
5211
5216
|
}), P.push(...D), console.log("Combined columns:", {
|
|
5212
5217
|
default: p.length,
|
|
5213
5218
|
custom: D.length,
|
|
@@ -5215,36 +5220,36 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5215
5220
|
}), P;
|
|
5216
5221
|
}
|
|
5217
5222
|
return p.length > 0 ? p : [];
|
|
5218
|
-
}),
|
|
5219
|
-
async function
|
|
5223
|
+
}), hr = (p = "text") => Wn[p.toLowerCase()] || Wn.text, Ue = $({});
|
|
5224
|
+
async function mr(p) {
|
|
5220
5225
|
const { data: D, api: b } = Kt.value.find((P) => P.name === p);
|
|
5221
5226
|
if (Ue.value[p]) return Ue.value[p];
|
|
5222
5227
|
if (D || b) {
|
|
5223
|
-
const P = b || `/api/suggest/${D}?json=1`,
|
|
5224
|
-
|
|
5228
|
+
const P = b || `/api/suggest/${D}?json=1`, z = await (await fetch(P)).json();
|
|
5229
|
+
z.data && Array.isArray(z.data) && (Ue.value[p] = z.data.map((ue) => ({
|
|
5225
5230
|
value: ue.id ?? ue.value,
|
|
5226
5231
|
label: ue.text ?? ue.label
|
|
5227
5232
|
})));
|
|
5228
5233
|
}
|
|
5229
5234
|
return Ue.value[p];
|
|
5230
5235
|
}
|
|
5231
|
-
function
|
|
5236
|
+
function gr(p, D, b, P) {
|
|
5232
5237
|
const g = P;
|
|
5233
5238
|
g !== -1 && (n.rows[g] = { ...n.rows[g], [D]: b }), s("cell-update", p, D, b);
|
|
5234
5239
|
}
|
|
5235
5240
|
function zn(p) {
|
|
5236
|
-
const b = `info:${
|
|
5241
|
+
const b = `info:${bt.value}`;
|
|
5237
5242
|
return p[b] ? p[b] : p.info ? p.info : null;
|
|
5238
5243
|
}
|
|
5239
5244
|
const Wt = $(null), Hn = $({ top: "0px", left: "0px" });
|
|
5240
|
-
function
|
|
5245
|
+
function vr(p, D) {
|
|
5241
5246
|
const b = p.currentTarget.getBoundingClientRect();
|
|
5242
5247
|
Wt.value = D, Hn.value = {
|
|
5243
5248
|
top: `${b.bottom + 4}px`,
|
|
5244
5249
|
left: `${Math.min(b.left, window.innerWidth - 230)}px`
|
|
5245
5250
|
};
|
|
5246
5251
|
}
|
|
5247
|
-
function
|
|
5252
|
+
function yr() {
|
|
5248
5253
|
Wt.value = null;
|
|
5249
5254
|
}
|
|
5250
5255
|
return Te(() => n.form, async (p) => {
|
|
@@ -5254,8 +5259,8 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5254
5259
|
}), (p, D) => (v(), k("div", {
|
|
5255
5260
|
class: L(["w-full", Q.value.container])
|
|
5256
5261
|
}, [
|
|
5257
|
-
l.value || n.loading ? (v(), k("div",
|
|
5258
|
-
d("div",
|
|
5262
|
+
l.value || n.loading ? (v(), k("div", el, [
|
|
5263
|
+
d("div", tl, [
|
|
5259
5264
|
D[0] || (D[0] = d("div", { class: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600" }, null, -1)),
|
|
5260
5265
|
d("span", {
|
|
5261
5266
|
class: L(Q.value.loading)
|
|
@@ -5264,13 +5269,13 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5264
5269
|
])) : u.value ? (v(), k("div", {
|
|
5265
5270
|
key: 1,
|
|
5266
5271
|
class: L(["text-center py-8", Q.value.error])
|
|
5267
|
-
}, A(u.value), 3)) : n.loading ? Y("", !0) : (v(), k("div",
|
|
5272
|
+
}, A(u.value), 3)) : n.loading ? Y("", !0) : (v(), k("div", nl, [
|
|
5268
5273
|
d("div", {
|
|
5269
5274
|
class: L(p.classWrapper ? p.classWrapper : "relative w-full overflow-auto")
|
|
5270
5275
|
}, [
|
|
5271
5276
|
d("table", {
|
|
5272
5277
|
class: L(p.classTable),
|
|
5273
|
-
style:
|
|
5278
|
+
style: ct(p.tableStyle)
|
|
5274
5279
|
}, [
|
|
5275
5280
|
d("thead", {
|
|
5276
5281
|
class: L(p.classThead || Q.value.thead)
|
|
@@ -5286,14 +5291,14 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5286
5291
|
indeterminate: R.value,
|
|
5287
5292
|
onChange: w,
|
|
5288
5293
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5289
|
-
}, null, 42,
|
|
5294
|
+
}, null, 42, sl)
|
|
5290
5295
|
], 2)) : Y("", !0),
|
|
5291
5296
|
(v(!0), k(se, null, Se(Kt.value.filter((b) => !b.hidden), (b) => (v(), k("th", {
|
|
5292
5297
|
key: b.name,
|
|
5293
5298
|
class: L([
|
|
5294
5299
|
b.align ? `text-${b.align}` : "",
|
|
5295
5300
|
I(b) ? ["cursor-pointer", Q.value.thHover] : "",
|
|
5296
|
-
|
|
5301
|
+
j(b)
|
|
5297
5302
|
].concat(
|
|
5298
5303
|
n.classTh || [
|
|
5299
5304
|
"text-left font-medium uppercase tracking-wider",
|
|
@@ -5303,10 +5308,10 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5303
5308
|
)),
|
|
5304
5309
|
onClick: (P) => I(b) ? E(b.name, P) : void 0
|
|
5305
5310
|
}, [
|
|
5306
|
-
d("div",
|
|
5307
|
-
d("div",
|
|
5308
|
-
d("span", null, A(b[
|
|
5309
|
-
zn(b) ? (v(), k("div",
|
|
5311
|
+
d("div", il, [
|
|
5312
|
+
d("div", ol, [
|
|
5313
|
+
d("span", null, A(b[bt.value] || b.header || b.ua || b.name), 1),
|
|
5314
|
+
zn(b) ? (v(), k("div", al, [
|
|
5310
5315
|
(v(), k("svg", {
|
|
5311
5316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5312
5317
|
width: "14",
|
|
@@ -5318,8 +5323,8 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5318
5323
|
"stroke-linecap": "round",
|
|
5319
5324
|
"stroke-linejoin": "round",
|
|
5320
5325
|
class: "text-gray-400 cursor-help",
|
|
5321
|
-
onMouseenter: (P) =>
|
|
5322
|
-
onMouseleave:
|
|
5326
|
+
onMouseenter: (P) => vr(P, b.name),
|
|
5327
|
+
onMouseleave: yr
|
|
5323
5328
|
}, D[1] || (D[1] = [
|
|
5324
5329
|
d("circle", {
|
|
5325
5330
|
cx: "12",
|
|
@@ -5328,17 +5333,17 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5328
5333
|
}, null, -1),
|
|
5329
5334
|
d("path", { d: "M12 16v-4" }, null, -1),
|
|
5330
5335
|
d("path", { d: "M12 8h.01" }, null, -1)
|
|
5331
|
-
]), 40,
|
|
5336
|
+
]), 40, ll)),
|
|
5332
5337
|
(v(), Ce(jt, { to: "body" }, [
|
|
5333
5338
|
Wt.value === b.name ? (v(), k("div", {
|
|
5334
5339
|
key: 0,
|
|
5335
|
-
style:
|
|
5340
|
+
style: ct(Hn.value),
|
|
5336
5341
|
class: "fixed z-[9999] w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none transition-opacity duration-200"
|
|
5337
5342
|
}, A(zn(b)), 5)) : Y("", !0)
|
|
5338
5343
|
]))
|
|
5339
5344
|
])) : Y("", !0)
|
|
5340
5345
|
]),
|
|
5341
|
-
I(b) ? (v(), k("span",
|
|
5346
|
+
I(b) ? (v(), k("span", cl, [
|
|
5342
5347
|
Ae(p.$slots, "sort", {
|
|
5343
5348
|
asc: C(b.name)
|
|
5344
5349
|
}, () => [
|
|
@@ -5346,7 +5351,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5346
5351
|
])
|
|
5347
5352
|
])) : Y("", !0)
|
|
5348
5353
|
])
|
|
5349
|
-
], 10,
|
|
5354
|
+
], 10, rl))), 128)),
|
|
5350
5355
|
f.value ? (v(), k("th", {
|
|
5351
5356
|
key: 1,
|
|
5352
5357
|
class: L(["w-[100px]", n.classTh || [
|
|
@@ -5354,7 +5359,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5354
5359
|
Q.value.th,
|
|
5355
5360
|
it.value.header
|
|
5356
5361
|
]])
|
|
5357
|
-
}, A(Z(
|
|
5362
|
+
}, A(Z(pr)("table.actions")), 3)) : Y("", !0)
|
|
5358
5363
|
])
|
|
5359
5364
|
], 2),
|
|
5360
5365
|
x.value.length ? (v(), k("tbody", {
|
|
@@ -5378,19 +5383,19 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5378
5383
|
checked: y(b),
|
|
5379
5384
|
onChange: (g) => O(b),
|
|
5380
5385
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5381
|
-
}, null, 42,
|
|
5386
|
+
}, null, 42, dl)
|
|
5382
5387
|
], 2)) : Y("", !0),
|
|
5383
5388
|
(v(!0), k(se, null, Se(Kt.value.filter((g) => !g.hidden), (g) => (v(), k("td", {
|
|
5384
5389
|
key: g.name,
|
|
5385
|
-
class: L(n.classTd ? [n.classTd,
|
|
5390
|
+
class: L(n.classTd ? [n.classTd, j(g)] : [
|
|
5386
5391
|
"whitespace-nowrap",
|
|
5387
5392
|
Q.value.td,
|
|
5388
5393
|
it.value.cell,
|
|
5389
5394
|
g.align ? `text-${g.align}` : "",
|
|
5390
|
-
|
|
5395
|
+
j(g)
|
|
5391
5396
|
])
|
|
5392
5397
|
}, [
|
|
5393
|
-
(v(), Ce(
|
|
5398
|
+
(v(), Ce(Qa, {
|
|
5394
5399
|
"class-content": n.classContent,
|
|
5395
5400
|
key: b,
|
|
5396
5401
|
editable: g.edit,
|
|
@@ -5400,10 +5405,10 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5400
5405
|
format: g.format,
|
|
5401
5406
|
options: Ue.value[g.name] || [],
|
|
5402
5407
|
color: p.color,
|
|
5403
|
-
onUpdate: (
|
|
5404
|
-
"fetch-options":
|
|
5408
|
+
onUpdate: (z, ue, Ye) => gr(z, ue, Ye, P),
|
|
5409
|
+
"fetch-options": mr
|
|
5405
5410
|
}, {
|
|
5406
|
-
default:
|
|
5411
|
+
default: Er(() => [
|
|
5407
5412
|
g.action && f.value ? Ae(p.$slots, "action", {
|
|
5408
5413
|
key: 0,
|
|
5409
5414
|
row: b
|
|
@@ -5419,7 +5424,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5419
5424
|
key: 3,
|
|
5420
5425
|
row: b,
|
|
5421
5426
|
value: N(g, b)
|
|
5422
|
-
}) : g.slotName &&
|
|
5427
|
+
}) : g.slotName && xt.value[g.name] ? (v(), Ce(kt(xt.value[g.name]), {
|
|
5423
5428
|
key: 4,
|
|
5424
5429
|
data: b,
|
|
5425
5430
|
value: N(g, b),
|
|
@@ -5428,9 +5433,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5428
5433
|
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(), k("a", {
|
|
5429
5434
|
key: 5,
|
|
5430
5435
|
class: L(p.classLink || "hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),
|
|
5431
|
-
onClick: (
|
|
5436
|
+
onClick: (z) => h(g.link.replace("{id}", b.id))
|
|
5432
5437
|
}, [
|
|
5433
|
-
g.slot && typeof g.slot == "string" ? (v(), Ce(
|
|
5438
|
+
g.slot && typeof g.slot == "string" ? (v(), Ce(kt(Z(ys)(g.slot)), {
|
|
5434
5439
|
key: 0,
|
|
5435
5440
|
row: b,
|
|
5436
5441
|
value: b,
|
|
@@ -5439,13 +5444,13 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5439
5444
|
}, null, 8, ["row", "value", "data", "column"])) : (v(), k(se, { key: 1 }, [
|
|
5440
5445
|
be(A(N(g, b)), 1)
|
|
5441
5446
|
], 64))
|
|
5442
|
-
], 10,
|
|
5447
|
+
], 10, fl)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), Ce(kt(Z(ys)(g.slot)), {
|
|
5443
5448
|
key: 6,
|
|
5444
5449
|
row: b,
|
|
5445
5450
|
value: N(g, b),
|
|
5446
5451
|
data: b,
|
|
5447
5452
|
column: g
|
|
5448
|
-
}, null, 8, ["row", "value", "data", "column"])) : (v(), Ce(
|
|
5453
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), Ce(kt(hr(g.format)), {
|
|
5449
5454
|
key: 7,
|
|
5450
5455
|
value: N(g, b),
|
|
5451
5456
|
row: b,
|
|
@@ -5456,10 +5461,10 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5456
5461
|
_: 2
|
|
5457
5462
|
}, 1032, ["class-content", "editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5458
5463
|
], 2))), 128)),
|
|
5459
|
-
f.value ? (v(), k("td",
|
|
5464
|
+
f.value ? (v(), k("td", pl, [
|
|
5460
5465
|
Ae(p.$slots, "action", { row: b })
|
|
5461
5466
|
])) : Y("", !0)
|
|
5462
|
-
], 10,
|
|
5467
|
+
], 10, ul),
|
|
5463
5468
|
d("tr", null, [
|
|
5464
5469
|
Ae(p.$slots, "under-row", { row: b })
|
|
5465
5470
|
])
|
|
@@ -5473,14 +5478,14 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5473
5478
|
d("td", {
|
|
5474
5479
|
colspan: Un.value.length
|
|
5475
5480
|
}, [
|
|
5476
|
-
|
|
5477
|
-
], 8,
|
|
5481
|
+
wr($a)
|
|
5482
|
+
], 8, hl)
|
|
5478
5483
|
])
|
|
5479
5484
|
], 2)) : Y("", !0)
|
|
5480
5485
|
], 6)
|
|
5481
5486
|
], 2)
|
|
5482
5487
|
])),
|
|
5483
|
-
|
|
5488
|
+
fr.value && !l.value && !n.loading && !u.value ? (v(), Ce(_s, {
|
|
5484
5489
|
key: 3,
|
|
5485
5490
|
page: Ne.value,
|
|
5486
5491
|
limit: Be.value,
|
|
@@ -5491,7 +5496,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5491
5496
|
}, null, 8, ["page", "limit", "total", "theme", "size"])) : Y("", !0)
|
|
5492
5497
|
], 2));
|
|
5493
5498
|
}
|
|
5494
|
-
}),
|
|
5499
|
+
}), ml = { style: { display: "none" } }, gl = /* @__PURE__ */ ie({
|
|
5495
5500
|
name: "Column",
|
|
5496
5501
|
__name: "Column",
|
|
5497
5502
|
props: {
|
|
@@ -5512,7 +5517,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5512
5517
|
suffix: {}
|
|
5513
5518
|
},
|
|
5514
5519
|
setup(e) {
|
|
5515
|
-
const t = e, n =
|
|
5520
|
+
const t = e, n = ws(), s = Sr("registerColumn");
|
|
5516
5521
|
return Ge(() => {
|
|
5517
5522
|
if (s) {
|
|
5518
5523
|
const {
|
|
@@ -5543,11 +5548,11 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5543
5548
|
const w = n.body;
|
|
5544
5549
|
s(R, w);
|
|
5545
5550
|
}
|
|
5546
|
-
}), (r, i) => (v(), k("div",
|
|
5551
|
+
}), (r, i) => (v(), k("div", ml, [
|
|
5547
5552
|
Ae(r.$slots, "body", { data: {} })
|
|
5548
5553
|
]));
|
|
5549
5554
|
}
|
|
5550
|
-
}),
|
|
5555
|
+
}), vl = { class: "mt-4" }, yl = { class: "text-sm text-gray-600 dark:text-gray-300" }, bl = /* @__PURE__ */ ie({
|
|
5551
5556
|
__name: "SelectionInfo",
|
|
5552
5557
|
props: {
|
|
5553
5558
|
selectedRows: {},
|
|
@@ -5555,11 +5560,11 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5555
5560
|
},
|
|
5556
5561
|
setup(e) {
|
|
5557
5562
|
const t = e, n = q(() => t.selectedRows.length);
|
|
5558
|
-
return (s, r) => (v(), k("div",
|
|
5559
|
-
d("div",
|
|
5563
|
+
return (s, r) => (v(), k("div", vl, [
|
|
5564
|
+
d("div", yl, " Обрано: " + A(n.value) + " з " + A(s.totalCount) + " записів ", 1)
|
|
5560
5565
|
]));
|
|
5561
5566
|
}
|
|
5562
|
-
}),
|
|
5567
|
+
}), xl = { class: "mt-4" }, kl = { class: "border-b border-gray-200 dark:border-gray-700" }, El = { class: "-mb-px flex space-x-8" }, wl = ["onClick"], Sl = { class: "mt-4" }, _l = { class: "bg-gray-900 rounded-lg overflow-hidden" }, Nl = { class: "flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700" }, Cl = { class: "text-sm text-gray-300" }, Tl = ["onClick"], Ol = { class: "p-4 text-sm text-gray-100 overflow-x-auto" }, Il = /* @__PURE__ */ ie({
|
|
5563
5568
|
__name: "CodeTabs",
|
|
5564
5569
|
props: {
|
|
5565
5570
|
tabs: {},
|
|
@@ -5573,9 +5578,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5573
5578
|
console.error("Помилка копіювання:", i);
|
|
5574
5579
|
}
|
|
5575
5580
|
};
|
|
5576
|
-
return (r, i) => (v(), k("div",
|
|
5577
|
-
d("div",
|
|
5578
|
-
d("nav",
|
|
5581
|
+
return (r, i) => (v(), k("div", xl, [
|
|
5582
|
+
d("div", kl, [
|
|
5583
|
+
d("nav", El, [
|
|
5579
5584
|
(v(!0), k(se, null, Se(r.tabs, (o) => (v(), k("button", {
|
|
5580
5585
|
key: o.id,
|
|
5581
5586
|
onClick: (a) => n.value = o.id,
|
|
@@ -5583,16 +5588,16 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5583
5588
|
"py-2 px-1 border-b-2 font-medium text-sm transition-colors",
|
|
5584
5589
|
n.value === o.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
|
|
5585
5590
|
])
|
|
5586
|
-
}, A(o.label), 11,
|
|
5591
|
+
}, A(o.label), 11, wl))), 128))
|
|
5587
5592
|
])
|
|
5588
5593
|
]),
|
|
5589
|
-
d("div",
|
|
5594
|
+
d("div", Sl, [
|
|
5590
5595
|
(v(!0), k(se, null, Se(r.tabs, (o) => Ee((v(), k("div", {
|
|
5591
5596
|
key: o.id
|
|
5592
5597
|
}, [
|
|
5593
|
-
d("div",
|
|
5594
|
-
d("div",
|
|
5595
|
-
d("span",
|
|
5598
|
+
d("div", _l, [
|
|
5599
|
+
d("div", Nl, [
|
|
5600
|
+
d("span", Cl, A(o.label), 1),
|
|
5596
5601
|
d("button", {
|
|
5597
5602
|
onClick: (a) => s(o.content),
|
|
5598
5603
|
class: "text-gray-400 hover:text-white transition-colors",
|
|
@@ -5611,31 +5616,31 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5611
5616
|
d: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
|
|
5612
5617
|
})
|
|
5613
5618
|
], -1)
|
|
5614
|
-
]), 8,
|
|
5619
|
+
]), 8, Tl)
|
|
5615
5620
|
]),
|
|
5616
|
-
d("pre",
|
|
5621
|
+
d("pre", Ol, [
|
|
5617
5622
|
d("code", null, A(o.content), 1)
|
|
5618
5623
|
])
|
|
5619
5624
|
])
|
|
5620
5625
|
])), [
|
|
5621
|
-
[
|
|
5626
|
+
[Ss, n.value === o.id]
|
|
5622
5627
|
])), 128))
|
|
5623
5628
|
])
|
|
5624
5629
|
]));
|
|
5625
5630
|
}
|
|
5626
|
-
}),
|
|
5631
|
+
}), Dl = {
|
|
5627
5632
|
key: 0,
|
|
5628
5633
|
class: "vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"
|
|
5629
|
-
},
|
|
5634
|
+
}, Al = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl md:w-5/12 w-9/12" }, $l = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, Vl = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Ml = { class: "sr-only" }, Rl = { class: "ui-dialog__content p-4 overflow-y-auto flex-1" }, Ll = { class: "p-4" }, Pl = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Fl = { class: "text-sm font-[600] text-gray-500" }, Bl = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, jl = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Ul = {
|
|
5630
5635
|
key: 0,
|
|
5631
5636
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5632
|
-
},
|
|
5637
|
+
}, zl = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Hl = {
|
|
5633
5638
|
key: 0,
|
|
5634
5639
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5635
|
-
},
|
|
5640
|
+
}, ql = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Kl = {
|
|
5636
5641
|
key: 0,
|
|
5637
5642
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5638
|
-
},
|
|
5643
|
+
}, Wl = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, Gl = { class: "flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0" }, Jl = { class: "flex items-center gap-[4px]" }, Yl = ["id", "value"], Xl = ["for"], Zl = {
|
|
5639
5644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5640
5645
|
viewBox: "0 0 24 24",
|
|
5641
5646
|
fill: "none",
|
|
@@ -5646,23 +5651,23 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5646
5651
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check",
|
|
5647
5652
|
height: "12",
|
|
5648
5653
|
width: "12"
|
|
5649
|
-
},
|
|
5654
|
+
}, Ql = { class: "text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, ec = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, tc = { class: "text-sm font-[600] text-gray-500" }, nc = { class: "mt-2 space-y-2" }, sc = { class: "flex items-center" }, rc = {
|
|
5650
5655
|
for: "json",
|
|
5651
5656
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
5652
|
-
},
|
|
5657
|
+
}, ic = { class: "flex items-center" }, oc = {
|
|
5653
5658
|
for: "csv",
|
|
5654
5659
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
5655
|
-
},
|
|
5660
|
+
}, ac = { class: "flex items-center" }, lc = {
|
|
5656
5661
|
for: "xlsx",
|
|
5657
5662
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
5658
|
-
},
|
|
5663
|
+
}, cc = { class: "flex justify-end gap-x-2" }, uc = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" }, dc = ["disabled"], fc = /* @__PURE__ */ ie({
|
|
5659
5664
|
__name: "Export",
|
|
5660
5665
|
props: {
|
|
5661
5666
|
table: {},
|
|
5662
5667
|
columns: {}
|
|
5663
5668
|
},
|
|
5664
5669
|
setup(e) {
|
|
5665
|
-
const t =
|
|
5670
|
+
const t = xs(), n = gn(), s = e, r = $(!1), i = $([]), o = $("json"), a = $(!1), l = $("all"), u = q(() => s.columns ?? []), m = ks();
|
|
5666
5671
|
function c() {
|
|
5667
5672
|
i.value = u.value.map((w) => w.name), o.value = "json", r.value = !0;
|
|
5668
5673
|
}
|
|
@@ -5718,16 +5723,16 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5718
5723
|
be(" " + A(Z(n)("table.export")), 1)
|
|
5719
5724
|
], 2),
|
|
5720
5725
|
(v(), Ce(jt, { to: "body" }, [
|
|
5721
|
-
r.value ? (v(), k("div",
|
|
5722
|
-
d("div",
|
|
5723
|
-
d("div",
|
|
5724
|
-
d("h3",
|
|
5726
|
+
r.value ? (v(), k("div", Dl, [
|
|
5727
|
+
d("div", Al, [
|
|
5728
|
+
d("div", $l, [
|
|
5729
|
+
d("h3", Vl, A(Z(n)("table.exportTitle")), 1),
|
|
5725
5730
|
d("button", {
|
|
5726
5731
|
type: "button",
|
|
5727
5732
|
onClick: f,
|
|
5728
5733
|
class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"
|
|
5729
5734
|
}, [
|
|
5730
|
-
d("span",
|
|
5735
|
+
d("span", Ml, A(Z(n)("table.close")), 1),
|
|
5731
5736
|
E[5] || (E[5] = d("svg", {
|
|
5732
5737
|
class: "flex-shrink-0 w-4 h-4",
|
|
5733
5738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5745,17 +5750,17 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5745
5750
|
], -1))
|
|
5746
5751
|
])
|
|
5747
5752
|
]),
|
|
5748
|
-
d("div",
|
|
5749
|
-
d("div",
|
|
5750
|
-
d("div",
|
|
5751
|
-
d("h2",
|
|
5752
|
-
d("div",
|
|
5753
|
+
d("div", Rl, [
|
|
5754
|
+
d("div", Ll, [
|
|
5755
|
+
d("div", Pl, [
|
|
5756
|
+
d("h2", Fl, A(Z(n)("table.chooseColumns")), 1),
|
|
5757
|
+
d("div", Bl, [
|
|
5753
5758
|
d("button", {
|
|
5754
5759
|
onClick: h,
|
|
5755
5760
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
|
5756
5761
|
}, [
|
|
5757
|
-
d("span",
|
|
5758
|
-
l.value === "all" ? (v(), k("span",
|
|
5762
|
+
d("span", jl, [
|
|
5763
|
+
l.value === "all" ? (v(), k("span", Ul)) : Y("", !0)
|
|
5759
5764
|
]),
|
|
5760
5765
|
be(" " + A(Z(n)("table.selectAll")), 1)
|
|
5761
5766
|
]),
|
|
@@ -5763,8 +5768,8 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5763
5768
|
onClick: x,
|
|
5764
5769
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
|
5765
5770
|
}, [
|
|
5766
|
-
d("span",
|
|
5767
|
-
l.value === "active" ? (v(), k("span",
|
|
5771
|
+
d("span", zl, [
|
|
5772
|
+
l.value === "active" ? (v(), k("span", Hl)) : Y("", !0)
|
|
5768
5773
|
]),
|
|
5769
5774
|
be(" " + A(Z(n)("table.selectCurrent")), 1)
|
|
5770
5775
|
]),
|
|
@@ -5772,28 +5777,28 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5772
5777
|
onClick: y,
|
|
5773
5778
|
class: "inline-flex items-center gap-[8px] justify-center px-3 py-2 text-sm font-medium text-gray-800 align-middle bg-white border-gray-200 text-nowrap text-start"
|
|
5774
5779
|
}, [
|
|
5775
|
-
d("span",
|
|
5776
|
-
l.value === "none" ? (v(), k("span",
|
|
5780
|
+
d("span", ql, [
|
|
5781
|
+
l.value === "none" ? (v(), k("span", Kl)) : Y("", !0)
|
|
5777
5782
|
]),
|
|
5778
5783
|
be(" " + A(Z(n)("table.none")), 1)
|
|
5779
5784
|
])
|
|
5780
5785
|
]),
|
|
5781
|
-
d("div",
|
|
5786
|
+
d("div", Wl, [
|
|
5782
5787
|
(v(!0), k(se, null, Se(u.value, (C) => (v(), k("div", {
|
|
5783
5788
|
class: "flex items-center",
|
|
5784
5789
|
style: { width: "calc(50% - 5px)" },
|
|
5785
5790
|
key: C.name
|
|
5786
5791
|
}, [
|
|
5787
|
-
d("div",
|
|
5788
|
-
d("div",
|
|
5792
|
+
d("div", Gl, [
|
|
5793
|
+
d("div", Jl, [
|
|
5789
5794
|
Ee(d("input", {
|
|
5790
5795
|
type: "checkbox",
|
|
5791
5796
|
class: "shrink-0 border border-solid hidden border-gray-200 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer",
|
|
5792
5797
|
id: "radio-" + C.name,
|
|
5793
5798
|
value: C.name,
|
|
5794
5799
|
"onUpdate:modelValue": E[0] || (E[0] = (T) => i.value = T)
|
|
5795
|
-
}, null, 8,
|
|
5796
|
-
[
|
|
5800
|
+
}, null, 8, Yl), [
|
|
5801
|
+
[_r, i.value]
|
|
5797
5802
|
]),
|
|
5798
5803
|
d("label", {
|
|
5799
5804
|
for: "radio-" + C.name,
|
|
@@ -5801,9 +5806,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5801
5806
|
}, [
|
|
5802
5807
|
d("div", {
|
|
5803
5808
|
class: "h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",
|
|
5804
|
-
style:
|
|
5809
|
+
style: ct(i.value.includes(C.name) ? "background-color: rgb(37,99,235); border-color: transparent;" : "")
|
|
5805
5810
|
}, [
|
|
5806
|
-
Ee((v(), k("svg",
|
|
5811
|
+
Ee((v(), k("svg", Zl, E[6] || (E[6] = [
|
|
5807
5812
|
d("path", {
|
|
5808
5813
|
stroke: "none",
|
|
5809
5814
|
d: "M0 0h24v24H0z",
|
|
@@ -5811,20 +5816,20 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5811
5816
|
}, null, -1),
|
|
5812
5817
|
d("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
5813
5818
|
]), 512)), [
|
|
5814
|
-
[
|
|
5819
|
+
[Ss, i.value.includes(C.name)]
|
|
5815
5820
|
])
|
|
5816
5821
|
], 4),
|
|
5817
|
-
d("span",
|
|
5818
|
-
], 8,
|
|
5822
|
+
d("span", Ql, A(C[_.value] || C.header || C.ua || C.name), 1)
|
|
5823
|
+
], 8, Xl)
|
|
5819
5824
|
])
|
|
5820
5825
|
])
|
|
5821
5826
|
]))), 128))
|
|
5822
5827
|
])
|
|
5823
5828
|
]),
|
|
5824
|
-
d("div",
|
|
5825
|
-
d("h2",
|
|
5826
|
-
d("div",
|
|
5827
|
-
d("div",
|
|
5829
|
+
d("div", ec, [
|
|
5830
|
+
d("h2", tc, A(Z(n)("table.chooseFormat")), 1),
|
|
5831
|
+
d("div", nc, [
|
|
5832
|
+
d("div", sc, [
|
|
5828
5833
|
Ee(d("input", {
|
|
5829
5834
|
type: "radio",
|
|
5830
5835
|
name: "hs-pro-duecmfm",
|
|
@@ -5835,9 +5840,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5835
5840
|
}, null, 512), [
|
|
5836
5841
|
[Yt, o.value]
|
|
5837
5842
|
]),
|
|
5838
|
-
d("label",
|
|
5843
|
+
d("label", rc, A(Z(n)("table.format.json")), 1)
|
|
5839
5844
|
]),
|
|
5840
|
-
d("div",
|
|
5845
|
+
d("div", ic, [
|
|
5841
5846
|
Ee(d("input", {
|
|
5842
5847
|
type: "radio",
|
|
5843
5848
|
name: "hs-pro-duecmfm",
|
|
@@ -5848,9 +5853,9 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5848
5853
|
}, null, 512), [
|
|
5849
5854
|
[Yt, o.value]
|
|
5850
5855
|
]),
|
|
5851
|
-
d("label",
|
|
5856
|
+
d("label", oc, A(Z(n)("table.format.csv")), 1)
|
|
5852
5857
|
]),
|
|
5853
|
-
d("div",
|
|
5858
|
+
d("div", ac, [
|
|
5854
5859
|
Ee(d("input", {
|
|
5855
5860
|
type: "radio",
|
|
5856
5861
|
name: "hs-pro-duecmfm",
|
|
@@ -5861,14 +5866,14 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5861
5866
|
}, null, 512), [
|
|
5862
5867
|
[Yt, o.value]
|
|
5863
5868
|
]),
|
|
5864
|
-
d("label",
|
|
5869
|
+
d("label", lc, A(Z(n)("table.format.xlsx")), 1)
|
|
5865
5870
|
])
|
|
5866
5871
|
])
|
|
5867
5872
|
])
|
|
5868
5873
|
])
|
|
5869
5874
|
]),
|
|
5870
|
-
d("div",
|
|
5871
|
-
d("div",
|
|
5875
|
+
d("div", cc, [
|
|
5876
|
+
d("div", uc, [
|
|
5872
5877
|
d("button", {
|
|
5873
5878
|
type: "button",
|
|
5874
5879
|
onClick: f,
|
|
@@ -5879,7 +5884,7 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5879
5884
|
onClick: O,
|
|
5880
5885
|
disabled: i.value.length === 0 || a.value,
|
|
5881
5886
|
class: "inline-flex items-center justify-center px-3 py-2 text-sm font-medium text-white align-middle bg-blue-700 rounded-lg shadow-sm text-nowrap gap-x-2 text-start hover:bg-blue-800 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"
|
|
5882
|
-
}, A(Z(n)("table.download")), 9,
|
|
5887
|
+
}, A(Z(n)("table.download")), 9, dc)
|
|
5883
5888
|
])
|
|
5884
5889
|
])
|
|
5885
5890
|
])
|
|
@@ -5888,25 +5893,25 @@ const Ta = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5888
5893
|
], 64));
|
|
5889
5894
|
}
|
|
5890
5895
|
});
|
|
5891
|
-
|
|
5892
|
-
t.component("DataTable",
|
|
5896
|
+
bs.install = function(t) {
|
|
5897
|
+
t.component("DataTable", bs), t.component("Column", gl), t.component("Pagination", _s), t.component("SelectionInfo", bl), t.component("CodeTabs", Il), t.component("ColumnsSettings", Mr), t.component("Export", fc);
|
|
5893
5898
|
};
|
|
5894
5899
|
export {
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5900
|
+
zr as ArrayFormat,
|
|
5901
|
+
jr as BadgeFormat,
|
|
5902
|
+
Kr as BooleanFormat,
|
|
5903
|
+
Il as CodeTabs,
|
|
5904
|
+
gl as Column,
|
|
5905
|
+
Mr as ColumnsSettings,
|
|
5906
|
+
bs as DataTable,
|
|
5907
|
+
Lr as DateFormat,
|
|
5908
|
+
fc as Export,
|
|
5909
|
+
Jr as GeomFormat,
|
|
5910
|
+
Rr as NumberFormat,
|
|
5911
|
+
_s as Pagination,
|
|
5912
|
+
Hr as SelectFormat,
|
|
5913
|
+
bl as SelectionInfo,
|
|
5914
|
+
Pr as TextFormat,
|
|
5915
|
+
bs as default,
|
|
5911
5916
|
Wn as formatComponents
|
|
5912
5917
|
};
|