inertia-bootstrap-forms 2.1.2 → 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.
@@ -1,19 +1,19 @@
1
- var Rn = Object.defineProperty;
1
+ var Bn = Object.defineProperty;
2
2
  var Mt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Bn = (t, e, n) => e in t ? Rn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var B = (t, e, n) => Bn(t, typeof e != "symbol" ? e + "" : e, n), Xe = (t, e, n) => e.has(t) || Mt("Cannot " + n);
7
- var w = (t, e, n) => (Xe(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) => (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 O, normalizeClass as R, ref as W, onMounted as ve, onBeforeUnmount as mt, createElementVNode as b, defineComponent as E, inject as k, computed as q, resolveComponent as L, 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 jn, Fragment as pe, createCommentVNode as j, createStaticVNode as Ln, renderList as _e, normalizeStyle as vt, toRef as xn, reactive as en, withModifiers as tn, resolveDirective as qn, mergeProps as Hn, vModelSelect as Gn, markRaw as Wn, provide as Zn, watch as Fe, h as nn, shallowRef as Yn, unref as Ke } from "vue";
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), 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
9
  import Xn from "@tinymce/tinymce-vue";
10
- import { useForm as Kn } from "@inertiajs/vue3";
11
- import { LMarker as Jn, LTileLayer as Qn, LMap as er } from "@vue-leaflet/vue-leaflet";
12
- import { VueTelInput as tr } from "vue-tel-input";
13
- import nr from "dropzone";
14
- function rr(t, e, n = {}) {
10
+ import { useForm as Zn } from "@inertiajs/vue3";
11
+ import { LMarker as Kn, LTileLayer as Jn, LMap as Qn } from "@vue-leaflet/vue-leaflet";
12
+ import { VueTelInput as er } from "vue-tel-input";
13
+ import tr from "dropzone";
14
+ function nr(t, e, n = {}) {
15
15
  let r = null;
16
- ve(async () => {
16
+ ye(async () => {
17
17
  r = (typeof e == "function" ? await e() : e).getOrCreateInstance(t.value, n), typeof document < "u" && document.addEventListener("inertia:start", o);
18
18
  }), mt(() => {
19
19
  typeof document < "u" && document.removeEventListener("inertia:start", o), s();
@@ -34,23 +34,23 @@ const be = (t, e) => {
34
34
  for (const [r, s] of e)
35
35
  n[r] = s;
36
36
  return n;
37
- }, sr = {}, ir = { class: "dropdown" };
38
- function or(t, e, n, r, s, o) {
39
- return m(), g("div", ir, [
40
- O(t.$slots, "default")
37
+ }, rr = {}, sr = { class: "dropdown" };
38
+ function ir(t, e, n, r, s, o) {
39
+ return m(), g("div", sr, [
40
+ D(t.$slots, "default")
41
41
  ]);
42
42
  }
43
- const ar = /* @__PURE__ */ be(sr, [["render", or]]), lr = {}, ur = { class: "dropdown-menu" };
44
- function dr(t, e, n, r, s, o) {
45
- return m(), g("div", ur, [
46
- O(t.$slots, "default")
43
+ const or = /* @__PURE__ */ be(rr, [["render", ir]]), ar = {}, lr = { class: "dropdown-menu" };
44
+ function ur(t, e, n, r, s, o) {
45
+ return m(), g("div", lr, [
46
+ D(t.$slots, "default")
47
47
  ]);
48
48
  }
49
- const pr = /* @__PURE__ */ be(lr, [["render", dr]]), cr = {
49
+ const dr = /* @__PURE__ */ be(ar, [["render", ur]]), pr = {
50
50
  __name: "DropdownToggle",
51
51
  props: {},
52
52
  setup(t, { expose: e }) {
53
- const n = W(null), { getInstance: r } = rr(n, () => import("./dropdown-yh2aQrbw-XuCU1v1F.js").then((s) => s.default));
53
+ const n = W(null), { getInstance: r } = nr(n, () => import("./dropdown-yh2aQrbw-XuCU1v1F.js").then((s) => s.default));
54
54
  return e({ show: () => {
55
55
  var s;
56
56
  return (s = r()) == null ? void 0 : s.show();
@@ -65,22 +65,22 @@ const pr = /* @__PURE__ */ be(lr, [["render", dr]]), cr = {
65
65
  "data-bs-toggle": "dropdown",
66
66
  "aria-expanded": "false"
67
67
  }, [
68
- O(s.$slots, "default")
68
+ D(s.$slots, "default")
69
69
  ], 512));
70
70
  }
71
- }, fr = {}, hr = { class: "input-group" };
72
- function mr(t, e, n, r, s, o) {
73
- return m(), g("div", hr, [
74
- O(t.$slots, "default")
71
+ }, cr = {}, fr = { class: "input-group" };
72
+ function hr(t, e, n, r, s, o) {
73
+ return m(), g("div", fr, [
74
+ D(t.$slots, "default")
75
75
  ]);
76
76
  }
77
- const _t = /* @__PURE__ */ be(fr, [["render", mr]]), gr = {}, yr = { class: "input-group-text" };
78
- function vr(t, e, n, r, s, o) {
79
- return m(), g("div", yr, [
80
- O(t.$slots, "default")
77
+ const _t = /* @__PURE__ */ be(cr, [["render", hr]]), mr = {}, gr = { class: "input-group-text" };
78
+ function yr(t, e, n, r, s, o) {
79
+ return m(), g("div", gr, [
80
+ D(t.$slots, "default")
81
81
  ]);
82
82
  }
83
- const bt = /* @__PURE__ */ be(gr, [["render", vr]]), _r = {
83
+ const bt = /* @__PURE__ */ be(mr, [["render", yr]]), vr = {
84
84
  props: {
85
85
  type: {
86
86
  type: String,
@@ -94,15 +94,15 @@ const bt = /* @__PURE__ */ be(gr, [["render", vr]]), _r = {
94
94
  }
95
95
  }
96
96
  };
97
- function br(t, e, n, r, s, o) {
97
+ function _r(t, e, n, r, s, o) {
98
98
  return m(), g("i", {
99
- class: R(["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
- b("span", { class: "visually-hidden" }, "Loading...", -1)
102
+ $("span", { class: "visually-hidden" }, "Loading...", -1)
103
103
  ]), 2);
104
104
  }
105
- const wr = /* @__PURE__ */ be(_r, [["render", br]]), $r = {
105
+ const br = /* @__PURE__ */ be(vr, [["render", _r]]), wr = {
106
106
  props: {
107
107
  type: {
108
108
  type: String,
@@ -110,19 +110,19 @@ const wr = /* @__PURE__ */ be(_r, [["render", br]]), $r = {
110
110
  }
111
111
  }
112
112
  };
113
- function Sr(t, e, n, r, s, o) {
113
+ function $r(t, e, n, r, s, o) {
114
114
  return m(), g("div", {
115
- class: R(["alert", "alert-" + n.type])
115
+ class: L(["alert", "alert-" + n.type])
116
116
  }, [
117
- O(t.$slots, "default")
117
+ D(t.$slots, "default")
118
118
  ], 2);
119
119
  }
120
- const Fr = /* @__PURE__ */ be($r, [["render", Sr]]), M = (t, e) => {
120
+ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
121
121
  const n = t.__vccOpts || t;
122
122
  for (const [r, s] of e)
123
123
  n[r] = s;
124
124
  return n;
125
- }, Cr = E({
125
+ }, Fr = I({
126
126
  components: { InputGroup: _t, InputGroupText: bt },
127
127
  props: {
128
128
  name: {
@@ -176,20 +176,20 @@ const Fr = /* @__PURE__ */ be($r, [["render", Sr]]), 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) {
181
- const i = L("InputGroupText"), a = L("InputGroup");
179
+ }), Tr = ["name", "disabled", "readonly", "placeholder"];
180
+ function kr(t, e, n, r, s, o) {
181
+ const i = j("InputGroupText"), a = j("InputGroup");
182
182
  return m(), ee(a, null, {
183
183
  default: ie(() => [
184
- re(b("input", {
184
+ re($("input", {
185
185
  name: t.name,
186
186
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.displayValue = l),
187
- class: R([{ "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" }, {
@@ -198,12 +198,12 @@ function Tr(t, e, n, r, s, o) {
198
198
  ]),
199
199
  _: 1
200
200
  }),
201
- O(t.$slots, "suffix")
201
+ D(t.$slots, "suffix")
202
202
  ]),
203
203
  _: 3
204
204
  });
205
205
  }
206
- const Aa = /* @__PURE__ */ M(Cr, [["render", Tr]]), Er = E({
206
+ const Ua = /* @__PURE__ */ M(Fr, [["render", kr]]), Er = I({
207
207
  props: {
208
208
  name: {
209
209
  type: String,
@@ -234,20 +234,20 @@ const Aa = /* @__PURE__ */ M(Cr, [["render", Tr]]), Er = E({
234
234
  }), form: e, group: n };
235
235
  }
236
236
  }), Ir = ["name", "id", "disabled"];
237
- function Vr(t, e, n, r, s, o) {
237
+ function Cr(t, e, n, r, s, o) {
238
238
  var i, a;
239
239
  return re((m(), g("input", {
240
240
  name: t.name,
241
241
  id: t.inputID,
242
242
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
243
- class: R([{ "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)), [
247
247
  [He, t.modelValue]
248
248
  ]);
249
249
  }
250
- const Ge = /* @__PURE__ */ M(Er, [["render", Vr]]), Mr = E({
250
+ const Ge = /* @__PURE__ */ M(Er, [["render", Cr]]), Vr = I({
251
251
  components: { TextInput: Ge },
252
252
  props: {
253
253
  name: {
@@ -295,38 +295,38 @@ const Ge = /* @__PURE__ */ M(Er, [["render", Vr]]), Mr = E({
295
295
  src: this.url + Math.random()
296
296
  };
297
297
  }
298
- }), Ur = { class: "input-group captcha" }, zr = ["src"], Pr = {
298
+ }), Mr = { class: "input-group captcha" }, Ur = ["src"], Ar = {
299
299
  key: 1,
300
300
  class: "placeholder-wave captcha-holder"
301
- }, Ar = ["disabled"];
302
- function Nr(t, e, n, r, s, o) {
303
- const i = L("TextInput");
304
- return m(), g("div", Ur, [
301
+ }, zr = ["disabled"];
302
+ function Pr(t, e, n, r, s, o) {
303
+ const i = j("TextInput");
304
+ return m(), g("div", Mr, [
305
305
  Q(i, {
306
306
  name: t.name,
307
307
  class: "text-start",
308
308
  type: "tel"
309
309
  }, null, 8, ["name"]),
310
- t.loading ? (m(), g("div", Pr, e[2] || (e[2] = [
311
- b("div", { class: "placeholder w-100 h-100" }, null, -1)
310
+ t.loading ? (m(), g("div", Ar, e[2] || (e[2] = [
311
+ $("div", { class: "placeholder w-100 h-100" }, null, -1)
312
312
  ]))) : (m(), g("img", {
313
313
  key: 0,
314
314
  src: t.src,
315
315
  alt: "captcha",
316
316
  onClick: e[0] || (e[0] = (...a) => t.getSrc && t.getSrc(...a)),
317
317
  class: "captcha-holder"
318
- }, null, 8, zr)),
319
- b("button", {
318
+ }, null, 8, Ur)),
319
+ $("button", {
320
320
  type: "button",
321
321
  disabled: t.form.processing || t.loading,
322
322
  onClick: e[1] || (e[1] = (...a) => t.getSrc && t.getSrc(...a)),
323
323
  class: "btn btn-secondary border-0"
324
324
  }, e[3] || (e[3] = [
325
- b("i", { class: "fal fa-sync-alt align-middle" }, null, -1)
326
- ]), 8, Ar)
325
+ $("i", { class: "fal fa-sync-alt align-middle" }, null, -1)
326
+ ]), 8, zr)
327
327
  ]);
328
328
  }
329
- const Na = /* @__PURE__ */ M(Mr, [["render", Nr]]), Dr = E({
329
+ const Aa = /* @__PURE__ */ M(Vr, [["render", Pr]]), Nr = I({
330
330
  emits: ["change"],
331
331
  props: {
332
332
  name: {
@@ -363,30 +363,30 @@ const Na = /* @__PURE__ */ M(Mr, [["render", Nr]]), Dr = E({
363
363
  }
364
364
  }), { form: e };
365
365
  }
366
- }), Or = ["for"], Rr = ["name", "id", "disabled", "type", "value"];
367
- function Br(t, e, n, r, s, o) {
366
+ }), Or = ["for"], Dr = ["name", "id", "disabled", "type", "value"];
367
+ function Rr(t, e, n, r, s, o) {
368
368
  var i, a;
369
369
  return m(), g("label", {
370
- class: R(["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
- re(b("input", {
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: R([{ "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,
381
381
  onChange: e[1] || (e[1] = (...l) => t.change && t.change(...l)),
382
382
  autocomplete: "off"
383
- }, null, 42, Rr), [
383
+ }, null, 42, Dr), [
384
384
  [yt, t.form[t.name]]
385
385
  ]),
386
- O(t.$slots, "default")
386
+ D(t.$slots, "default")
387
387
  ], 10, Or);
388
388
  }
389
- const Da = /* @__PURE__ */ M(Dr, [["render", Br]]), jr = E({
389
+ const za = /* @__PURE__ */ M(Nr, [["render", Rr]]), Br = I({
390
390
  props: {
391
391
  name: {
392
392
  type: String,
@@ -431,15 +431,15 @@ const Da = /* @__PURE__ */ M(Dr, [["render", Br]]), jr = E({
431
431
  }
432
432
  }), form: e, group: n };
433
433
  }
434
- }), Lr = { class: "form-check" }, xr = ["name", "id", "disabled", "type", "value"], qr = ["for"];
435
- function Hr(t, e, n, r, s, o) {
434
+ }), jr = { class: "form-check" }, xr = ["name", "id", "disabled", "type", "value"], Lr = ["for"];
435
+ function qr(t, e, n, r, s, o) {
436
436
  var i, a;
437
- return m(), g("div", Lr, [
438
- re(b("input", {
437
+ return m(), g("div", jr, [
438
+ re($("input", {
439
439
  name: t.name,
440
440
  id: t.inputID,
441
441
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
442
- class: R([{ "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,
@@ -447,15 +447,15 @@ function Hr(t, e, n, r, s, o) {
447
447
  }, null, 42, xr), [
448
448
  [yt, t.modelValue]
449
449
  ]),
450
- b("label", {
450
+ $("label", {
451
451
  class: "form-check-label",
452
452
  for: t.inputID
453
453
  }, [
454
- O(t.$slots, "default")
455
- ], 8, qr)
454
+ D(t.$slots, "default")
455
+ ], 8, Lr)
456
456
  ]);
457
457
  }
458
- const Oa = /* @__PURE__ */ M(jr, [["render", Hr]]), Gr = E({
458
+ const Pa = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = I({
459
459
  props: {
460
460
  name: {
461
461
  type: String,
@@ -507,33 +507,33 @@ const Oa = /* @__PURE__ */ M(jr, [["render", Hr]]), Gr = E({
507
507
  }
508
508
  }), form: e, group: n };
509
509
  }
510
- }), Wr = ["for"], Zr = ["name", "id", "disabled", "type", "value"];
510
+ }), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value"];
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: R(["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
- re(b("input", {
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: R([{ "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,
525
525
  onChange: e[1] || (e[1] = (d) => t.$emit("change", d))
526
- }, null, 42, Zr), [
526
+ }, null, 42, Wr), [
527
527
  [yt, t.modelValue]
528
528
  ]),
529
- O(t.$slots, "default")
530
- ], 10, Wr);
529
+ D(t.$slots, "default")
530
+ ], 10, Gr);
531
531
  }
532
- const Ra = /* @__PURE__ */ M(Gr, [["render", Yr]]), Xr = jn(
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 Kr = E({
536
+ const Zr = I({
537
537
  components: { Vue3PersianDatetimePicker: Xr },
538
538
  emits: ["update:modelValue", "change"],
539
539
  props: {
@@ -549,6 +549,7 @@ const Kr = E({
549
549
  type: String,
550
550
  default: "date"
551
551
  },
552
+ disabled: Boolean,
552
553
  min: String,
553
554
  max: String,
554
555
  range: Boolean,
@@ -557,12 +558,16 @@ const Kr = E({
557
558
  },
558
559
  format: {
559
560
  type: String,
560
- default: "jYYYY-jMM-jDD"
561
+ default: "jYYYY/jMM/jDD"
561
562
  },
562
563
  inputFormat: {
563
564
  type: String,
564
565
  default: null
565
566
  },
567
+ simple: {
568
+ type: Boolean,
569
+ default: !1
570
+ },
566
571
  placeholder: String
567
572
  },
568
573
  setup(t) {
@@ -598,7 +603,7 @@ const Kr = E({
598
603
  },
599
604
  computed: {
600
605
  isSsr() {
601
- return typeof window > "u";
606
+ return !window || typeof window > "u";
602
607
  },
603
608
  inputID() {
604
609
  return this.form.getID(this);
@@ -607,52 +612,26 @@ const Kr = E({
607
612
  data() {
608
613
  return {};
609
614
  }
610
- }), Jr = { class: "input-group" }, Qr = ["name", "id", "value", "placeholder", "disabled"];
611
- function es(t, e, n, r, s, o) {
615
+ });
616
+ function Kr(t, e, n, r, s, o) {
612
617
  var a;
613
- const i = L("Vue3PersianDatetimePicker");
614
- return m(), g(pe, null, [
615
- b("div", Jr, [
616
- b("input", {
617
- name: t.name,
618
- id: t.inputID,
619
- value: t.modelValue,
620
- placeholder: t.placeholder || "انتخاب تاریخ",
621
- class: R([{ "is-invalid": t.form.errors[t.name] }, "form-control form-control--datepicker text-start fanum"]),
622
- disabled: (a = t.form) == null ? void 0 : a.processing,
623
- type: "text"
624
- }, null, 10, Qr),
625
- b("button", {
626
- type: "button",
627
- onClick: e[0] || (e[0] = (...l) => t.clear && t.clear(...l)),
628
- class: R(["input-group-text input-group-datepicker-delete", { "input-group-datepicker-delete-show": t.modelValue }])
629
- }, e[2] || (e[2] = [
630
- Ln('<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C20.1752 21.4816 19.3001 21.7706 18 21.8985" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M7 4V2.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M17 4V2.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M21.5 9H16.625H10.75M2 9H5.875" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"></path><path d="M18 17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17C16 16.4477 16.4477 16 17 16C17.5523 16 18 16.4477 18 17Z" fill="#1C274C"></path><path d="M18 13C18 13.5523 17.5523 14 17 14C16.4477 14 16 13.5523 16 13C16 12.4477 16.4477 12 17 12C17.5523 12 18 12.4477 18 13Z" fill="#1C274C"></path><path d="M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z" fill="#1C274C"></path><path d="M13 13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13C11 12.4477 11.4477 12 12 12C12.5523 12 13 12.4477 13 13Z" fill="#1C274C"></path><path d="M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z" fill="#1C274C"></path><path d="M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z" fill="#1C274C"></path></svg>', 1)
631
- ]), 2)
632
- ]),
633
- t.isSsr ? j("", !0) : (m(), ee(i, {
634
- key: 0,
635
- type: t.calendar,
636
- view: t.view,
637
- min: t.min,
638
- max: t.max,
639
- jumpminute: "15",
640
- range: t.range,
641
- locale: t.locale,
642
- simple: !1,
643
- roundminute: !0,
644
- showNowBtn: !0,
645
- autoSubmit: !0,
646
- format: t.format,
647
- inputFormat: t.inputFormat ? t.inputFormat : t.format,
648
- displayFormat: t.format,
649
- modelValue: t.modelValue,
650
- "onUpdate:modelValue": e[1] || (e[1] = (l) => t.modelValue = l),
651
- "custom-input": "#" + t.inputID
652
- }, null, 8, ["type", "view", "min", "max", "range", "locale", "format", "inputFormat", "displayFormat", "modelValue", "custom-input"]))
653
- ], 64);
618
+ const i = j("Vue3PersianDatetimePicker");
619
+ return t.isSsr ? B("", !0) : (m(), ee(i, en({
620
+ key: 0,
621
+ modelValue: t.modelValue,
622
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
623
+ type: t.calendar,
624
+ editable: "",
625
+ jumpminute: "15",
626
+ disabled: ((a = t.form) == null ? void 0 : a.processing) || t.disabled,
627
+ roundminute: !0,
628
+ showNowBtn: !0,
629
+ autoSubmit: !0,
630
+ inputFormat: t.inputFormat ? t.inputFormat : t.format,
631
+ "input-class": "form-control"
632
+ }, t.$props), null, 16, ["modelValue", "type", "disabled", "inputFormat"]));
654
633
  }
655
- const Ba = /* @__PURE__ */ M(Kr, [["render", es]]), ts = E({
634
+ const Oa = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = I({
656
635
  emits: ["update:modelValue", "setContent"],
657
636
  components: { Editor: Xn },
658
637
  props: {
@@ -700,8 +679,8 @@ const Ba = /* @__PURE__ */ M(Kr, [["render", es]]), ts = E({
700
679
  }), form: i, group: a, editorRef: r, handleInit: o };
701
680
  }
702
681
  });
703
- function ns(t, e, n, r, s, o) {
704
- const i = L("Editor");
682
+ function Qr(t, e, n, r, s, o) {
683
+ const i = j("Editor");
705
684
  return m(), ee(i, {
706
685
  ref: "editorRef",
707
686
  onInit: t.handleInit,
@@ -715,7 +694,7 @@ function ns(t, e, n, r, s, o) {
715
694
  }
716
695
  }, null, 8, ["onInit", "modelValue", "init"]);
717
696
  }
718
- const ja = /* @__PURE__ */ M(ts, [["render", ns]]), rs = E({
697
+ const Da = /* @__PURE__ */ M(Jr, [["render", Qr]]), es = I({
719
698
  props: {
720
699
  modelValue: "",
721
700
  name: {
@@ -794,80 +773,80 @@ const ja = /* @__PURE__ */ M(ts, [["render", ns]]), rs = E({
794
773
  files: []
795
774
  };
796
775
  }
797
- }), ss = { class: "file-input-uploader" }, is = ["name", "disabled", "multiple"], os = { class: "file-input-uploader--list" }, as = ["id"], ls = {
776
+ }), ts = { class: "file-input-uploader" }, ns = ["name", "disabled", "multiple"], rs = { class: "file-input-uploader--list" }, ss = ["id"], is = {
798
777
  key: 0,
799
778
  class: "file-input-uploader--progress"
800
- }, us = {
779
+ }, os = {
801
780
  key: 1,
802
781
  class: "file-input-uploader--list-error"
803
- }, ds = {
782
+ }, as = {
804
783
  class: "file-input-uploader--list-item--size",
805
784
  dir: "ltr"
806
- }, ps = { class: "file-input-uploader--list-item--actions" }, cs = ["onClick"], fs = ["onClick"];
807
- function hs(t, e, n, r, s, o) {
785
+ }, ls = { class: "file-input-uploader--list-item--actions" }, us = ["onClick"], ds = ["onClick"];
786
+ function ps(t, e, n, r, s, o) {
808
787
  var i, a;
809
- return m(), g("div", ss, [
810
- b("input", {
788
+ return m(), g("div", ts, [
789
+ $("input", {
811
790
  ref: "input",
812
791
  name: t.name,
813
- class: R([{ "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"]),
814
793
  disabled: (a = t.form) == null ? void 0 : a.processing,
815
794
  type: "file",
816
795
  multiple: t.multiple,
817
796
  onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
818
- }, null, 42, is),
819
- b("div", os, [
820
- (m(!0), g(pe, null, _e(t.allFiles, (l) => (m(), g("div", {
797
+ }, null, 42, ns),
798
+ $("div", rs, [
799
+ (m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
821
800
  id: "file-" + l.id,
822
801
  class: "file-input-uploader--list-item"
823
802
  }, [
824
- l.percent && l.percent < 100 ? (m(), g("div", ls, [
825
- b("div", {
803
+ l.percent && l.percent < 100 ? (m(), g("div", is, [
804
+ $("div", {
826
805
  style: vt({ width: l.percent + "%" })
827
806
  }, null, 4)
828
- ])) : j("", !0),
829
- b("div", null, H(l.file.name), 1),
830
- l.error ? (m(), g("div", us, H(l.error), 1)) : j("", !0),
831
- b("div", ds, H(Math.round(l.file.size / 1024)) + "Kb", 1),
832
- b("div", ps, [
807
+ ])) : B("", !0),
808
+ $("div", null, H(l.file.name), 1),
809
+ l.error ? (m(), g("div", os, H(l.error), 1)) : B("", !0),
810
+ $("div", as, H(Math.round(l.file.size / 1024)) + "Kb", 1),
811
+ $("div", ls, [
833
812
  l.error ? (m(), g("button", {
834
813
  key: 0,
835
814
  onClick: (u) => t.uploadFile(l),
836
815
  type: "button",
837
816
  class: "file-input-uploader--list-item--btn"
838
817
  }, e[1] || (e[1] = [
839
- b("svg", {
818
+ $("svg", {
840
819
  fill: "#000000",
841
820
  width: "800px",
842
821
  height: "800px",
843
822
  viewBox: "0 0 24 24",
844
823
  xmlns: "http://www.w3.org/2000/svg"
845
824
  }, [
846
- b("path", { d: "M1,12A11,11,0,0,1,17.882,2.7l1.411-1.41A1,1,0,0,1,21,2V6a1,1,0,0,1-1,1H16a1,1,0,0,1-.707-1.707l1.128-1.128A8.994,8.994,0,0,0,3,12a1,1,0,0,1-2,0Zm21-1a1,1,0,0,0-1,1,9.01,9.01,0,0,1-9,9,8.9,8.9,0,0,1-4.42-1.166l1.127-1.127A1,1,0,0,0,8,17H4a1,1,0,0,0-1,1v4a1,1,0,0,0,.617.924A.987.987,0,0,0,4,23a1,1,0,0,0,.707-.293L6.118,21.3A10.891,10.891,0,0,0,12,23,11.013,11.013,0,0,0,23,12,1,1,0,0,0,22,11Z" })
825
+ $("path", { d: "M1,12A11,11,0,0,1,17.882,2.7l1.411-1.41A1,1,0,0,1,21,2V6a1,1,0,0,1-1,1H16a1,1,0,0,1-.707-1.707l1.128-1.128A8.994,8.994,0,0,0,3,12a1,1,0,0,1-2,0Zm21-1a1,1,0,0,0-1,1,9.01,9.01,0,0,1-9,9,8.9,8.9,0,0,1-4.42-1.166l1.127-1.127A1,1,0,0,0,8,17H4a1,1,0,0,0-1,1v4a1,1,0,0,0,.617.924A.987.987,0,0,0,4,23a1,1,0,0,0,.707-.293L6.118,21.3A10.891,10.891,0,0,0,12,23,11.013,11.013,0,0,0,23,12,1,1,0,0,0,22,11Z" })
847
826
  ], -1)
848
- ]), 8, cs)) : j("", !0),
827
+ ]), 8, us)) : B("", !0),
849
828
  l.path || l.error ? (m(), g("button", {
850
829
  key: 1,
851
830
  onClick: (u) => t.deleteFile(l),
852
831
  type: "button",
853
832
  class: "file-input-uploader--list-item--btn"
854
833
  }, e[2] || (e[2] = [
855
- b("svg", {
834
+ $("svg", {
856
835
  fill: "#000000",
857
836
  width: "800px",
858
837
  height: "800px",
859
838
  viewBox: "0 0 24 24",
860
839
  xmlns: "http://www.w3.org/2000/svg"
861
840
  }, [
862
- b("path", { d: "M12,23A11,11,0,1,0,1,12,11.013,11.013,0,0,0,12,23ZM12,3a9,9,0,1,1-9,9A9.01,9.01,0,0,1,12,3ZM8.293,14.293,10.586,12,8.293,9.707A1,1,0,0,1,9.707,8.293L12,10.586l2.293-2.293a1,1,0,0,1,1.414,1.414L13.414,12l2.293,2.293a1,1,0,1,1-1.414,1.414L12,13.414,9.707,15.707a1,1,0,0,1-1.414-1.414Z" })
841
+ $("path", { d: "M12,23A11,11,0,1,0,1,12,11.013,11.013,0,0,0,12,23ZM12,3a9,9,0,1,1-9,9A9.01,9.01,0,0,1,12,3ZM8.293,14.293,10.586,12,8.293,9.707A1,1,0,0,1,9.707,8.293L12,10.586l2.293-2.293a1,1,0,0,1,1.414,1.414L13.414,12l2.293,2.293a1,1,0,1,1-1.414,1.414L12,13.414,9.707,15.707a1,1,0,0,1-1.414-1.414Z" })
863
842
  ], -1)
864
- ]), 8, fs)) : j("", !0)
843
+ ]), 8, ds)) : B("", !0)
865
844
  ])
866
- ], 8, as))), 256))
845
+ ], 8, ss))), 256))
867
846
  ])
868
847
  ]);
869
848
  }
870
- const La = /* @__PURE__ */ M(rs, [["render", hs]]), ms = E({
849
+ const Ra = /* @__PURE__ */ M(es, [["render", ps]]), cs = I({
871
850
  components: {
872
851
  TextInput: Ge
873
852
  },
@@ -879,15 +858,15 @@ const La = /* @__PURE__ */ M(rs, [["render", hs]]), ms = E({
879
858
  }
880
859
  }
881
860
  });
882
- function gs(t, e, n, r, s, o) {
883
- const i = L("TextInput");
861
+ function fs(t, e, n, r, s, o) {
862
+ const i = j("TextInput");
884
863
  return m(), ee(i, {
885
864
  name: t.name,
886
865
  placeholder: "ایمیل خود را وارد کنید",
887
866
  type: "email"
888
867
  }, null, 8, ["name"]);
889
868
  }
890
- const xa = /* @__PURE__ */ M(ms, [["render", gs]]), ys = E({
869
+ const Ba = /* @__PURE__ */ M(cs, [["render", fs]]), hs = I({
891
870
  props: {
892
871
  name: {
893
872
  type: String,
@@ -928,18 +907,19 @@ const xa = /* @__PURE__ */ M(ms, [["render", gs]]), ys = E({
928
907
  groupID: "0"
929
908
  };
930
909
  }
931
- }), vs = ["data-group-id"];
932
- function _s(t, e, n, r, s, o) {
910
+ }), ms = ["data-name", "data-group-id"];
911
+ function gs(t, e, n, r, s, o) {
933
912
  return m(), g("div", {
934
913
  class: "form-control-group",
914
+ "data-name": t.name,
935
915
  "data-group-id": t.groupID,
936
916
  ref: "groupEl"
937
917
  }, [
938
- O(t.$slots, "default")
939
- ], 8, vs);
918
+ D(t.$slots, "default")
919
+ ], 8, ms);
940
920
  }
941
- const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
942
- components: { Alert: Fr },
921
+ const ys = /* @__PURE__ */ M(hs, [["render", gs]]), vs = I({
922
+ components: { Alert: Sr },
943
923
  emits: ["submit", "reset", "onStart", "onFinish", "onSuccess", "onError", "change"],
944
924
  props: {
945
925
  url: {
@@ -976,7 +956,7 @@ const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
976
956
  }
977
957
  },
978
958
  setup(t) {
979
- const e = xn("formEl"), n = en(t.modelValue), r = Kn({
959
+ const e = Ln("formEl"), n = tn(t.modelValue), r = Zn({
980
960
  hasMessage: !1,
981
961
  successMessage: null,
982
962
  ...t.options,
@@ -1015,6 +995,20 @@ const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
1015
995
  }
1016
996
  },
1017
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
+ },
1018
1012
  reset() {
1019
1013
  this.form.reset();
1020
1014
  },
@@ -1049,66 +1043,67 @@ const bs = /* @__PURE__ */ M(ys, [["render", _s]]), ws = E({
1049
1043
  }
1050
1044
  },
1051
1045
  expose: ["submit", "reset"]
1052
- }), $s = ["action", "method", "novalidate"], Ss = { class: "list-unstyled p-0 m-0 fanum" };
1053
- function Fs(t, e, n, r, s, o) {
1054
- const i = L("Alert");
1046
+ }), _s = ["action", "method", "novalidate"], bs = { class: "list-unstyled p-0 m-0 fanum" };
1047
+ function ws(t, e, n, r, s, o) {
1048
+ const i = j("Alert");
1055
1049
  return m(), g("form", {
1056
1050
  ref: "formEl",
1057
1051
  action: t.url,
1058
1052
  method: t.method,
1059
- onSubmit: e[0] || (e[0] = tn((...a) => t.submit && t.submit(...a), ["prevent"])),
1060
- onReset: e[1] || (e[1] = (a) => t.$emit("reset")),
1061
- class: R({ "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 }),
1062
1057
  novalidate: !!Object.values(t.form.errors).length
1063
1058
  }, [
1064
- O(t.$slots, "errors", {}, () => [
1059
+ D(t.$slots, "errors", {}, () => [
1065
1060
  t.form.hasErrors ? (m(), ee(i, {
1066
1061
  key: 0,
1067
1062
  type: "danger"
1068
1063
  }, {
1069
1064
  default: ie(() => [
1070
- b("ul", Ss, [
1071
- (m(!0), g(pe, null, _e(t.form.errors, (a) => (m(), g("li", null, H(a), 1))), 256))
1065
+ $("ul", bs, [
1066
+ (m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", null, H(a), 1))), 256))
1072
1067
  ])
1073
1068
  ]),
1074
1069
  _: 1
1075
- })) : j("", !0)
1070
+ })) : B("", !0)
1076
1071
  ]),
1077
- O(t.$slots, "message", {}, () => [
1072
+ D(t.$slots, "message", {}, () => [
1078
1073
  t.form.hasMessage && t.form.successMessage ? (m(), ee(i, {
1079
1074
  key: 0,
1080
1075
  type: "success",
1081
1076
  innerHTML: t.form.successMessage
1082
- }, null, 8, ["innerHTML"])) : j("", !0)
1077
+ }, null, 8, ["innerHTML"])) : B("", !0)
1083
1078
  ]),
1084
- O(t.$slots, "default", {
1079
+ D(t.$slots, "default", {
1085
1080
  form: t.form,
1086
1081
  submit: t.submit
1087
1082
  })
1088
- ], 42, $s);
1083
+ ], 42, _s);
1089
1084
  }
1090
- const qa = /* @__PURE__ */ M(ws, [["render", Fs]]), Cs = E({
1085
+ const ja = /* @__PURE__ */ M(vs, [["render", ws]]), $s = I({
1091
1086
  props: {
1092
1087
  default: !1,
1093
1088
  required: !1
1094
1089
  },
1095
1090
  emits: ["update:modelValue"]
1096
- }), ks = { class: "mb-2 d-block" }, Ts = {
1091
+ }), Ss = { class: "mb-2 d-block" }, Fs = {
1097
1092
  key: 0,
1098
1093
  class: "text-danger"
1099
1094
  };
1100
- function Es(t, e, n, r, s, o) {
1101
- return m(), g("label", ks, [
1102
- O(t.$slots, "default", {}, void 0, !0),
1103
- t.required ? (m(), g("span", Ts, "*")) : j("", !0)
1095
+ function Ts(t, e, n, r, s, o) {
1096
+ return m(), g("label", Ss, [
1097
+ D(t.$slots, "default", {}, void 0, !0),
1098
+ t.required ? (m(), g("span", Fs, "*")) : B("", !0)
1104
1099
  ]);
1105
1100
  }
1106
- const Ha = /* @__PURE__ */ M(Cs, [["render", Es], ["__scopeId", "data-v-bfeb9beb"]]), Is = E({
1101
+ const xa = /* @__PURE__ */ M($s, [["render", Ts], ["__scopeId", "data-v-bfeb9beb"]]), ks = I({
1107
1102
  name: "LocationInput",
1108
1103
  components: {
1109
- LMap: er,
1110
- LTileLayer: Qn,
1111
- LMarker: Jn
1104
+ LMap: Qn,
1105
+ LTileLayer: Jn,
1106
+ LMarker: Kn
1112
1107
  },
1113
1108
  props: {
1114
1109
  name: {
@@ -1160,11 +1155,11 @@ const Ha = /* @__PURE__ */ M(Cs, [["render", Es], ["__scopeId", "data-v-bfeb9beb
1160
1155
  };
1161
1156
  }
1162
1157
  });
1163
- function Vs(t, e, n, r, s, o) {
1158
+ function Es(t, e, n, r, s, o) {
1164
1159
  var u;
1165
- const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
1160
+ const i = j("l-tile-layer"), a = j("LMarker"), l = j("l-map");
1166
1161
  return m(), g("div", {
1167
- class: R(["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 }])
1168
1163
  }, [
1169
1164
  Q(l, {
1170
1165
  ref: "map",
@@ -1185,13 +1180,13 @@ function Vs(t, e, n, r, s, o) {
1185
1180
  "lat-lng": t.marker,
1186
1181
  draggable: !t.readonly && !t.disabled,
1187
1182
  onDragend: t.setMarker
1188
- }, null, 8, ["lat-lng", "draggable", "onDragend"])) : j("", !0)
1183
+ }, null, 8, ["lat-lng", "draggable", "onDragend"])) : B("", !0)
1189
1184
  ]),
1190
1185
  _: 1
1191
1186
  }, 8, ["zoom", "center", "onClick"])
1192
1187
  ], 2);
1193
1188
  }
1194
- const Ga = /* @__PURE__ */ M(Is, [["render", Vs]]), Ms = E({
1189
+ const La = /* @__PURE__ */ M(ks, [["render", Es]]), Is = I({
1195
1190
  components: {
1196
1191
  TextInput: Ge
1197
1192
  },
@@ -1203,15 +1198,15 @@ const Ga = /* @__PURE__ */ M(Is, [["render", Vs]]), Ms = E({
1203
1198
  }
1204
1199
  }
1205
1200
  });
1206
- function Us(t, e, n, r, s, o) {
1207
- const i = L("TextInput");
1201
+ function Cs(t, e, n, r, s, o) {
1202
+ const i = j("TextInput");
1208
1203
  return m(), ee(i, {
1209
1204
  name: t.name,
1210
1205
  placeholder: "موبایل خود را وارد کنید",
1211
1206
  type: "tel"
1212
1207
  }, null, 8, ["name"]);
1213
1208
  }
1214
- const Wa = /* @__PURE__ */ M(Ms, [["render", Us]]), zs = E({
1209
+ const qa = /* @__PURE__ */ M(Is, [["render", Cs]]), Vs = I({
1215
1210
  components: {
1216
1211
  TextInput: Ge
1217
1212
  },
@@ -1223,15 +1218,15 @@ const Wa = /* @__PURE__ */ M(Ms, [["render", Us]]), zs = E({
1223
1218
  }
1224
1219
  }
1225
1220
  });
1226
- function Ps(t, e, n, r, s, o) {
1227
- const i = L("TextInput");
1221
+ function Ms(t, e, n, r, s, o) {
1222
+ const i = j("TextInput");
1228
1223
  return m(), ee(i, {
1229
1224
  name: t.name,
1230
1225
  placeholder: "گذرواژه خود را وارد کنید",
1231
1226
  type: "password"
1232
1227
  }, null, 8, ["name"]);
1233
1228
  }
1234
- const Za = /* @__PURE__ */ M(zs, [["render", Ps]]), As = E({
1229
+ const Ha = /* @__PURE__ */ M(Vs, [["render", Ms]]), Us = I({
1235
1230
  components: { InputGroup: _t, InputGroupText: bt },
1236
1231
  props: {
1237
1232
  name: {
@@ -1289,55 +1284,55 @@ const Za = /* @__PURE__ */ M(zs, [["render", Ps]]), As = E({
1289
1284
  data() {
1290
1285
  return {};
1291
1286
  }
1292
- }), Ns = ["name", "value", "disabled", "readonly"];
1293
- function Ds(t, e, n, r, s, o) {
1294
- const i = L("InputGroupText"), a = L("InputGroup"), l = qn("maska");
1287
+ }), As = ["name", "value", "disabled", "readonly"];
1288
+ function zs(t, e, n, r, s, o) {
1289
+ const i = j("InputGroupText"), a = j("InputGroup"), l = qn("maska");
1295
1290
  return m(), ee(a, { class: "input-group-quantity" }, {
1296
1291
  default: ie(() => [
1297
- b("button", {
1292
+ $("button", {
1298
1293
  onClick: e[0] || (e[0] = (...u) => t.increment && t.increment(...u)),
1299
1294
  type: "button",
1300
1295
  class: "btn"
1301
1296
  }, e[3] || (e[3] = [
1302
- b("svg", {
1297
+ $("svg", {
1303
1298
  width: "800px",
1304
1299
  height: "800px",
1305
1300
  viewBox: "0 0 24 24",
1306
1301
  fill: "none",
1307
1302
  xmlns: "http://www.w3.org/2000/svg"
1308
1303
  }, [
1309
- b("path", {
1304
+ $("path", {
1310
1305
  d: "M13 3C13 2.44772 12.5523 2 12 2C11.4477 2 11 2.44772 11 3V11H3C2.44772 11 2 11.4477 2 12C2 12.5523 2.44772 13 3 13H11V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V13H21C21.5523 13 22 12.5523 22 12C22 11.4477 21.5523 11 21 11H13V3Z",
1311
1306
  fill: "#0F0F0F"
1312
1307
  })
1313
1308
  ], -1)
1314
1309
  ])),
1315
- re(b("input", {
1310
+ re($("input", {
1316
1311
  name: t.name,
1317
1312
  value: this.modelValue,
1318
1313
  "data-maska": "###,###,###,###,###,###,###",
1319
1314
  "data-maska-reversed": "",
1320
1315
  onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
1321
- class: R([{ "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"]),
1322
1317
  disabled: t.disabled || t.form.processing,
1323
1318
  readonly: t.readonly,
1324
1319
  type: "tel"
1325
- }, null, 42, Ns), [
1320
+ }, null, 42, As), [
1326
1321
  [l]
1327
1322
  ]),
1328
- b("button", {
1323
+ $("button", {
1329
1324
  onClick: e[2] || (e[2] = (...u) => t.decrement && t.decrement(...u)),
1330
1325
  type: "button",
1331
1326
  class: "btn"
1332
1327
  }, e[4] || (e[4] = [
1333
- b("svg", {
1328
+ $("svg", {
1334
1329
  width: "800px",
1335
1330
  height: "800px",
1336
1331
  viewBox: "0 0 20 20",
1337
1332
  xmlns: "http://www.w3.org/2000/svg",
1338
1333
  fill: "none"
1339
1334
  }, [
1340
- b("path", {
1335
+ $("path", {
1341
1336
  fill: "#000000",
1342
1337
  "fill-rule": "evenodd",
1343
1338
  d: "M18 10a1 1 0 01-1 1H3a1 1 0 110-2h14a1 1 0 011 1z"
@@ -1350,13 +1345,13 @@ function Ds(t, e, n, r, s, o) {
1350
1345
  ]),
1351
1346
  _: 1
1352
1347
  }),
1353
- O(t.$slots, "suffix")
1348
+ D(t.$slots, "suffix")
1354
1349
  ]),
1355
1350
  _: 3
1356
1351
  });
1357
1352
  }
1358
- const Os = /* @__PURE__ */ M(As, [["render", Ds]]), Rs = E({
1359
- components: { GroupControl: bs, QuantityInput: Os, InputGroup: _t, InputGroupText: bt, Dropdown: ar, DropdownToggle: cr, DropdownMenu: pr },
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 },
1360
1355
  props: {
1361
1356
  name: {
1362
1357
  type: String,
@@ -1432,29 +1427,29 @@ const Os = /* @__PURE__ */ M(As, [["render", Ds]]), Rs = E({
1432
1427
  showDropdown: !1
1433
1428
  };
1434
1429
  }
1435
- }), Bs = {
1430
+ }), Os = {
1436
1431
  ref: "input",
1437
1432
  class: "multi-quantity-input fanum"
1438
- }, js = { class: "row align-items-center justify-content-between g-0" }, Ls = ["innerHTML"], xs = { class: "col-auto" };
1439
- function qs(t, e, n, r, s, o) {
1440
- const i = L("QuantityInput"), a = L("GroupControl");
1441
- return m(), g("div", Bs, [
1442
- b("button", {
1433
+ }, Ds = { class: "row align-items-center justify-content-between g-0" }, Rs = ["innerHTML"], Bs = { class: "col-auto" };
1434
+ function js(t, e, n, r, s, o) {
1435
+ const i = j("QuantityInput"), a = j("GroupControl");
1436
+ return m(), g("div", Os, [
1437
+ $("button", {
1443
1438
  type: "button",
1444
1439
  class: "form-control fanum dropdown-toggle",
1445
- onClick: e[0] || (e[0] = tn((...l) => t.show && t.show(...l), ["prevent"]))
1440
+ onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
1446
1441
  }, H(t.totalQuantity) + " " + H(t.unit), 1),
1447
- b("div", {
1448
- class: R(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1442
+ $("div", {
1443
+ class: L(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1449
1444
  }, [
1450
1445
  Q(a, { name: t.name }, {
1451
1446
  default: ie(() => [
1452
- (m(!0), g(pe, null, _e(t.options, (l, u) => (m(), g("div", js, [
1453
- b("div", {
1447
+ (m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div", Ds, [
1448
+ $("div", {
1454
1449
  class: "col-auto",
1455
1450
  innerHTML: (l == null ? void 0 : l.name) || l
1456
- }, null, 8, Ls),
1457
- b("div", xs, [
1451
+ }, null, 8, Rs),
1452
+ $("div", Bs, [
1458
1453
  Q(i, {
1459
1454
  name: u,
1460
1455
  min: l.min || t.min,
@@ -1468,7 +1463,7 @@ function qs(t, e, n, r, s, o) {
1468
1463
  ], 2)
1469
1464
  ], 512);
1470
1465
  }
1471
- const Ya = /* @__PURE__ */ M(Rs, [["render", qs]]), Hs = E({
1466
+ const Ga = /* @__PURE__ */ M(Ns, [["render", js]]), xs = I({
1472
1467
  emits: ["update:modelValue", "search", "searching", "change", "selected"],
1473
1468
  props: {
1474
1469
  name: {
@@ -1651,15 +1646,15 @@ const Ya = /* @__PURE__ */ M(Rs, [["render", qs]]), Hs = E({
1651
1646
  }
1652
1647
  };
1653
1648
  }
1654
- }), Gs = ["name", "id"], Ws = ["value", "selected"];
1655
- function Zs(t, e, n, r, s, o) {
1649
+ }), Ls = ["name", "id"], qs = ["value", "selected"];
1650
+ function Hs(t, e, n, r, s, o) {
1656
1651
  return m(), g("div", {
1657
- class: R(["select2-controller", {
1652
+ class: L(["select2-controller", {
1658
1653
  "is-invalid": t.form.errors[t.name],
1659
1654
  "select2-dropdown-hidden": t.hideDropdown === !0
1660
1655
  }])
1661
1656
  }, [
1662
- re(b("select", Hn(t.$props, {
1657
+ re($("select", en(t.$props, {
1663
1658
  name: t.name,
1664
1659
  id: t.name,
1665
1660
  "onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
@@ -1669,16 +1664,16 @@ function Zs(t, e, n, r, s, o) {
1669
1664
  }],
1670
1665
  ref: "input"
1671
1666
  }), [
1672
- (m(!0), g(pe, null, _e(t.options, (i, a) => (m(), g("option", {
1667
+ (m(!0), g(ve, null, _e(t.options, (i, a) => (m(), g("option", {
1673
1668
  value: t.getKeyFromItem(i),
1674
1669
  selected: t.selected(i)
1675
- }, H(t.getLabelFromItem(i)), 9, Ws))), 256))
1676
- ], 16, Gs), [
1677
- [Gn, t.modelValue]
1670
+ }, H(t.getLabelFromItem(i)), 9, qs))), 256))
1671
+ ], 16, Ls), [
1672
+ [Hn, t.modelValue]
1678
1673
  ])
1679
1674
  ], 2);
1680
1675
  }
1681
- const Xa = /* @__PURE__ */ M(Hs, [["render", Zs]]), Ys = E({
1676
+ const Wa = /* @__PURE__ */ M(xs, [["render", Hs]]), Gs = I({
1682
1677
  emits: ["update:modelValue"],
1683
1678
  props: {
1684
1679
  name: {
@@ -1753,36 +1748,36 @@ const Xa = /* @__PURE__ */ M(Hs, [["render", Zs]]), Ys = E({
1753
1748
  isRTL: !1
1754
1749
  };
1755
1750
  }
1756
- }), Xs = { class: "star-rating" }, Ks = {
1751
+ }), Ws = { class: "star-rating" }, Ys = {
1757
1752
  key: 0,
1758
1753
  class: "rating-value fanum"
1759
1754
  };
1760
- function Js(t, e, n, r, s, o) {
1761
- return m(), g("div", Xs, [
1762
- b("div", {
1755
+ function Xs(t, e, n, r, s, o) {
1756
+ return m(), g("div", Ws, [
1757
+ $("div", {
1763
1758
  class: "star-rating-container",
1764
1759
  ref: "ratingContainer",
1765
1760
  onMouseleave: e[0] || (e[0] = (...i) => t.resetHover && t.resetHover(...i)),
1766
1761
  onMousemove: e[1] || (e[1] = (...i) => t.setHover && t.setHover(...i)),
1767
1762
  onClick: e[2] || (e[2] = (...i) => t.updateRating && t.updateRating(...i))
1768
1763
  }, [
1769
- (m(!0), g(pe, null, _e(t.maxStars, (i) => (m(), g("div", {
1764
+ (m(!0), g(ve, null, _e(t.maxStars, (i) => (m(), g("div", {
1770
1765
  key: i,
1771
1766
  class: "star-wrapper"
1772
1767
  }, [
1773
- e[3] || (e[3] = b("div", { class: "star-bg" }, "★", -1)),
1774
- b("span", {
1768
+ e[3] || (e[3] = $("div", { class: "star-bg" }, "★", -1)),
1769
+ $("span", {
1775
1770
  class: "star-overlay",
1776
1771
  style: vt({ width: t.getStarFill(i) + "%" })
1777
1772
  }, "★", 4)
1778
1773
  ]))), 128))
1779
1774
  ], 544),
1780
- t.showValue && t.displayRating > 0 ? (m(), g("div", Ks, H(t.displayRating), 1)) : j("", !0)
1775
+ t.showValue && t.displayRating > 0 ? (m(), g("div", Ys, H(t.displayRating), 1)) : B("", !0)
1781
1776
  ]);
1782
1777
  }
1783
- const Ka = /* @__PURE__ */ M(Ys, [["render", Js]]), Qs = E({
1778
+ const Ya = /* @__PURE__ */ M(Gs, [["render", Xs]]), Zs = I({
1784
1779
  components: {
1785
- Spinner: wr
1780
+ Spinner: br
1786
1781
  },
1787
1782
  inject: ["form"],
1788
1783
  props: {
@@ -1791,32 +1786,32 @@ const Ka = /* @__PURE__ */ M(Ys, [["render", Js]]), Qs = E({
1791
1786
  default: !1
1792
1787
  }
1793
1788
  }
1794
- }), ei = ["disabled"], ti = {
1789
+ }), Ks = ["disabled"], Js = {
1795
1790
  key: 0,
1796
1791
  class: "submit-upload-percent"
1797
1792
  };
1798
- function ni(t, e, n, r, s, o) {
1793
+ function Qs(t, e, n, r, s, o) {
1799
1794
  var a, l, u, d;
1800
- const i = L("Spinner");
1795
+ const i = j("Spinner");
1801
1796
  return m(), g("button", {
1802
1797
  type: "submit",
1803
1798
  disabled: t.disabled || ((a = t.form) == null ? void 0 : a.processing) || ((l = t.form) == null ? void 0 : l.uploading)
1804
1799
  }, [
1805
- (u = t.form) != null && u.processing || (d = t.form) != null && d.uploading ? (m(), ee(i, { key: 0 })) : j("", !0),
1806
- O(t.$slots, "default", { form: t.form }, () => [
1800
+ (u = t.form) != null && u.processing || (d = t.form) != null && d.uploading ? (m(), ee(i, { key: 0 })) : B("", !0),
1801
+ D(t.$slots, "default", { form: t.form }, () => [
1807
1802
  e[0] || (e[0] = gt(" تایید و ثبت اطلاعات "))
1808
1803
  ]),
1809
- O(t.$slots, "progress", {}, () => {
1804
+ D(t.$slots, "progress", {}, () => {
1810
1805
  var p, c;
1811
1806
  return [
1812
- (p = t.form) != null && p.uploading ? (m(), g("span", ti, H((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : j("", !0)
1807
+ (p = t.form) != null && p.uploading ? (m(), g("span", Js, H((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : B("", !0)
1813
1808
  ];
1814
1809
  })
1815
- ], 8, ei);
1810
+ ], 8, Ks);
1816
1811
  }
1817
- const Ja = /* @__PURE__ */ M(Qs, [["render", ni]]), ri = E({
1812
+ const Xa = /* @__PURE__ */ M(Zs, [["render", Qs]]), ei = I({
1818
1813
  components: {
1819
- VueTelInput: tr
1814
+ VueTelInput: er
1820
1815
  },
1821
1816
  props: {
1822
1817
  name: {
@@ -1848,14 +1843,14 @@ const Ja = /* @__PURE__ */ M(Qs, [["render", ni]]), ri = E({
1848
1843
  valid: null
1849
1844
  };
1850
1845
  }
1851
- }), si = {
1846
+ }), ti = {
1852
1847
  class: "telephone-input input-group fanum",
1853
1848
  dir: "ltr"
1854
1849
  };
1855
- function ii(t, e, n, r, s, o) {
1850
+ function ni(t, e, n, r, s, o) {
1856
1851
  var a;
1857
- const i = L("vue-tel-input");
1858
- return m(), g("div", si, [
1852
+ const i = j("vue-tel-input");
1853
+ return m(), g("div", ti, [
1859
1854
  Q(i, {
1860
1855
  mode: "national",
1861
1856
  validCharactersOnly: !0,
@@ -1878,7 +1873,7 @@ function ii(t, e, n, r, s, o) {
1878
1873
  }, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
1879
1874
  ]);
1880
1875
  }
1881
- const Qa = /* @__PURE__ */ M(ri, [["render", ii]]), oi = E({
1876
+ const Za = /* @__PURE__ */ M(ei, [["render", ni]]), ri = I({
1882
1877
  props: {
1883
1878
  name: {
1884
1879
  type: String,
@@ -1903,19 +1898,19 @@ const Qa = /* @__PURE__ */ M(ri, [["render", ii]]), oi = E({
1903
1898
  }
1904
1899
  }), form: e, group: n };
1905
1900
  }
1906
- }), ai = ["name", "disabled"];
1907
- function li(t, e, n, r, s, o) {
1901
+ }), si = ["name", "disabled"];
1902
+ function ii(t, e, n, r, s, o) {
1908
1903
  var i, a;
1909
1904
  return re((m(), g("textarea", {
1910
1905
  name: t.name,
1911
1906
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
1912
- class: R([{ "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"]),
1913
1908
  disabled: (a = t.form) == null ? void 0 : a.processing
1914
- }, null, 10, ai)), [
1909
+ }, null, 10, si)), [
1915
1910
  [He, t.modelValue]
1916
1911
  ]);
1917
1912
  }
1918
- const el = /* @__PURE__ */ M(oi, [["render", li]]), tl = {
1913
+ const Ka = /* @__PURE__ */ M(ri, [["render", ii]]), Ja = {
1919
1914
  __name: "DropzoneInput",
1920
1915
  props: {
1921
1916
  name: {
@@ -1946,8 +1941,8 @@ const el = /* @__PURE__ */ M(oi, [["render", li]]), tl = {
1946
1941
  (d = o == null ? void 0 : o.value) != null && d.name ? o.value.setData(n.name, u) : s.value[n.name] = u, r("update:modelValue", u);
1947
1942
  }
1948
1943
  });
1949
- return ve(() => {
1950
- a.value = new nr(i.value, {
1944
+ return ye(() => {
1945
+ a.value = new tr(i.value, {
1951
1946
  url: n.url,
1952
1947
  addRemoveLinks: !0,
1953
1948
  maxFiles: n.multiple ? null : 1,
@@ -1982,7 +1977,7 @@ const el = /* @__PURE__ */ M(oi, [["render", li]]), tl = {
1982
1977
  ref: i
1983
1978
  }, null, 512));
1984
1979
  }
1985
- }, ui = E({
1980
+ }, oi = I({
1986
1981
  props: {
1987
1982
  modelValue: "",
1988
1983
  name: {
@@ -2063,80 +2058,80 @@ const el = /* @__PURE__ */ M(oi, [["render", li]]), tl = {
2063
2058
  files: []
2064
2059
  };
2065
2060
  }
2066
- }), di = { class: "file-input-uploader" }, pi = ["name", "disabled", "multiple"], ci = { class: "file-input-uploader--list" }, fi = ["id"], hi = {
2061
+ }), ai = { class: "file-input-uploader" }, li = ["name", "disabled", "multiple"], ui = { class: "file-input-uploader--list" }, di = ["id"], pi = {
2067
2062
  key: 0,
2068
2063
  class: "file-input-uploader--progress"
2069
- }, mi = {
2064
+ }, ci = {
2070
2065
  key: 1,
2071
2066
  class: "file-input-uploader--list-error"
2072
- }, gi = {
2067
+ }, fi = {
2073
2068
  class: "file-input-uploader--list-item--size",
2074
2069
  dir: "ltr"
2075
- }, yi = { class: "file-input-uploader--list-item--actions" }, vi = ["onClick"], _i = ["onClick"];
2076
- function bi(t, e, n, r, s, o) {
2070
+ }, hi = { class: "file-input-uploader--list-item--actions" }, mi = ["onClick"], gi = ["onClick"];
2071
+ function yi(t, e, n, r, s, o) {
2077
2072
  var i, a;
2078
- return m(), g("div", di, [
2079
- b("input", {
2073
+ return m(), g("div", ai, [
2074
+ $("input", {
2080
2075
  ref: "input",
2081
2076
  name: t.name,
2082
- class: R([{ "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"]),
2083
2078
  disabled: (a = t.form) == null ? void 0 : a.processing,
2084
2079
  type: "file",
2085
2080
  multiple: t.multiple,
2086
2081
  onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
2087
- }, null, 42, pi),
2088
- b("div", ci, [
2089
- (m(!0), g(pe, null, _e(t.allFiles, (l) => (m(), g("div", {
2082
+ }, null, 42, li),
2083
+ $("div", ui, [
2084
+ (m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
2090
2085
  id: "file-" + l.id,
2091
2086
  class: "file-input-uploader--list-item"
2092
2087
  }, [
2093
- l.percent && l.percent < 100 ? (m(), g("div", hi, [
2094
- b("div", {
2088
+ l.percent && l.percent < 100 ? (m(), g("div", pi, [
2089
+ $("div", {
2095
2090
  style: vt({ width: l.percent + "%" })
2096
2091
  }, null, 4)
2097
- ])) : j("", !0),
2098
- b("div", null, H(l.file.name), 1),
2099
- l.error ? (m(), g("div", mi, H(l.error), 1)) : j("", !0),
2100
- b("div", gi, H(Math.round(l.file.size / 1024)) + "Kb", 1),
2101
- b("div", yi, [
2092
+ ])) : B("", !0),
2093
+ $("div", null, H(l.file.name), 1),
2094
+ l.error ? (m(), g("div", ci, H(l.error), 1)) : B("", !0),
2095
+ $("div", fi, H(Math.round(l.file.size / 1024)) + "Kb", 1),
2096
+ $("div", hi, [
2102
2097
  l.error ? (m(), g("button", {
2103
2098
  key: 0,
2104
2099
  onClick: (u) => t.uploadFile(l),
2105
2100
  type: "button",
2106
2101
  class: "file-input-uploader--list-item--btn"
2107
2102
  }, e[1] || (e[1] = [
2108
- b("svg", {
2103
+ $("svg", {
2109
2104
  fill: "#000000",
2110
2105
  width: "800px",
2111
2106
  height: "800px",
2112
2107
  viewBox: "0 0 24 24",
2113
2108
  xmlns: "http://www.w3.org/2000/svg"
2114
2109
  }, [
2115
- b("path", { d: "M1,12A11,11,0,0,1,17.882,2.7l1.411-1.41A1,1,0,0,1,21,2V6a1,1,0,0,1-1,1H16a1,1,0,0,1-.707-1.707l1.128-1.128A8.994,8.994,0,0,0,3,12a1,1,0,0,1-2,0Zm21-1a1,1,0,0,0-1,1,9.01,9.01,0,0,1-9,9,8.9,8.9,0,0,1-4.42-1.166l1.127-1.127A1,1,0,0,0,8,17H4a1,1,0,0,0-1,1v4a1,1,0,0,0,.617.924A.987.987,0,0,0,4,23a1,1,0,0,0,.707-.293L6.118,21.3A10.891,10.891,0,0,0,12,23,11.013,11.013,0,0,0,23,12,1,1,0,0,0,22,11Z" })
2110
+ $("path", { d: "M1,12A11,11,0,0,1,17.882,2.7l1.411-1.41A1,1,0,0,1,21,2V6a1,1,0,0,1-1,1H16a1,1,0,0,1-.707-1.707l1.128-1.128A8.994,8.994,0,0,0,3,12a1,1,0,0,1-2,0Zm21-1a1,1,0,0,0-1,1,9.01,9.01,0,0,1-9,9,8.9,8.9,0,0,1-4.42-1.166l1.127-1.127A1,1,0,0,0,8,17H4a1,1,0,0,0-1,1v4a1,1,0,0,0,.617.924A.987.987,0,0,0,4,23a1,1,0,0,0,.707-.293L6.118,21.3A10.891,10.891,0,0,0,12,23,11.013,11.013,0,0,0,23,12,1,1,0,0,0,22,11Z" })
2116
2111
  ], -1)
2117
- ]), 8, vi)) : j("", !0),
2112
+ ]), 8, mi)) : B("", !0),
2118
2113
  l.path || l.error ? (m(), g("button", {
2119
2114
  key: 1,
2120
2115
  onClick: (u) => t.deleteFile(l),
2121
2116
  type: "button",
2122
2117
  class: "file-input-uploader--list-item--btn"
2123
2118
  }, e[2] || (e[2] = [
2124
- b("svg", {
2119
+ $("svg", {
2125
2120
  fill: "#000000",
2126
2121
  width: "800px",
2127
2122
  height: "800px",
2128
2123
  viewBox: "0 0 24 24",
2129
2124
  xmlns: "http://www.w3.org/2000/svg"
2130
2125
  }, [
2131
- b("path", { d: "M12,23A11,11,0,1,0,1,12,11.013,11.013,0,0,0,12,23ZM12,3a9,9,0,1,1-9,9A9.01,9.01,0,0,1,12,3ZM8.293,14.293,10.586,12,8.293,9.707A1,1,0,0,1,9.707,8.293L12,10.586l2.293-2.293a1,1,0,0,1,1.414,1.414L13.414,12l2.293,2.293a1,1,0,1,1-1.414,1.414L12,13.414,9.707,15.707a1,1,0,0,1-1.414-1.414Z" })
2126
+ $("path", { d: "M12,23A11,11,0,1,0,1,12,11.013,11.013,0,0,0,12,23ZM12,3a9,9,0,1,1-9,9A9.01,9.01,0,0,1,12,3ZM8.293,14.293,10.586,12,8.293,9.707A1,1,0,0,1,9.707,8.293L12,10.586l2.293-2.293a1,1,0,0,1,1.414,1.414L13.414,12l2.293,2.293a1,1,0,1,1-1.414,1.414L12,13.414,9.707,15.707a1,1,0,0,1-1.414-1.414Z" })
2132
2127
  ], -1)
2133
- ]), 8, _i)) : j("", !0)
2128
+ ]), 8, gi)) : B("", !0)
2134
2129
  ])
2135
- ], 8, fi))), 256))
2130
+ ], 8, di))), 256))
2136
2131
  ])
2137
2132
  ]);
2138
2133
  }
2139
- const nl = /* @__PURE__ */ M(ui, [["render", bi]]), wi = E({
2134
+ const Qa = /* @__PURE__ */ M(oi, [["render", yi]]), vi = I({
2140
2135
  emits: ["update:modelValue", "change"],
2141
2136
  props: {
2142
2137
  name: {
@@ -2223,14 +2218,14 @@ const nl = /* @__PURE__ */ M(ui, [["render", bi]]), wi = E({
2223
2218
  rangeSliderEn: null
2224
2219
  };
2225
2220
  }
2226
- }), $i = {
2221
+ }), _i = {
2227
2222
  class: "range-input",
2228
2223
  ref: "rangeSliderEl",
2229
2224
  dir: "ltr"
2230
2225
  };
2231
- function Si(t, e, n, r, s, o) {
2232
- return m(), g("div", $i, [
2233
- re(b("input", {
2226
+ function bi(t, e, n, r, s, o) {
2227
+ return m(), g("div", _i, [
2228
+ re($("input", {
2234
2229
  "onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
2235
2230
  type: "hidden"
2236
2231
  }, null, 512), [
@@ -2238,8 +2233,8 @@ function Si(t, e, n, r, s, o) {
2238
2233
  ])
2239
2234
  ], 512);
2240
2235
  }
2241
- const rl = /* @__PURE__ */ M(wi, [["render", Si]]);
2242
- var We, I, rn, ae, Ut, sn, on, an, wt, tt, nt, Ce = {}, ln = [], Fi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ze = Array.isArray;
2236
+ const el = /* @__PURE__ */ M(vi, [["render", bi]]);
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;
2243
2238
  function ne(t, e) {
2244
2239
  for (var n in e) t[n] = e[n];
2245
2240
  return t;
@@ -2251,64 +2246,64 @@ function St(t, e, n) {
2251
2246
  var r, s, o, i = {};
2252
2247
  for (o in e) o == "key" ? r = e[o] : o == "ref" ? s = e[o] : i[o] = e[o];
2253
2248
  if (arguments.length > 2 && (i.children = arguments.length > 3 ? We.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) i[o] === void 0 && (i[o] = t.defaultProps[o]);
2254
- return De(t, i, r, s, null);
2249
+ return Oe(t, i, r, s, null);
2255
2250
  }
2256
- function De(t, e, n, r, s) {
2257
- var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: s ?? ++rn, __i: -1, __u: 0 };
2258
- return s == null && I.vnode != null && I.vnode(o), o;
2251
+ function Oe(t, e, n, r, s) {
2252
+ var o = { type: t, props: e, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: s ?? ++sn, __i: -1, __u: 0 };
2253
+ return s == null && C.vnode != null && C.vnode(o), o;
2259
2254
  }
2260
- function ge(t) {
2255
+ function me(t) {
2261
2256
  return t.children;
2262
2257
  }
2263
- function Oe(t, e) {
2258
+ function De(t, e) {
2264
2259
  this.props = t, this.context = e;
2265
2260
  }
2266
- function ye(t, e) {
2267
- if (e == null) return t.__ ? ye(t.__, t.__i + 1) : null;
2261
+ function ge(t, e) {
2262
+ if (e == null) return t.__ ? ge(t.__, t.__i + 1) : null;
2268
2263
  for (var n; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) return n.__e;
2269
- return typeof t.type == "function" ? ye(t) : null;
2264
+ return typeof t.type == "function" ? ge(t) : null;
2270
2265
  }
2271
- function un(t) {
2266
+ function dn(t) {
2272
2267
  var e, n;
2273
2268
  if ((t = t.__) != null && t.__c != null) {
2274
2269
  for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++) if ((n = t.__k[e]) != null && n.__e != null) {
2275
2270
  t.__e = t.__c.base = n.__e;
2276
2271
  break;
2277
2272
  }
2278
- return un(t);
2273
+ return dn(t);
2279
2274
  }
2280
2275
  }
2281
- function zt(t) {
2282
- (!t.__d && (t.__d = !0) && ae.push(t) && !je.__r++ || Ut != I.debounceRendering) && ((Ut = I.debounceRendering) || sn)(je);
2276
+ function At(t) {
2277
+ (!t.__d && (t.__d = !0) && ae.push(t) && !je.__r++ || Ut != C.debounceRendering) && ((Ut = C.debounceRendering) || on)(je);
2283
2278
  }
2284
2279
  function je() {
2285
- for (var t, e, n, r, s, o, i, a = 1; ae.length; ) ae.length > a && ae.sort(on), t = ae.shift(), a = ae.length, t.__d && (n = void 0, r = void 0, s = (r = (e = t).__v).__e, o = [], i = [], e.__P && ((n = ne({}, r)).__v = r.__v + 1, I.vnode && I.vnode(n), Ft(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [s] : null, o, s ?? ye(r), !!(32 & r.__u), i), n.__v = r.__v, n.__.__k[n.__i] = n, cn(o, n, i), r.__e = r.__ = null, n.__e != s && un(n)));
2280
+ for (var t, e, n, r, s, o, i, a = 1; ae.length; ) ae.length > a && ae.sort(an), t = ae.shift(), a = ae.length, t.__d && (n = void 0, r = void 0, s = (r = (e = t).__v).__e, o = [], i = [], e.__P && ((n = ne({}, r)).__v = r.__v + 1, C.vnode && C.vnode(n), Ft(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [s] : null, o, s ?? ge(r), !!(32 & r.__u), i), n.__v = r.__v, n.__.__k[n.__i] = n, fn(o, n, i), r.__e = r.__ = null, n.__e != s && dn(n)));
2286
2281
  je.__r = 0;
2287
2282
  }
2288
- function dn(t, e, n, r, s, o, i, a, l, u, d) {
2289
- var p, c, h, v, V, z, C, T = r && r.__k || ln, Z = e.length;
2290
- for (l = Ci(n, e, T, l, Z), p = 0; p < Z; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Ce : T[h.__i] || Ce, 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 && Ct(c.ref, null, h), d.push(h.ref, h.__c || v, h)), V == null && v != null && (V = v), (C = !!(4 & h.__u)) || c.__k === h.__k ? l = pn(h, l, t, C) : typeof h.type == "function" && z !== void 0 ? l = z : v && (l = v.nextSibling), h.__u &= -7);
2283
+ function pn(t, e, n, r, s, o, i, a, l, u, d) {
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);
2291
2286
  return n.__e = V, l;
2292
2287
  }
2293
- function Ci(t, e, n, r, s) {
2288
+ function $i(t, e, n, r, s) {
2294
2289
  var o, i, a, l, u, d = n.length, p = d, c = 0;
2295
- for (t.__k = new Array(s), o = 0; o < s; o++) (i = e[o]) != null && typeof i != "boolean" && typeof i != "function" ? (typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? i = t.__k[o] = De(null, i, null, null, null) : Ze(i) ? i = t.__k[o] = De(ge, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = De(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : t.__k[o] = i, l = o + c, i.__ = t, i.__b = t.__b + 1, a = null, (u = i.__i = ki(i, n, l, p)) != -1 && (p--, (a = n[u]) && (a.__u |= 2)), a == null || a.__v == null ? (u == -1 && (s > d ? c-- : s < d && c++), typeof i.type != "function" && (i.__u |= 4)) : u != l && (u == l - 1 ? c-- : u == l + 1 ? c++ : (u > l ? c-- : c++, i.__u |= 4))) : t.__k[o] = null;
2296
- if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ye(a)), hn(a, a));
2290
+ for (t.__k = new Array(s), o = 0; o < s; o++) (i = e[o]) != null && typeof i != "boolean" && typeof i != "function" ? (typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? i = t.__k[o] = Oe(null, i, null, null, null) : Ye(i) ? i = t.__k[o] = Oe(me, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = Oe(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : t.__k[o] = i, l = o + c, i.__ = t, i.__b = t.__b + 1, a = null, (u = i.__i = Si(i, n, l, p)) != -1 && (p--, (a = n[u]) && (a.__u |= 2)), a == null || a.__v == null ? (u == -1 && (s > d ? c-- : s < d && c++), typeof i.type != "function" && (i.__u |= 4)) : u != l && (u == l - 1 ? c-- : u == l + 1 ? c++ : (u > l ? c-- : c++, i.__u |= 4))) : t.__k[o] = null;
2291
+ if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ge(a)), mn(a, a));
2297
2292
  return r;
2298
2293
  }
2299
- function pn(t, e, n, r) {
2294
+ function cn(t, e, n, r) {
2300
2295
  var s, o;
2301
2296
  if (typeof t.type == "function") {
2302
- for (s = t.__k, o = 0; s && o < s.length; o++) s[o] && (s[o].__ = t, e = pn(s[o], e, n, r));
2297
+ for (s = t.__k, o = 0; s && o < s.length; o++) s[o] && (s[o].__ = t, e = cn(s[o], e, n, r));
2303
2298
  return e;
2304
2299
  }
2305
- t.__e != e && (r && (e && t.type && !e.parentNode && (e = ye(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
2300
+ t.__e != e && (r && (e && t.type && !e.parentNode && (e = ge(t)), n.insertBefore(t.__e, e || null)), e = t.__e);
2306
2301
  do
2307
2302
  e = e && e.nextSibling;
2308
2303
  while (e != null && e.nodeType == 8);
2309
2304
  return e;
2310
2305
  }
2311
- function ki(t, e, n, r) {
2306
+ function Si(t, e, n, r) {
2312
2307
  var s, o, i, a = t.key, l = t.type, u = e[n], d = u != null && (2 & u.__u) == 0;
2313
2308
  if (u === null && a == null || d && a == u.key && l == u.type) return n;
2314
2309
  if (r > (d ? 1 : 0)) {
@@ -2316,17 +2311,17 @@ function ki(t, e, n, r) {
2316
2311
  }
2317
2312
  return -1;
2318
2313
  }
2319
- function Pt(t, e, n) {
2320
- e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Fi.test(e) ? n : n + "px";
2314
+ function zt(t, e, n) {
2315
+ e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || wi.test(e) ? n : n + "px";
2321
2316
  }
2322
- function ze(t, e, n, r, s) {
2317
+ function Ae(t, e, n, r, s) {
2323
2318
  var o, i;
2324
2319
  e: if (e == "style") if (typeof n == "string") t.style.cssText = n;
2325
2320
  else {
2326
- if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || Pt(t.style, e, "");
2327
- 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]);
2328
2323
  }
2329
- else if (e[0] == "o" && e[1] == "n") o = e != (e = e.replace(an, "$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);
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);
2330
2325
  else {
2331
2326
  if (s == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
2332
2327
  else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in t) try {
@@ -2337,184 +2332,184 @@ function ze(t, e, n, r, s) {
2337
2332
  typeof n == "function" || (n == null || n === !1 && e[4] != "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && n == 1 ? "" : n));
2338
2333
  }
2339
2334
  }
2340
- function At(t) {
2335
+ function Pt(t) {
2341
2336
  return function(e) {
2342
2337
  if (this.l) {
2343
2338
  var n = this.l[e.type + t];
2344
2339
  if (e.t == null) e.t = wt++;
2345
2340
  else if (e.t < n.u) return;
2346
- return n(I.event ? I.event(e) : e);
2341
+ return n(C.event ? C.event(e) : e);
2347
2342
  }
2348
2343
  };
2349
2344
  }
2350
2345
  function Ft(t, e, n, r, s, o, i, a, l, u) {
2351
- var d, p, c, h, v, V, z, C, T, Z, f, _, $, 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;
2352
2347
  if (e.constructor !== void 0) return null;
2353
- 128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = I.__b) && d(e);
2354
- e: if (typeof P == "function") try {
2355
- if (C = e.props, T = "prototype" in P && P.prototype.render, Z = (d = P.contextType) && r[d.__c], f = d ? Z ? Z.props.value : d.__ : r, n.__c ? z = (p = e.__c = n.__c).__ = p.__E : (T ? e.__c = p = new P(C, f) : (e.__c = p = new Oe(C, f), p.constructor = P, p.render = Ei), Z && Z.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), T && p.__s == null && (p.__s = p.state), T && P.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = ne({}, p.__s)), ne(p.__s, P.getDerivedStateFromProps(C, p.__s))), h = p.props, v = p.state, p.__v = e, c) T && P.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), T && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2348
+ 128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
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);
2356
2351
  else {
2357
- if (T && P.getDerivedStateFromProps == null && C !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(C, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(C, p.__s, f) === !1) {
2358
- for (e.__v != n.__v && (p.props = C, p.state = p.__s, p.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(Y) {
2359
- Y && (Y.__ = 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);
2360
2355
  }), _ = 0; _ < p._sb.length; _++) p.__h.push(p._sb[_]);
2361
2356
  p._sb = [], p.__h.length && i.push(p);
2362
2357
  break e;
2363
2358
  }
2364
- p.componentWillUpdate != null && p.componentWillUpdate(C, p.__s, f), T && 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() {
2365
2360
  p.componentDidUpdate(h, v, V);
2366
2361
  });
2367
2362
  }
2368
- if (p.context = f, p.props = C, p.__P = t, p.__e = !1, $ = I.__r, U = 0, T) {
2369
- for (p.state = p.__s, p.__d = !1, $ && $(e), d = p.render(p.props, p.state, p.context), N = 0; N < p._sb.length; N++) p.__h.push(p._sb[N]);
2363
+ if (p.context = f, p.props = T, p.__P = t, p.__e = !1, w = C.__r, U = 0, E) {
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]);
2370
2365
  p._sb = [];
2371
2366
  } else do
2372
- p.__d = !1, $ && $(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
2367
+ p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
2373
2368
  while (p.__d && ++U < 25);
2374
- p.state = p.__s, p.getChildContext != null && (r = ne(ne({}, r), p.getChildContext())), T && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(h, v)), G = d, d != null && d.type === ge && d.key == null && (G = fn(d.props.children)), a = dn(t, Ze(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);
2375
- } catch (Y) {
2376
- if (e.__v = null, l || o != null) if (Y.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) {
2377
2372
  for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
2378
2373
  o[o.indexOf(a)] = null, e.__e = a;
2379
2374
  } else {
2380
2375
  for (te = o.length; te--; ) $t(o[te]);
2381
2376
  rt(e);
2382
2377
  }
2383
- else e.__e = n.__e, e.__k = n.__k, Y.then || rt(e);
2384
- I.__e(Y, e, n);
2378
+ else e.__e = n.__e, e.__k = n.__k, X.then || rt(e);
2379
+ C.__e(X, e, n);
2385
2380
  }
2386
- else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e = Ti(n.__e, e, n, r, s, o, i, l, u);
2387
- return (d = I.diffed) && d(e), 128 & e.__u ? void 0 : a;
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);
2382
+ return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
2388
2383
  }
2389
2384
  function rt(t) {
2390
2385
  t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(rt);
2391
2386
  }
2392
- function cn(t, e, n) {
2393
- for (var r = 0; r < n.length; r++) Ct(n[r], n[++r], n[++r]);
2394
- I.__c && I.__c(e, t), t.some(function(s) {
2387
+ function fn(t, e, n) {
2388
+ for (var r = 0; r < n.length; r++) Tt(n[r], n[++r], n[++r]);
2389
+ C.__c && C.__c(e, t), t.some(function(s) {
2395
2390
  try {
2396
2391
  t = s.__h, s.__h = [], t.some(function(o) {
2397
2392
  o.call(s);
2398
2393
  });
2399
2394
  } catch (o) {
2400
- I.__e(o, s.__v);
2395
+ C.__e(o, s.__v);
2401
2396
  }
2402
2397
  });
2403
2398
  }
2404
- function fn(t) {
2405
- return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ze(t) ? t.map(fn) : ne({}, t);
2399
+ function hn(t) {
2400
+ return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ye(t) ? t.map(hn) : ne({}, t);
2406
2401
  }
2407
- function Ti(t, e, n, r, s, o, i, a, l) {
2408
- var u, d, p, c, h, v, V, z = n.props || Ce, C = e.props, T = e.type;
2409
- if (T == "svg" ? s = "http://www.w3.org/2000/svg" : T == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s || (s = "http://www.w3.org/1999/xhtml"), o != null) {
2410
- for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!T && (T ? h.localName == T : h.nodeType == 3)) {
2402
+ function Fi(t, e, n, r, s, o, i, a, l) {
2403
+ var u, d, p, c, h, v, V, A = n.props || Te, T = e.props, E = e.type;
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) {
2405
+ for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!E && (E ? h.localName == E : h.nodeType == 3)) {
2411
2406
  t = h, o[u] = null;
2412
2407
  break;
2413
2408
  }
2414
2409
  }
2415
2410
  if (t == null) {
2416
- if (T == null) return document.createTextNode(C);
2417
- t = document.createElementNS(s, T, C.is && C), a && (I.__m && I.__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;
2418
2413
  }
2419
- if (T == null) z === C || a && t.data == C || (t.data = C);
2414
+ if (E == null) A === T || a && t.data == T || (t.data = T);
2420
2415
  else {
2421
- 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;
2422
- 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") {
2423
2418
  if (u == "dangerouslySetInnerHTML") p = h;
2424
- else if (!(u in C)) {
2425
- if (u == "value" && "defaultValue" in C || u == "checked" && "defaultChecked" in C) continue;
2426
- 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);
2427
2422
  }
2428
2423
  }
2429
- for (u in C) h = C[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);
2430
2425
  if (d) a || p && (d.__html == p.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
2431
- else if (p && (t.innerHTML = ""), dn(e.type == "template" ? t.content : t, Ze(c) ? c : [c], e, n, r, T == "foreignObject" ? "http://www.w3.org/1999/xhtml" : s, o, i, o ? o[0] : n.__k && ye(n, 0), a, l), o != null) for (u = o.length; u--; ) $t(o[u]);
2432
- a || (u = "value", T == "progress" && v == null ? t.removeAttribute("value") : v != null && (v !== t[u] || T == "progress" && !v || T == "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));
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]);
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));
2433
2428
  }
2434
2429
  return t;
2435
2430
  }
2436
- function Ct(t, e, n) {
2431
+ function Tt(t, e, n) {
2437
2432
  try {
2438
2433
  if (typeof t == "function") {
2439
2434
  var r = typeof t.__u == "function";
2440
2435
  r && t.__u(), r && e == null || (t.__u = t(e));
2441
2436
  } else t.current = e;
2442
2437
  } catch (s) {
2443
- I.__e(s, n);
2438
+ C.__e(s, n);
2444
2439
  }
2445
2440
  }
2446
- function hn(t, e, n) {
2441
+ function mn(t, e, n) {
2447
2442
  var r, s;
2448
- if (I.unmount && I.unmount(t), (r = t.ref) && (r.current && r.current != t.__e || Ct(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) {
2449
2444
  if (r.componentWillUnmount) try {
2450
2445
  r.componentWillUnmount();
2451
2446
  } catch (o) {
2452
- I.__e(o, e);
2447
+ C.__e(o, e);
2453
2448
  }
2454
2449
  r.base = r.__P = null;
2455
2450
  }
2456
- if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && hn(r[s], e, n || typeof t.type != "function");
2451
+ if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && mn(r[s], e, n || typeof t.type != "function");
2457
2452
  n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
2458
2453
  }
2459
- function Ei(t, e, n) {
2454
+ function Ti(t, e, n) {
2460
2455
  return this.constructor(t, n);
2461
2456
  }
2462
- function mn(t, e, n) {
2457
+ function gn(t, e, n) {
2463
2458
  var r, s, o, i;
2464
- e == document && (e = document.documentElement), I.__ && I.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(ge, null, [t]), s || Ce, Ce, e.namespaceURI, s ? null : e.firstChild ? We.call(e.childNodes) : null, o, s ? s.__e : e.firstChild, r, i), cn(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);
2465
2460
  }
2466
- We = ln.slice, I = { __e: function(t, e, n, r) {
2461
+ We = un.slice, C = { __e: function(t, e, n, r) {
2467
2462
  for (var s, o, i; e = e.__; ) if ((s = e.__c) && !s.__) try {
2468
2463
  if ((o = s.constructor) && o.getDerivedStateFromError != null && (s.setState(o.getDerivedStateFromError(t)), i = s.__d), s.componentDidCatch != null && (s.componentDidCatch(t, r || {}), i = s.__d), i) return s.__E = s;
2469
2464
  } catch (a) {
2470
2465
  t = a;
2471
2466
  }
2472
2467
  throw t;
2473
- } }, rn = 0, Oe.prototype.setState = function(t, e) {
2468
+ } }, sn = 0, De.prototype.setState = function(t, e) {
2474
2469
  var n;
2475
- 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));
2476
- }, Oe.prototype.forceUpdate = function(t) {
2477
- this.__v && (this.__e = !0, t && this.__h.push(t), zt(this));
2478
- }, Oe.prototype.render = ge, ae = [], sn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, on = function(t, e) {
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));
2471
+ }, De.prototype.forceUpdate = function(t) {
2472
+ this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
2473
+ }, De.prototype.render = me, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
2479
2474
  return t.__v.__b - e.__v.__b;
2480
- }, je.__r = 0, an = /(PointerCapture)$|Capture$/i, wt = 0, tt = At(!1), nt = At(!0);
2481
- var Ii = 0;
2475
+ }, je.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, tt = Pt(!1), nt = Pt(!0);
2476
+ var ki = 0;
2482
2477
  function S(t, e, n, r, s, o) {
2483
2478
  e || (e = {});
2484
2479
  var i, a, l = e;
2485
2480
  if ("ref" in l) for (a in l = {}, e) a == "ref" ? i = e[a] : l[a] = e[a];
2486
- var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ii, __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 };
2487
2482
  if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
2488
- return I.vnode && I.vnode(u), u;
2483
+ return C.vnode && C.vnode(u), u;
2489
2484
  }
2490
- function gn(t) {
2485
+ function yn(t) {
2491
2486
  var e, n, r = "";
2492
2487
  if (typeof t == "string" || typeof t == "number") r += t;
2493
2488
  else if (typeof t == "object") if (Array.isArray(t)) {
2494
2489
  var s = t.length;
2495
- for (e = 0; e < s; e++) t[e] && (n = gn(t[e])) && (r && (r += " "), r += n);
2490
+ for (e = 0; e < s; e++) t[e] && (n = yn(t[e])) && (r && (r += " "), r += n);
2496
2491
  } else for (n in t) t[n] && (r && (r += " "), r += n);
2497
2492
  return r;
2498
2493
  }
2499
- function yn() {
2500
- for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = gn(t)) && (r && (r += " "), r += e);
2494
+ function vn() {
2495
+ for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
2501
2496
  return r;
2502
2497
  }
2503
- var ke, A, Je, Nt, st = 0, vn = [], D = I, Dt = D.__b, Ot = D.__r, Rt = D.diffed, Bt = D.__c, jt = D.unmount, Lt = D.__;
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.__;
2504
2499
  function kt(t, e) {
2505
- D.__h && D.__h(A, t, st || e), st = 0;
2506
- var n = A.__H || (A.__H = { __: [], __h: [] });
2500
+ O.__h && O.__h(P, t, st || e), st = 0;
2501
+ var n = P.__H || (P.__H = { __: [], __h: [] });
2507
2502
  return t >= n.__.length && n.__.push({}), n.__[t];
2508
2503
  }
2509
- function Vi(t) {
2510
- return st = 1, Mi($n, t);
2504
+ function Ei(t) {
2505
+ return st = 1, Ii(Sn, t);
2511
2506
  }
2512
- function Mi(t, e, n) {
2507
+ function Ii(t, e, n) {
2513
2508
  var r = kt(ke++, 2);
2514
- if (r.t = t, !r.__c && (r.__ = [$n(void 0, e), function(a) {
2509
+ if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
2515
2510
  var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
2516
2511
  l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
2517
- }], r.__c = A, !A.__f)) {
2512
+ }], r.__c = P, !P.__f)) {
2518
2513
  var s = function(a, l, u) {
2519
2514
  if (!r.__c.__H) return !0;
2520
2515
  var d = r.__c.__H.__.filter(function(c) {
@@ -2531,50 +2526,50 @@ function Mi(t, e, n) {
2531
2526
  }
2532
2527
  }), o && o.call(this, a, l, u) || p;
2533
2528
  };
2534
- A.__f = !0;
2535
- var o = A.shouldComponentUpdate, i = A.componentWillUpdate;
2536
- 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) {
2537
2532
  if (this.__e) {
2538
2533
  var d = o;
2539
2534
  o = void 0, s(a, l, u), o = d;
2540
2535
  }
2541
2536
  i && i.call(this, a, l, u);
2542
- }, A.shouldComponentUpdate = s;
2537
+ }, P.shouldComponentUpdate = s;
2543
2538
  }
2544
2539
  return r.__N || r.__;
2545
2540
  }
2546
- function _n(t, e) {
2541
+ function bn(t, e) {
2547
2542
  var n = kt(ke++, 3);
2548
- !D.__s && wn(n.__H, e) && (n.__ = t, n.u = e, A.__H.__h.push(n));
2543
+ !O.__s && $n(n.__H, e) && (n.__ = t, n.u = e, P.__H.__h.push(n));
2549
2544
  }
2550
- function bn(t, e) {
2545
+ function wn(t, e) {
2551
2546
  var n = kt(ke++, 7);
2552
- return wn(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
2547
+ return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
2553
2548
  }
2554
- function Ui() {
2555
- for (var t; t = vn.shift(); ) if (t.__P && t.__H) try {
2549
+ function Ci() {
2550
+ for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
2556
2551
  t.__H.__h.forEach(Re), t.__H.__h.forEach(it), t.__H.__h = [];
2557
2552
  } catch (e) {
2558
- t.__H.__h = [], D.__e(e, t.__v);
2553
+ t.__H.__h = [], O.__e(e, t.__v);
2559
2554
  }
2560
2555
  }
2561
- D.__b = function(t) {
2562
- A = null, Dt && Dt(t);
2563
- }, D.__ = function(t, e) {
2564
- t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
2565
- }, D.__r = function(t) {
2566
- Ot && Ot(t), ke = 0;
2567
- var e = (A = t.__c).__H;
2568
- e && (Je === A ? (e.__h = [], A.__h = [], e.__.forEach(function(n) {
2556
+ O.__b = function(t) {
2557
+ P = null, Ot && Ot(t);
2558
+ }, O.__ = function(t, e) {
2559
+ t && e.__k && e.__k.__m && (t.__m = e.__k.__m), xt && xt(t, e);
2560
+ }, O.__r = function(t) {
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) {
2569
2564
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
2570
- })) : (e.__h.forEach(Re), e.__h.forEach(it), e.__h = [], ke = 0)), Je = A;
2571
- }, D.diffed = function(t) {
2565
+ })) : (e.__h.forEach(Re), e.__h.forEach(it), e.__h = [], ke = 0)), Je = P;
2566
+ }, O.diffed = function(t) {
2572
2567
  Rt && Rt(t);
2573
2568
  var e = t.__c;
2574
- e && e.__H && (e.__H.__h.length && (vn.push(e) !== 1 && Nt === D.requestAnimationFrame || ((Nt = D.requestAnimationFrame) || zi)(Ui)), e.__H.__.forEach(function(n) {
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) {
2575
2570
  n.u && (n.__H = n.u), n.u = void 0;
2576
- })), Je = A = null;
2577
- }, D.__c = function(t, e) {
2571
+ })), Je = P = null;
2572
+ }, O.__c = function(t, e) {
2578
2573
  e.some(function(n) {
2579
2574
  try {
2580
2575
  n.__h.forEach(Re), n.__h = n.__h.filter(function(r) {
@@ -2583,10 +2578,10 @@ D.__b = function(t) {
2583
2578
  } catch (r) {
2584
2579
  e.some(function(s) {
2585
2580
  s.__h && (s.__h = []);
2586
- }), e = [], D.__e(r, n.__v);
2581
+ }), e = [], O.__e(r, n.__v);
2587
2582
  }
2588
2583
  }), Bt && Bt(t, e);
2589
- }, D.unmount = function(t) {
2584
+ }, O.unmount = function(t) {
2590
2585
  jt && jt(t);
2591
2586
  var e, n = t.__c;
2592
2587
  n && n.__H && (n.__H.__.forEach(function(r) {
@@ -2595,32 +2590,32 @@ D.__b = function(t) {
2595
2590
  } catch (s) {
2596
2591
  e = s;
2597
2592
  }
2598
- }), n.__H = void 0, e && D.__e(e, n.__v));
2593
+ }), n.__H = void 0, e && O.__e(e, n.__v));
2599
2594
  };
2600
- var xt = typeof requestAnimationFrame == "function";
2601
- function zi(t) {
2595
+ var Lt = typeof requestAnimationFrame == "function";
2596
+ function Vi(t) {
2602
2597
  var e, n = function() {
2603
- clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
2598
+ clearTimeout(r), Lt && cancelAnimationFrame(e), setTimeout(t);
2604
2599
  }, r = setTimeout(n, 35);
2605
- xt && (e = requestAnimationFrame(n));
2600
+ Lt && (e = requestAnimationFrame(n));
2606
2601
  }
2607
2602
  function Re(t) {
2608
- var e = A, n = t.__c;
2609
- 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;
2610
2605
  }
2611
2606
  function it(t) {
2612
- var e = A;
2613
- t.__c = t.__(), A = e;
2607
+ var e = P;
2608
+ t.__c = t.__(), P = e;
2614
2609
  }
2615
- function wn(t, e) {
2610
+ function $n(t, e) {
2616
2611
  return !t || t.length !== e.length || e.some(function(n, r) {
2617
2612
  return n !== t[r];
2618
2613
  });
2619
2614
  }
2620
- function $n(t, e) {
2615
+ function Sn(t, e) {
2621
2616
  return typeof e == "function" ? e(t) : e;
2622
2617
  }
2623
- function Pi(t, e = {}) {
2618
+ function Mi(t, e = {}) {
2624
2619
  const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
2625
2620
  var c, h;
2626
2621
  d.preventDefault(), d.stopPropagation();
@@ -2678,11 +2673,11 @@ function Pi(t, e = {}) {
2678
2673
  }
2679
2674
  };
2680
2675
  }
2681
- function Ai(t) {
2676
+ function Ui(t) {
2682
2677
  const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
2683
2678
  if (!o.uppy)
2684
2679
  throw new Error("Dropzone must be used within a UppyContextProvider");
2685
- const { getRootProps: i, getInputProps: a } = bn(() => Pi(o, { noClick: s }), [o, s]);
2680
+ const { getRootProps: i, getInputProps: a } = wn(() => Mi(o, { noClick: s }), [o, s]);
2686
2681
  return S("div", { className: "uppy-reset", "data-uppy-element": "dropzone", role: "presentation", children: [S("input", { ...a(), tabIndex: -1, name: "uppy-dropzone-file-input", className: "uppy:hidden" }), S("div", {
2687
2682
  ...i(),
2688
2683
  // biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
@@ -2691,13 +2686,13 @@ function Ai(t) {
2691
2686
  width: e || "100%",
2692
2687
  height: n || "100%"
2693
2688
  },
2694
- className: yn("uppy:border-2 uppy:border-dashed uppy:border-gray-300", "uppy:rounded-lg uppy:p-6 uppy:bg-gray-50", "uppy:transition-colors uppy:duration-200", {
2689
+ className: vn("uppy:border-2 uppy:border-dashed uppy:border-gray-300", "uppy:rounded-lg uppy:p-6 uppy:bg-gray-50", "uppy:transition-colors uppy:duration-200", {
2695
2690
  "uppy:cursor-pointer uppy:hover:bg-blue-50": !s
2696
2691
  }),
2697
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]
2698
2693
  })] });
2699
2694
  }
2700
- const Ni = [
2695
+ const Ai = [
2701
2696
  "B",
2702
2697
  "kB",
2703
2698
  "MB",
@@ -2707,7 +2702,7 @@ const Ni = [
2707
2702
  "EB",
2708
2703
  "ZB",
2709
2704
  "YB"
2710
- ], Di = [
2705
+ ], zi = [
2711
2706
  "B",
2712
2707
  "KiB",
2713
2708
  "MiB",
@@ -2717,7 +2712,7 @@ const Ni = [
2717
2712
  "EiB",
2718
2713
  "ZiB",
2719
2714
  "YiB"
2720
- ], Oi = [
2715
+ ], Pi = [
2721
2716
  "b",
2722
2717
  "kbit",
2723
2718
  "Mbit",
@@ -2727,7 +2722,7 @@ const Ni = [
2727
2722
  "Ebit",
2728
2723
  "Zbit",
2729
2724
  "Ybit"
2730
- ], Ri = [
2725
+ ], Ni = [
2731
2726
  "b",
2732
2727
  "kibit",
2733
2728
  "Mibit",
@@ -2741,7 +2736,7 @@ const Ni = [
2741
2736
  let r = t;
2742
2737
  return typeof e == "string" || Array.isArray(e) ? r = t.toLocaleString(e, n) : (e === !0 || n !== void 0) && (r = t.toLocaleString(void 0, n)), r;
2743
2738
  };
2744
- function Bi(t, e) {
2739
+ function Oi(t, e) {
2745
2740
  if (!Number.isFinite(t))
2746
2741
  throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);
2747
2742
  e = {
@@ -2750,7 +2745,7 @@ function Bi(t, e) {
2750
2745
  space: !0,
2751
2746
  ...e
2752
2747
  };
2753
- const n = e.bits ? e.binary ? Ri : Oi : e.binary ? Di : Ni, r = e.space ? " " : "";
2748
+ const n = e.bits ? e.binary ? Ni : Pi : e.binary ? zi : Ai, r = e.space ? " " : "";
2754
2749
  if (e.signed && t === 0)
2755
2750
  return ` 0${r}${n[0]}`;
2756
2751
  const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
@@ -2765,9 +2760,9 @@ function Bi(t, e) {
2765
2760
  const l = qt(Number(t), e.locale, i), u = n[a];
2766
2761
  return o + l + r + u;
2767
2762
  }
2768
- function ji(t) {
2769
- const [e, n] = Vi(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
2770
- return _n(() => {
2763
+ function Di(t) {
2764
+ const [e, n] = Ei(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
2765
+ return bn(() => {
2771
2766
  var a;
2772
2767
  const i = (l, u, d) => {
2773
2768
  d != null && d.files && n(Object.values(d.files));
@@ -2778,19 +2773,19 @@ function ji(t) {
2778
2773
  };
2779
2774
  }, [r.uppy]), S("ul", { "data-uppy-element": "files-list", className: "uppy-reset uppy:my-4", children: e == null ? void 0 : e.map((i) => {
2780
2775
  var a, l, u;
2781
- return S("li", { children: S(ge, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(Li, { width: "32px", height: "32px", file: i, images: o }) }), S("p", { className: "uppy:truncate", children: i.name }), S("p", { className: "uppy:text-gray-500 uppy:tabular-nums uppy:min-w-18 uppy:text-right uppy:ml-auto", children: Bi(i.size || 0) }), S(ge, { children: [s && S("button", { type: "button", className: "uppy:flex uppy:rounded uppy:text-blue-500 uppy:hover:text-blue-700 uppy:bg-transparent uppy:transition-colors", onClick: () => {
2776
+ return S("li", { children: S(me, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(Ri, { width: "32px", height: "32px", file: i, images: o }) }), S("p", { className: "uppy:truncate", children: i.name }), S("p", { className: "uppy:text-gray-500 uppy:tabular-nums uppy:min-w-18 uppy:text-right uppy:ml-auto", children: Oi(i.size || 0) }), S(me, { children: [s && S("button", { type: "button", className: "uppy:flex uppy:rounded uppy:text-blue-500 uppy:hover:text-blue-700 uppy:bg-transparent uppy:transition-colors", onClick: () => {
2782
2777
  s(i);
2783
2778
  }, children: "edit" }), S("button", { type: "button", className: "uppy:flex uppy:rounded uppy:text-blue-500 uppy:hover:text-blue-700 uppy:bg-transparent uppy:transition-colors", onClick: () => {
2784
2779
  var d;
2785
2780
  (d = r.uppy) == null || d.removeFile(i.id);
2786
- }, children: "remove" })] })] }), S("progress", { max: "100", className: yn("uppy:w-full uppy:h-[2px] uppy:appearance-none uppy:bg-gray-100 uppy:rounded-full uppy:overflow-hidden uppy:[&::-webkit-progress-bar]:bg-gray-100 uppy:block uppy:my-2", {
2781
+ }, children: "remove" })] })] }), S("progress", { max: "100", className: vn("uppy:w-full uppy:h-[2px] uppy:appearance-none uppy:bg-gray-100 uppy:rounded-full uppy:overflow-hidden uppy:[&::-webkit-progress-bar]:bg-gray-100 uppy:block uppy:my-2", {
2787
2782
  "uppy:[&::-webkit-progress-value]:bg-green-500 uppy:[&::-moz-progress-bar]:bg-green-500": (a = i.progress) == null ? void 0 : a.uploadComplete,
2788
2783
  "uppy:[&::-webkit-progress-value]:bg-red-500 uppy:[&::-moz-progress-bar]:bg-red-500": i.error,
2789
2784
  "uppy:[&::-webkit-progress-value]:bg-blue-500 uppy:[&::-moz-progress-bar]:bg-blue-500": !((l = i.progress) != null && l.uploadComplete) && !i.error
2790
2785
  }), value: ((u = i.progress) == null ? void 0 : u.percentage) || 0 })] }) }, i.id);
2791
2786
  }) });
2792
2787
  }
2793
- function Li(t) {
2788
+ function Ri(t) {
2794
2789
  var d, p;
2795
2790
  const e = t.width || "100%", n = t.height || "100%", r = ((d = t.file.type) == null ? void 0 : d.split("/")[0]) || "", s = ((p = t.file.type) == null ? void 0 : p.split("/")[1]) || "", o = t.file.type.startsWith("image/"), i = r === "application" && [
2796
2791
  "zip",
@@ -2800,7 +2795,7 @@ function Li(t) {
2800
2795
  "x-tar",
2801
2796
  "x-gzip",
2802
2797
  "x-apple-diskimage"
2803
- ].includes(s), a = r === "application" && s === "pdf", l = bn(() => {
2798
+ ].includes(s), a = r === "application" && s === "pdf", l = wn(() => {
2804
2799
  if (!t.images)
2805
2800
  return "";
2806
2801
  if (t.file.isRemote)
@@ -2809,7 +2804,7 @@ function Li(t) {
2809
2804
  throw new Error("File data is empty");
2810
2805
  return URL.createObjectURL(t.file.data);
2811
2806
  }, [t.file.data, t.images, t.file.isRemote, t.file.preview]), u = t.images && o && l;
2812
- return _n(() => () => {
2807
+ return bn(() => () => {
2813
2808
  l && URL.revokeObjectURL(l);
2814
2809
  }, [l]), S("div", { "data-uppy-element": "thumbnail", className: "uppy:relative uppy:overflow-hidden uppy:bg-gray-100 uppy:rounded-lg uppy:flex uppy:items-center uppy:justify-center", style: {
2815
2810
  width: e,
@@ -2817,7 +2812,7 @@ function Li(t) {
2817
2812
  aspectRatio: "1"
2818
2813
  }, children: [u ? S("img", { className: "uppy:w-full uppy:h-full uppy:object-cover", src: l, alt: t.file.name }) : null, u ? null : S("div", { className: "uppy:flex uppy:flex-col uppy:items-center uppy:justify-center uppy:w-full uppy:h-full", children: S("div", { className: "uppy:flex-1 uppy:flex uppy:items-center uppy:justify-center uppy:w-full", children: [t.file.type ? null : S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("g", { fill: "#A7AFB7", "fill-rule": "nonzero", children: [S("path", { d: "M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z" }), S("path", { d: "M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z" })] }) }), r === "text" ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M4.5 7h13a.5.5 0 1 1 0 1h-13a.5.5 0 0 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h15a.5.5 0 1 1 0 1h-15a.5.5 0 1 1 0-1zm0 3h10a.5.5 0 1 1 0 1h-10a.5.5 0 1 1 0-1z", fill: "#5A5E69", "fill-rule": "nonzero" }) }) : null, r === "image" && !u ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("g", { fill: "#686DE0", "fill-rule": "evenodd", children: [S("path", { d: "M5 7v10h15V7H5zm0-1h15a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z", "fill-rule": "nonzero" }), S("path", { d: "M6.35 17.172l4.994-5.026a.5.5 0 0 1 .707 0l2.16 2.16 3.505-3.505a.5.5 0 0 1 .707 0l2.336 2.31-.707.72-1.983-1.97-3.505 3.505a.5.5 0 0 1-.707 0l-2.16-2.159-3.938 3.939-1.409.026z", "fill-rule": "nonzero" }), S("circle", { cx: "7.5", cy: "9.5", r: "1.5" })] }) }) : null, r === "audio" ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M9.5 18.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V7.25a.5.5 0 0 1 .379-.485l9-2.25A.5.5 0 0 1 18.5 5v11.64c0 1.14-1.145 2-2.5 2s-2.5-.86-2.5-2c0-1.14 1.145-2 2.5-2 .557 0 1.079.145 1.5.396V8.67l-8 2v7.97zm8-11v-2l-8 2v2l8-2zM7 19.64c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1zm9-2c.855 0 1.5-.484 1.5-1s-.645-1-1.5-1-1.5.484-1.5 1 .645 1 1.5 1z", fill: "#049BCF", "fill-rule": "nonzero" }) }) : null, r === "video" ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M16 11.834l4.486-2.691A1 1 0 0 1 22 10v6a1 1 0 0 1-1.514.857L16 14.167V17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2.834zM15 9H5v8h10V9zm1 4l5 3v-6l-5 3z", fill: "#19AF67", "fill-rule": "nonzero" }) }) : null, a ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M9.766 8.295c-.691-1.843-.539-3.401.747-3.726 1.643-.414 2.505.938 2.39 3.299-.039.79-.194 1.662-.537 3.148.324.49.66.967 1.055 1.51.17.231.382.488.629.757 1.866-.128 3.653.114 4.918.655 1.487.635 2.192 1.685 1.614 2.84-.566 1.133-1.839 1.084-3.416.249-1.141-.604-2.457-1.634-3.51-2.707a13.467 13.467 0 0 0-2.238.426c-1.392 4.051-4.534 6.453-5.707 4.572-.986-1.58 1.38-4.206 4.914-5.375.097-.322.185-.656.264-1.001.08-.353.306-1.31.407-1.737-.678-1.059-1.2-2.031-1.53-2.91zm2.098 4.87c-.033.144-.068.287-.104.427l.033-.01-.012.038a14.065 14.065 0 0 1 1.02-.197l-.032-.033.052-.004a7.902 7.902 0 0 1-.208-.271c-.197-.27-.38-.526-.555-.775l-.006.028-.002-.003c-.076.323-.148.632-.186.8zm5.77 2.978c1.143.605 1.832.632 2.054.187.26-.519-.087-1.034-1.113-1.473-.911-.39-2.175-.608-3.55-.608.845.766 1.787 1.459 2.609 1.894zM6.559 18.789c.14.223.693.16 1.425-.413.827-.648 1.61-1.747 2.208-3.206-2.563 1.064-4.102 2.867-3.633 3.62zm5.345-10.97c.088-1.793-.351-2.48-1.146-2.28-.473.119-.564 1.05-.056 2.405.213.566.52 1.188.908 1.859.18-.858.268-1.453.294-1.984z", fill: "#E2514A", "fill-rule": "nonzero" }) }) : null, i ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("path", { d: "M10.45 2.05h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V2.55a.5.5 0 0 1 .5-.5zm2.05 1.024h1.05a.5.5 0 0 1 .5.5V3.6a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5v-.001zM10.45 0h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 3.074h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-2.05 1.024h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm-2.05 1.025h1.05a.5.5 0 0 1 .5.5v.025a.5.5 0 0 1-.5.5h-1.05a.5.5 0 0 1-.5-.5v-.025a.5.5 0 0 1 .5-.5zm2.05 1.025h1.05a.5.5 0 0 1 .5.5v.024a.5.5 0 0 1-.5.5H12.5a.5.5 0 0 1-.5-.5v-.024a.5.5 0 0 1 .5-.5zm-1.656 3.074l-.82 5.946c.52.302 1.174.458 1.976.458.803 0 1.455-.156 1.975-.458l-.82-5.946h-2.311zm0-1.025h2.312c.512 0 .946.378 1.015.885l.82 5.946c.056.412-.142.817-.501 1.026-.686.398-1.515.597-2.49.597-.974 0-1.804-.199-2.49-.597a1.025 1.025 0 0 1-.5-1.026l.819-5.946c.07-.507.503-.885 1.015-.885zm.545 6.6a.5.5 0 0 1-.397-.561l.143-.999a.5.5 0 0 1 .495-.429h.74a.5.5 0 0 1 .495.43l.143.998a.5.5 0 0 1-.397.561c-.404.08-.819.08-1.222 0z", fill: "#00C469", "fill-rule": "nonzero" }) }) : null, t.file.type && !r && !a && !i ? S("svg", { "aria-hidden": "true", className: "uppy:w-3/4 uppy:h-3/4", viewBox: "0 0 25 25", children: S("g", { fill: "#A7AFB7", "fill-rule": "nonzero", children: [S("path", { d: "M5.5 22a.5.5 0 0 1-.5-.5v-18a.5.5 0 0 1 .5-.5h10.719a.5.5 0 0 1 .367.16l3.281 3.556a.5.5 0 0 1 .133.339V21.5a.5.5 0 0 1-.5.5h-14zm.5-1h13V7.25L16 4H6v17z" }), S("path", { d: "M15 4v3a1 1 0 0 0 1 1h3V7h-3V4h-1z" })] }) }) : null] }) })] });
2819
2814
  }
2820
- function xi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2815
+ function Bi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2821
2816
  const r = () => {
2822
2817
  e("ready");
2823
2818
  }, s = () => {
@@ -2844,7 +2839,7 @@ function xi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2844
2839
  }
2845
2840
  };
2846
2841
  }
2847
- const Sn = Symbol("uppy"), qi = E({
2842
+ const Fn = Symbol("uppy"), ji = I({
2848
2843
  name: "UppyContextProvider",
2849
2844
  props: {
2850
2845
  uppy: {
@@ -2853,17 +2848,17 @@ const Sn = Symbol("uppy"), qi = E({
2853
2848
  }
2854
2849
  },
2855
2850
  setup(t, { slots: e }) {
2856
- const n = W("init"), r = W(0), s = en({
2857
- uppy: Wn(t.uppy),
2851
+ const n = W("init"), r = W(0), s = tn({
2852
+ uppy: Gn(t.uppy),
2858
2853
  status: "init",
2859
2854
  progress: 0
2860
2855
  });
2861
- Zn(Sn, s);
2856
+ Wn(Fn, s);
2862
2857
  let o;
2863
- return ve(() => {
2858
+ return ye(() => {
2864
2859
  if (!t.uppy)
2865
2860
  throw new Error("UppyContextProvider: passing `uppy` as a prop is required");
2866
- o = xi({
2861
+ o = Bi({
2867
2862
  uppy: t.uppy,
2868
2863
  onStatusChange: (i) => {
2869
2864
  n.value = i, s.status = i;
@@ -2880,54 +2875,54 @@ const Sn = Symbol("uppy"), qi = E({
2880
2875
  };
2881
2876
  }
2882
2877
  });
2883
- function Fn() {
2884
- const t = k(Sn);
2878
+ function Tn() {
2879
+ const t = k(Fn);
2885
2880
  return t || {
2886
2881
  uppy: void 0,
2887
2882
  status: "init",
2888
2883
  progress: 0
2889
2884
  };
2890
2885
  }
2891
- const Hi = E({
2886
+ const xi = I({
2892
2887
  name: "Dropzone",
2893
2888
  props: ["width", "height", "note", "noClick"],
2894
2889
  setup(t) {
2895
- const e = W(null), n = Fn();
2890
+ const e = W(null), n = Tn();
2896
2891
  function r() {
2897
- e.value && mn(St(Ai, {
2892
+ e.value && gn(St(Ui, {
2898
2893
  ...t,
2899
2894
  ctx: n
2900
2895
  }), e.value);
2901
2896
  }
2902
- return ve(() => {
2897
+ return ye(() => {
2903
2898
  r();
2904
2899
  }), Fe(n, () => {
2905
2900
  r();
2906
2901
  }), Fe(() => t, () => {
2907
2902
  r();
2908
- }, { deep: !0 }), () => nn("div", { ref: e });
2903
+ }, { deep: !0 }), () => rn("div", { ref: e });
2909
2904
  }
2910
- }), Gi = E({
2905
+ }), Li = I({
2911
2906
  name: "FilesList",
2912
2907
  props: ["editFile", "imageThumbnail"],
2913
2908
  setup(t) {
2914
- const e = W(null), n = Fn();
2909
+ const e = W(null), n = Tn();
2915
2910
  function r() {
2916
- e.value && mn(St(ji, {
2911
+ e.value && gn(St(Di, {
2917
2912
  ...t,
2918
2913
  ctx: n
2919
2914
  }), e.value);
2920
2915
  }
2921
- return ve(() => {
2916
+ return ye(() => {
2922
2917
  r();
2923
2918
  }), Fe(n, () => {
2924
2919
  r();
2925
2920
  }), Fe(() => t, () => {
2926
2921
  r();
2927
- }, { deep: !0 }), () => nn("div", { ref: e });
2922
+ }, { deep: !0 }), () => rn("div", { ref: e });
2928
2923
  }
2929
2924
  });
2930
- function Cn(t) {
2925
+ function kn(t) {
2931
2926
  const e = t.lastIndexOf(".");
2932
2927
  return e === -1 || e === t.length - 1 ? {
2933
2928
  name: t,
@@ -2992,26 +2987,26 @@ const Ht = {
2992
2987
  gz: "application/gzip",
2993
2988
  dmg: "application/x-apple-diskimage"
2994
2989
  };
2995
- function kn(t) {
2990
+ function En(t) {
2996
2991
  var n;
2997
2992
  if (t.type)
2998
2993
  return t.type;
2999
- const e = t.name ? (n = Cn(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;
3000
2995
  return e && e in Ht ? Ht[e] : "application/octet-stream";
3001
2996
  }
3002
- function Wi(t) {
2997
+ function qi(t) {
3003
2998
  return t.charCodeAt(0).toString(32);
3004
2999
  }
3005
3000
  function Gt(t) {
3006
3001
  let e = "";
3007
- return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${Wi(n)}`, "/")) + e;
3002
+ return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${qi(n)}`, "/")) + e;
3008
3003
  }
3009
- function Zi(t, e) {
3004
+ function Hi(t, e) {
3010
3005
  var r;
3011
3006
  let n = e || "uppy";
3012
3007
  return typeof t.name == "string" && (n += `-${Gt(t.name.toLowerCase())}`), t.type !== void 0 && (n += `-${t.type}`), t.meta && typeof t.meta.relativePath == "string" && (n += `-${Gt(t.meta.relativePath.toLowerCase())}`), ((r = t.data) == null ? void 0 : r.size) !== void 0 && (n += `-${t.data.size}`), t.data.lastModified !== void 0 && (n += `-${t.data.lastModified}`), n;
3013
3008
  }
3014
- function Yi(t) {
3009
+ function Gi(t) {
3015
3010
  return !t.isRemote || !t.remote ? !1 : (/* @__PURE__ */ new Set([
3016
3011
  "box",
3017
3012
  "dropbox",
@@ -3020,11 +3015,11 @@ function Yi(t) {
3020
3015
  "unsplash"
3021
3016
  ])).has(t.remote.provider);
3022
3017
  }
3023
- function Xi(t, e) {
3024
- if (Yi(t))
3018
+ function Wi(t, e) {
3019
+ if (Gi(t))
3025
3020
  return t.id;
3026
- const n = kn(t);
3027
- return Zi({
3021
+ const n = En(t);
3022
+ return Hi({
3028
3023
  ...t,
3029
3024
  type: n
3030
3025
  }, e);
@@ -3036,7 +3031,7 @@ function Be() {
3036
3031
  const t = /* @__PURE__ */ new Date(), e = Qe(t.getHours()), n = Qe(t.getMinutes()), r = Qe(t.getSeconds());
3037
3032
  return `${e}:${n}:${r}`;
3038
3033
  }
3039
- function Ki(t, e, n) {
3034
+ function Yi(t, e, n) {
3040
3035
  const r = [];
3041
3036
  return t.forEach((s) => typeof s != "string" ? r.push(s) : e[Symbol.split](s).forEach((o, i, a) => {
3042
3037
  o !== "" && r.push(o), i < a.length - 1 && r.push(n);
@@ -3060,25 +3055,25 @@ function Wt(t, e) {
3060
3055
  for (const o of Object.keys(e))
3061
3056
  if (o !== "_") {
3062
3057
  let i = e[o];
3063
- typeof i == "string" && (i = n[Symbol.replace](i, r)), s = Ki(s, new RegExp(`%\\{${o}\\}`, "g"), i);
3058
+ typeof i == "string" && (i = n[Symbol.replace](i, r)), s = Yi(s, new RegExp(`%\\{${o}\\}`, "g"), i);
3064
3059
  }
3065
3060
  return s;
3066
3061
  }
3067
- const Ji = (t) => {
3062
+ const Xi = (t) => {
3068
3063
  throw new Error(`missing string: ${t}`);
3069
3064
  };
3070
- var Te, Ee, ot;
3071
- class Qi {
3072
- constructor(e, { onMissingKey: n = Ji } = {}) {
3065
+ var Ee, Ie, ot;
3066
+ class Zi {
3067
+ constructor(e, { onMissingKey: n = Xi } = {}) {
3068
+ x(this, Ie);
3069
+ R(this, "locale");
3073
3070
  x(this, Ee);
3074
- B(this, "locale");
3075
- x(this, Te);
3076
3071
  this.locale = {
3077
3072
  strings: {},
3078
3073
  pluralize(r) {
3079
3074
  return r === 1 ? 0 : 1;
3080
3075
  }
3081
- }, Array.isArray(e) ? e.forEach(F(this, Ee, ot), this) : F(this, Ee, ot).call(this, e), Me(this, Te, n);
3076
+ }, Array.isArray(e) ? e.forEach(F(this, Ie, ot), this) : F(this, Ie, ot).call(this, e), Me(this, Ee, n);
3082
3077
  }
3083
3078
  /**
3084
3079
  * Public translate method
@@ -3097,7 +3092,7 @@ class Qi {
3097
3092
  */
3098
3093
  translateArray(e, n) {
3099
3094
  let r = this.locale.strings[e];
3100
- if (r == null && (w(this, Te).call(this, e), r = e), typeof r == "object") {
3095
+ if (r == null && (b(this, Ee).call(this, e), r = e), typeof r == "object") {
3101
3096
  if (n && typeof n.smart_count < "u") {
3102
3097
  const o = this.locale.pluralize(n.smart_count);
3103
3098
  return Wt(r[o], n);
@@ -3109,7 +3104,7 @@ class Qi {
3109
3104
  return Wt(r, n);
3110
3105
  }
3111
3106
  }
3112
- Te = new WeakMap(), Ee = new WeakSet(), ot = function(e) {
3107
+ Ee = new WeakMap(), Ie = new WeakSet(), ot = function(e) {
3113
3108
  if (!(e != null && e.strings))
3114
3109
  return;
3115
3110
  const n = this.locale;
@@ -3118,22 +3113,22 @@ Te = new WeakMap(), Ee = new WeakSet(), ot = function(e) {
3118
3113
  pluralize: e.pluralize || n.pluralize
3119
3114
  });
3120
3115
  };
3121
- const eo = {
3116
+ const Ki = {
3122
3117
  debug: () => {
3123
3118
  },
3124
3119
  warn: () => {
3125
3120
  },
3126
3121
  error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
3127
- }, to = {
3122
+ }, Ji = {
3128
3123
  debug: (...t) => console.debug(`[Uppy] [${Be()}]`, ...t),
3129
3124
  warn: (...t) => console.warn(`[Uppy] [${Be()}]`, ...t),
3130
3125
  error: (...t) => console.error(`[Uppy] [${Be()}]`, ...t)
3131
3126
  };
3132
- var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3133
- function Ye(t) {
3127
+ var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3128
+ function Xe(t) {
3134
3129
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3135
3130
  }
3136
- var no = function(e) {
3131
+ var Qi = function(e) {
3137
3132
  if (typeof e != "number" || Number.isNaN(e))
3138
3133
  throw new TypeError(`Expected a number, got ${typeof e}`);
3139
3134
  const n = e < 0;
@@ -3143,11 +3138,11 @@ var no = function(e) {
3143
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];
3144
3139
  return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
3145
3140
  };
3146
- const Ae = /* @__PURE__ */ Ye(no);
3147
- function Tn(t, e) {
3141
+ const Pe = /* @__PURE__ */ Xe(Qi);
3142
+ function In(t, e) {
3148
3143
  this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
3149
3144
  }
3150
- Tn.prototype.match = function(t) {
3145
+ In.prototype.match = function(t) {
3151
3146
  var e = !0, n = this.parts, r, s = n.length, o;
3152
3147
  if (typeof t == "string" || t instanceof String)
3153
3148
  if (!this.hasWild && this.text != t)
@@ -3167,17 +3162,17 @@ Tn.prototype.match = function(t) {
3167
3162
  }
3168
3163
  return e;
3169
3164
  };
3170
- var ro = function(t, e, n) {
3171
- var r = new Tn(t, n || /[\/\.]/);
3165
+ var eo = function(t, e, n) {
3166
+ var r = new In(t, n || /[\/\.]/);
3172
3167
  return typeof e < "u" ? r.match(e) : r;
3173
- }, so = ro, io = /[\/\+\.]/, oo = function(t, e) {
3168
+ }, to = eo, no = /[\/\+\.]/, ro = function(t, e) {
3174
3169
  function n(r) {
3175
- var s = so(r, t, io);
3170
+ var s = to(r, t, no);
3176
3171
  return s && s.length >= 2;
3177
3172
  }
3178
3173
  return e ? n(e.split(";")[0]) : n;
3179
3174
  };
3180
- const ao = /* @__PURE__ */ Ye(oo), lo = {
3175
+ const so = /* @__PURE__ */ Xe(ro), io = {
3181
3176
  maxFileSize: null,
3182
3177
  minFileSize: null,
3183
3178
  maxTotalFileSize: null,
@@ -3189,16 +3184,16 @@ const ao = /* @__PURE__ */ Ye(oo), lo = {
3189
3184
  class J extends Error {
3190
3185
  constructor(n, r) {
3191
3186
  super(n);
3192
- B(this, "isUserFacing");
3193
- B(this, "file");
3194
- B(this, "isRestriction", !0);
3187
+ R(this, "isUserFacing");
3188
+ R(this, "file");
3189
+ R(this, "isRestriction", !0);
3195
3190
  this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
3196
3191
  }
3197
3192
  }
3198
- class uo {
3193
+ class oo {
3199
3194
  constructor(e, n) {
3200
- B(this, "getI18n");
3201
- B(this, "getOpts");
3195
+ R(this, "getI18n");
3196
+ R(this, "getOpts");
3202
3197
  this.getI18n = n, this.getOpts = () => {
3203
3198
  var s;
3204
3199
  const r = e();
@@ -3218,14 +3213,14 @@ class uo {
3218
3213
  const o = [...e, ...n].reduce((i, a) => i + (a.size ?? 0), 0);
3219
3214
  if (o > r)
3220
3215
  throw new J(this.getI18n()("aggregateExceedsSize", {
3221
- sizeAllowed: Ae(r),
3222
- size: Ae(o)
3216
+ sizeAllowed: Pe(r),
3217
+ size: Pe(o)
3223
3218
  }));
3224
3219
  }
3225
3220
  }
3226
3221
  validateSingleFile(e) {
3227
3222
  const { maxFileSize: n, minFileSize: r, allowedFileTypes: s } = this.getOpts().restrictions;
3228
- if (s && !s.some((i) => i.includes("/") ? e.type ? ao(e.type.replace(/;.*?$/, ""), i) : !1 : i[0] === "." && e.extension ? e.extension.toLowerCase() === i.slice(1).toLowerCase() : !1)) {
3223
+ if (s && !s.some((i) => i.includes("/") ? e.type ? so(e.type.replace(/;.*?$/, ""), i) : !1 : i[0] === "." && e.extension ? e.extension.toLowerCase() === i.slice(1).toLowerCase() : !1)) {
3229
3224
  const i = s.join(", ");
3230
3225
  throw new J(this.getI18n()("youCanOnlyUploadFileTypes", {
3231
3226
  types: i
@@ -3233,12 +3228,12 @@ class uo {
3233
3228
  }
3234
3229
  if (n && e.size != null && e.size > n)
3235
3230
  throw new J(this.getI18n()("exceedsSize", {
3236
- size: Ae(n),
3231
+ size: Pe(n),
3237
3232
  file: e.name ?? this.getI18n()("unnamed")
3238
3233
  }), { file: e });
3239
3234
  if (r && e.size != null && e.size < r)
3240
3235
  throw new J(this.getI18n()("inferiorSize", {
3241
- size: Ae(r)
3236
+ size: Pe(r)
3242
3237
  }), { file: e });
3243
3238
  }
3244
3239
  validate(e, n) {
@@ -3262,82 +3257,82 @@ class uo {
3262
3257
  return { missingFields: s, error: n };
3263
3258
  }
3264
3259
  }
3265
- const po = "5.0.0", co = {
3266
- version: po
3260
+ const ao = "5.0.0", lo = {
3261
+ version: ao
3267
3262
  };
3268
- var fe, Le, In;
3269
- class En {
3263
+ var ce, xe, Vn;
3264
+ class Cn {
3270
3265
  constructor() {
3271
- x(this, Le);
3272
- B(this, "state", {});
3273
- x(this, fe, /* @__PURE__ */ new Set());
3266
+ x(this, xe);
3267
+ R(this, "state", {});
3268
+ x(this, ce, /* @__PURE__ */ new Set());
3274
3269
  }
3275
3270
  getState() {
3276
3271
  return this.state;
3277
3272
  }
3278
3273
  setState(e) {
3279
3274
  const n = { ...this.state }, r = { ...this.state, ...e };
3280
- this.state = r, F(this, Le, In).call(this, n, r, e);
3275
+ this.state = r, F(this, xe, Vn).call(this, n, r, e);
3281
3276
  }
3282
3277
  subscribe(e) {
3283
- return w(this, fe).add(e), () => {
3284
- w(this, fe).delete(e);
3278
+ return b(this, ce).add(e), () => {
3279
+ b(this, ce).delete(e);
3285
3280
  };
3286
3281
  }
3287
3282
  }
3288
- fe = new WeakMap(), Le = new WeakSet(), In = function(...e) {
3289
- w(this, fe).forEach((n) => {
3283
+ ce = new WeakMap(), xe = new WeakSet(), Vn = function(...e) {
3284
+ b(this, ce).forEach((n) => {
3290
3285
  n(...e);
3291
3286
  });
3292
- }, B(En, "VERSION", co.version);
3293
- function fo(t) {
3287
+ }, R(Cn, "VERSION", lo.version);
3288
+ function uo(t) {
3294
3289
  var e = typeof t;
3295
3290
  return t != null && (e == "object" || e == "function");
3296
3291
  }
3297
- var Tt = fo, ho = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, mo = ho, go = mo, yo = typeof self == "object" && self && self.Object === Object && self, vo = go || yo || Function("return this")(), Vn = vo, _o = Vn, bo = function() {
3298
- return _o.Date.now();
3299
- }, wo = bo, $o = /\s/;
3300
- function So(t) {
3301
- for (var e = t.length; e-- && $o.test(t.charAt(e)); )
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() {
3293
+ return go.Date.now();
3294
+ }, vo = yo, _o = /\s/;
3295
+ function bo(t) {
3296
+ for (var e = t.length; e-- && _o.test(t.charAt(e)); )
3302
3297
  ;
3303
3298
  return e;
3304
3299
  }
3305
- var Fo = So, Co = Fo, ko = /^\s+/;
3306
- function To(t) {
3307
- return t && t.slice(0, Co(t) + 1).replace(ko, "");
3300
+ var wo = bo, $o = wo, So = /^\s+/;
3301
+ function Fo(t) {
3302
+ return t && t.slice(0, $o(t) + 1).replace(So, "");
3308
3303
  }
3309
- var Eo = To, Io = Vn, Vo = Io.Symbol, Mn = Vo, Zt = Mn, Un = Object.prototype, Mo = Un.hasOwnProperty, Uo = Un.toString, we = Zt ? Zt.toStringTag : void 0;
3310
- function zo(t) {
3311
- var e = Mo.call(t, we), n = t[we];
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;
3305
+ function Vo(t) {
3306
+ var e = Io.call(t, we), n = t[we];
3312
3307
  try {
3313
3308
  t[we] = void 0;
3314
3309
  var r = !0;
3315
3310
  } catch {
3316
3311
  }
3317
- var s = Uo.call(t);
3312
+ var s = Co.call(t);
3318
3313
  return r && (e ? t[we] = n : delete t[we]), s;
3319
3314
  }
3320
- var Po = zo, Ao = Object.prototype, No = Ao.toString;
3321
- function Do(t) {
3322
- return No.call(t);
3315
+ var Mo = Vo, Uo = Object.prototype, Ao = Uo.toString;
3316
+ function zo(t) {
3317
+ return Ao.call(t);
3323
3318
  }
3324
- var Oo = Do, Yt = Mn, Ro = Po, Bo = Oo, jo = "[object Null]", Lo = "[object Undefined]", Xt = Yt ? Yt.toStringTag : void 0;
3325
- function xo(t) {
3326
- return t == null ? t === void 0 ? Lo : jo : Xt && Xt in Object(t) ? Ro(t) : Bo(t);
3319
+ var Po = zo, Xt = Un, No = Mo, Oo = Po, Do = "[object Null]", Ro = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3320
+ function Bo(t) {
3321
+ return t == null ? t === void 0 ? Ro : Do : Zt && Zt in Object(t) ? No(t) : Oo(t);
3327
3322
  }
3328
- var qo = xo;
3329
- function Ho(t) {
3323
+ var jo = Bo;
3324
+ function xo(t) {
3330
3325
  return t != null && typeof t == "object";
3331
3326
  }
3332
- var Go = Ho, Wo = qo, Zo = Go, Yo = "[object Symbol]";
3333
- function Xo(t) {
3334
- return typeof t == "symbol" || Zo(t) && Wo(t) == Yo;
3327
+ var Lo = xo, qo = jo, Ho = Lo, Go = "[object Symbol]";
3328
+ function Wo(t) {
3329
+ return typeof t == "symbol" || Ho(t) && qo(t) == Go;
3335
3330
  }
3336
- var Ko = Xo, Jo = Eo, Kt = Tt, Qo = Ko, Jt = NaN, ea = /^[-+]0x[0-9a-f]+$/i, ta = /^0b[01]+$/i, na = /^0o[0-7]+$/i, ra = parseInt;
3337
- function sa(t) {
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;
3332
+ function ta(t) {
3338
3333
  if (typeof t == "number")
3339
3334
  return t;
3340
- if (Qo(t))
3335
+ if (Zo(t))
3341
3336
  return Jt;
3342
3337
  if (Kt(t)) {
3343
3338
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
@@ -3345,72 +3340,72 @@ function sa(t) {
3345
3340
  }
3346
3341
  if (typeof t != "string")
3347
3342
  return t === 0 ? t : +t;
3348
- t = Jo(t);
3349
- var n = ta.test(t);
3350
- return n || na.test(t) ? ra(t.slice(2), n ? 2 : 8) : ea.test(t) ? Jt : +t;
3343
+ t = Xo(t);
3344
+ var n = Jo.test(t);
3345
+ return n || Qo.test(t) ? ea(t.slice(2), n ? 2 : 8) : Ko.test(t) ? Jt : +t;
3351
3346
  }
3352
- var ia = sa, oa = Tt, et = wo, Qt = ia, aa = "Expected a function", la = Math.max, ua = Math.min;
3353
- function da(t, e, n) {
3347
+ var na = ta, ra = Et, et = vo, Qt = na, sa = "Expected a function", ia = Math.max, oa = Math.min;
3348
+ function aa(t, e, n) {
3354
3349
  var r, s, o, i, a, l, u = 0, d = !1, p = !1, c = !0;
3355
3350
  if (typeof t != "function")
3356
- throw new TypeError(aa);
3357
- e = Qt(e) || 0, oa(n) && (d = !!n.leading, p = "maxWait" in n, o = p ? la(Qt(n.maxWait) || 0, e) : o, c = "trailing" in n ? !!n.trailing : c);
3358
- function h($) {
3351
+ throw new TypeError(sa);
3352
+ e = Qt(e) || 0, ra(n) && (d = !!n.leading, p = "maxWait" in n, o = p ? ia(Qt(n.maxWait) || 0, e) : o, c = "trailing" in n ? !!n.trailing : c);
3353
+ function h(w) {
3359
3354
  var U = r, N = s;
3360
- return r = s = void 0, u = $, i = t.apply(N, U), i;
3355
+ return r = s = void 0, u = w, i = t.apply(N, U), i;
3361
3356
  }
3362
- function v($) {
3363
- return u = $, a = setTimeout(C, e), d ? h($) : i;
3357
+ function v(w) {
3358
+ return u = w, a = setTimeout(T, e), d ? h(w) : i;
3364
3359
  }
3365
- function V($) {
3366
- var U = $ - l, N = $ - u, G = e - U;
3367
- return p ? ua(G, o - N) : G;
3360
+ function V(w) {
3361
+ var U = w - l, N = w - u, G = e - U;
3362
+ return p ? oa(G, o - N) : G;
3368
3363
  }
3369
- function z($) {
3370
- var U = $ - l, N = $ - u;
3364
+ function A(w) {
3365
+ var U = w - l, N = w - u;
3371
3366
  return l === void 0 || U >= e || U < 0 || p && N >= o;
3372
3367
  }
3373
- function C() {
3374
- var $ = et();
3375
- if (z($))
3376
- return T($);
3377
- a = setTimeout(C, V($));
3368
+ function T() {
3369
+ var w = et();
3370
+ if (A(w))
3371
+ return E(w);
3372
+ a = setTimeout(T, V(w));
3378
3373
  }
3379
- function T($) {
3380
- return a = void 0, c && r ? h($) : (r = s = void 0, i);
3374
+ function E(w) {
3375
+ return a = void 0, c && r ? h(w) : (r = s = void 0, i);
3381
3376
  }
3382
- function Z() {
3377
+ function Y() {
3383
3378
  a !== void 0 && clearTimeout(a), u = 0, r = l = s = a = void 0;
3384
3379
  }
3385
3380
  function f() {
3386
- return a === void 0 ? i : T(et());
3381
+ return a === void 0 ? i : E(et());
3387
3382
  }
3388
3383
  function _() {
3389
- var $ = et(), U = z($);
3390
- if (r = arguments, s = this, l = $, U) {
3384
+ var w = et(), U = A(w);
3385
+ if (r = arguments, s = this, l = w, U) {
3391
3386
  if (a === void 0)
3392
3387
  return v(l);
3393
3388
  if (p)
3394
- return clearTimeout(a), a = setTimeout(C, e), h(l);
3389
+ return clearTimeout(a), a = setTimeout(T, e), h(l);
3395
3390
  }
3396
- return a === void 0 && (a = setTimeout(C, e)), i;
3391
+ return a === void 0 && (a = setTimeout(T, e)), i;
3397
3392
  }
3398
- return _.cancel = Z, _.flush = f, _;
3393
+ return _.cancel = Y, _.flush = f, _;
3399
3394
  }
3400
- var pa = da, ca = pa, fa = Tt, ha = "Expected a function";
3401
- function ma(t, e, n) {
3395
+ var la = aa, ua = la, da = Et, pa = "Expected a function";
3396
+ function ca(t, e, n) {
3402
3397
  var r = !0, s = !0;
3403
3398
  if (typeof t != "function")
3404
- throw new TypeError(ha);
3405
- return fa(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), ca(t, e, {
3399
+ throw new TypeError(pa);
3400
+ return da(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), ua(t, e, {
3406
3401
  leading: r,
3407
3402
  maxWait: e,
3408
3403
  trailing: s
3409
3404
  });
3410
3405
  }
3411
- var ga = ma;
3412
- const ya = /* @__PURE__ */ Ye(ga);
3413
- var va = function() {
3406
+ var fa = ca;
3407
+ const ha = /* @__PURE__ */ Xe(fa);
3408
+ var ma = function() {
3414
3409
  var e = {}, n = e._fns = {};
3415
3410
  e.emit = function(i, a, l, u, d, p, c) {
3416
3411
  var h = r(i);
@@ -3449,20 +3444,20 @@ var va = function() {
3449
3444
  }
3450
3445
  return e;
3451
3446
  };
3452
- const _a = /* @__PURE__ */ Ye(va);
3453
- let ba = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", wa = (t = 21) => {
3447
+ const ga = /* @__PURE__ */ Xe(ma);
3448
+ let ya = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", va = (t = 21) => {
3454
3449
  let e = "", n = t | 0;
3455
3450
  for (; n--; )
3456
- e += ba[Math.random() * 64 | 0];
3451
+ e += ya[Math.random() * 64 | 0];
3457
3452
  return e;
3458
3453
  };
3459
- const $a = "5.2.0", Sa = {
3460
- version: $a
3454
+ const _a = "5.2.0", ba = {
3455
+ version: _a
3461
3456
  };
3462
- function Fa(t, e) {
3457
+ function wa(t, e) {
3463
3458
  return e.name ? e.name : t.split("/")[0] === "image" ? `${t.split("/")[0]}.${t.split("/")[1]}` : "noname";
3464
3459
  }
3465
- const Ca = {
3460
+ const $a = {
3466
3461
  strings: {
3467
3462
  addBulkFilesFailed: {
3468
3463
  0: "Failed to add %{smart_count} file due to an internal error",
@@ -3527,7 +3522,7 @@ const Ca = {
3527
3522
  pleaseWait: "Please wait"
3528
3523
  }
3529
3524
  };
3530
- function ka(t) {
3525
+ function Sa(t) {
3531
3526
  if (t == null && typeof navigator < "u" && (t = navigator.userAgent), !t)
3532
3527
  return !0;
3533
3528
  const e = /Edge\/(\d+\.\d+)/.exec(t);
@@ -3542,32 +3537,32 @@ const Ne = {
3542
3537
  error: null,
3543
3538
  recoveredState: null
3544
3539
  };
3545
- var X, K, Ie, le, he, me, ue, y, oe, lt, zn, Pn, An, ut, dt, pt, ct, xe, ft, de, Nn, Dn, se, Ve, $e, On, 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;
3546
3541
  const qe = class qe {
3547
3542
  /**
3548
3543
  * Instantiate Uppy
3549
3544
  */
3550
3545
  constructor(e) {
3551
3546
  x(this, y);
3552
- x(this, X, /* @__PURE__ */ Object.create(null));
3547
+ x(this, Z, /* @__PURE__ */ Object.create(null));
3553
3548
  x(this, K);
3554
- x(this, Ie);
3555
- x(this, le, _a());
3549
+ x(this, Ce);
3550
+ x(this, le, ga());
3551
+ x(this, fe, /* @__PURE__ */ new Set());
3556
3552
  x(this, he, /* @__PURE__ */ new Set());
3557
- x(this, me, /* @__PURE__ */ new Set());
3558
3553
  x(this, ue, /* @__PURE__ */ new Set());
3559
- B(this, "defaultLocale");
3560
- B(this, "locale");
3554
+ R(this, "defaultLocale");
3555
+ R(this, "locale");
3561
3556
  // The user optionally passes in options, but we set defaults for missing options.
3562
3557
  // We consider all options present after the contructor has run.
3563
- B(this, "opts");
3564
- B(this, "store");
3558
+ R(this, "opts");
3559
+ R(this, "store");
3565
3560
  // Warning: do not use this from a plugin, as it will cause the plugins' translations to be missing
3566
- B(this, "i18n");
3567
- B(this, "i18nArray");
3568
- B(this, "scheduledAutoProceed", null);
3569
- B(this, "wasOffline", !1);
3570
- x(this, xe, (e, n) => {
3561
+ R(this, "i18n");
3562
+ R(this, "i18nArray");
3563
+ R(this, "scheduledAutoProceed", null);
3564
+ R(this, "wasOffline", !1);
3565
+ x(this, Le, (e, n) => {
3571
3566
  const r = e ? this.getFile(e.id) : void 0;
3572
3567
  if (e == null || !r) {
3573
3568
  this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
@@ -3593,7 +3588,7 @@ const qe = class qe {
3593
3588
  ...r.progress,
3594
3589
  ...s
3595
3590
  }
3596
- }), w(this, de).call(this);
3591
+ }), b(this, de).call(this);
3597
3592
  });
3598
3593
  // ___Why throttle at 500ms?
3599
3594
  // - We must throttle at >250ms for superfocus in Dashboard to work well
@@ -3602,7 +3597,7 @@ const qe = class qe {
3602
3597
  // and click 'ADD MORE FILES', - focus won't activate in Firefox.
3603
3598
  // - We must throttle at around >500ms to avoid performance lags.
3604
3599
  // [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
3605
- x(this, de, ya(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
3600
+ x(this, de, ha(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
3606
3601
  x(this, se, this.updateOnlineStatus.bind(this));
3607
3602
  // We need to store request clients by a unique ID, so we can share RequestClient instances across files
3608
3603
  // this allows us to do rate limiting and synchronous operations like refreshing provider tokens
@@ -3615,18 +3610,18 @@ const qe = class qe {
3615
3610
  // all 6 files would go ahead and refresh the token at the same time
3616
3611
  // (calling /refresh-token up to 6 times), which will probably fail for some providers
3617
3612
  x(this, Ve, /* @__PURE__ */ new Map());
3618
- this.defaultLocale = Ca;
3613
+ this.defaultLocale = $a;
3619
3614
  const n = {
3620
3615
  id: "uppy",
3621
3616
  autoProceed: !1,
3622
3617
  allowMultipleUploadBatches: !0,
3623
3618
  debug: !1,
3624
- restrictions: lo,
3619
+ restrictions: io,
3625
3620
  meta: {},
3626
3621
  onBeforeFileAdded: (s, o) => !Object.hasOwn(o, s.id),
3627
3622
  onBeforeUpload: (s) => s,
3628
- store: new En(),
3629
- logger: eo,
3623
+ store: new Cn(),
3624
+ logger: Ki,
3630
3625
  infoTimeout: 5e3
3631
3626
  }, r = { ...n, ...e };
3632
3627
  this.opts = {
@@ -3635,33 +3630,33 @@ const qe = class qe {
3635
3630
  ...n.restrictions,
3636
3631
  ...e == null ? void 0 : e.restrictions
3637
3632
  }
3638
- }, e != null && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e != null && e.debug && (this.opts.logger = to), this.log(`Using Core v${qe.VERSION}`), this.i18nInit(), this.store = this.opts.store, this.setState({
3633
+ }, e != null && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e != null && e.debug && (this.opts.logger = Ji), this.log(`Using Core v${qe.VERSION}`), this.i18nInit(), this.store = this.opts.store, this.setState({
3639
3634
  ...Ne,
3640
3635
  plugins: {},
3641
3636
  files: {},
3642
3637
  currentUploads: {},
3643
3638
  capabilities: {
3644
- uploadProgress: ka(),
3639
+ uploadProgress: Sa(),
3645
3640
  individualCancellation: !0,
3646
3641
  resumableUploads: !1
3647
3642
  },
3648
3643
  meta: { ...this.opts.meta },
3649
3644
  info: []
3650
- }), Me(this, K, new uo(() => this.opts, () => this.i18n)), Me(this, Ie, this.store.subscribe((s, o, i) => {
3645
+ }), Me(this, K, new oo(() => this.opts, () => this.i18n)), Me(this, Ce, this.store.subscribe((s, o, i) => {
3651
3646
  this.emit("state-update", s, o, i), this.updateAll(o);
3652
3647
  })), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), F(this, y, Dn).call(this);
3653
3648
  }
3654
3649
  emit(e, ...n) {
3655
- w(this, le).emit(e, ...n);
3650
+ b(this, le).emit(e, ...n);
3656
3651
  }
3657
3652
  on(e, n) {
3658
- return w(this, le).on(e, n), this;
3653
+ return b(this, le).on(e, n), this;
3659
3654
  }
3660
3655
  once(e, n) {
3661
- return w(this, le).once(e, n), this;
3656
+ return b(this, le).once(e, n), this;
3662
3657
  }
3663
3658
  off(e, n) {
3664
- return w(this, le).off(e, n), this;
3659
+ return b(this, le).off(e, n), this;
3665
3660
  }
3666
3661
  /**
3667
3662
  * Iterate on all plugins and run `update` on them.
@@ -3709,7 +3704,7 @@ const qe = class qe {
3709
3704
  this.patchFilesState({ [e]: n });
3710
3705
  }
3711
3706
  i18nInit() {
3712
- const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Qi([this.defaultLocale, this.opts.locale], {
3707
+ const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new Zi([this.defaultLocale, this.opts.locale], {
3713
3708
  onMissingKey: e
3714
3709
  });
3715
3710
  this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
@@ -3755,22 +3750,22 @@ const qe = class qe {
3755
3750
  this.setState({ ...Ne, files: {} });
3756
3751
  }
3757
3752
  addPreProcessor(e) {
3758
- w(this, he).add(e);
3753
+ b(this, fe).add(e);
3759
3754
  }
3760
3755
  removePreProcessor(e) {
3761
- return w(this, he).delete(e);
3756
+ return b(this, fe).delete(e);
3762
3757
  }
3763
3758
  addPostProcessor(e) {
3764
- w(this, ue).add(e);
3759
+ b(this, ue).add(e);
3765
3760
  }
3766
3761
  removePostProcessor(e) {
3767
- return w(this, ue).delete(e);
3762
+ return b(this, ue).delete(e);
3768
3763
  }
3769
3764
  addUploader(e) {
3770
- w(this, me).add(e);
3765
+ b(this, he).add(e);
3771
3766
  }
3772
3767
  removeUploader(e) {
3773
- return w(this, me).delete(e);
3768
+ return b(this, he).delete(e);
3774
3769
  }
3775
3770
  setMeta(e) {
3776
3771
  const n = { ...this.getState().meta, ...e }, r = { ...this.getState().files };
@@ -3835,7 +3830,7 @@ const qe = class qe {
3835
3830
  }
3836
3831
  validateRestrictions(e, n = this.getFiles()) {
3837
3832
  try {
3838
- w(this, K).validate(n, [e]);
3833
+ b(this, K).validate(n, [e]);
3839
3834
  } catch (r) {
3840
3835
  return r;
3841
3836
  }
@@ -3843,7 +3838,7 @@ const qe = class qe {
3843
3838
  }
3844
3839
  validateSingleFile(e) {
3845
3840
  try {
3846
- w(this, K).validateSingleFile(e);
3841
+ b(this, K).validateSingleFile(e);
3847
3842
  } catch (n) {
3848
3843
  return n.message;
3849
3844
  }
@@ -3852,7 +3847,7 @@ const qe = class qe {
3852
3847
  validateAggregateRestrictions(e) {
3853
3848
  const n = this.getFiles();
3854
3849
  try {
3855
- w(this, K).validateAggregateRestrictions(n, e);
3850
+ b(this, K).validateAggregateRestrictions(n, e);
3856
3851
  } catch (r) {
3857
3852
  return r.message;
3858
3853
  }
@@ -3938,7 +3933,7 @@ const qe = class qe {
3938
3933
  currentUploads: o,
3939
3934
  files: s
3940
3935
  };
3941
- Object.keys(s).length === 0 && (l.allowNewUpload = !0, l.error = null, l.recoveredState = null), this.setState(l), w(this, de).call(this);
3936
+ Object.keys(s).length === 0 && (l.allowNewUpload = !0, l.error = null, l.recoveredState = null), this.setState(l), b(this, de).call(this);
3942
3937
  const u = Object.keys(i);
3943
3938
  u.forEach((d) => {
3944
3939
  this.emit("file-removed", i[d]);
@@ -4030,24 +4025,24 @@ const qe = class qe {
4030
4025
  Uppy plugins must have unique \`id\` options.`;
4031
4026
  throw new Error(i);
4032
4027
  }
4033
- return e.VERSION && this.log(`Using ${s} v${e.VERSION}`), r.type in w(this, X) ? w(this, X)[r.type].push(r) : w(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;
4034
4029
  }
4035
4030
  getPlugin(e) {
4036
- for (const n of Object.values(w(this, X))) {
4031
+ for (const n of Object.values(b(this, Z))) {
4037
4032
  const r = n.find((s) => s.id === e);
4038
4033
  if (r != null)
4039
4034
  return r;
4040
4035
  }
4041
4036
  }
4042
4037
  [Symbol.for("uppy test: getPlugins")](e) {
4043
- return w(this, X)[e];
4038
+ return b(this, Z)[e];
4044
4039
  }
4045
4040
  /**
4046
4041
  * Iterate through all `use`d plugins.
4047
4042
  *
4048
4043
  */
4049
4044
  iteratePlugins(e) {
4050
- Object.values(w(this, X)).flat(1).forEach(e);
4045
+ Object.values(b(this, Z)).flat(1).forEach(e);
4051
4046
  }
4052
4047
  /**
4053
4048
  * Uninstall and remove a plugin.
@@ -4056,7 +4051,7 @@ Uppy plugins must have unique \`id\` options.`;
4056
4051
  */
4057
4052
  removePlugin(e) {
4058
4053
  this.log(`Removing plugin ${e.id}`), this.emit("plugin-remove", e), e.uninstall && e.uninstall();
4059
- const n = w(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);
4060
4055
  r !== -1 && n.splice(r, 1);
4061
4056
  const o = {
4062
4057
  plugins: {
@@ -4070,9 +4065,9 @@ Uppy plugins must have unique \`id\` options.`;
4070
4065
  * Uninstall all plugins and close down this Uppy instance.
4071
4066
  */
4072
4067
  destroy() {
4073
- this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.cancelAll(), w(this, Ie).call(this), this.iteratePlugins((e) => {
4068
+ this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.cancelAll(), b(this, Ce).call(this), this.iteratePlugins((e) => {
4074
4069
  this.removePlugin(e);
4075
- }), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", w(this, se)), window.removeEventListener("offline", w(this, se)));
4070
+ }), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", b(this, se)), window.removeEventListener("offline", b(this, se)));
4076
4071
  }
4077
4072
  hideInfo() {
4078
4073
  const { info: e } = this.getState();
@@ -4114,13 +4109,13 @@ Uppy plugins must have unique \`id\` options.`;
4114
4109
  }
4115
4110
  }
4116
4111
  registerRequestClient(e, n) {
4117
- w(this, Ve).set(e, n);
4112
+ b(this, Ve).set(e, n);
4118
4113
  }
4119
4114
  /** @protected */
4120
4115
  getRequestClientForFile(e) {
4121
4116
  if (!("remote" in e && e.remote))
4122
4117
  throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);
4123
- const n = w(this, Ve).get(e.remote.requestClientId);
4118
+ const n = b(this, Ve).get(e.remote.requestClientId);
4124
4119
  if (n == null)
4125
4120
  throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);
4126
4121
  return n;
@@ -4140,7 +4135,7 @@ Uppy plugins must have unique \`id\` options.`;
4140
4135
  * Add data to an upload's result object.
4141
4136
  */
4142
4137
  addResultData(e, n) {
4143
- if (!F(this, y, On).call(this, e)) {
4138
+ if (!F(this, y, Rn).call(this, e)) {
4144
4139
  this.log(`Not setting result for an upload that has been removed: ${e}`);
4145
4140
  return;
4146
4141
  }
@@ -4157,7 +4152,7 @@ Uppy plugins must have unique \`id\` options.`;
4157
4152
  */
4158
4153
  async upload() {
4159
4154
  var s;
4160
- (s = w(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");
4161
4156
  let { files: e } = this.getState();
4162
4157
  if (F(this, y, pt).call(this).length > 0) {
4163
4158
  const o = await F(this, y, ct).call(this);
@@ -4172,7 +4167,7 @@ Uppy plugins must have unique \`id\` options.`;
4172
4167
  files: e
4173
4168
  }));
4174
4169
  try {
4175
- if (w(this, K).validateMinNumberOfFiles(e), !F(this, y, zn).call(this, e))
4170
+ if (b(this, K).validateMinNumberOfFiles(e), !F(this, y, zn).call(this, e))
4176
4171
  throw new J(this.i18n("missingRequiredMetaField"));
4177
4172
  const { currentUploads: o } = this.getState(), i = Object.values(o).flatMap((d) => d.fileIDs), a = Object.keys(e).filter((d) => {
4178
4173
  const p = this.getFile(d);
@@ -4184,7 +4179,7 @@ Uppy plugins must have unique \`id\` options.`;
4184
4179
  }
4185
4180
  }
4186
4181
  };
4187
- X = new WeakMap(), K = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), he = new WeakMap(), me = 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) {
4188
4183
  for (const i of e)
4189
4184
  i.isRestriction ? this.emit("restriction-failed", i.file, i) : this.emit("error", i, i.file), this.log(i, "warning");
4190
4185
  const n = e.filter((i) => i.isUserFacing), r = 4, s = n.slice(0, r), o = n.slice(r);
@@ -4196,7 +4191,7 @@ X = new WeakMap(), K = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), he
4196
4191
  })
4197
4192
  });
4198
4193
  }, lt = function(e) {
4199
- const { missingFields: n, error: r } = w(this, K).getMissingRequiredMetaFields(e);
4194
+ const { missingFields: n, error: r } = b(this, K).getMissingRequiredMetaFields(e);
4200
4195
  return n.length > 0 ? (this.setFileState(e.id, {
4201
4196
  missingRequiredMetaFields: n,
4202
4197
  error: r.message
@@ -4219,7 +4214,7 @@ X = new WeakMap(), K = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), he
4219
4214
  }, /**
4220
4215
  * Create a file state object based on user-provided `addFile()` options.
4221
4216
  */
4222
- An = function(e) {
4217
+ Nn = function(e) {
4223
4218
  const n = e instanceof File ? {
4224
4219
  name: e.name,
4225
4220
  type: e.type,
@@ -4229,7 +4224,7 @@ An = function(e) {
4229
4224
  isRemote: !1,
4230
4225
  source: void 0,
4231
4226
  preview: void 0
4232
- } : e, r = kn(n), s = Fa(r, n), o = Cn(s).extension, i = Xi(n, this.getID()), a = {
4227
+ } : e, r = En(n), s = wa(r, n), o = kn(s).extension, i = Wi(n, this.getID()), a = {
4233
4228
  ...n.meta,
4234
4229
  name: s,
4235
4230
  type: r
@@ -4275,7 +4270,7 @@ ut = function() {
4275
4270
  const s = [], o = [];
4276
4271
  for (const i of e)
4277
4272
  try {
4278
- let a = F(this, y, An).call(this, i);
4273
+ let a = F(this, y, Nn).call(this, i);
4279
4274
  F(this, y, Pn).call(this, a);
4280
4275
  const l = n[a.id], u = l == null ? void 0 : l.isGhost;
4281
4276
  if (u && !a.isRemote) {
@@ -4294,12 +4289,12 @@ ut = function() {
4294
4289
  }), { file: a });
4295
4290
  if (d === !1 && !u)
4296
4291
  throw new J("Cannot add the file because onBeforeFileAdded returned false.", { isUserFacing: !1, file: a });
4297
- typeof d == "object" && d !== null && (a = d), w(this, K).validateSingleFile(a), r[a.id] = a, s.push(a);
4292
+ typeof d == "object" && d !== null && (a = d), b(this, K).validateSingleFile(a), r[a.id] = a, s.push(a);
4298
4293
  } catch (a) {
4299
4294
  o.push(a);
4300
4295
  }
4301
4296
  try {
4302
- w(this, K).validateAggregateRestrictions(Object.values(n), s);
4297
+ b(this, K).validateAggregateRestrictions(Object.values(n), s);
4303
4298
  } catch (i) {
4304
4299
  return o.push(i), {
4305
4300
  nextFilesState: n,
@@ -4339,13 +4334,13 @@ ut = function() {
4339
4334
  // create new upload even if allowNewUpload: false
4340
4335
  });
4341
4336
  return F(this, y, Se).call(this, r);
4342
- }, xe = new WeakMap(), ft = function() {
4343
- const e = F(this, y, Nn).call(this);
4337
+ }, Le = new WeakMap(), ft = function() {
4338
+ const e = F(this, y, On).call(this);
4344
4339
  let n = null;
4345
4340
  e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
4346
4341
  totalProgress: n ?? 0
4347
4342
  });
4348
- }, de = new WeakMap(), Nn = function() {
4343
+ }, de = new WeakMap(), On = function() {
4349
4344
  const n = this.getFiles().filter((l) => l.progress.uploadStarted || l.progress.preprocess || l.progress.postprocess);
4350
4345
  if (n.length === 0)
4351
4346
  return 0;
@@ -4402,12 +4397,12 @@ Dn = function() {
4402
4397
  ]));
4403
4398
  this.patchFilesState(i);
4404
4399
  };
4405
- this.on("upload-start", r), this.on("upload-progress", w(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) => {
4406
4401
  if (s == null || !this.getFile(s.id)) {
4407
4402
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
4408
4403
  return;
4409
4404
  }
4410
- const i = this.getFile(s.id).progress, a = w(this, ue).size > 0;
4405
+ const i = this.getFile(s.id).progress, a = b(this, ue).size > 0;
4411
4406
  this.setFileState(s.id, {
4412
4407
  progress: {
4413
4408
  ...i,
@@ -4424,7 +4419,7 @@ Dn = function() {
4424
4419
  isPaused: !1
4425
4420
  }), s.size == null && this.setFileState(s.id, {
4426
4421
  size: o.bytesUploaded || i.bytesTotal
4427
- }), w(this, de).call(this);
4422
+ }), b(this, de).call(this);
4428
4423
  }), this.on("preprocess-progress", (s, o) => {
4429
4424
  if (s == null || !this.getFile(s.id)) {
4430
4425
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
@@ -4470,10 +4465,10 @@ Dn = function() {
4470
4465
  }
4471
4466
  });
4472
4467
  }), this.on("restored", () => {
4473
- w(this, de).call(this);
4468
+ b(this, de).call(this);
4474
4469
  }), this.on("dashboard:file-edit-complete", (s) => {
4475
4470
  s && F(this, y, lt).call(this, s);
4476
- }), typeof window < "u" && window.addEventListener && (window.addEventListener("online", w(this, se)), window.addEventListener("offline", w(this, se)), setTimeout(w(this, se), 3e3));
4471
+ }), typeof window < "u" && window.addEventListener && (window.addEventListener("online", b(this, se)), window.addEventListener("offline", b(this, se)), setTimeout(b(this, se), 3e3));
4477
4472
  }, se = new WeakMap(), Ve = new WeakMap(), /**
4478
4473
  * Create an upload for a bunch of files.
4479
4474
  *
@@ -4482,7 +4477,7 @@ $e = function(e, n = {}) {
4482
4477
  const { forceAllowNewUpload: r = !1 } = n, { allowNewUpload: s, currentUploads: o } = this.getState();
4483
4478
  if (!s && !r)
4484
4479
  throw new Error("Cannot create a new upload: already uploading.");
4485
- const i = wa();
4480
+ const i = va();
4486
4481
  return this.emit("upload", i, this.getFilesByIds(e)), this.setState({
4487
4482
  allowNewUpload: this.opts.allowMultipleUploadBatches !== !1 && this.opts.allowMultipleUploads !== !1,
4488
4483
  currentUploads: {
@@ -4494,7 +4489,7 @@ $e = function(e, n = {}) {
4494
4489
  }
4495
4490
  }
4496
4491
  }), i;
4497
- }, On = function(e) {
4492
+ }, Rn = function(e) {
4498
4493
  const { currentUploads: n } = this.getState();
4499
4494
  return n[e];
4500
4495
  }, /**
@@ -4515,9 +4510,9 @@ ht = function(e) {
4515
4510
  if (!r)
4516
4511
  throw new Error("Nonexistent upload");
4517
4512
  const s = [
4518
- ...w(this, he),
4519
- ...w(this, me),
4520
- ...w(this, ue)
4513
+ ...b(this, fe),
4514
+ ...b(this, he),
4515
+ ...b(this, ue)
4521
4516
  ];
4522
4517
  try {
4523
4518
  for (let i = r.step || 0; i < s.length; i++) {
@@ -4552,12 +4547,12 @@ ht = function(e) {
4552
4547
  failed: [],
4553
4548
  uploadID: e
4554
4549
  }), o;
4555
- }, B(qe, "VERSION", Sa.version);
4550
+ }, R(qe, "VERSION", ba.version);
4556
4551
  let at = qe;
4557
- const Ta = {
4552
+ const Fa = {
4558
4553
  key: 0,
4559
4554
  class: "uppy-input-area--caption small text-body-secondary fst-italic"
4560
- }, sl = {
4555
+ }, tl = {
4561
4556
  __name: "UppyInput",
4562
4557
  props: {
4563
4558
  name: { type: String, required: !0 },
@@ -4589,7 +4584,7 @@ const Ta = {
4589
4584
  "restriction-failed"
4590
4585
  ],
4591
4586
  setup(t, { emit: e }) {
4592
- var Z;
4587
+ var Y;
4593
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({
4594
4589
  get() {
4595
4590
  var f;
@@ -4606,7 +4601,7 @@ const Ta = {
4606
4601
  ...n.config,
4607
4602
  restrictions: {
4608
4603
  maxNumberOfFiles: n.multiple ? null : 1,
4609
- ...((Z = n.config) == null ? void 0 : Z.restrictions) || {}
4604
+ ...((Y = n.config) == null ? void 0 : Y.restrictions) || {}
4610
4605
  }
4611
4606
  }), i.value.on("upload", () => {
4612
4607
  u.value = i.value.getFiles().filter((f) => !f.progress.uploadComplete).length, r("upload");
@@ -4614,16 +4609,16 @@ const Ta = {
4614
4609
  r("beforeUpload", f);
4615
4610
  }), i.value.on("upload-success", (f, _) => {
4616
4611
  u.value = Math.max(0, u.value - 1);
4617
- const $ = _.body ?? _;
4612
+ const w = _.body ?? _;
4618
4613
  if (n.multiple) {
4619
4614
  const U = Array.isArray(c.value) ? c.value : [];
4620
- c.value = [...U, $];
4615
+ c.value = [...U, w];
4621
4616
  } else
4622
- c.value = $;
4617
+ c.value = w;
4623
4618
  r("upload-success", f, _);
4624
4619
  }), i.value.on("file-added", (f) => r("file-added", f)), i.value.on("file-removed", (f) => {
4625
- var $;
4626
- const _ = (($ = f.response) == null ? void 0 : $.body) ?? f.response;
4620
+ var w;
4621
+ const _ = ((w = f.response) == null ? void 0 : w.body) ?? f.response;
4627
4622
  n.multiple && Array.isArray(c.value) ? c.value = c.value.filter((U) => JSON.stringify(U) !== JSON.stringify(_)) : c.value = null, _ && !a.value && !l.value && fetch(n.url, {
4628
4623
  method: "DELETE",
4629
4624
  headers: {
@@ -4638,11 +4633,11 @@ const Ta = {
4638
4633
  u.value = 0, d.value.uploading = null, r("complete", f);
4639
4634
  }), i.value.on("error", (f) => {
4640
4635
  r("error", f);
4641
- }), i.value.on("upload-error", (f, _, $) => {
4636
+ }), i.value.on("upload-error", (f, _, w) => {
4642
4637
  var N;
4643
4638
  u.value = Math.max(0, u.value - 1);
4644
- const U = ((N = JSON.parse($.response)) == null ? void 0 : N.message) ?? _;
4645
- v(U), r("upload-error", f, _, $, U);
4639
+ const U = ((N = JSON.parse(w.response)) == null ? void 0 : N.message) ?? _;
4640
+ v(U), r("upload-error", f, _, w, U);
4646
4641
  }), i.value.on("restriction-failed", (f, _) => {
4647
4642
  v(_.message), r("restriction-failed", f, _);
4648
4643
  }), Fe(() => {
@@ -4650,11 +4645,11 @@ const Ta = {
4650
4645
  return (f = d.value) == null ? void 0 : f.wasSuccessful;
4651
4646
  }, (f, _) => {
4652
4647
  f === !0 && _ === !1 && h();
4653
- }), ve(() => {
4654
- var f, _, $, U, N, G, te, P;
4655
- n.useXHR && import("./index-DPnt8V-r.js").then((Y) => {
4656
- const ce = Y.default;
4657
- i.value.use(ce, {
4648
+ }), ye(() => {
4649
+ var f, _, w, U, N, G, te, z;
4650
+ n.useXHR && import("./index--Kk3oGRK.js").then((X) => {
4651
+ const pe = X.default;
4652
+ i.value.use(pe, {
4658
4653
  method: "POST",
4659
4654
  endpoint: n.url,
4660
4655
  headers: {
@@ -4662,9 +4657,9 @@ const Ta = {
4662
4657
  },
4663
4658
  ...n.XHRConfig
4664
4659
  });
4665
- }), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = T(i.value.opts.restrictions)), o && ((G = (N = (U = ($ = i.value) == null ? void 0 : $.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((Y) => {
4666
- var ce, Et, It, Vt;
4667
- Y.innerHTML = (Vt = (It = (Et = (ce = i.value) == null ? void 0 : ce.opts) == null ? void 0 : Et.locale) == null ? void 0 : It.strings) == null ? void 0 : Vt.dropzoneText;
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) => {
4661
+ var pe, It, Ct, Vt;
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;
4668
4663
  }));
4669
4664
  }), mt(() => {
4670
4665
  l.value = !0, i.value && i.value.destroy();
@@ -4681,28 +4676,28 @@ const Ta = {
4681
4676
  _.textContent = f, _.className = "uppy-error", o.value && (o.value.prepend(_), setTimeout(() => _.remove(), 3e3));
4682
4677
  }
4683
4678
  }
4684
- const z = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4685
- function C(f) {
4686
- let _ = 0, $ = parseInt(f, 10) || 0;
4687
- for (; $ >= 1024 && ++_; )
4688
- $ = $ / 1024;
4689
- return $.toFixed($ < 10 && _ > 0 ? 1 : 0) + z[_];
4690
- }
4679
+ const A = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4691
4680
  function T(f) {
4681
+ let _ = 0, w = parseInt(f, 10) || 0;
4682
+ for (; w >= 1024 && ++_; )
4683
+ w = w / 1024;
4684
+ return w.toFixed(w < 10 && _ > 0 ? 1 : 0) + A[_];
4685
+ }
4686
+ function E(f) {
4692
4687
  if (!f) return "";
4693
4688
  const {
4694
4689
  allowedFileTypes: _,
4695
- maxFileSize: $,
4690
+ maxFileSize: w,
4696
4691
  minFileSize: U,
4697
4692
  maxNumberOfFiles: N,
4698
4693
  minNumberOfFiles: G,
4699
4694
  maxTotalFileSize: te
4700
- } = f, P = [];
4695
+ } = f, z = [];
4701
4696
  if (_ && _.length) {
4702
- const Y = _.map((ce) => ce.replace(".", "")).join("، ");
4703
- P.push(`فقط فایل‌های ${Y}`);
4697
+ const X = _.map((pe) => pe.replace(".", "")).join("، ");
4698
+ z.push(`فقط فایل‌های ${X}`);
4704
4699
  }
4705
- return N && N > 1 && P.push(`امکان انتخاب حداکثر ${N} فایل`), G && P.push(`حداقل ${G} فایل نیاز است`), $ && P.push(`با حداکثر حجم ${C($)} برای هر فایل`), U && P.push(`با حداقل حجم ${C(U)} برای هر فایل`), te && P.push(`و مجموع حجم کل حداکثر ${C(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("، ") + " مجاز است." : "";
4706
4701
  }
4707
4702
  return (f, _) => i.value ? (m(), g("div", {
4708
4703
  key: 0,
@@ -4710,49 +4705,49 @@ const Ta = {
4710
4705
  ref_key: "inputEl",
4711
4706
  ref: o
4712
4707
  }, [
4713
- Q(Ke(qi), {
4708
+ Q(Ke(ji), {
4714
4709
  name: "uu" + t.name,
4715
4710
  uppy: i.value
4716
4711
  }, {
4717
4712
  default: ie(() => [
4718
- O(f.$slots, "default", { uppy: i.value }, () => [
4719
- Q(Ke(Gi), { class: "uppy-file-lists" }),
4720
- Q(Ke(Hi), { class: "uppy-drop-zone" })
4713
+ D(f.$slots, "default", { uppy: i.value }, () => [
4714
+ Q(Ke(Li), { class: "uppy-file-lists" }),
4715
+ Q(Ke(xi), { class: "uppy-drop-zone" })
4721
4716
  ])
4722
4717
  ]),
4723
4718
  _: 3
4724
4719
  }, 8, ["name", "uppy"]),
4725
- s.value ? (m(), g("div", Ta, H(s.value), 1)) : j("", !0)
4726
- ], 512)) : j("", !0);
4720
+ s.value ? (m(), g("div", Fa, H(s.value), 1)) : B("", !0)
4721
+ ], 512)) : B("", !0);
4727
4722
  }
4728
4723
  };
4729
4724
  export {
4730
- Aa as A,
4731
- Na as C,
4732
- xa as E,
4733
- La as F,
4734
- bs as G,
4735
- Ga as L,
4736
- Wa as M,
4737
- Ba as P,
4738
- Os as Q,
4739
- rl as R,
4740
- nl as S,
4741
- Qi as T,
4742
- tl as _,
4743
- Da as a,
4744
- Oa as b,
4745
- Ra as c,
4746
- ja as d,
4747
- sl as e,
4748
- qa as f,
4749
- Za as g,
4750
- Ya as h,
4751
- Ja as i,
4752
- Ka as j,
4753
- Xa as k,
4754
- Ha as l,
4755
- Qa as m,
4756
- el as n,
4725
+ Ua as A,
4726
+ Aa as C,
4727
+ Ba as E,
4728
+ Ra as F,
4729
+ ys as G,
4730
+ La as L,
4731
+ qa as M,
4732
+ Oa as P,
4733
+ Ps as Q,
4734
+ el as R,
4735
+ Qa as S,
4736
+ Zi as T,
4737
+ Ja as _,
4738
+ za as a,
4739
+ Pa as b,
4740
+ Na as c,
4741
+ Da as d,
4742
+ tl as e,
4743
+ ja as f,
4744
+ Ha as g,
4745
+ Ga as h,
4746
+ Xa as i,
4747
+ Ya as j,
4748
+ Wa as k,
4749
+ xa as l,
4750
+ Za as m,
4751
+ Ka as n,
4757
4752
  Ge as o
4758
4753
  };