@konnectio/core 4.1.10 → 4.1.11
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-YcUnxCh1.js → ActionField-OJ0B_Rvq.js} +2 -2
- package/dist/ActionField-OJ0B_Rvq.js.br +0 -0
- package/dist/AvailabilitySkeleton-C6bsNxOH.js +320 -0
- package/dist/AvailabilitySkeleton-C6bsNxOH.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BOrZv7ED.js} +2 -2
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BOrZv7ED.js.br +0 -0
- package/dist/{CheckoutWindow-ET8OmnqK.js → CheckoutWindow-C7Sez05a.js} +2 -2
- package/dist/CheckoutWindow-C7Sez05a.js.br +0 -0
- package/dist/{ErrorMessage-CwQY7g9Q.js → ErrorMessage-BJIYUPxq.js} +2 -2
- package/dist/ErrorMessage-BJIYUPxq.js.br +0 -0
- package/dist/EventAvailabilityForm-BPl-K4R7.js +119 -0
- package/dist/EventAvailabilityForm-BPl-K4R7.js.br +0 -0
- package/dist/{Field-BdH4Sloj.js → Field-DrXN88nH.js} +3 -3
- package/dist/Field-DrXN88nH.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DJkXxXXq.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-yLLdxGIS.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js → SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js} +130 -130
- package/dist/SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js.br +0 -0
- package/dist/{TermsOfService-B4Xq6arX.js → TermsOfService-OiLRXZF3.js} +3 -3
- package/dist/_-WO7vPQFH.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-DCY7vATB.js → _.vue_vue_type_style_index_0_lang-Q0efa7Bu.js} +2 -2
- package/dist/availability.js +37 -33
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/event.js +104 -102
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-vJLJWCwZ.js → giftCard-5wAI4XEl.js} +2 -2
- package/dist/giftCard-5wAI4XEl.js.br +0 -0
- package/dist/hotel.js +374 -373
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CglHU-ya.js → masonry.plugin-D19pwBpH.js} +5 -5
- package/dist/masonry.plugin-D19pwBpH.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/package.json +4 -4
- package/dist/ActionField-YcUnxCh1.js.br +0 -0
- package/dist/AvailabilitySkeleton-CtypN7ad.js +0 -319
- package/dist/AvailabilitySkeleton-CtypN7ad.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js.br +0 -0
- package/dist/CheckoutWindow-ET8OmnqK.js.br +0 -0
- package/dist/ErrorMessage-CwQY7g9Q.js.br +0 -0
- package/dist/EventAvailabilityForm--R2UEx3o.js +0 -118
- package/dist/EventAvailabilityForm--R2UEx3o.js.br +0 -0
- package/dist/Field-BdH4Sloj.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js.br +0 -0
- package/dist/_-kF09E1Yd.js +0 -5
- package/dist/giftCard-vJLJWCwZ.js.br +0 -0
- package/dist/masonry.plugin-CglHU-ya.js.br +0 -0
package/dist/hotel.js.br
CHANGED
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as defineComponent, F as Fragment, O as Comment, P as Text, Q as h, R as getCurrentInstance, U as resolveComponent, r as ref, c as computed$1, D as watch, o as onMounted, h as createElementBlock, b as openBlock, a as createBlock, i as createCommentVNode, w as withCtx, A as renderList, e as createBaseVNode, j as withModifiers, f as createVNode, g as unref, n as normalizeClass, u as useI18n, s as storeToRefs, V as inject, J as resolveDirective, z as createSlots, E as withDirectives, t as toDisplayString, W as reactive, X as onUnmounted, Y as normalizeStyle, q as renderSlot, M as nextTick, G as vShow, v as createTextVNode, Z as mergeModels, x as useSlots, $ as useModel, T as Transition, y as isRef, _ as _mitt } from "./mitt-BysJOgFD.js";
|
|
2
|
-
import { I as Icon, _ as _export_sfc, b as useHotelStore, f as useEventStore, T as TextField, P as convertDescription, B as BookingLayout, h as useUtilityStore, q as capitalized, j as daysBetweenDates, n as showPrice, s as showDate, x as InputField, K as BookingHeaderLayout, N as emitter, w as getUserLanguage, y as useApplyGiftCardStore, e as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { B as Base$1, a as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-
|
|
4
|
-
import { A as ActionField } from "./ActionField-
|
|
5
|
-
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
2
|
+
import { I as Icon, _ as _export_sfc, b as useHotelStore, f as useEventStore, T as TextField, P as convertDescription, B as BookingLayout, h as useUtilityStore, q as capitalized, j as daysBetweenDates, n as showPrice, s as showDate, x as InputField, K as BookingHeaderLayout, N as emitter, w as getUserLanguage, y as useApplyGiftCardStore, e as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-vHXV3ehV.js";
|
|
3
|
+
import { B as Base$1, a as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-C7Sez05a.js";
|
|
4
|
+
import { A as ActionField } from "./ActionField-OJ0B_Rvq.js";
|
|
5
|
+
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-yLLdxGIS.js";
|
|
6
6
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -10735,4 +10735,4 @@ export {
|
|
|
10735
10735
|
StickyPlugin as a,
|
|
10736
10736
|
ListingSkeleton as b
|
|
10737
10737
|
};
|
|
10738
|
-
//# sourceMappingURL=masonry.plugin-
|
|
10738
|
+
//# sourceMappingURL=masonry.plugin-D19pwBpH.js.map
|
|
Binary file
|
package/dist/polyfill.js
CHANGED
|
@@ -10192,5 +10192,5 @@ R0();
|
|
|
10192
10192
|
S = new ResizeObserver(p), I = new MutationObserver(x), T();
|
|
10193
10193
|
}
|
|
10194
10194
|
})()();
|
|
10195
|
-
console.log("Konnectio production release: 4.1.
|
|
10195
|
+
console.log("Konnectio production release: 4.1.11");
|
|
10196
10196
|
//# sourceMappingURL=polyfill.js.map
|
package/dist/polyfill.js.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.11",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
|
|
5
5
|
"homepage": "https://konnectio.com",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@fortawesome/vue-fontawesome": "3.0.8",
|
|
47
47
|
"@intlify/unplugin-vue-i18n": "6.0.3",
|
|
48
48
|
"@types/leaflet": "1.9.16",
|
|
49
|
-
"@unhead/vue": "1.11.
|
|
49
|
+
"@unhead/vue": "1.11.19",
|
|
50
50
|
"@vuepic/vue-datepicker": "11.0.1",
|
|
51
51
|
"@vueuse/core": "12.7.0",
|
|
52
52
|
"axios": "1.7.9",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"linkifyjs": "4.2.0",
|
|
62
62
|
"mitt": "3.0.1",
|
|
63
63
|
"pinia": "3.0.1",
|
|
64
|
-
"postcss": "8.5.
|
|
64
|
+
"postcss": "8.5.2",
|
|
65
65
|
"recaptcha-v3": "1.11.3",
|
|
66
66
|
"regenerator-runtime": "0.14.1",
|
|
67
67
|
"resize-detector": "0.3.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"typescript": "5.7.3",
|
|
98
98
|
"vite": "6.1.0",
|
|
99
99
|
"vite-plugin-compression": "0.5.1",
|
|
100
|
-
"vue-tsc": "2.2.
|
|
100
|
+
"vue-tsc": "2.2.2"
|
|
101
101
|
},
|
|
102
102
|
"contributors": [
|
|
103
103
|
{
|
|
Binary file
|
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
import { d as ee, u as pe, s as Y, r as b, c as s, D as J, o as fe, h as m, b as r, f as n, w as ye, i as N, e as h, g as l, a as k, n as S, B as De, j as ke } from "./mitt-BysJOgFD.js";
|
|
2
|
-
import { u as K, b as he, a as we, h as Q, N as Le, T as Ve, d as _e, g as W, e as X, w as Ae, _ as ae } from "./SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js";
|
|
3
|
-
import { _ as x } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js";
|
|
4
|
-
import { E as Z } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DJkXxXXq.js";
|
|
5
|
-
import { F as g } from "./Field-BdH4Sloj.js";
|
|
6
|
-
const xe = {
|
|
7
|
-
class: "konnectio-availability-location",
|
|
8
|
-
key: "location"
|
|
9
|
-
}, Ne = {
|
|
10
|
-
id: "konnectio-availability-date-selection",
|
|
11
|
-
key: "multiDate"
|
|
12
|
-
}, Se = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "konnectio-availability-date-selection-multi"
|
|
15
|
-
}, Ce = {
|
|
16
|
-
class: "konnectio-availability-guest-selection",
|
|
17
|
-
key: "guests"
|
|
18
|
-
}, Ue = {
|
|
19
|
-
id: "konnectio-availability-confirmation",
|
|
20
|
-
key: "confirm"
|
|
21
|
-
}, $e = /* @__PURE__ */ ee({
|
|
22
|
-
__name: "HotelAvailabilityForm",
|
|
23
|
-
props: {
|
|
24
|
-
booking: { type: Boolean, default: !1 },
|
|
25
|
-
link: {},
|
|
26
|
-
selectedLocation: { default: NaN },
|
|
27
|
-
disableDefaultLocation: { type: Boolean, default: !1 }
|
|
28
|
-
},
|
|
29
|
-
setup(C) {
|
|
30
|
-
const { t: i } = pe(), t = C, U = K(), {
|
|
31
|
-
adults: te,
|
|
32
|
-
children: le,
|
|
33
|
-
arrivalDate: $,
|
|
34
|
-
departureDate: B,
|
|
35
|
-
location: H,
|
|
36
|
-
hasHotelLocations: w,
|
|
37
|
-
hotelLocations: R,
|
|
38
|
-
controlLocation: oe
|
|
39
|
-
} = Y(K()), L = he(), { display: y } = we(), {
|
|
40
|
-
firstSelectableDateOffset: F,
|
|
41
|
-
lastSelectableDateOffset: I,
|
|
42
|
-
defaultAdultAmount: ie,
|
|
43
|
-
defaultChildAmount: ne,
|
|
44
|
-
maxAdultAmount: se,
|
|
45
|
-
maxChildAmount: ue,
|
|
46
|
-
splitBookingCalendar: re
|
|
47
|
-
} = Y(Q()), { hasChildSelection: V } = Q(), ce = () => 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)), ve = () => t.disableDefaultLocation ? void 0 : oe.value, T = b(ie.value), M = b(ne.value), O = b(ce()), E = b(de()), P = b(ve()), p = s({
|
|
48
|
-
get: () => t.booking ? U.adults : T.value,
|
|
49
|
-
set: (e) => {
|
|
50
|
-
t.booking ? te.value = Number(e) : T.value = Number(e);
|
|
51
|
-
}
|
|
52
|
-
}), D = s({
|
|
53
|
-
get: () => t.booking ? U.children : M.value,
|
|
54
|
-
set: (e) => {
|
|
55
|
-
t.booking ? le.value = Number(e) : M.value = Number(e);
|
|
56
|
-
}
|
|
57
|
-
}), u = s({
|
|
58
|
-
get: () => t.booking ? $.value : O.value,
|
|
59
|
-
set: (e) => {
|
|
60
|
-
t.booking ? $.value = e : O.value = e;
|
|
61
|
-
}
|
|
62
|
-
}), c = s({
|
|
63
|
-
get: () => t.booking ? B.value : E.value,
|
|
64
|
-
set: (e) => {
|
|
65
|
-
t.booking ? B.value = e : E.value = e;
|
|
66
|
-
}
|
|
67
|
-
}), d = s({
|
|
68
|
-
get: () => isNaN(t.selectedLocation) ? t.booking ? H.value : P.value : t.selectedLocation,
|
|
69
|
-
set: (e) => {
|
|
70
|
-
t.booking ? H.value = e : P.value = e;
|
|
71
|
-
}
|
|
72
|
-
}), j = s(() => {
|
|
73
|
-
const e = R.value.find(({ id: a }) => a === t.selectedLocation);
|
|
74
|
-
return e ? e.name : "";
|
|
75
|
-
}), f = b([]), z = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (F.value - 1)))), me = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + I.value)));
|
|
76
|
-
s(() => new Date((/* @__PURE__ */ new Date()).setDate(u.value.getDate() + F.value)));
|
|
77
|
-
const q = s(() => new Date((/* @__PURE__ */ new Date()).setDate(u.value.getDate() + (I.value + 1)))), _ = s(() => p.value !== 0), be = s(() => typeof t.link != "string");
|
|
78
|
-
function G(e) {
|
|
79
|
-
const a = e.getFullYear();
|
|
80
|
-
let o = e.getMonth() + 1, v = e.getDate();
|
|
81
|
-
return v < 10 && (v = "0" + v), o < 10 && (o = "0" + o), `${a}-${o}-${v}`;
|
|
82
|
-
}
|
|
83
|
-
function A(e) {
|
|
84
|
-
const a = {
|
|
85
|
-
a: p.value.toString(),
|
|
86
|
-
c: D.value.toString(),
|
|
87
|
-
ci: G(u.value),
|
|
88
|
-
co: G(c.value),
|
|
89
|
-
hid: d.value.toString()
|
|
90
|
-
}, o = new URLSearchParams(a), v = new URL(e, window.location.origin);
|
|
91
|
-
v.search = o.toString(), window.location.replace(v.toString());
|
|
92
|
-
}
|
|
93
|
-
function ge() {
|
|
94
|
-
if (isNaN(d.value) && w.value) {
|
|
95
|
-
y({
|
|
96
|
-
message: i("alert.error.selectHotelId"),
|
|
97
|
-
type: "error"
|
|
98
|
-
});
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
if (isNaN(p.value)) {
|
|
102
|
-
y({
|
|
103
|
-
message: i("alert.error.selectValidAdults"),
|
|
104
|
-
type: "error"
|
|
105
|
-
});
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
if (isNaN(D.value)) {
|
|
109
|
-
y({
|
|
110
|
-
message: i("alert.error.selectValidChildren"),
|
|
111
|
-
type: "error"
|
|
112
|
-
});
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
if (t.booking === !1)
|
|
116
|
-
if (be.value) {
|
|
117
|
-
const e = Ae();
|
|
118
|
-
t.link[e] ? A(t.link[e]) : t.link.en ? A(t.link.en) : y({
|
|
119
|
-
message: "Module misconfiguration, contact an admin",
|
|
120
|
-
type: "error"
|
|
121
|
-
});
|
|
122
|
-
} else
|
|
123
|
-
A(t.link);
|
|
124
|
-
else _.value && L.fetchAvailabilityData();
|
|
125
|
-
}
|
|
126
|
-
return J(u, (e) => {
|
|
127
|
-
const a = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
128
|
-
new Date(c.value) < a && (c.value = a);
|
|
129
|
-
}), Le.on("forcedDateChange", () => {
|
|
130
|
-
f.value = [u.value, c.value];
|
|
131
|
-
}), J(f, (e) => {
|
|
132
|
-
u.value = e[0], c.value = e[1];
|
|
133
|
-
}), fe(() => {
|
|
134
|
-
f.value = [u.value, c.value];
|
|
135
|
-
}), (e, a) => (r(), m("form", {
|
|
136
|
-
id: "konnectio-availability-form",
|
|
137
|
-
class: S({ reservation: e.booking }),
|
|
138
|
-
type: "availability",
|
|
139
|
-
onSubmit: ke(ge, ["prevent"])
|
|
140
|
-
}, [
|
|
141
|
-
n(De, {
|
|
142
|
-
id: "konnectio-availability-form-content",
|
|
143
|
-
tag: "ul",
|
|
144
|
-
class: S([
|
|
145
|
-
{ "is-booking-page": e.booking },
|
|
146
|
-
{ "only-adult-guests": !l(V)(d.value) },
|
|
147
|
-
{ "all-guests": l(V)(d.value) },
|
|
148
|
-
{ "has-location": l(w) }
|
|
149
|
-
])
|
|
150
|
-
}, {
|
|
151
|
-
default: ye(() => [
|
|
152
|
-
l(w) ? (r(), m("li", xe, [
|
|
153
|
-
isNaN(e.selectedLocation) ? (r(), k(_e, {
|
|
154
|
-
key: 1,
|
|
155
|
-
modelValue: d.value,
|
|
156
|
-
"onUpdate:modelValue": a[1] || (a[1] = (o) => d.value = o),
|
|
157
|
-
label: l(i)("general.location"),
|
|
158
|
-
placeholder: l(i)("general.locationPlaceholder"),
|
|
159
|
-
icon: "location-dot",
|
|
160
|
-
"icon-type": "fas",
|
|
161
|
-
"icon-placement": "label",
|
|
162
|
-
"label-key": "name",
|
|
163
|
-
"value-key": "id",
|
|
164
|
-
options: l(R),
|
|
165
|
-
searchable: !1
|
|
166
|
-
}, null, 8, ["modelValue", "label", "placeholder", "options"])) : (r(), k(Ve, {
|
|
167
|
-
key: 0,
|
|
168
|
-
modelValue: j.value,
|
|
169
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => j.value = o),
|
|
170
|
-
label: l(i)("general.location"),
|
|
171
|
-
icon: "location-dot",
|
|
172
|
-
"icon-type": "fas",
|
|
173
|
-
"icon-placement": "label",
|
|
174
|
-
readonly: ""
|
|
175
|
-
}, null, 8, ["modelValue", "label"]))
|
|
176
|
-
])) : N("", !0),
|
|
177
|
-
h("li", Ne, [
|
|
178
|
-
l(re) ? (r(), m("div", Se, [
|
|
179
|
-
n(x, {
|
|
180
|
-
modelValue: u.value,
|
|
181
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) => u.value = o),
|
|
182
|
-
label: l(i)("availability.arrivalDate"),
|
|
183
|
-
name: "arrivalDate",
|
|
184
|
-
"icon-type": "fas",
|
|
185
|
-
"icon-placement": "label",
|
|
186
|
-
"start-date": u.value,
|
|
187
|
-
"min-date": z.value,
|
|
188
|
-
"max-date": me.value
|
|
189
|
-
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
|
|
190
|
-
n(x, {
|
|
191
|
-
modelValue: c.value,
|
|
192
|
-
"onUpdate:modelValue": a[3] || (a[3] = (o) => c.value = o),
|
|
193
|
-
label: l(i)("availability.departureDate"),
|
|
194
|
-
name: "departureDate",
|
|
195
|
-
"icon-type": "fas",
|
|
196
|
-
"icon-placement": "label",
|
|
197
|
-
"start-date": c.value,
|
|
198
|
-
"min-date": u.value,
|
|
199
|
-
"max-date": q.value
|
|
200
|
-
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
|
|
201
|
-
])) : (r(), k(x, {
|
|
202
|
-
key: 1,
|
|
203
|
-
modelValue: f.value,
|
|
204
|
-
"onUpdate:modelValue": a[4] || (a[4] = (o) => f.value = o),
|
|
205
|
-
label: l(i)("availability.checkInOut"),
|
|
206
|
-
"icon-type": "fas",
|
|
207
|
-
"icon-placement": "label",
|
|
208
|
-
"min-range": 1,
|
|
209
|
-
"min-date": z.value,
|
|
210
|
-
"max-date": q.value,
|
|
211
|
-
range: ""
|
|
212
|
-
}, null, 8, ["modelValue", "label", "min-date", "max-date"]))
|
|
213
|
-
]),
|
|
214
|
-
h("li", Ce, [
|
|
215
|
-
n(W, {
|
|
216
|
-
modelValue: p.value,
|
|
217
|
-
"onUpdate:modelValue": a[5] || (a[5] = (o) => p.value = o),
|
|
218
|
-
label: l(i)("availability.adults"),
|
|
219
|
-
description: l(i)("general.adultAgeRange"),
|
|
220
|
-
"icon-type": "fas",
|
|
221
|
-
"icon-placement": "label",
|
|
222
|
-
name: "adults",
|
|
223
|
-
icon: "male",
|
|
224
|
-
"max-value": l(se),
|
|
225
|
-
controls: !0
|
|
226
|
-
}, null, 8, ["modelValue", "label", "description", "max-value"]),
|
|
227
|
-
l(V)(d.value) ? (r(), k(W, {
|
|
228
|
-
key: 0,
|
|
229
|
-
modelValue: D.value,
|
|
230
|
-
"onUpdate:modelValue": a[6] || (a[6] = (o) => D.value = o),
|
|
231
|
-
label: l(i)("availability.children"),
|
|
232
|
-
description: l(i)("general.childAgeRange"),
|
|
233
|
-
"icon-type": "fas",
|
|
234
|
-
"icon-placement": "label",
|
|
235
|
-
name: "children",
|
|
236
|
-
icon: "child",
|
|
237
|
-
"max-value": l(ue),
|
|
238
|
-
controls: !0
|
|
239
|
-
}, null, 8, ["modelValue", "label", "description", "max-value"])) : N("", !0)
|
|
240
|
-
]),
|
|
241
|
-
h("li", Ue, [
|
|
242
|
-
n(X, {
|
|
243
|
-
class: "konnectio-availability-submit-small",
|
|
244
|
-
type: "submit",
|
|
245
|
-
icon: "search",
|
|
246
|
-
"icon-type": "fas",
|
|
247
|
-
disabled: !_.value,
|
|
248
|
-
"is-loading": l(L).areListingsLoading
|
|
249
|
-
}, null, 8, ["disabled", "is-loading"]),
|
|
250
|
-
n(X, {
|
|
251
|
-
class: "konnectio-availability-submit-large",
|
|
252
|
-
type: "submit",
|
|
253
|
-
label: l(i)("availability.buttonLabel"),
|
|
254
|
-
disabled: !_.value,
|
|
255
|
-
"is-loading": l(L).areListingsLoading
|
|
256
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
257
|
-
])
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
}, 8, ["class"])
|
|
261
|
-
], 34));
|
|
262
|
-
}
|
|
263
|
-
}), je = /* @__PURE__ */ ae($e, [["__scopeId", "data-v-98b9b536"]]), Be = { class: "availability-skeleton" }, He = {
|
|
264
|
-
key: 0,
|
|
265
|
-
class: "availability-skeleton-navigation"
|
|
266
|
-
}, Re = { class: "availability-skeleton-content" }, Fe = {
|
|
267
|
-
key: 1,
|
|
268
|
-
class: "availability-skeleton-event"
|
|
269
|
-
}, Ie = /* @__PURE__ */ ee({
|
|
270
|
-
__name: "AvailabilitySkeleton",
|
|
271
|
-
props: {
|
|
272
|
-
view: { default: "hotel" },
|
|
273
|
-
hotel: { type: Boolean, default: !1 }
|
|
274
|
-
},
|
|
275
|
-
setup(C) {
|
|
276
|
-
return (i, t) => (r(), m("div", Be, [
|
|
277
|
-
i.view === "both" ? (r(), m("div", He, [
|
|
278
|
-
n(Z, {
|
|
279
|
-
height: "28px",
|
|
280
|
-
width: "60px",
|
|
281
|
-
"border-radius": "20px"
|
|
282
|
-
}),
|
|
283
|
-
n(Z, {
|
|
284
|
-
height: "28px",
|
|
285
|
-
width: "60px",
|
|
286
|
-
"border-radius": "20px"
|
|
287
|
-
})
|
|
288
|
-
])) : N("", !0),
|
|
289
|
-
h("div", Re, [
|
|
290
|
-
i.view !== "event" ? (r(), m("div", {
|
|
291
|
-
key: 0,
|
|
292
|
-
class: S([
|
|
293
|
-
"availability-skeleton-hotel",
|
|
294
|
-
{ "within-hotel": i.hotel }
|
|
295
|
-
])
|
|
296
|
-
}, [
|
|
297
|
-
n(g, { "with-icon": "" }),
|
|
298
|
-
n(g, { "with-icon": "" }),
|
|
299
|
-
n(g, { "with-icon": "" }),
|
|
300
|
-
n(g, {
|
|
301
|
-
"with-icon": "",
|
|
302
|
-
"no-label": ""
|
|
303
|
-
})
|
|
304
|
-
], 2)) : (r(), m("div", Fe, [
|
|
305
|
-
n(g, { "with-icon": "" }),
|
|
306
|
-
n(g, {
|
|
307
|
-
"with-icon": "",
|
|
308
|
-
"no-label": ""
|
|
309
|
-
})
|
|
310
|
-
]))
|
|
311
|
-
])
|
|
312
|
-
]));
|
|
313
|
-
}
|
|
314
|
-
}), ze = /* @__PURE__ */ ae(Ie, [["__scopeId", "data-v-86730e88"]]);
|
|
315
|
-
export {
|
|
316
|
-
ze as A,
|
|
317
|
-
je as H
|
|
318
|
-
};
|
|
319
|
-
//# sourceMappingURL=AvailabilitySkeleton-CtypN7ad.js.map
|
|
Binary file
|
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { d as B, s as D, u as T, r as g, c as s, h as u, b as n, f as d, w as U, i as h, g as o, F as S, a as V, B as x, j as z, n as I } from "./mitt-BysJOgFD.js";
|
|
2
|
-
import { u as _, f as $, T as j, d as G, e as M, w as R, _ as q } from "./SelectField.vue_vue_type_style_index_0_lang-CsniNK66.js";
|
|
3
|
-
import { _ as H } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-DFi1PQJG.js";
|
|
4
|
-
const J = {
|
|
5
|
-
class: "konnectio-search-button",
|
|
6
|
-
key: "search"
|
|
7
|
-
}, K = /* @__PURE__ */ B({
|
|
8
|
-
__name: "EventAvailabilityForm",
|
|
9
|
-
props: {
|
|
10
|
-
redirection: { type: Boolean, default: !0 },
|
|
11
|
-
link: {},
|
|
12
|
-
selectedLocation: { default: NaN }
|
|
13
|
-
},
|
|
14
|
-
setup(N) {
|
|
15
|
-
const a = N, {
|
|
16
|
-
eventLocation: m,
|
|
17
|
-
eventLocations: v,
|
|
18
|
-
hasEventLocations: f,
|
|
19
|
-
eventLocationControl: C,
|
|
20
|
-
eventDate: p
|
|
21
|
-
} = D(_()), { updateEventAvailability: E } = _(), { fetchListings: b } = $(), { t: i } = T(), k = g(C.value), y = g(/* @__PURE__ */ new Date()), c = s({
|
|
22
|
-
get: () => a.redirection ? k.value : m.value,
|
|
23
|
-
set: (e) => {
|
|
24
|
-
a.redirection ? k.value = Number(e) : m.value = Number(e);
|
|
25
|
-
}
|
|
26
|
-
}), r = s({
|
|
27
|
-
get: () => a.redirection ? y.value : p.value,
|
|
28
|
-
set: (e) => {
|
|
29
|
-
a.redirection ? y.value = e : p.value = e;
|
|
30
|
-
}
|
|
31
|
-
}), F = s(() => typeof a.link != "string"), L = s(() => {
|
|
32
|
-
const e = v.value.find(({ id: t }) => t === a.selectedLocation);
|
|
33
|
-
return e ? e.name : "";
|
|
34
|
-
});
|
|
35
|
-
function A() {
|
|
36
|
-
if (a.redirection === !0)
|
|
37
|
-
if (E({
|
|
38
|
-
date: r.value,
|
|
39
|
-
location: c.value
|
|
40
|
-
}), F.value) {
|
|
41
|
-
const e = R();
|
|
42
|
-
a.link[e] ? window.location.replace(a.link[e]) : a.link.en && window.location.replace(a.link.en);
|
|
43
|
-
} else
|
|
44
|
-
window.location.replace(a.link);
|
|
45
|
-
else
|
|
46
|
-
b();
|
|
47
|
-
}
|
|
48
|
-
function w() {
|
|
49
|
-
a.redirection === !1 && b();
|
|
50
|
-
}
|
|
51
|
-
return (e, t) => (n(), u("form", {
|
|
52
|
-
class: I([
|
|
53
|
-
"konnectio-event-search-form",
|
|
54
|
-
{ "has-locations": o(f) },
|
|
55
|
-
{ "auto-search": !e.redirection }
|
|
56
|
-
]),
|
|
57
|
-
onSubmit: z(A, ["prevent"])
|
|
58
|
-
}, [
|
|
59
|
-
d(x, {
|
|
60
|
-
class: "konnectio-event-search-form-content",
|
|
61
|
-
tag: "ul"
|
|
62
|
-
}, {
|
|
63
|
-
default: U(() => [
|
|
64
|
-
o(f) ? (n(), u(S, { key: 0 }, [
|
|
65
|
-
isNaN(e.selectedLocation) ? (n(), V(G, {
|
|
66
|
-
modelValue: c.value,
|
|
67
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) => c.value = l),
|
|
68
|
-
key: "location",
|
|
69
|
-
label: o(i)("general.location"),
|
|
70
|
-
icon: "location-dot",
|
|
71
|
-
"icon-type": "fas",
|
|
72
|
-
"icon-placement": "label",
|
|
73
|
-
"label-key": "name",
|
|
74
|
-
"value-key": "id",
|
|
75
|
-
options: o(v),
|
|
76
|
-
searchable: !1,
|
|
77
|
-
onChanged: w
|
|
78
|
-
}, null, 8, ["modelValue", "label", "options"])) : (n(), V(j, {
|
|
79
|
-
key: 0,
|
|
80
|
-
modelValue: L.value,
|
|
81
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => L.value = l),
|
|
82
|
-
label: o(i)("general.location"),
|
|
83
|
-
icon: "location-dot",
|
|
84
|
-
"icon-type": "fas",
|
|
85
|
-
"icon-placement": "label",
|
|
86
|
-
readonly: ""
|
|
87
|
-
}, null, 8, ["modelValue", "label"]))
|
|
88
|
-
], 64)) : h("", !0),
|
|
89
|
-
d(H, {
|
|
90
|
-
modelValue: r.value,
|
|
91
|
-
"onUpdate:modelValue": [
|
|
92
|
-
t[2] || (t[2] = (l) => r.value = l),
|
|
93
|
-
w
|
|
94
|
-
],
|
|
95
|
-
key: "date",
|
|
96
|
-
label: o(i)("event.selectDate"),
|
|
97
|
-
"icon-type": "fas",
|
|
98
|
-
"icon-placement": "label",
|
|
99
|
-
"include-weekday": !0,
|
|
100
|
-
"min-date": /* @__PURE__ */ new Date()
|
|
101
|
-
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
102
|
-
e.redirection === !0 ? (n(), u("li", J, [
|
|
103
|
-
d(M, {
|
|
104
|
-
type: "submit",
|
|
105
|
-
label: o(i)("availability.buttonLabel"),
|
|
106
|
-
"full-width": ""
|
|
107
|
-
}, null, 8, ["label"])
|
|
108
|
-
])) : h("", !0)
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
})
|
|
112
|
-
], 34));
|
|
113
|
-
}
|
|
114
|
-
}), W = /* @__PURE__ */ q(K, [["__scopeId", "data-v-b9a580d6"]]);
|
|
115
|
-
export {
|
|
116
|
-
W as E
|
|
117
|
-
};
|
|
118
|
-
//# sourceMappingURL=EventAvailabilityForm--R2UEx3o.js.map
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/_-kF09E1Yd.js
DELETED
|
Binary file
|
|
Binary file
|