@konnectio/core 4.3.7 → 4.3.8
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-BsC9Ocw1.js → ActionField-D2RyWrS3.js} +32 -32
- package/dist/ActionField-D2RyWrS3.js.br +0 -0
- package/dist/ActionField-D2RyWrS3.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-BSayecfH.js → AvailabilitySkeleton-D6GPRc15.js} +83 -83
- package/dist/AvailabilitySkeleton-D6GPRc15.js.br +0 -0
- package/dist/AvailabilitySkeleton-D6GPRc15.js.gz +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DyhwbOIR.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js} +636 -636
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.gz +0 -0
- package/dist/{CheckoutWindow-Dsu7J2JM.js → CheckoutWindow-CbJ0uhN5.js} +250 -250
- package/dist/CheckoutWindow-CbJ0uhN5.js.br +0 -0
- package/dist/CheckoutWindow-CbJ0uhN5.js.gz +0 -0
- package/dist/{ErrorMessage-wq4rzUJ_.js → ErrorMessage-DaV41_Mx.js} +5 -5
- package/dist/ErrorMessage-DaV41_Mx.js.br +0 -0
- package/dist/ErrorMessage-DaV41_Mx.js.gz +0 -0
- package/dist/EventAvailabilityForm-CCV_-tAo.js +119 -0
- package/dist/EventAvailabilityForm-CCV_-tAo.js.br +0 -0
- package/dist/EventAvailabilityForm-CCV_-tAo.js.gz +0 -0
- package/dist/{Field-o8hQK9VW.js → Field-CcANI2PC.js} +15 -15
- package/dist/Field-CcANI2PC.js.br +0 -0
- package/dist/Field-CcANI2PC.js.gz +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CmIIjeeB.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js} +5 -5
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js.gz +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-zDjIIDU3.js → SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js} +3698 -3669
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js.gz +0 -0
- package/dist/TermsOfService-Cuz_W6Ps.js +28 -0
- package/dist/TermsOfService-Cuz_W6Ps.js.br +0 -0
- package/dist/TermsOfService-Cuz_W6Ps.js.gz +0 -0
- package/dist/_-Dy_VcQvP.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-JSCio5G8.js → _.vue_vue_type_style_index_0_lang-CP_-w1er.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-CP_-w1er.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CP_-w1er.js.gz +0 -0
- package/dist/availability.js +33 -33
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +32 -32
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/event.js +636 -636
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +48 -48
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +168 -168
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-CdLzbiLr.js → giftCard-CdHybquX.js} +3 -3
- package/dist/giftCard-CdHybquX.js.br +0 -0
- package/dist/giftCard-CdHybquX.js.gz +0 -0
- package/dist/hotel.js +2314 -2312
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{index-Bi5dgk5O.js → index-Cfpi2j0_.js} +46 -43
- package/dist/index-Cfpi2j0_.js.br +0 -0
- package/dist/index-Cfpi2j0_.js.gz +0 -0
- package/dist/{masonry.plugin-CD7BGwYC.js → masonry.plugin-BgwYAWoT.js} +961 -961
- package/dist/masonry.plugin-BgwYAWoT.js.br +0 -0
- package/dist/masonry.plugin-BgwYAWoT.js.gz +0 -0
- package/dist/{mitt-bGMsQrYA.js → mitt-478x9nh_.js} +3345 -3296
- package/dist/mitt-478x9nh_.js.br +0 -0
- package/dist/mitt-478x9nh_.js.gz +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-C4ivj8SO.js → style-DpAb9hNM.js} +2 -2
- package/dist/style-DpAb9hNM.js.br +0 -0
- package/dist/style-DpAb9hNM.js.gz +0 -0
- package/package.json +23 -23
- package/dist/ActionField-BsC9Ocw1.js.br +0 -5
- package/dist/ActionField-BsC9Ocw1.js.gz +0 -0
- package/dist/AvailabilitySkeleton-BSayecfH.js.br +0 -0
- package/dist/AvailabilitySkeleton-BSayecfH.js.gz +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DyhwbOIR.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DyhwbOIR.js.gz +0 -0
- package/dist/CheckoutWindow-Dsu7J2JM.js.br +0 -0
- package/dist/CheckoutWindow-Dsu7J2JM.js.gz +0 -0
- package/dist/ErrorMessage-wq4rzUJ_.js.br +0 -0
- package/dist/ErrorMessage-wq4rzUJ_.js.gz +0 -0
- package/dist/EventAvailabilityForm-CjiJZ89T.js +0 -119
- package/dist/EventAvailabilityForm-CjiJZ89T.js.br +0 -0
- package/dist/EventAvailabilityForm-CjiJZ89T.js.gz +0 -0
- package/dist/Field-o8hQK9VW.js.br +0 -0
- package/dist/Field-o8hQK9VW.js.gz +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CmIIjeeB.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CmIIjeeB.js.gz +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-zDjIIDU3.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-zDjIIDU3.js.gz +0 -0
- package/dist/TermsOfService-_5UMkvTm.js +0 -28
- package/dist/TermsOfService-_5UMkvTm.js.br +0 -0
- package/dist/TermsOfService-_5UMkvTm.js.gz +0 -0
- package/dist/_-Dv4fC4hQ.js +0 -5
- package/dist/_.vue_vue_type_style_index_0_lang-JSCio5G8.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-JSCio5G8.js.gz +0 -0
- package/dist/giftCard-CdLzbiLr.js.br +0 -0
- package/dist/giftCard-CdLzbiLr.js.gz +0 -0
- package/dist/index-Bi5dgk5O.js.br +0 -0
- package/dist/index-Bi5dgk5O.js.gz +0 -0
- package/dist/masonry.plugin-CD7BGwYC.js.br +0 -0
- package/dist/masonry.plugin-CD7BGwYC.js.gz +0 -0
- package/dist/mitt-bGMsQrYA.js.br +0 -0
- package/dist/mitt-bGMsQrYA.js.gz +0 -0
- package/dist/style-C4ivj8SO.js.br +0 -0
- package/dist/style-C4ivj8SO.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { H as g, x as k, d as B, i as I, T as C, e as T, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
const A = { class: "konnectio-action-field" }, L = /* @__PURE__ */
|
|
1
|
+
import { d as V, c as y, a as d, b as i, g as u, w as v, e as x, f as q } from "./mitt-478x9nh_.js";
|
|
2
|
+
import { H as g, x as k, d as B, i as I, T as C, e as T, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js";
|
|
3
|
+
const A = { class: "konnectio-action-field" }, L = /* @__PURE__ */ V({
|
|
4
4
|
__name: "ActionField",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -26,53 +26,53 @@ const A = { class: "konnectio-action-field" }, L = /* @__PURE__ */ c({
|
|
|
26
26
|
isLoading: { type: Boolean, default: !1 }
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:modelValue", "action"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
function
|
|
32
|
-
|
|
29
|
+
setup(e, { emit: f }) {
|
|
30
|
+
const m = f, c = e, n = c.id || g();
|
|
31
|
+
function s(l) {
|
|
32
|
+
m("update:modelValue", l);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
get: () =>
|
|
36
|
-
set: (
|
|
37
|
-
}),
|
|
38
|
-
get: () =>
|
|
39
|
-
set: (
|
|
34
|
+
const o = y({
|
|
35
|
+
get: () => c.modelValue,
|
|
36
|
+
set: (l) => s(l)
|
|
37
|
+
}), r = y({
|
|
38
|
+
get: () => c.modelValue,
|
|
39
|
+
set: (l) => s(l)
|
|
40
40
|
});
|
|
41
41
|
function b() {
|
|
42
|
-
|
|
42
|
+
m("action");
|
|
43
43
|
}
|
|
44
|
-
return (
|
|
44
|
+
return (l, a) => (i(), d(k, {
|
|
45
45
|
label: e.label,
|
|
46
|
-
id:
|
|
46
|
+
id: u(n),
|
|
47
47
|
icon: e.icon,
|
|
48
48
|
"icon-type": e.iconType,
|
|
49
49
|
required: e.required,
|
|
50
50
|
type: e.type,
|
|
51
51
|
readonly: e.readonly
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
e.type === "dropdown" && e.data ? (
|
|
53
|
+
default: v(() => [
|
|
54
|
+
x("div", A, [
|
|
55
|
+
e.type === "dropdown" && e.data ? (i(), d(B, {
|
|
56
56
|
key: 0,
|
|
57
|
-
modelValue:
|
|
58
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
59
|
-
id:
|
|
57
|
+
modelValue: o.value,
|
|
58
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => o.value = t),
|
|
59
|
+
id: u(n),
|
|
60
60
|
options: e.data,
|
|
61
61
|
name: e.name,
|
|
62
62
|
required: e.required,
|
|
63
63
|
placeholder: e.placeholder
|
|
64
|
-
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (
|
|
64
|
+
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (i(), d(I, {
|
|
65
65
|
key: 1,
|
|
66
|
-
modelValue:
|
|
67
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
68
|
-
id:
|
|
66
|
+
modelValue: r.value,
|
|
67
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => r.value = t),
|
|
68
|
+
id: u(n),
|
|
69
69
|
"min-value": e.minValue,
|
|
70
70
|
"max-value": e.maxValue
|
|
71
|
-
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (
|
|
71
|
+
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (i(), d(C, {
|
|
72
72
|
key: 2,
|
|
73
|
-
modelValue:
|
|
74
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
75
|
-
id:
|
|
73
|
+
modelValue: o.value,
|
|
74
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => o.value = t),
|
|
75
|
+
id: u(n),
|
|
76
76
|
type: e.inputType,
|
|
77
77
|
name: e.name,
|
|
78
78
|
required: e.required,
|
|
@@ -89,7 +89,7 @@ const A = { class: "konnectio-action-field" }, L = /* @__PURE__ */ c({
|
|
|
89
89
|
"is-loading": e.isLoading,
|
|
90
90
|
disabled: e.buttonDisabled,
|
|
91
91
|
secondary: e.secondary,
|
|
92
|
-
onClickEvent: a[3] || (a[3] = (
|
|
92
|
+
onClickEvent: a[3] || (a[3] = (t) => b())
|
|
93
93
|
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
94
94
|
])
|
|
95
95
|
]),
|
|
@@ -100,4 +100,4 @@ const A = { class: "konnectio-action-field" }, L = /* @__PURE__ */ c({
|
|
|
100
100
|
export {
|
|
101
101
|
U as A
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=ActionField-
|
|
103
|
+
//# sourceMappingURL=ActionField-D2RyWrS3.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as te, u as
|
|
2
|
-
import { u as X, b as we, a as Le, f as Z, P as Ve, T as
|
|
3
|
-
import { _
|
|
4
|
-
import { E as le } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
5
|
-
import { F as
|
|
1
|
+
import { d as te, u as pe, s as Q, r as g, c as s, D as W, o as ye, h as b, b as u, f as n, w as De, i as N, e as w, a as h, g as t, n as S, B as ke, j as he } from "./mitt-478x9nh_.js";
|
|
2
|
+
import { u as X, b as we, a as Le, f as Z, P as Ve, T as xe, d as Ae, i as ee, e as ae, w as _e, _ as oe } from "./SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js";
|
|
3
|
+
import { _ } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js";
|
|
4
|
+
import { E as le } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js";
|
|
5
|
+
import { F as f } from "./Field-CcANI2PC.js";
|
|
6
6
|
const Ne = {
|
|
7
7
|
class: "konnectio-availability-location",
|
|
8
8
|
key: "location"
|
|
@@ -27,8 +27,8 @@ const Ne = {
|
|
|
27
27
|
disableDefaultLocation: { type: Boolean, default: !1 },
|
|
28
28
|
hideLocations: { type: Boolean, default: !1 }
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const { t: i } =
|
|
30
|
+
setup(d) {
|
|
31
|
+
const { t: i } = pe(), a = d, C = X(), {
|
|
32
32
|
adults: ie,
|
|
33
33
|
children: ne,
|
|
34
34
|
arrivalDate: $,
|
|
@@ -37,7 +37,7 @@ const Ne = {
|
|
|
37
37
|
hasHotelLocations: H,
|
|
38
38
|
hotelLocations: R,
|
|
39
39
|
controlLocation: se
|
|
40
|
-
} = Q(X()),
|
|
40
|
+
} = Q(X()), L = we(), { display: D } = Le(), {
|
|
41
41
|
firstSelectableDateOffset: F,
|
|
42
42
|
lastSelectableDateOffset: I,
|
|
43
43
|
defaultAdultAmount: T,
|
|
@@ -45,12 +45,12 @@ const Ne = {
|
|
|
45
45
|
maxAdultAmount: ue,
|
|
46
46
|
maxChildAmount: re,
|
|
47
47
|
splitBookingCalendar: ce
|
|
48
|
-
} = Q(Z()), { hasChildSelection:
|
|
48
|
+
} = Q(Z()), { hasChildSelection: V } = Z(), de = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + F.value)).setHours(12, 0, 0, 0)), ve = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + F.value + 1)).setHours(12, 0, 0, 0)), me = () => a.disableDefaultLocation ? void 0 : se.value, O = g(T.value), P = g(M.value), E = g(de()), j = g(ve()), z = g(me()), p = s({
|
|
49
49
|
get: () => a.booking ? C.adults : O.value,
|
|
50
50
|
set: (e) => {
|
|
51
51
|
a.booking ? ie.value = Number(e) : O.value = Number(e);
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), k = s({
|
|
54
54
|
get: () => a.booking ? C.children : P.value,
|
|
55
55
|
set: (e) => {
|
|
56
56
|
a.booking ? ne.value = Number(e) : P.value = Number(e);
|
|
@@ -65,7 +65,7 @@ const Ne = {
|
|
|
65
65
|
set: (e) => {
|
|
66
66
|
a.booking ? U.value = e : j.value = e;
|
|
67
67
|
}
|
|
68
|
-
}),
|
|
68
|
+
}), v = s({
|
|
69
69
|
get: () => isNaN(a.selectedLocation) ? a.booking ? B.value : z.value : a.selectedLocation,
|
|
70
70
|
set: (e) => {
|
|
71
71
|
a.booking ? B.value = e : z.value = e;
|
|
@@ -73,86 +73,86 @@ const Ne = {
|
|
|
73
73
|
}), q = s(() => {
|
|
74
74
|
const e = R.value.find(({ id: l }) => l === a.selectedLocation);
|
|
75
75
|
return e ? e.name : "";
|
|
76
|
-
}), G = s(() => H.value && !a.hideLocations),
|
|
76
|
+
}), G = s(() => H.value && !a.hideLocations), y = g([]), Y = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate()))), be = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + I.value))), J = s(() => new Date((/* @__PURE__ */ new Date()).setDate(r.value.getDate() + (I.value + 1)))), x = s(() => p.value !== 0), ge = s(() => typeof a.link != "string");
|
|
77
77
|
function K(e) {
|
|
78
78
|
const l = e.getFullYear();
|
|
79
|
-
let o = e.getMonth() + 1,
|
|
80
|
-
return
|
|
79
|
+
let o = e.getMonth() + 1, m = e.getDate();
|
|
80
|
+
return m < 10 && (m = "0" + m), o < 10 && (o = "0" + o), `${l}-${o}-${m}`;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function A(e) {
|
|
83
83
|
const l = {
|
|
84
|
-
a:
|
|
85
|
-
c:
|
|
84
|
+
a: p.value.toString(),
|
|
85
|
+
c: k.value.toString(),
|
|
86
86
|
ci: K(r.value),
|
|
87
87
|
co: K(c.value),
|
|
88
|
-
hid:
|
|
89
|
-
}, o = new URLSearchParams(l),
|
|
90
|
-
|
|
88
|
+
hid: v.value.toString()
|
|
89
|
+
}, o = new URLSearchParams(l), m = new URL(e, window.location.origin);
|
|
90
|
+
m.search = o.toString(), window.location.replace(m.toString());
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
if (isNaN(
|
|
94
|
-
|
|
92
|
+
function fe() {
|
|
93
|
+
if (isNaN(v.value) && H.value) {
|
|
94
|
+
D({
|
|
95
95
|
message: i("alert.error.selectHotelId"),
|
|
96
96
|
type: "error"
|
|
97
97
|
});
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
if (isNaN(
|
|
101
|
-
|
|
100
|
+
if (isNaN(p.value)) {
|
|
101
|
+
D({
|
|
102
102
|
message: i("alert.error.selectValidAdults"),
|
|
103
103
|
type: "error"
|
|
104
104
|
});
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
if (isNaN(
|
|
108
|
-
|
|
107
|
+
if (isNaN(k.value)) {
|
|
108
|
+
D({
|
|
109
109
|
message: i("alert.error.selectValidChildren"),
|
|
110
110
|
type: "error"
|
|
111
111
|
});
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
if (a.booking === !1)
|
|
115
|
-
if (
|
|
116
|
-
const e =
|
|
117
|
-
a.link[e] ?
|
|
115
|
+
if (ge.value) {
|
|
116
|
+
const e = _e();
|
|
117
|
+
a.link[e] ? A(a.link[e]) : a.link.en ? A(a.link.en) : D({
|
|
118
118
|
message: "Module misconfiguration, contact an admin",
|
|
119
119
|
type: "error"
|
|
120
120
|
});
|
|
121
121
|
} else
|
|
122
|
-
|
|
123
|
-
else
|
|
122
|
+
A(a.link);
|
|
123
|
+
else x.value && L.fetchAvailabilityData();
|
|
124
124
|
}
|
|
125
125
|
return W(r, (e) => {
|
|
126
126
|
const l = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
127
127
|
new Date(c.value) < l && (c.value = l);
|
|
128
128
|
}), Ve.on("forcedDateChange", () => {
|
|
129
|
-
|
|
130
|
-
}), W(
|
|
129
|
+
y.value = [r.value, c.value];
|
|
130
|
+
}), W(y, (e) => {
|
|
131
131
|
r.value = e[0], c.value = e[1];
|
|
132
132
|
}), ye(() => {
|
|
133
|
-
|
|
134
|
-
}), (e, l) => (u(),
|
|
133
|
+
y.value = [r.value, c.value];
|
|
134
|
+
}), (e, l) => (u(), b("form", {
|
|
135
135
|
id: "konnectio-availability-form",
|
|
136
|
-
class:
|
|
136
|
+
class: S({ reservation: d.booking }),
|
|
137
137
|
type: "availability",
|
|
138
|
-
onSubmit: he(
|
|
138
|
+
onSubmit: he(fe, ["prevent"])
|
|
139
139
|
}, [
|
|
140
140
|
n(ke, {
|
|
141
141
|
id: "konnectio-availability-form-content",
|
|
142
142
|
tag: "ul",
|
|
143
|
-
class:
|
|
144
|
-
{ "is-booking-page":
|
|
145
|
-
{ "only-adult-guests": !t(
|
|
146
|
-
{ "all-guests": t(
|
|
143
|
+
class: S([
|
|
144
|
+
{ "is-booking-page": d.booking },
|
|
145
|
+
{ "only-adult-guests": !t(V)(v.value) },
|
|
146
|
+
{ "all-guests": t(V)(v.value) },
|
|
147
147
|
{ "has-location": G.value }
|
|
148
148
|
])
|
|
149
149
|
}, {
|
|
150
150
|
default: De(() => [
|
|
151
|
-
G.value ? (u(),
|
|
152
|
-
isNaN(
|
|
151
|
+
G.value ? (u(), b("li", Ne, [
|
|
152
|
+
isNaN(d.selectedLocation) ? (u(), h(Ae, {
|
|
153
153
|
key: 1,
|
|
154
|
-
modelValue:
|
|
155
|
-
"onUpdate:modelValue": l[1] || (l[1] = (o) =>
|
|
154
|
+
modelValue: v.value,
|
|
155
|
+
"onUpdate:modelValue": l[1] || (l[1] = (o) => v.value = o),
|
|
156
156
|
label: t(i)("general.location"),
|
|
157
157
|
placeholder: t(i)("general.locationPlaceholder"),
|
|
158
158
|
icon: "location-dot",
|
|
@@ -162,7 +162,7 @@ const Ne = {
|
|
|
162
162
|
"value-key": "id",
|
|
163
163
|
options: t(R),
|
|
164
164
|
searchable: !1
|
|
165
|
-
}, null, 8, ["modelValue", "label", "placeholder", "options"])) : (u(),
|
|
165
|
+
}, null, 8, ["modelValue", "label", "placeholder", "options"])) : (u(), h(xe, {
|
|
166
166
|
key: 0,
|
|
167
167
|
modelValue: q.value,
|
|
168
168
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => q.value = o),
|
|
@@ -172,10 +172,10 @@ const Ne = {
|
|
|
172
172
|
"icon-placement": "label",
|
|
173
173
|
readonly: ""
|
|
174
174
|
}, null, 8, ["modelValue", "label"]))
|
|
175
|
-
])) :
|
|
176
|
-
|
|
177
|
-
t(ce) ? (u(),
|
|
178
|
-
n(
|
|
175
|
+
])) : N("", !0),
|
|
176
|
+
w("li", Se, [
|
|
177
|
+
t(ce) ? (u(), b("div", Ce, [
|
|
178
|
+
n(_, {
|
|
179
179
|
modelValue: r.value,
|
|
180
180
|
"onUpdate:modelValue": l[2] || (l[2] = (o) => r.value = o),
|
|
181
181
|
label: t(i)("availability.arrivalDate"),
|
|
@@ -186,7 +186,7 @@ const Ne = {
|
|
|
186
186
|
"min-date": Y.value,
|
|
187
187
|
"max-date": be.value
|
|
188
188
|
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
|
|
189
|
-
n(
|
|
189
|
+
n(_, {
|
|
190
190
|
modelValue: c.value,
|
|
191
191
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => c.value = o),
|
|
192
192
|
label: t(i)("availability.departureDate"),
|
|
@@ -197,10 +197,10 @@ const Ne = {
|
|
|
197
197
|
"min-date": r.value,
|
|
198
198
|
"max-date": J.value
|
|
199
199
|
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
|
|
200
|
-
])) : (u(),
|
|
200
|
+
])) : (u(), h(_, {
|
|
201
201
|
key: 1,
|
|
202
|
-
modelValue:
|
|
203
|
-
"onUpdate:modelValue": l[4] || (l[4] = (o) =>
|
|
202
|
+
modelValue: y.value,
|
|
203
|
+
"onUpdate:modelValue": l[4] || (l[4] = (o) => y.value = o),
|
|
204
204
|
label: t(i)("availability.checkInOut"),
|
|
205
205
|
"icon-type": "fas",
|
|
206
206
|
"icon-placement": "label",
|
|
@@ -210,10 +210,10 @@ const Ne = {
|
|
|
210
210
|
range: ""
|
|
211
211
|
}, null, 8, ["modelValue", "label", "min-date", "max-date"]))
|
|
212
212
|
]),
|
|
213
|
-
|
|
213
|
+
w("li", $e, [
|
|
214
214
|
n(ee, {
|
|
215
|
-
modelValue:
|
|
216
|
-
"onUpdate:modelValue": l[5] || (l[5] = (o) =>
|
|
215
|
+
modelValue: p.value,
|
|
216
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => p.value = o),
|
|
217
217
|
label: t(i)("availability.adults"),
|
|
218
218
|
description: t(i)("general.adultAgeRange"),
|
|
219
219
|
"icon-type": "fas",
|
|
@@ -224,10 +224,10 @@ const Ne = {
|
|
|
224
224
|
placeholder: `${t(T)}`,
|
|
225
225
|
controls: !0
|
|
226
226
|
}, null, 8, ["modelValue", "label", "description", "max-value", "placeholder"]),
|
|
227
|
-
t(
|
|
227
|
+
t(V)(v.value) ? (u(), h(ee, {
|
|
228
228
|
key: 0,
|
|
229
|
-
modelValue:
|
|
230
|
-
"onUpdate:modelValue": l[6] || (l[6] = (o) =>
|
|
229
|
+
modelValue: k.value,
|
|
230
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => k.value = o),
|
|
231
231
|
label: t(i)("availability.children"),
|
|
232
232
|
description: t(i)("general.childAgeRange"),
|
|
233
233
|
"icon-type": "fas",
|
|
@@ -237,23 +237,23 @@ const Ne = {
|
|
|
237
237
|
"max-value": t(re),
|
|
238
238
|
placeholder: `${t(M)}`,
|
|
239
239
|
controls: !0
|
|
240
|
-
}, null, 8, ["modelValue", "label", "description", "max-value", "placeholder"])) :
|
|
240
|
+
}, null, 8, ["modelValue", "label", "description", "max-value", "placeholder"])) : N("", !0)
|
|
241
241
|
]),
|
|
242
|
-
|
|
242
|
+
w("li", Ue, [
|
|
243
243
|
n(ae, {
|
|
244
244
|
class: "konnectio-availability-submit-small",
|
|
245
245
|
type: "submit",
|
|
246
246
|
icon: "search",
|
|
247
247
|
"icon-type": "fas",
|
|
248
|
-
disabled: !
|
|
249
|
-
"is-loading": t(
|
|
248
|
+
disabled: !x.value,
|
|
249
|
+
"is-loading": t(L).areListingsLoading
|
|
250
250
|
}, null, 8, ["disabled", "is-loading"]),
|
|
251
251
|
n(ae, {
|
|
252
252
|
class: "konnectio-availability-submit-large",
|
|
253
253
|
type: "submit",
|
|
254
254
|
label: t(i)("availability.buttonLabel"),
|
|
255
|
-
disabled: !
|
|
256
|
-
"is-loading": t(
|
|
255
|
+
disabled: !x.value,
|
|
256
|
+
"is-loading": t(L).areListingsLoading
|
|
257
257
|
}, null, 8, ["label", "disabled", "is-loading"])
|
|
258
258
|
])
|
|
259
259
|
]),
|
|
@@ -273,9 +273,9 @@ const Ne = {
|
|
|
273
273
|
view: { default: "hotel" },
|
|
274
274
|
hotel: { type: Boolean, default: !1 }
|
|
275
275
|
},
|
|
276
|
-
setup(
|
|
277
|
-
return (i, a) => (u(),
|
|
278
|
-
|
|
276
|
+
setup(d) {
|
|
277
|
+
return (i, a) => (u(), b("div", He, [
|
|
278
|
+
d.view === "both" ? (u(), b("div", Re, [
|
|
279
279
|
n(le, {
|
|
280
280
|
height: "28px",
|
|
281
281
|
width: "60px",
|
|
@@ -286,25 +286,25 @@ const Ne = {
|
|
|
286
286
|
width: "60px",
|
|
287
287
|
"border-radius": "20px"
|
|
288
288
|
})
|
|
289
|
-
])) :
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
])) : N("", !0),
|
|
290
|
+
w("div", Fe, [
|
|
291
|
+
d.view !== "event" ? (u(), b("div", {
|
|
292
292
|
key: 0,
|
|
293
|
-
class:
|
|
293
|
+
class: S([
|
|
294
294
|
"availability-skeleton-hotel",
|
|
295
|
-
{ "within-hotel":
|
|
295
|
+
{ "within-hotel": d.hotel }
|
|
296
296
|
])
|
|
297
297
|
}, [
|
|
298
|
-
n(
|
|
299
|
-
n(
|
|
300
|
-
n(
|
|
301
|
-
n(
|
|
298
|
+
n(f, { "with-icon": "" }),
|
|
299
|
+
n(f, { "with-icon": "" }),
|
|
300
|
+
n(f, { "with-icon": "" }),
|
|
301
|
+
n(f, {
|
|
302
302
|
"with-icon": "",
|
|
303
303
|
"no-label": ""
|
|
304
304
|
})
|
|
305
|
-
], 2)) : (u(),
|
|
306
|
-
n(
|
|
307
|
-
n(
|
|
305
|
+
], 2)) : (u(), b("div", Ie, [
|
|
306
|
+
n(f, { "with-icon": "" }),
|
|
307
|
+
n(f, {
|
|
308
308
|
"with-icon": "",
|
|
309
309
|
"no-label": ""
|
|
310
310
|
})
|
|
@@ -317,4 +317,4 @@ export {
|
|
|
317
317
|
qe as A,
|
|
318
318
|
ze as H
|
|
319
319
|
};
|
|
320
|
-
//# sourceMappingURL=AvailabilitySkeleton-
|
|
320
|
+
//# sourceMappingURL=AvailabilitySkeleton-D6GPRc15.js.map
|
|
Binary file
|
|
Binary file
|