@konnectio/core 4.0.9 → 4.0.10

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.
Files changed (119) hide show
  1. package/dist/{ActionField-f3d5b218.js → ActionField-68f65af4.js} +4 -4
  2. package/dist/ActionField-68f65af4.js.br +0 -0
  3. package/dist/ActionField-ab9c01ab.cjs +1 -0
  4. package/dist/AvailabilitySkeleton-c48588e4.js +382 -0
  5. package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +1 -0
  7. package/dist/{payment-cce506b8.js → DateField.vue_vue_type_style_index_0_lang-87ddfed8.js} +3216 -2953
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-b6694990.cjs +5 -0
  10. package/dist/Field-b76d82cb.js +42 -0
  11. package/dist/Field-b76d82cb.js.br +0 -0
  12. package/dist/Field-d926807f.cjs +1 -0
  13. package/dist/{applyGiftCard-dea77ba6.js → NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js} +59 -59
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +806 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js +19169 -0
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
  19. package/dist/{TextField-99e69631.cjs → TextField-528ca68c.cjs} +1 -1
  20. package/dist/{TextField-b8f4462a.js → TextField-8f6e5ef5.js} +139 -137
  21. package/dist/TextField-8f6e5ef5.js.br +0 -0
  22. package/dist/ThankYou-2f3c4efe.js +11777 -0
  23. package/dist/ThankYou-2f3c4efe.js.br +0 -0
  24. package/dist/ThankYou-8ae535bf.cjs +54 -0
  25. package/dist/_-3cff5490.cjs +1 -0
  26. package/dist/_-734c9d50.js +82 -0
  27. package/dist/_-734c9d50.js.br +0 -0
  28. package/dist/assets/typescript/mixins.d.ts +1 -4
  29. package/dist/availability.cjs +2 -2
  30. package/dist/availability.js +94 -142
  31. package/dist/availability.js.br +0 -0
  32. package/dist/components/Icon.vue.d.ts +1 -1
  33. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  34. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  35. package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -0
  36. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +1 -0
  37. package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
  38. package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
  39. package/dist/components/forms/_.vue.d.ts +4 -0
  40. package/dist/components/forms/_.vue.d.ts.map +1 -0
  41. package/dist/components/inputs/InputField.vue.d.ts +1 -1
  42. package/dist/components/listings/Base.vue.d.ts +1 -1
  43. package/dist/components/listings/Event.vue.d.ts +1 -1
  44. package/dist/components/listings/{Test.vue.d.ts → Hotel.vue.d.ts} +3 -3
  45. package/dist/components/listings/Hotel.vue.d.ts.map +1 -0
  46. package/dist/components/modals/Info.vue.d.ts +1 -1
  47. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +1 -1
  48. package/dist/components/skeletons/Field.vue.d.ts +1 -1
  49. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
  50. package/dist/components/{side-panels/Hotel.vue.d.ts → skeletons/Sidebar.vue.d.ts} +3 -3
  51. package/dist/components/skeletons/Sidebar.vue.d.ts.map +1 -0
  52. package/dist/components/skeletons/_.vue.d.ts +1 -1
  53. package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
  54. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  55. package/dist/components/views/ThankYou.vue.d.ts +1 -1
  56. package/dist/event-4662e27c.cjs +1 -0
  57. package/dist/{event-a9067cf5.js → event-e08d0178.js} +37 -37
  58. package/dist/event-e08d0178.js.br +0 -0
  59. package/dist/event.cjs +1 -2
  60. package/dist/event.js +402 -706
  61. package/dist/event.js.br +0 -0
  62. package/dist/gift-card-validation.cjs +1 -1
  63. package/dist/gift-card-validation.js +72 -126
  64. package/dist/gift-card-validation.js.br +0 -0
  65. package/dist/gift-card.cjs +1 -1
  66. package/dist/gift-card.js +302 -390
  67. package/dist/gift-card.js.br +0 -0
  68. package/dist/hotel.cjs +5 -5
  69. package/dist/hotel.js +2215 -2229
  70. package/dist/hotel.js.br +0 -0
  71. package/dist/{index-ec04c269.cjs → index-a46a0876.cjs} +1 -1
  72. package/dist/{index-d080b5a0.js → index-c28f52d1.js} +32 -14
  73. package/dist/index-c28f52d1.js.br +0 -0
  74. package/dist/layouts/Availability.vue.d.ts +20 -67
  75. package/dist/layouts/Event.vue.d.ts +16 -242
  76. package/dist/layouts/GiftCard.vue.d.ts +29 -280
  77. package/dist/layouts/GiftCardValidation.vue.d.ts +16 -226
  78. package/dist/layouts/Hotel.vue.d.ts +33 -378
  79. package/dist/layouts/_.vue.d.ts +31 -20
  80. package/dist/polyfill.cjs +4 -4
  81. package/dist/polyfill.js +1586 -1575
  82. package/dist/polyfill.js.br +0 -0
  83. package/dist/store/availability.d.ts +1 -1
  84. package/dist/store/giftCard.d.ts +3 -3
  85. package/dist/store/hotel.d.ts +318 -204
  86. package/dist/store/tracking.d.ts +6 -14
  87. package/dist/store/utilities.d.ts +87 -81
  88. package/dist/style.css +1 -1
  89. package/dist/style.css.br +0 -0
  90. package/dist/types/index.d.ts +44 -8
  91. package/package.json +21 -21
  92. package/dist/ActionField-b87d2fd7.cjs +0 -1
  93. package/dist/ActionField-f3d5b218.js.br +0 -0
  94. package/dist/AvailabilitySkeleton-019ec202.js +0 -150
  95. package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
  96. package/dist/AvailabilitySkeleton-e288f5be.cjs +0 -1
  97. package/dist/Field-21bb32d7.cjs +0 -1
  98. package/dist/Field-6bfeedce.js +0 -59
  99. package/dist/Field-6bfeedce.js.br +0 -0
  100. package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js +0 -17193
  101. package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
  102. package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +0 -797
  103. package/dist/TextField-b8f4462a.js.br +0 -0
  104. package/dist/ThankYou-add684c1.cjs +0 -66
  105. package/dist/ThankYou-edbf753b.js +0 -14279
  106. package/dist/ThankYou-edbf753b.js.br +0 -0
  107. package/dist/applyGiftCard-c21f13ac.cjs +0 -1
  108. package/dist/applyGiftCard-dea77ba6.js.br +0 -0
  109. package/dist/components/forms/ReservationFormTest.vue.d.ts +0 -5
  110. package/dist/components/forms/ReservationFormTest.vue.d.ts.map +0 -1
  111. package/dist/components/listings/Test.vue.d.ts.map +0 -1
  112. package/dist/components/side-panels/Base.vue.d.ts +0 -5
  113. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  114. package/dist/components/side-panels/Hotel.vue.d.ts.map +0 -1
  115. package/dist/event-2c6a2138.cjs +0 -1
  116. package/dist/event-a9067cf5.js.br +0 -0
  117. package/dist/index-d080b5a0.js.br +0 -0
  118. package/dist/payment-95b2392a.cjs +0 -2
  119. package/dist/payment-cce506b8.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,235 +1,14 @@
