@konnectio/core 4.0.56-rc44 → 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 (64) hide show
  1. package/dist/{ActionField-Djfp-835.js → ActionField-l77AHDt_.js} +10 -10
  2. package/dist/ActionField-l77AHDt_.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DDFsTOcT.js → AvailabilitySkeleton-6QuYlrqw.js} +53 -53
  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-CNEuNkIt.js → CheckoutWindow-CNF_LAo6.js} +4 -4
  8. package/dist/CheckoutWindow-CNF_LAo6.js.br +0 -0
  9. package/dist/{ErrorMessage-bD3z1ENc.js → ErrorMessage-B0Hm-dJ0.js} +4 -4
  10. package/dist/ErrorMessage-B0Hm-dJ0.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BJ6gzh6V.js → EventAvailabilityForm-BfhYKChb.js} +77 -78
  12. package/dist/EventAvailabilityForm-BfhYKChb.js.br +0 -0
  13. package/dist/{Field-BflvstOX.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-hMDyUv2Y.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js} +2382 -2376
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-eIGiZxmD.js.br +0 -0
  17. package/dist/TermsOfService-f7DfHbk2.js +35 -0
  18. package/dist/TermsOfService-f7DfHbk2.js.br +0 -0
  19. package/dist/{_-DuCIctjS.js → _-CaC826yR.js} +2 -2
  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-BnQF6Gki.js → _commonjsHelpers-ytV6SVHa.js} +2025 -2027
  23. package/dist/_commonjsHelpers-ytV6SVHa.js.br +0 -0
  24. package/dist/availability.js +41 -41
  25. package/dist/availability.js.br +0 -0
  26. package/dist/event.js +100 -99
  27. package/dist/event.js.br +0 -0
  28. package/dist/gift-card-validation.js +25 -25
  29. package/dist/gift-card-validation.js.br +0 -0
  30. package/dist/gift-card.js +130 -131
  31. package/dist/gift-card.js.br +0 -0
  32. package/dist/{giftCard-CWyKVevn.js → giftCard-DhbT2_l0.js} +6 -6
  33. package/dist/giftCard-DhbT2_l0.js.br +0 -0
  34. package/dist/hotel.js +275 -274
  35. package/dist/hotel.js.br +0 -0
  36. package/dist/{masonry.plugin-CttzlASt.js → masonry.plugin-CVpZ_aQu.js} +3386 -3355
  37. package/dist/masonry.plugin-CVpZ_aQu.js.br +0 -0
  38. package/dist/navigation.js +2 -2
  39. package/dist/polyfill.js +3830 -3828
  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-wnoA9-xG.js → tracing-wxeFiHIa.js} +3 -3
  45. package/dist/tracing-wxeFiHIa.js.br +0 -0
  46. package/package.json +8 -8
  47. package/dist/ActionField-Djfp-835.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-DDFsTOcT.js.br +0 -0
  49. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CsyexEp4.js +0 -7746
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CsyexEp4.js.br +0 -0
  51. package/dist/CheckoutWindow-CNEuNkIt.js.br +0 -0
  52. package/dist/ErrorMessage-bD3z1ENc.js.br +0 -0
  53. package/dist/EventAvailabilityForm-BJ6gzh6V.js.br +0 -0
  54. package/dist/Field-BflvstOX.js.br +0 -0
  55. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-hMDyUv2Y.js.br +0 -0
  56. package/dist/TermsOfService-CgTw1PTk.js +0 -35
  57. package/dist/TermsOfService-CgTw1PTk.js.br +0 -0
  58. package/dist/_.vue_vue_type_style_index_0_lang-C_NfK1xz.js +0 -71
  59. package/dist/_.vue_vue_type_style_index_0_lang-C_NfK1xz.js.br +0 -0
  60. package/dist/_commonjsHelpers-BnQF6Gki.js.br +0 -0
  61. package/dist/giftCard-CWyKVevn.js.br +0 -0
  62. package/dist/masonry.plugin-CttzlASt.js.br +0 -0
  63. package/dist/sentry-6-6DYT4Z.js +0 -18
  64. package/dist/tracing-wnoA9-xG.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,21 +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-BnQF6Gki.js";
