@konnectio/core 4.0.56-rc4 → 4.0.56-rc6

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 (115) hide show
  1. package/dist/{ActionField-UFZMmHDy.js → ActionField-YyW_C34E.js} +27 -28
  2. package/dist/ActionField-YyW_C34E.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-lYcDX41T.js +239 -0
  4. package/dist/AvailabilitySkeleton-lYcDX41T.js.br +0 -0
  5. package/dist/{CheckoutWindow-2RMgPiGi.js → CheckoutWindow-T7-vrZyG.js} +46 -47
  6. package/dist/CheckoutWindow-T7-vrZyG.js.br +0 -0
  7. package/dist/{Container-XBRB0sOV.js → Container-w7O0He-s.js} +6 -7
  8. package/dist/Container-w7O0He-s.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js → DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js} +5 -6
  10. package/dist/DateField.vue_vue_type_style_index_0_lang-pLqbpoS_.js.br +0 -0
  11. package/dist/{Field-uK3Wuuv6.js → Field-fWwF40rD.js} +12 -13
  12. package/dist/Field-fWwF40rD.js.br +0 -0
  13. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js +30461 -0
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js.br +0 -0
  15. package/dist/{ThankYou-nz4vPX4O.js → ThankYou-pUA2X7-4.js} +569 -569
  16. package/dist/ThankYou-pUA2X7-4.js.br +0 -0
  17. package/dist/_-TlutFgf7.js +19 -0
  18. package/dist/_commonjsHelpers-4t9S7M5p.js +30 -0
  19. package/dist/availability.js +96 -98
  20. package/dist/availability.js.br +0 -0
  21. package/dist/components/Alert.vue.d.ts +4 -4
  22. package/dist/components/Clickable.vue.d.ts +5 -5
  23. package/dist/components/Container.vue.d.ts +4 -4
  24. package/dist/components/ErrorMessage.vue.d.ts +3 -3
  25. package/dist/components/Gallery.vue.d.ts +4 -4
  26. package/dist/components/GoogleNotice.vue.d.ts +1 -1
  27. package/dist/components/Icon.vue.d.ts +4 -4
  28. package/dist/components/Loading.vue.d.ts +4 -4
  29. package/dist/components/Spinner.vue.d.ts +1 -1
  30. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +4 -4
  31. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +4 -4
  32. package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -4
  33. package/dist/components/forms/MultiStepForm.vue.d.ts +5 -5
  34. package/dist/components/forms/ReservationForm.vue.d.ts +4 -4
  35. package/dist/components/forms/_.vue.d.ts +5 -5
  36. package/dist/components/inputs/Checkbox.vue.d.ts +6 -6
  37. package/dist/components/inputs/CheckboxField.vue.d.ts +5 -5
  38. package/dist/components/inputs/DateField.vue.d.ts +5 -5
  39. package/dist/components/inputs/InputField.vue.d.ts +4 -4
  40. package/dist/components/inputs/MediaSelector.vue.d.ts +5 -5
  41. package/dist/components/inputs/NumberField.vue.d.ts +5 -5
  42. package/dist/components/inputs/SelectField.vue.d.ts +5 -5
  43. package/dist/components/inputs/TextField.vue.d.ts +6 -6
  44. package/dist/components/inputs/TimeField.vue.d.ts +4 -4
  45. package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -5
  46. package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -5
  47. package/dist/components/inputs/grouped/NameField.vue.d.ts +6 -6
  48. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +6 -6
  49. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +5 -5
  50. package/dist/components/listings/Base.vue.d.ts +4 -4
  51. package/dist/components/listings/Event.vue.d.ts +4 -4
  52. package/dist/components/listings/Hotel.vue.d.ts +3 -3
  53. package/dist/components/listings/Template.vue.d.ts +3 -3
  54. package/dist/components/side-panels/Base.vue.d.ts +5 -5
  55. package/dist/components/side-panels/ListingInfo.vue.d.ts +3 -3
  56. package/dist/components/side-panels/Template.vue.d.ts +3 -3
  57. package/dist/components/side-panels/TermsOfService.vue.d.ts +3 -3
  58. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +4 -4
  59. package/dist/components/skeletons/Field.vue.d.ts +4 -4
  60. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -1
  61. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -1
  62. package/dist/components/skeletons/Listing.vue.d.ts +1 -1
  63. package/dist/components/skeletons/Sidebar.vue.d.ts +1 -1
  64. package/dist/components/skeletons/_.vue.d.ts +4 -4
  65. package/dist/components/views/CheckoutWindow.vue.d.ts +1 -1
  66. package/dist/components/views/TermsOfService.vue.d.ts +1 -1
  67. package/dist/components/views/ThankYou.vue.d.ts +4 -4
  68. package/dist/entries/availability.d.ts +5 -5
  69. package/dist/entries/event.d.ts +1 -1
  70. package/dist/entries/gift-card-validation.d.ts +5 -5
  71. package/dist/entries/gift-card.d.ts +5 -5
  72. package/dist/entries/hotel.d.ts +5 -5
  73. package/dist/{event--wgsUkQp.js → event-mDcuoL9g.js} +53 -54
  74. package/dist/event-mDcuoL9g.js.br +0 -0
  75. package/dist/event.js +212 -213
  76. package/dist/event.js.br +0 -0
  77. package/dist/gift-card-validation.js +65 -54
  78. package/dist/gift-card-validation.js.br +0 -0
  79. package/dist/gift-card.js +286 -276
  80. package/dist/gift-card.js.br +0 -0
  81. package/dist/hotel.js +1332 -1314
  82. package/dist/hotel.js.br +0 -0
  83. package/dist/layouts/Availability.vue.d.ts +4 -4
  84. package/dist/layouts/Event.vue.d.ts +4 -4
  85. package/dist/layouts/GiftCard.vue.d.ts +4 -4
  86. package/dist/layouts/GiftCardValidation.vue.d.ts +4 -4
  87. package/dist/layouts/Hotel.vue.d.ts +4 -4
  88. package/dist/layouts/_.vue.d.ts +4 -4
  89. package/dist/polyfill.js +2 -2
  90. package/dist/polyfill.js.br +0 -0
  91. package/dist/store/alert.d.ts +15 -15
  92. package/dist/store/applyGiftCard.d.ts +18 -18
  93. package/dist/store/availability.d.ts +12 -12
  94. package/dist/store/event.d.ts +141 -141
  95. package/dist/store/giftCard.d.ts +51 -51
  96. package/dist/store/payment.d.ts +39 -39
  97. package/dist/store/recaptcha.d.ts +3 -3
  98. package/dist/store/tracking.d.ts +6 -6
  99. package/dist/store/utilities.d.ts +129 -129
  100. package/dist/style.css +1 -1
  101. package/dist/style.css.br +0 -0
  102. package/package.json +4 -3
  103. package/dist/ActionField-UFZMmHDy.js.br +0 -0
  104. package/dist/AvailabilitySkeleton-hVUJYdXH.js +0 -242
  105. package/dist/AvailabilitySkeleton-hVUJYdXH.js.br +0 -0
  106. package/dist/CheckoutWindow-2RMgPiGi.js.br +0 -0
  107. package/dist/Container-XBRB0sOV.js.br +0 -0
  108. package/dist/DateField.vue_vue_type_style_index_0_lang-o-uoh8_-.js.br +0 -0
  109. package/dist/Field-uK3Wuuv6.js.br +0 -0
  110. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js +0 -21472
  111. package/dist/SelectField.vue_vue_type_style_index_0_lang-3YCxOJhZ.js.br +0 -0
  112. package/dist/ThankYou-nz4vPX4O.js.br +0 -0
  113. package/dist/_-oPH7HiaC.js +0 -20
  114. package/dist/_commonjsHelpers-FF1eOqK0.js +0 -8
  115. package/dist/event--wgsUkQp.js.br +0 -0
