inertia-bootstrap-forms 2.1.17 → 2.1.19
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.
- package/dist/{index-qCegEt2e.js → index-89uBUFfa.js} +1 -1
- package/dist/{index-Dfw7KOro.js → index-BhsCzX_O.js} +85 -75
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +5 -5
- package/index.d.ts +37 -1
- package/package.json +1 -1
- package/src/CheckboxToggle.vue +11 -1
|
@@ -5,7 +5,7 @@ var et = (i) => {
|
|
|
5
5
|
var ct = (i, e, t) => e in i ? pt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
6
6
|
var y = (i, e, t) => ct(i, typeof e != "symbol" ? e + "" : e, t), G = (i, e, t) => e.has(i) || et("Cannot " + t);
|
|
7
7
|
var r = (i, e, t) => (G(i, e, "read from private field"), t ? t.call(i) : e.get(i)), m = (i, e, t) => e.has(i) ? et("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), c = (i, e, t, s) => (G(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t), g = (i, e, t) => (G(i, e, "access private method"), t);
|
|
8
|
-
import { T as mt } from "./index-
|
|
8
|
+
import { T as mt } from "./index-BhsCzX_O.js";
|
|
9
9
|
class K extends Error {
|
|
10
10
|
constructor(t, s = null) {
|
|
11
11
|
super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
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 ?
|
|
6
|
-
var
|
|
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
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
|
|
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:
|
|
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:
|
|
115
|
+
class: B(["alert", "alert-" + n.type])
|
|
116
116
|
}, [
|
|
117
117
|
O(t.$slots, "default")
|
|
118
118
|
], 2);
|
|
@@ -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:
|
|
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
|
|
207
|
+
const Ra = /* @__PURE__ */ V(Fr, [["render", kr]]), Ir = E({
|
|
208
208
|
props: {
|
|
209
209
|
name: {
|
|
210
210
|
type: String,
|
|
@@ -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:
|
|
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
|
|
368
|
+
function Br(t, e, n, r, s, o) {
|
|
369
369
|
var i, a;
|
|
370
370
|
return m(), g("label", {
|
|
371
|
-
class:
|
|
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:
|
|
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",
|
|
390
|
+
const La = /* @__PURE__ */ V(Pr, [["render", Br]]), Rr = E({
|
|
391
391
|
props: {
|
|
392
392
|
name: {
|
|
393
393
|
type: String,
|
|
@@ -440,7 +440,7 @@ function xr(t, e, n, r, s, o) {
|
|
|
440
440
|
name: t.name,
|
|
441
441
|
id: t.inputID,
|
|
442
442
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
443
|
-
class:
|
|
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,
|
|
@@ -456,7 +456,7 @@ function xr(t, e, n, r, s, o) {
|
|
|
456
456
|
], 8, qr)
|
|
457
457
|
]);
|
|
458
458
|
}
|
|
459
|
-
const qa = /* @__PURE__ */ V(
|
|
459
|
+
const qa = /* @__PURE__ */ V(Rr, [["render", xr]]), Hr = E({
|
|
460
460
|
props: {
|
|
461
461
|
name: {
|
|
462
462
|
type: String,
|
|
@@ -472,6 +472,10 @@ const qa = /* @__PURE__ */ V(Br, [["render", xr]]), 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",
|
|
@@ -482,6 +486,10 @@ const qa = /* @__PURE__ */ V(Br, [["render", xr]]), Hr = E({
|
|
|
482
486
|
default: !1,
|
|
483
487
|
required: !1
|
|
484
488
|
},
|
|
489
|
+
readonly: {
|
|
490
|
+
type: Boolean,
|
|
491
|
+
default: !1
|
|
492
|
+
},
|
|
485
493
|
hideInput: {
|
|
486
494
|
type: Boolean,
|
|
487
495
|
default: !1
|
|
@@ -513,13 +521,13 @@ const qa = /* @__PURE__ */ V(Br, [["render", xr]]), Hr = E({
|
|
|
513
521
|
}
|
|
514
522
|
}), form: e, group: n };
|
|
515
523
|
}
|
|
516
|
-
}), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value"];
|
|
524
|
+
}), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value", "checked", "readonly"];
|
|
517
525
|
function Yr(t, e, n, r, s, o) {
|
|
518
526
|
var i, a, l;
|
|
519
527
|
return m(), g("label", {
|
|
520
|
-
class:
|
|
528
|
+
class: B(["form-check-toggle", {
|
|
521
529
|
"form-check-toggle--active": (t.selectedValue || []).includes(t.value),
|
|
522
|
-
disabled: t.disabled,
|
|
530
|
+
disabled: t.disabled || t.readonly,
|
|
523
531
|
"is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name]
|
|
524
532
|
}]),
|
|
525
533
|
for: t.inputID
|
|
@@ -528,10 +536,12 @@ function Yr(t, e, n, r, s, o) {
|
|
|
528
536
|
name: t.name,
|
|
529
537
|
id: t.inputID,
|
|
530
538
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => t.modelValue = u),
|
|
531
|
-
class:
|
|
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"]),
|
|
532
540
|
disabled: ((l = t.form) == null ? void 0 : l.processing) || t.disabled,
|
|
533
541
|
type: t.type,
|
|
534
542
|
value: t.value,
|
|
543
|
+
checked: t.checked,
|
|
544
|
+
readonly: t.readonly,
|
|
535
545
|
onChange: e[1] || (e[1] = (u) => t.$emit("change", u))
|
|
536
546
|
}, null, 42, Wr), [
|
|
537
547
|
[Ge, t.modelValue]
|
|
@@ -592,13 +602,13 @@ const xa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
592
602
|
function Jr(t, e, n, r, s, o) {
|
|
593
603
|
var i, a;
|
|
594
604
|
return m(), g("div", {
|
|
595
|
-
class:
|
|
605
|
+
class: B(["form-check form-switch", { disabled: t.disabled }])
|
|
596
606
|
}, [
|
|
597
607
|
te(b("input", {
|
|
598
608
|
name: t.name,
|
|
599
609
|
id: t.inputID,
|
|
600
610
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
601
|
-
class:
|
|
611
|
+
class: B([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
|
|
602
612
|
disabled: ((a = t.form) == null ? void 0 : a.processing) || t.disabled,
|
|
603
613
|
type: t.type,
|
|
604
614
|
value: t.value,
|
|
@@ -879,7 +889,7 @@ function hs(t, e, n, r, s, o) {
|
|
|
879
889
|
ref: "input",
|
|
880
890
|
name: t.name,
|
|
881
891
|
id: t.inputID,
|
|
882
|
-
class:
|
|
892
|
+
class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
883
893
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
884
894
|
type: "file",
|
|
885
895
|
multiple: t.multiple,
|
|
@@ -1159,7 +1169,7 @@ function ks(t, e, n, r, s, o) {
|
|
|
1159
1169
|
}),
|
|
1160
1170
|
onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
|
|
1161
1171
|
onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
|
|
1162
|
-
class:
|
|
1172
|
+
class: B({ "form-processing": t.form.processing }),
|
|
1163
1173
|
novalidate: !!Object.values(t.form.errors).length
|
|
1164
1174
|
}, [
|
|
1165
1175
|
O(t.$slots, "errors", {}, () => [
|
|
@@ -1278,7 +1288,7 @@ function Us(t, e, n, r, s, o) {
|
|
|
1278
1288
|
var u;
|
|
1279
1289
|
const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
|
|
1280
1290
|
return m(), g("div", {
|
|
1281
|
-
class:
|
|
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 }])
|
|
1282
1292
|
}, [
|
|
1283
1293
|
Q(l, {
|
|
1284
1294
|
ref: "map",
|
|
@@ -1405,7 +1415,7 @@ const el = /* @__PURE__ */ V(Ns, [["render", Ps]]), zs = E({
|
|
|
1405
1415
|
return {};
|
|
1406
1416
|
}
|
|
1407
1417
|
}), Os = ["name", "value", "disabled", "readonly"];
|
|
1408
|
-
function
|
|
1418
|
+
function Bs(t, e, n, r, s, o) {
|
|
1409
1419
|
const i = L("InputGroupText"), a = L("InputGroup"), l = xn("maska");
|
|
1410
1420
|
return m(), ee(a, { class: "input-group-quantity" }, {
|
|
1411
1421
|
default: ie(() => [
|
|
@@ -1433,7 +1443,7 @@ function Rs(t, e, n, r, s, o) {
|
|
|
1433
1443
|
"data-maska": "###,###,###,###,###,###,###",
|
|
1434
1444
|
"data-maska-reversed": "",
|
|
1435
1445
|
onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
|
|
1436
|
-
class:
|
|
1446
|
+
class: B([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
|
|
1437
1447
|
disabled: t.disabled || t.form.processing,
|
|
1438
1448
|
readonly: t.readonly,
|
|
1439
1449
|
type: "tel"
|
|
@@ -1470,8 +1480,8 @@ function Rs(t, e, n, r, s, o) {
|
|
|
1470
1480
|
_: 3
|
|
1471
1481
|
});
|
|
1472
1482
|
}
|
|
1473
|
-
const
|
|
1474
|
-
components: { GroupControl: ws, QuantityInput:
|
|
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 },
|
|
1475
1485
|
props: {
|
|
1476
1486
|
name: {
|
|
1477
1487
|
type: String,
|
|
@@ -1560,7 +1570,7 @@ function Gs(t, e, n, r, s, o) {
|
|
|
1560
1570
|
onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
|
|
1561
1571
|
}, W(t.totalQuantity) + " " + W(t.unit), 1),
|
|
1562
1572
|
b("div", {
|
|
1563
|
-
class:
|
|
1573
|
+
class: B(["multi-quantity-input--dropdown", { show: t.showDropdown }])
|
|
1564
1574
|
}, [
|
|
1565
1575
|
Q(a, { name: t.name }, {
|
|
1566
1576
|
default: ie(() => [
|
|
@@ -1769,7 +1779,7 @@ const tl = /* @__PURE__ */ V(js, [["render", Gs]]), Ws = E({
|
|
|
1769
1779
|
}), Ys = ["name", "id"], Xs = ["value", "selected"];
|
|
1770
1780
|
function Zs(t, e, n, r, s, o) {
|
|
1771
1781
|
return m(), g("div", {
|
|
1772
|
-
class:
|
|
1782
|
+
class: B(["select2-controller", {
|
|
1773
1783
|
"is-invalid": t.form.errors[t.name],
|
|
1774
1784
|
"select2-dropdown-hidden": t.hideDropdown === !0
|
|
1775
1785
|
}])
|
|
@@ -2024,7 +2034,7 @@ function di(t, e, n, r, s, o) {
|
|
|
2024
2034
|
return te((m(), g("textarea", {
|
|
2025
2035
|
name: t.name,
|
|
2026
2036
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
2027
|
-
class:
|
|
2037
|
+
class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2028
2038
|
disabled: (a = t.form) == null ? void 0 : a.processing
|
|
2029
2039
|
}, null, 10, ui)), [
|
|
2030
2040
|
[Me, t.modelValue]
|
|
@@ -2078,7 +2088,7 @@ function fi(t, e, n, r, s, o) {
|
|
|
2078
2088
|
name: t.name,
|
|
2079
2089
|
id: t.inputID,
|
|
2080
2090
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
2081
|
-
class:
|
|
2091
|
+
class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control form-control-otp fanum"]),
|
|
2082
2092
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
2083
2093
|
placeholder: t.placeholderLines,
|
|
2084
2094
|
maxlength: t.maxLength,
|
|
@@ -2252,7 +2262,7 @@ function Ti(t, e, n, r, s, o) {
|
|
|
2252
2262
|
b("input", {
|
|
2253
2263
|
ref: "input",
|
|
2254
2264
|
name: t.name,
|
|
2255
|
-
class:
|
|
2265
|
+
class: B([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2256
2266
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
2257
2267
|
type: "file",
|
|
2258
2268
|
multiple: t.multiple,
|
|
@@ -2433,7 +2443,7 @@ function Oe(t, e, n, r, s) {
|
|
|
2433
2443
|
function he(t) {
|
|
2434
2444
|
return t.children;
|
|
2435
2445
|
}
|
|
2436
|
-
function
|
|
2446
|
+
function Be(t, e) {
|
|
2437
2447
|
this.props = t, this.context = e;
|
|
2438
2448
|
}
|
|
2439
2449
|
function ge(t, e) {
|
|
@@ -2525,7 +2535,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2525
2535
|
if (e.constructor !== void 0) return null;
|
|
2526
2536
|
128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
|
|
2527
2537
|
e: if (typeof D == "function") try {
|
|
2528
|
-
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
|
|
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);
|
|
2529
2539
|
else {
|
|
2530
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) {
|
|
2531
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) {
|
|
@@ -2643,12 +2653,12 @@ Ye = un.slice, C = { __e: function(t, e, n, r) {
|
|
|
2643
2653
|
t = a;
|
|
2644
2654
|
}
|
|
2645
2655
|
throw t;
|
|
2646
|
-
} }, sn = 0,
|
|
2656
|
+
} }, sn = 0, Be.prototype.setState = function(t, e) {
|
|
2647
2657
|
var n;
|
|
2648
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));
|
|
2649
|
-
},
|
|
2659
|
+
}, Be.prototype.forceUpdate = function(t) {
|
|
2650
2660
|
this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
|
|
2651
|
-
},
|
|
2661
|
+
}, Be.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
|
|
2652
2662
|
return t.__v.__b - e.__v.__b;
|
|
2653
2663
|
}, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, nt = Nt(!1), rt = Nt(!0);
|
|
2654
2664
|
var Di = 0;
|
|
@@ -2673,7 +2683,7 @@ function vn() {
|
|
|
2673
2683
|
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
|
|
2674
2684
|
return r;
|
|
2675
2685
|
}
|
|
2676
|
-
var ke, N, Qe, Pt, it = 0, _n = [], z = C, zt = z.__b, Ot = z.__r,
|
|
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.__;
|
|
2677
2687
|
function kt(t, e) {
|
|
2678
2688
|
z.__h && z.__h(N, t, it || e), it = 0;
|
|
2679
2689
|
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
@@ -2726,7 +2736,7 @@ function wn(t, e) {
|
|
|
2726
2736
|
}
|
|
2727
2737
|
function zi() {
|
|
2728
2738
|
for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
|
|
2729
|
-
t.__H.__h.forEach(
|
|
2739
|
+
t.__H.__h.forEach(Re), t.__H.__h.forEach(ot), t.__H.__h = [];
|
|
2730
2740
|
} catch (e) {
|
|
2731
2741
|
t.__H.__h = [], z.__e(e, t.__v);
|
|
2732
2742
|
}
|
|
@@ -2740,9 +2750,9 @@ z.__b = function(t) {
|
|
|
2740
2750
|
var e = (N = t.__c).__H;
|
|
2741
2751
|
e && (Qe === N ? (e.__h = [], N.__h = [], e.__.forEach(function(n) {
|
|
2742
2752
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
2743
|
-
})) : (e.__h.forEach(
|
|
2753
|
+
})) : (e.__h.forEach(Re), e.__h.forEach(ot), e.__h = [], ke = 0)), Qe = N;
|
|
2744
2754
|
}, z.diffed = function(t) {
|
|
2745
|
-
|
|
2755
|
+
Bt && Bt(t);
|
|
2746
2756
|
var e = t.__c;
|
|
2747
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) {
|
|
2748
2758
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
@@ -2750,7 +2760,7 @@ z.__b = function(t) {
|
|
|
2750
2760
|
}, z.__c = function(t, e) {
|
|
2751
2761
|
e.some(function(n) {
|
|
2752
2762
|
try {
|
|
2753
|
-
n.__h.forEach(
|
|
2763
|
+
n.__h.forEach(Re), n.__h = n.__h.filter(function(r) {
|
|
2754
2764
|
return !r.__ || ot(r);
|
|
2755
2765
|
});
|
|
2756
2766
|
} catch (r) {
|
|
@@ -2758,13 +2768,13 @@ z.__b = function(t) {
|
|
|
2758
2768
|
s.__h && (s.__h = []);
|
|
2759
2769
|
}), e = [], z.__e(r, n.__v);
|
|
2760
2770
|
}
|
|
2761
|
-
}),
|
|
2771
|
+
}), Rt && Rt(t, e);
|
|
2762
2772
|
}, z.unmount = function(t) {
|
|
2763
2773
|
jt && jt(t);
|
|
2764
2774
|
var e, n = t.__c;
|
|
2765
2775
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
2766
2776
|
try {
|
|
2767
|
-
|
|
2777
|
+
Re(r);
|
|
2768
2778
|
} catch (s) {
|
|
2769
2779
|
e = s;
|
|
2770
2780
|
}
|
|
@@ -2777,7 +2787,7 @@ function Oi(t) {
|
|
|
2777
2787
|
}, r = setTimeout(n, 35);
|
|
2778
2788
|
qt && (e = requestAnimationFrame(n));
|
|
2779
2789
|
}
|
|
2780
|
-
function
|
|
2790
|
+
function Re(t) {
|
|
2781
2791
|
var e = N, n = t.__c;
|
|
2782
2792
|
typeof n == "function" && (t.__c = void 0, n()), N = e;
|
|
2783
2793
|
}
|
|
@@ -2793,7 +2803,7 @@ function $n(t, e) {
|
|
|
2793
2803
|
function Sn(t, e) {
|
|
2794
2804
|
return typeof e == "function" ? e(t) : e;
|
|
2795
2805
|
}
|
|
2796
|
-
function
|
|
2806
|
+
function Bi(t, e = {}) {
|
|
2797
2807
|
const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
|
|
2798
2808
|
var c, h;
|
|
2799
2809
|
d.preventDefault(), d.stopPropagation();
|
|
@@ -2851,11 +2861,11 @@ function Ri(t, e = {}) {
|
|
|
2851
2861
|
}
|
|
2852
2862
|
};
|
|
2853
2863
|
}
|
|
2854
|
-
function
|
|
2864
|
+
function Ri(t) {
|
|
2855
2865
|
const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
|
|
2856
2866
|
if (!o.uppy)
|
|
2857
2867
|
throw new Error("Dropzone must be used within a UppyContextProvider");
|
|
2858
|
-
const { getRootProps: i, getInputProps: a } = wn(() =>
|
|
2868
|
+
const { getRootProps: i, getInputProps: a } = wn(() => Bi(o, { noClick: s }), [o, s]);
|
|
2859
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", {
|
|
2860
2870
|
...i(),
|
|
2861
2871
|
// biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
|
|
@@ -3067,7 +3077,7 @@ const Zi = E({
|
|
|
3067
3077
|
setup(t) {
|
|
3068
3078
|
const e = G(null), n = Tn();
|
|
3069
3079
|
function r() {
|
|
3070
|
-
e.value && gn(St(
|
|
3080
|
+
e.value && gn(St(Ri, {
|
|
3071
3081
|
...t,
|
|
3072
3082
|
ctx: n
|
|
3073
3083
|
}), e.value);
|
|
@@ -3244,7 +3254,7 @@ var Ie, Ee, at;
|
|
|
3244
3254
|
class so {
|
|
3245
3255
|
constructor(e, { onMissingKey: n = ro } = {}) {
|
|
3246
3256
|
x(this, Ee);
|
|
3247
|
-
|
|
3257
|
+
R(this, "locale");
|
|
3248
3258
|
x(this, Ie);
|
|
3249
3259
|
this.locale = {
|
|
3250
3260
|
strings: {},
|
|
@@ -3362,16 +3372,16 @@ const fo = /* @__PURE__ */ Ze(co), mo = {
|
|
|
3362
3372
|
class J extends Error {
|
|
3363
3373
|
constructor(n, r) {
|
|
3364
3374
|
super(n);
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3375
|
+
R(this, "isUserFacing");
|
|
3376
|
+
R(this, "file");
|
|
3377
|
+
R(this, "isRestriction", !0);
|
|
3368
3378
|
this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
|
|
3369
3379
|
}
|
|
3370
3380
|
}
|
|
3371
3381
|
class ho {
|
|
3372
3382
|
constructor(e, n) {
|
|
3373
|
-
|
|
3374
|
-
|
|
3383
|
+
R(this, "getI18n");
|
|
3384
|
+
R(this, "getOpts");
|
|
3375
3385
|
this.getI18n = n, this.getOpts = () => {
|
|
3376
3386
|
var s;
|
|
3377
3387
|
const r = e();
|
|
@@ -3442,7 +3452,7 @@ var ce, qe, Vn;
|
|
|
3442
3452
|
class Cn {
|
|
3443
3453
|
constructor() {
|
|
3444
3454
|
x(this, qe);
|
|
3445
|
-
|
|
3455
|
+
R(this, "state", {});
|
|
3446
3456
|
x(this, ce, /* @__PURE__ */ new Set());
|
|
3447
3457
|
}
|
|
3448
3458
|
getState() {
|
|
@@ -3462,7 +3472,7 @@ ce = new WeakMap(), qe = new WeakSet(), Vn = function(...e) {
|
|
|
3462
3472
|
w(this, ce).forEach((n) => {
|
|
3463
3473
|
n(...e);
|
|
3464
3474
|
});
|
|
3465
|
-
},
|
|
3475
|
+
}, R(Cn, "VERSION", yo.version);
|
|
3466
3476
|
function vo(t) {
|
|
3467
3477
|
var e = typeof t;
|
|
3468
3478
|
return t != null && (e == "object" || e == "function");
|
|
@@ -3490,11 +3500,11 @@ function Oo(t) {
|
|
|
3490
3500
|
var s = zo.call(t);
|
|
3491
3501
|
return r && (e ? t[we] = n : delete t[we]), s;
|
|
3492
3502
|
}
|
|
3493
|
-
var
|
|
3503
|
+
var Bo = Oo, Ro = Object.prototype, jo = Ro.toString;
|
|
3494
3504
|
function Lo(t) {
|
|
3495
3505
|
return jo.call(t);
|
|
3496
3506
|
}
|
|
3497
|
-
var qo = Lo, Xt = Un, xo =
|
|
3507
|
+
var qo = Lo, Xt = Un, xo = Bo, Ho = qo, Go = "[object Null]", Wo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
|
|
3498
3508
|
function Yo(t) {
|
|
3499
3509
|
return t == null ? t === void 0 ? Wo : Go : Zt && Zt in Object(t) ? xo(t) : Ho(t);
|
|
3500
3510
|
}
|
|
@@ -3715,7 +3725,7 @@ const ze = {
|
|
|
3715
3725
|
error: null,
|
|
3716
3726
|
recoveredState: null
|
|
3717
3727
|
};
|
|
3718
|
-
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,
|
|
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;
|
|
3719
3729
|
const He = class He {
|
|
3720
3730
|
/**
|
|
3721
3731
|
* Instantiate Uppy
|
|
@@ -3729,17 +3739,17 @@ const He = class He {
|
|
|
3729
3739
|
x(this, fe, /* @__PURE__ */ new Set());
|
|
3730
3740
|
x(this, me, /* @__PURE__ */ new Set());
|
|
3731
3741
|
x(this, ue, /* @__PURE__ */ new Set());
|
|
3732
|
-
|
|
3733
|
-
|
|
3742
|
+
R(this, "defaultLocale");
|
|
3743
|
+
R(this, "locale");
|
|
3734
3744
|
// The user optionally passes in options, but we set defaults for missing options.
|
|
3735
3745
|
// We consider all options present after the contructor has run.
|
|
3736
|
-
|
|
3737
|
-
|
|
3746
|
+
R(this, "opts");
|
|
3747
|
+
R(this, "store");
|
|
3738
3748
|
// Warning: do not use this from a plugin, as it will cause the plugins' translations to be missing
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3749
|
+
R(this, "i18n");
|
|
3750
|
+
R(this, "i18nArray");
|
|
3751
|
+
R(this, "scheduledAutoProceed", null);
|
|
3752
|
+
R(this, "wasOffline", !1);
|
|
3743
3753
|
x(this, xe, (e, n) => {
|
|
3744
3754
|
const r = e ? this.getFile(e.id) : void 0;
|
|
3745
3755
|
if (e == null || !r) {
|
|
@@ -4313,7 +4323,7 @@ Uppy plugins must have unique \`id\` options.`;
|
|
|
4313
4323
|
* Add data to an upload's result object.
|
|
4314
4324
|
*/
|
|
4315
4325
|
addResultData(e, n) {
|
|
4316
|
-
if (!F(this, y,
|
|
4326
|
+
if (!F(this, y, Bn).call(this, e)) {
|
|
4317
4327
|
this.log(`Not setting result for an upload that has been removed: ${e}`);
|
|
4318
4328
|
return;
|
|
4319
4329
|
}
|
|
@@ -4667,7 +4677,7 @@ $e = function(e, n = {}) {
|
|
|
4667
4677
|
}
|
|
4668
4678
|
}
|
|
4669
4679
|
}), i;
|
|
4670
|
-
},
|
|
4680
|
+
}, Bn = function(e) {
|
|
4671
4681
|
const { currentUploads: n } = this.getState();
|
|
4672
4682
|
return n[e];
|
|
4673
4683
|
}, /**
|
|
@@ -4725,7 +4735,7 @@ ht = function(e) {
|
|
|
4725
4735
|
failed: [],
|
|
4726
4736
|
uploadID: e
|
|
4727
4737
|
}), o;
|
|
4728
|
-
},
|
|
4738
|
+
}, R(He, "VERSION", Ea.version);
|
|
4729
4739
|
let lt = He;
|
|
4730
4740
|
const Ua = {
|
|
4731
4741
|
key: 0,
|
|
@@ -4825,7 +4835,7 @@ const Ua = {
|
|
|
4825
4835
|
f === !0 && _ === !1 && h();
|
|
4826
4836
|
}), ye(() => {
|
|
4827
4837
|
var f, _, $, U, P, H, ne, D;
|
|
4828
|
-
n.useXHR && import("./index-
|
|
4838
|
+
n.useXHR && import("./index-89uBUFfa.js").then((X) => {
|
|
4829
4839
|
const pe = X.default;
|
|
4830
4840
|
i.value.use(pe, {
|
|
4831
4841
|
method: "POST",
|
|
@@ -4900,7 +4910,7 @@ const Ua = {
|
|
|
4900
4910
|
}
|
|
4901
4911
|
};
|
|
4902
4912
|
export {
|
|
4903
|
-
|
|
4913
|
+
Ra as A,
|
|
4904
4914
|
ja as C,
|
|
4905
4915
|
Xa as E,
|
|
4906
4916
|
Ya as F,
|
|
@@ -4909,7 +4919,7 @@ export {
|
|
|
4909
4919
|
Qa as M,
|
|
4910
4920
|
al as O,
|
|
4911
4921
|
Ga as P,
|
|
4912
|
-
|
|
4922
|
+
Rs as Q,
|
|
4913
4923
|
dl as R,
|
|
4914
4924
|
Ha as S,
|
|
4915
4925
|
so as T,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as n, C as p, a as s, b as u, c as e, _ as o, d as I, E as i, F as r, g as l, m as c, G as m, L as b, M as C, i as S, O as h, h as x, P as d, Q as g, R as k, l as P, e as T, k as F, j as y, S as A, n as E, o as L, p as M, f as Q } from "./index-
|
|
1
|
+
import { A as n, C as p, a as s, b as u, c as e, _ as o, d as I, E as i, F as r, g as l, m as c, G as m, L as b, M as C, i as S, O as h, h as x, P as d, Q as g, R as k, l as P, e as T, k as F, j as y, S as A, n as E, o as L, p as M, f as Q } from "./index-BhsCzX_O.js";
|
|
2
2
|
export {
|
|
3
3
|
n as AmountInput,
|
|
4
4
|
p as CaptchaInput,
|