@konnectio/core 4.0.37 → 4.0.39

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 (66) hide show
  1. package/dist/{ActionField-8e5218c5.js → ActionField-60b4ebb2.js} +2 -2
  2. package/dist/ActionField-60b4ebb2.js.br +0 -0
  3. package/dist/{ActionField-6712c933.cjs → ActionField-b2dd3217.cjs} +1 -1
  4. package/dist/{AvailabilitySkeleton-67ce6e6d.js → AvailabilitySkeleton-8f2cb769.js} +5 -5
  5. package/dist/AvailabilitySkeleton-8f2cb769.js.br +0 -0
  6. package/dist/{AvailabilitySkeleton-ec96db6b.cjs → AvailabilitySkeleton-dca8b252.cjs} +1 -1
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-64a0c44b.js → DateField.vue_vue_type_style_index_0_lang-cabe193e.js} +1 -1
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-cabe193e.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-0c12cda5.cjs → DateField.vue_vue_type_style_index_0_lang-e4bf6579.cjs} +1 -1
  10. package/dist/{Field-616b5ab4.cjs → Field-03c61aee.cjs} +1 -1
  11. package/dist/{Field-0fa0f987.js → Field-19640674.js} +2 -2
  12. package/dist/Field-19640674.js.br +0 -0
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js → NumberField.vue_vue_type_script_setup_true_lang-ada222c7.js} +1 -1
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-ada222c7.js.br +0 -0
  15. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-1f92ec10.cjs → NumberField.vue_vue_type_script_setup_true_lang-b3e83a4d.cjs} +1 -1
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-2fab4a70.cjs → SelectField.vue_vue_type_style_index_0_lang-1dc998e0.cjs} +35 -35
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js → SelectField.vue_vue_type_style_index_0_lang-9b78302d.js} +1421 -1418
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-9b78302d.js.br +0 -0
  19. package/dist/{ThankYou-125b27fb.js → ThankYou-18bef897.js} +7 -7
  20. package/dist/ThankYou-18bef897.js.br +0 -0
  21. package/dist/{ThankYou-0bb9b8ba.cjs → ThankYou-2313373f.cjs} +2 -2
  22. package/dist/{_-3a1d4d62.js → _-6e1eca9d.js} +1 -1
  23. package/dist/{_-f6d1d88b.cjs → _-e6cecc7f.cjs} +1 -1
  24. package/dist/availability.cjs +2 -2
  25. package/dist/availability.js +10 -10
  26. package/dist/availability.js.br +0 -0
  27. package/dist/components/listings/Base.vue.d.ts +1 -1
  28. package/dist/components/listings/Event.vue.d.ts +1 -1
  29. package/dist/entries/availability.d.ts +1 -1
  30. package/dist/{event-bf4c7637.js → event-6e2cdb77.js} +7 -7
  31. package/dist/event-6e2cdb77.js.br +0 -0
  32. package/dist/{event-ad6054a0.cjs → event-d848bde5.cjs} +1 -1
  33. package/dist/event.cjs +1 -1
  34. package/dist/event.js +9 -9
  35. package/dist/event.js.br +0 -0
  36. package/dist/gift-card-validation.cjs +1 -1
  37. package/dist/gift-card-validation.js +3 -3
  38. package/dist/gift-card-validation.js.br +0 -0
  39. package/dist/gift-card.cjs +1 -1
  40. package/dist/gift-card.js +227 -228
  41. package/dist/gift-card.js.br +0 -0
  42. package/dist/hotel.cjs +5 -5
  43. package/dist/hotel.js +546 -544
  44. package/dist/hotel.js.br +0 -0
  45. package/dist/{index-cc419f8f.js → index-8abf7dfc.js} +1 -1
  46. package/dist/index-8abf7dfc.js.br +0 -0
  47. package/dist/{index-f4b84887.cjs → index-9663f159.cjs} +1 -1
  48. package/dist/polyfill.cjs +1 -1
  49. package/dist/polyfill.js +1 -1
  50. package/dist/polyfill.js.br +0 -0
  51. package/dist/store/event.d.ts +3 -3
  52. package/dist/store/tracking.d.ts +8 -3
  53. package/dist/store/utilities.d.ts +7 -1
  54. package/dist/style.css +1 -1
  55. package/dist/style.css.br +0 -0
  56. package/dist/types/index.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/dist/ActionField-8e5218c5.js.br +0 -0
  59. package/dist/AvailabilitySkeleton-67ce6e6d.js.br +0 -0
  60. package/dist/DateField.vue_vue_type_style_index_0_lang-64a0c44b.js.br +0 -0
  61. package/dist/Field-0fa0f987.js.br +0 -0
  62. package/dist/NumberField.vue_vue_type_script_setup_true_lang-c9486f0a.js.br +0 -0
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js.br +0 -0
  64. package/dist/ThankYou-125b27fb.js.br +0 -0
  65. package/dist/event-bf4c7637.js.br +0 -0
  66. package/dist/index-cc419f8f.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,100 +1,99 @@
