@konnectio/core 4.0.56-rc48 → 4.0.56-rc49

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-BmdEaU7R.js → ActionField-B9sCmWFD.js} +11 -11
  2. package/dist/ActionField-B9sCmWFD.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-D-WEI9Yg.js → AvailabilitySkeleton-sGz2nSbb.js} +35 -35
  4. package/dist/AvailabilitySkeleton-sGz2nSbb.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js} +4 -4
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CPIlC8FY.js.br +0 -0
  7. package/dist/{CheckoutWindow-DdkwNLy3.js → CheckoutWindow-CrzoIK1a.js} +14 -14
  8. package/dist/CheckoutWindow-CrzoIK1a.js.br +0 -0
  9. package/dist/{ErrorMessage-Cyrsqt8X.js → ErrorMessage-SZPwCpu-.js} +4 -4
  10. package/dist/ErrorMessage-SZPwCpu-.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BBVSXf1v.js → EventAvailabilityForm-DFuang-b.js} +27 -27
  12. package/dist/EventAvailabilityForm-DFuang-b.js.br +0 -0
  13. package/dist/{Field-cLYq6dB7.js → Field-CLXqVSAA.js} +12 -12
  14. package/dist/Field-CLXqVSAA.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js} +2151 -2132
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js.br +0 -0
  17. package/dist/{TermsOfService-CmEZmmhy.js → TermsOfService-DBwm3BP2.js} +7 -7
  18. package/dist/TermsOfService-DBwm3BP2.js.br +0 -0
  19. package/dist/_-BOjhcjBA.js +12 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CYFSipoN.js → _.vue_vue_type_style_index_0_lang-BNx_Z1PF.js} +11 -11
  21. package/dist/_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js.br +0 -0
  22. package/dist/availability.js +40 -41
  23. package/dist/availability.js.br +0 -0
  24. package/dist/event.js +113 -113
  25. package/dist/event.js.br +0 -0
  26. package/dist/gift-card-validation.js +26 -27
  27. package/dist/gift-card-validation.js.br +0 -0
  28. package/dist/gift-card.js +127 -127
  29. package/dist/gift-card.js.br +0 -0
  30. package/dist/{giftCard-B9vV1-Jc.js → giftCard-hEwcI_Rx.js} +11 -11
  31. package/dist/giftCard-hEwcI_Rx.js.br +0 -0
  32. package/dist/hotel.js +620 -618
  33. package/dist/hotel.js.br +0 -0
  34. package/dist/{masonry.plugin-CpLUlFxC.js → masonry.plugin-C474cwA-.js} +1026 -1009
  35. package/dist/masonry.plugin-C474cwA-.js.br +0 -0
  36. package/dist/navigation.js +2 -2
  37. package/dist/polyfill.js +800 -800
  38. package/dist/polyfill.js.br +0 -0
  39. package/dist/style.css +1 -1
  40. package/dist/style.css.br +0 -0
  41. package/dist/tracing-pAUg9FFo.js +11818 -0
  42. package/dist/tracing-pAUg9FFo.js.br +0 -0
  43. package/package.json +1 -1
  44. package/dist/ActionField-BmdEaU7R.js.br +0 -0
  45. package/dist/AvailabilitySkeleton-D-WEI9Yg.js.br +0 -0
  46. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-DT5BjPBT.js.br +0 -0
  47. package/dist/CheckoutWindow-DdkwNLy3.js.br +0 -0
  48. package/dist/ErrorMessage-Cyrsqt8X.js.br +0 -0
  49. package/dist/EventAvailabilityForm-BBVSXf1v.js.br +0 -0
  50. package/dist/Field-cLYq6dB7.js.br +0 -0
  51. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js.br +0 -0
  52. package/dist/TermsOfService-CmEZmmhy.js.br +0 -0
  53. package/dist/_-BIlhnQ1K.js +0 -12
  54. package/dist/_.vue_vue_type_style_index_0_lang-CYFSipoN.js.br +0 -0
  55. package/dist/_commonjsHelpers-ytV6SVHa.js +0 -9541
  56. package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
  57. package/dist/giftCard-B9vV1-Jc.js.br +0 -0
  58. package/dist/masonry.plugin-CpLUlFxC.js.br +0 -0
  59. package/dist/sentry-D1A53_C5.js +0 -18
  60. package/dist/tracing-wxeFiHIa.js +0 -2287
  61. package/dist/tracing-wxeFiHIa.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,20 +1,20 @@
