@konnectio/core 4.0.66 → 4.0.68

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