inertia-bootstrap-forms 2.1.6 → 2.1.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/dist/{index-KFAc3stx.js → index-CsHj65jU.js} +1 -1
- package/dist/{index-DOtMtP-v.js → index-NrWiSABD.js} +305 -305
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +6 -6
- package/package.json +1 -1
- package/src/FormContainer.vue +1 -1
- package/src/PersianDatePickerInput.vue +1 -1
|
@@ -4,8 +4,8 @@ var Mt = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var jn = (t, e, n) => e in t ? Bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
6
|
var R = (t, e, n) => jn(t, typeof e != "symbol" ? e + "" : e, n), Ze = (t, e, n) => e.has(t) || Mt("Cannot " + n);
|
|
7
|
-
var b = (t, e, n) => (Ze(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
8
|
-
import { createElementBlock as g, openBlock as m, renderSlot as D, normalizeClass as
|
|
7
|
+
var b = (t, e, n) => (Ze(t, e, "read from private field"), n ? n.call(t) : e.get(t)), L = (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) => (Ze(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), F = (t, e, n) => (Ze(t, e, "access private method"), n);
|
|
8
|
+
import { createElementBlock as g, openBlock as m, renderSlot as D, normalizeClass as x, ref as G, onMounted as ye, onBeforeUnmount as mt, createElementVNode as $, defineComponent as I, inject as k, computed as q, resolveComponent as j, createBlock as ee, withCtx as ie, withDirectives as re, createVNode as Q, vModelText as He, createTextVNode as gt, toDisplayString as W, vModelDynamic as yt, defineAsyncComponent as Ln, createCommentVNode as B, mergeProps as en, Fragment as ve, renderList as _e, normalizeStyle as vt, toRef as xn, reactive as tn, withModifiers as nn, resolveDirective as qn, vModelSelect as Hn, markRaw as Gn, provide as Wn, watch as Fe, h as rn, shallowRef as Yn, unref as Ke } from "vue";
|
|
9
9
|
import Xn from "@tinymce/tinymce-vue";
|
|
10
10
|
import { useForm as Zn } from "@inertiajs/vue3";
|
|
11
11
|
import { LMarker as Kn, LTileLayer as Jn, LMap as Qn } from "@vue-leaflet/vue-leaflet";
|
|
@@ -50,7 +50,7 @@ const dr = /* @__PURE__ */ be(ar, [["render", ur]]), pr = {
|
|
|
50
50
|
__name: "DropdownToggle",
|
|
51
51
|
props: {},
|
|
52
52
|
setup(t, { expose: e }) {
|
|
53
|
-
const n =
|
|
53
|
+
const n = G(null), { getInstance: r } = nr(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();
|
|
@@ -96,7 +96,7 @@ const bt = /* @__PURE__ */ be(mr, [["render", yr]]), vr = {
|
|
|
96
96
|
};
|
|
97
97
|
function _r(t, e, n, r, s, o) {
|
|
98
98
|
return m(), g("i", {
|
|
99
|
-
class:
|
|
99
|
+
class: x(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
|
|
100
100
|
role: "status"
|
|
101
101
|
}, e[0] || (e[0] = [
|
|
102
102
|
$("span", { class: "visually-hidden" }, "Loading...", -1)
|
|
@@ -112,7 +112,7 @@ const br = /* @__PURE__ */ be(vr, [["render", _r]]), wr = {
|
|
|
112
112
|
};
|
|
113
113
|
function $r(t, e, n, r, s, o) {
|
|
114
114
|
return m(), g("div", {
|
|
115
|
-
class:
|
|
115
|
+
class: x(["alert", "alert-" + n.type])
|
|
116
116
|
}, [
|
|
117
117
|
D(t.$slots, "default")
|
|
118
118
|
], 2);
|
|
@@ -184,7 +184,7 @@ function kr(t, e, n, r, s, o) {
|
|
|
184
184
|
re($("input", {
|
|
185
185
|
name: t.name,
|
|
186
186
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.displayValue = l),
|
|
187
|
-
class:
|
|
187
|
+
class: x([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-start"]),
|
|
188
188
|
disabled: t.disabled || t.form.processing,
|
|
189
189
|
readonly: t.readonly,
|
|
190
190
|
placeholder: t.placeholder,
|
|
@@ -194,7 +194,7 @@ function kr(t, e, n, r, s, o) {
|
|
|
194
194
|
]),
|
|
195
195
|
Q(i, { class: "fanum" }, {
|
|
196
196
|
default: ie(() => [
|
|
197
|
-
gt(
|
|
197
|
+
gt(W(t.unit), 1)
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
200
|
}),
|
|
@@ -203,7 +203,7 @@ function kr(t, e, n, r, s, o) {
|
|
|
203
203
|
_: 3
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const Aa = /* @__PURE__ */ M(Fr, [["render", kr]]), Er = I({
|
|
207
207
|
props: {
|
|
208
208
|
name: {
|
|
209
209
|
type: String,
|
|
@@ -240,7 +240,7 @@ function Cr(t, e, n, r, s, o) {
|
|
|
240
240
|
name: t.name,
|
|
241
241
|
id: t.inputID,
|
|
242
242
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
243
|
-
class:
|
|
243
|
+
class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
244
244
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
245
245
|
type: "text"
|
|
246
246
|
}, null, 10, Ir)), [
|
|
@@ -326,7 +326,7 @@ function Pr(t, e, n, r, s, o) {
|
|
|
326
326
|
]), 8, zr)
|
|
327
327
|
]);
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const za = /* @__PURE__ */ M(Vr, [["render", Pr]]), Nr = I({
|
|
330
330
|
emits: ["change"],
|
|
331
331
|
props: {
|
|
332
332
|
name: {
|
|
@@ -367,14 +367,14 @@ const Aa = /* @__PURE__ */ M(Vr, [["render", Pr]]), Nr = I({
|
|
|
367
367
|
function Rr(t, e, n, r, s, o) {
|
|
368
368
|
var i, a;
|
|
369
369
|
return m(), g("label", {
|
|
370
|
-
class:
|
|
370
|
+
class: x(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
|
|
371
371
|
for: t.form.getID(t.name) + (t.id || t.value)
|
|
372
372
|
}, [
|
|
373
373
|
re($("input", {
|
|
374
374
|
name: t.name,
|
|
375
375
|
id: t.form.getID(t.name) + (t.id || t.value),
|
|
376
376
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.form[t.name] = l),
|
|
377
|
-
class:
|
|
377
|
+
class: x([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
|
|
378
378
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
379
379
|
type: t.type,
|
|
380
380
|
value: t.value,
|
|
@@ -386,7 +386,7 @@ function Rr(t, e, n, r, s, o) {
|
|
|
386
386
|
D(t.$slots, "default")
|
|
387
387
|
], 10, Or);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
389
|
+
const Pa = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
|
|
390
390
|
props: {
|
|
391
391
|
name: {
|
|
392
392
|
type: String,
|
|
@@ -431,7 +431,7 @@ const za = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
|
|
|
431
431
|
}
|
|
432
432
|
}), form: e, group: n };
|
|
433
433
|
}
|
|
434
|
-
}), jr = { class: "form-check" },
|
|
434
|
+
}), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"], xr = ["for"];
|
|
435
435
|
function qr(t, e, n, r, s, o) {
|
|
436
436
|
var i, a;
|
|
437
437
|
return m(), g("div", jr, [
|
|
@@ -439,12 +439,12 @@ function qr(t, e, n, r, s, o) {
|
|
|
439
439
|
name: t.name,
|
|
440
440
|
id: t.inputID,
|
|
441
441
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
442
|
-
class:
|
|
442
|
+
class: x([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
|
|
443
443
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
444
444
|
type: t.type,
|
|
445
445
|
value: t.value,
|
|
446
446
|
onChange: e[1] || (e[1] = (l) => t.$emit("change", l))
|
|
447
|
-
}, null, 42,
|
|
447
|
+
}, null, 42, Lr), [
|
|
448
448
|
[yt, t.modelValue]
|
|
449
449
|
]),
|
|
450
450
|
$("label", {
|
|
@@ -452,10 +452,10 @@ function qr(t, e, n, r, s, o) {
|
|
|
452
452
|
for: t.inputID
|
|
453
453
|
}, [
|
|
454
454
|
D(t.$slots, "default")
|
|
455
|
-
], 8,
|
|
455
|
+
], 8, xr)
|
|
456
456
|
]);
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const Na = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
|
|
459
459
|
props: {
|
|
460
460
|
name: {
|
|
461
461
|
type: String,
|
|
@@ -511,14 +511,14 @@ const Pa = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
|
|
|
511
511
|
function Yr(t, e, n, r, s, o) {
|
|
512
512
|
var i, a, l, u;
|
|
513
513
|
return m(), g("label", {
|
|
514
|
-
class:
|
|
514
|
+
class: x(["form-check-toggle", { "form-check-toggle--active": (t.selectedValue || []).includes(t.value) }]),
|
|
515
515
|
for: t.inputID
|
|
516
516
|
}, [
|
|
517
517
|
re($("input", {
|
|
518
518
|
name: t.name + (t.group ? "_" + ((i = t.group) == null ? void 0 : i.name) + "-" + ((a = t.group) == null ? void 0 : a.groupID) : ""),
|
|
519
519
|
id: t.inputID,
|
|
520
520
|
"onUpdate:modelValue": e[0] || (e[0] = (d) => t.modelValue = d),
|
|
521
|
-
class:
|
|
521
|
+
class: x([{ "is-invalid": (l = t.form) == null ? void 0 : l.errors[t.name], "form-check-toggle--input-hide": t.hideInput }, "form-check-toggle--input form-check-input"]),
|
|
522
522
|
disabled: (u = t.form) == null ? void 0 : u.processing,
|
|
523
523
|
type: t.type,
|
|
524
524
|
value: t.value,
|
|
@@ -529,7 +529,7 @@ function Yr(t, e, n, r, s, o) {
|
|
|
529
529
|
D(t.$slots, "default")
|
|
530
530
|
], 10, Gr);
|
|
531
531
|
}
|
|
532
|
-
const
|
|
532
|
+
const Oa = /* @__PURE__ */ M(Hr, [["render", Yr]]), Xr = Ln(
|
|
533
533
|
() => import("vue3-persian-datetime-picker")
|
|
534
534
|
);
|
|
535
535
|
let Ue;
|
|
@@ -628,10 +628,10 @@ function Kr(t, e, n, r, s, o) {
|
|
|
628
628
|
showNowBtn: !0,
|
|
629
629
|
autoSubmit: !0,
|
|
630
630
|
inputFormat: t.inputFormat ? t.inputFormat : t.format,
|
|
631
|
-
"input-class": "form-control
|
|
631
|
+
"input-class": "form-control fanum"
|
|
632
632
|
}, t.$props), null, 16, ["modelValue", "type", "disabled", "inputFormat"]));
|
|
633
633
|
}
|
|
634
|
-
const
|
|
634
|
+
const Da = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = I({
|
|
635
635
|
emits: ["update:modelValue", "setContent"],
|
|
636
636
|
components: { Editor: Xn },
|
|
637
637
|
props: {
|
|
@@ -655,7 +655,7 @@ const Oa = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = I({
|
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
setup(t, { expose: e, emit: n }) {
|
|
658
|
-
const r =
|
|
658
|
+
const r = G(null), s = G(null), o = (u, d) => {
|
|
659
659
|
s.value = d;
|
|
660
660
|
};
|
|
661
661
|
e({
|
|
@@ -694,7 +694,7 @@ function Qr(t, e, n, r, s, o) {
|
|
|
694
694
|
}
|
|
695
695
|
}, null, 8, ["onInit", "modelValue", "init"]);
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const Ra = /* @__PURE__ */ M(Jr, [["render", Qr]]), es = I({
|
|
698
698
|
props: {
|
|
699
699
|
modelValue: "",
|
|
700
700
|
name: {
|
|
@@ -789,7 +789,7 @@ function ps(t, e, n, r, s, o) {
|
|
|
789
789
|
$("input", {
|
|
790
790
|
ref: "input",
|
|
791
791
|
name: t.name,
|
|
792
|
-
class:
|
|
792
|
+
class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
793
793
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
794
794
|
type: "file",
|
|
795
795
|
multiple: t.multiple,
|
|
@@ -805,9 +805,9 @@ function ps(t, e, n, r, s, o) {
|
|
|
805
805
|
style: vt({ width: l.percent + "%" })
|
|
806
806
|
}, null, 4)
|
|
807
807
|
])) : B("", !0),
|
|
808
|
-
$("div", null,
|
|
809
|
-
l.error ? (m(), g("div", os,
|
|
810
|
-
$("div", as,
|
|
808
|
+
$("div", null, W(l.file.name), 1),
|
|
809
|
+
l.error ? (m(), g("div", os, W(l.error), 1)) : B("", !0),
|
|
810
|
+
$("div", as, W(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
811
811
|
$("div", ls, [
|
|
812
812
|
l.error ? (m(), g("button", {
|
|
813
813
|
key: 0,
|
|
@@ -846,7 +846,7 @@ function ps(t, e, n, r, s, o) {
|
|
|
846
846
|
])
|
|
847
847
|
]);
|
|
848
848
|
}
|
|
849
|
-
const
|
|
849
|
+
const Ba = /* @__PURE__ */ M(es, [["render", ps]]), cs = I({
|
|
850
850
|
components: {
|
|
851
851
|
TextInput: Ge
|
|
852
852
|
},
|
|
@@ -866,7 +866,7 @@ function fs(t, e, n, r, s, o) {
|
|
|
866
866
|
type: "email"
|
|
867
867
|
}, null, 8, ["name"]);
|
|
868
868
|
}
|
|
869
|
-
const
|
|
869
|
+
const ja = /* @__PURE__ */ M(cs, [["render", fs]]), hs = I({
|
|
870
870
|
props: {
|
|
871
871
|
name: {
|
|
872
872
|
type: String,
|
|
@@ -960,7 +960,7 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
|
|
|
960
960
|
}
|
|
961
961
|
},
|
|
962
962
|
setup(t) {
|
|
963
|
-
const e =
|
|
963
|
+
const e = xn("formEl"), n = tn(t.modelValue), r = Zn({
|
|
964
964
|
hasMessage: !1,
|
|
965
965
|
successMessage: null,
|
|
966
966
|
...t.options,
|
|
@@ -1049,8 +1049,8 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
|
|
|
1049
1049
|
}
|
|
1050
1050
|
},
|
|
1051
1051
|
expose: ["submit", "reset"]
|
|
1052
|
-
}), _s = ["action", "method", "data-autotab", "novalidate"], bs = { class: "list-unstyled p-0 m-0 fanum" };
|
|
1053
|
-
function
|
|
1052
|
+
}), _s = ["action", "method", "data-autotab", "novalidate"], bs = { class: "list-unstyled p-0 m-0 fanum" }, ws = ["innerHTML"];
|
|
1053
|
+
function $s(t, e, n, r, s, o) {
|
|
1054
1054
|
const i = j("Alert");
|
|
1055
1055
|
return m(), g("form", {
|
|
1056
1056
|
ref: "formEl",
|
|
@@ -1060,7 +1060,7 @@ function ws(t, e, n, r, s, o) {
|
|
|
1060
1060
|
onInput: e[0] || (e[0] = (...a) => t.handleAutoTab && t.handleAutoTab(...a)),
|
|
1061
1061
|
onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
|
|
1062
1062
|
onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
|
|
1063
|
-
class:
|
|
1063
|
+
class: x({ "form-processing": t.form.processing }),
|
|
1064
1064
|
novalidate: !!Object.values(t.form.errors).length
|
|
1065
1065
|
}, [
|
|
1066
1066
|
D(t.$slots, "errors", {}, () => [
|
|
@@ -1070,7 +1070,7 @@ function ws(t, e, n, r, s, o) {
|
|
|
1070
1070
|
}, {
|
|
1071
1071
|
default: ie(() => [
|
|
1072
1072
|
$("ul", bs, [
|
|
1073
|
-
(m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", null,
|
|
1073
|
+
(m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", { innerHTML: a }, null, 8, ws))), 256))
|
|
1074
1074
|
])
|
|
1075
1075
|
]),
|
|
1076
1076
|
_: 1
|
|
@@ -1089,23 +1089,23 @@ function ws(t, e, n, r, s, o) {
|
|
|
1089
1089
|
})
|
|
1090
1090
|
], 42, _s);
|
|
1091
1091
|
}
|
|
1092
|
-
const
|
|
1092
|
+
const La = /* @__PURE__ */ M(vs, [["render", $s]]), Ss = I({
|
|
1093
1093
|
props: {
|
|
1094
1094
|
default: !1,
|
|
1095
1095
|
required: !1
|
|
1096
1096
|
},
|
|
1097
1097
|
emits: ["update:modelValue"]
|
|
1098
|
-
}),
|
|
1098
|
+
}), Fs = { class: "mb-2 d-block" }, Ts = {
|
|
1099
1099
|
key: 0,
|
|
1100
1100
|
class: "text-danger"
|
|
1101
1101
|
};
|
|
1102
|
-
function
|
|
1103
|
-
return m(), g("label",
|
|
1102
|
+
function ks(t, e, n, r, s, o) {
|
|
1103
|
+
return m(), g("label", Fs, [
|
|
1104
1104
|
D(t.$slots, "default", {}, void 0, !0),
|
|
1105
|
-
t.required ? (m(), g("span",
|
|
1105
|
+
t.required ? (m(), g("span", Ts, "*")) : B("", !0)
|
|
1106
1106
|
]);
|
|
1107
1107
|
}
|
|
1108
|
-
const xa = /* @__PURE__ */ M(
|
|
1108
|
+
const xa = /* @__PURE__ */ M(Ss, [["render", ks], ["__scopeId", "data-v-bfeb9beb"]]), Es = I({
|
|
1109
1109
|
name: "LocationInput",
|
|
1110
1110
|
components: {
|
|
1111
1111
|
LMap: Qn,
|
|
@@ -1162,11 +1162,11 @@ const xa = /* @__PURE__ */ M($s, [["render", Ts], ["__scopeId", "data-v-bfeb9beb
|
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
1164
1164
|
});
|
|
1165
|
-
function
|
|
1165
|
+
function Is(t, e, n, r, s, o) {
|
|
1166
1166
|
var u;
|
|
1167
1167
|
const i = j("l-tile-layer"), a = j("LMarker"), l = j("l-map");
|
|
1168
1168
|
return m(), g("div", {
|
|
1169
|
-
class:
|
|
1169
|
+
class: x(["location-map-container", { disabled: t.disabled || t.form.processing, "is-invalid": ((u = t.form) == null ? void 0 : u.errors[t.name]) !== void 0 }])
|
|
1170
1170
|
}, [
|
|
1171
1171
|
Q(l, {
|
|
1172
1172
|
ref: "map",
|
|
@@ -1193,7 +1193,7 @@ function Es(t, e, n, r, s, o) {
|
|
|
1193
1193
|
}, 8, ["zoom", "center", "onClick"])
|
|
1194
1194
|
], 2);
|
|
1195
1195
|
}
|
|
1196
|
-
const
|
|
1196
|
+
const qa = /* @__PURE__ */ M(Es, [["render", Is]]), Cs = I({
|
|
1197
1197
|
components: {
|
|
1198
1198
|
TextInput: Ge
|
|
1199
1199
|
},
|
|
@@ -1205,7 +1205,7 @@ const La = /* @__PURE__ */ M(ks, [["render", Es]]), Is = I({
|
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
1207
|
});
|
|
1208
|
-
function
|
|
1208
|
+
function Vs(t, e, n, r, s, o) {
|
|
1209
1209
|
const i = j("TextInput");
|
|
1210
1210
|
return m(), ee(i, {
|
|
1211
1211
|
name: t.name,
|
|
@@ -1213,7 +1213,7 @@ function Cs(t, e, n, r, s, o) {
|
|
|
1213
1213
|
type: "tel"
|
|
1214
1214
|
}, null, 8, ["name"]);
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Ha = /* @__PURE__ */ M(Cs, [["render", Vs]]), Ms = I({
|
|
1217
1217
|
components: {
|
|
1218
1218
|
TextInput: Ge
|
|
1219
1219
|
},
|
|
@@ -1225,7 +1225,7 @@ const qa = /* @__PURE__ */ M(Is, [["render", Cs]]), Vs = I({
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
});
|
|
1228
|
-
function
|
|
1228
|
+
function Us(t, e, n, r, s, o) {
|
|
1229
1229
|
const i = j("TextInput");
|
|
1230
1230
|
return m(), ee(i, {
|
|
1231
1231
|
name: t.name,
|
|
@@ -1233,7 +1233,7 @@ function Ms(t, e, n, r, s, o) {
|
|
|
1233
1233
|
type: "password"
|
|
1234
1234
|
}, null, 8, ["name"]);
|
|
1235
1235
|
}
|
|
1236
|
-
const
|
|
1236
|
+
const Ga = /* @__PURE__ */ M(Ms, [["render", Us]]), As = I({
|
|
1237
1237
|
components: { InputGroup: _t, InputGroupText: bt },
|
|
1238
1238
|
props: {
|
|
1239
1239
|
name: {
|
|
@@ -1291,8 +1291,8 @@ const Ha = /* @__PURE__ */ M(Vs, [["render", Ms]]), Us = I({
|
|
|
1291
1291
|
data() {
|
|
1292
1292
|
return {};
|
|
1293
1293
|
}
|
|
1294
|
-
}),
|
|
1295
|
-
function
|
|
1294
|
+
}), zs = ["name", "value", "disabled", "readonly"];
|
|
1295
|
+
function Ps(t, e, n, r, s, o) {
|
|
1296
1296
|
const i = j("InputGroupText"), a = j("InputGroup"), l = qn("maska");
|
|
1297
1297
|
return m(), ee(a, { class: "input-group-quantity" }, {
|
|
1298
1298
|
default: ie(() => [
|
|
@@ -1320,11 +1320,11 @@ function zs(t, e, n, r, s, o) {
|
|
|
1320
1320
|
"data-maska": "###,###,###,###,###,###,###",
|
|
1321
1321
|
"data-maska-reversed": "",
|
|
1322
1322
|
onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
|
|
1323
|
-
class:
|
|
1323
|
+
class: x([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
|
|
1324
1324
|
disabled: t.disabled || t.form.processing,
|
|
1325
1325
|
readonly: t.readonly,
|
|
1326
1326
|
type: "tel"
|
|
1327
|
-
}, null, 42,
|
|
1327
|
+
}, null, 42, zs), [
|
|
1328
1328
|
[l]
|
|
1329
1329
|
]),
|
|
1330
1330
|
$("button", {
|
|
@@ -1348,7 +1348,7 @@ function zs(t, e, n, r, s, o) {
|
|
|
1348
1348
|
])),
|
|
1349
1349
|
Q(i, { class: "fanum" }, {
|
|
1350
1350
|
default: ie(() => [
|
|
1351
|
-
gt(
|
|
1351
|
+
gt(W(t.unit), 1)
|
|
1352
1352
|
]),
|
|
1353
1353
|
_: 1
|
|
1354
1354
|
}),
|
|
@@ -1357,8 +1357,8 @@ function zs(t, e, n, r, s, o) {
|
|
|
1357
1357
|
_: 3
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1361
|
-
components: { GroupControl: ys, QuantityInput:
|
|
1360
|
+
const Ns = /* @__PURE__ */ M(As, [["render", Ps]]), Os = I({
|
|
1361
|
+
components: { GroupControl: ys, QuantityInput: Ns, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
|
|
1362
1362
|
props: {
|
|
1363
1363
|
name: {
|
|
1364
1364
|
type: String,
|
|
@@ -1434,29 +1434,29 @@ const Ps = /* @__PURE__ */ M(Us, [["render", zs]]), Ns = I({
|
|
|
1434
1434
|
showDropdown: !1
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
1437
|
-
}),
|
|
1437
|
+
}), Ds = {
|
|
1438
1438
|
ref: "input",
|
|
1439
1439
|
class: "multi-quantity-input fanum"
|
|
1440
|
-
},
|
|
1441
|
-
function
|
|
1440
|
+
}, Rs = { class: "row align-items-center justify-content-between g-0" }, Bs = ["innerHTML"], js = { class: "col-auto" };
|
|
1441
|
+
function Ls(t, e, n, r, s, o) {
|
|
1442
1442
|
const i = j("QuantityInput"), a = j("GroupControl");
|
|
1443
|
-
return m(), g("div",
|
|
1443
|
+
return m(), g("div", Ds, [
|
|
1444
1444
|
$("button", {
|
|
1445
1445
|
type: "button",
|
|
1446
1446
|
class: "form-control fanum dropdown-toggle",
|
|
1447
1447
|
onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
|
|
1448
|
-
},
|
|
1448
|
+
}, W(t.totalQuantity) + " " + W(t.unit), 1),
|
|
1449
1449
|
$("div", {
|
|
1450
|
-
class:
|
|
1450
|
+
class: x(["multi-quantity-input--dropdown", { show: t.showDropdown }])
|
|
1451
1451
|
}, [
|
|
1452
1452
|
Q(a, { name: t.name }, {
|
|
1453
1453
|
default: ie(() => [
|
|
1454
|
-
(m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div",
|
|
1454
|
+
(m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div", Rs, [
|
|
1455
1455
|
$("div", {
|
|
1456
1456
|
class: "col-auto",
|
|
1457
1457
|
innerHTML: (l == null ? void 0 : l.name) || l
|
|
1458
|
-
}, null, 8,
|
|
1459
|
-
$("div",
|
|
1458
|
+
}, null, 8, Bs),
|
|
1459
|
+
$("div", js, [
|
|
1460
1460
|
Q(i, {
|
|
1461
1461
|
name: u,
|
|
1462
1462
|
min: l.min || t.min,
|
|
@@ -1470,7 +1470,7 @@ function js(t, e, n, r, s, o) {
|
|
|
1470
1470
|
], 2)
|
|
1471
1471
|
], 512);
|
|
1472
1472
|
}
|
|
1473
|
-
const
|
|
1473
|
+
const Wa = /* @__PURE__ */ M(Os, [["render", Ls]]), xs = I({
|
|
1474
1474
|
emits: ["update:modelValue", "search", "searching", "change", "selected"],
|
|
1475
1475
|
props: {
|
|
1476
1476
|
name: {
|
|
@@ -1653,10 +1653,10 @@ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), xs = I({
|
|
|
1653
1653
|
}
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
|
-
}),
|
|
1657
|
-
function
|
|
1656
|
+
}), qs = ["name", "id"], Hs = ["value", "selected"];
|
|
1657
|
+
function Gs(t, e, n, r, s, o) {
|
|
1658
1658
|
return m(), g("div", {
|
|
1659
|
-
class:
|
|
1659
|
+
class: x(["select2-controller", {
|
|
1660
1660
|
"is-invalid": t.form.errors[t.name],
|
|
1661
1661
|
"select2-dropdown-hidden": t.hideDropdown === !0
|
|
1662
1662
|
}])
|
|
@@ -1674,13 +1674,13 @@ function Hs(t, e, n, r, s, o) {
|
|
|
1674
1674
|
(m(!0), g(ve, null, _e(t.options, (i, a) => (m(), g("option", {
|
|
1675
1675
|
value: t.getKeyFromItem(i),
|
|
1676
1676
|
selected: t.selected(i)
|
|
1677
|
-
},
|
|
1678
|
-
], 16,
|
|
1677
|
+
}, W(t.getLabelFromItem(i)), 9, Hs))), 256))
|
|
1678
|
+
], 16, qs), [
|
|
1679
1679
|
[Hn, t.modelValue]
|
|
1680
1680
|
])
|
|
1681
1681
|
], 2);
|
|
1682
1682
|
}
|
|
1683
|
-
const
|
|
1683
|
+
const Ya = /* @__PURE__ */ M(xs, [["render", Gs]]), Ws = I({
|
|
1684
1684
|
emits: ["update:modelValue"],
|
|
1685
1685
|
props: {
|
|
1686
1686
|
name: {
|
|
@@ -1755,12 +1755,12 @@ const Wa = /* @__PURE__ */ M(xs, [["render", Hs]]), Gs = I({
|
|
|
1755
1755
|
isRTL: !1
|
|
1756
1756
|
};
|
|
1757
1757
|
}
|
|
1758
|
-
}),
|
|
1758
|
+
}), Ys = { class: "star-rating" }, Xs = {
|
|
1759
1759
|
key: 0,
|
|
1760
1760
|
class: "rating-value fanum"
|
|
1761
1761
|
};
|
|
1762
|
-
function
|
|
1763
|
-
return m(), g("div",
|
|
1762
|
+
function Zs(t, e, n, r, s, o) {
|
|
1763
|
+
return m(), g("div", Ys, [
|
|
1764
1764
|
$("div", {
|
|
1765
1765
|
class: "star-rating-container",
|
|
1766
1766
|
ref: "ratingContainer",
|
|
@@ -1779,10 +1779,10 @@ function Xs(t, e, n, r, s, o) {
|
|
|
1779
1779
|
}, "★", 4)
|
|
1780
1780
|
]))), 128))
|
|
1781
1781
|
], 544),
|
|
1782
|
-
t.showValue && t.displayRating > 0 ? (m(), g("div",
|
|
1782
|
+
t.showValue && t.displayRating > 0 ? (m(), g("div", Xs, W(t.displayRating), 1)) : B("", !0)
|
|
1783
1783
|
]);
|
|
1784
1784
|
}
|
|
1785
|
-
const
|
|
1785
|
+
const Xa = /* @__PURE__ */ M(Ws, [["render", Zs]]), Ks = I({
|
|
1786
1786
|
components: {
|
|
1787
1787
|
Spinner: br
|
|
1788
1788
|
},
|
|
@@ -1793,11 +1793,11 @@ const Ya = /* @__PURE__ */ M(Gs, [["render", Xs]]), Zs = I({
|
|
|
1793
1793
|
default: !1
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
|
-
}),
|
|
1796
|
+
}), Js = ["disabled"], Qs = {
|
|
1797
1797
|
key: 0,
|
|
1798
1798
|
class: "submit-upload-percent"
|
|
1799
1799
|
};
|
|
1800
|
-
function
|
|
1800
|
+
function ei(t, e, n, r, s, o) {
|
|
1801
1801
|
var a, l, u, d;
|
|
1802
1802
|
const i = j("Spinner");
|
|
1803
1803
|
return m(), g("button", {
|
|
@@ -1811,12 +1811,12 @@ function Qs(t, e, n, r, s, o) {
|
|
|
1811
1811
|
D(t.$slots, "progress", {}, () => {
|
|
1812
1812
|
var p, c;
|
|
1813
1813
|
return [
|
|
1814
|
-
(p = t.form) != null && p.uploading ? (m(), g("span",
|
|
1814
|
+
(p = t.form) != null && p.uploading ? (m(), g("span", Qs, W((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : B("", !0)
|
|
1815
1815
|
];
|
|
1816
1816
|
})
|
|
1817
|
-
], 8,
|
|
1817
|
+
], 8, Js);
|
|
1818
1818
|
}
|
|
1819
|
-
const
|
|
1819
|
+
const Za = /* @__PURE__ */ M(Ks, [["render", ei]]), ti = I({
|
|
1820
1820
|
components: {
|
|
1821
1821
|
VueTelInput: er
|
|
1822
1822
|
},
|
|
@@ -1850,14 +1850,14 @@ const Xa = /* @__PURE__ */ M(Zs, [["render", Qs]]), ei = I({
|
|
|
1850
1850
|
valid: null
|
|
1851
1851
|
};
|
|
1852
1852
|
}
|
|
1853
|
-
}),
|
|
1853
|
+
}), ni = {
|
|
1854
1854
|
class: "telephone-input input-group fanum",
|
|
1855
1855
|
dir: "ltr"
|
|
1856
1856
|
};
|
|
1857
|
-
function
|
|
1857
|
+
function ri(t, e, n, r, s, o) {
|
|
1858
1858
|
var a;
|
|
1859
1859
|
const i = j("vue-tel-input");
|
|
1860
|
-
return m(), g("div",
|
|
1860
|
+
return m(), g("div", ni, [
|
|
1861
1861
|
Q(i, {
|
|
1862
1862
|
mode: "national",
|
|
1863
1863
|
validCharactersOnly: !0,
|
|
@@ -1880,7 +1880,7 @@ function ni(t, e, n, r, s, o) {
|
|
|
1880
1880
|
}, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
|
|
1881
1881
|
]);
|
|
1882
1882
|
}
|
|
1883
|
-
const
|
|
1883
|
+
const Ka = /* @__PURE__ */ M(ti, [["render", ri]]), si = I({
|
|
1884
1884
|
props: {
|
|
1885
1885
|
name: {
|
|
1886
1886
|
type: String,
|
|
@@ -1905,19 +1905,19 @@ const Za = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
|
|
|
1905
1905
|
}
|
|
1906
1906
|
}), form: e, group: n };
|
|
1907
1907
|
}
|
|
1908
|
-
}),
|
|
1909
|
-
function
|
|
1908
|
+
}), ii = ["name", "disabled"];
|
|
1909
|
+
function oi(t, e, n, r, s, o) {
|
|
1910
1910
|
var i, a;
|
|
1911
1911
|
return re((m(), g("textarea", {
|
|
1912
1912
|
name: t.name,
|
|
1913
1913
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
1914
|
-
class:
|
|
1914
|
+
class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
1915
1915
|
disabled: (a = t.form) == null ? void 0 : a.processing
|
|
1916
|
-
}, null, 10,
|
|
1916
|
+
}, null, 10, ii)), [
|
|
1917
1917
|
[He, t.modelValue]
|
|
1918
1918
|
]);
|
|
1919
1919
|
}
|
|
1920
|
-
const
|
|
1920
|
+
const Ja = /* @__PURE__ */ M(si, [["render", oi]]), Qa = {
|
|
1921
1921
|
__name: "DropzoneInput",
|
|
1922
1922
|
props: {
|
|
1923
1923
|
name: {
|
|
@@ -1938,7 +1938,7 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
|
|
|
1938
1938
|
value: {},
|
|
1939
1939
|
errors: {},
|
|
1940
1940
|
getID: (u) => u
|
|
1941
|
-
}), o = k("group", null), i =
|
|
1941
|
+
}), o = k("group", null), i = G(null), a = G(null), l = q({
|
|
1942
1942
|
get() {
|
|
1943
1943
|
var u;
|
|
1944
1944
|
return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
|
|
@@ -1984,7 +1984,7 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
|
|
|
1984
1984
|
ref: i
|
|
1985
1985
|
}, null, 512));
|
|
1986
1986
|
}
|
|
1987
|
-
},
|
|
1987
|
+
}, ai = I({
|
|
1988
1988
|
props: {
|
|
1989
1989
|
modelValue: "",
|
|
1990
1990
|
name: {
|
|
@@ -2065,42 +2065,42 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
|
|
|
2065
2065
|
files: []
|
|
2066
2066
|
};
|
|
2067
2067
|
}
|
|
2068
|
-
}),
|
|
2068
|
+
}), li = { class: "file-input-uploader" }, ui = ["name", "disabled", "multiple"], di = { class: "file-input-uploader--list" }, pi = ["id"], ci = {
|
|
2069
2069
|
key: 0,
|
|
2070
2070
|
class: "file-input-uploader--progress"
|
|
2071
|
-
},
|
|
2071
|
+
}, fi = {
|
|
2072
2072
|
key: 1,
|
|
2073
2073
|
class: "file-input-uploader--list-error"
|
|
2074
|
-
},
|
|
2074
|
+
}, hi = {
|
|
2075
2075
|
class: "file-input-uploader--list-item--size",
|
|
2076
2076
|
dir: "ltr"
|
|
2077
|
-
},
|
|
2078
|
-
function
|
|
2077
|
+
}, mi = { class: "file-input-uploader--list-item--actions" }, gi = ["onClick"], yi = ["onClick"];
|
|
2078
|
+
function vi(t, e, n, r, s, o) {
|
|
2079
2079
|
var i, a;
|
|
2080
|
-
return m(), g("div",
|
|
2080
|
+
return m(), g("div", li, [
|
|
2081
2081
|
$("input", {
|
|
2082
2082
|
ref: "input",
|
|
2083
2083
|
name: t.name,
|
|
2084
|
-
class:
|
|
2084
|
+
class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2085
2085
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
2086
2086
|
type: "file",
|
|
2087
2087
|
multiple: t.multiple,
|
|
2088
2088
|
onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
|
|
2089
|
-
}, null, 42,
|
|
2090
|
-
$("div",
|
|
2089
|
+
}, null, 42, ui),
|
|
2090
|
+
$("div", di, [
|
|
2091
2091
|
(m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
|
|
2092
2092
|
id: "file-" + l.id,
|
|
2093
2093
|
class: "file-input-uploader--list-item"
|
|
2094
2094
|
}, [
|
|
2095
|
-
l.percent && l.percent < 100 ? (m(), g("div",
|
|
2095
|
+
l.percent && l.percent < 100 ? (m(), g("div", ci, [
|
|
2096
2096
|
$("div", {
|
|
2097
2097
|
style: vt({ width: l.percent + "%" })
|
|
2098
2098
|
}, null, 4)
|
|
2099
2099
|
])) : B("", !0),
|
|
2100
|
-
$("div", null,
|
|
2101
|
-
l.error ? (m(), g("div",
|
|
2102
|
-
$("div",
|
|
2103
|
-
$("div",
|
|
2100
|
+
$("div", null, W(l.file.name), 1),
|
|
2101
|
+
l.error ? (m(), g("div", fi, W(l.error), 1)) : B("", !0),
|
|
2102
|
+
$("div", hi, W(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
2103
|
+
$("div", mi, [
|
|
2104
2104
|
l.error ? (m(), g("button", {
|
|
2105
2105
|
key: 0,
|
|
2106
2106
|
onClick: (u) => t.uploadFile(l),
|
|
@@ -2116,7 +2116,7 @@ function yi(t, e, n, r, s, o) {
|
|
|
2116
2116
|
}, [
|
|
2117
2117
|
$("path", { d: "M1,12A11,11,0,0,1,17.882,2.7l1.411-1.41A1,1,0,0,1,21,2V6a1,1,0,0,1-1,1H16a1,1,0,0,1-.707-1.707l1.128-1.128A8.994,8.994,0,0,0,3,12a1,1,0,0,1-2,0Zm21-1a1,1,0,0,0-1,1,9.01,9.01,0,0,1-9,9,8.9,8.9,0,0,1-4.42-1.166l1.127-1.127A1,1,0,0,0,8,17H4a1,1,0,0,0-1,1v4a1,1,0,0,0,.617.924A.987.987,0,0,0,4,23a1,1,0,0,0,.707-.293L6.118,21.3A10.891,10.891,0,0,0,12,23,11.013,11.013,0,0,0,23,12,1,1,0,0,0,22,11Z" })
|
|
2118
2118
|
], -1)
|
|
2119
|
-
]), 8,
|
|
2119
|
+
]), 8, gi)) : B("", !0),
|
|
2120
2120
|
l.path || l.error ? (m(), g("button", {
|
|
2121
2121
|
key: 1,
|
|
2122
2122
|
onClick: (u) => t.deleteFile(l),
|
|
@@ -2132,13 +2132,13 @@ function yi(t, e, n, r, s, o) {
|
|
|
2132
2132
|
}, [
|
|
2133
2133
|
$("path", { d: "M12,23A11,11,0,1,0,1,12,11.013,11.013,0,0,0,12,23ZM12,3a9,9,0,1,1-9,9A9.01,9.01,0,0,1,12,3ZM8.293,14.293,10.586,12,8.293,9.707A1,1,0,0,1,9.707,8.293L12,10.586l2.293-2.293a1,1,0,0,1,1.414,1.414L13.414,12l2.293,2.293a1,1,0,1,1-1.414,1.414L12,13.414,9.707,15.707a1,1,0,0,1-1.414-1.414Z" })
|
|
2134
2134
|
], -1)
|
|
2135
|
-
]), 8,
|
|
2135
|
+
]), 8, yi)) : B("", !0)
|
|
2136
2136
|
])
|
|
2137
|
-
], 8,
|
|
2137
|
+
], 8, pi))), 256))
|
|
2138
2138
|
])
|
|
2139
2139
|
]);
|
|
2140
2140
|
}
|
|
2141
|
-
const
|
|
2141
|
+
const el = /* @__PURE__ */ M(ai, [["render", vi]]), _i = I({
|
|
2142
2142
|
emits: ["update:modelValue", "change"],
|
|
2143
2143
|
props: {
|
|
2144
2144
|
name: {
|
|
@@ -2225,13 +2225,13 @@ const Qa = /* @__PURE__ */ M(oi, [["render", yi]]), vi = I({
|
|
|
2225
2225
|
rangeSliderEn: null
|
|
2226
2226
|
};
|
|
2227
2227
|
}
|
|
2228
|
-
}),
|
|
2228
|
+
}), bi = {
|
|
2229
2229
|
class: "range-input",
|
|
2230
2230
|
ref: "rangeSliderEl",
|
|
2231
2231
|
dir: "ltr"
|
|
2232
2232
|
};
|
|
2233
|
-
function
|
|
2234
|
-
return m(), g("div",
|
|
2233
|
+
function wi(t, e, n, r, s, o) {
|
|
2234
|
+
return m(), g("div", bi, [
|
|
2235
2235
|
re($("input", {
|
|
2236
2236
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
|
|
2237
2237
|
type: "hidden"
|
|
@@ -2240,8 +2240,8 @@ function bi(t, e, n, r, s, o) {
|
|
|
2240
2240
|
])
|
|
2241
2241
|
], 512);
|
|
2242
2242
|
}
|
|
2243
|
-
const
|
|
2244
|
-
var We, C, sn, ae, Ut, on, an, ln, wt, tt, nt, Te = {}, un = [],
|
|
2243
|
+
const tl = /* @__PURE__ */ M(_i, [["render", wi]]);
|
|
2244
|
+
var We, C, sn, ae, Ut, on, an, ln, wt, tt, nt, Te = {}, un = [], $i = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
|
|
2245
2245
|
function ne(t, e) {
|
|
2246
2246
|
for (var n in e) t[n] = e[n];
|
|
2247
2247
|
return t;
|
|
@@ -2289,12 +2289,12 @@ function je() {
|
|
|
2289
2289
|
}
|
|
2290
2290
|
function pn(t, e, n, r, s, o, i, a, l, u, d) {
|
|
2291
2291
|
var p, c, h, v, V, A, T, E = r && r.__k || un, Y = e.length;
|
|
2292
|
-
for (l =
|
|
2292
|
+
for (l = Si(n, e, E, l, Y), p = 0; p < Y; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Te : E[h.__i] || Te, h.__i = p, A = Ft(t, h, c, s, o, i, a, l, u, d), v = h.__e, h.ref && c.ref != h.ref && (c.ref && Tt(c.ref, null, h), d.push(h.ref, h.__c || v, h)), V == null && v != null && (V = v), (T = !!(4 & h.__u)) || c.__k === h.__k ? l = cn(h, l, t, T) : typeof h.type == "function" && A !== void 0 ? l = A : v && (l = v.nextSibling), h.__u &= -7);
|
|
2293
2293
|
return n.__e = V, l;
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function Si(t, e, n, r, s) {
|
|
2296
2296
|
var o, i, a, l, u, d = n.length, p = d, c = 0;
|
|
2297
|
-
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] = Oe(null, i, null, null, null) : Ye(i) ? i = t.__k[o] = Oe(me, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = Oe(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 =
|
|
2297
|
+
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] = Oe(null, i, null, null, null) : Ye(i) ? i = t.__k[o] = Oe(me, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = Oe(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 = Fi(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;
|
|
2298
2298
|
if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ge(a)), mn(a, a));
|
|
2299
2299
|
return r;
|
|
2300
2300
|
}
|
|
@@ -2310,7 +2310,7 @@ function cn(t, e, n, r) {
|
|
|
2310
2310
|
while (e != null && e.nodeType == 8);
|
|
2311
2311
|
return e;
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function Fi(t, e, n, r) {
|
|
2314
2314
|
var s, o, i, a = t.key, l = t.type, u = e[n], d = u != null && (2 & u.__u) == 0;
|
|
2315
2315
|
if (u === null && a == null || d && a == u.key && l == u.type) return n;
|
|
2316
2316
|
if (r > (d ? 1 : 0)) {
|
|
@@ -2319,7 +2319,7 @@ function Si(t, e, n, r) {
|
|
|
2319
2319
|
return -1;
|
|
2320
2320
|
}
|
|
2321
2321
|
function zt(t, e, n) {
|
|
2322
|
-
e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" ||
|
|
2322
|
+
e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || $i.test(e) ? n : n + "px";
|
|
2323
2323
|
}
|
|
2324
2324
|
function Ae(t, e, n, r, s) {
|
|
2325
2325
|
var o, i;
|
|
@@ -2350,11 +2350,11 @@ function Pt(t) {
|
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
2352
|
function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
2353
|
-
var d, p, c, h, v, V, A, T, E, Y, f, _, w, U, N,
|
|
2353
|
+
var d, p, c, h, v, V, A, T, E, Y, f, _, w, U, N, H, te, z = e.type;
|
|
2354
2354
|
if (e.constructor !== void 0) return null;
|
|
2355
2355
|
128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
|
|
2356
2356
|
e: if (typeof z == "function") try {
|
|
2357
|
-
if (T = e.props, E = "prototype" in z && z.prototype.render, Y = (d = z.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (E ? e.__c = p = new z(T, f) : (e.__c = p = new De(T, f), p.constructor = z, p.render =
|
|
2357
|
+
if (T = e.props, E = "prototype" in z && z.prototype.render, Y = (d = z.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (E ? e.__c = p = new z(T, f) : (e.__c = p = new De(T, f), p.constructor = z, p.render = ki), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), E && p.__s == null && (p.__s = p.state), E && z.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = ne({}, p.__s)), ne(p.__s, z.getDerivedStateFromProps(T, p.__s))), h = p.props, v = p.state, p.__v = e, c) E && z.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), E && p.componentDidMount != null && p.__h.push(p.componentDidMount);
|
|
2358
2358
|
else {
|
|
2359
2359
|
if (E && z.getDerivedStateFromProps == null && T !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(T, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(T, p.__s, f) === !1) {
|
|
2360
2360
|
for (e.__v != n.__v && (p.props = T, p.state = p.__s, p.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(X) {
|
|
@@ -2373,7 +2373,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2373
2373
|
} else do
|
|
2374
2374
|
p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
|
|
2375
2375
|
while (p.__d && ++U < 25);
|
|
2376
|
-
p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), E && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)),
|
|
2376
|
+
p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), E && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)), H = d, d != null && d.type === me && d.key == null && (H = hn(d.props.children)), a = pn(t, Ye(H) ? H : [H], e, n, r, s, o, i, a, l, u), p.base = e.__e, e.__u &= -161, p.__h.length && i.push(p), A && (p.__E = p.__ = null);
|
|
2377
2377
|
} catch (X) {
|
|
2378
2378
|
if (e.__v = null, l || o != null) if (X.then) {
|
|
2379
2379
|
for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
@@ -2385,7 +2385,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2385
2385
|
else e.__e = n.__e, e.__k = n.__k, X.then || rt(e);
|
|
2386
2386
|
C.__e(X, e, n);
|
|
2387
2387
|
}
|
|
2388
|
-
else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e =
|
|
2388
|
+
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);
|
|
2389
2389
|
return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
|
|
2390
2390
|
}
|
|
2391
2391
|
function rt(t) {
|
|
@@ -2406,7 +2406,7 @@ function fn(t, e, n) {
|
|
|
2406
2406
|
function hn(t) {
|
|
2407
2407
|
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ye(t) ? t.map(hn) : ne({}, t);
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function Ti(t, e, n, r, s, o, i, a, l) {
|
|
2410
2410
|
var u, d, p, c, h, v, V, A = n.props || Te, T = e.props, E = e.type;
|
|
2411
2411
|
if (E == "svg" ? s = "http://www.w3.org/2000/svg" : E == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s || (s = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
2412
2412
|
for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!E && (E ? h.localName == E : h.nodeType == 3)) {
|
|
@@ -2458,7 +2458,7 @@ function mn(t, e, n) {
|
|
|
2458
2458
|
if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && mn(r[s], e, n || typeof t.type != "function");
|
|
2459
2459
|
n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function ki(t, e, n) {
|
|
2462
2462
|
return this.constructor(t, n);
|
|
2463
2463
|
}
|
|
2464
2464
|
function gn(t, e, n) {
|
|
@@ -2480,12 +2480,12 @@ We = un.slice, C = { __e: function(t, e, n, r) {
|
|
|
2480
2480
|
}, De.prototype.render = me, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
|
|
2481
2481
|
return t.__v.__b - e.__v.__b;
|
|
2482
2482
|
}, je.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, tt = Pt(!1), nt = Pt(!0);
|
|
2483
|
-
var
|
|
2483
|
+
var Ei = 0;
|
|
2484
2484
|
function S(t, e, n, r, s, o) {
|
|
2485
2485
|
e || (e = {});
|
|
2486
2486
|
var i, a, l = e;
|
|
2487
2487
|
if ("ref" in l) for (a in l = {}, e) a == "ref" ? i = e[a] : l[a] = e[a];
|
|
2488
|
-
var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2488
|
+
var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ei, __i: -1, __u: 0, __source: s, __self: o };
|
|
2489
2489
|
if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
|
|
2490
2490
|
return C.vnode && C.vnode(u), u;
|
|
2491
2491
|
}
|
|
@@ -2502,16 +2502,16 @@ function vn() {
|
|
|
2502
2502
|
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
|
|
2503
2503
|
return r;
|
|
2504
2504
|
}
|
|
2505
|
-
var ke, P, Je, Nt, st = 0, _n = [], O = C, Ot = O.__b, Dt = O.__r, Rt = O.diffed, Bt = O.__c, jt = O.unmount,
|
|
2505
|
+
var ke, P, Je, Nt, st = 0, _n = [], O = C, Ot = O.__b, Dt = O.__r, Rt = O.diffed, Bt = O.__c, jt = O.unmount, Lt = O.__;
|
|
2506
2506
|
function kt(t, e) {
|
|
2507
2507
|
O.__h && O.__h(P, t, st || e), st = 0;
|
|
2508
2508
|
var n = P.__H || (P.__H = { __: [], __h: [] });
|
|
2509
2509
|
return t >= n.__.length && n.__.push({}), n.__[t];
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2512
|
-
return st = 1,
|
|
2511
|
+
function Ii(t) {
|
|
2512
|
+
return st = 1, Ci(Sn, t);
|
|
2513
2513
|
}
|
|
2514
|
-
function
|
|
2514
|
+
function Ci(t, e, n) {
|
|
2515
2515
|
var r = kt(ke++, 2);
|
|
2516
2516
|
if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
|
|
2517
2517
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
|
|
@@ -2553,7 +2553,7 @@ function wn(t, e) {
|
|
|
2553
2553
|
var n = kt(ke++, 7);
|
|
2554
2554
|
return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function Vi() {
|
|
2557
2557
|
for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
|
|
2558
2558
|
t.__H.__h.forEach(Re), t.__H.__h.forEach(it), t.__H.__h = [];
|
|
2559
2559
|
} catch (e) {
|
|
@@ -2563,7 +2563,7 @@ function Ci() {
|
|
|
2563
2563
|
O.__b = function(t) {
|
|
2564
2564
|
P = null, Ot && Ot(t);
|
|
2565
2565
|
}, O.__ = function(t, e) {
|
|
2566
|
-
t && e.__k && e.__k.__m && (t.__m = e.__k.__m),
|
|
2566
|
+
t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
|
|
2567
2567
|
}, O.__r = function(t) {
|
|
2568
2568
|
Dt && Dt(t), ke = 0;
|
|
2569
2569
|
var e = (P = t.__c).__H;
|
|
@@ -2573,7 +2573,7 @@ O.__b = function(t) {
|
|
|
2573
2573
|
}, O.diffed = function(t) {
|
|
2574
2574
|
Rt && Rt(t);
|
|
2575
2575
|
var e = t.__c;
|
|
2576
|
-
e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Nt === O.requestAnimationFrame || ((Nt = O.requestAnimationFrame) ||
|
|
2576
|
+
e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Nt === O.requestAnimationFrame || ((Nt = O.requestAnimationFrame) || Mi)(Vi)), e.__H.__.forEach(function(n) {
|
|
2577
2577
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
2578
2578
|
})), Je = P = null;
|
|
2579
2579
|
}, O.__c = function(t, e) {
|
|
@@ -2599,12 +2599,12 @@ O.__b = function(t) {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
}), n.__H = void 0, e && O.__e(e, n.__v));
|
|
2601
2601
|
};
|
|
2602
|
-
var
|
|
2603
|
-
function
|
|
2602
|
+
var xt = typeof requestAnimationFrame == "function";
|
|
2603
|
+
function Mi(t) {
|
|
2604
2604
|
var e, n = function() {
|
|
2605
|
-
clearTimeout(r),
|
|
2605
|
+
clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
|
|
2606
2606
|
}, r = setTimeout(n, 35);
|
|
2607
|
-
|
|
2607
|
+
xt && (e = requestAnimationFrame(n));
|
|
2608
2608
|
}
|
|
2609
2609
|
function Re(t) {
|
|
2610
2610
|
var e = P, n = t.__c;
|
|
@@ -2622,7 +2622,7 @@ function $n(t, e) {
|
|
|
2622
2622
|
function Sn(t, e) {
|
|
2623
2623
|
return typeof e == "function" ? e(t) : e;
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function Ui(t, e = {}) {
|
|
2626
2626
|
const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
|
|
2627
2627
|
var c, h;
|
|
2628
2628
|
d.preventDefault(), d.stopPropagation();
|
|
@@ -2680,11 +2680,11 @@ function Mi(t, e = {}) {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
};
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2683
|
+
function Ai(t) {
|
|
2684
2684
|
const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
|
|
2685
2685
|
if (!o.uppy)
|
|
2686
2686
|
throw new Error("Dropzone must be used within a UppyContextProvider");
|
|
2687
|
-
const { getRootProps: i, getInputProps: a } = wn(() =>
|
|
2687
|
+
const { getRootProps: i, getInputProps: a } = wn(() => Ui(o, { noClick: s }), [o, s]);
|
|
2688
2688
|
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", {
|
|
2689
2689
|
...i(),
|
|
2690
2690
|
// biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
|
|
@@ -2699,7 +2699,7 @@ function Ui(t) {
|
|
|
2699
2699
|
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]
|
|
2700
2700
|
})] });
|
|
2701
2701
|
}
|
|
2702
|
-
const
|
|
2702
|
+
const zi = [
|
|
2703
2703
|
"B",
|
|
2704
2704
|
"kB",
|
|
2705
2705
|
"MB",
|
|
@@ -2709,7 +2709,7 @@ const Ai = [
|
|
|
2709
2709
|
"EB",
|
|
2710
2710
|
"ZB",
|
|
2711
2711
|
"YB"
|
|
2712
|
-
],
|
|
2712
|
+
], Pi = [
|
|
2713
2713
|
"B",
|
|
2714
2714
|
"KiB",
|
|
2715
2715
|
"MiB",
|
|
@@ -2719,7 +2719,7 @@ const Ai = [
|
|
|
2719
2719
|
"EiB",
|
|
2720
2720
|
"ZiB",
|
|
2721
2721
|
"YiB"
|
|
2722
|
-
],
|
|
2722
|
+
], Ni = [
|
|
2723
2723
|
"b",
|
|
2724
2724
|
"kbit",
|
|
2725
2725
|
"Mbit",
|
|
@@ -2729,7 +2729,7 @@ const Ai = [
|
|
|
2729
2729
|
"Ebit",
|
|
2730
2730
|
"Zbit",
|
|
2731
2731
|
"Ybit"
|
|
2732
|
-
],
|
|
2732
|
+
], Oi = [
|
|
2733
2733
|
"b",
|
|
2734
2734
|
"kibit",
|
|
2735
2735
|
"Mibit",
|
|
@@ -2743,7 +2743,7 @@ const Ai = [
|
|
|
2743
2743
|
let r = t;
|
|
2744
2744
|
return typeof e == "string" || Array.isArray(e) ? r = t.toLocaleString(e, n) : (e === !0 || n !== void 0) && (r = t.toLocaleString(void 0, n)), r;
|
|
2745
2745
|
};
|
|
2746
|
-
function
|
|
2746
|
+
function Di(t, e) {
|
|
2747
2747
|
if (!Number.isFinite(t))
|
|
2748
2748
|
throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);
|
|
2749
2749
|
e = {
|
|
@@ -2752,7 +2752,7 @@ function Oi(t, e) {
|
|
|
2752
2752
|
space: !0,
|
|
2753
2753
|
...e
|
|
2754
2754
|
};
|
|
2755
|
-
const n = e.bits ? e.binary ?
|
|
2755
|
+
const n = e.bits ? e.binary ? Oi : Ni : e.binary ? Pi : zi, r = e.space ? " " : "";
|
|
2756
2756
|
if (e.signed && t === 0)
|
|
2757
2757
|
return ` 0${r}${n[0]}`;
|
|
2758
2758
|
const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
|
|
@@ -2767,8 +2767,8 @@ function Oi(t, e) {
|
|
|
2767
2767
|
const l = qt(Number(t), e.locale, i), u = n[a];
|
|
2768
2768
|
return o + l + r + u;
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2771
|
-
const [e, n] =
|
|
2770
|
+
function Ri(t) {
|
|
2771
|
+
const [e, n] = Ii(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
|
|
2772
2772
|
return bn(() => {
|
|
2773
2773
|
var a;
|
|
2774
2774
|
const i = (l, u, d) => {
|
|
@@ -2780,7 +2780,7 @@ function Di(t) {
|
|
|
2780
2780
|
};
|
|
2781
2781
|
}, [r.uppy]), S("ul", { "data-uppy-element": "files-list", className: "uppy-reset uppy:my-4", children: e == null ? void 0 : e.map((i) => {
|
|
2782
2782
|
var a, l, u;
|
|
2783
|
-
return S("li", { children: S(me, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(
|
|
2783
|
+
return S("li", { children: S(me, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(Bi, { width: "32px", height: "32px", file: i, images: o }) }), S("p", { className: "uppy:truncate", children: i.name }), S("p", { className: "uppy:text-gray-500 uppy:tabular-nums uppy:min-w-18 uppy:text-right uppy:ml-auto", children: Di(i.size || 0) }), S(me, { children: [s && 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: () => {
|
|
2784
2784
|
s(i);
|
|
2785
2785
|
}, 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: () => {
|
|
2786
2786
|
var d;
|
|
@@ -2792,7 +2792,7 @@ function Di(t) {
|
|
|
2792
2792
|
}), value: ((u = i.progress) == null ? void 0 : u.percentage) || 0 })] }) }, i.id);
|
|
2793
2793
|
}) });
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function Bi(t) {
|
|
2796
2796
|
var d, p;
|
|
2797
2797
|
const e = t.width || "100%", n = t.height || "100%", r = ((d = t.file.type) == null ? void 0 : d.split("/")[0]) || "", s = ((p = t.file.type) == null ? void 0 : p.split("/")[1]) || "", o = t.file.type.startsWith("image/"), i = r === "application" && [
|
|
2798
2798
|
"zip",
|
|
@@ -2819,7 +2819,7 @@ function Ri(t) {
|
|
|
2819
2819
|
aspectRatio: "1"
|
|
2820
2820
|
}, children: [u ? S("img", { className: "uppy:w-full uppy:h-full uppy:object-cover", src: l, alt: t.file.name }) : null, u ? null : S("div", { className: "uppy:flex uppy:flex-col uppy:items-center uppy:justify-center uppy:w-full uppy:h-full", children: S("div", { className: "uppy:flex-1 uppy:flex uppy:items-center uppy:justify-center uppy:w-full", children: [t.file.type ? null : S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("g", { fill: "#A7AFB7", "fill-rule": "nonzero", children: [S("path", { d: "M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z" }), S("path", { d: "M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z" })] }) }), r === "text" ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z", fill: "#5A5E69", "fill-rule": "nonzero" }) }) : null, r === "image" && !u ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("g", { fill: "#686DE0", "fill-rule": "evenodd", children: [S("path", { d: "M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z", "fill-rule": "nonzero" }), S("path", { d: "M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z", "fill-rule": "nonzero" }), S("circle", { cx: "7.5", cy: "9.5", r: "1.5" })] }) }) : null, r === "audio" ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z", fill: "#049BCF", "fill-rule": "nonzero" }) }) : null, r === "video" ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z", fill: "#19AF67", "fill-rule": "nonzero" }) }) : null, a ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z", fill: "#E2514A", "fill-rule": "nonzero" }) }) : null, i ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z", fill: "#00C469", "fill-rule": "nonzero" }) }) : null, t.file.type && !r && !a && !i ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("g", { fill: "#A7AFB7", "fill-rule": "nonzero", children: [S("path", { d: "M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z" }), S("path", { d: "M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z" })] }) }) : null] }) })] });
|
|
2821
2821
|
}
|
|
2822
|
-
function
|
|
2822
|
+
function ji({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
2823
2823
|
const r = () => {
|
|
2824
2824
|
e("ready");
|
|
2825
2825
|
}, s = () => {
|
|
@@ -2846,7 +2846,7 @@ function Bi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
};
|
|
2848
2848
|
}
|
|
2849
|
-
const Fn = Symbol("uppy"),
|
|
2849
|
+
const Fn = Symbol("uppy"), Li = I({
|
|
2850
2850
|
name: "UppyContextProvider",
|
|
2851
2851
|
props: {
|
|
2852
2852
|
uppy: {
|
|
@@ -2855,7 +2855,7 @@ const Fn = Symbol("uppy"), ji = I({
|
|
|
2855
2855
|
}
|
|
2856
2856
|
},
|
|
2857
2857
|
setup(t, { slots: e }) {
|
|
2858
|
-
const n =
|
|
2858
|
+
const n = G("init"), r = G(0), s = tn({
|
|
2859
2859
|
uppy: Gn(t.uppy),
|
|
2860
2860
|
status: "init",
|
|
2861
2861
|
progress: 0
|
|
@@ -2865,7 +2865,7 @@ const Fn = Symbol("uppy"), ji = I({
|
|
|
2865
2865
|
return ye(() => {
|
|
2866
2866
|
if (!t.uppy)
|
|
2867
2867
|
throw new Error("UppyContextProvider: passing `uppy` as a prop is required");
|
|
2868
|
-
o =
|
|
2868
|
+
o = ji({
|
|
2869
2869
|
uppy: t.uppy,
|
|
2870
2870
|
onStatusChange: (i) => {
|
|
2871
2871
|
n.value = i, s.status = i;
|
|
@@ -2894,9 +2894,9 @@ const xi = I({
|
|
|
2894
2894
|
name: "Dropzone",
|
|
2895
2895
|
props: ["width", "height", "note", "noClick"],
|
|
2896
2896
|
setup(t) {
|
|
2897
|
-
const e =
|
|
2897
|
+
const e = G(null), n = Tn();
|
|
2898
2898
|
function r() {
|
|
2899
|
-
e.value && gn(St(
|
|
2899
|
+
e.value && gn(St(Ai, {
|
|
2900
2900
|
...t,
|
|
2901
2901
|
ctx: n
|
|
2902
2902
|
}), e.value);
|
|
@@ -2909,13 +2909,13 @@ const xi = I({
|
|
|
2909
2909
|
r();
|
|
2910
2910
|
}, { deep: !0 }), () => rn("div", { ref: e });
|
|
2911
2911
|
}
|
|
2912
|
-
}),
|
|
2912
|
+
}), qi = I({
|
|
2913
2913
|
name: "FilesList",
|
|
2914
2914
|
props: ["editFile", "imageThumbnail"],
|
|
2915
2915
|
setup(t) {
|
|
2916
|
-
const e =
|
|
2916
|
+
const e = G(null), n = Tn();
|
|
2917
2917
|
function r() {
|
|
2918
|
-
e.value && gn(St(
|
|
2918
|
+
e.value && gn(St(Ri, {
|
|
2919
2919
|
...t,
|
|
2920
2920
|
ctx: n
|
|
2921
2921
|
}), e.value);
|
|
@@ -3001,19 +3001,19 @@ function En(t) {
|
|
|
3001
3001
|
const e = t.name ? (n = kn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
|
|
3002
3002
|
return e && e in Ht ? Ht[e] : "application/octet-stream";
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function Hi(t) {
|
|
3005
3005
|
return t.charCodeAt(0).toString(32);
|
|
3006
3006
|
}
|
|
3007
3007
|
function Gt(t) {
|
|
3008
3008
|
let e = "";
|
|
3009
|
-
return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${
|
|
3009
|
+
return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${Hi(n)}`, "/")) + e;
|
|
3010
3010
|
}
|
|
3011
|
-
function
|
|
3011
|
+
function Gi(t, e) {
|
|
3012
3012
|
var r;
|
|
3013
3013
|
let n = e || "uppy";
|
|
3014
3014
|
return typeof t.name == "string" && (n += `-${Gt(t.name.toLowerCase())}`), t.type !== void 0 && (n += `-${t.type}`), t.meta && typeof t.meta.relativePath == "string" && (n += `-${Gt(t.meta.relativePath.toLowerCase())}`), ((r = t.data) == null ? void 0 : r.size) !== void 0 && (n += `-${t.data.size}`), t.data.lastModified !== void 0 && (n += `-${t.data.lastModified}`), n;
|
|
3015
3015
|
}
|
|
3016
|
-
function
|
|
3016
|
+
function Wi(t) {
|
|
3017
3017
|
return !t.isRemote || !t.remote ? !1 : (/* @__PURE__ */ new Set([
|
|
3018
3018
|
"box",
|
|
3019
3019
|
"dropbox",
|
|
@@ -3022,11 +3022,11 @@ function Gi(t) {
|
|
|
3022
3022
|
"unsplash"
|
|
3023
3023
|
])).has(t.remote.provider);
|
|
3024
3024
|
}
|
|
3025
|
-
function
|
|
3026
|
-
if (
|
|
3025
|
+
function Yi(t, e) {
|
|
3026
|
+
if (Wi(t))
|
|
3027
3027
|
return t.id;
|
|
3028
3028
|
const n = En(t);
|
|
3029
|
-
return
|
|
3029
|
+
return Gi({
|
|
3030
3030
|
...t,
|
|
3031
3031
|
type: n
|
|
3032
3032
|
}, e);
|
|
@@ -3038,7 +3038,7 @@ function Be() {
|
|
|
3038
3038
|
const t = /* @__PURE__ */ new Date(), e = Qe(t.getHours()), n = Qe(t.getMinutes()), r = Qe(t.getSeconds());
|
|
3039
3039
|
return `${e}:${n}:${r}`;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Xi(t, e, n) {
|
|
3042
3042
|
const r = [];
|
|
3043
3043
|
return t.forEach((s) => typeof s != "string" ? r.push(s) : e[Symbol.split](s).forEach((o, i, a) => {
|
|
3044
3044
|
o !== "" && r.push(o), i < a.length - 1 && r.push(n);
|
|
@@ -3062,19 +3062,19 @@ function Wt(t, e) {
|
|
|
3062
3062
|
for (const o of Object.keys(e))
|
|
3063
3063
|
if (o !== "_") {
|
|
3064
3064
|
let i = e[o];
|
|
3065
|
-
typeof i == "string" && (i = n[Symbol.replace](i, r)), s =
|
|
3065
|
+
typeof i == "string" && (i = n[Symbol.replace](i, r)), s = Xi(s, new RegExp(`%\\{${o}\\}`, "g"), i);
|
|
3066
3066
|
}
|
|
3067
3067
|
return s;
|
|
3068
3068
|
}
|
|
3069
|
-
const
|
|
3069
|
+
const Zi = (t) => {
|
|
3070
3070
|
throw new Error(`missing string: ${t}`);
|
|
3071
3071
|
};
|
|
3072
3072
|
var Ee, Ie, ot;
|
|
3073
|
-
class
|
|
3074
|
-
constructor(e, { onMissingKey: n =
|
|
3075
|
-
|
|
3073
|
+
class Ki {
|
|
3074
|
+
constructor(e, { onMissingKey: n = Zi } = {}) {
|
|
3075
|
+
L(this, Ie);
|
|
3076
3076
|
R(this, "locale");
|
|
3077
|
-
|
|
3077
|
+
L(this, Ee);
|
|
3078
3078
|
this.locale = {
|
|
3079
3079
|
strings: {},
|
|
3080
3080
|
pluralize(r) {
|
|
@@ -3120,13 +3120,13 @@ Ee = new WeakMap(), Ie = new WeakSet(), ot = function(e) {
|
|
|
3120
3120
|
pluralize: e.pluralize || n.pluralize
|
|
3121
3121
|
});
|
|
3122
3122
|
};
|
|
3123
|
-
const
|
|
3123
|
+
const Ji = {
|
|
3124
3124
|
debug: () => {
|
|
3125
3125
|
},
|
|
3126
3126
|
warn: () => {
|
|
3127
3127
|
},
|
|
3128
3128
|
error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
|
|
3129
|
-
},
|
|
3129
|
+
}, Qi = {
|
|
3130
3130
|
debug: (...t) => console.debug(`[Uppy] [${Be()}]`, ...t),
|
|
3131
3131
|
warn: (...t) => console.warn(`[Uppy] [${Be()}]`, ...t),
|
|
3132
3132
|
error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
|
|
@@ -3135,7 +3135,7 @@ var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3135
3135
|
function Xe(t) {
|
|
3136
3136
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3137
3137
|
}
|
|
3138
|
-
var
|
|
3138
|
+
var eo = function(e) {
|
|
3139
3139
|
if (typeof e != "number" || Number.isNaN(e))
|
|
3140
3140
|
throw new TypeError(`Expected a number, got ${typeof e}`);
|
|
3141
3141
|
const n = e < 0;
|
|
@@ -3145,7 +3145,7 @@ var Qi = function(e) {
|
|
|
3145
3145
|
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];
|
|
3146
3146
|
return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
|
|
3147
3147
|
};
|
|
3148
|
-
const Pe = /* @__PURE__ */ Xe(
|
|
3148
|
+
const Pe = /* @__PURE__ */ Xe(eo);
|
|
3149
3149
|
function In(t, e) {
|
|
3150
3150
|
this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
|
|
3151
3151
|
}
|
|
@@ -3169,17 +3169,17 @@ In.prototype.match = function(t) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
return e;
|
|
3171
3171
|
};
|
|
3172
|
-
var
|
|
3172
|
+
var to = function(t, e, n) {
|
|
3173
3173
|
var r = new In(t, n || /[\/\.]/);
|
|
3174
3174
|
return typeof e < "u" ? r.match(e) : r;
|
|
3175
|
-
},
|
|
3175
|
+
}, no = to, ro = /[\/\+\.]/, so = function(t, e) {
|
|
3176
3176
|
function n(r) {
|
|
3177
|
-
var s =
|
|
3177
|
+
var s = no(r, t, ro);
|
|
3178
3178
|
return s && s.length >= 2;
|
|
3179
3179
|
}
|
|
3180
3180
|
return e ? n(e.split(";")[0]) : n;
|
|
3181
3181
|
};
|
|
3182
|
-
const
|
|
3182
|
+
const io = /* @__PURE__ */ Xe(so), oo = {
|
|
3183
3183
|
maxFileSize: null,
|
|
3184
3184
|
minFileSize: null,
|
|
3185
3185
|
maxTotalFileSize: null,
|
|
@@ -3197,7 +3197,7 @@ class J extends Error {
|
|
|
3197
3197
|
this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
|
|
3198
3198
|
}
|
|
3199
3199
|
}
|
|
3200
|
-
class
|
|
3200
|
+
class ao {
|
|
3201
3201
|
constructor(e, n) {
|
|
3202
3202
|
R(this, "getI18n");
|
|
3203
3203
|
R(this, "getOpts");
|
|
@@ -3227,7 +3227,7 @@ class oo {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
validateSingleFile(e) {
|
|
3229
3229
|
const { maxFileSize: n, minFileSize: r, allowedFileTypes: s } = this.getOpts().restrictions;
|
|
3230
|
-
if (s && !s.some((i) => i.includes("/") ? e.type ?
|
|
3230
|
+
if (s && !s.some((i) => i.includes("/") ? e.type ? io(e.type.replace(/;.*?$/, ""), i) : !1 : i[0] === "." && e.extension ? e.extension.toLowerCase() === i.slice(1).toLowerCase() : !1)) {
|
|
3231
3231
|
const i = s.join(", ");
|
|
3232
3232
|
throw new J(this.getI18n()("youCanOnlyUploadFileTypes", {
|
|
3233
3233
|
types: i
|
|
@@ -3264,22 +3264,22 @@ class oo {
|
|
|
3264
3264
|
return { missingFields: s, error: n };
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
|
-
const
|
|
3268
|
-
version:
|
|
3267
|
+
const lo = "5.0.0", uo = {
|
|
3268
|
+
version: lo
|
|
3269
3269
|
};
|
|
3270
|
-
var ce,
|
|
3270
|
+
var ce, Le, Vn;
|
|
3271
3271
|
class Cn {
|
|
3272
3272
|
constructor() {
|
|
3273
|
-
|
|
3273
|
+
L(this, Le);
|
|
3274
3274
|
R(this, "state", {});
|
|
3275
|
-
|
|
3275
|
+
L(this, ce, /* @__PURE__ */ new Set());
|
|
3276
3276
|
}
|
|
3277
3277
|
getState() {
|
|
3278
3278
|
return this.state;
|
|
3279
3279
|
}
|
|
3280
3280
|
setState(e) {
|
|
3281
3281
|
const n = { ...this.state }, r = { ...this.state, ...e };
|
|
3282
|
-
this.state = r, F(this,
|
|
3282
|
+
this.state = r, F(this, Le, Vn).call(this, n, r, e);
|
|
3283
3283
|
}
|
|
3284
3284
|
subscribe(e) {
|
|
3285
3285
|
return b(this, ce).add(e), () => {
|
|
@@ -3287,59 +3287,59 @@ class Cn {
|
|
|
3287
3287
|
};
|
|
3288
3288
|
}
|
|
3289
3289
|
}
|
|
3290
|
-
ce = new WeakMap(),
|
|
3290
|
+
ce = new WeakMap(), Le = new WeakSet(), Vn = function(...e) {
|
|
3291
3291
|
b(this, ce).forEach((n) => {
|
|
3292
3292
|
n(...e);
|
|
3293
3293
|
});
|
|
3294
|
-
}, R(Cn, "VERSION",
|
|
3295
|
-
function
|
|
3294
|
+
}, R(Cn, "VERSION", uo.version);
|
|
3295
|
+
function po(t) {
|
|
3296
3296
|
var e = typeof t;
|
|
3297
3297
|
return t != null && (e == "object" || e == "function");
|
|
3298
3298
|
}
|
|
3299
|
-
var Et =
|
|
3300
|
-
return
|
|
3301
|
-
},
|
|
3302
|
-
function
|
|
3303
|
-
for (var e = t.length; e-- &&
|
|
3299
|
+
var Et = po, co = typeof ze == "object" && ze && ze.Object === Object && ze, fo = co, ho = fo, mo = typeof self == "object" && self && self.Object === Object && self, go = ho || mo || Function("return this")(), Mn = go, yo = Mn, vo = function() {
|
|
3300
|
+
return yo.Date.now();
|
|
3301
|
+
}, _o = vo, bo = /\s/;
|
|
3302
|
+
function wo(t) {
|
|
3303
|
+
for (var e = t.length; e-- && bo.test(t.charAt(e)); )
|
|
3304
3304
|
;
|
|
3305
3305
|
return e;
|
|
3306
3306
|
}
|
|
3307
|
-
var
|
|
3308
|
-
function
|
|
3309
|
-
return t && t.slice(0,
|
|
3307
|
+
var $o = wo, So = $o, Fo = /^\s+/;
|
|
3308
|
+
function To(t) {
|
|
3309
|
+
return t && t.slice(0, So(t) + 1).replace(Fo, "");
|
|
3310
3310
|
}
|
|
3311
|
-
var
|
|
3312
|
-
function
|
|
3313
|
-
var e =
|
|
3311
|
+
var ko = To, Eo = Mn, Io = Eo.Symbol, Un = Io, Yt = Un, An = Object.prototype, Co = An.hasOwnProperty, Vo = An.toString, we = Yt ? Yt.toStringTag : void 0;
|
|
3312
|
+
function Mo(t) {
|
|
3313
|
+
var e = Co.call(t, we), n = t[we];
|
|
3314
3314
|
try {
|
|
3315
3315
|
t[we] = void 0;
|
|
3316
3316
|
var r = !0;
|
|
3317
3317
|
} catch {
|
|
3318
3318
|
}
|
|
3319
|
-
var s =
|
|
3319
|
+
var s = Vo.call(t);
|
|
3320
3320
|
return r && (e ? t[we] = n : delete t[we]), s;
|
|
3321
3321
|
}
|
|
3322
|
-
var
|
|
3323
|
-
function
|
|
3324
|
-
return
|
|
3322
|
+
var Uo = Mo, Ao = Object.prototype, zo = Ao.toString;
|
|
3323
|
+
function Po(t) {
|
|
3324
|
+
return zo.call(t);
|
|
3325
3325
|
}
|
|
3326
|
-
var
|
|
3327
|
-
function
|
|
3328
|
-
return t == null ? t === void 0 ?
|
|
3326
|
+
var No = Po, Xt = Un, Oo = Uo, Do = No, Ro = "[object Null]", Bo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
|
|
3327
|
+
function jo(t) {
|
|
3328
|
+
return t == null ? t === void 0 ? Bo : Ro : Zt && Zt in Object(t) ? Oo(t) : Do(t);
|
|
3329
3329
|
}
|
|
3330
|
-
var
|
|
3330
|
+
var Lo = jo;
|
|
3331
3331
|
function xo(t) {
|
|
3332
3332
|
return t != null && typeof t == "object";
|
|
3333
3333
|
}
|
|
3334
|
-
var
|
|
3335
|
-
function
|
|
3336
|
-
return typeof t == "symbol" ||
|
|
3334
|
+
var qo = xo, Ho = Lo, Go = qo, Wo = "[object Symbol]";
|
|
3335
|
+
function Yo(t) {
|
|
3336
|
+
return typeof t == "symbol" || Go(t) && Ho(t) == Wo;
|
|
3337
3337
|
}
|
|
3338
|
-
var
|
|
3339
|
-
function
|
|
3338
|
+
var Xo = Yo, Zo = ko, Kt = Et, Ko = Xo, Jt = NaN, Jo = /^[-+]0x[0-9a-f]+$/i, Qo = /^0b[01]+$/i, ea = /^0o[0-7]+$/i, ta = parseInt;
|
|
3339
|
+
function na(t) {
|
|
3340
3340
|
if (typeof t == "number")
|
|
3341
3341
|
return t;
|
|
3342
|
-
if (
|
|
3342
|
+
if (Ko(t))
|
|
3343
3343
|
return Jt;
|
|
3344
3344
|
if (Kt(t)) {
|
|
3345
3345
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -3347,16 +3347,16 @@ function ta(t) {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
if (typeof t != "string")
|
|
3349
3349
|
return t === 0 ? t : +t;
|
|
3350
|
-
t =
|
|
3351
|
-
var n =
|
|
3352
|
-
return n ||
|
|
3350
|
+
t = Zo(t);
|
|
3351
|
+
var n = Qo.test(t);
|
|
3352
|
+
return n || ea.test(t) ? ta(t.slice(2), n ? 2 : 8) : Jo.test(t) ? Jt : +t;
|
|
3353
3353
|
}
|
|
3354
|
-
var
|
|
3355
|
-
function
|
|
3354
|
+
var ra = na, sa = Et, et = _o, Qt = ra, ia = "Expected a function", oa = Math.max, aa = Math.min;
|
|
3355
|
+
function la(t, e, n) {
|
|
3356
3356
|
var r, s, o, i, a, l, u = 0, d = !1, p = !1, c = !0;
|
|
3357
3357
|
if (typeof t != "function")
|
|
3358
|
-
throw new TypeError(
|
|
3359
|
-
e = Qt(e) || 0,
|
|
3358
|
+
throw new TypeError(ia);
|
|
3359
|
+
e = Qt(e) || 0, sa(n) && (d = !!n.leading, p = "maxWait" in n, o = p ? oa(Qt(n.maxWait) || 0, e) : o, c = "trailing" in n ? !!n.trailing : c);
|
|
3360
3360
|
function h(w) {
|
|
3361
3361
|
var U = r, N = s;
|
|
3362
3362
|
return r = s = void 0, u = w, i = t.apply(N, U), i;
|
|
@@ -3365,8 +3365,8 @@ function aa(t, e, n) {
|
|
|
3365
3365
|
return u = w, a = setTimeout(T, e), d ? h(w) : i;
|
|
3366
3366
|
}
|
|
3367
3367
|
function V(w) {
|
|
3368
|
-
var U = w - l, N = w - u,
|
|
3369
|
-
return p ?
|
|
3368
|
+
var U = w - l, N = w - u, H = e - U;
|
|
3369
|
+
return p ? aa(H, o - N) : H;
|
|
3370
3370
|
}
|
|
3371
3371
|
function A(w) {
|
|
3372
3372
|
var U = w - l, N = w - u;
|
|
@@ -3399,20 +3399,20 @@ function aa(t, e, n) {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
return _.cancel = Y, _.flush = f, _;
|
|
3401
3401
|
}
|
|
3402
|
-
var
|
|
3403
|
-
function
|
|
3402
|
+
var ua = la, da = ua, pa = Et, ca = "Expected a function";
|
|
3403
|
+
function fa(t, e, n) {
|
|
3404
3404
|
var r = !0, s = !0;
|
|
3405
3405
|
if (typeof t != "function")
|
|
3406
|
-
throw new TypeError(
|
|
3407
|
-
return
|
|
3406
|
+
throw new TypeError(ca);
|
|
3407
|
+
return pa(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), da(t, e, {
|
|
3408
3408
|
leading: r,
|
|
3409
3409
|
maxWait: e,
|
|
3410
3410
|
trailing: s
|
|
3411
3411
|
});
|
|
3412
3412
|
}
|
|
3413
|
-
var
|
|
3414
|
-
const
|
|
3415
|
-
var
|
|
3413
|
+
var ha = fa;
|
|
3414
|
+
const ma = /* @__PURE__ */ Xe(ha);
|
|
3415
|
+
var ga = function() {
|
|
3416
3416
|
var e = {}, n = e._fns = {};
|
|
3417
3417
|
e.emit = function(i, a, l, u, d, p, c) {
|
|
3418
3418
|
var h = r(i);
|
|
@@ -3451,20 +3451,20 @@ var ma = function() {
|
|
|
3451
3451
|
}
|
|
3452
3452
|
return e;
|
|
3453
3453
|
};
|
|
3454
|
-
const
|
|
3455
|
-
let
|
|
3454
|
+
const ya = /* @__PURE__ */ Xe(ga);
|
|
3455
|
+
let va = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", _a = (t = 21) => {
|
|
3456
3456
|
let e = "", n = t | 0;
|
|
3457
3457
|
for (; n--; )
|
|
3458
|
-
e +=
|
|
3458
|
+
e += va[Math.random() * 64 | 0];
|
|
3459
3459
|
return e;
|
|
3460
3460
|
};
|
|
3461
|
-
const
|
|
3462
|
-
version:
|
|
3461
|
+
const ba = "5.2.0", wa = {
|
|
3462
|
+
version: ba
|
|
3463
3463
|
};
|
|
3464
|
-
function
|
|
3464
|
+
function $a(t, e) {
|
|
3465
3465
|
return e.name ? e.name : t.split("/")[0] === "image" ? `${t.split("/")[0]}.${t.split("/")[1]}` : "noname";
|
|
3466
3466
|
}
|
|
3467
|
-
const
|
|
3467
|
+
const Sa = {
|
|
3468
3468
|
strings: {
|
|
3469
3469
|
addBulkFilesFailed: {
|
|
3470
3470
|
0: "Failed to add %{smart_count} file due to an internal error",
|
|
@@ -3529,7 +3529,7 @@ const $a = {
|
|
|
3529
3529
|
pleaseWait: "Please wait"
|
|
3530
3530
|
}
|
|
3531
3531
|
};
|
|
3532
|
-
function
|
|
3532
|
+
function Fa(t) {
|
|
3533
3533
|
if (t == null && typeof navigator < "u" && (t = navigator.userAgent), !t)
|
|
3534
3534
|
return !0;
|
|
3535
3535
|
const e = /Edge\/(\d+\.\d+)/.exec(t);
|
|
@@ -3544,20 +3544,20 @@ const Ne = {
|
|
|
3544
3544
|
error: null,
|
|
3545
3545
|
recoveredState: null
|
|
3546
3546
|
};
|
|
3547
|
-
var Z, K, Ce, le, fe, he, ue, y, oe, lt, zn, Pn, Nn, ut, dt, pt, ct,
|
|
3547
|
+
var Z, K, Ce, le, fe, he, ue, y, oe, lt, zn, Pn, Nn, ut, dt, pt, ct, xe, ft, de, On, Dn, se, Ve, $e, Rn, ht, Se;
|
|
3548
3548
|
const qe = class qe {
|
|
3549
3549
|
/**
|
|
3550
3550
|
* Instantiate Uppy
|
|
3551
3551
|
*/
|
|
3552
3552
|
constructor(e) {
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3553
|
+
L(this, y);
|
|
3554
|
+
L(this, Z, /* @__PURE__ */ Object.create(null));
|
|
3555
|
+
L(this, K);
|
|
3556
|
+
L(this, Ce);
|
|
3557
|
+
L(this, le, ya());
|
|
3558
|
+
L(this, fe, /* @__PURE__ */ new Set());
|
|
3559
|
+
L(this, he, /* @__PURE__ */ new Set());
|
|
3560
|
+
L(this, ue, /* @__PURE__ */ new Set());
|
|
3561
3561
|
R(this, "defaultLocale");
|
|
3562
3562
|
R(this, "locale");
|
|
3563
3563
|
// The user optionally passes in options, but we set defaults for missing options.
|
|
@@ -3569,7 +3569,7 @@ const qe = class qe {
|
|
|
3569
3569
|
R(this, "i18nArray");
|
|
3570
3570
|
R(this, "scheduledAutoProceed", null);
|
|
3571
3571
|
R(this, "wasOffline", !1);
|
|
3572
|
-
|
|
3572
|
+
L(this, xe, (e, n) => {
|
|
3573
3573
|
const r = e ? this.getFile(e.id) : void 0;
|
|
3574
3574
|
if (e == null || !r) {
|
|
3575
3575
|
this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
|
|
@@ -3604,8 +3604,8 @@ const qe = class qe {
|
|
|
3604
3604
|
// and click 'ADD MORE FILES', - focus won't activate in Firefox.
|
|
3605
3605
|
// - We must throttle at around >500ms to avoid performance lags.
|
|
3606
3606
|
// [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
|
|
3607
|
-
|
|
3608
|
-
|
|
3607
|
+
L(this, de, ma(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
|
|
3608
|
+
L(this, se, this.updateOnlineStatus.bind(this));
|
|
3609
3609
|
// We need to store request clients by a unique ID, so we can share RequestClient instances across files
|
|
3610
3610
|
// this allows us to do rate limiting and synchronous operations like refreshing provider tokens
|
|
3611
3611
|
// example: refreshing tokens: if each file has their own requestclient,
|
|
@@ -3616,19 +3616,19 @@ const qe = class qe {
|
|
|
3616
3616
|
// back when we had a requestclient per file, once an access token expired,
|
|
3617
3617
|
// all 6 files would go ahead and refresh the token at the same time
|
|
3618
3618
|
// (calling /refresh-token up to 6 times), which will probably fail for some providers
|
|
3619
|
-
|
|
3620
|
-
this.defaultLocale =
|
|
3619
|
+
L(this, Ve, /* @__PURE__ */ new Map());
|
|
3620
|
+
this.defaultLocale = Sa;
|
|
3621
3621
|
const n = {
|
|
3622
3622
|
id: "uppy",
|
|
3623
3623
|
autoProceed: !1,
|
|
3624
3624
|
allowMultipleUploadBatches: !0,
|
|
3625
3625
|
debug: !1,
|
|
3626
|
-
restrictions:
|
|
3626
|
+
restrictions: oo,
|
|
3627
3627
|
meta: {},
|
|
3628
3628
|
onBeforeFileAdded: (s, o) => !Object.hasOwn(o, s.id),
|
|
3629
3629
|
onBeforeUpload: (s) => s,
|
|
3630
3630
|
store: new Cn(),
|
|
3631
|
-
logger:
|
|
3631
|
+
logger: Ji,
|
|
3632
3632
|
infoTimeout: 5e3
|
|
3633
3633
|
}, r = { ...n, ...e };
|
|
3634
3634
|
this.opts = {
|
|
@@ -3637,19 +3637,19 @@ const qe = class qe {
|
|
|
3637
3637
|
...n.restrictions,
|
|
3638
3638
|
...e == null ? void 0 : e.restrictions
|
|
3639
3639
|
}
|
|
3640
|
-
}, e != null && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e != null && e.debug && (this.opts.logger =
|
|
3640
|
+
}, e != null && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e != null && e.debug && (this.opts.logger = Qi), this.log(`Using Core v${qe.VERSION}`), this.i18nInit(), this.store = this.opts.store, this.setState({
|
|
3641
3641
|
...Ne,
|
|
3642
3642
|
plugins: {},
|
|
3643
3643
|
files: {},
|
|
3644
3644
|
currentUploads: {},
|
|
3645
3645
|
capabilities: {
|
|
3646
|
-
uploadProgress:
|
|
3646
|
+
uploadProgress: Fa(),
|
|
3647
3647
|
individualCancellation: !0,
|
|
3648
3648
|
resumableUploads: !1
|
|
3649
3649
|
},
|
|
3650
3650
|
meta: { ...this.opts.meta },
|
|
3651
3651
|
info: []
|
|
3652
|
-
}), Me(this, K, new
|
|
3652
|
+
}), Me(this, K, new ao(() => this.opts, () => this.i18n)), Me(this, Ce, this.store.subscribe((s, o, i) => {
|
|
3653
3653
|
this.emit("state-update", s, o, i), this.updateAll(o);
|
|
3654
3654
|
})), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), F(this, y, Dn).call(this);
|
|
3655
3655
|
}
|
|
@@ -3711,7 +3711,7 @@ const qe = class qe {
|
|
|
3711
3711
|
this.patchFilesState({ [e]: n });
|
|
3712
3712
|
}
|
|
3713
3713
|
i18nInit() {
|
|
3714
|
-
const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new
|
|
3714
|
+
const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Ki([this.defaultLocale, this.opts.locale], {
|
|
3715
3715
|
onMissingKey: e
|
|
3716
3716
|
});
|
|
3717
3717
|
this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
|
|
@@ -4231,7 +4231,7 @@ Nn = function(e) {
|
|
|
4231
4231
|
isRemote: !1,
|
|
4232
4232
|
source: void 0,
|
|
4233
4233
|
preview: void 0
|
|
4234
|
-
} : e, r = En(n), s =
|
|
4234
|
+
} : e, r = En(n), s = $a(r, n), o = kn(s).extension, i = Yi(n, this.getID()), a = {
|
|
4235
4235
|
...n.meta,
|
|
4236
4236
|
name: s,
|
|
4237
4237
|
type: r
|
|
@@ -4341,7 +4341,7 @@ ut = function() {
|
|
|
4341
4341
|
// create new upload even if allowNewUpload: false
|
|
4342
4342
|
});
|
|
4343
4343
|
return F(this, y, Se).call(this, r);
|
|
4344
|
-
},
|
|
4344
|
+
}, xe = new WeakMap(), ft = function() {
|
|
4345
4345
|
const e = F(this, y, On).call(this);
|
|
4346
4346
|
let n = null;
|
|
4347
4347
|
e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
|
|
@@ -4404,7 +4404,7 @@ Dn = function() {
|
|
|
4404
4404
|
]));
|
|
4405
4405
|
this.patchFilesState(i);
|
|
4406
4406
|
};
|
|
4407
|
-
this.on("upload-start", r), this.on("upload-progress", b(this,
|
|
4407
|
+
this.on("upload-start", r), this.on("upload-progress", b(this, xe)), this.on("upload-success", (s, o) => {
|
|
4408
4408
|
if (s == null || !this.getFile(s.id)) {
|
|
4409
4409
|
this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
|
|
4410
4410
|
return;
|
|
@@ -4484,7 +4484,7 @@ $e = function(e, n = {}) {
|
|
|
4484
4484
|
const { forceAllowNewUpload: r = !1 } = n, { allowNewUpload: s, currentUploads: o } = this.getState();
|
|
4485
4485
|
if (!s && !r)
|
|
4486
4486
|
throw new Error("Cannot create a new upload: already uploading.");
|
|
4487
|
-
const i =
|
|
4487
|
+
const i = _a();
|
|
4488
4488
|
return this.emit("upload", i, this.getFilesByIds(e)), this.setState({
|
|
4489
4489
|
allowNewUpload: this.opts.allowMultipleUploadBatches !== !1 && this.opts.allowMultipleUploads !== !1,
|
|
4490
4490
|
currentUploads: {
|
|
@@ -4554,12 +4554,12 @@ ht = function(e) {
|
|
|
4554
4554
|
failed: [],
|
|
4555
4555
|
uploadID: e
|
|
4556
4556
|
}), o;
|
|
4557
|
-
}, R(qe, "VERSION",
|
|
4557
|
+
}, R(qe, "VERSION", wa.version);
|
|
4558
4558
|
let at = qe;
|
|
4559
|
-
const
|
|
4559
|
+
const Ta = {
|
|
4560
4560
|
key: 0,
|
|
4561
4561
|
class: "uppy-input-area--caption small text-body-secondary fst-italic"
|
|
4562
|
-
},
|
|
4562
|
+
}, nl = {
|
|
4563
4563
|
__name: "UppyInput",
|
|
4564
4564
|
props: {
|
|
4565
4565
|
name: { type: String, required: !0 },
|
|
@@ -4592,7 +4592,7 @@ const Fa = {
|
|
|
4592
4592
|
],
|
|
4593
4593
|
setup(t, { emit: e }) {
|
|
4594
4594
|
var Y;
|
|
4595
|
-
const n = t, r = e, s =
|
|
4595
|
+
const n = t, r = e, s = G(null), o = G(null), i = Yn(null), a = G(!1), l = G(!1), u = G(0), d = k("form", { value: {}, errors: {}, getID: (f) => f }), p = k("group", null), c = q({
|
|
4596
4596
|
get() {
|
|
4597
4597
|
var f;
|
|
4598
4598
|
return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
|
|
@@ -4653,8 +4653,8 @@ const Fa = {
|
|
|
4653
4653
|
}, (f, _) => {
|
|
4654
4654
|
f === !0 && _ === !1 && h();
|
|
4655
4655
|
}), ye(() => {
|
|
4656
|
-
var f, _, w, U, N,
|
|
4657
|
-
n.useXHR && import("./index-
|
|
4656
|
+
var f, _, w, U, N, H, te, z;
|
|
4657
|
+
n.useXHR && import("./index-CsHj65jU.js").then((X) => {
|
|
4658
4658
|
const pe = X.default;
|
|
4659
4659
|
i.value.use(pe, {
|
|
4660
4660
|
method: "POST",
|
|
@@ -4664,7 +4664,7 @@ const Fa = {
|
|
|
4664
4664
|
},
|
|
4665
4665
|
...n.XHRConfig
|
|
4666
4666
|
});
|
|
4667
|
-
}), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = E(i.value.opts.restrictions)), o && ((
|
|
4667
|
+
}), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = E(i.value.opts.restrictions)), o && ((H = (N = (U = (w = i.value) == null ? void 0 : w.opts) == null ? void 0 : U.locale) == null ? void 0 : N.strings) != null && H.dropzoneText) && ((z = (te = o.value) == null ? void 0 : te.querySelectorAll('[data-uppy-element="dropzone"]>div>div>p')) == null || z.forEach((X) => {
|
|
4668
4668
|
var pe, It, Ct, Vt;
|
|
4669
4669
|
X.innerHTML = (Vt = (Ct = (It = (pe = i.value) == null ? void 0 : pe.opts) == null ? void 0 : It.locale) == null ? void 0 : Ct.strings) == null ? void 0 : Vt.dropzoneText;
|
|
4670
4670
|
}));
|
|
@@ -4697,14 +4697,14 @@ const Fa = {
|
|
|
4697
4697
|
maxFileSize: w,
|
|
4698
4698
|
minFileSize: U,
|
|
4699
4699
|
maxNumberOfFiles: N,
|
|
4700
|
-
minNumberOfFiles:
|
|
4700
|
+
minNumberOfFiles: H,
|
|
4701
4701
|
maxTotalFileSize: te
|
|
4702
4702
|
} = f, z = [];
|
|
4703
4703
|
if (_ && _.length) {
|
|
4704
4704
|
const X = _.map((pe) => pe.replace(".", "")).join("، ");
|
|
4705
4705
|
z.push(`فقط فایلهای ${X}`);
|
|
4706
4706
|
}
|
|
4707
|
-
return N && N > 1 && z.push(`امکان انتخاب حداکثر ${N} فایل`),
|
|
4707
|
+
return N && N > 1 && z.push(`امکان انتخاب حداکثر ${N} فایل`), H && z.push(`حداقل ${H} فایل نیاز است`), w && z.push(`با حداکثر حجم ${T(w)} برای هر فایل`), U && z.push(`با حداقل حجم ${T(U)} برای هر فایل`), te && z.push(`و مجموع حجم کل حداکثر ${T(te)}`), z.length ? z.join("، ") + " مجاز است." : "";
|
|
4708
4708
|
}
|
|
4709
4709
|
return (f, _) => i.value ? (m(), g("div", {
|
|
4710
4710
|
key: 0,
|
|
@@ -4712,49 +4712,49 @@ const Fa = {
|
|
|
4712
4712
|
ref_key: "inputEl",
|
|
4713
4713
|
ref: o
|
|
4714
4714
|
}, [
|
|
4715
|
-
Q(Ke(
|
|
4715
|
+
Q(Ke(Li), {
|
|
4716
4716
|
name: "uu" + t.name,
|
|
4717
4717
|
uppy: i.value
|
|
4718
4718
|
}, {
|
|
4719
4719
|
default: ie(() => [
|
|
4720
4720
|
D(f.$slots, "default", { uppy: i.value }, () => [
|
|
4721
|
-
Q(Ke(
|
|
4721
|
+
Q(Ke(qi), { class: "uppy-file-lists" }),
|
|
4722
4722
|
Q(Ke(xi), { class: "uppy-drop-zone" })
|
|
4723
4723
|
])
|
|
4724
4724
|
]),
|
|
4725
4725
|
_: 3
|
|
4726
4726
|
}, 8, ["name", "uppy"]),
|
|
4727
|
-
s.value ? (m(), g("div",
|
|
4727
|
+
s.value ? (m(), g("div", Ta, W(s.value), 1)) : B("", !0)
|
|
4728
4728
|
], 512)) : B("", !0);
|
|
4729
4729
|
}
|
|
4730
4730
|
};
|
|
4731
4731
|
export {
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4732
|
+
Aa as A,
|
|
4733
|
+
za as C,
|
|
4734
|
+
ja as E,
|
|
4735
|
+
Ba as F,
|
|
4736
4736
|
ys as G,
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4737
|
+
qa as L,
|
|
4738
|
+
Ha as M,
|
|
4739
|
+
Da as P,
|
|
4740
|
+
Ns as Q,
|
|
4741
|
+
tl as R,
|
|
4742
|
+
el as S,
|
|
4743
|
+
Ki as T,
|
|
4744
|
+
Qa as _,
|
|
4745
|
+
Pa as a,
|
|
4746
|
+
Na as b,
|
|
4747
|
+
Oa as c,
|
|
4748
|
+
Ra as d,
|
|
4749
|
+
nl as e,
|
|
4750
|
+
La as f,
|
|
4751
|
+
Ga as g,
|
|
4752
|
+
Wa as h,
|
|
4753
|
+
Za as i,
|
|
4754
|
+
Xa as j,
|
|
4755
|
+
Ya as k,
|
|
4756
4756
|
xa as l,
|
|
4757
|
-
|
|
4758
|
-
|
|
4757
|
+
Ka as m,
|
|
4758
|
+
Ja as n,
|
|
4759
4759
|
Ge as o
|
|
4760
4760
|
};
|