1
- import { d as S, r as K, c as Z, o as s, b as w, w as F, g as l, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as y, p as de, j as ue, k as ce } from "./_commonjsHelpers-ytV6SVHa.js";
2
- import { h as B, a as pe, C as I, I as me, E as fe, _ as z, D as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ke, o as ye, p as Ce, F as Ve, q as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
3
- import { u as x } from "./giftCard-B9vV1-Jc.js";
4
- import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-CYFSipoN.js";
5
- import { C as $e, a as Ee, P as Pe, _ as Ue } from "./CheckoutWindow-DdkwNLy3.js";
6
- import { F as A } from "./Field-cLYq6dB7.js";
7
- import { E as Ae } from "./ErrorMessage-Cyrsqt8X.js";
8
- import { S as Ie } from "./TermsOfService-CmEZmmhy.js";
1
+ import { d as I, r as K, c as Z, o as s, b as w, w as F, g as t, a as v, f as o, u as e, e as g, n as Y, t as G, i as ae, q as oe, h as ne, S as ie, y as T, z as L, F as se, A as re, x as k, p as de, j as ue, k as ce } from "./tracing-pAUg9FFo.js";
2
+ import { h as B, a as pe, C as S, I as me, E as fe, _ as z, F as be, s as O, b as ve, k as he, L as _e, T as q, l as ge, n as ye, o as ke, p as Ce, q as Ve, H as we, t as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
3
+ import { u as D } from "./giftCard-hEwcI_Rx.js";
4
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-BNx_Z1PF.js";
5
+ import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-CrzoIK1a.js";
6
+ import { F as A } from "./Field-CLXqVSAA.js";
7
+ import { E as Se } from "./ErrorMessage-SZPwCpu-.js";
8
+ import { S as Ie } from "./TermsOfService-DBwm3BP2.js";
9
9
  import "./navigation.js";
10
10
  (function() {
11
11
  try {
12
12
  var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
13
- n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "cd09c28f-1876-46d7-9e95-a47667017f04", d._sentryDebugIdIdentifier = "sentry-dbid-cd09c28f-1876-46d7-9e95-a47667017f04");
13
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "85e8594d-e0ab-49f2-998a-5466aed911cd", d._sentryDebugIdIdentifier = "sentry-dbid-85e8594d-e0ab-49f2-998a-5466aed911cd");
14
14
  } catch {
15
15
  }
16
16
  })();