1
- import { d as ue, b as ie, u as ce, s as Q, c as ne, r as b, ae as w, e as Y, f as V, j as Z, S as J, h as pe, i as fe, af as me, k as X, D as se, m as s, n as D, w as H, A as n, v, p as i, q as e, C as x, x as _, y as re, I as ve, _ as de, a1 as ge, o as he, ag as ye, F as ee, ah as B, ai as W, T as j, G as C, a2 as be, a3 as _e, B as ke, a4 as ae, M as Ce, N as Ve, U as Fe, a8 as Pe, R as Se, V as we, a9 as Te } from "./SelectField.vue_vue_type_style_index_0_lang-6bfcccf8.js";
2
- import { a as $e, P as Ue, C as le, _ as Re, S as qe } from "./index-cc419f8f.js";
3
- import { E as Ee } from "./_-3a1d4d62.js";
4
- import { F as L } from "./Field-0fa0f987.js";
1
+ import { d as ue, u as ce, s as Q, c as ne, r as h, ae as P, e as Y, f as C, j as ee, S as J, h as pe, i as fe, af as me, k as X, D as se, b as ve, m as r, n as x, w as H, A as n, v as f, p as i, q as e, C as A, x as y, y as re, I as ge, _ as de, a1 as he, o as ye, ag as be, F as ae, ah as L, ai as W, T as j, G as k, a2 as _e, a3 as ke, B as Ce, a4 as le, M as Ve, N as Fe, U as Pe, a8 as Se, R as we, V as Te, a9 as $e } from "./SelectField.vue_vue_type_style_index_0_lang-9b78302d.js";
2
+ import { a as Ue, P as Re, C as te, _ as qe, S as Ee } from "./index-8abf7dfc.js";
3
+ import { E as Ge } from "./_-6e1eca9d.js";
4
+ import { F as D } from "./Field-19640674.js";
5
5
  import "./_commonjsHelpers-aeeeeb92.js";
