inertia-bootstrap-forms 1.2.4 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CRXhNEv4.js → index-CEZbNgWH.js} +281 -270
- package/dist/{index-D75YLzF9.js → index-DjjjMh37.js} +1 -1
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +5 -5
- package/package.json +2 -2
- package/src/AmountInput.vue +65 -52
- package/src/CheckboxButtonInput.vue +69 -69
- package/src/CheckboxInput.vue +79 -79
- package/src/CheckboxToggle.vue +113 -113
- package/src/FormContainer.vue +180 -180
- package/src/TextInput.vue +51 -51
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Rn = Object.defineProperty;
|
|
2
2
|
var Mt = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var B = (t, e, n) =>
|
|
7
|
-
var w = (t, e, n) => (
|
|
8
|
-
import { createElementBlock as g, openBlock as m, renderSlot as
|
|
5
|
+
var Bn = (t, e, n) => e in t ? Rn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var B = (t, e, n) => Bn(t, typeof e != "symbol" ? e + "" : e, n), Xe = (t, e, n) => e.has(t) || Mt("Cannot " + n);
|
|
7
|
+
var w = (t, e, n) => (Xe(t, e, "read from private field"), n ? n.call(t) : e.get(t)), x = (t, e, n) => e.has(t) ? Mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Me = (t, e, n, r) => (Xe(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), F = (t, e, n) => (Xe(t, e, "access private method"), n);
|
|
8
|
+
import { createElementBlock as g, openBlock as m, renderSlot as O, normalizeClass as R, ref as W, onMounted as ve, onBeforeUnmount as mt, createElementVNode as b, defineComponent as E, inject as k, computed as q, resolveComponent as L, createBlock as ee, withCtx as ie, withDirectives as re, createVNode as Q, vModelText as He, createTextVNode as gt, toDisplayString as H, vModelDynamic as yt, defineAsyncComponent as jn, Fragment as pe, createCommentVNode as j, createStaticVNode as Ln, renderList as _e, normalizeStyle as vt, toRef as xn, reactive as en, withModifiers as tn, resolveDirective as qn, mergeProps as Hn, vModelSelect as Gn, markRaw as Wn, provide as Zn, watch as Fe, h as nn, shallowRef as Yn, unref as Ke } from "vue";
|
|
9
9
|
import Xn from "@tinymce/tinymce-vue";
|
|
10
10
|
import { useForm as Kn } from "@inertiajs/vue3";
|
|
11
11
|
import { LMarker as Jn, LTileLayer as Qn, LMap as er } from "@vue-leaflet/vue-leaflet";
|
|
@@ -15,7 +15,7 @@ function rr(t, e, n = {}) {
|
|
|
15
15
|
let r = null;
|
|
16
16
|
ve(async () => {
|
|
17
17
|
r = (typeof e == "function" ? await e() : e).getOrCreateInstance(t.value, n), typeof document < "u" && document.addEventListener("inertia:start", o);
|
|
18
|
-
}),
|
|
18
|
+
}), mt(() => {
|
|
19
19
|
typeof document < "u" && document.removeEventListener("inertia:start", o), s();
|
|
20
20
|
});
|
|
21
21
|
const s = function() {
|
|
@@ -37,20 +37,20 @@ const be = (t, e) => {
|
|
|
37
37
|
}, sr = {}, ir = { class: "dropdown" };
|
|
38
38
|
function or(t, e, n, r, s, o) {
|
|
39
39
|
return m(), g("div", ir, [
|
|
40
|
-
|
|
40
|
+
O(t.$slots, "default")
|
|
41
41
|
]);
|
|
42
42
|
}
|
|
43
43
|
const ar = /* @__PURE__ */ be(sr, [["render", or]]), lr = {}, ur = { class: "dropdown-menu" };
|
|
44
44
|
function dr(t, e, n, r, s, o) {
|
|
45
45
|
return m(), g("div", ur, [
|
|
46
|
-
|
|
46
|
+
O(t.$slots, "default")
|
|
47
47
|
]);
|
|
48
48
|
}
|
|
49
49
|
const pr = /* @__PURE__ */ be(lr, [["render", dr]]), cr = {
|
|
50
50
|
__name: "DropdownToggle",
|
|
51
51
|
props: {},
|
|
52
52
|
setup(t, { expose: e }) {
|
|
53
|
-
const n =
|
|
53
|
+
const n = W(null), { getInstance: r } = rr(n, () => import("./dropdown-yh2aQrbw-XuCU1v1F.js").then((s) => s.default));
|
|
54
54
|
return e({ show: () => {
|
|
55
55
|
var s;
|
|
56
56
|
return (s = r()) == null ? void 0 : s.show();
|
|
@@ -65,19 +65,19 @@ const pr = /* @__PURE__ */ be(lr, [["render", dr]]), cr = {
|
|
|
65
65
|
"data-bs-toggle": "dropdown",
|
|
66
66
|
"aria-expanded": "false"
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
O(s.$slots, "default")
|
|
69
69
|
], 512));
|
|
70
70
|
}
|
|
71
71
|
}, fr = {}, hr = { class: "input-group" };
|
|
72
72
|
function mr(t, e, n, r, s, o) {
|
|
73
73
|
return m(), g("div", hr, [
|
|
74
|
-
|
|
74
|
+
O(t.$slots, "default")
|
|
75
75
|
]);
|
|
76
76
|
}
|
|
77
77
|
const _t = /* @__PURE__ */ be(fr, [["render", mr]]), gr = {}, yr = { class: "input-group-text" };
|
|
78
78
|
function vr(t, e, n, r, s, o) {
|
|
79
79
|
return m(), g("div", yr, [
|
|
80
|
-
|
|
80
|
+
O(t.$slots, "default")
|
|
81
81
|
]);
|
|
82
82
|
}
|
|
83
83
|
const bt = /* @__PURE__ */ be(gr, [["render", vr]]), _r = {
|
|
@@ -114,7 +114,7 @@ function Sr(t, e, n, r, s, o) {
|
|
|
114
114
|
return m(), g("div", {
|
|
115
115
|
class: R(["alert", "alert-" + n.type])
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
O(t.$slots, "default")
|
|
118
118
|
], 2);
|
|
119
119
|
}
|
|
120
120
|
const Fr = /* @__PURE__ */ be($r, [["render", Sr]]), M = (t, e) => {
|
|
@@ -142,45 +142,56 @@ const Fr = /* @__PURE__ */ be($r, [["render", Sr]]), M = (t, e) => {
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
setup(t) {
|
|
145
|
-
let e = k("form"
|
|
146
|
-
return e === void 0 && (e = {
|
|
145
|
+
let e = k("form", {
|
|
147
146
|
errors: {},
|
|
148
|
-
getID(
|
|
147
|
+
getID(o) {
|
|
148
|
+
return o;
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
150
|
+
}), n = k("group", {});
|
|
151
|
+
const r = q({
|
|
152
|
+
get() {
|
|
153
|
+
var o;
|
|
154
|
+
return n.value && e.value[n.value.name] ? (o = n.value) == null ? void 0 : o.getData(t.name) : e.value[t.name];
|
|
155
|
+
},
|
|
156
|
+
set(o) {
|
|
157
|
+
var i;
|
|
158
|
+
(i = n == null ? void 0 : n.value) != null && i.name ? n.value.setData(t.name, o) : e.value[t.name] = o;
|
|
159
|
+
}
|
|
160
|
+
}), s = q({
|
|
161
|
+
get() {
|
|
162
|
+
const o = r.value;
|
|
163
|
+
return o == null || o === "" ? "" : Number(o).toLocaleString("en-US");
|
|
164
|
+
},
|
|
165
|
+
set(o) {
|
|
166
|
+
const i = String(o).replace(/\D/g, "");
|
|
167
|
+
r.value = i === "" ? null : parseInt(i, 10);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
return { modelValue: r, displayValue: s, form: e, group: n };
|
|
157
171
|
}
|
|
158
|
-
}), kr = ["name", "
|
|
172
|
+
}), kr = ["name", "disabled", "readonly", "placeholder"];
|
|
159
173
|
function Tr(t, e, n, r, s, o) {
|
|
160
|
-
const i = L("InputGroupText"), a = L("InputGroup")
|
|
174
|
+
const i = L("InputGroupText"), a = L("InputGroup");
|
|
161
175
|
return m(), ee(a, null, {
|
|
162
176
|
default: ie(() => [
|
|
163
177
|
re(b("input", {
|
|
164
178
|
name: t.name,
|
|
165
|
-
|
|
166
|
-
"data-maska": "###,###,###,###,###,###,###",
|
|
167
|
-
"data-maska-reversed": "",
|
|
168
|
-
onMaska: e[0] || (e[0] = (...u) => t.onChange && t.onChange(...u)),
|
|
179
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.displayValue = l),
|
|
169
180
|
class: R([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-start"]),
|
|
170
181
|
disabled: t.disabled || t.form.processing,
|
|
171
182
|
readonly: t.readonly,
|
|
172
183
|
placeholder: t.placeholder,
|
|
173
184
|
type: "tel"
|
|
174
|
-
}, null,
|
|
175
|
-
[
|
|
185
|
+
}, null, 10, kr), [
|
|
186
|
+
[He, t.displayValue]
|
|
176
187
|
]),
|
|
177
188
|
Q(i, { class: "fanum" }, {
|
|
178
189
|
default: ie(() => [
|
|
179
|
-
|
|
190
|
+
gt(H(t.unit), 1)
|
|
180
191
|
]),
|
|
181
192
|
_: 1
|
|
182
193
|
}),
|
|
183
|
-
|
|
194
|
+
O(t.$slots, "suffix")
|
|
184
195
|
]),
|
|
185
196
|
_: 3
|
|
186
197
|
});
|
|
@@ -204,7 +215,7 @@ const Aa = /* @__PURE__ */ M(Cr, [["render", Tr]]), Er = E({
|
|
|
204
215
|
return s;
|
|
205
216
|
}
|
|
206
217
|
}), n = k("group", {});
|
|
207
|
-
return { modelValue:
|
|
218
|
+
return { modelValue: q({
|
|
208
219
|
get() {
|
|
209
220
|
var s;
|
|
210
221
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -226,11 +237,11 @@ function Vr(t, e, n, r, s, o) {
|
|
|
226
237
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
227
238
|
type: "text"
|
|
228
239
|
}, null, 10, Ir)), [
|
|
229
|
-
[
|
|
240
|
+
[He, t.modelValue]
|
|
230
241
|
]);
|
|
231
242
|
}
|
|
232
|
-
const
|
|
233
|
-
components: { TextInput:
|
|
243
|
+
const Ge = /* @__PURE__ */ M(Er, [["render", Vr]]), Mr = E({
|
|
244
|
+
components: { TextInput: Ge },
|
|
234
245
|
props: {
|
|
235
246
|
name: {
|
|
236
247
|
type: String,
|
|
@@ -308,7 +319,7 @@ function Nr(t, e, n, r, s, o) {
|
|
|
308
319
|
]), 8, Ar)
|
|
309
320
|
]);
|
|
310
321
|
}
|
|
311
|
-
const Na = /* @__PURE__ */ M(Mr, [["render", Nr]]),
|
|
322
|
+
const Na = /* @__PURE__ */ M(Mr, [["render", Nr]]), Dr = E({
|
|
312
323
|
emits: ["change"],
|
|
313
324
|
props: {
|
|
314
325
|
name: {
|
|
@@ -345,7 +356,7 @@ const Na = /* @__PURE__ */ M(Mr, [["render", Nr]]), Or = E({
|
|
|
345
356
|
}
|
|
346
357
|
}), { form: e };
|
|
347
358
|
}
|
|
348
|
-
}),
|
|
359
|
+
}), Or = ["for"], Rr = ["name", "id", "disabled", "type", "value"];
|
|
349
360
|
function Br(t, e, n, r, s, o) {
|
|
350
361
|
var i, a;
|
|
351
362
|
return m(), g("label", {
|
|
@@ -365,10 +376,10 @@ function Br(t, e, n, r, s, o) {
|
|
|
365
376
|
}, null, 42, Rr), [
|
|
366
377
|
[yt, t.form[t.name]]
|
|
367
378
|
]),
|
|
368
|
-
|
|
369
|
-
], 10,
|
|
379
|
+
O(t.$slots, "default")
|
|
380
|
+
], 10, Or);
|
|
370
381
|
}
|
|
371
|
-
const
|
|
382
|
+
const Da = /* @__PURE__ */ M(Dr, [["render", Br]]), jr = E({
|
|
372
383
|
props: {
|
|
373
384
|
name: {
|
|
374
385
|
type: String,
|
|
@@ -402,7 +413,7 @@ const Oa = /* @__PURE__ */ M(Or, [["render", Br]]), jr = E({
|
|
|
402
413
|
return s;
|
|
403
414
|
}
|
|
404
415
|
}), n = k("group", {});
|
|
405
|
-
return { modelValue:
|
|
416
|
+
return { modelValue: q({
|
|
406
417
|
get() {
|
|
407
418
|
var s;
|
|
408
419
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -433,11 +444,11 @@ function Hr(t, e, n, r, s, o) {
|
|
|
433
444
|
class: "form-check-label",
|
|
434
445
|
for: t.inputID
|
|
435
446
|
}, [
|
|
436
|
-
|
|
447
|
+
O(t.$slots, "default")
|
|
437
448
|
], 8, qr)
|
|
438
449
|
]);
|
|
439
450
|
}
|
|
440
|
-
const
|
|
451
|
+
const Oa = /* @__PURE__ */ M(jr, [["render", Hr]]), Gr = E({
|
|
441
452
|
props: {
|
|
442
453
|
name: {
|
|
443
454
|
type: String,
|
|
@@ -478,7 +489,7 @@ const Da = /* @__PURE__ */ M(jr, [["render", Hr]]), Gr = E({
|
|
|
478
489
|
return s;
|
|
479
490
|
}
|
|
480
491
|
}), n = k("group", {});
|
|
481
|
-
return { modelValue:
|
|
492
|
+
return { modelValue: q({
|
|
482
493
|
get() {
|
|
483
494
|
var s;
|
|
484
495
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -508,10 +519,10 @@ function Yr(t, e, n, r, s, o) {
|
|
|
508
519
|
}, null, 42, Zr), [
|
|
509
520
|
[yt, t.modelValue]
|
|
510
521
|
]),
|
|
511
|
-
|
|
522
|
+
O(t.$slots, "default")
|
|
512
523
|
], 10, Wr);
|
|
513
524
|
}
|
|
514
|
-
const Ra = /* @__PURE__ */ M(Gr, [["render", Yr]]), Xr =
|
|
525
|
+
const Ra = /* @__PURE__ */ M(Gr, [["render", Yr]]), Xr = jn(
|
|
515
526
|
() => import("vue3-persian-datetime-picker")
|
|
516
527
|
);
|
|
517
528
|
let Ue;
|
|
@@ -554,7 +565,7 @@ const Kr = E({
|
|
|
554
565
|
return s;
|
|
555
566
|
}
|
|
556
567
|
}), n = k("group", {});
|
|
557
|
-
return { modelValue:
|
|
568
|
+
return { modelValue: q({
|
|
558
569
|
get() {
|
|
559
570
|
var s;
|
|
560
571
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -609,7 +620,7 @@ function es(t, e, n, r, s, o) {
|
|
|
609
620
|
onClick: e[0] || (e[0] = (...l) => t.clear && t.clear(...l)),
|
|
610
621
|
class: R(["input-group-text input-group-datepicker-delete", { "input-group-datepicker-delete-show": t.modelValue }])
|
|
611
622
|
}, e[2] || (e[2] = [
|
|
612
|
-
|
|
623
|
+
Ln('<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C20.1752 21.4816 19.3001 21.7706 18 21.8985" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M7 4V2.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M17 4V2.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M21.5 9H16.625H10.75M2 9H5.875" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M18 17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17C16 16.4477 16.4477 16 17 16C17.5523 16 18 16.4477 18 17Z" fill="#1C274C"></path><path d="M18 13C18 13.5523 17.5523 14 17 14C16.4477 14 16 13.5523 16 13C16 12.4477 16.4477 12 17 12C17.5523 12 18 12.4477 18 13Z" fill="#1C274C"></path><path d="M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z" fill="#1C274C"></path><path d="M13 13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13C11 12.4477 11.4477 12 12 12C12.5523 12 13 12.4477 13 13Z" fill="#1C274C"></path><path d="M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z" fill="#1C274C"></path><path d="M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z" fill="#1C274C"></path></svg>', 1)
|
|
613
624
|
]), 2)
|
|
614
625
|
]),
|
|
615
626
|
t.isSsr ? j("", !0) : (m(), ee(i, {
|
|
@@ -658,7 +669,7 @@ const Ba = /* @__PURE__ */ M(Kr, [["render", es]]), ts = E({
|
|
|
658
669
|
}
|
|
659
670
|
},
|
|
660
671
|
setup(t, { expose: e, emit: n }) {
|
|
661
|
-
const r =
|
|
672
|
+
const r = W(null), s = W(null), o = (u, d) => {
|
|
662
673
|
s.value = d;
|
|
663
674
|
};
|
|
664
675
|
e({
|
|
@@ -670,7 +681,7 @@ const Ba = /* @__PURE__ */ M(Kr, [["render", es]]), ts = E({
|
|
|
670
681
|
return u;
|
|
671
682
|
}
|
|
672
683
|
}), a = k("group", {});
|
|
673
|
-
return { modelValue:
|
|
684
|
+
return { modelValue: q({
|
|
674
685
|
get() {
|
|
675
686
|
var u;
|
|
676
687
|
return a.value && i.value[a.value.name] ? (u = a.value) == null ? void 0 : u.getData(t.name) : i.value[t.name];
|
|
@@ -808,9 +819,9 @@ function hs(t, e, n, r, s, o) {
|
|
|
808
819
|
style: vt({ width: l.percent + "%" })
|
|
809
820
|
}, null, 4)
|
|
810
821
|
])) : j("", !0),
|
|
811
|
-
b("div", null,
|
|
812
|
-
l.error ? (m(), g("div", us,
|
|
813
|
-
b("div", ds,
|
|
822
|
+
b("div", null, H(l.file.name), 1),
|
|
823
|
+
l.error ? (m(), g("div", us, H(l.error), 1)) : j("", !0),
|
|
824
|
+
b("div", ds, H(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
814
825
|
b("div", ps, [
|
|
815
826
|
l.error ? (m(), g("button", {
|
|
816
827
|
key: 0,
|
|
@@ -851,7 +862,7 @@ function hs(t, e, n, r, s, o) {
|
|
|
851
862
|
}
|
|
852
863
|
const La = /* @__PURE__ */ M(rs, [["render", hs]]), ms = E({
|
|
853
864
|
components: {
|
|
854
|
-
TextInput:
|
|
865
|
+
TextInput: Ge
|
|
855
866
|
},
|
|
856
867
|
props: {
|
|
857
868
|
FileInput: {
|
|
@@ -886,7 +897,7 @@ const xa = /* @__PURE__ */ M(ms, [["render", gs]]), ys = E({
|
|
|
886
897
|
},
|
|
887
898
|
provide() {
|
|
888
899
|
return {
|
|
889
|
-
group:
|
|
900
|
+
group: q(() => this)
|
|
890
901
|
};
|
|
891
902
|
},
|
|
892
903
|
mounted() {
|
|
@@ -917,7 +928,7 @@ function _s(t, e, n, r, s, o) {
|
|
|
917
928
|
"data-group-id": t.groupID,
|
|
918
929
|
ref: "groupEl"
|
|
919
930
|
}, [
|
|
920
|
-
|
|
931
|
+
O(t.$slots, "default")
|
|
921
932
|
], 8, vs);
|
|
922
933
|
}
|
|
923
934
|
const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
|
|
@@ -958,7 +969,7 @@ const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
|
|
|
958
969
|
}
|
|
959
970
|
},
|
|
960
971
|
setup(t) {
|
|
961
|
-
const e =
|
|
972
|
+
const e = xn("formEl"), n = en(t.modelValue), r = Kn({
|
|
962
973
|
hasMessage: !1,
|
|
963
974
|
successMessage: null,
|
|
964
975
|
...t.options,
|
|
@@ -971,7 +982,7 @@ const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
|
|
|
971
982
|
},
|
|
972
983
|
provide() {
|
|
973
984
|
return {
|
|
974
|
-
form:
|
|
985
|
+
form: q(() => this.form)
|
|
975
986
|
};
|
|
976
987
|
},
|
|
977
988
|
watch: {
|
|
@@ -1038,32 +1049,32 @@ function Fs(t, e, n, r, s, o) {
|
|
|
1038
1049
|
ref: "formEl",
|
|
1039
1050
|
action: t.url,
|
|
1040
1051
|
method: t.method,
|
|
1041
|
-
onSubmit: e[0] || (e[0] =
|
|
1052
|
+
onSubmit: e[0] || (e[0] = tn((...a) => t.submit && t.submit(...a), ["prevent"])),
|
|
1042
1053
|
onReset: e[1] || (e[1] = (a) => t.$emit("reset")),
|
|
1043
1054
|
class: R({ "form-processing": t.form.processing }),
|
|
1044
1055
|
novalidate: !!Object.values(t.form.errors).length
|
|
1045
1056
|
}, [
|
|
1046
|
-
|
|
1057
|
+
O(t.$slots, "errors", {}, () => [
|
|
1047
1058
|
t.form.hasErrors ? (m(), ee(i, {
|
|
1048
1059
|
key: 0,
|
|
1049
1060
|
type: "danger"
|
|
1050
1061
|
}, {
|
|
1051
1062
|
default: ie(() => [
|
|
1052
1063
|
b("ul", Ss, [
|
|
1053
|
-
(m(!0), g(pe, null, _e(t.form.errors, (a) => (m(), g("li", null,
|
|
1064
|
+
(m(!0), g(pe, null, _e(t.form.errors, (a) => (m(), g("li", null, H(a), 1))), 256))
|
|
1054
1065
|
])
|
|
1055
1066
|
]),
|
|
1056
1067
|
_: 1
|
|
1057
1068
|
})) : j("", !0)
|
|
1058
1069
|
]),
|
|
1059
|
-
|
|
1070
|
+
O(t.$slots, "message", {}, () => [
|
|
1060
1071
|
t.form.hasMessage && t.form.successMessage ? (m(), ee(i, {
|
|
1061
1072
|
key: 0,
|
|
1062
1073
|
type: "success",
|
|
1063
1074
|
innerHTML: t.form.successMessage
|
|
1064
1075
|
}, null, 8, ["innerHTML"])) : j("", !0)
|
|
1065
1076
|
]),
|
|
1066
|
-
|
|
1077
|
+
O(t.$slots, "default", {
|
|
1067
1078
|
form: t.form,
|
|
1068
1079
|
submit: t.submit
|
|
1069
1080
|
})
|
|
@@ -1081,7 +1092,7 @@ const qa = /* @__PURE__ */ M(ws, [["render", Fs]]), Cs = E({
|
|
|
1081
1092
|
};
|
|
1082
1093
|
function Es(t, e, n, r, s, o) {
|
|
1083
1094
|
return m(), g("label", ks, [
|
|
1084
|
-
|
|
1095
|
+
O(t.$slots, "default", {}, void 0, !0),
|
|
1085
1096
|
t.required ? (m(), g("span", Ts, "*")) : j("", !0)
|
|
1086
1097
|
]);
|
|
1087
1098
|
}
|
|
@@ -1175,7 +1186,7 @@ function Vs(t, e, n, r, s, o) {
|
|
|
1175
1186
|
}
|
|
1176
1187
|
const Ga = /* @__PURE__ */ M(Is, [["render", Vs]]), Ms = E({
|
|
1177
1188
|
components: {
|
|
1178
|
-
TextInput:
|
|
1189
|
+
TextInput: Ge
|
|
1179
1190
|
},
|
|
1180
1191
|
props: {
|
|
1181
1192
|
name: {
|
|
@@ -1195,7 +1206,7 @@ function Us(t, e, n, r, s, o) {
|
|
|
1195
1206
|
}
|
|
1196
1207
|
const Wa = /* @__PURE__ */ M(Ms, [["render", Us]]), zs = E({
|
|
1197
1208
|
components: {
|
|
1198
|
-
TextInput:
|
|
1209
|
+
TextInput: Ge
|
|
1199
1210
|
},
|
|
1200
1211
|
props: {
|
|
1201
1212
|
name: {
|
|
@@ -1243,7 +1254,7 @@ const Za = /* @__PURE__ */ M(zs, [["render", Ps]]), As = E({
|
|
|
1243
1254
|
getID(s) {
|
|
1244
1255
|
}
|
|
1245
1256
|
}), e[t.name] || (e[t.name] = t.min);
|
|
1246
|
-
const r =
|
|
1257
|
+
const r = q({
|
|
1247
1258
|
get() {
|
|
1248
1259
|
var s;
|
|
1249
1260
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1272,8 +1283,8 @@ const Za = /* @__PURE__ */ M(zs, [["render", Ps]]), As = E({
|
|
|
1272
1283
|
return {};
|
|
1273
1284
|
}
|
|
1274
1285
|
}), Ns = ["name", "value", "disabled", "readonly"];
|
|
1275
|
-
function
|
|
1276
|
-
const i = L("InputGroupText"), a = L("InputGroup"), l =
|
|
1286
|
+
function Ds(t, e, n, r, s, o) {
|
|
1287
|
+
const i = L("InputGroupText"), a = L("InputGroup"), l = qn("maska");
|
|
1277
1288
|
return m(), ee(a, { class: "input-group-quantity" }, {
|
|
1278
1289
|
default: ie(() => [
|
|
1279
1290
|
b("button", {
|
|
@@ -1328,17 +1339,17 @@ function Os(t, e, n, r, s, o) {
|
|
|
1328
1339
|
])),
|
|
1329
1340
|
Q(i, { class: "fanum" }, {
|
|
1330
1341
|
default: ie(() => [
|
|
1331
|
-
|
|
1342
|
+
gt(H(t.unit), 1)
|
|
1332
1343
|
]),
|
|
1333
1344
|
_: 1
|
|
1334
1345
|
}),
|
|
1335
|
-
|
|
1346
|
+
O(t.$slots, "suffix")
|
|
1336
1347
|
]),
|
|
1337
1348
|
_: 3
|
|
1338
1349
|
});
|
|
1339
1350
|
}
|
|
1340
|
-
const
|
|
1341
|
-
components: { GroupControl: bs, QuantityInput:
|
|
1351
|
+
const Os = /* @__PURE__ */ M(As, [["render", Ds]]), Rs = E({
|
|
1352
|
+
components: { GroupControl: bs, QuantityInput: Os, InputGroup: _t, InputGroupText: bt, Dropdown: ar, DropdownToggle: cr, DropdownMenu: pr },
|
|
1342
1353
|
props: {
|
|
1343
1354
|
name: {
|
|
1344
1355
|
type: String,
|
|
@@ -1379,7 +1390,7 @@ const Ds = /* @__PURE__ */ M(As, [["render", Os]]), Rs = E({
|
|
|
1379
1390
|
errors: {},
|
|
1380
1391
|
getID(s) {
|
|
1381
1392
|
}
|
|
1382
|
-
}), e[t.name] || (e[t.name] = t.min), { modelValue:
|
|
1393
|
+
}), e[t.name] || (e[t.name] = t.min), { modelValue: q({
|
|
1383
1394
|
get() {
|
|
1384
1395
|
var s;
|
|
1385
1396
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1424,8 +1435,8 @@ function qs(t, e, n, r, s, o) {
|
|
|
1424
1435
|
b("button", {
|
|
1425
1436
|
type: "button",
|
|
1426
1437
|
class: "form-control fanum dropdown-toggle",
|
|
1427
|
-
onClick: e[0] || (e[0] =
|
|
1428
|
-
},
|
|
1438
|
+
onClick: e[0] || (e[0] = tn((...l) => t.show && t.show(...l), ["prevent"]))
|
|
1439
|
+
}, H(t.totalQuantity) + " " + H(t.unit), 1),
|
|
1429
1440
|
b("div", {
|
|
1430
1441
|
class: R(["multi-quantity-input--dropdown", { show: t.showDropdown }])
|
|
1431
1442
|
}, [
|
|
@@ -1513,7 +1524,7 @@ const Ya = /* @__PURE__ */ M(Rs, [["render", qs]]), Hs = E({
|
|
|
1513
1524
|
return s;
|
|
1514
1525
|
}
|
|
1515
1526
|
}), n = k("group", {});
|
|
1516
|
-
return { modelValue:
|
|
1527
|
+
return { modelValue: q({
|
|
1517
1528
|
get() {
|
|
1518
1529
|
var s;
|
|
1519
1530
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1654,7 +1665,7 @@ function Zs(t, e, n, r, s, o) {
|
|
|
1654
1665
|
(m(!0), g(pe, null, _e(t.options, (i, a) => (m(), g("option", {
|
|
1655
1666
|
value: t.getKeyFromItem(i),
|
|
1656
1667
|
selected: t.selected(i)
|
|
1657
|
-
},
|
|
1668
|
+
}, H(t.getLabelFromItem(i)), 9, Ws))), 256))
|
|
1658
1669
|
], 16, Gs), [
|
|
1659
1670
|
[Gn, t.modelValue]
|
|
1660
1671
|
])
|
|
@@ -1759,7 +1770,7 @@ function Js(t, e, n, r, s, o) {
|
|
|
1759
1770
|
}, "★", 4)
|
|
1760
1771
|
]))), 128))
|
|
1761
1772
|
], 544),
|
|
1762
|
-
t.showValue && t.displayRating > 0 ? (m(), g("div", Ks,
|
|
1773
|
+
t.showValue && t.displayRating > 0 ? (m(), g("div", Ks, H(t.displayRating), 1)) : j("", !0)
|
|
1763
1774
|
]);
|
|
1764
1775
|
}
|
|
1765
1776
|
const Ka = /* @__PURE__ */ M(Ys, [["render", Js]]), Qs = E({
|
|
@@ -1785,13 +1796,13 @@ function ni(t, e, n, r, s, o) {
|
|
|
1785
1796
|
disabled: t.disabled || ((a = t.form) == null ? void 0 : a.processing) || ((l = t.form) == null ? void 0 : l.uploading)
|
|
1786
1797
|
}, [
|
|
1787
1798
|
(u = t.form) != null && u.processing || (d = t.form) != null && d.uploading ? (m(), ee(i, { key: 0 })) : j("", !0),
|
|
1788
|
-
|
|
1789
|
-
e[0] || (e[0] =
|
|
1799
|
+
O(t.$slots, "default", { form: t.form }, () => [
|
|
1800
|
+
e[0] || (e[0] = gt(" تایید و ثبت اطلاعات "))
|
|
1790
1801
|
]),
|
|
1791
|
-
|
|
1802
|
+
O(t.$slots, "progress", {}, () => {
|
|
1792
1803
|
var p, c;
|
|
1793
1804
|
return [
|
|
1794
|
-
(p = t.form) != null && p.uploading ? (m(), g("span", ti,
|
|
1805
|
+
(p = t.form) != null && p.uploading ? (m(), g("span", ti, H((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : j("", !0)
|
|
1795
1806
|
];
|
|
1796
1807
|
})
|
|
1797
1808
|
], 8, ei);
|
|
@@ -1874,7 +1885,7 @@ const Qa = /* @__PURE__ */ M(ri, [["render", ii]]), oi = E({
|
|
|
1874
1885
|
return s;
|
|
1875
1886
|
}
|
|
1876
1887
|
}), n = k("group", {});
|
|
1877
|
-
return { modelValue:
|
|
1888
|
+
return { modelValue: q({
|
|
1878
1889
|
get() {
|
|
1879
1890
|
var s;
|
|
1880
1891
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1894,7 +1905,7 @@ function li(t, e, n, r, s, o) {
|
|
|
1894
1905
|
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
1895
1906
|
disabled: (a = t.form) == null ? void 0 : a.processing
|
|
1896
1907
|
}, null, 10, ai)), [
|
|
1897
|
-
[
|
|
1908
|
+
[He, t.modelValue]
|
|
1898
1909
|
]);
|
|
1899
1910
|
}
|
|
1900
1911
|
const el = /* @__PURE__ */ M(oi, [["render", li]]), tl = {
|
|
@@ -1918,7 +1929,7 @@ const el = /* @__PURE__ */ M(oi, [["render", li]]), tl = {
|
|
|
1918
1929
|
value: {},
|
|
1919
1930
|
errors: {},
|
|
1920
1931
|
getID: (u) => u
|
|
1921
|
-
}), o = k("group", null), i =
|
|
1932
|
+
}), o = k("group", null), i = W(null), a = W(null), l = q({
|
|
1922
1933
|
get() {
|
|
1923
1934
|
var u;
|
|
1924
1935
|
return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
|
|
@@ -2077,9 +2088,9 @@ function bi(t, e, n, r, s, o) {
|
|
|
2077
2088
|
style: vt({ width: l.percent + "%" })
|
|
2078
2089
|
}, null, 4)
|
|
2079
2090
|
])) : j("", !0),
|
|
2080
|
-
b("div", null,
|
|
2081
|
-
l.error ? (m(), g("div", mi,
|
|
2082
|
-
b("div", gi,
|
|
2091
|
+
b("div", null, H(l.file.name), 1),
|
|
2092
|
+
l.error ? (m(), g("div", mi, H(l.error), 1)) : j("", !0),
|
|
2093
|
+
b("div", gi, H(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
2083
2094
|
b("div", yi, [
|
|
2084
2095
|
l.error ? (m(), g("button", {
|
|
2085
2096
|
key: 0,
|
|
@@ -2165,7 +2176,7 @@ const nl = /* @__PURE__ */ M(ui, [["render", bi]]), wi = E({
|
|
|
2165
2176
|
return s;
|
|
2166
2177
|
}
|
|
2167
2178
|
}), n = k("group", {});
|
|
2168
|
-
return { modelValue:
|
|
2179
|
+
return { modelValue: q({
|
|
2169
2180
|
get() {
|
|
2170
2181
|
var s;
|
|
2171
2182
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -2216,12 +2227,12 @@ function Si(t, e, n, r, s, o) {
|
|
|
2216
2227
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
|
|
2217
2228
|
type: "hidden"
|
|
2218
2229
|
}, null, 512), [
|
|
2219
|
-
[
|
|
2230
|
+
[He, t.modelValue]
|
|
2220
2231
|
])
|
|
2221
2232
|
], 512);
|
|
2222
2233
|
}
|
|
2223
2234
|
const rl = /* @__PURE__ */ M(wi, [["render", Si]]);
|
|
2224
|
-
var
|
|
2235
|
+
var We, I, rn, ae, Ut, sn, on, an, wt, tt, nt, Ce = {}, ln = [], Fi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ze = Array.isArray;
|
|
2225
2236
|
function ne(t, e) {
|
|
2226
2237
|
for (var n in e) t[n] = e[n];
|
|
2227
2238
|
return t;
|
|
@@ -2232,17 +2243,17 @@ function $t(t) {
|
|
|
2232
2243
|
function St(t, e, n) {
|
|
2233
2244
|
var r, s, o, i = {};
|
|
2234
2245
|
for (o in e) o == "key" ? r = e[o] : o == "ref" ? s = e[o] : i[o] = e[o];
|
|
2235
|
-
if (arguments.length > 2 && (i.children = arguments.length > 3 ?
|
|
2236
|
-
return
|
|
2246
|
+
if (arguments.length > 2 && (i.children = arguments.length > 3 ? We.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) i[o] === void 0 && (i[o] = t.defaultProps[o]);
|
|
2247
|
+
return De(t, i, r, s, null);
|
|
2237
2248
|
}
|
|
2238
|
-
function
|
|
2239
|
-
var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: s ?? ++
|
|
2249
|
+
function De(t, e, n, r, s) {
|
|
2250
|
+
var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: s ?? ++rn, __i: -1, __u: 0 };
|
|
2240
2251
|
return s == null && I.vnode != null && I.vnode(o), o;
|
|
2241
2252
|
}
|
|
2242
2253
|
function ge(t) {
|
|
2243
2254
|
return t.children;
|
|
2244
2255
|
}
|
|
2245
|
-
function
|
|
2256
|
+
function Oe(t, e) {
|
|
2246
2257
|
this.props = t, this.context = e;
|
|
2247
2258
|
}
|
|
2248
2259
|
function ye(t, e) {
|
|
@@ -2250,38 +2261,38 @@ function ye(t, e) {
|
|
|
2250
2261
|
for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
|
|
2251
2262
|
return typeof t.type == "function" ? ye(t) : null;
|
|
2252
2263
|
}
|
|
2253
|
-
function
|
|
2264
|
+
function un(t) {
|
|
2254
2265
|
var e, n;
|
|
2255
2266
|
if ((t = t.__) != null && t.__c != null) {
|
|
2256
2267
|
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) {
|
|
2257
2268
|
t.__e = t.__c.base = n.__e;
|
|
2258
2269
|
break;
|
|
2259
2270
|
}
|
|
2260
|
-
return
|
|
2271
|
+
return un(t);
|
|
2261
2272
|
}
|
|
2262
2273
|
}
|
|
2263
2274
|
function zt(t) {
|
|
2264
|
-
(!t.__d && (t.__d = !0) && ae.push(t) && !je.__r++ || Ut != I.debounceRendering) && ((Ut = I.debounceRendering) ||
|
|
2275
|
+
(!t.__d && (t.__d = !0) && ae.push(t) && !je.__r++ || Ut != I.debounceRendering) && ((Ut = I.debounceRendering) || sn)(je);
|
|
2265
2276
|
}
|
|
2266
2277
|
function je() {
|
|
2267
|
-
for (var t, e, n, r, s, o, i, a = 1; ae.length; ) ae.length > a && ae.sort(
|
|
2278
|
+
for (var t, e, n, r, s, o, i, a = 1; ae.length; ) ae.length > a && ae.sort(on), t = ae.shift(), a = ae.length, t.__d && (n = void 0, r = void 0, s = (r = (e = t).__v).__e, o = [], i = [], e.__P && ((n = ne({}, r)).__v = r.__v + 1, I.vnode && I.vnode(n), Ft(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [s] : null, o, s ?? ye(r), !!(32 & r.__u), i), n.__v = r.__v, n.__.__k[n.__i] = n, cn(o, n, i), r.__e = r.__ = null, n.__e != s && un(n)));
|
|
2268
2279
|
je.__r = 0;
|
|
2269
2280
|
}
|
|
2270
|
-
function
|
|
2271
|
-
var p, c, h, v, V, z, C, T = r && r.__k ||
|
|
2272
|
-
for (l = Ci(n, e, T, l, Z), p = 0; p < Z; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Ce : T[h.__i] || Ce, h.__i = p, z = Ft(t, h, c, s, o, i, a, l, u, d), v = h.__e, h.ref && c.ref != h.ref && (c.ref && Ct(c.ref, null, h), d.push(h.ref, h.__c || v, h)), V == null && v != null && (V = v), (C = !!(4 & h.__u)) || c.__k === h.__k ? l =
|
|
2281
|
+
function dn(t, e, n, r, s, o, i, a, l, u, d) {
|
|
2282
|
+
var p, c, h, v, V, z, C, T = r && r.__k || ln, Z = e.length;
|
|
2283
|
+
for (l = Ci(n, e, T, l, Z), p = 0; p < Z; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Ce : T[h.__i] || Ce, h.__i = p, z = Ft(t, h, c, s, o, i, a, l, u, d), v = h.__e, h.ref && c.ref != h.ref && (c.ref && Ct(c.ref, null, h), d.push(h.ref, h.__c || v, h)), V == null && v != null && (V = v), (C = !!(4 & h.__u)) || c.__k === h.__k ? l = pn(h, l, t, C) : typeof h.type == "function" && z !== void 0 ? l = z : v && (l = v.nextSibling), h.__u &= -7);
|
|
2273
2284
|
return n.__e = V, l;
|
|
2274
2285
|
}
|
|
2275
2286
|
function Ci(t, e, n, r, s) {
|
|
2276
2287
|
var o, i, a, l, u, d = n.length, p = d, c = 0;
|
|
2277
|
-
for (t.__k = new Array(s), o = 0; o < s; o++) (i = e[o]) != null && typeof i != "boolean" && typeof i != "function" ? (typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? i = t.__k[o] =
|
|
2278
|
-
if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ye(a)),
|
|
2288
|
+
for (t.__k = new Array(s), o = 0; o < s; o++) (i = e[o]) != null && typeof i != "boolean" && typeof i != "function" ? (typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? i = t.__k[o] = De(null, i, null, null, null) : Ze(i) ? i = t.__k[o] = De(ge, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = De(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : t.__k[o] = i, l = o + c, i.__ = t, i.__b = t.__b + 1, a = null, (u = i.__i = ki(i, n, l, p)) != -1 && (p--, (a = n[u]) && (a.__u |= 2)), a == null || a.__v == null ? (u == -1 && (s > d ? c-- : s < d && c++), typeof i.type != "function" && (i.__u |= 4)) : u != l && (u == l - 1 ? c-- : u == l + 1 ? c++ : (u > l ? c-- : c++, i.__u |= 4))) : t.__k[o] = null;
|
|
2289
|
+
if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ye(a)), hn(a, a));
|
|
2279
2290
|
return r;
|
|
2280
2291
|
}
|
|
2281
|
-
function
|
|
2292
|
+
function pn(t, e, n, r) {
|
|
2282
2293
|
var s, o;
|
|
2283
2294
|
if (typeof t.type == "function") {
|
|
2284
|
-
for (s = t.__k, o = 0; s && o < s.length; o++) s[o] && (s[o].__ = t, e =
|
|
2295
|
+
for (s = t.__k, o = 0; s && o < s.length; o++) s[o] && (s[o].__ = t, e = pn(s[o], e, n, r));
|
|
2285
2296
|
return e;
|
|
2286
2297
|
}
|
|
2287
2298
|
t.__e != e && (r && (e && t.type && !e.parentNode && (e = ye(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
|
|
@@ -2308,7 +2319,7 @@ function ze(t, e, n, r, s) {
|
|
|
2308
2319
|
if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || Pt(t.style, e, "");
|
|
2309
2320
|
if (n) for (e in n) r && n[e] == r[e] || Pt(t.style, e, n[e]);
|
|
2310
2321
|
}
|
|
2311
|
-
else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(
|
|
2322
|
+
else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(an, "$1")), i = e.toLowerCase(), e = i in t || e == "onFocusOut" || e == "onFocusIn" ? i.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + o] = n, n ? r ? n.u = r.u : (n.u = wt, t.addEventListener(e, o ? nt : tt, o)) : t.removeEventListener(e, o ? nt : tt, o);
|
|
2312
2323
|
else {
|
|
2313
2324
|
if (s == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
2314
2325
|
else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t) try {
|
|
@@ -2330,11 +2341,11 @@ function At(t) {
|
|
|
2330
2341
|
};
|
|
2331
2342
|
}
|
|
2332
2343
|
function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
2333
|
-
var d, p, c, h, v, V, z, C, T, Z, f, _, $, U, N,
|
|
2344
|
+
var d, p, c, h, v, V, z, C, T, Z, f, _, $, U, N, G, te, P = e.type;
|
|
2334
2345
|
if (e.constructor !== void 0) return null;
|
|
2335
2346
|
128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = I.__b) && d(e);
|
|
2336
2347
|
e: if (typeof P == "function") try {
|
|
2337
|
-
if (C = e.props, T = "prototype" in P && P.prototype.render, Z = (d = P.contextType) && r[d.__c], f = d ? Z ? Z.props.value : d.__ : r, n.__c ? z = (p = e.__c = n.__c).__ = p.__E : (T ? e.__c = p = new P(C, f) : (e.__c = p = new
|
|
2348
|
+
if (C = e.props, T = "prototype" in P && P.prototype.render, Z = (d = P.contextType) && r[d.__c], f = d ? Z ? Z.props.value : d.__ : r, n.__c ? z = (p = e.__c = n.__c).__ = p.__E : (T ? e.__c = p = new P(C, f) : (e.__c = p = new Oe(C, f), p.constructor = P, p.render = Ei), Z && Z.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), T && p.__s == null && (p.__s = p.state), T && P.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = ne({}, p.__s)), ne(p.__s, P.getDerivedStateFromProps(C, p.__s))), h = p.props, v = p.state, p.__v = e, c) T && P.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), T && p.componentDidMount != null && p.__h.push(p.componentDidMount);
|
|
2338
2349
|
else {
|
|
2339
2350
|
if (T && P.getDerivedStateFromProps == null && C !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(C, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(C, p.__s, f) === !1) {
|
|
2340
2351
|
for (e.__v != n.__v && (p.props = C, p.state = p.__s, p.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(Y) {
|
|
@@ -2353,25 +2364,25 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2353
2364
|
} else do
|
|
2354
2365
|
p.__d = !1, $ && $(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
|
|
2355
2366
|
while (p.__d && ++U < 25);
|
|
2356
|
-
p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), T && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)),
|
|
2367
|
+
p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), T && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)), G = d, d != null && d.type === ge && d.key == null && (G = fn(d.props.children)), a = dn(t, Ze(G) ? G : [G], e, n, r, s, o, i, a, l, u), p.base = e.__e, e.__u &= -161, p.__h.length && i.push(p), z && (p.__E = p.__ = null);
|
|
2357
2368
|
} catch (Y) {
|
|
2358
2369
|
if (e.__v = null, l || o != null) if (Y.then) {
|
|
2359
2370
|
for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
2360
2371
|
o[o.indexOf(a)] = null, e.__e = a;
|
|
2361
2372
|
} else {
|
|
2362
2373
|
for (te = o.length; te--; ) $t(o[te]);
|
|
2363
|
-
|
|
2374
|
+
rt(e);
|
|
2364
2375
|
}
|
|
2365
|
-
else e.__e = n.__e, e.__k = n.__k, Y.then ||
|
|
2376
|
+
else e.__e = n.__e, e.__k = n.__k, Y.then || rt(e);
|
|
2366
2377
|
I.__e(Y, e, n);
|
|
2367
2378
|
}
|
|
2368
2379
|
else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e = Ti(n.__e, e, n, r, s, o, i, l, u);
|
|
2369
2380
|
return (d = I.diffed) && d(e), 128 & e.__u ? void 0 : a;
|
|
2370
2381
|
}
|
|
2371
|
-
function
|
|
2372
|
-
t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(
|
|
2382
|
+
function rt(t) {
|
|
2383
|
+
t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(rt);
|
|
2373
2384
|
}
|
|
2374
|
-
function
|
|
2385
|
+
function cn(t, e, n) {
|
|
2375
2386
|
for (var r = 0; r < n.length; r++) Ct(n[r], n[++r], n[++r]);
|
|
2376
2387
|
I.__c && I.__c(e, t), t.some(function(s) {
|
|
2377
2388
|
try {
|
|
@@ -2383,8 +2394,8 @@ function fn(t, e, n) {
|
|
|
2383
2394
|
}
|
|
2384
2395
|
});
|
|
2385
2396
|
}
|
|
2386
|
-
function
|
|
2387
|
-
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t :
|
|
2397
|
+
function fn(t) {
|
|
2398
|
+
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ze(t) ? t.map(fn) : ne({}, t);
|
|
2388
2399
|
}
|
|
2389
2400
|
function Ti(t, e, n, r, s, o, i, a, l) {
|
|
2390
2401
|
var u, d, p, c, h, v, V, z = n.props || Ce, C = e.props, T = e.type;
|
|
@@ -2400,7 +2411,7 @@ function Ti(t, e, n, r, s, o, i, a, l) {
|
|
|
2400
2411
|
}
|
|
2401
2412
|
if (T == null) z === C || a && t.data == C || (t.data = C);
|
|
2402
2413
|
else {
|
|
2403
|
-
if (o = o &&
|
|
2414
|
+
if (o = o && We.call(t.childNodes), !a && o != null) for (z = {}, u = 0; u < t.attributes.length; u++) z[(h = t.attributes[u]).name] = h.value;
|
|
2404
2415
|
for (u in z) if (h = z[u], u != "children") {
|
|
2405
2416
|
if (u == "dangerouslySetInnerHTML") p = h;
|
|
2406
2417
|
else if (!(u in C)) {
|
|
@@ -2410,7 +2421,7 @@ function Ti(t, e, n, r, s, o, i, a, l) {
|
|
|
2410
2421
|
}
|
|
2411
2422
|
for (u in C) h = C[u], u == "children" ? c = h : u == "dangerouslySetInnerHTML" ? d = h : u == "value" ? v = h : u == "checked" ? V = h : a && typeof h != "function" || z[u] === h || ze(t, u, h, z[u], s);
|
|
2412
2423
|
if (d) a || p && (d.__html == p.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
|
|
2413
|
-
else if (p && (t.innerHTML = ""),
|
|
2424
|
+
else if (p && (t.innerHTML = ""), dn(e.type == "template" ? t.content : t, Ze(c) ? c : [c], e, n, r, T == "foreignObject" ? "http://www.w3.org/1999/xhtml" : s, o, i, o ? o[0] : n.__k && ye(n, 0), a, l), o != null) for (u = o.length; u--; ) $t(o[u]);
|
|
2414
2425
|
a || (u = "value", T == "progress" && v == null ? t.removeAttribute("value") : v != null && (v !== t[u] || T == "progress" && !v || T == "option" && v != z[u]) && ze(t, u, v, z[u], s), u = "checked", V != null && V != t[u] && ze(t, u, V, z[u], s));
|
|
2415
2426
|
}
|
|
2416
2427
|
return t;
|
|
@@ -2425,7 +2436,7 @@ function Ct(t, e, n) {
|
|
|
2425
2436
|
I.__e(s, n);
|
|
2426
2437
|
}
|
|
2427
2438
|
}
|
|
2428
|
-
function
|
|
2439
|
+
function hn(t, e, n) {
|
|
2429
2440
|
var r, s;
|
|
2430
2441
|
if (I.unmount && I.unmount(t), (r = t.ref) && (r.current && r.current != t.__e || Ct(r, null, e)), (r = t.__c) != null) {
|
|
2431
2442
|
if (r.componentWillUnmount) try {
|
|
@@ -2435,31 +2446,31 @@ function mn(t, e, n) {
|
|
|
2435
2446
|
}
|
|
2436
2447
|
r.base = r.__P = null;
|
|
2437
2448
|
}
|
|
2438
|
-
if (r = t.__k) for (s = 0; s < r.length; s++) r[s] &&
|
|
2449
|
+
if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && hn(r[s], e, n || typeof t.type != "function");
|
|
2439
2450
|
n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
|
|
2440
2451
|
}
|
|
2441
2452
|
function Ei(t, e, n) {
|
|
2442
2453
|
return this.constructor(t, n);
|
|
2443
2454
|
}
|
|
2444
|
-
function
|
|
2455
|
+
function mn(t, e, n) {
|
|
2445
2456
|
var r, s, o, i;
|
|
2446
|
-
e == document && (e = document.documentElement), I.__ && I.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(ge, null, [t]), s || Ce, Ce, e.namespaceURI, s ? null : e.firstChild ?
|
|
2457
|
+
e == document && (e = document.documentElement), I.__ && I.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(ge, null, [t]), s || Ce, Ce, e.namespaceURI, s ? null : e.firstChild ? We.call(e.childNodes) : null, o, s ? s.__e : e.firstChild, r, i), cn(o, t, i);
|
|
2447
2458
|
}
|
|
2448
|
-
|
|
2459
|
+
We = ln.slice, I = { __e: function(t, e, n, r) {
|
|
2449
2460
|
for (var s, o, i; e = e.__; ) if ((s = e.__c) && !s.__) try {
|
|
2450
2461
|
if ((o = s.constructor) && o.getDerivedStateFromError != null && (s.setState(o.getDerivedStateFromError(t)), i = s.__d), s.componentDidCatch != null && (s.componentDidCatch(t, r || {}), i = s.__d), i) return s.__E = s;
|
|
2451
2462
|
} catch (a) {
|
|
2452
2463
|
t = a;
|
|
2453
2464
|
}
|
|
2454
2465
|
throw t;
|
|
2455
|
-
} },
|
|
2466
|
+
} }, rn = 0, Oe.prototype.setState = function(t, e) {
|
|
2456
2467
|
var n;
|
|
2457
2468
|
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = ne({}, this.state), typeof t == "function" && (t = t(ne({}, n), this.props)), t && ne(n, t), t != null && this.__v && (e && this._sb.push(e), zt(this));
|
|
2458
|
-
},
|
|
2469
|
+
}, Oe.prototype.forceUpdate = function(t) {
|
|
2459
2470
|
this.__v && (this.__e = !0, t && this.__h.push(t), zt(this));
|
|
2460
|
-
},
|
|
2471
|
+
}, Oe.prototype.render = ge, ae = [], sn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, on = function(t, e) {
|
|
2461
2472
|
return t.__v.__b - e.__v.__b;
|
|
2462
|
-
}, je.__r = 0,
|
|
2473
|
+
}, je.__r = 0, an = /(PointerCapture)$|Capture$/i, wt = 0, tt = At(!1), nt = At(!0);
|
|
2463
2474
|
var Ii = 0;
|
|
2464
2475
|
function S(t, e, n, r, s, o) {
|
|
2465
2476
|
e || (e = {});
|
|
@@ -2469,31 +2480,31 @@ function S(t, e, n, r, s, o) {
|
|
|
2469
2480
|
if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
|
|
2470
2481
|
return I.vnode && I.vnode(u), u;
|
|
2471
2482
|
}
|
|
2472
|
-
function
|
|
2483
|
+
function gn(t) {
|
|
2473
2484
|
var e, n, r = "";
|
|
2474
2485
|
if (typeof t == "string" || typeof t == "number") r += t;
|
|
2475
2486
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
2476
2487
|
var s = t.length;
|
|
2477
|
-
for (e = 0; e < s; e++) t[e] && (n =
|
|
2488
|
+
for (e = 0; e < s; e++) t[e] && (n = gn(t[e])) && (r && (r += " "), r += n);
|
|
2478
2489
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
2479
2490
|
return r;
|
|
2480
2491
|
}
|
|
2481
|
-
function
|
|
2482
|
-
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e =
|
|
2492
|
+
function yn() {
|
|
2493
|
+
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = gn(t)) && (r && (r += " "), r += e);
|
|
2483
2494
|
return r;
|
|
2484
2495
|
}
|
|
2485
|
-
var ke, A,
|
|
2496
|
+
var ke, A, Je, Nt, st = 0, vn = [], D = I, Dt = D.__b, Ot = D.__r, Rt = D.diffed, Bt = D.__c, jt = D.unmount, Lt = D.__;
|
|
2486
2497
|
function kt(t, e) {
|
|
2487
|
-
|
|
2498
|
+
D.__h && D.__h(A, t, st || e), st = 0;
|
|
2488
2499
|
var n = A.__H || (A.__H = { __: [], __h: [] });
|
|
2489
2500
|
return t >= n.__.length && n.__.push({}), n.__[t];
|
|
2490
2501
|
}
|
|
2491
2502
|
function Vi(t) {
|
|
2492
|
-
return
|
|
2503
|
+
return st = 1, Mi($n, t);
|
|
2493
2504
|
}
|
|
2494
2505
|
function Mi(t, e, n) {
|
|
2495
2506
|
var r = kt(ke++, 2);
|
|
2496
|
-
if (r.t = t, !r.__c && (r.__ = [
|
|
2507
|
+
if (r.t = t, !r.__c && (r.__ = [$n(void 0, e), function(a) {
|
|
2497
2508
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
|
|
2498
2509
|
l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
2499
2510
|
}], r.__c = A, !A.__f)) {
|
|
@@ -2525,50 +2536,50 @@ function Mi(t, e, n) {
|
|
|
2525
2536
|
}
|
|
2526
2537
|
return r.__N || r.__;
|
|
2527
2538
|
}
|
|
2528
|
-
function
|
|
2539
|
+
function _n(t, e) {
|
|
2529
2540
|
var n = kt(ke++, 3);
|
|
2530
|
-
!
|
|
2541
|
+
!D.__s && wn(n.__H, e) && (n.__ = t, n.u = e, A.__H.__h.push(n));
|
|
2531
2542
|
}
|
|
2532
|
-
function
|
|
2543
|
+
function bn(t, e) {
|
|
2533
2544
|
var n = kt(ke++, 7);
|
|
2534
|
-
return
|
|
2545
|
+
return wn(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
|
|
2535
2546
|
}
|
|
2536
2547
|
function Ui() {
|
|
2537
|
-
for (var t; t =
|
|
2538
|
-
t.__H.__h.forEach(Re), t.__H.__h.forEach(
|
|
2548
|
+
for (var t; t = vn.shift(); ) if (t.__P && t.__H) try {
|
|
2549
|
+
t.__H.__h.forEach(Re), t.__H.__h.forEach(it), t.__H.__h = [];
|
|
2539
2550
|
} catch (e) {
|
|
2540
|
-
t.__H.__h = [],
|
|
2551
|
+
t.__H.__h = [], D.__e(e, t.__v);
|
|
2541
2552
|
}
|
|
2542
2553
|
}
|
|
2543
|
-
|
|
2544
|
-
A = null,
|
|
2545
|
-
},
|
|
2554
|
+
D.__b = function(t) {
|
|
2555
|
+
A = null, Dt && Dt(t);
|
|
2556
|
+
}, D.__ = function(t, e) {
|
|
2546
2557
|
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
|
|
2547
|
-
},
|
|
2548
|
-
|
|
2558
|
+
}, D.__r = function(t) {
|
|
2559
|
+
Ot && Ot(t), ke = 0;
|
|
2549
2560
|
var e = (A = t.__c).__H;
|
|
2550
|
-
e && (
|
|
2561
|
+
e && (Je === A ? (e.__h = [], A.__h = [], e.__.forEach(function(n) {
|
|
2551
2562
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
2552
|
-
})) : (e.__h.forEach(Re), e.__h.forEach(
|
|
2553
|
-
},
|
|
2563
|
+
})) : (e.__h.forEach(Re), e.__h.forEach(it), e.__h = [], ke = 0)), Je = A;
|
|
2564
|
+
}, D.diffed = function(t) {
|
|
2554
2565
|
Rt && Rt(t);
|
|
2555
2566
|
var e = t.__c;
|
|
2556
|
-
e && e.__H && (e.__H.__h.length && (
|
|
2567
|
+
e && e.__H && (e.__H.__h.length && (vn.push(e) !== 1 && Nt === D.requestAnimationFrame || ((Nt = D.requestAnimationFrame) || zi)(Ui)), e.__H.__.forEach(function(n) {
|
|
2557
2568
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
2558
|
-
})),
|
|
2559
|
-
},
|
|
2569
|
+
})), Je = A = null;
|
|
2570
|
+
}, D.__c = function(t, e) {
|
|
2560
2571
|
e.some(function(n) {
|
|
2561
2572
|
try {
|
|
2562
2573
|
n.__h.forEach(Re), n.__h = n.__h.filter(function(r) {
|
|
2563
|
-
return !r.__ ||
|
|
2574
|
+
return !r.__ || it(r);
|
|
2564
2575
|
});
|
|
2565
2576
|
} catch (r) {
|
|
2566
2577
|
e.some(function(s) {
|
|
2567
2578
|
s.__h && (s.__h = []);
|
|
2568
|
-
}), e = [],
|
|
2579
|
+
}), e = [], D.__e(r, n.__v);
|
|
2569
2580
|
}
|
|
2570
2581
|
}), Bt && Bt(t, e);
|
|
2571
|
-
},
|
|
2582
|
+
}, D.unmount = function(t) {
|
|
2572
2583
|
jt && jt(t);
|
|
2573
2584
|
var e, n = t.__c;
|
|
2574
2585
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
@@ -2577,7 +2588,7 @@ O.__b = function(t) {
|
|
|
2577
2588
|
} catch (s) {
|
|
2578
2589
|
e = s;
|
|
2579
2590
|
}
|
|
2580
|
-
}), n.__H = void 0, e &&
|
|
2591
|
+
}), n.__H = void 0, e && D.__e(e, n.__v));
|
|
2581
2592
|
};
|
|
2582
2593
|
var xt = typeof requestAnimationFrame == "function";
|
|
2583
2594
|
function zi(t) {
|
|
@@ -2590,16 +2601,16 @@ function Re(t) {
|
|
|
2590
2601
|
var e = A, n = t.__c;
|
|
2591
2602
|
typeof n == "function" && (t.__c = void 0, n()), A = e;
|
|
2592
2603
|
}
|
|
2593
|
-
function
|
|
2604
|
+
function it(t) {
|
|
2594
2605
|
var e = A;
|
|
2595
2606
|
t.__c = t.__(), A = e;
|
|
2596
2607
|
}
|
|
2597
|
-
function
|
|
2608
|
+
function wn(t, e) {
|
|
2598
2609
|
return !t || t.length !== e.length || e.some(function(n, r) {
|
|
2599
2610
|
return n !== t[r];
|
|
2600
2611
|
});
|
|
2601
2612
|
}
|
|
2602
|
-
function
|
|
2613
|
+
function $n(t, e) {
|
|
2603
2614
|
return typeof e == "function" ? e(t) : e;
|
|
2604
2615
|
}
|
|
2605
2616
|
function Pi(t, e = {}) {
|
|
@@ -2664,7 +2675,7 @@ function Ai(t) {
|
|
|
2664
2675
|
const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
|
|
2665
2676
|
if (!o.uppy)
|
|
2666
2677
|
throw new Error("Dropzone must be used within a UppyContextProvider");
|
|
2667
|
-
const { getRootProps: i, getInputProps: a } =
|
|
2678
|
+
const { getRootProps: i, getInputProps: a } = bn(() => Pi(o, { noClick: s }), [o, s]);
|
|
2668
2679
|
return S("div", { className: "uppy-reset", "data-uppy-element": "dropzone", role: "presentation", children: [S("input", { ...a(), tabIndex: -1, name: "uppy-dropzone-file-input", className: "uppy:hidden" }), S("div", {
|
|
2669
2680
|
...i(),
|
|
2670
2681
|
// biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
|
|
@@ -2673,7 +2684,7 @@ function Ai(t) {
|
|
|
2673
2684
|
width: e || "100%",
|
|
2674
2685
|
height: n || "100%"
|
|
2675
2686
|
},
|
|
2676
|
-
className:
|
|
2687
|
+
className: yn("uppy:border-2 uppy:border-dashed uppy:border-gray-300", "uppy:rounded-lg uppy:p-6 uppy:bg-gray-50", "uppy:transition-colors uppy:duration-200", {
|
|
2677
2688
|
"uppy:cursor-pointer uppy:hover:bg-blue-50": !s
|
|
2678
2689
|
}),
|
|
2679
2690
|
children: [S("div", { className: "uppy:flex uppy:flex-col uppy:items-center uppy:justify-center uppy:h-full uppy:space-y-3", children: S("p", { className: "uppy:text-gray-600", children: "Drop files here or click to add them" }) }), r ? S("div", { className: "uppy:text-sm uppy:text-gray-500", children: r }) : null]
|
|
@@ -2689,7 +2700,7 @@ const Ni = [
|
|
|
2689
2700
|
"EB",
|
|
2690
2701
|
"ZB",
|
|
2691
2702
|
"YB"
|
|
2692
|
-
],
|
|
2703
|
+
], Di = [
|
|
2693
2704
|
"B",
|
|
2694
2705
|
"KiB",
|
|
2695
2706
|
"MiB",
|
|
@@ -2699,7 +2710,7 @@ const Ni = [
|
|
|
2699
2710
|
"EiB",
|
|
2700
2711
|
"ZiB",
|
|
2701
2712
|
"YiB"
|
|
2702
|
-
],
|
|
2713
|
+
], Oi = [
|
|
2703
2714
|
"b",
|
|
2704
2715
|
"kbit",
|
|
2705
2716
|
"Mbit",
|
|
@@ -2732,7 +2743,7 @@ function Bi(t, e) {
|
|
|
2732
2743
|
space: !0,
|
|
2733
2744
|
...e
|
|
2734
2745
|
};
|
|
2735
|
-
const n = e.bits ? e.binary ? Ri :
|
|
2746
|
+
const n = e.bits ? e.binary ? Ri : Oi : e.binary ? Di : Ni, r = e.space ? " " : "";
|
|
2736
2747
|
if (e.signed && t === 0)
|
|
2737
2748
|
return ` 0${r}${n[0]}`;
|
|
2738
2749
|
const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
|
|
@@ -2749,7 +2760,7 @@ function Bi(t, e) {
|
|
|
2749
2760
|
}
|
|
2750
2761
|
function ji(t) {
|
|
2751
2762
|
const [e, n] = Vi(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
|
|
2752
|
-
return
|
|
2763
|
+
return _n(() => {
|
|
2753
2764
|
var a;
|
|
2754
2765
|
const i = (l, u, d) => {
|
|
2755
2766
|
d != null && d.files && n(Object.values(d.files));
|
|
@@ -2765,7 +2776,7 @@ function ji(t) {
|
|
|
2765
2776
|
}, children: "edit" }), S("button", { type: "button", className: "uppy:flex uppy:rounded uppy:text-blue-500 uppy:hover:text-blue-700 uppy:bg-transparent uppy:transition-colors", onClick: () => {
|
|
2766
2777
|
var d;
|
|
2767
2778
|
(d = r.uppy) == null || d.removeFile(i.id);
|
|
2768
|
-
}, children: "remove" })] })] }), S("progress", { max: "100", className:
|
|
2779
|
+
}, children: "remove" })] })] }), S("progress", { max: "100", className: yn("uppy:w-full uppy:h-[2px] uppy:appearance-none uppy:bg-gray-100 uppy:rounded-full uppy:overflow-hidden uppy:[&::-webkit-progress-bar]:bg-gray-100 uppy:block uppy:my-2", {
|
|
2769
2780
|
"uppy:[&::-webkit-progress-value]:bg-green-500 uppy:[&::-moz-progress-bar]:bg-green-500": (a = i.progress) == null ? void 0 : a.uploadComplete,
|
|
2770
2781
|
"uppy:[&::-webkit-progress-value]:bg-red-500 uppy:[&::-moz-progress-bar]:bg-red-500": i.error,
|
|
2771
2782
|
"uppy:[&::-webkit-progress-value]:bg-blue-500 uppy:[&::-moz-progress-bar]:bg-blue-500": !((l = i.progress) != null && l.uploadComplete) && !i.error
|
|
@@ -2782,7 +2793,7 @@ function Li(t) {
|
|
|
2782
2793
|
"x-tar",
|
|
2783
2794
|
"x-gzip",
|
|
2784
2795
|
"x-apple-diskimage"
|
|
2785
|
-
].includes(s), a = r === "application" && s === "pdf", l =
|
|
2796
|
+
].includes(s), a = r === "application" && s === "pdf", l = bn(() => {
|
|
2786
2797
|
if (!t.images)
|
|
2787
2798
|
return "";
|
|
2788
2799
|
if (t.file.isRemote)
|
|
@@ -2791,7 +2802,7 @@ function Li(t) {
|
|
|
2791
2802
|
throw new Error("File data is empty");
|
|
2792
2803
|
return URL.createObjectURL(t.file.data);
|
|
2793
2804
|
}, [t.file.data, t.images, t.file.isRemote, t.file.preview]), u = t.images && o && l;
|
|
2794
|
-
return
|
|
2805
|
+
return _n(() => () => {
|
|
2795
2806
|
l && URL.revokeObjectURL(l);
|
|
2796
2807
|
}, [l]), S("div", { "data-uppy-element": "thumbnail", className: "uppy:relative uppy:overflow-hidden uppy:bg-gray-100 uppy:rounded-lg uppy:flex uppy:items-center uppy:justify-center", style: {
|
|
2797
2808
|
width: e,
|
|
@@ -2826,7 +2837,7 @@ function xi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
|
2826
2837
|
}
|
|
2827
2838
|
};
|
|
2828
2839
|
}
|
|
2829
|
-
const
|
|
2840
|
+
const Sn = Symbol("uppy"), qi = E({
|
|
2830
2841
|
name: "UppyContextProvider",
|
|
2831
2842
|
props: {
|
|
2832
2843
|
uppy: {
|
|
@@ -2835,12 +2846,12 @@ const Fn = Symbol("uppy"), qi = E({
|
|
|
2835
2846
|
}
|
|
2836
2847
|
},
|
|
2837
2848
|
setup(t, { slots: e }) {
|
|
2838
|
-
const n =
|
|
2849
|
+
const n = W("init"), r = W(0), s = en({
|
|
2839
2850
|
uppy: Wn(t.uppy),
|
|
2840
2851
|
status: "init",
|
|
2841
2852
|
progress: 0
|
|
2842
2853
|
});
|
|
2843
|
-
Zn(
|
|
2854
|
+
Zn(Sn, s);
|
|
2844
2855
|
let o;
|
|
2845
2856
|
return ve(() => {
|
|
2846
2857
|
if (!t.uppy)
|
|
@@ -2854,7 +2865,7 @@ const Fn = Symbol("uppy"), qi = E({
|
|
|
2854
2865
|
r.value = i, s.progress = i;
|
|
2855
2866
|
}
|
|
2856
2867
|
});
|
|
2857
|
-
}),
|
|
2868
|
+
}), mt(() => {
|
|
2858
2869
|
o == null || o.cleanup();
|
|
2859
2870
|
}), () => {
|
|
2860
2871
|
var i;
|
|
@@ -2862,8 +2873,8 @@ const Fn = Symbol("uppy"), qi = E({
|
|
|
2862
2873
|
};
|
|
2863
2874
|
}
|
|
2864
2875
|
});
|
|
2865
|
-
function
|
|
2866
|
-
const t = k(
|
|
2876
|
+
function Fn() {
|
|
2877
|
+
const t = k(Sn);
|
|
2867
2878
|
return t || {
|
|
2868
2879
|
uppy: void 0,
|
|
2869
2880
|
status: "init",
|
|
@@ -2874,9 +2885,9 @@ const Hi = E({
|
|
|
2874
2885
|
name: "Dropzone",
|
|
2875
2886
|
props: ["width", "height", "note", "noClick"],
|
|
2876
2887
|
setup(t) {
|
|
2877
|
-
const e =
|
|
2888
|
+
const e = W(null), n = Fn();
|
|
2878
2889
|
function r() {
|
|
2879
|
-
e.value &&
|
|
2890
|
+
e.value && mn(St(Ai, {
|
|
2880
2891
|
...t,
|
|
2881
2892
|
ctx: n
|
|
2882
2893
|
}), e.value);
|
|
@@ -2887,15 +2898,15 @@ const Hi = E({
|
|
|
2887
2898
|
r();
|
|
2888
2899
|
}), Fe(() => t, () => {
|
|
2889
2900
|
r();
|
|
2890
|
-
}, { deep: !0 }), () =>
|
|
2901
|
+
}, { deep: !0 }), () => nn("div", { ref: e });
|
|
2891
2902
|
}
|
|
2892
2903
|
}), Gi = E({
|
|
2893
2904
|
name: "FilesList",
|
|
2894
2905
|
props: ["editFile", "imageThumbnail"],
|
|
2895
2906
|
setup(t) {
|
|
2896
|
-
const e =
|
|
2907
|
+
const e = W(null), n = Fn();
|
|
2897
2908
|
function r() {
|
|
2898
|
-
e.value &&
|
|
2909
|
+
e.value && mn(St(ji, {
|
|
2899
2910
|
...t,
|
|
2900
2911
|
ctx: n
|
|
2901
2912
|
}), e.value);
|
|
@@ -2906,10 +2917,10 @@ const Hi = E({
|
|
|
2906
2917
|
r();
|
|
2907
2918
|
}), Fe(() => t, () => {
|
|
2908
2919
|
r();
|
|
2909
|
-
}, { deep: !0 }), () =>
|
|
2920
|
+
}, { deep: !0 }), () => nn("div", { ref: e });
|
|
2910
2921
|
}
|
|
2911
2922
|
});
|
|
2912
|
-
function
|
|
2923
|
+
function Cn(t) {
|
|
2913
2924
|
const e = t.lastIndexOf(".");
|
|
2914
2925
|
return e === -1 || e === t.length - 1 ? {
|
|
2915
2926
|
name: t,
|
|
@@ -2974,11 +2985,11 @@ const Ht = {
|
|
|
2974
2985
|
gz: "application/gzip",
|
|
2975
2986
|
dmg: "application/x-apple-diskimage"
|
|
2976
2987
|
};
|
|
2977
|
-
function
|
|
2988
|
+
function kn(t) {
|
|
2978
2989
|
var n;
|
|
2979
2990
|
if (t.type)
|
|
2980
2991
|
return t.type;
|
|
2981
|
-
const e = t.name ? (n =
|
|
2992
|
+
const e = t.name ? (n = Cn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
|
|
2982
2993
|
return e && e in Ht ? Ht[e] : "application/octet-stream";
|
|
2983
2994
|
}
|
|
2984
2995
|
function Wi(t) {
|
|
@@ -3005,17 +3016,17 @@ function Yi(t) {
|
|
|
3005
3016
|
function Xi(t, e) {
|
|
3006
3017
|
if (Yi(t))
|
|
3007
3018
|
return t.id;
|
|
3008
|
-
const n =
|
|
3019
|
+
const n = kn(t);
|
|
3009
3020
|
return Zi({
|
|
3010
3021
|
...t,
|
|
3011
3022
|
type: n
|
|
3012
3023
|
}, e);
|
|
3013
3024
|
}
|
|
3014
|
-
function
|
|
3025
|
+
function Qe(t) {
|
|
3015
3026
|
return t < 10 ? `0${t}` : t.toString();
|
|
3016
3027
|
}
|
|
3017
3028
|
function Be() {
|
|
3018
|
-
const t = /* @__PURE__ */ new Date(), e =
|
|
3029
|
+
const t = /* @__PURE__ */ new Date(), e = Qe(t.getHours()), n = Qe(t.getMinutes()), r = Qe(t.getSeconds());
|
|
3019
3030
|
return `${e}:${n}:${r}`;
|
|
3020
3031
|
}
|
|
3021
3032
|
function Ki(t, e, n) {
|
|
@@ -3049,7 +3060,7 @@ function Wt(t, e) {
|
|
|
3049
3060
|
const Ji = (t) => {
|
|
3050
3061
|
throw new Error(`missing string: ${t}`);
|
|
3051
3062
|
};
|
|
3052
|
-
var Te, Ee,
|
|
3063
|
+
var Te, Ee, ot;
|
|
3053
3064
|
class Qi {
|
|
3054
3065
|
constructor(e, { onMissingKey: n = Ji } = {}) {
|
|
3055
3066
|
x(this, Ee);
|
|
@@ -3060,7 +3071,7 @@ class Qi {
|
|
|
3060
3071
|
pluralize(r) {
|
|
3061
3072
|
return r === 1 ? 0 : 1;
|
|
3062
3073
|
}
|
|
3063
|
-
}, Array.isArray(e) ? e.forEach(F(this, Ee,
|
|
3074
|
+
}, Array.isArray(e) ? e.forEach(F(this, Ee, ot), this) : F(this, Ee, ot).call(this, e), Me(this, Te, n);
|
|
3064
3075
|
}
|
|
3065
3076
|
/**
|
|
3066
3077
|
* Public translate method
|
|
@@ -3091,7 +3102,7 @@ class Qi {
|
|
|
3091
3102
|
return Wt(r, n);
|
|
3092
3103
|
}
|
|
3093
3104
|
}
|
|
3094
|
-
Te = new WeakMap(), Ee = new WeakSet(),
|
|
3105
|
+
Te = new WeakMap(), Ee = new WeakSet(), ot = function(e) {
|
|
3095
3106
|
if (!(e != null && e.strings))
|
|
3096
3107
|
return;
|
|
3097
3108
|
const n = this.locale;
|
|
@@ -3112,7 +3123,7 @@ const eo = {
|
|
|
3112
3123
|
error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
|
|
3113
3124
|
};
|
|
3114
3125
|
var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3115
|
-
function
|
|
3126
|
+
function Ye(t) {
|
|
3116
3127
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3117
3128
|
}
|
|
3118
3129
|
var no = function(e) {
|
|
@@ -3125,11 +3136,11 @@ var no = function(e) {
|
|
|
3125
3136
|
const s = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], o = Math.min(Math.floor(Math.log(r) / Math.log(1024)), s.length - 1), i = Number(r / 1024 ** o), a = s[o];
|
|
3126
3137
|
return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
|
|
3127
3138
|
};
|
|
3128
|
-
const Ae = /* @__PURE__ */
|
|
3129
|
-
function
|
|
3139
|
+
const Ae = /* @__PURE__ */ Ye(no);
|
|
3140
|
+
function Tn(t, e) {
|
|
3130
3141
|
this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
|
|
3131
3142
|
}
|
|
3132
|
-
|
|
3143
|
+
Tn.prototype.match = function(t) {
|
|
3133
3144
|
var e = !0, n = this.parts, r, s = n.length, o;
|
|
3134
3145
|
if (typeof t == "string" || t instanceof String)
|
|
3135
3146
|
if (!this.hasWild && this.text != t)
|
|
@@ -3150,7 +3161,7 @@ En.prototype.match = function(t) {
|
|
|
3150
3161
|
return e;
|
|
3151
3162
|
};
|
|
3152
3163
|
var ro = function(t, e, n) {
|
|
3153
|
-
var r = new
|
|
3164
|
+
var r = new Tn(t, n || /[\/\.]/);
|
|
3154
3165
|
return typeof e < "u" ? r.match(e) : r;
|
|
3155
3166
|
}, so = ro, io = /[\/\+\.]/, oo = function(t, e) {
|
|
3156
3167
|
function n(r) {
|
|
@@ -3159,7 +3170,7 @@ var ro = function(t, e, n) {
|
|
|
3159
3170
|
}
|
|
3160
3171
|
return e ? n(e.split(";")[0]) : n;
|
|
3161
3172
|
};
|
|
3162
|
-
const ao = /* @__PURE__ */
|
|
3173
|
+
const ao = /* @__PURE__ */ Ye(oo), lo = {
|
|
3163
3174
|
maxFileSize: null,
|
|
3164
3175
|
minFileSize: null,
|
|
3165
3176
|
maxTotalFileSize: null,
|
|
@@ -3247,8 +3258,8 @@ class uo {
|
|
|
3247
3258
|
const po = "5.0.0", co = {
|
|
3248
3259
|
version: po
|
|
3249
3260
|
};
|
|
3250
|
-
var fe, Le,
|
|
3251
|
-
class
|
|
3261
|
+
var fe, Le, In;
|
|
3262
|
+
class En {
|
|
3252
3263
|
constructor() {
|
|
3253
3264
|
x(this, Le);
|
|
3254
3265
|
B(this, "state", {});
|
|
@@ -3259,7 +3270,7 @@ class In {
|
|
|
3259
3270
|
}
|
|
3260
3271
|
setState(e) {
|
|
3261
3272
|
const n = { ...this.state }, r = { ...this.state, ...e };
|
|
3262
|
-
this.state = r, F(this, Le,
|
|
3273
|
+
this.state = r, F(this, Le, In).call(this, n, r, e);
|
|
3263
3274
|
}
|
|
3264
3275
|
subscribe(e) {
|
|
3265
3276
|
return w(this, fe).add(e), () => {
|
|
@@ -3267,16 +3278,16 @@ class In {
|
|
|
3267
3278
|
};
|
|
3268
3279
|
}
|
|
3269
3280
|
}
|
|
3270
|
-
fe = new WeakMap(), Le = new WeakSet(),
|
|
3281
|
+
fe = new WeakMap(), Le = new WeakSet(), In = function(...e) {
|
|
3271
3282
|
w(this, fe).forEach((n) => {
|
|
3272
3283
|
n(...e);
|
|
3273
3284
|
});
|
|
3274
|
-
}, B(
|
|
3285
|
+
}, B(En, "VERSION", co.version);
|
|
3275
3286
|
function fo(t) {
|
|
3276
3287
|
var e = typeof t;
|
|
3277
3288
|
return t != null && (e == "object" || e == "function");
|
|
3278
3289
|
}
|
|
3279
|
-
var Tt = fo, ho = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, mo = ho, go = mo, yo = typeof self == "object" && self && self.Object === Object && self, vo = go || yo || Function("return this")(),
|
|
3290
|
+
var Tt = fo, ho = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, mo = ho, go = mo, yo = typeof self == "object" && self && self.Object === Object && self, vo = go || yo || Function("return this")(), Vn = vo, _o = Vn, bo = function() {
|
|
3280
3291
|
return _o.Date.now();
|
|
3281
3292
|
}, wo = bo, $o = /\s/;
|
|
3282
3293
|
function So(t) {
|
|
@@ -3288,7 +3299,7 @@ var Fo = So, Co = Fo, ko = /^\s+/;
|
|
|
3288
3299
|
function To(t) {
|
|
3289
3300
|
return t && t.slice(0, Co(t) + 1).replace(ko, "");
|
|
3290
3301
|
}
|
|
3291
|
-
var Eo = To, Io =
|
|
3302
|
+
var Eo = To, Io = Vn, Vo = Io.Symbol, Mn = Vo, Zt = Mn, Un = Object.prototype, Mo = Un.hasOwnProperty, Uo = Un.toString, we = Zt ? Zt.toStringTag : void 0;
|
|
3292
3303
|
function zo(t) {
|
|
3293
3304
|
var e = Mo.call(t, we), n = t[we];
|
|
3294
3305
|
try {
|
|
@@ -3300,10 +3311,10 @@ function zo(t) {
|
|
|
3300
3311
|
return r && (e ? t[we] = n : delete t[we]), s;
|
|
3301
3312
|
}
|
|
3302
3313
|
var Po = zo, Ao = Object.prototype, No = Ao.toString;
|
|
3303
|
-
function
|
|
3314
|
+
function Do(t) {
|
|
3304
3315
|
return No.call(t);
|
|
3305
3316
|
}
|
|
3306
|
-
var
|
|
3317
|
+
var Oo = Do, Yt = Mn, Ro = Po, Bo = Oo, jo = "[object Null]", Lo = "[object Undefined]", Xt = Yt ? Yt.toStringTag : void 0;
|
|
3307
3318
|
function xo(t) {
|
|
3308
3319
|
return t == null ? t === void 0 ? Lo : jo : Xt && Xt in Object(t) ? Ro(t) : Bo(t);
|
|
3309
3320
|
}
|
|
@@ -3331,7 +3342,7 @@ function sa(t) {
|
|
|
3331
3342
|
var n = ta.test(t);
|
|
3332
3343
|
return n || na.test(t) ? ra(t.slice(2), n ? 2 : 8) : ea.test(t) ? Jt : +t;
|
|
3333
3344
|
}
|
|
3334
|
-
var ia = sa, oa = Tt,
|
|
3345
|
+
var ia = sa, oa = Tt, et = wo, Qt = ia, aa = "Expected a function", la = Math.max, ua = Math.min;
|
|
3335
3346
|
function da(t, e, n) {
|
|
3336
3347
|
var r, s, o, i, a, l, u = 0, d = !1, p = !1, c = !0;
|
|
3337
3348
|
if (typeof t != "function")
|
|
@@ -3345,15 +3356,15 @@ function da(t, e, n) {
|
|
|
3345
3356
|
return u = $, a = setTimeout(C, e), d ? h($) : i;
|
|
3346
3357
|
}
|
|
3347
3358
|
function V($) {
|
|
3348
|
-
var U = $ - l, N = $ - u,
|
|
3349
|
-
return p ? ua(
|
|
3359
|
+
var U = $ - l, N = $ - u, G = e - U;
|
|
3360
|
+
return p ? ua(G, o - N) : G;
|
|
3350
3361
|
}
|
|
3351
3362
|
function z($) {
|
|
3352
3363
|
var U = $ - l, N = $ - u;
|
|
3353
3364
|
return l === void 0 || U >= e || U < 0 || p && N >= o;
|
|
3354
3365
|
}
|
|
3355
3366
|
function C() {
|
|
3356
|
-
var $ =
|
|
3367
|
+
var $ = et();
|
|
3357
3368
|
if (z($))
|
|
3358
3369
|
return T($);
|
|
3359
3370
|
a = setTimeout(C, V($));
|
|
@@ -3365,10 +3376,10 @@ function da(t, e, n) {
|
|
|
3365
3376
|
a !== void 0 && clearTimeout(a), u = 0, r = l = s = a = void 0;
|
|
3366
3377
|
}
|
|
3367
3378
|
function f() {
|
|
3368
|
-
return a === void 0 ? i : T(
|
|
3379
|
+
return a === void 0 ? i : T(et());
|
|
3369
3380
|
}
|
|
3370
3381
|
function _() {
|
|
3371
|
-
var $ =
|
|
3382
|
+
var $ = et(), U = z($);
|
|
3372
3383
|
if (r = arguments, s = this, l = $, U) {
|
|
3373
3384
|
if (a === void 0)
|
|
3374
3385
|
return v(l);
|
|
@@ -3391,7 +3402,7 @@ function ma(t, e, n) {
|
|
|
3391
3402
|
});
|
|
3392
3403
|
}
|
|
3393
3404
|
var ga = ma;
|
|
3394
|
-
const ya = /* @__PURE__ */
|
|
3405
|
+
const ya = /* @__PURE__ */ Ye(ga);
|
|
3395
3406
|
var va = function() {
|
|
3396
3407
|
var e = {}, n = e._fns = {};
|
|
3397
3408
|
e.emit = function(i, a, l, u, d, p, c) {
|
|
@@ -3431,7 +3442,7 @@ var va = function() {
|
|
|
3431
3442
|
}
|
|
3432
3443
|
return e;
|
|
3433
3444
|
};
|
|
3434
|
-
const _a = /* @__PURE__ */
|
|
3445
|
+
const _a = /* @__PURE__ */ Ye(va);
|
|
3435
3446
|
let ba = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", wa = (t = 21) => {
|
|
3436
3447
|
let e = "", n = t | 0;
|
|
3437
3448
|
for (; n--; )
|
|
@@ -3524,7 +3535,7 @@ const Ne = {
|
|
|
3524
3535
|
error: null,
|
|
3525
3536
|
recoveredState: null
|
|
3526
3537
|
};
|
|
3527
|
-
var X, K, Ie, le, he, me, ue, y, oe,
|
|
3538
|
+
var X, K, Ie, le, he, me, ue, y, oe, lt, zn, Pn, An, ut, dt, pt, ct, xe, ft, de, Nn, Dn, se, Ve, $e, On, ht, Se;
|
|
3528
3539
|
const qe = class qe {
|
|
3529
3540
|
/**
|
|
3530
3541
|
* Instantiate Uppy
|
|
@@ -3584,7 +3595,7 @@ const qe = class qe {
|
|
|
3584
3595
|
// and click 'ADD MORE FILES', - focus won't activate in Firefox.
|
|
3585
3596
|
// - We must throttle at around >500ms to avoid performance lags.
|
|
3586
3597
|
// [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
|
|
3587
|
-
x(this, de, ya(() => F(this, y,
|
|
3598
|
+
x(this, de, ya(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
|
|
3588
3599
|
x(this, se, this.updateOnlineStatus.bind(this));
|
|
3589
3600
|
// We need to store request clients by a unique ID, so we can share RequestClient instances across files
|
|
3590
3601
|
// this allows us to do rate limiting and synchronous operations like refreshing provider tokens
|
|
@@ -3607,7 +3618,7 @@ const qe = class qe {
|
|
|
3607
3618
|
meta: {},
|
|
3608
3619
|
onBeforeFileAdded: (s, o) => !Object.hasOwn(o, s.id),
|
|
3609
3620
|
onBeforeUpload: (s) => s,
|
|
3610
|
-
store: new
|
|
3621
|
+
store: new En(),
|
|
3611
3622
|
logger: eo,
|
|
3612
3623
|
infoTimeout: 5e3
|
|
3613
3624
|
}, r = { ...n, ...e };
|
|
@@ -3850,12 +3861,12 @@ const qe = class qe {
|
|
|
3850
3861
|
* and start an upload if `autoProceed === true`.
|
|
3851
3862
|
*/
|
|
3852
3863
|
addFile(e) {
|
|
3853
|
-
const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y,
|
|
3864
|
+
const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y, dt).call(this, [e]), o = s.filter((a) => a.isRestriction);
|
|
3854
3865
|
if (F(this, y, oe).call(this, o), s.length > 0)
|
|
3855
3866
|
throw s[0];
|
|
3856
3867
|
this.setState({ files: n });
|
|
3857
3868
|
const [i] = r;
|
|
3858
|
-
return this.emit("file-added", i), this.emit("files-added", r), this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`), F(this, y,
|
|
3869
|
+
return this.emit("file-added", i), this.emit("files-added", r), this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`), F(this, y, ut).call(this), i.id;
|
|
3859
3870
|
}
|
|
3860
3871
|
/**
|
|
3861
3872
|
* Add multiple files to `state.files`. See the `addFile()` documentation.
|
|
@@ -3865,7 +3876,7 @@ const qe = class qe {
|
|
|
3865
3876
|
* Programmatic users should usually still use `addFile()` on individual files.
|
|
3866
3877
|
*/
|
|
3867
3878
|
addFiles(e) {
|
|
3868
|
-
const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y,
|
|
3879
|
+
const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y, dt).call(this, e), o = s.filter((a) => a.isRestriction);
|
|
3869
3880
|
F(this, y, oe).call(this, o);
|
|
3870
3881
|
const i = s.filter((a) => !a.isRestriction);
|
|
3871
3882
|
if (i.length > 0) {
|
|
@@ -3892,7 +3903,7 @@ const qe = class qe {
|
|
|
3892
3903
|
this.log(`Added file: ${a.name}
|
|
3893
3904
|
id: ${a.id}
|
|
3894
3905
|
type: ${a.type}`);
|
|
3895
|
-
}), r.length > 0 && F(this, y,
|
|
3906
|
+
}), r.length > 0 && F(this, y, ut).call(this);
|
|
3896
3907
|
}
|
|
3897
3908
|
removeFiles(e) {
|
|
3898
3909
|
const { files: n, currentUploads: r } = this.getState(), s = { ...n }, o = { ...r }, i = /* @__PURE__ */ Object.create(null);
|
|
@@ -3956,7 +3967,7 @@ const qe = class qe {
|
|
|
3956
3967
|
}), this.setState({ files: e }), this.emit("resume-all");
|
|
3957
3968
|
}
|
|
3958
3969
|
async retryAll() {
|
|
3959
|
-
const e = await F(this, y,
|
|
3970
|
+
const e = await F(this, y, ct).call(this);
|
|
3960
3971
|
return this.emit("complete", e), e;
|
|
3961
3972
|
}
|
|
3962
3973
|
cancelAll() {
|
|
@@ -3985,7 +3996,7 @@ const qe = class qe {
|
|
|
3985
3996
|
});
|
|
3986
3997
|
}
|
|
3987
3998
|
[Symbol.for("uppy test: updateTotalProgress")]() {
|
|
3988
|
-
return F(this, y,
|
|
3999
|
+
return F(this, y, ft).call(this);
|
|
3989
4000
|
}
|
|
3990
4001
|
updateOnlineStatus() {
|
|
3991
4002
|
window.navigator.onLine ?? !0 ? (this.emit("is-online"), this.wasOffline && (this.emit("back-online"), this.info(this.i18n("connectedToInternet"), "success", 3e3), this.wasOffline = !1)) : (this.emit("is-offline"), this.info(this.i18n("noInternetConnection"), "error", 0), this.wasOffline = !0);
|
|
@@ -4122,7 +4133,7 @@ Uppy plugins must have unique \`id\` options.`;
|
|
|
4122
4133
|
* Add data to an upload's result object.
|
|
4123
4134
|
*/
|
|
4124
4135
|
addResultData(e, n) {
|
|
4125
|
-
if (!F(this, y,
|
|
4136
|
+
if (!F(this, y, On).call(this, e)) {
|
|
4126
4137
|
this.log(`Not setting result for an upload that has been removed: ${e}`);
|
|
4127
4138
|
return;
|
|
4128
4139
|
}
|
|
@@ -4141,8 +4152,8 @@ Uppy plugins must have unique \`id\` options.`;
|
|
|
4141
4152
|
var s;
|
|
4142
4153
|
(s = w(this, X).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
|
|
4143
4154
|
let { files: e } = this.getState();
|
|
4144
|
-
if (F(this, y,
|
|
4145
|
-
const o = await F(this, y,
|
|
4155
|
+
if (F(this, y, pt).call(this).length > 0) {
|
|
4156
|
+
const o = await F(this, y, ct).call(this);
|
|
4146
4157
|
if (!(this.getFiles().filter((a) => a.progress.uploadStarted == null).length > 0))
|
|
4147
4158
|
return this.emit("complete", o), o;
|
|
4148
4159
|
({ files: e } = this.getState());
|
|
@@ -4154,7 +4165,7 @@ Uppy plugins must have unique \`id\` options.`;
|
|
|
4154
4165
|
files: e
|
|
4155
4166
|
}));
|
|
4156
4167
|
try {
|
|
4157
|
-
if (w(this, K).validateMinNumberOfFiles(e), !F(this, y,
|
|
4168
|
+
if (w(this, K).validateMinNumberOfFiles(e), !F(this, y, zn).call(this, e))
|
|
4158
4169
|
throw new J(this.i18n("missingRequiredMetaField"));
|
|
4159
4170
|
const { currentUploads: o } = this.getState(), i = Object.values(o).flatMap((d) => d.fileIDs), a = Object.keys(e).filter((d) => {
|
|
4160
4171
|
const p = this.getFile(d);
|
|
@@ -4177,7 +4188,7 @@ X = new WeakMap(), K = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), he
|
|
|
4177
4188
|
count: o.length
|
|
4178
4189
|
})
|
|
4179
4190
|
});
|
|
4180
|
-
},
|
|
4191
|
+
}, lt = function(e) {
|
|
4181
4192
|
const { missingFields: n, error: r } = w(this, K).getMissingRequiredMetaFields(e);
|
|
4182
4193
|
return n.length > 0 ? (this.setFileState(e.id, {
|
|
4183
4194
|
missingRequiredMetaFields: n,
|
|
@@ -4185,12 +4196,12 @@ X = new WeakMap(), K = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), he
|
|
|
4185
4196
|
}), this.log(r.message), this.emit("restriction-failed", e, r), !1) : (n.length === 0 && e.missingRequiredMetaFields && this.setFileState(e.id, {
|
|
4186
4197
|
missingRequiredMetaFields: []
|
|
4187
4198
|
}), !0);
|
|
4188
|
-
},
|
|
4199
|
+
}, zn = function(e) {
|
|
4189
4200
|
let n = !0;
|
|
4190
4201
|
for (const r of Object.values(e))
|
|
4191
|
-
F(this, y,
|
|
4202
|
+
F(this, y, lt).call(this, r) || (n = !1);
|
|
4192
4203
|
return n;
|
|
4193
|
-
},
|
|
4204
|
+
}, Pn = function(e) {
|
|
4194
4205
|
const { allowNewUpload: n } = this.getState();
|
|
4195
4206
|
if (n === !1) {
|
|
4196
4207
|
const r = new J(this.i18n("noMoreFilesAllowed"), {
|
|
@@ -4201,7 +4212,7 @@ X = new WeakMap(), K = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), he
|
|
|
4201
4212
|
}, /**
|
|
4202
4213
|
* Create a file state object based on user-provided `addFile()` options.
|
|
4203
4214
|
*/
|
|
4204
|
-
|
|
4215
|
+
An = function(e) {
|
|
4205
4216
|
const n = e instanceof File ? {
|
|
4206
4217
|
name: e.name,
|
|
4207
4218
|
type: e.type,
|
|
@@ -4211,7 +4222,7 @@ Nn = function(e) {
|
|
|
4211
4222
|
isRemote: !1,
|
|
4212
4223
|
source: void 0,
|
|
4213
4224
|
preview: void 0
|
|
4214
|
-
} : e, r =
|
|
4225
|
+
} : e, r = kn(n), s = Fa(r, n), o = Cn(s).extension, i = Xi(n, this.getID()), a = {
|
|
4215
4226
|
...n.meta,
|
|
4216
4227
|
name: s,
|
|
4217
4228
|
type: r
|
|
@@ -4246,19 +4257,19 @@ Nn = function(e) {
|
|
|
4246
4257
|
preview: n.preview
|
|
4247
4258
|
};
|
|
4248
4259
|
}, // Schedule an upload if `autoProceed` is enabled.
|
|
4249
|
-
|
|
4260
|
+
ut = function() {
|
|
4250
4261
|
this.opts.autoProceed && !this.scheduledAutoProceed && (this.scheduledAutoProceed = setTimeout(() => {
|
|
4251
4262
|
this.scheduledAutoProceed = null, this.upload().catch((e) => {
|
|
4252
4263
|
e.isRestriction || this.log(e.stack || e.message || e);
|
|
4253
4264
|
});
|
|
4254
4265
|
}, 4));
|
|
4255
|
-
},
|
|
4266
|
+
}, dt = function(e) {
|
|
4256
4267
|
let { files: n } = this.getState(), r = { ...n };
|
|
4257
4268
|
const s = [], o = [];
|
|
4258
4269
|
for (const i of e)
|
|
4259
4270
|
try {
|
|
4260
|
-
let a = F(this, y,
|
|
4261
|
-
F(this, y,
|
|
4271
|
+
let a = F(this, y, An).call(this, i);
|
|
4272
|
+
F(this, y, Pn).call(this, a);
|
|
4262
4273
|
const l = n[a.id], u = l == null ? void 0 : l.isGhost;
|
|
4263
4274
|
if (u && !a.isRemote) {
|
|
4264
4275
|
if (a.data == null)
|
|
@@ -4294,14 +4305,14 @@ lt = function() {
|
|
|
4294
4305
|
validFilesToAdd: s,
|
|
4295
4306
|
errors: o
|
|
4296
4307
|
};
|
|
4297
|
-
},
|
|
4308
|
+
}, pt = function() {
|
|
4298
4309
|
const { files: e } = this.getState();
|
|
4299
4310
|
return Object.keys(e).filter((n) => {
|
|
4300
4311
|
const r = e[n];
|
|
4301
4312
|
return r.error && (!r.missingRequiredMetaFields || r.missingRequiredMetaFields.length === 0);
|
|
4302
4313
|
});
|
|
4303
|
-
},
|
|
4304
|
-
const e = F(this, y,
|
|
4314
|
+
}, ct = async function() {
|
|
4315
|
+
const e = F(this, y, pt).call(this), n = { ...this.getState().files };
|
|
4305
4316
|
if (e.forEach((s) => {
|
|
4306
4317
|
n[s] = {
|
|
4307
4318
|
...n[s],
|
|
@@ -4321,13 +4332,13 @@ lt = function() {
|
|
|
4321
4332
|
// create new upload even if allowNewUpload: false
|
|
4322
4333
|
});
|
|
4323
4334
|
return F(this, y, Se).call(this, r);
|
|
4324
|
-
}, xe = new WeakMap(),
|
|
4325
|
-
const e = F(this, y,
|
|
4335
|
+
}, xe = new WeakMap(), ft = function() {
|
|
4336
|
+
const e = F(this, y, Nn).call(this);
|
|
4326
4337
|
let n = null;
|
|
4327
4338
|
e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
|
|
4328
4339
|
totalProgress: n ?? 0
|
|
4329
4340
|
});
|
|
4330
|
-
}, de = new WeakMap(),
|
|
4341
|
+
}, de = new WeakMap(), Nn = function() {
|
|
4331
4342
|
const n = this.getFiles().filter((l) => l.progress.uploadStarted || l.progress.preprocess || l.progress.postprocess);
|
|
4332
4343
|
if (n.length === 0)
|
|
4333
4344
|
return 0;
|
|
@@ -4454,7 +4465,7 @@ Dn = function() {
|
|
|
4454
4465
|
}), this.on("restored", () => {
|
|
4455
4466
|
w(this, de).call(this);
|
|
4456
4467
|
}), this.on("dashboard:file-edit-complete", (s) => {
|
|
4457
|
-
s && F(this, y,
|
|
4468
|
+
s && F(this, y, lt).call(this, s);
|
|
4458
4469
|
}), typeof window < "u" && window.addEventListener && (window.addEventListener("online", w(this, se)), window.addEventListener("offline", w(this, se)), setTimeout(w(this, se), 3e3));
|
|
4459
4470
|
}, se = new WeakMap(), Ve = new WeakMap(), /**
|
|
4460
4471
|
* Create an upload for a bunch of files.
|
|
@@ -4476,14 +4487,14 @@ $e = function(e, n = {}) {
|
|
|
4476
4487
|
}
|
|
4477
4488
|
}
|
|
4478
4489
|
}), i;
|
|
4479
|
-
},
|
|
4490
|
+
}, On = function(e) {
|
|
4480
4491
|
const { currentUploads: n } = this.getState();
|
|
4481
4492
|
return n[e];
|
|
4482
4493
|
}, /**
|
|
4483
4494
|
* Remove an upload, eg. if it has been canceled or completed.
|
|
4484
4495
|
*
|
|
4485
4496
|
*/
|
|
4486
|
-
|
|
4497
|
+
ht = function(e) {
|
|
4487
4498
|
const { [e]: n, ...r } = this.getState().currentUploads;
|
|
4488
4499
|
this.setState({
|
|
4489
4500
|
currentUploads: r
|
|
@@ -4518,7 +4529,7 @@ ft = function(e) {
|
|
|
4518
4529
|
break;
|
|
4519
4530
|
}
|
|
4520
4531
|
} catch (i) {
|
|
4521
|
-
throw F(this, y,
|
|
4532
|
+
throw F(this, y, ht).call(this, e), i;
|
|
4522
4533
|
}
|
|
4523
4534
|
if (r) {
|
|
4524
4535
|
r.fileIDs.forEach((u) => {
|
|
@@ -4529,13 +4540,13 @@ ft = function(e) {
|
|
|
4529
4540
|
this.addResultData(e, { successful: a, failed: l, uploadID: e }), r = n();
|
|
4530
4541
|
}
|
|
4531
4542
|
let o;
|
|
4532
|
-
return r && (o = r.result, F(this, y,
|
|
4543
|
+
return r && (o = r.result, F(this, y, ht).call(this, e)), o == null && (this.log(`Not setting result for an upload that has been removed: ${e}`), o = {
|
|
4533
4544
|
successful: [],
|
|
4534
4545
|
failed: [],
|
|
4535
4546
|
uploadID: e
|
|
4536
4547
|
}), o;
|
|
4537
4548
|
}, B(qe, "VERSION", Sa.version);
|
|
4538
|
-
let
|
|
4549
|
+
let at = qe;
|
|
4539
4550
|
const Ta = {
|
|
4540
4551
|
key: 0,
|
|
4541
4552
|
class: "uppy-input-area--caption small text-body-secondary fst-italic"
|
|
@@ -4572,7 +4583,7 @@ const Ta = {
|
|
|
4572
4583
|
],
|
|
4573
4584
|
setup(t, { emit: e }) {
|
|
4574
4585
|
var Z;
|
|
4575
|
-
const n = t, r = e, s =
|
|
4586
|
+
const n = t, r = e, s = W(null), o = W(null), i = Yn(null), a = W(!1), l = W(!1), u = W(0), d = k("form", { value: {}, errors: {}, getID: (f) => f }), p = k("group", null), c = q({
|
|
4576
4587
|
get() {
|
|
4577
4588
|
var f;
|
|
4578
4589
|
return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
|
|
@@ -4582,7 +4593,7 @@ const Ta = {
|
|
|
4582
4593
|
(_ = p == null ? void 0 : p.value) != null && _.name ? p.value.setData(n.name, f) : d.value[n.name] = f, r("update:modelValue", f);
|
|
4583
4594
|
}
|
|
4584
4595
|
});
|
|
4585
|
-
i.value = new
|
|
4596
|
+
i.value = new at({
|
|
4586
4597
|
id: n.name,
|
|
4587
4598
|
autoProceed: !0,
|
|
4588
4599
|
...n.config,
|
|
@@ -4633,8 +4644,8 @@ const Ta = {
|
|
|
4633
4644
|
}, (f, _) => {
|
|
4634
4645
|
f === !0 && _ === !1 && h();
|
|
4635
4646
|
}), ve(() => {
|
|
4636
|
-
var f, _, $, U, N,
|
|
4637
|
-
n.useXHR && import("./index-
|
|
4647
|
+
var f, _, $, U, N, G, te, P;
|
|
4648
|
+
n.useXHR && import("./index-DjjjMh37.js").then((Y) => {
|
|
4638
4649
|
const ce = Y.default;
|
|
4639
4650
|
i.value.use(ce, {
|
|
4640
4651
|
method: "POST",
|
|
@@ -4644,11 +4655,11 @@ const Ta = {
|
|
|
4644
4655
|
},
|
|
4645
4656
|
...n.XHRConfig
|
|
4646
4657
|
});
|
|
4647
|
-
}), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = T(i.value.opts.restrictions)), o && ((
|
|
4658
|
+
}), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = T(i.value.opts.restrictions)), o && ((G = (N = (U = ($ = i.value) == null ? void 0 : $.opts) == null ? void 0 : U.locale) == null ? void 0 : N.strings) != null && G.dropzoneText) && ((P = (te = o.value) == null ? void 0 : te.querySelectorAll('[data-uppy-element="dropzone"]>div>div>p')) == null || P.forEach((Y) => {
|
|
4648
4659
|
var ce, Et, It, Vt;
|
|
4649
4660
|
Y.innerHTML = (Vt = (It = (Et = (ce = i.value) == null ? void 0 : ce.opts) == null ? void 0 : Et.locale) == null ? void 0 : It.strings) == null ? void 0 : Vt.dropzoneText;
|
|
4650
4661
|
}));
|
|
4651
|
-
}),
|
|
4662
|
+
}), mt(() => {
|
|
4652
4663
|
l.value = !0, i.value && i.value.destroy();
|
|
4653
4664
|
});
|
|
4654
4665
|
function h() {
|
|
@@ -4677,14 +4688,14 @@ const Ta = {
|
|
|
4677
4688
|
maxFileSize: $,
|
|
4678
4689
|
minFileSize: U,
|
|
4679
4690
|
maxNumberOfFiles: N,
|
|
4680
|
-
minNumberOfFiles:
|
|
4691
|
+
minNumberOfFiles: G,
|
|
4681
4692
|
maxTotalFileSize: te
|
|
4682
4693
|
} = f, P = [];
|
|
4683
4694
|
if (_ && _.length) {
|
|
4684
4695
|
const Y = _.map((ce) => ce.replace(".", "")).join("، ");
|
|
4685
4696
|
P.push(`فقط فایلهای ${Y}`);
|
|
4686
4697
|
}
|
|
4687
|
-
return N && N > 1 && P.push(`امکان انتخاب حداکثر ${N} فایل`),
|
|
4698
|
+
return N && N > 1 && P.push(`امکان انتخاب حداکثر ${N} فایل`), G && P.push(`حداقل ${G} فایل نیاز است`), $ && P.push(`با حداکثر حجم ${C($)} برای هر فایل`), U && P.push(`با حداقل حجم ${C(U)} برای هر فایل`), te && P.push(`و مجموع حجم کل حداکثر ${C(te)}`), P.length ? P.join("، ") + " مجاز است." : "";
|
|
4688
4699
|
}
|
|
4689
4700
|
return (f, _) => i.value ? (m(), g("div", {
|
|
4690
4701
|
key: 0,
|
|
@@ -4692,19 +4703,19 @@ const Ta = {
|
|
|
4692
4703
|
ref_key: "inputEl",
|
|
4693
4704
|
ref: o
|
|
4694
4705
|
}, [
|
|
4695
|
-
Q(
|
|
4706
|
+
Q(Ke(qi), {
|
|
4696
4707
|
name: "uu" + t.name,
|
|
4697
4708
|
uppy: i.value
|
|
4698
4709
|
}, {
|
|
4699
4710
|
default: ie(() => [
|
|
4700
|
-
|
|
4701
|
-
Q(
|
|
4702
|
-
Q(
|
|
4711
|
+
O(f.$slots, "default", { uppy: i.value }, () => [
|
|
4712
|
+
Q(Ke(Gi), { class: "uppy-file-lists" }),
|
|
4713
|
+
Q(Ke(Hi), { class: "uppy-drop-zone" })
|
|
4703
4714
|
])
|
|
4704
4715
|
]),
|
|
4705
4716
|
_: 3
|
|
4706
4717
|
}, 8, ["name", "uppy"]),
|
|
4707
|
-
s.value ? (m(), g("div", Ta,
|
|
4718
|
+
s.value ? (m(), g("div", Ta, H(s.value), 1)) : j("", !0)
|
|
4708
4719
|
], 512)) : j("", !0);
|
|
4709
4720
|
}
|
|
4710
4721
|
};
|
|
@@ -4717,13 +4728,13 @@ export {
|
|
|
4717
4728
|
Ga as L,
|
|
4718
4729
|
Wa as M,
|
|
4719
4730
|
Ba as P,
|
|
4720
|
-
|
|
4731
|
+
Os as Q,
|
|
4721
4732
|
rl as R,
|
|
4722
4733
|
nl as S,
|
|
4723
4734
|
Qi as T,
|
|
4724
4735
|
tl as _,
|
|
4725
|
-
|
|
4726
|
-
|
|
4736
|
+
Da as a,
|
|
4737
|
+
Oa as b,
|
|
4727
4738
|
Ra as c,
|
|
4728
4739
|
ja as d,
|
|
4729
4740
|
sl as e,
|
|
@@ -4736,5 +4747,5 @@ export {
|
|
|
4736
4747
|
Ha as l,
|
|
4737
4748
|
Qa as m,
|
|
4738
4749
|
el as n,
|
|
4739
|
-
|
|
4750
|
+
Ge as o
|
|
4740
4751
|
};
|