inertia-bootstrap-forms 2.1.15 → 2.1.17
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-BCa8dkmY.js → index-Dfw7KOro.js} +347 -332
- package/dist/{index-lLet6E62.js → index-qCegEt2e.js} +1 -1
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +5 -5
- package/package.json +1 -1
- package/src/CheckboxToggle.vue +15 -5
- package/src/Select2Input.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 B = (t, e, n) => jn(t, typeof e != "symbol" ? e + "" : e, n), Ke = (t, e, n) => e.has(t) || Mt("Cannot " + n);
|
|
7
|
-
var w = (t, e, n) => (Ke(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
8
|
-
import { createElementBlock as g, openBlock as m, renderSlot as O, normalizeClass as R, ref as G, onMounted as ye, onBeforeUnmount as gt, createElementVNode as b, defineComponent as E, inject as T, computed as
|
|
7
|
+
var w = (t, e, n) => (Ke(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), Ue = (t, e, n, r) => (Ke(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), F = (t, e, n) => (Ke(t, e, "access private method"), n);
|
|
8
|
+
import { createElementBlock as g, openBlock as m, renderSlot as O, normalizeClass as R, ref as G, onMounted as ye, onBeforeUnmount as gt, createElementVNode as b, defineComponent as E, inject as T, computed as q, resolveComponent as L, createBlock as ee, withCtx as ie, withDirectives as te, createVNode as Q, vModelText as Me, createTextVNode as yt, toDisplayString as W, vModelDynamic as Ge, defineAsyncComponent as Ln, createCommentVNode as j, mergeProps as en, Fragment as ve, renderList as _e, normalizeStyle as vt, toRef as qn, reactive as tn, withModifiers as nn, resolveDirective as xn, vModelSelect as Hn, markRaw as Gn, provide as Wn, watch as Fe, h as rn, shallowRef as Yn, unref as Je } 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";
|
|
@@ -149,7 +149,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), V = (t, e) => {
|
|
|
149
149
|
return l;
|
|
150
150
|
}
|
|
151
151
|
}), n = T("group", {});
|
|
152
|
-
const r =
|
|
152
|
+
const r = q({
|
|
153
153
|
get() {
|
|
154
154
|
var l;
|
|
155
155
|
return n.value && e.value[n.value.name] ? (l = n.value) == null ? void 0 : l.getData(t.name) : e.value[t.name];
|
|
@@ -165,7 +165,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), V = (t, e) => {
|
|
|
165
165
|
return d !== -1 ? d : o.indexOf(u);
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
const a =
|
|
168
|
+
const a = q({
|
|
169
169
|
get() {
|
|
170
170
|
const l = r.value;
|
|
171
171
|
return l == null || l === "" ? "" : Number(l).toLocaleString("en-US");
|
|
@@ -204,7 +204,7 @@ function kr(t, e, n, r, s, o) {
|
|
|
204
204
|
_: 3
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const Ba = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
|
|
208
208
|
props: {
|
|
209
209
|
name: {
|
|
210
210
|
type: String,
|
|
@@ -223,7 +223,7 @@ const ja = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
|
|
|
223
223
|
return s;
|
|
224
224
|
}
|
|
225
225
|
}), n = T("group", {});
|
|
226
|
-
return { modelValue:
|
|
226
|
+
return { modelValue: q({
|
|
227
227
|
get() {
|
|
228
228
|
var s;
|
|
229
229
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -327,7 +327,7 @@ function Nr(t, e, n, r, s, o) {
|
|
|
327
327
|
]), 8, Dr)
|
|
328
328
|
]);
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const ja = /* @__PURE__ */ V(Vr, [["render", Nr]]), Pr = E({
|
|
331
331
|
emits: ["change"],
|
|
332
332
|
props: {
|
|
333
333
|
name: {
|
|
@@ -387,7 +387,7 @@ function Rr(t, e, n, r, s, o) {
|
|
|
387
387
|
O(t.$slots, "default")
|
|
388
388
|
], 10, zr);
|
|
389
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const La = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
|
|
391
391
|
props: {
|
|
392
392
|
name: {
|
|
393
393
|
type: String,
|
|
@@ -421,7 +421,7 @@ const xa = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
|
|
|
421
421
|
return s;
|
|
422
422
|
}
|
|
423
423
|
}), n = T("group", {});
|
|
424
|
-
return { modelValue:
|
|
424
|
+
return { modelValue: q({
|
|
425
425
|
get() {
|
|
426
426
|
var s;
|
|
427
427
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -432,8 +432,8 @@ const xa = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
|
|
|
432
432
|
}
|
|
433
433
|
}), form: e, group: n };
|
|
434
434
|
}
|
|
435
|
-
}), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"],
|
|
436
|
-
function
|
|
435
|
+
}), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"], qr = ["for"];
|
|
436
|
+
function xr(t, e, n, r, s, o) {
|
|
437
437
|
var i, a;
|
|
438
438
|
return m(), g("div", jr, [
|
|
439
439
|
te(b("input", {
|
|
@@ -453,10 +453,10 @@ function qr(t, e, n, r, s, o) {
|
|
|
453
453
|
for: t.inputID
|
|
454
454
|
}, [
|
|
455
455
|
O(t.$slots, "default")
|
|
456
|
-
], 8,
|
|
456
|
+
], 8, qr)
|
|
457
457
|
]);
|
|
458
458
|
}
|
|
459
|
-
const qa = /* @__PURE__ */ V(Br, [["render",
|
|
459
|
+
const qa = /* @__PURE__ */ V(Br, [["render", xr]]), Hr = E({
|
|
460
460
|
props: {
|
|
461
461
|
name: {
|
|
462
462
|
type: String,
|
|
@@ -477,6 +477,11 @@ const qa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
|
|
|
477
477
|
default: "checkbox",
|
|
478
478
|
required: !1
|
|
479
479
|
},
|
|
480
|
+
disabled: {
|
|
481
|
+
type: Boolean,
|
|
482
|
+
default: !1,
|
|
483
|
+
required: !1
|
|
484
|
+
},
|
|
480
485
|
hideInput: {
|
|
481
486
|
type: Boolean,
|
|
482
487
|
default: !1
|
|
@@ -487,7 +492,7 @@ const qa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
|
|
|
487
492
|
return this.form.getID(this) + (this.value || "");
|
|
488
493
|
},
|
|
489
494
|
selectedValue() {
|
|
490
|
-
return typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null;
|
|
495
|
+
return this.modelValue && typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null;
|
|
491
496
|
}
|
|
492
497
|
},
|
|
493
498
|
setup(t) {
|
|
@@ -497,7 +502,7 @@ const qa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
|
|
|
497
502
|
return s;
|
|
498
503
|
}
|
|
499
504
|
}), n = T("group", {});
|
|
500
|
-
return { modelValue:
|
|
505
|
+
return { modelValue: q({
|
|
501
506
|
get() {
|
|
502
507
|
var s;
|
|
503
508
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -512,7 +517,11 @@ const qa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
|
|
|
512
517
|
function Yr(t, e, n, r, s, o) {
|
|
513
518
|
var i, a, l;
|
|
514
519
|
return m(), g("label", {
|
|
515
|
-
class: R(["form-check-toggle", {
|
|
520
|
+
class: R(["form-check-toggle", {
|
|
521
|
+
"form-check-toggle--active": (t.selectedValue || []).includes(t.value),
|
|
522
|
+
disabled: t.disabled,
|
|
523
|
+
"is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name]
|
|
524
|
+
}]),
|
|
516
525
|
for: t.inputID
|
|
517
526
|
}, [
|
|
518
527
|
te(b("input", {
|
|
@@ -520,7 +529,7 @@ function Yr(t, e, n, r, s, o) {
|
|
|
520
529
|
id: t.inputID,
|
|
521
530
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => t.modelValue = u),
|
|
522
531
|
class: R([{ "is-invalid": (a = t.form) == null ? void 0 : a.errors[t.name], "form-check-toggle--input-hide": t.hideInput }, "form-check-toggle--input form-check-input"]),
|
|
523
|
-
disabled: (l = t.form) == null ? void 0 : l.processing,
|
|
532
|
+
disabled: ((l = t.form) == null ? void 0 : l.processing) || t.disabled,
|
|
524
533
|
type: t.type,
|
|
525
534
|
value: t.value,
|
|
526
535
|
onChange: e[1] || (e[1] = (u) => t.$emit("change", u))
|
|
@@ -530,7 +539,7 @@ function Yr(t, e, n, r, s, o) {
|
|
|
530
539
|
O(t.$slots, "default")
|
|
531
540
|
], 10, Gr);
|
|
532
541
|
}
|
|
533
|
-
const
|
|
542
|
+
const xa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
534
543
|
props: {
|
|
535
544
|
name: {
|
|
536
545
|
type: String,
|
|
@@ -546,6 +555,10 @@ const Ha = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
546
555
|
default: null,
|
|
547
556
|
required: !1
|
|
548
557
|
},
|
|
558
|
+
disabled: {
|
|
559
|
+
type: Boolean,
|
|
560
|
+
default: !1
|
|
561
|
+
},
|
|
549
562
|
type: {
|
|
550
563
|
type: String,
|
|
551
564
|
default: "checkbox",
|
|
@@ -564,7 +577,7 @@ const Ha = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
564
577
|
return s;
|
|
565
578
|
}
|
|
566
579
|
}), n = T("group", {});
|
|
567
|
-
return { modelValue:
|
|
580
|
+
return { modelValue: q({
|
|
568
581
|
get() {
|
|
569
582
|
var s;
|
|
570
583
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -575,20 +588,22 @@ const Ha = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
575
588
|
}
|
|
576
589
|
}), form: e, group: n };
|
|
577
590
|
}
|
|
578
|
-
}), Zr =
|
|
579
|
-
function
|
|
591
|
+
}), Zr = ["name", "id", "disabled", "type", "value"], Kr = ["for"];
|
|
592
|
+
function Jr(t, e, n, r, s, o) {
|
|
580
593
|
var i, a;
|
|
581
|
-
return m(), g("div",
|
|
594
|
+
return m(), g("div", {
|
|
595
|
+
class: R(["form-check form-switch", { disabled: t.disabled }])
|
|
596
|
+
}, [
|
|
582
597
|
te(b("input", {
|
|
583
598
|
name: t.name,
|
|
584
599
|
id: t.inputID,
|
|
585
600
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
586
601
|
class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
|
|
587
|
-
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
602
|
+
disabled: ((a = t.form) == null ? void 0 : a.processing) || t.disabled,
|
|
588
603
|
type: t.type,
|
|
589
604
|
value: t.value,
|
|
590
605
|
onChange: e[1] || (e[1] = (l) => t.$emit("change", l))
|
|
591
|
-
}, null, 42,
|
|
606
|
+
}, null, 42, Zr), [
|
|
592
607
|
[Ge, t.modelValue]
|
|
593
608
|
]),
|
|
594
609
|
b("label", {
|
|
@@ -596,15 +611,15 @@ function Qr(t, e, n, r, s, o) {
|
|
|
596
611
|
for: t.inputID
|
|
597
612
|
}, [
|
|
598
613
|
O(t.$slots, "default")
|
|
599
|
-
], 8,
|
|
600
|
-
]);
|
|
614
|
+
], 8, Kr)
|
|
615
|
+
], 2);
|
|
601
616
|
}
|
|
602
|
-
const
|
|
617
|
+
const Ha = /* @__PURE__ */ V(Xr, [["render", Jr]]), Qr = Ln(
|
|
603
618
|
() => import("vue3-persian-datetime-picker")
|
|
604
619
|
);
|
|
605
620
|
let Ae;
|
|
606
|
-
const
|
|
607
|
-
components: { Vue3PersianDatetimePicker:
|
|
621
|
+
const es = E({
|
|
622
|
+
components: { Vue3PersianDatetimePicker: Qr },
|
|
608
623
|
emits: ["update:modelValue", "change"],
|
|
609
624
|
props: {
|
|
610
625
|
name: {
|
|
@@ -647,7 +662,7 @@ const ts = E({
|
|
|
647
662
|
return s;
|
|
648
663
|
}
|
|
649
664
|
}), n = T("group", {});
|
|
650
|
-
return { modelValue:
|
|
665
|
+
return { modelValue: q({
|
|
651
666
|
get() {
|
|
652
667
|
var s;
|
|
653
668
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -683,7 +698,7 @@ const ts = E({
|
|
|
683
698
|
return {};
|
|
684
699
|
}
|
|
685
700
|
});
|
|
686
|
-
function
|
|
701
|
+
function ts(t, e, n, r, s, o) {
|
|
687
702
|
var a;
|
|
688
703
|
const i = L("Vue3PersianDatetimePicker");
|
|
689
704
|
return t.isSsr ? j("", !0) : (m(), ee(i, en({
|
|
@@ -701,7 +716,7 @@ function ns(t, e, n, r, s, o) {
|
|
|
701
716
|
"input-class": "form-control fanum"
|
|
702
717
|
}, t.$props), null, 16, ["modelValue", "type", "disabled", "inputFormat"]));
|
|
703
718
|
}
|
|
704
|
-
const
|
|
719
|
+
const Ga = /* @__PURE__ */ V(es, [["render", ts]]), ns = E({
|
|
705
720
|
emits: ["update:modelValue", "setContent"],
|
|
706
721
|
components: { Editor: Xn },
|
|
707
722
|
props: {
|
|
@@ -737,7 +752,7 @@ const Wa = /* @__PURE__ */ V(ts, [["render", ns]]), rs = E({
|
|
|
737
752
|
return u;
|
|
738
753
|
}
|
|
739
754
|
}), a = T("group", {});
|
|
740
|
-
return { modelValue:
|
|
755
|
+
return { modelValue: q({
|
|
741
756
|
get() {
|
|
742
757
|
var u;
|
|
743
758
|
return a.value && i.value[a.value.name] ? (u = a.value) == null ? void 0 : u.getData(t.name) : i.value[t.name];
|
|
@@ -749,7 +764,7 @@ const Wa = /* @__PURE__ */ V(ts, [["render", ns]]), rs = E({
|
|
|
749
764
|
}), form: i, group: a, editorRef: r, handleInit: o };
|
|
750
765
|
}
|
|
751
766
|
});
|
|
752
|
-
function
|
|
767
|
+
function rs(t, e, n, r, s, o) {
|
|
753
768
|
const i = L("Editor");
|
|
754
769
|
return m(), ee(i, {
|
|
755
770
|
ref: "editorRef",
|
|
@@ -764,7 +779,7 @@ function ss(t, e, n, r, s, o) {
|
|
|
764
779
|
}
|
|
765
780
|
}, null, 8, ["onInit", "modelValue", "init"]);
|
|
766
781
|
}
|
|
767
|
-
const
|
|
782
|
+
const Wa = /* @__PURE__ */ V(ns, [["render", rs]]), ss = E({
|
|
768
783
|
props: {
|
|
769
784
|
modelValue: "",
|
|
770
785
|
name: {
|
|
@@ -847,19 +862,19 @@ const Ya = /* @__PURE__ */ V(rs, [["render", ss]]), is = E({
|
|
|
847
862
|
files: []
|
|
848
863
|
};
|
|
849
864
|
}
|
|
850
|
-
}),
|
|
865
|
+
}), is = { class: "file-input-uploader" }, os = ["name", "id", "disabled", "multiple"], as = { class: "file-input-uploader--list" }, ls = ["id"], us = {
|
|
851
866
|
key: 0,
|
|
852
867
|
class: "file-input-uploader--progress"
|
|
853
|
-
},
|
|
868
|
+
}, ds = {
|
|
854
869
|
key: 1,
|
|
855
870
|
class: "file-input-uploader--list-error"
|
|
856
|
-
},
|
|
871
|
+
}, ps = {
|
|
857
872
|
class: "file-input-uploader--list-item--size",
|
|
858
873
|
dir: "ltr"
|
|
859
|
-
},
|
|
860
|
-
function
|
|
874
|
+
}, cs = { class: "file-input-uploader--list-item--actions" }, fs = ["onClick"], ms = ["onClick"];
|
|
875
|
+
function hs(t, e, n, r, s, o) {
|
|
861
876
|
var i, a;
|
|
862
|
-
return m(), g("div",
|
|
877
|
+
return m(), g("div", is, [
|
|
863
878
|
b("input", {
|
|
864
879
|
ref: "input",
|
|
865
880
|
name: t.name,
|
|
@@ -869,21 +884,21 @@ function gs(t, e, n, r, s, o) {
|
|
|
869
884
|
type: "file",
|
|
870
885
|
multiple: t.multiple,
|
|
871
886
|
onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
|
|
872
|
-
}, null, 42,
|
|
873
|
-
b("div",
|
|
887
|
+
}, null, 42, os),
|
|
888
|
+
b("div", as, [
|
|
874
889
|
(m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
|
|
875
890
|
id: "file-" + l.id,
|
|
876
891
|
class: "file-input-uploader--list-item"
|
|
877
892
|
}, [
|
|
878
|
-
l.percent && l.percent < 100 ? (m(), g("div",
|
|
893
|
+
l.percent && l.percent < 100 ? (m(), g("div", us, [
|
|
879
894
|
b("div", {
|
|
880
895
|
style: vt({ width: l.percent + "%" })
|
|
881
896
|
}, null, 4)
|
|
882
897
|
])) : j("", !0),
|
|
883
898
|
b("div", null, W(l.file.name), 1),
|
|
884
|
-
l.error ? (m(), g("div",
|
|
885
|
-
b("div",
|
|
886
|
-
b("div",
|
|
899
|
+
l.error ? (m(), g("div", ds, W(l.error), 1)) : j("", !0),
|
|
900
|
+
b("div", ps, W(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
901
|
+
b("div", cs, [
|
|
887
902
|
l.error ? (m(), g("button", {
|
|
888
903
|
key: 0,
|
|
889
904
|
onClick: (u) => t.uploadFile(l),
|
|
@@ -899,7 +914,7 @@ function gs(t, e, n, r, s, o) {
|
|
|
899
914
|
}, [
|
|
900
915
|
b("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" })
|
|
901
916
|
], -1)
|
|
902
|
-
]), 8,
|
|
917
|
+
]), 8, fs)) : j("", !0),
|
|
903
918
|
l.path || l.error ? (m(), g("button", {
|
|
904
919
|
key: 1,
|
|
905
920
|
onClick: (u) => t.deleteFile(l),
|
|
@@ -915,13 +930,13 @@ function gs(t, e, n, r, s, o) {
|
|
|
915
930
|
}, [
|
|
916
931
|
b("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" })
|
|
917
932
|
], -1)
|
|
918
|
-
]), 8,
|
|
933
|
+
]), 8, ms)) : j("", !0)
|
|
919
934
|
])
|
|
920
|
-
], 8,
|
|
935
|
+
], 8, ls))), 256))
|
|
921
936
|
])
|
|
922
937
|
]);
|
|
923
938
|
}
|
|
924
|
-
const
|
|
939
|
+
const Ya = /* @__PURE__ */ V(ss, [["render", hs]]), gs = E({
|
|
925
940
|
components: {
|
|
926
941
|
TextInput: We
|
|
927
942
|
},
|
|
@@ -933,7 +948,7 @@ const Xa = /* @__PURE__ */ V(is, [["render", gs]]), ys = E({
|
|
|
933
948
|
}
|
|
934
949
|
}
|
|
935
950
|
});
|
|
936
|
-
function
|
|
951
|
+
function ys(t, e, n, r, s, o) {
|
|
937
952
|
const i = L("TextInput");
|
|
938
953
|
return m(), ee(i, {
|
|
939
954
|
name: t.name,
|
|
@@ -941,7 +956,7 @@ function vs(t, e, n, r, s, o) {
|
|
|
941
956
|
type: "email"
|
|
942
957
|
}, null, 8, ["name"]);
|
|
943
958
|
}
|
|
944
|
-
const
|
|
959
|
+
const Xa = /* @__PURE__ */ V(gs, [["render", ys]]), vs = E({
|
|
945
960
|
props: {
|
|
946
961
|
name: {
|
|
947
962
|
type: String,
|
|
@@ -958,7 +973,7 @@ const Za = /* @__PURE__ */ V(ys, [["render", vs]]), _s = E({
|
|
|
958
973
|
},
|
|
959
974
|
provide() {
|
|
960
975
|
return {
|
|
961
|
-
group:
|
|
976
|
+
group: q(() => this)
|
|
962
977
|
};
|
|
963
978
|
},
|
|
964
979
|
mounted() {
|
|
@@ -982,8 +997,8 @@ const Za = /* @__PURE__ */ V(ys, [["render", vs]]), _s = E({
|
|
|
982
997
|
groupID: "0"
|
|
983
998
|
};
|
|
984
999
|
}
|
|
985
|
-
}),
|
|
986
|
-
function
|
|
1000
|
+
}), _s = ["data-name", "data-group-id"];
|
|
1001
|
+
function bs(t, e, n, r, s, o) {
|
|
987
1002
|
return m(), g("div", {
|
|
988
1003
|
class: "form-control-group",
|
|
989
1004
|
"data-name": t.name,
|
|
@@ -991,9 +1006,9 @@ function ws(t, e, n, r, s, o) {
|
|
|
991
1006
|
ref: "groupEl"
|
|
992
1007
|
}, [
|
|
993
1008
|
O(t.$slots, "default")
|
|
994
|
-
], 8,
|
|
1009
|
+
], 8, _s);
|
|
995
1010
|
}
|
|
996
|
-
const
|
|
1011
|
+
const ws = /* @__PURE__ */ V(vs, [["render", bs]]), $s = E({
|
|
997
1012
|
components: { Alert: Sr },
|
|
998
1013
|
emits: ["submit", "reset", "onStart", "onFinish", "onSuccess", "onError", "change"],
|
|
999
1014
|
props: {
|
|
@@ -1035,7 +1050,7 @@ const $s = /* @__PURE__ */ V(_s, [["render", ws]]), Ss = E({
|
|
|
1035
1050
|
}
|
|
1036
1051
|
},
|
|
1037
1052
|
setup(t) {
|
|
1038
|
-
const e =
|
|
1053
|
+
const e = qn("formEl"), n = tn(t.modelValue), r = Zn({
|
|
1039
1054
|
hasMessage: !1,
|
|
1040
1055
|
successMessage: null,
|
|
1041
1056
|
...t.options,
|
|
@@ -1049,7 +1064,7 @@ const $s = /* @__PURE__ */ V(_s, [["render", ws]]), Ss = E({
|
|
|
1049
1064
|
},
|
|
1050
1065
|
provide() {
|
|
1051
1066
|
return {
|
|
1052
|
-
form:
|
|
1067
|
+
form: q(() => this.form)
|
|
1053
1068
|
};
|
|
1054
1069
|
},
|
|
1055
1070
|
watch: {
|
|
@@ -1131,8 +1146,8 @@ const $s = /* @__PURE__ */ V(_s, [["render", ws]]), Ss = E({
|
|
|
1131
1146
|
}
|
|
1132
1147
|
},
|
|
1133
1148
|
expose: ["submit", "reset"]
|
|
1134
|
-
}),
|
|
1135
|
-
function
|
|
1149
|
+
}), Ss = ["action", "method", "data-autotab", "novalidate"], Fs = { class: "list-unstyled p-0 m-0 fanum" }, Ts = ["innerHTML"];
|
|
1150
|
+
function ks(t, e, n, r, s, o) {
|
|
1136
1151
|
const i = L("Alert");
|
|
1137
1152
|
return m(), g("form", {
|
|
1138
1153
|
ref: "formEl",
|
|
@@ -1153,8 +1168,8 @@ function Is(t, e, n, r, s, o) {
|
|
|
1153
1168
|
type: "danger"
|
|
1154
1169
|
}, {
|
|
1155
1170
|
default: ie(() => [
|
|
1156
|
-
b("ul",
|
|
1157
|
-
(m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", { innerHTML: a }, null, 8,
|
|
1171
|
+
b("ul", Fs, [
|
|
1172
|
+
(m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", { innerHTML: a }, null, 8, Ts))), 256))
|
|
1158
1173
|
])
|
|
1159
1174
|
]),
|
|
1160
1175
|
_: 1
|
|
@@ -1171,9 +1186,9 @@ function Is(t, e, n, r, s, o) {
|
|
|
1171
1186
|
form: t.form,
|
|
1172
1187
|
submit: t.submit
|
|
1173
1188
|
})
|
|
1174
|
-
], 42,
|
|
1189
|
+
], 42, Ss);
|
|
1175
1190
|
}
|
|
1176
|
-
const
|
|
1191
|
+
const Za = /* @__PURE__ */ V($s, [["render", ks]]), Is = E({
|
|
1177
1192
|
props: {
|
|
1178
1193
|
default: !1,
|
|
1179
1194
|
required: !1
|
|
@@ -1189,20 +1204,20 @@ const Ka = /* @__PURE__ */ V(Ss, [["render", Is]]), Es = E({
|
|
|
1189
1204
|
forId: null
|
|
1190
1205
|
};
|
|
1191
1206
|
}
|
|
1192
|
-
}),
|
|
1207
|
+
}), Es = ["for"], Cs = {
|
|
1193
1208
|
key: 0,
|
|
1194
1209
|
class: "text-danger"
|
|
1195
1210
|
};
|
|
1196
|
-
function
|
|
1211
|
+
function Vs(t, e, n, r, s, o) {
|
|
1197
1212
|
return m(), g("label", {
|
|
1198
1213
|
class: "mb-2 d-block",
|
|
1199
1214
|
for: t.forId
|
|
1200
1215
|
}, [
|
|
1201
1216
|
O(t.$slots, "default", {}, void 0, !0),
|
|
1202
|
-
t.required ? (m(), g("span",
|
|
1203
|
-
], 8,
|
|
1217
|
+
t.required ? (m(), g("span", Cs, "*")) : j("", !0)
|
|
1218
|
+
], 8, Es);
|
|
1204
1219
|
}
|
|
1205
|
-
const
|
|
1220
|
+
const Ka = /* @__PURE__ */ V(Is, [["render", Vs], ["__scopeId", "data-v-1ee6dec3"]]), Ms = E({
|
|
1206
1221
|
name: "LocationInput",
|
|
1207
1222
|
components: {
|
|
1208
1223
|
LMap: Qn,
|
|
@@ -1259,7 +1274,7 @@ const Ja = /* @__PURE__ */ V(Es, [["render", Ms], ["__scopeId", "data-v-1ee6dec3
|
|
|
1259
1274
|
};
|
|
1260
1275
|
}
|
|
1261
1276
|
});
|
|
1262
|
-
function
|
|
1277
|
+
function Us(t, e, n, r, s, o) {
|
|
1263
1278
|
var u;
|
|
1264
1279
|
const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
|
|
1265
1280
|
return m(), g("div", {
|
|
@@ -1290,7 +1305,7 @@ function As(t, e, n, r, s, o) {
|
|
|
1290
1305
|
}, 8, ["zoom", "center", "onClick"])
|
|
1291
1306
|
], 2);
|
|
1292
1307
|
}
|
|
1293
|
-
const
|
|
1308
|
+
const Ja = /* @__PURE__ */ V(Ms, [["render", Us]]), As = E({
|
|
1294
1309
|
components: {
|
|
1295
1310
|
TextInput: We
|
|
1296
1311
|
},
|
|
@@ -1302,7 +1317,7 @@ const Qa = /* @__PURE__ */ V(Us, [["render", As]]), Ds = E({
|
|
|
1302
1317
|
}
|
|
1303
1318
|
}
|
|
1304
1319
|
});
|
|
1305
|
-
function
|
|
1320
|
+
function Ds(t, e, n, r, s, o) {
|
|
1306
1321
|
const i = L("TextInput");
|
|
1307
1322
|
return m(), ee(i, {
|
|
1308
1323
|
name: t.name,
|
|
@@ -1311,7 +1326,7 @@ function Ns(t, e, n, r, s, o) {
|
|
|
1311
1326
|
class: "form-control-mobile fanum"
|
|
1312
1327
|
}, null, 8, ["name"]);
|
|
1313
1328
|
}
|
|
1314
|
-
const
|
|
1329
|
+
const Qa = /* @__PURE__ */ V(As, [["render", Ds]]), Ns = E({
|
|
1315
1330
|
components: {
|
|
1316
1331
|
TextInput: We
|
|
1317
1332
|
},
|
|
@@ -1323,7 +1338,7 @@ const el = /* @__PURE__ */ V(Ds, [["render", Ns]]), Ps = E({
|
|
|
1323
1338
|
}
|
|
1324
1339
|
}
|
|
1325
1340
|
});
|
|
1326
|
-
function
|
|
1341
|
+
function Ps(t, e, n, r, s, o) {
|
|
1327
1342
|
const i = L("TextInput");
|
|
1328
1343
|
return m(), ee(i, {
|
|
1329
1344
|
name: t.name,
|
|
@@ -1331,7 +1346,7 @@ function zs(t, e, n, r, s, o) {
|
|
|
1331
1346
|
type: "password"
|
|
1332
1347
|
}, null, 8, ["name"]);
|
|
1333
1348
|
}
|
|
1334
|
-
const
|
|
1349
|
+
const el = /* @__PURE__ */ V(Ns, [["render", Ps]]), zs = E({
|
|
1335
1350
|
components: { InputGroup: _t, InputGroupText: bt },
|
|
1336
1351
|
props: {
|
|
1337
1352
|
name: {
|
|
@@ -1361,7 +1376,7 @@ const tl = /* @__PURE__ */ V(Ps, [["render", zs]]), Os = E({
|
|
|
1361
1376
|
getID(s) {
|
|
1362
1377
|
}
|
|
1363
1378
|
}), e[t.name] || (e[t.name] = t.min);
|
|
1364
|
-
const r =
|
|
1379
|
+
const r = q({
|
|
1365
1380
|
get() {
|
|
1366
1381
|
var s;
|
|
1367
1382
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1389,9 +1404,9 @@ const tl = /* @__PURE__ */ V(Ps, [["render", zs]]), Os = E({
|
|
|
1389
1404
|
data() {
|
|
1390
1405
|
return {};
|
|
1391
1406
|
}
|
|
1392
|
-
}),
|
|
1393
|
-
function
|
|
1394
|
-
const i = L("InputGroupText"), a = L("InputGroup"), l =
|
|
1407
|
+
}), Os = ["name", "value", "disabled", "readonly"];
|
|
1408
|
+
function Rs(t, e, n, r, s, o) {
|
|
1409
|
+
const i = L("InputGroupText"), a = L("InputGroup"), l = xn("maska");
|
|
1395
1410
|
return m(), ee(a, { class: "input-group-quantity" }, {
|
|
1396
1411
|
default: ie(() => [
|
|
1397
1412
|
b("button", {
|
|
@@ -1422,7 +1437,7 @@ function Bs(t, e, n, r, s, o) {
|
|
|
1422
1437
|
disabled: t.disabled || t.form.processing,
|
|
1423
1438
|
readonly: t.readonly,
|
|
1424
1439
|
type: "tel"
|
|
1425
|
-
}, null, 42,
|
|
1440
|
+
}, null, 42, Os), [
|
|
1426
1441
|
[l]
|
|
1427
1442
|
]),
|
|
1428
1443
|
b("button", {
|
|
@@ -1455,8 +1470,8 @@ function Bs(t, e, n, r, s, o) {
|
|
|
1455
1470
|
_: 3
|
|
1456
1471
|
});
|
|
1457
1472
|
}
|
|
1458
|
-
const
|
|
1459
|
-
components: { GroupControl:
|
|
1473
|
+
const Bs = /* @__PURE__ */ V(zs, [["render", Rs]]), js = E({
|
|
1474
|
+
components: { GroupControl: ws, QuantityInput: Bs, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
|
|
1460
1475
|
props: {
|
|
1461
1476
|
name: {
|
|
1462
1477
|
type: String,
|
|
@@ -1497,7 +1512,7 @@ const js = /* @__PURE__ */ V(Os, [["render", Bs]]), Ls = E({
|
|
|
1497
1512
|
errors: {},
|
|
1498
1513
|
getID(s) {
|
|
1499
1514
|
}
|
|
1500
|
-
}), e[t.name] || (e[t.name] = t.min), { modelValue:
|
|
1515
|
+
}), e[t.name] || (e[t.name] = t.min), { modelValue: q({
|
|
1501
1516
|
get() {
|
|
1502
1517
|
var s;
|
|
1503
1518
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1532,13 +1547,13 @@ const js = /* @__PURE__ */ V(Os, [["render", Bs]]), Ls = E({
|
|
|
1532
1547
|
showDropdown: !1
|
|
1533
1548
|
};
|
|
1534
1549
|
}
|
|
1535
|
-
}),
|
|
1550
|
+
}), Ls = {
|
|
1536
1551
|
ref: "input",
|
|
1537
1552
|
class: "multi-quantity-input fanum"
|
|
1538
|
-
}, qs = { class: "row align-items-center justify-content-between g-0" },
|
|
1539
|
-
function
|
|
1553
|
+
}, qs = { class: "row align-items-center justify-content-between g-0" }, xs = ["innerHTML"], Hs = { class: "col-auto" };
|
|
1554
|
+
function Gs(t, e, n, r, s, o) {
|
|
1540
1555
|
const i = L("QuantityInput"), a = L("GroupControl");
|
|
1541
|
-
return m(), g("div",
|
|
1556
|
+
return m(), g("div", Ls, [
|
|
1542
1557
|
b("button", {
|
|
1543
1558
|
type: "button",
|
|
1544
1559
|
class: "form-control fanum dropdown-toggle",
|
|
@@ -1553,8 +1568,8 @@ function Ws(t, e, n, r, s, o) {
|
|
|
1553
1568
|
b("div", {
|
|
1554
1569
|
class: "col-auto",
|
|
1555
1570
|
innerHTML: (l == null ? void 0 : l.name) || l
|
|
1556
|
-
}, null, 8,
|
|
1557
|
-
b("div",
|
|
1571
|
+
}, null, 8, xs),
|
|
1572
|
+
b("div", Hs, [
|
|
1558
1573
|
Q(i, {
|
|
1559
1574
|
name: u,
|
|
1560
1575
|
min: l.min || t.min,
|
|
@@ -1568,7 +1583,7 @@ function Ws(t, e, n, r, s, o) {
|
|
|
1568
1583
|
], 2)
|
|
1569
1584
|
], 512);
|
|
1570
1585
|
}
|
|
1571
|
-
const
|
|
1586
|
+
const tl = /* @__PURE__ */ V(js, [["render", Gs]]), Ws = E({
|
|
1572
1587
|
emits: ["update:modelValue", "search", "searching", "change", "selected"],
|
|
1573
1588
|
props: {
|
|
1574
1589
|
name: {
|
|
@@ -1631,7 +1646,7 @@ const nl = /* @__PURE__ */ V(Ls, [["render", Ws]]), Ys = E({
|
|
|
1631
1646
|
return s;
|
|
1632
1647
|
}
|
|
1633
1648
|
}), n = T("group", {});
|
|
1634
|
-
return { modelValue:
|
|
1649
|
+
return { modelValue: q({
|
|
1635
1650
|
get() {
|
|
1636
1651
|
var s;
|
|
1637
1652
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -1644,7 +1659,7 @@ const nl = /* @__PURE__ */ V(Ls, [["render", Ws]]), Ys = E({
|
|
|
1644
1659
|
},
|
|
1645
1660
|
computed: {
|
|
1646
1661
|
selectedValue() {
|
|
1647
|
-
return this.multiple ? typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null : this.modelValue;
|
|
1662
|
+
return this.multiple ? this.modelValue && typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null : this.modelValue;
|
|
1648
1663
|
}
|
|
1649
1664
|
},
|
|
1650
1665
|
watch: {
|
|
@@ -1751,8 +1766,8 @@ const nl = /* @__PURE__ */ V(Ls, [["render", Ws]]), Ys = E({
|
|
|
1751
1766
|
}
|
|
1752
1767
|
};
|
|
1753
1768
|
}
|
|
1754
|
-
}),
|
|
1755
|
-
function
|
|
1769
|
+
}), Ys = ["name", "id"], Xs = ["value", "selected"];
|
|
1770
|
+
function Zs(t, e, n, r, s, o) {
|
|
1756
1771
|
return m(), g("div", {
|
|
1757
1772
|
class: R(["select2-controller", {
|
|
1758
1773
|
"is-invalid": t.form.errors[t.name],
|
|
@@ -1772,13 +1787,13 @@ function Ks(t, e, n, r, s, o) {
|
|
|
1772
1787
|
(m(!0), g(ve, null, _e(t.options, (i, a) => (m(), g("option", {
|
|
1773
1788
|
value: t.getKeyFromItem(i),
|
|
1774
1789
|
selected: t.selected(i)
|
|
1775
|
-
}, W(t.getLabelFromItem(i)), 9,
|
|
1776
|
-
], 16,
|
|
1790
|
+
}, W(t.getLabelFromItem(i)), 9, Xs))), 256))
|
|
1791
|
+
], 16, Ys), [
|
|
1777
1792
|
[Hn, t.modelValue]
|
|
1778
1793
|
])
|
|
1779
1794
|
], 2);
|
|
1780
1795
|
}
|
|
1781
|
-
const
|
|
1796
|
+
const nl = /* @__PURE__ */ V(Ws, [["render", Zs]]), Ks = E({
|
|
1782
1797
|
emits: ["update:modelValue"],
|
|
1783
1798
|
props: {
|
|
1784
1799
|
name: {
|
|
@@ -1853,12 +1868,12 @@ const rl = /* @__PURE__ */ V(Ys, [["render", Ks]]), Js = E({
|
|
|
1853
1868
|
isRTL: !1
|
|
1854
1869
|
};
|
|
1855
1870
|
}
|
|
1856
|
-
}),
|
|
1871
|
+
}), Js = { class: "star-rating" }, Qs = {
|
|
1857
1872
|
key: 0,
|
|
1858
1873
|
class: "rating-value fanum"
|
|
1859
1874
|
};
|
|
1860
|
-
function
|
|
1861
|
-
return m(), g("div",
|
|
1875
|
+
function ei(t, e, n, r, s, o) {
|
|
1876
|
+
return m(), g("div", Js, [
|
|
1862
1877
|
b("div", {
|
|
1863
1878
|
class: "star-rating-container",
|
|
1864
1879
|
ref: "ratingContainer",
|
|
@@ -1877,10 +1892,10 @@ function ti(t, e, n, r, s, o) {
|
|
|
1877
1892
|
}, "★", 4)
|
|
1878
1893
|
]))), 128))
|
|
1879
1894
|
], 544),
|
|
1880
|
-
t.showValue && t.displayRating > 0 ? (m(), g("div",
|
|
1895
|
+
t.showValue && t.displayRating > 0 ? (m(), g("div", Qs, W(t.displayRating), 1)) : j("", !0)
|
|
1881
1896
|
]);
|
|
1882
1897
|
}
|
|
1883
|
-
const
|
|
1898
|
+
const rl = /* @__PURE__ */ V(Ks, [["render", ei]]), ti = E({
|
|
1884
1899
|
components: {
|
|
1885
1900
|
Spinner: br
|
|
1886
1901
|
},
|
|
@@ -1891,11 +1906,11 @@ const sl = /* @__PURE__ */ V(Js, [["render", ti]]), ni = E({
|
|
|
1891
1906
|
default: !1
|
|
1892
1907
|
}
|
|
1893
1908
|
}
|
|
1894
|
-
}),
|
|
1909
|
+
}), ni = ["disabled"], ri = {
|
|
1895
1910
|
key: 0,
|
|
1896
1911
|
class: "submit-upload-percent"
|
|
1897
1912
|
};
|
|
1898
|
-
function
|
|
1913
|
+
function si(t, e, n, r, s, o) {
|
|
1899
1914
|
var a, l, u, d;
|
|
1900
1915
|
const i = L("Spinner");
|
|
1901
1916
|
return m(), g("button", {
|
|
@@ -1909,12 +1924,12 @@ function ii(t, e, n, r, s, o) {
|
|
|
1909
1924
|
O(t.$slots, "progress", {}, () => {
|
|
1910
1925
|
var p, c;
|
|
1911
1926
|
return [
|
|
1912
|
-
(p = t.form) != null && p.uploading ? (m(), g("span",
|
|
1927
|
+
(p = t.form) != null && p.uploading ? (m(), g("span", ri, W((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : j("", !0)
|
|
1913
1928
|
];
|
|
1914
1929
|
})
|
|
1915
|
-
], 8,
|
|
1930
|
+
], 8, ni);
|
|
1916
1931
|
}
|
|
1917
|
-
const
|
|
1932
|
+
const sl = /* @__PURE__ */ V(ti, [["render", si]]), ii = E({
|
|
1918
1933
|
components: {
|
|
1919
1934
|
VueTelInput: er
|
|
1920
1935
|
},
|
|
@@ -1948,14 +1963,14 @@ const il = /* @__PURE__ */ V(ni, [["render", ii]]), oi = E({
|
|
|
1948
1963
|
valid: null
|
|
1949
1964
|
};
|
|
1950
1965
|
}
|
|
1951
|
-
}),
|
|
1966
|
+
}), oi = {
|
|
1952
1967
|
class: "telephone-input input-group fanum",
|
|
1953
1968
|
dir: "ltr"
|
|
1954
1969
|
};
|
|
1955
|
-
function
|
|
1970
|
+
function ai(t, e, n, r, s, o) {
|
|
1956
1971
|
var a;
|
|
1957
1972
|
const i = L("vue-tel-input");
|
|
1958
|
-
return m(), g("div",
|
|
1973
|
+
return m(), g("div", oi, [
|
|
1959
1974
|
Q(i, {
|
|
1960
1975
|
mode: "national",
|
|
1961
1976
|
validCharactersOnly: !0,
|
|
@@ -1978,7 +1993,7 @@ function li(t, e, n, r, s, o) {
|
|
|
1978
1993
|
}, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
|
|
1979
1994
|
]);
|
|
1980
1995
|
}
|
|
1981
|
-
const
|
|
1996
|
+
const il = /* @__PURE__ */ V(ii, [["render", ai]]), li = E({
|
|
1982
1997
|
props: {
|
|
1983
1998
|
name: {
|
|
1984
1999
|
type: String,
|
|
@@ -1992,7 +2007,7 @@ const ol = /* @__PURE__ */ V(oi, [["render", li]]), ui = E({
|
|
|
1992
2007
|
return s;
|
|
1993
2008
|
}
|
|
1994
2009
|
}), n = T("group", {});
|
|
1995
|
-
return { modelValue:
|
|
2010
|
+
return { modelValue: q({
|
|
1996
2011
|
get() {
|
|
1997
2012
|
var s;
|
|
1998
2013
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -2003,19 +2018,19 @@ const ol = /* @__PURE__ */ V(oi, [["render", li]]), ui = E({
|
|
|
2003
2018
|
}
|
|
2004
2019
|
}), form: e, group: n };
|
|
2005
2020
|
}
|
|
2006
|
-
}),
|
|
2007
|
-
function
|
|
2021
|
+
}), ui = ["name", "disabled"];
|
|
2022
|
+
function di(t, e, n, r, s, o) {
|
|
2008
2023
|
var i, a;
|
|
2009
2024
|
return te((m(), g("textarea", {
|
|
2010
2025
|
name: t.name,
|
|
2011
2026
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
2012
2027
|
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2013
2028
|
disabled: (a = t.form) == null ? void 0 : a.processing
|
|
2014
|
-
}, null, 10,
|
|
2029
|
+
}, null, 10, ui)), [
|
|
2015
2030
|
[Me, t.modelValue]
|
|
2016
2031
|
]);
|
|
2017
2032
|
}
|
|
2018
|
-
const
|
|
2033
|
+
const ol = /* @__PURE__ */ V(li, [["render", di]]), pi = E({
|
|
2019
2034
|
props: {
|
|
2020
2035
|
name: {
|
|
2021
2036
|
type: String,
|
|
@@ -2045,7 +2060,7 @@ const al = /* @__PURE__ */ V(ui, [["render", pi]]), ci = E({
|
|
|
2045
2060
|
return s;
|
|
2046
2061
|
}
|
|
2047
2062
|
}), n = T("group", {});
|
|
2048
|
-
return { modelValue:
|
|
2063
|
+
return { modelValue: q({
|
|
2049
2064
|
get() {
|
|
2050
2065
|
var s;
|
|
2051
2066
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -2056,8 +2071,8 @@ const al = /* @__PURE__ */ V(ui, [["render", pi]]), ci = E({
|
|
|
2056
2071
|
}
|
|
2057
2072
|
}), form: e, group: n };
|
|
2058
2073
|
}
|
|
2059
|
-
}),
|
|
2060
|
-
function
|
|
2074
|
+
}), ci = ["name", "id", "disabled", "placeholder", "maxlength", "data-auto-submit-length"];
|
|
2075
|
+
function fi(t, e, n, r, s, o) {
|
|
2061
2076
|
var i, a;
|
|
2062
2077
|
return te((m(), g("input", {
|
|
2063
2078
|
name: t.name,
|
|
@@ -2069,11 +2084,11 @@ function mi(t, e, n, r, s, o) {
|
|
|
2069
2084
|
maxlength: t.maxLength,
|
|
2070
2085
|
"data-auto-submit-length": t.maxLength,
|
|
2071
2086
|
type: "tel"
|
|
2072
|
-
}, null, 10,
|
|
2087
|
+
}, null, 10, ci)), [
|
|
2073
2088
|
[Me, t.modelValue]
|
|
2074
2089
|
]);
|
|
2075
2090
|
}
|
|
2076
|
-
const
|
|
2091
|
+
const al = /* @__PURE__ */ V(pi, [["render", fi]]), ll = {
|
|
2077
2092
|
__name: "DropzoneInput",
|
|
2078
2093
|
props: {
|
|
2079
2094
|
name: {
|
|
@@ -2094,7 +2109,7 @@ const ll = /* @__PURE__ */ V(ci, [["render", mi]]), ul = {
|
|
|
2094
2109
|
value: {},
|
|
2095
2110
|
errors: {},
|
|
2096
2111
|
getID: (u) => u
|
|
2097
|
-
}), o = T("group", null), i = G(null), a = G(null), l =
|
|
2112
|
+
}), o = T("group", null), i = G(null), a = G(null), l = q({
|
|
2098
2113
|
get() {
|
|
2099
2114
|
var u;
|
|
2100
2115
|
return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
|
|
@@ -2140,7 +2155,7 @@ const ll = /* @__PURE__ */ V(ci, [["render", mi]]), ul = {
|
|
|
2140
2155
|
ref: i
|
|
2141
2156
|
}, null, 512));
|
|
2142
2157
|
}
|
|
2143
|
-
},
|
|
2158
|
+
}, mi = E({
|
|
2144
2159
|
props: {
|
|
2145
2160
|
modelValue: "",
|
|
2146
2161
|
name: {
|
|
@@ -2221,19 +2236,19 @@ const ll = /* @__PURE__ */ V(ci, [["render", mi]]), ul = {
|
|
|
2221
2236
|
files: []
|
|
2222
2237
|
};
|
|
2223
2238
|
}
|
|
2224
|
-
}),
|
|
2239
|
+
}), hi = { class: "file-input-uploader" }, gi = ["name", "disabled", "multiple"], yi = { class: "file-input-uploader--list" }, vi = ["id"], _i = {
|
|
2225
2240
|
key: 0,
|
|
2226
2241
|
class: "file-input-uploader--progress"
|
|
2227
|
-
},
|
|
2242
|
+
}, bi = {
|
|
2228
2243
|
key: 1,
|
|
2229
2244
|
class: "file-input-uploader--list-error"
|
|
2230
|
-
},
|
|
2245
|
+
}, wi = {
|
|
2231
2246
|
class: "file-input-uploader--list-item--size",
|
|
2232
2247
|
dir: "ltr"
|
|
2233
|
-
},
|
|
2234
|
-
function
|
|
2248
|
+
}, $i = { class: "file-input-uploader--list-item--actions" }, Si = ["onClick"], Fi = ["onClick"];
|
|
2249
|
+
function Ti(t, e, n, r, s, o) {
|
|
2235
2250
|
var i, a;
|
|
2236
|
-
return m(), g("div",
|
|
2251
|
+
return m(), g("div", hi, [
|
|
2237
2252
|
b("input", {
|
|
2238
2253
|
ref: "input",
|
|
2239
2254
|
name: t.name,
|
|
@@ -2242,21 +2257,21 @@ function ki(t, e, n, r, s, o) {
|
|
|
2242
2257
|
type: "file",
|
|
2243
2258
|
multiple: t.multiple,
|
|
2244
2259
|
onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
|
|
2245
|
-
}, null, 42,
|
|
2246
|
-
b("div",
|
|
2260
|
+
}, null, 42, gi),
|
|
2261
|
+
b("div", yi, [
|
|
2247
2262
|
(m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
|
|
2248
2263
|
id: "file-" + l.id,
|
|
2249
2264
|
class: "file-input-uploader--list-item"
|
|
2250
2265
|
}, [
|
|
2251
|
-
l.percent && l.percent < 100 ? (m(), g("div",
|
|
2266
|
+
l.percent && l.percent < 100 ? (m(), g("div", _i, [
|
|
2252
2267
|
b("div", {
|
|
2253
2268
|
style: vt({ width: l.percent + "%" })
|
|
2254
2269
|
}, null, 4)
|
|
2255
2270
|
])) : j("", !0),
|
|
2256
2271
|
b("div", null, W(l.file.name), 1),
|
|
2257
|
-
l.error ? (m(), g("div",
|
|
2258
|
-
b("div",
|
|
2259
|
-
b("div",
|
|
2272
|
+
l.error ? (m(), g("div", bi, W(l.error), 1)) : j("", !0),
|
|
2273
|
+
b("div", wi, W(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
2274
|
+
b("div", $i, [
|
|
2260
2275
|
l.error ? (m(), g("button", {
|
|
2261
2276
|
key: 0,
|
|
2262
2277
|
onClick: (u) => t.uploadFile(l),
|
|
@@ -2272,7 +2287,7 @@ function ki(t, e, n, r, s, o) {
|
|
|
2272
2287
|
}, [
|
|
2273
2288
|
b("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" })
|
|
2274
2289
|
], -1)
|
|
2275
|
-
]), 8,
|
|
2290
|
+
]), 8, Si)) : j("", !0),
|
|
2276
2291
|
l.path || l.error ? (m(), g("button", {
|
|
2277
2292
|
key: 1,
|
|
2278
2293
|
onClick: (u) => t.deleteFile(l),
|
|
@@ -2288,13 +2303,13 @@ function ki(t, e, n, r, s, o) {
|
|
|
2288
2303
|
}, [
|
|
2289
2304
|
b("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" })
|
|
2290
2305
|
], -1)
|
|
2291
|
-
]), 8,
|
|
2306
|
+
]), 8, Fi)) : j("", !0)
|
|
2292
2307
|
])
|
|
2293
|
-
], 8,
|
|
2308
|
+
], 8, vi))), 256))
|
|
2294
2309
|
])
|
|
2295
2310
|
]);
|
|
2296
2311
|
}
|
|
2297
|
-
const
|
|
2312
|
+
const ul = /* @__PURE__ */ V(mi, [["render", Ti]]), ki = E({
|
|
2298
2313
|
emits: ["update:modelValue", "change"],
|
|
2299
2314
|
props: {
|
|
2300
2315
|
name: {
|
|
@@ -2341,7 +2356,7 @@ const dl = /* @__PURE__ */ V(hi, [["render", ki]]), Ii = E({
|
|
|
2341
2356
|
return s;
|
|
2342
2357
|
}
|
|
2343
2358
|
}), n = T("group", {});
|
|
2344
|
-
return { modelValue:
|
|
2359
|
+
return { modelValue: q({
|
|
2345
2360
|
get() {
|
|
2346
2361
|
var s;
|
|
2347
2362
|
return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
|
|
@@ -2381,13 +2396,13 @@ const dl = /* @__PURE__ */ V(hi, [["render", ki]]), Ii = E({
|
|
|
2381
2396
|
rangeSliderEn: null
|
|
2382
2397
|
};
|
|
2383
2398
|
}
|
|
2384
|
-
}),
|
|
2399
|
+
}), Ii = {
|
|
2385
2400
|
class: "range-input",
|
|
2386
2401
|
ref: "rangeSliderEl",
|
|
2387
2402
|
dir: "ltr"
|
|
2388
2403
|
};
|
|
2389
|
-
function
|
|
2390
|
-
return m(), g("div",
|
|
2404
|
+
function Ei(t, e, n, r, s, o) {
|
|
2405
|
+
return m(), g("div", Ii, [
|
|
2391
2406
|
te(b("input", {
|
|
2392
2407
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
|
|
2393
2408
|
type: "hidden"
|
|
@@ -2396,8 +2411,8 @@ function Ci(t, e, n, r, s, o) {
|
|
|
2396
2411
|
])
|
|
2397
2412
|
], 512);
|
|
2398
2413
|
}
|
|
2399
|
-
const
|
|
2400
|
-
var Ye, C, sn, ae, Ut, on, an, ln, wt, nt, rt, Te = {}, un = [],
|
|
2414
|
+
const dl = /* @__PURE__ */ V(ki, [["render", Ei]]);
|
|
2415
|
+
var Ye, C, sn, ae, Ut, on, an, ln, wt, nt, rt, Te = {}, un = [], Ci = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xe = Array.isArray;
|
|
2401
2416
|
function re(t, e) {
|
|
2402
2417
|
for (var n in e) t[n] = e[n];
|
|
2403
2418
|
return t;
|
|
@@ -2445,12 +2460,12 @@ function Le() {
|
|
|
2445
2460
|
}
|
|
2446
2461
|
function pn(t, e, n, r, s, o, i, a, l, u, d) {
|
|
2447
2462
|
var p, c, h, v, M, A, k, I = r && r.__k || un, Y = e.length;
|
|
2448
|
-
for (l =
|
|
2463
|
+
for (l = Vi(n, e, I, l, Y), p = 0; p < Y; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Te : I[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)), M == null && v != null && (M = v), (k = !!(4 & h.__u)) || c.__k === h.__k ? l = cn(h, l, t, k) : typeof h.type == "function" && A !== void 0 ? l = A : v && (l = v.nextSibling), h.__u &= -7);
|
|
2449
2464
|
return n.__e = M, l;
|
|
2450
2465
|
}
|
|
2451
|
-
function
|
|
2466
|
+
function Vi(t, e, n, r, s) {
|
|
2452
2467
|
var o, i, a, l, u, d = n.length, p = d, c = 0;
|
|
2453
|
-
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) : Xe(i) ? i = t.__k[o] = Oe(he, { 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 =
|
|
2468
|
+
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) : Xe(i) ? i = t.__k[o] = Oe(he, { 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 = Mi(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;
|
|
2454
2469
|
if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ge(a)), hn(a, a));
|
|
2455
2470
|
return r;
|
|
2456
2471
|
}
|
|
@@ -2466,7 +2481,7 @@ function cn(t, e, n, r) {
|
|
|
2466
2481
|
while (e != null && e.nodeType == 8);
|
|
2467
2482
|
return e;
|
|
2468
2483
|
}
|
|
2469
|
-
function
|
|
2484
|
+
function Mi(t, e, n, r) {
|
|
2470
2485
|
var s, o, i, a = t.key, l = t.type, u = e[n], d = u != null && (2 & u.__u) == 0;
|
|
2471
2486
|
if (u === null && a == null || d && a == u.key && l == u.type) return n;
|
|
2472
2487
|
if (r > (d ? 1 : 0)) {
|
|
@@ -2475,7 +2490,7 @@ function Ui(t, e, n, r) {
|
|
|
2475
2490
|
return -1;
|
|
2476
2491
|
}
|
|
2477
2492
|
function Dt(t, e, n) {
|
|
2478
|
-
e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" ||
|
|
2493
|
+
e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Ci.test(e) ? n : n + "px";
|
|
2479
2494
|
}
|
|
2480
2495
|
function De(t, e, n, r, s) {
|
|
2481
2496
|
var o, i;
|
|
@@ -2510,7 +2525,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2510
2525
|
if (e.constructor !== void 0) return null;
|
|
2511
2526
|
128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
|
|
2512
2527
|
e: if (typeof D == "function") try {
|
|
2513
|
-
if (k = e.props, I = "prototype" in D && D.prototype.render, Y = (d = D.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (I ? e.__c = p = new D(k, f) : (e.__c = p = new Re(k, f), p.constructor = D, p.render =
|
|
2528
|
+
if (k = e.props, I = "prototype" in D && D.prototype.render, Y = (d = D.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (I ? e.__c = p = new D(k, f) : (e.__c = p = new Re(k, f), p.constructor = D, p.render = Ai), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), I && p.__s == null && (p.__s = p.state), I && D.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = re({}, p.__s)), re(p.__s, D.getDerivedStateFromProps(k, p.__s))), h = p.props, v = p.state, p.__v = e, c) I && D.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), I && p.componentDidMount != null && p.__h.push(p.componentDidMount);
|
|
2514
2529
|
else {
|
|
2515
2530
|
if (I && D.getDerivedStateFromProps == null && k !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(k, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(k, p.__s, f) === !1) {
|
|
2516
2531
|
for (e.__v != n.__v && (p.props = k, p.state = p.__s, p.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(X) {
|
|
@@ -2541,7 +2556,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2541
2556
|
else e.__e = n.__e, e.__k = n.__k, X.then || st(e);
|
|
2542
2557
|
C.__e(X, e, n);
|
|
2543
2558
|
}
|
|
2544
|
-
else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e =
|
|
2559
|
+
else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e = Ui(n.__e, e, n, r, s, o, i, l, u);
|
|
2545
2560
|
return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
|
|
2546
2561
|
}
|
|
2547
2562
|
function st(t) {
|
|
@@ -2562,7 +2577,7 @@ function fn(t, e, n) {
|
|
|
2562
2577
|
function mn(t) {
|
|
2563
2578
|
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Xe(t) ? t.map(mn) : re({}, t);
|
|
2564
2579
|
}
|
|
2565
|
-
function
|
|
2580
|
+
function Ui(t, e, n, r, s, o, i, a, l) {
|
|
2566
2581
|
var u, d, p, c, h, v, M, A = n.props || Te, k = e.props, I = e.type;
|
|
2567
2582
|
if (I == "svg" ? s = "http://www.w3.org/2000/svg" : I == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s || (s = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
2568
2583
|
for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!I && (I ? h.localName == I : h.nodeType == 3)) {
|
|
@@ -2614,7 +2629,7 @@ function hn(t, e, n) {
|
|
|
2614
2629
|
if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && hn(r[s], e, n || typeof t.type != "function");
|
|
2615
2630
|
n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
|
|
2616
2631
|
}
|
|
2617
|
-
function
|
|
2632
|
+
function Ai(t, e, n) {
|
|
2618
2633
|
return this.constructor(t, n);
|
|
2619
2634
|
}
|
|
2620
2635
|
function gn(t, e, n) {
|
|
@@ -2636,12 +2651,12 @@ Ye = un.slice, C = { __e: function(t, e, n, r) {
|
|
|
2636
2651
|
}, Re.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
|
|
2637
2652
|
return t.__v.__b - e.__v.__b;
|
|
2638
2653
|
}, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, nt = Nt(!1), rt = Nt(!0);
|
|
2639
|
-
var
|
|
2654
|
+
var Di = 0;
|
|
2640
2655
|
function S(t, e, n, r, s, o) {
|
|
2641
2656
|
e || (e = {});
|
|
2642
2657
|
var i, a, l = e;
|
|
2643
2658
|
if ("ref" in l) for (a in l = {}, e) a == "ref" ? i = e[a] : l[a] = e[a];
|
|
2644
|
-
var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
2659
|
+
var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Di, __i: -1, __u: 0, __source: s, __self: o };
|
|
2645
2660
|
if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
|
|
2646
2661
|
return C.vnode && C.vnode(u), u;
|
|
2647
2662
|
}
|
|
@@ -2664,10 +2679,10 @@ function kt(t, e) {
|
|
|
2664
2679
|
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
2665
2680
|
return t >= n.__.length && n.__.push({}), n.__[t];
|
|
2666
2681
|
}
|
|
2667
|
-
function
|
|
2668
|
-
return it = 1,
|
|
2682
|
+
function Ni(t) {
|
|
2683
|
+
return it = 1, Pi(Sn, t);
|
|
2669
2684
|
}
|
|
2670
|
-
function
|
|
2685
|
+
function Pi(t, e, n) {
|
|
2671
2686
|
var r = kt(ke++, 2);
|
|
2672
2687
|
if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
|
|
2673
2688
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
|
|
@@ -2709,7 +2724,7 @@ function wn(t, e) {
|
|
|
2709
2724
|
var n = kt(ke++, 7);
|
|
2710
2725
|
return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
|
|
2711
2726
|
}
|
|
2712
|
-
function
|
|
2727
|
+
function zi() {
|
|
2713
2728
|
for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
|
|
2714
2729
|
t.__H.__h.forEach(Be), t.__H.__h.forEach(ot), t.__H.__h = [];
|
|
2715
2730
|
} catch (e) {
|
|
@@ -2729,7 +2744,7 @@ z.__b = function(t) {
|
|
|
2729
2744
|
}, z.diffed = function(t) {
|
|
2730
2745
|
Rt && Rt(t);
|
|
2731
2746
|
var e = t.__c;
|
|
2732
|
-
e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Pt === z.requestAnimationFrame || ((Pt = z.requestAnimationFrame) ||
|
|
2747
|
+
e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Pt === z.requestAnimationFrame || ((Pt = z.requestAnimationFrame) || Oi)(zi)), e.__H.__.forEach(function(n) {
|
|
2733
2748
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
2734
2749
|
})), Qe = N = null;
|
|
2735
2750
|
}, z.__c = function(t, e) {
|
|
@@ -2755,12 +2770,12 @@ z.__b = function(t) {
|
|
|
2755
2770
|
}
|
|
2756
2771
|
}), n.__H = void 0, e && z.__e(e, n.__v));
|
|
2757
2772
|
};
|
|
2758
|
-
var
|
|
2759
|
-
function
|
|
2773
|
+
var qt = typeof requestAnimationFrame == "function";
|
|
2774
|
+
function Oi(t) {
|
|
2760
2775
|
var e, n = function() {
|
|
2761
|
-
clearTimeout(r),
|
|
2776
|
+
clearTimeout(r), qt && cancelAnimationFrame(e), setTimeout(t);
|
|
2762
2777
|
}, r = setTimeout(n, 35);
|
|
2763
|
-
|
|
2778
|
+
qt && (e = requestAnimationFrame(n));
|
|
2764
2779
|
}
|
|
2765
2780
|
function Be(t) {
|
|
2766
2781
|
var e = N, n = t.__c;
|
|
@@ -2778,7 +2793,7 @@ function $n(t, e) {
|
|
|
2778
2793
|
function Sn(t, e) {
|
|
2779
2794
|
return typeof e == "function" ? e(t) : e;
|
|
2780
2795
|
}
|
|
2781
|
-
function
|
|
2796
|
+
function Ri(t, e = {}) {
|
|
2782
2797
|
const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
|
|
2783
2798
|
var c, h;
|
|
2784
2799
|
d.preventDefault(), d.stopPropagation();
|
|
@@ -2836,11 +2851,11 @@ function Bi(t, e = {}) {
|
|
|
2836
2851
|
}
|
|
2837
2852
|
};
|
|
2838
2853
|
}
|
|
2839
|
-
function
|
|
2854
|
+
function Bi(t) {
|
|
2840
2855
|
const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
|
|
2841
2856
|
if (!o.uppy)
|
|
2842
2857
|
throw new Error("Dropzone must be used within a UppyContextProvider");
|
|
2843
|
-
const { getRootProps: i, getInputProps: a } = wn(() =>
|
|
2858
|
+
const { getRootProps: i, getInputProps: a } = wn(() => Ri(o, { noClick: s }), [o, s]);
|
|
2844
2859
|
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", {
|
|
2845
2860
|
...i(),
|
|
2846
2861
|
// biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
|
|
@@ -2855,7 +2870,7 @@ function ji(t) {
|
|
|
2855
2870
|
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]
|
|
2856
2871
|
})] });
|
|
2857
2872
|
}
|
|
2858
|
-
const
|
|
2873
|
+
const ji = [
|
|
2859
2874
|
"B",
|
|
2860
2875
|
"kB",
|
|
2861
2876
|
"MB",
|
|
@@ -2865,7 +2880,7 @@ const Li = [
|
|
|
2865
2880
|
"EB",
|
|
2866
2881
|
"ZB",
|
|
2867
2882
|
"YB"
|
|
2868
|
-
],
|
|
2883
|
+
], Li = [
|
|
2869
2884
|
"B",
|
|
2870
2885
|
"KiB",
|
|
2871
2886
|
"MiB",
|
|
@@ -2885,7 +2900,7 @@ const Li = [
|
|
|
2885
2900
|
"Ebit",
|
|
2886
2901
|
"Zbit",
|
|
2887
2902
|
"Ybit"
|
|
2888
|
-
],
|
|
2903
|
+
], xi = [
|
|
2889
2904
|
"b",
|
|
2890
2905
|
"kibit",
|
|
2891
2906
|
"Mibit",
|
|
@@ -2895,11 +2910,11 @@ const Li = [
|
|
|
2895
2910
|
"Eibit",
|
|
2896
2911
|
"Zibit",
|
|
2897
2912
|
"Yibit"
|
|
2898
|
-
],
|
|
2913
|
+
], xt = (t, e, n) => {
|
|
2899
2914
|
let r = t;
|
|
2900
2915
|
return typeof e == "string" || Array.isArray(e) ? r = t.toLocaleString(e, n) : (e === !0 || n !== void 0) && (r = t.toLocaleString(void 0, n)), r;
|
|
2901
2916
|
};
|
|
2902
|
-
function
|
|
2917
|
+
function Hi(t, e) {
|
|
2903
2918
|
if (!Number.isFinite(t))
|
|
2904
2919
|
throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);
|
|
2905
2920
|
e = {
|
|
@@ -2908,23 +2923,23 @@ function Gi(t, e) {
|
|
|
2908
2923
|
space: !0,
|
|
2909
2924
|
...e
|
|
2910
2925
|
};
|
|
2911
|
-
const n = e.bits ? e.binary ?
|
|
2926
|
+
const n = e.bits ? e.binary ? xi : qi : e.binary ? Li : ji, r = e.space ? " " : "";
|
|
2912
2927
|
if (e.signed && t === 0)
|
|
2913
2928
|
return ` 0${r}${n[0]}`;
|
|
2914
2929
|
const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
|
|
2915
2930
|
s && (t = -t);
|
|
2916
2931
|
let i;
|
|
2917
2932
|
if (e.minimumFractionDigits !== void 0 && (i = { minimumFractionDigits: e.minimumFractionDigits }), e.maximumFractionDigits !== void 0 && (i = { maximumFractionDigits: e.maximumFractionDigits, ...i }), t < 1) {
|
|
2918
|
-
const d =
|
|
2933
|
+
const d = xt(t, e.locale, i);
|
|
2919
2934
|
return o + d + r + n[0];
|
|
2920
2935
|
}
|
|
2921
2936
|
const a = Math.min(Math.floor(e.binary ? Math.log(t) / Math.log(1024) : Math.log10(t) / 3), n.length - 1);
|
|
2922
2937
|
t /= (e.binary ? 1024 : 1e3) ** a, i || (t = t.toPrecision(3));
|
|
2923
|
-
const l =
|
|
2938
|
+
const l = xt(Number(t), e.locale, i), u = n[a];
|
|
2924
2939
|
return o + l + r + u;
|
|
2925
2940
|
}
|
|
2926
|
-
function
|
|
2927
|
-
const [e, n] =
|
|
2941
|
+
function Gi(t) {
|
|
2942
|
+
const [e, n] = Ni(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
|
|
2928
2943
|
return bn(() => {
|
|
2929
2944
|
var a;
|
|
2930
2945
|
const i = (l, u, d) => {
|
|
@@ -2936,7 +2951,7 @@ function Wi(t) {
|
|
|
2936
2951
|
};
|
|
2937
2952
|
}, [r.uppy]), S("ul", { "data-uppy-element": "files-list", className: "uppy-reset uppy:my-4", children: e == null ? void 0 : e.map((i) => {
|
|
2938
2953
|
var a, l, u;
|
|
2939
|
-
return S("li", { children: S(he, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(
|
|
2954
|
+
return S("li", { children: S(he, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(Wi, { 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: Hi(i.size || 0) }), S(he, { 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: () => {
|
|
2940
2955
|
s(i);
|
|
2941
2956
|
}, 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: () => {
|
|
2942
2957
|
var d;
|
|
@@ -2948,7 +2963,7 @@ function Wi(t) {
|
|
|
2948
2963
|
}), value: ((u = i.progress) == null ? void 0 : u.percentage) || 0 })] }) }, i.id);
|
|
2949
2964
|
}) });
|
|
2950
2965
|
}
|
|
2951
|
-
function
|
|
2966
|
+
function Wi(t) {
|
|
2952
2967
|
var d, p;
|
|
2953
2968
|
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" && [
|
|
2954
2969
|
"zip",
|
|
@@ -2975,7 +2990,7 @@ function Yi(t) {
|
|
|
2975
2990
|
aspectRatio: "1"
|
|
2976
2991
|
}, 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] }) })] });
|
|
2977
2992
|
}
|
|
2978
|
-
function
|
|
2993
|
+
function Yi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
2979
2994
|
const r = () => {
|
|
2980
2995
|
e("ready");
|
|
2981
2996
|
}, s = () => {
|
|
@@ -3002,7 +3017,7 @@ function Xi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
|
3002
3017
|
}
|
|
3003
3018
|
};
|
|
3004
3019
|
}
|
|
3005
|
-
const Fn = Symbol("uppy"),
|
|
3020
|
+
const Fn = Symbol("uppy"), Xi = E({
|
|
3006
3021
|
name: "UppyContextProvider",
|
|
3007
3022
|
props: {
|
|
3008
3023
|
uppy: {
|
|
@@ -3021,7 +3036,7 @@ const Fn = Symbol("uppy"), Zi = E({
|
|
|
3021
3036
|
return ye(() => {
|
|
3022
3037
|
if (!t.uppy)
|
|
3023
3038
|
throw new Error("UppyContextProvider: passing `uppy` as a prop is required");
|
|
3024
|
-
o =
|
|
3039
|
+
o = Yi({
|
|
3025
3040
|
uppy: t.uppy,
|
|
3026
3041
|
onStatusChange: (i) => {
|
|
3027
3042
|
n.value = i, s.status = i;
|
|
@@ -3046,13 +3061,13 @@ function Tn() {
|
|
|
3046
3061
|
progress: 0
|
|
3047
3062
|
};
|
|
3048
3063
|
}
|
|
3049
|
-
const
|
|
3064
|
+
const Zi = E({
|
|
3050
3065
|
name: "Dropzone",
|
|
3051
3066
|
props: ["width", "height", "note", "noClick"],
|
|
3052
3067
|
setup(t) {
|
|
3053
3068
|
const e = G(null), n = Tn();
|
|
3054
3069
|
function r() {
|
|
3055
|
-
e.value && gn(St(
|
|
3070
|
+
e.value && gn(St(Bi, {
|
|
3056
3071
|
...t,
|
|
3057
3072
|
ctx: n
|
|
3058
3073
|
}), e.value);
|
|
@@ -3065,13 +3080,13 @@ const Ki = E({
|
|
|
3065
3080
|
r();
|
|
3066
3081
|
}, { deep: !0 }), () => rn("div", { ref: e });
|
|
3067
3082
|
}
|
|
3068
|
-
}),
|
|
3083
|
+
}), Ki = E({
|
|
3069
3084
|
name: "FilesList",
|
|
3070
3085
|
props: ["editFile", "imageThumbnail"],
|
|
3071
3086
|
setup(t) {
|
|
3072
3087
|
const e = G(null), n = Tn();
|
|
3073
3088
|
function r() {
|
|
3074
|
-
e.value && gn(St(
|
|
3089
|
+
e.value && gn(St(Gi, {
|
|
3075
3090
|
...t,
|
|
3076
3091
|
ctx: n
|
|
3077
3092
|
}), e.value);
|
|
@@ -3157,19 +3172,19 @@ function In(t) {
|
|
|
3157
3172
|
const e = t.name ? (n = kn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
|
|
3158
3173
|
return e && e in Ht ? Ht[e] : "application/octet-stream";
|
|
3159
3174
|
}
|
|
3160
|
-
function
|
|
3175
|
+
function Ji(t) {
|
|
3161
3176
|
return t.charCodeAt(0).toString(32);
|
|
3162
3177
|
}
|
|
3163
3178
|
function Gt(t) {
|
|
3164
3179
|
let e = "";
|
|
3165
|
-
return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${
|
|
3180
|
+
return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${Ji(n)}`, "/")) + e;
|
|
3166
3181
|
}
|
|
3167
|
-
function
|
|
3182
|
+
function Qi(t, e) {
|
|
3168
3183
|
var r;
|
|
3169
3184
|
let n = e || "uppy";
|
|
3170
3185
|
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;
|
|
3171
3186
|
}
|
|
3172
|
-
function
|
|
3187
|
+
function eo(t) {
|
|
3173
3188
|
return !t.isRemote || !t.remote ? !1 : (/* @__PURE__ */ new Set([
|
|
3174
3189
|
"box",
|
|
3175
3190
|
"dropbox",
|
|
@@ -3178,11 +3193,11 @@ function to(t) {
|
|
|
3178
3193
|
"unsplash"
|
|
3179
3194
|
])).has(t.remote.provider);
|
|
3180
3195
|
}
|
|
3181
|
-
function
|
|
3182
|
-
if (
|
|
3196
|
+
function to(t, e) {
|
|
3197
|
+
if (eo(t))
|
|
3183
3198
|
return t.id;
|
|
3184
3199
|
const n = In(t);
|
|
3185
|
-
return
|
|
3200
|
+
return Qi({
|
|
3186
3201
|
...t,
|
|
3187
3202
|
type: n
|
|
3188
3203
|
}, e);
|
|
@@ -3194,7 +3209,7 @@ function je() {
|
|
|
3194
3209
|
const t = /* @__PURE__ */ new Date(), e = et(t.getHours()), n = et(t.getMinutes()), r = et(t.getSeconds());
|
|
3195
3210
|
return `${e}:${n}:${r}`;
|
|
3196
3211
|
}
|
|
3197
|
-
function
|
|
3212
|
+
function no(t, e, n) {
|
|
3198
3213
|
const r = [];
|
|
3199
3214
|
return t.forEach((s) => typeof s != "string" ? r.push(s) : e[Symbol.split](s).forEach((o, i, a) => {
|
|
3200
3215
|
o !== "" && r.push(o), i < a.length - 1 && r.push(n);
|
|
@@ -3218,19 +3233,19 @@ function Wt(t, e) {
|
|
|
3218
3233
|
for (const o of Object.keys(e))
|
|
3219
3234
|
if (o !== "_") {
|
|
3220
3235
|
let i = e[o];
|
|
3221
|
-
typeof i == "string" && (i = n[Symbol.replace](i, r)), s =
|
|
3236
|
+
typeof i == "string" && (i = n[Symbol.replace](i, r)), s = no(s, new RegExp(`%\\{${o}\\}`, "g"), i);
|
|
3222
3237
|
}
|
|
3223
3238
|
return s;
|
|
3224
3239
|
}
|
|
3225
|
-
const
|
|
3240
|
+
const ro = (t) => {
|
|
3226
3241
|
throw new Error(`missing string: ${t}`);
|
|
3227
3242
|
};
|
|
3228
3243
|
var Ie, Ee, at;
|
|
3229
|
-
class
|
|
3230
|
-
constructor(e, { onMissingKey: n =
|
|
3231
|
-
|
|
3244
|
+
class so {
|
|
3245
|
+
constructor(e, { onMissingKey: n = ro } = {}) {
|
|
3246
|
+
x(this, Ee);
|
|
3232
3247
|
B(this, "locale");
|
|
3233
|
-
|
|
3248
|
+
x(this, Ie);
|
|
3234
3249
|
this.locale = {
|
|
3235
3250
|
strings: {},
|
|
3236
3251
|
pluralize(r) {
|
|
@@ -3276,13 +3291,13 @@ Ie = new WeakMap(), Ee = new WeakSet(), at = function(e) {
|
|
|
3276
3291
|
pluralize: e.pluralize || n.pluralize
|
|
3277
3292
|
});
|
|
3278
3293
|
};
|
|
3279
|
-
const
|
|
3294
|
+
const io = {
|
|
3280
3295
|
debug: () => {
|
|
3281
3296
|
},
|
|
3282
3297
|
warn: () => {
|
|
3283
3298
|
},
|
|
3284
3299
|
error: (...t) => console.error(`[Uppy] [${je()}]`, ...t)
|
|
3285
|
-
},
|
|
3300
|
+
}, oo = {
|
|
3286
3301
|
debug: (...t) => console.debug(`[Uppy] [${je()}]`, ...t),
|
|
3287
3302
|
warn: (...t) => console.warn(`[Uppy] [${je()}]`, ...t),
|
|
3288
3303
|
error: (...t) => console.error(`[Uppy] [${je()}]`, ...t)
|
|
@@ -3291,7 +3306,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3291
3306
|
function Ze(t) {
|
|
3292
3307
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3293
3308
|
}
|
|
3294
|
-
var
|
|
3309
|
+
var ao = function(e) {
|
|
3295
3310
|
if (typeof e != "number" || Number.isNaN(e))
|
|
3296
3311
|
throw new TypeError(`Expected a number, got ${typeof e}`);
|
|
3297
3312
|
const n = e < 0;
|
|
@@ -3301,7 +3316,7 @@ var lo = function(e) {
|
|
|
3301
3316
|
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];
|
|
3302
3317
|
return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
|
|
3303
3318
|
};
|
|
3304
|
-
const Pe = /* @__PURE__ */ Ze(
|
|
3319
|
+
const Pe = /* @__PURE__ */ Ze(ao);
|
|
3305
3320
|
function En(t, e) {
|
|
3306
3321
|
this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
|
|
3307
3322
|
}
|
|
@@ -3325,17 +3340,17 @@ En.prototype.match = function(t) {
|
|
|
3325
3340
|
}
|
|
3326
3341
|
return e;
|
|
3327
3342
|
};
|
|
3328
|
-
var
|
|
3343
|
+
var lo = function(t, e, n) {
|
|
3329
3344
|
var r = new En(t, n || /[\/\.]/);
|
|
3330
3345
|
return typeof e < "u" ? r.match(e) : r;
|
|
3331
|
-
},
|
|
3346
|
+
}, uo = lo, po = /[\/\+\.]/, co = function(t, e) {
|
|
3332
3347
|
function n(r) {
|
|
3333
|
-
var s =
|
|
3348
|
+
var s = uo(r, t, po);
|
|
3334
3349
|
return s && s.length >= 2;
|
|
3335
3350
|
}
|
|
3336
3351
|
return e ? n(e.split(";")[0]) : n;
|
|
3337
3352
|
};
|
|
3338
|
-
const
|
|
3353
|
+
const fo = /* @__PURE__ */ Ze(co), mo = {
|
|
3339
3354
|
maxFileSize: null,
|
|
3340
3355
|
minFileSize: null,
|
|
3341
3356
|
maxTotalFileSize: null,
|
|
@@ -3353,7 +3368,7 @@ class J extends Error {
|
|
|
3353
3368
|
this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
|
|
3354
3369
|
}
|
|
3355
3370
|
}
|
|
3356
|
-
class
|
|
3371
|
+
class ho {
|
|
3357
3372
|
constructor(e, n) {
|
|
3358
3373
|
B(this, "getI18n");
|
|
3359
3374
|
B(this, "getOpts");
|
|
@@ -3383,7 +3398,7 @@ class go {
|
|
|
3383
3398
|
}
|
|
3384
3399
|
validateSingleFile(e) {
|
|
3385
3400
|
const { maxFileSize: n, minFileSize: r, allowedFileTypes: s } = this.getOpts().restrictions;
|
|
3386
|
-
if (s && !s.some((i) => i.includes("/") ? e.type ?
|
|
3401
|
+
if (s && !s.some((i) => i.includes("/") ? e.type ? fo(e.type.replace(/;.*?$/, ""), i) : !1 : i[0] === "." && e.extension ? e.extension.toLowerCase() === i.slice(1).toLowerCase() : !1)) {
|
|
3387
3402
|
const i = s.join(", ");
|
|
3388
3403
|
throw new J(this.getI18n()("youCanOnlyUploadFileTypes", {
|
|
3389
3404
|
types: i
|
|
@@ -3420,22 +3435,22 @@ class go {
|
|
|
3420
3435
|
return { missingFields: s, error: n };
|
|
3421
3436
|
}
|
|
3422
3437
|
}
|
|
3423
|
-
const
|
|
3424
|
-
version:
|
|
3438
|
+
const go = "5.0.0", yo = {
|
|
3439
|
+
version: go
|
|
3425
3440
|
};
|
|
3426
|
-
var ce,
|
|
3441
|
+
var ce, qe, Vn;
|
|
3427
3442
|
class Cn {
|
|
3428
3443
|
constructor() {
|
|
3429
|
-
|
|
3444
|
+
x(this, qe);
|
|
3430
3445
|
B(this, "state", {});
|
|
3431
|
-
|
|
3446
|
+
x(this, ce, /* @__PURE__ */ new Set());
|
|
3432
3447
|
}
|
|
3433
3448
|
getState() {
|
|
3434
3449
|
return this.state;
|
|
3435
3450
|
}
|
|
3436
3451
|
setState(e) {
|
|
3437
3452
|
const n = { ...this.state }, r = { ...this.state, ...e };
|
|
3438
|
-
this.state = r, F(this,
|
|
3453
|
+
this.state = r, F(this, qe, Vn).call(this, n, r, e);
|
|
3439
3454
|
}
|
|
3440
3455
|
subscribe(e) {
|
|
3441
3456
|
return w(this, ce).add(e), () => {
|
|
@@ -3443,59 +3458,59 @@ class Cn {
|
|
|
3443
3458
|
};
|
|
3444
3459
|
}
|
|
3445
3460
|
}
|
|
3446
|
-
ce = new WeakMap(),
|
|
3461
|
+
ce = new WeakMap(), qe = new WeakSet(), Vn = function(...e) {
|
|
3447
3462
|
w(this, ce).forEach((n) => {
|
|
3448
3463
|
n(...e);
|
|
3449
3464
|
});
|
|
3450
|
-
}, B(Cn, "VERSION",
|
|
3451
|
-
function
|
|
3465
|
+
}, B(Cn, "VERSION", yo.version);
|
|
3466
|
+
function vo(t) {
|
|
3452
3467
|
var e = typeof t;
|
|
3453
3468
|
return t != null && (e == "object" || e == "function");
|
|
3454
3469
|
}
|
|
3455
|
-
var It =
|
|
3456
|
-
return
|
|
3457
|
-
},
|
|
3458
|
-
function
|
|
3459
|
-
for (var e = t.length; e-- &&
|
|
3470
|
+
var It = vo, _o = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, bo = _o, wo = bo, $o = typeof self == "object" && self && self.Object === Object && self, So = wo || $o || Function("return this")(), Mn = So, Fo = Mn, To = function() {
|
|
3471
|
+
return Fo.Date.now();
|
|
3472
|
+
}, ko = To, Io = /\s/;
|
|
3473
|
+
function Eo(t) {
|
|
3474
|
+
for (var e = t.length; e-- && Io.test(t.charAt(e)); )
|
|
3460
3475
|
;
|
|
3461
3476
|
return e;
|
|
3462
3477
|
}
|
|
3463
|
-
var
|
|
3464
|
-
function
|
|
3465
|
-
return t && t.slice(0,
|
|
3478
|
+
var Co = Eo, Vo = Co, Mo = /^\s+/;
|
|
3479
|
+
function Uo(t) {
|
|
3480
|
+
return t && t.slice(0, Vo(t) + 1).replace(Mo, "");
|
|
3466
3481
|
}
|
|
3467
|
-
var
|
|
3468
|
-
function
|
|
3469
|
-
var e =
|
|
3482
|
+
var Ao = Uo, Do = Mn, No = Do.Symbol, Un = No, Yt = Un, An = Object.prototype, Po = An.hasOwnProperty, zo = An.toString, we = Yt ? Yt.toStringTag : void 0;
|
|
3483
|
+
function Oo(t) {
|
|
3484
|
+
var e = Po.call(t, we), n = t[we];
|
|
3470
3485
|
try {
|
|
3471
3486
|
t[we] = void 0;
|
|
3472
3487
|
var r = !0;
|
|
3473
3488
|
} catch {
|
|
3474
3489
|
}
|
|
3475
|
-
var s =
|
|
3490
|
+
var s = zo.call(t);
|
|
3476
3491
|
return r && (e ? t[we] = n : delete t[we]), s;
|
|
3477
3492
|
}
|
|
3478
|
-
var
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3493
|
+
var Ro = Oo, Bo = Object.prototype, jo = Bo.toString;
|
|
3494
|
+
function Lo(t) {
|
|
3495
|
+
return jo.call(t);
|
|
3481
3496
|
}
|
|
3482
|
-
var qo =
|
|
3483
|
-
function
|
|
3484
|
-
return t == null ? t === void 0 ?
|
|
3497
|
+
var qo = Lo, Xt = Un, xo = Ro, Ho = qo, Go = "[object Null]", Wo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
|
|
3498
|
+
function Yo(t) {
|
|
3499
|
+
return t == null ? t === void 0 ? Wo : Go : Zt && Zt in Object(t) ? xo(t) : Ho(t);
|
|
3485
3500
|
}
|
|
3486
|
-
var
|
|
3487
|
-
function
|
|
3501
|
+
var Xo = Yo;
|
|
3502
|
+
function Zo(t) {
|
|
3488
3503
|
return t != null && typeof t == "object";
|
|
3489
3504
|
}
|
|
3490
|
-
var
|
|
3491
|
-
function
|
|
3492
|
-
return typeof t == "symbol" ||
|
|
3505
|
+
var Ko = Zo, Jo = Xo, Qo = Ko, ea = "[object Symbol]";
|
|
3506
|
+
function ta(t) {
|
|
3507
|
+
return typeof t == "symbol" || Qo(t) && Jo(t) == ea;
|
|
3493
3508
|
}
|
|
3494
|
-
var
|
|
3495
|
-
function
|
|
3509
|
+
var na = ta, ra = Ao, Kt = It, sa = na, Jt = NaN, ia = /^[-+]0x[0-9a-f]+$/i, oa = /^0b[01]+$/i, aa = /^0o[0-7]+$/i, la = parseInt;
|
|
3510
|
+
function ua(t) {
|
|
3496
3511
|
if (typeof t == "number")
|
|
3497
3512
|
return t;
|
|
3498
|
-
if (
|
|
3513
|
+
if (sa(t))
|
|
3499
3514
|
return Jt;
|
|
3500
3515
|
if (Kt(t)) {
|
|
3501
3516
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -3503,16 +3518,16 @@ function da(t) {
|
|
|
3503
3518
|
}
|
|
3504
3519
|
if (typeof t != "string")
|
|
3505
3520
|
return t === 0 ? t : +t;
|
|
3506
|
-
t =
|
|
3507
|
-
var n =
|
|
3508
|
-
return n ||
|
|
3521
|
+
t = ra(t);
|
|
3522
|
+
var n = oa.test(t);
|
|
3523
|
+
return n || aa.test(t) ? la(t.slice(2), n ? 2 : 8) : ia.test(t) ? Jt : +t;
|
|
3509
3524
|
}
|
|
3510
|
-
var
|
|
3511
|
-
function
|
|
3525
|
+
var da = ua, pa = It, tt = ko, Qt = da, ca = "Expected a function", fa = Math.max, ma = Math.min;
|
|
3526
|
+
function ha(t, e, n) {
|
|
3512
3527
|
var r, s, o, i, a, l, u = 0, d = !1, p = !1, c = !0;
|
|
3513
3528
|
if (typeof t != "function")
|
|
3514
|
-
throw new TypeError(
|
|
3515
|
-
e = Qt(e) || 0,
|
|
3529
|
+
throw new TypeError(ca);
|
|
3530
|
+
e = Qt(e) || 0, pa(n) && (d = !!n.leading, p = "maxWait" in n, o = p ? fa(Qt(n.maxWait) || 0, e) : o, c = "trailing" in n ? !!n.trailing : c);
|
|
3516
3531
|
function h($) {
|
|
3517
3532
|
var U = r, P = s;
|
|
3518
3533
|
return r = s = void 0, u = $, i = t.apply(P, U), i;
|
|
@@ -3522,7 +3537,7 @@ function ga(t, e, n) {
|
|
|
3522
3537
|
}
|
|
3523
3538
|
function M($) {
|
|
3524
3539
|
var U = $ - l, P = $ - u, H = e - U;
|
|
3525
|
-
return p ?
|
|
3540
|
+
return p ? ma(H, o - P) : H;
|
|
3526
3541
|
}
|
|
3527
3542
|
function A($) {
|
|
3528
3543
|
var U = $ - l, P = $ - u;
|
|
@@ -3555,20 +3570,20 @@ function ga(t, e, n) {
|
|
|
3555
3570
|
}
|
|
3556
3571
|
return _.cancel = Y, _.flush = f, _;
|
|
3557
3572
|
}
|
|
3558
|
-
var
|
|
3559
|
-
function
|
|
3573
|
+
var ga = ha, ya = ga, va = It, _a = "Expected a function";
|
|
3574
|
+
function ba(t, e, n) {
|
|
3560
3575
|
var r = !0, s = !0;
|
|
3561
3576
|
if (typeof t != "function")
|
|
3562
|
-
throw new TypeError(
|
|
3563
|
-
return
|
|
3577
|
+
throw new TypeError(_a);
|
|
3578
|
+
return va(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), ya(t, e, {
|
|
3564
3579
|
leading: r,
|
|
3565
3580
|
maxWait: e,
|
|
3566
3581
|
trailing: s
|
|
3567
3582
|
});
|
|
3568
3583
|
}
|
|
3569
|
-
var
|
|
3570
|
-
const
|
|
3571
|
-
var
|
|
3584
|
+
var wa = ba;
|
|
3585
|
+
const $a = /* @__PURE__ */ Ze(wa);
|
|
3586
|
+
var Sa = function() {
|
|
3572
3587
|
var e = {}, n = e._fns = {};
|
|
3573
3588
|
e.emit = function(i, a, l, u, d, p, c) {
|
|
3574
3589
|
var h = r(i);
|
|
@@ -3607,20 +3622,20 @@ var Fa = function() {
|
|
|
3607
3622
|
}
|
|
3608
3623
|
return e;
|
|
3609
3624
|
};
|
|
3610
|
-
const
|
|
3611
|
-
let
|
|
3625
|
+
const Fa = /* @__PURE__ */ Ze(Sa);
|
|
3626
|
+
let Ta = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ka = (t = 21) => {
|
|
3612
3627
|
let e = "", n = t | 0;
|
|
3613
3628
|
for (; n--; )
|
|
3614
|
-
e +=
|
|
3629
|
+
e += Ta[Math.random() * 64 | 0];
|
|
3615
3630
|
return e;
|
|
3616
3631
|
};
|
|
3617
|
-
const
|
|
3618
|
-
version:
|
|
3632
|
+
const Ia = "5.2.0", Ea = {
|
|
3633
|
+
version: Ia
|
|
3619
3634
|
};
|
|
3620
|
-
function
|
|
3635
|
+
function Ca(t, e) {
|
|
3621
3636
|
return e.name ? e.name : t.split("/")[0] === "image" ? `${t.split("/")[0]}.${t.split("/")[1]}` : "noname";
|
|
3622
3637
|
}
|
|
3623
|
-
const
|
|
3638
|
+
const Va = {
|
|
3624
3639
|
strings: {
|
|
3625
3640
|
addBulkFilesFailed: {
|
|
3626
3641
|
0: "Failed to add %{smart_count} file due to an internal error",
|
|
@@ -3685,7 +3700,7 @@ const Ma = {
|
|
|
3685
3700
|
pleaseWait: "Please wait"
|
|
3686
3701
|
}
|
|
3687
3702
|
};
|
|
3688
|
-
function
|
|
3703
|
+
function Ma(t) {
|
|
3689
3704
|
if (t == null && typeof navigator < "u" && (t = navigator.userAgent), !t)
|
|
3690
3705
|
return !0;
|
|
3691
3706
|
const e = /Edge\/(\d+\.\d+)/.exec(t);
|
|
@@ -3700,20 +3715,20 @@ const ze = {
|
|
|
3700
3715
|
error: null,
|
|
3701
3716
|
recoveredState: null
|
|
3702
3717
|
};
|
|
3703
|
-
var Z, K, Ce, le, fe, me, ue, y, oe, ut, Dn, Nn, Pn, dt, pt, ct, ft,
|
|
3718
|
+
var Z, K, Ce, le, fe, me, ue, y, oe, ut, Dn, Nn, Pn, dt, pt, ct, ft, xe, mt, de, zn, On, se, Ve, $e, Rn, ht, Se;
|
|
3704
3719
|
const He = class He {
|
|
3705
3720
|
/**
|
|
3706
3721
|
* Instantiate Uppy
|
|
3707
3722
|
*/
|
|
3708
3723
|
constructor(e) {
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3724
|
+
x(this, y);
|
|
3725
|
+
x(this, Z, /* @__PURE__ */ Object.create(null));
|
|
3726
|
+
x(this, K);
|
|
3727
|
+
x(this, Ce);
|
|
3728
|
+
x(this, le, Fa());
|
|
3729
|
+
x(this, fe, /* @__PURE__ */ new Set());
|
|
3730
|
+
x(this, me, /* @__PURE__ */ new Set());
|
|
3731
|
+
x(this, ue, /* @__PURE__ */ new Set());
|
|
3717
3732
|
B(this, "defaultLocale");
|
|
3718
3733
|
B(this, "locale");
|
|
3719
3734
|
// The user optionally passes in options, but we set defaults for missing options.
|
|
@@ -3725,7 +3740,7 @@ const He = class He {
|
|
|
3725
3740
|
B(this, "i18nArray");
|
|
3726
3741
|
B(this, "scheduledAutoProceed", null);
|
|
3727
3742
|
B(this, "wasOffline", !1);
|
|
3728
|
-
|
|
3743
|
+
x(this, xe, (e, n) => {
|
|
3729
3744
|
const r = e ? this.getFile(e.id) : void 0;
|
|
3730
3745
|
if (e == null || !r) {
|
|
3731
3746
|
this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
|
|
@@ -3760,8 +3775,8 @@ const He = class He {
|
|
|
3760
3775
|
// and click 'ADD MORE FILES', - focus won't activate in Firefox.
|
|
3761
3776
|
// - We must throttle at around >500ms to avoid performance lags.
|
|
3762
3777
|
// [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
|
|
3763
|
-
|
|
3764
|
-
|
|
3778
|
+
x(this, de, $a(() => F(this, y, mt).call(this), 500, { leading: !0, trailing: !0 }));
|
|
3779
|
+
x(this, se, this.updateOnlineStatus.bind(this));
|
|
3765
3780
|
// We need to store request clients by a unique ID, so we can share RequestClient instances across files
|
|
3766
3781
|
// this allows us to do rate limiting and synchronous operations like refreshing provider tokens
|
|
3767
3782
|
// example: refreshing tokens: if each file has their own requestclient,
|
|
@@ -3772,19 +3787,19 @@ const He = class He {
|
|
|
3772
3787
|
// back when we had a requestclient per file, once an access token expired,
|
|
3773
3788
|
// all 6 files would go ahead and refresh the token at the same time
|
|
3774
3789
|
// (calling /refresh-token up to 6 times), which will probably fail for some providers
|
|
3775
|
-
|
|
3776
|
-
this.defaultLocale =
|
|
3790
|
+
x(this, Ve, /* @__PURE__ */ new Map());
|
|
3791
|
+
this.defaultLocale = Va;
|
|
3777
3792
|
const n = {
|
|
3778
3793
|
id: "uppy",
|
|
3779
3794
|
autoProceed: !1,
|
|
3780
3795
|
allowMultipleUploadBatches: !0,
|
|
3781
3796
|
debug: !1,
|
|
3782
|
-
restrictions:
|
|
3797
|
+
restrictions: mo,
|
|
3783
3798
|
meta: {},
|
|
3784
3799
|
onBeforeFileAdded: (s, o) => !Object.hasOwn(o, s.id),
|
|
3785
3800
|
onBeforeUpload: (s) => s,
|
|
3786
3801
|
store: new Cn(),
|
|
3787
|
-
logger:
|
|
3802
|
+
logger: io,
|
|
3788
3803
|
infoTimeout: 5e3
|
|
3789
3804
|
}, r = { ...n, ...e };
|
|
3790
3805
|
this.opts = {
|
|
@@ -3793,19 +3808,19 @@ const He = class He {
|
|
|
3793
3808
|
...n.restrictions,
|
|
3794
3809
|
...e == null ? void 0 : e.restrictions
|
|
3795
3810
|
}
|
|
3796
|
-
}, 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 =
|
|
3811
|
+
}, 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 = oo), this.log(`Using Core v${He.VERSION}`), this.i18nInit(), this.store = this.opts.store, this.setState({
|
|
3797
3812
|
...ze,
|
|
3798
3813
|
plugins: {},
|
|
3799
3814
|
files: {},
|
|
3800
3815
|
currentUploads: {},
|
|
3801
3816
|
capabilities: {
|
|
3802
|
-
uploadProgress:
|
|
3817
|
+
uploadProgress: Ma(),
|
|
3803
3818
|
individualCancellation: !0,
|
|
3804
3819
|
resumableUploads: !1
|
|
3805
3820
|
},
|
|
3806
3821
|
meta: { ...this.opts.meta },
|
|
3807
3822
|
info: []
|
|
3808
|
-
}), Ue(this, K, new
|
|
3823
|
+
}), Ue(this, K, new ho(() => this.opts, () => this.i18n)), Ue(this, Ce, this.store.subscribe((s, o, i) => {
|
|
3809
3824
|
this.emit("state-update", s, o, i), this.updateAll(o);
|
|
3810
3825
|
})), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), F(this, y, On).call(this);
|
|
3811
3826
|
}
|
|
@@ -3867,7 +3882,7 @@ const He = class He {
|
|
|
3867
3882
|
this.patchFilesState({ [e]: n });
|
|
3868
3883
|
}
|
|
3869
3884
|
i18nInit() {
|
|
3870
|
-
const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new
|
|
3885
|
+
const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new so([this.defaultLocale, this.opts.locale], {
|
|
3871
3886
|
onMissingKey: e
|
|
3872
3887
|
});
|
|
3873
3888
|
this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
|
|
@@ -4387,7 +4402,7 @@ Pn = function(e) {
|
|
|
4387
4402
|
isRemote: !1,
|
|
4388
4403
|
source: void 0,
|
|
4389
4404
|
preview: void 0
|
|
4390
|
-
} : e, r = In(n), s =
|
|
4405
|
+
} : e, r = In(n), s = Ca(r, n), o = kn(s).extension, i = to(n, this.getID()), a = {
|
|
4391
4406
|
...n.meta,
|
|
4392
4407
|
name: s,
|
|
4393
4408
|
type: r
|
|
@@ -4497,7 +4512,7 @@ dt = function() {
|
|
|
4497
4512
|
// create new upload even if allowNewUpload: false
|
|
4498
4513
|
});
|
|
4499
4514
|
return F(this, y, Se).call(this, r);
|
|
4500
|
-
},
|
|
4515
|
+
}, xe = new WeakMap(), mt = function() {
|
|
4501
4516
|
const e = F(this, y, zn).call(this);
|
|
4502
4517
|
let n = null;
|
|
4503
4518
|
e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
|
|
@@ -4560,7 +4575,7 @@ On = function() {
|
|
|
4560
4575
|
]));
|
|
4561
4576
|
this.patchFilesState(i);
|
|
4562
4577
|
};
|
|
4563
|
-
this.on("upload-start", r), this.on("upload-progress", w(this,
|
|
4578
|
+
this.on("upload-start", r), this.on("upload-progress", w(this, xe)), this.on("upload-success", (s, o) => {
|
|
4564
4579
|
if (s == null || !this.getFile(s.id)) {
|
|
4565
4580
|
this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
|
|
4566
4581
|
return;
|
|
@@ -4640,7 +4655,7 @@ $e = function(e, n = {}) {
|
|
|
4640
4655
|
const { forceAllowNewUpload: r = !1 } = n, { allowNewUpload: s, currentUploads: o } = this.getState();
|
|
4641
4656
|
if (!s && !r)
|
|
4642
4657
|
throw new Error("Cannot create a new upload: already uploading.");
|
|
4643
|
-
const i =
|
|
4658
|
+
const i = ka();
|
|
4644
4659
|
return this.emit("upload", i, this.getFilesByIds(e)), this.setState({
|
|
4645
4660
|
allowNewUpload: this.opts.allowMultipleUploadBatches !== !1 && this.opts.allowMultipleUploads !== !1,
|
|
4646
4661
|
currentUploads: {
|
|
@@ -4710,12 +4725,12 @@ ht = function(e) {
|
|
|
4710
4725
|
failed: [],
|
|
4711
4726
|
uploadID: e
|
|
4712
4727
|
}), o;
|
|
4713
|
-
}, B(He, "VERSION",
|
|
4728
|
+
}, B(He, "VERSION", Ea.version);
|
|
4714
4729
|
let lt = He;
|
|
4715
|
-
const
|
|
4730
|
+
const Ua = {
|
|
4716
4731
|
key: 0,
|
|
4717
4732
|
class: "uppy-input-area--caption small text-body-secondary fst-italic"
|
|
4718
|
-
},
|
|
4733
|
+
}, pl = {
|
|
4719
4734
|
__name: "UppyInput",
|
|
4720
4735
|
props: {
|
|
4721
4736
|
name: { type: String, required: !0 },
|
|
@@ -4748,7 +4763,7 @@ const Aa = {
|
|
|
4748
4763
|
],
|
|
4749
4764
|
setup(t, { emit: e }) {
|
|
4750
4765
|
var Y;
|
|
4751
|
-
const n = t, r = e, s = G(null), o = G(null), i = Yn(null), a = G(!1), l = G(!1), u = G(0), d = T("form", { value: {}, errors: {}, getID: (f) => f }), p = T("group", null), c =
|
|
4766
|
+
const n = t, r = e, s = G(null), o = G(null), i = Yn(null), a = G(!1), l = G(!1), u = G(0), d = T("form", { value: {}, errors: {}, getID: (f) => f }), p = T("group", null), c = q({
|
|
4752
4767
|
get() {
|
|
4753
4768
|
var f;
|
|
4754
4769
|
return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
|
|
@@ -4810,7 +4825,7 @@ const Aa = {
|
|
|
4810
4825
|
f === !0 && _ === !1 && h();
|
|
4811
4826
|
}), ye(() => {
|
|
4812
4827
|
var f, _, $, U, P, H, ne, D;
|
|
4813
|
-
n.useXHR && import("./index-
|
|
4828
|
+
n.useXHR && import("./index-qCegEt2e.js").then((X) => {
|
|
4814
4829
|
const pe = X.default;
|
|
4815
4830
|
i.value.use(pe, {
|
|
4816
4831
|
method: "POST",
|
|
@@ -4868,51 +4883,51 @@ const Aa = {
|
|
|
4868
4883
|
ref_key: "inputEl",
|
|
4869
4884
|
ref: o
|
|
4870
4885
|
}, [
|
|
4871
|
-
Q(Je(
|
|
4886
|
+
Q(Je(Xi), {
|
|
4872
4887
|
name: "uu" + t.name,
|
|
4873
4888
|
uppy: i.value
|
|
4874
4889
|
}, {
|
|
4875
4890
|
default: ie(() => [
|
|
4876
4891
|
O(f.$slots, "default", { uppy: i.value }, () => [
|
|
4877
|
-
Q(Je(
|
|
4878
|
-
Q(Je(
|
|
4892
|
+
Q(Je(Ki), { class: "uppy-file-lists" }),
|
|
4893
|
+
Q(Je(Zi), { class: "uppy-drop-zone" })
|
|
4879
4894
|
])
|
|
4880
4895
|
]),
|
|
4881
4896
|
_: 3
|
|
4882
4897
|
}, 8, ["name", "uppy"]),
|
|
4883
|
-
s.value ? (m(), g("div",
|
|
4898
|
+
s.value ? (m(), g("div", Ua, W(s.value), 1)) : j("", !0)
|
|
4884
4899
|
], 512)) : j("", !0);
|
|
4885
4900
|
}
|
|
4886
4901
|
};
|
|
4887
4902
|
export {
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
+
Ba as A,
|
|
4904
|
+
ja as C,
|
|
4905
|
+
Xa as E,
|
|
4906
|
+
Ya as F,
|
|
4907
|
+
ws as G,
|
|
4908
|
+
Ja as L,
|
|
4909
|
+
Qa as M,
|
|
4910
|
+
al as O,
|
|
4911
|
+
Ga as P,
|
|
4912
|
+
Bs as Q,
|
|
4913
|
+
dl as R,
|
|
4914
|
+
Ha as S,
|
|
4915
|
+
so as T,
|
|
4916
|
+
ll as _,
|
|
4917
|
+
La as a,
|
|
4903
4918
|
qa as b,
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4919
|
+
xa as c,
|
|
4920
|
+
Wa as d,
|
|
4921
|
+
ul as e,
|
|
4922
|
+
pl as f,
|
|
4923
|
+
Za as g,
|
|
4924
|
+
el as h,
|
|
4925
|
+
tl as i,
|
|
4926
|
+
sl as j,
|
|
4927
|
+
rl as k,
|
|
4928
|
+
nl as l,
|
|
4929
|
+
Ka as m,
|
|
4930
|
+
il as n,
|
|
4931
|
+
ol as o,
|
|
4917
4932
|
We as p
|
|
4918
4933
|
};
|