@konnectio/core 4.0.56-rc3 → 4.0.56-rc31

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 (178) hide show
  1. package/dist/{ActionField-9I-yAskc.js → ActionField-qP-3ktN4.js} +25 -26
  2. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-uaCnfwHM.js +7665 -0
  4. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  5. package/dist/CheckoutWindow-RWkSWvbk.js +659 -0
  6. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  7. package/dist/ErrorMessage-z0JJ8Q3W.js +36 -0
  8. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  9. package/dist/EventAvailabilityForm-LIgUj1t3.js +325 -0
  10. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  11. package/dist/Field-C9r1d8IB.js +30985 -0
  12. package/dist/Field-C9r1d8IB.js.br +0 -0
  13. package/dist/HotelAvailabilityForm-AQ4VA15t.js +212 -0
  14. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  15. package/dist/TermsOfService-oZz-B-KI.js +26 -0
  16. package/dist/_commonjsHelpers-f3sTPFkQ.js +8 -0
  17. package/dist/availability.js +85 -147
  18. package/dist/availability.js.br +0 -0
  19. package/dist/event.js +540 -453
  20. package/dist/event.js.br +0 -0
  21. package/dist/gift-card-validation.js +90 -56
  22. package/dist/gift-card-validation.js.br +0 -0
  23. package/dist/gift-card.js +368 -336
  24. package/dist/gift-card.js.br +0 -0
  25. package/dist/hotel.js +1259 -2264
  26. package/dist/hotel.js.br +0 -0
  27. package/dist/masonry.plugin-fa0tia29.js +12714 -0
  28. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  29. package/dist/polyfill.js +3358 -3315
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +32 -28
  34. package/dist/ActionField-9I-yAskc.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-hoauL0os.js +0 -242
  36. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  37. package/dist/CheckoutWindow-31th413C.js +0 -206
  38. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  39. package/dist/Container-gHSYMY7q.js +0 -69
  40. package/dist/Container-gHSYMY7q.js.br +0 -0
  41. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js +0 -8567
  42. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  43. package/dist/Field-QHvFgmEq.js +0 -43
  44. package/dist/Field-QHvFgmEq.js.br +0 -0
  45. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js +0 -21472
  46. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  47. package/dist/ThankYou-SQ_bbgj4.js +0 -13316
  48. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  49. package/dist/_-FedWhJCw.js +0 -20
  50. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  51. package/dist/assets/typescript/mixins.d.ts +0 -34
  52. package/dist/availability.d.ts +0 -3
  53. package/dist/components/Alert.vue.d.ts +0 -28
  54. package/dist/components/Alert.vue.d.ts.map +0 -1
  55. package/dist/components/Clickable.vue.d.ts +0 -60
  56. package/dist/components/Clickable.vue.d.ts.map +0 -1
  57. package/dist/components/Container.vue.d.ts +0 -23
  58. package/dist/components/Container.vue.d.ts.map +0 -1
  59. package/dist/components/ErrorMessage.vue.d.ts +0 -15
  60. package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
  61. package/dist/components/Gallery.vue.d.ts +0 -31
  62. package/dist/components/Gallery.vue.d.ts.map +0 -1
  63. package/dist/components/GoogleNotice.vue.d.ts +0 -2
  64. package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
  65. package/dist/components/Icon.vue.d.ts +0 -38
  66. package/dist/components/Icon.vue.d.ts.map +0 -1
  67. package/dist/components/Loading.vue.d.ts +0 -29
  68. package/dist/components/Loading.vue.d.ts.map +0 -1
  69. package/dist/components/Spinner.vue.d.ts +0 -2
  70. package/dist/components/Spinner.vue.d.ts.map +0 -1
  71. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -18
  72. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
  73. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -34
  74. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
  75. package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -41
  76. package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
  77. package/dist/components/forms/MultiStepForm.vue.d.ts +0 -43
  78. package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
  79. package/dist/components/forms/ReservationForm.vue.d.ts +0 -63
  80. package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
  81. package/dist/components/forms/_.vue.d.ts +0 -42
  82. package/dist/components/forms/_.vue.d.ts.map +0 -1
  83. package/dist/components/inputs/Checkbox.vue.d.ts +0 -55
  84. package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
  85. package/dist/components/inputs/CheckboxField.vue.d.ts +0 -29
  86. package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
  87. package/dist/components/inputs/DateField.vue.d.ts +0 -104
  88. package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
  89. package/dist/components/inputs/InputField.vue.d.ts +0 -62
  90. package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
  91. package/dist/components/inputs/MediaSelector.vue.d.ts +0 -43
  92. package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
  93. package/dist/components/inputs/NumberField.vue.d.ts +0 -87
  94. package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
  95. package/dist/components/inputs/SelectField.vue.d.ts +0 -90
  96. package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
  97. package/dist/components/inputs/TextField.vue.d.ts +0 -68
  98. package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
  99. package/dist/components/inputs/TimeField.vue.d.ts +0 -44
  100. package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
  101. package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -72
  102. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
  103. package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -41
  104. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
  105. package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -71
  106. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
  107. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -51
  108. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
  109. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -47
  110. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
  111. package/dist/components/listings/Base.vue.d.ts +0 -56
  112. package/dist/components/listings/Base.vue.d.ts.map +0 -1
  113. package/dist/components/listings/Event.vue.d.ts +0 -47
  114. package/dist/components/listings/Event.vue.d.ts.map +0 -1
  115. package/dist/components/listings/Hotel.vue.d.ts +0 -16
  116. package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
  117. package/dist/components/listings/Template.vue.d.ts +0 -21
  118. package/dist/components/listings/Template.vue.d.ts.map +0 -1
  119. package/dist/components/side-panels/Base.vue.d.ts +0 -61
  120. package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
  121. package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -18
  122. package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
  123. package/dist/components/side-panels/Template.vue.d.ts +0 -18
  124. package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
  125. package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -14
  126. package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
  127. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -33
  128. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
  129. package/dist/components/skeletons/Field.vue.d.ts +0 -36
  130. package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
  131. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -2
  132. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
  133. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -2
  134. package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
  135. package/dist/components/skeletons/Listing.vue.d.ts +0 -2
  136. package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
  137. package/dist/components/skeletons/Sidebar.vue.d.ts +0 -2
  138. package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
  139. package/dist/components/skeletons/_.vue.d.ts +0 -36
  140. package/dist/components/skeletons/_.vue.d.ts.map +0 -1
  141. package/dist/components/views/CheckoutWindow.vue.d.ts +0 -2
  142. package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
  143. package/dist/components/views/TermsOfService.vue.d.ts +0 -2
  144. package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
  145. package/dist/components/views/ThankYou.vue.d.ts +0 -15
  146. package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
  147. package/dist/entries/availability.d.ts +0 -5
  148. package/dist/entries/event.d.ts +0 -2
  149. package/dist/entries/gift-card-validation.d.ts +0 -5
  150. package/dist/entries/gift-card.d.ts +0 -5
  151. package/dist/entries/hotel.d.ts +0 -5
  152. package/dist/entries/navigation.d.ts +0 -1
  153. package/dist/entries/polyfill.d.ts +0 -0
  154. package/dist/event-4kCWoqDL.js +0 -359
  155. package/dist/event-4kCWoqDL.js.br +0 -0
  156. package/dist/event.d.ts +0 -3
  157. package/dist/gift-card-validation.d.ts +0 -3
  158. package/dist/gift-card.d.ts +0 -3
  159. package/dist/hotel.d.ts +0 -3
  160. package/dist/layouts/Availability.vue.d.ts +0 -25
  161. package/dist/layouts/Event.vue.d.ts +0 -18
  162. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  163. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  164. package/dist/layouts/Hotel.vue.d.ts +0 -36
  165. package/dist/layouts/_.vue.d.ts +0 -39
  166. package/dist/navigation.d.ts +0 -1
  167. package/dist/plugins/i18n.d.ts +0 -5
  168. package/dist/polyfill.d.ts +0 -1
  169. package/dist/store/alert.d.ts +0 -28
  170. package/dist/store/applyGiftCard.d.ts +0 -28
  171. package/dist/store/availability.d.ts +0 -40
  172. package/dist/store/event.d.ts +0 -683
  173. package/dist/store/giftCard.d.ts +0 -83
  174. package/dist/store/payment.d.ts +0 -139
  175. package/dist/store/recaptcha.d.ts +0 -28
  176. package/dist/store/tracking.d.ts +0 -57
  177. package/dist/store/utilities.d.ts +0 -350
  178. package/dist/types/index.d.ts +0 -976
