@konnectio/core 4.0.82 → 4.0.83

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