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