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