@konnectio/core 4.0.70 → 4.0.71

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-B2nkVHpm.js → ActionField-BOjNNOwm.js} +4 -4
  2. package/dist/ActionField-BOjNNOwm.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-B861c-E-.js → AvailabilitySkeleton-BBZ1jYsL.js} +7 -7
  4. package/dist/AvailabilitySkeleton-BBZ1jYsL.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C7LESH9d.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BBnNIH98.js} +5 -5
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BBnNIH98.js.br +0 -0
  7. package/dist/{CheckoutWindow-DM8NiuXR.js → CheckoutWindow-Be87geqA.js} +5 -5
  8. package/dist/CheckoutWindow-Be87geqA.js.br +0 -0
  9. package/dist/{ErrorMessage-DHi8BQ6u.js → ErrorMessage-PrTNCV3L.js} +4 -4
  10. package/dist/ErrorMessage-PrTNCV3L.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DPn-Gce_.js → EventAvailabilityForm-B_kQ68K4.js} +25 -25
  12. package/dist/EventAvailabilityForm-B_kQ68K4.js.br +0 -0
  13. package/dist/{Field-DxsuquwZ.js → Field-Cly4g5NO.js} +9 -9
  14. package/dist/Field-Cly4g5NO.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js} +2444 -2436
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js.br +0 -0
  17. package/dist/{TermsOfService-D_Jn5Zg_.js → TermsOfService-B4VF2Mqd.js} +13 -13
  18. package/dist/TermsOfService-B4VF2Mqd.js.br +0 -0
  19. package/dist/{_-DvTtY1Ya.js → _-D9xfNmwK.js} +3 -3
  20. package/dist/{_.vue_vue_type_style_index_0_lang-B9P9xmGD.js → _.vue_vue_type_style_index_0_lang-CEE8x56y.js} +4 -4
  21. package/dist/_.vue_vue_type_style_index_0_lang-CEE8x56y.js.br +0 -0
  22. package/dist/{_commonjsHelpers-zI2TZkyo.js → _commonjsHelpers-CjBehFnu.js} +2 -2
  23. package/dist/_commonjsHelpers-CjBehFnu.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-DvEZJp-B.js → _sentry-release-injection-file-DsYwID46.js} +13 -13
  25. package/dist/_sentry-release-injection-file-DsYwID46.js.br +0 -0
  26. package/dist/availability.js +40 -39
  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 +344 -336
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +19 -18
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +64 -63
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-awGtNaxi.js → giftCard-DL8SvzFu.js} +15 -15
  37. package/dist/giftCard-DL8SvzFu.js.br +0 -0
  38. package/dist/hotel.js +779 -758
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-BrevVGLo.js → masonry.plugin-DyMWv_cS.js} +1655 -1585
  41. package/dist/masonry.plugin-DyMWv_cS.js.br +0 -0
  42. package/dist/{mitt-CHkQwqe3.js → mitt-CxLBLOxI.js} +177 -177
  43. package/dist/mitt-CxLBLOxI.js.br +0 -0
  44. package/dist/polyfill.js +108 -108
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/sentry-9IPMO-VI.js +26 -0
  47. package/dist/{style-CTJOBGnG.js → style-bf_adpj0.js} +124 -131
  48. package/dist/style-bf_adpj0.js.br +0 -0
  49. package/dist/style.css +1 -1
  50. package/dist/style.css.br +0 -0
  51. package/package.json +1 -1
  52. package/dist/ActionField-B2nkVHpm.js.br +0 -0
  53. package/dist/AvailabilitySkeleton-B861c-E-.js.br +0 -0
  54. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-C7LESH9d.js.br +0 -0
  55. package/dist/CheckoutWindow-DM8NiuXR.js.br +0 -0
  56. package/dist/ErrorMessage-DHi8BQ6u.js.br +0 -0
  57. package/dist/EventAvailabilityForm-DPn-Gce_.js.br +0 -0
  58. package/dist/Field-DxsuquwZ.js.br +0 -0
  59. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js.br +0 -0
  60. package/dist/TermsOfService-D_Jn5Zg_.js.br +0 -0
  61. package/dist/_.vue_vue_type_style_index_0_lang-B9P9xmGD.js.br +0 -0
  62. package/dist/_commonjsHelpers-zI2TZkyo.js.br +0 -0
  63. package/dist/_sentry-release-injection-file-DvEZJp-B.js.br +0 -0
  64. package/dist/giftCard-awGtNaxi.js.br +0 -0
  65. package/dist/masonry.plugin-BrevVGLo.js.br +0 -0
  66. package/dist/mitt-CHkQwqe3.js.br +0 -0
  67. package/dist/style-CTJOBGnG.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,16 +1,17 @@