package/dist/event.js.br CHANGED
Binary file
@@ -1,13 +1,12 @@
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-3YCxOJhZ.js";
3
- import { A as R } from "./ActionField-UFZMmHDy.js";
4
- import { C as q } from "./Container-XBRB0sOV.js";
5
- import "./_commonjsHelpers-FF1eOqK0.js";
6
- const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z = {
1
+ import { k as w, F as A, s as V, a as _, c as S, o as y, m as v, w as g, G as X, p, x as t, H as s, z as a, J as L, l as I, K as C, L as x, M as N, n as T, N as B, P as E, Q as M, R as D, _ as G, U as H, V as U, W as P } from "./SelectField.vue_vue_type_style_index_0_lang-C-MscjWo.js";
2
+ import { A as R } from "./ActionField-YyW_C34E.js";
3
+ import { C as $ } from "./Container-w7O0He-s.js";
4
+ import "./_commonjsHelpers-4t9S7M5p.js";
5
+ const F = (i) => (M("data-v-0b17aac3"), i = i(), D(), i), j = ["innerHTML"], z = {
7
6
  key: 0,
8
7
  id: "fresh-booking-gift-card-validation-resume",
9
8
  class: "fresh-booking-panel"
10
- }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ X({
9
+ }, J = /* @__PURE__ */ F(() => /* @__PURE__ */ t("span", null, "Loading...", -1)), K = /* @__PURE__ */ w({
11
10
  name: "GiftCardValidationLayout",
12
11
  __name: "GiftCardValidation",
13
12
  props: {
@@ -15,66 +14,66 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
15
14
  styling: {}
16
15
  },
17
16
  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(() => [
30
- s(M, {
17
+ const { t: e } = A(), {
18
+ voucher: l,
19
+ isValid: c,
20
+ amount: r,
21
+ expirationDate: u,
22
+ productName: f,
23
+ isLoading: o
24
+ } = V(_()), { currency: m } = V(S()), { apply: h } = _();
25
+ return (k, n) => (y(), v($, { styling: k.styling }, {
26
+ default: g(() => [
27
+ (y(), v(X, null, {
28
+ default: g(() => [
29
+ p(E, {
31
30
  id: "fresh-booking-gift-card-validation-module",
32
- "access-token": g.accessToken,
31
+ "access-token": k.accessToken,
33
32
  type: "gift-card"
34
33
  }, {
35
- default: d(() => [
34
+ default: g(() => [
36
35
  t("form", {
37
- onSubmit: n[3] || (n[3] = w((l) => a(m)(), ["prevent"]))
36
+ onSubmit: n[3] || (n[3] = B((d) => a(h)(), ["prevent"]))
38
37
  }, [
39
38
  t("h4", null, [
40
- t("span", null, e(a(o)("giftCardValidation.title")), 1)
39
+ t("span", null, s(a(e)("giftCardValidation.title")), 1)
41
40
  ]),
42
41
  t("p", {
43
- innerHTML: a(o)("giftCardValidation.description")
42
+ innerHTML: a(e)("giftCardValidation.description")
44
43
  }, null, 8, j),
45
- s(R, {
46
- modelValue: a(p),
47
- "onUpdate:modelValue": n[0] || (n[0] = (l) => b(p) ? p.value = l : null),
44
+ p(R, {
45
+ modelValue: a(l),
46
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => L(l) ? l.value = d : null),
48
47
  icon: "gift-card",
49
- label: a(o)("booking.reservation.giftCardCode"),
50
- buttonLabel: a(o)("giftCardValidation.submitButton"),
48
+ label: a(e)("booking.reservation.giftCardCode"),
49
+ buttonLabel: a(e)("giftCardValidation.submitButton"),
51
50
  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)())
51
+ "is-loading": a(o),
52
+ "onUpdate:isLoading": n[1] || (n[1] = (d) => L(o) ? o.value = d : null),
53
+ onAction: n[2] || (n[2] = (d) => a(h)())
55
54
  }, null, 8, ["modelValue", "label", "buttonLabel", "is-loading"]),
56
- !a(r) && a(_) ? (u(), A("table", z, [
55
+ !a(o) && a(c) ? (y(), I("table", z, [
57
56
  t("thead", null, [
58
57
  t("tr", null, [
59
58
  t("th", null, [
60
- t("span", null, e(a(o)("giftCardValidation.giftCard")), 1),
61
- s(c, {
59
+ t("span", null, s(a(e)("giftCardValidation.giftCard")), 1),
60
+ p(C, {
62
61
  icon: "gift-card",
63
62
  type: "fas",
64
63
  color: "header"
65
64
  })
66
65
  ]),
67
66
  t("th", null, [
68
- t("span", null, e(a(o)("giftCardValidation.balance")), 1),
69
- s(c, {
67
+ t("span", null, s(a(e)("giftCardValidation.balance")), 1),
68
+ p(C, {
70
69
  icon: "money-bill",
71
70
  type: "fas",
72
71
  color: "header"
73
72
  })
74
73
  ]),
75
74
  t("th", null, [
76
- t("span", null, e(a(o)("giftCardValidation.expirationDate")), 1),
77
- s(c, {
75
+ t("span", null, s(a(e)("giftCardValidation.expirationDate")), 1),
76
+ p(C, {
78
77
  icon: "timer",
79
78
  type: "fas",
80
79
  color: "header"
@@ -85,23 +84,23 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
85
84
  t("tbody", null, [
86
85
  t("tr", null, [
87
86
  t("td", null, [
88
- t("span", null, e(a(L)), 1)
87
+ t("span", null, s(a(f)), 1)
89
88
  ]),
90
89
  t("td", null, [
91
- t("span", null, e(a(U)(a(k), a(S))), 1)
90
+ t("span", null, s(a(x)(a(r), a(m))), 1)
92
91
  ]),
93
92
  t("td", null, [
94
- t("span", null, e(a($)(a(v))), 1)
93
+ t("span", null, s(a(N)(a(u))), 1)
95
94
  ])
96
95
  ])
97
96
  ])
98
- ])) : G("", !0)
97
+ ])) : T("", !0)
99
98
  ], 32)
100
99
  ]),
101
100
  _: 1
102
101
  }, 8, ["access-token"])
103
102
  ]),
104
- fallback: d(() => [
103
+ fallback: g(() => [
105
104
  J
106
105
  ]),
107
106
  _: 1
@@ -110,15 +109,27 @@ const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z =
110
109
  _: 1
111
110
  }, 8, ["styling"]));
112
111
  }
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);
112
+ }), b = /* @__PURE__ */ G(K, [["__scopeId", "data-v-0b17aac3"]]), O = H();
113
+ class Q extends HTMLElement {
114
+ constructor() {
115
+ super();
120
116
  }
121
- };
117
+ connectedCallback() {
118
+ var f;
119
+ const e = typeof b == "function" ? b.options : b, l = Array.isArray(e.props) ? e.props : Object.keys(e.props || {}), c = {};
120
+ for (const o of l) {
121
+ const m = (f = this.attributes.getNamedItem(o)) == null ? void 0 : f.value;
122
+ if (!m)
123
+ break;
124
+ c[o] = m;
125
+ }
126
+ const r = U(b, c);
127
+ r.use(O), r.use(P);
128
+ const u = document.createElement("div");
129
+ r.mount(u), this.appendChild(u.children[0]);
130
+ }
131
+ }
132
+ window.customElements.define("konnectio-gift-card-validation", Q);
122
133
  export {
123
- at as default
134
+ Q as default
124
135
  };
Binary file