@konnectio/core 4.0.55 → 4.0.56-rc10
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/README.md +7 -7
- package/dist/{ActionField-89f587d4.js → ActionField-1TedZ-ol.js} +10 -12
- package/dist/ActionField-1TedZ-ol.js.br +0 -0
- package/dist/AvailabilitySkeleton-IRkVJKVI.js +214 -0
- package/dist/AvailabilitySkeleton-IRkVJKVI.js.br +0 -0
- package/dist/{CheckoutWindow-df8612e3.js → CheckoutWindow-GzqBHFb5.js} +37 -34
- package/dist/CheckoutWindow-GzqBHFb5.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-bbaed106.js → DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js} +2664 -2660
- package/dist/DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js.br +0 -0
- package/dist/Field-agqP-A21.js +42 -0
- package/dist/Field-agqP-A21.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js → SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js} +10010 -9879
- package/dist/SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js.br +0 -0
- package/dist/{ThankYou-159b55d6.js → ThankYou-0uAYL16f.js} +2318 -1988
- package/dist/ThankYou-0uAYL16f.js.br +0 -0
- package/dist/_-K1FuFdRs.js +19 -0
- package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-2ufMB8rV.js} +2 -2
- package/dist/availability.js +135 -112
- package/dist/availability.js.br +0 -0
- package/dist/{event-6cd5d9be.js → event-Jiun7WTg.js} +23 -23
- package/dist/event-Jiun7WTg.js.br +0 -0
- package/dist/event.js +448 -425
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +80 -67
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +281 -261
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel-7JmuavEN.js +3108 -0
- package/dist/hotel-7JmuavEN.js.br +0 -0
- package/dist/hotel.js +12 -3093
- package/dist/polyfill.js +3032 -3065
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +33 -25
- package/dist/ActionField-087c3437.cjs +0 -1
- package/dist/ActionField-89f587d4.js.br +0 -0
- package/dist/AvailabilitySkeleton-01aab3cb.js +0 -237
- package/dist/AvailabilitySkeleton-01aab3cb.js.br +0 -0
- package/dist/AvailabilitySkeleton-452df88c.cjs +0 -1
- package/dist/CheckoutWindow-1d77f68c.cjs +0 -1
- package/dist/CheckoutWindow-df8612e3.js.br +0 -0
- package/dist/Container-3af1f7f7.cjs +0 -1
- package/dist/Container-9f1ed24c.js +0 -59
- package/dist/Container-9f1ed24c.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-b5676dde.cjs +0 -2
- package/dist/DateField.vue_vue_type_style_index_0_lang-bbaed106.js.br +0 -0
- package/dist/Field-43273ca2.cjs +0 -1
- package/dist/Field-92684198.js +0 -42
- package/dist/Field-92684198.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a149d388.cjs +0 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js +0 -67
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-ce6f0b17.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-11cea6ba.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-b1435f5a.cjs +0 -856
- package/dist/ThankYou-159b55d6.js.br +0 -0
- package/dist/ThankYou-c1cbecac.cjs +0 -59
- package/dist/_-52440760.js +0 -20
- package/dist/_-fbbc271a.cjs +0 -1
- package/dist/_commonjsHelpers-6763f629.cjs +0 -1
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.cjs +0 -2
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -5
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -5
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -5
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -5
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -4
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -4
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -5
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -5
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -4
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -5
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -5
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -4
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -5
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -6
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -4
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -5
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -5
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -5
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -5
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -5
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -5
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -5
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -5
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -5
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -6
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -5
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -5
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -5
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -6
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -5
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -5
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -5
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -5
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -5
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -5
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -5
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -5
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -5
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -5
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -5
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -5
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -5
- 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 -2
- package/dist/entries/gift-card.d.ts +0 -1
- package/dist/entries/hotel.d.ts +0 -0
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-6cd5d9be.js.br +0 -0
- package/dist/event-dfc9ed16.cjs +0 -1
- package/dist/event.cjs +0 -1
- package/dist/event.d.ts +0 -3
- package/dist/gift-card-validation.cjs +0 -1
- package/dist/gift-card-validation.d.ts +0 -3
- package/dist/gift-card.cjs +0 -1
- package/dist/gift-card.d.ts +0 -1
- package/dist/hotel.cjs +0 -19
- package/dist/hotel.d.ts +0 -1
- package/dist/hotel.js.br +0 -0
- 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.cjs +0 -1
- package/dist/navigation.d.ts +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.cjs +0 -4
- 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/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -365
- package/dist/types/index.d.ts +0 -968
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Konnectio Core Integration for Octopus PMS
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<a href="https://vuejs.org/"><img src="https://img.shields.io/badge/vue-3-brightgreen.svg"/></a>
|
|
@@ -50,13 +50,13 @@ The availability shortcode would most likely be inserted on the front page, and
|
|
|
50
50
|
The availability shortcode can be inserted anywhere on the wordpress site using the following name:
|
|
51
51
|
|
|
52
52
|
```
|
|
53
|
-
[
|
|
53
|
+
[konnectio-availability]
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
You can add custom properties to the availability shortcode like so:
|
|
57
57
|
|
|
58
58
|
```
|
|
59
|
-
[
|
|
59
|
+
[konnectio-availability panel-padding="24px"]
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
The availability shortcode supports the following properties (the default property settings are listed in the right side of the arrows):
|
|
@@ -95,7 +95,7 @@ The availability shortcode supports the following properties (the default proper
|
|
|
95
95
|
The hotel shortcode can be inserted anywhere on the wordpress site using the following name:
|
|
96
96
|
|
|
97
97
|
```
|
|
98
|
-
[
|
|
98
|
+
[konnectio-hotel]
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
The hotel shortcode supports the following properties:
|
|
@@ -139,7 +139,7 @@ The hotel shortcode supports the following properties:
|
|
|
139
139
|
The gift card shortcode can be inserted anywhere on the wordpress site using the following name:
|
|
140
140
|
|
|
141
141
|
```
|
|
142
|
-
[
|
|
142
|
+
[konnectio-gift-card]
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
The gift card shortcode supports the following properties:
|
|
@@ -182,7 +182,7 @@ The gift card shortcode supports the following properties:
|
|
|
182
182
|
The gift card validation shortcode can be inserted anywhere on the wordpress site using the following name:
|
|
183
183
|
|
|
184
184
|
```
|
|
185
|
-
[
|
|
185
|
+
[konnectio-gift-card-validation]
|
|
186
186
|
```
|
|
187
187
|
|
|
188
188
|
The gift card validation shortcode supports the following properties:
|
|
@@ -223,7 +223,7 @@ The gift card validation shortcode supports the following properties:
|
|
|
223
223
|
The event shortcode can be inserted anywhere on the wordpress site using the following name:
|
|
224
224
|
|
|
225
225
|
```
|
|
226
|
-
[
|
|
226
|
+
[konnectio-event]
|
|
227
227
|
```
|
|
228
228
|
|
|
229
229
|
The event validation shortcode supports the following properties:
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
|
|
3
|
-
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
1
|
+
import { k as c, v as V, f as m, o as d, m as i, w as v, x as q, y as g, z as t, A as k, T as B, p as I, C, I as A, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
|
|
2
|
+
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
4
3
|
__name: "ActionField",
|
|
5
4
|
props: {
|
|
6
5
|
modelValue: {},
|
|
@@ -37,10 +36,10 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
|
37
36
|
get: () => u.modelValue,
|
|
38
37
|
set: (e) => r(e)
|
|
39
38
|
});
|
|
40
|
-
function
|
|
39
|
+
function b() {
|
|
41
40
|
s("action");
|
|
42
41
|
}
|
|
43
|
-
return (e, a) => (d(), i(
|
|
42
|
+
return (e, a) => (d(), i(A, {
|
|
44
43
|
label: e.label,
|
|
45
44
|
id: t(o),
|
|
46
45
|
icon: e.icon,
|
|
@@ -60,14 +59,14 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
|
60
59
|
name: e.name,
|
|
61
60
|
required: e.required,
|
|
62
61
|
placeholder: e.placeholder
|
|
63
|
-
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(
|
|
62
|
+
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(k, {
|
|
64
63
|
key: 1,
|
|
65
64
|
modelValue: p.value,
|
|
66
65
|
"onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
|
|
67
66
|
id: t(o),
|
|
68
67
|
"min-value": e.minValue,
|
|
69
68
|
"max-value": e.maxValue
|
|
70
|
-
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(
|
|
69
|
+
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(B, {
|
|
71
70
|
key: 2,
|
|
72
71
|
modelValue: n.value,
|
|
73
72
|
"onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
|
|
@@ -76,7 +75,7 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
|
76
75
|
required: e.required,
|
|
77
76
|
placeholder: e.placeholder
|
|
78
77
|
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
79
|
-
|
|
78
|
+
I(C, {
|
|
80
79
|
"data-test": `${e.name}Submit`,
|
|
81
80
|
icon: e.buttonIcon,
|
|
82
81
|
label: e.buttonLabel,
|
|
@@ -86,15 +85,14 @@ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ b({
|
|
|
86
85
|
"is-loading": e.isLoading,
|
|
87
86
|
disabled: e.buttonDisabled,
|
|
88
87
|
secondary: e.secondary,
|
|
89
|
-
onClickEvent: a[3] || (a[3] = (l) =>
|
|
88
|
+
onClickEvent: a[3] || (a[3] = (l) => b())
|
|
90
89
|
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
91
90
|
])
|
|
92
91
|
]),
|
|
93
92
|
_: 1
|
|
94
93
|
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
95
94
|
}
|
|
96
|
-
});
|
|
97
|
-
const w = /* @__PURE__ */ A(T, [["__scopeId", "data-v-3e77e321"]]);
|
|
95
|
+
}), h = /* @__PURE__ */ F(T, [["__scopeId", "data-v-3e77e321"]]);
|
|
98
96
|
export {
|
|
99
|
-
|
|
97
|
+
h as A
|
|
100
98
|
};
|
|
Binary file
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { k as N, B as j, s as V, W as B, X as R, c as J, r as K, f as m, Y as C, Z as P, o as t, l as s, x as A, z as e, p as i, G as y, y as Q, n as v, $ as F, m as w, T as H, A as E, C as I, q as x, h as ee, _ as O } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
|
|
2
|
+
import { _ as ae } from "./DateField.vue_vue_type_style_index_0_lang-N7m8Y11B.js";
|
|
3
|
+
import { E as z } from "./_-K1FuFdRs.js";
|
|
4
|
+
import { F as p } from "./Field-agqP-A21.js";
|
|
5
|
+
const le = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "konnectio-availability-location"
|
|
8
|
+
}, te = { id: "fresh-booking-availability-date-selection" }, ie = {
|
|
9
|
+
key: 1,
|
|
10
|
+
id: "fresh-booking-availability-guest-selection"
|
|
11
|
+
}, ne = { id: "fresh-booking-availability-confirmation" }, oe = /* @__PURE__ */ N({
|
|
12
|
+
__name: "HotelAvailabilityForm",
|
|
13
|
+
props: {
|
|
14
|
+
booking: { type: Boolean, default: !1 },
|
|
15
|
+
link: {}
|
|
16
|
+
},
|
|
17
|
+
setup(S) {
|
|
18
|
+
const { t: a } = j(), d = S, {
|
|
19
|
+
adults: c,
|
|
20
|
+
children: r,
|
|
21
|
+
arrivalDate: f,
|
|
22
|
+
departureDate: g,
|
|
23
|
+
location: D,
|
|
24
|
+
isExpired: T
|
|
25
|
+
} = V(B()), { reset: q } = B(), { fetchAvailabilityData: G } = R(), { areListingsLoading: L, hotelList: M, hasHotelList: k } = V(R()), {
|
|
26
|
+
firstSelectableDateOffset: U,
|
|
27
|
+
lastSelectableDateOffset: $,
|
|
28
|
+
disableChildSelection: b,
|
|
29
|
+
disableAdultSelection: u
|
|
30
|
+
} = V(J()), h = K([]), W = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
|
|
31
|
+
m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + $.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + U.value)));
|
|
32
|
+
const X = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + ($.value + 1)))), _ = m(() => !(!u && c.value === 0)), Y = m(() => typeof d.link != "string");
|
|
33
|
+
function Z() {
|
|
34
|
+
if (d.booking === !1)
|
|
35
|
+
if (Y.value) {
|
|
36
|
+
const n = ee();
|
|
37
|
+
d.link[n] ? window.location.replace(d.link[n]) : d.link.en ? window.location.replace(d.link.en) : console.log("Sprog understøttes ikke");
|
|
38
|
+
} else
|
|
39
|
+
window.location.replace(d.link);
|
|
40
|
+
else
|
|
41
|
+
_.value && G();
|
|
42
|
+
}
|
|
43
|
+
return C(f, (n) => {
|
|
44
|
+
const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
|
|
45
|
+
new Date(g.value) < l && (g.value = l);
|
|
46
|
+
}), C(h, (n) => {
|
|
47
|
+
f.value = n[0], g.value = n[1];
|
|
48
|
+
}), P(() => {
|
|
49
|
+
T.value && q(), h.value = [f.value, g.value];
|
|
50
|
+
}), (n, l) => (t(), s("form", {
|
|
51
|
+
id: "konnectio-availability-form",
|
|
52
|
+
class: x({ reservation: n.booking }),
|
|
53
|
+
type: "availability",
|
|
54
|
+
onSubmit: Z
|
|
55
|
+
}, [
|
|
56
|
+
A("ul", {
|
|
57
|
+
id: "konnectio-availability-form-content",
|
|
58
|
+
class: x([
|
|
59
|
+
{ "is-booking-page": n.booking },
|
|
60
|
+
{ "only-adult-guests": !e(u) && e(b) },
|
|
61
|
+
{ "only-child-guests": !e(b) && e(u) },
|
|
62
|
+
{ "no-guests": e(u) && e(b) },
|
|
63
|
+
{ "all-guests": !e(u) && !e(b) },
|
|
64
|
+
{ "has-location": e(k) }
|
|
65
|
+
])
|
|
66
|
+
}, [
|
|
67
|
+
e(k) ? (t(), s("li", le, [
|
|
68
|
+
i(Q, {
|
|
69
|
+
modelValue: e(D),
|
|
70
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => y(D) ? D.value = o : null),
|
|
71
|
+
label: e(a)("general.location"),
|
|
72
|
+
icon: "location-dot",
|
|
73
|
+
"icon-type": "fas",
|
|
74
|
+
"icon-placement": "label",
|
|
75
|
+
options: e(M),
|
|
76
|
+
searchable: !1
|
|
77
|
+
}, null, 8, ["modelValue", "label", "options"])
|
|
78
|
+
])) : v("", !0),
|
|
79
|
+
A("li", te, [
|
|
80
|
+
i(ae, {
|
|
81
|
+
modelValue: h.value,
|
|
82
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
|
|
83
|
+
label: e(a)("availability.checkInOut"),
|
|
84
|
+
"icon-type": "fas",
|
|
85
|
+
"icon-placement": "label",
|
|
86
|
+
"min-range": 1,
|
|
87
|
+
"min-date": W.value,
|
|
88
|
+
"max-date": X.value,
|
|
89
|
+
range: ""
|
|
90
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]),
|
|
91
|
+
v("", !0)
|
|
92
|
+
]),
|
|
93
|
+
!e(u) || !e(b) ? (t(), s("li", ie, [
|
|
94
|
+
e(u) ? v("", !0) : (t(), s(F, { key: 0 }, [
|
|
95
|
+
e(k) ? (t(), w(H, {
|
|
96
|
+
key: 0,
|
|
97
|
+
modelValue: e(c),
|
|
98
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => y(c) ? c.value = o : null),
|
|
99
|
+
label: e(a)("availability.adults"),
|
|
100
|
+
description: e(a)("general.adultAgeRange"),
|
|
101
|
+
"icon-type": "fas",
|
|
102
|
+
"icon-placement": "label",
|
|
103
|
+
name: "adults",
|
|
104
|
+
icon: "male"
|
|
105
|
+
}, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
|
|
106
|
+
key: 1,
|
|
107
|
+
modelValue: e(c),
|
|
108
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => y(c) ? c.value = o : null),
|
|
109
|
+
label: e(a)("availability.adults"),
|
|
110
|
+
description: e(a)("general.adultAgeRange"),
|
|
111
|
+
"icon-type": "fas",
|
|
112
|
+
"icon-placement": "label",
|
|
113
|
+
name: "adults",
|
|
114
|
+
icon: "male"
|
|
115
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
116
|
+
], 64)),
|
|
117
|
+
e(b) ? v("", !0) : (t(), s(F, { key: 1 }, [
|
|
118
|
+
e(k) ? (t(), w(H, {
|
|
119
|
+
key: 0,
|
|
120
|
+
modelValue: e(r),
|
|
121
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => y(r) ? r.value = o : null),
|
|
122
|
+
label: e(a)("availability.children"),
|
|
123
|
+
description: e(a)("general.childAgeRange"),
|
|
124
|
+
"icon-type": "fas",
|
|
125
|
+
"icon-placement": "label",
|
|
126
|
+
name: "children",
|
|
127
|
+
icon: "child"
|
|
128
|
+
}, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
|
|
129
|
+
key: 1,
|
|
130
|
+
modelValue: e(r),
|
|
131
|
+
"onUpdate:modelValue": l[7] || (l[7] = (o) => y(r) ? r.value = o : null),
|
|
132
|
+
label: e(a)("availability.children"),
|
|
133
|
+
description: e(a)("general.childAgeRange"),
|
|
134
|
+
"icon-type": "fas",
|
|
135
|
+
"icon-placement": "label",
|
|
136
|
+
name: "children",
|
|
137
|
+
icon: "child"
|
|
138
|
+
}, null, 8, ["modelValue", "label", "description"]))
|
|
139
|
+
], 64))
|
|
140
|
+
])) : v("", !0),
|
|
141
|
+
A("li", ne, [
|
|
142
|
+
i(I, {
|
|
143
|
+
class: "konnectio-availability-submit-small",
|
|
144
|
+
type: "submit",
|
|
145
|
+
icon: "search",
|
|
146
|
+
"icon-type": "fas",
|
|
147
|
+
disabled: !_.value,
|
|
148
|
+
"is-loading": e(L)
|
|
149
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
150
|
+
i(I, {
|
|
151
|
+
class: "konnectio-availability-submit-large",
|
|
152
|
+
type: "submit",
|
|
153
|
+
label: e(a)("availability.buttonLabel"),
|
|
154
|
+
disabled: !_.value,
|
|
155
|
+
"is-loading": e(L)
|
|
156
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
157
|
+
])
|
|
158
|
+
], 2)
|
|
159
|
+
], 34));
|
|
160
|
+
}
|
|
161
|
+
}), ve = /* @__PURE__ */ O(oe, [["__scopeId", "data-v-d30ddefe"]]), se = { class: "availability-skeleton" }, de = {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: "availability-skeleton-navigation"
|
|
164
|
+
}, ce = {
|
|
165
|
+
key: 2,
|
|
166
|
+
class: "availability-skeleton-event"
|
|
167
|
+
}, ue = /* @__PURE__ */ N({
|
|
168
|
+
__name: "AvailabilitySkeleton",
|
|
169
|
+
props: {
|
|
170
|
+
view: { default: "hotel" },
|
|
171
|
+
hotel: { type: Boolean, default: !1 }
|
|
172
|
+
},
|
|
173
|
+
setup(S) {
|
|
174
|
+
return (a, d) => (t(), s("div", se, [
|
|
175
|
+
a.view === "both" ? (t(), s("div", de, [
|
|
176
|
+
i(z, {
|
|
177
|
+
height: "28px",
|
|
178
|
+
width: "60px",
|
|
179
|
+
"border-radius": "20px"
|
|
180
|
+
}),
|
|
181
|
+
i(z, {
|
|
182
|
+
height: "28px",
|
|
183
|
+
width: "60px",
|
|
184
|
+
"border-radius": "20px"
|
|
185
|
+
})
|
|
186
|
+
])) : v("", !0),
|
|
187
|
+
a.view !== "event" ? (t(), s("div", {
|
|
188
|
+
key: 1,
|
|
189
|
+
class: x([
|
|
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", ce, [
|
|
202
|
+
i(p, { "with-icon": "" }),
|
|
203
|
+
i(p, {
|
|
204
|
+
"with-icon": "",
|
|
205
|
+
"no-label": ""
|
|
206
|
+
})
|
|
207
|
+
]))
|
|
208
|
+
]));
|
|
209
|
+
}
|
|
210
|
+
}), fe = /* @__PURE__ */ O(ue, [["__scopeId", "data-v-be195a3f"]]);
|
|
211
|
+
export {
|
|
212
|
+
fe as A,
|
|
213
|
+
ve as H
|
|
214
|
+
};
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
const O = { class: "fresh-booking-phone-input" },
|
|
1
|
+
import { k as b, v as k, r as V, Z as $, o as p, m as B, w as I, x as d, p as C, z as i, T as P, I as T, _ as v, ai as A, q as h, aj as _, ak as w, l as g, F as u, n as q, B as N, a8 as f, s as F, c as G, al as j, P as z, Q as E } from "./SelectField.vue_vue_type_style_index_0_lang-Throo8e2.js";
|
|
2
|
+
const O = { class: "fresh-booking-phone-input" }, U = /* @__PURE__ */ b({
|
|
3
3
|
__name: "PhoneField",
|
|
4
4
|
props: {
|
|
5
5
|
modelValue: {},
|
|
@@ -15,25 +15,25 @@ const O = { class: "fresh-booking-phone-input" }, R = /* @__PURE__ */ g({
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue"],
|
|
17
17
|
setup(a, { emit: l }) {
|
|
18
|
-
const t = l, n = a, c = n.id || k(), e =
|
|
18
|
+
const t = l, n = a, c = n.id || k(), e = V("+45"), s = V("");
|
|
19
19
|
function m() {
|
|
20
20
|
t("update:modelValue", `${e.value} ${s.value}`);
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return $(() => {
|
|
23
23
|
if (n.modelValue) {
|
|
24
24
|
const o = n.modelValue.split(" ");
|
|
25
25
|
e.value = o[0], s.value = o[1];
|
|
26
26
|
}
|
|
27
|
-
}), (o, r) => (p(),
|
|
27
|
+
}), (o, r) => (p(), B(T, {
|
|
28
28
|
label: o.label,
|
|
29
29
|
id: i(c),
|
|
30
30
|
type: "phone",
|
|
31
31
|
required: o.required,
|
|
32
32
|
readonly: o.readonly
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
34
|
+
default: I(() => [
|
|
35
35
|
d("div", O, [
|
|
36
|
-
|
|
36
|
+
C(P, {
|
|
37
37
|
modelValue: e.value,
|
|
38
38
|
"onUpdate:modelValue": r[0] || (r[0] = (y) => e.value = y),
|
|
39
39
|
type: "text",
|
|
@@ -49,7 +49,7 @@ const O = { class: "fresh-booking-phone-input" }, R = /* @__PURE__ */ g({
|
|
|
49
49
|
"input-style": o.inputStyle,
|
|
50
50
|
onInput: r[1] || (r[1] = (y) => m())
|
|
51
51
|
}, null, 8, ["modelValue", "id", "icon", "icon-color", "icon-type", "required", "readonly", "input-style"]),
|
|
52
|
-
|
|
52
|
+
C(P, {
|
|
53
53
|
modelValue: s.value,
|
|
54
54
|
"onUpdate:modelValue": r[2] || (r[2] = (y) => s.value = y),
|
|
55
55
|
type: "number",
|
|
@@ -67,8 +67,7 @@ const O = { class: "fresh-booking-phone-input" }, R = /* @__PURE__ */ g({
|
|
|
67
67
|
_: 1
|
|
68
68
|
}, 8, ["label", "id", "required", "readonly"]));
|
|
69
69
|
}
|
|
70
|
-
})
|
|
71
|
-
const x = /* @__PURE__ */ v(R, [["__scopeId", "data-v-5cd094ab"]]), U = ["required", "type", "name", "readonly", "disabled", "value", "checked"], W = ["data-test"], z = { key: 0 }, D = /* @__PURE__ */ g({
|
|
70
|
+
}), x = /* @__PURE__ */ v(U, [["__scopeId", "data-v-5cd094ab"]]), D = ["required", "type", "name", "readonly", "disabled", "value", "checked"], H = ["data-test"], K = { key: 0 }, M = /* @__PURE__ */ b({
|
|
72
71
|
__name: "Checkbox",
|
|
73
72
|
props: {
|
|
74
73
|
modelValue: { type: [String, Boolean, Number] },
|
|
@@ -92,12 +91,12 @@ const x = /* @__PURE__ */ v(R, [["__scopeId", "data-v-5cd094ab"]]), U = ["requir
|
|
|
92
91
|
t.type === "radio" ? t.val : t.numeric ? t.modelValue ? 0 : 1 : !t.modelValue
|
|
93
92
|
);
|
|
94
93
|
}
|
|
95
|
-
return (e, s) => (p(),
|
|
94
|
+
return (e, s) => (p(), B(T, {
|
|
96
95
|
required: e.required,
|
|
97
96
|
type: e.type,
|
|
98
97
|
readonly: e.readonly
|
|
99
98
|
}, {
|
|
100
|
-
default:
|
|
99
|
+
default: I(() => [
|
|
101
100
|
d("label", {
|
|
102
101
|
class: h([
|
|
103
102
|
"fresh-booking-click-box-container",
|
|
@@ -106,7 +105,7 @@ const x = /* @__PURE__ */ v(R, [["__scopeId", "data-v-5cd094ab"]]), U = ["requir
|
|
|
106
105
|
e.type === "radio" ? "radio" : "checkbox"
|
|
107
106
|
])
|
|
108
107
|
}, [
|
|
109
|
-
d("input",
|
|
108
|
+
d("input", A(e.$attrs, {
|
|
110
109
|
required: !!e.required,
|
|
111
110
|
type: e.type,
|
|
112
111
|
name: e.name,
|
|
@@ -116,44 +115,49 @@ const x = /* @__PURE__ */ v(R, [["__scopeId", "data-v-5cd094ab"]]), U = ["requir
|
|
|
116
115
|
value: e.type === "radio" ? e.val : e.modelValue,
|
|
117
116
|
checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue,
|
|
118
117
|
onChange: s[0] || (s[0] = (m) => c())
|
|
119
|
-
}), null, 16,
|
|
118
|
+
}), null, 16, D),
|
|
120
119
|
d("div", {
|
|
121
120
|
class: h([
|
|
122
121
|
"fresh-booking-click-box",
|
|
123
122
|
{ checked: e.type === "radio" ? e.val === e.modelValue : !!e.modelValue }
|
|
124
123
|
]),
|
|
125
124
|
tabindex: "0",
|
|
126
|
-
style:
|
|
125
|
+
style: _(e.inputStyle),
|
|
127
126
|
"data-test": e.name,
|
|
128
127
|
onKeyup: s[1] || (s[1] = w((m) => c(), ["enter"]))
|
|
129
|
-
}, null, 46,
|
|
130
|
-
e.label ? (p(),
|
|
128
|
+
}, null, 46, H),
|
|
129
|
+
e.label ? (p(), g("div", {
|
|
131
130
|
key: 0,
|
|
132
131
|
class: h(["fresh-booking-click-box-label", { "with-price": e.price }])
|
|
133
132
|
}, [
|
|
134
133
|
d("span", null, u(e.label), 1),
|
|
135
|
-
e.price ? (p(),
|
|
136
|
-
], 2)) :
|
|
134
|
+
e.price ? (p(), g("span", K, u(e.price), 1)) : q("", !0)
|
|
135
|
+
], 2)) : q("", !0)
|
|
137
136
|
], 2)
|
|
138
137
|
]),
|
|
139
138
|
_: 1
|
|
140
139
|
}, 8, ["required", "type", "readonly"]));
|
|
141
140
|
}
|
|
142
|
-
})
|
|
143
|
-
|
|
141
|
+
}), ee = /* @__PURE__ */ v(M, [["__scopeId", "data-v-7ef656cb"]]), R = {
|
|
142
|
+
href: "https://policies.google.com/privacy",
|
|
143
|
+
target: "_blank"
|
|
144
|
+
}, W = {
|
|
145
|
+
href: "https://policies.google.com/terms",
|
|
146
|
+
target: "_blank"
|
|
147
|
+
}, Q = /* @__PURE__ */ b({
|
|
144
148
|
__name: "GoogleNotice",
|
|
145
149
|
setup(a) {
|
|
146
150
|
const { t: l } = N();
|
|
147
|
-
return (t, n) => (p(),
|
|
151
|
+
return (t, n) => (p(), g("span", null, [
|
|
148
152
|
f(u(i(l)("googleNotice")) + " ", 1),
|
|
149
|
-
d("a",
|
|
153
|
+
d("a", R, u(i(l)("googlePrivacyPolicy")), 1),
|
|
150
154
|
f(" " + u(i(l)("googleAnd")) + " ", 1),
|
|
151
|
-
d("a",
|
|
155
|
+
d("a", W, u(i(l)("googleTOS")), 1),
|
|
152
156
|
f(" " + u(i(l)("googleApply")) + ". ", 1)
|
|
153
157
|
]));
|
|
154
158
|
}
|
|
155
159
|
});
|
|
156
|
-
function
|
|
160
|
+
function S(a) {
|
|
157
161
|
const l = a;
|
|
158
162
|
l.__i18n = l.__i18n || [], l.__i18n.push({
|
|
159
163
|
locale: "",
|
|
@@ -175,25 +179,24 @@ function q(a) {
|
|
|
175
179
|
}
|
|
176
180
|
});
|
|
177
181
|
}
|
|
178
|
-
typeof
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
],
|
|
182
|
+
typeof S == "function" && S(Q);
|
|
183
|
+
const Z = (a) => (z("data-v-340cb9ce"), a = a(), E(), a), J = /* @__PURE__ */ Z(() => /* @__PURE__ */ d("div", { id: "fresh-booking-payment-checkout" }, null, -1)), L = [
|
|
184
|
+
J
|
|
185
|
+
], X = /* @__PURE__ */ b({
|
|
182
186
|
__name: "CheckoutWindow",
|
|
183
187
|
setup(a) {
|
|
184
188
|
const { paymentGatewayId: l } = F(G());
|
|
185
|
-
return
|
|
189
|
+
return $(() => {
|
|
186
190
|
const t = document.createElement("script"), n = document.createElement("script");
|
|
187
191
|
t.setAttribute("src", "https://checkout.dibspayment.eu/v1/checkout.js?v=1"), n.setAttribute("src", "https://checkout.reepay.com/checkout.js"), document.head.appendChild(t), document.head.appendChild(n);
|
|
188
|
-
}), (t, n) => (p(),
|
|
192
|
+
}), (t, n) => (p(), g("div", null, [
|
|
189
193
|
d("div", {
|
|
190
194
|
id: "fresh-booking-payment-checkout-wrapper",
|
|
191
195
|
class: h({ reePay: i(l) === i(j).ReePay })
|
|
192
|
-
},
|
|
196
|
+
}, L, 2)
|
|
193
197
|
]));
|
|
194
198
|
}
|
|
195
|
-
});
|
|
196
|
-
const oe = /* @__PURE__ */ v(Y, [["__scopeId", "data-v-340cb9ce"]]);
|
|
199
|
+
}), oe = /* @__PURE__ */ v(X, [["__scopeId", "data-v-340cb9ce"]]);
|
|
197
200
|
export {
|
|
198
201
|
ee as C,
|
|
199
202
|
x as P,
|
|
Binary file
|