@konnectio/core 4.5.1 → 4.5.3
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-CCjWElNQ.js → ActionField-DNcpBfUw.js} +38 -35
- package/dist/ActionField-DNcpBfUw.js.br +0 -0
- package/dist/ActionField-DNcpBfUw.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-IQbxzq3Q.js → AvailabilitySkeleton-Cr4_E8qd.js} +2 -2
- package/dist/AvailabilitySkeleton-Cr4_E8qd.js.br +0 -0
- package/dist/AvailabilitySkeleton-Cr4_E8qd.js.gz +0 -0
- package/dist/{CheckoutWindow-xnLaHTT5.js → CheckoutWindow-DASeSJKw.js} +1 -1
- package/dist/CheckoutWindow-DASeSJKw.js.br +0 -0
- package/dist/CheckoutWindow-DASeSJKw.js.gz +0 -0
- package/dist/{ErrorMessage-6_ULtG_D.js → ErrorMessage-BG3SMDdN.js} +2 -2
- package/dist/ErrorMessage-BG3SMDdN.js.br +0 -0
- package/dist/ErrorMessage-BG3SMDdN.js.gz +0 -0
- package/dist/{EventAvailabilityForm-Dq4WxMuL.js → EventAvailabilityForm-DzhikTSM.js} +2 -2
- package/dist/EventAvailabilityForm-DzhikTSM.js.br +0 -0
- package/dist/EventAvailabilityForm-DzhikTSM.js.gz +0 -0
- package/dist/{Field-00JXggoS.js → Field-Cfq1bVCS.js} +1 -1
- package/dist/Field-Cfq1bVCS.js.br +0 -0
- package/dist/Field-Cfq1bVCS.js.gz +5 -0
- package/dist/{HotelAvailabilityForm-D_mVPzOx.js → HotelAvailabilityForm-Bm-b1O1-.js} +2 -2
- package/dist/HotelAvailabilityForm-Bm-b1O1-.js.br +0 -0
- package/dist/HotelAvailabilityForm-Bm-b1O1-.js.gz +0 -0
- package/dist/{SelectField-BYcZ8xUa.js → SelectField-B71Q-kc3.js} +845 -839
- package/dist/SelectField-B71Q-kc3.js.br +0 -0
- package/dist/SelectField-B71Q-kc3.js.gz +0 -0
- package/dist/{TermsOfService-tFJBZdRe.js → TermsOfService-DvIah2dc.js} +2 -2
- package/dist/TermsOfService-DvIah2dc.js.br +0 -0
- package/dist/TermsOfService-DvIah2dc.js.gz +0 -0
- package/dist/{_-BZTN6PmS.js → _-C4NaLG3M.js} +1 -1
- package/dist/_-C4NaLG3M.js.br +0 -0
- package/dist/_-C4NaLG3M.js.gz +0 -0
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +4 -4
- 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/{dist-oox8Oy7m.js → dist-D5tRJnoA.js} +2 -2
- package/dist/dist-D5tRJnoA.js.br +0 -0
- package/dist/dist-D5tRJnoA.js.gz +0 -0
- package/dist/event.js +37 -36
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +9 -9
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-Dlw7i36H.js → giftCard-Bhb_vVph.js} +1 -1
- package/dist/giftCard-Bhb_vVph.js.br +0 -0
- package/dist/giftCard-Bhb_vVph.js.gz +0 -0
- package/dist/hotel.js +227 -206
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{masonry.plugin-qpD7rOEC.js → masonry.plugin-8XrKeEIb.js} +88 -46
- package/dist/masonry.plugin-8XrKeEIb.js.br +0 -0
- package/dist/masonry.plugin-8XrKeEIb.js.gz +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-CCnDB_V1.js → style-DP0Nh0EE.js} +1 -1
- package/dist/style-DP0Nh0EE.js.br +0 -0
- package/dist/style-DP0Nh0EE.js.gz +0 -0
- package/package.json +3 -4
- package/dist/ActionField-CCjWElNQ.js.br +0 -0
- package/dist/ActionField-CCjWElNQ.js.gz +0 -0
- package/dist/AvailabilitySkeleton-IQbxzq3Q.js.br +0 -0
- package/dist/AvailabilitySkeleton-IQbxzq3Q.js.gz +0 -0
- package/dist/CheckoutWindow-xnLaHTT5.js.br +0 -0
- package/dist/CheckoutWindow-xnLaHTT5.js.gz +0 -0
- package/dist/ErrorMessage-6_ULtG_D.js.br +0 -0
- package/dist/ErrorMessage-6_ULtG_D.js.gz +0 -0
- package/dist/EventAvailabilityForm-Dq4WxMuL.js.br +0 -0
- package/dist/EventAvailabilityForm-Dq4WxMuL.js.gz +0 -0
- package/dist/Field-00JXggoS.js.br +0 -0
- package/dist/Field-00JXggoS.js.gz +0 -0
- package/dist/HotelAvailabilityForm-D_mVPzOx.js.br +0 -0
- package/dist/HotelAvailabilityForm-D_mVPzOx.js.gz +0 -0
- package/dist/SelectField-BYcZ8xUa.js.br +0 -0
- package/dist/SelectField-BYcZ8xUa.js.gz +0 -0
- package/dist/TermsOfService-tFJBZdRe.js.br +0 -0
- package/dist/TermsOfService-tFJBZdRe.js.gz +0 -0
- package/dist/_-BZTN6PmS.js.br +0 -0
- package/dist/_-BZTN6PmS.js.gz +0 -5
- package/dist/dist-oox8Oy7m.js.br +0 -0
- package/dist/dist-oox8Oy7m.js.gz +0 -0
- package/dist/giftCard-Dlw7i36H.js.br +0 -0
- package/dist/giftCard-Dlw7i36H.js.gz +0 -0
- package/dist/masonry.plugin-qpD7rOEC.js.br +0 -0
- package/dist/masonry.plugin-qpD7rOEC.js.gz +0 -0
- package/dist/style-CCnDB_V1.js.br +0 -0
- package/dist/style-CCnDB_V1.js.gz +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { n as e } from "./chunk-BPfpcrXh.js";
|
|
2
|
-
import { $ as t, At as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, H as l, I as u, L as d, M as f, O as p, Ot as m, P as h, St as g, T as _, Tt as v, V as y, Y as b, _ as x, _t as S, at as C, bt as w, d as T, dt as E, et as D, ft as O, g as k, h as A, ht as j, i as ee, j as M, k as N, kt as te, l as
|
|
2
|
+
import { $ as t, At as n, Ct as r, D as i, Dt as a, E as o, Et as s, F as c, H as l, I as u, L as d, M as f, O as p, Ot as m, P as h, St as g, T as _, Tt as v, V as y, Y as b, _ as x, _t as S, at as C, bt as w, d as T, dt as E, et as D, ft as O, g as k, h as A, ht as j, i as ee, j as M, k as N, kt as te, l as ne, lt as P, mt as re, n as F, nt as ie, o as ae, q as oe, rt as se, t as ce, u as le, vt as ue, wt as de, x as fe, xt as I, y as pe, yt as me } from "./mitt-DrOLO7f9.js";
|
|
3
3
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
4
|
-
function
|
|
4
|
+
function L(e, t) {
|
|
5
5
|
return j() ? (S(e, t), !0) : !1;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var he = typeof window < "u" && typeof document < "u";
|
|
8
8
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
9
|
-
var
|
|
10
|
-
function
|
|
9
|
+
var ge = (e) => e != null, _e = Object.prototype.toString, ve = (e) => _e.call(e) === "[object Object]", ye = () => {}, be = /* @__PURE__ */ xe();
|
|
10
|
+
function xe() {
|
|
11
11
|
var e, t;
|
|
12
|
-
return
|
|
12
|
+
return he && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
if (e.length !== 1) return
|
|
14
|
+
function Se(...e) {
|
|
15
|
+
if (e.length !== 1) return de(...e);
|
|
16
16
|
let t = e[0];
|
|
17
|
-
return typeof t == "function" ? me(
|
|
17
|
+
return typeof t == "function" ? me(re(() => ({
|
|
18
18
|
get: t,
|
|
19
|
-
set:
|
|
19
|
+
set: ye
|
|
20
20
|
}))) : w(t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ce(e, t) {
|
|
23
23
|
function n(...n) {
|
|
24
24
|
return new Promise((r, i) => {
|
|
25
25
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -31,9 +31,9 @@ function we(e, t) {
|
|
|
31
31
|
}
|
|
32
32
|
return n;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
function
|
|
36
|
-
let { initialState: n = "active" } = t, r =
|
|
34
|
+
var we = (e) => e();
|
|
35
|
+
function Te(e = we, t = {}) {
|
|
36
|
+
let { initialState: n = "active" } = t, r = Se(n === "active");
|
|
37
37
|
function i() {
|
|
38
38
|
r.value = !1;
|
|
39
39
|
}
|
|
@@ -41,7 +41,7 @@ function Ee(e = Te, t = {}) {
|
|
|
41
41
|
r.value = !0;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
isActive:
|
|
44
|
+
isActive: I(r),
|
|
45
45
|
pause: i,
|
|
46
46
|
resume: a,
|
|
47
47
|
eventFilter: (...t) => {
|
|
@@ -49,7 +49,7 @@ function Ee(e = Te, t = {}) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ee(e) {
|
|
53
53
|
let t;
|
|
54
54
|
function n() {
|
|
55
55
|
return t ||= e(), t;
|
|
@@ -59,20 +59,20 @@ function De(e) {
|
|
|
59
59
|
t = void 0, e && await e;
|
|
60
60
|
}, n;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function De(e) {
|
|
63
63
|
return Array.isArray(e) ? e : [e];
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Oe(e) {
|
|
66
66
|
return e || c();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
let { eventFilter: r =
|
|
70
|
-
return
|
|
68
|
+
function ke(e, t, n = {}) {
|
|
69
|
+
let { eventFilter: r = we, ...i } = n;
|
|
70
|
+
return P(e, Ce(r, t), i);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } =
|
|
72
|
+
function Ae(e, t, n = {}) {
|
|
73
|
+
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = Te(r, { initialState: i });
|
|
74
74
|
return {
|
|
75
|
-
stop:
|
|
75
|
+
stop: ke(e, t, {
|
|
76
76
|
...a,
|
|
77
77
|
eventFilter: o
|
|
78
78
|
}),
|
|
@@ -81,10 +81,10 @@ function je(e, t, n = {}) {
|
|
|
81
81
|
isActive: l
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
84
|
+
function je(e, t = !0, n) {
|
|
85
|
+
Oe(n) ? oe(e, n) : t ? e() : l(e);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Me(e, t, n = {}) {
|
|
88
88
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = g(!1), o;
|
|
89
89
|
function s() {
|
|
90
90
|
o &&= (clearTimeout(o), void 0);
|
|
@@ -97,63 +97,63 @@ function Ne(e, t, n = {}) {
|
|
|
97
97
|
a.value = !1, o = void 0, e(...n);
|
|
98
98
|
}, v(t));
|
|
99
99
|
}
|
|
100
|
-
return r && (a.value = !0,
|
|
101
|
-
isPending:
|
|
100
|
+
return r && (a.value = !0, he && l()), L(c), {
|
|
101
|
+
isPending: I(a),
|
|
102
102
|
start: l,
|
|
103
103
|
stop: c
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function Ne(e, t, n) {
|
|
107
|
+
return P(e, t, {
|
|
108
108
|
...n,
|
|
109
109
|
immediate: !0
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region node_modules/@vueuse/core/dist/index.js
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
function
|
|
114
|
+
var Pe = he ? window : void 0;
|
|
115
|
+
he && window.document;
|
|
116
|
+
var Fe = he ? window.navigator : void 0;
|
|
117
|
+
he && window.location;
|
|
118
|
+
function R(e) {
|
|
119
119
|
let t = v(e);
|
|
120
120
|
return t?.$el ?? t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ie(...e) {
|
|
123
123
|
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = _(() => {
|
|
124
|
-
let t =
|
|
124
|
+
let t = De(v(e[0])).filter((e) => e != null);
|
|
125
125
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
126
126
|
});
|
|
127
|
-
return
|
|
128
|
-
n.value?.map((e) =>
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
return Ne(() => [
|
|
128
|
+
n.value?.map((e) => R(e)) ?? [Pe].filter((e) => e != null),
|
|
129
|
+
De(v(n.value ? e[1] : e[0])),
|
|
130
|
+
De(s(n.value ? e[2] : e[1])),
|
|
131
131
|
v(n.value ? e[3] : e[2])
|
|
132
132
|
], ([e, n, r, i], a, o) => {
|
|
133
133
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
134
|
-
let s =
|
|
134
|
+
let s = ve(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
135
135
|
o(() => {
|
|
136
136
|
c.forEach((e) => e());
|
|
137
137
|
});
|
|
138
138
|
}, { flush: "post" });
|
|
139
139
|
}
|
|
140
|
-
var
|
|
141
|
-
function
|
|
142
|
-
let { window: r =
|
|
140
|
+
var Le = !1;
|
|
141
|
+
function Re(e, t, n = {}) {
|
|
142
|
+
let { window: r = Pe, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
143
143
|
if (!r) return s ? {
|
|
144
|
-
stop:
|
|
145
|
-
cancel:
|
|
146
|
-
trigger:
|
|
147
|
-
} :
|
|
148
|
-
if (
|
|
149
|
-
|
|
144
|
+
stop: ye,
|
|
145
|
+
cancel: ye,
|
|
146
|
+
trigger: ye
|
|
147
|
+
} : ye;
|
|
148
|
+
if (be && !Le) {
|
|
149
|
+
Le = !0;
|
|
150
150
|
let e = { passive: !0 };
|
|
151
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
151
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", ye, e)), r.document.documentElement.addEventListener("click", ye, e);
|
|
152
152
|
}
|
|
153
153
|
let c = !0, l = (e) => v(i).some((t) => {
|
|
154
154
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
155
155
|
{
|
|
156
|
-
let n =
|
|
156
|
+
let n = R(t);
|
|
157
157
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
158
158
|
}
|
|
159
159
|
});
|
|
@@ -166,7 +166,7 @@ function ze(e, t, n = {}) {
|
|
|
166
166
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
167
167
|
}
|
|
168
168
|
let f = (n) => {
|
|
169
|
-
let r =
|
|
169
|
+
let r = R(e);
|
|
170
170
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
171
171
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
172
172
|
c = !0;
|
|
@@ -175,7 +175,7 @@ function ze(e, t, n = {}) {
|
|
|
175
175
|
t(n);
|
|
176
176
|
}
|
|
177
177
|
}, p = !1, m = [
|
|
178
|
-
|
|
178
|
+
Ie(r, "click", (e) => {
|
|
179
179
|
p || (p = !0, setTimeout(() => {
|
|
180
180
|
p = !1;
|
|
181
181
|
}, 0), f(e));
|
|
@@ -183,13 +183,13 @@ function ze(e, t, n = {}) {
|
|
|
183
183
|
passive: !0,
|
|
184
184
|
capture: a
|
|
185
185
|
}),
|
|
186
|
-
|
|
187
|
-
let n =
|
|
186
|
+
Ie(r, "pointerdown", (t) => {
|
|
187
|
+
let n = R(e);
|
|
188
188
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
189
189
|
}, { passive: !0 }),
|
|
190
|
-
o &&
|
|
190
|
+
o && Ie(r, "blur", (n) => {
|
|
191
191
|
setTimeout(() => {
|
|
192
|
-
let i =
|
|
192
|
+
let i = R(e), a = r.document.activeElement;
|
|
193
193
|
for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
|
|
194
194
|
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
195
195
|
}, 0);
|
|
@@ -205,23 +205,23 @@ function ze(e, t, n = {}) {
|
|
|
205
205
|
}
|
|
206
206
|
} : h;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function ze() {
|
|
209
209
|
let e = g(!1), t = c();
|
|
210
|
-
return t &&
|
|
210
|
+
return t && oe(() => {
|
|
211
211
|
e.value = !0;
|
|
212
212
|
}, t), e;
|
|
213
213
|
}
|
|
214
214
|
/* @__NO_SIDE_EFFECTS__ */
|
|
215
|
-
function
|
|
216
|
-
let t =
|
|
215
|
+
function Be(e) {
|
|
216
|
+
let t = ze();
|
|
217
217
|
return _(() => (t.value, !!e()));
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
let { controls: n = !1, navigator: i =
|
|
219
|
+
function Ve(e, t = {}) {
|
|
220
|
+
let { controls: n = !1, navigator: i = Fe } = t, a = /* @__PURE__ */ Be(() => i && "permissions" in i), o = g(), s = typeof e == "string" ? { name: e } : e, c = g(), l = () => {
|
|
221
221
|
c.value = o.value?.state ?? "prompt";
|
|
222
222
|
};
|
|
223
|
-
|
|
224
|
-
let u =
|
|
223
|
+
Ie(o, "change", l, { passive: !0 });
|
|
224
|
+
let u = Ee(async () => {
|
|
225
225
|
if (a.value) {
|
|
226
226
|
if (!o.value) try {
|
|
227
227
|
o.value = await i.permissions.query(s);
|
|
@@ -239,8 +239,8 @@ function He(e, t = {}) {
|
|
|
239
239
|
query: u
|
|
240
240
|
} : c;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
let { navigator: t =
|
|
242
|
+
function He(e = {}) {
|
|
243
|
+
let { navigator: t = Fe, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ Be(() => t && "clipboard" in t), s = Ve("clipboard-read"), c = Ve("clipboard-write"), l = _(() => o.value || a), u = g(""), d = g(!1), f = g(!1), p = Me(() => d.value = !1, i, { immediate: !1 }), m = 0;
|
|
244
244
|
async function h() {
|
|
245
245
|
let e = !(o.value && C(s.value));
|
|
246
246
|
if (!e) try {
|
|
@@ -250,7 +250,7 @@ function Ue(e = {}) {
|
|
|
250
250
|
}
|
|
251
251
|
e && (u.value = S());
|
|
252
252
|
}
|
|
253
|
-
l.value && n &&
|
|
253
|
+
l.value && n && Ie(["copy", "cut"], h, { passive: !0 });
|
|
254
254
|
async function y(e) {
|
|
255
255
|
let n = e ?? v(r);
|
|
256
256
|
if (l.value && n != null) {
|
|
@@ -285,24 +285,24 @@ function Ue(e = {}) {
|
|
|
285
285
|
return e === "granted" || e === "prompt";
|
|
286
286
|
}
|
|
287
287
|
return {
|
|
288
|
-
copyPending:
|
|
288
|
+
copyPending: I(f),
|
|
289
289
|
isSupported: l,
|
|
290
|
-
text:
|
|
291
|
-
copied:
|
|
290
|
+
text: I(u),
|
|
291
|
+
copied: I(d),
|
|
292
292
|
copy: y
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
var
|
|
296
|
-
function
|
|
297
|
-
return
|
|
295
|
+
var Ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__", Ge = /* @__PURE__ */ Ke();
|
|
296
|
+
function Ke() {
|
|
297
|
+
return We in Ue || (Ue[We] = Ue[We] || {}), Ue[We];
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
return
|
|
299
|
+
function qe(e, t) {
|
|
300
|
+
return Ge[e] || t;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Je(e) {
|
|
303
303
|
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
|
|
304
304
|
}
|
|
305
|
-
var
|
|
305
|
+
var z = {
|
|
306
306
|
boolean: {
|
|
307
307
|
read: (e) => e === "true",
|
|
308
308
|
write: (e) => String(e)
|
|
@@ -335,29 +335,29 @@ var R = {
|
|
|
335
335
|
read: (e) => new Date(e),
|
|
336
336
|
write: (e) => e.toISOString()
|
|
337
337
|
}
|
|
338
|
-
},
|
|
339
|
-
function
|
|
340
|
-
let { flush: i = "pre", deep: a = !0, listenToStorageChanges: o = !0, writeDefaults: s = !0, mergeDefaults: c = !1, shallow: u, window: d =
|
|
338
|
+
}, Ye = "vueuse-storage";
|
|
339
|
+
function B(e, t, n, r = {}) {
|
|
340
|
+
let { flush: i = "pre", deep: a = !0, listenToStorageChanges: o = !0, writeDefaults: s = !0, mergeDefaults: c = !1, shallow: u, window: d = Pe, eventFilter: f, onError: p = (e) => {
|
|
341
341
|
console.error(e);
|
|
342
342
|
}, initOnMounted: m } = r, h = (u ? g : w)(typeof t == "function" ? t() : t), y = _(() => v(e));
|
|
343
343
|
if (!n) try {
|
|
344
|
-
n =
|
|
344
|
+
n = qe("getDefaultStorage", () => Pe?.localStorage)();
|
|
345
345
|
} catch (e) {
|
|
346
346
|
p(e);
|
|
347
347
|
}
|
|
348
348
|
if (!n) return h;
|
|
349
|
-
let b = v(t), x =
|
|
349
|
+
let b = v(t), x = Je(b), S = r.serializer ?? z[x], { pause: C, resume: T } = Ae(h, (e) => O(e), {
|
|
350
350
|
flush: i,
|
|
351
351
|
deep: a,
|
|
352
352
|
eventFilter: f
|
|
353
353
|
});
|
|
354
|
-
|
|
354
|
+
P(y, () => A(), { flush: i });
|
|
355
355
|
let E = !1;
|
|
356
|
-
d && o && (n instanceof Storage ?
|
|
356
|
+
d && o && (n instanceof Storage ? Ie(d, "storage", (e) => {
|
|
357
357
|
m && !E || A(e);
|
|
358
|
-
}, { passive: !0 }) :
|
|
358
|
+
}, { passive: !0 }) : Ie(d, Ye, (e) => {
|
|
359
359
|
m && !E || j(e);
|
|
360
|
-
})), m ?
|
|
360
|
+
})), m ? je(() => {
|
|
361
361
|
E = !0, A();
|
|
362
362
|
}) : A();
|
|
363
363
|
function D(e, t) {
|
|
@@ -368,7 +368,7 @@ function z(e, t, n, r = {}) {
|
|
|
368
368
|
newValue: t,
|
|
369
369
|
storageArea: n
|
|
370
370
|
};
|
|
371
|
-
d.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(
|
|
371
|
+
d.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(Ye, { detail: r }));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
function O(e) {
|
|
@@ -419,29 +419,29 @@ function z(e, t, n, r = {}) {
|
|
|
419
419
|
}
|
|
420
420
|
return h;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
let { root: r, rootMargin: i, threshold: a = 0, window: o =
|
|
422
|
+
function Xe(e, t, n = {}) {
|
|
423
|
+
let { root: r, rootMargin: i, threshold: a = 0, window: o = Pe, immediate: s = !0 } = n, c = /* @__PURE__ */ Be(() => o && "IntersectionObserver" in o), l = _(() => De(v(e)).map(R).filter(ge)), u = ye, d = g(s), f = c.value ? P(() => [
|
|
424
424
|
l.value,
|
|
425
|
-
|
|
425
|
+
R(r),
|
|
426
426
|
v(i),
|
|
427
427
|
d.value
|
|
428
428
|
], ([e, n, r]) => {
|
|
429
429
|
if (u(), !d.value || !e.length) return;
|
|
430
430
|
let i = new IntersectionObserver(t, {
|
|
431
|
-
root:
|
|
431
|
+
root: R(n),
|
|
432
432
|
rootMargin: r,
|
|
433
433
|
threshold: a
|
|
434
434
|
});
|
|
435
435
|
e.forEach((e) => e && i.observe(e)), u = () => {
|
|
436
|
-
i.disconnect(), u =
|
|
436
|
+
i.disconnect(), u = ye;
|
|
437
437
|
};
|
|
438
438
|
}, {
|
|
439
439
|
immediate: s,
|
|
440
440
|
flush: "post"
|
|
441
|
-
}) :
|
|
441
|
+
}) : ye, p = () => {
|
|
442
442
|
u(), f(), d.value = !1;
|
|
443
443
|
};
|
|
444
|
-
return
|
|
444
|
+
return L(p), {
|
|
445
445
|
isSupported: c,
|
|
446
446
|
isActive: d,
|
|
447
447
|
pause() {
|
|
@@ -453,11 +453,11 @@ function Ze(e, t, n = {}) {
|
|
|
453
453
|
stop: p
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
let { threshold: n = 50, onSwipe: r, onSwipeEnd: i, onSwipeStart: a, passive: o = !0 } = t, s =
|
|
456
|
+
function Ze(e, t = {}) {
|
|
457
|
+
let { threshold: n = 50, onSwipe: r, onSwipeEnd: i, onSwipeStart: a, passive: o = !0 } = t, s = ue({
|
|
458
458
|
x: 0,
|
|
459
459
|
y: 0
|
|
460
|
-
}), c =
|
|
460
|
+
}), c = ue({
|
|
461
461
|
x: 0,
|
|
462
462
|
y: 0
|
|
463
463
|
}), l = _(() => s.x - c.x), u = _(() => s.y - c.y), { max: d, abs: f } = Math, p = _(() => d(f(l.value), f(u.value)) >= n), m = g(!1), h = _(() => p.value ? f(l.value) > f(u.value) ? l.value > 0 ? "left" : "right" : u.value > 0 ? "up" : "down" : "none"), v = (e) => [e.touches[0].clientX, e.touches[0].clientY], y = (e, t) => {
|
|
@@ -468,17 +468,17 @@ function Qe(e, t = {}) {
|
|
|
468
468
|
passive: o,
|
|
469
469
|
capture: !o
|
|
470
470
|
}, S = [
|
|
471
|
-
|
|
471
|
+
Ie(e, "touchstart", (e) => {
|
|
472
472
|
if (e.touches.length !== 1) return;
|
|
473
473
|
let [t, n] = v(e);
|
|
474
474
|
y(t, n), b(t, n), a?.(e);
|
|
475
475
|
}, x),
|
|
476
|
-
|
|
476
|
+
Ie(e, "touchmove", (e) => {
|
|
477
477
|
if (e.touches.length !== 1) return;
|
|
478
478
|
let [t, n] = v(e);
|
|
479
479
|
b(t, n), x.capture && !x.passive && Math.abs(l.value) > Math.abs(u.value) && e.preventDefault(), !m.value && p.value && (m.value = !0), m.value && r?.(e);
|
|
480
480
|
}, x),
|
|
481
|
-
|
|
481
|
+
Ie(e, ["touchend", "touchcancel"], (e) => {
|
|
482
482
|
m.value && i?.(e, h.value), m.value = !1;
|
|
483
483
|
}, x)
|
|
484
484
|
];
|
|
@@ -492,10 +492,10 @@ function Qe(e, t = {}) {
|
|
|
492
492
|
stop: () => S.forEach((e) => e())
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
let { initialValue: n = {}, removeNullishValues: r = !0, removeFalsyValues: i = !1, write: a = !0, writeMode: o = "replace", window: s =
|
|
497
|
-
if (!s) return
|
|
498
|
-
let u =
|
|
495
|
+
function Qe(e = "history", t = {}) {
|
|
496
|
+
let { initialValue: n = {}, removeNullishValues: r = !0, removeFalsyValues: i = !1, write: a = !0, writeMode: o = "replace", window: s = Pe, stringify: c = (e) => e.toString() } = t;
|
|
497
|
+
if (!s) return ue(n);
|
|
498
|
+
let u = ue({});
|
|
499
499
|
function d() {
|
|
500
500
|
if (e === "history") return s.location.search || "";
|
|
501
501
|
if (e === "hash") {
|
|
@@ -521,7 +521,7 @@ function $e(e = "history", t = {}) {
|
|
|
521
521
|
}
|
|
522
522
|
Array.from(t).forEach((e) => delete u[e]);
|
|
523
523
|
}
|
|
524
|
-
let { pause: h, resume: g } =
|
|
524
|
+
let { pause: h, resume: g } = Ae(u, () => {
|
|
525
525
|
let e = new URLSearchParams("");
|
|
526
526
|
Object.keys(u).forEach((t) => {
|
|
527
527
|
let n = u[t];
|
|
@@ -535,32 +535,32 @@ function $e(e = "history", t = {}) {
|
|
|
535
535
|
a && _(p(), !0, !1);
|
|
536
536
|
}
|
|
537
537
|
let y = { passive: !0 };
|
|
538
|
-
|
|
538
|
+
Ie(s, "popstate", v, y), e !== "history" && Ie(s, "hashchange", v, y);
|
|
539
539
|
let b = p();
|
|
540
540
|
return b.keys().next().value ? m(b) : Object.assign(u, n), u;
|
|
541
541
|
}
|
|
542
542
|
//#endregion
|
|
543
543
|
//#region node_modules/linkifyjs/dist/linkify.mjs
|
|
544
|
-
var
|
|
545
|
-
function
|
|
544
|
+
var $e = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", et = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", tt = "numeric", nt = "ascii", rt = "alpha", it = "asciinumeric", at = "alphanumeric", ot = "domain", st = "emoji", ct = "scheme", lt = "slashscheme", ut = "whitespace";
|
|
545
|
+
function dt(e, t) {
|
|
546
546
|
return e in t || (t[e] = []), t[e];
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
t[
|
|
548
|
+
function ft(e, t, n) {
|
|
549
|
+
t[tt] && (t[it] = !0, t[at] = !0), t[nt] && (t[it] = !0, t[rt] = !0), t[it] && (t[at] = !0), t[rt] && (t[at] = !0), t[at] && (t[ot] = !0), t[st] && (t[ot] = !0);
|
|
550
550
|
for (let r in t) {
|
|
551
|
-
let t =
|
|
551
|
+
let t = dt(r, n);
|
|
552
552
|
t.indexOf(e) < 0 && t.push(e);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function pt(e, t) {
|
|
556
556
|
let n = {};
|
|
557
557
|
for (let r in t) t[r].indexOf(e) >= 0 && (n[r] = !0);
|
|
558
558
|
return n;
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function mt(e = null) {
|
|
561
561
|
this.j = {}, this.jr = [], this.jd = null, this.t = e;
|
|
562
562
|
}
|
|
563
|
-
|
|
563
|
+
mt.groups = {}, mt.prototype = {
|
|
564
564
|
accepts() {
|
|
565
565
|
return !!this.t;
|
|
566
566
|
},
|
|
@@ -580,9 +580,9 @@ ht.groups = {}, ht.prototype = {
|
|
|
580
580
|
for (let i = 0; i < e.length; i++) this.tt(e[i], t, n, r);
|
|
581
581
|
},
|
|
582
582
|
tr(e, t, n, r) {
|
|
583
|
-
r ||=
|
|
583
|
+
r ||= mt.groups;
|
|
584
584
|
let i;
|
|
585
|
-
return t && t.j ? i = t : (i = new
|
|
585
|
+
return t && t.j ? i = t : (i = new mt(t), n && r && ft(t, n, r)), this.jr.push([e, i]), i;
|
|
586
586
|
},
|
|
587
587
|
ts(e, t, n, r) {
|
|
588
588
|
let i = this, a = e.length;
|
|
@@ -591,119 +591,119 @@ ht.groups = {}, ht.prototype = {
|
|
|
591
591
|
return i.tt(e[a - 1], t, n, r);
|
|
592
592
|
},
|
|
593
593
|
tt(e, t, n, r) {
|
|
594
|
-
r ||=
|
|
594
|
+
r ||= mt.groups;
|
|
595
595
|
let i = this;
|
|
596
596
|
if (t && t.j) return i.j[e] = t, t;
|
|
597
597
|
let a = t, o, s = i.go(e);
|
|
598
|
-
return s ? (o = new
|
|
598
|
+
return s ? (o = new mt(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new mt(), a && (r && (o.t && typeof o.t == "string" ? ft(a, Object.assign(pt(o.t, r), n), r) : n && ft(a, n, r)), o.t = a), i.j[e] = o, o;
|
|
599
599
|
}
|
|
600
600
|
};
|
|
601
|
-
var
|
|
601
|
+
var V = (e, t, n, r, i) => e.ta(t, n, r, i), H = (e, t, n, r, i) => e.tr(t, n, r, i), ht = (e, t, n, r, i) => e.ts(t, n, r, i), U = (e, t, n, r, i) => e.tt(t, n, r, i), gt = "WORD", _t = "UWORD", vt = "ASCIINUMERICAL", yt = "ALPHANUMERICAL", bt = "LOCALHOST", xt = "TLD", St = "UTLD", Ct = "SCHEME", wt = "SLASH_SCHEME", Tt = "NUM", Et = "WS", Dt = "NL", Ot = "OPENBRACE", kt = "CLOSEBRACE", At = "OPENBRACKET", jt = "CLOSEBRACKET", Mt = "OPENPAREN", Nt = "CLOSEPAREN", Pt = "OPENANGLEBRACKET", Ft = "CLOSEANGLEBRACKET", It = "FULLWIDTHLEFTPAREN", Lt = "FULLWIDTHRIGHTPAREN", Rt = "LEFTCORNERBRACKET", zt = "RIGHTCORNERBRACKET", Bt = "LEFTWHITECORNERBRACKET", Vt = "RIGHTWHITECORNERBRACKET", Ht = "FULLWIDTHLESSTHAN", Ut = "FULLWIDTHGREATERTHAN", Wt = "AMPERSAND", Gt = "APOSTROPHE", Kt = "ASTERISK", qt = "AT", Jt = "BACKSLASH", Yt = "BACKTICK", Xt = "CARET", Zt = "COLON", Qt = "COMMA", $t = "DOLLAR", en = "DOT", tn = "EQUALS", nn = "EXCLAMATION", rn = "HYPHEN", an = "PERCENT", on = "PIPE", sn = "PLUS", cn = "POUND", ln = "QUERY", un = "QUOTE", dn = "FULLWIDTHMIDDLEDOT", fn = "SEMI", pn = "SLASH", mn = "TILDE", hn = "UNDERSCORE", gn = "EMOJI", _n = "SYM", vn = /* @__PURE__ */ Object.freeze({
|
|
602
602
|
__proto__: null,
|
|
603
|
-
ALPHANUMERICAL:
|
|
604
|
-
AMPERSAND:
|
|
605
|
-
APOSTROPHE:
|
|
606
|
-
ASCIINUMERICAL:
|
|
607
|
-
ASTERISK:
|
|
608
|
-
AT:
|
|
609
|
-
BACKSLASH:
|
|
610
|
-
BACKTICK:
|
|
611
|
-
CARET:
|
|
612
|
-
CLOSEANGLEBRACKET:
|
|
613
|
-
CLOSEBRACE:
|
|
614
|
-
CLOSEBRACKET:
|
|
615
|
-
CLOSEPAREN:
|
|
616
|
-
COLON:
|
|
617
|
-
COMMA:
|
|
618
|
-
DOLLAR:
|
|
619
|
-
DOT:
|
|
620
|
-
EMOJI:
|
|
621
|
-
EQUALS:
|
|
622
|
-
EXCLAMATION:
|
|
623
|
-
FULLWIDTHGREATERTHAN:
|
|
624
|
-
FULLWIDTHLEFTPAREN:
|
|
625
|
-
FULLWIDTHLESSTHAN:
|
|
626
|
-
FULLWIDTHMIDDLEDOT:
|
|
627
|
-
FULLWIDTHRIGHTPAREN:
|
|
628
|
-
HYPHEN:
|
|
629
|
-
LEFTCORNERBRACKET:
|
|
630
|
-
LEFTWHITECORNERBRACKET:
|
|
631
|
-
LOCALHOST:
|
|
632
|
-
NL:
|
|
633
|
-
NUM:
|
|
634
|
-
OPENANGLEBRACKET:
|
|
635
|
-
OPENBRACE:
|
|
636
|
-
OPENBRACKET:
|
|
637
|
-
OPENPAREN:
|
|
638
|
-
PERCENT:
|
|
639
|
-
PIPE:
|
|
640
|
-
PLUS:
|
|
641
|
-
POUND:
|
|
642
|
-
QUERY:
|
|
643
|
-
QUOTE:
|
|
644
|
-
RIGHTCORNERBRACKET:
|
|
645
|
-
RIGHTWHITECORNERBRACKET:
|
|
646
|
-
SCHEME:
|
|
647
|
-
SEMI:
|
|
648
|
-
SLASH:
|
|
649
|
-
SLASH_SCHEME:
|
|
650
|
-
SYM:
|
|
651
|
-
TILDE:
|
|
652
|
-
TLD:
|
|
653
|
-
UNDERSCORE:
|
|
654
|
-
UTLD:
|
|
655
|
-
UWORD:
|
|
656
|
-
WORD:
|
|
657
|
-
WS:
|
|
658
|
-
}),
|
|
659
|
-
function
|
|
603
|
+
ALPHANUMERICAL: yt,
|
|
604
|
+
AMPERSAND: Wt,
|
|
605
|
+
APOSTROPHE: Gt,
|
|
606
|
+
ASCIINUMERICAL: vt,
|
|
607
|
+
ASTERISK: Kt,
|
|
608
|
+
AT: qt,
|
|
609
|
+
BACKSLASH: Jt,
|
|
610
|
+
BACKTICK: Yt,
|
|
611
|
+
CARET: Xt,
|
|
612
|
+
CLOSEANGLEBRACKET: Ft,
|
|
613
|
+
CLOSEBRACE: kt,
|
|
614
|
+
CLOSEBRACKET: jt,
|
|
615
|
+
CLOSEPAREN: Nt,
|
|
616
|
+
COLON: Zt,
|
|
617
|
+
COMMA: Qt,
|
|
618
|
+
DOLLAR: $t,
|
|
619
|
+
DOT: en,
|
|
620
|
+
EMOJI: gn,
|
|
621
|
+
EQUALS: tn,
|
|
622
|
+
EXCLAMATION: nn,
|
|
623
|
+
FULLWIDTHGREATERTHAN: Ut,
|
|
624
|
+
FULLWIDTHLEFTPAREN: It,
|
|
625
|
+
FULLWIDTHLESSTHAN: Ht,
|
|
626
|
+
FULLWIDTHMIDDLEDOT: dn,
|
|
627
|
+
FULLWIDTHRIGHTPAREN: Lt,
|
|
628
|
+
HYPHEN: rn,
|
|
629
|
+
LEFTCORNERBRACKET: Rt,
|
|
630
|
+
LEFTWHITECORNERBRACKET: Bt,
|
|
631
|
+
LOCALHOST: bt,
|
|
632
|
+
NL: Dt,
|
|
633
|
+
NUM: Tt,
|
|
634
|
+
OPENANGLEBRACKET: Pt,
|
|
635
|
+
OPENBRACE: Ot,
|
|
636
|
+
OPENBRACKET: At,
|
|
637
|
+
OPENPAREN: Mt,
|
|
638
|
+
PERCENT: an,
|
|
639
|
+
PIPE: on,
|
|
640
|
+
PLUS: sn,
|
|
641
|
+
POUND: cn,
|
|
642
|
+
QUERY: ln,
|
|
643
|
+
QUOTE: un,
|
|
644
|
+
RIGHTCORNERBRACKET: zt,
|
|
645
|
+
RIGHTWHITECORNERBRACKET: Vt,
|
|
646
|
+
SCHEME: Ct,
|
|
647
|
+
SEMI: fn,
|
|
648
|
+
SLASH: pn,
|
|
649
|
+
SLASH_SCHEME: wt,
|
|
650
|
+
SYM: _n,
|
|
651
|
+
TILDE: mn,
|
|
652
|
+
TLD: xt,
|
|
653
|
+
UNDERSCORE: hn,
|
|
654
|
+
UTLD: St,
|
|
655
|
+
UWORD: _t,
|
|
656
|
+
WORD: gt,
|
|
657
|
+
WS: Et
|
|
658
|
+
}), yn = /[a-z]/, bn = /\p{L}/u, xn = /\p{Emoji}/u, Sn = /\d/, Cn = /\s/, wn = "\r", Tn = "\n", En = "️", Dn = "", On = "", kn = null, An = null;
|
|
659
|
+
function jn(e = []) {
|
|
660
660
|
let t = {};
|
|
661
|
-
|
|
662
|
-
let n = new
|
|
663
|
-
|
|
664
|
-
let r =
|
|
665
|
-
|
|
666
|
-
let i =
|
|
667
|
-
|
|
668
|
-
let s =
|
|
669
|
-
|
|
670
|
-
let c =
|
|
671
|
-
|
|
672
|
-
let d =
|
|
673
|
-
|
|
674
|
-
let f =
|
|
675
|
-
|
|
676
|
-
let p = [[
|
|
677
|
-
[
|
|
678
|
-
[
|
|
679
|
-
[
|
|
661
|
+
mt.groups = t;
|
|
662
|
+
let n = new mt();
|
|
663
|
+
kn ??= Fn($e), An ??= Fn(et), U(n, "'", Gt), U(n, "{", Ot), U(n, "}", kt), U(n, "[", At), U(n, "]", jt), U(n, "(", Mt), U(n, ")", Nt), U(n, "<", Pt), U(n, ">", Ft), U(n, "(", It), U(n, ")", Lt), U(n, "「", Rt), U(n, "」", zt), U(n, "『", Bt), U(n, "』", Vt), U(n, "<", Ht), U(n, ">", Ut), U(n, "&", Wt), U(n, "*", Kt), U(n, "@", qt), U(n, "`", Yt), U(n, "^", Xt), U(n, ":", Zt), U(n, ",", Qt), U(n, "$", $t), U(n, ".", en), U(n, "=", tn), U(n, "!", nn), U(n, "-", rn), U(n, "%", an), U(n, "|", on), U(n, "+", sn), U(n, "#", cn), U(n, "?", ln), U(n, "\"", un), U(n, "/", pn), U(n, ";", fn), U(n, "~", mn), U(n, "_", hn), U(n, "\\", Jt), U(n, "・", dn);
|
|
664
|
+
let r = H(n, Sn, Tt, { [tt]: !0 });
|
|
665
|
+
H(r, Sn, r);
|
|
666
|
+
let i = H(r, yn, vt, { [it]: !0 }), a = H(r, bn, yt, { [at]: !0 }), o = H(n, yn, gt, { [nt]: !0 });
|
|
667
|
+
H(o, Sn, i), H(o, yn, o), H(i, Sn, i), H(i, yn, i);
|
|
668
|
+
let s = H(n, bn, _t, { [rt]: !0 });
|
|
669
|
+
H(s, yn), H(s, Sn, a), H(s, bn, s), H(a, Sn, a), H(a, yn), H(a, bn, a);
|
|
670
|
+
let c = U(n, Tn, Dt, { [ut]: !0 }), l = U(n, wn, Et, { [ut]: !0 }), u = H(n, Cn, Et, { [ut]: !0 });
|
|
671
|
+
U(n, On, u), U(l, Tn, c), U(l, On, u), H(l, Cn, u), U(u, wn), U(u, Tn), H(u, Cn, u), U(u, On, u);
|
|
672
|
+
let d = H(n, xn, gn, { [st]: !0 });
|
|
673
|
+
U(d, "#"), H(d, xn, d), U(d, En, d);
|
|
674
|
+
let f = U(d, Dn);
|
|
675
|
+
U(f, "#"), H(f, xn, d);
|
|
676
|
+
let p = [[yn, o], [Sn, i]], m = [
|
|
677
|
+
[yn, null],
|
|
678
|
+
[bn, s],
|
|
679
|
+
[Sn, a]
|
|
680
680
|
];
|
|
681
|
-
for (let e = 0; e <
|
|
682
|
-
for (let e = 0; e <
|
|
683
|
-
|
|
681
|
+
for (let e = 0; e < kn.length; e++) Pn(n, kn[e], xt, gt, p);
|
|
682
|
+
for (let e = 0; e < An.length; e++) Pn(n, An[e], St, _t, m);
|
|
683
|
+
ft(xt, {
|
|
684
684
|
tld: !0,
|
|
685
685
|
ascii: !0
|
|
686
|
-
}, t),
|
|
686
|
+
}, t), ft(St, {
|
|
687
687
|
utld: !0,
|
|
688
688
|
alpha: !0
|
|
689
|
-
}, t),
|
|
689
|
+
}, t), Pn(n, "file", Ct, gt, p), Pn(n, "mailto", Ct, gt, p), Pn(n, "http", wt, gt, p), Pn(n, "https", wt, gt, p), Pn(n, "ftp", wt, gt, p), Pn(n, "ftps", wt, gt, p), ft(Ct, {
|
|
690
690
|
scheme: !0,
|
|
691
691
|
ascii: !0
|
|
692
|
-
}, t),
|
|
692
|
+
}, t), ft(wt, {
|
|
693
693
|
slashscheme: !0,
|
|
694
694
|
ascii: !0
|
|
695
695
|
}, t), e = e.sort((e, t) => e[0] > t[0] ? 1 : -1);
|
|
696
696
|
for (let t = 0; t < e.length; t++) {
|
|
697
|
-
let r = e[t][0], i = e[t][1] ? { [
|
|
698
|
-
r.indexOf("-") >= 0 ? i[
|
|
697
|
+
let r = e[t][0], i = e[t][1] ? { [ct]: !0 } : { [lt]: !0 };
|
|
698
|
+
r.indexOf("-") >= 0 ? i[ot] = !0 : yn.test(r) ? Sn.test(r) ? i[it] = !0 : i[nt] = !0 : i[tt] = !0, ht(n, r, r, i);
|
|
699
699
|
}
|
|
700
|
-
return
|
|
700
|
+
return ht(n, "localhost", bt, { ascii: !0 }), n.jd = new mt(_n), {
|
|
701
701
|
start: n,
|
|
702
|
-
tokens: Object.assign({ groups: t },
|
|
702
|
+
tokens: Object.assign({ groups: t }, vn)
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
let n =
|
|
705
|
+
function Mn(e, t) {
|
|
706
|
+
let n = Nn(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
|
|
707
707
|
for (; o < r;) {
|
|
708
708
|
let s = e, c = null, l = 0, u = null, d = -1, f = -1;
|
|
709
709
|
for (; o < r && (c = s.go(n[o]));) s = c, s.accepts() ? (d = 0, f = 0, u = s) : d >= 0 && (d += n[o].length, f++), l += n[o].length, a += n[o].length, o++;
|
|
@@ -716,7 +716,7 @@ function Nn(e, t) {
|
|
|
716
716
|
}
|
|
717
717
|
return i;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Nn(e) {
|
|
720
720
|
let t = [], n = e.length, r = 0;
|
|
721
721
|
for (; r < n;) {
|
|
722
722
|
let i = e.charCodeAt(r), a, o = i < 55296 || i > 56319 || r + 1 === n || (a = e.charCodeAt(r + 1)) < 56320 || a > 57343 ? e[r] : e.slice(r, r + 2);
|
|
@@ -724,15 +724,15 @@ function Pn(e) {
|
|
|
724
724
|
}
|
|
725
725
|
return t;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Pn(e, t, n, r, i) {
|
|
728
728
|
let a, o = t.length;
|
|
729
729
|
for (let n = 0; n < o - 1; n++) {
|
|
730
730
|
let o = t[n];
|
|
731
|
-
e.j[o] ? a = e.j[o] : (a = new
|
|
731
|
+
e.j[o] ? a = e.j[o] : (a = new mt(r), a.jr = i.slice(), e.j[o] = a), e = a;
|
|
732
732
|
}
|
|
733
|
-
return a = new
|
|
733
|
+
return a = new mt(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Fn(e) {
|
|
736
736
|
let t = [], n = [], r = 0;
|
|
737
737
|
for (; r < e.length;) {
|
|
738
738
|
let i = 0;
|
|
@@ -745,11 +745,11 @@ function In(e) {
|
|
|
745
745
|
}
|
|
746
746
|
return t;
|
|
747
747
|
}
|
|
748
|
-
var
|
|
748
|
+
var In = {
|
|
749
749
|
defaultProtocol: "http",
|
|
750
750
|
events: null,
|
|
751
|
-
format:
|
|
752
|
-
formatHref:
|
|
751
|
+
format: Rn,
|
|
752
|
+
formatHref: Rn,
|
|
753
753
|
nl2br: !1,
|
|
754
754
|
tagName: "a",
|
|
755
755
|
target: null,
|
|
@@ -761,15 +761,15 @@ var Ln = {
|
|
|
761
761
|
ignoreTags: [],
|
|
762
762
|
render: null
|
|
763
763
|
};
|
|
764
|
-
function
|
|
765
|
-
let n = Object.assign({},
|
|
766
|
-
e && (n = Object.assign(n, e instanceof
|
|
764
|
+
function Ln(e, t = null) {
|
|
765
|
+
let n = Object.assign({}, In);
|
|
766
|
+
e && (n = Object.assign(n, e instanceof Ln ? e.o : e));
|
|
767
767
|
let r = n.ignoreTags, i = [];
|
|
768
768
|
for (let e = 0; e < r.length; e++) i.push(r[e].toUpperCase());
|
|
769
769
|
this.o = n, t && (this.defaultRender = t), this.ignoreTags = i;
|
|
770
770
|
}
|
|
771
|
-
|
|
772
|
-
o:
|
|
771
|
+
Ln.prototype = {
|
|
772
|
+
o: In,
|
|
773
773
|
ignoreTags: [],
|
|
774
774
|
defaultRender(e) {
|
|
775
775
|
return e;
|
|
@@ -779,7 +779,7 @@ Rn.prototype = {
|
|
|
779
779
|
},
|
|
780
780
|
get(e, t, n) {
|
|
781
781
|
let r = t != null, i = this.o[e];
|
|
782
|
-
return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] :
|
|
782
|
+
return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : In[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
|
|
783
783
|
},
|
|
784
784
|
getObj(e, t, n) {
|
|
785
785
|
let r = this.o[e];
|
|
@@ -790,13 +790,13 @@ Rn.prototype = {
|
|
|
790
790
|
return (this.get("render", null, e) || this.defaultRender)(t, e.t, e);
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
|
-
function
|
|
793
|
+
function Rn(e) {
|
|
794
794
|
return e;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function zn(e, t) {
|
|
797
797
|
this.t = "token", this.v = e, this.tk = t;
|
|
798
798
|
}
|
|
799
|
-
|
|
799
|
+
zn.prototype = {
|
|
800
800
|
isLink: !1,
|
|
801
801
|
toString() {
|
|
802
802
|
return this.v;
|
|
@@ -817,7 +817,7 @@ Bn.prototype = {
|
|
|
817
817
|
endIndex() {
|
|
818
818
|
return this.tk[this.tk.length - 1].e;
|
|
819
819
|
},
|
|
820
|
-
toObject(e =
|
|
820
|
+
toObject(e = In.defaultProtocol) {
|
|
821
821
|
return {
|
|
822
822
|
type: this.t,
|
|
823
823
|
value: this.toString(),
|
|
@@ -850,8 +850,8 @@ Bn.prototype = {
|
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
function
|
|
854
|
-
class n extends
|
|
853
|
+
function Bn(e, t) {
|
|
854
|
+
class n extends zn {
|
|
855
855
|
constructor(t, n) {
|
|
856
856
|
super(t, n), this.t = e;
|
|
857
857
|
}
|
|
@@ -859,138 +859,138 @@ function Vn(e, t) {
|
|
|
859
859
|
for (let e in t) n.prototype[e] = t[e];
|
|
860
860
|
return n.t = e, n;
|
|
861
861
|
}
|
|
862
|
-
var
|
|
862
|
+
var Vn = Bn("email", {
|
|
863
863
|
isLink: !0,
|
|
864
864
|
toHref() {
|
|
865
865
|
return "mailto:" + this.toString();
|
|
866
866
|
}
|
|
867
|
-
}),
|
|
867
|
+
}), Hn = Bn("text"), Un = Bn("nl"), Wn = Bn("url", {
|
|
868
868
|
isLink: !0,
|
|
869
|
-
toHref(e =
|
|
869
|
+
toHref(e = In.defaultProtocol) {
|
|
870
870
|
return this.hasProtocol() ? this.v : `${e}://${this.v}`;
|
|
871
871
|
},
|
|
872
872
|
hasProtocol() {
|
|
873
873
|
let e = this.tk;
|
|
874
|
-
return e.length >= 2 && e[0].t !==
|
|
874
|
+
return e.length >= 2 && e[0].t !== bt && e[1].t === Zt;
|
|
875
875
|
}
|
|
876
|
-
}),
|
|
877
|
-
function
|
|
876
|
+
}), Gn = (e) => new mt(e);
|
|
877
|
+
function Kn({ groups: e }) {
|
|
878
878
|
let t = e.domain.concat([
|
|
879
|
-
|
|
879
|
+
Wt,
|
|
880
|
+
Kt,
|
|
880
881
|
qt,
|
|
881
882
|
Jt,
|
|
882
883
|
Yt,
|
|
883
884
|
Xt,
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
$t,
|
|
886
|
+
tn,
|
|
887
|
+
rn,
|
|
888
|
+
Tt,
|
|
887
889
|
an,
|
|
888
|
-
Et,
|
|
889
890
|
on,
|
|
890
891
|
sn,
|
|
891
892
|
cn,
|
|
892
|
-
|
|
893
|
+
pn,
|
|
894
|
+
_n,
|
|
893
895
|
mn,
|
|
894
|
-
|
|
895
|
-
hn,
|
|
896
|
-
gn
|
|
896
|
+
hn
|
|
897
897
|
]), n = [
|
|
898
|
-
|
|
898
|
+
Gt,
|
|
899
|
+
Zt,
|
|
899
900
|
Qt,
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
901
|
+
en,
|
|
902
|
+
nn,
|
|
903
|
+
an,
|
|
904
|
+
ln,
|
|
904
905
|
un,
|
|
905
|
-
|
|
906
|
-
|
|
906
|
+
fn,
|
|
907
|
+
Pt,
|
|
907
908
|
Ft,
|
|
908
|
-
|
|
909
|
+
Ot,
|
|
909
910
|
kt,
|
|
911
|
+
jt,
|
|
910
912
|
At,
|
|
911
913
|
Mt,
|
|
912
|
-
jt,
|
|
913
914
|
Nt,
|
|
914
|
-
|
|
915
|
+
It,
|
|
915
916
|
Lt,
|
|
916
917
|
Rt,
|
|
917
918
|
zt,
|
|
918
919
|
Bt,
|
|
919
920
|
Vt,
|
|
920
921
|
Ht,
|
|
921
|
-
Ut
|
|
922
|
-
Wt
|
|
922
|
+
Ut
|
|
923
923
|
], r = [
|
|
924
|
+
Wt,
|
|
924
925
|
Gt,
|
|
925
926
|
Kt,
|
|
926
|
-
|
|
927
|
+
Jt,
|
|
927
928
|
Yt,
|
|
928
929
|
Xt,
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
930
|
+
$t,
|
|
931
|
+
tn,
|
|
932
|
+
rn,
|
|
933
|
+
Ot,
|
|
933
934
|
kt,
|
|
934
|
-
|
|
935
|
+
an,
|
|
935
936
|
on,
|
|
936
937
|
sn,
|
|
937
938
|
cn,
|
|
938
939
|
ln,
|
|
939
|
-
|
|
940
|
+
pn,
|
|
941
|
+
_n,
|
|
940
942
|
mn,
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
let
|
|
947
|
-
|
|
948
|
-
let
|
|
949
|
-
|
|
950
|
-
let
|
|
951
|
-
|
|
952
|
-
let
|
|
953
|
-
|
|
954
|
-
let
|
|
955
|
-
|
|
956
|
-
let
|
|
957
|
-
|
|
958
|
-
let
|
|
959
|
-
|
|
960
|
-
let
|
|
961
|
-
|
|
962
|
-
let _ =
|
|
963
|
-
|
|
964
|
-
let
|
|
965
|
-
|
|
966
|
-
let
|
|
967
|
-
|
|
968
|
-
let S = H(s, Qt), C = H(H(H(c, Qt), mn), mn);
|
|
969
|
-
B(s, e.domain, o), H(s, tn, g), H(s, an, h), B(c, e.domain, o), H(c, tn, g), H(c, an, h), B(S, e.domain, b), H(S, mn, b), H(S, un, b), B(C, e.domain, b), B(C, t, b), H(C, mn, b);
|
|
943
|
+
hn
|
|
944
|
+
], i = Gn(), a = U(i, mn);
|
|
945
|
+
V(a, r, a), V(a, e.domain, a);
|
|
946
|
+
let o = Gn(), s = Gn(), c = Gn();
|
|
947
|
+
V(i, e.domain, o), V(i, e.scheme, s), V(i, e.slashscheme, c), V(o, r, a), V(o, e.domain, o);
|
|
948
|
+
let l = U(o, qt);
|
|
949
|
+
U(a, qt, l), U(s, qt, l), U(c, qt, l);
|
|
950
|
+
let u = U(a, en);
|
|
951
|
+
V(u, r, a), V(u, e.domain, a);
|
|
952
|
+
let d = Gn();
|
|
953
|
+
V(l, e.domain, d), V(d, e.domain, d);
|
|
954
|
+
let f = U(d, en);
|
|
955
|
+
V(f, e.domain, d);
|
|
956
|
+
let p = Gn(Vn);
|
|
957
|
+
V(f, e.tld, p), V(f, e.utld, p), U(l, bt, p);
|
|
958
|
+
let m = U(d, rn);
|
|
959
|
+
U(m, rn, m), V(m, e.domain, d), V(p, e.domain, d), U(p, en, f), U(p, rn, m);
|
|
960
|
+
let h = U(o, rn), g = U(o, en);
|
|
961
|
+
U(h, rn, h), V(h, e.domain, o), V(g, r, a), V(g, e.domain, o);
|
|
962
|
+
let _ = Gn(Wn);
|
|
963
|
+
V(g, e.tld, _), V(g, e.utld, _), V(_, e.domain, o), V(_, r, a), U(_, en, g), U(_, rn, h), U(_, qt, l);
|
|
964
|
+
let v = U(_, Zt), y = Gn(Wn);
|
|
965
|
+
V(v, e.numeric, y);
|
|
966
|
+
let b = Gn(Wn), x = Gn();
|
|
967
|
+
V(b, t, b), V(b, n, x), V(x, t, b), V(x, n, x), U(_, pn, b), U(y, pn, b);
|
|
968
|
+
let S = U(s, Zt), C = U(U(U(c, Zt), pn), pn);
|
|
969
|
+
V(s, e.domain, o), U(s, en, g), U(s, rn, h), V(c, e.domain, o), U(c, en, g), U(c, rn, h), V(S, e.domain, b), U(S, pn, b), U(S, ln, b), V(C, e.domain, b), V(C, t, b), U(C, pn, b);
|
|
970
970
|
let w = [
|
|
971
|
-
[
|
|
972
|
-
[
|
|
973
|
-
[
|
|
974
|
-
[
|
|
975
|
-
[
|
|
976
|
-
[
|
|
977
|
-
[
|
|
978
|
-
[
|
|
971
|
+
[Ot, kt],
|
|
972
|
+
[At, jt],
|
|
973
|
+
[Mt, Nt],
|
|
974
|
+
[Pt, Ft],
|
|
975
|
+
[It, Lt],
|
|
976
|
+
[Rt, zt],
|
|
977
|
+
[Bt, Vt],
|
|
978
|
+
[Ht, Ut]
|
|
979
979
|
];
|
|
980
980
|
for (let e = 0; e < w.length; e++) {
|
|
981
|
-
let [r, i] = w[e], a =
|
|
982
|
-
|
|
983
|
-
let o =
|
|
984
|
-
|
|
985
|
-
let s =
|
|
986
|
-
|
|
987
|
-
}
|
|
988
|
-
return
|
|
981
|
+
let [r, i] = w[e], a = U(b, r);
|
|
982
|
+
U(x, r, a);
|
|
983
|
+
let o = Gn(Wn);
|
|
984
|
+
V(a, t, o);
|
|
985
|
+
let s = Gn();
|
|
986
|
+
V(a, n, s), U(a, i, b), V(o, t, o), V(o, n, s), V(s, t, o), V(s, n, s), U(o, i, b), U(s, i, b);
|
|
987
|
+
}
|
|
988
|
+
return U(i, bt, _), U(i, Dt, Un), {
|
|
989
989
|
start: i,
|
|
990
|
-
tokens:
|
|
990
|
+
tokens: vn
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function qn(e, t, n) {
|
|
994
994
|
let r = n.length, i = 0, a = [], o = [];
|
|
995
995
|
for (; i < r;) {
|
|
996
996
|
let s = e, c = null, l = null, u = 0, d = null, f = -1;
|
|
@@ -998,18 +998,18 @@ function Jn(e, t, n) {
|
|
|
998
998
|
for (; i < r && (l = c || s.go(n[i].t));) c = null, s = l, s.accepts() ? (f = 0, d = s) : f >= 0 && f++, i++, u++;
|
|
999
999
|
if (f < 0) i -= u, i < r && (o.push(n[i]), i++);
|
|
1000
1000
|
else {
|
|
1001
|
-
o.length > 0 && (a.push(
|
|
1001
|
+
o.length > 0 && (a.push(Jn(Hn, t, o)), o = []), i -= f, u -= f;
|
|
1002
1002
|
let e = d.t, r = n.slice(i - u, i);
|
|
1003
|
-
a.push(
|
|
1003
|
+
a.push(Jn(e, t, r));
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
return o.length > 0 && a.push(
|
|
1006
|
+
return o.length > 0 && a.push(Jn(Hn, t, o)), a;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Jn(e, t, n) {
|
|
1009
1009
|
let r = n[0].s, i = n[n.length - 1].e;
|
|
1010
1010
|
return new e(t.slice(r, i), n);
|
|
1011
1011
|
}
|
|
1012
|
-
var
|
|
1012
|
+
var Yn = {
|
|
1013
1013
|
scanner: null,
|
|
1014
1014
|
parser: null,
|
|
1015
1015
|
tokenQueue: [],
|
|
@@ -1017,51 +1017,51 @@ var Xn = {
|
|
|
1017
1017
|
customSchemes: [],
|
|
1018
1018
|
initialized: !1
|
|
1019
1019
|
};
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1022
|
-
for (let e = 0; e <
|
|
1023
|
-
|
|
1024
|
-
for (let e = 0; e <
|
|
1025
|
-
scanner:
|
|
1026
|
-
parser:
|
|
1020
|
+
function Xn() {
|
|
1021
|
+
Yn.scanner = jn(Yn.customSchemes);
|
|
1022
|
+
for (let e = 0; e < Yn.tokenQueue.length; e++) Yn.tokenQueue[e][1]({ scanner: Yn.scanner });
|
|
1023
|
+
Yn.parser = Kn(Yn.scanner.tokens);
|
|
1024
|
+
for (let e = 0; e < Yn.pluginQueue.length; e++) Yn.pluginQueue[e][1]({
|
|
1025
|
+
scanner: Yn.scanner,
|
|
1026
|
+
parser: Yn.parser
|
|
1027
1027
|
});
|
|
1028
|
-
return
|
|
1028
|
+
return Yn.initialized = !0, Yn;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
return
|
|
1030
|
+
function Zn(e) {
|
|
1031
|
+
return Yn.initialized || Xn(), qn(Yn.parser.start, e, Mn(Yn.scanner.start, e));
|
|
1032
1032
|
}
|
|
1033
|
-
|
|
1033
|
+
Zn.scan = Mn;
|
|
1034
1034
|
//#endregion
|
|
1035
1035
|
//#region node_modules/linkify-html/dist/linkify-html.mjs
|
|
1036
|
-
var
|
|
1036
|
+
var Qn = {
|
|
1037
1037
|
amp: "&",
|
|
1038
1038
|
gt: ">",
|
|
1039
1039
|
lt: "<",
|
|
1040
1040
|
nbsp: "\xA0",
|
|
1041
1041
|
quot: "\""
|
|
1042
|
-
},
|
|
1042
|
+
}, $n = /^#[xX]([A-Fa-f0-9]+)$/, er = /^#([0-9]+)$/, tr = /^([A-Za-z0-9]+)$/, nr = function() {
|
|
1043
1043
|
function e(e) {
|
|
1044
1044
|
this.named = e;
|
|
1045
1045
|
}
|
|
1046
1046
|
return e.prototype.parse = function(e) {
|
|
1047
1047
|
if (e) {
|
|
1048
|
-
var t = e.match(
|
|
1048
|
+
var t = e.match($n);
|
|
1049
1049
|
if (t) return String.fromCharCode(parseInt(t[1], 16));
|
|
1050
|
-
if (t = e.match(
|
|
1051
|
-
if (t = e.match(
|
|
1050
|
+
if (t = e.match(er), t) return String.fromCharCode(parseInt(t[1], 10));
|
|
1051
|
+
if (t = e.match(tr), t) return this.named[t[1]] || "&" + t[1] + ";";
|
|
1052
1052
|
}
|
|
1053
1053
|
}, e;
|
|
1054
|
-
}(),
|
|
1054
|
+
}(), rr = /[\t\n\f ]/, ir = /[A-Za-z]/, ar = /\r\n?/g;
|
|
1055
|
+
function or(e) {
|
|
1056
|
+
return rr.test(e);
|
|
1057
|
+
}
|
|
1055
1058
|
function sr(e) {
|
|
1056
1059
|
return ir.test(e);
|
|
1057
1060
|
}
|
|
1058
1061
|
function cr(e) {
|
|
1059
|
-
return
|
|
1060
|
-
}
|
|
1061
|
-
function lr(e) {
|
|
1062
|
-
return e.replace(or, "\n");
|
|
1062
|
+
return e.replace(ar, "\n");
|
|
1063
1063
|
}
|
|
1064
|
-
var
|
|
1064
|
+
var lr = function() {
|
|
1065
1065
|
function e(e, t, n) {
|
|
1066
1066
|
n === void 0 && (n = "precompile"), this.delegate = e, this.entityParser = t, this.mode = n, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = {
|
|
1067
1067
|
beforeData: function() {
|
|
@@ -1081,26 +1081,26 @@ var ur = function() {
|
|
|
1081
1081
|
},
|
|
1082
1082
|
tagOpen: function() {
|
|
1083
1083
|
var e = this.consume();
|
|
1084
|
-
e === "!" ? this.transitionTo("markupDeclarationOpen") : e === "/" ? this.transitionTo("endTagOpen") : (e === "@" || e === ":" ||
|
|
1084
|
+
e === "!" ? this.transitionTo("markupDeclarationOpen") : e === "/" ? this.transitionTo("endTagOpen") : (e === "@" || e === ":" || sr(e)) && (this.transitionTo("tagName"), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(e));
|
|
1085
1085
|
},
|
|
1086
1086
|
markupDeclarationOpen: function() {
|
|
1087
1087
|
var e = this.consume();
|
|
1088
1088
|
e === "-" && this.peek() === "-" ? (this.consume(), this.transitionTo("commentStart"), this.delegate.beginComment()) : e.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase() === "DOCTYPE" && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.transitionTo("doctype"), this.delegate.beginDoctype && this.delegate.beginDoctype());
|
|
1089
1089
|
},
|
|
1090
1090
|
doctype: function() {
|
|
1091
|
-
|
|
1091
|
+
or(this.consume()) && this.transitionTo("beforeDoctypeName");
|
|
1092
1092
|
},
|
|
1093
1093
|
beforeDoctypeName: function() {
|
|
1094
1094
|
var e = this.consume();
|
|
1095
|
-
|
|
1095
|
+
or(e) || (this.transitionTo("doctypeName"), this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(e.toLowerCase()));
|
|
1096
1096
|
},
|
|
1097
1097
|
doctypeName: function() {
|
|
1098
1098
|
var e = this.consume();
|
|
1099
|
-
|
|
1099
|
+
or(e) ? this.transitionTo("afterDoctypeName") : e === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : this.delegate.appendToDoctypeName && this.delegate.appendToDoctypeName(e.toLowerCase());
|
|
1100
1100
|
},
|
|
1101
1101
|
afterDoctypeName: function() {
|
|
1102
1102
|
var e = this.consume();
|
|
1103
|
-
if (!
|
|
1103
|
+
if (!or(e)) if (e === ">") this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData");
|
|
1104
1104
|
else {
|
|
1105
1105
|
var t = e.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase(), n = t.toUpperCase() === "PUBLIC", r = t.toUpperCase() === "SYSTEM";
|
|
1106
1106
|
(n || r) && (this.consume(), this.consume(), this.consume(), this.consume(), this.consume(), this.consume()), n ? this.transitionTo("afterDoctypePublicKeyword") : r && this.transitionTo("afterDoctypeSystemKeyword");
|
|
@@ -1108,7 +1108,7 @@ var ur = function() {
|
|
|
1108
1108
|
},
|
|
1109
1109
|
afterDoctypePublicKeyword: function() {
|
|
1110
1110
|
var e = this.peek();
|
|
1111
|
-
|
|
1111
|
+
or(e) ? (this.transitionTo("beforeDoctypePublicIdentifier"), this.consume()) : e === "\"" ? (this.transitionTo("doctypePublicIdentifierDoubleQuoted"), this.consume()) : e === "'" ? (this.transitionTo("doctypePublicIdentifierSingleQuoted"), this.consume()) : e === ">" && (this.consume(), this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
|
|
1112
1112
|
},
|
|
1113
1113
|
doctypePublicIdentifierDoubleQuoted: function() {
|
|
1114
1114
|
var e = this.consume();
|
|
@@ -1120,11 +1120,11 @@ var ur = function() {
|
|
|
1120
1120
|
},
|
|
1121
1121
|
afterDoctypePublicIdentifier: function() {
|
|
1122
1122
|
var e = this.consume();
|
|
1123
|
-
|
|
1123
|
+
or(e) ? this.transitionTo("betweenDoctypePublicAndSystemIdentifiers") : e === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : e === "\"" ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : e === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted");
|
|
1124
1124
|
},
|
|
1125
1125
|
betweenDoctypePublicAndSystemIdentifiers: function() {
|
|
1126
1126
|
var e = this.consume();
|
|
1127
|
-
|
|
1127
|
+
or(e) || (e === ">" ? (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData")) : e === "\"" ? this.transitionTo("doctypeSystemIdentifierDoubleQuoted") : e === "'" && this.transitionTo("doctypeSystemIdentifierSingleQuoted"));
|
|
1128
1128
|
},
|
|
1129
1129
|
doctypeSystemIdentifierDoubleQuoted: function() {
|
|
1130
1130
|
var e = this.consume();
|
|
@@ -1136,7 +1136,7 @@ var ur = function() {
|
|
|
1136
1136
|
},
|
|
1137
1137
|
afterDoctypeSystemIdentifier: function() {
|
|
1138
1138
|
var e = this.consume();
|
|
1139
|
-
|
|
1139
|
+
or(e) || e === ">" && (this.delegate.endDoctype && this.delegate.endDoctype(), this.transitionTo("beforeData"));
|
|
1140
1140
|
},
|
|
1141
1141
|
commentStart: function() {
|
|
1142
1142
|
var e = this.consume();
|
|
@@ -1160,33 +1160,33 @@ var ur = function() {
|
|
|
1160
1160
|
},
|
|
1161
1161
|
tagName: function() {
|
|
1162
1162
|
var e = this.consume();
|
|
1163
|
-
|
|
1163
|
+
or(e) ? this.transitionTo("beforeAttributeName") : e === "/" ? this.transitionTo("selfClosingStartTag") : e === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData")) : this.appendToTagName(e);
|
|
1164
1164
|
},
|
|
1165
1165
|
endTagName: function() {
|
|
1166
1166
|
var e = this.consume();
|
|
1167
|
-
|
|
1167
|
+
or(e) ? (this.transitionTo("beforeAttributeName"), this.tagNameBuffer = "") : e === "/" ? (this.transitionTo("selfClosingStartTag"), this.tagNameBuffer = "") : e === ">" ? (this.delegate.finishTag(), this.transitionTo("beforeData"), this.tagNameBuffer = "") : this.appendToTagName(e);
|
|
1168
1168
|
},
|
|
1169
1169
|
beforeAttributeName: function() {
|
|
1170
1170
|
var e = this.peek();
|
|
1171
|
-
if (
|
|
1171
|
+
if (or(e)) {
|
|
1172
1172
|
this.consume();
|
|
1173
1173
|
return;
|
|
1174
1174
|
} else e === "/" ? (this.transitionTo("selfClosingStartTag"), this.consume()) : e === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : e === "=" ? (this.delegate.reportSyntaxError("attribute name cannot start with equals sign"), this.transitionTo("attributeName"), this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(e)) : (this.transitionTo("attributeName"), this.delegate.beginAttribute());
|
|
1175
1175
|
},
|
|
1176
1176
|
attributeName: function() {
|
|
1177
1177
|
var e = this.peek();
|
|
1178
|
-
|
|
1178
|
+
or(e) ? (this.transitionTo("afterAttributeName"), this.consume()) : e === "/" ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : e === "=" ? (this.transitionTo("beforeAttributeValue"), this.consume()) : e === ">" ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : e === "\"" || e === "'" || e === "<" ? (this.delegate.reportSyntaxError(e + " is not a valid character within attribute names"), this.consume(), this.delegate.appendToAttributeName(e)) : (this.consume(), this.delegate.appendToAttributeName(e));
|
|
1179
1179
|
},
|
|
1180
1180
|
afterAttributeName: function() {
|
|
1181
1181
|
var e = this.peek();
|
|
1182
|
-
if (
|
|
1182
|
+
if (or(e)) {
|
|
1183
1183
|
this.consume();
|
|
1184
1184
|
return;
|
|
1185
1185
|
} else e === "/" ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : e === "=" ? (this.consume(), this.transitionTo("beforeAttributeValue")) : e === ">" ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.transitionTo("attributeName"), this.delegate.beginAttribute(), this.consume(), this.delegate.appendToAttributeName(e));
|
|
1186
1186
|
},
|
|
1187
1187
|
beforeAttributeValue: function() {
|
|
1188
1188
|
var e = this.peek();
|
|
1189
|
-
|
|
1189
|
+
or(e) ? this.consume() : e === "\"" ? (this.transitionTo("attributeValueDoubleQuoted"), this.delegate.beginAttributeValue(!0), this.consume()) : e === "'" ? (this.transitionTo("attributeValueSingleQuoted"), this.delegate.beginAttributeValue(!0), this.consume()) : e === ">" ? (this.delegate.beginAttributeValue(!1), this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.transitionTo("attributeValueUnquoted"), this.delegate.beginAttributeValue(!1), this.consume(), this.delegate.appendToAttributeValue(e));
|
|
1190
1190
|
},
|
|
1191
1191
|
attributeValueDoubleQuoted: function() {
|
|
1192
1192
|
var e = this.consume();
|
|
@@ -1198,18 +1198,18 @@ var ur = function() {
|
|
|
1198
1198
|
},
|
|
1199
1199
|
attributeValueUnquoted: function() {
|
|
1200
1200
|
var e = this.peek();
|
|
1201
|
-
|
|
1201
|
+
or(e) ? (this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("beforeAttributeName")) : e === "/" ? (this.delegate.finishAttributeValue(), this.consume(), this.transitionTo("selfClosingStartTag")) : e === "&" ? (this.consume(), this.delegate.appendToAttributeValue(this.consumeCharRef() || "&")) : e === ">" ? (this.delegate.finishAttributeValue(), this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : (this.consume(), this.delegate.appendToAttributeValue(e));
|
|
1202
1202
|
},
|
|
1203
1203
|
afterAttributeValueQuoted: function() {
|
|
1204
1204
|
var e = this.peek();
|
|
1205
|
-
|
|
1205
|
+
or(e) ? (this.consume(), this.transitionTo("beforeAttributeName")) : e === "/" ? (this.consume(), this.transitionTo("selfClosingStartTag")) : e === ">" ? (this.consume(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
|
|
1206
1206
|
},
|
|
1207
1207
|
selfClosingStartTag: function() {
|
|
1208
1208
|
this.peek() === ">" ? (this.consume(), this.delegate.markTagAsSelfClosing(), this.delegate.finishTag(), this.transitionTo("beforeData")) : this.transitionTo("beforeAttributeName");
|
|
1209
1209
|
},
|
|
1210
1210
|
endTagOpen: function() {
|
|
1211
1211
|
var e = this.consume();
|
|
1212
|
-
(e === "@" || e === ":" ||
|
|
1212
|
+
(e === "@" || e === ":" || sr(e)) && (this.transitionTo("endTagName"), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(e));
|
|
1213
1213
|
}
|
|
1214
1214
|
}, this.reset();
|
|
1215
1215
|
}
|
|
@@ -1220,7 +1220,7 @@ var ur = function() {
|
|
|
1220
1220
|
}, e.prototype.tokenize = function(e) {
|
|
1221
1221
|
this.reset(), this.tokenizePart(e), this.tokenizeEOF();
|
|
1222
1222
|
}, e.prototype.tokenizePart = function(e) {
|
|
1223
|
-
for (this.input +=
|
|
1223
|
+
for (this.input += cr(e); this.index < this.input.length;) {
|
|
1224
1224
|
var t = this.states[this.state];
|
|
1225
1225
|
if (t !== void 0) t.call(this);
|
|
1226
1226
|
else throw Error("unhandled state " + this.state);
|
|
@@ -1251,9 +1251,9 @@ var ur = function() {
|
|
|
1251
1251
|
var e = this.tagNameBuffer;
|
|
1252
1252
|
return e === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || e === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || e === "script" && this.input.substring(this.index, this.index + 9) !== "<\/script>";
|
|
1253
1253
|
}, e;
|
|
1254
|
-
}(),
|
|
1254
|
+
}(), ur = function() {
|
|
1255
1255
|
function e(e, t) {
|
|
1256
|
-
t === void 0 && (t = {}), this.options = t, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new
|
|
1256
|
+
t === void 0 && (t = {}), this.options = t, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new lr(this, e, t.mode), this._currentAttribute = void 0;
|
|
1257
1257
|
}
|
|
1258
1258
|
return e.prototype.tokenize = function(e) {
|
|
1259
1259
|
return this.tokens = [], this.tokenizer.tokenize(e), this.tokens;
|
|
@@ -1353,47 +1353,47 @@ var ur = function() {
|
|
|
1353
1353
|
this.current().syntaxError = e;
|
|
1354
1354
|
}, e;
|
|
1355
1355
|
}();
|
|
1356
|
-
function
|
|
1357
|
-
return new
|
|
1356
|
+
function dr(e, t) {
|
|
1357
|
+
return new ur(new nr(Qn), t).tokenize(e);
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1360
|
-
function
|
|
1361
|
-
let n =
|
|
1359
|
+
var fr = "LinkifyResult", pr = "StartTag", mr = "EndTag", hr = "Chars", gr = "Comment", _r = "Doctype";
|
|
1360
|
+
function vr(e, t = {}) {
|
|
1361
|
+
let n = dr(e), r = [], i = [], a = new Ln(t, xr);
|
|
1362
1362
|
for (let e = 0; e < n.length; e++) {
|
|
1363
1363
|
let t = n[e];
|
|
1364
|
-
if (t.type ===
|
|
1364
|
+
if (t.type === pr) {
|
|
1365
1365
|
r.push(t);
|
|
1366
1366
|
let i = t.tagName.toUpperCase();
|
|
1367
1367
|
if (!(i === "A" || a.ignoreTags.indexOf(i) >= 0)) continue;
|
|
1368
1368
|
let o = r.length;
|
|
1369
|
-
|
|
1370
|
-
} else if (t.type !==
|
|
1369
|
+
br(i, n, ++e, r), e += r.length - o - 1;
|
|
1370
|
+
} else if (t.type !== hr) r.push(t);
|
|
1371
1371
|
else {
|
|
1372
|
-
let e =
|
|
1372
|
+
let e = yr(t.chars, a);
|
|
1373
1373
|
r.push.apply(r, e);
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
for (let e = 0; e < r.length; e++) {
|
|
1377
1377
|
let t = r[e];
|
|
1378
1378
|
switch (t.type) {
|
|
1379
|
-
case
|
|
1379
|
+
case fr:
|
|
1380
1380
|
i.push(t.rendered);
|
|
1381
1381
|
break;
|
|
1382
|
-
case
|
|
1382
|
+
case pr: {
|
|
1383
1383
|
let e = "<" + t.tagName;
|
|
1384
|
-
t.attributes.length > 0 && (e += " " +
|
|
1384
|
+
t.attributes.length > 0 && (e += " " + Tr(t.attributes).join(" ")), t.selfClosing && (e += " /"), e += ">", i.push(e);
|
|
1385
1385
|
break;
|
|
1386
1386
|
}
|
|
1387
|
-
case
|
|
1387
|
+
case mr:
|
|
1388
1388
|
i.push(`</${t.tagName}>`);
|
|
1389
1389
|
break;
|
|
1390
|
-
case
|
|
1391
|
-
i.push(
|
|
1390
|
+
case hr:
|
|
1391
|
+
i.push(Sr(t.chars));
|
|
1392
1392
|
break;
|
|
1393
|
-
case
|
|
1394
|
-
i.push(`<!--${
|
|
1393
|
+
case gr:
|
|
1394
|
+
i.push(`<!--${Sr(t.chars)}-->`);
|
|
1395
1395
|
break;
|
|
1396
|
-
case
|
|
1396
|
+
case _r: {
|
|
1397
1397
|
let e = `<!DOCTYPE ${t.name}`;
|
|
1398
1398
|
t.publicIdentifier && (e += ` PUBLIC "${t.publicIdentifier}"`), t.systemIdentifier && (e += ` "${t.systemIdentifier}"`), e += ">", i.push(e);
|
|
1399
1399
|
break;
|
|
@@ -1402,136 +1402,136 @@ function yr(e, t = {}) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
return i.join("");
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1406
|
-
let n =
|
|
1405
|
+
function yr(e, t) {
|
|
1406
|
+
let n = Zn(e), r = [];
|
|
1407
1407
|
for (let e = 0; e < n.length; e++) {
|
|
1408
1408
|
let i = n[e];
|
|
1409
1409
|
i.t === "nl" && t.get("nl2br") ? r.push({
|
|
1410
|
-
type:
|
|
1410
|
+
type: pr,
|
|
1411
1411
|
tagName: "br",
|
|
1412
1412
|
attributes: [],
|
|
1413
1413
|
selfClosing: !0
|
|
1414
1414
|
}) : !i.isLink || !t.check(i) ? r.push({
|
|
1415
|
-
type:
|
|
1415
|
+
type: hr,
|
|
1416
1416
|
chars: i.toString()
|
|
1417
1417
|
}) : r.push({
|
|
1418
|
-
type:
|
|
1418
|
+
type: fr,
|
|
1419
1419
|
rendered: t.render(i)
|
|
1420
1420
|
});
|
|
1421
1421
|
}
|
|
1422
1422
|
return r;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function br(e, t, n, r) {
|
|
1425
1425
|
let i = 1;
|
|
1426
1426
|
for (; n < t.length && i > 0;) {
|
|
1427
1427
|
let a = t[n];
|
|
1428
|
-
a.type ===
|
|
1428
|
+
a.type === pr && a.tagName.toUpperCase() === e ? i++ : a.type === mr && a.tagName.toUpperCase() === e && i--, r.push(a), n++;
|
|
1429
1429
|
}
|
|
1430
1430
|
return r;
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1433
|
-
return `<${e} ${
|
|
1432
|
+
function xr({ tagName: e, attributes: t, content: n }) {
|
|
1433
|
+
return `<${e} ${wr(t)}>${Sr(n)}</${e}>`;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Sr(e) {
|
|
1436
1436
|
return e.replace(/</g, "<").replace(/>/g, ">");
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Cr(e) {
|
|
1439
1439
|
return e.replace(/"/g, """);
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function wr(e) {
|
|
1442
1442
|
let t = [];
|
|
1443
1443
|
for (let n in e) {
|
|
1444
1444
|
let r = e[n] + "";
|
|
1445
|
-
t.push(`${n}="${
|
|
1445
|
+
t.push(`${n}="${Cr(r)}"`);
|
|
1446
1446
|
}
|
|
1447
1447
|
return t.join(" ");
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Tr(e) {
|
|
1450
1450
|
let t = [];
|
|
1451
1451
|
for (let n = 0; n < e.length; n++) {
|
|
1452
1452
|
let r = e[n][0], i = e[n][1] + "";
|
|
1453
|
-
t.push(`${r}="${
|
|
1453
|
+
t.push(`${r}="${Cr(i)}"`);
|
|
1454
1454
|
}
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
1457
|
//#endregion
|
|
1458
1458
|
//#region src/types/index.ts
|
|
1459
|
-
var
|
|
1459
|
+
var Er = /* @__PURE__ */ function(e) {
|
|
1460
1460
|
return e.LoyaltyCard = "LoyalityCard", e.FirmaCard = "FirmaCard", e.DaneAge = "Aeldresagen", e.PlusCard = "Pluskort", e.DSBPlus = "DSBPlus", e.DiscountCoupon = "Rabatkupon", e.VeteranCard = "Veterankortet", e.DanskHandicapForbund = "DanskHandicapForbund", e.VismaLogBuy = "VismaLogBuy", e;
|
|
1461
|
-
}({}),
|
|
1461
|
+
}({}), Dr = /* @__PURE__ */ function(e) {
|
|
1462
1462
|
return e[e.Accept = 0] = "Accept", e[e.Error = 1] = "Error", e[e.Cancel = 2] = "Cancel", e[e.Close = 3] = "Close", e[e.Open = 4] = "Open", e[e.CheckResult = 5] = "CheckResult", e;
|
|
1463
|
-
}({}),
|
|
1464
|
-
(function(e) {})(
|
|
1465
|
-
var
|
|
1463
|
+
}({}), Or;
|
|
1464
|
+
(function(e) {})(Or ||= {});
|
|
1465
|
+
var W = /* @__PURE__ */ function(e) {
|
|
1466
1466
|
return e[e.Invalid = 0] = "Invalid", e[e.PerUnit = 1] = "PerUnit", e[e.PerPerson = 2] = "PerPerson", e[e.PerAdult = 3] = "PerAdult", e[e.PerChild = 4] = "PerChild", e[e.PerNight = 5] = "PerNight", e[e.PerPersonPerNight = 6] = "PerPersonPerNight", e[e.PerAdultPerNight = 7] = "PerAdultPerNight", e[e.PerChildPerNight = 8] = "PerChildPerNight", e[e.Consumption = 9] = "Consumption", e[e.EarlyCheckIn = 10] = "EarlyCheckIn", e[e.EarlyCheckOut = 11] = "EarlyCheckOut", e[e.OneTimePayment = 12] = "OneTimePayment", e;
|
|
1467
|
-
}({}),
|
|
1467
|
+
}({}), kr = /* @__PURE__ */ function(e) {
|
|
1468
1468
|
return e[e.Invalid = 0] = "Invalid", e[e.Mandatory = 1] = "Mandatory", e[e.OptionalSingle = 2] = "OptionalSingle", e[e.OptionalMultiple = 3] = "OptionalMultiple", e[e.DefaultSingle = 4] = "DefaultSingle", e;
|
|
1469
|
-
}({}),
|
|
1469
|
+
}({}), Ar = /* @__PURE__ */ function(e) {
|
|
1470
1470
|
return e[e.None = 0] = "None", e[e.AskForCreditCard = 2] = "AskForCreditCard", e[e.Stripe = 18] = "Stripe", e[e.DIBS = 47] = "DIBS", e[e.EasyPay = 56] = "EasyPay", e[e.ReePay = 57] = "ReePay", e;
|
|
1471
|
-
}({}),
|
|
1471
|
+
}({}), jr = /* @__PURE__ */ function(e) {
|
|
1472
1472
|
return e.Selective = "selective", e.Wholesale = "wholesale", e.Simplified = "simplified", e.Template = "template", e.Event = "event", e;
|
|
1473
|
-
}({}),
|
|
1473
|
+
}({}), Mr = /* @__PURE__ */ function(e) {
|
|
1474
1474
|
return e.Default = "default", e.Minimal = "minimal", e;
|
|
1475
|
-
}({}),
|
|
1475
|
+
}({}), Nr = /* @__PURE__ */ function(e) {
|
|
1476
1476
|
return e[e.InitialState = 0] = "InitialState", e[e.WaitingForResponse = 1] = "WaitingForResponse", e[e.ReadyToPay = 2] = "ReadyToPay", e[e.PaymentSuccess = 3] = "PaymentSuccess", e;
|
|
1477
|
-
}({}),
|
|
1477
|
+
}({}), Pr = /* @__PURE__ */ function(e) {
|
|
1478
1478
|
return e[e.None = 0] = "None", e[e.Hourly = 1] = "Hourly", e[e.FullDayEvent = 2] = "FullDayEvent", e[e.Weekly = 3] = "Weekly", e;
|
|
1479
|
-
}({}),
|
|
1479
|
+
}({}), Fr = /* @__PURE__ */ function(e) {
|
|
1480
1480
|
return e[e.InitialState = 0] = "InitialState", e[e.AvailabilityState = 1] = "AvailabilityState", e[e.ReservationState = 2] = "ReservationState", e[e.PaymentState = 3] = "PaymentState", e;
|
|
1481
|
-
}({}),
|
|
1481
|
+
}({}), Ir = /* @__PURE__ */ function(e) {
|
|
1482
1482
|
return e[e.NoShow = 1] = "NoShow", e[e.Other = 2] = "Other", e[e.Regret = 3] = "Regret", e[e.Sickness = 5] = "Sickness", e[e.Postponed = 6] = "Postponed", e[e.OnlinePaymentFailure = 7] = "OnlinePaymentFailure", e[e.TestBooking = 8] = "TestBooking", e[e.Corona = 9] = "Corona", e[e.BookingMistake = 10] = "BookingMistake", e[e.MissingPayment = 11] = "MissingPayment", e[e.BadWeather = 12] = "BadWeather", e;
|
|
1483
1483
|
}({});
|
|
1484
1484
|
//#endregion
|
|
1485
1485
|
//#region src/assets/typescript/mixins.ts
|
|
1486
|
-
function
|
|
1486
|
+
function Lr(e) {
|
|
1487
1487
|
switch (e) {
|
|
1488
|
-
case
|
|
1489
|
-
case
|
|
1490
|
-
case
|
|
1491
|
-
case
|
|
1492
|
-
case
|
|
1493
|
-
case
|
|
1494
|
-
case
|
|
1495
|
-
case
|
|
1488
|
+
case W.PerUnit: return F.t("general.perUnit");
|
|
1489
|
+
case W.PerPerson: return F.t("general.perPerson");
|
|
1490
|
+
case W.PerAdult: return F.t("general.perAdult");
|
|
1491
|
+
case W.PerChild: return F.t("general.perChild");
|
|
1492
|
+
case W.PerNight: return F.t("general.perNight");
|
|
1493
|
+
case W.PerPersonPerNight: return F.t("general.perPersonPerNight");
|
|
1494
|
+
case W.PerAdultPerNight: return F.t("general.perAdultPerNight");
|
|
1495
|
+
case W.PerChildPerNight: return F.t("general.perChildPerNight");
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function Rr(e, t, n, r = 0, i = 0) {
|
|
1499
1499
|
switch (t) {
|
|
1500
|
-
case
|
|
1501
|
-
case
|
|
1502
|
-
case
|
|
1503
|
-
case
|
|
1504
|
-
case
|
|
1505
|
-
case
|
|
1506
|
-
case
|
|
1507
|
-
case
|
|
1508
|
-
case
|
|
1500
|
+
case W.PerUnit: return e;
|
|
1501
|
+
case W.PerPerson: return e * (r + i);
|
|
1502
|
+
case W.PerAdult: return e * r;
|
|
1503
|
+
case W.PerChild: return e * i;
|
|
1504
|
+
case W.PerNight: return e * n;
|
|
1505
|
+
case W.PerPersonPerNight: return e * (r + i) * n;
|
|
1506
|
+
case W.PerAdultPerNight: return e * r * n;
|
|
1507
|
+
case W.PerChildPerNight: return e * i * n;
|
|
1508
|
+
case W.OneTimePayment: return e;
|
|
1509
1509
|
default: return e;
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function zr(e) {
|
|
1513
1513
|
return e === void 0 ? e : e.replace(/([!?.])([a-z])/g, function(e, t, n) {
|
|
1514
1514
|
return n.toUpperCase();
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return e === void 0 ? "" :
|
|
1517
|
+
function Br(e) {
|
|
1518
|
+
return e === void 0 ? "" : vr(e, {
|
|
1519
1519
|
defaultProtocol: "https",
|
|
1520
1520
|
target: "_blank",
|
|
1521
1521
|
rel: "noopener",
|
|
1522
1522
|
nl2br: !0
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function Vr(e) {
|
|
1526
1526
|
switch (e) {
|
|
1527
|
-
case 2: return
|
|
1528
|
-
case 3: return
|
|
1529
|
-
case 4: return
|
|
1530
|
-
case 5: return
|
|
1527
|
+
case 2: return F.t("booking.reservation.nameTitleMr");
|
|
1528
|
+
case 3: return F.t("booking.reservation.nameTitleMs");
|
|
1529
|
+
case 4: return F.t("booking.reservation.nameTitleMrs");
|
|
1530
|
+
case 5: return F.t("booking.reservation.nameTitleDr");
|
|
1531
1531
|
default: return "";
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function Hr(e) {
|
|
1535
1535
|
let t, n, r, i, a, o, s, c, l, u = 0, d = 0, f = "", p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", m = [];
|
|
1536
1536
|
if (!e) return e;
|
|
1537
1537
|
do
|
|
@@ -1539,17 +1539,17 @@ function Ur(e) {
|
|
|
1539
1539
|
while (u < e.length);
|
|
1540
1540
|
return f = m.join(""), l = e.length % 3, (l ? f.slice(0, l - 3) : f) + "===".slice(l || 3);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Ur(e) {
|
|
1543
1543
|
return e.toLowerCase();
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function Wr(e) {
|
|
1546
1546
|
return new Date(e).toISOString();
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Gr(e, t) {
|
|
1549
1549
|
let n = new Date(e), r = new Date(t).getTime() - n.getTime();
|
|
1550
1550
|
return Math.round(r / (1e3 * 60 * 60 * 24));
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function Kr(e = !1) {
|
|
1553
1553
|
return e ? document.documentElement.lang || "en-US" : document.documentElement.lang.slice(0, 2) || "en";
|
|
1554
1554
|
}
|
|
1555
1555
|
function qr(e = 10) {
|
|
@@ -1561,7 +1561,7 @@ function Jr(e, t = 0, n = !1) {
|
|
|
1561
1561
|
let r = new Date(e);
|
|
1562
1562
|
r = new Date(r.setDate(r.getDate() + t));
|
|
1563
1563
|
let i;
|
|
1564
|
-
switch (
|
|
1564
|
+
switch (Kr()) {
|
|
1565
1565
|
case "da":
|
|
1566
1566
|
case "se":
|
|
1567
1567
|
i = {
|
|
@@ -1694,7 +1694,7 @@ function Qr(e, t = !0) {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
function $r(e) {
|
|
1696
1696
|
let t = "-", n = [6, 7], r = Qr(e, !1), i;
|
|
1697
|
-
switch (
|
|
1697
|
+
switch (Kr()) {
|
|
1698
1698
|
case "da":
|
|
1699
1699
|
i = {
|
|
1700
1700
|
1: "Mandage",
|
|
@@ -1718,7 +1718,7 @@ function $r(e) {
|
|
|
1718
1718
|
};
|
|
1719
1719
|
break;
|
|
1720
1720
|
}
|
|
1721
|
-
return t = r.map((e) => i[e]).join(", "), r.length === 1 ? t = `${i[r[0]]}` : r.length === 7 ? t =
|
|
1721
|
+
return t = r.map((e) => i[e]).join(", "), r.length === 1 ? t = `${i[r[0]]}` : r.length === 7 ? t = F.t("general.everyday") : Zr(n, r) ? t = F.t("general.weekends") : Xr(r) && r.length > 1 && (t = `${i[r[0]]} - ${i[r[r.length - 1]]}`), t;
|
|
1722
1722
|
}
|
|
1723
1723
|
function ei(e) {
|
|
1724
1724
|
let t = e, n = e.split(":");
|
|
@@ -1736,13 +1736,13 @@ function ni(e, t) {
|
|
|
1736
1736
|
return e === t ? ei(e) : `${ei(e)} - ${ei(t)}`;
|
|
1737
1737
|
}
|
|
1738
1738
|
function ri(e, t) {
|
|
1739
|
-
if (t) return new Intl.NumberFormat(
|
|
1739
|
+
if (t) return new Intl.NumberFormat(Kr(!0), {
|
|
1740
1740
|
style: "currency",
|
|
1741
1741
|
currency: t
|
|
1742
1742
|
}).format(e);
|
|
1743
1743
|
}
|
|
1744
1744
|
function ii(e) {
|
|
1745
|
-
return new Intl.NumberFormat(
|
|
1745
|
+
return new Intl.NumberFormat(Kr(!0), { maximumFractionDigits: 0 }).format(e);
|
|
1746
1746
|
}
|
|
1747
1747
|
function ai(e) {
|
|
1748
1748
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
|
|
@@ -3613,7 +3613,7 @@ q.Axios = vs, q.CanceledError = Do, q.CancelToken = ys, q.isCancel = Eo, q.VERSI
|
|
|
3613
3613
|
}, q.spread = bs, q.isAxiosError = xs, q.mergeConfig = Vo, q.AxiosHeaders = Ka, q.formToJSON = (e) => xo(G.isHTMLForm(e) ? new FormData(e) : e), q.getAdapter = us.getAdapter, q.HttpStatusCode = Ss, q.default = q;
|
|
3614
3614
|
//#endregion
|
|
3615
3615
|
//#region src/store/alert.ts
|
|
3616
|
-
var ws =
|
|
3616
|
+
var ws = ne("alert", () => {
|
|
3617
3617
|
let e = w(""), t = w("default"), n = w("NotActive"), r = w(NaN), i = w("global");
|
|
3618
3618
|
function a({ message: i, type: a = "default" }) {
|
|
3619
3619
|
e.value = i, t.value = a, n.value === "NotActive" ? (n.value = "StartActive", r.value = window.setTimeout(() => {
|
|
@@ -3816,29 +3816,29 @@ function ec(e) {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
//#endregion
|
|
3818
3818
|
//#region src/store/applyGiftCard.ts
|
|
3819
|
-
var tc =
|
|
3819
|
+
var tc = ne("applyGiftCard", () => {
|
|
3820
3820
|
let { display: e } = ws(), t = w(0), n = w(""), r = w(""), i = w(""), a = w(!1), o = w(!1);
|
|
3821
3821
|
async function s() {
|
|
3822
3822
|
n.value === "" ? e({
|
|
3823
|
-
message:
|
|
3823
|
+
message: F.t("alert.error.giftCardEmpty"),
|
|
3824
3824
|
type: "error"
|
|
3825
3825
|
}) : (o.value = !0, await J().get("/gift-card/validate", { params: {
|
|
3826
3826
|
giftcardCode: n.value,
|
|
3827
|
-
lang:
|
|
3827
|
+
lang: Kr()
|
|
3828
3828
|
} }).then((n) => {
|
|
3829
3829
|
let { valid: o, amount: s, expirationDate: c, productName: l } = n.data;
|
|
3830
3830
|
o ? (t.value = s, r.value = c, i.value = l, a.value = !0, e({
|
|
3831
|
-
message:
|
|
3831
|
+
message: F.t("alert.success.giftCardApplied"),
|
|
3832
3832
|
type: "success"
|
|
3833
3833
|
})) : (a.value = !1, e({
|
|
3834
|
-
message:
|
|
3834
|
+
message: F.t("alert.error.giftCardInvalid"),
|
|
3835
3835
|
type: "warning"
|
|
3836
3836
|
}));
|
|
3837
3837
|
}), o.value = !1);
|
|
3838
3838
|
}
|
|
3839
3839
|
function c() {
|
|
3840
3840
|
t.value = 0, n.value = "", a.value = !1, e({
|
|
3841
|
-
message:
|
|
3841
|
+
message: F.t("alert.success.giftCardRemoved"),
|
|
3842
3842
|
type: "success"
|
|
3843
3843
|
});
|
|
3844
3844
|
}
|
|
@@ -3852,8 +3852,8 @@ var tc = P("applyGiftCard", () => {
|
|
|
3852
3852
|
apply: s,
|
|
3853
3853
|
reset: c
|
|
3854
3854
|
};
|
|
3855
|
-
}), nc =
|
|
3856
|
-
let { display: e } = ws(), { paymentGatewayId: t } =
|
|
3855
|
+
}), nc = ne("payment", () => {
|
|
3856
|
+
let { display: e } = ws(), { paymentGatewayId: t } = le(oc()), n = w({}), r = w(), i = w(NaN), a = _(() => t.value !== Ar.None), o = _(() => n.value && n.value.guest ? n.value.guest.name : ""), s = _(() => n.value && n.value.guest ? n.value.guest.email : ""), c = _(() => n.value && n.value.guest ? n.value.guest.phone : ""), l = _(() => n.value.adults), u = _(() => n.value.children), d = _(() => n.value.totalPrice || 0), f = _(() => n.value.totalVAT || 0), p = _(() => n.value.offerDate), m = _(() => d.value - f.value), h = _(() => n.value.orderLines), g = _(() => h.value ? h.value.length > 0 : !1);
|
|
3857
3857
|
function v() {
|
|
3858
3858
|
J().put("/capture/confirm", { confirmationId: r.value });
|
|
3859
3859
|
let e = {
|
|
@@ -3886,19 +3886,19 @@ var tc = P("applyGiftCard", () => {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
async function y({ callback: a, response: o }) {
|
|
3888
3888
|
if (!o.error) if (!o.offer) e({
|
|
3889
|
-
message:
|
|
3889
|
+
message: F.t("booking.other.errorMessage"),
|
|
3890
3890
|
type: "warning"
|
|
3891
3891
|
});
|
|
3892
|
-
else if (n.value = o.offer, r.value = o.confirmationId, i.value = o.offer.id, o.easyPayment) if (a(), t.value ===
|
|
3892
|
+
else if (n.value = o.offer, r.value = o.confirmationId, i.value = o.offer.id, o.easyPayment) if (a(), t.value === Ar.ReePay) {
|
|
3893
3893
|
let t = new Reepay.EmbeddedCheckout(o.easyPayment.paymentID, { html_element: "konnectio-payment-checkout" });
|
|
3894
|
-
t.addEventHandler(
|
|
3894
|
+
t.addEventHandler(Dr.Accept, () => {
|
|
3895
3895
|
v(), e({
|
|
3896
|
-
message:
|
|
3896
|
+
message: F.t("alert.success.payment"),
|
|
3897
3897
|
type: "success"
|
|
3898
3898
|
}), a();
|
|
3899
|
-
}), t.addEventHandler(
|
|
3899
|
+
}), t.addEventHandler(Dr.Error, () => {
|
|
3900
3900
|
e({
|
|
3901
|
-
message:
|
|
3901
|
+
message: F.t("alert.error.payment"),
|
|
3902
3902
|
type: "warning"
|
|
3903
3903
|
});
|
|
3904
3904
|
});
|
|
@@ -3907,11 +3907,11 @@ var tc = P("applyGiftCard", () => {
|
|
|
3907
3907
|
checkoutKey: o.easyPayment.checkoutSecretKey,
|
|
3908
3908
|
paymentId: o.easyPayment.paymentID,
|
|
3909
3909
|
containerId: "konnectio-payment-checkout",
|
|
3910
|
-
language:
|
|
3910
|
+
language: Kr() === "da" ? "da-DK" : "en-GB"
|
|
3911
3911
|
}, n = new Dibs.Checkout(t);
|
|
3912
3912
|
n.on("payment-completed", () => {
|
|
3913
3913
|
console.log("Konnectio: Payment completed!"), v(), e({
|
|
3914
|
-
message:
|
|
3914
|
+
message: F.t("alert.success.payment"),
|
|
3915
3915
|
type: "success"
|
|
3916
3916
|
}), a();
|
|
3917
3917
|
}), n.on("pay-initialized", () => {
|
|
@@ -3941,11 +3941,11 @@ var tc = P("applyGiftCard", () => {
|
|
|
3941
3941
|
pay: y,
|
|
3942
3942
|
clearOfferId: b
|
|
3943
3943
|
};
|
|
3944
|
-
}), rc =
|
|
3945
|
-
let e = hc(), t = ac(), n = nc(), { voucher: r, amount: i } =
|
|
3944
|
+
}), rc = ce(), ic = ne("hotel", () => {
|
|
3945
|
+
let e = hc(), t = ac(), n = nc(), { voucher: r, amount: i } = le(tc()), { display: a } = ws(), { metaData: o } = le(oc()), s = oc(), c = w({}), l = _(() => {
|
|
3946
3946
|
let t = [];
|
|
3947
3947
|
for (let n in c.value) {
|
|
3948
|
-
let r = parseInt(n), i =
|
|
3948
|
+
let r = parseInt(n), i = P.value.roomGroups.find((e) => e.id === r), a = {
|
|
3949
3949
|
roomGroupID: r,
|
|
3950
3950
|
title: i?.title || ""
|
|
3951
3951
|
}, o = [];
|
|
@@ -3963,7 +3963,7 @@ var tc = P("applyGiftCard", () => {
|
|
|
3963
3963
|
let o = c.find((e) => e.index === t.id);
|
|
3964
3964
|
if (!o) continue;
|
|
3965
3965
|
let { adultsCount: f, childrenCount: p } = o, { totalPrice: m } = o;
|
|
3966
|
-
|
|
3966
|
+
U.value && (m = U.value.offer.rooms.find((e) => e.ratePlanID === n && e.roomGroupID === r)?.totalPrice);
|
|
3967
3967
|
let h = [];
|
|
3968
3968
|
if (!l) continue;
|
|
3969
3969
|
for (let t in s[u]) {
|
|
@@ -3975,7 +3975,7 @@ var tc = P("applyGiftCard", () => {
|
|
|
3975
3975
|
name: t,
|
|
3976
3976
|
price: i,
|
|
3977
3977
|
quantity: r,
|
|
3978
|
-
totalPrice:
|
|
3978
|
+
totalPrice: Rr(i, a, e.nights, f, p) * r
|
|
3979
3979
|
});
|
|
3980
3980
|
}
|
|
3981
3981
|
}
|
|
@@ -4008,16 +4008,16 @@ var tc = P("applyGiftCard", () => {
|
|
|
4008
4008
|
});
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
|
-
let d = _(() =>
|
|
4011
|
+
let d = _(() => rt.value.length > 0 ? rt.value.every((e) => e.addons.length === 0) : l.value.every((e) => !f(e)));
|
|
4012
4012
|
function f(e) {
|
|
4013
|
-
return !e.variants?.every((e) => e.rooms?.every((t) =>
|
|
4013
|
+
return !e.variants?.every((e) => e.rooms?.every((t) => ot(e.addons, t.childrenCount).length === 0));
|
|
4014
4014
|
}
|
|
4015
4015
|
let p = _(() => l.value.length > 0);
|
|
4016
4016
|
function m(e, t, n) {
|
|
4017
4017
|
c.value[e][t].config[n].units = c.value[e][t].config[n].units - 1;
|
|
4018
4018
|
}
|
|
4019
4019
|
function h(e) {
|
|
4020
|
-
return
|
|
4020
|
+
return P.value.roomGroups.find((t) => t.id === e)?.addons.filter((e) => e.cardinality === kr.Mandatory).map((e) => ({
|
|
4021
4021
|
addonID: e.id,
|
|
4022
4022
|
name: e.name,
|
|
4023
4023
|
price: e.price,
|
|
@@ -4027,16 +4027,16 @@ var tc = P("applyGiftCard", () => {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
let g = _(() => {
|
|
4029
4029
|
let t = [];
|
|
4030
|
-
for (let n in
|
|
4031
|
-
let r = parseInt(n), i =
|
|
4030
|
+
for (let n in oe.value) {
|
|
4031
|
+
let r = parseInt(n), i = oe.value[r];
|
|
4032
4032
|
if (i > 0) {
|
|
4033
|
-
let { price: n, name: a, quantityStrategy: o } =
|
|
4033
|
+
let { price: n, name: a, quantityStrategy: o } = rt.value.flatMap((e) => e.addons).find((e) => e.id === r);
|
|
4034
4034
|
t.push({
|
|
4035
4035
|
addonID: r,
|
|
4036
4036
|
name: a,
|
|
4037
4037
|
price: n,
|
|
4038
4038
|
quantity: i,
|
|
4039
|
-
totalPrice:
|
|
4039
|
+
totalPrice: Rr(n, o, e.nights, e.adults, e.children) * i
|
|
4040
4040
|
});
|
|
4041
4041
|
}
|
|
4042
4042
|
}
|
|
@@ -4047,39 +4047,39 @@ var tc = P("applyGiftCard", () => {
|
|
|
4047
4047
|
for (let i in t) {
|
|
4048
4048
|
let a = parseInt(i), o = t[a];
|
|
4049
4049
|
if (o > 0) {
|
|
4050
|
-
let t =
|
|
4050
|
+
let t = rt.value.find((e) => e.id === n)?.addons.find((e) => e.id === a);
|
|
4051
4051
|
t && r.push({
|
|
4052
4052
|
addonID: a,
|
|
4053
4053
|
name: t.name,
|
|
4054
4054
|
price: t.price,
|
|
4055
4055
|
quantity: o,
|
|
4056
|
-
totalPrice:
|
|
4056
|
+
totalPrice: Rr(t.price, t.quantityStrategy, e.nights, e.adults, e.children) * o
|
|
4057
4057
|
});
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
4060
4060
|
return r;
|
|
4061
4061
|
}
|
|
4062
|
-
let y = _(() =>
|
|
4062
|
+
let y = _(() => ce.value.length > 0 ? ce.value.reduce((e, t) => e + t.unitConfigs.reduce((e, n) => e + v(n.addons, t.roomGroupId).reduce((e, { totalPrice: t }) => e + t, 0), 0), 0) : g.value.reduce((e, { totalPrice: t }) => e + t, 0)), b = _(() => {
|
|
4063
4063
|
let e = 0, t = 0 - i.value;
|
|
4064
|
-
if (
|
|
4065
|
-
let n =
|
|
4066
|
-
e = t +
|
|
4064
|
+
if (Pe.value && rt.value.length > 0) {
|
|
4065
|
+
let n = rt.value.flatMap((e) => h(e.id) || []);
|
|
4066
|
+
e = t + at.value + y.value + x.value * it.value.length + n.reduce((e, { totalPrice: t }) => e + t, 0);
|
|
4067
4067
|
} else {
|
|
4068
4068
|
let n = l.value.flatMap(({ variants: e }) => e).flatMap(({ rooms: e }) => e).reduce((e, { totalPrice: t }) => e + t, t);
|
|
4069
4069
|
e = l.value.flatMap(({ variants: e }) => e).flatMap(({ rooms: e }) => e).flatMap(({ roomAddons: e }) => e).reduce((e, { totalPrice: t }) => e + t, n);
|
|
4070
4070
|
}
|
|
4071
|
-
return
|
|
4072
|
-
}), x = _(() =>
|
|
4071
|
+
return Je.value && Je.value?.providesDiscount && (e -= e * (Je.value.discountPercent / 100)), e;
|
|
4072
|
+
}), x = _(() => nt.value ? nt.value.weekendFee : 0), S = _(() => l.value.flatMap(({ variants: e }) => e).flatMap(({ rooms: e }) => e)), C = _(() => Pe.value ? it.value.length : S.value.length), T = _(() => Pe.value ? it.value.reduce((e, t) => e + t.adults, 0) : S.value.reduce((e, { adultsCount: t }) => e + t, 0)), E = _(() => Pe.value ? it.value.reduce((e, t) => e + t.children, 0) : S.value.reduce((e, { childrenCount: t }) => e + t, 0)), D = _(() => T.value > 0 ? T.value !== e.adults : !1), O = _(() => E.value > 0 ? E.value !== e.children : !1), k = w(e.arrivalDate), A = w(e.departureDate), j = w(e.adults), ee = w(e.children), M = w(e.location || NaN), N = _(() => k.value !== e.arrivalDate && A.value !== e.departureDate), te = _(() => M.value !== e.location), ne = _(() => N.value || te.value), P = w({}), re = w(!0), ie = w(0), ae = w(NaN), oe = w({}), se = w(NaN), ce = w([]), ue = w(""), de = w(""), fe = w(""), I = w(""), pe = w(""), me = w(null), L = w(null), he = B("konnectio_name", "", void 0, { serializer: z.string }), ge = B("konnectio_nameTitle", 2, void 0, { serializer: z.number }), _e = B("konnectio_email", "", void 0, { serializer: z.string }), ve = B("konnectio_phone", "", void 0, { serializer: z.string }), ye = B("konnectio_company", "", void 0, { serializer: z.string }), be = B("konnectio_postal", "", void 0, { serializer: z.string }), xe = B("konnectio_city", "", void 0, { serializer: z.string }), Se = B("konnectio_country", 57, void 0, { serializer: z.number }), Ce = B("konnectio_address", "", void 0, { serializer: z.string }), we = B("konnectio_sortingKeys", { pricesFrom: !1 }, void 0, { serializer: z.object }), Te = w(""), Ee = w(""), De = w(!1), Oe = w(!1), ke = w(!1), Ae = w(null), je = w(void 0), Me = w(), Ne = w(), Pe = _(() => !isNaN(ae.value)), Fe = _(() => s.metaData.hotels.findIndex((t) => t.id === e.location) || 0), R = _(() => s.metaData.hotels[Fe.value]), Ie = _(() => s.metaData.hotels && s.metaData.hotels.length > 1), Le = _(() => s.metaData.hotels ? s.metaData.hotels.flatMap((e) => ({
|
|
4073
4073
|
id: e.id,
|
|
4074
4074
|
name: e.name
|
|
4075
|
-
})) : []),
|
|
4075
|
+
})) : []), Re = _(() => !!me.value), ze = _(() => !!L.value), Be = _(() => R.value.termsOfService ? R.value.termsOfService : ""), Ve = _(() => R.value.hotelMapImage ? R.value.hotelMapImage : null), He = _(() => R.value.useDiscountCard ? R.value.useDiscountCard : !1), Ue = _(() => Be.value !== ""), We = _(() => R.value.country ? R.value.country.name : ""), Ge = _(() => s.metaData.countries ? s.metaData.countries : []), Ke = _(() => s.metaData.cardTypes ? s.metaData.cardTypes : []), qe = _(() => Ke.value.map((e) => ({
|
|
4076
4076
|
value: e.name,
|
|
4077
4077
|
label: e.shortDescription
|
|
4078
|
-
}))),
|
|
4079
|
-
if (
|
|
4080
|
-
}),
|
|
4078
|
+
}))), Je = _(() => Ke.value.find((e) => e.name === je.value?.cardType)), Ye = _(() => R.value.name ? R.value.name : ""), Xe = _(() => s.metaData && Object.keys(s.metaData).length !== 0), Ze = _(() => Object.keys(P.value).length !== 0), Qe = _(() => !(!he.value[1] || !_e.value || !(ve.value.length >= 5) || !be.value || !xe.value || !Ce.value)), $e = _(() => ie.value === 1 && re.value), et = _(() => ie.value === 3 && re.value), tt = _(() => Ze.value ? P.value.templates.concat(P.value.specialTemplates) : []), nt = _(() => {
|
|
4079
|
+
if (tt.value.length > 0) return tt.value.find((e) => e.id === ae.value);
|
|
4080
|
+
}), rt = _(() => !nt.value || !ce.value ? [] : ce.value.map((e) => nt.value.templateRoomGroups.find((t) => t.id === e.roomGroupId)).filter((e) => e !== void 0)), it = _(() => {
|
|
4081
4081
|
let e = [];
|
|
4082
|
-
return
|
|
4082
|
+
return ce.value.forEach((t, n) => {
|
|
4083
4083
|
t.unitConfigs.forEach((r, i) => {
|
|
4084
4084
|
e.push({
|
|
4085
4085
|
roomGroupId: t.roomGroupId,
|
|
@@ -4090,65 +4090,65 @@ var tc = P("applyGiftCard", () => {
|
|
|
4090
4090
|
});
|
|
4091
4091
|
});
|
|
4092
4092
|
}), e;
|
|
4093
|
-
}),
|
|
4094
|
-
function
|
|
4093
|
+
}), at = _(() => U.value ? U.value.offer.offerTemplates[0].totalPrice : rt.value.length === 0 ? 0 : ce.value.reduce((e, t) => e + (rt.value.find((e) => e.id === t.roomGroupId)?.extraPrice ?? 0) * t.unitConfigs.length, 0));
|
|
4094
|
+
function ot(e, t) {
|
|
4095
4095
|
let n = [];
|
|
4096
|
-
e && (n = e.filter((e) => !((e.quantityStrategy ===
|
|
4096
|
+
e && (n = e.filter((e) => !((e.quantityStrategy === W.PerChild || e.quantityStrategy === W.PerChildPerNight) && t == 0)));
|
|
4097
4097
|
let r = Object.groupBy(n, (e) => +!e.image);
|
|
4098
4098
|
return r[0] ? r[0].concat(r[1] || []) : n;
|
|
4099
4099
|
}
|
|
4100
|
-
function
|
|
4101
|
-
return
|
|
4100
|
+
function st(e) {
|
|
4101
|
+
return P.value.roomGroups.find((t) => t.id === e);
|
|
4102
4102
|
}
|
|
4103
|
-
function
|
|
4104
|
-
return `[REMARKS]: ${
|
|
4103
|
+
function ct(e, t) {
|
|
4104
|
+
return `[REMARKS]: ${Te.value} \r\n [ALLERGIES]: ${Ee.value} \r\n [REQUESTED ARRIVAL]: ${e} \r\n [REQUESTED DEPARTURE]: ${t}`;
|
|
4105
4105
|
}
|
|
4106
|
-
function
|
|
4107
|
-
let i = (t ? n : r ?
|
|
4108
|
-
return
|
|
4106
|
+
function lt(e, t, n, r) {
|
|
4107
|
+
let i = (t ? n : r ? de.value : fe.value).split(":");
|
|
4108
|
+
return Wr(new Date(e).setUTCHours(parseInt(i[0]), parseInt(i[1]), 0, 0));
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4111
|
-
return
|
|
4110
|
+
function ut(t) {
|
|
4111
|
+
return Gr(e.arrivalDate, e.departureDate) * t;
|
|
4112
4112
|
}
|
|
4113
|
-
async function
|
|
4114
|
-
|
|
4113
|
+
async function dt() {
|
|
4114
|
+
re.value = !0;
|
|
4115
4115
|
try {
|
|
4116
|
-
o.value = (await J().get("/hotel/metadata", { params: { language:
|
|
4116
|
+
o.value = (await J().get("/hotel/metadata", { params: { language: Kr() } })).data;
|
|
4117
4117
|
} catch {
|
|
4118
4118
|
a({
|
|
4119
|
-
message:
|
|
4119
|
+
message: F.t("alert.error.couldntFetchMetadata"),
|
|
4120
4120
|
type: "warning"
|
|
4121
4121
|
});
|
|
4122
4122
|
}
|
|
4123
|
-
|
|
4123
|
+
re.value = !1;
|
|
4124
4124
|
}
|
|
4125
|
-
let
|
|
4126
|
-
async function
|
|
4125
|
+
let ft = w(), pt = _(() => ft.value?.name);
|
|
4126
|
+
async function mt(t) {
|
|
4127
4127
|
try {
|
|
4128
4128
|
let n = await J().post("/hotel/check-guest-discount", { guestDiscountId: t });
|
|
4129
4129
|
if (n.data.isValid) {
|
|
4130
4130
|
a({
|
|
4131
|
-
message:
|
|
4131
|
+
message: F.t("alert.success.guestDiscountCodeApplied"),
|
|
4132
4132
|
type: "success"
|
|
4133
4133
|
});
|
|
4134
4134
|
let t = n.data.guestDiscount;
|
|
4135
|
-
|
|
4135
|
+
ft.value = t, Ct(t.id);
|
|
4136
4136
|
let r = new Date(new Date(t.periods[0].fromDate).setHours(12, 0, 0, 0)), i = new Date((/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0));
|
|
4137
4137
|
return r > i ? (e.updateDates(new Date(t.periods[0].fromDate)), !0) : (e.updateDates(i), !0);
|
|
4138
4138
|
}
|
|
4139
4139
|
return a({
|
|
4140
|
-
message:
|
|
4140
|
+
message: F.t("alert.error.guestDiscountCodeInvalid"),
|
|
4141
4141
|
type: "error"
|
|
4142
4142
|
}), !1;
|
|
4143
4143
|
} catch {
|
|
4144
4144
|
return a({
|
|
4145
|
-
message:
|
|
4145
|
+
message: F.t("booking.other.errorMessage"),
|
|
4146
4146
|
type: "error"
|
|
4147
4147
|
}), !1;
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
|
-
async function
|
|
4151
|
-
|
|
4150
|
+
async function V() {
|
|
4151
|
+
ie.value = 1, re.value = !0;
|
|
4152
4152
|
let n = e.location;
|
|
4153
4153
|
isNaN(n) && (n = null);
|
|
4154
4154
|
try {
|
|
@@ -4160,28 +4160,28 @@ var tc = P("applyGiftCard", () => {
|
|
|
4160
4160
|
roomCount: e.roomCount,
|
|
4161
4161
|
roomGroupIds: s.hasActiveIdFilter ? s.activeIdFilter : null,
|
|
4162
4162
|
guestDiscountId: me.value,
|
|
4163
|
-
guestDiscountCode:
|
|
4164
|
-
language:
|
|
4163
|
+
guestDiscountCode: L.value,
|
|
4164
|
+
language: Kr(),
|
|
4165
4165
|
hotelId: n
|
|
4166
4166
|
} });
|
|
4167
|
-
r.status === 200 ? (
|
|
4168
|
-
message: `${
|
|
4167
|
+
r.status === 200 ? (P.value = r.data, j.value = e.adults, ee.value = e.children, k.value = e.arrivalDate, A.value = e.departureDate, M.value = e.location, de.value = s.defaultArrivalTime(M.value), fe.value = s.defaultDepartureTime(M.value), rc.emit("scrollToTop"), t.viewItemList()) : a({
|
|
4168
|
+
message: `${F.t("booking.other.errorMessage")} (HTTP: ${r.status})`,
|
|
4169
4169
|
type: "warning"
|
|
4170
4170
|
});
|
|
4171
4171
|
} catch {
|
|
4172
4172
|
a({
|
|
4173
|
-
message:
|
|
4173
|
+
message: F.t("alert.error.couldntFetchListings"),
|
|
4174
4174
|
type: "warning"
|
|
4175
4175
|
});
|
|
4176
4176
|
}
|
|
4177
|
-
|
|
4177
|
+
re.value = !1;
|
|
4178
4178
|
}
|
|
4179
|
-
async function
|
|
4180
|
-
await Promise.all([
|
|
4179
|
+
async function H() {
|
|
4180
|
+
await Promise.all([dt(), e.fetchMetadata()]);
|
|
4181
4181
|
}
|
|
4182
|
-
function
|
|
4182
|
+
function ht(e = !1) {
|
|
4183
4183
|
let t = [];
|
|
4184
|
-
isNaN(
|
|
4184
|
+
isNaN(ae.value) ? l.value.forEach(({ variants: e, roomGroupID: n }) => {
|
|
4185
4185
|
let r = h(n);
|
|
4186
4186
|
e?.forEach(({ rooms: e, ratePlanID: i }) => {
|
|
4187
4187
|
e?.forEach(({ adultsCount: e, childrenCount: a, roomAddons: o, roomId: s }) => {
|
|
@@ -4191,194 +4191,198 @@ var tc = P("applyGiftCard", () => {
|
|
|
4191
4191
|
adultsCount: e,
|
|
4192
4192
|
childrenCount: a,
|
|
4193
4193
|
guest: {
|
|
4194
|
-
name:
|
|
4195
|
-
phone:
|
|
4196
|
-
email:
|
|
4194
|
+
name: he.value,
|
|
4195
|
+
phone: ve.value,
|
|
4196
|
+
email: _e.value
|
|
4197
4197
|
},
|
|
4198
4198
|
roomAddons: o.concat(r || []),
|
|
4199
4199
|
selectedRoomID: s
|
|
4200
4200
|
});
|
|
4201
4201
|
});
|
|
4202
4202
|
});
|
|
4203
|
-
}) :
|
|
4204
|
-
let n =
|
|
4203
|
+
}) : ce.value.length > 0 ? it.value.forEach((e) => {
|
|
4204
|
+
let n = ce.value[e.selectionIdx].unitConfigs[e.configIdx], r = v(n.addons, e.roomGroupId);
|
|
4205
4205
|
t.push({
|
|
4206
|
-
templateID:
|
|
4206
|
+
templateID: ae.value,
|
|
4207
4207
|
roomGroupID: e.roomGroupId,
|
|
4208
4208
|
ratePlanID: null,
|
|
4209
4209
|
adultsCount: e.adults,
|
|
4210
4210
|
childrenCount: e.children,
|
|
4211
4211
|
roomAddons: r.concat(h(e.roomGroupId) || []),
|
|
4212
4212
|
guest: {
|
|
4213
|
-
title:
|
|
4213
|
+
title: Vr(ge.value),
|
|
4214
4214
|
guestID: 0,
|
|
4215
|
-
name:
|
|
4216
|
-
email:
|
|
4217
|
-
phone:
|
|
4218
|
-
newsmails:
|
|
4215
|
+
name: he.value,
|
|
4216
|
+
email: _e.value,
|
|
4217
|
+
phone: ve.value,
|
|
4218
|
+
newsmails: De.value
|
|
4219
4219
|
}
|
|
4220
4220
|
});
|
|
4221
4221
|
}) : t.push({
|
|
4222
|
-
templateID:
|
|
4223
|
-
roomGroupID:
|
|
4222
|
+
templateID: ae.value,
|
|
4223
|
+
roomGroupID: se.value,
|
|
4224
4224
|
ratePlanID: null,
|
|
4225
4225
|
adultsCount: j.value,
|
|
4226
4226
|
childrenCount: ee.value,
|
|
4227
|
-
roomAddons: g.value.concat(h(
|
|
4227
|
+
roomAddons: g.value.concat(h(se.value) || []),
|
|
4228
4228
|
guest: {
|
|
4229
|
-
title:
|
|
4229
|
+
title: Vr(ge.value),
|
|
4230
4230
|
guestID: 0,
|
|
4231
|
-
name:
|
|
4232
|
-
email:
|
|
4233
|
-
phone:
|
|
4234
|
-
newsmails:
|
|
4231
|
+
name: he.value,
|
|
4232
|
+
email: _e.value,
|
|
4233
|
+
phone: ve.value,
|
|
4234
|
+
newsmails: De.value
|
|
4235
4235
|
}
|
|
4236
4236
|
});
|
|
4237
4237
|
let n = M.value;
|
|
4238
4238
|
return isNaN(n) && (n = null), {
|
|
4239
|
-
offerID:
|
|
4239
|
+
offerID: U.value ? U.value.offer.id : null,
|
|
4240
4240
|
totalPrice: b.value,
|
|
4241
4241
|
fromDate: ti(k.value),
|
|
4242
4242
|
toDate: ti(A.value),
|
|
4243
4243
|
hotelId: n,
|
|
4244
4244
|
guest: {
|
|
4245
|
-
travellingFor:
|
|
4246
|
-
title:
|
|
4245
|
+
travellingFor: ue.value,
|
|
4246
|
+
title: Vr(ge.value),
|
|
4247
4247
|
guestID: 0,
|
|
4248
|
-
name:
|
|
4249
|
-
email:
|
|
4250
|
-
firmName:
|
|
4251
|
-
phone:
|
|
4252
|
-
country:
|
|
4253
|
-
address1:
|
|
4254
|
-
postal: String(
|
|
4255
|
-
city:
|
|
4256
|
-
newsmails:
|
|
4248
|
+
name: he.value,
|
|
4249
|
+
email: _e.value,
|
|
4250
|
+
firmName: ye.value,
|
|
4251
|
+
phone: ve.value,
|
|
4252
|
+
country: Se.value,
|
|
4253
|
+
address1: Ce.value,
|
|
4254
|
+
postal: String(be.value),
|
|
4255
|
+
city: xe.value,
|
|
4256
|
+
newsmails: De.value
|
|
4257
4257
|
},
|
|
4258
4258
|
giftCardCode: r.value,
|
|
4259
|
-
discountCode: e ? pe.value :
|
|
4259
|
+
discountCode: e ? pe.value : I.value,
|
|
4260
4260
|
selectedRooms: t,
|
|
4261
|
-
remark: lt(
|
|
4261
|
+
remark: ct(lt(k.value, !s.hasUserArrivalSelection(M.value), s.defaultArrivalTime(M.value), !0), lt(A.value, !s.hasUserDepartureSelection(M.value), s.defaultDepartureTime(M.value), !1)),
|
|
4262
4262
|
checkoutUrl: window.location.origin,
|
|
4263
4263
|
privacyUrl: window.location.origin,
|
|
4264
4264
|
termsOfserviceURL: window.location.origin,
|
|
4265
|
-
memberCard:
|
|
4265
|
+
memberCard: je.value
|
|
4266
4266
|
};
|
|
4267
4267
|
}
|
|
4268
|
-
let
|
|
4269
|
-
async function
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4268
|
+
let U = w(), gt = w(!1);
|
|
4269
|
+
async function _t() {
|
|
4270
|
+
if (I.value !== "") {
|
|
4271
|
+
gt.value = !0;
|
|
4272
|
+
let e = I.value;
|
|
4273
|
+
J().post("/hotel/validate-discount-code", ht()).then((t) => {
|
|
4274
|
+
gt.value = !1;
|
|
4275
|
+
let n = t.data;
|
|
4276
|
+
n.discountApplyed === !0 ? (U.value = n, pe.value = e, L.value = e, I.value = "", a({
|
|
4277
|
+
message: F.t("alert.success.discountCodeApplied"),
|
|
4278
|
+
type: "success"
|
|
4279
|
+
})) : (L.value === e && (L.value = null), n.error == "CodeNotApplicable" ? a({
|
|
4280
|
+
message: F.t("alert.error.discountCodeNotApplicable"),
|
|
4281
|
+
type: "error"
|
|
4282
|
+
}) : a({
|
|
4283
|
+
message: F.t("alert.error.discountCodeInvalid"),
|
|
4284
|
+
type: "error"
|
|
4285
|
+
}));
|
|
4286
|
+
}).catch(() => {
|
|
4287
|
+
gt.value = !1, L.value === e && (L.value = null), a({
|
|
4288
|
+
message: `${F.t("alert.error.discountCodeValidation")}`,
|
|
4289
|
+
type: "warning"
|
|
4290
|
+
});
|
|
4290
4291
|
});
|
|
4291
|
-
}
|
|
4292
|
+
} else a({
|
|
4293
|
+
message: F.t("alert.error.discountCodeEmpty"),
|
|
4294
|
+
type: "error"
|
|
4295
|
+
});
|
|
4292
4296
|
}
|
|
4293
|
-
let
|
|
4294
|
-
function
|
|
4295
|
-
|
|
4297
|
+
let vt = _(() => U.value?.offer.properties);
|
|
4298
|
+
function yt() {
|
|
4299
|
+
U.value = void 0, I.value = "", pe.value = "", L.value = null;
|
|
4296
4300
|
}
|
|
4297
|
-
async function
|
|
4298
|
-
if (
|
|
4301
|
+
async function bt() {
|
|
4302
|
+
if (Ae.value && Me.value) {
|
|
4299
4303
|
let e = {
|
|
4300
|
-
cardType:
|
|
4301
|
-
cardNumber: String(
|
|
4302
|
-
controlNr:
|
|
4303
|
-
postalCode: String(
|
|
4304
|
+
cardType: Ae.value,
|
|
4305
|
+
cardNumber: String(Me.value),
|
|
4306
|
+
controlNr: Ne.value,
|
|
4307
|
+
postalCode: String(be.value)
|
|
4304
4308
|
};
|
|
4305
4309
|
J().post("/hotel/validate-card-number", e).then((t) => {
|
|
4306
|
-
t.status === 200 && (t.data.success === !0 ? (
|
|
4307
|
-
message:
|
|
4310
|
+
t.status === 200 && (t.data.success === !0 ? (je.value = e, a({
|
|
4311
|
+
message: F.t("alert.success.memberCardValid"),
|
|
4308
4312
|
type: "success"
|
|
4309
4313
|
})) : a({
|
|
4310
|
-
message:
|
|
4314
|
+
message: F.t("alert.error.memberCardInvalid"),
|
|
4311
4315
|
type: "error"
|
|
4312
4316
|
}));
|
|
4313
4317
|
});
|
|
4314
4318
|
} else a({
|
|
4315
|
-
message:
|
|
4319
|
+
message: F.t("alert.error.memberCardEmpty"),
|
|
4316
4320
|
type: "error"
|
|
4317
4321
|
});
|
|
4318
4322
|
}
|
|
4319
|
-
async function
|
|
4320
|
-
if (
|
|
4323
|
+
async function xt(e, t) {
|
|
4324
|
+
if (ke.value === !1 && Ue.value) {
|
|
4321
4325
|
a({
|
|
4322
|
-
message:
|
|
4326
|
+
message: F.t("alert.error.acceptTerms", { terms: F.t("general.termsAndConditions") }),
|
|
4323
4327
|
type: "error"
|
|
4324
4328
|
});
|
|
4325
4329
|
return;
|
|
4326
4330
|
}
|
|
4327
|
-
|
|
4328
|
-
|
|
4331
|
+
ie.value = 3, re.value = !0, await J().post("/hotel/create-reservation", ht(!0)).then((t) => {
|
|
4332
|
+
Oe.value = !1, re.value = !1;
|
|
4329
4333
|
try {
|
|
4330
4334
|
n.pay({
|
|
4331
4335
|
callback: e,
|
|
4332
4336
|
response: t.data
|
|
4333
4337
|
});
|
|
4334
4338
|
} catch {
|
|
4335
|
-
|
|
4336
|
-
message:
|
|
4339
|
+
ie.value = 2, a({
|
|
4340
|
+
message: F.t("booking.other.errorMessage"),
|
|
4337
4341
|
type: "warning"
|
|
4338
4342
|
});
|
|
4339
4343
|
}
|
|
4340
4344
|
}).catch((e) => {
|
|
4341
|
-
|
|
4345
|
+
re.value = !1;
|
|
4342
4346
|
let { status: n } = e.response;
|
|
4343
|
-
n === 503 ? (
|
|
4344
|
-
message:
|
|
4347
|
+
n === 503 ? (ie.value = 1, a({
|
|
4348
|
+
message: F.t("alert.error.noRoomAvailable"),
|
|
4345
4349
|
type: "warning"
|
|
4346
|
-
}), t(),
|
|
4347
|
-
message:
|
|
4350
|
+
}), t(), Ot()) : (ie.value = 2, a({
|
|
4351
|
+
message: F.t("booking.other.errorMessage"),
|
|
4348
4352
|
type: "warning"
|
|
4349
4353
|
}));
|
|
4350
4354
|
});
|
|
4351
4355
|
}
|
|
4352
|
-
async function
|
|
4356
|
+
async function St({ id: e, reason: t, remark: n }) {
|
|
4353
4357
|
await J().post("/hotel/cancel-reservation", {
|
|
4354
4358
|
id: e,
|
|
4355
4359
|
reason: t,
|
|
4356
4360
|
remark: n
|
|
4357
4361
|
});
|
|
4358
4362
|
}
|
|
4359
|
-
function
|
|
4363
|
+
function Ct(e) {
|
|
4360
4364
|
me.value = e;
|
|
4361
4365
|
}
|
|
4362
|
-
function
|
|
4363
|
-
|
|
4366
|
+
function wt(e) {
|
|
4367
|
+
L.value = e;
|
|
4364
4368
|
}
|
|
4365
|
-
function
|
|
4369
|
+
function Tt() {
|
|
4366
4370
|
me.value = null;
|
|
4367
4371
|
}
|
|
4372
|
+
function Et() {
|
|
4373
|
+
L.value = null;
|
|
4374
|
+
}
|
|
4368
4375
|
function Dt() {
|
|
4369
|
-
|
|
4376
|
+
ae.value = NaN, se.value = NaN, oe.value = {}, ce.value = [];
|
|
4370
4377
|
}
|
|
4371
4378
|
function Ot() {
|
|
4372
|
-
|
|
4379
|
+
u(), yt(), Dt();
|
|
4373
4380
|
}
|
|
4374
4381
|
function kt() {
|
|
4375
|
-
|
|
4382
|
+
Dt(), u(!0);
|
|
4376
4383
|
}
|
|
4377
4384
|
function At() {
|
|
4378
|
-
|
|
4379
|
-
}
|
|
4380
|
-
function jt() {
|
|
4381
|
-
V();
|
|
4385
|
+
H();
|
|
4382
4386
|
}
|
|
4383
4387
|
return {
|
|
4384
4388
|
adultsMismatch: D,
|
|
@@ -4386,108 +4390,108 @@ var tc = P("applyGiftCard", () => {
|
|
|
4386
4390
|
totalRooms: C,
|
|
4387
4391
|
totalAdults: T,
|
|
4388
4392
|
totalChildren: E,
|
|
4389
|
-
isSearchOutdated:
|
|
4393
|
+
isSearchOutdated: ne,
|
|
4390
4394
|
locationMismatch: te,
|
|
4391
4395
|
totalTemplateAddonPrice: y,
|
|
4392
|
-
hasTermOfService:
|
|
4396
|
+
hasTermOfService: Ue,
|
|
4393
4397
|
currentDepartureDate: A,
|
|
4394
4398
|
currentArrivalDate: k,
|
|
4395
4399
|
currentAdults: j,
|
|
4396
4400
|
currentChildren: ee,
|
|
4397
4401
|
currentLocation: M,
|
|
4398
|
-
isValidatingDiscountCode:
|
|
4399
|
-
discountVouchers:
|
|
4400
|
-
discountCode:
|
|
4402
|
+
isValidatingDiscountCode: gt,
|
|
4403
|
+
discountVouchers: vt,
|
|
4404
|
+
discountCode: I,
|
|
4401
4405
|
datesMismatch: N,
|
|
4402
4406
|
appliedDiscountCode: pe,
|
|
4403
|
-
hasGuestDiscountId:
|
|
4404
|
-
hasGuestDiscountCode:
|
|
4407
|
+
hasGuestDiscountId: Re,
|
|
4408
|
+
hasGuestDiscountCode: ze,
|
|
4405
4409
|
guestDiscountId: me,
|
|
4406
|
-
guestDiscountCode:
|
|
4407
|
-
hasMemberCards:
|
|
4410
|
+
guestDiscountCode: L,
|
|
4411
|
+
hasMemberCards: He,
|
|
4408
4412
|
getMandatoryRoomGroupAddons: h,
|
|
4409
|
-
resetDiscountVoucher:
|
|
4413
|
+
resetDiscountVoucher: yt,
|
|
4410
4414
|
clearRoomSelection: u,
|
|
4411
|
-
validateDiscountCode:
|
|
4412
|
-
setGuestDiscountId:
|
|
4413
|
-
setGuestDiscountCode:
|
|
4414
|
-
clearGuestDiscountId:
|
|
4415
|
-
clearGuestDiscountCode:
|
|
4416
|
-
validateMemberCard:
|
|
4417
|
-
selectedMemberCardData:
|
|
4418
|
-
selectedMemberCardObject:
|
|
4419
|
-
isTemplateReservation:
|
|
4415
|
+
validateDiscountCode: _t,
|
|
4416
|
+
setGuestDiscountId: Ct,
|
|
4417
|
+
setGuestDiscountCode: wt,
|
|
4418
|
+
clearGuestDiscountId: Tt,
|
|
4419
|
+
clearGuestDiscountCode: Et,
|
|
4420
|
+
validateMemberCard: bt,
|
|
4421
|
+
selectedMemberCardData: Je,
|
|
4422
|
+
selectedMemberCardObject: je,
|
|
4423
|
+
isTemplateReservation: Pe,
|
|
4420
4424
|
selectionHasNoAddons: d,
|
|
4421
|
-
guestDiscountName:
|
|
4422
|
-
hasHotelList:
|
|
4423
|
-
hotelList:
|
|
4424
|
-
areListingsLoading:
|
|
4425
|
+
guestDiscountName: pt,
|
|
4426
|
+
hasHotelList: Ie,
|
|
4427
|
+
hotelList: Le,
|
|
4428
|
+
areListingsLoading: $e,
|
|
4425
4429
|
roomSelect: c,
|
|
4426
4430
|
removeRoom: m,
|
|
4427
|
-
termsOfService:
|
|
4431
|
+
termsOfService: Be,
|
|
4428
4432
|
metaData: o,
|
|
4429
|
-
availabilityData:
|
|
4430
|
-
isLoading:
|
|
4431
|
-
moduleState:
|
|
4432
|
-
templateAddons:
|
|
4433
|
-
templateID:
|
|
4434
|
-
roomGroupID:
|
|
4435
|
-
templateRoomSelections:
|
|
4436
|
-
templateRoomUnits:
|
|
4437
|
-
travelingFor:
|
|
4438
|
-
arrivalTime:
|
|
4439
|
-
departureTime:
|
|
4440
|
-
name:
|
|
4441
|
-
nameTitle:
|
|
4442
|
-
email:
|
|
4443
|
-
phone:
|
|
4444
|
-
firmName:
|
|
4445
|
-
postal:
|
|
4446
|
-
city:
|
|
4447
|
-
country:
|
|
4448
|
-
address:
|
|
4449
|
-
remark:
|
|
4450
|
-
allergies:
|
|
4451
|
-
newsMails:
|
|
4433
|
+
availabilityData: P,
|
|
4434
|
+
isLoading: re,
|
|
4435
|
+
moduleState: ie,
|
|
4436
|
+
templateAddons: oe,
|
|
4437
|
+
templateID: ae,
|
|
4438
|
+
roomGroupID: se,
|
|
4439
|
+
templateRoomSelections: ce,
|
|
4440
|
+
templateRoomUnits: it,
|
|
4441
|
+
travelingFor: ue,
|
|
4442
|
+
arrivalTime: de,
|
|
4443
|
+
departureTime: fe,
|
|
4444
|
+
name: he,
|
|
4445
|
+
nameTitle: ge,
|
|
4446
|
+
email: _e,
|
|
4447
|
+
phone: ve,
|
|
4448
|
+
firmName: ye,
|
|
4449
|
+
postal: be,
|
|
4450
|
+
city: xe,
|
|
4451
|
+
country: Se,
|
|
4452
|
+
address: Ce,
|
|
4453
|
+
remark: Te,
|
|
4454
|
+
allergies: Ee,
|
|
4455
|
+
newsMails: De,
|
|
4452
4456
|
roomDisplay: l,
|
|
4453
|
-
isPaymentInitialized:
|
|
4454
|
-
hotelCountry:
|
|
4455
|
-
countries:
|
|
4456
|
-
title:
|
|
4457
|
-
isMetadataAvailable:
|
|
4458
|
-
isAvailabilityDataAvailable:
|
|
4457
|
+
isPaymentInitialized: Oe,
|
|
4458
|
+
hotelCountry: We,
|
|
4459
|
+
countries: Ge,
|
|
4460
|
+
title: Ye,
|
|
4461
|
+
isMetadataAvailable: Xe,
|
|
4462
|
+
isAvailabilityDataAvailable: Ze,
|
|
4459
4463
|
totalPrice: b,
|
|
4460
|
-
selectedPackage:
|
|
4461
|
-
isPaymentLoading:
|
|
4462
|
-
getSingleListing:
|
|
4463
|
-
getBasePrice:
|
|
4464
|
-
getSelectedPackageRooms:
|
|
4465
|
-
isReservationFormFilled:
|
|
4464
|
+
selectedPackage: nt,
|
|
4465
|
+
isPaymentLoading: et,
|
|
4466
|
+
getSingleListing: st,
|
|
4467
|
+
getBasePrice: ut,
|
|
4468
|
+
getSelectedPackageRooms: rt,
|
|
4469
|
+
isReservationFormFilled: Qe,
|
|
4466
4470
|
hasValidRoomSelection: p,
|
|
4467
|
-
fetchMetadata:
|
|
4468
|
-
fetchAvailabilityData:
|
|
4469
|
-
createReservation:
|
|
4470
|
-
resetTemplate:
|
|
4471
|
-
initialize:
|
|
4472
|
-
reservationPayload:
|
|
4473
|
-
filterAddons:
|
|
4474
|
-
cancelReservation:
|
|
4471
|
+
fetchMetadata: H,
|
|
4472
|
+
fetchAvailabilityData: V,
|
|
4473
|
+
createReservation: xt,
|
|
4474
|
+
resetTemplate: Dt,
|
|
4475
|
+
initialize: At,
|
|
4476
|
+
reservationPayload: ht,
|
|
4477
|
+
filterAddons: ot,
|
|
4478
|
+
cancelReservation: St,
|
|
4475
4479
|
hasAvailableRoomAddons: f,
|
|
4476
|
-
checkGuestDiscount:
|
|
4477
|
-
onOverviewReset:
|
|
4478
|
-
templateRoomTotalPrice:
|
|
4479
|
-
discountPayload:
|
|
4480
|
-
acceptTerms:
|
|
4481
|
-
sortingKeys:
|
|
4480
|
+
checkGuestDiscount: mt,
|
|
4481
|
+
onOverviewReset: kt,
|
|
4482
|
+
templateRoomTotalPrice: at,
|
|
4483
|
+
discountPayload: U,
|
|
4484
|
+
acceptTerms: ke,
|
|
4485
|
+
sortingKeys: we,
|
|
4482
4486
|
weekendFee: x,
|
|
4483
|
-
hotelMapImage:
|
|
4484
|
-
memberCards:
|
|
4485
|
-
memberCardList:
|
|
4486
|
-
selectedMemberCard:
|
|
4487
|
-
memberCardControlNumber:
|
|
4488
|
-
memberCardNumber:
|
|
4487
|
+
hotelMapImage: Ve,
|
|
4488
|
+
memberCards: Ke,
|
|
4489
|
+
memberCardList: qe,
|
|
4490
|
+
selectedMemberCard: Ae,
|
|
4491
|
+
memberCardControlNumber: Ne,
|
|
4492
|
+
memberCardNumber: Me
|
|
4489
4493
|
};
|
|
4490
|
-
}), ac =
|
|
4494
|
+
}), ac = ne("tracking", () => {
|
|
4491
4495
|
let e = oc(), t = ic(), n = uc(), r = _(() => {
|
|
4492
4496
|
let e = [];
|
|
4493
4497
|
return t.roomDisplay.forEach(({ variants: t }) => {
|
|
@@ -4600,57 +4604,57 @@ var tc = P("applyGiftCard", () => {
|
|
|
4600
4604
|
beginEventCheckout: m,
|
|
4601
4605
|
viewItemList: s
|
|
4602
4606
|
};
|
|
4603
|
-
}), oc =
|
|
4604
|
-
let e = hc(), t = ac(), { display: n } = ws(), r =
|
|
4607
|
+
}), oc = ne("utilities", () => {
|
|
4608
|
+
let e = hc(), t = ac(), { display: n } = ws(), r = B("k_utils_settings", {}, void 0, { serializer: z.object }), i = w([]), a = w({}), o = _(() => (e) => i.value[e] ? !i.value[e].disableChildSelection : !0), s = _(() => (e) => i.value[e] ? !i.value[e].hideArrivalDepartureInputs : !1), c = _(() => (e) => i.value[e] ? !i.value[e].disableArrivalUserSelection : !1), l = _(() => (e) => i.value[e] ? !i.value[e].disableDepartureUserSelection : !1), u = _(() => (e) => i.value[e] ? i.value[e].enableRoomAmountSearch : !1), d = _(() => (e) => i.value[e].arrivalEarliest), f = _(() => (e) => i.value[e].arrivalDefault), p = _(() => (e) => i.value[e].arrivalLatest), m = _(() => (e) => i.value[e].departureEarliest), h = _(() => (e) => i.value[e].departureDefault), g = _(() => (e) => i.value[e].departureLatest), v = _(() => r.value.maximumNightsAvailable), y = _(() => r.value.enableTracking), b = _(() => r.value.googleApiKey), x = _(() => r.value.recaptchaSiteKey), S = _(() => r.value.defaultAdultAmount), C = _(() => r.value.defaultChildAmount), T = _(() => r.value.maxAdultAmount), E = _(() => r.value.maxChildAmount), D = _(() => r.value.firstSelectableDateOffset), O = _(() => r.value.lastSelectableDateOffset), k = _(() => r.value.hideTitle), A = _(() => r.value.headerHeight), j = _(() => r.value.enableStickyHeader), M = _(() => r.value.disableNamePrefix), N = _(() => r.value.disableGiftCardVoucher), te = _(() => r.value.disableDiscountVoucher), ne = _(() => r.value.disablePricesFrom), P = _(() => r.value.hideAvailableRoomAmount), re = _(() => r.value.disableNewsletterSignup), ie = _(() => r.value.disableTravelingFor), ae = _(() => r.value.disableTravelingForBleasure), oe = _(() => r.value.disableCompanyField), se = _(() => r.value.hideEventLength), ce = _(() => r.value.hideEventEndTime), le = _(() => r.value.hideAvailabilityNotice), ue = _(() => r.value.autoSelectRateId), de = _(() => r.value.splitBookingCalendar), fe = _(() => r.value.hideEventGuestAmount), I = _(() => r.value.hideOptionalLabel), pe = _(() => r.value.enableMultipleConfigurations), me = _(() => r.value.selectGiftCardAsDefault), L = w(null), he = w(""), ge = w(!1), _e = _(() => `Bearer ${he.value}`), ve = _(() => !!a.value && !!a.value.hotels), ye = _(() => ve.value ? a.value.hotels[0].currency.currencyCode : ""), be = _(() => ve.value ? a.value.hotels[0].currency.id : NaN), xe = _(() => ve.value ? a.value.hotels[0].name : ""), Se = _(() => ve.value && a.value.hotels[0].paymentGatewayId || Ar.None), Ce = _(() => !!x.value), we = _(() => !!L.value), Te = _(() => {
|
|
4605
4609
|
let e = !0;
|
|
4606
|
-
return (
|
|
4607
|
-
}),
|
|
4608
|
-
async function
|
|
4609
|
-
|
|
4610
|
+
return (Se.value === Ar.None || Se.value === Ar.AskForCreditCard) && (e = !1), e;
|
|
4611
|
+
}), Ee = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value)).setHours(12, 0, 0, 0)), De = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value + 1)).setHours(12, 0, 0, 0));
|
|
4612
|
+
async function Oe(e) {
|
|
4613
|
+
he.value = e, await lc();
|
|
4610
4614
|
}
|
|
4611
|
-
async function
|
|
4615
|
+
async function ke(e = "none") {
|
|
4612
4616
|
try {
|
|
4613
4617
|
if (e !== "none") {
|
|
4614
|
-
let t = (await J().get(`/${e}/metadata`, { params: { language:
|
|
4615
|
-
a.value = t, t.success === void 0 ?
|
|
4618
|
+
let t = (await J().get(`/${e}/metadata`, { params: { language: Kr() } })).data;
|
|
4619
|
+
a.value = t, t.success === void 0 ? ge.value = !1 : ge.value = !t.success;
|
|
4616
4620
|
}
|
|
4617
4621
|
} catch {
|
|
4618
4622
|
n({
|
|
4619
|
-
message:
|
|
4623
|
+
message: F.t("alert.error.couldntFetchMetadata"),
|
|
4620
4624
|
type: "warning"
|
|
4621
4625
|
});
|
|
4622
4626
|
}
|
|
4623
4627
|
}
|
|
4624
|
-
async function
|
|
4628
|
+
async function Ae() {
|
|
4625
4629
|
await J().get("/utility/get-settings-and-translations").then((n) => {
|
|
4626
4630
|
let { settings: a, hotelSettings: o, translations: s } = n.data;
|
|
4627
|
-
r.value = a, i.value = o, isNaN(e.adults) && (e.adults = a.defaultAdultAmount), isNaN(e.children) && (e.children = a.defaultChildAmount), e.arrivalDate === null && (e.arrivalDate =
|
|
4631
|
+
r.value = a, i.value = o, isNaN(e.adults) && (e.adults = a.defaultAdultAmount), isNaN(e.children) && (e.children = a.defaultChildAmount), e.arrivalDate === null && (e.arrivalDate = Ee()), e.departureDate === null && (e.departureDate = De()), ee(s), r.value.enableTracking && t.setup();
|
|
4628
4632
|
});
|
|
4629
4633
|
}
|
|
4630
|
-
function
|
|
4631
|
-
|
|
4634
|
+
function je(e) {
|
|
4635
|
+
L.value = e;
|
|
4632
4636
|
}
|
|
4633
|
-
function
|
|
4634
|
-
|
|
4637
|
+
function Me() {
|
|
4638
|
+
L.value = null;
|
|
4635
4639
|
}
|
|
4636
4640
|
return {
|
|
4637
|
-
activeIdFilter:
|
|
4638
|
-
autoSelectRateId:
|
|
4639
|
-
bearerToken:
|
|
4640
|
-
currency:
|
|
4641
|
-
currencyId:
|
|
4641
|
+
activeIdFilter: L,
|
|
4642
|
+
autoSelectRateId: ue,
|
|
4643
|
+
bearerToken: _e,
|
|
4644
|
+
currency: ye,
|
|
4645
|
+
currencyId: be,
|
|
4642
4646
|
defaultAdultAmount: S,
|
|
4643
4647
|
defaultArrivalTime: f,
|
|
4644
4648
|
defaultChildAmount: C,
|
|
4645
4649
|
defaultDepartureTime: h,
|
|
4646
|
-
disableCompanyField:
|
|
4650
|
+
disableCompanyField: oe,
|
|
4647
4651
|
disableDiscountVoucher: te,
|
|
4648
4652
|
disableGiftCardVoucher: N,
|
|
4649
4653
|
disableNamePrefix: M,
|
|
4650
|
-
disableNewsletterSignup:
|
|
4651
|
-
disablePricesFrom:
|
|
4652
|
-
disableTravelingFor:
|
|
4653
|
-
disableTravelingForBleasure:
|
|
4654
|
+
disableNewsletterSignup: re,
|
|
4655
|
+
disablePricesFrom: ne,
|
|
4656
|
+
disableTravelingFor: ie,
|
|
4657
|
+
disableTravelingForBleasure: ae,
|
|
4654
4658
|
earliestArrivalTime: d,
|
|
4655
4659
|
earliestDepartureTime: m,
|
|
4656
4660
|
enableMultipleConfigurations: pe,
|
|
@@ -4658,25 +4662,25 @@ var tc = P("applyGiftCard", () => {
|
|
|
4658
4662
|
enableTracking: y,
|
|
4659
4663
|
firstSelectableDateOffset: D,
|
|
4660
4664
|
googleApiKey: b,
|
|
4661
|
-
hasActiveIdFilter:
|
|
4665
|
+
hasActiveIdFilter: we,
|
|
4662
4666
|
hasArrivalDepartureInputs: s,
|
|
4663
4667
|
hasChildSelection: o,
|
|
4664
|
-
hasError:
|
|
4665
|
-
hasMetadata:
|
|
4666
|
-
hasPaymentGateway:
|
|
4668
|
+
hasError: ge,
|
|
4669
|
+
hasMetadata: ve,
|
|
4670
|
+
hasPaymentGateway: Te,
|
|
4667
4671
|
hasRoomAmountSelection: u,
|
|
4668
4672
|
hasUserArrivalSelection: c,
|
|
4669
4673
|
hasUserDepartureSelection: l,
|
|
4670
4674
|
headerHeight: A,
|
|
4671
|
-
hideAvailabilityNotice:
|
|
4672
|
-
hideAvailableRoomAmount:
|
|
4673
|
-
hideEventEndTime:
|
|
4674
|
-
hideEventGuestAmount:
|
|
4675
|
-
hideEventLength:
|
|
4676
|
-
hideOptionalLabel:
|
|
4675
|
+
hideAvailabilityNotice: le,
|
|
4676
|
+
hideAvailableRoomAmount: P,
|
|
4677
|
+
hideEventEndTime: ce,
|
|
4678
|
+
hideEventGuestAmount: fe,
|
|
4679
|
+
hideEventLength: se,
|
|
4680
|
+
hideOptionalLabel: I,
|
|
4677
4681
|
hideTitle: k,
|
|
4678
4682
|
hotelSettings: i,
|
|
4679
|
-
isRecaptchaEnabled:
|
|
4683
|
+
isRecaptchaEnabled: Ce,
|
|
4680
4684
|
lastSelectableDateOffset: O,
|
|
4681
4685
|
latestArrivalTime: p,
|
|
4682
4686
|
latestDepartureTime: g,
|
|
@@ -4684,21 +4688,21 @@ var tc = P("applyGiftCard", () => {
|
|
|
4684
4688
|
maxChildAmount: E,
|
|
4685
4689
|
maximumNightsAvailable: v,
|
|
4686
4690
|
metaData: a,
|
|
4687
|
-
name:
|
|
4688
|
-
paymentGatewayId:
|
|
4691
|
+
name: xe,
|
|
4692
|
+
paymentGatewayId: Se,
|
|
4689
4693
|
recaptchaSiteKey: x,
|
|
4690
4694
|
selectGiftCardAsDefault: me,
|
|
4691
4695
|
settings: r,
|
|
4692
|
-
splitBookingCalendar:
|
|
4693
|
-
clearActiveIdFilter:
|
|
4694
|
-
defaultArrivalDate:
|
|
4695
|
-
defaultDepartureDate:
|
|
4696
|
-
fetchMetadata:
|
|
4697
|
-
fetchUtilities:
|
|
4698
|
-
setAccessToken:
|
|
4699
|
-
setActiveIdFilter:
|
|
4696
|
+
splitBookingCalendar: de,
|
|
4697
|
+
clearActiveIdFilter: Me,
|
|
4698
|
+
defaultArrivalDate: Ee,
|
|
4699
|
+
defaultDepartureDate: De,
|
|
4700
|
+
fetchMetadata: ke,
|
|
4701
|
+
fetchUtilities: Ae,
|
|
4702
|
+
setAccessToken: Oe,
|
|
4703
|
+
setActiveIdFilter: je
|
|
4700
4704
|
};
|
|
4701
|
-
}), sc = w(""), cc =
|
|
4705
|
+
}), sc = w(""), cc = Qe("history", { removeNullishValues: !0 });
|
|
4702
4706
|
async function lc() {
|
|
4703
4707
|
return sc.value = oc().bearerToken, Promise.resolve();
|
|
4704
4708
|
}
|
|
@@ -4709,19 +4713,19 @@ function J() {
|
|
|
4709
4713
|
headers: {
|
|
4710
4714
|
Accept: "application/json",
|
|
4711
4715
|
Authorization: sc.value,
|
|
4712
|
-
"Konnectio-Version": "4.5.
|
|
4716
|
+
"Konnectio-Version": "4.5.3",
|
|
4713
4717
|
"Konnectio-Ref": cc.ref
|
|
4714
4718
|
}
|
|
4715
4719
|
});
|
|
4716
4720
|
}
|
|
4717
4721
|
//#endregion
|
|
4718
4722
|
//#region src/store/event.ts
|
|
4719
|
-
var uc =
|
|
4720
|
-
let e = nc(), { voucher: t } =
|
|
4721
|
-
function
|
|
4723
|
+
var uc = ne("event", () => {
|
|
4724
|
+
let e = nc(), { voucher: t } = le(tc()), { display: n } = ws(), { metaData: r } = le(oc()), i = oc(), a = hc(), o = w({}), s = _(() => Object.keys(o.value).length > 0), c = w(void 0), l = w(!0), u = w(Fr.InitialState), d = w(NaN), f = w(1), p = w(NaN), m = w(NaN), h = w(""), g = B("konnectio_name", "", void 0, { serializer: z.string }), v = B("konnectio_phone", "", void 0, { serializer: z.string }), y = B("konnectio_email", "", void 0, { serializer: z.string }), b = w(""), x = w(""), S = w(!1), C = w(0), T = w({}), E = w({}), D = w(""), O = w(""), k = w("");
|
|
4725
|
+
function A(e) {
|
|
4722
4726
|
return e ? e.templateId !== void 0 : !1;
|
|
4723
4727
|
}
|
|
4724
|
-
let
|
|
4728
|
+
let j = _(() => i.metaData.hotels.findIndex((e) => e.id === a.eventLocation) || 0), ee = _(() => i.metaData.hotels[j.value]), M = _(() => ee.value ? ee.value.maxNumberPerBooking : Infinity), N = _(() => ee.value.name ? ee.value.name : ""), te = _(() => ee.value.subtitle ? ee.value.subtitle : ""), ne = _(() => ee.value.timezone ? ee.value.timezone : ""), P = w(a.eventDate ?? /* @__PURE__ */ new Date()), re = w(a.eventLocation), ie = _(() => P.value !== a.eventDate), ae = _(() => re.value !== a.eventLocation), oe = _(() => ie.value || ae.value), se = _(() => (a.eventDate ?? /* @__PURE__ */ new Date()).toISOString()), ce = _(() => A(c.value)), ue = _(() => A(c.value) ? c.value.numberOfDays : f.value), de = _(() => A(c.value) ? c.value.packageCount : 0), fe = _(() => A(c.value) ? c.value.fromDate : ""), I = _(() => o.value.events === void 0 ? void 0 : o.value.events.flatMap((e) => e.events).find((e) => e.id === p.value)), pe = _(() => I.value ? I.value.length : void 0), me = _(() => A(c.value) ? c.value.templateId : 0), L = _(() => o.value.events.map((e) => ({
|
|
4725
4729
|
...e,
|
|
4726
4730
|
events: e.events?.filter((e) => e.isAvailable === !0 || e.isAvailable === !1 && ti(e.fromDate) === ti(P.value))
|
|
4727
4731
|
})).filter((e) => e.events && e.events.length > 0)), he = _(() => o.value.events.map((e) => ({
|
|
@@ -4729,10 +4733,10 @@ var uc = P("event", () => {
|
|
|
4729
4733
|
events: e.events?.filter((e) => e.isAvailable === !1 && ti(e.fromDate) !== ti(P.value)).sort((e, t) => e.fromDate > t.fromDate ? 1 : -1)
|
|
4730
4734
|
})).filter((e) => e.events && e.events.length > 0)), ge = _(() => o.value.templates);
|
|
4731
4735
|
function _e(e = "asc") {
|
|
4732
|
-
return [...
|
|
4736
|
+
return [...L.value].sort((t, n) => e === "asc" ? t.id - n.id : n.id - t.id);
|
|
4733
4737
|
}
|
|
4734
|
-
let ve = _(() => o.value.fallbackEvents), ye = _(() => o.value.events.length > 0), be = _(() => o.value.fallbackEvents.length > 0), xe = _(() => o.value.templates.length > 0), Se = _(() =>
|
|
4735
|
-
if (!
|
|
4738
|
+
let ve = _(() => o.value.fallbackEvents), ye = _(() => o.value.events.length > 0), be = _(() => o.value.fallbackEvents.length > 0), xe = _(() => o.value.templates.length > 0), Se = _(() => I.value && I.value.eventRateType ? I.value.eventRateType : Pr.None), Ce = _(() => {
|
|
4739
|
+
if (!A(c.value)) return c.value;
|
|
4736
4740
|
}), we = _(() => {
|
|
4737
4741
|
if (Ce.value !== void 0) {
|
|
4738
4742
|
let e = Ce.value.find((e) => e.time === h.value);
|
|
@@ -4740,23 +4744,23 @@ var uc = P("event", () => {
|
|
|
4740
4744
|
}
|
|
4741
4745
|
return 0;
|
|
4742
4746
|
}), Te = _(() => {
|
|
4743
|
-
if (
|
|
4747
|
+
if (A(c.value)) return c.value.rooms;
|
|
4744
4748
|
});
|
|
4745
4749
|
function Ee(e, t, n) {
|
|
4746
4750
|
let r = 0;
|
|
4747
|
-
if (
|
|
4751
|
+
if (A(c.value)) {
|
|
4748
4752
|
let i = c.value.rooms[n];
|
|
4749
4753
|
if (i) {
|
|
4750
4754
|
let a = i.addons, o = T.value[`${t}.${e}.${n}`] || 0;
|
|
4751
4755
|
if (o > 0) {
|
|
4752
4756
|
let t = a?.find((t) => t.id === e), n = typeof o == "boolean" ? 1 : o;
|
|
4753
|
-
r +=
|
|
4757
|
+
r += Rr(t?.price, t?.quantityStrategy, ue.value, i.adultPerRoom) * n;
|
|
4754
4758
|
}
|
|
4755
4759
|
}
|
|
4756
4760
|
} else {
|
|
4757
4761
|
let t = E.value[e] || 0;
|
|
4758
4762
|
if (t > 0) {
|
|
4759
|
-
let n =
|
|
4763
|
+
let n = I.value?.products?.find((t) => t.id === e);
|
|
4760
4764
|
n && (r += n.price * t);
|
|
4761
4765
|
}
|
|
4762
4766
|
}
|
|
@@ -4764,93 +4768,94 @@ var uc = P("event", () => {
|
|
|
4764
4768
|
}
|
|
4765
4769
|
function De(e, t) {
|
|
4766
4770
|
let n = 0;
|
|
4767
|
-
if (
|
|
4771
|
+
if (A(c.value)) for (let r in T.value) {
|
|
4768
4772
|
let i = r.split(".");
|
|
4769
4773
|
parseInt(i[0]) === e && parseInt(i[2]) === t && (n += Ee(parseInt(i[1]), e, t));
|
|
4770
4774
|
}
|
|
4771
4775
|
else for (let e in E.value) n += Ee(parseInt(e)) * f.value;
|
|
4772
4776
|
return n;
|
|
4773
4777
|
}
|
|
4774
|
-
let Oe = _(() =>
|
|
4778
|
+
let Oe = _(() => A(c.value) && c.value.totalPrice || 0), ke = _(() => {
|
|
4775
4779
|
if (qe.value) return qe.value;
|
|
4776
4780
|
let e = NaN;
|
|
4777
|
-
return
|
|
4778
|
-
}), Ae = _(() =>
|
|
4781
|
+
return A(c.value) ? c.value.rooms !== void 0 && (e = c.value.rooms.flatMap((e) => e.roomGroupId).reduce((e, t, n) => e + De(t, n), Oe.value) || 0) : (e = De(), e += we.value), e;
|
|
4782
|
+
}), Ae = _(() => A(c.value) && c.value.rooms !== void 0 && c.value.rooms.flatMap((e) => e.weekendFee).reduce((e, t) => e + t, 0) || 0), je = _(() => A(c.value) && c.value.rooms !== void 0 && c.value.rooms.flatMap((e) => e.roomUpgrade).reduce((e, t) => e + t, 0) || 0), Me = _(() => {
|
|
4779
4783
|
let e = E.value, t = 0;
|
|
4780
4784
|
for (let n in e) t += Number.isNaN(e[n]) ? 0 : e[n];
|
|
4781
4785
|
return t;
|
|
4782
|
-
}), Ne = _(() => Me.value > 0), Pe = _(() => !
|
|
4786
|
+
}), Ne = _(() => Me.value > 0), Pe = _(() => !A(c.value) && I.value ? I.value.products.length > 0 : !1), Fe = _(() => Pe.value ? Ne.value : !0), R = _(() => Se.value !== Pr.FullDayEvent && !ce.value), Ie = _(() => !!(g.value !== "" && y.value !== "" && v.value.length >= 5 && Fe.value && (!R.value || h.value !== "")));
|
|
4783
4787
|
function Le(e) {
|
|
4784
|
-
return u.value ===
|
|
4788
|
+
return u.value === Fr.ReservationState && p.value === e && l.value;
|
|
4785
4789
|
}
|
|
4786
|
-
let Re = _(() => !(u.value ===
|
|
4790
|
+
let Re = _(() => !(u.value === Fr.InitialState && l.value)), ze = _(() => !(u.value === Fr.AvailabilityState && l.value)), Be = _(() => c.value !== void 0), Ve = _(() => u.value === Fr.PaymentState && l.value);
|
|
4787
4791
|
async function He() {
|
|
4788
4792
|
try {
|
|
4789
|
-
r.value = (await J().get("/event/metadata", { params: { language:
|
|
4793
|
+
r.value = (await J().get("/event/metadata", { params: { language: Kr() } })).data;
|
|
4790
4794
|
} catch {
|
|
4791
4795
|
n({
|
|
4792
|
-
message:
|
|
4796
|
+
message: F.t("alert.error.couldntFetchMetadata"),
|
|
4793
4797
|
type: "warning"
|
|
4794
4798
|
});
|
|
4795
4799
|
}
|
|
4796
4800
|
}
|
|
4797
4801
|
async function Ue() {
|
|
4798
|
-
if (u.value =
|
|
4802
|
+
if (u.value = Fr.AvailabilityState, l.value = !0, _i.tz(ne.value, new Date(a.eventDate)).setHours(12, 0, 0, 0) < _i.tz(ne.value).setHours(12, 0, 0, 0) && (a.eventDate = _i.tz(ne.value)), isNaN(a.eventLocation)) {
|
|
4799
4803
|
n({
|
|
4800
|
-
message:
|
|
4804
|
+
message: F.t("alert.error.selectEventId"),
|
|
4801
4805
|
type: "warning"
|
|
4802
4806
|
});
|
|
4803
4807
|
return;
|
|
4804
4808
|
}
|
|
4805
4809
|
try {
|
|
4806
4810
|
o.value = (await J().get("/event/v3/get", { params: {
|
|
4807
|
-
language:
|
|
4811
|
+
language: Kr(),
|
|
4808
4812
|
date: ti(a.eventDate),
|
|
4809
4813
|
restaurantId: a.eventLocation,
|
|
4810
|
-
eventId: i.hasActiveIdFilter ? i.activeIdFilter : null
|
|
4811
|
-
|
|
4814
|
+
eventId: i.hasActiveIdFilter ? i.activeIdFilter : null,
|
|
4815
|
+
excludeEventId: !i.hasActiveIdFilter && k.value ? k.value : null
|
|
4816
|
+
} })).data, P.value = a.eventDate, re.value = a.eventLocation, rc.emit("scrollToTop"), l.value = !1;
|
|
4812
4817
|
} catch {
|
|
4813
4818
|
n({
|
|
4814
|
-
message:
|
|
4819
|
+
message: F.t("alert.error.couldntFetchListings"),
|
|
4815
4820
|
type: "warning"
|
|
4816
4821
|
});
|
|
4817
4822
|
}
|
|
4818
4823
|
}
|
|
4819
4824
|
async function We(e) {
|
|
4820
|
-
u.value =
|
|
4825
|
+
u.value = Fr.ReservationState, l.value = !0;
|
|
4821
4826
|
try {
|
|
4822
4827
|
let t = (await J().get("/event/get-template", { params: {
|
|
4823
|
-
language:
|
|
4828
|
+
language: Kr(),
|
|
4824
4829
|
date: ti(P.value),
|
|
4825
4830
|
templateId: p.value,
|
|
4826
|
-
restaurantId:
|
|
4831
|
+
restaurantId: re.value,
|
|
4827
4832
|
numberOfPeople: isNaN(d.value) ? 0 : d.value
|
|
4828
4833
|
} })).data;
|
|
4829
4834
|
t.rooms.length === 0 ? n({
|
|
4830
|
-
message:
|
|
4835
|
+
message: F.t("alert.error.eventNotAvailable"),
|
|
4831
4836
|
type: "warning"
|
|
4832
4837
|
}) : (c.value = t, e()), l.value = !1;
|
|
4833
4838
|
} catch {
|
|
4834
|
-
l.value = !1, u.value =
|
|
4835
|
-
message:
|
|
4839
|
+
l.value = !1, u.value = Fr.AvailabilityState, n({
|
|
4840
|
+
message: F.t("alert.error.couldntFetchEvent"),
|
|
4836
4841
|
type: "warning"
|
|
4837
4842
|
});
|
|
4838
4843
|
}
|
|
4839
4844
|
}
|
|
4840
4845
|
async function Ge(e) {
|
|
4841
|
-
u.value =
|
|
4846
|
+
u.value = Fr.ReservationState, l.value = !0;
|
|
4842
4847
|
try {
|
|
4843
4848
|
c.value = (await J().get("/event/vacant-times", { params: {
|
|
4844
|
-
language:
|
|
4849
|
+
language: Kr(),
|
|
4845
4850
|
date: ti(P.value),
|
|
4846
4851
|
numberOfPeople: isNaN(d.value) ? 1 : d.value,
|
|
4847
4852
|
eventId: p.value,
|
|
4848
4853
|
tableGroupId: m.value,
|
|
4849
|
-
restaurantId:
|
|
4854
|
+
restaurantId: re.value
|
|
4850
4855
|
} })).data, l.value = !1, Pe.value ? e() : e(2);
|
|
4851
4856
|
} catch {
|
|
4852
|
-
l.value = !1, u.value =
|
|
4853
|
-
message:
|
|
4857
|
+
l.value = !1, u.value = Fr.AvailabilityState, n({
|
|
4858
|
+
message: F.t("alert.error.couldntFetchEvent"),
|
|
4854
4859
|
type: "warning"
|
|
4855
4860
|
});
|
|
4856
4861
|
}
|
|
@@ -4870,39 +4875,39 @@ var uc = P("event", () => {
|
|
|
4870
4875
|
async function Je() {
|
|
4871
4876
|
if (D.value !== "") try {
|
|
4872
4877
|
let e = (await J().post("/event/validate-discount-code", {
|
|
4873
|
-
language:
|
|
4878
|
+
language: Kr(),
|
|
4874
4879
|
date: ti(P.value),
|
|
4875
4880
|
onlineDiscountCode: D.value,
|
|
4876
4881
|
products: Ke(),
|
|
4877
|
-
restaurantId:
|
|
4882
|
+
restaurantId: re.value
|
|
4878
4883
|
})).data;
|
|
4879
4884
|
e.total ? (qe.value = e.total, O.value = D.value, D.value = "", n({
|
|
4880
|
-
message:
|
|
4885
|
+
message: F.t("alert.success.discountCodeApplied"),
|
|
4881
4886
|
type: "success"
|
|
4882
4887
|
})) : n({
|
|
4883
|
-
message:
|
|
4888
|
+
message: F.t("alert.error.discountCodeValidation"),
|
|
4884
4889
|
type: "warning"
|
|
4885
4890
|
});
|
|
4886
4891
|
} catch {
|
|
4887
4892
|
n({
|
|
4888
|
-
message:
|
|
4893
|
+
message: F.t("alert.error.discountCodeValidation"),
|
|
4889
4894
|
type: "warning"
|
|
4890
4895
|
});
|
|
4891
4896
|
}
|
|
4892
4897
|
else n({
|
|
4893
|
-
message:
|
|
4898
|
+
message: F.t("alert.error.discountCodeEmpty"),
|
|
4894
4899
|
type: "error"
|
|
4895
4900
|
});
|
|
4896
4901
|
}
|
|
4897
4902
|
async function Ye(r) {
|
|
4898
|
-
u.value =
|
|
4903
|
+
u.value = Fr.PaymentState, l.value = !0;
|
|
4899
4904
|
let i = () => {
|
|
4900
|
-
l.value = !1, u.value =
|
|
4901
|
-
message:
|
|
4905
|
+
l.value = !1, u.value = Fr.ReservationState, n({
|
|
4906
|
+
message: F.t("booking.other.errorMessage"),
|
|
4902
4907
|
type: "warning"
|
|
4903
4908
|
});
|
|
4904
4909
|
}, a, o, s, m = [];
|
|
4905
|
-
|
|
4910
|
+
A(c.value) ? (Te.value?.forEach((e, t) => {
|
|
4906
4911
|
let n = [], r = 0;
|
|
4907
4912
|
for (let i in T.value) {
|
|
4908
4913
|
let a = i.split("."), o = T.value[i];
|
|
@@ -4920,21 +4925,21 @@ var uc = P("event", () => {
|
|
|
4920
4925
|
});
|
|
4921
4926
|
}), a = {
|
|
4922
4927
|
totalPerson: isNaN(d.value) ? Me.value : d.value,
|
|
4923
|
-
templateID:
|
|
4928
|
+
templateID: me.value,
|
|
4924
4929
|
numberOfDays: f.value,
|
|
4925
4930
|
templateCounts: m,
|
|
4926
4931
|
fromDate: ti(P.value)
|
|
4927
4932
|
}) : (o = Ke(), s = h.value);
|
|
4928
4933
|
let _ = "/event/book-template", w = {
|
|
4929
|
-
language:
|
|
4930
|
-
restaurantId:
|
|
4934
|
+
language: Kr(),
|
|
4935
|
+
restaurantId: re.value,
|
|
4931
4936
|
date: ti(P.value),
|
|
4932
4937
|
name: g.value,
|
|
4933
4938
|
email: y.value,
|
|
4934
4939
|
phone: v.value,
|
|
4935
4940
|
remark: b.value,
|
|
4936
4941
|
numberOfPeople: isNaN(d.value) ? Me.value : d.value,
|
|
4937
|
-
days:
|
|
4942
|
+
days: ue.value > 0 ? ue.value : 1,
|
|
4938
4943
|
allergyFood: x.value,
|
|
4939
4944
|
discountCode: O.value,
|
|
4940
4945
|
giftCardCode: t.value,
|
|
@@ -4943,7 +4948,7 @@ var uc = P("event", () => {
|
|
|
4943
4948
|
checkoutUrl: window.location.origin,
|
|
4944
4949
|
privacyUrl: window.location.origin
|
|
4945
4950
|
};
|
|
4946
|
-
|
|
4951
|
+
A(c.value) ? w.templateGroup = a : (w.time = s, w.eventId = p.value, w.products = o, _ = "/event/book-event"), await J().post(_, w).then((t) => {
|
|
4947
4952
|
l.value = !1, e.pay({
|
|
4948
4953
|
callback: r,
|
|
4949
4954
|
response: t.data
|
|
@@ -4957,7 +4962,7 @@ var uc = P("event", () => {
|
|
|
4957
4962
|
c.value = void 0, T.value = {}, E.value = {}, h.value = "", Xe(), e && a.resetEventDate();
|
|
4958
4963
|
}
|
|
4959
4964
|
function Qe(e) {
|
|
4960
|
-
|
|
4965
|
+
ce.value || Pe.value ? e() : e(2), Xe();
|
|
4961
4966
|
}
|
|
4962
4967
|
async function $e() {
|
|
4963
4968
|
await Promise.all([He(), a.fetchMetadata()]);
|
|
@@ -4965,9 +4970,9 @@ var uc = P("event", () => {
|
|
|
4965
4970
|
return {
|
|
4966
4971
|
flagOnTable: S,
|
|
4967
4972
|
allergies: x,
|
|
4968
|
-
isSearchOutdated:
|
|
4973
|
+
isSearchOutdated: oe,
|
|
4969
4974
|
currentEventDate: P,
|
|
4970
|
-
currentEventLocation:
|
|
4975
|
+
currentEventLocation: re,
|
|
4971
4976
|
metaData: r,
|
|
4972
4977
|
listingData: o,
|
|
4973
4978
|
tableBasePrice: we,
|
|
@@ -4986,18 +4991,18 @@ var uc = P("event", () => {
|
|
|
4986
4991
|
phone: v,
|
|
4987
4992
|
email: y,
|
|
4988
4993
|
remark: b,
|
|
4989
|
-
isTemplateEvent:
|
|
4990
|
-
maxNumberOfPeople:
|
|
4991
|
-
title:
|
|
4992
|
-
subtitle:
|
|
4993
|
-
date:
|
|
4994
|
-
numberOfTotalDays:
|
|
4995
|
-
numberOfRooms:
|
|
4996
|
-
fromDate:
|
|
4997
|
-
getEventData:
|
|
4998
|
-
length:
|
|
4999
|
-
templateId:
|
|
5000
|
-
getEvents:
|
|
4994
|
+
isTemplateEvent: ce,
|
|
4995
|
+
maxNumberOfPeople: M,
|
|
4996
|
+
title: N,
|
|
4997
|
+
subtitle: te,
|
|
4998
|
+
date: se,
|
|
4999
|
+
numberOfTotalDays: ue,
|
|
5000
|
+
numberOfRooms: de,
|
|
5001
|
+
fromDate: fe,
|
|
5002
|
+
getEventData: I,
|
|
5003
|
+
length: pe,
|
|
5004
|
+
templateId: me,
|
|
5005
|
+
getEvents: L,
|
|
5001
5006
|
getTemplates: ge,
|
|
5002
5007
|
hasEvents: ye,
|
|
5003
5008
|
hasFallbackEvents: be,
|
|
@@ -5010,7 +5015,7 @@ var uc = P("event", () => {
|
|
|
5010
5015
|
weekendFee: Ae,
|
|
5011
5016
|
hasProducts: Pe,
|
|
5012
5017
|
eventRateType: Se,
|
|
5013
|
-
isReservationFormFilled:
|
|
5018
|
+
isReservationFormFilled: Ie,
|
|
5014
5019
|
isMetadataAvailable: Re,
|
|
5015
5020
|
areListingsAvailable: ze,
|
|
5016
5021
|
isAvailabilityDataAvailable: Be,
|
|
@@ -5031,21 +5036,22 @@ var uc = P("event", () => {
|
|
|
5031
5036
|
hasListingData: s,
|
|
5032
5037
|
hasSelectedProducts: Ne,
|
|
5033
5038
|
totalSelectedProducts: Me,
|
|
5034
|
-
requiresArrivalTime:
|
|
5039
|
+
requiresArrivalTime: R,
|
|
5035
5040
|
hasSelectedRequiredProducts: Fe,
|
|
5036
5041
|
getUnavailableEvents: he,
|
|
5037
|
-
timezone:
|
|
5042
|
+
timezone: ne,
|
|
5038
5043
|
numberOfHighChairs: C,
|
|
5039
5044
|
discountValue: qe,
|
|
5040
5045
|
appliedDiscountCode: O,
|
|
5046
|
+
excludeEventIds: k,
|
|
5041
5047
|
getSortedEvents: _e
|
|
5042
5048
|
};
|
|
5043
|
-
}), dc = () => /* @__PURE__ */ new Date(), fc = () => new Date((/* @__PURE__ */ new Date()).getTime() + 720 * 60 * 1e3), pc = () => new Date((/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0)), mc = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), hc =
|
|
5044
|
-
let e = uc(), t = ic(), n = oc(), { display: r } = ws(), i = w({}), a =
|
|
5049
|
+
}), dc = () => /* @__PURE__ */ new Date(), fc = () => new Date((/* @__PURE__ */ new Date()).getTime() + 720 * 60 * 1e3), pc = () => new Date((/* @__PURE__ */ new Date()).setHours(12, 0, 0, 0)), mc = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), hc = ne("availability", () => {
|
|
5050
|
+
let e = uc(), t = ic(), n = oc(), { display: r } = ws(), i = w({}), a = B("k_avail_expiry", fc(), void 0, { serializer: z.date }), o = _(() => a.value === void 0 ? !1 : a.value < /* @__PURE__ */ new Date()), s = B("k_hotel_adults", NaN, void 0, { serializer: z.number }), c = B("k_hotel_children", NaN, void 0, { serializer: z.number }), l = B("k_hotel_room_count", 1, void 0, { serializer: z.number }), u = B("k_hotel_arrival", pc(), void 0, { serializer: z.date }), d = B("k_hotel_departure", mc(), void 0, { serializer: z.date }), f = B("k_hotel_loc", void 0, void 0, { serializer: z.number }), p = B("k_hotel_loc_c", NaN, void 0, { serializer: z.number }), m = B("k_hotel_has_selected_loc", !1, void 0, { serializer: z.boolean }), h = _(() => Object.keys(i.value).length > 0), g = _(() => h.value && i.value.hotels.length > 1), v = _(() => i.value ? i.value.hotels : []), y = _(() => Gr(u.value, d.value));
|
|
5045
5051
|
function b(e) {
|
|
5046
5052
|
if (h.value) return i.value.hotels.some((t) => t.id === e);
|
|
5047
5053
|
}
|
|
5048
|
-
let x =
|
|
5054
|
+
let x = B("k_event_loc", NaN, void 0, { serializer: z.number }), S = B("k_event_loc_c", NaN, void 0, { serializer: z.number }), C = B("k_event_date", dc(), void 0, { serializer: z.date }), T = _(() => !!i.value && i.value.events && i.value.events.length > 1), E = _(() => i.value ? i.value.events : []);
|
|
5049
5055
|
function D(e) {
|
|
5050
5056
|
if (h.value) return i.value.events.some((t) => t.id === e);
|
|
5051
5057
|
}
|
|
@@ -5074,13 +5080,13 @@ var uc = P("event", () => {
|
|
|
5074
5080
|
function te() {
|
|
5075
5081
|
s.value = n.defaultAdultAmount, c.value = n.defaultChildAmount, u.value = n.defaultArrivalDate(), N(), d.value = n.defaultDepartureDate(), f.value = void 0, x.value = NaN, m.value = !1, k();
|
|
5076
5082
|
}
|
|
5077
|
-
async function
|
|
5083
|
+
async function ne() {
|
|
5078
5084
|
try {
|
|
5079
|
-
let e = (await J().get("/availability/metadata", { params: { language:
|
|
5085
|
+
let e = (await J().get("/availability/metadata", { params: { language: Kr() } })).data;
|
|
5080
5086
|
i.value = e, o.value && te(), e.defaultHotelId && (isNaN(p.value) ? p.value = e.defaultHotelId : p.value !== e.defaultHotelId && (p.value = e.defaultHotelId, f.value = p.value), isNaN(f.value) && (f.value = e.defaultHotelId)), e.defaultEventId && (isNaN(S.value) ? S.value = e.defaultEventId : S.value !== e.defaultEventId && (S.value = e.defaultEventId, x.value = S.value), isNaN(x.value) && (x.value = e.defaultEventId));
|
|
5081
5087
|
} catch {
|
|
5082
5088
|
r({
|
|
5083
|
-
message:
|
|
5089
|
+
message: F.t("alert.error.couldntFetchMetadata"),
|
|
5084
5090
|
type: "warning"
|
|
5085
5091
|
});
|
|
5086
5092
|
}
|
|
@@ -5110,7 +5116,7 @@ var uc = P("event", () => {
|
|
|
5110
5116
|
updateDates: j,
|
|
5111
5117
|
updateHotelAvailability: ee,
|
|
5112
5118
|
updateEventAvailability: M,
|
|
5113
|
-
fetchMetadata:
|
|
5119
|
+
fetchMetadata: ne,
|
|
5114
5120
|
isValidHotelId: b,
|
|
5115
5121
|
isValidRestaurantId: D,
|
|
5116
5122
|
getHotelLocationName: O,
|
|
@@ -8044,7 +8050,7 @@ var cm = h({
|
|
|
8044
8050
|
});
|
|
8045
8051
|
return t.title = e.title, t.titleId = e.titleId, jp(r.value, t);
|
|
8046
8052
|
});
|
|
8047
|
-
|
|
8053
|
+
P(s, function(e) {
|
|
8048
8054
|
if (!e) return om("Could not find one or more icon(s)", r.value, o.value);
|
|
8049
8055
|
}, { immediate: !0 }), e.gradientFill && e.symbol && om("gradientFill is not supported when symbol is true and will be ignored");
|
|
8050
8056
|
var c = _(function() {
|
|
@@ -9211,7 +9217,7 @@ var lm = {
|
|
|
9211
9217
|
error: "exclamation-triangle",
|
|
9212
9218
|
warning: "do-not-enter",
|
|
9213
9219
|
success: "check-circle"
|
|
9214
|
-
}, { message: r, type: i, status: c } =
|
|
9220
|
+
}, { message: r, type: i, status: c } = le(ws());
|
|
9215
9221
|
return (e, l) => (b(), N("div", {
|
|
9216
9222
|
class: a([
|
|
9217
9223
|
"konnectio-alert",
|
|
@@ -9278,7 +9284,7 @@ var lm = {
|
|
|
9278
9284
|
stepBarBackground: "#d0d5da",
|
|
9279
9285
|
...t.styling
|
|
9280
9286
|
}));
|
|
9281
|
-
return
|
|
9287
|
+
return oe(() => {
|
|
9282
9288
|
let e = document.documentElement.style;
|
|
9283
9289
|
e.setProperty("--accentColor", n.value.accentColor), e.setProperty("--accentColorSecondary", n.value.accentColorSecondary), e.setProperty("--buttonBackground", n.value.buttonBackground), e.setProperty("--buttonBorder", n.value.buttonBorder), e.setProperty("--buttonBorderRadius", n.value.buttonBorderRadius), e.setProperty("--buttonColor", n.value.buttonColor), e.setProperty("--buttonFontFamily", n.value.buttonFontFamily), e.setProperty("--buttonFontSize", n.value.buttonFontSize), e.setProperty("--buttonFontWeight", n.value.buttonFontWeight), e.setProperty("--buttonTextTransform", n.value.buttonTextTransform), e.setProperty("--dangerColor", n.value.dangerColor), e.setProperty("--fontColor", n.value.fontColor), e.setProperty("--fontFamily", n.value.fontFamily), e.setProperty("--fontWeight", n.value.fontWeight), e.setProperty("--fontSize", n.value.fontSize), e.setProperty("--grayColor", n.value.grayColor), e.setProperty("--headerColor", n.value.headerColor), e.setProperty("--headerFontFamily", n.value.headerFontFamily), e.setProperty("--headerLetterSpacing", n.value.headerLetterSpacing), e.setProperty("--headerTextTransform", n.value.headerTextTransform), e.setProperty("--highlightBackground", n.value.highlightBackground), e.setProperty("--inputBackground", n.value.inputBackground), e.setProperty("--inputBorder", n.value.inputBorder), e.setProperty("--inputBorderRadius", n.value.inputBorderRadius), e.setProperty("--inputBorderWidth", n.value.inputBorderWidth), e.setProperty("--inputFontColor", n.value.inputFontColor), e.setProperty("--inputFontWeight", n.value.inputFontWeight), e.setProperty("--inputFontSize", n.value.inputFontSize), e.setProperty("--labelFontColor", n.value.labelFontColor), e.setProperty("--labelFontWeight", n.value.labelFontWeight), e.setProperty("--labelFontSize", n.value.labelFontSize), e.setProperty("--labelPadding", n.value.labelPadding), e.setProperty("--labelTextTransform", n.value.labelTextTransform), e.setProperty("--linkColor", n.value.linkColor), e.setProperty("--linkHoverColor", n.value.linkHoverColor), e.setProperty("--loadingColor", n.value.loadingColor), e.setProperty("--panelBackground", n.value.panelBackground), e.setProperty("--panelBorder", n.value.panelBorder), e.setProperty("--panelBorderRadius", n.value.panelBorderRadius), e.setProperty("--panelInnerPadding", n.value.panelInnerPadding), e.setProperty("--panelMaxWidth", n.value.panelMaxWidth), e.setProperty("--panelPadding", n.value.panelPadding), e.setProperty("--panelSectionBackground", n.value.panelSectionBackground), e.setProperty("--panelSectionBorder", n.value.panelSectionBorder), e.setProperty("--panelSectionBorderRadius", n.value.panelSectionBorderRadius), e.setProperty("--panelShadow", n.value.panelShadow), e.setProperty("--successColor", n.value.successColor), e.setProperty("--stepBarBorderRadius", n.value.stepBarBorderRadius), e.setProperty("--stepBarBackground", n.value.stepBarBackground);
|
|
9284
9290
|
}), (e, t) => (b(), N("div", null, [o("div", og, [D(e.$slots, "default", {}, void 0, !0)]), f(ag, { "local-domain": "global" })]));
|
|
@@ -9364,7 +9370,7 @@ var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-88ad2e2d"
|
|
|
9364
9370
|
}, [e.isLoading ? c.value ? (b(), i(fg, { key: 1 })) : (b(), i(cg, {
|
|
9365
9371
|
key: 2,
|
|
9366
9372
|
"inside-button": !0
|
|
9367
|
-
})) : (b(), N(
|
|
9373
|
+
})) : (b(), N(fe, { key: 0 }, [
|
|
9368
9374
|
o("span", mg, [e.icon ? (b(), i(rg, {
|
|
9369
9375
|
key: 0,
|
|
9370
9376
|
icon: e.icon,
|
|
@@ -9416,7 +9422,7 @@ var fg = /* @__PURE__ */ ng(lg, [["render", dg], ["__scopeId", "data-v-88ad2e2d"
|
|
|
9416
9422
|
}
|
|
9417
9423
|
},
|
|
9418
9424
|
setup(e) {
|
|
9419
|
-
let t = e, { t: r } =
|
|
9425
|
+
let t = e, { t: r } = ae(), { hideOptionalLabel: c } = le(oc()), l = t.id || qr(), u = _(() => !!t.icon && t.iconPlacement === "label"), d = _(() => !!t.icon && t.iconPlacement === "field"), m = _(() => {
|
|
9420
9426
|
if (t.limit !== Infinity) {
|
|
9421
9427
|
let e = t.limit.toString().length;
|
|
9422
9428
|
return e <= 2 ? "has-2-digit-limit" : e === 3 ? "has-3-digit-limit" : "has-4-digit-limit";
|
|
@@ -10106,7 +10112,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10106
10112
|
function o(e) {
|
|
10107
10113
|
n("update:modelValue", e);
|
|
10108
10114
|
}
|
|
10109
|
-
return
|
|
10115
|
+
return oe(() => {
|
|
10110
10116
|
r.modelValue || o(r.minValue);
|
|
10111
10117
|
}), (t, n) => (b(), i(Eg, {
|
|
10112
10118
|
label: e.label,
|
|
@@ -10233,12 +10239,12 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10233
10239
|
},
|
|
10234
10240
|
emits: ["update:modelValue"],
|
|
10235
10241
|
setup(e, { emit: t }) {
|
|
10236
|
-
let r = t, { t: c } =
|
|
10242
|
+
let r = t, { t: c } = ae(), l = e, u = w(), d = l.id || qr(), f = _({
|
|
10237
10243
|
get: () => l.modelValue,
|
|
10238
10244
|
set: (e) => {
|
|
10239
10245
|
r("update:modelValue", e);
|
|
10240
10246
|
}
|
|
10241
|
-
}), { copy: m, copied: h } =
|
|
10247
|
+
}), { copy: m, copied: h } = He(), g = _(() => {
|
|
10242
10248
|
let e = l.limit, t = 0;
|
|
10243
10249
|
return l.modelValue && (t = l.modelValue.toString().length), e - t;
|
|
10244
10250
|
}), v = _(() => l.readonly ? void 0 : l.placeholder), x = _(() => !!l.name && !!l.autocomplete);
|
|
@@ -10252,10 +10258,10 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10252
10258
|
let e = u.value;
|
|
10253
10259
|
e.style.height = "auto", e.style.height = e.scrollHeight + "px";
|
|
10254
10260
|
}
|
|
10255
|
-
return
|
|
10261
|
+
return oe(() => {
|
|
10256
10262
|
S();
|
|
10257
10263
|
}), (t, r) => {
|
|
10258
|
-
let l =
|
|
10264
|
+
let l = ie("tooltip");
|
|
10259
10265
|
return b(), i(Eg, {
|
|
10260
10266
|
label: e.label,
|
|
10261
10267
|
id: s(d),
|
|
@@ -10283,7 +10289,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10283
10289
|
ref_key: "textField",
|
|
10284
10290
|
ref: u,
|
|
10285
10291
|
id: s(d),
|
|
10286
|
-
"data-test": s(
|
|
10292
|
+
"data-test": s(zr)(e.name),
|
|
10287
10293
|
name: x.value ? e.name : void 0,
|
|
10288
10294
|
required: !!e.required,
|
|
10289
10295
|
readonly: !!e.readonly,
|
|
@@ -10299,7 +10305,7 @@ var D_ = /* @__PURE__ */ h({
|
|
|
10299
10305
|
}, t.$attrs, {
|
|
10300
10306
|
id: s(d),
|
|
10301
10307
|
class: { "has-clipboard": e.clipboard },
|
|
10302
|
-
"data-test": s(
|
|
10308
|
+
"data-test": s(zr)(e.name),
|
|
10303
10309
|
name: x.value ? e.name : void 0,
|
|
10304
10310
|
type: e.type,
|
|
10305
10311
|
required: !!e.required,
|
|
@@ -10957,7 +10963,7 @@ https://vue-select.org/api/props.html#getoptionlabel`) : e;
|
|
|
10957
10963
|
class: "vs__no-options"
|
|
10958
10964
|
}, yv = /* @__PURE__ */ M(" Sorry, no matching options. "), bv = ["id"];
|
|
10959
10965
|
function xv(e, r, s, c, l, d) {
|
|
10960
|
-
let h =
|
|
10966
|
+
let h = ie("append-to-body");
|
|
10961
10967
|
return b(), N("div", {
|
|
10962
10968
|
dir: s.dir,
|
|
10963
10969
|
class: a(["v-select", d.stateClasses])
|
|
@@ -10972,7 +10978,7 @@ function xv(e, r, s, c, l, d) {
|
|
|
10972
10978
|
"aria-owns": `vs${s.uid}__listbox`,
|
|
10973
10979
|
"aria-label": "Search for option",
|
|
10974
10980
|
onMousedown: r[1] ||= (e) => d.toggleDropdown(e)
|
|
10975
|
-
}, [o("div", dv, [(b(!0), N(
|
|
10981
|
+
}, [o("div", dv, [(b(!0), N(fe, null, t(d.selectedValue, (t, r) => D(e.$slots, "selected-option-container", {
|
|
10976
10982
|
option: d.normalizeOptionForSlot(t),
|
|
10977
10983
|
deselect: d.deselect,
|
|
10978
10984
|
multiple: s.multiple,
|
|
@@ -10990,7 +10996,7 @@ function xv(e, r, s, c, l, d) {
|
|
|
10990
10996
|
title: `Deselect ${s.getOptionLabel(t)}`,
|
|
10991
10997
|
"aria-label": `Deselect ${s.getOptionLabel(t)}`,
|
|
10992
10998
|
onClick: (e) => d.deselect(t)
|
|
10993
|
-
}, [(b(), i(
|
|
10999
|
+
}, [(b(), i(se(d.childComponents.Deselect)))], 8, fv)) : p("", !0)]))])), 256)), D(e.$slots, "search", m(u(d.scope.search)), () => [o("input", y({ class: "vs__search" }, d.scope.search.attributes, C(d.scope.search.events)), null, 16)])], 512), o("div", pv, [
|
|
10994
11000
|
O(o("button", {
|
|
10995
11001
|
ref: "clearButton",
|
|
10996
11002
|
disabled: s.disabled,
|
|
@@ -10999,8 +11005,8 @@ function xv(e, r, s, c, l, d) {
|
|
|
10999
11005
|
title: "Clear Selected",
|
|
11000
11006
|
"aria-label": "Clear Selected",
|
|
11001
11007
|
onClick: r[0] ||= (...e) => d.clearSelection && d.clearSelection(...e)
|
|
11002
|
-
}, [(b(), i(
|
|
11003
|
-
D(e.$slots, "open-indicator", m(u(d.scope.openIndicator)), () => [s.noDrop ? p("", !0) : (b(), i(
|
|
11008
|
+
}, [(b(), i(se(d.childComponents.Deselect)))], 8, mv), [[x, d.showClearButton]]),
|
|
11009
|
+
D(e.$slots, "open-indicator", m(u(d.scope.openIndicator)), () => [s.noDrop ? p("", !0) : (b(), i(se(d.childComponents.OpenIndicator), m(y({ key: 0 }, d.scope.openIndicator.attributes)), null, 16))]),
|
|
11004
11010
|
D(e.$slots, "spinner", m(u(d.scope.spinner)), () => [O(o("div", hv, "Loading...", 512), [[x, e.mutableLoading]])])
|
|
11005
11011
|
], 512)], 40, uv),
|
|
11006
11012
|
f(T, { name: s.transition }, {
|
|
@@ -11015,7 +11021,7 @@ function xv(e, r, s, c, l, d) {
|
|
|
11015
11021
|
onMouseup: r[3] ||= (...e) => d.onMouseUp && d.onMouseUp(...e)
|
|
11016
11022
|
}, [
|
|
11017
11023
|
D(e.$slots, "list-header", m(u(d.scope.listHeader))),
|
|
11018
|
-
(b(!0), N(
|
|
11024
|
+
(b(!0), N(fe, null, t(d.filteredOptions, (t, r) => (b(), N("li", {
|
|
11019
11025
|
id: `vs${s.uid}__option-${r}`,
|
|
11020
11026
|
key: s.getOptionKey(t),
|
|
11021
11027
|
role: "option",
|
|
@@ -11158,4 +11164,4 @@ var Sv = /* @__PURE__ */ q_(cv, [["render", xv]]), Cv = /* @__PURE__ */ h({
|
|
|
11158
11164
|
}
|
|
11159
11165
|
});
|
|
11160
11166
|
//#endregion
|
|
11161
|
-
export {
|
|
11167
|
+
export { Ir as $, nc as A, Lr as B, hc as C, ac as D, oc as E, ai as F, Jr as G, Yr as H, Br as I, ri as J, $r as K, Gr as L, ws as M, _i as N, ic as O, Hr as P, jr as Q, ti as R, ng as S, J as T, Ur as U, Kr as V, qr as W, ni as X, ei as Y, Mr as Z, Eg as _, u_ as a, z as at, sg as b, m_ as c, Xe as ct, Pg as d, Qe as dt, Nr as et, Ng as f, Mg as g, i_ as h, c_ as i, Ar as it, tc as j, rc as k, h_ as l, B as lt, Ag as m, P_ as n, kr as nt, o_ as o, Re as ot, jg as p, ii as q, D_ as r, Pr as rt, d_ as s, R as st, Cv as t, Er as tt, g_ as u, Ze as ut, vg as v, uc as w, rg as x, cg as y, Qr as z };
|