@konnectio/core 4.0.56-rc5 → 4.0.56-rc7

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 (128) hide show
  1. package/dist/{ActionField--byx0Lp1.js → ActionField-i2xWkFyi.js} +1 -1
  2. package/dist/ActionField-i2xWkFyi.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-PWA_yfC-.js +214 -0
  4. package/dist/AvailabilitySkeleton-PWA_yfC-.js.br +0 -0
  5. package/dist/{CheckoutWindow-_ZUCAYgm.js → CheckoutWindow-k3-Mh7Mp.js} +17 -17
  6. package/dist/CheckoutWindow-k3-Mh7Mp.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js → DateField.vue_vue_type_style_index_0_lang-Lzoa_ZgT.js} +2910 -2918
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-Lzoa_ZgT.js.br +0 -0
  9. package/dist/{Field-GdMucFcQ.js → Field-f9KUVLIW.js} +7 -7
  10. package/dist/Field-f9KUVLIW.js.br +0 -0
  11. package/dist/SelectField.vue_vue_type_style_index_0_lang-1RNEqBhG.js +30460 -0
  12. package/dist/SelectField.vue_vue_type_style_index_0_lang-1RNEqBhG.js.br +0 -0
  13. package/dist/{ThankYou-9pzt2SfJ.js → ThankYou-cAeMnWCk.js} +4325 -4567
  14. package/dist/ThankYou-cAeMnWCk.js.br +0 -0
  15. package/dist/{_-5uiOrU07.js → _-SqGSx3KP.js} +1 -1
  16. package/dist/{_commonjsHelpers-4t9S7M5p.js → _commonjsHelpers-2ufMB8rV.js} +1 -1
  17. package/dist/availability.js +138 -108
  18. package/dist/availability.js.br +0 -0
  19. package/dist/components/Alert.vue.d.ts +4 -27
  20. package/dist/components/Clickable.vue.d.ts +4 -59
  21. package/dist/components/Container.vue.d.ts +4 -22
  22. package/dist/components/ErrorMessage.vue.d.ts +4 -14
  23. package/dist/components/Gallery.vue.d.ts +4 -30
  24. package/dist/components/GoogleNotice.vue.d.ts +4 -2
  25. package/dist/components/Icon.vue.d.ts +4 -37
  26. package/dist/components/Loading.vue.d.ts +4 -28
  27. package/dist/components/Spinner.vue.d.ts +3 -1
  28. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +4 -17
  29. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +4 -33
  30. package/dist/components/forms/HotelReservationForm.vue.d.ts +4 -41
  31. package/dist/components/forms/MultiStepForm.vue.d.ts +4 -42
  32. package/dist/components/forms/ReservationForm.vue.d.ts +5 -62
  33. package/dist/components/forms/_.vue.d.ts +4 -42
  34. package/dist/components/inputs/Checkbox.vue.d.ts +4 -54
  35. package/dist/components/inputs/CheckboxField.vue.d.ts +4 -28
  36. package/dist/components/inputs/DateField.vue.d.ts +5 -104
  37. package/dist/components/inputs/InputField.vue.d.ts +4 -61
  38. package/dist/components/inputs/MediaSelector.vue.d.ts +4 -42
  39. package/dist/components/inputs/NumberField.vue.d.ts +5 -87
  40. package/dist/components/inputs/SelectField.vue.d.ts +5 -90
  41. package/dist/components/inputs/TextField.vue.d.ts +4 -67
  42. package/dist/components/inputs/TimeField.vue.d.ts +5 -44
  43. package/dist/components/inputs/grouped/ActionField.vue.d.ts +4 -71
  44. package/dist/components/inputs/grouped/CountryField.vue.d.ts +4 -40
  45. package/dist/components/inputs/grouped/NameField.vue.d.ts +4 -70
  46. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +4 -50
  47. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +4 -46
  48. package/dist/components/listings/Base.vue.d.ts +5 -55
  49. package/dist/components/listings/Event.vue.d.ts +4 -46
  50. package/dist/components/listings/Hotel.vue.d.ts +4 -15
  51. package/dist/components/listings/Template.vue.d.ts +4 -20
  52. package/dist/components/side-panels/Base.vue.d.ts +5 -60
  53. package/dist/components/side-panels/ListingInfo.vue.d.ts +4 -17
  54. package/dist/components/side-panels/Template.vue.d.ts +4 -17
  55. package/dist/components/side-panels/TermsOfService.vue.d.ts +4 -13
  56. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +4 -32
  57. package/dist/components/skeletons/Field.vue.d.ts +4 -35
  58. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +4 -1
  59. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +4 -1
  60. package/dist/components/skeletons/Listing.vue.d.ts +4 -1
  61. package/dist/components/skeletons/Sidebar.vue.d.ts +4 -1
  62. package/dist/components/skeletons/_.vue.d.ts +4 -35
  63. package/dist/components/views/CheckoutWindow.vue.d.ts +4 -1
  64. package/dist/components/views/TermsOfService.vue.d.ts +4 -1
  65. package/dist/components/views/ThankYou.vue.d.ts +4 -14
  66. package/dist/event-WJGagPbM.js +328 -0
  67. package/dist/event-WJGagPbM.js.br +0 -0
  68. package/dist/event.js +431 -412
  69. package/dist/event.js.br +0 -0
  70. package/dist/favicon.ico +0 -0
  71. package/dist/gift-card-validation.js +77 -67
  72. package/dist/gift-card-validation.js.br +0 -0
  73. package/dist/gift-card.js +291 -312
  74. package/dist/gift-card.js.br +0 -0
  75. package/dist/hotel-z4fa3tEa.js +3101 -0
  76. package/dist/hotel-z4fa3tEa.js.br +0 -0
  77. package/dist/hotel.js +11 -3136
  78. package/dist/polyfill.js +159 -159
  79. package/dist/polyfill.js.br +0 -0
  80. package/dist/style.css +1 -1
  81. package/dist/style.css.br +0 -0
  82. package/package.json +14 -16
  83. package/dist/ActionField--byx0Lp1.js.br +0 -0
  84. package/dist/AvailabilitySkeleton-cL6E9wAp.js +0 -239
  85. package/dist/AvailabilitySkeleton-cL6E9wAp.js.br +0 -0
  86. package/dist/CheckoutWindow-_ZUCAYgm.js.br +0 -0
  87. package/dist/Container-6UeOakwz.js +0 -68
  88. package/dist/Container-6UeOakwz.js.br +0 -0
  89. package/dist/DateField.vue_vue_type_style_index_0_lang-v-NT3HRG.js.br +0 -0
  90. package/dist/Field-GdMucFcQ.js.br +0 -5
  91. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js +0 -27240
  92. package/dist/SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js.br +0 -0
  93. package/dist/ThankYou-9pzt2SfJ.js.br +0 -0
  94. package/dist/assets/typescript/mixins.d.ts +0 -34
  95. package/dist/availability.d.ts +0 -3
  96. package/dist/entries/availability.d.ts +0 -5
  97. package/dist/entries/event.d.ts +0 -2
  98. package/dist/entries/gift-card-validation.d.ts +0 -5
  99. package/dist/entries/gift-card.d.ts +0 -5
  100. package/dist/entries/hotel.d.ts +0 -5
  101. package/dist/entries/navigation.d.ts +0 -1
  102. package/dist/entries/polyfill.d.ts +0 -0
  103. package/dist/event-jnP6wH4w.js +0 -358
  104. package/dist/event-jnP6wH4w.js.br +0 -0
  105. package/dist/event.d.ts +0 -3
  106. package/dist/gift-card-validation.d.ts +0 -3
  107. package/dist/gift-card.d.ts +0 -3
  108. package/dist/hotel.d.ts +0 -3
  109. package/dist/hotel.js.br +0 -0
  110. package/dist/layouts/Availability.vue.d.ts +0 -25
  111. package/dist/layouts/Event.vue.d.ts +0 -18
  112. package/dist/layouts/GiftCard.vue.d.ts +0 -32
  113. package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
  114. package/dist/layouts/Hotel.vue.d.ts +0 -36
  115. package/dist/layouts/_.vue.d.ts +0 -39
  116. package/dist/navigation.d.ts +0 -1
  117. package/dist/plugins/i18n.d.ts +0 -5
  118. package/dist/polyfill.d.ts +0 -1
  119. package/dist/store/alert.d.ts +0 -28
  120. package/dist/store/applyGiftCard.d.ts +0 -28
  121. package/dist/store/availability.d.ts +0 -40
  122. package/dist/store/event.d.ts +0 -683
  123. package/dist/store/giftCard.d.ts +0 -83
  124. package/dist/store/payment.d.ts +0 -139
  125. package/dist/store/recaptcha.d.ts +0 -28
  126. package/dist/store/tracking.d.ts +0 -57
  127. package/dist/store/utilities.d.ts +0 -350
  128. package/dist/types/index.d.ts +0 -976
