@konnectio/core 4.0.62 → 4.0.64

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 (72) hide show
  1. package/dist/{ActionField-8uyqR4s2.js → ActionField-D28Pe5Bb.js} +33 -25
  2. package/dist/ActionField-D28Pe5Bb.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DR0TlG1c.js → AvailabilitySkeleton-BGEhEqa-.js} +123 -115
  4. package/dist/AvailabilitySkeleton-BGEhEqa-.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js} +1089 -1081
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js.br +0 -0
  7. package/dist/{CheckoutWindow-b6nqgL-q.js → CheckoutWindow-Cv7p0DrF.js} +174 -166
  8. package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
  9. package/dist/{ErrorMessage-CTB9P7th.js → ErrorMessage-T11Ou3eh.js} +24 -16
  10. package/dist/ErrorMessage-T11Ou3eh.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DeqQKdKV.js +125 -0
  12. package/dist/EventAvailabilityForm-DeqQKdKV.js.br +0 -0
  13. package/dist/Field-DcoRYqr8.js +58 -0
  14. package/dist/Field-DcoRYqr8.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js} +2031 -2022
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js.br +0 -0
  17. package/dist/TermsOfService-CL0zaNw_.js +44 -0
  18. package/dist/TermsOfService-CL0zaNw_.js.br +0 -0
  19. package/dist/_-C5tf0vwv.js +20 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js +77 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js.br +0 -0
  22. package/dist/{_commonjsHelpers-DZ_3pocK.js → _commonjsHelpers-BeCRh3Xf.js} +618 -558
  23. package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-gnd2S326.js → _sentry-release-injection-file-CY9ljBue.js} +1643 -1635
  25. package/dist/_sentry-release-injection-file-CY9ljBue.js.br +0 -0
  26. package/dist/availability.js +67 -59
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +29 -21
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +276 -260
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +71 -63
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +137 -129
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/giftCard-CHf9cbmB.js +134 -0
  37. package/dist/giftCard-CHf9cbmB.js.br +0 -0
  38. package/dist/hotel.js +812 -803
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-BNjra0SH.js → masonry.plugin-q1wqMEhq.js} +860 -852
  41. package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
  42. package/dist/{mitt-B7XZkC8D.js → mitt-CZC0Vuw7.js} +505 -497
  43. package/dist/mitt-CZC0Vuw7.js.br +0 -0
  44. package/dist/polyfill.js +6472 -6259
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-lYuGbuqk.js → style-Di3bMYae.js} +392 -384
  47. package/dist/style-Di3bMYae.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/package.json +8 -8
  51. package/dist/ActionField-8uyqR4s2.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-DR0TlG1c.js.br +0 -0
  53. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-IMAsOOYG.js.br +0 -0
  54. package/dist/CheckoutWindow-b6nqgL-q.js.br +0 -0
  55. package/dist/ErrorMessage-CTB9P7th.js.br +0 -0
  56. package/dist/EventAvailabilityForm-Dz_XUv-P.js +0 -117
  57. package/dist/EventAvailabilityForm-Dz_XUv-P.js.br +0 -0
  58. package/dist/Field-D74LzwJ5.js +0 -50
  59. package/dist/Field-D74LzwJ5.js.br +0 -0
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js.br +0 -0
  61. package/dist/TermsOfService-BWi7ax17.js +0 -36
  62. package/dist/TermsOfService-BWi7ax17.js.br +0 -0
  63. package/dist/_-D5EdBcrp.js +0 -12
  64. package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js +0 -69
  65. package/dist/_.vue_vue_type_style_index_0_lang-DXnzUVHn.js.br +0 -0
  66. package/dist/_commonjsHelpers-DZ_3pocK.js.br +0 -0
  67. package/dist/_sentry-release-injection-file-gnd2S326.js.br +0 -0
  68. package/dist/giftCard-Dl1tPQsP.js +0 -126
  69. package/dist/giftCard-Dl1tPQsP.js.br +0 -0
  70. package/dist/masonry.plugin-BNjra0SH.js.br +0 -0
  71. package/dist/mitt-B7XZkC8D.js.br +0 -0
  72. package/dist/style-lYuGbuqk.js.br +0 -0
