@opengis/table 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DataTable.vue.d.ts +1 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/EditableCell.vue.d.ts +1 -0
- package/dist/components/EditableCell.vue.d.ts.map +1 -1
- package/dist/index.mjs +996 -961
- package/dist/index.umd.js +12 -12
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +57 -57
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { getCurrentInstance as
|
|
3
|
-
const
|
|
1
|
+
import * as mr from "vue";
|
|
2
|
+
import { getCurrentInstance as gn, defineComponent as ae, useAttrs as vn, ref as M, computed as q, onUnmounted as us, onMounted as Ge, watch as De, onBeforeUnmount as yn, createElementBlock as k, openBlock as v, Fragment as ne, createElementVNode as d, createBlock as Ve, normalizeClass as L, unref as X, createStaticVNode as ds, Teleport as bn, createCommentVNode as Z, normalizeStyle as Ft, toDisplayString as D, withDirectives as Ee, vModelText as _t, withModifiers as ot, renderList as Se, createTextVNode as be, nextTick as xn, renderSlot as Ie, withKeys as Kt, vModelSelect as gr, useSlots as kn, provide as vr, withCtx as yr, resolveDynamicComponent as xt, createVNode as br, inject as xr, vShow as En, vModelCheckbox as kr, vModelRadio as Wt } from "vue";
|
|
3
|
+
const js = {
|
|
4
4
|
en: {
|
|
5
5
|
choose: "Оберіть колонки для відображення",
|
|
6
6
|
columns: "Колонки",
|
|
@@ -44,20 +44,20 @@ const Bs = {
|
|
|
44
44
|
};
|
|
45
45
|
function Er(e) {
|
|
46
46
|
const t = e.split(".")[1];
|
|
47
|
-
return (
|
|
47
|
+
return (js[localStorage.language || navigator.language] || js.uk)[t];
|
|
48
48
|
}
|
|
49
49
|
function fs() {
|
|
50
|
-
const e =
|
|
50
|
+
const e = gn();
|
|
51
51
|
return e.appContext.config.globalProperties.$i18n ? e.appContext.config.globalProperties.$t : Er;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const wr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-2 text-sm font-medium text-gray-800" }, Sr = { class: "relative p-1 border-gray-200 border-y dark:border-neutral-800" }, _r = ["placeholder"], Nr = { class: "p-1 pt-3 max-h-80 overflow-y-auto" }, Cr = { class: "block px-3 mb-2 text-xs text-gray-500 dark:text-neutral-500" }, Tr = ["onClick"], Or = { 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" }, Ir = ["value"], Dr = /* @__PURE__ */ ae({
|
|
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 s = fs(), n = e, r = t, i =
|
|
60
|
+
const s = fs(), n = e, r = t, i = vn(), o = M(!1), a = M(""), l = M(n.columns), c = M(null), m = M(null), u = M(null), f = M({ top: 0, left: 0 }), h = q(() => a.value ? l.value.filter((w) => w.ua.toLowerCase().includes(a.value.toLowerCase())) : l.value), x = M("uk"), y = (w) => {
|
|
61
61
|
w.detail.key === "locale" && (x.value = w.detail.newValue);
|
|
62
62
|
};
|
|
63
63
|
us(() => {
|
|
@@ -69,11 +69,11 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
69
69
|
}, { deep: !0 }), De(() => n.columns, (w) => {
|
|
70
70
|
JSON.stringify(w) !== JSON.stringify(l.value) && (l.value = [...w]);
|
|
71
71
|
}, { deep: !0 });
|
|
72
|
-
function
|
|
72
|
+
function O(w) {
|
|
73
73
|
Object.assign(w, { hidden: !w.hidden });
|
|
74
74
|
}
|
|
75
75
|
function _() {
|
|
76
|
-
o.value = !o.value,
|
|
76
|
+
o.value = !o.value, xn(() => {
|
|
77
77
|
if (o.value && (u.value?.focus(), c.value && m.value)) {
|
|
78
78
|
const w = c.value.getBoundingClientRect();
|
|
79
79
|
f.value = {
|
|
@@ -88,60 +88,60 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
88
88
|
}
|
|
89
89
|
return Ge(() => {
|
|
90
90
|
document.addEventListener("click", R, !0);
|
|
91
|
-
}),
|
|
91
|
+
}), yn(() => {
|
|
92
92
|
document.removeEventListener("click", R, !0);
|
|
93
|
-
}), (w,
|
|
93
|
+
}), (w, E) => (v(), k(ne, null, [
|
|
94
94
|
d("button", {
|
|
95
95
|
onClick: _,
|
|
96
96
|
ref_key: "buttonRef",
|
|
97
97
|
ref: c,
|
|
98
98
|
class: L([[X(i).class], "py-2 max-h-[34px] px-2.5 md:inline-flex hidden items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"])
|
|
99
|
-
},
|
|
99
|
+
}, E[2] || (E[2] = [
|
|
100
100
|
ds('<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
|
-
(v(),
|
|
103
|
-
o.value ? (v(),
|
|
102
|
+
(v(), Ve(bn, { to: "body" }, [
|
|
103
|
+
o.value ? (v(), k("div", {
|
|
104
104
|
key: 0,
|
|
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: Ft([{ position: "fixed" }, { top: `${f.value.top}px`, left: `${f.value.left}px` }])
|
|
109
109
|
}, [
|
|
110
|
-
d("div",
|
|
111
|
-
d("div",
|
|
112
|
-
|
|
110
|
+
d("div", wr, D(X(s)("table.columns")), 1),
|
|
111
|
+
d("div", Sr, [
|
|
112
|
+
Ee(d("input", {
|
|
113
113
|
type: "text",
|
|
114
114
|
ref_key: "searchInput",
|
|
115
115
|
ref: u,
|
|
116
|
-
"onUpdate:modelValue":
|
|
116
|
+
"onUpdate:modelValue": E[0] || (E[0] = (C) => a.value = C),
|
|
117
117
|
class: "py-1.5 px-3 w-full rounded-xs sm:text-sm text-base placeholder:text-gray-500 hover:bg-gray-100 hover:border-blue-100 text-gray-800 focus:outline-none focus:bg-gray-100",
|
|
118
118
|
placeholder: X(s)("table.search")
|
|
119
|
-
}, null, 8,
|
|
120
|
-
[
|
|
119
|
+
}, null, 8, _r), [
|
|
120
|
+
[_t, a.value]
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
|
-
d("div",
|
|
124
|
-
d("span",
|
|
123
|
+
d("div", Nr, [
|
|
124
|
+
d("span", Cr, D(X(s)("table.choose")), 1),
|
|
125
125
|
d("div", {
|
|
126
126
|
class: "space-y-1",
|
|
127
|
-
onClick:
|
|
127
|
+
onClick: E[1] || (E[1] = ot(() => {
|
|
128
128
|
}, ["stop"]))
|
|
129
129
|
}, [
|
|
130
|
-
(v(!0),
|
|
130
|
+
(v(!0), k(ne, null, Se(h.value, (C) => (v(), k("div", {
|
|
131
131
|
key: C.name,
|
|
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
|
-
onClick: (
|
|
133
|
+
onClick: (T) => O(C)
|
|
134
134
|
}, [
|
|
135
|
-
d("label",
|
|
135
|
+
d("label", Or, [
|
|
136
136
|
be(D(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, Ir),
|
|
142
142
|
d("span", {
|
|
143
143
|
class: L(["flex items-center justify-center text-white border border-gray-300 rounded shrink-0 size-4 focus:ring-blue-500 pointer-events-none", C.hidden ? "bg-white" : "bg-blue-600 border-0"])
|
|
144
|
-
},
|
|
144
|
+
}, E[3] || (E[3] = [
|
|
145
145
|
d("svg", {
|
|
146
146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
147
147
|
width: "12",
|
|
@@ -157,14 +157,14 @@ const kr = { 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, Tr))), 128))
|
|
161
161
|
])
|
|
162
162
|
])
|
|
163
|
-
], 4)) :
|
|
163
|
+
], 4)) : Z("", !0)
|
|
164
164
|
]))
|
|
165
165
|
], 64));
|
|
166
166
|
}
|
|
167
|
-
}),
|
|
167
|
+
}), Ar = /* @__PURE__ */ ae({
|
|
168
168
|
name: "NumberFormat",
|
|
169
169
|
__name: "NumberFormat",
|
|
170
170
|
props: {
|
|
@@ -176,9 +176,9 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
176
176
|
const t = e, s = q(() => t.value === null || t.value === void 0 ? "" : typeof t.value == "number" ? t.value.toFixed(2) : Intl.NumberFormat("uk-UA", {
|
|
177
177
|
maximumFractionDigits: 2
|
|
178
178
|
}).format(Number(t.value)));
|
|
179
|
-
return (n, r) => (v(),
|
|
179
|
+
return (n, r) => (v(), k("span", null, D(s.value || "-"), 1));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), $r = /* @__PURE__ */ ae({
|
|
182
182
|
name: "DateFormat",
|
|
183
183
|
__name: "DateFormat",
|
|
184
184
|
props: {
|
|
@@ -195,7 +195,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
195
195
|
return t.value;
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
-
return (n, r) => (v(),
|
|
198
|
+
return (n, r) => (v(), k("span", null, D(s.value || "-"), 1));
|
|
199
199
|
}
|
|
200
200
|
}), Vr = /* @__PURE__ */ ae({
|
|
201
201
|
name: "TextFormat",
|
|
@@ -207,9 +207,9 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
207
207
|
},
|
|
208
208
|
setup(e) {
|
|
209
209
|
const t = e, { value: s } = t, n = q(() => Array.isArray(s) ? s.map((r) => r.text || r).join(",") : s?.text || s);
|
|
210
|
-
return (r, i) => (v(),
|
|
210
|
+
return (r, i) => (v(), k("span", null, D(n.value || "-"), 1));
|
|
211
211
|
}
|
|
212
|
-
}),
|
|
212
|
+
}), Rr = /* @__PURE__ */ ae({
|
|
213
213
|
name: "BadgeFormat",
|
|
214
214
|
__name: "BadgeFormat",
|
|
215
215
|
props: {
|
|
@@ -238,17 +238,17 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
238
238
|
color: n(t.value.color, 0.8)
|
|
239
239
|
} : i;
|
|
240
240
|
});
|
|
241
|
-
return (i, o) => (v(),
|
|
241
|
+
return (i, o) => (v(), k("span", {
|
|
242
242
|
class: L(["badge", s.value]),
|
|
243
|
-
style:
|
|
243
|
+
style: Ft(r.value)
|
|
244
244
|
}, D(i.value?.text || i.value || "-"), 7));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), Mr = (e, t) => {
|
|
247
247
|
const s = e.__vccOpts || e;
|
|
248
248
|
for (const [n, r] of t)
|
|
249
249
|
s[n] = r;
|
|
250
250
|
return s;
|
|
251
|
-
},
|
|
251
|
+
}, Lr = /* @__PURE__ */ Mr(Rr, [["__scopeId", "data-v-f4b15092"]]), Pr = { class: "flex flex-wrap gap-1" }, Fr = /* @__PURE__ */ ae({
|
|
252
252
|
name: "ArrayFormat",
|
|
253
253
|
__name: "ArrayFormat",
|
|
254
254
|
props: {
|
|
@@ -258,14 +258,14 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
258
258
|
},
|
|
259
259
|
setup(e) {
|
|
260
260
|
const t = e, s = q(() => t.value ? Array.isArray(t.value) ? t.value : [t.value] : []), n = (r) => r ? typeof r == "object" && r.name ? r.name : typeof r == "string" || typeof r == "number" ? String(r) : JSON.stringify(r) : "";
|
|
261
|
-
return (r, i) => (v(),
|
|
262
|
-
(v(!0),
|
|
261
|
+
return (r, i) => (v(), k("div", Pr, [
|
|
262
|
+
(v(!0), k(ne, null, Se(s.value, (o, a) => (v(), k("span", {
|
|
263
263
|
key: a,
|
|
264
264
|
class: "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 hover:bg-blue-200 transition-colors"
|
|
265
265
|
}, D(n(o)), 1))), 128))
|
|
266
266
|
]));
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), Br = /* @__PURE__ */ ae({
|
|
269
269
|
name: "TextFormat",
|
|
270
270
|
__name: "SelectFormat",
|
|
271
271
|
props: {
|
|
@@ -275,14 +275,14 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
275
275
|
},
|
|
276
276
|
setup(e) {
|
|
277
277
|
const t = e, { value: s } = t, n = q(() => Array.isArray(s) ? s.map((r) => r.text || r).filter((r, i) => i < 2).join(", ") + (s.length > 2 ? ` +${s.length - 2}` : "") : s?.text || s);
|
|
278
|
-
return (r, i) => (v(),
|
|
278
|
+
return (r, i) => (v(), k("span", null, D(n.value || "-"), 1));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), jr = {
|
|
281
281
|
key: 0,
|
|
282
282
|
"data-state": "checked",
|
|
283
283
|
"data-slot": "checkbox-indicator",
|
|
284
284
|
class: "pointer-none peer size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] h-4 w-4 flex items-center justify-center border-gray-400 focus:ring-blue-500 hover:bg-{c}/90 text-gray-400"
|
|
285
|
-
},
|
|
285
|
+
}, Ur = /* @__PURE__ */ ae({
|
|
286
286
|
name: "BooleanFormat",
|
|
287
287
|
__name: "BooleanFormat",
|
|
288
288
|
props: {
|
|
@@ -297,8 +297,8 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
297
297
|
// text: resolveColorClass('text-cyan-500'),
|
|
298
298
|
// hover: resolveColorClass('hover:text-border-cyan-500'),
|
|
299
299
|
// bg: resolveColorClass('bg-border-cyan-500 hover:bg-border-cyan-500/90'),
|
|
300
|
-
})), (t, s) => (v(),
|
|
301
|
-
t.value ? (v(),
|
|
300
|
+
})), (t, s) => (v(), k(ne, null, [
|
|
301
|
+
t.value ? (v(), k("span", jr, s[0] || (s[0] = [
|
|
302
302
|
d("svg", {
|
|
303
303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
304
304
|
width: "24",
|
|
@@ -313,19 +313,19 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
313
313
|
}, [
|
|
314
314
|
d("path", { d: "M20 6 9 17l-5-5" })
|
|
315
315
|
], -1)
|
|
316
|
-
]))) :
|
|
316
|
+
]))) : Z("", !0),
|
|
317
317
|
s[1] || (s[1] = d("span", null, null, -1))
|
|
318
318
|
], 64));
|
|
319
319
|
}
|
|
320
|
-
}),
|
|
321
|
-
number:
|
|
322
|
-
date:
|
|
320
|
+
}), Us = {
|
|
321
|
+
number: Ar,
|
|
322
|
+
date: $r,
|
|
323
323
|
text: Vr,
|
|
324
|
-
badge:
|
|
325
|
-
array:
|
|
326
|
-
select:
|
|
327
|
-
boolean:
|
|
328
|
-
},
|
|
324
|
+
badge: Lr,
|
|
325
|
+
array: Fr,
|
|
326
|
+
select: Br,
|
|
327
|
+
boolean: Ur
|
|
328
|
+
}, Hr = { class: "flex items-center space-x-4" }, zr = { class: "font-medium" }, qr = { class: "font-medium" }, Kr = { class: "font-medium" }, Wr = { class: "flex items-center space-x-2" }, Gr = ["disabled"], Jr = { class: "flex items-center space-x-1" }, Yr = ["onClick"], Xr = ["disabled"], wn = /* @__PURE__ */ ae({
|
|
329
329
|
name: "Pagination",
|
|
330
330
|
__name: "Pagination",
|
|
331
331
|
props: {
|
|
@@ -393,25 +393,25 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
393
393
|
}), m = (u) => {
|
|
394
394
|
u >= 1 && u <= o.value && u !== s.page && i("update:page", u);
|
|
395
395
|
};
|
|
396
|
-
return (u, f) => (v(),
|
|
396
|
+
return (u, f) => (v(), k("div", {
|
|
397
397
|
class: L(["flex items-center justify-between py-3 border-t", r.value.container])
|
|
398
398
|
}, [
|
|
399
|
-
d("div",
|
|
399
|
+
d("div", Hr, [
|
|
400
400
|
d("div", {
|
|
401
401
|
class: L(["flex items-center text-sm", r.value.text, n.value.text])
|
|
402
402
|
}, [
|
|
403
403
|
d("span", null, [
|
|
404
404
|
f[2] || (f[2] = be(" Показано ", -1)),
|
|
405
|
-
d("span",
|
|
405
|
+
d("span", zr, D(a.value), 1),
|
|
406
406
|
f[3] || (f[3] = be(" до ", -1)),
|
|
407
|
-
d("span",
|
|
407
|
+
d("span", qr, D(l.value), 1),
|
|
408
408
|
f[4] || (f[4] = be(" з ", -1)),
|
|
409
|
-
d("span",
|
|
409
|
+
d("span", Kr, D(u.total), 1),
|
|
410
410
|
f[5] || (f[5] = be(" результатів ", -1))
|
|
411
411
|
])
|
|
412
412
|
], 2)
|
|
413
413
|
]),
|
|
414
|
-
d("div",
|
|
414
|
+
d("div", Wr, [
|
|
415
415
|
d("button", {
|
|
416
416
|
onClick: f[0] || (f[0] = (h) => m(u.page - 1)),
|
|
417
417
|
disabled: u.page <= 1,
|
|
@@ -421,7 +421,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
421
421
|
u.page <= 1 ? r.value.buttonDisabled : r.value.button
|
|
422
422
|
])
|
|
423
423
|
}, [
|
|
424
|
-
(v(),
|
|
424
|
+
(v(), k("svg", {
|
|
425
425
|
class: L(n.value.icon),
|
|
426
426
|
fill: "none",
|
|
427
427
|
stroke: "currentColor",
|
|
@@ -434,13 +434,13 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
434
434
|
d: "M15 19l-7-7 7-7"
|
|
435
435
|
}, null, -1)
|
|
436
436
|
]), 2))
|
|
437
|
-
], 10,
|
|
438
|
-
d("div",
|
|
439
|
-
(v(!0),
|
|
440
|
-
h === "..." ? (v(),
|
|
437
|
+
], 10, Gr),
|
|
438
|
+
d("div", Jr, [
|
|
439
|
+
(v(!0), k(ne, null, Se(c.value, (h) => (v(), k(ne, { key: h }, [
|
|
440
|
+
h === "..." ? (v(), k("span", {
|
|
441
441
|
key: 0,
|
|
442
442
|
class: L(["font-medium", n.value.button, r.value.ellipsis])
|
|
443
|
-
}, " ... ", 2)) : (v(),
|
|
443
|
+
}, " ... ", 2)) : (v(), k("button", {
|
|
444
444
|
key: 1,
|
|
445
445
|
onClick: (x) => m(h),
|
|
446
446
|
class: L([
|
|
@@ -448,7 +448,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
448
448
|
n.value.button,
|
|
449
449
|
h === u.page ? r.value.buttonActive : r.value.button
|
|
450
450
|
])
|
|
451
|
-
}, D(h), 11,
|
|
451
|
+
}, D(h), 11, Yr))
|
|
452
452
|
], 64))), 128))
|
|
453
453
|
]),
|
|
454
454
|
d("button", {
|
|
@@ -460,7 +460,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
460
460
|
u.page >= o.value ? r.value.buttonDisabled : r.value.button
|
|
461
461
|
])
|
|
462
462
|
}, [
|
|
463
|
-
(v(),
|
|
463
|
+
(v(), k("svg", {
|
|
464
464
|
class: L(n.value.icon),
|
|
465
465
|
fill: "none",
|
|
466
466
|
stroke: "currentColor",
|
|
@@ -473,7 +473,7 @@ const kr = { class: "flex items-center justify-between h-[48px] px-4 py-2 gap-x-
|
|
|
473
473
|
d: "M9 5l7 7-7 7"
|
|
474
474
|
}, null, -1)
|
|
475
475
|
]), 2))
|
|
476
|
-
], 10,
|
|
476
|
+
], 10, Xr)
|
|
477
477
|
])
|
|
478
478
|
], 2));
|
|
479
479
|
}
|
|
@@ -490,21 +490,21 @@ function Te(e) {
|
|
|
490
490
|
for (const s of e.split(",")) t[s] = 1;
|
|
491
491
|
return (s) => s in t;
|
|
492
492
|
}
|
|
493
|
-
const
|
|
493
|
+
const Qr = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
494
494
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
495
495
|
const Gt = () => {
|
|
496
|
-
},
|
|
497
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Le = Object.assign, Ce = Array.isArray, re = (e) => typeof e == "string", ps = (e) => typeof e == "symbol",
|
|
496
|
+
}, kt = () => !1, Zt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
497
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Le = Object.assign, Ce = Array.isArray, re = (e) => typeof e == "string", ps = (e) => typeof e == "symbol", Zr = (e) => e !== null && typeof e == "object", Hs = /* @__PURE__ */ Te(
|
|
498
498
|
// the leading comma is intentional so empty string "" is also included
|
|
499
499
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
500
|
-
),
|
|
500
|
+
), ei = /* @__PURE__ */ Te(
|
|
501
501
|
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
502
502
|
), hs = (e) => {
|
|
503
503
|
const t = /* @__PURE__ */ Object.create(null);
|
|
504
504
|
return (s) => t[s] || (t[s] = e(s));
|
|
505
|
-
},
|
|
506
|
-
(e) => e.replace(
|
|
507
|
-
), ms = hs((e) => e.charAt(0).toUpperCase() + e.slice(1)),
|
|
505
|
+
}, ti = /-(\w)/g, Pe = hs(
|
|
506
|
+
(e) => e.replace(ti, (t, s) => s ? s.toUpperCase() : "")
|
|
507
|
+
), ms = hs((e) => e.charAt(0).toUpperCase() + e.slice(1)), si = hs(
|
|
508
508
|
(e) => e ? `on${ms(e)}` : ""
|
|
509
509
|
), at = {
|
|
510
510
|
1: "TEXT",
|
|
@@ -521,29 +521,29 @@ const Gt = () => {
|
|
|
521
521
|
2048: "DEV_ROOT_FRAGMENT",
|
|
522
522
|
[-1]: "CACHED",
|
|
523
523
|
[-2]: "BAIL"
|
|
524
|
-
},
|
|
524
|
+
}, ni = {
|
|
525
525
|
1: "STABLE",
|
|
526
526
|
2: "DYNAMIC",
|
|
527
527
|
3: "FORWARDED"
|
|
528
|
-
},
|
|
529
|
-
function
|
|
528
|
+
}, ri = /;(?![^(]*\))/g, ii = /:([^]+)/, oi = /\/\*[^]*?\*\//g;
|
|
529
|
+
function ai(e) {
|
|
530
530
|
const t = {};
|
|
531
|
-
return e.replace(
|
|
531
|
+
return e.replace(oi, "").split(ri).forEach((s) => {
|
|
532
532
|
if (s) {
|
|
533
|
-
const n = s.split(
|
|
533
|
+
const n = s.split(ii);
|
|
534
534
|
n.length > 1 && (t[n[0].trim()] = n[1].trim());
|
|
535
535
|
}
|
|
536
536
|
}), t;
|
|
537
537
|
}
|
|
538
|
-
const
|
|
538
|
+
const li = "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", ci = "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", ui = "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", di = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr", fi = /* @__PURE__ */ Te(li), pi = /* @__PURE__ */ Te(ci), hi = /* @__PURE__ */ Te(ui), mi = /* @__PURE__ */ Te(di);
|
|
539
539
|
/**
|
|
540
540
|
* @vue/compiler-core v3.5.18
|
|
541
541
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
542
542
|
* @license MIT
|
|
543
543
|
**/
|
|
544
|
-
const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt = Symbol(process.env.NODE_ENV !== "production" ? "Teleport" : ""), gs = Symbol(process.env.NODE_ENV !== "production" ? "Suspense" : ""),
|
|
544
|
+
const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt = Symbol(process.env.NODE_ENV !== "production" ? "Teleport" : ""), gs = Symbol(process.env.NODE_ENV !== "production" ? "Suspense" : ""), It = Symbol(process.env.NODE_ENV !== "production" ? "KeepAlive" : ""), Sn = Symbol(
|
|
545
545
|
process.env.NODE_ENV !== "production" ? "BaseTransition" : ""
|
|
546
|
-
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""),
|
|
546
|
+
), Je = Symbol(process.env.NODE_ENV !== "production" ? "openBlock" : ""), _n = Symbol(process.env.NODE_ENV !== "production" ? "createBlock" : ""), Nn = Symbol(
|
|
547
547
|
process.env.NODE_ENV !== "production" ? "createElementBlock" : ""
|
|
548
548
|
), vs = Symbol(process.env.NODE_ENV !== "production" ? "createVNode" : ""), ys = Symbol(
|
|
549
549
|
process.env.NODE_ENV !== "production" ? "createElementVNode" : ""
|
|
@@ -551,21 +551,21 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
551
551
|
process.env.NODE_ENV !== "production" ? "createCommentVNode" : ""
|
|
552
552
|
), bs = Symbol(
|
|
553
553
|
process.env.NODE_ENV !== "production" ? "createTextVNode" : ""
|
|
554
|
-
),
|
|
554
|
+
), Cn = Symbol(
|
|
555
555
|
process.env.NODE_ENV !== "production" ? "createStaticVNode" : ""
|
|
556
556
|
), xs = Symbol(
|
|
557
557
|
process.env.NODE_ENV !== "production" ? "resolveComponent" : ""
|
|
558
|
-
), Es = Symbol(
|
|
559
|
-
process.env.NODE_ENV !== "production" ? "resolveDynamicComponent" : ""
|
|
560
558
|
), ks = Symbol(
|
|
559
|
+
process.env.NODE_ENV !== "production" ? "resolveDynamicComponent" : ""
|
|
560
|
+
), Es = Symbol(
|
|
561
561
|
process.env.NODE_ENV !== "production" ? "resolveDirective" : ""
|
|
562
562
|
), ws = Symbol(
|
|
563
563
|
process.env.NODE_ENV !== "production" ? "resolveFilter" : ""
|
|
564
564
|
), Ss = Symbol(
|
|
565
565
|
process.env.NODE_ENV !== "production" ? "withDirectives" : ""
|
|
566
|
-
), _s = Symbol(process.env.NODE_ENV !== "production" ? "renderList" : ""),
|
|
566
|
+
), _s = Symbol(process.env.NODE_ENV !== "production" ? "renderList" : ""), Tn = Symbol(process.env.NODE_ENV !== "production" ? "renderSlot" : ""), On = Symbol(process.env.NODE_ENV !== "production" ? "createSlots" : ""), Bt = Symbol(
|
|
567
567
|
process.env.NODE_ENV !== "production" ? "toDisplayString" : ""
|
|
568
|
-
),
|
|
568
|
+
), Dt = Symbol(process.env.NODE_ENV !== "production" ? "mergeProps" : ""), Ns = Symbol(
|
|
569
569
|
process.env.NODE_ENV !== "production" ? "normalizeClass" : ""
|
|
570
570
|
), Cs = Symbol(
|
|
571
571
|
process.env.NODE_ENV !== "production" ? "normalizeStyle" : ""
|
|
@@ -573,52 +573,52 @@ const ct = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : ""), lt =
|
|
|
573
573
|
process.env.NODE_ENV !== "production" ? "normalizeProps" : ""
|
|
574
574
|
), gt = Symbol(
|
|
575
575
|
process.env.NODE_ENV !== "production" ? "guardReactiveProps" : ""
|
|
576
|
-
), Ts = Symbol(process.env.NODE_ENV !== "production" ? "toHandlers" : ""), es = Symbol(process.env.NODE_ENV !== "production" ? "camelize" : ""),
|
|
576
|
+
), Ts = Symbol(process.env.NODE_ENV !== "production" ? "toHandlers" : ""), es = Symbol(process.env.NODE_ENV !== "production" ? "camelize" : ""), gi = Symbol(process.env.NODE_ENV !== "production" ? "capitalize" : ""), ts = Symbol(
|
|
577
577
|
process.env.NODE_ENV !== "production" ? "toHandlerKey" : ""
|
|
578
|
-
),
|
|
578
|
+
), At = Symbol(
|
|
579
579
|
process.env.NODE_ENV !== "production" ? "setBlockTracking" : ""
|
|
580
|
-
),
|
|
580
|
+
), vi = Symbol(process.env.NODE_ENV !== "production" ? "pushScopeId" : ""), yi = Symbol(process.env.NODE_ENV !== "production" ? "popScopeId" : ""), Os = Symbol(process.env.NODE_ENV !== "production" ? "withCtx" : ""), bi = Symbol(process.env.NODE_ENV !== "production" ? "unref" : ""), xi = Symbol(process.env.NODE_ENV !== "production" ? "isRef" : ""), Is = Symbol(process.env.NODE_ENV !== "production" ? "withMemo" : ""), In = Symbol(process.env.NODE_ENV !== "production" ? "isMemoSame" : ""), Ze = {
|
|
581
581
|
[ct]: "Fragment",
|
|
582
582
|
[lt]: "Teleport",
|
|
583
583
|
[gs]: "Suspense",
|
|
584
|
-
[
|
|
585
|
-
[
|
|
584
|
+
[It]: "KeepAlive",
|
|
585
|
+
[Sn]: "BaseTransition",
|
|
586
586
|
[Je]: "openBlock",
|
|
587
|
-
[
|
|
588
|
-
[
|
|
587
|
+
[_n]: "createBlock",
|
|
588
|
+
[Nn]: "createElementBlock",
|
|
589
589
|
[vs]: "createVNode",
|
|
590
590
|
[ys]: "createElementVNode",
|
|
591
591
|
[mt]: "createCommentVNode",
|
|
592
592
|
[bs]: "createTextVNode",
|
|
593
|
-
[
|
|
593
|
+
[Cn]: "createStaticVNode",
|
|
594
594
|
[xs]: "resolveComponent",
|
|
595
|
-
[
|
|
596
|
-
[
|
|
595
|
+
[ks]: "resolveDynamicComponent",
|
|
596
|
+
[Es]: "resolveDirective",
|
|
597
597
|
[ws]: "resolveFilter",
|
|
598
598
|
[Ss]: "withDirectives",
|
|
599
599
|
[_s]: "renderList",
|
|
600
|
-
[
|
|
601
|
-
[
|
|
602
|
-
[
|
|
603
|
-
[
|
|
600
|
+
[Tn]: "renderSlot",
|
|
601
|
+
[On]: "createSlots",
|
|
602
|
+
[Bt]: "toDisplayString",
|
|
603
|
+
[Dt]: "mergeProps",
|
|
604
604
|
[Ns]: "normalizeClass",
|
|
605
605
|
[Cs]: "normalizeStyle",
|
|
606
606
|
[ut]: "normalizeProps",
|
|
607
607
|
[gt]: "guardReactiveProps",
|
|
608
608
|
[Ts]: "toHandlers",
|
|
609
609
|
[es]: "camelize",
|
|
610
|
-
[
|
|
610
|
+
[gi]: "capitalize",
|
|
611
611
|
[ts]: "toHandlerKey",
|
|
612
|
-
[
|
|
613
|
-
[
|
|
614
|
-
[
|
|
612
|
+
[At]: "setBlockTracking",
|
|
613
|
+
[vi]: "pushScopeId",
|
|
614
|
+
[yi]: "popScopeId",
|
|
615
615
|
[Os]: "withCtx",
|
|
616
|
-
[
|
|
617
|
-
[
|
|
616
|
+
[bi]: "unref",
|
|
617
|
+
[xi]: "isRef",
|
|
618
618
|
[Is]: "withMemo",
|
|
619
|
-
[
|
|
619
|
+
[In]: "isMemoSame"
|
|
620
620
|
};
|
|
621
|
-
function
|
|
621
|
+
function ki(e) {
|
|
622
622
|
Object.getOwnPropertySymbols(e).forEach((t) => {
|
|
623
623
|
Ze[t] = e[t];
|
|
624
624
|
});
|
|
@@ -673,15 +673,15 @@ function xe(e, t = ye) {
|
|
|
673
673
|
properties: e
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function ee(e, t) {
|
|
677
677
|
return {
|
|
678
678
|
type: 16,
|
|
679
679
|
loc: ye,
|
|
680
|
-
key: re(e) ?
|
|
680
|
+
key: re(e) ? $(e, !0) : e,
|
|
681
681
|
value: t
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function $(e, t = !1, s = ye, n = 0) {
|
|
685
685
|
return {
|
|
686
686
|
type: 4,
|
|
687
687
|
loc: s,
|
|
@@ -725,7 +725,7 @@ function ss(e, t, s, n = !0) {
|
|
|
725
725
|
loc: ye
|
|
726
726
|
};
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function wi(e, t, s = !1, n = !1) {
|
|
729
729
|
return {
|
|
730
730
|
type: 20,
|
|
731
731
|
index: e,
|
|
@@ -736,7 +736,7 @@ function ki(e, t, s = !1, n = !1) {
|
|
|
736
736
|
loc: ye
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function Si(e) {
|
|
740
740
|
return {
|
|
741
741
|
type: 21,
|
|
742
742
|
body: e,
|
|
@@ -747,22 +747,22 @@ function tt(e, t) {
|
|
|
747
747
|
return e || t ? vs : ys;
|
|
748
748
|
}
|
|
749
749
|
function st(e, t) {
|
|
750
|
-
return e || t ?
|
|
750
|
+
return e || t ? _n : Nn;
|
|
751
751
|
}
|
|
752
752
|
function Ds(e, { helper: t, removeHelper: s, inSSR: n }) {
|
|
753
753
|
e.isBlock || (e.isBlock = !0, s(tt(n, e.isComponent)), t(Je), t(st(n, e.isComponent)));
|
|
754
754
|
}
|
|
755
|
-
const
|
|
756
|
-
function
|
|
755
|
+
const zs = new Uint8Array([123, 123]), qs = new Uint8Array([125, 125]);
|
|
756
|
+
function Ks(e) {
|
|
757
757
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
758
758
|
}
|
|
759
759
|
function ge(e) {
|
|
760
760
|
return e === 32 || e === 10 || e === 9 || e === 12 || e === 13;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function $e(e) {
|
|
763
763
|
return e === 47 || e === 62 || ge(e);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function $t(e) {
|
|
766
766
|
const t = new Uint8Array(e.length);
|
|
767
767
|
for (let s = 0; s < e.length; s++)
|
|
768
768
|
t[s] = e.charCodeAt(s);
|
|
@@ -795,15 +795,15 @@ const ie = {
|
|
|
795
795
|
])
|
|
796
796
|
// `</textarea
|
|
797
797
|
};
|
|
798
|
-
class
|
|
798
|
+
class _i {
|
|
799
799
|
constructor(t, s) {
|
|
800
|
-
this.stack = t, this.cbs = s, 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 =
|
|
800
|
+
this.stack = t, this.cbs = s, 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 = zs, this.delimiterClose = qs, this.delimiterIndex = -1, this.currentSequence = void 0, this.sequenceIndex = 0;
|
|
801
801
|
}
|
|
802
802
|
get inSFCRoot() {
|
|
803
803
|
return this.mode === 2 && this.stack.length === 0;
|
|
804
804
|
}
|
|
805
805
|
reset() {
|
|
806
|
-
this.state = 1, this.mode = 0, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = 1, this.inRCDATA = !1, this.currentSequence = void 0, this.newlines.length = 0, this.delimiterOpen =
|
|
806
|
+
this.state = 1, this.mode = 0, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = 1, this.inRCDATA = !1, this.currentSequence = void 0, this.newlines.length = 0, this.delimiterOpen = zs, this.delimiterClose = qs;
|
|
807
807
|
}
|
|
808
808
|
/**
|
|
809
809
|
* Generate Position object with line / column information using recorded
|
|
@@ -851,7 +851,7 @@ class Si {
|
|
|
851
851
|
const s = this.sequenceIndex === this.currentSequence.length;
|
|
852
852
|
if (!(s ? (
|
|
853
853
|
// If we are at the end of the sequence, make sure the tag name has ended
|
|
854
|
-
|
|
854
|
+
$e(t)
|
|
855
855
|
) : (
|
|
856
856
|
// Otherwise, do a case-insensitive comparison
|
|
857
857
|
(t | 32) === this.currentSequence[this.sequenceIndex]
|
|
@@ -914,22 +914,22 @@ class Si {
|
|
|
914
914
|
this.inRCDATA = !0, this.currentSequence = t, this.sequenceIndex = s;
|
|
915
915
|
}
|
|
916
916
|
stateBeforeTagName(t) {
|
|
917
|
-
t === 33 ? (this.state = 22, this.sectionStart = this.index + 1) : t === 63 ? (this.state = 24, this.sectionStart = this.index + 1) :
|
|
917
|
+
t === 33 ? (this.state = 22, this.sectionStart = this.index + 1) : t === 63 ? (this.state = 24, this.sectionStart = this.index + 1) : Ks(t) ? (this.sectionStart = this.index, this.mode === 0 ? this.state = 6 : this.inSFCRoot ? this.state = 34 : this.inXML ? this.state = 6 : t === 116 ? this.state = 30 : this.state = t === 115 ? 29 : 6) : t === 47 ? this.state = 8 : (this.state = 1, this.stateText(t));
|
|
918
918
|
}
|
|
919
919
|
stateInTagName(t) {
|
|
920
|
-
|
|
920
|
+
$e(t) && this.handleTagName(t);
|
|
921
921
|
}
|
|
922
922
|
stateInSFCRootTagName(t) {
|
|
923
|
-
if (
|
|
923
|
+
if ($e(t)) {
|
|
924
924
|
const s = this.buffer.slice(this.sectionStart, this.index);
|
|
925
|
-
s !== "template" && this.enterRCDATA(
|
|
925
|
+
s !== "template" && this.enterRCDATA($t("</" + s), 0), this.handleTagName(t);
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
928
|
handleTagName(t) {
|
|
929
929
|
this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = 11, this.stateBeforeAttrName(t);
|
|
930
930
|
}
|
|
931
931
|
stateBeforeClosingTagName(t) {
|
|
932
|
-
ge(t) || (t === 62 ? (process.env.NODE_ENV !== "production" && this.cbs.onerr(14, this.index), this.state = 1, this.sectionStart = this.index + 1) : (this.state =
|
|
932
|
+
ge(t) || (t === 62 ? (process.env.NODE_ENV !== "production" && this.cbs.onerr(14, this.index), this.state = 1, this.sectionStart = this.index + 1) : (this.state = Ks(t) ? 9 : 27, this.sectionStart = this.index));
|
|
933
933
|
}
|
|
934
934
|
stateInClosingTagName(t) {
|
|
935
935
|
(t === 62 || ge(t)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = 10, this.stateAfterClosingTagName(t));
|
|
@@ -950,25 +950,25 @@ class Si {
|
|
|
950
950
|
t === 62 ? (this.cbs.onselfclosingtag(this.index), this.state = 1, this.sectionStart = this.index + 1, this.inRCDATA = !1) : ge(t) || (this.state = 11, this.stateBeforeAttrName(t));
|
|
951
951
|
}
|
|
952
952
|
stateInAttrName(t) {
|
|
953
|
-
t === 61 ||
|
|
953
|
+
t === 61 || $e(t) ? (this.cbs.onattribname(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : process.env.NODE_ENV !== "production" && (t === 34 || t === 39 || t === 60) && this.cbs.onerr(
|
|
954
954
|
17,
|
|
955
955
|
this.index
|
|
956
956
|
);
|
|
957
957
|
}
|
|
958
958
|
stateInDirName(t) {
|
|
959
|
-
t === 61 ||
|
|
959
|
+
t === 61 || $e(t) ? (this.cbs.ondirname(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : t === 58 ? (this.cbs.ondirname(this.sectionStart, this.index), this.state = 14, this.sectionStart = this.index + 1) : t === 46 && (this.cbs.ondirname(this.sectionStart, this.index), this.state = 16, this.sectionStart = this.index + 1);
|
|
960
960
|
}
|
|
961
961
|
stateInDirArg(t) {
|
|
962
|
-
t === 61 ||
|
|
962
|
+
t === 61 || $e(t) ? (this.cbs.ondirarg(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : t === 91 ? this.state = 15 : t === 46 && (this.cbs.ondirarg(this.sectionStart, this.index), this.state = 16, this.sectionStart = this.index + 1);
|
|
963
963
|
}
|
|
964
964
|
stateInDynamicDirArg(t) {
|
|
965
|
-
t === 93 ? this.state = 14 : (t === 61 ||
|
|
965
|
+
t === 93 ? this.state = 14 : (t === 61 || $e(t)) && (this.cbs.ondirarg(this.sectionStart, this.index + 1), this.handleAttrNameEnd(t), process.env.NODE_ENV !== "production" && this.cbs.onerr(
|
|
966
966
|
27,
|
|
967
967
|
this.index
|
|
968
968
|
));
|
|
969
969
|
}
|
|
970
970
|
stateInDirModifier(t) {
|
|
971
|
-
t === 61 ||
|
|
971
|
+
t === 61 || $e(t) ? (this.cbs.ondirmodifier(this.sectionStart, this.index), this.handleAttrNameEnd(t)) : t === 46 && (this.cbs.ondirmodifier(this.sectionStart, this.index), this.sectionStart = this.index + 1);
|
|
972
972
|
}
|
|
973
973
|
handleAttrNameEnd(t) {
|
|
974
974
|
this.sectionStart = this.index, this.state = 17, this.cbs.onattribnameend(this.index), this.stateAfterAttrName(t);
|
|
@@ -1189,7 +1189,7 @@ class Si {
|
|
|
1189
1189
|
emitCodePoint(t, s) {
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1192
|
+
const Ni = {
|
|
1193
1193
|
COMPILER_IS_ON_ELEMENT: {
|
|
1194
1194
|
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:".',
|
|
1195
1195
|
link: "https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"
|
|
@@ -1237,21 +1237,21 @@ function nt(e, t, s, ...n) {
|
|
|
1237
1237
|
function Vt(e, t, s, ...n) {
|
|
1238
1238
|
if (ns(e, t) === "suppress-warning")
|
|
1239
1239
|
return;
|
|
1240
|
-
const { message: i, link: o } =
|
|
1240
|
+
const { message: i, link: o } = Ni[e], a = `(deprecation ${e}) ${typeof i == "function" ? i(...n) : i}${o ? `
|
|
1241
1241
|
Details: ${o}` : ""}`, l = new SyntaxError(a);
|
|
1242
1242
|
l.code = e, s && (l.loc = s), t.onWarn(l);
|
|
1243
1243
|
}
|
|
1244
1244
|
function As(e) {
|
|
1245
1245
|
throw e;
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function Dn(e) {
|
|
1248
1248
|
process.env.NODE_ENV !== "production" && console.warn(`[Vue warn] ${e.message}`);
|
|
1249
1249
|
}
|
|
1250
1250
|
function K(e, t, s, n) {
|
|
1251
|
-
const r = process.env.NODE_ENV !== "production" ? (s ||
|
|
1251
|
+
const r = process.env.NODE_ENV !== "production" ? (s || Ci)[e] + (n || "") : `https://vuejs.org/error-reference/#compiler-${e}`, i = new SyntaxError(String(r));
|
|
1252
1252
|
return i.code = e, i.loc = t, i;
|
|
1253
1253
|
}
|
|
1254
|
-
const
|
|
1254
|
+
const Ci = {
|
|
1255
1255
|
// parse errors
|
|
1256
1256
|
0: "Illegal comment.",
|
|
1257
1257
|
1: "CDATA section is allowed only in XML context.",
|
|
@@ -1313,7 +1313,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
1313
1313
|
// just to fulfill types
|
|
1314
1314
|
53: ""
|
|
1315
1315
|
}, he = (e) => e.type === 4 && e.isStatic;
|
|
1316
|
-
function
|
|
1316
|
+
function An(e) {
|
|
1317
1317
|
switch (e) {
|
|
1318
1318
|
case "Teleport":
|
|
1319
1319
|
case "teleport":
|
|
@@ -1323,14 +1323,14 @@ function Dn(e) {
|
|
|
1323
1323
|
return gs;
|
|
1324
1324
|
case "KeepAlive":
|
|
1325
1325
|
case "keep-alive":
|
|
1326
|
-
return
|
|
1326
|
+
return It;
|
|
1327
1327
|
case "BaseTransition":
|
|
1328
1328
|
case "base-transition":
|
|
1329
|
-
return
|
|
1329
|
+
return Sn;
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
const
|
|
1333
|
-
const t =
|
|
1332
|
+
const Ti = /^$|^\d|[^\$\w\xA0-\uFFFF]/, $s = (e) => !Ti.test(e), Oi = /[A-Za-z_$\xA0-\uFFFF]/, Ii = /[\.\?\w$\xA0-\uFFFF]/, Di = /\s+[.[]\s*|\s*[.[]\s+/g, $n = (e) => e.type === 4 ? e.content : e.loc.source, Ai = (e) => {
|
|
1333
|
+
const t = $n(e).trim().replace(Di, (a) => a.trim());
|
|
1334
1334
|
let s = 0, n = [], r = 0, i = 0, o = null;
|
|
1335
1335
|
for (let a = 0; a < t.length; a++) {
|
|
1336
1336
|
const l = t.charAt(a);
|
|
@@ -1340,7 +1340,7 @@ const Ci = /^$|^\d|[^\$\w\xA0-\uFFFF]/, Vs = (e) => !Ci.test(e), Ti = /[A-Za-z_$
|
|
|
1340
1340
|
n.push(s), s = 1, r++;
|
|
1341
1341
|
else if (l === "(")
|
|
1342
1342
|
n.push(s), s = 2, i++;
|
|
1343
|
-
else if (!(a === 0 ?
|
|
1343
|
+
else if (!(a === 0 ? Oi : Ii).test(l))
|
|
1344
1344
|
return !1;
|
|
1345
1345
|
break;
|
|
1346
1346
|
case 1:
|
|
@@ -1363,8 +1363,8 @@ const Ci = /^$|^\d|[^\$\w\xA0-\uFFFF]/, Vs = (e) => !Ci.test(e), Ti = /[A-Za-z_$
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
return !r && !i;
|
|
1366
|
-
}, Vn =
|
|
1367
|
-
function
|
|
1366
|
+
}, Vn = Ai, $i = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/, Vi = (e) => $i.test($n(e)), Ri = Vi;
|
|
1367
|
+
function Ws(e, t) {
|
|
1368
1368
|
if (!e)
|
|
1369
1369
|
throw new Error(t || "unexpected compiler condition");
|
|
1370
1370
|
}
|
|
@@ -1389,7 +1389,7 @@ function ft(e, t, s = !1, n = !1) {
|
|
|
1389
1389
|
function Me(e, t) {
|
|
1390
1390
|
return !!(e && he(e) && e.content === t);
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Mi(e) {
|
|
1393
1393
|
return e.props.some(
|
|
1394
1394
|
(t) => t.type === 7 && t.name === "bind" && (!t.arg || // v-bind="obj"
|
|
1395
1395
|
t.arg.type !== 4 || // v-bind:[_ctx.foo]
|
|
@@ -1400,51 +1400,51 @@ function Ri(e) {
|
|
|
1400
1400
|
function Jt(e) {
|
|
1401
1401
|
return e.type === 5 || e.type === 2;
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Gs(e) {
|
|
1404
1404
|
return e.type === 7 && e.name === "pre";
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function Li(e) {
|
|
1407
1407
|
return e.type === 7 && e.name === "slot";
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Rt(e) {
|
|
1410
1410
|
return e.type === 1 && e.tagType === 3;
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function Mt(e) {
|
|
1413
1413
|
return e.type === 1 && e.tagType === 2;
|
|
1414
1414
|
}
|
|
1415
|
-
const
|
|
1416
|
-
function
|
|
1415
|
+
const Pi = /* @__PURE__ */ new Set([ut, gt]);
|
|
1416
|
+
function Rn(e, t = []) {
|
|
1417
1417
|
if (e && !re(e) && e.type === 14) {
|
|
1418
1418
|
const s = e.callee;
|
|
1419
|
-
if (!re(s) &&
|
|
1420
|
-
return
|
|
1419
|
+
if (!re(s) && Pi.has(s))
|
|
1420
|
+
return Rn(
|
|
1421
1421
|
e.arguments[0],
|
|
1422
1422
|
t.concat(e)
|
|
1423
1423
|
);
|
|
1424
1424
|
}
|
|
1425
1425
|
return [e, t];
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Lt(e, t, s) {
|
|
1428
1428
|
let n, r = e.type === 13 ? e.props : e.arguments[2], i = [], o;
|
|
1429
1429
|
if (r && !re(r) && r.type === 14) {
|
|
1430
|
-
const a =
|
|
1430
|
+
const a = Rn(r);
|
|
1431
1431
|
r = a[0], i = a[1], o = i[i.length - 1];
|
|
1432
1432
|
}
|
|
1433
1433
|
if (r == null || re(r))
|
|
1434
1434
|
n = xe([t]);
|
|
1435
1435
|
else if (r.type === 14) {
|
|
1436
1436
|
const a = r.arguments[0];
|
|
1437
|
-
!re(a) && a.type === 15 ?
|
|
1437
|
+
!re(a) && a.type === 15 ? Js(t, a) || a.properties.unshift(t) : r.callee === Ts ? n = se(s.helper(Dt), [
|
|
1438
1438
|
xe([t]),
|
|
1439
1439
|
r
|
|
1440
1440
|
]) : r.arguments.unshift(xe([t])), !n && (n = r);
|
|
1441
|
-
} else r.type === 15 ? (
|
|
1441
|
+
} else r.type === 15 ? (Js(t, r) || r.properties.unshift(t), n = r) : (n = se(s.helper(Dt), [
|
|
1442
1442
|
xe([t]),
|
|
1443
1443
|
r
|
|
1444
1444
|
]), o && o.callee === gt && (o = i[i.length - 2]));
|
|
1445
1445
|
e.type === 13 ? o ? o.arguments[0] = n : e.props = n : o ? o.arguments[0] = n : e.arguments[2] = n;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Js(e, t) {
|
|
1448
1448
|
let s = !1;
|
|
1449
1449
|
if (e.key.type === 4) {
|
|
1450
1450
|
const n = e.key.content;
|
|
@@ -1457,25 +1457,25 @@ function Gs(e, t) {
|
|
|
1457
1457
|
function pt(e, t) {
|
|
1458
1458
|
return `_${t}_${e.replace(/[^\w]/g, (s, n) => s === "-" ? "_" : e.charCodeAt(n).toString())}`;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Fi(e) {
|
|
1461
1461
|
return e.type === 14 && e.callee === Is ? e.arguments[1].returns : e;
|
|
1462
1462
|
}
|
|
1463
|
-
const
|
|
1463
|
+
const Bi = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/, Mn = {
|
|
1464
1464
|
parseMode: "base",
|
|
1465
1465
|
ns: 0,
|
|
1466
1466
|
delimiters: ["{{", "}}"],
|
|
1467
1467
|
getNamespace: () => 0,
|
|
1468
|
-
isVoidTag:
|
|
1469
|
-
isPreTag:
|
|
1470
|
-
isIgnoreNewlineTag:
|
|
1471
|
-
isCustomElement:
|
|
1468
|
+
isVoidTag: kt,
|
|
1469
|
+
isPreTag: kt,
|
|
1470
|
+
isIgnoreNewlineTag: kt,
|
|
1471
|
+
isCustomElement: kt,
|
|
1472
1472
|
onError: As,
|
|
1473
|
-
onWarn:
|
|
1473
|
+
onWarn: Dn,
|
|
1474
1474
|
comments: process.env.NODE_ENV !== "production",
|
|
1475
1475
|
prefixIdentifiers: !1
|
|
1476
1476
|
};
|
|
1477
|
-
let F =
|
|
1478
|
-
const Y = [], J = new
|
|
1477
|
+
let F = Mn, ht = null, Ae = "", le = null, P = null, fe = "", Oe = -1, He = -1, Vs = 0, Re = !1, rs = null;
|
|
1478
|
+
const Y = [], J = new _i(Y, {
|
|
1479
1479
|
onerr: de,
|
|
1480
1480
|
ontext(e, t) {
|
|
1481
1481
|
Et(oe(e, t), e, t);
|
|
@@ -1494,8 +1494,8 @@ const Y = [], J = new Si(Y, {
|
|
|
1494
1494
|
let r = oe(s, n);
|
|
1495
1495
|
r.includes("&") && (r = F.decodeEntities(r, !1)), is({
|
|
1496
1496
|
type: 5,
|
|
1497
|
-
content:
|
|
1498
|
-
loc:
|
|
1497
|
+
content: Ct(r, !1, te(s, n)),
|
|
1498
|
+
loc: te(e, t)
|
|
1499
1499
|
});
|
|
1500
1500
|
},
|
|
1501
1501
|
onopentagname(e, t) {
|
|
@@ -1508,12 +1508,12 @@ const Y = [], J = new Si(Y, {
|
|
|
1508
1508
|
// will be refined on tag close
|
|
1509
1509
|
props: [],
|
|
1510
1510
|
children: [],
|
|
1511
|
-
loc:
|
|
1511
|
+
loc: te(e - 1, t),
|
|
1512
1512
|
codegenNode: void 0
|
|
1513
1513
|
};
|
|
1514
1514
|
},
|
|
1515
1515
|
onopentagend(e) {
|
|
1516
|
-
|
|
1516
|
+
Xs(e);
|
|
1517
1517
|
},
|
|
1518
1518
|
onclosetag(e, t) {
|
|
1519
1519
|
const s = oe(e, t);
|
|
@@ -1524,24 +1524,24 @@ const Y = [], J = new Si(Y, {
|
|
|
1524
1524
|
n = !0, r > 0 && de(24, Y[0].loc.start.offset);
|
|
1525
1525
|
for (let o = 0; o <= r; o++) {
|
|
1526
1526
|
const a = Y.shift();
|
|
1527
|
-
|
|
1527
|
+
Nt(a, t, o < r);
|
|
1528
1528
|
}
|
|
1529
1529
|
break;
|
|
1530
1530
|
}
|
|
1531
|
-
n || de(23,
|
|
1531
|
+
n || de(23, Ln(e, 60));
|
|
1532
1532
|
}
|
|
1533
1533
|
},
|
|
1534
1534
|
onselfclosingtag(e) {
|
|
1535
1535
|
const t = le.tag;
|
|
1536
|
-
le.isSelfClosing = !0,
|
|
1536
|
+
le.isSelfClosing = !0, Xs(e), Y[0] && Y[0].tag === t && Nt(Y.shift(), e);
|
|
1537
1537
|
},
|
|
1538
1538
|
onattribname(e, t) {
|
|
1539
1539
|
P = {
|
|
1540
1540
|
type: 6,
|
|
1541
1541
|
name: oe(e, t),
|
|
1542
|
-
nameLoc:
|
|
1542
|
+
nameLoc: te(e, t),
|
|
1543
1543
|
value: void 0,
|
|
1544
|
-
loc:
|
|
1544
|
+
loc: te(e)
|
|
1545
1545
|
};
|
|
1546
1546
|
},
|
|
1547
1547
|
ondirname(e, t) {
|
|
@@ -1550,9 +1550,9 @@ const Y = [], J = new Si(Y, {
|
|
|
1550
1550
|
P = {
|
|
1551
1551
|
type: 6,
|
|
1552
1552
|
name: s,
|
|
1553
|
-
nameLoc:
|
|
1553
|
+
nameLoc: te(e, t),
|
|
1554
1554
|
value: void 0,
|
|
1555
|
-
loc:
|
|
1555
|
+
loc: te(e)
|
|
1556
1556
|
};
|
|
1557
1557
|
else if (P = {
|
|
1558
1558
|
type: 7,
|
|
@@ -1560,39 +1560,39 @@ const Y = [], J = new Si(Y, {
|
|
|
1560
1560
|
rawName: s,
|
|
1561
1561
|
exp: void 0,
|
|
1562
1562
|
arg: void 0,
|
|
1563
|
-
modifiers: s === "." ? [
|
|
1564
|
-
loc:
|
|
1563
|
+
modifiers: s === "." ? [$("prop")] : [],
|
|
1564
|
+
loc: te(e)
|
|
1565
1565
|
}, n === "pre") {
|
|
1566
1566
|
Re = J.inVPre = !0, rs = le;
|
|
1567
1567
|
const r = le.props;
|
|
1568
1568
|
for (let i = 0; i < r.length; i++)
|
|
1569
|
-
r[i].type === 7 && (r[i] =
|
|
1569
|
+
r[i].type === 7 && (r[i] = Xi(r[i]));
|
|
1570
1570
|
}
|
|
1571
1571
|
},
|
|
1572
1572
|
ondirarg(e, t) {
|
|
1573
1573
|
if (e === t) return;
|
|
1574
1574
|
const s = oe(e, t);
|
|
1575
|
-
if (Re && !
|
|
1575
|
+
if (Re && !Gs(P))
|
|
1576
1576
|
P.name += s, qe(P.nameLoc, t);
|
|
1577
1577
|
else {
|
|
1578
1578
|
const n = s[0] !== "[";
|
|
1579
|
-
P.arg =
|
|
1579
|
+
P.arg = Ct(
|
|
1580
1580
|
n ? s : s.slice(1, -1),
|
|
1581
1581
|
n,
|
|
1582
|
-
|
|
1582
|
+
te(e, t),
|
|
1583
1583
|
n ? 3 : 0
|
|
1584
1584
|
);
|
|
1585
1585
|
}
|
|
1586
1586
|
},
|
|
1587
1587
|
ondirmodifier(e, t) {
|
|
1588
1588
|
const s = oe(e, t);
|
|
1589
|
-
if (Re && !
|
|
1589
|
+
if (Re && !Gs(P))
|
|
1590
1590
|
P.name += "." + s, qe(P.nameLoc, t);
|
|
1591
1591
|
else if (P.name === "slot") {
|
|
1592
1592
|
const n = P.arg;
|
|
1593
1593
|
n && (n.content += "." + s, qe(n.loc, t));
|
|
1594
1594
|
} else {
|
|
1595
|
-
const n =
|
|
1595
|
+
const n = $(s, !0, te(e, t));
|
|
1596
1596
|
P.modifiers.push(n);
|
|
1597
1597
|
}
|
|
1598
1598
|
},
|
|
@@ -1615,20 +1615,20 @@ const Y = [], J = new Si(Y, {
|
|
|
1615
1615
|
fe,
|
|
1616
1616
|
!0
|
|
1617
1617
|
)), P.type === 6)
|
|
1618
|
-
P.name === "class" && (fe =
|
|
1618
|
+
P.name === "class" && (fe = Fn(fe).trim()), e === 1 && !fe && de(13, t), P.value = {
|
|
1619
1619
|
type: 2,
|
|
1620
1620
|
content: fe,
|
|
1621
|
-
loc: e === 1 ?
|
|
1622
|
-
}, J.inSFCRoot && le.tag === "template" && P.name === "lang" && fe && fe !== "html" && J.enterRCDATA(
|
|
1621
|
+
loc: e === 1 ? te(Oe, He) : te(Oe - 1, He + 1)
|
|
1622
|
+
}, J.inSFCRoot && le.tag === "template" && P.name === "lang" && fe && fe !== "html" && J.enterRCDATA($t("</template"), 0);
|
|
1623
1623
|
else {
|
|
1624
1624
|
let s = 0;
|
|
1625
|
-
P.exp =
|
|
1625
|
+
P.exp = Ct(
|
|
1626
1626
|
fe,
|
|
1627
1627
|
!1,
|
|
1628
|
-
|
|
1628
|
+
te(Oe, He),
|
|
1629
1629
|
0,
|
|
1630
1630
|
s
|
|
1631
|
-
), P.name === "for" && (P.forParseResult =
|
|
1631
|
+
), P.name === "for" && (P.forParseResult = Ui(P.exp));
|
|
1632
1632
|
let n = -1;
|
|
1633
1633
|
P.name === "bind" && (n = P.modifiers.findIndex(
|
|
1634
1634
|
(r) => r.content === "sync"
|
|
@@ -1647,7 +1647,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1647
1647
|
F.comments && is({
|
|
1648
1648
|
type: 3,
|
|
1649
1649
|
content: oe(e, t),
|
|
1650
|
-
loc:
|
|
1650
|
+
loc: te(e - 4, t + 3)
|
|
1651
1651
|
});
|
|
1652
1652
|
},
|
|
1653
1653
|
onend() {
|
|
@@ -1688,7 +1688,7 @@ const Y = [], J = new Si(Y, {
|
|
|
1688
1688
|
break;
|
|
1689
1689
|
}
|
|
1690
1690
|
for (let t = 0; t < Y.length; t++)
|
|
1691
|
-
|
|
1691
|
+
Nt(Y[t], e - 1), de(24, Y[t].loc.start.offset);
|
|
1692
1692
|
},
|
|
1693
1693
|
oncdata(e, t) {
|
|
1694
1694
|
Y[0].ns !== 0 ? Et(oe(e, t), e, t) : de(1, e - 9);
|
|
@@ -1699,16 +1699,16 @@ const Y = [], J = new Si(Y, {
|
|
|
1699
1699
|
e - 1
|
|
1700
1700
|
);
|
|
1701
1701
|
}
|
|
1702
|
-
}),
|
|
1703
|
-
function
|
|
1704
|
-
const t = e.loc, s = e.content, n = s.match(
|
|
1702
|
+
}), Ys = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/, ji = /^\(|\)$/g;
|
|
1703
|
+
function Ui(e) {
|
|
1704
|
+
const t = e.loc, s = e.content, n = s.match(Bi);
|
|
1705
1705
|
if (!n) return;
|
|
1706
1706
|
const [, r, i] = n, o = (u, f, h = !1) => {
|
|
1707
1707
|
const x = t.start.offset + f, y = x + u.length;
|
|
1708
|
-
return
|
|
1708
|
+
return Ct(
|
|
1709
1709
|
u,
|
|
1710
1710
|
!1,
|
|
1711
|
-
|
|
1711
|
+
te(x, y),
|
|
1712
1712
|
0,
|
|
1713
1713
|
h ? 1 : 0
|
|
1714
1714
|
/* Normal */
|
|
@@ -1720,10 +1720,10 @@ function ji(e) {
|
|
|
1720
1720
|
index: void 0,
|
|
1721
1721
|
finalized: !1
|
|
1722
1722
|
};
|
|
1723
|
-
let l = r.trim().replace(
|
|
1724
|
-
const c = r.indexOf(l), m = l.match(
|
|
1723
|
+
let l = r.trim().replace(ji, "").trim();
|
|
1724
|
+
const c = r.indexOf(l), m = l.match(Ys);
|
|
1725
1725
|
if (m) {
|
|
1726
|
-
l = l.replace(
|
|
1726
|
+
l = l.replace(Ys, "").trim();
|
|
1727
1727
|
const u = m[1].trim();
|
|
1728
1728
|
let f;
|
|
1729
1729
|
if (u && (f = s.indexOf(u, c + l.length), a.key = o(u, f, !0)), m[2]) {
|
|
@@ -1743,10 +1743,10 @@ function ji(e) {
|
|
|
1743
1743
|
function oe(e, t) {
|
|
1744
1744
|
return Ae.slice(e, t);
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1747
|
-
J.inSFCRoot && (le.innerLoc =
|
|
1746
|
+
function Xs(e) {
|
|
1747
|
+
J.inSFCRoot && (le.innerLoc = te(e + 1, e + 1)), is(le);
|
|
1748
1748
|
const { tag: t, ns: s } = le;
|
|
1749
|
-
s === 0 && F.isPreTag(t) &&
|
|
1749
|
+
s === 0 && F.isPreTag(t) && Vs++, F.isVoidTag(t) ? Nt(le, e) : (Y.unshift(le), (s === 1 || s === 2) && (J.inXML = !0)), le = null;
|
|
1750
1750
|
}
|
|
1751
1751
|
function Et(e, t, s) {
|
|
1752
1752
|
{
|
|
@@ -1757,20 +1757,20 @@ function Et(e, t, s) {
|
|
|
1757
1757
|
r && r.type === 2 ? (r.content += e, qe(r.loc, s)) : n.children.push({
|
|
1758
1758
|
type: 2,
|
|
1759
1759
|
content: e,
|
|
1760
|
-
loc:
|
|
1760
|
+
loc: te(t, s)
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
s ? qe(e.loc,
|
|
1763
|
+
function Nt(e, t, s = !1) {
|
|
1764
|
+
s ? qe(e.loc, Ln(t, 60)) : qe(e.loc, Hi(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 = oe(
|
|
1765
1765
|
e.innerLoc.start.offset,
|
|
1766
1766
|
e.innerLoc.end.offset
|
|
1767
1767
|
));
|
|
1768
1768
|
const { tag: n, ns: r, children: i } = e;
|
|
1769
|
-
if (Re || (n === "slot" ? e.tagType = 2 :
|
|
1769
|
+
if (Re || (n === "slot" ? e.tagType = 2 : Qs(e) ? e.tagType = 3 : qi(e) && (e.tagType = 1)), J.inRCDATA || (e.children = Pn(i)), r === 0 && F.isIgnoreNewlineTag(n)) {
|
|
1770
1770
|
const o = i[0];
|
|
1771
1771
|
o && o.type === 2 && (o.content = o.content.replace(/^\r?\n/, ""));
|
|
1772
1772
|
}
|
|
1773
|
-
r === 0 && F.isPreTag(n) &&
|
|
1773
|
+
r === 0 && F.isPreTag(n) && Vs--, rs === e && (Re = J.inVPre = !1, rs = null), J.inXML && (Y[0] ? Y[0].ns : F.ns) === 0 && (J.inXML = !1);
|
|
1774
1774
|
{
|
|
1775
1775
|
const o = e.props;
|
|
1776
1776
|
if (process.env.NODE_ENV !== "production" && Fe(
|
|
@@ -1793,7 +1793,7 @@ function _t(e, t, s = !1) {
|
|
|
1793
1793
|
if (!J.inSFCRoot && Fe(
|
|
1794
1794
|
"COMPILER_NATIVE_TEMPLATE",
|
|
1795
1795
|
F
|
|
1796
|
-
) && e.tag === "template" && !
|
|
1796
|
+
) && e.tag === "template" && !Qs(e)) {
|
|
1797
1797
|
process.env.NODE_ENV !== "production" && Vt(
|
|
1798
1798
|
"COMPILER_NATIVE_TEMPLATE",
|
|
1799
1799
|
F,
|
|
@@ -1819,29 +1819,29 @@ function _t(e, t, s = !1) {
|
|
|
1819
1819
|
});
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Hi(e, t) {
|
|
1823
1823
|
let s = e;
|
|
1824
1824
|
for (; Ae.charCodeAt(s) !== t && s < Ae.length - 1; ) s++;
|
|
1825
1825
|
return s;
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1827
|
+
function Ln(e, t) {
|
|
1828
1828
|
let s = e;
|
|
1829
1829
|
for (; Ae.charCodeAt(s) !== t && s >= 0; ) s--;
|
|
1830
1830
|
return s;
|
|
1831
1831
|
}
|
|
1832
|
-
const
|
|
1833
|
-
function
|
|
1832
|
+
const zi = /* @__PURE__ */ new Set(["if", "else", "else-if", "for", "slot"]);
|
|
1833
|
+
function Qs({ tag: e, props: t }) {
|
|
1834
1834
|
if (e === "template") {
|
|
1835
1835
|
for (let s = 0; s < t.length; s++)
|
|
1836
|
-
if (t[s].type === 7 &&
|
|
1836
|
+
if (t[s].type === 7 && zi.has(t[s].name))
|
|
1837
1837
|
return !0;
|
|
1838
1838
|
}
|
|
1839
1839
|
return !1;
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function qi({ tag: e, props: t }) {
|
|
1842
1842
|
if (F.isCustomElement(e))
|
|
1843
1843
|
return !1;
|
|
1844
|
-
if (e === "component" ||
|
|
1844
|
+
if (e === "component" || Ki(e.charCodeAt(0)) || An(e) || F.isBuiltInComponent && F.isBuiltInComponent(e) || F.isNativeTag && !F.isNativeTag(e))
|
|
1845
1845
|
return !0;
|
|
1846
1846
|
for (let s = 0; s < t.length; s++) {
|
|
1847
1847
|
const n = t[s];
|
|
@@ -1868,33 +1868,33 @@ function zi({ tag: e, props: t }) {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
return !1;
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function Ki(e) {
|
|
1872
1872
|
return e > 64 && e < 91;
|
|
1873
1873
|
}
|
|
1874
|
-
const
|
|
1875
|
-
function
|
|
1874
|
+
const Wi = /\r\n/g;
|
|
1875
|
+
function Pn(e) {
|
|
1876
1876
|
const t = F.whitespace !== "preserve";
|
|
1877
1877
|
let s = !1;
|
|
1878
1878
|
for (let n = 0; n < e.length; n++) {
|
|
1879
1879
|
const r = e[n];
|
|
1880
1880
|
if (r.type === 2)
|
|
1881
|
-
if (
|
|
1882
|
-
r.content = r.content.replace(
|
|
1881
|
+
if (Vs)
|
|
1882
|
+
r.content = r.content.replace(Wi, `
|
|
1883
1883
|
`);
|
|
1884
|
-
else if (
|
|
1884
|
+
else if (Gi(r.content)) {
|
|
1885
1885
|
const i = e[n - 1] && e[n - 1].type, o = e[n + 1] && e[n + 1].type;
|
|
1886
|
-
!i || !o || t && (i === 3 && (o === 3 || o === 1) || i === 1 && (o === 3 || o === 1 &&
|
|
1887
|
-
} else t && (r.content =
|
|
1886
|
+
!i || !o || t && (i === 3 && (o === 3 || o === 1) || i === 1 && (o === 3 || o === 1 && Ji(r.content))) ? (s = !0, e[n] = null) : r.content = " ";
|
|
1887
|
+
} else t && (r.content = Fn(r.content));
|
|
1888
1888
|
}
|
|
1889
1889
|
return s ? e.filter(Boolean) : e;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function Gi(e) {
|
|
1892
1892
|
for (let t = 0; t < e.length; t++)
|
|
1893
1893
|
if (!ge(e.charCodeAt(t)))
|
|
1894
1894
|
return !1;
|
|
1895
1895
|
return !0;
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1897
|
+
function Ji(e) {
|
|
1898
1898
|
for (let t = 0; t < e.length; t++) {
|
|
1899
1899
|
const s = e.charCodeAt(t);
|
|
1900
1900
|
if (s === 10 || s === 13)
|
|
@@ -1902,7 +1902,7 @@ function Gi(e) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
return !1;
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Fn(e) {
|
|
1906
1906
|
let t = "", s = !1;
|
|
1907
1907
|
for (let n = 0; n < e.length; n++)
|
|
1908
1908
|
ge(e.charCodeAt(n)) ? s || (t += " ", s = !0) : (t += e[n], s = !1);
|
|
@@ -1911,7 +1911,7 @@ function Pn(e) {
|
|
|
1911
1911
|
function is(e) {
|
|
1912
1912
|
(Y[0] || ht).children.push(e);
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function te(e, t) {
|
|
1915
1915
|
return {
|
|
1916
1916
|
start: J.getPos(e),
|
|
1917
1917
|
// @ts-expect-error allow late attachment
|
|
@@ -1920,17 +1920,17 @@ function ee(e, t) {
|
|
|
1920
1920
|
source: t == null ? t : oe(e, t)
|
|
1921
1921
|
};
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1923
|
+
function Yi(e) {
|
|
1924
|
+
return te(e.start.offset, e.end.offset);
|
|
1925
1925
|
}
|
|
1926
1926
|
function qe(e, t) {
|
|
1927
1927
|
e.end = J.getPos(t), e.source = oe(e.start.offset, t);
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Xi(e) {
|
|
1930
1930
|
const t = {
|
|
1931
1931
|
type: 6,
|
|
1932
1932
|
name: e.rawName,
|
|
1933
|
-
nameLoc:
|
|
1933
|
+
nameLoc: te(
|
|
1934
1934
|
e.loc.start.offset,
|
|
1935
1935
|
e.loc.start.offset + e.rawName.length
|
|
1936
1936
|
),
|
|
@@ -1947,19 +1947,19 @@ function Yi(e) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
return t;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1951
|
-
return
|
|
1950
|
+
function Ct(e, t = !1, s, n = 0, r = 0) {
|
|
1951
|
+
return $(e, t, s, n);
|
|
1952
1952
|
}
|
|
1953
1953
|
function de(e, t, s) {
|
|
1954
1954
|
F.onError(
|
|
1955
|
-
K(e,
|
|
1955
|
+
K(e, te(t, t), void 0, s)
|
|
1956
1956
|
);
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Qi() {
|
|
1959
1959
|
J.reset(), le = null, P = null, fe = "", Oe = -1, He = -1, Y.length = 0;
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
if (
|
|
1961
|
+
function Zi(e, t) {
|
|
1962
|
+
if (Qi(), Ae = e, F = Le({}, Mn), t) {
|
|
1963
1963
|
let r;
|
|
1964
1964
|
for (r in t)
|
|
1965
1965
|
t[r] != null && (F[r] = t[r]);
|
|
@@ -1970,25 +1970,25 @@ function Qi(e, t) {
|
|
|
1970
1970
|
);
|
|
1971
1971
|
J.mode = F.parseMode === "html" ? 1 : F.parseMode === "sfc" ? 2 : 0, J.inXML = F.ns === 1 || F.ns === 2;
|
|
1972
1972
|
const s = t && t.delimiters;
|
|
1973
|
-
s && (J.delimiterOpen =
|
|
1973
|
+
s && (J.delimiterOpen = $t(s[0]), J.delimiterClose = $t(s[1]));
|
|
1974
1974
|
const n = ht = Ei([], e);
|
|
1975
|
-
return J.parse(Ae), n.loc =
|
|
1975
|
+
return J.parse(Ae), n.loc = te(0, e.length), n.children = Pn(n.children), ht = null, n;
|
|
1976
1976
|
}
|
|
1977
|
-
function
|
|
1978
|
-
|
|
1977
|
+
function eo(e, t) {
|
|
1978
|
+
Tt(
|
|
1979
1979
|
e,
|
|
1980
1980
|
void 0,
|
|
1981
1981
|
t,
|
|
1982
1982
|
// Root node is unfortunately non-hoistable due to potential parent
|
|
1983
1983
|
// fallthrough attributes.
|
|
1984
|
-
!!
|
|
1984
|
+
!!Bn(e)
|
|
1985
1985
|
);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Bn(e) {
|
|
1988
1988
|
const t = e.children.filter((s) => s.type !== 3);
|
|
1989
|
-
return t.length === 1 && t[0].type === 1 && !
|
|
1989
|
+
return t.length === 1 && t[0].type === 1 && !Mt(t[0]) ? t[0] : null;
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function Tt(e, t, s, n = !1, r = !1) {
|
|
1992
1992
|
const { children: i } = e, o = [];
|
|
1993
1993
|
for (let u = 0; u < i.length; u++) {
|
|
1994
1994
|
const f = i[u];
|
|
@@ -2003,9 +2003,9 @@ function Ct(e, t, s, n = !1, r = !1) {
|
|
|
2003
2003
|
const x = f.codegenNode;
|
|
2004
2004
|
if (x.type === 13) {
|
|
2005
2005
|
const y = x.patchFlag;
|
|
2006
|
-
if ((y === void 0 || y === 512 || y === 1) &&
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2006
|
+
if ((y === void 0 || y === 512 || y === 1) && Un(f, s) >= 2) {
|
|
2007
|
+
const O = Hn(f);
|
|
2008
|
+
O && (x.props = s.hoist(O));
|
|
2009
2009
|
}
|
|
2010
2010
|
x.dynamicProps && (x.dynamicProps = s.hoist(x.dynamicProps));
|
|
2011
2011
|
}
|
|
@@ -2018,12 +2018,12 @@ function Ct(e, t, s, n = !1, r = !1) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
if (f.type === 1) {
|
|
2020
2020
|
const h = f.tagType === 1;
|
|
2021
|
-
h && s.scopes.vSlot++,
|
|
2021
|
+
h && s.scopes.vSlot++, Tt(f, e, s, !1, r), h && s.scopes.vSlot--;
|
|
2022
2022
|
} else if (f.type === 11)
|
|
2023
|
-
|
|
2023
|
+
Tt(f, e, s, f.children.length === 1, !0);
|
|
2024
2024
|
else if (f.type === 9)
|
|
2025
2025
|
for (let h = 0; h < f.branches.length; h++)
|
|
2026
|
-
|
|
2026
|
+
Tt(
|
|
2027
2027
|
f.branches[h],
|
|
2028
2028
|
e,
|
|
2029
2029
|
s,
|
|
@@ -2054,9 +2054,9 @@ function Ct(e, t, s, n = !1, r = !1) {
|
|
|
2054
2054
|
for (const u of o)
|
|
2055
2055
|
l.push(s.cached.length), u.codegenNode = s.cache(u.codegenNode);
|
|
2056
2056
|
l.length && e.type === 1 && e.tagType === 1 && e.codegenNode && e.codegenNode.type === 13 && e.codegenNode.children && !Ce(e.codegenNode.children) && e.codegenNode.children.type === 15 && e.codegenNode.children.properties.push(
|
|
2057
|
-
|
|
2057
|
+
ee(
|
|
2058
2058
|
"__",
|
|
2059
|
-
|
|
2059
|
+
$(JSON.stringify(l), !1)
|
|
2060
2060
|
)
|
|
2061
2061
|
);
|
|
2062
2062
|
function c(u) {
|
|
@@ -2087,7 +2087,7 @@ function ve(e, t) {
|
|
|
2087
2087
|
return 0;
|
|
2088
2088
|
if (r.patchFlag === void 0) {
|
|
2089
2089
|
let o = 3;
|
|
2090
|
-
const a =
|
|
2090
|
+
const a = Un(e, t);
|
|
2091
2091
|
if (a === 0)
|
|
2092
2092
|
return s.set(e, 0), 0;
|
|
2093
2093
|
a < o && (o = a);
|
|
@@ -2148,25 +2148,25 @@ function ve(e, t) {
|
|
|
2148
2148
|
return process.env.NODE_ENV, 0;
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
const
|
|
2151
|
+
const to = /* @__PURE__ */ new Set([
|
|
2152
2152
|
Ns,
|
|
2153
2153
|
Cs,
|
|
2154
2154
|
ut,
|
|
2155
2155
|
gt
|
|
2156
2156
|
]);
|
|
2157
|
-
function
|
|
2158
|
-
if (e.type === 14 && !re(e.callee) &&
|
|
2157
|
+
function jn(e, t) {
|
|
2158
|
+
if (e.type === 14 && !re(e.callee) && to.has(e.callee)) {
|
|
2159
2159
|
const s = e.arguments[0];
|
|
2160
2160
|
if (s.type === 4)
|
|
2161
2161
|
return ve(s, t);
|
|
2162
2162
|
if (s.type === 14)
|
|
2163
|
-
return
|
|
2163
|
+
return jn(s, t);
|
|
2164
2164
|
}
|
|
2165
2165
|
return 0;
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function Un(e, t) {
|
|
2168
2168
|
let s = 3;
|
|
2169
|
-
const n =
|
|
2169
|
+
const n = Hn(e);
|
|
2170
2170
|
if (n && n.type === 15) {
|
|
2171
2171
|
const { properties: r } = n;
|
|
2172
2172
|
for (let i = 0; i < r.length; i++) {
|
|
@@ -2175,19 +2175,19 @@ function jn(e, t) {
|
|
|
2175
2175
|
return l;
|
|
2176
2176
|
l < s && (s = l);
|
|
2177
2177
|
let c;
|
|
2178
|
-
if (a.type === 4 ? c = ve(a, t) : a.type === 14 ? c =
|
|
2178
|
+
if (a.type === 4 ? c = ve(a, t) : a.type === 14 ? c = jn(a, t) : c = 0, c === 0)
|
|
2179
2179
|
return c;
|
|
2180
2180
|
c < s && (s = c);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
2183
|
return s;
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function Hn(e) {
|
|
2186
2186
|
const t = e.codegenNode;
|
|
2187
2187
|
if (t.type === 13)
|
|
2188
2188
|
return t.props;
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function so(e, {
|
|
2191
2191
|
filename: t = "",
|
|
2192
2192
|
prefixIdentifiers: s = !1,
|
|
2193
2193
|
hoistStatic: n = !1,
|
|
@@ -2203,13 +2203,13 @@ function to(e, {
|
|
|
2203
2203
|
slotted: h = !0,
|
|
2204
2204
|
ssr: x = !1,
|
|
2205
2205
|
inSSR: y = !1,
|
|
2206
|
-
ssrCssVars:
|
|
2207
|
-
bindingMetadata: _ =
|
|
2206
|
+
ssrCssVars: O = "",
|
|
2207
|
+
bindingMetadata: _ = Qr,
|
|
2208
2208
|
inline: R = !1,
|
|
2209
2209
|
isTS: w = !1,
|
|
2210
|
-
onError:
|
|
2211
|
-
onWarn: C =
|
|
2212
|
-
compatConfig:
|
|
2210
|
+
onError: E = As,
|
|
2211
|
+
onWarn: C = Dn,
|
|
2212
|
+
compatConfig: T
|
|
2213
2213
|
}) {
|
|
2214
2214
|
const I = t.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/), S = {
|
|
2215
2215
|
// options
|
|
@@ -2229,13 +2229,13 @@ function to(e, {
|
|
|
2229
2229
|
slotted: h,
|
|
2230
2230
|
ssr: x,
|
|
2231
2231
|
inSSR: y,
|
|
2232
|
-
ssrCssVars:
|
|
2232
|
+
ssrCssVars: O,
|
|
2233
2233
|
bindingMetadata: _,
|
|
2234
2234
|
inline: R,
|
|
2235
2235
|
isTS: w,
|
|
2236
|
-
onError:
|
|
2236
|
+
onError: E,
|
|
2237
2237
|
onWarn: C,
|
|
2238
|
-
compatConfig:
|
|
2238
|
+
compatConfig: T,
|
|
2239
2239
|
// state
|
|
2240
2240
|
root: e,
|
|
2241
2241
|
helpers: /* @__PURE__ */ new Map(),
|
|
@@ -2296,8 +2296,8 @@ function to(e, {
|
|
|
2296
2296
|
removeIdentifiers(N) {
|
|
2297
2297
|
},
|
|
2298
2298
|
hoist(N) {
|
|
2299
|
-
re(N) && (N =
|
|
2300
|
-
const H =
|
|
2299
|
+
re(N) && (N = $(N)), S.hoists.push(N);
|
|
2300
|
+
const H = $(
|
|
2301
2301
|
`_hoisted_${S.hoists.length}`,
|
|
2302
2302
|
!1,
|
|
2303
2303
|
N.loc,
|
|
@@ -2306,25 +2306,25 @@ function to(e, {
|
|
|
2306
2306
|
return H.hoisted = N, H;
|
|
2307
2307
|
},
|
|
2308
2308
|
cache(N, H = !1, B = !1) {
|
|
2309
|
-
const
|
|
2309
|
+
const V = wi(
|
|
2310
2310
|
S.cached.length,
|
|
2311
2311
|
N,
|
|
2312
2312
|
H,
|
|
2313
2313
|
B
|
|
2314
2314
|
);
|
|
2315
|
-
return S.cached.push(
|
|
2315
|
+
return S.cached.push(V), V;
|
|
2316
2316
|
}
|
|
2317
2317
|
};
|
|
2318
2318
|
return S.filters = /* @__PURE__ */ new Set(), S;
|
|
2319
2319
|
}
|
|
2320
|
-
function so(e, t) {
|
|
2321
|
-
const s = to(e, t);
|
|
2322
|
-
Bt(e, s), t.hoistStatic && Zi(e, s), t.ssr || no(e, s), e.helpers = /* @__PURE__ */ new Set([...s.helpers.keys()]), e.components = [...s.components], e.directives = [...s.directives], e.imports = s.imports, e.hoists = s.hoists, e.temps = s.temps, e.cached = s.cached, e.transformed = !0, e.filters = [...s.filters];
|
|
2323
|
-
}
|
|
2324
2320
|
function no(e, t) {
|
|
2321
|
+
const s = so(e, t);
|
|
2322
|
+
jt(e, s), t.hoistStatic && eo(e, s), t.ssr || ro(e, s), e.helpers = /* @__PURE__ */ new Set([...s.helpers.keys()]), e.components = [...s.components], e.directives = [...s.directives], e.imports = s.imports, e.hoists = s.hoists, e.temps = s.temps, e.cached = s.cached, e.transformed = !0, e.filters = [...s.filters];
|
|
2323
|
+
}
|
|
2324
|
+
function ro(e, t) {
|
|
2325
2325
|
const { helper: s } = t, { children: n } = e;
|
|
2326
2326
|
if (n.length === 1) {
|
|
2327
|
-
const r =
|
|
2327
|
+
const r = Bn(e);
|
|
2328
2328
|
if (r && r.codegenNode) {
|
|
2329
2329
|
const i = r.codegenNode;
|
|
2330
2330
|
i.type === 13 && Ds(i, t), e.codegenNode = i;
|
|
@@ -2346,17 +2346,17 @@ function no(e, t) {
|
|
|
2346
2346
|
);
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function io(e, t) {
|
|
2350
2350
|
let s = 0;
|
|
2351
2351
|
const n = () => {
|
|
2352
2352
|
s--;
|
|
2353
2353
|
};
|
|
2354
2354
|
for (; s < e.children.length; s++) {
|
|
2355
2355
|
const r = e.children[s];
|
|
2356
|
-
re(r) || (t.grandParent = t.parent, t.parent = e, t.childIndex = s, t.onNodeRemoved = n,
|
|
2356
|
+
re(r) || (t.grandParent = t.parent, t.parent = e, t.childIndex = s, t.onNodeRemoved = n, jt(r, t));
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function jt(e, t) {
|
|
2360
2360
|
t.currentNode = e;
|
|
2361
2361
|
const { nodeTransforms: s } = t, n = [];
|
|
2362
2362
|
for (let i = 0; i < s.length; i++) {
|
|
@@ -2371,18 +2371,18 @@ function Bt(e, t) {
|
|
|
2371
2371
|
t.ssr || t.helper(mt);
|
|
2372
2372
|
break;
|
|
2373
2373
|
case 5:
|
|
2374
|
-
t.ssr || t.helper(
|
|
2374
|
+
t.ssr || t.helper(Bt);
|
|
2375
2375
|
break;
|
|
2376
2376
|
// for container types, further traverse downwards
|
|
2377
2377
|
case 9:
|
|
2378
2378
|
for (let i = 0; i < e.branches.length; i++)
|
|
2379
|
-
|
|
2379
|
+
jt(e.branches[i], t);
|
|
2380
2380
|
break;
|
|
2381
2381
|
case 10:
|
|
2382
2382
|
case 11:
|
|
2383
2383
|
case 1:
|
|
2384
2384
|
case 0:
|
|
2385
|
-
|
|
2385
|
+
io(e, t);
|
|
2386
2386
|
break;
|
|
2387
2387
|
}
|
|
2388
2388
|
t.currentNode = e;
|
|
@@ -2390,12 +2390,12 @@ function Bt(e, t) {
|
|
|
2390
2390
|
for (; r--; )
|
|
2391
2391
|
n[r]();
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function zn(e, t) {
|
|
2394
2394
|
const s = re(e) ? (n) => n === e : (n) => e.test(n);
|
|
2395
2395
|
return (n, r) => {
|
|
2396
2396
|
if (n.type === 1) {
|
|
2397
2397
|
const { props: i } = n;
|
|
2398
|
-
if (n.tagType === 3 && i.some(
|
|
2398
|
+
if (n.tagType === 3 && i.some(Li))
|
|
2399
2399
|
return;
|
|
2400
2400
|
const o = [];
|
|
2401
2401
|
for (let a = 0; a < i.length; a++) {
|
|
@@ -2410,8 +2410,8 @@ function Hn(e, t) {
|
|
|
2410
2410
|
}
|
|
2411
2411
|
};
|
|
2412
2412
|
}
|
|
2413
|
-
const
|
|
2414
|
-
function
|
|
2413
|
+
const Ut = "/*@__PURE__*/", qn = (e) => `${Ze[e]}: _${Ze[e]}`;
|
|
2414
|
+
function oo(e, {
|
|
2415
2415
|
mode: t = "function",
|
|
2416
2416
|
prefixIdentifiers: s = t === "module",
|
|
2417
2417
|
sourceMap: n = !1,
|
|
@@ -2449,7 +2449,7 @@ function io(e, {
|
|
|
2449
2449
|
helper(y) {
|
|
2450
2450
|
return `_${Ze[y]}`;
|
|
2451
2451
|
},
|
|
2452
|
-
push(y,
|
|
2452
|
+
push(y, O = -2, _) {
|
|
2453
2453
|
h.code += y;
|
|
2454
2454
|
},
|
|
2455
2455
|
indent() {
|
|
@@ -2472,8 +2472,8 @@ function io(e, {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
return h;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2476
|
-
const s =
|
|
2475
|
+
function ao(e, t = {}) {
|
|
2476
|
+
const s = oo(e, t);
|
|
2477
2477
|
t.onContextCreated && t.onContextCreated(s);
|
|
2478
2478
|
const {
|
|
2479
2479
|
mode: n,
|
|
@@ -2485,10 +2485,10 @@ function oo(e, t = {}) {
|
|
|
2485
2485
|
scopeId: c,
|
|
2486
2486
|
ssr: m
|
|
2487
2487
|
} = s, u = Array.from(e.helpers), f = u.length > 0, h = !i && n !== "module";
|
|
2488
|
-
|
|
2488
|
+
lo(e, s);
|
|
2489
2489
|
const y = m ? "ssrRender" : "render", _ = (m ? ["_ctx", "_push", "_parent", "_attrs"] : ["_ctx", "_cache"]).join(", ");
|
|
2490
2490
|
if (r(`function ${y}(${_}) {`), o(), h && (r("with (_ctx) {"), o(), f && (r(
|
|
2491
|
-
`const { ${u.map(
|
|
2491
|
+
`const { ${u.map(qn).join(", ")} } = _Vue
|
|
2492
2492
|
`,
|
|
2493
2493
|
-1
|
|
2494
2494
|
/* End */
|
|
@@ -2509,7 +2509,7 @@ function oo(e, t = {}) {
|
|
|
2509
2509
|
map: s.map ? s.map.toJSON() : void 0
|
|
2510
2510
|
};
|
|
2511
2511
|
}
|
|
2512
|
-
function
|
|
2512
|
+
function lo(e, t) {
|
|
2513
2513
|
const {
|
|
2514
2514
|
ssr: s,
|
|
2515
2515
|
prefixIdentifiers: n,
|
|
@@ -2530,8 +2530,8 @@ function ao(e, t) {
|
|
|
2530
2530
|
ys,
|
|
2531
2531
|
mt,
|
|
2532
2532
|
bs,
|
|
2533
|
-
|
|
2534
|
-
].filter((f) => m.includes(f)).map(
|
|
2533
|
+
Cn
|
|
2534
|
+
].filter((f) => m.includes(f)).map(qn).join(", ");
|
|
2535
2535
|
r(
|
|
2536
2536
|
`const { ${u} } = _Vue
|
|
2537
2537
|
`,
|
|
@@ -2539,11 +2539,11 @@ function ao(e, t) {
|
|
|
2539
2539
|
/* End */
|
|
2540
2540
|
);
|
|
2541
2541
|
}
|
|
2542
|
-
|
|
2542
|
+
co(e.hoists, t), i(), r("return ");
|
|
2543
2543
|
}
|
|
2544
2544
|
function Yt(e, t, { helper: s, push: n, newline: r, isTS: i }) {
|
|
2545
2545
|
const o = s(
|
|
2546
|
-
t === "filter" ? ws : t === "component" ? xs :
|
|
2546
|
+
t === "filter" ? ws : t === "component" ? xs : Es
|
|
2547
2547
|
);
|
|
2548
2548
|
for (let a = 0; a < e.length; a++) {
|
|
2549
2549
|
let l = e[a];
|
|
@@ -2553,7 +2553,7 @@ function Yt(e, t, { helper: s, push: n, newline: r, isTS: i }) {
|
|
|
2553
2553
|
), a < e.length - 1 && r();
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function co(e, t) {
|
|
2557
2557
|
if (!e.length)
|
|
2558
2558
|
return;
|
|
2559
2559
|
t.pure = !0;
|
|
@@ -2565,11 +2565,11 @@ function lo(e, t) {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
t.pure = !1;
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function uo(e) {
|
|
2569
2569
|
return re(e) || e.type === 4 || e.type === 2 || e.type === 5 || e.type === 8;
|
|
2570
2570
|
}
|
|
2571
2571
|
function Rs(e, t) {
|
|
2572
|
-
const s = e.length > 3 || process.env.NODE_ENV !== "production" && e.some((n) => Ce(n) || !
|
|
2572
|
+
const s = e.length > 3 || process.env.NODE_ENV !== "production" && e.some((n) => Ce(n) || !uo(n));
|
|
2573
2573
|
t.push("["), s && t.indent(), vt(e, t, s), s && t.deindent(), t.push("]");
|
|
2574
2574
|
}
|
|
2575
2575
|
function vt(e, t, s = !1, n = !0) {
|
|
@@ -2600,49 +2600,49 @@ function ce(e, t) {
|
|
|
2600
2600
|
case 1:
|
|
2601
2601
|
case 9:
|
|
2602
2602
|
case 11:
|
|
2603
|
-
process.env.NODE_ENV !== "production" &&
|
|
2603
|
+
process.env.NODE_ENV !== "production" && Ws(
|
|
2604
2604
|
e.codegenNode != null,
|
|
2605
2605
|
"Codegen node is missing for element/if/for node. Apply appropriate transforms first."
|
|
2606
2606
|
), ce(e.codegenNode, t);
|
|
2607
2607
|
break;
|
|
2608
2608
|
case 2:
|
|
2609
|
-
|
|
2609
|
+
fo(e, t);
|
|
2610
2610
|
break;
|
|
2611
2611
|
case 4:
|
|
2612
|
-
|
|
2612
|
+
Kn(e, t);
|
|
2613
2613
|
break;
|
|
2614
2614
|
case 5:
|
|
2615
|
-
|
|
2615
|
+
po(e, t);
|
|
2616
2616
|
break;
|
|
2617
2617
|
case 12:
|
|
2618
2618
|
ce(e.codegenNode, t);
|
|
2619
2619
|
break;
|
|
2620
2620
|
case 8:
|
|
2621
|
-
|
|
2621
|
+
Wn(e, t);
|
|
2622
2622
|
break;
|
|
2623
2623
|
case 3:
|
|
2624
|
-
|
|
2624
|
+
mo(e, t);
|
|
2625
2625
|
break;
|
|
2626
2626
|
case 13:
|
|
2627
|
-
|
|
2627
|
+
go(e, t);
|
|
2628
2628
|
break;
|
|
2629
2629
|
case 14:
|
|
2630
|
-
|
|
2630
|
+
yo(e, t);
|
|
2631
2631
|
break;
|
|
2632
2632
|
case 15:
|
|
2633
|
-
|
|
2633
|
+
bo(e, t);
|
|
2634
2634
|
break;
|
|
2635
2635
|
case 17:
|
|
2636
|
-
|
|
2636
|
+
xo(e, t);
|
|
2637
2637
|
break;
|
|
2638
2638
|
case 18:
|
|
2639
|
-
|
|
2639
|
+
ko(e, t);
|
|
2640
2640
|
break;
|
|
2641
2641
|
case 19:
|
|
2642
2642
|
Eo(e, t);
|
|
2643
2643
|
break;
|
|
2644
2644
|
case 20:
|
|
2645
|
-
|
|
2645
|
+
wo(e, t);
|
|
2646
2646
|
break;
|
|
2647
2647
|
case 21:
|
|
2648
2648
|
vt(e.body, t, !0, !1);
|
|
@@ -2663,13 +2663,13 @@ function ce(e, t) {
|
|
|
2663
2663
|
break;
|
|
2664
2664
|
default:
|
|
2665
2665
|
if (process.env.NODE_ENV !== "production")
|
|
2666
|
-
return
|
|
2666
|
+
return Ws(!1, `unhandled codegen node type: ${e.type}`), e;
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function fo(e, t) {
|
|
2670
2670
|
t.push(JSON.stringify(e.content), -3, e);
|
|
2671
2671
|
}
|
|
2672
|
-
function
|
|
2672
|
+
function Kn(e, t) {
|
|
2673
2673
|
const { content: s, isStatic: n } = e;
|
|
2674
2674
|
t.push(
|
|
2675
2675
|
n ? JSON.stringify(s) : s,
|
|
@@ -2677,11 +2677,11 @@ function qn(e, t) {
|
|
|
2677
2677
|
e
|
|
2678
2678
|
);
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2680
|
+
function po(e, t) {
|
|
2681
2681
|
const { push: s, helper: n, pure: r } = t;
|
|
2682
|
-
r && s(
|
|
2682
|
+
r && s(Ut), s(`${n(Bt)}(`), ce(e.content, t), s(")");
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function Wn(e, t) {
|
|
2685
2685
|
for (let s = 0; s < e.children.length; s++) {
|
|
2686
2686
|
const n = e.children[s];
|
|
2687
2687
|
re(n) ? t.push(
|
|
@@ -2691,25 +2691,25 @@ function Kn(e, t) {
|
|
|
2691
2691
|
) : ce(n, t);
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function ho(e, t) {
|
|
2695
2695
|
const { push: s } = t;
|
|
2696
2696
|
if (e.type === 8)
|
|
2697
|
-
s("["),
|
|
2697
|
+
s("["), Wn(e, t), s("]");
|
|
2698
2698
|
else if (e.isStatic) {
|
|
2699
|
-
const n =
|
|
2699
|
+
const n = $s(e.content) ? e.content : JSON.stringify(e.content);
|
|
2700
2700
|
s(n, -2, e);
|
|
2701
2701
|
} else
|
|
2702
2702
|
s(`[${e.content}]`, -3, e);
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function mo(e, t) {
|
|
2705
2705
|
const { push: s, helper: n, pure: r } = t;
|
|
2706
|
-
r && s(
|
|
2706
|
+
r && s(Ut), s(
|
|
2707
2707
|
`${n(mt)}(${JSON.stringify(e.content)})`,
|
|
2708
2708
|
-3,
|
|
2709
2709
|
e
|
|
2710
2710
|
);
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function go(e, t) {
|
|
2713
2713
|
const { push: s, helper: n, pure: r } = t, {
|
|
2714
2714
|
tag: i,
|
|
2715
2715
|
props: o,
|
|
@@ -2727,29 +2727,29 @@ function mo(e, t) {
|
|
|
2727
2727
|
if (l < 0)
|
|
2728
2728
|
x = l + ` /* ${at[l]} */`;
|
|
2729
2729
|
else {
|
|
2730
|
-
const
|
|
2731
|
-
x = l + ` /* ${
|
|
2730
|
+
const O = Object.keys(at).map(Number).filter((_) => _ > 0 && l & _).map((_) => at[_]).join(", ");
|
|
2731
|
+
x = l + ` /* ${O} */`;
|
|
2732
2732
|
}
|
|
2733
2733
|
else
|
|
2734
2734
|
x = String(l);
|
|
2735
|
-
m && s(n(Ss) + "("), u && s(`(${n(Je)}(${f ? "true" : ""}), `), r && s(
|
|
2735
|
+
m && s(n(Ss) + "("), u && s(`(${n(Je)}(${f ? "true" : ""}), `), r && s(Ut);
|
|
2736
2736
|
const y = u ? st(t.inSSR, h) : tt(t.inSSR, h);
|
|
2737
2737
|
s(n(y) + "(", -2, e), vt(
|
|
2738
|
-
|
|
2738
|
+
vo([i, o, a, x, c]),
|
|
2739
2739
|
t
|
|
2740
2740
|
), s(")"), u && s(")"), m && (s(", "), ce(m, t), s(")"));
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function vo(e) {
|
|
2743
2743
|
let t = e.length;
|
|
2744
2744
|
for (; t-- && e[t] == null; )
|
|
2745
2745
|
;
|
|
2746
2746
|
return e.slice(0, t + 1).map((s) => s || "null");
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2748
|
+
function yo(e, t) {
|
|
2749
2749
|
const { push: s, helper: n, pure: r } = t, i = re(e.callee) ? e.callee : n(e.callee);
|
|
2750
|
-
r && s(
|
|
2750
|
+
r && s(Ut), s(i + "(", -2, e), vt(e.arguments, t), s(")");
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function bo(e, t) {
|
|
2753
2753
|
const { push: s, indent: n, deindent: r, newline: i } = t, { properties: o } = e;
|
|
2754
2754
|
if (!o.length) {
|
|
2755
2755
|
s("{}", -2, e);
|
|
@@ -2759,22 +2759,22 @@ function yo(e, t) {
|
|
|
2759
2759
|
s(a ? "{" : "{ "), a && n();
|
|
2760
2760
|
for (let l = 0; l < o.length; l++) {
|
|
2761
2761
|
const { key: c, value: m } = o[l];
|
|
2762
|
-
|
|
2762
|
+
ho(c, t), s(": "), ce(m, t), l < o.length - 1 && (s(","), i());
|
|
2763
2763
|
}
|
|
2764
2764
|
a && r(), s(a ? "}" : " }");
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2766
|
+
function xo(e, t) {
|
|
2767
2767
|
Rs(e.elements, t);
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2769
|
+
function ko(e, t) {
|
|
2770
2770
|
const { push: s, indent: n, deindent: r } = t, { params: i, returns: o, body: a, newline: l, isSlot: c } = e;
|
|
2771
2771
|
c && s(`_${Ze[Os]}(`), s("(", -2, e), Ce(i) ? vt(i, t) : i && ce(i, t), s(") => "), (l || a) && (s("{"), n()), o ? (l && s("return "), Ce(o) ? Rs(o, t) : ce(o, t)) : a && ce(a, t), (l || a) && (r(), s("}")), c && (e.isNonScopedSlot && s(", undefined, true"), s(")"));
|
|
2772
2772
|
}
|
|
2773
2773
|
function Eo(e, t) {
|
|
2774
2774
|
const { test: s, consequent: n, alternate: r, newline: i } = e, { push: o, indent: a, deindent: l, newline: c } = t;
|
|
2775
2775
|
if (s.type === 4) {
|
|
2776
|
-
const u =
|
|
2777
|
-
u && o("("),
|
|
2776
|
+
const u = !$s(s.content);
|
|
2777
|
+
u && o("("), Kn(s, t), u && o(")");
|
|
2778
2778
|
} else
|
|
2779
2779
|
o("("), ce(s, t), o(")");
|
|
2780
2780
|
i && a(), t.indentLevel++, i || o(" "), o("? "), ce(n, t), t.indentLevel--, i && c(), i || o(" "), o(": ");
|
|
@@ -2784,13 +2784,13 @@ function Eo(e, t) {
|
|
|
2784
2784
|
/* without newline */
|
|
2785
2785
|
);
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function wo(e, t) {
|
|
2788
2788
|
const { push: s, helper: n, indent: r, deindent: i, newline: o } = t, { needPauseTracking: a, needArraySpread: l } = e;
|
|
2789
|
-
l && s("[...("), s(`_cache[${e.index}] || (`), a && (r(), s(`${n(
|
|
2789
|
+
l && s("[...("), s(`_cache[${e.index}] || (`), a && (r(), s(`${n(At)}(-1`), e.inVOnce && s(", true"), s("),"), o(), s("(")), s(`_cache[${e.index}] = `), ce(e.value, t), a && (s(`).cacheIndex = ${e.index},`), o(), s(`${n(At)}(1),`), o(), s(`_cache[${e.index}]`), i()), s(")"), l && s(")]");
|
|
2790
2790
|
}
|
|
2791
|
-
const
|
|
2791
|
+
const So = new RegExp(
|
|
2792
2792
|
"\\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"
|
|
2793
|
-
),
|
|
2793
|
+
), _o = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
|
|
2794
2794
|
function Ke(e, t, s = !1, n = !1) {
|
|
2795
2795
|
const r = e.content;
|
|
2796
2796
|
if (r.trim())
|
|
@@ -2800,7 +2800,7 @@ function Ke(e, t, s = !1, n = !1) {
|
|
|
2800
2800
|
);
|
|
2801
2801
|
} catch (i) {
|
|
2802
2802
|
let o = i.message;
|
|
2803
|
-
const a = r.replace(
|
|
2803
|
+
const a = r.replace(_o, "").match(So);
|
|
2804
2804
|
a && (o = `avoid using JavaScript keyword as property name: "${a[0]}"`), t.onError(
|
|
2805
2805
|
K(
|
|
2806
2806
|
45,
|
|
@@ -2811,7 +2811,7 @@ function Ke(e, t, s = !1, n = !1) {
|
|
|
2811
2811
|
);
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
|
-
const
|
|
2814
|
+
const No = (e, t) => {
|
|
2815
2815
|
if (e.type === 5)
|
|
2816
2816
|
e.content = Xt(
|
|
2817
2817
|
e.content,
|
|
@@ -2837,9 +2837,9 @@ const _o = (e, t) => {
|
|
|
2837
2837
|
function Xt(e, t, s = !1, n = !1, r = Object.create(t.identifiers)) {
|
|
2838
2838
|
return process.env.NODE_ENV !== "production" && Ke(e, t, s, n), e;
|
|
2839
2839
|
}
|
|
2840
|
-
const
|
|
2840
|
+
const Co = zn(
|
|
2841
2841
|
/^(if|else|else-if)$/,
|
|
2842
|
-
(e, t, s) =>
|
|
2842
|
+
(e, t, s) => To(e, t, s, (n, r, i) => {
|
|
2843
2843
|
const o = s.parent.children;
|
|
2844
2844
|
let a = o.indexOf(n), l = 0;
|
|
2845
2845
|
for (; a-- >= 0; ) {
|
|
@@ -2848,14 +2848,14 @@ const No = Hn(
|
|
|
2848
2848
|
}
|
|
2849
2849
|
return () => {
|
|
2850
2850
|
if (i)
|
|
2851
|
-
n.codegenNode =
|
|
2851
|
+
n.codegenNode = en(
|
|
2852
2852
|
r,
|
|
2853
2853
|
l,
|
|
2854
2854
|
s
|
|
2855
2855
|
);
|
|
2856
2856
|
else {
|
|
2857
|
-
const c =
|
|
2858
|
-
c.alternate =
|
|
2857
|
+
const c = Io(n.codegenNode);
|
|
2858
|
+
c.alternate = en(
|
|
2859
2859
|
r,
|
|
2860
2860
|
l + n.branches.length - 1,
|
|
2861
2861
|
s
|
|
@@ -2864,17 +2864,17 @@ const No = Hn(
|
|
|
2864
2864
|
};
|
|
2865
2865
|
})
|
|
2866
2866
|
);
|
|
2867
|
-
function
|
|
2867
|
+
function To(e, t, s, n) {
|
|
2868
2868
|
if (t.name !== "else" && (!t.exp || !t.exp.content.trim())) {
|
|
2869
2869
|
const r = t.exp ? t.exp.loc : e.loc;
|
|
2870
2870
|
s.onError(
|
|
2871
2871
|
K(28, t.loc)
|
|
2872
|
-
), t.exp =
|
|
2872
|
+
), t.exp = $("true", !1, r);
|
|
2873
2873
|
}
|
|
2874
2874
|
if (process.env.NODE_ENV !== "production" && t.exp && Ke(t.exp, s), t.name === "if") {
|
|
2875
|
-
const r =
|
|
2875
|
+
const r = Zs(e, t), i = {
|
|
2876
2876
|
type: 9,
|
|
2877
|
-
loc:
|
|
2877
|
+
loc: Yi(e.loc),
|
|
2878
2878
|
branches: [r]
|
|
2879
2879
|
};
|
|
2880
2880
|
if (s.replaceNode(i), n)
|
|
@@ -2896,12 +2896,12 @@ function Co(e, t, s, n) {
|
|
|
2896
2896
|
t.name === "else-if" && a.branches[a.branches.length - 1].condition === void 0 && s.onError(
|
|
2897
2897
|
K(30, e.loc)
|
|
2898
2898
|
), s.removeNode();
|
|
2899
|
-
const l =
|
|
2899
|
+
const l = Zs(e, t);
|
|
2900
2900
|
if (process.env.NODE_ENV !== "production" && i.length && // #3619 ignore comments if the v-if is direct child of <transition>
|
|
2901
2901
|
!(s.parent && s.parent.type === 1 && (s.parent.tag === "transition" || s.parent.tag === "Transition")) && (l.children = [...i, ...l.children]), process.env.NODE_ENV !== "production") {
|
|
2902
2902
|
const m = l.userKey;
|
|
2903
2903
|
m && a.branches.forEach(({ userKey: u }) => {
|
|
2904
|
-
|
|
2904
|
+
Oo(u, m) && s.onError(
|
|
2905
2905
|
K(
|
|
2906
2906
|
29,
|
|
2907
2907
|
l.userKey.loc
|
|
@@ -2911,7 +2911,7 @@ function Co(e, t, s, n) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
a.branches.push(l);
|
|
2913
2913
|
const c = n && n(a, l, !1);
|
|
2914
|
-
|
|
2914
|
+
jt(l, s), c && c(), s.currentNode = null;
|
|
2915
2915
|
} else
|
|
2916
2916
|
s.onError(
|
|
2917
2917
|
K(30, e.loc)
|
|
@@ -2920,7 +2920,7 @@ function Co(e, t, s, n) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function Zs(e, t) {
|
|
2924
2924
|
const s = e.tagType === 3;
|
|
2925
2925
|
return {
|
|
2926
2926
|
type: 10,
|
|
@@ -2931,22 +2931,22 @@ function Qs(e, t) {
|
|
|
2931
2931
|
isTemplateIf: s
|
|
2932
2932
|
};
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function en(e, t, s) {
|
|
2935
2935
|
return e.condition ? ss(
|
|
2936
2936
|
e.condition,
|
|
2937
|
-
|
|
2937
|
+
tn(e, t, s),
|
|
2938
2938
|
// make sure to pass in asBlock: true so that the comment node call
|
|
2939
2939
|
// closes the current block.
|
|
2940
2940
|
se(s.helper(mt), [
|
|
2941
2941
|
process.env.NODE_ENV !== "production" ? '"v-if"' : '""',
|
|
2942
2942
|
"true"
|
|
2943
2943
|
])
|
|
2944
|
-
) :
|
|
2944
|
+
) : tn(e, t, s);
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2947
|
-
const { helper: n } = s, r =
|
|
2946
|
+
function tn(e, t, s) {
|
|
2947
|
+
const { helper: n } = s, r = ee(
|
|
2948
2948
|
"key",
|
|
2949
|
-
|
|
2949
|
+
$(
|
|
2950
2950
|
`${t}`,
|
|
2951
2951
|
!1,
|
|
2952
2952
|
ye,
|
|
@@ -2956,7 +2956,7 @@ function en(e, t, s) {
|
|
|
2956
2956
|
if (i.length !== 1 || o.type !== 1)
|
|
2957
2957
|
if (i.length === 1 && o.type === 11) {
|
|
2958
2958
|
const l = o.codegenNode;
|
|
2959
|
-
return
|
|
2959
|
+
return Lt(l, r, s), l;
|
|
2960
2960
|
} else {
|
|
2961
2961
|
let l = 64;
|
|
2962
2962
|
return process.env.NODE_ENV !== "production" && !e.isTemplateIf && i.filter((c) => c.type !== 3).length === 1 && (l |= 2048), dt(
|
|
@@ -2974,11 +2974,11 @@ function en(e, t, s) {
|
|
|
2974
2974
|
);
|
|
2975
2975
|
}
|
|
2976
2976
|
else {
|
|
2977
|
-
const l = o.codegenNode, c =
|
|
2978
|
-
return c.type === 13 && Ds(c, s),
|
|
2977
|
+
const l = o.codegenNode, c = Fi(l);
|
|
2978
|
+
return c.type === 13 && Ds(c, s), Lt(c, r, s), l;
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function Oo(e, t) {
|
|
2982
2982
|
if (!e || e.type !== t.type)
|
|
2983
2983
|
return !1;
|
|
2984
2984
|
if (e.type === 6) {
|
|
@@ -2991,7 +2991,7 @@ function To(e, t) {
|
|
|
2991
2991
|
}
|
|
2992
2992
|
return !0;
|
|
2993
2993
|
}
|
|
2994
|
-
function
|
|
2994
|
+
function Io(e) {
|
|
2995
2995
|
for (; ; )
|
|
2996
2996
|
if (e.type === 19)
|
|
2997
2997
|
if (e.alternate.type === 19)
|
|
@@ -3000,7 +3000,7 @@ function Oo(e) {
|
|
|
3000
3000
|
return e;
|
|
3001
3001
|
else e.type === 20 && (e = e.value);
|
|
3002
3002
|
}
|
|
3003
|
-
const
|
|
3003
|
+
const Do = (e, t, s) => {
|
|
3004
3004
|
const { modifiers: n, loc: r } = e, i = e.arg;
|
|
3005
3005
|
let { exp: o } = e;
|
|
3006
3006
|
if (o && o.type === 4 && !o.content.trim() && (o = void 0), !o) {
|
|
@@ -3012,30 +3012,30 @@ const Io = (e, t, s) => {
|
|
|
3012
3012
|
)
|
|
3013
3013
|
), {
|
|
3014
3014
|
props: [
|
|
3015
|
-
|
|
3015
|
+
ee(i, $("", !0, r))
|
|
3016
3016
|
]
|
|
3017
3017
|
};
|
|
3018
|
-
|
|
3018
|
+
Gn(e), o = e.exp;
|
|
3019
3019
|
}
|
|
3020
|
-
return i.type !== 4 ? (i.children.unshift("("), i.children.push(') || ""')) : i.isStatic || (i.content = i.content ? `${i.content} || ""` : '""'), n.some((a) => a.content === "camel") && (i.type === 4 ? i.isStatic ? i.content = Pe(i.content) : i.content = `${s.helperString(es)}(${i.content})` : (i.children.unshift(`${s.helperString(es)}(`), i.children.push(")"))), s.inSSR || (n.some((a) => a.content === "prop") &&
|
|
3021
|
-
props: [
|
|
3020
|
+
return i.type !== 4 ? (i.children.unshift("("), i.children.push(') || ""')) : i.isStatic || (i.content = i.content ? `${i.content} || ""` : '""'), n.some((a) => a.content === "camel") && (i.type === 4 ? i.isStatic ? i.content = Pe(i.content) : i.content = `${s.helperString(es)}(${i.content})` : (i.children.unshift(`${s.helperString(es)}(`), i.children.push(")"))), s.inSSR || (n.some((a) => a.content === "prop") && sn(i, "."), n.some((a) => a.content === "attr") && sn(i, "^")), {
|
|
3021
|
+
props: [ee(i, o)]
|
|
3022
3022
|
};
|
|
3023
|
-
},
|
|
3023
|
+
}, Gn = (e, t) => {
|
|
3024
3024
|
const s = e.arg, n = Pe(s.content);
|
|
3025
|
-
e.exp =
|
|
3026
|
-
},
|
|
3025
|
+
e.exp = $(n, !1, s.loc);
|
|
3026
|
+
}, sn = (e, t) => {
|
|
3027
3027
|
e.type === 4 ? e.isStatic ? e.content = t + e.content : e.content = `\`${t}\${${e.content}}\`` : (e.children.unshift(`'${t}' + (`), e.children.push(")"));
|
|
3028
|
-
},
|
|
3028
|
+
}, Ao = zn(
|
|
3029
3029
|
"for",
|
|
3030
3030
|
(e, t, s) => {
|
|
3031
3031
|
const { helper: n, removeHelper: r } = s;
|
|
3032
|
-
return
|
|
3032
|
+
return $o(e, t, s, (i) => {
|
|
3033
3033
|
const o = se(n(_s), [
|
|
3034
3034
|
i.source
|
|
3035
|
-
]), a =
|
|
3036
|
-
c && c.type === 7 && !c.exp &&
|
|
3037
|
-
let u = c && (c.type === 6 ? c.value ?
|
|
3038
|
-
const f = c && u ?
|
|
3035
|
+
]), a = Rt(e), l = pe(e, "memo"), c = ft(e, "key", !1, !0);
|
|
3036
|
+
c && c.type === 7 && !c.exp && Gn(c);
|
|
3037
|
+
let u = c && (c.type === 6 ? c.value ? $(c.value.content, !0) : void 0 : c.exp);
|
|
3038
|
+
const f = c && u ? ee("key", u) : null, h = i.source.type === 4 && i.source.constType > 0, x = h ? 64 : c ? 128 : 256;
|
|
3039
3039
|
return i.codegenNode = dt(
|
|
3040
3040
|
s,
|
|
3041
3041
|
n(ct),
|
|
@@ -3050,21 +3050,21 @@ const Io = (e, t, s) => {
|
|
|
3050
3050
|
e.loc
|
|
3051
3051
|
), () => {
|
|
3052
3052
|
let y;
|
|
3053
|
-
const { children:
|
|
3053
|
+
const { children: O } = i;
|
|
3054
3054
|
process.env.NODE_ENV !== "production" && a && e.children.some((w) => {
|
|
3055
3055
|
if (w.type === 1) {
|
|
3056
|
-
const
|
|
3057
|
-
if (
|
|
3056
|
+
const E = ft(w, "key");
|
|
3057
|
+
if (E)
|
|
3058
3058
|
return s.onError(
|
|
3059
3059
|
K(
|
|
3060
3060
|
33,
|
|
3061
|
-
|
|
3061
|
+
E.loc
|
|
3062
3062
|
)
|
|
3063
3063
|
), !0;
|
|
3064
3064
|
}
|
|
3065
3065
|
});
|
|
3066
|
-
const _ =
|
|
3067
|
-
if (R ? (y = R.codegenNode, a && f &&
|
|
3066
|
+
const _ = O.length !== 1 || O[0].type !== 1, R = Mt(e) ? e : a && e.children.length === 1 && Mt(e.children[0]) ? e.children[0] : null;
|
|
3067
|
+
if (R ? (y = R.codegenNode, a && f && Lt(y, f, s)) : _ ? y = dt(
|
|
3068
3068
|
s,
|
|
3069
3069
|
n(ct),
|
|
3070
3070
|
f ? xe([f]) : void 0,
|
|
@@ -3075,32 +3075,32 @@ const Io = (e, t, s) => {
|
|
|
3075
3075
|
!0,
|
|
3076
3076
|
void 0,
|
|
3077
3077
|
!1
|
|
3078
|
-
) : (y =
|
|
3078
|
+
) : (y = O[0].codegenNode, a && f && Lt(y, f, s), y.isBlock !== !h && (y.isBlock ? (r(Je), r(
|
|
3079
3079
|
st(s.inSSR, y.isComponent)
|
|
3080
3080
|
)) : r(
|
|
3081
3081
|
tt(s.inSSR, y.isComponent)
|
|
3082
3082
|
)), y.isBlock = !h, y.isBlock ? (n(Je), n(st(s.inSSR, y.isComponent))) : n(tt(s.inSSR, y.isComponent))), l) {
|
|
3083
3083
|
const w = et(
|
|
3084
3084
|
os(i.parseResult, [
|
|
3085
|
-
|
|
3085
|
+
$("_cached")
|
|
3086
3086
|
])
|
|
3087
3087
|
);
|
|
3088
|
-
w.body =
|
|
3088
|
+
w.body = Si([
|
|
3089
3089
|
_e(["const _memo = (", l.exp, ")"]),
|
|
3090
3090
|
_e([
|
|
3091
3091
|
"if (_cached",
|
|
3092
3092
|
...u ? [" && _cached.key === ", u] : [],
|
|
3093
3093
|
` && ${s.helperString(
|
|
3094
|
-
|
|
3094
|
+
In
|
|
3095
3095
|
)}(_cached, _memo)) return _cached`
|
|
3096
3096
|
]),
|
|
3097
3097
|
_e(["const _item = ", y]),
|
|
3098
|
-
|
|
3099
|
-
|
|
3098
|
+
$("_item.memo = _memo"),
|
|
3099
|
+
$("return _item")
|
|
3100
3100
|
]), o.arguments.push(
|
|
3101
3101
|
w,
|
|
3102
|
-
|
|
3103
|
-
|
|
3102
|
+
$("_cache"),
|
|
3103
|
+
$(String(s.cached.length))
|
|
3104
3104
|
), s.cached.push(null);
|
|
3105
3105
|
} else
|
|
3106
3106
|
o.arguments.push(
|
|
@@ -3114,7 +3114,7 @@ const Io = (e, t, s) => {
|
|
|
3114
3114
|
});
|
|
3115
3115
|
}
|
|
3116
3116
|
);
|
|
3117
|
-
function
|
|
3117
|
+
function $o(e, t, s, n) {
|
|
3118
3118
|
if (!t.exp) {
|
|
3119
3119
|
s.onError(
|
|
3120
3120
|
K(31, t.loc)
|
|
@@ -3128,7 +3128,7 @@ function Ao(e, t, s, n) {
|
|
|
3128
3128
|
);
|
|
3129
3129
|
return;
|
|
3130
3130
|
}
|
|
3131
|
-
|
|
3131
|
+
Jn(r, s);
|
|
3132
3132
|
const { addIdentifiers: i, removeIdentifiers: o, scopes: a } = s, { source: l, value: c, key: m, index: u } = r, f = {
|
|
3133
3133
|
type: 11,
|
|
3134
3134
|
loc: t.loc,
|
|
@@ -3137,7 +3137,7 @@ function Ao(e, t, s, n) {
|
|
|
3137
3137
|
keyAlias: m,
|
|
3138
3138
|
objectIndexAlias: u,
|
|
3139
3139
|
parseResult: r,
|
|
3140
|
-
children:
|
|
3140
|
+
children: Rt(e) ? e.children : [e]
|
|
3141
3141
|
};
|
|
3142
3142
|
s.replaceNode(f), a.vFor++;
|
|
3143
3143
|
const h = n && n(f);
|
|
@@ -3145,7 +3145,7 @@ function Ao(e, t, s, n) {
|
|
|
3145
3145
|
a.vFor--, h && h();
|
|
3146
3146
|
};
|
|
3147
3147
|
}
|
|
3148
|
-
function
|
|
3148
|
+
function Jn(e, t) {
|
|
3149
3149
|
e.finalized || (process.env.NODE_ENV !== "production" && (Ke(e.source, t), e.key && Ke(
|
|
3150
3150
|
e.key,
|
|
3151
3151
|
t,
|
|
@@ -3167,9 +3167,9 @@ function Vo(e) {
|
|
|
3167
3167
|
let t = e.length;
|
|
3168
3168
|
for (; t-- && !e[t]; )
|
|
3169
3169
|
;
|
|
3170
|
-
return e.slice(0, t + 1).map((s, n) => s ||
|
|
3170
|
+
return e.slice(0, t + 1).map((s, n) => s || $("_".repeat(n + 1), !1));
|
|
3171
3171
|
}
|
|
3172
|
-
const
|
|
3172
|
+
const nn = $("undefined", !1), Ro = (e, t) => {
|
|
3173
3173
|
if (e.type === 1 && (e.tagType === 1 || e.tagType === 3)) {
|
|
3174
3174
|
const s = pe(e, "slot");
|
|
3175
3175
|
if (s)
|
|
@@ -3177,23 +3177,23 @@ const sn = A("undefined", !1), $o = (e, t) => {
|
|
|
3177
3177
|
t.scopes.vSlot--;
|
|
3178
3178
|
};
|
|
3179
3179
|
}
|
|
3180
|
-
},
|
|
3180
|
+
}, Mo = (e, t, s, n) => et(
|
|
3181
3181
|
e,
|
|
3182
3182
|
s,
|
|
3183
3183
|
!1,
|
|
3184
3184
|
!0,
|
|
3185
3185
|
s.length ? s[0].loc : n
|
|
3186
3186
|
);
|
|
3187
|
-
function
|
|
3187
|
+
function Lo(e, t, s = Mo) {
|
|
3188
3188
|
t.helper(Os);
|
|
3189
3189
|
const { children: n, loc: r } = e, i = [], o = [];
|
|
3190
3190
|
let a = t.scopes.vSlot > 0 || t.scopes.vFor > 0;
|
|
3191
3191
|
const l = pe(e, "slot", !0);
|
|
3192
3192
|
if (l) {
|
|
3193
|
-
const { arg:
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3193
|
+
const { arg: O, exp: _ } = l;
|
|
3194
|
+
O && !he(O) && (a = !0), i.push(
|
|
3195
|
+
ee(
|
|
3196
|
+
O || $("default", !0),
|
|
3197
3197
|
s(_, void 0, n, r)
|
|
3198
3198
|
)
|
|
3199
3199
|
);
|
|
@@ -3201,10 +3201,10 @@ function Mo(e, t, s = Ro) {
|
|
|
3201
3201
|
let c = !1, m = !1;
|
|
3202
3202
|
const u = [], f = /* @__PURE__ */ new Set();
|
|
3203
3203
|
let h = 0;
|
|
3204
|
-
for (let
|
|
3205
|
-
const _ = n[
|
|
3204
|
+
for (let O = 0; O < n.length; O++) {
|
|
3205
|
+
const _ = n[O];
|
|
3206
3206
|
let R;
|
|
3207
|
-
if (
|
|
3207
|
+
if (!Rt(_) || !(R = pe(_, "slot", !0))) {
|
|
3208
3208
|
_.type !== 3 && u.push(_);
|
|
3209
3209
|
continue;
|
|
3210
3210
|
}
|
|
@@ -3215,58 +3215,58 @@ function Mo(e, t, s = Ro) {
|
|
|
3215
3215
|
break;
|
|
3216
3216
|
}
|
|
3217
3217
|
c = !0;
|
|
3218
|
-
const { children: w, loc:
|
|
3219
|
-
arg: C =
|
|
3220
|
-
exp:
|
|
3218
|
+
const { children: w, loc: E } = _, {
|
|
3219
|
+
arg: C = $("default", !0),
|
|
3220
|
+
exp: T,
|
|
3221
3221
|
loc: I
|
|
3222
3222
|
} = R;
|
|
3223
3223
|
let S;
|
|
3224
3224
|
he(C) ? S = C ? C.content : "default" : a = !0;
|
|
3225
|
-
const N = pe(_, "for"), H = s(
|
|
3226
|
-
let B,
|
|
3225
|
+
const N = pe(_, "for"), H = s(T, N, w, E);
|
|
3226
|
+
let B, V;
|
|
3227
3227
|
if (B = pe(_, "if"))
|
|
3228
3228
|
a = !0, o.push(
|
|
3229
3229
|
ss(
|
|
3230
3230
|
B.exp,
|
|
3231
|
-
|
|
3232
|
-
|
|
3231
|
+
wt(C, H, h++),
|
|
3232
|
+
nn
|
|
3233
3233
|
)
|
|
3234
3234
|
);
|
|
3235
|
-
else if (
|
|
3235
|
+
else if (V = pe(
|
|
3236
3236
|
_,
|
|
3237
3237
|
/^else(-if)?$/,
|
|
3238
3238
|
!0
|
|
3239
3239
|
/* allowEmpty */
|
|
3240
3240
|
)) {
|
|
3241
|
-
let z =
|
|
3241
|
+
let z = O, W;
|
|
3242
3242
|
for (; z-- && (W = n[z], !(W.type !== 3 && as(W))); )
|
|
3243
3243
|
;
|
|
3244
|
-
if (W &&
|
|
3244
|
+
if (W && Rt(W) && pe(W, /^(else-)?if$/)) {
|
|
3245
3245
|
let G = o[o.length - 1];
|
|
3246
3246
|
for (; G.alternate.type === 19; )
|
|
3247
3247
|
G = G.alternate;
|
|
3248
|
-
G.alternate =
|
|
3249
|
-
|
|
3250
|
-
|
|
3248
|
+
G.alternate = V.exp ? ss(
|
|
3249
|
+
V.exp,
|
|
3250
|
+
wt(
|
|
3251
3251
|
C,
|
|
3252
3252
|
H,
|
|
3253
3253
|
h++
|
|
3254
3254
|
),
|
|
3255
|
-
|
|
3256
|
-
) :
|
|
3255
|
+
nn
|
|
3256
|
+
) : wt(C, H, h++);
|
|
3257
3257
|
} else
|
|
3258
3258
|
t.onError(
|
|
3259
|
-
K(30,
|
|
3259
|
+
K(30, V.loc)
|
|
3260
3260
|
);
|
|
3261
3261
|
} else if (N) {
|
|
3262
3262
|
a = !0;
|
|
3263
3263
|
const z = N.forParseResult;
|
|
3264
|
-
z ? (
|
|
3264
|
+
z ? (Jn(z, t), o.push(
|
|
3265
3265
|
se(t.helper(_s), [
|
|
3266
3266
|
z.source,
|
|
3267
3267
|
et(
|
|
3268
3268
|
os(z),
|
|
3269
|
-
|
|
3269
|
+
wt(C, H),
|
|
3270
3270
|
!0
|
|
3271
3271
|
)
|
|
3272
3272
|
])
|
|
@@ -3289,13 +3289,13 @@ function Mo(e, t, s = Ro) {
|
|
|
3289
3289
|
}
|
|
3290
3290
|
f.add(S), S === "default" && (m = !0);
|
|
3291
3291
|
}
|
|
3292
|
-
i.push(
|
|
3292
|
+
i.push(ee(C, H));
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
3295
|
if (!l) {
|
|
3296
|
-
const
|
|
3296
|
+
const O = (_, R) => {
|
|
3297
3297
|
const w = s(_, void 0, R, r);
|
|
3298
|
-
return t.compatConfig && (w.isNonScopedSlot = !0),
|
|
3298
|
+
return t.compatConfig && (w.isNonScopedSlot = !0), ee("default", w);
|
|
3299
3299
|
};
|
|
3300
3300
|
c ? u.length && // #3766
|
|
3301
3301
|
// with whitespace: 'preserve', whitespaces between slots will end up in
|
|
@@ -3306,25 +3306,25 @@ function Mo(e, t, s = Ro) {
|
|
|
3306
3306
|
u[0].loc
|
|
3307
3307
|
)
|
|
3308
3308
|
) : i.push(
|
|
3309
|
-
|
|
3310
|
-
)) : i.push(
|
|
3309
|
+
O(void 0, u)
|
|
3310
|
+
)) : i.push(O(void 0, n));
|
|
3311
3311
|
}
|
|
3312
|
-
const x = a ? 2 :
|
|
3312
|
+
const x = a ? 2 : Ot(e.children) ? 3 : 1;
|
|
3313
3313
|
let y = xe(
|
|
3314
3314
|
i.concat(
|
|
3315
|
-
|
|
3315
|
+
ee(
|
|
3316
3316
|
"_",
|
|
3317
3317
|
// 2 = compiled but dynamic = can skip normalization, but must run diff
|
|
3318
3318
|
// 1 = compiled and static = can skip normalization AND diff as optimized
|
|
3319
|
-
|
|
3320
|
-
x + (process.env.NODE_ENV !== "production" ? ` /* ${
|
|
3319
|
+
$(
|
|
3320
|
+
x + (process.env.NODE_ENV !== "production" ? ` /* ${ni[x]} */` : ""),
|
|
3321
3321
|
!1
|
|
3322
3322
|
)
|
|
3323
3323
|
)
|
|
3324
3324
|
),
|
|
3325
3325
|
r
|
|
3326
3326
|
);
|
|
3327
|
-
return o.length && (y = se(t.helper(
|
|
3327
|
+
return o.length && (y = se(t.helper(On), [
|
|
3328
3328
|
y,
|
|
3329
3329
|
We(o)
|
|
3330
3330
|
])), {
|
|
@@ -3332,29 +3332,29 @@ function Mo(e, t, s = Ro) {
|
|
|
3332
3332
|
hasDynamicSlots: a
|
|
3333
3333
|
};
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function wt(e, t, s) {
|
|
3336
3336
|
const n = [
|
|
3337
|
-
|
|
3338
|
-
|
|
3337
|
+
ee("name", e),
|
|
3338
|
+
ee("fn", t)
|
|
3339
3339
|
];
|
|
3340
3340
|
return s != null && n.push(
|
|
3341
|
-
|
|
3341
|
+
ee("key", $(String(s), !0))
|
|
3342
3342
|
), xe(n);
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function Ot(e) {
|
|
3345
3345
|
for (let t = 0; t < e.length; t++) {
|
|
3346
3346
|
const s = e[t];
|
|
3347
3347
|
switch (s.type) {
|
|
3348
3348
|
case 1:
|
|
3349
|
-
if (s.tagType === 2 ||
|
|
3349
|
+
if (s.tagType === 2 || Ot(s.children))
|
|
3350
3350
|
return !0;
|
|
3351
3351
|
break;
|
|
3352
3352
|
case 9:
|
|
3353
|
-
if (
|
|
3353
|
+
if (Ot(s.branches)) return !0;
|
|
3354
3354
|
break;
|
|
3355
3355
|
case 10:
|
|
3356
3356
|
case 11:
|
|
3357
|
-
if (
|
|
3357
|
+
if (Ot(s.children)) return !0;
|
|
3358
3358
|
break;
|
|
3359
3359
|
}
|
|
3360
3360
|
}
|
|
@@ -3363,12 +3363,12 @@ function Tt(e) {
|
|
|
3363
3363
|
function as(e) {
|
|
3364
3364
|
return e.type !== 2 && e.type !== 12 ? !0 : e.type === 2 ? !!e.content.trim() : as(e.content);
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3366
|
+
const Yn = /* @__PURE__ */ new WeakMap(), Po = (e, t) => function() {
|
|
3367
3367
|
if (e = t.currentNode, !(e.type === 1 && (e.tagType === 0 || e.tagType === 1)))
|
|
3368
3368
|
return;
|
|
3369
3369
|
const { tag: n, props: r } = e, i = e.tagType === 1;
|
|
3370
|
-
let o = i ?
|
|
3371
|
-
const a =
|
|
3370
|
+
let o = i ? Fo(e, t) : `"${n}"`;
|
|
3371
|
+
const a = Zr(o) && o.callee === ks;
|
|
3372
3372
|
let l, c, m = 0, u, f, h, x = (
|
|
3373
3373
|
// dynamic component may resolve to plain elements
|
|
3374
3374
|
a || o === lt || o === gs || !i && // <svg> and <foreignObject> must be forced into blocks so that block
|
|
@@ -3378,7 +3378,7 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3378
3378
|
(n === "svg" || n === "foreignObject" || n === "math")
|
|
3379
3379
|
);
|
|
3380
3380
|
if (r.length > 0) {
|
|
3381
|
-
const y =
|
|
3381
|
+
const y = Xn(
|
|
3382
3382
|
e,
|
|
3383
3383
|
t,
|
|
3384
3384
|
void 0,
|
|
@@ -3386,13 +3386,13 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3386
3386
|
a
|
|
3387
3387
|
);
|
|
3388
3388
|
l = y.props, m = y.patchFlag, f = y.dynamicPropNames;
|
|
3389
|
-
const
|
|
3390
|
-
h =
|
|
3391
|
-
|
|
3389
|
+
const O = y.directives;
|
|
3390
|
+
h = O && O.length ? We(
|
|
3391
|
+
O.map((_) => jo(_, t))
|
|
3392
3392
|
) : void 0, y.shouldUseBlock && (x = !0);
|
|
3393
3393
|
}
|
|
3394
3394
|
if (e.children.length > 0)
|
|
3395
|
-
if (o ===
|
|
3395
|
+
if (o === It && (x = !0, m |= 1024, process.env.NODE_ENV !== "production" && e.children.length > 1 && t.onError(
|
|
3396
3396
|
K(46, {
|
|
3397
3397
|
start: e.children[0].loc.start,
|
|
3398
3398
|
end: e.children[e.children.length - 1].loc.end,
|
|
@@ -3400,15 +3400,15 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3400
3400
|
})
|
|
3401
3401
|
)), i && // Teleport is not a real component and has dedicated runtime handling
|
|
3402
3402
|
o !== lt && // explained above.
|
|
3403
|
-
o !==
|
|
3404
|
-
const { slots:
|
|
3405
|
-
c =
|
|
3403
|
+
o !== It) {
|
|
3404
|
+
const { slots: O, hasDynamicSlots: _ } = Lo(e, t);
|
|
3405
|
+
c = O, _ && (m |= 1024);
|
|
3406
3406
|
} else if (e.children.length === 1 && o !== lt) {
|
|
3407
|
-
const
|
|
3408
|
-
R && ve(
|
|
3407
|
+
const O = e.children[0], _ = O.type, R = _ === 5 || _ === 8;
|
|
3408
|
+
R && ve(O, t) === 0 && (m |= 1), R || _ === 2 ? c = O : c = e.children;
|
|
3409
3409
|
} else
|
|
3410
3410
|
c = e.children;
|
|
3411
|
-
f && f.length && (u =
|
|
3411
|
+
f && f.length && (u = Uo(f)), e.codegenNode = dt(
|
|
3412
3412
|
t,
|
|
3413
3413
|
o,
|
|
3414
3414
|
l,
|
|
@@ -3422,7 +3422,7 @@ const Jn = /* @__PURE__ */ new WeakMap(), Lo = (e, t) => function() {
|
|
|
3422
3422
|
e.loc
|
|
3423
3423
|
);
|
|
3424
3424
|
};
|
|
3425
|
-
function
|
|
3425
|
+
function Fo(e, t, s = !1) {
|
|
3426
3426
|
let { tag: n } = e;
|
|
3427
3427
|
const r = ls(n), i = ft(
|
|
3428
3428
|
e,
|
|
@@ -3437,47 +3437,47 @@ function Po(e, t, s = !1) {
|
|
|
3437
3437
|
t
|
|
3438
3438
|
)) {
|
|
3439
3439
|
let a;
|
|
3440
|
-
if (i.type === 6 ? a = i.value &&
|
|
3441
|
-
return se(t.helper(
|
|
3440
|
+
if (i.type === 6 ? a = i.value && $(i.value.content, !0) : (a = i.exp, a || (a = $("is", !1, i.arg.loc))), a)
|
|
3441
|
+
return se(t.helper(ks), [
|
|
3442
3442
|
a
|
|
3443
3443
|
]);
|
|
3444
3444
|
} else i.type === 6 && i.value.content.startsWith("vue:") && (n = i.value.content.slice(4));
|
|
3445
|
-
const o =
|
|
3445
|
+
const o = An(n) || t.isBuiltInComponent(n);
|
|
3446
3446
|
return o ? (s || t.helper(o), o) : (t.helper(xs), t.components.add(n), pt(n, "component"));
|
|
3447
3447
|
}
|
|
3448
|
-
function
|
|
3448
|
+
function Xn(e, t, s = e.props, n, r, i = !1) {
|
|
3449
3449
|
const { tag: o, loc: a, children: l } = e;
|
|
3450
3450
|
let c = [];
|
|
3451
3451
|
const m = [], u = [], f = l.length > 0;
|
|
3452
|
-
let h = !1, x = 0, y = !1,
|
|
3453
|
-
const C = [],
|
|
3452
|
+
let h = !1, x = 0, y = !1, O = !1, _ = !1, R = !1, w = !1, E = !1;
|
|
3453
|
+
const C = [], T = (H) => {
|
|
3454
3454
|
c.length && (m.push(
|
|
3455
|
-
xe(
|
|
3455
|
+
xe(rn(c), a)
|
|
3456
3456
|
), c = []), H && m.push(H);
|
|
3457
3457
|
}, I = () => {
|
|
3458
3458
|
t.scopes.vFor > 0 && c.push(
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3459
|
+
ee(
|
|
3460
|
+
$("ref_for", !0),
|
|
3461
|
+
$("true")
|
|
3462
3462
|
)
|
|
3463
3463
|
);
|
|
3464
3464
|
}, S = ({ key: H, value: B }) => {
|
|
3465
3465
|
if (he(H)) {
|
|
3466
|
-
const
|
|
3466
|
+
const V = H.content, z = Zt(V);
|
|
3467
3467
|
if (z && (!n || r) && // omit the flag for click handlers because hydration gives click
|
|
3468
3468
|
// dedicated fast path.
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
!
|
|
3469
|
+
V.toLowerCase() !== "onclick" && // omit v-model handlers
|
|
3470
|
+
V !== "onUpdate:modelValue" && // omit onVnodeXXX hooks
|
|
3471
|
+
!Hs(V) && (R = !0), z && Hs(V) && (E = !0), z && B.type === 14 && (B = B.arguments[0]), B.type === 20 || (B.type === 4 || B.type === 8) && ve(B, t) > 0)
|
|
3472
3472
|
return;
|
|
3473
|
-
|
|
3473
|
+
V === "ref" ? y = !0 : V === "class" ? O = !0 : V === "style" ? _ = !0 : V !== "key" && !C.includes(V) && C.push(V), n && (V === "class" || V === "style") && !C.includes(V) && C.push(V);
|
|
3474
3474
|
} else
|
|
3475
3475
|
w = !0;
|
|
3476
3476
|
};
|
|
3477
3477
|
for (let H = 0; H < s.length; H++) {
|
|
3478
3478
|
const B = s[H];
|
|
3479
3479
|
if (B.type === 6) {
|
|
3480
|
-
const { loc:
|
|
3480
|
+
const { loc: V, name: z, nameLoc: W, value: G } = B;
|
|
3481
3481
|
let me = !0;
|
|
3482
3482
|
if (z === "ref" && (y = !0, I()), z === "is" && (ls(o) || G && G.content.startsWith("vue:") || Fe(
|
|
3483
3483
|
"COMPILER_IS_ON_ELEMENT",
|
|
@@ -3485,24 +3485,24 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3485
3485
|
)))
|
|
3486
3486
|
continue;
|
|
3487
3487
|
c.push(
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3488
|
+
ee(
|
|
3489
|
+
$(z, !0, W),
|
|
3490
|
+
$(
|
|
3491
3491
|
G ? G.content : "",
|
|
3492
3492
|
me,
|
|
3493
|
-
G ? G.loc :
|
|
3493
|
+
G ? G.loc : V
|
|
3494
3494
|
)
|
|
3495
3495
|
)
|
|
3496
3496
|
);
|
|
3497
3497
|
} else {
|
|
3498
|
-
const { name:
|
|
3499
|
-
if (
|
|
3498
|
+
const { name: V, arg: z, exp: W, loc: G, modifiers: me } = B, Ne = V === "bind", Be = V === "on";
|
|
3499
|
+
if (V === "slot") {
|
|
3500
3500
|
n || t.onError(
|
|
3501
3501
|
K(40, G)
|
|
3502
3502
|
);
|
|
3503
3503
|
continue;
|
|
3504
3504
|
}
|
|
3505
|
-
if (
|
|
3505
|
+
if (V === "once" || V === "memo" || V === "is" || Ne && Me(z, "is") && (ls(o) || Fe(
|
|
3506
3506
|
"COMPILER_IS_ON_ELEMENT",
|
|
3507
3507
|
t
|
|
3508
3508
|
)) || Be && i)
|
|
@@ -3515,7 +3515,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3515
3515
|
) {
|
|
3516
3516
|
if (w = !0, W)
|
|
3517
3517
|
if (Ne) {
|
|
3518
|
-
if (
|
|
3518
|
+
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" && !Zt(je.content)) : !0) && nt(
|
|
3519
3519
|
"COMPILER_V_BIND_OBJECT_ORDER",
|
|
3520
3520
|
t,
|
|
3521
3521
|
G
|
|
@@ -3526,9 +3526,9 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3526
3526
|
m.unshift(W);
|
|
3527
3527
|
continue;
|
|
3528
3528
|
}
|
|
3529
|
-
I(),
|
|
3529
|
+
I(), T(), m.push(W);
|
|
3530
3530
|
} else
|
|
3531
|
-
|
|
3531
|
+
T({
|
|
3532
3532
|
type: 14,
|
|
3533
3533
|
loc: G,
|
|
3534
3534
|
callee: t.helper(Ts),
|
|
@@ -3544,31 +3544,31 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3544
3544
|
continue;
|
|
3545
3545
|
}
|
|
3546
3546
|
Ne && me.some((Q) => Q.content === "prop") && (x |= 32);
|
|
3547
|
-
const rt = t.directiveTransforms[
|
|
3547
|
+
const rt = t.directiveTransforms[V];
|
|
3548
3548
|
if (rt) {
|
|
3549
|
-
const { props: Q, needRuntime:
|
|
3550
|
-
!i && Q.forEach(S), Be && z && !he(z) ?
|
|
3551
|
-
} else
|
|
3549
|
+
const { props: Q, needRuntime: ke } = rt(B, e, t);
|
|
3550
|
+
!i && Q.forEach(S), Be && z && !he(z) ? T(xe(Q, a)) : c.push(...Q), ke && (u.push(B), ps(ke) && Yn.set(B, ke));
|
|
3551
|
+
} else ei(V) || (u.push(B), f && (h = !0));
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
3554
|
let N;
|
|
3555
|
-
if (m.length ? (
|
|
3556
|
-
t.helper(
|
|
3555
|
+
if (m.length ? (T(), m.length > 1 ? N = se(
|
|
3556
|
+
t.helper(Dt),
|
|
3557
3557
|
m,
|
|
3558
3558
|
a
|
|
3559
3559
|
) : N = m[0]) : c.length && (N = xe(
|
|
3560
|
-
|
|
3560
|
+
rn(c),
|
|
3561
3561
|
a
|
|
3562
|
-
)), w ? x |= 16 : (
|
|
3562
|
+
)), w ? x |= 16 : (O && !n && (x |= 2), _ && !n && (x |= 4), C.length && (x |= 8), R && (x |= 32)), !h && (x === 0 || x === 32) && (y || E || u.length > 0) && (x |= 512), !t.inSSR && N)
|
|
3563
3563
|
switch (N.type) {
|
|
3564
3564
|
case 15:
|
|
3565
|
-
let H = -1, B = -1,
|
|
3565
|
+
let H = -1, B = -1, V = !1;
|
|
3566
3566
|
for (let G = 0; G < N.properties.length; G++) {
|
|
3567
3567
|
const me = N.properties[G].key;
|
|
3568
|
-
he(me) ? me.content === "class" ? H = G : me.content === "style" && (B = G) : me.isHandlerKey || (
|
|
3568
|
+
he(me) ? me.content === "class" ? H = G : me.content === "style" && (B = G) : me.isHandlerKey || (V = !0);
|
|
3569
3569
|
}
|
|
3570
3570
|
const z = N.properties[H], W = N.properties[B];
|
|
3571
|
-
|
|
3571
|
+
V ? N = se(
|
|
3572
3572
|
t.helper(ut),
|
|
3573
3573
|
[N]
|
|
3574
3574
|
) : (z && !he(z.value) && (z.value = se(
|
|
@@ -3604,7 +3604,7 @@ function Yn(e, t, s = e.props, n, r, i = !1) {
|
|
|
3604
3604
|
shouldUseBlock: h
|
|
3605
3605
|
};
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function rn(e) {
|
|
3608
3608
|
const t = /* @__PURE__ */ new Map(), s = [];
|
|
3609
3609
|
for (let n = 0; n < e.length; n++) {
|
|
3610
3610
|
const r = e[n];
|
|
@@ -3613,27 +3613,27 @@ function nn(e) {
|
|
|
3613
3613
|
continue;
|
|
3614
3614
|
}
|
|
3615
3615
|
const i = r.key.content, o = t.get(i);
|
|
3616
|
-
o ? (i === "style" || i === "class" || Zt(i)) &&
|
|
3616
|
+
o ? (i === "style" || i === "class" || Zt(i)) && Bo(o, r) : (t.set(i, r), s.push(r));
|
|
3617
3617
|
}
|
|
3618
3618
|
return s;
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function Bo(e, t) {
|
|
3621
3621
|
e.value.type === 17 ? e.value.elements.push(t.value) : e.value = We(
|
|
3622
3622
|
[e.value, t.value],
|
|
3623
3623
|
e.loc
|
|
3624
3624
|
);
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3627
|
-
const s = [], n =
|
|
3628
|
-
n ? s.push(t.helperString(n)) : (t.helper(
|
|
3626
|
+
function jo(e, t) {
|
|
3627
|
+
const s = [], n = Yn.get(e);
|
|
3628
|
+
n ? s.push(t.helperString(n)) : (t.helper(Es), t.directives.add(e.name), s.push(pt(e.name, "directive")));
|
|
3629
3629
|
const { loc: r } = e;
|
|
3630
3630
|
if (e.exp && s.push(e.exp), e.arg && (e.exp || s.push("void 0"), s.push(e.arg)), Object.keys(e.modifiers).length) {
|
|
3631
3631
|
e.arg || (e.exp || s.push("void 0"), s.push("void 0"));
|
|
3632
|
-
const i =
|
|
3632
|
+
const i = $("true", !1, r);
|
|
3633
3633
|
s.push(
|
|
3634
3634
|
xe(
|
|
3635
3635
|
e.modifiers.map(
|
|
3636
|
-
(o) =>
|
|
3636
|
+
(o) => ee(o, i)
|
|
3637
3637
|
),
|
|
3638
3638
|
r
|
|
3639
3639
|
)
|
|
@@ -3641,7 +3641,7 @@ function Bo(e, t) {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
return We(s, e.loc);
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function Uo(e) {
|
|
3645
3645
|
let t = "[";
|
|
3646
3646
|
for (let s = 0, n = e.length; s < n; s++)
|
|
3647
3647
|
t += JSON.stringify(e[s]), s < n - 1 && (t += ", ");
|
|
@@ -3650,9 +3650,9 @@ function jo(e) {
|
|
|
3650
3650
|
function ls(e) {
|
|
3651
3651
|
return e === "component" || e === "Component";
|
|
3652
3652
|
}
|
|
3653
|
-
const
|
|
3654
|
-
if (
|
|
3655
|
-
const { children: s, loc: n } = e, { slotName: r, slotProps: i } =
|
|
3653
|
+
const Ho = (e, t) => {
|
|
3654
|
+
if (Mt(e)) {
|
|
3655
|
+
const { children: s, loc: n } = e, { slotName: r, slotProps: i } = zo(e, t), o = [
|
|
3656
3656
|
t.prefixIdentifiers ? "_ctx.$slots" : "$slots",
|
|
3657
3657
|
r,
|
|
3658
3658
|
"{}",
|
|
@@ -3661,13 +3661,13 @@ const Uo = (e, t) => {
|
|
|
3661
3661
|
];
|
|
3662
3662
|
let a = 2;
|
|
3663
3663
|
i && (o[2] = i, a = 3), s.length && (o[3] = et([], s, !1, !1, n), a = 4), t.scopeId && !t.slotted && (a = 5), o.splice(a), e.codegenNode = se(
|
|
3664
|
-
t.helper(
|
|
3664
|
+
t.helper(Tn),
|
|
3665
3665
|
o,
|
|
3666
3666
|
n
|
|
3667
3667
|
);
|
|
3668
3668
|
}
|
|
3669
3669
|
};
|
|
3670
|
-
function
|
|
3670
|
+
function zo(e, t) {
|
|
3671
3671
|
let s = '"default"', n;
|
|
3672
3672
|
const r = [];
|
|
3673
3673
|
for (let i = 0; i < e.props.length; i++) {
|
|
@@ -3679,13 +3679,13 @@ function Ho(e, t) {
|
|
|
3679
3679
|
s = o.exp;
|
|
3680
3680
|
else if (o.arg && o.arg.type === 4) {
|
|
3681
3681
|
const a = Pe(o.arg.content);
|
|
3682
|
-
s = o.exp =
|
|
3682
|
+
s = o.exp = $(a, !1, o.arg.loc);
|
|
3683
3683
|
}
|
|
3684
3684
|
} else
|
|
3685
3685
|
o.name === "bind" && o.arg && he(o.arg) && (o.arg.content = Pe(o.arg.content)), r.push(o);
|
|
3686
3686
|
}
|
|
3687
3687
|
if (r.length > 0) {
|
|
3688
|
-
const { props: i, directives: o } =
|
|
3688
|
+
const { props: i, directives: o } = Xn(
|
|
3689
3689
|
e,
|
|
3690
3690
|
t,
|
|
3691
3691
|
r,
|
|
@@ -3704,7 +3704,7 @@ function Ho(e, t) {
|
|
|
3704
3704
|
slotProps: n
|
|
3705
3705
|
};
|
|
3706
3706
|
}
|
|
3707
|
-
const
|
|
3707
|
+
const Qn = (e, t, s, n) => {
|
|
3708
3708
|
const { loc: r, modifiers: i, arg: o } = e;
|
|
3709
3709
|
!e.exp && !i.length && s.onError(K(35, r));
|
|
3710
3710
|
let a;
|
|
@@ -3715,13 +3715,13 @@ const Xn = (e, t, s, n) => {
|
|
|
3715
3715
|
const f = t.tagType !== 0 || u.startsWith("vnode") || !/[A-Z]/.test(u) ? (
|
|
3716
3716
|
// for non-element and vnode lifecycle event listeners, auto convert
|
|
3717
3717
|
// it to camelCase. See issue #2249
|
|
3718
|
-
|
|
3718
|
+
si(Pe(u))
|
|
3719
3719
|
) : (
|
|
3720
3720
|
// preserve case for plain element listeners that have uppercase
|
|
3721
3721
|
// letters, as these may be custom elements' custom events
|
|
3722
3722
|
`on:${u}`
|
|
3723
3723
|
);
|
|
3724
|
-
a =
|
|
3724
|
+
a = $(f, !0, o.loc);
|
|
3725
3725
|
} else
|
|
3726
3726
|
a = _e([
|
|
3727
3727
|
`${s.helperString(ts)}(`,
|
|
@@ -3734,7 +3734,7 @@ const Xn = (e, t, s, n) => {
|
|
|
3734
3734
|
l && !l.content.trim() && (l = void 0);
|
|
3735
3735
|
let c = s.cacheHandlers && !l && !s.inVOnce;
|
|
3736
3736
|
if (l) {
|
|
3737
|
-
const u = Vn(l), f = !(u ||
|
|
3737
|
+
const u = Vn(l), f = !(u || Ri(l)), h = l.content.includes(";");
|
|
3738
3738
|
process.env.NODE_ENV !== "production" && Ke(
|
|
3739
3739
|
l,
|
|
3740
3740
|
s,
|
|
@@ -3748,14 +3748,14 @@ const Xn = (e, t, s, n) => {
|
|
|
3748
3748
|
}
|
|
3749
3749
|
let m = {
|
|
3750
3750
|
props: [
|
|
3751
|
-
|
|
3751
|
+
ee(
|
|
3752
3752
|
a,
|
|
3753
|
-
l ||
|
|
3753
|
+
l || $("() => {}", !1, r)
|
|
3754
3754
|
)
|
|
3755
3755
|
]
|
|
3756
3756
|
};
|
|
3757
3757
|
return n && (m = n(m)), c && (m.props[0].value = s.cache(m.props[0].value)), m.props.forEach((u) => u.key.isHandlerKey = !0), m;
|
|
3758
|
-
},
|
|
3758
|
+
}, qo = (e, t) => {
|
|
3759
3759
|
if (e.type === 0 || e.type === 1 || e.type === 11 || e.type === 10)
|
|
3760
3760
|
return () => {
|
|
3761
3761
|
const s = e.children;
|
|
@@ -3808,9 +3808,9 @@ const Xn = (e, t, s, n) => {
|
|
|
3808
3808
|
}
|
|
3809
3809
|
}
|
|
3810
3810
|
};
|
|
3811
|
-
},
|
|
3811
|
+
}, on = /* @__PURE__ */ new WeakSet(), Ko = (e, t) => {
|
|
3812
3812
|
if (e.type === 1 && pe(e, "once", !0))
|
|
3813
|
-
return
|
|
3813
|
+
return on.has(e) || t.inVOnce || t.inSSR ? void 0 : (on.add(e), t.inVOnce = !0, t.helper(At), () => {
|
|
3814
3814
|
t.inVOnce = !1;
|
|
3815
3815
|
const s = t.currentNode;
|
|
3816
3816
|
s.codegenNode && (s.codegenNode = t.cache(
|
|
@@ -3819,20 +3819,20 @@ const Xn = (e, t, s, n) => {
|
|
|
3819
3819
|
!0
|
|
3820
3820
|
));
|
|
3821
3821
|
});
|
|
3822
|
-
},
|
|
3822
|
+
}, Zn = (e, t, s) => {
|
|
3823
3823
|
const { exp: n, arg: r } = e;
|
|
3824
3824
|
if (!n)
|
|
3825
3825
|
return s.onError(
|
|
3826
3826
|
K(41, e.loc)
|
|
3827
|
-
),
|
|
3827
|
+
), St();
|
|
3828
3828
|
const i = n.loc.source.trim(), o = n.type === 4 ? n.content : i, a = s.bindingMetadata[i];
|
|
3829
3829
|
if (a === "props" || a === "props-aliased")
|
|
3830
|
-
return s.onError(K(44, n.loc)),
|
|
3830
|
+
return s.onError(K(44, n.loc)), St();
|
|
3831
3831
|
if (!o.trim() || !Vn(n))
|
|
3832
3832
|
return s.onError(
|
|
3833
3833
|
K(42, n.loc)
|
|
3834
|
-
),
|
|
3835
|
-
const l = r ||
|
|
3834
|
+
), St();
|
|
3835
|
+
const l = r || $("modelValue", !0), c = r ? he(r) ? `onUpdate:${Pe(r.content)}` : _e(['"onUpdate:" + ', r]) : "onUpdate:modelValue";
|
|
3836
3836
|
let m;
|
|
3837
3837
|
const u = s.isTS ? "($event: any)" : "$event";
|
|
3838
3838
|
m = _e([
|
|
@@ -3842,16 +3842,16 @@ const Xn = (e, t, s, n) => {
|
|
|
3842
3842
|
]);
|
|
3843
3843
|
const f = [
|
|
3844
3844
|
// modelValue: foo
|
|
3845
|
-
|
|
3845
|
+
ee(l, e.exp),
|
|
3846
3846
|
// "onUpdate:modelValue": $event => (foo = $event)
|
|
3847
|
-
|
|
3847
|
+
ee(c, m)
|
|
3848
3848
|
];
|
|
3849
3849
|
if (e.modifiers.length && t.tagType === 1) {
|
|
3850
|
-
const h = e.modifiers.map((y) => y.content).map((y) => (
|
|
3850
|
+
const h = e.modifiers.map((y) => y.content).map((y) => ($s(y) ? y : JSON.stringify(y)) + ": true").join(", "), x = r ? he(r) ? `${r.content}Modifiers` : _e([r, ' + "Modifiers"']) : "modelModifiers";
|
|
3851
3851
|
f.push(
|
|
3852
|
-
|
|
3852
|
+
ee(
|
|
3853
3853
|
x,
|
|
3854
|
-
|
|
3854
|
+
$(
|
|
3855
3855
|
`{ ${h} }`,
|
|
3856
3856
|
!1,
|
|
3857
3857
|
e.loc,
|
|
@@ -3860,26 +3860,26 @@ const Xn = (e, t, s, n) => {
|
|
|
3860
3860
|
)
|
|
3861
3861
|
);
|
|
3862
3862
|
}
|
|
3863
|
-
return
|
|
3863
|
+
return St(f);
|
|
3864
3864
|
};
|
|
3865
|
-
function
|
|
3865
|
+
function St(e = []) {
|
|
3866
3866
|
return { props: e };
|
|
3867
3867
|
}
|
|
3868
|
-
const
|
|
3869
|
-
Fe("COMPILER_FILTERS", t) && (e.type === 5 ?
|
|
3870
|
-
s.type === 7 && s.name !== "for" && s.exp &&
|
|
3868
|
+
const Wo = /[\w).+\-_$\]]/, Go = (e, t) => {
|
|
3869
|
+
Fe("COMPILER_FILTERS", t) && (e.type === 5 ? Pt(e.content, t) : e.type === 1 && e.props.forEach((s) => {
|
|
3870
|
+
s.type === 7 && s.name !== "for" && s.exp && Pt(s.exp, t);
|
|
3871
3871
|
}));
|
|
3872
3872
|
};
|
|
3873
|
-
function
|
|
3873
|
+
function Pt(e, t) {
|
|
3874
3874
|
if (e.type === 4)
|
|
3875
|
-
|
|
3875
|
+
an(e, t);
|
|
3876
3876
|
else
|
|
3877
3877
|
for (let s = 0; s < e.children.length; s++) {
|
|
3878
3878
|
const n = e.children[s];
|
|
3879
|
-
typeof n == "object" && (n.type === 4 ?
|
|
3879
|
+
typeof n == "object" && (n.type === 4 ? an(n, t) : n.type === 8 ? Pt(e, t) : n.type === 5 && Pt(n.content, t));
|
|
3880
3880
|
}
|
|
3881
3881
|
}
|
|
3882
|
-
function
|
|
3882
|
+
function an(e, t) {
|
|
3883
3883
|
const s = e.content;
|
|
3884
3884
|
let n = !1, r = !1, i = !1, o = !1, a = 0, l = 0, c = 0, m = 0, u, f, h, x, y = [];
|
|
3885
3885
|
for (h = 0; h < s.length; h++)
|
|
@@ -3893,7 +3893,7 @@ function on(e, t) {
|
|
|
3893
3893
|
u === 47 && f !== 92 && (o = !1);
|
|
3894
3894
|
else if (u === 124 && // pipe
|
|
3895
3895
|
s.charCodeAt(h + 1) !== 124 && s.charCodeAt(h - 1) !== 124 && !a && !l && !c)
|
|
3896
|
-
x === void 0 ? (m = h + 1, x = s.slice(0, h).trim()) :
|
|
3896
|
+
x === void 0 ? (m = h + 1, x = s.slice(0, h).trim()) : O();
|
|
3897
3897
|
else {
|
|
3898
3898
|
switch (u) {
|
|
3899
3899
|
case 34:
|
|
@@ -3936,11 +3936,11 @@ function on(e, t) {
|
|
|
3936
3936
|
let _ = h - 1, R;
|
|
3937
3937
|
for (; _ >= 0 && (R = s.charAt(_), R === " "); _--)
|
|
3938
3938
|
;
|
|
3939
|
-
(!R || !
|
|
3939
|
+
(!R || !Wo.test(R)) && (o = !0);
|
|
3940
3940
|
}
|
|
3941
3941
|
}
|
|
3942
|
-
x === void 0 ? x = s.slice(0, h).trim() : m !== 0 &&
|
|
3943
|
-
function
|
|
3942
|
+
x === void 0 ? x = s.slice(0, h).trim() : m !== 0 && O();
|
|
3943
|
+
function O() {
|
|
3944
3944
|
y.push(s.slice(m, h).trim()), m = h + 1;
|
|
3945
3945
|
}
|
|
3946
3946
|
if (y.length) {
|
|
@@ -3949,11 +3949,11 @@ function on(e, t) {
|
|
|
3949
3949
|
t,
|
|
3950
3950
|
e.loc
|
|
3951
3951
|
), h = 0; h < y.length; h++)
|
|
3952
|
-
x =
|
|
3952
|
+
x = Jo(x, y[h], t);
|
|
3953
3953
|
e.content = x, e.ast = void 0;
|
|
3954
3954
|
}
|
|
3955
3955
|
}
|
|
3956
|
-
function
|
|
3956
|
+
function Jo(e, t, s) {
|
|
3957
3957
|
s.helper(ws);
|
|
3958
3958
|
const n = t.indexOf("(");
|
|
3959
3959
|
if (n < 0)
|
|
@@ -3963,10 +3963,10 @@ function Go(e, t, s) {
|
|
|
3963
3963
|
return s.filters.add(r), `${pt(r, "filter")}(${e}${i !== ")" ? "," + i : i}`;
|
|
3964
3964
|
}
|
|
3965
3965
|
}
|
|
3966
|
-
const
|
|
3966
|
+
const ln = /* @__PURE__ */ new WeakSet(), Yo = (e, t) => {
|
|
3967
3967
|
if (e.type === 1) {
|
|
3968
3968
|
const s = pe(e, "memo");
|
|
3969
|
-
return !s ||
|
|
3969
|
+
return !s || ln.has(e) ? void 0 : (ln.add(e), () => {
|
|
3970
3970
|
const n = e.codegenNode || t.currentNode.codegenNode;
|
|
3971
3971
|
n && n.type === 13 && (e.tagType !== 1 && Ds(n, t), e.codegenNode = se(t.helper(Is), [
|
|
3972
3972
|
s.exp,
|
|
@@ -3977,36 +3977,36 @@ const an = /* @__PURE__ */ new WeakSet(), Jo = (e, t) => {
|
|
|
3977
3977
|
});
|
|
3978
3978
|
}
|
|
3979
3979
|
};
|
|
3980
|
-
function
|
|
3980
|
+
function Xo(e) {
|
|
3981
3981
|
return [
|
|
3982
3982
|
[
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
...process.env.NODE_ENV !== "production" ? [
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3983
|
+
Ko,
|
|
3984
|
+
Co,
|
|
3985
|
+
Yo,
|
|
3986
|
+
Ao,
|
|
3987
|
+
Go,
|
|
3988
|
+
...process.env.NODE_ENV !== "production" ? [No] : [],
|
|
3989
|
+
Ho,
|
|
3990
|
+
Po,
|
|
3991
|
+
Ro,
|
|
3992
|
+
qo
|
|
3993
3993
|
],
|
|
3994
3994
|
{
|
|
3995
|
-
on:
|
|
3996
|
-
bind:
|
|
3997
|
-
model:
|
|
3995
|
+
on: Qn,
|
|
3996
|
+
bind: Do,
|
|
3997
|
+
model: Zn
|
|
3998
3998
|
}
|
|
3999
3999
|
];
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4001
|
+
function Qo(e, t = {}) {
|
|
4002
4002
|
const s = t.onError || As, n = t.mode === "module";
|
|
4003
4003
|
t.prefixIdentifiers === !0 ? s(K(47)) : n && s(K(48));
|
|
4004
4004
|
const r = !1;
|
|
4005
4005
|
t.cacheHandlers && s(K(49)), t.scopeId && !n && s(K(50));
|
|
4006
4006
|
const i = Le({}, t, {
|
|
4007
4007
|
prefixIdentifiers: r
|
|
4008
|
-
}), o = re(e) ?
|
|
4009
|
-
return
|
|
4008
|
+
}), o = re(e) ? Zi(e, i) : e, [a, l] = Xo();
|
|
4009
|
+
return no(
|
|
4010
4010
|
o,
|
|
4011
4011
|
Le({}, i, {
|
|
4012
4012
|
nodeTransforms: [
|
|
@@ -4021,55 +4021,55 @@ function Xo(e, t = {}) {
|
|
|
4021
4021
|
// user transforms
|
|
4022
4022
|
)
|
|
4023
4023
|
})
|
|
4024
|
-
),
|
|
4024
|
+
), ao(o, i);
|
|
4025
4025
|
}
|
|
4026
|
-
const
|
|
4026
|
+
const Zo = () => ({ props: [] });
|
|
4027
4027
|
/**
|
|
4028
4028
|
* @vue/compiler-dom v3.5.18
|
|
4029
4029
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4030
4030
|
* @license MIT
|
|
4031
4031
|
**/
|
|
4032
|
-
const
|
|
4032
|
+
const er = Symbol(process.env.NODE_ENV !== "production" ? "vModelRadio" : ""), tr = Symbol(
|
|
4033
4033
|
process.env.NODE_ENV !== "production" ? "vModelCheckbox" : ""
|
|
4034
|
-
),
|
|
4034
|
+
), sr = Symbol(process.env.NODE_ENV !== "production" ? "vModelText" : ""), nr = Symbol(
|
|
4035
4035
|
process.env.NODE_ENV !== "production" ? "vModelSelect" : ""
|
|
4036
4036
|
), cs = Symbol(
|
|
4037
4037
|
process.env.NODE_ENV !== "production" ? "vModelDynamic" : ""
|
|
4038
|
-
), nr = Symbol(
|
|
4039
|
-
process.env.NODE_ENV !== "production" ? "vOnModifiersGuard" : ""
|
|
4040
4038
|
), rr = Symbol(
|
|
4039
|
+
process.env.NODE_ENV !== "production" ? "vOnModifiersGuard" : ""
|
|
4040
|
+
), ir = Symbol(
|
|
4041
4041
|
process.env.NODE_ENV !== "production" ? "vOnKeysGuard" : ""
|
|
4042
|
-
),
|
|
4042
|
+
), or = Symbol(process.env.NODE_ENV !== "production" ? "vShow" : ""), Ms = Symbol(process.env.NODE_ENV !== "production" ? "Transition" : ""), ar = Symbol(
|
|
4043
4043
|
process.env.NODE_ENV !== "production" ? "TransitionGroup" : ""
|
|
4044
4044
|
);
|
|
4045
|
-
|
|
4046
|
-
[
|
|
4047
|
-
[
|
|
4048
|
-
[
|
|
4049
|
-
[
|
|
4045
|
+
ki({
|
|
4046
|
+
[er]: "vModelRadio",
|
|
4047
|
+
[tr]: "vModelCheckbox",
|
|
4048
|
+
[sr]: "vModelText",
|
|
4049
|
+
[nr]: "vModelSelect",
|
|
4050
4050
|
[cs]: "vModelDynamic",
|
|
4051
|
-
[
|
|
4052
|
-
[
|
|
4053
|
-
[
|
|
4051
|
+
[rr]: "withModifiers",
|
|
4052
|
+
[ir]: "withKeys",
|
|
4053
|
+
[or]: "vShow",
|
|
4054
4054
|
[Ms]: "Transition",
|
|
4055
|
-
[
|
|
4055
|
+
[ar]: "TransitionGroup"
|
|
4056
4056
|
});
|
|
4057
4057
|
let Xe;
|
|
4058
|
-
function
|
|
4058
|
+
function ea(e, t = !1) {
|
|
4059
4059
|
return Xe || (Xe = document.createElement("div")), t ? (Xe.innerHTML = `<div foo="${e.replace(/"/g, """)}">`, Xe.children[0].getAttribute("foo")) : (Xe.innerHTML = e, Xe.textContent);
|
|
4060
4060
|
}
|
|
4061
|
-
const
|
|
4061
|
+
const ta = {
|
|
4062
4062
|
parseMode: "html",
|
|
4063
|
-
isVoidTag:
|
|
4064
|
-
isNativeTag: (e) =>
|
|
4063
|
+
isVoidTag: mi,
|
|
4064
|
+
isNativeTag: (e) => fi(e) || pi(e) || hi(e),
|
|
4065
4065
|
isPreTag: (e) => e === "pre",
|
|
4066
4066
|
isIgnoreNewlineTag: (e) => e === "pre" || e === "textarea",
|
|
4067
|
-
decodeEntities:
|
|
4067
|
+
decodeEntities: ea,
|
|
4068
4068
|
isBuiltInComponent: (e) => {
|
|
4069
4069
|
if (e === "Transition" || e === "transition")
|
|
4070
4070
|
return Ms;
|
|
4071
4071
|
if (e === "TransitionGroup" || e === "transition-group")
|
|
4072
|
-
return
|
|
4072
|
+
return ar;
|
|
4073
4073
|
},
|
|
4074
4074
|
// https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
|
|
4075
4075
|
getNamespace(e, t, s) {
|
|
@@ -4091,20 +4091,20 @@ const ea = {
|
|
|
4091
4091
|
}
|
|
4092
4092
|
return n;
|
|
4093
4093
|
}
|
|
4094
|
-
},
|
|
4094
|
+
}, sa = (e) => {
|
|
4095
4095
|
e.type === 1 && e.props.forEach((t, s) => {
|
|
4096
4096
|
t.type === 6 && t.name === "style" && t.value && (e.props[s] = {
|
|
4097
4097
|
type: 7,
|
|
4098
4098
|
name: "bind",
|
|
4099
|
-
arg:
|
|
4100
|
-
exp:
|
|
4099
|
+
arg: $("style", !0, t.loc),
|
|
4100
|
+
exp: na(t.value.content, t.loc),
|
|
4101
4101
|
modifiers: [],
|
|
4102
4102
|
loc: t.loc
|
|
4103
4103
|
});
|
|
4104
4104
|
});
|
|
4105
|
-
},
|
|
4106
|
-
const s =
|
|
4107
|
-
return
|
|
4105
|
+
}, na = (e, t) => {
|
|
4106
|
+
const s = ai(e);
|
|
4107
|
+
return $(
|
|
4108
4108
|
JSON.stringify(s),
|
|
4109
4109
|
!1,
|
|
4110
4110
|
t,
|
|
@@ -4115,10 +4115,10 @@ function we(e, t) {
|
|
|
4115
4115
|
return K(
|
|
4116
4116
|
e,
|
|
4117
4117
|
t,
|
|
4118
|
-
process.env.NODE_ENV !== "production" ?
|
|
4118
|
+
process.env.NODE_ENV !== "production" ? ra : void 0
|
|
4119
4119
|
);
|
|
4120
4120
|
}
|
|
4121
|
-
const
|
|
4121
|
+
const ra = {
|
|
4122
4122
|
53: "v-html is missing expression.",
|
|
4123
4123
|
54: "v-html will override element children.",
|
|
4124
4124
|
55: "v-text is missing expression.",
|
|
@@ -4130,7 +4130,7 @@ const na = {
|
|
|
4130
4130
|
61: "v-show is missing expression.",
|
|
4131
4131
|
62: "<Transition> expects exactly one child element or component.",
|
|
4132
4132
|
63: "Tags with side effect (<script> and <style>) are ignored in client component templates."
|
|
4133
|
-
},
|
|
4133
|
+
}, ia = (e, t, s) => {
|
|
4134
4134
|
const { exp: n, loc: r } = e;
|
|
4135
4135
|
return n || s.onError(
|
|
4136
4136
|
we(53, r)
|
|
@@ -4138,13 +4138,13 @@ const na = {
|
|
|
4138
4138
|
we(54, r)
|
|
4139
4139
|
), t.children.length = 0), {
|
|
4140
4140
|
props: [
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
n ||
|
|
4141
|
+
ee(
|
|
4142
|
+
$("innerHTML", !0, r),
|
|
4143
|
+
n || $("", !0)
|
|
4144
4144
|
)
|
|
4145
4145
|
]
|
|
4146
4146
|
};
|
|
4147
|
-
},
|
|
4147
|
+
}, oa = (e, t, s) => {
|
|
4148
4148
|
const { exp: n, loc: r } = e;
|
|
4149
4149
|
return n || s.onError(
|
|
4150
4150
|
we(55, r)
|
|
@@ -4152,18 +4152,18 @@ const na = {
|
|
|
4152
4152
|
we(56, r)
|
|
4153
4153
|
), t.children.length = 0), {
|
|
4154
4154
|
props: [
|
|
4155
|
-
|
|
4156
|
-
|
|
4155
|
+
ee(
|
|
4156
|
+
$("textContent", !0),
|
|
4157
4157
|
n ? ve(n, s) > 0 ? n : se(
|
|
4158
|
-
s.helperString(
|
|
4158
|
+
s.helperString(Bt),
|
|
4159
4159
|
[n],
|
|
4160
4160
|
r
|
|
4161
|
-
) :
|
|
4161
|
+
) : $("", !0)
|
|
4162
4162
|
)
|
|
4163
4163
|
]
|
|
4164
4164
|
};
|
|
4165
|
-
},
|
|
4166
|
-
const n =
|
|
4165
|
+
}, aa = (e, t, s) => {
|
|
4166
|
+
const n = Zn(e, t, s);
|
|
4167
4167
|
if (!n.props.length || t.tagType === 1)
|
|
4168
4168
|
return n;
|
|
4169
4169
|
e.arg && s.onError(
|
|
@@ -4183,7 +4183,7 @@ const na = {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
const { tag: i } = t, o = s.isCustomElement(i);
|
|
4185
4185
|
if (i === "input" || i === "textarea" || i === "select" || o) {
|
|
4186
|
-
let a =
|
|
4186
|
+
let a = sr, l = !1;
|
|
4187
4187
|
if (i === "input" || o) {
|
|
4188
4188
|
const c = ft(t, "type");
|
|
4189
4189
|
if (c) {
|
|
@@ -4192,10 +4192,10 @@ const na = {
|
|
|
4192
4192
|
else if (c.value)
|
|
4193
4193
|
switch (c.value.content) {
|
|
4194
4194
|
case "radio":
|
|
4195
|
-
a =
|
|
4195
|
+
a = er;
|
|
4196
4196
|
break;
|
|
4197
4197
|
case "checkbox":
|
|
4198
|
-
a =
|
|
4198
|
+
a = tr;
|
|
4199
4199
|
break;
|
|
4200
4200
|
case "file":
|
|
4201
4201
|
l = !0, s.onError(
|
|
@@ -4209,8 +4209,8 @@ const na = {
|
|
|
4209
4209
|
process.env.NODE_ENV !== "production" && r();
|
|
4210
4210
|
break;
|
|
4211
4211
|
}
|
|
4212
|
-
} else
|
|
4213
|
-
} else i === "select" ? a =
|
|
4212
|
+
} else Mi(t) ? a = cs : process.env.NODE_ENV !== "production" && r();
|
|
4213
|
+
} else i === "select" ? a = nr : process.env.NODE_ENV !== "production" && r();
|
|
4214
4214
|
l || (n.needRuntime = s.helper(a));
|
|
4215
4215
|
} else
|
|
4216
4216
|
s.onError(
|
|
@@ -4222,10 +4222,10 @@ const na = {
|
|
|
4222
4222
|
return n.props = n.props.filter(
|
|
4223
4223
|
(a) => !(a.key.type === 4 && a.key.content === "modelValue")
|
|
4224
4224
|
), n;
|
|
4225
|
-
},
|
|
4225
|
+
}, la = /* @__PURE__ */ Te("passive,once,capture"), ca = /* @__PURE__ */ Te(
|
|
4226
4226
|
// event propagation management
|
|
4227
4227
|
"stop,prevent,self,ctrl,shift,alt,meta,exact,middle"
|
|
4228
|
-
),
|
|
4228
|
+
), ua = /* @__PURE__ */ Te("left,right"), lr = /* @__PURE__ */ Te("onkeyup,onkeydown,onkeypress"), da = (e, t, s, n) => {
|
|
4229
4229
|
const r = [], i = [], o = [];
|
|
4230
4230
|
for (let a = 0; a < t.length; a++) {
|
|
4231
4231
|
const l = t[a].content;
|
|
@@ -4233,52 +4233,52 @@ const na = {
|
|
|
4233
4233
|
"COMPILER_V_ON_NATIVE",
|
|
4234
4234
|
s,
|
|
4235
4235
|
n
|
|
4236
|
-
) ||
|
|
4236
|
+
) || la(l) ? o.push(l) : ua(l) ? he(e) ? lr(e.content.toLowerCase()) ? r.push(l) : i.push(l) : (r.push(l), i.push(l)) : ca(l) ? i.push(l) : r.push(l);
|
|
4237
4237
|
}
|
|
4238
4238
|
return {
|
|
4239
4239
|
keyModifiers: r,
|
|
4240
4240
|
nonKeyModifiers: i,
|
|
4241
4241
|
eventOptionModifiers: o
|
|
4242
4242
|
};
|
|
4243
|
-
},
|
|
4243
|
+
}, cn = (e, t) => he(e) && e.content.toLowerCase() === "onclick" ? $(t, !0) : e.type !== 4 ? _e([
|
|
4244
4244
|
"(",
|
|
4245
4245
|
e,
|
|
4246
4246
|
`) === "onClick" ? "${t}" : (`,
|
|
4247
4247
|
e,
|
|
4248
4248
|
")"
|
|
4249
|
-
]) : e,
|
|
4249
|
+
]) : e, fa = (e, t, s) => Qn(e, t, s, (n) => {
|
|
4250
4250
|
const { modifiers: r } = e;
|
|
4251
4251
|
if (!r.length) return n;
|
|
4252
4252
|
let { key: i, value: o } = n.props[0];
|
|
4253
|
-
const { keyModifiers: a, nonKeyModifiers: l, eventOptionModifiers: c } =
|
|
4254
|
-
if (l.includes("right") && (i =
|
|
4253
|
+
const { keyModifiers: a, nonKeyModifiers: l, eventOptionModifiers: c } = da(i, r, s, e.loc);
|
|
4254
|
+
if (l.includes("right") && (i = cn(i, "onContextmenu")), l.includes("middle") && (i = cn(i, "onMouseup")), l.length && (o = se(s.helper(rr), [
|
|
4255
4255
|
o,
|
|
4256
4256
|
JSON.stringify(l)
|
|
4257
4257
|
])), a.length && // if event name is dynamic, always wrap with keys guard
|
|
4258
|
-
(!he(i) ||
|
|
4258
|
+
(!he(i) || lr(i.content.toLowerCase())) && (o = se(s.helper(ir), [
|
|
4259
4259
|
o,
|
|
4260
4260
|
JSON.stringify(a)
|
|
4261
4261
|
])), c.length) {
|
|
4262
4262
|
const m = c.map(ms).join("");
|
|
4263
|
-
i = he(i) ?
|
|
4263
|
+
i = he(i) ? $(`${i.content}${m}`, !0) : _e(["(", i, `) + "${m}"`]);
|
|
4264
4264
|
}
|
|
4265
4265
|
return {
|
|
4266
|
-
props: [
|
|
4266
|
+
props: [ee(i, o)]
|
|
4267
4267
|
};
|
|
4268
|
-
}),
|
|
4268
|
+
}), pa = (e, t, s) => {
|
|
4269
4269
|
const { exp: n, loc: r } = e;
|
|
4270
4270
|
return n || s.onError(
|
|
4271
4271
|
we(61, r)
|
|
4272
4272
|
), {
|
|
4273
4273
|
props: [],
|
|
4274
|
-
needRuntime: s.helper(
|
|
4274
|
+
needRuntime: s.helper(or)
|
|
4275
4275
|
};
|
|
4276
|
-
},
|
|
4276
|
+
}, ha = (e, t) => {
|
|
4277
4277
|
if (e.type === 1 && e.tagType === 1 && t.isBuiltInComponent(e.tag) === Ms)
|
|
4278
4278
|
return () => {
|
|
4279
4279
|
if (!e.children.length)
|
|
4280
4280
|
return;
|
|
4281
|
-
|
|
4281
|
+
cr(e) && t.onError(
|
|
4282
4282
|
we(
|
|
4283
4283
|
62,
|
|
4284
4284
|
{
|
|
@@ -4300,13 +4300,13 @@ const na = {
|
|
|
4300
4300
|
});
|
|
4301
4301
|
};
|
|
4302
4302
|
};
|
|
4303
|
-
function
|
|
4303
|
+
function cr(e) {
|
|
4304
4304
|
const t = e.children = e.children.filter(
|
|
4305
4305
|
(n) => n.type !== 3 && !(n.type === 2 && !n.content.trim())
|
|
4306
4306
|
), s = t[0];
|
|
4307
|
-
return t.length !== 1 || s.type === 11 || s.type === 9 && s.branches.some(
|
|
4307
|
+
return t.length !== 1 || s.type === 11 || s.type === 9 && s.branches.some(cr);
|
|
4308
4308
|
}
|
|
4309
|
-
const
|
|
4309
|
+
const ma = (e, t) => {
|
|
4310
4310
|
e.type === 1 && e.tagType === 0 && (e.tag === "script" || e.tag === "style") && (process.env.NODE_ENV !== "production" && t.onError(
|
|
4311
4311
|
we(
|
|
4312
4312
|
63,
|
|
@@ -4314,10 +4314,10 @@ const ha = (e, t) => {
|
|
|
4314
4314
|
)
|
|
4315
4315
|
), t.removeNode());
|
|
4316
4316
|
};
|
|
4317
|
-
function
|
|
4318
|
-
return e === "template" ? !0 : e in
|
|
4317
|
+
function ga(e, t) {
|
|
4318
|
+
return e === "template" ? !0 : e in un ? un[e].has(t) : t in dn ? dn[t].has(e) : !(e in fn && fn[e].has(t) || t in pn && pn[t].has(e));
|
|
4319
4319
|
}
|
|
4320
|
-
const Qe = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), ze = /* @__PURE__ */ new Set([]),
|
|
4320
|
+
const Qe = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), ze = /* @__PURE__ */ new Set([]), un = {
|
|
4321
4321
|
head: /* @__PURE__ */ new Set([
|
|
4322
4322
|
"base",
|
|
4323
4323
|
"basefront",
|
|
@@ -4347,7 +4347,7 @@ const Qe = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), ze = /
|
|
|
4347
4347
|
textarea: ze,
|
|
4348
4348
|
style: ze,
|
|
4349
4349
|
title: ze
|
|
4350
|
-
},
|
|
4350
|
+
}, dn = {
|
|
4351
4351
|
// sections
|
|
4352
4352
|
html: ze,
|
|
4353
4353
|
body: /* @__PURE__ */ new Set(["html"]),
|
|
@@ -4370,7 +4370,7 @@ const Qe = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), ze = /
|
|
|
4370
4370
|
// li: new Set(["ul", "ol"]),
|
|
4371
4371
|
summary: /* @__PURE__ */ new Set(["details"]),
|
|
4372
4372
|
area: /* @__PURE__ */ new Set(["map"])
|
|
4373
|
-
},
|
|
4373
|
+
}, fn = {
|
|
4374
4374
|
p: /* @__PURE__ */ new Set([
|
|
4375
4375
|
"address",
|
|
4376
4376
|
"article",
|
|
@@ -4444,7 +4444,7 @@ const Qe = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), ze = /
|
|
|
4444
4444
|
"ul",
|
|
4445
4445
|
"var"
|
|
4446
4446
|
])
|
|
4447
|
-
},
|
|
4447
|
+
}, pn = {
|
|
4448
4448
|
a: /* @__PURE__ */ new Set(["a"]),
|
|
4449
4449
|
button: /* @__PURE__ */ new Set(["button"]),
|
|
4450
4450
|
dd: /* @__PURE__ */ new Set(["dd", "dt"]),
|
|
@@ -4457,49 +4457,49 @@ const Qe = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), ze = /
|
|
|
4457
4457
|
h4: Qe,
|
|
4458
4458
|
h5: Qe,
|
|
4459
4459
|
h6: Qe
|
|
4460
|
-
},
|
|
4461
|
-
if (e.type === 1 && e.tagType === 0 && t.parent && t.parent.type === 1 && t.parent.tagType === 0 && !
|
|
4460
|
+
}, va = (e, t) => {
|
|
4461
|
+
if (e.type === 1 && e.tagType === 0 && t.parent && t.parent.type === 1 && t.parent.tagType === 0 && !ga(t.parent.tag, e.tag)) {
|
|
4462
4462
|
const s = new SyntaxError(
|
|
4463
4463
|
`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`
|
|
4464
4464
|
);
|
|
4465
4465
|
s.loc = e.loc, t.onWarn(s);
|
|
4466
4466
|
}
|
|
4467
|
-
},
|
|
4468
|
-
|
|
4469
|
-
...process.env.NODE_ENV !== "production" ? [
|
|
4470
|
-
],
|
|
4471
|
-
cloak:
|
|
4472
|
-
html:
|
|
4473
|
-
text:
|
|
4474
|
-
model:
|
|
4467
|
+
}, ya = [
|
|
4468
|
+
sa,
|
|
4469
|
+
...process.env.NODE_ENV !== "production" ? [ha, va] : []
|
|
4470
|
+
], ba = {
|
|
4471
|
+
cloak: Zo,
|
|
4472
|
+
html: ia,
|
|
4473
|
+
text: oa,
|
|
4474
|
+
model: aa,
|
|
4475
4475
|
// override compiler-core
|
|
4476
|
-
on:
|
|
4476
|
+
on: fa,
|
|
4477
4477
|
// override compiler-core
|
|
4478
|
-
show:
|
|
4478
|
+
show: pa
|
|
4479
4479
|
};
|
|
4480
|
-
function
|
|
4481
|
-
return
|
|
4480
|
+
function xa(e, t = {}) {
|
|
4481
|
+
return Qo(
|
|
4482
4482
|
e,
|
|
4483
|
-
Le({},
|
|
4483
|
+
Le({}, ta, t, {
|
|
4484
4484
|
nodeTransforms: [
|
|
4485
4485
|
// ignore <script> and <tag>
|
|
4486
4486
|
// this is not put inside DOMNodeTransforms because that list is used
|
|
4487
4487
|
// by compiler-ssr to generate vnode fallback branches
|
|
4488
|
-
|
|
4489
|
-
...
|
|
4488
|
+
ma,
|
|
4489
|
+
...ya,
|
|
4490
4490
|
...t.nodeTransforms || []
|
|
4491
4491
|
],
|
|
4492
4492
|
directiveTransforms: Le(
|
|
4493
4493
|
{},
|
|
4494
|
-
|
|
4494
|
+
ba,
|
|
4495
4495
|
t.directiveTransforms || {}
|
|
4496
4496
|
),
|
|
4497
4497
|
transformHoist: null
|
|
4498
4498
|
})
|
|
4499
4499
|
);
|
|
4500
4500
|
}
|
|
4501
|
-
function
|
|
4502
|
-
const s = e.trim().startsWith("<") ? e : `<span>${e}</span>`, { code: n } =
|
|
4501
|
+
function ka(e, t) {
|
|
4502
|
+
const s = e.trim().startsWith("<") ? e : `<span>${e}</span>`, { code: n } = xa(s, { mode: "function" }), r = new Function("Vue", `${n}; return render`)(mr);
|
|
4503
4503
|
return ae({
|
|
4504
4504
|
name: "DynamicFromString",
|
|
4505
4505
|
props: t?.props ?? {},
|
|
@@ -4511,41 +4511,41 @@ function xa(e, t) {
|
|
|
4511
4511
|
});
|
|
4512
4512
|
}
|
|
4513
4513
|
const Qt = {};
|
|
4514
|
-
function
|
|
4515
|
-
return Qt[e] || (Qt[e] =
|
|
4514
|
+
function hn(e) {
|
|
4515
|
+
return Qt[e] || (Qt[e] = ka(e, {
|
|
4516
4516
|
props: { row: Object, value: null, data: Object, column: Object }
|
|
4517
4517
|
})), Qt[e];
|
|
4518
4518
|
}
|
|
4519
|
-
const Ea = { class: "py-10 flex flex-col justify-center items-center text-center" },
|
|
4519
|
+
const Ea = { class: "py-10 flex flex-col justify-center items-center text-center" }, wa = { class: "max-w-sm mx-auto" }, Sa = { class: "mt-2 font-medium text-gray-800 dark:text-neutral-200" }, _a = { class: "mb-5 text-sm text-gray-500 dark:text-neutral-500" }, Na = /* @__PURE__ */ ae({
|
|
4520
4520
|
__name: "nodata",
|
|
4521
4521
|
props: {
|
|
4522
4522
|
title: { default: "No data" },
|
|
4523
4523
|
description: { default: "No data here yet. We will notify you when there's an update." }
|
|
4524
4524
|
},
|
|
4525
4525
|
setup(e) {
|
|
4526
|
-
return (t, s) => (v(),
|
|
4526
|
+
return (t, s) => (v(), k("div", Ea, [
|
|
4527
4527
|
s[0] || (s[0] = ds('<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)),
|
|
4528
|
-
d("div",
|
|
4529
|
-
d("p",
|
|
4530
|
-
d("p",
|
|
4528
|
+
d("div", wa, [
|
|
4529
|
+
d("p", Sa, D(t.title), 1),
|
|
4530
|
+
d("p", _a, D(t.description), 1)
|
|
4531
4531
|
])
|
|
4532
4532
|
]));
|
|
4533
4533
|
}
|
|
4534
|
-
}),
|
|
4534
|
+
}), Ca = ["aria-checked", "data-state"], Ta = {
|
|
4535
4535
|
key: 0,
|
|
4536
4536
|
"data-state": "checked",
|
|
4537
4537
|
"data-slot": "checkbox-indicator",
|
|
4538
4538
|
class: "flex items-center justify-center transition-none text-white"
|
|
4539
|
-
},
|
|
4539
|
+
}, Oa = { class: "truncate" }, Ia = ["onKeydown"], Da = {
|
|
4540
4540
|
key: 0,
|
|
4541
4541
|
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",
|
|
4542
4542
|
role: "menu",
|
|
4543
4543
|
"aria-orientation": "vertical",
|
|
4544
4544
|
"aria-labelledby": "hs-pro-inthmtdid1"
|
|
4545
|
-
},
|
|
4545
|
+
}, Aa = { class: "py-2 px-4" }, $a = { class: "block font-medium text-[13px] text-gray-800 dark:text-neutral-200" }, Va = { class: "truncate" }, Ra = { class: "p-1 border-t border-gray-200 dark:border-neutral-800" }, Ma = { 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" }, La = ["onClick"], Pa = {
|
|
4546
4546
|
key: 0,
|
|
4547
4547
|
class: "shrink-0 size-3.5 flex justify-center items-center"
|
|
4548
|
-
},
|
|
4548
|
+
}, Fa = {
|
|
4549
4549
|
key: 1,
|
|
4550
4550
|
class: "shrink-0 size-3.5 ms-auto",
|
|
4551
4551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4557,10 +4557,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4557
4557
|
"stroke-width": "2",
|
|
4558
4558
|
"stroke-linecap": "round",
|
|
4559
4559
|
"stroke-linejoin": "round"
|
|
4560
|
-
},
|
|
4560
|
+
}, Ba = {
|
|
4561
4561
|
key: 1,
|
|
4562
4562
|
class: "p-4"
|
|
4563
|
-
},
|
|
4563
|
+
}, ja = { class: "text-base font-semibold text-gray-800 mb-3" }, Ua = { class: "mb-4" }, Ha = { class: "block text-sm font-medium text-gray-700 mb-1" }, za = ["value"], qa = { class: "flex justify-end gap-2 border-t pt-3" }, Ka = /* @__PURE__ */ ae({
|
|
4564
4564
|
__name: "EditableCell",
|
|
4565
4565
|
props: {
|
|
4566
4566
|
row: {},
|
|
@@ -4571,20 +4571,21 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4571
4571
|
accent: {},
|
|
4572
4572
|
editable: { type: Boolean },
|
|
4573
4573
|
color: {},
|
|
4574
|
+
classContent: {},
|
|
4574
4575
|
fetchOptions: { type: Function }
|
|
4575
4576
|
},
|
|
4576
4577
|
emits: ["edit", "update"],
|
|
4577
4578
|
setup(e, { emit: t }) {
|
|
4578
|
-
const s = e, n = t, r = M(!1), i = M(null), o = M(null), a = M(s.value), l = M([]), c = M("uk"), m = (
|
|
4579
|
-
|
|
4579
|
+
const s = e, n = t, r = M(!1), i = M(null), o = M(null), a = M(s.value), l = M([]), c = M("uk"), m = (T) => {
|
|
4580
|
+
T.detail.key === "locale" && (c.value = T.detail.newValue);
|
|
4580
4581
|
};
|
|
4581
|
-
De(() => s.value, (
|
|
4582
|
-
a.value =
|
|
4582
|
+
De(() => s.value, (T) => {
|
|
4583
|
+
a.value = T;
|
|
4583
4584
|
});
|
|
4584
4585
|
const u = q(() => {
|
|
4585
|
-
const
|
|
4586
|
-
if (
|
|
4587
|
-
switch (
|
|
4586
|
+
const T = s.column?.schema?.[s.column?.name];
|
|
4587
|
+
if (T?.type)
|
|
4588
|
+
switch (T.type) {
|
|
4588
4589
|
case "Text":
|
|
4589
4590
|
return "text";
|
|
4590
4591
|
case "Number":
|
|
@@ -4606,26 +4607,26 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4606
4607
|
label: I.text ?? I.label
|
|
4607
4608
|
}))), h = M(null);
|
|
4608
4609
|
function x() {
|
|
4609
|
-
s.editable && (r.value || document.dispatchEvent(new CustomEvent("close-all-popovers")), r.value = !r.value, r.value &&
|
|
4610
|
+
s.editable && (r.value || document.dispatchEvent(new CustomEvent("close-all-popovers")), r.value = !r.value, r.value && xn(() => {
|
|
4610
4611
|
i.value?.focus?.(), i.value?.showPicker?.(), u.value === "select" && C();
|
|
4611
4612
|
}));
|
|
4612
4613
|
}
|
|
4613
4614
|
function y() {
|
|
4614
4615
|
n("edit", s.row, s.column.name, a.value), n("update", s.row, s.column.name, a.value), r.value = !1;
|
|
4615
4616
|
}
|
|
4616
|
-
function
|
|
4617
|
+
function O() {
|
|
4617
4618
|
a.value = s.value, r.value = !1;
|
|
4618
4619
|
}
|
|
4619
|
-
function _(
|
|
4620
|
+
function _(T) {
|
|
4620
4621
|
if (!r.value) return;
|
|
4621
|
-
const I =
|
|
4622
|
+
const I = T.target;
|
|
4622
4623
|
h.value && !h.value.contains(I) && (r.value = !1);
|
|
4623
4624
|
}
|
|
4624
4625
|
Ge(() => {
|
|
4625
4626
|
document.addEventListener("click", _), window.addEventListener("storage", m), c.value = localStorage.locale, document.addEventListener("close-all-popovers", () => {
|
|
4626
4627
|
r.value = !1;
|
|
4627
4628
|
});
|
|
4628
|
-
}),
|
|
4629
|
+
}), yn(() => {
|
|
4629
4630
|
document.removeEventListener("click", _), window.removeEventListener("storage", m), document.removeEventListener("close-all-popovers", () => {
|
|
4630
4631
|
r.value = !1;
|
|
4631
4632
|
});
|
|
@@ -4633,10 +4634,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4633
4634
|
function R() {
|
|
4634
4635
|
s.editable && (a.value = !a.value, n("update", s.row, s.column.name, a.value));
|
|
4635
4636
|
}
|
|
4636
|
-
function w(
|
|
4637
|
-
return s.color ? s.color.startsWith("#") ?
|
|
4637
|
+
function w(T) {
|
|
4638
|
+
return s.color ? s.color.startsWith("#") ? T.replace("{c}", `[${s.color}]`) : T.replace("{c}", `${s.color}-500`) : T.replace("{c}", "cyan-500");
|
|
4638
4639
|
}
|
|
4639
|
-
const
|
|
4640
|
+
const E = q(() => ({
|
|
4640
4641
|
border: w("border-{c}"),
|
|
4641
4642
|
ring: w("focus:ring-{c}"),
|
|
4642
4643
|
text: w("text-{c}"),
|
|
@@ -4647,16 +4648,16 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4647
4648
|
if (u.value === "select" && !(s.options && s.options.length > 0 || s.column?.schema?.[s.column?.name]?.options?.length > 0) && l.value.length === 0 && s.fetchOptions)
|
|
4648
4649
|
try {
|
|
4649
4650
|
l.value = await s.fetchOptions(s.column.name);
|
|
4650
|
-
} catch (
|
|
4651
|
-
console.error(`Не удалось загрузить options для ${s.column.name}`,
|
|
4651
|
+
} catch (T) {
|
|
4652
|
+
console.error(`Не удалось загрузить options для ${s.column.name}`, T);
|
|
4652
4653
|
}
|
|
4653
4654
|
}
|
|
4654
|
-
return (
|
|
4655
|
-
class: "relative group w-full max-w-[350px]",
|
|
4655
|
+
return (T, I) => (v(), k("div", {
|
|
4656
|
+
class: L(T.classContent ? T.classContent : "relative group w-full max-w-[350px]"),
|
|
4656
4657
|
ref_key: "cellRef",
|
|
4657
4658
|
ref: h
|
|
4658
4659
|
}, [
|
|
4659
|
-
u.value === "boolean" &&
|
|
4660
|
+
u.value === "boolean" && T.editable ? (v(), k("button", {
|
|
4660
4661
|
key: 0,
|
|
4661
4662
|
type: "button",
|
|
4662
4663
|
role: "checkbox",
|
|
@@ -4664,13 +4665,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4664
4665
|
"data-state": a.value ? "checked" : "unchecked",
|
|
4665
4666
|
class: L([
|
|
4666
4667
|
"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",
|
|
4667
|
-
a.value ?
|
|
4668
|
-
|
|
4669
|
-
a.value ?
|
|
4668
|
+
a.value ? E.value.border : "",
|
|
4669
|
+
E.value.ring,
|
|
4670
|
+
a.value ? E.value.bg : ""
|
|
4670
4671
|
]),
|
|
4671
4672
|
onClick: ot(R, ["stop"])
|
|
4672
4673
|
}, [
|
|
4673
|
-
a.value ? (v(),
|
|
4674
|
+
a.value ? (v(), k("span", Ta, I[4] || (I[4] = [
|
|
4674
4675
|
d("svg", {
|
|
4675
4676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4676
4677
|
width: "24",
|
|
@@ -4685,22 +4686,22 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4685
4686
|
}, [
|
|
4686
4687
|
d("path", { d: "M20 6 9 17l-5-5" })
|
|
4687
4688
|
], -1)
|
|
4688
|
-
]))) :
|
|
4689
|
-
], 10,
|
|
4689
|
+
]))) : Z("", !0)
|
|
4690
|
+
], 10, Ca)) : (v(), k(ne, { key: 1 }, [
|
|
4690
4691
|
d("div", {
|
|
4691
4692
|
class: "flex items-center justify-between cursor-pointer",
|
|
4692
4693
|
onClick: ot(x, ["stop"])
|
|
4693
4694
|
}, [
|
|
4694
|
-
d("span",
|
|
4695
|
-
Ie(
|
|
4695
|
+
d("span", Oa, [
|
|
4696
|
+
Ie(T.$slots, "default")
|
|
4696
4697
|
]),
|
|
4697
|
-
|
|
4698
|
+
T.editable ? (v(), k("svg", {
|
|
4698
4699
|
key: 0,
|
|
4699
4700
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4700
4701
|
fill: "none",
|
|
4701
4702
|
viewBox: "0 0 24 24",
|
|
4702
4703
|
stroke: "currentColor",
|
|
4703
|
-
class: L(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
4704
|
+
class: L(["w-4 h-4 opacity-0 group-hover:opacity-100 transition-opacity", E.value.text])
|
|
4704
4705
|
}, I[5] || (I[5] = [
|
|
4705
4706
|
d("path", {
|
|
4706
4707
|
"stroke-linecap": "round",
|
|
@@ -4708,24 +4709,24 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4708
4709
|
"stroke-width": "2",
|
|
4709
4710
|
d: "M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L7.5 21H3v-4.5L16.732 3.732z"
|
|
4710
4711
|
}, null, -1)
|
|
4711
|
-
]), 2)) :
|
|
4712
|
+
]), 2)) : Z("", !0)
|
|
4712
4713
|
]),
|
|
4713
|
-
r.value ? (v(),
|
|
4714
|
+
r.value ? (v(), k("div", {
|
|
4714
4715
|
key: 0,
|
|
4715
4716
|
ref_key: "popoverRef",
|
|
4716
4717
|
ref: o,
|
|
4717
4718
|
class: L(["absolute top-0 left-[50px] ml-2 z-50 bg-white border rounded-lg shadow-lg", u.value === "select" ? "" : "w-[450px]"]),
|
|
4718
|
-
onKeydown: Kt(ot(
|
|
4719
|
+
onKeydown: Kt(ot(O, ["stop", "prevent"]), ["esc"])
|
|
4719
4720
|
}, [
|
|
4720
|
-
u.value === "select" ? (v(),
|
|
4721
|
-
d("div",
|
|
4722
|
-
d("span",
|
|
4723
|
-
d("span", Va, " Редагувати " + D(
|
|
4721
|
+
u.value === "select" ? (v(), k("div", Da, [
|
|
4722
|
+
d("div", Aa, [
|
|
4723
|
+
d("span", $a, [
|
|
4724
|
+
d("span", Va, " Редагувати " + D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1)
|
|
4724
4725
|
])
|
|
4725
4726
|
]),
|
|
4726
|
-
d("div",
|
|
4727
|
-
d("div",
|
|
4728
|
-
(v(!0),
|
|
4727
|
+
d("div", Ra, [
|
|
4728
|
+
d("div", Ma, [
|
|
4729
|
+
(v(!0), k(ne, null, Se(f.value, (S) => (v(), k("label", {
|
|
4729
4730
|
key: S.value.toString(),
|
|
4730
4731
|
onClick: ot(() => {
|
|
4731
4732
|
a.value = S.value, y();
|
|
@@ -4738,104 +4739,107 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4738
4739
|
id: "hs-pro-chthuts1op",
|
|
4739
4740
|
name: "hs-pro-chthuts1"
|
|
4740
4741
|
}, null, -1)),
|
|
4741
|
-
S.color ? (v(),
|
|
4742
|
+
S.color ? (v(), k("span", Pa, I[6] || (I[6] = [
|
|
4742
4743
|
d("span", { class: "shrink-0 size-2 block mx-auto bg-emerald-500 rounded-full" }, null, -1)
|
|
4743
|
-
]))) :
|
|
4744
|
+
]))) : Z("", !0),
|
|
4744
4745
|
be(" " + D(S.label) + " ", 1),
|
|
4745
|
-
a.value === S.value ? (v(),
|
|
4746
|
+
a.value === S.value ? (v(), k("svg", Fa, I[7] || (I[7] = [
|
|
4746
4747
|
d("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
|
4747
|
-
]))) :
|
|
4748
|
-
], 8,
|
|
4748
|
+
]))) : Z("", !0)
|
|
4749
|
+
], 8, La))), 128))
|
|
4749
4750
|
])
|
|
4750
4751
|
])
|
|
4751
|
-
])) : (v(),
|
|
4752
|
-
d("h3",
|
|
4753
|
-
d("div",
|
|
4754
|
-
d("label",
|
|
4755
|
-
u.value === "text" ?
|
|
4752
|
+
])) : (v(), k("div", Ba, [
|
|
4753
|
+
d("h3", ja, " Редагувати " + D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4754
|
+
d("div", Ua, [
|
|
4755
|
+
d("label", Ha, D(T.column[c.value] || T.column.header || T.column.ua || T.column.name), 1),
|
|
4756
|
+
u.value === "text" ? Ee((v(), k("input", {
|
|
4756
4757
|
key: 0,
|
|
4757
4758
|
ref_key: "inputRef",
|
|
4758
4759
|
ref: i,
|
|
4759
4760
|
"onUpdate:modelValue": I[0] || (I[0] = (S) => a.value = S),
|
|
4760
4761
|
type: "text",
|
|
4761
|
-
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",
|
|
4762
|
+
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300", E.value.ring, E.value.border]),
|
|
4762
4763
|
onKeyup: Kt(y, ["enter"])
|
|
4763
4764
|
}, null, 34)), [
|
|
4764
|
-
[
|
|
4765
|
-
]) : u.value === "number" ?
|
|
4765
|
+
[_t, a.value]
|
|
4766
|
+
]) : u.value === "number" ? Ee((v(), k("input", {
|
|
4766
4767
|
key: 1,
|
|
4767
4768
|
ref_key: "inputRef",
|
|
4768
4769
|
ref: i,
|
|
4769
4770
|
"onUpdate:modelValue": I[1] || (I[1] = (S) => a.value = S),
|
|
4770
4771
|
type: "number",
|
|
4771
|
-
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",
|
|
4772
|
+
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300", E.value.ring, E.value.border]),
|
|
4772
4773
|
onKeyup: Kt(y, ["enter"])
|
|
4773
4774
|
}, null, 34)), [
|
|
4774
4775
|
[
|
|
4775
|
-
|
|
4776
|
+
_t,
|
|
4776
4777
|
a.value,
|
|
4777
4778
|
void 0,
|
|
4778
4779
|
{ number: !0 }
|
|
4779
4780
|
]
|
|
4780
|
-
]) : u.value === "date" ?
|
|
4781
|
+
]) : u.value === "date" ? Ee((v(), k("input", {
|
|
4781
4782
|
key: 2,
|
|
4782
4783
|
ref_key: "inputRef",
|
|
4783
4784
|
ref: i,
|
|
4784
4785
|
"onUpdate:modelValue": I[2] || (I[2] = (S) => a.value = S),
|
|
4785
4786
|
type: "date",
|
|
4786
|
-
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300",
|
|
4787
|
+
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none border-gray-300", E.value.ring, E.value.border]),
|
|
4787
4788
|
onChange: y
|
|
4788
4789
|
}, null, 34)), [
|
|
4789
|
-
[
|
|
4790
|
-
]) : u.value === "select" ?
|
|
4790
|
+
[_t, a.value]
|
|
4791
|
+
]) : u.value === "select" ? Ee((v(), k("select", {
|
|
4791
4792
|
key: 3,
|
|
4792
4793
|
ref_key: "inputRef",
|
|
4793
4794
|
ref: i,
|
|
4794
4795
|
"onUpdate:modelValue": I[3] || (I[3] = (S) => a.value = S),
|
|
4795
|
-
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300",
|
|
4796
|
+
class: L(["w-full rounded-md border px-3 py-2 text-sm outline-none bg-white border-gray-300", E.value.ring, E.value.border])
|
|
4796
4797
|
}, [
|
|
4797
4798
|
I[9] || (I[9] = d("option", {
|
|
4798
4799
|
disabled: "",
|
|
4799
4800
|
value: ""
|
|
4800
4801
|
}, "-- виберіть --", -1)),
|
|
4801
|
-
(v(!0),
|
|
4802
|
+
(v(!0), k(ne, null, Se(f.value, (S) => (v(), k("option", {
|
|
4802
4803
|
key: S.value.toString(),
|
|
4803
4804
|
value: S.value
|
|
4804
|
-
}, D(S.label), 9,
|
|
4805
|
+
}, D(S.label), 9, za))), 128))
|
|
4805
4806
|
], 2)), [
|
|
4806
|
-
[
|
|
4807
|
-
]) :
|
|
4807
|
+
[gr, a.value]
|
|
4808
|
+
]) : Z("", !0)
|
|
4808
4809
|
]),
|
|
4809
|
-
d("div",
|
|
4810
|
+
d("div", qa, [
|
|
4810
4811
|
d("button", {
|
|
4811
4812
|
type: "button",
|
|
4812
4813
|
class: "px-4 py-1.5 text-sm rounded-md border border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
4813
|
-
onClick:
|
|
4814
|
+
onClick: O
|
|
4814
4815
|
}, " Скасувати "),
|
|
4815
4816
|
d("button", {
|
|
4816
4817
|
type: "button",
|
|
4817
|
-
class: L(["px-4 py-1.5 text-sm rounded-md text-white",
|
|
4818
|
+
class: L(["px-4 py-1.5 text-sm rounded-md text-white", E.value.bg]),
|
|
4818
4819
|
onClick: y
|
|
4819
4820
|
}, " Зберегти ", 2)
|
|
4820
4821
|
])
|
|
4821
4822
|
]))
|
|
4822
|
-
], 42,
|
|
4823
|
+
], 42, Ia)) : Z("", !0)
|
|
4823
4824
|
], 64))
|
|
4824
|
-
],
|
|
4825
|
+
], 2));
|
|
4825
4826
|
}
|
|
4826
|
-
}),
|
|
4827
|
+
}), Wa = {
|
|
4827
4828
|
key: 0,
|
|
4828
4829
|
class: "text-center py-8"
|
|
4829
|
-
},
|
|
4830
|
+
}, Ga = { class: "inline-flex items-center space-x-2" }, Ja = {
|
|
4830
4831
|
key: 2,
|
|
4831
4832
|
class: "overflow-x-auto"
|
|
4832
|
-
},
|
|
4833
|
+
}, Ya = ["checked", "indeterminate"], Xa = ["onClick"], Qa = { class: "flex items-center justify-between" }, Za = { class: "flex items-center gap-1.5" }, el = {
|
|
4834
|
+
key: 0,
|
|
4835
|
+
class: "relative group"
|
|
4836
|
+
}, tl = { class: "absolute left-0 top-6 z-50 w-56 p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none" }, sl = {
|
|
4833
4837
|
key: 0,
|
|
4834
4838
|
class: "ml-1 text-xs"
|
|
4835
|
-
},
|
|
4839
|
+
}, nl = ["onClick"], rl = ["checked", "onChange"], il = ["onClick"], ol = {
|
|
4836
4840
|
key: 1,
|
|
4837
4841
|
class: "text-center"
|
|
4838
|
-
},
|
|
4842
|
+
}, al = ["colspan"], mn = /* @__PURE__ */ ae({
|
|
4839
4843
|
name: "DataTable",
|
|
4840
4844
|
__name: "DataTable",
|
|
4841
4845
|
props: {
|
|
@@ -4854,6 +4858,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4854
4858
|
classTd: { default: "" },
|
|
4855
4859
|
classTh: { default: "" },
|
|
4856
4860
|
classThead: { default: "" },
|
|
4861
|
+
classContent: { default: "" },
|
|
4857
4862
|
classLink: { default: "" },
|
|
4858
4863
|
selectable: { type: Boolean, default: !1 },
|
|
4859
4864
|
selectedRows: { default: () => [] },
|
|
@@ -4873,7 +4878,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4873
4878
|
const s = e, n = t, r = M(s.selectedRows || []), i = M(s.defaultSort.map((p) => ({
|
|
4874
4879
|
field: p.name,
|
|
4875
4880
|
direction: p.asc ? "asc" : "desc"
|
|
4876
|
-
}))), o = M([]), a = M([]), l = M(!1), c = M(null), m = M(s.router), u =
|
|
4881
|
+
}))), o = M([]), a = M([]), l = M(!1), c = M(null), m = M(s.router), u = kn(), f = q(() => u.action);
|
|
4877
4882
|
function h(p) {
|
|
4878
4883
|
if (m.value) {
|
|
4879
4884
|
m.value.push(p);
|
|
@@ -4886,11 +4891,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4886
4891
|
return o.value;
|
|
4887
4892
|
if (s.sortable && i.value.length > 0) {
|
|
4888
4893
|
const p = [...s.rows];
|
|
4889
|
-
return p.sort((
|
|
4894
|
+
return p.sort((A, b) => {
|
|
4890
4895
|
for (const j of i.value) {
|
|
4891
4896
|
if (!j.direction)
|
|
4892
4897
|
return 0;
|
|
4893
|
-
const g =
|
|
4898
|
+
const g = A[j.field], U = b[j.field];
|
|
4894
4899
|
if (g == null) return 1;
|
|
4895
4900
|
if (U == null) return -1;
|
|
4896
4901
|
let ue = 0;
|
|
@@ -4906,14 +4911,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4906
4911
|
De(() => s.selectedRows, (p) => {
|
|
4907
4912
|
r.value = p || [];
|
|
4908
4913
|
});
|
|
4909
|
-
const y = (p) => r.value.some((
|
|
4910
|
-
const
|
|
4911
|
-
|
|
4914
|
+
const y = (p) => r.value.some((A) => A === p), O = (p) => {
|
|
4915
|
+
const A = r.value.findIndex((b) => b === p);
|
|
4916
|
+
A > -1 ? r.value.splice(A, 1) : r.value.push(p), n("update:selectedRows", [...r.value]);
|
|
4912
4917
|
}, _ = q(() => x.value.length > 0 && r.value.length === x.value.length), R = q(() => r.value.length > 0 && r.value.length < x.value.length), w = () => {
|
|
4913
4918
|
_.value ? r.value = [] : r.value = [...x.value], n("update:selectedRows", [...r.value]);
|
|
4914
|
-
},
|
|
4919
|
+
}, E = (p, A) => {
|
|
4915
4920
|
if (!s.sortable) return;
|
|
4916
|
-
if (
|
|
4921
|
+
if (A?.ctrlKey || A?.metaKey) {
|
|
4917
4922
|
const g = i.value.findIndex((U) => U.field === p);
|
|
4918
4923
|
if (g >= 0) {
|
|
4919
4924
|
const U = i.value[g];
|
|
@@ -4931,12 +4936,12 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4931
4936
|
name: g.field,
|
|
4932
4937
|
asc: g.direction === "asc"
|
|
4933
4938
|
}));
|
|
4934
|
-
n("sort", j), s.api &&
|
|
4935
|
-
}, C = (p) => i.value.find((b) => b.field === p)?.direction === "asc",
|
|
4936
|
-
const
|
|
4937
|
-
if (!
|
|
4939
|
+
n("sort", j), s.api && ke();
|
|
4940
|
+
}, C = (p) => i.value.find((b) => b.field === p)?.direction === "asc", T = (p) => {
|
|
4941
|
+
const A = i.value.find((b) => b.field === p);
|
|
4942
|
+
if (!A)
|
|
4938
4943
|
return "";
|
|
4939
|
-
switch (
|
|
4944
|
+
switch (A.direction) {
|
|
4940
4945
|
case "asc":
|
|
4941
4946
|
return "↑";
|
|
4942
4947
|
// Up arrow for ascending
|
|
@@ -4948,14 +4953,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4948
4953
|
}
|
|
4949
4954
|
}, I = (p) => s.sortable && p.sortable !== !1, S = (p) => {
|
|
4950
4955
|
s.clickable && n("row-click", p);
|
|
4951
|
-
}, N = (p,
|
|
4952
|
-
const b =
|
|
4956
|
+
}, N = (p, A) => {
|
|
4957
|
+
const b = A[p.name];
|
|
4953
4958
|
if (s.getCellData || p.getCellData) {
|
|
4954
4959
|
const j = p.getCellData || s.getCellData;
|
|
4955
4960
|
if (j) {
|
|
4956
4961
|
const g = {
|
|
4957
4962
|
name: p.name,
|
|
4958
|
-
row:
|
|
4963
|
+
row: A,
|
|
4959
4964
|
value: b
|
|
4960
4965
|
};
|
|
4961
4966
|
return j(g);
|
|
@@ -4963,9 +4968,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
4963
4968
|
}
|
|
4964
4969
|
return ["_data", "_text"].map((j) => {
|
|
4965
4970
|
const g = `${p.name}${j}`;
|
|
4966
|
-
return
|
|
4971
|
+
return A[g] ? A[g] : null;
|
|
4967
4972
|
}).find((j) => j) || b;
|
|
4968
|
-
}, H = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px]` : "" : "", B = M(s.page),
|
|
4973
|
+
}, H = (p) => p.width ? p.width === "w-full" ? "w-full" : typeof p.width == "string" ? `w-[${p.width}px]` : typeof p.width == "number" ? `w-[${p.width}px]` : "" : "", B = M(s.page), V = M(s.limit), z = M(s.total), W = M(1), G = M(10), me = M(0), Ne = q(() => s.api ? W.value : B.value), Be = q(() => s.api ? G.value : V.value), rt = q(() => s.api ? me.value : z.value), Q = q(() => {
|
|
4969
4974
|
const { theme: p } = s;
|
|
4970
4975
|
return p === "dark" ? {
|
|
4971
4976
|
container: "dark",
|
|
@@ -5008,11 +5013,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5008
5013
|
De(() => s.page, (p) => {
|
|
5009
5014
|
B.value = p;
|
|
5010
5015
|
}), De(() => s.limit, (p) => {
|
|
5011
|
-
|
|
5016
|
+
V.value = p;
|
|
5012
5017
|
}), De(() => s.total, (p) => {
|
|
5013
5018
|
z.value = p;
|
|
5014
5019
|
});
|
|
5015
|
-
async function
|
|
5020
|
+
async function ke() {
|
|
5016
5021
|
if (s.api) {
|
|
5017
5022
|
l.value = !0, c.value = null;
|
|
5018
5023
|
try {
|
|
@@ -5021,10 +5026,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5021
5026
|
const j = i.value.filter((g) => g.direction).map((g) => `${g.field}:${g.direction}`).join(",");
|
|
5022
5027
|
j && p.searchParams.set("sort", j);
|
|
5023
5028
|
}
|
|
5024
|
-
const
|
|
5025
|
-
if (!
|
|
5026
|
-
throw new Error(`HTTP error! status: ${
|
|
5027
|
-
const b = await
|
|
5029
|
+
const A = await fetch(p.toString());
|
|
5030
|
+
if (!A.ok)
|
|
5031
|
+
throw new Error(`HTTP error! status: ${A.status}`);
|
|
5032
|
+
const b = await A.json();
|
|
5028
5033
|
b.rows && Array.isArray(b.rows) && (o.value = b.rows), b.columns && Array.isArray(b.columns) && (a.value = b.columns), b.total !== void 0 && (s.api ? me.value = b.total : z.value = b.total);
|
|
5029
5034
|
} catch (p) {
|
|
5030
5035
|
c.value = p instanceof Error ? p.message : "Failed to fetch data", console.error("Error fetching data:", p);
|
|
@@ -5034,8 +5039,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5034
5039
|
}
|
|
5035
5040
|
}
|
|
5036
5041
|
const je = (p) => {
|
|
5037
|
-
s.api ? W.value = p : (B.value = p, n("update:page", p)), s.api &&
|
|
5038
|
-
},
|
|
5042
|
+
s.api ? W.value = p : (B.value = p, n("update:page", p)), s.api && ke();
|
|
5043
|
+
}, ur = q(() => s.showPagination && rt.value > 0), it = q(() => ({
|
|
5039
5044
|
small: {
|
|
5040
5045
|
header: "px-3 py-2 text-xs",
|
|
5041
5046
|
cell: "px-3 py-2 text-xs"
|
|
@@ -5048,54 +5053,54 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5048
5053
|
header: "px-8 py-4 text-sm",
|
|
5049
5054
|
cell: "px-8 py-6 text-base"
|
|
5050
5055
|
}
|
|
5051
|
-
})[s.size]),
|
|
5052
|
-
p.detail.key === "locale" && (
|
|
5056
|
+
})[s.size]), dr = fs(), yt = M("uk"), Ls = (p) => {
|
|
5057
|
+
p.detail.key === "locale" && (yt.value = p.detail.newValue);
|
|
5053
5058
|
};
|
|
5054
5059
|
us(() => {
|
|
5055
5060
|
window.removeEventListener("resize", Ls);
|
|
5056
5061
|
}), Ge(() => {
|
|
5057
|
-
window.addEventListener("storage", Ls),
|
|
5062
|
+
window.addEventListener("storage", Ls), yt.value = localStorage.locale, s.api && (s.page && (W.value = s.page), s.limit && (G.value = s.limit), s.total && (me.value = s.total), ke());
|
|
5058
5063
|
}), De(() => s.api, (p) => {
|
|
5059
|
-
p && (W.value = s.page || 1, G.value = s.limit || 10, me.value = s.total || 0,
|
|
5064
|
+
p && (W.value = s.page || 1, G.value = s.limit || 10, me.value = s.total || 0, ke());
|
|
5060
5065
|
});
|
|
5061
|
-
const Ps = q(() => s.api ? a.value : s.columns), Ht = M([]),
|
|
5062
|
-
|
|
5063
|
-
Ht.value.push(p),
|
|
5066
|
+
const Ps = q(() => s.api ? a.value : s.columns), Ht = M([]), bt = M({});
|
|
5067
|
+
vr("registerColumn", (p, A) => {
|
|
5068
|
+
Ht.value.push(p), A && p.slotName && (bt.value[p.name] = A);
|
|
5064
5069
|
});
|
|
5065
5070
|
const zt = q(() => {
|
|
5066
|
-
const p = Ps.value || [],
|
|
5071
|
+
const p = Ps.value || [], A = [], b = u.default?.();
|
|
5067
5072
|
if (b) {
|
|
5068
5073
|
const j = b.filter((g) => g.type?.name === "Column" || g.type === "Column" || g.type && typeof g.type == "object" && g.type.name === "Column").map((g) => {
|
|
5069
|
-
const U = g.props || g.componentProps || {}, ue = U.field || U.name || "", Ye = U.header || U.label || "",
|
|
5074
|
+
const U = g.props || g.componentProps || {}, ue = U.field || U.name || "", Ye = U.header || U.label || "", Bs = g.children && g.children.body, qt = {
|
|
5070
5075
|
name: ue,
|
|
5071
5076
|
// Use field as the name for data access
|
|
5072
5077
|
ua: Ye,
|
|
5073
5078
|
// Use header as the display name
|
|
5074
5079
|
format: U.format || "text",
|
|
5075
|
-
slotName:
|
|
5080
|
+
slotName: Bs ? "body" : void 0,
|
|
5076
5081
|
...U
|
|
5077
5082
|
};
|
|
5078
|
-
return
|
|
5083
|
+
return Bs && qt.name && (bt.value[qt.name] = g.children.body), qt;
|
|
5079
5084
|
});
|
|
5080
|
-
|
|
5085
|
+
A.push(...j);
|
|
5081
5086
|
}
|
|
5082
|
-
if (Ht.value.length > 0 &&
|
|
5083
|
-
const j = [], g = new Set(
|
|
5087
|
+
if (Ht.value.length > 0 && A.push(...Ht.value), A.length > 0) {
|
|
5088
|
+
const j = [], g = new Set(A.map((U) => U.name));
|
|
5084
5089
|
return p.forEach((U) => {
|
|
5085
5090
|
g.has(U.name) || j.push(U);
|
|
5086
|
-
}), j.push(...
|
|
5091
|
+
}), j.push(...A), console.log("Combined columns:", {
|
|
5087
5092
|
default: p.length,
|
|
5088
|
-
custom:
|
|
5093
|
+
custom: A.length,
|
|
5089
5094
|
combined: j.length
|
|
5090
5095
|
}), j;
|
|
5091
5096
|
}
|
|
5092
5097
|
return p.length > 0 ? (console.log("Using default columns:", p.length), p) : [];
|
|
5093
|
-
}),
|
|
5094
|
-
async function
|
|
5095
|
-
const { data:
|
|
5098
|
+
}), fr = (p = "text") => Us[p.toLowerCase()] || Us.text, Ue = M({});
|
|
5099
|
+
async function pr(p) {
|
|
5100
|
+
const { data: A, api: b } = zt.value.find((j) => j.name === p);
|
|
5096
5101
|
if (Ue.value[p]) return Ue.value[p];
|
|
5097
|
-
if (
|
|
5098
|
-
const j = b || `/api/suggest/${
|
|
5102
|
+
if (A || b) {
|
|
5103
|
+
const j = b || `/api/suggest/${A}?json=1`, U = await (await fetch(j)).json();
|
|
5099
5104
|
U.data && Array.isArray(U.data) && (Ue.value[p] = U.data.map((ue) => ({
|
|
5100
5105
|
value: ue.id ?? ue.value,
|
|
5101
5106
|
label: ue.text ?? ue.label
|
|
@@ -5103,40 +5108,44 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5103
5108
|
}
|
|
5104
5109
|
return Ue.value[p];
|
|
5105
5110
|
}
|
|
5106
|
-
function
|
|
5111
|
+
function hr(p, A, b, j) {
|
|
5107
5112
|
const g = j;
|
|
5108
|
-
g !== -1 && (s.rows[g] = { ...s.rows[g], [
|
|
5113
|
+
g !== -1 && (s.rows[g] = { ...s.rows[g], [A]: b }), n("cell-update", p, A, b);
|
|
5114
|
+
}
|
|
5115
|
+
function Fs(p) {
|
|
5116
|
+
const b = `info:${yt.value}`;
|
|
5117
|
+
return p[b] ? p[b] : p.info ? p.info : null;
|
|
5109
5118
|
}
|
|
5110
5119
|
return De(() => s.form, async (p) => {
|
|
5111
5120
|
p && (Ue.value = {});
|
|
5112
5121
|
}), Ge(() => {
|
|
5113
5122
|
s.form && (Ue.value = {});
|
|
5114
|
-
}), (p,
|
|
5123
|
+
}), (p, A) => (v(), k("div", {
|
|
5115
5124
|
class: L(["w-full", Q.value.container])
|
|
5116
5125
|
}, [
|
|
5117
|
-
l.value || s.loading ? (v(),
|
|
5118
|
-
d("div",
|
|
5119
|
-
|
|
5126
|
+
l.value || s.loading ? (v(), k("div", Wa, [
|
|
5127
|
+
d("div", Ga, [
|
|
5128
|
+
A[0] || (A[0] = d("div", { class: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-600" }, null, -1)),
|
|
5120
5129
|
d("span", {
|
|
5121
5130
|
class: L(Q.value.loading)
|
|
5122
5131
|
}, "Loading...", 2)
|
|
5123
5132
|
])
|
|
5124
|
-
])) : c.value ? (v(),
|
|
5133
|
+
])) : c.value ? (v(), k("div", {
|
|
5125
5134
|
key: 1,
|
|
5126
5135
|
class: L(["text-center py-8", Q.value.error])
|
|
5127
|
-
}, D(c.value), 3)) : s.loading ?
|
|
5136
|
+
}, D(c.value), 3)) : s.loading ? Z("", !0) : (v(), k("div", Ja, [
|
|
5128
5137
|
d("div", {
|
|
5129
5138
|
class: L(p.classWrapper ? p.classWrapper : "relative w-full overflow-auto")
|
|
5130
5139
|
}, [
|
|
5131
5140
|
d("table", {
|
|
5132
5141
|
class: L(p.classTable),
|
|
5133
|
-
style:
|
|
5142
|
+
style: Ft(p.tableStyle)
|
|
5134
5143
|
}, [
|
|
5135
5144
|
d("thead", {
|
|
5136
5145
|
class: L(p.classThead || Q.value.thead)
|
|
5137
5146
|
}, [
|
|
5138
5147
|
d("tr", null, [
|
|
5139
|
-
p.selectable ? (v(),
|
|
5148
|
+
p.selectable ? (v(), k("th", {
|
|
5140
5149
|
key: 0,
|
|
5141
5150
|
class: L(["text-left font-medium uppercase tracking-wider", Q.value.th, it.value.header, s.classTh, "w-12"])
|
|
5142
5151
|
}, [
|
|
@@ -5146,9 +5155,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5146
5155
|
indeterminate: R.value,
|
|
5147
5156
|
onChange: w,
|
|
5148
5157
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5149
|
-
}, null, 42,
|
|
5150
|
-
], 2)) :
|
|
5151
|
-
(v(!0),
|
|
5158
|
+
}, null, 42, Ya)
|
|
5159
|
+
], 2)) : Z("", !0),
|
|
5160
|
+
(v(!0), k(ne, null, Se(zt.value.filter((b) => !b.hidden), (b) => (v(), k("th", {
|
|
5152
5161
|
key: b.name,
|
|
5153
5162
|
class: L([
|
|
5154
5163
|
b.align ? `text-${b.align}` : "",
|
|
@@ -5161,34 +5170,59 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5161
5170
|
it.value.header
|
|
5162
5171
|
]
|
|
5163
5172
|
)),
|
|
5164
|
-
onClick: (j) => I(b) ?
|
|
5173
|
+
onClick: (j) => I(b) ? E(b.name, j) : void 0
|
|
5165
5174
|
}, [
|
|
5166
|
-
d("div",
|
|
5167
|
-
d("
|
|
5168
|
-
|
|
5175
|
+
d("div", Qa, [
|
|
5176
|
+
d("div", Za, [
|
|
5177
|
+
d("span", null, D(b[yt.value] || b.header || b.ua || b.name), 1),
|
|
5178
|
+
Fs(b) ? (v(), k("div", el, [
|
|
5179
|
+
A[1] || (A[1] = d("svg", {
|
|
5180
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5181
|
+
width: "14",
|
|
5182
|
+
height: "14",
|
|
5183
|
+
viewBox: "0 0 24 24",
|
|
5184
|
+
fill: "none",
|
|
5185
|
+
stroke: "currentColor",
|
|
5186
|
+
"stroke-width": "2",
|
|
5187
|
+
"stroke-linecap": "round",
|
|
5188
|
+
"stroke-linejoin": "round",
|
|
5189
|
+
class: "text-gray-400 cursor-help"
|
|
5190
|
+
}, [
|
|
5191
|
+
d("circle", {
|
|
5192
|
+
cx: "12",
|
|
5193
|
+
cy: "12",
|
|
5194
|
+
r: "10"
|
|
5195
|
+
}),
|
|
5196
|
+
d("path", { d: "M12 16v-4" }),
|
|
5197
|
+
d("path", { d: "M12 8h.01" })
|
|
5198
|
+
], -1)),
|
|
5199
|
+
d("div", tl, D(Fs(b)), 1)
|
|
5200
|
+
])) : Z("", !0)
|
|
5201
|
+
]),
|
|
5202
|
+
I(b) ? (v(), k("span", sl, [
|
|
5169
5203
|
Ie(p.$slots, "sort", {
|
|
5170
5204
|
asc: C(b.name)
|
|
5171
5205
|
}, () => [
|
|
5172
|
-
be(D(
|
|
5206
|
+
be(D(T(b.name)), 1)
|
|
5173
5207
|
])
|
|
5174
|
-
])) :
|
|
5208
|
+
])) : Z("", !0)
|
|
5175
5209
|
])
|
|
5176
|
-
], 10,
|
|
5177
|
-
f.value ? (v(),
|
|
5210
|
+
], 10, Xa))), 128)),
|
|
5211
|
+
f.value ? (v(), k("th", {
|
|
5178
5212
|
key: 1,
|
|
5179
5213
|
class: L(["w-[100px]", s.classTh || [
|
|
5180
5214
|
"text-left font-medium uppercase tracking-wider",
|
|
5181
5215
|
Q.value.th,
|
|
5182
5216
|
it.value.header
|
|
5183
5217
|
]])
|
|
5184
|
-
}, D(X(
|
|
5218
|
+
}, D(X(dr)("table.actions")), 3)) : Z("", !0)
|
|
5185
5219
|
])
|
|
5186
5220
|
], 2),
|
|
5187
|
-
x.value.length ? (v(),
|
|
5221
|
+
x.value.length ? (v(), k("tbody", {
|
|
5188
5222
|
key: 0,
|
|
5189
5223
|
class: L(p.classTbody || Q.value.tbody)
|
|
5190
5224
|
}, [
|
|
5191
|
-
(v(!0),
|
|
5225
|
+
(v(!0), k(ne, null, Se(x.value, (b, j) => (v(), k(ne, { key: j }, [
|
|
5192
5226
|
d("tr", {
|
|
5193
5227
|
class: L(s.classTr || [
|
|
5194
5228
|
Q.value.tr,
|
|
@@ -5196,18 +5230,18 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5196
5230
|
]),
|
|
5197
5231
|
onClick: (g) => s.clickable ? S(b) : void 0
|
|
5198
5232
|
}, [
|
|
5199
|
-
p.selectable ? (v(),
|
|
5233
|
+
p.selectable ? (v(), k("td", {
|
|
5200
5234
|
key: 0,
|
|
5201
5235
|
class: L(["whitespace-nowrap", Q.value.td, it.value.cell, s.classTd, "w-12"])
|
|
5202
5236
|
}, [
|
|
5203
5237
|
d("input", {
|
|
5204
5238
|
type: "checkbox",
|
|
5205
5239
|
checked: y(b),
|
|
5206
|
-
onChange: (g) =>
|
|
5240
|
+
onChange: (g) => O(b),
|
|
5207
5241
|
class: L(["h-4 w-4 focus:ring-blue-500 rounded", Q.value.checkbox])
|
|
5208
|
-
}, null, 42,
|
|
5209
|
-
], 2)) :
|
|
5210
|
-
(v(!0),
|
|
5242
|
+
}, null, 42, rl)
|
|
5243
|
+
], 2)) : Z("", !0),
|
|
5244
|
+
(v(!0), k(ne, null, Se(zt.value.filter((g) => !g.hidden), (g) => (v(), k("td", {
|
|
5211
5245
|
key: g.name,
|
|
5212
5246
|
class: L(s.classTd || [
|
|
5213
5247
|
"whitespace-nowrap",
|
|
@@ -5217,7 +5251,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5217
5251
|
H(g)
|
|
5218
5252
|
])
|
|
5219
5253
|
}, [
|
|
5220
|
-
(v(),
|
|
5254
|
+
(v(), Ve(Ka, {
|
|
5255
|
+
"class-content": s.classContent,
|
|
5221
5256
|
key: b,
|
|
5222
5257
|
editable: g.edit,
|
|
5223
5258
|
row: b,
|
|
@@ -5226,10 +5261,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5226
5261
|
format: g.format,
|
|
5227
5262
|
options: Ue.value[g.name] || [],
|
|
5228
5263
|
color: p.color,
|
|
5229
|
-
onUpdate: (U, ue, Ye) =>
|
|
5230
|
-
"fetch-options":
|
|
5264
|
+
onUpdate: (U, ue, Ye) => hr(U, ue, Ye, j),
|
|
5265
|
+
"fetch-options": pr
|
|
5231
5266
|
}, {
|
|
5232
|
-
default:
|
|
5267
|
+
default: yr(() => [
|
|
5233
5268
|
g.action && f.value ? Ie(p.$slots, "action", {
|
|
5234
5269
|
key: 0,
|
|
5235
5270
|
row: b
|
|
@@ -5245,33 +5280,33 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5245
5280
|
key: 3,
|
|
5246
5281
|
row: b,
|
|
5247
5282
|
value: N(g, b)
|
|
5248
|
-
}) : g.slotName &&
|
|
5283
|
+
}) : g.slotName && bt.value[g.name] ? (v(), Ve(xt(bt.value[g.name]), {
|
|
5249
5284
|
key: 4,
|
|
5250
5285
|
data: b,
|
|
5251
5286
|
value: N(g, b),
|
|
5252
5287
|
row: b,
|
|
5253
5288
|
column: g
|
|
5254
|
-
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(),
|
|
5289
|
+
}, null, 8, ["data", "value", "row", "column"])) : g.link ? (v(), k("a", {
|
|
5255
5290
|
key: 5,
|
|
5256
5291
|
class: L(p.classLink || "hover:text-blue-900 cursor-pointer text-blue-700 hover:underline"),
|
|
5257
5292
|
onClick: (U) => h(g.link.replace("{id}", b.id))
|
|
5258
5293
|
}, [
|
|
5259
|
-
g.slot && typeof g.slot == "string" ? (v(),
|
|
5294
|
+
g.slot && typeof g.slot == "string" ? (v(), Ve(xt(X(hn)(g.slot)), {
|
|
5260
5295
|
key: 0,
|
|
5261
5296
|
row: b,
|
|
5262
5297
|
value: b,
|
|
5263
5298
|
data: b,
|
|
5264
5299
|
column: g
|
|
5265
|
-
}, null, 8, ["row", "value", "data", "column"])) : (v(),
|
|
5300
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), k(ne, { key: 1 }, [
|
|
5266
5301
|
be(D(N(g, b)), 1)
|
|
5267
5302
|
], 64))
|
|
5268
|
-
], 10,
|
|
5303
|
+
], 10, il)) : g.slot && g.format === "slot" && typeof g.slot == "string" ? (v(), Ve(xt(X(hn)(g.slot)), {
|
|
5269
5304
|
key: 6,
|
|
5270
5305
|
row: b,
|
|
5271
5306
|
value: N(g, b),
|
|
5272
5307
|
data: b,
|
|
5273
5308
|
column: g
|
|
5274
|
-
}, null, 8, ["row", "value", "data", "column"])) : (v(),
|
|
5309
|
+
}, null, 8, ["row", "value", "data", "column"])) : (v(), Ve(xt(fr(g.format)), {
|
|
5275
5310
|
key: 7,
|
|
5276
5311
|
value: N(g, b),
|
|
5277
5312
|
row: b,
|
|
@@ -5280,18 +5315,18 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5280
5315
|
}, null, 8, ["value", "row", "column", "href"]))
|
|
5281
5316
|
]),
|
|
5282
5317
|
_: 2
|
|
5283
|
-
}, 1032, ["editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5318
|
+
}, 1032, ["class-content", "editable", "row", "column", "value", "format", "options", "color", "onUpdate"]))
|
|
5284
5319
|
], 2))), 128)),
|
|
5285
|
-
f.value ? (v(),
|
|
5320
|
+
f.value ? (v(), k("td", ol, [
|
|
5286
5321
|
Ie(p.$slots, "action", { row: b })
|
|
5287
|
-
])) :
|
|
5288
|
-
], 10,
|
|
5322
|
+
])) : Z("", !0)
|
|
5323
|
+
], 10, nl),
|
|
5289
5324
|
d("tr", null, [
|
|
5290
5325
|
Ie(p.$slots, "under-row", { row: b })
|
|
5291
5326
|
])
|
|
5292
5327
|
], 64))), 128))
|
|
5293
|
-
], 2)) :
|
|
5294
|
-
x.value.length === 0 ? (v(),
|
|
5328
|
+
], 2)) : Z("", !0),
|
|
5329
|
+
x.value.length === 0 ? (v(), k("tbody", {
|
|
5295
5330
|
key: 1,
|
|
5296
5331
|
class: L(["text-center py-8", Q.value.empty])
|
|
5297
5332
|
}, [
|
|
@@ -5299,14 +5334,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5299
5334
|
d("td", {
|
|
5300
5335
|
colspan: Ps.value.length
|
|
5301
5336
|
}, [
|
|
5302
|
-
|
|
5303
|
-
], 8,
|
|
5337
|
+
br(Na)
|
|
5338
|
+
], 8, al)
|
|
5304
5339
|
])
|
|
5305
|
-
], 2)) :
|
|
5340
|
+
], 2)) : Z("", !0)
|
|
5306
5341
|
], 6)
|
|
5307
5342
|
], 2)
|
|
5308
5343
|
])),
|
|
5309
|
-
|
|
5344
|
+
ur.value && !l.value && !s.loading && !c.value ? (v(), Ve(wn, {
|
|
5310
5345
|
key: 3,
|
|
5311
5346
|
page: Ne.value,
|
|
5312
5347
|
limit: Be.value,
|
|
@@ -5314,10 +5349,10 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5314
5349
|
theme: s.theme,
|
|
5315
5350
|
size: s.size,
|
|
5316
5351
|
"onUpdate:page": je
|
|
5317
|
-
}, null, 8, ["page", "limit", "total", "theme", "size"])) :
|
|
5352
|
+
}, null, 8, ["page", "limit", "total", "theme", "size"])) : Z("", !0)
|
|
5318
5353
|
], 2));
|
|
5319
5354
|
}
|
|
5320
|
-
}),
|
|
5355
|
+
}), ll = { style: { display: "none" } }, cl = /* @__PURE__ */ ae({
|
|
5321
5356
|
name: "Column",
|
|
5322
5357
|
__name: "Column",
|
|
5323
5358
|
props: {
|
|
@@ -5338,7 +5373,7 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5338
5373
|
suffix: {}
|
|
5339
5374
|
},
|
|
5340
5375
|
setup(e) {
|
|
5341
|
-
const t = e, s =
|
|
5376
|
+
const t = e, s = kn(), n = xr("registerColumn");
|
|
5342
5377
|
return Ge(() => {
|
|
5343
5378
|
if (n) {
|
|
5344
5379
|
const {
|
|
@@ -5369,11 +5404,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5369
5404
|
const w = s.body;
|
|
5370
5405
|
n(R, w);
|
|
5371
5406
|
}
|
|
5372
|
-
}), (r, i) => (v(),
|
|
5407
|
+
}), (r, i) => (v(), k("div", ll, [
|
|
5373
5408
|
Ie(r.$slots, "body", { data: {} })
|
|
5374
5409
|
]));
|
|
5375
5410
|
}
|
|
5376
|
-
}),
|
|
5411
|
+
}), ul = { class: "mt-4" }, dl = { class: "text-sm text-gray-600 dark:text-gray-300" }, fl = /* @__PURE__ */ ae({
|
|
5377
5412
|
__name: "SelectionInfo",
|
|
5378
5413
|
props: {
|
|
5379
5414
|
selectedRows: {},
|
|
@@ -5381,11 +5416,11 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5381
5416
|
},
|
|
5382
5417
|
setup(e) {
|
|
5383
5418
|
const t = e, s = q(() => t.selectedRows.length);
|
|
5384
|
-
return (n, r) => (v(),
|
|
5385
|
-
d("div",
|
|
5419
|
+
return (n, r) => (v(), k("div", ul, [
|
|
5420
|
+
d("div", dl, " Обрано: " + D(s.value) + " з " + D(n.totalCount) + " записів ", 1)
|
|
5386
5421
|
]));
|
|
5387
5422
|
}
|
|
5388
|
-
}),
|
|
5423
|
+
}), pl = { class: "mt-4" }, hl = { class: "border-b border-gray-200 dark:border-gray-700" }, ml = { class: "-mb-px flex space-x-8" }, gl = ["onClick"], vl = { class: "mt-4" }, yl = { class: "bg-gray-900 rounded-lg overflow-hidden" }, bl = { class: "flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700" }, xl = { class: "text-sm text-gray-300" }, kl = ["onClick"], El = { class: "p-4 text-sm text-gray-100 overflow-x-auto" }, wl = /* @__PURE__ */ ae({
|
|
5389
5424
|
__name: "CodeTabs",
|
|
5390
5425
|
props: {
|
|
5391
5426
|
tabs: {},
|
|
@@ -5399,26 +5434,26 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5399
5434
|
console.error("Помилка копіювання:", i);
|
|
5400
5435
|
}
|
|
5401
5436
|
};
|
|
5402
|
-
return (r, i) => (v(),
|
|
5403
|
-
d("div",
|
|
5404
|
-
d("nav",
|
|
5405
|
-
(v(!0),
|
|
5437
|
+
return (r, i) => (v(), k("div", pl, [
|
|
5438
|
+
d("div", hl, [
|
|
5439
|
+
d("nav", ml, [
|
|
5440
|
+
(v(!0), k(ne, null, Se(r.tabs, (o) => (v(), k("button", {
|
|
5406
5441
|
key: o.id,
|
|
5407
5442
|
onClick: (a) => s.value = o.id,
|
|
5408
5443
|
class: L([
|
|
5409
5444
|
"py-2 px-1 border-b-2 font-medium text-sm transition-colors",
|
|
5410
5445
|
s.value === o.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"
|
|
5411
5446
|
])
|
|
5412
|
-
}, D(o.label), 11,
|
|
5447
|
+
}, D(o.label), 11, gl))), 128))
|
|
5413
5448
|
])
|
|
5414
5449
|
]),
|
|
5415
|
-
d("div",
|
|
5416
|
-
(v(!0),
|
|
5450
|
+
d("div", vl, [
|
|
5451
|
+
(v(!0), k(ne, null, Se(r.tabs, (o) => Ee((v(), k("div", {
|
|
5417
5452
|
key: o.id
|
|
5418
5453
|
}, [
|
|
5419
|
-
d("div",
|
|
5420
|
-
d("div",
|
|
5421
|
-
d("span",
|
|
5454
|
+
d("div", yl, [
|
|
5455
|
+
d("div", bl, [
|
|
5456
|
+
d("span", xl, D(o.label), 1),
|
|
5422
5457
|
d("button", {
|
|
5423
5458
|
onClick: (a) => n(o.content),
|
|
5424
5459
|
class: "text-gray-400 hover:text-white transition-colors",
|
|
@@ -5437,9 +5472,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5437
5472
|
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"
|
|
5438
5473
|
})
|
|
5439
5474
|
], -1)
|
|
5440
|
-
]), 8,
|
|
5475
|
+
]), 8, kl)
|
|
5441
5476
|
]),
|
|
5442
|
-
d("pre",
|
|
5477
|
+
d("pre", El, [
|
|
5443
5478
|
d("code", null, D(o.content), 1)
|
|
5444
5479
|
])
|
|
5445
5480
|
])
|
|
@@ -5449,19 +5484,19 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5449
5484
|
])
|
|
5450
5485
|
]));
|
|
5451
5486
|
}
|
|
5452
|
-
}),
|
|
5487
|
+
}), Sl = {
|
|
5453
5488
|
key: 0,
|
|
5454
5489
|
class: "vs-dialog-overlay vs-dialog w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"
|
|
5455
|
-
},
|
|
5490
|
+
}, _l = { 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" }, Nl = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, Cl = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Tl = { class: "sr-only" }, Ol = { class: "ui-dialog__content p-4" }, Il = { class: "p-4" }, Dl = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Al = { class: "text-sm font-[600] text-gray-500" }, $l = { class: "flex items-center gap-[10px] -ml-[10px] my-[10px]" }, Vl = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Rl = {
|
|
5456
5491
|
key: 0,
|
|
5457
5492
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5458
|
-
},
|
|
5493
|
+
}, Ml = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Ll = {
|
|
5459
5494
|
key: 0,
|
|
5460
5495
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5461
|
-
},
|
|
5496
|
+
}, Pl = { class: "h-[14px] w-[14px] border rounded-full flex items-center justify-center" }, Fl = {
|
|
5462
5497
|
key: 0,
|
|
5463
5498
|
class: "block h-[8px] w-[8px] rounded-full bg-blue-500"
|
|
5464
|
-
},
|
|
5499
|
+
}, Bl = { class: "mt-2 flex row flex-wrap gap-y-[5px] gap-x-[10px]" }, jl = { class: "flex items-center [&>label]:text-sm [&>label]:text-gray-800 [&>label]:ms-3 !gap-x-[1px] !p-0" }, Ul = { class: "flex items-center gap-[4px]" }, Hl = ["id", "value"], zl = ["for"], ql = {
|
|
5465
5500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5466
5501
|
viewBox: "0 0 24 24",
|
|
5467
5502
|
fill: "none",
|
|
@@ -5472,23 +5507,23 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5472
5507
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-check",
|
|
5473
5508
|
height: "12",
|
|
5474
5509
|
width: "12"
|
|
5475
|
-
},
|
|
5510
|
+
}, Kl = { class: "text-[13px] text-gray-500 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, Wl = { class: "pb-5 mb-5 border-b border-gray-200 last:pb-0 last:mb-0 last:border-b-0 dark:border-neutral-700" }, Gl = { class: "text-sm font-[600] text-gray-500" }, Jl = { class: "mt-2 space-y-2" }, Yl = { class: "flex items-center" }, Xl = {
|
|
5476
5511
|
for: "json",
|
|
5477
5512
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
5478
|
-
},
|
|
5513
|
+
}, Ql = { class: "flex items-center" }, Zl = {
|
|
5479
5514
|
for: "csv",
|
|
5480
5515
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
5481
|
-
},
|
|
5516
|
+
}, ec = { class: "flex items-center" }, tc = {
|
|
5482
5517
|
for: "xlsx",
|
|
5483
5518
|
class: "text-sm text-gray-800 ms-3 dark:text-neutral-400"
|
|
5484
|
-
},
|
|
5519
|
+
}, sc = { class: "flex justify-end gap-x-2" }, nc = { class: "flex w-full justify-end p-[20px] gap-[6px] border-t" }, rc = ["disabled"], ic = /* @__PURE__ */ ae({
|
|
5485
5520
|
__name: "Export",
|
|
5486
5521
|
props: {
|
|
5487
5522
|
table: {},
|
|
5488
5523
|
columns: {}
|
|
5489
5524
|
},
|
|
5490
5525
|
setup(e) {
|
|
5491
|
-
const t =
|
|
5526
|
+
const t = gn(), s = fs(), n = e, r = M(!1), i = M([]), o = M("json"), a = M(!1), l = M("all"), c = q(() => n.columns ?? []), m = vn();
|
|
5492
5527
|
function u() {
|
|
5493
5528
|
i.value = c.value.map((w) => w.name), o.value = "json", r.value = !0;
|
|
5494
5529
|
}
|
|
@@ -5499,13 +5534,13 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5499
5534
|
i.value = c.value.map((w) => w.name), l.value = "all";
|
|
5500
5535
|
}
|
|
5501
5536
|
function x() {
|
|
5502
|
-
const w = c.value.filter((
|
|
5503
|
-
i.value = w.length ? w : c.value.map((
|
|
5537
|
+
const w = c.value.filter((E) => !E.hidden).map((E) => E.name);
|
|
5538
|
+
i.value = w.length ? w : c.value.map((E) => E.name), l.value = "active";
|
|
5504
5539
|
}
|
|
5505
5540
|
function y() {
|
|
5506
5541
|
i.value = [], l.value = "none";
|
|
5507
5542
|
}
|
|
5508
|
-
async function
|
|
5543
|
+
async function O() {
|
|
5509
5544
|
if (i.value.length === 0) return;
|
|
5510
5545
|
a.value = !0;
|
|
5511
5546
|
const w = new URLSearchParams({
|
|
@@ -5514,14 +5549,14 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5514
5549
|
columns: i.value.join(",")
|
|
5515
5550
|
});
|
|
5516
5551
|
try {
|
|
5517
|
-
const
|
|
5552
|
+
const E = await fetch(`/api/export?${w.toString()}`, {
|
|
5518
5553
|
method: "GET"
|
|
5519
5554
|
});
|
|
5520
|
-
if (!
|
|
5521
|
-
const C = await
|
|
5522
|
-
I.href =
|
|
5523
|
-
} catch (
|
|
5524
|
-
console.error(
|
|
5555
|
+
if (!E.ok) throw new Error("Export failed");
|
|
5556
|
+
const C = await E.blob(), T = URL.createObjectURL(C), I = document.createElement("a");
|
|
5557
|
+
I.href = T, I.download = `${n.table}.${o.value}`, document.body.appendChild(I), I.click(), I.remove(), URL.revokeObjectURL(T), f();
|
|
5558
|
+
} catch (E) {
|
|
5559
|
+
console.error(E);
|
|
5525
5560
|
const { $notify: C = console.log } = t?.appContext?.config?.globalProperties || {};
|
|
5526
5561
|
C({ type: "error", title: "Помилка", message: "Не вдалося єкспортувати файл" });
|
|
5527
5562
|
} finally {
|
|
@@ -5535,26 +5570,26 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5535
5570
|
window.removeEventListener("storage", R);
|
|
5536
5571
|
}), Ge(() => {
|
|
5537
5572
|
window.addEventListener("storage", R), _.value = localStorage.locale;
|
|
5538
|
-
}), (w,
|
|
5573
|
+
}), (w, E) => (v(), k(ne, null, [
|
|
5539
5574
|
d("button", {
|
|
5540
5575
|
onClick: u,
|
|
5541
5576
|
class: L([[X(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"])
|
|
5542
5577
|
}, [
|
|
5543
|
-
|
|
5578
|
+
E[4] || (E[4] = ds('<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)),
|
|
5544
5579
|
be(" " + D(X(s)("table.export")), 1)
|
|
5545
5580
|
], 2),
|
|
5546
|
-
(v(),
|
|
5547
|
-
r.value ? (v(),
|
|
5548
|
-
d("div",
|
|
5549
|
-
d("div",
|
|
5550
|
-
d("h3",
|
|
5581
|
+
(v(), Ve(bn, { to: "body" }, [
|
|
5582
|
+
r.value ? (v(), k("div", Sl, [
|
|
5583
|
+
d("div", _l, [
|
|
5584
|
+
d("div", Nl, [
|
|
5585
|
+
d("h3", Cl, D(X(s)("table.exportTitle")), 1),
|
|
5551
5586
|
d("button", {
|
|
5552
5587
|
type: "button",
|
|
5553
5588
|
onClick: f,
|
|
5554
5589
|
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"
|
|
5555
5590
|
}, [
|
|
5556
|
-
d("span",
|
|
5557
|
-
|
|
5591
|
+
d("span", Tl, D(X(s)("table.close")), 1),
|
|
5592
|
+
E[5] || (E[5] = d("svg", {
|
|
5558
5593
|
class: "flex-shrink-0 w-4 h-4",
|
|
5559
5594
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5560
5595
|
width: "24",
|
|
@@ -5571,17 +5606,17 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5571
5606
|
], -1))
|
|
5572
5607
|
])
|
|
5573
5608
|
]),
|
|
5574
|
-
d("div",
|
|
5575
|
-
d("div",
|
|
5576
|
-
d("div",
|
|
5577
|
-
d("h2",
|
|
5578
|
-
d("div",
|
|
5609
|
+
d("div", Ol, [
|
|
5610
|
+
d("div", Il, [
|
|
5611
|
+
d("div", Dl, [
|
|
5612
|
+
d("h2", Al, D(X(s)("table.chooseColumns")), 1),
|
|
5613
|
+
d("div", $l, [
|
|
5579
5614
|
d("button", {
|
|
5580
5615
|
onClick: h,
|
|
5581
5616
|
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"
|
|
5582
5617
|
}, [
|
|
5583
|
-
d("span",
|
|
5584
|
-
l.value === "all" ? (v(),
|
|
5618
|
+
d("span", Vl, [
|
|
5619
|
+
l.value === "all" ? (v(), k("span", Rl)) : Z("", !0)
|
|
5585
5620
|
]),
|
|
5586
5621
|
be(" " + D(X(s)("table.selectAll")), 1)
|
|
5587
5622
|
]),
|
|
@@ -5589,8 +5624,8 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5589
5624
|
onClick: x,
|
|
5590
5625
|
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"
|
|
5591
5626
|
}, [
|
|
5592
|
-
d("span",
|
|
5593
|
-
l.value === "active" ? (v(),
|
|
5627
|
+
d("span", Ml, [
|
|
5628
|
+
l.value === "active" ? (v(), k("span", Ll)) : Z("", !0)
|
|
5594
5629
|
]),
|
|
5595
5630
|
be(" " + D(X(s)("table.selectCurrent")), 1)
|
|
5596
5631
|
]),
|
|
@@ -5598,28 +5633,28 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5598
5633
|
onClick: y,
|
|
5599
5634
|
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"
|
|
5600
5635
|
}, [
|
|
5601
|
-
d("span",
|
|
5602
|
-
l.value === "none" ? (v(),
|
|
5636
|
+
d("span", Pl, [
|
|
5637
|
+
l.value === "none" ? (v(), k("span", Fl)) : Z("", !0)
|
|
5603
5638
|
]),
|
|
5604
5639
|
be(" " + D(X(s)("table.none")), 1)
|
|
5605
5640
|
])
|
|
5606
5641
|
]),
|
|
5607
|
-
d("div",
|
|
5608
|
-
(v(!0),
|
|
5642
|
+
d("div", Bl, [
|
|
5643
|
+
(v(!0), k(ne, null, Se(c.value, (C) => (v(), k("div", {
|
|
5609
5644
|
class: "flex items-center",
|
|
5610
5645
|
style: { width: "calc(50% - 5px)" },
|
|
5611
5646
|
key: C.name
|
|
5612
5647
|
}, [
|
|
5613
|
-
d("div",
|
|
5614
|
-
d("div",
|
|
5615
|
-
|
|
5648
|
+
d("div", jl, [
|
|
5649
|
+
d("div", Ul, [
|
|
5650
|
+
Ee(d("input", {
|
|
5616
5651
|
type: "checkbox",
|
|
5617
5652
|
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",
|
|
5618
5653
|
id: "radio-" + C.name,
|
|
5619
5654
|
value: C.name,
|
|
5620
|
-
"onUpdate:modelValue":
|
|
5621
|
-
}, null, 8,
|
|
5622
|
-
[
|
|
5655
|
+
"onUpdate:modelValue": E[0] || (E[0] = (T) => i.value = T)
|
|
5656
|
+
}, null, 8, Hl), [
|
|
5657
|
+
[kr, i.value]
|
|
5623
5658
|
]),
|
|
5624
5659
|
d("label", {
|
|
5625
5660
|
for: "radio-" + C.name,
|
|
@@ -5627,9 +5662,9 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5627
5662
|
}, [
|
|
5628
5663
|
d("div", {
|
|
5629
5664
|
class: "h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded bg-white",
|
|
5630
|
-
style:
|
|
5665
|
+
style: Ft(i.value.includes(C.name) ? "background-color: rgb(37,99,235); border-color: transparent;" : "")
|
|
5631
5666
|
}, [
|
|
5632
|
-
|
|
5667
|
+
Ee((v(), k("svg", ql, E[6] || (E[6] = [
|
|
5633
5668
|
d("path", {
|
|
5634
5669
|
stroke: "none",
|
|
5635
5670
|
d: "M0 0h24v24H0z",
|
|
@@ -5640,61 +5675,61 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5640
5675
|
[En, i.value.includes(C.name)]
|
|
5641
5676
|
])
|
|
5642
5677
|
], 4),
|
|
5643
|
-
d("span",
|
|
5644
|
-
], 8,
|
|
5678
|
+
d("span", Kl, D(C[_.value] || C.header || C.ua || C.name), 1)
|
|
5679
|
+
], 8, zl)
|
|
5645
5680
|
])
|
|
5646
5681
|
])
|
|
5647
5682
|
]))), 128))
|
|
5648
5683
|
])
|
|
5649
5684
|
]),
|
|
5650
|
-
d("div",
|
|
5651
|
-
d("h2",
|
|
5652
|
-
d("div",
|
|
5653
|
-
d("div",
|
|
5654
|
-
|
|
5685
|
+
d("div", Wl, [
|
|
5686
|
+
d("h2", Gl, D(X(s)("table.chooseFormat")), 1),
|
|
5687
|
+
d("div", Jl, [
|
|
5688
|
+
d("div", Yl, [
|
|
5689
|
+
Ee(d("input", {
|
|
5655
5690
|
type: "radio",
|
|
5656
5691
|
name: "hs-pro-duecmfm",
|
|
5657
5692
|
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",
|
|
5658
5693
|
id: "json",
|
|
5659
5694
|
value: "json",
|
|
5660
|
-
"onUpdate:modelValue":
|
|
5695
|
+
"onUpdate:modelValue": E[1] || (E[1] = (C) => o.value = C)
|
|
5661
5696
|
}, null, 512), [
|
|
5662
5697
|
[Wt, o.value]
|
|
5663
5698
|
]),
|
|
5664
|
-
d("label",
|
|
5699
|
+
d("label", Xl, D(X(s)("table.format.json")), 1)
|
|
5665
5700
|
]),
|
|
5666
|
-
d("div",
|
|
5667
|
-
|
|
5701
|
+
d("div", Ql, [
|
|
5702
|
+
Ee(d("input", {
|
|
5668
5703
|
type: "radio",
|
|
5669
5704
|
name: "hs-pro-duecmfm",
|
|
5670
5705
|
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",
|
|
5671
5706
|
id: "csv",
|
|
5672
5707
|
value: "csv",
|
|
5673
|
-
"onUpdate:modelValue":
|
|
5708
|
+
"onUpdate:modelValue": E[2] || (E[2] = (C) => o.value = C)
|
|
5674
5709
|
}, null, 512), [
|
|
5675
5710
|
[Wt, o.value]
|
|
5676
5711
|
]),
|
|
5677
|
-
d("label",
|
|
5712
|
+
d("label", Zl, D(X(s)("table.format.csv")), 1)
|
|
5678
5713
|
]),
|
|
5679
|
-
d("div",
|
|
5680
|
-
|
|
5714
|
+
d("div", ec, [
|
|
5715
|
+
Ee(d("input", {
|
|
5681
5716
|
type: "radio",
|
|
5682
5717
|
name: "hs-pro-duecmfm",
|
|
5683
5718
|
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",
|
|
5684
5719
|
id: "xlsx",
|
|
5685
5720
|
value: "xlsx",
|
|
5686
|
-
"onUpdate:modelValue":
|
|
5721
|
+
"onUpdate:modelValue": E[3] || (E[3] = (C) => o.value = C)
|
|
5687
5722
|
}, null, 512), [
|
|
5688
5723
|
[Wt, o.value]
|
|
5689
5724
|
]),
|
|
5690
|
-
d("label",
|
|
5725
|
+
d("label", tc, D(X(s)("table.format.xlsx")), 1)
|
|
5691
5726
|
])
|
|
5692
5727
|
])
|
|
5693
5728
|
])
|
|
5694
5729
|
])
|
|
5695
5730
|
]),
|
|
5696
|
-
d("div",
|
|
5697
|
-
d("div",
|
|
5731
|
+
d("div", sc, [
|
|
5732
|
+
d("div", nc, [
|
|
5698
5733
|
d("button", {
|
|
5699
5734
|
type: "button",
|
|
5700
5735
|
onClick: f,
|
|
@@ -5702,36 +5737,36 @@ const Ea = { class: "py-10 flex flex-col justify-center items-center text-center
|
|
|
5702
5737
|
}, D(X(s)("table.cancel")), 1),
|
|
5703
5738
|
d("button", {
|
|
5704
5739
|
type: "button",
|
|
5705
|
-
onClick:
|
|
5740
|
+
onClick: O,
|
|
5706
5741
|
disabled: i.value.length === 0 || a.value,
|
|
5707
5742
|
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"
|
|
5708
|
-
}, D(X(s)("table.download")), 9,
|
|
5743
|
+
}, D(X(s)("table.download")), 9, rc)
|
|
5709
5744
|
])
|
|
5710
5745
|
])
|
|
5711
5746
|
])
|
|
5712
|
-
])) :
|
|
5747
|
+
])) : Z("", !0)
|
|
5713
5748
|
]))
|
|
5714
5749
|
], 64));
|
|
5715
5750
|
}
|
|
5716
5751
|
});
|
|
5717
|
-
|
|
5718
|
-
t.component("DataTable",
|
|
5752
|
+
mn.install = function(t) {
|
|
5753
|
+
t.component("DataTable", mn), t.component("Column", cl), t.component("Pagination", wn), t.component("SelectionInfo", fl), t.component("CodeTabs", wl), t.component("ColumnsSettings", Dr), t.component("Export", ic);
|
|
5719
5754
|
};
|
|
5720
5755
|
export {
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5756
|
+
Fr as ArrayFormat,
|
|
5757
|
+
Lr as BadgeFormat,
|
|
5758
|
+
Ur as BooleanFormat,
|
|
5759
|
+
wl as CodeTabs,
|
|
5760
|
+
cl as Column,
|
|
5761
|
+
Dr as ColumnsSettings,
|
|
5762
|
+
mn as DataTable,
|
|
5763
|
+
$r as DateFormat,
|
|
5764
|
+
ic as Export,
|
|
5765
|
+
Ar as NumberFormat,
|
|
5766
|
+
wn as Pagination,
|
|
5767
|
+
Br as SelectFormat,
|
|
5768
|
+
fl as SelectionInfo,
|
|
5734
5769
|
Vr as TextFormat,
|
|
5735
|
-
|
|
5736
|
-
|
|
5770
|
+
mn as default,
|
|
5771
|
+
Us as formatComponents
|
|
5737
5772
|
};
|