@konnectio/core 4.0.56-rc2 → 4.0.56-rc3

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 (130) hide show
  1. package/dist/{ActionField-Qf4JAgBa.js → ActionField-9I-yAskc.js} +1 -1
  2. package/dist/ActionField-9I-yAskc.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-GPTCv3Xy.js → AvailabilitySkeleton-hoauL0os.js} +4 -4
  4. package/dist/AvailabilitySkeleton-hoauL0os.js.br +0 -0
  5. package/dist/{CheckoutWindow-S9xKe_Wf.js → CheckoutWindow-31th413C.js} +1 -1
  6. package/dist/CheckoutWindow-31th413C.js.br +0 -0
  7. package/dist/Container-gHSYMY7q.js +69 -0
  8. package/dist/Container-gHSYMY7q.js.br +0 -0
  9. package/dist/{DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js → DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js} +2919 -2911
  10. package/dist/DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js.br +0 -0
  11. package/dist/{Field-b7XkSAoi.js → Field-QHvFgmEq.js} +2 -2
  12. package/dist/Field-QHvFgmEq.js.br +0 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js → SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js} +4621 -4555
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js.br +0 -0
  15. package/dist/{ThankYou-LiiG3Zv1.js → ThankYou-SQ_bbgj4.js} +4389 -4325
  16. package/dist/ThankYou-SQ_bbgj4.js.br +0 -0
  17. package/dist/{_-FAlGPZqe.js → _-FedWhJCw.js} +1 -1
  18. package/dist/_commonjsHelpers-FF1eOqK0.js +8 -0
  19. package/dist/availability.js +8 -8
  20. package/dist/availability.js.br +0 -0
  21. package/dist/components/Alert.vue.d.ts +27 -4
  22. package/dist/components/Clickable.vue.d.ts +59 -4
  23. package/dist/components/Container.vue.d.ts +22 -4
  24. package/dist/components/ErrorMessage.vue.d.ts +14 -4
  25. package/dist/components/Gallery.vue.d.ts +30 -4
  26. package/dist/components/GoogleNotice.vue.d.ts +2 -4
  27. package/dist/components/Icon.vue.d.ts +37 -4
  28. package/dist/components/Loading.vue.d.ts +28 -4
  29. package/dist/components/Spinner.vue.d.ts +1 -3
  30. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +17 -4
  31. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +33 -4
  32. package/dist/components/forms/HotelReservationForm.vue.d.ts +41 -4
  33. package/dist/components/forms/MultiStepForm.vue.d.ts +42 -4
  34. package/dist/components/forms/ReservationForm.vue.d.ts +62 -5
  35. package/dist/components/forms/_.vue.d.ts +42 -4
  36. package/dist/components/inputs/Checkbox.vue.d.ts +54 -4
  37. package/dist/components/inputs/CheckboxField.vue.d.ts +28 -4
  38. package/dist/components/inputs/DateField.vue.d.ts +104 -5
  39. package/dist/components/inputs/InputField.vue.d.ts +61 -4
  40. package/dist/components/inputs/MediaSelector.vue.d.ts +42 -4
  41. package/dist/components/inputs/NumberField.vue.d.ts +87 -5
  42. package/dist/components/inputs/SelectField.vue.d.ts +90 -5
  43. package/dist/components/inputs/TextField.vue.d.ts +67 -4
  44. package/dist/components/inputs/TimeField.vue.d.ts +44 -5
  45. package/dist/components/inputs/grouped/ActionField.vue.d.ts +71 -4
  46. package/dist/components/inputs/grouped/CountryField.vue.d.ts +40 -4
  47. package/dist/components/inputs/grouped/NameField.vue.d.ts +70 -4
  48. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +50 -4
  49. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +46 -4
  50. package/dist/components/listings/Base.vue.d.ts +55 -5
  51. package/dist/components/listings/Event.vue.d.ts +46 -4
  52. package/dist/components/listings/Hotel.vue.d.ts +15 -4
  53. package/dist/components/listings/Template.vue.d.ts +20 -4
  54. package/dist/components/side-panels/Base.vue.d.ts +60 -5
  55. package/dist/components/side-panels/ListingInfo.vue.d.ts +17 -4
  56. package/dist/components/side-panels/Template.vue.d.ts +17 -4
  57. package/dist/components/side-panels/TermsOfService.vue.d.ts +13 -4
  58. package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +32 -4
  59. package/dist/components/skeletons/Field.vue.d.ts +35 -4
  60. package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +1 -4
  61. package/dist/components/skeletons/HotelSkeleton.vue.d.ts +1 -4
  62. package/dist/components/skeletons/Listing.vue.d.ts +1 -4
  63. package/dist/components/skeletons/Sidebar.vue.d.ts +1 -4
  64. package/dist/components/skeletons/_.vue.d.ts +35 -4
  65. package/dist/components/views/CheckoutWindow.vue.d.ts +1 -4
  66. package/dist/components/views/TermsOfService.vue.d.ts +1 -4
  67. package/dist/components/views/ThankYou.vue.d.ts +14 -4
  68. package/dist/entries/availability.d.ts +1 -1
  69. package/dist/entries/event.d.ts +1 -1
  70. package/dist/entries/gift-card-validation.d.ts +1 -1
  71. package/dist/entries/gift-card.d.ts +1 -1
  72. package/dist/entries/hotel.d.ts +1 -1
  73. package/dist/event-4kCWoqDL.js +359 -0
  74. package/dist/event-4kCWoqDL.js.br +0 -0
  75. package/dist/event.js +8 -8
  76. package/dist/event.js.br +0 -0
  77. package/dist/gift-card-validation.js +4 -4
  78. package/dist/gift-card-validation.js.br +0 -0
  79. package/dist/gift-card.js +281 -251
  80. package/dist/gift-card.js.br +0 -0
  81. package/dist/hotel.js +1636 -1581
  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 +67 -67
  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/package.json +4 -1
  101. package/dist/ActionField-Qf4JAgBa.js.br +0 -0
  102. package/dist/ActionField-ztW-1xka.cjs +0 -1
  103. package/dist/AvailabilitySkeleton-GPTCv3Xy.js.br +0 -0
  104. package/dist/AvailabilitySkeleton-v0QVPuim.cjs +0 -1
  105. package/dist/CheckoutWindow-NUwbNAPw.cjs +0 -1
  106. package/dist/CheckoutWindow-S9xKe_Wf.js.br +0 -0
  107. package/dist/Container-Fl2PKj-u.js +0 -59
  108. package/dist/Container-Fl2PKj-u.js.br +0 -0
  109. package/dist/Container-Y6_3uTWy.cjs +0 -1
  110. package/dist/DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs +0 -2
  111. package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js.br +0 -0
  112. package/dist/Field-UTbHMN9U.cjs +0 -1
  113. package/dist/Field-b7XkSAoi.js.br +0 -0
  114. package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js.br +0 -0
  115. package/dist/SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs +0 -851
  116. package/dist/ThankYou-LiiG3Zv1.js.br +0 -0
  117. package/dist/ThankYou-M6d4G8pc.cjs +0 -59
  118. package/dist/_-oL4OsiNw.cjs +0 -1
  119. package/dist/_commonjsHelpers-f3sTPFkQ.js +0 -8
  120. package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
  121. package/dist/availability.cjs +0 -2
  122. package/dist/event-GaUgVNzy.cjs +0 -1
  123. package/dist/event-MXmxvcpC.js +0 -329
  124. package/dist/event-MXmxvcpC.js.br +0 -0
  125. package/dist/event.cjs +0 -1
  126. package/dist/gift-card-validation.cjs +0 -1
  127. package/dist/gift-card.cjs +0 -1
  128. package/dist/hotel.cjs +0 -19
  129. package/dist/navigation.cjs +0 -1
  130. package/dist/polyfill.cjs +0 -4
