@konnectio/core 4.0.56-rc36 → 4.0.56-rc37

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 (46) hide show
  1. package/dist/{ActionField-Ct6NhfWq.js → ActionField-BhYhC0aQ.js} +2 -2
  2. package/dist/ActionField-BhYhC0aQ.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DOhrMVl4.js → AvailabilitySkeleton-CXRs2yLp.js} +4 -4
  4. package/dist/AvailabilitySkeleton-CXRs2yLp.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js} +2657 -2655
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-BZN97s2s.js.br +0 -0
  7. package/dist/{CheckoutWindow-BVIOQbbL.js → CheckoutWindow-DPJ2GFqg.js} +2 -2
  8. package/dist/CheckoutWindow-DPJ2GFqg.js.br +0 -0
  9. package/dist/{ErrorMessage-DTSuSB8R.js → ErrorMessage-4DJnsYbI.js} +2 -2
  10. package/dist/ErrorMessage-4DJnsYbI.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DVcDsdr8.js → EventAvailabilityForm-rUB2CJ24.js} +26 -26
  12. package/dist/EventAvailabilityForm-rUB2CJ24.js.br +0 -0
  13. package/dist/{Field-IsLH1tNU.js → Field-Dr6RF4JV.js} +2 -2
  14. package/dist/Field-Dr6RF4JV.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js} +18 -18
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js.br +0 -0
  17. package/dist/{TermsOfService-BORqI07-.js → TermsOfService-B94i1jM5.js} +3 -3
  18. package/dist/TermsOfService-B94i1jM5.js.br +0 -0
  19. package/dist/availability.js +4 -4
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +121 -121
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +20 -20
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +70 -70
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +180 -180
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/{masonry.plugin-gY-oSFpV.js → masonry.plugin-DPkIO3nk.js} +24 -24
  30. package/dist/masonry.plugin-DPkIO3nk.js.br +0 -0
  31. package/dist/navigation.js +4 -4
  32. package/dist/polyfill.js +111 -99
  33. package/dist/polyfill.js.br +0 -0
  34. package/dist/style.css +1 -1
  35. package/dist/style.css.br +0 -0
  36. package/package.json +11 -11
  37. package/dist/ActionField-Ct6NhfWq.js.br +0 -0
  38. package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
  39. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
  40. package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
  41. package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
  42. package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
  43. package/dist/Field-IsLH1tNU.js.br +0 -0
  44. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
  45. package/dist/TermsOfService-BORqI07-.js.br +0 -0
  46. package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
@@ -1,13 +1,13 @@
1
1
  import { d as L, o as f, c as A, f as t, e as o, g as X, a as _, w as y, S as M, u as e, t as u, s as w, b as B, i as P, k as T } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { E as k, _ as S, u as $, s as x, l as E, o as N, A as C, B as U, D as O, e as z, f as F, g as H, h as j, i as R, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js";
3
- import { A as W } from "./ActionField-Ct6NhfWq.js";
4
- import { F as I } from "./Field-IsLH1tNU.js";
5
- import { E as q } from "./ErrorMessage-DTSuSB8R.js";
2
+ import { E as k, _ as S, u as $, s as x, l as E, o as N, A as C, B as U, D as O, e as z, f as F, g as H, h as j, i as R, m as Z } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js";
3
+ import { A as W } from "./ActionField-BhYhC0aQ.js";
4
+ import { F as I } from "./Field-Dr6RF4JV.js";
5
+ import { E as q } from "./ErrorMessage-4DJnsYbI.js";
6
6
  import "./navigation.js";
7
7
  (function() {
8
8
  try {
9
9
  var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
10
- s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "b7628bdb-5b8b-40d0-bea1-a60ff10b85c4", r._sentryDebugIdIdentifier = "sentry-dbid-b7628bdb-5b8b-40d0-bea1-a60ff10b85c4");
10
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "64c17c6f-6cdf-4b95-91e9-558446ade55e", r._sentryDebugIdIdentifier = "sentry-dbid-64c17c6f-6cdf-4b95-91e9-558446ade55e");
11
11
  } catch {
12
12
  }
13
13
  })();
