@konnectio/core 4.0.11 → 4.0.13

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 (83) hide show
  1. package/dist/{ActionField-d1266f8b.js → ActionField-54349124.js} +21 -21
  2. package/dist/ActionField-54349124.js.br +0 -0
  3. package/dist/ActionField-74fc14cf.cjs +1 -0
  4. package/dist/AvailabilitySkeleton-34890eb5.cjs +1 -0
  5. package/dist/AvailabilitySkeleton-f7c1b363.js +189 -0
  6. package/dist/AvailabilitySkeleton-f7c1b363.js.br +0 -0
  7. package/dist/DateField.vue_vue_type_style_index_0_lang-41b83959.cjs +5 -0
  8. package/dist/{DateField.vue_vue_type_style_index_0_lang-3f5993f7.js → DateField.vue_vue_type_style_index_0_lang-c5873e66.js} +2396 -2396
  9. package/dist/DateField.vue_vue_type_style_index_0_lang-c5873e66.js.br +0 -0
  10. package/dist/{Field-ea77905a.js → Field-0b82e3dc.js} +2 -2
  11. package/dist/Field-0b82e3dc.js.br +0 -0
  12. package/dist/{Field-028d9987.cjs → Field-c8c55b91.cjs} +1 -1
  13. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js → NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js} +31 -31
  14. package/dist/NumberField.vue_vue_type_script_setup_true_lang-001ceb59.js.br +0 -0
  15. package/dist/NumberField.vue_vue_type_script_setup_true_lang-8525b2cd.cjs +1 -0
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-b92d158e.cjs +802 -0
  17. package/dist/{SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js → SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js} +10432 -10081
  18. package/dist/SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js.br +0 -0
  19. package/dist/TextField-52bc45b8.cjs +54 -0
  20. package/dist/{TextField-4e7defc6.js → TextField-cbed3348.js} +3464 -3538
  21. package/dist/TextField-cbed3348.js.br +0 -0
  22. package/dist/{ThankYou-6fc9044f.js → ThankYou-a6b0d51e.js} +48 -47
  23. package/dist/ThankYou-a6b0d51e.js.br +0 -0
  24. package/dist/{ThankYou-2c1ee36b.cjs → ThankYou-d4fae82e.cjs} +2 -2
  25. package/dist/{_-f5a3364b.js → _-66cf2aa1.js} +5 -5
  26. package/dist/_-66cf2aa1.js.br +0 -0
  27. package/dist/{_-82677476.cjs → _-f5fc7dd6.cjs} +1 -1
  28. package/dist/availability.cjs +2 -2
  29. package/dist/availability.d.ts +0 -2
  30. package/dist/availability.js +124 -123
  31. package/dist/availability.js.br +0 -0
  32. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
  33. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
  34. package/dist/entries/availability.d.ts +1 -3
  35. package/dist/event-f2a6108f.cjs +1 -0
  36. package/dist/{event-46a84617.js → event-f820ba4b.js} +101 -101
  37. package/dist/event-f820ba4b.js.br +0 -0
  38. package/dist/event.cjs +1 -1
  39. package/dist/event.js +146 -146
  40. package/dist/event.js.br +0 -0
  41. package/dist/gift-card-validation.cjs +1 -1
  42. package/dist/gift-card-validation.js +6 -6
  43. package/dist/gift-card-validation.js.br +0 -0
  44. package/dist/gift-card.cjs +1 -1
  45. package/dist/gift-card.js +180 -180
  46. package/dist/gift-card.js.br +0 -0
  47. package/dist/hotel.cjs +5 -5
  48. package/dist/hotel.js +1381 -1370
  49. package/dist/hotel.js.br +0 -0
  50. package/dist/index-2018df9e.cjs +1 -0
  51. package/dist/{index-a3de1ca3.js → index-b69ec10e.js} +83 -83
  52. package/dist/index-b69ec10e.js.br +0 -0
  53. package/dist/polyfill.cjs +4 -4
  54. package/dist/polyfill.js +3311 -3398
  55. package/dist/polyfill.js.br +0 -0
  56. package/dist/store/event.d.ts +1 -1
  57. package/dist/store/hotel.d.ts +5 -2
  58. package/dist/store/payment.d.ts +1 -1
  59. package/dist/store/utilities.d.ts +18 -2
  60. package/dist/style.css +1 -1
  61. package/dist/style.css.br +0 -0
  62. package/package.json +8 -9
  63. package/dist/ActionField-8a007a6c.cjs +0 -1
  64. package/dist/ActionField-d1266f8b.js.br +0 -0
  65. package/dist/AvailabilitySkeleton-0e6d048b.js +0 -382
  66. package/dist/AvailabilitySkeleton-0e6d048b.js.br +0 -0
  67. package/dist/AvailabilitySkeleton-3ba8c412.cjs +0 -1
  68. package/dist/DateField.vue_vue_type_style_index_0_lang-31a9e5dc.cjs +0 -5
  69. package/dist/DateField.vue_vue_type_style_index_0_lang-3f5993f7.js.br +0 -0
  70. package/dist/Field-ea77905a.js.br +0 -0
  71. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d3b3206f.js.br +0 -0
  72. package/dist/NumberField.vue_vue_type_script_setup_true_lang-d756efc3.cjs +0 -1
  73. package/dist/SelectField.vue_vue_type_style_index_0_lang-2b92f88c.cjs +0 -806
  74. package/dist/SelectField.vue_vue_type_style_index_0_lang-d1f9b48d.js.br +0 -0
  75. package/dist/TextField-4e7defc6.js.br +0 -0
  76. package/dist/TextField-641e6fd1.cjs +0 -54
  77. package/dist/ThankYou-6fc9044f.js.br +0 -0
  78. package/dist/_-f5a3364b.js.br +0 -0
  79. package/dist/event-46a84617.js.br +0 -0
  80. package/dist/event-8738e24d.cjs +0 -1
  81. package/dist/index-a3de1ca3.js.br +0 -0
  82. package/dist/index-e81b12be.cjs +0 -1
  83. package/dist/store/recaptcha.d.ts +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 Y, a as ie, r as b, aa as w, b as J, c as F, i as Z, S as Q, e as ce, f as pe, ab as me, h as X, z as re, k as d, l as M, w as H, x as s, q as g, m as r, n as e, C as x, t as k, v as se, I as fe, _ as de, a0 as ve, o as ge, ac as he, A as ee, ad as I, ae as W, B as V, a1 as ye, a2 as _e, y as be, a3 as ae, J as ke, K as Ce, P as Ve, a7 as Fe, N as Pe, Q as Se } from "./SelectField.vue_vue_type_style_index_0_lang-ba987c3e.js";
