@konnectio/core 4.0.56-rc4 → 4.0.56-rc40
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-UFZMmHDy.js → ActionField-CD5wWyTP.js} +39 -31
- package/dist/ActionField-CD5wWyTP.js.br +0 -0
- package/dist/AvailabilitySkeleton-D9lVJ7Y4.js +288 -0
- package/dist/AvailabilitySkeleton-D9lVJ7Y4.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js +7746 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js.br +0 -0
- package/dist/CheckoutWindow-POqLB9M4.js +668 -0
- package/dist/CheckoutWindow-POqLB9M4.js.br +0 -0
- package/dist/ErrorMessage-DACtGUvq.js +45 -0
- package/dist/ErrorMessage-DACtGUvq.js.br +0 -0
- package/dist/EventAvailabilityForm-Dx4hfkc1.js +432 -0
- package/dist/EventAvailabilityForm-Dx4hfkc1.js.br +0 -0
- package/dist/Field-Nqc4wuqz.js +50 -0
- package/dist/Field-Nqc4wuqz.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js} +9592 -9834
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js.br +0 -0
- package/dist/TermsOfService-D3ujvGpJ.js +35 -0
- package/dist/TermsOfService-D3ujvGpJ.js.br +0 -0
- package/dist/_-BeIBHN5G.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js +72 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js.br +0 -0
- package/dist/_commonjsHelpers-BpcYSDvQ.js +11797 -0
- package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
- package/dist/availability.js +95 -147
- package/dist/availability.js.br +0 -0
- package/dist/event.js +723 -494
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +120 -64
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +364 -410
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-BEp1vsXy.js +128 -0
- package/dist/giftCard-BEp1vsXy.js.br +0 -0
- package/dist/hotel.js +1382 -2429
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-CnRH1tRE.js +12755 -0
- package/dist/masonry.plugin-CnRH1tRE.js.br +0 -0
- package/dist/navigation.js +10 -1
- package/dist/polyfill.js +14868 -4768
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +45 -38
- package/dist/ActionField-UFZMmHDy.js.br +0 -0
- package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
- package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
- package/dist/CheckoutWindow-2RMgPiGi.js +0 -206
- package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
- package/dist/Container-XBRB0sOV.js +0 -69
- package/dist/Container-XBRB0sOV.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js +0 -8567
- package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
- package/dist/Field-uK3Wuuv6.js +0 -43
- package/dist/Field-uK3Wuuv6.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
- package/dist/ThankYou-nz4vPX4O.js +0 -13316
- package/dist/ThankYou-nz4vPX4O.js.br +0 -0
- package/dist/_-oPH7HiaC.js +0 -20
- package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -28
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -60
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -23
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -15
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -31
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -2
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -38
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -29
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -2
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -42
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -104
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -62
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -87
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -90
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -68
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -44
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -56
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -47
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -16
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -21
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -61
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -18
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -36
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -2
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -36
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -2
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -15
- package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
- package/dist/entries/availability.d.ts +0 -5
- package/dist/entries/event.d.ts +0 -2
- package/dist/entries/gift-card-validation.d.ts +0 -5
- package/dist/entries/gift-card.d.ts +0 -5
- package/dist/entries/hotel.d.ts +0 -5
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event--wgsUkQp.js +0 -359
- package/dist/event--wgsUkQp.js.br +0 -0
- package/dist/event.d.ts +0 -3
- package/dist/gift-card-validation.d.ts +0 -3
- package/dist/gift-card.d.ts +0 -3
- package/dist/hotel.d.ts +0 -3
- package/dist/layouts/Availability.vue.d.ts +0 -25
- package/dist/layouts/Event.vue.d.ts +0 -18
- package/dist/layouts/GiftCard.vue.d.ts +0 -32
- package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
- package/dist/layouts/Hotel.vue.d.ts +0 -36
- package/dist/layouts/_.vue.d.ts +0 -39
- package/dist/navigation.d.ts +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.d.ts +0 -1
- package/dist/store/alert.d.ts +0 -28
- package/dist/store/applyGiftCard.d.ts +0 -28
- package/dist/store/availability.d.ts +0 -40
- package/dist/store/event.d.ts +0 -683
- package/dist/store/giftCard.d.ts +0 -83
- package/dist/store/payment.d.ts +0 -139
- package/dist/store/recaptcha.d.ts +0 -28
- package/dist/store/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -350
- package/dist/types/index.d.ts +0 -976
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as
|
|
3
|
-
|
|
1
|
+
import { d as c, c as y, o as i, b as u, w as V, g, u as s, f as v } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { r as I, k, l as q, T as w, C as B, I as C, _ as D } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
|
|
3
|
+
(function() {
|
|
4
|
+
try {
|
|
5
|
+
var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
|
|
6
|
+
n && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[n] = "fcf46767-e20a-415a-9073-1752e2d1b176", o._sentryDebugIdIdentifier = "sentry-dbid-fcf46767-e20a-415a-9073-1752e2d1b176");
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
})();
|
|
10
|
+
const F = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ c({
|
|
4
11
|
__name: "ActionField",
|
|
5
12
|
props: {
|
|
6
13
|
modelValue: {},
|
|
@@ -25,24 +32,24 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
|
25
32
|
isLoading: { type: Boolean, default: !1 }
|
|
26
33
|
},
|
|
27
34
|
emits: ["update:modelValue", "action"],
|
|
28
|
-
setup(
|
|
29
|
-
const r =
|
|
30
|
-
function
|
|
35
|
+
setup(o, { emit: n }) {
|
|
36
|
+
const r = n, p = o, d = p.id || I();
|
|
37
|
+
function m(e) {
|
|
31
38
|
r("update:modelValue", e);
|
|
32
39
|
}
|
|
33
|
-
const
|
|
34
|
-
get: () =>
|
|
35
|
-
set: (e) =>
|
|
36
|
-
}),
|
|
37
|
-
get: () =>
|
|
38
|
-
set: (e) =>
|
|
40
|
+
const t = y({
|
|
41
|
+
get: () => p.modelValue,
|
|
42
|
+
set: (e) => m(e)
|
|
43
|
+
}), f = y({
|
|
44
|
+
get: () => p.modelValue,
|
|
45
|
+
set: (e) => m(e)
|
|
39
46
|
});
|
|
40
47
|
function b() {
|
|
41
48
|
r("action");
|
|
42
49
|
}
|
|
43
|
-
return (e,
|
|
50
|
+
return (e, a) => (i(), u(C, {
|
|
44
51
|
label: e.label,
|
|
45
|
-
id:
|
|
52
|
+
id: s(d),
|
|
46
53
|
icon: e.icon,
|
|
47
54
|
"icon-type": e.iconType,
|
|
48
55
|
required: e.required,
|
|
@@ -50,33 +57,33 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
|
50
57
|
readonly: e.readonly
|
|
51
58
|
}, {
|
|
52
59
|
default: V(() => [
|
|
53
|
-
|
|
54
|
-
e.type === "dropdown" && e.data ? (
|
|
60
|
+
g("div", F, [
|
|
61
|
+
e.type === "dropdown" && e.data ? (i(), u(k, {
|
|
55
62
|
key: 0,
|
|
56
|
-
modelValue:
|
|
57
|
-
"onUpdate:modelValue":
|
|
58
|
-
id:
|
|
63
|
+
modelValue: t.value,
|
|
64
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => t.value = l),
|
|
65
|
+
id: s(d),
|
|
59
66
|
options: e.data,
|
|
60
67
|
name: e.name,
|
|
61
68
|
required: e.required,
|
|
62
69
|
placeholder: e.placeholder
|
|
63
|
-
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (
|
|
70
|
+
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (i(), u(q, {
|
|
64
71
|
key: 1,
|
|
65
|
-
modelValue:
|
|
66
|
-
"onUpdate:modelValue":
|
|
67
|
-
id:
|
|
72
|
+
modelValue: f.value,
|
|
73
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => f.value = l),
|
|
74
|
+
id: s(d),
|
|
68
75
|
"min-value": e.minValue,
|
|
69
76
|
"max-value": e.maxValue
|
|
70
|
-
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (
|
|
77
|
+
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (i(), u(w, {
|
|
71
78
|
key: 2,
|
|
72
|
-
modelValue:
|
|
73
|
-
"onUpdate:modelValue":
|
|
74
|
-
id:
|
|
79
|
+
modelValue: t.value,
|
|
80
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => t.value = l),
|
|
81
|
+
id: s(d),
|
|
75
82
|
name: e.name,
|
|
76
83
|
required: e.required,
|
|
77
84
|
placeholder: e.placeholder
|
|
78
85
|
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
79
|
-
|
|
86
|
+
v(B, {
|
|
80
87
|
"data-test": `${e.name}Submit`,
|
|
81
88
|
icon: e.buttonIcon,
|
|
82
89
|
label: e.buttonLabel,
|
|
@@ -86,14 +93,15 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
|
86
93
|
"is-loading": e.isLoading,
|
|
87
94
|
disabled: e.buttonDisabled,
|
|
88
95
|
secondary: e.secondary,
|
|
89
|
-
onClickEvent:
|
|
96
|
+
onClickEvent: a[3] || (a[3] = (l) => b())
|
|
90
97
|
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
91
98
|
])
|
|
92
99
|
]),
|
|
93
100
|
_: 1
|
|
94
101
|
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
95
102
|
}
|
|
96
|
-
}),
|
|
103
|
+
}), T = /* @__PURE__ */ D(h, [["__scopeId", "data-v-3e77e321"]]);
|
|
97
104
|
export {
|
|
98
|
-
|
|
105
|
+
T as A
|
|
99
106
|
};
|
|
107
|
+
//# sourceMappingURL=ActionField-CD5wWyTP.js.map
|
|
Binary file
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { d as Y, m as me, r as f, c as s, q as G, h as pe, o as n, a as r, f as u, w as fe, u as e, b as g, e as y, g as N, F as J, n as $, l as ge, i as De } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { h as ye, s as L, m as K, z as P, b as ke, T as x, k as he, l as Q, C as W, g as we, _ as Z, E as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
|
|
3
|
+
import { _ as _e } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js";
|
|
4
|
+
import { F as D } from "./Field-Nqc4wuqz.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
|
|
8
|
+
t && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[t] = "742572b1-565c-4415-afa9-658089f67247", c._sentryDebugIdIdentifier = "sentry-dbid-742572b1-565c-4415-afa9-658089f67247");
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
})();
|
|
12
|
+
const Ve = {
|
|
13
|
+
class: "konnectio-availability-location",
|
|
14
|
+
key: "location"
|
|
15
|
+
}, Ae = {
|
|
16
|
+
id: "konnectio-availability-date-selection",
|
|
17
|
+
key: "multiDate"
|
|
18
|
+
}, Le = {
|
|
19
|
+
id: "konnectio-availability-guest-selection",
|
|
20
|
+
key: "guests"
|
|
21
|
+
}, xe = {
|
|
22
|
+
id: "konnectio-availability-confirmation",
|
|
23
|
+
key: "confirm"
|
|
24
|
+
}, Ne = /* @__PURE__ */ Y({
|
|
25
|
+
__name: "HotelAvailabilityForm",
|
|
26
|
+
props: {
|
|
27
|
+
booking: { type: Boolean, default: !1 },
|
|
28
|
+
link: {},
|
|
29
|
+
selectedLocation: { default: NaN }
|
|
30
|
+
},
|
|
31
|
+
setup(c) {
|
|
32
|
+
const { t } = ye(), _ = me("emitter"), l = c, {
|
|
33
|
+
adults: C,
|
|
34
|
+
children: S,
|
|
35
|
+
arrivalDate: U,
|
|
36
|
+
departureDate: I,
|
|
37
|
+
location: B,
|
|
38
|
+
hasHotelLocations: w,
|
|
39
|
+
hotelLocations: F,
|
|
40
|
+
isExpired: ee
|
|
41
|
+
} = L(K()), { reset: ae, updateHotelAvailability: le, fetchMetadata: te } = K(), { fetchAvailabilityData: ie } = P(), { areListingsLoading: H } = L(P()), {
|
|
42
|
+
firstSelectableDateOffset: E,
|
|
43
|
+
lastSelectableDateOffset: R,
|
|
44
|
+
disableChildSelection: b,
|
|
45
|
+
disableAdultSelection: d,
|
|
46
|
+
defaultAdultAmount: oe,
|
|
47
|
+
defaultChildAmount: ne,
|
|
48
|
+
controlLocation: se
|
|
49
|
+
} = L(ke()), ue = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), re = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), T = f(oe.value), z = f(ne.value), M = f(ue()), O = f(re()), q = f(se.value), m = s({
|
|
50
|
+
get: () => l.booking ? C.value : T.value,
|
|
51
|
+
set: (a) => {
|
|
52
|
+
l.booking ? C.value = Number(a) : T.value = Number(a);
|
|
53
|
+
}
|
|
54
|
+
}), k = s({
|
|
55
|
+
get: () => l.booking ? S.value : z.value,
|
|
56
|
+
set: (a) => {
|
|
57
|
+
l.booking ? S.value = Number(a) : z.value = Number(a);
|
|
58
|
+
}
|
|
59
|
+
}), v = s({
|
|
60
|
+
get: () => l.booking ? U.value : M.value,
|
|
61
|
+
set: (a) => {
|
|
62
|
+
l.booking ? U.value = a : M.value = a;
|
|
63
|
+
}
|
|
64
|
+
}), p = s({
|
|
65
|
+
get: () => l.booking ? I.value : O.value,
|
|
66
|
+
set: (a) => {
|
|
67
|
+
l.booking ? I.value = a : O.value = a;
|
|
68
|
+
}
|
|
69
|
+
}), V = s({
|
|
70
|
+
get: () => isNaN(l.selectedLocation) ? l.booking ? B.value : q.value : l.selectedLocation,
|
|
71
|
+
set: (a) => {
|
|
72
|
+
l.booking ? B.value = a : q.value = a;
|
|
73
|
+
}
|
|
74
|
+
}), j = s(() => {
|
|
75
|
+
const a = F.value.find(({ id: i }) => i === l.selectedLocation);
|
|
76
|
+
return a ? a.name : "";
|
|
77
|
+
}), h = f([]), ce = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (E.value - 1)))), Be = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + R.value))), Fe = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + E.value))), de = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (R.value + 1)))), A = s(() => !(!d && m.value === 0)), ve = s(() => typeof l.link != "string");
|
|
78
|
+
function be() {
|
|
79
|
+
if (l.booking === !1)
|
|
80
|
+
if (le({
|
|
81
|
+
adults: m.value,
|
|
82
|
+
children: k.value,
|
|
83
|
+
arrivalDate: v.value,
|
|
84
|
+
departureDate: p.value,
|
|
85
|
+
location: V.value
|
|
86
|
+
}), ve.value) {
|
|
87
|
+
const a = we();
|
|
88
|
+
l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
|
|
89
|
+
} else
|
|
90
|
+
window.location.replace(l.link);
|
|
91
|
+
else
|
|
92
|
+
A.value && ie();
|
|
93
|
+
}
|
|
94
|
+
return G(v, (a) => {
|
|
95
|
+
const i = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
|
|
96
|
+
new Date(p.value) < i && (p.value = i);
|
|
97
|
+
}), _.on("forcedDateChange", () => {
|
|
98
|
+
h.value = [v.value, p.value];
|
|
99
|
+
}), G(h, (a) => {
|
|
100
|
+
v.value = a[0], p.value = a[1];
|
|
101
|
+
}), pe(() => {
|
|
102
|
+
ee.value && ae(), l.booking === !0 && te(), h.value = [v.value, p.value];
|
|
103
|
+
}), (a, i) => (n(), r("form", {
|
|
104
|
+
id: "konnectio-availability-form",
|
|
105
|
+
class: $({ reservation: a.booking }),
|
|
106
|
+
type: "availability",
|
|
107
|
+
onSubmit: De(be, ["prevent"])
|
|
108
|
+
}, [
|
|
109
|
+
u(ge, {
|
|
110
|
+
id: "konnectio-availability-form-content",
|
|
111
|
+
tag: "ul",
|
|
112
|
+
class: $([
|
|
113
|
+
{ "is-booking-page": a.booking },
|
|
114
|
+
{ "only-adult-guests": !e(d) && e(b) },
|
|
115
|
+
{ "only-child-guests": !e(b) && e(d) },
|
|
116
|
+
{ "no-guests": e(d) && e(b) },
|
|
117
|
+
{ "all-guests": !e(d) && !e(b) },
|
|
118
|
+
{ "has-location": e(w) }
|
|
119
|
+
])
|
|
120
|
+
}, {
|
|
121
|
+
default: fe(() => [
|
|
122
|
+
e(w) ? (n(), r("li", Ve, [
|
|
123
|
+
isNaN(a.selectedLocation) ? (n(), g(he, {
|
|
124
|
+
key: 1,
|
|
125
|
+
modelValue: V.value,
|
|
126
|
+
"onUpdate:modelValue": i[1] || (i[1] = (o) => V.value = o),
|
|
127
|
+
label: e(t)("general.location"),
|
|
128
|
+
icon: "location-dot",
|
|
129
|
+
"icon-type": "fas",
|
|
130
|
+
"icon-placement": "label",
|
|
131
|
+
"label-key": "name",
|
|
132
|
+
"value-key": "id",
|
|
133
|
+
options: e(F),
|
|
134
|
+
searchable: !1
|
|
135
|
+
}, null, 8, ["modelValue", "label", "options"])) : (n(), g(x, {
|
|
136
|
+
key: 0,
|
|
137
|
+
modelValue: j.value,
|
|
138
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => j.value = o),
|
|
139
|
+
label: e(t)("general.location"),
|
|
140
|
+
icon: "location-dot",
|
|
141
|
+
"icon-type": "fas",
|
|
142
|
+
"icon-placement": "label",
|
|
143
|
+
readonly: ""
|
|
144
|
+
}, null, 8, ["modelValue", "label"]))
|
|
145
|
+
])) : y("", !0),
|
|
146
|
+
N("li", Ae, [
|
|
147
|
+
u(_e, {
|
|
148
|
+
modelValue: h.value,
|
|
149
|
+
"onUpdate:modelValue": i[2] || (i[2] = (o) => h.value = o),
|
|
150
|
+
label: e(t)("availability.checkInOut"),
|
|
151
|
+
"icon-type": "fas",
|
|
152
|
+
"icon-placement": "label",
|
|
153
|
+
"min-range": 1,
|
|
154
|
+
"min-date": ce.value,
|
|
155
|
+
"max-date": de.value,
|
|
156
|
+
range: ""
|
|
157
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
158
|
+
y("", !0)
|
|
159
|
+
]),
|
|
160
|
+
!e(d) || !e(b) ? (n(), r("li", Le, [
|
|
161
|
+
e(d) ? y("", !0) : (n(), r(J, { key: 0 }, [
|
|
162
|
+
e(w) ? (n(), g(x, {
|
|
163
|
+
key: 0,
|
|
164
|
+
modelValue: m.value,
|
|
165
|
+
"onUpdate:modelValue": i[5] || (i[5] = (o) => m.value = o),
|
|
166
|
+
type: "number",
|
|
167
|
+
label: e(t)("availability.adults"),
|
|
168
|
+
description: e(t)("general.adultAgeRange"),
|
|
169
|
+
"icon-type": "fas",
|
|
170
|
+
"icon-placement": "label",
|
|
171
|
+
name: "adults",
|
|
172
|
+
icon: "male"
|
|
173
|
+
}, null, 8, ["modelValue", "label", "description"])) : (n(), g(Q, {
|
|
174
|
+
key: 1,
|
|
175
|
+
modelValue: m.value,
|
|
176
|
+
"onUpdate:modelValue": i[6] || (i[6] = (o) => m.value = o),
|
|
177
|
+
label: e(t)("availability.adults"),
|
|
178
|
+
description: e(t)("general.adultAgeRange"),
|
|
179
|
+
"icon-type": "fas",
|
|
180
|
+
"icon-placement": "label",
|
|
181
|
+
name: "adults",
|
|
182
|
+
icon: "male"
|
|
183
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
184
|
+
], 64)),
|
|
185
|
+
e(b) ? y("", !0) : (n(), r(J, { key: 1 }, [
|
|
186
|
+
e(w) ? (n(), g(x, {
|
|
187
|
+
key: 0,
|
|
188
|
+
modelValue: k.value,
|
|
189
|
+
"onUpdate:modelValue": i[7] || (i[7] = (o) => k.value = o),
|
|
190
|
+
type: "number",
|
|
191
|
+
label: e(t)("availability.children"),
|
|
192
|
+
description: e(t)("general.childAgeRange"),
|
|
193
|
+
"icon-type": "fas",
|
|
194
|
+
"icon-placement": "label",
|
|
195
|
+
name: "children",
|
|
196
|
+
icon: "child"
|
|
197
|
+
}, null, 8, ["modelValue", "label", "description"])) : (n(), g(Q, {
|
|
198
|
+
key: 1,
|
|
199
|
+
modelValue: k.value,
|
|
200
|
+
"onUpdate:modelValue": i[8] || (i[8] = (o) => k.value = o),
|
|
201
|
+
label: e(t)("availability.children"),
|
|
202
|
+
description: e(t)("general.childAgeRange"),
|
|
203
|
+
"icon-type": "fas",
|
|
204
|
+
"icon-placement": "label",
|
|
205
|
+
name: "children",
|
|
206
|
+
icon: "child"
|
|
207
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
208
|
+
], 64))
|
|
209
|
+
])) : y("", !0),
|
|
210
|
+
N("li", xe, [
|
|
211
|
+
u(W, {
|
|
212
|
+
class: "konnectio-availability-submit-small",
|
|
213
|
+
type: "submit",
|
|
214
|
+
icon: "search",
|
|
215
|
+
"icon-type": "fas",
|
|
216
|
+
disabled: !A.value,
|
|
217
|
+
"is-loading": e(H)
|
|
218
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
219
|
+
u(W, {
|
|
220
|
+
class: "konnectio-availability-submit-large",
|
|
221
|
+
type: "submit",
|
|
222
|
+
label: e(t)("availability.buttonLabel"),
|
|
223
|
+
disabled: !A.value,
|
|
224
|
+
"is-loading": e(H)
|
|
225
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["class"])
|
|
230
|
+
], 34));
|
|
231
|
+
}
|
|
232
|
+
}), ze = /* @__PURE__ */ Z(Ne, [["__scopeId", "data-v-f1455e7b"]]), $e = { class: "availability-skeleton" }, Ce = {
|
|
233
|
+
key: 0,
|
|
234
|
+
class: "availability-skeleton-navigation"
|
|
235
|
+
}, Se = { class: "availability-skeleton-content" }, Ue = {
|
|
236
|
+
key: 1,
|
|
237
|
+
class: "availability-skeleton-event"
|
|
238
|
+
}, Ie = /* @__PURE__ */ Y({
|
|
239
|
+
__name: "AvailabilitySkeleton",
|
|
240
|
+
props: {
|
|
241
|
+
view: { default: "hotel" },
|
|
242
|
+
hotel: { type: Boolean, default: !1 }
|
|
243
|
+
},
|
|
244
|
+
setup(c) {
|
|
245
|
+
return (t, _) => (n(), r("div", $e, [
|
|
246
|
+
t.view === "both" ? (n(), r("div", Ce, [
|
|
247
|
+
u(X, {
|
|
248
|
+
height: "28px",
|
|
249
|
+
width: "60px",
|
|
250
|
+
"border-radius": "20px"
|
|
251
|
+
}),
|
|
252
|
+
u(X, {
|
|
253
|
+
height: "28px",
|
|
254
|
+
width: "60px",
|
|
255
|
+
"border-radius": "20px"
|
|
256
|
+
})
|
|
257
|
+
])) : y("", !0),
|
|
258
|
+
N("div", Se, [
|
|
259
|
+
t.view !== "event" ? (n(), r("div", {
|
|
260
|
+
key: 0,
|
|
261
|
+
class: $([
|
|
262
|
+
"availability-skeleton-hotel",
|
|
263
|
+
{ "within-hotel": t.hotel }
|
|
264
|
+
])
|
|
265
|
+
}, [
|
|
266
|
+
u(D, { "with-icon": "" }),
|
|
267
|
+
u(D, { "with-icon": "" }),
|
|
268
|
+
u(D, { "with-icon": "" }),
|
|
269
|
+
u(D, {
|
|
270
|
+
"with-icon": "",
|
|
271
|
+
"no-label": ""
|
|
272
|
+
})
|
|
273
|
+
], 2)) : (n(), r("div", Ue, [
|
|
274
|
+
u(D, { "with-icon": "" }),
|
|
275
|
+
u(D, {
|
|
276
|
+
"with-icon": "",
|
|
277
|
+
"no-label": ""
|
|
278
|
+
})
|
|
279
|
+
]))
|
|
280
|
+
])
|
|
281
|
+
]));
|
|
282
|
+
}
|
|
283
|
+
}), Me = /* @__PURE__ */ Z(Ie, [["__scopeId", "data-v-17762b9b"]]);
|
|
284
|
+
export {
|
|
285
|
+
Me as A,
|
|
286
|
+
ze as H
|
|
287
|
+
};
|
|
288
|
+
//# sourceMappingURL=AvailabilitySkeleton-D9lVJ7Y4.js.map
|
|
Binary file
|