@konnectio/core 4.2.27 → 4.2.29

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 (61) hide show
  1. package/dist/{ActionField-rurn7YSq.js → ActionField-C3_47RQ5.js} +7 -7
  2. package/dist/ActionField-C3_47RQ5.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-7tomoSus.js → AvailabilitySkeleton-BqTnvwmo.js} +11 -11
  4. package/dist/AvailabilitySkeleton-BqTnvwmo.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-OFrOXosT.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxNQ4PmF.js} +3 -3
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxNQ4PmF.js.br +0 -0
  7. package/dist/{CheckoutWindow-CL-_t2RO.js → CheckoutWindow-CrwegAj8.js} +45 -45
  8. package/dist/CheckoutWindow-CrwegAj8.js.br +0 -0
  9. package/dist/{ErrorMessage-CFMPlZNf.js → ErrorMessage-BUdrwpEf.js} +3 -3
  10. package/dist/ErrorMessage-BUdrwpEf.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DIexB3Et.js → EventAvailabilityForm-jpuRxIHA.js} +7 -7
  12. package/dist/EventAvailabilityForm-jpuRxIHA.js.br +0 -0
  13. package/dist/{Field-CoGZNpiZ.js → Field-C1KMkxqv.js} +4 -4
  14. package/dist/Field-C1KMkxqv.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C1PT56Xb.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWdYw_3L.js} +3 -3
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-BnVkQ0NA.js +10979 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-BnVkQ0NA.js.br +0 -0
  18. package/dist/{TermsOfService-Q1Y_rh1C.js → TermsOfService-DaSWhzCW.js} +4 -4
  19. package/dist/_-Ui1L75IO.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DgHD0zWv.js → _.vue_vue_type_style_index_0_lang-BN27Y4eF.js} +3 -3
  21. package/dist/availability.js +6 -6
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +5 -5
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.br +0 -0
  27. package/dist/deep-link.js +1 -1
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +112 -112
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +9 -9
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +89 -89
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-BDwrh2jt.js → giftCard-CAIuIwU9.js} +11 -11
  36. package/dist/giftCard-CAIuIwU9.js.br +0 -0
  37. package/dist/hotel.js +3121 -3222
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-Bej_yRE7.js → masonry.plugin-D-YBu473.js} +13 -13
  40. package/dist/masonry.plugin-D-YBu473.js.br +0 -0
  41. package/dist/{mitt-gcxZCriv.js → mitt-AdJLOdmH.js} +2328 -2297
  42. package/dist/mitt-AdJLOdmH.js.br +0 -0
  43. package/dist/polyfill.js +9 -4
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/{style-CzTnJo8X.js → style-kldUesWw.js} +75 -75
  46. package/dist/style-kldUesWw.js.br +0 -0
  47. package/package.json +21 -21
  48. package/dist/ActionField-rurn7YSq.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-7tomoSus.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-OFrOXosT.js.br +0 -0
  51. package/dist/CheckoutWindow-CL-_t2RO.js.br +0 -0
  52. package/dist/ErrorMessage-CFMPlZNf.js.br +0 -0
  53. package/dist/EventAvailabilityForm-DIexB3Et.js.br +0 -0
  54. package/dist/Field-CoGZNpiZ.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js +0 -10616
  56. package/dist/SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js.br +0 -0
  57. package/dist/_-BKIl1zAq.js +0 -5
  58. package/dist/giftCard-BDwrh2jt.js.br +0 -0
  59. package/dist/masonry.plugin-Bej_yRE7.js.br +0 -0
  60. package/dist/mitt-gcxZCriv.js.br +0 -0
  61. package/dist/style-CzTnJo8X.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,12 +1,12 @@
