@konnectio/core 4.0.56-rc45 → 4.0.56-rc46

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 (63) hide show
  1. package/dist/{ActionField-DgGRyzyW.js → ActionField-l77AHDt_.js} +10 -10
  2. package/dist/ActionField-l77AHDt_.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-D_svZV0K.js → AvailabilitySkeleton-6QuYlrqw.js} +61 -61
  4. package/dist/AvailabilitySkeleton-6QuYlrqw.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js +7814 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CV70h5Ny.js.br +0 -0
  7. package/dist/{CheckoutWindow-B85nPXcN.js → CheckoutWindow-CNF_LAo6.js} +14 -14
  8. package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
  9. package/dist/{ErrorMessage-hoBbvZJL.js → ErrorMessage-B0Hm-dJ0.js} +4 -4
  10. package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CqiuFIoF.js → EventAvailabilityForm-BfhYKChb.js} +77 -78
  12. package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
  13. package/dist/{Field-Crk3SejD.js → Field-BJ8nOhMT.js} +8 -8
  14. package/dist/Field-BJ8nOhMT.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js} +3187 -3187
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
  17. package/dist/{TermsOfService-CIIPZAIU.js → TermsOfService-f7DfHbk2.js} +10 -10
  18. package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
  19. package/dist/_-CaC826yR.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js +68 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BLztxup-.js.br +0 -0
  22. package/dist/_commonjsHelpers-ytV6SVHa.js +9541 -0
  23. package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
  24. package/dist/availability.js +56 -55
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +126 -124
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +19 -18
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +138 -138
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/{giftCard-CeKChSm1.js → giftCard-DhbT2_l0.js} +6 -6
  33. package/dist/giftCard-DhbT2_l0.js.br +0 -0
  34. package/dist/hotel.js +385 -384
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/{masonry.plugin-CKLroL2Q.js → masonry.plugin-CVpZ_aQu.js} +3386 -3355
  37. package/dist/masonry.plugin-CVpZ_aQu.js.br +0 -0
  38. package/dist/navigation.js +3 -3
  39. package/dist/polyfill.js +3995 -3992
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/sentry-D1A53_C5.js +18 -0
  42. package/dist/style.css +1 -1
  43. package/dist/style.css.br +0 -0
  44. package/dist/tracing-wxeFiHIa.js +2287 -0
  45. package/dist/tracing-wxeFiHIa.js.br +0 -0
  46. package/package.json +6 -6
  47. package/dist/ActionField-DgGRyzyW.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-D_svZV0K.js.br +0 -0
  49. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js +0 -7746
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CvjkJdcx.js.br +0 -0
  51. package/dist/CheckoutWindow-B85nPXcN.js.br +0 -0
  52. package/dist/ErrorMessage-hoBbvZJL.js.br +0 -0
  53. package/dist/EventAvailabilityForm-CqiuFIoF.js.br +0 -0
  54. package/dist/Field-Crk3SejD.js.br +0 -0
  55. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CbcnRtEB.js.br +0 -0
  56. package/dist/TermsOfService-CIIPZAIU.js.br +0 -0
  57. package/dist/_-DuaWvsgR.js +0 -12
  58. package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js +0 -71
  59. package/dist/_.vue_vue_type_style_index_0_lang-MG6OWZHv.js.br +0 -0
  60. package/dist/_commonjsHelpers-CbB_C6Ai.js +0 -11816
  61. package/dist/_commonjsHelpers-CbB_C6Ai.js.br +0 -0
  62. package/dist/giftCard-CeKChSm1.js.br +0 -0
  63. package/dist/masonry.plugin-CKLroL2Q.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,20 +1,20 @@
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 M, F as se, A as re, x as k, p as de, j as ue, k as ce } from "./_commonjsHelpers-CbB_C6Ai.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 L, 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-CbcnRtEB.js";
3
- import { u as D } from "./giftCard-CeKChSm1.js";
4
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-MG6OWZHv.js";
5
- import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-B85nPXcN.js";
6
- import { F as A } from "./Field-Crk3SejD.js";
7
- import { E as Se } from "./ErrorMessage-hoBbvZJL.js";
8
- import { S as Ie } from "./TermsOfService-CIIPZAIU.js";
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-eIGiZxmD.js";
3
+ import { u as x } from "./giftCard-DhbT2_l0.js";
4
+ import { _ as Fe } from "./_.vue_vue_type_style_index_0_lang-BLztxup-.js";
5
+ import { C as $e, a as Ee, P as Pe, _ as Ue } from "./CheckoutWindow-CNF_LAo6.js";
6
+ import { F as A } from "./Field-BJ8nOhMT.js";
7
+ import { E as Ae } from "./ErrorMessage-B0Hm-dJ0.js";
8
+ import { S as Ie } from "./TermsOfService-f7DfHbk2.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] = "0c48a098-5331-4805-80ee-7366488b93ab", d._sentryDebugIdIdentifier = "sentry-dbid-0c48a098-5331-4805-80ee-7366488b93ab");
13
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "cd09c28f-1876-46d7-9e95-a47667017f04", d._sentryDebugIdIdentifier = "sentry-dbid-cd09c28f-1876-46d7-9e95-a47667017f04");
14
14
  } catch {
15
15
  }
