gs-eant-comp 3.1.8-beta.2 → 3.1.8-beta.3
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/ActivityFeed-mHiHcj2r.js +51 -0
- package/dist/BannerCarousel-afFuVVXz.js +74 -0
- package/dist/NoticeList-D-P810lX.js +45 -0
- package/dist/QuickActions-DDDwj0VY.js +41 -0
- package/dist/QuickMenu-Bxy7TyKw.js +48 -0
- package/dist/ShoppingCart-lZGjadLM.js +136 -0
- package/dist/StatCard-BwTbMy4_.js +60 -0
- package/dist/TodoList-BGaVYuzF.js +51 -0
- package/dist/gs-eant-comp.css +1 -1
- package/dist/gs-eant-comp.js +1 -1
- package/dist/gs-eant-comp.umd.cjs +4 -4
- package/dist/{index-B2tA_o_x.js → index-BIXBusA2.js} +367 -327
- package/package.json +1 -1
- package/dist/ContainerWrapper-CNY9cadB.js +0 -39
- package/dist/NoticeList-5WmgbdpD.js +0 -32
- package/dist/QuickMenu-BXvzE5p_.js +0 -51
- package/dist/StatCard-DfZUpPyu.js +0 -41
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as Le, resolveComponent as b, createBlock as A, openBlock as k, withCtx as _, createElementBlock as Q, Fragment as Ee, renderList as Ne, normalizeClass as $e, createElementVNode as M, toDisplayString as we, createVNode as x, toRefs as dt, computed as j, createCommentVNode as X, inject as V, ref as q, watchEffect as Io, renderSlot as ce, reactive as lt, provide as _e, mergeProps as ht, createTextVNode as De, withModifiers as Bo, unref as te, h as Mr, getCurrentInstance as ks, nextTick as et, watch as Ce, onMounted as
|
|
1
|
+
import { defineComponent as Le, resolveComponent as b, createBlock as A, openBlock as k, withCtx as _, createElementBlock as Q, Fragment as Ee, renderList as Ne, normalizeClass as $e, createElementVNode as M, toDisplayString as we, createVNode as x, toRefs as dt, computed as j, createCommentVNode as X, inject as V, ref as q, watchEffect as Io, renderSlot as ce, reactive as lt, provide as _e, mergeProps as ht, createTextVNode as De, withModifiers as Bo, unref as te, h as Mr, getCurrentInstance as ks, nextTick as et, watch as Ce, onMounted as nn, onUnmounted as xa, normalizeStyle as kn, shallowRef as Ss, toRef as Po, onBeforeMount as ka, onBeforeUnmount as Sa, getCurrentScope as Es, onScopeDispose as Cs, withDirectives as Ea, vShow as Ca, defineAsyncComponent as kt, resolveDynamicComponent as vn, KeepAlive as Ts, createSlots as Hn, mergeModels as Ta, useModel as ko, Transition as zs, isRef as gn, toHandlers as za, normalizeProps as Ms, guardReactiveProps as Os, useSlots as Is } from "vue";
|
|
2
2
|
import { useStore as Ke } from "vuex";
|
|
3
3
|
import { useRoute as Ma, useRouter as qe, onBeforeRouteUpdate as Bs } from "vue-router";
|
|
4
|
-
import { useRequest as
|
|
4
|
+
import { useRequest as on, usePagination as Ro } from "vue-request";
|
|
5
5
|
import { Form as Ps, message as Rs, theme as Vn } from "ant-design-vue";
|
|
6
6
|
import As from "vuedraggable";
|
|
7
7
|
import { ColorPicker as $s } from "vue3-colorpicker";
|
|
@@ -252,7 +252,7 @@ const Xs = /* @__PURE__ */ Oe(Ks, [["render", Ys]]), Qs = Ps.useForm, Js = Le({
|
|
|
252
252
|
{ required: !0, message: "请填确认密码" },
|
|
253
253
|
{ validator: z, trigger: "blur" }
|
|
254
254
|
]
|
|
255
|
-
}), { run: T, loading: B } =
|
|
255
|
+
}), { run: T, loading: B } = on(
|
|
256
256
|
async ($) => {
|
|
257
257
|
const P = m;
|
|
258
258
|
return P[P.method]($);
|
|
@@ -428,13 +428,13 @@ function Zs(e, r, a, s, c, d) {
|
|
|
428
428
|
_: 1
|
|
429
429
|
}, 8, ["layout", "label-col", "wrapper-col"]);
|
|
430
430
|
}
|
|
431
|
-
const Ia = /* @__PURE__ */ Oe(Js, [["render", Zs]]), el = { class: "h-100" }, tl = { class: "" }, nl = { class: "text-muted" }, ol = { class: "text-muted" },
|
|
431
|
+
const Ia = /* @__PURE__ */ Oe(Js, [["render", Zs]]), el = { class: "h-100" }, tl = { class: "" }, nl = { class: "text-muted" }, ol = { class: "text-muted" }, Rt = {
|
|
432
432
|
__name: "UserBar",
|
|
433
433
|
setup(e) {
|
|
434
434
|
const r = (...K) => {
|
|
435
435
|
}, a = V("$API"), s = Ke(), c = qe(), d = j(() => s.state.app.auth), v = j(() => s.state.auth.userInfo), m = j(() => s.state.app.appLayoutType);
|
|
436
436
|
j(() => s.state.app.casServerLoginUrl);
|
|
437
|
-
const p = j(() => s.state.app.casServerLogoutUrl), E = lt(a.auth.logout), { run: z } =
|
|
437
|
+
const p = j(() => s.state.app.casServerLogoutUrl), E = lt(a.auth.logout), { run: z } = on((K) => E[E.method](K), {
|
|
438
438
|
manual: !0,
|
|
439
439
|
onSuccess: (K) => {
|
|
440
440
|
r("认证模式识别完成 →", d.value), d.value === "CAS" && (r("CAS 注销流程|重定向至统一认证登出地址", p.value), window.location.href = p.value);
|
|
@@ -600,7 +600,7 @@ function al(e) {
|
|
|
600
600
|
function il(e) {
|
|
601
601
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Pn(e) {
|
|
604
604
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
605
605
|
}
|
|
606
606
|
function po(e) {
|
|
@@ -816,9 +816,9 @@ var Ir = {
|
|
|
816
816
|
yellow: "#ffff00",
|
|
817
817
|
yellowgreen: "#9acd32"
|
|
818
818
|
};
|
|
819
|
-
function
|
|
819
|
+
function pn(e) {
|
|
820
820
|
var r = { r: 0, g: 0, b: 0 }, a = 1, s = null, c = null, d = null, v = !1, m = !1;
|
|
821
|
-
return typeof e == "string" && (e = hl(e)), typeof e == "object" && (xt(e.r) && xt(e.g) && xt(e.b) ? (r = sl(e.r, e.g, e.b), v = !0, m = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : xt(e.h) && xt(e.s) && xt(e.v) ? (s =
|
|
821
|
+
return typeof e == "string" && (e = hl(e)), typeof e == "object" && (xt(e.r) && xt(e.g) && xt(e.b) ? (r = sl(e.r, e.g, e.b), v = !0, m = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : xt(e.h) && xt(e.s) && xt(e.v) ? (s = Pn(e.s), c = Pn(e.v), r = cl(e.h, s, c), v = !0, m = "hsv") : xt(e.h) && xt(e.s) && xt(e.l) && (s = Pn(e.s), d = Pn(e.l), r = ll(e.h, s, d), v = !0, m = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (a = e.a)), a = il(a), {
|
|
822
822
|
ok: v,
|
|
823
823
|
format: e.format || m,
|
|
824
824
|
r: Math.min(255, Math.max(r.r, 0)),
|
|
@@ -827,8 +827,8 @@ function fn(e) {
|
|
|
827
827
|
a
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
var fl = "[-\\+]?\\d+%?", pl = "[-\\+]?\\d*\\.\\d+%?",
|
|
831
|
-
CSS_UNIT: new RegExp(
|
|
830
|
+
var fl = "[-\\+]?\\d+%?", pl = "[-\\+]?\\d*\\.\\d+%?", Pt = "(?:".concat(pl, ")|(?:").concat(fl, ")"), mo = "[\\s|\\(]+(".concat(Pt, ")[,|\\s]+(").concat(Pt, ")[,|\\s]+(").concat(Pt, ")\\s*\\)?"), vo = "[\\s|\\(]+(".concat(Pt, ")[,|\\s]+(").concat(Pt, ")[,|\\s]+(").concat(Pt, ")[,|\\s]+(").concat(Pt, ")\\s*\\)?"), ct = {
|
|
831
|
+
CSS_UNIT: new RegExp(Pt),
|
|
832
832
|
rgb: new RegExp("rgb" + mo),
|
|
833
833
|
rgba: new RegExp("rgba" + vo),
|
|
834
834
|
hsl: new RegExp("hsl" + mo),
|
|
@@ -876,7 +876,7 @@ function hl(e) {
|
|
|
876
876
|
function xt(e) {
|
|
877
877
|
return !!ct.CSS_UNIT.exec(String(e));
|
|
878
878
|
}
|
|
879
|
-
var
|
|
879
|
+
var Rn = 2, Br = 0.16, ml = 0.05, vl = 0.05, gl = 0.15, Ba = 5, Pa = 4, yl = [{
|
|
880
880
|
index: 7,
|
|
881
881
|
opacity: 0.15
|
|
882
882
|
}, {
|
|
@@ -915,7 +915,7 @@ function Pr(e) {
|
|
|
915
915
|
v: c.v
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function An(e) {
|
|
919
919
|
var r = e.r, a = e.g, s = e.b;
|
|
920
920
|
return "#".concat(dl(r, a, s));
|
|
921
921
|
}
|
|
@@ -929,7 +929,7 @@ function bl(e, r, a) {
|
|
|
929
929
|
}
|
|
930
930
|
function Rr(e, r, a) {
|
|
931
931
|
var s;
|
|
932
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? s = a ? Math.round(e.h) -
|
|
932
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? s = a ? Math.round(e.h) - Rn * r : Math.round(e.h) + Rn * r : s = a ? Math.round(e.h) + Rn * r : Math.round(e.h) - Rn * r, s < 0 ? s += 360 : s >= 360 && (s -= 360), s;
|
|
933
933
|
}
|
|
934
934
|
function Ar(e, r, a) {
|
|
935
935
|
if (e.h === 0 && e.s === 0)
|
|
@@ -942,17 +942,17 @@ function $r(e, r, a) {
|
|
|
942
942
|
return a ? s = e.v + vl * r : s = e.v - gl * r, s > 1 && (s = 1), Number(s.toFixed(2));
|
|
943
943
|
}
|
|
944
944
|
function So(e) {
|
|
945
|
-
for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = [], s =
|
|
946
|
-
var d = Pr(s), v =
|
|
945
|
+
for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = [], s = pn(e), c = Ba; c > 0; c -= 1) {
|
|
946
|
+
var d = Pr(s), v = An(pn({
|
|
947
947
|
h: Rr(d, c, !0),
|
|
948
948
|
s: Ar(d, c, !0),
|
|
949
949
|
v: $r(d, c, !0)
|
|
950
950
|
}));
|
|
951
951
|
a.push(v);
|
|
952
952
|
}
|
|
953
|
-
a.push(
|
|
953
|
+
a.push(An(s));
|
|
954
954
|
for (var m = 1; m <= Pa; m += 1) {
|
|
955
|
-
var p = Pr(s), E =
|
|
955
|
+
var p = Pr(s), E = An(pn({
|
|
956
956
|
h: Rr(p, m),
|
|
957
957
|
s: Ar(p, m),
|
|
958
958
|
v: $r(p, m)
|
|
@@ -960,7 +960,7 @@ function So(e) {
|
|
|
960
960
|
a.push(E);
|
|
961
961
|
}
|
|
962
962
|
return r.theme === "dark" ? yl.map(function(z) {
|
|
963
|
-
var O = z.index, T = z.opacity, B =
|
|
963
|
+
var O = z.index, T = z.opacity, B = An(bl(pn(r.backgroundColor || "#141414"), pn(a[O]), T * 100));
|
|
964
964
|
return B;
|
|
965
965
|
}) : a;
|
|
966
966
|
}
|
|
@@ -1207,20 +1207,20 @@ function jn(e) {
|
|
|
1207
1207
|
function Nl(e, r, a) {
|
|
1208
1208
|
return r in e ? Object.defineProperty(e, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = a, e;
|
|
1209
1209
|
}
|
|
1210
|
-
var
|
|
1210
|
+
var yn = lt({
|
|
1211
1211
|
primaryColor: "#333",
|
|
1212
1212
|
secondaryColor: "#E6E6E6",
|
|
1213
1213
|
calculated: !1
|
|
1214
1214
|
});
|
|
1215
1215
|
function Ll(e) {
|
|
1216
1216
|
var r = e.primaryColor, a = e.secondaryColor;
|
|
1217
|
-
|
|
1217
|
+
yn.primaryColor = r, yn.secondaryColor = a || Na(r), yn.calculated = !!a;
|
|
1218
1218
|
}
|
|
1219
1219
|
function jl() {
|
|
1220
|
-
return jn({},
|
|
1220
|
+
return jn({}, yn);
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1223
|
-
var s = jn({}, r, a.attrs), c = s.icon, d = s.primaryColor, v = s.secondaryColor, m = $l(s, Al), p =
|
|
1222
|
+
var At = function(r, a) {
|
|
1223
|
+
var s = jn({}, r, a.attrs), c = s.icon, d = s.primaryColor, v = s.secondaryColor, m = $l(s, Al), p = yn;
|
|
1224
1224
|
if (d && (p = {
|
|
1225
1225
|
primaryColor: d,
|
|
1226
1226
|
secondaryColor: v || Na(d)
|
|
@@ -1237,16 +1237,16 @@ var Rt = function(r, a) {
|
|
|
1237
1237
|
"aria-hidden": "true"
|
|
1238
1238
|
}));
|
|
1239
1239
|
};
|
|
1240
|
-
|
|
1240
|
+
At.props = {
|
|
1241
1241
|
icon: Object,
|
|
1242
1242
|
primaryColor: String,
|
|
1243
1243
|
secondaryColor: String,
|
|
1244
1244
|
focusable: String
|
|
1245
1245
|
};
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1246
|
+
At.inheritAttrs = !1;
|
|
1247
|
+
At.displayName = "IconBase";
|
|
1248
|
+
At.getTwoToneColors = jl;
|
|
1249
|
+
At.setTwoToneColors = Ll;
|
|
1250
1250
|
function Fl(e, r) {
|
|
1251
1251
|
return Vl(e) || Hl(e, r) || Ul(e, r) || Wl();
|
|
1252
1252
|
}
|
|
@@ -1292,13 +1292,13 @@ function Vl(e) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
function Fa(e) {
|
|
1294
1294
|
var r = La(e), a = Fl(r, 2), s = a[0], c = a[1];
|
|
1295
|
-
return
|
|
1295
|
+
return At.setTwoToneColors({
|
|
1296
1296
|
primaryColor: s,
|
|
1297
1297
|
secondaryColor: c
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
function Kl() {
|
|
1301
|
-
var e =
|
|
1301
|
+
var e = At.getTwoToneColors();
|
|
1302
1302
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1303
1303
|
}
|
|
1304
1304
|
var ql = Le({
|
|
@@ -1358,12 +1358,12 @@ function Wr(e) {
|
|
|
1358
1358
|
typeof Object.getOwnPropertySymbols == "function" && (s = s.concat(Object.getOwnPropertySymbols(a).filter(function(c) {
|
|
1359
1359
|
return Object.getOwnPropertyDescriptor(a, c).enumerable;
|
|
1360
1360
|
}))), s.forEach(function(c) {
|
|
1361
|
-
|
|
1361
|
+
hn(e, c, a[c]);
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
1364
|
return e;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function hn(e, r, a) {
|
|
1367
1367
|
return r in e ? Object.defineProperty(e, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = a, e;
|
|
1368
1368
|
}
|
|
1369
1369
|
function eu(e, r) {
|
|
@@ -1385,7 +1385,7 @@ function tu(e, r) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
Fa(_l.primary);
|
|
1387
1387
|
var ft = function(r, a) {
|
|
1388
|
-
var s, c = Wr({}, r, a.attrs), d = c.class, v = c.icon, m = c.spin, p = c.rotate, E = c.tabindex, z = c.twoToneColor, O = c.onClick, T = eu(c, Gl), B = Ra(), R = B.prefixCls, ne = B.rootClassName, G = (s = {},
|
|
1388
|
+
var s, c = Wr({}, r, a.attrs), d = c.class, v = c.icon, m = c.spin, p = c.rotate, E = c.tabindex, z = c.twoToneColor, O = c.onClick, T = eu(c, Gl), B = Ra(), R = B.prefixCls, ne = B.rootClassName, G = (s = {}, hn(s, ne.value, !!ne.value), hn(s, R.value, !0), hn(s, "".concat(R.value, "-").concat(v.name), !!v.name), hn(s, "".concat(R.value, "-spin"), !!m || v.name === "loading"), s), K = E;
|
|
1389
1389
|
K === void 0 && O && (K = -1);
|
|
1390
1390
|
var $ = p ? {
|
|
1391
1391
|
msTransform: "rotate(".concat(p, "deg)"),
|
|
@@ -1398,7 +1398,7 @@ var ft = function(r, a) {
|
|
|
1398
1398
|
onClick: O,
|
|
1399
1399
|
class: [G, d],
|
|
1400
1400
|
tabindex: K
|
|
1401
|
-
}), [x(
|
|
1401
|
+
}), [x(At, {
|
|
1402
1402
|
icon: v,
|
|
1403
1403
|
primaryColor: J,
|
|
1404
1404
|
secondaryColor: Y,
|
|
@@ -1659,7 +1659,7 @@ const hu = Le({
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}), Ce(a.currentRoute, (P) => {
|
|
1661
1661
|
m(P);
|
|
1662
|
-
}),
|
|
1662
|
+
}), nn(() => {
|
|
1663
1663
|
et(() => {
|
|
1664
1664
|
});
|
|
1665
1665
|
}), xa(() => {
|
|
@@ -1779,7 +1779,7 @@ function yu(e, r, a, s, c, d) {
|
|
|
1779
1779
|
}, 8, ["activeKey", "onChange", "onEdit"])
|
|
1780
1780
|
], 512);
|
|
1781
1781
|
}
|
|
1782
|
-
const
|
|
1782
|
+
const $t = /* @__PURE__ */ Oe(hu, [["render", yu]]), bu = { class: "d-flex justify-content-between" }, _u = { key: 0 }, Dt = {
|
|
1783
1783
|
__name: "Breadcrumb",
|
|
1784
1784
|
props: {
|
|
1785
1785
|
showMenuToggle: {
|
|
@@ -1921,7 +1921,7 @@ function Tu(e, r, a, s, c, d) {
|
|
|
1921
1921
|
})
|
|
1922
1922
|
], 64);
|
|
1923
1923
|
}
|
|
1924
|
-
const
|
|
1924
|
+
const Nt = /* @__PURE__ */ Oe(ku, [["render", Tu]]), Lt = {
|
|
1925
1925
|
__name: "WorkflowTodoBell",
|
|
1926
1926
|
setup(e) {
|
|
1927
1927
|
const r = Ke(), a = qe();
|
|
@@ -1955,7 +1955,7 @@ const Dt = /* @__PURE__ */ Oe(ku, [["render", Tu]]), Nt = {
|
|
|
1955
1955
|
};
|
|
1956
1956
|
}
|
|
1957
1957
|
}, zu = Le({
|
|
1958
|
-
components: { Breadcrumb:
|
|
1958
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
1959
1959
|
setup() {
|
|
1960
1960
|
const e = Ke(), r = qe(), a = V("menu"), s = V("breakpoint", q(!1)), c = V("onBreakpoint", () => {
|
|
1961
1961
|
}), d = (v) => {
|
|
@@ -2046,7 +2046,7 @@ function Ru(e, r, a, s, c, d) {
|
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
const Au = /* @__PURE__ */ Oe(zu, [["render", Ru]]), $u = Le({
|
|
2049
|
-
components: { Breadcrumb:
|
|
2049
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
2050
2050
|
setup() {
|
|
2051
2051
|
const e = Ke(), r = qe(), a = V("menu"), s = V("breakpoint", q(!1)), c = V("onBreakpoint", () => {
|
|
2052
2052
|
}), d = (E) => {
|
|
@@ -2083,7 +2083,7 @@ function Wu(e, r, a, s, c, d) {
|
|
|
2083
2083
|
e.breakpoint ? (k(), A(v, { key: 0 })) : (k(), A(O, {
|
|
2084
2084
|
key: 1,
|
|
2085
2085
|
class: "px-3 border-bottom header-h50 text-white",
|
|
2086
|
-
style:
|
|
2086
|
+
style: kn({ background: e.token.colorPrimaryHover + "!important" })
|
|
2087
2087
|
}, {
|
|
2088
2088
|
default: _(() => [
|
|
2089
2089
|
M("div", Du, [
|
|
@@ -2169,7 +2169,7 @@ function Wu(e, r, a, s, c, d) {
|
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
2171
2171
|
const Uu = /* @__PURE__ */ Oe($u, [["render", Wu], ["__scopeId", "data-v-16b05c4f"]]), Hu = Le({
|
|
2172
|
-
components: { Breadcrumb:
|
|
2172
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
2173
2173
|
setup() {
|
|
2174
2174
|
const e = Ke(), r = qe(), a = V("menu"), s = V("breakpoint", q(!1)), c = V("onBreakpoint", () => {
|
|
2175
2175
|
}), d = (v) => {
|
|
@@ -2249,7 +2249,7 @@ function qu(e, r, a, s, c, d) {
|
|
|
2249
2249
|
});
|
|
2250
2250
|
}
|
|
2251
2251
|
const Gu = /* @__PURE__ */ Oe(Hu, [["render", qu]]), Yu = Le({
|
|
2252
|
-
components: { Breadcrumb:
|
|
2252
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
2253
2253
|
setup() {
|
|
2254
2254
|
const e = Ke(), r = qe(), { useToken: a } = Vn, { token: s } = a(), c = V("menu"), d = V("pmenu"), v = V("nextMenu"), m = V("breakpoint", q(!1)), p = V("onBreakpoint", () => {
|
|
2255
2255
|
}), E = (O) => {
|
|
@@ -2316,7 +2316,7 @@ function ac(e, r, a, s, c, d) {
|
|
|
2316
2316
|
(k(!0), Q(Ee, null, Ne(e.menu, (Y) => (k(), Q("li", {
|
|
2317
2317
|
class: $e(["px-2 py-3", e.pmenu?.path == Y.path ? "active" : ""]),
|
|
2318
2318
|
key: Y,
|
|
2319
|
-
style:
|
|
2319
|
+
style: kn({ background: e.pmenu?.path == Y.path ? e.token.colorPrimaryHover : "" }),
|
|
2320
2320
|
onClick: (C) => e.refreshSubMenu(Y)
|
|
2321
2321
|
}, [
|
|
2322
2322
|
x(p, {
|
|
@@ -2436,7 +2436,7 @@ const ic = /* @__PURE__ */ Oe(Yu, [["render", ac], ["__scopeId", "data-v-08491cb
|
|
|
2436
2436
|
const D = b("a-avatar"), J = b("a-icon"), Y = b("a-layout-sider"), C = b("a-divider"), ge = b("a-space"), ue = b("a-layout-header"), Te = b("a-menu"), U = b("router-view"), re = b("a-layout-content"), he = b("a-layout");
|
|
2437
2437
|
return k(), A(he, { class: "app-layout sidebar-layout h-100" }, {
|
|
2438
2438
|
default: _(() => [
|
|
2439
|
-
te(p) ? (k(), A(
|
|
2439
|
+
te(p) ? (k(), A(Nt, { key: 0 })) : (k(), A(Y, {
|
|
2440
2440
|
key: 1,
|
|
2441
2441
|
defaultCollapsed: !0,
|
|
2442
2442
|
collapsedWidth: "65",
|
|
@@ -2456,7 +2456,7 @@ const ic = /* @__PURE__ */ Oe(Yu, [["render", ac], ["__scopeId", "data-v-08491cb
|
|
|
2456
2456
|
(k(!0), Q(Ee, null, Ne(te(d), (ve) => (k(), Q("li", {
|
|
2457
2457
|
class: $e(["py-2", te(v)?.path == ve.path ? "active" : ""]),
|
|
2458
2458
|
key: ve,
|
|
2459
|
-
style:
|
|
2459
|
+
style: kn({ background: te(v)?.path == ve.path ? te(c).colorPrimaryHover : "" }),
|
|
2460
2460
|
onClick: (Se) => O(ve)
|
|
2461
2461
|
}, [
|
|
2462
2462
|
x(J, {
|
|
@@ -2477,17 +2477,17 @@ const ic = /* @__PURE__ */ Oe(Yu, [["render", ac], ["__scopeId", "data-v-08491cb
|
|
|
2477
2477
|
class: "px-3 bg-white border-bottom header-h56"
|
|
2478
2478
|
}, {
|
|
2479
2479
|
default: _(() => [
|
|
2480
|
-
x(
|
|
2480
|
+
x(Dt, { showMenuToggle: !0 }, {
|
|
2481
2481
|
userBar: _(() => [
|
|
2482
2482
|
x(ge, { size: "middle" }, {
|
|
2483
2483
|
default: _(() => [
|
|
2484
|
-
K.value ? (k(), A(
|
|
2484
|
+
K.value ? (k(), A(Lt, { key: 0 })) : X("", !0),
|
|
2485
2485
|
K.value ? (k(), A(C, {
|
|
2486
2486
|
key: 1,
|
|
2487
2487
|
type: "vertical",
|
|
2488
2488
|
class: ""
|
|
2489
2489
|
})) : X("", !0),
|
|
2490
|
-
x(
|
|
2490
|
+
x(Rt)
|
|
2491
2491
|
]),
|
|
2492
2492
|
_: 1
|
|
2493
2493
|
})
|
|
@@ -2530,7 +2530,7 @@ const ic = /* @__PURE__ */ Oe(Yu, [["render", ac], ["__scopeId", "data-v-08491cb
|
|
|
2530
2530
|
}, 8, ["collapsed", "onBreakpoint", "collapsedWidth"]),
|
|
2531
2531
|
x(he, null, {
|
|
2532
2532
|
default: _(() => [
|
|
2533
|
-
ne.value && !te(p) ? (k(), A(
|
|
2533
|
+
ne.value && !te(p) ? (k(), A($t, { key: 0 })) : X("", !0),
|
|
2534
2534
|
x(re, {
|
|
2535
2535
|
id: "ant-layout-content",
|
|
2536
2536
|
class: $e(["ofa bg-white", { "p-0": te(p), "p-0": !te(p) }])
|
|
@@ -2555,7 +2555,7 @@ const ic = /* @__PURE__ */ Oe(Yu, [["render", ac], ["__scopeId", "data-v-08491cb
|
|
|
2555
2555
|
};
|
|
2556
2556
|
}
|
|
2557
2557
|
}, vc = /* @__PURE__ */ Oe(mc, [["__scopeId", "data-v-8e854fe2"]]), gc = Le({
|
|
2558
|
-
components: { Breadcrumb:
|
|
2558
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
2559
2559
|
setup() {
|
|
2560
2560
|
const e = Ke(), r = qe(), a = V("menu"), s = V("pmenu"), c = V("nextMenu"), d = V("breakpoint", q(!1)), v = V("onBreakpoint", () => {
|
|
2561
2561
|
}), m = (E) => {
|
|
@@ -2697,7 +2697,7 @@ function Ec(e, r, a, s, c, d) {
|
|
|
2697
2697
|
});
|
|
2698
2698
|
}
|
|
2699
2699
|
const Cc = /* @__PURE__ */ Oe(gc, [["render", Ec], ["__scopeId", "data-v-49f819ff"]]), Tc = Le({
|
|
2700
|
-
components: { Breadcrumb:
|
|
2700
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
2701
2701
|
setup() {
|
|
2702
2702
|
const e = Ke(), r = qe(), a = V("menu"), s = V("pmenu"), c = V("nextMenu"), d = V("breakpoint", q(!1)), v = V("onBreakpoint", () => {
|
|
2703
2703
|
}), m = (E) => {
|
|
@@ -2820,7 +2820,7 @@ function $c(e, r, a, s, c, d) {
|
|
|
2820
2820
|
});
|
|
2821
2821
|
}
|
|
2822
2822
|
const Dc = /* @__PURE__ */ Oe(Tc, [["render", $c], ["__scopeId", "data-v-3115387b"]]), Nc = Le({
|
|
2823
|
-
components: { Breadcrumb:
|
|
2823
|
+
components: { Breadcrumb: Dt, TabTags: $t, NavMenu: mt, UserBar: Rt, MobileHeader: Nt, WorkflowTodoBell: Lt },
|
|
2824
2824
|
setup() {
|
|
2825
2825
|
const e = Ke(), r = qe(), { useToken: a } = Vn, { token: s } = a(), c = V("menu"), d = V("pmenu"), v = V("nextMenu"), m = V("breakpoint", q(!1)), p = V("onBreakpoint", () => {
|
|
2826
2826
|
}), E = (G) => {
|
|
@@ -2983,7 +2983,7 @@ const Qc = /* @__PURE__ */ Oe(Nc, [["render", Xc], ["__scopeId", "data-v-610c8d7
|
|
|
2983
2983
|
setup(e) {
|
|
2984
2984
|
const r = V("$API"), a = Ke(), s = qe(), c = j(() => a.state.app.auth);
|
|
2985
2985
|
j(() => a.state.auth.userInfo), j(() => a.state.app.appLayoutType), j(() => a.state.app.casServerLoginUrl);
|
|
2986
|
-
const d = j(() => a.state.app.casServerLogoutUrl), v = lt(r.auth.logout), { run: m } =
|
|
2986
|
+
const d = j(() => a.state.app.casServerLogoutUrl), v = lt(r.auth.logout), { run: m } = on((z) => v[v.method](z), {
|
|
2987
2987
|
manual: !0,
|
|
2988
2988
|
onSuccess: (z) => {
|
|
2989
2989
|
c.value === "CAS" && (window.location.href = d.value);
|
|
@@ -3259,16 +3259,16 @@ function Ha(e) {
|
|
|
3259
3259
|
return a = c, r || (r = !0, s = Promise.resolve().then(() => (r = !1, s = void 0, e(...a)))), s;
|
|
3260
3260
|
};
|
|
3261
3261
|
}
|
|
3262
|
-
const
|
|
3262
|
+
const bn = /* @__PURE__ */ new Set(), Va = /* @__PURE__ */ new WeakMap();
|
|
3263
3263
|
function rd() {
|
|
3264
|
-
|
|
3264
|
+
bn.forEach((e) => {
|
|
3265
3265
|
e(...Va.get(e));
|
|
3266
|
-
}),
|
|
3266
|
+
}), bn.clear();
|
|
3267
3267
|
}
|
|
3268
3268
|
function Ze(e, ...r) {
|
|
3269
3269
|
if (typeof e != "function")
|
|
3270
3270
|
return e;
|
|
3271
|
-
Va.set(e, r), !
|
|
3271
|
+
Va.set(e, r), !bn.has(e) && (bn.add(e), bn.size === 1 && Promise.resolve().then(rd));
|
|
3272
3272
|
}
|
|
3273
3273
|
const Ka = Symbol("LAYOUT_KEY"), qa = Symbol("EMITTER_KEY");
|
|
3274
3274
|
function ad(e) {
|
|
@@ -3289,7 +3289,7 @@ function id(e) {
|
|
|
3289
3289
|
function Ga(e, r) {
|
|
3290
3290
|
return !(e === r || e.x + e.w <= r.x || e.x >= r.x + r.w || e.y + e.h <= r.y || e.y >= r.y + r.h);
|
|
3291
3291
|
}
|
|
3292
|
-
function
|
|
3292
|
+
function en(e, r, a) {
|
|
3293
3293
|
const s = Xa(e), c = Qa(e), d = Array(e.length);
|
|
3294
3294
|
for (let v = 0, m = c.length; v < m; v++) {
|
|
3295
3295
|
let p = c[v];
|
|
@@ -3299,15 +3299,15 @@ function Zt(e, r, a) {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
function sd(e, r, a, s) {
|
|
3301
3301
|
if (a)
|
|
3302
|
-
for (; r.y > 0 && !
|
|
3302
|
+
for (; r.y > 0 && !_n(e, r); )
|
|
3303
3303
|
r.y--;
|
|
3304
3304
|
else if (s) {
|
|
3305
3305
|
const d = s[r.i].y;
|
|
3306
|
-
for (; r.y > d && !
|
|
3306
|
+
for (; r.y > d && !_n(e, r); )
|
|
3307
3307
|
r.y--;
|
|
3308
3308
|
}
|
|
3309
3309
|
let c;
|
|
3310
|
-
for (; c =
|
|
3310
|
+
for (; c = _n(e, r); )
|
|
3311
3311
|
r.y = c.y + c.h;
|
|
3312
3312
|
return r;
|
|
3313
3313
|
}
|
|
@@ -3317,7 +3317,7 @@ function ld(e, r) {
|
|
|
3317
3317
|
const d = e[s];
|
|
3318
3318
|
if (d.x + d.w > r.cols && (d.x = r.cols - d.w), d.x < 0 && (d.x = 0, d.w = r.cols), !d.static) a.push(d);
|
|
3319
3319
|
else
|
|
3320
|
-
for (;
|
|
3320
|
+
for (; _n(a, d); )
|
|
3321
3321
|
d.y++;
|
|
3322
3322
|
}
|
|
3323
3323
|
return e;
|
|
@@ -3326,7 +3326,7 @@ function Qr(e, r) {
|
|
|
3326
3326
|
for (let a = 0, s = e.length; a < s; a++)
|
|
3327
3327
|
if (e[a].i === r) return e[a];
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3329
|
+
function _n(e, r) {
|
|
3330
3330
|
for (let a = 0, s = e.length; a < s; a++)
|
|
3331
3331
|
if (Ga(e[a], r)) return e[a];
|
|
3332
3332
|
}
|
|
@@ -3359,7 +3359,7 @@ function Jr(e, r, a, s) {
|
|
|
3359
3359
|
w: a.w,
|
|
3360
3360
|
h: a.h
|
|
3361
3361
|
};
|
|
3362
|
-
if (c.y = Math.max(r.y - a.h, 0), !
|
|
3362
|
+
if (c.y = Math.max(r.y - a.h, 0), !_n(e, c))
|
|
3363
3363
|
return zo(e, a, void 0, c.y, !1);
|
|
3364
3364
|
}
|
|
3365
3365
|
return zo(e, a, void 0, a.y + 1, !1);
|
|
@@ -3498,7 +3498,7 @@ function yd(e, r, a, s, c, d, v) {
|
|
|
3498
3498
|
break;
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
return m = To(m || []),
|
|
3501
|
+
return m = To(m || []), en(ld(m, { cols: d }), v);
|
|
3502
3502
|
}
|
|
3503
3503
|
function Za(e) {
|
|
3504
3504
|
return Object.keys(e).sort((r, a) => e[r] - e[a]);
|
|
@@ -3513,7 +3513,7 @@ function ta() {
|
|
|
3513
3513
|
function wd(e) {
|
|
3514
3514
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3515
3515
|
}
|
|
3516
|
-
var
|
|
3516
|
+
var mn = { exports: {} }, xd = mn.exports, na;
|
|
3517
3517
|
function kd() {
|
|
3518
3518
|
return na || (na = 1, (function(e, r) {
|
|
3519
3519
|
(function(a, s) {
|
|
@@ -3779,13 +3779,13 @@ function kd() {
|
|
|
3779
3779
|
function nt(n) {
|
|
3780
3780
|
return n && { x: "x" in n ? n.x : n.left, y: "y" in n ? n.y : n.top };
|
|
3781
3781
|
}
|
|
3782
|
-
function
|
|
3782
|
+
function Gt(n) {
|
|
3783
3783
|
return !n || "x" in n && "y" in n || ((n = ee({}, n)).x = n.left || 0, n.y = n.top || 0, n.width = n.width || (n.right || 0) - n.x, n.height = n.height || (n.bottom || 0) - n.y), n;
|
|
3784
3784
|
}
|
|
3785
|
-
function
|
|
3785
|
+
function jt(n, t, o) {
|
|
3786
3786
|
n.left && (t.left += o.x), n.right && (t.right += o.x), n.top && (t.top += o.y), n.bottom && (t.bottom += o.y), t.width = t.right - t.left, t.height = t.bottom - t.top;
|
|
3787
3787
|
}
|
|
3788
|
-
function
|
|
3788
|
+
function Ft(n, t, o) {
|
|
3789
3789
|
var i = o && n.options[o];
|
|
3790
3790
|
return nt(Ye(i && i.origin || n.options.origin, n, t, [n && t])) || { x: 0, y: 0 };
|
|
3791
3791
|
}
|
|
@@ -3793,7 +3793,7 @@ function kd() {
|
|
|
3793
3793
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(g) {
|
|
3794
3794
|
return !0;
|
|
3795
3795
|
}, i = arguments.length > 3 ? arguments[3] : void 0;
|
|
3796
|
-
if (i = i || {}, C.string(n) && n.search(" ") !== -1 && (n =
|
|
3796
|
+
if (i = i || {}, C.string(n) && n.search(" ") !== -1 && (n = rn(n)), C.array(n)) return n.forEach((function(g) {
|
|
3797
3797
|
return vt(g, t, o, i);
|
|
3798
3798
|
})), i;
|
|
3799
3799
|
if (C.object(n) && (t = n, n = ""), C.func(t) && o(n)) i[n] = i[n] || [], i[n].push(t);
|
|
@@ -3802,18 +3802,18 @@ function kd() {
|
|
|
3802
3802
|
vt(n, f, o, i);
|
|
3803
3803
|
}
|
|
3804
3804
|
else if (C.object(t)) for (var h in t)
|
|
3805
|
-
vt(
|
|
3805
|
+
vt(rn(h).map((function(g) {
|
|
3806
3806
|
return "".concat(n).concat(g);
|
|
3807
3807
|
})), t[h], o, i);
|
|
3808
3808
|
return i;
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function rn(n) {
|
|
3811
3811
|
return n.trim().split(/ +/);
|
|
3812
3812
|
}
|
|
3813
|
-
var
|
|
3813
|
+
var Et = function(n, t) {
|
|
3814
3814
|
return Math.sqrt(n * n + t * t);
|
|
3815
3815
|
}, qn = ["webkit", "moz"];
|
|
3816
|
-
function
|
|
3816
|
+
function Wt(n, t) {
|
|
3817
3817
|
n.__set || (n.__set = {});
|
|
3818
3818
|
var o = function(l) {
|
|
3819
3819
|
if (qn.some((function(u) {
|
|
@@ -3828,7 +3828,7 @@ function kd() {
|
|
|
3828
3828
|
for (var i in t) o(i);
|
|
3829
3829
|
return n;
|
|
3830
3830
|
}
|
|
3831
|
-
function
|
|
3831
|
+
function Yt(n, t) {
|
|
3832
3832
|
n.page = n.page || {}, n.page.x = t.page.x, n.page.y = t.page.y, n.client = n.client || {}, n.client.x = t.client.x, n.client.y = t.client.y, n.timeStamp = t.timeStamp;
|
|
3833
3833
|
}
|
|
3834
3834
|
function gt(n) {
|
|
@@ -3871,20 +3871,20 @@ function kd() {
|
|
|
3871
3871
|
}
|
|
3872
3872
|
function Xe(n, t) {
|
|
3873
3873
|
var o = t + "X", i = t + "Y", l = ze(n), u = l[0][o] - l[1][o], f = l[0][i] - l[1][i];
|
|
3874
|
-
return
|
|
3874
|
+
return Et(u, f);
|
|
3875
3875
|
}
|
|
3876
3876
|
function ot(n, t) {
|
|
3877
3877
|
var o = t + "X", i = t + "Y", l = ze(n), u = l[1][o] - l[0][o], f = l[1][i] - l[0][i];
|
|
3878
3878
|
return 180 * Math.atan2(f, u) / Math.PI;
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3880
|
+
function Ct(n) {
|
|
3881
3881
|
return C.string(n.pointerType) ? n.pointerType : C.number(n.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][n.pointerType] : /touch/.test(n.type || "") || n instanceof ve.Touch ? "touch" : "mouse";
|
|
3882
3882
|
}
|
|
3883
|
-
function
|
|
3883
|
+
function Tt(n) {
|
|
3884
3884
|
var t = C.func(n.composedPath) ? n.composedPath() : n.path;
|
|
3885
3885
|
return [Be(t ? t[0] : n.target), Be(n.currentTarget)];
|
|
3886
3886
|
}
|
|
3887
|
-
var
|
|
3887
|
+
var zt = (function() {
|
|
3888
3888
|
function n(t) {
|
|
3889
3889
|
d(this, n), this.immediatePropagationStopped = !1, this.propagationStopped = !1, this._interaction = t;
|
|
3890
3890
|
}
|
|
@@ -3895,24 +3895,24 @@ function kd() {
|
|
|
3895
3895
|
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
3896
3896
|
} }]), n;
|
|
3897
3897
|
})();
|
|
3898
|
-
Object.defineProperty(
|
|
3898
|
+
Object.defineProperty(zt.prototype, "interaction", { get: function() {
|
|
3899
3899
|
return this._interaction._proxy;
|
|
3900
3900
|
}, set: function() {
|
|
3901
3901
|
} });
|
|
3902
|
-
var
|
|
3902
|
+
var Xt = function(n, t) {
|
|
3903
3903
|
for (var o = 0; o < t.length; o++) {
|
|
3904
3904
|
var i = t[o];
|
|
3905
3905
|
n.push(i);
|
|
3906
3906
|
}
|
|
3907
3907
|
return n;
|
|
3908
|
-
},
|
|
3909
|
-
return
|
|
3908
|
+
}, Qt = function(n) {
|
|
3909
|
+
return Xt([], n);
|
|
3910
3910
|
}, yt = function(n, t) {
|
|
3911
3911
|
for (var o = 0; o < n.length; o++) if (t(n[o], o, n)) return o;
|
|
3912
3912
|
return -1;
|
|
3913
|
-
},
|
|
3913
|
+
}, an = function(n, t) {
|
|
3914
3914
|
return n[yt(n, t)];
|
|
3915
|
-
},
|
|
3915
|
+
}, Jt = (function(n) {
|
|
3916
3916
|
E(o, n);
|
|
3917
3917
|
var t = B(o);
|
|
3918
3918
|
function o(i, l, u) {
|
|
@@ -3938,7 +3938,7 @@ function kd() {
|
|
|
3938
3938
|
} }, { key: "stopImmediatePropagation", value: function() {
|
|
3939
3939
|
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
3940
3940
|
} }]), o;
|
|
3941
|
-
})(
|
|
3941
|
+
})(zt);
|
|
3942
3942
|
function Go(n, t) {
|
|
3943
3943
|
for (var o = 0, i = n.slice(); o < i.length; o++) {
|
|
3944
3944
|
var l = i[o], u = l.dropzone, f = l.element;
|
|
@@ -3982,14 +3982,14 @@ function kd() {
|
|
|
3982
3982
|
rt = pe.ownerSVGElement;
|
|
3983
3983
|
} else rt = pe;
|
|
3984
3984
|
for (var ut = ae(rt, ke.ownerDocument), wt = 0; ut[wt] && ut[wt] === be[wt]; ) wt++;
|
|
3985
|
-
var
|
|
3986
|
-
if (
|
|
3987
|
-
if (
|
|
3985
|
+
var Bn = [ut[wt - 1], ut[wt], be[wt]];
|
|
3986
|
+
if (Bn[0]) for (var fn = Bn[0].lastChild; fn; ) {
|
|
3987
|
+
if (fn === Bn[1]) {
|
|
3988
3988
|
oe = Me, be = ut;
|
|
3989
3989
|
break;
|
|
3990
3990
|
}
|
|
3991
|
-
if (
|
|
3992
|
-
|
|
3991
|
+
if (fn === Bn[2]) break;
|
|
3992
|
+
fn = fn.previousSibling;
|
|
3993
3993
|
}
|
|
3994
3994
|
} else se = ke, (parseInt(D(Z = pe).getComputedStyle(Z).zIndex, 10) || 0) >= (parseInt(D(se).getComputedStyle(se).zIndex, 10) || 0) && (oe = Me);
|
|
3995
3995
|
else oe = Me;
|
|
@@ -4001,7 +4001,7 @@ function kd() {
|
|
|
4001
4001
|
}
|
|
4002
4002
|
function Yn(n, t, o) {
|
|
4003
4003
|
var i = n.dropState, l = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null };
|
|
4004
|
-
return o.type === "dragstart" && (l.activate = new
|
|
4004
|
+
return o.type === "dragstart" && (l.activate = new Jt(i, o, "dropactivate"), l.activate.target = null, l.activate.dropzone = null), o.type === "dragend" && (l.deactivate = new Jt(i, o, "dropdeactivate"), l.deactivate.target = null, l.deactivate.dropzone = null), i.rejected || (i.cur.element !== i.prev.element && (i.prev.dropzone && (l.leave = new Jt(i, o, "dragleave"), o.dragLeave = l.leave.target = i.prev.element, o.prevDropzone = l.leave.dropzone = i.prev.dropzone), i.cur.dropzone && (l.enter = new Jt(i, o, "dragenter"), o.dragEnter = i.cur.element, o.dropzone = i.cur.dropzone)), o.type === "dragend" && i.cur.dropzone && (l.drop = new Jt(i, o, "drop"), o.dropzone = i.cur.dropzone, o.relatedTarget = i.cur.element), o.type === "dragmove" && i.cur.dropzone && (l.move = new Jt(i, o, "dropmove"), o.dropzone = i.cur.dropzone)), l;
|
|
4005
4005
|
}
|
|
4006
4006
|
function Xn(n, t) {
|
|
4007
4007
|
var o = n.dropState, i = o.activeDrops, l = o.cur, u = o.prev;
|
|
@@ -4037,7 +4037,7 @@ function kd() {
|
|
|
4037
4037
|
if (!(Z = Z || S.getRect(oe))) return !!S.options.drop.checker && S.options.drop.checker(I, F, se, S, oe, L, H);
|
|
4038
4038
|
var be = S.options.drop.overlap;
|
|
4039
4039
|
if (be === "pointer") {
|
|
4040
|
-
var Me =
|
|
4040
|
+
var Me = Ft(L, H, "drag"), pe = Re(I);
|
|
4041
4041
|
pe.x += Me.x, pe.y += Me.y;
|
|
4042
4042
|
var ke = pe.x > Z.left && pe.x < Z.right, Je = pe.y > Z.top && pe.y < Z.bottom;
|
|
4043
4043
|
se = ke && Je;
|
|
@@ -4136,7 +4136,7 @@ function kd() {
|
|
|
4136
4136
|
o.interactable.options.resize.square ? (o.resizeAxes === "y" ? i.delta.x = i.delta.y : i.delta.y = i.delta.x, i.axes = "xy") : (i.axes = o.resizeAxes, o.resizeAxes === "x" ? i.delta.y = 0 : o.resizeAxes === "y" && (i.delta.x = 0));
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
4139
|
-
var bt,
|
|
4139
|
+
var bt, Ut, _t = { id: "actions/resize", before: ["actions/drag"], install: function(n) {
|
|
4140
4140
|
var t = n.actions, o = n.browser, i = n.Interactable, l = n.defaults;
|
|
4141
4141
|
_t.cursors = (function(u) {
|
|
4142
4142
|
return u.isIe9 ? { x: "e-resize", y: "s-resize", xy: "se-resize", top: "n-resize", left: "w-resize", bottom: "s-resize", right: "e-resize", topleft: "se-resize", bottomright: "se-resize", topright: "ne-resize", bottomleft: "ne-resize" } : { x: "ew-resize", y: "ns-resize", xy: "nwse-resize", top: "ns-resize", left: "ew-resize", bottom: "ns-resize", right: "ew-resize", topleft: "nwse-resize", bottomright: "nwse-resize", topright: "nesw-resize", bottomleft: "nesw-resize" };
|
|
@@ -4213,27 +4213,27 @@ function kd() {
|
|
|
4213
4213
|
return n.search("resize") === 0;
|
|
4214
4214
|
}, defaultMargin: null }, mi = _t, vi = { id: "actions", install: function(n) {
|
|
4215
4215
|
n.usePlugin(pi), n.usePlugin(mi), n.usePlugin(U), n.usePlugin(fi);
|
|
4216
|
-
} }, Zo = 0,
|
|
4216
|
+
} }, Zo = 0, Mt = { request: function(n) {
|
|
4217
4217
|
return bt(n);
|
|
4218
4218
|
}, cancel: function(n) {
|
|
4219
|
-
return
|
|
4219
|
+
return Ut(n);
|
|
4220
4220
|
}, init: function(n) {
|
|
4221
|
-
if (bt = n.requestAnimationFrame,
|
|
4221
|
+
if (bt = n.requestAnimationFrame, Ut = n.cancelAnimationFrame, !bt) for (var t = ["ms", "moz", "webkit", "o"], o = 0; o < t.length; o++) {
|
|
4222
4222
|
var i = t[o];
|
|
4223
|
-
bt = n["".concat(i, "RequestAnimationFrame")],
|
|
4223
|
+
bt = n["".concat(i, "RequestAnimationFrame")], Ut = n["".concat(i, "CancelAnimationFrame")] || n["".concat(i, "CancelRequestAnimationFrame")];
|
|
4224
4224
|
}
|
|
4225
|
-
bt = bt && bt.bind(n),
|
|
4225
|
+
bt = bt && bt.bind(n), Ut = Ut && Ut.bind(n), bt || (bt = function(l) {
|
|
4226
4226
|
var u = Date.now(), f = Math.max(0, 16 - (u - Zo)), h = n.setTimeout((function() {
|
|
4227
4227
|
l(u + f);
|
|
4228
4228
|
}), f);
|
|
4229
4229
|
return Zo = u + f, h;
|
|
4230
|
-
},
|
|
4230
|
+
}, Ut = function(l) {
|
|
4231
4231
|
return clearTimeout(l);
|
|
4232
4232
|
});
|
|
4233
4233
|
} }, me = { defaults: { enabled: !1, margin: 60, container: null, speed: 300 }, now: Date.now, interaction: null, i: 0, x: 0, y: 0, isScrolling: !1, prevTime: 0, margin: 0, speed: 0, start: function(n) {
|
|
4234
|
-
me.isScrolling = !0,
|
|
4234
|
+
me.isScrolling = !0, Mt.cancel(me.i), n.autoScroll = me, me.interaction = n, me.prevTime = me.now(), me.i = Mt.request(me.scroll);
|
|
4235
4235
|
}, stop: function() {
|
|
4236
|
-
me.isScrolling = !1, me.interaction && (me.interaction.autoScroll = null),
|
|
4236
|
+
me.isScrolling = !1, me.interaction && (me.interaction.autoScroll = null), Mt.cancel(me.i);
|
|
4237
4237
|
}, scroll: function() {
|
|
4238
4238
|
var n = me.interaction, t = n.interactable, o = n.element, i = n.prepared.name, l = t.options[i].autoScroll, u = er(l.container, t, o), f = me.now(), h = (f - me.prevTime) / 1e3, g = l.speed * h;
|
|
4239
4239
|
if (g >= 1) {
|
|
@@ -4246,7 +4246,7 @@ function kd() {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
me.prevTime = f;
|
|
4248
4248
|
}
|
|
4249
|
-
me.isScrolling && (
|
|
4249
|
+
me.isScrolling && (Mt.cancel(me.i), me.i = Mt.request(me.scroll));
|
|
4250
4250
|
}, check: function(n, t) {
|
|
4251
4251
|
var o;
|
|
4252
4252
|
return (o = n.options[t].autoScroll) == null ? void 0 : o.enabled;
|
|
@@ -4281,7 +4281,7 @@ function kd() {
|
|
|
4281
4281
|
}, "interactions:stop": me.stop, "interactions:action-move": function(n) {
|
|
4282
4282
|
return me.onInteractionMove(n);
|
|
4283
4283
|
} } }, yi = gi;
|
|
4284
|
-
function
|
|
4284
|
+
function sn(n, t) {
|
|
4285
4285
|
var o = !1;
|
|
4286
4286
|
return function() {
|
|
4287
4287
|
return o || ($.console.warn(t), o = !0), n.apply(this, arguments);
|
|
@@ -4304,14 +4304,14 @@ function kd() {
|
|
|
4304
4304
|
return S.fire("auto-start:check", L), L.action;
|
|
4305
4305
|
})(this, i, l, u, n);
|
|
4306
4306
|
return this.options.actionChecker ? this.options.actionChecker(o, i, f, this, u, l) : f;
|
|
4307
|
-
}, t.prototype.ignoreFrom =
|
|
4307
|
+
}, t.prototype.ignoreFrom = sn((function(o) {
|
|
4308
4308
|
return this._backCompatOption("ignoreFrom", o);
|
|
4309
|
-
}), "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), t.prototype.allowFrom =
|
|
4309
|
+
}), "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), t.prototype.allowFrom = sn((function(o) {
|
|
4310
4310
|
return this._backCompatOption("allowFrom", o);
|
|
4311
4311
|
}), "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), t.prototype.actionChecker = _i, t.prototype.styleCursor = bi;
|
|
4312
4312
|
} };
|
|
4313
4313
|
function nr(n, t, o, i, l) {
|
|
4314
|
-
return t.testIgnoreAllow(t.options[n.name], o, i) && t.options[n.name].enabled &&
|
|
4314
|
+
return t.testIgnoreAllow(t.options[n.name], o, i) && t.options[n.name].enabled && Sn(t, o, n, l) ? n : null;
|
|
4315
4315
|
}
|
|
4316
4316
|
function xi(n, t, o, i, l, u, f) {
|
|
4317
4317
|
for (var h = 0, g = i.length; h < g; h++) {
|
|
@@ -4340,7 +4340,7 @@ function kd() {
|
|
|
4340
4340
|
var i = t.action, l = t.interactable, u = t.element;
|
|
4341
4341
|
i = i || { name: null }, n.interactable = l, n.element = u, Zn(n.prepared, i), n.rect = l && i.name ? l.getRect(u) : null, ir(n, o), o.fire("autoStart:prepared", { interaction: n });
|
|
4342
4342
|
}
|
|
4343
|
-
function
|
|
4343
|
+
function Sn(n, t, o, i) {
|
|
4344
4344
|
var l = n.options, u = l[o.name].max, f = l[o.name].maxPerElement, h = i.autoStart.maxInteractions, g = 0, w = 0, y = 0;
|
|
4345
4345
|
if (!(u && f && h)) return !1;
|
|
4346
4346
|
for (var S = 0, I = i.interactions.list; S < I.length; S++) {
|
|
@@ -4372,7 +4372,7 @@ function kd() {
|
|
|
4372
4372
|
var t = n.interactStatic, o = n.defaults;
|
|
4373
4373
|
n.usePlugin(wi), o.base.actionChecker = null, o.base.styleCursor = !0, ee(o.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), t.maxInteractions = function(i) {
|
|
4374
4374
|
return ar(i, n);
|
|
4375
|
-
}, n.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit:
|
|
4375
|
+
}, n.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: Sn, cursorElement: null };
|
|
4376
4376
|
}, listeners: { "interactions:down": function(n, t) {
|
|
4377
4377
|
var o = n.interaction, i = n.pointer, l = n.event, u = n.eventTarget;
|
|
4378
4378
|
o.interacting() || rr(o, or(o, i, l, u, t), t);
|
|
@@ -4385,13 +4385,13 @@ function kd() {
|
|
|
4385
4385
|
if (l.pointerIsDown && !l.interacting() && l.pointerWasMoved && l.prepared.name) {
|
|
4386
4386
|
i.fire("autoStart:before-start", o);
|
|
4387
4387
|
var u = l.interactable, f = l.prepared.name;
|
|
4388
|
-
f && u && (u.options[f].manualStart || !
|
|
4388
|
+
f && u && (u.options[f].manualStart || !Sn(u, l.element, l.prepared, i) ? l.stop() : (l.start(l.prepared, u, l.element), ir(l, i)));
|
|
4389
4389
|
}
|
|
4390
4390
|
})(n, t);
|
|
4391
4391
|
}, "interactions:stop": function(n, t) {
|
|
4392
4392
|
var o = n.interaction, i = o.interactable;
|
|
4393
4393
|
i && i.options.styleCursor && eo(o.element, "", t);
|
|
4394
|
-
} }, maxInteractions: ar, withinInteractionLimit:
|
|
4394
|
+
} }, maxInteractions: ar, withinInteractionLimit: Sn, validateAction: nr }, to = ki, Si = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(n, t) {
|
|
4395
4395
|
var o = n.interaction, i = n.eventTarget, l = n.dx, u = n.dy;
|
|
4396
4396
|
if (o.prepared.name === "drag") {
|
|
4397
4397
|
var f = Math.abs(l), h = Math.abs(u), g = o.interactable.options.drag, w = g.startAxis, y = f > h ? "x" : f < h ? "y" : "xy";
|
|
@@ -4473,22 +4473,22 @@ function kd() {
|
|
|
4473
4473
|
}, listeners: ["down", "move", "up", "cancel"].reduce((function(n, t) {
|
|
4474
4474
|
return n["interactions:".concat(t)] = Mi, n;
|
|
4475
4475
|
}), {}) };
|
|
4476
|
-
function
|
|
4476
|
+
function En(n, t) {
|
|
4477
4477
|
if (t.phaselessTypes[n]) return !0;
|
|
4478
4478
|
for (var o in t.map) if (n.indexOf(o) === 0 && n.substr(o.length) in t.phases) return !0;
|
|
4479
4479
|
return !1;
|
|
4480
4480
|
}
|
|
4481
|
-
function
|
|
4481
|
+
function Zt(n) {
|
|
4482
4482
|
var t = {};
|
|
4483
4483
|
for (var o in n) {
|
|
4484
4484
|
var i = n[o];
|
|
4485
|
-
C.plainObject(i) ? t[o] =
|
|
4485
|
+
C.plainObject(i) ? t[o] = Zt(i) : C.array(i) ? t[o] = Qt(i) : t[o] = i;
|
|
4486
4486
|
}
|
|
4487
4487
|
return t;
|
|
4488
4488
|
}
|
|
4489
4489
|
var oo = (function() {
|
|
4490
4490
|
function n(t) {
|
|
4491
|
-
d(this, n), this.states = [], this.startOffset = { left: 0, right: 0, top: 0, bottom: 0 }, this.startDelta = void 0, this.result = void 0, this.endResult = void 0, this.startEdges = void 0, this.edges = void 0, this.interaction = void 0, this.interaction = t, this.result =
|
|
4491
|
+
d(this, n), this.states = [], this.startOffset = { left: 0, right: 0, top: 0, bottom: 0 }, this.startDelta = void 0, this.result = void 0, this.endResult = void 0, this.startEdges = void 0, this.edges = void 0, this.interaction = void 0, this.interaction = t, this.result = Cn(), this.edges = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
4492
4492
|
}
|
|
4493
4493
|
return m(n, [{ key: "start", value: function(t, o) {
|
|
4494
4494
|
var i, l, u = t.phase, f = this.interaction, h = (function(w) {
|
|
@@ -4502,7 +4502,7 @@ function kd() {
|
|
|
4502
4502
|
})(f);
|
|
4503
4503
|
this.prepareStates(h), this.startEdges = ee({}, f.edges), this.edges = ee({}, this.startEdges), this.startOffset = (i = f.rect, l = o, i ? { left: l.x - i.left, top: l.y - i.top, right: i.right - l.x, bottom: i.bottom - l.y } : { left: 0, top: 0, right: 0, bottom: 0 }), this.startDelta = { x: 0, y: 0 };
|
|
4504
4504
|
var g = this.fillArg({ phase: u, pageCoords: o, preEnd: !1 });
|
|
4505
|
-
return this.result =
|
|
4505
|
+
return this.result = Cn(), this.startAll(g), this.result = this.setAll(g);
|
|
4506
4506
|
} }, { key: "fillArg", value: function(t) {
|
|
4507
4507
|
var o = this.interaction;
|
|
4508
4508
|
return t.interaction = o, t.interactable = o.interactable, t.element = o.element, t.rect || (t.rect = o.rect), t.edges || (t.edges = this.startEdges), t.startOffset = this.startOffset, t;
|
|
@@ -4514,9 +4514,9 @@ function kd() {
|
|
|
4514
4514
|
} }, { key: "setAll", value: function(t) {
|
|
4515
4515
|
var o = t.phase, i = t.preEnd, l = t.skipModifiers, u = t.rect, f = t.edges;
|
|
4516
4516
|
t.coords = ee({}, t.pageCoords), t.rect = ee({}, u), t.edges = ee({}, f);
|
|
4517
|
-
for (var h = l ? this.states.slice(l) : this.states, g =
|
|
4517
|
+
for (var h = l ? this.states.slice(l) : this.states, g = Cn(t.coords, t.rect), w = 0; w < h.length; w++) {
|
|
4518
4518
|
var y, S = h[w], I = S.options, F = ee({}, t.coords), L = null;
|
|
4519
|
-
(y = S.methods) != null && y.set && this.shouldDo(I, i, o) && (t.state = S, L = S.methods.set(t),
|
|
4519
|
+
(y = S.methods) != null && y.set && this.shouldDo(I, i, o) && (t.state = S, L = S.methods.set(t), jt(t.edges, t.rect, { x: t.coords.x - F.x, y: t.coords.y - F.y })), g.eventProps.push(L);
|
|
4520
4520
|
}
|
|
4521
4521
|
ee(this.edges, t.edges), g.delta.x = t.coords.x - t.pageCoords.x, g.delta.y = t.coords.y - t.pageCoords.y, g.rectDelta.left = t.rect.left - u.left, g.rectDelta.right = t.rect.right - u.right, g.rectDelta.top = t.rect.top - u.top, g.rectDelta.bottom = t.rect.bottom - u.bottom;
|
|
4522
4522
|
var H = this.result.coords, oe = this.result.rect;
|
|
@@ -4585,16 +4585,16 @@ function kd() {
|
|
|
4585
4585
|
return !(!t || t.enabled === !1 || l && !t.endOnly || t.endOnly && !o || i === "start" && !t.setStart);
|
|
4586
4586
|
} }, { key: "copyFrom", value: function(t) {
|
|
4587
4587
|
this.startOffset = t.startOffset, this.startDelta = t.startDelta, this.startEdges = t.startEdges, this.edges = t.edges, this.states = t.states.map((function(o) {
|
|
4588
|
-
return
|
|
4589
|
-
})), this.result =
|
|
4588
|
+
return Zt(o);
|
|
4589
|
+
})), this.result = Cn(ee({}, t.result.coords), ee({}, t.result.rect));
|
|
4590
4590
|
} }, { key: "destroy", value: function() {
|
|
4591
4591
|
for (var t in this) this[t] = null;
|
|
4592
4592
|
} }]), n;
|
|
4593
4593
|
})();
|
|
4594
|
-
function
|
|
4594
|
+
function Cn(n, t) {
|
|
4595
4595
|
return { rect: t, coords: n, delta: { x: 0, y: 0 }, rectDelta: { left: 0, right: 0, top: 0, bottom: 0 }, eventProps: [], changed: !0 };
|
|
4596
4596
|
}
|
|
4597
|
-
function
|
|
4597
|
+
function Ot(n, t) {
|
|
4598
4598
|
var o = n.defaults, i = { start: n.start, set: n.set, beforeEnd: n.beforeEnd, stop: n.stop }, l = function(u) {
|
|
4599
4599
|
var f = u || {};
|
|
4600
4600
|
for (var h in f.enabled = f.enabled !== !1, o) h in f || (f[h] = o[h]);
|
|
@@ -4607,7 +4607,7 @@ function kd() {
|
|
|
4607
4607
|
};
|
|
4608
4608
|
return t && typeof t == "string" && (l._defaults = o, l._methods = i), l;
|
|
4609
4609
|
}
|
|
4610
|
-
function
|
|
4610
|
+
function ln(n) {
|
|
4611
4611
|
var t = n.iEvent, o = n.interaction.modification.result;
|
|
4612
4612
|
o && (t.modifiers = o.eventProps);
|
|
4613
4613
|
}
|
|
@@ -4625,7 +4625,7 @@ function kd() {
|
|
|
4625
4625
|
}, "interactions:before-action-end": function(n) {
|
|
4626
4626
|
var t = n.interaction, o = t.modification, i = o.beforeEnd(n);
|
|
4627
4627
|
return t.edges = o.startEdges, i;
|
|
4628
|
-
}, "interactions:action-start":
|
|
4628
|
+
}, "interactions:action-start": ln, "interactions:action-move": ln, "interactions:action-end": ln, "interactions:after-action-start": function(n) {
|
|
4629
4629
|
return n.interaction.modification.restoreInteractionCoords(n);
|
|
4630
4630
|
}, "interactions:after-action-move": function(n) {
|
|
4631
4631
|
return n.interaction.modification.restoreInteractionCoords(n);
|
|
@@ -4637,8 +4637,8 @@ function kd() {
|
|
|
4637
4637
|
function o(i, l, u, f, h, g, w) {
|
|
4638
4638
|
var y;
|
|
4639
4639
|
d(this, o), (y = t.call(this, i)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || i.element;
|
|
4640
|
-
var S = i.interactable, I = (S && S.options || ur).deltaSource, F =
|
|
4641
|
-
return y.page = ee({}, Z.page), y.client = ee({}, Z.client), y.rect = ee({}, i.rect), y.timeStamp = Z.timeStamp, H || (y.page.x -= F.x, y.page.y -= F.y, y.client.x -= F.x, y.client.y -= F.y), y.ctrlKey = l.ctrlKey, y.altKey = l.altKey, y.shiftKey = l.shiftKey, y.metaKey = l.metaKey, y.button = l.button, y.buttons = l.buttons, y.target = h, y.currentTarget = h, y.preEnd = g, y.type = w || u + (f || ""), y.interactable = S, y.t0 = L ? i.pointers[i.pointers.length - 1].downTime : oe.t0, y.x0 = i.coords.start.page.x - F.x, y.y0 = i.coords.start.page.y - F.y, y.clientX0 = i.coords.start.client.x - F.x, y.clientY0 = i.coords.start.client.y - F.y, y.delta = L || H ? { x: 0, y: 0 } : { x: y[I].x - oe[I].x, y: y[I].y - oe[I].y }, y.dt = i.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = ee({}, i.coords.velocity[I]), y.speed =
|
|
4640
|
+
var S = i.interactable, I = (S && S.options || ur).deltaSource, F = Ft(S, h, u), L = f === "start", H = f === "end", oe = L ? T(y) : i.prevEvent, Z = L ? i.coords.start : H ? { page: oe.page, client: oe.client, timeStamp: i.coords.cur.timeStamp } : i.coords.cur;
|
|
4641
|
+
return y.page = ee({}, Z.page), y.client = ee({}, Z.client), y.rect = ee({}, i.rect), y.timeStamp = Z.timeStamp, H || (y.page.x -= F.x, y.page.y -= F.y, y.client.x -= F.x, y.client.y -= F.y), y.ctrlKey = l.ctrlKey, y.altKey = l.altKey, y.shiftKey = l.shiftKey, y.metaKey = l.metaKey, y.button = l.button, y.buttons = l.buttons, y.target = h, y.currentTarget = h, y.preEnd = g, y.type = w || u + (f || ""), y.interactable = S, y.t0 = L ? i.pointers[i.pointers.length - 1].downTime : oe.t0, y.x0 = i.coords.start.page.x - F.x, y.y0 = i.coords.start.page.y - F.y, y.clientX0 = i.coords.start.client.x - F.x, y.clientY0 = i.coords.start.client.y - F.y, y.delta = L || H ? { x: 0, y: 0 } : { x: y[I].x - oe[I].x, y: y[I].y - oe[I].y }, y.dt = i.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = ee({}, i.coords.velocity[I]), y.speed = Et(y.velocity.x, y.velocity.y), y.swipe = H || f === "inertiastart" ? y.getSwipe() : null, y;
|
|
4642
4642
|
}
|
|
4643
4643
|
return m(o, [{ key: "getSwipe", value: function() {
|
|
4644
4644
|
var i = this._interaction;
|
|
@@ -4653,7 +4653,7 @@ function kd() {
|
|
|
4653
4653
|
} }, { key: "stopPropagation", value: function() {
|
|
4654
4654
|
this.propagationStopped = !0;
|
|
4655
4655
|
} }]), o;
|
|
4656
|
-
})(
|
|
4656
|
+
})(zt);
|
|
4657
4657
|
Object.defineProperties(ro.prototype, { pageX: { get: function() {
|
|
4658
4658
|
return this.page.x;
|
|
4659
4659
|
}, set: function(n) {
|
|
@@ -4696,7 +4696,7 @@ function kd() {
|
|
|
4696
4696
|
})({}), Pi = 0, Ri = (function() {
|
|
4697
4697
|
function n(t) {
|
|
4698
4698
|
var o = this, i = t.pointerType, l = t.scopeFire;
|
|
4699
|
-
d(this, n), this.interactable = null, this.element = null, this.rect = null, this._rects = void 0, this.edges = null, this._scopeFire = void 0, this.prepared = { name: null, axis: null, edges: null }, this.pointerType = void 0, this.pointers = [], this.downEvent = null, this.downPointer = {}, this._latestPointer = { pointer: null, event: null, eventTarget: null }, this.prevEvent = null, this.pointerIsDown = !1, this.pointerWasMoved = !1, this._interacting = !1, this._ending = !1, this._stopped = !0, this._proxy = void 0, this.simulation = null, this.doMove =
|
|
4699
|
+
d(this, n), this.interactable = null, this.element = null, this.rect = null, this._rects = void 0, this.edges = null, this._scopeFire = void 0, this.prepared = { name: null, axis: null, edges: null }, this.pointerType = void 0, this.pointers = [], this.downEvent = null, this.downPointer = {}, this._latestPointer = { pointer: null, event: null, eventTarget: null }, this.prevEvent = null, this.pointerIsDown = !1, this.pointerWasMoved = !1, this._interacting = !1, this._ending = !1, this._stopped = !0, this._proxy = void 0, this.simulation = null, this.doMove = sn((function(y) {
|
|
4700
4700
|
this.move(y);
|
|
4701
4701
|
}), "The interaction.doMove() method has been renamed to interaction.move()"), this.coords = { start: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, prev: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, cur: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, delta: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, velocity: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 } }, this._id = Pi++, this._scopeFire = l, this.pointerType = i;
|
|
4702
4702
|
var u = this;
|
|
@@ -4725,9 +4725,9 @@ function kd() {
|
|
|
4725
4725
|
} }, { key: "pointerMove", value: function(t, o, i) {
|
|
4726
4726
|
this.simulation || this.modification && this.modification.endResult || this.updatePointer(t, o, i, !1);
|
|
4727
4727
|
var l, u, f = this.coords.cur.page.x === this.coords.prev.page.x && this.coords.cur.page.y === this.coords.prev.page.y && this.coords.cur.client.x === this.coords.prev.client.x && this.coords.cur.client.y === this.coords.prev.client.y;
|
|
4728
|
-
this.pointerIsDown && !this.pointerWasMoved && (l = this.coords.cur.client.x - this.coords.start.client.x, u = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved =
|
|
4728
|
+
this.pointerIsDown && !this.pointerWasMoved && (l = this.coords.cur.client.x - this.coords.start.client.x, u = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = Et(l, u) > this.pointerMoveTolerance);
|
|
4729
4729
|
var h, g, w, y = this.getPointerIndex(t), S = { pointer: t, pointerIndex: y, pointerInfo: this.pointers[y], event: o, type: "move", eventTarget: i, dx: l, dy: u, duplicate: f, interaction: this };
|
|
4730
|
-
f || (h = this.coords.velocity, g = this.coords.delta, w = Math.max(g.timeStamp / 1e3, 1e-3), h.page.x = g.page.x / w, h.page.y = g.page.y / w, h.client.x = g.client.x / w, h.client.y = g.client.y / w, h.timeStamp = w), this._scopeFire("interactions:move", S), f || this.simulation || (this.interacting() && (S.type = null, this.move(S)), this.pointerWasMoved &&
|
|
4730
|
+
f || (h = this.coords.velocity, g = this.coords.delta, w = Math.max(g.timeStamp / 1e3, 1e-3), h.page.x = g.page.x / w, h.page.y = g.page.y / w, h.client.x = g.client.x / w, h.client.y = g.client.y / w, h.timeStamp = w), this._scopeFire("interactions:move", S), f || this.simulation || (this.interacting() && (S.type = null, this.move(S)), this.pointerWasMoved && Yt(this.coords.prev, this.coords.cur));
|
|
4731
4731
|
} }, { key: "move", value: function(t) {
|
|
4732
4732
|
t && t.event || gt(this.coords.delta), (t = ee({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, t || {})).phase = "move", this._doPhase(t);
|
|
4733
4733
|
} }, { key: "pointerUp", value: function(t, o, i, l) {
|
|
@@ -4757,7 +4757,7 @@ function kd() {
|
|
|
4757
4757
|
var u, f, h, g = Ae(t), w = this.getPointerIndex(t), y = this.pointers[w];
|
|
4758
4758
|
return l = l !== !1 && (l || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new Ii(g, t, o, null, null), w = this.pointers.length, this.pointers.push(y)), Ve(this.coords.cur, this.pointers.map((function(S) {
|
|
4759
4759
|
return S.pointer;
|
|
4760
|
-
})), this._now()), u = this.coords.delta, f = this.coords.prev, h = this.coords.cur, u.page.x = h.page.x - f.page.x, u.page.y = h.page.y - f.page.y, u.client.x = h.client.x - f.client.x, u.client.y = h.client.y - f.client.y, u.timeStamp = h.timeStamp - f.timeStamp, l && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = i,
|
|
4760
|
+
})), this._now()), u = this.coords.delta, f = this.coords.prev, h = this.coords.cur, u.page.x = h.page.x - f.page.x, u.page.y = h.page.y - f.page.y, u.client.x = h.client.x - f.client.x, u.client.y = h.client.y - f.client.y, u.timeStamp = h.timeStamp - f.timeStamp, l && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = i, Wt(this.downPointer, t), this.interacting() || (Yt(this.coords.start, this.coords.cur), Yt(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, i), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: i, down: l, pointerInfo: y, pointerIndex: w, interaction: this }), w;
|
|
4761
4761
|
} }, { key: "removePointer", value: function(t, o) {
|
|
4762
4762
|
var i = this.getPointerIndex(t);
|
|
4763
4763
|
if (i !== -1) {
|
|
@@ -4775,7 +4775,7 @@ function kd() {
|
|
|
4775
4775
|
(o = this.interactable) == null || o.fire(t), (!this.prevEvent || t.timeStamp >= this.prevEvent.timeStamp) && (this.prevEvent = t);
|
|
4776
4776
|
} }, { key: "_doPhase", value: function(t) {
|
|
4777
4777
|
var o = t.event, i = t.phase, l = t.preEnd, u = t.type, f = this.rect;
|
|
4778
|
-
if (f && i === "move" && (
|
|
4778
|
+
if (f && i === "move" && (jt(this.edges, f, this.coords.delta[this.interactable.options.deltaSource]), f.width = f.right - f.left, f.height = f.bottom - f.top), this._scopeFire("interactions:before-action-".concat(i), t) === !1) return !1;
|
|
4779
4779
|
var h = t.iEvent = this._createPreparedEvent(o, i, l, u);
|
|
4780
4780
|
return this._scopeFire("interactions:action-".concat(i), t), i === "start" && (this.prevEvent = h), this._fireEvent(h), this._scopeFire("interactions:after-action-".concat(i), t), !0;
|
|
4781
4781
|
} }, { key: "_now", value: function() {
|
|
@@ -4790,7 +4790,7 @@ function kd() {
|
|
|
4790
4790
|
return !(!o.offset.pending.x && !o.offset.pending.y);
|
|
4791
4791
|
})(n)) return !1;
|
|
4792
4792
|
var t = n.offset.pending;
|
|
4793
|
-
return ao(n.coords.cur, t), ao(n.coords.delta, t),
|
|
4793
|
+
return ao(n.coords.cur, t), ao(n.coords.delta, t), jt(n.edges, n.rect, t), t.x = 0, t.y = 0, !0;
|
|
4794
4794
|
}
|
|
4795
4795
|
function Ai(n) {
|
|
4796
4796
|
var t = n.x, o = n.y;
|
|
@@ -4820,9 +4820,9 @@ function kd() {
|
|
|
4820
4820
|
d(this, n), this.active = !1, this.isModified = !1, this.smoothEnd = !1, this.allowResume = !1, this.modification = void 0, this.modifierCount = 0, this.modifierArg = void 0, this.startCoords = void 0, this.t0 = 0, this.v0 = 0, this.te = 0, this.targetOffset = void 0, this.modifiedOffset = void 0, this.currentOffset = void 0, this.lambda_v0 = 0, this.one_ve_v0 = 0, this.timeout = void 0, this.interaction = void 0, this.interaction = t;
|
|
4821
4821
|
}
|
|
4822
4822
|
return m(n, [{ key: "start", value: function(t) {
|
|
4823
|
-
var o = this.interaction, i =
|
|
4823
|
+
var o = this.interaction, i = Tn(o);
|
|
4824
4824
|
if (!i || !i.enabled) return !1;
|
|
4825
|
-
var l = o.coords.velocity.client, u =
|
|
4825
|
+
var l = o.coords.velocity.client, u = Et(l.x, l.y), f = this.modification || (this.modification = new oo(o));
|
|
4826
4826
|
if (f.copyFrom(o.modification), this.t0 = o._now(), this.allowResume = i.allowResume, this.v0 = u, this.currentOffset = { x: 0, y: 0 }, this.startCoords = o.coords.cur.page, this.modifierArg = f.fillArg({ pageCoords: this.startCoords, preEnd: !0, phase: "inertiastart" }), this.t0 - o.coords.cur.timeStamp < 50 && u > i.minSpeed && u > i.endSpeed) this.startInertia();
|
|
4827
4827
|
else {
|
|
4828
4828
|
if (f.result = f.setAll(this.modifierArg), !f.result.changed) return !1;
|
|
@@ -4830,7 +4830,7 @@ function kd() {
|
|
|
4830
4830
|
}
|
|
4831
4831
|
return o.modification.result.rect = null, o.offsetBy(this.targetOffset), o._doPhase({ interaction: o, event: t, phase: "inertiastart" }), o.offsetBy({ x: -this.targetOffset.x, y: -this.targetOffset.y }), o.modification.result.rect = null, this.active = !0, o.simulation = this, !0;
|
|
4832
4832
|
} }, { key: "startInertia", value: function() {
|
|
4833
|
-
var t = this, o = this.interaction.coords.velocity.client, i =
|
|
4833
|
+
var t = this, o = this.interaction.coords.velocity.client, i = Tn(this.interaction), l = i.resistance, u = -Math.log(i.endSpeed / this.v0) / l;
|
|
4834
4834
|
this.targetOffset = { x: (o.x - u) / l, y: (o.y - u) / l }, this.te = u, this.lambda_v0 = l / this.v0, this.one_ve_v0 = 1 - i.endSpeed / this.v0;
|
|
4835
4835
|
var f = this.modification, h = this.modifierArg;
|
|
4836
4836
|
h.pageCoords = { x: this.startCoords.x + this.targetOffset.x, y: this.startCoords.y + this.targetOffset.y }, f.result = f.setAll(h), f.result.changed && (this.isModified = !0, this.modifiedOffset = { x: this.targetOffset.x + f.result.delta.x, y: this.targetOffset.y + f.result.delta.y }), this.onNextFrame((function() {
|
|
@@ -4843,11 +4843,11 @@ function kd() {
|
|
|
4843
4843
|
}));
|
|
4844
4844
|
} }, { key: "onNextFrame", value: function(t) {
|
|
4845
4845
|
var o = this;
|
|
4846
|
-
this.timeout =
|
|
4846
|
+
this.timeout = Mt.request((function() {
|
|
4847
4847
|
o.active && t();
|
|
4848
4848
|
}));
|
|
4849
4849
|
} }, { key: "inertiaTick", value: function() {
|
|
4850
|
-
var t, o, i, l, u, f, h, g = this, w = this.interaction, y =
|
|
4850
|
+
var t, o, i, l, u, f, h, g = this, w = this.interaction, y = Tn(w).resistance, S = (w._now() - this.t0) / 1e3;
|
|
4851
4851
|
if (S < this.te) {
|
|
4852
4852
|
var I, F = 1 - (Math.exp(-y * S) - this.lambda_v0) / this.one_ve_v0;
|
|
4853
4853
|
this.isModified ? (t = 0, o = 0, i = this.targetOffset.x, l = this.targetOffset.y, u = this.modifiedOffset.x, f = this.modifiedOffset.y, I = { x: hr(h = F, t, i, u), y: hr(h, o, l, f) }) : I = { x: this.targetOffset.x * F, y: this.targetOffset.y * F };
|
|
@@ -4857,7 +4857,7 @@ function kd() {
|
|
|
4857
4857
|
}));
|
|
4858
4858
|
} else w.offsetBy({ x: this.modifiedOffset.x - this.currentOffset.x, y: this.modifiedOffset.y - this.currentOffset.y }), this.end();
|
|
4859
4859
|
} }, { key: "smoothEndTick", value: function() {
|
|
4860
|
-
var t = this, o = this.interaction, i = o._now() - this.t0, l =
|
|
4860
|
+
var t = this, o = this.interaction, i = o._now() - this.t0, l = Tn(o).smoothEndDuration;
|
|
4861
4861
|
if (i < l) {
|
|
4862
4862
|
var u = { x: mr(i, 0, this.targetOffset.x, l), y: mr(i, 0, this.targetOffset.y, l) }, f = { x: u.x - this.currentOffset.x, y: u.y - this.currentOffset.y };
|
|
4863
4863
|
this.currentOffset.x += f.x, this.currentOffset.y += f.y, o.offsetBy(f), o.move({ skipModifiers: this.modifierCount }), this.onNextFrame((function() {
|
|
@@ -4866,14 +4866,14 @@ function kd() {
|
|
|
4866
4866
|
} else o.offsetBy({ x: this.targetOffset.x - this.currentOffset.x, y: this.targetOffset.y - this.currentOffset.y }), this.end();
|
|
4867
4867
|
} }, { key: "resume", value: function(t) {
|
|
4868
4868
|
var o = t.pointer, i = t.event, l = t.eventTarget, u = this.interaction;
|
|
4869
|
-
u.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), u.updatePointer(o, i, l, !0), u._doPhase({ interaction: u, event: i, phase: "resume" }),
|
|
4869
|
+
u.offsetBy({ x: -this.currentOffset.x, y: -this.currentOffset.y }), u.updatePointer(o, i, l, !0), u._doPhase({ interaction: u, event: i, phase: "resume" }), Yt(u.coords.prev, u.coords.cur), this.stop();
|
|
4870
4870
|
} }, { key: "end", value: function() {
|
|
4871
4871
|
this.interaction.move(), this.interaction.end(), this.stop();
|
|
4872
4872
|
} }, { key: "stop", value: function() {
|
|
4873
|
-
this.active = this.smoothEnd = !1, this.interaction.simulation = null,
|
|
4873
|
+
this.active = this.smoothEnd = !1, this.interaction.simulation = null, Mt.cancel(this.timeout);
|
|
4874
4874
|
} }]), n;
|
|
4875
4875
|
})();
|
|
4876
|
-
function
|
|
4876
|
+
function Tn(n) {
|
|
4877
4877
|
var t = n.interactable, o = n.prepared;
|
|
4878
4878
|
return t && t.options && o.name && t.options[o.name].inertia;
|
|
4879
4879
|
}
|
|
@@ -4903,7 +4903,7 @@ function kd() {
|
|
|
4903
4903
|
t.stop(n), t.start(n, n.interaction.coords.cur.page), t.applyToInteraction(n);
|
|
4904
4904
|
}, "interactions:before-action-inertiastart": function(n) {
|
|
4905
4905
|
return n.interaction.modification.setAndApply(n);
|
|
4906
|
-
}, "interactions:action-resume":
|
|
4906
|
+
}, "interactions:action-resume": ln, "interactions:action-inertiastart": ln, "interactions:after-action-inertiastart": function(n) {
|
|
4907
4907
|
return n.interaction.modification.restoreInteractionCoords(n);
|
|
4908
4908
|
}, "interactions:after-action-resume": function(n) {
|
|
4909
4909
|
return n.interaction.modification.restoreInteractionCoords(n);
|
|
@@ -4932,7 +4932,7 @@ function kd() {
|
|
|
4932
4932
|
(o = this.types[t.type]) && vr(t, o), !t.propagationStopped && i && (o = i[t.type]) && vr(t, o);
|
|
4933
4933
|
} }, { key: "on", value: function(t, o) {
|
|
4934
4934
|
var i = vt(t, o);
|
|
4935
|
-
for (t in i) this.types[t] =
|
|
4935
|
+
for (t in i) this.types[t] = Xt(this.types[t] || [], i[t]);
|
|
4936
4936
|
} }, { key: "off", value: function(t, o) {
|
|
4937
4937
|
var i = vt(t, o);
|
|
4938
4938
|
for (t in i) {
|
|
@@ -4947,7 +4947,7 @@ function kd() {
|
|
|
4947
4947
|
} }]), n;
|
|
4948
4948
|
})(), ji = (function() {
|
|
4949
4949
|
function n(t) {
|
|
4950
|
-
d(this, n), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = t,
|
|
4950
|
+
d(this, n), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = t, Wt(this, t);
|
|
4951
4951
|
}
|
|
4952
4952
|
return m(n, [{ key: "preventOriginalDefault", value: function() {
|
|
4953
4953
|
this.originalEvent.preventDefault();
|
|
@@ -4957,15 +4957,15 @@ function kd() {
|
|
|
4957
4957
|
this.originalEvent.stopImmediatePropagation();
|
|
4958
4958
|
} }]), n;
|
|
4959
4959
|
})();
|
|
4960
|
-
function
|
|
4960
|
+
function un(n) {
|
|
4961
4961
|
return C.object(n) ? { capture: !!n.capture, passive: !!n.passive } : { capture: !!n, passive: !1 };
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4963
|
+
function zn(n, t) {
|
|
4964
4964
|
return n === t || (typeof n == "boolean" ? !!t.capture === n && !t.passive : !!n.capture == !!t.capture && !!n.passive == !!t.passive);
|
|
4965
4965
|
}
|
|
4966
4966
|
var Fi = { id: "events", install: function(n) {
|
|
4967
4967
|
var t, o = [], i = {}, l = [], u = { add: f, remove: h, addDelegate: function(y, S, I, F, L) {
|
|
4968
|
-
var H =
|
|
4968
|
+
var H = un(L);
|
|
4969
4969
|
if (!i[I]) {
|
|
4970
4970
|
i[I] = [];
|
|
4971
4971
|
for (var oe = 0; oe < l.length; oe++) {
|
|
@@ -4973,19 +4973,19 @@ function kd() {
|
|
|
4973
4973
|
f(Z, I, g), f(Z, I, w, !0);
|
|
4974
4974
|
}
|
|
4975
4975
|
}
|
|
4976
|
-
var se = i[I], be =
|
|
4976
|
+
var se = i[I], be = an(se, (function(Me) {
|
|
4977
4977
|
return Me.selector === y && Me.context === S;
|
|
4978
4978
|
}));
|
|
4979
4979
|
be || (be = { selector: y, context: S, listeners: [] }, se.push(be)), be.listeners.push({ func: F, options: H });
|
|
4980
4980
|
}, removeDelegate: function(y, S, I, F, L) {
|
|
4981
|
-
var H, oe =
|
|
4981
|
+
var H, oe = un(L), Z = i[I], se = !1;
|
|
4982
4982
|
if (Z)
|
|
4983
4983
|
for (H = Z.length - 1; H >= 0; H--) {
|
|
4984
4984
|
var be = Z[H];
|
|
4985
4985
|
if (be.selector === y && be.context === S) {
|
|
4986
4986
|
for (var Me = be.listeners, pe = Me.length - 1; pe >= 0; pe--) {
|
|
4987
4987
|
var ke = Me[pe];
|
|
4988
|
-
if (ke.func === F &&
|
|
4988
|
+
if (ke.func === F && zn(ke.options, oe)) {
|
|
4989
4989
|
Me.splice(pe, 1), Me.length || (Z.splice(H, 1), h(S, I, g), h(S, I, w, !0)), se = !0;
|
|
4990
4990
|
break;
|
|
4991
4991
|
}
|
|
@@ -4996,11 +4996,11 @@ function kd() {
|
|
|
4996
4996
|
}, delegateListener: g, delegateUseCapture: w, delegatedEvents: i, documents: l, targets: o, supportsOptions: !1, supportsPassive: !1 };
|
|
4997
4997
|
function f(y, S, I, F) {
|
|
4998
4998
|
if (y.addEventListener) {
|
|
4999
|
-
var L =
|
|
4999
|
+
var L = un(F), H = an(o, (function(oe) {
|
|
5000
5000
|
return oe.eventTarget === y;
|
|
5001
5001
|
}));
|
|
5002
|
-
H || (H = { eventTarget: y, events: {} }, o.push(H)), H.events[S] || (H.events[S] = []),
|
|
5003
|
-
return oe.func === I &&
|
|
5002
|
+
H || (H = { eventTarget: y, events: {} }, o.push(H)), H.events[S] || (H.events[S] = []), an(H.events[S], (function(oe) {
|
|
5003
|
+
return oe.func === I && zn(oe.options, L);
|
|
5004
5004
|
})) || (y.addEventListener(S, I, u.supportsOptions ? L : L.capture), H.events[S].push({ func: I, options: L }));
|
|
5005
5005
|
}
|
|
5006
5006
|
}
|
|
@@ -5019,9 +5019,9 @@ function kd() {
|
|
|
5019
5019
|
}
|
|
5020
5020
|
return;
|
|
5021
5021
|
}
|
|
5022
|
-
for (var Me =
|
|
5022
|
+
for (var Me = un(F), pe = 0; pe < Z.length; pe++) {
|
|
5023
5023
|
var ke = Z[pe];
|
|
5024
|
-
if (ke.func === I &&
|
|
5024
|
+
if (ke.func === I && zn(ke.options, Me)) {
|
|
5025
5025
|
y.removeEventListener(S, I, u.supportsOptions ? Me : Me.capture), Z.splice(pe, 1), Z.length === 0 && (delete H.events[S], oe = !0);
|
|
5026
5026
|
break;
|
|
5027
5027
|
}
|
|
@@ -5032,7 +5032,7 @@ function kd() {
|
|
|
5032
5032
|
}
|
|
5033
5033
|
}
|
|
5034
5034
|
function g(y, S) {
|
|
5035
|
-
for (var I =
|
|
5035
|
+
for (var I = un(S), F = new ji(y), L = i[y.type], H = Tt(y)[0], oe = H; C.element(oe); ) {
|
|
5036
5036
|
for (var Z = 0; Z < L.length; Z++) {
|
|
5037
5037
|
var se = L[Z], be = se.selector, Me = se.context;
|
|
5038
5038
|
if (je(oe, be) && de(Me, H) && de(Me, oe)) {
|
|
@@ -5040,7 +5040,7 @@ function kd() {
|
|
|
5040
5040
|
F.currentTarget = oe;
|
|
5041
5041
|
for (var ke = 0; ke < pe.length; ke++) {
|
|
5042
5042
|
var Je = pe[ke];
|
|
5043
|
-
|
|
5043
|
+
zn(Je.options, I) && Je.func(F);
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
5046
|
}
|
|
@@ -5114,7 +5114,7 @@ function kd() {
|
|
|
5114
5114
|
var Wi = io, so = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
|
|
5115
5115
|
function br(n, t) {
|
|
5116
5116
|
return function(o) {
|
|
5117
|
-
var i = t.interactions.list, l =
|
|
5117
|
+
var i = t.interactions.list, l = Ct(o), u = Tt(o), f = u[0], h = u[1], g = [];
|
|
5118
5118
|
if (/^touch/.test(o.type)) {
|
|
5119
5119
|
t.prevTouchTime = t.now();
|
|
5120
5120
|
for (var w = 0, y = o.changedTouches; w < y.length; w++) {
|
|
@@ -5199,9 +5199,9 @@ function kd() {
|
|
|
5199
5199
|
var l = t.interactions.list[i];
|
|
5200
5200
|
l.interactable === o && (l.stop(), t.fire("interactions:destroy", { interaction: l }), l.destroy(), t.interactions.list.length > 2 && t.interactions.list.splice(i, 1));
|
|
5201
5201
|
}
|
|
5202
|
-
} }, onDocSignal: lo, doOnInteractions: br, methodNames: so }, Hi = Ui,
|
|
5202
|
+
} }, onDocSignal: lo, doOnInteractions: br, methodNames: so }, Hi = Ui, It = (function(n) {
|
|
5203
5203
|
return n[n.On = 0] = "On", n[n.Off = 1] = "Off", n;
|
|
5204
|
-
})(
|
|
5204
|
+
})(It || {}), Vi = (function() {
|
|
5205
5205
|
function n(t, o, i, l) {
|
|
5206
5206
|
d(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new gr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = t, this._context = o.context || i, this._win = D(ie(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = l, this.set(o);
|
|
5207
5207
|
}
|
|
@@ -5211,14 +5211,14 @@ function kd() {
|
|
|
5211
5211
|
return C.func(o.onstart) && this.on("".concat(t, "start"), o.onstart), C.func(o.onmove) && this.on("".concat(t, "move"), o.onmove), C.func(o.onend) && this.on("".concat(t, "end"), o.onend), C.func(o.oninertiastart) && this.on("".concat(t, "inertiastart"), o.oninertiastart), this;
|
|
5212
5212
|
} }, { key: "updatePerActionListeners", value: function(t, o, i) {
|
|
5213
5213
|
var l, u = this, f = (l = this._actions.map[t]) == null ? void 0 : l.filterEventType, h = function(g) {
|
|
5214
|
-
return (f == null || f(g)) &&
|
|
5214
|
+
return (f == null || f(g)) && En(g, u._actions);
|
|
5215
5215
|
};
|
|
5216
|
-
(C.array(o) || C.object(o)) && this._onOff(
|
|
5216
|
+
(C.array(o) || C.object(o)) && this._onOff(It.Off, t, o, void 0, h), (C.array(i) || C.object(i)) && this._onOff(It.On, t, i, void 0, h);
|
|
5217
5217
|
} }, { key: "setPerAction", value: function(t, o) {
|
|
5218
5218
|
var i = this._defaults;
|
|
5219
5219
|
for (var l in o) {
|
|
5220
5220
|
var u = l, f = this.options[t], h = o[u];
|
|
5221
|
-
u === "listeners" && this.updatePerActionListeners(t, f.listeners, h), C.array(h) ? f[u] =
|
|
5221
|
+
u === "listeners" && this.updatePerActionListeners(t, f.listeners, h), C.array(h) ? f[u] = Qt(h) : C.plainObject(h) ? (f[u] = ee(f[u] || {}, Zt(h)), C.object(i.perAction[u]) && "enabled" in i.perAction[u] && (f[u].enabled = h.enabled !== !1)) : C.bool(h) && C.object(i.perAction[u]) ? f[u].enabled = h : f[u] = h;
|
|
5222
5222
|
}
|
|
5223
5223
|
} }, { key: "getRect", value: function(t) {
|
|
5224
5224
|
return t = t || (C.element(this.target) ? this.target : null), C.string(this.target) && (t = t || this._context.querySelector(this.target)), Pe(t);
|
|
@@ -5260,17 +5260,17 @@ function kd() {
|
|
|
5260
5260
|
h === "wheel" && (h = Ie.wheelEvent);
|
|
5261
5261
|
for (var g = 0, w = f[h]; g < w.length; g++) {
|
|
5262
5262
|
var y = w[g];
|
|
5263
|
-
|
|
5263
|
+
En(h, this._actions) ? this.events[t === It.On ? "on" : "off"](h, y) : C.string(this.target) ? this._scopeEvents[t === It.On ? "addDelegate" : "removeDelegate"](this.target, this._context, h, y, l) : this._scopeEvents[t === It.On ? "add" : "remove"](this.target, h, y, l);
|
|
5264
5264
|
}
|
|
5265
5265
|
}
|
|
5266
5266
|
return this;
|
|
5267
5267
|
} }, { key: "on", value: function(t, o, i) {
|
|
5268
|
-
return this._onOff(
|
|
5268
|
+
return this._onOff(It.On, t, o, i);
|
|
5269
5269
|
} }, { key: "off", value: function(t, o, i) {
|
|
5270
|
-
return this._onOff(
|
|
5270
|
+
return this._onOff(It.Off, t, o, i);
|
|
5271
5271
|
} }, { key: "set", value: function(t) {
|
|
5272
5272
|
var o = this._defaults;
|
|
5273
|
-
for (var i in C.object(t) || (t = {}), this.options =
|
|
5273
|
+
for (var i in C.object(t) || (t = {}), this.options = Zt(o.base), this._actions.methodDict) {
|
|
5274
5274
|
var l = i, u = this._actions.methodDict[l];
|
|
5275
5275
|
this.options[l] = {}, this.setPerAction(l, ee(ee({}, o.perAction), o.actions[l])), this[u](t[l]);
|
|
5276
5276
|
}
|
|
@@ -5300,7 +5300,7 @@ function kd() {
|
|
|
5300
5300
|
return this.scope.addDocument(i._doc), this.list.push(i), C.string(t) ? (this.selectorMap[t] || (this.selectorMap[t] = []), this.selectorMap[t].push(i)) : (i.target[this.scope.id] || Object.defineProperty(t, this.scope.id, { value: [], configurable: !0 }), t[this.scope.id].push(i)), this.scope.fire("interactable:new", { target: t, options: o, interactable: i, win: this.scope._win }), i;
|
|
5301
5301
|
} }, { key: "getExisting", value: function(t, o) {
|
|
5302
5302
|
var i = o && o.context || this.scope.document, l = C.string(t), u = l ? this.selectorMap[t] : t[this.scope.id];
|
|
5303
|
-
if (u) return
|
|
5303
|
+
if (u) return an(u, (function(f) {
|
|
5304
5304
|
return f._context === i && (l || f.inContext(t));
|
|
5305
5305
|
}));
|
|
5306
5306
|
} }, { key: "forEachMatch", value: function(t, o) {
|
|
@@ -5312,7 +5312,7 @@ function kd() {
|
|
|
5312
5312
|
})(), qi = (function() {
|
|
5313
5313
|
function n() {
|
|
5314
5314
|
var t = this;
|
|
5315
|
-
d(this, n), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = Ie, this.defaults =
|
|
5315
|
+
d(this, n), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = Ie, this.defaults = Zt(ur), this.Eventable = gr, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = (function(i) {
|
|
5316
5316
|
var l = function u(f, h) {
|
|
5317
5317
|
var g = i.interactables.getExisting(f, h);
|
|
5318
5318
|
return g || ((g = i.interactables.new(f, h)).events.global = u.globalEvents), g;
|
|
@@ -5321,7 +5321,7 @@ function kd() {
|
|
|
5321
5321
|
return this.scope.usePlugin(u, f), this;
|
|
5322
5322
|
}, l.isSet = function(u, f) {
|
|
5323
5323
|
return !!this.scope.interactables.get(u, f && f.context);
|
|
5324
|
-
}, l.on =
|
|
5324
|
+
}, l.on = sn((function(u, f, h) {
|
|
5325
5325
|
if (C.string(u) && u.search(" ") !== -1 && (u = u.trim().split(/ +/)), C.array(u)) {
|
|
5326
5326
|
for (var g = 0, w = u; g < w.length; g++) {
|
|
5327
5327
|
var y = w[g];
|
|
@@ -5333,8 +5333,8 @@ function kd() {
|
|
|
5333
5333
|
for (var S in u) this.on(S, u[S], f);
|
|
5334
5334
|
return this;
|
|
5335
5335
|
}
|
|
5336
|
-
return
|
|
5337
|
-
}), "The interact.on() method is being deprecated"), l.off =
|
|
5336
|
+
return En(u, this.scope.actions) ? this.globalEvents[u] ? this.globalEvents[u].push(f) : this.globalEvents[u] = [f] : this.scope.events.add(this.scope.document, u, f, { options: h }), this;
|
|
5337
|
+
}), "The interact.on() method is being deprecated"), l.off = sn((function(u, f, h) {
|
|
5338
5338
|
if (C.string(u) && u.search(" ") !== -1 && (u = u.trim().split(/ +/)), C.array(u)) {
|
|
5339
5339
|
for (var g = 0, w = u; g < w.length; g++) {
|
|
5340
5340
|
var y = w[g];
|
|
@@ -5347,7 +5347,7 @@ function kd() {
|
|
|
5347
5347
|
return this;
|
|
5348
5348
|
}
|
|
5349
5349
|
var I;
|
|
5350
|
-
return
|
|
5350
|
+
return En(u, this.scope.actions) ? u in this.globalEvents && (I = this.globalEvents[u].indexOf(f)) !== -1 && this.globalEvents[u].splice(I, 1) : this.scope.events.remove(this.scope.document, u, f, h), this;
|
|
5351
5351
|
}), "The interact.off() method is being deprecated"), l.debug = function() {
|
|
5352
5352
|
return this.scope;
|
|
5353
5353
|
}, l.supportsTouch = function() {
|
|
@@ -5394,7 +5394,7 @@ function kd() {
|
|
|
5394
5394
|
}
|
|
5395
5395
|
} }, { key: "init", value: function(t) {
|
|
5396
5396
|
return this.isInitialized ? this : (function(o, i) {
|
|
5397
|
-
return o.isInitialized = !0, C.window(i) && P(i), ve.init(i), Ie.init(i),
|
|
5397
|
+
return o.isInitialized = !0, C.window(i) && P(i), ve.init(i), Ie.init(i), Mt.init(i), o.window = i, o.document = i.document, o.usePlugin(Hi), o.usePlugin(Fi), o;
|
|
5398
5398
|
})(this, t);
|
|
5399
5399
|
} }, { key: "pluginIsInstalled", value: function(t) {
|
|
5400
5400
|
var o = t.id;
|
|
@@ -5467,7 +5467,7 @@ function kd() {
|
|
|
5467
5467
|
var t = n.state, o = n.rect, i = n.coords, l = t.linkedEdges, u = ee({}, i), f = t.equalDelta ? Zi : es;
|
|
5468
5468
|
if (ee(n.edges, l), f(t, t.xIsPrimaryAxis, i, o), !t.subModification) return null;
|
|
5469
5469
|
var h = ee({}, o);
|
|
5470
|
-
|
|
5470
|
+
jt(l, h, { x: i.x - u.x, y: i.y - u.y });
|
|
5471
5471
|
var g = t.subModification.setAll(s(s({}, n), {}, { rect: h, edges: l, pageCoords: i, prevCoords: i, prevRect: h })), w = g.delta;
|
|
5472
5472
|
return g.changed && (f(t, Math.abs(w.x) > Math.abs(w.y), g.coords, g.rect), ee(i, g.coords)), g.eventProps;
|
|
5473
5473
|
}, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
|
|
@@ -5485,17 +5485,17 @@ function kd() {
|
|
|
5485
5485
|
o.x = u.x + (w - l.width) * h.x;
|
|
5486
5486
|
}
|
|
5487
5487
|
}
|
|
5488
|
-
var ts =
|
|
5488
|
+
var ts = Ot(Ji, "aspectRatio"), kr = function() {
|
|
5489
5489
|
};
|
|
5490
5490
|
kr._defaults = {};
|
|
5491
|
-
var
|
|
5492
|
-
function
|
|
5491
|
+
var Mn = kr;
|
|
5492
|
+
function Ht(n, t, o) {
|
|
5493
5493
|
return C.func(n) ? Ye(n, t.interactable, t.element, [o.x, o.y, t]) : Ye(n, t.interactable, t.element);
|
|
5494
5494
|
}
|
|
5495
|
-
var
|
|
5495
|
+
var On = { start: function(n) {
|
|
5496
5496
|
var t = n.rect, o = n.startOffset, i = n.state, l = n.interaction, u = n.pageCoords, f = i.options, h = f.elementRect, g = ee({ left: 0, top: 0, right: 0, bottom: 0 }, f.offset || {});
|
|
5497
5497
|
if (t && h) {
|
|
5498
|
-
var w =
|
|
5498
|
+
var w = Ht(f.restriction, l, u);
|
|
5499
5499
|
if (w) {
|
|
5500
5500
|
var y = w.right - w.left - t.width, S = w.bottom - w.top - t.height;
|
|
5501
5501
|
y < 0 && (g.left += y, g.right += y), S < 0 && (g.top += S, g.bottom += S);
|
|
@@ -5504,14 +5504,14 @@ function kd() {
|
|
|
5504
5504
|
}
|
|
5505
5505
|
i.offset = g;
|
|
5506
5506
|
}, set: function(n) {
|
|
5507
|
-
var t = n.coords, o = n.interaction, i = n.state, l = i.options, u = i.offset, f =
|
|
5507
|
+
var t = n.coords, o = n.interaction, i = n.state, l = i.options, u = i.offset, f = Ht(l.restriction, o, t);
|
|
5508
5508
|
if (f) {
|
|
5509
5509
|
var h = (function(g) {
|
|
5510
5510
|
return !g || "left" in g && "top" in g || ((g = ee({}, g)).left = g.x || 0, g.top = g.y || 0, g.right = g.right || g.left + g.width, g.bottom = g.bottom || g.top + g.height), g;
|
|
5511
5511
|
})(f);
|
|
5512
5512
|
t.x = Math.max(Math.min(h.right - u.right, t.x), h.left + u.left), t.y = Math.max(Math.min(h.bottom - u.bottom, t.y), h.top + u.top);
|
|
5513
5513
|
}
|
|
5514
|
-
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, ns =
|
|
5514
|
+
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, ns = Ot(On, "restrict"), Sr = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, Er = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
|
|
5515
5515
|
function Cr(n, t) {
|
|
5516
5516
|
for (var o = 0, i = ["top", "left", "bottom", "right"]; o < i.length; o++) {
|
|
5517
5517
|
var l = i[o];
|
|
@@ -5519,29 +5519,29 @@ function kd() {
|
|
|
5519
5519
|
}
|
|
5520
5520
|
return n;
|
|
5521
5521
|
}
|
|
5522
|
-
var
|
|
5522
|
+
var cn = { noInner: Sr, noOuter: Er, start: function(n) {
|
|
5523
5523
|
var t, o = n.interaction, i = n.startOffset, l = n.state, u = l.options;
|
|
5524
|
-
u && (t = nt(
|
|
5524
|
+
u && (t = nt(Ht(u.offset, o, o.coords.start.page))), t = t || { x: 0, y: 0 }, l.offset = { top: t.y + i.top, left: t.x + i.left, bottom: t.y - i.bottom, right: t.x - i.right };
|
|
5525
5525
|
}, set: function(n) {
|
|
5526
5526
|
var t = n.coords, o = n.edges, i = n.interaction, l = n.state, u = l.offset, f = l.options;
|
|
5527
5527
|
if (o) {
|
|
5528
|
-
var h = ee({}, t), g =
|
|
5528
|
+
var h = ee({}, t), g = Ht(f.inner, i, h) || {}, w = Ht(f.outer, i, h) || {};
|
|
5529
5529
|
Cr(g, Sr), Cr(w, Er), o.top ? t.y = Math.min(Math.max(w.top + u.top, h.y), g.top + u.top) : o.bottom && (t.y = Math.max(Math.min(w.bottom + u.bottom, h.y), g.bottom + u.bottom)), o.left ? t.x = Math.min(Math.max(w.left + u.left, h.x), g.left + u.left) : o.right && (t.x = Math.max(Math.min(w.right + u.right, h.x), g.right + u.right));
|
|
5530
5530
|
}
|
|
5531
|
-
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, os =
|
|
5531
|
+
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, os = Ot(cn, "restrictEdges"), rs = ee({ get elementRect() {
|
|
5532
5532
|
return { top: 0, left: 0, bottom: 1, right: 1 };
|
|
5533
5533
|
}, set elementRect(n) {
|
|
5534
|
-
} },
|
|
5535
|
-
return
|
|
5534
|
+
} }, On.defaults), as = Ot({ start: On.start, set: On.set, defaults: rs }, "restrictRect"), is = { width: -1 / 0, height: -1 / 0 }, ss = { width: 1 / 0, height: 1 / 0 }, ls = Ot({ start: function(n) {
|
|
5535
|
+
return cn.start(n);
|
|
5536
5536
|
}, set: function(n) {
|
|
5537
5537
|
var t = n.interaction, o = n.state, i = n.rect, l = n.edges, u = o.options;
|
|
5538
5538
|
if (l) {
|
|
5539
|
-
var f =
|
|
5540
|
-
o.options = { endOnly: u.endOnly, inner: ee({},
|
|
5539
|
+
var f = Gt(Ht(u.min, t, n.coords)) || is, h = Gt(Ht(u.max, t, n.coords)) || ss;
|
|
5540
|
+
o.options = { endOnly: u.endOnly, inner: ee({}, cn.noInner), outer: ee({}, cn.noOuter) }, l.top ? (o.options.inner.top = i.bottom - f.height, o.options.outer.top = i.bottom - h.height) : l.bottom && (o.options.inner.bottom = i.top + f.height, o.options.outer.bottom = i.top + h.height), l.left ? (o.options.inner.left = i.right - f.width, o.options.outer.left = i.right - h.width) : l.right && (o.options.inner.right = i.left + f.width, o.options.outer.right = i.left + h.width), cn.set(n), o.options = u;
|
|
5541
5541
|
}
|
|
5542
5542
|
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), uo = { start: function(n) {
|
|
5543
5543
|
var t, o = n.interaction, i = n.interactable, l = n.element, u = n.rect, f = n.state, h = n.startOffset, g = f.options, w = g.offsetWithOrigin ? (function(I) {
|
|
5544
|
-
var F = I.interaction.element, L = nt(Ye(I.state.options.origin, null, null, [F])), H = L ||
|
|
5544
|
+
var F = I.interaction.element, L = nt(Ye(I.state.options.origin, null, null, [F])), H = L || Ft(I.interactable, F, I.interaction.prepared.name);
|
|
5545
5545
|
return H;
|
|
5546
5546
|
})(n) : { x: 0, y: 0 };
|
|
5547
5547
|
if (g.offset === "startCoords") t = { x: o.coords.start.page.x, y: o.coords.start.page.y };
|
|
@@ -5554,18 +5554,18 @@ function kd() {
|
|
|
5554
5554
|
return { index: F, relativePoint: I, x: h.left - u.width * I.x + t.x, y: h.top - u.height * I.y + t.y };
|
|
5555
5555
|
})) : [{ index: 0, relativePoint: null, x: t.x, y: t.y }];
|
|
5556
5556
|
}, set: function(n) {
|
|
5557
|
-
var t = n.interaction, o = n.coords, i = n.state, l = i.options, u = i.offsets, f =
|
|
5557
|
+
var t = n.interaction, o = n.coords, i = n.state, l = i.options, u = i.offsets, f = Ft(t.interactable, t.element, t.prepared.name), h = ee({}, o), g = [];
|
|
5558
5558
|
l.offsetWithOrigin || (h.x -= f.x, h.y -= f.y);
|
|
5559
5559
|
for (var w = 0, y = u; w < y.length; w++) for (var S = y[w], I = h.x - S.x, F = h.y - S.y, L = 0, H = l.targets.length; L < H; L++) {
|
|
5560
5560
|
var oe = l.targets[L], Z = void 0;
|
|
5561
5561
|
(Z = C.func(oe) ? oe(I, F, t._proxy, S, L) : oe) && g.push({ x: (C.number(Z.x) ? Z.x : I) + S.x, y: (C.number(Z.y) ? Z.y : F) + S.y, range: C.number(Z.range) ? Z.range : l.range, source: oe, index: L, offset: S });
|
|
5562
5562
|
}
|
|
5563
5563
|
for (var se = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, be = 0; be < g.length; be++) {
|
|
5564
|
-
var Me = g[be], pe = Me.range, ke = Me.x - h.x, Je = Me.y - h.y, Fe =
|
|
5564
|
+
var Me = g[be], pe = Me.range, ke = Me.x - h.x, Je = Me.y - h.y, Fe = Et(ke, Je), rt = Fe <= pe;
|
|
5565
5565
|
pe === 1 / 0 && se.inRange && se.range !== 1 / 0 && (rt = !1), se.target && !(rt ? se.inRange && pe !== 1 / 0 ? Fe / pe < se.distance / se.range : pe === 1 / 0 && se.range !== 1 / 0 || Fe < se.distance : !se.inRange && Fe < se.distance) || (se.target = Me, se.distance = Fe, se.range = pe, se.inRange = rt, se.delta.x = ke, se.delta.y = Je);
|
|
5566
5566
|
}
|
|
5567
5567
|
return se.inRange && (o.x = se.target.x, o.y = se.target.y), i.closest = se, se;
|
|
5568
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, us =
|
|
5568
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, us = Ot(uo, "snap"), In = { start: function(n) {
|
|
5569
5569
|
var t = n.state, o = n.edges, i = t.options;
|
|
5570
5570
|
if (!o) return null;
|
|
5571
5571
|
n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: i.offset || "self", origin: { x: 0, y: 0 }, range: i.range } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], uo.start(n), t.offsets = n.state.offsets, n.state = t;
|
|
@@ -5587,10 +5587,10 @@ function kd() {
|
|
|
5587
5587
|
}
|
|
5588
5588
|
var oe = uo.set(n);
|
|
5589
5589
|
return o.options = l, oe;
|
|
5590
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, cs =
|
|
5590
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, cs = Ot(In, "snapSize"), co = { aspectRatio: ts, restrictEdges: os, restrict: ns, restrictRect: as, restrictSize: ls, snapEdges: Ot({ start: function(n) {
|
|
5591
5591
|
var t = n.edges;
|
|
5592
|
-
return t ? (n.state.targetFields = n.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]],
|
|
5593
|
-
}, set:
|
|
5592
|
+
return t ? (n.state.targetFields = n.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]], In.start(n)) : null;
|
|
5593
|
+
}, set: In.set, defaults: ee(Zt(In.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: us, snapSize: cs, spring: Mn, avoid: Mn, transform: Mn, rubberband: Mn }, ds = { id: "modifiers", install: function(n) {
|
|
5594
5594
|
var t = n.interactStatic;
|
|
5595
5595
|
for (var o in n.usePlugin(lr), n.usePlugin(Qi), t.modifiers = co, co) {
|
|
5596
5596
|
var i = co[o], l = i._defaults, u = i._methods;
|
|
@@ -5601,7 +5601,7 @@ function kd() {
|
|
|
5601
5601
|
var t = B(o);
|
|
5602
5602
|
function o(i, l, u, f, h, g) {
|
|
5603
5603
|
var w;
|
|
5604
|
-
if (d(this, o),
|
|
5604
|
+
if (d(this, o), Wt(T(w = t.call(this, h)), u), u !== l && Wt(T(w), l), w.timeStamp = g, w.originalEvent = u, w.type = i, w.pointerId = Ae(l), w.pointerType = Ct(l), w.target = f, w.currentTarget = null, i === "tap") {
|
|
5605
5605
|
var y = h.getPointerIndex(l);
|
|
5606
5606
|
w.dt = w.timeStamp - h.pointers[y].downTime;
|
|
5607
5607
|
var S = w.timeStamp - h.tapTime;
|
|
@@ -5618,8 +5618,8 @@ function kd() {
|
|
|
5618
5618
|
} }, { key: "preventDefault", value: function() {
|
|
5619
5619
|
this.originalEvent.preventDefault();
|
|
5620
5620
|
} }]), o;
|
|
5621
|
-
})(
|
|
5622
|
-
n.pointerEvents =
|
|
5621
|
+
})(zt), dn = { id: "pointer-events/base", before: ["inertia", "modifiers", "auto-start", "actions"], install: function(n) {
|
|
5622
|
+
n.pointerEvents = dn, n.defaults.actions.pointerEvents = dn.defaults, ee(n.actions.phaselessTypes, dn.types);
|
|
5623
5623
|
}, listeners: { "interactions:new": function(n) {
|
|
5624
5624
|
var t = n.interaction;
|
|
5625
5625
|
t.prevTap = null, t.tapTime = 0;
|
|
@@ -5628,7 +5628,7 @@ function kd() {
|
|
|
5628
5628
|
!t && o.hold || (o.hold = { duration: 1 / 0, timeout: null });
|
|
5629
5629
|
}, "interactions:move": function(n, t) {
|
|
5630
5630
|
var o = n.interaction, i = n.pointer, l = n.event, u = n.eventTarget;
|
|
5631
|
-
n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && fo(n),
|
|
5631
|
+
n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && fo(n), Bt({ interaction: o, pointer: i, event: l, eventTarget: u, type: "move" }, t));
|
|
5632
5632
|
}, "interactions:down": function(n, t) {
|
|
5633
5633
|
(function(o, i) {
|
|
5634
5634
|
for (var l = o.interaction, u = o.pointer, f = o.event, h = o.eventTarget, g = o.pointerIndex, w = l.pointers[g].hold, y = We(h), S = { interaction: l, pointer: u, event: f, eventTarget: h, type: "hold", targets: [], path: y, node: null }, I = 0; I < y.length; I++) {
|
|
@@ -5641,29 +5641,29 @@ function kd() {
|
|
|
5641
5641
|
Z < L && (L = Z);
|
|
5642
5642
|
}
|
|
5643
5643
|
w.duration = L, w.timeout = setTimeout((function() {
|
|
5644
|
-
|
|
5644
|
+
Bt({ interaction: l, eventTarget: h, pointer: u, event: f, type: "hold" }, i);
|
|
5645
5645
|
}), L);
|
|
5646
5646
|
}
|
|
5647
|
-
})(n, t),
|
|
5647
|
+
})(n, t), Bt(n, t);
|
|
5648
5648
|
}, "interactions:up": function(n, t) {
|
|
5649
|
-
fo(n),
|
|
5649
|
+
fo(n), Bt(n, t), (function(o, i) {
|
|
5650
5650
|
var l = o.interaction, u = o.pointer, f = o.event, h = o.eventTarget;
|
|
5651
|
-
l.pointerWasMoved ||
|
|
5651
|
+
l.pointerWasMoved || Bt({ interaction: l, eventTarget: h, pointer: u, event: f, type: "tap" }, i);
|
|
5652
5652
|
})(n, t);
|
|
5653
5653
|
}, "interactions:cancel": function(n, t) {
|
|
5654
|
-
fo(n),
|
|
5655
|
-
} }, PointerEvent: Tr, fire:
|
|
5656
|
-
function
|
|
5654
|
+
fo(n), Bt(n, t);
|
|
5655
|
+
} }, PointerEvent: Tr, fire: Bt, collectEventTargets: zr, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
|
|
5656
|
+
function Bt(n, t) {
|
|
5657
5657
|
var o = n.interaction, i = n.pointer, l = n.event, u = n.eventTarget, f = n.type, h = n.targets, g = h === void 0 ? zr(n, t) : h, w = new Tr(f, i, l, u, o, t.now());
|
|
5658
5658
|
t.fire("pointerEvents:new", { pointerEvent: w });
|
|
5659
5659
|
for (var y = { interaction: o, pointer: i, event: l, eventTarget: u, targets: g, type: f, pointerEvent: w }, S = 0; S < g.length; S++) {
|
|
5660
5660
|
var I = g[S];
|
|
5661
5661
|
for (var F in I.props || {}) w[F] = I.props[F];
|
|
5662
|
-
var L =
|
|
5662
|
+
var L = Ft(I.eventable, I.node);
|
|
5663
5663
|
if (w._subtractOrigin(L), w.eventable = I.eventable, w.currentTarget = I.node, I.eventable.fire(w), w._addOrigin(L), w.immediatePropagationStopped || w.propagationStopped && S + 1 < g.length && g[S + 1].node !== w.currentTarget) break;
|
|
5664
5664
|
}
|
|
5665
5665
|
if (t.fire("pointerEvents:fired", y), f === "tap") {
|
|
5666
|
-
var H = w.double ?
|
|
5666
|
+
var H = w.double ? Bt({ interaction: o, pointer: i, event: l, eventTarget: u, type: "doubletap" }, t) : w;
|
|
5667
5667
|
o.prevTap = H, o.tapTime = H.timeStamp;
|
|
5668
5668
|
}
|
|
5669
5669
|
return w;
|
|
@@ -5684,13 +5684,13 @@ function kd() {
|
|
|
5684
5684
|
var t = n.interaction, o = n.pointerIndex, i = t.pointers[o].hold;
|
|
5685
5685
|
i && i.timeout && (clearTimeout(i.timeout), i.timeout = null);
|
|
5686
5686
|
}
|
|
5687
|
-
var ps = Object.freeze({ __proto__: null, default:
|
|
5687
|
+
var ps = Object.freeze({ __proto__: null, default: dn });
|
|
5688
5688
|
function hs(n) {
|
|
5689
5689
|
var t = n.interaction;
|
|
5690
5690
|
t.holdIntervalHandle && (clearInterval(t.holdIntervalHandle), t.holdIntervalHandle = null);
|
|
5691
5691
|
}
|
|
5692
5692
|
var ms = { id: "pointer-events/holdRepeat", install: function(n) {
|
|
5693
|
-
n.usePlugin(
|
|
5693
|
+
n.usePlugin(dn);
|
|
5694
5694
|
var t = n.pointerEvents;
|
|
5695
5695
|
t.defaults.holdRepeatInterval = 0, t.types.holdrepeat = n.actions.phaselessTypes.holdrepeat = !0;
|
|
5696
5696
|
}, listeners: ["move", "up", "cancel", "endall"].reduce((function(n, t) {
|
|
@@ -5739,14 +5739,14 @@ function kd() {
|
|
|
5739
5739
|
for (var f = i.getAllElements(), h = u.window.Promise, g = h ? [] : null, w = function() {
|
|
5740
5740
|
var S = f[y], I = i.getRect(S);
|
|
5741
5741
|
if (!I) return 1;
|
|
5742
|
-
var F, L =
|
|
5742
|
+
var F, L = an(u.interactions.list, (function(Z) {
|
|
5743
5743
|
return Z.interacting() && Z.interactable === i && Z.element === S && Z.prepared.name === l.name;
|
|
5744
5744
|
}));
|
|
5745
5745
|
if (L) L.move(), g && (F = L._reflowPromise || new h((function(Z) {
|
|
5746
5746
|
L._reflowResolve = Z;
|
|
5747
5747
|
})));
|
|
5748
5748
|
else {
|
|
5749
|
-
var H =
|
|
5749
|
+
var H = Gt(I), oe = /* @__PURE__ */ (function(Z) {
|
|
5750
5750
|
return { coords: Z, get page() {
|
|
5751
5751
|
return this.coords.page;
|
|
5752
5752
|
}, get client() {
|
|
@@ -5802,7 +5802,7 @@ function kd() {
|
|
|
5802
5802
|
}
|
|
5803
5803
|
return Qe.default = Qe, Qe;
|
|
5804
5804
|
}));
|
|
5805
|
-
})(
|
|
5805
|
+
})(mn, mn.exports)), mn.exports;
|
|
5806
5806
|
}
|
|
5807
5807
|
var Sd = /* @__PURE__ */ kd();
|
|
5808
5808
|
const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
@@ -5869,7 +5869,7 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
5869
5869
|
vt(W);
|
|
5870
5870
|
}
|
|
5871
5871
|
function Te() {
|
|
5872
|
-
|
|
5872
|
+
rn();
|
|
5873
5873
|
}
|
|
5874
5874
|
function U(W) {
|
|
5875
5875
|
it(s.isDraggable) && (p.draggable = W);
|
|
@@ -5890,14 +5890,14 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
5890
5890
|
p.maxRows = W;
|
|
5891
5891
|
}
|
|
5892
5892
|
function de() {
|
|
5893
|
-
p.rtl = ta() === "rtl",
|
|
5893
|
+
p.rtl = ta() === "rtl", rn();
|
|
5894
5894
|
}
|
|
5895
5895
|
function He(W) {
|
|
5896
5896
|
p.cols = Math.floor(W);
|
|
5897
5897
|
}
|
|
5898
5898
|
d.increaseItem(ge), ka(() => {
|
|
5899
5899
|
p.rtl = ta() === "rtl";
|
|
5900
|
-
}),
|
|
5900
|
+
}), nn(() => {
|
|
5901
5901
|
d.responsive && d.lastBreakpoint ? p.cols = Ja(d.lastBreakpoint, d.cols) : p.cols = d.colNum, p.rowHeight = d.rowHeight, p.containerWidth = d.width !== null ? d.width : 100, p.margin = d.margin !== void 0 ? d.margin.map(Number) : [10, 10], p.maxRows = d.maxRows, it(s.isDraggable) ? p.draggable = d.isDraggable : p.draggable = s.isDraggable, it(s.isResizable) ? p.resizable = d.isResizable : p.resizable = s.isResizable, it(s.isBounded) ? p.bounded = d.isBounded : p.bounded = s.isBounded, p.transformScale = d.transformScale, p.useCssTransforms = d.useCssTransforms, p.useStyleCursor = d.useStyleCursor, Io(() => {
|
|
5902
5902
|
P = s.x, D = s.y, Y = s.h, J = s.w, Ze(Pe);
|
|
5903
5903
|
}), v.on("updateWidth", ue), v.on("compact", Te), v.on("setDraggable", U), v.on("setResizable", re), v.on("setBounded", he), v.on("setTransformScale", ve), v.on("setRowHeight", Se), v.on("setMaxRows", Ie), v.on("directionchange", de), v.on("setColNum", He);
|
|
@@ -5922,12 +5922,12 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
5922
5922
|
), Ce(
|
|
5923
5923
|
() => s.static,
|
|
5924
5924
|
() => {
|
|
5925
|
-
Ze(
|
|
5925
|
+
Ze(Wt), Ze(gt);
|
|
5926
5926
|
}
|
|
5927
5927
|
), Ce(
|
|
5928
5928
|
() => p.draggable,
|
|
5929
5929
|
() => {
|
|
5930
|
-
Ze(
|
|
5930
|
+
Ze(Wt);
|
|
5931
5931
|
}
|
|
5932
5932
|
), Ce(
|
|
5933
5933
|
() => s.isResizable,
|
|
@@ -6001,7 +6001,7 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6001
6001
|
break;
|
|
6002
6002
|
}
|
|
6003
6003
|
}
|
|
6004
|
-
fe =
|
|
6004
|
+
fe = Ft(ze.height, ze.width), fe.w < s.minW && (fe.w = s.minW), fe.w > s.maxW && (fe.w = s.maxW), fe.h < s.minH && (fe.h = s.minH), fe.h > s.maxH && (fe.h = s.maxH), fe.h < 1 && (fe.h = 1), fe.w < 1 && (fe.w = 1), B = Ae, R = Ve, (J !== fe.w || Y !== fe.h) && c("resize", s.i, fe.h, fe.w, ze.height, ze.width), W.type === "resizeend" && (ne !== J || G !== Y) && c("resized", s.i, fe.h, fe.w, ze.height, ze.width), v.emit("resizeEvent", W.type, s.i, P, D, fe.h, fe.w);
|
|
6005
6005
|
}
|
|
6006
6006
|
function ee(W) {
|
|
6007
6007
|
if (s.static || p.isResizing) return;
|
|
@@ -6016,24 +6016,24 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6016
6016
|
switch (ye) {
|
|
6017
6017
|
case "dragstart": {
|
|
6018
6018
|
K = P, $ = D;
|
|
6019
|
-
const Xe = ze.offsetParent.getBoundingClientRect(), ot = ze.getBoundingClientRect(),
|
|
6020
|
-
N.value ? fe.left = (
|
|
6019
|
+
const Xe = ze.offsetParent.getBoundingClientRect(), ot = ze.getBoundingClientRect(), Ct = ot.left / p.transformScale, Tt = Xe.left / p.transformScale, zt = ot.right / p.transformScale, Xt = Xe.right / p.transformScale, Qt = ot.top / p.transformScale, yt = Xe.top / p.transformScale;
|
|
6020
|
+
N.value ? fe.left = (zt - Xt) * -1 : fe.left = Ct - Tt, fe.top = Qt - yt, p.dragging = fe, p.isDragging = !0;
|
|
6021
6021
|
break;
|
|
6022
6022
|
}
|
|
6023
6023
|
case "dragmove": {
|
|
6024
6024
|
const Xe = ea(O, T, Ae, Ve);
|
|
6025
6025
|
if (N.value ? fe.left = p.dragging.left - Xe.deltaX / p.transformScale : fe.left = p.dragging.left + Xe.deltaX / p.transformScale, fe.top = p.dragging.top + Xe.deltaY / p.transformScale, p.bounded) {
|
|
6026
|
-
const ot = ze.offsetParent.clientHeight -
|
|
6027
|
-
fe.top =
|
|
6028
|
-
const
|
|
6029
|
-
fe.left =
|
|
6026
|
+
const ot = ze.offsetParent.clientHeight - Gt(s.h, p.rowHeight, p.margin[1]);
|
|
6027
|
+
fe.top = jt(fe.top, 0, ot);
|
|
6028
|
+
const Ct = nt(), Tt = p.containerWidth - Gt(s.w, Ct, p.margin[0]);
|
|
6029
|
+
fe.left = jt(fe.left, 0, Tt);
|
|
6030
6030
|
}
|
|
6031
6031
|
p.dragging = fe;
|
|
6032
6032
|
break;
|
|
6033
6033
|
}
|
|
6034
6034
|
case "dragend": {
|
|
6035
|
-
const Xe = ze.offsetParent.getBoundingClientRect(), ot = ze.getBoundingClientRect(),
|
|
6036
|
-
N.value ? fe.left = (
|
|
6035
|
+
const Xe = ze.offsetParent.getBoundingClientRect(), ot = ze.getBoundingClientRect(), Ct = ot.left / p.transformScale, Tt = Xe.left / p.transformScale, zt = ot.right / p.transformScale, Xt = Xe.right / p.transformScale, Qt = ot.top / p.transformScale, yt = Xe.top / p.transformScale;
|
|
6036
|
+
N.value ? fe.left = (zt - Xt) * -1 : fe.left = Ct - Tt, fe.top = Qt - yt, p.dragging = { top: -1, left: -1 }, p.isDragging = !1;
|
|
6037
6037
|
break;
|
|
6038
6038
|
}
|
|
6039
6039
|
}
|
|
@@ -6069,13 +6069,13 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6069
6069
|
function nt() {
|
|
6070
6070
|
return (p.containerWidth - p.margin[0] * (p.cols + 1)) / p.cols;
|
|
6071
6071
|
}
|
|
6072
|
-
function
|
|
6072
|
+
function Gt(W, ye, Re) {
|
|
6073
6073
|
return Number.isFinite(W) ? Math.round(ye * W + Math.max(0, W - 1) * Re) : W;
|
|
6074
6074
|
}
|
|
6075
|
-
function
|
|
6075
|
+
function jt(W, ye, Re) {
|
|
6076
6076
|
return Math.max(Math.min(W, Re), ye);
|
|
6077
6077
|
}
|
|
6078
|
-
function
|
|
6078
|
+
function Ft(W, ye, Re = !1) {
|
|
6079
6079
|
const Ae = nt();
|
|
6080
6080
|
let Ve = Math.round((ye + p.margin[0]) / (Ae + p.margin[0])), ze = 0;
|
|
6081
6081
|
return Re ? ze = Math.ceil((W + p.margin[1]) / (p.rowHeight + p.margin[1])) : ze = Math.round((W + p.margin[1]) / (p.rowHeight + p.margin[1])), Ve = Math.max(Math.min(Ve, p.cols - P), 0), ze = Math.max(Math.min(ze, p.maxRows - D), 0), { w: Ve, h: ze };
|
|
@@ -6083,15 +6083,15 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6083
6083
|
function vt(W, ye) {
|
|
6084
6084
|
p.containerWidth = W;
|
|
6085
6085
|
}
|
|
6086
|
-
function
|
|
6086
|
+
function rn() {
|
|
6087
6087
|
Pe();
|
|
6088
6088
|
}
|
|
6089
|
-
function
|
|
6089
|
+
function Et() {
|
|
6090
6090
|
!m.value && C.value && (m.value = oa(C.value), p.useStyleCursor || m.value.styleCursor(!1));
|
|
6091
6091
|
}
|
|
6092
6092
|
const qn = Xr(ee);
|
|
6093
|
-
function
|
|
6094
|
-
if (
|
|
6093
|
+
function Wt() {
|
|
6094
|
+
if (Et(), !!m.value)
|
|
6095
6095
|
if (p.draggable && !s.static) {
|
|
6096
6096
|
const W = {
|
|
6097
6097
|
ignoreFrom: s.dragIgnoreFrom,
|
|
@@ -6104,9 +6104,9 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6104
6104
|
} else
|
|
6105
6105
|
m.value.draggable({ enabled: !1 });
|
|
6106
6106
|
}
|
|
6107
|
-
const
|
|
6107
|
+
const Yt = Xr(ie);
|
|
6108
6108
|
function gt() {
|
|
6109
|
-
if (
|
|
6109
|
+
if (Et(), !!m.value)
|
|
6110
6110
|
if (p.resizable && !s.static) {
|
|
6111
6111
|
const W = tt(0, 0, s.maxW, s.maxH), ye = tt(0, 0, s.minW, s.minH), Re = {
|
|
6112
6112
|
edges: {
|
|
@@ -6129,7 +6129,7 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6129
6129
|
...s.resizeOption
|
|
6130
6130
|
};
|
|
6131
6131
|
s.preserveAspectRatio && (Re.modifiers = [oa.modifiers.aspectRatio({ ratio: "preserve" })]), m.value.resizable(Re), z || (z = !0, m.value.on("resizestart resizemove resizeend", (Ae) => {
|
|
6132
|
-
Ae.type === "resizemove" ?
|
|
6132
|
+
Ae.type === "resizemove" ? Yt(Ae) : ie(Ae);
|
|
6133
6133
|
}));
|
|
6134
6134
|
} else
|
|
6135
6135
|
m.value.resizable({ enabled: !1 });
|
|
@@ -6138,7 +6138,7 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6138
6138
|
ref_key: "wrapper",
|
|
6139
6139
|
ref: C,
|
|
6140
6140
|
class: $e(Be.value),
|
|
6141
|
-
style:
|
|
6141
|
+
style: kn(p.style)
|
|
6142
6142
|
}, [
|
|
6143
6143
|
ce(W.$slots, "default"),
|
|
6144
6144
|
je.value ? (k(), Q("span", {
|
|
@@ -6147,9 +6147,9 @@ const oa = /* @__PURE__ */ wd(Sd), Mo = /* @__PURE__ */ Le({
|
|
|
6147
6147
|
}, null, 2)) : X("", !0)
|
|
6148
6148
|
], 6));
|
|
6149
6149
|
}
|
|
6150
|
-
}),
|
|
6150
|
+
}), qt = typeof window < "u";
|
|
6151
6151
|
var ra;
|
|
6152
|
-
|
|
6152
|
+
qt && (ra = window?.navigator) != null && ra.userAgent && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
6153
6153
|
function aa(e) {
|
|
6154
6154
|
return e != null;
|
|
6155
6155
|
}
|
|
@@ -6307,7 +6307,7 @@ const Ed = Object.freeze({
|
|
|
6307
6307
|
yellowgreen: "9acd32"
|
|
6308
6308
|
});
|
|
6309
6309
|
Object.freeze(new Set(Object.keys(Ed)));
|
|
6310
|
-
const Cd =
|
|
6310
|
+
const Cd = qt && ("ontouchstart" in window || zd() > 0), Td = Cd ? "pointerdown" : "click";
|
|
6311
6311
|
function zd() {
|
|
6312
6312
|
return typeof navigator < "u" && (navigator.maxTouchPoints || navigator.msMaxTouchPoints) || 0;
|
|
6313
6313
|
}
|
|
@@ -6318,7 +6318,7 @@ function Md(e, r, a = window.Event) {
|
|
|
6318
6318
|
return aa(a) ? m = new a(s, { bubbles: c, cancelable: d }) : (m = document.createEvent("HTMLEvents"), m.initEvent(s, c, d)), Object.assign(m, v), e.dispatchEvent(m);
|
|
6319
6319
|
}
|
|
6320
6320
|
const Od = "clickoutside", Id = /* @__PURE__ */ new Set();
|
|
6321
|
-
|
|
6321
|
+
qt && document.addEventListener(
|
|
6322
6322
|
Td,
|
|
6323
6323
|
(e) => {
|
|
6324
6324
|
const r = e.target, a = e.composedPath && e.composedPath();
|
|
@@ -6373,7 +6373,7 @@ const Bd = [
|
|
|
6373
6373
|
]
|
|
6374
6374
|
];
|
|
6375
6375
|
let Fn;
|
|
6376
|
-
if (
|
|
6376
|
+
if (qt) {
|
|
6377
6377
|
for (const e of Bd)
|
|
6378
6378
|
if (e[1] in document) {
|
|
6379
6379
|
Fn = e;
|
|
@@ -6382,7 +6382,7 @@ if (Kt) {
|
|
|
6382
6382
|
}
|
|
6383
6383
|
j(() => !1);
|
|
6384
6384
|
const Pd = /* @__PURE__ */ new Set(), Rd = /* @__PURE__ */ new WeakMap();
|
|
6385
|
-
if (
|
|
6385
|
+
if (qt && Fn) {
|
|
6386
6386
|
const e = Fn[2], r = Fn[4];
|
|
6387
6387
|
document.addEventListener(
|
|
6388
6388
|
r,
|
|
@@ -6400,12 +6400,12 @@ if (Kt && Fn) {
|
|
|
6400
6400
|
const ei = /* @__PURE__ */ new Map();
|
|
6401
6401
|
ei.set("x", 0);
|
|
6402
6402
|
ei.set("y", 0);
|
|
6403
|
-
var
|
|
6404
|
-
return
|
|
6403
|
+
var Vt = [], Ad = function() {
|
|
6404
|
+
return Vt.some(function(e) {
|
|
6405
6405
|
return e.activeTargets.length > 0;
|
|
6406
6406
|
});
|
|
6407
6407
|
}, $d = function() {
|
|
6408
|
-
return
|
|
6408
|
+
return Vt.some(function(e) {
|
|
6409
6409
|
return e.skippedTargets.length > 0;
|
|
6410
6410
|
});
|
|
6411
6411
|
}, sa = "ResizeObserver loop completed with undelivered notifications.", Dd = function() {
|
|
@@ -6413,20 +6413,20 @@ var Ht = [], Ad = function() {
|
|
|
6413
6413
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
6414
6414
|
message: sa
|
|
6415
6415
|
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = sa), window.dispatchEvent(e);
|
|
6416
|
-
},
|
|
6416
|
+
}, xn;
|
|
6417
6417
|
(function(e) {
|
|
6418
6418
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
6419
|
-
})(
|
|
6420
|
-
var
|
|
6419
|
+
})(xn || (xn = {}));
|
|
6420
|
+
var Kt = function(e) {
|
|
6421
6421
|
return Object.freeze(e);
|
|
6422
6422
|
}, Nd = /* @__PURE__ */ (function() {
|
|
6423
6423
|
function e(r, a) {
|
|
6424
|
-
this.inlineSize = r, this.blockSize = a,
|
|
6424
|
+
this.inlineSize = r, this.blockSize = a, Kt(this);
|
|
6425
6425
|
}
|
|
6426
6426
|
return e;
|
|
6427
6427
|
})(), ti = (function() {
|
|
6428
6428
|
function e(r, a, s, c) {
|
|
6429
|
-
return this.x = r, this.y = a, this.width = s, this.height = c, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
6429
|
+
return this.x = r, this.y = a, this.width = s, this.height = c, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Kt(this);
|
|
6430
6430
|
}
|
|
6431
6431
|
return e.prototype.toJSON = function() {
|
|
6432
6432
|
var r = this, a = r.x, s = r.y, c = r.top, d = r.right, v = r.bottom, m = r.left, p = r.width, E = r.height;
|
|
@@ -6464,33 +6464,33 @@ var Vt = function(e) {
|
|
|
6464
6464
|
return !0;
|
|
6465
6465
|
}
|
|
6466
6466
|
return !1;
|
|
6467
|
-
},
|
|
6467
|
+
}, wn = typeof window < "u" ? window : {}, $n = /* @__PURE__ */ new WeakMap(), ua = /auto|scroll/, jd = /^tb|vertical/, Fd = /msie|trident/i.test(wn.navigator && wn.navigator.userAgent), pt = function(e) {
|
|
6468
6468
|
return parseFloat(e || "0");
|
|
6469
|
-
},
|
|
6469
|
+
}, tn = function(e, r, a) {
|
|
6470
6470
|
return e === void 0 && (e = 0), r === void 0 && (r = 0), a === void 0 && (a = !1), new Nd((a ? r : e) || 0, (a ? e : r) || 0);
|
|
6471
|
-
}, ca =
|
|
6472
|
-
devicePixelContentBoxSize:
|
|
6473
|
-
borderBoxSize:
|
|
6474
|
-
contentBoxSize:
|
|
6471
|
+
}, ca = Kt({
|
|
6472
|
+
devicePixelContentBoxSize: tn(),
|
|
6473
|
+
borderBoxSize: tn(),
|
|
6474
|
+
contentBoxSize: tn(),
|
|
6475
6475
|
contentRect: new ti(0, 0, 0, 0)
|
|
6476
6476
|
}), oi = function(e, r) {
|
|
6477
|
-
if (r === void 0 && (r = !1),
|
|
6478
|
-
return
|
|
6477
|
+
if (r === void 0 && (r = !1), $n.has(e) && !r)
|
|
6478
|
+
return $n.get(e);
|
|
6479
6479
|
if (ni(e))
|
|
6480
|
-
return
|
|
6481
|
-
var a = getComputedStyle(e), s = Ko(e) && e.ownerSVGElement && e.getBBox(), c = !Fd && a.boxSizing === "border-box", d = jd.test(a.writingMode || ""), v = !s && ua.test(a.overflowY || ""), m = !s && ua.test(a.overflowX || ""), p = s ? 0 : pt(a.paddingTop), E = s ? 0 : pt(a.paddingRight), z = s ? 0 : pt(a.paddingBottom), O = s ? 0 : pt(a.paddingLeft), T = s ? 0 : pt(a.borderTopWidth), B = s ? 0 : pt(a.borderRightWidth), R = s ? 0 : pt(a.borderBottomWidth), ne = s ? 0 : pt(a.borderLeftWidth), G = O + E, K = p + z, $ = ne + B, P = T + R, D = m ? e.offsetHeight - P - e.clientHeight : 0, J = v ? e.offsetWidth - $ - e.clientWidth : 0, Y = c ? G + $ : 0, C = c ? K + P : 0, ge = s ? s.width : pt(a.width) - Y - J, ue = s ? s.height : pt(a.height) - C - D, Te = ge + G + J + $, U = ue + K + D + P, re =
|
|
6482
|
-
devicePixelContentBoxSize:
|
|
6483
|
-
borderBoxSize:
|
|
6484
|
-
contentBoxSize:
|
|
6480
|
+
return $n.set(e, ca), ca;
|
|
6481
|
+
var a = getComputedStyle(e), s = Ko(e) && e.ownerSVGElement && e.getBBox(), c = !Fd && a.boxSizing === "border-box", d = jd.test(a.writingMode || ""), v = !s && ua.test(a.overflowY || ""), m = !s && ua.test(a.overflowX || ""), p = s ? 0 : pt(a.paddingTop), E = s ? 0 : pt(a.paddingRight), z = s ? 0 : pt(a.paddingBottom), O = s ? 0 : pt(a.paddingLeft), T = s ? 0 : pt(a.borderTopWidth), B = s ? 0 : pt(a.borderRightWidth), R = s ? 0 : pt(a.borderBottomWidth), ne = s ? 0 : pt(a.borderLeftWidth), G = O + E, K = p + z, $ = ne + B, P = T + R, D = m ? e.offsetHeight - P - e.clientHeight : 0, J = v ? e.offsetWidth - $ - e.clientWidth : 0, Y = c ? G + $ : 0, C = c ? K + P : 0, ge = s ? s.width : pt(a.width) - Y - J, ue = s ? s.height : pt(a.height) - C - D, Te = ge + G + J + $, U = ue + K + D + P, re = Kt({
|
|
6482
|
+
devicePixelContentBoxSize: tn(Math.round(ge * devicePixelRatio), Math.round(ue * devicePixelRatio), d),
|
|
6483
|
+
borderBoxSize: tn(Te, U, d),
|
|
6484
|
+
contentBoxSize: tn(ge, ue, d),
|
|
6485
6485
|
contentRect: new ti(O, p, ge, ue)
|
|
6486
6486
|
});
|
|
6487
|
-
return
|
|
6487
|
+
return $n.set(e, re), re;
|
|
6488
6488
|
}, ri = function(e, r, a) {
|
|
6489
6489
|
var s = oi(e, a), c = s.borderBoxSize, d = s.contentBoxSize, v = s.devicePixelContentBoxSize;
|
|
6490
6490
|
switch (r) {
|
|
6491
|
-
case
|
|
6491
|
+
case xn.DEVICE_PIXEL_CONTENT_BOX:
|
|
6492
6492
|
return v;
|
|
6493
|
-
case
|
|
6493
|
+
case xn.BORDER_BOX:
|
|
6494
6494
|
return c;
|
|
6495
6495
|
default:
|
|
6496
6496
|
return d;
|
|
@@ -6498,7 +6498,7 @@ var Vt = function(e) {
|
|
|
6498
6498
|
}, Wd = /* @__PURE__ */ (function() {
|
|
6499
6499
|
function e(r) {
|
|
6500
6500
|
var a = oi(r);
|
|
6501
|
-
this.target = r, this.contentRect = a.contentRect, this.borderBoxSize =
|
|
6501
|
+
this.target = r, this.contentRect = a.contentRect, this.borderBoxSize = Kt([a.borderBoxSize]), this.contentBoxSize = Kt([a.contentBoxSize]), this.devicePixelContentBoxSize = Kt([a.devicePixelContentBoxSize]);
|
|
6502
6502
|
}
|
|
6503
6503
|
return e;
|
|
6504
6504
|
})(), ai = function(e) {
|
|
@@ -6509,7 +6509,7 @@ var Vt = function(e) {
|
|
|
6509
6509
|
return r;
|
|
6510
6510
|
}, Ud = function() {
|
|
6511
6511
|
var e = 1 / 0, r = [];
|
|
6512
|
-
|
|
6512
|
+
Vt.forEach(function(d) {
|
|
6513
6513
|
if (d.activeTargets.length !== 0) {
|
|
6514
6514
|
var v = [];
|
|
6515
6515
|
d.activeTargets.forEach(function(m) {
|
|
@@ -6526,7 +6526,7 @@ var Vt = function(e) {
|
|
|
6526
6526
|
}
|
|
6527
6527
|
return e;
|
|
6528
6528
|
}, da = function(e) {
|
|
6529
|
-
|
|
6529
|
+
Vt.forEach(function(r) {
|
|
6530
6530
|
r.activeTargets.splice(0, r.activeTargets.length), r.skippedTargets.splice(0, r.skippedTargets.length), r.observationTargets.forEach(function(a) {
|
|
6531
6531
|
a.isActive() && (ai(a.target) > e ? r.activeTargets.push(a) : r.skippedTargets.push(a));
|
|
6532
6532
|
});
|
|
@@ -6602,16 +6602,16 @@ var Vt = function(e) {
|
|
|
6602
6602
|
var r = this, a = function() {
|
|
6603
6603
|
return r.observer && r.observer.observe(document.body, Xd);
|
|
6604
6604
|
};
|
|
6605
|
-
document.body ? a() :
|
|
6605
|
+
document.body ? a() : wn.addEventListener("DOMContentLoaded", a);
|
|
6606
6606
|
}, e.prototype.start = function() {
|
|
6607
6607
|
var r = this;
|
|
6608
6608
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), fa.forEach(function(a) {
|
|
6609
|
-
return
|
|
6609
|
+
return wn.addEventListener(a, r.listener, !0);
|
|
6610
6610
|
}));
|
|
6611
6611
|
}, e.prototype.stop = function() {
|
|
6612
6612
|
var r = this;
|
|
6613
6613
|
this.stopped || (this.observer && this.observer.disconnect(), fa.forEach(function(a) {
|
|
6614
|
-
return
|
|
6614
|
+
return wn.removeEventListener(a, r.listener, !0);
|
|
6615
6615
|
}), this.stopped = !0);
|
|
6616
6616
|
}, e;
|
|
6617
6617
|
})(), Oo = new Qd(), ha = function(e) {
|
|
@@ -6620,7 +6620,7 @@ var Vt = function(e) {
|
|
|
6620
6620
|
return !Ko(e) && !Ld(e) && getComputedStyle(e).display === "inline";
|
|
6621
6621
|
}, Zd = (function() {
|
|
6622
6622
|
function e(r, a) {
|
|
6623
|
-
this.target = r, this.observedBox = a ||
|
|
6623
|
+
this.target = r, this.observedBox = a || xn.CONTENT_BOX, this.lastReportedSize = {
|
|
6624
6624
|
inlineSize: 0,
|
|
6625
6625
|
blockSize: 0
|
|
6626
6626
|
};
|
|
@@ -6634,25 +6634,25 @@ var Vt = function(e) {
|
|
|
6634
6634
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = r, this.callback = a;
|
|
6635
6635
|
}
|
|
6636
6636
|
return e;
|
|
6637
|
-
})(),
|
|
6637
|
+
})(), Dn = /* @__PURE__ */ new WeakMap(), ma = function(e, r) {
|
|
6638
6638
|
for (var a = 0; a < e.length; a += 1)
|
|
6639
6639
|
if (e[a].target === r)
|
|
6640
6640
|
return a;
|
|
6641
6641
|
return -1;
|
|
6642
|
-
},
|
|
6642
|
+
}, Nn = (function() {
|
|
6643
6643
|
function e() {
|
|
6644
6644
|
}
|
|
6645
6645
|
return e.connect = function(r, a) {
|
|
6646
6646
|
var s = new ef(r, a);
|
|
6647
|
-
|
|
6647
|
+
Dn.set(r, s);
|
|
6648
6648
|
}, e.observe = function(r, a, s) {
|
|
6649
|
-
var c =
|
|
6650
|
-
ma(c.observationTargets, a) < 0 && (d &&
|
|
6649
|
+
var c = Dn.get(r), d = c.observationTargets.length === 0;
|
|
6650
|
+
ma(c.observationTargets, a) < 0 && (d && Vt.push(c), c.observationTargets.push(new Zd(a, s && s.box)), ha(1), Oo.schedule());
|
|
6651
6651
|
}, e.unobserve = function(r, a) {
|
|
6652
|
-
var s =
|
|
6653
|
-
c >= 0 && (d &&
|
|
6652
|
+
var s = Dn.get(r), c = ma(s.observationTargets, a), d = s.observationTargets.length === 1;
|
|
6653
|
+
c >= 0 && (d && Vt.splice(Vt.indexOf(s), 1), s.observationTargets.splice(c, 1), ha(-1));
|
|
6654
6654
|
}, e.disconnect = function(r) {
|
|
6655
|
-
var a = this, s =
|
|
6655
|
+
var a = this, s = Dn.get(r);
|
|
6656
6656
|
s.observationTargets.slice().forEach(function(c) {
|
|
6657
6657
|
return a.unobserve(r, c.target);
|
|
6658
6658
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
@@ -6663,22 +6663,22 @@ var Vt = function(e) {
|
|
|
6663
6663
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
6664
6664
|
if (typeof r != "function")
|
|
6665
6665
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
6666
|
-
|
|
6666
|
+
Nn.connect(this, r);
|
|
6667
6667
|
}
|
|
6668
6668
|
return e.prototype.observe = function(r, a) {
|
|
6669
6669
|
if (arguments.length === 0)
|
|
6670
6670
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
6671
6671
|
if (!la(r))
|
|
6672
6672
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
6673
|
-
|
|
6673
|
+
Nn.observe(this, r, a);
|
|
6674
6674
|
}, e.prototype.unobserve = function(r) {
|
|
6675
6675
|
if (arguments.length === 0)
|
|
6676
6676
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
6677
6677
|
if (!la(r))
|
|
6678
6678
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
6679
|
-
|
|
6679
|
+
Nn.unobserve(this, r);
|
|
6680
6680
|
}, e.prototype.disconnect = function() {
|
|
6681
|
-
|
|
6681
|
+
Nn.disconnect(this);
|
|
6682
6682
|
}, e.toString = function() {
|
|
6683
6683
|
return "function ResizeObserver () { [polyfill code] }";
|
|
6684
6684
|
}, e;
|
|
@@ -6701,7 +6701,7 @@ function nf(e) {
|
|
|
6701
6701
|
}
|
|
6702
6702
|
}
|
|
6703
6703
|
}
|
|
6704
|
-
const si = new (
|
|
6704
|
+
const si = new (qt && window.ResizeObserver || tf)(
|
|
6705
6705
|
nf
|
|
6706
6706
|
);
|
|
6707
6707
|
function va(e, r) {
|
|
@@ -6739,7 +6739,7 @@ const rf = q(!1);
|
|
|
6739
6739
|
j(() => rf.value);
|
|
6740
6740
|
const ya = "__theme_style__", wo = "__theme_observer__", ba = lt(/* @__PURE__ */ new Map()), _a = /* @__PURE__ */ new Map();
|
|
6741
6741
|
Ce(ba, () => {
|
|
6742
|
-
if (!
|
|
6742
|
+
if (!qt) return;
|
|
6743
6743
|
_a.clear();
|
|
6744
6744
|
const e = document.head.querySelector(`#${ya}`);
|
|
6745
6745
|
e && document.head.removeChild(e);
|
|
@@ -6803,10 +6803,10 @@ const af = /* @__PURE__ */ Le({
|
|
|
6803
6803
|
}), v = /* @__PURE__ */ new Map(), m = q(s.layout), p = q(), { observeResize: E, unobserveResize: z } = of(), O = nd();
|
|
6804
6804
|
O.on("resizeEvent", T), O.on("dragEvent", B), ka(() => {
|
|
6805
6805
|
c("layout-before-mount", m.value);
|
|
6806
|
-
}),
|
|
6806
|
+
}), nn(() => {
|
|
6807
6807
|
c("layout-mounted", m.value), et(() => {
|
|
6808
6808
|
pd(m.value), d.originalLayout = m.value, et(() => {
|
|
6809
|
-
ue(), p.value && E(p.value, od(P, 16)),
|
|
6809
|
+
ue(), p.value && E(p.value, od(P, 16)), en(m.value, s.verticalCompact), c("layout-updated", m.value), $(), P();
|
|
6810
6810
|
});
|
|
6811
6811
|
});
|
|
6812
6812
|
}), Sa(() => {
|
|
@@ -6903,7 +6903,7 @@ const af = /* @__PURE__ */ Le({
|
|
|
6903
6903
|
}
|
|
6904
6904
|
d.lastLayoutLength = m.value.length, ue();
|
|
6905
6905
|
}
|
|
6906
|
-
|
|
6906
|
+
en(m.value, s.verticalCompact), O.emit("updateWidth", d.width), $(), c("layout-updated", m.value);
|
|
6907
6907
|
}
|
|
6908
6908
|
}
|
|
6909
6909
|
function $() {
|
|
@@ -6932,7 +6932,7 @@ const af = /* @__PURE__ */ Le({
|
|
|
6932
6932
|
d.isDragging = !0;
|
|
6933
6933
|
}), O.emit("updateWidth", d.width)) : et(() => {
|
|
6934
6934
|
d.isDragging = !1;
|
|
6935
|
-
}), m.value = zo(m.value, de, he, ve, !0, s.preventCollision), s.restoreOnDrag ? (de.static = !0,
|
|
6935
|
+
}), m.value = zo(m.value, de, he, ve, !0, s.preventCollision), s.restoreOnDrag ? (de.static = !0, en(m.value, s.verticalCompact, J), de.static = !1) : en(m.value, s.verticalCompact), O.emit("compact"), $(), U === "dragend" && (J = void 0, c("layout-updated", m.value));
|
|
6936
6936
|
}
|
|
6937
6937
|
function C(U, re, he, ve, Se, Ie) {
|
|
6938
6938
|
let de = Qr(m.value, re);
|
|
@@ -6953,7 +6953,7 @@ const af = /* @__PURE__ */ Le({
|
|
|
6953
6953
|
d.isDragging = !0;
|
|
6954
6954
|
}), O.emit("updateWidth", d.width)) : U && et(() => {
|
|
6955
6955
|
d.isDragging = !1;
|
|
6956
|
-
}), s.responsive && ge(),
|
|
6956
|
+
}), s.responsive && ge(), en(m.value, s.verticalCompact), O.emit("compact"), $(), U === "resizeend" && c("layout-updated", m.value);
|
|
6957
6957
|
}
|
|
6958
6958
|
function ge() {
|
|
6959
6959
|
const U = gd(s.breakpoints, d.width);
|
|
@@ -6983,7 +6983,7 @@ const af = /* @__PURE__ */ Le({
|
|
|
6983
6983
|
ref_key: "wrapper",
|
|
6984
6984
|
ref: p,
|
|
6985
6985
|
class: "vgl-layout",
|
|
6986
|
-
style:
|
|
6986
|
+
style: kn(d.mergedStyle)
|
|
6987
6987
|
}, [
|
|
6988
6988
|
U.$slots.default ? ce(U.$slots, "default", { key: 0 }) : (k(!0), Q(Ee, { key: 1 }, Ne(m.value, (he) => (k(), A(Mo, ht({
|
|
6989
6989
|
key: he.i,
|
|
@@ -7024,7 +7024,7 @@ const sf = {
|
|
|
7024
7024
|
description: "显示数据统计概览",
|
|
7025
7025
|
defaultSize: { w: 12, h: 2 },
|
|
7026
7026
|
componentPath: "./containers/StatCard.vue",
|
|
7027
|
-
component:
|
|
7027
|
+
component: kt(() => import("./StatCard-BwTbMy4_.js"))
|
|
7028
7028
|
},
|
|
7029
7029
|
"quick-menu": {
|
|
7030
7030
|
name: "快捷入口",
|
|
@@ -7032,7 +7032,7 @@ const sf = {
|
|
|
7032
7032
|
description: "常用功能快捷入口",
|
|
7033
7033
|
defaultSize: { w: 12, h: 3 },
|
|
7034
7034
|
componentPath: "./containers/QuickMenu.vue",
|
|
7035
|
-
component:
|
|
7035
|
+
component: kt(() => import("./QuickMenu-Bxy7TyKw.js"))
|
|
7036
7036
|
},
|
|
7037
7037
|
"notice-list": {
|
|
7038
7038
|
name: "公告列表",
|
|
@@ -7040,7 +7040,47 @@ const sf = {
|
|
|
7040
7040
|
description: "系统公告和通知",
|
|
7041
7041
|
defaultSize: { w: 12, h: 3 },
|
|
7042
7042
|
componentPath: "./containers/NoticeList.vue",
|
|
7043
|
-
component:
|
|
7043
|
+
component: kt(() => import("./NoticeList-D-P810lX.js"))
|
|
7044
|
+
},
|
|
7045
|
+
"shopping-cart": {
|
|
7046
|
+
name: "购物车",
|
|
7047
|
+
icon: "icon-shopping-cart",
|
|
7048
|
+
description: "购物车与订单示例",
|
|
7049
|
+
defaultSize: { w: 12, h: 6 },
|
|
7050
|
+
componentPath: "./containers/ShoppingCart.vue",
|
|
7051
|
+
component: kt(() => import("./ShoppingCart-lZGjadLM.js"))
|
|
7052
|
+
},
|
|
7053
|
+
"banner-carousel": {
|
|
7054
|
+
name: "轮播横幅",
|
|
7055
|
+
icon: "icon-pic-center",
|
|
7056
|
+
description: "图片轮播活动推广",
|
|
7057
|
+
defaultSize: { w: 12, h: 2.5 },
|
|
7058
|
+
componentPath: "./containers/BannerCarousel.vue",
|
|
7059
|
+
component: kt(() => import("./BannerCarousel-afFuVVXz.js"))
|
|
7060
|
+
},
|
|
7061
|
+
"todo-list": {
|
|
7062
|
+
name: "待办事项",
|
|
7063
|
+
icon: "icon-check",
|
|
7064
|
+
description: "待办任务列表",
|
|
7065
|
+
defaultSize: { w: 12, h: 3 },
|
|
7066
|
+
componentPath: "./containers/TodoList.vue",
|
|
7067
|
+
component: kt(() => import("./TodoList-BGaVYuzF.js"))
|
|
7068
|
+
},
|
|
7069
|
+
"activity-feed": {
|
|
7070
|
+
name: "动态消息",
|
|
7071
|
+
icon: "icon-mail",
|
|
7072
|
+
description: "系统操作动态",
|
|
7073
|
+
defaultSize: { w: 12, h: 3 },
|
|
7074
|
+
componentPath: "./containers/ActivityFeed.vue",
|
|
7075
|
+
component: kt(() => import("./ActivityFeed-mHiHcj2r.js"))
|
|
7076
|
+
},
|
|
7077
|
+
"quick-actions": {
|
|
7078
|
+
name: "快捷操作",
|
|
7079
|
+
icon: "icon-appstore",
|
|
7080
|
+
description: "常用操作按钮组",
|
|
7081
|
+
defaultSize: { w: 12, h: 2.5 },
|
|
7082
|
+
componentPath: "./containers/QuickActions.vue",
|
|
7083
|
+
component: kt(() => import("./QuickActions-DDDwj0VY.js"))
|
|
7044
7084
|
}
|
|
7045
7085
|
};
|
|
7046
7086
|
let qo = {};
|
|
@@ -7055,7 +7095,7 @@ function lf(e, r) {
|
|
|
7055
7095
|
console.warn("非法路径");
|
|
7056
7096
|
return;
|
|
7057
7097
|
}
|
|
7058
|
-
m =
|
|
7098
|
+
m = kt(() => import(E)), qo[e] = {
|
|
7059
7099
|
name: a,
|
|
7060
7100
|
icon: s || "icon-appstore",
|
|
7061
7101
|
description: c || "",
|
|
@@ -7120,7 +7160,7 @@ const df = { class: "mobile-home" }, ff = { class: "grid-item-content h-100" },
|
|
|
7120
7160
|
},
|
|
7121
7161
|
setup(e) {
|
|
7122
7162
|
_e("menus", e.menus);
|
|
7123
|
-
const a = V("$API"), s = q([]), { run: c } =
|
|
7163
|
+
const a = V("$API"), s = q([]), { run: c } = on(
|
|
7124
7164
|
() => a.mobile.configInfo.post({}),
|
|
7125
7165
|
{
|
|
7126
7166
|
manual: !0,
|
|
@@ -7135,7 +7175,7 @@ const df = { class: "mobile-home" }, ff = { class: "grid-item-content h-100" },
|
|
|
7135
7175
|
}
|
|
7136
7176
|
}
|
|
7137
7177
|
);
|
|
7138
|
-
|
|
7178
|
+
nn(() => {
|
|
7139
7179
|
c();
|
|
7140
7180
|
});
|
|
7141
7181
|
const d = (v) => uf(v);
|
|
@@ -7163,7 +7203,7 @@ const df = { class: "mobile-home" }, ff = { class: "grid-item-content h-100" },
|
|
|
7163
7203
|
}, {
|
|
7164
7204
|
default: _(() => [
|
|
7165
7205
|
M("div", ff, [
|
|
7166
|
-
(k(), A(
|
|
7206
|
+
(k(), A(vn(d(p.componentId))))
|
|
7167
7207
|
])
|
|
7168
7208
|
]),
|
|
7169
7209
|
_: 2
|
|
@@ -7570,7 +7610,7 @@ function qf(e, r, a, s, c, d) {
|
|
|
7570
7610
|
(k(), A(Ts, {
|
|
7571
7611
|
include: e.$store.state.keepAlive.keepLiveRoute
|
|
7572
7612
|
}, [
|
|
7573
|
-
e.$store.state.keepAlive.routeShow ? (k(), A(
|
|
7613
|
+
e.$store.state.keepAlive.routeShow ? (k(), A(vn(m), {
|
|
7574
7614
|
key: e.$route.fullPath
|
|
7575
7615
|
})) : X("", !0)
|
|
7576
7616
|
], 1032, ["include"]))
|
|
@@ -7666,7 +7706,7 @@ const mh = /* @__PURE__ */ Oe(Qf, [["render", Zf]]), vh = {
|
|
|
7666
7706
|
setup(e) {
|
|
7667
7707
|
const r = V("$API"), a = Ke(), s = qe(), c = j(() => a.state.app.auth);
|
|
7668
7708
|
j(() => a.state.auth.userInfo), j(() => a.state.app.appLayoutType), j(() => a.state.app.casServerLoginUrl);
|
|
7669
|
-
const d = j(() => a.state.app.casServerLogoutUrl), v = lt(r.auth.logout), { run: m } =
|
|
7709
|
+
const d = j(() => a.state.app.casServerLogoutUrl), v = lt(r.auth.logout), { run: m } = on((O) => v[v.method](O), {
|
|
7670
7710
|
manual: !0,
|
|
7671
7711
|
onSuccess: (O) => {
|
|
7672
7712
|
c.value === "CAS" && (window.location.href = d.value);
|
|
@@ -8329,11 +8369,11 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8329
8369
|
"field-names": e.fieldNames,
|
|
8330
8370
|
"auto-expand-parent": te(c),
|
|
8331
8371
|
checkedKeys: te(v),
|
|
8332
|
-
"onUpdate:checkedKeys": ae[1] || (ae[1] = (ie) =>
|
|
8372
|
+
"onUpdate:checkedKeys": ae[1] || (ae[1] = (ie) => gn(v) ? v.value = ie : null),
|
|
8333
8373
|
selectedKeys: te(m),
|
|
8334
|
-
"onUpdate:selectedKeys": ae[2] || (ae[2] = (ie) =>
|
|
8374
|
+
"onUpdate:selectedKeys": ae[2] || (ae[2] = (ie) => gn(m) ? m.value = ie : null),
|
|
8335
8375
|
expandedKeys: te(p),
|
|
8336
|
-
"onUpdate:expandedKeys": ae[3] || (ae[3] = (ie) =>
|
|
8376
|
+
"onUpdate:expandedKeys": ae[3] || (ae[3] = (ie) => gn(p) ? p.value = ie : null),
|
|
8337
8377
|
onCheck: te(z),
|
|
8338
8378
|
onSelect: te(O),
|
|
8339
8379
|
onExpand: T,
|
|
@@ -8835,7 +8875,7 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8835
8875
|
}, 8, ["spinning", "error"]);
|
|
8836
8876
|
};
|
|
8837
8877
|
}
|
|
8838
|
-
}, $p = /* @__PURE__ */ Oe(Ap, [["__scopeId", "data-v-c2249548"]]),
|
|
8878
|
+
}, $p = /* @__PURE__ */ Oe(Ap, [["__scopeId", "data-v-c2249548"]]), St = (e) => {
|
|
8839
8879
|
if (typeof e == "string")
|
|
8840
8880
|
try {
|
|
8841
8881
|
if (!e.startsWith("0") && /^\d+$/.test(e)) {
|
|
@@ -8848,11 +8888,11 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8848
8888
|
}
|
|
8849
8889
|
else {
|
|
8850
8890
|
if (Array.isArray(e))
|
|
8851
|
-
return e.map((r) =>
|
|
8891
|
+
return e.map((r) => St(r));
|
|
8852
8892
|
if (typeof e == "object" && e !== null) {
|
|
8853
8893
|
const r = {};
|
|
8854
8894
|
for (const a in e)
|
|
8855
|
-
e.hasOwnProperty(a) && (r[a] =
|
|
8895
|
+
e.hasOwnProperty(a) && (r[a] = St(e[a]));
|
|
8856
8896
|
return r;
|
|
8857
8897
|
} else
|
|
8858
8898
|
return e == null && (e = []), e;
|
|
@@ -8918,19 +8958,19 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8918
8958
|
render() {
|
|
8919
8959
|
return this.vnodes;
|
|
8920
8960
|
}
|
|
8921
|
-
}), c = e, d = q([]), v = a, { apiObj: m, staticSelected: p, dynamicSelected: E, dynamicSelectedName: z, selectOptions: O, linkedFields: T, pageSize: B } = dt(c), R = q(
|
|
8961
|
+
}), c = e, d = q([]), v = a, { apiObj: m, staticSelected: p, dynamicSelected: E, dynamicSelectedName: z, selectOptions: O, linkedFields: T, pageSize: B } = dt(c), R = q(St(c.value));
|
|
8922
8962
|
Ce(() => c.value, (Y) => {
|
|
8923
|
-
R.value =
|
|
8963
|
+
R.value = St(Y), K();
|
|
8924
8964
|
});
|
|
8925
8965
|
const ne = j(() => d.value.filter((Y) => Y.sfxs != "0").map((Y) => ({
|
|
8926
8966
|
label: Y[c.fieldNames.label],
|
|
8927
8967
|
value: Y[c.fieldNames.value],
|
|
8928
8968
|
disabled: Y.sfky == "0",
|
|
8929
8969
|
...Y
|
|
8930
|
-
}))), { runAsync: G } =
|
|
8970
|
+
}))), { runAsync: G } = on((Y) => m.value[m.value.method]({ current: "1", pageSize: B.value, ...Y }), {
|
|
8931
8971
|
manual: !0,
|
|
8932
8972
|
onSuccess: async (Y) => {
|
|
8933
|
-
d.value =
|
|
8973
|
+
d.value = St(Y.data), K();
|
|
8934
8974
|
}
|
|
8935
8975
|
}), K = async () => {
|
|
8936
8976
|
if (!m.value?.url) return;
|
|
@@ -8941,7 +8981,7 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8941
8981
|
try {
|
|
8942
8982
|
const re = [];
|
|
8943
8983
|
for (const Se of U) {
|
|
8944
|
-
const Ie = T.value ? { [z.value]: Se, ...T.value } : { [z.value]: Se }, de = await m.value[m.value.method]({ current: "1", pageSize: 1, ...Ie }), He =
|
|
8984
|
+
const Ie = T.value ? { [z.value]: Se, ...T.value } : { [z.value]: Se }, de = await m.value[m.value.method]({ current: "1", pageSize: 1, ...Ie }), He = St(de?.data) || [];
|
|
8945
8985
|
re.push(...He);
|
|
8946
8986
|
}
|
|
8947
8987
|
const he = new Set(d.value.map((Se) => C(Se[ge]))), ve = re.filter((Se) => !he.has(C(Se[ge])));
|
|
@@ -8950,7 +8990,7 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8950
8990
|
console.warn("获取并合并选定项异常:", re);
|
|
8951
8991
|
}
|
|
8952
8992
|
};
|
|
8953
|
-
m.value.url ? G(T.value || {}) : O.value.length > 0 ? d.value =
|
|
8993
|
+
m.value.url ? G(T.value || {}) : O.value.length > 0 ? d.value = St(O.value) : d.value = St([{ value: "0", label: "星期日" }, { value: "1", label: "星期一" }, { value: "2", label: "星期二" }, { value: "3", label: "星期三" }, { value: "4", label: "星期四" }, { value: "5", label: "星期五" }, { value: "6", label: "星期六" }]);
|
|
8954
8994
|
const $ = async (Y) => {
|
|
8955
8995
|
if (m.value.url && E.value) {
|
|
8956
8996
|
const C = T.value ? { [z.value]: Y, ...T.value } : { [z.value]: Y };
|
|
@@ -8973,7 +9013,7 @@ const up = /* @__PURE__ */ Oe(sp, [["render", lp]]), cp = { class: "d-flex h-100
|
|
|
8973
9013
|
return ue.includes(ge) || Te.includes(ge);
|
|
8974
9014
|
};
|
|
8975
9015
|
return Ce(O.value, (Y) => {
|
|
8976
|
-
d.value =
|
|
9016
|
+
d.value = St(Y);
|
|
8977
9017
|
}), r({
|
|
8978
9018
|
sync: () => {
|
|
8979
9019
|
m.value.url && G(T.value || {});
|
|
@@ -9152,14 +9192,14 @@ const Fp = /* @__PURE__ */ Oe(Np, [["render", jp]]), Wp = { class: "color-select
|
|
|
9152
9192
|
emits: ["update:mobileVisible"],
|
|
9153
9193
|
setup(e, { emit: r }) {
|
|
9154
9194
|
const a = e, s = r, c = V("breakpoint", q(!1)), d = Is(), v = q(0);
|
|
9155
|
-
|
|
9195
|
+
nn(() => {
|
|
9156
9196
|
const B = d.default?.() || [];
|
|
9157
9197
|
v.value = B.length;
|
|
9158
9198
|
});
|
|
9159
9199
|
const m = q(window.innerWidth), p = () => {
|
|
9160
9200
|
m.value = window.innerWidth;
|
|
9161
9201
|
};
|
|
9162
|
-
|
|
9202
|
+
nn(() => {
|
|
9163
9203
|
window.addEventListener("resize", p), p();
|
|
9164
9204
|
}), xa(() => {
|
|
9165
9205
|
window.removeEventListener("resize", p);
|
|
@@ -9180,7 +9220,7 @@ const Fp = /* @__PURE__ */ Oe(Np, [["render", jp]]), Wp = { class: "color-select
|
|
|
9180
9220
|
direction: "horizontal"
|
|
9181
9221
|
}, {
|
|
9182
9222
|
default: _(() => [
|
|
9183
|
-
(k(!0), Q(Ee, null, Ne(z.value, (C, ge) => (k(), A(
|
|
9223
|
+
(k(!0), Q(Ee, null, Ne(z.value, (C, ge) => (k(), A(vn(C), { key: ge }))), 128)),
|
|
9184
9224
|
O.value.length > 0 ? (k(), A($, {
|
|
9185
9225
|
key: 0,
|
|
9186
9226
|
trigger: "click",
|
|
@@ -9194,7 +9234,7 @@ const Fp = /* @__PURE__ */ Oe(Np, [["render", jp]]), Wp = { class: "color-select
|
|
|
9194
9234
|
style: { width: "100%" }
|
|
9195
9235
|
}, {
|
|
9196
9236
|
default: _(() => [
|
|
9197
|
-
(k(!0), Q(Ee, null, Ne(O.value, (C, ge) => (k(), A(
|
|
9237
|
+
(k(!0), Q(Ee, null, Ne(O.value, (C, ge) => (k(), A(vn(C), {
|
|
9198
9238
|
key: "extra-" + ge,
|
|
9199
9239
|
style: { width: "100%" }
|
|
9200
9240
|
}))), 128)),
|
|
@@ -9280,7 +9320,7 @@ const Fp = /* @__PURE__ */ Oe(Np, [["render", jp]]), Wp = { class: "color-select
|
|
|
9280
9320
|
label: T(C)
|
|
9281
9321
|
}, {
|
|
9282
9322
|
default: _(() => [
|
|
9283
|
-
(k(), A(
|
|
9323
|
+
(k(), A(vn(C)))
|
|
9284
9324
|
]),
|
|
9285
9325
|
_: 2
|
|
9286
9326
|
}, 1032, ["label"]))), 128))
|
|
@@ -9396,9 +9436,9 @@ const Fp = /* @__PURE__ */ Oe(Np, [["render", jp]]), Wp = { class: "color-select
|
|
|
9396
9436
|
"show-quick-jumper": te(E),
|
|
9397
9437
|
total: Number(te(s)),
|
|
9398
9438
|
current: te(d),
|
|
9399
|
-
"onUpdate:current": T[0] || (T[0] = (K) =>
|
|
9439
|
+
"onUpdate:current": T[0] || (T[0] = (K) => gn(d) ? d.value = K : null),
|
|
9400
9440
|
pageSize: te(v),
|
|
9401
|
-
"onUpdate:pageSize": T[1] || (T[1] = (K) =>
|
|
9441
|
+
"onUpdate:pageSize": T[1] || (T[1] = (K) => gn(v) ? v.value = K : null)
|
|
9402
9442
|
}, null, 8, ["simple", "show-size-changer", "show-quick-jumper", "total", "current", "pageSize"])
|
|
9403
9443
|
]),
|
|
9404
9444
|
x(G, { size: "middle" }, {
|