@konnectio/core 4.3.7 → 4.3.9

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