inertia-bootstrap-forms 2.1.3 → 2.1.4

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.
@@ -3,11 +3,11 @@ var Mt = (t) => {
3
3
  throw TypeError(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
- var R = (t, e, n) => jn(t, typeof e != "symbol" ? e + "" : e, n), Xe = (t, e, n) => e.has(t) || Mt("Cannot " + n);
7
- var b = (t, e, n) => (Xe(t, e, "read from private field"), n ? n.call(t) : e.get(t)), L = (t, e, n) => e.has(t) ? Mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Me = (t, e, n, r) => (Xe(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), F = (t, e, n) => (Xe(t, e, "access private method"), n);
8
- import { createElementBlock as g, openBlock as m, renderSlot as D, normalizeClass as x, ref as W, onMounted as ye, onBeforeUnmount as mt, createElementVNode as $, defineComponent as I, inject as T, computed as q, resolveComponent as j, createBlock as ee, withCtx as ie, withDirectives as re, createVNode as Q, vModelText as He, createTextVNode as gt, toDisplayString as H, vModelDynamic as yt, defineAsyncComponent as Ln, createCommentVNode as B, mergeProps as en, Fragment as ve, renderList as _e, normalizeStyle as vt, toRef as xn, reactive as tn, withModifiers as nn, resolveDirective as qn, vModelSelect as Hn, markRaw as Gn, provide as Wn, watch as Fe, h as rn, shallowRef as Yn, unref as Ke } from "vue";
9
- import Zn from "@tinymce/tinymce-vue";
10
- import { useForm as Xn } from "@inertiajs/vue3";
6
+ var R = (t, e, n) => jn(t, typeof e != "symbol" ? e + "" : e, n), Ze = (t, e, n) => e.has(t) || Mt("Cannot " + n);
7
+ var b = (t, e, n) => (Ze(t, e, "read from private field"), n ? n.call(t) : e.get(t)), x = (t, e, n) => e.has(t) ? Mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Me = (t, e, n, r) => (Ze(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), F = (t, e, n) => (Ze(t, e, "access private method"), n);
8
+ import { createElementBlock as g, openBlock as m, renderSlot as D, normalizeClass as L, ref as W, onMounted as ye, onBeforeUnmount as mt, createElementVNode as $, defineComponent as I, inject as k, computed as q, resolveComponent as j, createBlock as ee, withCtx as ie, withDirectives as re, createVNode as Q, vModelText as He, createTextVNode as gt, toDisplayString as H, vModelDynamic as yt, defineAsyncComponent as xn, createCommentVNode as B, mergeProps as en, Fragment as ve, renderList as _e, normalizeStyle as vt, toRef as Ln, reactive as tn, withModifiers as nn, resolveDirective as qn, vModelSelect as Hn, markRaw as Gn, provide as Wn, watch as Fe, h as rn, shallowRef as Yn, unref as Ke } from "vue";
9
+ import Xn from "@tinymce/tinymce-vue";
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";
12
12
  import { VueTelInput as er } from "vue-tel-input";
13
13
  import tr from "dropzone";
@@ -96,7 +96,7 @@ const bt = /* @__PURE__ */ be(mr, [["render", yr]]), vr = {
96
96
  };
97
97
  function _r(t, e, n, r, s, o) {
98
98
  return m(), g("i", {
99
- class: x(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
99
+ class: L(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
100
100
  role: "status"
101
101
  }, e[0] || (e[0] = [
102
102
  $("span", { class: "visually-hidden" }, "Loading...", -1)
@@ -112,7 +112,7 @@ const br = /* @__PURE__ */ be(vr, [["render", _r]]), wr = {
112
112
  };
113
113
  function $r(t, e, n, r, s, o) {
114
114
  return m(), g("div", {
115
- class: x(["alert", "alert-" + n.type])
115
+ class: L(["alert", "alert-" + n.type])
116
116
  }, [
117
117
  D(t.$slots, "default")
118
118
  ], 2);
@@ -142,12 +142,12 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
142
142
  }
143
143
  },
144
144
  setup(t) {
145
- let e = T("form", {
145
+ let e = k("form", {
146
146
  errors: {},
147
147
  getID(l) {
148
148
  return l;
149
149
  }
150
- }), n = T("group", {});
150
+ }), n = k("group", {});
151
151
  const r = q({
152
152
  get() {
153
153
  var l;
@@ -176,20 +176,20 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
176
176
  });
177
177
  return { modelValue: r, displayValue: a, form: e, group: n };
178
178
  }
179
- }), kr = ["name", "disabled", "readonly", "placeholder"];
180
- function Tr(t, e, n, r, s, o) {
179
+ }), Tr = ["name", "disabled", "readonly", "placeholder"];
180
+ function kr(t, e, n, r, s, o) {
181
181
  const i = j("InputGroupText"), a = j("InputGroup");
182
182
  return m(), ee(a, null, {
183
183
  default: ie(() => [
184
184
  re($("input", {
185
185
  name: t.name,
186
186
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.displayValue = l),
187
- class: x([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-start"]),
187
+ class: L([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-start"]),
188
188
  disabled: t.disabled || t.form.processing,
189
189
  readonly: t.readonly,
190
190
  placeholder: t.placeholder,
191
191
  type: "tel"
192
- }, null, 10, kr), [
192
+ }, null, 10, Tr), [
193
193
  [He, t.displayValue]
194
194
  ]),
195
195
  Q(i, { class: "fanum" }, {
@@ -203,7 +203,7 @@ function Tr(t, e, n, r, s, o) {
203
203
  _: 3
204
204
  });
205
205
  }
206
- const Ua = /* @__PURE__ */ M(Fr, [["render", Tr]]), Er = I({
206
+ const Ua = /* @__PURE__ */ M(Fr, [["render", kr]]), Er = I({
207
207
  props: {
208
208
  name: {
209
209
  type: String,
@@ -216,12 +216,12 @@ const Ua = /* @__PURE__ */ M(Fr, [["render", Tr]]), Er = I({
216
216
  }
217
217
  },
218
218
  setup(t) {
219
- let e = T("form", {
219
+ let e = k("form", {
220
220
  errors: {},
221
221
  getID(s) {
222
222
  return s;
223
223
  }
224
- }), n = T("group", {});
224
+ }), n = k("group", {});
225
225
  return { modelValue: q({
226
226
  get() {
227
227
  var s;
@@ -240,7 +240,7 @@ function Cr(t, e, n, r, s, o) {
240
240
  name: t.name,
241
241
  id: t.inputID,
242
242
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
243
- class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
243
+ class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
244
244
  disabled: (a = t.form) == null ? void 0 : a.processing,
245
245
  type: "text"
246
246
  }, null, 10, Ir)), [
@@ -295,11 +295,11 @@ const Ge = /* @__PURE__ */ M(Er, [["render", Cr]]), Vr = I({
295
295
  src: this.url + Math.random()
296
296
  };
297
297
  }
298
- }), Mr = { class: "input-group captcha" }, Ur = ["src"], zr = {
298
+ }), Mr = { class: "input-group captcha" }, Ur = ["src"], Ar = {
299
299
  key: 1,
300
300
  class: "placeholder-wave captcha-holder"
301
- }, Pr = ["disabled"];
302
- function Ar(t, e, n, r, s, o) {
301
+ }, zr = ["disabled"];
302
+ function Pr(t, e, n, r, s, o) {
303
303
  const i = j("TextInput");
304
304
  return m(), g("div", Mr, [
305
305
  Q(i, {
@@ -307,7 +307,7 @@ function Ar(t, e, n, r, s, o) {
307
307
  class: "text-start",
308
308
  type: "tel"
309
309
  }, null, 8, ["name"]),
310
- t.loading ? (m(), g("div", zr, e[2] || (e[2] = [
310
+ t.loading ? (m(), g("div", Ar, e[2] || (e[2] = [
311
311
  $("div", { class: "placeholder w-100 h-100" }, null, -1)
312
312
  ]))) : (m(), g("img", {
313
313
  key: 0,
@@ -323,10 +323,10 @@ function Ar(t, e, n, r, s, o) {
323
323
  class: "btn btn-secondary border-0"
324
324
  }, e[3] || (e[3] = [
325
325
  $("i", { class: "fal fa-sync-alt align-middle" }, null, -1)
326
- ]), 8, Pr)
326
+ ]), 8, zr)
327
327
  ]);
328
328
  }
329
- const za = /* @__PURE__ */ M(Vr, [["render", Ar]]), Nr = I({
329
+ const Aa = /* @__PURE__ */ M(Vr, [["render", Pr]]), Nr = I({
330
330
  emits: ["change"],
331
331
  props: {
332
332
  name: {
@@ -355,7 +355,7 @@ const za = /* @__PURE__ */ M(Vr, [["render", Ar]]), Nr = I({
355
355
  }
356
356
  },
357
357
  setup(t) {
358
- let e = T("form");
358
+ let e = k("form");
359
359
  return e === void 0 && (e = {
360
360
  errors: {},
361
361
  getID(n) {
@@ -367,14 +367,14 @@ const za = /* @__PURE__ */ M(Vr, [["render", Ar]]), Nr = I({
367
367
  function Rr(t, e, n, r, s, o) {
368
368
  var i, a;
369
369
  return m(), g("label", {
370
- class: x(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
370
+ class: L(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
371
371
  for: t.form.getID(t.name) + (t.id || t.value)
372
372
  }, [
373
373
  re($("input", {
374
374
  name: t.name,
375
375
  id: t.form.getID(t.name) + (t.id || t.value),
376
376
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.form[t.name] = l),
377
- class: x([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
377
+ class: L([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
378
378
  disabled: (a = t.form) == null ? void 0 : a.processing,
379
379
  type: t.type,
380
380
  value: t.value,
@@ -386,7 +386,7 @@ function Rr(t, e, n, r, s, o) {
386
386
  D(t.$slots, "default")
387
387
  ], 10, Or);
388
388
  }
389
- const Pa = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
389
+ const za = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
390
390
  props: {
391
391
  name: {
392
392
  type: String,
@@ -414,12 +414,12 @@ const Pa = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
414
414
  }
415
415
  },
416
416
  setup(t) {
417
- let e = T("form", {
417
+ let e = k("form", {
418
418
  errors: {},
419
419
  getID(s) {
420
420
  return s;
421
421
  }
422
- }), n = T("group", {});
422
+ }), n = k("group", {});
423
423
  return { modelValue: q({
424
424
  get() {
425
425
  var s;
@@ -431,7 +431,7 @@ const Pa = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
431
431
  }
432
432
  }), form: e, group: n };
433
433
  }
434
- }), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"], xr = ["for"];
434
+ }), jr = { class: "form-check" }, xr = ["name", "id", "disabled", "type", "value"], Lr = ["for"];
435
435
  function qr(t, e, n, r, s, o) {
436
436
  var i, a;
437
437
  return m(), g("div", jr, [
@@ -439,12 +439,12 @@ function qr(t, e, n, r, s, o) {
439
439
  name: t.name,
440
440
  id: t.inputID,
441
441
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
442
- class: x([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
442
+ class: L([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
443
443
  disabled: (a = t.form) == null ? void 0 : a.processing,
444
444
  type: t.type,
445
445
  value: t.value,
446
446
  onChange: e[1] || (e[1] = (l) => t.$emit("change", l))
447
- }, null, 42, Lr), [
447
+ }, null, 42, xr), [
448
448
  [yt, t.modelValue]
449
449
  ]),
450
450
  $("label", {
@@ -452,10 +452,10 @@ function qr(t, e, n, r, s, o) {
452
452
  for: t.inputID
453
453
  }, [
454
454
  D(t.$slots, "default")
455
- ], 8, xr)
455
+ ], 8, Lr)
456
456
  ]);
457
457
  }
458
- const Aa = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
458
+ const Pa = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
459
459
  props: {
460
460
  name: {
461
461
  type: String,
@@ -490,12 +490,12 @@ const Aa = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
490
490
  }
491
491
  },
492
492
  setup(t) {
493
- let e = T("form", {
493
+ let e = k("form", {
494
494
  errors: {},
495
495
  getID(s) {
496
496
  return s;
497
497
  }
498
- }), n = T("group", {});
498
+ }), n = k("group", {});
499
499
  return { modelValue: q({
500
500
  get() {
501
501
  var s;
@@ -511,14 +511,14 @@ const Aa = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
511
511
  function Yr(t, e, n, r, s, o) {
512
512
  var i, a, l, u;
513
513
  return m(), g("label", {
514
- class: x(["form-check-toggle", { "form-check-toggle--active": (t.selectedValue || []).includes(t.value) }]),
514
+ class: L(["form-check-toggle", { "form-check-toggle--active": (t.selectedValue || []).includes(t.value) }]),
515
515
  for: t.inputID
516
516
  }, [
517
517
  re($("input", {
518
518
  name: t.name + (t.group ? "_" + ((i = t.group) == null ? void 0 : i.name) + "-" + ((a = t.group) == null ? void 0 : a.groupID) : ""),
519
519
  id: t.inputID,
520
520
  "onUpdate:modelValue": e[0] || (e[0] = (d) => t.modelValue = d),
521
- class: x([{ "is-invalid": (l = t.form) == null ? void 0 : l.errors[t.name], "form-check-toggle--input-hide": t.hideInput }, "form-check-toggle--input form-check-input"]),
521
+ class: L([{ "is-invalid": (l = t.form) == null ? void 0 : l.errors[t.name], "form-check-toggle--input-hide": t.hideInput }, "form-check-toggle--input form-check-input"]),
522
522
  disabled: (u = t.form) == null ? void 0 : u.processing,
523
523
  type: t.type,
524
524
  value: t.value,
@@ -529,12 +529,12 @@ function Yr(t, e, n, r, s, o) {
529
529
  D(t.$slots, "default")
530
530
  ], 10, Gr);
531
531
  }
532
- const Na = /* @__PURE__ */ M(Hr, [["render", Yr]]), Zr = Ln(
532
+ const Na = /* @__PURE__ */ M(Hr, [["render", Yr]]), Xr = xn(
533
533
  () => import("vue3-persian-datetime-picker")
534
534
  );
535
535
  let Ue;
536
- const Xr = I({
537
- components: { Vue3PersianDatetimePicker: Zr },
536
+ const Zr = I({
537
+ components: { Vue3PersianDatetimePicker: Xr },
538
538
  emits: ["update:modelValue", "change"],
539
539
  props: {
540
540
  name: {
@@ -571,12 +571,12 @@ const Xr = I({
571
571
  placeholder: String
572
572
  },
573
573
  setup(t) {
574
- let e = T("form", {
574
+ let e = k("form", {
575
575
  errors: {},
576
576
  getID(s) {
577
577
  return s;
578
578
  }
579
- }), n = T("group", {});
579
+ }), n = k("group", {});
580
580
  return { modelValue: q({
581
581
  get() {
582
582
  var s;
@@ -631,9 +631,9 @@ function Kr(t, e, n, r, s, o) {
631
631
  "input-class": "form-control"
632
632
  }, t.$props), null, 16, ["modelValue", "type", "disabled", "inputFormat"]));
633
633
  }
634
- const Oa = /* @__PURE__ */ M(Xr, [["render", Kr]]), Jr = I({
634
+ const Oa = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = I({
635
635
  emits: ["update:modelValue", "setContent"],
636
- components: { Editor: Zn },
636
+ components: { Editor: Xn },
637
637
  props: {
638
638
  name: {
639
639
  type: String,
@@ -661,12 +661,12 @@ const Oa = /* @__PURE__ */ M(Xr, [["render", Kr]]), Jr = I({
661
661
  e({
662
662
  editor: () => s.value
663
663
  });
664
- let i = T("form", {
664
+ let i = k("form", {
665
665
  errors: {},
666
666
  getID(u) {
667
667
  return u;
668
668
  }
669
- }), a = T("group", {});
669
+ }), a = k("group", {});
670
670
  return { modelValue: q({
671
671
  get() {
672
672
  var u;
@@ -711,7 +711,7 @@ const Da = /* @__PURE__ */ M(Jr, [["render", Qr]]), es = I({
711
711
  }
712
712
  },
713
713
  setup(t) {
714
- let e = T("form");
714
+ let e = k("form");
715
715
  return e === void 0 && (e = {
716
716
  errors: {},
717
717
  getID(n) {
@@ -789,7 +789,7 @@ function ps(t, e, n, r, s, o) {
789
789
  $("input", {
790
790
  ref: "input",
791
791
  name: t.name,
792
- class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
792
+ class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
793
793
  disabled: (a = t.form) == null ? void 0 : a.processing,
794
794
  type: "file",
795
795
  multiple: t.multiple,
@@ -874,7 +874,7 @@ const Ba = /* @__PURE__ */ M(cs, [["render", fs]]), hs = I({
874
874
  }
875
875
  },
876
876
  setup(t, e) {
877
- return { form: T("form", {
877
+ return { form: k("form", {
878
878
  errors: {},
879
879
  getID(r) {
880
880
  return r;
@@ -956,7 +956,7 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
956
956
  }
957
957
  },
958
958
  setup(t) {
959
- const e = xn("formEl"), n = tn(t.modelValue), r = Xn({
959
+ const e = Ln("formEl"), n = tn(t.modelValue), r = Zn({
960
960
  hasMessage: !1,
961
961
  successMessage: null,
962
962
  ...t.options,
@@ -995,6 +995,20 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
995
995
  }
996
996
  },
997
997
  methods: {
998
+ handleAutoTab(t) {
999
+ const e = t.target;
1000
+ if (!["INPUT", "TEXTAREA"].includes(e.tagName)) return;
1001
+ const n = e.maxLength;
1002
+ n > 0 && e.value.length >= n && this.focusNextField(e);
1003
+ },
1004
+ focusNextField(t) {
1005
+ const e = Array.from(
1006
+ this.formEl.querySelectorAll("input, select, textarea")
1007
+ ).filter(
1008
+ (s) => !s.disabled && s.tabIndex !== -1 && s.type !== "hidden" && s.offsetParent !== null
1009
+ ), n = e.indexOf(t), r = e[n + 1];
1010
+ r && (r.focus(), r.tagName !== "SELECT" && typeof r.select == "function" && r.select());
1011
+ },
998
1012
  reset() {
999
1013
  this.form.reset();
1000
1014
  },
@@ -1036,9 +1050,10 @@ function ws(t, e, n, r, s, o) {
1036
1050
  ref: "formEl",
1037
1051
  action: t.url,
1038
1052
  method: t.method,
1039
- onSubmit: e[0] || (e[0] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
1040
- onReset: e[1] || (e[1] = (a) => t.$emit("reset")),
1041
- class: x({ "form-processing": t.form.processing }),
1053
+ onInput: e[0] || (e[0] = (...a) => t.handleAutoTab && t.handleAutoTab(...a)),
1054
+ onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
1055
+ onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
1056
+ class: L({ "form-processing": t.form.processing }),
1042
1057
  novalidate: !!Object.values(t.form.errors).length
1043
1058
  }, [
1044
1059
  D(t.$slots, "errors", {}, () => [
@@ -1077,13 +1092,13 @@ const ja = /* @__PURE__ */ M(vs, [["render", ws]]), $s = I({
1077
1092
  key: 0,
1078
1093
  class: "text-danger"
1079
1094
  };
1080
- function ks(t, e, n, r, s, o) {
1095
+ function Ts(t, e, n, r, s, o) {
1081
1096
  return m(), g("label", Ss, [
1082
1097
  D(t.$slots, "default", {}, void 0, !0),
1083
1098
  t.required ? (m(), g("span", Fs, "*")) : B("", !0)
1084
1099
  ]);
1085
1100
  }
1086
- const La = /* @__PURE__ */ M($s, [["render", ks], ["__scopeId", "data-v-bfeb9beb"]]), Ts = I({
1101
+ const xa = /* @__PURE__ */ M($s, [["render", Ts], ["__scopeId", "data-v-bfeb9beb"]]), ks = I({
1087
1102
  name: "LocationInput",
1088
1103
  components: {
1089
1104
  LMap: Qn,
@@ -1107,7 +1122,7 @@ const La = /* @__PURE__ */ M($s, [["render", ks], ["__scopeId", "data-v-bfeb9beb
1107
1122
  modelValue: Object
1108
1123
  },
1109
1124
  setup(t) {
1110
- let e = T("form");
1125
+ let e = k("form");
1111
1126
  return e === void 0 && (e = {
1112
1127
  errors: {},
1113
1128
  zoom: 8,
@@ -1144,7 +1159,7 @@ function Es(t, e, n, r, s, o) {
1144
1159
  var u;
1145
1160
  const i = j("l-tile-layer"), a = j("LMarker"), l = j("l-map");
1146
1161
  return m(), g("div", {
1147
- class: x(["location-map-container", { disabled: t.disabled || t.form.processing, "is-invalid": ((u = t.form) == null ? void 0 : u.errors[t.name]) !== void 0 }])
1162
+ class: L(["location-map-container", { disabled: t.disabled || t.form.processing, "is-invalid": ((u = t.form) == null ? void 0 : u.errors[t.name]) !== void 0 }])
1148
1163
  }, [
1149
1164
  Q(l, {
1150
1165
  ref: "map",
@@ -1171,7 +1186,7 @@ function Es(t, e, n, r, s, o) {
1171
1186
  }, 8, ["zoom", "center", "onClick"])
1172
1187
  ], 2);
1173
1188
  }
1174
- const xa = /* @__PURE__ */ M(Ts, [["render", Es]]), Is = I({
1189
+ const La = /* @__PURE__ */ M(ks, [["render", Es]]), Is = I({
1175
1190
  components: {
1176
1191
  TextInput: Ge
1177
1192
  },
@@ -1235,7 +1250,7 @@ const Ha = /* @__PURE__ */ M(Vs, [["render", Ms]]), Us = I({
1235
1250
  }
1236
1251
  },
1237
1252
  setup(t) {
1238
- let e = T("form"), n = T("group", {});
1253
+ let e = k("form"), n = k("group", {});
1239
1254
  e === void 0 && (e = {
1240
1255
  errors: {},
1241
1256
  getID(s) {
@@ -1269,8 +1284,8 @@ const Ha = /* @__PURE__ */ M(Vs, [["render", Ms]]), Us = I({
1269
1284
  data() {
1270
1285
  return {};
1271
1286
  }
1272
- }), zs = ["name", "value", "disabled", "readonly"];
1273
- function Ps(t, e, n, r, s, o) {
1287
+ }), As = ["name", "value", "disabled", "readonly"];
1288
+ function zs(t, e, n, r, s, o) {
1274
1289
  const i = j("InputGroupText"), a = j("InputGroup"), l = qn("maska");
1275
1290
  return m(), ee(a, { class: "input-group-quantity" }, {
1276
1291
  default: ie(() => [
@@ -1298,11 +1313,11 @@ function Ps(t, e, n, r, s, o) {
1298
1313
  "data-maska": "###,###,###,###,###,###,###",
1299
1314
  "data-maska-reversed": "",
1300
1315
  onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
1301
- class: x([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1316
+ class: L([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1302
1317
  disabled: t.disabled || t.form.processing,
1303
1318
  readonly: t.readonly,
1304
1319
  type: "tel"
1305
- }, null, 42, zs), [
1320
+ }, null, 42, As), [
1306
1321
  [l]
1307
1322
  ]),
1308
1323
  $("button", {
@@ -1335,8 +1350,8 @@ function Ps(t, e, n, r, s, o) {
1335
1350
  _: 3
1336
1351
  });
1337
1352
  }
1338
- const As = /* @__PURE__ */ M(Us, [["render", Ps]]), Ns = I({
1339
- components: { GroupControl: ys, QuantityInput: As, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1353
+ const Ps = /* @__PURE__ */ M(Us, [["render", zs]]), Ns = I({
1354
+ components: { GroupControl: ys, QuantityInput: Ps, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1340
1355
  props: {
1341
1356
  name: {
1342
1357
  type: String,
@@ -1372,7 +1387,7 @@ const As = /* @__PURE__ */ M(Us, [["render", Ps]]), Ns = I({
1372
1387
  }
1373
1388
  },
1374
1389
  setup(t) {
1375
- let e = T("form"), n = T("group", {});
1390
+ let e = k("form"), n = k("group", {});
1376
1391
  return e === void 0 && (e = {
1377
1392
  errors: {},
1378
1393
  getID(s) {
@@ -1425,7 +1440,7 @@ function js(t, e, n, r, s, o) {
1425
1440
  onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
1426
1441
  }, H(t.totalQuantity) + " " + H(t.unit), 1),
1427
1442
  $("div", {
1428
- class: x(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1443
+ class: L(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1429
1444
  }, [
1430
1445
  Q(a, { name: t.name }, {
1431
1446
  default: ie(() => [
@@ -1448,7 +1463,7 @@ function js(t, e, n, r, s, o) {
1448
1463
  ], 2)
1449
1464
  ], 512);
1450
1465
  }
1451
- const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), Ls = I({
1466
+ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), xs = I({
1452
1467
  emits: ["update:modelValue", "search", "searching", "change", "selected"],
1453
1468
  props: {
1454
1469
  name: {
@@ -1505,12 +1520,12 @@ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), Ls = I({
1505
1520
  }
1506
1521
  },
1507
1522
  setup(t) {
1508
- let e = T("form", {
1523
+ let e = k("form", {
1509
1524
  errors: {},
1510
1525
  getID(s) {
1511
1526
  return s;
1512
1527
  }
1513
- }), n = T("group", {});
1528
+ }), n = k("group", {});
1514
1529
  return { modelValue: q({
1515
1530
  get() {
1516
1531
  var s;
@@ -1631,10 +1646,10 @@ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), Ls = I({
1631
1646
  }
1632
1647
  };
1633
1648
  }
1634
- }), xs = ["name", "id"], qs = ["value", "selected"];
1649
+ }), Ls = ["name", "id"], qs = ["value", "selected"];
1635
1650
  function Hs(t, e, n, r, s, o) {
1636
1651
  return m(), g("div", {
1637
- class: x(["select2-controller", {
1652
+ class: L(["select2-controller", {
1638
1653
  "is-invalid": t.form.errors[t.name],
1639
1654
  "select2-dropdown-hidden": t.hideDropdown === !0
1640
1655
  }])
@@ -1653,12 +1668,12 @@ function Hs(t, e, n, r, s, o) {
1653
1668
  value: t.getKeyFromItem(i),
1654
1669
  selected: t.selected(i)
1655
1670
  }, H(t.getLabelFromItem(i)), 9, qs))), 256))
1656
- ], 16, xs), [
1671
+ ], 16, Ls), [
1657
1672
  [Hn, t.modelValue]
1658
1673
  ])
1659
1674
  ], 2);
1660
1675
  }
1661
- const Wa = /* @__PURE__ */ M(Ls, [["render", Hs]]), Gs = I({
1676
+ const Wa = /* @__PURE__ */ M(xs, [["render", Hs]]), Gs = I({
1662
1677
  emits: ["update:modelValue"],
1663
1678
  props: {
1664
1679
  name: {
@@ -1691,7 +1706,7 @@ const Wa = /* @__PURE__ */ M(Ls, [["render", Hs]]), Gs = I({
1691
1706
  }
1692
1707
  },
1693
1708
  setup(t) {
1694
- let e = T("form");
1709
+ let e = k("form");
1695
1710
  return e === void 0 && (e = {
1696
1711
  errors: {},
1697
1712
  getID(n) {
@@ -1737,7 +1752,7 @@ const Wa = /* @__PURE__ */ M(Ls, [["render", Hs]]), Gs = I({
1737
1752
  key: 0,
1738
1753
  class: "rating-value fanum"
1739
1754
  };
1740
- function Zs(t, e, n, r, s, o) {
1755
+ function Xs(t, e, n, r, s, o) {
1741
1756
  return m(), g("div", Ws, [
1742
1757
  $("div", {
1743
1758
  class: "star-rating-container",
@@ -1760,7 +1775,7 @@ function Zs(t, e, n, r, s, o) {
1760
1775
  t.showValue && t.displayRating > 0 ? (m(), g("div", Ys, H(t.displayRating), 1)) : B("", !0)
1761
1776
  ]);
1762
1777
  }
1763
- const Ya = /* @__PURE__ */ M(Gs, [["render", Zs]]), Xs = I({
1778
+ const Ya = /* @__PURE__ */ M(Gs, [["render", Xs]]), Zs = I({
1764
1779
  components: {
1765
1780
  Spinner: br
1766
1781
  },
@@ -1794,7 +1809,7 @@ function Qs(t, e, n, r, s, o) {
1794
1809
  })
1795
1810
  ], 8, Ks);
1796
1811
  }
1797
- const Za = /* @__PURE__ */ M(Xs, [["render", Qs]]), ei = I({
1812
+ const Xa = /* @__PURE__ */ M(Zs, [["render", Qs]]), ei = I({
1798
1813
  components: {
1799
1814
  VueTelInput: er
1800
1815
  },
@@ -1810,7 +1825,7 @@ const Za = /* @__PURE__ */ M(Xs, [["render", Qs]]), ei = I({
1810
1825
  }
1811
1826
  },
1812
1827
  setup(t) {
1813
- let e = T("form");
1828
+ let e = k("form");
1814
1829
  return e === void 0 && (e = {
1815
1830
  errors: {},
1816
1831
  getID(n) {
@@ -1858,7 +1873,7 @@ function ni(t, e, n, r, s, o) {
1858
1873
  }, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
1859
1874
  ]);
1860
1875
  }
1861
- const Xa = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1876
+ const Za = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1862
1877
  props: {
1863
1878
  name: {
1864
1879
  type: String,
@@ -1866,12 +1881,12 @@ const Xa = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1866
1881
  }
1867
1882
  },
1868
1883
  setup(t) {
1869
- let e = T("form", {
1884
+ let e = k("form", {
1870
1885
  errors: {},
1871
1886
  getID(s) {
1872
1887
  return s;
1873
1888
  }
1874
- }), n = T("group", {});
1889
+ }), n = k("group", {});
1875
1890
  return { modelValue: q({
1876
1891
  get() {
1877
1892
  var s;
@@ -1889,7 +1904,7 @@ function ii(t, e, n, r, s, o) {
1889
1904
  return re((m(), g("textarea", {
1890
1905
  name: t.name,
1891
1906
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
1892
- class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
1907
+ class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
1893
1908
  disabled: (a = t.form) == null ? void 0 : a.processing
1894
1909
  }, null, 10, si)), [
1895
1910
  [He, t.modelValue]
@@ -1912,11 +1927,11 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
1912
1927
  },
1913
1928
  emits: ["update:modelValue"],
1914
1929
  setup(t, { emit: e }) {
1915
- const n = t, r = e, s = T("form", {
1930
+ const n = t, r = e, s = k("form", {
1916
1931
  value: {},
1917
1932
  errors: {},
1918
1933
  getID: (u) => u
1919
- }), o = T("group", null), i = W(null), a = W(null), l = q({
1934
+ }), o = k("group", null), i = W(null), a = W(null), l = q({
1920
1935
  get() {
1921
1936
  var u;
1922
1937
  return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
@@ -1979,7 +1994,7 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
1979
1994
  }
1980
1995
  },
1981
1996
  setup(t) {
1982
- let e = T("form");
1997
+ let e = k("form");
1983
1998
  return e === void 0 && (e = {
1984
1999
  errors: {},
1985
2000
  getID(n) {
@@ -2059,7 +2074,7 @@ function yi(t, e, n, r, s, o) {
2059
2074
  $("input", {
2060
2075
  ref: "input",
2061
2076
  name: t.name,
2062
- class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2077
+ class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2063
2078
  disabled: (a = t.form) == null ? void 0 : a.processing,
2064
2079
  type: "file",
2065
2080
  multiple: t.multiple,
@@ -2157,12 +2172,12 @@ const Qa = /* @__PURE__ */ M(oi, [["render", yi]]), vi = I({
2157
2172
  }
2158
2173
  },
2159
2174
  setup(t) {
2160
- let e = T("form", {
2175
+ let e = k("form", {
2161
2176
  errors: {},
2162
2177
  getID(s) {
2163
2178
  return s;
2164
2179
  }
2165
- }), n = T("group", {});
2180
+ }), n = k("group", {});
2166
2181
  return { modelValue: q({
2167
2182
  get() {
2168
2183
  var s;
@@ -2219,7 +2234,7 @@ function bi(t, e, n, r, s, o) {
2219
2234
  ], 512);
2220
2235
  }
2221
2236
  const el = /* @__PURE__ */ M(vi, [["render", bi]]);
2222
- var We, C, sn, ae, Ut, on, an, ln, wt, tt, nt, ke = {}, un = [], wi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
2237
+ var We, C, sn, ae, Ut, on, an, ln, wt, tt, nt, Te = {}, un = [], wi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
2223
2238
  function ne(t, e) {
2224
2239
  for (var n in e) t[n] = e[n];
2225
2240
  return t;
@@ -2258,7 +2273,7 @@ function dn(t) {
2258
2273
  return dn(t);
2259
2274
  }
2260
2275
  }
2261
- function zt(t) {
2276
+ function At(t) {
2262
2277
  (!t.__d && (t.__d = !0) && ae.push(t) && !je.__r++ || Ut != C.debounceRendering) && ((Ut = C.debounceRendering) || on)(je);
2263
2278
  }
2264
2279
  function je() {
@@ -2266,8 +2281,8 @@ function je() {
2266
2281
  je.__r = 0;
2267
2282
  }
2268
2283
  function pn(t, e, n, r, s, o, i, a, l, u, d) {
2269
- var p, c, h, v, V, z, k, E = r && r.__k || un, Y = e.length;
2270
- for (l = $i(n, e, E, l, Y), p = 0; p < Y; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? ke : E[h.__i] || ke, h.__i = p, z = Ft(t, h, c, s, o, i, a, l, u, d), v = h.__e, h.ref && c.ref != h.ref && (c.ref && kt(c.ref, null, h), d.push(h.ref, h.__c || v, h)), V == null && v != null && (V = v), (k = !!(4 & h.__u)) || c.__k === h.__k ? l = cn(h, l, t, k) : typeof h.type == "function" && z !== void 0 ? l = z : v && (l = v.nextSibling), h.__u &= -7);
2284
+ var p, c, h, v, V, A, T, E = r && r.__k || un, Y = e.length;
2285
+ for (l = $i(n, e, E, l, Y), p = 0; p < Y; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Te : E[h.__i] || Te, h.__i = p, A = Ft(t, h, c, s, o, i, a, l, u, d), v = h.__e, h.ref && c.ref != h.ref && (c.ref && Tt(c.ref, null, h), d.push(h.ref, h.__c || v, h)), V == null && v != null && (V = v), (T = !!(4 & h.__u)) || c.__k === h.__k ? l = cn(h, l, t, T) : typeof h.type == "function" && A !== void 0 ? l = A : v && (l = v.nextSibling), h.__u &= -7);
2271
2286
  return n.__e = V, l;
2272
2287
  }
2273
2288
  function $i(t, e, n, r, s) {
@@ -2296,15 +2311,15 @@ function Si(t, e, n, r) {
2296
2311
  }
2297
2312
  return -1;
2298
2313
  }
2299
- function Pt(t, e, n) {
2314
+ function zt(t, e, n) {
2300
2315
  e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || wi.test(e) ? n : n + "px";
2301
2316
  }
2302
- function ze(t, e, n, r, s) {
2317
+ function Ae(t, e, n, r, s) {
2303
2318
  var o, i;
2304
2319
  e: if (e == "style") if (typeof n == "string") t.style.cssText = n;
2305
2320
  else {
2306
- if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || Pt(t.style, e, "");
2307
- if (n) for (e in n) r && n[e] == r[e] || Pt(t.style, e, n[e]);
2321
+ if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || zt(t.style, e, "");
2322
+ if (n) for (e in n) r && n[e] == r[e] || zt(t.style, e, n[e]);
2308
2323
  }
2309
2324
  else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(ln, "$1")), i = e.toLowerCase(), e = i in t || e == "onFocusOut" || e == "onFocusIn" ? i.slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + o] = n, n ? r ? n.u = r.u : (n.u = wt, t.addEventListener(e, o ? nt : tt, o)) : t.removeEventListener(e, o ? nt : tt, o);
2310
2325
  else {
@@ -2317,7 +2332,7 @@ function ze(t, e, n, r, s) {
2317
2332
  typeof n == "function" || (n == null || n === !1 && e[4] != "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && n == 1 ? "" : n));
2318
2333
  }
2319
2334
  }
2320
- function At(t) {
2335
+ function Pt(t) {
2321
2336
  return function(e) {
2322
2337
  if (this.l) {
2323
2338
  var n = this.l[e.type + t];
@@ -2328,40 +2343,40 @@ function At(t) {
2328
2343
  };
2329
2344
  }
2330
2345
  function Ft(t, e, n, r, s, o, i, a, l, u) {
2331
- var d, p, c, h, v, V, z, k, E, Y, f, _, w, U, N, G, te, P = e.type;
2346
+ var d, p, c, h, v, V, A, T, E, Y, f, _, w, U, N, G, te, z = e.type;
2332
2347
  if (e.constructor !== void 0) return null;
2333
2348
  128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
2334
- e: if (typeof P == "function") try {
2335
- if (k = e.props, E = "prototype" in P && P.prototype.render, Y = (d = P.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? z = (p = e.__c = n.__c).__ = p.__E : (E ? e.__c = p = new P(k, f) : (e.__c = p = new De(k, f), p.constructor = P, p.render = ki), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), E && p.__s == null && (p.__s = p.state), E && P.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = ne({}, p.__s)), ne(p.__s, P.getDerivedStateFromProps(k, p.__s))), h = p.props, v = p.state, p.__v = e, c) E && P.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), E && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2349
+ e: if (typeof z == "function") try {
2350
+ if (T = e.props, E = "prototype" in z && z.prototype.render, Y = (d = z.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (E ? e.__c = p = new z(T, f) : (e.__c = p = new De(T, f), p.constructor = z, p.render = Ti), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), E && p.__s == null && (p.__s = p.state), E && z.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = ne({}, p.__s)), ne(p.__s, z.getDerivedStateFromProps(T, p.__s))), h = p.props, v = p.state, p.__v = e, c) E && z.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), E && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2336
2351
  else {
2337
- if (E && P.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) {
2338
- 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(Z) {
2339
- Z && (Z.__ = e);
2352
+ if (E && z.getDerivedStateFromProps == null && T !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(T, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(T, p.__s, f) === !1) {
2353
+ for (e.__v != n.__v && (p.props = T, p.state = p.__s, p.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(X) {
2354
+ X && (X.__ = e);
2340
2355
  }), _ = 0; _ < p._sb.length; _++) p.__h.push(p._sb[_]);
2341
2356
  p._sb = [], p.__h.length && i.push(p);
2342
2357
  break e;
2343
2358
  }
2344
- p.componentWillUpdate != null && p.componentWillUpdate(k, p.__s, f), E && p.componentDidUpdate != null && p.__h.push(function() {
2359
+ p.componentWillUpdate != null && p.componentWillUpdate(T, p.__s, f), E && p.componentDidUpdate != null && p.__h.push(function() {
2345
2360
  p.componentDidUpdate(h, v, V);
2346
2361
  });
2347
2362
  }
2348
- if (p.context = f, p.props = k, p.__P = t, p.__e = !1, w = C.__r, U = 0, E) {
2363
+ if (p.context = f, p.props = T, p.__P = t, p.__e = !1, w = C.__r, U = 0, E) {
2349
2364
  for (p.state = p.__s, p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), N = 0; N < p._sb.length; N++) p.__h.push(p._sb[N]);
2350
2365
  p._sb = [];
2351
2366
  } else do
2352
2367
  p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
2353
2368
  while (p.__d && ++U < 25);
2354
- p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), E && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)), G = d, d != null && d.type === me && d.key == null && (G = hn(d.props.children)), a = pn(t, Ye(G) ? G : [G], e, n, r, s, o, i, a, l, u), p.base = e.__e, e.__u &= -161, p.__h.length && i.push(p), z && (p.__E = p.__ = null);
2355
- } catch (Z) {
2356
- if (e.__v = null, l || o != null) if (Z.then) {
2369
+ p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), E && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)), G = d, d != null && d.type === me && d.key == null && (G = hn(d.props.children)), a = pn(t, Ye(G) ? G : [G], e, n, r, s, o, i, a, l, u), p.base = e.__e, e.__u &= -161, p.__h.length && i.push(p), A && (p.__E = p.__ = null);
2370
+ } catch (X) {
2371
+ if (e.__v = null, l || o != null) if (X.then) {
2357
2372
  for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
2358
2373
  o[o.indexOf(a)] = null, e.__e = a;
2359
2374
  } else {
2360
2375
  for (te = o.length; te--; ) $t(o[te]);
2361
2376
  rt(e);
2362
2377
  }
2363
- else e.__e = n.__e, e.__k = n.__k, Z.then || rt(e);
2364
- C.__e(Z, e, n);
2378
+ else e.__e = n.__e, e.__k = n.__k, X.then || rt(e);
2379
+ C.__e(X, e, n);
2365
2380
  }
2366
2381
  else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e = Fi(n.__e, e, n, r, s, o, i, l, u);
2367
2382
  return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
@@ -2370,7 +2385,7 @@ function rt(t) {
2370
2385
  t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(rt);
2371
2386
  }
2372
2387
  function fn(t, e, n) {
2373
- for (var r = 0; r < n.length; r++) kt(n[r], n[++r], n[++r]);
2388
+ for (var r = 0; r < n.length; r++) Tt(n[r], n[++r], n[++r]);
2374
2389
  C.__c && C.__c(e, t), t.some(function(s) {
2375
2390
  try {
2376
2391
  t = s.__h, s.__h = [], t.some(function(o) {
@@ -2385,7 +2400,7 @@ function hn(t) {
2385
2400
  return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ye(t) ? t.map(hn) : ne({}, t);
2386
2401
  }
2387
2402
  function Fi(t, e, n, r, s, o, i, a, l) {
2388
- var u, d, p, c, h, v, V, z = n.props || ke, k = e.props, E = e.type;
2403
+ var u, d, p, c, h, v, V, A = n.props || Te, T = e.props, E = e.type;
2389
2404
  if (E == "svg" ? s = "http://www.w3.org/2000/svg" : E == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s || (s = "http://www.w3.org/1999/xhtml"), o != null) {
2390
2405
  for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!E && (E ? h.localName == E : h.nodeType == 3)) {
2391
2406
  t = h, o[u] = null;
@@ -2393,27 +2408,27 @@ function Fi(t, e, n, r, s, o, i, a, l) {
2393
2408
  }
2394
2409
  }
2395
2410
  if (t == null) {
2396
- if (E == null) return document.createTextNode(k);
2397
- t = document.createElementNS(s, E, k.is && k), a && (C.__m && C.__m(e, o), a = !1), o = null;
2411
+ if (E == null) return document.createTextNode(T);
2412
+ t = document.createElementNS(s, E, T.is && T), a && (C.__m && C.__m(e, o), a = !1), o = null;
2398
2413
  }
2399
- if (E == null) z === k || a && t.data == k || (t.data = k);
2414
+ if (E == null) A === T || a && t.data == T || (t.data = T);
2400
2415
  else {
2401
- if (o = o && We.call(t.childNodes), !a && o != null) for (z = {}, u = 0; u < t.attributes.length; u++) z[(h = t.attributes[u]).name] = h.value;
2402
- for (u in z) if (h = z[u], u != "children") {
2416
+ if (o = o && We.call(t.childNodes), !a && o != null) for (A = {}, u = 0; u < t.attributes.length; u++) A[(h = t.attributes[u]).name] = h.value;
2417
+ for (u in A) if (h = A[u], u != "children") {
2403
2418
  if (u == "dangerouslySetInnerHTML") p = h;
2404
- else if (!(u in k)) {
2405
- if (u == "value" && "defaultValue" in k || u == "checked" && "defaultChecked" in k) continue;
2406
- ze(t, u, null, h, s);
2419
+ else if (!(u in T)) {
2420
+ if (u == "value" && "defaultValue" in T || u == "checked" && "defaultChecked" in T) continue;
2421
+ Ae(t, u, null, h, s);
2407
2422
  }
2408
2423
  }
2409
- for (u in k) h = k[u], u == "children" ? c = h : u == "dangerouslySetInnerHTML" ? d = h : u == "value" ? v = h : u == "checked" ? V = h : a && typeof h != "function" || z[u] === h || ze(t, u, h, z[u], s);
2424
+ for (u in T) h = T[u], u == "children" ? c = h : u == "dangerouslySetInnerHTML" ? d = h : u == "value" ? v = h : u == "checked" ? V = h : a && typeof h != "function" || A[u] === h || Ae(t, u, h, A[u], s);
2410
2425
  if (d) a || p && (d.__html == p.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
2411
2426
  else if (p && (t.innerHTML = ""), pn(e.type == "template" ? t.content : t, Ye(c) ? c : [c], e, n, r, E == "foreignObject" ? "http://www.w3.org/1999/xhtml" : s, o, i, o ? o[0] : n.__k && ge(n, 0), a, l), o != null) for (u = o.length; u--; ) $t(o[u]);
2412
- a || (u = "value", E == "progress" && v == null ? t.removeAttribute("value") : v != null && (v !== t[u] || E == "progress" && !v || E == "option" && v != z[u]) && ze(t, u, v, z[u], s), u = "checked", V != null && V != t[u] && ze(t, u, V, z[u], s));
2427
+ a || (u = "value", E == "progress" && v == null ? t.removeAttribute("value") : v != null && (v !== t[u] || E == "progress" && !v || E == "option" && v != A[u]) && Ae(t, u, v, A[u], s), u = "checked", V != null && V != t[u] && Ae(t, u, V, A[u], s));
2413
2428
  }
2414
2429
  return t;
2415
2430
  }
2416
- function kt(t, e, n) {
2431
+ function Tt(t, e, n) {
2417
2432
  try {
2418
2433
  if (typeof t == "function") {
2419
2434
  var r = typeof t.__u == "function";
@@ -2425,7 +2440,7 @@ function kt(t, e, n) {
2425
2440
  }
2426
2441
  function mn(t, e, n) {
2427
2442
  var r, s;
2428
- if (C.unmount && C.unmount(t), (r = t.ref) && (r.current && r.current != t.__e || kt(r, null, e)), (r = t.__c) != null) {
2443
+ if (C.unmount && C.unmount(t), (r = t.ref) && (r.current && r.current != t.__e || Tt(r, null, e)), (r = t.__c) != null) {
2429
2444
  if (r.componentWillUnmount) try {
2430
2445
  r.componentWillUnmount();
2431
2446
  } catch (o) {
@@ -2436,12 +2451,12 @@ function mn(t, e, n) {
2436
2451
  if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && mn(r[s], e, n || typeof t.type != "function");
2437
2452
  n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
2438
2453
  }
2439
- function ki(t, e, n) {
2454
+ function Ti(t, e, n) {
2440
2455
  return this.constructor(t, n);
2441
2456
  }
2442
2457
  function gn(t, e, n) {
2443
2458
  var r, s, o, i;
2444
- e == document && (e = document.documentElement), C.__ && C.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(me, null, [t]), s || ke, ke, e.namespaceURI, s ? null : e.firstChild ? We.call(e.childNodes) : null, o, s ? s.__e : e.firstChild, r, i), fn(o, t, i);
2459
+ e == document && (e = document.documentElement), C.__ && C.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(me, null, [t]), s || Te, Te, e.namespaceURI, s ? null : e.firstChild ? We.call(e.childNodes) : null, o, s ? s.__e : e.firstChild, r, i), fn(o, t, i);
2445
2460
  }
2446
2461
  We = un.slice, C = { __e: function(t, e, n, r) {
2447
2462
  for (var s, o, i; e = e.__; ) if ((s = e.__c) && !s.__) try {
@@ -2452,18 +2467,18 @@ We = un.slice, C = { __e: function(t, e, n, r) {
2452
2467
  throw t;
2453
2468
  } }, sn = 0, De.prototype.setState = function(t, e) {
2454
2469
  var n;
2455
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = ne({}, this.state), typeof t == "function" && (t = t(ne({}, n), this.props)), t && ne(n, t), t != null && this.__v && (e && this._sb.push(e), zt(this));
2470
+ n = this.__s != null && this.__s != this.state ? this.__s : this.__s = ne({}, this.state), typeof t == "function" && (t = t(ne({}, n), this.props)), t && ne(n, t), t != null && this.__v && (e && this._sb.push(e), At(this));
2456
2471
  }, De.prototype.forceUpdate = function(t) {
2457
- this.__v && (this.__e = !0, t && this.__h.push(t), zt(this));
2472
+ this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
2458
2473
  }, De.prototype.render = me, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
2459
2474
  return t.__v.__b - e.__v.__b;
2460
- }, je.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, tt = At(!1), nt = At(!0);
2461
- var Ti = 0;
2475
+ }, je.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, tt = Pt(!1), nt = Pt(!0);
2476
+ var ki = 0;
2462
2477
  function S(t, e, n, r, s, o) {
2463
2478
  e || (e = {});
2464
2479
  var i, a, l = e;
2465
2480
  if ("ref" in l) for (a in l = {}, e) a == "ref" ? i = e[a] : l[a] = e[a];
2466
- var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ti, __i: -1, __u: 0, __source: s, __self: o };
2481
+ var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ki, __i: -1, __u: 0, __source: s, __self: o };
2467
2482
  if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
2468
2483
  return C.vnode && C.vnode(u), u;
2469
2484
  }
@@ -2480,21 +2495,21 @@ function vn() {
2480
2495
  for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
2481
2496
  return r;
2482
2497
  }
2483
- var Te, A, Je, Nt, st = 0, _n = [], O = C, Ot = O.__b, Dt = O.__r, Rt = O.diffed, Bt = O.__c, jt = O.unmount, Lt = O.__;
2484
- function Tt(t, e) {
2485
- O.__h && O.__h(A, t, st || e), st = 0;
2486
- var n = A.__H || (A.__H = { __: [], __h: [] });
2498
+ var ke, P, Je, Nt, st = 0, _n = [], O = C, Ot = O.__b, Dt = O.__r, Rt = O.diffed, Bt = O.__c, jt = O.unmount, xt = O.__;
2499
+ function kt(t, e) {
2500
+ O.__h && O.__h(P, t, st || e), st = 0;
2501
+ var n = P.__H || (P.__H = { __: [], __h: [] });
2487
2502
  return t >= n.__.length && n.__.push({}), n.__[t];
2488
2503
  }
2489
2504
  function Ei(t) {
2490
2505
  return st = 1, Ii(Sn, t);
2491
2506
  }
2492
2507
  function Ii(t, e, n) {
2493
- var r = Tt(Te++, 2);
2508
+ var r = kt(ke++, 2);
2494
2509
  if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
2495
2510
  var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
2496
2511
  l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
2497
- }], r.__c = A, !A.__f)) {
2512
+ }], r.__c = P, !P.__f)) {
2498
2513
  var s = function(a, l, u) {
2499
2514
  if (!r.__c.__H) return !0;
2500
2515
  var d = r.__c.__H.__.filter(function(c) {
@@ -2511,24 +2526,24 @@ function Ii(t, e, n) {
2511
2526
  }
2512
2527
  }), o && o.call(this, a, l, u) || p;
2513
2528
  };
2514
- A.__f = !0;
2515
- var o = A.shouldComponentUpdate, i = A.componentWillUpdate;
2516
- A.componentWillUpdate = function(a, l, u) {
2529
+ P.__f = !0;
2530
+ var o = P.shouldComponentUpdate, i = P.componentWillUpdate;
2531
+ P.componentWillUpdate = function(a, l, u) {
2517
2532
  if (this.__e) {
2518
2533
  var d = o;
2519
2534
  o = void 0, s(a, l, u), o = d;
2520
2535
  }
2521
2536
  i && i.call(this, a, l, u);
2522
- }, A.shouldComponentUpdate = s;
2537
+ }, P.shouldComponentUpdate = s;
2523
2538
  }
2524
2539
  return r.__N || r.__;
2525
2540
  }
2526
2541
  function bn(t, e) {
2527
- var n = Tt(Te++, 3);
2528
- !O.__s && $n(n.__H, e) && (n.__ = t, n.u = e, A.__H.__h.push(n));
2542
+ var n = kt(ke++, 3);
2543
+ !O.__s && $n(n.__H, e) && (n.__ = t, n.u = e, P.__H.__h.push(n));
2529
2544
  }
2530
2545
  function wn(t, e) {
2531
- var n = Tt(Te++, 7);
2546
+ var n = kt(ke++, 7);
2532
2547
  return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
2533
2548
  }
2534
2549
  function Ci() {
@@ -2539,21 +2554,21 @@ function Ci() {
2539
2554
  }
2540
2555
  }
2541
2556
  O.__b = function(t) {
2542
- A = null, Ot && Ot(t);
2557
+ P = null, Ot && Ot(t);
2543
2558
  }, O.__ = function(t, e) {
2544
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
2559
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), xt && xt(t, e);
2545
2560
  }, O.__r = function(t) {
2546
- Dt && Dt(t), Te = 0;
2547
- var e = (A = t.__c).__H;
2548
- e && (Je === A ? (e.__h = [], A.__h = [], e.__.forEach(function(n) {
2561
+ Dt && Dt(t), ke = 0;
2562
+ var e = (P = t.__c).__H;
2563
+ e && (Je === P ? (e.__h = [], P.__h = [], e.__.forEach(function(n) {
2549
2564
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
2550
- })) : (e.__h.forEach(Re), e.__h.forEach(it), e.__h = [], Te = 0)), Je = A;
2565
+ })) : (e.__h.forEach(Re), e.__h.forEach(it), e.__h = [], ke = 0)), Je = P;
2551
2566
  }, O.diffed = function(t) {
2552
2567
  Rt && Rt(t);
2553
2568
  var e = t.__c;
2554
2569
  e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Nt === O.requestAnimationFrame || ((Nt = O.requestAnimationFrame) || Vi)(Ci)), e.__H.__.forEach(function(n) {
2555
2570
  n.u && (n.__H = n.u), n.u = void 0;
2556
- })), Je = A = null;
2571
+ })), Je = P = null;
2557
2572
  }, O.__c = function(t, e) {
2558
2573
  e.some(function(n) {
2559
2574
  try {
@@ -2577,20 +2592,20 @@ O.__b = function(t) {
2577
2592
  }
2578
2593
  }), n.__H = void 0, e && O.__e(e, n.__v));
2579
2594
  };
2580
- var xt = typeof requestAnimationFrame == "function";
2595
+ var Lt = typeof requestAnimationFrame == "function";
2581
2596
  function Vi(t) {
2582
2597
  var e, n = function() {
2583
- clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
2598
+ clearTimeout(r), Lt && cancelAnimationFrame(e), setTimeout(t);
2584
2599
  }, r = setTimeout(n, 35);
2585
- xt && (e = requestAnimationFrame(n));
2600
+ Lt && (e = requestAnimationFrame(n));
2586
2601
  }
2587
2602
  function Re(t) {
2588
- var e = A, n = t.__c;
2589
- typeof n == "function" && (t.__c = void 0, n()), A = e;
2603
+ var e = P, n = t.__c;
2604
+ typeof n == "function" && (t.__c = void 0, n()), P = e;
2590
2605
  }
2591
2606
  function it(t) {
2592
- var e = A;
2593
- t.__c = t.__(), A = e;
2607
+ var e = P;
2608
+ t.__c = t.__(), P = e;
2594
2609
  }
2595
2610
  function $n(t, e) {
2596
2611
  return !t || t.length !== e.length || e.some(function(n, r) {
@@ -2677,7 +2692,7 @@ function Ui(t) {
2677
2692
  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]
2678
2693
  })] });
2679
2694
  }
2680
- const zi = [
2695
+ const Ai = [
2681
2696
  "B",
2682
2697
  "kB",
2683
2698
  "MB",
@@ -2687,7 +2702,7 @@ const zi = [
2687
2702
  "EB",
2688
2703
  "ZB",
2689
2704
  "YB"
2690
- ], Pi = [
2705
+ ], zi = [
2691
2706
  "B",
2692
2707
  "KiB",
2693
2708
  "MiB",
@@ -2697,7 +2712,7 @@ const zi = [
2697
2712
  "EiB",
2698
2713
  "ZiB",
2699
2714
  "YiB"
2700
- ], Ai = [
2715
+ ], Pi = [
2701
2716
  "b",
2702
2717
  "kbit",
2703
2718
  "Mbit",
@@ -2730,7 +2745,7 @@ function Oi(t, e) {
2730
2745
  space: !0,
2731
2746
  ...e
2732
2747
  };
2733
- const n = e.bits ? e.binary ? Ni : Ai : e.binary ? Pi : zi, r = e.space ? " " : "";
2748
+ const n = e.bits ? e.binary ? Ni : Pi : e.binary ? zi : Ai, r = e.space ? " " : "";
2734
2749
  if (e.signed && t === 0)
2735
2750
  return ` 0${r}${n[0]}`;
2736
2751
  const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
@@ -2860,19 +2875,19 @@ const Fn = Symbol("uppy"), ji = I({
2860
2875
  };
2861
2876
  }
2862
2877
  });
2863
- function kn() {
2864
- const t = T(Fn);
2878
+ function Tn() {
2879
+ const t = k(Fn);
2865
2880
  return t || {
2866
2881
  uppy: void 0,
2867
2882
  status: "init",
2868
2883
  progress: 0
2869
2884
  };
2870
2885
  }
2871
- const Li = I({
2886
+ const xi = I({
2872
2887
  name: "Dropzone",
2873
2888
  props: ["width", "height", "note", "noClick"],
2874
2889
  setup(t) {
2875
- const e = W(null), n = kn();
2890
+ const e = W(null), n = Tn();
2876
2891
  function r() {
2877
2892
  e.value && gn(St(Ui, {
2878
2893
  ...t,
@@ -2887,11 +2902,11 @@ const Li = I({
2887
2902
  r();
2888
2903
  }, { deep: !0 }), () => rn("div", { ref: e });
2889
2904
  }
2890
- }), xi = I({
2905
+ }), Li = I({
2891
2906
  name: "FilesList",
2892
2907
  props: ["editFile", "imageThumbnail"],
2893
2908
  setup(t) {
2894
- const e = W(null), n = kn();
2909
+ const e = W(null), n = Tn();
2895
2910
  function r() {
2896
2911
  e.value && gn(St(Di, {
2897
2912
  ...t,
@@ -2907,7 +2922,7 @@ const Li = I({
2907
2922
  }, { deep: !0 }), () => rn("div", { ref: e });
2908
2923
  }
2909
2924
  });
2910
- function Tn(t) {
2925
+ function kn(t) {
2911
2926
  const e = t.lastIndexOf(".");
2912
2927
  return e === -1 || e === t.length - 1 ? {
2913
2928
  name: t,
@@ -2976,7 +2991,7 @@ function En(t) {
2976
2991
  var n;
2977
2992
  if (t.type)
2978
2993
  return t.type;
2979
- const e = t.name ? (n = Tn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
2994
+ const e = t.name ? (n = kn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
2980
2995
  return e && e in Ht ? Ht[e] : "application/octet-stream";
2981
2996
  }
2982
2997
  function qi(t) {
@@ -3044,15 +3059,15 @@ function Wt(t, e) {
3044
3059
  }
3045
3060
  return s;
3046
3061
  }
3047
- const Zi = (t) => {
3062
+ const Xi = (t) => {
3048
3063
  throw new Error(`missing string: ${t}`);
3049
3064
  };
3050
3065
  var Ee, Ie, ot;
3051
- class Xi {
3052
- constructor(e, { onMissingKey: n = Zi } = {}) {
3053
- L(this, Ie);
3066
+ class Zi {
3067
+ constructor(e, { onMissingKey: n = Xi } = {}) {
3068
+ x(this, Ie);
3054
3069
  R(this, "locale");
3055
- L(this, Ee);
3070
+ x(this, Ee);
3056
3071
  this.locale = {
3057
3072
  strings: {},
3058
3073
  pluralize(r) {
@@ -3109,8 +3124,8 @@ const Ki = {
3109
3124
  warn: (...t) => console.warn(`[Uppy] [${Be()}]`, ...t),
3110
3125
  error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
3111
3126
  };
3112
- var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3113
- function Ze(t) {
3127
+ var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3128
+ function Xe(t) {
3114
3129
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3115
3130
  }
3116
3131
  var Qi = function(e) {
@@ -3123,7 +3138,7 @@ var Qi = function(e) {
3123
3138
  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];
3124
3139
  return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
3125
3140
  };
3126
- const Ae = /* @__PURE__ */ Ze(Qi);
3141
+ const Pe = /* @__PURE__ */ Xe(Qi);
3127
3142
  function In(t, e) {
3128
3143
  this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
3129
3144
  }
@@ -3157,7 +3172,7 @@ var eo = function(t, e, n) {
3157
3172
  }
3158
3173
  return e ? n(e.split(";")[0]) : n;
3159
3174
  };
3160
- const so = /* @__PURE__ */ Ze(ro), io = {
3175
+ const so = /* @__PURE__ */ Xe(ro), io = {
3161
3176
  maxFileSize: null,
3162
3177
  minFileSize: null,
3163
3178
  maxTotalFileSize: null,
@@ -3198,8 +3213,8 @@ class oo {
3198
3213
  const o = [...e, ...n].reduce((i, a) => i + (a.size ?? 0), 0);
3199
3214
  if (o > r)
3200
3215
  throw new J(this.getI18n()("aggregateExceedsSize", {
3201
- sizeAllowed: Ae(r),
3202
- size: Ae(o)
3216
+ sizeAllowed: Pe(r),
3217
+ size: Pe(o)
3203
3218
  }));
3204
3219
  }
3205
3220
  }
@@ -3213,12 +3228,12 @@ class oo {
3213
3228
  }
3214
3229
  if (n && e.size != null && e.size > n)
3215
3230
  throw new J(this.getI18n()("exceedsSize", {
3216
- size: Ae(n),
3231
+ size: Pe(n),
3217
3232
  file: e.name ?? this.getI18n()("unnamed")
3218
3233
  }), { file: e });
3219
3234
  if (r && e.size != null && e.size < r)
3220
3235
  throw new J(this.getI18n()("inferiorSize", {
3221
- size: Ae(r)
3236
+ size: Pe(r)
3222
3237
  }), { file: e });
3223
3238
  }
3224
3239
  validate(e, n) {
@@ -3245,19 +3260,19 @@ class oo {
3245
3260
  const ao = "5.0.0", lo = {
3246
3261
  version: ao
3247
3262
  };
3248
- var ce, Le, Vn;
3263
+ var ce, xe, Vn;
3249
3264
  class Cn {
3250
3265
  constructor() {
3251
- L(this, Le);
3266
+ x(this, xe);
3252
3267
  R(this, "state", {});
3253
- L(this, ce, /* @__PURE__ */ new Set());
3268
+ x(this, ce, /* @__PURE__ */ new Set());
3254
3269
  }
3255
3270
  getState() {
3256
3271
  return this.state;
3257
3272
  }
3258
3273
  setState(e) {
3259
3274
  const n = { ...this.state }, r = { ...this.state, ...e };
3260
- this.state = r, F(this, Le, Vn).call(this, n, r, e);
3275
+ this.state = r, F(this, xe, Vn).call(this, n, r, e);
3261
3276
  }
3262
3277
  subscribe(e) {
3263
3278
  return b(this, ce).add(e), () => {
@@ -3265,7 +3280,7 @@ class Cn {
3265
3280
  };
3266
3281
  }
3267
3282
  }
3268
- ce = new WeakMap(), Le = new WeakSet(), Vn = function(...e) {
3283
+ ce = new WeakMap(), xe = new WeakSet(), Vn = function(...e) {
3269
3284
  b(this, ce).forEach((n) => {
3270
3285
  n(...e);
3271
3286
  });
@@ -3274,7 +3289,7 @@ function uo(t) {
3274
3289
  var e = typeof t;
3275
3290
  return t != null && (e == "object" || e == "function");
3276
3291
  }
3277
- var Et = uo, po = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, co = po, fo = co, ho = typeof self == "object" && self && self.Object === Object && self, mo = fo || ho || Function("return this")(), Mn = mo, go = Mn, yo = function() {
3292
+ var Et = uo, po = typeof ze == "object" && ze && ze.Object === Object && ze, co = po, fo = co, ho = typeof self == "object" && self && self.Object === Object && self, mo = fo || ho || Function("return this")(), Mn = mo, go = Mn, yo = function() {
3278
3293
  return go.Date.now();
3279
3294
  }, vo = yo, _o = /\s/;
3280
3295
  function bo(t) {
@@ -3286,7 +3301,7 @@ var wo = bo, $o = wo, So = /^\s+/;
3286
3301
  function Fo(t) {
3287
3302
  return t && t.slice(0, $o(t) + 1).replace(So, "");
3288
3303
  }
3289
- var ko = Fo, To = Mn, Eo = To.Symbol, Un = Eo, Yt = Un, zn = Object.prototype, Io = zn.hasOwnProperty, Co = zn.toString, we = Yt ? Yt.toStringTag : void 0;
3304
+ var To = Fo, ko = Mn, Eo = ko.Symbol, Un = Eo, Yt = Un, An = Object.prototype, Io = An.hasOwnProperty, Co = An.toString, we = Yt ? Yt.toStringTag : void 0;
3290
3305
  function Vo(t) {
3291
3306
  var e = Io.call(t, we), n = t[we];
3292
3307
  try {
@@ -3297,27 +3312,27 @@ function Vo(t) {
3297
3312
  var s = Co.call(t);
3298
3313
  return r && (e ? t[we] = n : delete t[we]), s;
3299
3314
  }
3300
- var Mo = Vo, Uo = Object.prototype, zo = Uo.toString;
3301
- function Po(t) {
3302
- return zo.call(t);
3315
+ var Mo = Vo, Uo = Object.prototype, Ao = Uo.toString;
3316
+ function zo(t) {
3317
+ return Ao.call(t);
3303
3318
  }
3304
- var Ao = Po, Zt = Un, No = Mo, Oo = Ao, Do = "[object Null]", Ro = "[object Undefined]", Xt = Zt ? Zt.toStringTag : void 0;
3319
+ var Po = zo, Xt = Un, No = Mo, Oo = Po, Do = "[object Null]", Ro = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3305
3320
  function Bo(t) {
3306
- return t == null ? t === void 0 ? Ro : Do : Xt && Xt in Object(t) ? No(t) : Oo(t);
3321
+ return t == null ? t === void 0 ? Ro : Do : Zt && Zt in Object(t) ? No(t) : Oo(t);
3307
3322
  }
3308
3323
  var jo = Bo;
3309
- function Lo(t) {
3324
+ function xo(t) {
3310
3325
  return t != null && typeof t == "object";
3311
3326
  }
3312
- var xo = Lo, qo = jo, Ho = xo, Go = "[object Symbol]";
3327
+ var Lo = xo, qo = jo, Ho = Lo, Go = "[object Symbol]";
3313
3328
  function Wo(t) {
3314
3329
  return typeof t == "symbol" || Ho(t) && qo(t) == Go;
3315
3330
  }
3316
- var Yo = Wo, Zo = ko, Kt = Et, Xo = Yo, Jt = NaN, Ko = /^[-+]0x[0-9a-f]+$/i, Jo = /^0b[01]+$/i, Qo = /^0o[0-7]+$/i, ea = parseInt;
3331
+ var Yo = Wo, Xo = To, Kt = Et, Zo = Yo, Jt = NaN, Ko = /^[-+]0x[0-9a-f]+$/i, Jo = /^0b[01]+$/i, Qo = /^0o[0-7]+$/i, ea = parseInt;
3317
3332
  function ta(t) {
3318
3333
  if (typeof t == "number")
3319
3334
  return t;
3320
- if (Xo(t))
3335
+ if (Zo(t))
3321
3336
  return Jt;
3322
3337
  if (Kt(t)) {
3323
3338
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
@@ -3325,7 +3340,7 @@ function ta(t) {
3325
3340
  }
3326
3341
  if (typeof t != "string")
3327
3342
  return t === 0 ? t : +t;
3328
- t = Zo(t);
3343
+ t = Xo(t);
3329
3344
  var n = Jo.test(t);
3330
3345
  return n || Qo.test(t) ? ea(t.slice(2), n ? 2 : 8) : Ko.test(t) ? Jt : +t;
3331
3346
  }
@@ -3340,21 +3355,21 @@ function aa(t, e, n) {
3340
3355
  return r = s = void 0, u = w, i = t.apply(N, U), i;
3341
3356
  }
3342
3357
  function v(w) {
3343
- return u = w, a = setTimeout(k, e), d ? h(w) : i;
3358
+ return u = w, a = setTimeout(T, e), d ? h(w) : i;
3344
3359
  }
3345
3360
  function V(w) {
3346
3361
  var U = w - l, N = w - u, G = e - U;
3347
3362
  return p ? oa(G, o - N) : G;
3348
3363
  }
3349
- function z(w) {
3364
+ function A(w) {
3350
3365
  var U = w - l, N = w - u;
3351
3366
  return l === void 0 || U >= e || U < 0 || p && N >= o;
3352
3367
  }
3353
- function k() {
3368
+ function T() {
3354
3369
  var w = et();
3355
- if (z(w))
3370
+ if (A(w))
3356
3371
  return E(w);
3357
- a = setTimeout(k, V(w));
3372
+ a = setTimeout(T, V(w));
3358
3373
  }
3359
3374
  function E(w) {
3360
3375
  return a = void 0, c && r ? h(w) : (r = s = void 0, i);
@@ -3366,14 +3381,14 @@ function aa(t, e, n) {
3366
3381
  return a === void 0 ? i : E(et());
3367
3382
  }
3368
3383
  function _() {
3369
- var w = et(), U = z(w);
3384
+ var w = et(), U = A(w);
3370
3385
  if (r = arguments, s = this, l = w, U) {
3371
3386
  if (a === void 0)
3372
3387
  return v(l);
3373
3388
  if (p)
3374
- return clearTimeout(a), a = setTimeout(k, e), h(l);
3389
+ return clearTimeout(a), a = setTimeout(T, e), h(l);
3375
3390
  }
3376
- return a === void 0 && (a = setTimeout(k, e)), i;
3391
+ return a === void 0 && (a = setTimeout(T, e)), i;
3377
3392
  }
3378
3393
  return _.cancel = Y, _.flush = f, _;
3379
3394
  }
@@ -3389,7 +3404,7 @@ function ca(t, e, n) {
3389
3404
  });
3390
3405
  }
3391
3406
  var fa = ca;
3392
- const ha = /* @__PURE__ */ Ze(fa);
3407
+ const ha = /* @__PURE__ */ Xe(fa);
3393
3408
  var ma = function() {
3394
3409
  var e = {}, n = e._fns = {};
3395
3410
  e.emit = function(i, a, l, u, d, p, c) {
@@ -3429,7 +3444,7 @@ var ma = function() {
3429
3444
  }
3430
3445
  return e;
3431
3446
  };
3432
- const ga = /* @__PURE__ */ Ze(ma);
3447
+ const ga = /* @__PURE__ */ Xe(ma);
3433
3448
  let ya = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", va = (t = 21) => {
3434
3449
  let e = "", n = t | 0;
3435
3450
  for (; n--; )
@@ -3522,20 +3537,20 @@ const Ne = {
3522
3537
  error: null,
3523
3538
  recoveredState: null
3524
3539
  };
3525
- var X, K, Ce, le, fe, he, ue, y, oe, lt, Pn, An, Nn, ut, dt, pt, ct, xe, ft, de, On, Dn, se, Ve, $e, Rn, ht, Se;
3540
+ var Z, K, Ce, le, fe, he, ue, y, oe, lt, zn, Pn, Nn, ut, dt, pt, ct, Le, ft, de, On, Dn, se, Ve, $e, Rn, ht, Se;
3526
3541
  const qe = class qe {
3527
3542
  /**
3528
3543
  * Instantiate Uppy
3529
3544
  */
3530
3545
  constructor(e) {
3531
- L(this, y);
3532
- L(this, X, /* @__PURE__ */ Object.create(null));
3533
- L(this, K);
3534
- L(this, Ce);
3535
- L(this, le, ga());
3536
- L(this, fe, /* @__PURE__ */ new Set());
3537
- L(this, he, /* @__PURE__ */ new Set());
3538
- L(this, ue, /* @__PURE__ */ new Set());
3546
+ x(this, y);
3547
+ x(this, Z, /* @__PURE__ */ Object.create(null));
3548
+ x(this, K);
3549
+ x(this, Ce);
3550
+ x(this, le, ga());
3551
+ x(this, fe, /* @__PURE__ */ new Set());
3552
+ x(this, he, /* @__PURE__ */ new Set());
3553
+ x(this, ue, /* @__PURE__ */ new Set());
3539
3554
  R(this, "defaultLocale");
3540
3555
  R(this, "locale");
3541
3556
  // The user optionally passes in options, but we set defaults for missing options.
@@ -3547,7 +3562,7 @@ const qe = class qe {
3547
3562
  R(this, "i18nArray");
3548
3563
  R(this, "scheduledAutoProceed", null);
3549
3564
  R(this, "wasOffline", !1);
3550
- L(this, xe, (e, n) => {
3565
+ x(this, Le, (e, n) => {
3551
3566
  const r = e ? this.getFile(e.id) : void 0;
3552
3567
  if (e == null || !r) {
3553
3568
  this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
@@ -3582,8 +3597,8 @@ const qe = class qe {
3582
3597
  // and click 'ADD MORE FILES', - focus won't activate in Firefox.
3583
3598
  // - We must throttle at around >500ms to avoid performance lags.
3584
3599
  // [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
3585
- L(this, de, ha(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
3586
- L(this, se, this.updateOnlineStatus.bind(this));
3600
+ x(this, de, ha(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
3601
+ x(this, se, this.updateOnlineStatus.bind(this));
3587
3602
  // We need to store request clients by a unique ID, so we can share RequestClient instances across files
3588
3603
  // this allows us to do rate limiting and synchronous operations like refreshing provider tokens
3589
3604
  // example: refreshing tokens: if each file has their own requestclient,
@@ -3594,7 +3609,7 @@ const qe = class qe {
3594
3609
  // back when we had a requestclient per file, once an access token expired,
3595
3610
  // all 6 files would go ahead and refresh the token at the same time
3596
3611
  // (calling /refresh-token up to 6 times), which will probably fail for some providers
3597
- L(this, Ve, /* @__PURE__ */ new Map());
3612
+ x(this, Ve, /* @__PURE__ */ new Map());
3598
3613
  this.defaultLocale = $a;
3599
3614
  const n = {
3600
3615
  id: "uppy",
@@ -3689,7 +3704,7 @@ const qe = class qe {
3689
3704
  this.patchFilesState({ [e]: n });
3690
3705
  }
3691
3706
  i18nInit() {
3692
- const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Xi([this.defaultLocale, this.opts.locale], {
3707
+ const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Zi([this.defaultLocale, this.opts.locale], {
3693
3708
  onMissingKey: e
3694
3709
  });
3695
3710
  this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
@@ -4010,24 +4025,24 @@ const qe = class qe {
4010
4025
  Uppy plugins must have unique \`id\` options.`;
4011
4026
  throw new Error(i);
4012
4027
  }
4013
- return e.VERSION && this.log(`Using ${s} v${e.VERSION}`), r.type in b(this, X) ? b(this, X)[r.type].push(r) : b(this, X)[r.type] = [r], r.install(), this.emit("plugin-added", r), this;
4028
+ return e.VERSION && this.log(`Using ${s} v${e.VERSION}`), r.type in b(this, Z) ? b(this, Z)[r.type].push(r) : b(this, Z)[r.type] = [r], r.install(), this.emit("plugin-added", r), this;
4014
4029
  }
4015
4030
  getPlugin(e) {
4016
- for (const n of Object.values(b(this, X))) {
4031
+ for (const n of Object.values(b(this, Z))) {
4017
4032
  const r = n.find((s) => s.id === e);
4018
4033
  if (r != null)
4019
4034
  return r;
4020
4035
  }
4021
4036
  }
4022
4037
  [Symbol.for("uppy test: getPlugins")](e) {
4023
- return b(this, X)[e];
4038
+ return b(this, Z)[e];
4024
4039
  }
4025
4040
  /**
4026
4041
  * Iterate through all `use`d plugins.
4027
4042
  *
4028
4043
  */
4029
4044
  iteratePlugins(e) {
4030
- Object.values(b(this, X)).flat(1).forEach(e);
4045
+ Object.values(b(this, Z)).flat(1).forEach(e);
4031
4046
  }
4032
4047
  /**
4033
4048
  * Uninstall and remove a plugin.
@@ -4036,7 +4051,7 @@ Uppy plugins must have unique \`id\` options.`;
4036
4051
  */
4037
4052
  removePlugin(e) {
4038
4053
  this.log(`Removing plugin ${e.id}`), this.emit("plugin-remove", e), e.uninstall && e.uninstall();
4039
- const n = b(this, X)[e.type], r = n.findIndex((i) => i.id === e.id);
4054
+ const n = b(this, Z)[e.type], r = n.findIndex((i) => i.id === e.id);
4040
4055
  r !== -1 && n.splice(r, 1);
4041
4056
  const o = {
4042
4057
  plugins: {
@@ -4137,7 +4152,7 @@ Uppy plugins must have unique \`id\` options.`;
4137
4152
  */
4138
4153
  async upload() {
4139
4154
  var s;
4140
- (s = b(this, X).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
4155
+ (s = b(this, Z).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
4141
4156
  let { files: e } = this.getState();
4142
4157
  if (F(this, y, pt).call(this).length > 0) {
4143
4158
  const o = await F(this, y, ct).call(this);
@@ -4152,7 +4167,7 @@ Uppy plugins must have unique \`id\` options.`;
4152
4167
  files: e
4153
4168
  }));
4154
4169
  try {
4155
- if (b(this, K).validateMinNumberOfFiles(e), !F(this, y, Pn).call(this, e))
4170
+ if (b(this, K).validateMinNumberOfFiles(e), !F(this, y, zn).call(this, e))
4156
4171
  throw new J(this.i18n("missingRequiredMetaField"));
4157
4172
  const { currentUploads: o } = this.getState(), i = Object.values(o).flatMap((d) => d.fileIDs), a = Object.keys(e).filter((d) => {
4158
4173
  const p = this.getFile(d);
@@ -4164,7 +4179,7 @@ Uppy plugins must have unique \`id\` options.`;
4164
4179
  }
4165
4180
  }
4166
4181
  };
4167
- X = new WeakMap(), K = new WeakMap(), Ce = new WeakMap(), le = new WeakMap(), fe = new WeakMap(), he = new WeakMap(), ue = new WeakMap(), y = new WeakSet(), oe = function(e) {
4182
+ Z = new WeakMap(), K = new WeakMap(), Ce = new WeakMap(), le = new WeakMap(), fe = new WeakMap(), he = new WeakMap(), ue = new WeakMap(), y = new WeakSet(), oe = function(e) {
4168
4183
  for (const i of e)
4169
4184
  i.isRestriction ? this.emit("restriction-failed", i.file, i) : this.emit("error", i, i.file), this.log(i, "warning");
4170
4185
  const n = e.filter((i) => i.isUserFacing), r = 4, s = n.slice(0, r), o = n.slice(r);
@@ -4183,12 +4198,12 @@ X = new WeakMap(), K = new WeakMap(), Ce = new WeakMap(), le = new WeakMap(), fe
4183
4198
  }), this.log(r.message), this.emit("restriction-failed", e, r), !1) : (n.length === 0 && e.missingRequiredMetaFields && this.setFileState(e.id, {
4184
4199
  missingRequiredMetaFields: []
4185
4200
  }), !0);
4186
- }, Pn = function(e) {
4201
+ }, zn = function(e) {
4187
4202
  let n = !0;
4188
4203
  for (const r of Object.values(e))
4189
4204
  F(this, y, lt).call(this, r) || (n = !1);
4190
4205
  return n;
4191
- }, An = function(e) {
4206
+ }, Pn = function(e) {
4192
4207
  const { allowNewUpload: n } = this.getState();
4193
4208
  if (n === !1) {
4194
4209
  const r = new J(this.i18n("noMoreFilesAllowed"), {
@@ -4209,7 +4224,7 @@ Nn = function(e) {
4209
4224
  isRemote: !1,
4210
4225
  source: void 0,
4211
4226
  preview: void 0
4212
- } : e, r = En(n), s = wa(r, n), o = Tn(s).extension, i = Wi(n, this.getID()), a = {
4227
+ } : e, r = En(n), s = wa(r, n), o = kn(s).extension, i = Wi(n, this.getID()), a = {
4213
4228
  ...n.meta,
4214
4229
  name: s,
4215
4230
  type: r
@@ -4256,7 +4271,7 @@ ut = function() {
4256
4271
  for (const i of e)
4257
4272
  try {
4258
4273
  let a = F(this, y, Nn).call(this, i);
4259
- F(this, y, An).call(this, a);
4274
+ F(this, y, Pn).call(this, a);
4260
4275
  const l = n[a.id], u = l == null ? void 0 : l.isGhost;
4261
4276
  if (u && !a.isRemote) {
4262
4277
  if (a.data == null)
@@ -4319,7 +4334,7 @@ ut = function() {
4319
4334
  // create new upload even if allowNewUpload: false
4320
4335
  });
4321
4336
  return F(this, y, Se).call(this, r);
4322
- }, xe = new WeakMap(), ft = function() {
4337
+ }, Le = new WeakMap(), ft = function() {
4323
4338
  const e = F(this, y, On).call(this);
4324
4339
  let n = null;
4325
4340
  e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
@@ -4382,7 +4397,7 @@ Dn = function() {
4382
4397
  ]));
4383
4398
  this.patchFilesState(i);
4384
4399
  };
4385
- this.on("upload-start", r), this.on("upload-progress", b(this, xe)), this.on("upload-success", (s, o) => {
4400
+ this.on("upload-start", r), this.on("upload-progress", b(this, Le)), this.on("upload-success", (s, o) => {
4386
4401
  if (s == null || !this.getFile(s.id)) {
4387
4402
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
4388
4403
  return;
@@ -4570,7 +4585,7 @@ const Fa = {
4570
4585
  ],
4571
4586
  setup(t, { emit: e }) {
4572
4587
  var Y;
4573
- const n = t, r = e, s = W(null), o = W(null), i = Yn(null), a = W(!1), l = W(!1), u = W(0), d = T("form", { value: {}, errors: {}, getID: (f) => f }), p = T("group", null), c = q({
4588
+ const n = t, r = e, s = W(null), o = W(null), i = Yn(null), a = W(!1), l = W(!1), u = W(0), d = k("form", { value: {}, errors: {}, getID: (f) => f }), p = k("group", null), c = q({
4574
4589
  get() {
4575
4590
  var f;
4576
4591
  return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
@@ -4631,9 +4646,9 @@ const Fa = {
4631
4646
  }, (f, _) => {
4632
4647
  f === !0 && _ === !1 && h();
4633
4648
  }), ye(() => {
4634
- var f, _, w, U, N, G, te, P;
4635
- n.useXHR && import("./index-Bh4eONwE.js").then((Z) => {
4636
- const pe = Z.default;
4649
+ var f, _, w, U, N, G, te, z;
4650
+ n.useXHR && import("./index--Kk3oGRK.js").then((X) => {
4651
+ const pe = X.default;
4637
4652
  i.value.use(pe, {
4638
4653
  method: "POST",
4639
4654
  endpoint: n.url,
@@ -4642,9 +4657,9 @@ const Fa = {
4642
4657
  },
4643
4658
  ...n.XHRConfig
4644
4659
  });
4645
- }), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = E(i.value.opts.restrictions)), o && ((G = (N = (U = (w = i.value) == null ? void 0 : w.opts) == null ? void 0 : U.locale) == null ? void 0 : N.strings) != null && G.dropzoneText) && ((P = (te = o.value) == null ? void 0 : te.querySelectorAll('[data-uppy-element="dropzone"]>div>div>p')) == null || P.forEach((Z) => {
4660
+ }), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = E(i.value.opts.restrictions)), o && ((G = (N = (U = (w = i.value) == null ? void 0 : w.opts) == null ? void 0 : U.locale) == null ? void 0 : N.strings) != null && G.dropzoneText) && ((z = (te = o.value) == null ? void 0 : te.querySelectorAll('[data-uppy-element="dropzone"]>div>div>p')) == null || z.forEach((X) => {
4646
4661
  var pe, It, Ct, Vt;
4647
- Z.innerHTML = (Vt = (Ct = (It = (pe = i.value) == null ? void 0 : pe.opts) == null ? void 0 : It.locale) == null ? void 0 : Ct.strings) == null ? void 0 : Vt.dropzoneText;
4662
+ X.innerHTML = (Vt = (Ct = (It = (pe = i.value) == null ? void 0 : pe.opts) == null ? void 0 : It.locale) == null ? void 0 : Ct.strings) == null ? void 0 : Vt.dropzoneText;
4648
4663
  }));
4649
4664
  }), mt(() => {
4650
4665
  l.value = !0, i.value && i.value.destroy();
@@ -4661,12 +4676,12 @@ const Fa = {
4661
4676
  _.textContent = f, _.className = "uppy-error", o.value && (o.value.prepend(_), setTimeout(() => _.remove(), 3e3));
4662
4677
  }
4663
4678
  }
4664
- const z = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4665
- function k(f) {
4679
+ const A = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4680
+ function T(f) {
4666
4681
  let _ = 0, w = parseInt(f, 10) || 0;
4667
4682
  for (; w >= 1024 && ++_; )
4668
4683
  w = w / 1024;
4669
- return w.toFixed(w < 10 && _ > 0 ? 1 : 0) + z[_];
4684
+ return w.toFixed(w < 10 && _ > 0 ? 1 : 0) + A[_];
4670
4685
  }
4671
4686
  function E(f) {
4672
4687
  if (!f) return "";
@@ -4677,12 +4692,12 @@ const Fa = {
4677
4692
  maxNumberOfFiles: N,
4678
4693
  minNumberOfFiles: G,
4679
4694
  maxTotalFileSize: te
4680
- } = f, P = [];
4695
+ } = f, z = [];
4681
4696
  if (_ && _.length) {
4682
- const Z = _.map((pe) => pe.replace(".", "")).join("، ");
4683
- P.push(`فقط فایل‌های ${Z}`);
4697
+ const X = _.map((pe) => pe.replace(".", "")).join("، ");
4698
+ z.push(`فقط فایل‌های ${X}`);
4684
4699
  }
4685
- return N && N > 1 && P.push(`امکان انتخاب حداکثر ${N} فایل`), G && P.push(`حداقل ${G} فایل نیاز است`), w && P.push(`با حداکثر حجم ${k(w)} برای هر فایل`), U && P.push(`با حداقل حجم ${k(U)} برای هر فایل`), te && P.push(`و مجموع حجم کل حداکثر ${k(te)}`), P.length ? P.join("، ") + " مجاز است." : "";
4700
+ return N && N > 1 && z.push(`امکان انتخاب حداکثر ${N} فایل`), G && z.push(`حداقل ${G} فایل نیاز است`), w && z.push(`با حداکثر حجم ${T(w)} برای هر فایل`), U && z.push(`با حداقل حجم ${T(U)} برای هر فایل`), te && z.push(`و مجموع حجم کل حداکثر ${T(te)}`), z.length ? z.join("، ") + " مجاز است." : "";
4686
4701
  }
4687
4702
  return (f, _) => i.value ? (m(), g("div", {
4688
4703
  key: 0,
@@ -4696,8 +4711,8 @@ const Fa = {
4696
4711
  }, {
4697
4712
  default: ie(() => [
4698
4713
  D(f.$slots, "default", { uppy: i.value }, () => [
4699
- Q(Ke(xi), { class: "uppy-file-lists" }),
4700
- Q(Ke(Li), { class: "uppy-drop-zone" })
4714
+ Q(Ke(Li), { class: "uppy-file-lists" }),
4715
+ Q(Ke(xi), { class: "uppy-drop-zone" })
4701
4716
  ])
4702
4717
  ]),
4703
4718
  _: 3
@@ -4708,31 +4723,31 @@ const Fa = {
4708
4723
  };
4709
4724
  export {
4710
4725
  Ua as A,
4711
- za as C,
4726
+ Aa as C,
4712
4727
  Ba as E,
4713
4728
  Ra as F,
4714
4729
  ys as G,
4715
- xa as L,
4730
+ La as L,
4716
4731
  qa as M,
4717
4732
  Oa as P,
4718
- As as Q,
4733
+ Ps as Q,
4719
4734
  el as R,
4720
4735
  Qa as S,
4721
- Xi as T,
4736
+ Zi as T,
4722
4737
  Ja as _,
4723
- Pa as a,
4724
- Aa as b,
4738
+ za as a,
4739
+ Pa as b,
4725
4740
  Na as c,
4726
4741
  Da as d,
4727
4742
  tl as e,
4728
4743
  ja as f,
4729
4744
  Ha as g,
4730
4745
  Ga as h,
4731
- Za as i,
4746
+ Xa as i,
4732
4747
  Ya as j,
4733
4748
  Wa as k,
4734
- La as l,
4735
- Xa as m,
4749
+ xa as l,
4750
+ Za as m,
4736
4751
  Ka as n,
4737
4752
  Ge as o
4738
4753
  };