@konnectio/core 4.0.56-rc21 → 4.0.56-rc22
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-ZJdtBRXa.js} +1 -1
- package/dist/ActionField-ZJdtBRXa.js.br +4 -0
- package/dist/AvailabilitySkeleton-tfEBupNq.js +234 -0
- package/dist/AvailabilitySkeleton-tfEBupNq.js.br +0 -0
- package/dist/{CheckoutWindow-T32YH60g.js → CheckoutWindow-orJD6dJy.js} +1 -1
- package/dist/CheckoutWindow-orJD6dJy.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js → DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js} +1 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js.br +0 -0
- package/dist/{ErrorMessage-4GwDZEsl.js → ErrorMessage-mUpn7ZBU.js} +1 -1
- package/dist/ErrorMessage-mUpn7ZBU.js.br +0 -0
- package/dist/{EventAvailabilityForm-jvxOZKWx.js → EventAvailabilityForm-cAOEZVnn.js} +7 -7
- package/dist/EventAvailabilityForm-cAOEZVnn.js.br +0 -0
- package/dist/{Field-EqFBeBE_.js → Field-Kwm-GcDa.js} +1 -1
- package/dist/Field-Kwm-GcDa.js.br +0 -0
- package/dist/{ThankYou-pu1PDfhl.js → ThankYou-EiAxaHd8.js} +318 -318
- package/dist/ThankYou-EiAxaHd8.js.br +0 -0
- package/dist/{_--L3VvP-p.js → _-KavQ60qi.js} +2191 -2187
- package/dist/_-KavQ60qi.js.br +0 -0
- package/dist/availability.js +18 -18
- package/dist/availability.js.br +0 -0
- package/dist/event.js +5 -5
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +938 -931
- 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 -1
- package/dist/ActionField-mMYGNb-7.js.br +0 -0
- package/dist/AvailabilitySkeleton-iD7Vbt5K.js +0 -215
- package/dist/AvailabilitySkeleton-iD7Vbt5K.js.br +0 -0
- 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
package/dist/style.css.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.0.56-
|
|
3
|
+
"version": "4.0.56-rc22",
|
|
4
4
|
"author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"floating-vue": "5.2.2",
|
|
56
56
|
"linkify-html": "4.1.3",
|
|
57
57
|
"linkifyjs": "4.1.3",
|
|
58
|
+
"mitt": "3.0.1",
|
|
58
59
|
"pinia": "2.1.7",
|
|
59
60
|
"postcss": "8.4.35",
|
|
60
61
|
"recaptcha-v3": "1.10.0",
|
|
Binary file
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { d as O, j as Q, B as A, a6 as B, a7 as F, D as W, k as X, c as m, G as R, l as Y, o as t, h as s, b as D, u as e, f as i, H as y, _ as Z, i as v, F as C, a as w, T as H, e as E, C as I, n as S, m as ee, a2 as ae, g as T, E as N } from "./_--L3VvP-p.js";
|
|
2
|
-
import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js";
|
|
3
|
-
import { F as p } from "./Field-EqFBeBE_.js";
|
|
4
|
-
const te = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "konnectio-availability-location"
|
|
7
|
-
}, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
|
|
8
|
-
key: 1,
|
|
9
|
-
id: "fresh-booking-availability-guest-selection"
|
|
10
|
-
}, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ O({
|
|
11
|
-
__name: "HotelAvailabilityForm",
|
|
12
|
-
props: {
|
|
13
|
-
booking: { type: Boolean, default: !1 },
|
|
14
|
-
link: {}
|
|
15
|
-
},
|
|
16
|
-
setup(x) {
|
|
17
|
-
const { t: a } = Q(), d = x, {
|
|
18
|
-
adults: c,
|
|
19
|
-
children: r,
|
|
20
|
-
arrivalDate: f,
|
|
21
|
-
departureDate: g,
|
|
22
|
-
location: _,
|
|
23
|
-
isExpired: z
|
|
24
|
-
} = A(B()), { reset: M } = B(), { fetchAvailabilityData: j } = F(), { areListingsLoading: L, hotelList: q, hasHotelList: k } = A(F()), {
|
|
25
|
-
firstSelectableDateOffset: U,
|
|
26
|
-
lastSelectableDateOffset: $,
|
|
27
|
-
disableChildSelection: b,
|
|
28
|
-
disableAdultSelection: u
|
|
29
|
-
} = A(W()), h = X([]), G = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
|
|
30
|
-
m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + $.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + U.value)));
|
|
31
|
-
const J = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + ($.value + 1)))), V = m(() => !(!u && c.value === 0)), K = m(() => typeof d.link != "string");
|
|
32
|
-
function P() {
|
|
33
|
-
if (d.booking === !1)
|
|
34
|
-
if (K.value) {
|
|
35
|
-
const n = ae();
|
|
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 && j();
|
|
41
|
-
}
|
|
42
|
-
return R(f, (n) => {
|
|
43
|
-
const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
|
|
44
|
-
new Date(g.value) < l && (g.value = l);
|
|
45
|
-
}), R(h, (n) => {
|
|
46
|
-
f.value = n[0], g.value = n[1];
|
|
47
|
-
}), Y(() => {
|
|
48
|
-
z.value && M(), h.value = [f.value, g.value];
|
|
49
|
-
}), (n, l) => (t(), s("form", {
|
|
50
|
-
id: "konnectio-availability-form",
|
|
51
|
-
class: S({ reservation: n.booking }),
|
|
52
|
-
type: "availability",
|
|
53
|
-
onSubmit: ee(P, ["prevent"])
|
|
54
|
-
}, [
|
|
55
|
-
D("ul", {
|
|
56
|
-
id: "konnectio-availability-form-content",
|
|
57
|
-
class: S([
|
|
58
|
-
{ "is-booking-page": n.booking },
|
|
59
|
-
{ "only-adult-guests": !e(u) && e(b) },
|
|
60
|
-
{ "only-child-guests": !e(b) && e(u) },
|
|
61
|
-
{ "no-guests": e(u) && e(b) },
|
|
62
|
-
{ "all-guests": !e(u) && !e(b) },
|
|
63
|
-
{ "has-location": e(k) }
|
|
64
|
-
])
|
|
65
|
-
}, [
|
|
66
|
-
e(k) ? (t(), s("li", te, [
|
|
67
|
-
i(Z, {
|
|
68
|
-
modelValue: e(_),
|
|
69
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => y(_) ? _.value = o : null),
|
|
70
|
-
label: e(a)("general.location"),
|
|
71
|
-
icon: "location-dot",
|
|
72
|
-
"icon-type": "fas",
|
|
73
|
-
"icon-placement": "label",
|
|
74
|
-
options: e(q),
|
|
75
|
-
searchable: !1
|
|
76
|
-
}, null, 8, ["modelValue", "label", "options"])
|
|
77
|
-
])) : v("", !0),
|
|
78
|
-
D("li", ie, [
|
|
79
|
-
i(le, {
|
|
80
|
-
modelValue: h.value,
|
|
81
|
-
"onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
|
|
82
|
-
label: e(a)("availability.checkInOut"),
|
|
83
|
-
"icon-type": "fas",
|
|
84
|
-
"icon-placement": "label",
|
|
85
|
-
"min-range": 1,
|
|
86
|
-
"min-date": G.value,
|
|
87
|
-
"max-date": J.value,
|
|
88
|
-
range: ""
|
|
89
|
-
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
90
|
-
v("", !0)
|
|
91
|
-
]),
|
|
92
|
-
!e(u) || !e(b) ? (t(), s("li", ne, [
|
|
93
|
-
e(u) ? v("", !0) : (t(), s(C, { key: 0 }, [
|
|
94
|
-
e(k) ? (t(), w(H, {
|
|
95
|
-
key: 0,
|
|
96
|
-
modelValue: e(c),
|
|
97
|
-
"onUpdate:modelValue": l[4] || (l[4] = (o) => y(c) ? c.value = o : null),
|
|
98
|
-
label: e(a)("availability.adults"),
|
|
99
|
-
description: e(a)("general.adultAgeRange"),
|
|
100
|
-
"icon-type": "fas",
|
|
101
|
-
"icon-placement": "label",
|
|
102
|
-
name: "adults",
|
|
103
|
-
icon: "male"
|
|
104
|
-
}, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
|
|
105
|
-
key: 1,
|
|
106
|
-
modelValue: e(c),
|
|
107
|
-
"onUpdate:modelValue": l[5] || (l[5] = (o) => y(c) ? c.value = o : null),
|
|
108
|
-
label: e(a)("availability.adults"),
|
|
109
|
-
description: e(a)("general.adultAgeRange"),
|
|
110
|
-
"icon-type": "fas",
|
|
111
|
-
"icon-placement": "label",
|
|
112
|
-
name: "adults",
|
|
113
|
-
icon: "male"
|
|
114
|
-
}, null, 8, ["modelValue", "label", "description"]))
|
|
115
|
-
], 64)),
|
|
116
|
-
e(b) ? v("", !0) : (t(), s(C, { key: 1 }, [
|
|
117
|
-
e(k) ? (t(), w(H, {
|
|
118
|
-
key: 0,
|
|
119
|
-
modelValue: e(r),
|
|
120
|
-
"onUpdate:modelValue": l[6] || (l[6] = (o) => y(r) ? r.value = o : null),
|
|
121
|
-
label: e(a)("availability.children"),
|
|
122
|
-
description: e(a)("general.childAgeRange"),
|
|
123
|
-
"icon-type": "fas",
|
|
124
|
-
"icon-placement": "label",
|
|
125
|
-
name: "children",
|
|
126
|
-
icon: "child"
|
|
127
|
-
}, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
|
|
128
|
-
key: 1,
|
|
129
|
-
modelValue: e(r),
|
|
130
|
-
"onUpdate:modelValue": l[7] || (l[7] = (o) => y(r) ? r.value = o : null),
|
|
131
|
-
label: e(a)("availability.children"),
|
|
132
|
-
description: e(a)("general.childAgeRange"),
|
|
133
|
-
"icon-type": "fas",
|
|
134
|
-
"icon-placement": "label",
|
|
135
|
-
name: "children",
|
|
136
|
-
icon: "child"
|
|
137
|
-
}, null, 8, ["modelValue", "label", "description"]))
|
|
138
|
-
], 64))
|
|
139
|
-
])) : v("", !0),
|
|
140
|
-
D("li", oe, [
|
|
141
|
-
i(I, {
|
|
142
|
-
class: "konnectio-availability-submit-small",
|
|
143
|
-
type: "submit",
|
|
144
|
-
icon: "search",
|
|
145
|
-
"icon-type": "fas",
|
|
146
|
-
disabled: !V.value,
|
|
147
|
-
"is-loading": e(L)
|
|
148
|
-
}, null, 8, ["disabled", "is-loading"]),
|
|
149
|
-
i(I, {
|
|
150
|
-
class: "konnectio-availability-submit-large",
|
|
151
|
-
type: "submit",
|
|
152
|
-
label: e(a)("availability.buttonLabel"),
|
|
153
|
-
disabled: !V.value,
|
|
154
|
-
"is-loading": e(L)
|
|
155
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
156
|
-
])
|
|
157
|
-
], 2)
|
|
158
|
-
], 34));
|
|
159
|
-
}
|
|
160
|
-
}), fe = /* @__PURE__ */ T(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
|
|
161
|
-
key: 0,
|
|
162
|
-
class: "availability-skeleton-navigation"
|
|
163
|
-
}, ue = { class: "availability-skeleton-content" }, re = {
|
|
164
|
-
key: 1,
|
|
165
|
-
class: "availability-skeleton-event"
|
|
166
|
-
}, be = /* @__PURE__ */ O({
|
|
167
|
-
__name: "AvailabilitySkeleton",
|
|
168
|
-
props: {
|
|
169
|
-
view: { default: "hotel" },
|
|
170
|
-
hotel: { type: Boolean, default: !1 }
|
|
171
|
-
},
|
|
172
|
-
setup(x) {
|
|
173
|
-
return (a, d) => (t(), s("div", de, [
|
|
174
|
-
a.view === "both" ? (t(), s("div", ce, [
|
|
175
|
-
i(N, {
|
|
176
|
-
height: "28px",
|
|
177
|
-
width: "60px",
|
|
178
|
-
"border-radius": "20px"
|
|
179
|
-
}),
|
|
180
|
-
i(N, {
|
|
181
|
-
height: "28px",
|
|
182
|
-
width: "60px",
|
|
183
|
-
"border-radius": "20px"
|
|
184
|
-
})
|
|
185
|
-
])) : v("", !0),
|
|
186
|
-
D("div", ue, [
|
|
187
|
-
a.view !== "event" ? (t(), s("div", {
|
|
188
|
-
key: 0,
|
|
189
|
-
class: S([
|
|
190
|
-
"availability-skeleton-hotel",
|
|
191
|
-
{ "within-hotel": a.hotel }
|
|
192
|
-
])
|
|
193
|
-
}, [
|
|
194
|
-
i(p, { "with-icon": "" }),
|
|
195
|
-
i(p, { "with-icon": "" }),
|
|
196
|
-
i(p, { "with-icon": "" }),
|
|
197
|
-
i(p, {
|
|
198
|
-
"with-icon": "",
|
|
199
|
-
"no-label": ""
|
|
200
|
-
})
|
|
201
|
-
], 2)) : (t(), s("div", re, [
|
|
202
|
-
i(p, { "with-icon": "" }),
|
|
203
|
-
i(p, {
|
|
204
|
-
"with-icon": "",
|
|
205
|
-
"no-label": ""
|
|
206
|
-
})
|
|
207
|
-
]))
|
|
208
|
-
])
|
|
209
|
-
]));
|
|
210
|
-
}
|
|
211
|
-
}), ye = /* @__PURE__ */ T(be, [["__scopeId", "data-v-17762b9b"]]);
|
|
212
|
-
export {
|
|
213
|
-
ye as A,
|
|
214
|
-
fe as H
|
|
215
|
-
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/_--L3VvP-p.js.br
DELETED
|
Binary file
|