@konnectio/core 4.0.56-rc20 → 4.0.56-rc22

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 (44) hide show
  1. package/dist/{ActionField-8hkjdoF_.js → ActionField-ZJdtBRXa.js} +7 -7
  2. package/dist/ActionField-ZJdtBRXa.js.br +4 -0
  3. package/dist/AvailabilitySkeleton-tfEBupNq.js +234 -0
  4. package/dist/AvailabilitySkeleton-tfEBupNq.js.br +0 -0
  5. package/dist/{CheckoutWindow-bgpWiBAd.js → CheckoutWindow-orJD6dJy.js} +28 -28
  6. package/dist/CheckoutWindow-orJD6dJy.js.br +0 -0
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js +7607 -0
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-KjvE2y5e.js.br +0 -0
  9. package/dist/ErrorMessage-mUpn7ZBU.js +36 -0
  10. package/dist/ErrorMessage-mUpn7ZBU.js.br +0 -0
  11. package/dist/EventAvailabilityForm-cAOEZVnn.js +366 -0
  12. package/dist/EventAvailabilityForm-cAOEZVnn.js.br +0 -0
  13. package/dist/{Field-FbUrCgmJ.js → Field-Kwm-GcDa.js} +7 -7
  14. package/dist/Field-Kwm-GcDa.js.br +0 -0
  15. package/dist/{ThankYou-tb7LP48E.js → ThankYou-EiAxaHd8.js} +2712 -2758
  16. package/dist/ThankYou-EiAxaHd8.js.br +0 -0
  17. package/dist/{_-5tXWGiwV.js → _-KavQ60qi.js} +5332 -5360
  18. package/dist/_-KavQ60qi.js.br +0 -0
  19. package/dist/availability.js +69 -157
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +323 -534
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +28 -29
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +203 -199
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +1328 -1248
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +1 -1
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +7 -6
  34. package/dist/ActionField-8hkjdoF_.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-K35mnVjA.js +0 -215
  36. package/dist/AvailabilitySkeleton-K35mnVjA.js.br +0 -0
  37. package/dist/CheckoutWindow-bgpWiBAd.js.br +0 -0
  38. package/dist/DateField.vue_vue_type_style_index_0_lang-otC5QBT_.js +0 -8026
  39. package/dist/DateField.vue_vue_type_style_index_0_lang-otC5QBT_.js.br +0 -0
  40. package/dist/Field-FbUrCgmJ.js.br +0 -0
  41. package/dist/ThankYou-tb7LP48E.js.br +0 -0
  42. package/dist/_-5tXWGiwV.js.br +0 -0
  43. package/dist/event-36Kem6rb.js +0 -328
  44. package/dist/event-36Kem6rb.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,582 +1,371 @@