package/dist/gift-card.js CHANGED
@@ -1,21 +1,29 @@
1
- import { d as T, r as K, c as Z, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as Y, t as q, h as ae, z as oe, o as ne, S as ie, A as I, B as G, F as se, s as re, v as k, p as de, j as ue, k as ce } from "./_sentry-release-injection-file-gnd2S326.js";
2
- import { u as B, T as pe, s as O, c as me, i as fe, m as be } from "./mitt-B7XZkC8D.js";
3
- import { a as ve, d as S, q as he, E as _e, _ as z, e as ge, o as ye, L as ke, T as L, b as Ce, C as Ve, c as we, n as $e } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C-2VAK1P.js";
4
- import { G as Fe } from "./style-lYuGbuqk.js";
5
- import { u as x } from "./giftCard-Dl1tPQsP.js";
6
- import { _ as Ae } from "./_.vue_vue_type_style_index_0_lang-DXnzUVHn.js";
7
- import { a as Ee, C as Pe, P as Ue, _ as Se } from "./CheckoutWindow-b6nqgL-q.js";
8
- import { F as U } from "./Field-D74LzwJ5.js";
9
- import { E as Te } from "./ErrorMessage-CTB9P7th.js";
10
- import { S as Ie } from "./TermsOfService-BWi7ax17.js";
1
+ import { d as T, r as Z, c as Y, a as s, b as w, w as $, e as t, g as v, f as o, u as e, i as g, n as J, t as G, h as oe, z as ne, o as ie, S as se, A as M, B as L, F as re, s as de, v as k, p as ue, j as ce, k as pe } from "./_sentry-release-injection-file-CY9ljBue.js";
2
+ import { u as R, T as me, s as K, c as fe, i as be, m as ve } from "./mitt-CZC0Vuw7.js";
3
+ import { a as he, d as S, q as ye, E as ge, _ as z, e as _e, o as ke, L as Ce, T as q, b as Ve, C as we, c as $e, n as Fe } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js";
4
+ import { G as Ee } from "./style-Di3bMYae.js";
5
+ import { u as j } from "./giftCard-CHf9cbmB.js";
6
+ import { _ as Ae } from "./_.vue_vue_type_style_index_0_lang-BWAizmh6.js";
7
+ import { a as Pe, C as Ue, P as Se, _ as Te } from "./CheckoutWindow-Cv7p0DrF.js";
8
+ import { F as U } from "./Field-DcoRYqr8.js";
9
+ import { E as Ie } from "./ErrorMessage-T11Ou3eh.js";
10
+ import { S as Me } from "./TermsOfService-CL0zaNw_.js";
11
11
  (function() {
12
12
  try {
13
13
  var d = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
14
- n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "98e12c89-3213-4023-be0f-f031917e34ec", d._sentryDebugIdIdentifier = "sentry-dbid-98e12c89-3213-4023-be0f-f031917e34ec");
14
+ n && (d._sentryDebugIds = d._sentryDebugIds || {}, d._sentryDebugIds[n] = "bf11d96a-1552-4ea9-b151-ae9cf5b862b9", d._sentryDebugIdIdentifier = "sentry-dbid-bf11d96a-1552-4ea9-b151-ae9cf5b862b9");
15
15
  } catch {
16
16
  }
17
17
  })();