16
16
  })();
17
- const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Ge = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, xe = ["src"], De = /* @__PURE__ */ I({
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({
18
18
  __name: "MediaSelector",
19
19
  props: {
20
20
  modelValue: {},
@@ -25,11 +25,11 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
25
25
  },
26
26
  emits: ["update:modelValue"],
27
27
  setup(d, { emit: n }) {
28
- const m = n, l = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
28
+ const m = n, t = d, { t: c } = B(), { display: h } = pe(), p = K(), _ = Z(() => t.modelValue.base64 !== "");
29
29
  function u(a) {
30
30
  m("update:modelValue", a);
31
31
  }
32
- function y() {
32
+ function k() {
33
33
  u({
34
34
  base64: "",
35
35
  name: "",
@@ -39,12 +39,12 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
39
39
  function b() {
40
40
  p.value && p.value.click();
41
41
  }
42
- function H(a, f) {
42
+ function j(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 x = U.target.result;
47
- f({ base64: x, name: V, type: R });
46
+ const D = U.target.result;
47
+ f({ base64: D, name: V, type: R });
48
48
  } else
49
49
  h({
50
50
  message: c("imageUploadError"),
@@ -54,7 +54,7 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
54
54
  }
55
55
  async function $() {
56
56
  let a;
57
- (a = p.value.files) instanceof FileList && H(a[0], u);
57
+ (a = p.value.files) instanceof FileList && j(a[0], u);
58
58
  }
59
59
  return (a, f) => (s(), w(me, {
60
60
  label: a.label,
@@ -62,8 +62,8 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
62
62
  type: "media"
63
63
  }, {
64
64
  default: F(() => [
65
- t("div", Te, [
66
- t("input", {
65
+ l("div", Se, [
66
+ l("input", {
67
67
  ref_key: "fileInput",
68
68
  ref: p,
69
69
  type: "file",
@@ -71,11 +71,11 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
71
71
  accept: a.validation,
72
72
  single: "",
73
73
  onChange: f[0] || (f[0] = (V) => $())
74
- }, null, 40, Me),
75
- t("div", Le, [
76
- t("ul", qe, [
77
- _.value ? g("", !0) : (s(), v("li", Ge, [
78
- o(S, {
74
+ }, null, 40, Te),
75
+ l("div", Le, [
76
+ l("ul", qe, [
77
+ _.value ? g("", !0) : (s(), v("li", Me, [
78
+ o(I, {
79
79
  label: e(c)("uploadFile"),
80
80
  type: "button",
81
81
  icon: "upload",
@@ -83,8 +83,8 @@ const Te = { class: "media-selector" }, Me = ["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", Be, [
87
- o(S, {
86
+ _.value ? (s(), v("li", Ge, [
87
+ o(I, {
88
88
  label: e(c)("replaceFile"),
89
89
  type: "button",
90
90
  icon: "repeat-alt",
@@ -92,17 +92,17 @@ const Te = { class: "media-selector" }, Me = ["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", Re, [
96
- o(S, {
95
+ _.value ? (s(), v("li", Be, [
96
+ o(I, {
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) => y())
101
+ onClickEvent: f[3] || (f[3] = (V) => k())
102
102
  }, null, 8, ["label", "icon-color"])
103
103
  ])) : g("", !0)
104
104
  ]),
105
- t("div", {
105
+ l("div", {
106
106
  class: Y([
107
107
  "media-selector-previewer",
108
108
  { opened: _.value }
@@ -111,7 +111,7 @@ const Te = { class: "media-selector" }, Me = ["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, xe)) : g("", !0)
114
+ }, null, 8, Re)) : 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 ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ I({
144
+ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ S({
145
145
  __name: "GiftCardSkeleton",
146
146
  setup(d) {
147
- return (n, m) => (s(), v("div", ze, [
148
- t("div", He, [
147
+ return (n, m) => (s(), v("div", xe, [
148
+ l("div", ze, [
149
149
  o(A),
150
150
  o(A),
151
151
  o(A),
@@ -155,7 +155,7 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
155
155
  ])
156
156
  ]));
157
157
  }
158
- }), Ne = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Oe = { class: "konnectio-accept-terms" }, We = /* @__PURE__ */ I({
158
+ }), He = /* @__PURE__ */ z(je, [["__scopeId", "data-v-ba3efaa1"]]), Ne = { class: "konnectio-accept-terms" }, Oe = /* @__PURE__ */ S({
159
159
  __name: "_",
160
160
  props: {
161
161
  content: {},
@@ -163,22 +163,22 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
163
163
  },
164
164
  setup(d) {
165
165
  const { t: n } = B(), m = K(!1);
166
- return (l, c) => (s(), v("div", Oe, [
166
+ return (t, c) => (s(), v("div", Ne, [
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
- t("i", null, '"' + G(l.buttonLabel) + '"', 1)
173
+ l("i", null, '"' + G(t.buttonLabel) + '"', 1)
174
174
  ]),
175
175
  terms: F(() => [
176
- t("a", {
176
+ l("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
- t("span", null, G(e(n)("general.termsAndConditions")), 1)
181
+ l("span", null, G(e(n)("general.termsAndConditions")), 1)
182
182
  ])
183
183
  ]),
184
184
  _: 1
@@ -186,34 +186,34 @@ const ze = { class: "gift-card-skeleton" }, He = { 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: l.content
189
+ description: t.content
190
190
  }, null, 8, ["modelValue", "description"])
191
191
  ]));
192
192
  }
193
- }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ I({
193
+ }), We = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-f587c956"]]), Ke = /* @__PURE__ */ S({
194
194
  __name: "GiftCard",
195
195
  setup(d) {
196
- const { t: n } = B(), m = D();
197
- return (l, c) => (s(), w(Ke, {
196
+ const { t: n } = B(), m = x();
197
+ return (t, c) => (s(), w(We, {
198
198
  content: e(m).termsOfService,
199
199
  "button-label": e(n)("giftCard.orderGiftCard")
200
200
  }, null, 8, ["content", "button-label"]));
201
201
  }
202
- }), Ye = (d) => (de("data-v-36e1c4fe"), 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 = {
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 = {
203
203
  key: 0,
204
204
  id: "konnectio-select-place-type"
205
- }, nt = {
205
+ }, ol = {
206
206
  class: /* @__PURE__ */ Y(["konnectio-label", "required"])
207
- }, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
207
+ }, nl = { id: "konnectio-select-place-type-input" }, il = ["innerHTML"], sl = {
208
208
  key: 0,
209
209
  id: "konnectio-gift-card-order"
210
- }, dt = { class: "konnectio-panel" }, ut = {
210
+ }, rl = { class: "konnectio-panel" }, dl = {
211
211
  key: 1,
212
212
  id: "konnectio-gift-card-remarks"
213
- }, ct = {
213
+ }, ul = {
214
214
  key: 2,
215
215
  id: "konnectio-gift-card-order-minimal"
216
- }, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ I({
216
+ }, cl = /* @__PURE__ */ Ze(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), pl = { id: "konnectio-gift-card-recaptcha" }, ml = /* @__PURE__ */ S({
217
217
  name: "GiftCardLayout",
218
218
  __name: "GiftCard",
219
219
  props: {
@@ -226,15 +226,15 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
226
226
  const n = d, m = Z(() => ({
227
227
  panelMaxWidth: "800px",
228
228
  ...n.styling
229
- })), { t: l } = B(), {
229
+ })), { t } = B(), {
230
230
  name: c,
231
231
  email: h,
232
232
  phone: p,
233
233
  value: _,
234
234
  remark: u,
235
- showValue: y,
235
+ showValue: k,
236
236
  quantity: b,
237
- media: H,
237
+ media: j,
238
238
  placeId: $,
239
239
  placeType: a,
240
240
  showFormPage: f,
@@ -242,25 +242,25 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
242
242
  showConfirmationPage: R,
243
243
  places: C,
244
244
  hasFilledForm: U,
245
- hasForcedPlaceType: x,
245
+ hasForcedPlaceType: D,
246
246
  isWaitingForResponse: E
247
- } = O(D()), { initialize: J, orderGiftCard: j, fetchMetadata: Q } = D(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ve());
247
+ } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: le } = 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(ye, { styling: m.value }, {
253
+ }), (P, r) => (s(), w(ke, { styling: m.value }, {
254
254
  default: F(() => [
255
255
  (s(), w(ie, null, {
256
256
  default: F(() => [
257
- o($e, {
257
+ o(Fe, {
258
258
  "access-token": P.accessToken,
259
259
  "data-layout": P.layout,
260
- onMetadata: e(Q)
260
+ callback: e(Q)
261
261
  }, {
262
262
  default: F(() => [
263
- e(te) ? (s(), w(Se, {
263
+ e(le) ? (s(), w(Ae, {
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 ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
269
269
  id: "konnectio-gift-card-module",
270
270
  "data-layout": P.layout
271
271
  }, [
272
- t("div", Qe, [
273
- t("h2", Xe, [
274
- t("span", null, G(e(l)("giftCard.title")), 1)
272
+ l("div", Je, [
273
+ l("h2", Qe, [
274
+ l("span", null, G(e(t)("giftCard.title")), 1)
275
275
  ]),
276
- t("div", et, [
277
- T(t("div", tt, [
278
- o(Ee)
276
+ l("div", Xe, [
277
+ T(l("div", el, [
278
+ o($e)
279
279
  ], 512), [
280
- [M, e(V)]
280
+ [L, e(V)]
281
281
  ]),
282
- T(t("div", null, [
283
- t("p", {
282
+ T(l("div", null, [
283
+ l("p", {
284
284
  id: "konnectio-gift-card-description",
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)
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)
292
292
  ]),
293
- t("div", it, [
294
- t("ul", null, [
293
+ l("div", nl, [
294
+ l("ul", null, [
295
295
  (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
296
- o(Pe, {
296
+ o(Ee, {
297
297
  modelValue: e(a),
298
- "onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
298
+ "onUpdate:modelValue": r[0] || (r[0] = (te) => y(a) ? a.value = te : null),
299
299
  type: "radio",
300
300
  name: "placeType",
301
301
  val: N,
@@ -306,8 +306,8 @@ const ze = { class: "gift-card-skeleton" }, He = { 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) => k($) ? $.value = i : null),
310
- placeholder: e(l)("giftCard.selectPlacePlaceholder"),
309
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => y($) ? $.value = i : null),
310
+ placeholder: e(t)("giftCard.selectPlacePlaceholder"),
311
311
  options: e(C)[e(a)].data,
312
312
  labelKey: "name",
313
313
  valueKey: "id",
@@ -316,44 +316,44 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
316
316
  ])
317
317
  ])) : (s(), w(_e, { key: 1 }))
318
318
  ])),
319
- o(L, {
319
+ o(q, {
320
320
  modelValue: e(c),
321
- "onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
321
+ "onUpdate:modelValue": r[2] || (r[2] = (i) => y(c) ? c.value = i : null),
322
322
  type: "text",
323
323
  name: "name",
324
324
  autocomplete: "name",
325
- label: e(l)("giftCard.name"),
325
+ label: e(t)("giftCard.name"),
326
326
  icon: "user-alt",
327
- placeholder: e(l)("giftCard.namePlaceholder"),
327
+ placeholder: e(t)("giftCard.namePlaceholder"),
328
328
  required: ""
329
329
  }, null, 8, ["modelValue", "label", "placeholder"]),
330
- o(L, {
330
+ o(q, {
331
331
  modelValue: e(h),
332
- "onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
332
+ "onUpdate:modelValue": r[3] || (r[3] = (i) => y(h) ? h.value = i : null),
333
333
  type: "email",
334
334
  name: "email",
335
335
  autocomplete: "email",
336
- label: e(l)("giftCard.email"),
336
+ label: e(t)("giftCard.email"),
337
337
  icon: "at",
338
- placeholder: e(l)("giftCard.emailPlaceholder"),
338
+ placeholder: e(t)("giftCard.emailPlaceholder"),
339
339
  required: ""
340
340
  }, null, 8, ["modelValue", "label", "placeholder"]),
341
- o(Ue, {
341
+ o(Pe, {
342
342
  modelValue: e(p),
343
- "onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
343
+ "onUpdate:modelValue": r[4] || (r[4] = (i) => y(p) ? p.value = i : null),
344
344
  icon: "phone-office",
345
- label: e(l)("giftCard.phone"),
346
- placeholder: e(l)("giftCard.phonePlaceholder"),
345
+ label: e(t)("giftCard.phone"),
346
+ placeholder: e(t)("giftCard.phonePlaceholder"),
347
347
  required: ""
348
348
  }, null, 8, ["modelValue", "label", "placeholder"]),
349
- o(L, {
349
+ o(q, {
350
350
  modelValue: e(_),
351
- "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
351
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
352
352
  type: "number",
353
353
  name: "value",
354
- label: e(l)("giftCard.value"),
354
+ label: e(t)("giftCard.value"),
355
355
  icon: "money-bill",
356
- placeholder: e(l)("giftCard.valuePlaceholder"),
356
+ placeholder: e(t)("giftCard.valuePlaceholder"),
357
357
  suffix: e(ee),
358
358
  required: ""
359
359
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
@@ -361,74 +361,74 @@ const ze = { class: "gift-card-skeleton" }, He = { 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) => k(b) ? b.value = i : null),
365
- label: e(l)("giftCard.quantity"),
364
+ "onUpdate:modelValue": r[8] || (r[8] = (i) => y(b) ? b.value = i : null),
365
+ label: e(t)("giftCard.quantity"),
366
366
  icon: "gift-card",
367
367
  required: ""
368
368
  }, null, 8, ["modelValue", "label"])
369
369
  ])
370
370
  ], 512), [
371
- [M, e(f)]
371
+ [L, e(f)]
372
372
  ]),
373
- T(t("div", null, [
374
- t("div", {
375
- innerHTML: e(l)("giftCard.thankYou")
376
- }, null, 8, st)
373
+ T(l("div", null, [
374
+ l("div", {
375
+ innerHTML: e(t)("giftCard.thankYou")
376
+ }, null, 8, il)
377
377
  ], 512), [
378
- [M, e(R)]
378
+ [L, e(R)]
379
379
  ])
380
380
  ]),
381
- P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
382
- t("div", dt, [
383
- o(S, {
384
- label: e(l)("giftCard.orderGiftCard"),
381
+ P.layout !== "minimal" && e(f) ? (s(), v("div", sl, [
382
+ l("div", rl, [
383
+ o(I, {
384
+ label: e(t)("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) => k(E) ? E.value = i : null),
389
- onClickEvent: e(j)
388
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
389
+ onClickEvent: e(H)
390
390
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
391
391
  ])
392
392
  ])) : g("", !0),
393
- e(f) ? (s(), v("div", ut, [
394
- o(L, {
393
+ e(f) ? (s(), v("div", dl, [
394
+ o(q, {
395
395
  modelValue: e(u),
396
- "onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
396
+ "onUpdate:modelValue": r[10] || (r[10] = (i) => y(u) ? u.value = i : null),
397
397
  type: "textarea",
398
398
  name: "remark",
399
- label: e(l)("giftCard.remark"),
399
+ label: e(t)("giftCard.remark"),
400
400
  icon: "info-circle",
401
- placeholder: e(l)("giftCard.remarkPlaceholder")
401
+ placeholder: e(t)("giftCard.remarkPlaceholder")
402
402
  }, null, 8, ["modelValue", "label", "placeholder"])
403
403
  ])) : g("", !0),
404
- e(f) ? (s(), v("div", ct, [
405
- o(S, {
406
- label: e(l)("giftCard.orderGiftCard"),
404
+ e(f) ? (s(), v("div", ul, [
405
+ o(I, {
406
+ label: e(t)("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) => k(E) ? E.value = i : null),
412
- onClickEvent: e(j)
411
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
412
+ onClickEvent: e(H)
413
413
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
414
- t("div", null, [
415
- pt,
416
- o(Ze)
414
+ l("div", null, [
415
+ cl,
416
+ o(Ke)
417
417
  ]),
418
- T(t("div", mt, [
419
- o(Ae)
418
+ T(l("div", pl, [
419
+ o(Ue)
420
420
  ], 512), [
421
- [M, e(X)]
421
+ [L, e(X)]
422
422
  ])
423
423
  ])) : g("", !0)
424
424
  ])
425
- ], 8, Je))
425
+ ], 8, Ye))
426
426
  ]),
427
427
  _: 1
428
- }, 8, ["access-token", "data-layout", "onMetadata"])
428
+ }, 8, ["access-token", "data-layout", "callback"])
429
429
  ]),
430
430
  fallback: F(() => [
431
- o(Ne)
431
+ o(He)
432
432
  ]),
433
433
  _: 1
434
434
  }))
@@ -436,8 +436,8 @@ const ze = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
436
436
  _: 1
437
437
  }, 8, ["styling"]));
438
438
  }
439
- }), q = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-36e1c4fe"]]), bt = ke(), vt = Fe();
440
- class ht extends HTMLElement {
439
+ }), M = /* @__PURE__ */ z(ml, [["__scopeId", "data-v-06df89c3"]]), fl = ye(), bl = we();
440
+ class vl extends HTMLElement {
441
441
  vueApp;
442
442
  constructor() {
443
443
  super();
@@ -446,26 +446,26 @@ class ht extends HTMLElement {
446
446
  this.vueApp.unmount();
447
447
  }
448
448
  connectedCallback() {
449
- const n = typeof q == "function" ? q.options : q;
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 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);
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);
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 y = this.attributes.getNamedItem(u)?.value;
460
- p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
459
+ let k = this.attributes.getNamedItem(u)?.value;
460
+ p.hasOwnProperty(u) && (k = p[u]), h[u] = k;
461
461
  }
462
- this.vueApp = ce(q, h), Ce(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(Ve), this.vueApp.use(we, { bootstrap: !0 });
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 });
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", ht);
467
+ window.customElements.define("konnectio-gift-card", vl);
468
468
  export {
469
- ht as default
469
+ vl as default
470
470
  };
471
471
  //# sourceMappingURL=gift-card.js.map
Binary file
@@ -1,10 +1,10 @@
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-CbcnRtEB.js";
2
- import { r as t, c as a } from "./_commonjsHelpers-CbB_C6Ai.js";
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-eIGiZxmD.js";
2
+ import { r as t, c as a } from "./_commonjsHelpers-ytV6SVHa.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] = "49b66825-3413-4808-8639-57e8f0408b67", i._sentryDebugIdIdentifier = "sentry-dbid-49b66825-3413-4808-8639-57e8f0408b67");
7
+ c && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[c] = "329c1e02-2a6d-4a28-a85a-f7bed4d340c8", i._sentryDebugIdIdentifier = "sentry-dbid-329c1e02-2a6d-4a28-a85a-f7bed4d340c8");
8
8
  } catch {
9
9
  }
10
10
  })();
@@ -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-rc45"
53
+ "Konnectio-Ver": "4.0.56-rc46"
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-rc45"
86
+ "Fresh-Booking-Ver": "4.0.56-rc46"
87
87
  }
88
88
  }).then((e) => {
89
89
  o.value = s.ReadyToPay, d.value = !1, i({
@@ -125,4 +125,4 @@ const ae = K("giftCard", () => {
125
125
  export {
126
126
  ae as u
127
127
  };
128
- //# sourceMappingURL=giftCard-CeKChSm1.js.map
128
+ //# sourceMappingURL=giftCard-DhbT2_l0.js.map
Binary file