@@ -1,5 +1,33 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/AvailabilitySkeleton.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/AvailabilitySkeleton.vue?vue&type=style&index=0&scoped=be195a3f&lang.scss";
3
- declare const _default: any;
1
+ type availabilityType = 'both' | 'hotel' | 'event';
2
+ interface Props {
3
+ view?: availabilityType;
4
+ hotel?: boolean;
5
+ }
6
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ view: string;
8
+ hotel: boolean;
9
+ }>, {}, unknown, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ view: string;
11
+ hotel: boolean;
12
+ }>>>, {
13
+ hotel: boolean;
14
+ view: availabilityType;
15
+ }, {}>;
4
16
  export default _default;
5
- //# sourceMappingURL=AvailabilitySkeleton.vue.d.ts.map
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.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('../../../vue.runtime.esm-bundler.js').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
@@ -1,5 +1,36 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/Field.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/Field.vue?vue&type=style&index=0&scoped=992f78a1&lang.scss";
3
- declare const _default: any;
1
+ interface Props {
2
+ withIcon?: boolean;
3
+ noLabel?: boolean;
4
+ isTextArea?: boolean;
5
+ }
6
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ withIcon: boolean;
8
+ noLabel: boolean;
9
+ isTextArea: boolean;
10
+ }>, {}, unknown, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ withIcon: boolean;
12
+ noLabel: boolean;
13
+ isTextArea: boolean;
14
+ }>>>, {
15
+ withIcon: boolean;
16
+ noLabel: boolean;
17
+ isTextArea: boolean;
18
+ }, {}>;
4
19
  export default _default;
