vuefinder 1.2.5 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/{de-fb9aa6a3.js → de-81b457a7.js} +1 -1
- package/dist/hi-a0031fe7.js +71 -0
- package/dist/style.css +2 -2
- package/dist/sv-316febc7.js +71 -0
- package/dist/vuefinder.js +723 -707
- package/dist/vuefinder.umd.cjs +149 -15
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as L, watch as Rt, inject as P, openBlock as w, createElementBlock as C, createElementVNode as f, unref as x, normalizeClass as ce, createTextVNode as se, toDisplayString as E, createCommentVNode as Z, withDirectives as ve, vShow as mt, createVNode as Ce, TransitionGroup as
|
|
1
|
+
import { ref as L, watch as Rt, inject as P, openBlock as w, createElementBlock as C, createElementVNode as f, unref as x, normalizeClass as ce, createTextVNode as se, toDisplayString as E, createCommentVNode as Z, withDirectives as ve, vShow as mt, createVNode as Ce, TransitionGroup as Oo, withCtx as F, Fragment as le, renderList as we, reactive as Lt, onMounted as Me, onUpdated as Po, withModifiers as We, nextTick as Vt, isRef as as, vModelSelect as jr, createStaticVNode as No, customRef as jo, withKeys as ot, vModelText as nt, normalizeStyle as ls, provide as je, computed as Ro, createBlock as q, resolveDynamicComponent as Vo, renderSlot as Jt } from "vue";
|
|
2
2
|
import dt from "plupload";
|
|
3
3
|
var is;
|
|
4
4
|
const Ot = (is = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : is.getAttribute("content"), Pt = (r, { method: e = "get", params: s = {}, json: o = !0, signal: a = null }) => {
|
|
@@ -14,7 +14,7 @@ const Ot = (is = document.querySelector('meta[name="csrf-token"]')) == null ? vo
|
|
|
14
14
|
}
|
|
15
15
|
return fetch(r, i).then((d) => d.ok ? o ? d.json() : d.text() : d.json().then(Promise.reject.bind(Promise)));
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function Bo(r) {
|
|
18
18
|
return { all: r = r || /* @__PURE__ */ new Map(), on: function(e, s) {
|
|
19
19
|
var o = r.get(e);
|
|
20
20
|
o ? o.push(s) : r.set(e, [s]);
|
|
@@ -52,10 +52,10 @@ function Ae() {
|
|
|
52
52
|
}
|
|
53
53
|
return { apiUrl: Rr, setApiUrl: r };
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const zo = { class: "border-neutral-300 flex justify-between items-center py-1 text-sm" }, Ho = {
|
|
56
56
|
key: 0,
|
|
57
57
|
class: "flex text-center"
|
|
58
|
-
},
|
|
58
|
+
}, Uo = ["aria-label"], Ko = /* @__PURE__ */ f("svg", {
|
|
59
59
|
xmlns: "http://www.w3.org/2000/svg",
|
|
60
60
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
|
|
61
61
|
fill: "none",
|
|
@@ -68,9 +68,9 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
68
68
|
"stroke-linejoin": "round",
|
|
69
69
|
d: "M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"
|
|
70
70
|
})
|
|
71
|
-
], -1),
|
|
72
|
-
|
|
73
|
-
],
|
|
71
|
+
], -1), Yo = [
|
|
72
|
+
Ko
|
|
73
|
+
], Wo = ["aria-label"], Xo = /* @__PURE__ */ f("svg", {
|
|
74
74
|
xmlns: "http://www.w3.org/2000/svg",
|
|
75
75
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
|
|
76
76
|
fill: "none",
|
|
@@ -83,21 +83,21 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
83
83
|
"stroke-linejoin": "round",
|
|
84
84
|
d: "M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"
|
|
85
85
|
})
|
|
86
|
-
], -1),
|
|
87
|
-
|
|
88
|
-
],
|
|
86
|
+
], -1), Zo = [
|
|
87
|
+
Xo
|
|
88
|
+
], Fo = ["aria-label"], qo = /* @__PURE__ */ f("path", {
|
|
89
89
|
"stroke-linecap": "round",
|
|
90
90
|
"stroke-linejoin": "round",
|
|
91
91
|
d: "M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"
|
|
92
|
-
}, null, -1),
|
|
93
|
-
|
|
94
|
-
],
|
|
92
|
+
}, null, -1), Go = [
|
|
93
|
+
qo
|
|
94
|
+
], Jo = ["aria-label"], Qo = /* @__PURE__ */ f("path", {
|
|
95
95
|
"stroke-linecap": "round",
|
|
96
96
|
"stroke-linejoin": "round",
|
|
97
97
|
d: "M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
|
|
98
|
-
}, null, -1),
|
|
99
|
-
|
|
100
|
-
],
|
|
98
|
+
}, null, -1), en = [
|
|
99
|
+
Qo
|
|
100
|
+
], tn = ["aria-label"], rn = /* @__PURE__ */ f("svg", {
|
|
101
101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
102
102
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
|
|
103
103
|
fill: "none",
|
|
@@ -110,79 +110,79 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
110
110
|
"stroke-linejoin": "round",
|
|
111
111
|
d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"
|
|
112
112
|
})
|
|
113
|
-
], -1),
|
|
114
|
-
|
|
115
|
-
],
|
|
113
|
+
], -1), sn = [
|
|
114
|
+
rn
|
|
115
|
+
], on = ["aria-label"], nn = /* @__PURE__ */ f("path", {
|
|
116
116
|
"stroke-linecap": "round",
|
|
117
117
|
"stroke-linejoin": "round",
|
|
118
118
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
119
|
-
}, null, -1),
|
|
120
|
-
|
|
121
|
-
],
|
|
119
|
+
}, null, -1), an = [
|
|
120
|
+
nn
|
|
121
|
+
], ln = ["aria-label"], cn = /* @__PURE__ */ f("path", {
|
|
122
122
|
"stroke-linecap": "round",
|
|
123
123
|
"stroke-linejoin": "round",
|
|
124
124
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
125
|
-
}, null, -1),
|
|
126
|
-
|
|
127
|
-
],
|
|
125
|
+
}, null, -1), un = [
|
|
126
|
+
cn
|
|
127
|
+
], dn = {
|
|
128
128
|
key: 1,
|
|
129
129
|
class: "flex text-center"
|
|
130
|
-
},
|
|
130
|
+
}, hn = { class: "pl-2" }, fn = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, pn = {
|
|
131
131
|
key: 0,
|
|
132
132
|
class: "animate-spin p-0.5 h-5 w-5 text-white ml-auto",
|
|
133
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
134
|
fill: "none",
|
|
135
135
|
viewBox: "0 0 24 24"
|
|
136
|
-
},
|
|
136
|
+
}, gn = /* @__PURE__ */ f("circle", {
|
|
137
137
|
class: "opacity-25 stroke-blue-900 dark:stroke-blue-100",
|
|
138
138
|
cx: "12",
|
|
139
139
|
cy: "12",
|
|
140
140
|
r: "10",
|
|
141
141
|
stroke: "currentColor",
|
|
142
142
|
"stroke-width": "4"
|
|
143
|
-
}, null, -1),
|
|
143
|
+
}, null, -1), mn = /* @__PURE__ */ f("path", {
|
|
144
144
|
class: "opacity-75",
|
|
145
145
|
fill: "currentColor",
|
|
146
146
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
147
|
-
}, null, -1),
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
],
|
|
147
|
+
}, null, -1), vn = [
|
|
148
|
+
gn,
|
|
149
|
+
mn
|
|
150
|
+
], bn = { class: "flex text-center items-center justify-end" }, yn = ["aria-label"], Sn = /* @__PURE__ */ f("path", {
|
|
151
151
|
"stroke-linecap": "round",
|
|
152
152
|
"stroke-linejoin": "round",
|
|
153
153
|
d: "M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"
|
|
154
|
-
}, null, -1),
|
|
155
|
-
|
|
156
|
-
],
|
|
154
|
+
}, null, -1), wn = [
|
|
155
|
+
Sn
|
|
156
|
+
], _n = ["aria-label"], xn = {
|
|
157
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
158
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
|
|
159
159
|
fill: "none",
|
|
160
160
|
viewBox: "0 0 24 24",
|
|
161
161
|
stroke: "none",
|
|
162
162
|
"stroke-width": "1.5"
|
|
163
|
-
},
|
|
163
|
+
}, kn = {
|
|
164
164
|
key: 0,
|
|
165
165
|
"stroke-linecap": "round",
|
|
166
166
|
"stroke-linejoin": "round",
|
|
167
167
|
d: "M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"
|
|
168
|
-
},
|
|
168
|
+
}, Dn = {
|
|
169
169
|
key: 1,
|
|
170
170
|
"stroke-linecap": "round",
|
|
171
171
|
"stroke-linejoin": "round",
|
|
172
172
|
d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"
|
|
173
|
-
},
|
|
173
|
+
}, Cn = ["aria-label"], Mn = {
|
|
174
174
|
key: 0,
|
|
175
175
|
"stroke-linecap": "round",
|
|
176
176
|
"stroke-linejoin": "round",
|
|
177
177
|
d: "M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"
|
|
178
|
-
},
|
|
178
|
+
}, En = {
|
|
179
179
|
key: 1,
|
|
180
180
|
"stroke-linecap": "round",
|
|
181
181
|
"stroke-linejoin": "round",
|
|
182
182
|
d: "M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"
|
|
183
|
-
},
|
|
183
|
+
}, $n = {
|
|
184
184
|
name: "VFToolbar"
|
|
185
|
-
},
|
|
185
|
+
}, Tn = /* @__PURE__ */ Object.assign($n, {
|
|
186
186
|
props: {
|
|
187
187
|
data: Object
|
|
188
188
|
},
|
|
@@ -198,28 +198,28 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
198
198
|
g.value = T;
|
|
199
199
|
}), e.on("vf-view-toggle", (T) => {
|
|
200
200
|
a("viewport", T), d.value = T;
|
|
201
|
-
}), (T, k) => (w(), C("div",
|
|
202
|
-
v.value.length ? (w(), C("div",
|
|
203
|
-
f("div",
|
|
201
|
+
}), (T, k) => (w(), C("div", zo, [
|
|
202
|
+
v.value.length ? (w(), C("div", dn, [
|
|
203
|
+
f("div", hn, [
|
|
204
204
|
se(E(x(i)("Search results for")) + " ", 1),
|
|
205
|
-
f("span",
|
|
205
|
+
f("span", fn, E(v.value), 1)
|
|
206
206
|
]),
|
|
207
|
-
b() ? (w(), C("svg",
|
|
208
|
-
])) : (w(), C("div",
|
|
207
|
+
b() ? (w(), C("svg", pn, vn)) : Z("", !0)
|
|
208
|
+
])) : (w(), C("div", Ho, [
|
|
209
209
|
f("div", {
|
|
210
210
|
class: "mx-1.5",
|
|
211
211
|
"aria-label": x(i)("New Folder"),
|
|
212
212
|
"data-microtip-position": "bottom-right",
|
|
213
213
|
role: "tooltip",
|
|
214
214
|
onClick: k[0] || (k[0] = (I) => x(e).emit("vf-modal-show", { type: "new-folder", items: g.value }))
|
|
215
|
-
},
|
|
215
|
+
}, Yo, 8, Uo),
|
|
216
216
|
f("div", {
|
|
217
217
|
class: "mx-1.5",
|
|
218
218
|
"aria-label": x(i)("New File"),
|
|
219
219
|
"data-microtip-position": "bottom",
|
|
220
220
|
role: "tooltip",
|
|
221
221
|
onClick: k[1] || (k[1] = (I) => x(e).emit("vf-modal-show", { type: "new-file", items: g.value }))
|
|
222
|
-
},
|
|
222
|
+
}, Zo, 8, Wo),
|
|
223
223
|
f("div", {
|
|
224
224
|
class: "mx-1.5",
|
|
225
225
|
"aria-label": x(i)("Rename"),
|
|
@@ -234,8 +234,8 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
234
234
|
viewBox: "0 0 24 24",
|
|
235
235
|
stroke: "none",
|
|
236
236
|
"stroke-width": "1.5"
|
|
237
|
-
},
|
|
238
|
-
], 8,
|
|
237
|
+
}, Go, 2))
|
|
238
|
+
], 8, Fo),
|
|
239
239
|
f("div", {
|
|
240
240
|
class: "mx-1.5",
|
|
241
241
|
"aria-label": x(i)("Delete"),
|
|
@@ -250,15 +250,15 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
250
250
|
viewBox: "0 0 24 24",
|
|
251
251
|
stroke: "none",
|
|
252
252
|
"stroke-width": "1.5"
|
|
253
|
-
},
|
|
254
|
-
], 8,
|
|
253
|
+
}, en, 2))
|
|
254
|
+
], 8, Jo),
|
|
255
255
|
f("div", {
|
|
256
256
|
class: "mx-1.5",
|
|
257
257
|
"aria-label": x(i)("Upload"),
|
|
258
258
|
"data-microtip-position": "bottom",
|
|
259
259
|
role: "tooltip",
|
|
260
260
|
onClick: k[4] || (k[4] = (I) => x(e).emit("vf-modal-show", { type: "upload", items: g.value }))
|
|
261
|
-
},
|
|
261
|
+
}, sn, 8, tn),
|
|
262
262
|
g.value.length == 1 && g.value[0].mime_type == "application/zip" ? (w(), C("div", {
|
|
263
263
|
key: 0,
|
|
264
264
|
class: "mx-1.5",
|
|
@@ -274,8 +274,8 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
274
274
|
viewBox: "0 0 24 24",
|
|
275
275
|
stroke: "none",
|
|
276
276
|
"stroke-width": "1.5"
|
|
277
|
-
},
|
|
278
|
-
], 8,
|
|
277
|
+
}, an, 2))
|
|
278
|
+
], 8, on)) : (w(), C("div", {
|
|
279
279
|
key: 1,
|
|
280
280
|
class: "mx-1.5",
|
|
281
281
|
"aria-label": x(i)("Archive"),
|
|
@@ -290,10 +290,10 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
290
290
|
viewBox: "0 0 24 24",
|
|
291
291
|
stroke: "none",
|
|
292
292
|
"stroke-width": "1.5"
|
|
293
|
-
},
|
|
294
|
-
], 8,
|
|
293
|
+
}, un, 2))
|
|
294
|
+
], 8, ln))
|
|
295
295
|
])),
|
|
296
|
-
f("div",
|
|
296
|
+
f("div", bn, [
|
|
297
297
|
ve(f("div", {
|
|
298
298
|
class: "mx-1.5",
|
|
299
299
|
"aria-label": x(i)("Dark Mode"),
|
|
@@ -307,8 +307,8 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
307
307
|
"stroke-linecap": "round",
|
|
308
308
|
"stroke-linejoin": "round",
|
|
309
309
|
class: "h-6 w-6 m-auto cursor-pointer stroke-sky-500 fill-sky-100 hover:stroke-sky-600 dark:stroke-gray-400 dark:fill-gray-400/20 dark:hover:stroke-gray-300"
|
|
310
|
-
},
|
|
311
|
-
], 8,
|
|
310
|
+
}, wn))
|
|
311
|
+
], 8, yn), [
|
|
312
312
|
[mt, !x(s)]
|
|
313
313
|
]),
|
|
314
314
|
f("div", {
|
|
@@ -318,10 +318,10 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
318
318
|
role: "tooltip",
|
|
319
319
|
onClick: S
|
|
320
320
|
}, [
|
|
321
|
-
(w(), C("svg",
|
|
322
|
-
l.value ? (w(), C("path",
|
|
321
|
+
(w(), C("svg", xn, [
|
|
322
|
+
l.value ? (w(), C("path", kn)) : (w(), C("path", Dn))
|
|
323
323
|
]))
|
|
324
|
-
], 8,
|
|
324
|
+
], 8, _n),
|
|
325
325
|
f("div", {
|
|
326
326
|
class: "mx-1.5",
|
|
327
327
|
"aria-label": x(i)("Change View"),
|
|
@@ -337,23 +337,23 @@ const Bo = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
337
337
|
stroke: "none",
|
|
338
338
|
"stroke-width": "1.5"
|
|
339
339
|
}, [
|
|
340
|
-
d.value == "grid" ? (w(), C("path",
|
|
341
|
-
d.value == "list" ? (w(), C("path",
|
|
340
|
+
d.value == "grid" ? (w(), C("path", Mn)) : Z("", !0),
|
|
341
|
+
d.value == "list" ? (w(), C("path", En)) : Z("", !0)
|
|
342
342
|
], 2))
|
|
343
|
-
], 8,
|
|
343
|
+
], 8, Cn)
|
|
344
344
|
])
|
|
345
345
|
]));
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
var
|
|
349
|
-
function
|
|
348
|
+
var In = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
349
|
+
function An(r) {
|
|
350
350
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
351
351
|
}
|
|
352
352
|
var cs = { exports: {} };
|
|
353
353
|
(function(r, e) {
|
|
354
354
|
(function(s, o) {
|
|
355
355
|
r.exports = o();
|
|
356
|
-
})(
|
|
356
|
+
})(In, function() {
|
|
357
357
|
function s(c, u) {
|
|
358
358
|
var t = c == null ? null : typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
|
|
359
359
|
if (t != null) {
|
|
@@ -691,7 +691,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
691
691
|
});
|
|
692
692
|
});
|
|
693
693
|
var n = function() {
|
|
694
|
-
return
|
|
694
|
+
return po(m, t);
|
|
695
695
|
};
|
|
696
696
|
return {
|
|
697
697
|
observer: m,
|
|
@@ -729,7 +729,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
729
729
|
return y ? (m.push(y), h++, t(m, h)) : m;
|
|
730
730
|
};
|
|
731
731
|
return u([c]);
|
|
732
|
-
},
|
|
732
|
+
}, ro = function(c, u) {
|
|
733
733
|
if (c instanceof Document)
|
|
734
734
|
return {
|
|
735
735
|
top: 0,
|
|
@@ -773,13 +773,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
773
773
|
} : m, h = [];
|
|
774
774
|
return u.top - n.y < t.top && h.push("top"), u.left - n.x < t.left && h.push("left"), u.bottom + n.y > t.bottom && h.push("bottom"), u.right + n.y > t.right && h.push("right"), /** @type {DSEdges} */
|
|
775
775
|
h;
|
|
776
|
-
},
|
|
776
|
+
}, so = function(c) {
|
|
777
777
|
var u = c.event;
|
|
778
778
|
return {
|
|
779
779
|
x: u.clientX,
|
|
780
780
|
y: u.clientY
|
|
781
781
|
};
|
|
782
|
-
},
|
|
782
|
+
}, oo = function(c) {
|
|
783
783
|
var u = c.scrollAmount, t = c.initialPointerPos, m = c.pointerPos, n = {};
|
|
784
784
|
return m.x > t.x - u.x ? (n.left = t.x - u.x, n.width = m.x - t.x + u.x) : (n.left = m.x, n.width = t.x - m.x - u.x), m.y > t.y - u.y ? (n.top = t.y - u.y, n.height = m.y - t.y + u.y) : (n.top = m.y, n.height = t.y - m.y - u.y), n;
|
|
785
785
|
}, Ir = function(u) {
|
|
@@ -803,7 +803,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
803
803
|
t.x = parseInt(B[4]) || 0, t.y = parseInt(B[5]) || 0;
|
|
804
804
|
}
|
|
805
805
|
return t;
|
|
806
|
-
},
|
|
806
|
+
}, no = function(u) {
|
|
807
807
|
var t = u.style.transform;
|
|
808
808
|
if (!t || t.indexOf("translate") < 0)
|
|
809
809
|
return Ir(u);
|
|
@@ -819,7 +819,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
return !m.x && !m.x ? Ir(u) : m;
|
|
822
|
-
},
|
|
822
|
+
}, io = function(u) {
|
|
823
823
|
var t = u.style, m = {
|
|
824
824
|
x: parseInt(t.left) || 0,
|
|
825
825
|
y: parseInt(t.top) || 0
|
|
@@ -832,9 +832,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
832
832
|
};
|
|
833
833
|
}
|
|
834
834
|
return m;
|
|
835
|
-
},
|
|
836
|
-
return u ?
|
|
837
|
-
},
|
|
835
|
+
}, ao = function(c, u) {
|
|
836
|
+
return u ? no(c) : io(c);
|
|
837
|
+
}, lo = function(c) {
|
|
838
838
|
var u = c.element, t = c.edges, m = c.elementRect, n = c.containerRect, h = c.elementPos, y = c.useTransform;
|
|
839
839
|
t.includes("top") && lt(u, {
|
|
840
840
|
y: h.y + n.top - m.top,
|
|
@@ -852,16 +852,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
852
852
|
}, Ar = function(c) {
|
|
853
853
|
var u = c.computedStyle, t = c.node, m = u.position, n = m === "absolute" || m === "relative" || m === "fixed";
|
|
854
854
|
!(t instanceof Document) && !n && (t.style.position = "relative");
|
|
855
|
-
},
|
|
855
|
+
}, co = function(c) {
|
|
856
856
|
var u = c.shiftKey, t = c.keyboardDragSpeed, m = c.zoom, n = c.key, h = c.dragKeys, y = c.scrollDiff, _ = c.canScroll, M = c.scrollCallback, B = {
|
|
857
857
|
x: 0,
|
|
858
858
|
y: 0
|
|
859
859
|
}, W = u ? t * 4 * m : t * m;
|
|
860
860
|
return h.left.includes(n) && (B.x = y.x || -W, !u && !y.x && _ && M(["left"], t)), h.right.includes(n) && (B.x = y.x || W, !u && !y.x && _ && M(["right"], t)), h.up.includes(n) && (B.y = y.y || -W, !u && !y.y && _ && M(["top"], t)), h.down.includes(n) && (B.y = y.y || W, !u && !y.y && _ && M(["bottom"], t)), B;
|
|
861
|
-
},
|
|
861
|
+
}, uo = function(c) {
|
|
862
862
|
var u = c.element, t = c.force, m = c.multiSelectionToggle, n = c.SelectedSet, h = c.hoverClassName;
|
|
863
863
|
u.classList.contains(h) && !t || (n.has(u) ? m && n.delete(u) : n.add(u), u.classList.add(h));
|
|
864
|
-
},
|
|
864
|
+
}, ho = function(c) {
|
|
865
865
|
var u = c.element, t = c.force, m = c.SelectedSet, n = c.PrevSelectedSet, h = c.hoverClassName;
|
|
866
866
|
if (!u.classList.contains(h) && !t)
|
|
867
867
|
return !1;
|
|
@@ -888,7 +888,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
888
888
|
return u === "dragKeys" && h ? l({}, u, Object.assign(n, t)) : u === "dragKeys" && !h ? xe ? l({}, u, n) : {} : (u === "dropZones" && h && new Set(t.map(function(ke) {
|
|
889
889
|
return ke.id;
|
|
890
890
|
})).size !== t.length && console.warn('[DragSelect] UniqueConstraintsIssue: setting "dropZones" contains duplicate ids.'), h ? l({}, u, t) : xe ? l({}, u, n) : {});
|
|
891
|
-
},
|
|
891
|
+
}, fo = function(c, u) {
|
|
892
892
|
return a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({}, Y("area", c.area, u, document)), Y("selectables", c.selectables, u, null)), Y("autoScrollSpeed", c.autoScrollSpeed, u, 5)), Y("overflowTolerance", c.overflowTolerance, u, {
|
|
893
893
|
x: 25,
|
|
894
894
|
y: 25
|
|
@@ -914,13 +914,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
914
914
|
m.top < u.bottom && // 3.
|
|
915
915
|
m.bottom > u.top;
|
|
916
916
|
}, Lr = function(c) {
|
|
917
|
-
var u = c.element, t = c.posDirection, m = c.containerRect, n = c.useTransform, h =
|
|
917
|
+
var u = c.element, t = c.posDirection, m = c.containerRect, n = c.useTransform, h = ao(u, n), y = O(h, "+", t);
|
|
918
918
|
lt(u, y, n);
|
|
919
919
|
var _ = u.getBoundingClientRect(), M = Tr({
|
|
920
920
|
elementRect: _,
|
|
921
921
|
containerRect: m
|
|
922
922
|
});
|
|
923
|
-
|
|
923
|
+
lo({
|
|
924
924
|
element: u,
|
|
925
925
|
edges: M,
|
|
926
926
|
elementRect: _,
|
|
@@ -928,9 +928,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
928
928
|
elementPos: y,
|
|
929
929
|
useTransform: n
|
|
930
930
|
});
|
|
931
|
-
},
|
|
931
|
+
}, po = function(c, u) {
|
|
932
932
|
window.removeEventListener("resize", u), window.removeEventListener("scroll", u), c.disconnect();
|
|
933
|
-
},
|
|
933
|
+
}, go = function(c, u, t) {
|
|
934
934
|
if (u.length) {
|
|
935
935
|
var m = document && document.documentElement && document.documentElement.scrollTop && document.documentElement, n = c instanceof Document ? m || document.body : c, h = u.includes("top") && n.scrollTop > 0, y = u.includes("bottom") && n.scrollTop < n.scrollHeight, _ = u.includes("left") && n.scrollLeft > 0, M = u.includes("right") && n.scrollLeft < n.scrollWidth;
|
|
936
936
|
h && (n.scrollTop -= 1 * t), y && (n.scrollTop += 1 * t), _ && (n.scrollLeft -= 1 * t), M && (n.scrollLeft += 1 * t);
|
|
@@ -942,7 +942,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
942
942
|
} else
|
|
943
943
|
c.style.left = "".concat(u.x, "px"), c.style.top = "".concat(u.y, "px");
|
|
944
944
|
return c;
|
|
945
|
-
},
|
|
945
|
+
}, mo = function(c) {
|
|
946
946
|
for (var u = c.subscribe, t = c.publish, m = c.Interaction, n = c.SelectedSet, h = c.DropZones, y = {
|
|
947
947
|
"Selected:added": [{
|
|
948
948
|
name: "elementselect"
|
|
@@ -997,7 +997,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
997
997
|
return c ? !Array.isArray(c) && (c instanceof HTMLElement || c instanceof SVGElement) ? [c] : D(new Set(D(c))) : [];
|
|
998
998
|
}, Or = function(c, u) {
|
|
999
999
|
c.style.left = "".concat(u.left, "px"), c.style.top = "".concat(u.top, "px"), c.style.width = "".concat(u.width, "px"), c.style.height = "".concat(u.height, "px");
|
|
1000
|
-
},
|
|
1000
|
+
}, vo = /* @__PURE__ */ function() {
|
|
1001
1001
|
function c(u) {
|
|
1002
1002
|
var t = this, m = u.DS;
|
|
1003
1003
|
i(this, c), l(this, "DS", void 0), l(this, "_observers", void 0), l(this, "_node", void 0), l(this, "_parentNodes", void 0), l(this, "_computedStyle", void 0), l(this, "_computedBorder", void 0), l(this, "_rect", void 0), l(this, "setArea", function(n) {
|
|
@@ -1030,7 +1030,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1030
1030
|
scroll_directions: n,
|
|
1031
1031
|
scroll_multiplier: h
|
|
1032
1032
|
};
|
|
1033
|
-
t.DS.PubSub.publish("Area:scroll:pre", y),
|
|
1033
|
+
t.DS.PubSub.publish("Area:scroll:pre", y), go(t._node, n, h), t.DS.PubSub.publish("Area:scroll", y);
|
|
1034
1034
|
}), this.DS = m, this.setArea(this.DS.stores.SettingsStore.s.area), this.DS.PubSub.subscribe("Settings:updated:area", function(n) {
|
|
1035
1035
|
var h = n.settings;
|
|
1036
1036
|
t.setArea(h.area);
|
|
@@ -1078,7 +1078,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1078
1078
|
}, {
|
|
1079
1079
|
key: "rect",
|
|
1080
1080
|
get: function() {
|
|
1081
|
-
return this._rect ? this._rect : this._rect =
|
|
1081
|
+
return this._rect ? this._rect : this._rect = ro(this.HTMLNode, this.DS.stores.SettingsStore.s.zoom);
|
|
1082
1082
|
}
|
|
1083
1083
|
}, {
|
|
1084
1084
|
key: "parentNodes",
|
|
@@ -1086,7 +1086,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1086
1086
|
return this._parentNodes ? this._parentNodes : this._parentNodes = Er(this.HTMLNode);
|
|
1087
1087
|
}
|
|
1088
1088
|
}]), c;
|
|
1089
|
-
}(),
|
|
1089
|
+
}(), bo = /* @__PURE__ */ function() {
|
|
1090
1090
|
function c(u) {
|
|
1091
1091
|
var t = this, m = u.DS;
|
|
1092
1092
|
i(this, c), l(this, "_prevCursorPos", void 0), l(this, "_prevScrollPos", void 0), l(this, "_elements", []), l(this, "_dragKeys", void 0), l(this, "_dragKeysFlat", []), l(this, "_selectionRect", void 0), l(this, "assignDragkeys", function() {
|
|
@@ -1113,7 +1113,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1113
1113
|
isDraggingKeyboard: !0
|
|
1114
1114
|
};
|
|
1115
1115
|
t.DS.publish(["Interaction:start:pre", "Interaction:start"], M), t._elements = t.DS.getSelection(), t.DS.stores.SettingsStore.s.dragAsBlock && (t._selectionRect = $r(t._elements, t.DS.SelectableSet)), t.handleZIndex(!0);
|
|
1116
|
-
var B =
|
|
1116
|
+
var B = co({
|
|
1117
1117
|
shiftKey: t.DS.stores.KeyStore.currentValues.includes("shift"),
|
|
1118
1118
|
keyboardDragSpeed: t.DS.stores.SettingsStore.s.keyboardDragSpeed,
|
|
1119
1119
|
zoom: t.DS.stores.SettingsStore.s.zoom,
|
|
@@ -1193,7 +1193,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1193
1193
|
return this._prevScrollPos = t, m;
|
|
1194
1194
|
}
|
|
1195
1195
|
}]), c;
|
|
1196
|
-
}(),
|
|
1196
|
+
}(), yo = /* @__PURE__ */ function() {
|
|
1197
1197
|
function c(u) {
|
|
1198
1198
|
var t = this, m = u.DS, n = u.id, h = u.element, y = u.droppables;
|
|
1199
1199
|
i(this, c), l(this, "id", void 0), l(this, "element", void 0), l(this, "_droppables", void 0), l(this, "_rect", void 0), l(this, "_observers", void 0), l(this, "_timeout", void 0), l(this, "_itemsDropped", []), l(this, "_itemsInside", void 0), l(this, "setReadyClasses", function(_) {
|
|
@@ -1290,7 +1290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1290
1290
|
this._droppables = t;
|
|
1291
1291
|
}
|
|
1292
1292
|
}]), c;
|
|
1293
|
-
}(),
|
|
1293
|
+
}(), So = /* @__PURE__ */ g(
|
|
1294
1294
|
/**
|
|
1295
1295
|
* Get the drop zone by the zone element
|
|
1296
1296
|
* @type {Map<DSElement, DropZone>}
|
|
@@ -1323,7 +1323,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1323
1323
|
h && (t._zones && t._zones.forEach(function(y) {
|
|
1324
1324
|
return y.destroy();
|
|
1325
1325
|
}), t._zones = h.map(function(y) {
|
|
1326
|
-
return new
|
|
1326
|
+
return new yo(a({
|
|
1327
1327
|
DS: t.DS
|
|
1328
1328
|
}, y));
|
|
1329
1329
|
}), t._zones.forEach(function(y) {
|
|
@@ -1391,7 +1391,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1391
1391
|
* @param {Object} obj
|
|
1392
1392
|
* @param {DSDropZone[]} [obj.dropZones]
|
|
1393
1393
|
*/
|
|
1394
|
-
),
|
|
1394
|
+
), wo = /* @__PURE__ */ function() {
|
|
1395
1395
|
function c(u) {
|
|
1396
1396
|
var t = this, m = u.DS;
|
|
1397
1397
|
i(this, c), l(this, "isInteracting", void 0), l(this, "isDragging", void 0), l(this, "init", function() {
|
|
@@ -1506,7 +1506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1506
1506
|
* @param {DSEvent} event
|
|
1507
1507
|
*/
|
|
1508
1508
|
}]), c;
|
|
1509
|
-
}(),
|
|
1509
|
+
}(), _o = /* @__PURE__ */ g(
|
|
1510
1510
|
function c(u) {
|
|
1511
1511
|
var t = this, m = u.DS;
|
|
1512
1512
|
i(this, c), l(this, "subscribers", {}), l(this, "subscribe", function(n, h) {
|
|
@@ -1544,7 +1544,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1544
1544
|
* @param {DSCallback} callback
|
|
1545
1545
|
* @returns {number} event id, can be used to unsubscribe more efficiently
|
|
1546
1546
|
*/
|
|
1547
|
-
),
|
|
1547
|
+
), xo = /* @__PURE__ */ function(c) {
|
|
1548
1548
|
v(t, c);
|
|
1549
1549
|
var u = V(t);
|
|
1550
1550
|
function t(m) {
|
|
@@ -1647,7 +1647,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1647
1647
|
}, this.Settings.refreshMemoryRate), this._rects);
|
|
1648
1648
|
}
|
|
1649
1649
|
}]), t;
|
|
1650
|
-
}(/* @__PURE__ */ I(Set)),
|
|
1650
|
+
}(/* @__PURE__ */ I(Set)), ko = /* @__PURE__ */ function(c) {
|
|
1651
1651
|
v(t, c);
|
|
1652
1652
|
var u = V(t);
|
|
1653
1653
|
function t(m) {
|
|
@@ -1713,7 +1713,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1713
1713
|
}
|
|
1714
1714
|
)
|
|
1715
1715
|
}]), t;
|
|
1716
|
-
}(/* @__PURE__ */ I(Set)),
|
|
1716
|
+
}(/* @__PURE__ */ I(Set)), Do = /* @__PURE__ */ function() {
|
|
1717
1717
|
function c(u) {
|
|
1718
1718
|
var t = this, m = u.DS;
|
|
1719
1719
|
i(this, c), l(this, "_prevSelectedSet", void 0), l(this, "start", function(n) {
|
|
@@ -1739,17 +1739,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1739
1739
|
select: Ee,
|
|
1740
1740
|
unselect: ne,
|
|
1741
1741
|
selectorRect: ke
|
|
1742
|
-
}),
|
|
1743
|
-
|
|
1744
|
-
return
|
|
1742
|
+
}), Ao = Nr.select, Lo = Nr.unselect;
|
|
1743
|
+
Ao.forEach(function(Xt, Zt) {
|
|
1744
|
+
return uo({
|
|
1745
1745
|
element: Zt,
|
|
1746
1746
|
force: n,
|
|
1747
1747
|
multiSelectionToggle: W,
|
|
1748
1748
|
SelectedSet: t.DS.SelectedSet,
|
|
1749
1749
|
hoverClassName: t.Settings.hoverClass
|
|
1750
1750
|
});
|
|
1751
|
-
}),
|
|
1752
|
-
return
|
|
1751
|
+
}), Lo.forEach(function(Xt, Zt) {
|
|
1752
|
+
return ho({
|
|
1753
1753
|
element: Zt,
|
|
1754
1754
|
force: n,
|
|
1755
1755
|
SelectedSet: t.DS.SelectedSet,
|
|
@@ -1774,7 +1774,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1774
1774
|
}
|
|
1775
1775
|
/** @param {{event:DSEvent,isDragging:boolean}} event */
|
|
1776
1776
|
}]), c;
|
|
1777
|
-
}(),
|
|
1777
|
+
}(), Co = /* @__PURE__ */ function() {
|
|
1778
1778
|
function c(u) {
|
|
1779
1779
|
var t = this, m = u.DS;
|
|
1780
1780
|
i(this, c), l(this, "_rect", void 0), l(this, "attachSelector", function() {
|
|
@@ -1791,7 +1791,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1791
1791
|
}), l(this, "update", function(n) {
|
|
1792
1792
|
var h = n.isDragging;
|
|
1793
1793
|
if (!(h || t.DS.continue)) {
|
|
1794
|
-
var y = t.DS.stores, _ = y.ScrollStore, M = y.PointerStore, B =
|
|
1794
|
+
var y = t.DS.stores, _ = y.ScrollStore, M = y.PointerStore, B = oo({
|
|
1795
1795
|
scrollAmount: _.scrollAmount,
|
|
1796
1796
|
initialPointerPos: M.initialValArea,
|
|
1797
1797
|
pointerPos: M.currentValArea
|
|
@@ -1809,7 +1809,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1809
1809
|
return this._rect ? this._rect : this._rect = this.HTMLNode.getBoundingClientRect();
|
|
1810
1810
|
}
|
|
1811
1811
|
}]), c;
|
|
1812
|
-
}(),
|
|
1812
|
+
}(), Mo = /* @__PURE__ */ function() {
|
|
1813
1813
|
function c(u) {
|
|
1814
1814
|
var t = this, m = u.DS;
|
|
1815
1815
|
i(this, c), l(this, "_scrollInterval", void 0), l(this, "_rect", void 0), l(this, "currentEdges", []), l(this, "start", function() {
|
|
@@ -1871,7 +1871,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1871
1871
|
return this._rect ? this._rect : this._rect = this.HTMLNode.getBoundingClientRect();
|
|
1872
1872
|
}
|
|
1873
1873
|
}]), c;
|
|
1874
|
-
}(),
|
|
1874
|
+
}(), Eo = /* @__PURE__ */ function() {
|
|
1875
1875
|
function c(u) {
|
|
1876
1876
|
var t = this, m = u.DS;
|
|
1877
1877
|
i(this, c), l(this, "_currentValues", /* @__PURE__ */ new Set()), l(this, "_keyMapping", {
|
|
@@ -1928,7 +1928,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1928
1928
|
return Array.from(this._currentValues.values());
|
|
1929
1929
|
}
|
|
1930
1930
|
}]), c;
|
|
1931
|
-
}(),
|
|
1931
|
+
}(), $o = /* @__PURE__ */ function() {
|
|
1932
1932
|
function c(u) {
|
|
1933
1933
|
var t = this, m = u.DS;
|
|
1934
1934
|
i(this, c), l(this, "_isMouseInteraction", !1), l(this, "_initialValArea", void 0), l(this, "_currentValArea", void 0), l(this, "_lastValArea", void 0), l(this, "_initialVal", void 0), l(this, "_currentVal", void 0), l(this, "_lastVal", void 0), l(this, "_lastTouch", void 0), l(this, "init", function() {
|
|
@@ -1940,7 +1940,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1940
1940
|
passive: !1
|
|
1941
1941
|
});
|
|
1942
1942
|
}), l(this, "getPointerPosition", function(n) {
|
|
1943
|
-
return
|
|
1943
|
+
return so({
|
|
1944
1944
|
event: t._normalizedEvent(n)
|
|
1945
1945
|
});
|
|
1946
1946
|
}), l(this, "update", function(n) {
|
|
@@ -2052,7 +2052,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2052
2052
|
this._lastVal = t, this._lastValArea = t && O(t, "-", O(ee(this.DS.Area.rect), "+", ee(this.DS.Area.computedBorder)));
|
|
2053
2053
|
}
|
|
2054
2054
|
}]), c;
|
|
2055
|
-
}(),
|
|
2055
|
+
}(), To = /* @__PURE__ */ function() {
|
|
2056
2056
|
function c(u) {
|
|
2057
2057
|
var t = this, m = u.DS;
|
|
2058
2058
|
i(this, c), l(this, "_initialVal", void 0), l(this, "_currentVal", void 0), l(this, "_canScroll", void 0), l(this, "init", function() {
|
|
@@ -2102,7 +2102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2102
2102
|
return this._currentVal || (this._currentVal = Mt(this.DS.stores.SettingsStore.s.area)), this._currentVal;
|
|
2103
2103
|
}
|
|
2104
2104
|
}]), c;
|
|
2105
|
-
}(),
|
|
2105
|
+
}(), Io = /* @__PURE__ */ g(
|
|
2106
2106
|
/**
|
|
2107
2107
|
* @type {Settings}
|
|
2108
2108
|
* @private
|
|
@@ -2131,7 +2131,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2131
2131
|
init: _
|
|
2132
2132
|
} : {}));
|
|
2133
2133
|
}), l(this, "_update", function(h) {
|
|
2134
|
-
for (var y = h.settings, _ = h.init, M =
|
|
2134
|
+
for (var y = h.settings, _ = h.init, M = fo(y, _), B = function() {
|
|
2135
2135
|
var ke, Ee = X(ie[W], 2), ne = Ee[0], me = Ee[1];
|
|
2136
2136
|
ne in t._settings || Object.defineProperty(t.s, ne, {
|
|
2137
2137
|
get: function() {
|
|
@@ -2193,37 +2193,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2193
2193
|
return t.DropZones.getItemsDroppedById(m);
|
|
2194
2194
|
}), l(this, "getItemsInsideByZoneId", function(m, n) {
|
|
2195
2195
|
return t.DropZones.getItemsInsideById(m, n);
|
|
2196
|
-
}), this.PubSub = new
|
|
2196
|
+
}), this.PubSub = new _o({
|
|
2197
2197
|
DS: this
|
|
2198
2198
|
}), this.subscribe = this.PubSub.subscribe, this.unsubscribe = this.PubSub.unsubscribe, this.publish = this.PubSub.publish, this.stores = /** @type {{ SettingsStore:SettingsStore, PointerStore:PointerStore, ScrollStore:ScrollStore, KeyStore:KeyStore }} */
|
|
2199
|
-
{}, this.stores.SettingsStore = new
|
|
2199
|
+
{}, this.stores.SettingsStore = new Io({
|
|
2200
2200
|
DS: this,
|
|
2201
2201
|
settings: u
|
|
2202
|
-
}), this.stores.PointerStore = new
|
|
2202
|
+
}), this.stores.PointerStore = new $o({
|
|
2203
2203
|
DS: this
|
|
2204
|
-
}), this.stores.ScrollStore = new
|
|
2204
|
+
}), this.stores.ScrollStore = new To({
|
|
2205
2205
|
DS: this
|
|
2206
|
-
}), this.stores.KeyStore = new
|
|
2206
|
+
}), this.stores.KeyStore = new Eo({
|
|
2207
2207
|
DS: this
|
|
2208
|
-
}), this.Area = new
|
|
2208
|
+
}), this.Area = new vo({
|
|
2209
2209
|
DS: this
|
|
2210
|
-
}), this.Selector = new
|
|
2210
|
+
}), this.Selector = new Co({
|
|
2211
2211
|
DS: this
|
|
2212
|
-
}), this.SelectorArea = new
|
|
2212
|
+
}), this.SelectorArea = new Mo({
|
|
2213
2213
|
DS: this
|
|
2214
|
-
}), this.SelectableSet = new
|
|
2214
|
+
}), this.SelectableSet = new xo({
|
|
2215
2215
|
DS: this
|
|
2216
|
-
}), this.SelectedSet = new
|
|
2216
|
+
}), this.SelectedSet = new ko({
|
|
2217
2217
|
DS: this
|
|
2218
|
-
}), this.Selection = new
|
|
2218
|
+
}), this.Selection = new Do({
|
|
2219
2219
|
DS: this
|
|
2220
|
-
}), this.Drag = new
|
|
2220
|
+
}), this.Drag = new bo({
|
|
2221
2221
|
DS: this
|
|
2222
|
-
}), this.DropZones = new
|
|
2222
|
+
}), this.DropZones = new So({
|
|
2223
2223
|
DS: this
|
|
2224
|
-
}), this.Interaction = new
|
|
2224
|
+
}), this.Interaction = new wo({
|
|
2225
2225
|
DS: this
|
|
2226
|
-
}),
|
|
2226
|
+
}), mo({
|
|
2227
2227
|
subscribe: this.subscribe,
|
|
2228
2228
|
publish: this.publish,
|
|
2229
2229
|
SelectedSet: this.SelectedSet,
|
|
@@ -2391,44 +2391,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2391
2391
|
return Pr.isCollision = Ge, Pr;
|
|
2392
2392
|
});
|
|
2393
2393
|
})(cs);
|
|
2394
|
-
var
|
|
2395
|
-
const
|
|
2394
|
+
var Ln = cs.exports;
|
|
2395
|
+
const On = /* @__PURE__ */ An(Ln), us = (r, e, s, o, a) => (e = Math, s = e.log, o = 1024, a = s(r) / s(o) | 0, r / e.pow(o, a)).toFixed(0) + " " + (a ? "KMGTPEZY"[--a] + "iB" : "B"), ds = (r, e = null) => new Date(r * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"), Pn = {
|
|
2396
2396
|
key: 0,
|
|
2397
2397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2398
2398
|
class: "h-5 w-5",
|
|
2399
2399
|
viewBox: "0 0 20 20",
|
|
2400
2400
|
fill: "currentColor"
|
|
2401
|
-
},
|
|
2401
|
+
}, Nn = /* @__PURE__ */ f("path", {
|
|
2402
2402
|
"fill-rule": "evenodd",
|
|
2403
2403
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
2404
2404
|
"clip-rule": "evenodd"
|
|
2405
|
-
}, null, -1),
|
|
2406
|
-
|
|
2407
|
-
],
|
|
2405
|
+
}, null, -1), jn = [
|
|
2406
|
+
Nn
|
|
2407
|
+
], Rn = {
|
|
2408
2408
|
key: 1,
|
|
2409
2409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2410
2410
|
class: "h-5 w-5",
|
|
2411
2411
|
viewBox: "0 0 20 20",
|
|
2412
2412
|
fill: "currentColor"
|
|
2413
|
-
},
|
|
2413
|
+
}, Vn = /* @__PURE__ */ f("path", {
|
|
2414
2414
|
"fill-rule": "evenodd",
|
|
2415
2415
|
d: "M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",
|
|
2416
2416
|
"clip-rule": "evenodd"
|
|
2417
|
-
}, null, -1),
|
|
2418
|
-
|
|
2419
|
-
],
|
|
2417
|
+
}, null, -1), Bn = [
|
|
2418
|
+
Vn
|
|
2419
|
+
], zn = {
|
|
2420
2420
|
name: "VFSortIcon"
|
|
2421
|
-
}, Tt = /* @__PURE__ */ Object.assign(
|
|
2421
|
+
}, Tt = /* @__PURE__ */ Object.assign(zn, {
|
|
2422
2422
|
props: { direction: String },
|
|
2423
2423
|
setup(r) {
|
|
2424
2424
|
return (e, s) => (w(), C("div", null, [
|
|
2425
|
-
r.direction == "down" ? (w(), C("svg",
|
|
2426
|
-
r.direction == "up" ? (w(), C("svg",
|
|
2425
|
+
r.direction == "down" ? (w(), C("svg", Pn, jn)) : Z("", !0),
|
|
2426
|
+
r.direction == "up" ? (w(), C("svg", Rn, Bn)) : Z("", !0)
|
|
2427
2427
|
]));
|
|
2428
2428
|
}
|
|
2429
|
-
}),
|
|
2429
|
+
}), Hn = ["onClick"], Un = {
|
|
2430
2430
|
name: "VFToast.vue"
|
|
2431
|
-
},
|
|
2431
|
+
}, Kn = /* @__PURE__ */ Object.assign(Un, {
|
|
2432
2432
|
setup(r) {
|
|
2433
2433
|
const e = P("emitter"), { getStore: s } = P("storage"), o = L(s("full-screen", !1)), a = (l) => l == "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = L([]), d = (l) => {
|
|
2434
2434
|
i.value.splice(l, 1);
|
|
@@ -2446,7 +2446,7 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2446
2446
|
}), (l, v) => (w(), C("div", {
|
|
2447
2447
|
class: ce([o.value.value ? "fixed" : "absolute", "bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])
|
|
2448
2448
|
}, [
|
|
2449
|
-
Ce(
|
|
2449
|
+
Ce(Oo, {
|
|
2450
2450
|
name: "vf-toast-item",
|
|
2451
2451
|
"leave-active-class": "transition-all duration-1000",
|
|
2452
2452
|
"leave-to-class": "opacity-0"
|
|
@@ -2456,13 +2456,13 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2456
2456
|
onClick: (S) => d(b),
|
|
2457
2457
|
key: p,
|
|
2458
2458
|
class: ce([a(p.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
|
|
2459
|
-
}, E(p.label), 11,
|
|
2459
|
+
}, E(p.label), 11, Hn))), 128))
|
|
2460
2460
|
]),
|
|
2461
2461
|
_: 1
|
|
2462
2462
|
})
|
|
2463
2463
|
], 2));
|
|
2464
2464
|
}
|
|
2465
|
-
}), Fe = (r) => Object.entries(r).map((e) => e.map(encodeURIComponent).join("=")).join("&"), { apiUrl:
|
|
2465
|
+
}), Fe = (r) => Object.entries(r).map((e) => e.map(encodeURIComponent).join("=")).join("&"), { apiUrl: Yn } = Ae(), er = (r, e) => Yn.value + "?" + Fe({ q: "preview", adapter: r, path: e }), He = typeof window < "u", hs = He && !("onscroll" in window) || typeof navigator < "u" && /(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent), fs = He && "IntersectionObserver" in window, ps = He && "classList" in document.createElement("p"), gs = He && window.devicePixelRatio > 1, Wn = {
|
|
2466
2466
|
elements_selector: ".lazy",
|
|
2467
2467
|
container: hs || He ? document : null,
|
|
2468
2468
|
threshold: 300,
|
|
@@ -2495,7 +2495,7 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2495
2495
|
callback_cancel: null,
|
|
2496
2496
|
use_native: !1,
|
|
2497
2497
|
restore_on_error: !1
|
|
2498
|
-
}, ms = (r) => Object.assign({},
|
|
2498
|
+
}, ms = (r) => Object.assign({}, Wn, r), Vr = function(r, e) {
|
|
2499
2499
|
let s;
|
|
2500
2500
|
const o = "LazyLoad::Initialized", a = new r(e);
|
|
2501
2501
|
try {
|
|
@@ -2504,22 +2504,22 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2504
2504
|
s = document.createEvent("CustomEvent"), s.initCustomEvent(o, !1, !1, { instance: a });
|
|
2505
2505
|
}
|
|
2506
2506
|
window.dispatchEvent(s);
|
|
2507
|
-
},
|
|
2507
|
+
}, Xn = (r, e) => {
|
|
2508
2508
|
if (e)
|
|
2509
2509
|
if (!e.length)
|
|
2510
2510
|
Vr(r, e);
|
|
2511
2511
|
else
|
|
2512
2512
|
for (let s = 0, o; o = e[s]; s += 1)
|
|
2513
2513
|
Vr(r, o);
|
|
2514
|
-
}, Pe = "src", hr = "srcset", fr = "sizes", vs = "poster", wt = "llOriginalAttrs", bs = "data", pr = "loading", ys = "loaded", Ss = "applied",
|
|
2515
|
-
|
|
2514
|
+
}, Pe = "src", hr = "srcset", fr = "sizes", vs = "poster", wt = "llOriginalAttrs", bs = "data", pr = "loading", ys = "loaded", Ss = "applied", Zn = "entered", gr = "error", ws = "native", _s = "data-", xs = "ll-status", fe = (r, e) => r.getAttribute(_s + e), Fn = (r, e, s) => {
|
|
2515
|
+
const o = _s + e;
|
|
2516
2516
|
if (s === null) {
|
|
2517
2517
|
r.removeAttribute(o);
|
|
2518
2518
|
return;
|
|
2519
2519
|
}
|
|
2520
2520
|
r.setAttribute(o, s);
|
|
2521
|
-
}, _t = (r) => fe(r, xs), qe = (r, e) =>
|
|
2522
|
-
if (r) {
|
|
2521
|
+
}, _t = (r) => fe(r, xs), qe = (r, e) => Fn(r, xs, e), Bt = (r) => qe(r, null), mr = (r) => _t(r) === null, qn = (r) => _t(r) === pr, Gn = (r) => _t(r) === gr, vr = (r) => _t(r) === ws, Jn = [pr, ys, Ss, gr], Qn = (r) => Jn.indexOf(_t(r)) >= 0, Ue = (r, e, s, o) => {
|
|
2522
|
+
if (!(!r || typeof r != "function")) {
|
|
2523
2523
|
if (o !== void 0) {
|
|
2524
2524
|
r(e, s, o);
|
|
2525
2525
|
return;
|
|
@@ -2542,26 +2542,26 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2542
2542
|
return;
|
|
2543
2543
|
}
|
|
2544
2544
|
r.className = r.className.replace(new RegExp("(^|\\s+)" + e + "(\\s+|$)"), " ").replace(/^\s+/, "").replace(/\s+$/, "");
|
|
2545
|
-
}, Qn = (r) => {
|
|
2546
|
-
r.llTempImage = document.createElement("IMG");
|
|
2547
2545
|
}, ei = (r) => {
|
|
2546
|
+
r.llTempImage = document.createElement("IMG");
|
|
2547
|
+
}, ti = (r) => {
|
|
2548
2548
|
delete r.llTempImage;
|
|
2549
2549
|
}, ks = (r) => r.llTempImage, zt = (r, e) => {
|
|
2550
2550
|
if (!e)
|
|
2551
2551
|
return;
|
|
2552
2552
|
const s = e._observer;
|
|
2553
2553
|
s && s.unobserve(r);
|
|
2554
|
-
},
|
|
2554
|
+
}, ri = (r) => {
|
|
2555
2555
|
r.disconnect();
|
|
2556
|
-
},
|
|
2556
|
+
}, si = (r, e, s) => {
|
|
2557
2557
|
e.unobserve_entered && zt(r, s);
|
|
2558
2558
|
}, br = (r, e) => {
|
|
2559
2559
|
r && (r.loadingCount += e);
|
|
2560
|
-
},
|
|
2560
|
+
}, oi = (r) => {
|
|
2561
2561
|
r && (r.toLoadCount -= 1);
|
|
2562
2562
|
}, Ds = (r, e) => {
|
|
2563
2563
|
r && (r.toLoadCount = e);
|
|
2564
|
-
},
|
|
2564
|
+
}, ni = (r) => r.loadingCount > 0, ii = (r) => r.toLoadCount > 0, Cs = (r) => {
|
|
2565
2565
|
let e = [];
|
|
2566
2566
|
for (let s = 0, o; o = r.children[s]; s += 1)
|
|
2567
2567
|
o.tagName === "SOURCE" && e.push(o);
|
|
@@ -2580,9 +2580,9 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2580
2580
|
e.forEach((o) => {
|
|
2581
2581
|
s[o] = r.getAttribute(o);
|
|
2582
2582
|
}), r[wt] = s;
|
|
2583
|
-
},
|
|
2583
|
+
}, ai = (r) => {
|
|
2584
2584
|
Ut(r) || (r[wt] = { backgroundImage: r.style.backgroundImage });
|
|
2585
|
-
},
|
|
2585
|
+
}, li = (r, e, s) => {
|
|
2586
2586
|
if (!s) {
|
|
2587
2587
|
r.removeAttribute(e);
|
|
2588
2588
|
return;
|
|
@@ -2593,9 +2593,9 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2593
2593
|
return;
|
|
2594
2594
|
const s = Ts(r);
|
|
2595
2595
|
e.forEach((o) => {
|
|
2596
|
-
|
|
2596
|
+
li(r, o, s[o]);
|
|
2597
2597
|
});
|
|
2598
|
-
},
|
|
2598
|
+
}, ci = (r) => {
|
|
2599
2599
|
if (!Ut(r))
|
|
2600
2600
|
return;
|
|
2601
2601
|
const e = Ts(r);
|
|
@@ -2608,25 +2608,25 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2608
2608
|
s && r.setAttribute(e, s);
|
|
2609
2609
|
}, Br = (r, e) => {
|
|
2610
2610
|
ze(r, fr, fe(r, e.data_sizes)), ze(r, hr, fe(r, e.data_srcset)), ze(r, Pe, fe(r, e.data_src));
|
|
2611
|
-
},
|
|
2611
|
+
}, ui = (r, e) => {
|
|
2612
2612
|
yr(r, (s) => {
|
|
2613
2613
|
st(s, bt), Br(s, e);
|
|
2614
2614
|
}), st(r, bt), Br(r, e);
|
|
2615
|
-
}, ui = (r, e) => {
|
|
2616
|
-
st(r, Ht), ze(r, Pe, fe(r, e.data_src));
|
|
2617
2615
|
}, di = (r, e) => {
|
|
2616
|
+
st(r, Ht), ze(r, Pe, fe(r, e.data_src));
|
|
2617
|
+
}, hi = (r, e) => {
|
|
2618
2618
|
Ms(r, (s) => {
|
|
2619
2619
|
st(s, Ht), ze(s, Pe, fe(s, e.data_src));
|
|
2620
2620
|
}), st(r, Es), ze(r, vs, fe(r, e.data_poster)), ze(r, Pe, fe(r, e.data_src)), r.load();
|
|
2621
|
-
},
|
|
2621
|
+
}, fi = (r, e) => {
|
|
2622
2622
|
st(r, $s), ze(r, bs, fe(r, e.data_src));
|
|
2623
|
-
},
|
|
2623
|
+
}, pi = (r, e, s) => {
|
|
2624
2624
|
const o = fe(r, e.data_bg), a = fe(r, e.data_bg_hidpi), i = gs && a ? a : o;
|
|
2625
2625
|
i && (r.style.backgroundImage = `url("${i}")`, ks(r).setAttribute(Pe, i), Ls(r, e, s));
|
|
2626
|
-
},
|
|
2626
|
+
}, gi = (r, e, s) => {
|
|
2627
2627
|
const o = fe(r, e.data_bg_multi), a = fe(r, e.data_bg_multi_hidpi), i = gs && a ? a : o;
|
|
2628
2628
|
i && (r.style.backgroundImage = i, As(r, e, s));
|
|
2629
|
-
},
|
|
2629
|
+
}, mi = (r, e, s) => {
|
|
2630
2630
|
const o = fe(r, e.data_bg_set);
|
|
2631
2631
|
if (!o)
|
|
2632
2632
|
return;
|
|
@@ -2634,23 +2634,23 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2634
2634
|
let i = a.map((d) => `image-set(${d})`);
|
|
2635
2635
|
r.style.backgroundImage = i.join(), r.style.backgroundImage === "" && (i = a.map((d) => `-webkit-image-set(${d})`), r.style.backgroundImage = i.join()), As(r, e, s);
|
|
2636
2636
|
}, Os = {
|
|
2637
|
-
IMG:
|
|
2638
|
-
IFRAME:
|
|
2639
|
-
VIDEO:
|
|
2640
|
-
OBJECT:
|
|
2641
|
-
},
|
|
2637
|
+
IMG: ui,
|
|
2638
|
+
IFRAME: di,
|
|
2639
|
+
VIDEO: hi,
|
|
2640
|
+
OBJECT: fi
|
|
2641
|
+
}, vi = (r, e) => {
|
|
2642
2642
|
const s = Os[r.tagName];
|
|
2643
2643
|
s && s(r, e);
|
|
2644
|
-
},
|
|
2644
|
+
}, bi = (r, e, s) => {
|
|
2645
2645
|
const o = Os[r.tagName];
|
|
2646
2646
|
o && (o(r, e), Ls(r, e, s));
|
|
2647
|
-
},
|
|
2648
|
-
e && !
|
|
2647
|
+
}, yi = ["IMG", "IFRAME", "VIDEO", "OBJECT"], Si = (r) => yi.indexOf(r.tagName) > -1, Ps = (r, e) => {
|
|
2648
|
+
e && !ni(e) && !ii(e) && Ue(r.callback_finish, e);
|
|
2649
2649
|
}, zr = (r, e, s) => {
|
|
2650
2650
|
r.addEventListener(e, s), r.llEvLisnrs[e] = s;
|
|
2651
|
-
},
|
|
2651
|
+
}, wi = (r, e, s) => {
|
|
2652
2652
|
r.removeEventListener(e, s);
|
|
2653
|
-
}, Sr = (r) => !!r.llEvLisnrs,
|
|
2653
|
+
}, Sr = (r) => !!r.llEvLisnrs, _i = (r, e, s) => {
|
|
2654
2654
|
Sr(r) || (r.llEvLisnrs = {});
|
|
2655
2655
|
const o = r.tagName === "VIDEO" ? "loadeddata" : "load";
|
|
2656
2656
|
zr(r, o, e), zr(r, "error", s);
|
|
@@ -2660,37 +2660,37 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2660
2660
|
const e = r.llEvLisnrs;
|
|
2661
2661
|
for (let s in e) {
|
|
2662
2662
|
const o = e[s];
|
|
2663
|
-
|
|
2663
|
+
wi(r, s, o);
|
|
2664
2664
|
}
|
|
2665
2665
|
delete r.llEvLisnrs;
|
|
2666
2666
|
}, Ns = (r, e, s) => {
|
|
2667
|
-
|
|
2668
|
-
},
|
|
2667
|
+
ti(r), br(s, -1), oi(s), $e(r, e.class_loading), e.unobserve_completed && zt(r, s);
|
|
2668
|
+
}, xi = (r, e, s, o) => {
|
|
2669
2669
|
const a = vr(e);
|
|
2670
2670
|
Ns(e, s, o), it(e, s.class_loaded), qe(e, ys), Ue(s.callback_loaded, e, o), a || Ps(s, o);
|
|
2671
|
-
},
|
|
2671
|
+
}, ki = (r, e, s, o) => {
|
|
2672
2672
|
const a = vr(e);
|
|
2673
2673
|
Ns(e, s, o), it(e, s.class_error), qe(e, gr), Ue(s.callback_error, e, o), s.restore_on_error && Xe(e, bt), a || Ps(s, o);
|
|
2674
2674
|
}, wr = (r, e, s) => {
|
|
2675
2675
|
const o = ks(r) || r;
|
|
2676
2676
|
if (Sr(o))
|
|
2677
2677
|
return;
|
|
2678
|
-
|
|
2679
|
-
_i(d, r, e, s), tr(o);
|
|
2680
|
-
}, (d) => {
|
|
2678
|
+
_i(o, (d) => {
|
|
2681
2679
|
xi(d, r, e, s), tr(o);
|
|
2680
|
+
}, (d) => {
|
|
2681
|
+
ki(d, r, e, s), tr(o);
|
|
2682
2682
|
});
|
|
2683
|
-
}, ki = (r, e, s) => {
|
|
2684
|
-
Qn(r), wr(r, e, s), ii(r), fi(r, e, s), pi(r, e, s), gi(r, e, s);
|
|
2685
2683
|
}, Di = (r, e, s) => {
|
|
2686
|
-
wr(r, e, s),
|
|
2687
|
-
}, _r = (r, e, s) => {
|
|
2688
|
-
yi(r) ? Di(r, e, s) : ki(r, e, s);
|
|
2684
|
+
ei(r), wr(r, e, s), ai(r), pi(r, e, s), gi(r, e, s), mi(r, e, s);
|
|
2689
2685
|
}, Ci = (r, e, s) => {
|
|
2690
|
-
|
|
2686
|
+
wr(r, e, s), bi(r, e, s);
|
|
2687
|
+
}, _r = (r, e, s) => {
|
|
2688
|
+
Si(r) ? Ci(r, e, s) : Di(r, e, s);
|
|
2689
|
+
}, Mi = (r, e, s) => {
|
|
2690
|
+
r.setAttribute("loading", "lazy"), wr(r, e, s), vi(r, e), qe(r, ws);
|
|
2691
2691
|
}, Hr = (r) => {
|
|
2692
2692
|
r.removeAttribute(Pe), r.removeAttribute(hr), r.removeAttribute(fr);
|
|
2693
|
-
},
|
|
2693
|
+
}, Ei = (r) => {
|
|
2694
2694
|
yr(r, (e) => {
|
|
2695
2695
|
Hr(e);
|
|
2696
2696
|
}), Hr(r);
|
|
@@ -2698,71 +2698,71 @@ const Ln = /* @__PURE__ */ In(An), us = (r, e, s, o, a) => (e = Math, s = e.log,
|
|
|
2698
2698
|
yr(r, (e) => {
|
|
2699
2699
|
Xe(e, bt);
|
|
2700
2700
|
}), Xe(r, bt);
|
|
2701
|
-
},
|
|
2701
|
+
}, $i = (r) => {
|
|
2702
2702
|
Ms(r, (e) => {
|
|
2703
2703
|
Xe(e, Ht);
|
|
2704
2704
|
}), Xe(r, Es), r.load();
|
|
2705
|
-
}, $i = (r) => {
|
|
2706
|
-
Xe(r, Ht);
|
|
2707
2705
|
}, Ti = (r) => {
|
|
2706
|
+
Xe(r, Ht);
|
|
2707
|
+
}, Ii = (r) => {
|
|
2708
2708
|
Xe(r, $s);
|
|
2709
|
-
},
|
|
2709
|
+
}, Ai = {
|
|
2710
2710
|
IMG: js,
|
|
2711
|
-
IFRAME:
|
|
2712
|
-
VIDEO:
|
|
2713
|
-
OBJECT:
|
|
2714
|
-
},
|
|
2715
|
-
const e =
|
|
2711
|
+
IFRAME: Ti,
|
|
2712
|
+
VIDEO: $i,
|
|
2713
|
+
OBJECT: Ii
|
|
2714
|
+
}, Li = (r) => {
|
|
2715
|
+
const e = Ai[r.tagName];
|
|
2716
2716
|
if (!e) {
|
|
2717
|
-
|
|
2717
|
+
ci(r);
|
|
2718
2718
|
return;
|
|
2719
2719
|
}
|
|
2720
2720
|
e(r);
|
|
2721
|
-
}, Li = (r, e) => {
|
|
2722
|
-
mr(r) || vr(r) || ($e(r, e.class_entered), $e(r, e.class_exited), $e(r, e.class_applied), $e(r, e.class_loading), $e(r, e.class_loaded), $e(r, e.class_error));
|
|
2723
2721
|
}, Oi = (r, e) => {
|
|
2724
|
-
|
|
2725
|
-
}, Pi = (r, e
|
|
2726
|
-
|
|
2722
|
+
mr(r) || vr(r) || ($e(r, e.class_entered), $e(r, e.class_exited), $e(r, e.class_applied), $e(r, e.class_loading), $e(r, e.class_loaded), $e(r, e.class_error));
|
|
2723
|
+
}, Pi = (r, e) => {
|
|
2724
|
+
Li(r), Oi(r, e), Bt(r), Is(r);
|
|
2727
2725
|
}, Ni = (r, e, s, o) => {
|
|
2728
|
-
|
|
2729
|
-
qe(r, Xn), it(r, s.class_entered), $e(r, s.class_exited), ri(r, s, o), Ue(s.callback_enter, r, e, o), !a && _r(r, s, o);
|
|
2726
|
+
s.cancel_on_exit && qn(r) && r.tagName === "IMG" && (tr(r), Ei(r), js(r), $e(r, s.class_loading), br(o, -1), Bt(r), Ue(s.callback_cancel, r, e, o));
|
|
2730
2727
|
}, ji = (r, e, s, o) => {
|
|
2731
|
-
|
|
2732
|
-
|
|
2728
|
+
const a = Qn(r);
|
|
2729
|
+
qe(r, Zn), it(r, s.class_entered), $e(r, s.class_exited), si(r, s, o), Ue(s.callback_enter, r, e, o), !a && _r(r, s, o);
|
|
2730
|
+
}, Ri = (r, e, s, o) => {
|
|
2731
|
+
mr(r) || (it(r, s.class_exited), Ni(r, e, s, o), Ue(s.callback_exit, r, e, o));
|
|
2732
|
+
}, Vi = ["IMG", "IFRAME", "VIDEO"], Rs = (r) => r.use_native && "loading" in HTMLImageElement.prototype, Bi = (r, e, s) => {
|
|
2733
2733
|
r.forEach((o) => {
|
|
2734
|
-
|
|
2734
|
+
Vi.indexOf(o.tagName) !== -1 && Mi(o, e, s);
|
|
2735
2735
|
}), Ds(s, 0);
|
|
2736
|
-
},
|
|
2736
|
+
}, zi = (r) => r.isIntersecting || r.intersectionRatio > 0, Hi = (r) => ({
|
|
2737
2737
|
root: r.container === document ? null : r.container,
|
|
2738
2738
|
rootMargin: r.thresholds || r.threshold + "px"
|
|
2739
|
-
}),
|
|
2739
|
+
}), Ui = (r, e, s) => {
|
|
2740
2740
|
r.forEach(
|
|
2741
|
-
(o) =>
|
|
2741
|
+
(o) => zi(o) ? ji(o.target, o, e, s) : Ri(o.target, o, e, s)
|
|
2742
2742
|
);
|
|
2743
|
-
},
|
|
2743
|
+
}, Ki = (r, e) => {
|
|
2744
2744
|
e.forEach((s) => {
|
|
2745
2745
|
r.observe(s);
|
|
2746
2746
|
});
|
|
2747
|
-
}, Ki = (r, e) => {
|
|
2748
|
-
ti(r), Ui(r, e);
|
|
2749
2747
|
}, Yi = (r, e) => {
|
|
2748
|
+
ri(r), Ki(r, e);
|
|
2749
|
+
}, Wi = (r, e) => {
|
|
2750
2750
|
!fs || Rs(r) || (e._observer = new IntersectionObserver((s) => {
|
|
2751
|
-
|
|
2752
|
-
},
|
|
2753
|
-
}, Vs = (r) => Array.prototype.slice.call(r), Nt = (r) => r.container.querySelectorAll(r.elements_selector),
|
|
2754
|
-
|
|
2751
|
+
Ui(s, r, e);
|
|
2752
|
+
}, Hi(r)));
|
|
2753
|
+
}, Vs = (r) => Array.prototype.slice.call(r), Nt = (r) => r.container.querySelectorAll(r.elements_selector), Xi = (r) => Vs(r).filter(mr), Zi = (r) => Gn(r), Fi = (r) => Vs(r).filter(Zi), Ur = (r, e) => Xi(r || Nt(e)), qi = (r, e) => {
|
|
2754
|
+
Fi(Nt(r)).forEach((o) => {
|
|
2755
2755
|
$e(o, r.class_error), Bt(o);
|
|
2756
2756
|
}), e.update();
|
|
2757
|
-
},
|
|
2757
|
+
}, Gi = (r, e) => {
|
|
2758
2758
|
He && (e._onlineHandler = () => {
|
|
2759
|
-
|
|
2759
|
+
qi(r, e);
|
|
2760
2760
|
}, window.addEventListener("online", e._onlineHandler));
|
|
2761
|
-
},
|
|
2761
|
+
}, Ji = (r) => {
|
|
2762
2762
|
He && window.removeEventListener("online", r._onlineHandler);
|
|
2763
2763
|
}, xt = function(r, e) {
|
|
2764
2764
|
const s = ms(r);
|
|
2765
|
-
this._settings = s, this.loadingCount = 0,
|
|
2765
|
+
this._settings = s, this.loadingCount = 0, Wi(s, this), Gi(s, this), this.update(e);
|
|
2766
2766
|
};
|
|
2767
2767
|
xt.prototype = {
|
|
2768
2768
|
update: function(r) {
|
|
@@ -2772,13 +2772,13 @@ xt.prototype = {
|
|
|
2772
2772
|
return;
|
|
2773
2773
|
}
|
|
2774
2774
|
if (Rs(e)) {
|
|
2775
|
-
|
|
2775
|
+
Bi(s, e, this);
|
|
2776
2776
|
return;
|
|
2777
2777
|
}
|
|
2778
|
-
|
|
2778
|
+
Yi(this._observer, s);
|
|
2779
2779
|
},
|
|
2780
2780
|
destroy: function() {
|
|
2781
|
-
this._observer && this._observer.disconnect(),
|
|
2781
|
+
this._observer && this._observer.disconnect(), Ji(this), Nt(this._settings).forEach((r) => {
|
|
2782
2782
|
Is(r);
|
|
2783
2783
|
}), delete this._observer, delete this._settings, delete this._onlineHandler, delete this.loadingCount, delete this.toLoadCount;
|
|
2784
2784
|
},
|
|
@@ -2791,7 +2791,7 @@ xt.prototype = {
|
|
|
2791
2791
|
restoreAll: function() {
|
|
2792
2792
|
const r = this._settings;
|
|
2793
2793
|
Nt(r).forEach((e) => {
|
|
2794
|
-
|
|
2794
|
+
Pi(e, r);
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
};
|
|
@@ -2802,11 +2802,11 @@ xt.load = (r, e) => {
|
|
|
2802
2802
|
xt.resetStatus = (r) => {
|
|
2803
2803
|
Bt(r);
|
|
2804
2804
|
};
|
|
2805
|
-
He &&
|
|
2806
|
-
const
|
|
2805
|
+
He && Xn(xt, window.lazyLoadOptions);
|
|
2806
|
+
const Qi = { class: "relative flex-auto flex flex-col overflow-hidden" }, ea = {
|
|
2807
2807
|
key: 0,
|
|
2808
2808
|
class: "grid grid-cols-12 border-b border-neutral-300 border-gray-200 dark:border-gray-700 text-xs select-none"
|
|
2809
|
-
},
|
|
2809
|
+
}, ta = { class: "absolute" }, ra = /* @__PURE__ */ f("svg", {
|
|
2810
2810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2811
2811
|
class: "absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",
|
|
2812
2812
|
fill: "none",
|
|
@@ -2819,7 +2819,7 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2819
2819
|
"stroke-linejoin": "round",
|
|
2820
2820
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2821
2821
|
})
|
|
2822
|
-
], -1),
|
|
2822
|
+
], -1), sa = { class: "text-neutral-700 dark:text-neutral-300 p-1 absolute text-center top-4 right-[-2rem] md:top-5 md:right-[-2.4rem] z-20 text-xs" }, oa = ["onDblclick", "onContextmenu", "data-type", "data-item", "data-index"], na = { class: "grid grid-cols-12 items-center" }, ia = { class: "flex col-span-7 items-center" }, aa = {
|
|
2823
2823
|
key: 0,
|
|
2824
2824
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2825
2825
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -2827,13 +2827,13 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2827
2827
|
viewBox: "0 0 24 24",
|
|
2828
2828
|
stroke: "currentColor",
|
|
2829
2829
|
"stroke-width": "1"
|
|
2830
|
-
},
|
|
2830
|
+
}, la = /* @__PURE__ */ f("path", {
|
|
2831
2831
|
"stroke-linecap": "round",
|
|
2832
2832
|
"stroke-linejoin": "round",
|
|
2833
2833
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2834
|
-
}, null, -1),
|
|
2835
|
-
|
|
2836
|
-
],
|
|
2834
|
+
}, null, -1), ca = [
|
|
2835
|
+
la
|
|
2836
|
+
], ua = {
|
|
2837
2837
|
key: 1,
|
|
2838
2838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2839
2839
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -2841,13 +2841,13 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2841
2841
|
viewBox: "0 0 24 24",
|
|
2842
2842
|
stroke: "currentColor",
|
|
2843
2843
|
"stroke-width": "1"
|
|
2844
|
-
},
|
|
2844
|
+
}, da = /* @__PURE__ */ f("path", {
|
|
2845
2845
|
"stroke-linecap": "round",
|
|
2846
2846
|
"stroke-linejoin": "round",
|
|
2847
2847
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2848
|
-
}, null, -1),
|
|
2849
|
-
|
|
2850
|
-
],
|
|
2848
|
+
}, null, -1), ha = [
|
|
2849
|
+
da
|
|
2850
|
+
], fa = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, pa = { class: "col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap" }, ga = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], ma = { class: "grid grid-cols-12 items-center" }, va = { class: "flex col-span-7 items-center" }, ba = {
|
|
2851
2851
|
key: 0,
|
|
2852
2852
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2853
2853
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -2855,13 +2855,13 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2855
2855
|
viewBox: "0 0 24 24",
|
|
2856
2856
|
stroke: "currentColor",
|
|
2857
2857
|
"stroke-width": "1"
|
|
2858
|
-
},
|
|
2858
|
+
}, ya = /* @__PURE__ */ f("path", {
|
|
2859
2859
|
"stroke-linecap": "round",
|
|
2860
2860
|
"stroke-linejoin": "round",
|
|
2861
2861
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2862
|
-
}, null, -1),
|
|
2863
|
-
|
|
2864
|
-
],
|
|
2862
|
+
}, null, -1), Sa = [
|
|
2863
|
+
ya
|
|
2864
|
+
], wa = {
|
|
2865
2865
|
key: 1,
|
|
2866
2866
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2867
2867
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -2869,13 +2869,13 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2869
2869
|
viewBox: "0 0 24 24",
|
|
2870
2870
|
stroke: "currentColor",
|
|
2871
2871
|
"stroke-width": "1"
|
|
2872
|
-
},
|
|
2872
|
+
}, _a = /* @__PURE__ */ f("path", {
|
|
2873
2873
|
"stroke-linecap": "round",
|
|
2874
2874
|
"stroke-linejoin": "round",
|
|
2875
2875
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2876
|
-
}, null, -1),
|
|
2877
|
-
|
|
2878
|
-
],
|
|
2876
|
+
}, null, -1), xa = [
|
|
2877
|
+
_a
|
|
2878
|
+
], ka = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, Da = { class: "col-span-2 text-center" }, Ca = { class: "col-span-3 overflow-ellipsis overflow-hidden whitespace-nowrap" }, Ma = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], Ea = { class: "relative" }, $a = {
|
|
2879
2879
|
key: 0,
|
|
2880
2880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2881
2881
|
class: "h-10 w-10 md:h-12 md:w-12 m-auto fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -2883,13 +2883,13 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2883
2883
|
viewBox: "0 0 24 24",
|
|
2884
2884
|
stroke: "currentColor",
|
|
2885
2885
|
"stroke-width": "1"
|
|
2886
|
-
},
|
|
2886
|
+
}, Ta = /* @__PURE__ */ f("path", {
|
|
2887
2887
|
"stroke-linecap": "round",
|
|
2888
2888
|
"stroke-linejoin": "round",
|
|
2889
2889
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2890
|
-
}, null, -1),
|
|
2891
|
-
|
|
2892
|
-
],
|
|
2890
|
+
}, null, -1), Ia = [
|
|
2891
|
+
Ta
|
|
2892
|
+
], Aa = ["data-src", "alt"], La = {
|
|
2893
2893
|
key: 2,
|
|
2894
2894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2895
2895
|
class: "h-10 w-10 md:h-12 md:w-12 m-auto text-neutral-500",
|
|
@@ -2897,18 +2897,18 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2897
2897
|
viewBox: "0 0 24 24",
|
|
2898
2898
|
stroke: "currentColor",
|
|
2899
2899
|
"stroke-width": "1"
|
|
2900
|
-
},
|
|
2900
|
+
}, Oa = /* @__PURE__ */ f("path", {
|
|
2901
2901
|
"stroke-linecap": "round",
|
|
2902
2902
|
"stroke-linejoin": "round",
|
|
2903
2903
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2904
|
-
}, null, -1),
|
|
2905
|
-
|
|
2906
|
-
],
|
|
2904
|
+
}, null, -1), Pa = [
|
|
2905
|
+
Oa
|
|
2906
|
+
], Na = {
|
|
2907
2907
|
key: 3,
|
|
2908
2908
|
class: "absolute hidden md:block top-1/2 w-full text-center text-neutral-500"
|
|
2909
|
-
},
|
|
2909
|
+
}, ja = { class: "break-all" }, Ra = {
|
|
2910
2910
|
name: "VFExplorer"
|
|
2911
|
-
},
|
|
2911
|
+
}, Va = /* @__PURE__ */ Object.assign(Ra, {
|
|
2912
2912
|
props: {
|
|
2913
2913
|
view: String,
|
|
2914
2914
|
data: Object,
|
|
@@ -2977,7 +2977,7 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2977
2977
|
A.preventDefault(), !R || R.type !== "dir" || b.value.getSelection().find((O) => O == A.currentTarget) ? (A.dataTransfer.dropEffect = "none", A.dataTransfer.effectAllowed = "none") : A.dataTransfer.dropEffect = "copy";
|
|
2978
2978
|
};
|
|
2979
2979
|
return Me(() => {
|
|
2980
|
-
b.value = new
|
|
2980
|
+
b.value = new On({
|
|
2981
2981
|
area: l.value,
|
|
2982
2982
|
keyboardDrag: !1,
|
|
2983
2983
|
selectedClass: "vf-explorer-selected",
|
|
@@ -2996,12 +2996,12 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
2996
2996
|
}), b.value.subscribe("callback", ({ items: A, event: R, isDragging: O }) => {
|
|
2997
2997
|
s.emit("vf-nodes-selected", te()), p.value = b.value.getSelection().length;
|
|
2998
2998
|
});
|
|
2999
|
-
}),
|
|
2999
|
+
}), Po(() => {
|
|
3000
3000
|
b.value.Area.reset(), b.value.SelectorArea.updatePos(), I.update();
|
|
3001
3001
|
}), Me(() => {
|
|
3002
3002
|
Rt(() => e.view, () => s.emit("vf-explorer-update"));
|
|
3003
|
-
}), (A, R) => (w(), C("div",
|
|
3004
|
-
r.view == "list" || $.value.length ? (w(), C("div",
|
|
3003
|
+
}), (A, R) => (w(), C("div", Qi, [
|
|
3004
|
+
r.view == "list" || $.value.length ? (w(), C("div", ea, [
|
|
3005
3005
|
f("div", {
|
|
3006
3006
|
onClick: R[0] || (R[0] = (O) => oe("basename")),
|
|
3007
3007
|
class: "col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"
|
|
@@ -3050,14 +3050,14 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3050
3050
|
])
|
|
3051
3051
|
])) : Z("", !0)
|
|
3052
3052
|
])) : Z("", !0),
|
|
3053
|
-
f("div",
|
|
3053
|
+
f("div", ta, [
|
|
3054
3054
|
f("div", {
|
|
3055
3055
|
ref_key: "dragImage",
|
|
3056
3056
|
ref: v,
|
|
3057
3057
|
class: "absolute -z-50 -top-96"
|
|
3058
3058
|
}, [
|
|
3059
|
-
|
|
3060
|
-
f("div",
|
|
3059
|
+
ra,
|
|
3060
|
+
f("div", sa, E(p.value), 1)
|
|
3061
3061
|
], 512)
|
|
3062
3062
|
]),
|
|
3063
3063
|
f("div", {
|
|
@@ -3077,14 +3077,14 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3077
3077
|
"data-item": JSON.stringify(O),
|
|
3078
3078
|
"data-index": ee
|
|
3079
3079
|
}, [
|
|
3080
|
-
f("div",
|
|
3081
|
-
f("div",
|
|
3082
|
-
O.type == "dir" ? (w(), C("svg",
|
|
3083
|
-
f("span",
|
|
3080
|
+
f("div", na, [
|
|
3081
|
+
f("div", ia, [
|
|
3082
|
+
O.type == "dir" ? (w(), C("svg", aa, ca)) : (w(), C("svg", ua, ha)),
|
|
3083
|
+
f("span", fa, E(O.basename), 1)
|
|
3084
3084
|
]),
|
|
3085
|
-
f("div",
|
|
3085
|
+
f("div", pa, E(O.path), 1)
|
|
3086
3086
|
])
|
|
3087
|
-
], 42,
|
|
3087
|
+
], 42, oa))), 256)) : Z("", !0),
|
|
3088
3088
|
r.view == "list" && !$.value.length ? (w(!0), C(le, { key: 1 }, we(G(), (O, ee) => (w(), C("div", {
|
|
3089
3089
|
draggable: "true",
|
|
3090
3090
|
onDblclick: (U) => D(O),
|
|
@@ -3099,15 +3099,15 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3099
3099
|
"data-item": JSON.stringify(O),
|
|
3100
3100
|
"data-index": ee
|
|
3101
3101
|
}, [
|
|
3102
|
-
f("div",
|
|
3103
|
-
f("div",
|
|
3104
|
-
O.type == "dir" ? (w(), C("svg",
|
|
3105
|
-
f("span",
|
|
3102
|
+
f("div", ma, [
|
|
3103
|
+
f("div", va, [
|
|
3104
|
+
O.type == "dir" ? (w(), C("svg", ba, Sa)) : (w(), C("svg", wa, xa)),
|
|
3105
|
+
f("span", ka, E(O.basename), 1)
|
|
3106
3106
|
]),
|
|
3107
|
-
f("div",
|
|
3108
|
-
f("div",
|
|
3107
|
+
f("div", Da, E(O.file_size ? x(us)(O.file_size) : ""), 1),
|
|
3108
|
+
f("div", Ca, E(x(ds)(O.last_modified)), 1)
|
|
3109
3109
|
])
|
|
3110
|
-
], 42,
|
|
3110
|
+
], 42, ga))), 256)) : Z("", !0),
|
|
3111
3111
|
r.view == "grid" && !$.value.length ? (w(!0), C(le, { key: 2 }, we(G(!1), (O, ee) => (w(), C("div", {
|
|
3112
3112
|
draggable: "true",
|
|
3113
3113
|
onDblclick: (U) => D(O),
|
|
@@ -3123,23 +3123,23 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3123
3123
|
"data-index": ee
|
|
3124
3124
|
}, [
|
|
3125
3125
|
f("div", null, [
|
|
3126
|
-
f("div",
|
|
3127
|
-
O.type == "dir" ? (w(), C("svg",
|
|
3126
|
+
f("div", Ea, [
|
|
3127
|
+
O.type == "dir" ? (w(), C("svg", $a, Ia)) : (O.mime_type ?? "").startsWith("image") ? (w(), C("img", {
|
|
3128
3128
|
key: 1,
|
|
3129
3129
|
class: "lazy h-10 md:h-12 m-auto",
|
|
3130
3130
|
"data-src": x(er)(x(i).value, O.path),
|
|
3131
3131
|
alt: O.basename
|
|
3132
|
-
}, null, 8,
|
|
3133
|
-
!(O.mime_type ?? "").startsWith("image") && O.type != "dir" ? (w(), C("div",
|
|
3132
|
+
}, null, 8, Aa)) : (w(), C("svg", La, Pa)),
|
|
3133
|
+
!(O.mime_type ?? "").startsWith("image") && O.type != "dir" ? (w(), C("div", Na, E(d(O.extension)), 1)) : Z("", !0)
|
|
3134
3134
|
]),
|
|
3135
|
-
f("span",
|
|
3135
|
+
f("span", ja, E(g(O.basename)), 1)
|
|
3136
3136
|
])
|
|
3137
|
-
], 42,
|
|
3137
|
+
], 42, Ma))), 256)) : Z("", !0)
|
|
3138
3138
|
], 34),
|
|
3139
|
-
Ce(
|
|
3139
|
+
Ce(Kn)
|
|
3140
3140
|
]));
|
|
3141
3141
|
}
|
|
3142
|
-
}),
|
|
3142
|
+
}), Ba = "1.2.8", za = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, Ha = { class: "flex leading-5 items-center" }, Ua = ["aria-label"], Ka = /* @__PURE__ */ f("svg", {
|
|
3143
3143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3144
3144
|
class: "h-5 w-5",
|
|
3145
3145
|
fill: "none",
|
|
@@ -3152,12 +3152,12 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3152
3152
|
"stroke-linejoin": "round",
|
|
3153
3153
|
d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
|
|
3154
3154
|
})
|
|
3155
|
-
], -1),
|
|
3156
|
-
|
|
3157
|
-
],
|
|
3155
|
+
], -1), Ya = [
|
|
3156
|
+
Ka
|
|
3157
|
+
], Wa = ["value"], Xa = { class: "ml-3" }, Za = { key: 0 }, Fa = { class: "ml-1" }, qa = { class: "flex leading-5 items-center" }, Ga = {
|
|
3158
3158
|
value: "",
|
|
3159
3159
|
disabled: ""
|
|
3160
|
-
},
|
|
3160
|
+
}, Ja = /* @__PURE__ */ No('<option value="en">English</option><option value="fr">French (Français)</option><option value="de">German (Deutsch)</option><option value="tr">Hebrew (עִברִית)</option><option value="hi">Hindi (हिंदी)</option><option value="fa">Persian (فارسی)</option><option value="ru">Russian (Pусский)</option><option value="sv">Swedish (Svenska)</option><option value="tr">Turkish (Türkçe)</option>', 9), Qa = ["aria-label"], el = /* @__PURE__ */ f("svg", {
|
|
3161
3161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3162
3162
|
class: "h-5 w-5 stroke-slate-500 cursor-pointer",
|
|
3163
3163
|
fill: "none",
|
|
@@ -3170,11 +3170,11 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3170
3170
|
"stroke-linejoin": "round",
|
|
3171
3171
|
d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
3172
3172
|
})
|
|
3173
|
-
], -1),
|
|
3174
|
-
|
|
3175
|
-
],
|
|
3173
|
+
], -1), tl = [
|
|
3174
|
+
el
|
|
3175
|
+
], rl = {
|
|
3176
3176
|
name: "VFStatusbar"
|
|
3177
|
-
},
|
|
3177
|
+
}, sl = /* @__PURE__ */ Object.assign(rl, {
|
|
3178
3178
|
props: {
|
|
3179
3179
|
data: Object
|
|
3180
3180
|
},
|
|
@@ -3188,36 +3188,36 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3188
3188
|
const p = L("");
|
|
3189
3189
|
return e.on("vf-search-query", ({ newQuery: b }) => {
|
|
3190
3190
|
p.value = b;
|
|
3191
|
-
}), (b, S) => (w(), C("div",
|
|
3192
|
-
f("div",
|
|
3191
|
+
}), (b, S) => (w(), C("div", za, [
|
|
3192
|
+
f("div", Ha, [
|
|
3193
3193
|
f("div", {
|
|
3194
3194
|
class: "mx-2",
|
|
3195
3195
|
"aria-label": x(d)("Storage"),
|
|
3196
3196
|
"data-microtip-position": "top-right",
|
|
3197
3197
|
role: "tooltip"
|
|
3198
|
-
},
|
|
3198
|
+
}, Ya, 8, Ua),
|
|
3199
3199
|
ve(f("select", {
|
|
3200
3200
|
"onUpdate:modelValue": S[0] || (S[0] = (T) => as(i) ? i.value = T : null),
|
|
3201
3201
|
onChange: v,
|
|
3202
3202
|
class: "py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"
|
|
3203
3203
|
}, [
|
|
3204
|
-
(w(!0), C(le, null, we(r.data.storages, (T) => (w(), C("option", { value: T }, E(T), 9,
|
|
3204
|
+
(w(!0), C(le, null, we(r.data.storages, (T) => (w(), C("option", { value: T }, E(T), 9, Wa))), 256))
|
|
3205
3205
|
], 544), [
|
|
3206
3206
|
[jr, x(i)]
|
|
3207
3207
|
]),
|
|
3208
|
-
f("div",
|
|
3209
|
-
p.value.length ? (w(), C("span",
|
|
3210
|
-
f("span",
|
|
3208
|
+
f("div", Xa, [
|
|
3209
|
+
p.value.length ? (w(), C("span", Za, E(r.data.files.length) + " items found. ", 1)) : Z("", !0),
|
|
3210
|
+
f("span", Fa, E(a.value > 0 ? a.value + " " + x(d)("item(s) selected.") : ""), 1)
|
|
3211
3211
|
])
|
|
3212
3212
|
]),
|
|
3213
|
-
f("div",
|
|
3213
|
+
f("div", qa, [
|
|
3214
3214
|
ve(f("select", {
|
|
3215
3215
|
"onUpdate:modelValue": S[1] || (S[1] = (T) => l.value = T),
|
|
3216
3216
|
onChange: S[2] || (S[2] = (T) => x(g)(T.target.value)),
|
|
3217
3217
|
class: "py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"
|
|
3218
3218
|
}, [
|
|
3219
|
-
f("option",
|
|
3220
|
-
|
|
3219
|
+
f("option", Ga, E(x(d)("Language")), 1),
|
|
3220
|
+
Ja
|
|
3221
3221
|
], 544), [
|
|
3222
3222
|
[jr, l.value]
|
|
3223
3223
|
]),
|
|
@@ -3226,25 +3226,25 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3226
3226
|
"aria-label": x(d)("About"),
|
|
3227
3227
|
"data-microtip-position": "top-left",
|
|
3228
3228
|
role: "tooltip",
|
|
3229
|
-
onClick: S[3] || (S[3] = (T) => x(e).emit("vf-modal-show", { type: "message", title: "Vuefinder " + x(
|
|
3230
|
-
},
|
|
3229
|
+
onClick: S[3] || (S[3] = (T) => x(e).emit("vf-modal-show", { type: "message", title: "Vuefinder " + x(Ba), message: x(d)("Vuefinder is a file manager component for vue 3.") }))
|
|
3230
|
+
}, tl, 8, Qa)
|
|
3231
3231
|
])
|
|
3232
3232
|
]));
|
|
3233
3233
|
}
|
|
3234
|
-
}),
|
|
3234
|
+
}), ol = (r, e = 0, s = !1) => {
|
|
3235
3235
|
let o;
|
|
3236
3236
|
return (...a) => {
|
|
3237
3237
|
s && !o && r(...a), clearTimeout(o), o = setTimeout(() => {
|
|
3238
3238
|
r(...a);
|
|
3239
3239
|
}, e);
|
|
3240
3240
|
};
|
|
3241
|
-
},
|
|
3241
|
+
}, nl = (r, e, s) => {
|
|
3242
3242
|
const o = L(r);
|
|
3243
|
-
return
|
|
3243
|
+
return jo((i, d) => ({
|
|
3244
3244
|
get() {
|
|
3245
3245
|
return i(), o.value;
|
|
3246
3246
|
},
|
|
3247
|
-
set:
|
|
3247
|
+
set: ol(
|
|
3248
3248
|
(g) => {
|
|
3249
3249
|
o.value = g, d();
|
|
3250
3250
|
},
|
|
@@ -3252,46 +3252,46 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3252
3252
|
s
|
|
3253
3253
|
)
|
|
3254
3254
|
}));
|
|
3255
|
-
},
|
|
3255
|
+
}, il = { class: "flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs" }, al = ["aria-label"], ll = /* @__PURE__ */ f("path", {
|
|
3256
3256
|
"fill-rule": "evenodd",
|
|
3257
3257
|
d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z",
|
|
3258
3258
|
"clip-rule": "evenodd"
|
|
3259
|
-
}, null, -1),
|
|
3260
|
-
|
|
3261
|
-
],
|
|
3262
|
-
|
|
3263
|
-
],
|
|
3259
|
+
}, null, -1), cl = [
|
|
3260
|
+
ll
|
|
3261
|
+
], ul = ["aria-label"], dl = /* @__PURE__ */ f("path", { d: "M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" }, null, -1), hl = [
|
|
3262
|
+
dl
|
|
3263
|
+
], fl = ["aria-label"], pl = /* @__PURE__ */ f("path", {
|
|
3264
3264
|
"stroke-linecap": "round",
|
|
3265
3265
|
"stroke-linejoin": "round",
|
|
3266
3266
|
d: "M6 18L18 6M6 6l12 12"
|
|
3267
|
-
}, null, -1),
|
|
3268
|
-
|
|
3269
|
-
],
|
|
3270
|
-
|
|
3271
|
-
],
|
|
3267
|
+
}, null, -1), gl = [
|
|
3268
|
+
pl
|
|
3269
|
+
], ml = ["onClick"], vl = /* @__PURE__ */ f("path", { d: "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" }, null, -1), bl = [
|
|
3270
|
+
vl
|
|
3271
|
+
], yl = { class: "flex leading-5" }, Sl = /* @__PURE__ */ f("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), wl = ["title", "onClick"], _l = {
|
|
3272
3272
|
key: 0,
|
|
3273
3273
|
class: "animate-spin p-1 h-6 w-6 text-white ml-auto",
|
|
3274
3274
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3275
3275
|
fill: "none",
|
|
3276
3276
|
viewBox: "0 0 24 24"
|
|
3277
|
-
},
|
|
3277
|
+
}, xl = /* @__PURE__ */ f("circle", {
|
|
3278
3278
|
class: "opacity-25 stroke-blue-900 dark:stroke-blue-100",
|
|
3279
3279
|
cx: "12",
|
|
3280
3280
|
cy: "12",
|
|
3281
3281
|
r: "10",
|
|
3282
3282
|
stroke: "currentColor",
|
|
3283
3283
|
"stroke-width": "4"
|
|
3284
|
-
}, null, -1),
|
|
3284
|
+
}, null, -1), kl = /* @__PURE__ */ f("path", {
|
|
3285
3285
|
class: "opacity-75",
|
|
3286
3286
|
fill: "currentColor",
|
|
3287
3287
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
3288
|
-
}, null, -1),
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
],
|
|
3288
|
+
}, null, -1), Dl = [
|
|
3289
|
+
xl,
|
|
3290
|
+
kl
|
|
3291
|
+
], Cl = {
|
|
3292
3292
|
key: 3,
|
|
3293
3293
|
class: "relative flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full"
|
|
3294
|
-
},
|
|
3294
|
+
}, Ml = /* @__PURE__ */ f("svg", {
|
|
3295
3295
|
class: "h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",
|
|
3296
3296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3297
3297
|
viewBox: "0 0 20 20",
|
|
@@ -3302,15 +3302,15 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3302
3302
|
"stroke-linejoin": "round",
|
|
3303
3303
|
d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
|
|
3304
3304
|
})
|
|
3305
|
-
], -1),
|
|
3305
|
+
], -1), El = /* @__PURE__ */ f("div", { class: "w-full" }, null, -1), $l = ["onKeydown", "placeholder"], Tl = /* @__PURE__ */ f("path", {
|
|
3306
3306
|
"stroke-linecap": "round",
|
|
3307
3307
|
"stroke-linejoin": "round",
|
|
3308
3308
|
d: "M6 18L18 6M6 6l12 12"
|
|
3309
|
-
}, null, -1),
|
|
3310
|
-
|
|
3311
|
-
],
|
|
3309
|
+
}, null, -1), Il = [
|
|
3310
|
+
Tl
|
|
3311
|
+
], Al = {
|
|
3312
3312
|
name: "VFBreadcrumb"
|
|
3313
|
-
},
|
|
3313
|
+
}, Ll = /* @__PURE__ */ Object.assign(Al, {
|
|
3314
3314
|
props: {
|
|
3315
3315
|
data: Object
|
|
3316
3316
|
},
|
|
@@ -3337,7 +3337,7 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3337
3337
|
});
|
|
3338
3338
|
const b = () => {
|
|
3339
3339
|
d.value = !0, Vt(() => g.value.focus());
|
|
3340
|
-
}, S =
|
|
3340
|
+
}, S = nl("", 400), T = () => v.value;
|
|
3341
3341
|
Rt(S, (V) => {
|
|
3342
3342
|
s.emit("vf-toast-clear"), s.emit("vf-search-query", { newQuery: V });
|
|
3343
3343
|
});
|
|
@@ -3357,7 +3357,7 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3357
3357
|
}, H = () => {
|
|
3358
3358
|
S.value == "" && p();
|
|
3359
3359
|
};
|
|
3360
|
-
return (V, j) => (w(), C("div",
|
|
3360
|
+
return (V, j) => (w(), C("div", il, [
|
|
3361
3361
|
f("span", {
|
|
3362
3362
|
"aria-label": x(l)("Go up a directory"),
|
|
3363
3363
|
"data-microtip-position": "bottom-right",
|
|
@@ -3374,8 +3374,8 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3374
3374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3375
3375
|
viewBox: "0 0 20 20",
|
|
3376
3376
|
fill: "currentColor"
|
|
3377
|
-
},
|
|
3378
|
-
], 8,
|
|
3377
|
+
}, cl, 34))
|
|
3378
|
+
], 8, al),
|
|
3379
3379
|
T() ? (w(), C("span", {
|
|
3380
3380
|
key: 1,
|
|
3381
3381
|
"aria-label": x(l)("Cancel"),
|
|
@@ -3390,8 +3390,8 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3390
3390
|
"stroke-width": "1.5",
|
|
3391
3391
|
stroke: "currentColor",
|
|
3392
3392
|
class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer"
|
|
3393
|
-
},
|
|
3394
|
-
], 8,
|
|
3393
|
+
}, gl))
|
|
3394
|
+
], 8, fl)) : (w(), C("span", {
|
|
3395
3395
|
key: 0,
|
|
3396
3396
|
"aria-label": x(l)("Refresh"),
|
|
3397
3397
|
"data-microtip-position": "bottom-right",
|
|
@@ -3405,11 +3405,11 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3405
3405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3406
3406
|
viewBox: "-40 -40 580 580",
|
|
3407
3407
|
fill: "currentColor"
|
|
3408
|
-
},
|
|
3409
|
-
], 8,
|
|
3410
|
-
d.value ? (w(), C("div",
|
|
3411
|
-
Cl,
|
|
3408
|
+
}, hl))
|
|
3409
|
+
], 8, ul)),
|
|
3410
|
+
d.value ? (w(), C("div", Cl, [
|
|
3412
3411
|
Ml,
|
|
3412
|
+
El,
|
|
3413
3413
|
ve(f("input", {
|
|
3414
3414
|
ref_key: "searchInput",
|
|
3415
3415
|
ref: g,
|
|
@@ -3419,7 +3419,7 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3419
3419
|
placeholder: x(l)("Search anything.."),
|
|
3420
3420
|
class: "absolute ml-4 pt-1 pb-0 px-2 border-0 ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",
|
|
3421
3421
|
type: "text"
|
|
3422
|
-
}, null, 40,
|
|
3422
|
+
}, null, 40, $l), [
|
|
3423
3423
|
[nt, x(S)]
|
|
3424
3424
|
]),
|
|
3425
3425
|
(w(), C("svg", {
|
|
@@ -3430,7 +3430,7 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3430
3430
|
viewBox: "0 0 24 24",
|
|
3431
3431
|
"stroke-width": "1.5",
|
|
3432
3432
|
stroke: "currentColor"
|
|
3433
|
-
},
|
|
3433
|
+
}, Il))
|
|
3434
3434
|
])) : (w(), C("div", {
|
|
3435
3435
|
key: 2,
|
|
3436
3436
|
class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",
|
|
@@ -3442,24 +3442,24 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3442
3442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3443
3443
|
viewBox: "0 0 20 20",
|
|
3444
3444
|
fill: "currentColor"
|
|
3445
|
-
},
|
|
3446
|
-
f("div",
|
|
3445
|
+
}, bl)),
|
|
3446
|
+
f("div", yl, [
|
|
3447
3447
|
(w(!0), C(le, null, we(i.value, (z, X) => (w(), C("div", { key: X }, [
|
|
3448
|
-
|
|
3448
|
+
Sl,
|
|
3449
3449
|
f("span", {
|
|
3450
3450
|
class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",
|
|
3451
3451
|
title: z.basename,
|
|
3452
3452
|
onClick: (D) => x(s).emit("vf-fetch", { params: { q: "index", adapter: r.data.adapter, path: z.path } })
|
|
3453
|
-
}, E(z.name), 9,
|
|
3453
|
+
}, E(z.name), 9, wl)
|
|
3454
3454
|
]))), 128))
|
|
3455
3455
|
]),
|
|
3456
|
-
T() ? (w(), C("svg",
|
|
3457
|
-
], 8,
|
|
3456
|
+
T() ? (w(), C("svg", _l, Dl)) : Z("", !0)
|
|
3457
|
+
], 8, ml))
|
|
3458
3458
|
]));
|
|
3459
3459
|
}
|
|
3460
|
-
}),
|
|
3460
|
+
}), Ol = ["onClick"], Pl = /* @__PURE__ */ f("span", { class: "px-1" }, null, -1), Nl = {
|
|
3461
3461
|
name: "VFContextMenu"
|
|
3462
|
-
},
|
|
3462
|
+
}, jl = /* @__PURE__ */ Object.assign(Nl, {
|
|
3463
3463
|
props: {
|
|
3464
3464
|
current: Object
|
|
3465
3465
|
},
|
|
@@ -3575,27 +3575,27 @@ const Ji = { class: "relative flex-auto flex flex-col overflow-hidden" }, Qi = {
|
|
|
3575
3575
|
key: k.title,
|
|
3576
3576
|
onClick: (I) => v(k)
|
|
3577
3577
|
}, [
|
|
3578
|
-
|
|
3578
|
+
Pl,
|
|
3579
3579
|
f("span", null, E(k.title()), 1)
|
|
3580
|
-
], 8,
|
|
3580
|
+
], 8, Ol))), 128))
|
|
3581
3581
|
], 4)) : Z("", !0);
|
|
3582
3582
|
}
|
|
3583
|
-
}),
|
|
3583
|
+
}), Rl = (r, e) => {
|
|
3584
3584
|
const s = r[e];
|
|
3585
3585
|
return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((o, a) => {
|
|
3586
3586
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(a.bind(null, new Error("Unknown variable dynamic import: " + e)));
|
|
3587
3587
|
});
|
|
3588
3588
|
};
|
|
3589
|
-
async function
|
|
3590
|
-
const e = await
|
|
3589
|
+
async function Vl(r) {
|
|
3590
|
+
const e = await Rl(/* @__PURE__ */ Object.assign({ "../locales/de.json": () => import("./de-81b457a7.js"), "../locales/en.json": () => import("./en-ed1f1848.js"), "../locales/fa.json": () => import("./fa-49628944.js"), "../locales/he.json": () => import("./he-736e9ea8.js"), "../locales/hi.json": () => import("./hi-a0031fe7.js"), "../locales/ru.json": () => import("./ru-d8535e72.js"), "../locales/sv.json": () => import("./sv-316febc7.js"), "../locales/tr.json": () => import("./tr-6f9ffcfe.js") }), `../locales/${r}.json`);
|
|
3591
3591
|
return JSON.parse(e.default);
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const { getStore: o, setStore: a } = Qt(r), i = L({}), d = (v) => {
|
|
3595
|
-
|
|
3596
|
-
i.value =
|
|
3597
|
-
}).catch((
|
|
3598
|
-
s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), d("
|
|
3593
|
+
function Bl(r, e, s) {
|
|
3594
|
+
const { getStore: o, setStore: a } = Qt(r), i = L({}), d = (v, p = "en") => {
|
|
3595
|
+
Vl(v).then((b) => {
|
|
3596
|
+
i.value = b, a("locale", v), a("translations", b), s.emit("vf-toast-push", { label: "The language is set to " + v });
|
|
3597
|
+
}).catch((b) => {
|
|
3598
|
+
p ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), d(p, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
|
|
3599
3599
|
});
|
|
3600
3600
|
};
|
|
3601
3601
|
o("locale") ? i.value = o("translations") : d(e);
|
|
@@ -3605,12 +3605,12 @@ function Vl(r, e, s) {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
return { t: l, changeLocale: d };
|
|
3607
3607
|
}
|
|
3608
|
-
const
|
|
3608
|
+
const zl = { class: "vuefinder" }, Hl = /* @__PURE__ */ f("iframe", {
|
|
3609
3609
|
id: "download_frame",
|
|
3610
3610
|
style: { display: "none" }
|
|
3611
|
-
}, null, -1),
|
|
3611
|
+
}, null, -1), Ul = {
|
|
3612
3612
|
name: "VueFinder"
|
|
3613
|
-
},
|
|
3613
|
+
}, Kl = /* @__PURE__ */ Object.assign(Ul, {
|
|
3614
3614
|
props: {
|
|
3615
3615
|
url: {
|
|
3616
3616
|
type: [String]
|
|
@@ -3645,13 +3645,13 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
},
|
|
3647
3647
|
setup(r) {
|
|
3648
|
-
const e = r, s =
|
|
3648
|
+
const e = r, s = Bo(), { setStore: o, getStore: a } = Qt(e.id), i = L(a("adapter"));
|
|
3649
3649
|
je("emitter", s), je("storage", Qt(e.id)), je("postData", e.postData), je("adapter", i), je("maxFileSize", e.maxFileSize), je("usePropDarkMode", e.usePropDarkMode);
|
|
3650
|
-
const d =
|
|
3650
|
+
const d = Bl(e.id, e.locale, s);
|
|
3651
3651
|
je("i18n", d);
|
|
3652
3652
|
const { apiUrl: g, setApiUrl: l } = Ae();
|
|
3653
3653
|
l(e.url);
|
|
3654
|
-
const v = Lt({ adapter: i.value, storages: [], dirname: ".", files: [] }), p = L(a("viewport", "grid")), b = e.usePropDarkMode ?
|
|
3654
|
+
const v = Lt({ adapter: i.value, storages: [], dirname: ".", files: [] }), p = L(a("viewport", "grid")), b = e.usePropDarkMode ? Ro(() => e.dark) : L(a("darkMode", e.dark));
|
|
3655
3655
|
s.on("vf-darkMode-toggle", () => {
|
|
3656
3656
|
b.value = !b.value, o("darkMode", b.value);
|
|
3657
3657
|
});
|
|
@@ -3692,7 +3692,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3692
3692
|
document.getElementById("download_frame").src = H, s.emit("vf-modal-close");
|
|
3693
3693
|
}), Me(() => {
|
|
3694
3694
|
s.emit("vf-fetch", { params: { q: "index", adapter: i.value } });
|
|
3695
|
-
}), (H, V) => (w(), C("div",
|
|
3695
|
+
}), (H, V) => (w(), C("div", zl, [
|
|
3696
3696
|
f("div", {
|
|
3697
3697
|
class: ce(x(b) ? "dark" : "")
|
|
3698
3698
|
}, [
|
|
@@ -3702,25 +3702,25 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3702
3702
|
onMousedown: V[0] || (V[0] = (j) => x(s).emit("vf-contextmenu-hide")),
|
|
3703
3703
|
onTouchstart: V[1] || (V[1] = (j) => x(s).emit("vf-contextmenu-hide"))
|
|
3704
3704
|
}, [
|
|
3705
|
-
Ce(
|
|
3706
|
-
Ce(
|
|
3707
|
-
Ce(
|
|
3705
|
+
Ce(Tn, { data: v }, null, 8, ["data"]),
|
|
3706
|
+
Ce(Ll, { data: v }, null, 8, ["data"]),
|
|
3707
|
+
Ce(Va, {
|
|
3708
3708
|
view: p.value,
|
|
3709
3709
|
data: v
|
|
3710
3710
|
}, null, 8, ["view", "data"]),
|
|
3711
|
-
Ce(
|
|
3711
|
+
Ce(sl, { data: v }, null, 8, ["data"])
|
|
3712
3712
|
], 38),
|
|
3713
|
-
k.active ? (w(), q(
|
|
3713
|
+
k.active ? (w(), q(Vo("v-f-modal-" + k.type), {
|
|
3714
3714
|
key: 0,
|
|
3715
3715
|
selection: k.data,
|
|
3716
3716
|
current: v
|
|
3717
3717
|
}, null, 8, ["selection", "current"])) : Z("", !0),
|
|
3718
|
-
Ce(
|
|
3719
|
-
|
|
3718
|
+
Ce(jl, { current: v }, null, 8, ["current"]),
|
|
3719
|
+
Hl
|
|
3720
3720
|
], 2)
|
|
3721
3721
|
]));
|
|
3722
3722
|
}
|
|
3723
|
-
}),
|
|
3723
|
+
}), Yl = /* @__PURE__ */ f("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Wl = { class: "fixed z-10 inset-0 overflow-hidden" }, Xl = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, Zl = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Fl = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, Le = {
|
|
3724
3724
|
__name: "ModalLayout",
|
|
3725
3725
|
setup(r) {
|
|
3726
3726
|
const e = P("emitter");
|
|
@@ -3735,17 +3735,17 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3735
3735
|
onKeyup: o[1] || (o[1] = ot((a) => x(e).emit("vf-modal-close"), ["esc"])),
|
|
3736
3736
|
tabindex: "0"
|
|
3737
3737
|
}, [
|
|
3738
|
-
|
|
3739
|
-
f("div",
|
|
3738
|
+
Yl,
|
|
3739
|
+
f("div", Wl, [
|
|
3740
3740
|
f("div", {
|
|
3741
3741
|
class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
|
|
3742
3742
|
onMousedown: o[0] || (o[0] = We((a) => x(e).emit("vf-modal-close"), ["self"]))
|
|
3743
3743
|
}, [
|
|
3744
|
-
f("div",
|
|
3745
|
-
f("div",
|
|
3744
|
+
f("div", Xl, [
|
|
3745
|
+
f("div", Zl, [
|
|
3746
3746
|
Jt(s.$slots, "default")
|
|
3747
3747
|
]),
|
|
3748
|
-
f("div",
|
|
3748
|
+
f("div", Fl, [
|
|
3749
3749
|
Jt(s.$slots, "buttons")
|
|
3750
3750
|
])
|
|
3751
3751
|
])
|
|
@@ -3753,7 +3753,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3753
3753
|
])
|
|
3754
3754
|
], 32));
|
|
3755
3755
|
}
|
|
3756
|
-
},
|
|
3756
|
+
}, ql = ["aria-label"], Gl = /* @__PURE__ */ f("svg", {
|
|
3757
3757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3758
3758
|
fill: "none",
|
|
3759
3759
|
viewBox: "0 0 24 24",
|
|
@@ -3766,11 +3766,11 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3766
3766
|
"stroke-linejoin": "round",
|
|
3767
3767
|
d: "M6 18L18 6M6 6l12 12"
|
|
3768
3768
|
})
|
|
3769
|
-
], -1),
|
|
3770
|
-
|
|
3771
|
-
],
|
|
3769
|
+
], -1), Jl = [
|
|
3770
|
+
Gl
|
|
3771
|
+
], Ql = {
|
|
3772
3772
|
name: "Message"
|
|
3773
|
-
}, Oe = /* @__PURE__ */ Object.assign(
|
|
3773
|
+
}, Oe = /* @__PURE__ */ Object.assign(Ql, {
|
|
3774
3774
|
props: {
|
|
3775
3775
|
error: {
|
|
3776
3776
|
type: Boolean,
|
|
@@ -3799,11 +3799,11 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3799
3799
|
"aria-label": x(s)("Close"),
|
|
3800
3800
|
"data-microtip-position": "top-left",
|
|
3801
3801
|
role: "tooltip"
|
|
3802
|
-
},
|
|
3802
|
+
}, Jl, 8, ql)
|
|
3803
3803
|
], 2))
|
|
3804
3804
|
]));
|
|
3805
3805
|
}
|
|
3806
|
-
}),
|
|
3806
|
+
}), ec = { class: "sm:flex sm:items-start" }, tc = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3807
3807
|
/* @__PURE__ */ f("svg", {
|
|
3808
3808
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3809
3809
|
class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
|
|
@@ -3818,10 +3818,10 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3818
3818
|
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
|
|
3819
3819
|
})
|
|
3820
3820
|
])
|
|
3821
|
-
], -1),
|
|
3821
|
+
], -1), rc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, sc = {
|
|
3822
3822
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3823
3823
|
id: "modal-title"
|
|
3824
|
-
},
|
|
3824
|
+
}, oc = { class: "mt-2" }, nc = { class: "text-sm text-gray-500" }, ic = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, ac = {
|
|
3825
3825
|
key: 0,
|
|
3826
3826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3827
3827
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -3829,13 +3829,13 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3829
3829
|
viewBox: "0 0 24 24",
|
|
3830
3830
|
stroke: "currentColor",
|
|
3831
3831
|
"stroke-width": "1"
|
|
3832
|
-
},
|
|
3832
|
+
}, lc = /* @__PURE__ */ f("path", {
|
|
3833
3833
|
"stroke-linecap": "round",
|
|
3834
3834
|
"stroke-linejoin": "round",
|
|
3835
3835
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3836
|
-
}, null, -1),
|
|
3837
|
-
|
|
3838
|
-
],
|
|
3836
|
+
}, null, -1), cc = [
|
|
3837
|
+
lc
|
|
3838
|
+
], uc = {
|
|
3839
3839
|
key: 1,
|
|
3840
3840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3841
3841
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -3843,15 +3843,15 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3843
3843
|
viewBox: "0 0 24 24",
|
|
3844
3844
|
stroke: "currentColor",
|
|
3845
3845
|
"stroke-width": "1"
|
|
3846
|
-
},
|
|
3846
|
+
}, dc = /* @__PURE__ */ f("path", {
|
|
3847
3847
|
"stroke-linecap": "round",
|
|
3848
3848
|
"stroke-linejoin": "round",
|
|
3849
3849
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
3850
|
-
}, null, -1),
|
|
3851
|
-
|
|
3852
|
-
],
|
|
3850
|
+
}, null, -1), hc = [
|
|
3851
|
+
dc
|
|
3852
|
+
], fc = { class: "ml-1.5" }, pc = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, gc = {
|
|
3853
3853
|
name: "VFModalDelete"
|
|
3854
|
-
},
|
|
3854
|
+
}, mc = /* @__PURE__ */ Object.assign(gc, {
|
|
3855
3855
|
props: {
|
|
3856
3856
|
selection: Object,
|
|
3857
3857
|
current: Object
|
|
@@ -3887,18 +3887,18 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3887
3887
|
onClick: v[1] || (v[1] = (p) => x(s).emit("vf-modal-close")),
|
|
3888
3888
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
3889
3889
|
}, E(x(a)("Cancel")), 1),
|
|
3890
|
-
f("div",
|
|
3890
|
+
f("div", pc, E(x(a)("This action cannot be undone.")), 1)
|
|
3891
3891
|
]),
|
|
3892
3892
|
default: F(() => [
|
|
3893
|
-
f("div",
|
|
3894
|
-
|
|
3895
|
-
f("div",
|
|
3896
|
-
f("h3",
|
|
3897
|
-
f("div",
|
|
3898
|
-
f("p",
|
|
3899
|
-
(w(!0), C(le, null, we(i.value, (p) => (w(), C("p",
|
|
3900
|
-
p.type == "dir" ? (w(), C("svg",
|
|
3901
|
-
f("span",
|
|
3893
|
+
f("div", ec, [
|
|
3894
|
+
tc,
|
|
3895
|
+
f("div", rc, [
|
|
3896
|
+
f("h3", sc, E(x(a)("Delete files")), 1),
|
|
3897
|
+
f("div", oc, [
|
|
3898
|
+
f("p", nc, E(x(a)("Are you sure you want to delete these files?")), 1),
|
|
3899
|
+
(w(!0), C(le, null, we(i.value, (p) => (w(), C("p", ic, [
|
|
3900
|
+
p.type == "dir" ? (w(), C("svg", ac, cc)) : (w(), C("svg", uc, hc)),
|
|
3901
|
+
f("span", fc, E(p.basename), 1)
|
|
3902
3902
|
]))), 256)),
|
|
3903
3903
|
d.value.length ? (w(), q(Oe, {
|
|
3904
3904
|
key: 0,
|
|
@@ -3917,7 +3917,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3917
3917
|
_: 1
|
|
3918
3918
|
}));
|
|
3919
3919
|
}
|
|
3920
|
-
}),
|
|
3920
|
+
}), vc = { class: "sm:flex sm:items-start" }, bc = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3921
3921
|
/* @__PURE__ */ f("svg", {
|
|
3922
3922
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3923
3923
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -3932,12 +3932,12 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3932
3932
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
3933
3933
|
})
|
|
3934
3934
|
])
|
|
3935
|
-
], -1),
|
|
3935
|
+
], -1), yc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Sc = {
|
|
3936
3936
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3937
3937
|
id: "modal-title"
|
|
3938
|
-
},
|
|
3938
|
+
}, wc = { class: "mt-2" }, _c = { class: "text-sm text-gray-500" }, xc = {
|
|
3939
3939
|
name: "VFModalMessage"
|
|
3940
|
-
},
|
|
3940
|
+
}, kc = /* @__PURE__ */ Object.assign(xc, {
|
|
3941
3941
|
props: {
|
|
3942
3942
|
selection: Object
|
|
3943
3943
|
},
|
|
@@ -3954,12 +3954,12 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3954
3954
|
default: F(() => {
|
|
3955
3955
|
var i, d;
|
|
3956
3956
|
return [
|
|
3957
|
-
f("div",
|
|
3958
|
-
|
|
3959
|
-
f("div",
|
|
3960
|
-
f("h3",
|
|
3961
|
-
f("div",
|
|
3962
|
-
f("p",
|
|
3957
|
+
f("div", vc, [
|
|
3958
|
+
bc,
|
|
3959
|
+
f("div", yc, [
|
|
3960
|
+
f("h3", Sc, E(((i = r.selection) == null ? void 0 : i.title) ?? "Title"), 1),
|
|
3961
|
+
f("div", wc, [
|
|
3962
|
+
f("p", _c, E(((d = r.selection) == null ? void 0 : d.message) ?? "Message") + ".", 1)
|
|
3963
3963
|
])
|
|
3964
3964
|
])
|
|
3965
3965
|
])
|
|
@@ -3968,7 +3968,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3968
3968
|
_: 1
|
|
3969
3969
|
}));
|
|
3970
3970
|
}
|
|
3971
|
-
}),
|
|
3971
|
+
}), Dc = { class: "sm:flex sm:items-start" }, Cc = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3972
3972
|
/* @__PURE__ */ f("svg", {
|
|
3973
3973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3974
3974
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -3983,12 +3983,12 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
3983
3983
|
d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
|
|
3984
3984
|
})
|
|
3985
3985
|
])
|
|
3986
|
-
], -1),
|
|
3986
|
+
], -1), Mc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ec = {
|
|
3987
3987
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3988
3988
|
id: "modal-title"
|
|
3989
|
-
},
|
|
3989
|
+
}, $c = { class: "mt-2" }, Tc = { class: "text-sm text-gray-500" }, Ic = ["onKeyup", "placeholder"], Ac = {
|
|
3990
3990
|
name: "VFModalNewFolder"
|
|
3991
|
-
},
|
|
3991
|
+
}, Lc = /* @__PURE__ */ Object.assign(Ac, {
|
|
3992
3992
|
props: {
|
|
3993
3993
|
selection: Object,
|
|
3994
3994
|
current: Object
|
|
@@ -4026,19 +4026,19 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4026
4026
|
}, E(x(a)("Cancel")), 1)
|
|
4027
4027
|
]),
|
|
4028
4028
|
default: F(() => [
|
|
4029
|
-
f("div",
|
|
4030
|
-
|
|
4031
|
-
f("div",
|
|
4032
|
-
f("h3",
|
|
4033
|
-
f("div",
|
|
4034
|
-
f("p",
|
|
4029
|
+
f("div", Dc, [
|
|
4030
|
+
Cc,
|
|
4031
|
+
f("div", Mc, [
|
|
4032
|
+
f("h3", Ec, E(x(a)("New Folder")), 1),
|
|
4033
|
+
f("div", $c, [
|
|
4034
|
+
f("p", Tc, E(x(a)("Create a new folder")), 1),
|
|
4035
4035
|
ve(f("input", {
|
|
4036
4036
|
"onUpdate:modelValue": v[0] || (v[0] = (p) => i.value = p),
|
|
4037
4037
|
onKeyup: ot(g, ["enter"]),
|
|
4038
4038
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
4039
4039
|
placeholder: x(a)("Folder Name"),
|
|
4040
4040
|
type: "text"
|
|
4041
|
-
}, null, 40,
|
|
4041
|
+
}, null, 40, Ic), [
|
|
4042
4042
|
[nt, i.value]
|
|
4043
4043
|
]),
|
|
4044
4044
|
d.value.length ? (w(), q(Oe, {
|
|
@@ -4058,7 +4058,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4058
4058
|
_: 1
|
|
4059
4059
|
}));
|
|
4060
4060
|
}
|
|
4061
|
-
}),
|
|
4061
|
+
}), Oc = { class: "sm:flex sm:items-start" }, Pc = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
4062
4062
|
/* @__PURE__ */ f("svg", {
|
|
4063
4063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4064
4064
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -4073,12 +4073,12 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4073
4073
|
d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
4074
4074
|
})
|
|
4075
4075
|
])
|
|
4076
|
-
], -1),
|
|
4076
|
+
], -1), Nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, jc = {
|
|
4077
4077
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4078
4078
|
id: "modal-title"
|
|
4079
|
-
},
|
|
4079
|
+
}, Rc = { class: "mt-2" }, Vc = { class: "text-sm text-gray-500" }, Bc = ["onKeyup", "placeholder"], zc = {
|
|
4080
4080
|
name: "VFModalNewFile"
|
|
4081
|
-
},
|
|
4081
|
+
}, Hc = /* @__PURE__ */ Object.assign(zc, {
|
|
4082
4082
|
props: {
|
|
4083
4083
|
selection: Object,
|
|
4084
4084
|
current: Object
|
|
@@ -4116,19 +4116,19 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4116
4116
|
}, E(x(a)("Cancel")), 1)
|
|
4117
4117
|
]),
|
|
4118
4118
|
default: F(() => [
|
|
4119
|
-
f("div",
|
|
4120
|
-
|
|
4121
|
-
f("div",
|
|
4122
|
-
f("h3",
|
|
4123
|
-
f("div",
|
|
4124
|
-
f("p",
|
|
4119
|
+
f("div", Oc, [
|
|
4120
|
+
Pc,
|
|
4121
|
+
f("div", Nc, [
|
|
4122
|
+
f("h3", jc, E(x(a)("New File")), 1),
|
|
4123
|
+
f("div", Rc, [
|
|
4124
|
+
f("p", Vc, E(x(a)("Create a new file")), 1),
|
|
4125
4125
|
ve(f("input", {
|
|
4126
4126
|
"onUpdate:modelValue": v[0] || (v[0] = (p) => i.value = p),
|
|
4127
4127
|
onKeyup: ot(g, ["enter"]),
|
|
4128
4128
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
4129
4129
|
placeholder: x(a)("File Name"),
|
|
4130
4130
|
type: "text"
|
|
4131
|
-
}, null, 40,
|
|
4131
|
+
}, null, 40, Bc), [
|
|
4132
4132
|
[nt, i.value]
|
|
4133
4133
|
]),
|
|
4134
4134
|
d.value.length ? (w(), q(Oe, {
|
|
@@ -4148,10 +4148,10 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4148
4148
|
_: 1
|
|
4149
4149
|
}));
|
|
4150
4150
|
}
|
|
4151
|
-
}),
|
|
4151
|
+
}), Uc = { class: "flex" }, Kc = ["aria-label"], Yc = { class: "ml-auto mb-2" }, Wc = {
|
|
4152
4152
|
key: 0,
|
|
4153
4153
|
class: "p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"
|
|
4154
|
-
},
|
|
4154
|
+
}, Xc = { key: 1 }, Zc = {
|
|
4155
4155
|
__name: "Text",
|
|
4156
4156
|
props: {
|
|
4157
4157
|
selection: Object
|
|
@@ -4188,15 +4188,15 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4188
4188
|
});
|
|
4189
4189
|
};
|
|
4190
4190
|
return (k, I) => (w(), C(le, null, [
|
|
4191
|
-
f("div",
|
|
4191
|
+
f("div", Uc, [
|
|
4192
4192
|
f("div", {
|
|
4193
4193
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4194
4194
|
id: "modal-title",
|
|
4195
4195
|
"aria-label": r.selection.item.path,
|
|
4196
4196
|
"data-microtip-position": "bottom-right",
|
|
4197
4197
|
role: "tooltip"
|
|
4198
|
-
}, E(r.selection.item.basename), 9,
|
|
4199
|
-
f("div",
|
|
4198
|
+
}, E(r.selection.item.basename), 9, Kc),
|
|
4199
|
+
f("div", Yc, [
|
|
4200
4200
|
d.value ? (w(), C("button", {
|
|
4201
4201
|
key: 0,
|
|
4202
4202
|
onClick: T,
|
|
@@ -4209,7 +4209,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4209
4209
|
])
|
|
4210
4210
|
]),
|
|
4211
4211
|
f("div", null, [
|
|
4212
|
-
d.value ? (w(), C("div",
|
|
4212
|
+
d.value ? (w(), C("div", Xc, [
|
|
4213
4213
|
ve(f("textarea", {
|
|
4214
4214
|
ref_key: "editInput",
|
|
4215
4215
|
ref: i,
|
|
@@ -4222,7 +4222,7 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4222
4222
|
}, null, 512), [
|
|
4223
4223
|
[nt, a.value]
|
|
4224
4224
|
])
|
|
4225
|
-
])) : (w(), C("pre",
|
|
4225
|
+
])) : (w(), C("pre", Wc, E(o.value), 1)),
|
|
4226
4226
|
l.value.length ? (w(), q(Oe, {
|
|
4227
4227
|
key: 2,
|
|
4228
4228
|
onHidden: I[2] || (I[2] = ($) => l.value = ""),
|
|
@@ -4238,13 +4238,13 @@ const Bl = { class: "vuefinder" }, zl = /* @__PURE__ */ f("iframe", {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
};
|
|
4240
4240
|
/*!
|
|
4241
|
-
* Cropper.js v1.
|
|
4241
|
+
* Cropper.js v1.6.1
|
|
4242
4242
|
* https://fengyuanchen.github.io/cropperjs
|
|
4243
4243
|
*
|
|
4244
4244
|
* Copyright 2015-present Chen Fengyuan
|
|
4245
4245
|
* Released under the MIT license
|
|
4246
4246
|
*
|
|
4247
|
-
* Date:
|
|
4247
|
+
* Date: 2023-09-17T03:44:19.860Z
|
|
4248
4248
|
*/
|
|
4249
4249
|
function Kr(r, e) {
|
|
4250
4250
|
var s = Object.keys(r);
|
|
@@ -4260,7 +4260,7 @@ function Bs(r) {
|
|
|
4260
4260
|
for (var e = 1; e < arguments.length; e++) {
|
|
4261
4261
|
var s = arguments[e] != null ? arguments[e] : {};
|
|
4262
4262
|
e % 2 ? Kr(Object(s), !0).forEach(function(o) {
|
|
4263
|
-
|
|
4263
|
+
Gc(r, o, s[o]);
|
|
4264
4264
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(s)) : Kr(Object(s)).forEach(function(o) {
|
|
4265
4265
|
Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(s, o));
|
|
4266
4266
|
});
|
|
@@ -4275,23 +4275,23 @@ function rr(r) {
|
|
|
4275
4275
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4276
4276
|
}, rr(r);
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function Fc(r, e) {
|
|
4279
4279
|
if (!(r instanceof e))
|
|
4280
4280
|
throw new TypeError("Cannot call a class as a function");
|
|
4281
4281
|
}
|
|
4282
4282
|
function Yr(r, e) {
|
|
4283
4283
|
for (var s = 0; s < e.length; s++) {
|
|
4284
4284
|
var o = e[s];
|
|
4285
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(r, o.key, o);
|
|
4285
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(r, Hs(o.key), o);
|
|
4286
4286
|
}
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4288
|
+
function qc(r, e, s) {
|
|
4289
4289
|
return e && Yr(r.prototype, e), s && Yr(r, s), Object.defineProperty(r, "prototype", {
|
|
4290
4290
|
writable: !1
|
|
4291
4291
|
}), r;
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4294
|
-
return e in r ? Object.defineProperty(r, e, {
|
|
4293
|
+
function Gc(r, e, s) {
|
|
4294
|
+
return e = Hs(e), e in r ? Object.defineProperty(r, e, {
|
|
4295
4295
|
value: s,
|
|
4296
4296
|
enumerable: !0,
|
|
4297
4297
|
configurable: !0,
|
|
@@ -4299,17 +4299,17 @@ function qc(r, e, s) {
|
|
|
4299
4299
|
}) : r[e] = s, r;
|
|
4300
4300
|
}
|
|
4301
4301
|
function zs(r) {
|
|
4302
|
-
return
|
|
4302
|
+
return Jc(r) || Qc(r) || eu(r) || tu();
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function Jc(r) {
|
|
4305
4305
|
if (Array.isArray(r))
|
|
4306
4306
|
return sr(r);
|
|
4307
4307
|
}
|
|
4308
|
-
function
|
|
4308
|
+
function Qc(r) {
|
|
4309
4309
|
if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null)
|
|
4310
4310
|
return Array.from(r);
|
|
4311
4311
|
}
|
|
4312
|
-
function
|
|
4312
|
+
function eu(r, e) {
|
|
4313
4313
|
if (r) {
|
|
4314
4314
|
if (typeof r == "string")
|
|
4315
4315
|
return sr(r, e);
|
|
@@ -4326,11 +4326,27 @@ function sr(r, e) {
|
|
|
4326
4326
|
o[s] = r[s];
|
|
4327
4327
|
return o;
|
|
4328
4328
|
}
|
|
4329
|
-
function
|
|
4329
|
+
function tu() {
|
|
4330
4330
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4331
4331
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4332
4332
|
}
|
|
4333
|
-
|
|
4333
|
+
function ru(r, e) {
|
|
4334
|
+
if (typeof r != "object" || r === null)
|
|
4335
|
+
return r;
|
|
4336
|
+
var s = r[Symbol.toPrimitive];
|
|
4337
|
+
if (s !== void 0) {
|
|
4338
|
+
var o = s.call(r, e || "default");
|
|
4339
|
+
if (typeof o != "object")
|
|
4340
|
+
return o;
|
|
4341
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4342
|
+
}
|
|
4343
|
+
return (e === "string" ? String : Number)(r);
|
|
4344
|
+
}
|
|
4345
|
+
function Hs(r) {
|
|
4346
|
+
var e = ru(r, "string");
|
|
4347
|
+
return typeof e == "symbol" ? e : String(e);
|
|
4348
|
+
}
|
|
4349
|
+
var Kt = typeof window < "u" && typeof window.document < "u", Ie = Kt ? window : {}, xr = Kt && Ie.document.documentElement ? "ontouchstart" in Ie.document.documentElement : !1, kr = Kt ? "PointerEvent" in Ie : !1, J = "cropper", Dr = "all", Us = "crop", Ks = "move", Ys = "zoom", Ke = "e", Ye = "w", Je = "s", Re = "n", ht = "ne", ft = "nw", pt = "se", gt = "sw", or = "".concat(J, "-crop"), Wr = "".concat(J, "-disabled"), he = "".concat(J, "-hidden"), Xr = "".concat(J, "-hide"), su = "".concat(J, "-invisible"), jt = "".concat(J, "-modal"), nr = "".concat(J, "-move"), yt = "".concat(J, "Action"), It = "".concat(J, "Preview"), Cr = "crop", Ws = "move", Xs = "none", ir = "crop", ar = "cropend", lr = "cropmove", cr = "cropstart", Zr = "dblclick", ou = xr ? "touchstart" : "mousedown", nu = xr ? "touchmove" : "mousemove", iu = xr ? "touchend touchcancel" : "mouseup", Fr = kr ? "pointerdown" : ou, qr = kr ? "pointermove" : nu, Gr = kr ? "pointerup pointercancel" : iu, Jr = "ready", Qr = "resize", es = "wheel", ur = "zoom", ts = "image/jpeg", au = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, lu = /^data:/, cu = /^data:image\/jpeg;base64,/, uu = /^img|canvas$/i, Zs = 200, Fs = 100, rs = {
|
|
4334
4350
|
// Define the view mode of the cropper
|
|
4335
4351
|
viewMode: 0,
|
|
4336
4352
|
// 0, 1, 2, 3
|
|
@@ -4392,8 +4408,8 @@ var Kt = typeof window < "u" && typeof window.document < "u", Ie = Kt ? window :
|
|
|
4392
4408
|
minCanvasHeight: 0,
|
|
4393
4409
|
minCropBoxWidth: 0,
|
|
4394
4410
|
minCropBoxHeight: 0,
|
|
4395
|
-
minContainerWidth:
|
|
4396
|
-
minContainerHeight:
|
|
4411
|
+
minContainerWidth: Zs,
|
|
4412
|
+
minContainerHeight: Fs,
|
|
4397
4413
|
// Shortcuts of events
|
|
4398
4414
|
ready: null,
|
|
4399
4415
|
cropstart: null,
|
|
@@ -4401,9 +4417,9 @@ var Kt = typeof window < "u" && typeof window.document < "u", Ie = Kt ? window :
|
|
|
4401
4417
|
cropend: null,
|
|
4402
4418
|
crop: null,
|
|
4403
4419
|
zoom: null
|
|
4404
|
-
},
|
|
4420
|
+
}, du = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', hu = Number.isNaN || Ie.isNaN;
|
|
4405
4421
|
function K(r) {
|
|
4406
|
-
return typeof r == "number" && !
|
|
4422
|
+
return typeof r == "number" && !hu(r);
|
|
4407
4423
|
}
|
|
4408
4424
|
var ss = function(e) {
|
|
4409
4425
|
return e > 0 && e < 1 / 0;
|
|
@@ -4414,13 +4430,13 @@ function Ft(r) {
|
|
|
4414
4430
|
function Ze(r) {
|
|
4415
4431
|
return rr(r) === "object" && r !== null;
|
|
4416
4432
|
}
|
|
4417
|
-
var
|
|
4433
|
+
var fu = Object.prototype.hasOwnProperty;
|
|
4418
4434
|
function Qe(r) {
|
|
4419
4435
|
if (!Ze(r))
|
|
4420
4436
|
return !1;
|
|
4421
4437
|
try {
|
|
4422
4438
|
var e = r.constructor, s = e.prototype;
|
|
4423
|
-
return e && s &&
|
|
4439
|
+
return e && s && fu.call(s, "isPrototypeOf");
|
|
4424
4440
|
} catch {
|
|
4425
4441
|
return !1;
|
|
4426
4442
|
}
|
|
@@ -4428,12 +4444,12 @@ function Qe(r) {
|
|
|
4428
4444
|
function de(r) {
|
|
4429
4445
|
return typeof r == "function";
|
|
4430
4446
|
}
|
|
4431
|
-
var
|
|
4432
|
-
function
|
|
4433
|
-
return Array.from ? Array.from(r) :
|
|
4447
|
+
var pu = Array.prototype.slice;
|
|
4448
|
+
function qs(r) {
|
|
4449
|
+
return Array.from ? Array.from(r) : pu.call(r);
|
|
4434
4450
|
}
|
|
4435
4451
|
function re(r, e) {
|
|
4436
|
-
return r && de(e) && (Array.isArray(r) || K(r.length) ?
|
|
4452
|
+
return r && de(e) && (Array.isArray(r) || K(r.length) ? qs(r).forEach(function(s, o) {
|
|
4437
4453
|
e.call(r, s, o, r);
|
|
4438
4454
|
}) : Ze(r) && Object.keys(r).forEach(function(s) {
|
|
4439
4455
|
e.call(r, r[s], s, r);
|
|
@@ -4447,19 +4463,19 @@ var Q = Object.assign || function(e) {
|
|
|
4447
4463
|
e[d] = i[d];
|
|
4448
4464
|
});
|
|
4449
4465
|
}), e;
|
|
4450
|
-
},
|
|
4466
|
+
}, gu = /\.\d*(?:0|9){12}\d*$/;
|
|
4451
4467
|
function tt(r) {
|
|
4452
4468
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
|
|
4453
|
-
return
|
|
4469
|
+
return gu.test(r) ? Math.round(r * e) / e : r;
|
|
4454
4470
|
}
|
|
4455
|
-
var
|
|
4471
|
+
var mu = /^width|height|left|top|marginLeft|marginTop$/;
|
|
4456
4472
|
function Ve(r, e) {
|
|
4457
4473
|
var s = r.style;
|
|
4458
4474
|
re(e, function(o, a) {
|
|
4459
|
-
|
|
4475
|
+
mu.test(a) && K(o) && (o = "".concat(o, "px")), s[a] = o;
|
|
4460
4476
|
});
|
|
4461
4477
|
}
|
|
4462
|
-
function
|
|
4478
|
+
function vu(r, e) {
|
|
4463
4479
|
return r.classList ? r.classList.contains(e) : r.className.indexOf(e) > -1;
|
|
4464
4480
|
}
|
|
4465
4481
|
function ae(r, e) {
|
|
@@ -4504,9 +4520,9 @@ function et(r, e, s) {
|
|
|
4504
4520
|
s ? ae(r, e) : Te(r, e);
|
|
4505
4521
|
}
|
|
4506
4522
|
}
|
|
4507
|
-
var
|
|
4523
|
+
var bu = /([a-z\d])([A-Z])/g;
|
|
4508
4524
|
function Mr(r) {
|
|
4509
|
-
return r.replace(
|
|
4525
|
+
return r.replace(bu, "$1-$2").toLowerCase();
|
|
4510
4526
|
}
|
|
4511
4527
|
function dr(r, e) {
|
|
4512
4528
|
return Ze(r[e]) ? r[e] : r.dataset ? r.dataset[e] : r.getAttribute("data-".concat(Mr(e)));
|
|
@@ -4514,7 +4530,7 @@ function dr(r, e) {
|
|
|
4514
4530
|
function St(r, e, s) {
|
|
4515
4531
|
Ze(s) ? r[e] = s : r.dataset ? r.dataset[e] = s : r.setAttribute("data-".concat(Mr(e)), s);
|
|
4516
4532
|
}
|
|
4517
|
-
function
|
|
4533
|
+
function yu(r, e) {
|
|
4518
4534
|
if (Ze(r[e]))
|
|
4519
4535
|
try {
|
|
4520
4536
|
delete r[e];
|
|
@@ -4530,7 +4546,7 @@ function vu(r, e) {
|
|
|
4530
4546
|
else
|
|
4531
4547
|
r.removeAttribute("data-".concat(Mr(e)));
|
|
4532
4548
|
}
|
|
4533
|
-
var
|
|
4549
|
+
var Gs = /\s\s*/, Js = function() {
|
|
4534
4550
|
var r = !1;
|
|
4535
4551
|
if (Kt) {
|
|
4536
4552
|
var e = !1, s = function() {
|
|
@@ -4553,8 +4569,8 @@ var qs = /\s\s*/, Gs = function() {
|
|
|
4553
4569
|
}();
|
|
4554
4570
|
function De(r, e, s) {
|
|
4555
4571
|
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = s;
|
|
4556
|
-
e.trim().split(
|
|
4557
|
-
if (!
|
|
4572
|
+
e.trim().split(Gs).forEach(function(i) {
|
|
4573
|
+
if (!Js) {
|
|
4558
4574
|
var d = r.listeners;
|
|
4559
4575
|
d && d[i] && d[i][s] && (a = d[i][s], delete d[i][s], Object.keys(d[i]).length === 0 && delete d[i], Object.keys(d).length === 0 && delete r.listeners);
|
|
4560
4576
|
}
|
|
@@ -4563,8 +4579,8 @@ function De(r, e, s) {
|
|
|
4563
4579
|
}
|
|
4564
4580
|
function Se(r, e, s) {
|
|
4565
4581
|
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = s;
|
|
4566
|
-
e.trim().split(
|
|
4567
|
-
if (o.once && !
|
|
4582
|
+
e.trim().split(Gs).forEach(function(i) {
|
|
4583
|
+
if (o.once && !Js) {
|
|
4568
4584
|
var d = r.listeners, g = d === void 0 ? {} : d;
|
|
4569
4585
|
a = function() {
|
|
4570
4586
|
delete g[i][s], r.removeEventListener(i, a, o);
|
|
@@ -4584,16 +4600,16 @@ function rt(r, e, s) {
|
|
|
4584
4600
|
cancelable: !0
|
|
4585
4601
|
}) : (o = document.createEvent("CustomEvent"), o.initCustomEvent(e, !0, !0, s)), r.dispatchEvent(o);
|
|
4586
4602
|
}
|
|
4587
|
-
function
|
|
4603
|
+
function Qs(r) {
|
|
4588
4604
|
var e = r.getBoundingClientRect();
|
|
4589
4605
|
return {
|
|
4590
4606
|
left: e.left + (window.pageXOffset - document.documentElement.clientLeft),
|
|
4591
4607
|
top: e.top + (window.pageYOffset - document.documentElement.clientTop)
|
|
4592
4608
|
};
|
|
4593
4609
|
}
|
|
4594
|
-
var qt = Ie.location,
|
|
4610
|
+
var qt = Ie.location, Su = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
4595
4611
|
function os(r) {
|
|
4596
|
-
var e = r.match(
|
|
4612
|
+
var e = r.match(Su);
|
|
4597
4613
|
return e !== null && (e[1] !== qt.protocol || e[2] !== qt.hostname || e[3] !== qt.port);
|
|
4598
4614
|
}
|
|
4599
4615
|
function ns(r) {
|
|
@@ -4610,7 +4626,7 @@ function vt(r) {
|
|
|
4610
4626
|
transform: g
|
|
4611
4627
|
};
|
|
4612
4628
|
}
|
|
4613
|
-
function
|
|
4629
|
+
function wu(r) {
|
|
4614
4630
|
var e = Bs({}, r), s = 0;
|
|
4615
4631
|
return re(r, function(o, a) {
|
|
4616
4632
|
delete e[a], re(e, function(i) {
|
|
@@ -4629,7 +4645,7 @@ function At(r, e) {
|
|
|
4629
4645
|
startY: o
|
|
4630
4646
|
}, a);
|
|
4631
4647
|
}
|
|
4632
|
-
function
|
|
4648
|
+
function _u(r) {
|
|
4633
4649
|
var e = 0, s = 0, o = 0;
|
|
4634
4650
|
return re(r, function(a) {
|
|
4635
4651
|
var i = a.startX, d = a.startY;
|
|
@@ -4651,7 +4667,7 @@ function Be(r) {
|
|
|
4651
4667
|
height: s
|
|
4652
4668
|
};
|
|
4653
4669
|
}
|
|
4654
|
-
function
|
|
4670
|
+
function xu(r) {
|
|
4655
4671
|
var e = r.width, s = r.height, o = r.degree;
|
|
4656
4672
|
if (o = Math.abs(o) % 180, o === 90)
|
|
4657
4673
|
return {
|
|
@@ -4667,7 +4683,7 @@ function wu(r) {
|
|
|
4667
4683
|
height: l
|
|
4668
4684
|
};
|
|
4669
4685
|
}
|
|
4670
|
-
function
|
|
4686
|
+
function ku(r, e, s, o) {
|
|
4671
4687
|
var a = e.aspectRatio, i = e.naturalWidth, d = e.naturalHeight, g = e.rotate, l = g === void 0 ? 0 : g, v = e.scaleX, p = v === void 0 ? 1 : v, b = e.scaleY, S = b === void 0 ? 1 : b, T = s.aspectRatio, k = s.naturalWidth, I = s.naturalHeight, $ = o.fillColor, H = $ === void 0 ? "transparent" : $, V = o.imageSmoothingEnabled, j = V === void 0 ? !0 : V, z = o.imageSmoothingQuality, X = z === void 0 ? "low" : z, D = o.maxWidth, N = D === void 0 ? 1 / 0 : D, G = o.maxHeight, oe = G === void 0 ? 1 / 0 : G, te = o.minWidth, ue = te === void 0 ? 0 : te, be = o.minHeight, pe = be === void 0 ? 0 : be, ge = document.createElement("canvas"), A = ge.getContext("2d"), R = Be({
|
|
4672
4688
|
aspectRatio: T,
|
|
4673
4689
|
width: N,
|
|
@@ -4689,27 +4705,27 @@ function _u(r, e, s, o) {
|
|
|
4689
4705
|
return Math.floor(tt(Ct));
|
|
4690
4706
|
})))), A.restore(), ge;
|
|
4691
4707
|
}
|
|
4692
|
-
var
|
|
4693
|
-
function
|
|
4708
|
+
var eo = String.fromCharCode;
|
|
4709
|
+
function Du(r, e, s) {
|
|
4694
4710
|
var o = "";
|
|
4695
4711
|
s += e;
|
|
4696
4712
|
for (var a = e; a < s; a += 1)
|
|
4697
|
-
o +=
|
|
4713
|
+
o += eo(r.getUint8(a));
|
|
4698
4714
|
return o;
|
|
4699
4715
|
}
|
|
4700
|
-
var
|
|
4701
|
-
function
|
|
4702
|
-
var e = r.replace(
|
|
4716
|
+
var Cu = /^data:.*,/;
|
|
4717
|
+
function Mu(r) {
|
|
4718
|
+
var e = r.replace(Cu, ""), s = atob(e), o = new ArrayBuffer(s.length), a = new Uint8Array(o);
|
|
4703
4719
|
return re(a, function(i, d) {
|
|
4704
4720
|
a[d] = s.charCodeAt(d);
|
|
4705
4721
|
}), o;
|
|
4706
4722
|
}
|
|
4707
|
-
function
|
|
4723
|
+
function Eu(r, e) {
|
|
4708
4724
|
for (var s = [], o = 8192, a = new Uint8Array(r); a.length > 0; )
|
|
4709
|
-
s.push(
|
|
4725
|
+
s.push(eo.apply(null, qs(a.subarray(0, o)))), a = a.subarray(o);
|
|
4710
4726
|
return "data:".concat(e, ";base64,").concat(btoa(s.join("")));
|
|
4711
4727
|
}
|
|
4712
|
-
function
|
|
4728
|
+
function $u(r) {
|
|
4713
4729
|
var e = new DataView(r), s;
|
|
4714
4730
|
try {
|
|
4715
4731
|
var o, a, i;
|
|
@@ -4723,7 +4739,7 @@ function Mu(r) {
|
|
|
4723
4739
|
}
|
|
4724
4740
|
if (a) {
|
|
4725
4741
|
var l = a + 4, v = a + 10;
|
|
4726
|
-
if (
|
|
4742
|
+
if (Du(e, l, 4) === "Exif") {
|
|
4727
4743
|
var p = e.getUint16(v);
|
|
4728
4744
|
if (o = p === 18761, (o || p === 19789) && e.getUint16(v + 2, o) === 42) {
|
|
4729
4745
|
var b = e.getUint32(v + 4, o);
|
|
@@ -4744,7 +4760,7 @@ function Mu(r) {
|
|
|
4744
4760
|
}
|
|
4745
4761
|
return s;
|
|
4746
4762
|
}
|
|
4747
|
-
function
|
|
4763
|
+
function Tu(r) {
|
|
4748
4764
|
var e = 0, s = 1, o = 1;
|
|
4749
4765
|
switch (r) {
|
|
4750
4766
|
case 2:
|
|
@@ -4775,7 +4791,7 @@ function Eu(r) {
|
|
|
4775
4791
|
scaleY: o
|
|
4776
4792
|
};
|
|
4777
4793
|
}
|
|
4778
|
-
var
|
|
4794
|
+
var Iu = {
|
|
4779
4795
|
render: function() {
|
|
4780
4796
|
this.initContainer(), this.initCanvas(), this.initCropBox(), this.renderCanvas(), this.cropped && this.renderCropBox();
|
|
4781
4797
|
},
|
|
@@ -4783,8 +4799,8 @@ var $u = {
|
|
|
4783
4799
|
var e = this.element, s = this.options, o = this.container, a = this.cropper, i = Number(s.minContainerWidth), d = Number(s.minContainerHeight);
|
|
4784
4800
|
ae(a, he), Te(e, he);
|
|
4785
4801
|
var g = {
|
|
4786
|
-
width: Math.max(o.offsetWidth, i >= 0 ? i :
|
|
4787
|
-
height: Math.max(o.offsetHeight, d >= 0 ? d :
|
|
4802
|
+
width: Math.max(o.offsetWidth, i >= 0 ? i : Zs),
|
|
4803
|
+
height: Math.max(o.offsetHeight, d >= 0 ? d : Fs)
|
|
4788
4804
|
};
|
|
4789
4805
|
this.containerData = g, Ve(a, {
|
|
4790
4806
|
width: g.width,
|
|
@@ -4826,7 +4842,7 @@ var $u = {
|
|
|
4826
4842
|
renderCanvas: function(e, s) {
|
|
4827
4843
|
var o = this.canvasData, a = this.imageData;
|
|
4828
4844
|
if (s) {
|
|
4829
|
-
var i =
|
|
4845
|
+
var i = xu({
|
|
4830
4846
|
width: a.naturalWidth * Math.abs(a.scaleX || 1),
|
|
4831
4847
|
height: a.naturalHeight * Math.abs(a.scaleY || 1),
|
|
4832
4848
|
degree: a.rotate || 0
|
|
@@ -4873,7 +4889,7 @@ var $u = {
|
|
|
4873
4889
|
},
|
|
4874
4890
|
renderCropBox: function() {
|
|
4875
4891
|
var e = this.options, s = this.containerData, o = this.cropBoxData;
|
|
4876
|
-
(o.width > o.maxWidth || o.width < o.minWidth) && (o.left = o.oldLeft), (o.height > o.maxHeight || o.height < o.minHeight) && (o.top = o.oldTop), o.width = Math.min(Math.max(o.width, o.minWidth), o.maxWidth), o.height = Math.min(Math.max(o.height, o.minHeight), o.maxHeight), this.limitCropBox(!1, !0), o.left = Math.min(Math.max(o.left, o.minLeft), o.maxLeft), o.top = Math.min(Math.max(o.top, o.minTop), o.maxTop), o.oldLeft = o.left, o.oldTop = o.top, e.movable && e.cropBoxMovable && St(this.face, yt, o.width >= s.width && o.height >= s.height ?
|
|
4892
|
+
(o.width > o.maxWidth || o.width < o.minWidth) && (o.left = o.oldLeft), (o.height > o.maxHeight || o.height < o.minHeight) && (o.top = o.oldTop), o.width = Math.min(Math.max(o.width, o.minWidth), o.maxWidth), o.height = Math.min(Math.max(o.height, o.minHeight), o.maxHeight), this.limitCropBox(!1, !0), o.left = Math.min(Math.max(o.left, o.minLeft), o.maxLeft), o.top = Math.min(Math.max(o.top, o.minTop), o.maxTop), o.oldLeft = o.left, o.oldTop = o.top, e.movable && e.cropBoxMovable && St(this.face, yt, o.width >= s.width && o.height >= s.height ? Ks : Dr), Ve(this.cropBox, Q({
|
|
4877
4893
|
width: o.width,
|
|
4878
4894
|
height: o.height
|
|
4879
4895
|
}, vt({
|
|
@@ -4884,7 +4900,7 @@ var $u = {
|
|
|
4884
4900
|
output: function() {
|
|
4885
4901
|
this.preview(), rt(this.element, ir, this.getData());
|
|
4886
4902
|
}
|
|
4887
|
-
},
|
|
4903
|
+
}, Au = {
|
|
4888
4904
|
initPreview: function() {
|
|
4889
4905
|
var e = this.element, s = this.crossOrigin, o = this.options.preview, a = s ? this.crossOriginUrl : this.url, i = e.alt || "The image to preview", d = document.createElement("img");
|
|
4890
4906
|
if (s && (d.crossOrigin = s), d.src = a, d.alt = i, this.viewBox.appendChild(d), this.viewBoxImage = d, !!o) {
|
|
@@ -4905,7 +4921,7 @@ var $u = {
|
|
|
4905
4921
|
Ve(e, {
|
|
4906
4922
|
width: s.width,
|
|
4907
4923
|
height: s.height
|
|
4908
|
-
}), e.innerHTML = s.html,
|
|
4924
|
+
}), e.innerHTML = s.html, yu(e, It);
|
|
4909
4925
|
});
|
|
4910
4926
|
},
|
|
4911
4927
|
preview: function() {
|
|
@@ -4930,7 +4946,7 @@ var $u = {
|
|
|
4930
4946
|
}, e))));
|
|
4931
4947
|
}));
|
|
4932
4948
|
}
|
|
4933
|
-
},
|
|
4949
|
+
}, Lu = {
|
|
4934
4950
|
bind: function() {
|
|
4935
4951
|
var e = this.element, s = this.options, o = this.cropper;
|
|
4936
4952
|
de(s.cropstart) && Se(e, cr, s.cropstart), de(s.cropmove) && Se(e, lr, s.cropmove), de(s.cropend) && Se(e, ar, s.cropend), de(s.crop) && Se(e, ir, s.crop), de(s.zoom) && Se(e, ur, s.zoom), Se(o, Fr, this.onCropStart = this.cropStart.bind(this)), s.zoomable && s.zoomOnWheel && Se(o, es, this.onWheel = this.wheel.bind(this), {
|
|
@@ -4945,7 +4961,7 @@ var $u = {
|
|
|
4945
4961
|
capture: !0
|
|
4946
4962
|
}), s.toggleDragModeOnDblclick && De(o, Zr, this.onDblclick), De(e.ownerDocument, qr, this.onCropMove), De(e.ownerDocument, Gr, this.onCropEnd), s.responsive && De(window, Qr, this.onResize);
|
|
4947
4963
|
}
|
|
4948
|
-
},
|
|
4964
|
+
}, Ou = {
|
|
4949
4965
|
resize: function() {
|
|
4950
4966
|
if (!this.disabled) {
|
|
4951
4967
|
var e = this.options, s = this.container, o = this.containerData, a = s.offsetWidth / o.width, i = s.offsetHeight / o.height, d = Math.abs(a - 1) > Math.abs(i - 1) ? a : i;
|
|
@@ -4960,7 +4976,7 @@ var $u = {
|
|
|
4960
4976
|
}
|
|
4961
4977
|
},
|
|
4962
4978
|
dblclick: function() {
|
|
4963
|
-
this.disabled || this.options.dragMode ===
|
|
4979
|
+
this.disabled || this.options.dragMode === Xs || this.setDragMode(vu(this.dragBox, or) ? Ws : Cr);
|
|
4964
4980
|
},
|
|
4965
4981
|
wheel: function(e) {
|
|
4966
4982
|
var s = this, o = Number(this.options.wheelZoomRatio) || 0.1, a = 1;
|
|
@@ -4975,10 +4991,10 @@ var $u = {
|
|
|
4975
4991
|
var a = this.options, i = this.pointers, d;
|
|
4976
4992
|
e.changedTouches ? re(e.changedTouches, function(g) {
|
|
4977
4993
|
i[g.identifier] = At(g);
|
|
4978
|
-
}) : i[e.pointerId || 0] = At(e), Object.keys(i).length > 1 && a.zoomable && a.zoomOnTouch ? d =
|
|
4994
|
+
}) : i[e.pointerId || 0] = At(e), Object.keys(i).length > 1 && a.zoomable && a.zoomOnTouch ? d = Ys : d = dr(e.target, yt), au.test(d) && rt(this.element, cr, {
|
|
4979
4995
|
originalEvent: e,
|
|
4980
4996
|
action: d
|
|
4981
|
-
}) !== !1 && (e.preventDefault(), this.action = d, this.cropping = !1, d ===
|
|
4997
|
+
}) !== !1 && (e.preventDefault(), this.action = d, this.cropping = !1, d === Us && (this.cropping = !0, ae(this.dragBox, jt)));
|
|
4982
4998
|
}
|
|
4983
4999
|
},
|
|
4984
5000
|
cropMove: function(e) {
|
|
@@ -5004,7 +5020,7 @@ var $u = {
|
|
|
5004
5020
|
}));
|
|
5005
5021
|
}
|
|
5006
5022
|
}
|
|
5007
|
-
},
|
|
5023
|
+
}, Pu = {
|
|
5008
5024
|
change: function(e) {
|
|
5009
5025
|
var s = this.options, o = this.canvasData, a = this.containerData, i = this.cropBoxData, d = this.pointers, g = this.action, l = s.aspectRatio, v = i.left, p = i.top, b = i.width, S = i.height, T = v + b, k = p + S, I = 0, $ = 0, H = a.width, V = a.height, j = !0, z;
|
|
5010
5026
|
!l && e.shiftKey && (l = b && S ? b / S : 1), this.limited && (I = i.minLeft, $ = i.minTop, H = I + Math.min(a.width, o.width, o.left + o.width), V = $ + Math.min(a.height, o.height, o.top + o.height));
|
|
@@ -5103,25 +5119,25 @@ var $u = {
|
|
|
5103
5119
|
N(Je), N(Ke), D.x >= 0 ? T < H ? b += D.x : D.y >= 0 && k >= V && (j = !1) : b += D.x, D.y >= 0 ? k < V && (S += D.y) : S += D.y;
|
|
5104
5120
|
b < 0 && S < 0 ? (g = ft, S = -S, b = -b, p -= S, v -= b) : b < 0 ? (g = gt, b = -b, v -= b) : S < 0 && (g = ht, S = -S, p -= S);
|
|
5105
5121
|
break;
|
|
5106
|
-
case
|
|
5122
|
+
case Ks:
|
|
5107
5123
|
this.move(D.x, D.y), j = !1;
|
|
5108
5124
|
break;
|
|
5109
|
-
case
|
|
5110
|
-
this.zoom(
|
|
5125
|
+
case Ys:
|
|
5126
|
+
this.zoom(wu(d), e), j = !1;
|
|
5111
5127
|
break;
|
|
5112
|
-
case
|
|
5128
|
+
case Us:
|
|
5113
5129
|
if (!D.x || !D.y) {
|
|
5114
5130
|
j = !1;
|
|
5115
5131
|
break;
|
|
5116
5132
|
}
|
|
5117
|
-
z =
|
|
5133
|
+
z = Qs(this.cropper), v = X.startX - z.left, p = X.startY - z.top, b = i.minWidth, S = i.minHeight, D.x > 0 ? g = D.y > 0 ? pt : ht : D.x < 0 && (v -= b, g = D.y > 0 ? gt : ft), D.y < 0 && (p -= S), this.cropped || (Te(this.cropBox, he), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
5118
5134
|
break;
|
|
5119
5135
|
}
|
|
5120
5136
|
j && (i.width = b, i.height = S, i.left = v, i.top = p, this.action = g, this.renderCropBox()), re(d, function(G) {
|
|
5121
5137
|
G.startX = G.endX, G.startY = G.endY;
|
|
5122
5138
|
});
|
|
5123
5139
|
}
|
|
5124
|
-
},
|
|
5140
|
+
}, Nu = {
|
|
5125
5141
|
// Show the crop box manually
|
|
5126
5142
|
crop: function() {
|
|
5127
5143
|
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && ae(this.dragBox, jt), Te(this.cropBox, he), this.setCropBoxData(this.initialCropBoxData)), this;
|
|
@@ -5215,7 +5231,7 @@ var $u = {
|
|
|
5215
5231
|
}) === !1)
|
|
5216
5232
|
return this;
|
|
5217
5233
|
if (o) {
|
|
5218
|
-
var S = this.pointers, T =
|
|
5234
|
+
var S = this.pointers, T = Qs(this.cropper), k = S && Object.keys(S).length ? _u(S) : {
|
|
5219
5235
|
pageX: o.pageX,
|
|
5220
5236
|
pageY: o.pageY
|
|
5221
5237
|
};
|
|
@@ -5379,10 +5395,10 @@ var $u = {
|
|
|
5379
5395
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5380
5396
|
if (!this.ready || !window.HTMLCanvasElement)
|
|
5381
5397
|
return null;
|
|
5382
|
-
var s = this.canvasData, o =
|
|
5398
|
+
var s = this.canvasData, o = ku(this.image, this.imageData, s, e);
|
|
5383
5399
|
if (!this.cropped)
|
|
5384
5400
|
return o;
|
|
5385
|
-
var a = this.getData(), i = a.x, d = a.y, g = a.width, l = a.height, v = o.width / Math.floor(s.naturalWidth);
|
|
5401
|
+
var a = this.getData(e.rounded), i = a.x, d = a.y, g = a.width, l = a.height, v = o.width / Math.floor(s.naturalWidth);
|
|
5386
5402
|
v !== 1 && (i *= v, d *= v, g *= v, l *= v);
|
|
5387
5403
|
var p = g / l, b = Be({
|
|
5388
5404
|
aspectRatio: p,
|
|
@@ -5430,19 +5446,19 @@ var $u = {
|
|
|
5430
5446
|
setDragMode: function(e) {
|
|
5431
5447
|
var s = this.options, o = this.dragBox, a = this.face;
|
|
5432
5448
|
if (this.ready && !this.disabled) {
|
|
5433
|
-
var i = e === Cr, d = s.movable && e ===
|
|
5434
|
-
e = i || d ? e :
|
|
5449
|
+
var i = e === Cr, d = s.movable && e === Ws;
|
|
5450
|
+
e = i || d ? e : Xs, s.dragMode = e, St(o, yt, e), et(o, or, i), et(o, nr, d), s.cropBoxMovable || (St(a, yt, e), et(a, or, i), et(a, nr, d));
|
|
5435
5451
|
}
|
|
5436
5452
|
return this;
|
|
5437
5453
|
}
|
|
5438
|
-
},
|
|
5454
|
+
}, ju = Ie.Cropper, to = /* @__PURE__ */ function() {
|
|
5439
5455
|
function r(e) {
|
|
5440
5456
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5441
|
-
if (
|
|
5457
|
+
if (Fc(this, r), !e || !uu.test(e.tagName))
|
|
5442
5458
|
throw new Error("The first argument is required and must be an <img> or <canvas> element.");
|
|
5443
5459
|
this.element = e, this.options = Q({}, rs, Qe(s) && s), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
|
|
5444
5460
|
}
|
|
5445
|
-
return
|
|
5461
|
+
return qc(r, [{
|
|
5446
5462
|
key: "init",
|
|
5447
5463
|
value: function() {
|
|
5448
5464
|
var s = this.element, o = s.tagName.toLowerCase(), a;
|
|
@@ -5467,8 +5483,8 @@ var $u = {
|
|
|
5467
5483
|
this.clone();
|
|
5468
5484
|
return;
|
|
5469
5485
|
}
|
|
5470
|
-
if (
|
|
5471
|
-
|
|
5486
|
+
if (lu.test(s)) {
|
|
5487
|
+
cu.test(s) ? this.read(Mu(s)) : this.clone();
|
|
5472
5488
|
return;
|
|
5473
5489
|
}
|
|
5474
5490
|
var d = new XMLHttpRequest(), g = this.clone.bind(this);
|
|
@@ -5484,10 +5500,10 @@ var $u = {
|
|
|
5484
5500
|
}, {
|
|
5485
5501
|
key: "read",
|
|
5486
5502
|
value: function(s) {
|
|
5487
|
-
var o = this.options, a = this.imageData, i =
|
|
5503
|
+
var o = this.options, a = this.imageData, i = $u(s), d = 0, g = 1, l = 1;
|
|
5488
5504
|
if (i > 1) {
|
|
5489
|
-
this.url =
|
|
5490
|
-
var v =
|
|
5505
|
+
this.url = Eu(s, ts);
|
|
5506
|
+
var v = Tu(i);
|
|
5491
5507
|
d = v.rotate, g = v.scaleX, l = v.scaleY;
|
|
5492
5508
|
}
|
|
5493
5509
|
o.rotatable && (a.rotate = d), o.scalable && (a.scaleX = g, a.scaleY = l), this.clone();
|
|
@@ -5532,9 +5548,9 @@ var $u = {
|
|
|
5532
5548
|
value: function() {
|
|
5533
5549
|
if (!(!this.sized || this.ready)) {
|
|
5534
5550
|
var s = this.element, o = this.options, a = this.image, i = s.parentNode, d = document.createElement("div");
|
|
5535
|
-
d.innerHTML =
|
|
5551
|
+
d.innerHTML = du;
|
|
5536
5552
|
var g = d.querySelector(".".concat(J, "-container")), l = g.querySelector(".".concat(J, "-canvas")), v = g.querySelector(".".concat(J, "-drag-box")), p = g.querySelector(".".concat(J, "-crop-box")), b = p.querySelector(".".concat(J, "-face"));
|
|
5537
|
-
this.container = i, this.cropper = g, this.canvas = l, this.dragBox = v, this.cropBox = p, this.viewBox = g.querySelector(".".concat(J, "-view-box")), this.face = b, l.appendChild(a), ae(s, he), i.insertBefore(g, s.nextSibling), Te(a, Xr), this.initPreview(), this.bind(), o.initialAspectRatio = Math.max(0, o.initialAspectRatio) || NaN, o.aspectRatio = Math.max(0, o.aspectRatio) || NaN, o.viewMode = Math.max(0, Math.min(3, Math.round(o.viewMode))) || 0, ae(p, he), o.guides || ae(p.getElementsByClassName("".concat(J, "-dashed")), he), o.center || ae(p.getElementsByClassName("".concat(J, "-center")), he), o.background && ae(g, "".concat(J, "-bg")), o.highlight || ae(b,
|
|
5553
|
+
this.container = i, this.cropper = g, this.canvas = l, this.dragBox = v, this.cropBox = p, this.viewBox = g.querySelector(".".concat(J, "-view-box")), this.face = b, l.appendChild(a), ae(s, he), i.insertBefore(g, s.nextSibling), Te(a, Xr), this.initPreview(), this.bind(), o.initialAspectRatio = Math.max(0, o.initialAspectRatio) || NaN, o.aspectRatio = Math.max(0, o.aspectRatio) || NaN, o.viewMode = Math.max(0, Math.min(3, Math.round(o.viewMode))) || 0, ae(p, he), o.guides || ae(p.getElementsByClassName("".concat(J, "-dashed")), he), o.center || ae(p.getElementsByClassName("".concat(J, "-center")), he), o.background && ae(g, "".concat(J, "-bg")), o.highlight || ae(b, su), o.cropBoxMovable && (ae(b, nr), St(b, yt, Dr)), o.cropBoxResizable || (ae(p.getElementsByClassName("".concat(J, "-line")), he), ae(p.getElementsByClassName("".concat(J, "-point")), he)), this.render(), this.ready = !0, this.setDragMode(o.dragMode), o.autoCrop && this.crop(), this.setData(o.data), de(o.ready) && Se(s, Jr, o.ready, {
|
|
5538
5554
|
once: !0
|
|
5539
5555
|
}), rt(s, Jr);
|
|
5540
5556
|
}
|
|
@@ -5560,7 +5576,7 @@ var $u = {
|
|
|
5560
5576
|
}], [{
|
|
5561
5577
|
key: "noConflict",
|
|
5562
5578
|
value: function() {
|
|
5563
|
-
return window.Cropper =
|
|
5579
|
+
return window.Cropper = ju, r;
|
|
5564
5580
|
}
|
|
5565
5581
|
/**
|
|
5566
5582
|
* Change the default options.
|
|
@@ -5573,8 +5589,8 @@ var $u = {
|
|
|
5573
5589
|
}
|
|
5574
5590
|
}]), r;
|
|
5575
5591
|
}();
|
|
5576
|
-
Q(
|
|
5577
|
-
const
|
|
5592
|
+
Q(to.prototype, Iu, Au, Lu, Ou, Pu, Nu);
|
|
5593
|
+
const Ru = { class: "flex" }, Vu = ["aria-label"], Bu = { class: "ml-auto mb-2" }, zu = { class: "w-full flex justify-center" }, Hu = ["src"], Uu = {
|
|
5578
5594
|
__name: "Image",
|
|
5579
5595
|
props: {
|
|
5580
5596
|
selection: Object
|
|
@@ -5582,7 +5598,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5582
5598
|
emits: ["load"],
|
|
5583
5599
|
setup(r, { emit: e }) {
|
|
5584
5600
|
const s = r, { t: o } = P("i18n"), { apiUrl: a } = Ae(), i = L(null), d = L(null), g = L(!1), l = L(""), v = L(!1), p = () => {
|
|
5585
|
-
g.value = !g.value, g.value ? d.value = new
|
|
5601
|
+
g.value = !g.value, g.value ? d.value = new to(i.value, {
|
|
5586
5602
|
crop(T) {
|
|
5587
5603
|
}
|
|
5588
5604
|
}) : d.value.destroy();
|
|
@@ -5613,15 +5629,15 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5613
5629
|
return Me(() => {
|
|
5614
5630
|
e("load");
|
|
5615
5631
|
}), (T, k) => (w(), C(le, null, [
|
|
5616
|
-
f("div",
|
|
5632
|
+
f("div", Ru, [
|
|
5617
5633
|
f("h3", {
|
|
5618
5634
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5619
5635
|
id: "modal-title",
|
|
5620
5636
|
"aria-label": r.selection.item.path,
|
|
5621
5637
|
"data-microtip-position": "bottom-right",
|
|
5622
5638
|
role: "tooltip"
|
|
5623
|
-
}, E(r.selection.item.basename), 9,
|
|
5624
|
-
f("div",
|
|
5639
|
+
}, E(r.selection.item.basename), 9, Vu),
|
|
5640
|
+
f("div", Bu, [
|
|
5625
5641
|
g.value ? (w(), C("button", {
|
|
5626
5642
|
key: 0,
|
|
5627
5643
|
onClick: S,
|
|
@@ -5633,14 +5649,14 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5633
5649
|
}, E(g.value ? x(o)("Cancel") : x(o)("Edit")), 1)
|
|
5634
5650
|
])
|
|
5635
5651
|
]),
|
|
5636
|
-
f("div",
|
|
5652
|
+
f("div", zu, [
|
|
5637
5653
|
f("img", {
|
|
5638
5654
|
ref_key: "image",
|
|
5639
5655
|
ref: i,
|
|
5640
5656
|
class: "max-w-[50vh] max-h-[50vh]",
|
|
5641
5657
|
src: x(er)(s.selection.adapter, s.selection.item.path),
|
|
5642
5658
|
alt: ""
|
|
5643
|
-
}, null, 8,
|
|
5659
|
+
}, null, 8, Hu)
|
|
5644
5660
|
]),
|
|
5645
5661
|
l.value.length ? (w(), q(Oe, {
|
|
5646
5662
|
key: 0,
|
|
@@ -5654,7 +5670,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5654
5670
|
}, 8, ["error"])) : Z("", !0)
|
|
5655
5671
|
], 64));
|
|
5656
5672
|
}
|
|
5657
|
-
},
|
|
5673
|
+
}, Ku = { class: "flex" }, Yu = ["aria-label"], Wu = /* @__PURE__ */ f("div", null, null, -1), Xu = {
|
|
5658
5674
|
__name: "Default",
|
|
5659
5675
|
props: {
|
|
5660
5676
|
selection: Object
|
|
@@ -5664,23 +5680,23 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5664
5680
|
return Me(() => {
|
|
5665
5681
|
e("load");
|
|
5666
5682
|
}), (s, o) => (w(), C(le, null, [
|
|
5667
|
-
f("div",
|
|
5683
|
+
f("div", Ku, [
|
|
5668
5684
|
f("h3", {
|
|
5669
5685
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5670
5686
|
id: "modal-title",
|
|
5671
5687
|
"aria-label": r.selection.item.path,
|
|
5672
5688
|
"data-microtip-position": "bottom-right",
|
|
5673
5689
|
role: "tooltip"
|
|
5674
|
-
}, E(r.selection.item.basename), 9,
|
|
5690
|
+
}, E(r.selection.item.basename), 9, Yu)
|
|
5675
5691
|
]),
|
|
5676
|
-
|
|
5692
|
+
Wu
|
|
5677
5693
|
], 64));
|
|
5678
5694
|
}
|
|
5679
|
-
},
|
|
5695
|
+
}, Zu = ["aria-label"], Fu = {
|
|
5680
5696
|
class: "w-full",
|
|
5681
5697
|
preload: "",
|
|
5682
5698
|
controls: ""
|
|
5683
|
-
},
|
|
5699
|
+
}, qu = ["src"], Gu = {
|
|
5684
5700
|
__name: "Video",
|
|
5685
5701
|
props: {
|
|
5686
5702
|
selection: Object
|
|
@@ -5697,22 +5713,22 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5697
5713
|
"aria-label": r.selection.item.path,
|
|
5698
5714
|
"data-microtip-position": "bottom-right",
|
|
5699
5715
|
role: "tooltip"
|
|
5700
|
-
}, E(r.selection.item.basename), 9,
|
|
5716
|
+
}, E(r.selection.item.basename), 9, Zu),
|
|
5701
5717
|
f("div", null, [
|
|
5702
|
-
f("video",
|
|
5718
|
+
f("video", Fu, [
|
|
5703
5719
|
f("source", {
|
|
5704
5720
|
src: a(),
|
|
5705
5721
|
type: "video/mp4"
|
|
5706
|
-
}, null, 8,
|
|
5722
|
+
}, null, 8, qu),
|
|
5707
5723
|
se(" Your browser does not support the video tag. ")
|
|
5708
5724
|
])
|
|
5709
5725
|
])
|
|
5710
5726
|
], 64));
|
|
5711
5727
|
}
|
|
5712
|
-
},
|
|
5728
|
+
}, Ju = ["aria-label"], Qu = {
|
|
5713
5729
|
class: "w-full",
|
|
5714
5730
|
controls: ""
|
|
5715
|
-
},
|
|
5731
|
+
}, ed = ["src"], td = {
|
|
5716
5732
|
__name: "Audio",
|
|
5717
5733
|
props: {
|
|
5718
5734
|
selection: Object
|
|
@@ -5729,19 +5745,19 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5729
5745
|
"aria-label": r.selection.item.path,
|
|
5730
5746
|
"data-microtip-position": "bottom-right",
|
|
5731
5747
|
role: "tooltip"
|
|
5732
|
-
}, E(r.selection.item.basename), 9,
|
|
5748
|
+
}, E(r.selection.item.basename), 9, Ju),
|
|
5733
5749
|
f("div", null, [
|
|
5734
|
-
f("audio",
|
|
5750
|
+
f("audio", Qu, [
|
|
5735
5751
|
f("source", {
|
|
5736
5752
|
src: a(),
|
|
5737
5753
|
type: "audio/mpeg"
|
|
5738
|
-
}, null, 8,
|
|
5754
|
+
}, null, 8, ed),
|
|
5739
5755
|
se(" Your browser does not support the audio element. ")
|
|
5740
5756
|
])
|
|
5741
5757
|
])
|
|
5742
5758
|
], 64));
|
|
5743
5759
|
}
|
|
5744
|
-
},
|
|
5760
|
+
}, rd = ["aria-label"], sd = ["data"], od = ["src"], nd = {
|
|
5745
5761
|
__name: "Pdf",
|
|
5746
5762
|
props: {
|
|
5747
5763
|
selection: Object
|
|
@@ -5758,7 +5774,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5758
5774
|
"aria-label": r.selection.item.path,
|
|
5759
5775
|
"data-microtip-position": "bottom-right",
|
|
5760
5776
|
role: "tooltip"
|
|
5761
|
-
}, E(r.selection.item.basename), 9,
|
|
5777
|
+
}, E(r.selection.item.basename), 9, rd),
|
|
5762
5778
|
f("div", null, [
|
|
5763
5779
|
f("object", {
|
|
5764
5780
|
class: "h-[60vh]",
|
|
@@ -5778,15 +5794,15 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5778
5794
|
<a href="https://example.com/test.pdf">Download the PDF</a>
|
|
5779
5795
|
.
|
|
5780
5796
|
</p>
|
|
5781
|
-
`, 8,
|
|
5782
|
-
], 8,
|
|
5797
|
+
`, 8, od)
|
|
5798
|
+
], 8, sd)
|
|
5783
5799
|
])
|
|
5784
5800
|
], 64));
|
|
5785
5801
|
}
|
|
5786
|
-
},
|
|
5802
|
+
}, id = { class: "sm:flex sm:items-start" }, ad = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, ld = { class: "text-gray-700 dark:text-gray-200 text-sm" }, cd = {
|
|
5787
5803
|
key: 0,
|
|
5788
5804
|
class: "flex leading-5"
|
|
5789
|
-
},
|
|
5805
|
+
}, ud = /* @__PURE__ */ f("svg", {
|
|
5790
5806
|
class: "animate-spin -ml-1 mr-3 h-5 w-5 text-white",
|
|
5791
5807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5792
5808
|
fill: "none",
|
|
@@ -5805,9 +5821,9 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5805
5821
|
fill: "currentColor",
|
|
5806
5822
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
5807
5823
|
})
|
|
5808
|
-
], -1),
|
|
5824
|
+
], -1), dd = { class: "py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, hd = { class: "font-bold pl-2" }, fd = { class: "font-bold pl-2" }, pd = {
|
|
5809
5825
|
name: "VFModalPreview"
|
|
5810
|
-
},
|
|
5826
|
+
}, gd = /* @__PURE__ */ Object.assign(pd, {
|
|
5811
5827
|
props: {
|
|
5812
5828
|
selection: Object
|
|
5813
5829
|
},
|
|
@@ -5830,50 +5846,50 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5830
5846
|
}, E(x(a)("Download")), 1)
|
|
5831
5847
|
]),
|
|
5832
5848
|
default: F(() => [
|
|
5833
|
-
f("div",
|
|
5834
|
-
f("div",
|
|
5849
|
+
f("div", id, [
|
|
5850
|
+
f("div", ad, [
|
|
5835
5851
|
f("div", null, [
|
|
5836
|
-
g("text") ? (w(), q(
|
|
5852
|
+
g("text") ? (w(), q(Zc, {
|
|
5837
5853
|
key: 0,
|
|
5838
5854
|
selection: r.selection,
|
|
5839
5855
|
onLoad: p[0] || (p[0] = (b) => d(!0))
|
|
5840
|
-
}, null, 8, ["selection"])) : g("image") ? (w(), q(
|
|
5856
|
+
}, null, 8, ["selection"])) : g("image") ? (w(), q(Uu, {
|
|
5841
5857
|
key: 1,
|
|
5842
5858
|
selection: r.selection,
|
|
5843
5859
|
onLoad: p[1] || (p[1] = (b) => d(!0))
|
|
5844
|
-
}, null, 8, ["selection"])) : g("video") ? (w(), q(
|
|
5860
|
+
}, null, 8, ["selection"])) : g("video") ? (w(), q(Gu, {
|
|
5845
5861
|
key: 2,
|
|
5846
5862
|
selection: r.selection,
|
|
5847
5863
|
onLoad: p[2] || (p[2] = (b) => d(!0))
|
|
5848
|
-
}, null, 8, ["selection"])) : g("audio") ? (w(), q(
|
|
5864
|
+
}, null, 8, ["selection"])) : g("audio") ? (w(), q(td, {
|
|
5849
5865
|
key: 3,
|
|
5850
5866
|
selection: r.selection,
|
|
5851
5867
|
onLoad: p[3] || (p[3] = (b) => d(!0))
|
|
5852
|
-
}, null, 8, ["selection"])) : g("application/pdf") ? (w(), q(
|
|
5868
|
+
}, null, 8, ["selection"])) : g("application/pdf") ? (w(), q(nd, {
|
|
5853
5869
|
key: 4,
|
|
5854
5870
|
selection: r.selection,
|
|
5855
5871
|
onLoad: p[4] || (p[4] = (b) => d(!0))
|
|
5856
|
-
}, null, 8, ["selection"])) : (w(), q(
|
|
5872
|
+
}, null, 8, ["selection"])) : (w(), q(Xu, {
|
|
5857
5873
|
key: 5,
|
|
5858
5874
|
selection: r.selection,
|
|
5859
5875
|
onLoad: p[5] || (p[5] = (b) => d(!0))
|
|
5860
5876
|
}, null, 8, ["selection"]))
|
|
5861
5877
|
]),
|
|
5862
|
-
f("div",
|
|
5863
|
-
i.value == !1 ? (w(), C("div",
|
|
5864
|
-
|
|
5878
|
+
f("div", ld, [
|
|
5879
|
+
i.value == !1 ? (w(), C("div", cd, [
|
|
5880
|
+
ud,
|
|
5865
5881
|
f("span", null, E(x(a)("Loading")), 1)
|
|
5866
5882
|
])) : Z("", !0)
|
|
5867
5883
|
])
|
|
5868
5884
|
])
|
|
5869
5885
|
]),
|
|
5870
|
-
f("div",
|
|
5886
|
+
f("div", dd, [
|
|
5871
5887
|
f("div", null, [
|
|
5872
|
-
f("span",
|
|
5888
|
+
f("span", hd, E(x(a)("File Size")) + ": ", 1),
|
|
5873
5889
|
se(E(x(us)(r.selection.item.file_size)), 1)
|
|
5874
5890
|
]),
|
|
5875
5891
|
f("div", null, [
|
|
5876
|
-
f("span",
|
|
5892
|
+
f("span", fd, E(x(a)("Last Modified")) + ": ", 1),
|
|
5877
5893
|
se(" " + E(x(ds)(r.selection.item.last_modified)), 1)
|
|
5878
5894
|
])
|
|
5879
5895
|
])
|
|
@@ -5881,7 +5897,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5881
5897
|
_: 1
|
|
5882
5898
|
}));
|
|
5883
5899
|
}
|
|
5884
|
-
}),
|
|
5900
|
+
}), md = { class: "sm:flex sm:items-start" }, vd = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
5885
5901
|
/* @__PURE__ */ f("svg", {
|
|
5886
5902
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5887
5903
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -5896,10 +5912,10 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5896
5912
|
d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
|
|
5897
5913
|
})
|
|
5898
5914
|
])
|
|
5899
|
-
], -1),
|
|
5915
|
+
], -1), bd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, yd = {
|
|
5900
5916
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5901
5917
|
id: "modal-title"
|
|
5902
|
-
},
|
|
5918
|
+
}, Sd = { class: "mt-2" }, wd = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, _d = {
|
|
5903
5919
|
key: 0,
|
|
5904
5920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5905
5921
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -5907,13 +5923,13 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5907
5923
|
viewBox: "0 0 24 24",
|
|
5908
5924
|
stroke: "currentColor",
|
|
5909
5925
|
"stroke-width": "1"
|
|
5910
|
-
},
|
|
5926
|
+
}, xd = /* @__PURE__ */ f("path", {
|
|
5911
5927
|
"stroke-linecap": "round",
|
|
5912
5928
|
"stroke-linejoin": "round",
|
|
5913
5929
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5914
|
-
}, null, -1),
|
|
5915
|
-
|
|
5916
|
-
],
|
|
5930
|
+
}, null, -1), kd = [
|
|
5931
|
+
xd
|
|
5932
|
+
], Dd = {
|
|
5917
5933
|
key: 1,
|
|
5918
5934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5919
5935
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -5921,15 +5937,15 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5921
5937
|
viewBox: "0 0 24 24",
|
|
5922
5938
|
stroke: "currentColor",
|
|
5923
5939
|
"stroke-width": "1"
|
|
5924
|
-
},
|
|
5940
|
+
}, Cd = /* @__PURE__ */ f("path", {
|
|
5925
5941
|
"stroke-linecap": "round",
|
|
5926
5942
|
"stroke-linejoin": "round",
|
|
5927
5943
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
5928
|
-
}, null, -1),
|
|
5929
|
-
|
|
5930
|
-
],
|
|
5944
|
+
}, null, -1), Md = [
|
|
5945
|
+
Cd
|
|
5946
|
+
], Ed = { class: "ml-1.5" }, $d = ["onKeyup"], Td = {
|
|
5931
5947
|
name: "VFModalRename"
|
|
5932
|
-
},
|
|
5948
|
+
}, Id = /* @__PURE__ */ Object.assign(Td, {
|
|
5933
5949
|
props: {
|
|
5934
5950
|
selection: Object,
|
|
5935
5951
|
current: Object
|
|
@@ -5968,14 +5984,14 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5968
5984
|
}, E(x(a)("Cancel")), 1)
|
|
5969
5985
|
]),
|
|
5970
5986
|
default: F(() => [
|
|
5971
|
-
f("div",
|
|
5972
|
-
|
|
5973
|
-
f("div",
|
|
5974
|
-
f("h3",
|
|
5975
|
-
f("div",
|
|
5976
|
-
f("p",
|
|
5977
|
-
i.value.type == "dir" ? (w(), C("svg",
|
|
5978
|
-
f("span",
|
|
5987
|
+
f("div", md, [
|
|
5988
|
+
vd,
|
|
5989
|
+
f("div", bd, [
|
|
5990
|
+
f("h3", yd, E(x(a)("Rename")), 1),
|
|
5991
|
+
f("div", Sd, [
|
|
5992
|
+
f("p", wd, [
|
|
5993
|
+
i.value.type == "dir" ? (w(), C("svg", _d, kd)) : (w(), C("svg", Dd, Md)),
|
|
5994
|
+
f("span", Ed, E(i.value.basename), 1)
|
|
5979
5995
|
]),
|
|
5980
5996
|
ve(f("input", {
|
|
5981
5997
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => d.value = b),
|
|
@@ -5983,7 +5999,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
5983
5999
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
5984
6000
|
placeholder: "Name",
|
|
5985
6001
|
type: "text"
|
|
5986
|
-
}, null, 40,
|
|
6002
|
+
}, null, 40, $d), [
|
|
5987
6003
|
[nt, d.value]
|
|
5988
6004
|
]),
|
|
5989
6005
|
g.value.length ? (w(), q(Oe, {
|
|
@@ -6003,7 +6019,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6003
6019
|
_: 1
|
|
6004
6020
|
}));
|
|
6005
6021
|
}
|
|
6006
|
-
}),
|
|
6022
|
+
}), Ad = { class: "sm:flex sm:items-start" }, Ld = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
6007
6023
|
/* @__PURE__ */ f("svg", {
|
|
6008
6024
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6009
6025
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -6018,15 +6034,15 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6018
6034
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
|
|
6019
6035
|
})
|
|
6020
6036
|
])
|
|
6021
|
-
], -1),
|
|
6037
|
+
], -1), Od = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Pd = {
|
|
6022
6038
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
6023
6039
|
id: "modal-title"
|
|
6024
|
-
},
|
|
6040
|
+
}, Nd = { class: "mt-2" }, jd = { class: "text-gray-500 mb-1" }, Rd = ["id"], Vd = {
|
|
6025
6041
|
key: 0,
|
|
6026
6042
|
class: "py-2"
|
|
6027
|
-
},
|
|
6043
|
+
}, Bd = ["disabled", "onClick"], zd = {
|
|
6028
6044
|
name: "VFModalUpload"
|
|
6029
|
-
},
|
|
6045
|
+
}, Hd = /* @__PURE__ */ Object.assign(zd, {
|
|
6030
6046
|
props: {
|
|
6031
6047
|
current: Object
|
|
6032
6048
|
},
|
|
@@ -6081,7 +6097,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6081
6097
|
onClick: We(S, ["prevent"]),
|
|
6082
6098
|
type: "button",
|
|
6083
6099
|
class: ce([b.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500", "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"])
|
|
6084
|
-
}, E(x(a)("Upload")), 11,
|
|
6100
|
+
}, E(x(a)("Upload")), 11, Bd),
|
|
6085
6101
|
f("button", {
|
|
6086
6102
|
type: "button",
|
|
6087
6103
|
onClick: I[1] || (I[1] = ($) => x(s).emit("vf-modal-close")),
|
|
@@ -6089,21 +6105,21 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6089
6105
|
}, E(x(a)("Cancel")), 1)
|
|
6090
6106
|
]),
|
|
6091
6107
|
default: F(() => [
|
|
6092
|
-
f("div",
|
|
6093
|
-
|
|
6094
|
-
f("div",
|
|
6095
|
-
f("h3",
|
|
6096
|
-
f("div",
|
|
6097
|
-
f("div",
|
|
6108
|
+
f("div", Ad, [
|
|
6109
|
+
Ld,
|
|
6110
|
+
f("div", Od, [
|
|
6111
|
+
f("h3", Pd, E(x(a)("Upload files")), 1),
|
|
6112
|
+
f("div", Nd, [
|
|
6113
|
+
f("div", jd, [
|
|
6098
6114
|
(w(!0), C(le, null, we(v.value, ($) => (w(), C("div", null, [
|
|
6099
6115
|
f("div", {
|
|
6100
6116
|
id: $.id
|
|
6101
6117
|
}, [
|
|
6102
6118
|
se(E($.name) + " ( " + E($.size) + ") ", 1),
|
|
6103
6119
|
f("b", null, E($.percent), 1)
|
|
6104
|
-
], 8,
|
|
6120
|
+
], 8, Rd)
|
|
6105
6121
|
]))), 256)),
|
|
6106
|
-
v.value.length ? Z("", !0) : (w(), C("div",
|
|
6122
|
+
v.value.length ? Z("", !0) : (w(), C("div", Vd, E(x(a)("No files selected!")), 1))
|
|
6107
6123
|
]),
|
|
6108
6124
|
f("div", {
|
|
6109
6125
|
class: "text-gray-500",
|
|
@@ -6134,7 +6150,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6134
6150
|
_: 1
|
|
6135
6151
|
}));
|
|
6136
6152
|
}
|
|
6137
|
-
}),
|
|
6153
|
+
}), Ud = { class: "sm:flex sm:items-start" }, Kd = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
6138
6154
|
/* @__PURE__ */ f("svg", {
|
|
6139
6155
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6140
6156
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -6149,10 +6165,10 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6149
6165
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
6150
6166
|
})
|
|
6151
6167
|
])
|
|
6152
|
-
], -1),
|
|
6168
|
+
], -1), Yd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Wd = {
|
|
6153
6169
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
6154
6170
|
id: "modal-title"
|
|
6155
|
-
},
|
|
6171
|
+
}, Xd = { class: "mt-2" }, Zd = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Fd = {
|
|
6156
6172
|
key: 0,
|
|
6157
6173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6158
6174
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -6160,13 +6176,13 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6160
6176
|
viewBox: "0 0 24 24",
|
|
6161
6177
|
stroke: "currentColor",
|
|
6162
6178
|
"stroke-width": "1"
|
|
6163
|
-
},
|
|
6179
|
+
}, qd = /* @__PURE__ */ f("path", {
|
|
6164
6180
|
"stroke-linecap": "round",
|
|
6165
6181
|
"stroke-linejoin": "round",
|
|
6166
6182
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
6167
|
-
}, null, -1),
|
|
6168
|
-
|
|
6169
|
-
],
|
|
6183
|
+
}, null, -1), Gd = [
|
|
6184
|
+
qd
|
|
6185
|
+
], Jd = {
|
|
6170
6186
|
key: 1,
|
|
6171
6187
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6172
6188
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -6174,15 +6190,15 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6174
6190
|
viewBox: "0 0 24 24",
|
|
6175
6191
|
stroke: "currentColor",
|
|
6176
6192
|
"stroke-width": "1"
|
|
6177
|
-
},
|
|
6193
|
+
}, Qd = /* @__PURE__ */ f("path", {
|
|
6178
6194
|
"stroke-linecap": "round",
|
|
6179
6195
|
"stroke-linejoin": "round",
|
|
6180
6196
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
6181
|
-
}, null, -1),
|
|
6182
|
-
|
|
6183
|
-
],
|
|
6197
|
+
}, null, -1), eh = [
|
|
6198
|
+
Qd
|
|
6199
|
+
], th = { class: "ml-1.5" }, rh = ["onKeyup", "placeholder"], sh = {
|
|
6184
6200
|
name: "VFModalArchive"
|
|
6185
|
-
},
|
|
6201
|
+
}, oh = /* @__PURE__ */ Object.assign(sh, {
|
|
6186
6202
|
props: {
|
|
6187
6203
|
selection: Object,
|
|
6188
6204
|
current: Object
|
|
@@ -6221,14 +6237,14 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6221
6237
|
}, E(x(a)("Cancel")), 1)
|
|
6222
6238
|
]),
|
|
6223
6239
|
default: F(() => [
|
|
6224
|
-
f("div",
|
|
6225
|
-
|
|
6226
|
-
f("div",
|
|
6227
|
-
f("h3",
|
|
6228
|
-
f("div",
|
|
6229
|
-
(w(!0), C(le, null, we(g.value, (b) => (w(), C("p",
|
|
6230
|
-
b.type == "dir" ? (w(), C("svg",
|
|
6231
|
-
f("span",
|
|
6240
|
+
f("div", Ud, [
|
|
6241
|
+
Kd,
|
|
6242
|
+
f("div", Yd, [
|
|
6243
|
+
f("h3", Wd, E(x(a)("Archive the files")), 1),
|
|
6244
|
+
f("div", Xd, [
|
|
6245
|
+
(w(!0), C(le, null, we(g.value, (b) => (w(), C("p", Zd, [
|
|
6246
|
+
b.type == "dir" ? (w(), C("svg", Fd, Gd)) : (w(), C("svg", Jd, eh)),
|
|
6247
|
+
f("span", th, E(b.basename), 1)
|
|
6232
6248
|
]))), 256)),
|
|
6233
6249
|
ve(f("input", {
|
|
6234
6250
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => i.value = b),
|
|
@@ -6236,7 +6252,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6236
6252
|
class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
6237
6253
|
placeholder: x(a)("Archive name. (.zip file will be created)"),
|
|
6238
6254
|
type: "text"
|
|
6239
|
-
}, null, 40,
|
|
6255
|
+
}, null, 40, rh), [
|
|
6240
6256
|
[nt, i.value]
|
|
6241
6257
|
]),
|
|
6242
6258
|
d.value.length ? (w(), q(Oe, {
|
|
@@ -6256,7 +6272,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6256
6272
|
_: 1
|
|
6257
6273
|
}));
|
|
6258
6274
|
}
|
|
6259
|
-
}),
|
|
6275
|
+
}), nh = { class: "sm:flex sm:items-start" }, ih = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
6260
6276
|
/* @__PURE__ */ f("svg", {
|
|
6261
6277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6262
6278
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -6271,10 +6287,10 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6271
6287
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
6272
6288
|
})
|
|
6273
6289
|
])
|
|
6274
|
-
], -1),
|
|
6290
|
+
], -1), ah = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, lh = {
|
|
6275
6291
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
6276
6292
|
id: "modal-title"
|
|
6277
|
-
},
|
|
6293
|
+
}, ch = { class: "mt-2" }, uh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, dh = {
|
|
6278
6294
|
key: 0,
|
|
6279
6295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6280
6296
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -6282,13 +6298,13 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6282
6298
|
viewBox: "0 0 24 24",
|
|
6283
6299
|
stroke: "currentColor",
|
|
6284
6300
|
"stroke-width": "1"
|
|
6285
|
-
},
|
|
6301
|
+
}, hh = /* @__PURE__ */ f("path", {
|
|
6286
6302
|
"stroke-linecap": "round",
|
|
6287
6303
|
"stroke-linejoin": "round",
|
|
6288
6304
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
6289
|
-
}, null, -1),
|
|
6290
|
-
|
|
6291
|
-
],
|
|
6305
|
+
}, null, -1), fh = [
|
|
6306
|
+
hh
|
|
6307
|
+
], ph = {
|
|
6292
6308
|
key: 1,
|
|
6293
6309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6294
6310
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -6296,15 +6312,15 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6296
6312
|
viewBox: "0 0 24 24",
|
|
6297
6313
|
stroke: "currentColor",
|
|
6298
6314
|
"stroke-width": "1"
|
|
6299
|
-
},
|
|
6315
|
+
}, gh = /* @__PURE__ */ f("path", {
|
|
6300
6316
|
"stroke-linecap": "round",
|
|
6301
6317
|
"stroke-linejoin": "round",
|
|
6302
6318
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
6303
|
-
}, null, -1),
|
|
6304
|
-
|
|
6305
|
-
],
|
|
6319
|
+
}, null, -1), mh = [
|
|
6320
|
+
gh
|
|
6321
|
+
], vh = { class: "ml-1.5" }, bh = { class: "my-1 text-sm text-gray-500" }, yh = {
|
|
6306
6322
|
name: "VFModalUnarchive"
|
|
6307
|
-
},
|
|
6323
|
+
}, Sh = /* @__PURE__ */ Object.assign(yh, {
|
|
6308
6324
|
props: {
|
|
6309
6325
|
selection: Object,
|
|
6310
6326
|
current: Object
|
|
@@ -6344,16 +6360,16 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6344
6360
|
}, E(x(a)("Cancel")), 1)
|
|
6345
6361
|
]),
|
|
6346
6362
|
default: F(() => [
|
|
6347
|
-
f("div",
|
|
6348
|
-
|
|
6349
|
-
f("div",
|
|
6350
|
-
f("h3",
|
|
6351
|
-
f("div",
|
|
6352
|
-
(w(!0), C(le, null, we(g.value, (b) => (w(), C("p",
|
|
6353
|
-
b.type == "dir" ? (w(), C("svg",
|
|
6354
|
-
f("span",
|
|
6363
|
+
f("div", nh, [
|
|
6364
|
+
ih,
|
|
6365
|
+
f("div", ah, [
|
|
6366
|
+
f("h3", lh, E(x(a)("Unarchive")), 1),
|
|
6367
|
+
f("div", ch, [
|
|
6368
|
+
(w(!0), C(le, null, we(g.value, (b) => (w(), C("p", uh, [
|
|
6369
|
+
b.type == "dir" ? (w(), C("svg", dh, fh)) : (w(), C("svg", ph, mh)),
|
|
6370
|
+
f("span", vh, E(b.basename), 1)
|
|
6355
6371
|
]))), 256)),
|
|
6356
|
-
f("p",
|
|
6372
|
+
f("p", bh, E(x(a)("The archive will be unarchived at")) + " (" + E(r.current.dirname) + ")", 1),
|
|
6357
6373
|
d.value.length ? (w(), q(Oe, {
|
|
6358
6374
|
key: 0,
|
|
6359
6375
|
onHidden: p[0] || (p[0] = (b) => d.value = ""),
|
|
@@ -6371,7 +6387,7 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6371
6387
|
_: 1
|
|
6372
6388
|
}));
|
|
6373
6389
|
}
|
|
6374
|
-
}),
|
|
6390
|
+
}), wh = { class: "sm:flex sm:items-start" }, _h = /* @__PURE__ */ f("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
6375
6391
|
/* @__PURE__ */ f("svg", {
|
|
6376
6392
|
class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
|
|
6377
6393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6387,10 +6403,10 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6387
6403
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
6388
6404
|
})
|
|
6389
6405
|
])
|
|
6390
|
-
], -1),
|
|
6406
|
+
], -1), xh = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, kh = {
|
|
6391
6407
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
6392
6408
|
id: "modal-title"
|
|
6393
|
-
},
|
|
6409
|
+
}, Dh = { class: "mt-2" }, Ch = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Mh = {
|
|
6394
6410
|
key: 0,
|
|
6395
6411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6396
6412
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -6398,13 +6414,13 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6398
6414
|
viewBox: "0 0 24 24",
|
|
6399
6415
|
stroke: "currentColor",
|
|
6400
6416
|
"stroke-width": "1"
|
|
6401
|
-
},
|
|
6417
|
+
}, Eh = /* @__PURE__ */ f("path", {
|
|
6402
6418
|
"stroke-linecap": "round",
|
|
6403
6419
|
"stroke-linejoin": "round",
|
|
6404
6420
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
6405
|
-
}, null, -1),
|
|
6406
|
-
|
|
6407
|
-
],
|
|
6421
|
+
}, null, -1), $h = [
|
|
6422
|
+
Eh
|
|
6423
|
+
], Th = {
|
|
6408
6424
|
key: 1,
|
|
6409
6425
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6410
6426
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -6412,13 +6428,13 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6412
6428
|
viewBox: "0 0 24 24",
|
|
6413
6429
|
stroke: "currentColor",
|
|
6414
6430
|
"stroke-width": "1"
|
|
6415
|
-
},
|
|
6431
|
+
}, Ih = /* @__PURE__ */ f("path", {
|
|
6416
6432
|
"stroke-linecap": "round",
|
|
6417
6433
|
"stroke-linejoin": "round",
|
|
6418
6434
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
6419
|
-
}, null, -1),
|
|
6420
|
-
|
|
6421
|
-
],
|
|
6435
|
+
}, null, -1), Ah = [
|
|
6436
|
+
Ih
|
|
6437
|
+
], Lh = { class: "ml-1.5" }, Oh = { class: "text-sm text-gray-500 pb-1 pt-3" }, Ph = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Nh = /* @__PURE__ */ f("svg", {
|
|
6422
6438
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6423
6439
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
6424
6440
|
fill: "none",
|
|
@@ -6431,9 +6447,9 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6431
6447
|
"stroke-linejoin": "round",
|
|
6432
6448
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
6433
6449
|
})
|
|
6434
|
-
], -1),
|
|
6450
|
+
], -1), jh = { class: "ml-1.5 overflow-auto" }, Rh = {
|
|
6435
6451
|
name: "VFModalMove"
|
|
6436
|
-
},
|
|
6452
|
+
}, Vh = /* @__PURE__ */ Object.assign(Rh, {
|
|
6437
6453
|
props: {
|
|
6438
6454
|
selection: Object,
|
|
6439
6455
|
current: Object
|
|
@@ -6472,19 +6488,19 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6472
6488
|
}, E(x(o)("Cancel")), 1)
|
|
6473
6489
|
]),
|
|
6474
6490
|
default: F(() => [
|
|
6475
|
-
f("div",
|
|
6476
|
-
|
|
6477
|
-
f("div",
|
|
6478
|
-
f("h3",
|
|
6479
|
-
f("div",
|
|
6480
|
-
(w(!0), C(le, null, we(i.value, (p) => (w(), C("p",
|
|
6481
|
-
p.type == "dir" ? (w(), C("svg",
|
|
6482
|
-
f("span",
|
|
6491
|
+
f("div", wh, [
|
|
6492
|
+
_h,
|
|
6493
|
+
f("div", xh, [
|
|
6494
|
+
f("h3", kh, E(x(o)("Move files")), 1),
|
|
6495
|
+
f("div", Dh, [
|
|
6496
|
+
(w(!0), C(le, null, we(i.value, (p) => (w(), C("p", Ch, [
|
|
6497
|
+
p.type == "dir" ? (w(), C("svg", Mh, $h)) : (w(), C("svg", Th, Ah)),
|
|
6498
|
+
f("span", Lh, E(p.path), 1)
|
|
6483
6499
|
]))), 256)),
|
|
6484
|
-
f("p",
|
|
6485
|
-
f("p",
|
|
6486
|
-
|
|
6487
|
-
f("span",
|
|
6500
|
+
f("p", Oh, E(x(o)("Are you sure you want to move these files?")), 1),
|
|
6501
|
+
f("p", Ph, [
|
|
6502
|
+
Nh,
|
|
6503
|
+
f("span", jh, E(r.selection.items.to.path), 1)
|
|
6488
6504
|
]),
|
|
6489
6505
|
d.value.length ? (w(), q(Oe, {
|
|
6490
6506
|
key: 0,
|
|
@@ -6503,23 +6519,23 @@ const Nu = { class: "flex" }, ju = ["aria-label"], Ru = { class: "ml-auto mb-2"
|
|
|
6503
6519
|
_: 1
|
|
6504
6520
|
}));
|
|
6505
6521
|
}
|
|
6506
|
-
}),
|
|
6522
|
+
}), Bh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6507
6523
|
__proto__: null,
|
|
6508
|
-
ModalArchive:
|
|
6509
|
-
ModalDelete:
|
|
6510
|
-
ModalMessage:
|
|
6511
|
-
ModalMove:
|
|
6512
|
-
ModalNewFile:
|
|
6513
|
-
ModalNewFolder:
|
|
6514
|
-
ModalPreview:
|
|
6515
|
-
ModalRename:
|
|
6516
|
-
ModalUnarchive:
|
|
6517
|
-
ModalUpload:
|
|
6524
|
+
ModalArchive: oh,
|
|
6525
|
+
ModalDelete: mc,
|
|
6526
|
+
ModalMessage: kc,
|
|
6527
|
+
ModalMove: Vh,
|
|
6528
|
+
ModalNewFile: Hc,
|
|
6529
|
+
ModalNewFolder: Lc,
|
|
6530
|
+
ModalPreview: gd,
|
|
6531
|
+
ModalRename: Id,
|
|
6532
|
+
ModalUnarchive: Sh,
|
|
6533
|
+
ModalUpload: Hd
|
|
6518
6534
|
}, Symbol.toStringTag, { value: "Module" })), Gt = {
|
|
6519
|
-
VueFinder:
|
|
6520
|
-
...
|
|
6535
|
+
VueFinder: Kl,
|
|
6536
|
+
...Bh
|
|
6521
6537
|
};
|
|
6522
|
-
const
|
|
6538
|
+
const Uh = {
|
|
6523
6539
|
install(r) {
|
|
6524
6540
|
for (const e in Gt)
|
|
6525
6541
|
if (Gt.hasOwnProperty(e)) {
|
|
@@ -6529,5 +6545,5 @@ const zh = {
|
|
|
6529
6545
|
}
|
|
6530
6546
|
};
|
|
6531
6547
|
export {
|
|
6532
|
-
|
|
6548
|
+
Uh as default
|
|
6533
6549
|
};
|