@konnectio/core 4.11.2 → 4.11.4
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-CrGPD8ma.js → ActionField-uvrQkuh0.js} +16 -17
- package/dist/ActionField-uvrQkuh0.js.br +0 -0
- package/dist/ActionField-uvrQkuh0.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-CKpPPNyV.js → AvailabilitySkeleton-BnOSMGJe.js} +2374 -2900
- package/dist/AvailabilitySkeleton-BnOSMGJe.js.br +0 -0
- package/dist/AvailabilitySkeleton-BnOSMGJe.js.gz +0 -0
- package/dist/{CheckoutWindow-W80b2grC.js → CheckoutWindow-C81SaALY.js} +579 -655
- package/dist/CheckoutWindow-C81SaALY.js.br +0 -0
- package/dist/CheckoutWindow-C81SaALY.js.gz +0 -0
- package/dist/{ErrorMessage-fmvrjZrE.js → ErrorMessage-CoLcli9h.js} +12 -14
- package/dist/ErrorMessage-CoLcli9h.js.br +0 -0
- package/dist/{ErrorMessage-fmvrjZrE.js.gz → ErrorMessage-CoLcli9h.js.gz} +0 -0
- package/dist/{EventAvailabilityForm-BX0CUyYU.js → EventAvailabilityForm-q1YPg-bW.js} +29 -30
- package/dist/EventAvailabilityForm-q1YPg-bW.js.br +0 -0
- package/dist/EventAvailabilityForm-q1YPg-bW.js.gz +0 -0
- package/dist/{Field-DsFLUyHP.js → Field-DIFm-jDk.js} +6 -7
- package/dist/Field-DIFm-jDk.js.br +0 -0
- package/dist/Field-DIFm-jDk.js.gz +0 -0
- package/dist/HotelAvailabilityForm-B8RzSM0k.js +312 -0
- package/dist/HotelAvailabilityForm-B8RzSM0k.js.br +0 -0
- package/dist/HotelAvailabilityForm-B8RzSM0k.js.gz +0 -0
- package/dist/{SelectField-__FvhjFN.js → SelectField-C9lJ8eBd.js} +3739 -3133
- package/dist/SelectField-C9lJ8eBd.js.br +0 -0
- package/dist/SelectField-C9lJ8eBd.js.gz +0 -0
- package/dist/{TermsOfService-XhYHiCia.js → TermsOfService-0719ZgMM.js} +5 -6
- package/dist/TermsOfService-0719ZgMM.js.br +0 -0
- package/dist/TermsOfService-0719ZgMM.js.gz +1 -0
- package/dist/_-0PVid2uc.js +24 -0
- package/dist/_-0PVid2uc.js.br +0 -0
- package/dist/_-0PVid2uc.js.gz +7 -0
- package/dist/availability.js +24 -25
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +57 -62
- 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 +15 -16
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/{dist-ChCkH-cE.js → dist-B_Ox_TrT.js} +705 -756
- package/dist/dist-B_Ox_TrT.js.br +0 -0
- package/dist/dist-B_Ox_TrT.js.gz +0 -0
- package/dist/{dist-CqcX4eCU.js → dist-CFPG9IfN.js} +168 -139
- package/dist/dist-CFPG9IfN.js.br +0 -0
- package/dist/dist-CFPG9IfN.js.gz +0 -0
- package/dist/event.js +334 -344
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +42 -43
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +261 -166
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/giftCard-CAPeGeXI.js +134 -0
- package/dist/giftCard-CAPeGeXI.js.br +0 -0
- package/dist/giftCard-CAPeGeXI.js.gz +0 -0
- package/dist/hotel.js +983 -1145
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-BU9Enb5i.js → i18n-Dq3VKG7w.js} +4004 -3647
- package/dist/i18n-Dq3VKG7w.js.br +0 -0
- package/dist/i18n-Dq3VKG7w.js.gz +0 -0
- package/dist/polyfill.js +905 -818
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
- package/dist/rolldown-runtime-QGRDbDUS.js.br +0 -0
- package/dist/rolldown-runtime-QGRDbDUS.js.gz +0 -0
- package/dist/style-B4cGytfi.js +1284 -0
- package/dist/style-B4cGytfi.js.br +0 -0
- package/dist/style-B4cGytfi.js.gz +0 -0
- package/dist-wix/availability.js +42 -34
- package/dist-wix/event.js +54 -46
- package/dist-wix/gift-card-validation.js +39 -31
- package/dist-wix/gift-card.js +43 -35
- package/dist-wix/hotel.js +54 -46
- package/package.json +32 -32
- package/dist/ActionField-CrGPD8ma.js.br +0 -0
- package/dist/ActionField-CrGPD8ma.js.gz +0 -0
- package/dist/AvailabilitySkeleton-CKpPPNyV.js.br +0 -0
- package/dist/AvailabilitySkeleton-CKpPPNyV.js.gz +0 -0
- package/dist/CheckoutWindow-W80b2grC.js.br +0 -0
- package/dist/CheckoutWindow-W80b2grC.js.gz +0 -0
- package/dist/ErrorMessage-fmvrjZrE.js.br +0 -0
- package/dist/EventAvailabilityForm-BX0CUyYU.js.br +0 -0
- package/dist/EventAvailabilityForm-BX0CUyYU.js.gz +0 -0
- package/dist/Field-DsFLUyHP.js.br +0 -0
- package/dist/Field-DsFLUyHP.js.gz +0 -0
- package/dist/HotelAvailabilityForm-_wN0A0VR.js +0 -322
- package/dist/HotelAvailabilityForm-_wN0A0VR.js.br +0 -0
- package/dist/HotelAvailabilityForm-_wN0A0VR.js.gz +0 -0
- package/dist/SelectField-__FvhjFN.js.br +0 -0
- package/dist/SelectField-__FvhjFN.js.gz +0 -0
- package/dist/TermsOfService-XhYHiCia.js.br +0 -0
- package/dist/TermsOfService-XhYHiCia.js.gz +0 -1
- package/dist/_-Bi3jyl9S.js +0 -25
- package/dist/_-Bi3jyl9S.js.br +0 -0
- package/dist/_-Bi3jyl9S.js.gz +0 -0
- package/dist/dist-ChCkH-cE.js.br +0 -0
- package/dist/dist-ChCkH-cE.js.gz +0 -0
- package/dist/dist-CqcX4eCU.js.br +0 -0
- package/dist/dist-CqcX4eCU.js.gz +0 -0
- package/dist/giftCard-BpWe7WsA.js +0 -114
- package/dist/giftCard-BpWe7WsA.js.br +0 -0
- package/dist/giftCard-BpWe7WsA.js.gz +0 -0
- package/dist/i18n-BU9Enb5i.js.br +0 -0
- package/dist/i18n-BU9Enb5i.js.gz +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.gz +0 -5
- package/dist/style-CcIo1t4N.js +0 -1711
- package/dist/style-CcIo1t4N.js.br +0 -0
- package/dist/style-CcIo1t4N.js.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.4",
|
|
4
4
|
"author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
|
|
5
5
|
"homepage": "https://konnectio.com",
|
|
6
6
|
"repository": {
|
|
@@ -58,62 +58,62 @@
|
|
|
58
58
|
"@chenfengyuan/vue-number-input": "2.0.1",
|
|
59
59
|
"@date-fns/tz": "1.5.0",
|
|
60
60
|
"@egjs/flicking-plugins": "4.8.1",
|
|
61
|
-
"@egjs/vue3-flicking": "4.
|
|
62
|
-
"@flareapp/js": "2.
|
|
63
|
-
"@flareapp/vite": "2.
|
|
64
|
-
"@flareapp/vue": "2.
|
|
61
|
+
"@egjs/vue3-flicking": "4.17.1",
|
|
62
|
+
"@flareapp/js": "2.13.0",
|
|
63
|
+
"@flareapp/vite": "2.13.0",
|
|
64
|
+
"@flareapp/vue": "2.13.0",
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "7.3.1",
|
|
66
66
|
"@fortawesome/free-brands-svg-icons": "7.3.1",
|
|
67
67
|
"@fortawesome/pro-light-svg-icons": "7.3.1",
|
|
68
68
|
"@fortawesome/pro-solid-svg-icons": "7.3.1",
|
|
69
69
|
"@fortawesome/vue-fontawesome": "3.3.3",
|
|
70
|
-
"@intlify/unplugin-vue-i18n": "11.2.
|
|
70
|
+
"@intlify/unplugin-vue-i18n": "11.2.8",
|
|
71
71
|
"@types/leaflet": "1.9.22",
|
|
72
|
-
"@unhead/vue": "3.4.
|
|
72
|
+
"@unhead/vue": "3.4.3",
|
|
73
73
|
"@vuepic/vue-datepicker": "14.0.0",
|
|
74
|
-
"@vueuse/core": "
|
|
75
|
-
"axios": "1.
|
|
76
|
-
"core-js": "3.
|
|
74
|
+
"@vueuse/core": "15.0.0",
|
|
75
|
+
"axios": "1.21.1",
|
|
76
|
+
"core-js": "3.51.0",
|
|
77
77
|
"cqfill": "0.6.1",
|
|
78
78
|
"date-fns": "4.4.0",
|
|
79
|
-
"floating-vue": "5.
|
|
80
|
-
"laravel-precognition-vue": "
|
|
79
|
+
"floating-vue": "5.4.0",
|
|
80
|
+
"laravel-precognition-vue": "2.1.1",
|
|
81
81
|
"leaflet": "1.9.4",
|
|
82
82
|
"leaflet.markercluster": "1.5.3",
|
|
83
|
-
"linkify-html": "4.
|
|
84
|
-
"pinia": "4.0
|
|
85
|
-
"postcss": "8.5.
|
|
83
|
+
"linkify-html": "4.4.0",
|
|
84
|
+
"pinia": "4.1.0",
|
|
85
|
+
"postcss": "8.5.33",
|
|
86
86
|
"recaptcha-v3": "1.11.3",
|
|
87
87
|
"regenerator-runtime": "0.14.1",
|
|
88
88
|
"resize-detector": "0.3.0",
|
|
89
|
-
"vue": "3.5.
|
|
89
|
+
"vue": "3.5.46",
|
|
90
90
|
"vue-gtag": "3.7.1",
|
|
91
|
-
"vue-i18n": "11.4.
|
|
92
|
-
"vue-inner-image-zoom": "3.0.
|
|
91
|
+
"vue-i18n": "11.4.23",
|
|
92
|
+
"vue-inner-image-zoom": "3.0.3",
|
|
93
93
|
"vue-select": "4.0.0-beta.6",
|
|
94
94
|
"vue3-side-panel": "1.3.0",
|
|
95
95
|
"vue3-sticky-directive": "0.0.2",
|
|
96
96
|
"vue3-sticky-sidebar": "2.0.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@playwright/test": "
|
|
100
|
-
"@types/node": "26.
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
102
|
-
"@typescript-eslint/parser": "8.
|
|
103
|
-
"@vitejs/plugin-vue": "6.0.
|
|
99
|
+
"@playwright/test": "1.65.1",
|
|
100
|
+
"@types/node": "26.6.6",
|
|
101
|
+
"@typescript-eslint/eslint-plugin": "8.73.0",
|
|
102
|
+
"@typescript-eslint/parser": "8.73.0",
|
|
103
|
+
"@vitejs/plugin-vue": "6.0.11",
|
|
104
104
|
"@vue/eslint-config-typescript": "14.9.0",
|
|
105
105
|
"cross-env": "10.1.0",
|
|
106
|
-
"detect-libc": "
|
|
107
|
-
"eslint": "10.
|
|
108
|
-
"eslint-plugin-vue": "10.
|
|
109
|
-
"sass": "1.
|
|
106
|
+
"detect-libc": "2.1.2",
|
|
107
|
+
"eslint": "10.15.0",
|
|
108
|
+
"eslint-plugin-vue": "10.12.1",
|
|
109
|
+
"sass": "1.108.2",
|
|
110
110
|
"ts-node": "10.9.2",
|
|
111
|
-
"tslib": "2.
|
|
111
|
+
"tslib": "2.9.1",
|
|
112
112
|
"typescript": "5.9.3",
|
|
113
|
-
"vite": "8.
|
|
114
|
-
"vite-plugin-compression2": "2.5.
|
|
115
|
-
"vue-router": "5.
|
|
116
|
-
"vue-tsc": "3.3.
|
|
113
|
+
"vite": "8.3.8",
|
|
114
|
+
"vite-plugin-compression2": "2.5.4",
|
|
115
|
+
"vue-router": "5.5.1",
|
|
116
|
+
"vue-tsc": "3.3.14"
|
|
117
117
|
},
|
|
118
118
|
"contributors": [
|
|
119
119
|
{
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { A as e, At as t, L as n, M as r, N as i, P as a, Q as o, _ as ee, a as te, et as s, f as ne, gt as re, h as c, j as l, jt as u, l as ie, mt as d, w as ae, wt as f, z as p } from "./i18n-BU9Enb5i.js";
|
|
2
|
-
import { B as m, C as h, E as g, N as oe, O as se, S as _, U as ce, k as le, n as ue, q as de, r as v, t as fe, v as y } from "./SelectField-__FvhjFN.js";
|
|
3
|
-
import { n as b, p as pe } from "./AvailabilitySkeleton-CKpPPNyV.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
|
-
}, x = /*#__PURE__*/ _(/* @__PURE__ */ p({
|
|
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(p) {
|
|
42
|
-
let { t: _ } = te(), x = p, S = h(), { adults: be, children: xe, roomCount: Se, arrivalDate: C, departureDate: w, location: T, hasHotelLocations: E, hotelLocations: D, controlLocation: Ce } = c(h()), O = se(), we = pe(), { display: k } = oe(), { firstSelectableDateOffset: A, lastSelectableDateOffset: j, defaultAdultAmount: M, defaultChildAmount: N, maxAdultAmount: Te, maxChildAmount: Ee, splitBookingCalendar: De, disableCalendarPricesAvailability: P } = c(g()), { hasChildSelection: F, hasRoomAmountSelection: I } = g(), Oe = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + A.value)).setHours(12, 0, 0, 0)), ke = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + A.value + 1)).setHours(12, 0, 0, 0)), Ae = () => x.disableDefaultLocation ? void 0 : Ce.value, L = f(M.value), R = f(N.value), z = f(1), B = f(Oe()), V = f(ke()), H = f(Ae()), U = e({
|
|
43
|
-
get: () => x.booking ? S.adults : L.value,
|
|
44
|
-
set: (e) => {
|
|
45
|
-
x.booking ? be.value = Number(e) : L.value = Number(e);
|
|
46
|
-
}
|
|
47
|
-
}), W = e({
|
|
48
|
-
get: () => x.booking ? S.children : R.value,
|
|
49
|
-
set: (e) => {
|
|
50
|
-
x.booking ? xe.value = Number(e) : R.value = Number(e);
|
|
51
|
-
}
|
|
52
|
-
}), G = e({
|
|
53
|
-
get: () => x.booking ? S.roomCount : z.value,
|
|
54
|
-
set: (e) => {
|
|
55
|
-
x.booking ? Se.value = Number(e) : z.value = Number(e);
|
|
56
|
-
}
|
|
57
|
-
}), K = e({
|
|
58
|
-
get: () => x.booking ? C.value : B.value,
|
|
59
|
-
set: (e) => {
|
|
60
|
-
x.booking ? C.value = e : B.value = e;
|
|
61
|
-
}
|
|
62
|
-
}), q = e({
|
|
63
|
-
get: () => x.booking ? w.value : V.value,
|
|
64
|
-
set: (e) => {
|
|
65
|
-
x.booking ? w.value = e : V.value = e;
|
|
66
|
-
}
|
|
67
|
-
}), J = e({
|
|
68
|
-
get: () => isNaN(x.selectedLocation) ? x.booking ? T.value ?? NaN : H.value ?? NaN : x.selectedLocation,
|
|
69
|
-
set: (e) => {
|
|
70
|
-
x.booking ? T.value = e : H.value = e;
|
|
71
|
-
}
|
|
72
|
-
}), Y = e(() => {
|
|
73
|
-
let e = D.value.find(({ id: e }) => e === x.selectedLocation);
|
|
74
|
-
return e ? e.name : "";
|
|
75
|
-
}), X = e(() => E.value && !x.hideLocations), Z = f([]), je = e(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate()))), Me = e(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + j.value))), Ne = e(() => new Date((/* @__PURE__ */ new Date()).setDate(K.value.getDate() + (j.value + 1)))), Q = e(() => U.value !== 0), Pe = e(() => typeof x.link != "string");
|
|
76
|
-
function $(e) {
|
|
77
|
-
let t = new URLSearchParams(ce({
|
|
78
|
-
adults: U.value,
|
|
79
|
-
children: W.value,
|
|
80
|
-
roomCount: G.value,
|
|
81
|
-
arrivalDate: K.value,
|
|
82
|
-
departureDate: q.value,
|
|
83
|
-
location: J.value
|
|
84
|
-
})), n = new URL(e, window.location.origin);
|
|
85
|
-
n.search = t.toString(), window.location.replace(n.toString());
|
|
86
|
-
}
|
|
87
|
-
function Fe() {
|
|
88
|
-
if (isNaN(J.value) && E.value) {
|
|
89
|
-
k({
|
|
90
|
-
message: _("alert.error.selectHotelId"),
|
|
91
|
-
type: "error"
|
|
92
|
-
});
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (isNaN(U.value)) {
|
|
96
|
-
k({
|
|
97
|
-
message: _("alert.error.selectValidAdults"),
|
|
98
|
-
type: "error"
|
|
99
|
-
});
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
if (isNaN(W.value)) {
|
|
103
|
-
k({
|
|
104
|
-
message: _("alert.error.selectValidChildren"),
|
|
105
|
-
type: "error"
|
|
106
|
-
});
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
if (x.booking === !1) {
|
|
110
|
-
if (Pe.value) {
|
|
111
|
-
let e = de();
|
|
112
|
-
x.link[e] ? $(x.link[e]) : x.link.en ? $(x.link.en) : k({
|
|
113
|
-
message: "Module misconfiguration, contact an admin",
|
|
114
|
-
type: "error"
|
|
115
|
-
});
|
|
116
|
-
} else $(x.link);
|
|
117
|
-
} else Q.value && O.fetchAvailabilityData();
|
|
118
|
-
}
|
|
119
|
-
let Ie = ne("history", { removeNullishValues: !0 });
|
|
120
|
-
function Le() {
|
|
121
|
-
x.booking && (Ie.ci = m(K.value), Ie.co = m(q.value));
|
|
122
|
-
}
|
|
123
|
-
return d(K, (e) => {
|
|
124
|
-
let t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
|
|
125
|
-
new Date(q.value) < t && (q.value = t), Le();
|
|
126
|
-
}), d(q, () => {
|
|
127
|
-
Le();
|
|
128
|
-
}), ie(le).on(() => {
|
|
129
|
-
Z.value = [K.value, q.value];
|
|
130
|
-
}), d(Z, (e) => {
|
|
131
|
-
K.value = e[0], q.value = e[1];
|
|
132
|
-
}), d([
|
|
133
|
-
U,
|
|
134
|
-
W,
|
|
135
|
-
J
|
|
136
|
-
], () => {
|
|
137
|
-
we.clearCache();
|
|
138
|
-
}), o(() => {
|
|
139
|
-
Z.value = [K.value, q.value];
|
|
140
|
-
}), (e, o) => (s(), a("form", {
|
|
141
|
-
id: "konnectio-availability-form",
|
|
142
|
-
class: u({ reservation: p.booking }),
|
|
143
|
-
type: "availability",
|
|
144
|
-
onSubmit: ae(Fe, ["prevent"])
|
|
145
|
-
}, [n(ee, {
|
|
146
|
-
id: "konnectio-availability-form-content",
|
|
147
|
-
tag: "ul",
|
|
148
|
-
class: u([
|
|
149
|
-
{ "is-booking-page": p.booking },
|
|
150
|
-
{ "only-adult-guests": !t(F)(J.value) },
|
|
151
|
-
{ "all-guests": t(F)(J.value) },
|
|
152
|
-
{ "has-location": X.value },
|
|
153
|
-
{ "has-room-count": t(I)(J.value) }
|
|
154
|
-
])
|
|
155
|
-
}, {
|
|
156
|
-
default: re(() => [
|
|
157
|
-
X.value ? (s(), a("li", me, [isNaN(p.selectedLocation) ? (s(), r(fe, {
|
|
158
|
-
key: 1,
|
|
159
|
-
modelValue: J.value,
|
|
160
|
-
"onUpdate:modelValue": o[1] ||= (e) => J.value = e,
|
|
161
|
-
label: t(_)("general.location"),
|
|
162
|
-
placeholder: t(_)("general.locationPlaceholder"),
|
|
163
|
-
icon: "location-dot",
|
|
164
|
-
"icon-type": "fas",
|
|
165
|
-
"icon-placement": "label",
|
|
166
|
-
"label-key": "name",
|
|
167
|
-
"value-key": "id",
|
|
168
|
-
options: t(D),
|
|
169
|
-
searchable: !1
|
|
170
|
-
}, null, 8, [
|
|
171
|
-
"modelValue",
|
|
172
|
-
"label",
|
|
173
|
-
"placeholder",
|
|
174
|
-
"options"
|
|
175
|
-
])) : (s(), r(ue, {
|
|
176
|
-
key: 0,
|
|
177
|
-
modelValue: Y.value,
|
|
178
|
-
"onUpdate:modelValue": o[0] ||= (e) => Y.value = e,
|
|
179
|
-
label: t(_)("general.location"),
|
|
180
|
-
icon: "location-dot",
|
|
181
|
-
"icon-type": "fas",
|
|
182
|
-
"icon-placement": "label",
|
|
183
|
-
readonly: ""
|
|
184
|
-
}, null, 8, ["modelValue", "label"]))])) : i("", !0),
|
|
185
|
-
l("li", he, [t(De) ? (s(), a("div", ge, [n(b, {
|
|
186
|
-
modelValue: K.value,
|
|
187
|
-
"onUpdate:modelValue": o[2] ||= (e) => K.value = e,
|
|
188
|
-
label: t(_)("availability.arrivalDate"),
|
|
189
|
-
name: "arrivalDate",
|
|
190
|
-
"icon-type": "fas",
|
|
191
|
-
"icon-placement": "label",
|
|
192
|
-
"start-date": K.value,
|
|
193
|
-
"min-date": je.value,
|
|
194
|
-
"max-date": Me.value,
|
|
195
|
-
"show-prices": !t(P),
|
|
196
|
-
"show-availability": !t(P),
|
|
197
|
-
"disable-closed-dates": !t(P)
|
|
198
|
-
}, null, 8, [
|
|
199
|
-
"modelValue",
|
|
200
|
-
"label",
|
|
201
|
-
"start-date",
|
|
202
|
-
"min-date",
|
|
203
|
-
"max-date",
|
|
204
|
-
"show-prices",
|
|
205
|
-
"show-availability",
|
|
206
|
-
"disable-closed-dates"
|
|
207
|
-
]), n(b, {
|
|
208
|
-
modelValue: q.value,
|
|
209
|
-
"onUpdate:modelValue": o[3] ||= (e) => q.value = e,
|
|
210
|
-
label: t(_)("availability.departureDate"),
|
|
211
|
-
name: "departureDate",
|
|
212
|
-
"icon-type": "fas",
|
|
213
|
-
"icon-placement": "label",
|
|
214
|
-
"start-date": q.value,
|
|
215
|
-
"min-date": K.value,
|
|
216
|
-
"max-date": Ne.value,
|
|
217
|
-
"show-prices": !t(P),
|
|
218
|
-
"show-availability": !t(P)
|
|
219
|
-
}, null, 8, [
|
|
220
|
-
"modelValue",
|
|
221
|
-
"label",
|
|
222
|
-
"start-date",
|
|
223
|
-
"min-date",
|
|
224
|
-
"max-date",
|
|
225
|
-
"show-prices",
|
|
226
|
-
"show-availability"
|
|
227
|
-
])])) : (s(), r(b, {
|
|
228
|
-
key: 1,
|
|
229
|
-
modelValue: Z.value,
|
|
230
|
-
"onUpdate:modelValue": o[4] ||= (e) => Z.value = e,
|
|
231
|
-
label: t(_)("availability.checkInOut"),
|
|
232
|
-
"icon-type": "fas",
|
|
233
|
-
"icon-placement": "label",
|
|
234
|
-
"min-range": 1,
|
|
235
|
-
"min-date": je.value,
|
|
236
|
-
"max-date": Ne.value,
|
|
237
|
-
"show-prices": !t(P),
|
|
238
|
-
"show-availability": !t(P),
|
|
239
|
-
range: ""
|
|
240
|
-
}, null, 8, [
|
|
241
|
-
"modelValue",
|
|
242
|
-
"label",
|
|
243
|
-
"min-date",
|
|
244
|
-
"max-date",
|
|
245
|
-
"show-prices",
|
|
246
|
-
"show-availability"
|
|
247
|
-
]))]),
|
|
248
|
-
t(I)(J.value) ? (s(), a("li", _e, [n(v, {
|
|
249
|
-
modelValue: G.value,
|
|
250
|
-
"onUpdate:modelValue": o[5] ||= (e) => G.value = e,
|
|
251
|
-
label: t(_)("availability.roomCount"),
|
|
252
|
-
"icon-type": "fas",
|
|
253
|
-
"icon-placement": "label",
|
|
254
|
-
name: "roomCount",
|
|
255
|
-
icon: "house",
|
|
256
|
-
"min-value": 1,
|
|
257
|
-
"max-value": 10,
|
|
258
|
-
controls: !0
|
|
259
|
-
}, null, 8, ["modelValue", "label"])])) : i("", !0),
|
|
260
|
-
l("li", ve, [n(v, {
|
|
261
|
-
modelValue: U.value,
|
|
262
|
-
"onUpdate:modelValue": o[6] ||= (e) => U.value = e,
|
|
263
|
-
label: t(_)("availability.adults"),
|
|
264
|
-
description: t(_)("general.adultAgeRange"),
|
|
265
|
-
"icon-type": "fas",
|
|
266
|
-
"icon-placement": "label",
|
|
267
|
-
name: "adults",
|
|
268
|
-
icon: "male",
|
|
269
|
-
"max-value": t(Te),
|
|
270
|
-
placeholder: `${t(M)}`,
|
|
271
|
-
controls: !0
|
|
272
|
-
}, null, 8, [
|
|
273
|
-
"modelValue",
|
|
274
|
-
"label",
|
|
275
|
-
"description",
|
|
276
|
-
"max-value",
|
|
277
|
-
"placeholder"
|
|
278
|
-
]), t(F)(J.value) ? (s(), r(v, {
|
|
279
|
-
key: 0,
|
|
280
|
-
modelValue: W.value,
|
|
281
|
-
"onUpdate:modelValue": o[7] ||= (e) => W.value = e,
|
|
282
|
-
label: t(_)("availability.children"),
|
|
283
|
-
description: t(_)("general.childAgeRange"),
|
|
284
|
-
"icon-type": "fas",
|
|
285
|
-
"icon-placement": "label",
|
|
286
|
-
name: "children",
|
|
287
|
-
icon: "child",
|
|
288
|
-
"max-value": t(Ee),
|
|
289
|
-
placeholder: `${t(N)}`,
|
|
290
|
-
controls: !0
|
|
291
|
-
}, null, 8, [
|
|
292
|
-
"modelValue",
|
|
293
|
-
"label",
|
|
294
|
-
"description",
|
|
295
|
-
"max-value",
|
|
296
|
-
"placeholder"
|
|
297
|
-
])) : i("", !0)]),
|
|
298
|
-
l("li", ye, [n(y, {
|
|
299
|
-
class: "konnectio-availability-submit-small",
|
|
300
|
-
type: "submit",
|
|
301
|
-
icon: "search",
|
|
302
|
-
"icon-type": "fas",
|
|
303
|
-
disabled: !Q.value,
|
|
304
|
-
"is-loading": t(O).areListingsLoading
|
|
305
|
-
}, null, 8, ["disabled", "is-loading"]), n(y, {
|
|
306
|
-
class: "konnectio-availability-submit-large",
|
|
307
|
-
type: "submit",
|
|
308
|
-
label: t(_)("availability.buttonLabel"),
|
|
309
|
-
disabled: !Q.value,
|
|
310
|
-
"is-loading": t(O).areListingsLoading
|
|
311
|
-
}, null, 8, [
|
|
312
|
-
"label",
|
|
313
|
-
"disabled",
|
|
314
|
-
"is-loading"
|
|
315
|
-
])])
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
}, 8, ["class"])], 34));
|
|
319
|
-
}
|
|
320
|
-
}), [["__scopeId", "data-v-81ba3018"]]);
|
|
321
|
-
//#endregion
|
|
322
|
-
export { x as t };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
x�]R]k�0}��A�"9n�>2o�J��6��>�`�&U�HF�����>�[��#]�{���mk���� \�U@-@�،)p���`�ښ-�4��3���y}�W/��ޱ�X>�_��N`�~B����_HRMZ��������&p������R7�[z;;Z=�س=-�,m��p��j�m�&�]�dCi[iR.�&�u_�s���i�w������h�p���?t件�CU��Ի��,:ءV�s9њj/M�b��� Р��I��~���Ėk�&e����,'j�M�I�wqT���R��W&⨵�u9vhhoV�c7`q4��&�.�"Ea�>W^@��$�"K��\�o�-O<W"��^Q�u�ن4�JM��Nusft#C?ǒ0ah5��:�sH�G�E�Y#{&Љ�Ҳ��gA�%�L�0��N)��@�,�e"�z��8��a�/�h�-�0���b���զ��
|
package/dist/_-Bi3jyl9S.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
-
import { At as t, P as n, Pt as r, a as i, at as a, et as o, ht as s, j as c, z as l } from "./i18n-BU9Enb5i.js";
|
|
3
|
-
import { E as u } from "./SelectField-__FvhjFN.js";
|
|
4
|
-
//#region src/layouts/_.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var d = {
|
|
6
|
-
class: "konnectio-app",
|
|
7
|
-
ref: "base"
|
|
8
|
-
}, f = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "konnectio-panel"
|
|
11
|
-
}, p = /*@__PURE__*/ l({
|
|
12
|
-
name: "BaseLayout",
|
|
13
|
-
__name: "_",
|
|
14
|
-
props: {
|
|
15
|
-
accessToken: {},
|
|
16
|
-
type: { default: "none" },
|
|
17
|
-
callback: {}
|
|
18
|
-
},
|
|
19
|
-
async setup(e) {
|
|
20
|
-
let l, p, m = e, { t: h } = i(), { bookingDisabled: g, setAccessToken: _, fetchUtilities: v } = u();
|
|
21
|
-
return [l, p] = s(() => _(m.accessToken)), await l, p(), [l, p] = s(() => v()), await l, p(), m.callback && ([l, p] = s(() => m.callback()), await l, p()), (e, i) => (o(), n("div", d, [t(g) ? (o(), n("div", f, [c("span", null, r(t(h)("alert.error.bookingDisabled")), 1)])) : a(e.$slots, "default", {}, void 0, void 0, 1)], 512));
|
|
22
|
-
}
|
|
23
|
-
}), m = /* @__PURE__ */ e({ default: () => h }), h = p;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { m as n, h as t };
|
package/dist/_-Bi3jyl9S.js.br
DELETED
|
Binary file
|
package/dist/_-Bi3jyl9S.js.gz
DELETED
|
Binary file
|
package/dist/dist-ChCkH-cE.js.br
DELETED
|
Binary file
|
package/dist/dist-ChCkH-cE.js.gz
DELETED
|
Binary file
|
package/dist/dist-CqcX4eCU.js.br
DELETED
|
Binary file
|
package/dist/dist-CqcX4eCU.js.gz
DELETED
|
Binary file
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { A as e, d as t, h as n, m as r, s as i, t as a, wt as o } from "./i18n-BU9Enb5i.js";
|
|
2
|
-
import { E as s, I as c, N as l, T as u, j as d, q as f, st as p } from "./SelectField-__FvhjFN.js";
|
|
3
|
-
//#region src/store/giftCard.ts
|
|
4
|
-
var m = r("giftCard", () => {
|
|
5
|
-
let { pay: r } = d(), { display: m } = l(), { metaData: h, currencyId: g, hasError: _ } = n(s()), v = s(), y = o(p.InitialState), b = t("konnectio_name", "", void 0, { serializer: i.string }), x = t("konnectio_email", "", void 0, { serializer: i.string }), S = t("konnectio_phone", "", void 0, { serializer: i.string }), C = o(""), w = o(1), T = o(!0), E = o(""), D = o({
|
|
6
|
-
base64: "",
|
|
7
|
-
type: "",
|
|
8
|
-
name: ""
|
|
9
|
-
}), O = o(void 0), k = o(0), A = o(!1), j = o(0), M = e(() => v.metaData.hotels?.[0]), N = e(() => M.value?.termsOfService ?? ""), P = e(() => y.value === p.InitialState || y.value === p.WaitingForResponse), F = e(() => y.value === p.ReadyToPay), I = e(() => y.value === p.PaymentSuccess), L = e(() => {
|
|
10
|
-
let e = {
|
|
11
|
-
1: {
|
|
12
|
-
label: a.t("giftCard.hotelType"),
|
|
13
|
-
data: []
|
|
14
|
-
},
|
|
15
|
-
2: {
|
|
16
|
-
label: a.t("giftCard.restaurantType"),
|
|
17
|
-
data: []
|
|
18
|
-
}
|
|
19
|
-
}, t = h.value.hotels?.[0]?.places;
|
|
20
|
-
return t && t.forEach((t) => {
|
|
21
|
-
e[t.placeType].data.push(t);
|
|
22
|
-
}), Object.fromEntries(Object.entries(e).filter(([, e]) => e.data.length > 0));
|
|
23
|
-
}), R = e(() => j.value !== 0), z = e(() => {
|
|
24
|
-
let e;
|
|
25
|
-
if (R.value) e = L.value[j.value]?.data[0];
|
|
26
|
-
else if (k.value !== 0) {
|
|
27
|
-
let t = O.value, n = L.value[k.value]?.data ?? [];
|
|
28
|
-
n.length === 1 ? e = n[0] : t !== void 0 && n.forEach((n) => {
|
|
29
|
-
String(n.id) === String(t) && (e = n);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return e;
|
|
33
|
-
}), B = e(() => !(!b.value || !x.value || !(S.value.length >= 5) || !C.value || z.value === void 0)), V = e(() => !(y.value === p.InitialState && A.value)), H = e(() => !!(y.value === p.WaitingForResponse && A.value));
|
|
34
|
-
async function U() {
|
|
35
|
-
try {
|
|
36
|
-
let e = (await u().get("/gift-card/metadata", { params: { language: f() } })).data;
|
|
37
|
-
e.success === void 0 ? _.value = !1 : _.value = !e.success, h.value = e;
|
|
38
|
-
} catch {
|
|
39
|
-
m({
|
|
40
|
-
message: a.t("alert.error.couldntFetchMetadata"),
|
|
41
|
-
type: "warning"
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function W() {
|
|
46
|
-
return {
|
|
47
|
-
termsOfserviceURL: window.location.origin,
|
|
48
|
-
checkoutUrl: window.location.origin,
|
|
49
|
-
currencyID: g.value,
|
|
50
|
-
language: f(),
|
|
51
|
-
amount: C.value,
|
|
52
|
-
quantity: w.value,
|
|
53
|
-
freeText: E.value,
|
|
54
|
-
showPrice: T.value,
|
|
55
|
-
contactName: b.value,
|
|
56
|
-
contactEmail: x.value,
|
|
57
|
-
contactPhone: S.value,
|
|
58
|
-
imageBase64: c(D.value.base64),
|
|
59
|
-
imageName: D.value.name,
|
|
60
|
-
imageFormat: D.value.type,
|
|
61
|
-
placeType: z.value ? z.value.placeType : void 0,
|
|
62
|
-
placeID: z.value ? z.value.id : void 0
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
async function G() {
|
|
66
|
-
y.value = p.WaitingForResponse, A.value = !0;
|
|
67
|
-
try {
|
|
68
|
-
let e = await u().post("/gift-card/create", W());
|
|
69
|
-
y.value = p.ReadyToPay, A.value = !1, r({
|
|
70
|
-
callback: (e) => {
|
|
71
|
-
e === 2 && (y.value = p.PaymentSuccess);
|
|
72
|
-
},
|
|
73
|
-
response: e.data,
|
|
74
|
-
enableHostedRedirect: !0
|
|
75
|
-
});
|
|
76
|
-
return;
|
|
77
|
-
} catch (e) {
|
|
78
|
-
if (A.value = !1, y.value = p.InitialState, e?.response?.status === 422) return e.response.data.errors;
|
|
79
|
-
throw e;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function K(e) {
|
|
83
|
-
e && (j.value = e);
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
selectedPlace: z,
|
|
87
|
-
moduleState: y,
|
|
88
|
-
name: b,
|
|
89
|
-
email: x,
|
|
90
|
-
phone: S,
|
|
91
|
-
value: C,
|
|
92
|
-
remark: E,
|
|
93
|
-
showValue: T,
|
|
94
|
-
quantity: w,
|
|
95
|
-
media: D,
|
|
96
|
-
placeId: O,
|
|
97
|
-
placeType: k,
|
|
98
|
-
showFormPage: P,
|
|
99
|
-
showPaymentPage: F,
|
|
100
|
-
showConfirmationPage: I,
|
|
101
|
-
places: L,
|
|
102
|
-
hasFilledForm: B,
|
|
103
|
-
hasForcedPlaceType: R,
|
|
104
|
-
isWaitingForResponse: H,
|
|
105
|
-
isMetadataAvailable: V,
|
|
106
|
-
termsOfService: N,
|
|
107
|
-
fetchMetadata: U,
|
|
108
|
-
giftCardPayload: W,
|
|
109
|
-
orderGiftCard: G,
|
|
110
|
-
initialize: K
|
|
111
|
-
};
|
|
112
|
-
});
|
|
113
|
-
//#endregion
|
|
114
|
-
export { m as t };
|
|
Binary file
|
|
Binary file
|
package/dist/i18n-BU9Enb5i.js.br
DELETED
|
Binary file
|
package/dist/i18n-BU9Enb5i.js.gz
DELETED
|
Binary file
|
|
Binary file
|