@konnectio/core 4.0.56-rc4 → 4.0.56-rc5

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 (46) hide show
  1. package/dist/{ActionField-UFZMmHDy.js → ActionField--byx0Lp1.js} +27 -28
  2. package/dist/ActionField--byx0Lp1.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-cL6E9wAp.js +239 -0
  4. package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
  5. package/dist/{CheckoutWindow-2RMgPiGi.js → CheckoutWindow-_ZUCAYgm.js} +46 -47
  6. package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
  7. package/dist/{Container-XBRB0sOV.js → Container-6UeOakwz.js} +6 -7
  8. package/dist/Container-6UeOakwz.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js → DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js} +5 -6
  10. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
  11. package/dist/{Field-uK3Wuuv6.js → Field-GdMucFcQ.js} +12 -13
  12. package/dist/Field-GdMucFcQ.js.br +5 -0
  13. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +27240 -0
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
  15. package/dist/{ThankYou-nz4vPX4O.js → ThankYou-9pzt2SfJ.js} +1829 -1670
  16. package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
  17. package/dist/_-5uiOrU07.js +19 -0
  18. package/dist/_commonjsHelpers-4t9S7M5p.js +30 -0
  19. package/dist/availability.js +34 -35
  20. package/dist/availability.js.br +0 -0
  21. package/dist/{event--wgsUkQp.js → event-jnP6wH4w.js} +53 -54
  22. package/dist/event-jnP6wH4w.js.br +0 -0
  23. package/dist/event.js +212 -213
  24. package/dist/event.js.br +0 -0
  25. package/dist/gift-card-validation.js +57 -58
  26. package/dist/gift-card-validation.js.br +0 -0
  27. package/dist/gift-card.js +106 -107
  28. package/dist/gift-card.js.br +0 -0
  29. package/dist/hotel.js +916 -906
  30. package/dist/hotel.js.br +0 -0
  31. package/dist/polyfill.js +2 -2
  32. package/dist/polyfill.js.br +0 -0
  33. package/package.json +1 -1
  34. package/dist/ActionField-UFZMmHDy.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
  36. package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
  37. package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
  38. package/dist/Container-XBRB0sOV.js.br +0 -0
  39. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
  40. package/dist/Field-uK3Wuuv6.js.br +0 -0
  41. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js +0 -21472
  42. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
  43. package/dist/ThankYou-nz4vPX4O.js.br +0 -0
  44. package/dist/_-oPH7HiaC.js +0 -20
  45. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  46. package/dist/event--wgsUkQp.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,62 +1,61 @@
1
1
  var ve = Object.defineProperty;
2
2
  var ae = Object.getOwnPropertySymbols;
