inertia-bootstrap-forms 2.1.19 → 2.1.21
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-89uBUFfa.js → index-BRtKc2RA.js} +1 -1
- package/dist/{index-BhsCzX_O.js → index-_x4UqcXz.js} +74 -79
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +1 -1
- package/dist/style.css +1 -1
- package/index.d.ts +0 -4
- package/package.json +1 -1
- package/src/CheckboxToggle.vue +1 -6
|
@@ -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-_x4UqcXz.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 Bn = 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 ? 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
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 R, 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: R(["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: R(["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: R(["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 Ba = /* @__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: R([{ "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 Rr(t, e, n, r, s, o) {
|
|
369
369
|
var i, a;
|
|
370
370
|
return m(), g("label", {
|
|
371
|
-
class:
|
|
371
|
+
class: R(["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: R([{ "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 Br(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", Rr]]), Br = 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: R([{ "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(Br, [["render", xr]]), Hr = E({
|
|
460
460
|
props: {
|
|
461
461
|
name: {
|
|
462
462
|
type: String,
|
|
@@ -472,10 +472,6 @@ const qa = /* @__PURE__ */ V(Rr, [["render", xr]]), Hr = E({
|
|
|
472
472
|
default: "yes",
|
|
473
473
|
required: !1
|
|
474
474
|
},
|
|
475
|
-
checked: {
|
|
476
|
-
type: [Boolean],
|
|
477
|
-
default: ""
|
|
478
|
-
},
|
|
479
475
|
type: {
|
|
480
476
|
type: String,
|
|
481
477
|
default: "checkbox",
|
|
@@ -521,11 +517,11 @@ const qa = /* @__PURE__ */ V(Rr, [["render", xr]]), Hr = E({
|
|
|
521
517
|
}
|
|
522
518
|
}), form: e, group: n };
|
|
523
519
|
}
|
|
524
|
-
}), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value", "
|
|
520
|
+
}), Gr = ["for"], Wr = ["name", "id", "disabled", "type", "value", "readonly"];
|
|
525
521
|
function Yr(t, e, n, r, s, o) {
|
|
526
522
|
var i, a, l;
|
|
527
523
|
return m(), g("label", {
|
|
528
|
-
class:
|
|
524
|
+
class: R(["form-check-toggle", {
|
|
529
525
|
"form-check-toggle--active": (t.selectedValue || []).includes(t.value),
|
|
530
526
|
disabled: t.disabled || t.readonly,
|
|
531
527
|
"is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name]
|
|
@@ -536,11 +532,10 @@ function Yr(t, e, n, r, s, o) {
|
|
|
536
532
|
name: t.name,
|
|
537
533
|
id: t.inputID,
|
|
538
534
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => t.modelValue = u),
|
|
539
|
-
class:
|
|
535
|
+
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"]),
|
|
540
536
|
disabled: ((l = t.form) == null ? void 0 : l.processing) || t.disabled,
|
|
541
537
|
type: t.type,
|
|
542
538
|
value: t.value,
|
|
543
|
-
checked: t.checked,
|
|
544
539
|
readonly: t.readonly,
|
|
545
540
|
onChange: e[1] || (e[1] = (u) => t.$emit("change", u))
|
|
546
541
|
}, null, 42, Wr), [
|
|
@@ -602,13 +597,13 @@ const xa = /* @__PURE__ */ V(Hr, [["render", Yr]]), Xr = E({
|
|
|
602
597
|
function Jr(t, e, n, r, s, o) {
|
|
603
598
|
var i, a;
|
|
604
599
|
return m(), g("div", {
|
|
605
|
-
class:
|
|
600
|
+
class: R(["form-check form-switch", { disabled: t.disabled }])
|
|
606
601
|
}, [
|
|
607
602
|
te(b("input", {
|
|
608
603
|
name: t.name,
|
|
609
604
|
id: t.inputID,
|
|
610
605
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
611
|
-
class:
|
|
606
|
+
class: R([{ "is-invalid": (i = t.form) == null ? void 0 : i.errors[t.name] }, "form-check-input"]),
|
|
612
607
|
disabled: ((a = t.form) == null ? void 0 : a.processing) || t.disabled,
|
|
613
608
|
type: t.type,
|
|
614
609
|
value: t.value,
|
|
@@ -889,7 +884,7 @@ function hs(t, e, n, r, s, o) {
|
|
|
889
884
|
ref: "input",
|
|
890
885
|
name: t.name,
|
|
891
886
|
id: t.inputID,
|
|
892
|
-
class:
|
|
887
|
+
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
893
888
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
894
889
|
type: "file",
|
|
895
890
|
multiple: t.multiple,
|
|
@@ -1169,7 +1164,7 @@ function ks(t, e, n, r, s, o) {
|
|
|
1169
1164
|
}),
|
|
1170
1165
|
onSubmit: e[1] || (e[1] = nn((...a) => t.submit && t.submit(...a), ["prevent"])),
|
|
1171
1166
|
onReset: e[2] || (e[2] = (a) => t.$emit("reset")),
|
|
1172
|
-
class:
|
|
1167
|
+
class: R({ "form-processing": t.form.processing }),
|
|
1173
1168
|
novalidate: !!Object.values(t.form.errors).length
|
|
1174
1169
|
}, [
|
|
1175
1170
|
O(t.$slots, "errors", {}, () => [
|
|
@@ -1288,7 +1283,7 @@ function Us(t, e, n, r, s, o) {
|
|
|
1288
1283
|
var u;
|
|
1289
1284
|
const i = L("l-tile-layer"), a = L("LMarker"), l = L("l-map");
|
|
1290
1285
|
return m(), g("div", {
|
|
1291
|
-
class:
|
|
1286
|
+
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 }])
|
|
1292
1287
|
}, [
|
|
1293
1288
|
Q(l, {
|
|
1294
1289
|
ref: "map",
|
|
@@ -1415,7 +1410,7 @@ const el = /* @__PURE__ */ V(Ns, [["render", Ps]]), zs = E({
|
|
|
1415
1410
|
return {};
|
|
1416
1411
|
}
|
|
1417
1412
|
}), Os = ["name", "value", "disabled", "readonly"];
|
|
1418
|
-
function
|
|
1413
|
+
function Rs(t, e, n, r, s, o) {
|
|
1419
1414
|
const i = L("InputGroupText"), a = L("InputGroup"), l = xn("maska");
|
|
1420
1415
|
return m(), ee(a, { class: "input-group-quantity" }, {
|
|
1421
1416
|
default: ie(() => [
|
|
@@ -1443,7 +1438,7 @@ function Bs(t, e, n, r, s, o) {
|
|
|
1443
1438
|
"data-maska": "###,###,###,###,###,###,###",
|
|
1444
1439
|
"data-maska-reversed": "",
|
|
1445
1440
|
onMaska: e[1] || (e[1] = (...u) => t.onChange && t.onChange(...u)),
|
|
1446
|
-
class:
|
|
1441
|
+
class: R([{ "is-invalid": t.form.errors[t.name] }, "form-control fanum text-center"]),
|
|
1447
1442
|
disabled: t.disabled || t.form.processing,
|
|
1448
1443
|
readonly: t.readonly,
|
|
1449
1444
|
type: "tel"
|
|
@@ -1480,8 +1475,8 @@ function Bs(t, e, n, r, s, o) {
|
|
|
1480
1475
|
_: 3
|
|
1481
1476
|
});
|
|
1482
1477
|
}
|
|
1483
|
-
const
|
|
1484
|
-
components: { GroupControl: ws, QuantityInput:
|
|
1478
|
+
const Bs = /* @__PURE__ */ V(zs, [["render", Rs]]), js = E({
|
|
1479
|
+
components: { GroupControl: ws, QuantityInput: Bs, InputGroup: _t, InputGroupText: bt, Dropdown: or, DropdownToggle: pr, DropdownMenu: dr },
|
|
1485
1480
|
props: {
|
|
1486
1481
|
name: {
|
|
1487
1482
|
type: String,
|
|
@@ -1570,7 +1565,7 @@ function Gs(t, e, n, r, s, o) {
|
|
|
1570
1565
|
onClick: e[0] || (e[0] = nn((...l) => t.show && t.show(...l), ["prevent"]))
|
|
1571
1566
|
}, W(t.totalQuantity) + " " + W(t.unit), 1),
|
|
1572
1567
|
b("div", {
|
|
1573
|
-
class:
|
|
1568
|
+
class: R(["multi-quantity-input--dropdown", { show: t.showDropdown }])
|
|
1574
1569
|
}, [
|
|
1575
1570
|
Q(a, { name: t.name }, {
|
|
1576
1571
|
default: ie(() => [
|
|
@@ -1779,7 +1774,7 @@ const tl = /* @__PURE__ */ V(js, [["render", Gs]]), Ws = E({
|
|
|
1779
1774
|
}), Ys = ["name", "id"], Xs = ["value", "selected"];
|
|
1780
1775
|
function Zs(t, e, n, r, s, o) {
|
|
1781
1776
|
return m(), g("div", {
|
|
1782
|
-
class:
|
|
1777
|
+
class: R(["select2-controller", {
|
|
1783
1778
|
"is-invalid": t.form.errors[t.name],
|
|
1784
1779
|
"select2-dropdown-hidden": t.hideDropdown === !0
|
|
1785
1780
|
}])
|
|
@@ -2034,7 +2029,7 @@ function di(t, e, n, r, s, o) {
|
|
|
2034
2029
|
return te((m(), g("textarea", {
|
|
2035
2030
|
name: t.name,
|
|
2036
2031
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
2037
|
-
class:
|
|
2032
|
+
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2038
2033
|
disabled: (a = t.form) == null ? void 0 : a.processing
|
|
2039
2034
|
}, null, 10, ui)), [
|
|
2040
2035
|
[Me, t.modelValue]
|
|
@@ -2088,7 +2083,7 @@ function fi(t, e, n, r, s, o) {
|
|
|
2088
2083
|
name: t.name,
|
|
2089
2084
|
id: t.inputID,
|
|
2090
2085
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => t.modelValue = l),
|
|
2091
|
-
class:
|
|
2086
|
+
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control form-control-otp fanum"]),
|
|
2092
2087
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
2093
2088
|
placeholder: t.placeholderLines,
|
|
2094
2089
|
maxlength: t.maxLength,
|
|
@@ -2262,7 +2257,7 @@ function Ti(t, e, n, r, s, o) {
|
|
|
2262
2257
|
b("input", {
|
|
2263
2258
|
ref: "input",
|
|
2264
2259
|
name: t.name,
|
|
2265
|
-
class:
|
|
2260
|
+
class: R([{ "is-invalid": ((i = t.form) == null ? void 0 : i.errors[t.name]) !== void 0 }, "form-control"]),
|
|
2266
2261
|
disabled: (a = t.form) == null ? void 0 : a.processing,
|
|
2267
2262
|
type: "file",
|
|
2268
2263
|
multiple: t.multiple,
|
|
@@ -2443,7 +2438,7 @@ function Oe(t, e, n, r, s) {
|
|
|
2443
2438
|
function he(t) {
|
|
2444
2439
|
return t.children;
|
|
2445
2440
|
}
|
|
2446
|
-
function
|
|
2441
|
+
function Re(t, e) {
|
|
2447
2442
|
this.props = t, this.context = e;
|
|
2448
2443
|
}
|
|
2449
2444
|
function ge(t, e) {
|
|
@@ -2535,7 +2530,7 @@ function Ft(t, e, n, r, s, o, i, a, l, u) {
|
|
|
2535
2530
|
if (e.constructor !== void 0) return null;
|
|
2536
2531
|
128 & n.__u && (l = !!(32 & n.__u), o = [a = e.__e = n.__e]), (d = C.__b) && d(e);
|
|
2537
2532
|
e: if (typeof D == "function") try {
|
|
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
|
|
2533
|
+
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);
|
|
2539
2534
|
else {
|
|
2540
2535
|
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) {
|
|
2541
2536
|
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) {
|
|
@@ -2653,12 +2648,12 @@ Ye = un.slice, C = { __e: function(t, e, n, r) {
|
|
|
2653
2648
|
t = a;
|
|
2654
2649
|
}
|
|
2655
2650
|
throw t;
|
|
2656
|
-
} }, sn = 0,
|
|
2651
|
+
} }, sn = 0, Re.prototype.setState = function(t, e) {
|
|
2657
2652
|
var n;
|
|
2658
2653
|
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));
|
|
2659
|
-
},
|
|
2654
|
+
}, Re.prototype.forceUpdate = function(t) {
|
|
2660
2655
|
this.__v && (this.__e = !0, t && this.__h.push(t), At(this));
|
|
2661
|
-
},
|
|
2656
|
+
}, Re.prototype.render = he, ae = [], on = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, an = function(t, e) {
|
|
2662
2657
|
return t.__v.__b - e.__v.__b;
|
|
2663
2658
|
}, Le.__r = 0, ln = /(PointerCapture)$|Capture$/i, wt = 0, nt = Nt(!1), rt = Nt(!0);
|
|
2664
2659
|
var Di = 0;
|
|
@@ -2683,7 +2678,7 @@ function vn() {
|
|
|
2683
2678
|
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = yn(t)) && (r && (r += " "), r += e);
|
|
2684
2679
|
return r;
|
|
2685
2680
|
}
|
|
2686
|
-
var ke, N, Qe, Pt, it = 0, _n = [], z = C, zt = z.__b, Ot = z.__r,
|
|
2681
|
+
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.__;
|
|
2687
2682
|
function kt(t, e) {
|
|
2688
2683
|
z.__h && z.__h(N, t, it || e), it = 0;
|
|
2689
2684
|
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
@@ -2736,7 +2731,7 @@ function wn(t, e) {
|
|
|
2736
2731
|
}
|
|
2737
2732
|
function zi() {
|
|
2738
2733
|
for (var t; t = _n.shift(); ) if (t.__P && t.__H) try {
|
|
2739
|
-
t.__H.__h.forEach(
|
|
2734
|
+
t.__H.__h.forEach(Be), t.__H.__h.forEach(ot), t.__H.__h = [];
|
|
2740
2735
|
} catch (e) {
|
|
2741
2736
|
t.__H.__h = [], z.__e(e, t.__v);
|
|
2742
2737
|
}
|
|
@@ -2750,9 +2745,9 @@ z.__b = function(t) {
|
|
|
2750
2745
|
var e = (N = t.__c).__H;
|
|
2751
2746
|
e && (Qe === N ? (e.__h = [], N.__h = [], e.__.forEach(function(n) {
|
|
2752
2747
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
2753
|
-
})) : (e.__h.forEach(
|
|
2748
|
+
})) : (e.__h.forEach(Be), e.__h.forEach(ot), e.__h = [], ke = 0)), Qe = N;
|
|
2754
2749
|
}, z.diffed = function(t) {
|
|
2755
|
-
|
|
2750
|
+
Rt && Rt(t);
|
|
2756
2751
|
var e = t.__c;
|
|
2757
2752
|
e && e.__H && (e.__H.__h.length && (_n.push(e) !== 1 && Pt === z.requestAnimationFrame || ((Pt = z.requestAnimationFrame) || Oi)(zi)), e.__H.__.forEach(function(n) {
|
|
2758
2753
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
@@ -2760,7 +2755,7 @@ z.__b = function(t) {
|
|
|
2760
2755
|
}, z.__c = function(t, e) {
|
|
2761
2756
|
e.some(function(n) {
|
|
2762
2757
|
try {
|
|
2763
|
-
n.__h.forEach(
|
|
2758
|
+
n.__h.forEach(Be), n.__h = n.__h.filter(function(r) {
|
|
2764
2759
|
return !r.__ || ot(r);
|
|
2765
2760
|
});
|
|
2766
2761
|
} catch (r) {
|
|
@@ -2768,13 +2763,13 @@ z.__b = function(t) {
|
|
|
2768
2763
|
s.__h && (s.__h = []);
|
|
2769
2764
|
}), e = [], z.__e(r, n.__v);
|
|
2770
2765
|
}
|
|
2771
|
-
}),
|
|
2766
|
+
}), Bt && Bt(t, e);
|
|
2772
2767
|
}, z.unmount = function(t) {
|
|
2773
2768
|
jt && jt(t);
|
|
2774
2769
|
var e, n = t.__c;
|
|
2775
2770
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
2776
2771
|
try {
|
|
2777
|
-
|
|
2772
|
+
Be(r);
|
|
2778
2773
|
} catch (s) {
|
|
2779
2774
|
e = s;
|
|
2780
2775
|
}
|
|
@@ -2787,7 +2782,7 @@ function Oi(t) {
|
|
|
2787
2782
|
}, r = setTimeout(n, 35);
|
|
2788
2783
|
qt && (e = requestAnimationFrame(n));
|
|
2789
2784
|
}
|
|
2790
|
-
function
|
|
2785
|
+
function Be(t) {
|
|
2791
2786
|
var e = N, n = t.__c;
|
|
2792
2787
|
typeof n == "function" && (t.__c = void 0, n()), N = e;
|
|
2793
2788
|
}
|
|
@@ -2803,7 +2798,7 @@ function $n(t, e) {
|
|
|
2803
2798
|
function Sn(t, e) {
|
|
2804
2799
|
return typeof e == "function" ? e(t) : e;
|
|
2805
2800
|
}
|
|
2806
|
-
function
|
|
2801
|
+
function Ri(t, e = {}) {
|
|
2807
2802
|
const n = `uppy-dropzone-file-input-${t.uppy.getID()}`, r = (d) => {
|
|
2808
2803
|
var c, h;
|
|
2809
2804
|
d.preventDefault(), d.stopPropagation();
|
|
@@ -2861,11 +2856,11 @@ function Bi(t, e = {}) {
|
|
|
2861
2856
|
}
|
|
2862
2857
|
};
|
|
2863
2858
|
}
|
|
2864
|
-
function
|
|
2859
|
+
function Bi(t) {
|
|
2865
2860
|
const { width: e, height: n, note: r, noClick: s, ctx: o } = t;
|
|
2866
2861
|
if (!o.uppy)
|
|
2867
2862
|
throw new Error("Dropzone must be used within a UppyContextProvider");
|
|
2868
|
-
const { getRootProps: i, getInputProps: a } = wn(() =>
|
|
2863
|
+
const { getRootProps: i, getInputProps: a } = wn(() => Ri(o, { noClick: s }), [o, s]);
|
|
2869
2864
|
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", {
|
|
2870
2865
|
...i(),
|
|
2871
2866
|
// biome-ignore lint/a11y/noNoninteractiveTabindex: it is also a button. getRootProps returns keyboard event handlers
|
|
@@ -3077,7 +3072,7 @@ const Zi = E({
|
|
|
3077
3072
|
setup(t) {
|
|
3078
3073
|
const e = G(null), n = Tn();
|
|
3079
3074
|
function r() {
|
|
3080
|
-
e.value && gn(St(
|
|
3075
|
+
e.value && gn(St(Bi, {
|
|
3081
3076
|
...t,
|
|
3082
3077
|
ctx: n
|
|
3083
3078
|
}), e.value);
|
|
@@ -3254,7 +3249,7 @@ var Ie, Ee, at;
|
|
|
3254
3249
|
class so {
|
|
3255
3250
|
constructor(e, { onMissingKey: n = ro } = {}) {
|
|
3256
3251
|
x(this, Ee);
|
|
3257
|
-
|
|
3252
|
+
B(this, "locale");
|
|
3258
3253
|
x(this, Ie);
|
|
3259
3254
|
this.locale = {
|
|
3260
3255
|
strings: {},
|
|
@@ -3372,16 +3367,16 @@ const fo = /* @__PURE__ */ Ze(co), mo = {
|
|
|
3372
3367
|
class J extends Error {
|
|
3373
3368
|
constructor(n, r) {
|
|
3374
3369
|
super(n);
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3370
|
+
B(this, "isUserFacing");
|
|
3371
|
+
B(this, "file");
|
|
3372
|
+
B(this, "isRestriction", !0);
|
|
3378
3373
|
this.isUserFacing = (r == null ? void 0 : r.isUserFacing) ?? !0, r != null && r.file && (this.file = r.file);
|
|
3379
3374
|
}
|
|
3380
3375
|
}
|
|
3381
3376
|
class ho {
|
|
3382
3377
|
constructor(e, n) {
|
|
3383
|
-
|
|
3384
|
-
|
|
3378
|
+
B(this, "getI18n");
|
|
3379
|
+
B(this, "getOpts");
|
|
3385
3380
|
this.getI18n = n, this.getOpts = () => {
|
|
3386
3381
|
var s;
|
|
3387
3382
|
const r = e();
|
|
@@ -3452,7 +3447,7 @@ var ce, qe, Vn;
|
|
|
3452
3447
|
class Cn {
|
|
3453
3448
|
constructor() {
|
|
3454
3449
|
x(this, qe);
|
|
3455
|
-
|
|
3450
|
+
B(this, "state", {});
|
|
3456
3451
|
x(this, ce, /* @__PURE__ */ new Set());
|
|
3457
3452
|
}
|
|
3458
3453
|
getState() {
|
|
@@ -3472,7 +3467,7 @@ ce = new WeakMap(), qe = new WeakSet(), Vn = function(...e) {
|
|
|
3472
3467
|
w(this, ce).forEach((n) => {
|
|
3473
3468
|
n(...e);
|
|
3474
3469
|
});
|
|
3475
|
-
},
|
|
3470
|
+
}, B(Cn, "VERSION", yo.version);
|
|
3476
3471
|
function vo(t) {
|
|
3477
3472
|
var e = typeof t;
|
|
3478
3473
|
return t != null && (e == "object" || e == "function");
|
|
@@ -3500,11 +3495,11 @@ function Oo(t) {
|
|
|
3500
3495
|
var s = zo.call(t);
|
|
3501
3496
|
return r && (e ? t[we] = n : delete t[we]), s;
|
|
3502
3497
|
}
|
|
3503
|
-
var
|
|
3498
|
+
var Ro = Oo, Bo = Object.prototype, jo = Bo.toString;
|
|
3504
3499
|
function Lo(t) {
|
|
3505
3500
|
return jo.call(t);
|
|
3506
3501
|
}
|
|
3507
|
-
var qo = Lo, Xt = Un, xo =
|
|
3502
|
+
var qo = Lo, Xt = Un, xo = Ro, Ho = qo, Go = "[object Null]", Wo = "[object Undefined]", Zt = Xt ? Xt.toStringTag : void 0;
|
|
3508
3503
|
function Yo(t) {
|
|
3509
3504
|
return t == null ? t === void 0 ? Wo : Go : Zt && Zt in Object(t) ? xo(t) : Ho(t);
|
|
3510
3505
|
}
|
|
@@ -3725,7 +3720,7 @@ const ze = {
|
|
|
3725
3720
|
error: null,
|
|
3726
3721
|
recoveredState: null
|
|
3727
3722
|
};
|
|
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,
|
|
3723
|
+
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, Rn, ht, Se;
|
|
3729
3724
|
const He = class He {
|
|
3730
3725
|
/**
|
|
3731
3726
|
* Instantiate Uppy
|
|
@@ -3739,17 +3734,17 @@ const He = class He {
|
|
|
3739
3734
|
x(this, fe, /* @__PURE__ */ new Set());
|
|
3740
3735
|
x(this, me, /* @__PURE__ */ new Set());
|
|
3741
3736
|
x(this, ue, /* @__PURE__ */ new Set());
|
|
3742
|
-
|
|
3743
|
-
|
|
3737
|
+
B(this, "defaultLocale");
|
|
3738
|
+
B(this, "locale");
|
|
3744
3739
|
// The user optionally passes in options, but we set defaults for missing options.
|
|
3745
3740
|
// We consider all options present after the contructor has run.
|
|
3746
|
-
|
|
3747
|
-
|
|
3741
|
+
B(this, "opts");
|
|
3742
|
+
B(this, "store");
|
|
3748
3743
|
// Warning: do not use this from a plugin, as it will cause the plugins' translations to be missing
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3744
|
+
B(this, "i18n");
|
|
3745
|
+
B(this, "i18nArray");
|
|
3746
|
+
B(this, "scheduledAutoProceed", null);
|
|
3747
|
+
B(this, "wasOffline", !1);
|
|
3753
3748
|
x(this, xe, (e, n) => {
|
|
3754
3749
|
const r = e ? this.getFile(e.id) : void 0;
|
|
3755
3750
|
if (e == null || !r) {
|
|
@@ -4323,7 +4318,7 @@ Uppy plugins must have unique \`id\` options.`;
|
|
|
4323
4318
|
* Add data to an upload's result object.
|
|
4324
4319
|
*/
|
|
4325
4320
|
addResultData(e, n) {
|
|
4326
|
-
if (!F(this, y,
|
|
4321
|
+
if (!F(this, y, Rn).call(this, e)) {
|
|
4327
4322
|
this.log(`Not setting result for an upload that has been removed: ${e}`);
|
|
4328
4323
|
return;
|
|
4329
4324
|
}
|
|
@@ -4677,7 +4672,7 @@ $e = function(e, n = {}) {
|
|
|
4677
4672
|
}
|
|
4678
4673
|
}
|
|
4679
4674
|
}), i;
|
|
4680
|
-
},
|
|
4675
|
+
}, Rn = function(e) {
|
|
4681
4676
|
const { currentUploads: n } = this.getState();
|
|
4682
4677
|
return n[e];
|
|
4683
4678
|
}, /**
|
|
@@ -4735,7 +4730,7 @@ ht = function(e) {
|
|
|
4735
4730
|
failed: [],
|
|
4736
4731
|
uploadID: e
|
|
4737
4732
|
}), o;
|
|
4738
|
-
},
|
|
4733
|
+
}, B(He, "VERSION", Ea.version);
|
|
4739
4734
|
let lt = He;
|
|
4740
4735
|
const Ua = {
|
|
4741
4736
|
key: 0,
|
|
@@ -4835,7 +4830,7 @@ const Ua = {
|
|
|
4835
4830
|
f === !0 && _ === !1 && h();
|
|
4836
4831
|
}), ye(() => {
|
|
4837
4832
|
var f, _, $, U, P, H, ne, D;
|
|
4838
|
-
n.useXHR && import("./index-
|
|
4833
|
+
n.useXHR && import("./index-BRtKc2RA.js").then((X) => {
|
|
4839
4834
|
const pe = X.default;
|
|
4840
4835
|
i.value.use(pe, {
|
|
4841
4836
|
method: "POST",
|
|
@@ -4910,7 +4905,7 @@ const Ua = {
|
|
|
4910
4905
|
}
|
|
4911
4906
|
};
|
|
4912
4907
|
export {
|
|
4913
|
-
|
|
4908
|
+
Ba as A,
|
|
4914
4909
|
ja as C,
|
|
4915
4910
|
Xa as E,
|
|
4916
4911
|
Ya as F,
|
|
@@ -4919,7 +4914,7 @@ export {
|
|
|
4919
4914
|
Qa as M,
|
|
4920
4915
|
al as O,
|
|
4921
4916
|
Ga as P,
|
|
4922
|
-
|
|
4917
|
+
Bs as Q,
|
|
4923
4918
|
dl as R,
|
|
4924
4919
|
Ha as S,
|
|
4925
4920
|
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-_x4UqcXz.js";
|
|
2
2
|
export {
|
|
3
3
|
n as AmountInput,
|
|
4
4
|
p as CaptchaInput,
|