17
- const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Me = { key: 0 }, Ge = { key: 1 }, Be = { key: 2 }, Re = ["src"], De = /* @__PURE__ */ S({
17
+ const Te = { class: "media-selector" }, Le = ["accept"], qe = { class: "media-selector-wrapper" }, Me = { class: "media-selector-tools" }, Ge = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, xe = ["src"], De = /* @__PURE__ */ I({
18
18
  __name: "MediaSelector",
19
19
  props: {
20
20
  modelValue: {},
@@ -25,11 +25,11 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
25
25
  },
26
26
  emits: ["update:modelValue"],
27
27
  setup(d, { emit: n }) {
28
- const m = n, t = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => t.modelValue.base64 !== "");
28
+ const m = n, l = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
29
29
  function u(a) {
30
30
  m("update:modelValue", a);
31
31
  }
32
- function k() {
32
+ function y() {
33
33
  u({
34
34
  base64: "",
35
35
  name: "",
@@ -39,12 +39,12 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
39
39
  function b() {
40
40
  p.value && p.value.click();
41
41
  }
42
- function j(a, f) {
42
+ function H(a, f) {
43
43
  const [V, R] = [a.name, a.type], C = new FileReader();
44
44
  C.onload = function(U) {
45
45
  if (U.target) {
46
- const D = U.target.result;
47
- f({ base64: D, name: V, type: R });
46
+ const x = U.target.result;
47
+ f({ base64: x, name: V, type: R });
48
48
  } else
49
49
  h({
50
50
  message: c("imageUploadError"),
@@ -54,7 +54,7 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
54
54
  }
55
55
  async function $() {
56
56
  let a;
57
- (a = p.value.files) instanceof FileList && j(a[0], u);
57
+ (a = p.value.files) instanceof FileList && H(a[0], u);
58
58
  }
59
59
  return (a, f) => (s(), w(me, {
60
60
  label: a.label,
@@ -62,8 +62,8 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
62
62
  type: "media"
63
63
  }, {
64
64
  default: F(() => [
65
- l("div", Se, [
66
- l("input", {
65
+ t("div", Te, [
66
+ t("input", {
67
67
  ref_key: "fileInput",
68
68
  ref: p,
69
69
  type: "file",
@@ -71,11 +71,11 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
71
71
  accept: a.validation,
72
72
  single: "",
73
73
  onChange: f[0] || (f[0] = (V) => $())
74
- }, null, 40, Te),
75
- l("div", Le, [
76
- l("ul", qe, [
77
- _.value ? g("", !0) : (s(), v("li", Me, [
78
- o(I, {
74
+ }, null, 40, Le),
75
+ t("div", qe, [
76
+ t("ul", Me, [
77
+ _.value ? g("", !0) : (s(), v("li", Ge, [
78
+ o(S, {
79
79
  label: e(c)("uploadFile"),
80
80
  type: "button",
81
81
  icon: "upload",
@@ -83,8 +83,8 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
83
83
  onClickEvent: f[1] || (f[1] = (V) => b())
84
84
  }, null, 8, ["label", "icon-color"])
85
85
  ])),
86
- _.value ? (s(), v("li", Ge, [
87
- o(I, {
86
+ _.value ? (s(), v("li", Be, [
87
+ o(S, {
88
88
  label: e(c)("replaceFile"),
89
89
  type: "button",
90
90
  icon: "repeat-alt",
@@ -92,17 +92,17 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
92
92
  onClickEvent: f[2] || (f[2] = (V) => b())
93
93
  }, null, 8, ["label", "icon-color"])
94
94
  ])) : g("", !0),
95
- _.value ? (s(), v("li", Be, [
96
- o(I, {
95
+ _.value ? (s(), v("li", Re, [
96
+ o(S, {
97
97
  label: e(c)("removeFile"),
98
98
  type: "button",
99
99
  icon: "trash-alt",
100
100
  "icon-color": a.iconColor,
101
- onClickEvent: f[3] || (f[3] = (V) => k())
101
+ onClickEvent: f[3] || (f[3] = (V) => y())
102
102
  }, null, 8, ["label", "icon-color"])
103
103
  ])) : g("", !0)
104
104
  ]),
105
- l("div", {
105
+ t("div", {
106
106
  class: Y([
107
107
  "media-selector-previewer",
108
108
  { opened: _.value }
@@ -111,7 +111,7 @@ const Se = { class: "media-selector" }, Te = ["accept"], Le = { class: "media-se
111
111
  a.modelValue ? (s(), v("img", {
112
112
  key: 0,
113
113
  src: a.modelValue.base64
114
- }, null, 8, Re)) : g("", !0)
114
+ }, null, 8, xe)) : g("", !0)
115
115
  ], 2)
116
116
  ])
117
117
  ])
@@ -141,11 +141,11 @@ function W(d) {
141
141
  });
142
142
  }
143
143
  typeof W == "function" && W(De);
144
- const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ S({
144
+ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ I({
145
145
  __name: "GiftCardSkeleton",
146
146
  setup(d) {
147
- return (n, m) => (s(), v("div", xe, [
148
- l("div", ze, [
147
+ return (n, m) => (s(), v("div", ze, [
148
+ t("div", He, [
149
149
  o(A),
150
150
  o(A),
151
151
  o(A),
@@ -155,7 +155,7 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
155
155
  ])
156
156
  ]));
157
157
  }
158
- }), He = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Ne = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ S({
158
+ }), Ne = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ I({
159
159
  __name: "_",
160
160
  props: {
161
161
  content: {},
@@ -163,22 +163,22 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
163
163
  },
164
164
  setup(d) {
165
165
  const { t: n } = B(), m = K(!1);
166
- return (t, c) => (s(), v("div", Ne, [
166
+ return (l, c) => (s(), v("div", Oe, [
167
167
  o(e(be), {
168
168
  keypath: "general.termsAndConditionsNotice",
169
169
  tag: "span",
170
170
  scope: "global"
171
171
  }, {
172
172
  button: F(() => [
173
- l("i", null, '"' + G(t.buttonLabel) + '"', 1)
173
+ t("i", null, '"' + G(l.buttonLabel) + '"', 1)
174
174
  ]),
175
175
  terms: F(() => [
176
- l("a", {
176
+ t("a", {
177
177
  class: "konnectio-accept-terms-link",
178
178
  target: "_blank",
179
179
  onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
180
180
  }, [
181
- l("span", null, G(e(n)("general.termsAndConditions")), 1)
181
+ t("span", null, G(e(n)("general.termsAndConditions")), 1)
182
182
  ])
183
183
  ]),
184
184
  _: 1
@@ -186,34 +186,34 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
186
186
  o(Ie, {
187
187
  modelValue: m.value,
188
188
  "onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
189
- description: t.content
189
+ description: l.content
190
190
  }, null, 8, ["modelValue", "description"])
191
191
  ]));
192
192
  }
193
- }), We = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-f587c956"]]), Ke = /* @__PURE__ */ S({
193
+ }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ I({
194
194
  __name: "GiftCard",
195
195
  setup(d) {
196
- const { t: n } = B(), m = x();
197
- return (t, c) => (s(), w(We, {
196
+ const { t: n } = B(), m = D();
197
+ return (l, c) => (s(), w(Ke, {
198
198
  content: e(m).termsOfService,
199
199
  "button-label": e(n)("giftCard.orderGiftCard")
200
200
  }, null, 8, ["content", "button-label"]));
201
201
  }
202
- }), Ze = (d) => (de("data-v-06df89c3"), d = d(), ue(), d), Ye = ["data-layout"], Je = { id: "konnectio-gift-card-wrapper" }, Qe = { id: "konnectio-gift-card-title" }, Xe = { id: "konnectio-gift-card-content" }, el = { id: "konnectio-gift-card-payment" }, ll = ["innerHTML"], tl = { key: 0 }, al = {
202
+ }), Ye = (d) => (de("data-v-06df89c3"), 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
203
  key: 0,
204
204
  id: "konnectio-select-place-type"
205
- }, ol = {
205
+ }, nt = {
206
206
  class: /* @__PURE__ */ Y(["konnectio-label", "required"])
207
- }, nl = { id: "konnectio-select-place-type-input" }, il = ["innerHTML"], sl = {
207
+ }, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
208
208
  key: 0,
209
209
  id: "konnectio-gift-card-order"
210
- }, rl = { class: "konnectio-panel" }, dl = {
210
+ }, dt = { class: "konnectio-panel" }, ut = {
211
211
  key: 1,
212
212
  id: "konnectio-gift-card-remarks"
213
- }, ul = {
213
+ }, ct = {
214
214
  key: 2,
215
215
  id: "konnectio-gift-card-order-minimal"
216
- }, cl = /* @__PURE__ */ Ze(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), pl = { id: "konnectio-gift-card-recaptcha" }, ml = /* @__PURE__ */ S({
216
+ }, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ I({
217
217
  name: "GiftCardLayout",
218
218
  __name: "GiftCard",
219
219
  props: {
@@ -226,15 +226,15 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
226
226
  const n = d, m = Z(() => ({
227
227
  panelMaxWidth: "800px",
228
228
  ...n.styling
229
- })), { t } = B(), {
229
+ })), { t: l } = B(), {
230
230
  name: c,
231
231
  email: h,
232
232
  phone: p,
233
233
  value: _,
234
234
  remark: u,
235
- showValue: k,
235
+ showValue: y,
236
236
  quantity: b,
237
- media: j,
237
+ media: H,
238
238
  placeId: $,
239
239
  placeType: a,
240
240
  showFormPage: f,
@@ -242,25 +242,25 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
242
242
  showConfirmationPage: R,
243
243
  places: C,
244
244
  hasFilledForm: U,
245
- hasForcedPlaceType: D,
245
+ hasForcedPlaceType: x,
246
246
  isWaitingForResponse: E
247
- } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: le } = O(ve());
247
+ } = O(D()), { initialize: J, orderGiftCard: j, fetchMetadata: Q } = D(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ve());
248
248
  return oe(a, () => {
249
249
  $.value = void 0;
250
250
  }), ne(() => {
251
251
  const P = n.placeType ? parseInt(n.placeType) : void 0;
252
252
  J(P);
253
- }), (P, r) => (s(), w(ke, { styling: m.value }, {
253
+ }), (P, r) => (s(), w(ye, { styling: m.value }, {
254
254
  default: F(() => [
255
255
  (s(), w(ie, null, {
256
256
  default: F(() => [
257
- o(Fe, {
257
+ o($e, {
258
258
  "access-token": P.accessToken,
259
259
  "data-layout": P.layout,
260
260
  callback: e(Q)
261
261
  }, {
262
262
  default: F(() => [
263
- e(le) ? (s(), w(Ae, {
263
+ e(te) ? (s(), w(Se, {
264
264
  key: 1,
265
265
  title: "Unable to render Gift card module",
266
266
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -269,33 +269,33 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
269
269
  id: "konnectio-gift-card-module",
270
270
  "data-layout": P.layout
271
271
  }, [
272
- l("div", Je, [
273
- l("h2", Qe, [
274
- l("span", null, G(e(t)("giftCard.title")), 1)
272
+ t("div", Qe, [
273
+ t("h2", Xe, [
274
+ t("span", null, G(e(l)("giftCard.title")), 1)
275
275
  ]),
276
- l("div", Xe, [
277
- T(l("div", el, [
278
- o($e)
276
+ t("div", et, [
277
+ T(t("div", tt, [
278
+ o(Ee)
279
279
  ], 512), [
280
280
  [L, e(V)]
281
281
  ]),
282
- T(l("div", null, [
283
- l("p", {
282
+ T(t("div", null, [
283
+ t("p", {
284
284
  id: "konnectio-gift-card-description",
285
- innerHTML: e(t)("giftCard.description")
286
- }, null, 8, ll),
287
- l("form", null, [
288
- e(D) ? g("", !0) : (s(), v("div", tl, [
289
- e(C) ? (s(), v("div", al, [
290
- l("label", ol, [
291
- l("span", null, G(e(t)("giftCard.selectType")), 1)
285
+ innerHTML: e(l)("giftCard.description")
286
+ }, null, 8, lt),
287
+ t("form", null, [
288
+ e(x) ? g("", !0) : (s(), v("div", at, [
289
+ e(C) ? (s(), v("div", ot, [
290
+ t("label", nt, [
291
+ t("span", null, G(e(l)("giftCard.selectType")), 1)
292
292
  ]),
293
- l("div", nl, [
294
- l("ul", null, [
293
+ t("div", it, [
294
+ t("ul", null, [
295
295
  (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
296
- o(Ee, {
296
+ o(Pe, {
297
297
  modelValue: e(a),
298
- "onUpdate:modelValue": r[0] || (r[0] = (te) => y(a) ? a.value = te : null),
298
+ "onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
299
299
  type: "radio",
300
300
  name: "placeType",
301
301
  val: N,
@@ -306,8 +306,8 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
306
306
  e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(he, {
307
307
  key: 0,
308
308
  modelValue: e($),
309
- "onUpdate:modelValue": r[1] || (r[1] = (i) => y($) ? $.value = i : null),
310
- placeholder: e(t)("giftCard.selectPlacePlaceholder"),
309
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => k($) ? $.value = i : null),
310
+ placeholder: e(l)("giftCard.selectPlacePlaceholder"),
311
311
  options: e(C)[e(a)].data,
312
312
  labelKey: "name",
313
313
  valueKey: "id",
@@ -318,42 +318,42 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
318
318
  ])),
319
319
  o(q, {
320
320
  modelValue: e(c),
321
- "onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
321
+ "onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
322
322
  type: "text",
323
323
  name: "name",
324
324
  autocomplete: "name",
325
- label: e(t)("giftCard.name"),
325
+ label: e(l)("giftCard.name"),
326
326
  icon: "user-alt",
327
- placeholder: e(t)("giftCard.namePlaceholder"),
327
+ placeholder: e(l)("giftCard.namePlaceholder"),
328
328
  required: ""
329
329
  }, null, 8, ["modelValue", "label", "placeholder"]),
330
330
  o(q, {
331
331
  modelValue: e(h),
332
- "onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
332
+ "onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
333
333
  type: "email",
334
334
  name: "email",
335
335
  autocomplete: "email",
336
- label: e(t)("giftCard.email"),
336
+ label: e(l)("giftCard.email"),
337
337
  icon: "at",
338
- placeholder: e(t)("giftCard.emailPlaceholder"),
338
+ placeholder: e(l)("giftCard.emailPlaceholder"),
339
339
  required: ""
340
340
  }, null, 8, ["modelValue", "label", "placeholder"]),
341
- o(Pe, {
341
+ o(Ue, {
342
342
  modelValue: e(p),
343
- "onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
343
+ "onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
344
344
  icon: "phone-office",
345
- label: e(t)("giftCard.phone"),
346
- placeholder: e(t)("giftCard.phonePlaceholder"),
345
+ label: e(l)("giftCard.phone"),
346
+ placeholder: e(l)("giftCard.phonePlaceholder"),
347
347
  required: ""
348
348
  }, null, 8, ["modelValue", "label", "placeholder"]),
349
349
  o(q, {
350
350
  modelValue: e(_),
351
- "onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
351
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
352
352
  type: "number",
353
353
  name: "value",
354
- label: e(t)("giftCard.value"),
354
+ label: e(l)("giftCard.value"),
355
355
  icon: "money-bill",
356
- placeholder: e(t)("giftCard.valuePlaceholder"),
356
+ placeholder: e(l)("giftCard.valuePlaceholder"),
357
357
  suffix: e(ee),
358
358
  required: ""
359
359
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
@@ -361,8 +361,8 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
361
361
  g("", !0),
362
362
  o(ge, {
363
363
  modelValue: e(b),
364
- "onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
365
- label: e(t)("giftCard.quantity"),
364
+ "onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
365
+ label: e(l)("giftCard.quantity"),
366
366
  icon: "gift-card",
367
367
  required: ""
368
368
  }, null, 8, ["modelValue", "label"])
@@ -370,65 +370,65 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
370
370
  ], 512), [
371
371
  [L, e(f)]
372
372
  ]),
373
- T(l("div", null, [
374
- l("div", {
375
- innerHTML: e(t)("giftCard.thankYou")
376
- }, null, 8, il)
373
+ T(t("div", null, [
374
+ t("div", {
375
+ innerHTML: e(l)("giftCard.thankYou")
376
+ }, null, 8, st)
377
377
  ], 512), [
378
378
  [L, e(R)]
379
379
  ])
380
380
  ]),
381
- P.layout !== "minimal" && e(f) ? (s(), v("div", sl, [
382
- l("div", rl, [
383
- o(I, {
384
- label: e(t)("giftCard.orderGiftCard"),
381
+ P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
382
+ t("div", dt, [
383
+ o(S, {
384
+ label: e(l)("giftCard.orderGiftCard"),
385
385
  "full-width": !0,
386
386
  disabled: !e(U),
387
387
  "is-loading": e(E),
388
- "onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
389
- onClickEvent: e(H)
388
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
389
+ onClickEvent: e(j)
390
390
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
391
391
  ])
392
392
  ])) : g("", !0),
393
- e(f) ? (s(), v("div", dl, [
393
+ e(f) ? (s(), v("div", ut, [
394
394
  o(q, {
395
395
  modelValue: e(u),
396
- "onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
396
+ "onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
397
397
  type: "textarea",
398
398
  name: "remark",
399
- label: e(t)("giftCard.remark"),
399
+ label: e(l)("giftCard.remark"),
400
400
  icon: "info-circle",
401
- placeholder: e(t)("giftCard.remarkPlaceholder")
401
+ placeholder: e(l)("giftCard.remarkPlaceholder")
402
402
  }, null, 8, ["modelValue", "label", "placeholder"])
403
403
  ])) : g("", !0),
404
- e(f) ? (s(), v("div", ul, [
405
- o(I, {
406
- label: e(t)("giftCard.orderGiftCard"),
404
+ e(f) ? (s(), v("div", ct, [
405
+ o(S, {
406
+ label: e(l)("giftCard.orderGiftCard"),
407
407
  "full-width": !0,
408
408
  disabled: !e(U),
409
409
  "data-test": "orderGiftCard",
410
410
  "is-loading": e(E),
411
- "onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
412
- onClickEvent: e(H)
411
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
412
+ onClickEvent: e(j)
413
413
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
414
- l("div", null, [
415
- cl,
416
- o(Ke)
414
+ t("div", null, [
415
+ pt,
416
+ o(Ze)
417
417
  ]),
418
- T(l("div", pl, [
419
- o(Ue)
418
+ T(t("div", mt, [
419
+ o(Ae)
420
420
  ], 512), [
421
421
  [L, e(X)]
422
422
  ])
423
423
  ])) : g("", !0)
424
424
  ])
425
- ], 8, Ye))
425
+ ], 8, Je))
426
426
  ]),
427
427
  _: 1
428
428
  }, 8, ["access-token", "data-layout", "callback"])
429
429
  ]),
430
430
  fallback: F(() => [
431
- o(He)
431
+ o(Ne)
432
432
  ]),
433
433
  _: 1
434
434
  }))
@@ -436,8 +436,8 @@ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-fo
436
436
  _: 1
437
437
  }, 8, ["styling"]));
438
438
  }
439
- }), M = /* @__PURE__ */ z(ml, [["__scopeId", "data-v-06df89c3"]]), fl = ye(), bl = we();
440
- class vl extends HTMLElement {
439
+ }), M = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-06df89c3"]]), bt = ke(), vt = Fe();
440
+ class ht extends HTMLElement {
441
441
  vueApp;
442
442
  constructor() {
443
443
  super();
@@ -448,24 +448,24 @@ class vl extends HTMLElement {
448
448
  connectedCallback() {
449
449
  const n = typeof M == "function" ? M.options : M;
450
450
  let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
451
- const t = (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
- m = m.map(t);
451
+ 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 = {};
452
+ m = m.map(l);
453
453
  const p = {};
454
454
  for (const u of this.attributes) {
455
455
  const b = u.name.split(".");
456
456
  b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
457
457
  }
458
458
  for (const u of m) {
459
- let k = this.attributes.getNamedItem(u)?.value;
460
- p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
459
+ let y = this.attributes.getNamedItem(u)?.value;
460
+ p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
461
461
  }
462
- this.vueApp = ce(M, h), this.vueApp.provide("emitter", bl), this.vueApp.use(fl), this.vueApp.use(Ce), this.vueApp.use(Ve, { bootstrap: !0 });
462
+ this.vueApp = ce(M, h), Ce(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(Ve), this.vueApp.use(we, { bootstrap: !0 });
463
463
  const _ = document.createElement("div");
464
464
  this.vueApp.mount(_), this.appendChild(_.children[0]);
465
465
  }
466
466
  }
467
- window.customElements.define("konnectio-gift-card", vl);
467
+ window.customElements.define("konnectio-gift-card", ht);
468
468
  export {
469
- vl as default
469
+ ht as default
470
470
  };
471
471
  //# sourceMappingURL=gift-card.js.map
Binary file
@@ -1,19 +1,19 @@
1
- import { d as K, u as H, a as J, s as Q, b as E, G as s, c as S, i as w, S as k, e as M, g as O, f as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DdW6bv1b.js";
2
- import { r as t, c as a } from "./_commonjsHelpers-ytV6SVHa.js";
1
+ import { d as K, u as H, a as J, s as Q, b as E, G as s, c as b, i as w, S as k, e as M, g as O, f as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CHFFlMbv.js";
2
+ import { r as t, c as a } from "./tracing-pAUg9FFo.js";
3
3
  import "./navigation.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] = "23b5590d-a62e-4144-91b6-d0a03c939012", i._sentryDebugIdIdentifier = "sentry-dbid-23b5590d-a62e-4144-91b6-d0a03c939012");
7
+ c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "eafe5163-3cf3-4efd-8393-1a415e8d74c6", i._sentryDebugIdIdentifier = "sentry-dbid-eafe5163-3cf3-4efd-8393-1a415e8d74c6");
8
8
  } catch {
9
9
  }
10
10
  })();
11
11
  const ae = K("giftCard", () => {
12
- const { pay: i } = H(), { display: c } = J(), { bearerToken: v, metaData: P, currencyId: x, hasError: I } = Q(E()), T = E(), o = t(s.InitialState), f = S("konnectio_name", "", void 0, { serializer: k.string }), p = S("konnectio_email", "", void 0, { serializer: k.string }), g = S("konnectio_phone", "", void 0, { serializer: k.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: x, hasError: I } = Q(E()), T = E(), o = t(s.InitialState), f = b("konnectio_name", "", void 0, { serializer: k.string }), p = b("konnectio_email", "", void 0, { serializer: k.string }), g = b("konnectio_phone", "", void 0, { serializer: k.string }), m = t(""), F = t(1), C = t(!0), D = t(""), u = t({
13
13
  base64: "",
14
14
  type: "",
15
15
  name: ""
16
- }), R = t(void 0), h = t(0), d = t(!1), y = t(0), _ = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), b = a(() => {
16
+ }), R = t(void 0), h = t(0), d = t(!1), y = t(0), _ = a(() => T.hasMetadata ? T.metaData.hotels[0] : {}), G = a(() => _.value.termsOfService ? _.value.termsOfService : ""), U = a(() => o.value === s.InitialState || o.value === s.WaitingForResponse), W = a(() => o.value === s.ReadyToPay), j = a(() => o.value === s.PaymentSuccess), S = a(() => {
17
17
  const e = {
18
18
  1: {
19
19
  label: w.t("giftCard.hotelType"),
@@ -32,9 +32,9 @@ const ae = K("giftCard", () => {
32
32
  }), z = a(() => y.value !== 0), r = a(() => {
33
33
  let e;
34
34
  if (z.value)
35
- e = b.value[y.value].data[0];
35
+ e = S.value[y.value].data[0];
36
36
  else if (h.value !== 0) {
37
- const l = R.value, n = b.value[h.value].data;
37
+ const l = R.value, n = S.value[h.value].data;
38
38
  n.length === 1 ? e = n[0] : l !== void 0 && n.forEach((A) => {
39
39
  String(A.id) === String(l) && (e = A);
40
40
  });
@@ -50,7 +50,7 @@ const ae = K("giftCard", () => {
50
50
  headers: {
51
51
  Authorization: v.value,
52
52
  Accept: "application/json",
53
- "Konnectio-Ver": "4.0.56-rc48"
53
+ "Konnectio-Ver": "4.0.56-rc49"
54
54
  }
55
55
  })).data;
56
56
  e.success !== void 0 ? I.value = !e.success : I.value = !1, P.value = e;
@@ -83,7 +83,7 @@ const ae = K("giftCard", () => {
83
83
  headers: {
84
84
  Authorization: v.value,
85
85
  Accept: "application/json",
86
- "Fresh-Booking-Ver": "4.0.56-rc48"
86
+ "Fresh-Booking-Ver": "4.0.56-rc49"
87
87
  }
88
88
  }).then((e) => {
89
89
  o.value = s.ReadyToPay, d.value = !1, i({
@@ -111,7 +111,7 @@ const ae = K("giftCard", () => {
111
111
  showFormPage: U,
112
112
  showPaymentPage: W,
113
113
  showConfirmationPage: j,
114
- places: b,
114
+ places: S,
115
115
  hasFilledForm: L,
116
116
  hasForcedPlaceType: z,
117
117
  isWaitingForResponse: q,
@@ -125,4 +125,4 @@ const ae = K("giftCard", () => {
125
125
  export {
126
126
  ae as u
127
127
  };
128
- //# sourceMappingURL=giftCard-B9vV1-Jc.js.map
128
+ //# sourceMappingURL=giftCard-hEwcI_Rx.js.map
Binary file