inertia-bootstrap-forms 2.1.16 → 2.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- var Bn = Object.defineProperty;
1
+ var Rn = Object.defineProperty;
2
2
  var Mt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
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 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";
5
+ var jn = (t, e, n) => e in t ? Rn(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), 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)), 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) => (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 B, ref as G, onMounted as ye, onBeforeUnmount as gt, createElementVNode as b, defineComponent as E, inject as T, computed as q, 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 qn, reactive as tn, withModifiers as nn, resolveDirective as xn, 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";
@@ -96,7 +96,7 @@ const bt = /* @__PURE__ */ be(hr, [["render", yr]]), vr = {
96
96
  };
97
97
  function _r(t, e, n, r, s, o) {
98
98
  return m(), g("i", {
99
- class: R(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
99
+ class: B(["align-middle", "spinner-" + this.type + " spinner-" + this.type + "-" + this.size]),
100
100
  role: "status"
101
101
  }, e[0] || (e[0] = [
102
102
  b("span", { class: "visually-hidden" }, "Loading...", -1)
@@ -112,7 +112,7 @@ const br = /* @__PURE__ */ be(vr, [["render", _r]]), wr = {
112
112
  };
113
113
  function $r(t, e, n, r, s, o) {
114
114
  return m(), g("div", {
115
- class: R(["alert", "alert-" + n.type])
115
+ class: B(["alert", "alert-" + n.type])
116
116
  }, [
117
117
  O(t.$slots, "default")
118
118
  ], 2);
@@ -149,7 +149,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), V = (t, e) => {
149
149
  return l;
150
150
  }
151
151
  }), n = T("group", {});
152
- const r = x({
152
+ const r = q({
153
153
  get() {
154
154
  var l;
155
155
  return n.value && e.value[n.value.name] ? (l = n.value) == null ? void 0 : l.getData(t.name) : e.value[t.name];
@@ -165,7 +165,7 @@ const Sr = /* @__PURE__ */ be(wr, [["render", $r]]), V = (t, e) => {
165
165
  return d !== -1 ? d : o.indexOf(u);
166
166
  });
167
167
  }
168
- const a = x({
168
+ const a = q({
169
169
  get() {
170
170
  const l = r.value;
171
171
  return l == null || l === "" ? "" : Number(l).toLocaleString("en-US");
@@ -185,7 +185,7 @@ function kr(t, e, n, r, s, o) {
185
185
  te(b("input", {
186
186
  name: t.name,
187
187
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.displayValue = l),
188
- class: R(["form-control fanum", t.inputClass, { "is-invalid": t.form.errors[t.name] }]),
188
+ class: B(["form-control fanum", t.inputClass, { "is-invalid": t.form.errors[t.name] }]),
189
189
  disabled: t.disabled || t.form.processing,
190
190
  readonly: t.readonly,
191
191
  placeholder: t.placeholder,
@@ -204,7 +204,7 @@ function kr(t, e, n, r, s, o) {
204
204
  _: 3
205
205
  });
206
206
  }
207
- const Ba = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
207
+ const Ra = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
208
208
  props: {
209
209
  name: {
210
210
  type: String,
@@ -223,7 +223,7 @@ const Ba = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
223
223
  return s;
224
224
  }
225
225
  }), n = T("group", {});
226
- return { modelValue: x({
226
+ return { modelValue: q({
227
227
  get() {
228
228
  var s;
229
229
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -241,7 +241,7 @@ function Cr(t, e, n, r, s, o) {
241
241
  name: t.name,
242
242
  id: t.inputID,
243
243
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
244
- class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
244
+ class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
245
245
  disabled: (a = t.form) == null ? void 0 : a.processing,
246
246
  type: "text"
247
247
  }, null, 10, Er)), [
@@ -365,17 +365,17 @@ const ja = /* @__PURE__ */ V(Vr, [["render", Nr]]), Pr = E({
365
365
  }), { form: e };
366
366
  }
367
367
  }), zr = ["for"], Or = ["name", "id", "disabled", "type", "value"];
368
- function Rr(t, e, n, r, s, o) {
368
+ function Br(t, e, n, r, s, o) {
369
369
  var i, a;
370
370
  return m(), g("label", {
371
- class: R(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
371
+ class: B(["btn-label", { active: t.form[t.name] === t.value || t.form[t.name] === !0 }]),
372
372
  for: t.form.getID(t.name) + (t.id || t.value)
373
373
  }, [
374
374
  te(b("input", {
375
375
  name: t.name,
376
376
  id: t.form.getID(t.name) + (t.id || t.value),
377
377
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.form[t.name] = l),
378
- class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
378
+ class: B([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "btn-check"]),
379
379
  disabled: (a = t.form) == null ? void 0 : a.processing,
380
380
  type: t.type,
381
381
  value: t.value,
@@ -387,7 +387,7 @@ function Rr(t, e, n, r, s, o) {
387
387
  O(t.$slots, "default")
388
388
  ], 10, zr);
389
389
  }
390
- const La = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
390
+ const La = /* @__PURE__ */ V(Pr, [["render", Br]]), Rr = E({
391
391
  props: {
392
392
  name: {
393
393
  type: String,
@@ -421,7 +421,7 @@ const La = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
421
421
  return s;
422
422
  }
423
423
  }), n = T("group", {});
424
- return { modelValue: x({
424
+ return { modelValue: q({
425
425
  get() {
426
426
  var s;
427
427
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -432,15 +432,15 @@ const La = /* @__PURE__ */ V(Pr, [["render", Rr]]), Br = E({
432
432
  }
433
433
  }), form: e, group: n };
434
434
  }
435
- }), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"], xr = ["for"];
436
- function qr(t, e, n, r, s, o) {
435
+ }), jr = { class: "form-check" }, Lr = ["name", "id", "disabled", "type", "value"], qr = ["for"];
436
+ function xr(t, e, n, r, s, o) {
437
437
  var i, a;
438
438
  return m(), g("div", jr, [
439
439
  te(b("input", {
440
440
  name: t.name,
441
441
  id: t.inputID,
442
442
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
443
- class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
443
+ class: B([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
444
444
  disabled: (a = t.form) == null ? void 0 : a.processing,
445
445
  type: t.type,
446
446
  value: t.value,
@@ -453,10 +453,10 @@ function qr(t, e, n, r, s, o) {
453
453
  for: t.inputID
454
454
  }, [
455
455
  O(t.$slots, "default")
456
- ], 8, xr)
456
+ ], 8, qr)
457
457
  ]);
458
458
  }
459
- const xa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
459
+ const qa = /* @__PURE__ */ V(Rr, [["render", xr]]), Hr = E({
460
460
  props: {
461
461
  name: {
462
462
  type: String,
@@ -472,11 +472,24 @@ const xa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
472
472
  default: "yes",
473
473
  required: !1
474
474
  },
475
+ checked: {
476
+ type: [Boolean],
477
+ default: ""
478
+ },
475
479
  type: {
476
480
  type: String,
477
481
  default: "checkbox",
478
482
  required: !1
479
483
  },
484
+ disabled: {
485
+ type: Boolean,
486
+ default: !1,
487
+ required: !1
488
+ },
489
+ readonly: {
490
+ type: Boolean,
491
+ default: !1
492
+ },
480
493
  hideInput: {
481
494
  type: Boolean,
482
495
  default: !1
@@ -497,7 +510,7 @@ const xa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
497
510
  return s;
498
511
  }
499
512
  }), n = T("group", {});
500
- return { modelValue: x({
513
+ return { modelValue: q({
501
514
  get() {
502
515
  var s;
503
516
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -508,21 +521,27 @@ const xa = /* @__PURE__ */ V(Br, [["render", qr]]), Hr = E({
508
521
  }
509
522
  }), form: e, group: n };
510
523
  }
511
- }), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value"];
524
+ }), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value", "checked", "readonly"];
512
525
  function Yr(t, e, n, r, s, o) {
513
526
  var i, a, l;
514
527
  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] }]),
528
+ class: B(["form-check-toggle", {
529
+ "form-check-toggle--active": (t.selectedValue || []).includes(t.value),
530
+ disabled: t.disabled,
531
+ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name]
532
+ }]),
516
533
  for: t.inputID
517
534
  }, [
518
535
  te(b("input", {
519
536
  name: t.name,
520
537
  id: t.inputID,
521
538
  "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,
539
+ class: B([{ "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"]),
540
+ disabled: ((l = t.form) == null ? void 0 : l.processing) || t.disabled,
524
541
  type: t.type,
525
542
  value: t.value,
543
+ checked: t.checked,
544
+ readonly: t.readonly,
526
545
  onChange: e[1] || (e[1] = (u) => t.$emit("change", u))
527
546
  }, null, 42, Wr), [
528
547
  [Ge, t.modelValue]
@@ -530,7 +549,7 @@ function Yr(t, e, n, r, s, o) {
530
549
  O(t.$slots, "default")
531
550
  ], 10, Gr);
532
551
  }
533
- const qa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
552
+ const xa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
534
553
  props: {
535
554
  name: {
536
555
  type: String,
@@ -568,7 +587,7 @@ const qa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
568
587
  return s;
569
588
  }
570
589
  }), n = T("group", {});
571
- return { modelValue: x({
590
+ return { modelValue: q({
572
591
  get() {
573
592
  var s;
574
593
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -583,13 +602,13 @@ const qa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
583
602
  function Jr(t, e, n, r, s, o) {
584
603
  var i, a;
585
604
  return m(), g("div", {
586
- class: R(["form-check form-switch", { disabled: t.disabled }])
605
+ class: B(["form-check form-switch", { disabled: t.disabled }])
587
606
  }, [
588
607
  te(b("input", {
589
608
  name: t.name,
590
609
  id: t.inputID,
591
610
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
592
- class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
611
+ class: B([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
593
612
  disabled: ((a = t.form) == null ? void 0 : a.processing) || t.disabled,
594
613
  type: t.type,
595
614
  value: t.value,
@@ -653,7 +672,7 @@ const es = E({
653
672
  return s;
654
673
  }
655
674
  }), n = T("group", {});
656
- return { modelValue: x({
675
+ return { modelValue: q({
657
676
  get() {
658
677
  var s;
659
678
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -743,7 +762,7 @@ const Ga = /* @__PURE__ */ V(es, [["render", ts]]), ns = E({
743
762
  return u;
744
763
  }
745
764
  }), a = T("group", {});
746
- return { modelValue: x({
765
+ return { modelValue: q({
747
766
  get() {
748
767
  var u;
749
768
  return a.value && i.value[a.value.name] ? (u = a.value) == null ? void 0 : u.getData(t.name) : i.value[t.name];
@@ -870,7 +889,7 @@ function hs(t, e, n, r, s, o) {
870
889
  ref: "input",
871
890
  name: t.name,
872
891
  id: t.inputID,
873
- class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
892
+ class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
874
893
  disabled: (a = t.form) == null ? void 0 : a.processing,
875
894
  type: "file",
876
895
  multiple: t.multiple,
@@ -964,7 +983,7 @@ const Xa = /* @__PURE__ */ V(gs, [["render", ys]]), vs = E({
964
983
  },
965
984
  provide() {
966
985
  return {
967
- group: x(() => this)
986
+ group: q(() => this)
968
987
  };
969
988
  },
970
989
  mounted() {
@@ -1041,7 +1060,7 @@ const ws = /* @__PURE__ */ V(vs, [["render", bs]]), $s = E({
1041
1060
  }
1042
1061
  },
1043
1062
  setup(t) {
1044
- const e = xn("formEl"), n = tn(t.modelValue), r = Zn({
1063
+ const e = qn("formEl"), n = tn(t.modelValue), r = Zn({
1045
1064
  hasMessage: !1,
1046
1065
  successMessage: null,
1047
1066
  ...t.options,
@@ -1055,7 +1074,7 @@ const ws = /* @__PURE__ */ V(vs, [["render", bs]]), $s = E({
1055
1074
  },
1056
1075
  provide() {
1057
1076
  return {
1058
- form: x(() => this.form)
1077
+ form: q(() => this.form)
1059
1078
  };
1060
1079
  },
1061
1080
  watch: {
@@ -1150,7 +1169,7 @@ function ks(t, e, n, r, s, o) {
1150
1169
  }),
1151
1170
  onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
1152
1171
  onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
1153
- class: R({ "form-processing": t.form.processing }),
1172
+ class: B({ "form-processing": t.form.processing }),
1154
1173
  novalidate: !!Object.values(t.form.errors).length
1155
1174
  }, [
1156
1175
  O(t.$slots, "errors", {}, () => [
@@ -1269,7 +1288,7 @@ function Us(t, e, n, r, s, o) {
1269
1288
  var u;
1270
1289
  const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
1271
1290
  return m(), g("div", {
1272
- 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 }])
1291
+ class: B(["location-map-container", { disabled: t.disabled || t.form.processing, "is-invalid": ((u = t.form) == null ? void 0 : u.errors[t.name]) !== void 0 }])
1273
1292
  }, [
1274
1293
  Q(l, {
1275
1294
  ref: "map",
@@ -1367,7 +1386,7 @@ const el = /* @__PURE__ */ V(Ns, [["render", Ps]]), zs = E({
1367
1386
  getID(s) {
1368
1387
  }
1369
1388
  }), e[t.name] || (e[t.name] = t.min);
1370
- const r = x({
1389
+ const r = q({
1371
1390
  get() {
1372
1391
  var s;
1373
1392
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1396,8 +1415,8 @@ const el = /* @__PURE__ */ V(Ns, [["render", Ps]]), zs = E({
1396
1415
  return {};
1397
1416
  }
1398
1417
  }), Os = ["name", "value", "disabled", "readonly"];
1399
- function Rs(t, e, n, r, s, o) {
1400
- const i = L("InputGroupText"), a = L("InputGroup"), l = qn("maska");
1418
+ function Bs(t, e, n, r, s, o) {
1419
+ const i = L("InputGroupText"), a = L("InputGroup"), l = xn("maska");
1401
1420
  return m(), ee(a, { class: "input-group-quantity" }, {
1402
1421
  default: ie(() => [
1403
1422
  b("button", {
@@ -1424,7 +1443,7 @@ function Rs(t, e, n, r, s, o) {
1424
1443
  "data-maska": "###,###,###,###,###,###,###",
1425
1444
  "data-maska-reversed": "",
1426
1445
  onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
1427
- class: R([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1446
+ class: B([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
1428
1447
  disabled: t.disabled || t.form.processing,
1429
1448
  readonly: t.readonly,
1430
1449
  type: "tel"
@@ -1461,8 +1480,8 @@ function Rs(t, e, n, r, s, o) {
1461
1480
  _: 3
1462
1481
  });
1463
1482
  }
1464
- const Bs = /* @__PURE__ */ V(zs, [["render", Rs]]), js = E({
1465
- components: { GroupControl: ws, QuantityInput: Bs, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1483
+ const Rs = /* @__PURE__ */ V(zs, [["render", Bs]]), js = E({
1484
+ components: { GroupControl: ws, QuantityInput: Rs, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
1466
1485
  props: {
1467
1486
  name: {
1468
1487
  type: String,
@@ -1503,7 +1522,7 @@ const Bs = /* @__PURE__ */ V(zs, [["render", Rs]]), js = E({
1503
1522
  errors: {},
1504
1523
  getID(s) {
1505
1524
  }
1506
- }), e[t.name] || (e[t.name] = t.min), { modelValue: x({
1525
+ }), e[t.name] || (e[t.name] = t.min), { modelValue: q({
1507
1526
  get() {
1508
1527
  var s;
1509
1528
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1541,7 +1560,7 @@ const Bs = /* @__PURE__ */ V(zs, [["render", Rs]]), js = E({
1541
1560
  }), Ls = {
1542
1561
  ref: "input",
1543
1562
  class: "multi-quantity-input fanum"
1544
- }, xs = { class: "row align-items-center justify-content-between g-0" }, qs = ["innerHTML"], Hs = { class: "col-auto" };
1563
+ }, qs = { class: "row align-items-center justify-content-between g-0" }, xs = ["innerHTML"], Hs = { class: "col-auto" };
1545
1564
  function Gs(t, e, n, r, s, o) {
1546
1565
  const i = L("QuantityInput"), a = L("GroupControl");
1547
1566
  return m(), g("div", Ls, [
@@ -1551,15 +1570,15 @@ function Gs(t, e, n, r, s, o) {
1551
1570
  onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
1552
1571
  }, W(t.totalQuantity) + " " + W(t.unit), 1),
1553
1572
  b("div", {
1554
- class: R(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1573
+ class: B(["multi-quantity-input--dropdown", { show: t.showDropdown }])
1555
1574
  }, [
1556
1575
  Q(a, { name: t.name }, {
1557
1576
  default: ie(() => [
1558
- (m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div", xs, [
1577
+ (m(!0), g(ve, null, _e(t.options, (l, u) => (m(), g("div", qs, [
1559
1578
  b("div", {
1560
1579
  class: "col-auto",
1561
1580
  innerHTML: (l == null ? void 0 : l.name) || l
1562
- }, null, 8, qs),
1581
+ }, null, 8, xs),
1563
1582
  b("div", Hs, [
1564
1583
  Q(i, {
1565
1584
  name: u,
@@ -1637,7 +1656,7 @@ const tl = /* @__PURE__ */ V(js, [["render", Gs]]), Ws = E({
1637
1656
  return s;
1638
1657
  }
1639
1658
  }), n = T("group", {});
1640
- return { modelValue: x({
1659
+ return { modelValue: q({
1641
1660
  get() {
1642
1661
  var s;
1643
1662
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -1760,7 +1779,7 @@ const tl = /* @__PURE__ */ V(js, [["render", Gs]]), Ws = E({
1760
1779
  }), Ys = ["name", "id"], Xs = ["value", "selected"];
1761
1780
  function Zs(t, e, n, r, s, o) {
1762
1781
  return m(), g("div", {
1763
- class: R(["select2-controller", {
1782
+ class: B(["select2-controller", {
1764
1783
  "is-invalid": t.form.errors[t.name],
1765
1784
  "select2-dropdown-hidden": t.hideDropdown === !0
1766
1785
  }])
@@ -1998,7 +2017,7 @@ const il = /* @__PURE__ */ V(ii, [["render", ai]]), li = E({
1998
2017
  return s;
1999
2018
  }
2000
2019
  }), n = T("group", {});
2001
- return { modelValue: x({
2020
+ return { modelValue: q({
2002
2021
  get() {
2003
2022
  var s;
2004
2023
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -2015,7 +2034,7 @@ function di(t, e, n, r, s, o) {
2015
2034
  return te((m(), g("textarea", {
2016
2035
  name: t.name,
2017
2036
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
2018
- class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2037
+ class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2019
2038
  disabled: (a = t.form) == null ? void 0 : a.processing
2020
2039
  }, null, 10, ui)), [
2021
2040
  [Me, t.modelValue]
@@ -2051,7 +2070,7 @@ const ol = /* @__PURE__ */ V(li, [["render", di]]), pi = E({
2051
2070
  return s;
2052
2071
  }
2053
2072
  }), n = T("group", {});
2054
- return { modelValue: x({
2073
+ return { modelValue: q({
2055
2074
  get() {
2056
2075
  var s;
2057
2076
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -2069,7 +2088,7 @@ function fi(t, e, n, r, s, o) {
2069
2088
  name: t.name,
2070
2089
  id: t.inputID,
2071
2090
  "onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
2072
- class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control form-control-otp fanum"]),
2091
+ class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control form-control-otp fanum"]),
2073
2092
  disabled: (a = t.form) == null ? void 0 : a.processing,
2074
2093
  placeholder: t.placeholderLines,
2075
2094
  maxlength: t.maxLength,
@@ -2100,7 +2119,7 @@ const al = /* @__PURE__ */ V(pi, [["render", fi]]), ll = {
2100
2119
  value: {},
2101
2120
  errors: {},
2102
2121
  getID: (u) => u
2103
- }), o = T("group", null), i = G(null), a = G(null), l = x({
2122
+ }), o = T("group", null), i = G(null), a = G(null), l = q({
2104
2123
  get() {
2105
2124
  var u;
2106
2125
  return (u = o == null ? void 0 : o.value) != null && u.name ? o.value.getData(n.name) : s.value[n.name];
@@ -2243,7 +2262,7 @@ function Ti(t, e, n, r, s, o) {
2243
2262
  b("input", {
2244
2263
  ref: "input",
2245
2264
  name: t.name,
2246
- class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2265
+ class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
2247
2266
  disabled: (a = t.form) == null ? void 0 : a.processing,
2248
2267
  type: "file",
2249
2268
  multiple: t.multiple,
@@ -2347,7 +2366,7 @@ const ul = /* @__PURE__ */ V(mi, [["render", Ti]]), ki = E({
2347
2366
  return s;
2348
2367
  }
2349
2368
  }), n = T("group", {});
2350
- return { modelValue: x({
2369
+ return { modelValue: q({
2351
2370
  get() {
2352
2371
  var s;
2353
2372
  return n.value && e.value[n.value.name] ? (s = n.value) == null ? void 0 : s.getData(t.name) : e.value[t.name];
@@ -2424,7 +2443,7 @@ function Oe(t, e, n, r, s) {
2424
2443
  function he(t) {
2425
2444
  return t.children;
2426
2445
  }
2427
- function Re(t, e) {
2446
+ function Be(t, e) {
2428
2447
  this.props = t, this.context = e;
2429
2448
  }
2430
2449
  function ge(t, e) {
@@ -2516,7 +2535,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
2516
2535
  if (e.constructor !== void 0) return null;
2517
2536
  128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
2518
2537
  e: if (typeof D == "function") try {
2519
- if (k = e.props, I = "prototype" in D && D.prototype.render, Y = (d = D.contextType) && r[d.__c], f = d ? Y ? Y.props.value : d.__ : r, n.__c ? A = (p = e.__c = n.__c).__ = p.__E : (I ? e.__c = p = new D(k, f) : (e.__c = p = new Re(k, f), p.constructor = D, p.render = Ai), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), I && p.__s == null && (p.__s = p.state), I && D.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = re({}, p.__s)), re(p.__s, D.getDerivedStateFromProps(k, p.__s))), h = p.props, v = p.state, p.__v = e, c) I && D.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), I && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2538
+ 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 Be(k, f), p.constructor = D, p.render = Ai), Y && Y.sub(p), p.state || (p.state = {}), p.__n = r, c = p.__d = !0, p.__h = [], p._sb = []), I && p.__s == null && (p.__s = p.state), I && D.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = re({}, p.__s)), re(p.__s, D.getDerivedStateFromProps(k, p.__s))), h = p.props, v = p.state, p.__v = e, c) I && D.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), I && p.componentDidMount != null && p.__h.push(p.componentDidMount);
2520
2539
  else {
2521
2540
  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) {
2522
2541
  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) {
@@ -2634,12 +2653,12 @@ Ye = un.slice, C = { __e: function(t, e, n, r) {
2634
2653
  t = a;
2635
2654
  }
2636
2655
  throw t;
2637
- } }, sn = 0, Re.prototype.setState = function(t, e) {
2656
+ } }, sn = 0, Be.prototype.setState = function(t, e) {
2638
2657
  var n;
2639
2658
  n = this.__s != null && this.__s != this.state ? this.__s : this.__s = re({}, this.state), typeof t == "function" && (t = t(re({}, n), this.props)), t && re(n, t), t != null && this.__v && (e && this._sb.push(e), At(this));
2640
- }, Re.prototype.forceUpdate = function(t) {
2659
+ }, Be.prototype.forceUpdate = function(t) {
2641
2660
  this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
2642
- }, Re.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
2661
+ }, Be.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
2643
2662
  return t.__v.__b - e.__v.__b;
2644
2663
  }, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, nt = Nt(!1), rt = Nt(!0);
2645
2664
  var Di = 0;
@@ -2664,7 +2683,7 @@ function vn() {
2664
2683
  for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
2665
2684
  return r;
2666
2685
  }
2667
- 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.__;
2686
+ var ke, N, Qe, Pt, it = 0, _n = [], z = C, zt = z.__b, Ot = z.__r, Bt = z.diffed, Rt = z.__c, jt = z.unmount, Lt = z.__;
2668
2687
  function kt(t, e) {
2669
2688
  z.__h && z.__h(N, t, it || e), it = 0;
2670
2689
  var n = N.__H || (N.__H = { __: [], __h: [] });
@@ -2717,7 +2736,7 @@ function wn(t, e) {
2717
2736
  }
2718
2737
  function zi() {
2719
2738
  for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
2720
- t.__H.__h.forEach(Be), t.__H.__h.forEach(ot), t.__H.__h = [];
2739
+ t.__H.__h.forEach(Re), t.__H.__h.forEach(ot), t.__H.__h = [];
2721
2740
  } catch (e) {
2722
2741
  t.__H.__h = [], z.__e(e, t.__v);
2723
2742
  }
@@ -2731,9 +2750,9 @@ z.__b = function(t) {
2731
2750
  var e = (N = t.__c).__H;
2732
2751
  e && (Qe === N ? (e.__h = [], N.__h = [], e.__.forEach(function(n) {
2733
2752
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
2734
- })) : (e.__h.forEach(Be), e.__h.forEach(ot), e.__h = [], ke = 0)), Qe = N;
2753
+ })) : (e.__h.forEach(Re), e.__h.forEach(ot), e.__h = [], ke = 0)), Qe = N;
2735
2754
  }, z.diffed = function(t) {
2736
- Rt && Rt(t);
2755
+ Bt && Bt(t);
2737
2756
  var e = t.__c;
2738
2757
  e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Pt === z.requestAnimationFrame || ((Pt = z.requestAnimationFrame) || Oi)(zi)), e.__H.__.forEach(function(n) {
2739
2758
  n.u && (n.__H = n.u), n.u = void 0;
@@ -2741,7 +2760,7 @@ z.__b = function(t) {
2741
2760
  }, z.__c = function(t, e) {
2742
2761
  e.some(function(n) {
2743
2762
  try {
2744
- n.__h.forEach(Be), n.__h = n.__h.filter(function(r) {
2763
+ n.__h.forEach(Re), n.__h = n.__h.filter(function(r) {
2745
2764
  return !r.__ || ot(r);
2746
2765
  });
2747
2766
  } catch (r) {
@@ -2749,26 +2768,26 @@ z.__b = function(t) {
2749
2768
  s.__h && (s.__h = []);
2750
2769
  }), e = [], z.__e(r, n.__v);
2751
2770
  }
2752
- }), Bt && Bt(t, e);
2771
+ }), Rt && Rt(t, e);
2753
2772
  }, z.unmount = function(t) {
2754
2773
  jt && jt(t);
2755
2774
  var e, n = t.__c;
2756
2775
  n && n.__H && (n.__H.__.forEach(function(r) {
2757
2776
  try {
2758
- Be(r);
2777
+ Re(r);
2759
2778
  } catch (s) {
2760
2779
  e = s;
2761
2780
  }
2762
2781
  }), n.__H = void 0, e && z.__e(e, n.__v));
2763
2782
  };
2764
- var xt = typeof requestAnimationFrame == "function";
2783
+ var qt = typeof requestAnimationFrame == "function";
2765
2784
  function Oi(t) {
2766
2785
  var e, n = function() {
2767
- clearTimeout(r), xt && cancelAnimationFrame(e), setTimeout(t);
2786
+ clearTimeout(r), qt && cancelAnimationFrame(e), setTimeout(t);
2768
2787
  }, r = setTimeout(n, 35);
2769
- xt && (e = requestAnimationFrame(n));
2788
+ qt && (e = requestAnimationFrame(n));
2770
2789
  }
2771
- function Be(t) {
2790
+ function Re(t) {
2772
2791
  var e = N, n = t.__c;
2773
2792
  typeof n == "function" && (t.__c = void 0, n()), N = e;
2774
2793
  }
@@ -2784,7 +2803,7 @@ function $n(t, e) {
2784
2803
  function Sn(t, e) {
2785
2804
  return typeof e == "function" ? e(t) : e;
2786
2805
  }
2787
- function Ri(t, e = {}) {
2806
+ function Bi(t, e = {}) {
2788
2807
  const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
2789
2808
  var c, h;
2790
2809
  d.preventDefault(), d.stopPropagation();
@@ -2842,11 +2861,11 @@ function Ri(t, e = {}) {
2842
2861
  }
2843
2862
  };
2844
2863
  }
2845
- function Bi(t) {
2864
+ function Ri(t) {
2846
2865
  const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
2847
2866
  if (!o.uppy)
2848
2867
  throw new Error("Dropzone must be used within a UppyContextProvider");
2849
- const { getRootProps: i, getInputProps: a } = wn(() => Ri(o, { noClick: s }), [o, s]);
2868
+ const { getRootProps: i, getInputProps: a } = wn(() => Bi(o, { noClick: s }), [o, s]);
2850
2869
  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", {
2851
2870
  ...i(),
2852
2871
  // biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
@@ -2881,7 +2900,7 @@ const ji = [
2881
2900
  "EiB",
2882
2901
  "ZiB",
2883
2902
  "YiB"
2884
- ], xi = [
2903
+ ], qi = [
2885
2904
  "b",
2886
2905
  "kbit",
2887
2906
  "Mbit",
@@ -2891,7 +2910,7 @@ const ji = [
2891
2910
  "Ebit",
2892
2911
  "Zbit",
2893
2912
  "Ybit"
2894
- ], qi = [
2913
+ ], xi = [
2895
2914
  "b",
2896
2915
  "kibit",
2897
2916
  "Mibit",
@@ -2901,7 +2920,7 @@ const ji = [
2901
2920
  "Eibit",
2902
2921
  "Zibit",
2903
2922
  "Yibit"
2904
- ], qt = (t, e, n) => {
2923
+ ], xt = (t, e, n) => {
2905
2924
  let r = t;
2906
2925
  return typeof e == "string" || Array.isArray(e) ? r = t.toLocaleString(e, n) : (e === !0 || n !== void 0) && (r = t.toLocaleString(void 0, n)), r;
2907
2926
  };
@@ -2914,19 +2933,19 @@ function Hi(t, e) {
2914
2933
  space: !0,
2915
2934
  ...e
2916
2935
  };
2917
- const n = e.bits ? e.binary ? qi : xi : e.binary ? Li : ji, r = e.space ? " " : "";
2936
+ const n = e.bits ? e.binary ? xi : qi : e.binary ? Li : ji, r = e.space ? " " : "";
2918
2937
  if (e.signed && t === 0)
2919
2938
  return ` 0${r}${n[0]}`;
2920
2939
  const s = t < 0, o = s ? "-" : e.signed ? "+" : "";
2921
2940
  s && (t = -t);
2922
2941
  let i;
2923
2942
  if (e.minimumFractionDigits !== void 0 && (i = { minimumFractionDigits: e.minimumFractionDigits }), e.maximumFractionDigits !== void 0 && (i = { maximumFractionDigits: e.maximumFractionDigits, ...i }), t < 1) {
2924
- const d = qt(t, e.locale, i);
2943
+ const d = xt(t, e.locale, i);
2925
2944
  return o + d + r + n[0];
2926
2945
  }
2927
2946
  const a = Math.min(Math.floor(e.binary ? Math.log(t) / Math.log(1024) : Math.log10(t) / 3), n.length - 1);
2928
2947
  t /= (e.binary ? 1024 : 1e3) ** a, i || (t = t.toPrecision(3));
2929
- const l = qt(Number(t), e.locale, i), u = n[a];
2948
+ const l = xt(Number(t), e.locale, i), u = n[a];
2930
2949
  return o + l + r + u;
2931
2950
  }
2932
2951
  function Gi(t) {
@@ -3058,7 +3077,7 @@ const Zi = E({
3058
3077
  setup(t) {
3059
3078
  const e = G(null), n = Tn();
3060
3079
  function r() {
3061
- e.value && gn(St(Bi, {
3080
+ e.value && gn(St(Ri, {
3062
3081
  ...t,
3063
3082
  ctx: n
3064
3083
  }), e.value);
@@ -3234,9 +3253,9 @@ const ro = (t) => {
3234
3253
  var Ie, Ee, at;
3235
3254
  class so {
3236
3255
  constructor(e, { onMissingKey: n = ro } = {}) {
3237
- q(this, Ee);
3238
- B(this, "locale");
3239
- q(this, Ie);
3256
+ x(this, Ee);
3257
+ R(this, "locale");
3258
+ x(this, Ie);
3240
3259
  this.locale = {
3241
3260
  strings: {},
3242
3261
  pluralize(r) {
@@ -3353,16 +3372,16 @@ const fo = /* @__PURE__ */ Ze(co), mo = {
3353
3372
  class J extends Error {
3354
3373
  constructor(n, r) {
3355
3374
  super(n);
3356
- B(this, "isUserFacing");
3357
- B(this, "file");
3358
- B(this, "isRestriction", !0);
3375
+ R(this, "isUserFacing");
3376
+ R(this, "file");
3377
+ R(this, "isRestriction", !0);
3359
3378
  this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
3360
3379
  }
3361
3380
  }
3362
3381
  class ho {
3363
3382
  constructor(e, n) {
3364
- B(this, "getI18n");
3365
- B(this, "getOpts");
3383
+ R(this, "getI18n");
3384
+ R(this, "getOpts");
3366
3385
  this.getI18n = n, this.getOpts = () => {
3367
3386
  var s;
3368
3387
  const r = e();
@@ -3429,19 +3448,19 @@ class ho {
3429
3448
  const go = "5.0.0", yo = {
3430
3449
  version: go
3431
3450
  };
3432
- var ce, xe, Vn;
3451
+ var ce, qe, Vn;
3433
3452
  class Cn {
3434
3453
  constructor() {
3435
- q(this, xe);
3436
- B(this, "state", {});
3437
- q(this, ce, /* @__PURE__ */ new Set());
3454
+ x(this, qe);
3455
+ R(this, "state", {});
3456
+ x(this, ce, /* @__PURE__ */ new Set());
3438
3457
  }
3439
3458
  getState() {
3440
3459
  return this.state;
3441
3460
  }
3442
3461
  setState(e) {
3443
3462
  const n = { ...this.state }, r = { ...this.state, ...e };
3444
- this.state = r, F(this, xe, Vn).call(this, n, r, e);
3463
+ this.state = r, F(this, qe, Vn).call(this, n, r, e);
3445
3464
  }
3446
3465
  subscribe(e) {
3447
3466
  return w(this, ce).add(e), () => {
@@ -3449,11 +3468,11 @@ class Cn {
3449
3468
  };
3450
3469
  }
3451
3470
  }
3452
- ce = new WeakMap(), xe = new WeakSet(), Vn = function(...e) {
3471
+ ce = new WeakMap(), qe = new WeakSet(), Vn = function(...e) {
3453
3472
  w(this, ce).forEach((n) => {
3454
3473
  n(...e);
3455
3474
  });
3456
- }, B(Cn, "VERSION", yo.version);
3475
+ }, R(Cn, "VERSION", yo.version);
3457
3476
  function vo(t) {
3458
3477
  var e = typeof t;
3459
3478
  return t != null && (e == "object" || e == "function");
@@ -3481,13 +3500,13 @@ function Oo(t) {
3481
3500
  var s = zo.call(t);
3482
3501
  return r && (e ? t[we] = n : delete t[we]), s;
3483
3502
  }
3484
- var Ro = Oo, Bo = Object.prototype, jo = Bo.toString;
3503
+ var Bo = Oo, Ro = Object.prototype, jo = Ro.toString;
3485
3504
  function Lo(t) {
3486
3505
  return jo.call(t);
3487
3506
  }
3488
- var xo = Lo, Xt = Un, qo = Ro, Ho = xo, Go = "[object Null]", Wo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3507
+ var qo = Lo, Xt = Un, xo = Bo, Ho = qo, Go = "[object Null]", Wo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
3489
3508
  function Yo(t) {
3490
- return t == null ? t === void 0 ? Wo : Go : Zt && Zt in Object(t) ? qo(t) : Ho(t);
3509
+ return t == null ? t === void 0 ? Wo : Go : Zt && Zt in Object(t) ? xo(t) : Ho(t);
3491
3510
  }
3492
3511
  var Xo = Yo;
3493
3512
  function Zo(t) {
@@ -3706,32 +3725,32 @@ const ze = {
3706
3725
  error: null,
3707
3726
  recoveredState: null
3708
3727
  };
3709
- 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;
3728
+ var Z, K, Ce, le, fe, me, ue, y, oe, ut, Dn, Nn, Pn, dt, pt, ct, ft, xe, mt, de, zn, On, se, Ve, $e, Bn, ht, Se;
3710
3729
  const He = class He {
3711
3730
  /**
3712
3731
  * Instantiate Uppy
3713
3732
  */
3714
3733
  constructor(e) {
3715
- q(this, y);
3716
- q(this, Z, /* @__PURE__ */ Object.create(null));
3717
- q(this, K);
3718
- q(this, Ce);
3719
- q(this, le, Fa());
3720
- q(this, fe, /* @__PURE__ */ new Set());
3721
- q(this, me, /* @__PURE__ */ new Set());
3722
- q(this, ue, /* @__PURE__ */ new Set());
3723
- B(this, "defaultLocale");
3724
- B(this, "locale");
3734
+ x(this, y);
3735
+ x(this, Z, /* @__PURE__ */ Object.create(null));
3736
+ x(this, K);
3737
+ x(this, Ce);
3738
+ x(this, le, Fa());
3739
+ x(this, fe, /* @__PURE__ */ new Set());
3740
+ x(this, me, /* @__PURE__ */ new Set());
3741
+ x(this, ue, /* @__PURE__ */ new Set());
3742
+ R(this, "defaultLocale");
3743
+ R(this, "locale");
3725
3744
  // The user optionally passes in options, but we set defaults for missing options.
3726
3745
  // We consider all options present after the contructor has run.
3727
- B(this, "opts");
3728
- B(this, "store");
3746
+ R(this, "opts");
3747
+ R(this, "store");
3729
3748
  // Warning: do not use this from a plugin, as it will cause the plugins' translations to be missing
3730
- B(this, "i18n");
3731
- B(this, "i18nArray");
3732
- B(this, "scheduledAutoProceed", null);
3733
- B(this, "wasOffline", !1);
3734
- q(this, qe, (e, n) => {
3749
+ R(this, "i18n");
3750
+ R(this, "i18nArray");
3751
+ R(this, "scheduledAutoProceed", null);
3752
+ R(this, "wasOffline", !1);
3753
+ x(this, xe, (e, n) => {
3735
3754
  const r = e ? this.getFile(e.id) : void 0;
3736
3755
  if (e == null || !r) {
3737
3756
  this.log(`Not setting progress for a file that has been removed: ${e == null ? void 0 : e.id}`);
@@ -3766,8 +3785,8 @@ const He = class He {
3766
3785
  // and click 'ADD MORE FILES', - focus won't activate in Firefox.
3767
3786
  // - We must throttle at around >500ms to avoid performance lags.
3768
3787
  // [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
3769
- q(this, de, $a(() => F(this, y, mt).call(this), 500, { leading: !0, trailing: !0 }));
3770
- q(this, se, this.updateOnlineStatus.bind(this));
3788
+ x(this, de, $a(() => F(this, y, mt).call(this), 500, { leading: !0, trailing: !0 }));
3789
+ x(this, se, this.updateOnlineStatus.bind(this));
3771
3790
  // We need to store request clients by a unique ID, so we can share RequestClient instances across files
3772
3791
  // this allows us to do rate limiting and synchronous operations like refreshing provider tokens
3773
3792
  // example: refreshing tokens: if each file has their own requestclient,
@@ -3778,7 +3797,7 @@ const He = class He {
3778
3797
  // back when we had a requestclient per file, once an access token expired,
3779
3798
  // all 6 files would go ahead and refresh the token at the same time
3780
3799
  // (calling /refresh-token up to 6 times), which will probably fail for some providers
3781
- q(this, Ve, /* @__PURE__ */ new Map());
3800
+ x(this, Ve, /* @__PURE__ */ new Map());
3782
3801
  this.defaultLocale = Va;
3783
3802
  const n = {
3784
3803
  id: "uppy",
@@ -4304,7 +4323,7 @@ Uppy plugins must have unique \`id\` options.`;
4304
4323
  * Add data to an upload's result object.
4305
4324
  */
4306
4325
  addResultData(e, n) {
4307
- if (!F(this, y, Rn).call(this, e)) {
4326
+ if (!F(this, y, Bn).call(this, e)) {
4308
4327
  this.log(`Not setting result for an upload that has been removed: ${e}`);
4309
4328
  return;
4310
4329
  }
@@ -4503,7 +4522,7 @@ dt = function() {
4503
4522
  // create new upload even if allowNewUpload: false
4504
4523
  });
4505
4524
  return F(this, y, Se).call(this, r);
4506
- }, qe = new WeakMap(), mt = function() {
4525
+ }, xe = new WeakMap(), mt = function() {
4507
4526
  const e = F(this, y, zn).call(this);
4508
4527
  let n = null;
4509
4528
  e != null && (n = Math.round(e * 100), n > 100 ? n = 100 : n < 0 && (n = 0)), this.emit("progress", n ?? 0), this.setState({
@@ -4566,7 +4585,7 @@ On = function() {
4566
4585
  ]));
4567
4586
  this.patchFilesState(i);
4568
4587
  };
4569
- this.on("upload-start", r), this.on("upload-progress", w(this, qe)), this.on("upload-success", (s, o) => {
4588
+ this.on("upload-start", r), this.on("upload-progress", w(this, xe)), this.on("upload-success", (s, o) => {
4570
4589
  if (s == null || !this.getFile(s.id)) {
4571
4590
  this.log(`Not setting progress for a file that has been removed: ${s == null ? void 0 : s.id}`);
4572
4591
  return;
@@ -4658,7 +4677,7 @@ $e = function(e, n = {}) {
4658
4677
  }
4659
4678
  }
4660
4679
  }), i;
4661
- }, Rn = function(e) {
4680
+ }, Bn = function(e) {
4662
4681
  const { currentUploads: n } = this.getState();
4663
4682
  return n[e];
4664
4683
  }, /**
@@ -4716,7 +4735,7 @@ ht = function(e) {
4716
4735
  failed: [],
4717
4736
  uploadID: e
4718
4737
  }), o;
4719
- }, B(He, "VERSION", Ea.version);
4738
+ }, R(He, "VERSION", Ea.version);
4720
4739
  let lt = He;
4721
4740
  const Ua = {
4722
4741
  key: 0,
@@ -4754,7 +4773,7 @@ const Ua = {
4754
4773
  ],
4755
4774
  setup(t, { emit: e }) {
4756
4775
  var Y;
4757
- 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({
4776
+ 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({
4758
4777
  get() {
4759
4778
  var f;
4760
4779
  return (f = p == null ? void 0 : p.value) != null && f.name ? p.value.getData(n.name) : d.value[n.name];
@@ -4816,7 +4835,7 @@ const Ua = {
4816
4835
  f === !0 && _ === !1 && h();
4817
4836
  }), ye(() => {
4818
4837
  var f, _, $, U, P, H, ne, D;
4819
- n.useXHR && import("./index-BA2VhUGJ.js").then((X) => {
4838
+ n.useXHR && import("./index-DzPQkt4e.js").then((X) => {
4820
4839
  const pe = X.default;
4821
4840
  i.value.use(pe, {
4822
4841
  method: "POST",
@@ -4891,7 +4910,7 @@ const Ua = {
4891
4910
  }
4892
4911
  };
4893
4912
  export {
4894
- Ba as A,
4913
+ Ra as A,
4895
4914
  ja as C,
4896
4915
  Xa as E,
4897
4916
  Ya as F,
@@ -4900,14 +4919,14 @@ export {
4900
4919
  Qa as M,
4901
4920
  al as O,
4902
4921
  Ga as P,
4903
- Bs as Q,
4922
+ Rs as Q,
4904
4923
  dl as R,
4905
4924
  Ha as S,
4906
4925
  so as T,
4907
4926
  ll as _,
4908
4927
  La as a,
4909
- xa as b,
4910
- qa as c,
4928
+ qa as b,
4929
+ xa as c,
4911
4930
  Wa as d,
4912
4931
  ul as e,
4913
4932
  pl as f,