@@ -31,7 +31,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
31
31
  }), et = /* @__PURE__ */ S(tt, [["__scopeId", "data-v-b1601b74"]]), at = ["innerHTML"], nt = {
32
32
  key: 0,
33
33
  id: "konnectio-gift-card-validation-resume",
34
- class: "fresh-booking-panel"
34
+ class: "konnectio-panel"
35
35
  }, ot = /* @__PURE__ */ L({
36
36
  name: "GiftCardValidationLayout",
37
37
  __name: "GiftCardValidation",
@@ -45,9 +45,9 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
45
45
  ...s.styling
46
46
  })), { t: i } = $(), {
47
47
  voucher: m,
48
- isValid: g,
48
+ isValid: h,
49
49
  amount: p,
50
- expirationDate: h,
50
+ expirationDate: b,
51
51
  productName: a,
52
52
  isLoading: n
53
53
  } = x(E()), { currency: l, hasError: D } = x(N()), { apply: V } = E();
@@ -67,7 +67,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
67
67
  })) : (f(), A("form", {
68
68
  key: 0,
69
69
  id: "konnectio-gift-card-validation-module",
70
- onSubmit: d[3] || (d[3] = P((b) => e(V)(), ["prevent"]))
70
+ onSubmit: d[3] || (d[3] = P((g) => e(V)(), ["prevent"]))
71
71
  }, [
72
72
  t("h4", null, [
73
73
  t("span", null, u(e(i)("giftCardValidation.title")), 1)
@@ -77,16 +77,16 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
77
77
  }, null, 8, at),
78
78
  o(W, {
79
79
  modelValue: e(m),
80
- "onUpdate:modelValue": d[0] || (d[0] = (b) => w(m) ? m.value = b : null),
80
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
81
81
  icon: "gift-card",
82
82
  label: e(i)("booking.reservation.giftCardCode"),
83
83
  buttonLabel: e(i)("giftCardValidation.submitButton"),
84
84
  placeholder: "XXXXXXXX",
85
85
  "is-loading": e(n),
86
- "onUpdate:isLoading": d[1] || (d[1] = (b) => w(n) ? n.value = b : null),
87
- onAction: d[2] || (d[2] = (b) => e(V)())
86
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
87
+ onAction: d[2] || (d[2] = (g) => e(V)())
88
88
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
89
- !e(n) && e(g) ? (f(), A("table", nt, [
89
+ !e(n) && e(h) ? (f(), A("table", nt, [
90
90
  t("thead", null, [
91
91
  t("tr", null, [
92
92
  t("th", null, [
@@ -124,7 +124,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
124
124
  t("span", null, u(e(U)(e(p), e(l))), 1)
125
125
  ]),
126
126
  t("td", null, [
127
- t("span", null, u(e(O)(e(h))), 1)
127
+ t("span", null, u(e(O)(e(b))), 1)
128
128
  ])
129
129
  ])
130
130
  ])
@@ -143,7 +143,7 @@ const J = { class: "gift-card-validation-skeleton" }, K = { class: "gift-card-va
143
143
  _: 1
144
144
  }, 8, ["styling"]));
145
145
  }
146
- }), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-be3fa5bf"]]), st = H(), it = Z();
146
+ }), v = /* @__PURE__ */ S(ot, [["__scopeId", "data-v-f43fe5ec"]]), st = H(), it = Z();
147
147
  class lt extends HTMLElement {
148
148
  vueApp;
149
149
  constructor() {
@@ -155,7 +155,7 @@ class lt extends HTMLElement {
155
155
  connectedCallback() {
156
156
  const s = typeof v == "function" ? v.options : v;
157
157
  let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
158
- const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), g = {};
158
+ const i = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (n, l) => (l ? "-" : "") + n.toLowerCase()), m = (a) => a.replace(/-./g, (n) => n[1].toUpperCase()), h = {};
159
159
  c = c.map(i);
160
160
  const p = {};
161
161
  for (const a of this.attributes) {
@@ -164,11 +164,11 @@ class lt extends HTMLElement {
164
164
  }
165
165
  for (const a of c) {
166
166
  let n = this.attributes.getNamedItem(a)?.value;
167
- p.hasOwnProperty(a) && (n = p[a]), g[a] = n;
167
+ p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
168
168
  }
169
- this.vueApp = T(v, g), j(this.vueApp), this.vueApp.provide("emitter", it), this.vueApp.use(st), this.vueApp.use(R);
170
- const h = document.createElement("div");
171
- this.vueApp.mount(h), this.appendChild(h.children[0]);
169
+ this.vueApp = T(v, h), j(this.vueApp), this.vueApp.provide("emitter", it), this.vueApp.use(st), this.vueApp.use(R);
170
+ const b = document.createElement("div");
171
+ this.vueApp.mount(b), this.appendChild(b.children[0]);
172
172
  }
173
173
  }
174
174
  window.customElements.define("konnectio-gift-card-validation", lt);
Binary file
package/dist/gift-card.js CHANGED
@@ -1,19 +1,19 @@
1
- import { r as V, g as k, d as O, o as u, a as G, w as R, f as l, c as y, e as o, u as e, b as F, n as ue, t as Y, i as ce, q as pe, h as me, S as fe, v as H, x as K, F as ve, y as ge, s as S, p as be, j as he, k as ye } from "./_commonjsHelpers-UWZO_9XV.js";
2
- import { j as ke, k as _e, s as le, o as oe, G as T, q as ae, x as re, S as te, v as Ce, w as Ve, F as we, u as Q, n as Fe, C as z, I as Se, E as Pe, _ as ie, H as Te, a as $e, L as Ee, T as Z, b as Ie, e as Ue, f as Ae, g as Le, h as Ge, i as Re, J as qe, m as Me } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js";
1
+ import { r as V, g as k, d as O, o as c, a as G, w as R, f as l, c as y, e as o, u as e, b as F, n as ce, t as Y, i as ue, q as pe, h as me, S as fe, v as H, x as K, F as ve, y as ge, s as S, p as he, j as be, k as ye } from "./_commonjsHelpers-UWZO_9XV.js";
2
+ import { j as ke, k as _e, s as le, o as oe, G as T, q as ae, x as re, S as te, v as Ce, w as Ve, F as we, u as Q, n as Fe, C as z, I as Se, E as Pe, _ as ie, H as Te, a as $e, L as Ee, T as Z, b as Ie, e as Ue, f as Ae, g as Le, h as Ge, i as Re, J as qe, m as Me } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-C8tvgzaO.js";
3
3
  import "./navigation.js";
4
- import { C as De, a as xe, P as Be, _ as ze } from "./CheckoutWindow-BVIOQbbL.js";
5
- import { F as B } from "./Field-IsLH1tNU.js";
6
- import { E as Oe } from "./ErrorMessage-DTSuSB8R.js";
7
- import { S as je } from "./TermsOfService-BORqI07-.js";
4
+ import { C as De, a as xe, P as Be, _ as ze } from "./CheckoutWindow-DPJ2GFqg.js";
5
+ import { F as B } from "./Field-Dr6RF4JV.js";
6
+ import { E as Oe } from "./ErrorMessage-4DJnsYbI.js";
7
+ import { S as je } from "./TermsOfService-B94i1jM5.js";
8
8
  (function() {
9
9
  try {
10
- var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
11
- n && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[n] = "db9ff53d-80b7-4a77-92e9-cbdb657dcdcd", c._sentryDebugIdIdentifier = "sentry-dbid-db9ff53d-80b7-4a77-92e9-cbdb657dcdcd");
10
+ var u = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, n = new Error().stack;
11
+ n && (u._sentryDebugIds = u._sentryDebugIds || {}, u._sentryDebugIds[n] = "1c70ec68-57ef-4c52-94a2-f315ae1a2cfd", u._sentryDebugIdIdentifier = "sentry-dbid-1c70ec68-57ef-4c52-94a2-f315ae1a2cfd");
12
12
  } catch {
13
13
  }
14
14
  })();
15
15
  const ne = ke("giftCard", () => {
16
- const { pay: c } = _e(), { bearerToken: n, metaData: v, currencyId: t } = le(oe()), m = oe(), d = V(T.InitialState), p = ae("konnectio_name", "", void 0, { serializer: te.string }), b = ae("konnectio_email", "", void 0, { serializer: te.string }), s = ae("konnectio_phone", "", void 0, { serializer: te.string }), h = V(""), g = V(1), M = V(!0), P = V(""), a = V({
16
+ const { pay: u } = _e(), { bearerToken: n, metaData: v, currencyId: t } = le(oe()), m = oe(), d = V(T.InitialState), p = ae("konnectio_name", "", void 0, { serializer: te.string }), h = ae("konnectio_email", "", void 0, { serializer: te.string }), s = ae("konnectio_phone", "", void 0, { serializer: te.string }), b = V(""), g = V(1), M = V(!0), P = V(""), a = V({
17
17
  base64: "",
18
18
  type: "",
19
19
  name: ""
@@ -44,19 +44,19 @@ const ne = ke("giftCard", () => {
44
44
  });
45
45
  }
46
46
  return C;
47
- }), A = k(() => !(!p.value || !b.value || !(s.value.length >= 5) || !h.value || U.value === void 0)), r = k(() => !(d.value === T.InitialState && $.value)), i = k(() => !!(d.value === T.WaitingForResponse && $.value));
47
+ }), A = k(() => !(!p.value || !h.value || !(s.value.length >= 5) || !b.value || U.value === void 0)), r = k(() => !(d.value === T.InitialState && $.value)), i = k(() => !!(d.value === T.WaitingForResponse && $.value));
48
48
  async function W() {
49
49
  d.value = T.WaitingForResponse, $.value = !0, await Ce.post("https://production.hotel-service.konnectio.dk/api/gift-card/create", {
50
50
  termsOfserviceURL: window.location.origin,
51
51
  checkoutUrl: window.location.origin,
52
52
  currencyID: t.value,
53
53
  language: Ve(),
54
- amount: h.value,
54
+ amount: b.value,
55
55
  quantity: g.value,
56
56
  freeText: P.value,
57
57
  showPrice: M.value,
58
58
  contactName: p.value,
59
- contactEmail: b.value,
59
+ contactEmail: h.value,
60
60
  contactPhone: s.value,
61
61
  imageBase64: we(a.value.base64),
62
62
  imageName: a.value.name,
@@ -67,10 +67,10 @@ const ne = ke("giftCard", () => {
67
67
  headers: {
68
68
  Authorization: n.value,
69
69
  Accept: "application/json",
70
- "Fresh-Booking-Ver": "4.0.56-rc36"
70
+ "Fresh-Booking-Ver": "4.0.56-rc37"
71
71
  }
72
72
  }).then((C) => {
73
- d.value = T.ReadyToPay, $.value = !1, c({
73
+ d.value = T.ReadyToPay, $.value = !1, u({
74
74
  callback: () => console.log("Callback!"),
75
75
  response: C.data
76
76
  });
@@ -83,9 +83,9 @@ const ne = ke("giftCard", () => {
83
83
  selectedPlace: U,
84
84
  moduleState: d,
85
85
  name: p,
86
- email: b,
86
+ email: h,
87
87
  phone: s,
88
- value: h,
88
+ value: b,
89
89
  remark: P,
90
90
  showValue: M,
91
91
  quantity: g,
@@ -114,12 +114,12 @@ const ne = ke("giftCard", () => {
114
114
  required: { type: Boolean, default: !1 }
115
115
  },
116
116
  emits: ["update:modelValue"],
117
- setup(c, { emit: n }) {
118
- const v = n, t = c, { t: m } = Q(), { display: d } = Fe(), p = V(), b = k(() => t.modelValue.base64 !== "");
117
+ setup(u, { emit: n }) {
118
+ const v = n, t = u, { t: m } = Q(), { display: d } = Fe(), p = V(), h = k(() => t.modelValue.base64 !== "");
119
119
  function s(a) {
120
120
  v("update:modelValue", a);
121
121
  }
122
- function h() {
122
+ function b() {
123
123
  s({
124
124
  base64: "",
125
125
  name: "",
@@ -146,7 +146,7 @@ const ne = ke("giftCard", () => {
146
146
  let a;
147
147
  (a = p.value.files) instanceof FileList && M(a[0], s);
148
148
  }
149
- return (a, f) => (u(), G(Se, {
149
+ return (a, f) => (c(), G(Se, {
150
150
  label: a.label,
151
151
  required: a.required,
152
152
  type: "media"
@@ -164,7 +164,7 @@ const ne = ke("giftCard", () => {
164
164
  }, null, 40, We),
165
165
  l("div", He, [
166
166
  l("ul", Ke, [
167
- b.value ? F("", !0) : (u(), y("li", Ze, [
167
+ h.value ? F("", !0) : (c(), y("li", Ze, [
168
168
  o(z, {
169
169
  label: e(m)("uploadFile"),
170
170
  type: "button",
@@ -173,7 +173,7 @@ const ne = ke("giftCard", () => {
173
173
  onClickEvent: f[1] || (f[1] = (w) => g())
174
174
  }, null, 8, ["label", "icon-color"])
175
175
  ])),
176
- b.value ? (u(), y("li", Je, [
176
+ h.value ? (c(), y("li", Je, [
177
177
  o(z, {
178
178
  label: e(m)("replaceFile"),
179
179
  type: "button",
@@ -182,23 +182,23 @@ const ne = ke("giftCard", () => {
182
182
  onClickEvent: f[2] || (f[2] = (w) => g())
183
183
  }, null, 8, ["label", "icon-color"])
184
184
  ])) : F("", !0),
185
- b.value ? (u(), y("li", Ye, [
185
+ h.value ? (c(), y("li", Ye, [
186
186
  o(z, {
187
187
  label: e(m)("removeFile"),
188
188
  type: "button",
189
189
  icon: "trash-alt",
190
190
  "icon-color": a.iconColor,
191
- onClickEvent: f[3] || (f[3] = (w) => h())
191
+ onClickEvent: f[3] || (f[3] = (w) => b())
192
192
  }, null, 8, ["label", "icon-color"])
193
193
  ])) : F("", !0)
194
194
  ]),
195
195
  l("div", {
196
- class: ue([
196
+ class: ce([
197
197
  "media-selector-previewer",
198
- { opened: b.value }
198
+ { opened: h.value }
199
199
  ])
200
200
  }, [
201
- a.modelValue ? (u(), y("img", {
201
+ a.modelValue ? (c(), y("img", {
202
202
  key: 0,
203
203
  src: a.modelValue.base64
204
204
  }, null, 8, Qe)) : F("", !0)
@@ -210,8 +210,8 @@ const ne = ke("giftCard", () => {
210
210
  }, 8, ["label", "required"]));
211
211
  }
212
212
  });
213
- function de(c) {
214
- const n = c;
213
+ function de(u) {
214
+ const n = u;
215
215
  n.__i18n = n.__i18n || [], n.__i18n.push({
216
216
  locale: "",
217
217
  resource: {
@@ -233,8 +233,8 @@ function de(c) {
233
233
  typeof de == "function" && de(Xe);
234
234
  const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-form" }, ta = /* @__PURE__ */ O({
235
235
  __name: "GiftCardSkeleton",
236
- setup(c) {
237
- return (n, v) => (u(), y("div", ea, [
236
+ setup(u) {
237
+ return (n, v) => (c(), y("div", ea, [
238
238
  l("div", aa, [
239
239
  o(B),
240
240
  o(B),
@@ -251,9 +251,9 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
251
251
  content: {},
252
252
  buttonLabel: {}
253
253
  },
254
- setup(c) {
254
+ setup(u) {
255
255
  const { t: n } = Q(), v = V(!1);
256
- return (t, m) => (u(), y("div", oa, [
256
+ return (t, m) => (c(), y("div", oa, [
257
257
  o(e(Te), {
258
258
  keypath: "general.termsAndConditionsNotice",
259
259
  tag: "span",
@@ -266,7 +266,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
266
266
  l("a", {
267
267
  class: "konnectio-accept-terms-link",
268
268
  target: "_blank",
269
- onClick: m[0] || (m[0] = ce((d) => v.value = !0, ["prevent"]))
269
+ onClick: m[0] || (m[0] = ue((d) => v.value = !0, ["prevent"]))
270
270
  }, [
271
271
  l("span", null, Y(e(n)("general.termsAndConditions")), 1)
272
272
  ])
@@ -282,22 +282,22 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
282
282
  }
283
283
  }), ia = /* @__PURE__ */ ie(na, [["__scopeId", "data-v-c9c826cf"]]), sa = /* @__PURE__ */ O({
284
284
  __name: "GiftCard",
285
- setup(c) {
285
+ setup(u) {
286
286
  const { t: n } = Q(), v = ne();
287
- return (t, m) => (u(), G(ia, {
287
+ return (t, m) => (c(), G(ia, {
288
288
  content: e(v).termsOfService,
289
289
  "button-label": e(n)("giftCard.orderGiftCard")
290
290
  }, null, 8, ["content", "button-label"]));
291
291
  }
292
- }), ra = (c) => (be("data-v-e576b856"), c = c(), he(), c), da = ["data-layout"], ua = { id: "konnectio-gift-card-wrapper" }, ca = { id: "konnectio-gift-card-title" }, pa = { id: "konnectio-gift-card-content" }, ma = { id: "konnectio-gift-card-payment" }, fa = ["innerHTML"], va = { key: 0 }, ga = {
292
+ }), ra = (u) => (he("data-v-faae538e"), u = u(), be(), u), da = ["data-layout"], ca = { id: "konnectio-gift-card-wrapper" }, ua = { id: "konnectio-gift-card-title" }, pa = { id: "konnectio-gift-card-content" }, ma = { id: "konnectio-gift-card-payment" }, fa = ["innerHTML"], va = { key: 0 }, ga = {
293
293
  key: 0,
294
- id: "fresh-booking-select-place-type"
295
- }, ba = {
296
- class: /* @__PURE__ */ ue(["fresh-booking-label", "required"])
297
- }, ha = { id: "fresh-booking-select-place-type-input" }, ya = ["innerHTML"], ka = {
294
+ id: "konnectio-select-place-type"
295
+ }, ha = {
296
+ class: /* @__PURE__ */ ce(["konnectio-label", "required"])
297
+ }, ba = { id: "konnectio-select-place-type-input" }, ya = ["innerHTML"], ka = {
298
298
  key: 0,
299
299
  id: "konnectio-gift-card-order"
300
- }, _a = { class: "fresh-booking-panel" }, Ca = {
300
+ }, _a = { class: "konnectio-panel" }, Ca = {
301
301
  key: 1,
302
302
  id: "konnectio-gift-card-remarks"
303
303
  }, Va = {
@@ -312,17 +312,17 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
312
312
  placeType: {},
313
313
  styling: {}
314
314
  },
315
- setup(c) {
316
- const n = c, v = k(() => ({
315
+ setup(u) {
316
+ const n = u, v = k(() => ({
317
317
  panelMaxWidth: "800px",
318
318
  ...n.styling
319
319
  })), { t } = Q(), {
320
320
  name: m,
321
321
  email: d,
322
322
  phone: p,
323
- value: b,
323
+ value: h,
324
324
  remark: s,
325
- showValue: h,
325
+ showValue: b,
326
326
  quantity: g,
327
327
  media: M,
328
328
  placeId: P,
@@ -340,9 +340,9 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
340
340
  }), me(() => {
341
341
  const A = n.placeType ? parseInt(n.placeType) : void 0;
342
342
  X(A);
343
- }), (A, r) => (u(), G(Ae, { styling: v.value }, {
343
+ }), (A, r) => (c(), G(Ae, { styling: v.value }, {
344
344
  default: R(() => [
345
- (u(), G(fe, null, {
345
+ (c(), G(fe, null, {
346
346
  default: R(() => [
347
347
  o(Ue, {
348
348
  type: "gift-card",
@@ -350,17 +350,17 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
350
350
  "data-layout": A.layout
351
351
  }, {
352
352
  default: R(() => [
353
- e(U) ? (u(), G(Oe, {
353
+ e(U) ? (c(), G(Oe, {
354
354
  key: 1,
355
355
  title: "Unable to render Gift card module",
356
356
  description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
357
- })) : (u(), y("div", {
357
+ })) : (c(), y("div", {
358
358
  key: 0,
359
359
  id: "konnectio-gift-card-module",
360
360
  "data-layout": A.layout
361
361
  }, [
362
- l("div", ua, [
363
- l("h2", ca, [
362
+ l("div", ca, [
363
+ l("h2", ua, [
364
364
  l("span", null, Y(e(t)("giftCard.title")), 1)
365
365
  ]),
366
366
  l("div", pa, [
@@ -375,14 +375,14 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
375
375
  innerHTML: e(t)("giftCard.description")
376
376
  }, null, 8, fa),
377
377
  l("form", null, [
378
- e(D) ? F("", !0) : (u(), y("div", va, [
379
- e(_) ? (u(), y("div", ga, [
380
- l("label", ba, [
378
+ e(D) ? F("", !0) : (c(), y("div", va, [
379
+ e(_) ? (c(), y("div", ga, [
380
+ l("label", ha, [
381
381
  l("span", null, Y(e(t)("giftCard.selectType")), 1)
382
382
  ]),
383
- l("div", ha, [
383
+ l("div", ba, [
384
384
  l("ul", null, [
385
- (u(!0), y(ve, null, ge(e(_), (i, W) => (u(), y("li", { key: W }, [
385
+ (c(!0), y(ve, null, ge(e(_), (i, W) => (c(), y("li", { key: W }, [
386
386
  o(xe, {
387
387
  modelValue: e(a),
388
388
  "onUpdate:modelValue": r[0] || (r[0] = (ee) => S(a) ? a.value = ee : null),
@@ -393,7 +393,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
393
393
  }, null, 8, ["modelValue", "val", "label"])
394
394
  ]))), 128))
395
395
  ]),
396
- e(_)[e(a)] && e(_)[e(a)].data.length > 1 ? (u(), G($e, {
396
+ e(_)[e(a)] && e(_)[e(a)].data.length > 1 ? (c(), G($e, {
397
397
  key: 0,
398
398
  modelValue: e(P),
399
399
  "onUpdate:modelValue": r[1] || (r[1] = (i) => S(P) ? P.value = i : null),
@@ -404,7 +404,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
404
404
  required: ""
405
405
  }, null, 8, ["modelValue", "placeholder", "options"])) : F("", !0)
406
406
  ])
407
- ])) : (u(), G(Ee, { key: 1 }))
407
+ ])) : (c(), G(Ee, { key: 1 }))
408
408
  ])),
409
409
  o(Z, {
410
410
  modelValue: e(m),
@@ -437,8 +437,8 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
437
437
  required: ""
438
438
  }, null, 8, ["modelValue", "label", "placeholder"]),
439
439
  o(Z, {
440
- modelValue: e(b),
441
- "onUpdate:modelValue": r[5] || (r[5] = (i) => S(b) ? b.value = i : null),
440
+ modelValue: e(h),
441
+ "onUpdate:modelValue": r[5] || (r[5] = (i) => S(h) ? h.value = i : null),
442
442
  type: "number",
443
443
  name: "value",
444
444
  label: e(t)("giftCard.value"),
@@ -468,7 +468,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
468
468
  [K, e($)]
469
469
  ])
470
470
  ]),
471
- A.layout !== "minimal" && e(f) ? (u(), y("div", ka, [
471
+ A.layout !== "minimal" && e(f) ? (c(), y("div", ka, [
472
472
  l("div", _a, [
473
473
  o(z, {
474
474
  label: e(t)("giftCard.orderGiftCard"),
@@ -480,7 +480,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
480
480
  }, null, 8, ["label", "disabled", "is-loading", "onClickEvent"])
481
481
  ])
482
482
  ])) : F("", !0),
483
- e(f) ? (u(), y("div", Ca, [
483
+ e(f) ? (c(), y("div", Ca, [
484
484
  o(Z, {
485
485
  modelValue: e(s),
486
486
  "onUpdate:modelValue": r[10] || (r[10] = (i) => S(s) ? s.value = i : null),
@@ -491,7 +491,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
491
491
  placeholder: e(t)("giftCard.remarkPlaceholder")
492
492
  }, null, 8, ["modelValue", "label", "placeholder"])
493
493
  ])) : F("", !0),
494
- e(f) ? (u(), y("div", Va, [
494
+ e(f) ? (c(), y("div", Va, [
495
495
  o(z, {
496
496
  label: e(t)("giftCard.orderGiftCard"),
497
497
  "full-width": !0,
@@ -526,7 +526,7 @@ const ea = { class: "gift-card-skeleton" }, aa = { class: "gift-card-skeleton-fo
526
526
  _: 1
527
527
  }, 8, ["styling"]));
528
528
  }
529
- }), J = /* @__PURE__ */ ie(Sa, [["__scopeId", "data-v-e576b856"]]), Pa = Le(), Ta = Me();
529
+ }), J = /* @__PURE__ */ ie(Sa, [["__scopeId", "data-v-faae538e"]]), Pa = Le(), Ta = Me();
530
530
  class $a extends HTMLElement {
531
531
  vueApp;
532
532
  constructor() {
@@ -538,7 +538,7 @@ class $a extends HTMLElement {
538
538
  connectedCallback() {
539
539
  const n = typeof J == "function" ? J.options : J;
540
540
  let v = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
541
- const t = (s) => s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (h, g) => (g ? "-" : "") + h.toLowerCase()), m = (s) => s.replace(/-./g, (h) => h[1].toUpperCase()), d = {};
541
+ const t = (s) => s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (b, g) => (g ? "-" : "") + b.toLowerCase()), m = (s) => s.replace(/-./g, (b) => b[1].toUpperCase()), d = {};
542
542
  v = v.map(t);
543
543
  const p = {};
544
544
  for (const s of this.attributes) {
@@ -546,12 +546,12 @@ class $a extends HTMLElement {
546
546
  g.length > 1 && (p[g[0]] || (p[g[0]] = {}), p[g[0]][m(g[1])] = s.value);
547
547
  }
548
548
  for (const s of v) {
549
- let h = this.attributes.getNamedItem(s)?.value;
550
- p.hasOwnProperty(s) && (h = p[s]), d[s] = h;
549
+ let b = this.attributes.getNamedItem(s)?.value;
550
+ p.hasOwnProperty(s) && (b = p[s]), d[s] = b;
551
551
  }
552
552
  this.vueApp = ye(J, d), Ge(this.vueApp), this.vueApp.provide("emitter", Ta), this.vueApp.use(Pa), this.vueApp.use(Re), this.vueApp.use(qe, { bootstrap: !0 });
553
- const b = document.createElement("div");
554
- this.vueApp.mount(b), this.appendChild(b.children[0]);
553
+ const h = document.createElement("div");
554
+ this.vueApp.mount(h), this.appendChild(h.children[0]);
555
555
  }
556
556
  }
557
557
  window.customElements.define("konnectio-gift-card", $a);
Binary file