@konnectio/core 4.7.18 → 4.8.1
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/{ActionField-L0Lr7Cq5.js → ActionField-nQffsZA2.js} +5 -5
- package/dist/ActionField-nQffsZA2.js.br +0 -0
- package/dist/ActionField-nQffsZA2.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-CSQUAVcs.js → AvailabilitySkeleton-AmgXdz28.js} +1737 -1580
- package/dist/AvailabilitySkeleton-AmgXdz28.js.br +0 -0
- package/dist/AvailabilitySkeleton-AmgXdz28.js.gz +0 -0
- package/dist/CheckoutWindow-D8IPM2hs.js +1786 -0
- package/dist/CheckoutWindow-D8IPM2hs.js.br +0 -0
- package/dist/CheckoutWindow-D8IPM2hs.js.gz +0 -0
- package/dist/{ErrorMessage-BZqsLh26.js → ErrorMessage-DJAdBPXD.js} +2 -2
- package/dist/ErrorMessage-DJAdBPXD.js.br +0 -0
- package/dist/ErrorMessage-DJAdBPXD.js.gz +0 -0
- package/dist/{EventAvailabilityForm-Cuxc0RuT.js → EventAvailabilityForm-Bspi3PTG.js} +13 -12
- package/dist/EventAvailabilityForm-Bspi3PTG.js.br +0 -0
- package/dist/EventAvailabilityForm-Bspi3PTG.js.gz +0 -0
- package/dist/{Field-AlAFHkiH.js → Field-BbzATkQp.js} +2 -2
- package/dist/Field-BbzATkQp.js.br +0 -0
- package/dist/Field-BbzATkQp.js.gz +4 -0
- package/dist/{HotelAvailabilityForm-C3iHHzNH.js → HotelAvailabilityForm-DcNJrBEP.js} +15 -14
- package/dist/HotelAvailabilityForm-DcNJrBEP.js.br +0 -0
- package/dist/HotelAvailabilityForm-DcNJrBEP.js.gz +0 -0
- package/dist/{SelectField-hZSfVqht.js → SelectField-DRafB_Cb.js} +2980 -2852
- package/dist/SelectField-DRafB_Cb.js.br +0 -0
- package/dist/SelectField-DRafB_Cb.js.gz +0 -0
- package/dist/{TermsOfService-CSImjp8p.js → TermsOfService-BJaXGVwJ.js} +3 -3
- package/dist/TermsOfService-BJaXGVwJ.js.br +0 -0
- package/dist/TermsOfService-BJaXGVwJ.js.gz +0 -0
- package/dist/{_-ceQWaE_o.js → _-P_tgh1jk.js} +3 -3
- package/dist/_-P_tgh1jk.js.br +0 -0
- package/dist/_-P_tgh1jk.js.gz +3 -0
- package/dist/availability.js +8 -8
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +12 -12
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/dist-BHP07uuH.js +3631 -0
- package/dist/dist-BHP07uuH.js.br +0 -0
- package/dist/dist-BHP07uuH.js.gz +0 -0
- package/dist/{dist-DEZcjiNm.js → dist-D4EW1Jz1.js} +82 -69
- package/dist/dist-D4EW1Jz1.js.br +0 -0
- package/dist/dist-D4EW1Jz1.js.gz +0 -0
- package/dist/event.js +270 -234
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +10 -10
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +123 -99
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-CoefzLvK.js → giftCard-Db5RQgXn.js} +23 -13
- package/dist/giftCard-Db5RQgXn.js.br +0 -0
- package/dist/giftCard-Db5RQgXn.js.gz +0 -0
- package/dist/hotel.js +1196 -1130
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-DwFTw_rF.js → i18n-BF6zkld-.js} +3397 -3461
- package/dist/i18n-BF6zkld-.js.br +0 -0
- package/dist/i18n-BF6zkld-.js.gz +0 -0
- package/dist/polyfill.js +1906 -1641
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.gz +5 -0
- package/dist/{style-DRBxevpd.js → style-CLohB3MA.js} +8 -6
- package/dist/style-CLohB3MA.js.br +0 -0
- package/dist/style-CLohB3MA.js.gz +0 -0
- package/dist-wix/availability.js +42 -36
- package/dist-wix/event.js +34 -27
- package/dist-wix/gift-card-validation.js +33 -33
- package/dist-wix/gift-card.js +42 -35
- package/dist-wix/hotel.js +34 -27
- package/package.json +25 -23
- package/dist/ActionField-L0Lr7Cq5.js.br +0 -0
- package/dist/ActionField-L0Lr7Cq5.js.gz +0 -0
- package/dist/AvailabilitySkeleton-CSQUAVcs.js.br +0 -0
- package/dist/AvailabilitySkeleton-CSQUAVcs.js.gz +0 -0
- package/dist/CheckoutWindow-CjVK26L8.js +0 -718
- package/dist/CheckoutWindow-CjVK26L8.js.br +0 -0
- package/dist/CheckoutWindow-CjVK26L8.js.gz +0 -0
- package/dist/ErrorMessage-BZqsLh26.js.br +0 -0
- package/dist/ErrorMessage-BZqsLh26.js.gz +0 -0
- package/dist/EventAvailabilityForm-Cuxc0RuT.js.br +0 -0
- package/dist/EventAvailabilityForm-Cuxc0RuT.js.gz +0 -0
- package/dist/Field-AlAFHkiH.js.br +0 -0
- package/dist/Field-AlAFHkiH.js.gz +0 -0
- package/dist/HotelAvailabilityForm-C3iHHzNH.js.br +0 -0
- package/dist/HotelAvailabilityForm-C3iHHzNH.js.gz +0 -0
- package/dist/SelectField-hZSfVqht.js.br +0 -0
- package/dist/SelectField-hZSfVqht.js.gz +0 -0
- package/dist/TermsOfService-CSImjp8p.js.br +0 -0
- package/dist/TermsOfService-CSImjp8p.js.gz +0 -3
- package/dist/_-ceQWaE_o.js.br +0 -0
- package/dist/_-ceQWaE_o.js.gz +0 -5
- package/dist/dist-DEZcjiNm.js.br +0 -0
- package/dist/dist-DEZcjiNm.js.gz +0 -0
- package/dist/dist-DtPUJ4bx.js +0 -1338
- package/dist/dist-DtPUJ4bx.js.br +0 -0
- package/dist/dist-DtPUJ4bx.js.gz +0 -0
- package/dist/giftCard-CoefzLvK.js.br +0 -0
- package/dist/giftCard-CoefzLvK.js.gz +0 -0
- package/dist/i18n-DwFTw_rF.js.br +0 -0
- package/dist/i18n-DwFTw_rF.js.gz +0 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js.br +0 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js.gz +0 -2
- package/dist/style-DRBxevpd.js.br +0 -0
- package/dist/style-DRBxevpd.js.gz +0 -0
|
@@ -0,0 +1,1786 @@
|
|
|
1
|
+
import { $ as e, A as t, B as n, D as r, E as i, Et as a, H as o, J as s, K as c, N as l, O as u, Ot as d, S as f, St as p, T as m, Tt as h, U as ee, V as g, _, _t as v, a as y, ct as b, dt as x, et as S, g as C, j as w, k as T, kt as E, l as te, ot as ne, u as re, ut as D, w as O, yt as k } from "./i18n-BF6zkld-.js";
|
|
2
|
+
import { E as ie, L as ae, P as oe, S as A, Y as se, _ as ce, j as le, lt as ue, n as de, v as fe, x as pe, y as me } from "./SelectField-DRafB_Cb.js";
|
|
3
|
+
//#region node_modules/axios/index.js
|
|
4
|
+
var { Axios: he, AxiosError: ge, CanceledError: _e, isCancel: ve, CancelToken: ye, VERSION: be, all: xe, Cancel: Se, isAxiosError: Ce, spread: we, toFormData: Te, AxiosHeaders: Ee, HttpStatusCode: De, formToJSON: Oe, getAdapter: ke, mergeConfig: Ae, create: je } = oe;
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
|
|
7
|
+
function Me(e) {
|
|
8
|
+
if (typeof e != "object" || !e) return !1;
|
|
9
|
+
if (Object.getPrototypeOf(e) === null) return !0;
|
|
10
|
+
if (Object.prototype.toString.call(e) !== "[object Object]") {
|
|
11
|
+
let t = e[Symbol.toStringTag];
|
|
12
|
+
return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
|
|
13
|
+
}
|
|
14
|
+
let t = e;
|
|
15
|
+
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
16
|
+
return Object.getPrototypeOf(e) === t;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
|
|
20
|
+
function Ne(e, t) {
|
|
21
|
+
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region node_modules/es-toolkit/dist/function/noop.mjs
|
|
25
|
+
function Pe() {}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
28
|
+
function j(e) {
|
|
29
|
+
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
33
|
+
function M(e) {
|
|
34
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
38
|
+
var Fe = "[object RegExp]", Ie = "[object String]", Le = "[object Number]", Re = "[object Boolean]", ze = "[object Arguments]", Be = "[object Symbol]", Ve = "[object Date]", He = "[object Map]", Ue = "[object Set]", We = "[object Array]", Ge = "[object Function]", Ke = "[object ArrayBuffer]", qe = "[object Object]", Je = "[object Error]", Ye = "[object DataView]", Xe = "[object Uint8Array]", Ze = "[object Uint8ClampedArray]", Qe = "[object Uint16Array]", $e = "[object Uint32Array]", et = "[object BigUint64Array]", tt = "[object Int8Array]", nt = "[object Int16Array]", rt = "[object Int32Array]", it = "[object BigInt64Array]", at = "[object Float32Array]", ot = "[object Float64Array]", st = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
|
|
39
|
+
return this;
|
|
40
|
+
})();
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
43
|
+
function N(e) {
|
|
44
|
+
return st.Buffer !== void 0 && st.Buffer.isBuffer(e);
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
48
|
+
function ct(e) {
|
|
49
|
+
if (!e || typeof e != "object") return !1;
|
|
50
|
+
let t = Object.getPrototypeOf(e);
|
|
51
|
+
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null ? !1 : Object.prototype.toString.call(e) === "[object Object]";
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
55
|
+
function lt(e, t, n) {
|
|
56
|
+
return P(e, t, void 0, void 0, void 0, void 0, n);
|
|
57
|
+
}
|
|
58
|
+
function P(e, t, n, r, i, a, o) {
|
|
59
|
+
let s = o(e, t, n, r, i, a);
|
|
60
|
+
if (s !== void 0) return s;
|
|
61
|
+
if (typeof e == typeof t) switch (typeof e) {
|
|
62
|
+
case "bigint":
|
|
63
|
+
case "string":
|
|
64
|
+
case "boolean":
|
|
65
|
+
case "symbol":
|
|
66
|
+
case "undefined": return e === t;
|
|
67
|
+
case "number": return e === t || Object.is(e, t);
|
|
68
|
+
case "function": return e === t;
|
|
69
|
+
case "object": return F(e, t, a, o);
|
|
70
|
+
}
|
|
71
|
+
return F(e, t, a, o);
|
|
72
|
+
}
|
|
73
|
+
function F(e, t, n, r) {
|
|
74
|
+
if (Object.is(e, t)) return !0;
|
|
75
|
+
let i = M(e), a = M(t);
|
|
76
|
+
if (i === "[object Arguments]" && (i = qe), a === "[object Arguments]" && (a = qe), i !== a) return !1;
|
|
77
|
+
switch (i) {
|
|
78
|
+
case Ie: return e.toString() === t.toString();
|
|
79
|
+
case Le: return Ne(e.valueOf(), t.valueOf());
|
|
80
|
+
case Re:
|
|
81
|
+
case Ve:
|
|
82
|
+
case Be: return Object.is(e.valueOf(), t.valueOf());
|
|
83
|
+
case Fe: return e.source === t.source && e.flags === t.flags;
|
|
84
|
+
case Ge: return e === t;
|
|
85
|
+
}
|
|
86
|
+
n ??= /* @__PURE__ */ new Map();
|
|
87
|
+
let o = n.get(e), s = n.get(t);
|
|
88
|
+
if (o != null && s != null) return o === t;
|
|
89
|
+
n.set(e, t), n.set(t, e);
|
|
90
|
+
try {
|
|
91
|
+
switch (i) {
|
|
92
|
+
case He:
|
|
93
|
+
if (e.size !== t.size) return !1;
|
|
94
|
+
for (let [i, a] of e.entries()) if (!t.has(i) || !P(a, t.get(i), i, e, t, n, r)) return !1;
|
|
95
|
+
return !0;
|
|
96
|
+
case Ue: {
|
|
97
|
+
if (e.size !== t.size) return !1;
|
|
98
|
+
let i = Array.from(e.values()), a = Array.from(t.values());
|
|
99
|
+
for (let o = 0; o < i.length; o++) {
|
|
100
|
+
let s = i[o], c = a.findIndex((i) => P(s, i, void 0, e, t, n, r));
|
|
101
|
+
if (c === -1) return !1;
|
|
102
|
+
a.splice(c, 1);
|
|
103
|
+
}
|
|
104
|
+
return !0;
|
|
105
|
+
}
|
|
106
|
+
case We:
|
|
107
|
+
case Xe:
|
|
108
|
+
case Ze:
|
|
109
|
+
case Qe:
|
|
110
|
+
case $e:
|
|
111
|
+
case et:
|
|
112
|
+
case tt:
|
|
113
|
+
case nt:
|
|
114
|
+
case rt:
|
|
115
|
+
case it:
|
|
116
|
+
case at:
|
|
117
|
+
case ot:
|
|
118
|
+
if (N(e) !== N(t) || e.length !== t.length) return !1;
|
|
119
|
+
for (let i = 0; i < e.length; i++) if (!P(e[i], t[i], i, e, t, n, r)) return !1;
|
|
120
|
+
return !0;
|
|
121
|
+
case Ke: return e.byteLength === t.byteLength && F(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
122
|
+
case Ye: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : F(new Uint8Array(e), new Uint8Array(t), n, r);
|
|
123
|
+
case Je: return e.name === t.name && e.message === t.message;
|
|
124
|
+
case qe: {
|
|
125
|
+
if (!(F(e.constructor, t.constructor, n, r) || ct(e) && ct(t))) return !1;
|
|
126
|
+
let i = [...Object.keys(e), ...j(e)], a = [...Object.keys(t), ...j(t)];
|
|
127
|
+
if (i.length !== a.length) return !1;
|
|
128
|
+
for (let a = 0; a < i.length; a++) {
|
|
129
|
+
let o = i[a], s = e[o];
|
|
130
|
+
if (!Object.hasOwn(t, o)) return !1;
|
|
131
|
+
let c = t[o];
|
|
132
|
+
if (!P(s, c, o, e, t, n, r)) return !1;
|
|
133
|
+
}
|
|
134
|
+
return !0;
|
|
135
|
+
}
|
|
136
|
+
default: return !1;
|
|
137
|
+
}
|
|
138
|
+
} finally {
|
|
139
|
+
n.delete(e), n.delete(t);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
144
|
+
function ut(e, t) {
|
|
145
|
+
return lt(e, t, Pe);
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
149
|
+
function dt(e) {
|
|
150
|
+
return Number.isSafeInteger(e) && e >= 0;
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
|
|
154
|
+
function ft(e) {
|
|
155
|
+
return e != null && typeof e != "function" && dt(e.length);
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
|
|
159
|
+
function pt(e) {
|
|
160
|
+
if (e == null) return "";
|
|
161
|
+
if (typeof e == "string") return e;
|
|
162
|
+
if (Array.isArray(e)) return e.map(pt).join(",");
|
|
163
|
+
let t = String(e);
|
|
164
|
+
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
|
|
168
|
+
function mt(e) {
|
|
169
|
+
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
|
|
173
|
+
function ht(e) {
|
|
174
|
+
if (Array.isArray(e)) return e.map(mt);
|
|
175
|
+
if (typeof e == "symbol") return [e];
|
|
176
|
+
e = pt(e);
|
|
177
|
+
let t = [], n = e.length;
|
|
178
|
+
if (n === 0) return t;
|
|
179
|
+
let r = 0, i = "", a = "", o = !1;
|
|
180
|
+
for (e.charCodeAt(0) === 46 && t.push(""); r < n;) {
|
|
181
|
+
let s = e[r];
|
|
182
|
+
if (a) s === "\\" && r + 1 < n ? (r++, i += e[r]) : s === a ? a = "" : i += s;
|
|
183
|
+
else if (o) s === "\"" || s === "'" ? a = s : s === "]" ? (o = !1, t.push(i), i = "") : i += s;
|
|
184
|
+
else if (s === "[") o = !0, i &&= (t.push(i), "");
|
|
185
|
+
else if (s === ".") {
|
|
186
|
+
i &&= (t.push(i), "");
|
|
187
|
+
let n = e[r + 1];
|
|
188
|
+
(n === void 0 || n === ".") && t.push("");
|
|
189
|
+
} else i += s;
|
|
190
|
+
r++;
|
|
191
|
+
}
|
|
192
|
+
return i && t.push(i), t;
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
196
|
+
function I(e) {
|
|
197
|
+
return e === "__proto__";
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
|
|
201
|
+
var gt = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
|
|
202
|
+
function _t(e) {
|
|
203
|
+
switch (typeof e) {
|
|
204
|
+
case "number":
|
|
205
|
+
case "symbol": return !1;
|
|
206
|
+
case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : gt.test(e);
|
|
207
|
+
default: return !1;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
|
|
212
|
+
function L(e, t, n) {
|
|
213
|
+
if (e == null) return n;
|
|
214
|
+
switch (typeof t) {
|
|
215
|
+
case "string": {
|
|
216
|
+
if (I(t)) return n;
|
|
217
|
+
let r = e[t];
|
|
218
|
+
return r === void 0 ? _t(t) && !Object.hasOwn(e, t) ? L(e, ht(t), n) : n : r;
|
|
219
|
+
}
|
|
220
|
+
case "number":
|
|
221
|
+
case "symbol": {
|
|
222
|
+
typeof t == "number" && (t = mt(t));
|
|
223
|
+
let r = e[t];
|
|
224
|
+
return r === void 0 ? n : r;
|
|
225
|
+
}
|
|
226
|
+
default: {
|
|
227
|
+
if (Array.isArray(t)) return vt(e, t, n);
|
|
228
|
+
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), I(t)) return n;
|
|
229
|
+
let r = e[t];
|
|
230
|
+
return r === void 0 ? n : r;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function vt(e, t, n) {
|
|
235
|
+
if (t.length === 0) return n;
|
|
236
|
+
let r = e;
|
|
237
|
+
for (let e = 0; e < t.length; e++) {
|
|
238
|
+
if (r == null || I(t[e])) return n;
|
|
239
|
+
r = r[t[e]];
|
|
240
|
+
}
|
|
241
|
+
return r === void 0 ? n : r;
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
245
|
+
function yt(e) {
|
|
246
|
+
return e !== null && (typeof e == "object" || typeof e == "function");
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
250
|
+
function bt(e) {
|
|
251
|
+
return e == null || typeof e != "object" && typeof e != "function";
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
255
|
+
function xt(e) {
|
|
256
|
+
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
|
|
260
|
+
function St(e, t) {
|
|
261
|
+
return R(e, void 0, e, /* @__PURE__ */ new Map(), t);
|
|
262
|
+
}
|
|
263
|
+
function R(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
|
|
264
|
+
let a = i?.(e, t, n, r);
|
|
265
|
+
if (a !== void 0) return a;
|
|
266
|
+
if (bt(e)) return e;
|
|
267
|
+
if (r.has(e)) return r.get(e);
|
|
268
|
+
if (Array.isArray(e)) {
|
|
269
|
+
let t = Array(e.length);
|
|
270
|
+
r.set(e, t);
|
|
271
|
+
for (let a = 0; a < e.length; a++) t[a] = R(e[a], a, n, r, i);
|
|
272
|
+
return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
|
|
273
|
+
}
|
|
274
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
275
|
+
if (e instanceof RegExp) {
|
|
276
|
+
let t = new RegExp(e.source, e.flags);
|
|
277
|
+
return t.lastIndex = e.lastIndex, t;
|
|
278
|
+
}
|
|
279
|
+
if (e instanceof Map) {
|
|
280
|
+
let t = /* @__PURE__ */ new Map();
|
|
281
|
+
r.set(e, t);
|
|
282
|
+
for (let [a, o] of e) t.set(a, R(o, a, n, r, i));
|
|
283
|
+
return t;
|
|
284
|
+
}
|
|
285
|
+
if (e instanceof Set) {
|
|
286
|
+
let t = /* @__PURE__ */ new Set();
|
|
287
|
+
r.set(e, t);
|
|
288
|
+
for (let a of e) t.add(R(a, void 0, n, r, i));
|
|
289
|
+
return t;
|
|
290
|
+
}
|
|
291
|
+
if (N(e)) return e.subarray();
|
|
292
|
+
if (xt(e)) {
|
|
293
|
+
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
294
|
+
r.set(e, t);
|
|
295
|
+
for (let a = 0; a < e.length; a++) t[a] = R(e[a], a, n, r, i);
|
|
296
|
+
return t;
|
|
297
|
+
}
|
|
298
|
+
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
299
|
+
if (e instanceof DataView) {
|
|
300
|
+
let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
301
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
302
|
+
}
|
|
303
|
+
if (typeof File < "u" && e instanceof File) {
|
|
304
|
+
let t = new File([e], e.name, { type: e.type });
|
|
305
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
306
|
+
}
|
|
307
|
+
if (typeof Blob < "u" && e instanceof Blob) {
|
|
308
|
+
let t = new Blob([e], { type: e.type });
|
|
309
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
310
|
+
}
|
|
311
|
+
if (e instanceof Error) {
|
|
312
|
+
let t = structuredClone(e);
|
|
313
|
+
return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, z(t, e, n, r, i), t;
|
|
314
|
+
}
|
|
315
|
+
if (e instanceof Boolean) {
|
|
316
|
+
let t = new Boolean(e.valueOf());
|
|
317
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
318
|
+
}
|
|
319
|
+
if (e instanceof Number) {
|
|
320
|
+
let t = new Number(e.valueOf());
|
|
321
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
322
|
+
}
|
|
323
|
+
if (e instanceof String) {
|
|
324
|
+
let t = new String(e.valueOf());
|
|
325
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
326
|
+
}
|
|
327
|
+
if (typeof e == "object" && Ct(e)) {
|
|
328
|
+
let t = Object.create(Object.getPrototypeOf(e));
|
|
329
|
+
return r.set(e, t), z(t, e, n, r, i), t;
|
|
330
|
+
}
|
|
331
|
+
return e;
|
|
332
|
+
}
|
|
333
|
+
function z(e, t, n = e, r, i) {
|
|
334
|
+
let a = [...Object.keys(t), ...j(t)];
|
|
335
|
+
for (let o = 0; o < a.length; o++) {
|
|
336
|
+
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
|
|
337
|
+
(c == null || c.writable) && (e[s] = R(t[s], s, n, r, i));
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
function Ct(e) {
|
|
341
|
+
switch (M(e)) {
|
|
342
|
+
case ze:
|
|
343
|
+
case We:
|
|
344
|
+
case Ke:
|
|
345
|
+
case Ye:
|
|
346
|
+
case Re:
|
|
347
|
+
case Ve:
|
|
348
|
+
case at:
|
|
349
|
+
case ot:
|
|
350
|
+
case tt:
|
|
351
|
+
case nt:
|
|
352
|
+
case rt:
|
|
353
|
+
case He:
|
|
354
|
+
case Le:
|
|
355
|
+
case qe:
|
|
356
|
+
case Fe:
|
|
357
|
+
case Ue:
|
|
358
|
+
case Ie:
|
|
359
|
+
case Be:
|
|
360
|
+
case Xe:
|
|
361
|
+
case Ze:
|
|
362
|
+
case Qe:
|
|
363
|
+
case $e: return !0;
|
|
364
|
+
default: return !1;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
|
|
369
|
+
function B(e) {
|
|
370
|
+
return R(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
|
|
371
|
+
}
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
|
|
374
|
+
function wt(e, t) {
|
|
375
|
+
return St(e, (n, r, i, a) => {
|
|
376
|
+
let o = t?.(n, r, i, a);
|
|
377
|
+
if (o !== void 0) return o;
|
|
378
|
+
if (typeof e == "object") {
|
|
379
|
+
if (M(e) === "[object Object]" && typeof e.constructor != "function") {
|
|
380
|
+
let t = {};
|
|
381
|
+
return a.set(e, t), z(t, e, i, a), t;
|
|
382
|
+
}
|
|
383
|
+
switch (Object.prototype.toString.call(e)) {
|
|
384
|
+
case Le:
|
|
385
|
+
case Ie:
|
|
386
|
+
case Re: {
|
|
387
|
+
let t = new e.constructor(e?.valueOf());
|
|
388
|
+
return z(t, e), t;
|
|
389
|
+
}
|
|
390
|
+
case ze: {
|
|
391
|
+
let t = {};
|
|
392
|
+
return z(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
|
|
393
|
+
}
|
|
394
|
+
default: return;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
|
|
401
|
+
function Tt(e) {
|
|
402
|
+
return wt(e);
|
|
403
|
+
}
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
|
|
406
|
+
function Et(e) {
|
|
407
|
+
return typeof e == "object" && !!e && M(e) === "[object Arguments]";
|
|
408
|
+
}
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
|
|
411
|
+
var Dt = /^(?:0|[1-9]\d*)$/;
|
|
412
|
+
function Ot(e, t = 2 ** 53 - 1) {
|
|
413
|
+
switch (typeof e) {
|
|
414
|
+
case "number": return Number.isInteger(e) && e >= 0 && e < t;
|
|
415
|
+
case "symbol": return !1;
|
|
416
|
+
case "string": return Dt.test(e);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
|
|
421
|
+
function kt(e) {
|
|
422
|
+
return typeof e == "object" && !!e;
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
|
|
426
|
+
function At(e) {
|
|
427
|
+
return kt(e) && ft(e);
|
|
428
|
+
}
|
|
429
|
+
//#endregion
|
|
430
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
|
|
431
|
+
function jt(e) {
|
|
432
|
+
return typeof e == "symbol" || e instanceof Symbol;
|
|
433
|
+
}
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/isKey.mjs
|
|
436
|
+
var Mt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Nt = /^\w*$/;
|
|
437
|
+
function Pt(e, t) {
|
|
438
|
+
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || jt(e) ? !0 : typeof e == "string" && (Nt.test(e) || !Mt.test(e)) || t != null && Object.hasOwn(t, e);
|
|
439
|
+
}
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
|
|
442
|
+
function Ft(e) {
|
|
443
|
+
return xt(e);
|
|
444
|
+
}
|
|
445
|
+
//#endregion
|
|
446
|
+
//#region node_modules/es-toolkit/dist/compat/_internal/assignValue.mjs
|
|
447
|
+
var It = (e, t, n) => {
|
|
448
|
+
let r = e[t];
|
|
449
|
+
(!(Object.hasOwn(e, t) && Ne(r, n)) || n === void 0 && !(t in e)) && (e[t] = n);
|
|
450
|
+
};
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region node_modules/es-toolkit/dist/compat/object/updateWith.mjs
|
|
453
|
+
function Lt(e, t, n, r) {
|
|
454
|
+
if (e == null && !yt(e)) return e;
|
|
455
|
+
let i;
|
|
456
|
+
i = Pt(t, e) ? [t] : Array.isArray(t) ? t : ht(t);
|
|
457
|
+
let a = n(L(e, i)), o = e;
|
|
458
|
+
for (let t = 0; t < i.length && o != null; t++) {
|
|
459
|
+
let n = mt(i[t]);
|
|
460
|
+
if (I(n)) continue;
|
|
461
|
+
let s;
|
|
462
|
+
if (t === i.length - 1) s = a;
|
|
463
|
+
else {
|
|
464
|
+
let a = o[n], c = r?.(a, n, e);
|
|
465
|
+
s = c === void 0 ? yt(a) ? a : Ot(i[t + 1]) ? [] : {} : c;
|
|
466
|
+
}
|
|
467
|
+
It(o, n, s), o = o[n];
|
|
468
|
+
}
|
|
469
|
+
return e;
|
|
470
|
+
}
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region node_modules/es-toolkit/dist/compat/object/set.mjs
|
|
473
|
+
function Rt(e, t, n) {
|
|
474
|
+
return Lt(e, t, () => n, () => void 0);
|
|
475
|
+
}
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region node_modules/es-toolkit/dist/function/debounce.mjs
|
|
478
|
+
function zt(e, t, { signal: n, edges: r } = {}) {
|
|
479
|
+
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
|
|
480
|
+
a !== null && (e.apply(i, a), i = void 0, a = null);
|
|
481
|
+
}, l = () => {
|
|
482
|
+
s && c(), p();
|
|
483
|
+
}, u = null, d = () => {
|
|
484
|
+
u != null && clearTimeout(u), u = setTimeout(() => {
|
|
485
|
+
u = null, l();
|
|
486
|
+
}, t);
|
|
487
|
+
}, f = () => {
|
|
488
|
+
u !== null && (clearTimeout(u), u = null);
|
|
489
|
+
}, p = () => {
|
|
490
|
+
f(), i = void 0, a = null;
|
|
491
|
+
}, m = () => {
|
|
492
|
+
c();
|
|
493
|
+
}, h = function(...e) {
|
|
494
|
+
if (n?.aborted) return;
|
|
495
|
+
i = this, a = e;
|
|
496
|
+
let t = u == null;
|
|
497
|
+
d(), o && t && c();
|
|
498
|
+
};
|
|
499
|
+
return h.schedule = d, h.cancel = p, h.flush = m, n?.addEventListener("abort", p, { once: !0 }), h;
|
|
500
|
+
}
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
|
|
503
|
+
function Bt(e, t = 0, n = {}) {
|
|
504
|
+
typeof n != "object" && (n = {});
|
|
505
|
+
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
|
|
506
|
+
r && (o[0] = "leading"), i && (o[1] = "trailing");
|
|
507
|
+
let s, c = null, l = zt(function(...t) {
|
|
508
|
+
s = e.apply(this, t), c = null;
|
|
509
|
+
}, t, { edges: o }), u = function(...t) {
|
|
510
|
+
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? (s = e.apply(this, t), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
|
|
511
|
+
};
|
|
512
|
+
return u.cancel = l.cancel, u.flush = () => (l.flush(), s), u;
|
|
513
|
+
}
|
|
514
|
+
//#endregion
|
|
515
|
+
//#region node_modules/es-toolkit/dist/object/clone.mjs
|
|
516
|
+
function Vt(e) {
|
|
517
|
+
if (bt(e)) return e;
|
|
518
|
+
if (Array.isArray(e) || xt(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
519
|
+
let t = Object.getPrototypeOf(e);
|
|
520
|
+
if (t == null) return Object.assign(Object.create(t), e);
|
|
521
|
+
let n = t.constructor;
|
|
522
|
+
if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
|
|
523
|
+
if (e instanceof RegExp) {
|
|
524
|
+
let t = new n(e);
|
|
525
|
+
return t.lastIndex = e.lastIndex, t;
|
|
526
|
+
}
|
|
527
|
+
if (e instanceof DataView) return new n(e.buffer.slice(0));
|
|
528
|
+
if (e instanceof Error) {
|
|
529
|
+
let t;
|
|
530
|
+
return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
|
|
531
|
+
}
|
|
532
|
+
return typeof File < "u" && e instanceof File ? new n([e], e.name, {
|
|
533
|
+
type: e.type,
|
|
534
|
+
lastModified: e.lastModified
|
|
535
|
+
}) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
|
|
539
|
+
function Ht(e, ...t) {
|
|
540
|
+
let n = t.slice(0, -1), r = t[t.length - 1], i = e;
|
|
541
|
+
for (let e = 0; e < n.length; e++) {
|
|
542
|
+
let t = n[e];
|
|
543
|
+
i = Ut(i, t, r, /* @__PURE__ */ new Map());
|
|
544
|
+
}
|
|
545
|
+
return i;
|
|
546
|
+
}
|
|
547
|
+
function Ut(e, t, n, r) {
|
|
548
|
+
if (bt(e) && (e = Object(e)), typeof t != "object" || !t) return e;
|
|
549
|
+
if (r.has(t)) return Vt(r.get(t));
|
|
550
|
+
if (r.set(t, e), Array.isArray(t)) {
|
|
551
|
+
t = t.slice();
|
|
552
|
+
for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
|
|
553
|
+
}
|
|
554
|
+
let i = [...Object.keys(t), ...j(t)];
|
|
555
|
+
for (let a = 0; a < i.length; a++) {
|
|
556
|
+
let o = i[a];
|
|
557
|
+
if (I(o)) continue;
|
|
558
|
+
let s = t[o], c = e[o];
|
|
559
|
+
if (Et(s) && (s = { ...s }), Et(c) && (c = { ...c }), N(s) && (s = Tt(s)), Array.isArray(s)) {
|
|
560
|
+
if (Array.isArray(c)) {
|
|
561
|
+
let e = [], t = Reflect.ownKeys(c);
|
|
562
|
+
for (let n = 0; n < t.length; n++) {
|
|
563
|
+
let r = t[n];
|
|
564
|
+
e[r] = c[r];
|
|
565
|
+
}
|
|
566
|
+
c = e;
|
|
567
|
+
} else if (At(c)) {
|
|
568
|
+
let e = [];
|
|
569
|
+
for (let t = 0; t < c.length; t++) e[t] = c[t];
|
|
570
|
+
c = e;
|
|
571
|
+
} else c = [];
|
|
572
|
+
}
|
|
573
|
+
let l = n(c, s, o, e, t, r);
|
|
574
|
+
l === void 0 ? Array.isArray(s) || kt(c) && kt(s) && (Me(c) || Me(s) || Ft(c) || Ft(s)) ? e[o] = Ut(c, s, n, r) : c == null && Me(s) ? e[o] = Ut({}, s, n, r) : c == null && Ft(s) ? e[o] = Tt(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
|
|
575
|
+
}
|
|
576
|
+
return e;
|
|
577
|
+
}
|
|
578
|
+
//#endregion
|
|
579
|
+
//#region node_modules/es-toolkit/dist/compat/object/merge.mjs
|
|
580
|
+
function V(e, ...t) {
|
|
581
|
+
return Ht(e, ...t, Pe);
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region node_modules/laravel-precognition/dist/form.js
|
|
585
|
+
var Wt = (e) => typeof File < "u" && e instanceof File || e instanceof Blob || typeof FileList < "u" && e instanceof FileList && e.length > 0, H = (e) => e instanceof FormData || Wt(e) || typeof e == "object" && !!e && Object.values(e).some((e) => H(e)), U = class extends Error {
|
|
586
|
+
response;
|
|
587
|
+
constructor(e) {
|
|
588
|
+
super(`HTTP error ${e.status}`), this.name = "HttpResponseError", this.response = e;
|
|
589
|
+
}
|
|
590
|
+
}, Gt = class extends Error {
|
|
591
|
+
constructor(e = "Request was cancelled") {
|
|
592
|
+
super(e), this.name = "HttpCancelledError";
|
|
593
|
+
}
|
|
594
|
+
}, Kt = class extends Error {
|
|
595
|
+
constructor(e = "Network error") {
|
|
596
|
+
super(e), this.name = "HttpNetworkError";
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
//#endregion
|
|
600
|
+
//#region node_modules/laravel-precognition/dist/http/url.js
|
|
601
|
+
function qt(e) {
|
|
602
|
+
let t = new URLSearchParams();
|
|
603
|
+
return Object.entries(e).forEach(([e, n]) => {
|
|
604
|
+
n != null && (Array.isArray(n) ? n.forEach((n) => t.append(`${e}[]`, String(n))) : typeof n == "object" ? t.append(e, JSON.stringify(n)) : t.append(e, String(n)));
|
|
605
|
+
}), t.toString();
|
|
606
|
+
}
|
|
607
|
+
function Jt(e, t, n) {
|
|
608
|
+
if (t && !e.startsWith("http://") && !e.startsWith("https://") && (e = t.replace(/\/$/, "") + "/" + e.replace(/^\//, "")), n && Object.keys(n).length > 0) {
|
|
609
|
+
let t = qt(n);
|
|
610
|
+
t && (e += (e.includes("?") ? "&" : "?") + t);
|
|
611
|
+
}
|
|
612
|
+
return e;
|
|
613
|
+
}
|
|
614
|
+
//#endregion
|
|
615
|
+
//#region node_modules/laravel-precognition/dist/http/fetchClient.js
|
|
616
|
+
function Yt() {
|
|
617
|
+
return typeof window > "u" ? null : window.axios?.defaults?.headers?.common?.["X-Requested-With"] ?? null;
|
|
618
|
+
}
|
|
619
|
+
function Xt(e, t = new FormData(), n = null) {
|
|
620
|
+
for (let r in e) Object.prototype.hasOwnProperty.call(e, r) && Zt(t, n ? `${n}[${r}]` : r, e[r]);
|
|
621
|
+
return t;
|
|
622
|
+
}
|
|
623
|
+
function Zt(e, t, n) {
|
|
624
|
+
if (Array.isArray(n)) return n.forEach((n, r) => Zt(e, `${t}[${r}]`, n));
|
|
625
|
+
if (n instanceof Date) return e.append(t, n.toISOString());
|
|
626
|
+
if (typeof File < "u" && n instanceof File) return e.append(t, n, n.name);
|
|
627
|
+
if (n instanceof Blob) return e.append(t, n);
|
|
628
|
+
if (typeof n == "boolean") return e.append(t, n ? "1" : "0");
|
|
629
|
+
if (typeof n == "string") return e.append(t, n);
|
|
630
|
+
if (typeof n == "number") return e.append(t, `${n}`);
|
|
631
|
+
if (n == null) return e.append(t, "");
|
|
632
|
+
Xt(n, e, t);
|
|
633
|
+
}
|
|
634
|
+
function Qt(e, t) {
|
|
635
|
+
if (e != null) return e instanceof FormData ? e : typeof e == "object" && H(e) ? Xt(e) : typeof e == "object" || t["Content-Type"]?.includes("application/json") ? JSON.stringify(e) : String(e);
|
|
636
|
+
}
|
|
637
|
+
function $t(e) {
|
|
638
|
+
let t = {};
|
|
639
|
+
return e.forEach((e, n) => {
|
|
640
|
+
t[n.toLowerCase()] = e;
|
|
641
|
+
}), t;
|
|
642
|
+
}
|
|
643
|
+
function en(e = {}) {
|
|
644
|
+
let t = e.xsrfCookieName ?? "XSRF-TOKEN", n = e.xsrfHeaderName ?? "X-XSRF-TOKEN";
|
|
645
|
+
function r() {
|
|
646
|
+
if (typeof document > "u") return null;
|
|
647
|
+
let e = document.cookie.match(RegExp("(^|;\\s*)" + t + "=([^;]*)"));
|
|
648
|
+
return e ? decodeURIComponent(e[2]) : null;
|
|
649
|
+
}
|
|
650
|
+
return {
|
|
651
|
+
setXsrfCookieName(e) {
|
|
652
|
+
t = e;
|
|
653
|
+
},
|
|
654
|
+
setXsrfHeaderName(e) {
|
|
655
|
+
n = e;
|
|
656
|
+
},
|
|
657
|
+
async request(e) {
|
|
658
|
+
let t = Jt(e.url, e.baseURL, e.params), i = e.method.toUpperCase(), a = {}, o = Yt();
|
|
659
|
+
o && (a["X-Requested-With"] = o), e.data !== void 0 && !["GET", "DELETE"].includes(i) && !(e.data instanceof FormData) && !H(e.data) && (a["Content-Type"] = "application/json"), e.headers && Object.entries(e.headers).forEach(([e, t]) => {
|
|
660
|
+
t !== void 0 && (a[e] = String(t));
|
|
661
|
+
});
|
|
662
|
+
let s = r();
|
|
663
|
+
s && ![
|
|
664
|
+
"GET",
|
|
665
|
+
"HEAD",
|
|
666
|
+
"OPTIONS"
|
|
667
|
+
].includes(i) && (a[n] = s);
|
|
668
|
+
let c = e.signal, l, u = e.timeout ?? 3e4;
|
|
669
|
+
if (u > 0 && !c) {
|
|
670
|
+
let e = new AbortController();
|
|
671
|
+
c = e.signal, l = setTimeout(() => e.abort(), u);
|
|
672
|
+
}
|
|
673
|
+
let d = ["GET", "DELETE"].includes(i) ? void 0 : Qt(e.data, a);
|
|
674
|
+
d instanceof FormData && delete a["Content-Type"];
|
|
675
|
+
try {
|
|
676
|
+
let n = await fetch(t, {
|
|
677
|
+
method: i,
|
|
678
|
+
headers: a,
|
|
679
|
+
body: d,
|
|
680
|
+
signal: c,
|
|
681
|
+
credentials: e.credentials ?? "same-origin"
|
|
682
|
+
});
|
|
683
|
+
l && clearTimeout(l);
|
|
684
|
+
let r;
|
|
685
|
+
r = n.headers.get("content-type")?.includes("application/json") ? await n.json() : await n.text();
|
|
686
|
+
let o = {
|
|
687
|
+
status: n.status,
|
|
688
|
+
data: r,
|
|
689
|
+
headers: $t(n.headers)
|
|
690
|
+
};
|
|
691
|
+
if (!n.ok) throw new U(o);
|
|
692
|
+
return o;
|
|
693
|
+
} catch (e) {
|
|
694
|
+
throw l && clearTimeout(l), e instanceof U ? e : e instanceof DOMException && e.name === "AbortError" ? new Gt() : e instanceof TypeError ? new Kt(e.message) : e;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
var tn = en(), nn = tn, rn = void 0, an = void 0, on = "same-origin", sn = (e) => `${e.method}:${e.baseURL ?? rn ?? ""}${e.url}`, cn = (e) => e.status === 204 && e.headers["precognition-success"] === "true", W = {}, G = {
|
|
700
|
+
get: (e, t = {}, n = {}) => q(K("get", e, t, n)),
|
|
701
|
+
post: (e, t = {}, n = {}) => q(K("post", e, t, n)),
|
|
702
|
+
patch: (e, t = {}, n = {}) => q(K("patch", e, t, n)),
|
|
703
|
+
put: (e, t = {}, n = {}) => q(K("put", e, t, n)),
|
|
704
|
+
delete: (e, t = {}, n = {}) => q(K("delete", e, t, n)),
|
|
705
|
+
useHttpClient(e) {
|
|
706
|
+
return nn = e, G;
|
|
707
|
+
},
|
|
708
|
+
withBaseURL(e) {
|
|
709
|
+
return rn = e, G;
|
|
710
|
+
},
|
|
711
|
+
withTimeout(e) {
|
|
712
|
+
return an = e, G;
|
|
713
|
+
},
|
|
714
|
+
withCredentials(e) {
|
|
715
|
+
return on = typeof e == "string" ? e : e ? "include" : "omit", G;
|
|
716
|
+
},
|
|
717
|
+
fingerprintRequestsUsing(e) {
|
|
718
|
+
return sn = e === null ? () => null : e, G;
|
|
719
|
+
},
|
|
720
|
+
determineSuccessUsing(e) {
|
|
721
|
+
return cn = e, G;
|
|
722
|
+
},
|
|
723
|
+
withXsrfCookieName(e) {
|
|
724
|
+
return tn.setXsrfCookieName(e), G;
|
|
725
|
+
},
|
|
726
|
+
withXsrfHeaderName(e) {
|
|
727
|
+
return tn.setXsrfHeaderName(e), G;
|
|
728
|
+
}
|
|
729
|
+
}, K = (e, t, n, r) => ({
|
|
730
|
+
url: t,
|
|
731
|
+
method: e,
|
|
732
|
+
...r,
|
|
733
|
+
...["get", "delete"].includes(e) ? { params: V({}, n, r?.params) } : { data: V({}, n, r?.data) }
|
|
734
|
+
}), q = (e = {}) => {
|
|
735
|
+
let t = [
|
|
736
|
+
ln,
|
|
737
|
+
dn,
|
|
738
|
+
fn
|
|
739
|
+
].reduce((e, t) => t(e), e);
|
|
740
|
+
return (t.onBefore ?? (() => !0))() === !1 ? Promise.resolve(null) : ((t.onStart ?? (() => null))(), nn.request({
|
|
741
|
+
method: t.method,
|
|
742
|
+
url: t.url,
|
|
743
|
+
baseURL: t.baseURL ?? rn,
|
|
744
|
+
data: t.data,
|
|
745
|
+
params: t.params,
|
|
746
|
+
headers: t.headers,
|
|
747
|
+
signal: t.signal,
|
|
748
|
+
timeout: t.timeout,
|
|
749
|
+
credentials: on
|
|
750
|
+
}).then(async (e) => {
|
|
751
|
+
t.precognitive && pn(e);
|
|
752
|
+
let n = e.status, r = e;
|
|
753
|
+
return t.precognitive && t.onPrecognitionSuccess && cn(e) && (r = await Promise.resolve(t.onPrecognitionSuccess(e) ?? r)), t.onSuccess && un(n) && (r = await Promise.resolve(t.onSuccess(r) ?? r)), (hn(t, n) ?? ((e) => e))(r) ?? r;
|
|
754
|
+
}, (e) => {
|
|
755
|
+
if (mn(e)) return Promise.reject(e);
|
|
756
|
+
let n = e;
|
|
757
|
+
return t.precognitive && pn(n.response), (hn(t, n.response.status) ?? ((e, t) => Promise.reject(t)))(n.response, n);
|
|
758
|
+
}).finally(t.onFinish ?? (() => null)));
|
|
759
|
+
}, ln = (e) => {
|
|
760
|
+
let t = e.only ?? e.validate;
|
|
761
|
+
return {
|
|
762
|
+
...e,
|
|
763
|
+
timeout: e.timeout ?? an,
|
|
764
|
+
precognitive: e.precognitive !== !1,
|
|
765
|
+
fingerprint: e.fingerprint === void 0 ? sn(e, nn) : e.fingerprint,
|
|
766
|
+
headers: {
|
|
767
|
+
...e.headers,
|
|
768
|
+
Accept: "application/json",
|
|
769
|
+
"Content-Type": gn(e),
|
|
770
|
+
...e.precognitive === !1 ? {} : { Precognition: !0 },
|
|
771
|
+
...t ? { "Precognition-Validate-Only": Array.from(t).join() } : {}
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
}, un = (e) => e >= 200 && e < 300, dn = (e) => typeof e.fingerprint == "string" ? (W[e.fingerprint]?.abort(), delete W[e.fingerprint], e) : e, fn = (e) => typeof e.fingerprint != "string" || e.signal || !e.precognitive ? e : (W[e.fingerprint] = new AbortController(), {
|
|
775
|
+
...e,
|
|
776
|
+
signal: W[e.fingerprint].signal
|
|
777
|
+
}), pn = (e) => {
|
|
778
|
+
if (e.headers?.precognition !== "true") throw Error("Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.");
|
|
779
|
+
}, mn = (e) => !(e instanceof U) || typeof e.response?.status != "number", hn = (e, t) => ({
|
|
780
|
+
401: e.onUnauthorized,
|
|
781
|
+
403: e.onForbidden,
|
|
782
|
+
404: e.onNotFound,
|
|
783
|
+
409: e.onConflict,
|
|
784
|
+
422: e.onValidationError,
|
|
785
|
+
423: e.onLocked
|
|
786
|
+
})[t], gn = (e) => e.headers?.["Content-Type"] ?? e.headers?.["Content-type"] ?? e.headers?.["content-type"] ?? (H(e.data) ? "multipart/form-data" : "application/json"), _n = (e) => typeof e == "string" ? e : e(), vn = (e) => typeof e == "string" ? e.toLowerCase() : e(), yn = (e, t) => {
|
|
787
|
+
if (!e.includes("*")) return [e];
|
|
788
|
+
let n = e.split("."), r = [""];
|
|
789
|
+
for (let e of n) if (e === "*") {
|
|
790
|
+
let e = [];
|
|
791
|
+
for (let n of r) {
|
|
792
|
+
let r = n ? L(t, n) : t;
|
|
793
|
+
if (Array.isArray(r)) for (let t = 0; t < r.length; t++) e.push(n ? `${n}.${t}` : String(t));
|
|
794
|
+
else if (typeof r == "object" && r) for (let t of Object.keys(r)) e.push(n ? `${n}.${t}` : t);
|
|
795
|
+
}
|
|
796
|
+
r = e;
|
|
797
|
+
} else r = r.map((t) => t ? `${t}.${e}` : e);
|
|
798
|
+
return r;
|
|
799
|
+
}, bn = (e, t) => t.includes("*") ? RegExp("^" + t.replace(/\./g, "\\.").replace(/\*/g, "[^.]+") + "$").test(e) : e === t, xn = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.some((t) => bn(e, t)))), Sn = (e, t = {}) => {
|
|
800
|
+
let n = {
|
|
801
|
+
errorsChanged: [],
|
|
802
|
+
touchedChanged: [],
|
|
803
|
+
validatingChanged: [],
|
|
804
|
+
validatedChanged: []
|
|
805
|
+
}, r = !1, i = !1, a = (e) => e === i ? [] : (i = e, n.validatingChanged), o = [], s = (e) => {
|
|
806
|
+
let t = [...new Set(e)];
|
|
807
|
+
return o.length !== t.length || !t.every((e) => o.includes(e)) ? (o = t, n.validatedChanged) : [];
|
|
808
|
+
}, c = () => o.filter((e) => d[e] === void 0), l = [], u = (e) => {
|
|
809
|
+
let t = [...new Set(e)];
|
|
810
|
+
return l.length !== t.length || !t.every((e) => l.includes(e)) ? (l = t, n.touchedChanged) : [];
|
|
811
|
+
}, d = {}, f = (e) => {
|
|
812
|
+
let t = wn(e);
|
|
813
|
+
return ut(d, t) ? [] : (d = t, n.errorsChanged);
|
|
814
|
+
}, p = (e) => {
|
|
815
|
+
let t = { ...d };
|
|
816
|
+
return delete t[J(e)], f(t);
|
|
817
|
+
}, m = () => Object.keys(d).length > 0, h = 1500, ee = (e) => {
|
|
818
|
+
h = e, x.cancel(), x = b();
|
|
819
|
+
}, g = t, _ = null, v = [], y = null, b = () => Bt((t) => {
|
|
820
|
+
e({
|
|
821
|
+
get: (e, n = {}, r = {}) => G.get(e, w(n), S(r, t, n)),
|
|
822
|
+
post: (e, n = {}, r = {}) => G.post(e, w(n), S(r, t, n)),
|
|
823
|
+
patch: (e, n = {}, r = {}) => G.patch(e, w(n), S(r, t, n)),
|
|
824
|
+
put: (e, n = {}, r = {}) => G.put(e, w(n), S(r, t, n)),
|
|
825
|
+
delete: (e, n = {}, r = {}) => G.delete(e, w(n), S(r, t, n))
|
|
826
|
+
}).catch((e) => e instanceof Gt || e instanceof U && e.response?.status === 422 ? null : Promise.reject(e));
|
|
827
|
+
}, h, {
|
|
828
|
+
leading: !0,
|
|
829
|
+
trailing: !0
|
|
830
|
+
}), x = b(), S = (e, t, n = {}) => {
|
|
831
|
+
let r = {
|
|
832
|
+
...e,
|
|
833
|
+
...t
|
|
834
|
+
}, i = Array.from(r.only ?? r.validate ?? l);
|
|
835
|
+
return {
|
|
836
|
+
...t,
|
|
837
|
+
...V({}, e, t),
|
|
838
|
+
only: i,
|
|
839
|
+
timeout: r.timeout ?? 5e3,
|
|
840
|
+
onValidationError: (e, t) => ([...s([...o, ...i]), ...f(V(xn({ ...d }, i), e.data.errors))].forEach((e) => e()), r.onValidationError ? r.onValidationError(e, t) : Promise.reject(t)),
|
|
841
|
+
onSuccess: (e) => (s([...o, ...i]).forEach((e) => e()), r.onSuccess ? r.onSuccess(e) : e),
|
|
842
|
+
onPrecognitionSuccess: (e) => ([...s([...o, ...i]), ...f(xn({ ...d }, i))].forEach((e) => e()), r.onPrecognitionSuccess ? r.onPrecognitionSuccess(e) : e),
|
|
843
|
+
onBefore: () => {
|
|
844
|
+
let e = l.some((e) => e.includes("*")), t = e ? [...new Set(l.flatMap((e) => yn(e, n)))] : l;
|
|
845
|
+
return r.onBeforeValidation && r.onBeforeValidation({
|
|
846
|
+
data: n,
|
|
847
|
+
touched: t
|
|
848
|
+
}, {
|
|
849
|
+
data: g,
|
|
850
|
+
touched: v
|
|
851
|
+
}) === !1 || (r.onBefore || (() => !0))() === !1 ? !1 : (e && u(t).forEach((e) => e()), y = l, _ = n, !0);
|
|
852
|
+
},
|
|
853
|
+
onStart: () => {
|
|
854
|
+
a(!0).forEach((e) => e()), (r.onStart ?? (() => null))();
|
|
855
|
+
},
|
|
856
|
+
onFinish: () => {
|
|
857
|
+
a(!1).forEach((e) => e()), v = y, g = _, y = _ = null, (r.onFinish ?? (() => null))();
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
}, C = (e, t, n) => {
|
|
861
|
+
if (e === void 0) {
|
|
862
|
+
let e = Array.from(n?.only ?? n?.validate ?? []);
|
|
863
|
+
u([...l, ...e]).forEach((e) => e()), x(n ?? {});
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
if (Wt(t) && !r) {
|
|
867
|
+
console.warn("Precognition file validation is not active. Call the \"validateFiles\" function on your form to enable it.");
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
e = J(e), (e.includes("*") || L(g, e) !== t) && (u([e, ...l]).forEach((e) => e()), x(n ?? {}));
|
|
871
|
+
}, w = (e) => r === !1 ? Tn(e) : e, T = {
|
|
872
|
+
touched: () => l,
|
|
873
|
+
validate(e, t, n) {
|
|
874
|
+
return typeof e == "object" && !("target" in e) && (n = e, e = t = void 0), C(e, t, n), T;
|
|
875
|
+
},
|
|
876
|
+
touch(e) {
|
|
877
|
+
let t = Array.isArray(e) ? e : [J(e)];
|
|
878
|
+
return u([...l, ...t]).forEach((e) => e()), T;
|
|
879
|
+
},
|
|
880
|
+
validating: () => i,
|
|
881
|
+
valid: c,
|
|
882
|
+
errors: () => d,
|
|
883
|
+
hasErrors: m,
|
|
884
|
+
setErrors(e) {
|
|
885
|
+
return f(e).forEach((e) => e()), T;
|
|
886
|
+
},
|
|
887
|
+
forgetError(e) {
|
|
888
|
+
return p(e).forEach((e) => e()), T;
|
|
889
|
+
},
|
|
890
|
+
defaults(e) {
|
|
891
|
+
return t = e, g = e, T;
|
|
892
|
+
},
|
|
893
|
+
reset(...e) {
|
|
894
|
+
if (e.length === 0) u([]).forEach((e) => e());
|
|
895
|
+
else {
|
|
896
|
+
let n = [...l];
|
|
897
|
+
e.forEach((e) => {
|
|
898
|
+
n.includes(e) && n.splice(n.indexOf(e), 1), Rt(g, e, L(t, e));
|
|
899
|
+
}), u(n).forEach((e) => e());
|
|
900
|
+
}
|
|
901
|
+
return T;
|
|
902
|
+
},
|
|
903
|
+
setTimeout(e) {
|
|
904
|
+
return ee(e), T;
|
|
905
|
+
},
|
|
906
|
+
on(e, t) {
|
|
907
|
+
return n[e].push(t), T;
|
|
908
|
+
},
|
|
909
|
+
validateFiles() {
|
|
910
|
+
return r = !0, T;
|
|
911
|
+
},
|
|
912
|
+
withoutFileValidation() {
|
|
913
|
+
return r = !1, T;
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
return T;
|
|
917
|
+
}, Cn = (e) => Object.keys(e).reduce((t, n) => ({
|
|
918
|
+
...t,
|
|
919
|
+
[n]: Array.isArray(e[n]) ? e[n][0] : e[n]
|
|
920
|
+
}), {}), wn = (e) => Object.keys(e).reduce((t, n) => ({
|
|
921
|
+
...t,
|
|
922
|
+
[n]: typeof e[n] == "string" ? [e[n]] : e[n]
|
|
923
|
+
}), {}), J = (e) => typeof e == "string" ? e : e.target.name, Tn = (e) => {
|
|
924
|
+
let t = { ...e };
|
|
925
|
+
return Object.keys(t).forEach((e) => {
|
|
926
|
+
let n = t[e];
|
|
927
|
+
if (n !== null) {
|
|
928
|
+
if (Wt(n)) {
|
|
929
|
+
delete t[e];
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
if (Array.isArray(n)) {
|
|
933
|
+
t[e] = Object.values(Tn({ ...n }));
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
if (typeof n == "object") {
|
|
937
|
+
t[e] = Tn(t[e]);
|
|
938
|
+
return;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
}), t;
|
|
942
|
+
}, En = (e, t, n, r = {}) => {
|
|
943
|
+
let i = B(typeof n == "function" ? n() : n), a = Object.keys(i), o = k([]), s = k([]), c = Sn((n) => n[vn(e)](_n(t), u.data(), r), i).on("validatingChanged", () => {
|
|
944
|
+
u.validating = c.validating();
|
|
945
|
+
}).on("validatedChanged", () => {
|
|
946
|
+
o.value = c.valid();
|
|
947
|
+
}).on("touchedChanged", () => {
|
|
948
|
+
s.value = c.touched();
|
|
949
|
+
}).on("errorsChanged", () => {
|
|
950
|
+
u.hasErrors = c.hasErrors(), u.errors = Cn(c.errors()), o.value = c.valid();
|
|
951
|
+
}), l = (e) => ({
|
|
952
|
+
...e,
|
|
953
|
+
precognitive: !1,
|
|
954
|
+
onStart: () => {
|
|
955
|
+
u.processing = !0, (e.onStart ?? (() => null))();
|
|
956
|
+
},
|
|
957
|
+
onFinish: () => {
|
|
958
|
+
u.processing = !1, (e.onFinish ?? (() => null))();
|
|
959
|
+
},
|
|
960
|
+
onValidationError: (t, n) => (c.setErrors(t.data.errors), e.onValidationError ? e.onValidationError(t) : Promise.reject(n))
|
|
961
|
+
}), u = {
|
|
962
|
+
...B(i),
|
|
963
|
+
data() {
|
|
964
|
+
let e = B(p(u));
|
|
965
|
+
return a.reduce((t, n) => ({
|
|
966
|
+
...t,
|
|
967
|
+
[n]: e[n]
|
|
968
|
+
}), {});
|
|
969
|
+
},
|
|
970
|
+
setData(e) {
|
|
971
|
+
return Object.keys(e).forEach((t) => {
|
|
972
|
+
u[t] = e[t];
|
|
973
|
+
}), u;
|
|
974
|
+
},
|
|
975
|
+
touched(e) {
|
|
976
|
+
return typeof e == "string" ? s.value.includes(e) : s.value.length > 0;
|
|
977
|
+
},
|
|
978
|
+
touch(e) {
|
|
979
|
+
return c.touch(e), u;
|
|
980
|
+
},
|
|
981
|
+
validate(e, t) {
|
|
982
|
+
if (typeof e == "object" && !("target" in e) && (t = e, e = void 0), e === void 0) c.validate(t);
|
|
983
|
+
else {
|
|
984
|
+
let n = J(e);
|
|
985
|
+
c.validate(n, L(u.data(), n), t);
|
|
986
|
+
}
|
|
987
|
+
return u;
|
|
988
|
+
},
|
|
989
|
+
validating: !1,
|
|
990
|
+
valid(e) {
|
|
991
|
+
return o.value.includes(e);
|
|
992
|
+
},
|
|
993
|
+
invalid(e) {
|
|
994
|
+
return u.errors[e] !== void 0;
|
|
995
|
+
},
|
|
996
|
+
errors: {},
|
|
997
|
+
hasErrors: !1,
|
|
998
|
+
setErrors(e) {
|
|
999
|
+
return c.setErrors(e), u;
|
|
1000
|
+
},
|
|
1001
|
+
forgetError(e) {
|
|
1002
|
+
return c.forgetError(e), u;
|
|
1003
|
+
},
|
|
1004
|
+
reset(...e) {
|
|
1005
|
+
let t = B(typeof n == "function" ? n() : i);
|
|
1006
|
+
return e.length === 0 ? a.forEach((e) => u[e] = t[e]) : e.forEach((e) => Rt(u, e, L(t, e))), c.reset(...e), u;
|
|
1007
|
+
},
|
|
1008
|
+
setValidationTimeout(e) {
|
|
1009
|
+
return c.setTimeout(e), u;
|
|
1010
|
+
},
|
|
1011
|
+
processing: !1,
|
|
1012
|
+
async submit(n = {}) {
|
|
1013
|
+
return G[vn(e)](_n(t), u.data(), l(n));
|
|
1014
|
+
},
|
|
1015
|
+
validateFiles() {
|
|
1016
|
+
return c.validateFiles(), u;
|
|
1017
|
+
},
|
|
1018
|
+
withoutFileValidation() {
|
|
1019
|
+
return c.withoutFileValidation(), u;
|
|
1020
|
+
},
|
|
1021
|
+
validator() {
|
|
1022
|
+
return c;
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
return u = v(u), u;
|
|
1026
|
+
};
|
|
1027
|
+
//#endregion
|
|
1028
|
+
//#region node_modules/laravel-precognition/dist/http/axiosAdapter.js
|
|
1029
|
+
function Dn(e = oe) {
|
|
1030
|
+
return {
|
|
1031
|
+
getAxiosInstance: () => e,
|
|
1032
|
+
async request(t) {
|
|
1033
|
+
try {
|
|
1034
|
+
let n = await e.request({
|
|
1035
|
+
method: t.method,
|
|
1036
|
+
url: t.url,
|
|
1037
|
+
baseURL: t.baseURL,
|
|
1038
|
+
data: t.data,
|
|
1039
|
+
params: t.params,
|
|
1040
|
+
headers: t.headers,
|
|
1041
|
+
signal: t.signal,
|
|
1042
|
+
timeout: t.timeout ?? e.defaults.timeout ?? 3e4,
|
|
1043
|
+
withCredentials: t.credentials === "include"
|
|
1044
|
+
});
|
|
1045
|
+
return {
|
|
1046
|
+
status: n.status,
|
|
1047
|
+
data: n.data,
|
|
1048
|
+
headers: On(n.headers)
|
|
1049
|
+
};
|
|
1050
|
+
} catch (e) {
|
|
1051
|
+
throw ve(e) ? new Gt() : Ce(e) && e.response ? new U({
|
|
1052
|
+
status: e.response.status,
|
|
1053
|
+
data: e.response.data,
|
|
1054
|
+
headers: On(e.response.headers)
|
|
1055
|
+
}) : e instanceof Error && e.message === "Network Error" ? new Kt(e.message) : e;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
function On(e) {
|
|
1061
|
+
let t = {};
|
|
1062
|
+
return !e || typeof e != "object" || Object.entries(e).forEach(([e, n]) => {
|
|
1063
|
+
n != null && (t[e.toLowerCase()] = String(n));
|
|
1064
|
+
}), t;
|
|
1065
|
+
}
|
|
1066
|
+
//#endregion
|
|
1067
|
+
//#region node_modules/body-scroll-lock/lib/bodyScrollLock.esm.js
|
|
1068
|
+
function kn(e) {
|
|
1069
|
+
if (Array.isArray(e)) {
|
|
1070
|
+
for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
|
|
1071
|
+
return n;
|
|
1072
|
+
}
|
|
1073
|
+
return Array.from(e);
|
|
1074
|
+
}
|
|
1075
|
+
var An = !1;
|
|
1076
|
+
if (typeof window < "u") {
|
|
1077
|
+
var jn = { get passive() {
|
|
1078
|
+
An = !0;
|
|
1079
|
+
} };
|
|
1080
|
+
window.addEventListener("testPassive", null, jn), window.removeEventListener("testPassive", null, jn);
|
|
1081
|
+
}
|
|
1082
|
+
var Y = typeof window < "u" && window.navigator && window.navigator.platform && (/iP(ad|hone|od)/.test(window.navigator.platform) || window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 1), X = [], Mn = !1, Nn = -1, Z = void 0, Q = void 0, $ = void 0, Pn = function(e) {
|
|
1083
|
+
return X.some(function(t) {
|
|
1084
|
+
return !!(t.options.allowTouchMove && t.options.allowTouchMove(e));
|
|
1085
|
+
});
|
|
1086
|
+
}, Fn = function(e) {
|
|
1087
|
+
var t = e || window.event;
|
|
1088
|
+
return Pn(t.target) || t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
1089
|
+
}, In = function(e) {
|
|
1090
|
+
if ($ === void 0) {
|
|
1091
|
+
var t = !!e && e.reserveScrollBarGap === !0, n = window.innerWidth - document.documentElement.clientWidth;
|
|
1092
|
+
if (t && n > 0) {
|
|
1093
|
+
var r = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"), 10);
|
|
1094
|
+
$ = document.body.style.paddingRight, document.body.style.paddingRight = r + n + "px";
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
Z === void 0 && (Z = document.body.style.overflow, document.body.style.overflow = "hidden");
|
|
1098
|
+
}, Ln = function() {
|
|
1099
|
+
$ !== void 0 && (document.body.style.paddingRight = $, $ = void 0), Z !== void 0 && (document.body.style.overflow = Z, Z = void 0);
|
|
1100
|
+
}, Rn = function() {
|
|
1101
|
+
return window.requestAnimationFrame(function() {
|
|
1102
|
+
if (Q === void 0) {
|
|
1103
|
+
Q = {
|
|
1104
|
+
position: document.body.style.position,
|
|
1105
|
+
top: document.body.style.top,
|
|
1106
|
+
left: document.body.style.left
|
|
1107
|
+
};
|
|
1108
|
+
var e = window, t = e.scrollY, n = e.scrollX, r = e.innerHeight;
|
|
1109
|
+
document.body.style.position = "fixed", document.body.style.top = -t, document.body.style.left = -n, setTimeout(function() {
|
|
1110
|
+
return window.requestAnimationFrame(function() {
|
|
1111
|
+
var e = r - window.innerHeight;
|
|
1112
|
+
e && t >= r && (document.body.style.top = -(t + e));
|
|
1113
|
+
});
|
|
1114
|
+
}, 300);
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
}, zn = function() {
|
|
1118
|
+
if (Q !== void 0) {
|
|
1119
|
+
var e = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
|
|
1120
|
+
document.body.style.position = Q.position, document.body.style.top = Q.top, document.body.style.left = Q.left, window.scrollTo(t, e), Q = void 0;
|
|
1121
|
+
}
|
|
1122
|
+
}, Bn = function(e) {
|
|
1123
|
+
return e ? e.scrollHeight - e.scrollTop <= e.clientHeight : !1;
|
|
1124
|
+
}, Vn = function(e, t) {
|
|
1125
|
+
var n = e.targetTouches[0].clientY - Nn;
|
|
1126
|
+
return Pn(e.target) ? !1 : t && t.scrollTop === 0 && n > 0 || Bn(t) && n < 0 ? Fn(e) : (e.stopPropagation(), !0);
|
|
1127
|
+
}, Hn = function(e, t) {
|
|
1128
|
+
if (!e) {
|
|
1129
|
+
console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");
|
|
1130
|
+
return;
|
|
1131
|
+
}
|
|
1132
|
+
if (!X.some(function(t) {
|
|
1133
|
+
return t.targetElement === e;
|
|
1134
|
+
})) {
|
|
1135
|
+
var n = {
|
|
1136
|
+
targetElement: e,
|
|
1137
|
+
options: t || {}
|
|
1138
|
+
};
|
|
1139
|
+
X = [].concat(kn(X), [n]), Y ? Rn() : In(t), Y && (e.ontouchstart = function(e) {
|
|
1140
|
+
e.targetTouches.length === 1 && (Nn = e.targetTouches[0].clientY);
|
|
1141
|
+
}, e.ontouchmove = function(t) {
|
|
1142
|
+
t.targetTouches.length === 1 && Vn(t, e);
|
|
1143
|
+
}, Mn ||= (document.addEventListener("touchmove", Fn, An ? { passive: !1 } : void 0), !0));
|
|
1144
|
+
}
|
|
1145
|
+
}, Un = function(e) {
|
|
1146
|
+
if (!e) {
|
|
1147
|
+
console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
|
|
1148
|
+
return;
|
|
1149
|
+
}
|
|
1150
|
+
X = X.filter(function(t) {
|
|
1151
|
+
return t.targetElement !== e;
|
|
1152
|
+
}), Y && (e.ontouchstart = null, e.ontouchmove = null, Mn && X.length === 0 && (document.removeEventListener("touchmove", Fn, An ? { passive: !1 } : void 0), Mn = !1)), Y ? zn() : Ln();
|
|
1153
|
+
}, Wn = l({
|
|
1154
|
+
name: "SidePanelCloseButton",
|
|
1155
|
+
emits: ["close"]
|
|
1156
|
+
}), Gn = [/* @__PURE__ */ m("span", { class: "vsp-close__x" }, null, -1)];
|
|
1157
|
+
function Kn(e, t, n, r, i, a) {
|
|
1158
|
+
return s(), u("div", {
|
|
1159
|
+
class: "vsp-close",
|
|
1160
|
+
onClick: t[0] ||= (t) => e.$emit("close")
|
|
1161
|
+
}, [...Gn]);
|
|
1162
|
+
}
|
|
1163
|
+
Wn.render = Kn, Wn.__file = "src/components/SidePanelCloseButton.vue";
|
|
1164
|
+
var qn = l({
|
|
1165
|
+
name: "VueSidePanel",
|
|
1166
|
+
components: { SidePanelCloseButton: Wn },
|
|
1167
|
+
props: {
|
|
1168
|
+
idName: {
|
|
1169
|
+
type: String,
|
|
1170
|
+
default: "vsp-container"
|
|
1171
|
+
},
|
|
1172
|
+
hideCloseBtn: {
|
|
1173
|
+
type: Boolean,
|
|
1174
|
+
default: !1
|
|
1175
|
+
},
|
|
1176
|
+
noClose: {
|
|
1177
|
+
type: Boolean,
|
|
1178
|
+
default: !1
|
|
1179
|
+
},
|
|
1180
|
+
side: {
|
|
1181
|
+
type: String,
|
|
1182
|
+
validator: (e) => [
|
|
1183
|
+
"top",
|
|
1184
|
+
"right",
|
|
1185
|
+
"bottom",
|
|
1186
|
+
"left"
|
|
1187
|
+
].includes(e),
|
|
1188
|
+
default: "right"
|
|
1189
|
+
},
|
|
1190
|
+
rerender: {
|
|
1191
|
+
type: Boolean,
|
|
1192
|
+
default: !1
|
|
1193
|
+
},
|
|
1194
|
+
zIndex: {
|
|
1195
|
+
type: [Number, String],
|
|
1196
|
+
default: "auto"
|
|
1197
|
+
},
|
|
1198
|
+
width: {
|
|
1199
|
+
type: String,
|
|
1200
|
+
default: "auto"
|
|
1201
|
+
},
|
|
1202
|
+
height: {
|
|
1203
|
+
type: String,
|
|
1204
|
+
default: "auto"
|
|
1205
|
+
},
|
|
1206
|
+
lockScroll: {
|
|
1207
|
+
type: Boolean,
|
|
1208
|
+
default: !1
|
|
1209
|
+
},
|
|
1210
|
+
lockScrollHtml: {
|
|
1211
|
+
type: Boolean,
|
|
1212
|
+
default: !0
|
|
1213
|
+
},
|
|
1214
|
+
modelValue: {
|
|
1215
|
+
type: Boolean,
|
|
1216
|
+
default: !1,
|
|
1217
|
+
required: !0
|
|
1218
|
+
},
|
|
1219
|
+
overlayColor: {
|
|
1220
|
+
type: String,
|
|
1221
|
+
default: "black"
|
|
1222
|
+
},
|
|
1223
|
+
overlayOpacity: {
|
|
1224
|
+
type: Number,
|
|
1225
|
+
default: .5
|
|
1226
|
+
},
|
|
1227
|
+
overlayDuration: {
|
|
1228
|
+
type: Number,
|
|
1229
|
+
default: 500
|
|
1230
|
+
},
|
|
1231
|
+
panelColor: {
|
|
1232
|
+
type: String,
|
|
1233
|
+
default: "white"
|
|
1234
|
+
},
|
|
1235
|
+
panelDuration: {
|
|
1236
|
+
type: Number,
|
|
1237
|
+
default: 300
|
|
1238
|
+
},
|
|
1239
|
+
transitionName: {
|
|
1240
|
+
type: String,
|
|
1241
|
+
default: void 0
|
|
1242
|
+
},
|
|
1243
|
+
headerClass: {
|
|
1244
|
+
type: String,
|
|
1245
|
+
default: ""
|
|
1246
|
+
},
|
|
1247
|
+
bodyClass: {
|
|
1248
|
+
type: String,
|
|
1249
|
+
default: ""
|
|
1250
|
+
},
|
|
1251
|
+
footerClass: {
|
|
1252
|
+
type: String,
|
|
1253
|
+
default: ""
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
emits: [
|
|
1257
|
+
"update:modelValue",
|
|
1258
|
+
"closed",
|
|
1259
|
+
"opened"
|
|
1260
|
+
],
|
|
1261
|
+
setup(e, { emit: t, attrs: n }) {
|
|
1262
|
+
let r, i = k(null), a = k(null), s = k(null), l = k(null), u = k(null), d = k(0), f = k(0), p = k(0), m = k(0), h = k(0), _ = k(), v = k(!1), y = async () => {
|
|
1263
|
+
window?.innerHeight > 0 && (h.value = window.innerHeight), d.value = s.value ? s.value.clientHeight : 0, p.value = l.value ? l.value.clientHeight : 0, f.value = u.value ? u.value.scrollHeight : 0, m.value = i.value ? i.value.clientHeight : 0;
|
|
1264
|
+
}, x = () => t("update:modelValue", !1), S = (t, n) => {
|
|
1265
|
+
if (n) {
|
|
1266
|
+
setTimeout(() => {
|
|
1267
|
+
Hn(t, { reserveScrollBarGap: !0 }), e.lockScrollHtml && (document.documentElement.style.overflow = "hidden");
|
|
1268
|
+
}, 0);
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
Un(t), e.lockScrollHtml && document.documentElement.style.removeProperty("overflow");
|
|
1272
|
+
}, C = () => Math.max(...Array.from(document.querySelectorAll("body *"), (e) => parseFloat(window.getComputedStyle(e).zIndex)).filter((e) => !Number.isNaN(e)), 0);
|
|
1273
|
+
c(() => {
|
|
1274
|
+
_.value = e.zIndex === "auto" ? C() : e.zIndex;
|
|
1275
|
+
}), o(() => {
|
|
1276
|
+
document.getElementById(e.idName) || (r = document.createElement("div"), r.setAttribute("id", e.idName), document.body.appendChild(r));
|
|
1277
|
+
}), ee(() => {
|
|
1278
|
+
let { modelValue: t, lockScroll: n } = e;
|
|
1279
|
+
n && i.value && t && S(i.value, !1), r && document.body.removeChild(r), window.removeEventListener("resize", y);
|
|
1280
|
+
}), b(() => [
|
|
1281
|
+
l.value,
|
|
1282
|
+
s.value,
|
|
1283
|
+
e.height,
|
|
1284
|
+
e.width,
|
|
1285
|
+
e.side,
|
|
1286
|
+
e.modelValue
|
|
1287
|
+
], () => {
|
|
1288
|
+
g(() => y());
|
|
1289
|
+
}), b(() => [e.modelValue, i.value], (t, n) => {
|
|
1290
|
+
let r = n ? n[0] : !1, [i, a] = t, o = i, s = r && !i;
|
|
1291
|
+
if (a) {
|
|
1292
|
+
if (o && (v.value = !!document.body.style.overflow), i) {
|
|
1293
|
+
e.lockScroll && S(a, !0), y(), window.addEventListener("resize", y);
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1296
|
+
!e.lockScroll || !s || v.value || (setTimeout(() => {
|
|
1297
|
+
a && S(a, !1);
|
|
1298
|
+
}, e.panelDuration), window.removeEventListener("resize", y));
|
|
1299
|
+
}
|
|
1300
|
+
}, { immediate: !0 });
|
|
1301
|
+
let w = O(() => {
|
|
1302
|
+
if (!m.value) return;
|
|
1303
|
+
let t = f.value + p.value + d.value, n = m.value - p.value - d.value;
|
|
1304
|
+
return ["top", "bottom"].includes(e.side) && e.height === "auto" && (n = h.value >= t ? f.value : h.value - p.value - d.value), n;
|
|
1305
|
+
});
|
|
1306
|
+
return {
|
|
1307
|
+
body: u,
|
|
1308
|
+
panel: i,
|
|
1309
|
+
overlay: a,
|
|
1310
|
+
overlayStyles: O(() => ({
|
|
1311
|
+
zIndex: _.value,
|
|
1312
|
+
animationDuration: `${e.overlayDuration}ms`,
|
|
1313
|
+
"--overlay-opacity": e.overlayOpacity,
|
|
1314
|
+
opacity: e.modelValue ? e.overlayOpacity : 0,
|
|
1315
|
+
backgroundColor: e.overlayColor,
|
|
1316
|
+
pointerEvents: e.modelValue ? "all" : "none"
|
|
1317
|
+
})),
|
|
1318
|
+
header: l,
|
|
1319
|
+
footer: s,
|
|
1320
|
+
closePanel: x,
|
|
1321
|
+
panelStyles: O(() => ({
|
|
1322
|
+
width: ["left", "right"].includes(e.side) ? e.width : void 0,
|
|
1323
|
+
maxWidth: "100%",
|
|
1324
|
+
...["top", "bottom"].includes(e.side) ? {
|
|
1325
|
+
height: e.height,
|
|
1326
|
+
maxHeight: "100%"
|
|
1327
|
+
} : {},
|
|
1328
|
+
zIndex: _.value,
|
|
1329
|
+
backgroundColor: e.panelColor,
|
|
1330
|
+
animationDuration: `${e.panelDuration}ms`,
|
|
1331
|
+
...Object.assign({}, n.style)
|
|
1332
|
+
})),
|
|
1333
|
+
bodyHeight: w
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
});
|
|
1337
|
+
function Jn(t, n, o, c, l, p) {
|
|
1338
|
+
let h = S("SidePanelCloseButton");
|
|
1339
|
+
return s(), i(f, { to: `#${t.idName}` }, [m("div", { class: a(["vsp-wrapper", [t.modelValue && "vsp-wrapper--active"]]) }, [w(re, {
|
|
1340
|
+
name: "overlay",
|
|
1341
|
+
persisted: ""
|
|
1342
|
+
}, {
|
|
1343
|
+
default: D(() => [x(m("div", {
|
|
1344
|
+
ref: "overlay",
|
|
1345
|
+
class: "vsp-overlay",
|
|
1346
|
+
style: d(t.overlayStyles),
|
|
1347
|
+
onClick: n[0] ||= () => t.noClose ? void 0 : t.closePanel()
|
|
1348
|
+
}, null, 4), [[C, t.modelValue]])]),
|
|
1349
|
+
_: 1
|
|
1350
|
+
}), w(re, {
|
|
1351
|
+
name: t.transitionName || `slide-${t.side}`,
|
|
1352
|
+
onAfterEnter: n[1] ||= (e) => t.$emit("opened"),
|
|
1353
|
+
onAfterLeave: n[2] ||= (e) => t.$emit("closed")
|
|
1354
|
+
}, {
|
|
1355
|
+
default: D(() => [!t.rerender || t.modelValue ? x((s(), u("div", {
|
|
1356
|
+
key: 0,
|
|
1357
|
+
ref: "panel",
|
|
1358
|
+
class: a(["vsp", [`vsp--${t.side}-side`, t.$attrs.class]]),
|
|
1359
|
+
style: d(t.panelStyles)
|
|
1360
|
+
}, [
|
|
1361
|
+
t.$slots.header ? (s(), u("div", {
|
|
1362
|
+
key: 0,
|
|
1363
|
+
ref: "header",
|
|
1364
|
+
class: a([t.headerClass, "vsp__header"])
|
|
1365
|
+
}, [e(t.$slots, "header", { close: t.closePanel })], 2)) : r("v-if", !0),
|
|
1366
|
+
m("div", {
|
|
1367
|
+
ref: "body",
|
|
1368
|
+
class: a([t.bodyClass, "vsp__body"]),
|
|
1369
|
+
style: d({ height: `${t.bodyHeight}px` })
|
|
1370
|
+
}, [e(t.$slots, "default", { close: t.closePanel }), t.hideCloseBtn ? r("v-if", !0) : (s(), i(h, {
|
|
1371
|
+
key: 0,
|
|
1372
|
+
onClose: t.closePanel
|
|
1373
|
+
}, null, 8, ["onClose"]))], 6),
|
|
1374
|
+
t.$slots.footer ? (s(), u("div", {
|
|
1375
|
+
key: 1,
|
|
1376
|
+
ref: "footer",
|
|
1377
|
+
class: a([t.footerClass, "vsp__footer"])
|
|
1378
|
+
}, [e(t.$slots, "footer")], 2)) : r("v-if", !0)
|
|
1379
|
+
], 6)), [[C, t.rerender ? !0 : t.modelValue]]) : r("v-if", !0)]),
|
|
1380
|
+
_: 3
|
|
1381
|
+
}, 8, ["name"])], 2)], 8, ["to"]);
|
|
1382
|
+
}
|
|
1383
|
+
qn.render = Jn, qn.__file = "src/components/SidePanel.vue";
|
|
1384
|
+
//#endregion
|
|
1385
|
+
//#region src/components/side-panels/Base.vue?vue&type=script&setup=true&lang.ts
|
|
1386
|
+
var Yn = { id: "konnectio-side-panel-header" }, Xn = { id: "konnectio-side-panel-title" }, Zn = {
|
|
1387
|
+
key: 0,
|
|
1388
|
+
id: "konnectio-side-panel-subtitle"
|
|
1389
|
+
}, Qn = ["innerHTML"], $n = /*#__PURE__*/ A(/* @__PURE__ */ l({
|
|
1390
|
+
__name: "Base",
|
|
1391
|
+
props: {
|
|
1392
|
+
modelValue: { type: Boolean },
|
|
1393
|
+
title: {},
|
|
1394
|
+
subtitle: {},
|
|
1395
|
+
idName: {},
|
|
1396
|
+
description: {},
|
|
1397
|
+
side: { default: "right" },
|
|
1398
|
+
lockScroll: {
|
|
1399
|
+
type: Boolean,
|
|
1400
|
+
default: !0
|
|
1401
|
+
},
|
|
1402
|
+
hideCloseButton: {
|
|
1403
|
+
type: Boolean,
|
|
1404
|
+
default: !0
|
|
1405
|
+
},
|
|
1406
|
+
width: { default: "840px" }
|
|
1407
|
+
},
|
|
1408
|
+
emits: [
|
|
1409
|
+
"update:modelValue",
|
|
1410
|
+
"opened",
|
|
1411
|
+
"closed"
|
|
1412
|
+
],
|
|
1413
|
+
setup(t, { emit: n }) {
|
|
1414
|
+
let a = n, o = O(() => {
|
|
1415
|
+
let e = navigator?.userAgentData?.platform || navigator?.platform;
|
|
1416
|
+
return (/iPad|iPhone|iPod/.test(e) || e === "MacIntel" && navigator.maxTouchPoints > 1) && !window.MSStream;
|
|
1417
|
+
});
|
|
1418
|
+
function c() {
|
|
1419
|
+
a("closed");
|
|
1420
|
+
}
|
|
1421
|
+
function l() {
|
|
1422
|
+
a("opened");
|
|
1423
|
+
}
|
|
1424
|
+
return (n, a) => (s(), i(h(qn), {
|
|
1425
|
+
modelValue: t.modelValue,
|
|
1426
|
+
"lock-scroll": !o.value && t.lockScroll,
|
|
1427
|
+
"hide-close-btn": t.hideCloseButton,
|
|
1428
|
+
width: t.width,
|
|
1429
|
+
"onUpdate:modelValue": a[1] ||= (e) => n.$emit("update:modelValue", e),
|
|
1430
|
+
onClosed: c,
|
|
1431
|
+
onOpened: l
|
|
1432
|
+
}, T({
|
|
1433
|
+
header: D(() => [m("div", Yn, [m("h2", Xn, [m("span", null, E(h(ae)(t.title)), 1), m("button", {
|
|
1434
|
+
id: "konnectio-side-panel-close",
|
|
1435
|
+
onClick: a[0] ||= (e) => n.$emit("update:modelValue", !1)
|
|
1436
|
+
}, [w(pe, {
|
|
1437
|
+
icon: "times",
|
|
1438
|
+
type: "fas",
|
|
1439
|
+
color: "header"
|
|
1440
|
+
})])]), t.subtitle ? (s(), u("h4", Zn, [m("span", null, E(t.subtitle), 1)])) : r("", !0)])]),
|
|
1441
|
+
default: D(() => [t.description ? (s(), u("div", {
|
|
1442
|
+
key: 0,
|
|
1443
|
+
class: "konnectio-side-panel-description",
|
|
1444
|
+
innerHTML: t.description
|
|
1445
|
+
}, null, 8, Qn)) : r("", !0), e(n.$slots, "default", {}, void 0, !0)]),
|
|
1446
|
+
_: 2
|
|
1447
|
+
}, [n.$slots.footer ? {
|
|
1448
|
+
name: "footer",
|
|
1449
|
+
fn: D(() => [e(n.$slots, "footer", {}, void 0, !0)]),
|
|
1450
|
+
key: "0"
|
|
1451
|
+
} : void 0]), 1032, [
|
|
1452
|
+
"modelValue",
|
|
1453
|
+
"lock-scroll",
|
|
1454
|
+
"hide-close-btn",
|
|
1455
|
+
"width"
|
|
1456
|
+
]));
|
|
1457
|
+
}
|
|
1458
|
+
}), [["__scopeId", "data-v-85ac191d"]]), er = { class: "konnectio-phone-input" }, tr = /*#__PURE__*/ A(/* @__PURE__ */ l({
|
|
1459
|
+
__name: "PhoneField",
|
|
1460
|
+
props: {
|
|
1461
|
+
modelValue: {},
|
|
1462
|
+
label: {},
|
|
1463
|
+
id: {},
|
|
1464
|
+
placeholder: {},
|
|
1465
|
+
icon: { default: "phone-office" },
|
|
1466
|
+
iconColor: {},
|
|
1467
|
+
iconType: { default: "fal" },
|
|
1468
|
+
required: {
|
|
1469
|
+
type: Boolean,
|
|
1470
|
+
default: !1
|
|
1471
|
+
},
|
|
1472
|
+
readonly: {
|
|
1473
|
+
type: Boolean,
|
|
1474
|
+
default: !1
|
|
1475
|
+
},
|
|
1476
|
+
error: {}
|
|
1477
|
+
},
|
|
1478
|
+
emits: ["update:modelValue"],
|
|
1479
|
+
setup(e, { emit: t }) {
|
|
1480
|
+
let n = t, r = e, a = r.id || se(), o = k("+45"), l = k("");
|
|
1481
|
+
function u() {
|
|
1482
|
+
n("update:modelValue", `${o.value} ${l.value}`);
|
|
1483
|
+
}
|
|
1484
|
+
return c(() => {
|
|
1485
|
+
if (r.modelValue) {
|
|
1486
|
+
let e = r.modelValue.split(" ");
|
|
1487
|
+
o.value = e[0], l.value = e[1];
|
|
1488
|
+
}
|
|
1489
|
+
}), (t, n) => (s(), i(ce, {
|
|
1490
|
+
label: e.label,
|
|
1491
|
+
id: h(a),
|
|
1492
|
+
type: "phone",
|
|
1493
|
+
required: e.required,
|
|
1494
|
+
readonly: e.readonly,
|
|
1495
|
+
error: e.error
|
|
1496
|
+
}, {
|
|
1497
|
+
default: D(() => [m("div", er, [w(de, {
|
|
1498
|
+
modelValue: o.value,
|
|
1499
|
+
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
1500
|
+
type: "text",
|
|
1501
|
+
id: h(se)(),
|
|
1502
|
+
name: "phone-code",
|
|
1503
|
+
autocomplete: "tel-country-code",
|
|
1504
|
+
icon: e.icon,
|
|
1505
|
+
"icon-color": e.iconColor,
|
|
1506
|
+
"icon-type": e.iconType,
|
|
1507
|
+
placeholder: "+XX",
|
|
1508
|
+
required: e.required,
|
|
1509
|
+
readonly: e.readonly,
|
|
1510
|
+
onInput: n[1] ||= (e) => u()
|
|
1511
|
+
}, null, 8, [
|
|
1512
|
+
"modelValue",
|
|
1513
|
+
"id",
|
|
1514
|
+
"icon",
|
|
1515
|
+
"icon-color",
|
|
1516
|
+
"icon-type",
|
|
1517
|
+
"required",
|
|
1518
|
+
"readonly"
|
|
1519
|
+
]), w(de, {
|
|
1520
|
+
modelValue: l.value,
|
|
1521
|
+
"onUpdate:modelValue": n[2] ||= (e) => l.value = e,
|
|
1522
|
+
type: "number",
|
|
1523
|
+
name: "phone",
|
|
1524
|
+
autocomplete: "tel-national",
|
|
1525
|
+
inputmode: "numeric",
|
|
1526
|
+
id: h(a),
|
|
1527
|
+
placeholder: e.placeholder,
|
|
1528
|
+
required: e.required,
|
|
1529
|
+
readonly: e.readonly,
|
|
1530
|
+
onInput: n[3] ||= (e) => u()
|
|
1531
|
+
}, null, 8, [
|
|
1532
|
+
"modelValue",
|
|
1533
|
+
"id",
|
|
1534
|
+
"placeholder",
|
|
1535
|
+
"required",
|
|
1536
|
+
"readonly"
|
|
1537
|
+
])])]),
|
|
1538
|
+
_: 1
|
|
1539
|
+
}, 8, [
|
|
1540
|
+
"label",
|
|
1541
|
+
"id",
|
|
1542
|
+
"required",
|
|
1543
|
+
"readonly",
|
|
1544
|
+
"error"
|
|
1545
|
+
]));
|
|
1546
|
+
}
|
|
1547
|
+
}), [["__scopeId", "data-v-44b81da6"]]), nr = [
|
|
1548
|
+
"required",
|
|
1549
|
+
"type",
|
|
1550
|
+
"name",
|
|
1551
|
+
"readonly",
|
|
1552
|
+
"disabled",
|
|
1553
|
+
"value",
|
|
1554
|
+
"checked"
|
|
1555
|
+
], rr = ["data-test"], ir = { key: 0 }, ar = {
|
|
1556
|
+
key: 1,
|
|
1557
|
+
class: /*@__PURE__*/ a(["konnectio-click-box-label", "inline"])
|
|
1558
|
+
}, or = /*#__PURE__*/ A(/* @__PURE__ */ l({
|
|
1559
|
+
__name: "Checkbox",
|
|
1560
|
+
props: {
|
|
1561
|
+
modelValue: { type: [
|
|
1562
|
+
String,
|
|
1563
|
+
Boolean,
|
|
1564
|
+
Number,
|
|
1565
|
+
null
|
|
1566
|
+
] },
|
|
1567
|
+
numeric: {
|
|
1568
|
+
type: Boolean,
|
|
1569
|
+
default: !1
|
|
1570
|
+
},
|
|
1571
|
+
checked: {
|
|
1572
|
+
type: Boolean,
|
|
1573
|
+
default: !1
|
|
1574
|
+
},
|
|
1575
|
+
label: {},
|
|
1576
|
+
price: {},
|
|
1577
|
+
name: {},
|
|
1578
|
+
readonly: {
|
|
1579
|
+
type: Boolean,
|
|
1580
|
+
default: !1
|
|
1581
|
+
},
|
|
1582
|
+
type: { default: "checkbox" },
|
|
1583
|
+
required: {
|
|
1584
|
+
type: Boolean,
|
|
1585
|
+
default: !1
|
|
1586
|
+
},
|
|
1587
|
+
val: {}
|
|
1588
|
+
},
|
|
1589
|
+
emits: ["update:modelValue"],
|
|
1590
|
+
setup(t, { emit: o }) {
|
|
1591
|
+
let c = t, l = o, d = ne();
|
|
1592
|
+
function f() {
|
|
1593
|
+
c.readonly !== !0 && l("update:modelValue", c.type === "radio" ? c.val : c.numeric ? +!c.modelValue : !c.modelValue);
|
|
1594
|
+
}
|
|
1595
|
+
return (o, c) => (s(), i(ce, {
|
|
1596
|
+
required: t.required,
|
|
1597
|
+
type: t.type,
|
|
1598
|
+
readonly: t.readonly
|
|
1599
|
+
}, {
|
|
1600
|
+
default: D(() => [m("label", { class: a([
|
|
1601
|
+
"konnectio-click-box-container",
|
|
1602
|
+
{ "is-readonly": t.readonly },
|
|
1603
|
+
{ "has-label": t.label || h(d).default },
|
|
1604
|
+
t.type === "radio" ? "radio" : "checkbox",
|
|
1605
|
+
{ active: t.type === "radio" ? t.val === t.modelValue : !!t.modelValue }
|
|
1606
|
+
]) }, [
|
|
1607
|
+
m("input", n(o.$attrs, {
|
|
1608
|
+
required: !!t.required,
|
|
1609
|
+
type: t.type,
|
|
1610
|
+
name: t.name,
|
|
1611
|
+
class: "hidden",
|
|
1612
|
+
readonly: !!t.readonly,
|
|
1613
|
+
disabled: !!t.readonly,
|
|
1614
|
+
value: t.type === "radio" ? t.val : t.modelValue,
|
|
1615
|
+
checked: t.type === "radio" ? t.val === t.modelValue : !!t.modelValue,
|
|
1616
|
+
onChange: c[0] ||= (e) => f()
|
|
1617
|
+
}), null, 16, nr),
|
|
1618
|
+
m("div", {
|
|
1619
|
+
class: a(["konnectio-click-box", { checked: t.type === "radio" ? t.val === t.modelValue : !!t.modelValue }]),
|
|
1620
|
+
tabindex: "0",
|
|
1621
|
+
"data-test": t.name,
|
|
1622
|
+
onKeyup: c[1] ||= _((e) => f(), ["enter"])
|
|
1623
|
+
}, null, 42, rr),
|
|
1624
|
+
t.label ? (s(), u("div", {
|
|
1625
|
+
key: 0,
|
|
1626
|
+
class: a([
|
|
1627
|
+
"konnectio-click-box-label",
|
|
1628
|
+
"text-hover",
|
|
1629
|
+
{ "with-price": t.price }
|
|
1630
|
+
])
|
|
1631
|
+
}, [m("span", null, E(t.label), 1), t.price ? (s(), u("span", ir, E(t.price), 1)) : r("", !0)], 2)) : h(d).default ? (s(), u("div", ar, [e(o.$slots, "default", {}, void 0, !0)])) : r("", !0)
|
|
1632
|
+
], 2)]),
|
|
1633
|
+
_: 3
|
|
1634
|
+
}, 8, [
|
|
1635
|
+
"required",
|
|
1636
|
+
"type",
|
|
1637
|
+
"readonly"
|
|
1638
|
+
]));
|
|
1639
|
+
}
|
|
1640
|
+
}), [["__scopeId", "data-v-caa3bb1f"]]), sr = {
|
|
1641
|
+
href: "https://policies.google.com/privacy",
|
|
1642
|
+
target: "_blank"
|
|
1643
|
+
}, cr = {
|
|
1644
|
+
href: "https://policies.google.com/terms",
|
|
1645
|
+
target: "_blank"
|
|
1646
|
+
}, lr = /*@__PURE__*/ l({
|
|
1647
|
+
__name: "GoogleNotice",
|
|
1648
|
+
setup(e) {
|
|
1649
|
+
let { t: n } = y();
|
|
1650
|
+
return (e, r) => (s(), u("span", null, [
|
|
1651
|
+
t(E(h(n)("googleNotice")) + " ", 1),
|
|
1652
|
+
m("a", sr, E(h(n)("googlePrivacyPolicy")), 1),
|
|
1653
|
+
t(" " + E(h(n)("googleAnd")) + " ", 1),
|
|
1654
|
+
m("a", cr, E(h(n)("googleTOS")), 1),
|
|
1655
|
+
t(" " + E(h(n)("googleApply")) + ". ", 1)
|
|
1656
|
+
]));
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
//#endregion
|
|
1660
|
+
//#region src/components/GoogleNotice.vue?vue&type=i18n&index=0&lang.yaml
|
|
1661
|
+
function ur(e) {
|
|
1662
|
+
let t = e;
|
|
1663
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
1664
|
+
locale: "",
|
|
1665
|
+
resource: {
|
|
1666
|
+
da: {
|
|
1667
|
+
googleNotice: {
|
|
1668
|
+
t: 0,
|
|
1669
|
+
b: {
|
|
1670
|
+
t: 2,
|
|
1671
|
+
i: [{ t: 3 }],
|
|
1672
|
+
s: "Denne side er beskyttet af reCAPTCHA og Google's"
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
googlePrivacyPolicy: {
|
|
1676
|
+
t: 0,
|
|
1677
|
+
b: {
|
|
1678
|
+
t: 2,
|
|
1679
|
+
i: [{ t: 3 }],
|
|
1680
|
+
s: "Privatlivspolitik"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
googleAnd: {
|
|
1684
|
+
t: 0,
|
|
1685
|
+
b: {
|
|
1686
|
+
t: 2,
|
|
1687
|
+
i: [{ t: 3 }],
|
|
1688
|
+
s: "og"
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
googleTOS: {
|
|
1692
|
+
t: 0,
|
|
1693
|
+
b: {
|
|
1694
|
+
t: 2,
|
|
1695
|
+
i: [{ t: 3 }],
|
|
1696
|
+
s: "Servicevilkår"
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
googleApply: {
|
|
1700
|
+
t: 0,
|
|
1701
|
+
b: {
|
|
1702
|
+
t: 2,
|
|
1703
|
+
i: [{ t: 3 }],
|
|
1704
|
+
s: "er gældende"
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
},
|
|
1708
|
+
en: {
|
|
1709
|
+
googleNotice: {
|
|
1710
|
+
t: 0,
|
|
1711
|
+
b: {
|
|
1712
|
+
t: 2,
|
|
1713
|
+
i: [{ t: 3 }],
|
|
1714
|
+
s: "This site is protected by reCAPTCHA and the Google"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
googlePrivacyPolicy: {
|
|
1718
|
+
t: 0,
|
|
1719
|
+
b: {
|
|
1720
|
+
t: 2,
|
|
1721
|
+
i: [{ t: 3 }],
|
|
1722
|
+
s: "Privacy Policy"
|
|
1723
|
+
}
|
|
1724
|
+
},
|
|
1725
|
+
googleAnd: {
|
|
1726
|
+
t: 0,
|
|
1727
|
+
b: {
|
|
1728
|
+
t: 2,
|
|
1729
|
+
i: [{ t: 3 }],
|
|
1730
|
+
s: "and"
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
googleTOS: {
|
|
1734
|
+
t: 0,
|
|
1735
|
+
b: {
|
|
1736
|
+
t: 2,
|
|
1737
|
+
i: [{ t: 3 }],
|
|
1738
|
+
s: "Terms of Service"
|
|
1739
|
+
}
|
|
1740
|
+
},
|
|
1741
|
+
googleApply: {
|
|
1742
|
+
t: 0,
|
|
1743
|
+
b: {
|
|
1744
|
+
t: 2,
|
|
1745
|
+
i: [{ t: 3 }],
|
|
1746
|
+
s: "apply"
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
//#endregion
|
|
1754
|
+
//#region src/components/GoogleNotice.vue
|
|
1755
|
+
typeof ur == "function" && ur(lr);
|
|
1756
|
+
var dr = lr, fr = { id: "konnectio-hosted-checkout-waiting" }, pr = /*#__PURE__*/ A(/* @__PURE__ */ l({
|
|
1757
|
+
__name: "HostedCheckoutWaiting",
|
|
1758
|
+
setup(e) {
|
|
1759
|
+
let { t } = y(), { isHostedPopupOpen: n } = te(le()), { reopenHostedCheckout: a } = le();
|
|
1760
|
+
return (e, o) => (s(), u("div", fr, [
|
|
1761
|
+
h(n) ? (s(), i(me, { key: 0 })) : r("", !0),
|
|
1762
|
+
m("p", null, E(h(t)("booking.payment.waitForCheckout")), 1),
|
|
1763
|
+
h(n) ? r("", !0) : (s(), i(fe, {
|
|
1764
|
+
key: 1,
|
|
1765
|
+
label: h(t)("booking.payment.reopenCheckout"),
|
|
1766
|
+
"full-width": "",
|
|
1767
|
+
onClickEvent: h(a)
|
|
1768
|
+
}, null, 8, ["label", "onClickEvent"]))
|
|
1769
|
+
]));
|
|
1770
|
+
}
|
|
1771
|
+
}), [["__scopeId", "data-v-9c81cada"]]), mr = /*#__PURE__*/ A(/* @__PURE__ */ l({
|
|
1772
|
+
__name: "CheckoutWindow",
|
|
1773
|
+
setup(e) {
|
|
1774
|
+
let { paymentGatewayId: t } = te(ie()), { isHostedCheckoutActive: n } = te(le());
|
|
1775
|
+
return c(() => {
|
|
1776
|
+
let e = document.createElement("script"), t = document.createElement("script");
|
|
1777
|
+
e.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), t.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(e), document.head.appendChild(t);
|
|
1778
|
+
}), (e, r) => (s(), u("div", null, [h(n) ? (s(), i(pr, { key: 0 })) : (s(), u("div", {
|
|
1779
|
+
key: 1,
|
|
1780
|
+
id: "konnectio-payment-checkout-wrapper",
|
|
1781
|
+
class: a({ reePay: h(t) === h(ue).ReePay })
|
|
1782
|
+
}, [...r[0] ||= [m("div", { id: "konnectio-payment-checkout" }, null, -1)]], 2))]));
|
|
1783
|
+
}
|
|
1784
|
+
}), [["__scopeId", "data-v-785105ee"]]);
|
|
1785
|
+
//#endregion
|
|
1786
|
+
export { tr as a, En as c, or as i, G as l, pr as n, $n as o, dr as r, Dn as s, mr as t };
|