inertia-bootstrap-forms 2.1.12 → 2.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,9 +3,9 @@ var Mt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var jn = (t, e, n) => e in t ? Bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var R = (t, e, n) => jn(t, typeof e != "symbol" ? e + "" : e, n), 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), Ue = (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 h, renderSlot as O, normalizeClass as L, ref as G, onMounted as ye, onBeforeUnmount as ht, createElementVNode as $, defineComponent as E, inject as T, computed as q, resolveComponent as j, createBlock as ee, withCtx as ie, withDirectives as te, createVNode as Q, vModelText as Me, createTextVNode as gt, toDisplayString as W, vModelDynamic as yt, defineAsyncComponent as Ln, createCommentVNode as B, mergeProps as en, Fragment as ve, renderList as _e, normalizeStyle as vt, toRef as xn, reactive as tn, withModifiers as nn, resolveDirective as qn, vModelSelect as Hn, markRaw as Gn, provide as Wn, watch as Fe, h as rn, shallowRef as Yn, unref as Ke } from "vue";
6
+ var B = (t, e, n) => jn(t, typeof e != "symbol" ? e + "" : e, n), Ke = (t, e, n) => e.has(t) || Mt("Cannot " + n);
7
+ var w = (t, e, n) => (Ke(t, e, "read from private field"), n ? n.call(t) : e.get(t)), q = (t, e, n) => e.has(t) ? Mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Ue = (t, e, n, r) => (Ke(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), F = (t, e, n) => (Ke(t, e, "access private method"), n);
8
+ import { createElementBlock as g, openBlock as m, renderSlot as O, normalizeClass as R, ref as G, onMounted as ye, onBeforeUnmount as gt, createElementVNode as b, defineComponent as E, inject as T, computed as x, resolveComponent as L, createBlock as ee, withCtx as ie, withDirectives as te, createVNode as Q, vModelText as Me, createTextVNode as yt, toDisplayString as W, vModelDynamic as Ge, defineAsyncComponent as Ln, createCommentVNode as j, mergeProps as en, Fragment as ve, renderList as _e, normalizeStyle as vt, toRef as xn, reactive as tn, withModifiers as nn, resolveDirective as qn, vModelSelect as Hn, markRaw as Gn, provide as Wn, watch as Fe, h as rn, shallowRef as Yn, unref as Je } from "vue";
9
9
  import Xn from "@tinymce/tinymce-vue";
10
10
  import { useForm as Zn } from "@inertiajs/vue3";
11
11
  import { LMarker as Kn, LTileLayer as Jn, LMap as Qn } from "@vue-leaflet/vue-leaflet";
@@ -15,7 +15,7 @@ function nr(t, e, n = {}) {
15
15
  let r = null;
16
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
- }), ht(() => {
18
+ }), gt(() => {
19
19
  typeof document < "u" && document.removeEventListener("inertia:start", o), s();
20
20
  });
