@konnectio/core 4.0.82 → 4.0.84
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-CLQbtAU7.js +100 -0
- package/dist/ActionField-CLQbtAU7.js.br +0 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js +309 -0
- package/dist/AvailabilitySkeleton-BJPo5KGW.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js} +1152 -1168
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js.br +0 -0
- package/dist/{CheckoutWindow-DoADcN36.js → CheckoutWindow-C9Sa3vci.js} +159 -174
- package/dist/CheckoutWindow-C9Sa3vci.js.br +0 -0
- package/dist/{ErrorMessage-BxZaXdig.js → ErrorMessage-D6rbHHXd.js} +20 -35
- package/dist/ErrorMessage-D6rbHHXd.js.br +0 -0
- package/dist/EventAvailabilityForm-D-Q1vxsm.js +110 -0
- package/dist/EventAvailabilityForm-D-Q1vxsm.js.br +0 -0
- package/dist/Field-CGT9JUe-.js +43 -0
- package/dist/Field-CGT9JUe-.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js} +2819 -2807
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js.br +0 -0
- package/dist/TermsOfService-DmwGAt0q.js +28 -0
- package/dist/_-YHi6ciVk.js +5 -0
- package/dist/_.vue_vue_type_style_index_0_lang-DeF9xZEQ.js +25 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/availability.js +54 -71
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +20 -36
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +398 -416
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +72 -89
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +175 -192
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-C-lmDpUB.js +118 -0
- package/dist/giftCard-C-lmDpUB.js.br +0 -0
- package/dist/hotel.js +1210 -1099
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-DDSHAjDQ.js → masonry.plugin-DL8uXS-9.js} +52 -68
- package/dist/masonry.plugin-DL8uXS-9.js.br +0 -0
- package/dist/mitt-B_elXQ2J.js +12437 -0
- package/dist/mitt-B_elXQ2J.js.br +0 -0
- package/dist/polyfill.js +4216 -7869
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-CT1Yk_a0.js → style-CDpCXUak.js} +391 -406
- package/dist/style-CDpCXUak.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +12 -15
- package/dist/ActionField-Mf3IO8Sg.js +0 -115
- package/dist/ActionField-Mf3IO8Sg.js.br +0 -0
- package/dist/AvailabilitySkeleton-D3xnLMQI.js +0 -296
- package/dist/AvailabilitySkeleton-D3xnLMQI.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js.br +0 -0
- package/dist/CheckoutWindow-DoADcN36.js.br +0 -0
- package/dist/ErrorMessage-BxZaXdig.js.br +0 -0
- package/dist/EventAvailabilityForm-Ctz8ENUN.js +0 -126
- package/dist/EventAvailabilityForm-Ctz8ENUN.js.br +0 -0
- package/dist/Field-Bg0N8Vc0.js +0 -58
- package/dist/Field-Bg0N8Vc0.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js.br +0 -0
- package/dist/TermsOfService-CWraQvoB.js +0 -44
- package/dist/TermsOfService-CWraQvoB.js.br +0 -4
- package/dist/_-BEZe3PAF.js +0 -20
- package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js +0 -40
- package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js.br +0 -0
- package/dist/_commonjsHelpers-C8ml6AyB.js +0 -25
- package/dist/_commonjsHelpers-C8ml6AyB.js.br +0 -0
- package/dist/_sentry-release-injection-file-8liCQLPI.js +0 -9501
- package/dist/_sentry-release-injection-file-8liCQLPI.js.br +0 -0
- package/dist/giftCard-sImOKdP0.js +0 -134
- package/dist/giftCard-sImOKdP0.js.br +0 -0
- package/dist/masonry.plugin-DDSHAjDQ.js.br +0 -0
- package/dist/mitt-CzL6QOyp.js +0 -2977
- package/dist/mitt-CzL6QOyp.js.br +0 -0
- package/dist/sentry-Cyc40KnT.js +0 -26
- package/dist/style-CT1Yk_a0.js.br +0 -0
- package/dist/tracing-6Srl_nMB.js +0 -2628
- package/dist/tracing-6Srl_nMB.js.br +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { d as c, c as m, a as d, b as i, w as V, e as v, i as t, f as q } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { A as g, n as k, b as B, T as I, c as C, p as A, _ as F } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
|
+
const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
|
|
4
|
+
__name: "ActionField",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {},
|
|
7
|
+
label: {},
|
|
8
|
+
buttonLabel: {},
|
|
9
|
+
buttonIcon: {},
|
|
10
|
+
buttonIconColor: {},
|
|
11
|
+
buttonDisabled: { type: Boolean, default: !1 },
|
|
12
|
+
secondary: { type: Boolean, default: !1 },
|
|
13
|
+
name: {},
|
|
14
|
+
id: {},
|
|
15
|
+
type: { default: "text" },
|
|
16
|
+
placeholder: {},
|
|
17
|
+
icon: {},
|
|
18
|
+
iconType: { default: "fal" },
|
|
19
|
+
required: { type: Boolean, default: !1 },
|
|
20
|
+
readonly: { type: Boolean, default: !1 },
|
|
21
|
+
data: {},
|
|
22
|
+
action: {},
|
|
23
|
+
minValue: {},
|
|
24
|
+
maxValue: {},
|
|
25
|
+
isLoading: { type: Boolean, default: !1 }
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue", "action"],
|
|
28
|
+
setup(y, { emit: b }) {
|
|
29
|
+
const s = b, u = y, o = u.id || g();
|
|
30
|
+
function r(e) {
|
|
31
|
+
s("update:modelValue", e);
|
|
32
|
+
}
|
|
33
|
+
const n = m({
|
|
34
|
+
get: () => u.modelValue,
|
|
35
|
+
set: (e) => r(e)
|
|
36
|
+
}), p = m({
|
|
37
|
+
get: () => u.modelValue,
|
|
38
|
+
set: (e) => r(e)
|
|
39
|
+
});
|
|
40
|
+
function f() {
|
|
41
|
+
s("action");
|
|
42
|
+
}
|
|
43
|
+
return (e, a) => (d(), i(A, {
|
|
44
|
+
label: e.label,
|
|
45
|
+
id: t(o),
|
|
46
|
+
icon: e.icon,
|
|
47
|
+
"icon-type": e.iconType,
|
|
48
|
+
required: e.required,
|
|
49
|
+
type: e.type,
|
|
50
|
+
readonly: e.readonly
|
|
51
|
+
}, {
|
|
52
|
+
default: V(() => [
|
|
53
|
+
v("div", L, [
|
|
54
|
+
e.type === "dropdown" && e.data ? (d(), i(k, {
|
|
55
|
+
key: 0,
|
|
56
|
+
modelValue: n.value,
|
|
57
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
58
|
+
id: t(o),
|
|
59
|
+
options: e.data,
|
|
60
|
+
name: e.name,
|
|
61
|
+
required: e.required,
|
|
62
|
+
placeholder: e.placeholder
|
|
63
|
+
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(B, {
|
|
64
|
+
key: 1,
|
|
65
|
+
modelValue: p.value,
|
|
66
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
|
|
67
|
+
id: t(o),
|
|
68
|
+
"min-value": e.minValue,
|
|
69
|
+
"max-value": e.maxValue
|
|
70
|
+
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(I, {
|
|
71
|
+
key: 2,
|
|
72
|
+
modelValue: n.value,
|
|
73
|
+
"onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
|
|
74
|
+
id: t(o),
|
|
75
|
+
name: e.name,
|
|
76
|
+
required: e.required,
|
|
77
|
+
placeholder: e.placeholder
|
|
78
|
+
}, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
|
|
79
|
+
q(C, {
|
|
80
|
+
"data-test": `${e.name}Submit`,
|
|
81
|
+
icon: e.buttonIcon,
|
|
82
|
+
label: e.buttonLabel,
|
|
83
|
+
"icon-color": e.buttonIconColor,
|
|
84
|
+
styling: e.action,
|
|
85
|
+
type: "button",
|
|
86
|
+
"is-loading": e.isLoading,
|
|
87
|
+
disabled: e.buttonDisabled,
|
|
88
|
+
secondary: e.secondary,
|
|
89
|
+
onClickEvent: a[3] || (a[3] = (l) => f())
|
|
90
|
+
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
95
|
+
}
|
|
96
|
+
}), w = /* @__PURE__ */ F(T, [["__scopeId", "data-v-3e77e321"]]);
|
|
97
|
+
export {
|
|
98
|
+
w as A
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=ActionField-CLQbtAU7.js.map
|
|
Binary file
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { d as te, u as De, Q as ke, x as V, r as g, c as u, H as K, o as he, a as n, g as d, f as s, w as we, i as a, b as D, j as k, e as S, n as N, E as _e, h as Ae } from "./mitt-B_elXQ2J.js";
|
|
2
|
+
import { u as W, x as X, a as Le, d as Ve, T as xe, n as Se, b as Z, c as ee, o as Ne, _ as le, E as ae } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BR0ZkskY.js";
|
|
3
|
+
import { _ as x } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAv6OSp6.js";
|
|
4
|
+
import { F as p } from "./Field-CGT9JUe-.js";
|
|
5
|
+
const Ce = {
|
|
6
|
+
class: "konnectio-availability-location",
|
|
7
|
+
key: "location"
|
|
8
|
+
}, Ue = {
|
|
9
|
+
id: "konnectio-availability-date-selection",
|
|
10
|
+
key: "multiDate"
|
|
11
|
+
}, $e = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "konnectio-availability-date-selection-multi"
|
|
14
|
+
}, Be = {
|
|
15
|
+
id: "konnectio-availability-guest-selection",
|
|
16
|
+
key: "guests"
|
|
17
|
+
}, He = {
|
|
18
|
+
id: "konnectio-availability-confirmation",
|
|
19
|
+
key: "confirm"
|
|
20
|
+
}, Re = /* @__PURE__ */ te({
|
|
21
|
+
__name: "HotelAvailabilityForm",
|
|
22
|
+
props: {
|
|
23
|
+
booking: { type: Boolean, default: !1 },
|
|
24
|
+
link: {},
|
|
25
|
+
selectedLocation: { default: NaN },
|
|
26
|
+
disableDefaultLocation: { type: Boolean, default: !1 }
|
|
27
|
+
},
|
|
28
|
+
setup(C) {
|
|
29
|
+
const { t: i } = De(), U = ke("emitter"), l = C, $ = W(), {
|
|
30
|
+
adults: oe,
|
|
31
|
+
children: ie,
|
|
32
|
+
arrivalDate: B,
|
|
33
|
+
departureDate: H,
|
|
34
|
+
location: R,
|
|
35
|
+
hasHotelLocations: f,
|
|
36
|
+
hotelLocations: F,
|
|
37
|
+
controlLocation: ne
|
|
38
|
+
} = V(W()), { fetchAvailabilityData: se } = X(), { areListingsLoading: I } = V(X()), { display: T } = Le(), {
|
|
39
|
+
firstSelectableDateOffset: E,
|
|
40
|
+
lastSelectableDateOffset: M,
|
|
41
|
+
disableChildSelection: v,
|
|
42
|
+
disableAdultSelection: m,
|
|
43
|
+
defaultAdultAmount: ue,
|
|
44
|
+
defaultChildAmount: ce,
|
|
45
|
+
maxAdultAmount: re,
|
|
46
|
+
maxChildAmount: de,
|
|
47
|
+
splitBookingCalendar: ve
|
|
48
|
+
} = V(Ve()), me = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), be = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), ge = () => l.disableDefaultLocation ? void 0 : ne.value, O = g(ue.value), j = g(ce.value), P = g(me()), z = g(be()), q = g(ge()), h = u({
|
|
49
|
+
get: () => l.booking ? $.adults : O.value,
|
|
50
|
+
set: (e) => {
|
|
51
|
+
l.booking ? oe.value = Number(e) : O.value = Number(e);
|
|
52
|
+
}
|
|
53
|
+
}), _ = u({
|
|
54
|
+
get: () => l.booking ? $.children : j.value,
|
|
55
|
+
set: (e) => {
|
|
56
|
+
l.booking ? ie.value = Number(e) : j.value = Number(e);
|
|
57
|
+
}
|
|
58
|
+
}), c = u({
|
|
59
|
+
get: () => l.booking ? B.value : P.value,
|
|
60
|
+
set: (e) => {
|
|
61
|
+
l.booking ? B.value = e : P.value = e;
|
|
62
|
+
}
|
|
63
|
+
}), r = u({
|
|
64
|
+
get: () => l.booking ? H.value : z.value,
|
|
65
|
+
set: (e) => {
|
|
66
|
+
l.booking ? H.value = e : z.value = e;
|
|
67
|
+
}
|
|
68
|
+
}), w = u({
|
|
69
|
+
get: () => isNaN(l.selectedLocation) ? l.booking ? R.value : q.value : l.selectedLocation,
|
|
70
|
+
set: (e) => {
|
|
71
|
+
l.booking ? R.value = e : q.value = e;
|
|
72
|
+
}
|
|
73
|
+
}), G = u(() => {
|
|
74
|
+
const e = F.value.find(({ id: t }) => t === l.selectedLocation);
|
|
75
|
+
return e ? e.name : "";
|
|
76
|
+
}), y = g([]), Q = u(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (E.value - 1)))), pe = u(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + M.value)));
|
|
77
|
+
u(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + E.value)));
|
|
78
|
+
const Y = u(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + (M.value + 1)))), A = u(() => !(!m && h.value === 0)), fe = u(() => typeof l.link != "string");
|
|
79
|
+
function J(e) {
|
|
80
|
+
const t = e.getFullYear();
|
|
81
|
+
let o = e.getMonth() + 1, b = e.getDate();
|
|
82
|
+
return b < 10 && (b = "0" + b), o < 10 && (o = "0" + o), `${t}-${o}-${b}`;
|
|
83
|
+
}
|
|
84
|
+
function L(e) {
|
|
85
|
+
const t = {
|
|
86
|
+
a: h.value.toString(),
|
|
87
|
+
c: _.value.toString(),
|
|
88
|
+
ci: J(c.value),
|
|
89
|
+
co: J(r.value),
|
|
90
|
+
hid: w.value.toString()
|
|
91
|
+
}, o = new URLSearchParams(t), b = new URL(e, window.location.origin);
|
|
92
|
+
b.search = o.toString(), window.location.replace(b.toString());
|
|
93
|
+
}
|
|
94
|
+
function ye() {
|
|
95
|
+
if (isNaN(w.value) && f.value) {
|
|
96
|
+
T({
|
|
97
|
+
message: i("alert.error.selectHotelId"),
|
|
98
|
+
type: "error"
|
|
99
|
+
});
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (l.booking === !1)
|
|
103
|
+
if (fe.value) {
|
|
104
|
+
const e = Ne();
|
|
105
|
+
l.link[e] ? L(l.link[e]) : l.link.en ? L(l.link.en) : T({
|
|
106
|
+
message: "Module misconfiguration, contact an admin",
|
|
107
|
+
type: "error"
|
|
108
|
+
});
|
|
109
|
+
} else
|
|
110
|
+
L(l.link);
|
|
111
|
+
else A.value && se();
|
|
112
|
+
}
|
|
113
|
+
return K(c, (e) => {
|
|
114
|
+
const t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
115
|
+
new Date(r.value) < t && (r.value = t);
|
|
116
|
+
}), U.on("forcedDateChange", () => {
|
|
117
|
+
y.value = [c.value, r.value];
|
|
118
|
+
}), K(y, (e) => {
|
|
119
|
+
c.value = e[0], r.value = e[1];
|
|
120
|
+
}), he(() => {
|
|
121
|
+
y.value = [c.value, r.value];
|
|
122
|
+
}), (e, t) => (n(), d("form", {
|
|
123
|
+
id: "konnectio-availability-form",
|
|
124
|
+
class: N({ reservation: e.booking }),
|
|
125
|
+
type: "availability",
|
|
126
|
+
onSubmit: Ae(ye, ["prevent"])
|
|
127
|
+
}, [
|
|
128
|
+
s(_e, {
|
|
129
|
+
id: "konnectio-availability-form-content",
|
|
130
|
+
tag: "ul",
|
|
131
|
+
class: N([
|
|
132
|
+
{ "is-booking-page": e.booking },
|
|
133
|
+
{ "only-adult-guests": !a(m) && a(v) },
|
|
134
|
+
{ "only-child-guests": !a(v) && a(m) },
|
|
135
|
+
{ "no-guests": a(m) && a(v) },
|
|
136
|
+
{ "all-guests": !a(m) && !a(v) },
|
|
137
|
+
{ "has-location": a(f) }
|
|
138
|
+
])
|
|
139
|
+
}, {
|
|
140
|
+
default: we(() => [
|
|
141
|
+
a(f) ? (n(), d("li", Ce, [
|
|
142
|
+
isNaN(e.selectedLocation) ? (n(), D(Se, {
|
|
143
|
+
key: 1,
|
|
144
|
+
modelValue: w.value,
|
|
145
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => w.value = o),
|
|
146
|
+
label: a(i)("general.location"),
|
|
147
|
+
placeholder: a(i)("general.locationPlaceholder"),
|
|
148
|
+
icon: "location-dot",
|
|
149
|
+
"icon-type": "fas",
|
|
150
|
+
"icon-placement": "label",
|
|
151
|
+
"label-key": "name",
|
|
152
|
+
"value-key": "id",
|
|
153
|
+
options: a(F),
|
|
154
|
+
searchable: !1
|
|
155
|
+
}, null, 8, ["modelValue", "label", "placeholder", "options"])) : (n(), D(xe, {
|
|
156
|
+
key: 0,
|
|
157
|
+
modelValue: G.value,
|
|
158
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => G.value = o),
|
|
159
|
+
label: a(i)("general.location"),
|
|
160
|
+
icon: "location-dot",
|
|
161
|
+
"icon-type": "fas",
|
|
162
|
+
"icon-placement": "label",
|
|
163
|
+
readonly: ""
|
|
164
|
+
}, null, 8, ["modelValue", "label"]))
|
|
165
|
+
])) : k("", !0),
|
|
166
|
+
S("li", Ue, [
|
|
167
|
+
a(ve) ? (n(), d("div", $e, [
|
|
168
|
+
s(x, {
|
|
169
|
+
modelValue: c.value,
|
|
170
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => c.value = o),
|
|
171
|
+
label: a(i)("availability.arrivalDate"),
|
|
172
|
+
name: "arrivalDate",
|
|
173
|
+
"icon-type": "fas",
|
|
174
|
+
"icon-placement": "label",
|
|
175
|
+
"start-date": c.value,
|
|
176
|
+
"min-date": Q.value,
|
|
177
|
+
"max-date": pe.value
|
|
178
|
+
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
|
|
179
|
+
s(x, {
|
|
180
|
+
modelValue: r.value,
|
|
181
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => r.value = o),
|
|
182
|
+
label: a(i)("availability.departureDate"),
|
|
183
|
+
name: "departureDate",
|
|
184
|
+
"icon-type": "fas",
|
|
185
|
+
"icon-placement": "label",
|
|
186
|
+
"start-date": r.value,
|
|
187
|
+
"min-date": c.value,
|
|
188
|
+
"max-date": Y.value
|
|
189
|
+
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
|
|
190
|
+
])) : (n(), D(x, {
|
|
191
|
+
key: 1,
|
|
192
|
+
modelValue: y.value,
|
|
193
|
+
"onUpdate:modelValue": t[4] || (t[4] = (o) => y.value = o),
|
|
194
|
+
label: a(i)("availability.checkInOut"),
|
|
195
|
+
"icon-type": "fas",
|
|
196
|
+
"icon-placement": "label",
|
|
197
|
+
"min-range": 1,
|
|
198
|
+
"min-date": Q.value,
|
|
199
|
+
"max-date": Y.value,
|
|
200
|
+
range: ""
|
|
201
|
+
}, null, 8, ["modelValue", "label", "min-date", "max-date"]))
|
|
202
|
+
]),
|
|
203
|
+
!a(m) || !a(v) ? (n(), d("li", Be, [
|
|
204
|
+
a(m) ? k("", !0) : (n(), D(Z, {
|
|
205
|
+
key: 0,
|
|
206
|
+
modelValue: h.value,
|
|
207
|
+
"onUpdate:modelValue": t[5] || (t[5] = (o) => h.value = o),
|
|
208
|
+
label: a(i)("availability.adults"),
|
|
209
|
+
description: a(i)("general.adultAgeRange"),
|
|
210
|
+
"icon-type": "fas",
|
|
211
|
+
"icon-placement": "label",
|
|
212
|
+
name: "adults",
|
|
213
|
+
icon: "male",
|
|
214
|
+
"max-value": a(re),
|
|
215
|
+
controls: !(a(f) && !a(v))
|
|
216
|
+
}, null, 8, ["modelValue", "label", "description", "max-value", "controls"])),
|
|
217
|
+
a(v) ? k("", !0) : (n(), D(Z, {
|
|
218
|
+
key: 1,
|
|
219
|
+
modelValue: _.value,
|
|
220
|
+
"onUpdate:modelValue": t[6] || (t[6] = (o) => _.value = o),
|
|
221
|
+
label: a(i)("availability.children"),
|
|
222
|
+
description: a(i)("general.childAgeRange"),
|
|
223
|
+
"icon-type": "fas",
|
|
224
|
+
"icon-placement": "label",
|
|
225
|
+
name: "children",
|
|
226
|
+
icon: "child",
|
|
227
|
+
"max-value": a(de),
|
|
228
|
+
controls: !a(f)
|
|
229
|
+
}, null, 8, ["modelValue", "label", "description", "max-value", "controls"]))
|
|
230
|
+
])) : k("", !0),
|
|
231
|
+
S("li", He, [
|
|
232
|
+
s(ee, {
|
|
233
|
+
class: "konnectio-availability-submit-small",
|
|
234
|
+
type: "submit",
|
|
235
|
+
icon: "search",
|
|
236
|
+
"icon-type": "fas",
|
|
237
|
+
disabled: !A.value,
|
|
238
|
+
"is-loading": a(I)
|
|
239
|
+
}, null, 8, ["disabled", "is-loading"]),
|
|
240
|
+
s(ee, {
|
|
241
|
+
class: "konnectio-availability-submit-large",
|
|
242
|
+
type: "submit",
|
|
243
|
+
label: a(i)("availability.buttonLabel"),
|
|
244
|
+
disabled: !A.value,
|
|
245
|
+
"is-loading": a(I)
|
|
246
|
+
}, null, 8, ["label", "disabled", "is-loading"])
|
|
247
|
+
])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["class"])
|
|
251
|
+
], 34));
|
|
252
|
+
}
|
|
253
|
+
}), qe = /* @__PURE__ */ le(Re, [["__scopeId", "data-v-db42c217"]]), Fe = { class: "availability-skeleton" }, Ie = {
|
|
254
|
+
key: 0,
|
|
255
|
+
class: "availability-skeleton-navigation"
|
|
256
|
+
}, Te = { class: "availability-skeleton-content" }, Ee = {
|
|
257
|
+
key: 1,
|
|
258
|
+
class: "availability-skeleton-event"
|
|
259
|
+
}, Me = /* @__PURE__ */ te({
|
|
260
|
+
__name: "AvailabilitySkeleton",
|
|
261
|
+
props: {
|
|
262
|
+
view: { default: "hotel" },
|
|
263
|
+
hotel: { type: Boolean, default: !1 }
|
|
264
|
+
},
|
|
265
|
+
setup(C) {
|
|
266
|
+
return (i, U) => (n(), d("div", Fe, [
|
|
267
|
+
i.view === "both" ? (n(), d("div", Ie, [
|
|
268
|
+
s(ae, {
|
|
269
|
+
height: "28px",
|
|
270
|
+
width: "60px",
|
|
271
|
+
"border-radius": "20px"
|
|
272
|
+
}),
|
|
273
|
+
s(ae, {
|
|
274
|
+
height: "28px",
|
|
275
|
+
width: "60px",
|
|
276
|
+
"border-radius": "20px"
|
|
277
|
+
})
|
|
278
|
+
])) : k("", !0),
|
|
279
|
+
S("div", Te, [
|
|
280
|
+
i.view !== "event" ? (n(), d("div", {
|
|
281
|
+
key: 0,
|
|
282
|
+
class: N([
|
|
283
|
+
"availability-skeleton-hotel",
|
|
284
|
+
{ "within-hotel": i.hotel }
|
|
285
|
+
])
|
|
286
|
+
}, [
|
|
287
|
+
s(p, { "with-icon": "" }),
|
|
288
|
+
s(p, { "with-icon": "" }),
|
|
289
|
+
s(p, { "with-icon": "" }),
|
|
290
|
+
s(p, {
|
|
291
|
+
"with-icon": "",
|
|
292
|
+
"no-label": ""
|
|
293
|
+
})
|
|
294
|
+
], 2)) : (n(), d("div", Ee, [
|
|
295
|
+
s(p, { "with-icon": "" }),
|
|
296
|
+
s(p, {
|
|
297
|
+
"with-icon": "",
|
|
298
|
+
"no-label": ""
|
|
299
|
+
})
|
|
300
|
+
]))
|
|
301
|
+
])
|
|
302
|
+
]));
|
|
303
|
+
}
|
|
304
|
+
}), Ge = /* @__PURE__ */ le(Me, [["__scopeId", "data-v-cebeb733"]]);
|
|
305
|
+
export {
|
|
306
|
+
Ge as A,
|
|
307
|
+
qe as H
|
|
308
|
+
};
|
|
309
|
+
//# sourceMappingURL=AvailabilitySkeleton-BJPo5KGW.js.map
|
|
Binary file
|