@konnectio/core 4.0.10 → 4.0.12

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 (71) hide show
  1. package/dist/ActionField-23ce1b2a.cjs +1 -0
  2. package/dist/{ActionField-68f65af4.js → ActionField-311942d2.js} +21 -21
  3. package/dist/ActionField-311942d2.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-c48588e4.js → AvailabilitySkeleton-2dfbb28e.js} +80 -80
  5. package/dist/AvailabilitySkeleton-2dfbb28e.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-7d9e2680.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-b6694990.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-87ddfed8.js → DateField.vue_vue_type_style_index_0_lang-ec35955b.js} +1816 -1820
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-ec35955b.js.br +0 -0
  10. package/dist/{Field-d926807f.cjs → Field-dcffacf2.cjs} +1 -1
  11. package/dist/{Field-b76d82cb.js → Field-ff599d13.js} +2 -2
  12. package/dist/Field-ff599d13.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js → NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js} +28 -28
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-c973d794.js → SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js} +7754 -7718
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js.br +0 -0
  19. package/dist/TextField-6f7e37d9.cjs +54 -0
  20. package/dist/{TextField-8f6e5ef5.js → TextField-cd93b966.js} +3241 -3241
  21. package/dist/TextField-cd93b966.js.br +0 -0
  22. package/dist/{ThankYou-8ae535bf.cjs → ThankYou-3d74a6dc.cjs} +2 -2
  23. package/dist/{ThankYou-2f3c4efe.js → ThankYou-c1878478.js} +48 -47
  24. package/dist/ThankYou-c1878478.js.br +0 -0
  25. package/dist/{_-3cff5490.cjs → _-0895679a.cjs} +1 -1
  26. package/dist/{_-734c9d50.js → _-8772cf9a.js} +1 -1
  27. package/dist/_-8772cf9a.js.br +0 -0
  28. package/dist/availability.cjs +1 -1
  29. package/dist/availability.js +7 -7
  30. package/dist/availability.js.br +0 -0
  31. package/dist/{event-e08d0178.js → event-60e076f2.js} +36 -36
  32. package/dist/event-60e076f2.js.br +0 -0
  33. package/dist/event-8e90a6e3.cjs +1 -0
  34. package/dist/event.cjs +1 -1
  35. package/dist/event.js +98 -98
  36. package/dist/event.js.br +0 -0
  37. package/dist/gift-card-validation.cjs +1 -1
  38. package/dist/gift-card-validation.js +4 -4
  39. package/dist/gift-card-validation.js.br +0 -0
  40. package/dist/gift-card.cjs +1 -1
  41. package/dist/gift-card.js +192 -192
  42. package/dist/gift-card.js.br +0 -0
  43. package/dist/hotel.cjs +5 -5
  44. package/dist/hotel.js +1406 -1395
  45. package/dist/hotel.js.br +0 -0
  46. package/dist/index-345407fb.cjs +1 -0
  47. package/dist/{index-c28f52d1.js → index-b5d8f4fc.js} +83 -83
  48. package/dist/index-b5d8f4fc.js.br +0 -0
  49. package/dist/polyfill.cjs +4 -4
  50. package/dist/polyfill.js +3311 -3398
  51. package/dist/polyfill.js.br +0 -0
  52. package/dist/store/payment.d.ts +1 -1
  53. package/package.json +6 -6
  54. package/dist/ActionField-68f65af4.js.br +0 -0
  55. package/dist/ActionField-ab9c01ab.cjs +0 -1
  56. package/dist/AvailabilitySkeleton-c48588e4.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-ca6cf6b6.cjs +0 -1
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-87ddfed8.js.br +0 -0
  59. package/dist/Field-b76d82cb.js.br +0 -0
  60. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js.br +0 -0
  61. package/dist/NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs +0 -1
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs +0 -806
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-c973d794.js.br +0 -0
  64. package/dist/TextField-528ca68c.cjs +0 -54
  65. package/dist/TextField-8f6e5ef5.js.br +0 -0
  66. package/dist/ThankYou-2f3c4efe.js.br +0 -0
  67. package/dist/_-734c9d50.js.br +0 -0
  68. package/dist/event-4662e27c.cjs +0 -1
  69. package/dist/event-e08d0178.js.br +0 -0
  70. package/dist/index-a46a0876.cjs +0 -1
  71. package/dist/index-c28f52d1.js.br +0 -0
package/dist/event.js CHANGED
@@ -1,13 +1,13 @@
1
- import { h as ge, y as he, u as Ie, s as H, a as ke, r as We, c as Ye, k as t, l as b, U as He, w as g, x as l, m as r, B as h, z as n, n as e, V as Ke, W as ie, q as i, X as re, t as u, Y as Qe, D as $, Z as Xe, _ as fe, o as Ze, $ as je, A as D, a0 as V, a1 as w, a2 as ue, O as de, a3 as me, a4 as Je, a5 as x, F as ce, H as xe, K as Ge, L as el, N as ll, a6 as nl, M as tl, P as al } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
2
- import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-c28f52d1.js";
3
- import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-2f3c4efe.js";
4
- import { u as K } from "./event-e08d0178.js";
5
- import { A as vl } from "./ActionField-68f65af4.js";
6
- import { T as ve } from "./TextField-8f6e5ef5.js";
7
- import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-87ddfed8.js";
8
- import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js";
1
+ import { h as ge, y as he, u as Ie, s as H, a as ke, r as We, c as Ye, k as t, l as b, U as He, w as g, x as l, m as r, B as h, z as n, n as e, V as Ke, W as ie, q as i, X as re, t as u, Y as Qe, D as $, Z as Xe, _ as fe, o as Ze, $ as je, A as D, a0 as V, a1 as w, a2 as ue, O as de, a3 as me, a4 as Je, a5 as x, F as ce, H as xe, K as Ge, L as el, N as ll, a6 as nl, M as tl, P as al } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
+ import { P as ol, C as pe, a as sl, S as il, i as rl } from "./index-b5d8f4fc.js";
3
+ import { B as ul, M as dl, R as ml, T as cl, x as pl } from "./ThankYou-c1878478.js";
4
+ import { u as K } from "./event-60e076f2.js";
5
+ import { A as vl } from "./ActionField-311942d2.js";
6
+ import { T as ve } from "./TextField-cd93b966.js";
7
+ import { _ as bl } from "./DateField.vue_vue_type_style_index_0_lang-ec35955b.js";
8
+ import { _ as G } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
9
9
  import "./_commonjsHelpers-c5d32002.js";
