@konnectio/core 4.0.11 → 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 (70) hide show
  1. package/dist/ActionField-23ce1b2a.cjs +1 -0
  2. package/dist/{ActionField-d1266f8b.js → ActionField-311942d2.js} +21 -21
  3. package/dist/ActionField-311942d2.js.br +0 -0
  4. package/dist/{AvailabilitySkeleton-0e6d048b.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-31a9e5dc.cjs → DateField.vue_vue_type_style_index_0_lang-47e679d1.cjs} +3 -3
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-3f5993f7.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-028d9987.cjs → Field-dcffacf2.cjs} +1 -1
  11. package/dist/{Field-ea77905a.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-d3b3206f.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-d1f9b48d.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-4e7defc6.js → TextField-cd93b966.js} +3241 -3241
  21. package/dist/TextField-cd93b966.js.br +0 -0
  22. package/dist/{ThankYou-2c1ee36b.cjs → ThankYou-3d74a6dc.cjs} +2 -2
  23. package/dist/{ThankYou-6fc9044f.js → ThankYou-c1878478.js} +48 -47
  24. package/dist/ThankYou-c1878478.js.br +0 -0
  25. package/dist/{_-82677476.cjs → _-0895679a.cjs} +1 -1
  26. package/dist/{_-f5a3364b.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-46a84617.js → event-60e076f2.js} +36 -36
  32. package/dist/event-60e076f2.js.br +0 -0
  33. package/dist/{event-8738e24d.cjs → event-8e90a6e3.cjs} +1 -1
  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-a3de1ca3.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-8a007a6c.cjs +0 -1
  55. package/dist/ActionField-d1266f8b.js.br +0 -0
  56. package/dist/AvailabilitySkeleton-0e6d048b.js.br +0 -0
  57. package/dist/AvailabilitySkeleton-3ba8c412.cjs +0 -1
  58. package/dist/DateField.vue_vue_type_style_index_0_lang-3f5993f7.js.br +0 -0
  59. package/dist/Field-ea77905a.js.br +0 -0
  60. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js.br +0 -0
  61. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d756efc3.cjs +0 -1
  62. package/dist/SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs +0 -806
  63. package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js.br +0 -0
  64. package/dist/TextField-4e7defc6.js.br +0 -0
  65. package/dist/TextField-641e6fd1.cjs +0 -54
  66. package/dist/ThankYou-6fc9044f.js.br +0 -0
  67. package/dist/_-f5a3364b.js.br +0 -0
  68. package/dist/event-46a84617.js.br +0 -0
  69. package/dist/index-a3de1ca3.js.br +0 -0
  70. package/dist/index-e81b12be.cjs +0 -1
package/dist/gift-card.js CHANGED
@@ -1,17 +1,17 @@
1
- import { d as ue, u as ne, s as Q, a as ie, r as b, a8 as w, b as J, c as F, i as Z, S as Y, e as ce, f as pe, a9 as me, h as X, y as re, k as d, l as L, w as j, x as s, q as f, m as r, n as e, C as x, t as k, v as se, I as fe, _ as de, $ as ve, o as ge, aa as he, z as ee, ab as I, ac as W, A as V, a0 as ye, a1 as _e, a2 as ae, H as be, J as ke, N as Ce, a6 as Ve, M as Fe, P as Pe } from "./SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js";
2
- import { a as Se, P as we, C as le, _ as ze, S as Te, i as $e } from "./index-a3de1ca3.js";
3
- import { u as Ue, E as qe } from "./_-f5a3364b.js";
4
- import { T as H, _ as Re } from "./TextField-4e7defc6.js";
5
- import { F as M } from "./Field-ea77905a.js";
1
+ import { d as ue, u as ne, s as Q, a as ie, r as b, a8 as w, b as J, c as F, i as Z, S as Y, e as ce, f as pe, a9 as me, h as X, y as se, k as d, l as L, w as j, x as r, q as g, m as s, n as e, C as x, t as k, v as re, I as fe, _ as de, $ as ve, o as ge, aa as he, z as ee, ab as I, ac as W, A as V, a0 as ye, a1 as _e, a2 as ae, H as be, J as ke, N as Ce, a6 as Ve, M as Fe, P as Pe } from "./SelectField.vue_vue_type_style_index_0_lang-e2f4edc3.js";
2
+ import { a as Se, P as we, C as le, _ as ze, S as Te, i as $e } from "./index-b5d8f4fc.js";
3
+ import { u as Ue, E as qe } from "./_-8772cf9a.js";
4
+ import { T as H, _ as Re } from "./TextField-cd93b966.js";
5
+ import { F as M } from "./Field-ff599d13.js";
6
6
  import "./_commonjsHelpers-c5d32002.js";