1
- import { d as A, a as d, g as v, e as t, f as a, c as P, b as g, w as f, S as B, u as e, t as l, v as _, i as T, h as $, k as N } from "./_sentry-release-injection-file-DvEZJp-B.js";
2
- import { u as U, s as k, c as F, l as H, i as O, m as R } from "./mitt-CHkQwqe3.js";
3
- import { c as j, G as q } from "./style-CTJOBGnG.js";
4
- import { E as h, _ as x, q as C, d as K, I as b, g as W, s as z, C as J } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js";
5
- import { u as Q } from "./giftCard-awGtNaxi.js";
6
- import { _ as Y } from "./_.vue_vue_type_style_index_0_lang-B9P9xmGD.js";
7
- import { A as Z } from "./ActionField-B2nkVHpm.js";
8
- import { F as w } from "./Field-DxsuquwZ.js";
9
- import { E as tt } from "./ErrorMessage-DHi8BQ6u.js";
1
+ import { d as A, a as d, g as v, e as t, f as a, c as P, b as g, w as f, S as B, u as e, t as l, v as _, i as T, h as $, k as N } from "./_sentry-release-injection-file-DsYwID46.js";
2
+ import { u as U, s as k, c as F, l as H, i as O, m as R } from "./mitt-CxLBLOxI.js";
3
+ import { c as j } from "./sentry-9IPMO-VI.js";
4
+ import { E as h, _ as x, q as C, d as q, I as b, g as K, s as W, C as z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js";
5
+ import { u as J } from "./giftCard-DL8SvzFu.js";
6
+ import { _ as Q } from "./_.vue_vue_type_style_index_0_lang-CEE8x56y.js";
7
+ import { A as Y } from "./ActionField-BOjNNOwm.js";
8
+ import { F as w } from "./Field-Cly4g5NO.js";
9
+ import { E as Z } from "./ErrorMessage-PrTNCV3L.js";
10
+ import { G as tt } from "./style-bf_adpj0.js";
10
11
  (function() {
11
12
  try {
12
13
  var n = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new Error().stack;
13
- i && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[i] = "e9c08821-10a8-4b9f-9fb7-7643b9d2e618", n._sentryDebugIdIdentifier = "sentry-dbid-e9c08821-10a8-4b9f-9fb7-7643b9d2e618");
14
+ i && (n._sentryDebugIds = n._sentryDebugIds || {}, n._sentryDebugIds[i] = "56b77537-82fb-44e4-9b2e-1136d69e65af", n._sentryDebugIdIdentifier = "sentry-dbid-56b77537-82fb-44e4-9b2e-1136d69e65af");
14
15
  } catch {
15
16
  }
16
17
  })();