1
- import { k as ge, B as he, b as Ie, s as Q, c as fe, r as Ze, f as je, o as a, m as y, M as He, w as k, n as l, t as r, N as V, P as n, p as e, Q as Qe, R as ie, x as i, U as re, y as d, V as We, W as U, X as Ye, v as ke, H as Ge, G as Je, J as F, K as C, Y as R, Z as ue, O as de, q as x, T as me, $ as ce, a0 as Ke, a1 as ee, a2 as pe, a3 as Xe, a4 as xe, a5 as el, a6 as ll, a7 as nl, a8 as tl, a9 as al, aa as ol } from "./_-5tXWGiwV.js";
2
- import { B as sl, M as il, R as rl, T as ul, G as dl } from "./ThankYou-tb7LP48E.js";
3
- import { u as W } from "./event-36Kem6rb.js";
4
- import { A as ml } from "./ActionField-8hkjdoF_.js";
5
- import { P as cl, C as ve, a as pl } from "./CheckoutWindow-bgpWiBAd.js";
6
- import { _ as vl } from "./DateField.vue_vue_type_style_index_0_lang-otC5QBT_.js";
7
- import "./_commonjsHelpers-f3sTPFkQ.js";
8
- const bl = { class: "fresh-booking-event-listing-information" }, gl = { key: 0 }, hl = { key: 1 }, fl = /* @__PURE__ */ ge({
9
- __name: "Event",
10
- props: {
11
- name: {},
12
- type: {},
13
- description: {},
14
- fromDate: {},
15
- toDate: {},
16
- listingId: {},
17
- tableGroupId: {},
18
- days: {},
19
- timeFrom: {},
20
- timeTo: {},
21
- maxOnlineReservationLimit: {},
22
- minimumPersonCount: {},
23
- fromPrice: {},
24
- gallery: {},
25
- soldOut: { type: Boolean, default: !1 },
26
- layout: {},
27
- trackingEnabled: { type: Boolean },
28
- callback: {}
29
- },
30
- setup(B) {
31
- const { t } = he(), m = B, { display: P } = Ie(), { currency: N } = Q(fe()), {
32
- maxNumberOfPeople: T,
33
- numberOfPeople: _,
34
- eventId: g,
35
- tableGroupId: D
36
- } = Q(W()), {
37
- getTemplateAvailability: u,
38
- getEventAvailability: c,
39
- isEventListingLoading: p
40
- } = W(), L = Ze(0), I = je(() => p(m.listingId)), Y = () => {
41
- L.value > 0 ? (g.value = m.listingId, _.value = L.value, u(m.callback)) : P({
42
- type: "error",
43
- message: t("alert.error.selectPeople")
44
- });
45
- }, $ = () => {
46
- L.value > 0 ? (g.value = m.listingId, D.value = m.tableGroupId, _.value = L.value, c(m.callback)) : P({
47
- type: "error",
48
- message: t("alert.error.selectPeople")
49
- });
50
- };
51
- return (s, E) => (a(), y(sl, {
52
- "listing-id": s.listingId,
53
- gallery: s.gallery,
54
- name: s.name,
55
- description: s.description,
56
- layout: e(Ye).Event
57
- }, He({
58
- action: k(() => [
59
- r(ml, {
60
- modelValue: L.value,
61
- "onUpdate:modelValue": E[0] || (E[0] = (S) => L.value = S),
62
- type: "number",
63
- label: e(t)("event.numberOfGuests"),
64
- buttonLabel: s.soldOut ? e(t)("event.soldOut") : e(t)("event.bookNowButton"),
65
- buttonDisabled: s.soldOut,
66
- "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
67
- "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(T),
68
- "is-loading": I.value,
69
- "onUpdate:isLoading": E[1] || (E[1] = (S) => I.value = S),
70
- onAction: E[2] || (E[2] = (S) => s.type === "event" ? $() : Y())
71
- }, null, 8, ["modelValue", "label", "buttonLabel", "buttonDisabled", "min-value", "max-value", "is-loading"])
72
- ]),
73
- _: 2
74
- }, [
75
- s.type === "event" ? {
76
- name: "description",
77
- fn: k(() => [
78
- l("ul", bl, [
79
- l("li", null, [
80
- r(V, {
81
- icon: "calendar-range",
82
- color: "header"
83
- }),
84
- l("span", null, n(e(Qe)(s.days)), 1)
85
- ]),
86
- e(ie)(s.fromDate, s.toDate) < 180 ? (a(), i("li", gl, [
87
- r(V, {
88
- icon: "calendar-days",
89
- color: "header"
90
- }),
91
- l("span", null, n(e(re)(s.fromDate, s.toDate)), 1)
92
- ])) : d("", !0),
93
- l("li", null, [
94
- r(V, {
95
- icon: "calendar-clock",
96
- color: "header"
97
- }),
98
- l("span", null, n(e(We)(s.timeFrom, s.timeTo)), 1)
99
- ]),
100
- s.maxOnlineReservationLimit ? (a(), i("li", hl, [
101
- r(V, {
102
- icon: "user-alt",
103
- color: "header"
104
- }),
105
- l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(t)("general.people")}`), 1)
106
- ])) : d("", !0)
107
- ])
108
- ]),
109
- key: "0"
110
- } : {
111
- name: "description",
112
- fn: k(() => [
113
- l("ul", { class: "fresh-booking-event-listing-information" }, [
114
- e(ie)(s.fromDate, s.toDate) < 180 ? (a(), i("li", { key: 0 }, [
115
- r(V, {
116
- icon: "calendar-days",
117
- color: "header"
118
- }),
119
- l("span", null, n(e(re)(s.fromDate, s.toDate, !0)), 1)
120
- ])) : d("", !0),
121
- l("li", null, [
122
- r(V, {
123
- icon: "user-alt",
124
- color: "header"
125
- }),
126
- l("span", null, n(`${s.minimumPersonCount} - ${e(T)} ${e(t)("general.people")}`), 1)
127
- ]),
128
- l("li", null, [
129
- r(V, {
130
- icon: "money-bill",
131
- color: "header"
132
- }),
133
- l("span", null, n(`${e(t)("general.pricesFrom")} ${e(U)(s.fromPrice, e(N))}`), 1)
134
- ])
135
- ])
136
- ]),
137
- key: "1"
138
- }
139
- ]), 1032, ["listing-id", "gallery", "name", "description", "layout"]));
140
- }
141
- }), be = /* @__PURE__ */ ke(fl, [["__scopeId", "data-v-013d2269"]]), M = (B) => (el("data-v-c609785a"), B = B(), ll(), B), kl = { class: "fresh-booking-panel" }, yl = {
142
- key: 0,
143
- id: "fresh-booking-event-overview"
144
- }, _l = { class: "fresh-booking-event-listings" }, Vl = { class: "fresh-booking-event-listings" }, Pl = {
1
+ import { d as Ve, j as Ee, B as I, D as Te, l as Be, G as Ce, o as a, a as _, w as p, S as Pe, f as v, b as t, L as Ae, u as e, H as P, O as ee, e as S, i as r, T as te, h as s, F as N, J as w, t as n, K as ne, M as xe, N as y, P as Fe, Q as M, R as le, q as Ne, s as we, v as Oe, x as De, g as Le, y as $e, z as Ue, A as Re, U as Se } from "./_-KavQ60qi.js";
2
+ import { M as Me, R as qe, T as ze, G as je } from "./ThankYou-EiAxaHd8.js";
3
+ import { u as oe, E as He } from "./EventAvailabilityForm-cAOEZVnn.js";
4
+ import "./ActionField-ZJdtBRXa.js";
5
+ import { P as Qe, C as ae, a as Ze } from "./CheckoutWindow-orJD6dJy.js";
6
+ const V = (A) => (Oe("data-v-693ef234"), A = A(), De(), A), Je = { class: "fresh-booking-panel" };
7
+ const Ke = {
145
8
  key: 2,
146
9
  id: "fresh-booking-event-addons"
147
- }, Tl = { class: "fresh-booking-table" }, $l = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), El = { class: "fresh-booking-event-addons-price" }, wl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Ol = { class: "fresh-booking-event-addons-input" }, Cl = { class: "fresh-booking-event-addons-price" }, Dl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("td", { colspan: "2" }, null, -1)), Ll = { class: "fresh-booking-event-addons-price" }, Al = { key: 3 }, Ul = { class: "fresh-booking-label required" }, Bl = { id: "fresh-booking-event-table" }, Fl = { key: 4 }, Rl = { class: "fresh-booking-label required" }, Nl = { class: "fresh-booking-table" }, Sl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Ml = { class: "fresh-booking-event-addons-price" }, ql = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), zl = /* @__PURE__ */ M(() => /* @__PURE__ */ l("br", null, null, -1)), Il = { class: "fresh-booking-event-addons-input" }, Zl = { class: "fresh-booking-event-addons-price" }, jl = { key: 0 }, Hl = { key: 1 }, Ql = { key: 2 }, Wl = { key: 3 }, Yl = { key: 4 }, Gl = { key: 5 }, Jl = { key: 6 }, Kl = /* @__PURE__ */ ge({
10
+ }, We = { class: "fresh-booking-table" }, Ye = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), Xe = { class: "fresh-booking-event-addons-price" }, Ge = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), Ie = { class: "fresh-booking-event-addons-input" }, et = { class: "fresh-booking-event-addons-price" }, tt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("td", { colspan: "2" }, null, -1)), nt = { class: "fresh-booking-event-addons-price" }, lt = { key: 3 }, ot = { class: "fresh-booking-label required" }, at = { id: "fresh-booking-event-table" }, st = { key: 4 }, it = { class: "fresh-booking-label required" }, rt = { class: "fresh-booking-table" }, ut = /* @__PURE__ */ V(() => /* @__PURE__ */ t("th", { class: "fresh-booking-event-addons-input" }, null, -1)), dt = { class: "fresh-booking-event-addons-price" }, ct = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), mt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("br", null, null, -1)), pt = { class: "fresh-booking-event-addons-input" }, vt = { class: "fresh-booking-event-addons-price" }, ht = { key: 0 }, bt = { key: 1 }, kt = { key: 2 }, ft = { key: 3 }, gt = { key: 4 }, _t = { key: 5 }, yt = { key: 6 }, Vt = /* @__PURE__ */ V(() => /* @__PURE__ */ t("div", null, "Loading", -1)), Et = /* @__PURE__ */ Ve({
148
11
  name: "EventLayout",
149
12
  __name: "Event",
150
13
  props: {
151
14
  accessToken: {},
152
15
  styling: {}
153
16
  },
154
- setup(B) {
155
- const { t } = he(), {
156
- searchDate: m,
157
- addons: P,
158
- products: N,
17
+ setup(A) {
18
+ const { t: o } = Ee(), {
19
+ searchDate: x,
20
+ addons: E,
21
+ products: O,
159
22
  numberOfDays: T,
160
- discountCode: _,
161
- name: g,
162
- phone: D,
163
- email: u,
23
+ discountCode: B,
24
+ name: C,
25
+ phone: i,
26
+ email: d,
164
27
  remark: c,
165
- arrivalTime: p,
166
- title: L,
167
- subtitle: I,
168
- slideshow: Y,
169
- currency: $,
170
- numberOfPeople: s,
171
- numberOfTotalDays: E,
172
- numberOfRooms: S,
173
- basePrice: ye,
174
- totalPrice: _e,
175
- isPaymentLoading: Ve,
176
- hasEvents: Pe,
177
- hasTemplates: Te,
178
- getEvents: $e,
179
- getTemplates: Ee,
180
- getEventData: we,
181
- getTemplateData: Z,
182
- getEventTableData: Oe,
183
- length: le,
184
- roomUpgrade: Ce,
185
- weekendFee: De,
186
- fromDate: ne,
187
- hasProducts: Le,
188
- eventRateType: te,
189
- isMetaDataAvailable: Ae,
190
- areListingsAvailable: Ue,
191
- isReservationFormFilled: Be,
192
- isAvailabilityDataAvailable: Fe,
28
+ arrivalTime: F,
29
+ title: Ct,
30
+ subtitle: Pt,
31
+ slideshow: At,
32
+ currency: f,
33
+ numberOfPeople: se,
34
+ numberOfTotalDays: q,
35
+ numberOfRooms: ie,
36
+ basePrice: re,
37
+ totalPrice: ue,
38
+ isPaymentLoading: de,
39
+ hasEvents: xt,
40
+ hasTemplates: Ft,
41
+ getEvents: Nt,
42
+ getTemplates: wt,
43
+ getEventData: ce,
44
+ getTemplateData: D,
45
+ getEventTableData: me,
46
+ length: z,
47
+ roomUpgrade: pe,
48
+ weekendFee: ve,
49
+ fromDate: j,
50
+ hasProducts: he,
51
+ eventRateType: H,
52
+ isMetaDataAvailable: Ot,
53
+ areListingsAvailable: Dt,
54
+ isReservationFormFilled: be,
55
+ isAvailabilityDataAvailable: ke,
193
56
  // getEventImages,
194
- isTemplateEvent: A,
195
- tableBasePrice: ae
196
- } = Q(W()), {
197
- initialize: Re,
198
- validateDiscountCode: en,
199
- fetchListings: Ne,
200
- createBooking: Se,
201
- localAddonPrice: oe,
202
- totalAddonPrice: se,
203
- reset: Me
204
- } = W(), {
205
- hideEvents: qe,
206
- hideEventTemplates: ze
207
- } = Q(fe());
208
- return Ge(() => Re()), Je(m, () => Ne()), (G, v) => (a(), y(xe, { styling: G.styling }, {
209
- default: k(() => [
210
- r(Xe, {
211
- id: "fresh-booking-event-module",
212
- class: "fresh-booking-app",
213
- type: "event",
214
- "access-token": G.accessToken,
215
- styling: G.styling
216
- }, {
217
- default: k(() => [
218
- e(Ae) ? (a(), y(il, {
219
- key: 0,
220
- slideshow: e(Y),
221
- title: e(L),
222
- subtitle: e(I)
57
+ isTemplateEvent: k,
58
+ tableBasePrice: Q
59
+ } = I(oe()), {
60
+ initialize: fe,
61
+ validateDiscountCode: Lt,
62
+ fetchListings: ge,
63
+ createBooking: _e,
64
+ localAddonPrice: Z,
65
+ totalAddonPrice: J,
66
+ reset: ye
67
+ } = oe(), {
68
+ hideEvents: $t,
69
+ hideEventTemplates: Ut
70
+ } = I(Te());
71
+ return Be(() => fe()), Ce(x, () => ge()), (K, u) => (a(), _(we, { styling: K.styling }, {
72
+ default: p(() => [
73
+ (a(), _(Pe, null, {
74
+ default: p(() => [
75
+ v(Ne, {
76
+ id: "fresh-booking-event-module",
77
+ class: "fresh-booking-app",
78
+ type: "event",
79
+ "access-token": K.accessToken
223
80
  }, {
224
- availability: k(({ next: j }) => [
225
- l("div", kl, [
226
- r(vl, {
227
- modelValue: e(m),
228
- "onUpdate:modelValue": v[0] || (v[0] = (w) => F(m) ? m.value = w : null),
229
- label: e(t)("event.selectDate"),
230
- "min-date": /* @__PURE__ */ new Date()
231
- }, null, 8, ["modelValue", "label", "min-date"])
232
- ]),
233
- e(Ue) ? (a(), i("div", yl, [
234
- e(Pe) && !e(qe) ? (a(), i(C, { key: 0 }, [
235
- l("h2", null, [
236
- r(V, {
237
- icon: "clock-seven",
238
- type: "fal",
239
- color: "header"
240
- }),
241
- l("span", null, n(e(t)("event.eventsTitle")), 1)
81
+ default: p(() => [
82
+ v(Me, null, {
83
+ availability: p(({ next: W }) => [
84
+ t("div", Je, [
85
+ v(He)
242
86
  ]),
243
- l("ul", _l, [
244
- (a(!0), i(C, null, R(e($e), ({
245
- id: w,
246
- days: o,
247
- name: h,
248
- timeFrom: O,
249
- timeTo: b,
250
- fromDate: f,
251
- toDate: q,
252
- tableGroupID: J,
253
- description: K,
254
- soldOut: X,
255
- maxOnlineReservationLimit: z
256
- }) => (a(), y(be, {
257
- key: w,
258
- type: "event",
259
- "listing-id": w,
260
- "table-group-id": J,
261
- description: K,
262
- name: h,
263
- days: o,
264
- "from-date": f,
265
- "to-date": q,
266
- "max-online-reservation-limit": z,
267
- "time-from": O,
268
- "time-to": b,
269
- "sold-out": X,
270
- callback: j
271
- }, 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))
272
- ])
273
- ], 64)) : d("", !0),
274
- e(Te) && !e(ze) ? (a(), i(C, { key: 1 }, [
275
- l("h2", null, [
276
- r(V, {
277
- icon: "stars",
278
- type: "fal",
279
- color: "header"
280
- }),
281
- l("span", null, n(e(t)("event.stayTitle")), 1)
282
- ]),
283
- l("ul", Vl, [
284
- (a(!0), i(C, null, R(e(Ee), ({
285
- id: w,
286
- name: o,
287
- fromDate: h,
288
- toDate: O,
289
- minimumPersonCount: b,
290
- fromPrice: f,
291
- description: q
292
- }) => (a(), y(be, {
293
- key: w,
294
- type: "template",
295
- "listing-id": w,
296
- name: o,
297
- description: q,
298
- "from-date": h,
299
- "to-date": O,
300
- "minimum-person-count": b,
301
- fromPrice: f,
302
- callback: j
303
- }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
304
- ])
305
- ], 64)) : d("", !0)
306
- ])) : (a(), y(ue, { key: 1 }))
307
- ]),
308
- reservation: k(({ next: j, prev: w }) => [
309
- e(Fe) ? (a(), y(rl, {
310
- key: 0,
311
- remark: e(c),
312
- "onUpdate:remark": v[8] || (v[8] = (o) => F(c) ? c.value = o : null),
313
- "is-filled": e(Be),
314
- "is-loading": e(Ve),
315
- "base-price": e(ye),
316
- "total-price": e(_e),
317
- "weekend-fee": e(De),
318
- "room-upgrade": e(Ce),
319
- onPrev: (o) => e(Me)(w),
320
- onNext: (o) => e(Se)(j)
321
- }, {
322
- form: k(() => [
323
- e(te) === e(de).FullDayEvent ? (a(), y(x, {
87
+ (a(), _(Ae, { key: 1 }))
88
+ ]),
89
+ reservation: p(({ next: W, prev: U }) => [
90
+ e(ke) ? (a(), _(qe, {
324
91
  key: 0,
325
- modelValue: e(T),
326
- "onUpdate:modelValue": v[1] || (v[1] = (o) => F(T) ? T.value = o : null),
327
- label: e(t)("event.numberOfDays"),
328
- "min-value": 1,
329
- required: ""
330
- }, null, 8, ["modelValue", "label"])) : d("", !0),
331
- r(me, {
332
- modelValue: e(g),
333
- "onUpdate:modelValue": v[2] || (v[2] = (o) => F(g) ? g.value = o : null),
334
- type: "text",
335
- label: e(t)("booking.reservation.name"),
336
- icon: "user-alt",
337
- placeholder: e(t)("booking.reservation.namePlaceholder"),
338
- required: ""
339
- }, null, 8, ["modelValue", "label", "placeholder"]),
340
- r(me, {
341
- modelValue: e(u),
342
- "onUpdate:modelValue": v[3] || (v[3] = (o) => F(u) ? u.value = o : null),
343
- label: e(t)("booking.reservation.email"),
344
- type: "email",
345
- name: "email",
346
- autocomplete: "email",
347
- icon: "at",
348
- placeholder: e(t)("booking.reservation.emailPlaceholder"),
349
- required: ""
350
- }, null, 8, ["modelValue", "label", "placeholder"]),
351
- r(cl, {
352
- modelValue: e(D),
353
- "onUpdate:modelValue": v[4] || (v[4] = (o) => F(D) ? D.value = o : null),
354
- label: e(t)("booking.reservation.phone"),
355
- icon: "phone-office",
356
- placeholder: e(t)("booking.reservation.phonePlaceholder"),
357
- required: ""
358
- }, null, 8, ["modelValue", "label", "placeholder"]),
359
- d("", !0),
360
- e(Z) && e(Z).length > 0 ? (a(), i("ul", Pl, [
361
- (a(!0), i(C, null, R(e(Z), ({
362
- roomGroupID: o,
363
- addons: h,
364
- adultPerRoom: O
365
- }, b) => (a(), i("li", { key: o }, [
366
- l("h5", null, [
367
- l("span", null, n(e(t)("booking.reservation.room")) + " #" + n(b + 1), 1),
368
- ce(" ("),
369
- r(V, {
370
- icon: "male",
371
- type: "fas",
372
- color: "header"
373
- }),
374
- ce(" " + n(O) + ") ", 1)
375
- ]),
376
- l("table", Tl, [
377
- l("thead", null, [
378
- l("tr", null, [
379
- l("th", null, [
380
- l("span", null, n(e(t)("booking.reservation.addons")), 1)
92
+ remark: e(c),
93
+ "onUpdate:remark": u[7] || (u[7] = (l) => P(c) ? c.value = l : null),
94
+ "is-filled": e(be),
95
+ "is-loading": e(de),
96
+ "base-price": e(re),
97
+ "total-price": e(ue),
98
+ "weekend-fee": e(ve),
99
+ "room-upgrade": e(pe),
100
+ onPrev: (l) => e(ye)(U),
101
+ onNext: (l) => e(_e)(W)
102
+ }, {
103
+ form: p(() => [
104
+ e(H) === e(ee).FullDayEvent ? (a(), _(S, {
105
+ key: 0,
106
+ modelValue: e(T),
107
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => P(T) ? T.value = l : null),
108
+ label: e(o)("event.numberOfDays"),
109
+ "min-value": 1,
110
+ required: ""
111
+ }, null, 8, ["modelValue", "label"])) : r("", !0),
112
+ v(te, {
113
+ modelValue: e(C),
114
+ "onUpdate:modelValue": u[1] || (u[1] = (l) => P(C) ? C.value = l : null),
115
+ type: "text",
116
+ label: e(o)("booking.reservation.name"),
117
+ icon: "user-alt",
118
+ placeholder: e(o)("booking.reservation.namePlaceholder"),
119
+ required: ""
120
+ }, null, 8, ["modelValue", "label", "placeholder"]),
121
+ v(te, {
122
+ modelValue: e(d),
123
+ "onUpdate:modelValue": u[2] || (u[2] = (l) => P(d) ? d.value = l : null),
124
+ label: e(o)("booking.reservation.email"),
125
+ type: "email",
126
+ name: "email",
127
+ autocomplete: "email",
128
+ icon: "at",
129
+ placeholder: e(o)("booking.reservation.emailPlaceholder"),
130
+ required: ""
131
+ }, null, 8, ["modelValue", "label", "placeholder"]),
132
+ v(Qe, {
133
+ modelValue: e(i),
134
+ "onUpdate:modelValue": u[3] || (u[3] = (l) => P(i) ? i.value = l : null),
135
+ label: e(o)("booking.reservation.phone"),
136
+ icon: "phone-office",
137
+ placeholder: e(o)("booking.reservation.phonePlaceholder"),
138
+ required: ""
139
+ }, null, 8, ["modelValue", "label", "placeholder"]),
140
+ r("", !0),
141
+ e(D) && e(D).length > 0 ? (a(), s("ul", Ke, [
142
+ (a(!0), s(N, null, w(e(D), ({
143
+ roomGroupID: l,
144
+ addons: h,
145
+ adultPerRoom: g
146
+ }, m) => (a(), s("li", { key: l }, [
147
+ t("h5", null, [
148
+ t("span", null, n(e(o)("booking.reservation.room")) + " #" + n(m + 1), 1),
149
+ ne(" ("),
150
+ v(xe, {
151
+ icon: "male",
152
+ type: "fas",
153
+ color: "header"
154
+ }),
155
+ ne(" " + n(g) + ") ", 1)
156
+ ]),
157
+ t("table", We, [
158
+ t("thead", null, [
159
+ t("tr", null, [
160
+ t("th", null, [
161
+ t("span", null, n(e(o)("booking.reservation.addons")), 1)
162
+ ]),
163
+ Ye,
164
+ t("th", Xe, [
165
+ t("span", null, n(e(o)("booking.availability.price")), 1)
166
+ ])
167
+ ])
168
+ ]),
169
+ t("tbody", null, [
170
+ (a(!0), s(N, null, w(h, ({
171
+ addonID: b,
172
+ cardinality: R,
173
+ name: Y,
174
+ price: X,
175
+ quantityStrategy: G
176
+ }) => (a(), s("tr", { key: b }, [
177
+ t("td", null, [
178
+ t("b", null, n(Y), 1),
179
+ Ge,
180
+ t("span", null, n(e(y)(X, e(f))) + " " + n(e(Fe)(G)), 1)
181
+ ]),
182
+ t("td", Ie, [
183
+ R === 3 ? (a(), _(S, {
184
+ key: 0,
185
+ modelValue: e(E)[`${l}.${b}.${m}`],
186
+ "onUpdate:modelValue": (L) => e(E)[`${l}.${b}.${m}`] = L,
187
+ small: !0,
188
+ "min-value": 0
189
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), _(ae, {
190
+ key: 1,
191
+ modelValue: e(E)[`${l}.${b}.${m}`],
192
+ "onUpdate:modelValue": (L) => e(E)[`${l}.${b}.${m}`] = L,
193
+ numeric: !0
194
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]))
195
+ ]),
196
+ t("td", et, [
197
+ t("span", null, n(e(y)(e(Z)(b, l, m), e(f))), 1)
198
+ ])
199
+ ]))), 128))
381
200
  ]),
382
- $l,
383
- l("th", El, [
384
- l("span", null, n(e(t)("booking.availability.price")), 1)
201
+ t("tfoot", null, [
202
+ t("tr", null, [
203
+ tt,
204
+ t("td", nt, [
205
+ t("u", null, [
206
+ t("span", null, n(e(y)(e(J)(l, m), e(f))), 1)
207
+ ])
208
+ ])
209
+ ])
385
210
  ])
386
211
  ])
212
+ ]))), 128))
213
+ ])) : r("", !0),
214
+ e(H) !== e(ee).FullDayEvent && !e(k) ? (a(), s("div", lt, [
215
+ t("label", ot, [
216
+ t("span", null, n(e(o)("event.selectArrivalTime")), 1)
387
217
  ]),
388
- l("tbody", null, [
389
- (a(!0), i(C, null, R(h, ({
390
- addonID: f,
391
- cardinality: q,
392
- name: J,
393
- price: K,
394
- quantityStrategy: X
395
- }) => (a(), i("tr", { key: f }, [
396
- l("td", null, [
397
- l("b", null, n(J), 1),
398
- wl,
399
- l("span", null, n(e(U)(K, e($))) + " " + n(e(Ke)(X)), 1)
400
- ]),
401
- l("td", Ol, [
402
- q === 3 ? (a(), y(x, {
403
- key: 0,
404
- modelValue: e(P)[`${o}.${f}.${b}`],
405
- "onUpdate:modelValue": (z) => e(P)[`${o}.${f}.${b}`] = z,
406
- small: !0,
407
- "min-value": 0
408
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (a(), y(ve, {
409
- key: 1,
410
- modelValue: e(P)[`${o}.${f}.${b}`],
411
- "onUpdate:modelValue": (z) => e(P)[`${o}.${f}.${b}`] = z,
412
- numeric: !0
413
- }, null, 8, ["modelValue", "onUpdate:modelValue"]))
414
- ]),
415
- l("td", Cl, [
416
- l("span", null, n(e(U)(e(oe)(f, o, b), e($))), 1)
417
- ])
218
+ t("ul", at, [
219
+ (a(!0), s(N, null, w(e(me), (l, h) => (a(), s("li", { key: h }, [
220
+ v(ae, {
221
+ modelValue: e(F),
222
+ "onUpdate:modelValue": u[6] || (u[6] = (g) => P(F) ? F.value = g : null),
223
+ type: "radio",
224
+ name: "eventTimeTable",
225
+ val: l.time,
226
+ label: e(M)(l.time)
227
+ }, null, 8, ["modelValue", "val", "label"])
418
228
  ]))), 128))
229
+ ])
230
+ ])) : r("", !0),
231
+ e(he) ? (a(), s("div", st, [
232
+ t("label", it, [
233
+ t("span", null, n(e(o)("event.selectProducts")), 1)
419
234
  ]),
420
- l("tfoot", null, [
421
- l("tr", null, [
422
- Dl,
423
- l("td", Ll, [
424
- l("u", null, [
425
- l("span", null, n(e(U)(e(se)(o, b), e($))), 1)
235
+ t("table", rt, [
236
+ t("thead", null, [
237
+ t("tr", null, [
238
+ t("th", null, [
239
+ t("span", null, n(e(o)("booking.reservation.addons")), 1)
240
+ ]),
241
+ ut,
242
+ t("th", dt, [
243
+ t("span", null, n(e(o)("booking.availability.price")), 1)
426
244
  ])
427
245
  ])
246
+ ]),
247
+ t("tbody", null, [
248
+ (a(!0), s(N, null, w(e(ce).products, ({ productID: l, productName: h, price: g, description: m }) => (a(), s("tr", { key: l }, [
249
+ t("td", null, [
250
+ t("b", null, [
251
+ t("span", null, n(h), 1)
252
+ ]),
253
+ ct,
254
+ t("span", null, n(m), 1),
255
+ mt,
256
+ t("span", null, n(e(y)(g, e(f))), 1)
257
+ ]),
258
+ t("td", pt, [
259
+ v(S, {
260
+ modelValue: e(O)[l],
261
+ "onUpdate:modelValue": (b) => e(O)[l] = b,
262
+ small: !0,
263
+ "min-value": 0
264
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
265
+ ]),
266
+ t("td", vt, [
267
+ t("span", null, n(e(y)(e(Z)(l), e(f))), 1)
268
+ ])
269
+ ]))), 128))
428
270
  ])
429
271
  ])
430
- ])
431
- ]))), 128))
432
- ])) : d("", !0),
433
- e(te) !== e(de).FullDayEvent && !e(A) ? (a(), i("div", Al, [
434
- l("label", Ul, [
435
- l("span", null, n(e(t)("event.selectArrivalTime")), 1)
272
+ ])) : r("", !0)
436
273
  ]),
437
- l("ul", Bl, [
438
- (a(!0), i(C, null, R(e(Oe), (o, h) => (a(), i("li", { key: h }, [
439
- r(ve, {
440
- modelValue: e(p),
441
- "onUpdate:modelValue": v[7] || (v[7] = (O) => F(p) ? p.value = O : null),
442
- type: "radio",
443
- name: "eventTimeTable",
444
- val: o.time,
445
- label: e(ee)(o.time)
446
- }, null, 8, ["modelValue", "val", "label"])
274
+ resume: p(() => [
275
+ t("li", null, [
276
+ t("span", null, n(e(o)("event.numberOfGuests")), 1),
277
+ t("b", null, n(e(se)), 1)
278
+ ]),
279
+ e(k) ? (a(), s("li", ht, [
280
+ t("span", null, n(e(o)("event.numberOfRooms")), 1),
281
+ t("b", null, n(e(ie)), 1)
282
+ ])) : r("", !0),
283
+ e(k) ? (a(), s("li", bt, [
284
+ t("span", null, n(e(o)("event.numberOfDays")), 1),
285
+ t("b", null, n(e(q)), 1)
286
+ ])) : r("", !0),
287
+ e(k) ? (a(), s("li", kt, [
288
+ t("span", null, n(e(o)("booking.reservation.arrival")), 1),
289
+ t("b", null, n(e(le)(e(j))), 1)
290
+ ])) : r("", !0),
291
+ e(k) ? (a(), s("li", ft, [
292
+ t("span", null, n(e(o)("booking.reservation.departure")), 1),
293
+ t("b", null, n(e(le)(e(j), e(q))), 1)
294
+ ])) : r("", !0),
295
+ !e(k) && e(F) ? (a(), s("li", gt, [
296
+ t("span", null, n(e(o)("event.startOfEvent")), 1),
297
+ t("b", null, n(e(M)(e(F))), 1)
298
+ ])) : r("", !0),
299
+ !e(k) && e(z) ? (a(), s("li", _t, [
300
+ t("span", null, n(e(o)("event.lengthOfEvent")), 1),
301
+ t("b", null, n(e(M)(e(z))), 1)
302
+ ])) : r("", !0),
303
+ !e(k) && e(Q) > 0 ? (a(), s("li", yt, [
304
+ t("span", null, n(e(o)("booking.availability.basePrice")), 1),
305
+ t("b", null, n(e(y)(e(Q), e(f))), 1)
306
+ ])) : r("", !0)
307
+ ]),
308
+ expenses: p(() => [
309
+ (a(!0), s(N, null, w(e(D), ({ roomGroupID: l }, h) => (a(), s("li", { key: l }, [
310
+ t("span", null, n(e(o)("booking.reservation.addons")) + " - " + n(e(o)("booking.reservation.room")) + " #" + n(h + 1), 1),
311
+ t("b", null, n(e(y)(e(J)(l, h), e(f))), 1)
447
312
  ]))), 128))
448
- ])
449
- ])) : d("", !0),
450
- e(Le) ? (a(), i("div", Fl, [
451
- l("label", Rl, [
452
- l("span", null, n(e(t)("event.selectProducts")), 1)
453
313
  ]),
454
- l("table", Nl, [
455
- l("thead", null, [
456
- l("tr", null, [
457
- l("th", null, [
458
- l("span", null, n(e(t)("booking.reservation.addons")), 1)
459
- ]),
460
- Sl,
461
- l("th", Ml, [
462
- l("span", null, n(e(t)("booking.availability.price")), 1)
463
- ])
464
- ])
465
- ]),
466
- l("tbody", null, [
467
- (a(!0), i(C, null, R(e(we).products, ({ productID: o, productName: h, price: O, description: b }) => (a(), i("tr", { key: o }, [
468
- l("td", null, [
469
- l("b", null, [
470
- l("span", null, n(h), 1)
471
- ]),
472
- ql,
473
- l("span", null, n(b), 1),
474
- zl,
475
- l("span", null, n(e(U)(O, e($))), 1)
476
- ]),
477
- l("td", Il, [
478
- r(x, {
479
- modelValue: e(N)[o],
480
- "onUpdate:modelValue": (f) => e(N)[o] = f,
481
- small: !0,
482
- "min-value": 0
483
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
484
- ]),
485
- l("td", Zl, [
486
- l("span", null, n(e(U)(e(oe)(o), e($))), 1)
487
- ])
488
- ]))), 128))
489
- ])
490
- ])
491
- ])) : d("", !0)
314
+ _: 2
315
+ }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : r("", !0)
492
316
  ]),
493
- resume: k(() => [
494
- l("li", null, [
495
- l("span", null, n(e(t)("event.numberOfGuests")), 1),
496
- l("b", null, n(e(s)), 1)
497
- ]),
498
- e(A) ? (a(), i("li", jl, [
499
- l("span", null, n(e(t)("event.numberOfRooms")), 1),
500
- l("b", null, n(e(S)), 1)
501
- ])) : d("", !0),
502
- e(A) ? (a(), i("li", Hl, [
503
- l("span", null, n(e(t)("event.numberOfDays")), 1),
504
- l("b", null, n(e(E)), 1)
505
- ])) : d("", !0),
506
- e(A) ? (a(), i("li", Ql, [
507
- l("span", null, n(e(t)("booking.reservation.arrival")), 1),
508
- l("b", null, n(e(pe)(e(ne))), 1)
509
- ])) : d("", !0),
510
- e(A) ? (a(), i("li", Wl, [
511
- l("span", null, n(e(t)("booking.reservation.departure")), 1),
512
- l("b", null, n(e(pe)(e(ne), e(E))), 1)
513
- ])) : d("", !0),
514
- !e(A) && e(p) ? (a(), i("li", Yl, [
515
- l("span", null, n(e(t)("event.startOfEvent")), 1),
516
- l("b", null, n(e(ee)(e(p))), 1)
517
- ])) : d("", !0),
518
- !e(A) && e(le) ? (a(), i("li", Gl, [
519
- l("span", null, n(e(t)("event.lengthOfEvent")), 1),
520
- l("b", null, n(e(ee)(e(le))), 1)
521
- ])) : d("", !0),
522
- !e(A) && e(ae) > 0 ? (a(), i("li", Jl, [
523
- l("span", null, n(e(t)("booking.availability.basePrice")), 1),
524
- l("b", null, n(e(U)(e(ae), e($))), 1)
525
- ])) : d("", !0)
317
+ payment: p(() => [
318
+ v(Ze)
526
319
  ]),
527
- expenses: k(() => [
528
- (a(!0), i(C, null, R(e(Z), ({ roomGroupID: o }, h) => (a(), i("li", { key: o }, [
529
- l("span", null, n(e(t)("booking.reservation.addons")) + " - " + n(e(t)("booking.reservation.room")) + " #" + n(h + 1), 1),
530
- l("b", null, n(e(U)(e(se)(o, h), e($))), 1)
531
- ]))), 128))
320
+ confirmation: p(() => [
321
+ v(ze, {
322
+ message: e(o)("event.confirmationMessage")
323
+ }, null, 8, ["message"])
532
324
  ]),
533
- _: 2
534
- }, 1032, ["remark", "is-filled", "is-loading", "base-price", "total-price", "weekend-fee", "room-upgrade", "onPrev", "onNext"])) : d("", !0)
535
- ]),
536
- payment: k(() => [
537
- r(pl)
538
- ]),
539
- confirmation: k(() => [
540
- r(ul, {
541
- message: e(t)("event.confirmationMessage")
542
- }, null, 8, ["message"])
325
+ _: 1
326
+ })
543
327
  ]),
544
328
  _: 1
545
- }, 8, ["slideshow", "title", "subtitle"])) : (a(), y(ue, { key: 1 }))
329
+ }, 8, ["access-token"])
330
+ ]),
331
+ fallback: p(() => [
332
+ Vt
546
333
  ]),
547
334
  _: 1
548
- }, 8, ["access-token", "styling"])
335
+ }))
549
336
  ]),
550
337
  _: 1
551
338
  }, 8, ["styling"]));
552
339
  }
553
- }), H = /* @__PURE__ */ ke(Kl, [["__scopeId", "data-v-c609785a"]]), Xl = nl();
554
- class xl extends HTMLElement {
340
+ }), $ = /* @__PURE__ */ Le(Et, [["__scopeId", "data-v-693ef234"]]), Tt = $e();
341
+ class Bt extends HTMLElement {
342
+ vueApp;
555
343
  constructor() {
556
344
  super();
557
345
  }
346
+ disconnectedCallback() {
347
+ this.vueApp.unmount();
348
+ }
558
349
  connectedCallback() {
559
- const t = typeof H == "function" ? H.options : H;
560
- let m = Array.isArray(t.props) ? t.props : Object.keys(t.props || {});
561
- const P = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (c, p) => (p ? "-" : "") + c.toLowerCase()), N = (u) => u.replace(/-./g, (c) => c[1].toUpperCase()), T = {};
562
- m = m.map(P);
563
- const _ = {};
564
- for (const u of this.attributes) {
565
- const c = u.name, p = c.split(".");
566
- console.log(c, p.length), p.length > 1 && (_[p[0]] || (_[p[0]] = {}), _[p[0]][N(p[1])] = u.value);
350
+ const o = typeof $ == "function" ? $.options : $;
351
+ let x = Array.isArray(o.props) ? o.props : Object.keys(o.props || {});
352
+ const E = (i) => i.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (d, c) => (c ? "-" : "") + d.toLowerCase()), O = (i) => i.replace(/-./g, (d) => d[1].toUpperCase()), T = {};
353
+ x = x.map(E);
354
+ const B = {};
355
+ for (const i of this.attributes) {
356
+ const c = i.name.split(".");
357
+ c.length > 1 && (B[c[0]] || (B[c[0]] = {}), B[c[0]][O(c[1])] = i.value);
567
358
  }
568
- console.log(_), console.log(m);
569
- for (const u of m) {
570
- let c = this.attributes.getNamedItem(u)?.value;
571
- _.hasOwnProperty(u) && (c = _[u]), console.log(c, u), T[u] = c;
359
+ for (const i of x) {
360
+ let d = this.attributes.getNamedItem(i)?.value;
361
+ B.hasOwnProperty(i) && (d = B[i]), T[i] = d;
572
362
  }
573
- const g = tl(H, T);
574
- g.use(al), g.use(Xl), g.use(dl), g.use(ol, { bootstrap: !0 });
575
- const D = document.createElement("div");
576
- g.mount(D), this.appendChild(D.children[0]);
363
+ this.vueApp = Ue($, T), this.vueApp.use(Re), this.vueApp.use(Tt), this.vueApp.use(je), this.vueApp.use(Se, { bootstrap: !0 });
364
+ const C = document.createElement("div");
365
+ this.vueApp.mount(C), this.appendChild(C.children[0]);
577
366
  }
578
367
  }
579
- window.customElements.define("konnectio-event", xl);
368
+ window.customElements.define("konnectio-event", Bt);
580
369
  export {
581
- xl as default
370
+ Bt as default
582
371
  };