18
- const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Be = { key: 0 }, Re = { key: 1 }, De = { key: 2 }, xe = ["src"], ze = /* @__PURE__ */ T({
18
+ {
19
+ var I = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
20
+ I._sentryModuleMetadata = I._sentryModuleMetadata || {}, I._sentryModuleMetadata[new Error().stack] = Object.assign(
21
+ {},
22
+ I._sentryModuleMetadata[new Error().stack],
23
+ { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
24
+ );
25
+ }
26
+ const Le = { class: "media-selector" }, qe = ["accept"], Be = { class: "media-selector-wrapper" }, Ge = { class: "media-selector-tools" }, Re = { key: 0 }, De = { key: 1 }, xe = { key: 2 }, je = ["src"], ze = /* @__PURE__ */ T({
19
27
  __name: "MediaSelector",
20
28
  props: {
21
29
  modelValue: {},
@@ -26,11 +34,11 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
26
34
  },
27
35
  emits: ["update:modelValue"],
28
36
  setup(d, { emit: n }) {
29
- const m = n, l = d, { t: c } = B(), { display: h } = ve(), p = K(), _ = Z(() => l.modelValue.base64 !== "");
37
+ const m = n, l = d, { t: c } = R(), { display: h } = he(), p = Z(), y = Y(() => l.modelValue.base64 !== "");
30
38
  function u(a) {
31
39
  m("update:modelValue", a);
32
40
  }
33
- function y() {
41
+ function _() {
34
42
  u({
35
43
  base64: "",
36
44
  name: "",
@@ -40,12 +48,12 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
40
48
  function b() {
41
49
  p.value && p.value.click();
42
50
  }
43
- function j(a, f) {
44
- const [V, R] = [a.name, a.type], C = new FileReader();
51
+ function O(a, f) {
52
+ const [V, D] = [a.name, a.type], C = new FileReader();
45
53
  C.onload = function(P) {
46
54
  if (P.target) {
47
- const D = P.target.result;
48
- f({ base64: D, name: V, type: R });
55
+ const x = P.target.result;
56
+ f({ base64: x, name: V, type: D });
49
57
  } else
50
58
  h({
51
59
  message: c("imageUploadError"),
@@ -55,15 +63,15 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
55
63
  }
56
64
  async function F() {
57
65
  let a;
58
- (a = p.value.files) instanceof FileList && j(a[0], u);
66
+ (a = p.value.files) instanceof FileList && O(a[0], u);
59
67
  }
60
- return (a, f) => (s(), w(he, {
68
+ return (a, f) => (s(), w(ye, {
61
69
  label: a.label,
62
70
  required: a.required,
63
71
  type: "media"
64
72
  }, {
65
73
  default: $(() => [
66
- t("div", Ge, [
74
+ t("div", Le, [
67
75
  t("input", {
68
76
  ref_key: "fileInput",
69
77
  ref: p,
@@ -72,10 +80,10 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
72
80
  accept: a.validation,
73
81
  single: "",
74
82
  onChange: f[0] || (f[0] = (V) => F())
75
- }, null, 40, Le),
76
- t("div", Me, [
77
- t("ul", qe, [
78
- _.value ? g("", !0) : (s(), v("li", Be, [
83
+ }, null, 40, qe),
84
+ t("div", Be, [
85
+ t("ul", Ge, [
86
+ y.value ? g("", !0) : (s(), v("li", Re, [
79
87
  o(S, {
80
88
  label: e(c)("uploadFile"),
81
89
  type: "button",
@@ -84,7 +92,7 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
84
92
  onClickEvent: f[1] || (f[1] = (V) => b())
85
93
  }, null, 8, ["label", "icon-color"])
86
94
  ])),
87
- _.value ? (s(), v("li", Re, [
95
+ y.value ? (s(), v("li", De, [
88
96
  o(S, {
89
97
  label: e(c)("replaceFile"),
90
98
  type: "button",
@@ -93,26 +101,26 @@ const Ge = { class: "media-selector" }, Le = ["accept"], Me = { class: "media-se
93
101
  onClickEvent: f[2] || (f[2] = (V) => b())
94
102
  }, null, 8, ["label", "icon-color"])
95
103
  ])) : g("", !0),
96
- _.value ? (s(), v("li", De, [
104
+ y.value ? (s(), v("li", xe, [
97
105
  o(S, {
98
106
  label: e(c)("removeFile"),
99
107
  type: "button",
100
108
  icon: "trash-alt",
101
109
  "icon-color": a.iconColor,
102
- onClickEvent: f[3] || (f[3] = (V) => y())
110
+ onClickEvent: f[3] || (f[3] = (V) => _())
103
111
  }, null, 8, ["label", "icon-color"])
104
112
  ])) : g("", !0)
105
113
  ]),
106
114
  t("div", {
107
- class: Y([
115
+ class: J([
108
116
  "media-selector-previewer",
109
- { opened: _.value }
117
+ { opened: y.value }
110
118
  ])
111
119
  }, [
112
120
  a.modelValue ? (s(), v("img", {
113
121
  key: 0,
114
122
  src: a.modelValue.base64
115
- }, null, 8, xe)) : g("", !0)
123
+ }, null, 8, je)) : g("", !0)
116
124
  ], 2)
117
125
  ])
118
126
  ])
@@ -142,79 +150,79 @@ function W(d) {
142
150
  });
143
151
  }
144
152
  typeof W == "function" && W(ze);
145
- const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ T({
153
+ const Oe = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-form" }, Ne = /* @__PURE__ */ T({
146
154
  __name: "GiftCardSkeleton",
147
155
  setup(d) {
148
- return (n, m) => (s(), v("div", je, [
156
+ return (n, m) => (s(), v("div", Oe, [
149
157
  t("div", He, [
150
158
  o(U),
151
159
  o(U),
152
160
  o(U),
153
161
  o(U),
154
162
  o(U, { "is-text-area": "" }),
155
- o(_e, { height: "44px" })
163
+ o(ge, { height: "44px" })
156
164
  ])
157
165
  ]));
158
166
  }
159
- }), Oe = /* @__PURE__ */ z(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, Ke = /* @__PURE__ */ T({
167
+ }), Ke = /* @__PURE__ */ z(Ne, [["__scopeId", "data-v-ba3efaa1"]]), We = { class: "konnectio-accept-terms" }, Ze = /* @__PURE__ */ T({
160
168
  __name: "_",
161
169
  props: {
162
170
  content: {},
163
171
  buttonLabel: {}
164
172
  },
165
173
  setup(d) {
166
- const { t: n } = B(), m = K(!1);
174
+ const { t: n } = R(), m = Z(!1);
167
175
  return (l, c) => (s(), v("div", We, [
168
- o(e(pe), {
176
+ o(e(me), {
169
177
  keypath: "general.termsAndConditionsNotice",
170
178
  tag: "span",
171
179
  scope: "global"
172
180
  }, {
173
181
  button: $(() => [
174
- t("i", null, '"' + q(l.buttonLabel) + '"', 1)
182
+ t("i", null, '"' + G(l.buttonLabel) + '"', 1)
175
183
  ]),
176
184
  terms: $(() => [
177
185
  t("a", {
178
186
  class: "konnectio-accept-terms-link",
179
187
  target: "_blank",
180
- onClick: c[0] || (c[0] = ae((h) => m.value = !0, ["prevent"]))
188
+ onClick: c[0] || (c[0] = oe((h) => m.value = !0, ["prevent"]))
181
189
  }, [
182
- t("span", null, q(e(n)("general.termsAndConditions")), 1)
190
+ t("span", null, G(e(n)("general.termsAndConditions")), 1)
183
191
  ])
184
192
  ]),
185
193
  _: 1
186
194
  }),
187
- o(Ie, {
195
+ o(Me, {
188
196
  modelValue: m.value,
189
197
  "onUpdate:modelValue": c[1] || (c[1] = (h) => m.value = h),
190
198
  description: l.content
191
199
  }, null, 8, ["modelValue", "description"])
192
200
  ]));
193
201
  }
194
- }), Ze = /* @__PURE__ */ z(Ke, [["__scopeId", "data-v-f587c956"]]), Ye = /* @__PURE__ */ T({
202
+ }), Ye = /* @__PURE__ */ z(Ze, [["__scopeId", "data-v-f587c956"]]), Je = /* @__PURE__ */ T({
195
203
  __name: "GiftCard",
196
204
  setup(d) {
197
- const { t: n } = B(), m = x();
198
- return (l, c) => (s(), w(Ze, {
205
+ const { t: n } = R(), m = j();
206
+ return (l, c) => (s(), w(Ye, {
199
207
  content: e(m).termsOfService,
200
208
  "button-label": e(n)("giftCard.orderGiftCard")
201
209
  }, null, 8, ["content", "button-label"]));
202
210
  }
203
- }), Je = (d) => (de("data-v-278e1031"), d = d(), ue(), d), Qe = ["data-layout"], Xe = { id: "konnectio-gift-card-wrapper" }, et = { id: "konnectio-gift-card-title" }, tt = { id: "konnectio-gift-card-content" }, lt = { id: "konnectio-gift-card-payment" }, at = ["innerHTML"], ot = { key: 0 }, nt = {
211
+ }), Qe = (d) => (ue("data-v-278e1031"), d = d(), ce(), d), Xe = ["data-layout"], et = { id: "konnectio-gift-card-wrapper" }, tt = { id: "konnectio-gift-card-title" }, lt = { id: "konnectio-gift-card-content" }, at = { id: "konnectio-gift-card-payment" }, ot = ["innerHTML"], nt = { key: 0 }, it = {
204
212
  key: 0,
205
213
  id: "konnectio-select-place-type"
206
- }, it = {
207
- class: /* @__PURE__ */ Y(["konnectio-label", "required"])
208
- }, st = { id: "konnectio-select-place-type-input" }, rt = ["innerHTML"], dt = {
214
+ }, st = {
215
+ class: /* @__PURE__ */ J(["konnectio-label", "required"])
216
+ }, rt = { id: "konnectio-select-place-type-input" }, dt = ["innerHTML"], ut = {
209
217
  key: 0,
210
218
  id: "konnectio-gift-card-order"
211
- }, ut = { class: "konnectio-panel" }, ct = {
219
+ }, ct = { class: "konnectio-panel" }, pt = {
212
220
  key: 1,
213
221
  id: "konnectio-gift-card-remarks"
214
- }, pt = {
222
+ }, mt = {
215
223
  key: 2,
216
224
  id: "konnectio-gift-card-order-minimal"
217
- }, mt = /* @__PURE__ */ Je(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), ft = { id: "konnectio-gift-card-recaptcha" }, bt = /* @__PURE__ */ T({
225
+ }, ft = /* @__PURE__ */ Qe(() => /* @__PURE__ */ t("div", { class: "konnectio-divider" }, null, -1)), bt = { id: "konnectio-gift-card-recaptcha" }, vt = /* @__PURE__ */ T({
218
226
  name: "GiftCardLayout",
219
227
  __name: "GiftCard",
220
228
  props: {
@@ -224,79 +232,79 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
224
232
  styling: {}
225
233
  },
226
234
  setup(d) {
227
- const n = d, m = Z(() => ({
235
+ const n = d, m = Y(() => ({
228
236
  panelMaxWidth: "800px",
229
237
  ...n.styling
230
- })), { t: l } = B(), {
238
+ })), { t: l } = R(), {
231
239
  name: c,
232
240
  email: h,
233
241
  phone: p,
234
- value: _,
242
+ value: y,
235
243
  remark: u,
236
- showValue: y,
244
+ showValue: _,
237
245
  quantity: b,
238
- media: j,
246
+ media: O,
239
247
  placeId: F,
240
248
  placeType: a,
241
249
  showFormPage: f,
242
250
  showPaymentPage: V,
243
- showConfirmationPage: R,
251
+ showConfirmationPage: D,
244
252
  places: C,
245
253
  hasFilledForm: P,
246
- hasForcedPlaceType: D,
247
- isWaitingForResponse: A
248
- } = O(x()), { initialize: J, orderGiftCard: H, fetchMetadata: Q } = x(), { isRecaptchaEnabled: X, currency: ee, hasError: te } = O(ge());
249
- return oe(a, () => {
254
+ hasForcedPlaceType: x,
255
+ isWaitingForResponse: E
256
+ } = K(j()), { initialize: Q, orderGiftCard: H, fetchMetadata: X } = j(), { isRecaptchaEnabled: ee, currency: te, hasError: le } = K(_e());
257
+ return ne(a, () => {
250
258
  F.value = void 0;
251
- }), ne(() => {
252
- const E = n.placeType ? parseInt(n.placeType) : void 0;
253
- J(E);
254
- }), (E, r) => (s(), w(Ve, { styling: m.value }, {
259
+ }), ie(() => {
260
+ const A = n.placeType ? parseInt(n.placeType) : void 0;
261
+ Q(A);
262
+ }), (A, r) => (s(), w(we, { styling: m.value }, {
255
263
  default: $(() => [
256
- (s(), w(ie, null, {
264
+ (s(), w(se, null, {
257
265
  default: $(() => [
258
266
  o(Ae, {
259
- "access-token": E.accessToken,
260
- "data-layout": E.layout,
261
- callback: e(Q)
267
+ "access-token": A.accessToken,
268
+ "data-layout": A.layout,
269
+ callback: e(X)
262
270
  }, {
263
271
  default: $(() => [
264
- e(te) ? (s(), w(Te, {
272
+ e(le) ? (s(), w(Ie, {
265
273
  key: 1,
266
274
  title: "Unable to render Gift card module",
267
275
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
268
276
  })) : (s(), v("div", {
269
277
  key: 0,
270
278
  id: "konnectio-gift-card-module",
271
- "data-layout": E.layout
279
+ "data-layout": A.layout
272
280
  }, [
273
- t("div", Xe, [
274
- t("h2", et, [
275
- t("span", null, q(e(l)("giftCard.title")), 1)
281
+ t("div", et, [
282
+ t("h2", tt, [
283
+ t("span", null, G(e(l)("giftCard.title")), 1)
276
284
  ]),
277
- t("div", tt, [
278
- I(t("div", lt, [
279
- o(Ee)
285
+ t("div", lt, [
286
+ M(t("div", at, [
287
+ o(Pe)
280
288
  ], 512), [
281
- [G, e(V)]
289
+ [L, e(V)]
282
290
  ]),
283
- I(t("div", null, [
291
+ M(t("div", null, [
284
292
  t("p", {
285
293
  id: "konnectio-gift-card-description",
286
294
  innerHTML: e(l)("giftCard.description")
287
- }, null, 8, at),
295
+ }, null, 8, ot),
288
296
  t("form", null, [
289
- e(D) ? g("", !0) : (s(), v("div", ot, [
290
- e(C) ? (s(), v("div", nt, [
291
- t("label", it, [
292
- t("span", null, q(e(l)("giftCard.selectType")), 1)
297
+ e(x) ? g("", !0) : (s(), v("div", nt, [
298
+ e(C) ? (s(), v("div", it, [
299
+ t("label", st, [
300
+ t("span", null, G(e(l)("giftCard.selectType")), 1)
293
301
  ]),
294
- t("div", st, [
302
+ t("div", rt, [
295
303
  t("ul", null, [
296
- (s(!0), v(se, null, re(e(C), (i, N) => (s(), v("li", { key: N }, [
297
- o(Pe, {
304
+ (s(!0), v(re, null, de(e(C), (i, N) => (s(), v("li", { key: N }, [
305
+ o(Ue, {
298
306
  modelValue: e(a),
299
- "onUpdate:modelValue": r[0] || (r[0] = (le) => k(a) ? a.value = le : null),
307
+ "onUpdate:modelValue": r[0] || (r[0] = (ae) => k(a) ? a.value = ae : null),
300
308
  type: "radio",
301
309
  name: "placeType",
302
310
  val: N,
@@ -304,7 +312,7 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
304
312
  }, null, 8, ["modelValue", "val", "label"])
305
313
  ]))), 128))
306
314
  ]),
307
- e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ye, {
315
+ e(C)[e(a)] && e(C)[e(a)].data.length > 1 ? (s(), w(ke, {
308
316
  key: 0,
309
317
  modelValue: e(F),
310
318
  "onUpdate:modelValue": r[1] || (r[1] = (i) => k(F) ? F.value = i : null),
@@ -315,9 +323,9 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
315
323
  required: ""
316
324
  }, null, 8, ["modelValue", "placeholder", "options"])) : g("", !0)
317
325
  ])
318
- ])) : (s(), w(ke, { key: 1 }))
326
+ ])) : (s(), w(Ce, { key: 1 }))
319
327
  ])),
320
- o(L, {
328
+ o(q, {
321
329
  modelValue: e(c),
322
330
  "onUpdate:modelValue": r[2] || (r[2] = (i) => k(c) ? c.value = i : null),
323
331
  type: "text",
@@ -328,7 +336,7 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
328
336
  placeholder: e(l)("giftCard.namePlaceholder"),
329
337
  required: ""
330
338
  }, null, 8, ["modelValue", "label", "placeholder"]),
331
- o(L, {
339
+ o(q, {
332
340
  modelValue: e(h),
333
341
  "onUpdate:modelValue": r[3] || (r[3] = (i) => k(h) ? h.value = i : null),
334
342
  type: "email",
@@ -339,7 +347,7 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
339
347
  placeholder: e(l)("giftCard.emailPlaceholder"),
340
348
  required: ""
341
349
  }, null, 8, ["modelValue", "label", "placeholder"]),
342
- o(Ue, {
350
+ o(Se, {
343
351
  modelValue: e(p),
344
352
  "onUpdate:modelValue": r[4] || (r[4] = (i) => k(p) ? p.value = i : null),
345
353
  icon: "phone-office",
@@ -347,20 +355,20 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
347
355
  placeholder: e(l)("giftCard.phonePlaceholder"),
348
356
  required: ""
349
357
  }, null, 8, ["modelValue", "label", "placeholder"]),
350
- o(L, {
351
- modelValue: e(_),
352
- "onUpdate:modelValue": r[5] || (r[5] = (i) => k(_) ? _.value = i : null),
358
+ o(q, {
359
+ modelValue: e(y),
360
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => k(y) ? y.value = i : null),
353
361
  type: "number",
354
362
  name: "value",
355
363
  label: e(l)("giftCard.value"),
356
364
  icon: "money-bill",
357
365
  placeholder: e(l)("giftCard.valuePlaceholder"),
358
- suffix: e(ee),
366
+ suffix: e(te),
359
367
  required: ""
360
368
  }, null, 8, ["modelValue", "label", "placeholder", "suffix"]),
361
369
  g("", !0),
362
370
  g("", !0),
363
- o(Ce, {
371
+ o(Ve, {
364
372
  modelValue: e(b),
365
373
  "onUpdate:modelValue": r[8] || (r[8] = (i) => k(b) ? b.value = i : null),
366
374
  label: e(l)("giftCard.quantity"),
@@ -369,30 +377,30 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
369
377
  }, null, 8, ["modelValue", "label"])
370
378
  ])
371
379
  ], 512), [
372
- [G, e(f)]
380
+ [L, e(f)]
373
381
  ]),
374
- I(t("div", null, [
382
+ M(t("div", null, [
375
383
  t("div", {
376
384
  innerHTML: e(l)("giftCard.thankYou")
377
- }, null, 8, rt)
385
+ }, null, 8, dt)
378
386
  ], 512), [
379
- [G, e(R)]
387
+ [L, e(D)]
380
388
  ])
381
389
  ]),
382
- E.layout !== "minimal" && e(f) ? (s(), v("div", dt, [
383
- t("div", ut, [
390
+ A.layout !== "minimal" && e(f) ? (s(), v("div", ut, [
391
+ t("div", ct, [
384
392
  o(S, {
385
393
  label: e(l)("giftCard.orderGiftCard"),
386
394
  "full-width": !0,
387
395
  disabled: !e(P),
388
- "is-loading": e(A),
389
- "onUpdate:isLoading": r[9] || (r[9] = (i) => k(A) ? A.value = i : null),
396
+ "is-loading": e(E),
397
+ "onUpdate:isLoading": r[9] || (r[9] = (i) => k(E) ? E.value = i : null),
390
398
  onClickEvent: e(H)
391
399
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
392
400
  ])
393
401
  ])) : g("", !0),
394
- e(f) ? (s(), v("div", ct, [
395
- o(L, {
402
+ e(f) ? (s(), v("div", pt, [
403
+ o(q, {
396
404
  modelValue: e(u),
397
405
  "onUpdate:modelValue": r[10] || (r[10] = (i) => k(u) ? u.value = i : null),
398
406
  type: "textarea",
@@ -402,34 +410,34 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
402
410
  placeholder: e(l)("giftCard.remarkPlaceholder")
403
411
  }, null, 8, ["modelValue", "label", "placeholder"])
404
412
  ])) : g("", !0),
405
- e(f) ? (s(), v("div", pt, [
413
+ e(f) ? (s(), v("div", mt, [
406
414
  o(S, {
407
415
  label: e(l)("giftCard.orderGiftCard"),
408
416
  "full-width": !0,
409
417
  disabled: !e(P),
410
418
  "data-test": "orderGiftCard",
411
- "is-loading": e(A),
412
- "onUpdate:isLoading": r[11] || (r[11] = (i) => k(A) ? A.value = i : null),
419
+ "is-loading": e(E),
420
+ "onUpdate:isLoading": r[11] || (r[11] = (i) => k(E) ? E.value = i : null),
413
421
  onClickEvent: e(H)
414
422
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"]),
415
423
  t("div", null, [
416
- mt,
417
- o(Ye)
424
+ ft,
425
+ o(Je)
418
426
  ]),
419
- I(t("div", ft, [
420
- o(Se)
427
+ M(t("div", bt, [
428
+ o(Te)
421
429
  ], 512), [
422
- [G, e(X)]
430
+ [L, e(ee)]
423
431
  ])
424
432
  ])) : g("", !0)
425
433
  ])
426
- ], 8, Qe))
434
+ ], 8, Xe))
427
435
  ]),
428
436
  _: 1
429
437
  }, 8, ["access-token", "data-layout", "callback"])
430
438
  ]),
431
439
  fallback: $(() => [
432
- o(Oe)
440
+ o(Ke)
433
441
  ]),
434
442
  _: 1
435
443
  }))
@@ -437,8 +445,8 @@ const je = { class: "gift-card-skeleton" }, He = { class: "gift-card-skeleton-fo
437
445
  _: 1
438
446
  }, 8, ["styling"]));
439
447
  }
440
- }), M = /* @__PURE__ */ z(bt, [["__scopeId", "data-v-278e1031"]]), vt = me(), ht = be();
441
- class _t extends HTMLElement {
448
+ }), B = /* @__PURE__ */ z(vt, [["__scopeId", "data-v-278e1031"]]), ht = fe(), yt = ve();
449
+ class gt extends HTMLElement {
442
450
  vueApp;
443
451
  constructor() {
444
452
  super();
@@ -447,9 +455,9 @@ class _t extends HTMLElement {
447
455
  this.vueApp.unmount();
448
456
  }
449
457
  connectedCallback() {
450
- const n = typeof M == "function" ? M.options : M;
458
+ const n = typeof B == "function" ? B.options : B;
451
459
  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 = {};
460
+ const l = (u) => u.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (_, b) => (b ? "-" : "") + _.toLowerCase()), c = (u) => u.replace(/-./g, (_) => _[1].toUpperCase()), h = {};
453
461
  m = m.map(l);
454
462
  const p = {};
455
463
  for (const u of this.attributes) {
@@ -457,16 +465,16 @@ class _t extends HTMLElement {
457
465
  b.length > 1 && (p[b[0]] || (p[b[0]] = {}), p[b[0]][c(b[1])] = u.value);
458
466
  }
459
467
  for (const u of m) {
460
- let y = this.attributes.getNamedItem(u)?.value;
461
- p.hasOwnProperty(u) && (y = p[u]), h[u] = y;
468
+ let _ = this.attributes.getNamedItem(u)?.value;
469
+ p.hasOwnProperty(u) && (_ = p[u]), h[u] = _;
462
470
  }
463
- this.vueApp = ce(M, h), we(this.vueApp), this.vueApp.provide("emitter", ht), this.vueApp.use(vt), this.vueApp.use(fe), this.vueApp.use(Fe), this.vueApp.use($e, { bootstrap: !0 });
464
- const _ = document.createElement("div");
465
- this.vueApp.mount(_), this.appendChild(_.children[0]);
471
+ this.vueApp = pe(B, h), $e(this.vueApp), this.vueApp.provide("emitter", yt), this.vueApp.use(ht), this.vueApp.use(be), this.vueApp.use(Ee), this.vueApp.use(Fe, { bootstrap: !0 });
472
+ const y = document.createElement("div");
473
+ this.vueApp.mount(y), this.appendChild(y.children[0]);
466
474
  }
467
475
  }
468
- window.customElements.define("konnectio-gift-card", _t);
476
+ window.customElements.define("konnectio-gift-card", gt);
469
477
  export {
470
- _t as default
478
+ gt as default
471
479
  };
472
480
  //# sourceMappingURL=gift-card.js.map
Binary file