@konnectio/core 4.0.56-rc8 → 4.0.56

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 (70) hide show
  1. package/dist/{ActionField-na8McB-H.js → ActionField-j1i8YL6H.js} +43 -34
  2. package/dist/ActionField-j1i8YL6H.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-78ug9z_g.js +294 -0
  4. package/dist/AvailabilitySkeleton-78ug9z_g.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js +8652 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-B72HmqV2.js.br +0 -0
  7. package/dist/CheckoutWindow-DYdrHbQ-.js +677 -0
  8. package/dist/CheckoutWindow-DYdrHbQ-.js.br +0 -0
  9. package/dist/ErrorMessage-DJ_hHpkR.js +45 -0
  10. package/dist/ErrorMessage-DJ_hHpkR.js.br +0 -0
  11. package/dist/EventAvailabilityForm-B4Y8N8P1.js +117 -0
  12. package/dist/EventAvailabilityForm-B4Y8N8P1.js.br +0 -0
  13. package/dist/Field-CHlcB-1U.js +50 -0
  14. package/dist/Field-CHlcB-1U.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js +18825 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js.br +0 -0
  17. package/dist/TermsOfService-BTaz4T1c.js +36 -0
  18. package/dist/TermsOfService-BTaz4T1c.js.br +0 -0
  19. package/dist/_-Bv_QUFw4.js +12 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BHKGq8g4.js +69 -0
  21. package/dist/_.vue_vue_type_style_index_0_lang-BHKGq8g4.js.br +0 -0
  22. package/dist/_commonjsHelpers-4HJ9V5A_.js +17 -0
  23. package/dist/_sentry-release-injection-file-B7Jqb6lo.js +9598 -0
  24. package/dist/_sentry-release-injection-file-B7Jqb6lo.js.br +0 -0
  25. package/dist/availability.js +89 -170
  26. package/dist/availability.js.br +0 -0
  27. package/dist/deep-link.js +62 -0
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +780 -500
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +114 -67
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +356 -390
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/giftCard-D5RQomNw.js +134 -0
  36. package/dist/giftCard-D5RQomNw.js.br +0 -0
  37. package/dist/hotel.js +2215 -11
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/masonry.plugin-DKJPmkN0.js +12766 -0
  40. package/dist/masonry.plugin-DKJPmkN0.js.br +0 -0
  41. package/dist/mitt-mvNuFbhJ.js +2952 -0
  42. package/dist/mitt-mvNuFbhJ.js.br +0 -0
  43. package/dist/polyfill.js +13670 -4711
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/dist/tracing-CMlyHB3J.js +2537 -0
  48. package/dist/tracing-CMlyHB3J.js.br +0 -0
  49. package/package.json +47 -38
  50. package/dist/ActionField-na8McB-H.js.br +0 -0
  51. package/dist/AvailabilitySkeleton-1_yLVsq6.js +0 -214
  52. package/dist/AvailabilitySkeleton-1_yLVsq6.js.br +0 -0
  53. package/dist/CheckoutWindow-r6ch1iOr.js +0 -205
  54. package/dist/CheckoutWindow-r6ch1iOr.js.br +0 -0
  55. package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js +0 -8558
  56. package/dist/DateField.vue_vue_type_style_index_0_lang-ZM6h3KFg.js.br +0 -0
  57. package/dist/Field-S_yxW5IQ.js +0 -42
  58. package/dist/Field-S_yxW5IQ.js.br +0 -0
  59. package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js +0 -30460
  60. package/dist/SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js.br +0 -0
  61. package/dist/ThankYou-ekf_1AWY.js +0 -13233
  62. package/dist/ThankYou-ekf_1AWY.js.br +0 -0
  63. package/dist/_-vErl-x3v.js +0 -19
  64. package/dist/_commonjsHelpers-2ufMB8rV.js +0 -30
  65. package/dist/event-iDLUEMAV.js +0 -328
  66. package/dist/event-iDLUEMAV.js.br +0 -0
  67. package/dist/favicon.ico +0 -0
  68. package/dist/hotel-4O89o7V2.js +0 -3111
  69. package/dist/hotel-4O89o7V2.js.br +0 -0
  70. package/dist/navigation.js +0 -1
