@konnectio/core 4.0.12 → 4.0.14
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-23ce1b2a.cjs → ActionField-251eb289.cjs} +1 -1
- package/dist/{ActionField-311942d2.js → ActionField-ed13e600.js} +7 -7
- package/dist/ActionField-ed13e600.js.br +0 -0
- package/dist/AvailabilitySkeleton-beb10d07.js +189 -0
- package/dist/AvailabilitySkeleton-beb10d07.js.br +0 -0
- package/dist/AvailabilitySkeleton-cc8eafe0.cjs +1 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs → DateField.vue_vue_type_style_index_0_lang-8ddce55e.cjs} +5 -5
- package/dist/{DateField.vue_vue_type_style_index_0_lang-ec35955b.js → DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js} +1805 -1801
- package/dist/DateField.vue_vue_type_style_index_0_lang-d1a9ffca.js.br +0 -0
- package/dist/{Field-ff599d13.js → Field-48a50c44.js} +2 -2
- package/dist/Field-48a50c44.js.br +0 -0
- package/dist/{Field-dcffacf2.cjs → Field-cbc16db4.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs → NumberField.vue_vue_type_script_setup_true_lang-7676783c.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js → NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-7aa515cb.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-43c8a651.cjs +802 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js → SelectField.vue_vue_type_style_index_0_lang-96b84c98.js} +9985 -9670
- package/dist/SelectField.vue_vue_type_style_index_0_lang-96b84c98.js.br +0 -0
- package/dist/{TextField-6f7e37d9.cjs → TextField-379793fe.cjs} +27 -27
- package/dist/{TextField-cd93b966.js → TextField-7150eae7.js} +2363 -2437
- package/dist/TextField-7150eae7.js.br +0 -0
- package/dist/{ThankYou-3d74a6dc.cjs → ThankYou-bcce79d1.cjs} +1 -1
- package/dist/{ThankYou-c1878478.js → ThankYou-f3dd76f4.js} +6 -6
- package/dist/ThankYou-f3dd76f4.js.br +0 -0
- package/dist/{_-8772cf9a.js → _-cd5be070.js} +5 -5
- package/dist/_-cd5be070.js.br +0 -0
- package/dist/{_-0895679a.cjs → _-de6b4115.cjs} +1 -1
- package/dist/availability.cjs +2 -2
- package/dist/availability.d.ts +0 -2
- package/dist/availability.js +124 -123
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/entries/availability.d.ts +1 -3
- package/dist/{event-8e90a6e3.cjs → event-2b792293.cjs} +1 -1
- package/dist/{event-60e076f2.js → event-43539c7b.js} +9 -9
- package/dist/event-43539c7b.js.br +0 -0
- package/dist/event.cjs +1 -1
- package/dist/event.js +65 -65
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +6 -6
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +51 -51
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +5 -5
- package/dist/hotel.js +957 -957
- package/dist/hotel.js.br +0 -0
- package/dist/{index-345407fb.cjs → index-751b236a.cjs} +1 -1
- package/dist/{index-b5d8f4fc.js → index-cadcbd9e.js} +2 -2
- package/dist/index-cadcbd9e.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/store/event.d.ts +1 -1
- package/dist/store/hotel.d.ts +5 -2
- package/dist/store/utilities.d.ts +18 -2
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +4 -5
- package/dist/ActionField-311942d2.js.br +0 -0
- package/dist/AvailabilitySkeleton-2dfbb28e.js +0 -382
- package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
- package/dist/AvailabilitySkeleton-7d9e2680.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
- package/dist/Field-ff599d13.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +0 -802
- package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
- package/dist/TextField-cd93b966.js.br +0 -0
- package/dist/ThankYou-c1878478.js.br +0 -0
- package/dist/_-8772cf9a.js.br +0 -0
- package/dist/event-60e076f2.js.br +0 -0
- package/dist/index-b5d8f4fc.js.br +0 -0
- package/dist/store/recaptcha.d.ts +0 -1
package/dist/style.css.br
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konnectio/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
|
|
5
5
|
"homepage": "https://konnectio.dk",
|
|
6
6
|
"description": "Konnectio Core Frontend Integration.",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@fortawesome/pro-light-svg-icons": "6.4.2",
|
|
36
36
|
"@fortawesome/pro-solid-svg-icons": "6.4.2",
|
|
37
37
|
"@fortawesome/vue-fontawesome": "3.0.3",
|
|
38
|
-
"@intlify/unplugin-vue-i18n": "1.0
|
|
39
|
-
"@unhead/vue": "1.8.
|
|
38
|
+
"@intlify/unplugin-vue-i18n": "1.4.0",
|
|
39
|
+
"@unhead/vue": "1.8.2",
|
|
40
40
|
"@vuepic/vue-datepicker": "6.0.3",
|
|
41
41
|
"@vueup/vue-quill": "1.2.0",
|
|
42
42
|
"@vueuse/core": "10.5.0",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/eslint-parser": "7.22.15",
|
|
65
|
-
"@kucrut/vite-for-wp": "0.5.2",
|
|
66
65
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
67
66
|
"@types/node": "20.8.4",
|
|
68
67
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
"@vue/test-utils": "2.4.1",
|
|
73
72
|
"cross-env": "7.0.3",
|
|
74
73
|
"cypress": "13.3.0",
|
|
75
|
-
"eslint": "8.
|
|
74
|
+
"eslint": "8.52.0",
|
|
76
75
|
"eslint-plugin-vue": "9.17.0",
|
|
77
76
|
"rollup-plugin-typescript2": "0.36.0",
|
|
78
77
|
"sass": "1.69.5",
|
|
Binary file
|
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
import { h as E, s as R, a as M, k as v, q as k, ad as q, y as Y, r as J, c as L, $ as j, o as W, l as O, w as X, x as V, t as w, m as f, n as s, A as P, C as Z, v as B, _ as U } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
|
|
2
|
-
import { u as N, a as F, _ as ee } from "./DateField.vue_vue_type_style_index_0_lang-ec35955b.js";
|
|
3
|
-
import { _ as H } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
|
|
4
|
-
import { c as x } from "./_commonjsHelpers-c5d32002.js";
|
|
5
|
-
import { E as G } from "./_-8772cf9a.js";
|
|
6
|
-
import { F as D } from "./Field-ff599d13.js";
|
|
7
|
-
var K = {}, C = {}, S = {}, te = x && x.__awaiter || function(e, n, a, i) {
|
|
8
|
-
function r(t) {
|
|
9
|
-
return t instanceof a ? t : new a(function(o) {
|
|
10
|
-
o(t);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
return new (a || (a = Promise))(function(t, o) {
|
|
14
|
-
function c(u) {
|
|
15
|
-
try {
|
|
16
|
-
l(i.next(u));
|
|
17
|
-
} catch (y) {
|
|
18
|
-
o(y);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function d(u) {
|
|
22
|
-
try {
|
|
23
|
-
l(i.throw(u));
|
|
24
|
-
} catch (y) {
|
|
25
|
-
o(y);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function l(u) {
|
|
29
|
-
u.done ? t(u.value) : r(u.value).then(c, d);
|
|
30
|
-
}
|
|
31
|
-
l((i = i.apply(e, n || [])).next());
|
|
32
|
-
});
|
|
33
|
-
}, ae = x && x.__generator || function(e, n) {
|
|
34
|
-
var a = { label: 0, sent: function() {
|
|
35
|
-
if (t[0] & 1)
|
|
36
|
-
throw t[1];
|
|
37
|
-
return t[1];
|
|
38
|
-
}, trys: [], ops: [] }, i, r, t, o;
|
|
39
|
-
return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
40
|
-
return this;
|
|
41
|
-
}), o;
|
|
42
|
-
function c(l) {
|
|
43
|
-
return function(u) {
|
|
44
|
-
return d([l, u]);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function d(l) {
|
|
48
|
-
if (i)
|
|
49
|
-
throw new TypeError("Generator is already executing.");
|
|
50
|
-
for (; a; )
|
|
51
|
-
try {
|
|
52
|
-
if (i = 1, r && (t = l[0] & 2 ? r.return : l[0] ? r.throw || ((t = r.return) && t.call(r), 0) : r.next) && !(t = t.call(r, l[1])).done)
|
|
53
|
-
return t;
|
|
54
|
-
switch (r = 0, t && (l = [l[0] & 2, t.value]), l[0]) {
|
|
55
|
-
case 0:
|
|
56
|
-
case 1:
|
|
57
|
-
t = l;
|
|
58
|
-
break;
|
|
59
|
-
case 4:
|
|
60
|
-
return a.label++, { value: l[1], done: !1 };
|
|
61
|
-
case 5:
|
|
62
|
-
a.label++, r = l[1], l = [0];
|
|
63
|
-
continue;
|
|
64
|
-
case 7:
|
|
65
|
-
l = a.ops.pop(), a.trys.pop();
|
|
66
|
-
continue;
|
|
67
|
-
default:
|
|
68
|
-
if (t = a.trys, !(t = t.length > 0 && t[t.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
69
|
-
a = 0;
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
if (l[0] === 3 && (!t || l[1] > t[0] && l[1] < t[3])) {
|
|
73
|
-
a.label = l[1];
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
if (l[0] === 6 && a.label < t[1]) {
|
|
77
|
-
a.label = t[1], t = l;
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
if (t && a.label < t[2]) {
|
|
81
|
-
a.label = t[2], a.ops.push(l);
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
t[2] && a.ops.pop(), a.trys.pop();
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
l = n.call(e, a);
|
|
88
|
-
} catch (u) {
|
|
89
|
-
l = [6, u], r = 0;
|
|
90
|
-
} finally {
|
|
91
|
-
i = t = 0;
|
|
92
|
-
}
|
|
93
|
-
if (l[0] & 5)
|
|
94
|
-
throw l[1];
|
|
95
|
-
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
Object.defineProperty(S, "__esModule", { value: !0 });
|
|
99
|
-
S.ReCaptchaInstance = void 0;
|
|
100
|
-
var ne = function() {
|
|
101
|
-
function e(n, a, i) {
|
|
102
|
-
this.siteKey = n, this.recaptchaID = a, this.recaptcha = i, this.styleContainer = null;
|
|
103
|
-
}
|
|
104
|
-
return e.prototype.execute = function(n) {
|
|
105
|
-
return te(this, void 0, void 0, function() {
|
|
106
|
-
return ae(this, function(a) {
|
|
107
|
-
return [2, this.recaptcha.enterprise ? this.recaptcha.enterprise.execute(this.recaptchaID, { action: n }) : this.recaptcha.execute(this.recaptchaID, { action: n })];
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}, e.prototype.getSiteKey = function() {
|
|
111
|
-
return this.siteKey;
|
|
112
|
-
}, e.prototype.hideBadge = function() {
|
|
113
|
-
this.styleContainer === null && (this.styleContainer = document.createElement("style"), this.styleContainer.innerHTML = ".grecaptcha-badge{visibility:hidden !important;}", document.head.appendChild(this.styleContainer));
|
|
114
|
-
}, e.prototype.showBadge = function() {
|
|
115
|
-
this.styleContainer !== null && (document.head.removeChild(this.styleContainer), this.styleContainer = null);
|
|
116
|
-
}, e;
|
|
117
|
-
}();
|
|
118
|
-
S.ReCaptchaInstance = ne;
|
|
119
|
-
Object.defineProperty(C, "__esModule", { value: !0 });
|
|
120
|
-
C.getInstance = C.load = void 0;
|
|
121
|
-
var ie = S, b;
|
|
122
|
-
(function(e) {
|
|
123
|
-
e[e.NOT_LOADED = 0] = "NOT_LOADED", e[e.LOADING = 1] = "LOADING", e[e.LOADED = 2] = "LOADED";
|
|
124
|
-
})(b || (b = {}));
|
|
125
|
-
var z = function() {
|
|
126
|
-
function e() {
|
|
127
|
-
}
|
|
128
|
-
return e.load = function(n, a) {
|
|
129
|
-
if (a === void 0 && (a = {}), typeof document > "u")
|
|
130
|
-
return Promise.reject(new Error("This is a library for the browser!"));
|
|
131
|
-
if (e.getLoadingState() === b.LOADED)
|
|
132
|
-
return e.instance.getSiteKey() === n ? Promise.resolve(e.instance) : Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));
|
|
133
|
-
if (e.getLoadingState() === b.LOADING)
|
|
134
|
-
return n !== e.instanceSiteKey ? Promise.reject(new Error("reCAPTCHA already loaded with different site key!")) : new Promise(function(r, t) {
|
|
135
|
-
e.successfulLoadingConsumers.push(function(o) {
|
|
136
|
-
return r(o);
|
|
137
|
-
}), e.errorLoadingRunnable.push(function(o) {
|
|
138
|
-
return t(o);
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
e.instanceSiteKey = n, e.setLoadingState(b.LOADING);
|
|
142
|
-
var i = new e();
|
|
143
|
-
return new Promise(function(r, t) {
|
|
144
|
-
i.loadScript(n, a.useRecaptchaNet || !1, a.useEnterprise || !1, a.renderParameters ? a.renderParameters : {}, a.customUrl).then(function() {
|
|
145
|
-
e.setLoadingState(b.LOADED);
|
|
146
|
-
var o = i.doExplicitRender(grecaptcha, n, a.explicitRenderParameters ? a.explicitRenderParameters : {}, a.useEnterprise || !1), c = new ie.ReCaptchaInstance(n, o, grecaptcha);
|
|
147
|
-
e.successfulLoadingConsumers.forEach(function(d) {
|
|
148
|
-
return d(c);
|
|
149
|
-
}), e.successfulLoadingConsumers = [], a.autoHideBadge && c.hideBadge(), e.instance = c, r(c);
|
|
150
|
-
}).catch(function(o) {
|
|
151
|
-
e.errorLoadingRunnable.forEach(function(c) {
|
|
152
|
-
return c(o);
|
|
153
|
-
}), e.errorLoadingRunnable = [], t(o);
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
}, e.getInstance = function() {
|
|
157
|
-
return e.instance;
|
|
158
|
-
}, e.setLoadingState = function(n) {
|
|
159
|
-
e.loadingState = n;
|
|
160
|
-
}, e.getLoadingState = function() {
|
|
161
|
-
return e.loadingState === null ? b.NOT_LOADED : e.loadingState;
|
|
162
|
-
}, e.prototype.loadScript = function(n, a, i, r, t) {
|
|
163
|
-
var o = this;
|
|
164
|
-
a === void 0 && (a = !1), i === void 0 && (i = !1), r === void 0 && (r = {}), t === void 0 && (t = "");
|
|
165
|
-
var c = document.createElement("script");
|
|
166
|
-
c.setAttribute("recaptcha-v3-script", "");
|
|
167
|
-
var d = "https://www.google.com/recaptcha/api.js";
|
|
168
|
-
a && (i ? d = "https://recaptcha.net/recaptcha/enterprise.js" : d = "https://recaptcha.net/recaptcha/api.js"), i && (d = "https://www.google.com/recaptcha/enterprise.js"), t && (d = t), r.render && (r.render = void 0);
|
|
169
|
-
var l = this.buildQueryString(r);
|
|
170
|
-
return c.src = d + "?render=explicit" + l, new Promise(function(u, y) {
|
|
171
|
-
c.addEventListener("load", o.waitForScriptToLoad(function() {
|
|
172
|
-
u(c);
|
|
173
|
-
}, i), !1), c.onerror = function(A) {
|
|
174
|
-
e.setLoadingState(b.NOT_LOADED), y(A);
|
|
175
|
-
}, document.head.appendChild(c);
|
|
176
|
-
});
|
|
177
|
-
}, e.prototype.buildQueryString = function(n) {
|
|
178
|
-
var a = Object.keys(n);
|
|
179
|
-
return a.length < 1 ? "" : "&" + Object.keys(n).filter(function(i) {
|
|
180
|
-
return !!n[i];
|
|
181
|
-
}).map(function(i) {
|
|
182
|
-
return i + "=" + n[i];
|
|
183
|
-
}).join("&");
|
|
184
|
-
}, e.prototype.waitForScriptToLoad = function(n, a) {
|
|
185
|
-
var i = this;
|
|
186
|
-
return function() {
|
|
187
|
-
window.grecaptcha === void 0 ? setTimeout(function() {
|
|
188
|
-
i.waitForScriptToLoad(n, a);
|
|
189
|
-
}, e.SCRIPT_LOAD_DELAY) : a ? window.grecaptcha.enterprise.ready(function() {
|
|
190
|
-
n();
|
|
191
|
-
}) : window.grecaptcha.ready(function() {
|
|
192
|
-
n();
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
}, e.prototype.doExplicitRender = function(n, a, i, r) {
|
|
196
|
-
var t = {
|
|
197
|
-
sitekey: a,
|
|
198
|
-
badge: i.badge,
|
|
199
|
-
size: i.size,
|
|
200
|
-
tabindex: i.tabindex
|
|
201
|
-
};
|
|
202
|
-
return i.container ? r ? n.enterprise.render(i.container, t) : n.render(i.container, t) : r ? n.enterprise.render(t) : n.render(t);
|
|
203
|
-
}, e.loadingState = null, e.instance = null, e.instanceSiteKey = null, e.successfulLoadingConsumers = [], e.errorLoadingRunnable = [], e.SCRIPT_LOAD_DELAY = 25, e;
|
|
204
|
-
}();
|
|
205
|
-
C.load = z.load;
|
|
206
|
-
C.getInstance = z.getInstance;
|
|
207
|
-
(function(e) {
|
|
208
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ReCaptchaInstance = e.getInstance = e.load = void 0;
|
|
209
|
-
var n = C;
|
|
210
|
-
Object.defineProperty(e, "load", { enumerable: !0, get: function() {
|
|
211
|
-
return n.load;
|
|
212
|
-
} }), Object.defineProperty(e, "getInstance", { enumerable: !0, get: function() {
|
|
213
|
-
return n.getInstance;
|
|
214
|
-
} });
|
|
215
|
-
var a = S;
|
|
216
|
-
Object.defineProperty(e, "ReCaptchaInstance", { enumerable: !0, get: function() {
|
|
217
|
-
return a.ReCaptchaInstance;
|
|
218
|
-
} });
|
|
219
|
-
})(K);
|
|
220
|
-
const le = /* @__PURE__ */ E({
|
|
221
|
-
__name: "_",
|
|
222
|
-
emits: ["submit"],
|
|
223
|
-
setup(e, { emit: n }) {
|
|
224
|
-
const {
|
|
225
|
-
recaptchaSiteKey: a
|
|
226
|
-
} = R(M()), i = n;
|
|
227
|
-
async function r() {
|
|
228
|
-
const o = await (await K.load(a.value)).execute("<action>");
|
|
229
|
-
console.log(o), i("submit");
|
|
230
|
-
}
|
|
231
|
-
return (t, o) => (v(), k("form", { onSubmit: r }, [
|
|
232
|
-
q(t.$slots, "default")
|
|
233
|
-
], 32));
|
|
234
|
-
}
|
|
235
|
-
}), re = { id: "fresh-booking-availability-date-selection" }, oe = {
|
|
236
|
-
key: 0,
|
|
237
|
-
id: "fresh-booking-availability-guest-selection"
|
|
238
|
-
}, ce = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ E({
|
|
239
|
-
__name: "HotelAvailabilityForm",
|
|
240
|
-
props: {
|
|
241
|
-
booking: { type: Boolean, default: !1 },
|
|
242
|
-
link: {}
|
|
243
|
-
},
|
|
244
|
-
setup(e) {
|
|
245
|
-
const { t: n } = Y(), a = e, {
|
|
246
|
-
adults: i,
|
|
247
|
-
children: r,
|
|
248
|
-
arrivalDate: t,
|
|
249
|
-
departureDate: o,
|
|
250
|
-
location: c,
|
|
251
|
-
isExpired: d
|
|
252
|
-
} = R(N()), { reset: l } = N(), { fetchAvailabilityData: u } = F(), { areListingsLoading: y } = R(F()), {
|
|
253
|
-
firstSelectableDateOffset: A,
|
|
254
|
-
lastSelectableDateOffset: T,
|
|
255
|
-
disableChildSelection: g,
|
|
256
|
-
disableAdultSelection: _
|
|
257
|
-
} = R(M()), I = J([]), pe = L(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (A.value - 1)))), me = L(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + T.value))), be = L(() => new Date((/* @__PURE__ */ new Date()).setDate(t.value.getDate() + A.value))), ye = L(() => new Date((/* @__PURE__ */ new Date()).setDate(t.value.getDate() + (T.value + 1)))), $ = L(() => !(!_ && i.value === 0));
|
|
258
|
-
function Q() {
|
|
259
|
-
a.booking === !1 ? window.location.replace(a.link) : $.value && u();
|
|
260
|
-
}
|
|
261
|
-
return j(t, (p) => {
|
|
262
|
-
const h = new Date(new Date(p).setDate(new Date(p).getDate() + 1));
|
|
263
|
-
new Date(o.value) < h && (o.value = h);
|
|
264
|
-
}), j(I, (p) => {
|
|
265
|
-
t.value = p[0], o.value = p[1];
|
|
266
|
-
}), W(() => {
|
|
267
|
-
d.value && a.booking && l(), I.value = [t.value, o.value];
|
|
268
|
-
}), (p, h) => (v(), O(le, {
|
|
269
|
-
id: "konnectio-availability-form",
|
|
270
|
-
class: B({ reservation: p.booking }),
|
|
271
|
-
onSubmit: Q
|
|
272
|
-
}, {
|
|
273
|
-
default: X(() => [
|
|
274
|
-
V("ul", {
|
|
275
|
-
id: "konnectio-availability-form-content",
|
|
276
|
-
class: B([
|
|
277
|
-
{ "is-not-booking-page": !p.booking },
|
|
278
|
-
{ "only-adult-guests": !s(_) && s(g) },
|
|
279
|
-
{ "only-child-guests": !s(g) && s(_) },
|
|
280
|
-
{ "no-guests": s(_) && s(g) },
|
|
281
|
-
{ "all-guests": !s(_) && !s(g) }
|
|
282
|
-
])
|
|
283
|
-
}, [
|
|
284
|
-
V("li", re, [
|
|
285
|
-
w("", !0),
|
|
286
|
-
f(ee, {
|
|
287
|
-
modelValue: I.value,
|
|
288
|
-
"onUpdate:modelValue": h[1] || (h[1] = (m) => I.value = m),
|
|
289
|
-
label: s(n)("availability.checkInOut"),
|
|
290
|
-
"icon-type": "fas",
|
|
291
|
-
"icon-placement": "label",
|
|
292
|
-
"min-range": 1,
|
|
293
|
-
range: ""
|
|
294
|
-
}, null, 8, ["modelValue", "label"]),
|
|
295
|
-
w("", !0)
|
|
296
|
-
]),
|
|
297
|
-
!s(_) || !s(g) ? (v(), k("li", oe, [
|
|
298
|
-
s(_) ? w("", !0) : (v(), O(H, {
|
|
299
|
-
key: 0,
|
|
300
|
-
modelValue: s(i),
|
|
301
|
-
"onUpdate:modelValue": h[4] || (h[4] = (m) => P(i) ? i.value = m : null),
|
|
302
|
-
label: s(n)("availability.adults"),
|
|
303
|
-
"icon-type": "fas",
|
|
304
|
-
"icon-placement": "label",
|
|
305
|
-
name: "adults",
|
|
306
|
-
icon: "male"
|
|
307
|
-
}, null, 8, ["modelValue", "label"])),
|
|
308
|
-
s(g) ? w("", !0) : (v(), O(H, {
|
|
309
|
-
key: 1,
|
|
310
|
-
modelValue: s(r),
|
|
311
|
-
"onUpdate:modelValue": h[5] || (h[5] = (m) => P(r) ? r.value = m : null),
|
|
312
|
-
label: s(n)("availability.children"),
|
|
313
|
-
"icon-type": "fas",
|
|
314
|
-
"icon-placement": "label",
|
|
315
|
-
name: "children",
|
|
316
|
-
icon: "child"
|
|
317
|
-
}, null, 8, ["modelValue", "label"]))
|
|
318
|
-
])) : w("", !0),
|
|
319
|
-
V("li", ce, [
|
|
320
|
-
f(Z, {
|
|
321
|
-
label: s(n)("availability.buttonLabel"),
|
|
322
|
-
disabled: !$.value,
|
|
323
|
-
"is-loading": s(y)
|
|
324
|
-
}, null, 8, ["label", "disabled", "is-loading"])
|
|
325
|
-
])
|
|
326
|
-
], 2)
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}, 8, ["class"]));
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
const Le = /* @__PURE__ */ U(se, [["__scopeId", "data-v-61d87281"]]), ue = { class: "availability-skeleton" }, de = {
|
|
333
|
-
key: 0,
|
|
334
|
-
class: "availability-skeleton-navigation"
|
|
335
|
-
}, fe = {
|
|
336
|
-
key: 1,
|
|
337
|
-
class: "availability-skeleton-hotel"
|
|
338
|
-
}, he = {
|
|
339
|
-
key: 2,
|
|
340
|
-
class: "availability-skeleton-event"
|
|
341
|
-
}, ve = /* @__PURE__ */ E({
|
|
342
|
-
__name: "AvailabilitySkeleton",
|
|
343
|
-
props: {
|
|
344
|
-
view: { default: "hotel" }
|
|
345
|
-
},
|
|
346
|
-
setup(e) {
|
|
347
|
-
return (n, a) => (v(), k("div", ue, [
|
|
348
|
-
n.view === "both" ? (v(), k("div", de, [
|
|
349
|
-
f(G, {
|
|
350
|
-
height: "28px",
|
|
351
|
-
width: "60px",
|
|
352
|
-
"border-radius": "20px"
|
|
353
|
-
}),
|
|
354
|
-
f(G, {
|
|
355
|
-
height: "28px",
|
|
356
|
-
width: "60px",
|
|
357
|
-
"border-radius": "20px"
|
|
358
|
-
})
|
|
359
|
-
])) : w("", !0),
|
|
360
|
-
n.view !== "event" ? (v(), k("div", fe, [
|
|
361
|
-
f(D, { "with-icon": "" }),
|
|
362
|
-
f(D, { "with-icon": "" }),
|
|
363
|
-
f(D, { "with-icon": "" }),
|
|
364
|
-
f(D, {
|
|
365
|
-
"with-icon": "",
|
|
366
|
-
"no-label": ""
|
|
367
|
-
})
|
|
368
|
-
])) : (v(), k("div", he, [
|
|
369
|
-
f(D, { "with-icon": "" }),
|
|
370
|
-
f(D, {
|
|
371
|
-
"with-icon": "",
|
|
372
|
-
"no-label": ""
|
|
373
|
-
})
|
|
374
|
-
]))
|
|
375
|
-
]));
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
const Se = /* @__PURE__ */ U(ve, [["__scopeId", "data-v-c266ccbc"]]);
|
|
379
|
-
export {
|
|
380
|
-
Se as A,
|
|
381
|
-
Le as H
|
|
382
|
-
};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),D=require("./DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs"),F=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),C=require("./_commonjsHelpers-6763f629.cjs"),L=require("./_-0895679a.cjs"),b=require("./Field-dcffacf2.cjs");var A={},g={},w={},B=C.commonjsGlobal&&C.commonjsGlobal.__awaiter||function(t,l,a,i){function o(n){return n instanceof a?n:new a(function(c){c(n)})}return new(a||(a=Promise))(function(n,c){function u(s){try{r(i.next(s))}catch(y){c(y)}}function d(s){try{r(i.throw(s))}catch(y){c(y)}}function r(s){s.done?n(s.value):o(s.value).then(u,d)}r((i=i.apply(t,l||[])).next())})},N=C.commonjsGlobal&&C.commonjsGlobal.__generator||function(t,l){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(r){return function(s){return d([r,s])}}function d(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=r[0]&2?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[r[0]&2,n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(r[0]===6&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=l.call(t,a)}catch(s){r=[6,s],o=0}finally{i=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(w,"__esModule",{value:!0});w.ReCaptchaInstance=void 0;var O=function(){function t(l,a,i){this.siteKey=l,this.recaptchaID=a,this.recaptcha=i,this.styleContainer=null}return t.prototype.execute=function(l){return B(this,void 0,void 0,function(){return N(this,function(a){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:l}):this.recaptcha.execute(this.recaptchaID,{action:l})]})})},t.prototype.getSiteKey=function(){return this.siteKey},t.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},t.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},t}();w.ReCaptchaInstance=O;Object.defineProperty(g,"__esModule",{value:!0});g.getInstance=g.load=void 0;var E=w,p;(function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"})(p||(p={}));var R=function(){function t(){}return t.load=function(l,a){if(a===void 0&&(a={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(t.getLoadingState()===p.LOADED)return t.instance.getSiteKey()===l?Promise.resolve(t.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(t.getLoadingState()===p.LOADING)return l!==t.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(o,n){t.successfulLoadingConsumers.push(function(c){return o(c)}),t.errorLoadingRunnable.push(function(c){return n(c)})});t.instanceSiteKey=l,t.setLoadingState(p.LOADING);var i=new t;return new Promise(function(o,n){i.loadScript(l,a.useRecaptchaNet||!1,a.useEnterprise||!1,a.renderParameters?a.renderParameters:{},a.customUrl).then(function(){t.setLoadingState(p.LOADED);var c=i.doExplicitRender(grecaptcha,l,a.explicitRenderParameters?a.explicitRenderParameters:{},a.useEnterprise||!1),u=new E.ReCaptchaInstance(l,c,grecaptcha);t.successfulLoadingConsumers.forEach(function(d){return d(u)}),t.successfulLoadingConsumers=[],a.autoHideBadge&&u.hideBadge(),t.instance=u,o(u)}).catch(function(c){t.errorLoadingRunnable.forEach(function(u){return u(c)}),t.errorLoadingRunnable=[],n(c)})})},t.getInstance=function(){return t.instance},t.setLoadingState=function(l){t.loadingState=l},t.getLoadingState=function(){return t.loadingState===null?p.NOT_LOADED:t.loadingState},t.prototype.loadScript=function(l,a,i,o,n){var c=this;a===void 0&&(a=!1),i===void 0&&(i=!1),o===void 0&&(o={}),n===void 0&&(n="");var u=document.createElement("script");u.setAttribute("recaptcha-v3-script","");var d="https://www.google.com/recaptcha/api.js";a&&(i?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js"),i&&(d="https://www.google.com/recaptcha/enterprise.js"),n&&(d=n),o.render&&(o.render=void 0);var r=this.buildQueryString(o);return u.src=d+"?render=explicit"+r,new Promise(function(s,y){u.addEventListener("load",c.waitForScriptToLoad(function(){s(u)},i),!1),u.onerror=function(k){t.setLoadingState(p.NOT_LOADED),y(k)},document.head.appendChild(u)})},t.prototype.buildQueryString=function(l){var a=Object.keys(l);return a.length<1?"":"&"+Object.keys(l).filter(function(i){return!!l[i]}).map(function(i){return i+"="+l[i]}).join("&")},t.prototype.waitForScriptToLoad=function(l,a){var i=this;return function(){window.grecaptcha===void 0?setTimeout(function(){i.waitForScriptToLoad(l,a)},t.SCRIPT_LOAD_DELAY):a?window.grecaptcha.enterprise.ready(function(){l()}):window.grecaptcha.ready(function(){l()})}},t.prototype.doExplicitRender=function(l,a,i,o){var n={sitekey:a,badge:i.badge,size:i.size,tabindex:i.tabindex};return i.container?o?l.enterprise.render(i.container,n):l.render(i.container,n):o?l.enterprise.render(n):l.render(n)},t.loadingState=null,t.instance=null,t.instanceSiteKey=null,t.successfulLoadingConsumers=[],t.errorLoadingRunnable=[],t.SCRIPT_LOAD_DELAY=25,t}();g.load=R.load;g.getInstance=R.getInstance;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=t.getInstance=t.load=void 0;var l=g;Object.defineProperty(t,"load",{enumerable:!0,get:function(){return l.load}}),Object.defineProperty(t,"getInstance",{enumerable:!0,get:function(){return l.getInstance}});var a=w;Object.defineProperty(t,"ReCaptchaInstance",{enumerable:!0,get:function(){return a.ReCaptchaInstance}})})(A);const T=e.defineComponent({__name:"_",emits:["submit"],setup(t,{emit:l}){const{recaptchaSiteKey:a}=e.storeToRefs(e.useUtilityStore()),i=l;async function o(){const c=await(await A.load(a.value)).execute("<action>");console.log(c),i("submit")}return(n,c)=>(e.openBlock(),e.createElementBlock("form",{onSubmit:o},[e.renderSlot(n.$slots,"default")],32))}}),j={id:"fresh-booking-availability-date-selection"},P={key:0,id:"fresh-booking-availability-guest-selection"},$={id:"fresh-booking-availability-confirmation"},H=e.defineComponent({__name:"HotelAvailabilityForm",props:{booking:{type:Boolean,default:!1},link:{}},setup(t){const{t:l}=e.useI18n(),a=t,{adults:i,children:o,arrivalDate:n,departureDate:c,location:u,isExpired:d}=e.storeToRefs(D.useAvailabilityStore()),{reset:r}=D.useAvailabilityStore(),{fetchAvailabilityData:s}=D.useHotelStore(),{areListingsLoading:y}=e.storeToRefs(D.useHotelStore()),{firstSelectableDateOffset:k,lastSelectableDateOffset:x,disableChildSelection:h,disableAdultSelection:m}=e.storeToRefs(e.useUtilityStore()),S=e.ref([]),Y=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+(k.value-1)))),J=e.computed(()=>new Date(new Date().setDate(new Date().getDate()+x.value))),W=e.computed(()=>new Date(new Date().setDate(n.value.getDate()+k.value))),X=e.computed(()=>new Date(new Date().setDate(n.value.getDate()+(x.value+1)))),V=e.computed(()=>!(!m&&i.value===0));function I(){a.booking===!1?window.location.replace(a.link):V.value&&s()}return e.watch(n,f=>{const _=new Date(new Date(f).setDate(new Date(f).getDate()+1));new Date(c.value)<_&&(c.value=_)}),e.watch(S,f=>{n.value=f[0],c.value=f[1]}),e.onMounted(()=>{d.value&&a.booking&&r(),S.value=[n.value,c.value]}),(f,_)=>(e.openBlock(),e.createBlock(T,{id:"konnectio-availability-form",class:e.normalizeClass({reservation:f.booking}),onSubmit:I},{default:e.withCtx(()=>[e.createBaseVNode("ul",{id:"konnectio-availability-form-content",class:e.normalizeClass([{"is-not-booking-page":!f.booking},{"only-adult-guests":!e.unref(m)&&e.unref(h)},{"only-child-guests":!e.unref(h)&&e.unref(m)},{"no-guests":e.unref(m)&&e.unref(h)},{"all-guests":!e.unref(m)&&!e.unref(h)}])},[e.createBaseVNode("li",j,[e.createCommentVNode("",!0),e.createVNode(D._sfc_main,{modelValue:S.value,"onUpdate:modelValue":_[1]||(_[1]=v=>S.value=v),label:e.unref(l)("availability.checkInOut"),"icon-type":"fas","icon-placement":"label","min-range":1,range:""},null,8,["modelValue","label"]),e.createCommentVNode("",!0)]),!e.unref(m)||!e.unref(h)?(e.openBlock(),e.createElementBlock("li",P,[e.unref(m)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F._sfc_main,{key:0,modelValue:e.unref(i),"onUpdate:modelValue":_[4]||(_[4]=v=>e.isRef(i)?i.value=v:null),label:e.unref(l)("availability.adults"),"icon-type":"fas","icon-placement":"label",name:"adults",icon:"male"},null,8,["modelValue","label"])),e.unref(h)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(F._sfc_main,{key:1,modelValue:e.unref(o),"onUpdate:modelValue":_[5]||(_[5]=v=>e.isRef(o)?o.value=v:null),label:e.unref(l)("availability.children"),"icon-type":"fas","icon-placement":"label",name:"children",icon:"child"},null,8,["modelValue","label"]))])):e.createCommentVNode("",!0),e.createBaseVNode("li",$,[e.createVNode(e.Clickable,{label:e.unref(l)("availability.buttonLabel"),disabled:!V.value,"is-loading":e.unref(y)},null,8,["label","disabled","is-loading"])])],2)]),_:1},8,["class"]))}});const G=e._export_sfc(H,[["__scopeId","data-v-61d87281"]]),q={class:"availability-skeleton"},U={key:0,class:"availability-skeleton-navigation"},M={key:1,class:"availability-skeleton-hotel"},z={key:2,class:"availability-skeleton-event"},K=e.defineComponent({__name:"AvailabilitySkeleton",props:{view:{default:"hotel"}},setup(t){return(l,a)=>(e.openBlock(),e.createElementBlock("div",q,[l.view==="both"?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(L.Element,{height:"28px",width:"60px","border-radius":"20px"}),e.createVNode(L.Element,{height:"28px",width:"60px","border-radius":"20px"})])):e.createCommentVNode("",!0),l.view!=="event"?(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":"","no-label":""})])):(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(b.Field,{"with-icon":""}),e.createVNode(b.Field,{"with-icon":"","no-label":""})]))]))}});const Q=e._export_sfc(K,[["__scopeId","data-v-c266ccbc"]]);exports.AvailabilitySkeleton=Q;exports.HotelAvailabilityForm=G;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|