1
- import { d as x, h as v, b as s, e as t, f as a, c as T, u as $, s as k, a as m, w as p, S as B, g as e, j as I, i as D, t as i, z as b, k as N, _ as U, l as F, m as H, p as R } from "./mitt-gcxZCriv.js";
2
- import { _ as A, y as C, f as j, I as h, o as z, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js";
3
- import { u as q } from "./giftCard-BDwrh2jt.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DgHD0zWv.js";
5
- import { A as K } from "./ActionField-rurn7YSq.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C1PT56Xb.js";
7
- import { F as y } from "./Field-CoGZNpiZ.js";
8
- import { E as Q } from "./ErrorMessage-CFMPlZNf.js";
9
- import { G as Y } from "./style-CzTnJo8X.js";
1
+ import { d as x, h as v, b as s, e as t, f as a, c as T, u as $, s as k, a as m, w as p, S as B, g as e, j as I, i as D, t as i, z as b, k as N, _ as U, l as F, m as H, p as R } from "./mitt-AdJLOdmH.js";
2
+ import { _ as A, x as C, f as j, I as h, o as z, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-BnVkQ0NA.js";
3
+ import { u as q } from "./giftCard-CAIuIwU9.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-BN27Y4eF.js";
5
+ import { A as K } from "./ActionField-C3_47RQ5.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWdYw_3L.js";
7
+ import { F as y } from "./Field-C1KMkxqv.js";
8
+ import { E as Q } from "./ErrorMessage-BUdrwpEf.js";
9
+ import { G as Y } from "./style-kldUesWw.js";
10
10
  const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ x({
11
11
  __name: "GiftCardValidationSkeleton",
12
12
  setup(u) {
Binary file
package/dist/gift-card.js CHANGED
@@ -1,14 +1,14 @@
1
- import { d as G, u as q, r as O, c as Y, a as y, b as s, w as C, e as l, h as c, i as m, f as t, g as e, n as J, t as L, j as te, C as oe, s as z, D as ne, o as ie, S as se, E as S, G as A, F as re, v as de, z as v, k as ue, _ as ce, l as pe, m as me, p as fe } from "./mitt-gcxZCriv.js";
2
- import { a as ve, e as T, x as be, _ as x, f as he, d as _e, L as ke, T as M, h as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js";
3
- import { G as Ve } from "./style-CzTnJo8X.js";
4
- import { u as I } from "./giftCard-BDwrh2jt.js";
5
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-DgHD0zWv.js";
6
- import { C as we, a as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-CL-_t2RO.js";
7
- import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C1PT56Xb.js";
8
- import { F as U } from "./Field-CoGZNpiZ.js";
9
- import { E as Te } from "./ErrorMessage-CFMPlZNf.js";
10
- import { S as Ge } from "./TermsOfService-Q1Y_rh1C.js";
11
- const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-selector-wrapper" }, Le = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
1
+ import { d as G, u as q, r as O, c as Y, a as y, b as s, w as C, e as l, h as c, i as m, f as t, g as e, n as J, t as L, j as te, C as oe, s as z, D as ne, o as ie, S as se, E as S, G as M, F as re, v as de, z as v, k as ue, _ as ce, l as pe, m as me, p as fe } from "./mitt-AdJLOdmH.js";
2
+ import { G as ve } from "./style-kldUesWw.js";
3
+ import { u as I } from "./giftCard-CAIuIwU9.js";
4
+ import { a as be, e as T, w as he, _ as x, f as _e, d as ke, L as ge, T as A, h as ye, C as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-BnVkQ0NA.js";
5
+ import { _ as Ve } from "./_.vue_vue_type_style_index_0_lang-BN27Y4eF.js";
6
+ import { C as we, a as $e, P as Fe, _ as Ee } from "./CheckoutWindow-CrwegAj8.js";
7
+ import { E as Pe } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWdYw_3L.js";
8
+ import { F as U } from "./Field-C1KMkxqv.js";
9
+ import { E as Ue } from "./ErrorMessage-BUdrwpEf.js";
10
+ import { S as Te } from "./TermsOfService-DaSWhzCW.js";
11
+ const Ge = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, Ae = { class: "media-selector-tools" }, Le = { key: 0 }, qe = { key: 1 }, Be = { key: 2 }, Re = ["src"], Ie = /* @__PURE__ */ G({
12
12
  __name: "MediaSelector",
13
13
  props: {
14
14
  modelValue: {},
@@ -19,7 +19,7 @@ const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-se
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(b, { emit: r }) {
22
- const p = r, o = b, { t: u } = q(), { display: h } = ve(), f = O(), _ = Y(() => o.modelValue.base64 !== "");
22
+ const p = r, o = b, { t: u } = q(), { display: h } = be(), f = O(), _ = Y(() => o.modelValue.base64 !== "");
23
23
  function V(a) {
24
24
  p("update:modelValue", a);
25
25
  }
@@ -30,7 +30,7 @@ const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-se
30
30
  type: ""
31
31
  }), f.value && (f.value.value = "");
32
32
  }
33
- function $() {
33
+ function w() {
34
34
  f.value && f.value.click();
35
35
  }
36
36
  function H(a, d) {
@@ -46,17 +46,17 @@ const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-se
46
46
  });
47
47
  }, k.readAsDataURL(a);
48
48
  }
49
- async function w() {
49
+ async function $() {
50
50
  let a;
51
51
  (a = f.value.files) instanceof FileList && H(a[0], V);
52
52
  }
53
- return (a, d) => (s(), y(be, {
53
+ return (a, d) => (s(), y(he, {
54
54
  label: a.label,
55
55
  required: a.required,
56
56
  type: "media"
57
57
  }, {
58
58
  default: C(() => [
59
- l("div", Se, [
59
+ l("div", Ge, [
60
60
  l("input", {
61
61
  ref_key: "fileInput",
62
62
  ref: f,
@@ -64,29 +64,29 @@ const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-se
64
64
  class: "hidden",
65
65
  accept: a.validation,
66
66
  single: "",
67
- onChange: d[0] || (d[0] = (g) => w())
68
- }, null, 40, Ae),
67
+ onChange: d[0] || (d[0] = (g) => $())
68
+ }, null, 40, Se),
69
69
  l("div", Me, [
70
- l("ul", Le, [
71
- _.value ? m("", !0) : (s(), c("li", qe, [
70
+ l("ul", Ae, [
71
+ _.value ? m("", !0) : (s(), c("li", Le, [
72
72
  t(T, {
73
73
  label: e(u)("uploadFile"),
74
74
  type: "button",
75
75
  icon: "upload",
76
76
  "icon-color": a.iconColor,
77
- onClickEvent: d[1] || (d[1] = (g) => $())
77
+ onClickEvent: d[1] || (d[1] = (g) => w())
78
78
  }, null, 8, ["label", "icon-color"])
79
79
  ])),
80
- _.value ? (s(), c("li", Be, [
80
+ _.value ? (s(), c("li", qe, [
81
81
  t(T, {
82
82
  label: e(u)("replaceFile"),
83
83
  type: "button",
84
84
  icon: "repeat-alt",
85
85
  "icon-color": a.iconColor,
86
- onClickEvent: d[2] || (d[2] = (g) => $())
86
+ onClickEvent: d[2] || (d[2] = (g) => w())
87
87
  }, null, 8, ["label", "icon-color"])
88
88
  ])) : m("", !0),
89
- _.value ? (s(), c("li", Re, [
89
+ _.value ? (s(), c("li", Be, [
90
90
  t(T, {
91
91
  label: e(u)("removeFile"),
92
92
  type: "button",
@@ -105,7 +105,7 @@ const Se = { class: "media-selector" }, Ae = ["accept"], Me = { class: "media-se
105
105
  a.modelValue ? (s(), c("img", {
106
106
  key: 0,
107
107
  src: a.modelValue.base64
108
- }, null, 8, Ie)) : m("", !0)
108
+ }, null, 8, Re)) : m("", !0)
109
109
  ], 2)
110
110
  ])
111
111
  ])
@@ -134,22 +134,22 @@ function W(b) {
134
134
  }
135
135
  });
136
136
  }
137
- typeof W == "function" && W(xe);
138
- const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ G({
137
+ typeof W == "function" && W(Ie);
138
+ const xe = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ G({
139
139
  __name: "GiftCardSkeleton",
140
140
  setup(b) {
141
- return (r, p) => (s(), c("div", De, [
142
- l("div", He, [
141
+ return (r, p) => (s(), c("div", xe, [
142
+ l("div", De, [
143
143
  t(U),
144
144
  t(U),
145
145
  t(U),
146
146
  t(U),
147
147
  t(U, { "is-text-area": "" }),
148
- t(Ue, { height: "44px" })
148
+ t(Pe, { height: "44px" })
149
149
  ])
150
150
  ]));
151
151
  }
152
- }), je = /* @__PURE__ */ x(Ne, [["__scopeId", "data-v-ba3efaa1"]]), ze = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ G({
152
+ }), Ne = /* @__PURE__ */ x(He, [["__scopeId", "data-v-ba3efaa1"]]), je = { class: "konnectio-accept-terms" }, ze = /* @__PURE__ */ G({
153
153
  __name: "_",
154
154
  props: {
155
155
  content: {},
@@ -157,7 +157,7 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
157
157
  },
158
158
  setup(b) {
159
159
  const { t: r } = q(), p = O(!1);
160
- return (o, u) => (s(), c("div", ze, [
160
+ return (o, u) => (s(), c("div", je, [
161
161
  t(e(oe), {
162
162
  keypath: "general.termsAndConditionsNotice",
163
163
  tag: "span",
@@ -177,37 +177,37 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
177
177
  ]),
178
178
  _: 1
179
179
  }),
180
- t(Ge, {
180
+ t(Te, {
181
181
  modelValue: p.value,
182
182
  "onUpdate:modelValue": u[1] || (u[1] = (h) => p.value = h),
183
183
  description: o.content
184
184
  }, null, 8, ["modelValue", "description"])
185
185
  ]));
186
186
  }
187
- }), Ke = /* @__PURE__ */ x(We, [["__scopeId", "data-v-689c045a"]]), Oe = /* @__PURE__ */ G({
187
+ }), We = /* @__PURE__ */ x(ze, [["__scopeId", "data-v-689c045a"]]), Ke = /* @__PURE__ */ G({
188
188
  __name: "GiftCard",
189
189
  setup(b) {
190
190
  const { t: r } = q(), p = I();
191
- return (o, u) => (s(), y(Ke, {
191
+ return (o, u) => (s(), y(We, {
192
192
  content: e(p).termsOfService,
193
193
  "button-label": e(r)("giftCard.orderGiftCard")
194
194
  }, null, 8, ["content", "button-label"]));
195
195
  }
196
- }), Ye = ["data-layout"], Je = { id: "konnectio-gift-card-wrapper" }, Qe = { id: "konnectio-gift-card-title" }, Xe = { id: "konnectio-gift-card-content" }, Ze = { id: "konnectio-gift-card-payment" }, el = ["innerHTML"], ll = { key: 0 }, al = {
196
+ }), Oe = ["data-layout"], Ye = { id: "konnectio-gift-card-wrapper" }, Je = { id: "konnectio-gift-card-title" }, Qe = { id: "konnectio-gift-card-content" }, Xe = { id: "konnectio-gift-card-payment" }, Ze = ["innerHTML"], el = { key: 0 }, ll = {
197
197
  key: 0,
198
198
  id: "konnectio-select-place-type"
199
- }, tl = {
199
+ }, al = {
200
200
  class: /* @__PURE__ */ J(["konnectio-label", "required"])
201
- }, ol = { id: "konnectio-select-place-type-input" }, nl = ["innerHTML"], il = {
201
+ }, tl = { id: "konnectio-select-place-type-input" }, ol = ["innerHTML"], nl = {
202
202
  key: 0,
203
203
  id: "konnectio-gift-card-order"
204
- }, sl = { class: "konnectio-panel" }, rl = {
204
+ }, il = { class: "konnectio-panel" }, sl = {
205
205
  key: 1,
206
206
  id: "konnectio-gift-card-remarks"
207
- }, dl = {
207
+ }, rl = {
208
208
  key: 2,
209
209
  id: "konnectio-gift-card-order-minimal"
210
- }, ul = { id: "konnectio-gift-card-recaptcha" }, cl = /* @__PURE__ */ G({
210
+ }, dl = { id: "konnectio-gift-card-recaptcha" }, ul = /* @__PURE__ */ G({
211
211
  name: "GiftCardLayout",
212
212
  __name: "GiftCard",
213
213
  props: {
@@ -227,9 +227,9 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
227
227
  value: _,
228
228
  remark: V,
229
229
  showValue: D,
230
- quantity: $,
230
+ quantity: w,
231
231
  media: H,
232
- placeId: w,
232
+ placeId: $,
233
233
  placeType: a,
234
234
  showFormPage: d,
235
235
  showPaymentPage: g,
@@ -238,23 +238,23 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
238
238
  hasFilledForm: P,
239
239
  hasForcedPlaceType: R,
240
240
  isWaitingForResponse: F
241
- } = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(he());
241
+ } = z(I()), { initialize: Q, orderGiftCard: N, fetchMetadata: X } = I(), { isRecaptchaEnabled: Z, currency: ee, hasError: le } = z(_e());
242
242
  return ne(a, () => {
243
- w.value = void 0;
243
+ $.value = void 0;
244
244
  }), ie(() => {
245
245
  const E = r.placeType ? parseInt(r.placeType) : void 0;
246
246
  Q(E);
247
- }), (E, n) => (s(), y(ye, { styling: p.value }, {
247
+ }), (E, n) => (s(), y(Ce, { styling: p.value }, {
248
248
  default: C(() => [
249
249
  (s(), y(se, null, {
250
250
  default: C(() => [
251
- t($e, {
251
+ t(Ve, {
252
252
  "access-token": E.accessToken,
253
253
  "data-layout": E.layout,
254
254
  callback: e(X)
255
255
  }, {
256
256
  default: C(() => [
257
- e(le) ? (s(), y(Te, {
257
+ e(le) ? (s(), y(Ue, {
258
258
  key: 1,
259
259
  title: "Unable to render Gift card module",
260
260
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -263,31 +263,31 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
263
263
  id: "konnectio-gift-card-module",
264
264
  "data-layout": E.layout
265
265
  }, [
266
- l("div", Je, [
267
- l("h2", Qe, [
266
+ l("div", Ye, [
267
+ l("h2", Je, [
268
268
  l("span", null, L(e(o)("giftCard.title")), 1)
269
269
  ]),
270
- l("div", Xe, [
271
- S(l("div", Ze, [
270
+ l("div", Qe, [
271
+ S(l("div", Xe, [
272
272
  t(we)
273
273
  ], 512), [
274
- [A, e(g)]
274
+ [M, e(g)]
275
275
  ]),
276
276
  S(l("div", null, [
277
277
  l("p", {
278
278
  id: "konnectio-gift-card-description",
279
279
  innerHTML: e(o)("giftCard.description")
280
- }, null, 8, el),
280
+ }, null, 8, Ze),
281
281
  l("form", null, [
282
- e(R) ? m("", !0) : (s(), c("div", ll, [
283
- e(k) ? (s(), c("div", al, [
284
- l("label", tl, [
282
+ e(R) ? m("", !0) : (s(), c("div", el, [
283
+ e(k) ? (s(), c("div", ll, [
284
+ l("label", al, [
285
285
  l("span", null, L(e(o)("giftCard.selectType")), 1)
286
286
  ]),
287
- l("div", ol, [
287
+ l("div", tl, [
288
288
  l("ul", null, [
289
289
  (s(!0), c(re, null, de(e(k), (i, j) => (s(), c("li", { key: j }, [
290
- t(Fe, {
290
+ t($e, {
291
291
  modelValue: e(a),
292
292
  "onUpdate:modelValue": n[0] || (n[0] = (ae) => v(a) ? a.value = ae : null),
293
293
  type: "radio",
@@ -297,10 +297,10 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
297
297
  }, null, 8, ["modelValue", "val", "label"])
298
298
  ]))), 128))
299
299
  ]),
300
- e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (s(), y(_e, {
300
+ e(k)[e(a)] && e(k)[e(a)].data.length > 1 ? (s(), y(ke, {
301
301
  key: 0,
302
- modelValue: e(w),
303
- "onUpdate:modelValue": n[1] || (n[1] = (i) => v(w) ? w.value = i : null),
302
+ modelValue: e($),
303
+ "onUpdate:modelValue": n[1] || (n[1] = (i) => v($) ? $.value = i : null),
304
304
  placeholder: e(o)("giftCard.selectPlacePlaceholder"),
305
305
  options: e(k)[e(a)].data,
306
306
  labelKey: "name",
@@ -308,9 +308,9 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
308
308
  required: ""
309
309
  }, null, 8, ["modelValue", "placeholder", "options"])) : m("", !0)
310
310
  ])
311
- ])) : (s(), y(ke, { key: 1 }))
311
+ ])) : (s(), y(ge, { key: 1 }))
312
312
  ])),
313
- t(M, {
313
+ t(A, {
314
314
  modelValue: e(u),
315
315
  "onUpdate:modelValue": n[2] || (n[2] = (i) => v(u) ? u.value = i : null),
316
316
  type: "text",
@@ -321,7 +321,7 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
321
321
  placeholder: e(o)("giftCard.namePlaceholder"),
322
322
  required: ""
323
323
  }, null, 8, ["modelValue", "label", "placeholder"]),
324
- t(M, {
324
+ t(A, {
325
325
  modelValue: e(h),
326
326
  "onUpdate:modelValue": n[3] || (n[3] = (i) => v(h) ? h.value = i : null),
327
327
  type: "email",
@@ -332,7 +332,7 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
332
332
  placeholder: e(o)("giftCard.emailPlaceholder"),
333
333
  required: ""
334
334
  }, null, 8, ["modelValue", "label", "placeholder"]),
335
- t(Ee, {
335
+ t(Fe, {
336
336
  modelValue: e(f),
337
337
  "onUpdate:modelValue": n[4] || (n[4] = (i) => v(f) ? f.value = i : null),
338
338
  icon: "phone-office",
@@ -340,7 +340,7 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
340
340
  placeholder: e(o)("giftCard.phonePlaceholder"),
341
341
  required: ""
342
342
  }, null, 8, ["modelValue", "label", "placeholder"]),
343
- t(M, {
343
+ t(A, {
344
344
  modelValue: e(_),
345
345
  "onUpdate:modelValue": n[5] || (n[5] = (i) => v(_) ? _.value = i : null),
346
346
  type: "number",
@@ -353,27 +353,27 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
353
353
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
354
354
  m("", !0),
355
355
  m("", !0),
356
- t(ge, {
357
- modelValue: e($),
358
- "onUpdate:modelValue": n[8] || (n[8] = (i) => v($) ? $.value = i : null),
356
+ t(ye, {
357
+ modelValue: e(w),
358
+ "onUpdate:modelValue": n[8] || (n[8] = (i) => v(w) ? w.value = i : null),
359
359
  label: e(o)("giftCard.quantity"),
360
360
  icon: "gift-card",
361
361
  required: ""
362
362
  }, null, 8, ["modelValue", "label"])
363
363
  ])
364
364
  ], 512), [
365
- [A, e(d)]
365
+ [M, e(d)]
366
366
  ]),
367
367
  S(l("div", null, [
368
368
  l("div", {
369
369
  innerHTML: e(o)("giftCard.thankYou")
370
- }, null, 8, nl)
370
+ }, null, 8, ol)
371
371
  ], 512), [
372
- [A, e(B)]
372
+ [M, e(B)]
373
373
  ])
374
374
  ]),
375
- E.layout !== "minimal" && e(d) ? (s(), c("div", il, [
376
- l("div", sl, [
375
+ E.layout !== "minimal" && e(d) ? (s(), c("div", nl, [
376
+ l("div", il, [
377
377
  t(T, {
378
378
  label: e(o)("giftCard.orderGiftCard"),
379
379
  "full-width": !0,
@@ -384,8 +384,8 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
384
384
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
385
385
  ])
386
386
  ])) : m("", !0),
387
- e(d) ? (s(), c("div", rl, [
388
- t(M, {
387
+ e(d) ? (s(), c("div", sl, [
388
+ t(A, {
389
389
  modelValue: e(V),
390
390
  "onUpdate:modelValue": n[10] || (n[10] = (i) => v(V) ? V.value = i : null),
391
391
  type: "textarea",
@@ -395,7 +395,7 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
395
395
  placeholder: e(o)("giftCard.remarkPlaceholder")
396
396
  }, null, 8, ["modelValue", "label", "placeholder"])
397
397
  ])) : m("", !0),
398
- e(d) ? (s(), c("div", dl, [
398
+ e(d) ? (s(), c("div", rl, [
399
399
  t(T, {
400
400
  label: e(o)("giftCard.orderGiftCard"),
401
401
  "full-width": !0,
@@ -407,22 +407,22 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
407
407
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
408
408
  l("div", null, [
409
409
  n[12] || (n[12] = l("div", { class: "konnectio-divider" }, null, -1)),
410
- t(Oe)
410
+ t(Ke)
411
411
  ]),
412
- S(l("div", ul, [
413
- t(Pe)
412
+ S(l("div", dl, [
413
+ t(Ee)
414
414
  ], 512), [
415
- [A, e(Z)]
415
+ [M, e(Z)]
416
416
  ])
417
417
  ])) : m("", !0)
418
418
  ])
419
- ], 8, Ye))
419
+ ], 8, Oe))
420
420
  ]),
421
421
  _: 1
422
422
  }, 8, ["access-token", "data-layout", "callback"])
423
423
  ]),
424
424
  fallback: C(() => [
425
- t(je)
425
+ t(Ne)
426
426
  ]),
427
427
  _: 1
428
428
  }))
@@ -430,8 +430,8 @@ const De = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
430
430
  _: 1
431
431
  }, 8, ["styling"]));
432
432
  }
433
- }), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-06fd20aa"]]), pl = ue(), ml = ce, fl = ml();
434
- class vl extends HTMLElement {
433
+ }), K = /* @__PURE__ */ x(ul, [["__scopeId", "data-v-06fd20aa"]]), cl = ue(), pl = ce, ml = pl();
434
+ class fl extends HTMLElement {
435
435
  vueApp;
436
436
  constructor() {
437
437
  super();
@@ -441,13 +441,13 @@ class vl extends HTMLElement {
441
441
  }
442
442
  connectedCallback() {
443
443
  const r = pe(K, this.attributes);
444
- this.vueApp = me(K, r), this.vueApp.provide("emitter", fl), this.vueApp.use(pl), this.vueApp.use(fe), this.vueApp.use(Ve), this.vueApp.use(Ce, { bootstrap: !0 });
444
+ this.vueApp = me(K, r), this.vueApp.provide("emitter", ml), this.vueApp.use(cl), this.vueApp.use(fe), this.vueApp.use(ve);
445
445
  const p = document.createElement("div");
446
446
  this.vueApp.mount(p), this.appendChild(p.children[0]);
447
447
  }
448
448
  }
449
- window.customElements.define("konnectio-gift-card", vl);
449
+ window.customElements.define("konnectio-gift-card", fl);
450
450
  export {
451
- vl as default
451
+ fl as default
452
452
  };
453
453
  //# sourceMappingURL=gift-card.js.map
Binary file
@@ -1,7 +1,7 @@
1
- import { H as V, s as J, r as t, c as a, I as y } from "./mitt-gcxZCriv.js";
2
- import { z as K, a as Q, f as z, G as o, A as h, D as E, w as O, E as X, S } from "./SelectField.vue_vue_type_style_index_0_lang-K78tVJ24.js";
1
+ import { H as V, s as J, r as t, c as a, I as y } from "./mitt-AdJLOdmH.js";
2
+ import { y as K, a as Q, f as z, G as o, z as h, A as O, v as D, D as X, S } from "./SelectField.vue_vue_type_style_index_0_lang-BnVkQ0NA.js";
3
3
  const $ = V("giftCard", () => {
4
- const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: M, hasError: P } = J(z()), x = z(), s = t(o.InitialState), u = h("konnectio_name", "", void 0, { serializer: S.string }), v = h("konnectio_email", "", void 0, { serializer: S.string }), d = h("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), T = t(1), F = t(!0), b = t(""), i = t({
4
+ const { pay: E } = K(), { display: G } = Q(), { metaData: P, currencyId: M, hasError: w } = J(z()), x = z(), s = t(o.InitialState), u = h("konnectio_name", "", void 0, { serializer: S.string }), v = h("konnectio_email", "", void 0, { serializer: S.string }), d = h("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), T = t(1), F = t(!0), b = t(""), i = t({
5
5
  base64: "",
6
6
  type: "",
7
7
  name: ""
@@ -15,7 +15,7 @@ const $ = V("giftCard", () => {
15
15
  label: y.t("giftCard.restaurantType"),
16
16
  data: []
17
17
  }
18
- }, r = w.value.hotels[0].places;
18
+ }, r = P.value.hotels[0].places;
19
19
  return r && r.forEach((n) => {
20
20
  e[n.placeType].data.push(n);
21
21
  }), Object.fromEntries(
@@ -35,12 +35,12 @@ const $ = V("giftCard", () => {
35
35
  }), L = a(() => !(!u.value || !v.value || !(d.value.length >= 5) || !f.value || l.value === void 0)), q = a(() => !(s.value === o.InitialState && c.value)), N = a(() => !!(s.value === o.WaitingForResponse && c.value));
36
36
  async function j() {
37
37
  try {
38
- const e = (await E().get("/gift-card/metadata", {
38
+ const e = (await O().get("/gift-card/metadata", {
39
39
  params: {
40
- language: O()
40
+ language: D()
41
41
  }
42
42
  })).data;
43
- e.success !== void 0 ? P.value = !e.success : P.value = !1, w.value = e;
43
+ e.success !== void 0 ? w.value = !e.success : w.value = !1, P.value = e;
44
44
  } catch {
45
45
  G({
46
46
  message: y.t("alert.error.couldntFetchMetadata"),
@@ -49,11 +49,11 @@ const $ = V("giftCard", () => {
49
49
  }
50
50
  }
51
51
  async function B() {
52
- s.value = o.WaitingForResponse, c.value = !0, await E().post("/gift-card/create", {
52
+ s.value = o.WaitingForResponse, c.value = !0, await O().post("/gift-card/create", {
53
53
  termsOfserviceURL: window.location.origin,
54
54
  checkoutUrl: window.location.origin,
55
55
  currencyID: M.value,
56
- language: O(),
56
+ language: D(),
57
57
  amount: f.value,
58
58
  quantity: T.value,
59
59
  freeText: b.value,
@@ -67,7 +67,7 @@ const $ = V("giftCard", () => {
67
67
  placeType: l.value ? l.value.placeType : void 0,
68
68
  placeID: l.value ? l.value.id : void 0
69
69
  }).then((e) => {
70
- s.value = o.ReadyToPay, c.value = !1, D({
70
+ s.value = o.ReadyToPay, c.value = !1, E({
71
71
  callback: () => console.log("Callback!"),
72
72
  response: e.data
73
73
  });
@@ -106,4 +106,4 @@ const $ = V("giftCard", () => {
106
106
  export {
107
107
  $ as u
108
108
  };
109
- //# sourceMappingURL=giftCard-BDwrh2jt.js.map
109
+ //# sourceMappingURL=giftCard-CAIuIwU9.js.map
Binary file