@konnectio/core 4.0.56-rc22 → 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-ZJdtBRXa.js → ActionField-BUeonTqc.js} +1 -1
- package/dist/ActionField-BUeonTqc.js.br +9 -0
- package/dist/AvailabilitySkeleton-gympaD6B.js +217 -0
- 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-KjvE2y5e.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-mUpn7ZBU.js → ErrorMessage-GzJ2T5_d.js} +1 -1
- package/dist/ErrorMessage-GzJ2T5_d.js.br +0 -0
- package/dist/{EventAvailabilityForm-cAOEZVnn.js → EventAvailabilityForm-c0u7rObv.js} +26 -25
- package/dist/EventAvailabilityForm-c0u7rObv.js.br +0 -0
- package/dist/{Field-Kwm-GcDa.js → Field-hjOjPQhC.js} +1 -1
- package/dist/Field-hjOjPQhC.js.br +0 -0
- package/dist/{ThankYou-EiAxaHd8.js → ThankYou-d129mmKn.js} +3077 -3563
- package/dist/ThankYou-d129mmKn.js.br +0 -0
- package/dist/{_-KavQ60qi.js → _-hKpeUU4C.js} +115 -98
- package/dist/_-hKpeUU4C.js.br +0 -0
- package/dist/availability.js +9 -9
- 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 +79 -79
- 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 +2 -2
- package/dist/ActionField-ZJdtBRXa.js.br +0 -4
- package/dist/AvailabilitySkeleton-tfEBupNq.js +0 -234
- package/dist/AvailabilitySkeleton-tfEBupNq.js.br +0 -0
- package/dist/CheckoutWindow-orJD6dJy.js +0 -205
- package/dist/CheckoutWindow-orJD6dJy.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js.br +0 -0
- package/dist/ErrorMessage-mUpn7ZBU.js.br +0 -0
- package/dist/EventAvailabilityForm-cAOEZVnn.js.br +0 -0
- package/dist/Field-Kwm-GcDa.js.br +0 -0
- package/dist/ThankYou-EiAxaHd8.js.br +0 -0
- package/dist/_-KavQ60qi.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�&�$
|
|
@@ -0,0 +1,217 @@
|
|
|
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
|
+
key: 0,
|
|
6
|
+
class: "konnectio-availability-location"
|
|
7
|
+
}, oe = { id: "fresh-booking-availability-date-selection" }, se = {
|
|
8
|
+
key: 1,
|
|
9
|
+
id: "fresh-booking-availability-guest-selection"
|
|
10
|
+
}, de = { id: "fresh-booking-availability-confirmation" }, ce = /* @__PURE__ */ T({
|
|
11
|
+
__name: "HotelAvailabilityForm",
|
|
12
|
+
props: {
|
|
13
|
+
booking: { type: Boolean, default: !1 },
|
|
14
|
+
link: {}
|
|
15
|
+
},
|
|
16
|
+
setup(x) {
|
|
17
|
+
const { t: a } = W(), L = X("emitter"), d = x, {
|
|
18
|
+
adults: c,
|
|
19
|
+
children: r,
|
|
20
|
+
arrivalDate: b,
|
|
21
|
+
departureDate: y,
|
|
22
|
+
location: _,
|
|
23
|
+
isExpired: z
|
|
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
|
+
disableAdultSelection: u
|
|
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
|
+
if (d.booking === !1)
|
|
34
|
+
if (P.value) {
|
|
35
|
+
const n = te();
|
|
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
|
+
} else
|
|
38
|
+
window.location.replace(d.link);
|
|
39
|
+
else
|
|
40
|
+
V.value && q();
|
|
41
|
+
}
|
|
42
|
+
return B(b, (n) => {
|
|
43
|
+
const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
|
|
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];
|
|
51
|
+
}), (n, l) => (t(), s("form", {
|
|
52
|
+
id: "konnectio-availability-form",
|
|
53
|
+
class: S({ reservation: n.booking }),
|
|
54
|
+
type: "availability",
|
|
55
|
+
onSubmit: le(Q, ["prevent"])
|
|
56
|
+
}, [
|
|
57
|
+
w("ul", {
|
|
58
|
+
id: "konnectio-availability-form-content",
|
|
59
|
+
class: S([
|
|
60
|
+
{ "is-booking-page": n.booking },
|
|
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) }
|
|
66
|
+
])
|
|
67
|
+
}, [
|
|
68
|
+
e(h) ? (t(), s("li", ne, [
|
|
69
|
+
i(ae, {
|
|
70
|
+
modelValue: e(_),
|
|
71
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => k(_) ? _.value = o : null),
|
|
72
|
+
label: e(a)("general.location"),
|
|
73
|
+
icon: "location-dot",
|
|
74
|
+
"icon-type": "fas",
|
|
75
|
+
"icon-placement": "label",
|
|
76
|
+
options: e(G),
|
|
77
|
+
searchable: !1
|
|
78
|
+
}, null, 8, ["modelValue", "label", "options"])
|
|
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),
|
|
84
|
+
label: e(a)("availability.checkInOut"),
|
|
85
|
+
"icon-type": "fas",
|
|
86
|
+
"icon-placement": "label",
|
|
87
|
+
"min-range": 1,
|
|
88
|
+
"min-date": J.value,
|
|
89
|
+
"max-date": K.value,
|
|
90
|
+
range: ""
|
|
91
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
92
|
+
f("", !0)
|
|
93
|
+
]),
|
|
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, {
|
|
97
|
+
key: 0,
|
|
98
|
+
modelValue: e(c),
|
|
99
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => k(c) ? c.value = o : null),
|
|
100
|
+
label: e(a)("availability.adults"),
|
|
101
|
+
description: e(a)("general.adultAgeRange"),
|
|
102
|
+
"icon-type": "fas",
|
|
103
|
+
"icon-placement": "label",
|
|
104
|
+
name: "adults",
|
|
105
|
+
icon: "male"
|
|
106
|
+
}, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
|
|
107
|
+
key: 1,
|
|
108
|
+
modelValue: e(c),
|
|
109
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => k(c) ? c.value = o : null),
|
|
110
|
+
label: e(a)("availability.adults"),
|
|
111
|
+
description: e(a)("general.adultAgeRange"),
|
|
112
|
+
"icon-type": "fas",
|
|
113
|
+
"icon-placement": "label",
|
|
114
|
+
name: "adults",
|
|
115
|
+
icon: "male"
|
|
116
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
117
|
+
], 64)),
|
|
118
|
+
e(m) ? f("", !0) : (t(), s(H, { key: 1 }, [
|
|
119
|
+
e(h) ? (t(), D(E, {
|
|
120
|
+
key: 0,
|
|
121
|
+
modelValue: e(r),
|
|
122
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => k(r) ? r.value = o : null),
|
|
123
|
+
label: e(a)("availability.children"),
|
|
124
|
+
description: e(a)("general.childAgeRange"),
|
|
125
|
+
"icon-type": "fas",
|
|
126
|
+
"icon-placement": "label",
|
|
127
|
+
name: "children",
|
|
128
|
+
icon: "child"
|
|
129
|
+
}, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
|
|
130
|
+
key: 1,
|
|
131
|
+
modelValue: e(r),
|
|
132
|
+
"onUpdate:modelValue": l[7] || (l[7] = (o) => k(r) ? r.value = o : null),
|
|
133
|
+
label: e(a)("availability.children"),
|
|
134
|
+
description: e(a)("general.childAgeRange"),
|
|
135
|
+
"icon-type": "fas",
|
|
136
|
+
"icon-placement": "label",
|
|
137
|
+
name: "children",
|
|
138
|
+
icon: "child"
|
|
139
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
140
|
+
], 64))
|
|
141
|
+
])) : f("", !0),
|
|
142
|
+
w("li", de, [
|
|
143
|
+
i(N, {
|
|
144
|
+
class: "konnectio-availability-submit-small",
|
|
145
|
+
type: "submit",
|
|
146
|
+
icon: "search",
|
|
147
|
+
"icon-type": "fas",
|
|
148
|
+
disabled: !V.value,
|
|
149
|
+
"is-loading": e(U)
|
|
150
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
151
|
+
i(N, {
|
|
152
|
+
class: "konnectio-availability-submit-large",
|
|
153
|
+
type: "submit",
|
|
154
|
+
label: e(a)("availability.buttonLabel"),
|
|
155
|
+
disabled: !V.value,
|
|
156
|
+
"is-loading": e(U)
|
|
157
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
158
|
+
])
|
|
159
|
+
], 2)
|
|
160
|
+
], 34));
|
|
161
|
+
}
|
|
162
|
+
}), ge = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-25343459"]]), ue = { class: "availability-skeleton" }, re = {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "availability-skeleton-navigation"
|
|
165
|
+
}, be = { class: "availability-skeleton-content" }, me = {
|
|
166
|
+
key: 1,
|
|
167
|
+
class: "availability-skeleton-event"
|
|
168
|
+
}, ve = /* @__PURE__ */ T({
|
|
169
|
+
__name: "AvailabilitySkeleton",
|
|
170
|
+
props: {
|
|
171
|
+
view: { default: "hotel" },
|
|
172
|
+
hotel: { type: Boolean, default: !1 }
|
|
173
|
+
},
|
|
174
|
+
setup(x) {
|
|
175
|
+
return (a, L) => (t(), s("div", ue, [
|
|
176
|
+
a.view === "both" ? (t(), s("div", re, [
|
|
177
|
+
i(O, {
|
|
178
|
+
height: "28px",
|
|
179
|
+
width: "60px",
|
|
180
|
+
"border-radius": "20px"
|
|
181
|
+
}),
|
|
182
|
+
i(O, {
|
|
183
|
+
height: "28px",
|
|
184
|
+
width: "60px",
|
|
185
|
+
"border-radius": "20px"
|
|
186
|
+
})
|
|
187
|
+
])) : f("", !0),
|
|
188
|
+
w("div", be, [
|
|
189
|
+
a.view !== "event" ? (t(), s("div", {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: S([
|
|
192
|
+
"availability-skeleton-hotel",
|
|
193
|
+
{ "within-hotel": a.hotel }
|
|
194
|
+
])
|
|
195
|
+
}, [
|
|
196
|
+
i(p, { "with-icon": "" }),
|
|
197
|
+
i(p, { "with-icon": "" }),
|
|
198
|
+
i(p, { "with-icon": "" }),
|
|
199
|
+
i(p, {
|
|
200
|
+
"with-icon": "",
|
|
201
|
+
"no-label": ""
|
|
202
|
+
})
|
|
203
|
+
], 2)) : (t(), s("div", me, [
|
|
204
|
+
i(p, { "with-icon": "" }),
|
|
205
|
+
i(p, {
|
|
206
|
+
"with-icon": "",
|
|
207
|
+
"no-label": ""
|
|
208
|
+
})
|
|
209
|
+
]))
|
|
210
|
+
])
|
|
211
|
+
]));
|
|
212
|
+
}
|
|
213
|
+
}), ke = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-17762b9b"]]);
|
|
214
|
+
export {
|
|
215
|
+
ke as A,
|
|
216
|
+
ge as H
|
|
217
|
+
};
|
|
Binary file
|