@konnectio/core 4.0.67 → 4.0.69

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