inertia-bootstrap-forms 2.1.3 → 2.1.5

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;
@@ -930,6 +930,10 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
930
930
  method: {
931
931
  default: "post"
932
932
  },
933
+ autoTab: {
934
+ type: Boolean,
935
+ default: !0
936
+ },
933
937
  only: {
934
938
  type: Array,
935
939
  default: [],
@@ -956,7 +960,7 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
956
960
  }
957
961
  },
958
962
  setup(t) {
959
- const e = xn("formEl"), n = tn(t.modelValue), r = Xn({
963
+ const e = Ln("formEl"), n = tn(t.modelValue), r = Zn({
960
964
  hasMessage: !1,
961
965
  successMessage: null,
962
966
  ...t.options,
@@ -995,6 +999,22 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
995
999
  }
996
1000
  },
997
1001
  methods: {
1002
+ handleAutoTab(t) {
1003
+ var r;
1004
+ if (((r = this.formEl) == null ? void 0 : r.dataset.autotab) !== "true") return;
1005
+ const e = t.target;
1006
+ if (!["INPUT", "TEXTAREA"].includes(e.tagName)) return;
1007
+ const n = e.maxLength;
1008
+ n > 0 && e.value.length >= n && this.focusNextField(e);
1009
+ },
1010
+ focusNextField(t) {
1011
+ const e = Array.from(
1012
+ this.formEl.querySelectorAll("input, select, textarea")
1013
+ ).filter(
1014
+ (s) => !s.disabled && s.tabIndex !== -1 && s.type !== "hidden" && s.offsetParent !== null
1015
+ ), n = e.indexOf(t), r = e[n + 1];
1016
+ r && (r.focus(), r.tagName !== "SELECT" && typeof r.select == "function" && r.select());
1017
+ },
998
1018
  reset() {
999
1019
  this.form.reset();
1000
1020
  },
@@ -1029,16 +1049,18 @@ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
1029
1049
  }
1030
1050
  },
1031
1051
  expose: ["submit", "reset"]
1032
- }), _s = ["action", "method", "novalidate"], bs = { class: "list-unstyled p-0 m-0 fanum" };
1052
+ }), _s = ["action", "method", "data-autotab", "novalidate"], bs = { class: "list-unstyled p-0 m-0 fanum" };
1033
1053
  function ws(t, e, n, r, s, o) {
1034
1054
  const i = j("Alert");
1035
1055
  return m(), g("form", {
1036
1056
  ref: "formEl",
1037
1057
  action: t.url,
1038
1058
  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 }),
1059
+ "data-autotab": t.autoTab ? "true" : "",
1060
+ onInput: e[0] || (e[0] = (...a) => t.handleAutoTab && t.handleAutoTab(...a)),
1061
+ onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
1062
+ onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
1063
+ class: L({ "form-processing": t.form.processing }),
1042
1064
  novalidate: !!Object.values(t.form.errors).length
1043
1065
  }, [
1044
1066
  D(t.$slots, "errors", {}, () => [
@@ -1077,13 +1099,13 @@ const ja = /* @__PURE__ */ M(vs, [["render", ws]]), $s = I({
1077
1099
  key: 0,
1078
1100
  class: "text-danger"
1079
1101
  };
1080
- function ks(t, e, n, r, s, o) {
1102
+ function Ts(t, e, n, r, s, o) {
1081
1103
  return m(), g("label", Ss, [
1082
1104
  D(t.$slots, "default", {}, void 0, !0),
1083
1105
  t.required ? (m(), g("span", Fs, "*")) : B("", !0)
1084
1106
  ]);
1085
1107
  }
1086
- const La = /* @__PURE__ */ M($s, [["render", ks], ["__scopeId", "data-v-bfeb9beb"]]), Ts = I({
1108
+ const xa = /* @__PURE__ */ M($s, [["render", Ts], ["__scopeId", "data-v-bfeb9beb"]]), ks = I({
1087
1109
  name: "LocationInput",
1088
1110
  components: {
1089
1111
  LMap: Qn,
@@ -1107,7 +1129,7 @@ const La = /* @__PURE__ */ M($s, [["render", ks], ["__scopeId", "data-v-bfeb9beb
1107
1129
  modelValue: Object
1108
1130
  },
1109
1131
  setup(t) {
1110
- let e = T("form");
1132
+ let e = k("form");
1111
1133
  return e === void 0 && (e = {
1112
1134
  errors: {},
1113
1135
  zoom: 8,
@@ -1144,7 +1166,7 @@ function Es(t, e, n, r, s, o) {
1144
1166
  var u;
1145
1167
  const i = j("l-tile-layer"), a = j("LMarker"), l = j("l-map");
1146
1168
  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 }])
1169
+ 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
1170
  }, [
1149
1171
  Q(l, {
1150
1172
  ref: "map",
@@ -1171,7 +1193,7 @@ function Es(t, e, n, r, s, o) {
1171
1193
  }, 8, ["zoom", "center", "onClick"])
1172
1194
  ], 2);
1173
1195
  }
1174
- const xa = /* @__PURE__ */ M(Ts, [["render", Es]]), Is = I({
1196
+ const La = /* @__PURE__ */ M(ks, [["render", Es]]), Is = I({
1175
1197
  components: {
1176
1198
  TextInput: Ge
1177
1199
  },
@@ -1235,7 +1257,7 @@ const Ha = /* @__PURE__ */ M(Vs, [["render", Ms]]), Us = I({
1235
1257
  }
1236
1258
  },
1237
1259
  setup(t) {
1238
- let e = T("form"), n = T("group", {});
1260
+ let e = k("form"), n = k("group", {});
1239
1261
  e === void 0 && (e = {
1240
1262
  errors: {},
1241
1263
  getID(s) {
@@ -1269,8 +1291,8 @@ const Ha = /* @__PURE__ */ M(Vs, [["render", Ms]]), Us = I({
1269
1291
  data() {
1270
1292
  return {};
1271
1293
  }
1272
- }), zs = ["name", "value", "disabled", "readonly"];
1273
- function Ps(t, e, n, r, s, o) {
1294
+ }), As = ["name", "value", "disabled", "readonly"];
1295
+ function zs(t, e, n, r, s, o) {
1274
1296
  const i = j("InputGroupText"), a = j("InputGroup"), l = qn("maska");
1275
1297
  return m(), ee(a, { class: "input-group-quantity" }, {
1276
1298
  default: ie(() => [
@@ -1298,11 +1320,11 @@ function Ps(t, e, n, r, s, o) {
1298
1320
  "data-maska": "###,###,###,###,###,###,###",
1299
1321
  "data-maska-reversed": "",
1300
1322
  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"]),
1323
+ class: L([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1302
1324
  disabled: t.disabled || t.form.processing,
1303
1325
  readonly: t.readonly,
1304
1326
  type: "tel"
1305
- }, null, 42, zs), [
1327
+ }, null, 42, As), [
1306
1328
  [l]
1307
1329
  ]),
1308
1330
  $("button", {
@@ -1335,8 +1357,8 @@ function Ps(t, e, n, r, s, o) {
1335
1357
  _: 3
1336
1358
  });
1337
1359
  }
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 },
1360
+ const Ps = /* @__PURE__ */ M(Us, [["render", zs]]), Ns = I({
1361
+ components: { GroupControl: ys, QuantityInput: Ps, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1340
1362
  props: {
1341
1363
  name: {
1342
1364
  type: String,
@@ -1372,7 +1394,7 @@ const As = /* @__PURE__ */ M(Us, [["render", Ps]]), Ns = I({
1372
1394
  }
1373
1395
  },
1374
1396
  setup(t) {
1375
- let e = T("form"), n = T("group", {});
1397
+ let e = k("form"), n = k("group", {});
1376
1398
  return e === void 0 && (e = {
1377
1399
  errors: {},
1378
1400
  getID(s) {
@@ -1425,7 +1447,7 @@ function js(t, e, n, r, s, o) {
1425
1447
  onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
1426
1448
  }, H(t.totalQuantity) + " " + H(t.unit), 1),
1427
1449
  $("div", {
1428
- class: x(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1450
+ class: L(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1429
1451
  }, [
1430
1452
  Q(a, { name: t.name }, {
1431
1453
  default: ie(() => [
@@ -1448,7 +1470,7 @@ function js(t, e, n, r, s, o) {
1448
1470
  ], 2)
1449
1471
  ], 512);
1450
1472
  }
1451
- const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), Ls = I({
1473
+ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), xs = I({
1452
1474
  emits: ["update:modelValue", "search", "searching", "change", "selected"],
1453
1475
  props: {
1454
1476
  name: {
@@ -1505,12 +1527,12 @@ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), Ls = I({
1505
1527
  }
1506
1528
  },
1507
1529
  setup(t) {
1508
- let e = T("form", {
1530
+ let e = k("form", {
1509
1531
  errors: {},
1510
1532
  getID(s) {
1511
1533
  return s;
1512
1534
  }
1513
- }), n = T("group", {});
1535
+ }), n = k("group", {});
1514
1536
  return { modelValue: q({
1515
1537
  get() {
1516
1538
  var s;
@@ -1631,10 +1653,10 @@ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), Ls = I({
1631
1653
  }
1632
1654
  };
1633
1655
  }
1634
- }), xs = ["name", "id"], qs = ["value", "selected"];
1656
+ }), Ls = ["name", "id"], qs = ["value", "selected"];
1635
1657
  function Hs(t, e, n, r, s, o) {
1636
1658
  return m(), g("div", {
1637
- class: x(["select2-controller", {
1659
+ class: L(["select2-controller", {
1638
1660
  "is-invalid": t.form.errors[t.name],
1639
1661
  "select2-dropdown-hidden": t.hideDropdown === !0
1640
1662
  }])
@@ -1653,12 +1675,12 @@ function Hs(t, e, n, r, s, o) {
1653
1675
  value: t.getKeyFromItem(i),
1654
1676
  selected: t.selected(i)
1655
1677
  }, H(t.getLabelFromItem(i)), 9, qs))), 256))
1656
- ], 16, xs), [
1678
+ ], 16, Ls), [
1657
1679
  [Hn, t.modelValue]
1658
1680
  ])
1659
1681
  ], 2);
1660
1682
  }
1661
- const Wa = /* @__PURE__ */ M(Ls, [["render", Hs]]), Gs = I({
1683
+ const Wa = /* @__PURE__ */ M(xs, [["render", Hs]]), Gs = I({
1662
1684
  emits: ["update:modelValue"],
1663
1685
  props: {
1664
1686
  name: {
@@ -1691,7 +1713,7 @@ const Wa = /* @__PURE__ */ M(Ls, [["render", Hs]]), Gs = I({
1691
1713
  }
1692
1714
  },
1693
1715
  setup(t) {
1694
- let e = T("form");
1716
+ let e = k("form");
1695
1717
  return e === void 0 && (e = {
1696
1718
  errors: {},
1697
1719
  getID(n) {
@@ -1737,7 +1759,7 @@ const Wa = /* @__PURE__ */ M(Ls, [["render", Hs]]), Gs = I({
1737
1759
  key: 0,
1738
1760
  class: "rating-value fanum"
1739
1761
  };
1740
- function Zs(t, e, n, r, s, o) {
1762
+ function Xs(t, e, n, r, s, o) {
1741
1763
  return m(), g("div", Ws, [
1742
1764
  $("div", {
1743
1765
  class: "star-rating-container",
@@ -1760,7 +1782,7 @@ function Zs(t, e, n, r, s, o) {
1760
1782
  t.showValue && t.displayRating > 0 ? (m(), g("div", Ys, H(t.displayRating), 1)) : B("", !0)
1761
1783
  ]);
1762
1784
  }
1763
- const Ya = /* @__PURE__ */ M(Gs, [["render", Zs]]), Xs = I({
1785
+ const Ya = /* @__PURE__ */ M(Gs, [["render", Xs]]), Zs = I({
1764
1786
  components: {
1765
1787
  Spinner: br
1766
1788
  },
@@ -1794,7 +1816,7 @@ function Qs(t, e, n, r, s, o) {
1794
1816
  })
1795
1817
  ], 8, Ks);
1796
1818
  }
1797
- const Za = /* @__PURE__ */ M(Xs, [["render", Qs]]), ei = I({
1819
+ const Xa = /* @__PURE__ */ M(Zs, [["render", Qs]]), ei = I({
1798
1820
  components: {
1799
1821
  VueTelInput: er
1800
1822
  },
@@ -1810,7 +1832,7 @@ const Za = /* @__PURE__ */ M(Xs, [["render", Qs]]), ei = I({
1810
1832
  }
1811
1833
  },
1812
1834
  setup(t) {
1813
- let e = T("form");
1835
+ let e = k("form");
1814
1836
  return e === void 0 && (e = {
1815
1837
  errors: {},
1816
1838
  getID(n) {
@@ -1858,7 +1880,7 @@ function ni(t, e, n, r, s, o) {
1858
1880
  }, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
1859
1881
  ]);
1860
1882
  }
1861
- const Xa = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1883
+ const Za = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1862
1884
  props: {
1863
1885
  name: {
1864
1886
  type: String,
@@ -1866,12 +1888,12 @@ const Xa = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1866
1888
  }
1867
1889
  },
1868
1890
  setup(t) {
1869
- let e = T("form", {
1891
+ let e = k("form", {
1870
1892
  errors: {},
1871
1893
  getID(s) {
1872
1894
  return s;
1873
1895
  }
1874
- }), n = T("group", {});
1896
+ }), n = k("group", {});
1875
1897
  return { modelValue: q({
1876
1898
  get() {
1877
1899
  var s;
@@ -1889,7 +1911,7 @@ function ii(t, e, n, r, s, o) {
1889
1911
  return re((m(), g("textarea", {
1890
1912
  name: t.name,
1891
1913
  "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"]),
1914
+ class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
1893
1915
  disabled: (a = t.form) == null ? void 0 : a.processing
1894
1916
  }, null, 10, si)), [
1895
1917
  [He, t.modelValue]
@@ -1912,11 +1934,11 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
1912
1934
  },
1913
1935
  emits: ["update:modelValue"],
1914
1936
  setup(t, { emit: e }) {
1915
- const n = t, r = e, s = T("form", {
1937
+ const n = t, r = e, s = k("form", {
1916
1938
  value: {},
1917
1939
  errors: {},
1918
1940
  getID: (u) => u
1919
- }), o = T("group", null), i = W(null), a = W(null), l = q({
1941
+ }), o = k("group", null), i = W(null), a = W(null), l = q({
1920
1942
  get() {
1921
1943
  var u;
1922
1944
  return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
@@ -1979,7 +2001,7 @@ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
1979
2001
  }
1980
2002
  },
1981
2003
  setup(t) {
1982
- let e = T("form");
2004
+ let e = k("form");
1983
2005
  return e === void 0 && (e = {
1984
2006
  errors: {},
1985
2007
  getID(n) {
@@ -2059,7 +2081,7 @@ function yi(t, e, n, r, s, o) {
2059
2081
  $("input", {
2060
2082
  ref: "input",
2061
2083
  name: t.name,
2062
- class: x([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2084
+ class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2063
2085
  disabled: (a = t.form) == null ? void 0 : a.processing,
2064
2086
  type: "file",
2065
2087
  multiple: t.multiple,
@@ -2157,12 +2179,12 @@ const Qa = /* @__PURE__ */ M(oi, [["render", yi]]), vi = I({
2157
2179
  }
2158
2180
  },
2159
2181
  setup(t) {
2160
- let e = T("form", {
2182
+ let e = k("form", {
2161
2183
  errors: {},
2162
2184
  getID(s) {
2163
2185
  return s;
2164
2186
  }
2165
- }), n = T("group", {});
2187
+ }), n = k("group", {});
2166
2188
  return { modelValue: q({
2167
2189
  get() {
2168
2190
  var s;
@@ -2219,7 +2241,7 @@ function bi(t, e, n, r, s, o) {
2219
2241
  ], 512);
2220
2242
  }
2221
2243
  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;
2244
+ 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
2245
  function ne(t, e) {
2224
2246
  for (var n in e) t[n] = e[n];
2225
2247
  return t;
@@ -2258,7 +2280,7 @@ function dn(t) {
2258
2280
  return dn(t);
2259
2281
  }
2260
2282
  }
2261
- function zt(t) {
2283
+ function At(t) {
2262
2284
  (!t.__d && (t.__d = !0) && ae.push(t) && !je.__r++ || Ut != C.debounceRendering) && ((Ut = C.debounceRendering) || on)(je);
2263
2285
  }
2264
2286
  function je() {
@@ -2266,8 +2288,8 @@ function je() {
2266
2288
  je.__r = 0;
2267
2289
  }
2268
2290
  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);
2291
+ var p, c, h, v, V, A, T, E = r && r.__k || un, Y = e.length;
2292
+ 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
2293
  return n.__e = V, l;
2272
2294
  }
2273
2295
  function $i(t, e, n, r, s) {
@@ -2296,15 +2318,15 @@ function Si(t, e, n, r) {
2296
2318
  }
2297
2319
  return -1;
2298
2320
  }
2299
- function Pt(t, e, n) {
2321
+ function zt(t, e, n) {
2300
2322
  e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || wi.test(e) ? n : n + "px";
2301
2323
  }
2302
- function ze(t, e, n, r, s) {
2324
+ function Ae(t, e, n, r, s) {
2303
2325
  var o, i;
2304
2326
  e: if (e == "style") if (typeof n == "string") t.style.cssText = n;
2305
2327
  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]);
2328
+ if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || zt(t.style, e, "");
2329
+ if (n) for (e in n) r && n[e] == r[e] || zt(t.style, e, n[e]);
2308
2330
  }
2309
2331
  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
2332
  else {
@@ -2317,7 +2339,7 @@ function ze(t, e, n, r, s) {
2317
2339
  typeof n == "function" || (n == null || n === !1 && e[4] != "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && n == 1 ? "" : n));
2318
2340
  }
2319
2341
  }
2320
- function At(t) {
2342
+ function Pt(t) {
2321
2343
  return function(e) {
2322
2344
  if (this.l) {
2323
2345
  var n = this.l[e.type + t];
@@ -2328,40 +2350,40 @@ function At(t) {
2328
2350
  };
2329
2351
  }
2330
2352
  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;
2353
+ var d, p, c, h, v, V, A, T, E, Y, f, _, w, U, N, G, te, z = e.type;
2332
2354
  if (e.constructor !== void 0) return null;
2333
2355
  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);
2356
+ e: if (typeof z == "function") try {
2357
+ if (T = e.props, E = "prototype" in z && z.prototype.render, Y = (d = z.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (E ? e.__c = p = new z(T, f) : (e.__c = p = new De(T, f), p.constructor = z, p.render = 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
2358
  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);
2359
+ if (E && z.getDerivedStateFromProps == null && T !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(T, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(T, p.__s, f) === !1) {
2360
+ 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) {
2361
+ X && (X.__ = e);
2340
2362
  }), _ = 0; _ < p._sb.length; _++) p.__h.push(p._sb[_]);
2341
2363
  p._sb = [], p.__h.length && i.push(p);
2342
2364
  break e;
2343
2365
  }
2344
- p.componentWillUpdate != null && p.componentWillUpdate(k, p.__s, f), E && p.componentDidUpdate != null && p.__h.push(function() {
2366
+ p.componentWillUpdate != null && p.componentWillUpdate(T, p.__s, f), E && p.componentDidUpdate != null && p.__h.push(function() {
2345
2367
  p.componentDidUpdate(h, v, V);
2346
2368
  });
2347
2369
  }
2348
- if (p.context = f, p.props = k, p.__P = t, p.__e = !1, w = C.__r, U = 0, E) {
2370
+ if (p.context = f, p.props = T, p.__P = t, p.__e = !1, w = C.__r, U = 0, E) {
2349
2371
  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
2372
  p._sb = [];
2351
2373
  } else do
2352
2374
  p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
2353
2375
  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) {
2376
+ 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);
2377
+ } catch (X) {
2378
+ if (e.__v = null, l || o != null) if (X.then) {
2357
2379
  for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
2358
2380
  o[o.indexOf(a)] = null, e.__e = a;
2359
2381
  } else {
2360
2382
  for (te = o.length; te--; ) $t(o[te]);
2361
2383
  rt(e);
2362
2384
  }
2363
- else e.__e = n.__e, e.__k = n.__k, Z.then || rt(e);
2364
- C.__e(Z, e, n);
2385
+ else e.__e = n.__e, e.__k = n.__k, X.then || rt(e);
2386
+ C.__e(X, e, n);
2365
2387
  }
2366
2388
  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
2389
  return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
@@ -2370,7 +2392,7 @@ function rt(t) {
2370
2392
  t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(rt);
2371
2393
  }
2372
2394
  function fn(t, e, n) {
2373
- for (var r = 0; r < n.length; r++) kt(n[r], n[++r], n[++r]);
2395
+ for (var r = 0; r < n.length; r++) Tt(n[r], n[++r], n[++r]);
2374
2396
  C.__c && C.__c(e, t), t.some(function(s) {
2375
2397
  try {
2376
2398
  t = s.__h, s.__h = [], t.some(function(o) {
@@ -2385,7 +2407,7 @@ function hn(t) {
2385
2407
  return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ye(t) ? t.map(hn) : ne({}, t);
2386
2408
  }
2387
2409
  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;
2410
+ var u, d, p, c, h, v, V, A = n.props || Te, T = e.props, E = e.type;
2389
2411
  if (E == "svg" ? s = "http://www.w3.org/2000/svg" : E == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s || (s = "http://www.w3.org/1999/xhtml"), o != null) {
2390
2412
  for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!E && (E ? h.localName == E : h.nodeType == 3)) {
2391
2413
  t = h, o[u] = null;
@@ -2393,27 +2415,27 @@ function Fi(t, e, n, r, s, o, i, a, l) {
2393
2415
  }
2394
2416
  }
2395
2417
  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;
2418
+ if (E == null) return document.createTextNode(T);
2419
+ t = document.createElementNS(s, E, T.is && T), a && (C.__m && C.__m(e, o), a = !1), o = null;
2398
2420
  }
2399
- if (E == null) z === k || a && t.data == k || (t.data = k);
2421
+ if (E == null) A === T || a && t.data == T || (t.data = T);
2400
2422
  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") {
2423
+ 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;
2424
+ for (u in A) if (h = A[u], u != "children") {
2403
2425
  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);
2426
+ else if (!(u in T)) {
2427
+ if (u == "value" && "defaultValue" in T || u == "checked" && "defaultChecked" in T) continue;
2428
+ Ae(t, u, null, h, s);
2407
2429
  }
2408
2430
  }
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);
2431
+ 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
2432
  if (d) a || p && (d.__html == p.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
2411
2433
  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));
2434
+ 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
2435
  }
2414
2436
  return t;
2415
2437
  }
2416
- function kt(t, e, n) {
2438
+ function Tt(t, e, n) {
2417
2439
  try {
2418
2440
  if (typeof t == "function") {
2419
2441
  var r = typeof t.__u == "function";
@@ -2425,7 +2447,7 @@ function kt(t, e, n) {
2425
2447
  }
2426
2448
  function mn(t, e, n) {
2427
2449
  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) {
2450
+ if (C.unmount && C.unmount(t), (r = t.ref) && (r.current && r.current != t.__e || Tt(r, null, e)), (r = t.__c) != null) {
2429
2451
  if (r.componentWillUnmount) try {
2430
2452
  r.componentWillUnmount();
2431
2453
  } catch (o) {
@@ -2436,12 +2458,12 @@ function mn(t, e, n) {
2436
2458
  if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && mn(r[s], e, n || typeof t.type != "function");
2437
2459
  n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
2438
2460
  }
2439
- function ki(t, e, n) {
2461
+ function Ti(t, e, n) {
2440
2462
  return this.constructor(t, n);
2441
2463
  }
2442
2464
  function gn(t, e, n) {
2443
2465
  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);
2466
+ 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
2467
  }
2446
2468
  We = un.slice, C = { __e: function(t, e, n, r) {
2447
2469
  for (var s, o, i; e = e.__; ) if ((s = e.__c) && !s.__) try {
@@ -2452,18 +2474,18 @@ We = un.slice, C = { __e: function(t, e, n, r) {
2452
2474
  throw t;
2453
2475
  } }, sn = 0, De.prototype.setState = function(t, e) {
2454
2476
  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));
2477
+ 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
2478
  }, De.prototype.forceUpdate = function(t) {
2457
- this.__v && (this.__e = !0, t && this.__h.push(t), zt(this));
2479
+ this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
2458
2480
  }, De.prototype.render = me, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
2459
2481
  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;
2482
+ }, je.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, tt = Pt(!1), nt = Pt(!0);
2483
+ var ki = 0;
2462
2484
  function S(t, e, n, r, s, o) {
2463
2485
  e || (e = {});
2464
2486
  var i, a, l = e;
2465
2487
  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 };
2488
+ 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
2489
  if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
2468
2490
  return C.vnode && C.vnode(u), u;
2469
2491
  }
@@ -2480,21 +2502,21 @@ function vn() {
2480
2502
  for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
2481
2503
  return r;
2482
2504
  }
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: [] });
2505
+ var ke, P, Je, Nt, st = 0, _n = [], O = C, Ot = O.__b, Dt = O.__r, Rt = O.diffed, Bt = O.__c, jt = O.unmount, xt = O.__;
2506
+ function kt(t, e) {
2507
+ O.__h && O.__h(P, t, st || e), st = 0;
2508
+ var n = P.__H || (P.__H = { __: [], __h: [] });
2487
2509
  return t >= n.__.length && n.__.push({}), n.__[t];
2488
2510
  }
2489
2511
  function Ei(t) {
2490
2512
  return st = 1, Ii(Sn, t);
2491
2513
  }
2492
2514
  function Ii(t, e, n) {
2493
- var r = Tt(Te++, 2);
2515
+ var r = kt(ke++, 2);
2494
2516
  if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
2495
2517
  var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
2496
2518
  l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
2497
- }], r.__c = A, !A.__f)) {
2519
+ }], r.__c = P, !P.__f)) {
2498
2520
  var s = function(a, l, u) {
2499
2521
  if (!r.__c.__H) return !0;
2500
2522
  var d = r.__c.__H.__.filter(function(c) {
@@ -2511,24 +2533,24 @@ function Ii(t, e, n) {
2511
2533
  }
2512
2534
  }), o && o.call(this, a, l, u) || p;
2513
2535
  };
2514
- A.__f = !0;
2515
- var o = A.shouldComponentUpdate, i = A.componentWillUpdate;
2516
- A.componentWillUpdate = function(a, l, u) {
2536
+ P.__f = !0;
2537
+ var o = P.shouldComponentUpdate, i = P.componentWillUpdate;
2538
+ P.componentWillUpdate = function(a, l, u) {
2517
2539
  if (this.__e) {
2518
2540
  var d = o;
2519
2541
  o = void 0, s(a, l, u), o = d;
2520
2542
  }
2521
2543
  i && i.call(this, a, l, u);
2522
- }, A.shouldComponentUpdate = s;
2544
+ }, P.shouldComponentUpdate = s;
2523
2545
  }
2524
2546
  return r.__N || r.__;
2525
2547
  }
2526
2548
  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));
2549
+ var n = kt(ke++, 3);
2550
+ !O.__s && $n(n.__H, e) && (n.__ = t, n.u = e, P.__H.__h.push(n));
2529
2551
  }
2530
2552
  function wn(t, e) {
2531
- var n = Tt(Te++, 7);
2553
+ var n = kt(ke++, 7);
2532
2554
  return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
2533
2555
  }
2534
2556
  function Ci() {
@@ -2539,21 +2561,21 @@ function Ci() {
2539
2561
  }
2540
2562
  }
2541
2563
  O.__b = function(t) {
2542
- A = null, Ot && Ot(t);
2564
+ P = null, Ot && Ot(t);
2543
2565
  }, O.__ = function(t, e) {
2544
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
2566
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), xt && xt(t, e);
2545
2567
  }, 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) {
2568
+ Dt && Dt(t), ke = 0;
2569
+ var e = (P = t.__c).__H;
2570
+ e && (Je === P ? (e.__h = [], P.__h = [], e.__.forEach(function(n) {
2549
2571
  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;
2572
+ })) : (e.__h.forEach(Re), e.__h.forEach(it), e.__h = [], ke = 0)), Je = P;
2551
2573
  }, O.diffed = function(t) {
2552
2574
  Rt && Rt(t);
2553
2575
  var e = t.__c;
2554
2576
  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
2577
  n.u && (n.__H = n.u), n.u = void 0;
2556
- })), Je = A = null;
2578
+ })), Je = P = null;
2557
2579
  }, O.__c = function(t, e) {
2558
2580
  e.some(function(n) {
2559
2581
  try {
@@ -2577,20 +2599,20 @@ O.__b = function(t) {
2577
2599
  }
2578
2600
  }), n.__H = void 0, e && O.__e(e, n.__v));
2579
2601
  };
2580
- var xt = typeof requestAnimationFrame == "function";
2602
+ var Lt = typeof requestAnimationFrame == "function";
2581
2603
  function Vi(t) {
2582
2604
  var e, n = function() {
2583
- clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
2605
+ clearTimeout(r), Lt && cancelAnimationFrame(e), setTimeout(t);
2584
2606
  }, r = setTimeout(n, 35);
2585
- xt && (e = requestAnimationFrame(n));
2607
+ Lt && (e = requestAnimationFrame(n));
2586
2608
  }
2587
2609
  function Re(t) {
2588
- var e = A, n = t.__c;
2589
- typeof n == "function" && (t.__c = void 0, n()), A = e;
2610
+ var e = P, n = t.__c;
2611
+ typeof n == "function" && (t.__c = void 0, n()), P = e;
2590
2612
  }
2591
2613
  function it(t) {
2592
- var e = A;
2593
- t.__c = t.__(), A = e;
2614
+ var e = P;
2615
+ t.__c = t.__(), P = e;
2594
2616
  }
2595
2617
  function $n(t, e) {
2596
2618
  return !t || t.length !== e.length || e.some(function(n, r) {
@@ -2677,7 +2699,7 @@ function Ui(t) {
2677
2699
  children: [S("div", { className: "uppy:flex uppy:flex-col uppy:items-center uppy:justify-center uppy:h-full uppy:space-y-3", children: S("p", { className: "uppy:text-gray-600", children: "Drop files here or click to add them" }) }), r ? S("div", { className: "uppy:text-sm uppy:text-gray-500", children: r }) : null]
2678
2700
  })] });
2679
2701
  }
2680
- const zi = [
2702
+ const Ai = [
2681
2703
  "B",
2682
2704
  "kB",
2683
2705
  "MB",
@@ -2687,7 +2709,7 @@ const zi = [
2687
2709
  "EB",
2688
2710
  "ZB",
2689
2711
  "YB"
2690
- ], Pi = [
2712
+ ], zi = [
2691
2713
  "B",
2692
2714
  "KiB",
2693
2715
  "MiB",
@@ -2697,7 +2719,7 @@ const zi = [
2697
2719
  "EiB",
2698
2720
  "ZiB",
2699
2721
  "YiB"
2700
- ], Ai = [
2722
+ ], Pi = [
2701
2723
  "b",
2702
2724
  "kbit",
2703
2725
  "Mbit",
@@ -2730,7 +2752,7 @@ function Oi(t, e) {
2730
2752
  space: !0,
2731
2753
  ...e
2732
2754
  };
2733
- const n = e.bits ? e.binary ? Ni : Ai : e.binary ? Pi : zi, r = e.space ? " " : "";
2755
+ const n = e.bits ? e.binary ? Ni : Pi : e.binary ? zi : Ai, r = e.space ? " " : "";
2734
2756
  if (e.signed && t === 0)
2735
2757
  return ` 0${r}${n[0]}`;
2736
2758
  const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
@@ -2860,19 +2882,19 @@ const Fn = Symbol("uppy"), ji = I({
2860
2882
  };
2861
2883
  }
2862
2884
  });
2863
- function kn() {
2864
- const t = T(Fn);
2885
+ function Tn() {
2886
+ const t = k(Fn);
2865
2887
  return t || {
2866
2888
  uppy: void 0,
2867
2889
  status: "init",
2868
2890
  progress: 0
2869
2891
  };
2870
2892
  }
2871
- const Li = I({
2893
+ const xi = I({
2872
2894
  name: "Dropzone",
2873
2895
  props: ["width", "height", "note", "noClick"],
2874
2896
  setup(t) {
2875
- const e = W(null), n = kn();
2897
+ const e = W(null), n = Tn();
2876
2898
  function r() {
2877
2899
  e.value && gn(St(Ui, {
2878
2900
  ...t,
@@ -2887,11 +2909,11 @@ const Li = I({
2887
2909
  r();
2888
2910
  }, { deep: !0 }), () => rn("div", { ref: e });
2889
2911
  }
2890
- }), xi = I({
2912
+ }), Li = I({
2891
2913
  name: "FilesList",
2892
2914
  props: ["editFile", "imageThumbnail"],
2893
2915
  setup(t) {
2894
- const e = W(null), n = kn();
2916
+ const e = W(null), n = Tn();
2895
2917
  function r() {
2896
2918
  e.value && gn(St(Di, {
2897
2919
  ...t,
@@ -2907,7 +2929,7 @@ const Li = I({
2907
2929
  }, { deep: !0 }), () => rn("div", { ref: e });
2908
2930
  }
2909
2931
  });
2910
- function Tn(t) {
2932
+ function kn(t) {
2911
2933
  const e = t.lastIndexOf(".");
2912
2934
  return e === -1 || e === t.length - 1 ? {
2913
2935
  name: t,
@@ -2976,7 +2998,7 @@ function En(t) {
2976
2998
  var n;
2977
2999
  if (t.type)
2978
3000
  return t.type;
2979
- const e = t.name ? (n = Tn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
3001
+ const e = t.name ? (n = kn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
2980
3002
  return e && e in Ht ? Ht[e] : "application/octet-stream";
2981
3003
  }
2982
3004
  function qi(t) {
@@ -3044,15 +3066,15 @@ function Wt(t, e) {
3044
3066
  }
3045
3067
  return s;
3046
3068
  }
3047
- const Zi = (t) => {
3069
+ const Xi = (t) => {
3048
3070
  throw new Error(`missing string: ${t}`);
3049
3071
  };
3050
3072
  var Ee, Ie, ot;
3051
- class Xi {
3052
- constructor(e, { onMissingKey: n = Zi } = {}) {
3053
- L(this, Ie);
3073
+ class Zi {
3074
+ constructor(e, { onMissingKey: n = Xi } = {}) {
3075
+ x(this, Ie);
3054
3076
  R(this, "locale");
3055
- L(this, Ee);
3077
+ x(this, Ee);
3056
3078
  this.locale = {
3057
3079
  strings: {},
3058
3080
  pluralize(r) {
@@ -3109,8 +3131,8 @@ const Ki = {
3109
3131
  warn: (...t) => console.warn(`[Uppy] [${Be()}]`, ...t),
3110
3132
  error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
3111
3133
  };
3112
- var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3113
- function Ze(t) {
3134
+ var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3135
+ function Xe(t) {
3114
3136
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3115
3137
  }
3116
3138
  var Qi = function(e) {
@@ -3123,7 +3145,7 @@ var Qi = function(e) {
3123
3145
  const s = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], o = Math.min(Math.floor(Math.log(r) / Math.log(1024)), s.length - 1), i = Number(r / 1024 ** o), a = s[o];
3124
3146
  return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
3125
3147
  };
3126
- const Ae = /* @__PURE__ */ Ze(Qi);
3148
+ const Pe = /* @__PURE__ */ Xe(Qi);
3127
3149
  function In(t, e) {
3128
3150
  this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
3129
3151
  }
@@ -3157,7 +3179,7 @@ var eo = function(t, e, n) {
3157
3179
  }
3158
3180
  return e ? n(e.split(";")[0]) : n;
3159
3181
  };
3160
- const so = /* @__PURE__ */ Ze(ro), io = {
3182
+ const so = /* @__PURE__ */ Xe(ro), io = {
3161
3183
  maxFileSize: null,
3162
3184
  minFileSize: null,
3163
3185
  maxTotalFileSize: null,
@@ -3198,8 +3220,8 @@ class oo {
3198
3220
  const o = [...e, ...n].reduce((i, a) => i + (a.size ?? 0), 0);
3199
3221
  if (o > r)
3200
3222
  throw new J(this.getI18n()("aggregateExceedsSize", {
3201
- sizeAllowed: Ae(r),
3202
- size: Ae(o)
3223
+ sizeAllowed: Pe(r),
3224
+ size: Pe(o)
3203
3225
  }));
3204
3226
  }
3205
3227
  }
@@ -3213,12 +3235,12 @@ class oo {
3213
3235
  }
3214
3236
  if (n && e.size != null && e.size > n)
3215
3237
  throw new J(this.getI18n()("exceedsSize", {
3216
- size: Ae(n),
3238
+ size: Pe(n),
3217
3239
  file: e.name ?? this.getI18n()("unnamed")
3218
3240
  }), { file: e });
3219
3241
  if (r && e.size != null && e.size < r)
3220
3242
  throw new J(this.getI18n()("inferiorSize", {
3221
- size: Ae(r)
3243
+ size: Pe(r)
3222
3244
  }), { file: e });
3223
3245
  }
3224
3246
  validate(e, n) {
@@ -3245,19 +3267,19 @@ class oo {
3245
3267
  const ao = "5.0.0", lo = {
3246
3268
  version: ao
3247
3269
  };
3248
- var ce, Le, Vn;
3270
+ var ce, xe, Vn;
3249
3271
  class Cn {
3250
3272
  constructor() {
3251
- L(this, Le);
3273
+ x(this, xe);
3252
3274
  R(this, "state", {});
3253
- L(this, ce, /* @__PURE__ */ new Set());
3275
+ x(this, ce, /* @__PURE__ */ new Set());
3254
3276
  }
3255
3277
  getState() {
3256
3278
  return this.state;
3257
3279
  }
3258
3280
  setState(e) {
3259
3281
  const n = { ...this.state }, r = { ...this.state, ...e };
3260
- this.state = r, F(this, Le, Vn).call(this, n, r, e);
3282
+ this.state = r, F(this, xe, Vn).call(this, n, r, e);
3261
3283
  }
3262
3284
  subscribe(e) {
3263
3285
  return b(this, ce).add(e), () => {
@@ -3265,7 +3287,7 @@ class Cn {
3265
3287
  };
3266
3288
  }
3267
3289
  }
3268
- ce = new WeakMap(), Le = new WeakSet(), Vn = function(...e) {
3290
+ ce = new WeakMap(), xe = new WeakSet(), Vn = function(...e) {
3269
3291
  b(this, ce).forEach((n) => {
3270
3292
  n(...e);
3271
3293
  });
@@ -3274,7 +3296,7 @@ function uo(t) {
3274
3296
  var e = typeof t;
3275
3297
  return t != null && (e == "object" || e == "function");
3276
3298
  }
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() {
3299
+ 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
3300
  return go.Date.now();
3279
3301
  }, vo = yo, _o = /\s/;
3280
3302
  function bo(t) {
@@ -3286,7 +3308,7 @@ var wo = bo, $o = wo, So = /^\s+/;
3286
3308
  function Fo(t) {
3287
3309
  return t && t.slice(0, $o(t) + 1).replace(So, "");
3288
3310
  }
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;
3311
+ 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
3312
  function Vo(t) {
3291
3313
  var e = Io.call(t, we), n = t[we];
3292
3314
  try {
@@ -3297,27 +3319,27 @@ function Vo(t) {
3297
3319
  var s = Co.call(t);
3298
3320
  return r && (e ? t[we] = n : delete t[we]), s;
3299
3321
  }
3300
- var Mo = Vo, Uo = Object.prototype, zo = Uo.toString;
3301
- function Po(t) {
3302
- return zo.call(t);
3322
+ var Mo = Vo, Uo = Object.prototype, Ao = Uo.toString;
3323
+ function zo(t) {
3324
+ return Ao.call(t);
3303
3325
  }
3304
- var Ao = Po, Zt = Un, No = Mo, Oo = Ao, Do = "[object Null]", Ro = "[object Undefined]", Xt = Zt ? Zt.toStringTag : void 0;
3326
+ var Po = zo, Xt = Un, No = Mo, Oo = Po, Do = "[object Null]", Ro = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3305
3327
  function Bo(t) {
3306
- return t == null ? t === void 0 ? Ro : Do : Xt && Xt in Object(t) ? No(t) : Oo(t);
3328
+ return t == null ? t === void 0 ? Ro : Do : Zt && Zt in Object(t) ? No(t) : Oo(t);
3307
3329
  }
3308
3330
  var jo = Bo;
3309
- function Lo(t) {
3331
+ function xo(t) {
3310
3332
  return t != null && typeof t == "object";
3311
3333
  }
3312
- var xo = Lo, qo = jo, Ho = xo, Go = "[object Symbol]";
3334
+ var Lo = xo, qo = jo, Ho = Lo, Go = "[object Symbol]";
3313
3335
  function Wo(t) {
3314
3336
  return typeof t == "symbol" || Ho(t) && qo(t) == Go;
3315
3337
  }
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;
3338
+ 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
3339
  function ta(t) {
3318
3340
  if (typeof t == "number")
3319
3341
  return t;
3320
- if (Xo(t))
3342
+ if (Zo(t))
3321
3343
  return Jt;
3322
3344
  if (Kt(t)) {
3323
3345
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
@@ -3325,7 +3347,7 @@ function ta(t) {
3325
3347
  }
3326
3348
  if (typeof t != "string")
3327
3349
  return t === 0 ? t : +t;
3328
- t = Zo(t);
3350
+ t = Xo(t);
3329
3351
  var n = Jo.test(t);
3330
3352
  return n || Qo.test(t) ? ea(t.slice(2), n ? 2 : 8) : Ko.test(t) ? Jt : +t;
3331
3353
  }
@@ -3340,21 +3362,21 @@ function aa(t, e, n) {
3340
3362
  return r = s = void 0, u = w, i = t.apply(N, U), i;
3341
3363
  }
3342
3364
  function v(w) {
3343
- return u = w, a = setTimeout(k, e), d ? h(w) : i;
3365
+ return u = w, a = setTimeout(T, e), d ? h(w) : i;
3344
3366
  }
3345
3367
  function V(w) {
3346
3368
  var U = w - l, N = w - u, G = e - U;
3347
3369
  return p ? oa(G, o - N) : G;
3348
3370
  }
3349
- function z(w) {
3371
+ function A(w) {
3350
3372
  var U = w - l, N = w - u;
3351
3373
  return l === void 0 || U >= e || U < 0 || p && N >= o;
3352
3374
  }
3353
- function k() {
3375
+ function T() {
3354
3376
  var w = et();
3355
- if (z(w))
3377
+ if (A(w))
3356
3378
  return E(w);
3357
- a = setTimeout(k, V(w));
3379
+ a = setTimeout(T, V(w));
3358
3380
  }
3359
3381
  function E(w) {
3360
3382
  return a = void 0, c && r ? h(w) : (r = s = void 0, i);
@@ -3366,14 +3388,14 @@ function aa(t, e, n) {
3366
3388
  return a === void 0 ? i : E(et());
3367
3389
  }
3368
3390
  function _() {
3369
- var w = et(), U = z(w);
3391
+ var w = et(), U = A(w);
3370
3392
  if (r = arguments, s = this, l = w, U) {
3371
3393
  if (a === void 0)
3372
3394
  return v(l);
3373
3395
  if (p)
3374
- return clearTimeout(a), a = setTimeout(k, e), h(l);
3396
+ return clearTimeout(a), a = setTimeout(T, e), h(l);
3375
3397
  }
3376
- return a === void 0 && (a = setTimeout(k, e)), i;
3398
+ return a === void 0 && (a = setTimeout(T, e)), i;
3377
3399
  }
3378
3400
  return _.cancel = Y, _.flush = f, _;
3379
3401
  }
@@ -3389,7 +3411,7 @@ function ca(t, e, n) {
3389
3411
  });
3390
3412
  }
3391
3413
  var fa = ca;
3392
- const ha = /* @__PURE__ */ Ze(fa);
3414
+ const ha = /* @__PURE__ */ Xe(fa);
3393
3415
  var ma = function() {
3394
3416
  var e = {}, n = e._fns = {};
3395
3417
  e.emit = function(i, a, l, u, d, p, c) {
@@ -3429,7 +3451,7 @@ var ma = function() {
3429
3451
  }
3430
3452
  return e;
3431
3453
  };
3432
- const ga = /* @__PURE__ */ Ze(ma);
3454
+ const ga = /* @__PURE__ */ Xe(ma);
3433
3455
  let ya = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", va = (t = 21) => {
3434
3456
  let e = "", n = t | 0;
3435
3457
  for (; n--; )
@@ -3522,20 +3544,20 @@ const Ne = {
3522
3544
  error: null,
3523
3545
  recoveredState: null
3524
3546
  };
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;
3547
+ 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
3548
  const qe = class qe {
3527
3549
  /**
3528
3550
  * Instantiate Uppy
3529
3551
  */
3530
3552
  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());
3553
+ x(this, y);
3554
+ x(this, Z, /* @__PURE__ */ Object.create(null));
3555
+ x(this, K);
3556
+ x(this, Ce);
3557
+ x(this, le, ga());
3558
+ x(this, fe, /* @__PURE__ */ new Set());
3559
+ x(this, he, /* @__PURE__ */ new Set());
3560
+ x(this, ue, /* @__PURE__ */ new Set());
3539
3561
  R(this, "defaultLocale");
3540
3562
  R(this, "locale");
3541
3563
  // The user optionally passes in options, but we set defaults for missing options.
@@ -3547,7 +3569,7 @@ const qe = class qe {
3547
3569
  R(this, "i18nArray");
3548
3570
  R(this, "scheduledAutoProceed", null);
3549
3571
  R(this, "wasOffline", !1);
3550
- L(this, xe, (e, n) => {
3572
+ x(this, Le, (e, n) => {
3551
3573
  const r = e ? this.getFile(e.id) : void 0;
3552
3574
  if (e == null || !r) {
3553
3575
  this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
@@ -3582,8 +3604,8 @@ const qe = class qe {
3582
3604
  // and click 'ADD MORE FILES', - focus won't activate in Firefox.
3583
3605
  // - We must throttle at around >500ms to avoid performance lags.
3584
3606
  // [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));
3607
+ x(this, de, ha(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
3608
+ x(this, se, this.updateOnlineStatus.bind(this));
3587
3609
  // We need to store request clients by a unique ID, so we can share RequestClient instances across files
3588
3610
  // this allows us to do rate limiting and synchronous operations like refreshing provider tokens
3589
3611
  // example: refreshing tokens: if each file has their own requestclient,
@@ -3594,7 +3616,7 @@ const qe = class qe {
3594
3616
  // back when we had a requestclient per file, once an access token expired,
3595
3617
  // all 6 files would go ahead and refresh the token at the same time
3596
3618
  // (calling /refresh-token up to 6 times), which will probably fail for some providers
3597
- L(this, Ve, /* @__PURE__ */ new Map());
3619
+ x(this, Ve, /* @__PURE__ */ new Map());
3598
3620
  this.defaultLocale = $a;
3599
3621
  const n = {
3600
3622
  id: "uppy",
@@ -3689,7 +3711,7 @@ const qe = class qe {
3689
3711
  this.patchFilesState({ [e]: n });
3690
3712
  }
3691
3713
  i18nInit() {
3692
- const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Xi([this.defaultLocale, this.opts.locale], {
3714
+ const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Zi([this.defaultLocale, this.opts.locale], {
3693
3715
  onMissingKey: e
3694
3716
  });
3695
3717
  this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
@@ -4010,24 +4032,24 @@ const qe = class qe {
4010
4032
  Uppy plugins must have unique \`id\` options.`;
4011
4033
  throw new Error(i);
4012
4034
  }
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;
4035
+ 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
4036
  }
4015
4037
  getPlugin(e) {
4016
- for (const n of Object.values(b(this, X))) {
4038
+ for (const n of Object.values(b(this, Z))) {
4017
4039
  const r = n.find((s) => s.id === e);
4018
4040
  if (r != null)
4019
4041
  return r;
4020
4042
  }
4021
4043
  }
4022
4044
  [Symbol.for("uppy test: getPlugins")](e) {
4023
- return b(this, X)[e];
4045
+ return b(this, Z)[e];
4024
4046
  }
4025
4047
  /**
4026
4048
  * Iterate through all `use`d plugins.
4027
4049
  *
4028
4050
  */
4029
4051
  iteratePlugins(e) {
4030
- Object.values(b(this, X)).flat(1).forEach(e);
4052
+ Object.values(b(this, Z)).flat(1).forEach(e);
4031
4053
  }
4032
4054
  /**
4033
4055
  * Uninstall and remove a plugin.
@@ -4036,7 +4058,7 @@ Uppy plugins must have unique \`id\` options.`;
4036
4058
  */
4037
4059
  removePlugin(e) {
4038
4060
  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);
4061
+ const n = b(this, Z)[e.type], r = n.findIndex((i) => i.id === e.id);
4040
4062
  r !== -1 && n.splice(r, 1);
4041
4063
  const o = {
4042
4064
  plugins: {
@@ -4137,7 +4159,7 @@ Uppy plugins must have unique \`id\` options.`;
4137
4159
  */
4138
4160
  async upload() {
4139
4161
  var s;
4140
- (s = b(this, X).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
4162
+ (s = b(this, Z).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
4141
4163
  let { files: e } = this.getState();
4142
4164
  if (F(this, y, pt).call(this).length > 0) {
4143
4165
  const o = await F(this, y, ct).call(this);
@@ -4152,7 +4174,7 @@ Uppy plugins must have unique \`id\` options.`;
4152
4174
  files: e
4153
4175
  }));
4154
4176
  try {
4155
- if (b(this, K).validateMinNumberOfFiles(e), !F(this, y, Pn).call(this, e))
4177
+ if (b(this, K).validateMinNumberOfFiles(e), !F(this, y, zn).call(this, e))
4156
4178
  throw new J(this.i18n("missingRequiredMetaField"));
4157
4179
  const { currentUploads: o } = this.getState(), i = Object.values(o).flatMap((d) => d.fileIDs), a = Object.keys(e).filter((d) => {
4158
4180
  const p = this.getFile(d);
@@ -4164,7 +4186,7 @@ Uppy plugins must have unique \`id\` options.`;
4164
4186
  }
4165
4187
  }
4166
4188
  };
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) {
4189
+ 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
4190
  for (const i of e)
4169
4191
  i.isRestriction ? this.emit("restriction-failed", i.file, i) : this.emit("error", i, i.file), this.log(i, "warning");
4170
4192
  const n = e.filter((i) => i.isUserFacing), r = 4, s = n.slice(0, r), o = n.slice(r);
@@ -4183,12 +4205,12 @@ X = new WeakMap(), K = new WeakMap(), Ce = new WeakMap(), le = new WeakMap(), fe
4183
4205
  }), this.log(r.message), this.emit("restriction-failed", e, r), !1) : (n.length === 0 && e.missingRequiredMetaFields && this.setFileState(e.id, {
4184
4206
  missingRequiredMetaFields: []
4185
4207
  }), !0);
4186
- }, Pn = function(e) {
4208
+ }, zn = function(e) {
4187
4209
  let n = !0;
4188
4210
  for (const r of Object.values(e))
4189
4211
  F(this, y, lt).call(this, r) || (n = !1);
4190
4212
  return n;
4191
- }, An = function(e) {
4213
+ }, Pn = function(e) {
4192
4214
  const { allowNewUpload: n } = this.getState();
4193
4215
  if (n === !1) {
4194
4216
  const r = new J(this.i18n("noMoreFilesAllowed"), {
@@ -4209,7 +4231,7 @@ Nn = function(e) {
4209
4231
  isRemote: !1,
4210
4232
  source: void 0,
4211
4233
  preview: void 0
4212
- } : e, r = En(n), s = wa(r, n), o = Tn(s).extension, i = Wi(n, this.getID()), a = {
4234
+ } : e, r = En(n), s = wa(r, n), o = kn(s).extension, i = Wi(n, this.getID()), a = {
4213
4235
  ...n.meta,
4214
4236
  name: s,
4215
4237
  type: r
@@ -4256,7 +4278,7 @@ ut = function() {
4256
4278
  for (const i of e)
4257
4279
  try {
4258
4280
  let a = F(this, y, Nn).call(this, i);
4259
- F(this, y, An).call(this, a);
4281
+ F(this, y, Pn).call(this, a);
4260
4282
  const l = n[a.id], u = l == null ? void 0 : l.isGhost;
4261
4283
  if (u && !a.isRemote) {
4262
4284
  if (a.data == null)
@@ -4319,7 +4341,7 @@ ut = function() {
4319
4341
  // create new upload even if allowNewUpload: false
4320
4342
  });
4321
4343
  return F(this, y, Se).call(this, r);
4322
- }, xe = new WeakMap(), ft = function() {
4344
+ }, Le = new WeakMap(), ft = function() {
4323
4345
  const e = F(this, y, On).call(this);
4324
4346
  let n = null;
4325
4347
  e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
@@ -4382,7 +4404,7 @@ Dn = function() {
4382
4404
  ]));
4383
4405
  this.patchFilesState(i);
4384
4406
  };
4385
- this.on("upload-start", r), this.on("upload-progress", b(this, xe)), this.on("upload-success", (s, o) => {
4407
+ this.on("upload-start", r), this.on("upload-progress", b(this, Le)), this.on("upload-success", (s, o) => {
4386
4408
  if (s == null || !this.getFile(s.id)) {
4387
4409
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
4388
4410
  return;
@@ -4570,7 +4592,7 @@ const Fa = {
4570
4592
  ],
4571
4593
  setup(t, { emit: e }) {
4572
4594
  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({
4595
+ 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
4596
  get() {
4575
4597
  var f;
4576
4598
  return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
@@ -4631,9 +4653,9 @@ const Fa = {
4631
4653
  }, (f, _) => {
4632
4654
  f === !0 && _ === !1 && h();
4633
4655
  }), ye(() => {
4634
- var f, _, w, U, N, G, te, P;
4635
- n.useXHR && import("./index-Bh4eONwE.js").then((Z) => {
4636
- const pe = Z.default;
4656
+ var f, _, w, U, N, G, te, z;
4657
+ n.useXHR && import("./index-CG5nvZ5W.js").then((X) => {
4658
+ const pe = X.default;
4637
4659
  i.value.use(pe, {
4638
4660
  method: "POST",
4639
4661
  endpoint: n.url,
@@ -4642,9 +4664,9 @@ const Fa = {
4642
4664
  },
4643
4665
  ...n.XHRConfig
4644
4666
  });
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) => {
4667
+ }), (_ = (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
4668
  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;
4669
+ X.innerHTML = (Vt = (Ct = (It = (pe = i.value) == null ? void 0 : pe.opts) == null ? void 0 : It.locale) == null ? void 0 : Ct.strings) == null ? void 0 : Vt.dropzoneText;
4648
4670
  }));
4649
4671
  }), mt(() => {
4650
4672
  l.value = !0, i.value && i.value.destroy();
@@ -4661,12 +4683,12 @@ const Fa = {
4661
4683
  _.textContent = f, _.className = "uppy-error", o.value && (o.value.prepend(_), setTimeout(() => _.remove(), 3e3));
4662
4684
  }
4663
4685
  }
4664
- const z = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4665
- function k(f) {
4686
+ const A = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4687
+ function T(f) {
4666
4688
  let _ = 0, w = parseInt(f, 10) || 0;
4667
4689
  for (; w >= 1024 && ++_; )
4668
4690
  w = w / 1024;
4669
- return w.toFixed(w < 10 && _ > 0 ? 1 : 0) + z[_];
4691
+ return w.toFixed(w < 10 && _ > 0 ? 1 : 0) + A[_];
4670
4692
  }
4671
4693
  function E(f) {
4672
4694
  if (!f) return "";
@@ -4677,12 +4699,12 @@ const Fa = {
4677
4699
  maxNumberOfFiles: N,
4678
4700
  minNumberOfFiles: G,
4679
4701
  maxTotalFileSize: te
4680
- } = f, P = [];
4702
+ } = f, z = [];
4681
4703
  if (_ && _.length) {
4682
- const Z = _.map((pe) => pe.replace(".", "")).join("، ");
4683
- P.push(`فقط فایل‌های ${Z}`);
4704
+ const X = _.map((pe) => pe.replace(".", "")).join("، ");
4705
+ z.push(`فقط فایل‌های ${X}`);
4684
4706
  }
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("، ") + " مجاز است." : "";
4707
+ 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
4708
  }
4687
4709
  return (f, _) => i.value ? (m(), g("div", {
4688
4710
  key: 0,
@@ -4696,8 +4718,8 @@ const Fa = {
4696
4718
  }, {
4697
4719
  default: ie(() => [
4698
4720
  D(f.$slots, "default", { uppy: i.value }, () => [
4699
- Q(Ke(xi), { class: "uppy-file-lists" }),
4700
- Q(Ke(Li), { class: "uppy-drop-zone" })
4721
+ Q(Ke(Li), { class: "uppy-file-lists" }),
4722
+ Q(Ke(xi), { class: "uppy-drop-zone" })
4701
4723
  ])
4702
4724
  ]),
4703
4725
  _: 3
@@ -4708,31 +4730,31 @@ const Fa = {
4708
4730
  };
4709
4731
  export {
4710
4732
  Ua as A,
4711
- za as C,
4733
+ Aa as C,
4712
4734
  Ba as E,
4713
4735
  Ra as F,
4714
4736
  ys as G,
4715
- xa as L,
4737
+ La as L,
4716
4738
  qa as M,
4717
4739
  Oa as P,
4718
- As as Q,
4740
+ Ps as Q,
4719
4741
  el as R,
4720
4742
  Qa as S,
4721
- Xi as T,
4743
+ Zi as T,
4722
4744
  Ja as _,
4723
- Pa as a,
4724
- Aa as b,
4745
+ za as a,
4746
+ Pa as b,
4725
4747
  Na as c,
4726
4748
  Da as d,
4727
4749
  tl as e,
4728
4750
  ja as f,
4729
4751
  Ha as g,
4730
4752
  Ga as h,
4731
- Za as i,
4753
+ Xa as i,
4732
4754
  Ya as j,
4733
4755
  Wa as k,
4734
- La as l,
4735
- Xa as m,
4756
+ xa as l,
4757
+ Za as m,
4736
4758
  Ka as n,
4737
4759
  Ge as o
4738
4760
  };