@konnectio/core 4.0.56-rc2 → 4.0.56-rc3

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 (130) hide show
  1. package/dist/{ActionField-Qf4JAgBa.js → ActionField-9I-yAskc.js} +1 -1
  2. package/dist/ActionField-9I-yAskc.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-GPTCv3Xy.js → AvailabilitySkeleton-hoauL0os.js} +4 -4
  4. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  5. package/dist/{CheckoutWindow-S9xKe_Wf.js → CheckoutWindow-31th413C.js} +1 -1
  6. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  7. package/dist/Container-gHSYMY7q.js +69 -0
  8. package/dist/Container-gHSYMY7q.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js → DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js} +2919 -2911
  10. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  11. package/dist/{Field-b7XkSAoi.js → Field-QHvFgmEq.js} +2 -2
  12. package/dist/Field-QHvFgmEq.js.br +0 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js → SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js} +4621 -4555
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  15. package/dist/{ThankYou-LiiG3Zv1.js → ThankYou-SQ_bbgj4.js} +4389 -4325
  16. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  17. package/dist/{_-FAlGPZqe.js → _-FedWhJCw.js} +1 -1
  18. package/dist/_commonjsHelpers-FF1eOqK0.js +8 -0
  19. package/dist/availability.js +8 -8
  20. package/dist/availability.js.br +0 -0
  21. package/dist/components/Alert.vue.d.ts +27 -4
  22. package/dist/components/Clickable.vue.d.ts +59 -4
  23. package/dist/components/Container.vue.d.ts +22 -4
  24. package/dist/components/ErrorMessage.vue.d.ts +14 -4
  25. package/dist/components/Gallery.vue.d.ts +30 -4
  26. package/dist/components/GoogleNotice.vue.d.ts +2 -4
  27. package/dist/components/Icon.vue.d.ts +37 -4
  28. package/dist/components/Loading.vue.d.ts +28 -4
  29. package/dist/components/Spinner.vue.d.ts +1 -3
  30. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +17 -4
  31. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +33 -4
  32. package/dist/components/forms/HotelReservationForm.vue.d.ts +41 -4
  33. package/dist/components/forms/MultiStepForm.vue.d.ts +42 -4
  34. package/dist/components/forms/ReservationForm.vue.d.ts +62 -5
  35. package/dist/components/forms/_.vue.d.ts +42 -4
  36. package/dist/components/inputs/Checkbox.vue.d.ts +54 -4
  37. package/dist/components/inputs/CheckboxField.vue.d.ts +28 -4
  38. package/dist/components/inputs/DateField.vue.d.ts +104 -5
  39. package/dist/components/inputs/InputField.vue.d.ts +61 -4
  40. package/dist/components/inputs/MediaSelector.vue.d.ts +42 -4
  41. package/dist/components/inputs/NumberField.vue.d.ts +87 -5
  42. package/dist/components/inputs/SelectField.vue.d.ts +90 -5
  43. package/dist/components/inputs/TextField.vue.d.ts +67 -4
  44. package/dist/components/inputs/TimeField.vue.d.ts +44 -5
  45. package/dist/components/inputs/grouped/ActionField.vue.d.ts +71 -4
  46. package/dist/components/inputs/grouped/CountryField.vue.d.ts +40 -4
  47. package/dist/components/inputs/grouped/NameField.vue.d.ts +70 -4
  48. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +50 -4
  49. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +46 -4
  50. package/dist/components/listings/Base.vue.d.ts +55 -5
  51. package/dist/components/listings/Event.vue.d.ts +46 -4
  52. package/dist/components/listings/Hotel.vue.d.ts +15 -4
  53. package/dist/components/listings/Template.vue.d.ts +20 -4
  54. package/dist/components/side-panels/Base.vue.d.ts +60 -5
  55. package/dist/components/side-panels/ListingInfo.vue.d.ts +17 -4
  56. package/dist/components/side-panels/Template.vue.d.ts +17 -4
  57. package/dist/components/side-panels/TermsOfService.vue.d.ts +13 -4
  58. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +32 -4
  59. package/dist/components/skeletons/Field.vue.d.ts +35 -4
  60. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -4
  61. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -4
  62. package/dist/components/skeletons/Listing.vue.d.ts +1 -4
  63. package/dist/components/skeletons/Sidebar.vue.d.ts +1 -4
  64. package/dist/components/skeletons/_.vue.d.ts +35 -4
  65. package/dist/components/views/CheckoutWindow.vue.d.ts +1 -4
  66. package/dist/components/views/TermsOfService.vue.d.ts +1 -4
  67. package/dist/components/views/ThankYou.vue.d.ts +14 -4
  68. package/dist/entries/availability.d.ts +1 -1
  69. package/dist/entries/event.d.ts +1 -1
  70. package/dist/entries/gift-card-validation.d.ts +1 -1
  71. package/dist/entries/gift-card.d.ts +1 -1
  72. package/dist/entries/hotel.d.ts +1 -1
  73. package/dist/event-4kCWoqDL.js +359 -0
  74. package/dist/event-4kCWoqDL.js.br +0 -0
  75. package/dist/event.js +8 -8
  76. package/dist/event.js.br +0 -0
  77. package/dist/gift-card-validation.js +4 -4
  78. package/dist/gift-card-validation.js.br +0 -0
  79. package/dist/gift-card.js +281 -251
  80. package/dist/gift-card.js.br +0 -0
  81. package/dist/hotel.js +1636 -1581
  82. package/dist/hotel.js.br +0 -0
  83. package/dist/layouts/Availability.vue.d.ts +4 -4
  84. package/dist/layouts/Event.vue.d.ts +4 -4
  85. package/dist/layouts/GiftCard.vue.d.ts +4 -4
  86. package/dist/layouts/GiftCardValidation.vue.d.ts +4 -4
  87. package/dist/layouts/Hotel.vue.d.ts +4 -4
  88. package/dist/layouts/_.vue.d.ts +4 -4
  89. package/dist/polyfill.js +67 -67
  90. package/dist/polyfill.js.br +0 -0
  91. package/dist/store/alert.d.ts +15 -15
  92. package/dist/store/applyGiftCard.d.ts +18 -18
  93. package/dist/store/availability.d.ts +12 -12
  94. package/dist/store/event.d.ts +141 -141
  95. package/dist/store/giftCard.d.ts +51 -51
  96. package/dist/store/payment.d.ts +39 -39
  97. package/dist/store/recaptcha.d.ts +3 -3
  98. package/dist/store/tracking.d.ts +6 -6
  99. package/dist/store/utilities.d.ts +129 -129
  100. package/package.json +4 -1
  101. package/dist/ActionField-Qf4JAgBa.js.br +0 -0
  102. package/dist/ActionField-ztW-1xka.cjs +0 -1
  103. package/dist/AvailabilitySkeleton-GPTCv3Xy.js.br +0 -0
  104. package/dist/AvailabilitySkeleton-v0QVPuim.cjs +0 -1
  105. package/dist/CheckoutWindow-NUwbNAPw.cjs +0 -1
  106. package/dist/CheckoutWindow-S9xKe_Wf.js.br +0 -0
  107. package/dist/Container-Fl2PKj-u.js +0 -59
  108. package/dist/Container-Fl2PKj-u.js.br +0 -0
  109. package/dist/Container-Y6_3uTWy.cjs +0 -1
  110. package/dist/DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs +0 -2
  111. package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js.br +0 -0
  112. package/dist/Field-UTbHMN9U.cjs +0 -1
  113. package/dist/Field-b7XkSAoi.js.br +0 -0
  114. package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js.br +0 -0
  115. package/dist/SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs +0 -851
  116. package/dist/ThankYou-LiiG3Zv1.js.br +0 -0
  117. package/dist/ThankYou-M6d4G8pc.cjs +0 -59
  118. package/dist/_-oL4OsiNw.cjs +0 -1
  119. package/dist/_commonjsHelpers-f3sTPFkQ.js +0 -8
  120. package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
  121. package/dist/availability.cjs +0 -2
  122. package/dist/event-GaUgVNzy.cjs +0 -1
  123. package/dist/event-MXmxvcpC.js +0 -329
  124. package/dist/event-MXmxvcpC.js.br +0 -0
  125. package/dist/event.cjs +0 -1
  126. package/dist/gift-card-validation.cjs +0 -1
  127. package/dist/gift-card.cjs +0 -1
  128. package/dist/hotel.cjs +0 -19
  129. package/dist/navigation.cjs +0 -1
  130. package/dist/polyfill.cjs +0 -4