10
- import "./_-734c9d50.js";
10
+ import "./_-8772cf9a.js";
11
11
  const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }, kl = { key: 1 }, fl = /* @__PURE__ */ ge({
12
12
  __name: "Event",
13
13
  props: {
@@ -31,7 +31,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
31
31
  callback: {}
32
32
  },
33
33
  setup(B) {
34
- const o = B, { t: m } = he(), { display: E } = Ie(), { currency: z } = H(ke()), {
34
+ const { t: a } = he(), v = B, { display: E } = Ie(), { currency: z } = H(ke()), {
35
35
  maxNumberOfPeople: C,
36
36
  numberOfPeople: Q,
37
37
  eventId: U,
@@ -40,15 +40,15 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
40
40
  getTemplateAvailability: N,
41
41
  getEventAvailability: S,
42
42
  isEventListingLoading: O
43
- } = K(), P = We(0), I = Ye(() => O(o.listingId)), X = () => {
44
- P.value > 0 ? (U.value = o.listingId, Q.value = P.value, N(o.callback)) : E({
43
+ } = K(), P = We(0), I = Ye(() => O(v.listingId)), X = () => {
44
+ P.value > 0 ? (U.value = v.listingId, Q.value = P.value, N(v.callback)) : E({
45
45
  type: "error",
46
- message: m("alert.error.selectPeople")
46
+ message: a("alert.error.selectPeople")
47
47
  });
48
48
  }, k = () => {
49
- P.value > 0 ? (U.value = o.listingId, R.value = o.tableGroupId, Q.value = P.value, S(o.callback)) : E({
49
+ P.value > 0 ? (U.value = v.listingId, R.value = v.tableGroupId, Q.value = P.value, S(v.callback)) : E({
50
50
  type: "error",
51
- message: m("alert.error.selectPeople")
51
+ message: a("alert.error.selectPeople")
52
52
  });
53
53
  };
54
54
  return (s, f) => (t(), b(ul, {
@@ -63,8 +63,8 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
63
63
  modelValue: P.value,
64
64
  "onUpdate:modelValue": f[0] || (f[0] = (F) => P.value = F),
65
65
  type: "number",
66
- label: e(m)("event.numberOfGuests"),
67
- buttonLabel: s.soldOut ? e(m)("event.soldOut") : e(m)("event.bookNowButton"),
66
+ label: e(a)("event.numberOfGuests"),
67
+ buttonLabel: s.soldOut ? e(a)("event.soldOut") : e(a)("event.bookNowButton"),
68
68
  buttonDisabled: s.soldOut,
69
69
  "min-value": s.type === "event" ? 1 : s.minimumPersonCount,
70
70
  "max-value": s.type === "event" ? s.maxOnlineReservationLimit || 1 / 0 : e(C),
@@ -105,7 +105,7 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
105
105
  icon: "user-alt",
106
106
  color: "header"
107
107
  }),
108
- l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(m)("general.people")}`), 1)
108
+ l("span", null, n(`1 - ${s.maxOnlineReservationLimit} ${e(a)("general.people")}`), 1)
109
109
  ])) : u("", !0)
110
110
  ])
111
111
  ]),
@@ -126,14 +126,14 @@ const gl = { class: "fresh-booking-event-listing-information" }, hl = { key: 0 }
126
126
  icon: "user-alt",
127
127
  color: "header"
128
128
  }),
129
- l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(m)("general.people")}`), 1)
129
+ l("span", null, n(`${s.minimumPersonCount} - ${e(C)} ${e(a)("general.people")}`), 1)
130
130
  ]),
131
131
  l("li", null, [
132
132
  r(h, {
133
133
  icon: "money-bill",
134
134
  color: "header"
135
135
  }),
136
- l("span", null, n(`${e(m)("general.pricesFrom")} ${e($)(s.fromPrice, e(z))}`), 1)
136
+ l("span", null, n(`${e(a)("general.pricesFrom")} ${e($)(s.fromPrice, e(z))}`), 1)
137
137
  ])
138
138
  ])
139
139
  ]),
@@ -156,8 +156,8 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
156
156
  styling: {}
157
157
  },
