@konnectio/core 4.0.56-rc21 → 4.0.56-rc23
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-mMYGNb-7.js → ActionField-BUeonTqc.js} +1 -1
- package/dist/ActionField-BUeonTqc.js.br +9 -0
- package/dist/{AvailabilitySkeleton-iD7Vbt5K.js → AvailabilitySkeleton-gympaD6B.js} +77 -75
- package/dist/AvailabilitySkeleton-gympaD6B.js.br +0 -0
- package/dist/CheckoutWindow-sws5X9v2.js +710 -0
- package/dist/CheckoutWindow-sws5X9v2.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js → DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js} +2003 -1999
- package/dist/DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js.br +0 -0
- package/dist/{ErrorMessage-4GwDZEsl.js → ErrorMessage-GzJ2T5_d.js} +1 -1
- package/dist/ErrorMessage-GzJ2T5_d.js.br +0 -0
- package/dist/{EventAvailabilityForm-jvxOZKWx.js → EventAvailabilityForm-c0u7rObv.js} +26 -25
- package/dist/EventAvailabilityForm-c0u7rObv.js.br +0 -0
- package/dist/{Field-EqFBeBE_.js → Field-hjOjPQhC.js} +1 -1
- package/dist/Field-hjOjPQhC.js.br +0 -0
- package/dist/{ThankYou-pu1PDfhl.js → ThankYou-d129mmKn.js} +3077 -3563
- package/dist/ThankYou-d129mmKn.js.br +0 -0
- package/dist/{_--L3VvP-p.js → _-hKpeUU4C.js} +2264 -2243
- package/dist/_-hKpeUU4C.js.br +0 -0
- package/dist/availability.js +22 -22
- package/dist/availability.js.br +0 -0
- package/dist/event.js +61 -61
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +20 -20
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +305 -291
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +926 -919
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +3 -2
- package/dist/ActionField-mMYGNb-7.js.br +0 -0
- package/dist/AvailabilitySkeleton-iD7Vbt5K.js.br +0 -0
- package/dist/CheckoutWindow-T32YH60g.js +0 -205
- package/dist/CheckoutWindow-T32YH60g.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js.br +0 -0
- package/dist/ErrorMessage-4GwDZEsl.js.br +0 -0
- package/dist/EventAvailabilityForm-jvxOZKWx.js.br +0 -0
- package/dist/Field-EqFBeBE_.js.br +0 -0
- package/dist/ThankYou-pu1PDfhl.js.br +0 -0
- package/dist/_--L3VvP-p.js.br +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as c, r as V, c as m, o as d, a as i, w as v, b as g, _ as q, u as t, e as k, T as B, f as I, C, I as F, g as A } from "./_
|
|
1
|
+
import { d as c, r as V, c as m, o as d, a as i, w as v, b as g, _ as q, u as t, e as k, T as B, f as I, C, I as F, g as A } from "./_-hKpeUU4C.js";
|
|
2
2
|
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
3
3
|
__name: "ActionField",
|
|
4
4
|
props: {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
� ��1��/^�],����/Yh[=M5�oA-���&��$�Y ��O(x�Y�Z
|
|
2
|
+
^by��3
|
|
3
|
+
_:Bɝ�JW��k�b"_EW�c]o!�]C0tdz*��T�J�����V��+J^�Wk����
|
|
4
|
+
�1�)hf�&�� �x-ET�k��7'8�V��F�V�7l�2�)a(V$<{&t5�(8����EJ��[��NN��
|
|
5
|
+
���Z��e-n;8e$�Z7$��@T3qtq!+�������3Y��Ԧ���k+$��C�;�Ֆ�®��@cC_�����S=�֖\
|
|
6
|
+
tK5���l��tjk6�O�~C׆�����b9� �YС̢a*n��M�B�2�NU.0��:��U<�\8g����=~��v(ߠ��E +9%ՖԐՔ��VJ��1[q��l�lE�i�tҗ* To��9{]�zM�<*�Ԣ$���-c��ta�h��?U��i���ǽ�m��
|
|
7
|
+
�w鰯N9j2��Vۿ�e�b1UüGDL��VuM�ڴ4�ϧ�F��S
|
|
8
|
+
%(EսJ��3k[xÂ:��2������c����~�W�F���|�<ڻ��c��&d�k!<8h���r�%�
|
|
9
|
+
����Q#�����cҒ�s�I�7�?S[iF9S��9�03�u��t���CK5�j|�J���d�+�9��R�����d�&�$
|
|
@@ -1,110 +1,112 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { F as p } from "./Field-
|
|
4
|
-
const
|
|
1
|
+
import { d as T, j as W, a7 as X, D as A, a8 as F, a9 as R, G as Y, k as Z, c as v, H as B, l as ee, o as t, h as s, b as w, u as e, f as i, J as k, _ as ae, i as f, F as H, a as D, T as E, e as I, C as N, n as S, m as le, a3 as te, g as j, E as O } from "./_-hKpeUU4C.js";
|
|
2
|
+
import { _ as ie } from "./DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js";
|
|
3
|
+
import { F as p } from "./Field-hjOjPQhC.js";
|
|
4
|
+
const ne = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "konnectio-availability-location"
|
|
7
|
-
},
|
|
7
|
+
}, oe = { id: "fresh-booking-availability-date-selection" }, se = {
|
|
8
8
|
key: 1,
|
|
9
9
|
id: "fresh-booking-availability-guest-selection"
|
|
10
|
-
},
|
|
10
|
+
}, de = { id: "fresh-booking-availability-confirmation" }, ce = /* @__PURE__ */ T({
|
|
11
11
|
__name: "HotelAvailabilityForm",
|
|
12
12
|
props: {
|
|
13
13
|
booking: { type: Boolean, default: !1 },
|
|
14
14
|
link: {}
|
|
15
15
|
},
|
|
16
16
|
setup(x) {
|
|
17
|
-
const { t: a } =
|
|
17
|
+
const { t: a } = W(), L = X("emitter"), d = x, {
|
|
18
18
|
adults: c,
|
|
19
19
|
children: r,
|
|
20
|
-
arrivalDate:
|
|
21
|
-
departureDate:
|
|
20
|
+
arrivalDate: b,
|
|
21
|
+
departureDate: y,
|
|
22
22
|
location: _,
|
|
23
23
|
isExpired: z
|
|
24
|
-
} = A(
|
|
25
|
-
firstSelectableDateOffset:
|
|
26
|
-
lastSelectableDateOffset:
|
|
27
|
-
disableChildSelection:
|
|
24
|
+
} = A(F()), { reset: M } = F(), { fetchAvailabilityData: q } = R(), { areListingsLoading: U, hotelList: G, hasHotelList: h } = A(R()), {
|
|
25
|
+
firstSelectableDateOffset: $,
|
|
26
|
+
lastSelectableDateOffset: C,
|
|
27
|
+
disableChildSelection: m,
|
|
28
28
|
disableAdultSelection: u
|
|
29
|
-
} = A(
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
function
|
|
29
|
+
} = A(Y()), g = Z([]), J = v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + ($.value - 1))));
|
|
30
|
+
v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + C.value))), v(() => new Date((/* @__PURE__ */ new Date()).setDate(b.value.getDate() + $.value)));
|
|
31
|
+
const K = v(() => new Date((/* @__PURE__ */ new Date()).setDate(b.value.getDate() + (C.value + 1)))), V = v(() => !(!u && c.value === 0)), P = v(() => typeof d.link != "string");
|
|
32
|
+
function Q() {
|
|
33
33
|
if (d.booking === !1)
|
|
34
|
-
if (
|
|
35
|
-
const n =
|
|
34
|
+
if (P.value) {
|
|
35
|
+
const n = te();
|
|
36
36
|
d.link[n] ? window.location.replace(d.link[n]) : d.link.en ? window.location.replace(d.link.en) : console.log("Sprog understøttes ikke");
|
|
37
37
|
} else
|
|
38
38
|
window.location.replace(d.link);
|
|
39
39
|
else
|
|
40
|
-
V.value &&
|
|
40
|
+
V.value && q();
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return B(b, (n) => {
|
|
43
43
|
const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
|
|
44
|
-
new Date(
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
|
|
44
|
+
new Date(y.value) < l && (y.value = l);
|
|
45
|
+
}), L.on("forcedDateChange", () => {
|
|
46
|
+
g.value = [b.value, y.value];
|
|
47
|
+
}), B(g, (n) => {
|
|
48
|
+
b.value = n[0], y.value = n[1];
|
|
49
|
+
}), ee(() => {
|
|
50
|
+
z.value && M(), g.value = [b.value, y.value];
|
|
49
51
|
}), (n, l) => (t(), s("form", {
|
|
50
52
|
id: "konnectio-availability-form",
|
|
51
53
|
class: S({ reservation: n.booking }),
|
|
52
54
|
type: "availability",
|
|
53
|
-
onSubmit:
|
|
55
|
+
onSubmit: le(Q, ["prevent"])
|
|
54
56
|
}, [
|
|
55
|
-
|
|
57
|
+
w("ul", {
|
|
56
58
|
id: "konnectio-availability-form-content",
|
|
57
59
|
class: S([
|
|
58
60
|
{ "is-booking-page": n.booking },
|
|
59
|
-
{ "only-adult-guests": !e(u) && e(
|
|
60
|
-
{ "only-child-guests": !e(
|
|
61
|
-
{ "no-guests": e(u) && e(
|
|
62
|
-
{ "all-guests": !e(u) && !e(
|
|
63
|
-
{ "has-location": e(
|
|
61
|
+
{ "only-adult-guests": !e(u) && e(m) },
|
|
62
|
+
{ "only-child-guests": !e(m) && e(u) },
|
|
63
|
+
{ "no-guests": e(u) && e(m) },
|
|
64
|
+
{ "all-guests": !e(u) && !e(m) },
|
|
65
|
+
{ "has-location": e(h) }
|
|
64
66
|
])
|
|
65
67
|
}, [
|
|
66
|
-
e(
|
|
67
|
-
i(
|
|
68
|
+
e(h) ? (t(), s("li", ne, [
|
|
69
|
+
i(ae, {
|
|
68
70
|
modelValue: e(_),
|
|
69
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
|
71
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => k(_) ? _.value = o : null),
|
|
70
72
|
label: e(a)("general.location"),
|
|
71
73
|
icon: "location-dot",
|
|
72
74
|
"icon-type": "fas",
|
|
73
75
|
"icon-placement": "label",
|
|
74
|
-
options: e(
|
|
76
|
+
options: e(G),
|
|
75
77
|
searchable: !1
|
|
76
78
|
}, null, 8, ["modelValue", "label", "options"])
|
|
77
|
-
])) :
|
|
78
|
-
|
|
79
|
-
i(
|
|
80
|
-
modelValue:
|
|
81
|
-
"onUpdate:modelValue": l[1] || (l[1] = (o) =>
|
|
79
|
+
])) : f("", !0),
|
|
80
|
+
w("li", oe, [
|
|
81
|
+
i(ie, {
|
|
82
|
+
modelValue: g.value,
|
|
83
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => g.value = o),
|
|
82
84
|
label: e(a)("availability.checkInOut"),
|
|
83
85
|
"icon-type": "fas",
|
|
84
86
|
"icon-placement": "label",
|
|
85
87
|
"min-range": 1,
|
|
86
|
-
"min-date":
|
|
87
|
-
"max-date":
|
|
88
|
+
"min-date": J.value,
|
|
89
|
+
"max-date": K.value,
|
|
88
90
|
range: ""
|
|
89
91
|
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
90
|
-
|
|
92
|
+
f("", !0)
|
|
91
93
|
]),
|
|
92
|
-
!e(u) || !e(
|
|
93
|
-
e(u) ?
|
|
94
|
-
e(
|
|
94
|
+
!e(u) || !e(m) ? (t(), s("li", se, [
|
|
95
|
+
e(u) ? f("", !0) : (t(), s(H, { key: 0 }, [
|
|
96
|
+
e(h) ? (t(), D(E, {
|
|
95
97
|
key: 0,
|
|
96
98
|
modelValue: e(c),
|
|
97
|
-
"onUpdate:modelValue": l[4] || (l[4] = (o) =>
|
|
99
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => k(c) ? c.value = o : null),
|
|
98
100
|
label: e(a)("availability.adults"),
|
|
99
101
|
description: e(a)("general.adultAgeRange"),
|
|
100
102
|
"icon-type": "fas",
|
|
101
103
|
"icon-placement": "label",
|
|
102
104
|
name: "adults",
|
|
103
105
|
icon: "male"
|
|
104
|
-
}, null, 8, ["modelValue", "label", "description"])) : (t(),
|
|
106
|
+
}, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
|
|
105
107
|
key: 1,
|
|
106
108
|
modelValue: e(c),
|
|
107
|
-
"onUpdate:modelValue": l[5] || (l[5] = (o) =>
|
|
109
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => k(c) ? c.value = o : null),
|
|
108
110
|
label: e(a)("availability.adults"),
|
|
109
111
|
description: e(a)("general.adultAgeRange"),
|
|
110
112
|
"icon-type": "fas",
|
|
@@ -113,21 +115,21 @@ const te = {
|
|
|
113
115
|
icon: "male"
|
|
114
116
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
115
117
|
], 64)),
|
|
116
|
-
e(
|
|
117
|
-
e(
|
|
118
|
+
e(m) ? f("", !0) : (t(), s(H, { key: 1 }, [
|
|
119
|
+
e(h) ? (t(), D(E, {
|
|
118
120
|
key: 0,
|
|
119
121
|
modelValue: e(r),
|
|
120
|
-
"onUpdate:modelValue": l[6] || (l[6] = (o) =>
|
|
122
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => k(r) ? r.value = o : null),
|
|
121
123
|
label: e(a)("availability.children"),
|
|
122
124
|
description: e(a)("general.childAgeRange"),
|
|
123
125
|
"icon-type": "fas",
|
|
124
126
|
"icon-placement": "label",
|
|
125
127
|
name: "children",
|
|
126
128
|
icon: "child"
|
|
127
|
-
}, null, 8, ["modelValue", "label", "description"])) : (t(),
|
|
129
|
+
}, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
|
|
128
130
|
key: 1,
|
|
129
131
|
modelValue: e(r),
|
|
130
|
-
"onUpdate:modelValue": l[7] || (l[7] = (o) =>
|
|
132
|
+
"onUpdate:modelValue": l[7] || (l[7] = (o) => k(r) ? r.value = o : null),
|
|
131
133
|
label: e(a)("availability.children"),
|
|
132
134
|
description: e(a)("general.childAgeRange"),
|
|
133
135
|
"icon-type": "fas",
|
|
@@ -136,54 +138,54 @@ const te = {
|
|
|
136
138
|
icon: "child"
|
|
137
139
|
}, null, 8, ["modelValue", "label", "description"]))
|
|
138
140
|
], 64))
|
|
139
|
-
])) :
|
|
140
|
-
|
|
141
|
-
i(
|
|
141
|
+
])) : f("", !0),
|
|
142
|
+
w("li", de, [
|
|
143
|
+
i(N, {
|
|
142
144
|
class: "konnectio-availability-submit-small",
|
|
143
145
|
type: "submit",
|
|
144
146
|
icon: "search",
|
|
145
147
|
"icon-type": "fas",
|
|
146
148
|
disabled: !V.value,
|
|
147
|
-
"is-loading": e(
|
|
149
|
+
"is-loading": e(U)
|
|
148
150
|
}, null, 8, ["disabled", "is-loading"]),
|
|
149
|
-
i(
|
|
151
|
+
i(N, {
|
|
150
152
|
class: "konnectio-availability-submit-large",
|
|
151
153
|
type: "submit",
|
|
152
154
|
label: e(a)("availability.buttonLabel"),
|
|
153
155
|
disabled: !V.value,
|
|
154
|
-
"is-loading": e(
|
|
156
|
+
"is-loading": e(U)
|
|
155
157
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
156
158
|
])
|
|
157
159
|
], 2)
|
|
158
160
|
], 34));
|
|
159
161
|
}
|
|
160
|
-
}),
|
|
162
|
+
}), ge = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-25343459"]]), ue = { class: "availability-skeleton" }, re = {
|
|
161
163
|
key: 0,
|
|
162
164
|
class: "availability-skeleton-navigation"
|
|
163
|
-
},
|
|
165
|
+
}, be = { class: "availability-skeleton-content" }, me = {
|
|
164
166
|
key: 1,
|
|
165
167
|
class: "availability-skeleton-event"
|
|
166
|
-
},
|
|
168
|
+
}, ve = /* @__PURE__ */ T({
|
|
167
169
|
__name: "AvailabilitySkeleton",
|
|
168
170
|
props: {
|
|
169
171
|
view: { default: "hotel" },
|
|
170
172
|
hotel: { type: Boolean, default: !1 }
|
|
171
173
|
},
|
|
172
174
|
setup(x) {
|
|
173
|
-
return (a,
|
|
174
|
-
a.view === "both" ? (t(), s("div",
|
|
175
|
-
i(
|
|
175
|
+
return (a, L) => (t(), s("div", ue, [
|
|
176
|
+
a.view === "both" ? (t(), s("div", re, [
|
|
177
|
+
i(O, {
|
|
176
178
|
height: "28px",
|
|
177
179
|
width: "60px",
|
|
178
180
|
"border-radius": "20px"
|
|
179
181
|
}),
|
|
180
|
-
i(
|
|
182
|
+
i(O, {
|
|
181
183
|
height: "28px",
|
|
182
184
|
width: "60px",
|
|
183
185
|
"border-radius": "20px"
|
|
184
186
|
})
|
|
185
|
-
])) :
|
|
186
|
-
|
|
187
|
+
])) : f("", !0),
|
|
188
|
+
w("div", be, [
|
|
187
189
|
a.view !== "event" ? (t(), s("div", {
|
|
188
190
|
key: 0,
|
|
189
191
|
class: S([
|
|
@@ -198,7 +200,7 @@ const te = {
|
|
|
198
200
|
"with-icon": "",
|
|
199
201
|
"no-label": ""
|
|
200
202
|
})
|
|
201
|
-
], 2)) : (t(), s("div",
|
|
203
|
+
], 2)) : (t(), s("div", me, [
|
|
202
204
|
i(p, { "with-icon": "" }),
|
|
203
205
|
i(p, {
|
|
204
206
|
"with-icon": "",
|
|
@@ -208,8 +210,8 @@ const te = {
|
|
|
208
210
|
])
|
|
209
211
|
]));
|
|
210
212
|
}
|
|
211
|
-
}),
|
|
213
|
+
}), ke = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-17762b9b"]]);
|
|
212
214
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
ke as A,
|
|
216
|
+
ge as H
|
|
215
217
|
};
|
|
Binary file
|