@konnectio/core 4.0.61 → 4.0.62

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 (67) hide show
  1. package/dist/{ActionField-BXj6PfYZ.js → ActionField-8uyqR4s2.js} +4 -4
  2. package/dist/ActionField-8uyqR4s2.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-BLnNIU9-.js → AvailabilitySkeleton-DR0TlG1c.js} +17 -17
  4. package/dist/AvailabilitySkeleton-DR0TlG1c.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CUMQhXcI.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js} +2695 -2695
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js.br +0 -0
  7. package/dist/{CheckoutWindow-DLuBkYGS.js → CheckoutWindow-b6nqgL-q.js} +5 -5
  8. package/dist/CheckoutWindow-b6nqgL-q.js.br +0 -0
  9. package/dist/{ErrorMessage-Cy1scjLu.js → ErrorMessage-CTB9P7th.js} +3 -3
  10. package/dist/ErrorMessage-CTB9P7th.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DPs8I6AR.js → EventAvailabilityForm-Dz_XUv-P.js} +12 -12
  12. package/dist/EventAvailabilityForm-Dz_XUv-P.js.br +0 -0
  13. package/dist/{Field-53ZoaiDU.js → Field-D74LzwJ5.js} +3 -3
  14. package/dist/Field-D74LzwJ5.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DigDTbcx.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js} +1299 -1293
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js.br +0 -0
  17. package/dist/TermsOfService-BWi7ax17.js +36 -0
  18. package/dist/TermsOfService-BWi7ax17.js.br +0 -0
  19. package/dist/{_-CBiS4A4B.js → _-D5EdBcrp.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CukAL2Kn.js → _.vue_vue_type_style_index_0_lang-DXnzUVHn.js} +9 -9
  21. package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js.br +0 -0
  22. package/dist/_commonjsHelpers-DZ_3pocK.js +2590 -0
  23. package/dist/_commonjsHelpers-DZ_3pocK.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-CE-HFIuO.js → _sentry-release-injection-file-gnd2S326.js} +3 -3
  25. package/dist/_sentry-release-injection-file-gnd2S326.js.br +0 -0
  26. package/dist/availability.js +43 -43
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +2 -2
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +460 -467
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +36 -36
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +104 -104
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-DxfwOj4W.js → giftCard-Dl1tPQsP.js} +13 -13
  37. package/dist/giftCard-Dl1tPQsP.js.br +0 -0
  38. package/dist/hotel.js +585 -597
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-DTj3FRoF.js → masonry.plugin-BNjra0SH.js} +3203 -3137
  41. package/dist/masonry.plugin-BNjra0SH.js.br +0 -0
  42. package/dist/{mitt-BI4s3zkK.js → mitt-B7XZkC8D.js} +2 -2
  43. package/dist/mitt-B7XZkC8D.js.br +0 -0
  44. package/dist/polyfill.js +14496 -16958
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-DoXJRC4t.js → style-lYuGbuqk.js} +2 -2
  47. package/dist/style-lYuGbuqk.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/package.json +12 -12
  51. package/dist/ActionField-BXj6PfYZ.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-BLnNIU9-.js.br +0 -0
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CUMQhXcI.js.br +0 -0
  54. package/dist/CheckoutWindow-DLuBkYGS.js.br +0 -0
  55. package/dist/ErrorMessage-Cy1scjLu.js.br +0 -0
  56. package/dist/EventAvailabilityForm-DPs8I6AR.js.br +0 -0
  57. package/dist/Field-53ZoaiDU.js.br +0 -0
  58. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DigDTbcx.js.br +0 -0
  59. package/dist/TermsOfService-lYI4Wr0J.js +0 -36
  60. package/dist/TermsOfService-lYI4Wr0J.js.br +0 -0
  61. package/dist/_.vue_vue_type_style_index_0_lang-CukAL2Kn.js.br +0 -0
  62. package/dist/_commonjsHelpers-5UvwmKmn.js +0 -17
  63. package/dist/_sentry-release-injection-file-CE-HFIuO.js.br +0 -0
  64. package/dist/giftCard-DxfwOj4W.js.br +0 -0
  65. package/dist/masonry.plugin-DTj3FRoF.js.br +0 -0
  66. package/dist/mitt-BI4s3zkK.js.br +0 -0
  67. package/dist/style-DoXJRC4t.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,21 +1,21 @@
