@konnectio/core 4.0.17 → 4.0.18

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 (80) hide show
  1. package/dist/{ActionField-82ef422e.js → ActionField-25ef64cf.js} +20 -21
  2. package/dist/ActionField-25ef64cf.js.br +0 -0
  3. package/dist/ActionField-86389dfe.cjs +1 -0
  4. package/dist/AvailabilitySkeleton-3bb4b572.js +200 -0
  5. package/dist/AvailabilitySkeleton-3bb4b572.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-a72464a1.cjs +1 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js → DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js} +370 -371
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-d1a56eb0.js.br +0 -0
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-f99302dc.cjs +5 -0
  10. package/dist/{Field-7137ef85.js → Field-03e6b847.js} +11 -12
  11. package/dist/Field-03e6b847.js.br +0 -0
  12. package/dist/Field-a7c1ed62.cjs +1 -0
  13. package/dist/{NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js → NumberField.vue_vue_type_style_index_0_lang-94fa5765.js} +16 -16
  14. package/dist/NumberField.vue_vue_type_style_index_0_lang-94fa5765.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_style_index_0_lang-a779a531.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-03794d02.cjs +855 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js +28643 -0
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-51defa22.js.br +0 -0
  19. package/dist/ThankYou-3ab29b45.cjs +54 -0
  20. package/dist/{ThankYou-433bd249.js → ThankYou-f4945877.js} +428 -428
  21. package/dist/ThankYou-f4945877.js.br +0 -0
  22. package/dist/{_-048b5217.js → _-0787261e.js} +14 -15
  23. package/dist/_-0787261e.js.br +0 -0
  24. package/dist/_-917dcead.cjs +1 -0
  25. package/dist/_commonjsHelpers-6763f629.cjs +1 -0
  26. package/dist/_commonjsHelpers-aeeeeb92.js +30 -0
  27. package/dist/applyGiftCard-ba1da572.cjs +1 -0
  28. package/dist/{applyGiftCard-45cf782e.js → applyGiftCard-f2282bd2.js} +4 -5
  29. package/dist/applyGiftCard-f2282bd2.js.br +0 -0
  30. package/dist/availability.cjs +2 -2
  31. package/dist/availability.js +30 -31
  32. package/dist/availability.js.br +0 -0
  33. package/dist/event-07ba3a0e.cjs +1 -0
  34. package/dist/{event-3ef40faf.js → event-208206cf.js} +29 -30
  35. package/dist/event-208206cf.js.br +0 -0
  36. package/dist/event.cjs +1 -1
  37. package/dist/event.js +214 -215
  38. package/dist/event.js.br +0 -0
  39. package/dist/gift-card-validation.cjs +1 -1
  40. package/dist/gift-card-validation.js +46 -47
  41. package/dist/gift-card-validation.js.br +0 -0
  42. package/dist/gift-card.cjs +1 -1
  43. package/dist/gift-card.js +187 -188
  44. package/dist/gift-card.js.br +0 -0
  45. package/dist/hotel.cjs +5 -5
  46. package/dist/hotel.js +1202 -1192
  47. package/dist/hotel.js.br +0 -0
  48. package/dist/{index-36d9ed45.js → index-5e1ea6f0.js} +14 -16
  49. package/dist/index-5e1ea6f0.js.br +0 -0
  50. package/dist/index-7ef3288b.cjs +1 -0
  51. package/dist/polyfill.cjs +2 -2
  52. package/dist/polyfill.js +2 -2
  53. package/dist/polyfill.js.br +0 -0
  54. package/package.json +1 -1
  55. package/dist/ActionField-3184bffd.cjs +0 -1
  56. package/dist/ActionField-82ef422e.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-528d40ef.cjs +0 -1
  58. package/dist/AvailabilitySkeleton-ec092c09.js +0 -203
  59. package/dist/AvailabilitySkeleton-ec092c09.js.br +0 -0
  60. package/dist/DateField.vue_vue_type_style_index_0_lang-5692c5b2.cjs +0 -5
  61. package/dist/DateField.vue_vue_type_style_index_0_lang-d5a1efd5.js.br +0 -0
  62. package/dist/Field-7137ef85.js.br +0 -0
  63. package/dist/Field-b1690485.cjs +0 -1
  64. package/dist/NumberField.vue_vue_type_style_index_0_lang-8c28c1dd.cjs +0 -1
  65. package/dist/NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js.br +0 -0
  66. package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js +0 -19741
  67. package/dist/SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js.br +0 -0
  68. package/dist/SelectField.vue_vue_type_style_index_0_lang-c0715ca3.cjs +0 -850
  69. package/dist/ThankYou-433bd249.js.br +0 -0
  70. package/dist/ThankYou-817b93d0.cjs +0 -54
  71. package/dist/_-048b5217.js.br +0 -0
  72. package/dist/_-120d9090.cjs +0 -1
  73. package/dist/_commonjsHelpers-10dfc225.js +0 -8
  74. package/dist/_commonjsHelpers-87b0abe8.cjs +0 -1
  75. package/dist/applyGiftCard-45cf782e.js.br +0 -0
  76. package/dist/applyGiftCard-f1b620cc.cjs +0 -1
  77. package/dist/event-3ef40faf.js.br +0 -0
  78. package/dist/event-d531df9d.cjs +0 -1
  79. package/dist/index-36d9ed45.js.br +0 -0
  80. package/dist/index-8309eba2.cjs +0 -1
