@konnectio/core 4.0.56-rc39 → 4.0.56-rc40
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-Cj7yAIiF.js → ActionField-CD5wWyTP.js} +10 -10
- package/dist/ActionField-CD5wWyTP.js.br +0 -0
- package/dist/{AvailabilitySkeleton-B1NfPwnx.js → AvailabilitySkeleton-D9lVJ7Y4.js} +71 -69
- package/dist/AvailabilitySkeleton-D9lVJ7Y4.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js} +2692 -2638
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js.br +0 -0
- package/dist/{CheckoutWindow-Dj_a3rqK.js → CheckoutWindow-POqLB9M4.js} +33 -33
- package/dist/CheckoutWindow-POqLB9M4.js.br +0 -0
- package/dist/{ErrorMessage-B_o47rUW.js → ErrorMessage-DACtGUvq.js} +4 -4
- package/dist/ErrorMessage-DACtGUvq.js.br +0 -0
- package/dist/{EventAvailabilityForm-vxL1OmZL.js → EventAvailabilityForm-Dx4hfkc1.js} +36 -36
- package/dist/EventAvailabilityForm-Dx4hfkc1.js.br +0 -0
- package/dist/{Field-DC9mZy8_.js → Field-Nqc4wuqz.js} +8 -8
- package/dist/Field-Nqc4wuqz.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js} +3483 -3533
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js.br +0 -0
- package/dist/{TermsOfService-COGxWG3S.js → TermsOfService-D3ujvGpJ.js} +9 -9
- package/dist/TermsOfService-D3ujvGpJ.js.br +0 -0
- package/dist/_-BeIBHN5G.js +12 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js +72 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CfxcWxuU.js.br +0 -0
- package/dist/{_commonjsHelpers-UWZO_9XV.js → _commonjsHelpers-BpcYSDvQ.js} +149 -148
- package/dist/_commonjsHelpers-BpcYSDvQ.js.br +0 -0
- package/dist/availability.js +57 -56
- package/dist/availability.js.br +0 -0
- package/dist/event.js +95 -95
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +43 -41
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +241 -331
- package/dist/gift-card.js.br +0 -0
- package/dist/giftCard-BEp1vsXy.js +128 -0
- package/dist/giftCard-BEp1vsXy.js.br +0 -0
- package/dist/hotel.js +942 -938
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-a1QQfgj3.js → masonry.plugin-CnRH1tRE.js} +6 -6
- package/dist/masonry.plugin-CnRH1tRE.js.br +0 -0
- package/dist/navigation.js +3 -3
- package/dist/polyfill.js +10 -5
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +9 -9
- package/dist/ActionField-Cj7yAIiF.js.br +0 -0
- package/dist/AvailabilitySkeleton-B1NfPwnx.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-4TxEs6Ur.js.br +0 -0
- package/dist/CheckoutWindow-Dj_a3rqK.js.br +0 -0
- package/dist/ErrorMessage-B_o47rUW.js.br +0 -0
- package/dist/EventAvailabilityForm-vxL1OmZL.js.br +0 -0
- package/dist/Field-DC9mZy8_.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CITxgseu.js.br +0 -0
- package/dist/TermsOfService-COGxWG3S.js.br +0 -0
- package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
- package/dist/masonry.plugin-a1QQfgj3.js.br +0 -0
package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js.br
ADDED
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as C, o as u,
|
|
2
|
-
import { A as Be, _ as z, r as ee, T as oe, I as ne,
|
|
1
|
+
import { d as C, o as u, a as m, r as c, h as j, E as ve, G as me, q as Q, c as U, H as he, b as I, g as r, f as H, w as $, y as X, z as Z, I as q, T as x, n as v, v as V, e as S, J as ge, K as be, t as b, u as y, B as we, L as Se, M as ke, D as W, p as Ce, j as $e } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { A as Be, _ as z, r as ee, T as oe, I as ne, h as Ve, s as Pe, b as Te, Q as Ie } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, o = new Error().stack;
|
|
6
|
-
o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "
|
|
6
|
+
o && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[o] = "881cd919-6614-4ef5-aaea-f02b25c043d4", e._sentryDebugIdIdentifier = "sentry-dbid-881cd919-6614-4ef5-aaea-f02b25c043d4");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
@@ -87,7 +87,7 @@ var D = typeof window < "u" && window.navigator && window.navigator.platform &&
|
|
|
87
87
|
a.targetTouches.length === 1 && Oe(a, o);
|
|
88
88
|
}, E || (document.addEventListener("touchmove", O, _ ? { passive: !1 } : void 0), E = !0));
|
|
89
89
|
}
|
|
90
|
-
},
|
|
90
|
+
}, Me = function(o) {
|
|
91
91
|
if (!o) {
|
|
92
92
|
console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");
|
|
93
93
|
return;
|
|
@@ -99,22 +99,22 @@ var D = typeof window < "u" && window.navigator && window.navigator.platform &&
|
|
|
99
99
|
name: "SidePanelCloseButton",
|
|
100
100
|
emits: ["close"]
|
|
101
101
|
});
|
|
102
|
-
const
|
|
102
|
+
const Le = /* @__PURE__ */ r(
|
|
103
103
|
"span",
|
|
104
104
|
{ class: "vsp-close__x" },
|
|
105
105
|
null,
|
|
106
106
|
-1
|
|
107
107
|
/* HOISTED */
|
|
108
108
|
), Fe = [
|
|
109
|
-
|
|
109
|
+
Le
|
|
110
110
|
];
|
|
111
|
-
function
|
|
111
|
+
function Ge(e, o, t, n, a, i) {
|
|
112
112
|
return u(), m("div", {
|
|
113
113
|
class: "vsp-close",
|
|
114
114
|
onClick: o[0] || (o[0] = (l) => e.$emit("close"))
|
|
115
115
|
}, [...Fe]);
|
|
116
116
|
}
|
|
117
|
-
K.render =
|
|
117
|
+
K.render = Ge;
|
|
118
118
|
K.__file = "src/components/SidePanelCloseButton.vue";
|
|
119
119
|
var Y = C({
|
|
120
120
|
name: "VueSidePanel",
|
|
@@ -208,16 +208,16 @@ var Y = C({
|
|
|
208
208
|
emits: ["update:modelValue", "closed", "opened"],
|
|
209
209
|
setup(e, { emit: o, attrs: t }) {
|
|
210
210
|
let n;
|
|
211
|
-
const a = c(null), i = c(null), l = c(null), s = c(null), d = c(null), f = c(0), h = c(0), A = c(0),
|
|
212
|
-
window?.innerHeight > 0 && (
|
|
213
|
-
}, de = () => o("update:modelValue", !1),
|
|
211
|
+
const a = c(null), i = c(null), l = c(null), s = c(null), d = c(null), f = c(0), h = c(0), A = c(0), M = c(0), L = c(0), F = c(), J = c(!1), B = async () => {
|
|
212
|
+
window?.innerHeight > 0 && (L.value = window.innerHeight), f.value = l.value ? l.value.clientHeight : 0, A.value = s.value ? s.value.clientHeight : 0, h.value = d.value ? d.value.scrollHeight : 0, M.value = a.value ? a.value.clientHeight : 0;
|
|
213
|
+
}, de = () => o("update:modelValue", !1), G = (p, g) => {
|
|
214
214
|
if (g) {
|
|
215
215
|
setTimeout(() => {
|
|
216
216
|
ze(p, { reserveScrollBarGap: !0 }), e.lockScrollHtml && (document.documentElement.style.overflow = "hidden");
|
|
217
217
|
}, 0);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
Me(p), e.lockScrollHtml && document.documentElement.style.removeProperty("overflow");
|
|
221
221
|
}, re = () => Math.max(...Array.from(document.querySelectorAll("body *"), (p) => parseFloat(window.getComputedStyle(p).zIndex)).filter((p) => !Number.isNaN(p)), 0);
|
|
222
222
|
j(() => {
|
|
223
223
|
F.value = e.zIndex === "auto" ? re() : e.zIndex;
|
|
@@ -225,27 +225,27 @@ var Y = C({
|
|
|
225
225
|
document.getElementById(e.idName) || (n = document.createElement("div"), n.setAttribute("id", e.idName), document.body.appendChild(n));
|
|
226
226
|
}), me(() => {
|
|
227
227
|
const { modelValue: p, lockScroll: g } = e;
|
|
228
|
-
g && a.value && p &&
|
|
229
|
-
}),
|
|
228
|
+
g && a.value && p && G(a.value, !1), n && document.body.removeChild(n), window.removeEventListener("resize", B);
|
|
229
|
+
}), Q(() => [s.value, l.value, e.height, e.width, e.side, e.modelValue], () => {
|
|
230
230
|
be(() => B());
|
|
231
|
-
}),
|
|
232
|
-
const fe = g ? g[0] : !1, [
|
|
231
|
+
}), Q(() => [e.modelValue, a.value], (p, g) => {
|
|
232
|
+
const fe = g ? g[0] : !1, [R, N] = p, pe = R, ye = fe && !R;
|
|
233
233
|
if (N) {
|
|
234
|
-
if (pe && (J.value = !!document.body.style.overflow),
|
|
235
|
-
e.lockScroll &&
|
|
234
|
+
if (pe && (J.value = !!document.body.style.overflow), R) {
|
|
235
|
+
e.lockScroll && G(N, !0), B(), window.addEventListener("resize", B);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
!e.lockScroll || !ye || J.value || (setTimeout(() => {
|
|
239
|
-
N &&
|
|
239
|
+
N && G(N, !1);
|
|
240
240
|
}, e.panelDuration), window.removeEventListener("resize", B));
|
|
241
241
|
}
|
|
242
242
|
}, { immediate: !0 });
|
|
243
243
|
const se = U(() => {
|
|
244
|
-
if (!
|
|
244
|
+
if (!M.value)
|
|
245
245
|
return;
|
|
246
246
|
const p = h.value + A.value + f.value;
|
|
247
|
-
let g =
|
|
248
|
-
return ["top", "bottom"].includes(e.side) && e.height === "auto" && (g =
|
|
247
|
+
let g = M.value - A.value - f.value;
|
|
248
|
+
return ["top", "bottom"].includes(e.side) && e.height === "auto" && (g = L.value >= p ? h.value : L.value - A.value - f.value), g;
|
|
249
249
|
}), ue = U(() => ({
|
|
250
250
|
zIndex: F.value,
|
|
251
251
|
animationDuration: `${e.overlayDuration}ms`,
|
|
@@ -279,7 +279,7 @@ var Y = C({
|
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
|
-
function
|
|
282
|
+
function Re(e, o, t, n, a, i) {
|
|
283
283
|
const l = he("SidePanelCloseButton");
|
|
284
284
|
return u(), I(ge, {
|
|
285
285
|
to: `#${e.idName}`
|
|
@@ -295,7 +295,7 @@ function Ge(e, o, t, n, a, i) {
|
|
|
295
295
|
persisted: ""
|
|
296
296
|
}, {
|
|
297
297
|
default: $(() => [
|
|
298
|
-
|
|
298
|
+
X(r(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
ref: "overlay",
|
|
@@ -307,7 +307,7 @@ function Ge(e, o, t, n, a, i) {
|
|
|
307
307
|
4
|
|
308
308
|
/* STYLE */
|
|
309
309
|
), [
|
|
310
|
-
[
|
|
310
|
+
[Z, e.modelValue]
|
|
311
311
|
])
|
|
312
312
|
]),
|
|
313
313
|
_: 1
|
|
@@ -319,7 +319,7 @@ function Ge(e, o, t, n, a, i) {
|
|
|
319
319
|
onAfterLeave: o[2] || (o[2] = (s) => e.$emit("closed"))
|
|
320
320
|
}, {
|
|
321
321
|
default: $(() => [
|
|
322
|
-
!e.rerender || e.modelValue ?
|
|
322
|
+
!e.rerender || e.modelValue ? X((u(), m(
|
|
323
323
|
"div",
|
|
324
324
|
{
|
|
325
325
|
key: 0,
|
|
@@ -375,7 +375,7 @@ function Ge(e, o, t, n, a, i) {
|
|
|
375
375
|
6
|
|
376
376
|
/* CLASS, STYLE */
|
|
377
377
|
)), [
|
|
378
|
-
[
|
|
378
|
+
[Z, e.rerender ? !0 : e.modelValue]
|
|
379
379
|
]) : S("v-if", !0)
|
|
380
380
|
]),
|
|
381
381
|
_: 3
|
|
@@ -387,7 +387,7 @@ function Ge(e, o, t, n, a, i) {
|
|
|
387
387
|
)
|
|
388
388
|
], 8, ["to"]);
|
|
389
389
|
}
|
|
390
|
-
Y.render =
|
|
390
|
+
Y.render = Re;
|
|
391
391
|
Y.__file = "src/components/SidePanel.vue";
|
|
392
392
|
const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-panel-title" }, je = {
|
|
393
393
|
key: 0,
|
|
@@ -523,7 +523,7 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
|
|
|
523
523
|
_: 1
|
|
524
524
|
}, 8, ["label", "id", "required", "readonly"]));
|
|
525
525
|
}
|
|
526
|
-
}), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]),
|
|
526
|
+
}), fo = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-5cd094ab"]]), Qe = ["required", "type", "name", "readonly", "disabled", "value", "checked"], Xe = ["data-test"], Ze = { key: 0 }, xe = {
|
|
527
527
|
key: 1,
|
|
528
528
|
class: /* @__PURE__ */ v(["konnectio-click-box-label", "inline"])
|
|
529
529
|
}, eo = /* @__PURE__ */ C({
|
|
@@ -574,7 +574,7 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
|
|
|
574
574
|
value: l.type === "radio" ? l.val : l.modelValue,
|
|
575
575
|
checked: l.type === "radio" ? l.val === l.modelValue : !!l.modelValue,
|
|
576
576
|
onChange: s[0] || (s[0] = (d) => i())
|
|
577
|
-
}), null, 16,
|
|
577
|
+
}), null, 16, Qe),
|
|
578
578
|
r("div", {
|
|
579
579
|
class: v([
|
|
580
580
|
"konnectio-click-box",
|
|
@@ -584,13 +584,13 @@ const Ue = { id: "konnectio-side-panel-header" }, We = { id: "konnectio-side-pan
|
|
|
584
584
|
style: q(l.inputStyle),
|
|
585
585
|
"data-test": l.name,
|
|
586
586
|
onKeyup: s[1] || (s[1] = ke((d) => i(), ["enter"]))
|
|
587
|
-
}, null, 46,
|
|
587
|
+
}, null, 46, Xe),
|
|
588
588
|
l.label ? (u(), m("div", {
|
|
589
589
|
key: 0,
|
|
590
590
|
class: v(["konnectio-click-box-label", "text-hover", { "with-price": l.price }])
|
|
591
591
|
}, [
|
|
592
592
|
r("span", null, b(l.label), 1),
|
|
593
|
-
l.price ? (u(), m("span",
|
|
593
|
+
l.price ? (u(), m("span", Ze, b(l.price), 1)) : S("", !0)
|
|
594
594
|
], 2)) : y(a).default ? (u(), m("div", xe, [
|
|
595
595
|
V(l.$slots, "default", {}, void 0, !0)
|
|
596
596
|
])) : S("", !0)
|
|
@@ -665,4 +665,4 @@ export {
|
|
|
665
665
|
lo as _,
|
|
666
666
|
po as a
|
|
667
667
|
};
|
|
668
|
-
//# sourceMappingURL=CheckoutWindow-
|
|
668
|
+
//# sourceMappingURL=CheckoutWindow-POqLB9M4.js.map
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as g, o as B,
|
|
2
|
-
import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
1
|
+
import { d as g, o as B, a as J, g as E, t as i, p as S, j as R } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { _ as k } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var A = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, C = new Error().stack;
|
|
6
|
-
C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "
|
|
6
|
+
C && (A._sentryDebugIds = A._sentryDebugIds || {}, A._sentryDebugIds[C] = "c7cc16bb-4e67-4652-8ae3-76614729d263", A._sentryDebugIdIdentifier = "sentry-dbid-c7cc16bb-4e67-4652-8ae3-76614729d263");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
@@ -42,4 +42,4 @@ const o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACCQAAAgkCAYAAABoLDe6AAA
|
|
|
42
42
|
export {
|
|
43
43
|
l as E
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=ErrorMessage-
|
|
45
|
+
//# sourceMappingURL=ErrorMessage-DACtGUvq.js.map
|
|
Binary file
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { r as i,
|
|
2
|
-
import {
|
|
1
|
+
import { r as i, c as a, d as Ke, h as He, o as W, a as me, f as X, w as Qe, u as z, b as Je, e as fe, l as We, n as Xe, i as Ye } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { d as Ze, u as et, s as ee, v as tt, a as at, b as ge, m as te, w as p, c as Y, O as ye, S as Z, x as nt, e as $, g as C, i as N, y as ot, h as lt, k as st, C as it, _ as rt } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
|
|
3
3
|
import "./navigation.js";
|
|
4
|
-
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
4
|
+
import { _ as ut } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Cb15NqtR.js";
|
|
5
5
|
(function() {
|
|
6
6
|
try {
|
|
7
7
|
var I = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, l = new Error().stack;
|
|
8
|
-
l && (I._sentryDebugIds = I._sentryDebugIds || {}, I._sentryDebugIds[l] = "
|
|
8
|
+
l && (I._sentryDebugIds = I._sentryDebugIds || {}, I._sentryDebugIds[l] = "8887955a-a441-498c-9094-7b31e0a2f5ea", I._sentryDebugIdIdentifier = "sentry-dbid-8887955a-a441-498c-9094-7b31e0a2f5ea");
|
|
9
9
|
} catch {
|
|
10
10
|
}
|
|
11
11
|
})();
|
|
12
12
|
const ct = Ze("event", () => {
|
|
13
|
-
const I = et(), { voucher: l } = ee(tt()), { display:
|
|
13
|
+
const I = et(), { voucher: l } = ee(tt()), { display: m } = at(), { bearerToken: w, metaData: F } = ee(ge()), j = ge(), b = te(), f = i({}), B = a(() => Object.keys(f.value).length > 0), t = i(void 0), o = i(!0), r = i(p.InitialState), A = i(NaN), T = i(1), k = i(NaN), V = i(NaN), D = i(""), E = Y("konnectio_name", "", void 0, { serializer: Z.string }), G = Y("konnectio_phone", "", void 0, { serializer: Z.string }), x = Y("konnectio_email", "", void 0, { serializer: Z.string }), u = i(""), g = i({}), d = i({}), U = i("");
|
|
14
14
|
function s(e) {
|
|
15
15
|
return e ? e.templateId !== void 0 : !1;
|
|
16
16
|
}
|
|
17
|
-
const he = a(() =>
|
|
17
|
+
const he = a(() => j.metaData.hotels.findIndex((e) => e.id === b.eventLocation) || 0), O = a(() => j.metaData.hotels[he.value]), be = a(() => O.value.maxNumberPerBooking ? O.value.maxNumberPerBooking : 1 / 0), ke = a(() => O.value.name ? O.value.name : ""), De = a(() => O.value.subtitle ? O.value.subtitle : ""), M = a(() => b.searchDate.toISOString()), Ie = a(() => s(t.value)), q = a(() => s(t.value) ? t.value.numberOfDays : T.value), we = a(() => s(t.value) ? t.value.packageCount : 0), Ae = a(() => s(t.value) ? t.value.fromDate : ""), L = a(() => f.value.events !== void 0 ? f.value.events.find((e) => e.id === k.value) : void 0), Se = a(() => L.value ? L.value.length : void 0), ae = a(() => s(t.value) ? t.value.templateId : 0), Pe = a(() => f.value.events), Ee = a(() => f.value.templates), Le = a(() => f.value.events.length > 0), _e = a(() => f.value.templates.length > 0), ne = a(() => L.value && L.value.eventRateType ? L.value.eventRateType : ye.None), K = a(() => {
|
|
18
18
|
if (!s(t.value))
|
|
19
19
|
return t.value;
|
|
20
20
|
}), oe = a(() => {
|
|
@@ -78,7 +78,7 @@ const ct = Ze("event", () => {
|
|
|
78
78
|
for (const c in e)
|
|
79
79
|
n += Number.isNaN(e[c]) ? 0 : e[c];
|
|
80
80
|
return n > 0;
|
|
81
|
-
}), ie = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Me = a(() => !!(E.value !== "" &&
|
|
81
|
+
}), ie = a(() => s(t.value) ? !1 : Object.keys(d.value).length > 0), Me = a(() => !!(E.value !== "" && x.value !== "" && G.value.length >= 5 && (!ie.value || Oe.value) && (!(!s(t.value) && ne.value !== ye.FullDayEvent) || D.value !== "")));
|
|
82
82
|
function Re(e) {
|
|
83
83
|
return r.value === p.ReservationState && k.value === e && o.value;
|
|
84
84
|
}
|
|
@@ -96,7 +96,7 @@ const ct = Ze("event", () => {
|
|
|
96
96
|
})).data;
|
|
97
97
|
F.value = e, ue();
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
m({
|
|
100
100
|
message: N.t("alert.error.couldntFetchMetadata"),
|
|
101
101
|
type: "warning"
|
|
102
102
|
});
|
|
@@ -116,9 +116,9 @@ const ct = Ze("event", () => {
|
|
|
116
116
|
Accept: "application/json"
|
|
117
117
|
}
|
|
118
118
|
})).data;
|
|
119
|
-
|
|
119
|
+
f.value = e, o.value = !1;
|
|
120
120
|
} catch {
|
|
121
|
-
|
|
121
|
+
m({
|
|
122
122
|
message: N.t("alert.error.couldntFetchListings"),
|
|
123
123
|
type: "warning"
|
|
124
124
|
});
|
|
@@ -140,18 +140,18 @@ const ct = Ze("event", () => {
|
|
|
140
140
|
Accept: "application/json"
|
|
141
141
|
}
|
|
142
142
|
})).data;
|
|
143
|
-
n.rooms.length === 0 ?
|
|
143
|
+
n.rooms.length === 0 ? m({
|
|
144
144
|
message: N.t("alert.error.eventNotAvailable"),
|
|
145
145
|
type: "warning"
|
|
146
146
|
}) : (t.value = n, e()), o.value = !1;
|
|
147
147
|
} catch {
|
|
148
|
-
o.value = !1, r.value = p.AvailabilityState,
|
|
148
|
+
o.value = !1, r.value = p.AvailabilityState, m({
|
|
149
149
|
message: N.t("alert.error.couldntFetchEvent"),
|
|
150
150
|
type: "warning"
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
async function
|
|
154
|
+
async function xe(e) {
|
|
155
155
|
r.value = p.ReservationState, o.value = !0;
|
|
156
156
|
try {
|
|
157
157
|
const n = (await $.get("https://production.hotel-service.konnectio.dk/api/event/vacant-times", {
|
|
@@ -170,13 +170,13 @@ const ct = Ze("event", () => {
|
|
|
170
170
|
})).data;
|
|
171
171
|
t.value = n, o.value = !1, e();
|
|
172
172
|
} catch {
|
|
173
|
-
o.value = !1, r.value = p.AvailabilityState,
|
|
173
|
+
o.value = !1, r.value = p.AvailabilityState, m({
|
|
174
174
|
message: N.t("alert.error.couldntFetchEvent"),
|
|
175
175
|
type: "warning"
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
async function
|
|
179
|
+
async function je() {
|
|
180
180
|
try {
|
|
181
181
|
const e = (await $.post("https://production.hotel-service.konnectio.dk/api/event/validate-discount-code", {
|
|
182
182
|
language: C(),
|
|
@@ -191,7 +191,7 @@ const ct = Ze("event", () => {
|
|
|
191
191
|
})).data;
|
|
192
192
|
console.log(e);
|
|
193
193
|
} catch (e) {
|
|
194
|
-
console.log(e),
|
|
194
|
+
console.log(e), m({
|
|
195
195
|
message: N.t("alert.error.discountCodeValidation"),
|
|
196
196
|
type: "warning"
|
|
197
197
|
});
|
|
@@ -200,7 +200,7 @@ const ct = Ze("event", () => {
|
|
|
200
200
|
async function Be(e) {
|
|
201
201
|
r.value = p.PaymentState, o.value = !0;
|
|
202
202
|
const n = () => {
|
|
203
|
-
o.value = !1, r.value = p.ReservationState,
|
|
203
|
+
o.value = !1, r.value = p.ReservationState, m({
|
|
204
204
|
message: N.t("booking.other.errorMessage"),
|
|
205
205
|
type: "warning"
|
|
206
206
|
});
|
|
@@ -246,7 +246,7 @@ const ct = Ze("event", () => {
|
|
|
246
246
|
restaurantId: b.eventLocation,
|
|
247
247
|
date: ot(M.value),
|
|
248
248
|
name: E.value,
|
|
249
|
-
email:
|
|
249
|
+
email: x.value,
|
|
250
250
|
phone: G.value,
|
|
251
251
|
remark: u.value,
|
|
252
252
|
numberOfPeople: A.value,
|
|
@@ -277,7 +277,7 @@ const ct = Ze("event", () => {
|
|
|
277
277
|
return {
|
|
278
278
|
fetchMetaData: re,
|
|
279
279
|
metaData: F,
|
|
280
|
-
listingData:
|
|
280
|
+
listingData: f,
|
|
281
281
|
tableBasePrice: oe,
|
|
282
282
|
availabilityData: t,
|
|
283
283
|
isLoading: o,
|
|
@@ -292,7 +292,7 @@ const ct = Ze("event", () => {
|
|
|
292
292
|
discountCode: U,
|
|
293
293
|
name: E,
|
|
294
294
|
phone: G,
|
|
295
|
-
email:
|
|
295
|
+
email: x,
|
|
296
296
|
remark: u,
|
|
297
297
|
isTemplateEvent: Ie,
|
|
298
298
|
maxNumberOfPeople: be,
|
|
@@ -326,8 +326,8 @@ const ct = Ze("event", () => {
|
|
|
326
326
|
// fetchMetaData,
|
|
327
327
|
fetchListings: ue,
|
|
328
328
|
getTemplateAvailability: Ge,
|
|
329
|
-
getEventAvailability:
|
|
330
|
-
validateDiscountCode:
|
|
329
|
+
getEventAvailability: xe,
|
|
330
|
+
validateDiscountCode: je,
|
|
331
331
|
localAddonPrice: H,
|
|
332
332
|
totalAddonPrice: Q,
|
|
333
333
|
createBooking: Be,
|
|
@@ -346,16 +346,16 @@ const ct = Ze("event", () => {
|
|
|
346
346
|
},
|
|
347
347
|
setup(I) {
|
|
348
348
|
const l = I, {
|
|
349
|
-
eventLocation:
|
|
349
|
+
eventLocation: m,
|
|
350
350
|
eventLocations: w,
|
|
351
351
|
hasEventLocations: F,
|
|
352
|
-
eventLocationControl:
|
|
352
|
+
eventLocationControl: j,
|
|
353
353
|
searchDate: b,
|
|
354
|
-
isExpired:
|
|
355
|
-
} = ee(te()), { reset: B, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: A } = lt(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = i(
|
|
356
|
-
get: () => l.redirection ? k.value :
|
|
354
|
+
isExpired: f
|
|
355
|
+
} = ee(te()), { reset: B, fetchMetadata: t, updateEventAvailability: o } = te(), { fetchListings: r } = ct(), { t: A } = lt(), T = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), k = i(j.value), V = i(T()), D = a({
|
|
356
|
+
get: () => l.redirection ? k.value : m.value,
|
|
357
357
|
set: (u) => {
|
|
358
|
-
l.redirection ? k.value = Number(u) :
|
|
358
|
+
l.redirection ? k.value = Number(u) : m.value = Number(u);
|
|
359
359
|
}
|
|
360
360
|
}), E = a({
|
|
361
361
|
get: () => l.redirection ? V.value : b.value,
|
|
@@ -363,7 +363,7 @@ const ct = Ze("event", () => {
|
|
|
363
363
|
l.redirection ? V.value = u : b.value = u;
|
|
364
364
|
}
|
|
365
365
|
}), G = a(() => typeof l.link != "string");
|
|
366
|
-
function
|
|
366
|
+
function x() {
|
|
367
367
|
if (l.redirection === !0)
|
|
368
368
|
if (o({
|
|
369
369
|
date: E.value,
|
|
@@ -377,14 +377,14 @@ const ct = Ze("event", () => {
|
|
|
377
377
|
r();
|
|
378
378
|
}
|
|
379
379
|
return He(() => {
|
|
380
|
-
|
|
381
|
-
}), (u, g) => (W(),
|
|
380
|
+
f.value && B(), l.redirection === !1 && t();
|
|
381
|
+
}), (u, g) => (W(), me("form", {
|
|
382
382
|
class: Xe([
|
|
383
383
|
"konnectio-event-search-form",
|
|
384
384
|
{ "has-locations": z(F) },
|
|
385
385
|
{ "auto-search": !u.redirection }
|
|
386
386
|
]),
|
|
387
|
-
onSubmit: Ye(
|
|
387
|
+
onSubmit: Ye(x, ["prevent"])
|
|
388
388
|
}, [
|
|
389
389
|
X(We, {
|
|
390
390
|
class: "konnectio-event-search-form-content",
|
|
@@ -403,7 +403,7 @@ const ct = Ze("event", () => {
|
|
|
403
403
|
"value-key": "id",
|
|
404
404
|
options: z(w),
|
|
405
405
|
searchable: !1
|
|
406
|
-
}, null, 8, ["modelValue", "label", "options"])) :
|
|
406
|
+
}, null, 8, ["modelValue", "label", "options"])) : fe("", !0),
|
|
407
407
|
X(ut, {
|
|
408
408
|
modelValue: E.value,
|
|
409
409
|
"onUpdate:modelValue": g[1] || (g[1] = (d) => E.value = d),
|
|
@@ -413,12 +413,12 @@ const ct = Ze("event", () => {
|
|
|
413
413
|
"icon-placement": "label",
|
|
414
414
|
"min-date": /* @__PURE__ */ new Date()
|
|
415
415
|
}, null, 8, ["modelValue", "label", "min-date"]),
|
|
416
|
-
u.redirection ? (W(),
|
|
416
|
+
u.redirection ? (W(), me("li", vt, [
|
|
417
417
|
X(it, {
|
|
418
418
|
type: "submit",
|
|
419
419
|
label: z(A)("availability.buttonLabel")
|
|
420
420
|
}, null, 8, ["label"])
|
|
421
|
-
])) :
|
|
421
|
+
])) : fe("", !0)
|
|
422
422
|
]),
|
|
423
423
|
_: 1
|
|
424
424
|
})
|
|
@@ -429,4 +429,4 @@ export {
|
|
|
429
429
|
yt as E,
|
|
430
430
|
ct as u
|
|
431
431
|
};
|
|
432
|
-
//# sourceMappingURL=EventAvailabilityForm-
|
|
432
|
+
//# sourceMappingURL=EventAvailabilityForm-Dx4hfkc1.js.map
|
|
Binary file
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { d as l, o as a,
|
|
2
|
-
import { E as s, _ as
|
|
1
|
+
import { d as l, o as a, a as o, b as i, e as r, f as n, n as f } from "./_commonjsHelpers-BpcYSDvQ.js";
|
|
2
|
+
import { E as s, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Bi1FLGK9.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
|
|
6
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
6
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "75f031cb-3726-4512-b2ef-d1adee797621", t._sentryDebugIdIdentifier = "sentry-dbid-75f031cb-3726-4512-b2ef-d1adee797621");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
10
|
-
const
|
|
10
|
+
const c = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "skeleton-field-label"
|
|
13
|
-
},
|
|
13
|
+
}, b = { key: 1 }, h = /* @__PURE__ */ l({
|
|
14
14
|
__name: "Field",
|
|
15
15
|
props: {
|
|
16
16
|
withIcon: { type: Boolean, default: !1 },
|
|
@@ -25,7 +25,7 @@ const b = {
|
|
|
25
25
|
{ "no-label": e.noLabel }
|
|
26
26
|
])
|
|
27
27
|
}, [
|
|
28
|
-
e.noLabel ? (a(), o("div",
|
|
28
|
+
e.noLabel ? (a(), o("div", b)) : (a(), o("div", c, [
|
|
29
29
|
e.withIcon ? (a(), i(s, {
|
|
30
30
|
key: 0,
|
|
31
31
|
height: "15px",
|
|
@@ -43,8 +43,8 @@ const b = {
|
|
|
43
43
|
}, null, 8, ["height"])
|
|
44
44
|
], 2));
|
|
45
45
|
}
|
|
46
|
-
}), y = /* @__PURE__ */
|
|
46
|
+
}), y = /* @__PURE__ */ p(h, [["__scopeId", "data-v-992f78a1"]]);
|
|
47
47
|
export {
|
|
48
48
|
y as F
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=Field-
|
|
50
|
+
//# sourceMappingURL=Field-Nqc4wuqz.js.map
|
|
Binary file
|