2
+ import { a as we, P as ze, C as le, _ as Te, S as $e, i as Ue } from "./index-b69ec10e.js";
3
+ import { u as qe, E as Re } from "./_-66cf2aa1.js";
4
+ import { T as j } from "./TextField-cbed3348.js";
5
+ import { F as L } from "./Field-0b82e3dc.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 } = qe(), { bearerToken: t, metaData: o } = Y(ie()), a = b(w.InitialState), h = J("freshBookingName", "", void 0, { serializer: Q.string }), P = J("freshBookingEmail", "", void 0, { serializer: Q.string }), p = J("freshBookingPhone", "", void 0, { serializer: Q.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,80 +22,80 @@ 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
+ }), 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("http://localhost:91/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.13"
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,
91
- hasFilledForm: O,
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
+ hasFilledForm: K,
92
92
  hasForcedPlaceType: D,
93
93
  isWaitingForResponse: A,
94
- isMetaDataAvailable: K,
95
- orderGiftCard: R,
94
+ isMetaDataAvailable: O,
95
+ orderGiftCard: E,
96
96
  initialize: i
97
97
  };
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({
98
+ }), Ee = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-selector-wrapper" }, Ie = { class: "media-selector-tools" }, Le = { key: 0 }, Me = { key: 1 }, xe = { key: 2 }, De = ["src"], Ae = /* @__PURE__ */ X({
99
99
  __name: "MediaSelector",
