inertia-bootstrap-forms 2.1.15 → 2.1.16
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-lLet6E62.js → index-BA2VhUGJ.js} +1 -1
- package/dist/{index-BCa8dkmY.js → index-CmHdWNDI.js} +288 -282
- 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 +1 -1
- package/src/Select2Input.vue +1 -1
|
@@ -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,
|
|
@@ -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,
|
|
@@ -456,7 +456,7 @@ function qr(t, e, n, r, s, o) {
|
|
|
456
456
|
], 8, xr)
|
|
457
457
|
]);
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const xa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
|
|
460
460
|
props: {
|
|
461
461
|
name: {
|
|
462
462
|
type: String,
|
|
@@ -487,7 +487,7 @@ const qa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
|
|
|
487
487
|
return this.form.getID(this) + (this.value || "");
|
|
488
488
|
},
|
|
489
489
|
selectedValue() {
|
|
490
|
-
return typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null;
|
|
490
|
+
return this.modelValue && typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null;
|
|
491
491
|
}
|
|
492
492
|
},
|
|
493
493
|
setup(t) {
|
|
@@ -530,7 +530,7 @@ function Yr(t, e, n, r, s, o) {
|
|
|
530
530
|
O(t.$slots, "default")
|
|
531
531
|
], 10, Gr);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const qa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
534
534
|
props: {
|
|
535
535
|
name: {
|
|
536
536
|
type: String,
|
|
@@ -546,6 +546,10 @@ const Ha = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
546
546
|
default: null,
|
|
547
547
|
required: !1
|
|
548
548
|
},
|
|
549
|
+
disabled: {
|
|
550
|
+
type: Boolean,
|
|
551
|
+
default: !1
|
|
552
|
+
},
|
|
549
553
|
type: {
|
|
550
554
|
type: String,
|
|
551
555
|
default: "checkbox",
|
|
@@ -575,20 +579,22 @@ const Ha = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
575
579
|
}
|
|
576
580
|
}), form: e, group: n };
|
|
577
581
|
}
|
|
578
|
-
}), Zr =
|
|
579
|
-
function
|
|
582
|
+
}), Zr = ["name", "id", "disabled", "type", "value"], Kr = ["for"];
|
|
583
|
+
function Jr(t, e, n, r, s, o) {
|
|
580
584
|
var i, a;
|
|
581
|
-
return m(), g("div",
|
|
585
|
+
return m(), g("div", {
|
|
586
|
+
class: R(["form-check form-switch", { disabled: t.disabled }])
|
|
587
|
+
}, [
|
|
582
588
|
te(b("input", {
|
|
583
589
|
name: t.name,
|
|
584
590
|
id: t.inputID,
|
|
585
591
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
586
592
|
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,
|
|
593
|
+
disabled: ((a = t.form) == null ? void 0 : a.processing) || t.disabled,
|
|
588
594
|
type: t.type,
|
|
589
595
|
value: t.value,
|
|
590
596
|
onChange: e[1] || (e[1] = (l) => t.$emit("change", l))
|
|
591
|
-
}, null, 42,
|
|
597
|
+
}, null, 42, Zr), [
|
|
592
598
|
[Ge, t.modelValue]
|
|
593
599
|
]),
|
|
594
600
|
b("label", {
|
|
@@ -596,15 +602,15 @@ function Qr(t, e, n, r, s, o) {
|
|
|
596
602
|
for: t.inputID
|
|
597
603
|
}, [
|
|
598
604
|
O(t.$slots, "default")
|
|
599
|
-
], 8,
|
|
600
|
-
]);
|
|
605
|
+
], 8, Kr)
|
|
606
|
+
], 2);
|
|
601
607
|
}
|
|
602
|
-
const
|
|
608
|
+
const Ha = /* @__PURE__ */ V(Xr, [["render", Jr]]), Qr = Ln(
|
|
603
609
|
() => import("vue3-persian-datetime-picker")
|
|
604
610
|
);
|
|
605
611
|
let Ae;
|
|
606
|
-
const
|
|
607
|
-
components: { Vue3PersianDatetimePicker:
|
|
612
|
+
const es = E({
|
|
613
|
+
components: { Vue3PersianDatetimePicker: Qr },
|
|
608
614
|
emits: ["update:modelValue", "change"],
|
|
609
615
|
props: {
|
|
610
616
|
name: {
|
|
@@ -683,7 +689,7 @@ const ts = E({
|
|
|
683
689
|
return {};
|
|
684
690
|
}
|
|
685
691
|
});
|
|
686
|
-
function
|
|
692
|
+
function ts(t, e, n, r, s, o) {
|
|
687
693
|
var a;
|
|
688
694
|
const i = L("Vue3PersianDatetimePicker");
|
|
689
695
|
return t.isSsr ? j("", !0) : (m(), ee(i, en({
|
|
@@ -701,7 +707,7 @@ function ns(t, e, n, r, s, o) {
|
|
|
701
707
|
"input-class": "form-control fanum"
|
|
702
708
|
}, t.$props), null, 16, ["modelValue", "type", "disabled", "inputFormat"]));
|
|
703
709
|
}
|
|
704
|
-
const
|
|
710
|
+
const Ga = /* @__PURE__ */ V(es, [["render", ts]]), ns = E({
|
|
705
711
|
emits: ["update:modelValue", "setContent"],
|
|
706
712
|
components: { Editor: Xn },
|
|
707
713
|
props: {
|
|
@@ -749,7 +755,7 @@ const Wa = /* @__PURE__ */ V(ts, [["render", ns]]), rs = E({
|
|
|
749
755
|
}), form: i, group: a, editorRef: r, handleInit: o };
|
|
750
756
|
}
|
|
751
757
|
});
|
|
752
|
-
function
|
|
758
|
+
function rs(t, e, n, r, s, o) {
|
|
753
759
|
const i = L("Editor");
|
|
754
760
|
return m(), ee(i, {
|
|
755
761
|
ref: "editorRef",
|
|
@@ -764,7 +770,7 @@ function ss(t, e, n, r, s, o) {
|
|
|
764
770
|
}
|
|
765
771
|
}, null, 8, ["onInit", "modelValue", "init"]);
|
|
766
772
|
}
|
|
767
|
-
const
|
|
773
|
+
const Wa = /* @__PURE__ */ V(ns, [["render", rs]]), ss = E({
|
|
768
774
|
props: {
|
|
769
775
|
modelValue: "",
|
|
770
776
|
name: {
|
|
@@ -847,19 +853,19 @@ const Ya = /* @__PURE__ */ V(rs, [["render", ss]]), is = E({
|
|
|
847
853
|
files: []
|
|
848
854
|
};
|
|
849
855
|
}
|
|
850
|
-
}),
|
|
856
|
+
}), is = { class: "file-input-uploader" }, os = ["name", "id", "disabled", "multiple"], as = { class: "file-input-uploader--list" }, ls = ["id"], us = {
|
|
851
857
|
key: 0,
|
|
852
858
|
class: "file-input-uploader--progress"
|
|
853
|
-
},
|
|
859
|
+
}, ds = {
|
|
854
860
|
key: 1,
|
|
855
861
|
class: "file-input-uploader--list-error"
|
|
856
|
-
},
|
|
862
|
+
}, ps = {
|
|
857
863
|
class: "file-input-uploader--list-item--size",
|
|
858
864
|
dir: "ltr"
|
|
859
|
-
},
|
|
860
|
-
function
|
|
865
|
+
}, cs = { class: "file-input-uploader--list-item--actions" }, fs = ["onClick"], ms = ["onClick"];
|
|
866
|
+
function hs(t, e, n, r, s, o) {
|
|
861
867
|
var i, a;
|
|
862
|
-
return m(), g("div",
|
|
868
|
+
return m(), g("div", is, [
|
|
863
869
|
b("input", {
|
|
864
870
|
ref: "input",
|
|
865
871
|
name: t.name,
|
|
@@ -869,21 +875,21 @@ function gs(t, e, n, r, s, o) {
|
|
|
869
875
|
type: "file",
|
|
870
876
|
multiple: t.multiple,
|
|
871
877
|
onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
|
|
872
|
-
}, null, 42,
|
|
873
|
-
b("div",
|
|
878
|
+
}, null, 42, os),
|
|
879
|
+
b("div", as, [
|
|
874
880
|
(m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
|
|
875
881
|
id: "file-" + l.id,
|
|
876
882
|
class: "file-input-uploader--list-item"
|
|
877
883
|
}, [
|
|
878
|
-
l.percent && l.percent < 100 ? (m(), g("div",
|
|
884
|
+
l.percent && l.percent < 100 ? (m(), g("div", us, [
|
|
879
885
|
b("div", {
|
|
880
886
|
style: vt({ width: l.percent + "%" })
|
|
881
887
|
}, null, 4)
|
|
882
888
|
])) : j("", !0),
|
|
883
889
|
b("div", null, W(l.file.name), 1),
|
|
884
|
-
l.error ? (m(), g("div",
|
|
885
|
-
b("div",
|
|
886
|
-
b("div",
|
|
890
|
+
l.error ? (m(), g("div", ds, W(l.error), 1)) : j("", !0),
|
|
891
|
+
b("div", ps, W(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
892
|
+
b("div", cs, [
|
|
887
893
|
l.error ? (m(), g("button", {
|
|
888
894
|
key: 0,
|
|
889
895
|
onClick: (u) => t.uploadFile(l),
|
|
@@ -899,7 +905,7 @@ function gs(t, e, n, r, s, o) {
|
|
|
899
905
|
}, [
|
|
900
906
|
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
907
|
], -1)
|
|
902
|
-
]), 8,
|
|
908
|
+
]), 8, fs)) : j("", !0),
|
|
903
909
|
l.path || l.error ? (m(), g("button", {
|
|
904
910
|
key: 1,
|
|
905
911
|
onClick: (u) => t.deleteFile(l),
|
|
@@ -915,13 +921,13 @@ function gs(t, e, n, r, s, o) {
|
|
|
915
921
|
}, [
|
|
916
922
|
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
923
|
], -1)
|
|
918
|
-
]), 8,
|
|
924
|
+
]), 8, ms)) : j("", !0)
|
|
919
925
|
])
|
|
920
|
-
], 8,
|
|
926
|
+
], 8, ls))), 256))
|
|
921
927
|
])
|
|
922
928
|
]);
|
|
923
929
|
}
|
|
924
|
-
const
|
|
930
|
+
const Ya = /* @__PURE__ */ V(ss, [["render", hs]]), gs = E({
|
|
925
931
|
components: {
|
|
926
932
|
TextInput: We
|
|
927
933
|
},
|
|
@@ -933,7 +939,7 @@ const Xa = /* @__PURE__ */ V(is, [["render", gs]]), ys = E({
|
|
|
933
939
|
}
|
|
934
940
|
}
|
|
935
941
|
});
|
|
936
|
-
function
|
|
942
|
+
function ys(t, e, n, r, s, o) {
|
|
937
943
|
const i = L("TextInput");
|
|
938
944
|
return m(), ee(i, {
|
|
939
945
|
name: t.name,
|
|
@@ -941,7 +947,7 @@ function vs(t, e, n, r, s, o) {
|
|
|
941
947
|
type: "email"
|
|
942
948
|
}, null, 8, ["name"]);
|
|
943
949
|
}
|
|
944
|
-
const
|
|
950
|
+
const Xa = /* @__PURE__ */ V(gs, [["render", ys]]), vs = E({
|
|
945
951
|
props: {
|
|
946
952
|
name: {
|
|
947
953
|
type: String,
|
|
@@ -982,8 +988,8 @@ const Za = /* @__PURE__ */ V(ys, [["render", vs]]), _s = E({
|
|
|
982
988
|
groupID: "0"
|
|
983
989
|
};
|
|
984
990
|
}
|
|
985
|
-
}),
|
|
986
|
-
function
|
|
991
|
+
}), _s = ["data-name", "data-group-id"];
|
|
992
|
+
function bs(t, e, n, r, s, o) {
|
|
987
993
|
return m(), g("div", {
|
|
988
994
|
class: "form-control-group",
|
|
989
995
|
"data-name": t.name,
|
|
@@ -991,9 +997,9 @@ function ws(t, e, n, r, s, o) {
|
|
|
991
997
|
ref: "groupEl"
|
|
992
998
|
}, [
|
|
993
999
|
O(t.$slots, "default")
|
|
994
|
-
], 8,
|
|
1000
|
+
], 8, _s);
|
|
995
1001
|
}
|
|
996
|
-
const
|
|
1002
|
+
const ws = /* @__PURE__ */ V(vs, [["render", bs]]), $s = E({
|
|
997
1003
|
components: { Alert: Sr },
|
|
998
1004
|
emits: ["submit", "reset", "onStart", "onFinish", "onSuccess", "onError", "change"],
|
|
999
1005
|
props: {
|
|
@@ -1131,8 +1137,8 @@ const $s = /* @__PURE__ */ V(_s, [["render", ws]]), Ss = E({
|
|
|
1131
1137
|
}
|
|
1132
1138
|
},
|
|
1133
1139
|
expose: ["submit", "reset"]
|
|
1134
|
-
}),
|
|
1135
|
-
function
|
|
1140
|
+
}), Ss = ["action", "method", "data-autotab", "novalidate"], Fs = { class: "list-unstyled p-0 m-0 fanum" }, Ts = ["innerHTML"];
|
|
1141
|
+
function ks(t, e, n, r, s, o) {
|
|
1136
1142
|
const i = L("Alert");
|
|
1137
1143
|
return m(), g("form", {
|
|
1138
1144
|
ref: "formEl",
|
|
@@ -1153,8 +1159,8 @@ function Is(t, e, n, r, s, o) {
|
|
|
1153
1159
|
type: "danger"
|
|
1154
1160
|
}, {
|
|
1155
1161
|
default: ie(() => [
|
|
1156
|
-
b("ul",
|
|
1157
|
-
(m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", { innerHTML: a }, null, 8,
|
|
1162
|
+
b("ul", Fs, [
|
|
1163
|
+
(m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", { innerHTML: a }, null, 8, Ts))), 256))
|
|
1158
1164
|
])
|
|
1159
1165
|
]),
|
|
1160
1166
|
_: 1
|
|
@@ -1171,9 +1177,9 @@ function Is(t, e, n, r, s, o) {
|
|
|
1171
1177
|
form: t.form,
|
|
1172
1178
|
submit: t.submit
|
|
1173
1179
|
})
|
|
1174
|
-
], 42,
|
|
1180
|
+
], 42, Ss);
|
|
1175
1181
|
}
|
|
1176
|
-
const
|
|
1182
|
+
const Za = /* @__PURE__ */ V($s, [["render", ks]]), Is = E({
|
|
1177
1183
|
props: {
|
|
1178
1184
|
default: !1,
|
|
1179
1185
|
required: !1
|
|
@@ -1189,20 +1195,20 @@ const Ka = /* @__PURE__ */ V(Ss, [["render", Is]]), Es = E({
|
|
|
1189
1195
|
forId: null
|
|
1190
1196
|
};
|
|
1191
1197
|
}
|
|
1192
|
-
}),
|
|
1198
|
+
}), Es = ["for"], Cs = {
|
|
1193
1199
|
key: 0,
|
|
1194
1200
|
class: "text-danger"
|
|
1195
1201
|
};
|
|
1196
|
-
function
|
|
1202
|
+
function Vs(t, e, n, r, s, o) {
|
|
1197
1203
|
return m(), g("label", {
|
|
1198
1204
|
class: "mb-2 d-block",
|
|
1199
1205
|
for: t.forId
|
|
1200
1206
|
}, [
|
|
1201
1207
|
O(t.$slots, "default", {}, void 0, !0),
|
|
1202
|
-
t.required ? (m(), g("span",
|
|
1203
|
-
], 8,
|
|
1208
|
+
t.required ? (m(), g("span", Cs, "*")) : j("", !0)
|
|
1209
|
+
], 8, Es);
|
|
1204
1210
|
}
|
|
1205
|
-
const
|
|
1211
|
+
const Ka = /* @__PURE__ */ V(Is, [["render", Vs], ["__scopeId", "data-v-1ee6dec3"]]), Ms = E({
|
|
1206
1212
|
name: "LocationInput",
|
|
1207
1213
|
components: {
|
|
1208
1214
|
LMap: Qn,
|
|
@@ -1259,7 +1265,7 @@ const Ja = /* @__PURE__ */ V(Es, [["render", Ms], ["__scopeId", "data-v-1ee6dec3
|
|
|
1259
1265
|
};
|
|
1260
1266
|
}
|
|
1261
1267
|
});
|
|
1262
|
-
function
|
|
1268
|
+
function Us(t, e, n, r, s, o) {
|
|
1263
1269
|
var u;
|
|
1264
1270
|
const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
|
|
1265
1271
|
return m(), g("div", {
|
|
@@ -1290,7 +1296,7 @@ function As(t, e, n, r, s, o) {
|
|
|
1290
1296
|
}, 8, ["zoom", "center", "onClick"])
|
|
1291
1297
|
], 2);
|
|
1292
1298
|
}
|
|
1293
|
-
const
|
|
1299
|
+
const Ja = /* @__PURE__ */ V(Ms, [["render", Us]]), As = E({
|
|
1294
1300
|
components: {
|
|
1295
1301
|
TextInput: We
|
|
1296
1302
|
},
|
|
@@ -1302,7 +1308,7 @@ const Qa = /* @__PURE__ */ V(Us, [["render", As]]), Ds = E({
|
|
|
1302
1308
|
}
|
|
1303
1309
|
}
|
|
1304
1310
|
});
|
|
1305
|
-
function
|
|
1311
|
+
function Ds(t, e, n, r, s, o) {
|
|
1306
1312
|
const i = L("TextInput");
|
|
1307
1313
|
return m(), ee(i, {
|
|
1308
1314
|
name: t.name,
|
|
@@ -1311,7 +1317,7 @@ function Ns(t, e, n, r, s, o) {
|
|
|
1311
1317
|
class: "form-control-mobile fanum"
|
|
1312
1318
|
}, null, 8, ["name"]);
|
|
1313
1319
|
}
|
|
1314
|
-
const
|
|
1320
|
+
const Qa = /* @__PURE__ */ V(As, [["render", Ds]]), Ns = E({
|
|
1315
1321
|
components: {
|
|
1316
1322
|
TextInput: We
|
|
1317
1323
|
},
|
|
@@ -1323,7 +1329,7 @@ const el = /* @__PURE__ */ V(Ds, [["render", Ns]]), Ps = E({
|
|
|
1323
1329
|
}
|
|
1324
1330
|
}
|
|
1325
1331
|
});
|
|
1326
|
-
function
|
|
1332
|
+
function Ps(t, e, n, r, s, o) {
|
|
1327
1333
|
const i = L("TextInput");
|
|
1328
1334
|
return m(), ee(i, {
|
|
1329
1335
|
name: t.name,
|
|
@@ -1331,7 +1337,7 @@ function zs(t, e, n, r, s, o) {
|
|
|
1331
1337
|
type: "password"
|
|
1332
1338
|
}, null, 8, ["name"]);
|
|
1333
1339
|
}
|
|
1334
|
-
const
|
|
1340
|
+
const el = /* @__PURE__ */ V(Ns, [["render", Ps]]), zs = E({
|
|
1335
1341
|
components: { InputGroup: _t, InputGroupText: bt },
|
|
1336
1342
|
props: {
|
|
1337
1343
|
name: {
|
|
@@ -1389,8 +1395,8 @@ const tl = /* @__PURE__ */ V(Ps, [["render", zs]]), Os = E({
|
|
|
1389
1395
|
data() {
|
|
1390
1396
|
return {};
|
|
1391
1397
|
}
|
|
1392
|
-
}),
|
|
1393
|
-
function
|
|
1398
|
+
}), Os = ["name", "value", "disabled", "readonly"];
|
|
1399
|
+
function Rs(t, e, n, r, s, o) {
|
|
1394
1400
|
const i = L("InputGroupText"), a = L("InputGroup"), l = qn("maska");
|
|
1395
1401
|
return m(), ee(a, { class: "input-group-quantity" }, {
|
|
1396
1402
|
default: ie(() => [
|
|
@@ -1422,7 +1428,7 @@ function Bs(t, e, n, r, s, o) {
|
|
|
1422
1428
|
disabled: t.disabled || t.form.processing,
|
|
1423
1429
|
readonly: t.readonly,
|
|
1424
1430
|
type: "tel"
|
|
1425
|
-
}, null, 42,
|
|
1431
|
+
}, null, 42, Os), [
|
|
1426
1432
|
[l]
|
|
1427
1433
|
]),
|
|
1428
1434
|
b("button", {
|
|
@@ -1455,8 +1461,8 @@ function Bs(t, e, n, r, s, o) {
|
|
|
1455
1461
|
_: 3
|
|
1456
1462
|
});
|
|
1457
1463
|
}
|
|
1458
|
-
const
|
|
1459
|
-
components: { GroupControl:
|
|
1464
|
+
const Bs = /* @__PURE__ */ V(zs, [["render", Rs]]), js = E({
|
|
1465
|
+
components: { GroupControl: ws, QuantityInput: Bs, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
|
|
1460
1466
|
props: {
|
|
1461
1467
|
name: {
|
|
1462
1468
|
type: String,
|
|
@@ -1532,13 +1538,13 @@ const js = /* @__PURE__ */ V(Os, [["render", Bs]]), Ls = E({
|
|
|
1532
1538
|
showDropdown: !1
|
|
1533
1539
|
};
|
|
1534
1540
|
}
|
|
1535
|
-
}),
|
|
1541
|
+
}), Ls = {
|
|
1536
1542
|
ref: "input",
|
|
1537
1543
|
class: "multi-quantity-input fanum"
|
|
1538
|
-
},
|
|
1539
|
-
function
|
|
1544
|
+
}, xs = { class: "row align-items-center justify-content-between g-0" }, qs = ["innerHTML"], Hs = { class: "col-auto" };
|
|
1545
|
+
function Gs(t, e, n, r, s, o) {
|
|
1540
1546
|
const i = L("QuantityInput"), a = L("GroupControl");
|
|
1541
|
-
return m(), g("div",
|
|
1547
|
+
return m(), g("div", Ls, [
|
|
1542
1548
|
b("button", {
|
|
1543
1549
|
type: "button",
|
|
1544
1550
|
class: "form-control fanum dropdown-toggle",
|
|
@@ -1549,12 +1555,12 @@ function Ws(t, e, n, r, s, o) {
|
|
|
1549
1555
|
}, [
|
|
1550
1556
|
Q(a, { name: t.name }, {
|
|
1551
1557
|
default: ie(() => [
|
|
1552
|
-
(m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div",
|
|
1558
|
+
(m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div", xs, [
|
|
1553
1559
|
b("div", {
|
|
1554
1560
|
class: "col-auto",
|
|
1555
1561
|
innerHTML: (l == null ? void 0 : l.name) || l
|
|
1556
|
-
}, null, 8,
|
|
1557
|
-
b("div",
|
|
1562
|
+
}, null, 8, qs),
|
|
1563
|
+
b("div", Hs, [
|
|
1558
1564
|
Q(i, {
|
|
1559
1565
|
name: u,
|
|
1560
1566
|
min: l.min || t.min,
|
|
@@ -1568,7 +1574,7 @@ function Ws(t, e, n, r, s, o) {
|
|
|
1568
1574
|
], 2)
|
|
1569
1575
|
], 512);
|
|
1570
1576
|
}
|
|
1571
|
-
const
|
|
1577
|
+
const tl = /* @__PURE__ */ V(js, [["render", Gs]]), Ws = E({
|
|
1572
1578
|
emits: ["update:modelValue", "search", "searching", "change", "selected"],
|
|
1573
1579
|
props: {
|
|
1574
1580
|
name: {
|
|
@@ -1644,7 +1650,7 @@ const nl = /* @__PURE__ */ V(Ls, [["render", Ws]]), Ys = E({
|
|
|
1644
1650
|
},
|
|
1645
1651
|
computed: {
|
|
1646
1652
|
selectedValue() {
|
|
1647
|
-
return this.multiple ? typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null : this.modelValue;
|
|
1653
|
+
return this.multiple ? this.modelValue && typeof this.modelValue == "object" ? Object.values(this.modelValue) : this.modelValue ? [this.modelValue] : null : this.modelValue;
|
|
1648
1654
|
}
|
|
1649
1655
|
},
|
|
1650
1656
|
watch: {
|
|
@@ -1751,8 +1757,8 @@ const nl = /* @__PURE__ */ V(Ls, [["render", Ws]]), Ys = E({
|
|
|
1751
1757
|
}
|
|
1752
1758
|
};
|
|
1753
1759
|
}
|
|
1754
|
-
}),
|
|
1755
|
-
function
|
|
1760
|
+
}), Ys = ["name", "id"], Xs = ["value", "selected"];
|
|
1761
|
+
function Zs(t, e, n, r, s, o) {
|
|
1756
1762
|
return m(), g("div", {
|
|
1757
1763
|
class: R(["select2-controller", {
|
|
1758
1764
|
"is-invalid": t.form.errors[t.name],
|
|
@@ -1772,13 +1778,13 @@ function Ks(t, e, n, r, s, o) {
|
|
|
1772
1778
|
(m(!0), g(ve, null, _e(t.options, (i, a) => (m(), g("option", {
|
|
1773
1779
|
value: t.getKeyFromItem(i),
|
|
1774
1780
|
selected: t.selected(i)
|
|
1775
|
-
}, W(t.getLabelFromItem(i)), 9,
|
|
1776
|
-
], 16,
|
|
1781
|
+
}, W(t.getLabelFromItem(i)), 9, Xs))), 256))
|
|
1782
|
+
], 16, Ys), [
|
|
1777
1783
|
[Hn, t.modelValue]
|
|
1778
1784
|
])
|
|
1779
1785
|
], 2);
|
|
1780
1786
|
}
|
|
1781
|
-
const
|
|
1787
|
+
const nl = /* @__PURE__ */ V(Ws, [["render", Zs]]), Ks = E({
|
|
1782
1788
|
emits: ["update:modelValue"],
|
|
1783
1789
|
props: {
|
|
1784
1790
|
name: {
|
|
@@ -1853,12 +1859,12 @@ const rl = /* @__PURE__ */ V(Ys, [["render", Ks]]), Js = E({
|
|
|
1853
1859
|
isRTL: !1
|
|
1854
1860
|
};
|
|
1855
1861
|
}
|
|
1856
|
-
}),
|
|
1862
|
+
}), Js = { class: "star-rating" }, Qs = {
|
|
1857
1863
|
key: 0,
|
|
1858
1864
|
class: "rating-value fanum"
|
|
1859
1865
|
};
|
|
1860
|
-
function
|
|
1861
|
-
return m(), g("div",
|
|
1866
|
+
function ei(t, e, n, r, s, o) {
|
|
1867
|
+
return m(), g("div", Js, [
|
|
1862
1868
|
b("div", {
|
|
1863
1869
|
class: "star-rating-container",
|
|
1864
1870
|
ref: "ratingContainer",
|
|
@@ -1877,10 +1883,10 @@ function ti(t, e, n, r, s, o) {
|
|
|
1877
1883
|
}, "★", 4)
|
|
1878
1884
|
]))), 128))
|
|
1879
1885
|
], 544),
|
|
1880
|
-
t.showValue && t.displayRating > 0 ? (m(), g("div",
|
|
1886
|
+
t.showValue && t.displayRating > 0 ? (m(), g("div", Qs, W(t.displayRating), 1)) : j("", !0)
|
|
1881
1887
|
]);
|
|
1882
1888
|
}
|
|
1883
|
-
const
|
|
1889
|
+
const rl = /* @__PURE__ */ V(Ks, [["render", ei]]), ti = E({
|
|
1884
1890
|
components: {
|
|
1885
1891
|
Spinner: br
|
|
1886
1892
|
},
|
|
@@ -1891,11 +1897,11 @@ const sl = /* @__PURE__ */ V(Js, [["render", ti]]), ni = E({
|
|
|
1891
1897
|
default: !1
|
|
1892
1898
|
}
|
|
1893
1899
|
}
|
|
1894
|
-
}),
|
|
1900
|
+
}), ni = ["disabled"], ri = {
|
|
1895
1901
|
key: 0,
|
|
1896
1902
|
class: "submit-upload-percent"
|
|
1897
1903
|
};
|
|
1898
|
-
function
|
|
1904
|
+
function si(t, e, n, r, s, o) {
|
|
1899
1905
|
var a, l, u, d;
|
|
1900
1906
|
const i = L("Spinner");
|
|
1901
1907
|
return m(), g("button", {
|
|
@@ -1909,12 +1915,12 @@ function ii(t, e, n, r, s, o) {
|
|
|
1909
1915
|
O(t.$slots, "progress", {}, () => {
|
|
1910
1916
|
var p, c;
|
|
1911
1917
|
return [
|
|
1912
|
-
(p = t.form) != null && p.uploading ? (m(), g("span",
|
|
1918
|
+
(p = t.form) != null && p.uploading ? (m(), g("span", ri, W((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : j("", !0)
|
|
1913
1919
|
];
|
|
1914
1920
|
})
|
|
1915
|
-
], 8,
|
|
1921
|
+
], 8, ni);
|
|
1916
1922
|
}
|
|
1917
|
-
const
|
|
1923
|
+
const sl = /* @__PURE__ */ V(ti, [["render", si]]), ii = E({
|
|
1918
1924
|
components: {
|
|
1919
1925
|
VueTelInput: er
|
|
1920
1926
|
},
|
|
@@ -1948,14 +1954,14 @@ const il = /* @__PURE__ */ V(ni, [["render", ii]]), oi = E({
|
|
|
1948
1954
|
valid: null
|
|
1949
1955
|
};
|
|
1950
1956
|
}
|
|
1951
|
-
}),
|
|
1957
|
+
}), oi = {
|
|
1952
1958
|
class: "telephone-input input-group fanum",
|
|
1953
1959
|
dir: "ltr"
|
|
1954
1960
|
};
|
|
1955
|
-
function
|
|
1961
|
+
function ai(t, e, n, r, s, o) {
|
|
1956
1962
|
var a;
|
|
1957
1963
|
const i = L("vue-tel-input");
|
|
1958
|
-
return m(), g("div",
|
|
1964
|
+
return m(), g("div", oi, [
|
|
1959
1965
|
Q(i, {
|
|
1960
1966
|
mode: "national",
|
|
1961
1967
|
validCharactersOnly: !0,
|
|
@@ -1978,7 +1984,7 @@ function li(t, e, n, r, s, o) {
|
|
|
1978
1984
|
}, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
|
|
1979
1985
|
]);
|
|
1980
1986
|
}
|
|
1981
|
-
const
|
|
1987
|
+
const il = /* @__PURE__ */ V(ii, [["render", ai]]), li = E({
|
|
1982
1988
|
props: {
|
|
1983
1989
|
name: {
|
|
1984
1990
|
type: String,
|
|
@@ -2003,19 +2009,19 @@ const ol = /* @__PURE__ */ V(oi, [["render", li]]), ui = E({
|
|
|
2003
2009
|
}
|
|
2004
2010
|
}), form: e, group: n };
|
|
2005
2011
|
}
|
|
2006
|
-
}),
|
|
2007
|
-
function
|
|
2012
|
+
}), ui = ["name", "disabled"];
|
|
2013
|
+
function di(t, e, n, r, s, o) {
|
|
2008
2014
|
var i, a;
|
|
2009
2015
|
return te((m(), g("textarea", {
|
|
2010
2016
|
name: t.name,
|
|
2011
2017
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
2012
2018
|
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2013
2019
|
disabled: (a = t.form) == null ? void 0 : a.processing
|
|
2014
|
-
}, null, 10,
|
|
2020
|
+
}, null, 10, ui)), [
|
|
2015
2021
|
[Me, t.modelValue]
|
|
2016
2022
|
]);
|
|
2017
2023
|
}
|
|
2018
|
-
const
|
|
2024
|
+
const ol = /* @__PURE__ */ V(li, [["render", di]]), pi = E({
|
|
2019
2025
|
props: {
|
|
2020
2026
|
name: {
|
|
2021
2027
|
type: String,
|
|
@@ -2056,8 +2062,8 @@ const al = /* @__PURE__ */ V(ui, [["render", pi]]), ci = E({
|
|
|
2056
2062
|
}
|
|
2057
2063
|
}), form: e, group: n };
|
|
2058
2064
|
}
|
|
2059
|
-
}),
|
|
2060
|
-
function
|
|
2065
|
+
}), ci = ["name", "id", "disabled", "placeholder", "maxlength", "data-auto-submit-length"];
|
|
2066
|
+
function fi(t, e, n, r, s, o) {
|
|
2061
2067
|
var i, a;
|
|
2062
2068
|
return te((m(), g("input", {
|
|
2063
2069
|
name: t.name,
|
|
@@ -2069,11 +2075,11 @@ function mi(t, e, n, r, s, o) {
|
|
|
2069
2075
|
maxlength: t.maxLength,
|
|
2070
2076
|
"data-auto-submit-length": t.maxLength,
|
|
2071
2077
|
type: "tel"
|
|
2072
|
-
}, null, 10,
|
|
2078
|
+
}, null, 10, ci)), [
|
|
2073
2079
|
[Me, t.modelValue]
|
|
2074
2080
|
]);
|
|
2075
2081
|
}
|
|
2076
|
-
const
|
|
2082
|
+
const al = /* @__PURE__ */ V(pi, [["render", fi]]), ll = {
|
|
2077
2083
|
__name: "DropzoneInput",
|
|
2078
2084
|
props: {
|
|
2079
2085
|
name: {
|
|
@@ -2140,7 +2146,7 @@ const ll = /* @__PURE__ */ V(ci, [["render", mi]]), ul = {
|
|
|
2140
2146
|
ref: i
|
|
2141
2147
|
}, null, 512));
|
|
2142
2148
|
}
|
|
2143
|
-
},
|
|
2149
|
+
}, mi = E({
|
|
2144
2150
|
props: {
|
|
2145
2151
|
modelValue: "",
|
|
2146
2152
|
name: {
|
|
@@ -2221,19 +2227,19 @@ const ll = /* @__PURE__ */ V(ci, [["render", mi]]), ul = {
|
|
|
2221
2227
|
files: []
|
|
2222
2228
|
};
|
|
2223
2229
|
}
|
|
2224
|
-
}),
|
|
2230
|
+
}), hi = { class: "file-input-uploader" }, gi = ["name", "disabled", "multiple"], yi = { class: "file-input-uploader--list" }, vi = ["id"], _i = {
|
|
2225
2231
|
key: 0,
|
|
2226
2232
|
class: "file-input-uploader--progress"
|
|
2227
|
-
},
|
|
2233
|
+
}, bi = {
|
|
2228
2234
|
key: 1,
|
|
2229
2235
|
class: "file-input-uploader--list-error"
|
|
2230
|
-
},
|
|
2236
|
+
}, wi = {
|
|
2231
2237
|
class: "file-input-uploader--list-item--size",
|
|
2232
2238
|
dir: "ltr"
|
|
2233
|
-
},
|
|
2234
|
-
function
|
|
2239
|
+
}, $i = { class: "file-input-uploader--list-item--actions" }, Si = ["onClick"], Fi = ["onClick"];
|
|
2240
|
+
function Ti(t, e, n, r, s, o) {
|
|
2235
2241
|
var i, a;
|
|
2236
|
-
return m(), g("div",
|
|
2242
|
+
return m(), g("div", hi, [
|
|
2237
2243
|
b("input", {
|
|
2238
2244
|
ref: "input",
|
|
2239
2245
|
name: t.name,
|
|
@@ -2242,21 +2248,21 @@ function ki(t, e, n, r, s, o) {
|
|
|
2242
2248
|
type: "file",
|
|
2243
2249
|
multiple: t.multiple,
|
|
2244
2250
|
onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
|
|
2245
|
-
}, null, 42,
|
|
2246
|
-
b("div",
|
|
2251
|
+
}, null, 42, gi),
|
|
2252
|
+
b("div", yi, [
|
|
2247
2253
|
(m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
|
|
2248
2254
|
id: "file-" + l.id,
|
|
2249
2255
|
class: "file-input-uploader--list-item"
|
|
2250
2256
|
}, [
|
|
2251
|
-
l.percent && l.percent < 100 ? (m(), g("div",
|
|
2257
|
+
l.percent && l.percent < 100 ? (m(), g("div", _i, [
|
|
2252
2258
|
b("div", {
|
|
2253
2259
|
style: vt({ width: l.percent + "%" })
|
|
2254
2260
|
}, null, 4)
|
|
2255
2261
|
])) : j("", !0),
|
|
2256
2262
|
b("div", null, W(l.file.name), 1),
|
|
2257
|
-
l.error ? (m(), g("div",
|
|
2258
|
-
b("div",
|
|
2259
|
-
b("div",
|
|
2263
|
+
l.error ? (m(), g("div", bi, W(l.error), 1)) : j("", !0),
|
|
2264
|
+
b("div", wi, W(Math.round(l.file.size / 1024)) + "Kb", 1),
|
|
2265
|
+
b("div", $i, [
|
|
2260
2266
|
l.error ? (m(), g("button", {
|
|
2261
2267
|
key: 0,
|
|
2262
2268
|
onClick: (u) => t.uploadFile(l),
|
|
@@ -2272,7 +2278,7 @@ function ki(t, e, n, r, s, o) {
|
|
|
2272
2278
|
}, [
|
|
2273
2279
|
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
2280
|
], -1)
|
|
2275
|
-
]), 8,
|
|
2281
|
+
]), 8, Si)) : j("", !0),
|
|
2276
2282
|
l.path || l.error ? (m(), g("button", {
|
|
2277
2283
|
key: 1,
|
|
2278
2284
|
onClick: (u) => t.deleteFile(l),
|
|
@@ -2288,13 +2294,13 @@ function ki(t, e, n, r, s, o) {
|
|
|
2288
2294
|
}, [
|
|
2289
2295
|
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
2296
|
], -1)
|
|
2291
|
-
]), 8,
|
|
2297
|
+
]), 8, Fi)) : j("", !0)
|
|
2292
2298
|
])
|
|
2293
|
-
], 8,
|
|
2299
|
+
], 8, vi))), 256))
|
|
2294
2300
|
])
|
|
2295
2301
|
]);
|
|
2296
2302
|
}
|
|
2297
|
-
const
|
|
2303
|
+
const ul = /* @__PURE__ */ V(mi, [["render", Ti]]), ki = E({
|
|
2298
2304
|
emits: ["update:modelValue", "change"],
|
|
2299
2305
|
props: {
|
|
2300
2306
|
name: {
|
|
@@ -2381,13 +2387,13 @@ const dl = /* @__PURE__ */ V(hi, [["render", ki]]), Ii = E({
|
|
|
2381
2387
|
rangeSliderEn: null
|
|
2382
2388
|
};
|
|
2383
2389
|
}
|
|
2384
|
-
}),
|
|
2390
|
+
}), Ii = {
|
|
2385
2391
|
class: "range-input",
|
|
2386
2392
|
ref: "rangeSliderEl",
|
|
2387
2393
|
dir: "ltr"
|
|
2388
2394
|
};
|
|
2389
|
-
function
|
|
2390
|
-
return m(), g("div",
|
|
2395
|
+
function Ei(t, e, n, r, s, o) {
|
|
2396
|
+
return m(), g("div", Ii, [
|
|
2391
2397
|
te(b("input", {
|
|
2392
2398
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
|
|
2393
2399
|
type: "hidden"
|
|
@@ -2396,8 +2402,8 @@ function Ci(t, e, n, r, s, o) {
|
|
|
2396
2402
|
])
|
|
2397
2403
|
], 512);
|
|
2398
2404
|
}
|
|
2399
|
-
const
|
|
2400
|
-
var Ye, C, sn, ae, Ut, on, an, ln, wt, nt, rt, Te = {}, un = [],
|
|
2405
|
+
const dl = /* @__PURE__ */ V(ki, [["render", Ei]]);
|
|
2406
|
+
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
2407
|
function re(t, e) {
|
|
2402
2408
|
for (var n in e) t[n] = e[n];
|
|
2403
2409
|
return t;
|
|
@@ -2445,12 +2451,12 @@ function Le() {
|
|
|
2445
2451
|
}
|
|
2446
2452
|
function pn(t, e, n, r, s, o, i, a, l, u, d) {
|
|
2447
2453
|
var p, c, h, v, M, A, k, I = r && r.__k || un, Y = e.length;
|
|
2448
|
-
for (l =
|
|
2454
|
+
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
2455
|
return n.__e = M, l;
|
|
2450
2456
|
}
|
|
2451
|
-
function
|
|
2457
|
+
function Vi(t, e, n, r, s) {
|
|
2452
2458
|
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 =
|
|
2459
|
+
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
2460
|
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
2461
|
return r;
|
|
2456
2462
|
}
|
|
@@ -2466,7 +2472,7 @@ function cn(t, e, n, r) {
|
|
|
2466
2472
|
while (e != null && e.nodeType == 8);
|
|
2467
2473
|
return e;
|
|
2468
2474
|
}
|
|
2469
|
-
function
|
|
2475
|
+
function Mi(t, e, n, r) {
|
|
2470
2476
|
var s, o, i, a = t.key, l = t.type, u = e[n], d = u != null && (2 & u.__u) == 0;
|
|
2471
2477
|
if (u === null && a == null || d && a == u.key && l == u.type) return n;
|
|
2472
2478
|
if (r > (d ? 1 : 0)) {
|
|
@@ -2475,7 +2481,7 @@ function Ui(t, e, n, r) {
|
|
|
2475
2481
|
return -1;
|
|
2476
2482
|
}
|
|
2477
2483
|
function Dt(t, e, n) {
|
|
2478
|
-
e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" ||
|
|
2484
|
+
e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Ci.test(e) ? n : n + "px";
|
|
2479
2485
|
}
|
|
2480
2486
|
function De(t, e, n, r, s) {
|
|
2481
2487
|
var o, i;
|
|
@@ -2510,7 +2516,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2510
2516
|
if (e.constructor !== void 0) return null;
|
|
2511
2517
|
128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
|
|
2512
2518
|
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 =
|
|
2519
|
+
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
2520
|
else {
|
|
2515
2521
|
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
2522
|
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 +2547,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2541
2547
|
else e.__e = n.__e, e.__k = n.__k, X.then || st(e);
|
|
2542
2548
|
C.__e(X, e, n);
|
|
2543
2549
|
}
|
|
2544
|
-
else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e =
|
|
2550
|
+
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
2551
|
return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
|
|
2546
2552
|
}
|
|
2547
2553
|
function st(t) {
|
|
@@ -2562,7 +2568,7 @@ function fn(t, e, n) {
|
|
|
2562
2568
|
function mn(t) {
|
|
2563
2569
|
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Xe(t) ? t.map(mn) : re({}, t);
|
|
2564
2570
|
}
|
|
2565
|
-
function
|
|
2571
|
+
function Ui(t, e, n, r, s, o, i, a, l) {
|
|
2566
2572
|
var u, d, p, c, h, v, M, A = n.props || Te, k = e.props, I = e.type;
|
|
2567
2573
|
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
2574
|
for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!I && (I ? h.localName == I : h.nodeType == 3)) {
|
|
@@ -2614,7 +2620,7 @@ function hn(t, e, n) {
|
|
|
2614
2620
|
if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && hn(r[s], e, n || typeof t.type != "function");
|
|
2615
2621
|
n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
|
|
2616
2622
|
}
|
|
2617
|
-
function
|
|
2623
|
+
function Ai(t, e, n) {
|
|
2618
2624
|
return this.constructor(t, n);
|
|
2619
2625
|
}
|
|
2620
2626
|
function gn(t, e, n) {
|
|
@@ -2636,12 +2642,12 @@ Ye = un.slice, C = { __e: function(t, e, n, r) {
|
|
|
2636
2642
|
}, Re.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
|
|
2637
2643
|
return t.__v.__b - e.__v.__b;
|
|
2638
2644
|
}, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, nt = Nt(!1), rt = Nt(!0);
|
|
2639
|
-
var
|
|
2645
|
+
var Di = 0;
|
|
2640
2646
|
function S(t, e, n, r, s, o) {
|
|
2641
2647
|
e || (e = {});
|
|
2642
2648
|
var i, a, l = e;
|
|
2643
2649
|
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: --
|
|
2650
|
+
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
2651
|
if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
|
|
2646
2652
|
return C.vnode && C.vnode(u), u;
|
|
2647
2653
|
}
|
|
@@ -2664,10 +2670,10 @@ function kt(t, e) {
|
|
|
2664
2670
|
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
2665
2671
|
return t >= n.__.length && n.__.push({}), n.__[t];
|
|
2666
2672
|
}
|
|
2667
|
-
function
|
|
2668
|
-
return it = 1,
|
|
2673
|
+
function Ni(t) {
|
|
2674
|
+
return it = 1, Pi(Sn, t);
|
|
2669
2675
|
}
|
|
2670
|
-
function
|
|
2676
|
+
function Pi(t, e, n) {
|
|
2671
2677
|
var r = kt(ke++, 2);
|
|
2672
2678
|
if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
|
|
2673
2679
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
|
|
@@ -2709,7 +2715,7 @@ function wn(t, e) {
|
|
|
2709
2715
|
var n = kt(ke++, 7);
|
|
2710
2716
|
return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
|
|
2711
2717
|
}
|
|
2712
|
-
function
|
|
2718
|
+
function zi() {
|
|
2713
2719
|
for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
|
|
2714
2720
|
t.__H.__h.forEach(Be), t.__H.__h.forEach(ot), t.__H.__h = [];
|
|
2715
2721
|
} catch (e) {
|
|
@@ -2729,7 +2735,7 @@ z.__b = function(t) {
|
|
|
2729
2735
|
}, z.diffed = function(t) {
|
|
2730
2736
|
Rt && Rt(t);
|
|
2731
2737
|
var e = t.__c;
|
|
2732
|
-
e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Pt === z.requestAnimationFrame || ((Pt = z.requestAnimationFrame) ||
|
|
2738
|
+
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
2739
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
2734
2740
|
})), Qe = N = null;
|
|
2735
2741
|
}, z.__c = function(t, e) {
|
|
@@ -2756,7 +2762,7 @@ z.__b = function(t) {
|
|
|
2756
2762
|
}), n.__H = void 0, e && z.__e(e, n.__v));
|
|
2757
2763
|
};
|
|
2758
2764
|
var xt = typeof requestAnimationFrame == "function";
|
|
2759
|
-
function
|
|
2765
|
+
function Oi(t) {
|
|
2760
2766
|
var e, n = function() {
|
|
2761
2767
|
clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
|
|
2762
2768
|
}, r = setTimeout(n, 35);
|
|
@@ -2778,7 +2784,7 @@ function $n(t, e) {
|
|
|
2778
2784
|
function Sn(t, e) {
|
|
2779
2785
|
return typeof e == "function" ? e(t) : e;
|
|
2780
2786
|
}
|
|
2781
|
-
function
|
|
2787
|
+
function Ri(t, e = {}) {
|
|
2782
2788
|
const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
|
|
2783
2789
|
var c, h;
|
|
2784
2790
|
d.preventDefault(), d.stopPropagation();
|
|
@@ -2836,11 +2842,11 @@ function Bi(t, e = {}) {
|
|
|
2836
2842
|
}
|
|
2837
2843
|
};
|
|
2838
2844
|
}
|
|
2839
|
-
function
|
|
2845
|
+
function Bi(t) {
|
|
2840
2846
|
const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
|
|
2841
2847
|
if (!o.uppy)
|
|
2842
2848
|
throw new Error("Dropzone must be used within a UppyContextProvider");
|
|
2843
|
-
const { getRootProps: i, getInputProps: a } = wn(() =>
|
|
2849
|
+
const { getRootProps: i, getInputProps: a } = wn(() => Ri(o, { noClick: s }), [o, s]);
|
|
2844
2850
|
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
2851
|
...i(),
|
|
2846
2852
|
// biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
|
|
@@ -2855,7 +2861,7 @@ function ji(t) {
|
|
|
2855
2861
|
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
2862
|
})] });
|
|
2857
2863
|
}
|
|
2858
|
-
const
|
|
2864
|
+
const ji = [
|
|
2859
2865
|
"B",
|
|
2860
2866
|
"kB",
|
|
2861
2867
|
"MB",
|
|
@@ -2865,7 +2871,7 @@ const Li = [
|
|
|
2865
2871
|
"EB",
|
|
2866
2872
|
"ZB",
|
|
2867
2873
|
"YB"
|
|
2868
|
-
],
|
|
2874
|
+
], Li = [
|
|
2869
2875
|
"B",
|
|
2870
2876
|
"KiB",
|
|
2871
2877
|
"MiB",
|
|
@@ -2875,7 +2881,7 @@ const Li = [
|
|
|
2875
2881
|
"EiB",
|
|
2876
2882
|
"ZiB",
|
|
2877
2883
|
"YiB"
|
|
2878
|
-
],
|
|
2884
|
+
], xi = [
|
|
2879
2885
|
"b",
|
|
2880
2886
|
"kbit",
|
|
2881
2887
|
"Mbit",
|
|
@@ -2885,7 +2891,7 @@ const Li = [
|
|
|
2885
2891
|
"Ebit",
|
|
2886
2892
|
"Zbit",
|
|
2887
2893
|
"Ybit"
|
|
2888
|
-
],
|
|
2894
|
+
], qi = [
|
|
2889
2895
|
"b",
|
|
2890
2896
|
"kibit",
|
|
2891
2897
|
"Mibit",
|
|
@@ -2899,7 +2905,7 @@ const Li = [
|
|
|
2899
2905
|
let r = t;
|
|
2900
2906
|
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
2907
|
};
|
|
2902
|
-
function
|
|
2908
|
+
function Hi(t, e) {
|
|
2903
2909
|
if (!Number.isFinite(t))
|
|
2904
2910
|
throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);
|
|
2905
2911
|
e = {
|
|
@@ -2908,7 +2914,7 @@ function Gi(t, e) {
|
|
|
2908
2914
|
space: !0,
|
|
2909
2915
|
...e
|
|
2910
2916
|
};
|
|
2911
|
-
const n = e.bits ? e.binary ?
|
|
2917
|
+
const n = e.bits ? e.binary ? qi : xi : e.binary ? Li : ji, r = e.space ? " " : "";
|
|
2912
2918
|
if (e.signed && t === 0)
|
|
2913
2919
|
return ` 0${r}${n[0]}`;
|
|
2914
2920
|
const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
|
|
@@ -2923,8 +2929,8 @@ function Gi(t, e) {
|
|
|
2923
2929
|
const l = qt(Number(t), e.locale, i), u = n[a];
|
|
2924
2930
|
return o + l + r + u;
|
|
2925
2931
|
}
|
|
2926
|
-
function
|
|
2927
|
-
const [e, n] =
|
|
2932
|
+
function Gi(t) {
|
|
2933
|
+
const [e, n] = Ni(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
|
|
2928
2934
|
return bn(() => {
|
|
2929
2935
|
var a;
|
|
2930
2936
|
const i = (l, u, d) => {
|
|
@@ -2936,7 +2942,7 @@ function Wi(t) {
|
|
|
2936
2942
|
};
|
|
2937
2943
|
}, [r.uppy]), S("ul", { "data-uppy-element": "files-list", className: "uppy-reset uppy:my-4", children: e == null ? void 0 : e.map((i) => {
|
|
2938
2944
|
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(
|
|
2945
|
+
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
2946
|
s(i);
|
|
2941
2947
|
}, 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
2948
|
var d;
|
|
@@ -2948,7 +2954,7 @@ function Wi(t) {
|
|
|
2948
2954
|
}), value: ((u = i.progress) == null ? void 0 : u.percentage) || 0 })] }) }, i.id);
|
|
2949
2955
|
}) });
|
|
2950
2956
|
}
|
|
2951
|
-
function
|
|
2957
|
+
function Wi(t) {
|
|
2952
2958
|
var d, p;
|
|
2953
2959
|
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
2960
|
"zip",
|
|
@@ -2975,7 +2981,7 @@ function Yi(t) {
|
|
|
2975
2981
|
aspectRatio: "1"
|
|
2976
2982
|
}, 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
2983
|
}
|
|
2978
|
-
function
|
|
2984
|
+
function Yi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
2979
2985
|
const r = () => {
|
|
2980
2986
|
e("ready");
|
|
2981
2987
|
}, s = () => {
|
|
@@ -3002,7 +3008,7 @@ function Xi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
|
|
|
3002
3008
|
}
|
|
3003
3009
|
};
|
|
3004
3010
|
}
|
|
3005
|
-
const Fn = Symbol("uppy"),
|
|
3011
|
+
const Fn = Symbol("uppy"), Xi = E({
|
|
3006
3012
|
name: "UppyContextProvider",
|
|
3007
3013
|
props: {
|
|
3008
3014
|
uppy: {
|
|
@@ -3021,7 +3027,7 @@ const Fn = Symbol("uppy"), Zi = E({
|
|
|
3021
3027
|
return ye(() => {
|
|
3022
3028
|
if (!t.uppy)
|
|
3023
3029
|
throw new Error("UppyContextProvider: passing `uppy` as a prop is required");
|
|
3024
|
-
o =
|
|
3030
|
+
o = Yi({
|
|
3025
3031
|
uppy: t.uppy,
|
|
3026
3032
|
onStatusChange: (i) => {
|
|
3027
3033
|
n.value = i, s.status = i;
|
|
@@ -3046,13 +3052,13 @@ function Tn() {
|
|
|
3046
3052
|
progress: 0
|
|
3047
3053
|
};
|
|
3048
3054
|
}
|
|
3049
|
-
const
|
|
3055
|
+
const Zi = E({
|
|
3050
3056
|
name: "Dropzone",
|
|
3051
3057
|
props: ["width", "height", "note", "noClick"],
|
|
3052
3058
|
setup(t) {
|
|
3053
3059
|
const e = G(null), n = Tn();
|
|
3054
3060
|
function r() {
|
|
3055
|
-
e.value && gn(St(
|
|
3061
|
+
e.value && gn(St(Bi, {
|
|
3056
3062
|
...t,
|
|
3057
3063
|
ctx: n
|
|
3058
3064
|
}), e.value);
|
|
@@ -3065,13 +3071,13 @@ const Ki = E({
|
|
|
3065
3071
|
r();
|
|
3066
3072
|
}, { deep: !0 }), () => rn("div", { ref: e });
|
|
3067
3073
|
}
|
|
3068
|
-
}),
|
|
3074
|
+
}), Ki = E({
|
|
3069
3075
|
name: "FilesList",
|
|
3070
3076
|
props: ["editFile", "imageThumbnail"],
|
|
3071
3077
|
setup(t) {
|
|
3072
3078
|
const e = G(null), n = Tn();
|
|
3073
3079
|
function r() {
|
|
3074
|
-
e.value && gn(St(
|
|
3080
|
+
e.value && gn(St(Gi, {
|
|
3075
3081
|
...t,
|
|
3076
3082
|
ctx: n
|
|
3077
3083
|
}), e.value);
|
|
@@ -3157,19 +3163,19 @@ function In(t) {
|
|
|
3157
3163
|
const e = t.name ? (n = kn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
|
|
3158
3164
|
return e && e in Ht ? Ht[e] : "application/octet-stream";
|
|
3159
3165
|
}
|
|
3160
|
-
function
|
|
3166
|
+
function Ji(t) {
|
|
3161
3167
|
return t.charCodeAt(0).toString(32);
|
|
3162
3168
|
}
|
|
3163
3169
|
function Gt(t) {
|
|
3164
3170
|
let e = "";
|
|
3165
|
-
return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${
|
|
3171
|
+
return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${Ji(n)}`, "/")) + e;
|
|
3166
3172
|
}
|
|
3167
|
-
function
|
|
3173
|
+
function Qi(t, e) {
|
|
3168
3174
|
var r;
|
|
3169
3175
|
let n = e || "uppy";
|
|
3170
3176
|
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
3177
|
}
|
|
3172
|
-
function
|
|
3178
|
+
function eo(t) {
|
|
3173
3179
|
return !t.isRemote || !t.remote ? !1 : (/* @__PURE__ */ new Set([
|
|
3174
3180
|
"box",
|
|
3175
3181
|
"dropbox",
|
|
@@ -3178,11 +3184,11 @@ function to(t) {
|
|
|
3178
3184
|
"unsplash"
|
|
3179
3185
|
])).has(t.remote.provider);
|
|
3180
3186
|
}
|
|
3181
|
-
function
|
|
3182
|
-
if (
|
|
3187
|
+
function to(t, e) {
|
|
3188
|
+
if (eo(t))
|
|
3183
3189
|
return t.id;
|
|
3184
3190
|
const n = In(t);
|
|
3185
|
-
return
|
|
3191
|
+
return Qi({
|
|
3186
3192
|
...t,
|
|
3187
3193
|
type: n
|
|
3188
3194
|
}, e);
|
|
@@ -3194,7 +3200,7 @@ function je() {
|
|
|
3194
3200
|
const t = /* @__PURE__ */ new Date(), e = et(t.getHours()), n = et(t.getMinutes()), r = et(t.getSeconds());
|
|
3195
3201
|
return `${e}:${n}:${r}`;
|
|
3196
3202
|
}
|
|
3197
|
-
function
|
|
3203
|
+
function no(t, e, n) {
|
|
3198
3204
|
const r = [];
|
|
3199
3205
|
return t.forEach((s) => typeof s != "string" ? r.push(s) : e[Symbol.split](s).forEach((o, i, a) => {
|
|
3200
3206
|
o !== "" && r.push(o), i < a.length - 1 && r.push(n);
|
|
@@ -3218,16 +3224,16 @@ function Wt(t, e) {
|
|
|
3218
3224
|
for (const o of Object.keys(e))
|
|
3219
3225
|
if (o !== "_") {
|
|
3220
3226
|
let i = e[o];
|
|
3221
|
-
typeof i == "string" && (i = n[Symbol.replace](i, r)), s =
|
|
3227
|
+
typeof i == "string" && (i = n[Symbol.replace](i, r)), s = no(s, new RegExp(`%\\{${o}\\}`, "g"), i);
|
|
3222
3228
|
}
|
|
3223
3229
|
return s;
|
|
3224
3230
|
}
|
|
3225
|
-
const
|
|
3231
|
+
const ro = (t) => {
|
|
3226
3232
|
throw new Error(`missing string: ${t}`);
|
|
3227
3233
|
};
|
|
3228
3234
|
var Ie, Ee, at;
|
|
3229
|
-
class
|
|
3230
|
-
constructor(e, { onMissingKey: n =
|
|
3235
|
+
class so {
|
|
3236
|
+
constructor(e, { onMissingKey: n = ro } = {}) {
|
|
3231
3237
|
q(this, Ee);
|
|
3232
3238
|
B(this, "locale");
|
|
3233
3239
|
q(this, Ie);
|
|
@@ -3276,13 +3282,13 @@ Ie = new WeakMap(), Ee = new WeakSet(), at = function(e) {
|
|
|
3276
3282
|
pluralize: e.pluralize || n.pluralize
|
|
3277
3283
|
});
|
|
3278
3284
|
};
|
|
3279
|
-
const
|
|
3285
|
+
const io = {
|
|
3280
3286
|
debug: () => {
|
|
3281
3287
|
},
|
|
3282
3288
|
warn: () => {
|
|
3283
3289
|
},
|
|
3284
3290
|
error: (...t) => console.error(`[Uppy] [${je()}]`, ...t)
|
|
3285
|
-
},
|
|
3291
|
+
}, oo = {
|
|
3286
3292
|
debug: (...t) => console.debug(`[Uppy] [${je()}]`, ...t),
|
|
3287
3293
|
warn: (...t) => console.warn(`[Uppy] [${je()}]`, ...t),
|
|
3288
3294
|
error: (...t) => console.error(`[Uppy] [${je()}]`, ...t)
|
|
@@ -3291,7 +3297,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3291
3297
|
function Ze(t) {
|
|
3292
3298
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3293
3299
|
}
|
|
3294
|
-
var
|
|
3300
|
+
var ao = function(e) {
|
|
3295
3301
|
if (typeof e != "number" || Number.isNaN(e))
|
|
3296
3302
|
throw new TypeError(`Expected a number, got ${typeof e}`);
|
|
3297
3303
|
const n = e < 0;
|
|
@@ -3301,7 +3307,7 @@ var lo = function(e) {
|
|
|
3301
3307
|
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
3308
|
return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
|
|
3303
3309
|
};
|
|
3304
|
-
const Pe = /* @__PURE__ */ Ze(
|
|
3310
|
+
const Pe = /* @__PURE__ */ Ze(ao);
|
|
3305
3311
|
function En(t, e) {
|
|
3306
3312
|
this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
|
|
3307
3313
|
}
|
|
@@ -3325,17 +3331,17 @@ En.prototype.match = function(t) {
|
|
|
3325
3331
|
}
|
|
3326
3332
|
return e;
|
|
3327
3333
|
};
|
|
3328
|
-
var
|
|
3334
|
+
var lo = function(t, e, n) {
|
|
3329
3335
|
var r = new En(t, n || /[\/\.]/);
|
|
3330
3336
|
return typeof e < "u" ? r.match(e) : r;
|
|
3331
|
-
},
|
|
3337
|
+
}, uo = lo, po = /[\/\+\.]/, co = function(t, e) {
|
|
3332
3338
|
function n(r) {
|
|
3333
|
-
var s =
|
|
3339
|
+
var s = uo(r, t, po);
|
|
3334
3340
|
return s && s.length >= 2;
|
|
3335
3341
|
}
|
|
3336
3342
|
return e ? n(e.split(";")[0]) : n;
|
|
3337
3343
|
};
|
|
3338
|
-
const
|
|
3344
|
+
const fo = /* @__PURE__ */ Ze(co), mo = {
|
|
3339
3345
|
maxFileSize: null,
|
|
3340
3346
|
minFileSize: null,
|
|
3341
3347
|
maxTotalFileSize: null,
|
|
@@ -3353,7 +3359,7 @@ class J extends Error {
|
|
|
3353
3359
|
this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
|
|
3354
3360
|
}
|
|
3355
3361
|
}
|
|
3356
|
-
class
|
|
3362
|
+
class ho {
|
|
3357
3363
|
constructor(e, n) {
|
|
3358
3364
|
B(this, "getI18n");
|
|
3359
3365
|
B(this, "getOpts");
|
|
@@ -3383,7 +3389,7 @@ class go {
|
|
|
3383
3389
|
}
|
|
3384
3390
|
validateSingleFile(e) {
|
|
3385
3391
|
const { maxFileSize: n, minFileSize: r, allowedFileTypes: s } = this.getOpts().restrictions;
|
|
3386
|
-
if (s && !s.some((i) => i.includes("/") ? e.type ?
|
|
3392
|
+
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
3393
|
const i = s.join(", ");
|
|
3388
3394
|
throw new J(this.getI18n()("youCanOnlyUploadFileTypes", {
|
|
3389
3395
|
types: i
|
|
@@ -3420,8 +3426,8 @@ class go {
|
|
|
3420
3426
|
return { missingFields: s, error: n };
|
|
3421
3427
|
}
|
|
3422
3428
|
}
|
|
3423
|
-
const
|
|
3424
|
-
version:
|
|
3429
|
+
const go = "5.0.0", yo = {
|
|
3430
|
+
version: go
|
|
3425
3431
|
};
|
|
3426
3432
|
var ce, xe, Vn;
|
|
3427
3433
|
class Cn {
|
|
@@ -3447,55 +3453,55 @@ ce = new WeakMap(), xe = new WeakSet(), Vn = function(...e) {
|
|
|
3447
3453
|
w(this, ce).forEach((n) => {
|
|
3448
3454
|
n(...e);
|
|
3449
3455
|
});
|
|
3450
|
-
}, B(Cn, "VERSION",
|
|
3451
|
-
function
|
|
3456
|
+
}, B(Cn, "VERSION", yo.version);
|
|
3457
|
+
function vo(t) {
|
|
3452
3458
|
var e = typeof t;
|
|
3453
3459
|
return t != null && (e == "object" || e == "function");
|
|
3454
3460
|
}
|
|
3455
|
-
var It =
|
|
3456
|
-
return
|
|
3457
|
-
},
|
|
3458
|
-
function
|
|
3459
|
-
for (var e = t.length; e-- &&
|
|
3461
|
+
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() {
|
|
3462
|
+
return Fo.Date.now();
|
|
3463
|
+
}, ko = To, Io = /\s/;
|
|
3464
|
+
function Eo(t) {
|
|
3465
|
+
for (var e = t.length; e-- && Io.test(t.charAt(e)); )
|
|
3460
3466
|
;
|
|
3461
3467
|
return e;
|
|
3462
3468
|
}
|
|
3463
|
-
var
|
|
3464
|
-
function
|
|
3465
|
-
return t && t.slice(0,
|
|
3469
|
+
var Co = Eo, Vo = Co, Mo = /^\s+/;
|
|
3470
|
+
function Uo(t) {
|
|
3471
|
+
return t && t.slice(0, Vo(t) + 1).replace(Mo, "");
|
|
3466
3472
|
}
|
|
3467
|
-
var
|
|
3468
|
-
function
|
|
3469
|
-
var e =
|
|
3473
|
+
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;
|
|
3474
|
+
function Oo(t) {
|
|
3475
|
+
var e = Po.call(t, we), n = t[we];
|
|
3470
3476
|
try {
|
|
3471
3477
|
t[we] = void 0;
|
|
3472
3478
|
var r = !0;
|
|
3473
3479
|
} catch {
|
|
3474
3480
|
}
|
|
3475
|
-
var s =
|
|
3481
|
+
var s = zo.call(t);
|
|
3476
3482
|
return r && (e ? t[we] = n : delete t[we]), s;
|
|
3477
3483
|
}
|
|
3478
|
-
var
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3484
|
+
var Ro = Oo, Bo = Object.prototype, jo = Bo.toString;
|
|
3485
|
+
function Lo(t) {
|
|
3486
|
+
return jo.call(t);
|
|
3481
3487
|
}
|
|
3482
|
-
var
|
|
3483
|
-
function
|
|
3484
|
-
return t == null ? t === void 0 ?
|
|
3488
|
+
var xo = Lo, Xt = Un, qo = Ro, Ho = xo, Go = "[object Null]", Wo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
|
|
3489
|
+
function Yo(t) {
|
|
3490
|
+
return t == null ? t === void 0 ? Wo : Go : Zt && Zt in Object(t) ? qo(t) : Ho(t);
|
|
3485
3491
|
}
|
|
3486
|
-
var
|
|
3487
|
-
function
|
|
3492
|
+
var Xo = Yo;
|
|
3493
|
+
function Zo(t) {
|
|
3488
3494
|
return t != null && typeof t == "object";
|
|
3489
3495
|
}
|
|
3490
|
-
var
|
|
3491
|
-
function
|
|
3492
|
-
return typeof t == "symbol" ||
|
|
3496
|
+
var Ko = Zo, Jo = Xo, Qo = Ko, ea = "[object Symbol]";
|
|
3497
|
+
function ta(t) {
|
|
3498
|
+
return typeof t == "symbol" || Qo(t) && Jo(t) == ea;
|
|
3493
3499
|
}
|
|
3494
|
-
var
|
|
3495
|
-
function
|
|
3500
|
+
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;
|
|
3501
|
+
function ua(t) {
|
|
3496
3502
|
if (typeof t == "number")
|
|
3497
3503
|
return t;
|
|
3498
|
-
if (
|
|
3504
|
+
if (sa(t))
|
|
3499
3505
|
return Jt;
|
|
3500
3506
|
if (Kt(t)) {
|
|
3501
3507
|
var e = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
@@ -3503,16 +3509,16 @@ function da(t) {
|
|
|
3503
3509
|
}
|
|
3504
3510
|
if (typeof t != "string")
|
|
3505
3511
|
return t === 0 ? t : +t;
|
|
3506
|
-
t =
|
|
3507
|
-
var n =
|
|
3508
|
-
return n ||
|
|
3512
|
+
t = ra(t);
|
|
3513
|
+
var n = oa.test(t);
|
|
3514
|
+
return n || aa.test(t) ? la(t.slice(2), n ? 2 : 8) : ia.test(t) ? Jt : +t;
|
|
3509
3515
|
}
|
|
3510
|
-
var
|
|
3511
|
-
function
|
|
3516
|
+
var da = ua, pa = It, tt = ko, Qt = da, ca = "Expected a function", fa = Math.max, ma = Math.min;
|
|
3517
|
+
function ha(t, e, n) {
|
|
3512
3518
|
var r, s, o, i, a, l, u = 0, d = !1, p = !1, c = !0;
|
|
3513
3519
|
if (typeof t != "function")
|
|
3514
|
-
throw new TypeError(
|
|
3515
|
-
e = Qt(e) || 0,
|
|
3520
|
+
throw new TypeError(ca);
|
|
3521
|
+
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
3522
|
function h($) {
|
|
3517
3523
|
var U = r, P = s;
|
|
3518
3524
|
return r = s = void 0, u = $, i = t.apply(P, U), i;
|
|
@@ -3522,7 +3528,7 @@ function ga(t, e, n) {
|
|
|
3522
3528
|
}
|
|
3523
3529
|
function M($) {
|
|
3524
3530
|
var U = $ - l, P = $ - u, H = e - U;
|
|
3525
|
-
return p ?
|
|
3531
|
+
return p ? ma(H, o - P) : H;
|
|
3526
3532
|
}
|
|
3527
3533
|
function A($) {
|
|
3528
3534
|
var U = $ - l, P = $ - u;
|
|
@@ -3555,20 +3561,20 @@ function ga(t, e, n) {
|
|
|
3555
3561
|
}
|
|
3556
3562
|
return _.cancel = Y, _.flush = f, _;
|
|
3557
3563
|
}
|
|
3558
|
-
var
|
|
3559
|
-
function
|
|
3564
|
+
var ga = ha, ya = ga, va = It, _a = "Expected a function";
|
|
3565
|
+
function ba(t, e, n) {
|
|
3560
3566
|
var r = !0, s = !0;
|
|
3561
3567
|
if (typeof t != "function")
|
|
3562
|
-
throw new TypeError(
|
|
3563
|
-
return
|
|
3568
|
+
throw new TypeError(_a);
|
|
3569
|
+
return va(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), ya(t, e, {
|
|
3564
3570
|
leading: r,
|
|
3565
3571
|
maxWait: e,
|
|
3566
3572
|
trailing: s
|
|
3567
3573
|
});
|
|
3568
3574
|
}
|
|
3569
|
-
var
|
|
3570
|
-
const
|
|
3571
|
-
var
|
|
3575
|
+
var wa = ba;
|
|
3576
|
+
const $a = /* @__PURE__ */ Ze(wa);
|
|
3577
|
+
var Sa = function() {
|
|
3572
3578
|
var e = {}, n = e._fns = {};
|
|
3573
3579
|
e.emit = function(i, a, l, u, d, p, c) {
|
|
3574
3580
|
var h = r(i);
|
|
@@ -3607,20 +3613,20 @@ var Fa = function() {
|
|
|
3607
3613
|
}
|
|
3608
3614
|
return e;
|
|
3609
3615
|
};
|
|
3610
|
-
const
|
|
3611
|
-
let
|
|
3616
|
+
const Fa = /* @__PURE__ */ Ze(Sa);
|
|
3617
|
+
let Ta = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ka = (t = 21) => {
|
|
3612
3618
|
let e = "", n = t | 0;
|
|
3613
3619
|
for (; n--; )
|
|
3614
|
-
e +=
|
|
3620
|
+
e += Ta[Math.random() * 64 | 0];
|
|
3615
3621
|
return e;
|
|
3616
3622
|
};
|
|
3617
|
-
const
|
|
3618
|
-
version:
|
|
3623
|
+
const Ia = "5.2.0", Ea = {
|
|
3624
|
+
version: Ia
|
|
3619
3625
|
};
|
|
3620
|
-
function
|
|
3626
|
+
function Ca(t, e) {
|
|
3621
3627
|
return e.name ? e.name : t.split("/")[0] === "image" ? `${t.split("/")[0]}.${t.split("/")[1]}` : "noname";
|
|
3622
3628
|
}
|
|
3623
|
-
const
|
|
3629
|
+
const Va = {
|
|
3624
3630
|
strings: {
|
|
3625
3631
|
addBulkFilesFailed: {
|
|
3626
3632
|
0: "Failed to add %{smart_count} file due to an internal error",
|
|
@@ -3685,7 +3691,7 @@ const Ma = {
|
|
|
3685
3691
|
pleaseWait: "Please wait"
|
|
3686
3692
|
}
|
|
3687
3693
|
};
|
|
3688
|
-
function
|
|
3694
|
+
function Ma(t) {
|
|
3689
3695
|
if (t == null && typeof navigator < "u" && (t = navigator.userAgent), !t)
|
|
3690
3696
|
return !0;
|
|
3691
3697
|
const e = /Edge\/(\d+\.\d+)/.exec(t);
|
|
@@ -3710,7 +3716,7 @@ const He = class He {
|
|
|
3710
3716
|
q(this, Z, /* @__PURE__ */ Object.create(null));
|
|
3711
3717
|
q(this, K);
|
|
3712
3718
|
q(this, Ce);
|
|
3713
|
-
q(this, le,
|
|
3719
|
+
q(this, le, Fa());
|
|
3714
3720
|
q(this, fe, /* @__PURE__ */ new Set());
|
|
3715
3721
|
q(this, me, /* @__PURE__ */ new Set());
|
|
3716
3722
|
q(this, ue, /* @__PURE__ */ new Set());
|
|
@@ -3760,7 +3766,7 @@ const He = class He {
|
|
|
3760
3766
|
// and click 'ADD MORE FILES', - focus won't activate in Firefox.
|
|
3761
3767
|
// - We must throttle at around >500ms to avoid performance lags.
|
|
3762
3768
|
// [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
|
|
3763
|
-
q(this, de,
|
|
3769
|
+
q(this, de, $a(() => F(this, y, mt).call(this), 500, { leading: !0, trailing: !0 }));
|
|
3764
3770
|
q(this, se, this.updateOnlineStatus.bind(this));
|
|
3765
3771
|
// We need to store request clients by a unique ID, so we can share RequestClient instances across files
|
|
3766
3772
|
// this allows us to do rate limiting and synchronous operations like refreshing provider tokens
|
|
@@ -3773,18 +3779,18 @@ const He = class He {
|
|
|
3773
3779
|
// all 6 files would go ahead and refresh the token at the same time
|
|
3774
3780
|
// (calling /refresh-token up to 6 times), which will probably fail for some providers
|
|
3775
3781
|
q(this, Ve, /* @__PURE__ */ new Map());
|
|
3776
|
-
this.defaultLocale =
|
|
3782
|
+
this.defaultLocale = Va;
|
|
3777
3783
|
const n = {
|
|
3778
3784
|
id: "uppy",
|
|
3779
3785
|
autoProceed: !1,
|
|
3780
3786
|
allowMultipleUploadBatches: !0,
|
|
3781
3787
|
debug: !1,
|
|
3782
|
-
restrictions:
|
|
3788
|
+
restrictions: mo,
|
|
3783
3789
|
meta: {},
|
|
3784
3790
|
onBeforeFileAdded: (s, o) => !Object.hasOwn(o, s.id),
|
|
3785
3791
|
onBeforeUpload: (s) => s,
|
|
3786
3792
|
store: new Cn(),
|
|
3787
|
-
logger:
|
|
3793
|
+
logger: io,
|
|
3788
3794
|
infoTimeout: 5e3
|
|
3789
3795
|
}, r = { ...n, ...e };
|
|
3790
3796
|
this.opts = {
|
|
@@ -3793,19 +3799,19 @@ const He = class He {
|
|
|
3793
3799
|
...n.restrictions,
|
|
3794
3800
|
...e == null ? void 0 : e.restrictions
|
|
3795
3801
|
}
|
|
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 =
|
|
3802
|
+
}, 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
3803
|
...ze,
|
|
3798
3804
|
plugins: {},
|
|
3799
3805
|
files: {},
|
|
3800
3806
|
currentUploads: {},
|
|
3801
3807
|
capabilities: {
|
|
3802
|
-
uploadProgress:
|
|
3808
|
+
uploadProgress: Ma(),
|
|
3803
3809
|
individualCancellation: !0,
|
|
3804
3810
|
resumableUploads: !1
|
|
3805
3811
|
},
|
|
3806
3812
|
meta: { ...this.opts.meta },
|
|
3807
3813
|
info: []
|
|
3808
|
-
}), Ue(this, K, new
|
|
3814
|
+
}), Ue(this, K, new ho(() => this.opts, () => this.i18n)), Ue(this, Ce, this.store.subscribe((s, o, i) => {
|
|
3809
3815
|
this.emit("state-update", s, o, i), this.updateAll(o);
|
|
3810
3816
|
})), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), F(this, y, On).call(this);
|
|
3811
3817
|
}
|
|
@@ -3867,7 +3873,7 @@ const He = class He {
|
|
|
3867
3873
|
this.patchFilesState({ [e]: n });
|
|
3868
3874
|
}
|
|
3869
3875
|
i18nInit() {
|
|
3870
|
-
const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new
|
|
3876
|
+
const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new so([this.defaultLocale, this.opts.locale], {
|
|
3871
3877
|
onMissingKey: e
|
|
3872
3878
|
});
|
|
3873
3879
|
this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
|
|
@@ -4387,7 +4393,7 @@ Pn = function(e) {
|
|
|
4387
4393
|
isRemote: !1,
|
|
4388
4394
|
source: void 0,
|
|
4389
4395
|
preview: void 0
|
|
4390
|
-
} : e, r = In(n), s =
|
|
4396
|
+
} : e, r = In(n), s = Ca(r, n), o = kn(s).extension, i = to(n, this.getID()), a = {
|
|
4391
4397
|
...n.meta,
|
|
4392
4398
|
name: s,
|
|
4393
4399
|
type: r
|
|
@@ -4640,7 +4646,7 @@ $e = function(e, n = {}) {
|
|
|
4640
4646
|
const { forceAllowNewUpload: r = !1 } = n, { allowNewUpload: s, currentUploads: o } = this.getState();
|
|
4641
4647
|
if (!s && !r)
|
|
4642
4648
|
throw new Error("Cannot create a new upload: already uploading.");
|
|
4643
|
-
const i =
|
|
4649
|
+
const i = ka();
|
|
4644
4650
|
return this.emit("upload", i, this.getFilesByIds(e)), this.setState({
|
|
4645
4651
|
allowNewUpload: this.opts.allowMultipleUploadBatches !== !1 && this.opts.allowMultipleUploads !== !1,
|
|
4646
4652
|
currentUploads: {
|
|
@@ -4710,12 +4716,12 @@ ht = function(e) {
|
|
|
4710
4716
|
failed: [],
|
|
4711
4717
|
uploadID: e
|
|
4712
4718
|
}), o;
|
|
4713
|
-
}, B(He, "VERSION",
|
|
4719
|
+
}, B(He, "VERSION", Ea.version);
|
|
4714
4720
|
let lt = He;
|
|
4715
|
-
const
|
|
4721
|
+
const Ua = {
|
|
4716
4722
|
key: 0,
|
|
4717
4723
|
class: "uppy-input-area--caption small text-body-secondary fst-italic"
|
|
4718
|
-
},
|
|
4724
|
+
}, pl = {
|
|
4719
4725
|
__name: "UppyInput",
|
|
4720
4726
|
props: {
|
|
4721
4727
|
name: { type: String, required: !0 },
|
|
@@ -4810,7 +4816,7 @@ const Aa = {
|
|
|
4810
4816
|
f === !0 && _ === !1 && h();
|
|
4811
4817
|
}), ye(() => {
|
|
4812
4818
|
var f, _, $, U, P, H, ne, D;
|
|
4813
|
-
n.useXHR && import("./index-
|
|
4819
|
+
n.useXHR && import("./index-BA2VhUGJ.js").then((X) => {
|
|
4814
4820
|
const pe = X.default;
|
|
4815
4821
|
i.value.use(pe, {
|
|
4816
4822
|
method: "POST",
|
|
@@ -4868,51 +4874,51 @@ const Aa = {
|
|
|
4868
4874
|
ref_key: "inputEl",
|
|
4869
4875
|
ref: o
|
|
4870
4876
|
}, [
|
|
4871
|
-
Q(Je(
|
|
4877
|
+
Q(Je(Xi), {
|
|
4872
4878
|
name: "uu" + t.name,
|
|
4873
4879
|
uppy: i.value
|
|
4874
4880
|
}, {
|
|
4875
4881
|
default: ie(() => [
|
|
4876
4882
|
O(f.$slots, "default", { uppy: i.value }, () => [
|
|
4877
|
-
Q(Je(
|
|
4878
|
-
Q(Je(
|
|
4883
|
+
Q(Je(Ki), { class: "uppy-file-lists" }),
|
|
4884
|
+
Q(Je(Zi), { class: "uppy-drop-zone" })
|
|
4879
4885
|
])
|
|
4880
4886
|
]),
|
|
4881
4887
|
_: 3
|
|
4882
4888
|
}, 8, ["name", "uppy"]),
|
|
4883
|
-
s.value ? (m(), g("div",
|
|
4889
|
+
s.value ? (m(), g("div", Ua, W(s.value), 1)) : j("", !0)
|
|
4884
4890
|
], 512)) : j("", !0);
|
|
4885
4891
|
}
|
|
4886
4892
|
};
|
|
4887
4893
|
export {
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4894
|
+
Ba as A,
|
|
4895
|
+
ja as C,
|
|
4896
|
+
Xa as E,
|
|
4897
|
+
Ya as F,
|
|
4898
|
+
ws as G,
|
|
4899
|
+
Ja as L,
|
|
4900
|
+
Qa as M,
|
|
4901
|
+
al as O,
|
|
4902
|
+
Ga as P,
|
|
4903
|
+
Bs as Q,
|
|
4904
|
+
dl as R,
|
|
4905
|
+
Ha as S,
|
|
4906
|
+
so as T,
|
|
4907
|
+
ll as _,
|
|
4908
|
+
La as a,
|
|
4909
|
+
xa as b,
|
|
4910
|
+
qa as c,
|
|
4911
|
+
Wa as d,
|
|
4912
|
+
ul as e,
|
|
4913
|
+
pl as f,
|
|
4914
|
+
Za as g,
|
|
4915
|
+
el as h,
|
|
4916
|
+
tl as i,
|
|
4917
|
+
sl as j,
|
|
4918
|
+
rl as k,
|
|
4919
|
+
nl as l,
|
|
4920
|
+
Ka as m,
|
|
4921
|
+
il as n,
|
|
4922
|
+
ol as o,
|
|
4917
4923
|
We as p
|
|
4918
4924
|
};
|