@prefabs.tech/vue3-ui 0.12.0
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/LICENSE +21 -0
- package/dist/PrefabsTechVue3UI.es.js +4151 -0
- package/dist/PrefabsTechVue3UI.umd.js +10 -0
- package/dist/src/Accordion/Index.vue.d.ts +40 -0
- package/dist/src/Accordion/Index.vue.d.ts.map +1 -0
- package/dist/src/Accordion/__tests__/component/Index.test.d.ts +2 -0
- package/dist/src/Accordion/__tests__/component/Index.test.d.ts.map +1 -0
- package/dist/src/Accordion/__tests__/snapshot/Index.test.d.ts +2 -0
- package/dist/src/Accordion/__tests__/snapshot/Index.test.d.ts.map +1 -0
- package/dist/src/Badge/Index.vue.d.ts +55 -0
- package/dist/src/Badge/Index.vue.d.ts.map +1 -0
- package/dist/src/Button/Index.vue.d.ts +131 -0
- package/dist/src/Button/Index.vue.d.ts.map +1 -0
- package/dist/src/Button/__tests__/snapshot/Button.test.d.ts +2 -0
- package/dist/src/Button/__tests__/snapshot/Button.test.d.ts.map +1 -0
- package/dist/src/Card/Index.vue.d.ts +24 -0
- package/dist/src/Card/Index.vue.d.ts.map +1 -0
- package/dist/src/ConfirmationModal/Index.vue.d.ts +45 -0
- package/dist/src/ConfirmationModal/Index.vue.d.ts.map +1 -0
- package/dist/src/Data/Index.vue.d.ts +54 -0
- package/dist/src/Data/Index.vue.d.ts.map +1 -0
- package/dist/src/Divider/Index.vue.d.ts +17 -0
- package/dist/src/Divider/Index.vue.d.ts.map +1 -0
- package/dist/src/Dropdown/Index.vue.d.ts +44 -0
- package/dist/src/Dropdown/Index.vue.d.ts.map +1 -0
- package/dist/src/Errors/Error.vue.d.ts +15 -0
- package/dist/src/Errors/Error.vue.d.ts.map +1 -0
- package/dist/src/Errors/Index.vue.d.ts +15 -0
- package/dist/src/Errors/Index.vue.d.ts.map +1 -0
- package/dist/src/FileCard/ConfirmationFileActions.vue.d.ts +53 -0
- package/dist/src/FileCard/ConfirmationFileActions.vue.d.ts.map +1 -0
- package/dist/src/FileCard/Index.vue.d.ts +157 -0
- package/dist/src/FileCard/Index.vue.d.ts.map +1 -0
- package/dist/src/FilesList/Index.vue.d.ts +152 -0
- package/dist/src/FilesList/Index.vue.d.ts.map +1 -0
- package/dist/src/FormWidgets/DebouncedInput/Index.vue.d.ts +71 -0
- package/dist/src/FormWidgets/DebouncedInput/Index.vue.d.ts.map +1 -0
- package/dist/src/GridContainer/Index.vue.d.ts +10 -0
- package/dist/src/GridContainer/Index.vue.d.ts.map +1 -0
- package/dist/src/LoadingPage/Index.vue.d.ts +15 -0
- package/dist/src/LoadingPage/Index.vue.d.ts.map +1 -0
- package/dist/src/Message/Index.vue.d.ts +62 -0
- package/dist/src/Message/Index.vue.d.ts.map +1 -0
- package/dist/src/Modal/Index.vue.d.ts +44 -0
- package/dist/src/Modal/Index.vue.d.ts.map +1 -0
- package/dist/src/Page/Index.vue.d.ts +65 -0
- package/dist/src/Page/Index.vue.d.ts.map +1 -0
- package/dist/src/Page/PageTitle.vue.d.ts +23 -0
- package/dist/src/Page/PageTitle.vue.d.ts.map +1 -0
- package/dist/src/Popup/Index.vue.d.ts +46 -0
- package/dist/src/Popup/Index.vue.d.ts.map +1 -0
- package/dist/src/ResponsiveMenu/Index.vue.d.ts +36 -0
- package/dist/src/ResponsiveMenu/Index.vue.d.ts.map +1 -0
- package/dist/src/SSOButtons/BaseButton.vue.d.ts +76 -0
- package/dist/src/SSOButtons/BaseButton.vue.d.ts.map +1 -0
- package/dist/src/SSOButtons/FacebookSignInButton.vue.d.ts +43 -0
- package/dist/src/SSOButtons/FacebookSignInButton.vue.d.ts.map +1 -0
- package/dist/src/SSOButtons/GoogleSignInButton.vue.d.ts +43 -0
- package/dist/src/SSOButtons/GoogleSignInButton.vue.d.ts.map +1 -0
- package/dist/src/SSOButtons/index.d.ts +4 -0
- package/dist/src/SSOButtons/index.d.ts.map +1 -0
- package/dist/src/SortableList/Index.vue.d.ts +24 -0
- package/dist/src/SortableList/Index.vue.d.ts.map +1 -0
- package/dist/src/Stepper/Index.vue.d.ts +41 -0
- package/dist/src/Stepper/Index.vue.d.ts.map +1 -0
- package/dist/src/TabView/Index.vue.d.ts +97 -0
- package/dist/src/TabView/Index.vue.d.ts.map +1 -0
- package/dist/src/TabView/types.d.ts +16 -0
- package/dist/src/TabView/types.d.ts.map +1 -0
- package/dist/src/TabView/utils.d.ts +5 -0
- package/dist/src/TabView/utils.d.ts.map +1 -0
- package/dist/src/TabbedPanel/Index.vue.d.ts +38 -0
- package/dist/src/TabbedPanel/Index.vue.d.ts.map +1 -0
- package/dist/src/Tooltip/Index.vue.d.ts +61 -0
- package/dist/src/Tooltip/Index.vue.d.ts.map +1 -0
- package/dist/src/YoutubeFacade/Index.vue.d.ts +55 -0
- package/dist/src/YoutubeFacade/Index.vue.d.ts.map +1 -0
- package/dist/src/components/LoadingButton.vue.d.ts +34 -0
- package/dist/src/components/LoadingButton.vue.d.ts.map +1 -0
- package/dist/src/components/LoadingIcon.vue.d.ts +3 -0
- package/dist/src/components/LoadingIcon.vue.d.ts.map +1 -0
- package/dist/src/components/SubPane.vue.d.ts +3 -0
- package/dist/src/components/SubPane.vue.d.ts.map +1 -0
- package/dist/src/index.d.ts +39 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/types/dropdown-menu.d.ts +11 -0
- package/dist/src/types/dropdown-menu.d.ts.map +1 -0
- package/dist/src/types/error.d.ts +6 -0
- package/dist/src/types/error.d.ts.map +1 -0
- package/dist/src/types/file.d.ts +33 -0
- package/dist/src/types/file.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +5 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/stepper.d.ts +17 -0
- package/dist/src/types/stepper.d.ts.map +1 -0
- package/dist/src/utils/date.d.ts +3 -0
- package/dist/src/utils/date.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +5 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/overlay.d.ts +3 -0
- package/dist/src/utils/overlay.d.ts.map +1 -0
- package/dist/src/utils/storage.d.ts +3 -0
- package/dist/src/utils/storage.d.ts.map +1 -0
- package/dist/src/utils/useDebouncedValue.d.ts +4 -0
- package/dist/src/utils/useDebouncedValue.d.ts.map +1 -0
- package/dist/vue3-ui.css +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,4151 @@
|
|
|
1
|
+
import { defineComponent as A, ref as _, useSlots as Se, createElementBlock as p, createCommentVNode as k, unref as H, openBlock as d, normalizeClass as N, Fragment as q, renderList as se, createElementVNode as h, createVNode as le, withDirectives as bt, vShow as Ct, toDisplayString as O, Transition as gn, withCtx as G, createBlock as j, resolveDynamicComponent as _e, computed as Y, renderSlot as I, createTextVNode as Q, onMounted as yt, nextTick as Je, getCurrentInstance as Gt, watch as Ve, getCurrentScope as Vn, onScopeDispose as jn, hasInjectionContext as mn, inject as zn, toValue as Ce, shallowRef as Ft, watchEffect as Rn, onBeforeUnmount as vn, normalizeStyle as Ne, mergeProps as be, createSlots as Hn, resolveComponent as bn, h as Qt, withModifiers as Zn } from "vue";
|
|
2
|
+
const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded", "onClick"], Yn = ["src"], Un = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "pane",
|
|
5
|
+
role: "region"
|
|
6
|
+
}, Xn = {
|
|
7
|
+
name: "Accordion"
|
|
8
|
+
}, R0 = /* @__PURE__ */ A({
|
|
9
|
+
...Xn,
|
|
10
|
+
props: {
|
|
11
|
+
canSelfCollapse: {
|
|
12
|
+
default: !1,
|
|
13
|
+
required: !1,
|
|
14
|
+
type: Boolean
|
|
15
|
+
},
|
|
16
|
+
defaultIndex: {
|
|
17
|
+
default: 0,
|
|
18
|
+
required: !1,
|
|
19
|
+
type: Number
|
|
20
|
+
},
|
|
21
|
+
direction: {
|
|
22
|
+
default: "vertical",
|
|
23
|
+
required: !1,
|
|
24
|
+
type: String
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
const t = e, n = _(t.defaultIndex), o = (l) => {
|
|
29
|
+
!t.canSelfCollapse || n.value !== l ? n.value = l : n.value = -1;
|
|
30
|
+
}, i = Se(), a = i?.default ? i.default().filter((l) => l?.props?.title) : null;
|
|
31
|
+
return (l, r) => H(a) ? (d(), p("div", {
|
|
32
|
+
key: 0,
|
|
33
|
+
class: N(["accordion", t.direction]),
|
|
34
|
+
"aria-orientation": t.direction
|
|
35
|
+
}, [
|
|
36
|
+
(d(!0), p(q, null, se(H(a), (s, u) => (d(), p("section", {
|
|
37
|
+
key: u,
|
|
38
|
+
"data-expanded": u === n.value
|
|
39
|
+
}, [
|
|
40
|
+
h("header", null, [
|
|
41
|
+
h("button", {
|
|
42
|
+
tabindex: "0",
|
|
43
|
+
type: "button",
|
|
44
|
+
"aria-expanded": u === n.value,
|
|
45
|
+
onClick: (f) => o(u)
|
|
46
|
+
}, [
|
|
47
|
+
bt(h("img", {
|
|
48
|
+
src: s?.props?.icon,
|
|
49
|
+
class: "icon"
|
|
50
|
+
}, null, 8, Yn), [
|
|
51
|
+
[Ct, s?.props?.icon]
|
|
52
|
+
]),
|
|
53
|
+
h("span", null, O(s?.props?.title), 1)
|
|
54
|
+
], 8, Wn)
|
|
55
|
+
]),
|
|
56
|
+
le(gn, {
|
|
57
|
+
appear: "",
|
|
58
|
+
name: "expand"
|
|
59
|
+
}, {
|
|
60
|
+
default: G(() => [
|
|
61
|
+
u === n.value ? (d(), p("div", Un, [
|
|
62
|
+
(d(), j(_e(s)))
|
|
63
|
+
])) : k("", !0)
|
|
64
|
+
]),
|
|
65
|
+
_: 2
|
|
66
|
+
}, 1024)
|
|
67
|
+
], 8, qn))), 128))
|
|
68
|
+
], 10, Gn)) : k("", !0);
|
|
69
|
+
}
|
|
70
|
+
}), Kn = {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: "icon-left"
|
|
73
|
+
}, Qn = {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "label"
|
|
76
|
+
}, Jn = {
|
|
77
|
+
key: 2,
|
|
78
|
+
class: "icon-right"
|
|
79
|
+
}, eo = {
|
|
80
|
+
name: "BadgeComponent"
|
|
81
|
+
}, to = /* @__PURE__ */ A({
|
|
82
|
+
...eo,
|
|
83
|
+
props: {
|
|
84
|
+
iconLeft: {
|
|
85
|
+
default: null,
|
|
86
|
+
type: String
|
|
87
|
+
},
|
|
88
|
+
iconRight: {
|
|
89
|
+
default: null,
|
|
90
|
+
type: String
|
|
91
|
+
},
|
|
92
|
+
label: {
|
|
93
|
+
default: null,
|
|
94
|
+
type: String
|
|
95
|
+
},
|
|
96
|
+
rounded: Boolean,
|
|
97
|
+
severity: {
|
|
98
|
+
default: "primary",
|
|
99
|
+
type: String,
|
|
100
|
+
validator: (e) => [
|
|
101
|
+
"primary",
|
|
102
|
+
"secondary",
|
|
103
|
+
"alternate",
|
|
104
|
+
"success",
|
|
105
|
+
"danger",
|
|
106
|
+
"warning"
|
|
107
|
+
].includes(e)
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
setup(e) {
|
|
111
|
+
const t = e, n = Se(), o = Y(() => ["badge", t.rounded && "rounded", t.severity].filter(Boolean).join(" "));
|
|
112
|
+
return (i, a) => (d(), p("span", {
|
|
113
|
+
class: N(o.value)
|
|
114
|
+
}, [
|
|
115
|
+
e.iconLeft || H(n).iconLeft ? (d(), p("span", Kn, [
|
|
116
|
+
I(i.$slots, "iconLeft", {}, () => [
|
|
117
|
+
h("i", {
|
|
118
|
+
class: N(e.iconLeft)
|
|
119
|
+
}, null, 2)
|
|
120
|
+
])
|
|
121
|
+
])) : k("", !0),
|
|
122
|
+
e.label ? (d(), p("div", Qn, O(e.label), 1)) : k("", !0),
|
|
123
|
+
e.iconRight || H(n).iconRight ? (d(), p("span", Jn, [
|
|
124
|
+
I(i.$slots, "iconRight", {}, () => [
|
|
125
|
+
h("i", {
|
|
126
|
+
class: N(e.iconRight)
|
|
127
|
+
}, null, 2)
|
|
128
|
+
])
|
|
129
|
+
])) : k("", !0)
|
|
130
|
+
], 2));
|
|
131
|
+
}
|
|
132
|
+
}), no = {
|
|
133
|
+
name: "LoadingIcon"
|
|
134
|
+
}, et = (e, t) => {
|
|
135
|
+
const n = e.__vccOpts || e;
|
|
136
|
+
for (const [o, i] of t)
|
|
137
|
+
n[o] = i;
|
|
138
|
+
return n;
|
|
139
|
+
}, oo = { class: "loading" };
|
|
140
|
+
function io(e, t, n, o, i, a) {
|
|
141
|
+
return d(), p("div", oo, "Loading");
|
|
142
|
+
}
|
|
143
|
+
const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef5"]]), ao = {
|
|
144
|
+
key: 0,
|
|
145
|
+
class: "icon-left"
|
|
146
|
+
}, lo = {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "label"
|
|
149
|
+
}, ro = {
|
|
150
|
+
key: 2,
|
|
151
|
+
class: "icon-right"
|
|
152
|
+
}, so = {
|
|
153
|
+
name: "ButtonElement"
|
|
154
|
+
}, he = /* @__PURE__ */ A({
|
|
155
|
+
...so,
|
|
156
|
+
props: {
|
|
157
|
+
ariaLabel: {
|
|
158
|
+
default: "button",
|
|
159
|
+
type: String
|
|
160
|
+
},
|
|
161
|
+
disabled: {
|
|
162
|
+
default: !1,
|
|
163
|
+
type: Boolean
|
|
164
|
+
},
|
|
165
|
+
iconLeft: {
|
|
166
|
+
default: null,
|
|
167
|
+
type: [String, Boolean]
|
|
168
|
+
},
|
|
169
|
+
iconRight: {
|
|
170
|
+
default: null,
|
|
171
|
+
type: [String, Boolean]
|
|
172
|
+
},
|
|
173
|
+
label: {
|
|
174
|
+
default: null,
|
|
175
|
+
type: String
|
|
176
|
+
},
|
|
177
|
+
loading: {
|
|
178
|
+
default: !1,
|
|
179
|
+
type: Boolean
|
|
180
|
+
},
|
|
181
|
+
rounded: {
|
|
182
|
+
default: !1,
|
|
183
|
+
type: Boolean
|
|
184
|
+
},
|
|
185
|
+
severity: {
|
|
186
|
+
default: "primary",
|
|
187
|
+
type: String,
|
|
188
|
+
validator: (e) => [
|
|
189
|
+
"primary",
|
|
190
|
+
"secondary",
|
|
191
|
+
"alternate",
|
|
192
|
+
"success",
|
|
193
|
+
"danger",
|
|
194
|
+
"warning"
|
|
195
|
+
].includes(e)
|
|
196
|
+
},
|
|
197
|
+
size: {
|
|
198
|
+
default: "medium",
|
|
199
|
+
type: String,
|
|
200
|
+
validator: (e) => ["small", "medium", "large"].includes(e)
|
|
201
|
+
},
|
|
202
|
+
to: {
|
|
203
|
+
default: null,
|
|
204
|
+
type: String
|
|
205
|
+
},
|
|
206
|
+
title: {
|
|
207
|
+
default: null,
|
|
208
|
+
type: String
|
|
209
|
+
},
|
|
210
|
+
variant: {
|
|
211
|
+
default: "filled",
|
|
212
|
+
type: String,
|
|
213
|
+
validator: (e) => ["outlined", "filled", "textOnly"].includes(e)
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
emits: ["click"],
|
|
217
|
+
setup(e, { emit: t }) {
|
|
218
|
+
const n = t, o = e, i = Se(), a = Y(() => [
|
|
219
|
+
"button",
|
|
220
|
+
o.severity,
|
|
221
|
+
o.size,
|
|
222
|
+
o.variant === "textOnly" ? "text-only" : o.variant,
|
|
223
|
+
!(o.label || i.label) && "icon-only",
|
|
224
|
+
o.loading && "loading",
|
|
225
|
+
o.rounded && "rounded",
|
|
226
|
+
r.value && "disabled"
|
|
227
|
+
].filter(Boolean).join(" ")), l = Y(() => o.to ? "link" : "button"), r = Y(() => o.disabled || o.loading);
|
|
228
|
+
function s() {
|
|
229
|
+
n("click");
|
|
230
|
+
}
|
|
231
|
+
return (u, f) => (d(), j(_e(e.to ? "a" : "button"), {
|
|
232
|
+
"aria-label": e.ariaLabel,
|
|
233
|
+
class: N(a.value),
|
|
234
|
+
disabled: !e.to && r.value,
|
|
235
|
+
href: e.to && !r.value ? e.to : null,
|
|
236
|
+
role: l.value,
|
|
237
|
+
title: e.title,
|
|
238
|
+
onClick: f[0] || (f[0] = (c) => !e.to && s())
|
|
239
|
+
}, {
|
|
240
|
+
default: G(() => [
|
|
241
|
+
e.iconLeft || H(i).iconLeft ? (d(), p("span", ao, [
|
|
242
|
+
I(u.$slots, "iconLeft", {}, () => [
|
|
243
|
+
h("i", {
|
|
244
|
+
class: N(e.iconLeft)
|
|
245
|
+
}, null, 2)
|
|
246
|
+
])
|
|
247
|
+
])) : k("", !0),
|
|
248
|
+
u.$slots.label || e.label ? (d(), p("div", lo, [
|
|
249
|
+
I(u.$slots, "label", {}, () => [
|
|
250
|
+
h("span", null, O(e.label), 1)
|
|
251
|
+
])
|
|
252
|
+
])) : k("", !0),
|
|
253
|
+
e.iconRight || H(i).iconRight ? (d(), p("span", ro, [
|
|
254
|
+
I(u.$slots, "iconRight", {}, () => [
|
|
255
|
+
h("i", {
|
|
256
|
+
class: N(e.iconRight)
|
|
257
|
+
}, null, 2)
|
|
258
|
+
])
|
|
259
|
+
])) : k("", !0),
|
|
260
|
+
e.loading ? (d(), j(wt, {
|
|
261
|
+
key: 3,
|
|
262
|
+
class: "loading-button"
|
|
263
|
+
})) : k("", !0)
|
|
264
|
+
]),
|
|
265
|
+
_: 3
|
|
266
|
+
}, 8, ["aria-label", "class", "disabled", "href", "role", "title"]));
|
|
267
|
+
}
|
|
268
|
+
}), uo = { class: "card" }, co = {
|
|
269
|
+
key: 0,
|
|
270
|
+
class: "card-header"
|
|
271
|
+
}, fo = { class: "card-title" }, ho = { class: "card-body" }, po = {
|
|
272
|
+
key: 1,
|
|
273
|
+
class: "card-footer"
|
|
274
|
+
}, go = {
|
|
275
|
+
name: "Card"
|
|
276
|
+
}, mo = /* @__PURE__ */ A({
|
|
277
|
+
...go,
|
|
278
|
+
props: {
|
|
279
|
+
title: {
|
|
280
|
+
type: String,
|
|
281
|
+
default: void 0
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
setup(e) {
|
|
285
|
+
return (t, n) => (d(), p("div", uo, [
|
|
286
|
+
t.$slots.header || e.title ? (d(), p("header", co, [
|
|
287
|
+
I(t.$slots, "header", {}, () => [
|
|
288
|
+
h("h3", fo, O(e.title), 1)
|
|
289
|
+
])
|
|
290
|
+
])) : k("", !0),
|
|
291
|
+
h("div", ho, [
|
|
292
|
+
I(t.$slots, "default")
|
|
293
|
+
]),
|
|
294
|
+
t.$slots.footer ? (d(), p("footer", po, [
|
|
295
|
+
I(t.$slots, "footer")
|
|
296
|
+
])) : k("", !0)
|
|
297
|
+
]));
|
|
298
|
+
}
|
|
299
|
+
}), vo = { class: "label" }, bo = { class: "value" }, Co = {
|
|
300
|
+
name: "DataElement"
|
|
301
|
+
}, H0 = /* @__PURE__ */ A({
|
|
302
|
+
...Co,
|
|
303
|
+
props: {
|
|
304
|
+
caption: {
|
|
305
|
+
type: String,
|
|
306
|
+
required: !0
|
|
307
|
+
},
|
|
308
|
+
direction: {
|
|
309
|
+
default: "vertical",
|
|
310
|
+
type: String,
|
|
311
|
+
validator: (e) => ["horizontal", "vertical"].includes(e)
|
|
312
|
+
},
|
|
313
|
+
mode: {
|
|
314
|
+
default: "attr",
|
|
315
|
+
type: String,
|
|
316
|
+
validator: (e) => ["attr", "stat"].includes(e)
|
|
317
|
+
},
|
|
318
|
+
value: {
|
|
319
|
+
default: "",
|
|
320
|
+
type: [String, Number]
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
setup(e) {
|
|
324
|
+
return (t, n) => (d(), p("div", {
|
|
325
|
+
class: N([
|
|
326
|
+
"data",
|
|
327
|
+
{ "data-stat": e.mode === "stat" },
|
|
328
|
+
`direction-${e.direction}`
|
|
329
|
+
])
|
|
330
|
+
}, [
|
|
331
|
+
h("div", vo, [
|
|
332
|
+
I(t.$slots, "caption", {}, () => [
|
|
333
|
+
Q(O(e.caption), 1)
|
|
334
|
+
])
|
|
335
|
+
]),
|
|
336
|
+
h("div", bo, [
|
|
337
|
+
I(t.$slots, "value", {}, () => [
|
|
338
|
+
Q(O(e.value), 1)
|
|
339
|
+
])
|
|
340
|
+
])
|
|
341
|
+
], 2));
|
|
342
|
+
}
|
|
343
|
+
}), yo = ["disabled"], wo = { class: "label" }, So = {
|
|
344
|
+
name: "LoadingButton"
|
|
345
|
+
}, ko = /* @__PURE__ */ A({
|
|
346
|
+
...So,
|
|
347
|
+
props: {
|
|
348
|
+
disabled: {
|
|
349
|
+
type: Boolean,
|
|
350
|
+
default: !1
|
|
351
|
+
},
|
|
352
|
+
label: {
|
|
353
|
+
type: String,
|
|
354
|
+
required: !0
|
|
355
|
+
},
|
|
356
|
+
loading: {
|
|
357
|
+
type: Boolean,
|
|
358
|
+
default: !1
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
emits: ["click"],
|
|
362
|
+
setup(e) {
|
|
363
|
+
return (t, n) => (d(), p("button", {
|
|
364
|
+
disabled: e.disabled || e.loading,
|
|
365
|
+
class: N(["loading-button", { loading: e.loading }]),
|
|
366
|
+
onClick: n[0] || (n[0] = (o) => t.$emit("click"))
|
|
367
|
+
}, [
|
|
368
|
+
h("div", wo, [
|
|
369
|
+
h("span", null, O(e.label), 1)
|
|
370
|
+
]),
|
|
371
|
+
e.loading ? (d(), j(wt, { key: 0 })) : k("", !0)
|
|
372
|
+
], 10, yo));
|
|
373
|
+
}
|
|
374
|
+
}), $o = /* @__PURE__ */ et(ko, [["__scopeId", "data-v-3fdbc7b3"]]), Eo = {
|
|
375
|
+
name: "SubPane"
|
|
376
|
+
}, Do = { class: "sub-pane" };
|
|
377
|
+
function To(e, t, n, o, i, a) {
|
|
378
|
+
return d(), p("div", Do);
|
|
379
|
+
}
|
|
380
|
+
const Z0 = /* @__PURE__ */ et(Eo, [["render", To], ["__scopeId", "data-v-bf8003ec"]]);
|
|
381
|
+
function xo(e) {
|
|
382
|
+
return Vn() ? (jn(e), !0) : !1;
|
|
383
|
+
}
|
|
384
|
+
const $t = /* @__PURE__ */ new WeakMap(), Lo = (...e) => {
|
|
385
|
+
var t;
|
|
386
|
+
const n = e[0], o = (t = Gt()) == null ? void 0 : t.proxy;
|
|
387
|
+
if (o == null && !mn())
|
|
388
|
+
throw new Error("injectLocal must be called in setup");
|
|
389
|
+
return o && $t.has(o) && n in $t.get(o) ? $t.get(o)[n] : zn(...e);
|
|
390
|
+
}, Cn = typeof window < "u" && typeof document < "u";
|
|
391
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
392
|
+
const Oo = Object.prototype.toString, Mo = (e) => Oo.call(e) === "[object Object]", Be = () => {
|
|
393
|
+
}, _o = /* @__PURE__ */ Bo();
|
|
394
|
+
function Bo() {
|
|
395
|
+
var e, t;
|
|
396
|
+
return Cn && ((e = window?.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window?.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
397
|
+
}
|
|
398
|
+
function Jt(e) {
|
|
399
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
400
|
+
}
|
|
401
|
+
function Io(e) {
|
|
402
|
+
return Gt();
|
|
403
|
+
}
|
|
404
|
+
function Et(e) {
|
|
405
|
+
return Array.isArray(e) ? e : [e];
|
|
406
|
+
}
|
|
407
|
+
function Po(e, t = !0, n) {
|
|
408
|
+
Io() ? yt(e, n) : t ? e() : Je(e);
|
|
409
|
+
}
|
|
410
|
+
function Ao(e, t, n) {
|
|
411
|
+
return Ve(
|
|
412
|
+
e,
|
|
413
|
+
t,
|
|
414
|
+
{
|
|
415
|
+
...n,
|
|
416
|
+
immediate: !0
|
|
417
|
+
}
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
const St = Cn ? window : void 0;
|
|
421
|
+
function Ze(e) {
|
|
422
|
+
var t;
|
|
423
|
+
const n = Ce(e);
|
|
424
|
+
return (t = n?.$el) != null ? t : n;
|
|
425
|
+
}
|
|
426
|
+
function De(...e) {
|
|
427
|
+
const t = [], n = () => {
|
|
428
|
+
t.forEach((r) => r()), t.length = 0;
|
|
429
|
+
}, o = (r, s, u, f) => (r.addEventListener(s, u, f), () => r.removeEventListener(s, u, f)), i = Y(() => {
|
|
430
|
+
const r = Et(Ce(e[0])).filter((s) => s != null);
|
|
431
|
+
return r.every((s) => typeof s != "string") ? r : void 0;
|
|
432
|
+
}), a = Ao(
|
|
433
|
+
() => {
|
|
434
|
+
var r, s;
|
|
435
|
+
return [
|
|
436
|
+
(s = (r = i.value) == null ? void 0 : r.map((u) => Ze(u))) != null ? s : [St].filter((u) => u != null),
|
|
437
|
+
Et(Ce(i.value ? e[1] : e[0])),
|
|
438
|
+
Et(H(i.value ? e[2] : e[1])),
|
|
439
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
440
|
+
Ce(i.value ? e[3] : e[2])
|
|
441
|
+
];
|
|
442
|
+
},
|
|
443
|
+
([r, s, u, f]) => {
|
|
444
|
+
if (n(), !r?.length || !s?.length || !u?.length)
|
|
445
|
+
return;
|
|
446
|
+
const c = Mo(f) ? { ...f } : f;
|
|
447
|
+
t.push(
|
|
448
|
+
...r.flatMap(
|
|
449
|
+
(v) => s.flatMap(
|
|
450
|
+
($) => u.map((w) => o(v, $, w, c))
|
|
451
|
+
)
|
|
452
|
+
)
|
|
453
|
+
);
|
|
454
|
+
},
|
|
455
|
+
{ flush: "post" }
|
|
456
|
+
), l = () => {
|
|
457
|
+
a(), n();
|
|
458
|
+
};
|
|
459
|
+
return xo(n), l;
|
|
460
|
+
}
|
|
461
|
+
let en = !1;
|
|
462
|
+
function qt(e, t, n = {}) {
|
|
463
|
+
const { window: o = St, ignore: i = [], capture: a = !0, detectIframe: l = !1, controls: r = !1 } = n;
|
|
464
|
+
if (!o)
|
|
465
|
+
return r ? { stop: Be, cancel: Be, trigger: Be } : Be;
|
|
466
|
+
if (_o && !en) {
|
|
467
|
+
en = !0;
|
|
468
|
+
const E = { passive: !0 };
|
|
469
|
+
Array.from(o.document.body.children).forEach((D) => De(D, "click", Be, E)), De(o.document.documentElement, "click", Be, E);
|
|
470
|
+
}
|
|
471
|
+
let s = !0;
|
|
472
|
+
const u = (E) => Ce(i).some((D) => {
|
|
473
|
+
if (typeof D == "string")
|
|
474
|
+
return Array.from(o.document.querySelectorAll(D)).some((b) => b === E.target || E.composedPath().includes(b));
|
|
475
|
+
{
|
|
476
|
+
const b = Ze(D);
|
|
477
|
+
return b && (E.target === b || E.composedPath().includes(b));
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
function f(E) {
|
|
481
|
+
const D = Ce(E);
|
|
482
|
+
return D && D.$.subTree.shapeFlag === 16;
|
|
483
|
+
}
|
|
484
|
+
function c(E, D) {
|
|
485
|
+
const b = Ce(E), C = b.$.subTree && b.$.subTree.children;
|
|
486
|
+
return C == null || !Array.isArray(C) ? !1 : C.some((g) => g.el === D.target || D.composedPath().includes(g.el));
|
|
487
|
+
}
|
|
488
|
+
const v = (E) => {
|
|
489
|
+
const D = Ze(e);
|
|
490
|
+
if (E.target != null && !(!(D instanceof Element) && f(e) && c(e, E)) && !(!D || D === E.target || E.composedPath().includes(D))) {
|
|
491
|
+
if ("detail" in E && E.detail === 0 && (s = !u(E)), !s) {
|
|
492
|
+
s = !0;
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
t(E);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
let $ = !1;
|
|
499
|
+
const w = [
|
|
500
|
+
De(o, "click", (E) => {
|
|
501
|
+
$ || ($ = !0, setTimeout(() => {
|
|
502
|
+
$ = !1;
|
|
503
|
+
}, 0), v(E));
|
|
504
|
+
}, { passive: !0, capture: a }),
|
|
505
|
+
De(o, "pointerdown", (E) => {
|
|
506
|
+
const D = Ze(e);
|
|
507
|
+
s = !u(E) && !!(D && !E.composedPath().includes(D));
|
|
508
|
+
}, { passive: !0 }),
|
|
509
|
+
l && De(o, "blur", (E) => {
|
|
510
|
+
setTimeout(() => {
|
|
511
|
+
var D;
|
|
512
|
+
const b = Ze(e);
|
|
513
|
+
((D = o.document.activeElement) == null ? void 0 : D.tagName) === "IFRAME" && !b?.contains(o.document.activeElement) && t(E);
|
|
514
|
+
}, 0);
|
|
515
|
+
}, { passive: !0 })
|
|
516
|
+
].filter(Boolean), M = () => w.forEach((E) => E());
|
|
517
|
+
return r ? {
|
|
518
|
+
stop: M,
|
|
519
|
+
cancel: () => {
|
|
520
|
+
s = !1;
|
|
521
|
+
},
|
|
522
|
+
trigger: (E) => {
|
|
523
|
+
s = !0, v(E), s = !1;
|
|
524
|
+
}
|
|
525
|
+
} : M;
|
|
526
|
+
}
|
|
527
|
+
function No() {
|
|
528
|
+
const e = Ft(!1), t = Gt();
|
|
529
|
+
return t && yt(() => {
|
|
530
|
+
e.value = !0;
|
|
531
|
+
}, t), e;
|
|
532
|
+
}
|
|
533
|
+
function Fo(e) {
|
|
534
|
+
const t = No();
|
|
535
|
+
return Y(() => (t.value, !!e()));
|
|
536
|
+
}
|
|
537
|
+
const Vo = Symbol("vueuse-ssr-width");
|
|
538
|
+
function jo() {
|
|
539
|
+
const e = mn() ? Lo(Vo, null) : null;
|
|
540
|
+
return typeof e == "number" ? e : void 0;
|
|
541
|
+
}
|
|
542
|
+
function zo(e, t = {}) {
|
|
543
|
+
const { window: n = St, ssrWidth: o = jo() } = t, i = Fo(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = _(typeof o == "number"), l = Ft(), r = Ft(!1), s = (u) => {
|
|
544
|
+
r.value = u.matches;
|
|
545
|
+
};
|
|
546
|
+
return Rn(() => {
|
|
547
|
+
if (a.value) {
|
|
548
|
+
a.value = !i.value;
|
|
549
|
+
const u = Ce(e).split(",");
|
|
550
|
+
r.value = u.some((f) => {
|
|
551
|
+
const c = f.includes("not all"), v = f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), $ = f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
552
|
+
let w = !!(v || $);
|
|
553
|
+
return v && w && (w = o >= Jt(v[1])), $ && w && (w = o <= Jt($[1])), c ? !w : w;
|
|
554
|
+
});
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
i.value && (l.value = n.matchMedia(Ce(e)), r.value = l.value.matches);
|
|
558
|
+
}), De(l, "change", s, { passive: !0 }), Y(() => r.value);
|
|
559
|
+
}
|
|
560
|
+
function Wt(e = {}) {
|
|
561
|
+
const {
|
|
562
|
+
window: t = St,
|
|
563
|
+
initialWidth: n = Number.POSITIVE_INFINITY,
|
|
564
|
+
initialHeight: o = Number.POSITIVE_INFINITY,
|
|
565
|
+
listenOrientation: i = !0,
|
|
566
|
+
includeScrollbar: a = !0,
|
|
567
|
+
type: l = "inner"
|
|
568
|
+
} = e, r = _(n), s = _(o), u = () => {
|
|
569
|
+
if (t)
|
|
570
|
+
if (l === "outer")
|
|
571
|
+
r.value = t.outerWidth, s.value = t.outerHeight;
|
|
572
|
+
else if (l === "visual" && t.visualViewport) {
|
|
573
|
+
const { width: c, height: v, scale: $ } = t.visualViewport;
|
|
574
|
+
r.value = Math.round(c * $), s.value = Math.round(v * $);
|
|
575
|
+
} else a ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
|
|
576
|
+
};
|
|
577
|
+
u(), Po(u);
|
|
578
|
+
const f = { passive: !0 };
|
|
579
|
+
if (De("resize", u, f), t && l === "visual" && t.visualViewport && De(t.visualViewport, "resize", u, f), i) {
|
|
580
|
+
const c = zo("(orientation: portrait)");
|
|
581
|
+
Ve(c, () => u());
|
|
582
|
+
}
|
|
583
|
+
return { width: r, height: s };
|
|
584
|
+
}
|
|
585
|
+
const Ro = { class: "modal-wrapper" }, Ho = {
|
|
586
|
+
key: 0,
|
|
587
|
+
class: "modal-body"
|
|
588
|
+
}, Zo = { class: "modal-footer" }, Go = {
|
|
589
|
+
name: "ConfirmationModal"
|
|
590
|
+
}, tn = /* @__PURE__ */ A({
|
|
591
|
+
...Go,
|
|
592
|
+
props: {
|
|
593
|
+
divider: {
|
|
594
|
+
default: !1,
|
|
595
|
+
type: Boolean
|
|
596
|
+
},
|
|
597
|
+
disableBody: {
|
|
598
|
+
default: !1,
|
|
599
|
+
type: Boolean
|
|
600
|
+
},
|
|
601
|
+
disableHeader: {
|
|
602
|
+
default: !1,
|
|
603
|
+
type: Boolean
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
emits: ["on:confirm", "on:close"],
|
|
607
|
+
setup(e, { emit: t }) {
|
|
608
|
+
const n = t, o = e, i = _();
|
|
609
|
+
qt(i, (s) => {
|
|
610
|
+
r();
|
|
611
|
+
});
|
|
612
|
+
const a = Y(() => ["modal", o.divider && "divided-modal"].filter(Boolean).join(" "));
|
|
613
|
+
function l() {
|
|
614
|
+
n("on:confirm");
|
|
615
|
+
}
|
|
616
|
+
function r() {
|
|
617
|
+
n("on:close");
|
|
618
|
+
}
|
|
619
|
+
return (s, u) => (d(), p("div", {
|
|
620
|
+
class: N(a.value)
|
|
621
|
+
}, [
|
|
622
|
+
h("div", Ro, [
|
|
623
|
+
h("div", {
|
|
624
|
+
ref_key: "dzangolabVueModal",
|
|
625
|
+
ref: i,
|
|
626
|
+
class: "modal-container"
|
|
627
|
+
}, [
|
|
628
|
+
h("div", {
|
|
629
|
+
class: N(["modal-header", { "disabled-header": e.disableHeader }])
|
|
630
|
+
}, [
|
|
631
|
+
e.disableHeader ? k("", !0) : I(s.$slots, "header", { key: 0 }, () => [
|
|
632
|
+
u[3] || (u[3] = h("span", null, "Confirmation required", -1))
|
|
633
|
+
]),
|
|
634
|
+
(d(), p("svg", {
|
|
635
|
+
"aria-label": "close modal",
|
|
636
|
+
height: "1em",
|
|
637
|
+
tabindex: "0",
|
|
638
|
+
width: "1em",
|
|
639
|
+
viewBox: "0 0 16 16",
|
|
640
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
641
|
+
onClick: u[0] || (u[0] = (f) => r())
|
|
642
|
+
}, u[4] || (u[4] = [
|
|
643
|
+
h("path", {
|
|
644
|
+
fill: "currentColor",
|
|
645
|
+
d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"
|
|
646
|
+
}, null, -1)
|
|
647
|
+
])))
|
|
648
|
+
], 2),
|
|
649
|
+
e.disableBody ? k("", !0) : (d(), p("div", Ho, [
|
|
650
|
+
I(s.$slots, "body", {}, () => [
|
|
651
|
+
u[5] || (u[5] = h("p", null, "Are you sure you want to proceed?", -1))
|
|
652
|
+
])
|
|
653
|
+
])),
|
|
654
|
+
h("div", Zo, [
|
|
655
|
+
I(s.$slots, "footer", {}, () => [
|
|
656
|
+
le(he, {
|
|
657
|
+
size: "small",
|
|
658
|
+
label: "Cancel",
|
|
659
|
+
severity: "secondary",
|
|
660
|
+
onClick: u[1] || (u[1] = (f) => r())
|
|
661
|
+
}),
|
|
662
|
+
le(he, {
|
|
663
|
+
size: "small",
|
|
664
|
+
label: "Confirm",
|
|
665
|
+
severity: "primary",
|
|
666
|
+
onClick: u[2] || (u[2] = (f) => l())
|
|
667
|
+
})
|
|
668
|
+
])
|
|
669
|
+
])
|
|
670
|
+
], 512)
|
|
671
|
+
])
|
|
672
|
+
], 2));
|
|
673
|
+
}
|
|
674
|
+
}), qo = ["data-aria-orientation"], Wo = {
|
|
675
|
+
name: "DividerElement"
|
|
676
|
+
}, G0 = /* @__PURE__ */ A({
|
|
677
|
+
...Wo,
|
|
678
|
+
props: {
|
|
679
|
+
orientation: {
|
|
680
|
+
default: "horizontal",
|
|
681
|
+
type: String,
|
|
682
|
+
validator: (e) => ["horizontal", "vertical"].includes(e)
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
setup(e) {
|
|
686
|
+
return (t, n) => (d(), p("div", {
|
|
687
|
+
"data-aria-orientation": e.orientation,
|
|
688
|
+
class: "divider",
|
|
689
|
+
role: "separator"
|
|
690
|
+
}, null, 8, qo));
|
|
691
|
+
}
|
|
692
|
+
}), yn = {
|
|
693
|
+
year: "numeric",
|
|
694
|
+
month: "short",
|
|
695
|
+
day: "numeric"
|
|
696
|
+
}, Yo = {
|
|
697
|
+
...yn,
|
|
698
|
+
hour: "numeric",
|
|
699
|
+
minute: "numeric",
|
|
700
|
+
hour12: !0
|
|
701
|
+
}, Uo = (e, t, n) => {
|
|
702
|
+
if (!e)
|
|
703
|
+
return null;
|
|
704
|
+
const o = { ...yn, ...n }, i = new Date(e).toLocaleDateString(
|
|
705
|
+
t || "en-GB",
|
|
706
|
+
o
|
|
707
|
+
);
|
|
708
|
+
return i === "Invalid Date" ? null : i;
|
|
709
|
+
}, Xo = (e, t, n) => {
|
|
710
|
+
if (!e)
|
|
711
|
+
return null;
|
|
712
|
+
const o = { ...Yo, ...n }, i = new Date(e).toLocaleDateString(
|
|
713
|
+
t || "en-GB",
|
|
714
|
+
o
|
|
715
|
+
);
|
|
716
|
+
return i === "Invalid Date" ? null : i;
|
|
717
|
+
}, wn = (e) => {
|
|
718
|
+
const { width: t, height: n } = Wt(), o = {
|
|
719
|
+
top: e.top,
|
|
720
|
+
bottom: n.value - e.bottom,
|
|
721
|
+
left: e.left,
|
|
722
|
+
right: t.value - e.right
|
|
723
|
+
}, i = Math.max(...Object.values(o));
|
|
724
|
+
return Object.keys(o).find(
|
|
725
|
+
(a) => o[a] === i
|
|
726
|
+
) || "bottom";
|
|
727
|
+
}, Sn = (e) => {
|
|
728
|
+
const t = [];
|
|
729
|
+
let n = e.parentElement;
|
|
730
|
+
for (; n; ) {
|
|
731
|
+
const o = window.getComputedStyle(n);
|
|
732
|
+
(["auto", "scroll"].includes(o.overflow) || ["auto", "scroll"].includes(o.overflowX) || ["auto", "scroll"].includes(o.overflowY)) && t.push(n), n = n.parentElement;
|
|
733
|
+
}
|
|
734
|
+
return t;
|
|
735
|
+
}, Ko = (e) => e === "sessionStorage" ? sessionStorage : localStorage;
|
|
736
|
+
let Dt = null;
|
|
737
|
+
function Qo(e, t) {
|
|
738
|
+
const n = _();
|
|
739
|
+
return new Promise((o) => {
|
|
740
|
+
Ve(
|
|
741
|
+
() => e,
|
|
742
|
+
(i) => {
|
|
743
|
+
Dt && clearTimeout(Dt), Dt = setTimeout(() => {
|
|
744
|
+
n.value = i, o(n);
|
|
745
|
+
}, t);
|
|
746
|
+
},
|
|
747
|
+
{ immediate: !0 }
|
|
748
|
+
);
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
752
|
+
name: "Popup"
|
|
753
|
+
}, ti = /* @__PURE__ */ A({
|
|
754
|
+
...ei,
|
|
755
|
+
props: {
|
|
756
|
+
ariaLabel: {
|
|
757
|
+
default: "popup",
|
|
758
|
+
type: String
|
|
759
|
+
},
|
|
760
|
+
offset: {
|
|
761
|
+
type: Number,
|
|
762
|
+
default: 10
|
|
763
|
+
},
|
|
764
|
+
position: {
|
|
765
|
+
type: String,
|
|
766
|
+
default: null
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
emits: ["onClickOutside"],
|
|
770
|
+
setup(e, { expose: t, emit: n }) {
|
|
771
|
+
const o = e, i = n, a = Se(), l = _(null), r = _(null), s = _(null), u = _(!1), f = _("bottom"), c = _({ top: "0", left: "0" }), v = _([]), { width: $, height: w } = Wt(), M = Y(() => !!a.content);
|
|
772
|
+
vn(() => {
|
|
773
|
+
window.removeEventListener("scroll", D), window.removeEventListener("resize", D), v.value.forEach(({ element: b, listener: C }) => {
|
|
774
|
+
b.removeEventListener("scroll", C);
|
|
775
|
+
});
|
|
776
|
+
});
|
|
777
|
+
const E = () => {
|
|
778
|
+
u.value = !u.value, u.value ? Je(() => {
|
|
779
|
+
D(), window.addEventListener("scroll", D), window.addEventListener("resize", D), l.value && Sn(l.value).forEach((C) => {
|
|
780
|
+
const g = () => D();
|
|
781
|
+
C.addEventListener("scroll", g), v.value.push({ element: C, listener: g });
|
|
782
|
+
});
|
|
783
|
+
}) : (window.removeEventListener("scroll", D), window.removeEventListener("resize", D), v.value.forEach(({ element: b, listener: C }) => {
|
|
784
|
+
b.removeEventListener("scroll", C);
|
|
785
|
+
}), v.value = []);
|
|
786
|
+
}, D = () => {
|
|
787
|
+
if (!s.value || !r.value)
|
|
788
|
+
return;
|
|
789
|
+
const b = s.value.getBoundingClientRect(), C = r.value.getBoundingClientRect();
|
|
790
|
+
let g = 0, S = 0;
|
|
791
|
+
const y = o.position || wn(b), F = $.value - b.right < 100, J = w.value - (b.bottom + C.height + o.offset) >= 0, U = b.top - C.height - o.offset >= 0;
|
|
792
|
+
switch (y) {
|
|
793
|
+
case "top":
|
|
794
|
+
g = U ? b.top - C.height - o.offset : b.bottom + o.offset, S = F ? b.right - C.width : b.left;
|
|
795
|
+
break;
|
|
796
|
+
case "bottom":
|
|
797
|
+
g = J ? b.bottom + o.offset : b.top - C.height - o.offset, S = F ? b.right - C.width : b.left;
|
|
798
|
+
break;
|
|
799
|
+
case "left":
|
|
800
|
+
S = b.left - C.width - o.offset, g = b.top;
|
|
801
|
+
break;
|
|
802
|
+
case "right":
|
|
803
|
+
S = b.left + b.width + o.offset, g = b.top;
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
const ce = w.value - (g + C.height), ne = g;
|
|
807
|
+
if (u.value = ne >= 0 && ce >= 0, y === "right" || y === "left")
|
|
808
|
+
S = Math.max(0, S);
|
|
809
|
+
else {
|
|
810
|
+
S + C.width > $.value && (S = $.value - C.width), S = Math.max(0, S);
|
|
811
|
+
const me = w.value - C.height;
|
|
812
|
+
g = Math.min(Math.max(g, 0), me);
|
|
813
|
+
}
|
|
814
|
+
c.value = {
|
|
815
|
+
top: `${g}px`,
|
|
816
|
+
left: `${S}px`
|
|
817
|
+
}, f.value = y;
|
|
818
|
+
};
|
|
819
|
+
return qt(l, () => {
|
|
820
|
+
u.value = !1, i("onClickOutside");
|
|
821
|
+
}), t({
|
|
822
|
+
isVisible: u,
|
|
823
|
+
togglePopup: E
|
|
824
|
+
}), (b, C) => (d(), p("div", {
|
|
825
|
+
ref_key: "dzangolabVueUIPopup",
|
|
826
|
+
ref: l,
|
|
827
|
+
class: "popup-container"
|
|
828
|
+
}, [
|
|
829
|
+
h("div", {
|
|
830
|
+
ref_key: "dzangolabVueUIPopupTrigger",
|
|
831
|
+
ref: s,
|
|
832
|
+
"aria-expanded": !!u.value,
|
|
833
|
+
"aria-label": e.ariaLabel,
|
|
834
|
+
class: "popup-trigger",
|
|
835
|
+
onClick: E
|
|
836
|
+
}, [
|
|
837
|
+
I(b.$slots, "default")
|
|
838
|
+
], 8, Jo),
|
|
839
|
+
u.value && M.value ? (d(), p("div", {
|
|
840
|
+
key: 0,
|
|
841
|
+
ref_key: "dzangolabVueUIPopupContent",
|
|
842
|
+
ref: r,
|
|
843
|
+
class: N(["popup-content", f.value]),
|
|
844
|
+
style: Ne(c.value)
|
|
845
|
+
}, [
|
|
846
|
+
I(b.$slots, "content")
|
|
847
|
+
], 6)) : k("", !0)
|
|
848
|
+
], 512));
|
|
849
|
+
}
|
|
850
|
+
}), ni = ["aria-label"], oi = {
|
|
851
|
+
key: 1,
|
|
852
|
+
fill: "#0f0f0f",
|
|
853
|
+
height: "1.5rem",
|
|
854
|
+
stroke: "#0f0f0f",
|
|
855
|
+
width: "1.5rem",
|
|
856
|
+
"xml:space": "preserve",
|
|
857
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
858
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
859
|
+
viewBox: "0 0 1792 1792"
|
|
860
|
+
}, ii = ["aria-label"], ai = ["aria-disabled", "onClick"], li = { class: "menu-item" }, ri = {
|
|
861
|
+
name: "Dropdown"
|
|
862
|
+
}, q0 = /* @__PURE__ */ A({
|
|
863
|
+
...ri,
|
|
864
|
+
props: {
|
|
865
|
+
icon: {
|
|
866
|
+
default: void 0,
|
|
867
|
+
type: String
|
|
868
|
+
},
|
|
869
|
+
label: {
|
|
870
|
+
type: String,
|
|
871
|
+
default: null
|
|
872
|
+
},
|
|
873
|
+
menu: {
|
|
874
|
+
required: !0,
|
|
875
|
+
type: Array
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
emits: ["select"],
|
|
879
|
+
setup(e, { emit: t }) {
|
|
880
|
+
const n = e, o = t, i = _(), a = Y(
|
|
881
|
+
() => n.menu.filter((r) => r.display !== !1)
|
|
882
|
+
), l = (r) => {
|
|
883
|
+
r.disabled || (o("select", r), i.value.isVisible = !1);
|
|
884
|
+
};
|
|
885
|
+
return (r, s) => (d(), j(ti, {
|
|
886
|
+
ref_key: "popup",
|
|
887
|
+
ref: i,
|
|
888
|
+
class: "dropdown-menu",
|
|
889
|
+
position: "bottom",
|
|
890
|
+
tabindex: "0"
|
|
891
|
+
}, {
|
|
892
|
+
content: G(() => [
|
|
893
|
+
h("ul", {
|
|
894
|
+
class: "dropdown-menu",
|
|
895
|
+
"aria-label": e.label + "dropdown menu",
|
|
896
|
+
tabindex: "0"
|
|
897
|
+
}, [
|
|
898
|
+
(d(!0), p(q, null, se(a.value, (u) => (d(), p("li", {
|
|
899
|
+
key: u.label,
|
|
900
|
+
"aria-disabled": u.disabled ? "true" : "false",
|
|
901
|
+
class: N([[{ disabled: u.disabled }, u.class], "menu-item"]),
|
|
902
|
+
tabindex: "0",
|
|
903
|
+
onClick: (f) => l(u)
|
|
904
|
+
}, [
|
|
905
|
+
h("span", li, [
|
|
906
|
+
I(r.$slots, "`icon-${menuItem.key}`", {}, () => [
|
|
907
|
+
h("i", {
|
|
908
|
+
class: N(u.icon)
|
|
909
|
+
}, null, 2)
|
|
910
|
+
]),
|
|
911
|
+
Q(" " + O(u.label), 1)
|
|
912
|
+
])
|
|
913
|
+
], 10, ai))), 128))
|
|
914
|
+
], 8, ii)
|
|
915
|
+
]),
|
|
916
|
+
default: G(() => [
|
|
917
|
+
h("div", {
|
|
918
|
+
"aria-label": (e.label ?? "") + " dropdown",
|
|
919
|
+
class: N([{ triggered: i.value?.isVisible }, "dropdown-menu-trigger"])
|
|
920
|
+
}, [
|
|
921
|
+
I(r.$slots, "default", {}, () => [
|
|
922
|
+
e.label ? (d(), p(q, { key: 0 }, [
|
|
923
|
+
h("span", null, O(e.label), 1),
|
|
924
|
+
s[0] || (s[0] = h("svg", {
|
|
925
|
+
class: "dropdown-icon",
|
|
926
|
+
fill: "none",
|
|
927
|
+
height: "24",
|
|
928
|
+
viewBox: "0 0 24 24",
|
|
929
|
+
width: "24",
|
|
930
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
931
|
+
}, [
|
|
932
|
+
h("g", { "stroke-width": "0" }),
|
|
933
|
+
h("g", {
|
|
934
|
+
"stroke-linecap": "round",
|
|
935
|
+
"stroke-linejoin": "round"
|
|
936
|
+
}),
|
|
937
|
+
h("g", null, [
|
|
938
|
+
h("path", {
|
|
939
|
+
d: "M5.70711 9.71069C5.31658 10.1012 5.31658 10.7344 5.70711 11.1249L10.5993 16.0123C11.3805 16.7927 12.6463 16.7924 13.4271 16.0117L18.3174 11.1213C18.708 10.7308 18.708 10.0976 18.3174 9.70708C17.9269 9.31655 17.2937 9.31655 16.9032 9.70708L12.7176 13.8927C12.3271 14.2833 11.6939 14.2832 11.3034 13.8927L7.12132 9.71069C6.7308 9.32016 6.09763 9.32016 5.70711 9.71069Z",
|
|
940
|
+
fill: "#0F0F0F"
|
|
941
|
+
})
|
|
942
|
+
])
|
|
943
|
+
], -1))
|
|
944
|
+
], 64)) : (d(), p("svg", oi, s[1] || (s[1] = [
|
|
945
|
+
h("g", { "stroke-width": "0" }, null, -1),
|
|
946
|
+
h("g", {
|
|
947
|
+
"stroke-linecap": "round",
|
|
948
|
+
"stroke-linejoin": "round"
|
|
949
|
+
}, null, -1),
|
|
950
|
+
h("g", null, [
|
|
951
|
+
h("circle", {
|
|
952
|
+
cx: "321.4",
|
|
953
|
+
cy: "896.2",
|
|
954
|
+
r: "171.2"
|
|
955
|
+
}),
|
|
956
|
+
h("circle", {
|
|
957
|
+
cx: "898.3",
|
|
958
|
+
cy: "896.2",
|
|
959
|
+
r: "171.2"
|
|
960
|
+
}),
|
|
961
|
+
h("circle", {
|
|
962
|
+
cx: "1469",
|
|
963
|
+
cy: "896.2",
|
|
964
|
+
r: "171.2"
|
|
965
|
+
})
|
|
966
|
+
], -1)
|
|
967
|
+
])))
|
|
968
|
+
])
|
|
969
|
+
], 10, ni)
|
|
970
|
+
]),
|
|
971
|
+
_: 3
|
|
972
|
+
}, 512));
|
|
973
|
+
}
|
|
974
|
+
}), si = { class: "error" }, ui = { class: "code" }, di = {
|
|
975
|
+
name: "Error"
|
|
976
|
+
}, nn = /* @__PURE__ */ A({
|
|
977
|
+
...di,
|
|
978
|
+
props: {
|
|
979
|
+
error: {
|
|
980
|
+
required: !0,
|
|
981
|
+
type: Object
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
setup(e) {
|
|
985
|
+
return (t, n) => (d(), p("p", si, [
|
|
986
|
+
Q(O(e.error.message) + " ", 1),
|
|
987
|
+
h("span", ui, "(" + O(e.error.code) + ")", 1)
|
|
988
|
+
]));
|
|
989
|
+
}
|
|
990
|
+
}), ci = { class: "errors" }, fi = { key: 1 }, hi = {
|
|
991
|
+
name: "Errors"
|
|
992
|
+
}, W0 = /* @__PURE__ */ A({
|
|
993
|
+
...hi,
|
|
994
|
+
props: {
|
|
995
|
+
errors: {
|
|
996
|
+
required: !0,
|
|
997
|
+
type: Array
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
setup(e) {
|
|
1001
|
+
return (t, n) => (d(), p("div", ci, [
|
|
1002
|
+
e.errors.length === 1 ? (d(), j(nn, {
|
|
1003
|
+
key: 0,
|
|
1004
|
+
error: e.errors[0]
|
|
1005
|
+
}, null, 8, ["error"])) : (d(), p("ul", fi, [
|
|
1006
|
+
(d(!0), p(q, null, se(e.errors, (o, i) => (d(), p("li", { key: i }, [
|
|
1007
|
+
le(nn, { error: o }, null, 8, ["error"])
|
|
1008
|
+
]))), 128))
|
|
1009
|
+
]))
|
|
1010
|
+
]));
|
|
1011
|
+
}
|
|
1012
|
+
}), pi = { class: "confirmation-file-actions" }, gi = {
|
|
1013
|
+
name: "ConfirmationFileActions"
|
|
1014
|
+
}, mi = /* @__PURE__ */ A({
|
|
1015
|
+
...gi,
|
|
1016
|
+
props: {
|
|
1017
|
+
archiveConfirmationHeader: {
|
|
1018
|
+
default: "Archive file?",
|
|
1019
|
+
type: String
|
|
1020
|
+
},
|
|
1021
|
+
archiveConfirmationMessage: {
|
|
1022
|
+
default: "Are you sure you want to archive this file?",
|
|
1023
|
+
type: String
|
|
1024
|
+
},
|
|
1025
|
+
deleteConfirmationHeader: {
|
|
1026
|
+
default: "Delete file?",
|
|
1027
|
+
type: String
|
|
1028
|
+
},
|
|
1029
|
+
deleteConfirmationMessage: {
|
|
1030
|
+
default: "Are you sure you want to delete this file?",
|
|
1031
|
+
type: String
|
|
1032
|
+
},
|
|
1033
|
+
showArchiveConfirmation: Boolean,
|
|
1034
|
+
showDeleteConfirmation: Boolean
|
|
1035
|
+
},
|
|
1036
|
+
emits: [
|
|
1037
|
+
"on:closeArchive",
|
|
1038
|
+
"on:closeDelete",
|
|
1039
|
+
"on:confirmArchive",
|
|
1040
|
+
"on:confirmDelete"
|
|
1041
|
+
],
|
|
1042
|
+
setup(e) {
|
|
1043
|
+
return (t, n) => (d(), p("div", pi, [
|
|
1044
|
+
e.showArchiveConfirmation ? (d(), j(tn, {
|
|
1045
|
+
key: 0,
|
|
1046
|
+
"onOn:close": n[0] || (n[0] = (o) => t.$emit("on:closeArchive")),
|
|
1047
|
+
"onOn:confirm": n[1] || (n[1] = (o) => t.$emit("on:confirmArchive"))
|
|
1048
|
+
}, {
|
|
1049
|
+
header: G(() => [
|
|
1050
|
+
Q(O(e.archiveConfirmationHeader), 1)
|
|
1051
|
+
]),
|
|
1052
|
+
body: G(() => [
|
|
1053
|
+
Q(O(e.archiveConfirmationMessage), 1)
|
|
1054
|
+
]),
|
|
1055
|
+
_: 1
|
|
1056
|
+
})) : k("", !0),
|
|
1057
|
+
e.showDeleteConfirmation ? (d(), j(tn, {
|
|
1058
|
+
key: 1,
|
|
1059
|
+
"onOn:close": n[2] || (n[2] = (o) => t.$emit("on:closeDelete")),
|
|
1060
|
+
"onOn:confirm": n[3] || (n[3] = (o) => t.$emit("on:confirmDelete"))
|
|
1061
|
+
}, {
|
|
1062
|
+
header: G(() => [
|
|
1063
|
+
Q(O(e.deleteConfirmationHeader), 1)
|
|
1064
|
+
]),
|
|
1065
|
+
body: G(() => [
|
|
1066
|
+
Q(O(e.deleteConfirmationMessage), 1)
|
|
1067
|
+
]),
|
|
1068
|
+
_: 1
|
|
1069
|
+
})) : k("", !0)
|
|
1070
|
+
]));
|
|
1071
|
+
}
|
|
1072
|
+
}), vi = { class: "file-thumbnail-details-wrapper" }, bi = {
|
|
1073
|
+
key: 0,
|
|
1074
|
+
class: "file-thumbnail"
|
|
1075
|
+
}, Ci = { class: "details-wrapper" }, yi = { class: "name-description-details-wrapper" }, wi = {
|
|
1076
|
+
key: 0,
|
|
1077
|
+
class: "name"
|
|
1078
|
+
}, Si = {
|
|
1079
|
+
key: 1,
|
|
1080
|
+
class: "file-size"
|
|
1081
|
+
}, ki = {
|
|
1082
|
+
key: 0,
|
|
1083
|
+
class: "description-wrapper-details"
|
|
1084
|
+
}, $i = {
|
|
1085
|
+
key: 0,
|
|
1086
|
+
class: "file-upload-download-details-wrapper"
|
|
1087
|
+
}, Ei = {
|
|
1088
|
+
key: 0,
|
|
1089
|
+
class: "file-upload-details"
|
|
1090
|
+
}, Di = {
|
|
1091
|
+
key: 0,
|
|
1092
|
+
class: "uploaded-by"
|
|
1093
|
+
}, Ti = {
|
|
1094
|
+
key: 1,
|
|
1095
|
+
class: "uploaded-at"
|
|
1096
|
+
}, xi = {
|
|
1097
|
+
key: 1,
|
|
1098
|
+
class: "file-download-details"
|
|
1099
|
+
}, Li = {
|
|
1100
|
+
key: 0,
|
|
1101
|
+
class: "download-count"
|
|
1102
|
+
}, Oi = {
|
|
1103
|
+
key: 1,
|
|
1104
|
+
class: "last-downloaded-at"
|
|
1105
|
+
}, Mi = {
|
|
1106
|
+
key: 0,
|
|
1107
|
+
class: "file-actions"
|
|
1108
|
+
}, _i = {
|
|
1109
|
+
name: "FileCard"
|
|
1110
|
+
}, Bi = /* @__PURE__ */ A({
|
|
1111
|
+
..._i,
|
|
1112
|
+
props: {
|
|
1113
|
+
actionButtonsVisibility: {
|
|
1114
|
+
default: () => ({
|
|
1115
|
+
archive: !0,
|
|
1116
|
+
delete: !0,
|
|
1117
|
+
download: !0,
|
|
1118
|
+
share: !0,
|
|
1119
|
+
view: !0
|
|
1120
|
+
}),
|
|
1121
|
+
type: Object
|
|
1122
|
+
},
|
|
1123
|
+
allowEditDescription: Boolean,
|
|
1124
|
+
archiveButtonProps: {
|
|
1125
|
+
default: () => {
|
|
1126
|
+
},
|
|
1127
|
+
type: Object
|
|
1128
|
+
},
|
|
1129
|
+
deleteButtonProps: {
|
|
1130
|
+
default: () => {
|
|
1131
|
+
},
|
|
1132
|
+
type: Object
|
|
1133
|
+
},
|
|
1134
|
+
downloadButtonProps: {
|
|
1135
|
+
default: () => {
|
|
1136
|
+
},
|
|
1137
|
+
type: Object
|
|
1138
|
+
},
|
|
1139
|
+
editDescriptionButtonProps: {
|
|
1140
|
+
default: () => {
|
|
1141
|
+
},
|
|
1142
|
+
type: Object
|
|
1143
|
+
},
|
|
1144
|
+
file: {
|
|
1145
|
+
type: Object,
|
|
1146
|
+
required: !0
|
|
1147
|
+
},
|
|
1148
|
+
messages: {
|
|
1149
|
+
default: () => {
|
|
1150
|
+
},
|
|
1151
|
+
type: Object
|
|
1152
|
+
},
|
|
1153
|
+
shareButtonProps: {
|
|
1154
|
+
default: () => {
|
|
1155
|
+
},
|
|
1156
|
+
type: Object
|
|
1157
|
+
},
|
|
1158
|
+
showThumbnail: {
|
|
1159
|
+
default: !0,
|
|
1160
|
+
type: Boolean
|
|
1161
|
+
},
|
|
1162
|
+
viewButtonProps: {
|
|
1163
|
+
default: () => ({
|
|
1164
|
+
severity: "secondary"
|
|
1165
|
+
}),
|
|
1166
|
+
type: Object
|
|
1167
|
+
},
|
|
1168
|
+
visibilityDetail: {
|
|
1169
|
+
default: () => ({
|
|
1170
|
+
actions: !0,
|
|
1171
|
+
description: !0,
|
|
1172
|
+
downloadCount: !0,
|
|
1173
|
+
lastDownloadedAt: !0,
|
|
1174
|
+
originalFileName: !0,
|
|
1175
|
+
size: !0,
|
|
1176
|
+
uploadedAt: !0,
|
|
1177
|
+
uploadedBy: !0
|
|
1178
|
+
}),
|
|
1179
|
+
type: Object
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
emits: [
|
|
1183
|
+
"click:editDescription",
|
|
1184
|
+
"on:archive",
|
|
1185
|
+
"on:delete",
|
|
1186
|
+
"on:download",
|
|
1187
|
+
"on:share",
|
|
1188
|
+
"on:view"
|
|
1189
|
+
],
|
|
1190
|
+
setup(e, { emit: t }) {
|
|
1191
|
+
const n = e, o = t, i = _(!1), a = _(!1), l = (f) => f.uploadedBy ? f.uploadedBy.givenName || f.uploadedBy.lastName ? `${f.uploadedBy.givenName || ""} ${f.uploadedBy.lastName || ""}` : f.uploadedBy.email : "—", r = (f) => {
|
|
1192
|
+
switch (f) {
|
|
1193
|
+
case "archive":
|
|
1194
|
+
case "delete":
|
|
1195
|
+
case "download":
|
|
1196
|
+
case "share":
|
|
1197
|
+
case "view":
|
|
1198
|
+
o(`on:${f}`, n.file);
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
1201
|
+
}, s = () => {
|
|
1202
|
+
r("archive"), i.value = !1;
|
|
1203
|
+
}, u = () => {
|
|
1204
|
+
r("delete"), a.value = !1;
|
|
1205
|
+
};
|
|
1206
|
+
return (f, c) => (d(), j(mo, { class: "file-card" }, {
|
|
1207
|
+
default: G(() => [
|
|
1208
|
+
h("div", vi, [
|
|
1209
|
+
e.showThumbnail || f.$slots.thumbnail ? (d(), p("div", bi, [
|
|
1210
|
+
I(f.$slots, "thumbnail", {}, () => [
|
|
1211
|
+
c[8] || (c[8] = h("svg", {
|
|
1212
|
+
fill: "none",
|
|
1213
|
+
viewBox: "0 0 24 24",
|
|
1214
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1215
|
+
}, [
|
|
1216
|
+
h("path", {
|
|
1217
|
+
d: "M18.53 9L13 3.47C12.8595 3.32931 12.6688 3.25018 12.47 3.25H8C7.27065 3.25 6.57118 3.53973 6.05546 4.05546C5.53973 4.57118 5.25 5.27065 5.25 6V18C5.25 18.7293 5.53973 19.4288 6.05546 19.9445C6.57118 20.4603 7.27065 20.75 8 20.75H16C16.7293 20.75 17.4288 20.4603 17.9445 19.9445C18.4603 19.4288 18.75 18.7293 18.75 18V9.5C18.7421 9.3116 18.6636 9.13309 18.53 9ZM13.25 5.81L16.19 8.75H13.25V5.81ZM16 19.25H8C7.66848 19.25 7.35054 19.1183 7.11612 18.8839C6.8817 18.6495 6.75 18.3315 6.75 18V6C6.75 5.66848 6.8817 5.35054 7.11612 5.11612C7.35054 4.8817 7.66848 4.75 8 4.75H11.75V9.5C11.7526 9.69811 11.8324 9.88737 11.9725 10.0275C12.1126 10.1676 12.3019 10.2474 12.5 10.25H17.25V18C17.25 18.3315 17.1183 18.6495 16.8839 18.8839C16.6495 19.1183 16.3315 19.25 16 19.25Z",
|
|
1218
|
+
fill: "currentColor"
|
|
1219
|
+
}),
|
|
1220
|
+
h("path", {
|
|
1221
|
+
d: "M13.49 14.85C12.8751 14.4642 12.4124 13.8778 12.18 13.19C12.3953 12.5467 12.4603 11.8625 12.37 11.19C12.3412 11.0206 12.2586 10.865 12.1344 10.7462C12.0102 10.6274 11.8511 10.5518 11.6806 10.5305C11.5101 10.5092 11.3372 10.5433 11.1876 10.6279C11.038 10.7125 10.9197 10.843 10.85 11C10.7362 11.8085 10.822 12.6325 11.1 13.4C10.7202 14.2873 10.2963 15.1551 9.83001 16C9.12001 16.4 8.15001 17 8.00001 17.69C7.88001 18.25 8.93001 19.69 10.72 16.57C11.5159 16.2746 12.3312 16.034 13.16 15.85C13.7727 16.2003 14.4561 16.4088 15.16 16.46C15.3216 16.4642 15.4809 16.4206 15.6178 16.3345C15.7546 16.2484 15.863 16.1238 15.9292 15.9764C15.9955 15.8289 16.0167 15.6651 15.9901 15.5056C15.9636 15.3462 15.8905 15.1981 15.78 15.08C15.36 14.65 14.11 14.77 13.49 14.85ZM8.71001 17.85C8.99025 17.3705 9.36034 16.9495 9.80001 16.61C9.12001 17.69 8.71001 17.88 8.71001 17.86V17.85ZM11.63 11.04C11.89 11.04 11.87 12.19 11.69 12.5C11.5544 12.0285 11.5338 11.5312 11.63 11.05V11.04ZM10.76 15.92C11.0988 15.3019 11.3929 14.6602 11.64 14C11.9049 14.493 12.2734 14.9229 12.72 15.26C12.0491 15.4281 11.3934 15.6522 10.76 15.93V15.92ZM15.46 15.74C15.46 15.74 15.28 15.96 14.13 15.46C15.38 15.38 15.59 15.67 15.46 15.75V15.74Z",
|
|
1222
|
+
fill: "currentColor"
|
|
1223
|
+
})
|
|
1224
|
+
], -1))
|
|
1225
|
+
])
|
|
1226
|
+
])) : k("", !0),
|
|
1227
|
+
h("div", Ci, [
|
|
1228
|
+
h("div", yi, [
|
|
1229
|
+
h("div", null, [
|
|
1230
|
+
e.visibilityDetail.originalFileName ? (d(), p("span", wi, O(e.file.originalFileName), 1)) : k("", !0),
|
|
1231
|
+
e.file.size && e.visibilityDetail.size ? (d(), p("span", Si, " (" + O(e.file.size) + ") ", 1)) : k("", !0)
|
|
1232
|
+
]),
|
|
1233
|
+
e.file.description && e.visibilityDetail.description ? (d(), p("div", ki, [
|
|
1234
|
+
h("span", null, O(e.file.description), 1),
|
|
1235
|
+
e.allowEditDescription ? (d(), j(he, be({ key: 0 }, e.editDescriptionButtonProps, {
|
|
1236
|
+
size: "small",
|
|
1237
|
+
variant: "outlined",
|
|
1238
|
+
onClick: c[0] || (c[0] = (v) => f.$emit("click:editDescription"))
|
|
1239
|
+
}), {
|
|
1240
|
+
iconLeft: G(() => c[9] || (c[9] = [
|
|
1241
|
+
h("svg", {
|
|
1242
|
+
fill: "none",
|
|
1243
|
+
width: "20",
|
|
1244
|
+
viewBox: "0 -0.5 25 25",
|
|
1245
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1246
|
+
}, [
|
|
1247
|
+
h("path", {
|
|
1248
|
+
d: "M13.2942 7.95881C13.5533 7.63559 13.5013 7.16358 13.178 6.90453C12.8548 6.64549 12.3828 6.6975 12.1238 7.02072L13.2942 7.95881ZM6.811 14.8488L7.37903 15.3385C7.38489 15.3317 7.39062 15.3248 7.39623 15.3178L6.811 14.8488ZM6.64 15.2668L5.89146 15.2179L5.8908 15.2321L6.64 15.2668ZM6.5 18.2898L5.7508 18.2551C5.74908 18.2923 5.75013 18.3296 5.75396 18.3667L6.5 18.2898ZM7.287 18.9768L7.31152 19.7264C7.36154 19.7247 7.41126 19.7181 7.45996 19.7065L7.287 18.9768ZM10.287 18.2658L10.46 18.9956L10.4716 18.9927L10.287 18.2658ZM10.672 18.0218L11.2506 18.4991L11.2571 18.491L10.672 18.0218ZM17.2971 10.959C17.5562 10.6358 17.5043 10.1638 17.1812 9.90466C16.8581 9.64552 16.386 9.69742 16.1269 10.0206L17.2971 10.959ZM12.1269 7.02052C11.8678 7.34365 11.9196 7.81568 12.2428 8.07484C12.5659 8.33399 13.0379 8.28213 13.2971 7.95901L12.1269 7.02052ZM14.3 5.50976L14.8851 5.97901C14.8949 5.96672 14.9044 5.95412 14.9135 5.94123L14.3 5.50976ZM15.929 5.18976L16.4088 4.61332C16.3849 4.59344 16.3598 4.57507 16.3337 4.5583L15.929 5.18976ZM18.166 7.05176L18.6968 6.52192C18.6805 6.50561 18.6635 6.49007 18.6458 6.47532L18.166 7.05176ZM18.5029 7.87264L19.2529 7.87676V7.87676L18.5029 7.87264ZM18.157 8.68976L17.632 8.15412C17.6108 8.17496 17.5908 8.19704 17.5721 8.22025L18.157 8.68976ZM16.1271 10.0203C15.8678 10.3433 15.9195 10.8153 16.2425 11.0746C16.5655 11.3339 17.0376 11.2823 17.2969 10.9593L16.1271 10.0203ZM13.4537 7.37862C13.3923 6.96898 13.0105 6.68666 12.6009 6.74805C12.1912 6.80943 11.9089 7.19127 11.9703 7.60091L13.4537 7.37862ZM16.813 11.2329C17.2234 11.1772 17.5109 10.7992 17.4552 10.3888C17.3994 9.97834 17.0215 9.69082 16.611 9.74659L16.813 11.2329ZM12.1238 7.02072L6.22577 14.3797L7.39623 15.3178L13.2942 7.95881L12.1238 7.02072ZM6.24297 14.359C6.03561 14.5995 5.91226 14.9011 5.89159 15.218L7.38841 15.3156C7.38786 15.324 7.38457 15.3321 7.37903 15.3385L6.24297 14.359ZM5.8908 15.2321L5.7508 18.2551L7.2492 18.3245L7.3892 15.3015L5.8908 15.2321ZM5.75396 18.3667C5.83563 19.1586 6.51588 19.7524 7.31152 19.7264L7.26248 18.2272C7.25928 18.2273 7.25771 18.2268 7.25669 18.2264C7.25526 18.2259 7.25337 18.2249 7.25144 18.2232C7.2495 18.2215 7.24825 18.2198 7.24754 18.2185C7.24703 18.2175 7.24637 18.216 7.24604 18.2128L5.75396 18.3667ZM7.45996 19.7065L10.46 18.9955L10.114 17.536L7.11404 18.247L7.45996 19.7065ZM10.4716 18.9927C10.7771 18.9151 11.05 18.7422 11.2506 18.499L10.0934 17.5445C10.0958 17.5417 10.0989 17.5397 10.1024 17.5388L10.4716 18.9927ZM11.2571 18.491L17.2971 10.959L16.1269 10.0206L10.0869 17.5526L11.2571 18.491ZM13.2971 7.95901L14.8851 5.97901L13.7149 5.04052L12.1269 7.02052L13.2971 7.95901ZM14.9135 5.94123C15.0521 5.74411 15.3214 5.6912 15.5243 5.82123L16.3337 4.5583C15.4544 3.99484 14.2873 4.2241 13.6865 5.0783L14.9135 5.94123ZM15.4492 5.7662L17.6862 7.6282L18.6458 6.47532L16.4088 4.61332L15.4492 5.7662ZM17.6352 7.58161C17.7111 7.6577 17.7535 7.761 17.7529 7.86852L19.2529 7.87676C19.2557 7.36905 19.0555 6.88127 18.6968 6.52192L17.6352 7.58161ZM17.7529 7.86852C17.7524 7.97604 17.7088 8.07886 17.632 8.15412L18.682 9.22541C19.0446 8.87002 19.2501 8.38447 19.2529 7.87676L17.7529 7.86852ZM17.5721 8.22025L16.1271 10.0203L17.2969 10.9593L18.7419 9.15928L17.5721 8.22025ZM11.9703 7.60091C12.3196 9.93221 14.4771 11.5503 16.813 11.2329L16.611 9.74659C15.0881 9.95352 13.6815 8.89855 13.4537 7.37862L11.9703 7.60091Z",
|
|
1249
|
+
fill: "currentColor"
|
|
1250
|
+
})
|
|
1251
|
+
], -1)
|
|
1252
|
+
])),
|
|
1253
|
+
_: 1
|
|
1254
|
+
}, 16)) : k("", !0)
|
|
1255
|
+
])) : k("", !0)
|
|
1256
|
+
]),
|
|
1257
|
+
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy || e.visibilityDetail.lastDownloadedAt || e.visibilityDetail.downloadCount ? (d(), p("div", $i, [
|
|
1258
|
+
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy ? (d(), p("div", Ei, [
|
|
1259
|
+
e.visibilityDetail.uploadedBy ? (d(), p("div", Di, [
|
|
1260
|
+
h("span", null, O(e.messages?.uploadedByHeader || "Uploaded by"), 1),
|
|
1261
|
+
h("span", null, O(l(e.file)), 1)
|
|
1262
|
+
])) : k("", !0),
|
|
1263
|
+
e.visibilityDetail.uploadedAt ? (d(), p("div", Ti, [
|
|
1264
|
+
h("span", null, O(e.messages?.uploadedAtHeader || "Uploaded at"), 1),
|
|
1265
|
+
h("span", null, O(H(Xo)(e.file.uploadedAt)), 1)
|
|
1266
|
+
])) : k("", !0)
|
|
1267
|
+
])) : k("", !0),
|
|
1268
|
+
e.visibilityDetail.downloadCount || e.visibilityDetail.lastDownloadedAt ? (d(), p("div", xi, [
|
|
1269
|
+
e.visibilityDetail.downloadCount ? (d(), p("div", Li, [
|
|
1270
|
+
h("span", null, O(e.messages?.downloadCountHeader || "Downloads:"), 1),
|
|
1271
|
+
h("span", null, O(e.file.downloadCount), 1)
|
|
1272
|
+
])) : k("", !0),
|
|
1273
|
+
e.visibilityDetail.lastDownloadedAt ? (d(), p("div", Oi, [
|
|
1274
|
+
h("span", null, O(e.messages?.lastDownloadedAtHeader || "Last download:"), 1),
|
|
1275
|
+
h("span", null, O(H(Uo)(Number(e.file.lastDownloadedAt))), 1)
|
|
1276
|
+
])) : k("", !0)
|
|
1277
|
+
])) : k("", !0)
|
|
1278
|
+
])) : k("", !0)
|
|
1279
|
+
])
|
|
1280
|
+
]),
|
|
1281
|
+
e.visibilityDetail.actions ? (d(), p("div", Mi, [
|
|
1282
|
+
e.actionButtonsVisibility.archive ? (d(), j(he, be({ key: 0 }, e.archiveButtonProps, {
|
|
1283
|
+
label: e.messages?.archiveAction || "Archive",
|
|
1284
|
+
size: "small",
|
|
1285
|
+
onClick: c[1] || (c[1] = (v) => i.value = !0)
|
|
1286
|
+
}), {
|
|
1287
|
+
iconLeft: G(() => c[10] || (c[10] = [
|
|
1288
|
+
h("svg", {
|
|
1289
|
+
fill: "none",
|
|
1290
|
+
viewBox: "0 0 24 24",
|
|
1291
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1292
|
+
}, [
|
|
1293
|
+
h("path", {
|
|
1294
|
+
d: "M4 19V6.2C4 5.0799 4 4.51984 4.21799 4.09202C4.40973 3.71569 4.71569 3.40973 5.09202 3.21799C5.51984 3 6.0799 3 7.2 3H16.8C17.9201 3 18.4802 3 18.908 3.21799C19.2843 3.40973 19.5903 3.71569 19.782 4.09202C20 4.51984 20 5.0799 20 6.2V17H6C4.89543 17 4 17.8954 4 19ZM4 19C4 20.1046 4.89543 21 6 21H20M9 7H15M9 11H15M19 17V21",
|
|
1295
|
+
stroke: "currentColor",
|
|
1296
|
+
"stroke-linecap": "round",
|
|
1297
|
+
"stroke-linejoin": "round",
|
|
1298
|
+
"stroke-width": "2"
|
|
1299
|
+
})
|
|
1300
|
+
], -1)
|
|
1301
|
+
])),
|
|
1302
|
+
_: 1
|
|
1303
|
+
}, 16, ["label"])) : k("", !0),
|
|
1304
|
+
e.actionButtonsVisibility.delete ? (d(), j(he, be({ key: 1 }, e.deleteButtonProps, {
|
|
1305
|
+
label: e.messages?.deleteAction || "Delete",
|
|
1306
|
+
size: "small",
|
|
1307
|
+
onClick: c[2] || (c[2] = (v) => a.value = !0)
|
|
1308
|
+
}), {
|
|
1309
|
+
iconLeft: G(() => c[11] || (c[11] = [
|
|
1310
|
+
h("svg", {
|
|
1311
|
+
fill: "none",
|
|
1312
|
+
viewBox: "0 0 24 24",
|
|
1313
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1314
|
+
}, [
|
|
1315
|
+
h("path", {
|
|
1316
|
+
d: "M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6M18 6V16.2C18 17.8802 18 18.7202 17.673 19.362C17.3854 19.9265 16.9265 20.3854 16.362 20.673C15.7202 21 14.8802 21 13.2 21H10.8C9.11984 21 8.27976 21 7.63803 20.673C7.07354 20.3854 6.6146 19.9265 6.32698 19.362C6 18.7202 6 17.8802 6 16.2V6M14 10V17M10 10V17",
|
|
1317
|
+
stroke: "currentColor",
|
|
1318
|
+
"stroke-linecap": "round",
|
|
1319
|
+
"stroke-linejoin": "round",
|
|
1320
|
+
"stroke-width": "2"
|
|
1321
|
+
})
|
|
1322
|
+
], -1)
|
|
1323
|
+
])),
|
|
1324
|
+
_: 1
|
|
1325
|
+
}, 16, ["label"])) : k("", !0),
|
|
1326
|
+
e.actionButtonsVisibility.download ? (d(), j(he, be({ key: 2 }, e.downloadButtonProps, {
|
|
1327
|
+
label: e.messages?.downloadAction || "Download",
|
|
1328
|
+
size: "small",
|
|
1329
|
+
onClick: c[3] || (c[3] = (v) => r("download"))
|
|
1330
|
+
}), {
|
|
1331
|
+
iconLeft: G(() => c[12] || (c[12] = [
|
|
1332
|
+
h("svg", {
|
|
1333
|
+
fill: "none",
|
|
1334
|
+
viewBox: "0 0 24 24",
|
|
1335
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1336
|
+
}, [
|
|
1337
|
+
h("path", {
|
|
1338
|
+
d: "M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",
|
|
1339
|
+
fill: "currentColor"
|
|
1340
|
+
}),
|
|
1341
|
+
h("path", {
|
|
1342
|
+
d: "M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",
|
|
1343
|
+
fill: "currentColor"
|
|
1344
|
+
})
|
|
1345
|
+
], -1)
|
|
1346
|
+
])),
|
|
1347
|
+
_: 1
|
|
1348
|
+
}, 16, ["label"])) : k("", !0),
|
|
1349
|
+
e.actionButtonsVisibility.share ? (d(), j(he, be({ key: 3 }, e.shareButtonProps, {
|
|
1350
|
+
label: e.messages?.shareAction || "Share",
|
|
1351
|
+
size: "small",
|
|
1352
|
+
onClick: c[4] || (c[4] = (v) => r("share"))
|
|
1353
|
+
}), {
|
|
1354
|
+
iconLeft: G(() => c[13] || (c[13] = [
|
|
1355
|
+
h("svg", {
|
|
1356
|
+
fill: "none",
|
|
1357
|
+
viewBox: "0 0 24 24",
|
|
1358
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1359
|
+
}, [
|
|
1360
|
+
h("path", {
|
|
1361
|
+
"clip-rule": "evenodd",
|
|
1362
|
+
d: "M16.5 2.25C14.7051 2.25 13.25 3.70507 13.25 5.5C13.25 5.69591 13.2673 5.88776 13.3006 6.07412L8.56991 9.38558C8.54587 9.4024 8.52312 9.42038 8.50168 9.43939C7.94993 9.00747 7.25503 8.75 6.5 8.75C4.70507 8.75 3.25 10.2051 3.25 12C3.25 13.7949 4.70507 15.25 6.5 15.25C7.25503 15.25 7.94993 14.9925 8.50168 14.5606C8.52312 14.5796 8.54587 14.5976 8.56991 14.6144L13.3006 17.9259C13.2673 18.1122 13.25 18.3041 13.25 18.5C13.25 20.2949 14.7051 21.75 16.5 21.75C18.2949 21.75 19.75 20.2949 19.75 18.5C19.75 16.7051 18.2949 15.25 16.5 15.25C15.4472 15.25 14.5113 15.7506 13.9174 16.5267L9.43806 13.3911C9.63809 12.9694 9.75 12.4978 9.75 12C9.75 11.5022 9.63809 11.0306 9.43806 10.6089L13.9174 7.4733C14.5113 8.24942 15.4472 8.75 16.5 8.75C18.2949 8.75 19.75 7.29493 19.75 5.5C19.75 3.70507 18.2949 2.25 16.5 2.25ZM14.75 5.5C14.75 4.5335 15.5335 3.75 16.5 3.75C17.4665 3.75 18.25 4.5335 18.25 5.5C18.25 6.4665 17.4665 7.25 16.5 7.25C15.5335 7.25 14.75 6.4665 14.75 5.5ZM6.5 10.25C5.5335 10.25 4.75 11.0335 4.75 12C4.75 12.9665 5.5335 13.75 6.5 13.75C7.4665 13.75 8.25 12.9665 8.25 12C8.25 11.0335 7.4665 10.25 6.5 10.25ZM16.5 16.75C15.5335 16.75 14.75 17.5335 14.75 18.5C14.75 19.4665 15.5335 20.25 16.5 20.25C17.4665 20.25 18.25 19.4665 18.25 18.5C18.25 17.5335 17.4665 16.75 16.5 16.75Z",
|
|
1363
|
+
fill: "currentColor",
|
|
1364
|
+
"fill-rule": "evenodd"
|
|
1365
|
+
})
|
|
1366
|
+
], -1)
|
|
1367
|
+
])),
|
|
1368
|
+
_: 1
|
|
1369
|
+
}, 16, ["label"])) : k("", !0),
|
|
1370
|
+
e.actionButtonsVisibility.view ? (d(), j(he, be({ key: 4 }, e.viewButtonProps, {
|
|
1371
|
+
label: e.messages?.viewAction || "View",
|
|
1372
|
+
size: "small",
|
|
1373
|
+
onClick: c[5] || (c[5] = (v) => r("view"))
|
|
1374
|
+
}), {
|
|
1375
|
+
iconLeft: G(() => c[14] || (c[14] = [
|
|
1376
|
+
h("svg", {
|
|
1377
|
+
viewBox: "0 0 24 24",
|
|
1378
|
+
fill: "none",
|
|
1379
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1380
|
+
}, [
|
|
1381
|
+
h("path", {
|
|
1382
|
+
d: "M15.0007 12C15.0007 13.6569 13.6576 15 12.0007 15C10.3439 15 9.00073 13.6569 9.00073 12C9.00073 10.3431 10.3439 9 12.0007 9C13.6576 9 15.0007 10.3431 15.0007 12Z",
|
|
1383
|
+
stroke: "currentColor",
|
|
1384
|
+
"stroke-linecap": "round",
|
|
1385
|
+
"stroke-linejoin": "round",
|
|
1386
|
+
"stroke-width": "2"
|
|
1387
|
+
}),
|
|
1388
|
+
h("path", {
|
|
1389
|
+
d: "M12.0012 5C7.52354 5 3.73326 7.94288 2.45898 12C3.73324 16.0571 7.52354 19 12.0012 19C16.4788 19 20.2691 16.0571 21.5434 12C20.2691 7.94291 16.4788 5 12.0012 5Z",
|
|
1390
|
+
stroke: "currentColor",
|
|
1391
|
+
"stroke-linecap": "round",
|
|
1392
|
+
"stroke-linejoin": "round",
|
|
1393
|
+
"stroke-width": "2"
|
|
1394
|
+
})
|
|
1395
|
+
], -1)
|
|
1396
|
+
])),
|
|
1397
|
+
_: 1
|
|
1398
|
+
}, 16, ["label"])) : k("", !0),
|
|
1399
|
+
le(mi, {
|
|
1400
|
+
"archive-confirmation-header": e.messages?.archiveConfirmationHeader,
|
|
1401
|
+
"archive-confirmation-message": e.messages?.archiveConfirmationMessage,
|
|
1402
|
+
"delete-confirmation-header": e.messages?.deleteConfirmationHeader,
|
|
1403
|
+
"delete-confirmation-message": e.messages?.deleteConfirmationMessage,
|
|
1404
|
+
"show-archive-confirmation": i.value,
|
|
1405
|
+
"show-delete-confirmation": a.value,
|
|
1406
|
+
"onOn:closeArchive": c[6] || (c[6] = (v) => i.value = !1),
|
|
1407
|
+
"onOn:closeDelete": c[7] || (c[7] = (v) => a.value = !1),
|
|
1408
|
+
"onOn:confirmArchive": s,
|
|
1409
|
+
"onOn:confirmDelete": u
|
|
1410
|
+
}, null, 8, ["archive-confirmation-header", "archive-confirmation-message", "delete-confirmation-header", "delete-confirmation-message", "show-archive-confirmation", "show-delete-confirmation"])
|
|
1411
|
+
])) : k("", !0)
|
|
1412
|
+
]),
|
|
1413
|
+
_: 3
|
|
1414
|
+
}));
|
|
1415
|
+
}
|
|
1416
|
+
}), Ii = { class: "file-list-wrapper" }, Pi = {
|
|
1417
|
+
name: "FilesList"
|
|
1418
|
+
}, Y0 = /* @__PURE__ */ A({
|
|
1419
|
+
...Pi,
|
|
1420
|
+
props: {
|
|
1421
|
+
actionButtonsVisibility: {
|
|
1422
|
+
default: () => ({
|
|
1423
|
+
archive: !0,
|
|
1424
|
+
delete: !0,
|
|
1425
|
+
download: !0,
|
|
1426
|
+
edit: !0,
|
|
1427
|
+
share: !0,
|
|
1428
|
+
view: !0
|
|
1429
|
+
}),
|
|
1430
|
+
type: Object
|
|
1431
|
+
},
|
|
1432
|
+
archiveButtonProps: {
|
|
1433
|
+
default: () => {
|
|
1434
|
+
},
|
|
1435
|
+
type: Object
|
|
1436
|
+
},
|
|
1437
|
+
deleteButtonProps: {
|
|
1438
|
+
default: () => {
|
|
1439
|
+
},
|
|
1440
|
+
type: Object
|
|
1441
|
+
},
|
|
1442
|
+
downloadButtonProps: {
|
|
1443
|
+
default: () => {
|
|
1444
|
+
},
|
|
1445
|
+
type: Object
|
|
1446
|
+
},
|
|
1447
|
+
editDescriptionButtonProps: {
|
|
1448
|
+
default: () => {
|
|
1449
|
+
},
|
|
1450
|
+
type: Object
|
|
1451
|
+
},
|
|
1452
|
+
files: {
|
|
1453
|
+
required: !0,
|
|
1454
|
+
type: Array
|
|
1455
|
+
},
|
|
1456
|
+
messages: {
|
|
1457
|
+
default: () => {
|
|
1458
|
+
},
|
|
1459
|
+
type: Object
|
|
1460
|
+
},
|
|
1461
|
+
shareButtonProps: {
|
|
1462
|
+
default: () => {
|
|
1463
|
+
},
|
|
1464
|
+
type: Object
|
|
1465
|
+
},
|
|
1466
|
+
showThumbnail: {
|
|
1467
|
+
default: !0,
|
|
1468
|
+
type: Boolean
|
|
1469
|
+
},
|
|
1470
|
+
viewButtonProps: {
|
|
1471
|
+
default: void 0,
|
|
1472
|
+
type: Object
|
|
1473
|
+
},
|
|
1474
|
+
fileDetailVisibility: {
|
|
1475
|
+
default: () => ({
|
|
1476
|
+
actions: !0,
|
|
1477
|
+
description: !0,
|
|
1478
|
+
downloadCount: !0,
|
|
1479
|
+
lastDownloadedAt: !0,
|
|
1480
|
+
originalFileName: !0,
|
|
1481
|
+
size: !0,
|
|
1482
|
+
uploadedAt: !0,
|
|
1483
|
+
uploadedBy: !0
|
|
1484
|
+
}),
|
|
1485
|
+
type: Object
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
emits: [
|
|
1489
|
+
"action:archive",
|
|
1490
|
+
"action:delete",
|
|
1491
|
+
"action:download",
|
|
1492
|
+
"action:edit",
|
|
1493
|
+
"action:share",
|
|
1494
|
+
"action:view"
|
|
1495
|
+
],
|
|
1496
|
+
setup(e, { emit: t }) {
|
|
1497
|
+
const n = t, o = (i, a) => {
|
|
1498
|
+
switch (i) {
|
|
1499
|
+
case "archive":
|
|
1500
|
+
case "delete":
|
|
1501
|
+
case "download":
|
|
1502
|
+
case "edit":
|
|
1503
|
+
case "share":
|
|
1504
|
+
case "view":
|
|
1505
|
+
n(`action:${i}`, a);
|
|
1506
|
+
break;
|
|
1507
|
+
}
|
|
1508
|
+
};
|
|
1509
|
+
return (i, a) => (d(), p("div", Ii, [
|
|
1510
|
+
(d(!0), p(q, null, se(e.files, (l) => (d(), j(Bi, {
|
|
1511
|
+
key: l.originalFileName,
|
|
1512
|
+
"action-buttons-visibility": e.actionButtonsVisibility,
|
|
1513
|
+
"allow-edit-description": e.actionButtonsVisibility?.edit,
|
|
1514
|
+
"archive-button-props": e.archiveButtonProps,
|
|
1515
|
+
"delete-button-props": e.deleteButtonProps,
|
|
1516
|
+
"download-button-props": e.downloadButtonProps,
|
|
1517
|
+
"edit-description-button-props": e.editDescriptionButtonProps,
|
|
1518
|
+
file: l,
|
|
1519
|
+
messages: e.messages,
|
|
1520
|
+
"share-button-props": e.shareButtonProps,
|
|
1521
|
+
"show-thumbnail": e.showThumbnail,
|
|
1522
|
+
"view-button-props": e.viewButtonProps,
|
|
1523
|
+
"visibility-detail": e.fileDetailVisibility,
|
|
1524
|
+
"onClick:editDescription": (r) => o("edit", l),
|
|
1525
|
+
"onOn:archive": (r) => o("archive", l),
|
|
1526
|
+
"onOn:delete": (r) => o("delete", l),
|
|
1527
|
+
"onOn:download": (r) => o("download", l),
|
|
1528
|
+
"onOn:share": (r) => o("share", l),
|
|
1529
|
+
"onOn:view": (r) => o("view", l)
|
|
1530
|
+
}, Hn({ _: 2 }, [
|
|
1531
|
+
i.$slots.thumbnail ? {
|
|
1532
|
+
name: "thumbnail",
|
|
1533
|
+
fn: G(() => [
|
|
1534
|
+
I(i.$slots, "thumbnail")
|
|
1535
|
+
]),
|
|
1536
|
+
key: "0"
|
|
1537
|
+
} : void 0
|
|
1538
|
+
]), 1032, ["action-buttons-visibility", "allow-edit-description", "archive-button-props", "delete-button-props", "download-button-props", "edit-description-button-props", "file", "messages", "share-button-props", "show-thumbnail", "view-button-props", "visibility-detail", "onClick:editDescription", "onOn:archive", "onOn:delete", "onOn:download", "onOn:share", "onOn:view"]))), 128))
|
|
1539
|
+
]));
|
|
1540
|
+
}
|
|
1541
|
+
}), Ai = { class: "field debounce-input" }, Ni = ["aria-label", "disabled", "placeholder", "type", "value"], Fi = {
|
|
1542
|
+
name: "DebouncedInput"
|
|
1543
|
+
}, U0 = /* @__PURE__ */ A({
|
|
1544
|
+
...Fi,
|
|
1545
|
+
props: {
|
|
1546
|
+
ariaLabel: {
|
|
1547
|
+
default: "input",
|
|
1548
|
+
type: String
|
|
1549
|
+
},
|
|
1550
|
+
debounceTime: {
|
|
1551
|
+
default: 500,
|
|
1552
|
+
required: !1,
|
|
1553
|
+
type: Number
|
|
1554
|
+
},
|
|
1555
|
+
disabled: {
|
|
1556
|
+
default: !1,
|
|
1557
|
+
type: Boolean
|
|
1558
|
+
},
|
|
1559
|
+
modelValue: {
|
|
1560
|
+
default: "",
|
|
1561
|
+
required: !1,
|
|
1562
|
+
type: [String, Number]
|
|
1563
|
+
},
|
|
1564
|
+
placeholder: {
|
|
1565
|
+
default: "Search...",
|
|
1566
|
+
required: !1,
|
|
1567
|
+
type: String
|
|
1568
|
+
},
|
|
1569
|
+
type: {
|
|
1570
|
+
default: "text",
|
|
1571
|
+
required: !1,
|
|
1572
|
+
type: String
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
emits: ["update:modelValue"],
|
|
1576
|
+
setup(e, { emit: t }) {
|
|
1577
|
+
const n = e, o = t, i = (a) => {
|
|
1578
|
+
const l = a.target.value;
|
|
1579
|
+
Qo(l, n.debounceTime).then(() => {
|
|
1580
|
+
o("update:modelValue", l);
|
|
1581
|
+
});
|
|
1582
|
+
};
|
|
1583
|
+
return (a, l) => (d(), p("div", Ai, [
|
|
1584
|
+
h("input", {
|
|
1585
|
+
"aria-label": e.ariaLabel ?? e.placeholder,
|
|
1586
|
+
disabled: e.disabled,
|
|
1587
|
+
placeholder: e.placeholder,
|
|
1588
|
+
type: e.type,
|
|
1589
|
+
value: e.modelValue,
|
|
1590
|
+
class: "input-field",
|
|
1591
|
+
onInput: i
|
|
1592
|
+
}, null, 40, Ni)
|
|
1593
|
+
]));
|
|
1594
|
+
}
|
|
1595
|
+
}), Vi = {
|
|
1596
|
+
name: "GridContainer"
|
|
1597
|
+
}, ji = { class: "grid-container" };
|
|
1598
|
+
function zi(e, t, n, o, i, a) {
|
|
1599
|
+
return d(), p("div", ji, [
|
|
1600
|
+
I(e.$slots, "default")
|
|
1601
|
+
]);
|
|
1602
|
+
}
|
|
1603
|
+
const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
1604
|
+
key: 0,
|
|
1605
|
+
class: "loading-page"
|
|
1606
|
+
}, Hi = {
|
|
1607
|
+
name: "LoadingPage"
|
|
1608
|
+
}, Zi = /* @__PURE__ */ A({
|
|
1609
|
+
...Hi,
|
|
1610
|
+
props: {
|
|
1611
|
+
loading: {
|
|
1612
|
+
default: !1,
|
|
1613
|
+
type: Boolean
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
setup(e) {
|
|
1617
|
+
return (t, n) => e.loading ? (d(), p("div", Ri, [
|
|
1618
|
+
le(wt, { class: "loading-icon" })
|
|
1619
|
+
])) : k("", !0);
|
|
1620
|
+
}
|
|
1621
|
+
}), Gi = { class: "message-content" }, qi = { key: 1 }, Wi = {
|
|
1622
|
+
name: "Message"
|
|
1623
|
+
}, K0 = /* @__PURE__ */ A({
|
|
1624
|
+
...Wi,
|
|
1625
|
+
props: {
|
|
1626
|
+
enableClose: {
|
|
1627
|
+
default: !1,
|
|
1628
|
+
type: Boolean
|
|
1629
|
+
},
|
|
1630
|
+
icon: {
|
|
1631
|
+
default: null,
|
|
1632
|
+
type: String
|
|
1633
|
+
},
|
|
1634
|
+
message: {
|
|
1635
|
+
required: !0,
|
|
1636
|
+
type: String || Array
|
|
1637
|
+
},
|
|
1638
|
+
severity: {
|
|
1639
|
+
type: String,
|
|
1640
|
+
default: "info",
|
|
1641
|
+
validator: (e) => ["danger", "info", "success", "warning"].includes(e)
|
|
1642
|
+
},
|
|
1643
|
+
showIcon: {
|
|
1644
|
+
default: !0,
|
|
1645
|
+
type: Boolean
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
emits: ["close"],
|
|
1649
|
+
setup(e, { emit: t }) {
|
|
1650
|
+
const n = t, o = Se(), i = _(!0), a = () => {
|
|
1651
|
+
i.value = !1, n("close");
|
|
1652
|
+
};
|
|
1653
|
+
return (l, r) => bt((d(), p("div", {
|
|
1654
|
+
class: N(["message", e.severity])
|
|
1655
|
+
}, [
|
|
1656
|
+
e.icon || H(o).icon || e.showIcon ? (d(), p("span", {
|
|
1657
|
+
key: 0,
|
|
1658
|
+
class: N(["icon", { default: !e.icon && !H(o).icon && e.showIcon }])
|
|
1659
|
+
}, [
|
|
1660
|
+
(e.icon || H(o).icon) && e.showIcon ? I(l.$slots, "icon", { key: 0 }, () => [
|
|
1661
|
+
h("i", {
|
|
1662
|
+
class: N(e.icon)
|
|
1663
|
+
}, null, 2)
|
|
1664
|
+
]) : k("", !0)
|
|
1665
|
+
], 2)) : k("", !0),
|
|
1666
|
+
h("div", Gi, [
|
|
1667
|
+
I(l.$slots, "default", {}, () => [
|
|
1668
|
+
Array.isArray(e.message) ? e.message.length ? (d(), p("ul", qi, [
|
|
1669
|
+
(d(!0), p(q, null, se(e.message, (s, u) => (d(), p("li", {
|
|
1670
|
+
key: `message-${u}`
|
|
1671
|
+
}, O(s), 1))), 128))
|
|
1672
|
+
])) : k("", !0) : (d(), p(q, { key: 0 }, [
|
|
1673
|
+
Q(O(e.message), 1)
|
|
1674
|
+
], 64))
|
|
1675
|
+
])
|
|
1676
|
+
]),
|
|
1677
|
+
e.enableClose ? (d(), p("span", {
|
|
1678
|
+
key: 1,
|
|
1679
|
+
class: "close-message",
|
|
1680
|
+
onClick: r[0] || (r[0] = (s) => a())
|
|
1681
|
+
})) : k("", !0)
|
|
1682
|
+
], 2)), [
|
|
1683
|
+
[Ct, i.value]
|
|
1684
|
+
]);
|
|
1685
|
+
}
|
|
1686
|
+
}), Yi = { class: "modal" }, Ui = { class: "overlay" }, Xi = { class: "header" }, Ki = {
|
|
1687
|
+
key: 0,
|
|
1688
|
+
role: "heading"
|
|
1689
|
+
}, Qi = {
|
|
1690
|
+
key: 0,
|
|
1691
|
+
class: "content"
|
|
1692
|
+
}, Ji = {
|
|
1693
|
+
key: 1,
|
|
1694
|
+
class: "footer"
|
|
1695
|
+
}, e2 = {
|
|
1696
|
+
name: "Modal"
|
|
1697
|
+
}, Q0 = /* @__PURE__ */ A({
|
|
1698
|
+
...e2,
|
|
1699
|
+
props: {
|
|
1700
|
+
dismissOnClickOut: {
|
|
1701
|
+
default: !0,
|
|
1702
|
+
type: Boolean
|
|
1703
|
+
},
|
|
1704
|
+
show: {
|
|
1705
|
+
default: !1,
|
|
1706
|
+
type: Boolean
|
|
1707
|
+
},
|
|
1708
|
+
title: {
|
|
1709
|
+
default: "",
|
|
1710
|
+
type: String
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
emits: ["on:close"],
|
|
1714
|
+
setup(e, { emit: t }) {
|
|
1715
|
+
const n = _(), o = t, i = e, a = Se();
|
|
1716
|
+
qt(n, (r) => {
|
|
1717
|
+
i.dismissOnClickOut && l();
|
|
1718
|
+
});
|
|
1719
|
+
const l = () => {
|
|
1720
|
+
o("on:close");
|
|
1721
|
+
};
|
|
1722
|
+
return (r, s) => bt((d(), p("div", Yi, [
|
|
1723
|
+
h("div", Ui, [
|
|
1724
|
+
h("div", {
|
|
1725
|
+
ref_key: "dzangolabVueModal",
|
|
1726
|
+
ref: n,
|
|
1727
|
+
class: N(["dialog", { active: e.show }])
|
|
1728
|
+
}, [
|
|
1729
|
+
h("div", Xi, [
|
|
1730
|
+
I(r.$slots, "header", {}, () => [
|
|
1731
|
+
e.title ? (d(), p("span", Ki, O(e.title), 1)) : k("", !0)
|
|
1732
|
+
]),
|
|
1733
|
+
(d(), p("svg", {
|
|
1734
|
+
"aria-label": "close modal",
|
|
1735
|
+
height: "1.5rem",
|
|
1736
|
+
tabindex: "0",
|
|
1737
|
+
width: "1.5rem",
|
|
1738
|
+
viewBox: "0 0 16 16",
|
|
1739
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1740
|
+
onClick: s[0] || (s[0] = (u) => l())
|
|
1741
|
+
}, s[1] || (s[1] = [
|
|
1742
|
+
h("path", {
|
|
1743
|
+
fill: "currentColor",
|
|
1744
|
+
d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"
|
|
1745
|
+
}, null, -1)
|
|
1746
|
+
])))
|
|
1747
|
+
]),
|
|
1748
|
+
H(a).default ? (d(), p("div", Qi, [
|
|
1749
|
+
I(r.$slots, "default")
|
|
1750
|
+
])) : k("", !0),
|
|
1751
|
+
H(a).footer ? (d(), p("div", Ji, [
|
|
1752
|
+
I(r.$slots, "footer")
|
|
1753
|
+
])) : k("", !0)
|
|
1754
|
+
], 2)
|
|
1755
|
+
])
|
|
1756
|
+
], 512)), [
|
|
1757
|
+
[Ct, e.show]
|
|
1758
|
+
]);
|
|
1759
|
+
}
|
|
1760
|
+
}), t2 = ["data-centered"], n2 = { class: "page-header" }, o2 = { class: "page-title-wrapper" }, i2 = { class: "title" }, a2 = {
|
|
1761
|
+
key: 0,
|
|
1762
|
+
class: "title-tag"
|
|
1763
|
+
}, l2 = { key: 0 }, r2 = { class: "page-toolbar" }, s2 = { class: "page-content" }, u2 = {
|
|
1764
|
+
name: "Page"
|
|
1765
|
+
}, d2 = /* @__PURE__ */ A({
|
|
1766
|
+
...u2,
|
|
1767
|
+
props: {
|
|
1768
|
+
centered: Boolean,
|
|
1769
|
+
loading: Boolean,
|
|
1770
|
+
subTitle: {
|
|
1771
|
+
default: void 0,
|
|
1772
|
+
required: !1,
|
|
1773
|
+
type: String
|
|
1774
|
+
},
|
|
1775
|
+
title: {
|
|
1776
|
+
default: void 0,
|
|
1777
|
+
required: !1,
|
|
1778
|
+
type: String
|
|
1779
|
+
},
|
|
1780
|
+
titleElement: {
|
|
1781
|
+
default: "h1",
|
|
1782
|
+
type: String,
|
|
1783
|
+
validator: (e) => ["h1", "h2", "h3", "h4", "h5", "h6"].includes(e)
|
|
1784
|
+
},
|
|
1785
|
+
titleTag: {
|
|
1786
|
+
default: void 0,
|
|
1787
|
+
type: String
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
setup(e) {
|
|
1791
|
+
return (t, n) => (d(), p("div", {
|
|
1792
|
+
class: "page",
|
|
1793
|
+
"data-centered": e.centered
|
|
1794
|
+
}, [
|
|
1795
|
+
h("div", n2, [
|
|
1796
|
+
h("div", o2, [
|
|
1797
|
+
h("div", i2, [
|
|
1798
|
+
e.title ? (d(), j(_e(e.titleElement), { key: 0 }, {
|
|
1799
|
+
default: G(() => [
|
|
1800
|
+
Q(O(e.title), 1)
|
|
1801
|
+
]),
|
|
1802
|
+
_: 1
|
|
1803
|
+
})) : k("", !0),
|
|
1804
|
+
I(t.$slots, "titleTag", {}, () => [
|
|
1805
|
+
e.titleTag ? (d(), p("span", a2, [
|
|
1806
|
+
le(to, { label: e.titleTag }, null, 8, ["label"])
|
|
1807
|
+
])) : k("", !0)
|
|
1808
|
+
])
|
|
1809
|
+
]),
|
|
1810
|
+
I(t.$slots, "subtitle", {}, () => [
|
|
1811
|
+
e.subTitle ? (d(), p("small", l2, O(e.subTitle), 1)) : k("", !0)
|
|
1812
|
+
])
|
|
1813
|
+
]),
|
|
1814
|
+
h("div", r2, [
|
|
1815
|
+
I(t.$slots, "toolbar")
|
|
1816
|
+
])
|
|
1817
|
+
]),
|
|
1818
|
+
h("div", s2, [
|
|
1819
|
+
I(t.$slots, "default"),
|
|
1820
|
+
le(Zi, { loading: e.loading }, null, 8, ["loading"])
|
|
1821
|
+
])
|
|
1822
|
+
], 8, t2));
|
|
1823
|
+
}
|
|
1824
|
+
}), c2 = { class: "menu" }, f2 = ["onClick"], h2 = {
|
|
1825
|
+
name: "ResponsiveMenu"
|
|
1826
|
+
}, J0 = /* @__PURE__ */ A({
|
|
1827
|
+
...h2,
|
|
1828
|
+
props: {
|
|
1829
|
+
routes: {
|
|
1830
|
+
required: !0,
|
|
1831
|
+
type: Array
|
|
1832
|
+
},
|
|
1833
|
+
activeRoute: {
|
|
1834
|
+
default: "",
|
|
1835
|
+
required: !1,
|
|
1836
|
+
type: String
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
emits: ["change-route"],
|
|
1840
|
+
setup(e) {
|
|
1841
|
+
return (t, n) => {
|
|
1842
|
+
const o = bn("router-link");
|
|
1843
|
+
return d(), p("nav", c2, [
|
|
1844
|
+
h("ul", null, [
|
|
1845
|
+
(d(!0), p(q, null, se(e.routes, (i, a) => (d(), p("li", {
|
|
1846
|
+
key: a,
|
|
1847
|
+
class: N({ active: e.activeRoute === i.route }),
|
|
1848
|
+
onClick: (l) => t.$emit("change-route", i.route)
|
|
1849
|
+
}, [
|
|
1850
|
+
le(o, {
|
|
1851
|
+
to: { name: i.route }
|
|
1852
|
+
}, {
|
|
1853
|
+
default: G(() => [
|
|
1854
|
+
Q(O(i.name), 1)
|
|
1855
|
+
]),
|
|
1856
|
+
_: 2
|
|
1857
|
+
}, 1032, ["to"])
|
|
1858
|
+
], 10, f2))), 128))
|
|
1859
|
+
])
|
|
1860
|
+
]);
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
});
|
|
1864
|
+
/*!
|
|
1865
|
+
* vue-draggable-next v2.2.0
|
|
1866
|
+
* (c) 2023 Anish George
|
|
1867
|
+
* @license MIT
|
|
1868
|
+
*/
|
|
1869
|
+
/**!
|
|
1870
|
+
* Sortable 1.14.0
|
|
1871
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
1872
|
+
* @author owenm <owen23355@gmail.com>
|
|
1873
|
+
* @license MIT
|
|
1874
|
+
*/
|
|
1875
|
+
function on(e, t) {
|
|
1876
|
+
var n = Object.keys(e);
|
|
1877
|
+
if (Object.getOwnPropertySymbols) {
|
|
1878
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1879
|
+
t && (o = o.filter(function(i) {
|
|
1880
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
1881
|
+
})), n.push.apply(n, o);
|
|
1882
|
+
}
|
|
1883
|
+
return n;
|
|
1884
|
+
}
|
|
1885
|
+
function ge(e) {
|
|
1886
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1887
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
1888
|
+
t % 2 ? on(Object(n), !0).forEach(function(o) {
|
|
1889
|
+
p2(e, o, n[o]);
|
|
1890
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : on(Object(n)).forEach(function(o) {
|
|
1891
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
return e;
|
|
1895
|
+
}
|
|
1896
|
+
function st(e) {
|
|
1897
|
+
"@babel/helpers - typeof";
|
|
1898
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? st = function(t) {
|
|
1899
|
+
return typeof t;
|
|
1900
|
+
} : st = function(t) {
|
|
1901
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1902
|
+
}, st(e);
|
|
1903
|
+
}
|
|
1904
|
+
function p2(e, t, n) {
|
|
1905
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1906
|
+
value: n,
|
|
1907
|
+
enumerable: !0,
|
|
1908
|
+
configurable: !0,
|
|
1909
|
+
writable: !0
|
|
1910
|
+
}) : e[t] = n, e;
|
|
1911
|
+
}
|
|
1912
|
+
function we() {
|
|
1913
|
+
return we = Object.assign || function(e) {
|
|
1914
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1915
|
+
var n = arguments[t];
|
|
1916
|
+
for (var o in n)
|
|
1917
|
+
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
1918
|
+
}
|
|
1919
|
+
return e;
|
|
1920
|
+
}, we.apply(this, arguments);
|
|
1921
|
+
}
|
|
1922
|
+
function g2(e, t) {
|
|
1923
|
+
if (e == null) return {};
|
|
1924
|
+
var n = {}, o = Object.keys(e), i, a;
|
|
1925
|
+
for (a = 0; a < o.length; a++)
|
|
1926
|
+
i = o[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
1927
|
+
return n;
|
|
1928
|
+
}
|
|
1929
|
+
function m2(e, t) {
|
|
1930
|
+
if (e == null) return {};
|
|
1931
|
+
var n = g2(e, t), o, i;
|
|
1932
|
+
if (Object.getOwnPropertySymbols) {
|
|
1933
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1934
|
+
for (i = 0; i < a.length; i++)
|
|
1935
|
+
o = a[i], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (n[o] = e[o]);
|
|
1936
|
+
}
|
|
1937
|
+
return n;
|
|
1938
|
+
}
|
|
1939
|
+
var v2 = "1.14.0";
|
|
1940
|
+
function ye(e) {
|
|
1941
|
+
if (typeof window < "u" && window.navigator)
|
|
1942
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1943
|
+
}
|
|
1944
|
+
var ke = ye(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = ye(/Edge/i), an = ye(/firefox/i), Ye = ye(/safari/i) && !ye(/chrome/i) && !ye(/android/i), kn = ye(/iP(ad|od|hone)/i), b2 = ye(/chrome/i) && ye(/android/i), $n = {
|
|
1945
|
+
capture: !1,
|
|
1946
|
+
passive: !1
|
|
1947
|
+
};
|
|
1948
|
+
function P(e, t, n) {
|
|
1949
|
+
e.addEventListener(t, n, !ke && $n);
|
|
1950
|
+
}
|
|
1951
|
+
function B(e, t, n) {
|
|
1952
|
+
e.removeEventListener(t, n, !ke && $n);
|
|
1953
|
+
}
|
|
1954
|
+
function ht(e, t) {
|
|
1955
|
+
if (t) {
|
|
1956
|
+
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
1957
|
+
try {
|
|
1958
|
+
if (e.matches)
|
|
1959
|
+
return e.matches(t);
|
|
1960
|
+
if (e.msMatchesSelector)
|
|
1961
|
+
return e.msMatchesSelector(t);
|
|
1962
|
+
if (e.webkitMatchesSelector)
|
|
1963
|
+
return e.webkitMatchesSelector(t);
|
|
1964
|
+
} catch {
|
|
1965
|
+
return !1;
|
|
1966
|
+
}
|
|
1967
|
+
return !1;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
function C2(e) {
|
|
1971
|
+
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1972
|
+
}
|
|
1973
|
+
function fe(e, t, n, o) {
|
|
1974
|
+
if (e) {
|
|
1975
|
+
n = n || document;
|
|
1976
|
+
do {
|
|
1977
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && ht(e, t) : ht(e, t)) || o && e === n)
|
|
1978
|
+
return e;
|
|
1979
|
+
if (e === n) break;
|
|
1980
|
+
} while (e = C2(e));
|
|
1981
|
+
}
|
|
1982
|
+
return null;
|
|
1983
|
+
}
|
|
1984
|
+
var ln = /\s+/g;
|
|
1985
|
+
function oe(e, t, n) {
|
|
1986
|
+
if (e && t)
|
|
1987
|
+
if (e.classList)
|
|
1988
|
+
e.classList[n ? "add" : "remove"](t);
|
|
1989
|
+
else {
|
|
1990
|
+
var o = (" " + e.className + " ").replace(ln, " ").replace(" " + t + " ", " ");
|
|
1991
|
+
e.className = (o + (n ? " " + t : "")).replace(ln, " ");
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
function T(e, t, n) {
|
|
1995
|
+
var o = e && e.style;
|
|
1996
|
+
if (o) {
|
|
1997
|
+
if (n === void 0)
|
|
1998
|
+
return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
1999
|
+
!(t in o) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), o[t] = n + (typeof n == "string" ? "" : "px");
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
function je(e, t) {
|
|
2003
|
+
var n = "";
|
|
2004
|
+
if (typeof e == "string")
|
|
2005
|
+
n = e;
|
|
2006
|
+
else
|
|
2007
|
+
do {
|
|
2008
|
+
var o = T(e, "transform");
|
|
2009
|
+
o && o !== "none" && (n = o + " " + n);
|
|
2010
|
+
} while (!t && (e = e.parentNode));
|
|
2011
|
+
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2012
|
+
return i && new i(n);
|
|
2013
|
+
}
|
|
2014
|
+
function En(e, t, n) {
|
|
2015
|
+
if (e) {
|
|
2016
|
+
var o = e.getElementsByTagName(t), i = 0, a = o.length;
|
|
2017
|
+
if (n)
|
|
2018
|
+
for (; i < a; i++)
|
|
2019
|
+
n(o[i], i);
|
|
2020
|
+
return o;
|
|
2021
|
+
}
|
|
2022
|
+
return [];
|
|
2023
|
+
}
|
|
2024
|
+
function pe() {
|
|
2025
|
+
var e = document.scrollingElement;
|
|
2026
|
+
return e || document.documentElement;
|
|
2027
|
+
}
|
|
2028
|
+
function W(e, t, n, o, i) {
|
|
2029
|
+
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2030
|
+
var a, l, r, s, u, f, c;
|
|
2031
|
+
if (e !== window && e.parentNode && e !== pe() ? (a = e.getBoundingClientRect(), l = a.top, r = a.left, s = a.bottom, u = a.right, f = a.height, c = a.width) : (l = 0, r = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !ke))
|
|
2032
|
+
do
|
|
2033
|
+
if (i && i.getBoundingClientRect && (T(i, "transform") !== "none" || n && T(i, "position") !== "static")) {
|
|
2034
|
+
var v = i.getBoundingClientRect();
|
|
2035
|
+
l -= v.top + parseInt(T(i, "border-top-width")), r -= v.left + parseInt(T(i, "border-left-width")), s = l + a.height, u = r + a.width;
|
|
2036
|
+
break;
|
|
2037
|
+
}
|
|
2038
|
+
while (i = i.parentNode);
|
|
2039
|
+
if (o && e !== window) {
|
|
2040
|
+
var $ = je(i || e), w = $ && $.a, M = $ && $.d;
|
|
2041
|
+
$ && (l /= M, r /= w, c /= w, f /= M, s = l + f, u = r + c);
|
|
2042
|
+
}
|
|
2043
|
+
return {
|
|
2044
|
+
top: l,
|
|
2045
|
+
left: r,
|
|
2046
|
+
bottom: s,
|
|
2047
|
+
right: u,
|
|
2048
|
+
width: c,
|
|
2049
|
+
height: f
|
|
2050
|
+
};
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
function rn(e, t, n) {
|
|
2054
|
+
for (var o = xe(e, !0), i = W(e)[t]; o; ) {
|
|
2055
|
+
var a = W(o)[n], l = void 0;
|
|
2056
|
+
if (l = i >= a, !l) return o;
|
|
2057
|
+
if (o === pe()) break;
|
|
2058
|
+
o = xe(o, !1);
|
|
2059
|
+
}
|
|
2060
|
+
return !1;
|
|
2061
|
+
}
|
|
2062
|
+
function ze(e, t, n, o) {
|
|
2063
|
+
for (var i = 0, a = 0, l = e.children; a < l.length; ) {
|
|
2064
|
+
if (l[a].style.display !== "none" && l[a] !== x.ghost && (o || l[a] !== x.dragged) && fe(l[a], n.draggable, e, !1)) {
|
|
2065
|
+
if (i === t)
|
|
2066
|
+
return l[a];
|
|
2067
|
+
i++;
|
|
2068
|
+
}
|
|
2069
|
+
a++;
|
|
2070
|
+
}
|
|
2071
|
+
return null;
|
|
2072
|
+
}
|
|
2073
|
+
function Yt(e, t) {
|
|
2074
|
+
for (var n = e.lastElementChild; n && (n === x.ghost || T(n, "display") === "none" || t && !ht(n, t)); )
|
|
2075
|
+
n = n.previousElementSibling;
|
|
2076
|
+
return n || null;
|
|
2077
|
+
}
|
|
2078
|
+
function re(e, t) {
|
|
2079
|
+
var n = 0;
|
|
2080
|
+
if (!e || !e.parentNode)
|
|
2081
|
+
return -1;
|
|
2082
|
+
for (; e = e.previousElementSibling; )
|
|
2083
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== x.clone && (!t || ht(e, t)) && n++;
|
|
2084
|
+
return n;
|
|
2085
|
+
}
|
|
2086
|
+
function sn(e) {
|
|
2087
|
+
var t = 0, n = 0, o = pe();
|
|
2088
|
+
if (e)
|
|
2089
|
+
do {
|
|
2090
|
+
var i = je(e), a = i.a, l = i.d;
|
|
2091
|
+
t += e.scrollLeft * a, n += e.scrollTop * l;
|
|
2092
|
+
} while (e !== o && (e = e.parentNode));
|
|
2093
|
+
return [t, n];
|
|
2094
|
+
}
|
|
2095
|
+
function y2(e, t) {
|
|
2096
|
+
for (var n in e)
|
|
2097
|
+
if (e.hasOwnProperty(n)) {
|
|
2098
|
+
for (var o in t)
|
|
2099
|
+
if (t.hasOwnProperty(o) && t[o] === e[n][o]) return Number(n);
|
|
2100
|
+
}
|
|
2101
|
+
return -1;
|
|
2102
|
+
}
|
|
2103
|
+
function xe(e, t) {
|
|
2104
|
+
if (!e || !e.getBoundingClientRect) return pe();
|
|
2105
|
+
var n = e, o = !1;
|
|
2106
|
+
do
|
|
2107
|
+
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2108
|
+
var i = T(n);
|
|
2109
|
+
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2110
|
+
if (!n.getBoundingClientRect || n === document.body) return pe();
|
|
2111
|
+
if (o || t) return n;
|
|
2112
|
+
o = !0;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
while (n = n.parentNode);
|
|
2116
|
+
return pe();
|
|
2117
|
+
}
|
|
2118
|
+
function w2(e, t) {
|
|
2119
|
+
if (e && t)
|
|
2120
|
+
for (var n in t)
|
|
2121
|
+
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2122
|
+
return e;
|
|
2123
|
+
}
|
|
2124
|
+
function Tt(e, t) {
|
|
2125
|
+
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
2126
|
+
}
|
|
2127
|
+
var Ue;
|
|
2128
|
+
function Dn(e, t) {
|
|
2129
|
+
return function() {
|
|
2130
|
+
if (!Ue) {
|
|
2131
|
+
var n = arguments, o = this;
|
|
2132
|
+
n.length === 1 ? e.call(o, n[0]) : e.apply(o, n), Ue = setTimeout(function() {
|
|
2133
|
+
Ue = void 0;
|
|
2134
|
+
}, t);
|
|
2135
|
+
}
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
function S2() {
|
|
2139
|
+
clearTimeout(Ue), Ue = void 0;
|
|
2140
|
+
}
|
|
2141
|
+
function Tn(e, t, n) {
|
|
2142
|
+
e.scrollLeft += t, e.scrollTop += n;
|
|
2143
|
+
}
|
|
2144
|
+
function xn(e) {
|
|
2145
|
+
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2146
|
+
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2147
|
+
}
|
|
2148
|
+
var ae = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2149
|
+
function k2() {
|
|
2150
|
+
var e = [], t;
|
|
2151
|
+
return {
|
|
2152
|
+
captureAnimationState: function() {
|
|
2153
|
+
if (e = [], !!this.options.animation) {
|
|
2154
|
+
var o = [].slice.call(this.el.children);
|
|
2155
|
+
o.forEach(function(i) {
|
|
2156
|
+
if (!(T(i, "display") === "none" || i === x.ghost)) {
|
|
2157
|
+
e.push({
|
|
2158
|
+
target: i,
|
|
2159
|
+
rect: W(i)
|
|
2160
|
+
});
|
|
2161
|
+
var a = ge({}, e[e.length - 1].rect);
|
|
2162
|
+
if (i.thisAnimationDuration) {
|
|
2163
|
+
var l = je(i, !0);
|
|
2164
|
+
l && (a.top -= l.f, a.left -= l.e);
|
|
2165
|
+
}
|
|
2166
|
+
i.fromRect = a;
|
|
2167
|
+
}
|
|
2168
|
+
});
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
addAnimationState: function(o) {
|
|
2172
|
+
e.push(o);
|
|
2173
|
+
},
|
|
2174
|
+
removeAnimationState: function(o) {
|
|
2175
|
+
e.splice(y2(e, {
|
|
2176
|
+
target: o
|
|
2177
|
+
}), 1);
|
|
2178
|
+
},
|
|
2179
|
+
animateAll: function(o) {
|
|
2180
|
+
var i = this;
|
|
2181
|
+
if (!this.options.animation) {
|
|
2182
|
+
clearTimeout(t), typeof o == "function" && o();
|
|
2183
|
+
return;
|
|
2184
|
+
}
|
|
2185
|
+
var a = !1, l = 0;
|
|
2186
|
+
e.forEach(function(r) {
|
|
2187
|
+
var s = 0, u = r.target, f = u.fromRect, c = W(u), v = u.prevFromRect, $ = u.prevToRect, w = r.rect, M = je(u, !0);
|
|
2188
|
+
M && (c.top -= M.f, c.left -= M.e), u.toRect = c, u.thisAnimationDuration && Tt(v, c) && !Tt(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
2189
|
+
(w.top - c.top) / (w.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = E2(w, v, $, i.options)), Tt(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, w, c, s)), s && (a = !0, l = Math.max(l, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
2190
|
+
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
2191
|
+
}, s), u.thisAnimationDuration = s);
|
|
2192
|
+
}), clearTimeout(t), a ? t = setTimeout(function() {
|
|
2193
|
+
typeof o == "function" && o();
|
|
2194
|
+
}, l) : typeof o == "function" && o(), e = [];
|
|
2195
|
+
},
|
|
2196
|
+
animate: function(o, i, a, l) {
|
|
2197
|
+
if (l) {
|
|
2198
|
+
T(o, "transition", ""), T(o, "transform", "");
|
|
2199
|
+
var r = je(this.el), s = r && r.a, u = r && r.d, f = (i.left - a.left) / (s || 1), c = (i.top - a.top) / (u || 1);
|
|
2200
|
+
o.animatingX = !!f, o.animatingY = !!c, T(o, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = $2(o), T(o, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), T(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
2201
|
+
T(o, "transition", ""), T(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
2202
|
+
}, l);
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
function $2(e) {
|
|
2208
|
+
return e.offsetWidth;
|
|
2209
|
+
}
|
|
2210
|
+
function E2(e, t, n, o) {
|
|
2211
|
+
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
2212
|
+
}
|
|
2213
|
+
var Ie = [], xt = {
|
|
2214
|
+
initializeByDefault: !0
|
|
2215
|
+
}, nt = {
|
|
2216
|
+
mount: function(t) {
|
|
2217
|
+
for (var n in xt)
|
|
2218
|
+
xt.hasOwnProperty(n) && !(n in t) && (t[n] = xt[n]);
|
|
2219
|
+
Ie.forEach(function(o) {
|
|
2220
|
+
if (o.pluginName === t.pluginName)
|
|
2221
|
+
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
2222
|
+
}), Ie.push(t);
|
|
2223
|
+
},
|
|
2224
|
+
pluginEvent: function(t, n, o) {
|
|
2225
|
+
var i = this;
|
|
2226
|
+
this.eventCanceled = !1, o.cancel = function() {
|
|
2227
|
+
i.eventCanceled = !0;
|
|
2228
|
+
};
|
|
2229
|
+
var a = t + "Global";
|
|
2230
|
+
Ie.forEach(function(l) {
|
|
2231
|
+
n[l.pluginName] && (n[l.pluginName][a] && n[l.pluginName][a](ge({
|
|
2232
|
+
sortable: n
|
|
2233
|
+
}, o)), n.options[l.pluginName] && n[l.pluginName][t] && n[l.pluginName][t](ge({
|
|
2234
|
+
sortable: n
|
|
2235
|
+
}, o)));
|
|
2236
|
+
});
|
|
2237
|
+
},
|
|
2238
|
+
initializePlugins: function(t, n, o, i) {
|
|
2239
|
+
Ie.forEach(function(r) {
|
|
2240
|
+
var s = r.pluginName;
|
|
2241
|
+
if (!(!t.options[s] && !r.initializeByDefault)) {
|
|
2242
|
+
var u = new r(t, n, t.options);
|
|
2243
|
+
u.sortable = t, u.options = t.options, t[s] = u, we(o, u.defaults);
|
|
2244
|
+
}
|
|
2245
|
+
});
|
|
2246
|
+
for (var a in t.options)
|
|
2247
|
+
if (t.options.hasOwnProperty(a)) {
|
|
2248
|
+
var l = this.modifyOption(t, a, t.options[a]);
|
|
2249
|
+
typeof l < "u" && (t.options[a] = l);
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
getEventProperties: function(t, n) {
|
|
2253
|
+
var o = {};
|
|
2254
|
+
return Ie.forEach(function(i) {
|
|
2255
|
+
typeof i.eventProperties == "function" && we(o, i.eventProperties.call(n[i.pluginName], t));
|
|
2256
|
+
}), o;
|
|
2257
|
+
},
|
|
2258
|
+
modifyOption: function(t, n, o) {
|
|
2259
|
+
var i;
|
|
2260
|
+
return Ie.forEach(function(a) {
|
|
2261
|
+
t[a.pluginName] && a.optionListeners && typeof a.optionListeners[n] == "function" && (i = a.optionListeners[n].call(t[a.pluginName], o));
|
|
2262
|
+
}), i;
|
|
2263
|
+
}
|
|
2264
|
+
};
|
|
2265
|
+
function D2(e) {
|
|
2266
|
+
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, a = e.cloneEl, l = e.toEl, r = e.fromEl, s = e.oldIndex, u = e.newIndex, f = e.oldDraggableIndex, c = e.newDraggableIndex, v = e.originalEvent, $ = e.putSortable, w = e.extraEventProperties;
|
|
2267
|
+
if (t = t || n && n[ae], !!t) {
|
|
2268
|
+
var M, E = t.options, D = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
2269
|
+
window.CustomEvent && !ke && !tt ? M = new CustomEvent(o, {
|
|
2270
|
+
bubbles: !0,
|
|
2271
|
+
cancelable: !0
|
|
2272
|
+
}) : (M = document.createEvent("Event"), M.initEvent(o, !0, !0)), M.to = l || n, M.from = r || n, M.item = i || n, M.clone = a, M.oldIndex = s, M.newIndex = u, M.oldDraggableIndex = f, M.newDraggableIndex = c, M.originalEvent = v, M.pullMode = $ ? $.lastPutMode : void 0;
|
|
2273
|
+
var b = ge(ge({}, w), nt.getEventProperties(o, t));
|
|
2274
|
+
for (var C in b)
|
|
2275
|
+
M[C] = b[C];
|
|
2276
|
+
n && n.dispatchEvent(M), E[D] && E[D].call(t, M);
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
var T2 = ["evt"], te = function(t, n) {
|
|
2280
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, a = m2(o, T2);
|
|
2281
|
+
nt.pluginEvent.bind(x)(t, n, ge({
|
|
2282
|
+
dragEl: m,
|
|
2283
|
+
parentEl: z,
|
|
2284
|
+
ghostEl: L,
|
|
2285
|
+
rootEl: V,
|
|
2286
|
+
nextEl: Me,
|
|
2287
|
+
lastDownEl: ut,
|
|
2288
|
+
cloneEl: R,
|
|
2289
|
+
cloneHidden: Te,
|
|
2290
|
+
dragStarted: Ge,
|
|
2291
|
+
putSortable: X,
|
|
2292
|
+
activeSortable: x.active,
|
|
2293
|
+
originalEvent: i,
|
|
2294
|
+
oldIndex: Fe,
|
|
2295
|
+
oldDraggableIndex: Xe,
|
|
2296
|
+
newIndex: ie,
|
|
2297
|
+
newDraggableIndex: Ee,
|
|
2298
|
+
hideGhostForTarget: _n,
|
|
2299
|
+
unhideGhostForTarget: Bn,
|
|
2300
|
+
cloneNowHidden: function() {
|
|
2301
|
+
Te = !0;
|
|
2302
|
+
},
|
|
2303
|
+
cloneNowShown: function() {
|
|
2304
|
+
Te = !1;
|
|
2305
|
+
},
|
|
2306
|
+
dispatchSortableEvent: function(r) {
|
|
2307
|
+
ee({
|
|
2308
|
+
sortable: n,
|
|
2309
|
+
name: r,
|
|
2310
|
+
originalEvent: i
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2313
|
+
}, a));
|
|
2314
|
+
};
|
|
2315
|
+
function ee(e) {
|
|
2316
|
+
D2(ge({
|
|
2317
|
+
putSortable: X,
|
|
2318
|
+
cloneEl: R,
|
|
2319
|
+
targetEl: m,
|
|
2320
|
+
rootEl: V,
|
|
2321
|
+
oldIndex: Fe,
|
|
2322
|
+
oldDraggableIndex: Xe,
|
|
2323
|
+
newIndex: ie,
|
|
2324
|
+
newDraggableIndex: Ee
|
|
2325
|
+
}, e));
|
|
2326
|
+
}
|
|
2327
|
+
var m, z, L, V, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Ae = !1, pt = !1, gt = [], Le, de, Lt, Ot, un, dn, Ge, Pe, Ke, Qe = !1, at = !1, dt, K, Mt = [], Vt = !1, mt = [], kt = typeof document < "u", lt = kn, cn = tt || ke ? "cssFloat" : "float", x2 = kt && !b2 && !kn && "draggable" in document.createElement("div"), Ln = function() {
|
|
2328
|
+
if (kt) {
|
|
2329
|
+
if (ke)
|
|
2330
|
+
return !1;
|
|
2331
|
+
var e = document.createElement("x");
|
|
2332
|
+
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2333
|
+
}
|
|
2334
|
+
}(), On = function(t, n) {
|
|
2335
|
+
var o = T(t), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a = ze(t, 0, n), l = ze(t, 1, n), r = a && T(a), s = l && T(l), u = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + W(a).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(l).width;
|
|
2336
|
+
if (o.display === "flex")
|
|
2337
|
+
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2338
|
+
if (o.display === "grid")
|
|
2339
|
+
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2340
|
+
if (a && r.float && r.float !== "none") {
|
|
2341
|
+
var c = r.float === "left" ? "left" : "right";
|
|
2342
|
+
return l && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
2343
|
+
}
|
|
2344
|
+
return a && (r.display === "block" || r.display === "flex" || r.display === "table" || r.display === "grid" || u >= i && o[cn] === "none" || l && o[cn] === "none" && u + f > i) ? "vertical" : "horizontal";
|
|
2345
|
+
}, L2 = function(t, n, o) {
|
|
2346
|
+
var i = o ? t.left : t.top, a = o ? t.right : t.bottom, l = o ? t.width : t.height, r = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
2347
|
+
return i === r || a === s || i + l / 2 === r + u / 2;
|
|
2348
|
+
}, O2 = function(t, n) {
|
|
2349
|
+
var o;
|
|
2350
|
+
return gt.some(function(i) {
|
|
2351
|
+
var a = i[ae].options.emptyInsertThreshold;
|
|
2352
|
+
if (!(!a || Yt(i))) {
|
|
2353
|
+
var l = W(i), r = t >= l.left - a && t <= l.right + a, s = n >= l.top - a && n <= l.bottom + a;
|
|
2354
|
+
if (r && s)
|
|
2355
|
+
return o = i;
|
|
2356
|
+
}
|
|
2357
|
+
}), o;
|
|
2358
|
+
}, Mn = function(t) {
|
|
2359
|
+
function n(a, l) {
|
|
2360
|
+
return function(r, s, u, f) {
|
|
2361
|
+
var c = r.options.group.name && s.options.group.name && r.options.group.name === s.options.group.name;
|
|
2362
|
+
if (a == null && (l || c))
|
|
2363
|
+
return !0;
|
|
2364
|
+
if (a == null || a === !1)
|
|
2365
|
+
return !1;
|
|
2366
|
+
if (l && a === "clone")
|
|
2367
|
+
return a;
|
|
2368
|
+
if (typeof a == "function")
|
|
2369
|
+
return n(a(r, s, u, f), l)(r, s, u, f);
|
|
2370
|
+
var v = (l ? r : s).options.group.name;
|
|
2371
|
+
return a === !0 || typeof a == "string" && a === v || a.join && a.indexOf(v) > -1;
|
|
2372
|
+
};
|
|
2373
|
+
}
|
|
2374
|
+
var o = {}, i = t.group;
|
|
2375
|
+
(!i || st(i) != "object") && (i = {
|
|
2376
|
+
name: i
|
|
2377
|
+
}), o.name = i.name, o.checkPull = n(i.pull, !0), o.checkPut = n(i.put), o.revertClone = i.revertClone, t.group = o;
|
|
2378
|
+
}, _n = function() {
|
|
2379
|
+
!Ln && L && T(L, "display", "none");
|
|
2380
|
+
}, Bn = function() {
|
|
2381
|
+
!Ln && L && T(L, "display", "");
|
|
2382
|
+
};
|
|
2383
|
+
kt && document.addEventListener("click", function(e) {
|
|
2384
|
+
if (pt)
|
|
2385
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), pt = !1, !1;
|
|
2386
|
+
}, !0);
|
|
2387
|
+
var Oe = function(t) {
|
|
2388
|
+
if (m) {
|
|
2389
|
+
t = t.touches ? t.touches[0] : t;
|
|
2390
|
+
var n = O2(t.clientX, t.clientY);
|
|
2391
|
+
if (n) {
|
|
2392
|
+
var o = {};
|
|
2393
|
+
for (var i in t)
|
|
2394
|
+
t.hasOwnProperty(i) && (o[i] = t[i]);
|
|
2395
|
+
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[ae]._onDragOver(o);
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}, M2 = function(t) {
|
|
2399
|
+
m && m.parentNode[ae]._isOutsideThisEl(t.target);
|
|
2400
|
+
};
|
|
2401
|
+
function x(e, t) {
|
|
2402
|
+
if (!(e && e.nodeType && e.nodeType === 1))
|
|
2403
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
2404
|
+
this.el = e, this.options = t = we({}, t), e[ae] = this;
|
|
2405
|
+
var n = {
|
|
2406
|
+
group: null,
|
|
2407
|
+
sort: !0,
|
|
2408
|
+
disabled: !1,
|
|
2409
|
+
store: null,
|
|
2410
|
+
handle: null,
|
|
2411
|
+
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
2412
|
+
swapThreshold: 1,
|
|
2413
|
+
// percentage; 0 <= x <= 1
|
|
2414
|
+
invertSwap: !1,
|
|
2415
|
+
// invert always
|
|
2416
|
+
invertedSwapThreshold: null,
|
|
2417
|
+
// will be set to same as swapThreshold if default
|
|
2418
|
+
removeCloneOnHide: !0,
|
|
2419
|
+
direction: function() {
|
|
2420
|
+
return On(e, this.options);
|
|
2421
|
+
},
|
|
2422
|
+
ghostClass: "sortable-ghost",
|
|
2423
|
+
chosenClass: "sortable-chosen",
|
|
2424
|
+
dragClass: "sortable-drag",
|
|
2425
|
+
ignore: "a, img",
|
|
2426
|
+
filter: null,
|
|
2427
|
+
preventOnFilter: !0,
|
|
2428
|
+
animation: 0,
|
|
2429
|
+
easing: null,
|
|
2430
|
+
setData: function(l, r) {
|
|
2431
|
+
l.setData("Text", r.textContent);
|
|
2432
|
+
},
|
|
2433
|
+
dropBubble: !1,
|
|
2434
|
+
dragoverBubble: !1,
|
|
2435
|
+
dataIdAttr: "data-id",
|
|
2436
|
+
delay: 0,
|
|
2437
|
+
delayOnTouchOnly: !1,
|
|
2438
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
2439
|
+
forceFallback: !1,
|
|
2440
|
+
fallbackClass: "sortable-fallback",
|
|
2441
|
+
fallbackOnBody: !1,
|
|
2442
|
+
fallbackTolerance: 0,
|
|
2443
|
+
fallbackOffset: {
|
|
2444
|
+
x: 0,
|
|
2445
|
+
y: 0
|
|
2446
|
+
},
|
|
2447
|
+
supportPointer: x.supportPointer !== !1 && "PointerEvent" in window && !Ye,
|
|
2448
|
+
emptyInsertThreshold: 5
|
|
2449
|
+
};
|
|
2450
|
+
nt.initializePlugins(this, e, n);
|
|
2451
|
+
for (var o in n)
|
|
2452
|
+
!(o in t) && (t[o] = n[o]);
|
|
2453
|
+
Mn(t);
|
|
2454
|
+
for (var i in this)
|
|
2455
|
+
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2456
|
+
this.nativeDraggable = t.forceFallback ? !1 : x2, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? P(e, "pointerdown", this._onTapStart) : (P(e, "mousedown", this._onTapStart), P(e, "touchstart", this._onTapStart)), this.nativeDraggable && (P(e, "dragover", this), P(e, "dragenter", this)), gt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), we(this, k2());
|
|
2457
|
+
}
|
|
2458
|
+
x.prototype = /** @lends Sortable.prototype */
|
|
2459
|
+
{
|
|
2460
|
+
constructor: x,
|
|
2461
|
+
_isOutsideThisEl: function(t) {
|
|
2462
|
+
!this.el.contains(t) && t !== this.el && (Pe = null);
|
|
2463
|
+
},
|
|
2464
|
+
_getDirection: function(t, n) {
|
|
2465
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, m) : this.options.direction;
|
|
2466
|
+
},
|
|
2467
|
+
_onTapStart: function(t) {
|
|
2468
|
+
if (t.cancelable) {
|
|
2469
|
+
var n = this, o = this.el, i = this.options, a = i.preventOnFilter, l = t.type, r = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (r || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, f = i.filter;
|
|
2470
|
+
if (V2(o), !m && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ye && s && s.tagName.toUpperCase() === "SELECT") && (s = fe(s, i.draggable, o, !1), !(s && s.animated) && ut !== s)) {
|
|
2471
|
+
if (Fe = re(s), Xe = re(s, i.draggable), typeof f == "function") {
|
|
2472
|
+
if (f.call(this, t, s, this)) {
|
|
2473
|
+
ee({
|
|
2474
|
+
sortable: n,
|
|
2475
|
+
rootEl: u,
|
|
2476
|
+
name: "filter",
|
|
2477
|
+
targetEl: s,
|
|
2478
|
+
toEl: o,
|
|
2479
|
+
fromEl: o
|
|
2480
|
+
}), te("filter", n, {
|
|
2481
|
+
evt: t
|
|
2482
|
+
}), a && t.cancelable && t.preventDefault();
|
|
2483
|
+
return;
|
|
2484
|
+
}
|
|
2485
|
+
} else if (f && (f = f.split(",").some(function(c) {
|
|
2486
|
+
if (c = fe(u, c.trim(), o, !1), c)
|
|
2487
|
+
return ee({
|
|
2488
|
+
sortable: n,
|
|
2489
|
+
rootEl: c,
|
|
2490
|
+
name: "filter",
|
|
2491
|
+
targetEl: s,
|
|
2492
|
+
fromEl: o,
|
|
2493
|
+
toEl: o
|
|
2494
|
+
}), te("filter", n, {
|
|
2495
|
+
evt: t
|
|
2496
|
+
}), !0;
|
|
2497
|
+
}), f)) {
|
|
2498
|
+
a && t.cancelable && t.preventDefault();
|
|
2499
|
+
return;
|
|
2500
|
+
}
|
|
2501
|
+
i.handle && !fe(u, i.handle, o, !1) || this._prepareDragStart(t, r, s);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
_prepareDragStart: function(t, n, o) {
|
|
2506
|
+
var i = this, a = i.el, l = i.options, r = a.ownerDocument, s;
|
|
2507
|
+
if (o && !m && o.parentNode === a) {
|
|
2508
|
+
var u = W(o);
|
|
2509
|
+
if (V = a, m = o, z = m.parentNode, Me = m.nextSibling, ut = o, it = l.group, x.dragged = m, Le = {
|
|
2510
|
+
target: m,
|
|
2511
|
+
clientX: (n || t).clientX,
|
|
2512
|
+
clientY: (n || t).clientY
|
|
2513
|
+
}, un = Le.clientX - u.left, dn = Le.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, m.style["will-change"] = "all", s = function() {
|
|
2514
|
+
if (te("delayEnded", i, {
|
|
2515
|
+
evt: t
|
|
2516
|
+
}), x.eventCanceled) {
|
|
2517
|
+
i._onDrop();
|
|
2518
|
+
return;
|
|
2519
|
+
}
|
|
2520
|
+
i._disableDelayedDragEvents(), !an && i.nativeDraggable && (m.draggable = !0), i._triggerDragStart(t, n), ee({
|
|
2521
|
+
sortable: i,
|
|
2522
|
+
name: "choose",
|
|
2523
|
+
originalEvent: t
|
|
2524
|
+
}), oe(m, l.chosenClass, !0);
|
|
2525
|
+
}, l.ignore.split(",").forEach(function(f) {
|
|
2526
|
+
En(m, f.trim(), _t);
|
|
2527
|
+
}), P(r, "dragover", Oe), P(r, "mousemove", Oe), P(r, "touchmove", Oe), P(r, "mouseup", i._onDrop), P(r, "touchend", i._onDrop), P(r, "touchcancel", i._onDrop), an && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), te("delayStart", this, {
|
|
2528
|
+
evt: t
|
|
2529
|
+
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt || ke))) {
|
|
2530
|
+
if (x.eventCanceled) {
|
|
2531
|
+
this._onDrop();
|
|
2532
|
+
return;
|
|
2533
|
+
}
|
|
2534
|
+
P(r, "mouseup", i._disableDelayedDrag), P(r, "touchend", i._disableDelayedDrag), P(r, "touchcancel", i._disableDelayedDrag), P(r, "mousemove", i._delayedDragTouchMoveHandler), P(r, "touchmove", i._delayedDragTouchMoveHandler), l.supportPointer && P(r, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, l.delay);
|
|
2535
|
+
} else
|
|
2536
|
+
s();
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
_delayedDragTouchMoveHandler: function(t) {
|
|
2540
|
+
var n = t.touches ? t.touches[0] : t;
|
|
2541
|
+
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
2542
|
+
},
|
|
2543
|
+
_disableDelayedDrag: function() {
|
|
2544
|
+
m && _t(m), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2545
|
+
},
|
|
2546
|
+
_disableDelayedDragEvents: function() {
|
|
2547
|
+
var t = this.el.ownerDocument;
|
|
2548
|
+
B(t, "mouseup", this._disableDelayedDrag), B(t, "touchend", this._disableDelayedDrag), B(t, "touchcancel", this._disableDelayedDrag), B(t, "mousemove", this._delayedDragTouchMoveHandler), B(t, "touchmove", this._delayedDragTouchMoveHandler), B(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2549
|
+
},
|
|
2550
|
+
_triggerDragStart: function(t, n) {
|
|
2551
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? P(document, "pointermove", this._onTouchMove) : n ? P(document, "touchmove", this._onTouchMove) : P(document, "mousemove", this._onTouchMove) : (P(m, "dragend", this), P(V, "dragstart", this._onDragStart));
|
|
2552
|
+
try {
|
|
2553
|
+
document.selection ? ct(function() {
|
|
2554
|
+
document.selection.empty();
|
|
2555
|
+
}) : window.getSelection().removeAllRanges();
|
|
2556
|
+
} catch {
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
_dragStarted: function(t, n) {
|
|
2560
|
+
if (Ae = !1, V && m) {
|
|
2561
|
+
te("dragStarted", this, {
|
|
2562
|
+
evt: n
|
|
2563
|
+
}), this.nativeDraggable && P(document, "dragover", M2);
|
|
2564
|
+
var o = this.options;
|
|
2565
|
+
!t && oe(m, o.dragClass, !1), oe(m, o.ghostClass, !0), x.active = this, t && this._appendGhost(), ee({
|
|
2566
|
+
sortable: this,
|
|
2567
|
+
name: "start",
|
|
2568
|
+
originalEvent: n
|
|
2569
|
+
});
|
|
2570
|
+
} else
|
|
2571
|
+
this._nulling();
|
|
2572
|
+
},
|
|
2573
|
+
_emulateDragOver: function() {
|
|
2574
|
+
if (de) {
|
|
2575
|
+
this._lastX = de.clientX, this._lastY = de.clientY, _n();
|
|
2576
|
+
for (var t = document.elementFromPoint(de.clientX, de.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(de.clientX, de.clientY), t !== n); )
|
|
2577
|
+
n = t;
|
|
2578
|
+
if (m.parentNode[ae]._isOutsideThisEl(t), n)
|
|
2579
|
+
do {
|
|
2580
|
+
if (n[ae]) {
|
|
2581
|
+
var o = void 0;
|
|
2582
|
+
if (o = n[ae]._onDragOver({
|
|
2583
|
+
clientX: de.clientX,
|
|
2584
|
+
clientY: de.clientY,
|
|
2585
|
+
target: t,
|
|
2586
|
+
rootEl: n
|
|
2587
|
+
}), o && !this.options.dragoverBubble)
|
|
2588
|
+
break;
|
|
2589
|
+
}
|
|
2590
|
+
t = n;
|
|
2591
|
+
} while (n = n.parentNode);
|
|
2592
|
+
Bn();
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
_onTouchMove: function(t) {
|
|
2596
|
+
if (Le) {
|
|
2597
|
+
var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = L && je(L, !0), r = L && l && l.a, s = L && l && l.d, u = lt && K && sn(K), f = (a.clientX - Le.clientX + i.x) / (r || 1) + (u ? u[0] - Mt[0] : 0) / (r || 1), c = (a.clientY - Le.clientY + i.y) / (s || 1) + (u ? u[1] - Mt[1] : 0) / (s || 1);
|
|
2598
|
+
if (!x.active && !Ae) {
|
|
2599
|
+
if (o && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < o)
|
|
2600
|
+
return;
|
|
2601
|
+
this._onDragStart(t, !0);
|
|
2602
|
+
}
|
|
2603
|
+
if (L) {
|
|
2604
|
+
l ? (l.e += f - (Lt || 0), l.f += c - (Ot || 0)) : l = {
|
|
2605
|
+
a: 1,
|
|
2606
|
+
b: 0,
|
|
2607
|
+
c: 0,
|
|
2608
|
+
d: 1,
|
|
2609
|
+
e: f,
|
|
2610
|
+
f: c
|
|
2611
|
+
};
|
|
2612
|
+
var v = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
2613
|
+
T(L, "webkitTransform", v), T(L, "mozTransform", v), T(L, "msTransform", v), T(L, "transform", v), Lt = f, Ot = c, de = a;
|
|
2614
|
+
}
|
|
2615
|
+
t.cancelable && t.preventDefault();
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
_appendGhost: function() {
|
|
2619
|
+
if (!L) {
|
|
2620
|
+
var t = this.options.fallbackOnBody ? document.body : V, n = W(m, !0, lt, !0, t), o = this.options;
|
|
2621
|
+
if (lt) {
|
|
2622
|
+
for (K = t; T(K, "position") === "static" && T(K, "transform") === "none" && K !== document; )
|
|
2623
|
+
K = K.parentNode;
|
|
2624
|
+
K !== document.body && K !== document.documentElement ? (K === document && (K = pe()), n.top += K.scrollTop, n.left += K.scrollLeft) : K = pe(), Mt = sn(K);
|
|
2625
|
+
}
|
|
2626
|
+
L = m.cloneNode(!0), oe(L, o.ghostClass, !1), oe(L, o.fallbackClass, !0), oe(L, o.dragClass, !0), T(L, "transition", ""), T(L, "transform", ""), T(L, "box-sizing", "border-box"), T(L, "margin", 0), T(L, "top", n.top), T(L, "left", n.left), T(L, "width", n.width), T(L, "height", n.height), T(L, "opacity", "0.8"), T(L, "position", lt ? "absolute" : "fixed"), T(L, "zIndex", "100000"), T(L, "pointerEvents", "none"), x.ghost = L, t.appendChild(L), T(L, "transform-origin", un / parseInt(L.style.width) * 100 + "% " + dn / parseInt(L.style.height) * 100 + "%");
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
_onDragStart: function(t, n) {
|
|
2630
|
+
var o = this, i = t.dataTransfer, a = o.options;
|
|
2631
|
+
if (te("dragStart", this, {
|
|
2632
|
+
evt: t
|
|
2633
|
+
}), x.eventCanceled) {
|
|
2634
|
+
this._onDrop();
|
|
2635
|
+
return;
|
|
2636
|
+
}
|
|
2637
|
+
te("setupClone", this), x.eventCanceled || (R = xn(m), R.draggable = !1, R.style["will-change"] = "", this._hideClone(), oe(R, this.options.chosenClass, !1), x.clone = R), o.cloneId = ct(function() {
|
|
2638
|
+
te("clone", o), !x.eventCanceled && (o.options.removeCloneOnHide || V.insertBefore(R, m), o._hideClone(), ee({
|
|
2639
|
+
sortable: o,
|
|
2640
|
+
name: "clone"
|
|
2641
|
+
}));
|
|
2642
|
+
}), !n && oe(m, a.dragClass, !0), n ? (pt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (B(document, "mouseup", o._onDrop), B(document, "touchend", o._onDrop), B(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, m)), P(document, "drop", o), T(m, "transform", "translateZ(0)")), Ae = !0, o._dragStartId = ct(o._dragStarted.bind(o, n, t)), P(document, "selectstart", o), Ge = !0, Ye && T(document.body, "user-select", "none");
|
|
2643
|
+
},
|
|
2644
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2645
|
+
_onDragOver: function(t) {
|
|
2646
|
+
var n = this.el, o = t.target, i, a, l, r = this.options, s = r.group, u = x.active, f = it === s, c = r.sort, v = X || u, $, w = this, M = !1;
|
|
2647
|
+
if (Vt) return;
|
|
2648
|
+
function E(He, Nn) {
|
|
2649
|
+
te(He, w, ge({
|
|
2650
|
+
evt: t,
|
|
2651
|
+
isOwner: f,
|
|
2652
|
+
axis: $ ? "vertical" : "horizontal",
|
|
2653
|
+
revert: l,
|
|
2654
|
+
dragRect: i,
|
|
2655
|
+
targetRect: a,
|
|
2656
|
+
canSort: c,
|
|
2657
|
+
fromSortable: v,
|
|
2658
|
+
target: o,
|
|
2659
|
+
completed: b,
|
|
2660
|
+
onMove: function(Kt, Fn) {
|
|
2661
|
+
return rt(V, n, m, i, Kt, W(Kt), t, Fn);
|
|
2662
|
+
},
|
|
2663
|
+
changed: C
|
|
2664
|
+
}, Nn));
|
|
2665
|
+
}
|
|
2666
|
+
function D() {
|
|
2667
|
+
E("dragOverAnimationCapture"), w.captureAnimationState(), w !== v && v.captureAnimationState();
|
|
2668
|
+
}
|
|
2669
|
+
function b(He) {
|
|
2670
|
+
return E("dragOverCompleted", {
|
|
2671
|
+
insertion: He
|
|
2672
|
+
}), He && (f ? u._hideClone() : u._showClone(w), w !== v && (oe(m, X ? X.options.ghostClass : u.options.ghostClass, !1), oe(m, r.ghostClass, !0)), X !== w && w !== x.active ? X = w : w === x.active && X && (X = null), v === w && (w._ignoreWhileAnimating = o), w.animateAll(function() {
|
|
2673
|
+
E("dragOverAnimationComplete"), w._ignoreWhileAnimating = null;
|
|
2674
|
+
}), w !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === m && !m.animated || o === n && !o.animated) && (Pe = null), !r.dragoverBubble && !t.rootEl && o !== document && (m.parentNode[ae]._isOutsideThisEl(t.target), !He && Oe(t)), !r.dragoverBubble && t.stopPropagation && t.stopPropagation(), M = !0;
|
|
2675
|
+
}
|
|
2676
|
+
function C() {
|
|
2677
|
+
ie = re(m), Ee = re(m, r.draggable), ee({
|
|
2678
|
+
sortable: w,
|
|
2679
|
+
name: "change",
|
|
2680
|
+
toEl: n,
|
|
2681
|
+
newIndex: ie,
|
|
2682
|
+
newDraggableIndex: Ee,
|
|
2683
|
+
originalEvent: t
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o = fe(o, r.draggable, n, !0), E("dragOver"), x.eventCanceled) return M;
|
|
2687
|
+
if (m.contains(t.target) || o.animated && o.animatingX && o.animatingY || w._ignoreWhileAnimating === o)
|
|
2688
|
+
return b(!1);
|
|
2689
|
+
if (pt = !1, u && !r.disabled && (f ? c || (l = z !== V) : X === this || (this.lastPutMode = it.checkPull(this, u, m, t)) && s.checkPut(this, u, m, t))) {
|
|
2690
|
+
if ($ = this._getDirection(t, o) === "vertical", i = W(m), E("dragOverValid"), x.eventCanceled) return M;
|
|
2691
|
+
if (l)
|
|
2692
|
+
return z = V, D(), this._hideClone(), E("revert"), x.eventCanceled || (Me ? V.insertBefore(m, Me) : V.appendChild(m)), b(!0);
|
|
2693
|
+
var g = Yt(n, r.draggable);
|
|
2694
|
+
if (!g || P2(t, $, this) && !g.animated) {
|
|
2695
|
+
if (g === m)
|
|
2696
|
+
return b(!1);
|
|
2697
|
+
if (g && n === t.target && (o = g), o && (a = W(o)), rt(V, n, m, i, o, a, t, !!o) !== !1)
|
|
2698
|
+
return D(), n.appendChild(m), z = n, C(), b(!0);
|
|
2699
|
+
} else if (g && I2(t, $, this)) {
|
|
2700
|
+
var S = ze(n, 0, r, !0);
|
|
2701
|
+
if (S === m)
|
|
2702
|
+
return b(!1);
|
|
2703
|
+
if (o = S, a = W(o), rt(V, n, m, i, o, a, t, !1) !== !1)
|
|
2704
|
+
return D(), n.insertBefore(m, S), z = n, C(), b(!0);
|
|
2705
|
+
} else if (o.parentNode === n) {
|
|
2706
|
+
a = W(o);
|
|
2707
|
+
var y = 0, F, J = m.parentNode !== n, U = !L2(m.animated && m.toRect || i, o.animated && o.toRect || a, $), ce = $ ? "top" : "left", ne = rn(o, "top", "top") || rn(m, "top", "top"), me = ne ? ne.scrollTop : void 0;
|
|
2708
|
+
Pe !== o && (F = a[ce], Qe = !1, at = !U && r.invertSwap || J), y = A2(t, o, a, $, U ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, at, Pe === o);
|
|
2709
|
+
var ue;
|
|
2710
|
+
if (y !== 0) {
|
|
2711
|
+
var ve = re(m);
|
|
2712
|
+
do
|
|
2713
|
+
ve -= y, ue = z.children[ve];
|
|
2714
|
+
while (ue && (T(ue, "display") === "none" || ue === L));
|
|
2715
|
+
}
|
|
2716
|
+
if (y === 0 || ue === o)
|
|
2717
|
+
return b(!1);
|
|
2718
|
+
Pe = o, Ke = y;
|
|
2719
|
+
var Re = o.nextElementSibling, $e = !1;
|
|
2720
|
+
$e = y === 1;
|
|
2721
|
+
var ot = rt(V, n, m, i, o, a, t, $e);
|
|
2722
|
+
if (ot !== !1)
|
|
2723
|
+
return (ot === 1 || ot === -1) && ($e = ot === 1), Vt = !0, setTimeout(B2, 30), D(), $e && !Re ? n.appendChild(m) : o.parentNode.insertBefore(m, $e ? Re : o), ne && Tn(ne, 0, me - ne.scrollTop), z = m.parentNode, F !== void 0 && !at && (dt = Math.abs(F - W(o)[ce])), C(), b(!0);
|
|
2724
|
+
}
|
|
2725
|
+
if (n.contains(m))
|
|
2726
|
+
return b(!1);
|
|
2727
|
+
}
|
|
2728
|
+
return !1;
|
|
2729
|
+
},
|
|
2730
|
+
_ignoreWhileAnimating: null,
|
|
2731
|
+
_offMoveEvents: function() {
|
|
2732
|
+
B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Oe), B(document, "mousemove", Oe), B(document, "touchmove", Oe);
|
|
2733
|
+
},
|
|
2734
|
+
_offUpEvents: function() {
|
|
2735
|
+
var t = this.el.ownerDocument;
|
|
2736
|
+
B(t, "mouseup", this._onDrop), B(t, "touchend", this._onDrop), B(t, "pointerup", this._onDrop), B(t, "touchcancel", this._onDrop), B(document, "selectstart", this);
|
|
2737
|
+
},
|
|
2738
|
+
_onDrop: function(t) {
|
|
2739
|
+
var n = this.el, o = this.options;
|
|
2740
|
+
if (ie = re(m), Ee = re(m, o.draggable), te("drop", this, {
|
|
2741
|
+
evt: t
|
|
2742
|
+
}), z = m && m.parentNode, ie = re(m), Ee = re(m, o.draggable), x.eventCanceled) {
|
|
2743
|
+
this._nulling();
|
|
2744
|
+
return;
|
|
2745
|
+
}
|
|
2746
|
+
Ae = !1, at = !1, Qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), jt(this.cloneId), jt(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ye && T(document.body, "user-select", ""), T(m, "transform", ""), t && (Ge && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), L && L.parentNode && L.parentNode.removeChild(L), (V === z || X && X.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), m && (this.nativeDraggable && B(m, "dragend", this), _t(m), m.style["will-change"] = "", Ge && !Ae && oe(m, X ? X.options.ghostClass : this.options.ghostClass, !1), oe(m, this.options.chosenClass, !1), ee({
|
|
2747
|
+
sortable: this,
|
|
2748
|
+
name: "unchoose",
|
|
2749
|
+
toEl: z,
|
|
2750
|
+
newIndex: null,
|
|
2751
|
+
newDraggableIndex: null,
|
|
2752
|
+
originalEvent: t
|
|
2753
|
+
}), V !== z ? (ie >= 0 && (ee({
|
|
2754
|
+
rootEl: z,
|
|
2755
|
+
name: "add",
|
|
2756
|
+
toEl: z,
|
|
2757
|
+
fromEl: V,
|
|
2758
|
+
originalEvent: t
|
|
2759
|
+
}), ee({
|
|
2760
|
+
sortable: this,
|
|
2761
|
+
name: "remove",
|
|
2762
|
+
toEl: z,
|
|
2763
|
+
originalEvent: t
|
|
2764
|
+
}), ee({
|
|
2765
|
+
rootEl: z,
|
|
2766
|
+
name: "sort",
|
|
2767
|
+
toEl: z,
|
|
2768
|
+
fromEl: V,
|
|
2769
|
+
originalEvent: t
|
|
2770
|
+
}), ee({
|
|
2771
|
+
sortable: this,
|
|
2772
|
+
name: "sort",
|
|
2773
|
+
toEl: z,
|
|
2774
|
+
originalEvent: t
|
|
2775
|
+
})), X && X.save()) : ie !== Fe && ie >= 0 && (ee({
|
|
2776
|
+
sortable: this,
|
|
2777
|
+
name: "update",
|
|
2778
|
+
toEl: z,
|
|
2779
|
+
originalEvent: t
|
|
2780
|
+
}), ee({
|
|
2781
|
+
sortable: this,
|
|
2782
|
+
name: "sort",
|
|
2783
|
+
toEl: z,
|
|
2784
|
+
originalEvent: t
|
|
2785
|
+
})), x.active && ((ie == null || ie === -1) && (ie = Fe, Ee = Xe), ee({
|
|
2786
|
+
sortable: this,
|
|
2787
|
+
name: "end",
|
|
2788
|
+
toEl: z,
|
|
2789
|
+
originalEvent: t
|
|
2790
|
+
}), this.save()))), this._nulling();
|
|
2791
|
+
},
|
|
2792
|
+
_nulling: function() {
|
|
2793
|
+
te("nulling", this), V = m = z = L = Me = R = ut = Te = Le = de = Ge = ie = Ee = Fe = Xe = Pe = Ke = X = it = x.dragged = x.ghost = x.clone = x.active = null, mt.forEach(function(t) {
|
|
2794
|
+
t.checked = !0;
|
|
2795
|
+
}), mt.length = Lt = Ot = 0;
|
|
2796
|
+
},
|
|
2797
|
+
handleEvent: function(t) {
|
|
2798
|
+
switch (t.type) {
|
|
2799
|
+
case "drop":
|
|
2800
|
+
case "dragend":
|
|
2801
|
+
this._onDrop(t);
|
|
2802
|
+
break;
|
|
2803
|
+
case "dragenter":
|
|
2804
|
+
case "dragover":
|
|
2805
|
+
m && (this._onDragOver(t), _2(t));
|
|
2806
|
+
break;
|
|
2807
|
+
case "selectstart":
|
|
2808
|
+
t.preventDefault();
|
|
2809
|
+
break;
|
|
2810
|
+
}
|
|
2811
|
+
},
|
|
2812
|
+
/**
|
|
2813
|
+
* Serializes the item into an array of string.
|
|
2814
|
+
* @returns {String[]}
|
|
2815
|
+
*/
|
|
2816
|
+
toArray: function() {
|
|
2817
|
+
for (var t = [], n, o = this.el.children, i = 0, a = o.length, l = this.options; i < a; i++)
|
|
2818
|
+
n = o[i], fe(n, l.draggable, this.el, !1) && t.push(n.getAttribute(l.dataIdAttr) || F2(n));
|
|
2819
|
+
return t;
|
|
2820
|
+
},
|
|
2821
|
+
/**
|
|
2822
|
+
* Sorts the elements according to the array.
|
|
2823
|
+
* @param {String[]} order order of the items
|
|
2824
|
+
*/
|
|
2825
|
+
sort: function(t, n) {
|
|
2826
|
+
var o = {}, i = this.el;
|
|
2827
|
+
this.toArray().forEach(function(a, l) {
|
|
2828
|
+
var r = i.children[l];
|
|
2829
|
+
fe(r, this.options.draggable, i, !1) && (o[a] = r);
|
|
2830
|
+
}, this), n && this.captureAnimationState(), t.forEach(function(a) {
|
|
2831
|
+
o[a] && (i.removeChild(o[a]), i.appendChild(o[a]));
|
|
2832
|
+
}), n && this.animateAll();
|
|
2833
|
+
},
|
|
2834
|
+
/**
|
|
2835
|
+
* Save the current sorting
|
|
2836
|
+
*/
|
|
2837
|
+
save: function() {
|
|
2838
|
+
var t = this.options.store;
|
|
2839
|
+
t && t.set && t.set(this);
|
|
2840
|
+
},
|
|
2841
|
+
/**
|
|
2842
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
2843
|
+
* @param {HTMLElement} el
|
|
2844
|
+
* @param {String} [selector] default: `options.draggable`
|
|
2845
|
+
* @returns {HTMLElement|null}
|
|
2846
|
+
*/
|
|
2847
|
+
closest: function(t, n) {
|
|
2848
|
+
return fe(t, n || this.options.draggable, this.el, !1);
|
|
2849
|
+
},
|
|
2850
|
+
/**
|
|
2851
|
+
* Set/get option
|
|
2852
|
+
* @param {string} name
|
|
2853
|
+
* @param {*} [value]
|
|
2854
|
+
* @returns {*}
|
|
2855
|
+
*/
|
|
2856
|
+
option: function(t, n) {
|
|
2857
|
+
var o = this.options;
|
|
2858
|
+
if (n === void 0)
|
|
2859
|
+
return o[t];
|
|
2860
|
+
var i = nt.modifyOption(this, t, n);
|
|
2861
|
+
typeof i < "u" ? o[t] = i : o[t] = n, t === "group" && Mn(o);
|
|
2862
|
+
},
|
|
2863
|
+
/**
|
|
2864
|
+
* Destroy
|
|
2865
|
+
*/
|
|
2866
|
+
destroy: function() {
|
|
2867
|
+
te("destroy", this);
|
|
2868
|
+
var t = this.el;
|
|
2869
|
+
t[ae] = null, B(t, "mousedown", this._onTapStart), B(t, "touchstart", this._onTapStart), B(t, "pointerdown", this._onTapStart), this.nativeDraggable && (B(t, "dragover", this), B(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
2870
|
+
n.removeAttribute("draggable");
|
|
2871
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), gt.splice(gt.indexOf(this.el), 1), this.el = t = null;
|
|
2872
|
+
},
|
|
2873
|
+
_hideClone: function() {
|
|
2874
|
+
if (!Te) {
|
|
2875
|
+
if (te("hideClone", this), x.eventCanceled) return;
|
|
2876
|
+
T(R, "display", "none"), this.options.removeCloneOnHide && R.parentNode && R.parentNode.removeChild(R), Te = !0;
|
|
2877
|
+
}
|
|
2878
|
+
},
|
|
2879
|
+
_showClone: function(t) {
|
|
2880
|
+
if (t.lastPutMode !== "clone") {
|
|
2881
|
+
this._hideClone();
|
|
2882
|
+
return;
|
|
2883
|
+
}
|
|
2884
|
+
if (Te) {
|
|
2885
|
+
if (te("showClone", this), x.eventCanceled) return;
|
|
2886
|
+
m.parentNode == V && !this.options.group.revertClone ? V.insertBefore(R, m) : Me ? V.insertBefore(R, Me) : V.appendChild(R), this.options.group.revertClone && this.animate(m, R), T(R, "display", ""), Te = !1;
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
};
|
|
2890
|
+
function _2(e) {
|
|
2891
|
+
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2892
|
+
}
|
|
2893
|
+
function rt(e, t, n, o, i, a, l, r) {
|
|
2894
|
+
var s, u = e[ae], f = u.options.onMove, c;
|
|
2895
|
+
return window.CustomEvent && !ke && !tt ? s = new CustomEvent("move", {
|
|
2896
|
+
bubbles: !0,
|
|
2897
|
+
cancelable: !0
|
|
2898
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = n, s.draggedRect = o, s.related = i || t, s.relatedRect = a || W(t), s.willInsertAfter = r, s.originalEvent = l, e.dispatchEvent(s), f && (c = f.call(u, s, l)), c;
|
|
2899
|
+
}
|
|
2900
|
+
function _t(e) {
|
|
2901
|
+
e.draggable = !1;
|
|
2902
|
+
}
|
|
2903
|
+
function B2() {
|
|
2904
|
+
Vt = !1;
|
|
2905
|
+
}
|
|
2906
|
+
function I2(e, t, n) {
|
|
2907
|
+
var o = W(ze(n.el, 0, n.options, !0)), i = 10;
|
|
2908
|
+
return t ? e.clientX < o.left - i || e.clientY < o.top && e.clientX < o.right : e.clientY < o.top - i || e.clientY < o.bottom && e.clientX < o.left;
|
|
2909
|
+
}
|
|
2910
|
+
function P2(e, t, n) {
|
|
2911
|
+
var o = W(Yt(n.el, n.options.draggable)), i = 10;
|
|
2912
|
+
return t ? e.clientX > o.right + i || e.clientX <= o.right && e.clientY > o.bottom && e.clientX >= o.left : e.clientX > o.right && e.clientY > o.top || e.clientX <= o.right && e.clientY > o.bottom + i;
|
|
2913
|
+
}
|
|
2914
|
+
function A2(e, t, n, o, i, a, l, r) {
|
|
2915
|
+
var s = o ? e.clientY : e.clientX, u = o ? n.height : n.width, f = o ? n.top : n.left, c = o ? n.bottom : n.right, v = !1;
|
|
2916
|
+
if (!l) {
|
|
2917
|
+
if (r && dt < u * i) {
|
|
2918
|
+
if (!Qe && (Ke === 1 ? s > f + u * a / 2 : s < c - u * a / 2) && (Qe = !0), Qe)
|
|
2919
|
+
v = !0;
|
|
2920
|
+
else if (Ke === 1 ? s < f + dt : s > c - dt)
|
|
2921
|
+
return -Ke;
|
|
2922
|
+
} else if (s > f + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
|
|
2923
|
+
return N2(t);
|
|
2924
|
+
}
|
|
2925
|
+
return v = v || l, v && (s < f + u * a / 2 || s > c - u * a / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
2926
|
+
}
|
|
2927
|
+
function N2(e) {
|
|
2928
|
+
return re(m) < re(e) ? 1 : -1;
|
|
2929
|
+
}
|
|
2930
|
+
function F2(e) {
|
|
2931
|
+
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
2932
|
+
o += t.charCodeAt(n);
|
|
2933
|
+
return o.toString(36);
|
|
2934
|
+
}
|
|
2935
|
+
function V2(e) {
|
|
2936
|
+
mt.length = 0;
|
|
2937
|
+
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
2938
|
+
var o = t[n];
|
|
2939
|
+
o.checked && mt.push(o);
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
function ct(e) {
|
|
2943
|
+
return setTimeout(e, 0);
|
|
2944
|
+
}
|
|
2945
|
+
function jt(e) {
|
|
2946
|
+
return clearTimeout(e);
|
|
2947
|
+
}
|
|
2948
|
+
kt && P(document, "touchmove", function(e) {
|
|
2949
|
+
(x.active || Ae) && e.cancelable && e.preventDefault();
|
|
2950
|
+
});
|
|
2951
|
+
x.utils = {
|
|
2952
|
+
on: P,
|
|
2953
|
+
off: B,
|
|
2954
|
+
css: T,
|
|
2955
|
+
find: En,
|
|
2956
|
+
is: function(t, n) {
|
|
2957
|
+
return !!fe(t, n, t, !1);
|
|
2958
|
+
},
|
|
2959
|
+
extend: w2,
|
|
2960
|
+
throttle: Dn,
|
|
2961
|
+
closest: fe,
|
|
2962
|
+
toggleClass: oe,
|
|
2963
|
+
clone: xn,
|
|
2964
|
+
index: re,
|
|
2965
|
+
nextTick: ct,
|
|
2966
|
+
cancelNextTick: jt,
|
|
2967
|
+
detectDirection: On,
|
|
2968
|
+
getChild: ze
|
|
2969
|
+
};
|
|
2970
|
+
x.get = function(e) {
|
|
2971
|
+
return e[ae];
|
|
2972
|
+
};
|
|
2973
|
+
x.mount = function() {
|
|
2974
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
2975
|
+
t[n] = arguments[n];
|
|
2976
|
+
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
2977
|
+
if (!o.prototype || !o.prototype.constructor)
|
|
2978
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
2979
|
+
o.utils && (x.utils = ge(ge({}, x.utils), o.utils)), nt.mount(o);
|
|
2980
|
+
});
|
|
2981
|
+
};
|
|
2982
|
+
x.create = function(e, t) {
|
|
2983
|
+
return new x(e, t);
|
|
2984
|
+
};
|
|
2985
|
+
x.version = v2;
|
|
2986
|
+
var Z = [], qe, zt, Rt = !1, Bt, It, vt, We;
|
|
2987
|
+
function j2() {
|
|
2988
|
+
function e() {
|
|
2989
|
+
this.defaults = {
|
|
2990
|
+
scroll: !0,
|
|
2991
|
+
forceAutoScrollFallback: !1,
|
|
2992
|
+
scrollSensitivity: 30,
|
|
2993
|
+
scrollSpeed: 10,
|
|
2994
|
+
bubbleScroll: !0
|
|
2995
|
+
};
|
|
2996
|
+
for (var t in this)
|
|
2997
|
+
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
2998
|
+
}
|
|
2999
|
+
return e.prototype = {
|
|
3000
|
+
dragStarted: function(n) {
|
|
3001
|
+
var o = n.originalEvent;
|
|
3002
|
+
this.sortable.nativeDraggable ? P(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? P(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? P(document, "touchmove", this._handleFallbackAutoScroll) : P(document, "mousemove", this._handleFallbackAutoScroll);
|
|
3003
|
+
},
|
|
3004
|
+
dragOverCompleted: function(n) {
|
|
3005
|
+
var o = n.originalEvent;
|
|
3006
|
+
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
3007
|
+
},
|
|
3008
|
+
drop: function() {
|
|
3009
|
+
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), fn(), ft(), S2();
|
|
3010
|
+
},
|
|
3011
|
+
nulling: function() {
|
|
3012
|
+
vt = zt = qe = Rt = We = Bt = It = null, Z.length = 0;
|
|
3013
|
+
},
|
|
3014
|
+
_handleFallbackAutoScroll: function(n) {
|
|
3015
|
+
this._handleAutoScroll(n, !0);
|
|
3016
|
+
},
|
|
3017
|
+
_handleAutoScroll: function(n, o) {
|
|
3018
|
+
var i = this, a = (n.touches ? n.touches[0] : n).clientX, l = (n.touches ? n.touches[0] : n).clientY, r = document.elementFromPoint(a, l);
|
|
3019
|
+
if (vt = n, o || this.options.forceAutoScrollFallback || tt || ke || Ye) {
|
|
3020
|
+
Pt(n, this.options, r, o);
|
|
3021
|
+
var s = xe(r, !0);
|
|
3022
|
+
Rt && (!We || a !== Bt || l !== It) && (We && fn(), We = setInterval(function() {
|
|
3023
|
+
var u = xe(document.elementFromPoint(a, l), !0);
|
|
3024
|
+
u !== s && (s = u, ft()), Pt(n, i.options, u, o);
|
|
3025
|
+
}, 10), Bt = a, It = l);
|
|
3026
|
+
} else {
|
|
3027
|
+
if (!this.options.bubbleScroll || xe(r, !0) === pe()) {
|
|
3028
|
+
ft();
|
|
3029
|
+
return;
|
|
3030
|
+
}
|
|
3031
|
+
Pt(n, this.options, xe(r, !1), !1);
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
}, we(e, {
|
|
3035
|
+
pluginName: "scroll",
|
|
3036
|
+
initializeByDefault: !0
|
|
3037
|
+
});
|
|
3038
|
+
}
|
|
3039
|
+
function ft() {
|
|
3040
|
+
Z.forEach(function(e) {
|
|
3041
|
+
clearInterval(e.pid);
|
|
3042
|
+
}), Z = [];
|
|
3043
|
+
}
|
|
3044
|
+
function fn() {
|
|
3045
|
+
clearInterval(We);
|
|
3046
|
+
}
|
|
3047
|
+
var Pt = Dn(function(e, t, n, o) {
|
|
3048
|
+
if (t.scroll) {
|
|
3049
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, r = t.scrollSpeed, s = pe(), u = !1, f;
|
|
3050
|
+
zt !== n && (zt = n, ft(), qe = t.scroll, f = t.scrollFn, qe === !0 && (qe = xe(n, !0)));
|
|
3051
|
+
var c = 0, v = qe;
|
|
3052
|
+
do {
|
|
3053
|
+
var $ = v, w = W($), M = w.top, E = w.bottom, D = w.left, b = w.right, C = w.width, g = w.height, S = void 0, y = void 0, F = $.scrollWidth, J = $.scrollHeight, U = T($), ce = $.scrollLeft, ne = $.scrollTop;
|
|
3054
|
+
$ === s ? (S = C < F && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), y = g < J && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (S = C < F && (U.overflowX === "auto" || U.overflowX === "scroll"), y = g < J && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
3055
|
+
var me = S && (Math.abs(b - i) <= l && ce + C < F) - (Math.abs(D - i) <= l && !!ce), ue = y && (Math.abs(E - a) <= l && ne + g < J) - (Math.abs(M - a) <= l && !!ne);
|
|
3056
|
+
if (!Z[c])
|
|
3057
|
+
for (var ve = 0; ve <= c; ve++)
|
|
3058
|
+
Z[ve] || (Z[ve] = {});
|
|
3059
|
+
(Z[c].vx != me || Z[c].vy != ue || Z[c].el !== $) && (Z[c].el = $, Z[c].vx = me, Z[c].vy = ue, clearInterval(Z[c].pid), (me != 0 || ue != 0) && (u = !0, Z[c].pid = setInterval(function() {
|
|
3060
|
+
o && this.layer === 0 && x.active._onTouchMove(vt);
|
|
3061
|
+
var Re = Z[this.layer].vy ? Z[this.layer].vy * r : 0, $e = Z[this.layer].vx ? Z[this.layer].vx * r : 0;
|
|
3062
|
+
typeof f == "function" && f.call(x.dragged.parentNode[ae], $e, Re, e, vt, Z[this.layer].el) !== "continue" || Tn(Z[this.layer].el, $e, Re);
|
|
3063
|
+
}.bind({
|
|
3064
|
+
layer: c
|
|
3065
|
+
}), 24))), c++;
|
|
3066
|
+
} while (t.bubbleScroll && v !== s && (v = xe(v, !1)));
|
|
3067
|
+
Rt = u;
|
|
3068
|
+
}
|
|
3069
|
+
}, 30), In = function(t) {
|
|
3070
|
+
var n = t.originalEvent, o = t.putSortable, i = t.dragEl, a = t.activeSortable, l = t.dispatchSortableEvent, r = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
3071
|
+
if (n) {
|
|
3072
|
+
var u = o || a;
|
|
3073
|
+
r();
|
|
3074
|
+
var f = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(f.clientX, f.clientY);
|
|
3075
|
+
s(), u && !u.el.contains(c) && (l("spill"), this.onSpill({
|
|
3076
|
+
dragEl: i,
|
|
3077
|
+
putSortable: o
|
|
3078
|
+
}));
|
|
3079
|
+
}
|
|
3080
|
+
};
|
|
3081
|
+
function Ut() {
|
|
3082
|
+
}
|
|
3083
|
+
Ut.prototype = {
|
|
3084
|
+
startIndex: null,
|
|
3085
|
+
dragStart: function(t) {
|
|
3086
|
+
var n = t.oldDraggableIndex;
|
|
3087
|
+
this.startIndex = n;
|
|
3088
|
+
},
|
|
3089
|
+
onSpill: function(t) {
|
|
3090
|
+
var n = t.dragEl, o = t.putSortable;
|
|
3091
|
+
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
3092
|
+
var i = ze(this.sortable.el, this.startIndex, this.options);
|
|
3093
|
+
i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
3094
|
+
},
|
|
3095
|
+
drop: In
|
|
3096
|
+
};
|
|
3097
|
+
we(Ut, {
|
|
3098
|
+
pluginName: "revertOnSpill"
|
|
3099
|
+
});
|
|
3100
|
+
function Xt() {
|
|
3101
|
+
}
|
|
3102
|
+
Xt.prototype = {
|
|
3103
|
+
onSpill: function(t) {
|
|
3104
|
+
var n = t.dragEl, o = t.putSortable, i = o || this.sortable;
|
|
3105
|
+
i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
|
|
3106
|
+
},
|
|
3107
|
+
drop: In
|
|
3108
|
+
};
|
|
3109
|
+
we(Xt, {
|
|
3110
|
+
pluginName: "removeOnSpill"
|
|
3111
|
+
});
|
|
3112
|
+
x.mount(new j2());
|
|
3113
|
+
x.mount(Xt, Ut);
|
|
3114
|
+
function z2() {
|
|
3115
|
+
return typeof window < "u" ? window.console : global.console;
|
|
3116
|
+
}
|
|
3117
|
+
const R2 = z2();
|
|
3118
|
+
function H2(e) {
|
|
3119
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
3120
|
+
return function(o) {
|
|
3121
|
+
return t[o] || (t[o] = e(o));
|
|
3122
|
+
};
|
|
3123
|
+
}
|
|
3124
|
+
const Z2 = /-(\w)/g, hn = H2((e) => e.replace(Z2, (t, n) => n ? n.toUpperCase() : ""));
|
|
3125
|
+
function At(e) {
|
|
3126
|
+
e.parentElement !== null && e.parentElement.removeChild(e);
|
|
3127
|
+
}
|
|
3128
|
+
function pn(e, t, n) {
|
|
3129
|
+
const o = n === 0 ? e.children[0] : e.children[n - 1].nextSibling;
|
|
3130
|
+
e.insertBefore(t, o);
|
|
3131
|
+
}
|
|
3132
|
+
function G2(e, t) {
|
|
3133
|
+
return Object.values(e).indexOf(t);
|
|
3134
|
+
}
|
|
3135
|
+
function q2(e, t, n, o) {
|
|
3136
|
+
if (!e)
|
|
3137
|
+
return [];
|
|
3138
|
+
const i = Object.values(e), a = t.length - o;
|
|
3139
|
+
return [...t].map((r, s) => s >= a ? i.length : i.indexOf(r));
|
|
3140
|
+
}
|
|
3141
|
+
function Pn(e, t) {
|
|
3142
|
+
this.$nextTick(() => this.$emit(e.toLowerCase(), t));
|
|
3143
|
+
}
|
|
3144
|
+
function W2(e) {
|
|
3145
|
+
return (t) => {
|
|
3146
|
+
this.realList !== null && this["onDrag" + e](t), Pn.call(this, e, t);
|
|
3147
|
+
};
|
|
3148
|
+
}
|
|
3149
|
+
function Y2(e) {
|
|
3150
|
+
return ["transition-group", "TransitionGroup"].includes(e);
|
|
3151
|
+
}
|
|
3152
|
+
function U2(e) {
|
|
3153
|
+
if (!e || e.length !== 1)
|
|
3154
|
+
return !1;
|
|
3155
|
+
const [{ type: t }] = e;
|
|
3156
|
+
return t ? Y2(t.name) : !1;
|
|
3157
|
+
}
|
|
3158
|
+
function X2(e, t) {
|
|
3159
|
+
return t ? { ...t.props, ...t.attrs } : e;
|
|
3160
|
+
}
|
|
3161
|
+
const Ht = ["Start", "Add", "Remove", "Update", "End"], Zt = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], K2 = ["Move", ...Ht, ...Zt].map((e) => "on" + e);
|
|
3162
|
+
let Nt = null;
|
|
3163
|
+
const Q2 = {
|
|
3164
|
+
options: Object,
|
|
3165
|
+
list: {
|
|
3166
|
+
type: Array,
|
|
3167
|
+
required: !1,
|
|
3168
|
+
default: null
|
|
3169
|
+
},
|
|
3170
|
+
noTransitionOnDrag: {
|
|
3171
|
+
type: Boolean,
|
|
3172
|
+
default: !1
|
|
3173
|
+
},
|
|
3174
|
+
clone: {
|
|
3175
|
+
type: Function,
|
|
3176
|
+
default: (e) => e
|
|
3177
|
+
},
|
|
3178
|
+
tag: {
|
|
3179
|
+
type: String,
|
|
3180
|
+
default: "div"
|
|
3181
|
+
},
|
|
3182
|
+
move: {
|
|
3183
|
+
type: Function,
|
|
3184
|
+
default: null
|
|
3185
|
+
},
|
|
3186
|
+
componentData: {
|
|
3187
|
+
type: Object,
|
|
3188
|
+
required: !1,
|
|
3189
|
+
default: null
|
|
3190
|
+
},
|
|
3191
|
+
component: {
|
|
3192
|
+
type: String,
|
|
3193
|
+
default: null
|
|
3194
|
+
},
|
|
3195
|
+
modelValue: {
|
|
3196
|
+
type: Array,
|
|
3197
|
+
required: !1,
|
|
3198
|
+
default: null
|
|
3199
|
+
}
|
|
3200
|
+
}, J2 = A({
|
|
3201
|
+
name: "VueDraggableNext",
|
|
3202
|
+
inheritAttrs: !1,
|
|
3203
|
+
emits: [
|
|
3204
|
+
"update:modelValue",
|
|
3205
|
+
"move",
|
|
3206
|
+
"change",
|
|
3207
|
+
...Ht.map((e) => e.toLowerCase()),
|
|
3208
|
+
...Zt.map((e) => e.toLowerCase())
|
|
3209
|
+
],
|
|
3210
|
+
props: Q2,
|
|
3211
|
+
data() {
|
|
3212
|
+
return {
|
|
3213
|
+
transitionMode: !1,
|
|
3214
|
+
noneFunctionalComponentMode: !1,
|
|
3215
|
+
headerOffset: 0,
|
|
3216
|
+
footerOffset: 0,
|
|
3217
|
+
_sortable: {},
|
|
3218
|
+
visibleIndexes: [],
|
|
3219
|
+
context: {}
|
|
3220
|
+
};
|
|
3221
|
+
},
|
|
3222
|
+
render() {
|
|
3223
|
+
const e = this.$slots.default ? this.$slots.default() : null, t = X2(this.$attrs, this.componentData);
|
|
3224
|
+
return e ? (this.transitionMode = U2(e), Qt(this.getTag(), t, e)) : Qt(this.getTag(), t, []);
|
|
3225
|
+
},
|
|
3226
|
+
created() {
|
|
3227
|
+
this.list !== null && this.modelValue !== null && R2.error("list props are mutually exclusive! Please set one.");
|
|
3228
|
+
},
|
|
3229
|
+
mounted() {
|
|
3230
|
+
const e = {};
|
|
3231
|
+
Ht.forEach((i) => {
|
|
3232
|
+
e["on" + i] = W2.call(this, i);
|
|
3233
|
+
}), Zt.forEach((i) => {
|
|
3234
|
+
e["on" + i] = Pn.bind(this, i);
|
|
3235
|
+
});
|
|
3236
|
+
const t = Object.keys(this.$attrs).reduce((i, a) => (i[hn(a)] = this.$attrs[a], i), {}), n = Object.assign({}, t, e, {
|
|
3237
|
+
onMove: (i, a) => this.onDragMove(i, a)
|
|
3238
|
+
});
|
|
3239
|
+
!("draggable" in n) && (n.draggable = ">*");
|
|
3240
|
+
const o = this.$el.nodeType === 1 ? this.$el : this.$el.parentElement;
|
|
3241
|
+
this._sortable = new x(o, n), o.__draggable_component__ = this, this.computeIndexes();
|
|
3242
|
+
},
|
|
3243
|
+
beforeUnmount() {
|
|
3244
|
+
try {
|
|
3245
|
+
this._sortable !== void 0 && this._sortable.destroy();
|
|
3246
|
+
} catch {
|
|
3247
|
+
}
|
|
3248
|
+
},
|
|
3249
|
+
computed: {
|
|
3250
|
+
realList() {
|
|
3251
|
+
return this.list ? this.list : this.modelValue;
|
|
3252
|
+
}
|
|
3253
|
+
},
|
|
3254
|
+
watch: {
|
|
3255
|
+
$attrs: {
|
|
3256
|
+
handler(e) {
|
|
3257
|
+
this.updateOptions(e);
|
|
3258
|
+
},
|
|
3259
|
+
deep: !0
|
|
3260
|
+
},
|
|
3261
|
+
realList() {
|
|
3262
|
+
this.computeIndexes();
|
|
3263
|
+
}
|
|
3264
|
+
},
|
|
3265
|
+
methods: {
|
|
3266
|
+
getTag() {
|
|
3267
|
+
return this.component ? bn(this.component) : this.tag;
|
|
3268
|
+
},
|
|
3269
|
+
updateOptions(e) {
|
|
3270
|
+
for (var t in e) {
|
|
3271
|
+
const n = hn(t);
|
|
3272
|
+
K2.indexOf(n) === -1 && this._sortable.option(n, e[t]);
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
getChildrenNodes() {
|
|
3276
|
+
return this.$el.children;
|
|
3277
|
+
},
|
|
3278
|
+
computeIndexes() {
|
|
3279
|
+
this.$nextTick(() => {
|
|
3280
|
+
this.visibleIndexes = q2(this.getChildrenNodes(), this.$el.children, this.transitionMode, this.footerOffset);
|
|
3281
|
+
});
|
|
3282
|
+
},
|
|
3283
|
+
getUnderlyingVm(e) {
|
|
3284
|
+
const t = G2(this.getChildrenNodes() || [], e);
|
|
3285
|
+
if (t === -1)
|
|
3286
|
+
return null;
|
|
3287
|
+
const n = this.realList[t];
|
|
3288
|
+
return { index: t, element: n };
|
|
3289
|
+
},
|
|
3290
|
+
emitChanges(e) {
|
|
3291
|
+
this.$nextTick(() => {
|
|
3292
|
+
this.$emit("change", e);
|
|
3293
|
+
});
|
|
3294
|
+
},
|
|
3295
|
+
alterList(e) {
|
|
3296
|
+
if (this.list) {
|
|
3297
|
+
e(this.list);
|
|
3298
|
+
return;
|
|
3299
|
+
}
|
|
3300
|
+
const t = [...this.modelValue];
|
|
3301
|
+
e(t), this.$emit("update:modelValue", t);
|
|
3302
|
+
},
|
|
3303
|
+
spliceList() {
|
|
3304
|
+
const e = (t) => t.splice(...arguments);
|
|
3305
|
+
this.alterList(e);
|
|
3306
|
+
},
|
|
3307
|
+
updatePosition(e, t) {
|
|
3308
|
+
const n = (o) => o.splice(t, 0, o.splice(e, 1)[0]);
|
|
3309
|
+
this.alterList(n);
|
|
3310
|
+
},
|
|
3311
|
+
getVmIndex(e) {
|
|
3312
|
+
const t = this.visibleIndexes, n = t.length;
|
|
3313
|
+
return e > n - 1 ? n : t[e];
|
|
3314
|
+
},
|
|
3315
|
+
getComponent() {
|
|
3316
|
+
return this.$slots.default ? (
|
|
3317
|
+
//@ts-ignore
|
|
3318
|
+
this.$slots.default()[0].componentInstance
|
|
3319
|
+
) : null;
|
|
3320
|
+
},
|
|
3321
|
+
resetTransitionData(e) {
|
|
3322
|
+
if (!this.noTransitionOnDrag || !this.transitionMode)
|
|
3323
|
+
return;
|
|
3324
|
+
var t = this.getChildrenNodes();
|
|
3325
|
+
t[e].data = null;
|
|
3326
|
+
const n = this.getComponent();
|
|
3327
|
+
n.children = [], n.kept = void 0;
|
|
3328
|
+
},
|
|
3329
|
+
onDragStart(e) {
|
|
3330
|
+
this.computeIndexes(), this.context = this.getUnderlyingVm(e.item), this.context && (e.item._underlying_vm_ = this.clone(this.context.element), Nt = e.item);
|
|
3331
|
+
},
|
|
3332
|
+
onDragAdd(e) {
|
|
3333
|
+
const t = e.item._underlying_vm_;
|
|
3334
|
+
if (t === void 0)
|
|
3335
|
+
return;
|
|
3336
|
+
At(e.item);
|
|
3337
|
+
const n = this.getVmIndex(e.newIndex);
|
|
3338
|
+
this.spliceList(n, 0, t), this.computeIndexes();
|
|
3339
|
+
const o = { element: t, newIndex: n };
|
|
3340
|
+
this.emitChanges({ added: o });
|
|
3341
|
+
},
|
|
3342
|
+
onDragRemove(e) {
|
|
3343
|
+
if (pn(this.$el, e.item, e.oldIndex), e.pullMode === "clone") {
|
|
3344
|
+
At(e.clone);
|
|
3345
|
+
return;
|
|
3346
|
+
}
|
|
3347
|
+
if (!this.context)
|
|
3348
|
+
return;
|
|
3349
|
+
const t = this.context.index;
|
|
3350
|
+
this.spliceList(t, 1);
|
|
3351
|
+
const n = { element: this.context.element, oldIndex: t };
|
|
3352
|
+
this.resetTransitionData(t), this.emitChanges({ removed: n });
|
|
3353
|
+
},
|
|
3354
|
+
onDragUpdate(e) {
|
|
3355
|
+
At(e.item), pn(e.from, e.item, e.oldIndex);
|
|
3356
|
+
const t = this.context.index, n = this.getVmIndex(e.newIndex);
|
|
3357
|
+
this.updatePosition(t, n);
|
|
3358
|
+
const o = { element: this.context.element, oldIndex: t, newIndex: n };
|
|
3359
|
+
this.emitChanges({ moved: o });
|
|
3360
|
+
},
|
|
3361
|
+
updateProperty(e, t) {
|
|
3362
|
+
e.hasOwnProperty(t) && (e[t] += this.headerOffset);
|
|
3363
|
+
},
|
|
3364
|
+
onDragMove(e, t) {
|
|
3365
|
+
const n = this.move;
|
|
3366
|
+
if (!n || !this.realList)
|
|
3367
|
+
return !0;
|
|
3368
|
+
const o = this.getRelatedContextFromMoveEvent(e), i = this.context, a = this.computeFutureIndex(o, e);
|
|
3369
|
+
Object.assign(i, { futureIndex: a });
|
|
3370
|
+
const l = Object.assign({}, e, {
|
|
3371
|
+
relatedContext: o,
|
|
3372
|
+
draggedContext: i
|
|
3373
|
+
});
|
|
3374
|
+
return n(l, t);
|
|
3375
|
+
},
|
|
3376
|
+
onDragEnd() {
|
|
3377
|
+
this.computeIndexes(), Nt = null;
|
|
3378
|
+
},
|
|
3379
|
+
getTrargetedComponent(e) {
|
|
3380
|
+
return e.__draggable_component__;
|
|
3381
|
+
},
|
|
3382
|
+
getRelatedContextFromMoveEvent({ to: e, related: t }) {
|
|
3383
|
+
const n = this.getTrargetedComponent(e);
|
|
3384
|
+
if (!n)
|
|
3385
|
+
return { component: n };
|
|
3386
|
+
const o = n.realList, i = { list: o, component: n };
|
|
3387
|
+
if (e !== t && o && n.getUnderlyingVm) {
|
|
3388
|
+
const a = n.getUnderlyingVm(t);
|
|
3389
|
+
if (a)
|
|
3390
|
+
return Object.assign(a, i);
|
|
3391
|
+
}
|
|
3392
|
+
return i;
|
|
3393
|
+
},
|
|
3394
|
+
computeFutureIndex(e, t) {
|
|
3395
|
+
const n = [...t.to.children].filter((l) => l.style.display !== "none");
|
|
3396
|
+
if (n.length === 0)
|
|
3397
|
+
return 0;
|
|
3398
|
+
const o = n.indexOf(t.related), i = e.component.getVmIndex(o);
|
|
3399
|
+
return n.indexOf(Nt) !== -1 || !t.willInsertAfter ? i : i + 1;
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
}), e0 = { class: "flex m-10" }, t0 = { class: "sortable-list" }, n0 = {
|
|
3403
|
+
name: "SortableList"
|
|
3404
|
+
}, ea = /* @__PURE__ */ A({
|
|
3405
|
+
...n0,
|
|
3406
|
+
props: {
|
|
3407
|
+
list: {
|
|
3408
|
+
required: !0,
|
|
3409
|
+
type: Array
|
|
3410
|
+
}
|
|
3411
|
+
},
|
|
3412
|
+
emits: ["onDrag"],
|
|
3413
|
+
setup(e, { emit: t }) {
|
|
3414
|
+
const n = t, o = (i) => {
|
|
3415
|
+
n("onDrag", i);
|
|
3416
|
+
};
|
|
3417
|
+
return (i, a) => (d(), p("div", e0, [
|
|
3418
|
+
h("ul", t0, [
|
|
3419
|
+
le(H(J2), {
|
|
3420
|
+
list: e.list,
|
|
3421
|
+
onChange: a[0] || (a[0] = (l) => o(e.list))
|
|
3422
|
+
}, {
|
|
3423
|
+
default: G(() => [
|
|
3424
|
+
(d(!0), p(q, null, se(e.list, (l) => (d(), p("li", {
|
|
3425
|
+
key: l.id
|
|
3426
|
+
}, [
|
|
3427
|
+
a[1] || (a[1] = h("span", { class: "grab-icon" }, [
|
|
3428
|
+
h("svg", {
|
|
3429
|
+
"aria-label": "sort list item",
|
|
3430
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3431
|
+
width: "1em",
|
|
3432
|
+
height: "1em",
|
|
3433
|
+
viewBox: "0 0 48 48"
|
|
3434
|
+
}, [
|
|
3435
|
+
h("g", {
|
|
3436
|
+
"fill-rule": "evenodd",
|
|
3437
|
+
"clip-rule": "evenodd"
|
|
3438
|
+
}, [
|
|
3439
|
+
h("path", { d: "M19 10C19 12.2091 17.2091 14 15 14C12.7909 14 11 12.2091 11 10C11 7.79086 12.7909 6 15 6C17.2091 6 19 7.79086 19 10ZM15 28C17.2091 28 19 26.2091 19 24C19 21.7909 17.2091 20 15 20C12.7909 20 11 21.7909 11 24C11 26.2091 12.7909 28 15 28ZM15 42C17.2091 42 19 40.2091 19 38C19 35.7909 17.2091 34 15 34C12.7909 34 11 35.7909 11 38C11 40.2091 12.7909 42 15 42Z" }),
|
|
3440
|
+
h("path", { d: "M37 10C37 12.2091 35.2091 14 33 14C30.7909 14 29 12.2091 29 10C29 7.79086 30.7909 6 33 6C35.2091 6 37 7.79086 37 10ZM33 28C35.2091 28 37 26.2091 37 24C37 21.7909 35.2091 20 33 20C30.7909 20 29 21.7909 29 24C29 26.2091 30.7909 28 33 28ZM33 42C35.2091 42 37 40.2091 37 38C37 35.7909 35.2091 34 33 34C30.7909 34 29 35.7909 29 38C29 40.2091 30.7909 42 33 42Z" })
|
|
3441
|
+
])
|
|
3442
|
+
])
|
|
3443
|
+
], -1)),
|
|
3444
|
+
h("div", null, [
|
|
3445
|
+
l.render ? (d(), j(_e(l.render(l.data)), { key: 0 })) : (d(), p(q, { key: 1 }, [
|
|
3446
|
+
Q(O(l.data), 1)
|
|
3447
|
+
], 64))
|
|
3448
|
+
])
|
|
3449
|
+
]))), 128))
|
|
3450
|
+
]),
|
|
3451
|
+
_: 1
|
|
3452
|
+
}, 8, ["list"])
|
|
3453
|
+
])
|
|
3454
|
+
]));
|
|
3455
|
+
}
|
|
3456
|
+
}), o0 = ["disabled"], i0 = ["src", "alt"], a0 = {
|
|
3457
|
+
name: "SSOButton"
|
|
3458
|
+
}, An = /* @__PURE__ */ A({
|
|
3459
|
+
...a0,
|
|
3460
|
+
props: {
|
|
3461
|
+
alignCenter: Boolean,
|
|
3462
|
+
alternativeText: {
|
|
3463
|
+
default: void 0,
|
|
3464
|
+
type: String
|
|
3465
|
+
},
|
|
3466
|
+
borderType: {
|
|
3467
|
+
default: "rectangular",
|
|
3468
|
+
type: String,
|
|
3469
|
+
validator: (e) => ["rectangular", "pill"].includes(e)
|
|
3470
|
+
},
|
|
3471
|
+
disabled: {
|
|
3472
|
+
default: !1,
|
|
3473
|
+
type: Boolean
|
|
3474
|
+
},
|
|
3475
|
+
imageSource: {
|
|
3476
|
+
required: !0,
|
|
3477
|
+
type: String
|
|
3478
|
+
},
|
|
3479
|
+
loading: {
|
|
3480
|
+
default: !1,
|
|
3481
|
+
type: Boolean
|
|
3482
|
+
},
|
|
3483
|
+
title: {
|
|
3484
|
+
required: !0,
|
|
3485
|
+
type: String
|
|
3486
|
+
},
|
|
3487
|
+
variant: {
|
|
3488
|
+
default: "light",
|
|
3489
|
+
type: String,
|
|
3490
|
+
validator: (e) => ["dark", "light"].includes(e)
|
|
3491
|
+
}
|
|
3492
|
+
},
|
|
3493
|
+
emits: ["click"],
|
|
3494
|
+
setup(e) {
|
|
3495
|
+
return (t, n) => (d(), p("button", {
|
|
3496
|
+
class: N(["sso-button", e.variant, e.borderType, { center: e.alignCenter }]),
|
|
3497
|
+
disabled: e.disabled || e.loading,
|
|
3498
|
+
onClick: n[0] || (n[0] = (o) => t.$emit("click"))
|
|
3499
|
+
}, [
|
|
3500
|
+
h("img", {
|
|
3501
|
+
src: e.imageSource,
|
|
3502
|
+
alt: e.alternativeText
|
|
3503
|
+
}, null, 8, i0),
|
|
3504
|
+
h("span", null, O(e.title), 1)
|
|
3505
|
+
], 10, o0));
|
|
3506
|
+
}
|
|
3507
|
+
}), l0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='2084'%20height='2084'%3e%3cpath%20d='M0%200%20C1.15764862%200.00060425%202.31529724%200.0012085%203.50802612%200.00183105%20C85.98260722%200.11720669%20167.94255485%209.87604579%20248.125%2029.1875%20C248.86457947%2029.36476624%20249.60415894%2029.54203247%20250.3661499%2029.72467041%20C334.62230969%2049.9574737%20416.80768306%2081.42007316%20533.125%20145.1875%20C534.02105957%20145.70908691%20534.91711914%20146.23067383%20535.84033203%20146.76806641%20C550.04886476%20155.0696507%20563.74211052%20164.13646225%20577.4375%20173.25%20C578.32679199%20173.8407431%20579.21608398%20174.43148621%20580.13232422%20175.04013062%20C591.69483528%20182.73135096%20603.0720229%20190.63196121%20614.27706909%20198.8354187%20C616.67050493%20200.58663127%20619.07390043%20202.32397661%20621.4765625%20204.0625%20C630.31030376%20210.50445197%20638.91838886%20217.148823%20647.35546875%20224.1015625%20C650.93712446%20227.05029675%20654.58513462%20229.90587171%20658.25%20232.75%20C664.80446613%20237.85872335%20671.10574818%20243.23251579%20677.37939453%20248.68017578%20C679.10687975%20250.17185322%20680.84590215%20251.64870526%20682.58984375%20253.12109375%20C689.5490538%20259.00754793%20696.29865442%20265.06950894%20702.93237305%20271.32104492%20C706.02875784%20274.23828319%20709.1375661%20277.11327067%20712.375%20279.875%20C716.13510937%20283.10378956%20719.58790586%20286.62314338%20723.06616211%20290.14794922%20C725.6075653%20292.71084883%20728.18211543%20295.16942847%20730.9375%20297.5%20C739.34322101%20304.69001756%20747.21573722%20312.7580678%20754.35546875%20321.19921875%20C756.67272617%20323.80293625%20759.14521445%20326.24047964%20761.625%20328.6875%20C765.32908948%20332.34742653%20768.87787767%20336.07693794%20772.2578125%20340.0390625%20C774.15320841%20342.21995738%20776.1052652%20344.34205746%20778.07080078%20346.4597168%20C782.90200954%20351.66642948%20787.48561882%20356.99917793%20791.94140625%20362.53515625%20C794.11897068%20365.18017637%20796.37818763%20367.71962525%20798.6875%20370.25%20C802.24142208%20374.1587026%20805.5852216%20378.17351283%20808.8515625%20382.32421875%20C810.55603659%20384.47091893%20812.27757011%20386.59447521%20814.0234375%20388.70703125%20C821.23010316%20397.44393263%20828.06132486%20406.39389068%20834.73046875%20415.546875%20C837.30174324%20419.07576257%20839.91615421%20422.56735039%20842.56005859%20426.04199219%20C855.57684339%20443.17700697%20867.54995923%20461.05622605%20879.125%20479.1875%20C879.62451172%20479.96512695%20880.12402344%20480.74275391%20880.63867188%20481.54394531%20C897.58381654%20507.93121546%20913.09593508%20535.18898842%20927.46484375%20563.05859375%20C929.00770036%20566.04920309%20930.5667459%20569.02569169%20932.19140625%20571.97265625%20C939.19339133%20584.70486712%20945.14022162%20597.95559111%20951.125%20611.1875%20C951.41070862%20611.81843567%20951.69641724%20612.44937134%20951.99078369%20613.09942627%20C984.41326204%20684.79659167%201008.53753875%20760.05556022%201037.8125%20926.75%20C1037.95767059%20928.00706253%201037.95767059%20928.00706253%201038.10577393%20929.28952026%20C1042.18612959%20965.02273189%201043.64357089%201000.92112464%201043.51611328%201036.86474609%20C1043.49902324%201041.71699519%201043.50922796%201046.56874997%201043.52643585%201051.42098236%20C1043.58875603%201072.22474355%201043.121671%201092.92627467%201041.7421875%201113.6875%20C1041.68073925%201114.61345474%201041.619291%201115.53940948%201041.55598068%201116.49342346%20C1035.0007366%201213.08026312%201014.38267632%201308.16853%20966.125%201439.1875%20C965.74018463%201440.10187836%20965.74018463%201440.10187836%20965.34759521%201441.034729%20C949.45738809%201478.73766744%20932.25383656%201516.09689741%20911.67675781%201551.49414062%20C910.07835791%201554.26845588%20908.51530634%201557.06017358%20906.9609375%201559.859375%20C895.54802769%201580.39389385%20882.94822692%201600.0776952%20869.9375%201619.625%20C869.44011322%201620.37300873%20868.94272644%201621.12101746%20868.43026733%201621.89169312%20C858.68653626%201636.525895%20848.74118479%201651.01255917%20838%201664.9375%20C837.32259766%201665.82091064%20836.64519531%201666.70432129%20835.94726562%201667.61450195%20C834.61307186%201669.35362798%20833.27752794%201671.09171932%20831.94042969%201672.82861328%20C830.34444691%201674.90236067%20828.75291154%201676.97937968%20827.1640625%201679.05859375%20C822.23462047%201685.50301824%20817.23152617%201691.88240063%20812.125%201698.1875%20C811.44050781%201699.03570313%20810.75601562%201699.88390625%20810.05078125%201700.7578125%20C804.87991842%201707.12623602%20799.5782563%201713.37313801%20794.22265625%201719.5859375%20C792.19755881%201721.93532976%20790.1847527%201724.2942514%20788.18359375%201726.6640625%20C781.38039056%201734.70287081%20774.30783235%201742.44088746%20767.07495117%201750.09399414%20C765.68090087%201751.59067391%20764.30252896%201753.10201885%20762.93481445%201754.62280273%20C754.62146255%201763.84397622%20745.8602102%201772.6040054%20737.07202148%201781.37084961%20C734.4290134%201784.0084693%20731.79143019%201786.6514299%20729.15429688%201789.29492188%20C727.45344575%201790.9951126%20725.75228466%201792.69499331%20724.05078125%201794.39453125%20C723.27350174%201795.17383499%20722.49622223%201795.95313873%20721.69538879%201796.75605774%20C717.55441138%201800.87950727%20713.33600026%201804.84794915%20708.89880371%201808.65180969%20C705.95478417%201811.20062738%20703.14452257%201813.89078831%20700.3125%201816.5625%20C695.28811299%201821.26903274%20690.13516609%201825.71608064%20684.7578125%201830.01953125%20C682.01530846%201832.27782463%20679.4156241%201834.64531334%20676.8125%201837.0625%20C672.28436424%201841.22556682%20667.58986729%201845.04964306%20662.72802734%201848.80688477%20C658.76816735%201851.87383515%20654.89260927%201855.02304957%20651.04980469%201858.23535156%20C642.11958177%201865.69578282%20632.89061882%201872.64530815%20623.47070312%201879.47265625%20C621.25005402%201881.09607833%20619.05139889%201882.74445617%20616.859375%201884.40625%20C601.99002628%201895.6324397%20586.41223305%201905.80978513%20570.85534668%201916.04760742%20C568.60118411%201917.5325718%20566.3516835%201919.0245461%20564.1015625%201920.515625%20C544.67940459%201933.3113726%20524.47697034%201944.94533071%20504.125%201956.1875%20C502.63226562%201957.01217773%20502.63226562%201957.01217773%20501.109375%201957.85351562%20C425.12550951%201999.65428426%20344.00442425%202031.25797004%20139.19140625%202076.15625%20C138.04930191%202076.3149482%20138.04930191%202076.3149482%20136.88412476%202076.47685242%20C133.5828542%202076.92098977%20130.46476193%202077.1875%20127.125%202077.1875%20C127.125%201840.5775%20127.125%201603.9675%20127.125%201360.1875%20C220.185%201360.1875%20313.245%201360.1875%20409.125%201360.1875%20C409.455%201357.2175%20409.785%201354.2475%20410.125%201351.1875%20C410.51943974%201348.75034978%20410.94040505%201346.31734207%20411.38798523%201343.88938904%20C411.51213267%201343.21104765%20411.63628011%201342.53270626%20411.7641896%201341.83380908%20C412.17662934%201339.58452582%20412.59355551%201337.33609905%20413.01049805%201335.08764648%20C413.31060355%201333.45620854%20413.61042778%201331.82471884%20413.90999508%201330.19318199%20C414.7269403%201325.74827455%20415.54779155%201321.30409627%20416.3692956%201316.86002946%20C417.24572562%201312.11485646%20418.11843243%201307.36899873%20418.99154663%201302.62321472%20C420.48537353%201294.50627273%20421.9814042%201286.38973962%20423.47903442%201278.27349854%20C425.81168262%201265.63190818%20428.14049765%201252.98961352%20430.46850586%201240.34716797%20C431.24634234%201236.12322799%20432.02419399%201231.8992908%20432.80204773%201227.675354%20C432.994336%201226.63115295%20433.18662427%201225.5869519%20433.38473946%201224.5111084%20C434.5517232%201218.17414514%20435.71909736%201211.83725394%20436.88678104%201205.50041962%20C441.55237596%201180.18084381%20446.20685276%201154.85928396%20450.83816981%201129.53341508%20C451.36915395%201126.62995752%20451.90032052%201123.72653335%20452.43148345%201120.82310849%20C454.7135128%201108.34887001%20456.99400124%201095.87435226%20459.2702446%201083.39905643%20C460.11947451%201078.74719247%20460.97040771%201074.09564133%20461.82182693%201069.44417763%20C462.20864513%201067.32864122%20462.59468226%201065.21296182%20462.97986984%201063.09712791%20C463.49512112%201060.26702672%20464.01297143%201057.43741349%20464.53149414%201054.60791016%20C464.7546708%201053.37627467%20464.7546708%201053.37627467%20464.98235607%201052.11975765%20C465.54550464%201049.05918558%20466.13944488%201046.14416537%20467.125%201043.1875%20C354.925%201043.1875%20242.725%201043.1875%20127.125%201043.1875%20C127.125%20820.4875%20127.125%20820.4875%20166.125%20767.1875%20C166.7334375%20766.33671875%20167.341875%20765.4859375%20167.96875%20764.609375%20C199.0356318%20723.45938244%20248.58254326%20706.8968135%20297.84375%20699.99609375%20C322.20646732%20696.77183572%20346.69767153%20695.99322627%20371.25%20696.0625%20C372.24480377%20696.0640509%20373.23960754%20696.06560181%20374.26455688%20696.06719971%20C403.35847437%20696.11952535%20432.44731149%20696.57260512%20461.5%20698.1875%20C462.25566254%20698.22929382%20463.01132507%20698.27108765%20463.78988647%20698.31414795%20C470.62665266%20698.70012868%20477.33423541%20699.21739077%20484.125%20700.1875%20C484.125%20605.1475%20484.125%20510.1075%20484.125%20412.1875%20C481.485%20411.8575%20478.845%20411.5275%20476.125%20411.1875%20C473.70350389%20410.74024359%20471.28672476%20410.26678913%20468.875%20409.76953125%20C467.46953422%20409.4842065%20466.06392837%20409.19957106%20464.65820312%20408.91552734%20C463.922229%20408.76637878%20463.18625488%20408.61723022%20462.42797852%20408.46356201%20C418.7251371%20399.6667031%20374.4681051%20394.56312206%20330.0625%20390.9375%20C329.04600372%20390.85441589%20328.02950745%20390.77133179%20326.98220825%20390.68572998%20C320.36555577%20390.15035922%20313.7468795%20389.65356543%20307.125%20389.1875%20C306.36406036%20389.13201996%20305.60312073%20389.07653992%20304.81912231%20389.01937866%20C288.301523%20387.84651093%20271.73733416%20387.98693467%20255.1875%20388%20C254.05323767%20388.00040031%20254.05323767%20388.00040031%20252.89606094%20388.00080872%20C229.91924016%20388.01099063%20207.02914183%20388.18285444%20184.125%20390.1875%20C183.00738281%20390.28224609%20183.00738281%20390.28224609%20181.8671875%20390.37890625%20C114.16045062%20396.12440306%2047.41054353%20409.25726526%20-14.875%20437.1875%20C-16.27419678%20437.81374268%20-16.27419678%20437.81374268%20-17.70166016%20438.45263672%20C-44.8755615%20450.73179164%20-70.7002496%20466.38909731%20-93.875%20485.1875%20C-94.78636719%20485.90808594%20-95.69773437%20486.62867188%20-96.63671875%20487.37109375%20C-114.16450229%20501.39832137%20-131.13485733%20517.41657747%20-144.875%20535.1875%20C-145.78582026%20536.30083746%20-146.70012221%20537.41133222%20-147.6171875%20538.51953125%20C-202.325014%20604.95432352%20-228.49253665%20690.27902932%20-246.625%20832.0625%20C-246.68425659%20832.8826358%20-246.74351318%20833.70277161%20-246.80456543%20834.54776001%20C-248.70329112%20861.39656802%20-249.05219436%20888.25161023%20-249.17891693%20915.15448761%20C-249.198928%20919.23179463%20-249.22365365%20923.30906858%20-249.2479248%20927.38635254%20C-249.31571778%20939.21587622%20-249.37618676%20951.04544096%20-249.4375%20962.875%20C-249.581875%20989.378125%20-249.72625%201015.88125%20-249.875%201043.1875%20C-320.825%201043.1875%20-391.775%201043.1875%20-464.875%201043.1875%20C-464.875%201147.7975%20-464.875%201252.4075%20-464.875%201360.1875%20C-393.925%201360.1875%20-322.975%201360.1875%20-249.875%201360.1875%20C-249.875%201589.2075%20-249.875%201818.2275%20-249.875%202054.1875%20C-270.62367633%202049.57668304%20-270.62367633%202049.57668304%20-277.3359375%202047.59375%20C-278.12266342%202047.36577728%20-278.90938934%202047.13780457%20-279.71995544%202046.90292358%20C-282.23215489%202046.17167304%20-284.74129526%202045.43064444%20-287.25%202044.6875%20C-288.12707611%202044.42938538%20-289.00415222%202044.17127075%20-289.9078064%202043.90533447%20C-307.71271842%202038.65736425%20-325.33810391%202032.92982037%20-342.88323975%202026.8737793%20C-344.78762714%202026.21760512%20-346.69382179%202025.56668313%20-348.60009766%202024.91601562%20C-386.39071379%202011.98422192%20-423.03805933%201995.76788599%20-458.875%201978.1875%20C-460.08801596%201977.59464997%20-461.30107048%201977.00187885%20-462.51416016%201976.40917969%20C-478.32368152%201968.67434904%20-493.85789195%201960.60770523%20-509.09521484%201951.78466797%20C-511.96370924%201950.13653075%20-514.8478377%201948.51946121%20-517.73828125%201946.91015625%20C-529.19760797%201940.52415668%20-540.40320532%201933.86804094%20-551.42675781%201926.75732422%20C-554.02158841%201925.09350683%20-556.63012701%201923.45302978%20-559.2421875%201921.81640625%20C-570.92292696%201914.48148611%20-582.3192026%201906.8345234%20-593.55371094%201898.83398438%20C-595.74838809%201897.2773055%20-597.95339131%201895.73697652%20-600.1640625%201894.203125%20C-610.85023778%201886.77100591%20-621.20735707%201878.93827558%20-631.52050781%201870.99853516%20C-633.58006511%201869.41435888%20-635.64392053%201867.83613925%20-637.7109375%201866.26171875%20C-647.39068031%201858.87917139%20-656.7664934%201851.16037524%20-666.03686523%201843.27368164%20C-669.46521372%201840.36174562%20-672.93465337%201837.50993757%20-676.4375%201834.6875%20C-681.51539439%201830.55708445%20-686.32063853%201826.17918232%20-691.1171875%201821.73046875%20C-693.27840548%201819.73761761%20-695.45846969%201817.79042215%20-697.6875%201815.875%20C-707.03725713%201807.75496041%20-715.97948201%201799.16676038%20-724.67578125%201790.35546875%20C-727.32888836%201787.74006121%20-730.11690846%201785.32121245%20-732.94140625%201782.89453125%20C-737.6422449%201778.74449794%20-741.99477244%201774.2690599%20-746.0625%201769.5%20C-749.31932797%201765.70411085%20-752.82135682%201762.20154687%20-756.375%201758.6875%20C-760.41419926%201754.68856796%20-764.33221615%201750.66891397%20-768.01171875%201746.33203125%20C-770.01595855%201744.02526469%20-772.08841257%201741.79447697%20-774.17431641%201739.56176758%20C-779.24905932%201734.12926079%20-784.08240797%201728.59009671%20-788.73828125%201722.7890625%20C-790.83382494%201720.23763271%20-793.01463155%201717.80423227%20-795.25%201715.375%20C-799.23008466%201711.00241564%20-802.88847497%201706.44580709%20-806.50952148%201701.77758789%20C-809.51028782%201697.91192218%20-812.56461153%201694.09842864%20-815.66894531%201690.31542969%20C-827.35908879%201676.06915264%20-838.17666647%201661.18693681%20-848.875%201646.1875%20C-849.71417969%201645.0121167%20-849.71417969%201645.0121167%20-850.5703125%201643.81298828%20C-860.04321275%201630.50929475%20-869.07734538%201616.94618682%20-877.875%201603.1875%20C-878.4952002%201602.21796387%20-879.11540039%201601.24842773%20-879.75439453%201600.24951172%20C-894.48377963%201577.14060668%20-908.02989957%201553.38947828%20-920.875%201529.1875%20C-921.41946777%201528.1670459%20-921.96393555%201527.1465918%20-922.52490234%201526.09521484%20C-950.92205251%201472.73772329%20-973.77638387%201416.81788606%20-992.20300293%201359.27978516%20C-992.84281907%201357.28769639%20-993.48916038%201355.2978585%20-994.13769531%201353.30859375%20C-1021.07962966%201270.16357352%20-1034.75061722%201183.25969817%20-1039.875%201096.1875%20C-1039.98303955%201094.41971191%20-1039.98303955%201094.41971191%20-1040.09326172%201092.61621094%20C-1045.63647387%20997.60231986%20-1035.95069819%20900.80955586%20-988.55480957%20714.24517822%20C-987.91148971%20712.29794869%20-987.27345606%20710.34897503%20-986.63574219%20708.39990234%20C-972.198078%20664.45683716%20-953.94499844%20621.94702594%20-933.50244141%20580.48925781%20C-931.92365217%20577.28620566%20-930.35774073%20574.07710499%20-928.79296875%20570.8671875%20C-922.47719203%20557.98975189%20-915.66417948%20545.46930097%20-908.50732422%20533.04199219%20C-906.88104815%20530.19807658%20-905.28202374%20527.34055521%20-903.69140625%20524.4765625%20C-886.12900281%20492.89821761%20-866.14484941%20462.40194511%20-844.875%20433.1875%20C-844.04911377%20432.04933838%20-844.04911377%20432.04933838%20-843.20654297%20430.88818359%20C-836.06130995%20421.05881457%20-828.7732954%20411.3658484%20-821.20166016%20401.86132812%20C-819.83665981%20400.13912673%20-818.48504984%20398.40715176%20-817.13671875%20396.671875%20C-812.17288962%20390.29043596%20-807.11257707%20384.01899817%20-801.859375%20377.87304688%20C-798.97588109%20374.499359%20-796.15862156%20371.08223817%20-793.375%20367.625%20C-789.24809794%20362.55142507%20-784.87397442%20357.75008858%20-780.4296875%20352.95703125%20C-778.37386278%20350.72831607%20-776.35883043%20348.47982081%20-774.375%20346.1875%20C-770.15531164%20341.33087754%20-765.80192045%20336.59811629%20-761.43359375%20331.87548828%20C-760.40256762%20330.75886631%20-759.37387963%20329.64008046%20-758.34765625%20328.51904297%20C-749.45659923%20318.81038563%20-740.23533473%20309.44175692%20-730.9375%20300.125%20C-730.35145996%20299.53637177%20-729.76541992%20298.94774353%20-729.16162109%20298.34127808%20C-717.61447074%20286.75390994%20-717.61447074%20286.75390994%20-711.50756836%20281.60571289%20C-709.70928757%20280.04354553%20-708.04247572%20278.38787503%20-706.375%20276.6875%20C-703.40764677%20273.67336418%20-700.30154708%20270.88832667%20-697.09765625%20268.12890625%20C-694.54523117%20265.89945939%20-692.05612486%20263.60748618%20-689.5625%20261.3125%20C-685.09977168%20257.24209944%20-680.51242%20253.38573091%20-675.8125%20249.59375%20C-672.51145806%20246.889705%20-669.28754385%20244.10617139%20-666.0625%20241.3125%20C-659.73423409%20235.85005238%20-653.2238193%20230.66076967%20-646.61621094%20225.54199219%20C-644.88545643%20224.19563408%20-643.16395475%20222.83833893%20-641.4453125%20221.4765625%20C-633.37371493%20215.0832974%20-625.20347731%20208.83326471%20-616.92724609%20202.70703125%20C-615.59760536%20201.72253399%20-614.26969096%20200.73569917%20-612.94384766%20199.74609375%20C-591.09427344%20183.46841045%20-568.10643973%20168.4136987%20-544.875%20154.1875%20C-544.10043457%20153.71231934%20-543.32586914%20153.23713867%20-542.52783203%20152.74755859%20C-529.15844276%20144.57334691%20-515.5714239%20136.79891975%20-501.875%20129.1875%20C-500.9586377%20128.67638672%20-500.04227539%20128.16527344%20-499.09814453%20127.63867188%20C-471.10385829%20112.0735903%20-442.34223185%2097.74699667%20-412.875%2085.1875%20C-412.1618866%2084.88326111%20-411.44877319%2084.57902222%20-410.71405029%2084.26556396%20C-385.762709%2073.64318405%20-360.52997695%2063.97343221%20-334.875%2055.1875%20C-334.15306458%2054.93997986%20-333.43112915%2054.69245972%20-332.68731689%2054.43743896%20C-249.37478965%2025.95429945%20-162.18869196%208.98545156%200%200%20Z%20'%20fill='%23FFFFFF'%20transform='translate(1040.875,-0.1875)'/%3e%3c/svg%3e", r0 = {
|
|
3508
|
+
name: "FacebookSignInButton"
|
|
3509
|
+
}, ta = /* @__PURE__ */ A({
|
|
3510
|
+
...r0,
|
|
3511
|
+
props: {
|
|
3512
|
+
baseButtonOptions: {
|
|
3513
|
+
default: () => ({}),
|
|
3514
|
+
type: Object
|
|
3515
|
+
},
|
|
3516
|
+
disabled: {
|
|
3517
|
+
default: !1,
|
|
3518
|
+
type: Boolean
|
|
3519
|
+
},
|
|
3520
|
+
loading: {
|
|
3521
|
+
default: !1,
|
|
3522
|
+
type: Boolean
|
|
3523
|
+
},
|
|
3524
|
+
title: {
|
|
3525
|
+
required: !0,
|
|
3526
|
+
type: String
|
|
3527
|
+
}
|
|
3528
|
+
},
|
|
3529
|
+
emits: ["click"],
|
|
3530
|
+
setup(e) {
|
|
3531
|
+
return (t, n) => (d(), j(An, be(e.baseButtonOptions, {
|
|
3532
|
+
disabled: e.disabled,
|
|
3533
|
+
"image-source": H(l0),
|
|
3534
|
+
loading: e.loading,
|
|
3535
|
+
title: e.title,
|
|
3536
|
+
class: "facebook",
|
|
3537
|
+
onClick: n[0] || (n[0] = (o) => t.$emit("click"))
|
|
3538
|
+
}), null, 16, ["disabled", "image-source", "loading", "title"]));
|
|
3539
|
+
}
|
|
3540
|
+
}), s0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='46px'%20height='46px'%20viewBox='0%200%2046%2046'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sketch='http://www.bohemiancoding.com/sketch/ns'%3e%3c!--%20Generator:%20Sketch%203.3.3%20(12081)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3ebtn_google_light_normal_ios%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3cfilter%20x='-50%25'%20y='-50%25'%20width='200%25'%20height='200%25'%20filterUnits='objectBoundingBox'%20id='filter-1'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.168%200'%20in='shadowBlurOuter1'%20type='matrix'%20result='shadowMatrixOuter1'%3e%3c/feColorMatrix%3e%3cfeOffset%20dx='0'%20dy='0'%20in='SourceAlpha'%20result='shadowOffsetOuter2'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter2'%20result='shadowBlurOuter2'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.084%200'%20in='shadowBlurOuter2'%20type='matrix'%20result='shadowMatrixOuter2'%3e%3c/feColorMatrix%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='shadowMatrixOuter2'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3crect%20id='path-2'%20x='0'%20y='0'%20width='40'%20height='40'%20rx='2'%3e%3c/rect%3e%3c/defs%3e%3cg%20id='Google-Button'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20sketch:type='MSPage'%3e%3cg%20id='9-PATCH'%20sketch:type='MSArtboardGroup'%20transform='translate(-608.000000,%20-160.000000)'%3e%3c/g%3e%3cg%20id='btn_google_light_normal'%20sketch:type='MSArtboardGroup'%20transform='translate(-1.000000,%20-1.000000)'%3e%3cg%20id='button'%20sketch:type='MSLayerGroup'%20transform='translate(4.000000,%204.000000)'%20filter='url(%23filter-1)'%3e%3cg%20id='button-bg'%3e%3cuse%20fill='%23FFFFFF'%20fill-rule='evenodd'%20sketch:type='MSShapeGroup'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='none'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='none'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='none'%20xlink:href='%23path-2'%3e%3c/use%3e%3c/g%3e%3c/g%3e%3cg%20id='logo_googleg_48dp'%20sketch:type='MSLayerGroup'%20transform='translate(15.000000,%2015.000000)'%3e%3cpath%20d='M17.64,9.20454545%20C17.64,8.56636364%2017.5827273,7.95272727%2017.4763636,7.36363636%20L9,7.36363636%20L9,10.845%20L13.8436364,10.845%20C13.635,11.97%2013.0009091,12.9231818%2012.0477273,13.5613636%20L12.0477273,15.8195455%20L14.9563636,15.8195455%20C16.6581818,14.2527273%2017.64,11.9454545%2017.64,9.20454545%20L17.64,9.20454545%20Z'%20id='Shape'%20fill='%234285F4'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M9,18%20C11.43,18%2013.4672727,17.1940909%2014.9563636,15.8195455%20L12.0477273,13.5613636%20C11.2418182,14.1013636%2010.2109091,14.4204545%209,14.4204545%20C6.65590909,14.4204545%204.67181818,12.8372727%203.96409091,10.71%20L0.957272727,10.71%20L0.957272727,13.0418182%20C2.43818182,15.9831818%205.48181818,18%209,18%20L9,18%20Z'%20id='Shape'%20fill='%2334A853'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M3.96409091,10.71%20C3.78409091,10.17%203.68181818,9.59318182%203.68181818,9%20C3.68181818,8.40681818%203.78409091,7.83%203.96409091,7.29%20L3.96409091,4.95818182%20L0.957272727,4.95818182%20C0.347727273,6.17318182%200,7.54772727%200,9%20C0,10.4522727%200.347727273,11.8268182%200.957272727,13.0418182%20L3.96409091,10.71%20L3.96409091,10.71%20Z'%20id='Shape'%20fill='%23FBBC05'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M9,3.57954545%20C10.3213636,3.57954545%2011.5077273,4.03363636%2012.4404545,4.92545455%20L15.0218182,2.34409091%20C13.4631818,0.891818182%2011.4259091,0%209,0%20C5.48181818,0%202.43818182,2.01681818%200.957272727,4.95818182%20L3.96409091,7.29%20C4.67181818,5.16272727%206.65590909,3.57954545%209,3.57954545%20L9,3.57954545%20Z'%20id='Shape'%20fill='%23EA4335'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M0,0%20L18,0%20L18,18%20L0,18%20L0,0%20Z'%20id='Shape'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3c/g%3e%3cg%20id='handles_square'%20sketch:type='MSLayerGroup'%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u0 = {
|
|
3541
|
+
name: "GoogleSignInButton"
|
|
3542
|
+
}, na = /* @__PURE__ */ A({
|
|
3543
|
+
...u0,
|
|
3544
|
+
props: {
|
|
3545
|
+
baseButtonOptions: {
|
|
3546
|
+
default: () => ({}),
|
|
3547
|
+
type: Object
|
|
3548
|
+
},
|
|
3549
|
+
disabled: {
|
|
3550
|
+
default: !1,
|
|
3551
|
+
type: Boolean
|
|
3552
|
+
},
|
|
3553
|
+
loading: {
|
|
3554
|
+
default: !1,
|
|
3555
|
+
type: Boolean
|
|
3556
|
+
},
|
|
3557
|
+
title: {
|
|
3558
|
+
required: !0,
|
|
3559
|
+
type: String
|
|
3560
|
+
}
|
|
3561
|
+
},
|
|
3562
|
+
emits: ["click"],
|
|
3563
|
+
setup(e) {
|
|
3564
|
+
return (t, n) => (d(), j(An, be(e.baseButtonOptions, {
|
|
3565
|
+
disabled: e.disabled,
|
|
3566
|
+
"image-source": H(s0),
|
|
3567
|
+
loading: e.loading,
|
|
3568
|
+
title: e.title,
|
|
3569
|
+
class: "google",
|
|
3570
|
+
onClick: n[0] || (n[0] = (o) => t.$emit("click"))
|
|
3571
|
+
}), null, 16, ["disabled", "image-source", "loading", "title"]));
|
|
3572
|
+
}
|
|
3573
|
+
}), d0 = "data:image/svg+xml,%3csvg%20fill='%23007aff'%20height='1rem'%20width='1rem'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20490%20490'%20xml:space='preserve'%20stroke='%23007aff'%20%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3c/g%3e%3cg%3e%3cpolygon%20points='452.253,28.326%20197.831,394.674%2029.044,256.875%200,292.469%20207.253,461.674%20490,54.528%20'%20%3e%3c/polygon%3e%3c/g%3e%3c/svg%3e", c0 = { class: "stepper" }, f0 = { class: "steps" }, h0 = {
|
|
3574
|
+
key: 0,
|
|
3575
|
+
src: d0
|
|
3576
|
+
}, p0 = {
|
|
3577
|
+
key: 0,
|
|
3578
|
+
class: "content"
|
|
3579
|
+
}, g0 = { class: "actions" }, m0 = {
|
|
3580
|
+
name: "Stepper"
|
|
3581
|
+
}, v0 = /* @__PURE__ */ A({
|
|
3582
|
+
...m0,
|
|
3583
|
+
props: {
|
|
3584
|
+
nextButtonProperties: {
|
|
3585
|
+
default: null,
|
|
3586
|
+
type: Object
|
|
3587
|
+
},
|
|
3588
|
+
previousButtonProperties: {
|
|
3589
|
+
default: null,
|
|
3590
|
+
type: Object
|
|
3591
|
+
},
|
|
3592
|
+
steps: {
|
|
3593
|
+
type: Array,
|
|
3594
|
+
required: !0
|
|
3595
|
+
}
|
|
3596
|
+
},
|
|
3597
|
+
emits: ["complete"],
|
|
3598
|
+
setup(e, { emit: t }) {
|
|
3599
|
+
const n = e, o = t, i = _(0), a = _(!1), l = _(!0), r = () => {
|
|
3600
|
+
i.value < n.steps.length - 1 ? (i.value++, l.value = !1) : o("complete");
|
|
3601
|
+
}, s = () => {
|
|
3602
|
+
i.value > 0 && (i.value--, a.value = !1), i.value || (l.value = !0);
|
|
3603
|
+
};
|
|
3604
|
+
return (u, f) => (d(), p("div", c0, [
|
|
3605
|
+
h("ul", f0, [
|
|
3606
|
+
(d(!0), p(q, null, se(e.steps, (c, v) => (d(), p("li", {
|
|
3607
|
+
key: v,
|
|
3608
|
+
class: N([
|
|
3609
|
+
"step",
|
|
3610
|
+
{ active: v === i.value, completed: v < i.value }
|
|
3611
|
+
])
|
|
3612
|
+
}, [
|
|
3613
|
+
h("span", {
|
|
3614
|
+
class: N([
|
|
3615
|
+
"step-number",
|
|
3616
|
+
{ active: v === i.value, completed: v < i.value }
|
|
3617
|
+
])
|
|
3618
|
+
}, [
|
|
3619
|
+
v < i.value ? (d(), p("img", h0)) : (d(), p(q, { key: 1 }, [
|
|
3620
|
+
Q(O(c.step || v + 1), 1)
|
|
3621
|
+
], 64))
|
|
3622
|
+
], 2),
|
|
3623
|
+
c.label ? (d(), p("span", {
|
|
3624
|
+
key: 0,
|
|
3625
|
+
class: N([{ active: v === i.value }, "step-label"])
|
|
3626
|
+
}, O(c.label), 3)) : k("", !0)
|
|
3627
|
+
], 2))), 128))
|
|
3628
|
+
]),
|
|
3629
|
+
(d(!0), p(q, null, se(e.steps, (c, v) => (d(), p(q, { key: v }, [
|
|
3630
|
+
v === i.value && c.content ? (d(), p("div", p0, [
|
|
3631
|
+
I(u.$slots, c?.step, {}, () => [
|
|
3632
|
+
Q(O(c.content), 1)
|
|
3633
|
+
], !0)
|
|
3634
|
+
])) : k("", !0)
|
|
3635
|
+
], 64))), 128)),
|
|
3636
|
+
h("div", g0, [
|
|
3637
|
+
le(H(he), {
|
|
3638
|
+
disabled: l.value || e.previousButtonProperties?.disabled,
|
|
3639
|
+
"icon-left": e.previousButtonProperties?.iconLeft,
|
|
3640
|
+
"icon-right": e.previousButtonProperties?.iconRight,
|
|
3641
|
+
label: e.previousButtonProperties?.label ?? "Previous",
|
|
3642
|
+
rounded: e.previousButtonProperties?.rounded,
|
|
3643
|
+
severity: e.previousButtonProperties?.severity,
|
|
3644
|
+
size: e.previousButtonProperties?.size,
|
|
3645
|
+
variant: e.previousButtonProperties?.variant ?? "outlined",
|
|
3646
|
+
onClick: s
|
|
3647
|
+
}, null, 8, ["disabled", "icon-left", "icon-right", "label", "rounded", "severity", "size", "variant"]),
|
|
3648
|
+
le(H(he), {
|
|
3649
|
+
disabled: a.value || e.nextButtonProperties?.disabled,
|
|
3650
|
+
"icon-left": e.nextButtonProperties?.iconLeft,
|
|
3651
|
+
"icon-right": e.nextButtonProperties?.iconRight,
|
|
3652
|
+
label: i.value === e.steps.length - 1 ? "Finish" : e.nextButtonProperties?.label ?? "Next",
|
|
3653
|
+
rounded: e.nextButtonProperties?.rounded,
|
|
3654
|
+
severity: i.value === e.steps.length - 1 ? "success" : e.nextButtonProperties?.severity ?? "primary",
|
|
3655
|
+
size: e.nextButtonProperties?.size,
|
|
3656
|
+
variant: e.nextButtonProperties?.variant,
|
|
3657
|
+
onClick: r
|
|
3658
|
+
}, null, 8, ["disabled", "icon-left", "icon-right", "label", "rounded", "severity", "size", "variant"])
|
|
3659
|
+
])
|
|
3660
|
+
]));
|
|
3661
|
+
}
|
|
3662
|
+
}), oa = /* @__PURE__ */ et(v0, [["__scopeId", "data-v-75d55d88"]]), b0 = ["data-position"], C0 = { role: "tablist" }, y0 = ["data-selected"], w0 = ["aria-expanded", "onClick"], S0 = ["src"], k0 = {
|
|
3663
|
+
class: "tabbed-pane",
|
|
3664
|
+
role: "region"
|
|
3665
|
+
}, $0 = {
|
|
3666
|
+
name: "TabbedPanel"
|
|
3667
|
+
}, ia = /* @__PURE__ */ A({
|
|
3668
|
+
...$0,
|
|
3669
|
+
props: {
|
|
3670
|
+
defaultIndex: {
|
|
3671
|
+
default: 0,
|
|
3672
|
+
required: !1,
|
|
3673
|
+
type: Number
|
|
3674
|
+
},
|
|
3675
|
+
position: {
|
|
3676
|
+
default: "top",
|
|
3677
|
+
required: !1,
|
|
3678
|
+
type: String
|
|
3679
|
+
}
|
|
3680
|
+
},
|
|
3681
|
+
setup(e) {
|
|
3682
|
+
const t = Se(), n = e, o = _(n.defaultIndex), i = (r) => {
|
|
3683
|
+
o.value = r;
|
|
3684
|
+
}, a = t?.default ? t.default().filter((r) => r?.props?.title) : [], l = Y(() => a[o.value]);
|
|
3685
|
+
return (r, s) => H(a).length ? (d(), p("div", {
|
|
3686
|
+
key: 0,
|
|
3687
|
+
class: "tabbed-panel",
|
|
3688
|
+
"data-position": n.position
|
|
3689
|
+
}, [
|
|
3690
|
+
h("nav", null, [
|
|
3691
|
+
h("ul", C0, [
|
|
3692
|
+
(d(!0), p(q, null, se(H(a), (u, f) => (d(), p("li", {
|
|
3693
|
+
key: f,
|
|
3694
|
+
"data-selected": f === o.value
|
|
3695
|
+
}, [
|
|
3696
|
+
h("button", {
|
|
3697
|
+
"aria-expanded": f === o.value,
|
|
3698
|
+
tabindex: "0",
|
|
3699
|
+
type: "button",
|
|
3700
|
+
onClick: (c) => i(f)
|
|
3701
|
+
}, [
|
|
3702
|
+
I(r.$slots, "icon", be({ ref_for: !0 }, u), () => [
|
|
3703
|
+
u?.props?.icon ? (d(), p("img", {
|
|
3704
|
+
key: 0,
|
|
3705
|
+
src: u?.props?.icon,
|
|
3706
|
+
class: "icon"
|
|
3707
|
+
}, null, 8, S0)) : k("", !0)
|
|
3708
|
+
]),
|
|
3709
|
+
h("span", null, O(u.props?.title), 1)
|
|
3710
|
+
], 8, w0)
|
|
3711
|
+
], 8, y0))), 128))
|
|
3712
|
+
])
|
|
3713
|
+
]),
|
|
3714
|
+
le(gn, {
|
|
3715
|
+
appear: "",
|
|
3716
|
+
name: "expand"
|
|
3717
|
+
}, {
|
|
3718
|
+
default: G(() => [
|
|
3719
|
+
h("div", k0, [
|
|
3720
|
+
(d(), j(_e(l.value)))
|
|
3721
|
+
])
|
|
3722
|
+
]),
|
|
3723
|
+
_: 1
|
|
3724
|
+
})
|
|
3725
|
+
], 8, b0)) : k("", !0);
|
|
3726
|
+
}
|
|
3727
|
+
}), E0 = (e) => {
|
|
3728
|
+
let t;
|
|
3729
|
+
switch (e) {
|
|
3730
|
+
case "top":
|
|
3731
|
+
case "bottom":
|
|
3732
|
+
t = "horizontal";
|
|
3733
|
+
break;
|
|
3734
|
+
case "left":
|
|
3735
|
+
case "right":
|
|
3736
|
+
t = "vertical";
|
|
3737
|
+
break;
|
|
3738
|
+
default:
|
|
3739
|
+
t = "horizontal";
|
|
3740
|
+
break;
|
|
3741
|
+
}
|
|
3742
|
+
return t;
|
|
3743
|
+
}, D0 = ["id"], T0 = ["aria-orientation"], x0 = ["id", "aria-label", "aria-selected", "onClick"], L0 = ["src"], O0 = ["title"], M0 = ["onClick"], _0 = { role: "tabpanel" }, B0 = {
|
|
3744
|
+
name: "TabView"
|
|
3745
|
+
}, aa = /* @__PURE__ */ A({
|
|
3746
|
+
...B0,
|
|
3747
|
+
props: {
|
|
3748
|
+
activeKey: {
|
|
3749
|
+
type: String,
|
|
3750
|
+
required: !0
|
|
3751
|
+
},
|
|
3752
|
+
enableHashRouting: Boolean,
|
|
3753
|
+
id: {
|
|
3754
|
+
type: String,
|
|
3755
|
+
default: ""
|
|
3756
|
+
},
|
|
3757
|
+
interceptTabChange: Boolean,
|
|
3758
|
+
interceptTabClose: Boolean,
|
|
3759
|
+
lazy: {
|
|
3760
|
+
default: !0,
|
|
3761
|
+
type: Boolean
|
|
3762
|
+
},
|
|
3763
|
+
persistState: {
|
|
3764
|
+
type: Boolean,
|
|
3765
|
+
default: !0
|
|
3766
|
+
},
|
|
3767
|
+
persistStateStorage: {
|
|
3768
|
+
type: String,
|
|
3769
|
+
default: "localStorage"
|
|
3770
|
+
},
|
|
3771
|
+
position: {
|
|
3772
|
+
type: String,
|
|
3773
|
+
default: "top",
|
|
3774
|
+
validator: (e) => ["top", "bottom", "left", "right"].includes(e)
|
|
3775
|
+
},
|
|
3776
|
+
tabs: {
|
|
3777
|
+
type: Array,
|
|
3778
|
+
required: !0
|
|
3779
|
+
},
|
|
3780
|
+
visibleTabs: {
|
|
3781
|
+
default: () => [],
|
|
3782
|
+
type: Array
|
|
3783
|
+
}
|
|
3784
|
+
},
|
|
3785
|
+
emits: [
|
|
3786
|
+
"beforeTabChange",
|
|
3787
|
+
"beforeTabClose",
|
|
3788
|
+
"update:activeKey",
|
|
3789
|
+
"update:visibleTabs"
|
|
3790
|
+
],
|
|
3791
|
+
setup(e, { expose: t, emit: n }) {
|
|
3792
|
+
const o = e, i = n, a = Se(), l = _(o.activeKey), r = _(!1), s = _(
|
|
3793
|
+
o.visibleTabs?.length ? o.visibleTabs : o.tabs.map((g) => g.key)
|
|
3794
|
+
), u = Y(() => c.value.find((g) => g.key === l.value)?.children || $.value.find(
|
|
3795
|
+
(g) => typeof g == "object" && g !== null && "props" in g && g.props?.key === l.value
|
|
3796
|
+
)), f = Y(() => E0(o.position)), c = Y(
|
|
3797
|
+
() => s.value.map((g) => o.tabs.find((S) => S.key === g)).filter((g) => g !== void 0)
|
|
3798
|
+
), v = Y(() => Ko(o.persistStateStorage)), $ = Y(() => (a?.default?.() ?? []).flatMap((S) => Array.isArray(S?.children) && !S?.props?.key ? S.children.filter(
|
|
3799
|
+
(y) => typeof y == "object" && y !== null && "props" in y && y.props?.key
|
|
3800
|
+
) : S?.props?.key ? [S] : []));
|
|
3801
|
+
yt(() => {
|
|
3802
|
+
if (o.persistState && o.id) {
|
|
3803
|
+
const g = v.value.getItem(o.id);
|
|
3804
|
+
if (g) {
|
|
3805
|
+
const S = JSON.parse(g);
|
|
3806
|
+
l.value = S.activeTab || o.activeKey, S.visibleTabs && (s.value = S.visibleTabs);
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
o.enableHashRouting && (C(), window.addEventListener("hashchange", C)), r.value = !0;
|
|
3810
|
+
}), Ve(
|
|
3811
|
+
() => o.visibleTabs,
|
|
3812
|
+
(g) => {
|
|
3813
|
+
r.value && (s.value = [...g]);
|
|
3814
|
+
}
|
|
3815
|
+
), Ve(
|
|
3816
|
+
() => o.activeKey,
|
|
3817
|
+
(g) => {
|
|
3818
|
+
r.value && b(g);
|
|
3819
|
+
}
|
|
3820
|
+
), Ve([s, l], () => {
|
|
3821
|
+
o.id && o.persistState && v.value.setItem(
|
|
3822
|
+
o.id,
|
|
3823
|
+
JSON.stringify({
|
|
3824
|
+
activeTab: l.value,
|
|
3825
|
+
visibleTabs: s.value
|
|
3826
|
+
})
|
|
3827
|
+
);
|
|
3828
|
+
});
|
|
3829
|
+
const w = (g) => l.value === g, M = (g) => {
|
|
3830
|
+
const S = s.value.findIndex((J) => J === g), y = s.value.filter((J) => J !== g);
|
|
3831
|
+
let F = "";
|
|
3832
|
+
S > 0 ? F = y[S - 1] : F = y[0], y.includes(l.value) || b(F), s.value = y, i("update:visibleTabs", y);
|
|
3833
|
+
}, E = (g) => {
|
|
3834
|
+
if (!o.interceptTabClose) {
|
|
3835
|
+
M(g);
|
|
3836
|
+
return;
|
|
3837
|
+
}
|
|
3838
|
+
i("beforeTabClose", g);
|
|
3839
|
+
}, D = (g) => {
|
|
3840
|
+
if (!w(g)) {
|
|
3841
|
+
if (!o.interceptTabChange) {
|
|
3842
|
+
b(g);
|
|
3843
|
+
return;
|
|
3844
|
+
}
|
|
3845
|
+
i("beforeTabChange", g);
|
|
3846
|
+
}
|
|
3847
|
+
}, b = (g) => {
|
|
3848
|
+
if (l.value = g, r.value) {
|
|
3849
|
+
const { pathname: S, search: y } = window.location, F = o.enableHashRouting ? `${S}${y}#${l.value}` : `${S}${y}`;
|
|
3850
|
+
history.replaceState(null, "", F);
|
|
3851
|
+
}
|
|
3852
|
+
i("update:activeKey", g);
|
|
3853
|
+
}, C = () => {
|
|
3854
|
+
const g = window.location.hash?.split("#").pop();
|
|
3855
|
+
!g || g?.includes("/") || (r.value || document.getElementById(g)?.scrollIntoView({ behavior: "smooth" }), Je(() => {
|
|
3856
|
+
g && g !== l.value && s.value.includes(g) && b(g);
|
|
3857
|
+
}));
|
|
3858
|
+
};
|
|
3859
|
+
return t({
|
|
3860
|
+
closeTab: M,
|
|
3861
|
+
setActiveTab: b
|
|
3862
|
+
}), (g, S) => (d(), p("div", {
|
|
3863
|
+
id: e.id,
|
|
3864
|
+
class: N(["tabbed-panel", e.position])
|
|
3865
|
+
}, [
|
|
3866
|
+
h("div", {
|
|
3867
|
+
"aria-orientation": f.value,
|
|
3868
|
+
role: "tablist"
|
|
3869
|
+
}, [
|
|
3870
|
+
(d(!0), p(q, null, se(c.value, (y, F) => (d(), p("button", {
|
|
3871
|
+
id: y.key,
|
|
3872
|
+
key: F,
|
|
3873
|
+
"aria-label": y.label,
|
|
3874
|
+
"aria-selected": w(y.key),
|
|
3875
|
+
class: N({ active: w(y.key) }),
|
|
3876
|
+
role: "tab",
|
|
3877
|
+
tabindex: "0",
|
|
3878
|
+
onClick: (J) => D(y.key)
|
|
3879
|
+
}, [
|
|
3880
|
+
y?.icon ? (d(), p("img", {
|
|
3881
|
+
key: 0,
|
|
3882
|
+
src: y?.icon,
|
|
3883
|
+
class: "icon"
|
|
3884
|
+
}, null, 8, L0)) : k("", !0),
|
|
3885
|
+
h("span", {
|
|
3886
|
+
title: y.label
|
|
3887
|
+
}, O(y.label), 9, O0),
|
|
3888
|
+
y.closable ? (d(), p("svg", {
|
|
3889
|
+
key: 1,
|
|
3890
|
+
height: "24",
|
|
3891
|
+
viewBox: "0 0 24 24",
|
|
3892
|
+
width: "24",
|
|
3893
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3894
|
+
onClick: Zn((J) => E(y.key), ["stop"])
|
|
3895
|
+
}, S[0] || (S[0] = [
|
|
3896
|
+
h("path", {
|
|
3897
|
+
d: "m13.06 12l4.42-4.42a.75.75 0 1 0-1.06-1.06L12 10.94L7.58 6.52a.75.75 0 0 0-1.06 1.06L10.94 12l-4.42 4.42a.75.75 0 0 0 0 1.06a.75.75 0 0 0 1.06 0L12 13.06l4.42 4.42a.75.75 0 0 0 1.06 0a.75.75 0 0 0 0-1.06Z",
|
|
3898
|
+
fill: "currentColor"
|
|
3899
|
+
}, null, -1)
|
|
3900
|
+
]), 8, M0)) : k("", !0)
|
|
3901
|
+
], 10, x0))), 128))
|
|
3902
|
+
], 8, T0),
|
|
3903
|
+
h("div", _0, [
|
|
3904
|
+
typeof u.value == "string" ? (d(), p(q, { key: 0 }, [
|
|
3905
|
+
Q(O(u.value), 1)
|
|
3906
|
+
], 64)) : (d(), p(q, { key: 1 }, [
|
|
3907
|
+
e.lazy ? (d(), p(q, { key: 1 }, [
|
|
3908
|
+
u.value ? (d(), j(_e(u.value), { key: 0 })) : k("", !0)
|
|
3909
|
+
], 64)) : (d(!0), p(q, { key: 0 }, se($.value, (y, F) => bt((d(), j(_e(y), {
|
|
3910
|
+
key: `slot-component-${F}`
|
|
3911
|
+
})), [
|
|
3912
|
+
[Ct, y === u.value]
|
|
3913
|
+
])), 128))
|
|
3914
|
+
], 64))
|
|
3915
|
+
])
|
|
3916
|
+
], 10, D0));
|
|
3917
|
+
}
|
|
3918
|
+
}), I0 = ["aria-label"], P0 = {
|
|
3919
|
+
name: "Tooltip"
|
|
3920
|
+
}, la = /* @__PURE__ */ A({
|
|
3921
|
+
...P0,
|
|
3922
|
+
props: {
|
|
3923
|
+
ariaLabel: {
|
|
3924
|
+
default: "tooltip",
|
|
3925
|
+
type: String
|
|
3926
|
+
},
|
|
3927
|
+
clickable: {
|
|
3928
|
+
type: Boolean,
|
|
3929
|
+
default: !1
|
|
3930
|
+
},
|
|
3931
|
+
delay: {
|
|
3932
|
+
type: Number,
|
|
3933
|
+
default: 100
|
|
3934
|
+
},
|
|
3935
|
+
offset: {
|
|
3936
|
+
default: 10,
|
|
3937
|
+
type: Number
|
|
3938
|
+
},
|
|
3939
|
+
position: {
|
|
3940
|
+
default: void 0,
|
|
3941
|
+
type: String,
|
|
3942
|
+
validator(e) {
|
|
3943
|
+
return ["top", "bottom", "left", "right"].includes(e);
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3946
|
+
},
|
|
3947
|
+
setup(e) {
|
|
3948
|
+
const t = e, n = _(null), o = _(null), i = _(null), a = _(!1), l = _(), r = _({ top: "0", left: "0" }), s = _([]), u = _(!1), f = _(null), c = Se(), { width: v, height: $ } = Wt(), w = Y(() => !!c.content);
|
|
3949
|
+
vn(() => {
|
|
3950
|
+
window.removeEventListener("resize", D), s.value.forEach(({ element: C, listener: g }) => {
|
|
3951
|
+
C.removeEventListener("scroll", g);
|
|
3952
|
+
}), s.value = [];
|
|
3953
|
+
});
|
|
3954
|
+
const M = () => {
|
|
3955
|
+
w.value && (f.value && clearTimeout(f.value), f.value = setTimeout(() => {
|
|
3956
|
+
a.value = !0, Je(() => b());
|
|
3957
|
+
}, t.delay));
|
|
3958
|
+
}, E = () => {
|
|
3959
|
+
w.value && t.clickable && (u.value = !u.value), u.value && Je(() => {
|
|
3960
|
+
b();
|
|
3961
|
+
});
|
|
3962
|
+
}, D = () => {
|
|
3963
|
+
f.value && clearTimeout(f.value), u.value || (a.value = !1);
|
|
3964
|
+
}, b = () => {
|
|
3965
|
+
if (!i.value || !o.value)
|
|
3966
|
+
return;
|
|
3967
|
+
const C = i.value.getBoundingClientRect(), g = o.value.getBoundingClientRect();
|
|
3968
|
+
let S = 0, y = 0;
|
|
3969
|
+
const F = t.position || wn(C), J = C.top - g.height - t.offset >= 0, U = $.value - (C.bottom + g.height + t.offset) >= 0, ce = C.left + C.width / 2 - g.width / 2, ne = C.top + C.height / 2 - g.height / 2;
|
|
3970
|
+
switch (F) {
|
|
3971
|
+
case "top":
|
|
3972
|
+
S = J ? C.top - g.height - t.offset : C.bottom + t.offset, y = ce;
|
|
3973
|
+
break;
|
|
3974
|
+
case "bottom":
|
|
3975
|
+
S = U ? C.bottom + t.offset : C.top - g.height - t.offset, y = ce;
|
|
3976
|
+
break;
|
|
3977
|
+
case "left":
|
|
3978
|
+
y = C.left - g.width - t.offset, S = ne;
|
|
3979
|
+
break;
|
|
3980
|
+
case "right":
|
|
3981
|
+
y = C.left + C.width + t.offset, S = ne;
|
|
3982
|
+
break;
|
|
3983
|
+
}
|
|
3984
|
+
const me = $.value - (S + g.height), ue = S;
|
|
3985
|
+
if (a.value = ue > 0 && me > 0, F === "right" || F === "left")
|
|
3986
|
+
y = Math.max(0, y);
|
|
3987
|
+
else {
|
|
3988
|
+
y + g.width > v.value && (y = v.value - g.width), y = Math.max(0, y);
|
|
3989
|
+
const ve = $.value - g.height;
|
|
3990
|
+
S = Math.min(Math.max(S, 0), ve);
|
|
3991
|
+
}
|
|
3992
|
+
r.value = {
|
|
3993
|
+
top: `${S}px`,
|
|
3994
|
+
left: `${y}px`
|
|
3995
|
+
}, l.value = F;
|
|
3996
|
+
};
|
|
3997
|
+
return yt(() => {
|
|
3998
|
+
window.addEventListener("resize", D), n.value && Sn(n.value).forEach((g) => {
|
|
3999
|
+
const S = () => {
|
|
4000
|
+
u.value = !1, D();
|
|
4001
|
+
};
|
|
4002
|
+
g.addEventListener("scroll", S), s.value.push({ element: g, listener: S });
|
|
4003
|
+
});
|
|
4004
|
+
}), (C, g) => (d(), p("div", {
|
|
4005
|
+
ref_key: "dzangolabVueUITooltip",
|
|
4006
|
+
ref: n,
|
|
4007
|
+
"aria-label": e.ariaLabel,
|
|
4008
|
+
class: "tooltip-container",
|
|
4009
|
+
onMouseenter: M,
|
|
4010
|
+
onMouseleave: D,
|
|
4011
|
+
onClick: E
|
|
4012
|
+
}, [
|
|
4013
|
+
h("div", {
|
|
4014
|
+
ref_key: "dzangolabVueUITooltipTrigger",
|
|
4015
|
+
ref: i,
|
|
4016
|
+
class: N([{ clickable: e.clickable }, "tooltip-trigger"])
|
|
4017
|
+
}, [
|
|
4018
|
+
I(C.$slots, "default")
|
|
4019
|
+
], 2),
|
|
4020
|
+
a.value ? (d(), p("div", {
|
|
4021
|
+
key: 0,
|
|
4022
|
+
ref_key: "dzangolabVueUITooltipContent",
|
|
4023
|
+
ref: o,
|
|
4024
|
+
class: N(["tooltip-content", l.value]),
|
|
4025
|
+
style: Ne(r.value)
|
|
4026
|
+
}, [
|
|
4027
|
+
I(C.$slots, "content")
|
|
4028
|
+
], 6)) : k("", !0)
|
|
4029
|
+
], 40, I0));
|
|
4030
|
+
}
|
|
4031
|
+
}), A0 = ["aria-label", "href", "data-youtube-video-token"], N0 = ["src", "alt", "data-aspect-ratio"], F0 = ["href"], V0 = {
|
|
4032
|
+
name: "YoutubeFacade"
|
|
4033
|
+
}, ra = /* @__PURE__ */ A({
|
|
4034
|
+
...V0,
|
|
4035
|
+
props: {
|
|
4036
|
+
alt: {
|
|
4037
|
+
default: null,
|
|
4038
|
+
required: !1,
|
|
4039
|
+
type: String
|
|
4040
|
+
},
|
|
4041
|
+
aspectRatio: {
|
|
4042
|
+
default: "16/9",
|
|
4043
|
+
required: !1,
|
|
4044
|
+
type: String
|
|
4045
|
+
},
|
|
4046
|
+
imageSource: {
|
|
4047
|
+
default: null,
|
|
4048
|
+
required: !1,
|
|
4049
|
+
type: String
|
|
4050
|
+
},
|
|
4051
|
+
videoLink: {
|
|
4052
|
+
required: !0,
|
|
4053
|
+
type: String
|
|
4054
|
+
},
|
|
4055
|
+
videoToken: {
|
|
4056
|
+
required: !0,
|
|
4057
|
+
type: String
|
|
4058
|
+
}
|
|
4059
|
+
},
|
|
4060
|
+
setup(e) {
|
|
4061
|
+
const t = e, n = (i) => {
|
|
4062
|
+
i.preventDefault(), i.stopPropagation();
|
|
4063
|
+
const a = i.currentTarget, l = a.firstElementChild, r = Object.assign(document.createElement("iframe"), {
|
|
4064
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
4065
|
+
className: "videoEmbed",
|
|
4066
|
+
frameborder: "0",
|
|
4067
|
+
src: "https://www.youtube.com/embed/" + a.dataset.youtubeVideoToken + "?autoplay=1",
|
|
4068
|
+
title: l.alt
|
|
4069
|
+
});
|
|
4070
|
+
l.dataset.aspectRatio && (r.style.aspectRatio = l.dataset.aspectRatio);
|
|
4071
|
+
const s = a.parentNode;
|
|
4072
|
+
s && s.replaceChild(r, a);
|
|
4073
|
+
}, o = Y(() => t.imageSource || `https://img.youtube.com/vi/${t.videoToken}/maxresdefault.jpg`);
|
|
4074
|
+
return (i, a) => (d(), p("div", {
|
|
4075
|
+
class: "youtube-facade",
|
|
4076
|
+
style: Ne(`background-image: url(${o.value})`)
|
|
4077
|
+
}, [
|
|
4078
|
+
h("div", {
|
|
4079
|
+
style: Ne(`aspect-ratio: ${e.aspectRatio}`)
|
|
4080
|
+
}, [
|
|
4081
|
+
h("a", {
|
|
4082
|
+
"aria-label": (e.alt ?? "youtube") + " video",
|
|
4083
|
+
href: e.videoLink,
|
|
4084
|
+
"data-youtube-video-token": e.videoToken,
|
|
4085
|
+
rel: "noreferrer",
|
|
4086
|
+
target: "_blank",
|
|
4087
|
+
style: Ne(`aspect-ratio: ${e.aspectRatio}`),
|
|
4088
|
+
onClick: n
|
|
4089
|
+
}, [
|
|
4090
|
+
h("img", {
|
|
4091
|
+
src: o.value,
|
|
4092
|
+
alt: e.alt,
|
|
4093
|
+
"data-aspect-ratio": e.aspectRatio,
|
|
4094
|
+
style: Ne(`aspect-ratio: ${e.aspectRatio}`)
|
|
4095
|
+
}, null, 12, N0)
|
|
4096
|
+
], 12, A0),
|
|
4097
|
+
h("a", {
|
|
4098
|
+
href: e.videoLink,
|
|
4099
|
+
rel: "noreferrer",
|
|
4100
|
+
target: "_blank"
|
|
4101
|
+
}, a[0] || (a[0] = [
|
|
4102
|
+
Q(" Watch On "),
|
|
4103
|
+
h("b", null, "YouTube", -1)
|
|
4104
|
+
]), 8, F0)
|
|
4105
|
+
], 4)
|
|
4106
|
+
], 4));
|
|
4107
|
+
}
|
|
4108
|
+
}), sa = {
|
|
4109
|
+
install: (e) => {
|
|
4110
|
+
e.component("LoadingButton", $o), e.component("LoadingIcon", wt), e.component("Page", d2);
|
|
4111
|
+
}
|
|
4112
|
+
};
|
|
4113
|
+
export {
|
|
4114
|
+
R0 as Accordion,
|
|
4115
|
+
to as BadgeComponent,
|
|
4116
|
+
he as ButtonElement,
|
|
4117
|
+
mo as Card,
|
|
4118
|
+
tn as ConfirmationModal,
|
|
4119
|
+
H0 as Data,
|
|
4120
|
+
U0 as DebouncedInput,
|
|
4121
|
+
G0 as Divider,
|
|
4122
|
+
q0 as Dropdown,
|
|
4123
|
+
W0 as Errors,
|
|
4124
|
+
ta as FacebookSignInButton,
|
|
4125
|
+
Bi as FileCard,
|
|
4126
|
+
Y0 as FilesList,
|
|
4127
|
+
na as GoogleSignInButton,
|
|
4128
|
+
X0 as GridContainer,
|
|
4129
|
+
$o as LoadingButton,
|
|
4130
|
+
wt as LoadingIcon,
|
|
4131
|
+
Zi as LoadingPage,
|
|
4132
|
+
K0 as Message,
|
|
4133
|
+
Q0 as Modal,
|
|
4134
|
+
d2 as Page,
|
|
4135
|
+
ti as Popup,
|
|
4136
|
+
J0 as ResponsiveMenu,
|
|
4137
|
+
ea as SortableList,
|
|
4138
|
+
oa as Stepper,
|
|
4139
|
+
Z0 as SubPane,
|
|
4140
|
+
aa as TabView,
|
|
4141
|
+
ia as TabbedPanel,
|
|
4142
|
+
la as Tooltip,
|
|
4143
|
+
ra as YoutubeFacade,
|
|
4144
|
+
sa as default,
|
|
4145
|
+
Uo as formatDate,
|
|
4146
|
+
Xo as formatDateTime,
|
|
4147
|
+
wn as getBestPosition,
|
|
4148
|
+
Sn as getScrollableParents,
|
|
4149
|
+
Ko as getStorage,
|
|
4150
|
+
Qo as useDebouncedValue
|
|
4151
|
+
};
|