package/dist/gift-card.js CHANGED
@@ -1,102 +1,131 @@
1
- import { ref as b, computed as y, defineComponent as X, openBlock as s, createBlock as L, withCtx as D, createElementVNode as n, createElementBlock as c, createVNode as i, unref as e, createCommentVNode as F, normalizeClass as ne, watch as ce, onMounted as pe, Suspense as me, toDisplayString as ee, withDirectives as W, vShow as j, Fragment as fe, renderList as ve, isRef as g, createApp as ge } from "vue";
2
- import { d as be, u as ye, s as Q, c as re, H as U, e as J, i as ae, S as Y, h as he, f as ke, J as Ce, l as se, b as _e, I as Ve, C as z, _ as de, m as Fe, j as Pe, L as le, T as H, k as we, q as Te, t as Se, D as Ue } from "./SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js";
3
- import { C as $e } from "./Container-Fl2PKj-u.js";
4
- import { a as Ee, C as te, P as qe, _ as Ie } from "./CheckoutWindow-S9xKe_Wf.js";
5
- import { E as Re } from "./_-FAlGPZqe.js";
6
- import { F as x } from "./Field-b7XkSAoi.js";
7
- import "./_commonjsHelpers-f3sTPFkQ.js";
8
- const oe = be("giftCard", () => {
9
- const { pay: h } = ye(), { bearerToken: p, metaData: R, currencyId: o } = Q(re()), d = b(U.InitialState), P = J("konnectio_name", "", void 0, { serializer: Y.string }), u = J("konnectio_email", "", void 0, { serializer: Y.string }), m = J("konnectio_phone", "", void 0, { serializer: Y.string }), k = b(""), w = b(1), T = b(!0), G = b(""), v = b({
1
+ var ve = Object.defineProperty;
2
+ var ae = Object.getOwnPropertySymbols;
3
+ var ge = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
4
+ var le = (u, t, r) => t in u ? ve(u, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : u[t] = r, te = (u, t) => {
5
+ for (var r in t || (t = {}))
6
+ ge.call(t, r) && le(u, r, t[r]);
7
+ if (ae)
8
+ for (var r of ae(t))
9
+ be.call(t, r) && le(u, r, t[r]);
10
+ return u;
11
+ };
12
+ var J = (u, t, r) => new Promise((o, s) => {
13
+ var h = (m) => {
14
+ try {
15
+ v(r.next(m));
16
+ } catch (g) {
17
+ s(g);
18
+ }
19
+ }, f = (m) => {
20
+ try {
21
+ v(r.throw(m));
22
+ } catch (g) {
23
+ s(g);
24
+ }
25
+ }, v = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(h, f);
26
+ v((r = r.apply(u, t)).next());
27
+ });
28
+ import { ref as _, computed as V, defineComponent as Z, openBlock as p, createBlock as L, withCtx as D, createElementVNode as d, createElementBlock as b, createVNode as n, unref as e, createCommentVNode as T, normalizeClass as ue, watch as ye, onMounted as he, Suspense as ke, toDisplayString as oe, withDirectives as W, vShow as j, Fragment as Ce, renderList as _e, isRef as C, createApp as Ve } from "vue";
29
+ import { d as Fe, u as Pe, s as X, c as ce, H as $, e as Y, i as ie, S as Q, h as we, f as Te, J as Se, l as pe, b as Ue, I as $e, C as z, _ as me, m as Ee, j as qe, L as ne, T as H, k as Ie, q as Re, t as Le, D as Ge } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
30
+ import { C as Me } from "./Container-gHSYMY7q.js";
31
+ import { a as xe, C as re, P as De, _ as ze } from "./CheckoutWindow-31th413C.js";
32
+ import { E as Ae } from "./_-FedWhJCw.js";
33
+ import { F as x } from "./Field-QHvFgmEq.js";
34
+ import "./_commonjsHelpers-FF1eOqK0.js";
35
+ const se = Fe("giftCard", () => {
36
+ const { pay: u } = Pe(), { bearerToken: t, metaData: r, currencyId: o } = X(ce()), s = _($.InitialState), h = Y("konnectio_name", "", void 0, { serializer: Q.string }), f = Y("konnectio_email", "", void 0, { serializer: Q.string }), v = Y("konnectio_phone", "", void 0, { serializer: Q.string }), m = _(""), g = _(1), S = _(!0), G = _(""), k = _({
10
37
  base64: "",
11
38
  type: "",
12
39
  name: ""
13
- }), l = b(void 0), r = b(0), f = b(!1), E = b(0), C = y(() => d.value === U.InitialState || d.value === U.WaitingForResponse), q = y(() => d.value === U.ReadyToPay), M = y(() => d.value === U.PaymentSuccess), _ = y(() => {
40
+ }), l = _(void 0), c = _(0), y = _(!1), q = _(0), F = V(() => s.value === $.InitialState || s.value === $.WaitingForResponse), I = V(() => s.value === $.ReadyToPay), M = V(() => s.value === $.PaymentSuccess), P = V(() => {
14
41
  const a = {
15
42
  1: {
16
- label: ae.t("giftCard.hotelType"),
43
+ label: ie.t("giftCard.hotelType"),
17
44
  data: []
18
45
  },
19
46
  2: {
20
- label: ae.t("giftCard.restaurantType"),
47
+ label: ie.t("giftCard.restaurantType"),
21
48
  data: []
22
49
  }
23
- }, S = R.value.hotels[0].places;
24
- return S && S.forEach((V) => {
25
- a[V.placeType].data.push(V);
50
+ }, U = r.value.hotels[0].places;
51
+ return U && U.forEach((w) => {
52
+ a[w.placeType].data.push(w);
26
53
  }), Object.fromEntries(
27
- Object.entries(a).filter(([, V]) => V.data.length > 0)
54
+ Object.entries(a).filter(([, w]) => w.data.length > 0)
28
55
  );
29
- }), A = y(() => E.value !== 0), $ = y(() => {
56
+ }), A = V(() => q.value !== 0), E = V(() => {
30
57
  let a;
31
58
  if (A.value)
32
- a = _.value[E.value].data[0];
33
- else if (r.value !== 0) {
34
- const S = l.value, V = _.value[r.value].data;
35
- V.length === 1 ? a = V[0] : S !== void 0 && V.forEach((Z) => {
36
- String(Z.id) === String(S) && (a = Z);
59
+ a = P.value[q.value].data[0];
60
+ else if (c.value !== 0) {
61
+ const U = l.value, w = P.value[c.value].data;
62
+ w.length === 1 ? a = w[0] : U !== void 0 && w.forEach((ee) => {
63
+ String(ee.id) === String(U) && (a = ee);
37
64
  });
38
65
  }
39
66
  return a;
40
- }), B = y(() => !(!P.value || !u.value || !(m.value.length >= 5) || !k.value || $.value === void 0)), O = y(() => !(d.value === U.InitialState && f.value)), K = y(() => !!(d.value === U.WaitingForResponse && f.value));
41
- async function I() {
42
- d.value = U.WaitingForResponse, f.value = !0, await he.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
43
- termsOfserviceURL: window.location.origin,
44
- checkoutUrl: window.location.origin,
45
- currencyID: o.value,
46
- language: ke(),
47
- amount: k.value,
48
- quantity: w.value,
49
- freeText: G.value,
50
- showPrice: T.value,
51
- contactName: P.value,
52
- contactEmail: u.value,
53
- contactPhone: m.value,
54
- imageBase64: Ce(v.value.base64),
55
- imageName: v.value.name,
56
- imageFormat: v.value.type,
57
- placeType: $.value ? $.value.placeType : void 0,
58
- placeID: $.value ? $.value.id : void 0
59
- }, {
60
- headers: {
61
- Authorization: p.value,
62
- Accept: "application/json",
63
- "Fresh-Booking-Ver": "4.0.56-rc2"
64
- }
65
- }).then((a) => {
66
- d.value = U.ReadyToPay, f.value = !1, h({
67
- callback: () => console.log("Callback!"),
68
- response: a.data
67
+ }), B = V(() => !(!h.value || !f.value || !(v.value.length >= 5) || !m.value || E.value === void 0)), O = V(() => !(s.value === $.InitialState && y.value)), K = V(() => !!(s.value === $.WaitingForResponse && y.value));
68
+ function R() {
69
+ return J(this, null, function* () {
70
+ s.value = $.WaitingForResponse, y.value = !0, yield we.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
71
+ termsOfserviceURL: window.location.origin,
72
+ checkoutUrl: window.location.origin,
73
+ currencyID: o.value,
74
+ language: Te(),
75
+ amount: m.value,
76
+ quantity: g.value,
77
+ freeText: G.value,
78
+ showPrice: S.value,
79
+ contactName: h.value,
80
+ contactEmail: f.value,
81
+ contactPhone: v.value,
82
+ imageBase64: Se(k.value.base64),
83
+ imageName: k.value.name,
84
+ imageFormat: k.value.type,
85
+ placeType: E.value ? E.value.placeType : void 0,
86
+ placeID: E.value ? E.value.id : void 0
87
+ }, {
88
+ headers: {
89
+ Authorization: t.value,
90
+ Accept: "application/json",
91
+ "Fresh-Booking-Ver": "4.0.56-rc3"
92
+ }
93
+ }).then((a) => {
94
+ s.value = $.ReadyToPay, y.value = !1, u({
95
+ callback: () => console.log("Callback!"),
96
+ response: a.data
97
+ });
69
98
  });
70
99
  });
71
100
  }
72
- function t(a) {
73
- a && (E.value = a);
101
+ function i(a) {
102
+ a && (q.value = a);
74
103
  }
75
104
  return {
76
- selectedPlace: $,
77
- moduleState: d,
78
- name: P,
79
- email: u,
80
- phone: m,
81
- value: k,
105
+ selectedPlace: E,
106
+ moduleState: s,
107
+ name: h,
108
+ email: f,
109
+ phone: v,
110
+ value: m,
82
111
  remark: G,
83
- showValue: T,
84
- quantity: w,
85
- media: v,
112
+ showValue: S,
113
+ quantity: g,
114
+ media: k,
86
115
  placeId: l,
87
- placeType: r,
88
- showFormPage: C,
89
- showPaymentPage: q,
116
+ placeType: c,
117
+ showFormPage: F,
118
+ showPaymentPage: I,
90
119
  showConfirmationPage: M,
91
- places: _,
120
+ places: P,
92
121
  hasFilledForm: B,
93
122
  hasForcedPlaceType: A,
94
123
  isWaitingForResponse: K,
95
124
  isMetaDataAvailable: O,
96
- orderGiftCard: I,
97
- initialize: t
125
+ orderGiftCard: R,
126
+ initialize: i
98
127
  };
99
- }), Le = { class: "media-selector" }, Ge = ["accept"], Me = { class: "media-selector-wrapper" }, xe = { class: "media-selector-tools" }, De = { key: 0 }, ze = { key: 1 }, Ae = { key: 2 }, Be = ["src"], We = /* @__PURE__ */ X({
128
+ }), Be = { class: "media-selector" }, We = ["accept"], je = { class: "media-selector-wrapper" }, He = { class: "media-selector-tools" }, Ne = { key: 0 }, Oe = { key: 1 }, Ke = { key: 2 }, Je = ["src"], Ye = /* @__PURE__ */ Z({
100
129
  __name: "MediaSelector",
101
130
  props: {
102
131
  modelValue: {},
@@ -106,94 +135,96 @@ const oe = be("giftCard", () => {
106
135
  required: { type: Boolean, default: !1 }
107
136
  },
108
137
  emits: ["update:modelValue"],
109
- setup(h, { emit: p }) {
110
- const R = p, o = h, { t: d } = se(), { display: P } = _e(), u = b(), m = y(() => o.modelValue.base64 !== "");
111
- function k(l) {
112
- R("update:modelValue", l);
138
+ setup(u, { emit: t }) {
139
+ const r = t, o = u, { t: s } = pe(), { display: h } = Ue(), f = _(), v = V(() => o.modelValue.base64 !== "");
140
+ function m(l) {
141
+ r("update:modelValue", l);
113
142
  }
114
- function w() {
115
- k({
143
+ function g() {
144
+ m({
116
145
  base64: "",
117
146
  name: "",
118
147
  type: ""
119
- }), u.value && (u.value.value = "");
148
+ }), f.value && (f.value.value = "");
120
149
  }
121
- function T() {
122
- u.value && u.value.click();
150
+ function S() {
151
+ f.value && f.value.click();
123
152
  }
124
- function G(l, r) {
125
- const [f, E] = [l.name, l.type], C = new FileReader();
126
- C.onload = function(q) {
127
- if (q.target) {
128
- const M = q.target.result;
129
- r({ base64: M, name: f, type: E });
153
+ function G(l, c) {
154
+ const [y, q] = [l.name, l.type], F = new FileReader();
155
+ F.onload = function(I) {
156
+ if (I.target) {
157
+ const M = I.target.result;
158
+ c({ base64: M, name: y, type: q });
130
159
  } else
131
- P({
132
- message: d("imageUploadError"),
160
+ h({
161
+ message: s("imageUploadError"),
133
162
  type: "error"
134
163
  });
135
- }, C.readAsDataURL(l);
164
+ }, F.readAsDataURL(l);
136
165
  }
137
- async function v() {
138
- let l;
139
- (l = u.value.files) instanceof FileList && G(l[0], k);
166
+ function k() {
167
+ return J(this, null, function* () {
168
+ let l;
169
+ (l = f.value.files) instanceof FileList && G(l[0], m);
170
+ });
140
171
  }
141
- return (l, r) => (s(), L(Ve, {
172
+ return (l, c) => (p(), L($e, {
142
173
  label: l.label,
143
174
  required: l.required,
144
175
  type: "media"
145
176
  }, {
146
177
  default: D(() => [
147
- n("div", Le, [
148
- n("input", {
178
+ d("div", Be, [
179
+ d("input", {
149
180
  ref_key: "fileInput",
150
- ref: u,
181
+ ref: f,
151
182
  type: "file",
152
183
  class: "hidden",
153
184
  accept: l.validation,
154
185
  single: "",
155
- onChange: r[0] || (r[0] = (f) => v())
156
- }, null, 40, Ge),
157
- n("div", Me, [
158
- n("ul", xe, [
159
- m.value ? F("", !0) : (s(), c("li", De, [
160
- i(z, {
161
- label: e(d)("uploadFile"),
186
+ onChange: c[0] || (c[0] = (y) => k())
187
+ }, null, 40, We),
188
+ d("div", je, [
189
+ d("ul", He, [
190
+ v.value ? T("", !0) : (p(), b("li", Ne, [
191
+ n(z, {
192
+ label: e(s)("uploadFile"),
162
193
  type: "button",
163
194
  icon: "upload",
164
195
  "icon-color": l.iconColor,
165
- onClickEvent: r[1] || (r[1] = (f) => T())
196
+ onClickEvent: c[1] || (c[1] = (y) => S())
166
197
  }, null, 8, ["label", "icon-color"])
167
198
  ])),
168
- m.value ? (s(), c("li", ze, [
169
- i(z, {
170
- label: e(d)("replaceFile"),
199
+ v.value ? (p(), b("li", Oe, [
200
+ n(z, {
201
+ label: e(s)("replaceFile"),
171
202
  type: "button",
172
203
  icon: "repeat-alt",
173
204
  "icon-color": l.iconColor,
174
- onClickEvent: r[2] || (r[2] = (f) => T())
205
+ onClickEvent: c[2] || (c[2] = (y) => S())
175
206
  }, null, 8, ["label", "icon-color"])
176
- ])) : F("", !0),
177
- m.value ? (s(), c("li", Ae, [
178
- i(z, {
179
- label: e(d)("removeFile"),
207
+ ])) : T("", !0),
208
+ v.value ? (p(), b("li", Ke, [
209
+ n(z, {
210
+ label: e(s)("removeFile"),
180
211
  type: "button",
181
212
  icon: "trash-alt",
182
213
  "icon-color": l.iconColor,
183
- onClickEvent: r[3] || (r[3] = (f) => w())
214
+ onClickEvent: c[3] || (c[3] = (y) => g())
184
215
  }, null, 8, ["label", "icon-color"])
185
- ])) : F("", !0)
216
+ ])) : T("", !0)
186
217
  ]),
187
- n("div", {
188
- class: ne([
218
+ d("div", {
219
+ class: ue([
189
220
  "media-selector-previewer",
190
- { opened: m.value }
221
+ { opened: v.value }
191
222
  ])
192
223
  }, [
193
- l.modelValue ? (s(), c("img", {
224
+ l.modelValue ? (p(), b("img", {
194
225
  key: 0,
195
226
  src: l.modelValue.base64
196
- }, null, 8, Be)) : F("", !0)
227
+ }, null, 8, Je)) : T("", !0)
197
228
  ], 2)
198
229
  ])
199
230
  ])
@@ -202,9 +233,9 @@ const oe = be("giftCard", () => {
202
233
  }, 8, ["label", "required"]));
203
234
  }
204
235
  });
205
- function ie(h) {
206
- const p = h;
207
- p.__i18n = p.__i18n || [], p.__i18n.push({
236
+ function de(u) {
237
+ const t = u;
238
+ t.__i18n = t.__i18n || [], t.__i18n.push({
208
239
  locale: "",
209
240
  resource: {
210
241
  da: {
@@ -222,39 +253,39 @@ function ie(h) {
222
253
  }
223
254
  });
224
255
  }
225
- typeof ie == "function" && ie(We);
226
- const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ X({
256
+ typeof de == "function" && de(Ye);
257
+ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-form" }, Ze = /* @__PURE__ */ Z({
227
258
  __name: "GiftCardSkeleton",
228
- setup(h) {
229
- return (p, R) => (s(), c("div", je, [
230
- n("div", He, [
231
- i(x),
232
- i(x),
233
- i(x),
234
- i(x),
235
- i(x, { "is-text-area": "" }),
236
- i(Re, { height: "44px" })
259
+ setup(u) {
260
+ return (t, r) => (p(), b("div", Qe, [
261
+ d("div", Xe, [
262
+ n(x),
263
+ n(x),
264
+ n(x),
265
+ n(x),
266
+ n(x, { "is-text-area": "" }),
267
+ n(Ae, { height: "44px" })
237
268
  ])
238
269
  ]));
239
270
  }
240
- }), Oe = /* @__PURE__ */ de(Ne, [["__scopeId", "data-v-e35c75b3"]]), Ke = {
271
+ }), ea = /* @__PURE__ */ me(Ze, [["__scopeId", "data-v-e35c75b3"]]), aa = {
241
272
  key: 0,
242
273
  id: "konnectio-gift-card-wrapper"
243
- }, Je = { id: "konnectio-gift-card-title" }, Ye = { id: "konnectio-gift-card-content" }, Qe = { id: "konnectio-gift-card-payment" }, Xe = ["innerHTML"], Ze = { key: 0 }, ea = {
274
+ }, la = { id: "konnectio-gift-card-title" }, ta = { id: "konnectio-gift-card-content" }, oa = { id: "konnectio-gift-card-payment" }, ia = ["innerHTML"], na = { key: 0 }, ra = {
244
275
  key: 0,
245
276
  id: "fresh-booking-select-place-type"
246
- }, aa = {
247
- class: /* @__PURE__ */ ne(["fresh-booking-label", "required"])
248
- }, la = { id: "fresh-booking-select-place-type-input" }, ta = ["innerHTML"], oa = {
277
+ }, sa = {
278
+ class: /* @__PURE__ */ ue(["fresh-booking-label", "required"])
279
+ }, da = { id: "fresh-booking-select-place-type-input" }, ua = ["innerHTML"], ca = {
249
280
  key: 0,
250
281
  id: "konnectio-gift-card-order"
251
- }, ia = { class: "fresh-booking-panel" }, na = {
282
+ }, pa = { class: "fresh-booking-panel" }, ma = {
252
283
  key: 1,
253
284
  id: "konnectio-gift-card-remarks"
254
- }, ra = {
285
+ }, fa = {
255
286
  key: 2,
256
287
  id: "konnectio-gift-card-order-minimal"
257
- }, sa = { id: "konnectio-gift-card-recaptcha" }, da = /* @__PURE__ */ X({
288
+ }, va = { id: "konnectio-gift-card-recaptcha" }, ga = /* @__PURE__ */ Z({
258
289
  name: "GiftCardLayout",
259
290
  __name: "GiftCard",
260
291
  props: {
@@ -263,96 +294,95 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
263
294
  placeType: {},
264
295
  styling: {}
265
296
  },
266
- setup(h) {
267
- const p = h, R = y(() => ({
268
- panelMaxWidth: "800px",
269
- ...p.styling
270
- })), { t: o } = se(), {
271
- name: d,
272
- email: P,
273
- phone: u,
274
- value: m,
275
- remark: k,
276
- showValue: w,
277
- quantity: T,
297
+ setup(u) {
298
+ const t = u, r = V(() => te({
299
+ panelMaxWidth: "800px"
300
+ }, t.styling)), { t: o } = pe(), {
301
+ name: s,
302
+ email: h,
303
+ phone: f,
304
+ value: v,
305
+ remark: m,
306
+ showValue: g,
307
+ quantity: S,
278
308
  media: G,
279
- placeId: v,
309
+ placeId: k,
280
310
  placeType: l,
281
- showFormPage: r,
282
- showPaymentPage: f,
283
- showConfirmationPage: E,
284
- places: C,
285
- hasFilledForm: q,
311
+ showFormPage: c,
312
+ showPaymentPage: y,
313
+ showConfirmationPage: q,
314
+ places: F,
315
+ hasFilledForm: I,
286
316
  hasForcedPlaceType: M,
287
- isWaitingForResponse: _,
317
+ isWaitingForResponse: P,
288
318
  isMetaDataAvailable: A
289
- } = Q(oe()), { initialize: $, orderGiftCard: B } = oe(), { isRecaptchaEnabled: O, currency: K } = Q(re());
290
- return ce(l, () => {
291
- v.value = void 0;
292
- }), pe(() => {
293
- const I = p.placeType ? parseInt(p.placeType) : void 0;
294
- $(I);
295
- }), (I, t) => (s(), L($e, { styling: R.value }, {
319
+ } = X(se()), { initialize: E, orderGiftCard: B } = se(), { isRecaptchaEnabled: O, currency: K } = X(ce());
320
+ return ye(l, () => {
321
+ k.value = void 0;
322
+ }), he(() => {
323
+ const R = t.placeType ? parseInt(t.placeType) : void 0;
324
+ E(R);
325
+ }), (R, i) => (p(), L(Me, { styling: r.value }, {
296
326
  default: D(() => [
297
- (s(), L(me, null, {
327
+ (p(), L(ke, null, {
298
328
  default: D(() => [
299
- i(Fe, {
329
+ n(Ee, {
300
330
  id: "konnectio-gift-card-module",
301
331
  type: "gift-card",
302
- "access-token": I.accessToken,
303
- "data-layout": I.layout
332
+ "access-token": R.accessToken,
333
+ "data-layout": R.layout
304
334
  }, {
305
335
  default: D(() => [
306
- e(A) ? (s(), c("div", Ke, [
307
- n("h2", Je, [
308
- n("span", null, ee(e(o)("giftCard.title")), 1)
336
+ e(A) ? (p(), b("div", aa, [
337
+ d("h2", la, [
338
+ d("span", null, oe(e(o)("giftCard.title")), 1)
309
339
  ]),
310
- n("div", Ye, [
311
- W(n("div", Qe, [
312
- i(Ee)
340
+ d("div", ta, [
341
+ W(d("div", oa, [
342
+ n(xe)
313
343
  ], 512), [
314
- [j, e(f)]
344
+ [j, e(y)]
315
345
  ]),
316
- W(n("div", null, [
317
- n("p", {
346
+ W(d("div", null, [
347
+ d("p", {
318
348
  id: "konnectio-gift-card-description",
319
349
  innerHTML: e(o)("giftCard.description")
320
- }, null, 8, Xe),
321
- n("form", null, [
322
- e(M) ? F("", !0) : (s(), c("div", Ze, [
323
- e(C) ? (s(), c("div", ea, [
324
- n("label", aa, [
325
- n("span", null, ee(e(o)("giftCard.selectType")), 1)
350
+ }, null, 8, ia),
351
+ d("form", null, [
352
+ e(M) ? T("", !0) : (p(), b("div", na, [
353
+ e(F) ? (p(), b("div", ra, [
354
+ d("label", sa, [
355
+ d("span", null, oe(e(o)("giftCard.selectType")), 1)
326
356
  ]),
327
- n("div", la, [
328
- n("ul", null, [
329
- (s(!0), c(fe, null, ve(e(C), (a, S) => (s(), c("li", { key: S }, [
330
- i(te, {
357
+ d("div", da, [
358
+ d("ul", null, [
359
+ (p(!0), b(Ce, null, _e(e(F), (a, U) => (p(), b("li", { key: U }, [
360
+ n(re, {
331
361
  modelValue: e(l),
332
- "onUpdate:modelValue": t[0] || (t[0] = (V) => g(l) ? l.value = V : null),
362
+ "onUpdate:modelValue": i[0] || (i[0] = (w) => C(l) ? l.value = w : null),
333
363
  type: "radio",
334
364
  name: "placeType",
335
- val: S,
365
+ val: U,
336
366
  label: a.label
337
367
  }, null, 8, ["modelValue", "val", "label"])
338
368
  ]))), 128))
339
369
  ]),
340
- e(C)[e(l)] && e(C)[e(l)].data.length > 1 ? (s(), L(Pe, {
370
+ e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (p(), L(qe, {
341
371
  key: 0,
342
- modelValue: e(v),
343
- "onUpdate:modelValue": t[1] || (t[1] = (a) => g(v) ? v.value = a : null),
372
+ modelValue: e(k),
373
+ "onUpdate:modelValue": i[1] || (i[1] = (a) => C(k) ? k.value = a : null),
344
374
  placeholder: e(o)("giftCard.selectPlacePlaceholder"),
345
- options: e(C)[e(l)].data,
375
+ options: e(F)[e(l)].data,
346
376
  labelKey: "name",
347
377
  valueKey: "id",
348
378
  required: ""
349
- }, null, 8, ["modelValue", "placeholder", "options"])) : F("", !0)
379
+ }, null, 8, ["modelValue", "placeholder", "options"])) : T("", !0)
350
380
  ])
351
- ])) : (s(), L(le, { key: 1 }))
381
+ ])) : (p(), L(ne, { key: 1 }))
352
382
  ])),
353
- i(H, {
354
- modelValue: e(d),
355
- "onUpdate:modelValue": t[2] || (t[2] = (a) => g(d) ? d.value = a : null),
383
+ n(H, {
384
+ modelValue: e(s),
385
+ "onUpdate:modelValue": i[2] || (i[2] = (a) => C(s) ? s.value = a : null),
356
386
  type: "text",
357
387
  name: "name",
358
388
  autocomplete: "name",
@@ -361,9 +391,9 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
361
391
  placeholder: e(o)("giftCard.namePlaceholder"),
362
392
  required: ""
363
393
  }, null, 8, ["modelValue", "label", "placeholder"]),
364
- i(H, {
365
- modelValue: e(P),
366
- "onUpdate:modelValue": t[3] || (t[3] = (a) => g(P) ? P.value = a : null),
394
+ n(H, {
395
+ modelValue: e(h),
396
+ "onUpdate:modelValue": i[3] || (i[3] = (a) => C(h) ? h.value = a : null),
367
397
  type: "email",
368
398
  name: "email",
369
399
  autocomplete: "email",
@@ -372,17 +402,17 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
372
402
  placeholder: e(o)("giftCard.emailPlaceholder"),
373
403
  required: ""
374
404
  }, null, 8, ["modelValue", "label", "placeholder"]),
375
- i(qe, {
376
- modelValue: e(u),
377
- "onUpdate:modelValue": t[4] || (t[4] = (a) => g(u) ? u.value = a : null),
405
+ n(De, {
406
+ modelValue: e(f),
407
+ "onUpdate:modelValue": i[4] || (i[4] = (a) => C(f) ? f.value = a : null),
378
408
  icon: "phone-office",
379
409
  label: e(o)("giftCard.phone"),
380
410
  placeholder: e(o)("giftCard.phonePlaceholder"),
381
411
  required: ""
382
412
  }, null, 8, ["modelValue", "label", "placeholder"]),
383
- i(H, {
384
- modelValue: e(m),
385
- "onUpdate:modelValue": t[5] || (t[5] = (a) => g(m) ? m.value = a : null),
413
+ n(H, {
414
+ modelValue: e(v),
415
+ "onUpdate:modelValue": i[5] || (i[5] = (a) => C(v) ? v.value = a : null),
386
416
  type: "number",
387
417
  name: "value",
388
418
  label: e(o)("giftCard.value"),
@@ -391,80 +421,80 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
391
421
  suffix: e(K),
392
422
  required: ""
393
423
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
394
- i(te, {
395
- modelValue: e(w),
396
- "onUpdate:modelValue": t[6] || (t[6] = (a) => g(w) ? w.value = a : null),
424
+ n(re, {
425
+ modelValue: e(g),
426
+ "onUpdate:modelValue": i[6] || (i[6] = (a) => C(g) ? g.value = a : null),
397
427
  type: "checkbox",
398
428
  name: "showValue",
399
429
  label: e(o)("giftCard.showValue"),
400
- checked: e(w)
430
+ checked: e(g)
401
431
  }, null, 8, ["modelValue", "label", "checked"]),
402
- F("", !0),
403
- i(we, {
404
- modelValue: e(T),
405
- "onUpdate:modelValue": t[8] || (t[8] = (a) => g(T) ? T.value = a : null),
432
+ T("", !0),
433
+ n(Ie, {
434
+ modelValue: e(S),
435
+ "onUpdate:modelValue": i[8] || (i[8] = (a) => C(S) ? S.value = a : null),
406
436
  label: e(o)("giftCard.quantity"),
407
437
  icon: "gift-card",
408
438
  required: ""
409
439
  }, null, 8, ["modelValue", "label"])
410
440
  ])
411
441
  ], 512), [
412
- [j, e(r)]
442
+ [j, e(c)]
413
443
  ]),
414
- W(n("div", null, [
415
- n("div", {
444
+ W(d("div", null, [
445
+ d("div", {
416
446
  innerHTML: e(o)("giftCard.thankYou")
417
- }, null, 8, ta)
447
+ }, null, 8, ua)
418
448
  ], 512), [
419
- [j, e(E)]
449
+ [j, e(q)]
420
450
  ])
421
451
  ]),
422
- I.layout !== "minimal" && e(r) ? (s(), c("div", oa, [
423
- n("div", ia, [
424
- i(z, {
452
+ R.layout !== "minimal" && e(c) ? (p(), b("div", ca, [
453
+ d("div", pa, [
454
+ n(z, {
425
455
  label: e(o)("giftCard.orderGiftCard"),
426
456
  "full-width": !0,
427
- disabled: !e(q),
428
- "is-loading": e(_),
429
- "onUpdate:isLoading": t[9] || (t[9] = (a) => g(_) ? _.value = a : null),
457
+ disabled: !e(I),
458
+ "is-loading": e(P),
459
+ "onUpdate:isLoading": i[9] || (i[9] = (a) => C(P) ? P.value = a : null),
430
460
  onClickEvent: e(B)
431
461
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
432
462
  ])
433
- ])) : F("", !0),
434
- e(r) ? (s(), c("div", na, [
435
- i(H, {
436
- modelValue: e(k),
437
- "onUpdate:modelValue": t[10] || (t[10] = (a) => g(k) ? k.value = a : null),
463
+ ])) : T("", !0),
464
+ e(c) ? (p(), b("div", ma, [
465
+ n(H, {
466
+ modelValue: e(m),
467
+ "onUpdate:modelValue": i[10] || (i[10] = (a) => C(m) ? m.value = a : null),
438
468
  type: "textarea",
439
469
  name: "remark",
440
470
  label: e(o)("giftCard.remark"),
441
471
  icon: "info-circle",
442
472
  placeholder: e(o)("giftCard.remarkPlaceholder")
443
473
  }, null, 8, ["modelValue", "label", "placeholder"])
444
- ])) : F("", !0),
445
- e(r) ? (s(), c("div", ra, [
446
- i(z, {
474
+ ])) : T("", !0),
475
+ e(c) ? (p(), b("div", fa, [
476
+ n(z, {
447
477
  label: e(o)("giftCard.orderGiftCard"),
448
478
  "full-width": !0,
449
- disabled: !e(q),
479
+ disabled: !e(I),
450
480
  "data-test": "orderGiftCard",
451
- "is-loading": e(_),
452
- "onUpdate:isLoading": t[11] || (t[11] = (a) => g(_) ? _.value = a : null),
481
+ "is-loading": e(P),
482
+ "onUpdate:isLoading": i[11] || (i[11] = (a) => C(P) ? P.value = a : null),
453
483
  onClickEvent: e(B)
454
484
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
455
- W(n("div", sa, [
456
- i(Ie)
485
+ W(d("div", va, [
486
+ n(ze)
457
487
  ], 512), [
458
488
  [j, e(O)]
459
489
  ])
460
- ])) : F("", !0)
461
- ])) : (s(), L(le, { key: 1 }))
490
+ ])) : T("", !0)
491
+ ])) : (p(), L(ne, { key: 1 }))
462
492
  ]),
463
493
  _: 1
464
494
  }, 8, ["access-token", "data-layout"])
465
495
  ]),
466
496
  fallback: D(() => [
467
- i(Oe)
497
+ n(ea)
468
498
  ]),
469
499
  _: 1
470
500
  }))
@@ -472,16 +502,16 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
472
502
  _: 1
473
503
  }, 8, ["styling"]));
474
504
  }
475
- }), ue = /* @__PURE__ */ de(da, [["__scopeId", "data-v-ec9ea15b"]]), ua = Te(), N = ge({ components: { GiftCard: ue } });
476
- N.use(ua);
477
- N.use(Se);
478
- N.use(Ue, { bootstrap: !0 });
505
+ }), fe = /* @__PURE__ */ me(ga, [["__scopeId", "data-v-ec9ea15b"]]), ba = Re(), N = Ve({ components: { GiftCard: fe } });
506
+ N.use(ba);
507
+ N.use(Le);
508
+ N.use(Ge, { bootstrap: !0 });
479
509
  N.mount("#konnectio-gift-card-app");
480
- const ya = {
481
- install: (h) => {
482
- h.component("GiftCard", ue);
510
+ const wa = {
511
+ install: (u) => {
512
+ u.component("GiftCard", fe);
483
513
  }
484
514
  };
485
515
  export {
486
- ya as default
516
+ wa as default
487
517
  };