3
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]);
4
+ var le = (u, t, s) => t in u ? ve(u, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : u[t] = s, te = (u, t) => {
5
+ for (var s in t || (t = {}))
6
+ ge.call(t, s) && le(u, s, t[s]);
7
7
  if (ae)
8
- for (var r of ae(t))
9
- be.call(t, r) && le(u, r, t[r]);
8
+ for (var s of ae(t))
9
+ be.call(t, s) && le(u, s, t[s]);
10
10
  return u;
11
11
  };
12
- var J = (u, t, r) => new Promise((o, s) => {
12
+ var J = (u, t, s) => new Promise((o, r) => {
13
13
  var h = (m) => {
14
14
  try {
15
- v(r.next(m));
15
+ v(s.next(m));
16
16
  } catch (g) {
17
- s(g);
17
+ r(g);
18
18
  }
19
19
  }, f = (m) => {
20
20
  try {
21
- v(r.throw(m));
21
+ v(s.throw(m));
22
22
  } catch (g) {
23
- s(g);
23
+ r(g);
24
24
  }
25
25
  }, v = (m) => m.done ? o(m.value) : Promise.resolve(m.value).then(h, f);
26
- v((r = r.apply(u, t)).next());
26
+ v((s = s.apply(u, t)).next());
27
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-3YCxOJhZ.js";
30
- import { C as Me } from "./Container-XBRB0sOV.js";
31
- import { a as xe, C as re, P as De, _ as ze } from "./CheckoutWindow-2RMgPiGi.js";
32
- import { E as Ae } from "./_-oPH7HiaC.js";
33
- import { F as x } from "./Field-uK3Wuuv6.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 = _({
28
+ import { d as ye, u as he, s as X, c as ue, r as _, ad as $, e as Y, f as V, j as oe, S as Q, i as ke, h as Ce, ae as _e, k as Z, F as ce, b as Ve, o as p, m as G, w as B, x as d, l as b, p as n, z as e, C as z, n as T, q as pe, I as Fe, _ as me, a2 as Pe, B as we, G as Te, H as ie, af as W, ag as j, a3 as Se, a4 as Ue, J as C, y as $e, a5 as ne, T as H, A as Ee, P as Re, V as qe, U as Ie, W as Ge, a9 as Le } from "./SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js";
29
+ import { C as Me } from "./Container-6UeOakwz.js";
30
+ import { a as xe, C as se, P as Be, _ as ze } from "./CheckoutWindow-_ZUCAYgm.js";
31
+ import { E as Ae } from "./_-5uiOrU07.js";
32
+ import { F as x } from "./Field-GdMucFcQ.js";
33
+ import "./_commonjsHelpers-4t9S7M5p.js";
34
+ const re = ye("giftCard", () => {
35
+ const { pay: u } = he(), { bearerToken: t, metaData: s, currencyId: o } = X(ue()), r = _($.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), L = _(""), k = _({
37
36
  base64: "",
38
37
  type: "",
39
38
  name: ""
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(() => {
39
+ }), l = _(void 0), c = _(0), y = _(!1), R = _(0), F = V(() => r.value === $.InitialState || r.value === $.WaitingForResponse), q = V(() => r.value === $.ReadyToPay), M = V(() => r.value === $.PaymentSuccess), P = V(() => {
41
40
  const a = {
42
41
  1: {
43
- label: ie.t("giftCard.hotelType"),
42
+ label: oe.t("giftCard.hotelType"),
44
43
  data: []
45
44
  },
46
45
  2: {
47
- label: ie.t("giftCard.restaurantType"),
46
+ label: oe.t("giftCard.restaurantType"),
48
47
  data: []
49
48
  }
50
- }, U = r.value.hotels[0].places;
49
+ }, U = s.value.hotels[0].places;
51
50
  return U && U.forEach((w) => {
52
51
  a[w.placeType].data.push(w);
53
52
  }), Object.fromEntries(
54
53
  Object.entries(a).filter(([, w]) => w.data.length > 0)
55
54
  );
56
- }), A = V(() => q.value !== 0), E = V(() => {
55
+ }), A = V(() => R.value !== 0), E = V(() => {
57
56
  let a;
58
57
  if (A.value)
59
- a = P.value[q.value].data[0];
58
+ a = P.value[R.value].data[0];
60
59
  else if (c.value !== 0) {
61
60
  const U = l.value, w = P.value[c.value].data;
62
61
  w.length === 1 ? a = w[0] : U !== void 0 && w.forEach((ee) => {
@@ -64,22 +63,22 @@ const se = Fe("giftCard", () => {
64
63
  });
65
64
  }
66
65
  return a;
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() {
66
+ }), D = V(() => !(!h.value || !f.value || !(v.value.length >= 5) || !m.value || E.value === void 0)), O = V(() => !(r.value === $.InitialState && y.value)), K = V(() => !!(r.value === $.WaitingForResponse && y.value));
67
+ function I() {
69
68
  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", {
69
+ r.value = $.WaitingForResponse, y.value = !0, yield ke.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
71
70
  termsOfserviceURL: window.location.origin,
72
71
  checkoutUrl: window.location.origin,
73
72
  currencyID: o.value,
74
- language: Te(),
73
+ language: Ce(),
75
74
  amount: m.value,
76
75
  quantity: g.value,
77
- freeText: G.value,
76
+ freeText: L.value,
78
77
  showPrice: S.value,
79
78
  contactName: h.value,
80
79
  contactEmail: f.value,
81
80
  contactPhone: v.value,
82
- imageBase64: Se(k.value.base64),
81
+ imageBase64: _e(k.value.base64),
83
82
  imageName: k.value.name,
84
83
  imageFormat: k.value.type,
85
84
  placeType: E.value ? E.value.placeType : void 0,
@@ -88,10 +87,10 @@ const se = Fe("giftCard", () => {
88
87
  headers: {
89
88
  Authorization: t.value,
90
89
  Accept: "application/json",
91
- "Fresh-Booking-Ver": "4.0.56-rc4"
90
+ "Fresh-Booking-Ver": "4.0.56-rc5"
92
91
  }
93
92
  }).then((a) => {
94
- s.value = $.ReadyToPay, y.value = !1, u({
93
+ r.value = $.ReadyToPay, y.value = !1, u({
95
94
  callback: () => console.log("Callback!"),
96
95
  response: a.data
97
96
  });
@@ -99,33 +98,33 @@ const se = Fe("giftCard", () => {
99
98
  });
100
99
  }
101
100
  function i(a) {
102
- a && (q.value = a);
101
+ a && (R.value = a);
103
102
  }
104
103
  return {
105
104
  selectedPlace: E,
106
- moduleState: s,
105
+ moduleState: r,
107
106
  name: h,
108
107
  email: f,
109
108
  phone: v,
110
109
  value: m,
111
- remark: G,
110
+ remark: L,
112
111
  showValue: S,
113
112
  quantity: g,
114
113
  media: k,
115
114
  placeId: l,
116
115
  placeType: c,
117
116
  showFormPage: F,
118
- showPaymentPage: I,
117
+ showPaymentPage: q,
119
118
  showConfirmationPage: M,
120
119
  places: P,
121
- hasFilledForm: B,
120
+ hasFilledForm: D,
122
121
  hasForcedPlaceType: A,
123
122
  isWaitingForResponse: K,
124
123
  isMetaDataAvailable: O,
125
- orderGiftCard: R,
124
+ orderGiftCard: I,
126
125
  initialize: i
127
126
  };
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({
127
+ }), De = { 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({
129
128
  __name: "MediaSelector",
130
129
  props: {
131
130
  modelValue: {},
@@ -136,9 +135,9 @@ const se = Fe("giftCard", () => {
136
135
  },
137
136
  emits: ["update:modelValue"],
138
137
  setup(u, { emit: t }) {
139
- const r = t, o = u, { t: s } = pe(), { display: h } = Ue(), f = _(), v = V(() => o.modelValue.base64 !== "");
138
+ const s = t, o = u, { t: r } = ce(), { display: h } = Ve(), f = _(), v = V(() => o.modelValue.base64 !== "");
140
139
  function m(l) {
141
- r("update:modelValue", l);
140
+ s("update:modelValue", l);
142
141
  }
143
142
  function g() {
144
143
  m({
@@ -150,15 +149,15 @@ const se = Fe("giftCard", () => {
150
149
  function S() {
151
150
  f.value && f.value.click();
152
151
  }
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 });
152
+ function L(l, c) {
153
+ const [y, R] = [l.name, l.type], F = new FileReader();
154
+ F.onload = function(q) {
155
+ if (q.target) {
156
+ const M = q.target.result;
157
+ c({ base64: M, name: y, type: R });
159
158
  } else
160
159
  h({
161
- message: s("imageUploadError"),
160
+ message: r("imageUploadError"),
162
161
  type: "error"
163
162
  });
164
163
  }, F.readAsDataURL(l);
@@ -166,16 +165,16 @@ const se = Fe("giftCard", () => {
166
165
  function k() {
167
166
  return J(this, null, function* () {
168
167
  let l;
169
- (l = f.value.files) instanceof FileList && G(l[0], m);
168
+ (l = f.value.files) instanceof FileList && L(l[0], m);
170
169
  });
171
170
  }
172
- return (l, c) => (p(), L($e, {
171
+ return (l, c) => (p(), G(Fe, {
173
172
  label: l.label,
174
173
  required: l.required,
175
174
  type: "media"
176
175
  }, {
177
- default: D(() => [
178
- d("div", Be, [
176
+ default: B(() => [
177
+ d("div", De, [
179
178
  d("input", {
180
179
  ref_key: "fileInput",
181
180
  ref: f,
@@ -189,7 +188,7 @@ const se = Fe("giftCard", () => {
189
188
  d("ul", He, [
190
189
  v.value ? T("", !0) : (p(), b("li", Ne, [
191
190
  n(z, {
192
- label: e(s)("uploadFile"),
191
+ label: e(r)("uploadFile"),
193
192
  type: "button",
194
193
  icon: "upload",
195
194
  "icon-color": l.iconColor,
@@ -198,7 +197,7 @@ const se = Fe("giftCard", () => {
198
197
  ])),
199
198
  v.value ? (p(), b("li", Oe, [
200
199
  n(z, {
201
- label: e(s)("replaceFile"),
200
+ label: e(r)("replaceFile"),
202
201
  type: "button",
203
202
  icon: "repeat-alt",
204
203
  "icon-color": l.iconColor,
@@ -207,7 +206,7 @@ const se = Fe("giftCard", () => {
207
206
  ])) : T("", !0),
208
207
  v.value ? (p(), b("li", Ke, [
209
208
  n(z, {
210
- label: e(s)("removeFile"),
209
+ label: e(r)("removeFile"),
211
210
  type: "button",
212
211
  icon: "trash-alt",
213
212
  "icon-color": l.iconColor,
@@ -216,7 +215,7 @@ const se = Fe("giftCard", () => {
216
215
  ])) : T("", !0)
217
216
  ]),
218
217
  d("div", {
219
- class: ue([
218
+ class: pe([
220
219
  "media-selector-previewer",
221
220
  { opened: v.value }
222
221
  ])
@@ -257,7 +256,7 @@ typeof de == "function" && de(Ye);
257
256
  const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-form" }, Ze = /* @__PURE__ */ Z({
258
257
  __name: "GiftCardSkeleton",
259
258
  setup(u) {
260
- return (t, r) => (p(), b("div", Qe, [
259
+ return (t, s) => (p(), b("div", Qe, [
261
260
  d("div", Xe, [
262
261
  n(x),
263
262
  n(x),
@@ -271,11 +270,11 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
271
270
  }), ea = /* @__PURE__ */ me(Ze, [["__scopeId", "data-v-e35c75b3"]]), aa = {
272
271
  key: 0,
273
272
  id: "konnectio-gift-card-wrapper"
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 = {
273
+ }, la = { id: "konnectio-gift-card-title" }, ta = { id: "konnectio-gift-card-content" }, oa = { id: "konnectio-gift-card-payment" }, ia = ["innerHTML"], na = { key: 0 }, sa = {
275
274
  key: 0,
276
275
  id: "fresh-booking-select-place-type"
277
- }, sa = {
278
- class: /* @__PURE__ */ ue(["fresh-booking-label", "required"])
276
+ }, ra = {
277
+ class: /* @__PURE__ */ pe(["fresh-booking-label", "required"])
279
278
  }, da = { id: "fresh-booking-select-place-type-input" }, ua = ["innerHTML"], ca = {
280
279
  key: 0,
281
280
  id: "konnectio-gift-card-order"
@@ -295,47 +294,47 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
295
294
  styling: {}
296
295
  },
297
296
  setup(u) {
298
- const t = u, r = V(() => te({
297
+ const t = u, s = V(() => te({
299
298
  panelMaxWidth: "800px"
300
- }, t.styling)), { t: o } = pe(), {
301
- name: s,
299
+ }, t.styling)), { t: o } = ce(), {
300
+ name: r,
302
301
  email: h,
303
302
  phone: f,
304
303
  value: v,
305
304
  remark: m,
306
305
  showValue: g,
307
306
  quantity: S,
308
- media: G,
307
+ media: L,
309
308
  placeId: k,
310
309
  placeType: l,
311
310
  showFormPage: c,
312
311
  showPaymentPage: y,
313
- showConfirmationPage: q,
312
+ showConfirmationPage: R,
314
313
  places: F,
315
- hasFilledForm: I,
314
+ hasFilledForm: q,
316
315
  hasForcedPlaceType: M,
317
316
  isWaitingForResponse: P,
318
317
  isMetaDataAvailable: A
319
- } = X(se()), { initialize: E, orderGiftCard: B } = se(), { isRecaptchaEnabled: O, currency: K } = X(ce());
320
- return ye(l, () => {
318
+ } = X(re()), { initialize: E, orderGiftCard: D } = re(), { isRecaptchaEnabled: O, currency: K } = X(ue());
319
+ return Pe(l, () => {
321
320
  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 }, {
326
- default: D(() => [
327
- (p(), L(ke, null, {
328
- default: D(() => [
329
- n(Ee, {
321
+ }), we(() => {
322
+ const I = t.placeType ? parseInt(t.placeType) : void 0;
323
+ E(I);
324
+ }), (I, i) => (p(), G(Me, { styling: s.value }, {
325
+ default: B(() => [
326
+ (p(), G(Te, null, {
327
+ default: B(() => [
328
+ n(Re, {
330
329
  id: "konnectio-gift-card-module",
331
330
  type: "gift-card",
332
- "access-token": R.accessToken,
333
- "data-layout": R.layout
331
+ "access-token": I.accessToken,
332
+ "data-layout": I.layout
334
333
  }, {
335
- default: D(() => [
334
+ default: B(() => [
336
335
  e(A) ? (p(), b("div", aa, [
337
336
  d("h2", la, [
338
- d("span", null, oe(e(o)("giftCard.title")), 1)
337
+ d("span", null, ie(e(o)("giftCard.title")), 1)
339
338
  ]),
340
339
  d("div", ta, [
341
340
  W(d("div", oa, [
@@ -350,14 +349,14 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
350
349
  }, null, 8, ia),
351
350
  d("form", null, [
352
351
  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)
352
+ e(F) ? (p(), b("div", sa, [
353
+ d("label", ra, [
354
+ d("span", null, ie(e(o)("giftCard.selectType")), 1)
356
355
  ]),
357
356
  d("div", da, [
358
357
  d("ul", null, [
359
- (p(!0), b(Ce, null, _e(e(F), (a, U) => (p(), b("li", { key: U }, [
360
- n(re, {
358
+ (p(!0), b(Se, null, Ue(e(F), (a, U) => (p(), b("li", { key: U }, [
359
+ n(se, {
361
360
  modelValue: e(l),
362
361
  "onUpdate:modelValue": i[0] || (i[0] = (w) => C(l) ? l.value = w : null),
363
362
  type: "radio",
@@ -367,7 +366,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
367
366
  }, null, 8, ["modelValue", "val", "label"])
368
367
  ]))), 128))
369
368
  ]),
370
- e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (p(), L(qe, {
369
+ e(F)[e(l)] && e(F)[e(l)].data.length > 1 ? (p(), G($e, {
371
370
  key: 0,
372
371
  modelValue: e(k),
373
372
  "onUpdate:modelValue": i[1] || (i[1] = (a) => C(k) ? k.value = a : null),
@@ -378,11 +377,11 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
378
377
  required: ""
379
378
  }, null, 8, ["modelValue", "placeholder", "options"])) : T("", !0)
380
379
  ])
381
- ])) : (p(), L(ne, { key: 1 }))
380
+ ])) : (p(), G(ne, { key: 1 }))
382
381
  ])),
383
382
  n(H, {
384
- modelValue: e(s),
385
- "onUpdate:modelValue": i[2] || (i[2] = (a) => C(s) ? s.value = a : null),
383
+ modelValue: e(r),
384
+ "onUpdate:modelValue": i[2] || (i[2] = (a) => C(r) ? r.value = a : null),
386
385
  type: "text",
387
386
  name: "name",
388
387
  autocomplete: "name",
@@ -402,7 +401,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
402
401
  placeholder: e(o)("giftCard.emailPlaceholder"),
403
402
  required: ""
404
403
  }, null, 8, ["modelValue", "label", "placeholder"]),
405
- n(De, {
404
+ n(Be, {
406
405
  modelValue: e(f),
407
406
  "onUpdate:modelValue": i[4] || (i[4] = (a) => C(f) ? f.value = a : null),
408
407
  icon: "phone-office",
@@ -421,7 +420,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
421
420
  suffix: e(K),
422
421
  required: ""
423
422
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
424
- n(re, {
423
+ n(se, {
425
424
  modelValue: e(g),
426
425
  "onUpdate:modelValue": i[6] || (i[6] = (a) => C(g) ? g.value = a : null),
427
426
  type: "checkbox",
@@ -430,7 +429,7 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
430
429
  checked: e(g)
431
430
  }, null, 8, ["modelValue", "label", "checked"]),
432
431
  T("", !0),
433
- n(Ie, {
432
+ n(Ee, {
434
433
  modelValue: e(S),
435
434
  "onUpdate:modelValue": i[8] || (i[8] = (a) => C(S) ? S.value = a : null),
436
435
  label: e(o)("giftCard.quantity"),
@@ -446,18 +445,18 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
446
445
  innerHTML: e(o)("giftCard.thankYou")
447
446
  }, null, 8, ua)
448
447
  ], 512), [
449
- [j, e(q)]
448
+ [j, e(R)]
450
449
  ])
451
450
  ]),
452
- R.layout !== "minimal" && e(c) ? (p(), b("div", ca, [
451
+ I.layout !== "minimal" && e(c) ? (p(), b("div", ca, [
453
452
  d("div", pa, [
454
453
  n(z, {
455
454
  label: e(o)("giftCard.orderGiftCard"),
456
455
  "full-width": !0,
457
- disabled: !e(I),
456
+ disabled: !e(q),
458
457
  "is-loading": e(P),
459
458
  "onUpdate:isLoading": i[9] || (i[9] = (a) => C(P) ? P.value = a : null),
460
- onClickEvent: e(B)
459
+ onClickEvent: e(D)
461
460
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
462
461
  ])
463
462
  ])) : T("", !0),
@@ -476,11 +475,11 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
476
475
  n(z, {
477
476
  label: e(o)("giftCard.orderGiftCard"),
478
477
  "full-width": !0,
479
- disabled: !e(I),
478
+ disabled: !e(q),
480
479
  "data-test": "orderGiftCard",
481
480
  "is-loading": e(P),
482
481
  "onUpdate:isLoading": i[11] || (i[11] = (a) => C(P) ? P.value = a : null),
483
- onClickEvent: e(B)
482
+ onClickEvent: e(D)
484
483
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
485
484
  W(d("div", va, [
486
485
  n(ze)
@@ -488,12 +487,12 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
488
487
  [j, e(O)]
489
488
  ])
490
489
  ])) : T("", !0)
491
- ])) : (p(), L(ne, { key: 1 }))
490
+ ])) : (p(), G(ne, { key: 1 }))
492
491
  ]),
493
492
  _: 1
494
493
  }, 8, ["access-token", "data-layout"])
495
494
  ]),
496
- fallback: D(() => [
495
+ fallback: B(() => [
497
496
  n(ea)
498
497
  ]),
499
498
  _: 1
@@ -502,16 +501,16 @@ const Qe = { class: "gift-card-skeleton" }, Xe = { class: "gift-card-skeleton-fo
502
501
  _: 1
503
502
  }, 8, ["styling"]));
504
503
  }
505
- }), fe = /* @__PURE__ */ me(ga, [["__scopeId", "data-v-ec9ea15b"]]), ba = Re(), N = Ve({ components: { GiftCard: fe } });
504
+ }), fe = /* @__PURE__ */ me(ga, [["__scopeId", "data-v-ec9ea15b"]]), ba = qe(), N = Ie({ components: { GiftCard: fe } });
506
505
  N.use(ba);
507
- N.use(Le);
508
- N.use(Ge, { bootstrap: !0 });
506
+ N.use(Ge);
507
+ N.use(Le, { bootstrap: !0 });
509
508
  N.mount("#konnectio-gift-card-app");
510
- const wa = {
509
+ const Pa = {
511
510
  install: (u) => {
512
511
  u.component("GiftCard", fe);
513
512
  }
514
513
  };
515
514
  export {
516
- wa as default
515
+ Pa as default
517
516
  };
Binary file