@ianicdev/datatables2 0.12.1 → 0.12.2
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/{Comparison-DtpUZsrU.cjs → Comparison-C9d8KXS5.cjs} +1 -1
- package/dist/{Comparison-IcnZYHnn.js → Comparison-_Agi8s_e.js} +1 -1
- package/dist/{Datepicker-BKJGzszq.js → Datepicker-CjrXbTSo.js} +2 -2
- package/dist/{Datepicker-tAQpdCVA.cjs → Datepicker-DaluEojD.cjs} +1 -1
- package/dist/{Options-th4F06rr.cjs → Options-BiuV6DTo.cjs} +1 -1
- package/dist/{Options-DZWZnKMZ.js → Options-DQUkuRze.js} +3 -3
- package/dist/{RefreshTable-D4ifMTa_.js → RefreshTable-Ct4_Jqz7.js} +1 -1
- package/dist/{RefreshTable-CnvdYMek.cjs → RefreshTable-W33P38NS.cjs} +1 -1
- package/dist/{Search-B9HBH338.cjs → Search-Dua-d4Tj.cjs} +1 -1
- package/dist/{Search-BkQ1aZEe.js → Search-GAQh3spg.js} +2 -2
- package/dist/Table-CM27Xq99.js +61 -0
- package/dist/Table-DgGcTioM.cjs +1 -0
- package/dist/{TableServer-DSAcYBTM.js → TableServer-DA53L_wG.js} +305 -303
- package/dist/{TableServer-Ccn3CM5P.cjs → TableServer-DVj3gmfV.cjs} +4 -4
- package/dist/{cellRender-8D0QBLeC.cjs → cellRender-DLBeTGc6.cjs} +1 -1
- package/dist/{cellRender-BBnDEG_7.js → cellRender-aDz1YqeD.js} +562 -542
- package/dist/{dataTables-B691de3Y.js → dataTables-6PLHmPwF.js} +1 -1
- package/dist/{dataTables-C0Ygb6M3.cjs → dataTables-C6SqqvEF.cjs} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-GgkpPHGm.cjs → index-CTSSLf3E.cjs} +1 -1
- package/dist/{index-CX6NrL8T.cjs → index-CopBd7Yy.cjs} +1 -1
- package/dist/{index-H3lKuAD2.js → index-D7N6OaUA.js} +2 -2
- package/dist/{index-C9x5Z2bI.js → index-DdRcv_bH.js} +33 -30
- package/dist/{index-CPLpre1I.js → index-DgwLke3Q.js} +1 -1
- package/dist/{index-DwBno3e_.js → index-Do3yQ_c2.js} +2 -2
- package/dist/{index-D4MrgePs.cjs → index-h4s3yTrR.cjs} +1 -1
- package/dist/{index-BiBUa6-_.cjs → index-tzN8Bfkh.cjs} +1 -1
- package/dist/{useColumns-CTrxq_by.js → useColumns-Bh-R5i1f.js} +2 -2
- package/dist/{useColumns-Cgjt48Pi.cjs → useColumns-DeiZuRko.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Table-CGFEU1ml.cjs +0 -1
- package/dist/Table-CUFIrlzk.js +0 -59
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as U, inject as _e, computed as I, toRef as R, shallowRef as ee, watch as se, createVNode as g, normalizeStyle as xe, normalizeClass as re, createElementVNode as b, mergeProps as N, withDirectives as Ue, vShow as Pt, Fragment as ce, toDisplayString as Vt, useModel as _t, openBlock as oe, createBlock as pe, withCtx as Ce, createElementBlock as Ke, renderList as Gt, unref as L, mergeModels as Wt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as Se, onBeforeMount as Vn, onBeforeUnmount as xn, onMounted as at, cloneVNode as In, watchEffect as Ht, toValue as zt, createTextVNode as pl, defineAsyncComponent as Ee, resolveDynamicComponent as $e, isRef as xt, createCommentVNode as Me, defineComponent as kl } from "vue";
|
|
2
2
|
import { defineStore as Sl } from "pinia";
|
|
3
|
-
import { u as At, m as Ut, P as Cl, c as Ne, a as wn, e as Pn, r as _n, g as ie, b as Vl, d as xl, f as It, I as ct, h as de, V as sl, i as ke, j as Il, p as X, k as ye, l as wl, n as Oe, o as An, q as he, s as ot, t as qt, v as qe, w as Jt, x as He, R as lt, y as it, z as Xt, A as Ft, B as Yt, C as gt, D as Fn, E as Ve, F as rl, G as Pl, H as _l, J as Al, K as Fl, L as Fe, M as nt, N as Dn, O as Dl, Q as yt, S as Tn, T as Qt, U as ht, W as Zt, X as Le, Y as Dt, Z as bt, _ as el, $ as Tl, a0 as Bl, a1 as tl, a2 as pt, a3 as Rl, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as El, a9 as ll, aa as Tt, ab as Ol, ac as $l, ad as Ml, ae as Kt, af as Bn, ag as Nl, ah as Rn, ai as En, aj as Ll, ak as et, al as Hl, am as On, an as cl, ao as St, ap as zl, aq as $n, ar as Mn, as as Ul, at as Kl, au as nl, av as vt, aw as Nn, ax as ze, ay as jl, az as Gl, aA as wt, aB as Wl, aC as Ln, aD as Hn, aE as zn, aF as Un, aG as Kn, aH as dl, aI as jn, aJ as Gn, aK as Wn, aL as tt, aM as qn, aN as Jn, aO as Xn, aP as Yn } from "./dataTables-
|
|
3
|
+
import { u as At, m as Ut, P as Cl, c as Ne, a as wn, e as Pn, r as _n, g as ie, b as Vl, d as xl, f as It, I as ct, h as de, V as sl, i as ke, j as Il, p as X, k as ye, l as wl, n as Oe, o as An, q as he, s as ot, t as qt, v as qe, w as Jt, x as He, R as lt, y as it, z as Xt, A as Ft, B as Yt, C as gt, D as Fn, E as Ve, F as rl, G as Pl, H as _l, J as Al, K as Fl, L as Fe, M as nt, N as Dn, O as Dl, Q as yt, S as Tn, T as Qt, U as ht, W as Zt, X as Le, Y as Dt, Z as bt, _ as el, $ as Tl, a0 as Bl, a1 as tl, a2 as pt, a3 as Rl, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as El, a9 as ll, aa as Tt, ab as Ol, ac as $l, ad as Ml, ae as Kt, af as Bn, ag as Nl, ah as Rn, ai as En, aj as Ll, ak as et, al as Hl, am as On, an as cl, ao as St, ap as zl, aq as $n, ar as Mn, as as Ul, at as Kl, au as nl, av as vt, aw as Nn, ax as ze, ay as jl, az as Gl, aA as wt, aB as Wl, aC as Ln, aD as Hn, aE as zn, aF as Un, aG as Kn, aH as dl, aI as jn, aJ as Gn, aK as Wn, aL as tt, aM as qn, aN as Jn, aO as Xn, aP as Yn } from "./dataTables-6PLHmPwF.js";
|
|
4
4
|
import { useI18n as Qn } from "vue-i18n";
|
|
5
5
|
import { createSharedComposable as Zn, useResizeObserver as ea } from "@vueuse/core";
|
|
6
6
|
const Bt = Sl("datatables", () => {
|
|
@@ -2545,7 +2545,7 @@ const hn = X({
|
|
|
2545
2545
|
component: Wl
|
|
2546
2546
|
}
|
|
2547
2547
|
})
|
|
2548
|
-
}, "VSelect"),
|
|
2548
|
+
}, "VSelect"), Ao = ie()({
|
|
2549
2549
|
name: "VSelect",
|
|
2550
2550
|
props: Ua(),
|
|
2551
2551
|
emits: {
|
|
@@ -4110,10 +4110,10 @@ const oo = X({
|
|
|
4110
4110
|
select: ja,
|
|
4111
4111
|
number: io,
|
|
4112
4112
|
datepicker: Ee(
|
|
4113
|
-
() => import("./Datepicker-
|
|
4113
|
+
() => import("./Datepicker-CjrXbTSo.js")
|
|
4114
4114
|
),
|
|
4115
4115
|
comparison: Ee(
|
|
4116
|
-
() => import("./Comparison-
|
|
4116
|
+
() => import("./Comparison-_Agi8s_e.js")
|
|
4117
4117
|
)
|
|
4118
4118
|
}, o = I(() => t.headers.filter((d) => d.advancedFilter !== !1 && !d.hidden)), u = (d) => d ? typeof d == "string" ? c[d] : d : c.textfield;
|
|
4119
4119
|
return se(
|
|
@@ -4189,7 +4189,7 @@ const oo = X({
|
|
|
4189
4189
|
}
|
|
4190
4190
|
};
|
|
4191
4191
|
function bl(e) {
|
|
4192
|
-
return JSON.parse(JSON.stringify(e));
|
|
4192
|
+
return e === null || typeof e != "object" ? e : JSON.parse(JSON.stringify(e));
|
|
4193
4193
|
}
|
|
4194
4194
|
function jt(e, a) {
|
|
4195
4195
|
if (e === a) return !0;
|
|
@@ -4276,13 +4276,16 @@ function vo() {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
]), advancedFiltersDialog: n, activeAdvancedFilters: l };
|
|
4278
4278
|
}
|
|
4279
|
-
const fo =
|
|
4279
|
+
const fo = {
|
|
4280
|
+
class: "d-flex align-center",
|
|
4281
|
+
style: { gap: "0.5rem" }
|
|
4282
|
+
}, mo = /* @__PURE__ */ kl({
|
|
4280
4283
|
__name: "index",
|
|
4281
4284
|
setup(e) {
|
|
4282
4285
|
const { advancedFiltersItems: a, advancedFiltersDialog: t, activeAdvancedFilters: n } = vo();
|
|
4283
4286
|
return (l, i) => {
|
|
4284
4287
|
const c = co;
|
|
4285
|
-
return oe(), Ke("div",
|
|
4288
|
+
return oe(), Ke("div", fo, [
|
|
4286
4289
|
(oe(!0), Ke(ce, null, Gt(L(a), (o, u) => (oe(), pe(tt, N({
|
|
4287
4290
|
key: u,
|
|
4288
4291
|
icon: "",
|
|
@@ -4316,26 +4319,26 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4316
4319
|
]);
|
|
4317
4320
|
};
|
|
4318
4321
|
}
|
|
4319
|
-
}),
|
|
4322
|
+
}), go = {
|
|
4320
4323
|
class: "d-flex align-center",
|
|
4321
4324
|
style: { gap: "0.75rem" }
|
|
4322
|
-
},
|
|
4325
|
+
}, yo = { class: "ms-auto" }, ho = /* @__PURE__ */ kl({
|
|
4323
4326
|
__name: "index",
|
|
4324
4327
|
props: {
|
|
4325
4328
|
responsiveHeader: { type: Boolean }
|
|
4326
4329
|
},
|
|
4327
4330
|
setup(e) {
|
|
4328
|
-
const a = Ee(() => import("./Search-
|
|
4331
|
+
const a = Ee(() => import("./Search-GAQh3spg.js")), t = Ee(() => import("./RefreshTable-Ct4_Jqz7.js")), n = Ee(() => import("./Options-DQUkuRze.js")), l = Ee(() => import("./index-D7N6OaUA.js")), i = Ee(() => import("./index-Do3yQ_c2.js")), c = Ee(() => import("./index-DgwLke3Q.js")), o = _e("table_props"), u = U(null), d = o.options?.header?.components ?? {};
|
|
4329
4332
|
return (r, s) => {
|
|
4330
|
-
const m =
|
|
4331
|
-
return oe(), Ke("div",
|
|
4333
|
+
const m = mo;
|
|
4334
|
+
return oe(), Ke("div", go, [
|
|
4332
4335
|
e.responsiveHeader ? Me("", !0) : (oe(), pe(m, { key: 0 })),
|
|
4333
4336
|
L(o).hardFilters.length ? (oe(), pe($e(L(d).hardFilters ?? L(l)), {
|
|
4334
4337
|
key: 1,
|
|
4335
4338
|
id: "header-hardFilters"
|
|
4336
4339
|
})) : Me("", !0),
|
|
4337
4340
|
(oe(), pe($e(L(d).toolbar), { id: "header-toolbar" })),
|
|
4338
|
-
b("div",
|
|
4341
|
+
b("div", yo, [
|
|
4339
4342
|
(oe(), pe($e(L(d).search ?? L(a)), { id: "header-search" })),
|
|
4340
4343
|
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(L(d).columns ?? L(i)), {
|
|
4341
4344
|
key: 0,
|
|
@@ -4349,7 +4352,7 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4349
4352
|
};
|
|
4350
4353
|
}
|
|
4351
4354
|
});
|
|
4352
|
-
function
|
|
4355
|
+
function bo(e) {
|
|
4353
4356
|
const a = Bt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, i = U(!1), c = 5, o = I(() => t(e.id));
|
|
4354
4357
|
se(
|
|
4355
4358
|
o,
|
|
@@ -4402,10 +4405,10 @@ const Sn = Zn(() => {
|
|
|
4402
4405
|
l && (e.value = l), i && (a.value = i);
|
|
4403
4406
|
}
|
|
4404
4407
|
};
|
|
4405
|
-
}),
|
|
4408
|
+
}), po = {
|
|
4406
4409
|
key: 0,
|
|
4407
4410
|
class: "datatables-v2"
|
|
4408
|
-
},
|
|
4411
|
+
}, ko = { class: "pe-4" }, So = {
|
|
4409
4412
|
__name: "Blueprint",
|
|
4410
4413
|
props: {
|
|
4411
4414
|
modelValue: {},
|
|
@@ -4413,7 +4416,7 @@ const Sn = Zn(() => {
|
|
|
4413
4416
|
},
|
|
4414
4417
|
emits: /* @__PURE__ */ Wt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4415
4418
|
setup(e, { expose: a, emit: t }) {
|
|
4416
|
-
const n = Ee(() => import("./Table-
|
|
4419
|
+
const n = Ee(() => import("./Table-CM27Xq99.js")), l = Ee(() => import("./TableServer-DA53L_wG.js")), { storeOptions: i } = Sn(), { saveTableOptions: c } = Rt(), o = _t(e, "modelValue"), u = _e("table_props"), d = _e("datatablesPluginOptions"), r = U(null), s = U(!1), m = U(!1), v = U(!1), h = t, y = Bt(), { dataStateGet: V, tableDataState: P, checkTableState: _ } = bo(u), { addTable: S, restoreData: F } = y, E = U(!1);
|
|
4417
4420
|
ea(r, (w) => {
|
|
4418
4421
|
const C = w[0], { width: $ } = C.contentRect;
|
|
4419
4422
|
E.value = $ < 950;
|
|
@@ -4429,8 +4432,8 @@ const Sn = Zn(() => {
|
|
|
4429
4432
|
const $ = P.value.options.columns;
|
|
4430
4433
|
$.sorted?.length || ($.selected?.length || ($.selected = u.headers.filter((D) => !D.hidden).map((D) => D.key)), $.sorted = u.headers.map((D) => D.key)), c(Xn(i.state.value, P.value.options.state)), m.value = !0, await Se(), v.value = !0;
|
|
4431
4434
|
}), We("busEmits", h), We("tableRef", r), We("tableState", P), We("downloadModal", s), a({ tableRef: r }), (w, C) => {
|
|
4432
|
-
const $ =
|
|
4433
|
-
return L(m) ? (oe(), Ke("div",
|
|
4435
|
+
const $ = ho;
|
|
4436
|
+
return L(m) ? (oe(), Ke("div", po, [
|
|
4434
4437
|
g(kn, null, {
|
|
4435
4438
|
default: Ce(() => [
|
|
4436
4439
|
L(K) ? (oe(), pe(il, { key: 0 }, {
|
|
@@ -4473,7 +4476,7 @@ const Sn = Zn(() => {
|
|
|
4473
4476
|
title: w.$t("$datatables.preparing_download_file")
|
|
4474
4477
|
}, {
|
|
4475
4478
|
prepend: Ce(() => [
|
|
4476
|
-
b("div",
|
|
4479
|
+
b("div", ko, [
|
|
4477
4480
|
g(ke, {
|
|
4478
4481
|
color: "primary",
|
|
4479
4482
|
size: "x-large"
|
|
@@ -4499,7 +4502,7 @@ const Sn = Zn(() => {
|
|
|
4499
4502
|
])) : Me("", !0);
|
|
4500
4503
|
};
|
|
4501
4504
|
}
|
|
4502
|
-
},
|
|
4505
|
+
}, Co = Sl("datatablesHooks", () => {
|
|
4503
4506
|
const e = U({});
|
|
4504
4507
|
return {
|
|
4505
4508
|
hooks: e,
|
|
@@ -4510,7 +4513,7 @@ const Sn = Zn(() => {
|
|
|
4510
4513
|
e.value.hasOwnProperty(n) && e.value[n](l);
|
|
4511
4514
|
}
|
|
4512
4515
|
};
|
|
4513
|
-
}),
|
|
4516
|
+
}), Vo = {
|
|
4514
4517
|
__name: "index",
|
|
4515
4518
|
props: {
|
|
4516
4519
|
id: {
|
|
@@ -4557,13 +4560,13 @@ const Sn = Zn(() => {
|
|
|
4557
4560
|
},
|
|
4558
4561
|
emits: ["refreshTable", "refetchData"],
|
|
4559
4562
|
setup(e, { expose: a, emit: t }) {
|
|
4560
|
-
const n = e, { triggerHook: l } =
|
|
4563
|
+
const n = e, { triggerHook: l } = Co(), { storeOptions: i, setUserOptions: c } = Sn(), o = U(null), u = U(0), d = async (m = {}) => {
|
|
4561
4564
|
c(m), u.value < 99 && (s("refreshTable"), await Se(), u.value++);
|
|
4562
4565
|
}, r = (m = {}) => {
|
|
4563
4566
|
c(m), o.value.tableRef.hasOwnProperty("reloadItems") && (o.value.tableRef.reloadItems(i.state.value), s("refetchData"));
|
|
4564
4567
|
}, s = t;
|
|
4565
4568
|
return a({ refreshTable: d, refetchData: r, triggerHook: l }), We("table_props", n), We("triggerHook", l), (m, v) => {
|
|
4566
|
-
const h =
|
|
4569
|
+
const h = So;
|
|
4567
4570
|
return oe(), pe(h, {
|
|
4568
4571
|
id: e.id,
|
|
4569
4572
|
ref_key: "table",
|
|
@@ -4574,16 +4577,16 @@ const Sn = Zn(() => {
|
|
|
4574
4577
|
}, null, 8, ["id"]);
|
|
4575
4578
|
};
|
|
4576
4579
|
}
|
|
4577
|
-
},
|
|
4580
|
+
}, Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4578
4581
|
__proto__: null,
|
|
4579
|
-
default:
|
|
4582
|
+
default: Vo
|
|
4580
4583
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4581
4584
|
export {
|
|
4582
4585
|
$t as A,
|
|
4583
4586
|
an as B,
|
|
4584
4587
|
io as C,
|
|
4585
|
-
|
|
4586
|
-
|
|
4588
|
+
Fo as D,
|
|
4589
|
+
Ao as V,
|
|
4587
4590
|
co as _,
|
|
4588
4591
|
jt as a,
|
|
4589
4592
|
mt as b,
|
|
@@ -4599,7 +4602,7 @@ export {
|
|
|
4599
4602
|
pn as l,
|
|
4600
4603
|
fn as m,
|
|
4601
4604
|
vo as n,
|
|
4602
|
-
|
|
4605
|
+
Co as o,
|
|
4603
4606
|
ol as p,
|
|
4604
4607
|
ca as q,
|
|
4605
4608
|
on as r,
|
|
@@ -4607,7 +4610,7 @@ export {
|
|
|
4607
4610
|
ha as t,
|
|
4608
4611
|
Rt as u,
|
|
4609
4612
|
un as v,
|
|
4610
|
-
|
|
4613
|
+
bo as w,
|
|
4611
4614
|
va as x,
|
|
4612
4615
|
Wa as y,
|
|
4613
4616
|
Et as z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, openBlock as o, createBlock as r, withCtx as s, createElementBlock as _, Fragment as x, renderList as g, unref as a, mergeProps as m, inject as k, ref as V, isRef as b, createVNode as i } from "vue";
|
|
2
2
|
import { u as w } from "./useDownload-DpS1G0qa.js";
|
|
3
|
-
import { au as L, av as v, at as h, aL as B } from "./dataTables-
|
|
3
|
+
import { au as L, av as v, at as h, aL as B } from "./dataTables-6PLHmPwF.js";
|
|
4
4
|
import { useI18n as y } from "vue-i18n";
|
|
5
5
|
const D = /* @__PURE__ */ u({
|
|
6
6
|
__name: "List",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as c, _ as l } from "./useColumns-
|
|
1
|
+
import { u as c, _ as l } from "./useColumns-Bh-R5i1f.js";
|
|
2
2
|
import { defineComponent as m, openBlock as e, createElementBlock as o, Fragment as u, renderList as i, unref as _, createBlock as f, mergeProps as d, createVNode as p } from "vue";
|
|
3
|
-
import { aL as k } from "./dataTables-
|
|
3
|
+
import { aL as k } from "./dataTables-6PLHmPwF.js";
|
|
4
4
|
const x = { class: "d-inline-block" }, v = /* @__PURE__ */ m({
|
|
5
5
|
__name: "index",
|
|
6
6
|
setup(B) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./useColumns-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./useColumns-DeiZuRko.cjs"),e=require("vue"),s=require("./dataTables-C6SqqvEF.cjs"),a={class:"d-inline-block"},u=e.defineComponent({__name:"index",setup(i){const{columnsItems:o,columnsRef:r}=n.useColumns();return(m,d)=>{const c=n._sfc_main;return e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(t,l)=>(e.openBlock(),e.createBlock(s.VBtn,e.mergeProps({id:"header-columns"},{ref_for:!0},t,{key:l,text:t.title,variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"}),null,16,["text"]))),128)),e.createVNode(c,{ref_key:"columnsRef",ref:r},null,512)])}}});exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useDownload-tCiK460H.cjs"),o=require("./dataTables-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./useDownload-tCiK460H.cjs"),o=require("./dataTables-C6SqqvEF.cjs"),u=require("vue-i18n"),p=e.defineComponent({__name:"List",setup(s){const{downloadItems:a}=i.useDownload();return(r,t)=>(e.openBlock(),e.createBlock(o.VList,{"bg-color":"surface-light",class:"options-list d-flex flex-column ga-1 pa-1",density:"compact",rounded:"lg",variant:"text",slim:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(c,n)=>(e.openBlock(),e.createBlock(o.VListItem,e.mergeProps({ref_for:!0},c,{key:n,rounded:"lg",link:""}),null,16))),128))]),_:1}))}}),m=e.defineComponent({__name:"index",setup(s){const a=e.inject("datatablesPluginOptions"),{t:r}=u.useI18n(),t=e.ref(!1);return(c,n)=>{const d=p;return e.openBlock(),e.createBlock(o.VMenu,{modelValue:e.unref(t),"onUpdate:modelValue":n[0]||(n[0]=l=>e.isRef(t)?t.value=l:null),"close-on-content-click":!1,location:"bottom center"},{activator:e.withCtx(({props:l})=>[e.createVNode(o.VBtn,e.mergeProps({id:"header-download","prepend-icon":e.unref(a).header.icons.download,text:e.unref(r)("$datatables.download"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"},l),null,16,["prepend-icon","text"])]),default:e.withCtx(()=>[e.createVNode(d)]),_:1},8,["modelValue"])}}});exports.default=m;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as ue, useId as Zt, createVNode as R, mergeProps as bt, computed as Mt, watch as Qt, isRef as rt, toValue as yt, nextTick as at, inject as lt, useTemplateRef as Jt, onMounted as en, openBlock as ze, createBlock as wt, unref as ce, withCtx as J, createElementVNode as tn, toDisplayString as nn, createElementBlock as on, Fragment as rn, renderList as an } from "vue";
|
|
2
2
|
import { defaultDocument as ln, unrefElement as sn, tryOnMounted as un, tryOnScopeDispose as cn } from "@vueuse/core";
|
|
3
|
-
import { r as dn, s as Et, c as _t, t as fn, v as hn, u as pn, w as mn, j as gn, g as vn, k as bn, h as yn, l as wn, a as Ue } from "./index-
|
|
4
|
-
import { g as En, E as _n, h as Dn, a3 as Sn, ao as Tn, p as Cn, a7 as Dt, aL as qe, ax as St, au as In, av as On, i as xn } from "./dataTables-
|
|
3
|
+
import { r as dn, s as Et, c as _t, t as fn, v as hn, u as pn, w as mn, j as gn, g as vn, k as bn, h as yn, l as wn, a as Ue } from "./index-DdRcv_bH.js";
|
|
4
|
+
import { g as En, E as _n, h as Dn, a3 as Sn, ao as Tn, p as Cn, a7 as Dt, aL as qe, ax as St, au as In, av as On, i as xn } from "./dataTables-6PLHmPwF.js";
|
|
5
5
|
import { useI18n as Pn } from "vue-i18n";
|
|
6
6
|
const An = Cn({
|
|
7
7
|
...Dt(hn(), ["direction"]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const h=require("vue"),Ae=require("@vueuse/core"),A=require("./index-CX6NrL8T.cjs"),V=require("./dataTables-C0Ygb6M3.cjs"),Bt=require("vue-i18n"),Xt=V.propsFactory({...V.omit(A.makeVInputProps(),["direction"]),...V.omit(A.makeVCheckboxBtnProps(),["inline"])},"VCheckbox"),Et=V.genericComponent()({name:"VCheckbox",inheritAttrs:!1,props:Xt(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:o,slots:t}=e;const i=V.useProxiedModel(n,"modelValue"),{isFocused:r,focus:a,blur:l}=A.useFocus(n),s=h.ref(),u=h.useId();return V.useRender(()=>{const[f,d]=V.filterInputAttrs(o),y=A.VInput.filterProps(n),w=A.VCheckboxBtn.filterProps(n);return h.createVNode(A.VInput,h.mergeProps({ref:s,class:["v-checkbox",n.class]},f,y,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,id:n.id||`checkbox-${u}`,focused:r.value,style:n.style}),{...t,default:v=>{let{id:p,messagesId:D,isDisabled:O,isReadonly:P,isValid:M}=v;return h.createVNode(A.VCheckboxBtn,h.mergeProps(w,{id:p.value,"aria-describedby":D.value,disabled:O.value,readonly:P.value},d,{error:M.value===!1,modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,onFocus:a,onBlur:l}),t)}})}),V.forwardRefs({},s)}});function Yt(n,e,o){return(e=Wt(e))in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n}function Z(){return Z=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var t in o)({}).hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},Z.apply(null,arguments)}function ft(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,t)}return o}function q(n){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(o),!0).forEach(function(t){Yt(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ft(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}function jt(n,e){if(n==null)return{};var o,t,i=Lt(n,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(t=0;t<r.length;t++)o=r[t],e.indexOf(o)===-1&&{}.propertyIsEnumerable.call(n,o)&&(i[o]=n[o])}return i}function Lt(n,e){if(n==null)return{};var o={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(e.indexOf(t)!==-1)continue;o[t]=n[t]}return o}function Ht(n,e){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var t=o.call(n,e);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wt(n){var e=Ht(n,"string");return typeof e=="symbol"?e:e+""}function nt(n){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(n)}var $t="1.15.7";function K(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Q=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oe=K(/Edge/i),ht=K(/firefox/i),Se=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),lt=K(/iP(ad|od|hone)/i),_t=K(/chrome/i)&&K(/android/i),Dt={capture:!1,passive:!1};function _(n,e,o){n.addEventListener(e,o,!Q&&Dt)}function E(n,e,o){n.removeEventListener(e,o,!Q&&Dt)}function je(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function St(n){return n.host&&n!==document&&n.host.nodeType&&n.host!==n?n.host:n.parentNode}function $(n,e,o,t){if(n){o=o||document;do{if(e!=null&&(e[0]===">"?n.parentNode===o&&je(n,e):je(n,e))||t&&n===o)return n;if(n===o)break}while(n=St(n))}return null}var pt=/\s+/g;function j(n,e,o){if(n&&e)if(n.classList)n.classList[o?"add":"remove"](e);else{var t=(" "+n.className+" ").replace(pt," ").replace(" "+e+" "," ");n.className=(t+(o?" "+e:"")).replace(pt," ")}}function g(n,e,o){var t=n&&n.style;if(t){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(o=n.currentStyle),e===void 0?o:o[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=o+(typeof o=="string"?"":"px")}}function pe(n,e){var o="";if(typeof n=="string")o=n;else do{var t=g(n,"transform");t&&t!=="none"&&(o=t+" "+o)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Ct(n,e,o){if(n){var t=n.getElementsByTagName(e),i=0,r=t.length;if(o)for(;i<r;i++)o(t[i],i);return t}return[]}function z(){var n=document.scrollingElement;return n||document.documentElement}function I(n,e,o,t,i){if(!(!n.getBoundingClientRect&&n!==window)){var r,a,l,s,u,f,d;if(n!==window&&n.parentNode&&n!==z()?(r=n.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||o)&&n!==window&&(i=i||n.parentNode,!Q))do if(i&&i.getBoundingClientRect&&(g(i,"transform")!=="none"||o&&g(i,"position")!=="static")){var y=i.getBoundingClientRect();a-=y.top+parseInt(g(i,"border-top-width")),l-=y.left+parseInt(g(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(t&&n!==window){var w=pe(i||n),v=w&&w.a,p=w&&w.d;w&&(a/=p,l/=v,d/=v,f/=p,s=a+f,u=l+d)}return{top:a,left:l,bottom:s,right:u,width:d,height:f}}}function gt(n,e,o){for(var t=oe(n,!0),i=I(n)[e];t;){var r=I(t)[o],a=void 0;if(a=i>=r,!a)return t;if(t===z())break;t=oe(t,!1)}return!1}function ge(n,e,o,t){for(var i=0,r=0,a=n.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==m.ghost&&(t||a[r]!==m.dragged)&&$(a[r],o.draggable,n,!1)){if(i===e)return a[r];i++}r++}return null}function st(n,e){for(var o=n.lastElementChild;o&&(o===m.ghost||g(o,"display")==="none"||e&&!je(o,e));)o=o.previousElementSibling;return o||null}function H(n,e){var o=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==m.clone&&(!e||je(n,e))&&o++;return o}function mt(n){var e=0,o=0,t=z();if(n)do{var i=pe(n),r=i.a,a=i.d;e+=n.scrollLeft*r,o+=n.scrollTop*a}while(n!==t&&(n=n.parentNode));return[e,o]}function Gt(n,e){for(var o in n)if(n.hasOwnProperty(o)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n[o][t])return Number(o)}return-1}function oe(n,e){if(!n||!n.getBoundingClientRect)return z();var o=n,t=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=g(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(t||e)return o;t=!0}}while(o=o.parentNode);return z()}function zt(n,e){if(n&&e)for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}function ze(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Ce;function Tt(n,e){return function(){if(!Ce){var o=arguments,t=this;o.length===1?n.call(t,o[0]):n.apply(t,o),Ce=setTimeout(function(){Ce=void 0},e)}}}function qt(){clearTimeout(Ce),Ce=void 0}function xt(n,e,o){n.scrollLeft+=e,n.scrollTop+=o}function It(n){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):o?o(n).clone(!0)[0]:n.cloneNode(!0)}function Ot(n,e,o){var t={};return Array.from(n.children).forEach(function(i){var r,a,l,s;if(!(!$(i,e.draggable,n,!1)||i.animated||i===o)){var u=I(i);t.left=Math.min((r=t.left)!==null&&r!==void 0?r:1/0,u.left),t.top=Math.min((a=t.top)!==null&&a!==void 0?a:1/0,u.top),t.right=Math.max((l=t.right)!==null&&l!==void 0?l:-1/0,u.right),t.bottom=Math.max((s=t.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var X="Sortable"+new Date().getTime();function Ut(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(i){if(!(g(i,"display")==="none"||i===m.ghost)){n.push({target:i,rect:I(i)});var r=q({},n[n.length-1].rect);if(i.thisAnimationDuration){var a=pe(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(Gt(n,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var r=!1,a=0;n.forEach(function(l){var s=0,u=l.target,f=u.fromRect,d=I(u),y=u.prevFromRect,w=u.prevToRect,v=l.rect,p=pe(u,!0);p&&(d.top-=p.f,d.left-=p.e),u.toRect=d,u.thisAnimationDuration&&ze(y,d)&&!ze(f,d)&&(v.top-d.top)/(v.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(s=Zt(v,y,w,i.options)),ze(d,f)||(u.prevFromRect=f,u.prevToRect=d,s||(s=i.options.animation),i.animate(u,v,d,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),n=[]},animate:function(t,i,r,a){if(a){g(t,"transition",""),g(t,"transform","");var l=pe(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),d=(i.top-r.top)/(u||1);t.animatingX=!!f,t.animatingY=!!d,g(t,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Kt(t),g(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){g(t,"transition",""),g(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function Kt(n){return n.offsetWidth}function Zt(n,e,o,t){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*t.animation}var ce=[],qe={initializeByDefault:!0},Pe={mount:function(e){for(var o in qe)qe.hasOwnProperty(o)&&!(o in e)&&(e[o]=qe[o]);ce.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ce.push(e)},pluginEvent:function(e,o,t){var i=this;this.eventCanceled=!1,t.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ce.forEach(function(a){o[a.pluginName]&&(o[a.pluginName][r]&&o[a.pluginName][r](q({sortable:o},t)),o.options[a.pluginName]&&o[a.pluginName][e]&&o[a.pluginName][e](q({sortable:o},t)))})},initializePlugins:function(e,o,t,i){ce.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,o,e.options);u.sortable=e,u.options=e.options,e[s]=u,Z(t,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,o){var t={};return ce.forEach(function(i){typeof i.eventProperties=="function"&&Z(t,i.eventProperties.call(o[i.pluginName],e))}),t},modifyOption:function(e,o,t){var i;return ce.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(i=r.optionListeners[o].call(e[r.pluginName],t))}),i}};function Qt(n){var e=n.sortable,o=n.rootEl,t=n.name,i=n.targetEl,r=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,u=n.newIndex,f=n.oldDraggableIndex,d=n.newDraggableIndex,y=n.originalEvent,w=n.putSortable,v=n.extraEventProperties;if(e=e||o&&o[X],!!e){var p,D=e.options,O="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Q&&!Oe?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=a||o,p.from=l||o,p.item=i||o,p.clone=r,p.oldIndex=s,p.newIndex=u,p.oldDraggableIndex=f,p.newDraggableIndex=d,p.originalEvent=y,p.pullMode=w?w.lastPutMode:void 0;var P=q(q({},v),Pe.getEventProperties(t,e));for(var M in P)p[M]=P[M];o&&o.dispatchEvent(p),D[O]&&D[O].call(e,p)}}var Jt=["evt"],B=function(e,o){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.evt,r=jt(t,Jt);Pe.pluginEvent.bind(m)(e,o,q({dragEl:c,parentEl:T,ghostEl:b,rootEl:S,nextEl:ue,lastDownEl:Re,cloneEl:C,cloneHidden:ne,dragStarted:Ee,putSortable:N,activeSortable:m.active,originalEvent:i,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te,hideGhostForTarget:kt,unhideGhostForTarget:Vt,cloneNowHidden:function(){ne=!0},cloneNowShown:function(){ne=!1},dispatchSortableEvent:function(l){R({sortable:o,name:l,originalEvent:i})}},r))};function R(n){Qt(q({putSortable:N,cloneEl:C,targetEl:c,rootEl:S,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te},n))}var c,T,b,S,ue,Re,C,ne,he,L,Te,te,ke,N,fe=!1,Le=!1,He=[],le,W,Ue,Ke,vt,bt,Ee,de,xe,Ie=!1,Ve=!1,Be,k,Ze=[],ot=!1,We=[],Ge=typeof document<"u",Me=lt,yt=Oe||Q?"cssFloat":"float",en=Ge&&!_t&&!lt&&"draggable"in document.createElement("div"),Pt=(function(){if(Ge){if(Q)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}})(),Nt=function(e,o){var t=g(e),i=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=ge(e,0,o),a=ge(e,1,o),l=r&&g(r),s=a&&g(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+I(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&t[yt]==="none"||a&&t[yt]==="none"&&u+f>i)?"vertical":"horizontal"},tn=function(e,o,t){var i=t?e.left:e.top,r=t?e.right:e.bottom,a=t?e.width:e.height,l=t?o.left:o.top,s=t?o.right:o.bottom,u=t?o.width:o.height;return i===l||r===s||i+a/2===l+u/2},nn=function(e,o){var t;return He.some(function(i){var r=i[X].options.emptyInsertThreshold;if(!(!r||st(i))){var a=I(i),l=e>=a.left-r&&e<=a.right+r,s=o>=a.top-r&&o<=a.bottom+r;if(l&&s)return t=i}}),t},At=function(e){function o(r,a){return function(l,s,u,f){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||d))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return o(r(l,s,u,f),a)(l,s,u,f);var y=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===y||r.join&&r.indexOf(y)>-1}}var t={},i=e.group;(!i||nt(i)!="object")&&(i={name:i}),t.name=i.name,t.checkPull=o(i.pull,!0),t.checkPut=o(i.put),t.revertClone=i.revertClone,e.group=t},kt=function(){!Pt&&b&&g(b,"display","none")},Vt=function(){!Pt&&b&&g(b,"display","")};Ge&&!_t&&document.addEventListener("click",function(n){if(Le)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Le=!1,!1},!0);var se=function(e){if(c){e=e.touches?e.touches[0]:e;var o=nn(e.clientX,e.clientY);if(o){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.target=t.rootEl=o,t.preventDefault=void 0,t.stopPropagation=void 0,o[X]._onDragOver(t)}}},on=function(e){c&&c.parentNode[X]._isOutsideThisEl(e.target)};function m(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=Z({},e),n[X]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:m.supportPointer!==!1&&"PointerEvent"in window&&(!Se||lt),emptyInsertThreshold:5};Pe.initializePlugins(this,n,o);for(var t in o)!(t in e)&&(e[t]=o[t]);At(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:en,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_(n,"pointerdown",this._onTapStart):(_(n,"mousedown",this._onTapStart),_(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(n,"dragover",this),_(n,"dragenter",this)),He.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,Ut())}m.prototype={constructor:m,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(de=null)},_getDirection:function(e,o){return typeof this.options.direction=="function"?this.options.direction.call(this,e,o,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var o=this,t=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(fn(t),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Se&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,t,!1),!(s&&s.animated)&&Re!==s)){if(he=H(s),Te=H(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){R({sortable:o,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),B("filter",o,{evt:e}),r&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=$(u,d.trim(),t,!1),d)return R({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:t,toEl:t}),B("filter",o,{evt:e}),!0}),f)){r&&e.preventDefault();return}i.handle&&!$(u,i.handle,t,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,o,t){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(t&&!c&&t.parentNode===r){var u=I(t);if(S=r,c=t,T=c.parentNode,ue=c.nextSibling,Re=t,ke=a.group,m.dragged=c,le={target:c,clientX:(o||e).clientX,clientY:(o||e).clientY},vt=le.clientX-u.left,bt=le.clientY-u.top,this._lastX=(o||e).clientX,this._lastY=(o||e).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:e}),m.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ht&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(e,o),R({sortable:i,name:"choose",originalEvent:e}),j(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){Ct(c,f.trim(),Qe)}),_(l,"dragover",se),_(l,"mousemove",se),_(l,"touchmove",se),a.supportPointer?(_(l,"pointerup",i._onDrop),!this.nativeDraggable&&_(l,"pointercancel",i._onDrop)):(_(l,"mouseup",i._onDrop),_(l,"touchend",i._onDrop),_(l,"touchcancel",i._onDrop)),ht&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Oe||Q))){if(m.eventCanceled){this._onDrop();return}a.supportPointer?(_(l,"pointerup",i._disableDelayedDrag),_(l,"pointercancel",i._disableDelayedDrag)):(_(l,"mouseup",i._disableDelayedDrag),_(l,"touchend",i._disableDelayedDrag),_(l,"touchcancel",i._disableDelayedDrag)),_(l,"mousemove",i._delayedDragTouchMoveHandler),_(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&_(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var o=e.touches?e.touches[0]:e;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Qe(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._disableDelayedDrag),E(e,"touchend",this._disableDelayedDrag),E(e,"touchcancel",this._disableDelayedDrag),E(e,"pointerup",this._disableDelayedDrag),E(e,"pointercancel",this._disableDelayedDrag),E(e,"mousemove",this._delayedDragTouchMoveHandler),E(e,"touchmove",this._delayedDragTouchMoveHandler),E(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,o){o=o||e.pointerType=="touch"&&e,!this.nativeDraggable||o?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):o?_(document,"touchmove",this._onTouchMove):_(document,"mousemove",this._onTouchMove):(_(c,"dragend",this),_(S,"dragstart",this._onDragStart));try{document.selection?Xe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,o){if(fe=!1,S&&c){B("dragStarted",this,{evt:o}),this.nativeDraggable&&_(document,"dragover",on);var t=this.options;!e&&j(c,t.dragClass,!1),j(c,t.ghostClass,!0),m.active=this,e&&this._appendGhost(),R({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,kt();for(var e=document.elementFromPoint(W.clientX,W.clientY),o=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==o);)o=e;if(c.parentNode[X]._isOutsideThisEl(e),o)do{if(o[X]){var t=void 0;if(t=o[X]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:o}),t&&!this.options.dragoverBubble)break}e=o}while(o=St(o));Vt()}},_onTouchMove:function(e){if(le){var o=this.options,t=o.fallbackTolerance,i=o.fallbackOffset,r=e.touches?e.touches[0]:e,a=b&&pe(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,u=Me&&k&&mt(k),f=(r.clientX-le.clientX+i.x)/(l||1)+(u?u[0]-Ze[0]:0)/(l||1),d=(r.clientY-le.clientY+i.y)/(s||1)+(u?u[1]-Ze[1]:0)/(s||1);if(!m.active&&!fe){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(b){a?(a.e+=f-(Ue||0),a.f+=d-(Ke||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var y="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",y),g(b,"mozTransform",y),g(b,"msTransform",y),g(b,"transform",y),Ue=f,Ke=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!b){var e=this.options.fallbackOnBody?document.body:S,o=I(c,!0,Me,!0,e),t=this.options;if(Me){for(k=e;g(k,"position")==="static"&&g(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),o.top+=k.scrollTop,o.left+=k.scrollLeft):k=z(),Ze=mt(k)}b=c.cloneNode(!0),j(b,t.ghostClass,!1),j(b,t.fallbackClass,!0),j(b,t.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",o.top),g(b,"left",o.left),g(b,"width",o.width),g(b,"height",o.height),g(b,"opacity","0.8"),g(b,"position",Me?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),m.ghost=b,e.appendChild(b),g(b,"transform-origin",vt/parseInt(b.style.width)*100+"% "+bt/parseInt(b.style.height)*100+"%")}},_onDragStart:function(e,o){var t=this,i=e.dataTransfer,r=t.options;if(B("dragStart",this,{evt:e}),m.eventCanceled){this._onDrop();return}B("setupClone",this),m.eventCanceled||(C=It(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),j(C,this.options.chosenClass,!1),m.clone=C),t.cloneId=Xe(function(){B("clone",t),!m.eventCanceled&&(t.options.removeCloneOnHide||S.insertBefore(C,c),t._hideClone(),R({sortable:t,name:"clone"}))}),!o&&j(c,r.dragClass,!0),o?(Le=!0,t._loopId=setInterval(t._emulateDragOver,50)):(E(document,"mouseup",t._onDrop),E(document,"touchend",t._onDrop),E(document,"touchcancel",t._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(t,i,c)),_(document,"drop",t),g(c,"transform","translateZ(0)")),fe=!0,t._dragStartId=Xe(t._dragStarted.bind(t,o,e)),_(document,"selectstart",t),Ee=!0,window.getSelection().removeAllRanges(),Se&&g(document.body,"user-select","none")},_onDragOver:function(e){var o=this.el,t=e.target,i,r,a,l=this.options,s=l.group,u=m.active,f=ke===s,d=l.sort,y=N||u,w,v=this,p=!1;if(ot)return;function D(we,Ft){B(we,v,q({evt:e,isOwner:f,axis:w?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:d,fromSortable:y,target:t,completed:P,onMove:function(dt,Rt){return Fe(S,o,c,i,dt,I(dt),e,Rt)},changed:M},Ft))}function O(){D("dragOverAnimationCapture"),v.captureAnimationState(),v!==y&&y.captureAnimationState()}function P(we){return D("dragOverCompleted",{insertion:we}),we&&(f?u._hideClone():u._showClone(v),v!==y&&(j(c,N?N.options.ghostClass:u.options.ghostClass,!1),j(c,l.ghostClass,!0)),N!==v&&v!==m.active?N=v:v===m.active&&N&&(N=null),y===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){D("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(t===c&&!c.animated||t===o&&!t.animated)&&(de=null),!l.dragoverBubble&&!e.rootEl&&t!==document&&(c.parentNode[X]._isOutsideThisEl(e.target),!we&&se(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function M(){L=H(c),te=H(c,l.draggable),R({sortable:v,name:"change",toEl:o,newIndex:L,newDraggableIndex:te,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=$(t,l.draggable,o,!0),D("dragOver"),m.eventCanceled)return p;if(c.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return P(!1);if(Le=!1,u&&!l.disabled&&(f?d||(a=T!==S):N===this||(this.lastPutMode=ke.checkPull(this,u,c,e))&&s.checkPut(this,u,c,e))){if(w=this._getDirection(e,t)==="vertical",i=I(c),D("dragOverValid"),m.eventCanceled)return p;if(a)return T=S,O(),this._hideClone(),D("revert"),m.eventCanceled||(ue?S.insertBefore(c,ue):S.appendChild(c)),P(!0);var F=st(o,l.draggable);if(!F||sn(e,w,this)&&!F.animated){if(F===c)return P(!1);if(F&&o===e.target&&(t=F),t&&(r=I(t)),Fe(S,o,c,i,t,r,e,!!t)!==!1)return O(),F&&F.nextSibling?o.insertBefore(c,F.nextSibling):o.appendChild(c),T=o,M(),P(!0)}else if(F&&ln(e,w,this)){var ie=ge(o,0,l,!0);if(ie===c)return P(!1);if(t=ie,r=I(t),Fe(S,o,c,i,t,r,e,!1)!==!1)return O(),o.insertBefore(c,ie),T=o,M(),P(!0)}else if(t.parentNode===o){r=I(t);var G=0,re,me=c.parentNode!==o,Y=!tn(c.animated&&c.toRect||i,t.animated&&t.toRect||r,w),ve=w?"top":"left",J=gt(t,"top","top")||gt(c,"top","top"),be=J?J.scrollTop:void 0;de!==t&&(re=r[ve],Ie=!1,Ve=!Y&&l.invertSwap||me),G=un(e,t,r,w,Y?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Ve,de===t);var U;if(G!==0){var ae=H(c);do ae-=G,U=T.children[ae];while(U&&(g(U,"display")==="none"||U===b))}if(G===0||U===t)return P(!1);de=t,xe=G;var ye=t.nextElementSibling,ee=!1;ee=G===1;var Ne=Fe(S,o,c,i,t,r,e,ee);if(Ne!==!1)return(Ne===1||Ne===-1)&&(ee=Ne===1),ot=!0,setTimeout(an,30),O(),ee&&!ye?o.appendChild(c):t.parentNode.insertBefore(c,ee?ye:t),J&&xt(J,0,be-J.scrollTop),T=c.parentNode,re!==void 0&&!Ve&&(Be=Math.abs(re-I(t)[ve])),M(),P(!0)}if(o.contains(c))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",se),E(document,"mousemove",se),E(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._onDrop),E(e,"touchend",this._onDrop),E(e,"pointerup",this._onDrop),E(e,"pointercancel",this._onDrop),E(e,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(e){var o=this.el,t=this.options;if(L=H(c),te=H(c,t.draggable),B("drop",this,{evt:e}),T=c&&c.parentNode,L=H(c),te=H(c,t.draggable),m.eventCanceled){this._nulling();return}fe=!1,Ve=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),it(this.cloneId),it(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Se&&g(document.body,"user-select",""),g(c,"transform",""),e&&(Ee&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(S===T||N&&N.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Qe(c),c.style["will-change"]="",Ee&&!fe&&j(c,N?N.options.ghostClass:this.options.ghostClass,!1),j(c,this.options.chosenClass,!1),R({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),S!==T?(L>=0&&(R({rootEl:T,name:"add",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"remove",toEl:T,originalEvent:e}),R({rootEl:T,name:"sort",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),N&&N.save()):L!==he&&L>=0&&(R({sortable:this,name:"update",toEl:T,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),m.active&&((L==null||L===-1)&&(L=he,te=Te),R({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),S=c=T=b=ue=C=Re=ne=le=W=Ee=L=te=he=Te=de=xe=N=ke=m.dragged=m.ghost=m.clone=m.active=null;var e=this.el;We.forEach(function(o){e.contains(o)&&(o.checked=!0)}),We.length=Ue=Ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),rn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],o,t=this.el.children,i=0,r=t.length,a=this.options;i<r;i++)o=t[i],$(o,a.draggable,this.el,!1)&&e.push(o.getAttribute(a.dataIdAttr)||dn(o));return e},sort:function(e,o){var t={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(t[r]=l)},this),o&&this.captureAnimationState(),e.forEach(function(r){t[r]&&(i.removeChild(t[r]),i.appendChild(t[r]))}),o&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,o){return $(e,o||this.options.draggable,this.el,!1)},option:function(e,o){var t=this.options;if(o===void 0)return t[e];var i=Pe.modifyOption(this,e,o);typeof i<"u"?t[e]=i:t[e]=o,e==="group"&&At(t)},destroy:function(){B("destroy",this);var e=this.el;e[X]=null,E(e,"mousedown",this._onTapStart),E(e,"touchstart",this._onTapStart),E(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(e,"dragover",this),E(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),He.splice(He.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ne){if(B("hideClone",this),m.eventCanceled)return;g(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),ne=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(ne){if(B("showClone",this),m.eventCanceled)return;c.parentNode==S&&!this.options.group.revertClone?S.insertBefore(C,c):ue?S.insertBefore(C,ue):S.appendChild(C),this.options.group.revertClone&&this.animate(c,C),g(C,"display",""),ne=!1}}};function rn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Fe(n,e,o,t,i,r,a,l){var s,u=n[X],f=u.options.onMove,d;return window.CustomEvent&&!Q&&!Oe?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=n,s.dragged=o,s.draggedRect=t,s.related=i||e,s.relatedRect=r||I(e),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),f&&(d=f.call(u,s,a)),d}function Qe(n){n.draggable=!1}function an(){ot=!1}function ln(n,e,o){var t=I(ge(o.el,0,o.options,!0)),i=Ot(o.el,o.options,b),r=10;return e?n.clientX<i.left-r||n.clientY<t.top&&n.clientX<t.right:n.clientY<i.top-r||n.clientY<t.bottom&&n.clientX<t.left}function sn(n,e,o){var t=I(st(o.el,o.options.draggable)),i=Ot(o.el,o.options,b),r=10;return e?n.clientX>i.right+r||n.clientY>t.bottom&&n.clientX>t.left:n.clientY>i.bottom+r||n.clientX>t.right&&n.clientY>t.top}function un(n,e,o,t,i,r,a,l){var s=t?n.clientY:n.clientX,u=t?o.height:o.width,f=t?o.top:o.left,d=t?o.bottom:o.right,y=!1;if(!a){if(l&&Be<u*i){if(!Ie&&(xe===1?s>f+u*r/2:s<d-u*r/2)&&(Ie=!0),Ie)y=!0;else if(xe===1?s<f+Be:s>d-Be)return-xe}else if(s>f+u*(1-i)/2&&s<d-u*(1-i)/2)return cn(e)}return y=y||a,y&&(s<f+u*r/2||s>d-u*r/2)?s>f+u/2?1:-1:0}function cn(n){return H(c)<H(n)?1:-1}function dn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,o=e.length,t=0;o--;)t+=e.charCodeAt(o);return t.toString(36)}function fn(n){We.length=0;for(var e=n.getElementsByTagName("input"),o=e.length;o--;){var t=e[o];t.checked&&We.push(t)}}function Xe(n){return setTimeout(n,0)}function it(n){return clearTimeout(n)}Ge&&_(document,"touchmove",function(n){(m.active||fe)&&n.cancelable&&n.preventDefault()});m.utils={on:_,off:E,css:g,find:Ct,is:function(e,o){return!!$(e,o,e,!1)},extend:zt,throttle:Tt,closest:$,toggleClass:j,clone:It,index:H,nextTick:Xe,cancelNextTick:it,detectDirection:Nt,getChild:ge,expando:X};m.get=function(n){return n[X]};m.mount=function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(m.utils=q(q({},m.utils),t.utils)),Pe.mount(t)})};m.create=function(n,e){return new m(n,e)};m.version=$t;var x=[],_e,rt,at=!1,Je,et,$e,De;function hn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(o){var t=o.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var t=o.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),wt(),Ye(),qt()},nulling:function(){$e=rt=_e=at=De=Je=et=null,x.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,t){var i=this,r=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,l=document.elementFromPoint(r,a);if($e=o,t||this.options.forceAutoScrollFallback||Oe||Q||Se){tt(o,this.options,l,t);var s=oe(l,!0);at&&(!De||r!==Je||a!==et)&&(De&&wt(),De=setInterval(function(){var u=oe(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Ye()),tt(o,i.options,u,t)},10),Je=r,et=a)}else{if(!this.options.bubbleScroll||oe(l,!0)===z()){Ye();return}tt(o,this.options,oe(l,!1),!1)}}},Z(n,{pluginName:"scroll",initializeByDefault:!0})}function Ye(){x.forEach(function(n){clearInterval(n.pid)}),x=[]}function wt(){clearInterval(De)}var tt=Tt(function(n,e,o,t){if(e.scroll){var i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=z(),u=!1,f;rt!==o&&(rt=o,Ye(),_e=e.scroll,f=e.scrollFn,_e===!0&&(_e=oe(o,!0)));var d=0,y=_e;do{var w=y,v=I(w),p=v.top,D=v.bottom,O=v.left,P=v.right,M=v.width,F=v.height,ie=void 0,G=void 0,re=w.scrollWidth,me=w.scrollHeight,Y=g(w),ve=w.scrollLeft,J=w.scrollTop;w===s?(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"||Y.overflowX==="visible"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"||Y.overflowY==="visible")):(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"));var be=ie&&(Math.abs(P-i)<=a&&ve+M<re)-(Math.abs(O-i)<=a&&!!ve),U=G&&(Math.abs(D-r)<=a&&J+F<me)-(Math.abs(p-r)<=a&&!!J);if(!x[d])for(var ae=0;ae<=d;ae++)x[ae]||(x[ae]={});(x[d].vx!=be||x[d].vy!=U||x[d].el!==w)&&(x[d].el=w,x[d].vx=be,x[d].vy=U,clearInterval(x[d].pid),(be!=0||U!=0)&&(u=!0,x[d].pid=setInterval((function(){t&&this.layer===0&&m.active._onTouchMove($e);var ye=x[this.layer].vy?x[this.layer].vy*l:0,ee=x[this.layer].vx?x[this.layer].vx*l:0;typeof f=="function"&&f.call(m.dragged.parentNode[X],ee,ye,n,$e,x[this.layer].el)!=="continue"||xt(x[this.layer].el,ee,ye)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&y!==s&&(y=oe(y,!1)));at=u}},30),Mt=function(e){var o=e.originalEvent,t=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(o){var u=t||r;l();var f=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(d)&&(a("spill"),this.onSpill({dragEl:i,putSortable:t}))}};function ut(){}ut.prototype={startIndex:null,dragStart:function(e){var o=e.oldDraggableIndex;this.startIndex=o},onSpill:function(e){var o=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var i=ge(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(o,i):this.sortable.el.appendChild(o),this.sortable.animateAll(),t&&t.animateAll()},drop:Mt};Z(ut,{pluginName:"revertOnSpill"});function ct(){}ct.prototype={onSpill:function(e){var o=e.dragEl,t=e.putSortable,i=t||this.sortable;i.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),i.animateAll()},drop:Mt};Z(ct,{pluginName:"removeOnSpill"});m.mount(new hn);m.mount(ct,ut);function pn(n,e,o={}){let t;const{document:i=Ae.defaultDocument,watchElement:r=!1,...a}=o,l={onUpdate:p=>{vn(e,p.oldIndex,p.newIndex,p)}},s=h.computed(()=>typeof n=="string"?i?.querySelector(n):Ae.unrefElement(n)),u=()=>{t?.destroy(),t=void 0},f=p=>{!p||t!==void 0||(t=new m(p,{...l,...a}))},d=()=>{const p=s.value;p&&f(p)},y=(p,D)=>{if(D!==void 0)t?.option(p,D);else return t?.option(p)};let w;r&&typeof n!="string"?w=h.watch(s,p=>{u(),p&&f(p)},{immediate:!0,flush:"post"}):Ae.tryOnMounted(d);const v=()=>{u()};return Ae.tryOnScopeDispose(()=>{w?.(),u()}),{stop:v,start:d,option:y}}function gn(n,e,o){const t=n.children[o];n.insertBefore(e,t)}function mn(n){n.parentNode&&n.parentNode.removeChild(n)}function vn(n,e,o,t=null){t!=null&&(mn(t.item),gn(t.from,t.item,e));const i=h.isRef(n),r=i?[...h.toValue(n)]:h.toValue(n);if(o>=0&&o<r.length){const a=r.splice(e,1)[0];h.nextTick(()=>{r.splice(o,0,a),i&&(n.value=r)})}}const bn={class:"text-medium-emphasis ps-2"},yn={__name:"Dialog",setup(n,{expose:e}){const o=h.inject("table_props"),t=h.inject("datatablesPluginOptions"),{tableState:i}=A.useTableState(),{tableDataState:r}=A.useDatastate(o),a=h.ref(0),l=h.useTemplateRef("listRef"),s=h.ref(!1),u=h.ref([]),f=h.ref([]),d=h.ref([]),y=()=>{s.value=!0};h.onMounted(async()=>{f.value=i.value.options.columns?.selected,d.value=i.value.options.columns?.sorted,u.value=d.value.map(p=>o.headers.find(D=>D.key===p)),await h.nextTick();const{option:v}=pn(l,u,{onUpdate:async p=>{await h.nextTick();const D=Array.from(p.from.children).map(function(O){return O.getAttribute("header-keys")});A.deepEqual(D,d.value)||(d.value=D)}});v("animation",200)});const w=()=>{(!A.deepEqual(f.value,i.value.options.columns?.selected)||!A.deepEqual(d.value,i.value.options.columns?.sorted))&&(r.value.options.columns.selected=f.value,r.value.options.columns.sorted=d.value),s.value=!1};return e({openDialog:y}),(v,p)=>(h.openBlock(),h.createBlock(A.VDialog,{modelValue:h.unref(s),"onUpdate:modelValue":p[1]||(p[1]=D=>h.isRef(s)?s.value=D:null),"max-width":"500",eager:"","retain-focus":!1},{default:h.withCtx(({isActive:D})=>[h.createVNode(A.VCard,{rounded:"lg"},{default:h.withCtx(()=>[h.createVNode(A.VCardTitle,{class:"d-flex justify-space-between align-center"},{default:h.withCtx(()=>[h.createElementVNode("div",bn,h.toDisplayString(v.$t("$datatables.selectColumns")),1),h.createVNode(V.VBtn,{icon:h.unref(t).header.icons.close,variant:"text",onClick:O=>D.value=!1},null,8,["icon","onClick"])]),_:2},1024),h.createVNode(V.VDivider),h.createVNode(A.VCardText,{class:"overflow-auto pt-8"},{default:h.withCtx(()=>[h.createVNode(V.VList,{ref_key:"listRef",ref:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(u),(O,P)=>(h.openBlock(),h.createBlock(V.VListItem,{key:`${h.unref(a)}-${P}`,title:O?.title,"header-keys":O?.key,onClick:()=>{}},{prepend:h.withCtx(()=>[h.createVNode(Et,{modelValue:h.unref(f),"onUpdate:modelValue":p[0]||(p[0]=M=>h.isRef(f)?f.value=M:null),value:O?.key,"hide-details":""},null,8,["modelValue","value"])]),append:h.withCtx(()=>[h.createVNode(V.VIcon,{icon:h.unref(t).header.icons.drag},null,8,["icon"])]),_:2},1032,["title","header-keys"]))),128))]),_:1},512)]),_:1}),h.createVNode(V.VDivider,{class:"mt-2"}),h.createVNode(A.VCardActions,{class:"my-2 d-flex justify-end"},{default:h.withCtx(()=>[h.createVNode(V.VBtn,{class:"text-none",text:v.$t("$datatables.cancel"),onClick:O=>D.value=!1},null,8,["text","onClick"]),h.createVNode(V.VBtn,{class:"text-none",color:"primary",text:v.$t("$datatables.submit"),variant:"flat",onClick:w},null,8,["text"])]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]))}};function wn(){const n=h.inject("datatablesPluginOptions"),{t:e}=Bt.useI18n(),o=h.ref();return{columnsItems:h.computed(()=>[{title:`${e("$datatables.columns")}`,onClick:o.value?.openDialog,prependIcon:n.header.icons.columns}]),columnsRef:o}}exports.VCheckbox=Et;exports._sfc_main=yn;exports.useColumns=wn;
|
|
1
|
+
"use strict";const h=require("vue"),Ae=require("@vueuse/core"),A=require("./index-CopBd7Yy.cjs"),V=require("./dataTables-C6SqqvEF.cjs"),Bt=require("vue-i18n"),Xt=V.propsFactory({...V.omit(A.makeVInputProps(),["direction"]),...V.omit(A.makeVCheckboxBtnProps(),["inline"])},"VCheckbox"),Et=V.genericComponent()({name:"VCheckbox",inheritAttrs:!1,props:Xt(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:o,slots:t}=e;const i=V.useProxiedModel(n,"modelValue"),{isFocused:r,focus:a,blur:l}=A.useFocus(n),s=h.ref(),u=h.useId();return V.useRender(()=>{const[f,d]=V.filterInputAttrs(o),y=A.VInput.filterProps(n),w=A.VCheckboxBtn.filterProps(n);return h.createVNode(A.VInput,h.mergeProps({ref:s,class:["v-checkbox",n.class]},f,y,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,id:n.id||`checkbox-${u}`,focused:r.value,style:n.style}),{...t,default:v=>{let{id:p,messagesId:D,isDisabled:O,isReadonly:P,isValid:M}=v;return h.createVNode(A.VCheckboxBtn,h.mergeProps(w,{id:p.value,"aria-describedby":D.value,disabled:O.value,readonly:P.value},d,{error:M.value===!1,modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,onFocus:a,onBlur:l}),t)}})}),V.forwardRefs({},s)}});function Yt(n,e,o){return(e=Wt(e))in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n}function Z(){return Z=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var t in o)({}).hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},Z.apply(null,arguments)}function ft(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,t)}return o}function q(n){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(o),!0).forEach(function(t){Yt(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ft(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}function jt(n,e){if(n==null)return{};var o,t,i=Lt(n,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(t=0;t<r.length;t++)o=r[t],e.indexOf(o)===-1&&{}.propertyIsEnumerable.call(n,o)&&(i[o]=n[o])}return i}function Lt(n,e){if(n==null)return{};var o={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(e.indexOf(t)!==-1)continue;o[t]=n[t]}return o}function Ht(n,e){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var t=o.call(n,e);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wt(n){var e=Ht(n,"string");return typeof e=="symbol"?e:e+""}function nt(n){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(n)}var $t="1.15.7";function K(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Q=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oe=K(/Edge/i),ht=K(/firefox/i),Se=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),lt=K(/iP(ad|od|hone)/i),_t=K(/chrome/i)&&K(/android/i),Dt={capture:!1,passive:!1};function _(n,e,o){n.addEventListener(e,o,!Q&&Dt)}function E(n,e,o){n.removeEventListener(e,o,!Q&&Dt)}function je(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function St(n){return n.host&&n!==document&&n.host.nodeType&&n.host!==n?n.host:n.parentNode}function $(n,e,o,t){if(n){o=o||document;do{if(e!=null&&(e[0]===">"?n.parentNode===o&&je(n,e):je(n,e))||t&&n===o)return n;if(n===o)break}while(n=St(n))}return null}var pt=/\s+/g;function j(n,e,o){if(n&&e)if(n.classList)n.classList[o?"add":"remove"](e);else{var t=(" "+n.className+" ").replace(pt," ").replace(" "+e+" "," ");n.className=(t+(o?" "+e:"")).replace(pt," ")}}function g(n,e,o){var t=n&&n.style;if(t){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(o=n.currentStyle),e===void 0?o:o[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=o+(typeof o=="string"?"":"px")}}function pe(n,e){var o="";if(typeof n=="string")o=n;else do{var t=g(n,"transform");t&&t!=="none"&&(o=t+" "+o)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Ct(n,e,o){if(n){var t=n.getElementsByTagName(e),i=0,r=t.length;if(o)for(;i<r;i++)o(t[i],i);return t}return[]}function z(){var n=document.scrollingElement;return n||document.documentElement}function I(n,e,o,t,i){if(!(!n.getBoundingClientRect&&n!==window)){var r,a,l,s,u,f,d;if(n!==window&&n.parentNode&&n!==z()?(r=n.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||o)&&n!==window&&(i=i||n.parentNode,!Q))do if(i&&i.getBoundingClientRect&&(g(i,"transform")!=="none"||o&&g(i,"position")!=="static")){var y=i.getBoundingClientRect();a-=y.top+parseInt(g(i,"border-top-width")),l-=y.left+parseInt(g(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(t&&n!==window){var w=pe(i||n),v=w&&w.a,p=w&&w.d;w&&(a/=p,l/=v,d/=v,f/=p,s=a+f,u=l+d)}return{top:a,left:l,bottom:s,right:u,width:d,height:f}}}function gt(n,e,o){for(var t=oe(n,!0),i=I(n)[e];t;){var r=I(t)[o],a=void 0;if(a=i>=r,!a)return t;if(t===z())break;t=oe(t,!1)}return!1}function ge(n,e,o,t){for(var i=0,r=0,a=n.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==m.ghost&&(t||a[r]!==m.dragged)&&$(a[r],o.draggable,n,!1)){if(i===e)return a[r];i++}r++}return null}function st(n,e){for(var o=n.lastElementChild;o&&(o===m.ghost||g(o,"display")==="none"||e&&!je(o,e));)o=o.previousElementSibling;return o||null}function H(n,e){var o=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==m.clone&&(!e||je(n,e))&&o++;return o}function mt(n){var e=0,o=0,t=z();if(n)do{var i=pe(n),r=i.a,a=i.d;e+=n.scrollLeft*r,o+=n.scrollTop*a}while(n!==t&&(n=n.parentNode));return[e,o]}function Gt(n,e){for(var o in n)if(n.hasOwnProperty(o)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n[o][t])return Number(o)}return-1}function oe(n,e){if(!n||!n.getBoundingClientRect)return z();var o=n,t=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=g(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(t||e)return o;t=!0}}while(o=o.parentNode);return z()}function zt(n,e){if(n&&e)for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}function ze(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Ce;function Tt(n,e){return function(){if(!Ce){var o=arguments,t=this;o.length===1?n.call(t,o[0]):n.apply(t,o),Ce=setTimeout(function(){Ce=void 0},e)}}}function qt(){clearTimeout(Ce),Ce=void 0}function xt(n,e,o){n.scrollLeft+=e,n.scrollTop+=o}function It(n){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):o?o(n).clone(!0)[0]:n.cloneNode(!0)}function Ot(n,e,o){var t={};return Array.from(n.children).forEach(function(i){var r,a,l,s;if(!(!$(i,e.draggable,n,!1)||i.animated||i===o)){var u=I(i);t.left=Math.min((r=t.left)!==null&&r!==void 0?r:1/0,u.left),t.top=Math.min((a=t.top)!==null&&a!==void 0?a:1/0,u.top),t.right=Math.max((l=t.right)!==null&&l!==void 0?l:-1/0,u.right),t.bottom=Math.max((s=t.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var X="Sortable"+new Date().getTime();function Ut(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(i){if(!(g(i,"display")==="none"||i===m.ghost)){n.push({target:i,rect:I(i)});var r=q({},n[n.length-1].rect);if(i.thisAnimationDuration){var a=pe(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(Gt(n,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var r=!1,a=0;n.forEach(function(l){var s=0,u=l.target,f=u.fromRect,d=I(u),y=u.prevFromRect,w=u.prevToRect,v=l.rect,p=pe(u,!0);p&&(d.top-=p.f,d.left-=p.e),u.toRect=d,u.thisAnimationDuration&&ze(y,d)&&!ze(f,d)&&(v.top-d.top)/(v.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(s=Zt(v,y,w,i.options)),ze(d,f)||(u.prevFromRect=f,u.prevToRect=d,s||(s=i.options.animation),i.animate(u,v,d,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),n=[]},animate:function(t,i,r,a){if(a){g(t,"transition",""),g(t,"transform","");var l=pe(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),d=(i.top-r.top)/(u||1);t.animatingX=!!f,t.animatingY=!!d,g(t,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Kt(t),g(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){g(t,"transition",""),g(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function Kt(n){return n.offsetWidth}function Zt(n,e,o,t){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*t.animation}var ce=[],qe={initializeByDefault:!0},Pe={mount:function(e){for(var o in qe)qe.hasOwnProperty(o)&&!(o in e)&&(e[o]=qe[o]);ce.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ce.push(e)},pluginEvent:function(e,o,t){var i=this;this.eventCanceled=!1,t.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ce.forEach(function(a){o[a.pluginName]&&(o[a.pluginName][r]&&o[a.pluginName][r](q({sortable:o},t)),o.options[a.pluginName]&&o[a.pluginName][e]&&o[a.pluginName][e](q({sortable:o},t)))})},initializePlugins:function(e,o,t,i){ce.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,o,e.options);u.sortable=e,u.options=e.options,e[s]=u,Z(t,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,o){var t={};return ce.forEach(function(i){typeof i.eventProperties=="function"&&Z(t,i.eventProperties.call(o[i.pluginName],e))}),t},modifyOption:function(e,o,t){var i;return ce.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(i=r.optionListeners[o].call(e[r.pluginName],t))}),i}};function Qt(n){var e=n.sortable,o=n.rootEl,t=n.name,i=n.targetEl,r=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,u=n.newIndex,f=n.oldDraggableIndex,d=n.newDraggableIndex,y=n.originalEvent,w=n.putSortable,v=n.extraEventProperties;if(e=e||o&&o[X],!!e){var p,D=e.options,O="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Q&&!Oe?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=a||o,p.from=l||o,p.item=i||o,p.clone=r,p.oldIndex=s,p.newIndex=u,p.oldDraggableIndex=f,p.newDraggableIndex=d,p.originalEvent=y,p.pullMode=w?w.lastPutMode:void 0;var P=q(q({},v),Pe.getEventProperties(t,e));for(var M in P)p[M]=P[M];o&&o.dispatchEvent(p),D[O]&&D[O].call(e,p)}}var Jt=["evt"],B=function(e,o){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.evt,r=jt(t,Jt);Pe.pluginEvent.bind(m)(e,o,q({dragEl:c,parentEl:T,ghostEl:b,rootEl:S,nextEl:ue,lastDownEl:Re,cloneEl:C,cloneHidden:ne,dragStarted:Ee,putSortable:N,activeSortable:m.active,originalEvent:i,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te,hideGhostForTarget:kt,unhideGhostForTarget:Vt,cloneNowHidden:function(){ne=!0},cloneNowShown:function(){ne=!1},dispatchSortableEvent:function(l){R({sortable:o,name:l,originalEvent:i})}},r))};function R(n){Qt(q({putSortable:N,cloneEl:C,targetEl:c,rootEl:S,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te},n))}var c,T,b,S,ue,Re,C,ne,he,L,Te,te,ke,N,fe=!1,Le=!1,He=[],le,W,Ue,Ke,vt,bt,Ee,de,xe,Ie=!1,Ve=!1,Be,k,Ze=[],ot=!1,We=[],Ge=typeof document<"u",Me=lt,yt=Oe||Q?"cssFloat":"float",en=Ge&&!_t&&!lt&&"draggable"in document.createElement("div"),Pt=(function(){if(Ge){if(Q)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}})(),Nt=function(e,o){var t=g(e),i=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=ge(e,0,o),a=ge(e,1,o),l=r&&g(r),s=a&&g(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+I(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&t[yt]==="none"||a&&t[yt]==="none"&&u+f>i)?"vertical":"horizontal"},tn=function(e,o,t){var i=t?e.left:e.top,r=t?e.right:e.bottom,a=t?e.width:e.height,l=t?o.left:o.top,s=t?o.right:o.bottom,u=t?o.width:o.height;return i===l||r===s||i+a/2===l+u/2},nn=function(e,o){var t;return He.some(function(i){var r=i[X].options.emptyInsertThreshold;if(!(!r||st(i))){var a=I(i),l=e>=a.left-r&&e<=a.right+r,s=o>=a.top-r&&o<=a.bottom+r;if(l&&s)return t=i}}),t},At=function(e){function o(r,a){return function(l,s,u,f){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||d))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return o(r(l,s,u,f),a)(l,s,u,f);var y=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===y||r.join&&r.indexOf(y)>-1}}var t={},i=e.group;(!i||nt(i)!="object")&&(i={name:i}),t.name=i.name,t.checkPull=o(i.pull,!0),t.checkPut=o(i.put),t.revertClone=i.revertClone,e.group=t},kt=function(){!Pt&&b&&g(b,"display","none")},Vt=function(){!Pt&&b&&g(b,"display","")};Ge&&!_t&&document.addEventListener("click",function(n){if(Le)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Le=!1,!1},!0);var se=function(e){if(c){e=e.touches?e.touches[0]:e;var o=nn(e.clientX,e.clientY);if(o){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.target=t.rootEl=o,t.preventDefault=void 0,t.stopPropagation=void 0,o[X]._onDragOver(t)}}},on=function(e){c&&c.parentNode[X]._isOutsideThisEl(e.target)};function m(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=Z({},e),n[X]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:m.supportPointer!==!1&&"PointerEvent"in window&&(!Se||lt),emptyInsertThreshold:5};Pe.initializePlugins(this,n,o);for(var t in o)!(t in e)&&(e[t]=o[t]);At(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:en,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_(n,"pointerdown",this._onTapStart):(_(n,"mousedown",this._onTapStart),_(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(n,"dragover",this),_(n,"dragenter",this)),He.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,Ut())}m.prototype={constructor:m,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(de=null)},_getDirection:function(e,o){return typeof this.options.direction=="function"?this.options.direction.call(this,e,o,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var o=this,t=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(fn(t),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Se&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,t,!1),!(s&&s.animated)&&Re!==s)){if(he=H(s),Te=H(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){R({sortable:o,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),B("filter",o,{evt:e}),r&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=$(u,d.trim(),t,!1),d)return R({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:t,toEl:t}),B("filter",o,{evt:e}),!0}),f)){r&&e.preventDefault();return}i.handle&&!$(u,i.handle,t,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,o,t){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(t&&!c&&t.parentNode===r){var u=I(t);if(S=r,c=t,T=c.parentNode,ue=c.nextSibling,Re=t,ke=a.group,m.dragged=c,le={target:c,clientX:(o||e).clientX,clientY:(o||e).clientY},vt=le.clientX-u.left,bt=le.clientY-u.top,this._lastX=(o||e).clientX,this._lastY=(o||e).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:e}),m.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ht&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(e,o),R({sortable:i,name:"choose",originalEvent:e}),j(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){Ct(c,f.trim(),Qe)}),_(l,"dragover",se),_(l,"mousemove",se),_(l,"touchmove",se),a.supportPointer?(_(l,"pointerup",i._onDrop),!this.nativeDraggable&&_(l,"pointercancel",i._onDrop)):(_(l,"mouseup",i._onDrop),_(l,"touchend",i._onDrop),_(l,"touchcancel",i._onDrop)),ht&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Oe||Q))){if(m.eventCanceled){this._onDrop();return}a.supportPointer?(_(l,"pointerup",i._disableDelayedDrag),_(l,"pointercancel",i._disableDelayedDrag)):(_(l,"mouseup",i._disableDelayedDrag),_(l,"touchend",i._disableDelayedDrag),_(l,"touchcancel",i._disableDelayedDrag)),_(l,"mousemove",i._delayedDragTouchMoveHandler),_(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&_(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var o=e.touches?e.touches[0]:e;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Qe(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._disableDelayedDrag),E(e,"touchend",this._disableDelayedDrag),E(e,"touchcancel",this._disableDelayedDrag),E(e,"pointerup",this._disableDelayedDrag),E(e,"pointercancel",this._disableDelayedDrag),E(e,"mousemove",this._delayedDragTouchMoveHandler),E(e,"touchmove",this._delayedDragTouchMoveHandler),E(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,o){o=o||e.pointerType=="touch"&&e,!this.nativeDraggable||o?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):o?_(document,"touchmove",this._onTouchMove):_(document,"mousemove",this._onTouchMove):(_(c,"dragend",this),_(S,"dragstart",this._onDragStart));try{document.selection?Xe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,o){if(fe=!1,S&&c){B("dragStarted",this,{evt:o}),this.nativeDraggable&&_(document,"dragover",on);var t=this.options;!e&&j(c,t.dragClass,!1),j(c,t.ghostClass,!0),m.active=this,e&&this._appendGhost(),R({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,kt();for(var e=document.elementFromPoint(W.clientX,W.clientY),o=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==o);)o=e;if(c.parentNode[X]._isOutsideThisEl(e),o)do{if(o[X]){var t=void 0;if(t=o[X]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:o}),t&&!this.options.dragoverBubble)break}e=o}while(o=St(o));Vt()}},_onTouchMove:function(e){if(le){var o=this.options,t=o.fallbackTolerance,i=o.fallbackOffset,r=e.touches?e.touches[0]:e,a=b&&pe(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,u=Me&&k&&mt(k),f=(r.clientX-le.clientX+i.x)/(l||1)+(u?u[0]-Ze[0]:0)/(l||1),d=(r.clientY-le.clientY+i.y)/(s||1)+(u?u[1]-Ze[1]:0)/(s||1);if(!m.active&&!fe){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(b){a?(a.e+=f-(Ue||0),a.f+=d-(Ke||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var y="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",y),g(b,"mozTransform",y),g(b,"msTransform",y),g(b,"transform",y),Ue=f,Ke=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!b){var e=this.options.fallbackOnBody?document.body:S,o=I(c,!0,Me,!0,e),t=this.options;if(Me){for(k=e;g(k,"position")==="static"&&g(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),o.top+=k.scrollTop,o.left+=k.scrollLeft):k=z(),Ze=mt(k)}b=c.cloneNode(!0),j(b,t.ghostClass,!1),j(b,t.fallbackClass,!0),j(b,t.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",o.top),g(b,"left",o.left),g(b,"width",o.width),g(b,"height",o.height),g(b,"opacity","0.8"),g(b,"position",Me?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),m.ghost=b,e.appendChild(b),g(b,"transform-origin",vt/parseInt(b.style.width)*100+"% "+bt/parseInt(b.style.height)*100+"%")}},_onDragStart:function(e,o){var t=this,i=e.dataTransfer,r=t.options;if(B("dragStart",this,{evt:e}),m.eventCanceled){this._onDrop();return}B("setupClone",this),m.eventCanceled||(C=It(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),j(C,this.options.chosenClass,!1),m.clone=C),t.cloneId=Xe(function(){B("clone",t),!m.eventCanceled&&(t.options.removeCloneOnHide||S.insertBefore(C,c),t._hideClone(),R({sortable:t,name:"clone"}))}),!o&&j(c,r.dragClass,!0),o?(Le=!0,t._loopId=setInterval(t._emulateDragOver,50)):(E(document,"mouseup",t._onDrop),E(document,"touchend",t._onDrop),E(document,"touchcancel",t._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(t,i,c)),_(document,"drop",t),g(c,"transform","translateZ(0)")),fe=!0,t._dragStartId=Xe(t._dragStarted.bind(t,o,e)),_(document,"selectstart",t),Ee=!0,window.getSelection().removeAllRanges(),Se&&g(document.body,"user-select","none")},_onDragOver:function(e){var o=this.el,t=e.target,i,r,a,l=this.options,s=l.group,u=m.active,f=ke===s,d=l.sort,y=N||u,w,v=this,p=!1;if(ot)return;function D(we,Ft){B(we,v,q({evt:e,isOwner:f,axis:w?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:d,fromSortable:y,target:t,completed:P,onMove:function(dt,Rt){return Fe(S,o,c,i,dt,I(dt),e,Rt)},changed:M},Ft))}function O(){D("dragOverAnimationCapture"),v.captureAnimationState(),v!==y&&y.captureAnimationState()}function P(we){return D("dragOverCompleted",{insertion:we}),we&&(f?u._hideClone():u._showClone(v),v!==y&&(j(c,N?N.options.ghostClass:u.options.ghostClass,!1),j(c,l.ghostClass,!0)),N!==v&&v!==m.active?N=v:v===m.active&&N&&(N=null),y===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){D("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(t===c&&!c.animated||t===o&&!t.animated)&&(de=null),!l.dragoverBubble&&!e.rootEl&&t!==document&&(c.parentNode[X]._isOutsideThisEl(e.target),!we&&se(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function M(){L=H(c),te=H(c,l.draggable),R({sortable:v,name:"change",toEl:o,newIndex:L,newDraggableIndex:te,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=$(t,l.draggable,o,!0),D("dragOver"),m.eventCanceled)return p;if(c.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return P(!1);if(Le=!1,u&&!l.disabled&&(f?d||(a=T!==S):N===this||(this.lastPutMode=ke.checkPull(this,u,c,e))&&s.checkPut(this,u,c,e))){if(w=this._getDirection(e,t)==="vertical",i=I(c),D("dragOverValid"),m.eventCanceled)return p;if(a)return T=S,O(),this._hideClone(),D("revert"),m.eventCanceled||(ue?S.insertBefore(c,ue):S.appendChild(c)),P(!0);var F=st(o,l.draggable);if(!F||sn(e,w,this)&&!F.animated){if(F===c)return P(!1);if(F&&o===e.target&&(t=F),t&&(r=I(t)),Fe(S,o,c,i,t,r,e,!!t)!==!1)return O(),F&&F.nextSibling?o.insertBefore(c,F.nextSibling):o.appendChild(c),T=o,M(),P(!0)}else if(F&&ln(e,w,this)){var ie=ge(o,0,l,!0);if(ie===c)return P(!1);if(t=ie,r=I(t),Fe(S,o,c,i,t,r,e,!1)!==!1)return O(),o.insertBefore(c,ie),T=o,M(),P(!0)}else if(t.parentNode===o){r=I(t);var G=0,re,me=c.parentNode!==o,Y=!tn(c.animated&&c.toRect||i,t.animated&&t.toRect||r,w),ve=w?"top":"left",J=gt(t,"top","top")||gt(c,"top","top"),be=J?J.scrollTop:void 0;de!==t&&(re=r[ve],Ie=!1,Ve=!Y&&l.invertSwap||me),G=un(e,t,r,w,Y?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Ve,de===t);var U;if(G!==0){var ae=H(c);do ae-=G,U=T.children[ae];while(U&&(g(U,"display")==="none"||U===b))}if(G===0||U===t)return P(!1);de=t,xe=G;var ye=t.nextElementSibling,ee=!1;ee=G===1;var Ne=Fe(S,o,c,i,t,r,e,ee);if(Ne!==!1)return(Ne===1||Ne===-1)&&(ee=Ne===1),ot=!0,setTimeout(an,30),O(),ee&&!ye?o.appendChild(c):t.parentNode.insertBefore(c,ee?ye:t),J&&xt(J,0,be-J.scrollTop),T=c.parentNode,re!==void 0&&!Ve&&(Be=Math.abs(re-I(t)[ve])),M(),P(!0)}if(o.contains(c))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",se),E(document,"mousemove",se),E(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._onDrop),E(e,"touchend",this._onDrop),E(e,"pointerup",this._onDrop),E(e,"pointercancel",this._onDrop),E(e,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(e){var o=this.el,t=this.options;if(L=H(c),te=H(c,t.draggable),B("drop",this,{evt:e}),T=c&&c.parentNode,L=H(c),te=H(c,t.draggable),m.eventCanceled){this._nulling();return}fe=!1,Ve=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),it(this.cloneId),it(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Se&&g(document.body,"user-select",""),g(c,"transform",""),e&&(Ee&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(S===T||N&&N.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Qe(c),c.style["will-change"]="",Ee&&!fe&&j(c,N?N.options.ghostClass:this.options.ghostClass,!1),j(c,this.options.chosenClass,!1),R({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),S!==T?(L>=0&&(R({rootEl:T,name:"add",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"remove",toEl:T,originalEvent:e}),R({rootEl:T,name:"sort",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),N&&N.save()):L!==he&&L>=0&&(R({sortable:this,name:"update",toEl:T,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),m.active&&((L==null||L===-1)&&(L=he,te=Te),R({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),S=c=T=b=ue=C=Re=ne=le=W=Ee=L=te=he=Te=de=xe=N=ke=m.dragged=m.ghost=m.clone=m.active=null;var e=this.el;We.forEach(function(o){e.contains(o)&&(o.checked=!0)}),We.length=Ue=Ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),rn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],o,t=this.el.children,i=0,r=t.length,a=this.options;i<r;i++)o=t[i],$(o,a.draggable,this.el,!1)&&e.push(o.getAttribute(a.dataIdAttr)||dn(o));return e},sort:function(e,o){var t={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(t[r]=l)},this),o&&this.captureAnimationState(),e.forEach(function(r){t[r]&&(i.removeChild(t[r]),i.appendChild(t[r]))}),o&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,o){return $(e,o||this.options.draggable,this.el,!1)},option:function(e,o){var t=this.options;if(o===void 0)return t[e];var i=Pe.modifyOption(this,e,o);typeof i<"u"?t[e]=i:t[e]=o,e==="group"&&At(t)},destroy:function(){B("destroy",this);var e=this.el;e[X]=null,E(e,"mousedown",this._onTapStart),E(e,"touchstart",this._onTapStart),E(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(e,"dragover",this),E(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),He.splice(He.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ne){if(B("hideClone",this),m.eventCanceled)return;g(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),ne=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(ne){if(B("showClone",this),m.eventCanceled)return;c.parentNode==S&&!this.options.group.revertClone?S.insertBefore(C,c):ue?S.insertBefore(C,ue):S.appendChild(C),this.options.group.revertClone&&this.animate(c,C),g(C,"display",""),ne=!1}}};function rn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Fe(n,e,o,t,i,r,a,l){var s,u=n[X],f=u.options.onMove,d;return window.CustomEvent&&!Q&&!Oe?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=n,s.dragged=o,s.draggedRect=t,s.related=i||e,s.relatedRect=r||I(e),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),f&&(d=f.call(u,s,a)),d}function Qe(n){n.draggable=!1}function an(){ot=!1}function ln(n,e,o){var t=I(ge(o.el,0,o.options,!0)),i=Ot(o.el,o.options,b),r=10;return e?n.clientX<i.left-r||n.clientY<t.top&&n.clientX<t.right:n.clientY<i.top-r||n.clientY<t.bottom&&n.clientX<t.left}function sn(n,e,o){var t=I(st(o.el,o.options.draggable)),i=Ot(o.el,o.options,b),r=10;return e?n.clientX>i.right+r||n.clientY>t.bottom&&n.clientX>t.left:n.clientY>i.bottom+r||n.clientX>t.right&&n.clientY>t.top}function un(n,e,o,t,i,r,a,l){var s=t?n.clientY:n.clientX,u=t?o.height:o.width,f=t?o.top:o.left,d=t?o.bottom:o.right,y=!1;if(!a){if(l&&Be<u*i){if(!Ie&&(xe===1?s>f+u*r/2:s<d-u*r/2)&&(Ie=!0),Ie)y=!0;else if(xe===1?s<f+Be:s>d-Be)return-xe}else if(s>f+u*(1-i)/2&&s<d-u*(1-i)/2)return cn(e)}return y=y||a,y&&(s<f+u*r/2||s>d-u*r/2)?s>f+u/2?1:-1:0}function cn(n){return H(c)<H(n)?1:-1}function dn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,o=e.length,t=0;o--;)t+=e.charCodeAt(o);return t.toString(36)}function fn(n){We.length=0;for(var e=n.getElementsByTagName("input"),o=e.length;o--;){var t=e[o];t.checked&&We.push(t)}}function Xe(n){return setTimeout(n,0)}function it(n){return clearTimeout(n)}Ge&&_(document,"touchmove",function(n){(m.active||fe)&&n.cancelable&&n.preventDefault()});m.utils={on:_,off:E,css:g,find:Ct,is:function(e,o){return!!$(e,o,e,!1)},extend:zt,throttle:Tt,closest:$,toggleClass:j,clone:It,index:H,nextTick:Xe,cancelNextTick:it,detectDirection:Nt,getChild:ge,expando:X};m.get=function(n){return n[X]};m.mount=function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(m.utils=q(q({},m.utils),t.utils)),Pe.mount(t)})};m.create=function(n,e){return new m(n,e)};m.version=$t;var x=[],_e,rt,at=!1,Je,et,$e,De;function hn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(o){var t=o.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var t=o.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),wt(),Ye(),qt()},nulling:function(){$e=rt=_e=at=De=Je=et=null,x.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,t){var i=this,r=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,l=document.elementFromPoint(r,a);if($e=o,t||this.options.forceAutoScrollFallback||Oe||Q||Se){tt(o,this.options,l,t);var s=oe(l,!0);at&&(!De||r!==Je||a!==et)&&(De&&wt(),De=setInterval(function(){var u=oe(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Ye()),tt(o,i.options,u,t)},10),Je=r,et=a)}else{if(!this.options.bubbleScroll||oe(l,!0)===z()){Ye();return}tt(o,this.options,oe(l,!1),!1)}}},Z(n,{pluginName:"scroll",initializeByDefault:!0})}function Ye(){x.forEach(function(n){clearInterval(n.pid)}),x=[]}function wt(){clearInterval(De)}var tt=Tt(function(n,e,o,t){if(e.scroll){var i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=z(),u=!1,f;rt!==o&&(rt=o,Ye(),_e=e.scroll,f=e.scrollFn,_e===!0&&(_e=oe(o,!0)));var d=0,y=_e;do{var w=y,v=I(w),p=v.top,D=v.bottom,O=v.left,P=v.right,M=v.width,F=v.height,ie=void 0,G=void 0,re=w.scrollWidth,me=w.scrollHeight,Y=g(w),ve=w.scrollLeft,J=w.scrollTop;w===s?(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"||Y.overflowX==="visible"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"||Y.overflowY==="visible")):(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"));var be=ie&&(Math.abs(P-i)<=a&&ve+M<re)-(Math.abs(O-i)<=a&&!!ve),U=G&&(Math.abs(D-r)<=a&&J+F<me)-(Math.abs(p-r)<=a&&!!J);if(!x[d])for(var ae=0;ae<=d;ae++)x[ae]||(x[ae]={});(x[d].vx!=be||x[d].vy!=U||x[d].el!==w)&&(x[d].el=w,x[d].vx=be,x[d].vy=U,clearInterval(x[d].pid),(be!=0||U!=0)&&(u=!0,x[d].pid=setInterval((function(){t&&this.layer===0&&m.active._onTouchMove($e);var ye=x[this.layer].vy?x[this.layer].vy*l:0,ee=x[this.layer].vx?x[this.layer].vx*l:0;typeof f=="function"&&f.call(m.dragged.parentNode[X],ee,ye,n,$e,x[this.layer].el)!=="continue"||xt(x[this.layer].el,ee,ye)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&y!==s&&(y=oe(y,!1)));at=u}},30),Mt=function(e){var o=e.originalEvent,t=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(o){var u=t||r;l();var f=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(d)&&(a("spill"),this.onSpill({dragEl:i,putSortable:t}))}};function ut(){}ut.prototype={startIndex:null,dragStart:function(e){var o=e.oldDraggableIndex;this.startIndex=o},onSpill:function(e){var o=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var i=ge(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(o,i):this.sortable.el.appendChild(o),this.sortable.animateAll(),t&&t.animateAll()},drop:Mt};Z(ut,{pluginName:"revertOnSpill"});function ct(){}ct.prototype={onSpill:function(e){var o=e.dragEl,t=e.putSortable,i=t||this.sortable;i.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),i.animateAll()},drop:Mt};Z(ct,{pluginName:"removeOnSpill"});m.mount(new hn);m.mount(ct,ut);function pn(n,e,o={}){let t;const{document:i=Ae.defaultDocument,watchElement:r=!1,...a}=o,l={onUpdate:p=>{vn(e,p.oldIndex,p.newIndex,p)}},s=h.computed(()=>typeof n=="string"?i?.querySelector(n):Ae.unrefElement(n)),u=()=>{t?.destroy(),t=void 0},f=p=>{!p||t!==void 0||(t=new m(p,{...l,...a}))},d=()=>{const p=s.value;p&&f(p)},y=(p,D)=>{if(D!==void 0)t?.option(p,D);else return t?.option(p)};let w;r&&typeof n!="string"?w=h.watch(s,p=>{u(),p&&f(p)},{immediate:!0,flush:"post"}):Ae.tryOnMounted(d);const v=()=>{u()};return Ae.tryOnScopeDispose(()=>{w?.(),u()}),{stop:v,start:d,option:y}}function gn(n,e,o){const t=n.children[o];n.insertBefore(e,t)}function mn(n){n.parentNode&&n.parentNode.removeChild(n)}function vn(n,e,o,t=null){t!=null&&(mn(t.item),gn(t.from,t.item,e));const i=h.isRef(n),r=i?[...h.toValue(n)]:h.toValue(n);if(o>=0&&o<r.length){const a=r.splice(e,1)[0];h.nextTick(()=>{r.splice(o,0,a),i&&(n.value=r)})}}const bn={class:"text-medium-emphasis ps-2"},yn={__name:"Dialog",setup(n,{expose:e}){const o=h.inject("table_props"),t=h.inject("datatablesPluginOptions"),{tableState:i}=A.useTableState(),{tableDataState:r}=A.useDatastate(o),a=h.ref(0),l=h.useTemplateRef("listRef"),s=h.ref(!1),u=h.ref([]),f=h.ref([]),d=h.ref([]),y=()=>{s.value=!0};h.onMounted(async()=>{f.value=i.value.options.columns?.selected,d.value=i.value.options.columns?.sorted,u.value=d.value.map(p=>o.headers.find(D=>D.key===p)),await h.nextTick();const{option:v}=pn(l,u,{onUpdate:async p=>{await h.nextTick();const D=Array.from(p.from.children).map(function(O){return O.getAttribute("header-keys")});A.deepEqual(D,d.value)||(d.value=D)}});v("animation",200)});const w=()=>{(!A.deepEqual(f.value,i.value.options.columns?.selected)||!A.deepEqual(d.value,i.value.options.columns?.sorted))&&(r.value.options.columns.selected=f.value,r.value.options.columns.sorted=d.value),s.value=!1};return e({openDialog:y}),(v,p)=>(h.openBlock(),h.createBlock(A.VDialog,{modelValue:h.unref(s),"onUpdate:modelValue":p[1]||(p[1]=D=>h.isRef(s)?s.value=D:null),"max-width":"500",eager:"","retain-focus":!1},{default:h.withCtx(({isActive:D})=>[h.createVNode(A.VCard,{rounded:"lg"},{default:h.withCtx(()=>[h.createVNode(A.VCardTitle,{class:"d-flex justify-space-between align-center"},{default:h.withCtx(()=>[h.createElementVNode("div",bn,h.toDisplayString(v.$t("$datatables.selectColumns")),1),h.createVNode(V.VBtn,{icon:h.unref(t).header.icons.close,variant:"text",onClick:O=>D.value=!1},null,8,["icon","onClick"])]),_:2},1024),h.createVNode(V.VDivider),h.createVNode(A.VCardText,{class:"overflow-auto pt-8"},{default:h.withCtx(()=>[h.createVNode(V.VList,{ref_key:"listRef",ref:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(u),(O,P)=>(h.openBlock(),h.createBlock(V.VListItem,{key:`${h.unref(a)}-${P}`,title:O?.title,"header-keys":O?.key,onClick:()=>{}},{prepend:h.withCtx(()=>[h.createVNode(Et,{modelValue:h.unref(f),"onUpdate:modelValue":p[0]||(p[0]=M=>h.isRef(f)?f.value=M:null),value:O?.key,"hide-details":""},null,8,["modelValue","value"])]),append:h.withCtx(()=>[h.createVNode(V.VIcon,{icon:h.unref(t).header.icons.drag},null,8,["icon"])]),_:2},1032,["title","header-keys"]))),128))]),_:1},512)]),_:1}),h.createVNode(V.VDivider,{class:"mt-2"}),h.createVNode(A.VCardActions,{class:"my-2 d-flex justify-end"},{default:h.withCtx(()=>[h.createVNode(V.VBtn,{class:"text-none",text:v.$t("$datatables.cancel"),onClick:O=>D.value=!1},null,8,["text","onClick"]),h.createVNode(V.VBtn,{class:"text-none",color:"primary",text:v.$t("$datatables.submit"),variant:"flat",onClick:w},null,8,["text"])]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]))}};function wn(){const n=h.inject("datatablesPluginOptions"),{t:e}=Bt.useI18n(),o=h.ref();return{columnsItems:h.computed(()=>[{title:`${e("$datatables.columns")}`,onClick:o.value?.openDialog,prependIcon:n.header.icons.columns}]),columnsRef:o}}exports.VCheckbox=Et;exports._sfc_main=yn;exports.useColumns=wn;
|
package/package.json
CHANGED
package/dist/Table-CGFEU1ml.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./dataTables-C0Ygb6M3.cjs"),w=require("./index-CX6NrL8T.cjs"),r=require("./cellRender-8D0QBLeC.cjs"),B={key:1},T={class:"expandable-row"},C=["colspan"],P={__name:"Table",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(f,{expose:b}){const n=e.inject("table_props"),g=e.inject("datatablesPluginOptions"),s=e.useModel(f,"modelValue"),{tableState:k,searchState:_,headersState:d,saveTableOptions:h}=w.useTableState(),{filteredData:c}=r.useTableData(),S=e.ref(null),V=e.computed(()=>y.defu(n.options,g.options)),x=l=>l?.lock?null:`item.${l.key}`;return b({getItemsForPrint:async()=>c.value}),(l,i)=>(e.openBlock(),e.createBlock(r.VDataTable,e.mergeProps({ref_key:"datatable",ref:S,modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=t=>s.value=t),loading:e.unref(n).loading},{...e.unref(V),...e.unref(k).options.state},{items:e.unref(c),headers:e.unref(d),search:e.unref(_),"onUpdate:options":e.unref(h)}),e.createSlots({loading:e.withCtx(()=>[e.createVNode(r.VSkeletonLoader,{type:"table-row@10"})]),"expanded-row":e.withCtx(({columns:t,item:p})=>[e.createElementVNode("tr",T,[e.createElementVNode("td",{class:"expandable-row--column",colspan:t.length},[e.unref(n).options.expandedRowRenderer?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n).options.expandedRowRenderer),{key:0,params:{columns:t,item:p}},null,8,["params"])):e.createCommentVNode("",!0)],8,C)])]),_:2},[e.renderList(e.unref(d),(t,p)=>({name:x(t),fn:e.withCtx(({item:u,internalItem:m,value:o,column:a})=>[a?.cell?(e.openBlock(),e.createBlock(e.unref(r.CellRender),{key:0,render:a.cell({item:u,internalItem:m,value:o,column:a}),params:{item:u,internalItem:m,value:o,column:a}},null,8,["render","params"])):(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(String(o).length||String(o)==="0"?o:"-"),1))])}))]),1040,["modelValue","loading","items","headers","search","onUpdate:options"]))}};exports.default=P;
|
package/dist/Table-CUFIrlzk.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { inject as f, useModel as O, ref as P, computed as R, openBlock as n, createBlock as l, mergeProps as T, unref as e, createSlots as B, withCtx as d, createElementVNode as _, resolveDynamicComponent as N, createCommentVNode as U, createVNode as E, renderList as F, createElementBlock as I, toDisplayString as L } from "vue";
|
|
2
|
-
import { aO as M } from "./dataTables-B691de3Y.js";
|
|
3
|
-
import { u as j } from "./index-C9x5Z2bI.js";
|
|
4
|
-
import { u as v, V as $, a as q, C as z } from "./cellRender-BBnDEG_7.js";
|
|
5
|
-
const A = { key: 1 }, G = { class: "expandable-row" }, H = ["colspan"], Y = {
|
|
6
|
-
__name: "Table",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: {},
|
|
9
|
-
modelModifiers: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:modelValue"],
|
|
12
|
-
setup(V, { expose: h }) {
|
|
13
|
-
const o = f("table_props"), k = f("datatablesPluginOptions"), p = O(V, "modelValue"), { tableState: S, searchState: x, headersState: i, saveTableOptions: y } = j(), { filteredData: c } = v(), w = P(null), C = R(() => M(o.options, k.options)), D = (r) => r?.lock ? null : `item.${r.key}`;
|
|
14
|
-
return h({ getItemsForPrint: async () => c.value }), (r, m) => (n(), l($, T({
|
|
15
|
-
ref_key: "datatable",
|
|
16
|
-
ref: w,
|
|
17
|
-
modelValue: p.value,
|
|
18
|
-
"onUpdate:modelValue": m[0] || (m[0] = (t) => p.value = t),
|
|
19
|
-
loading: e(o).loading
|
|
20
|
-
}, { ...e(C), ...e(S).options.state }, {
|
|
21
|
-
items: e(c),
|
|
22
|
-
headers: e(i),
|
|
23
|
-
search: e(x),
|
|
24
|
-
"onUpdate:options": e(y)
|
|
25
|
-
}), B({
|
|
26
|
-
loading: d(() => [
|
|
27
|
-
E(q, { type: "table-row@10" })
|
|
28
|
-
]),
|
|
29
|
-
"expanded-row": d(({ columns: t, item: u }) => [
|
|
30
|
-
_("tr", G, [
|
|
31
|
-
_("td", {
|
|
32
|
-
class: "expandable-row--column",
|
|
33
|
-
colspan: t.length
|
|
34
|
-
}, [
|
|
35
|
-
e(o).options.expandedRowRenderer ? (n(), l(N(e(o).options.expandedRowRenderer), {
|
|
36
|
-
key: 0,
|
|
37
|
-
params: { columns: t, item: u }
|
|
38
|
-
}, null, 8, ["params"])) : U("", !0)
|
|
39
|
-
], 8, H)
|
|
40
|
-
])
|
|
41
|
-
]),
|
|
42
|
-
_: 2
|
|
43
|
-
}, [
|
|
44
|
-
F(e(i), (t, u) => ({
|
|
45
|
-
name: D(t),
|
|
46
|
-
fn: d(({ item: b, internalItem: g, value: a, column: s }) => [
|
|
47
|
-
s?.cell ? (n(), l(e(z), {
|
|
48
|
-
key: 0,
|
|
49
|
-
render: s.cell({ item: b, internalItem: g, value: a, column: s }),
|
|
50
|
-
params: { item: b, internalItem: g, value: a, column: s }
|
|
51
|
-
}, null, 8, ["render", "params"])) : (n(), I("span", A, L(String(a).length || String(a) === "0" ? a : "-"), 1))
|
|
52
|
-
])
|
|
53
|
-
}))
|
|
54
|
-
]), 1040, ["modelValue", "loading", "items", "headers", "search", "onUpdate:options"]));
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
Y as default
|
|
59
|
-
};
|