6
- const te = ue("giftCard", () => {
7
- ie();
8
- const { pay: T } = ce(), { bearerToken: l, metaData: F } = Q(ne()), d = b(w.InitialState), g = Y("konnectio_name", "", void 0, { serializer: J.string }), P = Y("konnectio_email", "", void 0, { serializer: J.string }), c = Y("konnectio_phone", "", void 0, { serializer: J.string }), m = b(""), R = b(1), M = b(!0), k = b(""), p = b({
6
+ const oe = ue("giftCard", () => {
7
+ const { pay: T } = ce(), { bearerToken: l, metaData: S, currencyId: $ } = Q(ne()), s = h(P.InitialState), V = Y("konnectio_name", "", void 0, { serializer: J.string }), c = Y("konnectio_email", "", void 0, { serializer: J.string }), p = Y("konnectio_phone", "", void 0, { serializer: J.string }), U = h(""), I = h(1), b = h(!0), m = h(""), v = h({
9
8
  base64: "",
10
9
  type: "",
11
10
  name: ""
12
- }), S = b(void 0), t = b(0), r = b(!1), u = b(0), q = V(() => d.value === w.InitialState || d.value === w.WaitingForResponse), E = V(() => d.value === w.ReadyToPay), h = V(() => d.value === w.PaymentSuccess), $ = V(() => {
13
- const f = {
11
+ }), t = h(void 0), d = h(0), u = h(!1), w = h(0), q = C(() => s.value === P.InitialState || s.value === P.WaitingForResponse), g = C(() => s.value === P.ReadyToPay), M = C(() => s.value === P.PaymentSuccess), B = C(() => {
12
+ const a = {
14
13
  1: {
15
- label: Z.t("giftCard.hotelType"),
14
+ label: ee.t("giftCard.hotelType"),
16
15
  data: []
17
16
  },
18
17
  2: {
19
- label: Z.t("giftCard.restaurantType"),
18
+ label: ee.t("giftCard.restaurantType"),
20
19
  data: []
21
20
  }
22
- }, a = F.value.places;
23
- return a && a.forEach((y) => {
24
- f[y.placeType].data.push(y);
21
+ }, F = S.value.places;
22
+ return F && F.forEach((_) => {
23
+ a[_.placeType].data.push(_);
25
24
  }), Object.fromEntries(
26
- Object.entries(f).filter(([, y]) => y.data.length > 0)
25
+ Object.entries(a).filter(([, _]) => _.data.length > 0)
27
26
  );
28
- }), A = V(() => u.value !== 0), U = V(() => {
29
- let f;
30
- if (A.value)
31
- f = $.value[u.value].data[0];
32
- else if (t.value !== 0) {
33
- const a = S.value, y = $.value[t.value].data;
34
- y.length === 1 ? f = y[0] : a !== void 0 && y.forEach((N) => {
35
- String(N.id) === String(a) && (f = N);
27
+ }), z = C(() => w.value !== 0), R = C(() => {
28
+ let a;
29
+ if (z.value)
30
+ a = B.value[w.value].data[0];
31
+ else if (d.value !== 0) {
32
+ const F = t.value, _ = B.value[d.value].data;
33
+ _.length === 1 ? a = _[0] : F !== void 0 && _.forEach((Z) => {
34
+ String(Z.id) === String(F) && (a = Z);
36
35
  });
37
36
  }
38
- return f;
39
- }), O = V(() => !(!g.value || !P.value || !(c.value.length >= 5) || !m.value || U.value === void 0)), K = V(() => !(d.value === w.InitialState && r.value)), z = V(() => !!(d.value === w.WaitingForResponse && r.value));
40
- async function G() {
41
- d.value = w.WaitingForResponse, r.value = !0, await pe.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
37
+ return a;
38
+ }), O = C(() => !(!V.value || !c.value || !(p.value.length >= 5) || !U.value || R.value === void 0)), N = C(() => !(s.value === P.InitialState && u.value)), E = C(() => !!(s.value === P.WaitingForResponse && u.value));
39
+ async function o() {
40
+ s.value = P.WaitingForResponse, u.value = !0, await pe.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
42
41
  termsOfserviceURL: "https://freshbooking.dk",
43
42
  checkoutUrl: "https://freshbooking.dk",
44
- currencyID: F.value.currency.id,
43
+ currencyID: $.value,
45
44
  language: fe(),
46
- amount: m.value,
47
- quantity: R.value,
48
- freeText: k.value,
49
- showPrice: M.value,
50
- contactName: g.value,
51
- contactEmail: P.value,
52
- contactPhone: c.value,
53
- imageBase64: me(p.value.base64),
54
- imageName: p.value.name,
55
- imageFormat: p.value.type,
56
- placeType: U.value ? U.value.placeType : void 0,
57
- placeID: U.value ? U.value.id : void 0
45
+ amount: U.value,
46
+ quantity: I.value,
47
+ freeText: m.value,
48
+ showPrice: b.value,
49
+ contactName: V.value,
50
+ contactEmail: c.value,
51
+ contactPhone: p.value,
52
+ imageBase64: me(v.value.base64),
53
+ imageName: v.value.name,
54
+ imageFormat: v.value.type,
55
+ placeType: R.value ? R.value.placeType : void 0,
56
+ placeID: R.value ? R.value.id : void 0
58
57
  }, {
59
58
  headers: {
60
59
  Authorization: l.value,
61
60
  Accept: "application/json",
62
- "Fresh-Booking-Ver": "4.0.37"
61
+ "Fresh-Booking-Ver": "4.0.39"
63
62
  }
64
- }).then((f) => {
65
- d.value = w.ReadyToPay, r.value = !1, T({
63
+ }).then((a) => {
64
+ s.value = P.ReadyToPay, u.value = !1, T({
66
65
  callback: () => console.log("Callback!"),
67
- response: f.data
66
+ response: a.data
68
67
  });
69
68
  });
70
69
  }
71
- function o(f) {
72
- f && (u.value = f);
70
+ function K(a) {
71
+ a && (w.value = a);
73
72
  }
74
73
  return {
75
- moduleState: d,
76
- name: g,
77
- email: P,
78
- phone: c,
79
- value: m,
80
- remark: k,
81
- showValue: M,
82
- quantity: R,
83
- media: p,
84
- placeId: S,
85
- placeType: t,
74
+ moduleState: s,
75
+ name: V,
76
+ email: c,
77
+ phone: p,
78
+ value: U,
79
+ remark: m,
80
+ showValue: b,
81
+ quantity: I,
82
+ media: v,
83
+ placeId: t,
84
+ placeType: d,
86
85
  showFormPage: q,
87
- showPaymentPage: E,
88
- showConfirmationPage: h,
89
- places: $,
86
+ showPaymentPage: g,
87
+ showConfirmationPage: M,
88
+ places: B,
90
89
  hasFilledForm: O,
91
- hasForcedPlaceType: A,
92
- isWaitingForResponse: z,
93
- isMetaDataAvailable: K,
94
- orderGiftCard: G,
95
- initialize: o
90
+ hasForcedPlaceType: z,
91
+ isWaitingForResponse: E,
92
+ isMetaDataAvailable: N,
93
+ orderGiftCard: o,
94
+ initialize: K
96
95
  };
97
- }), Ge = { class: "media-selector" }, Ie = ["accept"], Me = { class: "media-selector-wrapper" }, Be = { class: "media-selector-tools" }, Le = { key: 0 }, De = { key: 1 }, xe = { key: 2 }, Ae = ["src"], ze = /* @__PURE__ */ X({
96
+ }), Ie = { class: "media-selector" }, Me = ["accept"], Be = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, De = { key: 0 }, xe = { key: 1 }, Ae = { key: 2 }, ze = ["src"], Ne = /* @__PURE__ */ X({
98
97
  __name: "MediaSelector",
99
98
  props: {
100
99
  modelValue: {},
@@ -105,44 +104,44 @@ const te = ue("giftCard", () => {
105
104
  },
106
105
  emits: ["update:modelValue"],
107
106
  setup(T, { emit: l }) {
108
- const F = l, d = T, { t: g } = se(), { display: P } = ie(), c = b(), m = V(() => d.modelValue.base64 !== "");
109
- function R(t) {
110
- F("update:modelValue", t);
107
+ const S = l, $ = T, { t: s } = se(), { display: V } = ve(), c = h(), p = C(() => $.modelValue.base64 !== "");
108
+ function U(t) {
109
+ S("update:modelValue", t);
111
110
  }
112
- function M() {
113
- R({
111
+ function I() {
112
+ U({
114
113
  base64: "",
115
114
  name: "",
116
115
  type: ""
117
116
  }), c.value && (c.value.value = "");
118
117
  }
119
- function k() {
118
+ function b() {
120
119
  c.value && c.value.click();
121
120
  }
122
- function p(t, r) {
123
- const [u, q] = [t.name, t.type], E = new FileReader();
124
- E.onload = function(h) {
125
- if (h.target) {
126
- const $ = h.target.result;
127
- r({ base64: $, name: u, type: q });
121
+ function m(t, d) {
122
+ const [u, w] = [t.name, t.type], q = new FileReader();
123
+ q.onload = function(g) {
124
+ if (g.target) {
125
+ const M = g.target.result;
126
+ d({ base64: M, name: u, type: w });
128
127
  } else
129
- P({
130
- message: g("imageUploadError"),
128
+ V({
129
+ message: s("imageUploadError"),
131
130
  type: "error"
132
131
  });
133
- }, E.readAsDataURL(t);
132
+ }, q.readAsDataURL(t);
134
133
  }
135
- async function S() {
134
+ async function v() {
136
135
  let t;
137
- (t = c.value.files) instanceof FileList && p(t[0], R);
136
+ (t = c.value.files) instanceof FileList && m(t[0], U);
138
137
  }
139
- return (t, r) => (s(), D(ve, {
138
+ return (t, d) => (r(), x(ge, {
140
139
  label: t.label,
141
140
  required: t.required,
142
141
  type: "media"
143
142
  }, {
144
143
  default: H(() => [
145
- n("div", Ge, [
144
+ n("div", Ie, [
146
145
  n("input", {
147
146
  ref_key: "fileInput",
148
147
  ref: c,
@@ -150,48 +149,48 @@ const te = ue("giftCard", () => {
150
149
  class: "hidden",
151
150
  accept: t.validation,
152
151
  single: "",
153
- onChange: r[0] || (r[0] = (u) => S())
154
- }, null, 40, Ie),
155
- n("div", Me, [
156
- n("ul", Be, [
157
- m.value ? _("", !0) : (s(), v("li", Le, [
158
- i(x, {
159
- label: e(g)("uploadFile"),
152
+ onChange: d[0] || (d[0] = (u) => v())
153
+ }, null, 40, Me),
154
+ n("div", Be, [
155
+ n("ul", Le, [
156
+ p.value ? y("", !0) : (r(), f("li", De, [
157
+ i(A, {
158
+ label: e(s)("uploadFile"),
160
159
  type: "button",
161
160
  icon: "upload",
162
161
  "icon-color": t.iconColor,
163
- onClickEvent: r[1] || (r[1] = (u) => k())
162
+ onClickEvent: d[1] || (d[1] = (u) => b())
164
163
  }, null, 8, ["label", "icon-color"])
165
164
  ])),
166
- m.value ? (s(), v("li", De, [
167
- i(x, {
168
- label: e(g)("replaceFile"),
165
+ p.value ? (r(), f("li", xe, [
166
+ i(A, {
167
+ label: e(s)("replaceFile"),
169
168
  type: "button",
170
169
  icon: "repeat-alt",
171
170
  "icon-color": t.iconColor,
172
- onClickEvent: r[2] || (r[2] = (u) => k())
171
+ onClickEvent: d[2] || (d[2] = (u) => b())
173
172
  }, null, 8, ["label", "icon-color"])
174
- ])) : _("", !0),
175
- m.value ? (s(), v("li", xe, [
176
- i(x, {
177
- label: e(g)("removeFile"),
173
+ ])) : y("", !0),
174
+ p.value ? (r(), f("li", Ae, [
175
+ i(A, {
176
+ label: e(s)("removeFile"),
178
177
  type: "button",
179
178
  icon: "trash-alt",
180
179
  "icon-color": t.iconColor,
181
- onClickEvent: r[3] || (r[3] = (u) => M())
180
+ onClickEvent: d[3] || (d[3] = (u) => I())
182
181
  }, null, 8, ["label", "icon-color"])
183
- ])) : _("", !0)
182
+ ])) : y("", !0)
184
183
  ]),
185
184
  n("div", {
186
185
  class: re([
187
186
  "media-selector-previewer",
188
- { opened: m.value }
187
+ { opened: p.value }
189
188
  ])
190
189
  }, [
191
- t.modelValue ? (s(), v("img", {
190
+ t.modelValue ? (r(), f("img", {
192
191
  key: 0,
193
192
  src: t.modelValue.base64
194
- }, null, 8, Ae)) : _("", !0)
193
+ }, null, 8, ze)) : y("", !0)
195
194
  ], 2)
196
195
  ])
197
196
  ])
@@ -200,7 +199,7 @@ const te = ue("giftCard", () => {
200
199
  }, 8, ["label", "required"]));
201
200
  }
202
201
  });
203
- function oe(T) {
202
+ function ie(T) {
204
203
  const l = T;
205
204
  l.__i18n = l.__i18n || [], l.__i18n.push({
206
205
  locale: "",
@@ -220,41 +219,41 @@ function oe(T) {
220
219
  }
221
220
  });
222
221
  }
223
- typeof oe == "function" && oe(ze);
224
- const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ X({
222
+ typeof ie == "function" && ie(Ne);
223
+ const We = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ X({
225
224
  __name: "GiftCardSkeleton",
226
225
  setup(T) {
227
- return (l, F) => (s(), v("div", Ne, [
228
- n("div", We, [
229
- i(L),
230
- i(L),
231
- i(L),
232
- i(L),
233
- i(L, { "is-text-area": "" }),
234
- i(Ee, { height: "44px" })
226
+ return (l, S) => (r(), f("div", We, [
227
+ n("div", je, [
228
+ i(D),
229
+ i(D),
230
+ i(D),
231
+ i(D),
232
+ i(D, { "is-text-area": "" }),
233
+ i(Ge, { height: "44px" })
235
234
  ])
236
235
  ]));
237
236
  }
238
237
  });
239
- const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
238
+ const Oe = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Ke = {
240
239
  key: 0,
241
240
  id: "fresh-booking-gift-card-wrapper"
242
- }, Ke = { id: "fresh-booking-gift-card-title" }, Ye = { id: "fresh-booking-gift-card-content" }, Je = { id: "fresh-booking-gift-card-payment" }, Qe = ["innerHTML"], Xe = { key: 0 }, Ze = {
241
+ }, Ye = { id: "fresh-booking-gift-card-title" }, Je = { id: "fresh-booking-gift-card-content" }, Qe = { id: "fresh-booking-gift-card-payment" }, Xe = ["innerHTML"], Ze = { key: 0 }, ea = {
243
242
  key: 0,
244
243
  id: "fresh-booking-select-place-type"
245
- }, ea = {
244
+ }, aa = {
246
245
  class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
247
- }, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
246
+ }, la = { id: "fresh-booking-select-place-type-input" }, ta = ["innerHTML"], oa = {
248
247
  key: 0,
249
248
  id: "fresh-booking-gift-card-order"
250
- }, oa = { class: "fresh-booking-panel" }, ia = {
249
+ }, ia = { class: "fresh-booking-panel" }, na = {
251
250
  key: 1,
252
251
  id: "fresh-booking-gift-card-remarks"
253
- }, na = {
252
+ }, sa = {
254
253
  key: 2,
255
254
  id: "fresh-booking-gift-card-order-minimal",
256
255
  "sticky-side": "bottom"
257
- }, sa = { id: "fresh-booking-gift-card-recaptcha" }, ra = /* @__PURE__ */ X({
256
+ }, ra = { id: "fresh-booking-gift-card-recaptcha" }, da = /* @__PURE__ */ X({
258
257
  name: "GiftCardLayout",
259
258
  __name: "GiftCard",
260
259
  props: {
@@ -265,64 +264,64 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
265
264
  },
266
265
  setup(T) {
267
266
  const { t: l } = se(), {
268
- name: F,
269
- email: d,
270
- phone: g,
271
- value: P,
267
+ name: S,
268
+ email: $,
269
+ phone: s,
270
+ value: V,
272
271
  remark: c,
273
- showValue: m,
274
- quantity: R,
275
- media: M,
276
- placeId: k,
277
- placeType: p,
278
- showFormPage: S,
272
+ showValue: p,
273
+ quantity: U,
274
+ media: I,
275
+ placeId: b,
276
+ placeType: m,
277
+ showFormPage: v,
279
278
  showPaymentPage: t,
280
- showConfirmationPage: r,
279
+ showConfirmationPage: d,
281
280
  places: u,
282
- hasFilledForm: q,
283
- hasForcedPlaceType: E,
284
- isWaitingForResponse: h,
285
- isMetaDataAvailable: $
286
- } = Q(te()), { initialize: A, orderGiftCard: U } = te(), { isRecaptchaEnabled: O, currency: K } = Q(ne());
287
- async function z() {
288
- await U();
281
+ hasFilledForm: w,
282
+ hasForcedPlaceType: q,
283
+ isWaitingForResponse: g,
284
+ isMetaDataAvailable: M
285
+ } = Q(oe()), { initialize: B, orderGiftCard: z } = oe(), { isRecaptchaEnabled: R, currency: O } = Q(ne());
286
+ async function N() {
287
+ await z();
289
288
  }
290
- return ge(p, () => {
291
- k.value = void 0;
292
- }), he(() => {
293
- A();
294
- }), (G, o) => {
295
- const f = ye("sticky");
296
- return s(), D(Ve, null, {
289
+ return he(m, () => {
290
+ b.value = void 0;
291
+ }), ye(() => {
292
+ B();
293
+ }), (E, o) => {
294
+ const K = be("sticky");
295
+ return r(), x(Fe, null, {
297
296
  default: H(() => [
298
- i(Ce, {
297
+ i(Ve, {
299
298
  id: "fresh-booking-gift-card-module",
300
299
  type: "gift-card",
301
- "access-token": G.accessToken,
302
- "data-layout": G.layout,
303
- styling: G.styling,
300
+ "access-token": E.accessToken,
301
+ "data-layout": E.layout,
302
+ styling: E.styling,
304
303
  "sticky-container": ""
305
304
  }, {
306
305
  default: H(() => [
307
- e($) ? (s(), v("div", Oe, [
308
- n("h4", Ke, [
309
- n("span", null, ee(e(l)("giftCard.title")), 1)
306
+ e(M) ? (r(), f("div", Ke, [
307
+ n("h4", Ye, [
308
+ n("span", null, ae(e(l)("giftCard.title")), 1)
310
309
  ]),
311
- n("div", Ye, [
312
- B(n("div", Je, [
313
- i($e)
310
+ n("div", Je, [
311
+ L(n("div", Qe, [
312
+ i(Ue)
314
313
  ], 512), [
315
314
  [W, e(t)]
316
315
  ]),
317
- B(n("div", null, [
316
+ L(n("div", null, [
318
317
  n("p", {
319
318
  id: "fresh-booking-gift-card-description",
320
319
  innerHTML: e(l)("giftCard.description")
321
- }, null, 8, Qe),
320
+ }, null, 8, Xe),
322
321
  n("form", null, [
323
322
  i(j, {
324
- modelValue: e(F),
325
- "onUpdate:modelValue": o[0] || (o[0] = (a) => C(F) ? F.value = a : null),
323
+ modelValue: e(S),
324
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => k(S) ? S.value = a : null),
326
325
  type: "text",
327
326
  name: "name",
328
327
  autocomplete: "name",
@@ -332,8 +331,8 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
332
331
  required: ""
333
332
  }, null, 8, ["modelValue", "label", "placeholder"]),
334
333
  i(j, {
335
- modelValue: e(d),
336
- "onUpdate:modelValue": o[1] || (o[1] = (a) => C(d) ? d.value = a : null),
334
+ modelValue: e($),
335
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => k($) ? $.value = a : null),
337
336
  type: "email",
338
337
  name: "email",
339
338
  autocomplete: "email",
@@ -342,136 +341,136 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
342
341
  placeholder: e(l)("giftCard.emailPlaceholder"),
343
342
  required: ""
344
343
  }, null, 8, ["modelValue", "label", "placeholder"]),
345
- i(Ue, {
346
- modelValue: e(g),
347
- "onUpdate:modelValue": o[2] || (o[2] = (a) => C(g) ? g.value = a : null),
344
+ i(Re, {
345
+ modelValue: e(s),
346
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => k(s) ? s.value = a : null),
348
347
  icon: "phone-office",
349
348
  label: e(l)("giftCard.phone"),
350
349
  placeholder: e(l)("giftCard.phonePlaceholder"),
351
350
  required: ""
352
351
  }, null, 8, ["modelValue", "label", "placeholder"]),
353
- e(E) ? _("", !0) : (s(), v("div", Xe, [
354
- e(u) ? (s(), v("div", Ze, [
355
- n("label", ea, [
356
- n("span", null, ee(e(l)("giftCard.selectType")), 1)
352
+ e(q) ? y("", !0) : (r(), f("div", Ze, [
353
+ e(u) ? (r(), f("div", ea, [
354
+ n("label", aa, [
355
+ n("span", null, ae(e(l)("giftCard.selectType")), 1)
357
356
  ]),
358
- n("div", aa, [
357
+ n("div", la, [
359
358
  n("ul", null, [
360
- (s(!0), v(be, null, _e(e(u), (a, y) => (s(), v("li", { key: y }, [
361
- i(le, {
362
- modelValue: e(p),
363
- "onUpdate:modelValue": o[3] || (o[3] = (N) => C(p) ? p.value = N : null),
359
+ (r(!0), f(_e, null, ke(e(u), (a, F) => (r(), f("li", { key: F }, [
360
+ i(te, {
361
+ modelValue: e(m),
362
+ "onUpdate:modelValue": o[3] || (o[3] = (_) => k(m) ? m.value = _ : null),
364
363
  type: "radio",
365
364
  name: "placeType",
366
- val: y,
365
+ val: F,
367
366
  label: a.label
368
367
  }, null, 8, ["modelValue", "val", "label"])
369
368
  ]))), 128))
370
369
  ]),
371
- e(u)[e(p)] && e(u)[e(p)].data.length > 1 ? (s(), D(ke, {
370
+ e(u)[e(m)] && e(u)[e(m)].data.length > 1 ? (r(), x(Ce, {
372
371
  key: 0,
373
- modelValue: e(k),
374
- "onUpdate:modelValue": o[4] || (o[4] = (a) => C(k) ? k.value = a : null),
372
+ modelValue: e(b),
373
+ "onUpdate:modelValue": o[4] || (o[4] = (a) => k(b) ? b.value = a : null),
375
374
  placeholder: e(l)("giftCard.selectPlacePlaceholder"),
376
- options: e(u)[e(p)].data,
375
+ options: e(u)[e(m)].data,
377
376
  labelKey: "name",
378
377
  valueKey: "id",
379
378
  required: ""
380
- }, null, 8, ["modelValue", "placeholder", "options"])) : _("", !0)
379
+ }, null, 8, ["modelValue", "placeholder", "options"])) : y("", !0)
381
380
  ])
382
- ])) : (s(), D(ae, { key: 1 }))
381
+ ])) : (r(), x(le, { key: 1 }))
383
382
  ])),
384
383
  i(j, {
385
- modelValue: e(P),
386
- "onUpdate:modelValue": o[5] || (o[5] = (a) => C(P) ? P.value = a : null),
384
+ modelValue: e(V),
385
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => k(V) ? V.value = a : null),
387
386
  type: "number",
388
387
  name: "value",
389
388
  label: e(l)("giftCard.value"),
390
389
  icon: "money-bill",
391
390
  placeholder: e(l)("giftCard.valuePlaceholder"),
392
- suffix: e(K),
391
+ suffix: e(O),
393
392
  required: ""
394
393
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
395
- i(le, {
396
- modelValue: e(m),
397
- "onUpdate:modelValue": o[6] || (o[6] = (a) => C(m) ? m.value = a : null),
394
+ i(te, {
395
+ modelValue: e(p),
396
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => k(p) ? p.value = a : null),
398
397
  type: "checkbox",
399
398
  name: "showValue",
400
399
  label: e(l)("giftCard.showValue"),
401
- checked: e(m)
400
+ checked: e(p)
402
401
  }, null, 8, ["modelValue", "label", "checked"]),
403
- _("", !0),
404
- _("", !0)
402
+ y("", !0),
403
+ y("", !0)
405
404
  ])
406
405
  ], 512), [
407
- [W, e(S)]
406
+ [W, e(v)]
408
407
  ]),
409
- B(n("div", null, [
408
+ L(n("div", null, [
410
409
  n("div", {
411
410
  innerHTML: e(l)("giftCard.thankYou")
412
- }, null, 8, la)
411
+ }, null, 8, ta)
413
412
  ], 512), [
414
- [W, e(r)]
413
+ [W, e(d)]
415
414
  ])
416
415
  ]),
417
- G.layout !== "minimal" && e(S) ? (s(), v("div", ta, [
418
- n("div", oa, [
419
- i(x, {
416
+ E.layout !== "minimal" && e(v) ? (r(), f("div", oa, [
417
+ n("div", ia, [
418
+ i(A, {
420
419
  label: e(l)("giftCard.orderGiftCard"),
421
420
  "full-width": !0,
422
- disabled: !e(q),
423
- "is-loading": e(h),
424
- "onUpdate:isLoading": o[9] || (o[9] = (a) => C(h) ? h.value = a : null),
425
- onClickEvent: z
421
+ disabled: !e(w),
422
+ "is-loading": e(g),
423
+ "onUpdate:isLoading": o[9] || (o[9] = (a) => k(g) ? g.value = a : null),
424
+ onClickEvent: N
426
425
  }, null, 8, ["label", "disabled", "is-loading"])
427
426
  ])
428
- ])) : _("", !0),
429
- e(S) ? (s(), v("div", ia, [
427
+ ])) : y("", !0),
428
+ e(v) ? (r(), f("div", na, [
430
429
  i(j, {
431
430
  modelValue: e(c),
432
- "onUpdate:modelValue": o[10] || (o[10] = (a) => C(c) ? c.value = a : null),
431
+ "onUpdate:modelValue": o[10] || (o[10] = (a) => k(c) ? c.value = a : null),
433
432
  type: "textarea",
434
433
  name: "remark",
435
434
  label: e(l)("giftCard.remark"),
436
435
  icon: "info-circle",
437
436
  placeholder: e(l)("giftCard.remarkPlaceholder")
438
437
  }, null, 8, ["modelValue", "label", "placeholder"])
439
- ])) : _("", !0),
440
- e(S) ? B((s(), v("div", na, [
441
- i(x, {
438
+ ])) : y("", !0),
439
+ e(v) ? L((r(), f("div", sa, [
440
+ i(A, {
442
441
  label: e(l)("giftCard.orderGiftCard"),
443
442
  "full-width": !0,
444
- disabled: !e(q),
443
+ disabled: !e(w),
445
444
  "data-test": "orderGiftCard",
446
- "is-loading": e(h),
447
- "onUpdate:isLoading": o[11] || (o[11] = (a) => C(h) ? h.value = a : null),
448
- onClickEvent: z
445
+ "is-loading": e(g),
446
+ "onUpdate:isLoading": o[11] || (o[11] = (a) => k(g) ? g.value = a : null),
447
+ onClickEvent: N
449
448
  }, null, 8, ["label", "disabled", "is-loading"]),
450
- B(n("div", sa, [
451
- i(Re)
449
+ L(n("div", ra, [
450
+ i(qe)
452
451
  ], 512), [
453
- [W, e(O)]
452
+ [W, e(R)]
454
453
  ])
455
454
  ])), [
456
- [f]
457
- ]) : _("", !0)
458
- ])) : (s(), D(ae, { key: 1 }))
455
+ [K]
456
+ ]) : y("", !0)
457
+ ])) : (r(), x(le, { key: 1 }))
459
458
  ]),
460
459
  _: 1
461
460
  }, 8, ["access-token", "data-layout", "styling"])
462
461
  ]),
463
462
  fallback: H(() => [
464
- i(He)
463
+ i(Oe)
465
464
  ]),
466
465
  _: 1
467
466
  });
468
467
  };
469
468
  }
470
469
  });
471
- const da = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Fe(), ca = Pe(), I = Se({ components: { GiftCard: da } });
472
- I.use(ua);
473
- I.use(we);
474
- I.use(ca);
475
- I.use(qe);
476
- I.use(Te, { bootstrap: !0 });
477
- I.mount("#konnectio-gift-card-app");
470
+ const ua = /* @__PURE__ */ de(da, [["__scopeId", "data-v-e4aa1e4c"]]), ca = Pe(), pa = Se(), G = we({ components: { GiftCard: ua } });
471
+ G.use(ca);
472
+ G.use(Te);
473
+ G.use(pa);
474
+ G.use(Ee);
475
+ G.use($e, { bootstrap: !0 });
476
+ G.mount("#konnectio-gift-card-app");