@konnectio/core 4.0.87 → 4.0.89

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