1
- import { h as Ue, t as ze, u as He, s as Fe, r as Ye, c as Je, k as u, l as j, T as Ke, w as R, q as t, m as g, z as x, v as i, n as e, U as Qe, V as Ve, y as b, W as Ee, D as k, X as Xe, A as K, Y as Ze, _ as xe, a as Ge, o as en, P as nn, x as ne, Z as Y, $ as te, a0 as $e, O as De, a1 as je, a2 as tn, a3 as Be, B as Re, G as on, J as ln, K as rn, M as an, L as sn, N as un } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
2
- import { B as dn, M as cn, R as pn, C as mn, T as fn, z as bn, x as vn } from "./ThankYou-edbf753b.js";
3
- import { P as yn, C as We, S as gn, i as hn } from "./index-d080b5a0.js";
4
- import { c as kn, g as Cn } from "./_commonjsHelpers-c5d32002.js";
5
- import { u as ye } from "./event-a9067cf5.js";
6
- import { A as Sn } from "./ActionField-f3d5b218.js";
7
- import { T as Ae } from "./TextField-b8f4462a.js";
8
- import { _ as wn } from "./payment-cce506b8.js";
9
- import { _ as Te } from "./applyGiftCard-dea77ba6.js";
10
- var Ne = { exports: {} };
11
- (function(N, d) {
12
- (function(a, V) {
13
- N.exports = V();
14
- })(kn, function() {
15
- function a(n, o, l) {
16
- return (o = function(p) {
17
- var f = function(v, w) {
18
- if (typeof v != "object" || v === null)
19
- return v;
20
- var m = v[Symbol.toPrimitive];
21
- if (m !== void 0) {
22
- var s = m.call(v, w || "default");
23
- if (typeof s != "object")
24
- return s;
25
- throw new TypeError("@@toPrimitive must return a primitive value.");
26
- }
27
- return (w === "string" ? String : Number)(v);
28
- }(p, "string");
29
- return typeof f == "symbol" ? f : String(f);
30
- }(o)) in n ? Object.defineProperty(n, o, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : n[o] = l, n;
31
- }
32
- function V(n, o) {
33
- var l = Object.keys(n);
34
- if (Object.getOwnPropertySymbols) {
35
- var p = Object.getOwnPropertySymbols(n);
36
- o && (p = p.filter(function(f) {
37
- return Object.getOwnPropertyDescriptor(n, f).enumerable;
38
- })), l.push.apply(l, p);
39
- }
40
- return l;
41
- }
42
- function C(n) {
43
- for (var o = 1; o < arguments.length; o++) {
44
- var l = arguments[o] != null ? arguments[o] : {};
45
- o % 2 ? V(Object(l), !0).forEach(function(p) {
46
- J(n, p, l[p]);
47
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(l)) : V(Object(l)).forEach(function(p) {
48
- Object.defineProperty(n, p, Object.getOwnPropertyDescriptor(l, p));
49
- });
50
- }
51
- return n;
52
- }
53
- function I(n) {
54
- return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
55
- return typeof o;
56
- } : function(o) {
57
- return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
58
- }, I(n);
59
- }
60
- function J(n, o, l) {
61
- return (o = function(p) {
62
- var f = function(v, w) {
63
- if (typeof v != "object" || v === null)
64
- return v;
65
- var m = v[Symbol.toPrimitive];
66
- if (m !== void 0) {
67
- var s = m.call(v, w);
68
- if (typeof s != "object")
69
- return s;
70
- throw new TypeError("@@toPrimitive must return a primitive value.");
71
- }
72
- return String(v);
73
- }(p, "string");
74
- return typeof f == "symbol" ? f : String(f);
75
- }(o)) in n ? Object.defineProperty(n, o, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : n[o] = l, n;
76
- }
77
- function oe(n, o) {
78
- (o == null || o > n.length) && (o = n.length);
79
- for (var l = 0, p = new Array(o); l < o; l++)
80
- p[l] = n[l];
81
- return p;
82
- }
83
- function X(n, o) {
84
- var l = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
85
- if (!l) {
86
- if (Array.isArray(n) || (l = function(s, O) {
87
- if (s) {
88
- if (typeof s == "string")
89
- return oe(s, O);
90
- var S = Object.prototype.toString.call(s).slice(8, -1);
91
- return S === "Object" && s.constructor && (S = s.constructor.name), S === "Map" || S === "Set" ? Array.from(s) : S === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S) ? oe(s, O) : void 0;
92
- }
93
- }(n)) || o && n && typeof n.length == "number") {
94
- l && (n = l);
95
- var p = 0, f = function() {
96
- };
97
- return { s: f, n: function() {
98
- return p >= n.length ? { done: !0 } : { done: !1, value: n[p++] };
99
- }, e: function(s) {
100
- throw s;
101
- }, f };
102
- }
103
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
104
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
105
- }
106
- var v, w = !0, m = !1;
107
- return { s: function() {
108
- l = l.call(n);
109
- }, n: function() {
110
- var s = l.next();
111
- return w = s.done, s;
112
- }, e: function(s) {
113
- m = !0, v = s;
114
- }, f: function() {
115
- try {
116
- w || l.return == null || l.return();
117
- } finally {
118
- if (m)
119
- throw v;
120
- }
121
- } };
122
- }
123
- var W = function(n) {
124
- var o = window.getComputedStyle(n), l = parseFloat(o.height), p = o.lineHeight === "normal" ? 1.2 * parseFloat(o.fontSize) : parseFloat(o.lineHeight);
125
- return l === 0 && p === 0 ? 0 : Math.ceil(l / p);
126
- }, A = /* @__PURE__ */ new WeakMap(), T = function(n) {
127
- return A.get(n);
128
- }, h = function(n, o) {
129
- A.set(n, o);
130
- }, Z = function(n) {
131
- return { hasEllipsis: T(n).hasEllipsis };
132
- }, le = function(n) {
133
- var o = C({}, T(n));
134
- o?.observer && o?.observer.disconnect(), o?.observer && (o == null || delete o.prevWidth), o?.observer && (o == null || delete o.prevHeight), o?.observer && (o == null || delete o.observer), h(n, o);
135
- }, L = { mode: "css", lines: 3, ellipsis: ". . .", midWord: !0, textContent: null }, r = function(n) {
136
- if (typeof n == "number")
137
- return parseInt(n.toString());
138
- if (typeof n == "string") {
139
- var o = parseInt(n);
140
- if (!isNaN(o))
141
- return o;
142
- }
143
- return L.lines;
144
- }, U = function(n) {
145
- return typeof CSS < "u" && CSS.supports("display", "-webkit-box") && CSS.supports("-webkit-line-clamp", "3") && CSS.supports("-webkit-box-orient", "vertical") ? n === "css" || n === "js" ? n : L.mode : "js";
146
- }, M = function(n) {
147
- return typeof n == "string" ? n : typeof n == "number" ? n.toString() : L.ellipsis;
148
- }, ge = function(n) {
149
- return typeof n == "boolean" ? n : L.midWord;
150
- }, he = function(n) {
151
- return typeof n == "string" ? n : typeof n == "number" ? n.toString() : L.textContent;
152
- }, me = function(n) {
153
- var o, l = T(n);
154
- n.textContent = (o = l?.fullText) !== null && o !== void 0 ? o : n.textContent, n.style.display = "", n.style.webkitLineClamp = "", n.style.webkitBoxOrient = "", n.style.overflow = "";
155
- }, fe = function(n, o, l) {
156
- var p = !function(m) {
157
- return A.has(m);
158
- }(n), f = T(n), v = function(m) {
159
- if (I(m) !== "object" || m === null)
160
- return L;
161
- var s = m, O = s.mode, S = s.lines, y = s.ellipsis, P = s.midWord, q = s.textContent;
162
- return { mode: U(O), lines: r(S), ellipsis: M(y), midWord: ge(P), textContent: he(q) };
163
- }(o);
164
- h(n, C(C(C({}, f), v), {}, { hasEllipsis: !p && f?.hasEllipsis, fullText: v.textContent ? v.textContent : p ? n.textContent : f?.fullText }));
165
- var w = function() {
166
- var m = Z(n), s = T(n);
167
- me(n);
168
- var O = W(n);
169
- if (s.mode === "css" && function(y, P) {
170
- var q = P.lines, ae = P.fullText;
171
- y.textContent = ae, y.style.display = "-webkit-box", y.style.webkitLineClamp = q.toString(), y.style.webkitBoxOrient = "vertical", y.style.overflow = "hidden";
172
- }(n, s), s.mode === "js" && function(y, P) {
173
- var q = P.lines, ae = P.midWord, D = P.fullText, se = P.ellipsis, we = ae ? [". ", ", ", " ", ""] : [". ", ", ", " "];
174
- if (y.textContent = D, y.style.display = "", y.style.webkitLineClamp = "", y.style.webkitBoxOrient = "", y.style.overflow = "", !(q <= 0 || W(y) <= q)) {
175
- var G = { unprocessed: D, processed: "" };
176
- we.forEach(function(ue) {
177
- var be, ee = X(G.unprocessed.split(ue));
178
- try {
179
- for (ee.s(); !(be = ee.n()).done; ) {
180
- var re = be.value;
181
- if (y.textContent = "".concat(G.processed).concat(re).concat(ue).concat(se), W(y) > q) {
182
- G.unprocessed = re;
183
- break;
184
- }
185
- G.processed = "".concat(G.processed).concat(re).concat(ue);
186
- }
187
- } catch (Pe) {
188
- ee.e(Pe);
189
- } finally {
190
- ee.f();
191
- }
192
- }), y.textContent = "".concat(G.processed.trim()).concat(se);
193
- }
194
- }(n, s), h(n, C(C({}, s), {}, { hasEllipsis: W(n) < O })), l) {
195
- var S = Z(n);
196
- l(S, m);
197
- }
198
- };
199
- if (typeof ResizeObserver < "u")
200
- return le(n), void function(m, s) {
201
- var O = T(m), S = O.observer || new ResizeObserver(function() {
202
- var y = T(m);
203
- if (m.clientWidth !== y.prevWidth || m.clientHeight !== y.prevHeight) {
204
- s();
205
- var P = C({}, y);
206
- P.prevWidth = m.clientWidth, P.prevHeight = m.clientHeight, h(m, P);
207
- }
208
- });
209
- S.observe(m), h(m, C(C({}, O), {}, { observer: S }));
210
- }(n, w);
211
- w();
212
- }, ke = function(n, o) {
213
- var l = o.value, p = l.lines, f = l.mode, v = l.midWord, w = l.ellipsis, m = l.onSnipped;
214
- fe(n, { lines: p, mode: f, midWord: v, ellipsis: w }, m);
215
- }, Ce = function(n, o, l) {
216
- var p, f = o.value, v = (l == null || (p = l.children) === null || p === void 0 ? void 0 : p[0]).text, w = f.lines, m = f.mode, s = f.midWord, O = f.ellipsis, S = f.onSnipped;
217
- fe(n, { lines: w, mode: m, midWord: s, ellipsis: O, textContent: v }, S);
218
- }, Se = function(n) {
219
- (function(o) {
220
- me(o), le(o), function(l) {
221
- A.delete(l);
222
- }(o);
223
- })(n);
224
- };
225
- return { install: function(n) {
226
- var o, l = parseFloat(n.version[0]) > 2;
227
- n.directive("snip", (a(o = {}, l ? "mounted" : "inserted", ke), a(o, l ? "updated" : "update", Ce), a(o, l ? "unmounted" : "unbind", Se), o));
228
- } };
229
- });
230
- })(Ne);
231
- var Pn = Ne.exports;
232
- const _n = /* @__PURE__ */ Cn(Pn), On = { class: "fresh-booking-event-listing-information" }, Bn = { key: 0 }, Tn = { key: 1 }, Fn = /* @__PURE__ */ Ue({
1
+ import { h as ge, y as he, u as Ie, s as H, a as ke, r as We, c as Ye, k as t, l as b, U as He, w as g, x as l, m as r, B as h, z as n, n as e, V as Ke, W as ie, q as i, X as re, t as u, Y as Qe, D as $, Z as Xe, _ as fe, o as Ze, $ as je, A as D, a0 as V, a1 as w, a2 as ue, O as de, a3 as me, a4 as Je, a5 as x, F as ce, H as xe, K as Ge, L as el, N as ll, a6 as nl, M as tl, P as al } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
2
+ import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-c28f52d1.js";
3
+ import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-2f3c4efe.js";
4
+ import { u as K } from "./event-e08d0178.js";
5
+ import { A as vl } from "./ActionField-68f65af4.js";
6
+ import { T as ve } from "./TextField-8f6e5ef5.js";
7
+ import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-87ddfed8.js";
8
+ import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js";
9
+ import "./_commonjsHelpers-c5d32002.js";
10
+ import "./_-734c9d50.js";
11
+ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }, kl = { key: 1 }, fl = /* @__PURE__ */ ge({
233
12
  __name: "Event",
234
13
  props: {
235
14
  name: {},
@@ -247,621 +26,538 @@ const _n = /* @__PURE__ */ Cn(Pn), On = { class: "fresh-booking-event-listing-in
247
26
  fromPrice: {},
248
27
  gallery: {},
249
28
  soldOut: { type: Boolean, default: !1 },
250
- styling: {},
251
29
  layout: {},
252
30
  trackingEnabled: { type: Boolean },
253
31
  callback: {}
254
32
  },
255
- setup(N) {
256
- const d = N, { t: a } = ze(), { display: V } = He(), {
257
- currency: C,
258
- maxNumberOfPeople: I,
259
- numberOfPeople: J,
260
- eventId: oe,
261
- tableGroupId: X
262
- } = Fe(ye()), {
263
- getTemplateAvailability: W,
264
- getEventAvailability: A,
265
- isEventListingLoading: T
266
- } = ye(), h = Ye(0), Z = Je(() => T(d.listingId)), le = () => {
267
- h.value > 0 ? (oe.value = d.listingId, J.value = h.value, W(d.callback)) : V({
33
+ setup(B) {
34
+ const o = B, { t: m } = he(), { display: E } = Ie(), { currency: z } = H(ke()), {
35
+ maxNumberOfPeople: C,
36
+ numberOfPeople: Q,
37
+ eventId: U,
38
+ tableGroupId: R
39
+ } = H(K()), {
40
+ getTemplateAvailability: N,
41
+ getEventAvailability: S,
42
+ isEventListingLoading: O
43
+ } = K(), P = We(0), I = Ye(() => O(o.listingId)), X = () => {
44
+ P.value > 0 ? (U.value = o.listingId, Q.value = P.value, N(o.callback)) : E({
268
45
  type: "error",
269
- message: a("alert.error.selectPeople")
46
+ message: m("alert.error.selectPeople")
270
47
  });
271
- }, L = () => {
272
- h.value > 0 ? (oe.value = d.listingId, X.value = d.tableGroupId, J.value = h.value, A(d.callback)) : V({
48
+ }, k = () => {
49
+ P.value > 0 ? (U.value = o.listingId, R.value = o.tableGroupId, Q.value = P.value, S(o.callback)) : E({
273
50
  type: "error",
274
- message: a("alert.error.selectPeople")
51
+ message: m("alert.error.selectPeople")
275
52
  });
276
53
  };
277
- return (r, U) => (u(), j(dn, {
278
- "listing-id": r.listingId,
279
- gallery: r.gallery,
280
- name: r.name,
281
- description: r.description,
282
- layout: e(Ze).Event,
283
- styling: r.styling,
284
- currency: e(C)
285
- }, Ke({
286
- action: R(() => [
287
- g(Sn, {
288
- modelValue: h.value,
289
- "onUpdate:modelValue": U[0] || (U[0] = (M) => h.value = M),
54
+ return (s, f) => (t(), b(ul, {
55
+ "listing-id": s.listingId,
56
+ gallery: s.gallery,
57
+ name: s.name,
58
+ description: s.description,
59
+ layout: e(Xe).Event
60
+ }, He({
61
+ action: g(() => [
62
+ r(vl, {
63
+ modelValue: P.value,
64
+ "onUpdate:modelValue": f[0] || (f[0] = (F) => P.value = F),
290
65
  type: "number",
291
- label: e(a)("event.numberOfGuests"),
292
- buttonLabel: r.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
293
- buttonDisabled: r.soldOut,
294
- "min-value": r.type === "event" ? 1 : r.minimumPersonCount,
295
- "max-value": r.type === "event" ? r.maxOnlineReservationLimit || 1 / 0 : e(I),
296
- "is-loading": Z.value,
297
- "onUpdate:isLoading": U[1] || (U[1] = (M) => Z.value = M),
298
- onAction: U[2] || (U[2] = (M) => r.type === "event" ? L() : le())
66
+ label: e(m)("event.numberOfGuests"),
67
+ buttonLabel: s.soldOut ? e(m)("event.soldOut") : e(m)("event.bookNowButton"),
68
+ buttonDisabled: s.soldOut,
69
+ "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
70
+ "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(C),
71
+ "is-loading": I.value,
72
+ "onUpdate:isLoading": f[1] || (f[1] = (F) => I.value = F),
73
+ onAction: f[2] || (f[2] = (F) => s.type === "event" ? k() : X())
299
74
  }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
300
75
  ]),
301
76
  _: 2
302
77
  }, [
303
- r.type === "event" ? {
78
+ s.type === "event" ? {
304
79
  name: "description",
305
- fn: R(() => [
306
- t("ul", On, [
307
- t("li", null, [
308
- g(x, {
80
+ fn: g(() => [
81
+ l("ul", gl, [
82
+ l("li", null, [
83
+ r(h, {
309
84
  icon: "calendar-range",
310
- "icon-color": r.styling.headerColor
311
- }, null, 8, ["icon-color"]),
312
- t("span", null, i(e(Qe)(r.days)), 1)
85
+ color: "header"
86
+ }),
87
+ l("span", null, n(e(Ke)(s.days)), 1)
313
88
  ]),
314
- e(Ve)(r.fromDate, r.toDate) < 180 ? (u(), b("li", Bn, [
315
- g(x, {
89
+ e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", hl, [
90
+ r(h, {
316
91
  icon: "calendar-days",
317
- "icon-color": r.styling.headerColor
318
- }, null, 8, ["icon-color"]),
319
- t("span", null, i(e(Ee)(r.fromDate, r.toDate)), 1)
320
- ])) : k("", !0),
321
- t("li", null, [
322
- g(x, {
92
+ color: "header"
93
+ }),
94
+ l("span", null, n(e(re)(s.fromDate, s.toDate)), 1)
95
+ ])) : u("", !0),
96
+ l("li", null, [
97
+ r(h, {
323
98
  icon: "calendar-clock",
324
- "icon-color": r.styling.headerColor
325
- }, null, 8, ["icon-color"]),
326
- t("span", null, i(e(Xe)(r.timeFrom, r.timeTo)), 1)
99
+ color: "header"
100
+ }),
101
+ l("span", null, n(e(Qe)(s.timeFrom, s.timeTo)), 1)
327
102
  ]),
328
- r.maxOnlineReservationLimit ? (u(), b("li", Tn, [
329
- g(x, {
103
+ s.maxOnlineReservationLimit ? (t(), i("li", kl, [
104
+ r(h, {
330
105
  icon: "user-alt",
331
- "icon-color": r.styling.headerColor
332
- }, null, 8, ["icon-color"]),
333
- t("span", null, i(`1 - ${r.maxOnlineReservationLimit} ${e(a)("general.people")}`), 1)
334
- ])) : k("", !0)
106
+ color: "header"
107
+ }),
108
+ l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(m)("general.people")}`), 1)
109
+ ])) : u("", !0)
335
110
  ])
336
111
  ]),
337
112
  key: "0"
338
113
  } : {
339
114
  name: "description",
340
- fn: R(() => [
341
- t("ul", { class: "fresh-booking-event-listing-information" }, [
342
- e(Ve)(r.fromDate, r.toDate) < 180 ? (u(), b("li", { key: 0 }, [
343
- g(x, {
115
+ fn: g(() => [
116
+ l("ul", { class: "fresh-booking-event-listing-information" }, [
117
+ e(ie)(s.fromDate, s.toDate) < 180 ? (t(), i("li", { key: 0 }, [
118
+ r(h, {
344
119
  icon: "calendar-days",
345
- "icon-color": r.styling.headerColor
346
- }, null, 8, ["icon-color"]),
347
- t("span", null, i(e(Ee)(r.fromDate, r.toDate, !0)), 1)
348
- ])) : k("", !0),
349
- t("li", null, [
350
- g(x, {
120
+ color: "header"
121
+ }),
122
+ l("span", null, n(e(re)(s.fromDate, s.toDate, !0)), 1)
123
+ ])) : u("", !0),
124
+ l("li", null, [
125
+ r(h, {
351
126
  icon: "user-alt",
352
- "icon-color": r.styling.headerColor
353
- }, null, 8, ["icon-color"]),
354
- t("span", null, i(`${r.minimumPersonCount} - ${e(I)} ${e(a)("general.people")}`), 1)
127
+ color: "header"
128
+ }),
129
+ l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(m)("general.people")}`), 1)
355
130
  ]),
356
- t("li", null, [
357
- g(x, {
131
+ l("li", null, [
132
+ r(h, {
358
133
  icon: "money-bill",
359
- "icon-color": r.styling.headerColor
360
- }, null, 8, ["icon-color"]),
361
- t("span", null, i(`${e(a)("general.pricesFrom")} ${e(K)(r.fromPrice, e(C))}`), 1)
134
+ color: "header"
135
+ }),
136
+ l("span", null, n(`${e(m)("general.pricesFrom")} ${e($)(s.fromPrice, e(z))}`), 1)
362
137
  ])
363
138
  ])
364
139
  ]),
365
140
  key: "1"
366
141
  }
367
- ]), 1032, ["listing-id", "gallery", "name", "description", "layout", "styling", "currency"]));
142
+ ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
368
143
  }
369
144
  });
370
- const Le = /* @__PURE__ */ xe(Fn, [["__scopeId", "data-v-fc04f878"]]), ie = (N) => (ln("data-v-451e0157"), N = N(), rn(), N), Vn = { class: "fresh-booking-panel" }, En = {
145
+ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) => (Ge("data-v-b2eee97d"), B = B(), el(), B), yl = { class: "fresh-booking-panel" }, _l = {
371
146
  key: 0,
372
147
  id: "fresh-booking-event-overview"
373
- }, $n = { class: "fresh-booking-event-listings" }, Dn = { class: "fresh-booking-event-listings" }, jn = {
148
+ }, Vl = { class: "fresh-booking-event-listings" }, Pl = { class: "fresh-booking-event-listings" }, Tl = {
374
149
  key: 2,
375
150
  id: "fresh-booking-event-addons"
376
- }, Rn = { class: "fresh-booking-table" }, Wn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), An = { class: "fresh-booking-event-addons-price" }, Ln = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("br", null, null, -1)), Un = { class: "fresh-booking-event-addons-input" }, zn = { class: "fresh-booking-event-addons-price" }, xn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("td", { colspan: "2" }, null, -1)), Nn = { class: "fresh-booking-event-addons-price" }, In = { key: 3 }, Mn = { class: "fresh-booking-label required" }, qn = { id: "fresh-booking-event-table" }, Hn = { key: 4 }, Yn = { class: "fresh-booking-label required" }, Jn = { class: "fresh-booking-table" }, Kn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Qn = { class: "fresh-booking-event-addons-price" }, Xn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("br", null, null, -1)), Zn = /* @__PURE__ */ ie(() => /* @__PURE__ */ t("br", null, null, -1)), Gn = { class: "fresh-booking-event-addons-input" }, et = { class: "fresh-booking-event-addons-price" }, nt = { key: 0 }, tt = { key: 1 }, ot = { key: 2 }, lt = { key: 3 }, rt = { key: 4 }, it = { key: 5 }, at = { key: 6 }, st = /* @__PURE__ */ Ue({
151
+ }, $l = { class: "fresh-booking-table" }, El = /* @__PURE__ */ A(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ol = { class: "fresh-booking-event-addons-price" }, Dl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), wl = { class: "fresh-booking-event-addons-input" }, Ll = { class: "fresh-booking-event-addons-price" }, Bl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Cl = { class: "fresh-booking-event-addons-price" }, Ul = { key: 3 }, Fl = { class: "fresh-booking-label required" }, Al = { id: "fresh-booking-event-table" }, Rl = { key: 4 }, Nl = { class: "fresh-booking-label required" }, Sl = { class: "fresh-booking-table" }, ql = /* @__PURE__ */ A(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, zl = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Il = /* @__PURE__ */ A(() => /* @__PURE__ */ l("br", null, null, -1)), Wl = { class: "fresh-booking-event-addons-input" }, Yl = { class: "fresh-booking-event-addons-price" }, Hl = { key: 0 }, Kl = { key: 1 }, Ql = { key: 2 }, Xl = { key: 3 }, Zl = { key: 4 }, jl = { key: 5 }, Jl = { key: 6 }, xl = /* @__PURE__ */ ge({
152
+ name: "EventLayout",
377
153
  __name: "Event",
378
154
  props: {
379
155
  accessToken: {},
380
- accentColor: {},
381
- buttonBackground: {},
382
- buttonBorder: {},
383
- buttonBorderRadius: {},
384
- buttonColor: {},
385
- buttonFontFamily: {},
386
- buttonFontSize: {},
387
- buttonFontWeight: {},
388
- buttonIconColor: {},
389
- buttonTextTransform: {},
390
- dangerColor: {},
391
- fontColor: {},
392
- fontFamily: {},
393
- fontSize: {},
394
- grayColor: {},
395
- headerColor: {},
396
- inputBackground: {},
397
- inputBorder: {},
398
- inputBorderRadius: {},
399
- inputFontColor: {},
400
- labelFontWeight: {},
401
- labelPadding: {},
402
- linkColor: {},
403
- loadingColor: {},
404
- panelBackground: {},
405
- panelBorder: {},
406
- panelBorderRadius: {},
407
- panelPadding: {},
408
- successColor: {}
156
+ styling: {}
409
157
  },
410
- setup(N) {
411
- const d = N, { t: a } = ze(), {
412
- searchDate: V,
413
- addons: C,
414
- products: I,
415
- numberOfDays: J,
416
- discountCode: oe,
417
- name: X,
418
- phone: W,
419
- email: A,
420
- remark: T,
421
- arrivalTime: h,
422
- title: Z,
423
- subtitle: le,
424
- slideshow: L,
425
- currency: r,
426
- numberOfPeople: U,
427
- numberOfTotalDays: M,
428
- numberOfRooms: ge,
429
- basePrice: he,
430
- totalPrice: me,
431
- isPaymentLoading: fe,
432
- hasEvents: ke,
433
- hasTemplates: Ce,
434
- getEvents: Se,
435
- getTemplates: n,
436
- getEventData: o,
437
- getTemplateData: l,
438
- getEventTableData: p,
439
- length: f,
440
- roomUpgrade: v,
441
- weekendFee: w,
442
- fromDate: m,
443
- hasProducts: s,
444
- eventRateType: O,
445
- isMetaDataAvailable: S,
446
- areListingsAvailable: y,
447
- isReservationFormFilled: P,
448
- isAvailabilityDataAvailable: q,
449
- getEventImages: ae,
450
- isTemplateEvent: D,
451
- tableBasePrice: se
452
- } = Fe(ye()), {
453
- initialize: we,
454
- validateDiscountCode: G,
455
- fetchListings: ue,
456
- createBooking: be,
457
- localAddonPrice: ee,
458
- totalAddonPrice: re,
459
- reset: Pe
460
- } = ye(), {
461
- hideEvents: Ie,
462
- hideEventTemplates: Me
463
- } = Fe(Ge());
464
- en(() => we()), nn(V, () => ue());
465
- const qe = {
466
- "--accentColor": d.accentColor,
467
- "--buttonBackground": d.buttonBackground,
468
- "--buttonBorder": d.buttonBorder,
469
- "--buttonBorderRadius": d.buttonBorderRadius,
470
- "--buttonColor": d.buttonColor,
471
- "--buttonFontFamily": d.buttonFontFamily,
472
- "--buttonFontSize": d.buttonFontSize,
473
- "--buttonFontWeight": d.buttonFontWeight,
474
- "--buttonTextTransform": d.buttonTextTransform,
475
- "--dangerColor": d.dangerColor,
476
- "--fontColor": d.fontColor,
477
- "--fontFamily": d.fontFamily,
478
- "--fontSize": d.fontSize,
479
- "--grayColor": d.grayColor,
480
- "--headerColor": d.headerColor,
481
- "--inputBackground": d.inputBackground,
482
- "--inputBorder": d.inputBorder,
483
- "--inputBorderRadius": d.inputBorderRadius,
484
- "--inputFontColor": d.inputFontColor,
485
- "--labelFontWeight": d.labelFontWeight,
486
- "--labelPadding": d.labelPadding,
487
- "--linkColor": d.linkColor,
488
- "--loadingColor": d.loadingColor,
489
- "--panelBackground": d.panelBackground,
490
- "--panelBorder": d.panelBorder,
491
- "--panelBorderRadius": d.panelBorderRadius,
492
- "--panelPadding": d.panelPadding,
493
- "--successColor": d.successColor
494
- };
495
- return (_, B) => (u(), j(on, {
158
+ setup(B) {
159
+ const { t: o } = he(), {
160
+ searchDate: m,
161
+ addons: E,
162
+ products: z,
163
+ numberOfDays: C,
164
+ discountCode: Q,
165
+ name: U,
166
+ phone: R,
167
+ email: N,
168
+ remark: S,
169
+ arrivalTime: O,
170
+ title: P,
171
+ subtitle: I,
172
+ slideshow: X,
173
+ currency: k,
174
+ numberOfPeople: s,
175
+ numberOfTotalDays: f,
176
+ numberOfRooms: F,
177
+ basePrice: ye,
178
+ totalPrice: _e,
179
+ isPaymentLoading: Ve,
180
+ hasEvents: Pe,
181
+ hasTemplates: Te,
182
+ getEvents: $e,
183
+ getTemplates: Ee,
184
+ getEventData: Oe,
185
+ getTemplateData: W,
186
+ getEventTableData: De,
187
+ length: ee,
188
+ roomUpgrade: we,
189
+ weekendFee: Le,
190
+ fromDate: le,
191
+ hasProducts: Be,
192
+ eventRateType: ne,
193
+ isMetaDataAvailable: Ce,
194
+ areListingsAvailable: Ue,
195
+ isReservationFormFilled: Fe,
196
+ isAvailabilityDataAvailable: Ae,
197
+ // getEventImages,
198
+ isTemplateEvent: T,
199
+ tableBasePrice: te
200
+ } = H(K()), {
201
+ initialize: Re,
202
+ validateDiscountCode: nn,
203
+ fetchListings: Ne,
204
+ createBooking: Se,
205
+ localAddonPrice: ae,
206
+ totalAddonPrice: oe,
207
+ reset: qe
208
+ } = K(), {
209
+ hideEvents: Me,
210
+ hideEventTemplates: ze
211
+ } = H(ke());
212
+ return Ze(() => Re()), je(m, () => Ne()), (se, d) => (t(), b(xe, {
496
213
  id: "fresh-booking-event-module",
497
214
  class: "fresh-booking-app",
498
215
  type: "event",
499
- "access-token": _.accessToken,
500
- style: qe
216
+ "access-token": se.accessToken,
217
+ styling: se.styling
501
218
  }, {
502
- default: R(() => [
503
- e(S) ? (u(), j(cn, {
219
+ default: g(() => [
220
+ e(Ce) ? (t(), b(dl, {
504
221
  key: 0,
505
- slideshow: e(L),
506
- title: e(Z),
507
- subtitle: e(le)
222
+ slideshow: e(X),
223
+ title: e(P),
224
+ subtitle: e(I)
508
225
  }, {
509
- availability: R(({ next: ve }) => [
510
- t("div", Vn, [
511
- g(wn, {
512
- modelValue: e(V),
513
- "onUpdate:modelValue": B[0] || (B[0] = (z) => ne(V) ? V.value = z : null),
514
- label: e(a)("event.selectDate"),
226
+ availability: g(({ next: Y }) => [
227
+ l("div", yl, [
228
+ r(bl, {
229
+ modelValue: e(m),
230
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => D(m) ? m.value = y : null),
231
+ label: e(o)("event.selectDate"),
515
232
  "min-date": /* @__PURE__ */ new Date()
516
233
  }, null, 8, ["modelValue", "label", "min-date"])
517
234
  ]),
518
- e(y) ? (u(), b("div", En, [
519
- e(ke) && !e(Ie) ? (u(), b(Y, { key: 0 }, [
520
- t("h2", null, [
521
- g(x, {
235
+ e(Ue) ? (t(), i("div", _l, [
236
+ e(Pe) && !e(Me) ? (t(), i(V, { key: 0 }, [
237
+ l("h2", null, [
238
+ r(h, {
522
239
  icon: "clock-seven",
523
240
  type: "fal",
524
- "icon-color": _.headerColor
525
- }, null, 8, ["icon-color"]),
526
- t("span", null, i(e(a)("event.eventsTitle")), 1)
241
+ color: "header"
242
+ }),
243
+ l("span", null, n(e(o)("event.eventsTitle")), 1)
527
244
  ]),
528
- t("ul", $n, [
529
- (u(!0), b(Y, null, te(e(Se), ({
530
- id: z,
531
- days: c,
532
- name: E,
533
- timeFrom: H,
534
- timeTo: F,
535
- fromDate: $,
536
- toDate: de,
537
- tableGroupID: ce,
538
- description: _e,
539
- soldOut: Oe,
540
- maxOnlineReservationLimit: pe
541
- }) => (u(), j(Le, {
542
- key: z,
245
+ l("ul", Vl, [
246
+ (t(!0), i(V, null, w(e($e), ({
247
+ id: y,
248
+ days: a,
249
+ name: p,
250
+ timeFrom: _,
251
+ timeTo: c,
252
+ fromDate: v,
253
+ toDate: q,
254
+ tableGroupID: Z,
255
+ description: j,
256
+ soldOut: J,
257
+ maxOnlineReservationLimit: M
258
+ }) => (t(), b(be, {
259
+ key: y,
543
260
  type: "event",
544
- "listing-id": z,
545
- "table-group-id": ce,
546
- gallery: e(ae)(z),
547
- description: _e,
548
- name: E,
549
- days: c,
550
- "from-date": $,
551
- "to-date": de,
552
- "max-online-reservation-limit": pe,
553
- "time-from": H,
554
- "time-to": F,
555
- "sold-out": Oe,
556
- styling: {
557
- headerColor: _.headerColor,
558
- fontColor: _.fontColor,
559
- fontSize: _.fontSize,
560
- fontFamily: _.fontFamily,
561
- panelPadding: _.panelPadding
562
- },
563
- callback: ve
564
- }, null, 8, ["listing-id", "table-group-id", "gallery", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "styling", "callback"]))), 128))
261
+ "listing-id": y,
262
+ "table-group-id": Z,
263
+ description: j,
264
+ name: p,
265
+ days: a,
266
+ "from-date": v,
267
+ "to-date": q,
268
+ "max-online-reservation-limit": M,
269
+ "time-from": _,
270
+ "time-to": c,
271
+ "sold-out": J,
272
+ callback: Y
273
+ }, null, 8, ["listing-id", "table-group-id", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
565
274
  ])
566
- ], 64)) : k("", !0),
567
- e(Ce) && !e(Me) ? (u(), b(Y, { key: 1 }, [
568
- t("h2", null, [
569
- g(x, {
275
+ ], 64)) : u("", !0),
276
+ e(Te) && !e(ze) ? (t(), i(V, { key: 1 }, [
277
+ l("h2", null, [
278
+ r(h, {
570
279
  icon: "stars",
571
280
  type: "fal",
572
- "icon-color": _.headerColor
573
- }, null, 8, ["icon-color"]),
574
- t("span", null, i(e(a)("event.stayTitle")), 1)
281
+ color: "header"
282
+ }),
283
+ l("span", null, n(e(o)("event.stayTitle")), 1)
575
284
  ]),
576
- t("ul", Dn, [
577
- (u(!0), b(Y, null, te(e(n), ({
578
- id: z,
579
- name: c,
580
- fromDate: E,
581
- toDate: H,
582
- minimumPersonCount: F,
583
- fromPrice: $,
584
- description: de,
585
- imageUrl: ce
586
- }) => (u(), j(Le, {
587
- key: z,
285
+ l("ul", Pl, [
286
+ (t(!0), i(V, null, w(e(Ee), ({
287
+ id: y,
288
+ name: a,
289
+ fromDate: p,
290
+ toDate: _,
291
+ minimumPersonCount: c,
292
+ fromPrice: v,
293
+ description: q
294
+ }) => (t(), b(be, {
295
+ key: y,
588
296
  type: "template",
589
- "listing-id": z,
590
- gallery: ce,
591
- name: c,
592
- description: de,
593
- "from-date": E,
594
- "to-date": H,
595
- "minimum-person-count": F,
596
- fromPrice: $,
597
- styling: {
598
- headerColor: _.headerColor,
599
- fontColor: _.fontColor,
600
- fontSize: _.fontSize,
601
- fontFamily: _.fontFamily,
602
- panelPadding: _.panelPadding
603
- },
604
- callback: ve
605
- }, null, 8, ["listing-id", "gallery", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "styling", "callback"]))), 128))
297
+ "listing-id": y,
298
+ name: a,
299
+ description: q,
300
+ "from-date": p,
301
+ "to-date": _,
302
+ "minimum-person-count": c,
303
+ fromPrice: v,
304
+ callback: Y
305
+ }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
606
306
  ])
607
- ], 64)) : k("", !0)
608
- ])) : (u(), j($e, { key: 1 }))
307
+ ], 64)) : u("", !0)
308
+ ])) : (t(), b(ue, { key: 1 }))
609
309
  ]),
610
- reservation: R(({ next: ve, prev: z }) => [
611
- e(q) ? (u(), j(pn, {
310
+ reservation: g(({ next: Y, prev: y }) => [
311
+ e(Ae) ? (t(), b(ml, {
612
312
  key: 0,
613
- remark: e(T),
614
- "onUpdate:remark": B[8] || (B[8] = (c) => ne(T) ? T.value = c : null),
615
- "is-filled": e(P),
616
- "is-loading": e(fe),
617
- currency: e(r),
618
- "base-price": e(he),
619
- "button-icon-color": _.buttonIconColor,
620
- "total-price": e(me),
621
- "weekend-fee": e(w),
622
- "room-upgrade": e(v),
623
- onPrev: (c) => e(Pe)(z),
624
- onNext: (c) => e(be)(ve)
313
+ remark: e(S),
314
+ "onUpdate:remark": d[8] || (d[8] = (a) => D(S) ? S.value = a : null),
315
+ "is-filled": e(Fe),
316
+ "is-loading": e(Ve),
317
+ "base-price": e(ye),
318
+ "total-price": e(_e),
319
+ "weekend-fee": e(Le),
320
+ "room-upgrade": e(we),
321
+ onPrev: (a) => e(qe)(y),
322
+ onNext: (a) => e(Se)(Y)
625
323
  }, {
626
- form: R(() => [
627
- e(O) === e(De).FullDayEvent ? (u(), j(Te, {
324
+ form: g(() => [
325
+ e(ne) === e(de).FullDayEvent ? (t(), b(G, {
628
326
  key: 0,
629
- modelValue: e(J),
630
- "onUpdate:modelValue": B[1] || (B[1] = (c) => ne(J) ? J.value = c : null),
631
- label: e(a)("event.numberOfDays"),
327
+ modelValue: e(C),
328
+ "onUpdate:modelValue": d[1] || (d[1] = (a) => D(C) ? C.value = a : null),
329
+ label: e(o)("event.numberOfDays"),
632
330
  "min-value": 1,
633
331
  required: ""
634
- }, null, 8, ["modelValue", "label"])) : k("", !0),
635
- g(Ae, {
636
- modelValue: e(X),
637
- "onUpdate:modelValue": B[2] || (B[2] = (c) => ne(X) ? X.value = c : null),
332
+ }, null, 8, ["modelValue", "label"])) : u("", !0),
333
+ r(ve, {
334
+ modelValue: e(U),
335
+ "onUpdate:modelValue": d[2] || (d[2] = (a) => D(U) ? U.value = a : null),
638
336
  type: "text",
639
- label: e(a)("booking.reservation.name"),
337
+ label: e(o)("booking.reservation.name"),
640
338
  icon: "user-alt",
641
- placeholder: e(a)("booking.reservation.namePlaceholder"),
339
+ placeholder: e(o)("booking.reservation.namePlaceholder"),
642
340
  required: ""
643
341
  }, null, 8, ["modelValue", "label", "placeholder"]),
644
- g(Ae, {
645
- modelValue: e(A),
646
- "onUpdate:modelValue": B[3] || (B[3] = (c) => ne(A) ? A.value = c : null),
647
- label: e(a)("booking.reservation.email"),
342
+ r(ve, {
343
+ modelValue: e(N),
344
+ "onUpdate:modelValue": d[3] || (d[3] = (a) => D(N) ? N.value = a : null),
345
+ label: e(o)("booking.reservation.email"),
648
346
  type: "email",
649
347
  name: "email",
650
348
  autocomplete: "email",
651
349
  icon: "at",
652
- placeholder: e(a)("booking.reservation.emailPlaceholder"),
350
+ placeholder: e(o)("booking.reservation.emailPlaceholder"),
653
351
  required: ""
654
352
  }, null, 8, ["modelValue", "label", "placeholder"]),
655
- g(yn, {
656
- modelValue: e(W),
657
- "onUpdate:modelValue": B[4] || (B[4] = (c) => ne(W) ? W.value = c : null),
658
- label: e(a)("booking.reservation.phone"),
353
+ r(ol, {
354
+ modelValue: e(R),
355
+ "onUpdate:modelValue": d[4] || (d[4] = (a) => D(R) ? R.value = a : null),
356
+ label: e(o)("booking.reservation.phone"),
659
357
  icon: "phone-office",
660
- placeholder: e(a)("booking.reservation.phonePlaceholder"),
358
+ placeholder: e(o)("booking.reservation.phonePlaceholder"),
661
359
  required: ""
662
360
  }, null, 8, ["modelValue", "label", "placeholder"]),
663
- k("", !0),
664
- e(l) && e(l).length > 0 ? (u(), b("ul", jn, [
665
- (u(!0), b(Y, null, te(e(l), ({
666
- roomGroupID: c,
667
- addons: E,
668
- adultPerRoom: H
669
- }, F) => (u(), b("li", { key: c }, [
670
- t("h5", null, [
671
- t("span", null, i(e(a)("booking.reservation.room")) + " #" + i(F + 1), 1),
672
- je(" ("),
673
- g(x, {
361
+ u("", !0),
362
+ e(W) && e(W).length > 0 ? (t(), i("ul", Tl, [
363
+ (t(!0), i(V, null, w(e(W), ({
364
+ roomGroupID: a,
365
+ addons: p,
366
+ adultPerRoom: _
367
+ }, c) => (t(), i("li", { key: a }, [
368
+ l("h5", null, [
369
+ l("span", null, n(e(o)("booking.reservation.room")) + " #" + n(c + 1), 1),
370
+ me(" ("),
371
+ r(h, {
674
372
  icon: "male",
675
373
  type: "fas",
676
- "icon-color": _.headerColor
677
- }, null, 8, ["icon-color"]),
678
- je(" " + i(H) + ") ", 1)
374
+ color: "header"
375
+ }),
376
+ me(" " + n(_) + ") ", 1)
679
377
  ]),
680
- t("table", Rn, [
681
- t("thead", null, [
682
- t("tr", null, [
683
- t("th", null, [
684
- t("span", null, i(e(a)("booking.reservation.addons")), 1)
378
+ l("table", $l, [
379
+ l("thead", null, [
380
+ l("tr", null, [
381
+ l("th", null, [
382
+ l("span", null, n(e(o)("booking.reservation.addons")), 1)
685
383
  ]),
686
- Wn,
687
- t("th", An, [
688
- t("span", null, i(e(a)("booking.availability.price")), 1)
384
+ El,
385
+ l("th", Ol, [
386
+ l("span", null, n(e(o)("booking.availability.price")), 1)
689
387
  ])
690
388
  ])
691
389
  ]),
692
- t("tbody", null, [
693
- (u(!0), b(Y, null, te(E, ({
694
- addonID: $,
695
- cardinality: de,
696
- name: ce,
697
- price: _e,
698
- quantityStrategy: Oe
699
- }) => (u(), b("tr", { key: $ }, [
700
- t("td", null, [
701
- t("b", null, i(ce), 1),
702
- Ln,
703
- t("span", null, i(e(K)(_e, e(r))) + " " + i(e(tn)(Oe)), 1)
390
+ l("tbody", null, [
391
+ (t(!0), i(V, null, w(p, ({
392
+ addonID: v,
393
+ cardinality: q,
394
+ name: Z,
395
+ price: j,
396
+ quantityStrategy: J
397
+ }) => (t(), i("tr", { key: v }, [
398
+ l("td", null, [
399
+ l("b", null, n(Z), 1),
400
+ Dl,
401
+ l("span", null, n(e($)(j, e(k))) + " " + n(e(Je)(J)), 1)
704
402
  ]),
705
- t("td", Un, [
706
- de === 3 ? (u(), j(Te, {
403
+ l("td", wl, [
404
+ q === 3 ? (t(), b(G, {
707
405
  key: 0,
708
- modelValue: e(C)[`${c}.${$}.${F}`],
709
- "onUpdate:modelValue": (pe) => e(C)[`${c}.${$}.${F}`] = pe,
406
+ modelValue: e(E)[`${a}.${v}.${c}`],
407
+ "onUpdate:modelValue": (M) => e(E)[`${a}.${v}.${c}`] = M,
710
408
  small: !0,
711
409
  "min-value": 0
712
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (u(), j(We, {
410
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (t(), b(pe, {
713
411
  key: 1,
714
- modelValue: e(C)[`${c}.${$}.${F}`],
715
- "onUpdate:modelValue": (pe) => e(C)[`${c}.${$}.${F}`] = pe,
412
+ modelValue: e(E)[`${a}.${v}.${c}`],
413
+ "onUpdate:modelValue": (M) => e(E)[`${a}.${v}.${c}`] = M,
716
414
  numeric: !0
717
415
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
718
416
  ]),
719
- t("td", zn, [
720
- t("span", null, i(e(K)(e(ee)($, c, F), e(r))), 1)
417
+ l("td", Ll, [
418
+ l("span", null, n(e($)(e(ae)(v, a, c), e(k))), 1)
721
419
  ])
722
420
  ]))), 128))
723
421
  ]),
724
- t("tfoot", null, [
725
- t("tr", null, [
726
- xn,
727
- t("td", Nn, [
728
- t("u", null, [
729
- t("span", null, i(e(K)(e(re)(c, F), e(r))), 1)
422
+ l("tfoot", null, [
423
+ l("tr", null, [
424
+ Bl,
425
+ l("td", Cl, [
426
+ l("u", null, [
427
+ l("span", null, n(e($)(e(oe)(a, c), e(k))), 1)
730
428
  ])
731
429
  ])
732
430
  ])
733
431
  ])
734
432
  ])
735
433
  ]))), 128))
736
- ])) : k("", !0),
737
- e(O) !== e(De).FullDayEvent && !e(D) ? (u(), b("div", In, [
738
- t("label", Mn, [
739
- t("span", null, i(e(a)("event.selectArrivalTime")), 1)
434
+ ])) : u("", !0),
435
+ e(ne) !== e(de).FullDayEvent && !e(T) ? (t(), i("div", Ul, [
436
+ l("label", Fl, [
437
+ l("span", null, n(e(o)("event.selectArrivalTime")), 1)
740
438
  ]),
741
- t("ul", qn, [
742
- (u(!0), b(Y, null, te(e(p), (c, E) => (u(), b("li", { key: E }, [
743
- g(We, {
744
- modelValue: e(h),
745
- "onUpdate:modelValue": B[7] || (B[7] = (H) => ne(h) ? h.value = H : null),
439
+ l("ul", Al, [
440
+ (t(!0), i(V, null, w(e(De), (a, p) => (t(), i("li", { key: p }, [
441
+ r(pe, {
442
+ modelValue: e(O),
443
+ "onUpdate:modelValue": d[7] || (d[7] = (_) => D(O) ? O.value = _ : null),
746
444
  type: "radio",
747
445
  name: "eventTimeTable",
748
- val: c.time,
749
- label: e(Be)(c.time)
446
+ val: a.time,
447
+ label: e(x)(a.time)
750
448
  }, null, 8, ["modelValue", "val", "label"])
751
449
  ]))), 128))
752
450
  ])
753
- ])) : k("", !0),
754
- e(s) ? (u(), b("div", Hn, [
755
- t("label", Yn, [
756
- t("span", null, i(e(a)("event.selectProducts")), 1)
451
+ ])) : u("", !0),
452
+ e(Be) ? (t(), i("div", Rl, [
453
+ l("label", Nl, [
454
+ l("span", null, n(e(o)("event.selectProducts")), 1)
757
455
  ]),
758
- t("table", Jn, [
759
- t("thead", null, [
760
- t("tr", null, [
761
- t("th", null, [
762
- t("span", null, i(e(a)("booking.reservation.addons")), 1)
456
+ l("table", Sl, [
457
+ l("thead", null, [
458
+ l("tr", null, [
459
+ l("th", null, [
460
+ l("span", null, n(e(o)("booking.reservation.addons")), 1)
763
461
  ]),
764
- Kn,
765
- t("th", Qn, [
766
- t("span", null, i(e(a)("booking.availability.price")), 1)
462
+ ql,
463
+ l("th", Ml, [
464
+ l("span", null, n(e(o)("booking.availability.price")), 1)
767
465
  ])
768
466
  ])
769
467
  ]),
770
- t("tbody", null, [
771
- (u(!0), b(Y, null, te(e(o).products, ({ productID: c, productName: E, price: H, description: F }) => (u(), b("tr", { key: c }, [
772
- t("td", null, [
773
- t("b", null, [
774
- t("span", null, i(E), 1)
468
+ l("tbody", null, [
469
+ (t(!0), i(V, null, w(e(Oe).products, ({ productID: a, productName: p, price: _, description: c }) => (t(), i("tr", { key: a }, [
470
+ l("td", null, [
471
+ l("b", null, [
472
+ l("span", null, n(p), 1)
775
473
  ]),
776
- Xn,
777
- t("span", null, i(F), 1),
778
- Zn,
779
- t("span", null, i(e(K)(H, e(r))), 1)
474
+ zl,
475
+ l("span", null, n(c), 1),
476
+ Il,
477
+ l("span", null, n(e($)(_, e(k))), 1)
780
478
  ]),
781
- t("td", Gn, [
782
- g(Te, {
783
- modelValue: e(I)[c],
784
- "onUpdate:modelValue": ($) => e(I)[c] = $,
479
+ l("td", Wl, [
480
+ r(G, {
481
+ modelValue: e(z)[a],
482
+ "onUpdate:modelValue": (v) => e(z)[a] = v,
785
483
  small: !0,
786
484
  "min-value": 0
787
485
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
788
486
  ]),
789
- t("td", et, [
790
- t("span", null, i(e(K)(e(ee)(c), e(r))), 1)
487
+ l("td", Yl, [
488
+ l("span", null, n(e($)(e(ae)(a), e(k))), 1)
791
489
  ])
792
490
  ]))), 128))
793
491
  ])
794
492
  ])
795
- ])) : k("", !0)
493
+ ])) : u("", !0)
796
494
  ]),
797
- resume: R(() => [
798
- t("li", null, [
799
- t("span", null, i(e(a)("event.numberOfGuests")), 1),
800
- t("b", null, i(e(U)), 1)
495
+ resume: g(() => [
496
+ l("li", null, [
497
+ l("span", null, n(e(o)("event.numberOfGuests")), 1),
498
+ l("b", null, n(e(s)), 1)
801
499
  ]),
802
- e(D) ? (u(), b("li", nt, [
803
- t("span", null, i(e(a)("event.numberOfRooms")), 1),
804
- t("b", null, i(e(ge)), 1)
805
- ])) : k("", !0),
806
- e(D) ? (u(), b("li", tt, [
807
- t("span", null, i(e(a)("event.numberOfDays")), 1),
808
- t("b", null, i(e(M)), 1)
809
- ])) : k("", !0),
810
- e(D) ? (u(), b("li", ot, [
811
- t("span", null, i(e(a)("booking.reservation.arrival")), 1),
812
- t("b", null, i(e(Re)(e(m))), 1)
813
- ])) : k("", !0),
814
- e(D) ? (u(), b("li", lt, [
815
- t("span", null, i(e(a)("booking.reservation.departure")), 1),
816
- t("b", null, i(e(Re)(e(m), e(M))), 1)
817
- ])) : k("", !0),
818
- !e(D) && e(h) ? (u(), b("li", rt, [
819
- t("span", null, i(e(a)("event.startOfEvent")), 1),
820
- t("b", null, i(e(Be)(e(h))), 1)
821
- ])) : k("", !0),
822
- !e(D) && e(f) ? (u(), b("li", it, [
823
- t("span", null, i(e(a)("event.lengthOfEvent")), 1),
824
- t("b", null, i(e(Be)(e(f))), 1)
825
- ])) : k("", !0),
826
- !e(D) && e(se) > 0 ? (u(), b("li", at, [
827
- t("span", null, i(e(a)("booking.availability.basePrice")), 1),
828
- t("b", null, i(e(K)(e(se), e(r))), 1)
829
- ])) : k("", !0)
500
+ e(T) ? (t(), i("li", Hl, [
501
+ l("span", null, n(e(o)("event.numberOfRooms")), 1),
502
+ l("b", null, n(e(F)), 1)
503
+ ])) : u("", !0),
504
+ e(T) ? (t(), i("li", Kl, [
505
+ l("span", null, n(e(o)("event.numberOfDays")), 1),
506
+ l("b", null, n(e(f)), 1)
507
+ ])) : u("", !0),
508
+ e(T) ? (t(), i("li", Ql, [
509
+ l("span", null, n(e(o)("booking.reservation.arrival")), 1),
510
+ l("b", null, n(e(ce)(e(le))), 1)
511
+ ])) : u("", !0),
512
+ e(T) ? (t(), i("li", Xl, [
513
+ l("span", null, n(e(o)("booking.reservation.departure")), 1),
514
+ l("b", null, n(e(ce)(e(le), e(f))), 1)
515
+ ])) : u("", !0),
516
+ !e(T) && e(O) ? (t(), i("li", Zl, [
517
+ l("span", null, n(e(o)("event.startOfEvent")), 1),
518
+ l("b", null, n(e(x)(e(O))), 1)
519
+ ])) : u("", !0),
520
+ !e(T) && e(ee) ? (t(), i("li", jl, [
521
+ l("span", null, n(e(o)("event.lengthOfEvent")), 1),
522
+ l("b", null, n(e(x)(e(ee))), 1)
523
+ ])) : u("", !0),
524
+ !e(T) && e(te) > 0 ? (t(), i("li", Jl, [
525
+ l("span", null, n(e(o)("booking.availability.basePrice")), 1),
526
+ l("b", null, n(e($)(e(te), e(k))), 1)
527
+ ])) : u("", !0)
830
528
  ]),
831
- expenses: R(() => [
832
- (u(!0), b(Y, null, te(e(l), ({ roomGroupID: c }, E) => (u(), b("li", { key: c }, [
833
- t("span", null, i(e(a)("booking.reservation.addons")) + " - " + i(e(a)("booking.reservation.room")) + " #" + i(E + 1), 1),
834
- t("b", null, i(e(K)(e(re)(c, E), e(r))), 1)
529
+ expenses: g(() => [
530
+ (t(!0), i(V, null, w(e(W), ({ roomGroupID: a }, p) => (t(), i("li", { key: a }, [
531
+ l("span", null, n(e(o)("booking.reservation.addons")) + " - " + n(e(o)("booking.reservation.room")) + " #" + n(p + 1), 1),
532
+ l("b", null, n(e($)(e(oe)(a, p), e(k))), 1)
835
533
  ]))), 128))
836
534
  ]),
837
535
  _: 2
838
- }, 1032, ["remark", "is-filled", "is-loading", "currency", "base-price", "button-icon-color", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : k("", !0)
536
+ }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : u("", !0)
839
537
  ]),
840
- payment: R(() => [
841
- g(mn)
538
+ payment: g(() => [
539
+ r(sl)
842
540
  ]),
843
- confirmation: R(() => [
844
- g(fn, {
845
- message: e(a)("event.confirmationMessage"),
846
- currency: e(r)
847
- }, null, 8, ["message", "currency"])
541
+ confirmation: g(() => [
542
+ r(cl, {
543
+ message: e(o)("event.confirmationMessage")
544
+ }, null, 8, ["message"])
848
545
  ]),
849
546
  _: 1
850
- }, 8, ["slideshow", "title", "subtitle"])) : (u(), j($e, { key: 1 }))
547
+ }, 8, ["slideshow", "title", "subtitle"])) : (t(), b(ue, { key: 1 }))
851
548
  ]),
852
549
  _: 1
853
- }, 8, ["access-token"]));
550
+ }, 8, ["access-token", "styling"]));
854
551
  }
855
552
  });
856
- const ut = /* @__PURE__ */ xe(st, [["__scopeId", "data-v-451e0157"]]), dt = an(), ct = bn(), Q = sn({ components: { Event: ut } });
857
- Q.use(dt);
858
- Q.use(ct);
859
- Q.use(gn);
860
- Q.use(_n);
861
- Q.use(un);
862
- Q.use(vn);
863
- Q.use(hn, { bootstrap: !1 });
864
- Q.mount("#konnectio-event-app");
553
+ const Gl = /* @__PURE__ */ fe(xl, [["__scopeId", "data-v-b2eee97d"]]), en = ll(), ln = nl(), L = tl({ components: { Event: Gl } });
554
+ L.use(en);
555
+ L.use(ln);
556
+ L.use(il);
557
+ L.use(al);
558
+ L.use(pl);
559
+ L.use(rl, { bootstrap: !1 });
560
+ L.mount("#konnectio-event-app");
865
561
  export {
866
- Q as default
562
+ L as default
867
563
  };