package/dist/gift-card.js CHANGED
@@ -1,70 +1,69 @@
1
- import { ref as b, computed as F, defineComponent as X, openBlock as d, createBlock as D, withCtx as H, createElementVNode as s, createElementBlock as g, createVNode as r, unref as e, createCommentVNode as k, normalizeClass as ne, watch as ue, onMounted as ce, resolveDirective as pe, Suspense as me, toDisplayString as Z, withDirectives as I, vShow as N, isRef as V, Fragment as fe, renderList as ve, createApp as ge } from "vue";
2
- import { d as he, u as ie, s as Q, a as re, G as z, b as Y, i as ee, S as J, c as _e, e as ye, y as be, f as se, n as ke, C as x, _ as de, h as Ce, T as j, o as Ve, L as ae, l as Fe, z as Pe, m as Se } from "./SelectField.vue_vue_type_style_index_0_lang-5e1192e9.js";
3
- import { a as ze, P as we, C as le, _ as Te, S as Ue, i as $e } from "./index-36d9ed45.js";
4
- import { u as Ee, E as Re } from "./_-048b5217.js";
5
- import "./NumberField.vue_vue_type_style_index_0_lang-eebde8cd.js";
6
- import { F as M } from "./Field-7137ef85.js";
7
- import "./_commonjsHelpers-10dfc225.js";
8
- const te = he("giftCard", () => {
9
- ie();
10
- const { pay: w } = Ee(), { bearerToken: l, metaData: o } = Q(re()), a = b(z.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(""), $ = b(1), q = b(!0), C = b(""), m = b({
1
+ import { d as ue, u as ne, s as Y, a as ie, r as b, ab as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ac as me, h as X, t as se, o as d, p as B, w as H, l as r, j as g, q as s, x as e, V as D, k, n as re, Q as fe, _ as de, a1 as ve, N as ge, ad as he, v as ee, ae as L, af as W, U as j, y as V, a2 as ye, a3 as _e, T as be, a4 as ae, C as ke, D as Ce, J as Ve, a8 as Fe, H as Pe, K as Se } from "./SelectField.vue_vue_type_style_index_0_lang-51defa22.js";
2
+ import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-5e1ea6f0.js";
3
+ import { u as qe, E as Re } from "./_-0787261e.js";
4
+ import "./NumberField.vue_vue_type_style_index_0_lang-94fa5765.js";
5
+ import { F as M } from "./Field-03e6b847.js";
6
+ import "./_commonjsHelpers-aeeeeb92.js";
7
+ const te = ue("giftCard", () => {
8
+ ne();
9
+ const { pay: z } = qe(), { bearerToken: t, metaData: o } = Y(ie()), a = b(w.InitialState), h = J("konnectio_name", "", void 0, { serializer: Q.string }), P = J("konnectio_email", "", void 0, { serializer: Q.string }), p = J("konnectio_phone", "", void 0, { serializer: Q.string }), v = b(""), U = b(1), I = b(!0), C = b(""), m = b({
11
10
  base64: "",
12
11
  type: "",
13
12
  name: ""
14
- }), S = b(void 0), n = b(0), u = b(!1), c = b(0), E = F(() => a.value === z.InitialState || a.value === z.WaitingForResponse), R = F(() => a.value === z.ReadyToPay), _ = F(() => a.value === z.PaymentSuccess), T = F(() => {
13
+ }), S = b(void 0), n = b(0), u = b(!1), c = b(0), q = F(() => a.value === w.InitialState || a.value === w.WaitingForResponse), R = F(() => a.value === w.ReadyToPay), y = F(() => a.value === w.PaymentSuccess), T = F(() => {
15
14
  const f = {
16
15
  1: {
17
- label: ee.t("giftCard.hotelType"),
16
+ label: Z.t("giftCard.hotelType"),
18
17
  data: []
19
18
  },
20
19
  2: {
21
- label: ee.t("giftCard.restaurantType"),
20
+ label: Z.t("giftCard.restaurantType"),
22
21
  data: []
23
22
  }
24
- }, t = o.value.places;
25
- return t && t.forEach((y) => {
26
- f[y.placeType].data.push(y);
23
+ }, l = o.value.places;
24
+ return l && l.forEach((_) => {
25
+ f[_.placeType].data.push(_);
27
26
  }), Object.fromEntries(
28
- Object.entries(f).filter(([, y]) => y.data.length > 0)
27
+ Object.entries(f).filter(([, _]) => _.data.length > 0)
29
28
  );
30
- }), A = F(() => c.value !== 0), U = F(() => {
29
+ }), x = F(() => c.value !== 0), $ = F(() => {
31
30
  let f;
32
- if (A.value)
31
+ if (x.value)
33
32
  f = T.value[c.value].data[0];
34
33
  else if (n.value !== 0) {
35
- const t = S.value, y = T.value[n.value].data;
36
- y.length === 1 ? f = y[0] : t !== void 0 && y.forEach((W) => {
37
- String(W.id) === String(t) && (f = W);
34
+ const l = S.value, _ = T.value[n.value].data;
35
+ _.length === 1 ? f = _[0] : l !== void 0 && _.forEach((N) => {
36
+ String(N.id) === String(l) && (f = N);
38
37
  });
39
38
  }
40
39
  return f;
41
- }), O = F(() => !(!h.value || !P.value || !(p.value.length >= 5) || !v.value || U.value === void 0)), K = F(() => !(a.value === z.InitialState && u.value)), B = F(() => !!(a.value === z.WaitingForResponse && u.value));
42
- async function G() {
43
- a.value = z.WaitingForResponse, u.value = !0, await _e.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create", {
40
+ }), K = F(() => !(!h.value || !P.value || !(p.value.length >= 5) || !v.value || $.value === void 0)), O = F(() => !(a.value === w.InitialState && u.value)), A = F(() => !!(a.value === w.WaitingForResponse && u.value));
41
+ async function E() {
42
+ a.value = w.WaitingForResponse, u.value = !0, await ce.post("https://stage.hotel-service.konnectio.dk/api/gift-card/create", {
44
43
  termsOfserviceURL: "https://freshbooking.dk",
45
44
  checkoutUrl: "https://freshbooking.dk",
46
45
  currencyID: o.value.currency.id,
47
- language: ye(),
46
+ language: pe(),
48
47
  amount: v.value,
49
- quantity: $.value,
48
+ quantity: U.value,
50
49
  freeText: C.value,
51
- showPrice: q.value,
50
+ showPrice: I.value,
52
51
  contactName: h.value,
53
52
  contactEmail: P.value,
54
53
  contactPhone: p.value,
55
- imageBase64: be(m.value.base64),
54
+ imageBase64: me(m.value.base64),
56
55
  imageName: m.value.name,
57
56
  imageFormat: m.value.type,
58
- placeType: U.value ? U.value.placeType : void 0,
59
- placeID: U.value ? U.value.id : void 0
57
+ placeType: $.value ? $.value.placeType : void 0,
58
+ placeID: $.value ? $.value.id : void 0
60
59
  }, {
61
60
  headers: {
62
- Authorization: l.value,
61
+ Authorization: t.value,
63
62
  Accept: "application/json",
64
- "Fresh-Booking-Ver": "4.0.17"
63
+ "Fresh-Booking-Ver": "4.0.18"
65
64
  }
66
65
  }).then((f) => {
67
- a.value = z.ReadyToPay, u.value = !1, w({
66
+ a.value = w.ReadyToPay, u.value = !1, z({
68
67
  callback: () => console.log("Callback!"),
69
68
  response: f.data
70
69
  });
@@ -80,23 +79,23 @@ const te = he("giftCard", () => {
80
79
  phone: p,
81
80
  value: v,
82
81
  remark: C,
83
- showValue: q,
84
- quantity: $,
82
+ showValue: I,
83
+ quantity: U,
85
84
  media: m,
86
85
  placeId: S,
87
86
  placeType: n,
88
- showFormPage: E,
87
+ showFormPage: q,
89
88
  showPaymentPage: R,
90
- showConfirmationPage: _,
89
+ showConfirmationPage: y,
91
90
  places: T,
92
- hasFilledForm: O,
93
- hasForcedPlaceType: A,
94
- isWaitingForResponse: B,
95
- isMetaDataAvailable: K,
96
- orderGiftCard: G,
91
+ hasFilledForm: K,
92
+ hasForcedPlaceType: x,
93
+ isWaitingForResponse: A,
94
+ isMetaDataAvailable: O,
95
+ orderGiftCard: E,
97
96
  initialize: i
98
97
  };
99
- }), Ge = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Me = { key: 0 }, De = { key: 1 }, xe = { key: 2 }, Ae = ["src"], Be = /* @__PURE__ */ X({
98
+ }), Ee = { class: "media-selector" }, Ge = ["accept"], Ie = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, Me = { key: 0 }, Be = { key: 1 }, De = { key: 2 }, xe = ["src"], Ae = /* @__PURE__ */ X({
100
99
  __name: "MediaSelector",
101
100
  props: {
102
101
  modelValue: {},
@@ -106,13 +105,13 @@ const te = he("giftCard", () => {
106
105
  required: { type: Boolean, default: !1 }
107
106
  },
108
107
  emits: ["update:modelValue"],
109
- setup(w, { emit: l }) {
110
- const o = l, a = w, { t: h } = se(), { display: P } = ie(), p = b(), v = F(() => a.modelValue.base64 !== "");
111
- function $(n) {
108
+ setup(z, { emit: t }) {
109
+ const o = t, a = z, { t: h } = se(), { display: P } = ne(), p = b(), v = F(() => a.modelValue.base64 !== "");
110
+ function U(n) {
112
111
  o("update:modelValue", n);
113
112
  }
114
- function q() {
115
- $({
113
+ function I() {
114
+ U({
116
115
  base64: "",
117
116
  name: "",
118
117
  type: ""
@@ -122,11 +121,11 @@ const te = he("giftCard", () => {
122
121
  p.value && p.value.click();
123
122
  }
124
123
  function m(n, u) {
125
- const [c, E] = [n.name, n.type], R = new FileReader();
126
- R.onload = function(_) {
127
- if (_.target) {
128
- const T = _.target.result;
129
- u({ base64: T, name: c, type: E });
124
+ const [c, q] = [n.name, n.type], R = new FileReader();
125
+ R.onload = function(y) {
126
+ if (y.target) {
127
+ const T = y.target.result;
128
+ u({ base64: T, name: c, type: q });
130
129
  } else
131
130
  P({
132
131
  message: h("imageUploadError"),
@@ -136,16 +135,16 @@ const te = he("giftCard", () => {
136
135
  }
137
136
  async function S() {
138
137
  let n;
139
- (n = p.value.files) instanceof FileList && m(n[0], $);
138
+ (n = p.value.files) instanceof FileList && m(n[0], U);
140
139
  }
141
- return (n, u) => (d(), D(ke, {
140
+ return (n, u) => (d(), B(fe, {
142
141
  label: n.label,
143
142
  required: n.required,
144
143
  type: "media"
145
144
  }, {
146
145
  default: H(() => [
147
- s("div", Ge, [
148
- s("input", {
146
+ r("div", Ee, [
147
+ r("input", {
149
148
  ref_key: "fileInput",
150
149
  ref: p,
151
150
  type: "file",
@@ -153,11 +152,11 @@ const te = he("giftCard", () => {
153
152
  accept: n.validation,
154
153
  single: "",
155
154
  onChange: u[0] || (u[0] = (c) => S())
156
- }, null, 40, Le),
157
- s("div", qe, [
158
- s("ul", Ie, [
155
+ }, null, 40, Ge),
156
+ r("div", Ie, [
157
+ r("ul", Le, [
159
158
  v.value ? k("", !0) : (d(), g("li", Me, [
160
- r(x, {
159
+ s(D, {
161
160
  label: e(h)("uploadFile"),
162
161
  type: "button",
163
162
  icon: "upload",
@@ -165,8 +164,8 @@ const te = he("giftCard", () => {
165
164
  onClickEvent: u[1] || (u[1] = (c) => C())
166
165
  }, null, 8, ["label", "icon-color"])
167
166
  ])),
168
- v.value ? (d(), g("li", De, [
169
- r(x, {
167
+ v.value ? (d(), g("li", Be, [
168
+ s(D, {
170
169
  label: e(h)("replaceFile"),
171
170
  type: "button",
172
171
  icon: "repeat-alt",
@@ -174,18 +173,18 @@ const te = he("giftCard", () => {
174
173
  onClickEvent: u[2] || (u[2] = (c) => C())
175
174
  }, null, 8, ["label", "icon-color"])
176
175
  ])) : k("", !0),
177
- v.value ? (d(), g("li", xe, [
178
- r(x, {
176
+ v.value ? (d(), g("li", De, [
177
+ s(D, {
179
178
  label: e(h)("removeFile"),
180
179
  type: "button",
181
180
  icon: "trash-alt",
182
181
  "icon-color": n.iconColor,
183
- onClickEvent: u[3] || (u[3] = (c) => q())
182
+ onClickEvent: u[3] || (u[3] = (c) => I())
184
183
  }, null, 8, ["label", "icon-color"])
185
184
  ])) : k("", !0)
186
185
  ]),
187
- s("div", {
188
- class: ne([
186
+ r("div", {
187
+ class: re([
189
188
  "media-selector-previewer",
190
189
  { opened: v.value }
191
190
  ])
@@ -193,7 +192,7 @@ const te = he("giftCard", () => {
193
192
  n.modelValue ? (d(), g("img", {
194
193
  key: 0,
195
194
  src: n.modelValue.base64
196
- }, null, 8, Ae)) : k("", !0)
195
+ }, null, 8, xe)) : k("", !0)
197
196
  ], 2)
198
197
  ])
199
198
  ])
@@ -202,9 +201,9 @@ const te = he("giftCard", () => {
202
201
  }, 8, ["label", "required"]));
203
202
  }
204
203
  });
205
- function oe(w) {
206
- const l = w;
207
- l.__i18n = l.__i18n || [], l.__i18n.push({
204
+ function oe(z) {
205
+ const t = z;
206
+ t.__i18n = t.__i18n || [], t.__i18n.push({
208
207
  locale: "",
209
208
  resource: {
210
209
  da: {
@@ -246,30 +245,30 @@ function oe(w) {
246
245
  }
247
246
  });
248
247
  }
249
- typeof oe == "function" && oe(Be);
250
- const We = { class: "gift-card-skeleton" }, Ne = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ X({
248
+ typeof oe == "function" && oe(Ae);
249
+ const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ X({
251
250
  __name: "GiftCardSkeleton",
252
- setup(w) {
253
- return (l, o) => (d(), g("div", We, [
254
- s("div", Ne, [
255
- r(M),
256
- r(M),
257
- r(M),
258
- r(M),
259
- r(M, { "is-text-area": "" }),
260
- r(Re, { height: "44px" })
251
+ setup(z) {
252
+ return (t, o) => (d(), g("div", Ne, [
253
+ r("div", We, [
254
+ s(M),
255
+ s(M),
256
+ s(M),
257
+ s(M),
258
+ s(M, { "is-text-area": "" }),
259
+ s(Re, { height: "44px" })
261
260
  ])
262
261
  ]));
263
262
  }
264
263
  });
265
- const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
264
+ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
266
265
  key: 0,
267
266
  id: "fresh-booking-gift-card-wrapper"
268
- }, 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 = {
267
+ }, Oe = { id: "fresh-booking-gift-card-title" }, Je = { id: "fresh-booking-gift-card-content" }, Qe = { id: "fresh-booking-gift-card-payment" }, Ye = ["innerHTML"], Xe = { key: 0 }, Ze = {
269
268
  key: 0,
270
269
  id: "fresh-booking-select-place-type"
271
270
  }, ea = {
272
- class: /* @__PURE__ */ ne(["fresh-booking-label", "required"])
271
+ class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
273
272
  }, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
274
273
  key: 0,
275
274
  id: "fresh-booking-gift-card-order"
@@ -280,7 +279,7 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
280
279
  key: 2,
281
280
  id: "fresh-booking-gift-card-order-minimal",
282
281
  "sticky-side": "bottom"
283
- }, ra = { id: "fresh-booking-gift-card-recaptcha" }, sa = /* @__PURE__ */ X({
282
+ }, sa = { id: "fresh-booking-gift-card-recaptcha" }, ra = /* @__PURE__ */ X({
284
283
  name: "GiftCardLayout",
285
284
  __name: "GiftCard",
286
285
  props: {
@@ -289,215 +288,215 @@ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Oe = {
289
288
  placeType: {},
290
289
  styling: {}
291
290
  },
292
- setup(w) {
293
- const { t: l } = se(), {
291
+ setup(z) {
292
+ const { t } = se(), {
294
293
  name: o,
295
294
  email: a,
296
295
  phone: h,
297
296
  value: P,
298
297
  remark: p,
299
298
  showValue: v,
300
- quantity: $,
301
- media: q,
299
+ quantity: U,
300
+ media: I,
302
301
  placeId: C,
303
302
  placeType: m,
304
303
  showFormPage: S,
305
304
  showPaymentPage: n,
306
305
  showConfirmationPage: u,
307
306
  places: c,
308
- hasFilledForm: E,
307
+ hasFilledForm: q,
309
308
  hasForcedPlaceType: R,
310
- isWaitingForResponse: _,
309
+ isWaitingForResponse: y,
311
310
  isMetaDataAvailable: T
312
- } = Q(te()), { initialize: A, orderGiftCard: U } = te(), { isRecaptchaEnabled: O, currency: K } = Q(re());
313
- async function B() {
314
- await U();
311
+ } = Y(te()), { initialize: x, orderGiftCard: $ } = te(), { isRecaptchaEnabled: K, currency: O } = Y(ie());
312
+ async function A() {
313
+ await $();
315
314
  }
316
- return ue(m, () => {
315
+ return ve(m, () => {
317
316
  C.value = void 0;
318
- }), ce(() => {
319
- A();
320
- }), (G, i) => {
321
- const f = pe("sticky");
322
- return d(), D(me, null, {
317
+ }), ge(() => {
318
+ x();
319
+ }), (E, i) => {
320
+ const f = he("sticky");
321
+ return d(), B(Ce, null, {
323
322
  default: H(() => [
324
- r(Ce, {
323
+ s(ke, {
325
324
  id: "fresh-booking-gift-card-module",
326
325
  type: "gift-card",
327
- "access-token": G.accessToken,
328
- "data-layout": G.layout,
329
- styling: G.styling,
326
+ "access-token": E.accessToken,
327
+ "data-layout": E.layout,
328
+ styling: E.styling,
330
329
  "sticky-container": ""
331
330
  }, {
332
331
  default: H(() => [
333
- e(T) ? (d(), g("div", Oe, [
334
- s("h4", Ke, [
335
- s("span", null, Z(e(l)("giftCard.title")), 1)
332
+ e(T) ? (d(), g("div", Ke, [
333
+ r("h4", Oe, [
334
+ r("span", null, ee(e(t)("giftCard.title")), 1)
336
335
  ]),
337
- s("div", Ye, [
338
- I(s("div", Je, [
339
- r(ze)
336
+ r("div", Je, [
337
+ L(r("div", Qe, [
338
+ s(we)
340
339
  ], 512), [
341
- [N, e(n)]
340
+ [W, e(n)]
342
341
  ]),
343
- I(s("div", null, [
344
- s("p", {
342
+ L(r("div", null, [
343
+ r("p", {
345
344
  id: "fresh-booking-gift-card-description",
346
- innerHTML: e(l)("giftCard.description")
347
- }, null, 8, Qe),
348
- s("form", null, [
349
- r(j, {
345
+ innerHTML: e(t)("giftCard.description")
346
+ }, null, 8, Ye),
347
+ r("form", null, [
348
+ s(j, {
350
349
  modelValue: e(o),
351
- "onUpdate:modelValue": i[0] || (i[0] = (t) => V(o) ? o.value = t : null),
350
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => V(o) ? o.value = l : null),
352
351
  type: "text",
353
352
  name: "name",
354
353
  autocomplete: "name",
355
- label: e(l)("giftCard.name"),
354
+ label: e(t)("giftCard.name"),
356
355
  icon: "user-alt",
357
- placeholder: e(l)("giftCard.namePlaceholder"),
356
+ placeholder: e(t)("giftCard.namePlaceholder"),
358
357
  required: ""
359
358
  }, null, 8, ["modelValue", "label", "placeholder"]),
360
- r(j, {
359
+ s(j, {
361
360
  modelValue: e(a),
362
- "onUpdate:modelValue": i[1] || (i[1] = (t) => V(a) ? a.value = t : null),
361
+ "onUpdate:modelValue": i[1] || (i[1] = (l) => V(a) ? a.value = l : null),
363
362
  type: "email",
364
363
  name: "email",
365
364
  autocomplete: "email",
366
- label: e(l)("giftCard.email"),
365
+ label: e(t)("giftCard.email"),
367
366
  icon: "at",
368
- placeholder: e(l)("giftCard.emailPlaceholder"),
367
+ placeholder: e(t)("giftCard.emailPlaceholder"),
369
368
  required: ""
370
369
  }, null, 8, ["modelValue", "label", "placeholder"]),
371
- r(we, {
370
+ s(ze, {
372
371
  modelValue: e(h),
373
- "onUpdate:modelValue": i[2] || (i[2] = (t) => V(h) ? h.value = t : null),
372
+ "onUpdate:modelValue": i[2] || (i[2] = (l) => V(h) ? h.value = l : null),
374
373
  icon: "phone-office",
375
- label: e(l)("giftCard.phone"),
376
- placeholder: e(l)("giftCard.phonePlaceholder"),
374
+ label: e(t)("giftCard.phone"),
375
+ placeholder: e(t)("giftCard.phonePlaceholder"),
377
376
  required: ""
378
377
  }, null, 8, ["modelValue", "label", "placeholder"]),
379
378
  e(R) ? k("", !0) : (d(), g("div", Xe, [
380
379
  e(c) ? (d(), g("div", Ze, [
381
- s("label", ea, [
382
- s("span", null, Z(e(l)("giftCard.selectType")), 1)
380
+ r("label", ea, [
381
+ r("span", null, ee(e(t)("giftCard.selectType")), 1)
383
382
  ]),
384
- s("div", aa, [
385
- s("ul", null, [
386
- (d(!0), g(fe, null, ve(e(c), (t, y) => (d(), g("li", { key: y }, [
387
- r(le, {
383
+ r("div", aa, [
384
+ r("ul", null, [
385
+ (d(!0), g(ye, null, _e(e(c), (l, _) => (d(), g("li", { key: _ }, [
386
+ s(le, {
388
387
  modelValue: e(m),
389
- "onUpdate:modelValue": i[3] || (i[3] = (W) => V(m) ? m.value = W : null),
388
+ "onUpdate:modelValue": i[3] || (i[3] = (N) => V(m) ? m.value = N : null),
390
389
  type: "radio",
391
390
  name: "placeType",
392
- val: y,
393
- label: t.label
391
+ val: _,
392
+ label: l.label
394
393
  }, null, 8, ["modelValue", "val", "label"])
395
394
  ]))), 128))
396
395
  ]),
397
- e(c)[e(m)] && e(c)[e(m)].data.length > 1 ? (d(), D(Ve, {
396
+ e(c)[e(m)] && e(c)[e(m)].data.length > 1 ? (d(), B(be, {
398
397
  key: 0,
399
398
  modelValue: e(C),
400
- "onUpdate:modelValue": i[4] || (i[4] = (t) => V(C) ? C.value = t : null),
401
- placeholder: e(l)("giftCard.selectPlacePlaceholder"),
399
+ "onUpdate:modelValue": i[4] || (i[4] = (l) => V(C) ? C.value = l : null),
400
+ placeholder: e(t)("giftCard.selectPlacePlaceholder"),
402
401
  options: e(c)[e(m)].data,
403
402
  labelKey: "name",
404
403
  valueKey: "id",
405
404
  required: ""
406
405
  }, null, 8, ["modelValue", "placeholder", "options"])) : k("", !0)
407
406
  ])
408
- ])) : (d(), D(ae, { key: 1 }))
407
+ ])) : (d(), B(ae, { key: 1 }))
409
408
  ])),
410
- r(j, {
409
+ s(j, {
411
410
  modelValue: e(P),
412
- "onUpdate:modelValue": i[5] || (i[5] = (t) => V(P) ? P.value = t : null),
411
+ "onUpdate:modelValue": i[5] || (i[5] = (l) => V(P) ? P.value = l : null),
413
412
  type: "number",
414
413
  name: "value",
415
- label: e(l)("giftCard.value"),
414
+ label: e(t)("giftCard.value"),
416
415
  icon: "money-bill",
417
- placeholder: e(l)("giftCard.valuePlaceholder"),
418
- suffix: e(K),
416
+ placeholder: e(t)("giftCard.valuePlaceholder"),
417
+ suffix: e(O),
419
418
  required: ""
420
419
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
421
- r(le, {
420
+ s(le, {
422
421
  modelValue: e(v),
423
- "onUpdate:modelValue": i[6] || (i[6] = (t) => V(v) ? v.value = t : null),
422
+ "onUpdate:modelValue": i[6] || (i[6] = (l) => V(v) ? v.value = l : null),
424
423
  type: "checkbox",
425
424
  name: "showValue",
426
- label: e(l)("giftCard.showValue"),
425
+ label: e(t)("giftCard.showValue"),
427
426
  checked: e(v)
428
427
  }, null, 8, ["modelValue", "label", "checked"]),
429
428
  k("", !0),
430
429
  k("", !0)
431
430
  ])
432
431
  ], 512), [
433
- [N, e(S)]
432
+ [W, e(S)]
434
433
  ]),
435
- I(s("div", null, [
436
- s("div", {
437
- innerHTML: e(l)("giftCard.thankYou")
434
+ L(r("div", null, [
435
+ r("div", {
436
+ innerHTML: e(t)("giftCard.thankYou")
438
437
  }, null, 8, la)
439
438
  ], 512), [
440
- [N, e(u)]
439
+ [W, e(u)]
441
440
  ])
442
441
  ]),
443
- G.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
444
- s("div", oa, [
445
- r(x, {
446
- label: e(l)("giftCard.orderGiftCard"),
442
+ E.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
443
+ r("div", oa, [
444
+ s(D, {
445
+ label: e(t)("giftCard.orderGiftCard"),
447
446
  "full-width": !0,
448
- disabled: !e(E),
449
- "is-loading": e(_),
450
- "onUpdate:isLoading": i[9] || (i[9] = (t) => V(_) ? _.value = t : null),
451
- onClickEvent: B
447
+ disabled: !e(q),
448
+ "is-loading": e(y),
449
+ "onUpdate:isLoading": i[9] || (i[9] = (l) => V(y) ? y.value = l : null),
450
+ onClickEvent: A
452
451
  }, null, 8, ["label", "disabled", "is-loading"])
453
452
  ])
454
453
  ])) : k("", !0),
455
454
  e(S) ? (d(), g("div", na, [
456
- r(j, {
455
+ s(j, {
457
456
  modelValue: e(p),
458
- "onUpdate:modelValue": i[10] || (i[10] = (t) => V(p) ? p.value = t : null),
457
+ "onUpdate:modelValue": i[10] || (i[10] = (l) => V(p) ? p.value = l : null),
459
458
  type: "textarea",
460
459
  name: "remark",
461
- label: e(l)("giftCard.remark"),
460
+ label: e(t)("giftCard.remark"),
462
461
  icon: "info-circle",
463
- placeholder: e(l)("giftCard.remarkPlaceholder")
462
+ placeholder: e(t)("giftCard.remarkPlaceholder")
464
463
  }, null, 8, ["modelValue", "label", "placeholder"])
465
464
  ])) : k("", !0),
466
- e(S) ? I((d(), g("div", ia, [
467
- r(x, {
468
- label: e(l)("giftCard.orderGiftCard"),
465
+ e(S) ? L((d(), g("div", ia, [
466
+ s(D, {
467
+ label: e(t)("giftCard.orderGiftCard"),
469
468
  "full-width": !0,
470
- disabled: !e(E),
469
+ disabled: !e(q),
471
470
  "data-test": "orderGiftCard",
472
- "is-loading": e(_),
473
- "onUpdate:isLoading": i[11] || (i[11] = (t) => V(_) ? _.value = t : null),
474
- onClickEvent: B
471
+ "is-loading": e(y),
472
+ "onUpdate:isLoading": i[11] || (i[11] = (l) => V(y) ? y.value = l : null),
473
+ onClickEvent: A
475
474
  }, null, 8, ["label", "disabled", "is-loading"]),
476
- I(s("div", ra, [
477
- r(Te)
475
+ L(r("div", sa, [
476
+ s(Te)
478
477
  ], 512), [
479
- [N, e(O)]
478
+ [W, e(K)]
480
479
  ])
481
480
  ])), [
482
481
  [f]
483
482
  ]) : k("", !0)
484
- ])) : (d(), D(ae, { key: 1 }))
483
+ ])) : (d(), B(ae, { key: 1 }))
485
484
  ]),
486
485
  _: 1
487
486
  }, 8, ["access-token", "data-layout", "styling"])
488
487
  ]),
489
488
  fallback: H(() => [
490
- r(He)
489
+ s(He)
491
490
  ]),
492
491
  _: 1
493
492
  });
494
493
  };
495
494
  }
496
495
  });
497
- const da = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Fe(), ca = Pe(), L = ge({ components: { GiftCard: da } });
498
- L.use(ua);
499
- L.use(Se);
500
- L.use(ca);
501
- L.use(Ue);
502
- L.use($e, { bootstrap: !1 });
503
- L.mount("#konnectio-gift-card-app");
496
+ const da = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ve(), ca = Fe(), G = Pe({ components: { GiftCard: da } });
497
+ G.use(ua);
498
+ G.use(Se);
499
+ G.use(ca);
500
+ G.use($e);
501
+ G.use(Ue, { bootstrap: !1 });
502
+ G.mount("#konnectio-gift-card-app");
Binary file