21
21
  const s = function() {
@@ -36,13 +36,13 @@ const be = (t, e) => {
36
36
  return n;
37
37
  }, rr = {}, sr = { class: "dropdown" };
38
38
  function ir(t, e, n, r, s, o) {
39
- return h(), g("div", sr, [
39
+ return m(), g("div", sr, [
40
40
  O(t.$slots, "default")
41
41
  ]);
42
42
  }
43
43
  const or = /* @__PURE__ */ be(rr, [["render", ir]]), ar = {}, lr = { class: "dropdown-menu" };
44
44
  function ur(t, e, n, r, s, o) {
45
- return h(), g("div", lr, [
45
+ return m(), g("div", lr, [
46
46
  O(t.$slots, "default")
47
47
  ]);
48
48
  }
@@ -57,7 +57,7 @@ const dr = /* @__PURE__ */ be(ar, [["render", ur]]), pr = {
57
57
  }, hide: () => {
58
58
  var s;
59
59
  return (s = r()) == null ? void 0 : s.hide();
60
- } }), (s, o) => (h(), g("button", {
60
+ } }), (s, o) => (m(), g("button", {
61
61
  class: "dropdown-toggle",
62
62
  type: "button",
63
63
  ref_key: "el",
@@ -70,13 +70,13 @@ const dr = /* @__PURE__ */ be(ar, [["render", ur]]), pr = {
70
70
  }
71
71
  }, cr = {}, fr = { class: "input-group" };
72
72
  function mr(t, e, n, r, s, o) {
73
- return h(), g("div", fr, [
73
+ return m(), g("div", fr, [
74
74
  O(t.$slots, "default")
75
75
  ]);
76
76
  }
77
77
  const _t = /* @__PURE__ */ be(cr, [["render", mr]]), hr = {}, gr = { class: "input-group-text" };
78
78
  function yr(t, e, n, r, s, o) {
79
- return h(), g("div", gr, [
79
+ return m(), g("div", gr, [
80
80
  O(t.$slots, "default")
81
81
  ]);
82
82
  }
@@ -95,11 +95,11 @@ const bt = /* @__PURE__ */ be(hr, [["render", yr]]), vr = {
95
95
  }
96
96
  };
97
97
  function _r(t, e, n, r, s, o) {
98
- return h(), g("i", {
99
- class: L(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
98
+ return m(), g("i", {
99
+ class: R(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
100
100
  role: "status"
101
101
  }, e[0] || (e[0] = [
102
- $("span", { class: "visually-hidden" }, "Loading...", -1)
102
+ b("span", { class: "visually-hidden" }, "Loading...", -1)
103
103
  ]), 2);
104
104
  }
105
105
  const br = /* @__PURE__ */ be(vr, [["render", _r]]), wr = {
@@ -111,13 +111,13 @@ const br = /* @__PURE__ */ be(vr, [["render", _r]]), wr = {
111
111
  }
112
112
  };
113
113
  function $r(t, e, n, r, s, o) {
114
- return h(), g("div", {
115
- class: L(["alert", "alert-" + n.type])
114
+ return m(), g("div", {
115
+ class: R(["alert", "alert-" + n.type])
116
116
  }, [
117
117
  O(t.$slots, "default")
118
118
  ], 2);
119
119
  }
120
- const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
120
+ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), V = (t, e) => {
121
121
  const n = t.__vccOpts || t;
122
122
  for (const [r, s] of e)
123
123
  n[r] = s;
@@ -132,6 +132,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
132
132
  required: Boolean,
133
133
  disabled: Boolean,
134
134
  readonly: Boolean,
135
+ inputClass: String,
135
136
  placeholder: {
136
137
  type: String,
137
138
  default: "عدد را وارد کنید"
@@ -148,7 +149,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
148
149
  return l;
149
150
  }
150
151
  }), n = T("group", {});
151
- const r = q({
152
+ const r = x({
152
153
  get() {
153
154
  var l;
154
155
  return n.value && e.value[n.value.name] ? (l = n.value) == null ? void 0 : l.getData(t.name) : e.value[t.name];
@@ -164,7 +165,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
164
165
  return d !== -1 ? d : o.indexOf(u);
165
166
  });
166
167
  }
167
- const a = q({
168
+ const a = x({
168
169
  get() {
169
170
  const l = r.value;
170
171
  return l == null || l === "" ? "" : Number(l).toLocaleString("en-US");
@@ -178,13 +179,13 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), M = (t, e) => {
178
179
  }
179
180
  }), Tr = ["name", "disabled", "readonly", "placeholder"];
180
181
  function kr(t, e, n, r, s, o) {
181
- const i = j("InputGroupText"), a = j("InputGroup");
182
- return h(), ee(a, null, {
182
+ const i = L("InputGroupText"), a = L("InputGroup");
183
+ return m(), ee(a, null, {
183
184
  default: ie(() => [
184
- te($("input", {
185
+ te(b("input", {
185
186
  name: t.name,
186
187
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.displayValue = l),
187
- class: L([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum"]),
188
+ class: R(["form-control fanum", t.inputClass, { "is-invalid": t.form.errors[t.name] }]),
188
189
  disabled: t.disabled || t.form.processing,
189
190
  readonly: t.readonly,
190
191
  placeholder: t.placeholder,
@@ -194,7 +195,7 @@ function kr(t, e, n, r, s, o) {
194
195
  ]),
195
196
  Q(i, { class: "fanum" }, {
196
197
  default: ie(() => [
197
- gt(W(t.unit), 1)
198
+ yt(W(t.unit), 1)
198
199
  ]),
199
200
  _: 1
200
201
  }),
@@ -203,7 +204,7 @@ function kr(t, e, n, r, s, o) {
203
204
  _: 3
204
205
  });
205
206
  }
206
- const Da = /* @__PURE__ */ M(Fr, [["render", kr]]), Ir = E({
207
+ const ja = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
207
208
  props: {
208
209
  name: {
209
210
  type: String,
@@ -222,7 +223,7 @@ const Da = /* @__PURE__ */ M(Fr, [["render", kr]]), Ir = E({
222
223
  return s;
223
224
  }
224
225
  }), n = T("group", {});
225
- return { modelValue: q({
226
+ return { modelValue: x({
226
227
  get() {
227
228
  var s;
228
229
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -236,19 +237,19 @@ const Da = /* @__PURE__ */ M(Fr, [["render", kr]]), Ir = E({
236
237
  }), Er = ["name", "id", "disabled"];
237
238
  function Cr(t, e, n, r, s, o) {
238
239
  var i, a;
239
- return te((h(), g("input", {
240
+ return te((m(), g("input", {
240
241
  name: t.name,
241
242
  id: t.inputID,
242
243
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
243
- class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
244
+ class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
244
245
  disabled: (a = t.form) == null ? void 0 : a.processing,
245
246
  type: "text"
246
247
  }, null, 10, Er)), [
247
248
  [Me, t.modelValue]
248
249
  ]);
249
250
  }
250
- const Ge = /* @__PURE__ */ M(Ir, [["render", Cr]]), Vr = E({
251
- components: { TextInput: Ge },
251
+ const We = /* @__PURE__ */ V(Ir, [["render", Cr]]), Vr = E({
252
+ components: { TextInput: We },
252
253
  props: {
253
254
  name: {
254
255
  type: String,
@@ -298,35 +299,35 @@ const Ge = /* @__PURE__ */ M(Ir, [["render", Cr]]), Vr = E({
298
299
  }), Mr = { class: "input-group captcha" }, Ur = ["src"], Ar = {
299
300
  key: 1,
300
301
  class: "placeholder-wave captcha-holder"
301
- }, Nr = ["disabled"];
302
- function Pr(t, e, n, r, s, o) {
303
- const i = j("TextInput");
304
- return h(), g("div", Mr, [
302
+ }, Dr = ["disabled"];
303
+ function Nr(t, e, n, r, s, o) {
304
+ const i = L("TextInput");
305
+ return m(), g("div", Mr, [
305
306
  Q(i, {
306
307
  name: t.name,
307
308
  class: "text-start",
308
309
  type: "tel"
309
310
  }, null, 8, ["name"]),
310
- t.loading ? (h(), g("div", Ar, e[2] || (e[2] = [
311
- $("div", { class: "placeholder w-100 h-100" }, null, -1)
312
- ]))) : (h(), g("img", {
311
+ t.loading ? (m(), g("div", Ar, e[2] || (e[2] = [
312
+ b("div", { class: "placeholder w-100 h-100" }, null, -1)
313
+ ]))) : (m(), g("img", {
313
314
  key: 0,
314
315
  src: t.src,
315
316
  alt: "captcha",
316
317
  onClick: e[0] || (e[0] = (...a) => t.getSrc && t.getSrc(...a)),
317
318
  class: "captcha-holder"
318
319
  }, null, 8, Ur)),
319
- $("button", {
320
+ b("button", {
320
321
  type: "button",
321
322
  disabled: t.form.processing || t.loading,
322
323
  onClick: e[1] || (e[1] = (...a) => t.getSrc && t.getSrc(...a)),
323
324
  class: "btn btn-secondary border-0"
324
325
  }, e[3] || (e[3] = [
325
- $("i", { class: "fal fa-sync-alt align-middle" }, null, -1)
326
- ]), 8, Nr)
326
+ b("i", { class: "fal fa-sync-alt align-middle" }, null, -1)
327
+ ]), 8, Dr)
327
328
  ]);
328
329
  }
329
- const za = /* @__PURE__ */ M(Vr, [["render", Pr]]), Dr = E({
330
+ const La = /* @__PURE__ */ V(Vr, [["render", Nr]]), Pr = E({
330
331
  emits: ["change"],
331
332
  props: {
332
333
  name: {
@@ -366,27 +367,27 @@ const za = /* @__PURE__ */ M(Vr, [["render", Pr]]), Dr = E({
366
367
  }), zr = ["for"], Or = ["name", "id", "disabled", "type", "value"];
367
368
  function Rr(t, e, n, r, s, o) {
368
369
  var i, a;
369
- return h(), g("label", {
370
- class: L(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
370
+ return m(), g("label", {
371
+ class: R(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
371
372
  for: t.form.getID(t.name) + (t.id || t.value)
372
373
  }, [
373
- te($("input", {
374
+ te(b("input", {
374
375
  name: t.name,
375
376
  id: t.form.getID(t.name) + (t.id || t.value),
376
377
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.form[t.name] = l),
377
- class: L([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
378
+ class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
378
379
  disabled: (a = t.form) == null ? void 0 : a.processing,
379
380
  type: t.type,
380
381
  value: t.value,
381
382
  onChange: e[1] || (e[1] = (...l) => t.change && t.change(...l)),
382
383
  autocomplete: "off"
383
384
  }, null, 42, Or), [
384
- [yt, t.form[t.name]]
385
+ [Ge, t.form[t.name]]
385
386
  ]),
386
387
  O(t.$slots, "default")
387
388
  ], 10, zr);
388
389
  }
389
- const Oa = /* @__PURE__ */ M(Dr, [["render", Rr]]), Br = E({
390
+ const xa = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
390
391
  props: {
391
392
  name: {
392
393
  type: String,
@@ -420,7 +421,7 @@ const Oa = /* @__PURE__ */ M(Dr, [["render", Rr]]), Br = E({
420
421
  return s;
421
422
  }
422
423
  }), n = T("group", {});
423
- return { modelValue: q({
424
+ return { modelValue: x({
424
425
  get() {
425
426
  var s;
426
427
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -434,20 +435,20 @@ const Oa = /* @__PURE__ */ M(Dr, [["render", Rr]]), Br = E({
434
435
  }), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"], xr = ["for"];
435
436
  function qr(t, e, n, r, s, o) {
436
437
  var i, a;
437
- return h(), g("div", jr, [
438
- te($("input", {
438
+ return m(), g("div", jr, [
439
+ te(b("input", {
439
440
  name: t.name,
440
441
  id: t.inputID,
441
442
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
442
- class: L([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
443
+ class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
443
444
  disabled: (a = t.form) == null ? void 0 : a.processing,
444
445
  type: t.type,
445
446
  value: t.value,
446
447
  onChange: e[1] || (e[1] = (l) => t.$emit("change", l))
447
448
  }, null, 42, Lr), [
448
- [yt, t.modelValue]
449
+ [Ge, t.modelValue]
449
450
  ]),
450
- $("label", {
451
+ b("label", {
451
452
  class: "form-check-label",
452
453
  for: t.inputID
453
454
  }, [
@@ -455,7 +456,7 @@ function qr(t, e, n, r, s, o) {
455
456
  ], 8, xr)
456
457
  ]);
457
458
  }
458
- const Ra = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = E({
459
+ const qa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
459
460
  props: {
460
461
  name: {
461
462
  type: String,
@@ -496,7 +497,7 @@ const Ra = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = E({
496
497
  return s;
497
498
  }
498
499
  }), n = T("group", {});
499
- return { modelValue: q({
500
+ return { modelValue: x({
500
501
  get() {
501
502
  var s;
502
503
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -509,32 +510,101 @@ const Ra = /* @__PURE__ */ M(Br, [["render", qr]]), Hr = E({
509
510
  }
510
511
  }), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value"];
511
512
  function Yr(t, e, n, r, s, o) {
512
- var i, a, l, u, d;
513
- return h(), g("label", {
514
- class: L(["form-check-toggle", { "form-check-toggle--active": (t.selectedValue || []).includes(t.value), "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }]),
513
+ var i, a, l;
514
+ return m(), g("label", {
515
+ class: R(["form-check-toggle", { "form-check-toggle--active": (t.selectedValue || []).includes(t.value), "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }]),
515
516
  for: t.inputID
516
517
  }, [
517
- te($("input", {
518
- name: t.name + (t.group ? "_" + ((a = t.group) == null ? void 0 : a.name) + "-" + ((l = t.group) == null ? void 0 : l.groupID) : ""),
518
+ te(b("input", {
519
+ name: t.name,
519
520
  id: t.inputID,
520
- "onUpdate:modelValue": e[0] || (e[0] = (p) => t.modelValue = p),
521
- class: L([{ "is-invalid": (u = t.form) == null ? void 0 : u.errors[t.name], "form-check-toggle--input-hide": t.hideInput }, "form-check-toggle--input form-check-input"]),
522
- disabled: (d = t.form) == null ? void 0 : d.processing,
521
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => t.modelValue = u),
522
+ class: R([{ "is-invalid": (a = t.form) == null ? void 0 : a.errors[t.name], "form-check-toggle--input-hide": t.hideInput }, "form-check-toggle--input form-check-input"]),
523
+ disabled: (l = t.form) == null ? void 0 : l.processing,
523
524
  type: t.type,
524
525
  value: t.value,
525
- onChange: e[1] || (e[1] = (p) => t.$emit("change", p))
526
+ onChange: e[1] || (e[1] = (u) => t.$emit("change", u))
526
527
  }, null, 42, Wr), [
527
- [yt, t.modelValue]
528
+ [Ge, t.modelValue]
528
529
  ]),
529
530
  O(t.$slots, "default")
530
531
  ], 10, Gr);
531
532
  }
532
- const Ba = /* @__PURE__ */ M(Hr, [["render", Yr]]), Xr = Ln(
533
+ const Ha = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
534
+ props: {
535
+ name: {
536
+ type: String,
537
+ required: !0
538
+ },
539
+ id: {
540
+ type: String,
541
+ default: "",
542
+ required: !1
543
+ },
544
+ value: {
545
+ type: [String, Number],
546
+ default: null,
547
+ required: !1
548
+ },
549
+ type: {
550
+ type: String,
551
+ default: "checkbox",
552
+ required: !1
553
+ }
554
+ },
555
+ computed: {
556
+ inputID() {
557
+ return this.form.getID(this);
558
+ }
559
+ },
560
+ setup(t) {
561
+ let e = T("form", {
562
+ errors: {},
563
+ getID(s) {
564
+ return s;
565
+ }
566
+ }), n = T("group", {});
567
+ return { modelValue: x({
568
+ get() {
569
+ var s;
570
+ return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
571
+ },
572
+ set(s) {
573
+ var o;
574
+ (o = n == null ? void 0 : n.value) != null && o.name ? n.value.setData(t.name, s) : e.value[t.name] = s;
575
+ }
576
+ }), form: e, group: n };
577
+ }
578
+ }), Zr = { class: "form-check form-switch" }, Kr = ["name", "id", "disabled", "type", "value"], Jr = ["for"];
579
+ function Qr(t, e, n, r, s, o) {
580
+ var i, a;
581
+ return m(), g("div", Zr, [
582
+ te(b("input", {
583
+ name: t.name,
584
+ id: t.inputID,
585
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
586
+ class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
587
+ disabled: (a = t.form) == null ? void 0 : a.processing,
588
+ type: t.type,
589
+ value: t.value,
590
+ onChange: e[1] || (e[1] = (l) => t.$emit("change", l))
591
+ }, null, 42, Kr), [
592
+ [Ge, t.modelValue]
593
+ ]),
594
+ b("label", {
595
+ class: "form-check-label",
596
+ for: t.inputID
597
+ }, [
598
+ O(t.$slots, "default")
599
+ ], 8, Jr)
600
+ ]);
601
+ }
602
+ const Ga = /* @__PURE__ */ V(Xr, [["render", Qr]]), es = Ln(
533
603
  () => import("vue3-persian-datetime-picker")
534
604
  );
535
605
  let Ae;
536
- const Zr = E({
537
- components: { Vue3PersianDatetimePicker: Xr },
606
+ const ts = E({
607
+ components: { Vue3PersianDatetimePicker: es },
538
608
  emits: ["update:modelValue", "change"],
539
609
  props: {
540
610
  name: {
@@ -577,7 +647,7 @@ const Zr = E({
577
647
  return s;
578
648
  }
579
649
  }), n = T("group", {});
580
- return { modelValue: q({
650
+ return { modelValue: x({
581
651
  get() {
582
652
  var s;
583
653
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -613,10 +683,10 @@ const Zr = E({
613
683
  return {};
614
684
  }
615
685
  });
616
- function Kr(t, e, n, r, s, o) {
686
+ function ns(t, e, n, r, s, o) {
617
687
  var a;
618
- const i = j("Vue3PersianDatetimePicker");
619
- return t.isSsr ? B("", !0) : (h(), ee(i, en({
688
+ const i = L("Vue3PersianDatetimePicker");
689
+ return t.isSsr ? j("", !0) : (m(), ee(i, en({
620
690
  key: 0,
621
691
  modelValue: t.modelValue,
622
692
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
@@ -631,7 +701,7 @@ function Kr(t, e, n, r, s, o) {
631
701
  "input-class": "form-control fanum"
632
702
  }, t.$props), null, 16, ["modelValue", "type", "disabled", "inputFormat"]));
633
703
  }
634
- const ja = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = E({
704
+ const Wa = /* @__PURE__ */ V(ts, [["render", ns]]), rs = E({
635
705
  emits: ["update:modelValue", "setContent"],
636
706
  components: { Editor: Xn },
637
707
  props: {
@@ -667,7 +737,7 @@ const ja = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = E({
667
737
  return u;
668
738
  }
669
739
  }), a = T("group", {});
670
- return { modelValue: q({
740
+ return { modelValue: x({
671
741
  get() {
672
742
  var u;
673
743
  return a.value && i.value[a.value.name] ? (u = a.value) == null ? void 0 : u.getData(t.name) : i.value[t.name];
@@ -679,9 +749,9 @@ const ja = /* @__PURE__ */ M(Zr, [["render", Kr]]), Jr = E({
679
749
  }), form: i, group: a, editorRef: r, handleInit: o };
680
750
  }
681
751
  });
682
- function Qr(t, e, n, r, s, o) {
683
- const i = j("Editor");
684
- return h(), ee(i, {
752
+ function ss(t, e, n, r, s, o) {
753
+ const i = L("Editor");
754
+ return m(), ee(i, {
685
755
  ref: "editorRef",
686
756
  onInit: t.handleInit,
687
757
  modelValue: t.modelValue,
@@ -694,7 +764,7 @@ function Qr(t, e, n, r, s, o) {
694
764
  }
695
765
  }, null, 8, ["onInit", "modelValue", "init"]);
696
766
  }
697
- const La = /* @__PURE__ */ M(Jr, [["render", Qr]]), es = E({
767
+ const Ya = /* @__PURE__ */ V(rs, [["render", ss]]), is = E({
698
768
  props: {
699
769
  modelValue: "",
700
770
  name: {
@@ -777,83 +847,83 @@ const La = /* @__PURE__ */ M(Jr, [["render", Qr]]), es = E({
777
847
  files: []
778
848
  };
779
849
  }
780
- }), ts = { class: "file-input-uploader" }, ns = ["name", "id", "disabled", "multiple"], rs = { class: "file-input-uploader--list" }, ss = ["id"], is = {
850
+ }), os = { class: "file-input-uploader" }, as = ["name", "id", "disabled", "multiple"], ls = { class: "file-input-uploader--list" }, us = ["id"], ds = {
781
851
  key: 0,
782
852
  class: "file-input-uploader--progress"
783
- }, os = {
853
+ }, ps = {
784
854
  key: 1,
785
855
  class: "file-input-uploader--list-error"
786
- }, as = {
856
+ }, cs = {
787
857
  class: "file-input-uploader--list-item--size",
788
858
  dir: "ltr"
789
- }, ls = { class: "file-input-uploader--list-item--actions" }, us = ["onClick"], ds = ["onClick"];
790
- function ps(t, e, n, r, s, o) {
859
+ }, fs = { class: "file-input-uploader--list-item--actions" }, ms = ["onClick"], hs = ["onClick"];
860
+ function gs(t, e, n, r, s, o) {
791
861
  var i, a;
792
- return h(), g("div", ts, [
793
- $("input", {
862
+ return m(), g("div", os, [
863
+ b("input", {
794
864
  ref: "input",
795
865
  name: t.name,
796
866
  id: t.inputID,
797
- class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
867
+ class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
798
868
  disabled: (a = t.form) == null ? void 0 : a.processing,
799
869
  type: "file",
800
870
  multiple: t.multiple,
801
871
  onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
802
- }, null, 42, ns),
803
- $("div", rs, [
804
- (h(!0), g(ve, null, _e(t.allFiles, (l) => (h(), g("div", {
872
+ }, null, 42, as),
873
+ b("div", ls, [
874
+ (m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
805
875
  id: "file-" + l.id,
806
876
  class: "file-input-uploader--list-item"
807
877
  }, [
808
- l.percent && l.percent < 100 ? (h(), g("div", is, [
809
- $("div", {
878
+ l.percent && l.percent < 100 ? (m(), g("div", ds, [
879
+ b("div", {
810
880
  style: vt({ width: l.percent + "%" })
811
881
  }, null, 4)
812
- ])) : B("", !0),
813
- $("div", null, W(l.file.name), 1),
814
- l.error ? (h(), g("div", os, W(l.error), 1)) : B("", !0),
815
- $("div", as, W(Math.round(l.file.size / 1024)) + "Kb", 1),
816
- $("div", ls, [
817
- l.error ? (h(), g("button", {
882
+ ])) : j("", !0),
883
+ b("div", null, W(l.file.name), 1),
884
+ l.error ? (m(), g("div", ps, W(l.error), 1)) : j("", !0),
885
+ b("div", cs, W(Math.round(l.file.size / 1024)) + "Kb", 1),
886
+ b("div", fs, [
887
+ l.error ? (m(), g("button", {
818
888
  key: 0,
819
889
  onClick: (u) => t.uploadFile(l),
820
890
  type: "button",
821
891
  class: "file-input-uploader--list-item--btn"
822
892
  }, e[1] || (e[1] = [
823
- $("svg", {
893
+ b("svg", {
824
894
  fill: "#000000",
825
895
  width: "800px",
826
896
  height: "800px",
827
897
  viewBox: "0 0 24 24",
828
898
  xmlns: "http://www.w3.org/2000/svg"
829
899
  }, [
830
- $("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" })
900
+ 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" })
831
901
  ], -1)
832
- ]), 8, us)) : B("", !0),
833
- l.path || l.error ? (h(), g("button", {
902
+ ]), 8, ms)) : j("", !0),
903
+ l.path || l.error ? (m(), g("button", {
834
904
  key: 1,
835
905
  onClick: (u) => t.deleteFile(l),
836
906
  type: "button",
837
907
  class: "file-input-uploader--list-item--btn"
838
908
  }, e[2] || (e[2] = [
839
- $("svg", {
909
+ b("svg", {
840
910
  fill: "#000000",
841
911
  width: "800px",
842
912
  height: "800px",
843
913
  viewBox: "0 0 24 24",
844
914
  xmlns: "http://www.w3.org/2000/svg"
845
915
  }, [
846
- $("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" })
916
+ 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" })
847
917
  ], -1)
848
- ]), 8, ds)) : B("", !0)
918
+ ]), 8, hs)) : j("", !0)
849
919
  ])
850
- ], 8, ss))), 256))
920
+ ], 8, us))), 256))
851
921
  ])
852
922
  ]);
853
923
  }
854
- const xa = /* @__PURE__ */ M(es, [["render", ps]]), cs = E({
924
+ const Xa = /* @__PURE__ */ V(is, [["render", gs]]), ys = E({
855
925
  components: {
856
- TextInput: Ge
926
+ TextInput: We
857
927
  },
858
928
  props: {
859
929
  FileInput: {
@@ -863,15 +933,15 @@ const xa = /* @__PURE__ */ M(es, [["render", ps]]), cs = E({
863
933
  }
864
934
  }
865
935
  });
866
- function fs(t, e, n, r, s, o) {
867
- const i = j("TextInput");
868
- return h(), ee(i, {
936
+ function vs(t, e, n, r, s, o) {
937
+ const i = L("TextInput");
938
+ return m(), ee(i, {
869
939
  name: t.name,
870
940
  placeholder: "ایمیل خود را وارد کنید",
871
941
  type: "email"
872
942
  }, null, 8, ["name"]);
873
943
  }
874
- const qa = /* @__PURE__ */ M(cs, [["render", fs]]), ms = E({
944
+ const Za = /* @__PURE__ */ V(ys, [["render", vs]]), _s = E({
875
945
  props: {
876
946
  name: {
877
947
  type: String,
@@ -888,7 +958,7 @@ const qa = /* @__PURE__ */ M(cs, [["render", fs]]), ms = E({
888
958
  },
889
959
  provide() {
890
960
  return {
891
- group: q(() => this)
961
+ group: x(() => this)
892
962
  };
893
963
  },
894
964
  mounted() {
@@ -912,18 +982,18 @@ const qa = /* @__PURE__ */ M(cs, [["render", fs]]), ms = E({
912
982
  groupID: "0"
913
983
  };
914
984
  }
915
- }), hs = ["data-name", "data-group-id"];
916
- function gs(t, e, n, r, s, o) {
917
- return h(), g("div", {
985
+ }), bs = ["data-name", "data-group-id"];
986
+ function ws(t, e, n, r, s, o) {
987
+ return m(), g("div", {
918
988
  class: "form-control-group",
919
989
  "data-name": t.name,
920
990
  "data-group-id": t.groupID,
921
991
  ref: "groupEl"
922
992
  }, [
923
993
  O(t.$slots, "default")
924
- ], 8, hs);
994
+ ], 8, bs);
925
995
  }
926
- const ys = /* @__PURE__ */ M(ms, [["render", gs]]), vs = E({
996
+ const $s = /* @__PURE__ */ V(_s, [["render", ws]]), Ss = E({
927
997
  components: { Alert: Sr },
928
998
  emits: ["submit", "reset", "onStart", "onFinish", "onSuccess", "onError", "change"],
929
999
  props: {
@@ -979,7 +1049,7 @@ const ys = /* @__PURE__ */ M(ms, [["render", gs]]), vs = E({
979
1049
  },
980
1050
  provide() {
981
1051
  return {
982
- form: q(() => this.form)
1052
+ form: x(() => this.form)
983
1053
  };
984
1054
  },
985
1055
  watch: {
@@ -1061,10 +1131,10 @@ const ys = /* @__PURE__ */ M(ms, [["render", gs]]), vs = E({
1061
1131
  }
1062
1132
  },
1063
1133
  expose: ["submit", "reset"]
1064
- }), _s = ["action", "method", "data-autotab", "novalidate"], bs = { class: "list-unstyled p-0 m-0 fanum" }, ws = ["innerHTML"];
1065
- function $s(t, e, n, r, s, o) {
1066
- const i = j("Alert");
1067
- return h(), g("form", {
1134
+ }), Fs = ["action", "method", "data-autotab", "novalidate"], Ts = { class: "list-unstyled p-0 m-0 fanum" }, ks = ["innerHTML"];
1135
+ function Is(t, e, n, r, s, o) {
1136
+ const i = L("Alert");
1137
+ return m(), g("form", {
1068
1138
  ref: "formEl",
1069
1139
  action: t.url,
1070
1140
  method: t.method,
@@ -1074,36 +1144,36 @@ function $s(t, e, n, r, s, o) {
1074
1144
  }),
1075
1145
  onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
1076
1146
  onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
1077
- class: L({ "form-processing": t.form.processing }),
1147
+ class: R({ "form-processing": t.form.processing }),
1078
1148
  novalidate: !!Object.values(t.form.errors).length
1079
1149
  }, [
1080
1150
  O(t.$slots, "errors", {}, () => [
1081
- t.form.hasErrors ? (h(), ee(i, {
1151
+ t.form.hasErrors ? (m(), ee(i, {
1082
1152
  key: 0,
1083
1153
  type: "danger"
1084
1154
  }, {
1085
1155
  default: ie(() => [
1086
- $("ul", bs, [
1087
- (h(!0), g(ve, null, _e(t.form.errors, (a) => (h(), g("li", { innerHTML: a }, null, 8, ws))), 256))
1156
+ b("ul", Ts, [
1157
+ (m(!0), g(ve, null, _e(t.form.errors, (a) => (m(), g("li", { innerHTML: a }, null, 8, ks))), 256))
1088
1158
  ])
1089
1159
  ]),
1090
1160
  _: 1
1091
- })) : B("", !0)
1161
+ })) : j("", !0)
1092
1162
  ]),
1093
1163
  O(t.$slots, "message", {}, () => [
1094
- t.form.hasMessage && t.form.successMessage ? (h(), ee(i, {
1164
+ t.form.hasMessage && t.form.successMessage ? (m(), ee(i, {
1095
1165
  key: 0,
1096
1166
  type: "success",
1097
1167
  innerHTML: t.form.successMessage
1098
- }, null, 8, ["innerHTML"])) : B("", !0)
1168
+ }, null, 8, ["innerHTML"])) : j("", !0)
1099
1169
  ]),
1100
1170
  O(t.$slots, "default", {
1101
1171
  form: t.form,
1102
1172
  submit: t.submit
1103
1173
  })
1104
- ], 42, _s);
1174
+ ], 42, Fs);
1105
1175
  }
1106
- const Ha = /* @__PURE__ */ M(vs, [["render", $s]]), Ss = E({
1176
+ const Ka = /* @__PURE__ */ V(Ss, [["render", Is]]), Es = E({
1107
1177
  props: {
1108
1178
  default: !1,
1109
1179
  required: !1
@@ -1119,20 +1189,20 @@ const Ha = /* @__PURE__ */ M(vs, [["render", $s]]), Ss = E({
1119
1189
  forId: null
1120
1190
  };
1121
1191
  }
1122
- }), Fs = ["for"], Ts = {
1192
+ }), Cs = ["for"], Vs = {
1123
1193
  key: 0,
1124
1194
  class: "text-danger"
1125
1195
  };
1126
- function ks(t, e, n, r, s, o) {
1127
- return h(), g("label", {
1196
+ function Ms(t, e, n, r, s, o) {
1197
+ return m(), g("label", {
1128
1198
  class: "mb-2 d-block",
1129
1199
  for: t.forId
1130
1200
  }, [
1131
1201
  O(t.$slots, "default", {}, void 0, !0),
1132
- t.required ? (h(), g("span", Ts, "*")) : B("", !0)
1133
- ], 8, Fs);
1202
+ t.required ? (m(), g("span", Vs, "*")) : j("", !0)
1203
+ ], 8, Cs);
1134
1204
  }
1135
- const Ga = /* @__PURE__ */ M(Ss, [["render", ks], ["__scopeId", "data-v-1ee6dec3"]]), Is = E({
1205
+ const Ja = /* @__PURE__ */ V(Es, [["render", Ms], ["__scopeId", "data-v-1ee6dec3"]]), Us = E({
1136
1206
  name: "LocationInput",
1137
1207
  components: {
1138
1208
  LMap: Qn,
@@ -1189,11 +1259,11 @@ const Ga = /* @__PURE__ */ M(Ss, [["render", ks], ["__scopeId", "data-v-1ee6dec3
1189
1259
  };
1190
1260
  }
1191
1261
  });
1192
- function Es(t, e, n, r, s, o) {
1262
+ function As(t, e, n, r, s, o) {
1193
1263
  var u;
1194
- const i = j("l-tile-layer"), a = j("LMarker"), l = j("l-map");
1195
- return h(), g("div", {
1196
- 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 }])
1264
+ const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
1265
+ return m(), g("div", {
1266
+ 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 }])
1197
1267
  }, [
1198
1268
  Q(l, {
1199
1269
  ref: "map",
@@ -1209,20 +1279,20 @@ function Es(t, e, n, r, s, o) {
1209
1279
  "layer-type": "base",
1210
1280
  name: "OpenStreetMap"
1211
1281
  }),
1212
- t.marker ? (h(), ee(a, {
1282
+ t.marker ? (m(), ee(a, {
1213
1283
  key: 0,
1214
1284
  "lat-lng": t.marker,
1215
1285
  draggable: !t.readonly && !t.disabled,
1216
1286
  onDragend: t.setMarker
1217
- }, null, 8, ["lat-lng", "draggable", "onDragend"])) : B("", !0)
1287
+ }, null, 8, ["lat-lng", "draggable", "onDragend"])) : j("", !0)
1218
1288
  ]),
1219
1289
  _: 1
1220
1290
  }, 8, ["zoom", "center", "onClick"])
1221
1291
  ], 2);
1222
1292
  }
1223
- const Wa = /* @__PURE__ */ M(Is, [["render", Es]]), Cs = E({
1293
+ const Qa = /* @__PURE__ */ V(Us, [["render", As]]), Ds = E({
1224
1294
  components: {
1225
- TextInput: Ge
1295
+ TextInput: We
1226
1296
  },
1227
1297
  props: {
1228
1298
  name: {
@@ -1232,18 +1302,18 @@ const Wa = /* @__PURE__ */ M(Is, [["render", Es]]), Cs = E({
1232
1302
  }
1233
1303
  }
1234
1304
  });
1235
- function Vs(t, e, n, r, s, o) {
1236
- const i = j("TextInput");
1237
- return h(), ee(i, {
1305
+ function Ns(t, e, n, r, s, o) {
1306
+ const i = L("TextInput");
1307
+ return m(), ee(i, {
1238
1308
  name: t.name,
1239
1309
  placeholder: "موبایل خود را وارد کنید",
1240
1310
  type: "tel",
1241
1311
  class: "form-control-mobile fanum"
1242
1312
  }, null, 8, ["name"]);
1243
1313
  }
1244
- const Ya = /* @__PURE__ */ M(Cs, [["render", Vs]]), Ms = E({
1314
+ const el = /* @__PURE__ */ V(Ds, [["render", Ns]]), Ps = E({
1245
1315
  components: {
1246
- TextInput: Ge
1316
+ TextInput: We
1247
1317
  },
1248
1318
  props: {
1249
1319
  name: {
@@ -1253,15 +1323,15 @@ const Ya = /* @__PURE__ */ M(Cs, [["render", Vs]]), Ms = E({
1253
1323
  }
1254
1324
  }
1255
1325
  });
1256
- function Us(t, e, n, r, s, o) {
1257
- const i = j("TextInput");
1258
- return h(), ee(i, {
1326
+ function zs(t, e, n, r, s, o) {
1327
+ const i = L("TextInput");
1328
+ return m(), ee(i, {
1259
1329
  name: t.name,
1260
1330
  placeholder: "گذرواژه خود را وارد کنید",
1261
1331
  type: "password"
1262
1332
  }, null, 8, ["name"]);
1263
1333
  }
1264
- const Xa = /* @__PURE__ */ M(Ms, [["render", Us]]), As = E({
1334
+ const tl = /* @__PURE__ */ V(Ps, [["render", zs]]), Os = E({
1265
1335
  components: { InputGroup: _t, InputGroupText: bt },
1266
1336
  props: {
1267
1337
  name: {
@@ -1291,7 +1361,7 @@ const Xa = /* @__PURE__ */ M(Ms, [["render", Us]]), As = E({
1291
1361
  getID(s) {
1292
1362
  }
1293
1363
  }), e[t.name] || (e[t.name] = t.min);
1294
- const r = q({
1364
+ const r = x({
1295
1365
  get() {
1296
1366
  var s;
1297
1367
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1319,55 +1389,55 @@ const Xa = /* @__PURE__ */ M(Ms, [["render", Us]]), As = E({
1319
1389
  data() {
1320
1390
  return {};
1321
1391
  }
1322
- }), Ns = ["name", "value", "disabled", "readonly"];
1323
- function Ps(t, e, n, r, s, o) {
1324
- const i = j("InputGroupText"), a = j("InputGroup"), l = qn("maska");
1325
- return h(), ee(a, { class: "input-group-quantity" }, {
1392
+ }), Rs = ["name", "value", "disabled", "readonly"];
1393
+ function Bs(t, e, n, r, s, o) {
1394
+ const i = L("InputGroupText"), a = L("InputGroup"), l = qn("maska");
1395
+ return m(), ee(a, { class: "input-group-quantity" }, {
1326
1396
  default: ie(() => [
1327
- $("button", {
1397
+ b("button", {
1328
1398
  onClick: e[0] || (e[0] = (...u) => t.increment && t.increment(...u)),
1329
1399
  type: "button",
1330
1400
  class: "btn"
1331
1401
  }, e[3] || (e[3] = [
1332
- $("svg", {
1402
+ b("svg", {
1333
1403
  width: "800px",
1334
1404
  height: "800px",
1335
1405
  viewBox: "0 0 24 24",
1336
1406
  fill: "none",
1337
1407
  xmlns: "http://www.w3.org/2000/svg"
1338
1408
  }, [
1339
- $("path", {
1409
+ b("path", {
1340
1410
  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",
1341
1411
  fill: "#0F0F0F"
1342
1412
  })
1343
1413
  ], -1)
1344
1414
  ])),
1345
- te($("input", {
1415
+ te(b("input", {
1346
1416
  name: t.name,
1347
1417
  value: this.modelValue,
1348
1418
  "data-maska": "###,###,###,###,###,###,###",
1349
1419
  "data-maska-reversed": "",
1350
1420
  onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
1351
- class: L([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1421
+ class: R([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1352
1422
  disabled: t.disabled || t.form.processing,
1353
1423
  readonly: t.readonly,
1354
1424
  type: "tel"
1355
- }, null, 42, Ns), [
1425
+ }, null, 42, Rs), [
1356
1426
  [l]
1357
1427
  ]),
1358
- $("button", {
1428
+ b("button", {
1359
1429
  onClick: e[2] || (e[2] = (...u) => t.decrement && t.decrement(...u)),
1360
1430
  type: "button",
1361
1431
  class: "btn"
1362
1432
  }, e[4] || (e[4] = [
1363
- $("svg", {
1433
+ b("svg", {
1364
1434
  width: "800px",
1365
1435
  height: "800px",
1366
1436
  viewBox: "0 0 20 20",
1367
1437
  xmlns: "http://www.w3.org/2000/svg",
1368
1438
  fill: "none"
1369
1439
  }, [
1370
- $("path", {
1440
+ b("path", {
1371
1441
  fill: "#000000",
1372
1442
  "fill-rule": "evenodd",
1373
1443
  d: "M18 10a1 1 0 01-1 1H3a1 1 0 110-2h14a1 1 0 011 1z"
@@ -1376,7 +1446,7 @@ function Ps(t, e, n, r, s, o) {
1376
1446
  ])),
1377
1447
  Q(i, { class: "fanum" }, {
1378
1448
  default: ie(() => [
1379
- gt(W(t.unit), 1)
1449
+ yt(W(t.unit), 1)
1380
1450
  ]),
1381
1451
  _: 1
1382
1452
  }),
@@ -1385,8 +1455,8 @@ function Ps(t, e, n, r, s, o) {
1385
1455
  _: 3
1386
1456
  });
1387
1457
  }
1388
- const Ds = /* @__PURE__ */ M(As, [["render", Ps]]), zs = E({
1389
- components: { GroupControl: ys, QuantityInput: Ds, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1458
+ const js = /* @__PURE__ */ V(Os, [["render", Bs]]), Ls = E({
1459
+ components: { GroupControl: $s, QuantityInput: js, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1390
1460
  props: {
1391
1461
  name: {
1392
1462
  type: String,
@@ -1427,7 +1497,7 @@ const Ds = /* @__PURE__ */ M(As, [["render", Ps]]), zs = E({
1427
1497
  errors: {},
1428
1498
  getID(s) {
1429
1499
  }
1430
- }), e[t.name] || (e[t.name] = t.min), { modelValue: q({
1500
+ }), e[t.name] || (e[t.name] = t.min), { modelValue: x({
1431
1501
  get() {
1432
1502
  var s;
1433
1503
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1462,29 +1532,29 @@ const Ds = /* @__PURE__ */ M(As, [["render", Ps]]), zs = E({
1462
1532
  showDropdown: !1
1463
1533
  };
1464
1534
  }
1465
- }), Os = {
1535
+ }), xs = {
1466
1536
  ref: "input",
1467
1537
  class: "multi-quantity-input fanum"
1468
- }, Rs = { class: "row align-items-center justify-content-between g-0" }, Bs = ["innerHTML"], js = { class: "col-auto" };
1469
- function Ls(t, e, n, r, s, o) {
1470
- const i = j("QuantityInput"), a = j("GroupControl");
1471
- return h(), g("div", Os, [
1472
- $("button", {
1538
+ }, qs = { class: "row align-items-center justify-content-between g-0" }, Hs = ["innerHTML"], Gs = { class: "col-auto" };
1539
+ function Ws(t, e, n, r, s, o) {
1540
+ const i = L("QuantityInput"), a = L("GroupControl");
1541
+ return m(), g("div", xs, [
1542
+ b("button", {
1473
1543
  type: "button",
1474
1544
  class: "form-control fanum dropdown-toggle",
1475
1545
  onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
1476
1546
  }, W(t.totalQuantity) + " " + W(t.unit), 1),
1477
- $("div", {
1478
- class: L(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1547
+ b("div", {
1548
+ class: R(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1479
1549
  }, [
1480
1550
  Q(a, { name: t.name }, {
1481
1551
  default: ie(() => [
1482
- (h(!0), g(ve, null, _e(t.options, (l, u) => (h(), g("div", Rs, [
1483
- $("div", {
1552
+ (m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div", qs, [
1553
+ b("div", {
1484
1554
  class: "col-auto",
1485
1555
  innerHTML: (l == null ? void 0 : l.name) || l
1486
- }, null, 8, Bs),
1487
- $("div", js, [
1556
+ }, null, 8, Hs),
1557
+ b("div", Gs, [
1488
1558
  Q(i, {
1489
1559
  name: u,
1490
1560
  min: l.min || t.min,
@@ -1498,7 +1568,7 @@ function Ls(t, e, n, r, s, o) {
1498
1568
  ], 2)
1499
1569
  ], 512);
1500
1570
  }
1501
- const Za = /* @__PURE__ */ M(zs, [["render", Ls]]), xs = E({
1571
+ const nl = /* @__PURE__ */ V(Ls, [["render", Ws]]), Ys = E({
1502
1572
  emits: ["update:modelValue", "search", "searching", "change", "selected"],
1503
1573
  props: {
1504
1574
  name: {
@@ -1561,7 +1631,7 @@ const Za = /* @__PURE__ */ M(zs, [["render", Ls]]), xs = E({
1561
1631
  return s;
1562
1632
  }
1563
1633
  }), n = T("group", {});
1564
- return { modelValue: q({
1634
+ return { modelValue: x({
1565
1635
  get() {
1566
1636
  var s;
1567
1637
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1681,15 +1751,15 @@ const Za = /* @__PURE__ */ M(zs, [["render", Ls]]), xs = E({
1681
1751
  }
1682
1752
  };
1683
1753
  }
1684
- }), qs = ["name", "id"], Hs = ["value", "selected"];
1685
- function Gs(t, e, n, r, s, o) {
1686
- return h(), g("div", {
1687
- class: L(["select2-controller", {
1754
+ }), Xs = ["name", "id"], Zs = ["value", "selected"];
1755
+ function Ks(t, e, n, r, s, o) {
1756
+ return m(), g("div", {
1757
+ class: R(["select2-controller", {
1688
1758
  "is-invalid": t.form.errors[t.name],
1689
1759
  "select2-dropdown-hidden": t.hideDropdown === !0
1690
1760
  }])
1691
1761
  }, [
1692
- te($("select", en(t.$props, {
1762
+ te(b("select", en(t.$props, {
1693
1763
  name: t.name,
1694
1764
  id: t.name,
1695
1765
  "onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
@@ -1699,16 +1769,16 @@ function Gs(t, e, n, r, s, o) {
1699
1769
  }],
1700
1770
  ref: "input"
1701
1771
  }), [
1702
- (h(!0), g(ve, null, _e(t.options, (i, a) => (h(), g("option", {
1772
+ (m(!0), g(ve, null, _e(t.options, (i, a) => (m(), g("option", {
1703
1773
  value: t.getKeyFromItem(i),
1704
1774
  selected: t.selected(i)
1705
- }, W(t.getLabelFromItem(i)), 9, Hs))), 256))
1706
- ], 16, qs), [
1775
+ }, W(t.getLabelFromItem(i)), 9, Zs))), 256))
1776
+ ], 16, Xs), [
1707
1777
  [Hn, t.modelValue]
1708
1778
  ])
1709
1779
  ], 2);
1710
1780
  }
1711
- const Ka = /* @__PURE__ */ M(xs, [["render", Gs]]), Ws = E({
1781
+ const rl = /* @__PURE__ */ V(Ys, [["render", Ks]]), Js = E({
1712
1782
  emits: ["update:modelValue"],
1713
1783
  props: {
1714
1784
  name: {
@@ -1783,34 +1853,34 @@ const Ka = /* @__PURE__ */ M(xs, [["render", Gs]]), Ws = E({
1783
1853
  isRTL: !1
1784
1854
  };
1785
1855
  }
1786
- }), Ys = { class: "star-rating" }, Xs = {
1856
+ }), Qs = { class: "star-rating" }, ei = {
1787
1857
  key: 0,
1788
1858
  class: "rating-value fanum"
1789
1859
  };
1790
- function Zs(t, e, n, r, s, o) {
1791
- return h(), g("div", Ys, [
1792
- $("div", {
1860
+ function ti(t, e, n, r, s, o) {
1861
+ return m(), g("div", Qs, [
1862
+ b("div", {
1793
1863
  class: "star-rating-container",
1794
1864
  ref: "ratingContainer",
1795
1865
  onMouseleave: e[0] || (e[0] = (...i) => t.resetHover && t.resetHover(...i)),
1796
1866
  onMousemove: e[1] || (e[1] = (...i) => t.setHover && t.setHover(...i)),
1797
1867
  onClick: e[2] || (e[2] = (...i) => t.updateRating && t.updateRating(...i))
1798
1868
  }, [
1799
- (h(!0), g(ve, null, _e(t.maxStars, (i) => (h(), g("div", {
1869
+ (m(!0), g(ve, null, _e(t.maxStars, (i) => (m(), g("div", {
1800
1870
  key: i,
1801
1871
  class: "star-wrapper"
1802
1872
  }, [
1803
- e[3] || (e[3] = $("div", { class: "star-bg" }, "★", -1)),
1804
- $("span", {
1873
+ e[3] || (e[3] = b("div", { class: "star-bg" }, "★", -1)),
1874
+ b("span", {
1805
1875
  class: "star-overlay",
1806
1876
  style: vt({ width: t.getStarFill(i) + "%" })
1807
1877
  }, "★", 4)
1808
1878
  ]))), 128))
1809
1879
  ], 544),
1810
- t.showValue && t.displayRating > 0 ? (h(), g("div", Xs, W(t.displayRating), 1)) : B("", !0)
1880
+ t.showValue && t.displayRating > 0 ? (m(), g("div", ei, W(t.displayRating), 1)) : j("", !0)
1811
1881
  ]);
1812
1882
  }
1813
- const Ja = /* @__PURE__ */ M(Ws, [["render", Zs]]), Ks = E({
1883
+ const sl = /* @__PURE__ */ V(Js, [["render", ti]]), ni = E({
1814
1884
  components: {
1815
1885
  Spinner: br
1816
1886
  },
@@ -1821,30 +1891,30 @@ const Ja = /* @__PURE__ */ M(Ws, [["render", Zs]]), Ks = E({
1821
1891
  default: !1
1822
1892
  }
1823
1893
  }
1824
- }), Js = ["disabled"], Qs = {
1894
+ }), ri = ["disabled"], si = {
1825
1895
  key: 0,
1826
1896
  class: "submit-upload-percent"
1827
1897
  };
1828
- function ei(t, e, n, r, s, o) {
1898
+ function ii(t, e, n, r, s, o) {
1829
1899
  var a, l, u, d;
1830
- const i = j("Spinner");
1831
- return h(), g("button", {
1900
+ const i = L("Spinner");
1901
+ return m(), g("button", {
1832
1902
  type: "submit",
1833
1903
  disabled: t.disabled || ((a = t.form) == null ? void 0 : a.processing) || ((l = t.form) == null ? void 0 : l.uploading)
1834
1904
  }, [
1835
- (u = t.form) != null && u.processing || (d = t.form) != null && d.uploading ? (h(), ee(i, { key: 0 })) : B("", !0),
1905
+ (u = t.form) != null && u.processing || (d = t.form) != null && d.uploading ? (m(), ee(i, { key: 0 })) : j("", !0),
1836
1906
  O(t.$slots, "default", { form: t.form }, () => [
1837
- e[0] || (e[0] = gt(" تایید و ثبت اطلاعات "))
1907
+ e[0] || (e[0] = yt(" تایید و ثبت اطلاعات "))
1838
1908
  ]),
1839
1909
  O(t.$slots, "progress", {}, () => {
1840
1910
  var p, c;
1841
1911
  return [
1842
- (p = t.form) != null && p.uploading ? (h(), g("span", Qs, W((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : B("", !0)
1912
+ (p = t.form) != null && p.uploading ? (m(), g("span", si, W((c = t.form) == null ? void 0 : c.uploading) + "%", 1)) : j("", !0)
1843
1913
  ];
1844
1914
  })
1845
- ], 8, Js);
1915
+ ], 8, ri);
1846
1916
  }
1847
- const Qa = /* @__PURE__ */ M(Ks, [["render", ei]]), ti = E({
1917
+ const il = /* @__PURE__ */ V(ni, [["render", ii]]), oi = E({
1848
1918
  components: {
1849
1919
  VueTelInput: er
1850
1920
  },
@@ -1878,14 +1948,14 @@ const Qa = /* @__PURE__ */ M(Ks, [["render", ei]]), ti = E({
1878
1948
  valid: null
1879
1949
  };
1880
1950
  }
1881
- }), ni = {
1951
+ }), ai = {
1882
1952
  class: "telephone-input input-group fanum",
1883
1953
  dir: "ltr"
1884
1954
  };
1885
- function ri(t, e, n, r, s, o) {
1955
+ function li(t, e, n, r, s, o) {
1886
1956
  var a;
1887
- const i = j("vue-tel-input");
1888
- return h(), g("div", ni, [
1957
+ const i = L("vue-tel-input");
1958
+ return m(), g("div", ai, [
1889
1959
  Q(i, {
1890
1960
  mode: "national",
1891
1961
  validCharactersOnly: !0,
@@ -1908,7 +1978,7 @@ function ri(t, e, n, r, s, o) {
1908
1978
  }, null, 8, ["onOnInput", "inputOptions", "modelValue", "styleClasses"])
1909
1979
  ]);
1910
1980
  }
1911
- const el = /* @__PURE__ */ M(ti, [["render", ri]]), si = E({
1981
+ const ol = /* @__PURE__ */ V(oi, [["render", li]]), ui = E({
1912
1982
  props: {
1913
1983
  name: {
1914
1984
  type: String,
@@ -1922,7 +1992,7 @@ const el = /* @__PURE__ */ M(ti, [["render", ri]]), si = E({
1922
1992
  return s;
1923
1993
  }
1924
1994
  }), n = T("group", {});
1925
- return { modelValue: q({
1995
+ return { modelValue: x({
1926
1996
  get() {
1927
1997
  var s;
1928
1998
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1933,19 +2003,19 @@ const el = /* @__PURE__ */ M(ti, [["render", ri]]), si = E({
1933
2003
  }
1934
2004
  }), form: e, group: n };
1935
2005
  }
1936
- }), ii = ["name", "disabled"];
1937
- function oi(t, e, n, r, s, o) {
2006
+ }), di = ["name", "disabled"];
2007
+ function pi(t, e, n, r, s, o) {
1938
2008
  var i, a;
1939
- return te((h(), g("textarea", {
2009
+ return te((m(), g("textarea", {
1940
2010
  name: t.name,
1941
2011
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
1942
- class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2012
+ class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
1943
2013
  disabled: (a = t.form) == null ? void 0 : a.processing
1944
- }, null, 10, ii)), [
2014
+ }, null, 10, di)), [
1945
2015
  [Me, t.modelValue]
1946
2016
  ]);
1947
2017
  }
1948
- const tl = /* @__PURE__ */ M(si, [["render", oi]]), ai = E({
2018
+ const al = /* @__PURE__ */ V(ui, [["render", pi]]), ci = E({
1949
2019
  props: {
1950
2020
  name: {
1951
2021
  type: String,
@@ -1975,7 +2045,7 @@ const tl = /* @__PURE__ */ M(si, [["render", oi]]), ai = E({
1975
2045
  return s;
1976
2046
  }
1977
2047
  }), n = T("group", {});
1978
- return { modelValue: q({
2048
+ return { modelValue: x({
1979
2049
  get() {
1980
2050
  var s;
1981
2051
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1986,24 +2056,24 @@ const tl = /* @__PURE__ */ M(si, [["render", oi]]), ai = E({
1986
2056
  }
1987
2057
  }), form: e, group: n };
1988
2058
  }
1989
- }), li = ["name", "id", "disabled", "placeholder", "maxlength", "data-auto-submit-length"];
1990
- function ui(t, e, n, r, s, o) {
2059
+ }), fi = ["name", "id", "disabled", "placeholder", "maxlength", "data-auto-submit-length"];
2060
+ function mi(t, e, n, r, s, o) {
1991
2061
  var i, a;
1992
- return te((h(), g("input", {
2062
+ return te((m(), g("input", {
1993
2063
  name: t.name,
1994
2064
  id: t.inputID,
1995
2065
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
1996
- class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control form-control-otp fanum"]),
2066
+ class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control form-control-otp fanum"]),
1997
2067
  disabled: (a = t.form) == null ? void 0 : a.processing,
1998
2068
  placeholder: t.placeholderLines,
1999
2069
  maxlength: t.maxLength,
2000
2070
  "data-auto-submit-length": t.maxLength,
2001
2071
  type: "tel"
2002
- }, null, 10, li)), [
2072
+ }, null, 10, fi)), [
2003
2073
  [Me, t.modelValue]
2004
2074
  ]);
2005
2075
  }
2006
- const nl = /* @__PURE__ */ M(ai, [["render", ui]]), rl = {
2076
+ const ll = /* @__PURE__ */ V(ci, [["render", mi]]), ul = {
2007
2077
  __name: "DropzoneInput",
2008
2078
  props: {
2009
2079
  name: {
@@ -2024,7 +2094,7 @@ const nl = /* @__PURE__ */ M(ai, [["render", ui]]), rl = {
2024
2094
  value: {},
2025
2095
  errors: {},
2026
2096
  getID: (u) => u
2027
- }), o = T("group", null), i = G(null), a = G(null), l = q({
2097
+ }), o = T("group", null), i = G(null), a = G(null), l = x({
2028
2098
  get() {
2029
2099
  var u;
2030
2100
  return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
@@ -2064,13 +2134,13 @@ const nl = /* @__PURE__ */ M(ai, [["render", ui]]), rl = {
2064
2134
  console.error("حذف فایل در سرور با خطا مواجه شد", p);
2065
2135
  }
2066
2136
  });
2067
- }), (u, d) => (h(), g("div", {
2137
+ }), (u, d) => (m(), g("div", {
2068
2138
  class: "inertia-dropzone-input dropzone",
2069
2139
  ref_key: "dz",
2070
2140
  ref: i
2071
2141
  }, null, 512));
2072
2142
  }
2073
- }, di = E({
2143
+ }, hi = E({
2074
2144
  props: {
2075
2145
  modelValue: "",
2076
2146
  name: {
@@ -2151,80 +2221,80 @@ const nl = /* @__PURE__ */ M(ai, [["render", ui]]), rl = {
2151
2221
  files: []
2152
2222
  };
2153
2223
  }
2154
- }), pi = { class: "file-input-uploader" }, ci = ["name", "disabled", "multiple"], fi = { class: "file-input-uploader--list" }, mi = ["id"], hi = {
2224
+ }), gi = { class: "file-input-uploader" }, yi = ["name", "disabled", "multiple"], vi = { class: "file-input-uploader--list" }, _i = ["id"], bi = {
2155
2225
  key: 0,
2156
2226
  class: "file-input-uploader--progress"
2157
- }, gi = {
2227
+ }, wi = {
2158
2228
  key: 1,
2159
2229
  class: "file-input-uploader--list-error"
2160
- }, yi = {
2230
+ }, $i = {
2161
2231
  class: "file-input-uploader--list-item--size",
2162
2232
  dir: "ltr"
2163
- }, vi = { class: "file-input-uploader--list-item--actions" }, _i = ["onClick"], bi = ["onClick"];
2164
- function wi(t, e, n, r, s, o) {
2233
+ }, Si = { class: "file-input-uploader--list-item--actions" }, Fi = ["onClick"], Ti = ["onClick"];
2234
+ function ki(t, e, n, r, s, o) {
2165
2235
  var i, a;
2166
- return h(), g("div", pi, [
2167
- $("input", {
2236
+ return m(), g("div", gi, [
2237
+ b("input", {
2168
2238
  ref: "input",
2169
2239
  name: t.name,
2170
- class: L([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2240
+ class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2171
2241
  disabled: (a = t.form) == null ? void 0 : a.processing,
2172
2242
  type: "file",
2173
2243
  multiple: t.multiple,
2174
2244
  onChange: e[0] || (e[0] = (...l) => t.fileSelected && t.fileSelected(...l))
2175
- }, null, 42, ci),
2176
- $("div", fi, [
2177
- (h(!0), g(ve, null, _e(t.allFiles, (l) => (h(), g("div", {
2245
+ }, null, 42, yi),
2246
+ b("div", vi, [
2247
+ (m(!0), g(ve, null, _e(t.allFiles, (l) => (m(), g("div", {
2178
2248
  id: "file-" + l.id,
2179
2249
  class: "file-input-uploader--list-item"
2180
2250
  }, [
2181
- l.percent && l.percent < 100 ? (h(), g("div", hi, [
2182
- $("div", {
2251
+ l.percent && l.percent < 100 ? (m(), g("div", bi, [
2252
+ b("div", {
2183
2253
  style: vt({ width: l.percent + "%" })
2184
2254
  }, null, 4)
2185
- ])) : B("", !0),
2186
- $("div", null, W(l.file.name), 1),
2187
- l.error ? (h(), g("div", gi, W(l.error), 1)) : B("", !0),
2188
- $("div", yi, W(Math.round(l.file.size / 1024)) + "Kb", 1),
2189
- $("div", vi, [
2190
- l.error ? (h(), g("button", {
2255
+ ])) : j("", !0),
2256
+ b("div", null, W(l.file.name), 1),
2257
+ l.error ? (m(), g("div", wi, W(l.error), 1)) : j("", !0),
2258
+ b("div", $i, W(Math.round(l.file.size / 1024)) + "Kb", 1),
2259
+ b("div", Si, [
2260
+ l.error ? (m(), g("button", {
2191
2261
  key: 0,
2192
2262
  onClick: (u) => t.uploadFile(l),
2193
2263
  type: "button",
2194
2264
  class: "file-input-uploader--list-item--btn"
2195
2265
  }, e[1] || (e[1] = [
2196
- $("svg", {
2266
+ b("svg", {
2197
2267
  fill: "#000000",
2198
2268
  width: "800px",
2199
2269
  height: "800px",
2200
2270
  viewBox: "0 0 24 24",
2201
2271
  xmlns: "http://www.w3.org/2000/svg"
2202
2272
  }, [
2203
- $("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" })
2273
+ 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" })
2204
2274
  ], -1)
2205
- ]), 8, _i)) : B("", !0),
2206
- l.path || l.error ? (h(), g("button", {
2275
+ ]), 8, Fi)) : j("", !0),
2276
+ l.path || l.error ? (m(), g("button", {
2207
2277
  key: 1,
2208
2278
  onClick: (u) => t.deleteFile(l),
2209
2279
  type: "button",
2210
2280
  class: "file-input-uploader--list-item--btn"
2211
2281
  }, e[2] || (e[2] = [
2212
- $("svg", {
2282
+ b("svg", {
2213
2283
  fill: "#000000",
2214
2284
  width: "800px",
2215
2285
  height: "800px",
2216
2286
  viewBox: "0 0 24 24",
2217
2287
  xmlns: "http://www.w3.org/2000/svg"
2218
2288
  }, [
2219
- $("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" })
2289
+ 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" })
2220
2290
  ], -1)
2221
- ]), 8, bi)) : B("", !0)
2291
+ ]), 8, Ti)) : j("", !0)
2222
2292
  ])
2223
- ], 8, mi))), 256))
2293
+ ], 8, _i))), 256))
2224
2294
  ])
2225
2295
  ]);
2226
2296
  }
2227
- const sl = /* @__PURE__ */ M(di, [["render", wi]]), $i = E({
2297
+ const dl = /* @__PURE__ */ V(hi, [["render", ki]]), Ii = E({
2228
2298
  emits: ["update:modelValue", "change"],
2229
2299
  props: {
2230
2300
  name: {
@@ -2271,7 +2341,7 @@ const sl = /* @__PURE__ */ M(di, [["render", wi]]), $i = E({
2271
2341
  return s;
2272
2342
  }
2273
2343
  }), n = T("group", {});
2274
- return { modelValue: q({
2344
+ return { modelValue: x({
2275
2345
  get() {
2276
2346
  var s;
2277
2347
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -2311,14 +2381,14 @@ const sl = /* @__PURE__ */ M(di, [["render", wi]]), $i = E({
2311
2381
  rangeSliderEn: null
2312
2382
  };
2313
2383
  }
2314
- }), Si = {
2384
+ }), Ei = {
2315
2385
  class: "range-input",
2316
2386
  ref: "rangeSliderEl",
2317
2387
  dir: "ltr"
2318
2388
  };
2319
- function Fi(t, e, n, r, s, o) {
2320
- return h(), g("div", Si, [
2321
- te($("input", {
2389
+ function Ci(t, e, n, r, s, o) {
2390
+ return m(), g("div", Ei, [
2391
+ te(b("input", {
2322
2392
  "onUpdate:modelValue": e[0] || (e[0] = (i) => t.modelValue = i),
2323
2393
  type: "hidden"
2324
2394
  }, null, 512), [
@@ -2326,8 +2396,8 @@ function Fi(t, e, n, r, s, o) {
2326
2396
  ])
2327
2397
  ], 512);
2328
2398
  }
2329
- const il = /* @__PURE__ */ M($i, [["render", Fi]]);
2330
- var We, C, sn, ae, Ut, on, an, ln, wt, tt, nt, Te = {}, un = [], Ti = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
2399
+ const pl = /* @__PURE__ */ V(Ii, [["render", Ci]]);
2400
+ var Ye, C, sn, ae, Ut, on, an, ln, wt, nt, rt, Te = {}, un = [], Vi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xe = Array.isArray;
2331
2401
  function re(t, e) {
2332
2402
  for (var n in e) t[n] = e[n];
2333
2403
  return t;
@@ -2338,7 +2408,7 @@ function $t(t) {
2338
2408
  function St(t, e, n) {
2339
2409
  var r, s, o, i = {};
2340
2410
  for (o in e) o == "key" ? r = e[o] : o == "ref" ? s = e[o] : i[o] = e[o];
2341
- 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]);
2411
+ if (arguments.length > 2 && (i.children = arguments.length > 3 ? Ye.call(arguments, 2) : n), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) i[o] === void 0 && (i[o] = t.defaultProps[o]);
2342
2412
  return Oe(t, i, r, s, null);
2343
2413
  }
2344
2414
  function Oe(t, e, n, r, s) {
@@ -2374,13 +2444,13 @@ function Le() {
2374
2444
  Le.__r = 0;
2375
2445
  }
2376
2446
  function pn(t, e, n, r, s, o, i, a, l, u, d) {
2377
- var p, c, m, v, V, A, k, I = r && r.__k || un, Y = e.length;
2378
- for (l = ki(n, e, I, l, Y), p = 0; p < Y; p++) (m = n.__k[p]) != null && (c = m.__i == -1 ? Te : I[m.__i] || Te, m.__i = p, A = Ft(t, m, c, s, o, i, a, l, u, d), v = m.__e, m.ref && c.ref != m.ref && (c.ref && Tt(c.ref, null, m), d.push(m.ref, m.__c || v, m)), V == null && v != null && (V = v), (k = !!(4 & m.__u)) || c.__k === m.__k ? l = cn(m, l, t, k) : typeof m.type == "function" && A !== void 0 ? l = A : v && (l = v.nextSibling), m.__u &= -7);
2379
- return n.__e = V, l;
2447
+ var p, c, h, v, M, A, k, I = r && r.__k || un, Y = e.length;
2448
+ for (l = Mi(n, e, I, l, Y), p = 0; p < Y; p++) (h = n.__k[p]) != null && (c = h.__i == -1 ? Te : I[h.__i] || Te, h.__i = p, A = Ft(t, h, c, s, o, i, a, l, u, d), v = h.__e, h.ref && c.ref != h.ref && (c.ref && Tt(c.ref, null, h), d.push(h.ref, h.__c || v, h)), M == null && v != null && (M = v), (k = !!(4 & h.__u)) || c.__k === h.__k ? l = cn(h, l, t, k) : typeof h.type == "function" && A !== void 0 ? l = A : v && (l = v.nextSibling), h.__u &= -7);
2449
+ return n.__e = M, l;
2380
2450
  }
2381
- function ki(t, e, n, r, s) {
2451
+ function Mi(t, e, n, r, s) {
2382
2452
  var o, i, a, l, u, d = n.length, p = d, c = 0;
2383
- 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(he, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = Oe(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : t.__k[o] = i, l = o + c, i.__ = t, i.__b = t.__b + 1, a = null, (u = i.__i = Ii(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;
2453
+ for (t.__k = new Array(s), o = 0; o < s; o++) (i = e[o]) != null && typeof i != "boolean" && typeof i != "function" ? (typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? i = t.__k[o] = Oe(null, i, null, null, null) : Xe(i) ? i = t.__k[o] = Oe(he, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? i = t.__k[o] = Oe(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : t.__k[o] = i, l = o + c, i.__ = t, i.__b = t.__b + 1, a = null, (u = i.__i = Ui(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;
2384
2454
  if (p) for (o = 0; o < d; o++) (a = n[o]) != null && !(2 & a.__u) && (a.__e == r && (r = ge(a)), hn(a, a));
2385
2455
  return r;
2386
2456
  }
@@ -2396,7 +2466,7 @@ function cn(t, e, n, r) {
2396
2466
  while (e != null && e.nodeType == 8);
2397
2467
  return e;
2398
2468
  }
2399
- function Ii(t, e, n, r) {
2469
+ function Ui(t, e, n, r) {
2400
2470
  var s, o, i, a = t.key, l = t.type, u = e[n], d = u != null && (2 & u.__u) == 0;
2401
2471
  if (u === null && a == null || d && a == u.key && l == u.type) return n;
2402
2472
  if (r > (d ? 1 : 0)) {
@@ -2404,17 +2474,17 @@ function Ii(t, e, n, r) {
2404
2474
  }
2405
2475
  return -1;
2406
2476
  }
2407
- function Nt(t, e, n) {
2408
- e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Ti.test(e) ? n : n + "px";
2477
+ function Dt(t, e, n) {
2478
+ e[0] == "-" ? t.setProperty(e, n ?? "") : t[e] = n == null ? "" : typeof n != "number" || Vi.test(e) ? n : n + "px";
2409
2479
  }
2410
- function Ne(t, e, n, r, s) {
2480
+ function De(t, e, n, r, s) {
2411
2481
  var o, i;
2412
2482
  e: if (e == "style") if (typeof n == "string") t.style.cssText = n;
2413
2483
  else {
2414
- if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || Nt(t.style, e, "");
2415
- if (n) for (e in n) r && n[e] == r[e] || Nt(t.style, e, n[e]);
2484
+ if (typeof r == "string" && (t.style.cssText = r = ""), r) for (e in r) n && e in n || Dt(t.style, e, "");
2485
+ if (n) for (e in n) r && n[e] == r[e] || Dt(t.style, e, n[e]);
2416
2486
  }
2417
- 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);
2487
+ 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 ? rt : nt, o)) : t.removeEventListener(e, o ? rt : nt, o);
2418
2488
  else {
2419
2489
  if (s == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
2420
2490
  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 {
@@ -2425,7 +2495,7 @@ function Ne(t, e, n, r, s) {
2425
2495
  typeof n == "function" || (n == null || n === !1 && e[4] != "-" ? t.removeAttribute(e) : t.setAttribute(e, e == "popover" && n == 1 ? "" : n));
2426
2496
  }
2427
2497
  }
2428
- function Pt(t) {
2498
+ function Nt(t) {
2429
2499
  return function(e) {
2430
2500
  if (this.l) {
2431
2501
  var n = this.l[e.type + t];
@@ -2436,13 +2506,13 @@ function Pt(t) {
2436
2506
  };
2437
2507
  }
2438
2508
  function Ft(t, e, n, r, s, o, i, a, l, u) {
2439
- var d, p, c, m, v, V, A, k, I, Y, f, _, w, U, D, H, ne, N = e.type;
2509
+ var d, p, c, h, v, M, A, k, I, Y, f, _, $, U, P, H, ne, D = e.type;
2440
2510
  if (e.constructor !== void 0) return null;
2441
2511
  128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
2442
- e: if (typeof N == "function") try {
2443
- if (k = e.props, I = "prototype" in N && N.prototype.render, Y = (d = N.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (I ? e.__c = p = new N(k, f) : (e.__c = p = new Re(k, f), p.constructor = N, p.render = Ci), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), I && p.__s == null && (p.__s = p.state), I && N.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = re({}, p.__s)), re(p.__s, N.getDerivedStateFromProps(k, p.__s))), m = p.props, v = p.state, p.__v = e, c) I && N.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), I && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2512
+ e: if (typeof D == "function") try {
2513
+ if (k = e.props, I = "prototype" in D && D.prototype.render, Y = (d = D.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (I ? e.__c = p = new D(k, f) : (e.__c = p = new Re(k, f), p.constructor = D, p.render = Di), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), I && p.__s == null && (p.__s = p.state), I && D.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = re({}, p.__s)), re(p.__s, D.getDerivedStateFromProps(k, p.__s))), h = p.props, v = p.state, p.__v = e, c) I && D.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), I && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2444
2514
  else {
2445
- if (I && N.getDerivedStateFromProps == null && k !== m && p.componentWillReceiveProps != null && p.componentWillReceiveProps(k, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(k, p.__s, f) === !1) {
2515
+ if (I && D.getDerivedStateFromProps == null && k !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(k, f), e.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(k, p.__s, f) === !1) {
2446
2516
  for (e.__v != n.__v && (p.props = k, p.state = p.__s, p.__d = !1), e.__e = n.__e, e.__k = n.__k, e.__k.some(function(X) {
2447
2517
  X && (X.__ = e);
2448
2518
  }), _ = 0; _ < p._sb.length; _++) p.__h.push(p._sb[_]);
@@ -2450,32 +2520,32 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
2450
2520
  break e;
2451
2521
  }
2452
2522
  p.componentWillUpdate != null && p.componentWillUpdate(k, p.__s, f), I && p.componentDidUpdate != null && p.__h.push(function() {
2453
- p.componentDidUpdate(m, v, V);
2523
+ p.componentDidUpdate(h, v, M);
2454
2524
  });
2455
2525
  }
2456
- if (p.context = f, p.props = k, p.__P = t, p.__e = !1, w = C.__r, U = 0, I) {
2457
- for (p.state = p.__s, p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), D = 0; D < p._sb.length; D++) p.__h.push(p._sb[D]);
2526
+ if (p.context = f, p.props = k, p.__P = t, p.__e = !1, $ = C.__r, U = 0, I) {
2527
+ for (p.state = p.__s, p.__d = !1, $ && $(e), d = p.render(p.props, p.state, p.context), P = 0; P < p._sb.length; P++) p.__h.push(p._sb[P]);
2458
2528
  p._sb = [];
2459
2529
  } else do
2460
- p.__d = !1, w && w(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
2530
+ p.__d = !1, $ && $(e), d = p.render(p.props, p.state, p.context), p.state = p.__s;
2461
2531
  while (p.__d && ++U < 25);
2462
- p.state = p.__s, p.getChildContext != null && (r = re(re({}, r), p.getChildContext())), I && !c && p.getSnapshotBeforeUpdate != null && (V = p.getSnapshotBeforeUpdate(m, v)), H = d, d != null && d.type === he && d.key == null && (H = mn(d.props.children)), a = pn(t, Ye(H) ? H : [H], 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);
2532
+ p.state = p.__s, p.getChildContext != null && (r = re(re({}, r), p.getChildContext())), I && !c && p.getSnapshotBeforeUpdate != null && (M = p.getSnapshotBeforeUpdate(h, v)), H = d, d != null && d.type === he && d.key == null && (H = mn(d.props.children)), a = pn(t, Xe(H) ? H : [H], 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);
2463
2533
  } catch (X) {
2464
2534
  if (e.__v = null, l || o != null) if (X.then) {
2465
2535
  for (e.__u |= l ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
2466
2536
  o[o.indexOf(a)] = null, e.__e = a;
2467
2537
  } else {
2468
2538
  for (ne = o.length; ne--; ) $t(o[ne]);
2469
- rt(e);
2539
+ st(e);
2470
2540
  }
2471
- else e.__e = n.__e, e.__k = n.__k, X.then || rt(e);
2541
+ else e.__e = n.__e, e.__k = n.__k, X.then || st(e);
2472
2542
  C.__e(X, e, n);
2473
2543
  }
2474
- else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e = Ei(n.__e, e, n, r, s, o, i, l, u);
2544
+ else o == null && e.__v == n.__v ? (e.__k = n.__k, e.__e = n.__e) : a = e.__e = Ai(n.__e, e, n, r, s, o, i, l, u);
2475
2545
  return (d = C.diffed) && d(e), 128 & e.__u ? void 0 : a;
2476
2546
  }
2477
- function rt(t) {
2478
- t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(rt);
2547
+ function st(t) {
2548
+ t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(st);
2479
2549
  }
2480
2550
  function fn(t, e, n) {
2481
2551
  for (var r = 0; r < n.length; r++) Tt(n[r], n[++r], n[++r]);
@@ -2490,13 +2560,13 @@ function fn(t, e, n) {
2490
2560
  });
2491
2561
  }
2492
2562
  function mn(t) {
2493
- return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Ye(t) ? t.map(mn) : re({}, t);
2563
+ return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Xe(t) ? t.map(mn) : re({}, t);
2494
2564
  }
2495
- function Ei(t, e, n, r, s, o, i, a, l) {
2496
- var u, d, p, c, m, v, V, A = n.props || Te, k = e.props, I = e.type;
2565
+ function Ai(t, e, n, r, s, o, i, a, l) {
2566
+ var u, d, p, c, h, v, M, A = n.props || Te, k = e.props, I = e.type;
2497
2567
  if (I == "svg" ? s = "http://www.w3.org/2000/svg" : I == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s || (s = "http://www.w3.org/1999/xhtml"), o != null) {
2498
- for (u = 0; u < o.length; u++) if ((m = o[u]) && "setAttribute" in m == !!I && (I ? m.localName == I : m.nodeType == 3)) {
2499
- t = m, o[u] = null;
2568
+ for (u = 0; u < o.length; u++) if ((h = o[u]) && "setAttribute" in h == !!I && (I ? h.localName == I : h.nodeType == 3)) {
2569
+ t = h, o[u] = null;
2500
2570
  break;
2501
2571
  }
2502
2572
  }
@@ -2506,18 +2576,18 @@ function Ei(t, e, n, r, s, o, i, a, l) {
2506
2576
  }
2507
2577
  if (I == null) A === k || a && t.data == k || (t.data = k);
2508
2578
  else {
2509
- if (o = o && We.call(t.childNodes), !a && o != null) for (A = {}, u = 0; u < t.attributes.length; u++) A[(m = t.attributes[u]).name] = m.value;
2510
- for (u in A) if (m = A[u], u != "children") {
2511
- if (u == "dangerouslySetInnerHTML") p = m;
2579
+ if (o = o && Ye.call(t.childNodes), !a && o != null) for (A = {}, u = 0; u < t.attributes.length; u++) A[(h = t.attributes[u]).name] = h.value;
2580
+ for (u in A) if (h = A[u], u != "children") {
2581
+ if (u == "dangerouslySetInnerHTML") p = h;
2512
2582
  else if (!(u in k)) {
2513
2583
  if (u == "value" && "defaultValue" in k || u == "checked" && "defaultChecked" in k) continue;
2514
- Ne(t, u, null, m, s);
2584
+ De(t, u, null, h, s);
2515
2585
  }
2516
2586
  }
2517
- for (u in k) m = k[u], u == "children" ? c = m : u == "dangerouslySetInnerHTML" ? d = m : u == "value" ? v = m : u == "checked" ? V = m : a && typeof m != "function" || A[u] === m || Ne(t, u, m, A[u], s);
2587
+ for (u in k) h = k[u], u == "children" ? c = h : u == "dangerouslySetInnerHTML" ? d = h : u == "value" ? v = h : u == "checked" ? M = h : a && typeof h != "function" || A[u] === h || De(t, u, h, A[u], s);
2518
2588
  if (d) a || p && (d.__html == p.__html || d.__html == t.innerHTML) || (t.innerHTML = d.__html), e.__k = [];
2519
- else if (p && (t.innerHTML = ""), pn(e.type == "template" ? t.content : t, Ye(c) ? c : [c], e, n, r, I == "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]);
2520
- a || (u = "value", I == "progress" && v == null ? t.removeAttribute("value") : v != null && (v !== t[u] || I == "progress" && !v || I == "option" && v != A[u]) && Ne(t, u, v, A[u], s), u = "checked", V != null && V != t[u] && Ne(t, u, V, A[u], s));
2589
+ else if (p && (t.innerHTML = ""), pn(e.type == "template" ? t.content : t, Xe(c) ? c : [c], e, n, r, I == "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]);
2590
+ a || (u = "value", I == "progress" && v == null ? t.removeAttribute("value") : v != null && (v !== t[u] || I == "progress" && !v || I == "option" && v != A[u]) && De(t, u, v, A[u], s), u = "checked", M != null && M != t[u] && De(t, u, M, A[u], s));
2521
2591
  }
2522
2592
  return t;
2523
2593
  }
@@ -2544,14 +2614,14 @@ function hn(t, e, n) {
2544
2614
  if (r = t.__k) for (s = 0; s < r.length; s++) r[s] && hn(r[s], e, n || typeof t.type != "function");
2545
2615
  n || $t(t.__e), t.__c = t.__ = t.__e = void 0;
2546
2616
  }
2547
- function Ci(t, e, n) {
2617
+ function Di(t, e, n) {
2548
2618
  return this.constructor(t, n);
2549
2619
  }
2550
2620
  function gn(t, e, n) {
2551
2621
  var r, s, o, i;
2552
- e == document && (e = document.documentElement), C.__ && C.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(he, 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);
2622
+ e == document && (e = document.documentElement), C.__ && C.__(t, e), s = (r = !1) ? null : e.__k, o = [], i = [], Ft(e, t = e.__k = St(he, null, [t]), s || Te, Te, e.namespaceURI, s ? null : e.firstChild ? Ye.call(e.childNodes) : null, o, s ? s.__e : e.firstChild, r, i), fn(o, t, i);
2553
2623
  }
2554
- We = un.slice, C = { __e: function(t, e, n, r) {
2624
+ Ye = un.slice, C = { __e: function(t, e, n, r) {
2555
2625
  for (var s, o, i; e = e.__; ) if ((s = e.__c) && !s.__) try {
2556
2626
  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;
2557
2627
  } catch (a) {
@@ -2565,13 +2635,13 @@ We = un.slice, C = { __e: function(t, e, n, r) {
2565
2635
  this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
2566
2636
  }, Re.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
2567
2637
  return t.__v.__b - e.__v.__b;
2568
- }, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, tt = Pt(!1), nt = Pt(!0);
2569
- var Vi = 0;
2638
+ }, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, nt = Nt(!1), rt = Nt(!0);
2639
+ var Ni = 0;
2570
2640
  function S(t, e, n, r, s, o) {
2571
2641
  e || (e = {});
2572
2642
  var i, a, l = e;
2573
2643
  if ("ref" in l) for (a in l = {}, e) a == "ref" ? i = e[a] : l[a] = e[a];
2574
- var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Vi, __i: -1, __u: 0, __source: s, __self: o };
2644
+ var u = { type: t, props: l, key: n, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Ni, __i: -1, __u: 0, __source: s, __self: o };
2575
2645
  if (typeof t == "function" && (i = t.defaultProps)) for (a in i) l[a] === void 0 && (l[a] = i[a]);
2576
2646
  return C.vnode && C.vnode(u), u;
2577
2647
  }
@@ -2588,21 +2658,21 @@ function vn() {
2588
2658
  for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
2589
2659
  return r;
2590
2660
  }
2591
- var ke, P, Je, Dt, st = 0, _n = [], z = C, zt = z.__b, Ot = z.__r, Rt = z.diffed, Bt = z.__c, jt = z.unmount, Lt = z.__;
2661
+ var ke, N, Qe, Pt, it = 0, _n = [], z = C, zt = z.__b, Ot = z.__r, Rt = z.diffed, Bt = z.__c, jt = z.unmount, Lt = z.__;
2592
2662
  function kt(t, e) {
2593
- z.__h && z.__h(P, t, st || e), st = 0;
2594
- var n = P.__H || (P.__H = { __: [], __h: [] });
2663
+ z.__h && z.__h(N, t, it || e), it = 0;
2664
+ var n = N.__H || (N.__H = { __: [], __h: [] });
2595
2665
  return t >= n.__.length && n.__.push({}), n.__[t];
2596
2666
  }
2597
- function Mi(t) {
2598
- return st = 1, Ui(Sn, t);
2667
+ function Pi(t) {
2668
+ return it = 1, zi(Sn, t);
2599
2669
  }
2600
- function Ui(t, e, n) {
2670
+ function zi(t, e, n) {
2601
2671
  var r = kt(ke++, 2);
2602
2672
  if (r.t = t, !r.__c && (r.__ = [Sn(void 0, e), function(a) {
2603
2673
  var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
2604
2674
  l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
2605
- }], r.__c = P, !P.__f)) {
2675
+ }], r.__c = N, !N.__f)) {
2606
2676
  var s = function(a, l, u) {
2607
2677
  if (!r.__c.__H) return !0;
2608
2678
  var d = r.__c.__H.__.filter(function(c) {
@@ -2614,59 +2684,59 @@ function Ui(t, e, n) {
2614
2684
  var p = r.__c.props !== a;
2615
2685
  return d.forEach(function(c) {
2616
2686
  if (c.__N) {
2617
- var m = c.__[0];
2618
- c.__ = c.__N, c.__N = void 0, m !== c.__[0] && (p = !0);
2687
+ var h = c.__[0];
2688
+ c.__ = c.__N, c.__N = void 0, h !== c.__[0] && (p = !0);
2619
2689
  }
2620
2690
  }), o && o.call(this, a, l, u) || p;
2621
2691
  };
2622
- P.__f = !0;
2623
- var o = P.shouldComponentUpdate, i = P.componentWillUpdate;
2624
- P.componentWillUpdate = function(a, l, u) {
2692
+ N.__f = !0;
2693
+ var o = N.shouldComponentUpdate, i = N.componentWillUpdate;
2694
+ N.componentWillUpdate = function(a, l, u) {
2625
2695
  if (this.__e) {
2626
2696
  var d = o;
2627
2697
  o = void 0, s(a, l, u), o = d;
2628
2698
  }
2629
2699
  i && i.call(this, a, l, u);
2630
- }, P.shouldComponentUpdate = s;
2700
+ }, N.shouldComponentUpdate = s;
2631
2701
  }
2632
2702
  return r.__N || r.__;
2633
2703
  }
2634
2704
  function bn(t, e) {
2635
2705
  var n = kt(ke++, 3);
2636
- !z.__s && $n(n.__H, e) && (n.__ = t, n.u = e, P.__H.__h.push(n));
2706
+ !z.__s && $n(n.__H, e) && (n.__ = t, n.u = e, N.__H.__h.push(n));
2637
2707
  }
2638
2708
  function wn(t, e) {
2639
2709
  var n = kt(ke++, 7);
2640
2710
  return $n(n.__H, e) && (n.__ = t(), n.__H = e, n.__h = t), n.__;
2641
2711
  }
2642
- function Ai() {
2712
+ function Oi() {
2643
2713
  for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
2644
- t.__H.__h.forEach(Be), t.__H.__h.forEach(it), t.__H.__h = [];
2714
+ t.__H.__h.forEach(Be), t.__H.__h.forEach(ot), t.__H.__h = [];
2645
2715
  } catch (e) {
2646
2716
  t.__H.__h = [], z.__e(e, t.__v);
2647
2717
  }
2648
2718
  }
2649
2719
  z.__b = function(t) {
2650
- P = null, zt && zt(t);
2720
+ N = null, zt && zt(t);
2651
2721
  }, z.__ = function(t, e) {
2652
2722
  t && e.__k && e.__k.__m && (t.__m = e.__k.__m), Lt && Lt(t, e);
2653
2723
  }, z.__r = function(t) {
2654
2724
  Ot && Ot(t), ke = 0;
2655
- var e = (P = t.__c).__H;
2656
- e && (Je === P ? (e.__h = [], P.__h = [], e.__.forEach(function(n) {
2725
+ var e = (N = t.__c).__H;
2726
+ e && (Qe === N ? (e.__h = [], N.__h = [], e.__.forEach(function(n) {
2657
2727
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
2658
- })) : (e.__h.forEach(Be), e.__h.forEach(it), e.__h = [], ke = 0)), Je = P;
2728
+ })) : (e.__h.forEach(Be), e.__h.forEach(ot), e.__h = [], ke = 0)), Qe = N;
2659
2729
  }, z.diffed = function(t) {
2660
2730
  Rt && Rt(t);
2661
2731
  var e = t.__c;
2662
- e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Dt === z.requestAnimationFrame || ((Dt = z.requestAnimationFrame) || Ni)(Ai)), e.__H.__.forEach(function(n) {
2732
+ e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Pt === z.requestAnimationFrame || ((Pt = z.requestAnimationFrame) || Ri)(Oi)), e.__H.__.forEach(function(n) {
2663
2733
  n.u && (n.__H = n.u), n.u = void 0;
2664
- })), Je = P = null;
2734
+ })), Qe = N = null;
2665
2735
  }, z.__c = function(t, e) {
2666
2736
  e.some(function(n) {
2667
2737
  try {
2668
2738
  n.__h.forEach(Be), n.__h = n.__h.filter(function(r) {
2669
- return !r.__ || it(r);
2739
+ return !r.__ || ot(r);
2670
2740
  });
2671
2741
  } catch (r) {
2672
2742
  e.some(function(s) {
@@ -2686,19 +2756,19 @@ z.__b = function(t) {
2686
2756
  }), n.__H = void 0, e && z.__e(e, n.__v));
2687
2757
  };
2688
2758
  var xt = typeof requestAnimationFrame == "function";
2689
- function Ni(t) {
2759
+ function Ri(t) {
2690
2760
  var e, n = function() {
2691
2761
  clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
2692
2762
  }, r = setTimeout(n, 35);
2693
2763
  xt && (e = requestAnimationFrame(n));
2694
2764
  }
2695
2765
  function Be(t) {
2696
- var e = P, n = t.__c;
2697
- typeof n == "function" && (t.__c = void 0, n()), P = e;
2766
+ var e = N, n = t.__c;
2767
+ typeof n == "function" && (t.__c = void 0, n()), N = e;
2698
2768
  }
2699
- function it(t) {
2700
- var e = P;
2701
- t.__c = t.__(), P = e;
2769
+ function ot(t) {
2770
+ var e = N;
2771
+ t.__c = t.__(), N = e;
2702
2772
  }
2703
2773
  function $n(t, e) {
2704
2774
  return !t || t.length !== e.length || e.some(function(n, r) {
@@ -2708,12 +2778,12 @@ function $n(t, e) {
2708
2778
  function Sn(t, e) {
2709
2779
  return typeof e == "function" ? e(t) : e;
2710
2780
  }
2711
- function Pi(t, e = {}) {
2781
+ function Bi(t, e = {}) {
2712
2782
  const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
2713
- var c, m;
2783
+ var c, h;
2714
2784
  d.preventDefault(), d.stopPropagation();
2715
2785
  const p = Array.from(((c = d.dataTransfer) == null ? void 0 : c.files) ?? []);
2716
- p.length && ((m = e.onDrop) == null || m.call(e, p), t.uppy.addFiles(p.map((v) => ({
2786
+ p.length && ((h = e.onDrop) == null || h.call(e, p), t.uppy.addFiles(p.map((v) => ({
2717
2787
  name: v.name,
2718
2788
  type: v.type,
2719
2789
  data: v
@@ -2735,9 +2805,9 @@ function Pi(t, e = {}) {
2735
2805
  }, l = (d) => {
2736
2806
  (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && a();
2737
2807
  }, u = (d) => {
2738
- var m;
2808
+ var h;
2739
2809
  const p = d.target, c = Array.from(p.files ?? []);
2740
- c.length && ((m = e.onFileInputChange) == null || m.call(e, c), t.uppy.addFiles(c.map((v) => ({
2810
+ c.length && ((h = e.onFileInputChange) == null || h.call(e, c), t.uppy.addFiles(c.map((v) => ({
2741
2811
  source: "drag-drop",
2742
2812
  name: v.name,
2743
2813
  type: v.type,
@@ -2766,11 +2836,11 @@ function Pi(t, e = {}) {
2766
2836
  }
2767
2837
  };
2768
2838
  }
2769
- function Di(t) {
2839
+ function ji(t) {
2770
2840
  const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
2771
2841
  if (!o.uppy)
2772
2842
  throw new Error("Dropzone must be used within a UppyContextProvider");
2773
- const { getRootProps: i, getInputProps: a } = wn(() => Pi(o, { noClick: s }), [o, s]);
2843
+ const { getRootProps: i, getInputProps: a } = wn(() => Bi(o, { noClick: s }), [o, s]);
2774
2844
  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", {
2775
2845
  ...i(),
2776
2846
  // biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
@@ -2785,7 +2855,7 @@ function Di(t) {
2785
2855
  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]
2786
2856
  })] });
2787
2857
  }
2788
- const zi = [
2858
+ const Li = [
2789
2859
  "B",
2790
2860
  "kB",
2791
2861
  "MB",
@@ -2795,7 +2865,7 @@ const zi = [
2795
2865
  "EB",
2796
2866
  "ZB",
2797
2867
  "YB"
2798
- ], Oi = [
2868
+ ], xi = [
2799
2869
  "B",
2800
2870
  "KiB",
2801
2871
  "MiB",
@@ -2805,7 +2875,7 @@ const zi = [
2805
2875
  "EiB",
2806
2876
  "ZiB",
2807
2877
  "YiB"
2808
- ], Ri = [
2878
+ ], qi = [
2809
2879
  "b",
2810
2880
  "kbit",
2811
2881
  "Mbit",
@@ -2815,7 +2885,7 @@ const zi = [
2815
2885
  "Ebit",
2816
2886
  "Zbit",
2817
2887
  "Ybit"
2818
- ], Bi = [
2888
+ ], Hi = [
2819
2889
  "b",
2820
2890
  "kibit",
2821
2891
  "Mibit",
@@ -2829,7 +2899,7 @@ const zi = [
2829
2899
  let r = t;
2830
2900
  return typeof e == "string" || Array.isArray(e) ? r = t.toLocaleString(e, n) : (e === !0 || n !== void 0) && (r = t.toLocaleString(void 0, n)), r;
2831
2901
  };
2832
- function ji(t, e) {
2902
+ function Gi(t, e) {
2833
2903
  if (!Number.isFinite(t))
2834
2904
  throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);
2835
2905
  e = {
@@ -2838,7 +2908,7 @@ function ji(t, e) {
2838
2908
  space: !0,
2839
2909
  ...e
2840
2910
  };
2841
- const n = e.bits ? e.binary ? Bi : Ri : e.binary ? Oi : zi, r = e.space ? " " : "";
2911
+ const n = e.bits ? e.binary ? Hi : qi : e.binary ? xi : Li, r = e.space ? " " : "";
2842
2912
  if (e.signed && t === 0)
2843
2913
  return ` 0${r}${n[0]}`;
2844
2914
  const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
@@ -2853,8 +2923,8 @@ function ji(t, e) {
2853
2923
  const l = qt(Number(t), e.locale, i), u = n[a];
2854
2924
  return o + l + r + u;
2855
2925
  }
2856
- function Li(t) {
2857
- const [e, n] = Mi(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
2926
+ function Wi(t) {
2927
+ const [e, n] = Pi(() => []), { ctx: r, editFile: s, imageThumbnail: o } = t;
2858
2928
  return bn(() => {
2859
2929
  var a;
2860
2930
  const i = (l, u, d) => {
@@ -2866,7 +2936,7 @@ function Li(t) {
2866
2936
  };
2867
2937
  }, [r.uppy]), S("ul", { "data-uppy-element": "files-list", className: "uppy-reset uppy:my-4", children: e == null ? void 0 : e.map((i) => {
2868
2938
  var a, l, u;
2869
- return S("li", { children: S(he, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(xi, { 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: ji(i.size || 0) }), S(he, { children: [s && S("button", { type: "button", className: "uppy:flex uppy:rounded uppy:text-blue-500 uppy:hover:text-blue-700 uppy:bg-transparent uppy:transition-colors", onClick: () => {
2939
+ return S("li", { children: S(he, { children: [S("div", { className: "uppy:flex uppy:items-center uppy:gap-2", children: [S("div", { className: "uppy:w-[32px] uppy:h-[32px]", children: S(Yi, { 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: Gi(i.size || 0) }), S(he, { children: [s && S("button", { type: "button", className: "uppy:flex uppy:rounded uppy:text-blue-500 uppy:hover:text-blue-700 uppy:bg-transparent uppy:transition-colors", onClick: () => {
2870
2940
  s(i);
2871
2941
  }, 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: () => {
2872
2942
  var d;
@@ -2878,7 +2948,7 @@ function Li(t) {
2878
2948
  }), value: ((u = i.progress) == null ? void 0 : u.percentage) || 0 })] }) }, i.id);
2879
2949
  }) });
2880
2950
  }
2881
- function xi(t) {
2951
+ function Yi(t) {
2882
2952
  var d, p;
2883
2953
  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" && [
2884
2954
  "zip",
@@ -2905,7 +2975,7 @@ function xi(t) {
2905
2975
  aspectRatio: "1"
2906
2976
  }, 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] }) })] });
2907
2977
  }
2908
- function qi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2978
+ function Xi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2909
2979
  const r = () => {
2910
2980
  e("ready");
2911
2981
  }, s = () => {
@@ -2915,8 +2985,8 @@ function qi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2915
2985
  }, i = () => {
2916
2986
  e("uploading");
2917
2987
  }, a = (c) => {
2918
- var m, v;
2919
- ((m = c == null ? void 0 : c.failed) != null && m.length || (v = c == null ? void 0 : c.successful) != null && v.length) && (e("complete"), n(0));
2988
+ var h, v;
2989
+ ((h = c == null ? void 0 : c.failed) != null && h.length || (v = c == null ? void 0 : c.successful) != null && v.length) && (e("complete"), n(0));
2920
2990
  }, l = () => {
2921
2991
  e("error"), n(0);
2922
2992
  }, u = () => {
@@ -2932,7 +3002,7 @@ function qi({ uppy: t, onStatusChange: e, onProgressChange: n }) {
2932
3002
  }
2933
3003
  };
2934
3004
  }
2935
- const Fn = Symbol("uppy"), Hi = E({
3005
+ const Fn = Symbol("uppy"), Zi = E({
2936
3006
  name: "UppyContextProvider",
2937
3007
  props: {
2938
3008
  uppy: {
@@ -2951,7 +3021,7 @@ const Fn = Symbol("uppy"), Hi = E({
2951
3021
  return ye(() => {
2952
3022
  if (!t.uppy)
2953
3023
  throw new Error("UppyContextProvider: passing `uppy` as a prop is required");
2954
- o = qi({
3024
+ o = Xi({
2955
3025
  uppy: t.uppy,
2956
3026
  onStatusChange: (i) => {
2957
3027
  n.value = i, s.status = i;
@@ -2960,7 +3030,7 @@ const Fn = Symbol("uppy"), Hi = E({
2960
3030
  r.value = i, s.progress = i;
2961
3031
  }
2962
3032
  });
2963
- }), ht(() => {
3033
+ }), gt(() => {
2964
3034
  o == null || o.cleanup();
2965
3035
  }), () => {
2966
3036
  var i;
@@ -2976,13 +3046,13 @@ function Tn() {
2976
3046
  progress: 0
2977
3047
  };
2978
3048
  }
2979
- const Gi = E({
3049
+ const Ki = E({
2980
3050
  name: "Dropzone",
2981
3051
  props: ["width", "height", "note", "noClick"],
2982
3052
  setup(t) {
2983
3053
  const e = G(null), n = Tn();
2984
3054
  function r() {
2985
- e.value && gn(St(Di, {
3055
+ e.value && gn(St(ji, {
2986
3056
  ...t,
2987
3057
  ctx: n
2988
3058
  }), e.value);
@@ -2995,13 +3065,13 @@ const Gi = E({
2995
3065
  r();
2996
3066
  }, { deep: !0 }), () => rn("div", { ref: e });
2997
3067
  }
2998
- }), Wi = E({
3068
+ }), Ji = E({
2999
3069
  name: "FilesList",
3000
3070
  props: ["editFile", "imageThumbnail"],
3001
3071
  setup(t) {
3002
3072
  const e = G(null), n = Tn();
3003
3073
  function r() {
3004
- e.value && gn(St(Li, {
3074
+ e.value && gn(St(Wi, {
3005
3075
  ...t,
3006
3076
  ctx: n
3007
3077
  }), e.value);
@@ -3087,19 +3157,19 @@ function In(t) {
3087
3157
  const e = t.name ? (n = kn(t.name).extension) == null ? void 0 : n.toLowerCase() : null;
3088
3158
  return e && e in Ht ? Ht[e] : "application/octet-stream";
3089
3159
  }
3090
- function Yi(t) {
3160
+ function Qi(t) {
3091
3161
  return t.charCodeAt(0).toString(32);
3092
3162
  }
3093
3163
  function Gt(t) {
3094
3164
  let e = "";
3095
- return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${Yi(n)}`, "/")) + e;
3165
+ return t.replace(/[^A-Z0-9]/gi, (n) => (e += `-${Qi(n)}`, "/")) + e;
3096
3166
  }
3097
- function Xi(t, e) {
3167
+ function eo(t, e) {
3098
3168
  var r;
3099
3169
  let n = e || "uppy";
3100
3170
  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;
3101
3171
  }
3102
- function Zi(t) {
3172
+ function to(t) {
3103
3173
  return !t.isRemote || !t.remote ? !1 : (/* @__PURE__ */ new Set([
3104
3174
  "box",
3105
3175
  "dropbox",
@@ -3108,23 +3178,23 @@ function Zi(t) {
3108
3178
  "unsplash"
3109
3179
  ])).has(t.remote.provider);
3110
3180
  }
3111
- function Ki(t, e) {
3112
- if (Zi(t))
3181
+ function no(t, e) {
3182
+ if (to(t))
3113
3183
  return t.id;
3114
3184
  const n = In(t);
3115
- return Xi({
3185
+ return eo({
3116
3186
  ...t,
3117
3187
  type: n
3118
3188
  }, e);
3119
3189
  }
3120
- function Qe(t) {
3190
+ function et(t) {
3121
3191
  return t < 10 ? `0${t}` : t.toString();
3122
3192
  }
3123
3193
  function je() {
3124
- const t = /* @__PURE__ */ new Date(), e = Qe(t.getHours()), n = Qe(t.getMinutes()), r = Qe(t.getSeconds());
3194
+ const t = /* @__PURE__ */ new Date(), e = et(t.getHours()), n = et(t.getMinutes()), r = et(t.getSeconds());
3125
3195
  return `${e}:${n}:${r}`;
3126
3196
  }
3127
- function Ji(t, e, n) {
3197
+ function ro(t, e, n) {
3128
3198
  const r = [];
3129
3199
  return t.forEach((s) => typeof s != "string" ? r.push(s) : e[Symbol.split](s).forEach((o, i, a) => {
3130
3200
  o !== "" && r.push(o), i < a.length - 1 && r.push(n);
@@ -3148,25 +3218,25 @@ function Wt(t, e) {
3148
3218
  for (const o of Object.keys(e))
3149
3219
  if (o !== "_") {
3150
3220
  let i = e[o];
3151
- typeof i == "string" && (i = n[Symbol.replace](i, r)), s = Ji(s, new RegExp(`%\\{${o}\\}`, "g"), i);
3221
+ typeof i == "string" && (i = n[Symbol.replace](i, r)), s = ro(s, new RegExp(`%\\{${o}\\}`, "g"), i);
3152
3222
  }
3153
3223
  return s;
3154
3224
  }
3155
- const Qi = (t) => {
3225
+ const so = (t) => {
3156
3226
  throw new Error(`missing string: ${t}`);
3157
3227
  };
3158
- var Ie, Ee, ot;
3159
- class eo {
3160
- constructor(e, { onMissingKey: n = Qi } = {}) {
3161
- x(this, Ee);
3162
- R(this, "locale");
3163
- x(this, Ie);
3228
+ var Ie, Ee, at;
3229
+ class io {
3230
+ constructor(e, { onMissingKey: n = so } = {}) {
3231
+ q(this, Ee);
3232
+ B(this, "locale");
3233
+ q(this, Ie);
3164
3234
  this.locale = {
3165
3235
  strings: {},
3166
3236
  pluralize(r) {
3167
3237
  return r === 1 ? 0 : 1;
3168
3238
  }
3169
- }, Array.isArray(e) ? e.forEach(F(this, Ee, ot), this) : F(this, Ee, ot).call(this, e), Ue(this, Ie, n);
3239
+ }, Array.isArray(e) ? e.forEach(F(this, Ee, at), this) : F(this, Ee, at).call(this, e), Ue(this, Ie, n);
3170
3240
  }
3171
3241
  /**
3172
3242
  * Public translate method
@@ -3185,7 +3255,7 @@ class eo {
3185
3255
  */
3186
3256
  translateArray(e, n) {
3187
3257
  let r = this.locale.strings[e];
3188
- if (r == null && (b(this, Ie).call(this, e), r = e), typeof r == "object") {
3258
+ if (r == null && (w(this, Ie).call(this, e), r = e), typeof r == "object") {
3189
3259
  if (n && typeof n.smart_count < "u") {
3190
3260
  const o = this.locale.pluralize(n.smart_count);
3191
3261
  return Wt(r[o], n);
@@ -3197,7 +3267,7 @@ class eo {
3197
3267
  return Wt(r, n);
3198
3268
  }
3199
3269
  }
3200
- Ie = new WeakMap(), Ee = new WeakSet(), ot = function(e) {
3270
+ Ie = new WeakMap(), Ee = new WeakSet(), at = function(e) {
3201
3271
  if (!(e != null && e.strings))
3202
3272
  return;
3203
3273
  const n = this.locale;
@@ -3206,22 +3276,22 @@ Ie = new WeakMap(), Ee = new WeakSet(), ot = function(e) {
3206
3276
  pluralize: e.pluralize || n.pluralize
3207
3277
  });
3208
3278
  };
3209
- const to = {
3279
+ const oo = {
3210
3280
  debug: () => {
3211
3281
  },
3212
3282
  warn: () => {
3213
3283
  },
3214
3284
  error: (...t) => console.error(`[Uppy] [${je()}]`, ...t)
3215
- }, no = {
3285
+ }, ao = {
3216
3286
  debug: (...t) => console.debug(`[Uppy] [${je()}]`, ...t),
3217
3287
  warn: (...t) => console.warn(`[Uppy] [${je()}]`, ...t),
3218
3288
  error: (...t) => console.error(`[Uppy] [${je()}]`, ...t)
3219
3289
  };
3220
- var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3221
- function Xe(t) {
3290
+ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3291
+ function Ze(t) {
3222
3292
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3223
3293
  }
3224
- var ro = function(e) {
3294
+ var lo = function(e) {
3225
3295
  if (typeof e != "number" || Number.isNaN(e))
3226
3296
  throw new TypeError(`Expected a number, got ${typeof e}`);
3227
3297
  const n = e < 0;
@@ -3231,7 +3301,7 @@ var ro = function(e) {
3231
3301
  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];
3232
3302
  return `${i >= 10 || i % 1 === 0 ? Math.round(i) : i.toFixed(1)} ${a}`;
3233
3303
  };
3234
- const De = /* @__PURE__ */ Xe(ro);
3304
+ const Pe = /* @__PURE__ */ Ze(lo);
3235
3305
  function En(t, e) {
3236
3306
  this.text = t = t || "", this.hasWild = ~t.indexOf("*"), this.separator = e, this.parts = t.split(e);
3237
3307
  }
@@ -3255,17 +3325,17 @@ En.prototype.match = function(t) {
3255
3325
  }
3256
3326
  return e;
3257
3327
  };
3258
- var so = function(t, e, n) {
3328
+ var uo = function(t, e, n) {
3259
3329
  var r = new En(t, n || /[\/\.]/);
3260
3330
  return typeof e < "u" ? r.match(e) : r;
3261
- }, io = so, oo = /[\/\+\.]/, ao = function(t, e) {
3331
+ }, po = uo, co = /[\/\+\.]/, fo = function(t, e) {
3262
3332
  function n(r) {
3263
- var s = io(r, t, oo);
3333
+ var s = po(r, t, co);
3264
3334
  return s && s.length >= 2;
3265
3335
  }
3266
3336
  return e ? n(e.split(";")[0]) : n;
3267
3337
  };
3268
- const lo = /* @__PURE__ */ Xe(ao), uo = {
3338
+ const mo = /* @__PURE__ */ Ze(fo), ho = {
3269
3339
  maxFileSize: null,
3270
3340
  minFileSize: null,
3271
3341
  maxTotalFileSize: null,
@@ -3277,16 +3347,16 @@ const lo = /* @__PURE__ */ Xe(ao), uo = {
3277
3347
  class J extends Error {
3278
3348
  constructor(n, r) {
3279
3349
  super(n);
3280
- R(this, "isUserFacing");
3281
- R(this, "file");
3282
- R(this, "isRestriction", !0);
3350
+ B(this, "isUserFacing");
3351
+ B(this, "file");
3352
+ B(this, "isRestriction", !0);
3283
3353
  this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
3284
3354
  }
3285
3355
  }
3286
- class po {
3356
+ class go {
3287
3357
  constructor(e, n) {
3288
- R(this, "getI18n");
3289
- R(this, "getOpts");
3358
+ B(this, "getI18n");
3359
+ B(this, "getOpts");
3290
3360
  this.getI18n = n, this.getOpts = () => {
3291
3361
  var s;
3292
3362
  const r = e();
@@ -3306,14 +3376,14 @@ class po {
3306
3376
  const o = [...e, ...n].reduce((i, a) => i + (a.size ?? 0), 0);
3307
3377
  if (o > r)
3308
3378
  throw new J(this.getI18n()("aggregateExceedsSize", {
3309
- sizeAllowed: De(r),
3310
- size: De(o)
3379
+ sizeAllowed: Pe(r),
3380
+ size: Pe(o)
3311
3381
  }));
3312
3382
  }
3313
3383
  }
3314
3384
  validateSingleFile(e) {
3315
3385
  const { maxFileSize: n, minFileSize: r, allowedFileTypes: s } = this.getOpts().restrictions;
3316
- if (s && !s.some((i) => i.includes("/") ? e.type ? lo(e.type.replace(/;.*?$/, ""), i) : !1 : i[0] === "." && e.extension ? e.extension.toLowerCase() === i.slice(1).toLowerCase() : !1)) {
3386
+ if (s && !s.some((i) => i.includes("/") ? e.type ? mo(e.type.replace(/;.*?$/, ""), i) : !1 : i[0] === "." && e.extension ? e.extension.toLowerCase() === i.slice(1).toLowerCase() : !1)) {
3317
3387
  const i = s.join(", ");
3318
3388
  throw new J(this.getI18n()("youCanOnlyUploadFileTypes", {
3319
3389
  types: i
@@ -3321,12 +3391,12 @@ class po {
3321
3391
  }
3322
3392
  if (n && e.size != null && e.size > n)
3323
3393
  throw new J(this.getI18n()("exceedsSize", {
3324
- size: De(n),
3394
+ size: Pe(n),
3325
3395
  file: e.name ?? this.getI18n()("unnamed")
3326
3396
  }), { file: e });
3327
3397
  if (r && e.size != null && e.size < r)
3328
3398
  throw new J(this.getI18n()("inferiorSize", {
3329
- size: De(r)
3399
+ size: Pe(r)
3330
3400
  }), { file: e });
3331
3401
  }
3332
3402
  validate(e, n) {
@@ -3350,15 +3420,15 @@ class po {
3350
3420
  return { missingFields: s, error: n };
3351
3421
  }
3352
3422
  }
3353
- const co = "5.0.0", fo = {
3354
- version: co
3423
+ const yo = "5.0.0", vo = {
3424
+ version: yo
3355
3425
  };
3356
3426
  var ce, xe, Vn;
3357
3427
  class Cn {
3358
3428
  constructor() {
3359
- x(this, xe);
3360
- R(this, "state", {});
3361
- x(this, ce, /* @__PURE__ */ new Set());
3429
+ q(this, xe);
3430
+ B(this, "state", {});
3431
+ q(this, ce, /* @__PURE__ */ new Set());
3362
3432
  }
3363
3433
  getState() {
3364
3434
  return this.state;
@@ -3368,64 +3438,64 @@ class Cn {
3368
3438
  this.state = r, F(this, xe, Vn).call(this, n, r, e);
3369
3439
  }
3370
3440
  subscribe(e) {
3371
- return b(this, ce).add(e), () => {
3372
- b(this, ce).delete(e);
3441
+ return w(this, ce).add(e), () => {
3442
+ w(this, ce).delete(e);
3373
3443
  };
3374
3444
  }
3375
3445
  }
3376
3446
  ce = new WeakMap(), xe = new WeakSet(), Vn = function(...e) {
3377
- b(this, ce).forEach((n) => {
3447
+ w(this, ce).forEach((n) => {
3378
3448
  n(...e);
3379
3449
  });
3380
- }, R(Cn, "VERSION", fo.version);
3381
- function mo(t) {
3450
+ }, B(Cn, "VERSION", vo.version);
3451
+ function _o(t) {
3382
3452
  var e = typeof t;
3383
3453
  return t != null && (e == "object" || e == "function");
3384
3454
  }
3385
- var It = mo, ho = typeof Pe == "object" && Pe && Pe.Object === Object && Pe, go = ho, yo = go, vo = typeof self == "object" && self && self.Object === Object && self, _o = yo || vo || Function("return this")(), Mn = _o, bo = Mn, wo = function() {
3386
- return bo.Date.now();
3387
- }, $o = wo, So = /\s/;
3388
- function Fo(t) {
3389
- for (var e = t.length; e-- && So.test(t.charAt(e)); )
3455
+ var It = _o, bo = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, wo = bo, $o = wo, So = typeof self == "object" && self && self.Object === Object && self, Fo = $o || So || Function("return this")(), Mn = Fo, To = Mn, ko = function() {
3456
+ return To.Date.now();
3457
+ }, Io = ko, Eo = /\s/;
3458
+ function Co(t) {
3459
+ for (var e = t.length; e-- && Eo.test(t.charAt(e)); )
3390
3460
  ;
3391
3461
  return e;
3392
3462
  }
3393
- var To = Fo, ko = To, Io = /^\s+/;
3394
- function Eo(t) {
3395
- return t && t.slice(0, ko(t) + 1).replace(Io, "");
3463
+ var Vo = Co, Mo = Vo, Uo = /^\s+/;
3464
+ function Ao(t) {
3465
+ return t && t.slice(0, Mo(t) + 1).replace(Uo, "");
3396
3466
  }
3397
- var Co = Eo, Vo = Mn, Mo = Vo.Symbol, Un = Mo, Yt = Un, An = Object.prototype, Uo = An.hasOwnProperty, Ao = An.toString, we = Yt ? Yt.toStringTag : void 0;
3398
- function No(t) {
3399
- var e = Uo.call(t, we), n = t[we];
3467
+ var Do = Ao, No = Mn, Po = No.Symbol, Un = Po, Yt = Un, An = Object.prototype, zo = An.hasOwnProperty, Oo = An.toString, we = Yt ? Yt.toStringTag : void 0;
3468
+ function Ro(t) {
3469
+ var e = zo.call(t, we), n = t[we];
3400
3470
  try {
3401
3471
  t[we] = void 0;
3402
3472
  var r = !0;
3403
3473
  } catch {
3404
3474
  }
3405
- var s = Ao.call(t);
3475
+ var s = Oo.call(t);
3406
3476
  return r && (e ? t[we] = n : delete t[we]), s;
3407
3477
  }
3408
- var Po = No, Do = Object.prototype, zo = Do.toString;
3409
- function Oo(t) {
3410
- return zo.call(t);
3478
+ var Bo = Ro, jo = Object.prototype, Lo = jo.toString;
3479
+ function xo(t) {
3480
+ return Lo.call(t);
3411
3481
  }
3412
- var Ro = Oo, Xt = Un, Bo = Po, jo = Ro, Lo = "[object Null]", xo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3413
- function qo(t) {
3414
- return t == null ? t === void 0 ? xo : Lo : Zt && Zt in Object(t) ? Bo(t) : jo(t);
3482
+ var qo = xo, Xt = Un, Ho = Bo, Go = qo, Wo = "[object Null]", Yo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3483
+ function Xo(t) {
3484
+ return t == null ? t === void 0 ? Yo : Wo : Zt && Zt in Object(t) ? Ho(t) : Go(t);
3415
3485
  }
3416
- var Ho = qo;
3417
- function Go(t) {
3486
+ var Zo = Xo;
3487
+ function Ko(t) {
3418
3488
  return t != null && typeof t == "object";
3419
3489
  }
3420
- var Wo = Go, Yo = Ho, Xo = Wo, Zo = "[object Symbol]";
3421
- function Ko(t) {
3422
- return typeof t == "symbol" || Xo(t) && Yo(t) == Zo;
3490
+ var Jo = Ko, Qo = Zo, ea = Jo, ta = "[object Symbol]";
3491
+ function na(t) {
3492
+ return typeof t == "symbol" || ea(t) && Qo(t) == ta;
3423
3493
  }
3424
- var Jo = Ko, Qo = Co, Kt = It, ea = Jo, Jt = NaN, ta = /^[-+]0x[0-9a-f]+$/i, na = /^0b[01]+$/i, ra = /^0o[0-7]+$/i, sa = parseInt;
3425
- function ia(t) {
3494
+ var ra = na, sa = Do, Kt = It, ia = ra, Jt = NaN, oa = /^[-+]0x[0-9a-f]+$/i, aa = /^0b[01]+$/i, la = /^0o[0-7]+$/i, ua = parseInt;
3495
+ function da(t) {
3426
3496
  if (typeof t == "number")
3427
3497
  return t;
3428
- if (ea(t))
3498
+ if (ia(t))
3429
3499
  return Jt;
3430
3500
  if (Kt(t)) {
3431
3501
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
@@ -3433,76 +3503,76 @@ function ia(t) {
3433
3503
  }
3434
3504
  if (typeof t != "string")
3435
3505
  return t === 0 ? t : +t;
3436
- t = Qo(t);
3437
- var n = na.test(t);
3438
- return n || ra.test(t) ? sa(t.slice(2), n ? 2 : 8) : ta.test(t) ? Jt : +t;
3506
+ t = sa(t);
3507
+ var n = aa.test(t);
3508
+ return n || la.test(t) ? ua(t.slice(2), n ? 2 : 8) : oa.test(t) ? Jt : +t;
3439
3509
  }
3440
- var oa = ia, aa = It, et = $o, Qt = oa, la = "Expected a function", ua = Math.max, da = Math.min;
3441
- function pa(t, e, n) {
3510
+ var pa = da, ca = It, tt = Io, Qt = pa, fa = "Expected a function", ma = Math.max, ha = Math.min;
3511
+ function ga(t, e, n) {
3442
3512
  var r, s, o, i, a, l, u = 0, d = !1, p = !1, c = !0;
3443
3513
  if (typeof t != "function")
3444
- throw new TypeError(la);
3445
- e = Qt(e) || 0, aa(n) && (d = !!n.leading, p = "maxWait" in n, o = p ? ua(Qt(n.maxWait) || 0, e) : o, c = "trailing" in n ? !!n.trailing : c);
3446
- function m(w) {
3447
- var U = r, D = s;
3448
- return r = s = void 0, u = w, i = t.apply(D, U), i;
3514
+ throw new TypeError(fa);
3515
+ e = Qt(e) || 0, ca(n) && (d = !!n.leading, p = "maxWait" in n, o = p ? ma(Qt(n.maxWait) || 0, e) : o, c = "trailing" in n ? !!n.trailing : c);
3516
+ function h($) {
3517
+ var U = r, P = s;
3518
+ return r = s = void 0, u = $, i = t.apply(P, U), i;
3449
3519
  }
3450
- function v(w) {
3451
- return u = w, a = setTimeout(k, e), d ? m(w) : i;
3520
+ function v($) {
3521
+ return u = $, a = setTimeout(k, e), d ? h($) : i;
3452
3522
  }
3453
- function V(w) {
3454
- var U = w - l, D = w - u, H = e - U;
3455
- return p ? da(H, o - D) : H;
3523
+ function M($) {
3524
+ var U = $ - l, P = $ - u, H = e - U;
3525
+ return p ? ha(H, o - P) : H;
3456
3526
  }
3457
- function A(w) {
3458
- var U = w - l, D = w - u;
3459
- return l === void 0 || U >= e || U < 0 || p && D >= o;
3527
+ function A($) {
3528
+ var U = $ - l, P = $ - u;
3529
+ return l === void 0 || U >= e || U < 0 || p && P >= o;
3460
3530
  }
3461
3531
  function k() {
3462
- var w = et();
3463
- if (A(w))
3464
- return I(w);
3465
- a = setTimeout(k, V(w));
3532
+ var $ = tt();
3533
+ if (A($))
3534
+ return I($);
3535
+ a = setTimeout(k, M($));
3466
3536
  }
3467
- function I(w) {
3468
- return a = void 0, c && r ? m(w) : (r = s = void 0, i);
3537
+ function I($) {
3538
+ return a = void 0, c && r ? h($) : (r = s = void 0, i);
3469
3539
  }
3470
3540
  function Y() {
3471
3541
  a !== void 0 && clearTimeout(a), u = 0, r = l = s = a = void 0;
3472
3542
  }
3473
3543
  function f() {
3474
- return a === void 0 ? i : I(et());
3544
+ return a === void 0 ? i : I(tt());
3475
3545
  }
3476
3546
  function _() {
3477
- var w = et(), U = A(w);
3478
- if (r = arguments, s = this, l = w, U) {
3547
+ var $ = tt(), U = A($);
3548
+ if (r = arguments, s = this, l = $, U) {
3479
3549
  if (a === void 0)
3480
3550
  return v(l);
3481
3551
  if (p)
3482
- return clearTimeout(a), a = setTimeout(k, e), m(l);
3552
+ return clearTimeout(a), a = setTimeout(k, e), h(l);
3483
3553
  }
3484
3554
  return a === void 0 && (a = setTimeout(k, e)), i;
3485
3555
  }
3486
3556
  return _.cancel = Y, _.flush = f, _;
3487
3557
  }
3488
- var ca = pa, fa = ca, ma = It, ha = "Expected a function";
3489
- function ga(t, e, n) {
3558
+ var ya = ga, va = ya, _a = It, ba = "Expected a function";
3559
+ function wa(t, e, n) {
3490
3560
  var r = !0, s = !0;
3491
3561
  if (typeof t != "function")
3492
- throw new TypeError(ha);
3493
- return ma(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), fa(t, e, {
3562
+ throw new TypeError(ba);
3563
+ return _a(n) && (r = "leading" in n ? !!n.leading : r, s = "trailing" in n ? !!n.trailing : s), va(t, e, {
3494
3564
  leading: r,
3495
3565
  maxWait: e,
3496
3566
  trailing: s
3497
3567
  });
3498
3568
  }
3499
- var ya = ga;
3500
- const va = /* @__PURE__ */ Xe(ya);
3501
- var _a = function() {
3569
+ var $a = wa;
3570
+ const Sa = /* @__PURE__ */ Ze($a);
3571
+ var Fa = function() {
3502
3572
  var e = {}, n = e._fns = {};
3503
3573
  e.emit = function(i, a, l, u, d, p, c) {
3504
- var m = r(i);
3505
- m.length && s(i, m, [a, l, u, d, p, c]);
3574
+ var h = r(i);
3575
+ h.length && s(i, h, [a, l, u, d, p, c]);
3506
3576
  }, e.on = function(i, a) {
3507
3577
  n[i] || (n[i] = []), n[i].push(a);
3508
3578
  }, e.once = function(i, a) {
@@ -3537,20 +3607,20 @@ var _a = function() {
3537
3607
  }
3538
3608
  return e;
3539
3609
  };
3540
- const ba = /* @__PURE__ */ Xe(_a);
3541
- let wa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", $a = (t = 21) => {
3610
+ const Ta = /* @__PURE__ */ Ze(Fa);
3611
+ let ka = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ia = (t = 21) => {
3542
3612
  let e = "", n = t | 0;
3543
3613
  for (; n--; )
3544
- e += wa[Math.random() * 64 | 0];
3614
+ e += ka[Math.random() * 64 | 0];
3545
3615
  return e;
3546
3616
  };
3547
- const Sa = "5.2.0", Fa = {
3548
- version: Sa
3617
+ const Ea = "5.2.0", Ca = {
3618
+ version: Ea
3549
3619
  };
3550
- function Ta(t, e) {
3620
+ function Va(t, e) {
3551
3621
  return e.name ? e.name : t.split("/")[0] === "image" ? `${t.split("/")[0]}.${t.split("/")[1]}` : "noname";
3552
3622
  }
3553
- const ka = {
3623
+ const Ma = {
3554
3624
  strings: {
3555
3625
  addBulkFilesFailed: {
3556
3626
  0: "Failed to add %{smart_count} file due to an internal error",
@@ -3615,7 +3685,7 @@ const ka = {
3615
3685
  pleaseWait: "Please wait"
3616
3686
  }
3617
3687
  };
3618
- function Ia(t) {
3688
+ function Ua(t) {
3619
3689
  if (t == null && typeof navigator < "u" && (t = navigator.userAgent), !t)
3620
3690
  return !0;
3621
3691
  const e = /Edge\/(\d+\.\d+)/.exec(t);
@@ -3630,32 +3700,32 @@ const ze = {
3630
3700
  error: null,
3631
3701
  recoveredState: null
3632
3702
  };
3633
- var Z, K, Ce, le, fe, me, ue, y, oe, lt, Nn, Pn, Dn, ut, dt, pt, ct, qe, ft, de, zn, On, se, Ve, $e, Rn, mt, Se;
3703
+ var Z, K, Ce, le, fe, me, ue, y, oe, ut, Dn, Nn, Pn, dt, pt, ct, ft, qe, mt, de, zn, On, se, Ve, $e, Rn, ht, Se;
3634
3704
  const He = class He {
3635
3705
  /**
3636
3706
  * Instantiate Uppy
3637
3707
  */
3638
3708
  constructor(e) {
3639
- x(this, y);
3640
- x(this, Z, /* @__PURE__ */ Object.create(null));
3641
- x(this, K);
3642
- x(this, Ce);
3643
- x(this, le, ba());
3644
- x(this, fe, /* @__PURE__ */ new Set());
3645
- x(this, me, /* @__PURE__ */ new Set());
3646
- x(this, ue, /* @__PURE__ */ new Set());
3647
- R(this, "defaultLocale");
3648
- R(this, "locale");
3709
+ q(this, y);
3710
+ q(this, Z, /* @__PURE__ */ Object.create(null));
3711
+ q(this, K);
3712
+ q(this, Ce);
3713
+ q(this, le, Ta());
3714
+ q(this, fe, /* @__PURE__ */ new Set());
3715
+ q(this, me, /* @__PURE__ */ new Set());
3716
+ q(this, ue, /* @__PURE__ */ new Set());
3717
+ B(this, "defaultLocale");
3718
+ B(this, "locale");
3649
3719
  // The user optionally passes in options, but we set defaults for missing options.
3650
3720
  // We consider all options present after the contructor has run.
3651
- R(this, "opts");
3652
- R(this, "store");
3721
+ B(this, "opts");
3722
+ B(this, "store");
3653
3723
  // Warning: do not use this from a plugin, as it will cause the plugins' translations to be missing
3654
- R(this, "i18n");
3655
- R(this, "i18nArray");
3656
- R(this, "scheduledAutoProceed", null);
3657
- R(this, "wasOffline", !1);
3658
- x(this, qe, (e, n) => {
3724
+ B(this, "i18n");
3725
+ B(this, "i18nArray");
3726
+ B(this, "scheduledAutoProceed", null);
3727
+ B(this, "wasOffline", !1);
3728
+ q(this, qe, (e, n) => {
3659
3729
  const r = e ? this.getFile(e.id) : void 0;
3660
3730
  if (e == null || !r) {
3661
3731
  this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
@@ -3681,7 +3751,7 @@ const He = class He {
3681
3751
  ...r.progress,
3682
3752
  ...s
3683
3753
  }
3684
- }), b(this, de).call(this);
3754
+ }), w(this, de).call(this);
3685
3755
  });
3686
3756
  // ___Why throttle at 500ms?
3687
3757
  // - We must throttle at >250ms for superfocus in Dashboard to work well
@@ -3690,8 +3760,8 @@ const He = class He {
3690
3760
  // and click 'ADD MORE FILES', - focus won't activate in Firefox.
3691
3761
  // - We must throttle at around >500ms to avoid performance lags.
3692
3762
  // [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
3693
- x(this, de, va(() => F(this, y, ft).call(this), 500, { leading: !0, trailing: !0 }));
3694
- x(this, se, this.updateOnlineStatus.bind(this));
3763
+ q(this, de, Sa(() => F(this, y, mt).call(this), 500, { leading: !0, trailing: !0 }));
3764
+ q(this, se, this.updateOnlineStatus.bind(this));
3695
3765
  // We need to store request clients by a unique ID, so we can share RequestClient instances across files
3696
3766
  // this allows us to do rate limiting and synchronous operations like refreshing provider tokens
3697
3767
  // example: refreshing tokens: if each file has their own requestclient,
@@ -3702,19 +3772,19 @@ const He = class He {
3702
3772
  // back when we had a requestclient per file, once an access token expired,
3703
3773
  // all 6 files would go ahead and refresh the token at the same time
3704
3774
  // (calling /refresh-token up to 6 times), which will probably fail for some providers
3705
- x(this, Ve, /* @__PURE__ */ new Map());
3706
- this.defaultLocale = ka;
3775
+ q(this, Ve, /* @__PURE__ */ new Map());
3776
+ this.defaultLocale = Ma;
3707
3777
  const n = {
3708
3778
  id: "uppy",
3709
3779
  autoProceed: !1,
3710
3780
  allowMultipleUploadBatches: !0,
3711
3781
  debug: !1,
3712
- restrictions: uo,
3782
+ restrictions: ho,
3713
3783
  meta: {},
3714
3784
  onBeforeFileAdded: (s, o) => !Object.hasOwn(o, s.id),
3715
3785
  onBeforeUpload: (s) => s,
3716
3786
  store: new Cn(),
3717
- logger: to,
3787
+ logger: oo,
3718
3788
  infoTimeout: 5e3
3719
3789
  }, r = { ...n, ...e };
3720
3790
  this.opts = {
@@ -3723,33 +3793,33 @@ const He = class He {
3723
3793
  ...n.restrictions,
3724
3794
  ...e == null ? void 0 : e.restrictions
3725
3795
  }
3726
- }, 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 = no), this.log(`Using Core v${He.VERSION}`), this.i18nInit(), this.store = this.opts.store, this.setState({
3796
+ }, e != null && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e != null && e.debug && (this.opts.logger = ao), this.log(`Using Core v${He.VERSION}`), this.i18nInit(), this.store = this.opts.store, this.setState({
3727
3797
  ...ze,
3728
3798
  plugins: {},
3729
3799
  files: {},
3730
3800
  currentUploads: {},
3731
3801
  capabilities: {
3732
- uploadProgress: Ia(),
3802
+ uploadProgress: Ua(),
3733
3803
  individualCancellation: !0,
3734
3804
  resumableUploads: !1
3735
3805
  },
3736
3806
  meta: { ...this.opts.meta },
3737
3807
  info: []
3738
- }), Ue(this, K, new po(() => this.opts, () => this.i18n)), Ue(this, Ce, this.store.subscribe((s, o, i) => {
3808
+ }), Ue(this, K, new go(() => this.opts, () => this.i18n)), Ue(this, Ce, this.store.subscribe((s, o, i) => {
3739
3809
  this.emit("state-update", s, o, i), this.updateAll(o);
3740
3810
  })), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), F(this, y, On).call(this);
3741
3811
  }
3742
3812
  emit(e, ...n) {
3743
- b(this, le).emit(e, ...n);
3813
+ w(this, le).emit(e, ...n);
3744
3814
  }
3745
3815
  on(e, n) {
3746
- return b(this, le).on(e, n), this;
3816
+ return w(this, le).on(e, n), this;
3747
3817
  }
3748
3818
  once(e, n) {
3749
- return b(this, le).once(e, n), this;
3819
+ return w(this, le).once(e, n), this;
3750
3820
  }
3751
3821
  off(e, n) {
3752
- return b(this, le).off(e, n), this;
3822
+ return w(this, le).off(e, n), this;
3753
3823
  }
3754
3824
  /**
3755
3825
  * Iterate on all plugins and run `update` on them.
@@ -3797,7 +3867,7 @@ const He = class He {
3797
3867
  this.patchFilesState({ [e]: n });
3798
3868
  }
3799
3869
  i18nInit() {
3800
- const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new eo([this.defaultLocale, this.opts.locale], {
3870
+ const e = (r) => this.log(`Missing i18n string: ${r}`, "error"), n = new io([this.defaultLocale, this.opts.locale], {
3801
3871
  onMissingKey: e
3802
3872
  });
3803
3873
  this.i18n = n.translate.bind(n), this.i18nArray = n.translateArray.bind(n), this.locale = n.locale;
@@ -3843,22 +3913,22 @@ const He = class He {
3843
3913
  this.setState({ ...ze, files: {} });
3844
3914
  }
3845
3915
  addPreProcessor(e) {
3846
- b(this, fe).add(e);
3916
+ w(this, fe).add(e);
3847
3917
  }
3848
3918
  removePreProcessor(e) {
3849
- return b(this, fe).delete(e);
3919
+ return w(this, fe).delete(e);
3850
3920
  }
3851
3921
  addPostProcessor(e) {
3852
- b(this, ue).add(e);
3922
+ w(this, ue).add(e);
3853
3923
  }
3854
3924
  removePostProcessor(e) {
3855
- return b(this, ue).delete(e);
3925
+ return w(this, ue).delete(e);
3856
3926
  }
3857
3927
  addUploader(e) {
3858
- b(this, me).add(e);
3928
+ w(this, me).add(e);
3859
3929
  }
3860
3930
  removeUploader(e) {
3861
- return b(this, me).delete(e);
3931
+ return w(this, me).delete(e);
3862
3932
  }
3863
3933
  setMeta(e) {
3864
3934
  const n = { ...this.getState().meta, ...e }, r = { ...this.getState().files };
@@ -3898,10 +3968,10 @@ const He = class He {
3898
3968
  return e.map((n) => this.getFile(n));
3899
3969
  }
3900
3970
  getObjectOfFilesPerState() {
3901
- const { files: e, totalProgress: n, error: r } = this.getState(), s = Object.values(e), o = [], i = [], a = [], l = [], u = [], d = [], p = [], c = [], m = [];
3971
+ const { files: e, totalProgress: n, error: r } = this.getState(), s = Object.values(e), o = [], i = [], a = [], l = [], u = [], d = [], p = [], c = [], h = [];
3902
3972
  for (const v of s) {
3903
- const { progress: V } = v;
3904
- !V.uploadComplete && V.uploadStarted && (o.push(v), v.isPaused || c.push(v)), V.uploadStarted || i.push(v), (V.uploadStarted || V.preprocess || V.postprocess) && a.push(v), V.uploadStarted && l.push(v), v.isPaused && u.push(v), V.uploadComplete && d.push(v), v.error && p.push(v), (V.preprocess || V.postprocess) && m.push(v);
3973
+ const { progress: M } = v;
3974
+ !M.uploadComplete && M.uploadStarted && (o.push(v), v.isPaused || c.push(v)), M.uploadStarted || i.push(v), (M.uploadStarted || M.preprocess || M.postprocess) && a.push(v), M.uploadStarted && l.push(v), v.isPaused && u.push(v), M.uploadComplete && d.push(v), v.error && p.push(v), (M.preprocess || M.postprocess) && h.push(v);
3905
3975
  }
3906
3976
  return {
3907
3977
  newFiles: i,
@@ -3912,9 +3982,9 @@ const He = class He {
3912
3982
  erroredFiles: p,
3913
3983
  inProgressFiles: o,
3914
3984
  inProgressNotPausedFiles: c,
3915
- processingFiles: m,
3985
+ processingFiles: h,
3916
3986
  isUploadStarted: l.length > 0,
3917
- isAllComplete: n === 100 && d.length === s.length && m.length === 0,
3987
+ isAllComplete: n === 100 && d.length === s.length && h.length === 0,
3918
3988
  isAllErrored: !!r && p.length === s.length,
3919
3989
  isAllPaused: o.length !== 0 && u.length === o.length,
3920
3990
  isUploadInProgress: o.length > 0,
@@ -3923,7 +3993,7 @@ const He = class He {
3923
3993
  }
3924
3994
  validateRestrictions(e, n = this.getFiles()) {
3925
3995
  try {
3926
- b(this, K).validate(n, [e]);
3996
+ w(this, K).validate(n, [e]);
3927
3997
  } catch (r) {
3928
3998
  return r;
3929
3999
  }
@@ -3931,7 +4001,7 @@ const He = class He {
3931
4001
  }
3932
4002
  validateSingleFile(e) {
3933
4003
  try {
3934
- b(this, K).validateSingleFile(e);
4004
+ w(this, K).validateSingleFile(e);
3935
4005
  } catch (n) {
3936
4006
  return n.message;
3937
4007
  }
@@ -3940,7 +4010,7 @@ const He = class He {
3940
4010
  validateAggregateRestrictions(e) {
3941
4011
  const n = this.getFiles();
3942
4012
  try {
3943
- b(this, K).validateAggregateRestrictions(n, e);
4013
+ w(this, K).validateAggregateRestrictions(n, e);
3944
4014
  } catch (r) {
3945
4015
  return r.message;
3946
4016
  }
@@ -3956,12 +4026,12 @@ const He = class He {
3956
4026
  * and start an upload if `autoProceed === true`.
3957
4027
  */
3958
4028
  addFile(e) {
3959
- const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y, dt).call(this, [e]), o = s.filter((a) => a.isRestriction);
4029
+ const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y, pt).call(this, [e]), o = s.filter((a) => a.isRestriction);
3960
4030
  if (F(this, y, oe).call(this, o), s.length > 0)
3961
4031
  throw s[0];
3962
4032
  this.setState({ files: n });
3963
4033
  const [i] = r;
3964
- return this.emit("file-added", i), this.emit("files-added", r), this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`), F(this, y, ut).call(this), i.id;
4034
+ return this.emit("file-added", i), this.emit("files-added", r), this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`), F(this, y, dt).call(this), i.id;
3965
4035
  }
3966
4036
  /**
3967
4037
  * Add multiple files to `state.files`. See the `addFile()` documentation.
@@ -3971,7 +4041,7 @@ const He = class He {
3971
4041
  * Programmatic users should usually still use `addFile()` on individual files.
3972
4042
  */
3973
4043
  addFiles(e) {
3974
- const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y, dt).call(this, e), o = s.filter((a) => a.isRestriction);
4044
+ const { nextFilesState: n, validFilesToAdd: r, errors: s } = F(this, y, pt).call(this, e), o = s.filter((a) => a.isRestriction);
3975
4045
  F(this, y, oe).call(this, o);
3976
4046
  const i = s.filter((a) => !a.isRestriction);
3977
4047
  if (i.length > 0) {
@@ -3998,7 +4068,7 @@ const He = class He {
3998
4068
  this.log(`Added file: ${a.name}
3999
4069
  id: ${a.id}
4000
4070
  type: ${a.type}`);
4001
- }), r.length > 0 && F(this, y, ut).call(this);
4071
+ }), r.length > 0 && F(this, y, dt).call(this);
4002
4072
  }
4003
4073
  removeFiles(e) {
4004
4074
  const { files: n, currentUploads: r } = this.getState(), s = { ...n }, o = { ...r }, i = /* @__PURE__ */ Object.create(null);
@@ -4026,7 +4096,7 @@ const He = class He {
4026
4096
  currentUploads: o,
4027
4097
  files: s
4028
4098
  };
4029
- Object.keys(s).length === 0 && (l.allowNewUpload = !0, l.error = null, l.recoveredState = null), this.setState(l), b(this, de).call(this);
4099
+ Object.keys(s).length === 0 && (l.allowNewUpload = !0, l.error = null, l.recoveredState = null), this.setState(l), w(this, de).call(this);
4030
4100
  const u = Object.keys(i);
4031
4101
  u.forEach((d) => {
4032
4102
  this.emit("file-removed", i[d]);
@@ -4062,7 +4132,7 @@ const He = class He {
4062
4132
  }), this.setState({ files: e }), this.emit("resume-all");
4063
4133
  }
4064
4134
  async retryAll() {
4065
- const e = await F(this, y, ct).call(this);
4135
+ const e = await F(this, y, ft).call(this);
4066
4136
  return this.emit("complete", e), e;
4067
4137
  }
4068
4138
  cancelAll() {
@@ -4091,7 +4161,7 @@ const He = class He {
4091
4161
  });
4092
4162
  }
4093
4163
  [Symbol.for("uppy test: updateTotalProgress")]() {
4094
- return F(this, y, ft).call(this);
4164
+ return F(this, y, mt).call(this);
4095
4165
  }
4096
4166
  updateOnlineStatus() {
4097
4167
  window.navigator.onLine ?? !0 ? (this.emit("is-online"), this.wasOffline && (this.emit("back-online"), this.info(this.i18n("connectedToInternet"), "success", 3e3), this.wasOffline = !1)) : (this.emit("is-offline"), this.info(this.i18n("noInternetConnection"), "error", 0), this.wasOffline = !0);
@@ -4118,24 +4188,24 @@ const He = class He {
4118
4188
  Uppy plugins must have unique \`id\` options.`;
4119
4189
  throw new Error(i);
4120
4190
  }
4121
- 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;
4191
+ return e.VERSION && this.log(`Using ${s} v${e.VERSION}`), r.type in w(this, Z) ? w(this, Z)[r.type].push(r) : w(this, Z)[r.type] = [r], r.install(), this.emit("plugin-added", r), this;
4122
4192
  }
4123
4193
  getPlugin(e) {
4124
- for (const n of Object.values(b(this, Z))) {
4194
+ for (const n of Object.values(w(this, Z))) {
4125
4195
  const r = n.find((s) => s.id === e);
4126
4196
  if (r != null)
4127
4197
  return r;
4128
4198
  }
4129
4199
  }
4130
4200
  [Symbol.for("uppy test: getPlugins")](e) {
4131
- return b(this, Z)[e];
4201
+ return w(this, Z)[e];
4132
4202
  }
4133
4203
  /**
4134
4204
  * Iterate through all `use`d plugins.
4135
4205
  *
4136
4206
  */
4137
4207
  iteratePlugins(e) {
4138
- Object.values(b(this, Z)).flat(1).forEach(e);
4208
+ Object.values(w(this, Z)).flat(1).forEach(e);
4139
4209
  }
4140
4210
  /**
4141
4211
  * Uninstall and remove a plugin.
@@ -4144,7 +4214,7 @@ Uppy plugins must have unique \`id\` options.`;
4144
4214
  */
4145
4215
  removePlugin(e) {
4146
4216
  this.log(`Removing plugin ${e.id}`), this.emit("plugin-remove", e), e.uninstall && e.uninstall();
4147
- const n = b(this, Z)[e.type], r = n.findIndex((i) => i.id === e.id);
4217
+ const n = w(this, Z)[e.type], r = n.findIndex((i) => i.id === e.id);
4148
4218
  r !== -1 && n.splice(r, 1);
4149
4219
  const o = {
4150
4220
  plugins: {
@@ -4158,9 +4228,9 @@ Uppy plugins must have unique \`id\` options.`;
4158
4228
  * Uninstall all plugins and close down this Uppy instance.
4159
4229
  */
4160
4230
  destroy() {
4161
- this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.cancelAll(), b(this, Ce).call(this), this.iteratePlugins((e) => {
4231
+ this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.cancelAll(), w(this, Ce).call(this), this.iteratePlugins((e) => {
4162
4232
  this.removePlugin(e);
4163
- }), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", b(this, se)), window.removeEventListener("offline", b(this, se)));
4233
+ }), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", w(this, se)), window.removeEventListener("offline", w(this, se)));
4164
4234
  }
4165
4235
  hideInfo() {
4166
4236
  const { info: e } = this.getState();
@@ -4202,13 +4272,13 @@ Uppy plugins must have unique \`id\` options.`;
4202
4272
  }
4203
4273
  }
4204
4274
  registerRequestClient(e, n) {
4205
- b(this, Ve).set(e, n);
4275
+ w(this, Ve).set(e, n);
4206
4276
  }
4207
4277
  /** @protected */
4208
4278
  getRequestClientForFile(e) {
4209
4279
  if (!("remote" in e && e.remote))
4210
4280
  throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);
4211
- const n = b(this, Ve).get(e.remote.requestClientId);
4281
+ const n = w(this, Ve).get(e.remote.requestClientId);
4212
4282
  if (n == null)
4213
4283
  throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);
4214
4284
  return n;
@@ -4245,10 +4315,10 @@ Uppy plugins must have unique \`id\` options.`;
4245
4315
  */
4246
4316
  async upload() {
4247
4317
  var s;
4248
- (s = b(this, Z).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
4318
+ (s = w(this, Z).uploader) != null && s.length || this.log("No uploader type plugins are used", "warning");
4249
4319
  let { files: e } = this.getState();
4250
- if (F(this, y, pt).call(this).length > 0) {
4251
- const o = await F(this, y, ct).call(this);
4320
+ if (F(this, y, ct).call(this).length > 0) {
4321
+ const o = await F(this, y, ft).call(this);
4252
4322
  if (!(this.getFiles().filter((a) => a.progress.uploadStarted == null).length > 0))
4253
4323
  return this.emit("complete", o), o;
4254
4324
  ({ files: e } = this.getState());
@@ -4260,7 +4330,7 @@ Uppy plugins must have unique \`id\` options.`;
4260
4330
  files: e
4261
4331
  }));
4262
4332
  try {
4263
- if (b(this, K).validateMinNumberOfFiles(e), !F(this, y, Nn).call(this, e))
4333
+ if (w(this, K).validateMinNumberOfFiles(e), !F(this, y, Dn).call(this, e))
4264
4334
  throw new J(this.i18n("missingRequiredMetaField"));
4265
4335
  const { currentUploads: o } = this.getState(), i = Object.values(o).flatMap((d) => d.fileIDs), a = Object.keys(e).filter((d) => {
4266
4336
  const p = this.getFile(d);
@@ -4283,20 +4353,20 @@ Z = new WeakMap(), K = new WeakMap(), Ce = new WeakMap(), le = new WeakMap(), fe
4283
4353
  count: o.length
4284
4354
  })
4285
4355
  });
4286
- }, lt = function(e) {
4287
- const { missingFields: n, error: r } = b(this, K).getMissingRequiredMetaFields(e);
4356
+ }, ut = function(e) {
4357
+ const { missingFields: n, error: r } = w(this, K).getMissingRequiredMetaFields(e);
4288
4358
  return n.length > 0 ? (this.setFileState(e.id, {
4289
4359
  missingRequiredMetaFields: n,
4290
4360
  error: r.message
4291
4361
  }), this.log(r.message), this.emit("restriction-failed", e, r), !1) : (n.length === 0 && e.missingRequiredMetaFields && this.setFileState(e.id, {
4292
4362
  missingRequiredMetaFields: []
4293
4363
  }), !0);
4294
- }, Nn = function(e) {
4364
+ }, Dn = function(e) {
4295
4365
  let n = !0;
4296
4366
  for (const r of Object.values(e))
4297
- F(this, y, lt).call(this, r) || (n = !1);
4367
+ F(this, y, ut).call(this, r) || (n = !1);
4298
4368
  return n;
4299
- }, Pn = function(e) {
4369
+ }, Nn = function(e) {
4300
4370
  const { allowNewUpload: n } = this.getState();
4301
4371
  if (n === !1) {
4302
4372
  const r = new J(this.i18n("noMoreFilesAllowed"), {
@@ -4307,7 +4377,7 @@ Z = new WeakMap(), K = new WeakMap(), Ce = new WeakMap(), le = new WeakMap(), fe
4307
4377
  }, /**
4308
4378
  * Create a file state object based on user-provided `addFile()` options.
4309
4379
  */
4310
- Dn = function(e) {
4380
+ Pn = function(e) {
4311
4381
  const n = e instanceof File ? {
4312
4382
  name: e.name,
4313
4383
  type: e.type,
@@ -4317,7 +4387,7 @@ Dn = function(e) {
4317
4387
  isRemote: !1,
4318
4388
  source: void 0,
4319
4389
  preview: void 0
4320
- } : e, r = In(n), s = Ta(r, n), o = kn(s).extension, i = Ki(n, this.getID()), a = {
4390
+ } : e, r = In(n), s = Va(r, n), o = kn(s).extension, i = no(n, this.getID()), a = {
4321
4391
  ...n.meta,
4322
4392
  name: s,
4323
4393
  type: r
@@ -4352,19 +4422,19 @@ Dn = function(e) {
4352
4422
  preview: n.preview
4353
4423
  };
4354
4424
  }, // Schedule an upload if `autoProceed` is enabled.
4355
- ut = function() {
4425
+ dt = function() {
4356
4426
  this.opts.autoProceed && !this.scheduledAutoProceed && (this.scheduledAutoProceed = setTimeout(() => {
4357
4427
  this.scheduledAutoProceed = null, this.upload().catch((e) => {
4358
4428
  e.isRestriction || this.log(e.stack || e.message || e);
4359
4429
  });
4360
4430
  }, 4));
4361
- }, dt = function(e) {
4431
+ }, pt = function(e) {
4362
4432
  let { files: n } = this.getState(), r = { ...n };
4363
4433
  const s = [], o = [];
4364
4434
  for (const i of e)
4365
4435
  try {
4366
- let a = F(this, y, Dn).call(this, i);
4367
- F(this, y, Pn).call(this, a);
4436
+ let a = F(this, y, Pn).call(this, i);
4437
+ F(this, y, Nn).call(this, a);
4368
4438
  const l = n[a.id], u = l == null ? void 0 : l.isGhost;
4369
4439
  if (u && !a.isRemote) {
4370
4440
  if (a.data == null)
@@ -4382,12 +4452,12 @@ ut = function() {
4382
4452
  }), { file: a });
4383
4453
  if (d === !1 && !u)
4384
4454
  throw new J("Cannot add the file because onBeforeFileAdded returned false.", { isUserFacing: !1, file: a });
4385
- typeof d == "object" && d !== null && (a = d), b(this, K).validateSingleFile(a), r[a.id] = a, s.push(a);
4455
+ typeof d == "object" && d !== null && (a = d), w(this, K).validateSingleFile(a), r[a.id] = a, s.push(a);
4386
4456
  } catch (a) {
4387
4457
  o.push(a);
4388
4458
  }
4389
4459
  try {
4390
- b(this, K).validateAggregateRestrictions(Object.values(n), s);
4460
+ w(this, K).validateAggregateRestrictions(Object.values(n), s);
4391
4461
  } catch (i) {
4392
4462
  return o.push(i), {
4393
4463
  nextFilesState: n,
@@ -4400,14 +4470,14 @@ ut = function() {
4400
4470
  validFilesToAdd: s,
4401
4471
  errors: o
4402
4472
  };
4403
- }, pt = function() {
4473
+ }, ct = function() {
4404
4474
  const { files: e } = this.getState();
4405
4475
  return Object.keys(e).filter((n) => {
4406
4476
  const r = e[n];
4407
4477
  return r.error && (!r.missingRequiredMetaFields || r.missingRequiredMetaFields.length === 0);
4408
4478
  });
4409
- }, ct = async function() {
4410
- const e = F(this, y, pt).call(this), n = { ...this.getState().files };
4479
+ }, ft = async function() {
4480
+ const e = F(this, y, ct).call(this), n = { ...this.getState().files };
4411
4481
  if (e.forEach((s) => {
4412
4482
  n[s] = {
4413
4483
  ...n[s],
@@ -4427,7 +4497,7 @@ ut = function() {
4427
4497
  // create new upload even if allowNewUpload: false
4428
4498
  });
4429
4499
  return F(this, y, Se).call(this, r);
4430
- }, qe = new WeakMap(), ft = function() {
4500
+ }, qe = new WeakMap(), mt = function() {
4431
4501
  const e = F(this, y, zn).call(this);
4432
4502
  let n = null;
4433
4503
  e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
@@ -4490,12 +4560,12 @@ On = function() {
4490
4560
  ]));
4491
4561
  this.patchFilesState(i);
4492
4562
  };
4493
- this.on("upload-start", r), this.on("upload-progress", b(this, qe)), this.on("upload-success", (s, o) => {
4563
+ this.on("upload-start", r), this.on("upload-progress", w(this, qe)), this.on("upload-success", (s, o) => {
4494
4564
  if (s == null || !this.getFile(s.id)) {
4495
4565
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
4496
4566
  return;
4497
4567
  }
4498
- const i = this.getFile(s.id).progress, a = b(this, ue).size > 0;
4568
+ const i = this.getFile(s.id).progress, a = w(this, ue).size > 0;
4499
4569
  this.setFileState(s.id, {
4500
4570
  progress: {
4501
4571
  ...i,
@@ -4512,7 +4582,7 @@ On = function() {
4512
4582
  isPaused: !1
4513
4583
  }), s.size == null && this.setFileState(s.id, {
4514
4584
  size: o.bytesUploaded || i.bytesTotal
4515
- }), b(this, de).call(this);
4585
+ }), w(this, de).call(this);
4516
4586
  }), this.on("preprocess-progress", (s, o) => {
4517
4587
  if (s == null || !this.getFile(s.id)) {
4518
4588
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
@@ -4558,10 +4628,10 @@ On = function() {
4558
4628
  }
4559
4629
  });
4560
4630
  }), this.on("restored", () => {
4561
- b(this, de).call(this);
4631
+ w(this, de).call(this);
4562
4632
  }), this.on("dashboard:file-edit-complete", (s) => {
4563
- s && F(this, y, lt).call(this, s);
4564
- }), typeof window < "u" && window.addEventListener && (window.addEventListener("online", b(this, se)), window.addEventListener("offline", b(this, se)), setTimeout(b(this, se), 3e3));
4633
+ s && F(this, y, ut).call(this, s);
4634
+ }), typeof window < "u" && window.addEventListener && (window.addEventListener("online", w(this, se)), window.addEventListener("offline", w(this, se)), setTimeout(w(this, se), 3e3));
4565
4635
  }, se = new WeakMap(), Ve = new WeakMap(), /**
4566
4636
  * Create an upload for a bunch of files.
4567
4637
  *
@@ -4570,7 +4640,7 @@ $e = function(e, n = {}) {
4570
4640
  const { forceAllowNewUpload: r = !1 } = n, { allowNewUpload: s, currentUploads: o } = this.getState();
4571
4641
  if (!s && !r)
4572
4642
  throw new Error("Cannot create a new upload: already uploading.");
4573
- const i = $a();
4643
+ const i = Ia();
4574
4644
  return this.emit("upload", i, this.getFilesByIds(e)), this.setState({
4575
4645
  allowNewUpload: this.opts.allowMultipleUploadBatches !== !1 && this.opts.allowMultipleUploads !== !1,
4576
4646
  currentUploads: {
@@ -4589,7 +4659,7 @@ $e = function(e, n = {}) {
4589
4659
  * Remove an upload, eg. if it has been canceled or completed.
4590
4660
  *
4591
4661
  */
4592
- mt = function(e) {
4662
+ ht = function(e) {
4593
4663
  const { [e]: n, ...r } = this.getState().currentUploads;
4594
4664
  this.setState({
4595
4665
  currentUploads: r
@@ -4603,9 +4673,9 @@ mt = function(e) {
4603
4673
  if (!r)
4604
4674
  throw new Error("Nonexistent upload");
4605
4675
  const s = [
4606
- ...b(this, fe),
4607
- ...b(this, me),
4608
- ...b(this, ue)
4676
+ ...w(this, fe),
4677
+ ...w(this, me),
4678
+ ...w(this, ue)
4609
4679
  ];
4610
4680
  try {
4611
4681
  for (let i = r.step || 0; i < s.length; i++) {
@@ -4624,7 +4694,7 @@ mt = function(e) {
4624
4694
  break;
4625
4695
  }
4626
4696
  } catch (i) {
4627
- throw F(this, y, mt).call(this, e), i;
4697
+ throw F(this, y, ht).call(this, e), i;
4628
4698
  }
4629
4699
  if (r) {
4630
4700
  r.fileIDs.forEach((u) => {
@@ -4635,17 +4705,17 @@ mt = function(e) {
4635
4705
  this.addResultData(e, { successful: a, failed: l, uploadID: e }), r = n();
4636
4706
  }
4637
4707
  let o;
4638
- return r && (o = r.result, F(this, y, mt).call(this, e)), o == null && (this.log(`Not setting result for an upload that has been removed: ${e}`), o = {
4708
+ return r && (o = r.result, F(this, y, ht).call(this, e)), o == null && (this.log(`Not setting result for an upload that has been removed: ${e}`), o = {
4639
4709
  successful: [],
4640
4710
  failed: [],
4641
4711
  uploadID: e
4642
4712
  }), o;
4643
- }, R(He, "VERSION", Fa.version);
4644
- let at = He;
4645
- const Ea = {
4713
+ }, B(He, "VERSION", Ca.version);
4714
+ let lt = He;
4715
+ const Aa = {
4646
4716
  key: 0,
4647
4717
  class: "uppy-input-area--caption small text-body-secondary fst-italic"
4648
- }, ol = {
4718
+ }, cl = {
4649
4719
  __name: "UppyInput",
4650
4720
  props: {
4651
4721
  name: { type: String, required: !0 },
@@ -4678,7 +4748,7 @@ const Ea = {
4678
4748
  ],
4679
4749
  setup(t, { emit: e }) {
4680
4750
  var Y;
4681
- const n = t, r = e, s = G(null), o = G(null), i = Yn(null), a = G(!1), l = G(!1), u = G(0), d = T("form", { value: {}, errors: {}, getID: (f) => f }), p = T("group", null), c = q({
4751
+ const n = t, r = e, s = G(null), o = G(null), i = Yn(null), a = G(!1), l = G(!1), u = G(0), d = T("form", { value: {}, errors: {}, getID: (f) => f }), p = T("group", null), c = x({
4682
4752
  get() {
4683
4753
  var f;
4684
4754
  return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
@@ -4688,7 +4758,7 @@ const Ea = {
4688
4758
  (_ = p == null ? void 0 : p.value) != null && _.name ? p.value.setData(n.name, f) : d.value[n.name] = f, r("update:modelValue", f);
4689
4759
  }
4690
4760
  });
4691
- i.value = new at({
4761
+ i.value = new lt({
4692
4762
  id: n.name,
4693
4763
  autoProceed: !0,
4694
4764
  ...n.config,
@@ -4702,16 +4772,16 @@ const Ea = {
4702
4772
  r("beforeUpload", f);
4703
4773
  }), i.value.on("upload-success", (f, _) => {
4704
4774
  u.value = Math.max(0, u.value - 1);
4705
- const w = _.body ?? _;
4775
+ const $ = _.body ?? _;
4706
4776
  if (n.multiple) {
4707
4777
  const U = Array.isArray(c.value) ? c.value : [];
4708
- c.value = [...U, w];
4778
+ c.value = [...U, $];
4709
4779
  } else
4710
- c.value = w;
4780
+ c.value = $;
4711
4781
  r("upload-success", f, _);
4712
4782
  }), i.value.on("file-added", (f) => r("file-added", f)), i.value.on("file-removed", (f) => {
4713
- var w;
4714
- const _ = ((w = f.response) == null ? void 0 : w.body) ?? f.response;
4783
+ var $;
4784
+ const _ = (($ = f.response) == null ? void 0 : $.body) ?? f.response;
4715
4785
  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, {
4716
4786
  method: "DELETE",
4717
4787
  headers: {
@@ -4726,21 +4796,21 @@ const Ea = {
4726
4796
  u.value = 0, d.value.uploading = null, r("complete", f);
4727
4797
  }), i.value.on("error", (f) => {
4728
4798
  r("error", f);
4729
- }), i.value.on("upload-error", (f, _, w) => {
4730
- var D;
4799
+ }), i.value.on("upload-error", (f, _, $) => {
4800
+ var P;
4731
4801
  u.value = Math.max(0, u.value - 1);
4732
- const U = ((D = JSON.parse(w.response)) == null ? void 0 : D.message) ?? _;
4733
- v(U), r("upload-error", f, _, w, U);
4802
+ const U = ((P = JSON.parse($.response)) == null ? void 0 : P.message) ?? _;
4803
+ v(U), r("upload-error", f, _, $, U);
4734
4804
  }), i.value.on("restriction-failed", (f, _) => {
4735
4805
  v(_.message), r("restriction-failed", f, _);
4736
4806
  }), Fe(() => {
4737
4807
  var f;
4738
4808
  return (f = d.value) == null ? void 0 : f.wasSuccessful;
4739
4809
  }, (f, _) => {
4740
- f === !0 && _ === !1 && m();
4810
+ f === !0 && _ === !1 && h();
4741
4811
  }), ye(() => {
4742
- var f, _, w, U, D, H, ne, N;
4743
- n.useXHR && import("./index-C8oNYek9.js").then((X) => {
4812
+ var f, _, $, U, P, H, ne, D;
4813
+ n.useXHR && import("./index-lLet6E62.js").then((X) => {
4744
4814
  const pe = X.default;
4745
4815
  i.value.use(pe, {
4746
4816
  method: "POST",
@@ -4750,20 +4820,20 @@ const Ea = {
4750
4820
  },
4751
4821
  ...n.XHRConfig
4752
4822
  });
4753
- }), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = I(i.value.opts.restrictions)), o && ((H = (D = (U = (w = i.value) == null ? void 0 : w.opts) == null ? void 0 : U.locale) == null ? void 0 : D.strings) != null && H.dropzoneText) && ((N = (ne = o.value) == null ? void 0 : ne.querySelectorAll('[data-uppy-element="dropzone"]>div>div>p')) == null || N.forEach((X) => {
4823
+ }), (_ = (f = i.value) == null ? void 0 : f.opts) != null && _.restrictions && (s.value = I(i.value.opts.restrictions)), o && ((H = (P = (U = ($ = i.value) == null ? void 0 : $.opts) == null ? void 0 : U.locale) == null ? void 0 : P.strings) != null && H.dropzoneText) && ((D = (ne = o.value) == null ? void 0 : ne.querySelectorAll('[data-uppy-element="dropzone"]>div>div>p')) == null || D.forEach((X) => {
4754
4824
  var pe, Et, Ct, Vt;
4755
4825
  X.innerHTML = (Vt = (Ct = (Et = (pe = i.value) == null ? void 0 : pe.opts) == null ? void 0 : Et.locale) == null ? void 0 : Ct.strings) == null ? void 0 : Vt.dropzoneText;
4756
4826
  }));
4757
- }), ht(() => {
4827
+ }), gt(() => {
4758
4828
  l.value = !0, i.value && i.value.destroy();
4759
4829
  });
4760
- function m() {
4830
+ function h() {
4761
4831
  i.value && (a.value = !0, i.value.cancelAll(), a.value = !1, c.value = n.multiple ? [] : null);
4762
4832
  }
4763
4833
  function v(f) {
4764
- n.errorHandler ? n.errorHandler(f) : f && V(f);
4834
+ n.errorHandler ? n.errorHandler(f) : f && M(f);
4765
4835
  }
4766
- function V(f) {
4836
+ function M(f) {
4767
4837
  if (typeof window < "u") {
4768
4838
  const _ = document == null ? void 0 : document.createElement("div");
4769
4839
  _.textContent = f, _.className = "uppy-error", o.value && (o.value.prepend(_), setTimeout(() => _.remove(), 3e3));
@@ -4771,77 +4841,78 @@ const Ea = {
4771
4841
  }
4772
4842
  const A = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
4773
4843
  function k(f) {
4774
- let _ = 0, w = parseInt(f, 10) || 0;
4775
- for (; w >= 1024 && ++_; )
4776
- w = w / 1024;
4777
- return w.toFixed(w < 10 && _ > 0 ? 1 : 0) + A[_];
4844
+ let _ = 0, $ = parseInt(f, 10) || 0;
4845
+ for (; $ >= 1024 && ++_; )
4846
+ $ = $ / 1024;
4847
+ return $.toFixed($ < 10 && _ > 0 ? 1 : 0) + A[_];
4778
4848
  }
4779
4849
  function I(f) {
4780
4850
  if (!f) return "";
4781
4851
  const {
4782
4852
  allowedFileTypes: _,
4783
- maxFileSize: w,
4853
+ maxFileSize: $,
4784
4854
  minFileSize: U,
4785
- maxNumberOfFiles: D,
4855
+ maxNumberOfFiles: P,
4786
4856
  minNumberOfFiles: H,
4787
4857
  maxTotalFileSize: ne
4788
- } = f, N = [];
4858
+ } = f, D = [];
4789
4859
  if (_ && _.length) {
4790
4860
  const X = _.map((pe) => pe.replace(".", "")).join("، ");
4791
- N.push(`فقط فایل‌های ${X}`);
4861
+ D.push(`فقط فایل‌های ${X}`);
4792
4862
  }
4793
- return D && D > 1 && N.push(`امکان انتخاب حداکثر ${D} فایل`), H && N.push(`حداقل ${H} فایل نیاز است`), w && N.push(`با حداکثر حجم ${k(w)} برای هر فایل`), U && N.push(`با حداقل حجم ${k(U)} برای هر فایل`), ne && N.push(`و مجموع حجم کل حداکثر ${k(ne)}`), N.length ? N.join("، ") + " مجاز است." : "";
4863
+ return P && P > 1 && D.push(`امکان انتخاب حداکثر ${P} فایل`), H && D.push(`حداقل ${H} فایل نیاز است`), $ && D.push(`با حداکثر حجم ${k($)} برای هر فایل`), U && D.push(`با حداقل حجم ${k(U)} برای هر فایل`), ne && D.push(`و مجموع حجم کل حداکثر ${k(ne)}`), D.length ? D.join("، ") + " مجاز است." : "";
4794
4864
  }
4795
- return (f, _) => i.value ? (h(), g("div", {
4865
+ return (f, _) => i.value ? (m(), g("div", {
4796
4866
  key: 0,
4797
4867
  class: "uppy-input-area",
4798
4868
  ref_key: "inputEl",
4799
4869
  ref: o
4800
4870
  }, [
4801
- Q(Ke(Hi), {
4871
+ Q(Je(Zi), {
4802
4872
  name: "uu" + t.name,
4803
4873
  uppy: i.value
4804
4874
  }, {
4805
4875
  default: ie(() => [
4806
4876
  O(f.$slots, "default", { uppy: i.value }, () => [
4807
- Q(Ke(Wi), { class: "uppy-file-lists" }),
4808
- Q(Ke(Gi), { class: "uppy-drop-zone" })
4877
+ Q(Je(Ji), { class: "uppy-file-lists" }),
4878
+ Q(Je(Ki), { class: "uppy-drop-zone" })
4809
4879
  ])
4810
4880
  ]),
4811
4881
  _: 3
4812
4882
  }, 8, ["name", "uppy"]),
4813
- s.value ? (h(), g("div", Ea, W(s.value), 1)) : B("", !0)
4814
- ], 512)) : B("", !0);
4883
+ s.value ? (m(), g("div", Aa, W(s.value), 1)) : j("", !0)
4884
+ ], 512)) : j("", !0);
4815
4885
  }
4816
4886
  };
4817
4887
  export {
4818
- Da as A,
4819
- za as C,
4820
- qa as E,
4821
- xa as F,
4822
- ys as G,
4823
- Wa as L,
4824
- Ya as M,
4825
- nl as O,
4826
- ja as P,
4827
- Ds as Q,
4828
- il as R,
4829
- sl as S,
4830
- eo as T,
4831
- rl as _,
4832
- Oa as a,
4833
- Ra as b,
4834
- Ba as c,
4835
- La as d,
4836
- ol as e,
4837
- Ha as f,
4838
- Xa as g,
4839
- Za as h,
4840
- Qa as i,
4841
- Ja as j,
4842
- Ka as k,
4843
- Ga as l,
4844
- el as m,
4845
- tl as n,
4846
- Ge as o
4888
+ ja as A,
4889
+ La as C,
4890
+ Za as E,
4891
+ Xa as F,
4892
+ $s as G,
4893
+ Qa as L,
4894
+ el as M,
4895
+ ll as O,
4896
+ Wa as P,
4897
+ js as Q,
4898
+ pl as R,
4899
+ Ga as S,
4900
+ io as T,
4901
+ ul as _,
4902
+ xa as a,
4903
+ qa as b,
4904
+ Ha as c,
4905
+ Ya as d,
4906
+ dl as e,
4907
+ cl as f,
4908
+ Ka as g,
4909
+ tl as h,
4910
+ nl as i,
4911
+ il as j,
4912
+ sl as k,
4913
+ rl as l,
4914
+ Ja as m,
4915
+ ol as n,
4916
+ al as o,
4917
+ We as p
4847
4918
  };