@konnectio/core 4.0.82 → 4.0.84

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