@konnectio/core 4.0.15 → 4.0.17

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