@konnectio/core 4.0.1 → 4.0.3

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 (122) hide show
  1. package/dist/ActionField-1b4171c7.mjs +103 -0
  2. package/dist/ActionField-1b4171c7.mjs.br +0 -0
  3. package/dist/ActionField-97c0c682.js +2 -0
  4. package/dist/ActionField-97c0c682.js.br +0 -0
  5. package/dist/Clickable-eb931b15.mjs +13899 -0
  6. package/dist/Clickable-eb931b15.mjs.br +0 -0
  7. package/dist/Clickable-f57e16ad.js +785 -0
  8. package/dist/Clickable-f57e16ad.js.br +0 -0
  9. package/dist/HotelAvailabilityForm-5750665b.js +2 -0
  10. package/dist/HotelAvailabilityForm-5750665b.js.br +0 -0
  11. package/dist/HotelAvailabilityForm-bab6ef4d.mjs +99 -0
  12. package/dist/HotelAvailabilityForm-bab6ef4d.mjs.br +0 -0
  13. package/dist/NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs +5917 -0
  14. package/dist/NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs.br +0 -0
  15. package/dist/NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js +56 -0
  16. package/dist/NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js.br +0 -0
  17. package/dist/ReCaptchaVuePlugin-36454b0f.js +2 -0
  18. package/dist/ReCaptchaVuePlugin-36454b0f.js.br +0 -0
  19. package/dist/ReCaptchaVuePlugin-e4f378b2.mjs +377 -0
  20. package/dist/ReCaptchaVuePlugin-e4f378b2.mjs.br +0 -0
  21. package/dist/SelectField.vue_vue_type_style_index_0_lang-a3371159.js +57 -0
  22. package/dist/SelectField.vue_vue_type_style_index_0_lang-a3371159.js.br +0 -0
  23. package/dist/SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs +10109 -0
  24. package/dist/SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs.br +0 -0
  25. package/dist/ThankYou-23531d13.js +16 -0
  26. package/dist/ThankYou-23531d13.js.br +0 -0
  27. package/dist/ThankYou-4299d606.mjs +8519 -0
  28. package/dist/ThankYou-4299d606.mjs.br +0 -0
  29. package/dist/_commonjsHelpers-6763f629.js +2 -0
  30. package/dist/_commonjsHelpers-c5d32002.mjs +31 -0
  31. package/dist/applyGiftCard-9847fda1.js +2 -0
  32. package/dist/applyGiftCard-9847fda1.js.br +0 -0
  33. package/dist/applyGiftCard-eb7b85ee.mjs +118 -0
  34. package/dist/applyGiftCard-eb7b85ee.mjs.br +0 -0
  35. package/dist/availability.cjs.js +2 -0
  36. package/dist/availability.cjs.js.br +0 -0
  37. package/dist/availability.es.js +185 -0
  38. package/dist/availability.es.js.br +0 -0
  39. package/dist/event-1b888019.mjs +329 -0
  40. package/dist/event-1b888019.mjs.br +0 -0
  41. package/dist/event-e8e0c6a2.js +2 -0
  42. package/dist/event-e8e0c6a2.js.br +0 -0
  43. package/dist/event.cjs.js +2 -0
  44. package/dist/event.cjs.js.br +0 -0
  45. package/dist/event.es.js +647 -0
  46. package/dist/event.es.js.br +0 -0
  47. package/dist/gift-card-validation.cjs.js +2 -0
  48. package/dist/gift-card-validation.cjs.js.br +0 -0
  49. package/dist/gift-card-validation.es.js +172 -0
  50. package/dist/gift-card-validation.es.js.br +0 -0
  51. package/dist/gift-card.cjs.js +2 -0
  52. package/dist/gift-card.cjs.js.br +0 -0
  53. package/dist/gift-card.es.js +586 -0
  54. package/dist/gift-card.es.js.br +0 -0
  55. package/dist/hotel.cjs.js +20 -0
  56. package/dist/hotel.cjs.js.br +0 -0
  57. package/dist/hotel.es.js +2396 -0
  58. package/dist/hotel.es.js.br +0 -0
  59. package/dist/index-937554a9.mjs +654 -0
  60. package/dist/index-937554a9.mjs.br +0 -0
  61. package/dist/index-aa255eba.js +2 -0
  62. package/dist/index-aa255eba.js.br +0 -0
  63. package/dist/navigation.cjs.js +2 -0
  64. package/dist/navigation.cjs.js.br +0 -0
  65. package/dist/navigation.es.js +59 -0
  66. package/dist/navigation.es.js.br +0 -0
  67. package/dist/payment-3140b25e.js +3 -0
  68. package/dist/payment-3140b25e.js.br +0 -0
  69. package/dist/payment-b79997a8.mjs +8149 -0
  70. package/dist/payment-b79997a8.mjs.br +0 -0
  71. package/dist/polyfill.cjs.js +5 -0
  72. package/dist/polyfill.cjs.js.br +0 -0
  73. package/dist/polyfill.es.js +6766 -0
  74. package/dist/polyfill.es.js.br +0 -0
  75. package/dist/style.css +1 -0
  76. package/dist/style.css.br +0 -0
  77. package/package.json +3 -1
  78. package/dist/admin.js +0 -2
  79. package/dist/admin.js.br +0 -0
  80. package/dist/assets/ActionField-d1b315e3.js +0 -2
  81. package/dist/assets/ActionField-d1b315e3.js.br +0 -0
  82. package/dist/assets/Alert-2cd22061.js +0 -2
  83. package/dist/assets/Alert-2cd22061.js.br +0 -0
  84. package/dist/assets/Clickable-19c9ecdc.js +0 -2
  85. package/dist/assets/Clickable-19c9ecdc.js.br +0 -0
  86. package/dist/assets/GoogleNotice-83805aa2.js +0 -2
  87. package/dist/assets/GoogleNotice-83805aa2.js.br +0 -0
  88. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js +0 -2
  89. package/dist/assets/HotelAvailabilityForm-53fa6ecb.js.br +0 -0
  90. package/dist/assets/Icon-6c933148.js +0 -2
  91. package/dist/assets/Icon-6c933148.js.br +0 -0
  92. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js +0 -2
  93. package/dist/assets/NumberField.vue_vue_type_style_index_0_lang-9b1b90b2.js.br +0 -0
  94. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js +0 -2
  95. package/dist/assets/SelectField.vue_vue_type_style_index_0_lang-c5d2bf7d.js.br +0 -0
  96. package/dist/assets/ThankYou-29820212.js +0 -5
  97. package/dist/assets/ThankYou-29820212.js.br +0 -0
  98. package/dist/assets/applyGiftCard-39571f2e.js +0 -2
  99. package/dist/assets/applyGiftCard-39571f2e.js.br +0 -0
  100. package/dist/assets/event-79c562c0.js +0 -2
  101. package/dist/assets/event-79c562c0.js.br +0 -0
  102. package/dist/assets/payment-a3a9b5dd.js +0 -2
  103. package/dist/assets/payment-a3a9b5dd.js.br +0 -0
  104. package/dist/assets/style.css +0 -1
  105. package/dist/assets/style.css.br +0 -0
  106. package/dist/assets/vendor-65ee0d78.js +0 -889
  107. package/dist/assets/vendor-65ee0d78.js.br +0 -0
  108. package/dist/availability.js +0 -2
  109. package/dist/availability.js.br +0 -0
  110. package/dist/event.js +0 -2
  111. package/dist/event.js.br +0 -0
  112. package/dist/gift-card-validation.js +0 -2
  113. package/dist/gift-card-validation.js.br +0 -0
  114. package/dist/gift-card.js +0 -2
  115. package/dist/gift-card.js.br +0 -0
  116. package/dist/hotel.js +0 -2
  117. package/dist/hotel.js.br +0 -0
  118. package/dist/manifest.json +0 -231
  119. package/dist/manifest.json.br +0 -0
  120. package/dist/navigation.js +0 -2
  121. package/dist/navigation.js.br +0 -0
  122. package/dist/polyfill.js +0 -2