2
- import { h as B, a as pe, C as S, 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 L, l as ge, n as ye, o as ke, p as Ce, F as Ve, q as we } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-hMDyUv2Y.js";
3
- import { c as Fe } from "./sentry-6-6DYT4Z.js";
4
- import { u as x } from "./giftCard-CWyKVevn.js";
5
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-C_NfK1xz.js";
6
- import { C as Ee, a as Pe, P as Ue, _ as Ae } from "./CheckoutWindow-CNEuNkIt.js";
7
- import { F as A } from "./Field-BflvstOX.js";
8
- import { E as Se } from "./ErrorMessage-bD3z1ENc.js";
9
- import { S as Ie } from "./TermsOfService-CgTw1PTk.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";
10
9
  import "./navigation.js";
11
10
  (function() {
12
11
  try {
13
12
  var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
14
- n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "54437b28-6ee4-4c2b-828e-d5aecfc7de87", d._sentryDebugIdIdentifier = "sentry-dbid-54437b28-6ee4-4c2b-828e-d5aecfc7de87");
13
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "cd09c28f-1876-46d7-9e95-a47667017f04", d._sentryDebugIdIdentifier = "sentry-dbid-cd09c28f-1876-46d7-9e95-a47667017f04");
15
14
  } catch {
16
15
  }
17
16
  })();
