@konnectio/core 4.0.28 → 4.0.30

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