package/dist/event.js.br CHANGED
Binary file
@@ -1,80 +1,94 @@
1
- import { defineComponent as X, openBlock as u, createBlock as C, withCtx as d, Suspense as I, createVNode as s, createElementVNode as t, withModifiers as w, unref as a, toDisplayString as e, isRef as b, createElementBlock as A, createCommentVNode as G, pushScopeId as T, popScopeId as x, createApp as B } from "vue";
2
- import { l as D, s as y, a as V, c as N, m as M, n as c, o as U, p as $, _ as E, q as H, t as P } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
3
- import { A as R } from "./ActionField-9I-yAskc.js";
4
- import { C as q } from "./Container-gHSYMY7q.js";
5
- import "./_commonjsHelpers-FF1eOqK0.js";
6
- const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z = {
1
+ import { d as w, f as h, g as S, h as t, m as s, a0 as _, a1 as y, v as X, u as E, s as V, P as A, c as $, k as x, x as m, S as G, A as c, j as e, $ as L, a2 as k, a3 as T, a4 as B, l as D, q as I, D as M, E as N, J as P, K as U, L as j, M as z } from "./Field-C9r1d8IB.js";
2
+ import { A as H } from "./ActionField-qP-3ktN4.js";
3
+ const O = { class: "gift-card-validation-skeleton" }, F = { class: "gift-card-validation-skeleton-form" }, R = { class: "gift-card-validation-skeleton-text" }, Z = { class: "gift-card-validation-skeleton-input" }, q = /* @__PURE__ */ w({
4
+ __name: "GiftCardValidationSkeleton",
5
+ setup(C) {
6
+ return (n, l) => (h(), S("div", O, [
7
+ t("div", F, [
8
+ t("div", R, [
9
+ s(_, { height: "20px" }),
10
+ s(_, { height: "15px" }),
11
+ s(_, { height: "15px" })
12
+ ]),
13
+ t("div", Z, [
14
+ s(y),
15
+ s(y, { "no-label": "" })
16
+ ])
17
+ ])
18
+ ]));
19
+ }
20
+ }), J = /* @__PURE__ */ X(q, [["__scopeId", "data-v-b1601b74"]]), K = ["innerHTML"], Q = {
7
21
  key: 0,
8
22
  id: "fresh-booking-gift-card-validation-resume",
9
23
  class: "fresh-booking-panel"
10
- }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ X({
24
+ }, W = /* @__PURE__ */ w({
11
25
  name: "GiftCardValidationLayout",
12
26
  __name: "GiftCardValidation",
13
27
  props: {
14
28
  accessToken: {},
15
29
  styling: {}
16
30
  },
17
- setup(i) {
18
- const { t: o } = D(), {
19
- voucher: p,
20
- isValid: _,
21
- amount: k,
22
- expirationDate: v,
23
- productName: L,
24
- isLoading: r
25
- } = y(V()), { currency: S } = y(N()), { apply: m } = V();
26
- return (g, n) => (u(), C(q, { styling: g.styling }, {
27
- default: d(() => [
28
- (u(), C(I, null, {
29
- default: d(() => [
31
+ setup(C) {
32
+ const { t: n } = E(), {
33
+ voucher: l,
34
+ isValid: v,
35
+ amount: b,
36
+ expirationDate: f,
37
+ productName: d,
38
+ isLoading: p
39
+ } = V(A()), { currency: a } = V($()), { apply: o } = A();
40
+ return (i, r) => (h(), x(N, { styling: i.styling }, {
41
+ default: m(() => [
42
+ (h(), x(G, null, {
43
+ default: m(() => [
30
44
  s(M, {
31
45
  id: "fresh-booking-gift-card-validation-module",
32
- "access-token": g.accessToken,
46
+ "access-token": i.accessToken,
33
47
  type: "gift-card"
34
48
  }, {
35
- default: d(() => [
49
+ default: m(() => [
36
50
  t("form", {
37
- onSubmit: n[3] || (n[3] = w((l) => a(m)(), ["prevent"]))
51
+ onSubmit: r[3] || (r[3] = I((u) => e(o)(), ["prevent"]))
38
52
  }, [
39
53
  t("h4", null, [
40
- t("span", null, e(a(o)("giftCardValidation.title")), 1)
54
+ t("span", null, c(e(n)("giftCardValidation.title")), 1)
41
55
  ]),
42
56
  t("p", {
43
- innerHTML: a(o)("giftCardValidation.description")
44
- }, null, 8, j),
45
- s(R, {
46
- modelValue: a(p),
47
- "onUpdate:modelValue": n[0] || (n[0] = (l) => b(p) ? p.value = l : null),
57
+ innerHTML: e(n)("giftCardValidation.description")
58
+ }, null, 8, K),
59
+ s(H, {
60
+ modelValue: e(l),
61
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => L(l) ? l.value = u : null),
48
62
  icon: "gift-card",
49
- label: a(o)("booking.reservation.giftCardCode"),
50
- buttonLabel: a(o)("giftCardValidation.submitButton"),
63
+ label: e(n)("booking.reservation.giftCardCode"),
64
+ buttonLabel: e(n)("giftCardValidation.submitButton"),
51
65
  placeholder: "XXXXXXXX",
52
- "is-loading": a(r),
53
- "onUpdate:isLoading": n[1] || (n[1] = (l) => b(r) ? r.value = l : null),
54
- onAction: n[2] || (n[2] = (l) => a(m)())
66
+ "is-loading": e(p),
67
+ "onUpdate:isLoading": r[1] || (r[1] = (u) => L(p) ? p.value = u : null),
68
+ onAction: r[2] || (r[2] = (u) => e(o)())
55
69
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
56
- !a(r) && a(_) ? (u(), A("table", z, [
70
+ !e(p) && e(v) ? (h(), S("table", Q, [
57
71
  t("thead", null, [
58
72
  t("tr", null, [
59
73
  t("th", null, [
60
- t("span", null, e(a(o)("giftCardValidation.giftCard")), 1),
61
- s(c, {
74
+ t("span", null, c(e(n)("giftCardValidation.giftCard")), 1),
75
+ s(k, {
62
76
  icon: "gift-card",
63
77
  type: "fas",
64
78
  color: "header"
65
79
  })
66
80
  ]),
67
81
  t("th", null, [
68
- t("span", null, e(a(o)("giftCardValidation.balance")), 1),
69
- s(c, {
82
+ t("span", null, c(e(n)("giftCardValidation.balance")), 1),
83
+ s(k, {
70
84
  icon: "money-bill",
71
85
  type: "fas",
72
86
  color: "header"
73
87
  })
74
88
  ]),
75
89
  t("th", null, [
76
- t("span", null, e(a(o)("giftCardValidation.expirationDate")), 1),
77
- s(c, {
90
+ t("span", null, c(e(n)("giftCardValidation.expirationDate")), 1),
91
+ s(k, {
78
92
  icon: "timer",
79
93
  type: "fas",
80
94
  color: "header"
@@ -85,24 +99,24 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
85
99
  t("tbody", null, [
86
100
  t("tr", null, [
87
101
  t("td", null, [
88
- t("span", null, e(a(L)), 1)
102
+ t("span", null, c(e(d)), 1)
89
103
  ]),
90
104
  t("td", null, [
91
- t("span", null, e(a(U)(a(k), a(S))), 1)
105
+ t("span", null, c(e(T)(e(b), e(a))), 1)
92
106
  ]),
93
107
  t("td", null, [
94
- t("span", null, e(a($)(a(v))), 1)
108
+ t("span", null, c(e(B)(e(f))), 1)
95
109
  ])
96
110
  ])
97
111
  ])
98
- ])) : G("", !0)
112
+ ])) : D("", !0)
99
113
  ], 32)
100
114
  ]),
101
115
  _: 1
102
116
  }, 8, ["access-token"])
103
117
  ]),
104
- fallback: d(() => [
105
- J
118
+ fallback: m(() => [
119
+ s(J)
106
120
  ]),
107
121
  _: 1
108
122
  }))
@@ -110,15 +124,35 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
110
124
  _: 1
111
125
  }, 8, ["styling"]));
112
126
  }
113
- }), h = /* @__PURE__ */ E(K, [["__scopeId", "data-v-5af38302"]]), f = B({ components: { GiftCardValidation: h } }), O = H();
114
- f.use(O);
115
- f.use(P);
116
- f.mount("#konnectio-gift-card-validation-app");
117
- const at = {
118
- install: (i) => {
119
- i.component("GiftCardValidation", h);
127
+ }), g = /* @__PURE__ */ X(W, [["__scopeId", "data-v-b19b4a0e"]]), Y = P(), tt = z();
128
+ class et extends HTMLElement {
129
+ vueApp;
130
+ constructor() {
131
+ super();
120
132
  }
121
- };
133
+ disconnectedCallback() {
134
+ this.vueApp.unmount();
135
+ }
136
+ connectedCallback() {
137
+ const n = typeof g == "function" ? g.options : g;
138
+ let l = Array.isArray(n.props) ? n.props : Object.keys(n.props || {});
139
+ const v = (a) => a.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (o, i) => (i ? "-" : "") + o.toLowerCase()), b = (a) => a.replace(/-./g, (o) => o[1].toUpperCase()), f = {};
140
+ l = l.map(v);
141
+ const d = {};
142
+ for (const a of this.attributes) {
143
+ const i = a.name.split(".");
144
+ i.length > 1 && (d[i[0]] || (d[i[0]] = {}), d[i[0]][b(i[1])] = a.value);
145
+ }
146
+ for (const a of l) {
147
+ let o = this.attributes.getNamedItem(a)?.value;
148
+ d.hasOwnProperty(a) && (o = d[a]), f[a] = o;
149
+ }
150
+ this.vueApp = U(g, f), this.vueApp.provide("emitter", tt), this.vueApp.use(Y), this.vueApp.use(j);
151
+ const p = document.createElement("div");
152
+ this.vueApp.mount(p), this.appendChild(p.children[0]);
153
+ }
154
+ }
155
+ window.customElements.define("konnectio-gift-card-validation", et);
122
156
  export {
123
- at as default
157
+ et as default
124
158
  };
Binary file