7
7
  const te = ue("giftCard", () => {
8
8
  ne();
9
- const { pay: z } = Ue(), { bearerToken: t, metaData: o } = Q(ie()), a = b(w.InitialState), P = J("freshBookingName", "", void 0, { serializer: Y.string }), c = J("freshBookingEmail", "", void 0, { serializer: Y.string }), v = J("freshBookingPhone", "", void 0, { serializer: Y.string }), h = b(""), B = b(1), U = b(!0), S = b(""), p = b({
9
+ const { pay: z } = Ue(), { bearerToken: t, metaData: o } = Q(ie()), a = b(w.InitialState), h = J("freshBookingName", "", void 0, { serializer: Y.string }), P = J("freshBookingEmail", "", void 0, { serializer: Y.string }), p = J("freshBookingPhone", "", void 0, { serializer: Y.string }), v = b(""), U = b(1), G = b(!0), C = b(""), m = b({
10
10
  base64: "",
11
11
  type: "",
12
12
  name: ""
13
- }), n = b(void 0), u = b(0), g = b(!1), y = b(0), T = F(() => a.value === w.InitialState || a.value === w.WaitingForResponse), q = F(() => a.value === w.ReadyToPay), C = F(() => a.value === w.PaymentSuccess), G = F(() => {
14
- const m = {
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(() => {
14
+ const f = {
15
15
  1: {
16
16
  label: Z.t("giftCard.hotelType"),
17
17
  data: []
@@ -22,77 +22,77 @@ const te = ue("giftCard", () => {
22
22
  }
23
23
  }, l = o.value.places;
24
24
  return l && l.forEach((_) => {
25
- m[_.placeType].data.push(_);
25
+ f[_.placeType].data.push(_);
26
26
  }), Object.fromEntries(
27
- Object.entries(m).filter(([, _]) => _.data.length > 0)
27
+ Object.entries(f).filter(([, _]) => _.data.length > 0)
28
28
  );
29
- }), D = F(() => y.value !== 0), $ = F(() => {
30
- let m;
29
+ }), D = F(() => c.value !== 0), $ = F(() => {
30
+ let f;
31
31
  if (D.value)
32
- m = G.value[y.value].data[0];
33
- else if (u.value !== 0) {
34
- const l = n.value, _ = G.value[u.value].data;
35
- _.length === 1 ? m = _[0] : l !== void 0 && _.forEach((N) => {
36
- String(N.id) === String(l) && (m = N);
32
+ f = T.value[c.value].data[0];
33
+ else if (n.value !== 0) {
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);
37
37
  });
38
38
  }
39
- return m;
40
- }), O = F(() => !(!P.value || !c.value || !(v.value.length >= 5) || !h.value || $.value === void 0)), K = F(() => !(a.value === w.InitialState && g.value)), A = F(() => !!(a.value === w.WaitingForResponse && g.value));
41
- async function R() {
42
- a.value = w.WaitingForResponse, g.value = !0, await ce.post("https://stage.hotel_service.konnectio.dk/api/gift-card/create", {
39
+ return f;
40
+ }), 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));
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", {
43
43
  termsOfserviceURL: "https://freshbooking.dk",
44
44
  checkoutUrl: "https://freshbooking.dk",
45
45
  currencyID: o.value.currency.id,
46
46
  language: pe(),
47
- amount: h.value,
48
- quantity: B.value,
49
- freeText: S.value,
50
- showPrice: U.value,
51
- contactName: P.value,
52
- contactEmail: c.value,
53
- contactPhone: v.value,
54
- imageBase64: me(p.value.base64),
55
- imageName: p.value.name,
56
- imageFormat: p.value.type,
47
+ amount: v.value,
48
+ quantity: U.value,
49
+ freeText: C.value,
50
+ showPrice: G.value,
51
+ contactName: h.value,
52
+ contactEmail: P.value,
53
+ contactPhone: p.value,
54
+ imageBase64: me(m.value.base64),
55
+ imageName: m.value.name,
56
+ imageFormat: m.value.type,
57
57
  placeType: $.value ? $.value.placeType : void 0,
58
58
  placeID: $.value ? $.value.id : void 0
59
59
  }, {
60
60
  headers: {
61
61
  Authorization: t.value,
62
62
  Accept: "application/json",
63
- "Fresh-Booking-Ver": "4.0.11"
63
+ "Fresh-Booking-Ver": "4.0.12"
64
64
  }
65
- }).then((m) => {
66
- a.value = w.ReadyToPay, g.value = !1, z({
65
+ }).then((f) => {
66
+ a.value = w.ReadyToPay, u.value = !1, z({
67
67
  callback: () => console.log("Callback!"),
68
- response: m.data
68
+ response: f.data
69
69
  });
70
70
  });
71
71
  }
72
- function i(m) {
73
- m && (y.value = m);
72
+ function i(f) {
73
+ f && (c.value = f);
74
74
  }
75
75
  return {
76
76
  moduleState: a,
77
- name: P,
78
- email: c,
79
- phone: v,
80
- value: h,
81
- remark: S,
82
- showValue: U,
83
- quantity: B,
84
- media: p,
85
- placeId: n,
86
- placeType: u,
87
- showFormPage: T,
88
- showPaymentPage: q,
89
- showConfirmationPage: C,
90
- places: G,
77
+ name: h,
78
+ email: P,
79
+ phone: p,
80
+ value: v,
81
+ remark: C,
82
+ showValue: G,
83
+ quantity: U,
84
+ media: m,
85
+ placeId: S,
86
+ placeType: n,
87
+ showFormPage: q,
88
+ showPaymentPage: R,
89
+ showConfirmationPage: y,
90
+ places: T,
91
91
  hasFilledForm: O,
92
92
  hasForcedPlaceType: D,
93
93
  isWaitingForResponse: A,
94
94
  isMetaDataAvailable: K,
95
- orderGiftCard: R,
95
+ orderGiftCard: E,
96
96
  initialize: i
97
97
  };
98
98
  }), Ee = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Me = { key: 0 }, Le = { key: 1 }, xe = { key: 2 }, De = ["src"], Ae = /* @__PURE__ */ X({
@@ -106,36 +106,36 @@ const te = ue("giftCard", () => {
106
106
  },
107
107
  emits: ["update:modelValue"],
108
108
  setup(z, { emit: t }) {
109
- const o = z, { t: a } = re(), { display: P } = ne(), c = b(), v = F(() => o.modelValue.base64 !== "");
110
- function h(n) {
111
- t("update:modelValue", n);
109
+ const o = t, a = z, { t: h } = se(), { display: P } = ne(), p = b(), v = F(() => a.modelValue.base64 !== "");
110
+ function U(n) {
111
+ o("update:modelValue", n);
112
112
  }
113
- function B() {
114
- h({
113
+ function G() {
114
+ U({
115
115
  base64: "",
116
116
  name: "",
117
117
  type: ""
118
- }), c.value && (c.value.value = "");
118
+ }), p.value && (p.value.value = "");
119
119
  }
120
- function U() {
121
- c.value && c.value.click();
120
+ function C() {
121
+ p.value && p.value.click();
122
122
  }
123
- function S(n, u) {
124
- const [g, y] = [n.name, n.type], T = new FileReader();
125
- T.onload = function(q) {
126
- if (q.target) {
127
- const C = q.target.result;
128
- u({ base64: C, name: g, type: y });
123
+ function m(n, u) {
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 });
129
129
  } else
130
130
  P({
131
- message: a("imageUploadError"),
131
+ message: h("imageUploadError"),
132
132
  type: "error"
133
133
  });
134
- }, T.readAsDataURL(n);
134
+ }, R.readAsDataURL(n);
135
135
  }
136
- async function p() {
136
+ async function S() {
137
137
  let n;
138
- (n = c.value.files) instanceof FileList && S(n[0], h);
138
+ (n = p.value.files) instanceof FileList && m(n[0], U);
139
139
  }
140
140
  return (n, u) => (d(), L(fe, {
141
141
  label: n.label,
@@ -143,53 +143,53 @@ const te = ue("giftCard", () => {
143
143
  type: "media"
144
144
  }, {
145
145
  default: j(() => [
146
- s("div", Ee, [
147
- s("input", {
146
+ r("div", Ee, [
147
+ r("input", {
148
148
  ref_key: "fileInput",
149
- ref: c,
149
+ ref: p,
150
150
  type: "file",
151
151
  class: "hidden",
152
152
  accept: n.validation,
153
153
  single: "",
154
- onChange: u[0] || (u[0] = (g) => p())
154
+ onChange: u[0] || (u[0] = (c) => S())
155
155
  }, null, 40, Be),
156
- s("div", Ge, [
157
- s("ul", Ie, [
158
- v.value ? k("", !0) : (d(), f("li", Me, [
159
- r(x, {
160
- label: e(a)("uploadFile"),
156
+ r("div", Ge, [
157
+ r("ul", Ie, [
158
+ v.value ? k("", !0) : (d(), g("li", Me, [
159
+ s(x, {
160
+ label: e(h)("uploadFile"),
161
161
  type: "button",
162
162
  icon: "upload",
163
163
  "icon-color": n.iconColor,
164
- onClickEvent: u[1] || (u[1] = (g) => U())
164
+ onClickEvent: u[1] || (u[1] = (c) => C())
165
165
  }, null, 8, ["label", "icon-color"])
166
166
  ])),
167
- v.value ? (d(), f("li", Le, [
168
- r(x, {
169
- label: e(a)("replaceFile"),
167
+ v.value ? (d(), g("li", Le, [
168
+ s(x, {
169
+ label: e(h)("replaceFile"),
170
170
  type: "button",
171
171
  icon: "repeat-alt",
172
172
  "icon-color": n.iconColor,
173
- onClickEvent: u[2] || (u[2] = (g) => U())
173
+ onClickEvent: u[2] || (u[2] = (c) => C())
174
174
  }, null, 8, ["label", "icon-color"])
175
175
  ])) : k("", !0),
176
- v.value ? (d(), f("li", xe, [
177
- r(x, {
178
- label: e(a)("removeFile"),
176
+ v.value ? (d(), g("li", xe, [
177
+ s(x, {
178
+ label: e(h)("removeFile"),
179
179
  type: "button",
180
180
  icon: "trash-alt",
181
181
  "icon-color": n.iconColor,
182
- onClickEvent: u[3] || (u[3] = (g) => B())
182
+ onClickEvent: u[3] || (u[3] = (c) => G())
183
183
  }, null, 8, ["label", "icon-color"])
184
184
  ])) : k("", !0)
185
185
  ]),
186
- s("div", {
187
- class: se([
186
+ r("div", {
187
+ class: re([
188
188
  "media-selector-previewer",
189
189
  { opened: v.value }
190
190
  ])
191
191
  }, [
192
- n.modelValue ? (d(), f("img", {
192
+ n.modelValue ? (d(), g("img", {
193
193
  key: 0,
194
194
  src: n.modelValue.base64
195
195
  }, null, 8, De)) : k("", !0)
@@ -249,14 +249,14 @@ typeof oe == "function" && oe(Ae);
249
249
  const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ X({
250
250
  __name: "GiftCardSkeleton",
251
251
  setup(z) {
252
- return (t, o) => (d(), f("div", Ne, [
253
- s("div", We, [
254
- r(M),
255
- r(M),
256
- r(M),
257
- r(M),
258
- r(M, { "is-text-area": "" }),
259
- r(qe, { height: "44px" })
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(qe, { height: "44px" })
260
260
  ])
261
261
  ]));
262
262
  }
@@ -268,7 +268,7 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
268
268
  key: 0,
269
269
  id: "fresh-booking-select-place-type"
270
270
  }, ea = {
271
- class: /* @__PURE__ */ se(["fresh-booking-label", "required"])
271
+ class: /* @__PURE__ */ re(["fresh-booking-label", "required"])
272
272
  }, aa = { id: "fresh-booking-select-place-type-input" }, la = ["innerHTML"], ta = {
273
273
  key: 0,
274
274
  id: "fresh-booking-gift-card-order"
@@ -279,7 +279,7 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
279
279
  key: 2,
280
280
  id: "fresh-booking-gift-card-order-minimal",
281
281
  "sticky-side": "bottom"
282
- }, ra = { id: "fresh-booking-gift-card-recaptcha" }, sa = /* @__PURE__ */ X({
282
+ }, sa = { id: "fresh-booking-gift-card-recaptcha" }, ra = /* @__PURE__ */ X({
283
283
  name: "GiftCardLayout",
284
284
  __name: "GiftCard",
285
285
  props: {
@@ -289,63 +289,63 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
289
289
  styling: {}
290
290
  },
291
291
  setup(z) {
292
- const { t } = re(), {
292
+ const { t } = se(), {
293
293
  name: o,
294
294
  email: a,
295
- phone: P,
296
- value: c,
297
- remark: v,
298
- showValue: h,
299
- quantity: B,
300
- media: U,
301
- placeId: S,
302
- placeType: p,
303
- showFormPage: n,
304
- showPaymentPage: u,
305
- showConfirmationPage: g,
306
- places: y,
307
- hasFilledForm: T,
308
- hasForcedPlaceType: q,
309
- isWaitingForResponse: C,
310
- isMetaDataAvailable: G
295
+ phone: h,
296
+ value: P,
297
+ remark: p,
298
+ showValue: v,
299
+ quantity: U,
300
+ media: G,
301
+ placeId: C,
302
+ placeType: m,
303
+ showFormPage: S,
304
+ showPaymentPage: n,
305
+ showConfirmationPage: u,
306
+ places: c,
307
+ hasFilledForm: q,
308
+ hasForcedPlaceType: R,
309
+ isWaitingForResponse: y,
310
+ isMetaDataAvailable: T
311
311
  } = Q(te()), { initialize: D, orderGiftCard: $ } = te(), { isRecaptchaEnabled: O, currency: K } = Q(ie());
312
312
  async function A() {
313
313
  await $();
314
314
  }
315
- return ve(p, () => {
316
- S.value = void 0;
315
+ return ve(m, () => {
316
+ C.value = void 0;
317
317
  }), ge(() => {
318
318
  D();
319
- }), (R, i) => {
320
- const m = he("sticky");
319
+ }), (E, i) => {
320
+ const f = he("sticky");
321
321
  return d(), L(ke, null, {
322
322
  default: j(() => [
323
- r(be, {
323
+ s(be, {
324
324
  id: "fresh-booking-gift-card-module",
325
325
  type: "gift-card",
326
- "access-token": R.accessToken,
327
- "data-layout": R.layout,
328
- styling: R.styling,
326
+ "access-token": E.accessToken,
327
+ "data-layout": E.layout,
328
+ styling: E.styling,
329
329
  "sticky-container": ""
330
330
  }, {
331
331
  default: j(() => [
332
- e(G) ? (d(), f("div", Oe, [
333
- s("h4", Ke, [
334
- s("span", null, ee(e(t)("giftCard.title")), 1)
332
+ e(T) ? (d(), g("div", Oe, [
333
+ r("h4", Ke, [
334
+ r("span", null, ee(e(t)("giftCard.title")), 1)
335
335
  ]),
336
- s("div", Je, [
337
- I(s("div", Ye, [
338
- r(Se)
336
+ r("div", Je, [
337
+ I(r("div", Ye, [
338
+ s(Se)
339
339
  ], 512), [
340
- [W, e(u)]
340
+ [W, e(n)]
341
341
  ]),
342
- I(s("div", null, [
343
- s("p", {
342
+ I(r("div", null, [
343
+ r("p", {
344
344
  id: "fresh-booking-gift-card-description",
345
345
  innerHTML: e(t)("giftCard.description")
346
346
  }, null, 8, Qe),
347
- s("form", null, [
348
- r(H, {
347
+ r("form", null, [
348
+ s(H, {
349
349
  modelValue: e(o),
350
350
  "onUpdate:modelValue": i[0] || (i[0] = (l) => V(o) ? o.value = l : null),
351
351
  type: "text",
@@ -356,7 +356,7 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
356
356
  placeholder: e(t)("giftCard.namePlaceholder"),
357
357
  required: ""
358
358
  }, null, 8, ["modelValue", "label", "placeholder"]),
359
- r(H, {
359
+ s(H, {
360
360
  modelValue: e(a),
361
361
  "onUpdate:modelValue": i[1] || (i[1] = (l) => V(a) ? a.value = l : null),
362
362
  type: "email",
@@ -367,25 +367,25 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
367
367
  placeholder: e(t)("giftCard.emailPlaceholder"),
368
368
  required: ""
369
369
  }, null, 8, ["modelValue", "label", "placeholder"]),
370
- r(we, {
371
- modelValue: e(P),
372
- "onUpdate:modelValue": i[2] || (i[2] = (l) => V(P) ? P.value = l : null),
370
+ s(we, {
371
+ modelValue: e(h),
372
+ "onUpdate:modelValue": i[2] || (i[2] = (l) => V(h) ? h.value = l : null),
373
373
  icon: "phone-office",
374
374
  label: e(t)("giftCard.phone"),
375
375
  placeholder: e(t)("giftCard.phonePlaceholder"),
376
376
  required: ""
377
377
  }, null, 8, ["modelValue", "label", "placeholder"]),
378
- e(q) ? k("", !0) : (d(), f("div", Xe, [
379
- e(y) ? (d(), f("div", Ze, [
380
- s("label", ea, [
381
- s("span", null, ee(e(t)("giftCard.selectType")), 1)
378
+ e(R) ? k("", !0) : (d(), g("div", Xe, [
379
+ e(c) ? (d(), g("div", Ze, [
380
+ r("label", ea, [
381
+ r("span", null, ee(e(t)("giftCard.selectType")), 1)
382
382
  ]),
383
- s("div", aa, [
384
- s("ul", null, [
385
- (d(!0), f(ye, null, _e(e(y), (l, _) => (d(), f("li", { key: _ }, [
386
- r(le, {
387
- modelValue: e(p),
388
- "onUpdate:modelValue": i[3] || (i[3] = (N) => V(p) ? p.value = N : null),
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, {
387
+ modelValue: e(m),
388
+ "onUpdate:modelValue": i[3] || (i[3] = (N) => V(m) ? m.value = N : null),
389
389
  type: "radio",
390
390
  name: "placeType",
391
391
  val: _,
@@ -393,12 +393,12 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
393
393
  }, null, 8, ["modelValue", "val", "label"])
394
394
  ]))), 128))
395
395
  ]),
396
- e(y)[e(p)] && e(y)[e(p)].data.length > 1 ? (d(), L(Re, {
396
+ e(c)[e(m)] && e(c)[e(m)].data.length > 1 ? (d(), L(Re, {
397
397
  key: 0,
398
- modelValue: e(S),
399
- "onUpdate:modelValue": i[4] || (i[4] = (l) => V(S) ? S.value = l : null),
398
+ modelValue: e(C),
399
+ "onUpdate:modelValue": i[4] || (i[4] = (l) => V(C) ? C.value = l : null),
400
400
  placeholder: e(t)("giftCard.selectPlacePlaceholder"),
401
- options: e(y)[e(p)].data,
401
+ options: e(c)[e(m)].data,
402
402
  labelKey: "name",
403
403
  valueKey: "id",
404
404
  required: ""
@@ -406,9 +406,9 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
406
406
  ])
407
407
  ])) : (d(), L(ae, { key: 1 }))
408
408
  ])),
409
- r(H, {
410
- modelValue: e(c),
411
- "onUpdate:modelValue": i[5] || (i[5] = (l) => V(c) ? c.value = l : null),
409
+ s(H, {
410
+ modelValue: e(P),
411
+ "onUpdate:modelValue": i[5] || (i[5] = (l) => V(P) ? P.value = l : null),
412
412
  type: "number",
413
413
  name: "value",
414
414
  label: e(t)("giftCard.value"),
@@ -417,44 +417,44 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
417
417
  suffix: e(K),
418
418
  required: ""
419
419
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
420
- r(le, {
421
- modelValue: e(h),
422
- "onUpdate:modelValue": i[6] || (i[6] = (l) => V(h) ? h.value = l : null),
420
+ s(le, {
421
+ modelValue: e(v),
422
+ "onUpdate:modelValue": i[6] || (i[6] = (l) => V(v) ? v.value = l : null),
423
423
  type: "checkbox",
424
424
  name: "showValue",
425
425
  label: e(t)("giftCard.showValue"),
426
- checked: e(h)
426
+ checked: e(v)
427
427
  }, null, 8, ["modelValue", "label", "checked"]),
428
428
  k("", !0),
429
429
  k("", !0)
430
430
  ])
431
431
  ], 512), [
432
- [W, e(n)]
432
+ [W, e(S)]
433
433
  ]),
434
- I(s("div", null, [
435
- s("div", {
434
+ I(r("div", null, [
435
+ r("div", {
436
436
  innerHTML: e(t)("giftCard.thankYou")
437
437
  }, null, 8, la)
438
438
  ], 512), [
439
- [W, e(g)]
439
+ [W, e(u)]
440
440
  ])
441
441
  ]),
442
- R.layout !== "minimal" && e(n) ? (d(), f("div", ta, [
443
- s("div", oa, [
444
- r(x, {
442
+ E.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
443
+ r("div", oa, [
444
+ s(x, {
445
445
  label: e(t)("giftCard.orderGiftCard"),
446
446
  "full-width": !0,
447
- disabled: !e(T),
448
- "is-loading": e(C),
449
- "onUpdate:isLoading": i[9] || (i[9] = (l) => V(C) ? C.value = l : null),
447
+ disabled: !e(q),
448
+ "is-loading": e(y),
449
+ "onUpdate:isLoading": i[9] || (i[9] = (l) => V(y) ? y.value = l : null),
450
450
  onClickEvent: A
451
451
  }, null, 8, ["label", "disabled", "is-loading"])
452
452
  ])
453
453
  ])) : k("", !0),
454
- e(n) ? (d(), f("div", na, [
455
- r(H, {
456
- modelValue: e(v),
457
- "onUpdate:modelValue": i[10] || (i[10] = (l) => V(v) ? v.value = l : null),
454
+ e(S) ? (d(), g("div", na, [
455
+ s(H, {
456
+ modelValue: e(p),
457
+ "onUpdate:modelValue": i[10] || (i[10] = (l) => V(p) ? p.value = l : null),
458
458
  type: "textarea",
459
459
  name: "remark",
460
460
  label: e(t)("giftCard.remark"),
@@ -462,23 +462,23 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
462
462
  placeholder: e(t)("giftCard.remarkPlaceholder")
463
463
  }, null, 8, ["modelValue", "label", "placeholder"])
464
464
  ])) : k("", !0),
465
- e(n) ? I((d(), f("div", ia, [
466
- r(x, {
465
+ e(S) ? I((d(), g("div", ia, [
466
+ s(x, {
467
467
  label: e(t)("giftCard.orderGiftCard"),
468
468
  "full-width": !0,
469
- disabled: !e(T),
469
+ disabled: !e(q),
470
470
  "data-test": "orderGiftCard",
471
- "is-loading": e(C),
472
- "onUpdate:isLoading": i[11] || (i[11] = (l) => V(C) ? C.value = l : null),
471
+ "is-loading": e(y),
472
+ "onUpdate:isLoading": i[11] || (i[11] = (l) => V(y) ? y.value = l : null),
473
473
  onClickEvent: A
474
474
  }, null, 8, ["label", "disabled", "is-loading"]),
475
- I(s("div", ra, [
476
- r(ze)
475
+ I(r("div", sa, [
476
+ s(ze)
477
477
  ], 512), [
478
478
  [W, e(O)]
479
479
  ])
480
480
  ])), [
481
- [m]
481
+ [f]
482
482
  ]) : k("", !0)
483
483
  ])) : (d(), L(ae, { key: 1 }))
484
484
  ]),
@@ -486,17 +486,17 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
486
486
  }, 8, ["access-token", "data-layout", "styling"])
487
487
  ]),
488
488
  fallback: j(() => [
489
- r(je)
489
+ s(je)
490
490
  ]),
491
491
  _: 1
492
492
  });
493
493
  };
494
494
  }
495
495
  });
496
- const da = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ce(), ca = Ve(), E = Fe({ components: { GiftCard: da } });
497
- E.use(ua);
498
- E.use(Pe);
499
- E.use(ca);
500
- E.use(Te);
501
- E.use($e, { bootstrap: !1 });
502
- E.mount("#konnectio-gift-card-app");
496
+ const da = /* @__PURE__ */ de(ra, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ce(), ca = Ve(), B = Fe({ components: { GiftCard: da } });
497
+ B.use(ua);
498
+ B.use(Pe);
499
+ B.use(ca);
500
+ B.use(Te);
501
+ B.use($e, { bootstrap: !1 });
502
+ B.mount("#konnectio-gift-card-app");
Binary file