Binary file
@@ -1,34 +0,0 @@
1
- import { Option, Translatable, QuantityStrategy } from '../../types/index.js';
2
- /**
3
- * Sanitized special characters that courses I18n to break.
4
- * Documentation: https://vue-i18n.intlify.dev/guide/essentials/syntax.html#special-characters
5
- * @param str
6
- * @returns string
7
- */
8
- export declare function sanitizeTranslation(str: string): string;
9
- export declare function quantityStrategy(data: {
10
- strategy: QuantityStrategy;
11
- }): string | undefined;
12
- export declare function getPriceQuantityLabel(strategy: QuantityStrategy): string | undefined;
13
- export declare function getQuantityStrategyPrice(basePrice: number, strategy: QuantityStrategy, nights: number, adults?: number, children?: number): number;
14
- export declare function createTestName(name?: string): string | undefined;
15
- export declare function convertDescription(description?: string): string;
16
- export declare function convertIdToNameTitle(id: number): Translatable;
17
- export declare function b2a(a: string): string;
18
- export declare function a2b(a: string): string;
19
- export declare function lowercase(string: string): string;
20
- export declare function convertTimestampToISOString(timestamp: number): string;
21
- export declare function daysBetweenDates(first: string | Date, second: string | Date): number;
22
- export declare function getUserLanguage(useCountryCode?: boolean): string;
23
- export declare function isEmpty(obj: any): boolean;
24
- export declare function isArray(array: unknown): boolean;
25
- export declare function getOption(array: Array<Option>, id: string | number): Option;
26
- export declare function ranId(length?: number): string;
27
- export declare function showDate(date: string | Date, offset?: number): string;
28
- export declare function showDay(days: string): string;
29
- export declare function showDates(fromDate: string, toDate: string, isDanishFormat?: boolean): string;
30
- export declare function showTime(time: string): string;
31
- export declare function showTimes(fromTime: string, toTime: string): string;
32
- export declare function showPrice(price: number, currency: string): string;
33
- export declare function convertToBoolean(prop: string | boolean): boolean;
34
- export declare function capitalized(title: string): string;
@@ -1,3 +0,0 @@
1
- export * from './entries/availability'
2
- import _default from './entries/availability'
3
- export default _default
@@ -1,5 +0,0 @@
1
- import { type App } from '../../vue/dist/vue.runtime.esm-bundler.js';
2
- declare const Lib: {
3
- install: (app: App) => void;
4
- };
5
- export default Lib;
@@ -1,2 +0,0 @@
1
- declare const app: import('../../vue/dist/vue.runtime.esm-bundler.js').App<Element>;
2
- export default app;
@@ -1,5 +0,0 @@
1
- import { type App } from '../../vue/dist/vue.runtime.esm-bundler.js';
2
- declare const Lib: {
3
- install: (app: App) => void;
4
- };
5
- export default Lib;
@@ -1,5 +0,0 @@
1
- import { type App } from '../../vue/dist/vue.runtime.esm-bundler.js';
2
- declare const Lib: {
3
- install: (app: App) => void;
4
- };
5
- export default Lib;
@@ -1,5 +0,0 @@
1
- import { type App } from '../../vue/dist/vue.runtime.esm-bundler.js';
2
- declare const Lib: {
3
- install: (app: App) => void;
4
- };
5
- export default Lib;
@@ -1 +0,0 @@
1
- export {};
File without changes
@@ -1,358 +0,0 @@
1
- var I = (M, B, v) => new Promise((y, p) => {
2
- var m = (l) => {
3
- try {
4
- o(v.next(l));
5
- } catch (P) {
6
- p(P);
7
- }
8
- }, t = (l) => {
9
- try {
10
- o(v.throw(l));
11
- } catch (P) {
12
- p(P);
13
- }
14
- }, o = (l) => l.done ? y(l.value) : Promise.resolve(l.value).then(m, t);
15
- o((v = v.apply(M, B)).next());
16
- });
17
- import { d as Ge, u as Ue, s as ue, a as _e, b as qe, c as Ke, r as u, E as d, e as Q, f as a, O as ie, S as H, g as xe, h as $, i as F, j as S } from "./SelectField.vue_vue_type_style_index_0_lang-XwPp5AXD.js";
18
- const He = Ge("event", () => {
19
- const M = Ue(), { voucher: B } = ue(_e()), { display: v } = qe(), { bearerToken: y } = ue(Ke()), p = u({}), m = u({}), t = u(void 0), o = u(!0), l = u(d.InitialState), P = u(/* @__PURE__ */ new Date()), O = u(NaN), R = u(1), w = u(NaN), J = u(NaN), N = u(""), V = Q("konnectio_name", "", void 0, { serializer: H.string }), L = Q("konnectio_phone", "", void 0, { serializer: H.string }), G = Q("konnectio_email", "", void 0, { serializer: H.string }), W = u(""), A = u({}), b = u({}), U = u("");
20
- function s(e) {
21
- return e.templateID !== void 0;
22
- }
23
- const ve = a(() => p.value.currency), ce = a(() => p.value.maxNumberPerBooking), de = a(() => p.value.title), pe = a(() => p.value.subtitle), ge = a(() => p.value.slideshow), C = a(() => P.value.toISOString()), me = a(() => s(t.value)), _ = a(() => s(t.value) ? t.value.numberOfDays : R.value), fe = a(() => s(t.value) ? t.value.packageCount : 0), he = a(() => s(t.value) ? t.value.fromDate : ""), D = a(() => m.value.events.find((e) => e.id === w.value)), ye = a(() => D.value ? D.value.length : void 0), X = a(() => s(t.value) ? t.value.templateID : 0), be = a(() => m.value.events), ke = a(() => m.value.templates), De = a(() => m.value.events.length > 0), Ie = a(() => m.value.templates.length > 0), Y = a(() => D.value && D.value.eventRateType ? D.value.eventRateType : ie.None), q = a(() => {
24
- if (!s(t.value))
25
- return t.value;
26
- }), Z = a(() => {
27
- if (q.value !== void 0) {
28
- const e = q.value.find(
29
- (n) => n.time === N.value
30
- );
31
- if (e && e.price)
32
- return e.price;
33
- }
34
- return 0;
35
- }), ee = a(() => {
36
- if (s(t.value))
37
- return t.value.templateCounts;
38
- }), Se = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
39
- function K(e, n, i) {
40
- var f, T;
41
- let g = 0;
42
- if (s(t.value)) {
43
- const h = t.value.templateCounts[i];
44
- if (h) {
45
- const c = h.addons, k = A.value[`${n}.${e}.${i}`] || 0;
46
- if (k > 0) {
47
- const r = c == null ? void 0 : c.find((z) => z.addonID === e), E = typeof k == "boolean" ? 1 : k;
48
- g += xe(r == null ? void 0 : r.price, r == null ? void 0 : r.quantityStrategy, _.value, h.adultPerRoom) * E;
49
- }
50
- }
51
- } else {
52
- const h = b.value[e] || 0;
53
- if (h > 0) {
54
- const c = (T = (f = D.value) == null ? void 0 : f.products) == null ? void 0 : T.find((k) => k.productID === e);
55
- c && (g += c.price * h);
56
- }
57
- }
58
- return g;
59
- }
60
- function x(e, n) {
61
- let i = 0;
62
- if (s(t.value))
63
- for (const g in A.value) {
64
- const f = g.split(".");
65
- parseInt(f[0]) === e && parseInt(f[2]) === n && (i += K(parseInt(f[1]), e, n));
66
- }
67
- else
68
- for (const g in b.value)
69
- i += K(parseInt(g)) * R.value;
70
- return i;
71
- }
72
- const te = a(() => s(t.value) && t.value.totalPrice || 0), Pe = a(() => {
73
- if (s(t.value))
74
- return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
75
- (e, n, i) => e + x(n, i),
76
- te.value
77
- ) || 0;
78
- {
79
- let e = x();
80
- return e += Z.value, e;
81
- }
82
- }), we = a(() => s(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ae = a(() => s(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ce = a(() => {
83
- const e = b.value;
84
- let n = 0;
85
- for (const i in e)
86
- n += Number.isNaN(e[i]) ? 0 : e[i];
87
- return n > 0;
88
- }), ae = a(() => s(t.value) ? !1 : Object.keys(b.value).length > 0), Ee = a(() => !!(V.value !== "" && G.value !== "" && L.value.length >= 5 && (!ae.value || Ce.value) && (!(!s(t.value) && Y.value !== ie.FullDayEvent) || N.value !== "")));
89
- function Fe(e) {
90
- return l.value === d.ReservationState && w.value === e && o.value;
91
- }
92
- const Ne = a(() => !(l.value === d.InitialState && o.value)), Te = a(() => !(l.value === d.AvailabilityState && o.value)), $e = a(() => t.value !== void 0), Oe = a(() => l.value === d.PaymentState && o.value);
93
- function ne() {
94
- return I(this, null, function* () {
95
- try {
96
- const e = (yield F.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
97
- params: {
98
- language: $()
99
- },
100
- headers: {
101
- Authorization: y.value,
102
- "Fresh-Booking-Ver": "4.0.56-rc5"
103
- }
104
- })).data;
105
- p.value = e, oe();
106
- } catch (e) {
107
- v({
108
- message: S.t("alert.error.couldntFetchMetadata"),
109
- type: "warning"
110
- });
111
- }
112
- });
113
- }
114
- function oe() {
115
- return I(this, null, function* () {
116
- l.value = d.AvailabilityState, o.value = !0;
117
- try {
118
- const e = (yield F.get("https://production.hotel-service.konnectio.dk/api/event/restaurant-events", {
119
- params: {
120
- language: $(),
121
- date: C.value
122
- },
123
- headers: {
124
- Authorization: y.value,
125
- "Fresh-Booking-Ver": "4.0.56-rc5"
126
- }
127
- })).data;
128
- m.value = e, o.value = !1;
129
- } catch (e) {
130
- v({
131
- message: S.t("alert.error.couldntFetchListings"),
132
- type: "warning"
133
- });
134
- }
135
- });
136
- }
137
- function Re(e) {
138
- return I(this, null, function* () {
139
- l.value = d.ReservationState, o.value = !0;
140
- try {
141
- const n = (yield F.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-availability", {
142
- params: {
143
- language: $(),
144
- date: C.value,
145
- templateId: w.value,
146
- numberOfPeople: O.value
147
- },
148
- headers: {
149
- Authorization: y.value,
150
- "Fresh-Booking-Ver": "4.0.56-rc5"
151
- }
152
- })).data;
153
- n.templateCounts.length === 0 ? v({
154
- message: S.t("alert.error.eventNotAvailable"),
155
- type: "warning"
156
- }) : (t.value = n, e()), o.value = !1;
157
- } catch (n) {
158
- o.value = !1, l.value = d.AvailabilityState, v({
159
- message: S.t("alert.error.couldntFetchEvent"),
160
- type: "warning"
161
- });
162
- }
163
- });
164
- }
165
- function ze(e) {
166
- return I(this, null, function* () {
167
- l.value = d.ReservationState, o.value = !0;
168
- try {
169
- const n = (yield F.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
170
- params: {
171
- language: $(),
172
- date: C.value,
173
- numberOfPeople: O.value,
174
- eventId: w.value,
175
- tableGroupId: J.value
176
- },
177
- headers: {
178
- Authorization: y.value,
179
- "Fresh-Booking-Ver": "4.0.56-rc5"
180
- }
181
- })).data;
182
- t.value = n, o.value = !1, e();
183
- } catch (n) {
184
- o.value = !1, l.value = d.AvailabilityState, v({
185
- message: S.t("alert.error.couldntFetchEvent"),
186
- type: "warning"
187
- });
188
- }
189
- });
190
- }
191
- function Me() {
192
- return I(this, null, function* () {
193
- try {
194
- const e = (yield F.get("https://production.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
195
- params: {
196
- language: $(),
197
- date: C.value,
198
- discountCode: U.value
199
- },
200
- headers: {
201
- Authorization: y.value,
202
- "Fresh-Booking-Ver": "4.0.56-rc5"
203
- }
204
- })).data;
205
- console.log(e);
206
- } catch (e) {
207
- console.log(e), v({
208
- message: S.t("alert.error.discountCodeValidation"),
209
- type: "warning"
210
- });
211
- }
212
- });
213
- }
214
- function Be(e) {
215
- return I(this, null, function* () {
216
- var k;
217
- l.value = d.PaymentState, o.value = !0;
218
- const n = () => {
219
- o.value = !1, l.value = d.ReservationState, v({
220
- message: S.t("booking.other.errorMessage"),
221
- type: "warning"
222
- });
223
- };
224
- let i, g, f;
225
- const T = [];
226
- if (s(t.value))
227
- (k = ee.value) == null || k.forEach((r, E) => {
228
- const z = [];
229
- let le = 0;
230
- for (const se in A.value) {
231
- const j = se.split("."), re = A.value[se];
232
- parseInt(j[0]) === r.roomGroupID && parseInt(j[2]) === E && re > 0 && (z.push({
233
- id: le,
234
- addonID: parseInt(j[1]),
235
- quantity: re
236
- }), le++);
237
- }
238
- T.push({
239
- adultPerRoom: r.adultPerRoom,
240
- count: r.count,
241
- roomGroupID: r.roomGroupID,
242
- addons: z
243
- });
244
- }), i = {
245
- templateID: X.value,
246
- numberOfDays: R.value,
247
- templateCounts: T
248
- };
249
- else {
250
- g = [], f = N.value;
251
- for (const r in b.value) {
252
- const E = b.value[parseInt(r)];
253
- E > 0 && g.push({
254
- id: parseInt(r),
255
- quantity: E
256
- });
257
- }
258
- }
259
- let h = "https://production.hotel-service.konnectio.dk/api/v3/event/template-book";
260
- const c = {
261
- date: C.value,
262
- name: V.value,
263
- email: G.value,
264
- phone: L.value,
265
- remark: W.value,
266
- numberOfPeople: O.value,
267
- days: _.value,
268
- discountCode: U.value,
269
- giftCardCode: B.value,
270
- checkoutUrl: window.location.origin,
271
- privacyUrl: window.location.origin
272
- };
273
- s(t.value) ? c.templateGroup = i : (c.time = f, c.eventId = w.value, c.products = g, h = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), yield F.post(h, c, {
274
- headers: {
275
- Authorization: y.value,
276
- "Fresh-Booking-Ver": "4.0.56-rc5"
277
- }
278
- }).then((r) => {
279
- o.value = !1, M.pay({
280
- callback: e,
281
- response: r.data
282
- });
283
- }).catch(() => n());
284
- });
285
- }
286
- function Ve(e) {
287
- A.value = {}, b.value = {}, N.value = "", e();
288
- }
289
- function Le() {
290
- ne();
291
- }
292
- return {
293
- metaData: p,
294
- listingData: m,
295
- tableBasePrice: Z,
296
- availabilityData: t,
297
- isLoading: o,
298
- moduleState: l,
299
- searchDate: P,
300
- numberOfPeople: O,
301
- numberOfDays: R,
302
- eventId: w,
303
- tableGroupId: J,
304
- arrivalTime: N,
305
- addons: A,
306
- products: b,
307
- discountCode: U,
308
- name: V,
309
- phone: L,
310
- email: G,
311
- remark: W,
312
- isTemplateEvent: me,
313
- currency: ve,
314
- maxNumberOfPeople: ce,
315
- title: de,
316
- subtitle: pe,
317
- slideshow: ge,
318
- date: C,
319
- numberOfTotalDays: _,
320
- numberOfRooms: fe,
321
- fromDate: he,
322
- getEventData: D,
323
- length: ye,
324
- templateId: X,
325
- getEvents: be,
326
- getTemplates: ke,
327
- hasEvents: De,
328
- hasTemplates: Ie,
329
- basePrice: te,
330
- totalPrice: Pe,
331
- getTemplateData: ee,
332
- getEventTableData: q,
333
- roomUpgrade: Ae,
334
- weekendFee: we,
335
- hasProducts: ae,
336
- eventRateType: Y,
337
- isReservationFormFilled: Ee,
338
- isMetaDataAvailable: Ne,
339
- areListingsAvailable: Te,
340
- isAvailabilityDataAvailable: $e,
341
- isPaymentLoading: Oe,
342
- getEventImages: Se,
343
- isEventListingLoading: Fe,
344
- fetchMetaData: ne,
345
- fetchListings: oe,
346
- getTemplateAvailability: Re,
347
- getEventAvailability: ze,
348
- validateDiscountCode: Me,
349
- localAddonPrice: K,
350
- totalAddonPrice: x,
351
- createBooking: Be,
352
- reset: Ve,
353
- initialize: Le
354
- };
355
- });
356
- export {
357
- He as u
358
- };
Binary file
package/dist/event.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './entries/event'
2
- import _default from './entries/event'
3
- export default _default
@@ -1,3 +0,0 @@
1
- export * from './entries/gift-card-validation'
2
- import _default from './entries/gift-card-validation'
3
- export default _default
@@ -1,3 +0,0 @@
1
- export * from './entries/gift-card'
2
- import _default from './entries/gift-card'
3
- export default _default
package/dist/hotel.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './entries/hotel'
2
- import _default from './entries/hotel'
3
- export default _default
package/dist/hotel.js.br DELETED
Binary file
@@ -1,25 +0,0 @@
1
- import { KonnectioStyling } from '../types/index.js';
2
- interface LocalizedLink {
3
- [locale: string]: string;
4
- }
5
- declare const _default: import('../../vue/dist/vue.runtime.esm-bundler.js').DefineComponent<__VLS_TypePropsToRuntimeProps<{
6
- accessToken: string;
7
- eventLink?: string | LocalizedLink | undefined;
8
- hotelLink?: string | LocalizedLink | undefined;
9
- styling?: Partial<KonnectioStyling> | undefined;
10
- }>, {}, unknown, {}, {}, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.runtime.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../vue/dist/vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
- accessToken: string;
12
- eventLink?: string | LocalizedLink | undefined;
13
- hotelLink?: string | LocalizedLink | undefined;
14
- styling?: Partial<KonnectioStyling> | undefined;
15
- }>>>, {}, {}>;
16
- export default _default;
17
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
- type __VLS_TypePropsToRuntimeProps<T> = {
19
- [K in keyof T]-?: {} extends Pick<T, K> ? {
20
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
21
- } : {
22
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<T[K]>;
23
- required: true;
24
- };
25
- };
@@ -1,18 +0,0 @@
1
- import { KonnectioStyling } from '../types/index.js';
2
- declare const _default: import('../../vue/dist/vue.runtime.esm-bundler.js').DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- accessToken: string;
4
- styling?: KonnectioStyling | undefined;
5
- }>, {}, unknown, {}, {}, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.runtime.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../vue/dist/vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- accessToken: string;
7
- styling?: KonnectioStyling | undefined;
8
- }>>>, {}, {}>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<T[K]>;
16
- required: true;
17
- };
18
- };
@@ -1,32 +0,0 @@
1
- import { KonnectioStyling } from '../types/index.js';
2
- interface Props {
3
- accessToken: string;
4
- layout?: string;
5
- placeType?: string;
6
- styling?: Partial<KonnectioStyling>;
7
- }
8
- declare const _default: import('../../vue/dist/vue.runtime.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
- layout: string;
10
- }>, {}, unknown, {}, {}, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.runtime.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../vue/dist/vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
- layout: string;
12
- }>>>, {
13
- layout: string;
14
- }, {}>;
15
- export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToRuntimeProps<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
25
- type __VLS_WithDefaults<P, D> = {
26
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
- default: D[K];
28
- }> : P[K];
29
- };
30
- type __VLS_Prettify<T> = {
31
- [K in keyof T]: T[K];
32
- } & {};
@@ -1,18 +0,0 @@
1
- import { KonnectioStyling } from '../types/index.js';
2
- declare const _default: import('../../vue/dist/vue.runtime.esm-bundler.js').DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- accessToken: string;
4
- styling?: Partial<KonnectioStyling> | undefined;
5
- }>, {}, unknown, {}, {}, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.runtime.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../vue/dist/vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- accessToken: string;
7
- styling?: Partial<KonnectioStyling> | undefined;
8
- }>>>, {}, {}>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<T[K]>;
16
- required: true;
17
- };
18
- };
@@ -1,36 +0,0 @@
1
- import { BookingHeaderLayout, KonnectioStyling } from '../types/index.js';
2
- type hotelOnlyShow = 'everything' | 'rooms' | 'packages';
3
- interface Props {
4
- accessToken: string;
5
- headerLayout?: BookingHeaderLayout;
6
- onlyShow?: hotelOnlyShow;
7
- styling?: Partial<KonnectioStyling>;
8
- }
9
- declare const _default: import('../../vue/dist/vue.runtime.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
- headerLayout: BookingHeaderLayout;
11
- onlyShow: string;
12
- }>, {}, unknown, {}, {}, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.runtime.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../vue/dist/vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
- headerLayout: BookingHeaderLayout;
14
- onlyShow: string;
15
- }>>>, {
16
- headerLayout: BookingHeaderLayout;
17
- onlyShow: hotelOnlyShow;
18
- }, {}>;
19
- export default _default;
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToRuntimeProps<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
- type __VLS_WithDefaults<P, D> = {
30
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
- default: D[K];
32
- }> : P[K];
33
- };
34
- type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
@@ -1,39 +0,0 @@
1
- import { metaDataType } from '../types/index.js';
2
- declare const _default: __VLS_WithTemplateSlots<import('../../vue/dist/vue.runtime.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- accessToken: string;
4
- type?: metaDataType | undefined;
5
- }>, {
6
- type: string;
7
- }>, {}, unknown, {}, {}, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../vue/dist/vue.runtime.esm-bundler.js').VNodeProps & import('../../vue/dist/vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../vue/dist/vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../vue/dist/vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- accessToken: string;
9
- type?: metaDataType | undefined;
10
- }>, {
11
- type: string;
12
- }>>>, {
13
- type: metaDataType;
14
- }, {}>, {
15
- default?(_: {}): any;
16
- }>;
17
- export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('../../vue/dist/vue.runtime.esm-bundler.js').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
- type __VLS_WithDefaults<P, D> = {
28
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
- default: D[K];
30
- }> : P[K];
31
- };
32
- type __VLS_Prettify<T> = {
33
- [K in keyof T]: T[K];
34
- } & {};
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1 +0,0 @@
1
- export * from './entries/navigation'
@@ -1,5 +0,0 @@
1
- import { Translations } from '../types/index.js';
2
- declare const instance: import("vue-i18n").I18n<{}, {}, {}, string, false>;
3
- export default instance;
4
- export declare const i18n: import("vue-i18n").Composer<{}, {}, {}, string, never, string>;
5
- export declare function setupI18n(translations: Translations): void;
@@ -1 +0,0 @@
1
- export * from './entries/polyfill'