@konnectio/core 4.4.8 → 4.5.0
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-X2QEHCxM.js +148 -0
- package/dist/ActionField-X2QEHCxM.js.br +0 -0
- package/dist/ActionField-X2QEHCxM.js.gz +0 -0
- package/dist/AvailabilitySkeleton-sfPLQyx0.js +10131 -0
- package/dist/AvailabilitySkeleton-sfPLQyx0.js.br +0 -0
- package/dist/AvailabilitySkeleton-sfPLQyx0.js.gz +0 -0
- package/dist/CheckoutWindow-BRnjOTlw.js +701 -0
- package/dist/CheckoutWindow-BRnjOTlw.js.br +0 -0
- package/dist/CheckoutWindow-BRnjOTlw.js.gz +0 -0
- package/dist/ErrorMessage-4qWixsXZ.js +31 -0
- package/dist/ErrorMessage-4qWixsXZ.js.br +0 -0
- package/dist/ErrorMessage-4qWixsXZ.js.gz +0 -0
- package/dist/EventAvailabilityForm-DAeAtR3I.js +114 -0
- package/dist/EventAvailabilityForm-DAeAtR3I.js.br +0 -0
- package/dist/EventAvailabilityForm-DAeAtR3I.js.gz +0 -0
- package/dist/Field-CyDf8ah0.js +57 -0
- package/dist/Field-CyDf8ah0.js.br +0 -0
- package/dist/Field-CyDf8ah0.js.gz +0 -0
- package/dist/HotelAvailabilityForm-BPSy0THr.js +317 -0
- package/dist/HotelAvailabilityForm-BPSy0THr.js.br +0 -0
- package/dist/HotelAvailabilityForm-BPSy0THr.js.gz +0 -0
- package/dist/SelectField-CX4o6A18.js +11133 -0
- package/dist/SelectField-CX4o6A18.js.br +0 -0
- package/dist/SelectField-CX4o6A18.js.gz +0 -0
- package/dist/TermsOfService-CWjn_42W.js +17 -0
- package/dist/TermsOfService-CWjn_42W.js.br +5 -0
- package/dist/TermsOfService-CWjn_42W.js.gz +0 -0
- package/dist/_-qyWkj4S8.js +22 -0
- package/dist/_-qyWkj4S8.js.br +0 -0
- package/dist/_-qyWkj4S8.js.gz +0 -0
- package/dist/availability.js +99 -129
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +155 -158
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/chunk-BPfpcrXh.js +20 -0
- package/dist/chunk-BPfpcrXh.js.br +0 -0
- package/dist/chunk-BPfpcrXh.js.gz +2 -0
- package/dist/core.css +2 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +43 -47
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/dist-CVBZ2agG.js +944 -0
- package/dist/dist-CVBZ2agG.js.br +0 -0
- package/dist/dist-CVBZ2agG.js.gz +0 -0
- package/dist/event.js +1069 -1192
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +114 -161
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +452 -451
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/giftCard-BrTMBQuW.js +101 -0
- package/dist/giftCard-BrTMBQuW.js.br +0 -0
- package/dist/giftCard-BrTMBQuW.js.gz +0 -0
- package/dist/hotel.js +8165 -10392
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/masonry.plugin-Doip-tm0.js +8747 -0
- package/dist/masonry.plugin-Doip-tm0.js.br +0 -0
- package/dist/masonry.plugin-Doip-tm0.js.gz +0 -0
- package/dist/mitt-DrOLO7f9.js +9694 -0
- package/dist/mitt-DrOLO7f9.js.br +0 -0
- package/dist/mitt-DrOLO7f9.js.gz +0 -0
- package/dist/polyfill.js +9298 -11610
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/style-k68BwP9N.js +1709 -0
- package/dist/style-k68BwP9N.js.br +0 -0
- package/dist/style-k68BwP9N.js.gz +0 -0
- package/package.json +24 -27
- package/dist/ActionField-DjYUsVEl.js +0 -103
- package/dist/ActionField-DjYUsVEl.js.br +0 -0
- package/dist/ActionField-DjYUsVEl.js.gz +0 -0
- package/dist/AvailabilitySkeleton-Ced6gdUY.js +0 -338
- package/dist/AvailabilitySkeleton-Ced6gdUY.js.br +0 -0
- package/dist/AvailabilitySkeleton-Ced6gdUY.js.gz +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js +0 -10188
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js.gz +0 -0
- package/dist/CheckoutWindow-B-HulkOw.js +0 -668
- package/dist/CheckoutWindow-B-HulkOw.js.br +0 -0
- package/dist/CheckoutWindow-B-HulkOw.js.gz +0 -0
- package/dist/ErrorMessage-C-LZif3u.js +0 -39
- package/dist/ErrorMessage-C-LZif3u.js.br +0 -0
- package/dist/ErrorMessage-C-LZif3u.js.gz +0 -0
- package/dist/EventAvailabilityForm-CdaoawQu.js +0 -119
- package/dist/EventAvailabilityForm-CdaoawQu.js.br +0 -0
- package/dist/EventAvailabilityForm-CdaoawQu.js.gz +0 -0
- package/dist/Field-BxQDGBO6.js +0 -44
- package/dist/Field-BxQDGBO6.js.br +0 -0
- package/dist/Field-BxQDGBO6.js.gz +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js +0 -21
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js.gz +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js +0 -11901
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js.gz +0 -0
- package/dist/TermsOfService-9-UO5S3G.js +0 -28
- package/dist/TermsOfService-9-UO5S3G.js.br +0 -0
- package/dist/TermsOfService-9-UO5S3G.js.gz +0 -0
- package/dist/_-DgORUiWu.js +0 -5
- package/dist/_-DgORUiWu.js.br +0 -0
- package/dist/_-DgORUiWu.js.gz +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js +0 -25
- package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-C8tlnRr1.js.gz +0 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.br +0 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.gz +0 -0
- package/dist/giftCard-D-f02FPM.js +0 -109
- package/dist/giftCard-D-f02FPM.js.br +0 -0
- package/dist/giftCard-D-f02FPM.js.gz +0 -0
- package/dist/index-CBRMHLd-.js +0 -639
- package/dist/index-CBRMHLd-.js.br +0 -0
- package/dist/index-CBRMHLd-.js.gz +0 -0
- package/dist/masonry.plugin-emIQEcmM.js +0 -10816
- package/dist/masonry.plugin-emIQEcmM.js.br +0 -0
- package/dist/masonry.plugin-emIQEcmM.js.gz +0 -0
- package/dist/mitt-Cj---5fy.js +0 -13346
- package/dist/mitt-Cj---5fy.js.br +0 -0
- package/dist/mitt-Cj---5fy.js.gz +0 -0
- package/dist/style-DLdT0Zxs.js +0 -1750
- package/dist/style-DLdT0Zxs.js.br +0 -0
- package/dist/style-DLdT0Zxs.js.gz +0 -0
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
|
|
5
5
|
"homepage": "https://konnectio.com",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -38,39 +38,38 @@
|
|
|
38
38
|
"@date-fns/tz": "1.4.1",
|
|
39
39
|
"@egjs/flicking-plugins": "4.7.1",
|
|
40
40
|
"@egjs/vue3-flicking": "4.15.0",
|
|
41
|
-
"@flareapp/js": "
|
|
42
|
-
"@flareapp/vite": "
|
|
43
|
-
"@flareapp/vue": "
|
|
41
|
+
"@flareapp/js": "2.0.0",
|
|
42
|
+
"@flareapp/vite": "2.0.0",
|
|
43
|
+
"@flareapp/vue": "2.0.0",
|
|
44
44
|
"@fortawesome/fontawesome-pro": "7.2.0",
|
|
45
45
|
"@fortawesome/fontawesome-svg-core": "7.2.0",
|
|
46
46
|
"@fortawesome/free-brands-svg-icons": "7.2.0",
|
|
47
47
|
"@fortawesome/pro-light-svg-icons": "7.2.0",
|
|
48
48
|
"@fortawesome/pro-solid-svg-icons": "7.2.0",
|
|
49
|
-
"@fortawesome/vue-fontawesome": "3.
|
|
50
|
-
"@intlify/unplugin-vue-i18n": "11.0
|
|
49
|
+
"@fortawesome/vue-fontawesome": "3.2.0",
|
|
50
|
+
"@intlify/unplugin-vue-i18n": "11.2.0",
|
|
51
51
|
"@types/leaflet": "1.9.21",
|
|
52
52
|
"@unhead/vue": "2.1.2",
|
|
53
53
|
"@vuepic/vue-datepicker": "12.1.0",
|
|
54
|
-
"@vueuse/core": "14.
|
|
55
|
-
"axios": "1.
|
|
56
|
-
"core-js": "3.
|
|
54
|
+
"@vueuse/core": "14.3.0",
|
|
55
|
+
"axios": "1.16.1",
|
|
56
|
+
"core-js": "3.49.0",
|
|
57
57
|
"cqfill": "0.6.1",
|
|
58
58
|
"date-fns": "4.1.0",
|
|
59
59
|
"floating-vue": "5.2.2",
|
|
60
60
|
"leaflet": "1.9.4",
|
|
61
61
|
"leaflet.markercluster": "1.5.3",
|
|
62
|
-
"linkify-html": "4.3.
|
|
63
|
-
"linkifyjs": "4.3.
|
|
62
|
+
"linkify-html": "4.3.3",
|
|
63
|
+
"linkifyjs": "4.3.3",
|
|
64
64
|
"mitt": "3.0.1",
|
|
65
65
|
"pinia": "3.0.4",
|
|
66
|
-
"postcss": "8.5.
|
|
66
|
+
"postcss": "8.5.14",
|
|
67
67
|
"recaptcha-v3": "1.11.3",
|
|
68
68
|
"regenerator-runtime": "0.14.1",
|
|
69
69
|
"resize-detector": "0.3.0",
|
|
70
|
-
"
|
|
71
|
-
"vue": "3.
|
|
72
|
-
"vue-
|
|
73
|
-
"vue-i18n": "11.2.8",
|
|
70
|
+
"vue": "3.5.29",
|
|
71
|
+
"vue-gtag": "3.7.1",
|
|
72
|
+
"vue-i18n": "11.4.2",
|
|
74
73
|
"vue-inner-image-zoom": "3.0.2",
|
|
75
74
|
"vue-masonry": "0.16.0",
|
|
76
75
|
"vue-router": "4.6.4",
|
|
@@ -80,24 +79,22 @@
|
|
|
80
79
|
"vue3-sticky-sidebar": "2.0.0"
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
83
|
-
"@
|
|
84
|
-
"@types/node": "25.2.3",
|
|
82
|
+
"@types/node": "25.8.0",
|
|
85
83
|
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
86
84
|
"@typescript-eslint/parser": "8.56.1",
|
|
87
|
-
"@vitejs/plugin-vue": "6.0.
|
|
85
|
+
"@vitejs/plugin-vue": "6.0.7",
|
|
88
86
|
"@vue/eslint-config-typescript": "14.7.0",
|
|
89
|
-
"@vue/test-utils": "2.4.6",
|
|
90
87
|
"cross-env": "10.1.0",
|
|
91
|
-
"cypress": "15.
|
|
92
|
-
"eslint": "
|
|
93
|
-
"eslint-plugin-vue": "10.
|
|
94
|
-
"sass": "1.
|
|
88
|
+
"cypress": "15.15.0",
|
|
89
|
+
"eslint": "10.4.0",
|
|
90
|
+
"eslint-plugin-vue": "10.9.1",
|
|
91
|
+
"sass": "1.99.0",
|
|
95
92
|
"ts-node": "10.9.2",
|
|
96
93
|
"tslib": "2.8.1",
|
|
97
94
|
"typescript": "5.9.3",
|
|
98
|
-
"vite": "
|
|
99
|
-
"vite-plugin-compression2": "2.
|
|
100
|
-
"vue-tsc": "3.2.
|
|
95
|
+
"vite": "8.0.13",
|
|
96
|
+
"vite-plugin-compression2": "2.5.3",
|
|
97
|
+
"vue-tsc": "3.2.9"
|
|
101
98
|
},
|
|
102
99
|
"contributors": [
|
|
103
100
|
{
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { d as V, c as d, a as i, g as u, w as v, e as x, f as q, b as y } from "./mitt-Cj---5fy.js";
|
|
2
|
-
import { H as g, x as k, c as B, i as I, T as C, d as T, _ as F } from "./SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js";
|
|
3
|
-
const A = { class: "konnectio-action-field" }, L = /* @__PURE__ */ V({
|
|
4
|
-
__name: "ActionField",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {},
|
|
7
|
-
label: {},
|
|
8
|
-
inputType: { default: "text" },
|
|
9
|
-
buttonLabel: {},
|
|
10
|
-
buttonIcon: {},
|
|
11
|
-
buttonIconColor: {},
|
|
12
|
-
buttonDisabled: { type: Boolean, default: !1 },
|
|
13
|
-
secondary: { type: Boolean, default: !1 },
|
|
14
|
-
name: {},
|
|
15
|
-
id: {},
|
|
16
|
-
type: { default: "text" },
|
|
17
|
-
placeholder: {},
|
|
18
|
-
icon: {},
|
|
19
|
-
iconType: { default: "fal" },
|
|
20
|
-
required: { type: Boolean, default: !1 },
|
|
21
|
-
readonly: { type: Boolean, default: !1 },
|
|
22
|
-
data: {},
|
|
23
|
-
action: {},
|
|
24
|
-
minValue: {},
|
|
25
|
-
maxValue: {},
|
|
26
|
-
isLoading: { type: Boolean, default: !1 }
|
|
27
|
-
},
|
|
28
|
-
emits: ["update:modelValue", "action"],
|
|
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
|
-
}
|
|
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
|
-
});
|
|
41
|
-
function b() {
|
|
42
|
-
m("action");
|
|
43
|
-
}
|
|
44
|
-
return (l, a) => (i(), d(k, {
|
|
45
|
-
label: e.label,
|
|
46
|
-
id: u(n),
|
|
47
|
-
icon: e.icon,
|
|
48
|
-
"icon-type": e.iconType,
|
|
49
|
-
required: e.required,
|
|
50
|
-
type: e.type,
|
|
51
|
-
readonly: e.readonly
|
|
52
|
-
}, {
|
|
53
|
-
default: v(() => [
|
|
54
|
-
x("div", A, [
|
|
55
|
-
e.type === "dropdown" && e.data ? (i(), d(B, {
|
|
56
|
-
key: 0,
|
|
57
|
-
modelValue: o.value,
|
|
58
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => o.value = t),
|
|
59
|
-
id: u(n),
|
|
60
|
-
options: e.data,
|
|
61
|
-
name: e.name,
|
|
62
|
-
required: e.required,
|
|
63
|
-
placeholder: e.placeholder
|
|
64
|
-
}, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (i(), d(I, {
|
|
65
|
-
key: 1,
|
|
66
|
-
modelValue: r.value,
|
|
67
|
-
"onUpdate:modelValue": a[1] || (a[1] = (t) => r.value = t),
|
|
68
|
-
id: u(n),
|
|
69
|
-
"min-value": e.minValue,
|
|
70
|
-
"max-value": e.maxValue
|
|
71
|
-
}, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (i(), d(C, {
|
|
72
|
-
key: 2,
|
|
73
|
-
modelValue: o.value,
|
|
74
|
-
"onUpdate:modelValue": a[2] || (a[2] = (t) => o.value = t),
|
|
75
|
-
id: u(n),
|
|
76
|
-
type: e.inputType,
|
|
77
|
-
name: e.name,
|
|
78
|
-
required: e.required,
|
|
79
|
-
placeholder: e.placeholder,
|
|
80
|
-
"no-optional-label": !0
|
|
81
|
-
}, null, 8, ["modelValue", "id", "type", "name", "required", "placeholder"])),
|
|
82
|
-
q(T, {
|
|
83
|
-
"data-test": `${e.name}Submit`,
|
|
84
|
-
icon: e.buttonIcon,
|
|
85
|
-
label: e.buttonLabel,
|
|
86
|
-
"icon-color": e.buttonIconColor,
|
|
87
|
-
styling: e.action,
|
|
88
|
-
type: "button",
|
|
89
|
-
"is-loading": e.isLoading,
|
|
90
|
-
disabled: e.buttonDisabled,
|
|
91
|
-
secondary: e.secondary,
|
|
92
|
-
onClickEvent: a[3] || (a[3] = (t) => b())
|
|
93
|
-
}, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
|
|
94
|
-
])
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
|
|
98
|
-
}
|
|
99
|
-
}), U = /* @__PURE__ */ F(L, [["__scopeId", "data-v-18f51ff2"]]);
|
|
100
|
-
export {
|
|
101
|
-
U as A
|
|
102
|
-
};
|
|
103
|
-
//# sourceMappingURL=ActionField-DjYUsVEl.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { d as ne, u as we, s as ee, r as b, D as S, b as s, o as Ve, h as g, a as c, f as n, w as Le, i as V, e as L, c as w, g as t, n as U, B as _e, j as xe } from "./mitt-Cj---5fy.js";
|
|
2
|
-
import { u as ae, b as Ae, a as Ne, f as le, t as Ce, P as Se, T as $e, c as Ue, i as te, d as oe, w as Be, _ as se } from "./SelectField.vue_vue_type_style_index_0_lang-DJhjUqti.js";
|
|
3
|
-
import { _ as $ } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-0XtS8ACM.js";
|
|
4
|
-
import { E as ie } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-B40vQ6md.js";
|
|
5
|
-
import { F as f } from "./Field-BxQDGBO6.js";
|
|
6
|
-
const He = {
|
|
7
|
-
class: "konnectio-availability-location",
|
|
8
|
-
key: "location"
|
|
9
|
-
}, Re = {
|
|
10
|
-
id: "konnectio-availability-date-selection",
|
|
11
|
-
key: "multiDate"
|
|
12
|
-
}, Fe = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "konnectio-availability-date-selection-multi"
|
|
15
|
-
};
|
|
16
|
-
const Pe = {
|
|
17
|
-
class: "konnectio-availability-guest-selection",
|
|
18
|
-
key: "guests"
|
|
19
|
-
}, Ie = {
|
|
20
|
-
id: "konnectio-availability-confirmation",
|
|
21
|
-
key: "confirm"
|
|
22
|
-
}, Te = /* @__PURE__ */ ne({
|
|
23
|
-
__name: "HotelAvailabilityForm",
|
|
24
|
-
props: {
|
|
25
|
-
booking: { type: Boolean, default: !1 },
|
|
26
|
-
link: {},
|
|
27
|
-
selectedLocation: { default: NaN },
|
|
28
|
-
disableDefaultLocation: { type: Boolean, default: !1 },
|
|
29
|
-
hideLocations: { type: Boolean, default: !1 }
|
|
30
|
-
},
|
|
31
|
-
setup(d) {
|
|
32
|
-
const { t: i } = we(), a = d, _ = ae(), {
|
|
33
|
-
adults: ue,
|
|
34
|
-
children: re,
|
|
35
|
-
roomCount: ce,
|
|
36
|
-
arrivalDate: B,
|
|
37
|
-
departureDate: H,
|
|
38
|
-
location: R,
|
|
39
|
-
hasHotelLocations: F,
|
|
40
|
-
hotelLocations: P,
|
|
41
|
-
controlLocation: de
|
|
42
|
-
} = ee(ae()), x = Ae(), { display: h } = Ne(), {
|
|
43
|
-
firstSelectableDateOffset: I,
|
|
44
|
-
lastSelectableDateOffset: T,
|
|
45
|
-
defaultAdultAmount: E,
|
|
46
|
-
defaultChildAmount: M,
|
|
47
|
-
maxAdultAmount: ve,
|
|
48
|
-
maxChildAmount: me,
|
|
49
|
-
splitBookingCalendar: be
|
|
50
|
-
} = ee(le()), { hasChildSelection: A } = le(), ge = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + I.value)).setHours(12, 0, 0, 0)), fe = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + I.value + 1)).setHours(12, 0, 0, 0)), pe = () => a.disableDefaultLocation ? void 0 : de.value, O = b(E.value), j = b(M.value), z = b(1), q = b(ge()), G = b(fe()), Y = b(pe()), p = s({
|
|
51
|
-
get: () => a.booking ? _.adults : O.value,
|
|
52
|
-
set: (e) => {
|
|
53
|
-
a.booking ? ue.value = Number(e) : O.value = Number(e);
|
|
54
|
-
}
|
|
55
|
-
}), k = s({
|
|
56
|
-
get: () => a.booking ? _.children : j.value,
|
|
57
|
-
set: (e) => {
|
|
58
|
-
a.booking ? re.value = Number(e) : j.value = Number(e);
|
|
59
|
-
}
|
|
60
|
-
}), ye = s({
|
|
61
|
-
get: () => a.booking ? _.roomCount : z.value,
|
|
62
|
-
set: (e) => {
|
|
63
|
-
a.booking ? ce.value = Number(e) : z.value = Number(e);
|
|
64
|
-
}
|
|
65
|
-
}), u = s({
|
|
66
|
-
get: () => a.booking ? B.value : q.value,
|
|
67
|
-
set: (e) => {
|
|
68
|
-
a.booking ? B.value = e : q.value = e;
|
|
69
|
-
}
|
|
70
|
-
}), r = s({
|
|
71
|
-
get: () => a.booking ? H.value : G.value,
|
|
72
|
-
set: (e) => {
|
|
73
|
-
a.booking ? H.value = e : G.value = e;
|
|
74
|
-
}
|
|
75
|
-
}), v = s({
|
|
76
|
-
get: () => isNaN(a.selectedLocation) ? a.booking ? R.value : Y.value : a.selectedLocation,
|
|
77
|
-
set: (e) => {
|
|
78
|
-
a.booking ? R.value = e : Y.value = e;
|
|
79
|
-
}
|
|
80
|
-
}), J = s(() => {
|
|
81
|
-
const e = P.value.find(({ id: l }) => l === a.selectedLocation);
|
|
82
|
-
return e ? e.name : "";
|
|
83
|
-
}), K = s(() => F.value && !a.hideLocations), y = b([]), Q = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate()))), he = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + T.value))), W = s(() => new Date((/* @__PURE__ */ new Date()).setDate(u.value.getDate() + (T.value + 1)))), N = s(() => p.value !== 0), ke = s(() => typeof a.link != "string");
|
|
84
|
-
function D(e) {
|
|
85
|
-
const l = e.getFullYear();
|
|
86
|
-
let o = e.getMonth() + 1, m = e.getDate();
|
|
87
|
-
return m < 10 && (m = "0" + m), o < 10 && (o = "0" + o), `${l}-${o}-${m}`;
|
|
88
|
-
}
|
|
89
|
-
function C(e) {
|
|
90
|
-
const l = {
|
|
91
|
-
a: p.value.toString(),
|
|
92
|
-
c: k.value.toString(),
|
|
93
|
-
r: ye.value.toString(),
|
|
94
|
-
ci: D(u.value),
|
|
95
|
-
co: D(r.value),
|
|
96
|
-
hid: v.value.toString()
|
|
97
|
-
}, o = new URLSearchParams(l), m = new URL(e, window.location.origin);
|
|
98
|
-
m.search = o.toString(), window.location.replace(m.toString());
|
|
99
|
-
}
|
|
100
|
-
function De() {
|
|
101
|
-
if (isNaN(v.value) && F.value) {
|
|
102
|
-
h({
|
|
103
|
-
message: i("alert.error.selectHotelId"),
|
|
104
|
-
type: "error"
|
|
105
|
-
});
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
if (isNaN(p.value)) {
|
|
109
|
-
h({
|
|
110
|
-
message: i("alert.error.selectValidAdults"),
|
|
111
|
-
type: "error"
|
|
112
|
-
});
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
if (isNaN(k.value)) {
|
|
116
|
-
h({
|
|
117
|
-
message: i("alert.error.selectValidChildren"),
|
|
118
|
-
type: "error"
|
|
119
|
-
});
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
if (a.booking === !1)
|
|
123
|
-
if (ke.value) {
|
|
124
|
-
const e = Be();
|
|
125
|
-
a.link[e] ? C(a.link[e]) : a.link.en ? C(a.link.en) : h({
|
|
126
|
-
message: "Module misconfiguration, contact an admin",
|
|
127
|
-
type: "error"
|
|
128
|
-
});
|
|
129
|
-
} else
|
|
130
|
-
C(a.link);
|
|
131
|
-
else N.value && x.fetchAvailabilityData();
|
|
132
|
-
}
|
|
133
|
-
const X = Ce("history", {
|
|
134
|
-
removeNullishValues: !0
|
|
135
|
-
});
|
|
136
|
-
function Z() {
|
|
137
|
-
a.booking && (X.ci = D(u.value), X.co = D(r.value));
|
|
138
|
-
}
|
|
139
|
-
return S(u, (e) => {
|
|
140
|
-
const l = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
141
|
-
new Date(r.value) < l && (r.value = l), Z();
|
|
142
|
-
}), S(r, () => {
|
|
143
|
-
Z();
|
|
144
|
-
}), Se.on("forcedDateChange", () => {
|
|
145
|
-
y.value = [u.value, r.value];
|
|
146
|
-
}), S(y, (e) => {
|
|
147
|
-
u.value = e[0], r.value = e[1];
|
|
148
|
-
}), Ve(() => {
|
|
149
|
-
y.value = [u.value, r.value];
|
|
150
|
-
}), (e, l) => (c(), g("form", {
|
|
151
|
-
id: "konnectio-availability-form",
|
|
152
|
-
class: U({ reservation: d.booking }),
|
|
153
|
-
type: "availability",
|
|
154
|
-
onSubmit: xe(De, ["prevent"])
|
|
155
|
-
}, [
|
|
156
|
-
n(_e, {
|
|
157
|
-
id: "konnectio-availability-form-content",
|
|
158
|
-
tag: "ul",
|
|
159
|
-
class: U([
|
|
160
|
-
{ "is-booking-page": d.booking },
|
|
161
|
-
{ "only-adult-guests": !t(A)(v.value) },
|
|
162
|
-
{ "all-guests": t(A)(v.value) },
|
|
163
|
-
{ "has-location": K.value },
|
|
164
|
-
{ "has-room-count": !1 }
|
|
165
|
-
])
|
|
166
|
-
}, {
|
|
167
|
-
default: Le(() => [
|
|
168
|
-
K.value ? (c(), g("li", He, [
|
|
169
|
-
isNaN(d.selectedLocation) ? (c(), w(Ue, {
|
|
170
|
-
key: 1,
|
|
171
|
-
modelValue: v.value,
|
|
172
|
-
"onUpdate:modelValue": l[1] || (l[1] = (o) => v.value = o),
|
|
173
|
-
label: t(i)("general.location"),
|
|
174
|
-
placeholder: t(i)("general.locationPlaceholder"),
|
|
175
|
-
icon: "location-dot",
|
|
176
|
-
"icon-type": "fas",
|
|
177
|
-
"icon-placement": "label",
|
|
178
|
-
"label-key": "name",
|
|
179
|
-
"value-key": "id",
|
|
180
|
-
options: t(P),
|
|
181
|
-
searchable: !1
|
|
182
|
-
}, null, 8, ["modelValue", "label", "placeholder", "options"])) : (c(), w($e, {
|
|
183
|
-
key: 0,
|
|
184
|
-
modelValue: J.value,
|
|
185
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) => J.value = o),
|
|
186
|
-
label: t(i)("general.location"),
|
|
187
|
-
icon: "location-dot",
|
|
188
|
-
"icon-type": "fas",
|
|
189
|
-
"icon-placement": "label",
|
|
190
|
-
readonly: ""
|
|
191
|
-
}, null, 8, ["modelValue", "label"]))
|
|
192
|
-
])) : V("", !0),
|
|
193
|
-
L("li", Re, [
|
|
194
|
-
t(be) ? (c(), g("div", Fe, [
|
|
195
|
-
n($, {
|
|
196
|
-
modelValue: u.value,
|
|
197
|
-
"onUpdate:modelValue": l[2] || (l[2] = (o) => u.value = o),
|
|
198
|
-
label: t(i)("availability.arrivalDate"),
|
|
199
|
-
name: "arrivalDate",
|
|
200
|
-
"icon-type": "fas",
|
|
201
|
-
"icon-placement": "label",
|
|
202
|
-
"start-date": u.value,
|
|
203
|
-
"min-date": Q.value,
|
|
204
|
-
"max-date": he.value
|
|
205
|
-
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
|
|
206
|
-
n($, {
|
|
207
|
-
modelValue: r.value,
|
|
208
|
-
"onUpdate:modelValue": l[3] || (l[3] = (o) => r.value = o),
|
|
209
|
-
label: t(i)("availability.departureDate"),
|
|
210
|
-
name: "departureDate",
|
|
211
|
-
"icon-type": "fas",
|
|
212
|
-
"icon-placement": "label",
|
|
213
|
-
"start-date": r.value,
|
|
214
|
-
"min-date": u.value,
|
|
215
|
-
"max-date": W.value
|
|
216
|
-
}, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
|
|
217
|
-
])) : (c(), w($, {
|
|
218
|
-
key: 1,
|
|
219
|
-
modelValue: y.value,
|
|
220
|
-
"onUpdate:modelValue": l[4] || (l[4] = (o) => y.value = o),
|
|
221
|
-
label: t(i)("availability.checkInOut"),
|
|
222
|
-
"icon-type": "fas",
|
|
223
|
-
"icon-placement": "label",
|
|
224
|
-
"min-range": 1,
|
|
225
|
-
"min-date": Q.value,
|
|
226
|
-
"max-date": W.value,
|
|
227
|
-
range: ""
|
|
228
|
-
}, null, 8, ["modelValue", "label", "min-date", "max-date"]))
|
|
229
|
-
]),
|
|
230
|
-
V("", !0),
|
|
231
|
-
L("li", Pe, [
|
|
232
|
-
n(te, {
|
|
233
|
-
modelValue: p.value,
|
|
234
|
-
"onUpdate:modelValue": l[6] || (l[6] = (o) => p.value = o),
|
|
235
|
-
label: t(i)("availability.adults"),
|
|
236
|
-
description: t(i)("general.adultAgeRange"),
|
|
237
|
-
"icon-type": "fas",
|
|
238
|
-
"icon-placement": "label",
|
|
239
|
-
name: "adults",
|
|
240
|
-
icon: "male",
|
|
241
|
-
"max-value": t(ve),
|
|
242
|
-
placeholder: `${t(E)}`,
|
|
243
|
-
controls: !0
|
|
244
|
-
}, null, 8, ["modelValue", "label", "description", "max-value", "placeholder"]),
|
|
245
|
-
t(A)(v.value) ? (c(), w(te, {
|
|
246
|
-
key: 0,
|
|
247
|
-
modelValue: k.value,
|
|
248
|
-
"onUpdate:modelValue": l[7] || (l[7] = (o) => k.value = o),
|
|
249
|
-
label: t(i)("availability.children"),
|
|
250
|
-
description: t(i)("general.childAgeRange"),
|
|
251
|
-
"icon-type": "fas",
|
|
252
|
-
"icon-placement": "label",
|
|
253
|
-
name: "children",
|
|
254
|
-
icon: "child",
|
|
255
|
-
"max-value": t(me),
|
|
256
|
-
placeholder: `${t(M)}`,
|
|
257
|
-
controls: !0
|
|
258
|
-
}, null, 8, ["modelValue", "label", "description", "max-value", "placeholder"])) : V("", !0)
|
|
259
|
-
]),
|
|
260
|
-
L("li", Ie, [
|
|
261
|
-
n(oe, {
|
|
262
|
-
class: "konnectio-availability-submit-small",
|
|
263
|
-
type: "submit",
|
|
264
|
-
icon: "search",
|
|
265
|
-
"icon-type": "fas",
|
|
266
|
-
disabled: !N.value,
|
|
267
|
-
"is-loading": t(x).areListingsLoading
|
|
268
|
-
}, null, 8, ["disabled", "is-loading"]),
|
|
269
|
-
n(oe, {
|
|
270
|
-
class: "konnectio-availability-submit-large",
|
|
271
|
-
type: "submit",
|
|
272
|
-
label: t(i)("availability.buttonLabel"),
|
|
273
|
-
disabled: !N.value,
|
|
274
|
-
"is-loading": t(x).areListingsLoading
|
|
275
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
276
|
-
])
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
}, 8, ["class"])
|
|
280
|
-
], 34));
|
|
281
|
-
}
|
|
282
|
-
}), Qe = /* @__PURE__ */ se(Te, [["__scopeId", "data-v-ef87a3f9"]]), Ee = { class: "availability-skeleton" }, Me = {
|
|
283
|
-
key: 0,
|
|
284
|
-
class: "availability-skeleton-navigation"
|
|
285
|
-
}, Oe = { class: "availability-skeleton-content" }, je = {
|
|
286
|
-
key: 1,
|
|
287
|
-
class: "availability-skeleton-event"
|
|
288
|
-
}, ze = /* @__PURE__ */ ne({
|
|
289
|
-
__name: "AvailabilitySkeleton",
|
|
290
|
-
props: {
|
|
291
|
-
view: { default: "hotel" },
|
|
292
|
-
hotel: { type: Boolean, default: !1 }
|
|
293
|
-
},
|
|
294
|
-
setup(d) {
|
|
295
|
-
return (i, a) => (c(), g("div", Ee, [
|
|
296
|
-
d.view === "both" ? (c(), g("div", Me, [
|
|
297
|
-
n(ie, {
|
|
298
|
-
height: "28px",
|
|
299
|
-
width: "60px",
|
|
300
|
-
"border-radius": "20px"
|
|
301
|
-
}),
|
|
302
|
-
n(ie, {
|
|
303
|
-
height: "28px",
|
|
304
|
-
width: "60px",
|
|
305
|
-
"border-radius": "20px"
|
|
306
|
-
})
|
|
307
|
-
])) : V("", !0),
|
|
308
|
-
L("div", Oe, [
|
|
309
|
-
d.view !== "event" ? (c(), g("div", {
|
|
310
|
-
key: 0,
|
|
311
|
-
class: U([
|
|
312
|
-
"availability-skeleton-hotel",
|
|
313
|
-
{ "within-hotel": d.hotel }
|
|
314
|
-
])
|
|
315
|
-
}, [
|
|
316
|
-
n(f, { "with-icon": "" }),
|
|
317
|
-
n(f, { "with-icon": "" }),
|
|
318
|
-
n(f, { "with-icon": "" }),
|
|
319
|
-
n(f, {
|
|
320
|
-
"with-icon": "",
|
|
321
|
-
"no-label": ""
|
|
322
|
-
})
|
|
323
|
-
], 2)) : (c(), g("div", je, [
|
|
324
|
-
n(f, { "with-icon": "" }),
|
|
325
|
-
n(f, {
|
|
326
|
-
"with-icon": "",
|
|
327
|
-
"no-label": ""
|
|
328
|
-
})
|
|
329
|
-
]))
|
|
330
|
-
])
|
|
331
|
-
]));
|
|
332
|
-
}
|
|
333
|
-
}), We = /* @__PURE__ */ se(ze, [["__scopeId", "data-v-86730e88"]]);
|
|
334
|
-
export {
|
|
335
|
-
We as A,
|
|
336
|
-
Qe as H
|
|
337
|
-
};
|
|
338
|
-
//# sourceMappingURL=AvailabilitySkeleton-Ced6gdUY.js.map
|
|
Binary file
|
|
Binary file
|