100
100
  props: {
101
101
  modelValue: {},
@@ -106,80 +106,80 @@ 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 } = re(), { 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
- return (n, u) => (d(), L(fe, {
140
+ return (n, u) => (d(), M(fe, {
141
141
  label: n.label,
142
142
  required: n.required,
143
143
  type: "media"
144
144
  }, {
145
- default: j(() => [
145
+ default: H(() => [
146
146
  s("div", Ee, [
147
147
  s("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
156
  s("div", Ge, [
157
157
  s("ul", Ie, [
158
- v.value ? k("", !0) : (d(), f("li", Me, [
158
+ v.value ? k("", !0) : (d(), g("li", Le, [
159
159
  r(x, {
160
- label: e(a)("uploadFile"),
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, [
167
+ v.value ? (d(), g("li", Me, [
168
168
  r(x, {
169
- label: e(a)("replaceFile"),
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, [
176
+ v.value ? (d(), g("li", xe, [
177
177
  r(x, {
178
- label: e(a)("removeFile"),
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
  ]),
@@ -189,7 +189,7 @@ const te = ue("giftCard", () => {
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)
@@ -246,25 +246,25 @@ function oe(z) {
246
246
  });
247
247
  }
248
248
  typeof oe == "function" && oe(Ae);
249
- const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ X({
249
+ const Ne = { class: "gift-card-skeleton" }, We = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ X({
250
250
  __name: "GiftCardSkeleton",
251
251
  setup(z) {
252
- return (t, o) => (d(), f("div", Ne, [
252
+ return (t, o) => (d(), g("div", Ne, [
253
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" })
254
+ r(L),
255
+ r(L),
256
+ r(L),
257
+ r(L),
258
+ r(L, { "is-text-area": "" }),
259
+ r(Re, { height: "44px" })
260
260
  ])
261
261
  ]));
262
262
  }
263
263
  });
264
- const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
264
+ const He = /* @__PURE__ */ de(je, [["__scopeId", "data-v-2600a731"]]), Ke = {
265
265
  key: 0,
266
266
  id: "fresh-booking-gift-card-wrapper"
267
- }, Ke = { id: "fresh-booking-gift-card-title" }, Je = { id: "fresh-booking-gift-card-content" }, Ye = { 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 = {
268
268
  key: 0,
269
269
  id: "fresh-booking-select-place-type"
270
270
  }, ea = {
@@ -292,60 +292,60 @@ const je = /* @__PURE__ */ de(He, [["__scopeId", "data-v-2600a731"]]), Oe = {
292
292
  const { t } = re(), {
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
311
- } = Q(te()), { initialize: D, orderGiftCard: $ } = te(), { isRecaptchaEnabled: O, currency: K } = Q(ie());
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
+ } = Y(te()), { initialize: D, orderGiftCard: $ } = te(), { isRecaptchaEnabled: K, currency: O } = Y(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");
321
- return d(), L(ke, null, {
322
- default: j(() => [
323
- r(be, {
319
+ }), (E, i) => {
320
+ const f = he("sticky");
321
+ return d(), M(Ce, null, {
322
+ default: H(() => [
323
+ r(ke, {
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
- default: j(() => [
332
- e(G) ? (d(), f("div", Oe, [
333
- s("h4", Ke, [
331
+ default: H(() => [
332
+ e(T) ? (d(), g("div", Ke, [
333
+ s("h4", Oe, [
334
334
  s("span", null, ee(e(t)("giftCard.title")), 1)
335
335
  ]),
336
336
  s("div", Je, [
337
- I(s("div", Ye, [
338
- r(Se)
337
+ I(s("div", Qe, [
338
+ r(we)
339
339
  ], 512), [
340
- [W, e(u)]
340
+ [W, e(n)]
341
341
  ]),
342
342
  I(s("div", null, [
343
343
  s("p", {
344
344
  id: "fresh-booking-gift-card-description",
345
345
  innerHTML: e(t)("giftCard.description")
346
- }, null, 8, Qe),
346
+ }, null, 8, Ye),
347
347
  s("form", null, [
348
- r(H, {
348
+ r(j, {
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
+ r(j, {
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
+ r(ze, {
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, [
378
+ e(R) ? k("", !0) : (d(), g("div", Xe, [
379
+ e(c) ? (d(), g("div", Ze, [
380
380
  s("label", ea, [
381
381
  s("span", null, ee(e(t)("giftCard.selectType")), 1)
382
382
  ]),
383
383
  s("div", aa, [
384
384
  s("ul", null, [
385
- (d(!0), f(ye, null, _e(e(y), (l, _) => (d(), f("li", { key: _ }, [
385
+ (d(!0), g(ye, null, _e(e(c), (l, _) => (d(), g("li", { key: _ }, [
386
386
  r(le, {
387
- modelValue: e(p),
388
- "onUpdate:modelValue": i[3] || (i[3] = (N) => V(p) ? p.value = N : null),
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,68 +393,68 @@ 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(), M(be, {
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: ""
405
405
  }, null, 8, ["modelValue", "placeholder", "options"])) : k("", !0)
406
406
  ])
407
- ])) : (d(), L(ae, { key: 1 }))
407
+ ])) : (d(), M(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
+ r(j, {
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"),
415
415
  icon: "money-bill",
416
416
  placeholder: e(t)("giftCard.valuePlaceholder"),
417
- suffix: e(K),
417
+ suffix: e(O),
418
418
  required: ""
419
419
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
420
420
  r(le, {
421
- modelValue: e(h),
422
- "onUpdate:modelValue": i[6] || (i[6] = (l) => V(h) ? h.value = l : null),
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
434
  I(s("div", null, [
435
435
  s("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, [
442
+ E.layout !== "minimal" && e(S) ? (d(), g("div", ta, [
443
443
  s("div", oa, [
444
444
  r(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
+ r(j, {
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,41 +462,41 @@ 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, [
465
+ e(S) ? I((d(), g("div", ia, [
466
466
  r(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
475
  I(s("div", ra, [
476
- r(ze)
476
+ r(Te)
477
477
  ], 512), [
478
- [W, e(O)]
478
+ [W, e(K)]
479
479
  ])
480
480
  ])), [
481
- [m]
481
+ [f]
482
482
  ]) : k("", !0)
483
- ])) : (d(), L(ae, { key: 1 }))
483
+ ])) : (d(), M(ae, { key: 1 }))
484
484
  ]),
485
485
  _: 1
486
486
  }, 8, ["access-token", "data-layout", "styling"])
487
487
  ]),
488
- fallback: j(() => [
489
- r(je)
488
+ fallback: H(() => [
489
+ r(He)
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(sa, [["__scopeId", "data-v-e4aa1e4c"]]), ua = Ve(), ca = Fe(), B = Pe({ components: { GiftCard: da } });
497
+ B.use(ua);
498
+ B.use(Se);
499
+ B.use(ca);
500
+ B.use($e);
501
+ B.use(Ue, { bootstrap: !1 });
502
+ B.mount("#konnectio-gift-card-app");
Binary file