5
- //# sourceMappingURL=Field.vue.d.ts.map
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.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('../../../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,5 +1,2 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/GiftCardSkeleton.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/GiftCardSkeleton.vue?vue&type=style&index=0&scoped=e35c75b3&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- //# sourceMappingURL=GiftCardSkeleton.vue.d.ts.map
@@ -1,5 +1,2 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/HotelSkeleton.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/HotelSkeleton.vue?vue&type=style&index=0&scoped=49e83cbb&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- //# sourceMappingURL=HotelSkeleton.vue.d.ts.map
@@ -1,5 +1,2 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/Listing.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/Listing.vue?vue&type=style&index=0&scoped=c7574b59&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- //# sourceMappingURL=Listing.vue.d.ts.map
@@ -1,5 +1,2 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/Sidebar.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/Sidebar.vue?vue&type=style&index=0&scoped=a1b9bdc5&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- //# sourceMappingURL=Sidebar.vue.d.ts.map
@@ -1,5 +1,36 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/skeletons/_.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/skeletons/_.vue?vue&type=style&index=0&scoped=9a3e9892&lang.scss";
3
- declare const _default: any;
1
+ interface Props {
2
+ height?: string;
3
+ width?: string;
4
+ borderRadius?: string;
5
+ }
6
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
+ height: string;
8
+ width: string;
9
+ borderRadius: string;
10
+ }>, {}, unknown, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ height: string;
12
+ width: string;
13
+ borderRadius: string;
14
+ }>>>, {
15
+ width: string;
16
+ height: string;
17
+ borderRadius: string;
18
+ }, {}>;
4
19
  export default _default;
5
- //# sourceMappingURL=_.vue.d.ts.map
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.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('../../../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,5 +1,2 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/views/CheckoutWindow.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/views/CheckoutWindow.vue?vue&type=style&index=0&scoped=340cb9ce&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- //# sourceMappingURL=CheckoutWindow.vue.d.ts.map
@@ -1,5 +1,2 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/views/TermsOfService.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/views/TermsOfService.vue?vue&type=style&index=0&scoped=d712958a&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- //# sourceMappingURL=TermsOfService.vue.d.ts.map
@@ -1,5 +1,15 @@
1
- export * from "G:/.projects/konnectio-integration-core/src/components/views/ThankYou.vue?vue&type=script&setup=true&lang.ts";
2
- import "G:/.projects/konnectio-integration-core/src/components/views/ThankYou.vue?vue&type=style&index=0&scoped=86500fde&lang.scss";
3
- declare const _default: any;
1
+ declare const _default: import('../../../vue.runtime.esm-bundler.js').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ message: string;
3
+ }>, {}, unknown, {}, {}, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, import('../../../vue.runtime.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue.runtime.esm-bundler.js').VNodeProps & import('../../../vue.runtime.esm-bundler.js').AllowedComponentProps & import('../../../vue.runtime.esm-bundler.js').ComponentCustomProps, Readonly<import('../../../vue.runtime.esm-bundler.js').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ message: string;
5
+ }>>>, {}, {}>;
4
6
  export default _default;
5
- //# sourceMappingURL=ThankYou.vue.d.ts.map
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('../../../vue.runtime.esm-bundler.js').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('../../../vue.runtime.esm-bundler.js').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -1,4 +1,4 @@
1
- import { type App } from '../../https:/unpkg.com/vue@3.3.10/dist/vue.esm-browser.prod.js';
1
+ import { type App } from '../../vue.runtime.esm-bundler.js';
2
2
  declare const Lib: {
3
3
  install: (app: App) => void;
4
4
  };