package/dist/event.js.br CHANGED
Binary file
@@ -1,78 +1,115 @@
1
- import { k as w, B as A, s as k, a as V, c as S, o as b, m as _, w as m, D as X, p, x as t, F as s, z as a, G as v, l as I, H as y, J as x, K as B, n as N, L as T, M as D, N as E, P as M, Q as G, _ as H, R as U, U as P, V as R } from "./SelectField.vue_vue_type_style_index_0_lang-K94DVjrE.js";
2
- import { A as $ } from "./ActionField-na8McB-H.js";
3
- import "./_commonjsHelpers-2ufMB8rV.js";
4
- const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z = {
1
+ import { d as S, a as f, g as V, e as t, f as o, c as X, b as _, w as v, S as P, u as e, t as u, v as w, i as T, h as $, k as B } from "./_sentry-release-injection-file-B7Jqb6lo.js";
2
+ import { u as N, s as x, c as U, i as O, m as z } from "./mitt-mvNuFbhJ.js";
3
+ import { u as F, c as H } from "./giftCard-D5RQomNw.js";
4
+ import { E as k, _ as L, q as E, d as j, I as C, h as R, f as Z, C as q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CXrsASkr.js";
5
+ import { _ as W } from "./_.vue_vue_type_style_index_0_lang-BHKGq8g4.js";
6
+ import { A as J } from "./ActionField-j1i8YL6H.js";
7
+ import { F as I } from "./Field-CHlcB-1U.js";
8
+ import { E as K } from "./ErrorMessage-DJ_hHpkR.js";
9
+ (function() {
10
+ try {
11
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = new Error().stack;
12
+ s && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[s] = "2108e475-3094-4fdf-8783-914b11ea707f", r._sentryDebugIdIdentifier = "sentry-dbid-2108e475-3094-4fdf-8783-914b11ea707f");
13
+ } catch {
14
+ }
15
+ })();
16
+ const Q = { class: "gift-card-validation-skeleton" }, Y = { class: "gift-card-validation-skeleton-form" }, tt = { class: "gift-card-validation-skeleton-text" }, et = { class: "gift-card-validation-skeleton-input" }, at = /* @__PURE__ */ S({
17
+ __name: "GiftCardValidationSkeleton",
18
+ setup(r) {
19
+ return (s, c) => (f(), V("div", Q, [
20
+ t("div", Y, [
21
+ t("div", tt, [
22
+ o(k, { height: "20px" }),
23
+ o(k, { height: "15px" }),
24
+ o(k, { height: "15px" })
25
+ ]),
26
+ t("div", et, [
27
+ o(I),
28
+ o(I, { "no-label": "" })
29
+ ])
30
+ ])
31
+ ]));
32
+ }
33
+ }), nt = /* @__PURE__ */ L(at, [["__scopeId", "data-v-b1601b74"]]), ot = ["innerHTML"], st = {
5
34
  key: 0,
6
- id: "fresh-booking-gift-card-validation-resume",
7
- class: "fresh-booking-panel"
8
- }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ w({
35
+ id: "konnectio-gift-card-validation-resume",
36
+ class: "konnectio-panel"
37
+ }, it = /* @__PURE__ */ S({
9
38
  name: "GiftCardValidationLayout",
10
39
  __name: "GiftCardValidation",
11
40
  props: {
12
41
  accessToken: {},
13
42
  styling: {}
14
43
  },
15
- setup(i) {
16
- const { t: e } = A(), {
17
- voucher: l,
18
- isValid: c,
19
- amount: r,
20
- expirationDate: u,
21
- productName: f,
22
- isLoading: o
23
- } = k(V()), { currency: L } = k(S()), { apply: h } = V();
24
- return (C, n) => (b(), _(E, { styling: C.styling }, {
25
- default: m(() => [
26
- (b(), _(X, null, {
27
- default: m(() => [
28
- p(D, {
29
- id: "fresh-booking-gift-card-validation-module",
30
- "access-token": C.accessToken,
31
- type: "gift-card"
44
+ setup(r) {
45
+ const s = r, c = X(() => ({
46
+ panelMaxWidth: "800px",
47
+ ...s.styling
48
+ })), { t: i } = N(), {
49
+ voucher: m,
50
+ isValid: h,
51
+ amount: p,
52
+ expirationDate: b,
53
+ productName: a,
54
+ isLoading: n
55
+ } = x(E()), { currency: l, hasError: G } = x(j()), { fetchMetadata: D } = F(), { apply: A } = E();
56
+ return (M, d) => (f(), _(q, { styling: c.value }, {
57
+ default: v(() => [
58
+ (f(), _(P, null, {
59
+ default: v(() => [
60
+ o(W, {
61
+ "access-token": M.accessToken,
62
+ callback: e(D)
32
63
  }, {
33
- default: m(() => [
34
- t("form", {
35
- onSubmit: n[3] || (n[3] = T((d) => a(h)(), ["prevent"]))
64
+ default: v(() => [
65
+ e(G) ? (f(), _(K, {
66
+ key: 1,
67
+ title: "Unable to render Gift card validation module",
68
+ description: "Gift card functionality hasn't been setup for this account. Please contact Octopus PMS for support."
69
+ })) : (f(), V("form", {
70
+ key: 0,
71
+ id: "konnectio-gift-card-validation-module",
72
+ onSubmit: d[3] || (d[3] = $((g) => e(A)(), ["prevent"]))
36
73
  }, [
37
74
  t("h4", null, [
38
- t("span", null, s(a(e)("giftCardValidation.title")), 1)
75
+ t("span", null, u(e(i)("giftCardValidation.title")), 1)
39
76
  ]),
40
77
  t("p", {
41
- innerHTML: a(e)("giftCardValidation.description")
42
- }, null, 8, j),
43
- p($, {
44
- modelValue: a(l),
45
- "onUpdate:modelValue": n[0] || (n[0] = (d) => v(l) ? l.value = d : null),
78
+ innerHTML: e(i)("giftCardValidation.description")
79
+ }, null, 8, ot),
80
+ o(J, {
81
+ modelValue: e(m),
82
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => w(m) ? m.value = g : null),
46
83
  icon: "gift-card",
47
- label: a(e)("booking.reservation.giftCardCode"),
48
- buttonLabel: a(e)("giftCardValidation.submitButton"),
84
+ label: e(i)("booking.reservation.giftCardCode"),
85
+ buttonLabel: e(i)("giftCardValidation.submitButton"),
49
86
  placeholder: "XXXXXXXX",
50
- "is-loading": a(o),
51
- "onUpdate:isLoading": n[1] || (n[1] = (d) => v(o) ? o.value = d : null),
52
- onAction: n[2] || (n[2] = (d) => a(h)())
87
+ "is-loading": e(n),
88
+ "onUpdate:isLoading": d[1] || (d[1] = (g) => w(n) ? n.value = g : null),
89
+ onAction: d[2] || (d[2] = (g) => e(A)())
53
90
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
54
- !a(o) && a(c) ? (b(), I("table", z, [
91
+ !e(n) && e(h) ? (f(), V("table", st, [
55
92
  t("thead", null, [
56
93
  t("tr", null, [
57
94
  t("th", null, [
58
- t("span", null, s(a(e)("giftCardValidation.giftCard")), 1),
59
- p(y, {
95
+ t("span", null, u(e(i)("giftCardValidation.giftCard")), 1),
96
+ o(C, {
60
97
  icon: "gift-card",
61
98
  type: "fas",
62
99
  color: "header"
63
100
  })
64
101
  ]),
65
102
  t("th", null, [
66
- t("span", null, s(a(e)("giftCardValidation.balance")), 1),
67
- p(y, {
103
+ t("span", null, u(e(i)("giftCardValidation.balance")), 1),
104
+ o(C, {
68
105
  icon: "money-bill",
69
106
  type: "fas",
70
107
  color: "header"
71
108
  })
72
109
  ]),
73
110
  t("th", null, [
74
- t("span", null, s(a(e)("giftCardValidation.expirationDate")), 1),
75
- p(y, {
111
+ t("span", null, u(e(i)("giftCardValidation.expirationDate")), 1),
112
+ o(C, {
76
113
  icon: "timer",
77
114
  type: "fas",
78
115
  color: "header"
@@ -83,24 +120,24 @@ const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z =
83
120
  t("tbody", null, [
84
121
  t("tr", null, [
85
122
  t("td", null, [
86
- t("span", null, s(a(f)), 1)
123
+ t("span", null, u(e(a)), 1)
87
124
  ]),
88
125
  t("td", null, [
89
- t("span", null, s(a(x)(a(r), a(L))), 1)
126
+ t("span", null, u(e(R)(e(p), e(l))), 1)
90
127
  ]),
91
128
  t("td", null, [
92
- t("span", null, s(a(B)(a(u))), 1)
129
+ t("span", null, u(e(Z)(e(b))), 1)
93
130
  ])
94
131
  ])
95
132
  ])
96
- ])) : N("", !0)
97
- ], 32)
133
+ ])) : T("", !0)
134
+ ], 32))
98
135
  ]),
99
136
  _: 1
100
- }, 8, ["access-token"])
137
+ }, 8, ["access-token", "callback"])
101
138
  ]),
102
- fallback: m(() => [
103
- J
139
+ fallback: v(() => [
140
+ o(nt)
104
141
  ]),
105
142
  _: 1
106
143
  }))
@@ -108,26 +145,36 @@ const F = (i) => (M("data-v-0b17aac3"), i = i(), G(), i), j = ["innerHTML"], z =
108
145
  _: 1
109
146
  }, 8, ["styling"]));
110
147
  }
111
- }), g = /* @__PURE__ */ H(K, [["__scopeId", "data-v-0b17aac3"]]), O = U();
112
- class Q extends HTMLElement {
148
+ }), y = /* @__PURE__ */ L(it, [["__scopeId", "data-v-ae703950"]]), lt = U(), rt = z();
149
+ class dt extends HTMLElement {
150
+ vueApp;
113
151
  constructor() {
114
152
  super();
115
153
  }
154
+ disconnectedCallback() {
155
+ this.vueApp.unmount();
156
+ }
116
157
  connectedCallback() {
117
- const e = typeof g == "function" ? g.options : g, l = Array.isArray(e.props) ? e.props : Object.keys(e.props || {}), c = {};
118
- for (const f of l) {
119
- const o = this.attributes.getNamedItem(f)?.value;
120
- if (!o)
121
- break;
122
- c[f] = o;
158
+ const s = typeof y == "function" ? y.options : y;
159
+ let c = Array.isArray(s.props) ? s.props : Object.keys(s.props || {});
160
+ 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 = {};
161
+ c = c.map(i);
162
+ const p = {};
163
+ for (const a of this.attributes) {
164
+ const l = a.name.split(".");
165
+ l.length > 1 && (p[l[0]] || (p[l[0]] = {}), p[l[0]][m(l[1])] = a.value);
166
+ }
167
+ for (const a of c) {
168
+ let n = this.attributes.getNamedItem(a)?.value;
169
+ p.hasOwnProperty(a) && (n = p[a]), h[a] = n;
123
170
  }
124
- const r = P(g, c);
125
- r.use(O), r.use(R);
126
- const u = document.createElement("div");
127
- r.mount(u), this.appendChild(u.children[0]);
171
+ this.vueApp = B(y, h), H(this.vueApp), this.vueApp.provide("emitter", rt), this.vueApp.use(lt), this.vueApp.use(O);
172
+ const b = document.createElement("div");
173
+ this.vueApp.mount(b), this.appendChild(b.children[0]);
128
174
  }
129
175
  }
130
- window.customElements.define("konnectio-gift-card-validation", Q);
176
+ window.customElements.define("konnectio-gift-card-validation", dt);
131
177
  export {
132
- Q as default
178
+ dt as default
133
179
  };
180
+ //# sourceMappingURL=gift-card-validation.js.map
Binary file