18
- 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 }, De = ["src"], xe = /* @__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({
19
18
  __name: "MediaSelector",
20
19
  props: {
21
20
  modelValue: {},
@@ -26,11 +25,11 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
26
25
  },
27
26
  emits: ["update:modelValue"],
28
27
  setup(d, { emit: n }) {
29
- 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 !== "");
30
29
  function u(a) {
31
30
  m("update:modelValue", a);
32
31
  }
33
- function y() {
32
+ function k() {
34
33
  u({
35
34
  base64: "",
36
35
  name: "",
@@ -63,8 +62,8 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
63
62
  type: "media"
64
63
  }, {
65
64
  default: F(() => [
66
- t("div", Te, [
67
- t("input", {
65
+ l("div", Se, [
66
+ l("input", {
68
67
  ref_key: "fileInput",
69
68
  ref: p,
70
69
  type: "file",
@@ -72,11 +71,11 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
72
71
  accept: a.validation,
73
72
  single: "",
74
73
  onChange: f[0] || (f[0] = (V) => $())
75
- }, null, 40, Me),
76
- t("div", Le, [
77
- t("ul", qe, [
78
- _.value ? g("", !0) : (s(), v("li", Ge, [
79
- 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, {
80
79
  label: e(c)("uploadFile"),
81
80
  type: "button",
82
81
  icon: "upload",
@@ -84,8 +83,8 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
84
83
  onClickEvent: f[1] || (f[1] = (V) => b())
85
84
  }, null, 8, ["label", "icon-color"])
86
85
  ])),
87
- _.value ? (s(), v("li", Be, [
88
- o(S, {
86
+ _.value ? (s(), v("li", Ge, [
87
+ o(I, {
89
88
  label: e(c)("replaceFile"),
90
89
  type: "button",
91
90
  icon: "repeat-alt",
@@ -93,17 +92,17 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
93
92
  onClickEvent: f[2] || (f[2] = (V) => b())
94
93
  }, null, 8, ["label", "icon-color"])
95
94
  ])) : g("", !0),
96
- _.value ? (s(), v("li", Re, [
97
- o(S, {
95
+ _.value ? (s(), v("li", Be, [
96
+ o(I, {
98
97
  label: e(c)("removeFile"),
99
98
  type: "button",
100
99
  icon: "trash-alt",
101
100
  "icon-color": a.iconColor,
102
- onClickEvent: f[3] || (f[3] = (V) => y())
101
+ onClickEvent: f[3] || (f[3] = (V) => k())
103
102
  }, null, 8, ["label", "icon-color"])
104
103
  ])) : g("", !0)
105
104
  ]),
106
- t("div", {
105
+ l("div", {
107
106
  class: Y([
108
107
  "media-selector-previewer",
109
108
  { opened: _.value }
@@ -112,7 +111,7 @@ const Te = { class: "media-selector" }, Me = ["accept"], Le = { class: "media-se
112
111
  a.modelValue ? (s(), v("img", {
113
112
  key: 0,
114
113
  src: a.modelValue.base64
115
- }, null, 8, De)) : g("", !0)
114
+ }, null, 8, Re)) : g("", !0)
116
115
  ], 2)
117
116
  ])
118
117
  ])
@@ -141,12 +140,12 @@ function W(d) {
141
140
  }
142
141
  });
143
142
  }
144
- typeof W == "function" && W(xe);
145
- const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-form" }, He = /* @__PURE__ */ I({
143
+ typeof W == "function" && W(De);
144
+ const xe = { class: "gift-card-skeleton" }, ze = { class: "gift-card-skeleton-form" }, je = /* @__PURE__ */ S({
146
145
  __name: "GiftCardSkeleton",
147
146
  setup(d) {
148
- return (n, m) => (s(), v("div", ze, [
149
- t("div", je, [
147
+ return (n, m) => (s(), v("div", xe, [
148
+ l("div", ze, [
150
149
  o(A),
151
150
  o(A),
152
151
  o(A),
@@ -156,7 +155,7 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
156
155
  ])
157
156
  ]));
158
157
  }
159
- }), Ne = /* @__PURE__ */ z(He, [["__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({
160
159
  __name: "_",
161
160
  props: {
162
161
  content: {},
@@ -164,22 +163,22 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
164
163
  },
165
164
  setup(d) {
166
165
  const { t: n } = B(), m = K(!1);
167
- return (l, c) => (s(), v("div", Oe, [
166
+ return (t, c) => (s(), v("div", Ne, [
168
167
  o(e(be), {
169
168
  keypath: "general.termsAndConditionsNotice",
170
169
  tag: "span",
171
170
  scope: "global"
172
171
  }, {
173
172
  button: F(() => [
174
- t("i", null, '"' + G(l.buttonLabel) + '"', 1)
173
+ l("i", null, '"' + G(t.buttonLabel) + '"', 1)
175
174
  ]),
176
175
  terms: F(() => [
177
- t("a", {
176
+ l("a", {
178
177
  class: "konnectio-accept-terms-link",
179
178
  target: "_blank",
180
179
  onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
181
180
  }, [
182
- t("span", null, G(e(n)("general.termsAndConditions")), 1)
181
+ l("span", null, G(e(n)("general.termsAndConditions")), 1)
183
182
  ])
184
183
  ]),
185
184
  _: 1
@@ -187,34 +186,34 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
187
186
  o(Ie, {
188
187
  modelValue: m.value,
189
188
  "onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
190
- description: l.content
189
+ description: t.content
191
190
  }, null, 8, ["modelValue", "description"])
192
191
  ]));
193
192
  }
194
- }), Ke = /* @__PURE__ */ z(We, [["__scopeId", "data-v-f587c956"]]), Ze = /* @__PURE__ */ I({
193
+ }), We = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-f587c956"]]), Ke = /* @__PURE__ */ S({
195
194
  __name: "GiftCard",
196
195
  setup(d) {
197
196
  const { t: n } = B(), m = x();
198
- return (l, c) => (s(), w(Ke, {
197
+ return (t, c) => (s(), w(We, {
199
198
  content: e(m).termsOfService,
200
199
  "button-label": e(n)("giftCard.orderGiftCard")
201
200
  }, null, 8, ["content", "button-label"]));
202
201
  }
203
- }), 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 = {
204
203
  key: 0,
205
204
  id: "konnectio-select-place-type"
206
- }, nt = {
205
+ }, ol = {
207
206
  class: /* @__PURE__ */ Y(["konnectio-label", "required"])
208
- }, it = { id: "konnectio-select-place-type-input" }, st = ["innerHTML"], rt = {
207
+ }, nl = { id: "konnectio-select-place-type-input" }, il = ["innerHTML"], sl = {
209
208
  key: 0,
210
209
  id: "konnectio-gift-card-order"
211
- }, dt = { class: "konnectio-panel" }, ut = {
210
+ }, rl = { class: "konnectio-panel" }, dl = {
212
211
  key: 1,
213
212
  id: "konnectio-gift-card-remarks"
214
- }, ct = {
213
+ }, ul = {
215
214
  key: 2,
216
215
  id: "konnectio-gift-card-order-minimal"
217
- }, pt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), mt = { id: "konnectio-gift-card-recaptcha" }, ft = /* @__PURE__ */ I({
216
+ }, cl = /* @__PURE__ */ Ze(() => /* @__PURE__ */ l("div", { class: "konnectio-divider" }, null, -1)), pl = { id: "konnectio-gift-card-recaptcha" }, ml = /* @__PURE__ */ S({
218
217
  name: "GiftCardLayout",
219
218
  __name: "GiftCard",
220
219
  props: {
@@ -227,13 +226,13 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
227
226
  const n = d, m = Z(() => ({
228
227
  panelMaxWidth: "800px",
229
228
  ...n.styling
230
- })), { t: l } = B(), {
229
+ })), { t } = B(), {
231
230
  name: c,
232
231
  email: h,
233
232
  phone: p,
234
233
  value: _,
235
234
  remark: u,
236
- showValue: y,
235
+ showValue: k,
237
236
  quantity: b,
238
237
  media: j,
239
238
  placeId: $,
@@ -245,23 +244,23 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
245
244
  hasFilledForm: U,
246
245
  hasForcedPlaceType: D,
247
246
  isWaitingForResponse: E
248
- } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { 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());
249
248
  return oe(a, () => {
250
249
  $.value = void 0;
251
250
  }), ne(() => {
252
251
  const P = n.placeType ? parseInt(n.placeType) : void 0;
253
252
  J(P);
254
- }), (P, r) => (s(), w(ye, { styling: m.value }, {
253
+ }), (P, r) => (s(), w(ke, { styling: m.value }, {
255
254
  default: F(() => [
256
255
  (s(), w(ie, null, {
257
256
  default: F(() => [
258
- o($e, {
257
+ o(Fe, {
259
258
  "access-token": P.accessToken,
260
259
  "data-layout": P.layout,
261
- onMetadata: e(Q)
260
+ callback: e(Q)
262
261
  }, {
263
262
  default: F(() => [
264
- e(te) ? (s(), w(Se, {
263
+ e(le) ? (s(), w(Ae, {
265
264
  key: 1,
266
265
  title: "Unable to render Gift card module",
267
266
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
@@ -270,33 +269,33 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
270
269
  id: "konnectio-gift-card-module",
271
270
  "data-layout": P.layout
272
271
  }, [
273
- t("div", Qe, [
274
- t("h2", Xe, [
275
- 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)
276
275
  ]),
277
- t("div", et, [
278
- T(t("div", tt, [
279
- o(Ee)
276
+ l("div", Xe, [
277
+ T(l("div", el, [
278
+ o($e)
280
279
  ], 512), [
281
- [M, e(V)]
280
+ [L, e(V)]
282
281
  ]),
283
- T(t("div", null, [
284
- t("p", {
282
+ T(l("div", null, [
283
+ l("p", {
285
284
  id: "konnectio-gift-card-description",
286
- innerHTML: e(l)("giftCard.description")
287
- }, null, 8, lt),
288
- t("form", null, [
289
- e(D) ? g("", !0) : (s(), v("div", at, [
290
- e(C) ? (s(), v("div", ot, [
291
- t("label", nt, [
292
- 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)
293
292
  ]),
294
- t("div", it, [
295
- t("ul", null, [
293
+ l("div", nl, [
294
+ l("ul", null, [
296
295
  (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
297
- o(Pe, {
296
+ o(Ee, {
298
297
  modelValue: e(a),
299
- "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),
300
299
  type: "radio",
301
300
  name: "placeType",
302
301
  val: N,
@@ -307,8 +306,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
307
306
  e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(he, {
308
307
  key: 0,
309
308
  modelValue: e($),
310
- "onUpdate:modelValue": r[1] || (r[1] = (i) => k($) ? $.value = i : null),
311
- placeholder: e(l)("giftCard.selectPlacePlaceholder"),
309
+ "onUpdate:modelValue": r[1] || (r[1] = (i) => y($) ? $.value = i : null),
310
+ placeholder: e(t)("giftCard.selectPlacePlaceholder"),
312
311
  options: e(C)[e(a)].data,
313
312
  labelKey: "name",
314
313
  valueKey: "id",
@@ -317,44 +316,44 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
317
316
  ])
318
317
  ])) : (s(), w(_e, { key: 1 }))
319
318
  ])),
320
- o(L, {
319
+ o(q, {
321
320
  modelValue: e(c),
322
- "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),
323
322
  type: "text",
324
323
  name: "name",
325
324
  autocomplete: "name",
326
- label: e(l)("giftCard.name"),
325
+ label: e(t)("giftCard.name"),
327
326
  icon: "user-alt",
328
- placeholder: e(l)("giftCard.namePlaceholder"),
327
+ placeholder: e(t)("giftCard.namePlaceholder"),
329
328
  required: ""
330
329
  }, null, 8, ["modelValue", "label", "placeholder"]),
331
- o(L, {
330
+ o(q, {
332
331
  modelValue: e(h),
333
- "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),
334
333
  type: "email",
335
334
  name: "email",
336
335
  autocomplete: "email",
337
- label: e(l)("giftCard.email"),
336
+ label: e(t)("giftCard.email"),
338
337
  icon: "at",
339
- placeholder: e(l)("giftCard.emailPlaceholder"),
338
+ placeholder: e(t)("giftCard.emailPlaceholder"),
340
339
  required: ""
341
340
  }, null, 8, ["modelValue", "label", "placeholder"]),
342
- o(Ue, {
341
+ o(Pe, {
343
342
  modelValue: e(p),
344
- "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),
345
344
  icon: "phone-office",
346
- label: e(l)("giftCard.phone"),
347
- placeholder: e(l)("giftCard.phonePlaceholder"),
345
+ label: e(t)("giftCard.phone"),
346
+ placeholder: e(t)("giftCard.phonePlaceholder"),
348
347
  required: ""
349
348
  }, null, 8, ["modelValue", "label", "placeholder"]),
350
- o(L, {
349
+ o(q, {
351
350
  modelValue: e(_),
352
- "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
351
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => y(_) ? _.value = i : null),
353
352
  type: "number",
354
353
  name: "value",
355
- label: e(l)("giftCard.value"),
354
+ label: e(t)("giftCard.value"),
356
355
  icon: "money-bill",
357
- placeholder: e(l)("giftCard.valuePlaceholder"),
356
+ placeholder: e(t)("giftCard.valuePlaceholder"),
358
357
  suffix: e(ee),
359
358
  required: ""
360
359
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
@@ -362,74 +361,74 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
362
361
  g("", !0),
363
362
  o(ge, {
364
363
  modelValue: e(b),
365
- "onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
366
- 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"),
367
366
  icon: "gift-card",
368
367
  required: ""
369
368
  }, null, 8, ["modelValue", "label"])
370
369
  ])
371
370
  ], 512), [
372
- [M, e(f)]
371
+ [L, e(f)]
373
372
  ]),
374
- T(t("div", null, [
375
- t("div", {
376
- innerHTML: e(l)("giftCard.thankYou")
377
- }, null, 8, st)
373
+ T(l("div", null, [
374
+ l("div", {
375
+ innerHTML: e(t)("giftCard.thankYou")
376
+ }, null, 8, il)
378
377
  ], 512), [
379
- [M, e(R)]
378
+ [L, e(R)]
380
379
  ])
381
380
  ]),
382
- P.layout !== "minimal" && e(f) ? (s(), v("div", rt, [
383
- t("div", dt, [
384
- o(S, {
385
- 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"),
386
385
  "full-width": !0,
387
386
  disabled: !e(U),
388
387
  "is-loading": e(E),
389
- "onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
388
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => y(E) ? E.value = i : null),
390
389
  onClickEvent: e(H)
391
390
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
392
391
  ])
393
392
  ])) : g("", !0),
394
- e(f) ? (s(), v("div", ut, [
395
- o(L, {
393
+ e(f) ? (s(), v("div", dl, [
394
+ o(q, {
396
395
  modelValue: e(u),
397
- "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),
398
397
  type: "textarea",
399
398
  name: "remark",
400
- label: e(l)("giftCard.remark"),
399
+ label: e(t)("giftCard.remark"),
401
400
  icon: "info-circle",
402
- placeholder: e(l)("giftCard.remarkPlaceholder")
401
+ placeholder: e(t)("giftCard.remarkPlaceholder")
403
402
  }, null, 8, ["modelValue", "label", "placeholder"])
404
403
  ])) : g("", !0),
405
- e(f) ? (s(), v("div", ct, [
406
- o(S, {
407
- label: e(l)("giftCard.orderGiftCard"),
404
+ e(f) ? (s(), v("div", ul, [
405
+ o(I, {
406
+ label: e(t)("giftCard.orderGiftCard"),
408
407
  "full-width": !0,
409
408
  disabled: !e(U),
410
409
  "data-test": "orderGiftCard",
411
410
  "is-loading": e(E),
412
- "onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
411
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => y(E) ? E.value = i : null),
413
412
  onClickEvent: e(H)
414
413
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
415
- t("div", null, [
416
- pt,
417
- o(Ze)
414
+ l("div", null, [
415
+ cl,
416
+ o(Ke)
418
417
  ]),
419
- T(t("div", mt, [
420
- o(Ae)
418
+ T(l("div", pl, [
419
+ o(Ue)
421
420
  ], 512), [
422
- [M, e(X)]
421
+ [L, e(X)]
423
422
  ])
424
423
  ])) : g("", !0)
425
424
  ])
426
- ], 8, Je))
425
+ ], 8, Ye))
427
426
  ]),
428
427
  _: 1
429
- }, 8, ["access-token", "data-layout", "onMetadata"])
428
+ }, 8, ["access-token", "data-layout", "callback"])
430
429
  ]),
431
430
  fallback: F(() => [
432
- o(Ne)
431
+ o(He)
433
432
  ]),
434
433
  _: 1
435
434
  }))
@@ -437,8 +436,8 @@ const ze = { class: "gift-card-skeleton" }, je = { class: "gift-card-skeleton-fo
437
436
  _: 1
438
437
  }, 8, ["styling"]));
439
438
  }
440
- }), q = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-36e1c4fe"]]), bt = ke(), vt = we();
441
- class ht extends HTMLElement {
439
+ }), M = /* @__PURE__ */ z(ml, [["__scopeId", "data-v-06df89c3"]]), fl = ye(), bl = we();
440
+ class vl extends HTMLElement {
442
441
  vueApp;
443
442
  constructor() {
444
443
  super();
@@ -447,26 +446,26 @@ class ht extends HTMLElement {
447
446
  this.vueApp.unmount();
448
447
  }
449
448
  connectedCallback() {
450
- const n = typeof q == "function" ? q.options : q;
449
+ const n = typeof M == "function" ? M.options : M;
451
450
  let m = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
452
- const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (y, b) => (b ? "-" : "") + y.toLowerCase()), c = (u) => u.replace(/-./g, (y) => y[1].toUpperCase()), h = {};
453
- 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);
454
453
  const p = {};
455
454
  for (const u of this.attributes) {
456
455
  const b = u.name.split(".");
457
456
  b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
458
457
  }
459
458
  for (const u of m) {
460
- let y = this.attributes.getNamedItem(u)?.value;
461
- 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;
462
461
  }
463
- this.vueApp = ce(q, h), Fe(this.vueApp), this.vueApp.provide("emitter", vt), this.vueApp.use(bt), this.vueApp.use(Ce), this.vueApp.use(Ve, { 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 });
464
463
  const _ = document.createElement("div");
465
464
  this.vueApp.mount(_), this.appendChild(_.children[0]);
466
465
  }
467
466
  }
468
- window.customElements.define("konnectio-gift-card", ht);
467
+ window.customElements.define("konnectio-gift-card", vl);
469
468
  export {
470
- ht as default
469
+ vl as default
471
470
  };
472
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-hMDyUv2Y.js";
2
- import { r as t, c as a } from "./_commonjsHelpers-BnQF6Gki.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] = "413b6545-e0ab-47fc-b46b-c27a8c05fb8d", i._sentryDebugIdIdentifier = "sentry-dbid-413b6545-e0ab-47fc-b46b-c27a8c05fb8d");
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-rc44"
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-rc44"
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-CWyKVevn.js.map
128
+ //# sourceMappingURL=giftCard-DhbT2_l0.js.map
Binary file