@konnectio/core 4.0.6 → 4.0.9

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