1
- import { d as S, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as G, F as se, s as re, v as y, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-CE-HFIuO.js";
2
- import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-BI4s3zkK.js";
3
- import { a as ve, c as T, p as he, E as _e, _ as z, d as ge, n as ke, L as ye, T as L, b as Ce, C as Ve, m as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DigDTbcx.js";
4
- import { G as $e } from "./style-DoXJRC4t.js";
5
- import { u as x } from "./giftCard-DxfwOj4W.js";
6
- import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-CukAL2Kn.js";
7
- import { a as Ee, C as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-DLuBkYGS.js";
8
- import { F as A } from "./Field-53ZoaiDU.js";
9
- import { E as Te } from "./ErrorMessage-Cy1scjLu.js";
10
- import { S as Se } from "./TermsOfService-lYI4Wr0J.js";
1
+ import { d as T, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as G, F as se, s as re, v as k, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-gnd2S326.js";
2
+ import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-B7XZkC8D.js";
3
+ import { a as ve, d as S, q as he, E as _e, _ as z, e as ge, o as ye, L as ke, T as L, b as Ce, C as Ve, c as we, n as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js";
4
+ import { G as Fe } from "./style-lYuGbuqk.js";
5
+ import { u as x } from "./giftCard-Dl1tPQsP.js";
6
+ import { _ as Ae } from "./_.vue_vue_type_style_index_0_lang-DXnzUVHn.js";
7
+ import { a as Ee, C as Pe, P as Ue, _ as Se } from "./CheckoutWindow-b6nqgL-q.js";
8
+ import { F as U } from "./Field-D74LzwJ5.js";
9
+ import { E as Te } from "./ErrorMessage-CTB9P7th.js";
10
+ import { S as Ie } from "./TermsOfService-BWi7ax17.js";
11
11
  (function() {
12
12
  try {
13
13
  var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
14
- n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "64f5221e-3a81-4cdf-ac5b-15c2adc9eeb3", d._sentryDebugIdIdentifier = "sentry-dbid-64f5221e-3a81-4cdf-ac5b-15c2adc9eeb3");
14
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "98e12c89-3213-4023-be0f-f031917e34ec", d._sentryDebugIdIdentifier = "sentry-dbid-98e12c89-3213-4023-be0f-f031917e34ec");
15
15
  } catch {
16
16
  }
17
17
  })();
18
- const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, qe = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, De = ["src"], xe = /* @__PURE__ */ S({
18
+ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Be = { key: 0 }, Re = { key: 1 }, De = { key: 2 }, xe = ["src"], ze = /* @__PURE__ */ T({
19
19
  __name: "MediaSelector",
20
20
  props: {
21
21
  modelValue: {},
@@ -30,7 +30,7 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
30
30
  function u(a) {
31
31
  m("update:modelValue", a);
32
32
  }
33
- function k() {
33
+ function y() {
34
34
  u({
35
35
  base64: "",
36
36
  name: "",
@@ -42,9 +42,9 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
42
42
  }
43
43
  function j(a, f) {
44
44
  const [V, R] = [a.name, a.type], C = new FileReader();
45
- C.onload = function(U) {
46
- if (U.target) {
47
- const D = U.target.result;
45
+ C.onload = function(P) {
46
+ if (P.target) {
47
+ const D = P.target.result;
48
48
  f({ base64: D, name: V, type: R });
49
49
  } else
50
50
  h({
@@ -63,7 +63,7 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
63
63
  type: "media"
64
64
  }, {
65
65
  default: $(() => [
66
- t("div", Ie, [
66
+ t("div", Ge, [
67
67
  t("input", {
68
68
  ref_key: "fileInput",
69
69
  ref: p,
@@ -72,11 +72,11 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
72
72
  accept: a.validation,
73
73
  single: "",
74
74
  onChange: f[0] || (f[0] = (V) => F())
75
- }, null, 40, Ge),
76
- t("div", Le, [
77
- t("ul", Me, [
78
- _.value ? g("", !0) : (s(), v("li", qe, [
79
- o(T, {
75
+ }, null, 40, Le),
76
+ t("div", Me, [
77
+ t("ul", qe, [
78
+ _.value ? g("", !0) : (s(), v("li", Be, [
79
+ o(S, {
80
80
  label: e(c)("uploadFile"),
81
81
  type: "button",
82
82
  icon: "upload",
@@ -84,8 +84,8 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
84
84
  onClickEvent: f[1] || (f[1] = (V) => b())
85
85
  }, null, 8, ["label", "icon-color"])
86
86
  ])),
87
- _.value ? (s(), v("li", Be, [
88
- o(T, {
87
+ _.value ? (s(), v("li", Re, [
88
+ o(S, {
89
89
  label: e(c)("replaceFile"),
90
90
  type: "button",
91
91
  icon: "repeat-alt",
@@ -93,13 +93,13 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
93
93
  onClickEvent: f[2] || (f[2] = (V) => b())
94
94
  }, null, 8, ["label", "icon-color"])
95
95
  ])) : g("", !0),
96
- _.value ? (s(), v("li", Re, [
97
- o(T, {
96
+ _.value ? (s(), v("li", De, [
97
+ o(S, {
98
98
  label: e(c)("removeFile"),
99
99
  type: "button",
100
100
  icon: "trash-alt",
101
101
  "icon-color": a.iconColor,
102
- onClickEvent: f[3] || (f[3] = (V) => k())
102
+ onClickEvent: f[3] || (f[3] = (V) => y())
103
103
  }, null, 8, ["label", "icon-color"])
104
104
  ])) : g("", !0)
105
105
  ]),
@@ -112,7 +112,7 @@ const Ie = { class: "media-selector" }, Ge = ["accept"], Le = { class: "media-se
112
112
  a.modelValue ? (s(), v("img", {
113
113
  key: 0,
114
114
  src: a.modelValue.base64
115
- }, null, 8, De)) : g("", !0)
115
+ }, null, 8, xe)) : g("", !0)
116
116
  ], 2)
117
117
  ])
118
118
  ])
@@ -141,22 +141,22 @@ function W(d) {
141
141
  }
142
142
  });
143
143
  }
144
- typeof W == "function" && W(xe);
145
- const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ S({
144
+ typeof W == "function" && W(ze);
145
+ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ T({
146
146
  __name: "GiftCardSkeleton",
147
147
  setup(d) {
148
- return (n, m) => (s(), v("div", ze, [
149
- t("div", je, [
150
- o(A),
151
- o(A),
152
- o(A),
153
- o(A),
154
- o(A, { "is-text-area": "" }),
148
+ return (n, m) => (s(), v("div", je, [
149
+ t("div", He, [
150
+ o(U),
151
+ o(U),
152
+ o(U),
153
+ o(U),
154
+ o(U, { "is-text-area": "" }),
155
155
  o(_e, { height: "44px" })
156
156
  ])
157
157
  ]));
158
158
  }
159
- }), Ne = /* @__PURE__ */ z(He, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ S({
159
+ }), Oe = /* @__PURE__ */ z(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, Ke = /* @__PURE__ */ T({
160
160
  __name: "_",
161
161
  props: {
162
162
  content: {},
@@ -164,7 +164,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
164
164
  },
165
165
  setup(d) {
166
166
  const { t: n } = B(), m = K(!1);
167
- return (l, c) => (s(), v("div", Oe, [
167
+ return (l, c) => (s(), v("div", We, [
168
168
  o(e(pe), {
169
169
  keypath: "general.termsAndConditionsNotice",
170
170
  tag: "span",
@@ -184,37 +184,37 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
184
184
  ]),
185
185
  _: 1
186
186
  }),
187
- o(Se, {
187
+ o(Ie, {
188
188
  modelValue: m.value,
189
189
  "onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
190
190
  description: l.content
191
191
  }, null, 8, ["modelValue", "description"])
192
192
  ]));
193
193
  }
194
- }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ S({
194
+ }), Ze = /* @__PURE__ */ z(Ke, [["__scopeId", "data-v-f587c956"]]), Ye = /* @__PURE__ */ T({
195
195
  __name: "GiftCard",
196
196
  setup(d) {
197
197
  const { t: n } = B(), m = x();
198
- return (l, c) => (s(), w(Ke, {
198
+ return (l, c) => (s(), w(Ze, {
199
199
  content: e(m).termsOfService,
200
200
  "button-label": e(n)("giftCard.orderGiftCard")
201
201
  }, null, 8, ["content", "button-label"]));
202
202
  }
203
- }), Ye = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Je = ["data-layout"], Qe = { id: "konnectio-gift-card-wrapper" }, Xe = { id: "konnectio-gift-card-title" }, et = { id: "konnectio-gift-card-content" }, tt = { id: "konnectio-gift-card-payment" }, lt = ["innerHTML"], at = { key: 0 }, ot = {
203
+ }), Je = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Qe = ["data-layout"], Xe = { id: "konnectio-gift-card-wrapper" }, et = { id: "konnectio-gift-card-title" }, tt = { id: "konnectio-gift-card-content" }, lt = { id: "konnectio-gift-card-payment" }, at = ["innerHTML"], ot = { key: 0 }, nt = {
204
204
  key: 0,
205
205
  id: "konnectio-select-place-type"
206
- }, nt = {
206
+ }, it = {
207
207
  class: /* @__PURE__ */ Y(["konnectio-label", "required"])
208
- }, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
208
+ }, st = { id: "konnectio-select-place-type-input" }, rt = ["innerHTML"], dt = {
209
209
  key: 0,
210
210
  id: "konnectio-gift-card-order"
211
- }, dt = { class: "konnectio-panel" }, ut = {
211
+ }, ut = { class: "konnectio-panel" }, ct = {
212
212
  key: 1,
213
213
  id: "konnectio-gift-card-remarks"
214
- }, ct = {
214
+ }, pt = {
215
215
  key: 2,
216
216
  id: "konnectio-gift-card-order-minimal"
217
- }, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ S({
217
+ }, mt = /* @__PURE__ */ Je(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), ft = { id: "konnectio-gift-card-recaptcha" }, bt = /* @__PURE__ */ T({
218
218
  name: "GiftCardLayout",
219
219
  __name: "GiftCard",
220
220
  props: {
@@ -233,7 +233,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
233
233
  phone: p,
234
234
  value: _,
235
235
  remark: u,
236
- showValue: k,
236
+ showValue: y,
237
237
  quantity: b,
238
238
  media: j,
239
239
  placeId: F,
@@ -242,22 +242,22 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
242
242
  showPaymentPage: V,
243
243
  showConfirmationPage: R,
244
244
  places: C,
245
- hasFilledForm: U,
245
+ hasFilledForm: P,
246
246
  hasForcedPlaceType: D,
247
- isWaitingForResponse: E
247
+ isWaitingForResponse: A
248
248
  } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ge());
249
249
  return oe(a, () => {
250
250
  F.value = void 0;
251
251
  }), ne(() => {
252
- const P = n.placeType ? parseInt(n.placeType) : void 0;
253
- J(P);
254
- }), (P, r) => (s(), w(Ve, { styling: m.value }, {
252
+ const E = n.placeType ? parseInt(n.placeType) : void 0;
253
+ J(E);
254
+ }), (E, r) => (s(), w(Ve, { styling: m.value }, {
255
255
  default: $(() => [
256
256
  (s(), w(ie, null, {
257
257
  default: $(() => [
258
- o(Fe, {
259
- "access-token": P.accessToken,
260
- "data-layout": P.layout,
258
+ o(Ae, {
259
+ "access-token": E.accessToken,
260
+ "data-layout": E.layout,
261
261
  callback: e(Q)
262
262
  }, {
263
263
  default: $(() => [
@@ -268,14 +268,14 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
268
268
  })) : (s(), v("div", {
269
269
  key: 0,
270
270
  id: "konnectio-gift-card-module",
271
- "data-layout": P.layout
271
+ "data-layout": E.layout
272
272
  }, [
273
- t("div", Qe, [
274
- t("h2", Xe, [
273
+ t("div", Xe, [
274
+ t("h2", et, [
275
275
  t("span", null, q(e(l)("giftCard.title")), 1)
276
276
  ]),
277
- t("div", et, [
278
- I(t("div", tt, [
277
+ t("div", tt, [
278
+ I(t("div", lt, [
279
279
  o(Ee)
280
280
  ], 512), [
281
281
  [G, e(V)]
@@ -284,19 +284,19 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
284
284
  t("p", {
285
285
  id: "konnectio-gift-card-description",
286
286
  innerHTML: e(l)("giftCard.description")
287
- }, null, 8, lt),
287
+ }, null, 8, at),
288
288
  t("form", null, [
289
- e(D) ? g("", !0) : (s(), v("div", at, [
290
- e(C) ? (s(), v("div", ot, [
291
- t("label", nt, [
289
+ e(D) ? g("", !0) : (s(), v("div", ot, [
290
+ e(C) ? (s(), v("div", nt, [
291
+ t("label", it, [
292
292
  t("span", null, q(e(l)("giftCard.selectType")), 1)
293
293
  ]),
294
- t("div", it, [
294
+ t("div", st, [
295
295
  t("ul", null, [
296
296
  (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
297
297
  o(Pe, {
298
298
  modelValue: e(a),
299
- "onUpdate:modelValue": r[0] || (r[0] = (le) => y(a) ? a.value = le : null),
299
+ "onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
300
300
  type: "radio",
301
301
  name: "placeType",
302
302
  val: N,
@@ -304,10 +304,10 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
304
304
  }, null, 8, ["modelValue", "val", "label"])
305
305
  ]))), 128))
306
306
  ]),
307
- e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
307
+ e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ye, {
308
308
  key: 0,
309
309
  modelValue: e(F),
310
- "onUpdate:modelValue": r[1] || (r[1] = (i) => y(F) ? F.value = i : null),
310
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
311
311
  placeholder: e(l)("giftCard.selectPlacePlaceholder"),
312
312
  options: e(C)[e(a)].data,
313
313
  labelKey: "name",
@@ -315,11 +315,11 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
315
315
  required: ""
316
316
  }, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
317
317
  ])
318
- ])) : (s(), w(ye, { key: 1 }))
318
+ ])) : (s(), w(ke, { key: 1 }))
319
319
  ])),
320
320
  o(L, {
321
321
  modelValue: e(c),
322
- "onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
322
+ "onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
323
323
  type: "text",
324
324
  name: "name",
325
325
  autocomplete: "name",
@@ -330,7 +330,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
330
330
  }, null, 8, ["modelValue", "label", "placeholder"]),
331
331
  o(L, {
332
332
  modelValue: e(h),
333
- "onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
333
+ "onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
334
334
  type: "email",
335
335
  name: "email",
336
336
  autocomplete: "email",
@@ -341,7 +341,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
341
341
  }, null, 8, ["modelValue", "label", "placeholder"]),
342
342
  o(Ue, {
343
343
  modelValue: e(p),
344
- "onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
344
+ "onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
345
345
  icon: "phone-office",
346
346
  label: e(l)("giftCard.phone"),
347
347
  placeholder: e(l)("giftCard.phonePlaceholder"),
@@ -349,7 +349,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
349
349
  }, null, 8, ["modelValue", "label", "placeholder"]),
350
350
  o(L, {
351
351
  modelValue: e(_),
352
- "onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
352
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
353
353
  type: "number",
354
354
  name: "value",
355
355
  label: e(l)("giftCard.value"),
@@ -362,7 +362,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
362
362
  g("", !0),
363
363
  o(Ce, {
364
364
  modelValue: e(b),
365
- "onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
365
+ "onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
366
366
  label: e(l)("giftCard.quantity"),
367
367
  icon: "gift-card",
368
368
  required: ""
@@ -374,27 +374,27 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
374
374
  I(t("div", null, [
375
375
  t("div", {
376
376
  innerHTML: e(l)("giftCard.thankYou")
377
- }, null, 8, st)
377
+ }, null, 8, rt)
378
378
  ], 512), [
379
379
  [G, e(R)]
380
380
  ])
381
381
  ]),
382
- P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
383
- t("div", dt, [
384
- o(T, {
382
+ E.layout !== "minimal" && e(f) ? (s(), v("div", dt, [
383
+ t("div", ut, [
384
+ o(S, {
385
385
  label: e(l)("giftCard.orderGiftCard"),
386
386
  "full-width": !0,
387
- disabled: !e(U),
388
- "is-loading": e(E),
389
- "onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
387
+ disabled: !e(P),
388
+ "is-loading": e(A),
389
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => k(A) ? A.value = i : null),
390
390
  onClickEvent: e(H)
391
391
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
392
392
  ])
393
393
  ])) : g("", !0),
394
- e(f) ? (s(), v("div", ut, [
394
+ e(f) ? (s(), v("div", ct, [
395
395
  o(L, {
396
396
  modelValue: e(u),
397
- "onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
397
+ "onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
398
398
  type: "textarea",
399
399
  name: "remark",
400
400
  label: e(l)("giftCard.remark"),
@@ -402,34 +402,34 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
402
402
  placeholder: e(l)("giftCard.remarkPlaceholder")
403
403
  }, null, 8, ["modelValue", "label", "placeholder"])
404
404
  ])) : g("", !0),
405
- e(f) ? (s(), v("div", ct, [
406
- o(T, {
405
+ e(f) ? (s(), v("div", pt, [
406
+ o(S, {
407
407
  label: e(l)("giftCard.orderGiftCard"),
408
408
  "full-width": !0,
409
- disabled: !e(U),
409
+ disabled: !e(P),
410
410
  "data-test": "orderGiftCard",
411
- "is-loading": e(E),
412
- "onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
411
+ "is-loading": e(A),
412
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => k(A) ? A.value = i : null),
413
413
  onClickEvent: e(H)
414
414
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
415
415
  t("div", null, [
416
- pt,
417
- o(Ze)
416
+ mt,
417
+ o(Ye)
418
418
  ]),
419
- I(t("div", mt, [
420
- o(Ae)
419
+ I(t("div", ft, [
420
+ o(Se)
421
421
  ], 512), [
422
422
  [G, e(X)]
423
423
  ])
424
424
  ])) : g("", !0)
425
425
  ])
426
- ], 8, Je))
426
+ ], 8, Qe))
427
427
  ]),
428
428
  _: 1
429
429
  }, 8, ["access-token", "data-layout", "callback"])
430
430
  ]),
431
431
  fallback: $(() => [
432
- o(Ne)
432
+ o(Oe)
433
433
  ]),
434
434
  _: 1
435
435
  }))
@@ -437,8 +437,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
437
437
  _: 1
438
438
  }, 8, ["styling"]));
439
439
  }
440
- }), M = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-278e1031"]]), bt = me(), vt = be();
441
- class ht extends HTMLElement {
440
+ }), M = /* @__PURE__ */ z(bt, [["__scopeId", "data-v-278e1031"]]), vt = me(), ht = be();
441
+ class _t extends HTMLElement {
442
442
  vueApp;
443
443
  constructor() {
444
444
  super();
@@ -449,7 +449,7 @@ class ht extends HTMLElement {
449
449
  connectedCallback() {
450
450
  const n = typeof M == "function" ? M.options : M;
451
451
  let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
452
- const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (k, b) => (b ? "-" : "") + k.toLowerCase()), c = (u) => u.replace(/-./g, (k) => k[1].toUpperCase()), h = {};
452
+ const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), c = (u) => u.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
453
453
  m = m.map(l);
454
454
  const p = {};
455
455
  for (const u of this.attributes) {
@@ -457,16 +457,16 @@ class ht extends HTMLElement {
457
457
  b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
458
458
  }
459
459
  for (const u of m) {
460
- let k = this.attributes.getNamedItem(u)?.value;
461
- p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
460
+ let y = this.attributes.getNamedItem(u)?.value;
461
+ p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
462
462
  }
463
- this.vueApp = ce(M, h), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(fe), this.vueApp.use($e), this.vueApp.use(we, { bootstrap: !0 });
463
+ this.vueApp = ce(M, h), we(this.vueApp), this.vueApp.provide("emitter", ht), this.vueApp.use(vt), this.vueApp.use(fe), this.vueApp.use(Fe), this.vueApp.use($e, { bootstrap: !0 });
464
464
  const _ = document.createElement("div");
465
465
  this.vueApp.mount(_), this.appendChild(_.children[0]);
466
466
  }
467
467
  }
468
- window.customElements.define("konnectio-gift-card", ht);
468
+ window.customElements.define("konnectio-gift-card", _t);
469
469
  export {
470
- ht as default
470
+ _t as default
471
471
  };
472
472
  //# sourceMappingURL=gift-card.js.map
Binary file
@@ -1,15 +1,15 @@
1
- import { r as H, a as J, d as E, G as s, t as S, S as w, v as M, o as O, w as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DigDTbcx.js";
2
- import { d as Q, s as X, a as k } from "./mitt-BI4s3zkK.js";
3
- import { r as t, c as a } from "./_sentry-release-injection-file-CE-HFIuO.js";
1
+ import { t as H, a as J, e as A, G as s, v as S, S as w, w as E, p as M, x as K } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js";
2
+ import { d as Q, s as X, a as k } from "./mitt-B7XZkC8D.js";
3
+ import { r as t, c as a } from "./_sentry-release-injection-file-gnd2S326.js";
4
4
  (function() {
5
5
  try {
6
6
  var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
7
- c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "22467707-9aba-4bc6-b566-9af8d4101364", i._sentryDebugIdIdentifier = "sentry-dbid-22467707-9aba-4bc6-b566-9af8d4101364");
7
+ c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "10190812-cc04-410b-aa3e-421b78f761ee", i._sentryDebugIdIdentifier = "sentry-dbid-10190812-cc04-410b-aa3e-421b78f761ee");
8
8
  } catch {
9
9
  }
10
10
  })();
11
11
  const ae = Q("giftCard", () => {
12
- const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = X(E()), T = E(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: w.string }), p = S("konnectio_email", "", void 0, { serializer: w.string }), g = S("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
12
+ const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: O, hasError: I } = X(A()), T = A(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: w.string }), p = S("konnectio_email", "", void 0, { serializer: w.string }), g = S("konnectio_phone", "", void 0, { serializer: w.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
13
13
  base64: "",
14
14
  type: "",
15
15
  name: ""
@@ -35,17 +35,17 @@ const ae = Q("giftCard", () => {
35
35
  e = b.value[h.value].data[0];
36
36
  else if (y.value !== 0) {
37
37
  const l = R.value, n = b.value[y.value].data;
38
- n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
39
- String(A.id) === String(l) && (e = A);
38
+ n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((x) => {
39
+ String(x.id) === String(l) && (e = x);
40
40
  });
41
41
  }
42
42
  return e;
43
43
  }), L = a(() => !(!f.value || !p.value || !(g.value.length >= 5) || !m.value || r.value === void 0)), q = a(() => !(o.value === s.InitialState && d.value)), N = a(() => !!(o.value === s.WaitingForResponse && d.value));
44
44
  async function $() {
45
45
  try {
46
- const e = (await M.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
46
+ const e = (await E.get("https://production.hotel-service.konnectio.dk/api/gift-card/metadata", {
47
47
  params: {
48
- language: O()
48
+ language: M()
49
49
  },
50
50
  headers: {
51
51
  Authorization: v.value,
@@ -61,11 +61,11 @@ const ae = Q("giftCard", () => {
61
61
  }
62
62
  }
63
63
  async function B() {
64
- o.value = s.WaitingForResponse, d.value = !0, await M.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
64
+ o.value = s.WaitingForResponse, d.value = !0, await E.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
65
65
  termsOfserviceURL: window.location.origin,
66
66
  checkoutUrl: window.location.origin,
67
- currencyID: x.value,
68
- language: O(),
67
+ currencyID: O.value,
68
+ language: M(),
69
69
  amount: m.value,
70
70
  quantity: F.value,
71
71
  freeText: D.value,
@@ -123,4 +123,4 @@ const ae = Q("giftCard", () => {
123
123
  export {
124
124
  ae as u
125
125
  };
126
- //# sourceMappingURL=giftCard-DxfwOj4W.js.map
126
+ //# sourceMappingURL=giftCard-Dl1tPQsP.js.map
Binary file