158
158
  setup(B) {
159
- const { t: o } = he(), {
160
- searchDate: m,
159
+ const { t: a } = he(), {
160
+ searchDate: v,
161
161
  addons: E,
162
162
  products: z,
163
163
  numberOfDays: C,
@@ -209,7 +209,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
209
209
  hideEvents: Me,
210
210
  hideEventTemplates: ze
211
211
  } = H(ke());
212
- return Ze(() => Re()), je(m, () => Ne()), (se, d) => (t(), b(xe, {
212
+ return Ze(() => Re()), je(v, () => Ne()), (se, d) => (t(), b(xe, {
213
213
  id: "fresh-booking-event-module",
214
214
  class: "fresh-booking-app",
215
215
  type: "event",
@@ -226,9 +226,9 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
226
226
  availability: g(({ next: Y }) => [
227
227
  l("div", yl, [
228
228
  r(bl, {
229
- modelValue: e(m),
230
- "onUpdate:modelValue": d[0] || (d[0] = (y) => D(m) ? m.value = y : null),
231
- label: e(o)("event.selectDate"),
229
+ modelValue: e(v),
230
+ "onUpdate:modelValue": d[0] || (d[0] = (y) => D(v) ? v.value = y : null),
231
+ label: e(a)("event.selectDate"),
232
232
  "min-date": /* @__PURE__ */ new Date()
233
233
  }, null, 8, ["modelValue", "label", "min-date"])
234
234
  ]),
@@ -240,16 +240,16 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
240
240
  type: "fal",
241
241
  color: "header"
242
242
  }),
243
- l("span", null, n(e(o)("event.eventsTitle")), 1)
243
+ l("span", null, n(e(a)("event.eventsTitle")), 1)
244
244
  ]),
245
245
  l("ul", Vl, [
246
246
  (t(!0), i(V, null, w(e($e), ({
247
247
  id: y,
248
- days: a,
249
- name: p,
248
+ days: o,
249
+ name: c,
250
250
  timeFrom: _,
251
- timeTo: c,
252
- fromDate: v,
251
+ timeTo: m,
252
+ fromDate: p,
253
253
  toDate: q,
254
254
  tableGroupID: Z,
255
255
  description: j,
@@ -261,13 +261,13 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
261
261
  "listing-id": y,
262
262
  "table-group-id": Z,
263
263
  description: j,
264
- name: p,
265
- days: a,
266
- "from-date": v,
264
+ name: c,
265
+ days: o,
266
+ "from-date": p,
267
267
  "to-date": q,
268
268
  "max-online-reservation-limit": M,
269
269
  "time-from": _,
270
- "time-to": c,
270
+ "time-to": m,
271
271
  "sold-out": J,
272
272
  callback: Y
273
273
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "callback"]))), 128))
@@ -280,27 +280,27 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
280
280
  type: "fal",
281
281
  color: "header"
282
282
  }),
283
- l("span", null, n(e(o)("event.stayTitle")), 1)
283
+ l("span", null, n(e(a)("event.stayTitle")), 1)
284
284
  ]),
285
285
  l("ul", Pl, [
286
286
  (t(!0), i(V, null, w(e(Ee), ({
287
287
  id: y,
288
- name: a,
289
- fromDate: p,
288
+ name: o,
289
+ fromDate: c,
290
290
  toDate: _,
291
- minimumPersonCount: c,
292
- fromPrice: v,
291
+ minimumPersonCount: m,
292
+ fromPrice: p,
293
293
  description: q
294
294
  }) => (t(), b(be, {
295
295
  key: y,
296
296
  type: "template",
297
297
  "listing-id": y,
298
- name: a,
298
+ name: o,
299
299
  description: q,
300
- "from-date": p,
300
+ "from-date": c,
301
301
  "to-date": _,
302
- "minimum-person-count": c,
303
- fromPrice: v,
302
+ "minimum-person-count": m,
303
+ fromPrice: p,
304
304
  callback: Y
305
305
  }, null, 8, ["listing-id", "name", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128))
306
306
  ])
@@ -311,62 +311,62 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
311
311
  e(Ae) ? (t(), b(ml, {
312
312
  key: 0,
313
313
  remark: e(S),
314
- "onUpdate:remark": d[8] || (d[8] = (a) => D(S) ? S.value = a : null),
314
+ "onUpdate:remark": d[8] || (d[8] = (o) => D(S) ? S.value = o : null),
315
315
  "is-filled": e(Fe),
316
316
  "is-loading": e(Ve),
317
317
  "base-price": e(ye),
318
318
  "total-price": e(_e),
319
319
  "weekend-fee": e(Le),
320
320
  "room-upgrade": e(we),
321
- onPrev: (a) => e(qe)(y),
322
- onNext: (a) => e(Se)(Y)
321
+ onPrev: (o) => e(qe)(y),
322
+ onNext: (o) => e(Se)(Y)
323
323
  }, {
324
324
  form: g(() => [
325
325
  e(ne) === e(de).FullDayEvent ? (t(), b(G, {
326
326
  key: 0,
327
327
  modelValue: e(C),
328
- "onUpdate:modelValue": d[1] || (d[1] = (a) => D(C) ? C.value = a : null),
329
- label: e(o)("event.numberOfDays"),
328
+ "onUpdate:modelValue": d[1] || (d[1] = (o) => D(C) ? C.value = o : null),
329
+ label: e(a)("event.numberOfDays"),
330
330
  "min-value": 1,
331
331
  required: ""
332
332
  }, null, 8, ["modelValue", "label"])) : u("", !0),
333
333
  r(ve, {
334
334
  modelValue: e(U),
335
- "onUpdate:modelValue": d[2] || (d[2] = (a) => D(U) ? U.value = a : null),
335
+ "onUpdate:modelValue": d[2] || (d[2] = (o) => D(U) ? U.value = o : null),
336
336
  type: "text",
337
- label: e(o)("booking.reservation.name"),
337
+ label: e(a)("booking.reservation.name"),
338
338
  icon: "user-alt",
339
- placeholder: e(o)("booking.reservation.namePlaceholder"),
339
+ placeholder: e(a)("booking.reservation.namePlaceholder"),
340
340
  required: ""
341
341
  }, null, 8, ["modelValue", "label", "placeholder"]),
342
342
  r(ve, {
343
343
  modelValue: e(N),
344
- "onUpdate:modelValue": d[3] || (d[3] = (a) => D(N) ? N.value = a : null),
345
- label: e(o)("booking.reservation.email"),
344
+ "onUpdate:modelValue": d[3] || (d[3] = (o) => D(N) ? N.value = o : null),
345
+ label: e(a)("booking.reservation.email"),
346
346
  type: "email",
347
347
  name: "email",
348
348
  autocomplete: "email",
349
349
  icon: "at",
350
- placeholder: e(o)("booking.reservation.emailPlaceholder"),
350
+ placeholder: e(a)("booking.reservation.emailPlaceholder"),
351
351
  required: ""
352
352
  }, null, 8, ["modelValue", "label", "placeholder"]),
353
353
  r(ol, {
354
354
  modelValue: e(R),
355
- "onUpdate:modelValue": d[4] || (d[4] = (a) => D(R) ? R.value = a : null),
356
- label: e(o)("booking.reservation.phone"),
355
+ "onUpdate:modelValue": d[4] || (d[4] = (o) => D(R) ? R.value = o : null),
356
+ label: e(a)("booking.reservation.phone"),
357
357
  icon: "phone-office",
358
- placeholder: e(o)("booking.reservation.phonePlaceholder"),
358
+ placeholder: e(a)("booking.reservation.phonePlaceholder"),
359
359
  required: ""
360
360
  }, null, 8, ["modelValue", "label", "placeholder"]),
361
361
  u("", !0),
362
362
  e(W) && e(W).length > 0 ? (t(), i("ul", Tl, [
363
363
  (t(!0), i(V, null, w(e(W), ({
364
- roomGroupID: a,
365
- addons: p,
364
+ roomGroupID: o,
365
+ addons: c,
366
366
  adultPerRoom: _
367
- }, c) => (t(), i("li", { key: a }, [
367
+ }, m) => (t(), i("li", { key: o }, [
368
368
  l("h5", null, [
369
- l("span", null, n(e(o)("booking.reservation.room")) + " #" + n(c + 1), 1),
369
+ l("span", null, n(e(a)("booking.reservation.room")) + " #" + n(m + 1), 1),
370
370
  me(" ("),
371
371
  r(h, {
372
372
  icon: "male",
@@ -379,22 +379,22 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
379
379
  l("thead", null, [
380
380
  l("tr", null, [
381
381
  l("th", null, [
382
- l("span", null, n(e(o)("booking.reservation.addons")), 1)
382
+ l("span", null, n(e(a)("booking.reservation.addons")), 1)
383
383
  ]),
384
384
  El,
385
385
  l("th", Ol, [
386
- l("span", null, n(e(o)("booking.availability.price")), 1)
386
+ l("span", null, n(e(a)("booking.availability.price")), 1)
387
387
  ])
388
388
  ])
389
389
  ]),
390
390
  l("tbody", null, [
391
- (t(!0), i(V, null, w(p, ({
392
- addonID: v,
391
+ (t(!0), i(V, null, w(c, ({
392
+ addonID: p,
393
393
  cardinality: q,
394
394
  name: Z,
395
395
  price: j,
396
396
  quantityStrategy: J
397
- }) => (t(), i("tr", { key: v }, [
397
+ }) => (t(), i("tr", { key: p }, [
398
398
  l("td", null, [
399
399
  l("b", null, n(Z), 1),
400
400
  Dl,
@@ -403,19 +403,19 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
403
403
  l("td", wl, [
404
404
  q === 3 ? (t(), b(G, {
405
405
  key: 0,
406
- modelValue: e(E)[`${a}.${v}.${c}`],
407
- "onUpdate:modelValue": (M) => e(E)[`${a}.${v}.${c}`] = M,
406
+ modelValue: e(E)[`${o}.${p}.${m}`],
407
+ "onUpdate:modelValue": (M) => e(E)[`${o}.${p}.${m}`] = M,
408
408
  small: !0,
409
409
  "min-value": 0
410
410
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (t(), b(pe, {
411
411
  key: 1,
412
- modelValue: e(E)[`${a}.${v}.${c}`],
413
- "onUpdate:modelValue": (M) => e(E)[`${a}.${v}.${c}`] = M,
412
+ modelValue: e(E)[`${o}.${p}.${m}`],
413
+ "onUpdate:modelValue": (M) => e(E)[`${o}.${p}.${m}`] = M,
414
414
  numeric: !0
415
415
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
416
416
  ]),
417
417
  l("td", Ll, [
418
- l("span", null, n(e($)(e(ae)(v, a, c), e(k))), 1)
418
+ l("span", null, n(e($)(e(ae)(p, o, m), e(k))), 1)
419
419
  ])
420
420
  ]))), 128))
421
421
  ]),
@@ -424,7 +424,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
424
424
  Bl,
425
425
  l("td", Cl, [
426
426
  l("u", null, [
427
- l("span", null, n(e($)(e(oe)(a, c), e(k))), 1)
427
+ l("span", null, n(e($)(e(oe)(o, m), e(k))), 1)
428
428
  ])
429
429
  ])
430
430
  ])
@@ -434,58 +434,58 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
434
434
  ])) : u("", !0),
435
435
  e(ne) !== e(de).FullDayEvent && !e(T) ? (t(), i("div", Ul, [
436
436
  l("label", Fl, [
437
- l("span", null, n(e(o)("event.selectArrivalTime")), 1)
437
+ l("span", null, n(e(a)("event.selectArrivalTime")), 1)
438
438
  ]),
439
439
  l("ul", Al, [
440
- (t(!0), i(V, null, w(e(De), (a, p) => (t(), i("li", { key: p }, [
440
+ (t(!0), i(V, null, w(e(De), (o, c) => (t(), i("li", { key: c }, [
441
441
  r(pe, {
442
442
  modelValue: e(O),
443
443
  "onUpdate:modelValue": d[7] || (d[7] = (_) => D(O) ? O.value = _ : null),
444
444
  type: "radio",
445
445
  name: "eventTimeTable",
446
- val: a.time,
447
- label: e(x)(a.time)
446
+ val: o.time,
447
+ label: e(x)(o.time)
448
448
  }, null, 8, ["modelValue", "val", "label"])
449
449
  ]))), 128))
450
450
  ])
451
451
  ])) : u("", !0),
452
452
  e(Be) ? (t(), i("div", Rl, [
453
453
  l("label", Nl, [
454
- l("span", null, n(e(o)("event.selectProducts")), 1)
454
+ l("span", null, n(e(a)("event.selectProducts")), 1)
455
455
  ]),
456
456
  l("table", Sl, [
457
457
  l("thead", null, [
458
458
  l("tr", null, [
459
459
  l("th", null, [
460
- l("span", null, n(e(o)("booking.reservation.addons")), 1)
460
+ l("span", null, n(e(a)("booking.reservation.addons")), 1)
461
461
  ]),
462
462
  ql,
463
463
  l("th", Ml, [
464
- l("span", null, n(e(o)("booking.availability.price")), 1)
464
+ l("span", null, n(e(a)("booking.availability.price")), 1)
465
465
  ])
466
466
  ])
467
467
  ]),
468
468
  l("tbody", null, [
469
- (t(!0), i(V, null, w(e(Oe).products, ({ productID: a, productName: p, price: _, description: c }) => (t(), i("tr", { key: a }, [
469
+ (t(!0), i(V, null, w(e(Oe).products, ({ productID: o, productName: c, price: _, description: m }) => (t(), i("tr", { key: o }, [
470
470
  l("td", null, [
471
471
  l("b", null, [
472
- l("span", null, n(p), 1)
472
+ l("span", null, n(c), 1)
473
473
  ]),
474
474
  zl,
475
- l("span", null, n(c), 1),
475
+ l("span", null, n(m), 1),
476
476
  Il,
477
477
  l("span", null, n(e($)(_, e(k))), 1)
478
478
  ]),
479
479
  l("td", Wl, [
480
480
  r(G, {
481
- modelValue: e(z)[a],
482
- "onUpdate:modelValue": (v) => e(z)[a] = v,
481
+ modelValue: e(z)[o],
482
+ "onUpdate:modelValue": (p) => e(z)[o] = p,
483
483
  small: !0,
484
484
  "min-value": 0
485
485
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
486
486
  ]),
487
487
  l("td", Yl, [
488
- l("span", null, n(e($)(e(ae)(a), e(k))), 1)
488
+ l("span", null, n(e($)(e(ae)(o), e(k))), 1)
489
489
  ])
490
490
  ]))), 128))
491
491
  ])
@@ -494,42 +494,42 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
494
494
  ]),
495
495
  resume: g(() => [
496
496
  l("li", null, [
497
- l("span", null, n(e(o)("event.numberOfGuests")), 1),
497
+ l("span", null, n(e(a)("event.numberOfGuests")), 1),
498
498
  l("b", null, n(e(s)), 1)
499
499
  ]),
500
500
  e(T) ? (t(), i("li", Hl, [
501
- l("span", null, n(e(o)("event.numberOfRooms")), 1),
501
+ l("span", null, n(e(a)("event.numberOfRooms")), 1),
502
502
  l("b", null, n(e(F)), 1)
503
503
  ])) : u("", !0),
504
504
  e(T) ? (t(), i("li", Kl, [
505
- l("span", null, n(e(o)("event.numberOfDays")), 1),
505
+ l("span", null, n(e(a)("event.numberOfDays")), 1),
506
506
  l("b", null, n(e(f)), 1)
507
507
  ])) : u("", !0),
508
508
  e(T) ? (t(), i("li", Ql, [
509
- l("span", null, n(e(o)("booking.reservation.arrival")), 1),
509
+ l("span", null, n(e(a)("booking.reservation.arrival")), 1),
510
510
  l("b", null, n(e(ce)(e(le))), 1)
511
511
  ])) : u("", !0),
512
512
  e(T) ? (t(), i("li", Xl, [
513
- l("span", null, n(e(o)("booking.reservation.departure")), 1),
513
+ l("span", null, n(e(a)("booking.reservation.departure")), 1),
514
514
  l("b", null, n(e(ce)(e(le), e(f))), 1)
515
515
  ])) : u("", !0),
516
516
  !e(T) && e(O) ? (t(), i("li", Zl, [
517
- l("span", null, n(e(o)("event.startOfEvent")), 1),
517
+ l("span", null, n(e(a)("event.startOfEvent")), 1),
518
518
  l("b", null, n(e(x)(e(O))), 1)
519
519
  ])) : u("", !0),
520
520
  !e(T) && e(ee) ? (t(), i("li", jl, [
521
- l("span", null, n(e(o)("event.lengthOfEvent")), 1),
521
+ l("span", null, n(e(a)("event.lengthOfEvent")), 1),
522
522
  l("b", null, n(e(x)(e(ee))), 1)
523
523
  ])) : u("", !0),
524
524
  !e(T) && e(te) > 0 ? (t(), i("li", Jl, [
525
- l("span", null, n(e(o)("booking.availability.basePrice")), 1),
525
+ l("span", null, n(e(a)("booking.availability.basePrice")), 1),
526
526
  l("b", null, n(e($)(e(te), e(k))), 1)
527
527
  ])) : u("", !0)
528
528
  ]),
529
529
  expenses: g(() => [
530
- (t(!0), i(V, null, w(e(W), ({ roomGroupID: a }, p) => (t(), i("li", { key: a }, [
531
- l("span", null, n(e(o)("booking.reservation.addons")) + " - " + n(e(o)("booking.reservation.room")) + " #" + n(p + 1), 1),
532
- l("b", null, n(e($)(e(oe)(a, p), e(k))), 1)
530
+ (t(!0), i(V, null, w(e(W), ({ roomGroupID: o }, c) => (t(), i("li", { key: o }, [
531
+ l("span", null, n(e(a)("booking.reservation.addons")) + " - " + n(e(a)("booking.reservation.room")) + " #" + n(c + 1), 1),
532
+ l("b", null, n(e($)(e(oe)(o, c), e(k))), 1)
533
533
  ]))), 128))
534
534
  ]),
535
535
  _: 2
@@ -540,7 +540,7 @@ const be = /* @__PURE__ */ fe(fl, [["__scopeId", "data-v-4a459a74"]]), A = (B) =
540
540
  ]),
541
541
  confirmation: g(() => [
542
542
  r(cl, {
543
- message: e(o)("event.confirmationMessage")
543
+ message: e(a)("event.confirmationMessage")
544
544
  }, null, 8, ["message"])
545
545
  ]),
546
546
  _: 1
package/dist/event.js.br CHANGED
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-a549c70e.cjs"),_=require("./ActionField-ab9c01ab.cjs");require("./TextField-528ca68c.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["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,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[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",color:"header"})]),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",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),c=require("./NumberField.vue_vue_type_script_setup_true_lang-50fc08f1.cjs"),_=require("./ActionField-23ce1b2a.cjs");require("./TextField-6f7e37d9.cjs");require("./_commonjsHelpers-6763f629.cjs");const y=o=>(e.pushScopeId("data-v-5d5827dc"),o=o(),e.popScopeId(),o),N=["innerHTML"],B={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},m=y(()=>e.createBaseVNode("span",null,"Loading...",-1)),C=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(o){const{t:a}=e.useI18n(),{voucher:l,isValid:u,amount:p,expirationDate:f,productName:V,isLoading:i}=e.storeToRefs(c.useApplyGiftCardStore()),{currency:g}=e.storeToRefs(e.useUtilityStore()),{apply:s}=c.useApplyGiftCardStore();return(d,t)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-validation-module","access-token":d.accessToken,type:"gift-card",styling:d.styling},{default:e.withCtx(()=>[e.createBaseVNode("form",{onSubmit:t[3]||(t[3]=e.withModifiers(n=>e.unref(s)(),["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,N),e.createVNode(_.ActionField,{modelValue:e.unref(l),"onUpdate:modelValue":t[0]||(t[0]=n=>e.isRef(l)?l.value=n:null),icon:"gift-card",label:e.unref(a)("booking.reservation.giftCardCode"),buttonLabel:e.unref(a)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":t[1]||(t[1]=n=>e.isRef(i)?i.value=n:null),onAction:t[2]||(t[2]=n=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(u)?(e.openBlock(),e.createElementBlock("table",B,[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",color:"header"})]),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",color:"header"})]),e.createBaseVNode("th",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(a)("giftCardValidation.expirationDate")),1),e.createVNode(e.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createBaseVNode("tbody",null,[e.createBaseVNode("tr",null,[e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showPrice)(e.unref(p),e.unref(g))),1)]),e.createBaseVNode("td",null,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(e.showDate)(e.unref(f))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token","styling"])]),fallback:e.withCtx(()=>[m]),_:1}))}});const b=e._export_sfc(C,[["__scopeId","data-v-5d5827dc"]]),r=e.createApp({components:{GiftCardValidation:b}}),v=e.createPinia();r.use(v);r.use(e.instance);r.mount("#konnectio-gift-card-validation-app");module.exports=r;
@@ -1,7 +1,7 @@
1
- import { h as L, y as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, z as o, n as t, A as y, q as x, B as p, D as A, F as B, t as G, G as I, H as D, J as N, K as T, L as M, _ as H, M as P, N as U, P as $ } from "./SelectField.vue_vue_type_style_index_0_lang-c973d794.js";
2
- import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-a32b2a11.js";
3
- import { A as F } from "./ActionField-68f65af4.js";
4
- import "./TextField-8f6e5ef5.js";
1
+ import { h as L, y as S, s as g, a as X, k as _, l as w, w as u, m as l, x as a, z as o, n as t, A as y, q as x, B as p, D as A, F as B, t as G, G as I, H as D, J as N, K as T, L as M, _ as H, M as P, N as U, P as $ } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
+ import { u as b } from "./NumberField.vue_vue_type_script_setup_true_lang-2eb1b46f.js";
3
+ import { A as F } from "./ActionField-311942d2.js";
4
+ import "./TextField-cd93b966.js";
5
5
  import "./_commonjsHelpers-c5d32002.js";
6
6
  const R = (s) => (T("data-v-5d5827dc"), s = s(), M(), s), q = ["innerHTML"], z = {
7
7
  key: 0,
Binary file
@@ -1 +1 @@
1
- "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-2bf82818.cjs"),V=require("./index-a46a0876.cjs"),M=require("./_-3cff5490.cjs"),x=require("./TextField-528ca68c.cjs"),R=require("./Field-d926807f.cjs");require("./_commonjsHelpers-6763f629.cjs");const U=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=M.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),g=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),d=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),c=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),p=e.ref(""),F=e.ref(1),C=e.ref(!0),k=e.ref(""),s=e.ref({base64:"",type:"",name:""}),n=e.ref(void 0),i=e.ref(0),f=e.ref(!1),m=e.ref(0),h=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),B=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),v=e.computed(()=>t.value===e.GiftCardModuleState.PaymentSuccess),w=e.computed(()=>{const u={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},a=o.value.places;return a&&a.forEach(_=>{u[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(u).filter(([,_])=>_.data.length>0))}),T=e.computed(()=>m.value!==0),b=e.computed(()=>{let u;if(T.value)u=w.value[m.value].data[0];else if(i.value!==0){const a=n.value,_=w.value[i.value].data;_.length===1?u=_[0]:a!==void 0&&_.forEach(z=>{String(z.id)===String(a)&&(u=z)})}return u}),E=e.computed(()=>!(!g.value||!d.value||!(c.value.length>=5)||!p.value||b.value===void 0)),q=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&f.value)),P=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&f.value));async function N(){t.value=e.GiftCardModuleState.WaitingForResponse,f.value=!0,await e.axios.post("http://stage.hotel_service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:p.value,quantity:F.value,freeText:k.value,showPrice:C.value,contactName:g.value,contactEmail:d.value,contactPhone:c.value,imageBase64:e.b2a(s.value.base64),imageName:s.value.name,imageFormat:s.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.9"}}).then(u=>{t.value=e.GiftCardModuleState.ReadyToPay,f.value=!1,y({callback:()=>console.log("Callback!"),response:u.data})})}function r(u){u&&(m.value=u)}return{moduleState:t,name:g,email:d,phone:c,value:p,remark:k,showValue:C,quantity:F,media:s,placeId:n,placeType:i,showFormPage:h,showPaymentPage:B,showConfirmationPage:v,places:w,hasFilledForm:E,hasForcedPlaceType:T,isWaitingForResponse:P,isMetaDataAvailable:q,orderGiftCard:N,initialize:r}}),$={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},A={key:0},W={key:1},j={key:2},H=["src"],O=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=y,{t}=e.useI18n(),{display:g}=e.useAlertStore(),d=e.ref(),c=e.computed(()=>o.modelValue.base64!=="");function p(n){l("update:modelValue",n)}function F(){p({base64:"",name:"",type:""}),d.value&&(d.value.value="")}function C(){d.value&&d.value.click()}function k(n,i){const[f,m]=[n.name,n.type],h=new FileReader;h.onload=function(B){if(B.target){const v=B.target.result;i({base64:v,name:f,type:m})}else g({message:t("imageUploadError"),type:"error"})},h.readAsDataURL(n)}async function s(){let n;(n=d.value.files)instanceof FileList&&k(n[0],p)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",$,[e.createBaseVNode("input",{ref_key:"fileInput",ref:d,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=f=>s())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(t)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=f=>C())},null,8,["label","icon-color"])])),c.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(t)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=f=>C())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(t)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=f=>F())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:c.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,H)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(O);const K={class:"gift-card-skeleton"},Y={class:"gift-card-skeleton-form"},J=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",K,[e.createBaseVNode("div",Y,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(M.Element,{height:"44px"})])]))}});const Q=e._export_sfc(J,[["__scopeId","data-v-2600a731"]]),X={key:0,id:"fresh-booking-gift-card-wrapper"},Z={id:"fresh-booking-gift-card-title"},ee={id:"fresh-booking-gift-card-content"},te={id:"fresh-booking-gift-card-payment"},ae=["innerHTML"],le={key:0},oe={key:0,id:"fresh-booking-select-place-type"},ne={class:e.normalizeClass(["fresh-booking-label","required"])},re={id:"fresh-booking-select-place-type-input"},ie=["innerHTML"],de={key:0,id:"fresh-booking-gift-card-order"},se={class:"fresh-booking-panel"},ue={key:1,id:"fresh-booking-gift-card-remarks"},ce={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},fe={id:"fresh-booking-gift-card-recaptcha"},pe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:g,value:d,remark:c,showValue:p,quantity:F,media:C,placeId:k,placeType:s,showFormPage:n,showPaymentPage:i,showConfirmationPage:f,places:m,hasFilledForm:h,hasForcedPlaceType:B,isWaitingForResponse:v,isMetaDataAvailable:w}=e.storeToRefs(U()),{initialize:T,orderGiftCard:b}=U(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function P(){await b()}return e.watch(s,()=>{k.value=void 0}),e.onMounted(()=>{T()}),(N,r)=>{const u=e.resolveDirective("sticky");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-module",type:"gift-card","access-token":N.accessToken,"data-layout":N.layout,styling:N.styling,"sticky-container":""},{default:e.withCtx(()=>[e.unref(w)?(e.openBlock(),e.createElementBlock("div",X,[e.createBaseVNode("h4",Z,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ee,[e.withDirectives(e.createBaseVNode("div",te,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(i)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,ae),e.createBaseVNode("form",null,[e.createVNode(x.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(x.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(g),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(g)?g.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(B)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",le,[e.unref(m)?(e.openBlock(),e.createElementBlock("div",oe,[e.createBaseVNode("label",ne,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",re,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(s),"onUpdate:modelValue":r[3]||(r[3]=z=>e.isRef(s)?s.value=z:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(m)[e.unref(s)]&&e.unref(m)[e.unref(s)].data.length>1?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,modelValue:e.unref(k),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(k)?k.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(m)[e.unref(s)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(x.TextField,{modelValue:e.unref(d),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(d)?d.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(p),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(p)?p.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(p)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(f)]])]),N.layout!=="minimal"&&e.unref(n)?(e.openBlock(),e.createElementBlock("div",de,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(h),"is-loading":e.unref(v),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(v)?v.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(x.TextField,{modelValue:e.unref(c),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(c)?c.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(n)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(h),"data-test":"orderGiftCard","is-loading":e.unref(v),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(v)?v.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",fe,[e.createVNode(V._sfc_main)],512),[[e.vShow,e.unref(E)]])])),[[u]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout","styling"])]),fallback:e.withCtx(()=>[e.createVNode(Q)]),_:1})}}});const me=e._export_sfc(pe,[["__scopeId","data-v-e4aa1e4c"]]),_e=e.createPinia(),ve=e.zo(),S=e.createApp({components:{GiftCard:me}});S.use(_e);S.use(e.instance);S.use(ve);S.use(V.StickyPlugin);S.use(V.install,{bootstrap:!1});S.mount("#konnectio-gift-card-app");
1
+ "use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-4755fb8a.cjs"),V=require("./index-345407fb.cjs"),M=require("./_-0895679a.cjs"),x=require("./TextField-6f7e37d9.cjs"),R=require("./Field-dcffacf2.cjs");require("./_commonjsHelpers-6763f629.cjs");const U=e.defineStore("giftCard",()=>{e.useAlertStore();const{pay:y}=M.usePaymentStore(),{bearerToken:l,metaData:o}=e.storeToRefs(e.useUtilityStore()),t=e.ref(e.GiftCardModuleState.InitialState),p=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),g=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),s=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),f=e.ref(""),C=e.ref(1),w=e.ref(!0),v=e.ref(""),u=e.ref({base64:"",type:"",name:""}),k=e.ref(void 0),n=e.ref(0),i=e.ref(!1),d=e.ref(0),B=e.computed(()=>t.value===e.GiftCardModuleState.InitialState||t.value===e.GiftCardModuleState.WaitingForResponse),N=e.computed(()=>t.value===e.GiftCardModuleState.ReadyToPay),m=e.computed(()=>t.value===e.GiftCardModuleState.PaymentSuccess),h=e.computed(()=>{const c={1:{label:e.i18n.t("giftCard.hotelType"),data:[]},2:{label:e.i18n.t("giftCard.restaurantType"),data:[]}},a=o.value.places;return a&&a.forEach(_=>{c[_.placeType].data.push(_)}),Object.fromEntries(Object.entries(c).filter(([,_])=>_.data.length>0))}),T=e.computed(()=>d.value!==0),b=e.computed(()=>{let c;if(T.value)c=h.value[d.value].data[0];else if(n.value!==0){const a=k.value,_=h.value[n.value].data;_.length===1?c=_[0]:a!==void 0&&_.forEach(z=>{String(z.id)===String(a)&&(c=z)})}return c}),E=e.computed(()=>!(!p.value||!g.value||!(s.value.length>=5)||!f.value||b.value===void 0)),q=e.computed(()=>!(t.value===e.GiftCardModuleState.InitialState&&i.value)),P=e.computed(()=>!!(t.value===e.GiftCardModuleState.WaitingForResponse&&i.value));async function S(){t.value=e.GiftCardModuleState.WaitingForResponse,i.value=!0,await e.axios.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create",{termsOfserviceURL:"https://freshbooking.dk",checkoutUrl:"https://freshbooking.dk",currencyID:o.value.currency.id,language:e.getUserLanguage(),amount:f.value,quantity:C.value,freeText:v.value,showPrice:w.value,contactName:p.value,contactEmail:g.value,contactPhone:s.value,imageBase64:e.b2a(u.value.base64),imageName:u.value.name,imageFormat:u.value.type,placeType:b.value?b.value.placeType:void 0,placeID:b.value?b.value.id:void 0},{headers:{Authorization:l.value,Accept:"application/json","Fresh-Booking-Ver":"4.0.12"}}).then(c=>{t.value=e.GiftCardModuleState.ReadyToPay,i.value=!1,y({callback:()=>console.log("Callback!"),response:c.data})})}function r(c){c&&(d.value=c)}return{moduleState:t,name:p,email:g,phone:s,value:f,remark:v,showValue:w,quantity:C,media:u,placeId:k,placeType:n,showFormPage:B,showPaymentPage:N,showConfirmationPage:m,places:h,hasFilledForm:E,hasForcedPlaceType:T,isWaitingForResponse:P,isMetaDataAvailable:q,orderGiftCard:S,initialize:r}}),$={class:"media-selector"},D=["accept"],I={class:"media-selector-wrapper"},L={class:"media-selector-tools"},A={key:0},W={key:1},j={key:2},H=["src"],O=e.defineComponent({__name:"MediaSelector",props:{modelValue:{},validation:{default:"image/*"},iconColor:{default:"#000"},label:{},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(y,{emit:l}){const o=l,t=y,{t:p}=e.useI18n(),{display:g}=e.useAlertStore(),s=e.ref(),f=e.computed(()=>t.modelValue.base64!=="");function C(n){o("update:modelValue",n)}function w(){C({base64:"",name:"",type:""}),s.value&&(s.value.value="")}function v(){s.value&&s.value.click()}function u(n,i){const[d,B]=[n.name,n.type],N=new FileReader;N.onload=function(m){if(m.target){const h=m.target.result;i({base64:h,name:d,type:B})}else g({message:p("imageUploadError"),type:"error"})},N.readAsDataURL(n)}async function k(){let n;(n=s.value.files)instanceof FileList&&u(n[0],C)}return(n,i)=>(e.openBlock(),e.createBlock(e.InputField,{label:n.label,required:n.required,type:"media"},{default:e.withCtx(()=>[e.createBaseVNode("div",$,[e.createBaseVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",accept:n.validation,single:"",onChange:i[0]||(i[0]=d=>k())},null,40,D),e.createBaseVNode("div",I,[e.createBaseVNode("ul",L,[f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",A,[e.createVNode(e.Clickable,{label:e.unref(p)("uploadFile"),type:"button",icon:"upload","icon-color":n.iconColor,onClickEvent:i[1]||(i[1]=d=>v())},null,8,["label","icon-color"])])),f.value?(e.openBlock(),e.createElementBlock("li",W,[e.createVNode(e.Clickable,{label:e.unref(p)("replaceFile"),type:"button",icon:"repeat-alt","icon-color":n.iconColor,onClickEvent:i[2]||(i[2]=d=>v())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("li",j,[e.createVNode(e.Clickable,{label:e.unref(p)("removeFile"),type:"button",icon:"trash-alt","icon-color":n.iconColor,onClickEvent:i[3]||(i[3]=d=>w())},null,8,["label","icon-color"])])):e.createCommentVNode("",!0)]),e.createBaseVNode("div",{class:e.normalizeClass(["media-selector-previewer",{opened:f.value}])},[n.modelValue?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.modelValue.base64},null,8,H)):e.createCommentVNode("",!0)],2)])])]),_:1},8,["label","required"]))}});function G(y){const l=y;l.__i18n=l.__i18n||[],l.__i18n.push({locale:"",resource:{da:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload billede"])},removeFile:o=>{const{normalize:t}=o;return t(["Fjern billede"])},replaceFile:o=>{const{normalize:t}=o;return t(["Ersat billede"])},imageUploadError:o=>{const{normalize:t}=o;return t(["Der skete en fejl under billede upload!"])}},en:{uploadFile:o=>{const{normalize:t}=o;return t(["Upload image"])},removeFile:o=>{const{normalize:t}=o;return t(["Remove image"])},replaceFile:o=>{const{normalize:t}=o;return t(["Replace image"])},imageUploadError:o=>{const{normalize:t}=o;return t(["An error occurred under image upload!"])}}}})}typeof G=="function"&&G(O);const K={class:"gift-card-skeleton"},Y={class:"gift-card-skeleton-form"},J=e.defineComponent({__name:"GiftCardSkeleton",setup(y){return(l,o)=>(e.openBlock(),e.createElementBlock("div",K,[e.createBaseVNode("div",Y,[e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field),e.createVNode(R.Field,{"is-text-area":""}),e.createVNode(M.Element,{height:"44px"})])]))}});const Q=e._export_sfc(J,[["__scopeId","data-v-2600a731"]]),X={key:0,id:"fresh-booking-gift-card-wrapper"},Z={id:"fresh-booking-gift-card-title"},ee={id:"fresh-booking-gift-card-content"},te={id:"fresh-booking-gift-card-payment"},ae=["innerHTML"],le={key:0},oe={key:0,id:"fresh-booking-select-place-type"},ne={class:e.normalizeClass(["fresh-booking-label","required"])},re={id:"fresh-booking-select-place-type-input"},ie=["innerHTML"],de={key:0,id:"fresh-booking-gift-card-order"},se={class:"fresh-booking-panel"},ue={key:1,id:"fresh-booking-gift-card-remarks"},ce={key:2,id:"fresh-booking-gift-card-order-minimal","sticky-side":"bottom"},fe={id:"fresh-booking-gift-card-recaptcha"},pe=e.defineComponent({name:"GiftCardLayout",__name:"GiftCard",props:{accessToken:{},layout:{default:"minimal"},placeType:{},styling:{}},setup(y){const{t:l}=e.useI18n(),{name:o,email:t,phone:p,value:g,remark:s,showValue:f,quantity:C,media:w,placeId:v,placeType:u,showFormPage:k,showPaymentPage:n,showConfirmationPage:i,places:d,hasFilledForm:B,hasForcedPlaceType:N,isWaitingForResponse:m,isMetaDataAvailable:h}=e.storeToRefs(U()),{initialize:T,orderGiftCard:b}=U(),{isRecaptchaEnabled:E,currency:q}=e.storeToRefs(e.useUtilityStore());async function P(){await b()}return e.watch(u,()=>{v.value=void 0}),e.onMounted(()=>{T()}),(S,r)=>{const c=e.resolveDirective("sticky");return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(e._sfc_main,{id:"fresh-booking-gift-card-module",type:"gift-card","access-token":S.accessToken,"data-layout":S.layout,styling:S.styling,"sticky-container":""},{default:e.withCtx(()=>[e.unref(h)?(e.openBlock(),e.createElementBlock("div",X,[e.createBaseVNode("h4",Z,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.title")),1)]),e.createBaseVNode("div",ee,[e.withDirectives(e.createBaseVNode("div",te,[e.createVNode(V.CheckoutWindow)],512),[[e.vShow,e.unref(n)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("p",{id:"fresh-booking-gift-card-description",innerHTML:e.unref(l)("giftCard.description")},null,8,ae),e.createBaseVNode("form",null,[e.createVNode(x.TextField,{modelValue:e.unref(o),"onUpdate:modelValue":r[0]||(r[0]=a=>e.isRef(o)?o.value=a:null),type:"text",name:"name",autocomplete:"name",label:e.unref(l)("giftCard.name"),icon:"user-alt",placeholder:e.unref(l)("giftCard.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(x.TextField,{modelValue:e.unref(t),"onUpdate:modelValue":r[1]||(r[1]=a=>e.isRef(t)?t.value=a:null),type:"email",name:"email",autocomplete:"email",label:e.unref(l)("giftCard.email"),icon:"at",placeholder:e.unref(l)("giftCard.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(V.PhoneField,{modelValue:e.unref(p),"onUpdate:modelValue":r[2]||(r[2]=a=>e.isRef(p)?p.value=a:null),icon:"phone-office",label:e.unref(l)("giftCard.phone"),placeholder:e.unref(l)("giftCard.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.unref(N)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",le,[e.unref(d)?(e.openBlock(),e.createElementBlock("div",oe,[e.createBaseVNode("label",ne,[e.createBaseVNode("span",null,e.toDisplayString(e.unref(l)("giftCard.selectType")),1)]),e.createBaseVNode("div",re,[e.createBaseVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(a,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createVNode(V.Checkbox,{modelValue:e.unref(u),"onUpdate:modelValue":r[3]||(r[3]=z=>e.isRef(u)?u.value=z:null),type:"radio",name:"placeType",val:_,label:a.label},null,8,["modelValue","val","label"])]))),128))]),e.unref(d)[e.unref(u)]&&e.unref(d)[e.unref(u)].data.length>1?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,modelValue:e.unref(v),"onUpdate:modelValue":r[4]||(r[4]=a=>e.isRef(v)?v.value=a:null),placeholder:e.unref(l)("giftCard.selectPlacePlaceholder"),options:e.unref(d)[e.unref(u)].data,labelKey:"name",valueKey:"id",required:""},null,8,["modelValue","placeholder","options"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))])),e.createVNode(x.TextField,{modelValue:e.unref(g),"onUpdate:modelValue":r[5]||(r[5]=a=>e.isRef(g)?g.value=a:null),type:"number",name:"value",label:e.unref(l)("giftCard.value"),icon:"money-bill",placeholder:e.unref(l)("giftCard.valuePlaceholder"),suffix:e.unref(q),required:""},null,8,["modelValue","label","placeholder","suffix"]),e.createVNode(V.Checkbox,{modelValue:e.unref(f),"onUpdate:modelValue":r[6]||(r[6]=a=>e.isRef(f)?f.value=a:null),type:"checkbox",name:"showValue",label:e.unref(l)("giftCard.showValue"),checked:e.unref(f)},null,8,["modelValue","label","checked"]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)])],512),[[e.vShow,e.unref(k)]]),e.withDirectives(e.createBaseVNode("div",null,[e.createBaseVNode("div",{innerHTML:e.unref(l)("giftCard.thankYou")},null,8,ie)],512),[[e.vShow,e.unref(i)]])]),S.layout!=="minimal"&&e.unref(k)?(e.openBlock(),e.createElementBlock("div",de,[e.createBaseVNode("div",se,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"is-loading":e.unref(m),"onUpdate:isLoading":r[9]||(r[9]=a=>e.isRef(m)?m.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"])])])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(x.TextField,{modelValue:e.unref(s),"onUpdate:modelValue":r[10]||(r[10]=a=>e.isRef(s)?s.value=a:null),type:"textarea",name:"remark",label:e.unref(l)("giftCard.remark"),icon:"info-circle",placeholder:e.unref(l)("giftCard.remarkPlaceholder")},null,8,["modelValue","label","placeholder"])])):e.createCommentVNode("",!0),e.unref(k)?e.withDirectives((e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(e.Clickable,{label:e.unref(l)("giftCard.orderGiftCard"),"full-width":!0,disabled:!e.unref(B),"data-test":"orderGiftCard","is-loading":e.unref(m),"onUpdate:isLoading":r[11]||(r[11]=a=>e.isRef(m)?m.value=a:null),onClickEvent:P},null,8,["label","disabled","is-loading"]),e.withDirectives(e.createBaseVNode("div",fe,[e.createVNode(V._sfc_main)],512),[[e.vShow,e.unref(E)]])])),[[c]]):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.Loading,{key:1}))]),_:1},8,["access-token","data-layout","styling"])]),fallback:e.withCtx(()=>[e.createVNode(Q)]),_:1})}}});const me=e._export_sfc(pe,[["__scopeId","data-v-e4aa1e4c"]]),_e=e.createPinia(),ve=e.zo(),F=e.createApp({components:{GiftCard:me}});F.use(_e);F.use(e.instance);F.use(ve);F.use(V.StickyPlugin);F.use(V.install,{bootstrap:!1});F.mount("#konnectio-gift-card-app");