@opencitylabs/formio-custom-components 0.4.10 → 0.4.12
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/formio-custom-components.css +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +311 -308
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26,11 +26,11 @@ var Mi;
|
|
|
26
26
|
function Gc() {
|
|
27
27
|
if (Mi) return rr;
|
|
28
28
|
Mi = 1;
|
|
29
|
-
var o = bn, s = /* @__PURE__ */ Symbol.for("react.element"), u = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, b = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
29
|
+
var o = bn, s = /* @__PURE__ */ Symbol.for("react.element"), u = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, b = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, M = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
30
30
|
function I(l, y, r) {
|
|
31
31
|
var c, h = {}, f = null, p = null;
|
|
32
32
|
r !== void 0 && (f = "" + r), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (p = y.ref);
|
|
33
|
-
for (c in y) i.call(y, c) && !
|
|
33
|
+
for (c in y) i.call(y, c) && !M.hasOwnProperty(c) && (h[c] = y[c]);
|
|
34
34
|
if (l && l.defaultProps) for (c in y = l.defaultProps, y) h[c] === void 0 && (h[c] = y[c]);
|
|
35
35
|
return { $$typeof: s, type: l, key: f, ref: p, props: h, _owner: b.current };
|
|
36
36
|
}
|
|
@@ -40,7 +40,7 @@ var ar = {};
|
|
|
40
40
|
var Si;
|
|
41
41
|
function Jc() {
|
|
42
42
|
return Si || (Si = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
-
var o = bn, s = /* @__PURE__ */ Symbol.for("react.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
43
|
+
var o = bn, s = /* @__PURE__ */ Symbol.for("react.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), M = /* @__PURE__ */ Symbol.for("react.profiler"), I = /* @__PURE__ */ Symbol.for("react.provider"), l = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), r = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), h = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), p = /* @__PURE__ */ Symbol.for("react.offscreen"), g = Symbol.iterator, Y = "@@iterator";
|
|
44
44
|
function _(w) {
|
|
45
45
|
if (w === null || typeof w != "object")
|
|
46
46
|
return null;
|
|
@@ -67,8 +67,8 @@ function Jc() {
|
|
|
67
67
|
}
|
|
68
68
|
var F = !1, R = !1, O = !1, v = !1, T = !1, x;
|
|
69
69
|
x = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof w == "string" || typeof w == "function" || w === i || w ===
|
|
70
|
+
function S(w) {
|
|
71
|
+
return !!(typeof w == "string" || typeof w == "function" || w === i || w === M || T || w === b || w === r || w === c || v || w === p || F || R || O || typeof w == "object" && w !== null && (w.$$typeof === f || w.$$typeof === h || w.$$typeof === I || w.$$typeof === l || w.$$typeof === y || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -96,7 +96,7 @@ function Jc() {
|
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case u:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case M:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case b:
|
|
102
102
|
return "StrictMode";
|
|
@@ -575,7 +575,7 @@ Check the top-level render call using <` + Z + ">.");
|
|
|
575
575
|
var zt = {};
|
|
576
576
|
function je(w, U, Z, le, ve, Me) {
|
|
577
577
|
{
|
|
578
|
-
var xe =
|
|
578
|
+
var xe = S(w);
|
|
579
579
|
if (!xe) {
|
|
580
580
|
var be = "";
|
|
581
581
|
(w === void 0 || typeof w == "object" && w !== null && Object.keys(w).length === 0) && (be += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -907,16 +907,16 @@ function Ze(o) {
|
|
|
907
907
|
const I = o.defaultWidth, l = u?.width ? String(u.width) : o.defaultWidth;
|
|
908
908
|
b = o.values[l] || o.values[I];
|
|
909
909
|
}
|
|
910
|
-
const
|
|
911
|
-
return b[
|
|
910
|
+
const M = o.argumentCallback ? o.argumentCallback(s) : s;
|
|
911
|
+
return b[M];
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
914
|
function Qe(o) {
|
|
915
915
|
return (s, u = {}) => {
|
|
916
|
-
const i = u.width, b = i && o.matchPatterns[i] || o.matchPatterns[o.defaultMatchWidth],
|
|
917
|
-
if (!
|
|
916
|
+
const i = u.width, b = i && o.matchPatterns[i] || o.matchPatterns[o.defaultMatchWidth], M = s.match(b);
|
|
917
|
+
if (!M)
|
|
918
918
|
return null;
|
|
919
|
-
const I =
|
|
919
|
+
const I = M[0], l = i && o.parsePatterns[i] || o.parsePatterns[o.defaultParseWidth], y = Array.isArray(l) ? td(l, (h) => h.test(I)) : (
|
|
920
920
|
// [TODO] -- I challenge you to fix the type
|
|
921
921
|
ed(l, (h) => h.test(I))
|
|
922
922
|
);
|
|
@@ -943,9 +943,9 @@ function Mn(o) {
|
|
|
943
943
|
return (s, u = {}) => {
|
|
944
944
|
const i = s.match(o.matchPattern);
|
|
945
945
|
if (!i) return null;
|
|
946
|
-
const b = i[0],
|
|
947
|
-
if (!
|
|
948
|
-
let I = o.valueCallback ? o.valueCallback(
|
|
946
|
+
const b = i[0], M = s.match(o.parsePattern);
|
|
947
|
+
if (!M) return null;
|
|
948
|
+
let I = o.valueCallback ? o.valueCallback(M[0]) : M[0];
|
|
949
949
|
I = u.valueCallback ? u.valueCallback(I) : I;
|
|
950
950
|
const l = s.slice(b.length);
|
|
951
951
|
return { value: I, rest: l };
|
|
@@ -970,7 +970,7 @@ function id(o, s) {
|
|
|
970
970
|
return to(s || o, o);
|
|
971
971
|
}
|
|
972
972
|
function Yi(o, s) {
|
|
973
|
-
const u = nd(), i = s?.weekStartsOn ?? s?.locale?.options?.weekStartsOn ?? u.weekStartsOn ?? u.locale?.options?.weekStartsOn ?? 0, b = id(o, s?.in),
|
|
973
|
+
const u = nd(), i = s?.weekStartsOn ?? s?.locale?.options?.weekStartsOn ?? u.weekStartsOn ?? u.locale?.options?.weekStartsOn ?? 0, b = id(o, s?.in), M = b.getDay(), I = (M < i ? 7 : 0) + M - i;
|
|
974
974
|
return b.setDate(b.getDate() - I), b.setHours(0, 0, 0, 0), b;
|
|
975
975
|
}
|
|
976
976
|
function Ci(o, s, u) {
|
|
@@ -2219,7 +2219,7 @@ function Dn() {
|
|
|
2219
2219
|
function b(e) {
|
|
2220
2220
|
u = e;
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function M(e) {
|
|
2223
2223
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
2224
2224
|
}
|
|
2225
2225
|
function I(e) {
|
|
@@ -2322,7 +2322,7 @@ function Dn() {
|
|
|
2322
2322
|
function x(e) {
|
|
2323
2323
|
i.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function S(e, t) {
|
|
2326
2326
|
var a = !0;
|
|
2327
2327
|
return p(function() {
|
|
2328
2328
|
if (i.deprecationHandler != null && i.deprecationHandler(null, e), a) {
|
|
@@ -2752,10 +2752,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
2752
2752
|
"_"
|
|
2753
2753
|
), Vn = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), zn = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, mo = ut, po = ut;
|
|
2754
2754
|
function go(e, t) {
|
|
2755
|
-
return e ?
|
|
2755
|
+
return e ? M(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || zn).test(t) ? "format" : "standalone"][e.month()] : M(this._months) ? this._months : this._months.standalone;
|
|
2756
2756
|
}
|
|
2757
2757
|
function vo(e, t) {
|
|
2758
|
-
return e ?
|
|
2758
|
+
return e ? M(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[zn.test(t) ? "format" : "standalone"][e.month()] : M(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
2759
2759
|
}
|
|
2760
2760
|
function yo(e, t, a) {
|
|
2761
2761
|
var n, d, D, L = e.toLocaleLowerCase();
|
|
@@ -2913,7 +2913,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
2913
2913
|
}
|
|
2914
2914
|
var Po = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), $n = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), No = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ro = ut, Ao = ut, Eo = ut;
|
|
2915
2915
|
function Io(e, t) {
|
|
2916
|
-
var a =
|
|
2916
|
+
var a = M(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
2917
2917
|
return e === !0 ? Er(a, this._week.dow) : e ? a[e.day()] : a;
|
|
2918
2918
|
}
|
|
2919
2919
|
function Fo(e) {
|
|
@@ -3155,7 +3155,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
3155
3155
|
var t;
|
|
3156
3156
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
3157
3157
|
return er;
|
|
3158
|
-
if (!
|
|
3158
|
+
if (!M(e)) {
|
|
3159
3159
|
if (t = or(e), t)
|
|
3160
3160
|
return t;
|
|
3161
3161
|
e = [e];
|
|
@@ -3312,7 +3312,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
3312
3312
|
return;
|
|
3313
3313
|
e._strict ? e._isValid = !1 : i.createFromInputFallback(e);
|
|
3314
3314
|
}
|
|
3315
|
-
i.createFromInputFallback =
|
|
3315
|
+
i.createFromInputFallback = S(
|
|
3316
3316
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
3317
3317
|
function(e) {
|
|
3318
3318
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -3405,28 +3405,28 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
3405
3405
|
}
|
|
3406
3406
|
function Zn(e) {
|
|
3407
3407
|
var t = e._i, a = e._f;
|
|
3408
|
-
return e._locale = e._locale || bt(e._l), t === null || a === void 0 && t === "" ? j({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), T(t) ? new v(zr(t)) : (h(t) ? e._d = t :
|
|
3408
|
+
return e._locale = e._locale || bt(e._l), t === null || a === void 0 && t === "" ? j({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), T(t) ? new v(zr(t)) : (h(t) ? e._d = t : M(a) ? _l(e) : a ? Hr(e) : xl(e), C(e) || (e._d = null), e));
|
|
3409
3409
|
}
|
|
3410
3410
|
function xl(e) {
|
|
3411
3411
|
var t = e._i;
|
|
3412
|
-
r(t) ? e._d = new Date(i.now()) : h(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? pl(e) :
|
|
3412
|
+
r(t) ? e._d = new Date(i.now()) : h(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? pl(e) : M(t) ? (e._a = f(t.slice(0), function(a) {
|
|
3413
3413
|
return parseInt(a, 10);
|
|
3414
3414
|
}), Wr(e)) : I(t) ? bl(e) : c(t) ? e._d = new Date(t) : i.createFromInputFallback(e);
|
|
3415
3415
|
}
|
|
3416
3416
|
function Qn(e, t, a, n, d) {
|
|
3417
3417
|
var D = {};
|
|
3418
|
-
return (t === !0 || t === !1) && (n = t, t = void 0), (a === !0 || a === !1) && (n = a, a = void 0), (I(e) && y(e) ||
|
|
3418
|
+
return (t === !0 || t === !1) && (n = t, t = void 0), (a === !0 || a === !1) && (n = a, a = void 0), (I(e) && y(e) || M(e) && e.length === 0) && (e = void 0), D._isAMomentObject = !0, D._useUTC = D._isUTC = d, D._l = a, D._i = e, D._f = t, D._strict = n, wl(D);
|
|
3419
3419
|
}
|
|
3420
3420
|
function Ee(e, t, a, n) {
|
|
3421
3421
|
return Qn(e, t, a, n, !1);
|
|
3422
3422
|
}
|
|
3423
|
-
var Ml =
|
|
3423
|
+
var Ml = S(
|
|
3424
3424
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
3425
3425
|
function() {
|
|
3426
3426
|
var e = Ee.apply(null, arguments);
|
|
3427
3427
|
return this.isValid() && e.isValid() ? e < this ? this : e : j();
|
|
3428
3428
|
}
|
|
3429
|
-
), Sl =
|
|
3429
|
+
), Sl = S(
|
|
3430
3430
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
3431
3431
|
function() {
|
|
3432
3432
|
var e = Ee.apply(null, arguments);
|
|
@@ -3435,7 +3435,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
3435
3435
|
);
|
|
3436
3436
|
function ei(e, t) {
|
|
3437
3437
|
var a, n;
|
|
3438
|
-
if (t.length === 1 &&
|
|
3438
|
+
if (t.length === 1 && M(t[0]) && (t = t[0]), !t.length)
|
|
3439
3439
|
return Ee();
|
|
3440
3440
|
for (a = t[0], n = 1; n < t.length; ++n)
|
|
3441
3441
|
(!t[n].isValid() || t[n][e](a)) && (a = t[n]);
|
|
@@ -3672,7 +3672,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
3672
3672
|
return t && a;
|
|
3673
3673
|
}
|
|
3674
3674
|
function Kl(e) {
|
|
3675
|
-
var t =
|
|
3675
|
+
var t = M(e), a = !1;
|
|
3676
3676
|
return t && (a = e.filter(function(n) {
|
|
3677
3677
|
return !c(n) && si(e);
|
|
3678
3678
|
}).length === 0), t && a;
|
|
@@ -3816,7 +3816,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
3816
3816
|
var t;
|
|
3817
3817
|
return e === void 0 ? this._locale._abbr : (t = bt(e), t != null && (this._locale = t), this);
|
|
3818
3818
|
}
|
|
3819
|
-
var li =
|
|
3819
|
+
var li = S(
|
|
3820
3820
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
3821
3821
|
function(e) {
|
|
3822
3822
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
@@ -4217,19 +4217,19 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
4217
4217
|
var J = v.prototype;
|
|
4218
4218
|
J.add = Bl, J.calendar = Ql, J.clone = eu, J.diff = ou, J.endOf = vu, J.format = du, J.from = hu, J.fromNow = fu, J.to = mu, J.toNow = pu, J.get = Je, J.invalidAt = ku, J.isAfter = tu, J.isBefore = ru, J.isBetween = au, J.isSame = nu, J.isSameOrAfter = iu, J.isSameOrBefore = su, J.isValid = Su, J.lang = li, J.locale = oi, J.localeData = ui, J.max = Sl, J.min = Ml, J.parsingFlags = Du, J.set = Kt, J.startOf = gu, J.subtract = Ul, J.toArray = wu, J.toObject = xu, J.toDate = bu, J.toISOString = uu, J.inspect = cu, typeof Symbol < "u" && Symbol.for != null && (J[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
4219
4219
|
return "Moment<" + this.format() + ">";
|
|
4220
|
-
}), J.toJSON = Mu, J.toString = lu, J.unix = _u, J.valueOf = yu, J.creationData = Ou, J.eraName = Tu, J.eraNarrow = Pu, J.eraAbbr = Nu, J.eraYear = Ru, J.year = Fe, J.isLeapYear = Le, J.weekYear = Lu, J.isoWeekYear = Wu, J.quarter = J.quarters = Gu, J.month = Wn, J.daysInMonth = bo, J.week = J.weeks = Yo, J.isoWeek = J.isoWeeks = Co, J.weeksInYear = $u, J.weeksInWeekYear = Bu, J.isoWeeksInYear = Hu, J.isoWeeksInISOWeekYear = qu, J.date = mi, J.day = J.days = Wo, J.weekday = Ho, J.isoWeekday = qo, J.dayOfYear = Ju, J.hour = J.hours = Xo, J.minute = J.minutes = Ku, J.second = J.seconds = Xu, J.millisecond = J.milliseconds = pi, J.utcOffset = Nl, J.utc = Al, J.local = El, J.parseZone = Il, J.hasAlignedHourOffset = Fl, J.isDST = Vl, J.isLocal = Ll, J.isUtcOffset = Wl, J.isUtc = ri, J.isUTC = ri, J.zoneAbbr = Qu, J.zoneName = ec, J.dates =
|
|
4220
|
+
}), J.toJSON = Mu, J.toString = lu, J.unix = _u, J.valueOf = yu, J.creationData = Ou, J.eraName = Tu, J.eraNarrow = Pu, J.eraAbbr = Nu, J.eraYear = Ru, J.year = Fe, J.isLeapYear = Le, J.weekYear = Lu, J.isoWeekYear = Wu, J.quarter = J.quarters = Gu, J.month = Wn, J.daysInMonth = bo, J.week = J.weeks = Yo, J.isoWeek = J.isoWeeks = Co, J.weeksInYear = $u, J.weeksInWeekYear = Bu, J.isoWeeksInYear = Hu, J.isoWeeksInISOWeekYear = qu, J.date = mi, J.day = J.days = Wo, J.weekday = Ho, J.isoWeekday = qo, J.dayOfYear = Ju, J.hour = J.hours = Xo, J.minute = J.minutes = Ku, J.second = J.seconds = Xu, J.millisecond = J.milliseconds = pi, J.utcOffset = Nl, J.utc = Al, J.local = El, J.parseZone = Il, J.hasAlignedHourOffset = Fl, J.isDST = Vl, J.isLocal = Ll, J.isUtcOffset = Wl, J.isUtc = ri, J.isUTC = ri, J.zoneAbbr = Qu, J.zoneName = ec, J.dates = S(
|
|
4221
4221
|
"dates accessor is deprecated. Use date instead.",
|
|
4222
4222
|
mi
|
|
4223
|
-
), J.months =
|
|
4223
|
+
), J.months = S(
|
|
4224
4224
|
"months accessor is deprecated. Use month instead",
|
|
4225
4225
|
Wn
|
|
4226
|
-
), J.years =
|
|
4226
|
+
), J.years = S(
|
|
4227
4227
|
"years accessor is deprecated. Use year instead",
|
|
4228
4228
|
Fe
|
|
4229
|
-
), J.zone =
|
|
4229
|
+
), J.zone = S(
|
|
4230
4230
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
4231
4231
|
Rl
|
|
4232
|
-
), J.isDSTShifted =
|
|
4232
|
+
), J.isDSTShifted = S(
|
|
4233
4233
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
4234
4234
|
zl
|
|
4235
4235
|
);
|
|
@@ -4304,10 +4304,10 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
4304
4304
|
var t = e % 10, a = _e(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
4305
4305
|
return e + a;
|
|
4306
4306
|
}
|
|
4307
|
-
}), i.lang =
|
|
4307
|
+
}), i.lang = S(
|
|
4308
4308
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
4309
4309
|
kt
|
|
4310
|
-
), i.langData =
|
|
4310
|
+
), i.langData = S(
|
|
4311
4311
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
4312
4312
|
bt
|
|
4313
4313
|
);
|
|
@@ -4438,7 +4438,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
4438
4438
|
return ae ? (n = tt(e / 60), d = tt(n / 60), e %= 60, n %= 60, D = tt(a / 12), a %= 12, L = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", me = ae < 0 ? "-" : "", Se = Bt(this._months) !== Bt(ae) ? "-" : "", Ke = Bt(this._days) !== Bt(ae) ? "-" : "", St = Bt(this._milliseconds) !== Bt(ae) ? "-" : "", me + "P" + (D ? Se + D + "Y" : "") + (a ? Se + a + "M" : "") + (t ? Ke + t + "D" : "") + (d || n || e ? "T" : "") + (d ? St + d + "H" : "") + (n ? St + n + "M" : "") + (e ? St + L + "S" : "")) : "P0D";
|
|
4439
4439
|
}
|
|
4440
4440
|
var De = ur.prototype;
|
|
4441
|
-
De.isValid = Cl, De.abs = lc, De.add = uc, De.subtract = cc, De.as = hc, De.asMilliseconds = wi, De.asSeconds = fc, De.asMinutes = mc, De.asHours = pc, De.asDays = gc, De.asWeeks = vc, De.asMonths = yc, De.asQuarters = _c, De.asYears = bc, De.valueOf = wc, De._bubble = dc, De.clone = xc, De.get = Mc, De.milliseconds = Sc, De.seconds = Dc, De.minutes = kc, De.hours = Oc, De.days = Yc, De.weeks = Tc, De.months = Cc, De.years = jc, De.humanize = Ec, De.toISOString = gr, De.toString = gr, De.toJSON = gr, De.locale = oi, De.localeData = ui, De.toIsoString =
|
|
4441
|
+
De.isValid = Cl, De.abs = lc, De.add = uc, De.subtract = cc, De.as = hc, De.asMilliseconds = wi, De.asSeconds = fc, De.asMinutes = mc, De.asHours = pc, De.asDays = gc, De.asWeeks = vc, De.asMonths = yc, De.asQuarters = _c, De.asYears = bc, De.valueOf = wc, De._bubble = dc, De.clone = xc, De.get = Mc, De.milliseconds = Sc, De.seconds = Dc, De.minutes = kc, De.hours = Oc, De.days = Yc, De.weeks = Tc, De.months = Cc, De.years = jc, De.humanize = Ec, De.toISOString = gr, De.toString = gr, De.toJSON = gr, De.locale = oi, De.localeData = ui, De.toIsoString = S(
|
|
4442
4442
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4443
4443
|
gr
|
|
4444
4444
|
), De.lang = li, X("X", 0, 0, "unix"), X("x", 0, 0, "valueOf"), re("x", vt), re("X", ft), je("X", function(e, t, a) {
|
|
@@ -4593,7 +4593,7 @@ function qh() {
|
|
|
4593
4593
|
},
|
|
4594
4594
|
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
|
|
4595
4595
|
ordinal: function(b) {
|
|
4596
|
-
var
|
|
4596
|
+
var M = b % 10, I = ~~(b % 100 / 10) === 1 ? "th" : M === 1 ? "st" : M === 2 ? "nd" : M === 3 ? "rd" : "th";
|
|
4597
4597
|
return b + I;
|
|
4598
4598
|
},
|
|
4599
4599
|
week: {
|
|
@@ -4614,17 +4614,17 @@ function Bh() {
|
|
|
4614
4614
|
(function(u, i) {
|
|
4615
4615
|
i(typeof Yr == "function" ? Dn() : u.moment);
|
|
4616
4616
|
})($h, (function(u) {
|
|
4617
|
-
function i(
|
|
4617
|
+
function i(M, I, l, y) {
|
|
4618
4618
|
var r = {
|
|
4619
4619
|
m: ["eine Minute", "einer Minute"],
|
|
4620
4620
|
h: ["eine Stunde", "einer Stunde"],
|
|
4621
4621
|
d: ["ein Tag", "einem Tag"],
|
|
4622
|
-
dd: [
|
|
4622
|
+
dd: [M + " Tage", M + " Tagen"],
|
|
4623
4623
|
w: ["eine Woche", "einer Woche"],
|
|
4624
4624
|
M: ["ein Monat", "einem Monat"],
|
|
4625
|
-
MM: [
|
|
4625
|
+
MM: [M + " Monate", M + " Monaten"],
|
|
4626
4626
|
y: ["ein Jahr", "einem Jahr"],
|
|
4627
|
-
yy: [
|
|
4627
|
+
yy: [M + " Jahre", M + " Jahren"]
|
|
4628
4628
|
};
|
|
4629
4629
|
return I ? r[l][0] : r[l][1];
|
|
4630
4630
|
}
|
|
@@ -4724,8 +4724,8 @@ const Ct = (o) => {
|
|
|
4724
4724
|
"tunnel",
|
|
4725
4725
|
"waterway",
|
|
4726
4726
|
"name"
|
|
4727
|
-
].forEach((
|
|
4728
|
-
s.hasOwnProperty(
|
|
4727
|
+
].forEach((M) => {
|
|
4728
|
+
s.hasOwnProperty(M) && s[M] && u.push(s[M]);
|
|
4729
4729
|
}), s.road ? u.push(s.road) : s.pedestrian ? u.push(s.pedestrian) : s.suburb ? u.push(s.suburb) : s.square ? u.push(s.square) : (s.neighbourhood && u.push(s.neighbourhood), s.hamlet ? u.push(s.hamlet) : s.isolated_dwelling ? u.push(s.isolated_dwelling) : s.locality ? u.push(s.locality) : s.croft && u.push(s.croft)), s.house_number && u.push(s.house_number), s.postcode && u.push(s.postcode), s.village && u.push(s.village), s.town ? u.push(s.town) : s.city && u.push(s.city);
|
|
4730
4730
|
var b = u.join(", ").substr(0, 150);
|
|
4731
4731
|
return b;
|
|
@@ -4778,7 +4778,7 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
4778
4778
|
onChange: u,
|
|
4779
4779
|
i18next: i
|
|
4780
4780
|
}) => {
|
|
4781
|
-
const [b,
|
|
4781
|
+
const [b, M] = se(), [I, l] = se([]), [y, r] = se([]), [c, h] = se(!1), [f, p] = se(null), [g, Y] = se(null), [_, k] = se(null), [C, j] = se(null), [F, R] = se({}), [O, v] = se(null), [T, x] = se(!1), [S, V] = se([]), [A, E] = se(!1), z = pt(), B = o.calendarId;
|
|
4782
4782
|
de.locale(i.language), we.locale(i.language);
|
|
4783
4783
|
const Q = (N) => {
|
|
4784
4784
|
let W = de(N).format("YYYY-MM-DD");
|
|
@@ -4807,7 +4807,7 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
4807
4807
|
let W = de(N).format("YYYY-MM-DD");
|
|
4808
4808
|
fetch(ce(W)).then((H) => H.json()).then((H) => {
|
|
4809
4809
|
const ue = H.filter((ie) => ie.availability == !0);
|
|
4810
|
-
R(ue[0]), ue.length > 0 ? (r(H), h(!1), k(de(N).format("L")),
|
|
4810
|
+
R(ue[0]), ue.length > 0 ? (r(H), h(!1), k(de(N).format("L")), M(de(N, "YYYY-MM-DD").toDate())) : (H.length > 0 && M(de(H[0].date, "YYYY-MM-DD").toDate()), r([]), K());
|
|
4811
4811
|
});
|
|
4812
4812
|
}, te = () => {
|
|
4813
4813
|
if (B !== "" && B != null)
|
|
@@ -4946,7 +4946,7 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
4946
4946
|
opening_hour_id: H.opening_hour || H.opening_hour_id,
|
|
4947
4947
|
meeting_id: ue.id
|
|
4948
4948
|
};
|
|
4949
|
-
V([...
|
|
4949
|
+
V([...S, ie]);
|
|
4950
4950
|
}).catch((ue) => {
|
|
4951
4951
|
console.log(ue), qe.fire({
|
|
4952
4952
|
title: "",
|
|
@@ -5005,7 +5005,7 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5005
5005
|
u("");
|
|
5006
5006
|
else if (Array.isArray(N) && N.length > 0) {
|
|
5007
5007
|
let W = [];
|
|
5008
|
-
|
|
5008
|
+
S.map((H) => {
|
|
5009
5009
|
W.push({
|
|
5010
5010
|
date: de(H.date, "DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
5011
5011
|
slot: H.slot,
|
|
@@ -5025,8 +5025,8 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5025
5025
|
if (i.language === "de") return ro;
|
|
5026
5026
|
};
|
|
5027
5027
|
Ne(() => {
|
|
5028
|
-
G(
|
|
5029
|
-
}, [
|
|
5028
|
+
G(S);
|
|
5029
|
+
}, [S]), Ne(() => {
|
|
5030
5030
|
document.querySelector(".formio-read-only") && A === !1 ? (E(!0), setTimeout(() => {
|
|
5031
5031
|
te();
|
|
5032
5032
|
}, 1e3)) : (E(!1), setTimeout(() => {
|
|
@@ -5054,8 +5054,8 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5054
5054
|
});
|
|
5055
5055
|
else {
|
|
5056
5056
|
const ie = [
|
|
5057
|
-
...
|
|
5058
|
-
...
|
|
5057
|
+
...S.slice(0, N),
|
|
5058
|
+
...S.slice(N + 1)
|
|
5059
5059
|
];
|
|
5060
5060
|
V(ie), Q(/* @__PURE__ */ new Date());
|
|
5061
5061
|
}
|
|
@@ -5101,7 +5101,7 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5101
5101
|
/* @__PURE__ */ m.jsx("p", { children: i.t(
|
|
5102
5102
|
"Seleziona un'altra data nel calendario per aggiungere una nuova prenotazione"
|
|
5103
5103
|
) })
|
|
5104
|
-
] }) }) :
|
|
5104
|
+
] }) }) : S.length !== 1 ? /* @__PURE__ */ m.jsx("div", { className: "col-12 d-print-none d-preview-calendar-none", children: /* @__PURE__ */ m.jsxs("div", { className: "m-2", children: [
|
|
5105
5105
|
/* @__PURE__ */ m.jsx("h6", { children: i.t(o.label) }),
|
|
5106
5106
|
/* @__PURE__ */ m.jsx(
|
|
5107
5107
|
xr,
|
|
@@ -5121,13 +5121,13 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5121
5121
|
)
|
|
5122
5122
|
] })
|
|
5123
5123
|
] }) }) : null,
|
|
5124
|
-
/* @__PURE__ */ m.jsx("div", { className: "col-12", children:
|
|
5124
|
+
/* @__PURE__ */ m.jsx("div", { className: "col-12", children: S.length ? /* @__PURE__ */ m.jsx("div", { className: "row m-2", children: /* @__PURE__ */ m.jsxs("div", { className: "col-12 mb-4", children: [
|
|
5125
5125
|
/* @__PURE__ */ m.jsxs("b", { children: [
|
|
5126
|
-
|
|
5126
|
+
S.length > 1 ? i.t("Giorni selezionati per la prenotazione") : i.t("Giorno selezionato per la prenotazione"),
|
|
5127
5127
|
":",
|
|
5128
5128
|
" "
|
|
5129
5129
|
] }),
|
|
5130
|
-
/* @__PURE__ */ m.jsx("div", { className: "mb-5", children: /* @__PURE__ */ m.jsx("div", { className: "it-list-wrapper", children: /* @__PURE__ */ m.jsx("ul", { className: "it-list", children:
|
|
5130
|
+
/* @__PURE__ */ m.jsx("div", { className: "mb-5", children: /* @__PURE__ */ m.jsx("div", { className: "it-list-wrapper", children: /* @__PURE__ */ m.jsx("ul", { className: "it-list", children: S.map((N, W) => /* @__PURE__ */ m.jsx("li", { children: /* @__PURE__ */ m.jsx("div", { className: "list-item", children: /* @__PURE__ */ m.jsxs("div", { className: "it-right-zone", children: [
|
|
5131
5131
|
/* @__PURE__ */ m.jsxs("span", { className: "text pl-4", children: [
|
|
5132
5132
|
N.date,
|
|
5133
5133
|
" ",
|
|
@@ -5177,7 +5177,7 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5177
5177
|
)
|
|
5178
5178
|
] }),
|
|
5179
5179
|
/* @__PURE__ */ m.jsx(Dr, { children: /* @__PURE__ */ m.jsxs("div", { className: "row", children: [
|
|
5180
|
-
|
|
5180
|
+
S.length >= 1 ? /* @__PURE__ */ m.jsxs("div", { children: [
|
|
5181
5181
|
_ && !c ? /* @__PURE__ */ m.jsxs("h6", { children: [
|
|
5182
5182
|
i.t("Orari disponibili del"),
|
|
5183
5183
|
" ",
|
|
@@ -5207,19 +5207,19 @@ const Fi = Et.Components.components.field, Gh = ({
|
|
|
5207
5207
|
"data-date": de(_, "DD/MM/YYYY").format(
|
|
5208
5208
|
"YYYY-MM-DD"
|
|
5209
5209
|
),
|
|
5210
|
-
"data-slots":
|
|
5211
|
-
"data-opening_hour":
|
|
5212
|
-
"data-start":
|
|
5213
|
-
"data-end":
|
|
5214
|
-
"data-value_start":
|
|
5215
|
-
"data-value_end":
|
|
5210
|
+
"data-slots": S[S.length - 1].slot,
|
|
5211
|
+
"data-opening_hour": S[S.length - 1].opening_hour_id,
|
|
5212
|
+
"data-start": S[S.length - 1].slot.split("-")[0],
|
|
5213
|
+
"data-end": S[S.length - 1].slot.split("-")[1],
|
|
5214
|
+
"data-value_start": S[S.length - 1].slot.split("-")[0],
|
|
5215
|
+
"data-value_end": S[S.length - 1].slot.split("-")[1],
|
|
5216
5216
|
disabled: c,
|
|
5217
|
-
children:
|
|
5217
|
+
children: S[S.length - 1].slot
|
|
5218
5218
|
}
|
|
5219
5219
|
) })
|
|
5220
5220
|
] })
|
|
5221
5221
|
] }) : null,
|
|
5222
|
-
/* @__PURE__ */ m.jsx("div", { children: _ &&
|
|
5222
|
+
/* @__PURE__ */ m.jsx("div", { children: _ && S.length >= 1 ? /* @__PURE__ */ m.jsx("h6", { children: i.t("Seleziona altri orari") }) : c ? null : /* @__PURE__ */ m.jsxs("h6", { children: [
|
|
5223
5223
|
i.t("Orari disponibili del"),
|
|
5224
5224
|
" ",
|
|
5225
5225
|
we(_).format("DD/MM/YYYY")
|
|
@@ -5603,7 +5603,7 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5603
5603
|
onChange: u,
|
|
5604
5604
|
i18next: i
|
|
5605
5605
|
}) => {
|
|
5606
|
-
const [b,
|
|
5606
|
+
const [b, M] = se(), [I, l] = se([]), [y, r] = se([]), [c, h] = se(!1), [f, p] = se(null), [g, Y] = se(null), [_, k] = se(null), [C, j] = se(null), [F, R] = se({}), [O, v] = se(null), [T, x] = se(!1), [S, V] = se([]), [A, E] = se(!1), z = pt(), B = o.calendarId;
|
|
5607
5607
|
de.locale(i.language), we.locale(i.language);
|
|
5608
5608
|
const Q = (P) => {
|
|
5609
5609
|
let q = de(P).format("YYYY-MM-DD");
|
|
@@ -5632,7 +5632,7 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5632
5632
|
let q = de(P).format("YYYY-MM-DD");
|
|
5633
5633
|
fetch(ce(q)).then((N) => N.json()).then((N) => {
|
|
5634
5634
|
const W = N.filter((H) => H.availability == !0);
|
|
5635
|
-
R(W[0]), W.length > 0 ? (r(N), h(!1), k(de(P).format("L")),
|
|
5635
|
+
R(W[0]), W.length > 0 ? (r(N), h(!1), k(de(P).format("L")), M(de(P, "YYYY-MM-DD").toDate())) : (N.length > 0 && M(de(N[0].date, "YYYY-MM-DD").toDate()), r([]), $());
|
|
5636
5636
|
});
|
|
5637
5637
|
}, te = () => {
|
|
5638
5638
|
if (B !== "" && B != null)
|
|
@@ -5771,7 +5771,7 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5771
5771
|
opening_hour_id: N.opening_hour || N.opening_hour_id,
|
|
5772
5772
|
meeting_id: W.id
|
|
5773
5773
|
};
|
|
5774
|
-
V([...
|
|
5774
|
+
V([...S, H]);
|
|
5775
5775
|
}).catch((W) => {
|
|
5776
5776
|
console.log(W), qe.fire({
|
|
5777
5777
|
title: "",
|
|
@@ -5810,7 +5810,7 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5810
5810
|
u("");
|
|
5811
5811
|
else if (Array.isArray(P) && P.length > 0) {
|
|
5812
5812
|
let q = [];
|
|
5813
|
-
|
|
5813
|
+
S.map((N) => {
|
|
5814
5814
|
q.push({
|
|
5815
5815
|
date: de(N.date, "DD-MM-YYYY").format("YYYY-MM-DD"),
|
|
5816
5816
|
slot: N.slot,
|
|
@@ -5830,8 +5830,8 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5830
5830
|
if (i.language === "de") return ro;
|
|
5831
5831
|
};
|
|
5832
5832
|
Ne(() => {
|
|
5833
|
-
ke(
|
|
5834
|
-
}, [
|
|
5833
|
+
ke(S);
|
|
5834
|
+
}, [S]), Ne(() => {
|
|
5835
5835
|
document.querySelector(".formio-read-only") && A === !1 ? (E(!0), setTimeout(() => {
|
|
5836
5836
|
te();
|
|
5837
5837
|
}, 1e3)) : (E(!1), setTimeout(() => {
|
|
@@ -5859,8 +5859,8 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5859
5859
|
});
|
|
5860
5860
|
else {
|
|
5861
5861
|
const H = [
|
|
5862
|
-
...
|
|
5863
|
-
...
|
|
5862
|
+
...S.slice(0, P),
|
|
5863
|
+
...S.slice(P + 1)
|
|
5864
5864
|
];
|
|
5865
5865
|
V(H), Q(/* @__PURE__ */ new Date());
|
|
5866
5866
|
}
|
|
@@ -5903,7 +5903,7 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5903
5903
|
onDayClick: fe
|
|
5904
5904
|
}
|
|
5905
5905
|
)
|
|
5906
|
-
] }) }) :
|
|
5906
|
+
] }) }) : S.length !== 1 ? /* @__PURE__ */ m.jsx("div", { className: "col-12 d-print-none d-preview-calendar-none", children: /* @__PURE__ */ m.jsxs("div", { className: "m-2", children: [
|
|
5907
5907
|
/* @__PURE__ */ m.jsx("h6", { children: i.t(o.label) }),
|
|
5908
5908
|
/* @__PURE__ */ m.jsx(
|
|
5909
5909
|
xr,
|
|
@@ -5917,13 +5917,13 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5917
5917
|
}
|
|
5918
5918
|
)
|
|
5919
5919
|
] }) }) : null,
|
|
5920
|
-
/* @__PURE__ */ m.jsx("div", { className: "col-12", children:
|
|
5920
|
+
/* @__PURE__ */ m.jsx("div", { className: "col-12", children: S.length ? /* @__PURE__ */ m.jsx("div", { className: "row m-2", children: /* @__PURE__ */ m.jsxs("div", { className: "col-12 mb-4", children: [
|
|
5921
5921
|
/* @__PURE__ */ m.jsxs("b", { children: [
|
|
5922
|
-
|
|
5922
|
+
S.length > 1 ? i.t("Giorni selezionati per la prenotazione") : i.t("Giorno selezionato per la prenotazione"),
|
|
5923
5923
|
":",
|
|
5924
5924
|
" "
|
|
5925
5925
|
] }),
|
|
5926
|
-
/* @__PURE__ */ m.jsx("div", { className: "mb-5", children: /* @__PURE__ */ m.jsx("div", { className: "it-list-wrapper", children: /* @__PURE__ */ m.jsx("ul", { className: "it-list", children:
|
|
5926
|
+
/* @__PURE__ */ m.jsx("div", { className: "mb-5", children: /* @__PURE__ */ m.jsx("div", { className: "it-list-wrapper", children: /* @__PURE__ */ m.jsx("ul", { className: "it-list", children: S.map((P, q) => /* @__PURE__ */ m.jsx("li", { children: /* @__PURE__ */ m.jsx("div", { className: "list-item", children: /* @__PURE__ */ m.jsxs("div", { className: "it-right-zone", children: [
|
|
5927
5927
|
/* @__PURE__ */ m.jsxs("span", { className: "text pl-4", children: [
|
|
5928
5928
|
P.date,
|
|
5929
5929
|
" ",
|
|
@@ -5967,7 +5967,7 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5967
5967
|
children: [
|
|
5968
5968
|
/* @__PURE__ */ m.jsx(Sr, { toggle: () => x(!T), id: "daySelected", children: i.t("Seleziona una fascia oraria") }),
|
|
5969
5969
|
/* @__PURE__ */ m.jsx(Dr, { children: /* @__PURE__ */ m.jsxs("div", { className: "row", children: [
|
|
5970
|
-
|
|
5970
|
+
S.length >= 1 ? /* @__PURE__ */ m.jsxs("div", { children: [
|
|
5971
5971
|
_ && !c ? /* @__PURE__ */ m.jsxs("h6", { children: [
|
|
5972
5972
|
i.t("Orari disponibili del"),
|
|
5973
5973
|
" ",
|
|
@@ -5997,19 +5997,19 @@ const zi = Et.Components.components.field, Zh = ({
|
|
|
5997
5997
|
"data-date": de(_, "DD/MM/YYYY").format(
|
|
5998
5998
|
"YYYY-MM-DD"
|
|
5999
5999
|
),
|
|
6000
|
-
"data-slots":
|
|
6001
|
-
"data-opening_hour":
|
|
6002
|
-
"data-start":
|
|
6003
|
-
"data-end":
|
|
6004
|
-
"data-value_start":
|
|
6005
|
-
"data-value_end":
|
|
6000
|
+
"data-slots": S[S.length - 1].slot,
|
|
6001
|
+
"data-opening_hour": S[S.length - 1].opening_hour_id,
|
|
6002
|
+
"data-start": S[S.length - 1].slot.split("-")[0],
|
|
6003
|
+
"data-end": S[S.length - 1].slot.split("-")[1],
|
|
6004
|
+
"data-value_start": S[S.length - 1].slot.split("-")[0],
|
|
6005
|
+
"data-value_end": S[S.length - 1].slot.split("-")[1],
|
|
6006
6006
|
disabled: c,
|
|
6007
|
-
children:
|
|
6007
|
+
children: S[S.length - 1].slot
|
|
6008
6008
|
}
|
|
6009
6009
|
) })
|
|
6010
6010
|
] })
|
|
6011
6011
|
] }) : null,
|
|
6012
|
-
/* @__PURE__ */ m.jsx("div", { children: _ &&
|
|
6012
|
+
/* @__PURE__ */ m.jsx("div", { children: _ && S.length >= 1 ? /* @__PURE__ */ m.jsx("h6", { children: i.t("Seleziona altri orari") }) : c ? null : /* @__PURE__ */ m.jsxs("h6", { children: [
|
|
6013
6013
|
i.t("Orari disponibili del"),
|
|
6014
6014
|
" ",
|
|
6015
6015
|
we(_).format("DD/MM/YYYY")
|
|
@@ -6268,10 +6268,10 @@ function rf(o, s) {
|
|
|
6268
6268
|
const l = new Date(I.start);
|
|
6269
6269
|
return (new Date(I.end) - l) / 6e4;
|
|
6270
6270
|
}), i = Math.min(...u), b = u.reduce((I, l) => I + l, 0) / u.length;
|
|
6271
|
-
let
|
|
6272
|
-
i <= 30 && i > 15 ?
|
|
6271
|
+
let M = 0;
|
|
6272
|
+
i <= 30 && i > 15 ? M = b * 1 : i <= 15 ? M = b * 24 : M = b * 4, o.setOption("slotHeight", M), document.documentElement.style.setProperty(
|
|
6273
6273
|
"--slot-height",
|
|
6274
|
-
`${
|
|
6274
|
+
`${M}px`
|
|
6275
6275
|
);
|
|
6276
6276
|
}
|
|
6277
6277
|
const so = {
|
|
@@ -6339,7 +6339,7 @@ const so = {
|
|
|
6339
6339
|
onChange: u,
|
|
6340
6340
|
i18next: i
|
|
6341
6341
|
}) => {
|
|
6342
|
-
const [b,
|
|
6342
|
+
const [b, M] = se(null), [I, l] = se(null), [y, r] = se([]), [c, h] = se(!1), [f, p] = se(!1), [g, Y] = se(null), [_, k] = se([]), [C, j] = se([]), [F, R] = se([]), [O, v] = se(null), [T, x] = se(null), [S, V] = se(null), A = pt(null), E = pt(null);
|
|
6343
6343
|
i.language, de.locale(i.language), we.locale(i.language);
|
|
6344
6344
|
function z($) {
|
|
6345
6345
|
if (!$ || $.length === 0) return null;
|
|
@@ -6465,7 +6465,7 @@ const so = {
|
|
|
6465
6465
|
P
|
|
6466
6466
|
), N = na("AVAILABILITY", q), W = aa("AVAILABILITY", N);
|
|
6467
6467
|
if (W) {
|
|
6468
|
-
|
|
6468
|
+
M(W), k(ge(W));
|
|
6469
6469
|
return;
|
|
6470
6470
|
} else
|
|
6471
6471
|
u({});
|
|
@@ -6480,7 +6480,7 @@ const so = {
|
|
|
6480
6480
|
});
|
|
6481
6481
|
return;
|
|
6482
6482
|
}
|
|
6483
|
-
ra("AVAILABILITY", N, H),
|
|
6483
|
+
ra("AVAILABILITY", N, H), M(H), k(ge(H));
|
|
6484
6484
|
} catch (H) {
|
|
6485
6485
|
h(!1), console.error("Errore nel caricamento disponibilità:", H);
|
|
6486
6486
|
}
|
|
@@ -6823,7 +6823,7 @@ const so = {
|
|
|
6823
6823
|
"option",
|
|
6824
6824
|
{
|
|
6825
6825
|
value: JSON.stringify($),
|
|
6826
|
-
selected: $.start_time + " - " + $.end_time ===
|
|
6826
|
+
selected: $.start_time + " - " + $.end_time === S,
|
|
6827
6827
|
children: $.start_time + " - " + $.end_time
|
|
6828
6828
|
},
|
|
6829
6829
|
$.start_time + " - " + $.end_time
|
|
@@ -7359,7 +7359,7 @@ function ff() {
|
|
|
7359
7359
|
if (Bi) return ua;
|
|
7360
7360
|
Bi = 1;
|
|
7361
7361
|
var o = Pn(), s = Object.prototype, u = s.hasOwnProperty, i = s.toString, b = o ? o.toStringTag : void 0;
|
|
7362
|
-
function
|
|
7362
|
+
function M(I) {
|
|
7363
7363
|
var l = u.call(I, b), y = I[b];
|
|
7364
7364
|
try {
|
|
7365
7365
|
I[b] = void 0;
|
|
@@ -7369,7 +7369,7 @@ function ff() {
|
|
|
7369
7369
|
var c = i.call(I);
|
|
7370
7370
|
return r && (l ? I[b] = y : delete I[b]), c;
|
|
7371
7371
|
}
|
|
7372
|
-
return ua =
|
|
7372
|
+
return ua = M, ua;
|
|
7373
7373
|
}
|
|
7374
7374
|
var ca, Ui;
|
|
7375
7375
|
function mf() {
|
|
@@ -7385,9 +7385,9 @@ var da, Gi;
|
|
|
7385
7385
|
function lo() {
|
|
7386
7386
|
if (Gi) return da;
|
|
7387
7387
|
Gi = 1;
|
|
7388
|
-
var o = Pn(), s = ff(), u = mf(), i = "[object Null]", b = "[object Undefined]",
|
|
7388
|
+
var o = Pn(), s = ff(), u = mf(), i = "[object Null]", b = "[object Undefined]", M = o ? o.toStringTag : void 0;
|
|
7389
7389
|
function I(l) {
|
|
7390
|
-
return l == null ? l === void 0 ? b : i :
|
|
7390
|
+
return l == null ? l === void 0 ? b : i : M && M in Object(l) ? s(l) : u(l);
|
|
7391
7391
|
}
|
|
7392
7392
|
return da = I, da;
|
|
7393
7393
|
}
|
|
@@ -7415,11 +7415,11 @@ function gf() {
|
|
|
7415
7415
|
if (Xi) return ma;
|
|
7416
7416
|
Xi = 1;
|
|
7417
7417
|
var o = jn(), s = Nn(), u = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, i = /^\w*$/;
|
|
7418
|
-
function b(
|
|
7419
|
-
if (o(
|
|
7418
|
+
function b(M, I) {
|
|
7419
|
+
if (o(M))
|
|
7420
7420
|
return !1;
|
|
7421
|
-
var l = typeof
|
|
7422
|
-
return l == "number" || l == "symbol" || l == "boolean" ||
|
|
7421
|
+
var l = typeof M;
|
|
7422
|
+
return l == "number" || l == "symbol" || l == "boolean" || M == null || s(M) ? !0 : i.test(M) || !u.test(M) || I != null && M in Object(I);
|
|
7423
7423
|
}
|
|
7424
7424
|
return ma = b, ma;
|
|
7425
7425
|
}
|
|
@@ -7437,12 +7437,12 @@ var ga, Qi;
|
|
|
7437
7437
|
function vf() {
|
|
7438
7438
|
if (Qi) return ga;
|
|
7439
7439
|
Qi = 1;
|
|
7440
|
-
var o = lo(), s = Rn(), u = "[object AsyncFunction]", i = "[object Function]", b = "[object GeneratorFunction]",
|
|
7440
|
+
var o = lo(), s = Rn(), u = "[object AsyncFunction]", i = "[object Function]", b = "[object GeneratorFunction]", M = "[object Proxy]";
|
|
7441
7441
|
function I(l) {
|
|
7442
7442
|
if (!s(l))
|
|
7443
7443
|
return !1;
|
|
7444
7444
|
var y = o(l);
|
|
7445
|
-
return y == i || y == b || y == u || y ==
|
|
7445
|
+
return y == i || y == b || y == u || y == M;
|
|
7446
7446
|
}
|
|
7447
7447
|
return ga = I, ga;
|
|
7448
7448
|
}
|
|
@@ -7490,13 +7490,13 @@ var ba, as;
|
|
|
7490
7490
|
function wf() {
|
|
7491
7491
|
if (as) return ba;
|
|
7492
7492
|
as = 1;
|
|
7493
|
-
var o = vf(), s = _f(), u = Rn(), i = bf(), b = /[\\^$.*+?()[\]{}|]/g,
|
|
7493
|
+
var o = vf(), s = _f(), u = Rn(), i = bf(), b = /[\\^$.*+?()[\]{}|]/g, M = /^\[object .+?Constructor\]$/, I = Function.prototype, l = Object.prototype, y = I.toString, r = l.hasOwnProperty, c = RegExp(
|
|
7494
7494
|
"^" + y.call(r).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7495
7495
|
);
|
|
7496
7496
|
function h(f) {
|
|
7497
7497
|
if (!u(f) || s(f))
|
|
7498
7498
|
return !1;
|
|
7499
|
-
var p = o(f) ? c :
|
|
7499
|
+
var p = o(f) ? c : M;
|
|
7500
7500
|
return p.test(i(f));
|
|
7501
7501
|
}
|
|
7502
7502
|
return ba = h, ba;
|
|
@@ -7516,8 +7516,8 @@ function An() {
|
|
|
7516
7516
|
is = 1;
|
|
7517
7517
|
var o = wf(), s = xf();
|
|
7518
7518
|
function u(i, b) {
|
|
7519
|
-
var
|
|
7520
|
-
return o(
|
|
7519
|
+
var M = s(i, b);
|
|
7520
|
+
return o(M) ? M : void 0;
|
|
7521
7521
|
}
|
|
7522
7522
|
return xa = u, xa;
|
|
7523
7523
|
}
|
|
@@ -7553,13 +7553,13 @@ function Df() {
|
|
|
7553
7553
|
if (us) return ka;
|
|
7554
7554
|
us = 1;
|
|
7555
7555
|
var o = Cr(), s = "__lodash_hash_undefined__", u = Object.prototype, i = u.hasOwnProperty;
|
|
7556
|
-
function b(
|
|
7556
|
+
function b(M) {
|
|
7557
7557
|
var I = this.__data__;
|
|
7558
7558
|
if (o) {
|
|
7559
|
-
var l = I[
|
|
7559
|
+
var l = I[M];
|
|
7560
7560
|
return l === s ? void 0 : l;
|
|
7561
7561
|
}
|
|
7562
|
-
return i.call(I,
|
|
7562
|
+
return i.call(I, M) ? I[M] : void 0;
|
|
7563
7563
|
}
|
|
7564
7564
|
return ka = b, ka;
|
|
7565
7565
|
}
|
|
@@ -7569,8 +7569,8 @@ function kf() {
|
|
|
7569
7569
|
cs = 1;
|
|
7570
7570
|
var o = Cr(), s = Object.prototype, u = s.hasOwnProperty;
|
|
7571
7571
|
function i(b) {
|
|
7572
|
-
var
|
|
7573
|
-
return o ?
|
|
7572
|
+
var M = this.__data__;
|
|
7573
|
+
return o ? M[b] !== void 0 : u.call(M, b);
|
|
7574
7574
|
}
|
|
7575
7575
|
return Oa = i, Oa;
|
|
7576
7576
|
}
|
|
@@ -7580,8 +7580,8 @@ function Of() {
|
|
|
7580
7580
|
ds = 1;
|
|
7581
7581
|
var o = Cr(), s = "__lodash_hash_undefined__";
|
|
7582
7582
|
function u(i, b) {
|
|
7583
|
-
var
|
|
7584
|
-
return this.size += this.has(i) ? 0 : 1,
|
|
7583
|
+
var M = this.__data__;
|
|
7584
|
+
return this.size += this.has(i) ? 0 : 1, M[i] = o && b === void 0 ? s : b, this;
|
|
7585
7585
|
}
|
|
7586
7586
|
return Ya = u, Ya;
|
|
7587
7587
|
}
|
|
@@ -7590,14 +7590,14 @@ function Yf() {
|
|
|
7590
7590
|
if (hs) return Ca;
|
|
7591
7591
|
hs = 1;
|
|
7592
7592
|
var o = Mf(), s = Sf(), u = Df(), i = kf(), b = Of();
|
|
7593
|
-
function
|
|
7593
|
+
function M(I) {
|
|
7594
7594
|
var l = -1, y = I == null ? 0 : I.length;
|
|
7595
7595
|
for (this.clear(); ++l < y; ) {
|
|
7596
7596
|
var r = I[l];
|
|
7597
7597
|
this.set(r[0], r[1]);
|
|
7598
7598
|
}
|
|
7599
7599
|
}
|
|
7600
|
-
return
|
|
7600
|
+
return M.prototype.clear = o, M.prototype.delete = s, M.prototype.get = u, M.prototype.has = i, M.prototype.set = b, Ca = M, Ca;
|
|
7601
7601
|
}
|
|
7602
7602
|
var ja, fs;
|
|
7603
7603
|
function Cf() {
|
|
@@ -7636,11 +7636,11 @@ function jf() {
|
|
|
7636
7636
|
gs = 1;
|
|
7637
7637
|
var o = jr(), s = Array.prototype, u = s.splice;
|
|
7638
7638
|
function i(b) {
|
|
7639
|
-
var
|
|
7639
|
+
var M = this.__data__, I = o(M, b);
|
|
7640
7640
|
if (I < 0)
|
|
7641
7641
|
return !1;
|
|
7642
|
-
var l =
|
|
7643
|
-
return I == l ?
|
|
7642
|
+
var l = M.length - 1;
|
|
7643
|
+
return I == l ? M.pop() : u.call(M, I, 1), --this.size, !0;
|
|
7644
7644
|
}
|
|
7645
7645
|
return Na = i, Na;
|
|
7646
7646
|
}
|
|
@@ -7671,8 +7671,8 @@ function Nf() {
|
|
|
7671
7671
|
_s = 1;
|
|
7672
7672
|
var o = jr();
|
|
7673
7673
|
function s(u, i) {
|
|
7674
|
-
var b = this.__data__,
|
|
7675
|
-
return
|
|
7674
|
+
var b = this.__data__, M = o(b, u);
|
|
7675
|
+
return M < 0 ? (++this.size, b.push([u, i])) : b[M][1] = i, this;
|
|
7676
7676
|
}
|
|
7677
7677
|
return Ea = s, Ea;
|
|
7678
7678
|
}
|
|
@@ -7681,14 +7681,14 @@ function Rf() {
|
|
|
7681
7681
|
if (bs) return Ia;
|
|
7682
7682
|
bs = 1;
|
|
7683
7683
|
var o = Cf(), s = jf(), u = Tf(), i = Pf(), b = Nf();
|
|
7684
|
-
function
|
|
7684
|
+
function M(I) {
|
|
7685
7685
|
var l = -1, y = I == null ? 0 : I.length;
|
|
7686
7686
|
for (this.clear(); ++l < y; ) {
|
|
7687
7687
|
var r = I[l];
|
|
7688
7688
|
this.set(r[0], r[1]);
|
|
7689
7689
|
}
|
|
7690
7690
|
}
|
|
7691
|
-
return
|
|
7691
|
+
return M.prototype.clear = o, M.prototype.delete = s, M.prototype.get = u, M.prototype.has = i, M.prototype.set = b, Ia = M, Ia;
|
|
7692
7692
|
}
|
|
7693
7693
|
var Fa, ws;
|
|
7694
7694
|
function Af() {
|
|
@@ -7769,8 +7769,8 @@ function Lf() {
|
|
|
7769
7769
|
Ys = 1;
|
|
7770
7770
|
var o = Tr();
|
|
7771
7771
|
function s(u, i) {
|
|
7772
|
-
var b = o(this, u),
|
|
7773
|
-
return b.set(u, i), this.size += b.size ==
|
|
7772
|
+
var b = o(this, u), M = b.size;
|
|
7773
|
+
return b.set(u, i), this.size += b.size == M ? 0 : 1, this;
|
|
7774
7774
|
}
|
|
7775
7775
|
return $a = s, $a;
|
|
7776
7776
|
}
|
|
@@ -7779,14 +7779,14 @@ function Wf() {
|
|
|
7779
7779
|
if (Cs) return Ba;
|
|
7780
7780
|
Cs = 1;
|
|
7781
7781
|
var o = Ef(), s = Ff(), u = Vf(), i = zf(), b = Lf();
|
|
7782
|
-
function
|
|
7782
|
+
function M(I) {
|
|
7783
7783
|
var l = -1, y = I == null ? 0 : I.length;
|
|
7784
7784
|
for (this.clear(); ++l < y; ) {
|
|
7785
7785
|
var r = I[l];
|
|
7786
7786
|
this.set(r[0], r[1]);
|
|
7787
7787
|
}
|
|
7788
7788
|
}
|
|
7789
|
-
return
|
|
7789
|
+
return M.prototype.clear = o, M.prototype.delete = s, M.prototype.get = u, M.prototype.has = i, M.prototype.set = b, Ba = M, Ba;
|
|
7790
7790
|
}
|
|
7791
7791
|
var Ua, js;
|
|
7792
7792
|
function Hf() {
|
|
@@ -7796,14 +7796,14 @@ function Hf() {
|
|
|
7796
7796
|
function u(i, b) {
|
|
7797
7797
|
if (typeof i != "function" || b != null && typeof b != "function")
|
|
7798
7798
|
throw new TypeError(s);
|
|
7799
|
-
var
|
|
7800
|
-
var I = arguments, l = b ? b.apply(this, I) : I[0], y =
|
|
7799
|
+
var M = function() {
|
|
7800
|
+
var I = arguments, l = b ? b.apply(this, I) : I[0], y = M.cache;
|
|
7801
7801
|
if (y.has(l))
|
|
7802
7802
|
return y.get(l);
|
|
7803
7803
|
var r = i.apply(this, I);
|
|
7804
|
-
return
|
|
7804
|
+
return M.cache = y.set(l, r) || y, r;
|
|
7805
7805
|
};
|
|
7806
|
-
return
|
|
7806
|
+
return M.cache = new (u.Cache || o)(), M;
|
|
7807
7807
|
}
|
|
7808
7808
|
return u.Cache = o, Ua = u, Ua;
|
|
7809
7809
|
}
|
|
@@ -7814,8 +7814,8 @@ function qf() {
|
|
|
7814
7814
|
var o = Hf(), s = 500;
|
|
7815
7815
|
function u(i) {
|
|
7816
7816
|
var b = o(i, function(I) {
|
|
7817
|
-
return
|
|
7818
|
-
}),
|
|
7817
|
+
return M.size === s && M.clear(), I;
|
|
7818
|
+
}), M = b.cache;
|
|
7819
7819
|
return b;
|
|
7820
7820
|
}
|
|
7821
7821
|
return Ga = u, Ga;
|
|
@@ -7825,10 +7825,10 @@ function $f() {
|
|
|
7825
7825
|
if (Ps) return Ja;
|
|
7826
7826
|
Ps = 1;
|
|
7827
7827
|
var o = qf(), s = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, u = /\\(\\)?/g, i = o(function(b) {
|
|
7828
|
-
var
|
|
7829
|
-
return b.charCodeAt(0) === 46 &&
|
|
7830
|
-
|
|
7831
|
-
}),
|
|
7828
|
+
var M = [];
|
|
7829
|
+
return b.charCodeAt(0) === 46 && M.push(""), b.replace(s, function(I, l, y, r) {
|
|
7830
|
+
M.push(y ? r.replace(u, "$1") : l || I);
|
|
7831
|
+
}), M;
|
|
7832
7832
|
});
|
|
7833
7833
|
return Ja = i, Ja;
|
|
7834
7834
|
}
|
|
@@ -7837,9 +7837,9 @@ function Bf() {
|
|
|
7837
7837
|
if (Ns) return Ka;
|
|
7838
7838
|
Ns = 1;
|
|
7839
7839
|
function o(s, u) {
|
|
7840
|
-
for (var i = -1, b = s == null ? 0 : s.length,
|
|
7841
|
-
|
|
7842
|
-
return
|
|
7840
|
+
for (var i = -1, b = s == null ? 0 : s.length, M = Array(b); ++i < b; )
|
|
7841
|
+
M[i] = u(s[i], i, s);
|
|
7842
|
+
return M;
|
|
7843
7843
|
}
|
|
7844
7844
|
return Ka = o, Ka;
|
|
7845
7845
|
}
|
|
@@ -7847,14 +7847,14 @@ var Xa, Rs;
|
|
|
7847
7847
|
function Uf() {
|
|
7848
7848
|
if (Rs) return Xa;
|
|
7849
7849
|
Rs = 1;
|
|
7850
|
-
var o = Pn(), s = Bf(), u = jn(), i = Nn(), b = o ? o.prototype : void 0,
|
|
7850
|
+
var o = Pn(), s = Bf(), u = jn(), i = Nn(), b = o ? o.prototype : void 0, M = b ? b.toString : void 0;
|
|
7851
7851
|
function I(l) {
|
|
7852
7852
|
if (typeof l == "string")
|
|
7853
7853
|
return l;
|
|
7854
7854
|
if (u(l))
|
|
7855
7855
|
return s(l, I) + "";
|
|
7856
7856
|
if (i(l))
|
|
7857
|
-
return
|
|
7857
|
+
return M ? M.call(l) : "";
|
|
7858
7858
|
var y = l + "";
|
|
7859
7859
|
return y == "0" && 1 / l == -1 / 0 ? "-0" : y;
|
|
7860
7860
|
}
|
|
@@ -7875,8 +7875,8 @@ function co() {
|
|
|
7875
7875
|
if (Es) return Qa;
|
|
7876
7876
|
Es = 1;
|
|
7877
7877
|
var o = jn(), s = gf(), u = $f(), i = Gf();
|
|
7878
|
-
function b(
|
|
7879
|
-
return o(
|
|
7878
|
+
function b(M, I) {
|
|
7879
|
+
return o(M) ? M : s(M, I) ? [M] : u(i(M));
|
|
7880
7880
|
}
|
|
7881
7881
|
return Qa = b, Qa;
|
|
7882
7882
|
}
|
|
@@ -7900,9 +7900,9 @@ function Jf() {
|
|
|
7900
7900
|
var o = co(), s = ho();
|
|
7901
7901
|
function u(i, b) {
|
|
7902
7902
|
b = o(b, i);
|
|
7903
|
-
for (var
|
|
7904
|
-
i = i[s(b[
|
|
7905
|
-
return
|
|
7903
|
+
for (var M = 0, I = b.length; i != null && M < I; )
|
|
7904
|
+
i = i[s(b[M++])];
|
|
7905
|
+
return M && M == I ? i : void 0;
|
|
7906
7906
|
}
|
|
7907
7907
|
return tn = u, tn;
|
|
7908
7908
|
}
|
|
@@ -7912,8 +7912,8 @@ function Kf() {
|
|
|
7912
7912
|
Vs = 1;
|
|
7913
7913
|
var o = Jf();
|
|
7914
7914
|
function s(u, i, b) {
|
|
7915
|
-
var
|
|
7916
|
-
return
|
|
7915
|
+
var M = u == null ? void 0 : o(u, i);
|
|
7916
|
+
return M === void 0 ? b : M;
|
|
7917
7917
|
}
|
|
7918
7918
|
return rn = s, rn;
|
|
7919
7919
|
}
|
|
@@ -7952,9 +7952,9 @@ function em() {
|
|
|
7952
7952
|
if (Ws) return on;
|
|
7953
7953
|
Ws = 1;
|
|
7954
7954
|
var o = Qf(), s = uo(), u = Object.prototype, i = u.hasOwnProperty;
|
|
7955
|
-
function b(
|
|
7956
|
-
var y =
|
|
7957
|
-
(!(i.call(
|
|
7955
|
+
function b(M, I, l) {
|
|
7956
|
+
var y = M[I];
|
|
7957
|
+
(!(i.call(M, I) && s(y, l)) || l === void 0 && !(I in M)) && o(M, I, l);
|
|
7958
7958
|
}
|
|
7959
7959
|
return on = b, on;
|
|
7960
7960
|
}
|
|
@@ -7964,8 +7964,8 @@ function tm() {
|
|
|
7964
7964
|
Hs = 1;
|
|
7965
7965
|
var o = 9007199254740991, s = /^(?:0|[1-9]\d*)$/;
|
|
7966
7966
|
function u(i, b) {
|
|
7967
|
-
var
|
|
7968
|
-
return b = b ?? o, !!b && (
|
|
7967
|
+
var M = typeof i;
|
|
7968
|
+
return b = b ?? o, !!b && (M == "number" || M != "symbol" && s.test(i)) && i > -1 && i % 1 == 0 && i < b;
|
|
7969
7969
|
}
|
|
7970
7970
|
return ln = u, ln;
|
|
7971
7971
|
}
|
|
@@ -7974,7 +7974,7 @@ function rm() {
|
|
|
7974
7974
|
if (qs) return un;
|
|
7975
7975
|
qs = 1;
|
|
7976
7976
|
var o = em(), s = co(), u = tm(), i = Rn(), b = ho();
|
|
7977
|
-
function
|
|
7977
|
+
function M(I, l, y, r) {
|
|
7978
7978
|
if (!i(I))
|
|
7979
7979
|
return I;
|
|
7980
7980
|
l = s(l, I);
|
|
@@ -7990,7 +7990,7 @@ function rm() {
|
|
|
7990
7990
|
}
|
|
7991
7991
|
return I;
|
|
7992
7992
|
}
|
|
7993
|
-
return un =
|
|
7993
|
+
return un = M, un;
|
|
7994
7994
|
}
|
|
7995
7995
|
var cn, $s;
|
|
7996
7996
|
function am() {
|
|
@@ -8029,8 +8029,8 @@ class im {
|
|
|
8029
8029
|
"Content-Type": "application/json; charset=utf-8"
|
|
8030
8030
|
}
|
|
8031
8031
|
}).then((b) => {
|
|
8032
|
-
const
|
|
8033
|
-
|
|
8032
|
+
const M = qc(b.data.token);
|
|
8033
|
+
M.exp && Uh("auth-token", b.data.token, M.exp);
|
|
8034
8034
|
}).catch((b) => {
|
|
8035
8035
|
console.log(b);
|
|
8036
8036
|
});
|
|
@@ -8049,14 +8049,14 @@ const hn = Et.Components.components.file;
|
|
|
8049
8049
|
let _n = null;
|
|
8050
8050
|
document.querySelector("widget-formio") !== null && (_n = document.querySelector("widget-formio").getAttribute("signature-check-ws-url"));
|
|
8051
8051
|
const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
8052
|
-
const [b,
|
|
8052
|
+
const [b, M] = se([]), [I, l] = se(/* @__PURE__ */ new Map()), [y, r] = se(!1), c = new im();
|
|
8053
8053
|
Ne(() => {
|
|
8054
8054
|
c.getSessionAuthTokenPromise();
|
|
8055
8055
|
}, []);
|
|
8056
|
-
const h = (x,
|
|
8056
|
+
const h = (x, S) => {
|
|
8057
8057
|
l((V) => {
|
|
8058
8058
|
const A = new Map(V);
|
|
8059
|
-
return A.set(x, { ...
|
|
8059
|
+
return A.set(x, { ...S, progress: Number(S?.progress) || 0 }), A;
|
|
8060
8060
|
});
|
|
8061
8061
|
};
|
|
8062
8062
|
function f(x) {
|
|
@@ -8073,21 +8073,21 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8073
8073
|
}
|
|
8074
8074
|
function p() {
|
|
8075
8075
|
if (o.filePattern) {
|
|
8076
|
-
const
|
|
8076
|
+
const S = o.filePattern.split(",").map((V) => V.trim()).filter(Boolean).reduce((V, A) => {
|
|
8077
8077
|
const E = A.startsWith(".") ? A : `.${A}`, z = Hc.getType(E);
|
|
8078
8078
|
return z && (V[z] || (V[z] = []), V[z].push(E)), V;
|
|
8079
8079
|
}, {});
|
|
8080
|
-
return Object.keys(
|
|
8080
|
+
return Object.keys(S).length ? S : void 0;
|
|
8081
8081
|
} else
|
|
8082
8082
|
return !0;
|
|
8083
8083
|
}
|
|
8084
8084
|
const g = (x) => {
|
|
8085
|
-
let
|
|
8086
|
-
return
|
|
8085
|
+
let S = {};
|
|
8086
|
+
return S.originalName = x.originalName ? x.originalName : x.name, S.name = x.name, S.url = x.url, S.data = x.data, S.signature_validation = x.signature_validation, S.mime_type = x.mime_type, S.storage = "url", S.size = x.size, S;
|
|
8087
8087
|
}, { getRootProps: Y, getInputProps: _, fileRejections: k, isDragActive: C, open: j } = Wc({
|
|
8088
8088
|
onDrop: (x) => {
|
|
8089
|
-
x.map((
|
|
8090
|
-
O(
|
|
8089
|
+
x.map((S) => {
|
|
8090
|
+
O(S).then((V) => {
|
|
8091
8091
|
});
|
|
8092
8092
|
});
|
|
8093
8093
|
},
|
|
@@ -8095,8 +8095,8 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8095
8095
|
validator: f,
|
|
8096
8096
|
accept: p()
|
|
8097
8097
|
}), F = (x) => {
|
|
8098
|
-
const
|
|
8099
|
-
fetch(
|
|
8098
|
+
const S = Ae() + "/api/attachments/" + x.data.id;
|
|
8099
|
+
fetch(S, {
|
|
8100
8100
|
method: "DELETE",
|
|
8101
8101
|
headers: {
|
|
8102
8102
|
"Content-Type": "application/json; charset=utf-8",
|
|
@@ -8104,7 +8104,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8104
8104
|
},
|
|
8105
8105
|
strictErrors: !0
|
|
8106
8106
|
}).then(() => {
|
|
8107
|
-
|
|
8107
|
+
M((V) => {
|
|
8108
8108
|
let A = V.filter(
|
|
8109
8109
|
(E) => E.data.id !== x.data.id
|
|
8110
8110
|
);
|
|
@@ -8122,7 +8122,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8122
8122
|
});
|
|
8123
8123
|
}, R = () => {
|
|
8124
8124
|
const x = typeof s?.getCurrentValue == "function" ? s.getCurrentValue() : s?.dataValue;
|
|
8125
|
-
x?.length > 0 && (
|
|
8125
|
+
x?.length > 0 && (M(x), setTimeout(() => {
|
|
8126
8126
|
u(x);
|
|
8127
8127
|
}, 100));
|
|
8128
8128
|
};
|
|
@@ -8134,7 +8134,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8134
8134
|
}, 1e3));
|
|
8135
8135
|
}, []);
|
|
8136
8136
|
async function O(x) {
|
|
8137
|
-
let
|
|
8137
|
+
let S;
|
|
8138
8138
|
const V = Ae() + "/it/upload";
|
|
8139
8139
|
let A = {
|
|
8140
8140
|
mime_type: x.type,
|
|
@@ -8146,17 +8146,17 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8146
8146
|
return await Ut.post(V, A, {
|
|
8147
8147
|
maxContentLength: 1 / 0,
|
|
8148
8148
|
maxBodyLength: 1 / 0
|
|
8149
|
-
}).then(async (E) => (
|
|
8149
|
+
}).then(async (E) => (S = E.data.id, x.url = Ae() + "/it/allegati/" + S, x.storage = "url", x.mime_type = x.type, x.protocol_required = o.protocol_required, x.data = {
|
|
8150
8150
|
...E.data,
|
|
8151
|
-
baseUrl: Ae() + "/it/allegati/" +
|
|
8152
|
-
}, h(
|
|
8151
|
+
baseUrl: Ae() + "/it/allegati/" + S
|
|
8152
|
+
}, h(S, x), await Ut.put(E.data.uri, x, {
|
|
8153
8153
|
onUploadProgress: (z) => {
|
|
8154
8154
|
let B = Math.round(
|
|
8155
8155
|
z.loaded * 100 / z.total
|
|
8156
8156
|
);
|
|
8157
8157
|
l((Q) => {
|
|
8158
8158
|
const ne = new Map(Q), te = x;
|
|
8159
|
-
return te.progress = parseInt(B), ne.has(
|
|
8159
|
+
return te.progress = parseInt(B), ne.has(S) && ne.set(S, te), ne;
|
|
8160
8160
|
});
|
|
8161
8161
|
},
|
|
8162
8162
|
maxContentLength: 1 / 0,
|
|
@@ -8164,16 +8164,16 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8164
8164
|
headers: { "Content-Type": "multipart/form-data" }
|
|
8165
8165
|
}).then(async (z) => {
|
|
8166
8166
|
const B = /\\|"/gi, Q = z.headers.etag.replace(B, "") || null;
|
|
8167
|
-
return await Ut.put(Ae() + "/it/upload/" +
|
|
8167
|
+
return await Ut.put(Ae() + "/it/upload/" + S, {
|
|
8168
8168
|
file_hash: Q,
|
|
8169
8169
|
check_signature: o.check_signature
|
|
8170
8170
|
}).then(async (ne) => {
|
|
8171
8171
|
l((ee) => {
|
|
8172
8172
|
const ce = new Map(ee);
|
|
8173
|
-
return ce.delete(
|
|
8173
|
+
return ce.delete(S), ce;
|
|
8174
8174
|
});
|
|
8175
8175
|
let te = s.dataValue || [], he = null;
|
|
8176
|
-
if (
|
|
8176
|
+
if (M((ee) => {
|
|
8177
8177
|
const ce = [...ee, g(x)];
|
|
8178
8178
|
return he = ce.length - 1, u(ce), ce;
|
|
8179
8179
|
}), o.check_signature && ne.data.url && _n)
|
|
@@ -8195,12 +8195,12 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8195
8195
|
});
|
|
8196
8196
|
l((ee) => {
|
|
8197
8197
|
const ce = new Map(ee);
|
|
8198
|
-
return ce.delete(
|
|
8198
|
+
return ce.delete(S), ce;
|
|
8199
8199
|
});
|
|
8200
8200
|
}).catch((ne) => {
|
|
8201
8201
|
l((te) => {
|
|
8202
8202
|
const he = new Map(te);
|
|
8203
|
-
return he.delete(
|
|
8203
|
+
return he.delete(S), he;
|
|
8204
8204
|
}), console.log(ne), qe.fire({
|
|
8205
8205
|
title: "",
|
|
8206
8206
|
html: `<p>${i.t("Ci sono stati degli errori dutante il caricamento dei file, riprova più tardi!")}</p>`,
|
|
@@ -8213,7 +8213,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8213
8213
|
}).catch((z) => {
|
|
8214
8214
|
l((B) => {
|
|
8215
8215
|
const Q = new Map(B);
|
|
8216
|
-
return Q.delete(
|
|
8216
|
+
return Q.delete(S), Q;
|
|
8217
8217
|
}), console.log(z), qe.fire({
|
|
8218
8218
|
title: "",
|
|
8219
8219
|
html: `<p>${i.t("Ci sono stati degli errori dutante il caricamento dei file, riprova più tardi!")}</p>`,
|
|
@@ -8232,7 +8232,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8232
8232
|
showConfirmButton: !1
|
|
8233
8233
|
}), l((z) => {
|
|
8234
8234
|
const B = new Map(z);
|
|
8235
|
-
return B.delete(
|
|
8235
|
+
return B.delete(S), B;
|
|
8236
8236
|
});
|
|
8237
8237
|
});
|
|
8238
8238
|
}
|
|
@@ -8255,9 +8255,9 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8255
8255
|
}
|
|
8256
8256
|
return x;
|
|
8257
8257
|
}
|
|
8258
|
-
function T(x,
|
|
8258
|
+
function T(x, S = 2) {
|
|
8259
8259
|
if (!+x) return "0 Bytes";
|
|
8260
|
-
const V = 1024, A =
|
|
8260
|
+
const V = 1024, A = S < 0 ? 0 : S, E = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], z = Math.floor(Math.log(x) / Math.log(V));
|
|
8261
8261
|
return `${parseFloat((x / Math.pow(V, z)).toFixed(A))} ${E[z]}`;
|
|
8262
8262
|
}
|
|
8263
8263
|
return s.conditionallyHidden() || s.visible === !1 ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: y ? /* @__PURE__ */ m.jsxs("div", { children: [
|
|
@@ -8273,7 +8273,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8273
8273
|
}
|
|
8274
8274
|
),
|
|
8275
8275
|
/* @__PURE__ */ m.jsxs("ul", { className: "upload-file-list", children: [
|
|
8276
|
-
b.map((x,
|
|
8276
|
+
b.map((x, S) => /* @__PURE__ */ m.jsxs(
|
|
8277
8277
|
"li",
|
|
8278
8278
|
{
|
|
8279
8279
|
className: "upload-file success mw-100",
|
|
@@ -8295,7 +8295,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8295
8295
|
] })
|
|
8296
8296
|
]
|
|
8297
8297
|
},
|
|
8298
|
-
x.size +
|
|
8298
|
+
x.size + S
|
|
8299
8299
|
)),
|
|
8300
8300
|
b.length < 1 && /* @__PURE__ */ m.jsxs("li", { className: "upload-file text-secondary mw-100", children: [
|
|
8301
8301
|
/* @__PURE__ */ m.jsx(
|
|
@@ -8403,7 +8403,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8403
8403
|
}
|
|
8404
8404
|
),
|
|
8405
8405
|
/* @__PURE__ */ m.jsxs("ul", { className: "upload-file-list my-0", children: [
|
|
8406
|
-
b.map((x,
|
|
8406
|
+
b.map((x, S) => /* @__PURE__ */ m.jsxs("li", { className: "upload-file success", children: [
|
|
8407
8407
|
/* @__PURE__ */ m.jsx(
|
|
8408
8408
|
Xe,
|
|
8409
8409
|
{
|
|
@@ -8429,8 +8429,8 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8429
8429
|
size: "sm"
|
|
8430
8430
|
}
|
|
8431
8431
|
) })
|
|
8432
|
-
] }, x.size +
|
|
8433
|
-
Array.from(I.entries()).map(([x,
|
|
8432
|
+
] }, x.size + S)),
|
|
8433
|
+
Array.from(I.entries()).map(([x, S]) => /* @__PURE__ */ m.jsxs("li", { className: "upload-file success", children: [
|
|
8434
8434
|
/* @__PURE__ */ m.jsx(
|
|
8435
8435
|
Xe,
|
|
8436
8436
|
{
|
|
@@ -8443,13 +8443,13 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8443
8443
|
),
|
|
8444
8444
|
/* @__PURE__ */ m.jsxs("p", { children: [
|
|
8445
8445
|
/* @__PURE__ */ m.jsx("span", { className: "visually-hidden", children: i.t("Caricamento file:") }),
|
|
8446
|
-
|
|
8447
|
-
/* @__PURE__ */ m.jsx("span", { className: "upload-file-weight", children: T(
|
|
8446
|
+
S.name,
|
|
8447
|
+
/* @__PURE__ */ m.jsx("span", { className: "upload-file-weight", children: T(S.size) })
|
|
8448
8448
|
] }),
|
|
8449
|
-
/* @__PURE__ */ m.jsx(Qs, { value: Number(
|
|
8449
|
+
/* @__PURE__ */ m.jsx(Qs, { value: Number(S?.progress) || 0 })
|
|
8450
8450
|
] }, x))
|
|
8451
8451
|
] }),
|
|
8452
|
-
!!(k && k.length) && /* @__PURE__ */ m.jsx("div", { className: "formio-error-wrapper", children: /* @__PURE__ */ m.jsx("ul", { className: "formio-errors upload-file-list my-0 ", children: k.map(({ file: x, errors:
|
|
8452
|
+
!!(k && k.length) && /* @__PURE__ */ m.jsx("div", { className: "formio-error-wrapper", children: /* @__PURE__ */ m.jsx("ul", { className: "formio-errors upload-file-list my-0 ", children: k.map(({ file: x, errors: S }, V) => /* @__PURE__ */ m.jsxs("li", { className: "upload-file error", children: [
|
|
8453
8453
|
/* @__PURE__ */ m.jsxs("div", { className: "upload-file-name-error-wrapper", children: [
|
|
8454
8454
|
/* @__PURE__ */ m.jsx(
|
|
8455
8455
|
Xe,
|
|
@@ -8467,7 +8467,7 @@ const sm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
|
8467
8467
|
/* @__PURE__ */ m.jsx("span", { className: "upload-file-weight", children: T(x.size) })
|
|
8468
8468
|
] })
|
|
8469
8469
|
] }),
|
|
8470
|
-
/* @__PURE__ */ m.jsx("div", { children:
|
|
8470
|
+
/* @__PURE__ */ m.jsx("div", { children: S.map((A) => A.code === "file-invalid-type" ? /* @__PURE__ */ m.jsxs("p", { className: "text-wrap ms-0", children: [
|
|
8471
8471
|
i.t("I file possono essere di tipo "),
|
|
8472
8472
|
o.filePattern
|
|
8473
8473
|
] }) : A.code === "too-many-files" ? /* @__PURE__ */ m.jsxs("p", { className: "text-wrap ms-0", children: [
|
|
@@ -8557,18 +8557,18 @@ class En extends hn {
|
|
|
8557
8557
|
return b && (this.rootComponent && this.mountNode !== b && (this.rootComponent.unmount(), this.rootComponent = null), this.rootComponent || (this.rootComponent = It(b)), this.mountNode = b, this.lastRenderedVisible = this.visible, this.renderReact()), u;
|
|
8558
8558
|
}
|
|
8559
8559
|
updateValueFromReact(s, u = { modified: !0 }) {
|
|
8560
|
-
const i = this.normalizeValue(s, u), b = this.updateValue(i, u),
|
|
8561
|
-
if (
|
|
8562
|
-
const I = an(this.rootValue,
|
|
8563
|
-
this.isEqual(I, i) || dn(this.rootValue,
|
|
8560
|
+
const i = this.normalizeValue(s, u), b = this.updateValue(i, u), M = this.path || this.component?.key;
|
|
8561
|
+
if (M && this.rootValue) {
|
|
8562
|
+
const I = an(this.rootValue, M);
|
|
8563
|
+
this.isEqual(I, i) || dn(this.rootValue, M, i);
|
|
8564
8564
|
}
|
|
8565
8565
|
return b;
|
|
8566
8566
|
}
|
|
8567
8567
|
setValue(s, u = {}) {
|
|
8568
|
-
const i = this.normalizeValue(s, u), b = super.setValue(i, u),
|
|
8569
|
-
if (
|
|
8570
|
-
const I = an(this.rootValue,
|
|
8571
|
-
this.isEqual(I, i) || dn(this.rootValue,
|
|
8568
|
+
const i = this.normalizeValue(s, u), b = super.setValue(i, u), M = this.path || this.component?.key;
|
|
8569
|
+
if (M && this.rootValue) {
|
|
8570
|
+
const I = an(this.rootValue, M);
|
|
8571
|
+
this.isEqual(I, i) || dn(this.rootValue, M, i);
|
|
8572
8572
|
}
|
|
8573
8573
|
return b;
|
|
8574
8574
|
}
|
|
@@ -8706,8 +8706,8 @@ function cm() {
|
|
|
8706
8706
|
}, 3364: function(l, y, r) {
|
|
8707
8707
|
var c = r(8992), h = r(1664), f = r(5712), p = r(4356), g = r(3556), Y = r(2568), _ = h([].push), k = function(C) {
|
|
8708
8708
|
var j = C === 1, F = C === 2, R = C === 3, O = C === 4, v = C === 6, T = C === 7, x = C === 5 || v;
|
|
8709
|
-
return function(
|
|
8710
|
-
for (var z, B, Q = p(
|
|
8709
|
+
return function(S, V, A, E) {
|
|
8710
|
+
for (var z, B, Q = p(S), ne = f(Q), te = g(ne), he = c(V, A), ee = 0, ce = E || Y, ge = j ? ce(S, te) : F || T ? ce(S, 0) : void 0; te > ee; ee++) if ((x || ee in ne) && (B = he(z = ne[ee], ee, Q), C)) if (j) ge[ee] = B;
|
|
8711
8711
|
else if (B) switch (C) {
|
|
8712
8712
|
case 3:
|
|
8713
8713
|
return !0;
|
|
@@ -8917,9 +8917,9 @@ function cm() {
|
|
|
8917
8917
|
}, 9160: function(l, y, r) {
|
|
8918
8918
|
var c = r(6420), h = r(9444).f, f = r(3440), p = r(6076), g = r(4636), Y = r(9968), _ = r(6704);
|
|
8919
8919
|
l.exports = function(k, C) {
|
|
8920
|
-
var j, F, R, O, v, T = k.target, x = k.global,
|
|
8921
|
-
if (j = x ? c :
|
|
8922
|
-
if (O = C[F], R = k.dontCallGetSet ? (v = h(j, F)) && v.value : j[F], !_(x ? F : T + (
|
|
8920
|
+
var j, F, R, O, v, T = k.target, x = k.global, S = k.stat;
|
|
8921
|
+
if (j = x ? c : S ? c[T] || g(T, {}) : c[T] && c[T].prototype) for (F in C) {
|
|
8922
|
+
if (O = C[F], R = k.dontCallGetSet ? (v = h(j, F)) && v.value : j[F], !_(x ? F : T + (S ? "." : "#") + F, k.forced) && R !== void 0) {
|
|
8923
8923
|
if (typeof O == typeof R) continue;
|
|
8924
8924
|
Y(O, R);
|
|
8925
8925
|
}
|
|
@@ -8952,11 +8952,11 @@ function cm() {
|
|
|
8952
8952
|
}, A[O](""), !V;
|
|
8953
8953
|
}));
|
|
8954
8954
|
if (!v || !T || F) {
|
|
8955
|
-
var x = /./[O],
|
|
8955
|
+
var x = /./[O], S = j(O, ""[C], (function(V, A, E, z, B) {
|
|
8956
8956
|
var Q = A.exec;
|
|
8957
8957
|
return Q === f || Q === k.exec ? v && !B ? { done: !0, value: c(x, A, E, z) } : { done: !0, value: c(V, E, A, z) } : { done: !1 };
|
|
8958
8958
|
}));
|
|
8959
|
-
h(String.prototype, C,
|
|
8959
|
+
h(String.prototype, C, S[0]), h(k, O, S[1]);
|
|
8960
8960
|
}
|
|
8961
8961
|
R && Y(k[O], "sham", !0);
|
|
8962
8962
|
};
|
|
@@ -9075,31 +9075,31 @@ function cm() {
|
|
|
9075
9075
|
var c, h, f, p = r(4288), g = r(6420), Y = r(1632), _ = r(3440), k = r(5152), C = r(3976), j = r(6504), F = r(2560), R = "Object already initialized", O = g.TypeError, v = g.WeakMap;
|
|
9076
9076
|
if (p || C.state) {
|
|
9077
9077
|
var T = C.state || (C.state = new v());
|
|
9078
|
-
T.get = T.get, T.has = T.has, T.set = T.set, c = function(
|
|
9079
|
-
if (T.has(
|
|
9080
|
-
return V.facade =
|
|
9081
|
-
}, h = function(
|
|
9082
|
-
return T.get(
|
|
9083
|
-
}, f = function(
|
|
9084
|
-
return T.has(
|
|
9078
|
+
T.get = T.get, T.has = T.has, T.set = T.set, c = function(S, V) {
|
|
9079
|
+
if (T.has(S)) throw new O(R);
|
|
9080
|
+
return V.facade = S, T.set(S, V), V;
|
|
9081
|
+
}, h = function(S) {
|
|
9082
|
+
return T.get(S) || {};
|
|
9083
|
+
}, f = function(S) {
|
|
9084
|
+
return T.has(S);
|
|
9085
9085
|
};
|
|
9086
9086
|
} else {
|
|
9087
9087
|
var x = j("state");
|
|
9088
|
-
F[x] = !0, c = function(
|
|
9089
|
-
if (k(
|
|
9090
|
-
return V.facade =
|
|
9091
|
-
}, h = function(
|
|
9092
|
-
return k(
|
|
9093
|
-
}, f = function(
|
|
9094
|
-
return k(
|
|
9088
|
+
F[x] = !0, c = function(S, V) {
|
|
9089
|
+
if (k(S, x)) throw new O(R);
|
|
9090
|
+
return V.facade = S, _(S, x, V), V;
|
|
9091
|
+
}, h = function(S) {
|
|
9092
|
+
return k(S, x) ? S[x] : {};
|
|
9093
|
+
}, f = function(S) {
|
|
9094
|
+
return k(S, x);
|
|
9095
9095
|
};
|
|
9096
9096
|
}
|
|
9097
|
-
l.exports = { set: c, get: h, has: f, enforce: function(
|
|
9098
|
-
return f(
|
|
9099
|
-
}, getterFor: function(
|
|
9097
|
+
l.exports = { set: c, get: h, has: f, enforce: function(S) {
|
|
9098
|
+
return f(S) ? h(S) : c(S, {});
|
|
9099
|
+
}, getterFor: function(S) {
|
|
9100
9100
|
return function(V) {
|
|
9101
9101
|
var A;
|
|
9102
|
-
if (!Y(V) || (A = h(V)).type !==
|
|
9102
|
+
if (!Y(V) || (A = h(V)).type !== S) throw new O("Incompatible receiver, " + S + " required");
|
|
9103
9103
|
return A;
|
|
9104
9104
|
};
|
|
9105
9105
|
} };
|
|
@@ -9219,12 +9219,12 @@ function cm() {
|
|
|
9219
9219
|
}
|
|
9220
9220
|
return j(z, "normal"), C(void 0, !0);
|
|
9221
9221
|
} });
|
|
9222
|
-
}, x = T(!0),
|
|
9223
|
-
f(
|
|
9222
|
+
}, x = T(!0), S = T(!1);
|
|
9223
|
+
f(S, F, "Iterator Helper"), l.exports = function(V, A) {
|
|
9224
9224
|
var E = function(z, B) {
|
|
9225
9225
|
B ? (B.iterator = z.iterator, B.next = z.next) : B = z, B.type = A ? O : R, B.nextHandler = V, B.counter = 0, B.done = !1, v(this, B);
|
|
9226
9226
|
};
|
|
9227
|
-
return E.prototype = A ? x :
|
|
9227
|
+
return E.prototype = A ? x : S, E;
|
|
9228
9228
|
};
|
|
9229
9229
|
}, 5792: function(l, y, r) {
|
|
9230
9230
|
var c = r(8448), h = r(8952), f = r(3951), p = r(6752), g = r(9724), Y = r(8696), _ = g((function() {
|
|
@@ -9251,14 +9251,14 @@ function cm() {
|
|
|
9251
9251
|
var c = r(1664), h = r(9957), f = r(4328), p = r(5152), g = r(3476), Y = r(6208).CONFIGURABLE, _ = r(9112), k = r(9104), C = k.enforce, j = k.get, F = String, R = Object.defineProperty, O = c("".slice), v = c("".replace), T = c([].join), x = g && !h((function() {
|
|
9252
9252
|
return R((function() {
|
|
9253
9253
|
}), "length", { value: 8 }).length !== 8;
|
|
9254
|
-
})),
|
|
9254
|
+
})), S = String(String).split("String"), V = l.exports = function(A, E, z) {
|
|
9255
9255
|
O(F(E), 0, 7) === "Symbol(" && (E = "[" + v(F(E), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), z && z.getter && (E = "get " + E), z && z.setter && (E = "set " + E), (!p(A, "name") || Y && A.name !== E) && (g ? R(A, "name", { value: E, configurable: !0 }) : A.name = E), x && z && p(z, "arity") && A.length !== z.arity && R(A, "length", { value: z.arity });
|
|
9256
9256
|
try {
|
|
9257
9257
|
z && p(z, "constructor") && z.constructor ? g && R(A, "prototype", { writable: !1 }) : A.prototype && (A.prototype = void 0);
|
|
9258
9258
|
} catch {
|
|
9259
9259
|
}
|
|
9260
9260
|
var B = C(A);
|
|
9261
|
-
return p(B, "source") || (B.source = T(
|
|
9261
|
+
return p(B, "source") || (B.source = T(S, typeof E == "string" ? E : "")), A;
|
|
9262
9262
|
};
|
|
9263
9263
|
Function.prototype.toString = V((function() {
|
|
9264
9264
|
return f(this) && j(this).source || _(this);
|
|
@@ -9281,11 +9281,11 @@ function cm() {
|
|
|
9281
9281
|
F(this, "b", { value: 3, enumerable: !1 });
|
|
9282
9282
|
} }), { b: 2 })).b !== 1) return !0;
|
|
9283
9283
|
var O = {}, v = {}, T = /* @__PURE__ */ Symbol("assign detection"), x = "abcdefghijklmnopqrst";
|
|
9284
|
-
return O[T] = 7, x.split("").forEach((function(
|
|
9285
|
-
v[
|
|
9284
|
+
return O[T] = 7, x.split("").forEach((function(S) {
|
|
9285
|
+
v[S] = S;
|
|
9286
9286
|
})), j({}, O)[T] !== 7 || g(j({}, v)).join("") !== x;
|
|
9287
9287
|
})) ? function(O, v) {
|
|
9288
|
-
for (var T = k(O), x = arguments.length,
|
|
9288
|
+
for (var T = k(O), x = arguments.length, S = 1, V = Y.f, A = _.f; x > S; ) for (var E, z = C(arguments[S++]), B = V ? R(g(z), V(z)) : g(z), Q = B.length, ne = 0; Q > ne; ) E = B[ne++], c && !f(A, z, E) || (T[E] = z[E]);
|
|
9289
9289
|
return T;
|
|
9290
9290
|
} : j;
|
|
9291
9291
|
}, 9368: function(l, y, r) {
|
|
@@ -9294,21 +9294,21 @@ function cm() {
|
|
|
9294
9294
|
return "<" + j + ">" + x + "</" + j + ">";
|
|
9295
9295
|
}, v = function(x) {
|
|
9296
9296
|
x.write(O("")), x.close();
|
|
9297
|
-
var
|
|
9298
|
-
return x = null,
|
|
9297
|
+
var S = x.parentWindow.Object;
|
|
9298
|
+
return x = null, S;
|
|
9299
9299
|
}, T = function() {
|
|
9300
9300
|
try {
|
|
9301
9301
|
c = new ActiveXObject("htmlfile");
|
|
9302
9302
|
} catch {
|
|
9303
9303
|
}
|
|
9304
|
-
var x,
|
|
9305
|
-
T = typeof document < "u" ? document.domain && c ? v(c) : (
|
|
9304
|
+
var x, S, V;
|
|
9305
|
+
T = typeof document < "u" ? document.domain && c ? v(c) : (S = _("iframe"), V = "java" + j + ":", S.style.display = "none", Y.appendChild(S), S.src = String(V), (x = S.contentWindow.document).open(), x.write(O("document.F=Object")), x.close(), x.F) : v(c);
|
|
9306
9306
|
for (var A = p.length; A--; ) delete T[C][p[A]];
|
|
9307
9307
|
return T();
|
|
9308
9308
|
};
|
|
9309
|
-
g[F] = !0, l.exports = Object.create || function(x,
|
|
9309
|
+
g[F] = !0, l.exports = Object.create || function(x, S) {
|
|
9310
9310
|
var V;
|
|
9311
|
-
return x !== null ? (R[C] = h(x), V = new R(), R[C] = null, V[F] = x) : V = T(),
|
|
9311
|
+
return x !== null ? (R[C] = h(x), V = new R(), R[C] = null, V[F] = x) : V = T(), S === void 0 ? V : f.f(V, S);
|
|
9312
9312
|
};
|
|
9313
9313
|
}, 2056: function(l, y, r) {
|
|
9314
9314
|
var c = r(3476), h = r(1576), f = r(8352), p = r(3951), g = r(4096), Y = r(1531);
|
|
@@ -9430,12 +9430,12 @@ function cm() {
|
|
|
9430
9430
|
throw new Y("RegExp#exec called on incompatible receiver");
|
|
9431
9431
|
};
|
|
9432
9432
|
}, 7680: function(l, y, r) {
|
|
9433
|
-
var c, h, f = r(8448), p = r(1664), g = r(5016), Y = r(8872), _ = r(3548), k = r(4696), C = r(9368), j = r(9104).get, F = r(8e3), R = r(9124), O = k("native-string-replace", String.prototype.replace), v = RegExp.prototype.exec, T = v, x = p("".charAt),
|
|
9433
|
+
var c, h, f = r(8448), p = r(1664), g = r(5016), Y = r(8872), _ = r(3548), k = r(4696), C = r(9368), j = r(9104).get, F = r(8e3), R = r(9124), O = k("native-string-replace", String.prototype.replace), v = RegExp.prototype.exec, T = v, x = p("".charAt), S = p("".indexOf), V = p("".replace), A = p("".slice), E = (h = /b*/g, f(v, c = /a/, "a"), f(v, h, "a"), c.lastIndex !== 0 || h.lastIndex !== 0), z = _.BROKEN_CARET, B = /()??/.exec("")[1] !== void 0;
|
|
9434
9434
|
(E || B || z || F || R) && (T = function(Q) {
|
|
9435
9435
|
var ne, te, he, ee, ce, ge, fe, oe = this, X = j(oe), Pe = g(Q), Ie = X.raw;
|
|
9436
9436
|
if (Ie) return Ie.lastIndex = oe.lastIndex, ne = f(T, Ie, Pe), oe.lastIndex = Ie.lastIndex, ne;
|
|
9437
9437
|
var Ye = X.groups, ke = z && oe.sticky, $ = f(Y, oe), G = oe.source, K = 0, P = Pe;
|
|
9438
|
-
if (ke && ($ = V($, "y", ""),
|
|
9438
|
+
if (ke && ($ = V($, "y", ""), S($, "g") === -1 && ($ += "g"), P = A(Pe, oe.lastIndex), oe.lastIndex > 0 && (!oe.multiline || oe.multiline && x(Pe, oe.lastIndex - 1) !== `
|
|
9439
9439
|
`) && (G = "(?: " + G + ")", P = " " + P, K++), te = new RegExp("^(?:" + G + ")", $)), B && (te = new RegExp("^" + G + "$(?!\\s)", $)), E && (he = oe.lastIndex), ee = f(v, ke ? te : oe, P), ke ? ee ? (ee.input = A(ee.input, K), ee[0] = A(ee[0], K), ee.index = oe.lastIndex, oe.lastIndex += ee[0].length) : oe.lastIndex = 0 : E && ee && (oe.lastIndex = oe.global ? ee.index + ee[0].length : he), B && ee && ee.length > 1 && f(O, ee[0], te, (function() {
|
|
9440
9440
|
for (ce = 1; ce < arguments.length - 2; ce++) arguments[ce] === void 0 && (ee[ce] = void 0);
|
|
9441
9441
|
})), ee && Ye) for (ee.groups = ge = C(null), ce = 0; ce < Ye.length; ce++) ge[(fe = Ye[ce])[0]] = ee[fe[1]];
|
|
@@ -9591,13 +9591,13 @@ function cm() {
|
|
|
9591
9591
|
};
|
|
9592
9592
|
}, 6488: function(l, y, r) {
|
|
9593
9593
|
var c = r(5232), h = r(5152), f = r(3440), p = r(7e3), g = r(4024), Y = r(9968), _ = r(584), k = r(7512), C = r(8948), j = r(3480), F = r(3696), R = r(3476), O = r(7048);
|
|
9594
|
-
l.exports = function(v, T, x,
|
|
9595
|
-
var V = "stackTraceLimit", A =
|
|
9594
|
+
l.exports = function(v, T, x, S) {
|
|
9595
|
+
var V = "stackTraceLimit", A = S ? 2 : 1, E = v.split("."), z = E[E.length - 1], B = c.apply(null, E);
|
|
9596
9596
|
if (B) {
|
|
9597
9597
|
var Q = B.prototype;
|
|
9598
9598
|
if (!O && h(Q, "cause") && delete Q.cause, !x) return B;
|
|
9599
9599
|
var ne = c("Error"), te = T((function(he, ee) {
|
|
9600
|
-
var ce = C(
|
|
9600
|
+
var ce = C(S ? ee : he, void 0), ge = S ? new B(he) : new B();
|
|
9601
9601
|
return ce !== void 0 && f(ge, "message", ce), F(ge, te, ge.stack, 2), this && p(Q, this) && k(ge, this, te), arguments.length > A && j(ge, arguments[A]), ge;
|
|
9602
9602
|
}));
|
|
9603
9603
|
if (te.prototype = Q, z !== "Error" ? g ? g(te, ne) : Y(te, ne, { name: !0 }) : R && V in B && (_(te, B, V), _(te, B, "prepareStackTrace")), Y(te, B), !O) try {
|
|
@@ -9613,12 +9613,12 @@ function cm() {
|
|
|
9613
9613
|
return x[O] = !1, x.concat()[0] !== x;
|
|
9614
9614
|
})), T = function(x) {
|
|
9615
9615
|
if (!p(x)) return !1;
|
|
9616
|
-
var
|
|
9617
|
-
return
|
|
9616
|
+
var S = x[O];
|
|
9617
|
+
return S !== void 0 ? !!S : f(x);
|
|
9618
9618
|
};
|
|
9619
9619
|
c({ target: "Array", proto: !0, arity: 1, forced: !v || !j("concat") }, { concat: function(x) {
|
|
9620
|
-
var
|
|
9621
|
-
for (
|
|
9620
|
+
var S, V, A, E, z, B = g(this), Q = C(B, 0), ne = 0;
|
|
9621
|
+
for (S = -1, A = arguments.length; S < A; S++) if (T(z = S === -1 ? B : arguments[S])) for (E = Y(z), _(ne + E), V = 0; V < E; V++, ne++) V in z && k(Q, ne, z[V]);
|
|
9622
9622
|
else _(ne + 1), k(Q, ne++, z);
|
|
9623
9623
|
return Q.length = ne, Q;
|
|
9624
9624
|
} });
|
|
@@ -9729,8 +9729,8 @@ function cm() {
|
|
|
9729
9729
|
var T = _(this), x = p(v) ? void 0 : k(v, F);
|
|
9730
9730
|
return x ? c(x, v, T) : new RegExp(v)[F](Y(T));
|
|
9731
9731
|
}, function(v) {
|
|
9732
|
-
var T = f(this), x = Y(v),
|
|
9733
|
-
if (
|
|
9732
|
+
var T = f(this), x = Y(v), S = O(R, T, x);
|
|
9733
|
+
if (S.done) return S.value;
|
|
9734
9734
|
if (!T.global) return j(T, x);
|
|
9735
9735
|
var V = T.unicode;
|
|
9736
9736
|
T.lastIndex = 0;
|
|
@@ -9742,7 +9742,7 @@ function cm() {
|
|
|
9742
9742
|
}];
|
|
9743
9743
|
}));
|
|
9744
9744
|
}, 3536: function(l, y, r) {
|
|
9745
|
-
var c = r(9160), h = r(6420), f = r(6100), p = r(3951), g = r(4328), Y = r(7796), _ = r(2544), k = r(92), C = r(9957), j = r(5152), F = r(9972), R = r(336).IteratorPrototype, O = r(3476), v = r(7048), T = "constructor", x = "Iterator",
|
|
9745
|
+
var c = r(9160), h = r(6420), f = r(6100), p = r(3951), g = r(4328), Y = r(7796), _ = r(2544), k = r(92), C = r(9957), j = r(5152), F = r(9972), R = r(336).IteratorPrototype, O = r(3476), v = r(7048), T = "constructor", x = "Iterator", S = F("toStringTag"), V = TypeError, A = h[x], E = v || !g(A) || A.prototype !== R || !C((function() {
|
|
9746
9746
|
A({});
|
|
9747
9747
|
})), z = function() {
|
|
9748
9748
|
if (f(this, R), Y(this) === R) throw new V("Abstract class Iterator not directly constructable");
|
|
@@ -9754,7 +9754,7 @@ function cm() {
|
|
|
9754
9754
|
j(this, Q) ? this[Q] = te : k(this, Q, te);
|
|
9755
9755
|
} }) : R[Q] = ne;
|
|
9756
9756
|
};
|
|
9757
|
-
j(R,
|
|
9757
|
+
j(R, S) || B(S, x), !E && j(R, T) && R[T] !== Object || B(T, z), z.prototype = R, c({ global: !0, constructor: !0, forced: E }, { Iterator: z });
|
|
9758
9758
|
}, 2144: function(l, y, r) {
|
|
9759
9759
|
var c = r(9160), h = r(8448), f = r(8952), p = r(3951), g = r(6752), Y = r(9724), _ = r(8696), k = r(7048), C = Y((function() {
|
|
9760
9760
|
for (var j, F, R = this.iterator, O = this.predicate, v = this.next; ; ) {
|
|
@@ -9769,33 +9769,33 @@ function cm() {
|
|
|
9769
9769
|
var c = r(9160), h = r(5792);
|
|
9770
9770
|
c({ target: "Iterator", proto: !0, real: !0, forced: r(7048) }, { map: h });
|
|
9771
9771
|
} }, b = {};
|
|
9772
|
-
function
|
|
9772
|
+
function M(l) {
|
|
9773
9773
|
var y = b[l];
|
|
9774
9774
|
if (y !== void 0) return y.exports;
|
|
9775
9775
|
var r = b[l] = { exports: {} };
|
|
9776
|
-
return i[l].call(r.exports, r, r.exports,
|
|
9776
|
+
return i[l].call(r.exports, r, r.exports, M), r.exports;
|
|
9777
9777
|
}
|
|
9778
|
-
|
|
9779
|
-
for (var r in y)
|
|
9780
|
-
},
|
|
9778
|
+
M.d = function(l, y) {
|
|
9779
|
+
for (var r in y) M.o(y, r) && !M.o(l, r) && Object.defineProperty(l, r, { enumerable: !0, get: y[r] });
|
|
9780
|
+
}, M.g = (function() {
|
|
9781
9781
|
if (typeof globalThis == "object") return globalThis;
|
|
9782
9782
|
try {
|
|
9783
9783
|
return this || new Function("return this")();
|
|
9784
9784
|
} catch {
|
|
9785
9785
|
if (typeof window == "object") return window;
|
|
9786
9786
|
}
|
|
9787
|
-
})(),
|
|
9787
|
+
})(), M.o = function(l, y) {
|
|
9788
9788
|
return Object.prototype.hasOwnProperty.call(l, y);
|
|
9789
|
-
},
|
|
9789
|
+
}, M.r = function(l) {
|
|
9790
9790
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(l, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(l, "__esModule", { value: !0 });
|
|
9791
9791
|
};
|
|
9792
9792
|
var I = {};
|
|
9793
9793
|
return (function() {
|
|
9794
|
-
|
|
9794
|
+
M.r(I), M.d(I, { default: function() {
|
|
9795
9795
|
return _;
|
|
9796
|
-
} }),
|
|
9797
|
-
var l =
|
|
9798
|
-
|
|
9796
|
+
} }), M(8752), M(6932), M(700), M(4456), M(4728), M(508), M(232), M(5443), M(880), M(9836), M(3536), M(2144), M(9080);
|
|
9797
|
+
var l = M(680);
|
|
9798
|
+
M(7476);
|
|
9799
9799
|
function y(k, C) {
|
|
9800
9800
|
return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(j, F) {
|
|
9801
9801
|
return j.__proto__ = F, j;
|
|
@@ -9813,22 +9813,22 @@ function cm() {
|
|
|
9813
9813
|
var O, v, T, x = this;
|
|
9814
9814
|
this.debounceStatusUpdate = (O = function() {
|
|
9815
9815
|
if (!x.state.debounced) {
|
|
9816
|
-
var
|
|
9816
|
+
var S = !x.props.isInFocus || x.props.validChoiceMade;
|
|
9817
9817
|
x.setState((function(V) {
|
|
9818
|
-
return { bump: !V.bump, debounced: !0, silenced:
|
|
9818
|
+
return { bump: !V.bump, debounced: !0, silenced: S };
|
|
9819
9819
|
}));
|
|
9820
9820
|
}
|
|
9821
9821
|
}, v = 1400, function() {
|
|
9822
|
-
var
|
|
9822
|
+
var S = this, V = arguments;
|
|
9823
9823
|
clearTimeout(T), T = setTimeout((function() {
|
|
9824
|
-
T = null, O.apply(
|
|
9824
|
+
T = null, O.apply(S, V);
|
|
9825
9825
|
}), v);
|
|
9826
9826
|
});
|
|
9827
9827
|
}, R.componentWillReceiveProps = function(O) {
|
|
9828
9828
|
O.queryLength, this.setState({ debounced: !1 });
|
|
9829
9829
|
}, R.render = function() {
|
|
9830
|
-
var O = this.props, v = O.id, T = O.length, x = O.queryLength,
|
|
9831
|
-
return X = ge ? E(
|
|
9830
|
+
var O = this.props, v = O.id, T = O.length, x = O.queryLength, S = O.minQueryLength, V = O.selectedOption, A = O.selectedOptionIndex, E = O.tQueryTooShort, z = O.tNoResults, B = O.tSelectedOption, Q = O.tResults, ne = O.className, te = this.state, he = te.bump, ee = te.debounced, ce = te.silenced, ge = x < S, fe = T === 0, oe = V ? B(V, T, A) : "", X = null;
|
|
9831
|
+
return X = ge ? E(S) : fe ? z() : Q(T, oe), this.debounceStatusUpdate(), (0, l.createElement)("div", { className: ne, style: { border: "0", clip: "rect(0 0 0 0)", height: "1px", marginBottom: "-1px", marginRight: "-1px", overflow: "hidden", padding: "0", position: "absolute", whiteSpace: "nowrap", width: "1px" } }, (0, l.createElement)("div", { id: v + "__status--A", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !ce && ee && he ? X : ""), (0, l.createElement)("div", { id: v + "__status--B", role: "status", "aria-atomic": "true", "aria-live": "polite" }, ce || !ee || he ? "" : X));
|
|
9832
9832
|
}, F;
|
|
9833
9833
|
})(l.Component);
|
|
9834
9834
|
r.defaultProps = { tQueryTooShort: function(k) {
|
|
@@ -9892,9 +9892,9 @@ function cm() {
|
|
|
9892
9892
|
var O = this.elementReferences[-1];
|
|
9893
9893
|
O && O.value !== this.state.query && this.handleInputChange({ target: { value: O.value } });
|
|
9894
9894
|
}, R.componentDidUpdate = function(O, v) {
|
|
9895
|
-
var T = this.state.focused, x = T === null,
|
|
9896
|
-
|
|
9897
|
-
var V = T === -1, A =
|
|
9895
|
+
var T = this.state.focused, x = T === null, S = v.focused !== T;
|
|
9896
|
+
S && !x && this.elementReferences[T].focus();
|
|
9897
|
+
var V = T === -1, A = S && v.focused === null;
|
|
9898
9898
|
if (V && A) {
|
|
9899
9899
|
var E = this.elementReferences[T];
|
|
9900
9900
|
E.setSelectionRange(0, E.value.length);
|
|
@@ -9908,32 +9908,32 @@ function cm() {
|
|
|
9908
9908
|
var v = this.props.templates && this.props.templates.suggestion;
|
|
9909
9909
|
return v ? v(O) : O;
|
|
9910
9910
|
}, R.handleComponentBlur = function(O) {
|
|
9911
|
-
var v, T = this.state, x = T.options,
|
|
9912
|
-
this.props.confirmOnBlur ? (v = O.query ||
|
|
9911
|
+
var v, T = this.state, x = T.options, S = T.query, V = T.selected;
|
|
9912
|
+
this.props.confirmOnBlur ? (v = O.query || S, this.props.onConfirm(x[V])) : v = S, this.setState({ focused: null, menuOpen: O.menuOpen || !1, query: v, selected: null, validChoiceMade: this.isQueryAnOption(v, x) });
|
|
9913
9913
|
}, R.handleListMouseLeave = function(O) {
|
|
9914
9914
|
this.setState({ hovered: null });
|
|
9915
9915
|
}, R.handleOptionBlur = function(O, v) {
|
|
9916
|
-
var T = this.state, x = T.focused,
|
|
9916
|
+
var T = this.state, x = T.focused, S = T.menuOpen, V = T.options, A = T.selected, E = O.relatedTarget === null, z = O.relatedTarget === this.elementReferences[-1], B = x !== v && x !== -1;
|
|
9917
9917
|
if (!B && E || !(B || z)) {
|
|
9918
|
-
var Q =
|
|
9918
|
+
var Q = S && Y();
|
|
9919
9919
|
this.handleComponentBlur({ menuOpen: Q, query: this.templateInputValue(V[A]) });
|
|
9920
9920
|
}
|
|
9921
9921
|
}, R.handleInputBlur = function(O) {
|
|
9922
|
-
var v = this.state, T = v.focused, x = v.menuOpen,
|
|
9922
|
+
var v = this.state, T = v.focused, x = v.menuOpen, S = v.options, V = v.query, A = v.selected;
|
|
9923
9923
|
if (T === -1) {
|
|
9924
|
-
var E = x && Y(), z = Y() ? V : this.templateInputValue(
|
|
9924
|
+
var E = x && Y(), z = Y() ? V : this.templateInputValue(S[A]);
|
|
9925
9925
|
this.handleComponentBlur({ menuOpen: E, query: z });
|
|
9926
9926
|
}
|
|
9927
9927
|
}, R.handleInputChange = function(O) {
|
|
9928
|
-
var v = this, T = this.props, x = T.minLength,
|
|
9929
|
-
this.setState({ query: E, ariaHint: z }), V || !z && B && Q ?
|
|
9928
|
+
var v = this, T = this.props, x = T.minLength, S = T.source, V = T.showAllValues, A = this.hasAutoselect(), E = O.target.value, z = E.length === 0, B = this.state.query !== E, Q = E.length >= x;
|
|
9929
|
+
this.setState({ query: E, ariaHint: z }), V || !z && B && Q ? S(E, (function(ne) {
|
|
9930
9930
|
var te = ne.length > 0;
|
|
9931
9931
|
v.setState({ menuOpen: te, options: ne, selected: A && te ? 0 : -1, validChoiceMade: !1 });
|
|
9932
9932
|
})) : !z && Q || this.setState({ menuOpen: !1, options: [] });
|
|
9933
9933
|
}, R.handleInputClick = function(O) {
|
|
9934
9934
|
this.handleInputChange(O);
|
|
9935
9935
|
}, R.handleInputFocus = function(O) {
|
|
9936
|
-
var v = this.state, T = v.query, x = v.validChoiceMade,
|
|
9936
|
+
var v = this.state, T = v.query, x = v.validChoiceMade, S = v.options, V = this.props.minLength, A = !x && T.length >= V && S.length > 0;
|
|
9937
9937
|
A ? this.setState((function(E) {
|
|
9938
9938
|
var z = E.menuOpen;
|
|
9939
9939
|
return { focused: -1, menuOpen: A || z, selected: -1 };
|
|
@@ -9957,8 +9957,8 @@ function cm() {
|
|
|
9957
9957
|
v.setState({ menuOpen: !0, options: A, selected: 0, focused: 0, hovered: null });
|
|
9958
9958
|
}));
|
|
9959
9959
|
else if (this.state.menuOpen === !0) {
|
|
9960
|
-
var T = this.state, x = T.menuOpen,
|
|
9961
|
-
V !==
|
|
9960
|
+
var T = this.state, x = T.menuOpen, S = T.options, V = T.selected;
|
|
9961
|
+
V !== S.length - 1 && x && this.handleOptionFocus(V + 1);
|
|
9962
9962
|
}
|
|
9963
9963
|
}, R.handleSpace = function(O) {
|
|
9964
9964
|
var v = this;
|
|
@@ -9992,11 +9992,11 @@ function cm() {
|
|
|
9992
9992
|
}
|
|
9993
9993
|
var v;
|
|
9994
9994
|
}, R.render = function() {
|
|
9995
|
-
var O, v = this, T = this.props, x = T.cssNamespace,
|
|
9995
|
+
var O, v = this, T = this.props, x = T.cssNamespace, S = T.displayMenu, V = T.id, A = T.minLength, E = T.name, z = T.placeholder, B = T.required, Q = T.showAllValues, ne = T.tNoResults, te = T.tStatusQueryTooShort, he = T.tStatusNoResults, ee = T.tStatusSelectedOption, ce = T.tStatusResults, ge = T.tAssistiveHint, fe = T.dropdownArrow, oe = T.menuAttributes, X = T.inputClasses, Pe = T.hintClasses, Ie = T.menuClasses, Ye = this.state, ke = Ye.focused, $ = Ye.hovered, G = Ye.menuOpen, K = Ye.options, P = Ye.query, q = Ye.selected, N = Ye.ariaHint, W = Ye.validChoiceMade, H = this.hasAutoselect(), ue = ke === -1, ie = K.length === 0, Te = P.length !== 0, pe = P.length >= A, ye = this.props.showNoOptionsFound && ue && ie && Te && pe, $e = x + "__wrapper", Re = x + "__status", dt = x + "__dropdown-arrow-down", Ue = ke !== -1 && ke !== null, st = x + "__option", Tt = x + "__hint", ot = this.templateInputValue(K[q]), Ce = ot && ot.toLowerCase().indexOf(P.toLowerCase()) === 0 && H ? P + ot.substr(P.length) : "", Pt = V + "__assistiveHint", Ft = { "aria-describedby": N ? Pt : null, "aria-expanded": G ? "true" : "false", "aria-activedescendant": Ue ? V + "__option--" + ke : null, "aria-controls": V + "__listbox", "aria-autocomplete": this.hasAutoselect() ? "both" : "list" };
|
|
9996
9996
|
Q && typeof (O = fe({ className: dt })) == "string" && (O = (0, l.createElement)("div", { className: x + "__dropdown-arrow-down-wrapper", dangerouslySetInnerHTML: { __html: O } }));
|
|
9997
9997
|
var lt = x + "__input", gt = [lt, this.props.showAllValues ? lt + "--show-all-values" : lt + "--default"];
|
|
9998
9998
|
ke !== null && gt.push(lt + "--focused"), X && gt.push(X);
|
|
9999
|
-
var ht = x + "__menu", rt = [ht, ht + "--" +
|
|
9999
|
+
var ht = x + "__menu", rt = [ht, ht + "--" + S, ht + "--" + (G || ye ? "visible" : "hidden")];
|
|
10000
10000
|
Ie && rt.push(Ie), (oe != null && oe.class || oe != null && oe.className) && rt.push(oe?.class || oe?.className);
|
|
10001
10001
|
var vt = Object.assign({ "aria-labelledby": V }, oe, { id: V + "__listbox", role: "listbox", className: rt.join(" "), onMouseLeave: this.handleListMouseLeave });
|
|
10002
10002
|
return delete vt.class, (0, l.createElement)("div", { className: $e, onKeyDown: this.handleKeyDown }, (0, l.createElement)(r, { id: V, length: K.length, queryLength: P.length, minQueryLength: A, selectedOption: this.templateInputValue(K[q]), selectedOptionIndex: q, validChoiceMade: W, isInFocus: this.state.focused !== null, tQueryTooShort: te, tNoResults: he, tSelectedOption: ee, tResults: ce, className: Re }), Ce && (0, l.createElement)("span", null, (0, l.createElement)("input", { className: [Tt, Pe === null ? X : Pe].filter(Boolean).join(" "), readonly: !0, tabIndex: "-1", value: Ce })), (0, l.createElement)("input", h({}, Ft, { autoComplete: "off", className: gt.join(" "), id: V, onClick: this.handleInputClick, onBlur: this.handleInputBlur }, { onChange: this.handleInputChange }, { onFocus: this.handleInputFocus, name: E, placeholder: z, ref: function(yt) {
|
|
@@ -10037,7 +10037,7 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10037
10037
|
onConfirm: u,
|
|
10038
10038
|
source: i,
|
|
10039
10039
|
disabled: b,
|
|
10040
|
-
onClear:
|
|
10040
|
+
onClear: M,
|
|
10041
10041
|
tClearInput: I = () => "Clear input",
|
|
10042
10042
|
...l
|
|
10043
10043
|
}) => {
|
|
@@ -10052,7 +10052,7 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10052
10052
|
b ? y.current && (y.current.elementReferences[-1].disabled = !0) : y.current && (y.current.elementReferences[-1].disabled = !1);
|
|
10053
10053
|
}, [b]);
|
|
10054
10054
|
const c = () => {
|
|
10055
|
-
|
|
10055
|
+
M && M();
|
|
10056
10056
|
}, h = (p, g) => {
|
|
10057
10057
|
y.current.elementReferences[-1].classList.contains(
|
|
10058
10058
|
"autocomplete__input--focused"
|
|
@@ -10092,7 +10092,7 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10092
10092
|
] });
|
|
10093
10093
|
}, pm = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==", gm = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=", vm = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", ym = ({ position: o, areasLayer: s, bounds: u, onMarkedMoved: i }) => {
|
|
10094
10094
|
const b = pt(null);
|
|
10095
|
-
let
|
|
10095
|
+
let M = null;
|
|
10096
10096
|
const [I, l] = se([]), y = $c(
|
|
10097
10097
|
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
10098
10098
|
{
|
|
@@ -10113,14 +10113,17 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10113
10113
|
iconRetinaUrl: pm,
|
|
10114
10114
|
iconUrl: gm,
|
|
10115
10115
|
shadowUrl: vm
|
|
10116
|
-
}),
|
|
10116
|
+
}), M = Gt.marker(f, { draggable: !0 }).addTo(h), M.on("moveend", function(p) {
|
|
10117
10117
|
const g = p.target.getLatLng();
|
|
10118
|
-
i(g,
|
|
10118
|
+
i(g, M);
|
|
10119
|
+
}), h.on("click", function(p) {
|
|
10120
|
+
const g = p.latlng;
|
|
10121
|
+
M && M.setLatLng(g).update(), i(g, M);
|
|
10119
10122
|
}), !o && u)
|
|
10120
10123
|
h.fitBounds(u);
|
|
10121
10124
|
else {
|
|
10122
10125
|
const p = o ? [o.lat, o.lon] : r;
|
|
10123
|
-
|
|
10126
|
+
M && (M.setLatLng(p).update(), h.setView(p, 15));
|
|
10124
10127
|
}
|
|
10125
10128
|
};
|
|
10126
10129
|
return Ne(() => {
|
|
@@ -10147,7 +10150,7 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10147
10150
|
onChange: i,
|
|
10148
10151
|
i18next: b
|
|
10149
10152
|
}) => {
|
|
10150
|
-
const [
|
|
10153
|
+
const [M, I] = se(null), [l, y] = se([]), [r, c] = se(), [h, f] = se(), [p, g] = se(!1), [Y, _] = se(), [k, C] = se(!1), [j, F] = se(), [R, O] = se(), [v, T] = se(!1), [x, S] = se(""), [V, A] = se(""), [E, z] = se(!1), [B, Q] = se(!1), te = new URLSearchParams(window.location.search).get("area"), { geographic_areas_id: he } = window.OC_SERVICE_DETAILS, ee = pt(), ce = b.language;
|
|
10151
10154
|
let ge = Gt.latLngBounds();
|
|
10152
10155
|
const fe = te || (he && he.length > 0 ? he : void 0), oe = (K, P) => {
|
|
10153
10156
|
ee.current = K;
|
|
@@ -10250,11 +10253,11 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10250
10253
|
console.error("Error with reverse geocoding:", W);
|
|
10251
10254
|
});
|
|
10252
10255
|
}, $ = () => {
|
|
10253
|
-
M
|
|
10256
|
+
S(M?.label ? M.label : "");
|
|
10254
10257
|
};
|
|
10255
10258
|
Ne(() => {
|
|
10256
|
-
$(), i(
|
|
10257
|
-
}, [
|
|
10259
|
+
$(), i(M);
|
|
10260
|
+
}, [M]), Ne(() => {
|
|
10258
10261
|
document.querySelector(".formio-read-only") && v === !1 ? T(!0) : T(!1);
|
|
10259
10262
|
}, []);
|
|
10260
10263
|
const G = () => {
|
|
@@ -10308,7 +10311,7 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10308
10311
|
/* @__PURE__ */ m.jsx(
|
|
10309
10312
|
ym,
|
|
10310
10313
|
{
|
|
10311
|
-
position:
|
|
10314
|
+
position: M,
|
|
10312
10315
|
areasLayer: h,
|
|
10313
10316
|
bounds: j,
|
|
10314
10317
|
onMarkedMoved: (K, P) => {
|
|
@@ -10373,7 +10376,7 @@ const fm = /* @__PURE__ */ wn(hm), mm = ({
|
|
|
10373
10376
|
disabled: v,
|
|
10374
10377
|
confirmOnBlur: !0,
|
|
10375
10378
|
showNoOptionsFound: !k,
|
|
10376
|
-
defaultValue:
|
|
10379
|
+
defaultValue: M?.label,
|
|
10377
10380
|
value: x,
|
|
10378
10381
|
tNoResults: () => b.t(
|
|
10379
10382
|
"Nessun risultato trovato, prova a inserire l'indirizzo completo"
|
|
@@ -10554,13 +10557,13 @@ function wm(...o) {
|
|
|
10554
10557
|
);
|
|
10555
10558
|
}
|
|
10556
10559
|
const Js = Et.Components.components.field, xm = ({ component: o, current: s, onChange: u, i18next: i }) => {
|
|
10557
|
-
const b = "list-services",
|
|
10560
|
+
const b = "list-services", M = "selected-category", [I, l] = se([]), [y, r] = se([]), [c, h] = se(null), [f, p] = se(null), [g, Y] = se(""), [_, k] = se(!1), [C, j] = se(!1), F = pt(!1), R = pt(), O = xi(() => {
|
|
10558
10561
|
if (!c) return null;
|
|
10559
10562
|
const A = y.find((z) => z.name === c);
|
|
10560
10563
|
return A || I.find((z) => z.name === c) || null;
|
|
10561
10564
|
}, [c, y, I]), v = xi(() => O?.services || [], [O]), T = async () => {
|
|
10562
10565
|
j(!0);
|
|
10563
|
-
const A = sessionStorage.getItem(b), E = sessionStorage.getItem(
|
|
10566
|
+
const A = sessionStorage.getItem(b), E = sessionStorage.getItem(M);
|
|
10564
10567
|
if (A)
|
|
10565
10568
|
try {
|
|
10566
10569
|
const te = JSON.parse(A);
|
|
@@ -10585,10 +10588,10 @@ const Js = Et.Components.components.field, xm = ({ component: o, current: s, onC
|
|
|
10585
10588
|
), ne = Object.values(Q).filter(
|
|
10586
10589
|
(te) => (te.name ?? "").trim() !== ""
|
|
10587
10590
|
);
|
|
10588
|
-
return l(ne), r(ne), h(ne[0]?.name || null), sessionStorage.setItem(b, JSON.stringify(ne)), sessionStorage.setItem(
|
|
10591
|
+
return l(ne), r(ne), h(ne[0]?.name || null), sessionStorage.setItem(b, JSON.stringify(ne)), sessionStorage.setItem(M, ne[0]?.name || ""), j(!1), ne;
|
|
10589
10592
|
};
|
|
10590
10593
|
Ne(() => {
|
|
10591
|
-
c && sessionStorage.setItem(
|
|
10594
|
+
c && sessionStorage.setItem(M, c);
|
|
10592
10595
|
}, [c]), Ne(() => {
|
|
10593
10596
|
F.current || (F.current = !0, T());
|
|
10594
10597
|
}, []);
|
|
@@ -10616,7 +10619,7 @@ const Js = Et.Components.components.field, xm = ({ component: o, current: s, onC
|
|
|
10616
10619
|
r(ce);
|
|
10617
10620
|
const ge = ce.some((fe) => fe.name === c);
|
|
10618
10621
|
h(ge ? c : ce[0]?.name ?? null);
|
|
10619
|
-
},
|
|
10622
|
+
}, S = (A) => {
|
|
10620
10623
|
p(A);
|
|
10621
10624
|
const E = I.find(
|
|
10622
10625
|
(z) => z.services.some((B) => B.id === A.id)
|
|
@@ -10711,7 +10714,7 @@ const Js = Et.Components.components.field, xm = ({ component: o, current: s, onC
|
|
|
10711
10714
|
return /* @__PURE__ */ m.jsx(
|
|
10712
10715
|
"button",
|
|
10713
10716
|
{
|
|
10714
|
-
onClick: () =>
|
|
10717
|
+
onClick: () => S(A),
|
|
10715
10718
|
className: `service-card mb-4 p-4 rounded border cursor-pointer transition text-start w-100 ${E ? "border-primary border-2 bg-light" : "border-light border-1 bg-white"}`,
|
|
10716
10719
|
style: { cursor: "pointer" },
|
|
10717
10720
|
tabIndex: "0",
|