@@ -0,0 +1,647 @@
1
+ import { d as ve, r as je, f as Qe, o as t, h as y, q as Ye, w as f, b as o, a as u, I as k, t as l, u as e, c as r, k as d, _ as ye, g as He, s as Je, i as D, F as _, v as R, L as ie, x as re, p as Ke, l as Xe, m as Ze } from "./Clickable-eb931b15.mjs";
2
+ import { u as fe, b as Ge, s as ee, e as xe, f as ue, g as de, h as eo, j as F, B as oo, k as lo, O as ce, l as no, m as G, n as me, _ as to, d as ao, c as so, a as io, i as ro } from "./NumberField.vue_vue_type_style_index_0_lang-737bf674.mjs";
3
+ import { B as uo, M as co, R as mo, C as po, T as bo, z as go, V as vo, x as yo } from "./ThankYou-4299d606.mjs";
4
+ import { P as fo, C as pe, S as ho, i as ko } from "./index-937554a9.mjs";
5
+ import { u as Y } from "./event-1b888019.mjs";
6
+ import { A as Co } from "./ActionField-1b4171c7.mjs";
7
+ import { T as be } from "./SelectField.vue_vue_type_style_index_0_lang-d7f0bf68.mjs";
8
+ import { _ as _o } from "./payment-b79997a8.mjs";
9
+ import { _ as x } from "./applyGiftCard-eb7b85ee.mjs";
10
+ import "./_commonjsHelpers-c5d32002.mjs";
11
+ const Bo = { class: "fresh-booking-event-listing-information" }, Vo = { key: 0 }, Po = { key: 1 }, Fo = /* @__PURE__ */ ve({
12
+ __name: "Event",
13
+ props: {
14
+ name: {},
15
+ type: {},
16
+ description: {},
17
+ fromDate: {},
18
+ toDate: {},
19
+ listingId: {},
20
+ tableGroupId: {},
21
+ days: {},
22
+ timeFrom: {},
23
+ timeTo: {},
24
+ maxOnlineReservationLimit: {},
25
+ minimumPersonCount: {},
26
+ fromPrice: {},
27
+ gallery: {},
28
+ soldOut: { type: Boolean, default: !1 },
29
+ styling: {},
30
+ layout: {},
31
+ trackingEnabled: { type: Boolean },
32
+ callback: {}
33
+ },
34
+ setup(T) {
35
+ const i = T, { t: a } = fe(), { display: E } = Ge(), {
36
+ currency: $,
37
+ maxNumberOfPeople: L,
38
+ numberOfPeople: S,
39
+ eventId: H,
40
+ tableGroupId: U
41
+ } = ee(Y()), {
42
+ getTemplateAvailability: A,
43
+ getEventAvailability: z,
44
+ isEventListingLoading: N
45
+ } = Y(), b = je(0), M = Qe(() => N(i.listingId)), J = () => {
46
+ b.value > 0 ? (H.value = i.listingId, S.value = b.value, A(i.callback)) : E({
47
+ type: "error",
48
+ message: a("alert.error.selectPeople")
49
+ });
50
+ }, K = () => {
51
+ b.value > 0 ? (H.value = i.listingId, U.value = i.tableGroupId, S.value = b.value, z(i.callback)) : E({
52
+ type: "error",
53
+ message: a("alert.error.selectPeople")
54
+ });
55
+ };
56
+ return (n, V) => (t(), y(uo, {
57
+ "listing-id": n.listingId,
58
+ gallery: n.gallery,
59
+ name: n.name,
60
+ description: n.description,
61
+ layout: e(oo).Event,
62
+ styling: n.styling,
63
+ currency: e($)
64
+ }, Ye({
65
+ action: f(() => [
66
+ u(Co, {
67
+ modelValue: b.value,
68
+ "onUpdate:modelValue": V[0] || (V[0] = (O) => b.value = O),
69
+ type: "number",
70
+ label: e(a)("event.numberOfGuests"),
71
+ buttonLabel: n.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
72
+ buttonDisabled: n.soldOut,
73
+ "min-value": n.type === "event" ? 1 : n.minimumPersonCount,
74
+ "max-value": n.type === "event" ? n.maxOnlineReservationLimit || 1 / 0 : e(L),
75
+ "is-loading": M.value,
76
+ "onUpdate:isLoading": V[1] || (V[1] = (O) => M.value = O),
77
+ onAction: V[2] || (V[2] = (O) => n.type === "event" ? K() : J())
78
+ }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
79
+ ]),
80
+ _: 2
81
+ }, [
82
+ n.type === "event" ? {
83
+ name: "description",
84
+ fn: f(() => [
85
+ o("ul", Bo, [
86
+ o("li", null, [
87
+ u(k, {
88
+ icon: "calendar-range",
89
+ "icon-color": n.styling.headerColor
90
+ }, null, 8, ["icon-color"]),
91
+ o("span", null, l(e(xe)(n.days)), 1)
92
+ ]),
93
+ e(ue)(n.fromDate, n.toDate) < 180 ? (t(), r("li", Vo, [
94
+ u(k, {
95
+ icon: "calendar-days",
96
+ "icon-color": n.styling.headerColor
97
+ }, null, 8, ["icon-color"]),
98
+ o("span", null, l(e(de)(n.fromDate, n.toDate)), 1)
99
+ ])) : d("", !0),
100
+ o("li", null, [
101
+ u(k, {
102
+ icon: "calendar-clock",
103
+ "icon-color": n.styling.headerColor
104
+ }, null, 8, ["icon-color"]),
105
+ o("span", null, l(e(eo)(n.timeFrom, n.timeTo)), 1)
106
+ ]),
107
+ n.maxOnlineReservationLimit ? (t(), r("li", Po, [
108
+ u(k, {
109
+ icon: "user-alt",
110
+ "icon-color": n.styling.headerColor
111
+ }, null, 8, ["icon-color"]),
112
+ o("span", null, l(`1 - ${n.maxOnlineReservationLimit} ${e(a)("general.people")}`), 1)
113
+ ])) : d("", !0)
114
+ ])
115
+ ]),
116
+ key: "0"
117
+ } : {
118
+ name: "description",
119
+ fn: f(() => [
120
+ o("ul", { class: "fresh-booking-event-listing-information" }, [
121
+ e(ue)(n.fromDate, n.toDate) < 180 ? (t(), r("li", { key: 0 }, [
122
+ u(k, {
123
+ icon: "calendar-days",
124
+ "icon-color": n.styling.headerColor
125
+ }, null, 8, ["icon-color"]),
126
+ o("span", null, l(e(de)(n.fromDate, n.toDate, !0)), 1)
127
+ ])) : d("", !0),
128
+ o("li", null, [
129
+ u(k, {
130
+ icon: "user-alt",
131
+ "icon-color": n.styling.headerColor
132
+ }, null, 8, ["icon-color"]),
133
+ o("span", null, l(`${n.minimumPersonCount} - ${e(L)} ${e(a)("general.people")}`), 1)
134
+ ]),
135
+ o("li", null, [
136
+ u(k, {
137
+ icon: "money-bill",
138
+ "icon-color": n.styling.headerColor
139
+ }, null, 8, ["icon-color"]),
140
+ o("span", null, l(`${e(a)("general.pricesFrom")} ${e(F)(n.fromPrice, e($))}`), 1)
141
+ ])
142
+ ])
143
+ ]),
144
+ key: "1"
145
+ }
146
+ ]), 1032, ["listing-id", "gallery", "name", "description", "layout", "styling", "currency"]));
147
+ }
148
+ });
149
+ const ge = /* @__PURE__ */ ye(Fo, [["__scopeId", "data-v-c907b452"]]), w = (T) => (Ke("data-v-7a0ec33b"), T = T(), Xe(), T), To = { class: "fresh-booking-panel" }, Eo = {
150
+ key: 0,
151
+ id: "fresh-booking-event-overview"
152
+ }, $o = { class: "fresh-booking-event-listings" }, Oo = { class: "fresh-booking-event-listings" }, Do = {
153
+ key: 2,
154
+ id: "fresh-booking-event-addons"
155
+ }, Ro = { class: "fresh-booking-table" }, So = /* @__PURE__ */ w(() => /* @__PURE__ */ o("th", { class: "fresh-booking-event-addons-input" }, null, -1)), wo = { class: "fresh-booking-event-addons-price" }, Lo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("br", null, null, -1)), Uo = { class: "fresh-booking-event-addons-input" }, Ao = { class: "fresh-booking-event-addons-price" }, zo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("td", { colspan: "2" }, null, -1)), No = { class: "fresh-booking-event-addons-price" }, qo = { key: 3 }, Io = { class: "fresh-booking-label required" }, Wo = { id: "fresh-booking-event-table" }, Mo = { key: 4 }, jo = { class: "fresh-booking-label required" }, Qo = { class: "fresh-booking-table" }, Yo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ho = { class: "fresh-booking-event-addons-price" }, Jo = /* @__PURE__ */ w(() => /* @__PURE__ */ o("br", null, null, -1)), Ko = /* @__PURE__ */ w(() => /* @__PURE__ */ o("br", null, null, -1)), Xo = { class: "fresh-booking-event-addons-input" }, Zo = { class: "fresh-booking-event-addons-price" }, Go = { key: 0 }, xo = { key: 1 }, el = { key: 2 }, ol = { key: 3 }, ll = { key: 4 }, nl = { key: 5 }, tl = { key: 6 }, al = /* @__PURE__ */ ve({
156
+ __name: "Event",
157
+ props: {
158
+ accessToken: {},
159
+ accentColor: {},
160
+ buttonBackground: {},
161
+ buttonBorder: {},
162
+ buttonBorderRadius: {},
163
+ buttonColor: {},
164
+ buttonFontFamily: {},
165
+ buttonFontSize: {},
166
+ buttonFontWeight: {},
167
+ buttonIconColor: {},
168
+ buttonTextTransform: {},
169
+ dangerColor: {},
170
+ fontColor: {},
171
+ fontFamily: {},
172
+ fontSize: {},
173
+ grayColor: {},
174
+ headerColor: {},
175
+ inputBackground: {},
176
+ inputBorder: {},
177
+ inputBorderRadius: {},
178
+ inputFontColor: {},
179
+ labelFontWeight: {},
180
+ labelPadding: {},
181
+ linkColor: {},
182
+ loadingColor: {},
183
+ panelBackground: {},
184
+ panelBorder: {},
185
+ panelBorderRadius: {},
186
+ panelPadding: {},
187
+ successColor: {}
188
+ },
189
+ setup(T) {
190
+ const i = T, { t: a } = fe(), {
191
+ searchDate: E,
192
+ addons: $,
193
+ products: L,
194
+ numberOfDays: S,
195
+ discountCode: H,
196
+ name: U,
197
+ phone: A,
198
+ email: z,
199
+ remark: N,
200
+ arrivalTime: b,
201
+ title: M,
202
+ subtitle: J,
203
+ slideshow: K,
204
+ currency: n,
205
+ numberOfPeople: V,
206
+ numberOfTotalDays: O,
207
+ numberOfRooms: he,
208
+ basePrice: ke,
209
+ totalPrice: Ce,
210
+ isPaymentLoading: _e,
211
+ hasEvents: Be,
212
+ hasTemplates: Ve,
213
+ getEvents: Pe,
214
+ getTemplates: Fe,
215
+ getEventData: Te,
216
+ getTemplateData: j,
217
+ getEventTableData: Ee,
218
+ length: oe,
219
+ roomUpgrade: $e,
220
+ weekendFee: Oe,
221
+ fromDate: le,
222
+ hasProducts: De,
223
+ eventRateType: ne,
224
+ isMetaDataAvailable: Re,
225
+ areListingsAvailable: Se,
226
+ isReservationFormFilled: we,
227
+ isAvailabilityDataAvailable: Le,
228
+ getEventImages: Ue,
229
+ isTemplateEvent: P,
230
+ tableBasePrice: te
231
+ } = ee(Y()), {
232
+ initialize: Ae,
233
+ validateDiscountCode: ul,
234
+ fetchListings: ze,
235
+ createBooking: Ne,
236
+ localAddonPrice: ae,
237
+ totalAddonPrice: se,
238
+ reset: qe
239
+ } = Y(), {
240
+ hideEvents: Ie,
241
+ hideEventTemplates: We
242
+ } = ee(lo());
243
+ He(() => Ae()), Je(E, () => ze());
244
+ const Me = {
245
+ "--accentColor": i.accentColor,
246
+ "--buttonBackground": i.buttonBackground,
247
+ "--buttonBorder": i.buttonBorder,
248
+ "--buttonBorderRadius": i.buttonBorderRadius,
249
+ "--buttonColor": i.buttonColor,
250
+ "--buttonFontFamily": i.buttonFontFamily,
251
+ "--buttonFontSize": i.buttonFontSize,
252
+ "--buttonFontWeight": i.buttonFontWeight,
253
+ "--buttonTextTransform": i.buttonTextTransform,
254
+ "--dangerColor": i.dangerColor,
255
+ "--fontColor": i.fontColor,
256
+ "--fontFamily": i.fontFamily,
257
+ "--fontSize": i.fontSize,
258
+ "--grayColor": i.grayColor,
259
+ "--headerColor": i.headerColor,
260
+ "--inputBackground": i.inputBackground,
261
+ "--inputBorder": i.inputBorder,
262
+ "--inputBorderRadius": i.inputBorderRadius,
263
+ "--inputFontColor": i.inputFontColor,
264
+ "--labelFontWeight": i.labelFontWeight,
265
+ "--labelPadding": i.labelPadding,
266
+ "--linkColor": i.linkColor,
267
+ "--loadingColor": i.loadingColor,
268
+ "--panelBackground": i.panelBackground,
269
+ "--panelBorder": i.panelBorder,
270
+ "--panelBorderRadius": i.panelBorderRadius,
271
+ "--panelPadding": i.panelPadding,
272
+ "--successColor": i.successColor
273
+ };
274
+ return (c, m) => (t(), y(to, {
275
+ id: "fresh-booking-event-module",
276
+ class: "fresh-booking-app",
277
+ type: "event",
278
+ "access-token": c.accessToken,
279
+ style: Me
280
+ }, {
281
+ default: f(() => [
282
+ e(Re) ? (t(), y(co, {
283
+ key: 0,
284
+ slideshow: e(K),
285
+ title: e(M),
286
+ subtitle: e(J)
287
+ }, {
288
+ availability: f(({ next: Q }) => [
289
+ o("div", To, [
290
+ u(_o, {
291
+ modelValue: e(E),
292
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => D(E) ? E.value = h : null),
293
+ label: e(a)("event.selectDate"),
294
+ "min-date": /* @__PURE__ */ new Date()
295
+ }, null, 8, ["modelValue", "label", "min-date"])
296
+ ]),
297
+ e(Se) ? (t(), r("div", Eo, [
298
+ e(Be) && !e(Ie) ? (t(), r(_, { key: 0 }, [
299
+ o("h2", null, [
300
+ u(k, {
301
+ icon: "clock-seven",
302
+ type: "fal",
303
+ "icon-color": c.headerColor
304
+ }, null, 8, ["icon-color"]),
305
+ o("span", null, l(e(a)("event.eventsTitle")), 1)
306
+ ]),
307
+ o("ul", $o, [
308
+ (t(!0), r(_, null, R(e(Pe), ({
309
+ id: h,
310
+ days: s,
311
+ name: g,
312
+ timeFrom: C,
313
+ timeTo: p,
314
+ fromDate: v,
315
+ toDate: q,
316
+ tableGroupID: I,
317
+ description: X,
318
+ soldOut: Z,
319
+ maxOnlineReservationLimit: W
320
+ }) => (t(), y(ge, {
321
+ key: h,
322
+ type: "event",
323
+ "listing-id": h,
324
+ "table-group-id": I,
325
+ gallery: e(Ue)(h),
326
+ description: X,
327
+ name: g,
328
+ days: s,
329
+ "from-date": v,
330
+ "to-date": q,
331
+ "max-online-reservation-limit": W,
332
+ "time-from": C,
333
+ "time-to": p,
334
+ "sold-out": Z,
335
+ styling: {
336
+ headerColor: c.headerColor,
337
+ fontColor: c.fontColor,
338
+ fontSize: c.fontSize,
339
+ fontFamily: c.fontFamily,
340
+ panelPadding: c.panelPadding
341
+ },
342
+ callback: Q
343
+ }, 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))
344
+ ])
345
+ ], 64)) : d("", !0),
346
+ e(Ve) && !e(We) ? (t(), r(_, { key: 1 }, [
347
+ o("h2", null, [
348
+ u(k, {
349
+ icon: "stars",
350
+ type: "fal",
351
+ "icon-color": c.headerColor
352
+ }, null, 8, ["icon-color"]),
353
+ o("span", null, l(e(a)("event.stayTitle")), 1)
354
+ ]),
355
+ o("ul", Oo, [
356
+ (t(!0), r(_, null, R(e(Fe), ({
357
+ id: h,
358
+ name: s,
359
+ fromDate: g,
360
+ toDate: C,
361
+ minimumPersonCount: p,
362
+ fromPrice: v,
363
+ description: q,
364
+ imageUrl: I
365
+ }) => (t(), y(ge, {
366
+ key: h,
367
+ type: "template",
368
+ "listing-id": h,
369
+ gallery: I,
370
+ name: s,
371
+ description: q,
372
+ "from-date": g,
373
+ "to-date": C,
374
+ "minimum-person-count": p,
375
+ fromPrice: v,
376
+ styling: {
377
+ headerColor: c.headerColor,
378
+ fontColor: c.fontColor,
379
+ fontSize: c.fontSize,
380
+ fontFamily: c.fontFamily,
381
+ panelPadding: c.panelPadding
382
+ },
383
+ callback: Q
384
+ }, null, 8, ["listing-id", "gallery", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "styling", "callback"]))), 128))
385
+ ])
386
+ ], 64)) : d("", !0)
387
+ ])) : (t(), y(ie, { key: 1 }))
388
+ ]),
389
+ reservation: f(({ next: Q, prev: h }) => [
390
+ e(Le) ? (t(), y(mo, {
391
+ key: 0,
392
+ remark: e(N),
393
+ "onUpdate:remark": m[8] || (m[8] = (s) => D(N) ? N.value = s : null),
394
+ "is-filled": e(we),
395
+ "is-loading": e(_e),
396
+ currency: e(n),
397
+ "base-price": e(ke),
398
+ "button-icon-color": c.buttonIconColor,
399
+ "total-price": e(Ce),
400
+ "weekend-fee": e(Oe),
401
+ "room-upgrade": e($e),
402
+ onPrev: (s) => e(qe)(h),
403
+ onNext: (s) => e(Ne)(Q)
404
+ }, {
405
+ form: f(() => [
406
+ e(ne) === e(ce).FullDayEvent ? (t(), y(x, {
407
+ key: 0,
408
+ modelValue: e(S),
409
+ "onUpdate:modelValue": m[1] || (m[1] = (s) => D(S) ? S.value = s : null),
410
+ label: e(a)("event.numberOfDays"),
411
+ "min-value": 1,
412
+ required: ""
413
+ }, null, 8, ["modelValue", "label"])) : d("", !0),
414
+ u(be, {
415
+ modelValue: e(U),
416
+ "onUpdate:modelValue": m[2] || (m[2] = (s) => D(U) ? U.value = s : null),
417
+ type: "text",
418
+ label: e(a)("booking.reservation.name"),
419
+ icon: "user-alt",
420
+ placeholder: e(a)("booking.reservation.namePlaceholder"),
421
+ required: ""
422
+ }, null, 8, ["modelValue", "label", "placeholder"]),
423
+ u(be, {
424
+ modelValue: e(z),
425
+ "onUpdate:modelValue": m[3] || (m[3] = (s) => D(z) ? z.value = s : null),
426
+ label: e(a)("booking.reservation.email"),
427
+ type: "email",
428
+ name: "email",
429
+ autocomplete: "email",
430
+ icon: "at",
431
+ placeholder: e(a)("booking.reservation.emailPlaceholder"),
432
+ required: ""
433
+ }, null, 8, ["modelValue", "label", "placeholder"]),
434
+ u(fo, {
435
+ modelValue: e(A),
436
+ "onUpdate:modelValue": m[4] || (m[4] = (s) => D(A) ? A.value = s : null),
437
+ label: e(a)("booking.reservation.phone"),
438
+ icon: "phone-office",
439
+ placeholder: e(a)("booking.reservation.phonePlaceholder"),
440
+ required: ""
441
+ }, null, 8, ["modelValue", "label", "placeholder"]),
442
+ d("", !0),
443
+ e(j) && e(j).length > 0 ? (t(), r("ul", Do, [
444
+ (t(!0), r(_, null, R(e(j), ({
445
+ roomGroupID: s,
446
+ addons: g,
447
+ adultPerRoom: C
448
+ }, p) => (t(), r("li", { key: s }, [
449
+ o("h5", null, [
450
+ o("span", null, l(e(a)("booking.reservation.room")) + " #" + l(p + 1), 1),
451
+ re(" ("),
452
+ u(k, {
453
+ icon: "male",
454
+ type: "fas",
455
+ "icon-color": c.headerColor
456
+ }, null, 8, ["icon-color"]),
457
+ re(" " + l(C) + ") ", 1)
458
+ ]),
459
+ o("table", Ro, [
460
+ o("thead", null, [
461
+ o("tr", null, [
462
+ o("th", null, [
463
+ o("span", null, l(e(a)("booking.reservation.addons")), 1)
464
+ ]),
465
+ So,
466
+ o("th", wo, [
467
+ o("span", null, l(e(a)("booking.availability.price")), 1)
468
+ ])
469
+ ])
470
+ ]),
471
+ o("tbody", null, [
472
+ (t(!0), r(_, null, R(g, ({
473
+ addonID: v,
474
+ cardinality: q,
475
+ name: I,
476
+ price: X,
477
+ quantityStrategy: Z
478
+ }) => (t(), r("tr", { key: v }, [
479
+ o("td", null, [
480
+ o("b", null, l(I), 1),
481
+ Lo,
482
+ o("span", null, l(e(F)(X, e(n))) + " " + l(e(no)(Z)), 1)
483
+ ]),
484
+ o("td", Uo, [
485
+ q === 3 ? (t(), y(x, {
486
+ key: 0,
487
+ modelValue: e($)[`${s}.${v}.${p}`],
488
+ "onUpdate:modelValue": (W) => e($)[`${s}.${v}.${p}`] = W,
489
+ small: !0,
490
+ "min-value": 0
491
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (t(), y(pe, {
492
+ key: 1,
493
+ modelValue: e($)[`${s}.${v}.${p}`],
494
+ "onUpdate:modelValue": (W) => e($)[`${s}.${v}.${p}`] = W,
495
+ numeric: !0
496
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
497
+ ]),
498
+ o("td", Ao, [
499
+ o("span", null, l(e(F)(e(ae)(v, s, p), e(n))), 1)
500
+ ])
501
+ ]))), 128))
502
+ ]),
503
+ o("tfoot", null, [
504
+ o("tr", null, [
505
+ zo,
506
+ o("td", No, [
507
+ o("u", null, [
508
+ o("span", null, l(e(F)(e(se)(s, p), e(n))), 1)
509
+ ])
510
+ ])
511
+ ])
512
+ ])
513
+ ])
514
+ ]))), 128))
515
+ ])) : d("", !0),
516
+ e(ne) !== e(ce).FullDayEvent && !e(P) ? (t(), r("div", qo, [
517
+ o("label", Io, [
518
+ o("span", null, l(e(a)("event.selectArrivalTime")), 1)
519
+ ]),
520
+ o("ul", Wo, [
521
+ (t(!0), r(_, null, R(e(Ee), (s, g) => (t(), r("li", { key: g }, [
522
+ u(pe, {
523
+ modelValue: e(b),
524
+ "onUpdate:modelValue": m[7] || (m[7] = (C) => D(b) ? b.value = C : null),
525
+ type: "radio",
526
+ name: "eventTimeTable",
527
+ val: s.time,
528
+ label: e(G)(s.time)
529
+ }, null, 8, ["modelValue", "val", "label"])
530
+ ]))), 128))
531
+ ])
532
+ ])) : d("", !0),
533
+ e(De) ? (t(), r("div", Mo, [
534
+ o("label", jo, [
535
+ o("span", null, l(e(a)("event.selectProducts")), 1)
536
+ ]),
537
+ o("table", Qo, [
538
+ o("thead", null, [
539
+ o("tr", null, [
540
+ o("th", null, [
541
+ o("span", null, l(e(a)("booking.reservation.addons")), 1)
542
+ ]),
543
+ Yo,
544
+ o("th", Ho, [
545
+ o("span", null, l(e(a)("booking.availability.price")), 1)
546
+ ])
547
+ ])
548
+ ]),
549
+ o("tbody", null, [
550
+ (t(!0), r(_, null, R(e(Te).products, ({ productID: s, productName: g, price: C, description: p }) => (t(), r("tr", { key: s }, [
551
+ o("td", null, [
552
+ o("b", null, [
553
+ o("span", null, l(g), 1)
554
+ ]),
555
+ Jo,
556
+ o("span", null, l(p), 1),
557
+ Ko,
558
+ o("span", null, l(e(F)(C, e(n))), 1)
559
+ ]),
560
+ o("td", Xo, [
561
+ u(x, {
562
+ modelValue: e(L)[s],
563
+ "onUpdate:modelValue": (v) => e(L)[s] = v,
564
+ small: !0,
565
+ "min-value": 0
566
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
567
+ ]),
568
+ o("td", Zo, [
569
+ o("span", null, l(e(F)(e(ae)(s), e(n))), 1)
570
+ ])
571
+ ]))), 128))
572
+ ])
573
+ ])
574
+ ])) : d("", !0)
575
+ ]),
576
+ resume: f(() => [
577
+ o("li", null, [
578
+ o("span", null, l(e(a)("event.numberOfGuests")), 1),
579
+ o("b", null, l(e(V)), 1)
580
+ ]),
581
+ e(P) ? (t(), r("li", Go, [
582
+ o("span", null, l(e(a)("event.numberOfRooms")), 1),
583
+ o("b", null, l(e(he)), 1)
584
+ ])) : d("", !0),
585
+ e(P) ? (t(), r("li", xo, [
586
+ o("span", null, l(e(a)("event.numberOfDays")), 1),
587
+ o("b", null, l(e(O)), 1)
588
+ ])) : d("", !0),
589
+ e(P) ? (t(), r("li", el, [
590
+ o("span", null, l(e(a)("booking.reservation.arrival")), 1),
591
+ o("b", null, l(e(me)(e(le))), 1)
592
+ ])) : d("", !0),
593
+ e(P) ? (t(), r("li", ol, [
594
+ o("span", null, l(e(a)("booking.reservation.departure")), 1),
595
+ o("b", null, l(e(me)(e(le), e(O))), 1)
596
+ ])) : d("", !0),
597
+ !e(P) && e(b) ? (t(), r("li", ll, [
598
+ o("span", null, l(e(a)("event.startOfEvent")), 1),
599
+ o("b", null, l(e(G)(e(b))), 1)
600
+ ])) : d("", !0),
601
+ !e(P) && e(oe) ? (t(), r("li", nl, [
602
+ o("span", null, l(e(a)("event.lengthOfEvent")), 1),
603
+ o("b", null, l(e(G)(e(oe))), 1)
604
+ ])) : d("", !0),
605
+ !e(P) && e(te) > 0 ? (t(), r("li", tl, [
606
+ o("span", null, l(e(a)("booking.availability.basePrice")), 1),
607
+ o("b", null, l(e(F)(e(te), e(n))), 1)
608
+ ])) : d("", !0)
609
+ ]),
610
+ expenses: f(() => [
611
+ (t(!0), r(_, null, R(e(j), ({ roomGroupID: s }, g) => (t(), r("li", { key: s }, [
612
+ o("span", null, l(e(a)("booking.reservation.addons")) + " - " + l(e(a)("booking.reservation.room")) + " #" + l(g + 1), 1),
613
+ o("b", null, l(e(F)(e(se)(s, g), e(n))), 1)
614
+ ]))), 128))
615
+ ]),
616
+ _: 2
617
+ }, 1032, ["remark", "is-filled", "is-loading", "currency", "base-price", "button-icon-color", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : d("", !0)
618
+ ]),
619
+ payment: f(() => [
620
+ u(po)
621
+ ]),
622
+ confirmation: f(() => [
623
+ u(bo, {
624
+ message: e(a)("event.confirmationMessage"),
625
+ currency: e(n)
626
+ }, null, 8, ["message", "currency"])
627
+ ]),
628
+ _: 1
629
+ }, 8, ["slideshow", "title", "subtitle"])) : (t(), y(ie, { key: 1 }))
630
+ ]),
631
+ _: 1
632
+ }, 8, ["access-token"]));
633
+ }
634
+ });
635
+ const sl = /* @__PURE__ */ ye(al, [["__scopeId", "data-v-7a0ec33b"]]);
636
+ process.env.NODE_ENV === "production" && ao.flare.light();
637
+ const il = so(), rl = go(), B = Ze({ components: { Event: sl } });
638
+ B.use(io.flareVue);
639
+ B.use(il);
640
+ B.use(rl);
641
+ B.use(ho);
642
+ B.use(vo);
643
+ B.use(ro);
644
+ B.use(yo);
645
+ B.use(ko, { bootstrap: !1 });
646
+ B.mount("#fresh-booking-event-app");
647
+ //# sourceMappingURL=event.es.js.map
Binary file
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("./Clickable-f57e16ad.js"),t=require("./NumberField.vue_vue_type_style_index_0_lang-e642c7f3.js"),p=require("./applyGiftCard-9847fda1.js"),h=require("./ActionField-97c0c682.js");require("./SelectField.vue_vue_type_style_index_0_lang-a3371159.js");require("./_commonjsHelpers-6763f629.js");const y=r=>(e.pushScopeId("data-v-64c7a8a4"),r=r(),e.popScopeId(),r),m=["innerHTML"],N={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},F=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),k=e.defineComponent({__name:"GiftCardValidation",props:{accessToken:{},accentColor:{},buttonBackground:{},buttonBorder:{},buttonBorderRadius:{},buttonColor:{},buttonFontFamily:{},buttonFontSize:{},buttonTextTransform:{},buttonFontWeight:{},fontColor:{},fontFamily:{},fontSize:{},fontWeight:{},grayColor:{},headerColor:{},headerFontSize:{},inputBackground:{},inputBorder:{},inputBorderRadius:{},inputFontColor:{},labelFontWeight:{},labelPadding:{},loadingColor:{},panelBackground:{},panelBorder:{},panelBorderRadius:{},panelPadding:{}},setup(r){const o=r,{t:a}=t.useI18n(),{voucher:s,isValid:f,amount:g,expirationDate:B,productName:b,isLoading:l}=t.storeToRefs(p.useApplyGiftCardStore()),{currency:C}=t.storeToRefs(t.useUtilityStore()),{apply:c}=p.useApplyGiftCardStore(),V={"--accentColor":o.accentColor,"--buttonBackground":o.buttonBackground,"--buttonBorder":o.buttonBorder,"--buttonBorderRadius":o.buttonBorderRadius,"--buttonColor":o.buttonColor,"--buttonFontFamily":o.buttonFontFamily,"--buttonFontSize":o.buttonFontSize,"--buttonTextTransform":o.buttonTextTransform,"--buttonFontWeight":o.buttonFontWeight,"--fontColor":o.fontColor,"--fontFamily":o.fontFamily,"--fontSize":o.fontSize,"--fontWeight":o.fontWeight,"--grayColor":o.grayColor,"--headerColor":o.headerColor,"--headerFontSize":o.headerFontSize,"--inputBackground":o.inputBackground,"--inputBorder":o.inputBorder,"--inputBorderRadius":o.inputBorderRadius,"--inputFontColor":o.inputFontColor,"--labelFontWeight":o.labelFontWeight,"--labelPadding":o.labelPadding,"--loadingColor":o.loadingColor,"--panelBackground":o.panelBackground,"--panelBorder":o.panelBorder,"--panelBorderRadius":o.panelBorderRadius,"--panelPadding":o.panelPadding};return(d,n)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(t._sfc_main,{id:"fresh-booking-gift-card-validation-module",class:"fresh-booking-app","access-token":d.accessToken,type:"gift-card",style:V},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:n[3]||(n[3]=e.withModifiers(i=>e.unref(c)(),["prevent"]))},[e.createBaseVNode("h4",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.title")),1)]),e.createBaseVNode("p",{innerHTML:e.unref(a)("giftCardValidation.description")},null,8,m),e.createVNode(h.ActionField,{modelValue:e.unref(s),"onUpdate:modelValue":n[0]||(n[0]=i=>e.isRef(s)?s.value=i:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(l),"onUpdate:isLoading":n[1]||(n[1]=i=>e.isRef(l)?l.value=i:null),onAction:n[2]||(n[2]=i=>e.unref(c)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(l)&&e.unref(f)?(e.openBlock(),e.createElementBlock("table",N,[e.createBaseVNode("thead",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.giftCard")),1),e.createVNode(e.Icon,{icon:"gift-card",type:"fas","icon-color":d.headerColor},null,8,["icon-color"])]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.balance")),1),e.createVNode(e.Icon,{icon:"money-bill",type:"fas","icon-color":d.headerColor},null,8,["icon-color"])]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas","icon-color":d.headerColor},null,8,["icon-color"])])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(b)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(g),e.unref(C))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(t.showDate)(e.unref(B))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token"])]),fallback:e.withCtx(()=>[F]),_:1}))}});const _=e._export_sfc(k,[["__scopeId","data-v-64c7a8a4"]]);process.env.NODE_ENV==="production"&&t.distExports.flare.light("rzAIZ4UzZcOlUo0F0ZcYWETY9Z6JXf82");const u=e.createApp({components:{GiftCardValidation:_}}),S=t.createPinia();u.use(t.distExports$1.flareVue);u.use(S);u.use(t.instance);u.mount("#fresh-booking-gift-card-validation-app");
2
+ //# sourceMappingURL=gift-card-validation.cjs.js.map