@konnectio/core 4.7.3 → 4.7.5
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-C5015jXn.js → ActionField-BSR_1wKe.js} +42 -42
- package/dist/ActionField-BSR_1wKe.js.br +0 -0
- package/dist/ActionField-BSR_1wKe.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-CIOBfx9I.js → AvailabilitySkeleton-DahKJsT-.js} +1660 -1660
- package/dist/AvailabilitySkeleton-DahKJsT-.js.br +0 -0
- package/dist/AvailabilitySkeleton-DahKJsT-.js.gz +0 -0
- package/dist/{CheckoutWindow-BCDXTHgl.js → CheckoutWindow-DWwmz8yv.js} +152 -152
- package/dist/CheckoutWindow-DWwmz8yv.js.br +0 -0
- package/dist/CheckoutWindow-DWwmz8yv.js.gz +0 -0
- package/dist/{ErrorMessage-2ujqsV0p.js → ErrorMessage-CiXnpywW.js} +13 -13
- package/dist/ErrorMessage-CiXnpywW.js.br +0 -0
- package/dist/ErrorMessage-CiXnpywW.js.gz +0 -0
- package/dist/EventAvailabilityForm-CkhgG14V.js +114 -0
- package/dist/EventAvailabilityForm-CkhgG14V.js.br +0 -0
- package/dist/EventAvailabilityForm-CkhgG14V.js.gz +0 -0
- package/dist/{Field-vW62GIDN.js → Field-BX_mv8fo.js} +7 -7
- package/dist/Field-BX_mv8fo.js.br +0 -0
- package/dist/Field-BX_mv8fo.js.gz +0 -0
- package/dist/HotelAvailabilityForm-B0apZ6dV.js +323 -0
- package/dist/HotelAvailabilityForm-B0apZ6dV.js.br +0 -0
- package/dist/HotelAvailabilityForm-B0apZ6dV.js.gz +0 -0
- package/dist/{SelectField-DttGt-nt.js → SelectField-O_sbbnII.js} +2651 -2613
- package/dist/SelectField-O_sbbnII.js.br +0 -0
- package/dist/SelectField-O_sbbnII.js.gz +0 -0
- package/dist/TermsOfService-CRw50Ij5.js +17 -0
- package/dist/TermsOfService-CRw50Ij5.js.br +0 -0
- package/dist/TermsOfService-CRw50Ij5.js.gz +4 -0
- package/dist/_-CQSZKAkn.js +25 -0
- package/dist/_-CQSZKAkn.js.br +0 -0
- package/dist/_-CQSZKAkn.js.gz +5 -0
- package/dist/availability.js +39 -39
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +71 -71
- 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 +17 -17
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-D4z_LE4H.js → dist-DG27dLYP.js} +17 -17
- package/dist/dist-DG27dLYP.js.br +0 -0
- package/dist/dist-DG27dLYP.js.gz +0 -0
- package/dist/event.js +390 -390
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +51 -51
- 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-BwmRapoq.js → giftCard-vF4EBRX1.js} +17 -17
- package/dist/giftCard-vF4EBRX1.js.br +0 -0
- package/dist/giftCard-vF4EBRX1.js.gz +0 -0
- package/dist/hotel.js +1479 -1479
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{mitt-DosBWi_E.js → i18n-DwFTw_rF.js} +1 -24
- package/dist/i18n-DwFTw_rF.js.br +0 -0
- package/dist/{mitt-DosBWi_E.js.gz → i18n-DwFTw_rF.js.gz} +0 -0
- package/dist/{masonry.plugin-DPJDEpE8.js → masonry.plugin-Cu4yg4ry.js} +34 -8
- package/dist/masonry.plugin-Cu4yg4ry.js.br +0 -0
- package/dist/masonry.plugin-Cu4yg4ry.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-DblOhid-.js → style-TnRMV-Vf.js} +389 -389
- package/dist/style-TnRMV-Vf.js.br +0 -0
- package/dist/style-TnRMV-Vf.js.gz +0 -0
- package/dist-wix/availability.js +22 -22
- package/dist-wix/event.js +6 -6
- package/dist-wix/gift-card-validation.js +18 -18
- package/dist-wix/gift-card.js +24 -24
- package/dist-wix/hotel.js +7 -7
- package/package.json +1 -3
- package/dist/ActionField-C5015jXn.js.br +0 -0
- package/dist/ActionField-C5015jXn.js.gz +0 -0
- package/dist/AvailabilitySkeleton-CIOBfx9I.js.br +0 -0
- package/dist/AvailabilitySkeleton-CIOBfx9I.js.gz +0 -0
- package/dist/CheckoutWindow-BCDXTHgl.js.br +0 -0
- package/dist/CheckoutWindow-BCDXTHgl.js.gz +0 -0
- package/dist/ErrorMessage-2ujqsV0p.js.br +0 -0
- package/dist/ErrorMessage-2ujqsV0p.js.gz +0 -0
- package/dist/EventAvailabilityForm-Bt-pGK7V.js +0 -114
- package/dist/EventAvailabilityForm-Bt-pGK7V.js.br +0 -0
- package/dist/EventAvailabilityForm-Bt-pGK7V.js.gz +0 -0
- package/dist/Field-vW62GIDN.js.br +0 -0
- package/dist/Field-vW62GIDN.js.gz +0 -3
- package/dist/HotelAvailabilityForm-DE1by6Fp.js +0 -323
- package/dist/HotelAvailabilityForm-DE1by6Fp.js.br +0 -0
- package/dist/HotelAvailabilityForm-DE1by6Fp.js.gz +0 -0
- package/dist/SelectField-DttGt-nt.js.br +0 -0
- package/dist/SelectField-DttGt-nt.js.gz +0 -0
- package/dist/TermsOfService-BGmsGLqu.js +0 -17
- package/dist/TermsOfService-BGmsGLqu.js.br +0 -0
- package/dist/TermsOfService-BGmsGLqu.js.gz +0 -0
- package/dist/_--csI0qIp.js +0 -22
- package/dist/_--csI0qIp.js.br +0 -0
- package/dist/_--csI0qIp.js.gz +0 -0
- package/dist/dist-D4z_LE4H.js.br +0 -0
- package/dist/dist-D4z_LE4H.js.gz +0 -0
- package/dist/giftCard-BwmRapoq.js.br +0 -0
- package/dist/giftCard-BwmRapoq.js.gz +0 -0
- package/dist/masonry.plugin-DPJDEpE8.js.br +0 -0
- package/dist/masonry.plugin-DPJDEpE8.js.gz +0 -0
- package/dist/mitt-DosBWi_E.js.br +0 -0
- package/dist/style-DblOhid-.js.br +0 -0
- package/dist/style-DblOhid-.js.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.5",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
|
|
5
5
|
"homepage": "https://konnectio.com",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"@flareapp/js": "2.6.0",
|
|
56
56
|
"@flareapp/vite": "2.6.0",
|
|
57
57
|
"@flareapp/vue": "2.6.0",
|
|
58
|
-
"@fortawesome/fontawesome-pro": "7.3.1",
|
|
59
58
|
"@fortawesome/fontawesome-svg-core": "7.3.1",
|
|
60
59
|
"@fortawesome/free-brands-svg-icons": "7.3.1",
|
|
61
60
|
"@fortawesome/pro-light-svg-icons": "7.3.1",
|
|
@@ -74,7 +73,6 @@
|
|
|
74
73
|
"leaflet": "1.9.4",
|
|
75
74
|
"leaflet.markercluster": "1.5.3",
|
|
76
75
|
"linkify-html": "4.3.3",
|
|
77
|
-
"mitt": "3.0.1",
|
|
78
76
|
"pinia": "4.0.2",
|
|
79
77
|
"postcss": "8.5.23",
|
|
80
78
|
"recaptcha-v3": "1.11.3",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { D as e, Dt as t, Et as n, M as r, O as i, P as a, T as o, Y as s, bt as c, dt as l, f as u, k as d, o as f, u as p, x as m, y as h } from "./mitt-DosBWi_E.js";
|
|
2
|
-
import { C as g, S as _, V as v, n as y, t as b, v as x, w as S } from "./SelectField-DttGt-nt.js";
|
|
3
|
-
import { n as C } from "./AvailabilitySkeleton-CIOBfx9I.js";
|
|
4
|
-
//#region src/components/forms/EventAvailabilityForm.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var w = {
|
|
6
|
-
class: "konnectio-search-button",
|
|
7
|
-
key: "search"
|
|
8
|
-
}, T = /*#__PURE__*/ _(/* @__PURE__ */ a({
|
|
9
|
-
__name: "EventAvailabilityForm",
|
|
10
|
-
props: {
|
|
11
|
-
redirection: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !0
|
|
14
|
-
},
|
|
15
|
-
link: {},
|
|
16
|
-
selectedLocation: { default: NaN },
|
|
17
|
-
hideLocations: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !1
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(a) {
|
|
23
|
-
let _ = a, { eventLocation: T, eventLocations: E, hasEventLocations: D, eventLocationControl: O, eventDate: k } = p(g()), { updateEventAvailability: A } = g(), { fetchListings: j } = S(), { t: M } = f(), N = c(O.value), P = c(/* @__PURE__ */ new Date()), F = o({
|
|
24
|
-
get: () => _.redirection ? N.value : T.value,
|
|
25
|
-
set: (e) => {
|
|
26
|
-
_.redirection ? N.value = Number(e) : T.value = Number(e);
|
|
27
|
-
}
|
|
28
|
-
}), I = o({
|
|
29
|
-
get: () => _.redirection ? P.value : k.value,
|
|
30
|
-
set: (e) => {
|
|
31
|
-
_.redirection ? P.value = e : k.value = e;
|
|
32
|
-
}
|
|
33
|
-
}), L = o(() => typeof _.link != "string"), R = o(() => {
|
|
34
|
-
let e = E.value.find(({ id: e }) => e === _.selectedLocation);
|
|
35
|
-
return e ? e.name : "";
|
|
36
|
-
}), z = o(() => D.value && !_.hideLocations);
|
|
37
|
-
function B() {
|
|
38
|
-
if (_.redirection === !0) if (A({
|
|
39
|
-
date: I.value,
|
|
40
|
-
location: F.value
|
|
41
|
-
}), L.value) {
|
|
42
|
-
let e = v();
|
|
43
|
-
_.link[e] ? window.location.replace(_.link[e]) : _.link.en && window.location.replace(_.link.en);
|
|
44
|
-
} else window.location.replace(_.link);
|
|
45
|
-
else j();
|
|
46
|
-
}
|
|
47
|
-
function V() {
|
|
48
|
-
_.redirection === !1 && j();
|
|
49
|
-
}
|
|
50
|
-
return (o, c) => (s(), d("form", {
|
|
51
|
-
class: t([
|
|
52
|
-
"konnectio-event-search-form",
|
|
53
|
-
{ "has-locations": z.value },
|
|
54
|
-
{ "auto-search": !a.redirection }
|
|
55
|
-
]),
|
|
56
|
-
onSubmit: h(B, ["prevent"])
|
|
57
|
-
}, [r(u, {
|
|
58
|
-
class: "konnectio-event-search-form-content",
|
|
59
|
-
tag: "ul"
|
|
60
|
-
}, {
|
|
61
|
-
default: l(() => [
|
|
62
|
-
z.value ? (s(), d(m, { key: 0 }, [isNaN(a.selectedLocation) ? (s(), e(b, {
|
|
63
|
-
modelValue: F.value,
|
|
64
|
-
"onUpdate:modelValue": c[1] ||= (e) => F.value = e,
|
|
65
|
-
key: "location",
|
|
66
|
-
label: n(M)("general.location"),
|
|
67
|
-
icon: "location-dot",
|
|
68
|
-
"icon-type": "fas",
|
|
69
|
-
"icon-placement": "label",
|
|
70
|
-
"label-key": "name",
|
|
71
|
-
"value-key": "id",
|
|
72
|
-
options: n(E),
|
|
73
|
-
searchable: !1,
|
|
74
|
-
onChanged: V
|
|
75
|
-
}, null, 8, [
|
|
76
|
-
"modelValue",
|
|
77
|
-
"label",
|
|
78
|
-
"options"
|
|
79
|
-
])) : (s(), e(y, {
|
|
80
|
-
key: 0,
|
|
81
|
-
modelValue: R.value,
|
|
82
|
-
"onUpdate:modelValue": c[0] ||= (e) => R.value = e,
|
|
83
|
-
label: n(M)("general.location"),
|
|
84
|
-
icon: "location-dot",
|
|
85
|
-
"icon-type": "fas",
|
|
86
|
-
"icon-placement": "label",
|
|
87
|
-
readonly: ""
|
|
88
|
-
}, null, 8, ["modelValue", "label"]))], 64)) : i("", !0),
|
|
89
|
-
r(C, {
|
|
90
|
-
modelValue: I.value,
|
|
91
|
-
"onUpdate:modelValue": [c[2] ||= (e) => I.value = e, V],
|
|
92
|
-
key: "date",
|
|
93
|
-
label: n(M)("event.selectDate"),
|
|
94
|
-
"icon-type": "fas",
|
|
95
|
-
"icon-placement": "label",
|
|
96
|
-
"include-weekday": !0,
|
|
97
|
-
"min-date": /* @__PURE__ */ new Date()
|
|
98
|
-
}, null, 8, [
|
|
99
|
-
"modelValue",
|
|
100
|
-
"label",
|
|
101
|
-
"min-date"
|
|
102
|
-
]),
|
|
103
|
-
a.redirection === !0 ? (s(), d("li", w, [r(x, {
|
|
104
|
-
type: "submit",
|
|
105
|
-
label: n(M)("availability.buttonLabel"),
|
|
106
|
-
"full-width": ""
|
|
107
|
-
}, null, 8, ["label"])])) : i("", !0)
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})], 34));
|
|
111
|
-
}
|
|
112
|
-
}), [["__scopeId", "data-v-1fe27ff0"]]);
|
|
113
|
-
//#endregion
|
|
114
|
-
export { T as t };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
xڕTmO�0������ �IS`%�cC� i�l����Lr���N)���''-oc/|��ɽ<���ĴR��N�@'�=X����8��;+�p�3�qV1�:k` c��@;�TX�(s�]d����zb]��9珜/���~Xትm(mE����`t�jZ)�Қ��`�VIe�Y�G���]��kQ�m���V]ryݱƛq
|
|
2
|
-
�ij���(�dw7whK��gI��oz{���<B�A��G�M�����i!f�A�Yzˀ�pH���³�2��<��ݫ~o�?��Q��pBx��R��G֒�u
|
|
3
|
-
K�-����S�z�B�|=S�V��Y�d�F��p�T�\��Zw~���0�>9V� �+��{���+,�(��K�ϵ��.�^Ҧ��0�Ź
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import { D as e, Dt as t, E as n, Et as r, M as i, O as a, P as o, T as s, Y as c, bt as l, dt as ee, f as te, k as u, lt as d, o as ne, q as re, u as f, y as ie } from "./mitt-DosBWi_E.js";
|
|
2
|
-
import { C as p, E as m, M as ae, O as oe, S as h, V as se, ft as ce, k as le, n as ue, r as g, t as de, v as fe } from "./SelectField-DttGt-nt.js";
|
|
3
|
-
import { n as _, p as pe } from "./AvailabilitySkeleton-CIOBfx9I.js";
|
|
4
|
-
//#region src/components/forms/HotelAvailabilityForm.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var me = {
|
|
6
|
-
class: "konnectio-availability-location",
|
|
7
|
-
key: "location"
|
|
8
|
-
}, he = {
|
|
9
|
-
id: "konnectio-availability-date-selection",
|
|
10
|
-
key: "multiDate"
|
|
11
|
-
}, ge = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "konnectio-availability-date-selection-multi"
|
|
14
|
-
}, _e = {
|
|
15
|
-
class: "konnectio-availability-room-count",
|
|
16
|
-
key: "room"
|
|
17
|
-
}, ve = {
|
|
18
|
-
class: "konnectio-availability-guest-selection",
|
|
19
|
-
key: "guests"
|
|
20
|
-
}, ye = {
|
|
21
|
-
id: "konnectio-availability-confirmation",
|
|
22
|
-
key: "confirm"
|
|
23
|
-
}, v = /*#__PURE__*/ h(/* @__PURE__ */ o({
|
|
24
|
-
__name: "HotelAvailabilityForm",
|
|
25
|
-
props: {
|
|
26
|
-
booking: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
link: {},
|
|
31
|
-
selectedLocation: { default: NaN },
|
|
32
|
-
disableDefaultLocation: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !1
|
|
35
|
-
},
|
|
36
|
-
hideLocations: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !1
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
setup(o) {
|
|
42
|
-
let { t: h } = ne(), v = o, y = p(), { adults: be, children: xe, roomCount: Se, arrivalDate: b, departureDate: x, location: S, hasHotelLocations: C, hotelLocations: w, controlLocation: Ce } = f(p()), T = oe(), we = pe(), { display: E } = ae(), { firstSelectableDateOffset: D, lastSelectableDateOffset: O, defaultAdultAmount: k, defaultChildAmount: A, maxAdultAmount: Te, maxChildAmount: Ee, splitBookingCalendar: De, disableCalendarPricesAvailability: j } = f(m()), { hasChildSelection: M, hasRoomAmountSelection: N } = m(), Oe = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value)).setHours(12, 0, 0, 0)), ke = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value + 1)).setHours(12, 0, 0, 0)), Ae = () => v.disableDefaultLocation ? void 0 : Ce.value, P = l(k.value), F = l(A.value), I = l(1), L = l(Oe()), R = l(ke()), z = l(Ae()), B = s({
|
|
43
|
-
get: () => v.booking ? y.adults : P.value,
|
|
44
|
-
set: (e) => {
|
|
45
|
-
v.booking ? be.value = Number(e) : P.value = Number(e);
|
|
46
|
-
}
|
|
47
|
-
}), V = s({
|
|
48
|
-
get: () => v.booking ? y.children : F.value,
|
|
49
|
-
set: (e) => {
|
|
50
|
-
v.booking ? xe.value = Number(e) : F.value = Number(e);
|
|
51
|
-
}
|
|
52
|
-
}), H = s({
|
|
53
|
-
get: () => v.booking ? y.roomCount : I.value,
|
|
54
|
-
set: (e) => {
|
|
55
|
-
v.booking ? Se.value = Number(e) : I.value = Number(e);
|
|
56
|
-
}
|
|
57
|
-
}), U = s({
|
|
58
|
-
get: () => v.booking ? b.value : L.value,
|
|
59
|
-
set: (e) => {
|
|
60
|
-
v.booking ? b.value = e : L.value = e;
|
|
61
|
-
}
|
|
62
|
-
}), W = s({
|
|
63
|
-
get: () => v.booking ? x.value : R.value,
|
|
64
|
-
set: (e) => {
|
|
65
|
-
v.booking ? x.value = e : R.value = e;
|
|
66
|
-
}
|
|
67
|
-
}), G = s({
|
|
68
|
-
get: () => isNaN(v.selectedLocation) ? v.booking ? S.value : z.value : v.selectedLocation,
|
|
69
|
-
set: (e) => {
|
|
70
|
-
v.booking ? S.value = e : z.value = e;
|
|
71
|
-
}
|
|
72
|
-
}), K = s(() => {
|
|
73
|
-
let e = w.value.find(({ id: e }) => e === v.selectedLocation);
|
|
74
|
-
return e ? e.name : "";
|
|
75
|
-
}), q = s(() => C.value && !v.hideLocations), J = l([]), Y = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate()))), je = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + O.value))), Me = s(() => new Date((/* @__PURE__ */ new Date()).setDate(U.value.getDate() + (O.value + 1)))), X = s(() => B.value !== 0), Ne = s(() => typeof v.link != "string");
|
|
76
|
-
function Z(e) {
|
|
77
|
-
let t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate();
|
|
78
|
-
return r < 10 && (r = "0" + r), n < 10 && (n = "0" + n), `${t}-${n}-${r}`;
|
|
79
|
-
}
|
|
80
|
-
function Q(e) {
|
|
81
|
-
let t = {
|
|
82
|
-
a: B.value.toString(),
|
|
83
|
-
c: V.value.toString(),
|
|
84
|
-
r: H.value.toString(),
|
|
85
|
-
ci: Z(U.value),
|
|
86
|
-
co: Z(W.value),
|
|
87
|
-
hid: G.value.toString()
|
|
88
|
-
}, n = new URLSearchParams(t), r = new URL(e, window.location.origin);
|
|
89
|
-
r.search = n.toString(), window.location.replace(r.toString());
|
|
90
|
-
}
|
|
91
|
-
function Pe() {
|
|
92
|
-
if (isNaN(G.value) && C.value) {
|
|
93
|
-
E({
|
|
94
|
-
message: h("alert.error.selectHotelId"),
|
|
95
|
-
type: "error"
|
|
96
|
-
});
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (isNaN(B.value)) {
|
|
100
|
-
E({
|
|
101
|
-
message: h("alert.error.selectValidAdults"),
|
|
102
|
-
type: "error"
|
|
103
|
-
});
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
if (isNaN(V.value)) {
|
|
107
|
-
E({
|
|
108
|
-
message: h("alert.error.selectValidChildren"),
|
|
109
|
-
type: "error"
|
|
110
|
-
});
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
if (v.booking === !1) if (Ne.value) {
|
|
114
|
-
let e = se();
|
|
115
|
-
v.link[e] ? Q(v.link[e]) : v.link.en ? Q(v.link.en) : E({
|
|
116
|
-
message: "Module misconfiguration, contact an admin",
|
|
117
|
-
type: "error"
|
|
118
|
-
});
|
|
119
|
-
} else Q(v.link);
|
|
120
|
-
else X.value && T.fetchAvailabilityData();
|
|
121
|
-
}
|
|
122
|
-
let Fe = ce("history", { removeNullishValues: !0 });
|
|
123
|
-
function $() {
|
|
124
|
-
v.booking && (Fe.ci = Z(U.value), Fe.co = Z(W.value));
|
|
125
|
-
}
|
|
126
|
-
return d(U, (e) => {
|
|
127
|
-
let t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
128
|
-
new Date(W.value) < t && (W.value = t), $();
|
|
129
|
-
}), d(W, () => {
|
|
130
|
-
$();
|
|
131
|
-
}), le.on("forcedDateChange", () => {
|
|
132
|
-
J.value = [U.value, W.value];
|
|
133
|
-
}), d(J, (e) => {
|
|
134
|
-
U.value = e[0], W.value = e[1];
|
|
135
|
-
}), d([
|
|
136
|
-
B,
|
|
137
|
-
V,
|
|
138
|
-
G
|
|
139
|
-
], () => {
|
|
140
|
-
we.clearCache();
|
|
141
|
-
}), re(() => {
|
|
142
|
-
J.value = [U.value, W.value];
|
|
143
|
-
}), (s, l) => (c(), u("form", {
|
|
144
|
-
id: "konnectio-availability-form",
|
|
145
|
-
class: t({ reservation: o.booking }),
|
|
146
|
-
type: "availability",
|
|
147
|
-
onSubmit: ie(Pe, ["prevent"])
|
|
148
|
-
}, [i(te, {
|
|
149
|
-
id: "konnectio-availability-form-content",
|
|
150
|
-
tag: "ul",
|
|
151
|
-
class: t([
|
|
152
|
-
{ "is-booking-page": o.booking },
|
|
153
|
-
{ "only-adult-guests": !r(M)(G.value) },
|
|
154
|
-
{ "all-guests": r(M)(G.value) },
|
|
155
|
-
{ "has-location": q.value },
|
|
156
|
-
{ "has-room-count": r(N)(G.value) }
|
|
157
|
-
])
|
|
158
|
-
}, {
|
|
159
|
-
default: ee(() => [
|
|
160
|
-
q.value ? (c(), u("li", me, [isNaN(o.selectedLocation) ? (c(), e(de, {
|
|
161
|
-
key: 1,
|
|
162
|
-
modelValue: G.value,
|
|
163
|
-
"onUpdate:modelValue": l[1] ||= (e) => G.value = e,
|
|
164
|
-
label: r(h)("general.location"),
|
|
165
|
-
placeholder: r(h)("general.locationPlaceholder"),
|
|
166
|
-
icon: "location-dot",
|
|
167
|
-
"icon-type": "fas",
|
|
168
|
-
"icon-placement": "label",
|
|
169
|
-
"label-key": "name",
|
|
170
|
-
"value-key": "id",
|
|
171
|
-
options: r(w),
|
|
172
|
-
searchable: !1
|
|
173
|
-
}, null, 8, [
|
|
174
|
-
"modelValue",
|
|
175
|
-
"label",
|
|
176
|
-
"placeholder",
|
|
177
|
-
"options"
|
|
178
|
-
])) : (c(), e(ue, {
|
|
179
|
-
key: 0,
|
|
180
|
-
modelValue: K.value,
|
|
181
|
-
"onUpdate:modelValue": l[0] ||= (e) => K.value = e,
|
|
182
|
-
label: r(h)("general.location"),
|
|
183
|
-
icon: "location-dot",
|
|
184
|
-
"icon-type": "fas",
|
|
185
|
-
"icon-placement": "label",
|
|
186
|
-
readonly: ""
|
|
187
|
-
}, null, 8, ["modelValue", "label"]))])) : a("", !0),
|
|
188
|
-
n("li", he, [r(De) ? (c(), u("div", ge, [i(_, {
|
|
189
|
-
modelValue: U.value,
|
|
190
|
-
"onUpdate:modelValue": l[2] ||= (e) => U.value = e,
|
|
191
|
-
label: r(h)("availability.arrivalDate"),
|
|
192
|
-
name: "arrivalDate",
|
|
193
|
-
"icon-type": "fas",
|
|
194
|
-
"icon-placement": "label",
|
|
195
|
-
"start-date": U.value,
|
|
196
|
-
"min-date": Y.value,
|
|
197
|
-
"max-date": je.value,
|
|
198
|
-
"show-prices": !r(j),
|
|
199
|
-
"show-availability": !r(j)
|
|
200
|
-
}, null, 8, [
|
|
201
|
-
"modelValue",
|
|
202
|
-
"label",
|
|
203
|
-
"start-date",
|
|
204
|
-
"min-date",
|
|
205
|
-
"max-date",
|
|
206
|
-
"show-prices",
|
|
207
|
-
"show-availability"
|
|
208
|
-
]), i(_, {
|
|
209
|
-
modelValue: W.value,
|
|
210
|
-
"onUpdate:modelValue": l[3] ||= (e) => W.value = e,
|
|
211
|
-
label: r(h)("availability.departureDate"),
|
|
212
|
-
name: "departureDate",
|
|
213
|
-
"icon-type": "fas",
|
|
214
|
-
"icon-placement": "label",
|
|
215
|
-
"start-date": W.value,
|
|
216
|
-
"min-date": U.value,
|
|
217
|
-
"max-date": Me.value,
|
|
218
|
-
"show-prices": !r(j),
|
|
219
|
-
"show-availability": !r(j)
|
|
220
|
-
}, null, 8, [
|
|
221
|
-
"modelValue",
|
|
222
|
-
"label",
|
|
223
|
-
"start-date",
|
|
224
|
-
"min-date",
|
|
225
|
-
"max-date",
|
|
226
|
-
"show-prices",
|
|
227
|
-
"show-availability"
|
|
228
|
-
])])) : (c(), e(_, {
|
|
229
|
-
key: 1,
|
|
230
|
-
modelValue: J.value,
|
|
231
|
-
"onUpdate:modelValue": l[4] ||= (e) => J.value = e,
|
|
232
|
-
label: r(h)("availability.checkInOut"),
|
|
233
|
-
"icon-type": "fas",
|
|
234
|
-
"icon-placement": "label",
|
|
235
|
-
"min-range": 1,
|
|
236
|
-
"min-date": Y.value,
|
|
237
|
-
"max-date": Me.value,
|
|
238
|
-
"show-prices": !r(j),
|
|
239
|
-
"show-availability": !r(j),
|
|
240
|
-
range: ""
|
|
241
|
-
}, null, 8, [
|
|
242
|
-
"modelValue",
|
|
243
|
-
"label",
|
|
244
|
-
"min-date",
|
|
245
|
-
"max-date",
|
|
246
|
-
"show-prices",
|
|
247
|
-
"show-availability"
|
|
248
|
-
]))]),
|
|
249
|
-
r(N)(G.value) ? (c(), u("li", _e, [i(g, {
|
|
250
|
-
modelValue: H.value,
|
|
251
|
-
"onUpdate:modelValue": l[5] ||= (e) => H.value = e,
|
|
252
|
-
label: r(h)("availability.roomCount"),
|
|
253
|
-
"icon-type": "fas",
|
|
254
|
-
"icon-placement": "label",
|
|
255
|
-
name: "roomCount",
|
|
256
|
-
icon: "house",
|
|
257
|
-
"min-value": 1,
|
|
258
|
-
"max-value": 10,
|
|
259
|
-
controls: !0
|
|
260
|
-
}, null, 8, ["modelValue", "label"])])) : a("", !0),
|
|
261
|
-
n("li", ve, [i(g, {
|
|
262
|
-
modelValue: B.value,
|
|
263
|
-
"onUpdate:modelValue": l[6] ||= (e) => B.value = e,
|
|
264
|
-
label: r(h)("availability.adults"),
|
|
265
|
-
description: r(h)("general.adultAgeRange"),
|
|
266
|
-
"icon-type": "fas",
|
|
267
|
-
"icon-placement": "label",
|
|
268
|
-
name: "adults",
|
|
269
|
-
icon: "male",
|
|
270
|
-
"max-value": r(Te),
|
|
271
|
-
placeholder: `${r(k)}`,
|
|
272
|
-
controls: !0
|
|
273
|
-
}, null, 8, [
|
|
274
|
-
"modelValue",
|
|
275
|
-
"label",
|
|
276
|
-
"description",
|
|
277
|
-
"max-value",
|
|
278
|
-
"placeholder"
|
|
279
|
-
]), r(M)(G.value) ? (c(), e(g, {
|
|
280
|
-
key: 0,
|
|
281
|
-
modelValue: V.value,
|
|
282
|
-
"onUpdate:modelValue": l[7] ||= (e) => V.value = e,
|
|
283
|
-
label: r(h)("availability.children"),
|
|
284
|
-
description: r(h)("general.childAgeRange"),
|
|
285
|
-
"icon-type": "fas",
|
|
286
|
-
"icon-placement": "label",
|
|
287
|
-
name: "children",
|
|
288
|
-
icon: "child",
|
|
289
|
-
"max-value": r(Ee),
|
|
290
|
-
placeholder: `${r(A)}`,
|
|
291
|
-
controls: !0
|
|
292
|
-
}, null, 8, [
|
|
293
|
-
"modelValue",
|
|
294
|
-
"label",
|
|
295
|
-
"description",
|
|
296
|
-
"max-value",
|
|
297
|
-
"placeholder"
|
|
298
|
-
])) : a("", !0)]),
|
|
299
|
-
n("li", ye, [i(fe, {
|
|
300
|
-
class: "konnectio-availability-submit-small",
|
|
301
|
-
type: "submit",
|
|
302
|
-
icon: "search",
|
|
303
|
-
"icon-type": "fas",
|
|
304
|
-
disabled: !X.value,
|
|
305
|
-
"is-loading": r(T).areListingsLoading
|
|
306
|
-
}, null, 8, ["disabled", "is-loading"]), i(fe, {
|
|
307
|
-
class: "konnectio-availability-submit-large",
|
|
308
|
-
type: "submit",
|
|
309
|
-
label: r(h)("availability.buttonLabel"),
|
|
310
|
-
disabled: !X.value,
|
|
311
|
-
"is-loading": r(T).areListingsLoading
|
|
312
|
-
}, null, 8, [
|
|
313
|
-
"label",
|
|
314
|
-
"disabled",
|
|
315
|
-
"is-loading"
|
|
316
|
-
])])
|
|
317
|
-
]),
|
|
318
|
-
_: 1
|
|
319
|
-
}, 8, ["class"])], 34));
|
|
320
|
-
}
|
|
321
|
-
}), [["__scopeId", "data-v-e07ca13f"]]);
|
|
322
|
-
//#endregion
|
|
323
|
-
export { v as t };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { D as e, E as t, Et as n, P as r, Y as i, dt as a, o } from "./mitt-DosBWi_E.js";
|
|
2
|
-
import { I as s, S as c } from "./SelectField-DttGt-nt.js";
|
|
3
|
-
import { a as l } from "./CheckoutWindow-BCDXTHgl.js";
|
|
4
|
-
//#region src/components/side-panels/TermsOfService.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var u = { class: "konnectio-terms-side-panel" }, d = ["innerHTML"], f = /*#__PURE__*/ c(/* @__PURE__ */ r({
|
|
6
|
-
__name: "TermsOfService",
|
|
7
|
-
props: { description: {} },
|
|
8
|
-
setup(r) {
|
|
9
|
-
let { t: c } = o();
|
|
10
|
-
return (o, f) => (i(), e(l, { title: n(c)("general.termsAndConditions") }, {
|
|
11
|
-
default: a(() => [t("div", u, [t("p", { innerHTML: n(s)(r.description) }, null, 8, d)])]),
|
|
12
|
-
_: 1
|
|
13
|
-
}, 8, ["title"]));
|
|
14
|
-
}
|
|
15
|
-
}), [["__scopeId", "data-v-107b46b8"]]);
|
|
16
|
-
//#endregion
|
|
17
|
-
export { f as t };
|
|
Binary file
|
|
Binary file
|
package/dist/_--csI0qIp.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
-
import { P as t, Y as n, et as r, k as i, ut as a } from "./mitt-DosBWi_E.js";
|
|
3
|
-
import { E as o } from "./SelectField-DttGt-nt.js";
|
|
4
|
-
//#region src/layouts/_.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var s = {
|
|
6
|
-
class: "konnectio-app",
|
|
7
|
-
ref: "base"
|
|
8
|
-
}, c = /*@__PURE__*/ t({
|
|
9
|
-
name: "BaseLayout",
|
|
10
|
-
__name: "_",
|
|
11
|
-
props: {
|
|
12
|
-
accessToken: {},
|
|
13
|
-
type: { default: "none" },
|
|
14
|
-
callback: {}
|
|
15
|
-
},
|
|
16
|
-
async setup(e) {
|
|
17
|
-
let t, c, l = e, { setAccessToken: u, fetchUtilities: d } = o();
|
|
18
|
-
return [t, c] = a(() => u(l.accessToken)), await t, c(), [t, c] = a(() => d()), await t, c(), l.callback && ([t, c] = a(() => l.callback()), await t, c()), (e, t) => (n(), i("div", s, [r(e.$slots, "default")], 512));
|
|
19
|
-
}
|
|
20
|
-
}), l = /* @__PURE__ */ e({ default: () => u }), u = c;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { l as n, u as t };
|
package/dist/_--csI0qIp.js.br
DELETED
|
Binary file
|
package/dist/_--csI0qIp.js.gz
DELETED
|
Binary file
|
package/dist/dist-D4z_LE4H.js.br
DELETED
|
Binary file
|
package/dist/dist-D4z_LE4H.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/mitt-DosBWi_E.js.br
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|