@@ -61,17 +62,17 @@ const et = { class: "gift-card-validation-skeleton" }, at = { class: "gift-card-
61
62
  expirationDate: I,
62
63
  productName: M,
63
64
  isLoading: u
64
- } = k(C()), { currency: D, hasError: G } = k(K()), { fetchMetadata: L } = Q(), { apply: y } = C();
65
- return (X, o) => (d(), g(J, { styling: r.value }, {
65
+ } = k(C()), { currency: D, hasError: G } = k(q()), { fetchMetadata: L } = J(), { apply: y } = C();
66
+ return (X, o) => (d(), g(z, { styling: r.value }, {
66
67
  default: f(() => [
67
68
  (d(), g(B, null, {
68
69
  default: f(() => [
69
- a(Y, {
70
+ a(Q, {
70
71
  "access-token": X.accessToken,
71
72
  callback: e(L)
72
73
  }, {
73
74
  default: f(() => [
74
- e(G) ? (d(), g(tt, {
75
+ e(G) ? (d(), g(Z, {
75
76
  key: 1,
76
77
  title: "Unable to render Gift card validation module",
77
78
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -86,7 +87,7 @@ const et = { class: "gift-card-validation-skeleton" }, at = { class: "gift-card-
86
87
  t("p", {
87
88
  innerHTML: e(s)("giftCardValidation.description")
88
89
  }, null, 8, lt),
89
- a(Z, {
90
+ a(Y, {
90
91
  modelValue: e(m),
91
92
  "onUpdate:modelValue": o[0] || (o[0] = (c) => _(m) ? m.value = c : null),
92
93
  icon: "gift-card",
@@ -132,10 +133,10 @@ const et = { class: "gift-card-validation-skeleton" }, at = { class: "gift-card-
132
133
  t("span", null, l(e(M)), 1)
133
134
  ]),
134
135
  t("td", null, [
135
- t("span", null, l(e(W)(e(S), e(D))), 1)
136
+ t("span", null, l(e(K)(e(S), e(D))), 1)
136
137
  ]),
137
138
  t("td", null, [
138
- t("span", null, l(e(z)(e(I))), 1)
139
+ t("span", null, l(e(W)(e(I))), 1)
139
140
  ])
140
141
  ])
141
142
  ])
@@ -165,7 +166,7 @@ class pt extends HTMLElement {
165
166
  }
166
167
  connectedCallback() {
167
168
  const i = H(V, this.attributes);
168
- this.vueApp = N(V, i), j(this.vueApp), this.vueApp.provide("emitter", ut), this.vueApp.use(ct), this.vueApp.use(O), this.vueApp.use(q);
169
+ this.vueApp = N(V, i), j(this.vueApp), this.vueApp.provide("emitter", ut), this.vueApp.use(ct), this.vueApp.use(O), this.vueApp.use(tt);
169
170
  const r = document.createElement("div");
170
171
  this.vueApp.mount(r), this.appendChild(r.children[0]);
171
172
  }
Binary file
package/dist/gift-card.js CHANGED
@@ -1,17 +1,18 @@
1
- import { d as T, r as Y, c as J, a as i, b as k, w as C, e as l, g as m, f as a, u as e, i as f, n as Q, t as q, h as oe, z as ne, o as ie, S as se, A as I, B as M, F as de, s as re, v, p as ue, j as ce, k as pe } from "./_sentry-release-injection-file-DvEZJp-B.js";
2
- import { u as B, T as me, s as K, c as fe, l as be, i as ve, m as _e } from "./mitt-CHkQwqe3.js";
3
- import { c as he, G as ge } from "./style-CTJOBGnG.js";
4
- import { a as ye, c as S, p as ke, E as Ce, _ as x, d as Ve, n as we, L as $e, T as L, b as Fe, C as Ee, m as Pe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js";
5
- import { u as D } from "./giftCard-awGtNaxi.js";
6
- import { _ as Ue } from "./_.vue_vue_type_style_index_0_lang-B9P9xmGD.js";
7
- import { a as Se, C as Te, P as Ae, _ as Ie } from "./CheckoutWindow-DM8NiuXR.js";
8
- import { F as U } from "./Field-DxsuquwZ.js";
9
- import { E as Me } from "./ErrorMessage-DHi8BQ6u.js";
10
- import { S as Le } from "./TermsOfService-D_Jn5Zg_.js";
1
+ import { d as T, r as Y, c as J, a as i, b as k, w as C, e as l, g as m, f as a, u as e, i as f, n as Q, t as q, h as oe, z as ne, o as ie, S as se, A as I, B as M, F as re, s as de, v as b, p as ue, j as ce, k as pe } from "./_sentry-release-injection-file-DsYwID46.js";
2
+ import { u as B, T as me, s as K, c as fe, l as ve, i as be, m as _e } from "./mitt-CxLBLOxI.js";
3
+ import { c as he } from "./sentry-9IPMO-VI.js";
4
+ import { a as ge, c as S, p as ye, E as ke, _ as x, d as Ce, n as Ve, L as we, T as L, b as $e, C as Fe, m as Ee } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js";
5
+ import { G as Pe } from "./style-bf_adpj0.js";
6
+ import { u as D } from "./giftCard-DL8SvzFu.js";
7
+ import { _ as Ue } from "./_.vue_vue_type_style_index_0_lang-CEE8x56y.js";
8
+ import { a as Se, C as Te, P as Ae, _ as Ie } from "./CheckoutWindow-Be87geqA.js";
9
+ import { F as U } from "./Field-Cly4g5NO.js";
10
+ import { E as Me } from "./ErrorMessage-PrTNCV3L.js";
11
+ import { S as Le } from "./TermsOfService-B4VF2Mqd.js";
11
12
  (function() {
12
13
  try {
13
- var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, d = new Error().stack;
14
- d && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[d] = "f0d79415-0f0d-4b07-9b7d-6533078db522", r._sentryDebugIdIdentifier = "sentry-dbid-f0d79415-0f0d-4b07-9b7d-6533078db522");
14
+ var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, r = new Error().stack;
15
+ r && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[r] = "788a2c57-7c62-457c-9ca0-6fc9b5346c2f", d._sentryDebugIdIdentifier = "sentry-dbid-788a2c57-7c62-457c-9ca0-6fc9b5346c2f");
15
16
  } catch {
16
17
  }
17
18
  })();
@@ -33,8 +34,8 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
33
34
  required: { type: Boolean, default: !1 }
34
35
  },
35
36
  emits: ["update:modelValue"],
36
- setup(r, { emit: d }) {
37
- const c = d, o = r, { t: p } = B(), { display: _ } = ye(), b = Y(), h = J(() => o.modelValue.base64 !== "");
37
+ setup(d, { emit: r }) {
38
+ const c = r, o = d, { t: p } = B(), { display: _ } = ge(), v = Y(), h = J(() => o.modelValue.base64 !== "");
38
39
  function V(t) {
39
40
  c("update:modelValue", t);
40
41
  }
@@ -43,10 +44,10 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
43
44
  base64: "",
44
45
  name: "",
45
46
  type: ""
46
- }), b.value && (b.value.value = "");
47
+ }), v.value && (v.value.value = "");
47
48
  }
48
49
  function w() {
49
- b.value && b.value.click();
50
+ v.value && v.value.click();
50
51
  }
51
52
  function j(t, u) {
52
53
  const [y, G] = [t.name, t.type], g = new FileReader();
@@ -63,9 +64,9 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
63
64
  }
64
65
  async function $() {
65
66
  let t;
66
- (t = b.value.files) instanceof FileList && j(t[0], V);
67
+ (t = v.value.files) instanceof FileList && j(t[0], V);
67
68
  }
68
- return (t, u) => (i(), k(ke, {
69
+ return (t, u) => (i(), k(ye, {
69
70
  label: t.label,
70
71
  required: t.required,
71
72
  type: "media"
@@ -74,7 +75,7 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
74
75
  l("div", qe, [
75
76
  l("input", {
76
77
  ref_key: "fileInput",
77
- ref: b,
78
+ ref: v,
78
79
  type: "file",
79
80
  class: "hidden",
80
81
  accept: t.validation,
@@ -129,9 +130,9 @@ const qe = { class: "media-selector" }, Be = ["accept"], Ge = { class: "media-se
129
130
  }, 8, ["label", "required"]));
130
131
  }
131
132
  });
132
- function O(r) {
133
- const d = r;
134
- d.__i18n = d.__i18n || [], d.__i18n.push({
133
+ function O(d) {
134
+ const r = d;
135
+ r.__i18n = r.__i18n || [], r.__i18n.push({
135
136
  locale: "",
136
137
  resource: {
137
138
  da: {
@@ -152,15 +153,15 @@ function O(r) {
152
153
  typeof O == "function" && O(Ne);
153
154
  const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-form" }, Oe = /* @__PURE__ */ T({
154
155
  __name: "GiftCardSkeleton",
155
- setup(r) {
156
- return (d, c) => (i(), m("div", ze, [
156
+ setup(d) {
157
+ return (r, c) => (i(), m("div", ze, [
157
158
  l("div", Ke, [
158
159
  a(U),
159
160
  a(U),
160
161
  a(U),
161
162
  a(U),
162
163
  a(U, { "is-text-area": "" }),
163
- a(Ce, { height: "44px" })
164
+ a(ke, { height: "44px" })
164
165
  ])
165
166
  ]));
166
167
  }
@@ -170,8 +171,8 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
170
171
  content: {},
171
172
  buttonLabel: {}
172
173
  },
173
- setup(r) {
174
- const { t: d } = B(), c = Y(!1);
174
+ setup(d) {
175
+ const { t: r } = B(), c = Y(!1);
175
176
  return (o, p) => (i(), m("div", Ye, [
176
177
  a(e(me), {
177
178
  keypath: "general.termsAndConditionsNotice",
@@ -187,7 +188,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
187
188
  target: "_blank",
188
189
  onClick: p[0] || (p[0] = oe((_) => c.value = !0, ["prevent"]))
189
190
  }, [
190
- l("span", null, q(e(d)("general.termsAndConditions")), 1)
191
+ l("span", null, q(e(r)("general.termsAndConditions")), 1)
191
192
  ])
192
193
  ]),
193
194
  _: 1
@@ -201,19 +202,19 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
201
202
  }
202
203
  }), Qe = /* @__PURE__ */ x(Je, [["__scopeId", "data-v-f587c956"]]), Xe = /* @__PURE__ */ T({
203
204
  __name: "GiftCard",
204
- setup(r) {
205
- const { t: d } = B(), c = D();
205
+ setup(d) {
206
+ const { t: r } = B(), c = D();
206
207
  return (o, p) => (i(), k(Qe, {
207
208
  content: e(c).termsOfService,
208
- "button-label": e(d)("giftCard.orderGiftCard")
209
+ "button-label": e(r)("giftCard.orderGiftCard")
209
210
  }, null, 8, ["content", "button-label"]));
210
211
  }
211
- }), Ze = (r) => (ue("data-v-278e1031"), r = r(), ce(), r), el = ["data-layout"], ll = { id: "konnectio-gift-card-wrapper" }, tl = { id: "konnectio-gift-card-title" }, al = { id: "konnectio-gift-card-content" }, ol = { id: "konnectio-gift-card-payment" }, nl = ["innerHTML"], il = { key: 0 }, sl = {
212
+ }), Ze = (d) => (ue("data-v-278e1031"), d = d(), ce(), d), el = ["data-layout"], ll = { id: "konnectio-gift-card-wrapper" }, tl = { id: "konnectio-gift-card-title" }, al = { id: "konnectio-gift-card-content" }, ol = { id: "konnectio-gift-card-payment" }, nl = ["innerHTML"], il = { key: 0 }, sl = {
212
213
  key: 0,
213
214
  id: "konnectio-select-place-type"
214
- }, dl = {
215
+ }, rl = {
215
216
  class: /* @__PURE__ */ Q(["konnectio-label", "required"])
216
- }, rl = { id: "konnectio-select-place-type-input" }, ul = ["innerHTML"], cl = {
217
+ }, dl = { id: "konnectio-select-place-type-input" }, ul = ["innerHTML"], cl = {
217
218
  key: 0,
218
219
  id: "konnectio-gift-card-order"
219
220
  }, pl = { class: "konnectio-panel" }, ml = {
@@ -222,7 +223,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
222
223
  }, fl = {
223
224
  key: 2,
224
225
  id: "konnectio-gift-card-order-minimal"
225
- }, bl = /* @__PURE__ */ Ze(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), vl = { id: "konnectio-gift-card-recaptcha" }, _l = /* @__PURE__ */ T({
226
+ }, vl = /* @__PURE__ */ Ze(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), bl = { id: "konnectio-gift-card-recaptcha" }, _l = /* @__PURE__ */ T({
226
227
  name: "GiftCardLayout",
227
228
  __name: "GiftCard",
228
229
  props: {
@@ -231,14 +232,14 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
231
232
  placeType: {},
232
233
  styling: {}
233
234
  },
234
- setup(r) {
235
- const d = r, c = J(() => ({
235
+ setup(d) {
236
+ const r = d, c = J(() => ({
236
237
  panelMaxWidth: "800px",
237
- ...d.styling
238
+ ...r.styling
238
239
  })), { t: o } = B(), {
239
240
  name: p,
240
241
  email: _,
241
- phone: b,
242
+ phone: v,
242
243
  value: h,
243
244
  remark: V,
244
245
  showValue: H,
@@ -253,13 +254,13 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
253
254
  hasFilledForm: P,
254
255
  hasForcedPlaceType: R,
255
256
  isWaitingForResponse: F
256
- } = K(D()), { initialize: X, orderGiftCard: N, fetchMetadata: Z } = D(), { isRecaptchaEnabled: ee, currency: le, hasError: te } = K(Ve());
257
+ } = K(D()), { initialize: X, orderGiftCard: N, fetchMetadata: Z } = D(), { isRecaptchaEnabled: ee, currency: le, hasError: te } = K(Ce());
257
258
  return ne(t, () => {
258
259
  $.value = void 0;
259
260
  }), ie(() => {
260
- const E = d.placeType ? parseInt(d.placeType) : void 0;
261
+ const E = r.placeType ? parseInt(r.placeType) : void 0;
261
262
  X(E);
262
- }), (E, s) => (i(), k(Ee, { styling: c.value }, {
263
+ }), (E, s) => (i(), k(Fe, { styling: c.value }, {
263
264
  default: C(() => [
264
265
  (i(), k(se, null, {
265
266
  default: C(() => [
@@ -296,15 +297,15 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
296
297
  l("form", null, [
297
298
  e(R) ? f("", !0) : (i(), m("div", il, [
298
299
  e(g) ? (i(), m("div", sl, [
299
- l("label", dl, [
300
+ l("label", rl, [
300
301
  l("span", null, q(e(o)("giftCard.selectType")), 1)
301
302
  ]),
302
- l("div", rl, [
303
+ l("div", dl, [
303
304
  l("ul", null, [
304
- (i(!0), m(de, null, re(e(g), (n, z) => (i(), m("li", { key: z }, [
305
+ (i(!0), m(re, null, de(e(g), (n, z) => (i(), m("li", { key: z }, [
305
306
  a(Te, {
306
307
  modelValue: e(t),
307
- "onUpdate:modelValue": s[0] || (s[0] = (ae) => v(t) ? t.value = ae : null),
308
+ "onUpdate:modelValue": s[0] || (s[0] = (ae) => b(t) ? t.value = ae : null),
308
309
  type: "radio",
309
310
  name: "placeType",
310
311
  val: z,
@@ -312,10 +313,10 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
312
313
  }, null, 8, ["modelValue", "val", "label"])
313
314
  ]))), 128))
314
315
  ]),
315
- e(g)[e(t)] && e(g)[e(t)].data.length > 1 ? (i(), k(we, {
316
+ e(g)[e(t)] && e(g)[e(t)].data.length > 1 ? (i(), k(Ve, {
316
317
  key: 0,
317
318
  modelValue: e($),
318
- "onUpdate:modelValue": s[1] || (s[1] = (n) => v($) ? $.value = n : null),
319
+ "onUpdate:modelValue": s[1] || (s[1] = (n) => b($) ? $.value = n : null),
319
320
  placeholder: e(o)("giftCard.selectPlacePlaceholder"),
320
321
  options: e(g)[e(t)].data,
321
322
  labelKey: "name",
@@ -323,11 +324,11 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
323
324
  required: ""
324
325
  }, null, 8, ["modelValue", "placeholder", "options"])) : f("", !0)
325
326
  ])
326
- ])) : (i(), k($e, { key: 1 }))
327
+ ])) : (i(), k(we, { key: 1 }))
327
328
  ])),
328
329
  a(L, {
329
330
  modelValue: e(p),
330
- "onUpdate:modelValue": s[2] || (s[2] = (n) => v(p) ? p.value = n : null),
331
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => b(p) ? p.value = n : null),
331
332
  type: "text",
332
333
  name: "name",
333
334
  autocomplete: "name",
@@ -338,7 +339,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
338
339
  }, null, 8, ["modelValue", "label", "placeholder"]),
339
340
  a(L, {
340
341
  modelValue: e(_),
341
- "onUpdate:modelValue": s[3] || (s[3] = (n) => v(_) ? _.value = n : null),
342
+ "onUpdate:modelValue": s[3] || (s[3] = (n) => b(_) ? _.value = n : null),
342
343
  type: "email",
343
344
  name: "email",
344
345
  autocomplete: "email",
@@ -348,8 +349,8 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
348
349
  required: ""
349
350
  }, null, 8, ["modelValue", "label", "placeholder"]),
350
351
  a(Ae, {
351
- modelValue: e(b),
352
- "onUpdate:modelValue": s[4] || (s[4] = (n) => v(b) ? b.value = n : null),
352
+ modelValue: e(v),
353
+ "onUpdate:modelValue": s[4] || (s[4] = (n) => b(v) ? v.value = n : null),
353
354
  icon: "phone-office",
354
355
  label: e(o)("giftCard.phone"),
355
356
  placeholder: e(o)("giftCard.phonePlaceholder"),
@@ -357,7 +358,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
357
358
  }, null, 8, ["modelValue", "label", "placeholder"]),
358
359
  a(L, {
359
360
  modelValue: e(h),
360
- "onUpdate:modelValue": s[5] || (s[5] = (n) => v(h) ? h.value = n : null),
361
+ "onUpdate:modelValue": s[5] || (s[5] = (n) => b(h) ? h.value = n : null),
361
362
  type: "number",
362
363
  name: "value",
363
364
  label: e(o)("giftCard.value"),
@@ -368,9 +369,9 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
368
369
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
369
370
  f("", !0),
370
371
  f("", !0),
371
- a(Fe, {
372
+ a($e, {
372
373
  modelValue: e(w),
373
- "onUpdate:modelValue": s[8] || (s[8] = (n) => v(w) ? w.value = n : null),
374
+ "onUpdate:modelValue": s[8] || (s[8] = (n) => b(w) ? w.value = n : null),
374
375
  label: e(o)("giftCard.quantity"),
375
376
  icon: "gift-card",
376
377
  required: ""
@@ -394,7 +395,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
394
395
  "full-width": !0,
395
396
  disabled: !e(P),
396
397
  "is-loading": e(F),
397
- "onUpdate:isLoading": s[9] || (s[9] = (n) => v(F) ? F.value = n : null),
398
+ "onUpdate:isLoading": s[9] || (s[9] = (n) => b(F) ? F.value = n : null),
398
399
  onClickEvent: e(N)
399
400
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
400
401
  ])
@@ -402,7 +403,7 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
402
403
  e(u) ? (i(), m("div", ml, [
403
404
  a(L, {
404
405
  modelValue: e(V),
405
- "onUpdate:modelValue": s[10] || (s[10] = (n) => v(V) ? V.value = n : null),
406
+ "onUpdate:modelValue": s[10] || (s[10] = (n) => b(V) ? V.value = n : null),
406
407
  type: "textarea",
407
408
  name: "remark",
408
409
  label: e(o)("giftCard.remark"),
@@ -417,14 +418,14 @@ const ze = { class: "gift-card-skeleton" }, Ke = { class: "gift-card-skeleton-fo
417
418
  disabled: !e(P),
418
419
  "data-test": "orderGiftCard",
419
420
  "is-loading": e(F),
420
- "onUpdate:isLoading": s[11] || (s[11] = (n) => v(F) ? F.value = n : null),
421
+ "onUpdate:isLoading": s[11] || (s[11] = (n) => b(F) ? F.value = n : null),
421
422
  onClickEvent: e(N)
422
423
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
423
424
  l("div", null, [
424
- bl,
425
+ vl,
425
426
  a(Xe)
426
427
  ]),
427
- I(l("div", vl, [
428
+ I(l("div", bl, [
428
429
  a(Ie)
429
430
  ], 512), [
430
431
  [M, e(ee)]
@@ -455,8 +456,8 @@ class yl extends HTMLElement {
455
456
  this.vueApp.unmount();
456
457
  }
457
458
  connectedCallback() {
458
- const d = be(W, this.attributes);
459
- this.vueApp = pe(W, d), he(this.vueApp), this.vueApp.provide("emitter", gl), this.vueApp.use(hl), this.vueApp.use(ve), this.vueApp.use(ge), this.vueApp.use(Pe, { bootstrap: !0 });
459
+ const r = ve(W, this.attributes);
460
+ this.vueApp = pe(W, r), he(this.vueApp), this.vueApp.provide("emitter", gl), this.vueApp.use(hl), this.vueApp.use(be), this.vueApp.use(Pe), this.vueApp.use(Ee, { bootstrap: !0 });
460
461
  const c = document.createElement("div");
461
462
  this.vueApp.mount(c), this.appendChild(c.children[0]);
462
463
  }
Binary file
@@ -1,27 +1,27 @@
1
- import { r as H, a as J, d as A, G as o, t as b, S as k, v as O, o as x, w as Q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CvsS3MPq.js";
2
- import { d as X, s as Y, a as P } from "./mitt-CHkQwqe3.js";
3
- import { r as t, c as a } from "./_sentry-release-injection-file-DvEZJp-B.js";
1
+ import { r as H, a as J, d as A, G as o, t as S, S as k, v as O, o as x, w as Q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DeBoKL9k.js";
2
+ import { d as X, s as Y, a as P } from "./mitt-CxLBLOxI.js";
3
+ import { r as t, c as a } from "./_sentry-release-injection-file-DsYwID46.js";
4
4
  (function() {
5
5
  try {
6
6
  var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, c = new Error().stack;
7
- c && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[c] = "41681274-d3f2-4b96-932d-f5a17319d56d", r._sentryDebugIdIdentifier = "sentry-dbid-41681274-d3f2-4b96-932d-f5a17319d56d");
7
+ c && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[c] = "20ccc654-5baf-4857-b773-9469a0a79b74", r._sentryDebugIdIdentifier = "sentry-dbid-20ccc654-5baf-4857-b773-9469a0a79b74");
8
8
  } catch {
9
9
  }
10
10
  })();
11
11
  {
12
- var f = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
13
- f._sentryModuleMetadata = f._sentryModuleMetadata || {}, f._sentryModuleMetadata[new Error().stack] = Object.assign(
12
+ var v = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
13
+ v._sentryModuleMetadata = v._sentryModuleMetadata || {}, v._sentryModuleMetadata[new Error().stack] = Object.assign(
14
14
  {},
15
- f._sentryModuleMetadata[new Error().stack],
15
+ v._sentryModuleMetadata[new Error().stack],
16
16
  { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
17
17
  );
18
18
  }
19
19
  const te = X("giftCard", () => {
20
- const { pay: r } = H(), { display: c } = J(), { bearerToken: v, metaData: I, currencyId: j, hasError: T } = Y(A()), F = A(), n = t(o.InitialState), p = b("konnectio_name", "", void 0, { serializer: k.string }), g = b("konnectio_email", "", void 0, { serializer: k.string }), y = b("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), _ = t(1), C = t(!0), D = t(""), u = t({
20
+ const { pay: r } = H(), { display: c } = J(), { bearerToken: f, metaData: I, currencyId: j, hasError: T } = Y(A()), F = A(), n = t(o.InitialState), p = S("konnectio_name", "", void 0, { serializer: k.string }), g = S("konnectio_email", "", void 0, { serializer: k.string }), y = S("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), _ = t(1), C = t(!0), D = t(""), u = t({
21
21
  base64: "",
22
22
  type: "",
23
23
  name: ""
24
- }), E = t(void 0), h = t(0), d = t(!1), w = t(0), M = a(() => F.hasMetadata ? F.metaData.hotels[0] : {}), U = a(() => M.value.termsOfService ? M.value.termsOfService : ""), W = a(() => n.value === o.InitialState || n.value === o.WaitingForResponse), L = a(() => n.value === o.ReadyToPay), q = a(() => n.value === o.PaymentSuccess), S = a(() => {
24
+ }), E = t(void 0), h = t(0), d = t(!1), w = t(0), M = a(() => F.hasMetadata ? F.metaData.hotels[0] : {}), U = a(() => M.value.termsOfService ? M.value.termsOfService : ""), W = a(() => n.value === o.InitialState || n.value === o.WaitingForResponse), L = a(() => n.value === o.ReadyToPay), q = a(() => n.value === o.PaymentSuccess), b = a(() => {
25
25
  const e = {
26
26
  1: {
27
27
  label: P.t("giftCard.hotelType"),
@@ -40,9 +40,9 @@ const te = X("giftCard", () => {
40
40
  }), R = a(() => w.value !== 0), i = a(() => {
41
41
  let e;
42
42
  if (R.value)
43
- e = S.value[w.value].data[0];
43
+ e = b.value[w.value].data[0];
44
44
  else if (h.value !== 0) {
45
- const l = E.value, s = S.value[h.value].data;
45
+ const l = E.value, s = b.value[h.value].data;
46
46
  s.length === 1 ? e = s[0] : l !== void 0 && s.forEach((z) => {
47
47
  String(z.id) === String(l) && (e = z);
48
48
  });
@@ -56,7 +56,7 @@ const te = X("giftCard", () => {
56
56
  language: x()
57
57
  },
58
58
  headers: {
59
- Authorization: v.value,
59
+ Authorization: f.value,
60
60
  Accept: "application/json"
61
61
  }
62
62
  })).data;
@@ -88,7 +88,7 @@ const te = X("giftCard", () => {
88
88
  placeID: i.value ? i.value.id : void 0
89
89
  }, {
90
90
  headers: {
91
- Authorization: v.value,
91
+ Authorization: f.value,
92
92
  Accept: "application/json"
93
93
  }
94
94
  }).then((e) => {
@@ -117,7 +117,7 @@ const te = X("giftCard", () => {
117
117
  showFormPage: W,
118
118
  showPaymentPage: L,
119
119
  showConfirmationPage: q,
120
- places: S,
120
+ places: b,
121
121
  hasFilledForm: B,
122
122
  hasForcedPlaceType: R,
123
123
  isWaitingForResponse: N,
@@ -131,4 +131,4 @@ const te = X("giftCard", () => {
131
131
  export {
132
132
  te as u
133
133
  };
134
- //# sourceMappingURL=giftCard-awGtNaxi.js.map
134
+ //# sourceMappingURL=giftCard-DL8SvzFu.js.map
Binary file