@@ -1,2 +1,2 @@
1
- declare const app: import('../../https:/unpkg.com/vue@3.3.10/dist/vue.esm-browser.prod.js').App<Element>;
1
+ declare const app: import('../../vue.runtime.esm-bundler.js').App<Element>;
2
2
  export default app;
@@ -1,4 +1,4 @@
1
- import { type App } from '../../https:/unpkg.com/vue@3.3.10/dist/vue.esm-browser.prod.js';
1
+ import { type App } from '../../vue.runtime.esm-bundler.js';
2
2
  declare const Lib: {
3
3
  install: (app: App) => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type App } from '../../https:/unpkg.com/vue@3.3.10/dist/vue.esm-browser.prod.js';
1
+ import { type App } from '../../vue.runtime.esm-bundler.js';
2
2
  declare const Lib: {
3
3
  install: (app: App) => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type App } from '../../https:/unpkg.com/vue@3.3.10/dist/vue.esm-browser.prod.js';
1
+ import { type App } from '../../vue.runtime.esm-bundler.js';
2
2
  declare const Lib: {
3
3
  install: (app: App) => void;
4
4
  };
@@ -0,0 +1,359 @@
1
+ var I = (M, B, v) => new Promise((y, p) => {
2
+ var g = (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(g, 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, E as d, e as Q, O as ie, S as H, g as xe, f as $, h as F, i as S } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
18
+ import { ref as u, computed as a } from "vue";
19
+ const Je = Ge("event", () => {
20
+ const M = Ue(), { voucher: B } = ue(_e()), { display: v } = qe(), { bearerToken: y } = ue(Ke()), p = u({}), g = 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("");
21
+ function r(e) {
22
+ return e.templateID !== void 0;
23
+ }
24
+ const ve = a(() => p.value.currency), ce = a(() => p.value.maxNumberPerBooking), de = a(() => p.value.title), pe = a(() => p.value.subtitle), me = a(() => p.value.slideshow), C = a(() => P.value.toISOString()), ge = a(() => r(t.value)), _ = a(() => r(t.value) ? t.value.numberOfDays : R.value), fe = a(() => r(t.value) ? t.value.packageCount : 0), he = a(() => r(t.value) ? t.value.fromDate : ""), D = a(() => g.value.events.find((e) => e.id === w.value)), ye = a(() => D.value ? D.value.length : void 0), X = a(() => r(t.value) ? t.value.templateID : 0), be = a(() => g.value.events), ke = a(() => g.value.templates), De = a(() => g.value.events.length > 0), Ie = a(() => g.value.templates.length > 0), Y = a(() => D.value && D.value.eventRateType ? D.value.eventRateType : ie.None), q = a(() => {
25
+ if (!r(t.value))
26
+ return t.value;
27
+ }), Z = a(() => {
28
+ if (q.value !== void 0) {
29
+ const e = q.value.find(
30
+ (n) => n.time === N.value
31
+ );
32
+ if (e && e.price)
33
+ return e.price;
34
+ }
35
+ return 0;
36
+ }), ee = a(() => {
37
+ if (r(t.value))
38
+ return t.value.templateCounts;
39
+ }), Se = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
40
+ function K(e, n, i) {
41
+ var f, T;
42
+ let m = 0;
43
+ if (r(t.value)) {
44
+ const h = t.value.templateCounts[i];
45
+ if (h) {
46
+ const c = h.addons, k = A.value[`${n}.${e}.${i}`] || 0;
47
+ if (k > 0) {
48
+ const s = c == null ? void 0 : c.find((z) => z.addonID === e), E = typeof k == "boolean" ? 1 : k;
49
+ m += xe(s == null ? void 0 : s.price, s == null ? void 0 : s.quantityStrategy, _.value, h.adultPerRoom) * E;
50
+ }
51
+ }
52
+ } else {
53
+ const h = b.value[e] || 0;
54
+ if (h > 0) {
55
+ const c = (T = (f = D.value) == null ? void 0 : f.products) == null ? void 0 : T.find((k) => k.productID === e);
56
+ c && (m += c.price * h);
57
+ }
58
+ }
59
+ return m;
60
+ }
61
+ function x(e, n) {
62
+ let i = 0;
63
+ if (r(t.value))
64
+ for (const m in A.value) {
65
+ const f = m.split(".");
66
+ parseInt(f[0]) === e && parseInt(f[2]) === n && (i += K(parseInt(f[1]), e, n));
67
+ }
68
+ else
69
+ for (const m in b.value)
70
+ i += K(parseInt(m)) * R.value;
71
+ return i;
72
+ }
73
+ const te = a(() => r(t.value) && t.value.totalPrice || 0), Pe = a(() => {
74
+ if (r(t.value))
75
+ return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
76
+ (e, n, i) => e + x(n, i),
77
+ te.value
78
+ ) || 0;
79
+ {
80
+ let e = x();
81
+ return e += Z.value, e;
82
+ }
83
+ }), we = a(() => r(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Ae = a(() => r(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ce = a(() => {
84
+ const e = b.value;
85
+ let n = 0;
86
+ for (const i in e)
87
+ n += Number.isNaN(e[i]) ? 0 : e[i];
88
+ return n > 0;
89
+ }), ae = a(() => r(t.value) ? !1 : Object.keys(b.value).length > 0), Ee = a(() => !!(V.value !== "" && G.value !== "" && L.value.length >= 5 && (!ae.value || Ce.value) && (!(!r(t.value) && Y.value !== ie.FullDayEvent) || N.value !== "")));
90
+ function Fe(e) {
91
+ return l.value === d.ReservationState && w.value === e && o.value;
92
+ }
93
+ 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);
94
+ function ne() {
95
+ return I(this, null, function* () {
96
+ try {
97
+ const e = (yield F.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
98
+ params: {
99
+ language: $()
100
+ },
101
+ headers: {
102
+ Authorization: y.value,
103
+ "Fresh-Booking-Ver": "4.0.56-rc3"
104
+ }
105
+ })).data;
106
+ p.value = e, oe();
107
+ } catch (e) {
108
+ v({
109
+ message: S.t("alert.error.couldntFetchMetadata"),
110
+ type: "warning"
111
+ });
112
+ }
113
+ });
114
+ }
115
+ function oe() {
116
+ return I(this, null, function* () {
117
+ l.value = d.AvailabilityState, o.value = !0;
118
+ try {
119
+ const e = (yield F.get("https://production.hotel-service.konnectio.dk/api/event/restaurant-events", {
120
+ params: {
121
+ language: $(),
122
+ date: C.value
123
+ },
124
+ headers: {
125
+ Authorization: y.value,
126
+ "Fresh-Booking-Ver": "4.0.56-rc3"
127
+ }
128
+ })).data;
129
+ g.value = e, o.value = !1;
130
+ } catch (e) {
131
+ v({
132
+ message: S.t("alert.error.couldntFetchListings"),
133
+ type: "warning"
134
+ });
135
+ }
136
+ });
137
+ }
138
+ function Re(e) {
139
+ return I(this, null, function* () {
140
+ l.value = d.ReservationState, o.value = !0;
141
+ try {
142
+ const n = (yield F.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-availability", {
143
+ params: {
144
+ language: $(),
145
+ date: C.value,
146
+ templateId: w.value,
147
+ numberOfPeople: O.value
148
+ },
149
+ headers: {
150
+ Authorization: y.value,
151
+ "Fresh-Booking-Ver": "4.0.56-rc3"
152
+ }
153
+ })).data;
154
+ n.templateCounts.length === 0 ? v({
155
+ message: S.t("alert.error.eventNotAvailable"),
156
+ type: "warning"
157
+ }) : (t.value = n, e()), o.value = !1;
158
+ } catch (n) {
159
+ o.value = !1, l.value = d.AvailabilityState, v({
160
+ message: S.t("alert.error.couldntFetchEvent"),
161
+ type: "warning"
162
+ });
163
+ }
164
+ });
165
+ }
166
+ function ze(e) {
167
+ return I(this, null, function* () {
168
+ l.value = d.ReservationState, o.value = !0;
169
+ try {
170
+ const n = (yield F.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
171
+ params: {
172
+ language: $(),
173
+ date: C.value,
174
+ numberOfPeople: O.value,
175
+ eventId: w.value,
176
+ tableGroupId: J.value
177
+ },
178
+ headers: {
179
+ Authorization: y.value,
180
+ "Fresh-Booking-Ver": "4.0.56-rc3"
181
+ }
182
+ })).data;
183
+ t.value = n, o.value = !1, e();
184
+ } catch (n) {
185
+ o.value = !1, l.value = d.AvailabilityState, v({
186
+ message: S.t("alert.error.couldntFetchEvent"),
187
+ type: "warning"
188
+ });
189
+ }
190
+ });
191
+ }
192
+ function Me() {
193
+ return I(this, null, function* () {
194
+ try {
195
+ const e = (yield F.get("https://production.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
196
+ params: {
197
+ language: $(),
198
+ date: C.value,
199
+ discountCode: U.value
200
+ },
201
+ headers: {
202
+ Authorization: y.value,
203
+ "Fresh-Booking-Ver": "4.0.56-rc3"
204
+ }
205
+ })).data;
206
+ console.log(e);
207
+ } catch (e) {
208
+ console.log(e), v({
209
+ message: S.t("alert.error.discountCodeValidation"),
210
+ type: "warning"
211
+ });
212
+ }
213
+ });
214
+ }
215
+ function Be(e) {
216
+ return I(this, null, function* () {
217
+ var k;
218
+ l.value = d.PaymentState, o.value = !0;
219
+ const n = () => {
220
+ o.value = !1, l.value = d.ReservationState, v({
221
+ message: S.t("booking.other.errorMessage"),
222
+ type: "warning"
223
+ });
224
+ };
225
+ let i, m, f;
226
+ const T = [];
227
+ if (r(t.value))
228
+ (k = ee.value) == null || k.forEach((s, E) => {
229
+ const z = [];
230
+ let le = 0;
231
+ for (const re in A.value) {
232
+ const j = re.split("."), se = A.value[re];
233
+ parseInt(j[0]) === s.roomGroupID && parseInt(j[2]) === E && se > 0 && (z.push({
234
+ id: le,
235
+ addonID: parseInt(j[1]),
236
+ quantity: se
237
+ }), le++);
238
+ }
239
+ T.push({
240
+ adultPerRoom: s.adultPerRoom,
241
+ count: s.count,
242
+ roomGroupID: s.roomGroupID,
243
+ addons: z
244
+ });
245
+ }), i = {
246
+ templateID: X.value,
247
+ numberOfDays: R.value,
248
+ templateCounts: T
249
+ };
250
+ else {
251
+ m = [], f = N.value;
252
+ for (const s in b.value) {
253
+ const E = b.value[parseInt(s)];
254
+ E > 0 && m.push({
255
+ id: parseInt(s),
256
+ quantity: E
257
+ });
258
+ }
259
+ }
260
+ let h = "https://production.hotel-service.konnectio.dk/api/v3/event/template-book";
261
+ const c = {
262
+ date: C.value,
263
+ name: V.value,
264
+ email: G.value,
265
+ phone: L.value,
266
+ remark: W.value,
267
+ numberOfPeople: O.value,
268
+ days: _.value,
269
+ discountCode: U.value,
270
+ giftCardCode: B.value,
271
+ checkoutUrl: window.location.origin,
272
+ privacyUrl: window.location.origin
273
+ };
274
+ r(t.value) ? c.templateGroup = i : (c.time = f, c.eventId = w.value, c.products = m, h = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), yield F.post(h, c, {
275
+ headers: {
276
+ Authorization: y.value,
277
+ "Fresh-Booking-Ver": "4.0.56-rc3"
278
+ }
279
+ }).then((s) => {
280
+ o.value = !1, M.pay({
281
+ callback: e,
282
+ response: s.data
283
+ });
284
+ }).catch(() => n());
285
+ });
286
+ }
287
+ function Ve(e) {
288
+ A.value = {}, b.value = {}, N.value = "", e();
289
+ }
290
+ function Le() {
291
+ ne();
292
+ }
293
+ return {
294
+ metaData: p,
295
+ listingData: g,
296
+ tableBasePrice: Z,
297
+ availabilityData: t,
298
+ isLoading: o,
299
+ moduleState: l,
300
+ searchDate: P,
301
+ numberOfPeople: O,
302
+ numberOfDays: R,
303
+ eventId: w,
304
+ tableGroupId: J,
305
+ arrivalTime: N,
306
+ addons: A,
307
+ products: b,
308
+ discountCode: U,
309
+ name: V,
310
+ phone: L,
311
+ email: G,
312
+ remark: W,
313
+ isTemplateEvent: ge,
314
+ currency: ve,
315
+ maxNumberOfPeople: ce,
316
+ title: de,
317
+ subtitle: pe,
318
+ slideshow: me,
319
+ date: C,
320
+ numberOfTotalDays: _,
321
+ numberOfRooms: fe,
322
+ fromDate: he,
323
+ getEventData: D,
324
+ length: ye,
325
+ templateId: X,
326
+ getEvents: be,
327
+ getTemplates: ke,
328
+ hasEvents: De,
329
+ hasTemplates: Ie,
330
+ basePrice: te,
331
+ totalPrice: Pe,
332
+ getTemplateData: ee,
333
+ getEventTableData: q,
334
+ roomUpgrade: Ae,
335
+ weekendFee: we,
336
+ hasProducts: ae,
337
+ eventRateType: Y,
338
+ isReservationFormFilled: Ee,
339
+ isMetaDataAvailable: Ne,
340
+ areListingsAvailable: Te,
341
+ isAvailabilityDataAvailable: $e,
342
+ isPaymentLoading: Oe,
343
+ getEventImages: Se,
344
+ isEventListingLoading: Fe,
345
+ fetchMetaData: ne,
346
+ fetchListings: oe,
347
+ getTemplateAvailability: Re,
348
+ getEventAvailability: ze,
349
+ validateDiscountCode: Me,
350
+ localAddonPrice: K,
351
+ totalAddonPrice: x,
352
+ createBooking: Be,
353
+ reset: Ve,
354
+ initialize: Le
355
+ };
356
+ });
357
+ export {
358
+ Je as u
359
+ };
Binary file
package/dist/event.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ge, ref as ze, computed as Qe, openBlock as t, createBlock as b, unref as e, createSlots as We, withCtx as g, createVNode as r, createElementVNode as l, toDisplayString as n, createElementBlock as i, createCommentVNode as u, onMounted as Ye, watch as je, isRef as w, Fragment as V, renderList as D, createTextVNode as ie, pushScopeId as He, popScopeId as Je, createApp as Ke } from "vue";
2
- import { l as ke, b as Xe, s as Y, c as he, B as Ze, n as k, v as Ge, w as re, x as ue, y as xe, o as $, _ as ye, m as el, L as de, O as me, k as G, T as pe, z as ll, A as x, p as ce, q as nl, t as tl, D as ol } from "./SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js";
3
- import { B as al, M as sl, R as il, T as rl, x as ul } from "./ThankYou-LiiG3Zv1.js";
4
- import { u as j } from "./event-MXmxvcpC.js";
5
- import { A as dl } from "./ActionField-Qf4JAgBa.js";
6
- import { P as ml, C as ve, a as pl } from "./CheckoutWindow-S9xKe_Wf.js";
7
- import { _ as cl } from "./DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js";
8
- import "./_commonjsHelpers-f3sTPFkQ.js";
9
- import "./_-FAlGPZqe.js";
2
+ import { l as ke, b as Xe, s as Y, c as he, B as Ze, n as k, v as Ge, w as re, x as ue, y as xe, o as $, _ as ye, m as el, L as de, O as me, k as G, T as pe, z as ll, A as x, p as ce, q as nl, t as tl, D as ol } from "./SelectField.vue_vue_type_style_index_0_lang-j_yHB51P.js";
3
+ import { B as al, M as sl, R as il, T as rl, x as ul } from "./ThankYou-SQ_bbgj4.js";
4
+ import { u as j } from "./event-4kCWoqDL.js";
5
+ import { A as dl } from "./ActionField-9I-yAskc.js";
6
+ import { P as ml, C as ve, a as pl } from "./CheckoutWindow-31th413C.js";
7
+ import { _ as cl } from "./DateField.vue_vue_type_style_index_0_lang-mpnWj2LD.js";
8
+ import "./_commonjsHelpers-FF1eOqK0.js";
9
+ import "./_-FedWhJCw.js";
10
10
  const vl = { class: "fresh-booking-event-listing-information" }, bl = { key: 0 }, gl = { key: 1 }, kl = /* @__PURE__ */ ge({
11
11
  __name: "Event",
12
12
  props: {
package/dist/event.js.br CHANGED
Binary file
@@ -1,8 +1,8 @@
1
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-30hJu8vr.js";
3
- import { A as R } from "./ActionField-Qf4JAgBa.js";
4
- import { C as q } from "./Container-Fl2PKj-u.js";
5
- import "./_commonjsHelpers-f3sTPFkQ.js";
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
6
  const F = (i) => (T("data-v-5af38302"), i = i(), x(), i), j = ["innerHTML"], z = {
7
7
  key: 0,
8
8
  id: "fresh-booking-gift-card-validation-resume",
Binary file