@konnectio/core 4.0.56-rc5 → 4.0.56-rc50
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--byx0Lp1.js → ActionField-BQQitCzR.js} +43 -34
- package/dist/ActionField-BQQitCzR.js.br +0 -0
- package/dist/AvailabilitySkeleton-TZiNrJ8t.js +294 -0
- package/dist/AvailabilitySkeleton-TZiNrJ8t.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js +7814 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js.br +0 -0
- package/dist/CheckoutWindow-DBBmXrsX.js +668 -0
- package/dist/CheckoutWindow-DBBmXrsX.js.br +0 -0
- package/dist/ErrorMessage-Dw-TLplp.js +45 -0
- package/dist/ErrorMessage-Dw-TLplp.js.br +0 -0
- package/dist/EventAvailabilityForm-DimufYUP.js +437 -0
- package/dist/EventAvailabilityForm-DimufYUP.js.br +0 -0
- package/dist/Field-B4x3qSfU.js +50 -0
- package/dist/Field-B4x3qSfU.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js +21414 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js.br +0 -0
- package/dist/TermsOfService-DLchxC08.js +35 -0
- package/dist/TermsOfService-DLchxC08.js.br +0 -0
- package/dist/_-C7wxqlYk.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js +68 -0
- package/dist/_.vue_vue_type_style_index_0_lang-BGyUJK1I.js.br +0 -0
- package/dist/availability.js +96 -147
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +10 -0
- package/dist/event.js +732 -495
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +132 -75
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +363 -408
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-9uCMmY6r.js +127 -0
- package/dist/giftCard-9uCMmY6r.js.br +0 -0
- package/dist/hotel.js +1480 -2454
- package/dist/hotel.js.br +0 -0
- package/dist/masonry.plugin-C4-Uj22v.js +12789 -0
- package/dist/masonry.plugin-C4-Uj22v.js.br +0 -0
- package/dist/polyfill.js +15065 -4765
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/tracing-Dm-FNj-F.js +11807 -0
- package/dist/tracing-Dm-FNj-F.js.br +0 -0
- package/package.json +47 -40
- package/dist/ActionField--byx0Lp1.js.br +0 -0
- package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
- package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
- package/dist/CheckoutWindow-_ZUCAYgm.js +0 -205
- package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
- package/dist/Container-6UeOakwz.js +0 -68
- package/dist/Container-6UeOakwz.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js +0 -8566
- package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
- package/dist/Field-GdMucFcQ.js +0 -42
- package/dist/Field-GdMucFcQ.js.br +0 -5
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
- package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
- package/dist/ThankYou-9pzt2SfJ.js +0 -13475
- package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
- package/dist/_-5uiOrU07.js +0 -19
- package/dist/_commonjsHelpers-4t9S7M5p.js +0 -30
- 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-jnP6wH4w.js +0 -358
- package/dist/event-jnP6wH4w.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/navigation.js +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,5 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { d as c, c as b, o as i, b as u, w as V, g, u as s, f as v } from "./tracing-Dm-FNj-F.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-CyGcXPO9.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] = "7f768933-bb99-4a7f-9914-fe21f7749e7e", o._sentryDebugIdIdentifier = "sentry-dbid-7f768933-bb99-4a7f-9914-fe21f7749e7e");
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
})();
|
|
10
|
+
const F = { class: "fresh-booking-action-field" }, h = /* @__PURE__ */ c({
|
|
3
11
|
__name: "ActionField",
|
|
4
12
|
props: {
|
|
5
13
|
modelValue: {},
|
|
@@ -24,58 +32,58 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
|
24
32
|
isLoading: { type: Boolean, default: !1 }
|
|
25
33
|
},
|
|
26
34
|
emits: ["update:modelValue", "action"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
function
|
|
30
|
-
|
|
35
|
+
setup(o, { emit: n }) {
|
|
36
|
+
const r = n, p = o, d = p.id || I();
|
|
37
|
+
function f(e) {
|
|
38
|
+
r("update:modelValue", e);
|
|
31
39
|
}
|
|
32
|
-
const
|
|
33
|
-
get: () =>
|
|
34
|
-
set: (e) =>
|
|
35
|
-
}),
|
|
36
|
-
get: () =>
|
|
37
|
-
set: (e) =>
|
|
40
|
+
const t = b({
|
|
41
|
+
get: () => p.modelValue,
|
|
42
|
+
set: (e) => f(e)
|
|
43
|
+
}), m = b({
|
|
44
|
+
get: () => p.modelValue,
|
|
45
|
+
set: (e) => f(e)
|
|
38
46
|
});
|
|
39
|
-
function
|
|
40
|
-
|
|
47
|
+
function y() {
|
|
48
|
+
r("action");
|
|
41
49
|
}
|
|
42
|
-
return (e, a) => (
|
|
50
|
+
return (e, a) => (i(), u(C, {
|
|
43
51
|
label: e.label,
|
|
44
|
-
id:
|
|
52
|
+
id: s(d),
|
|
45
53
|
icon: e.icon,
|
|
46
54
|
"icon-type": e.iconType,
|
|
47
55
|
required: e.required,
|
|
48
56
|
type: e.type,
|
|
49
57
|
readonly: e.readonly
|
|
50
58
|
}, {
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
e.type === "dropdown" && e.data ? (
|
|
59
|
+
default: V(() => [
|
|
60
|
+
g("div", F, [
|
|
61
|
+
e.type === "dropdown" && e.data ? (i(), u(k, {
|
|
54
62
|
key: 0,
|
|
55
|
-
modelValue:
|
|
56
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) =>
|
|
57
|
-
id:
|
|
63
|
+
modelValue: t.value,
|
|
64
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => t.value = l),
|
|
65
|
+
id: s(d),
|
|
58
66
|
options: e.data,
|
|
59
67
|
name: e.name,
|
|
60
68
|
required: e.required,
|
|
61
69
|
placeholder: e.placeholder
|
|
62
|
-
}, 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, {
|
|
63
71
|
key: 1,
|
|
64
|
-
modelValue:
|
|
65
|
-
"onUpdate:modelValue": a[1] || (a[1] = (l) =>
|
|
66
|
-
id:
|
|
72
|
+
modelValue: m.value,
|
|
73
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => m.value = l),
|
|
74
|
+
id: s(d),
|
|
67
75
|
"min-value": e.minValue,
|
|
68
76
|
"max-value": e.maxValue
|
|
69
|
-
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (
|
|
77
|
+
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (i(), u(w, {
|
|
70
78
|
key: 2,
|
|
71
|
-
modelValue:
|
|
72
|
-
"onUpdate:modelValue": a[2] || (a[2] = (l) =>
|
|
73
|
-
id:
|
|
79
|
+
modelValue: t.value,
|
|
80
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => t.value = l),
|
|
81
|
+
id: s(d),
|
|
74
82
|
name: e.name,
|
|
75
83
|
required: e.required,
|
|
76
84
|
placeholder: e.placeholder
|
|
77
85
|
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
78
|
-
|
|
86
|
+
v(B, {
|
|
79
87
|
"data-test": `${e.name}Submit`,
|
|
80
88
|
icon: e.buttonIcon,
|
|
81
89
|
label: e.buttonLabel,
|
|
@@ -85,14 +93,15 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
|
85
93
|
"is-loading": e.isLoading,
|
|
86
94
|
disabled: e.buttonDisabled,
|
|
87
95
|
secondary: e.secondary,
|
|
88
|
-
onClickEvent: a[3] || (a[3] = (l) =>
|
|
96
|
+
onClickEvent: a[3] || (a[3] = (l) => y())
|
|
89
97
|
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
90
98
|
])
|
|
91
99
|
]),
|
|
92
100
|
_: 1
|
|
93
101
|
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
94
102
|
}
|
|
95
|
-
}),
|
|
103
|
+
}), T = /* @__PURE__ */ D(h, [["__scopeId", "data-v-3e77e321"]]);
|
|
96
104
|
export {
|
|
97
|
-
|
|
105
|
+
T as A
|
|
98
106
|
};
|
|
107
|
+
//# sourceMappingURL=ActionField-BQQitCzR.js.map
|
|
Binary file
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { d as ee, m as pe, r as D, c as s, q as K, h as De, o as n, a as r, f as u, w as ge, u as e, b as g, e as y, g as N, F as P, n as $, l as fe, i as ye } from "./tracing-Dm-FNj-F.js";
|
|
2
|
+
import { h as ke, s as x, m as Q, z as W, b as he, T as L, k as we, l as X, C as Y, g as _e, _ as ae, E as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CyGcXPO9.js";
|
|
3
|
+
import { _ as Ve } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DrUxvwDd.js";
|
|
4
|
+
import { F as f } from "./Field-B4x3qSfU.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
|
|
8
|
+
t && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[t] = "a6539ced-5118-4d8f-a647-b4b170a296a7", d._sentryDebugIdIdentifier = "sentry-dbid-a6539ced-5118-4d8f-a647-b4b170a296a7");
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
})();
|
|
12
|
+
const Ae = {
|
|
13
|
+
class: "konnectio-availability-location",
|
|
14
|
+
key: "location"
|
|
15
|
+
}, xe = {
|
|
16
|
+
id: "konnectio-availability-date-selection",
|
|
17
|
+
key: "multiDate"
|
|
18
|
+
}, Le = {
|
|
19
|
+
id: "konnectio-availability-guest-selection",
|
|
20
|
+
key: "guests"
|
|
21
|
+
}, Ne = {
|
|
22
|
+
id: "konnectio-availability-confirmation",
|
|
23
|
+
key: "confirm"
|
|
24
|
+
}, $e = /* @__PURE__ */ ee({
|
|
25
|
+
__name: "HotelAvailabilityForm",
|
|
26
|
+
props: {
|
|
27
|
+
booking: { type: Boolean, default: !1 },
|
|
28
|
+
link: {},
|
|
29
|
+
selectedLocation: { default: NaN }
|
|
30
|
+
},
|
|
31
|
+
setup(d) {
|
|
32
|
+
const { t } = ke(), _ = pe("emitter"), l = d, {
|
|
33
|
+
adults: C,
|
|
34
|
+
children: S,
|
|
35
|
+
arrivalDate: U,
|
|
36
|
+
departureDate: I,
|
|
37
|
+
location: B,
|
|
38
|
+
hasHotelLocations: w,
|
|
39
|
+
hotelLocations: F,
|
|
40
|
+
isExpired: le,
|
|
41
|
+
controlLocation: te
|
|
42
|
+
} = x(Q()), { reset: ie, updateHotelAvailability: oe } = Q(), { fetchAvailabilityData: ne } = W(), { areListingsLoading: H } = x(W()), {
|
|
43
|
+
firstSelectableDateOffset: E,
|
|
44
|
+
lastSelectableDateOffset: R,
|
|
45
|
+
disableChildSelection: m,
|
|
46
|
+
disableAdultSelection: c,
|
|
47
|
+
defaultAdultAmount: se,
|
|
48
|
+
defaultChildAmount: ue,
|
|
49
|
+
maxAdultAmount: T,
|
|
50
|
+
maxChildAmount: z
|
|
51
|
+
} = x(he()), re = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), de = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), O = D(se.value), q = D(ue.value), M = D(re()), j = D(de()), G = D(te.value), b = s({
|
|
52
|
+
get: () => l.booking ? C.value : O.value,
|
|
53
|
+
set: (a) => {
|
|
54
|
+
l.booking ? C.value = Number(a) : O.value = Number(a);
|
|
55
|
+
}
|
|
56
|
+
}), k = s({
|
|
57
|
+
get: () => l.booking ? S.value : q.value,
|
|
58
|
+
set: (a) => {
|
|
59
|
+
l.booking ? S.value = Number(a) : q.value = Number(a);
|
|
60
|
+
}
|
|
61
|
+
}), v = s({
|
|
62
|
+
get: () => l.booking ? U.value : M.value,
|
|
63
|
+
set: (a) => {
|
|
64
|
+
l.booking ? U.value = a : M.value = a;
|
|
65
|
+
}
|
|
66
|
+
}), p = s({
|
|
67
|
+
get: () => l.booking ? I.value : j.value,
|
|
68
|
+
set: (a) => {
|
|
69
|
+
l.booking ? I.value = a : j.value = a;
|
|
70
|
+
}
|
|
71
|
+
}), V = s({
|
|
72
|
+
get: () => isNaN(l.selectedLocation) ? l.booking ? B.value : G.value : l.selectedLocation,
|
|
73
|
+
set: (a) => {
|
|
74
|
+
l.booking ? B.value = a : G.value = a;
|
|
75
|
+
}
|
|
76
|
+
}), J = s(() => {
|
|
77
|
+
const a = F.value.find(({ id: i }) => i === l.selectedLocation);
|
|
78
|
+
return a ? a.name : "";
|
|
79
|
+
}), h = D([]), ce = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (E.value - 1)))), Fe = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + R.value))), He = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + E.value))), ve = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (R.value + 1)))), A = s(() => !(!c && b.value === 0)), me = s(() => typeof l.link != "string");
|
|
80
|
+
function be() {
|
|
81
|
+
if (l.booking === !1)
|
|
82
|
+
if (oe({
|
|
83
|
+
adults: b.value,
|
|
84
|
+
children: k.value,
|
|
85
|
+
arrivalDate: v.value,
|
|
86
|
+
departureDate: p.value,
|
|
87
|
+
location: V.value
|
|
88
|
+
}), me.value) {
|
|
89
|
+
const a = _e();
|
|
90
|
+
l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
|
|
91
|
+
} else
|
|
92
|
+
window.location.replace(l.link);
|
|
93
|
+
else
|
|
94
|
+
A.value && ne();
|
|
95
|
+
}
|
|
96
|
+
return K(v, (a) => {
|
|
97
|
+
const i = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
|
|
98
|
+
new Date(p.value) < i && (p.value = i);
|
|
99
|
+
}), _.on("forcedDateChange", () => {
|
|
100
|
+
h.value = [v.value, p.value];
|
|
101
|
+
}), K(h, (a) => {
|
|
102
|
+
v.value = a[0], p.value = a[1];
|
|
103
|
+
}), De(() => {
|
|
104
|
+
le.value && ie(), h.value = [v.value, p.value];
|
|
105
|
+
}), (a, i) => (n(), r("form", {
|
|
106
|
+
id: "konnectio-availability-form",
|
|
107
|
+
class: $({ reservation: a.booking }),
|
|
108
|
+
type: "availability",
|
|
109
|
+
onSubmit: ye(be, ["prevent"])
|
|
110
|
+
}, [
|
|
111
|
+
u(fe, {
|
|
112
|
+
id: "konnectio-availability-form-content",
|
|
113
|
+
tag: "ul",
|
|
114
|
+
class: $([
|
|
115
|
+
{ "is-booking-page": a.booking },
|
|
116
|
+
{ "only-adult-guests": !e(c) && e(m) },
|
|
117
|
+
{ "only-child-guests": !e(m) && e(c) },
|
|
118
|
+
{ "no-guests": e(c) && e(m) },
|
|
119
|
+
{ "all-guests": !e(c) && !e(m) },
|
|
120
|
+
{ "has-location": e(w) }
|
|
121
|
+
])
|
|
122
|
+
}, {
|
|
123
|
+
default: ge(() => [
|
|
124
|
+
e(w) ? (n(), r("li", Ae, [
|
|
125
|
+
isNaN(a.selectedLocation) ? (n(), g(we, {
|
|
126
|
+
key: 1,
|
|
127
|
+
modelValue: V.value,
|
|
128
|
+
"onUpdate:modelValue": i[1] || (i[1] = (o) => V.value = o),
|
|
129
|
+
label: e(t)("general.location"),
|
|
130
|
+
icon: "location-dot",
|
|
131
|
+
"icon-type": "fas",
|
|
132
|
+
"icon-placement": "label",
|
|
133
|
+
"label-key": "name",
|
|
134
|
+
"value-key": "id",
|
|
135
|
+
options: e(F),
|
|
136
|
+
searchable: !1
|
|
137
|
+
}, null, 8, ["modelValue", "label", "options"])) : (n(), g(L, {
|
|
138
|
+
key: 0,
|
|
139
|
+
modelValue: J.value,
|
|
140
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => J.value = o),
|
|
141
|
+
label: e(t)("general.location"),
|
|
142
|
+
icon: "location-dot",
|
|
143
|
+
"icon-type": "fas",
|
|
144
|
+
"icon-placement": "label",
|
|
145
|
+
readonly: ""
|
|
146
|
+
}, null, 8, ["modelValue", "label"]))
|
|
147
|
+
])) : y("", !0),
|
|
148
|
+
N("li", xe, [
|
|
149
|
+
u(Ve, {
|
|
150
|
+
modelValue: h.value,
|
|
151
|
+
"onUpdate:modelValue": i[2] || (i[2] = (o) => h.value = o),
|
|
152
|
+
label: e(t)("availability.checkInOut"),
|
|
153
|
+
"icon-type": "fas",
|
|
154
|
+
"icon-placement": "label",
|
|
155
|
+
"min-range": 1,
|
|
156
|
+
"min-date": ce.value,
|
|
157
|
+
"max-date": ve.value,
|
|
158
|
+
range: ""
|
|
159
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
160
|
+
y("", !0)
|
|
161
|
+
]),
|
|
162
|
+
!e(c) || !e(m) ? (n(), r("li", Le, [
|
|
163
|
+
e(c) ? y("", !0) : (n(), r(P, { key: 0 }, [
|
|
164
|
+
e(w) ? (n(), g(L, {
|
|
165
|
+
key: 0,
|
|
166
|
+
modelValue: b.value,
|
|
167
|
+
"onUpdate:modelValue": i[5] || (i[5] = (o) => b.value = o),
|
|
168
|
+
type: "number",
|
|
169
|
+
label: e(t)("availability.adults"),
|
|
170
|
+
description: e(t)("general.adultAgeRange"),
|
|
171
|
+
"icon-type": "fas",
|
|
172
|
+
"icon-placement": "label",
|
|
173
|
+
name: "adults",
|
|
174
|
+
icon: "male",
|
|
175
|
+
max: e(T)
|
|
176
|
+
}, null, 8, ["modelValue", "label", "description", "max"])) : (n(), g(X, {
|
|
177
|
+
key: 1,
|
|
178
|
+
modelValue: b.value,
|
|
179
|
+
"onUpdate:modelValue": i[6] || (i[6] = (o) => b.value = o),
|
|
180
|
+
label: e(t)("availability.adults"),
|
|
181
|
+
description: e(t)("general.adultAgeRange"),
|
|
182
|
+
"icon-type": "fas",
|
|
183
|
+
"icon-placement": "label",
|
|
184
|
+
name: "adults",
|
|
185
|
+
icon: "male",
|
|
186
|
+
"max-value": e(T)
|
|
187
|
+
}, null, 8, ["modelValue", "label", "description", "max-value"]))
|
|
188
|
+
], 64)),
|
|
189
|
+
e(m) ? y("", !0) : (n(), r(P, { key: 1 }, [
|
|
190
|
+
e(w) ? (n(), g(L, {
|
|
191
|
+
key: 0,
|
|
192
|
+
modelValue: k.value,
|
|
193
|
+
"onUpdate:modelValue": i[7] || (i[7] = (o) => k.value = o),
|
|
194
|
+
type: "number",
|
|
195
|
+
label: e(t)("availability.children"),
|
|
196
|
+
description: e(t)("general.childAgeRange"),
|
|
197
|
+
"icon-type": "fas",
|
|
198
|
+
"icon-placement": "label",
|
|
199
|
+
name: "children",
|
|
200
|
+
icon: "child",
|
|
201
|
+
max: e(z)
|
|
202
|
+
}, null, 8, ["modelValue", "label", "description", "max"])) : (n(), g(X, {
|
|
203
|
+
key: 1,
|
|
204
|
+
modelValue: k.value,
|
|
205
|
+
"onUpdate:modelValue": i[8] || (i[8] = (o) => k.value = o),
|
|
206
|
+
label: e(t)("availability.children"),
|
|
207
|
+
description: e(t)("general.childAgeRange"),
|
|
208
|
+
"icon-type": "fas",
|
|
209
|
+
"icon-placement": "label",
|
|
210
|
+
name: "children",
|
|
211
|
+
icon: "child",
|
|
212
|
+
"max-value": e(z)
|
|
213
|
+
}, null, 8, ["modelValue", "label", "description", "max-value"]))
|
|
214
|
+
], 64))
|
|
215
|
+
])) : y("", !0),
|
|
216
|
+
N("li", Ne, [
|
|
217
|
+
u(Y, {
|
|
218
|
+
class: "konnectio-availability-submit-small",
|
|
219
|
+
type: "submit",
|
|
220
|
+
icon: "search",
|
|
221
|
+
"icon-type": "fas",
|
|
222
|
+
disabled: !A.value,
|
|
223
|
+
"is-loading": e(H)
|
|
224
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
225
|
+
u(Y, {
|
|
226
|
+
class: "konnectio-availability-submit-large",
|
|
227
|
+
type: "submit",
|
|
228
|
+
label: e(t)("availability.buttonLabel"),
|
|
229
|
+
disabled: !A.value,
|
|
230
|
+
"is-loading": e(H)
|
|
231
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
232
|
+
])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 8, ["class"])
|
|
236
|
+
], 34));
|
|
237
|
+
}
|
|
238
|
+
}), Oe = /* @__PURE__ */ ae($e, [["__scopeId", "data-v-f353ec4a"]]), Ce = { class: "availability-skeleton" }, Se = {
|
|
239
|
+
key: 0,
|
|
240
|
+
class: "availability-skeleton-navigation"
|
|
241
|
+
}, Ue = { class: "availability-skeleton-content" }, Ie = {
|
|
242
|
+
key: 1,
|
|
243
|
+
class: "availability-skeleton-event"
|
|
244
|
+
}, Be = /* @__PURE__ */ ee({
|
|
245
|
+
__name: "AvailabilitySkeleton",
|
|
246
|
+
props: {
|
|
247
|
+
view: { default: "hotel" },
|
|
248
|
+
hotel: { type: Boolean, default: !1 }
|
|
249
|
+
},
|
|
250
|
+
setup(d) {
|
|
251
|
+
return (t, _) => (n(), r("div", Ce, [
|
|
252
|
+
t.view === "both" ? (n(), r("div", Se, [
|
|
253
|
+
u(Z, {
|
|
254
|
+
height: "28px",
|
|
255
|
+
width: "60px",
|
|
256
|
+
"border-radius": "20px"
|
|
257
|
+
}),
|
|
258
|
+
u(Z, {
|
|
259
|
+
height: "28px",
|
|
260
|
+
width: "60px",
|
|
261
|
+
"border-radius": "20px"
|
|
262
|
+
})
|
|
263
|
+
])) : y("", !0),
|
|
264
|
+
N("div", Ue, [
|
|
265
|
+
t.view !== "event" ? (n(), r("div", {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: $([
|
|
268
|
+
"availability-skeleton-hotel",
|
|
269
|
+
{ "within-hotel": t.hotel }
|
|
270
|
+
])
|
|
271
|
+
}, [
|
|
272
|
+
u(f, { "with-icon": "" }),
|
|
273
|
+
u(f, { "with-icon": "" }),
|
|
274
|
+
u(f, { "with-icon": "" }),
|
|
275
|
+
u(f, {
|
|
276
|
+
"with-icon": "",
|
|
277
|
+
"no-label": ""
|
|
278
|
+
})
|
|
279
|
+
], 2)) : (n(), r("div", Ie, [
|
|
280
|
+
u(f, { "with-icon": "" }),
|
|
281
|
+
u(f, {
|
|
282
|
+
"with-icon": "",
|
|
283
|
+
"no-label": ""
|
|
284
|
+
})
|
|
285
|
+
]))
|
|
286
|
+
])
|
|
287
|
+
]));
|
|
288
|
+
}
|
|
289
|
+
}), qe = /* @__PURE__ */ ae(Be, [["__scopeId", "data-v-17762b9b"]]);
|
|
290
|
+
export {
|
|
291
|
+
qe as A,
|
|
292
|
+
Oe as H
|
|
293
|
+
};
|
|
294
|
+
//# sourceMappingURL=AvailabilitySkeleton-TZiNrJ8t.js.map
|
|
Binary file
|