@konnectio/core 4.0.56-rc2 → 4.0.56-rc21
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.
- package/dist/{ActionField-Qf4JAgBa.js → ActionField-mMYGNb-7.js} +29 -30
- package/dist/ActionField-mMYGNb-7.js.br +0 -0
- package/dist/AvailabilitySkeleton-iD7Vbt5K.js +215 -0
- package/dist/AvailabilitySkeleton-iD7Vbt5K.js.br +0 -0
- package/dist/{CheckoutWindow-S9xKe_Wf.js → CheckoutWindow-T32YH60g.js} +37 -38
- package/dist/CheckoutWindow-T32YH60g.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js +7607 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js.br +0 -0
- package/dist/ErrorMessage-4GwDZEsl.js +36 -0
- package/dist/ErrorMessage-4GwDZEsl.js.br +0 -0
- package/dist/EventAvailabilityForm-jvxOZKWx.js +366 -0
- package/dist/EventAvailabilityForm-jvxOZKWx.js.br +0 -0
- package/dist/{Field-b7XkSAoi.js → Field-EqFBeBE_.js} +11 -13
- package/dist/Field-EqFBeBE_.js.br +0 -0
- package/dist/{ThankYou-LiiG3Zv1.js → ThankYou-pu1PDfhl.js} +4772 -5989
- package/dist/ThankYou-pu1PDfhl.js.br +0 -0
- package/dist/_--L3VvP-p.js +30301 -0
- package/dist/_--L3VvP-p.js.br +0 -0
- package/dist/availability.js +80 -147
- package/dist/availability.js.br +0 -0
- package/dist/event.js +342 -529
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +92 -57
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +272 -259
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.js +1658 -1518
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.js +3201 -3210
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +34 -25
- package/dist/ActionField-Qf4JAgBa.js.br +0 -0
- package/dist/ActionField-ztW-1xka.cjs +0 -1
- package/dist/AvailabilitySkeleton-GPTCv3Xy.js +0 -242
- package/dist/AvailabilitySkeleton-GPTCv3Xy.js.br +0 -0
- package/dist/AvailabilitySkeleton-v0QVPuim.cjs +0 -1
- package/dist/CheckoutWindow-NUwbNAPw.cjs +0 -1
- package/dist/CheckoutWindow-S9xKe_Wf.js.br +0 -0
- package/dist/Container-Fl2PKj-u.js +0 -59
- package/dist/Container-Fl2PKj-u.js.br +0 -0
- package/dist/Container-Y6_3uTWy.cjs +0 -1
- package/dist/DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs +0 -2
- package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js +0 -8559
- package/dist/DateField.vue_vue_type_style_index_0_lang-iz9zEBOR.js.br +0 -0
- package/dist/Field-UTbHMN9U.cjs +0 -1
- package/dist/Field-b7XkSAoi.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js +0 -21406
- package/dist/SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs +0 -851
- package/dist/ThankYou-LiiG3Zv1.js.br +0 -0
- package/dist/ThankYou-M6d4G8pc.cjs +0 -59
- package/dist/_-FAlGPZqe.js +0 -20
- package/dist/_-oL4OsiNw.cjs +0 -1
- package/dist/_commonjsHelpers-f52AuuUj.cjs +0 -1
- package/dist/assets/typescript/mixins.d.ts +0 -34
- package/dist/availability.cjs +0 -2
- package/dist/availability.d.ts +0 -3
- package/dist/components/Alert.vue.d.ts +0 -5
- package/dist/components/Alert.vue.d.ts.map +0 -1
- package/dist/components/Clickable.vue.d.ts +0 -5
- package/dist/components/Clickable.vue.d.ts.map +0 -1
- package/dist/components/Container.vue.d.ts +0 -5
- package/dist/components/Container.vue.d.ts.map +0 -1
- package/dist/components/ErrorMessage.vue.d.ts +0 -5
- package/dist/components/ErrorMessage.vue.d.ts.map +0 -1
- package/dist/components/Gallery.vue.d.ts +0 -5
- package/dist/components/Gallery.vue.d.ts.map +0 -1
- package/dist/components/GoogleNotice.vue.d.ts +0 -4
- package/dist/components/GoogleNotice.vue.d.ts.map +0 -1
- package/dist/components/Icon.vue.d.ts +0 -5
- package/dist/components/Icon.vue.d.ts.map +0 -1
- package/dist/components/Loading.vue.d.ts +0 -5
- package/dist/components/Loading.vue.d.ts.map +0 -1
- package/dist/components/Spinner.vue.d.ts +0 -4
- package/dist/components/Spinner.vue.d.ts.map +0 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +0 -5
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +0 -5
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +0 -1
- package/dist/components/forms/HotelReservationForm.vue.d.ts +0 -4
- package/dist/components/forms/HotelReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +0 -5
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +0 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +0 -6
- package/dist/components/forms/ReservationForm.vue.d.ts.map +0 -1
- package/dist/components/forms/_.vue.d.ts +0 -4
- package/dist/components/forms/_.vue.d.ts.map +0 -1
- package/dist/components/inputs/Checkbox.vue.d.ts +0 -5
- package/dist/components/inputs/Checkbox.vue.d.ts.map +0 -1
- package/dist/components/inputs/CheckboxField.vue.d.ts +0 -5
- package/dist/components/inputs/CheckboxField.vue.d.ts.map +0 -1
- package/dist/components/inputs/DateField.vue.d.ts +0 -5
- package/dist/components/inputs/DateField.vue.d.ts.map +0 -1
- package/dist/components/inputs/InputField.vue.d.ts +0 -5
- package/dist/components/inputs/InputField.vue.d.ts.map +0 -1
- package/dist/components/inputs/MediaSelector.vue.d.ts +0 -5
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +0 -1
- package/dist/components/inputs/NumberField.vue.d.ts +0 -5
- package/dist/components/inputs/NumberField.vue.d.ts.map +0 -1
- package/dist/components/inputs/SelectField.vue.d.ts +0 -5
- package/dist/components/inputs/SelectField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TextField.vue.d.ts +0 -5
- package/dist/components/inputs/TextField.vue.d.ts.map +0 -1
- package/dist/components/inputs/TimeField.vue.d.ts +0 -5
- package/dist/components/inputs/TimeField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/NameField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +0 -1
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +0 -5
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +0 -1
- package/dist/components/listings/Base.vue.d.ts +0 -6
- package/dist/components/listings/Base.vue.d.ts.map +0 -1
- package/dist/components/listings/Event.vue.d.ts +0 -5
- package/dist/components/listings/Event.vue.d.ts.map +0 -1
- package/dist/components/listings/Hotel.vue.d.ts +0 -5
- package/dist/components/listings/Hotel.vue.d.ts.map +0 -1
- package/dist/components/listings/Template.vue.d.ts +0 -5
- package/dist/components/listings/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Base.vue.d.ts +0 -6
- package/dist/components/side-panels/Base.vue.d.ts.map +0 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +0 -5
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +0 -1
- package/dist/components/side-panels/Template.vue.d.ts +0 -5
- package/dist/components/side-panels/Template.vue.d.ts.map +0 -1
- package/dist/components/side-panels/TermsOfService.vue.d.ts +0 -5
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +0 -5
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Field.vue.d.ts +0 -5
- package/dist/components/skeletons/Field.vue.d.ts.map +0 -1
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +0 -5
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +0 -5
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Listing.vue.d.ts +0 -5
- package/dist/components/skeletons/Listing.vue.d.ts.map +0 -1
- package/dist/components/skeletons/Sidebar.vue.d.ts +0 -5
- package/dist/components/skeletons/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/skeletons/_.vue.d.ts +0 -5
- package/dist/components/skeletons/_.vue.d.ts.map +0 -1
- package/dist/components/views/CheckoutWindow.vue.d.ts +0 -5
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +0 -1
- package/dist/components/views/TermsOfService.vue.d.ts +0 -5
- package/dist/components/views/TermsOfService.vue.d.ts.map +0 -1
- package/dist/components/views/ThankYou.vue.d.ts +0 -5
- package/dist/components/views/ThankYou.vue.d.ts.map +0 -1
- package/dist/entries/availability.d.ts +0 -5
- package/dist/entries/event.d.ts +0 -2
- package/dist/entries/gift-card-validation.d.ts +0 -5
- package/dist/entries/gift-card.d.ts +0 -5
- package/dist/entries/hotel.d.ts +0 -5
- package/dist/entries/navigation.d.ts +0 -1
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-GaUgVNzy.cjs +0 -1
- package/dist/event-MXmxvcpC.js +0 -329
- package/dist/event-MXmxvcpC.js.br +0 -0
- package/dist/event.cjs +0 -1
- package/dist/event.d.ts +0 -3
- package/dist/gift-card-validation.cjs +0 -1
- package/dist/gift-card-validation.d.ts +0 -3
- package/dist/gift-card.cjs +0 -1
- package/dist/gift-card.d.ts +0 -3
- package/dist/hotel.cjs +0 -19
- package/dist/hotel.d.ts +0 -3
- package/dist/layouts/Availability.vue.d.ts +0 -25
- package/dist/layouts/Event.vue.d.ts +0 -18
- package/dist/layouts/GiftCard.vue.d.ts +0 -32
- package/dist/layouts/GiftCardValidation.vue.d.ts +0 -18
- package/dist/layouts/Hotel.vue.d.ts +0 -36
- package/dist/layouts/_.vue.d.ts +0 -39
- package/dist/navigation.cjs +0 -1
- package/dist/navigation.d.ts +0 -1
- package/dist/plugins/i18n.d.ts +0 -5
- package/dist/polyfill.cjs +0 -4
- package/dist/polyfill.d.ts +0 -1
- package/dist/store/alert.d.ts +0 -28
- package/dist/store/applyGiftCard.d.ts +0 -28
- package/dist/store/availability.d.ts +0 -40
- package/dist/store/event.d.ts +0 -683
- package/dist/store/giftCard.d.ts +0 -83
- package/dist/store/payment.d.ts +0 -139
- package/dist/store/recaptcha.d.ts +0 -28
- package/dist/store/tracking.d.ts +0 -57
- package/dist/store/utilities.d.ts +0 -350
- package/dist/types/index.d.ts +0 -976
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from "G:/.projects/konnectio-integration-core/src/components/side-panels/ListingInfo.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "G:/.projects/konnectio-integration-core/src/components/side-panels/ListingInfo.vue?vue&type=style&index=0&scoped=857d8d36&lang.scss";
|
|
3
|
-
declare const _default: any;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=ListingInfo.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListingInfo.vue.d.ts","sourceRoot":"","sources":["../../../src/components/side-panels/ListingInfo.vue"],"names":[],"mappings":"AACA,cAAc,uHAAuH,CAAC;AACtI,OAAO,qIAAqI,CAAC;;AAE7I,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from "G:/.projects/konnectio-integration-core/src/components/side-panels/Template.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "G:/.projects/konnectio-integration-core/src/components/side-panels/Template.vue?vue&type=style&index=0&scoped=4c035ea3&lang.scss";
|
|
3
|
-
declare const _default: any;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=Template.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Template.vue.d.ts","sourceRoot":"","sources":["../../../src/components/side-panels/Template.vue"],"names":[],"mappings":"AACA,cAAc,oHAAoH,CAAC;AACnI,OAAO,kIAAkI,CAAC;;AAE1I,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export * from "G:/.projects/konnectio-integration-core/src/components/side-panels/TermsOfService.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "G:/.projects/konnectio-integration-core/src/components/side-panels/TermsOfService.vue?vue&type=style&index=0&scoped=82aaf990&lang.scss";
|
|
3
|
-
declare const _default: any;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=TermsOfService.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TermsOfService.vue.d.ts","sourceRoot":"","sources":["../../../src/components/side-panels/TermsOfService.vue"],"names":[],"mappings":"AACA,cAAc,0HAA0H,CAAC;AACzI,OAAO,wIAAwI,CAAC;;AAEhJ,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=AvailabilitySkeleton.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvailabilitySkeleton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/AvailabilitySkeleton.vue"],"names":[],"mappings":"AACA,cAAc,8HAA8H,CAAC;AAC7I,OAAO,4IAA4I,CAAC;;AAEpJ,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=Field.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Field.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/Field.vue"],"names":[],"mappings":"AACA,cAAc,+GAA+G,CAAC;AAC9H,OAAO,6HAA6H,CAAC;;AAErI,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=GiftCardSkeleton.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GiftCardSkeleton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/GiftCardSkeleton.vue"],"names":[],"mappings":"AACA,cAAc,0HAA0H,CAAC;AACzI,OAAO,wIAAwI,CAAC;;AAEhJ,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=HotelSkeleton.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HotelSkeleton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/HotelSkeleton.vue"],"names":[],"mappings":"AACA,cAAc,uHAAuH,CAAC;AACtI,OAAO,qIAAqI,CAAC;;AAE7I,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=Listing.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Listing.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/Listing.vue"],"names":[],"mappings":"AACA,cAAc,iHAAiH,CAAC;AAChI,OAAO,+HAA+H,CAAC;;AAEvI,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=Sidebar.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/Sidebar.vue"],"names":[],"mappings":"AACA,cAAc,iHAAiH,CAAC;AAChI,OAAO,+HAA+H,CAAC;;AAEvI,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=_.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_.vue.d.ts","sourceRoot":"","sources":["../../../src/components/skeletons/_.vue"],"names":[],"mappings":"AACA,cAAc,2GAA2G,CAAC;AAC1H,OAAO,yHAAyH,CAAC;;AAEjI,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=CheckoutWindow.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutWindow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/views/CheckoutWindow.vue"],"names":[],"mappings":"AACA,cAAc,oHAAoH,CAAC;AACnI,OAAO,kIAAkI,CAAC;;AAE1I,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=TermsOfService.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TermsOfService.vue.d.ts","sourceRoot":"","sources":["../../../src/components/views/TermsOfService.vue"],"names":[],"mappings":"AACA,cAAc,oHAAoH,CAAC;AACnI,OAAO,kIAAkI,CAAC;;AAE1I,wBAA0F"}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=ThankYou.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThankYou.vue.d.ts","sourceRoot":"","sources":["../../../src/components/views/ThankYou.vue"],"names":[],"mappings":"AACA,cAAc,8GAA8G,CAAC;AAC7H,OAAO,4HAA4H,CAAC;;AAEpI,wBAA0F"}
|
package/dist/entries/event.d.ts
DELETED
package/dist/entries/hotel.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
package/dist/event-GaUgVNzy.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs"),t=require("vue"),Te=a.defineStore("event",()=>{const Y=a.usePaymentStore(),{voucher:Z}=a.storeToRefs(a.useApplyGiftCardStore()),{display:f}=a.useAlertStore(),{bearerToken:b}=a.storeToRefs(a.useUtilityStore()),d=t.ref({}),h=t.ref({}),o=t.ref(void 0),l=t.ref(!0),i=t.ref(a.EventModuleState.InitialState),_=t.ref(new Date),A=t.ref(NaN),w=t.ref(1),k=t.ref(NaN),L=t.ref(NaN),P=t.ref(""),M=a.useStorage("konnectio_name","",void 0,{serializer:a.StorageSerializers.string}),C=a.useStorage("konnectio_phone","",void 0,{serializer:a.StorageSerializers.string}),T=a.useStorage("konnectio_email","",void 0,{serializer:a.StorageSerializers.string}),U=t.ref(""),D=t.ref({}),p=t.ref({}),$=t.ref("");function u(e){return e.templateID!==void 0}const ee=t.computed(()=>d.value.currency),te=t.computed(()=>d.value.maxNumberPerBooking),ae=t.computed(()=>d.value.title),oe=t.computed(()=>d.value.subtitle),ne=t.computed(()=>d.value.slideshow),I=t.computed(()=>_.value.toISOString()),ue=t.computed(()=>u(o.value)),F=t.computed(()=>u(o.value)?o.value.numberOfDays:w.value),le=t.computed(()=>u(o.value)?o.value.packageCount:0),re=t.computed(()=>u(o.value)?o.value.fromDate:""),y=t.computed(()=>h.value.events.find(e=>e.id===k.value)),se=t.computed(()=>y.value?y.value.length:void 0),B=t.computed(()=>u(o.value)?o.value.templateID:0),ie=t.computed(()=>h.value.events),ce=t.computed(()=>h.value.templates),ve=t.computed(()=>h.value.events.length>0),de=t.computed(()=>h.value.templates.length>0),G=t.computed(()=>y.value&&y.value.eventRateType?y.value.eventRateType:a.OctopusEventRateType.None),R=t.computed(()=>{if(!u(o.value))return o.value}),V=t.computed(()=>{if(R.value!==void 0){const e=R.value.find(n=>n.time===P.value);if(e&&e.price)return e.price}return 0}),q=t.computed(()=>{if(u(o.value))return o.value.templateCounts}),pe=t.computed(()=>e=>d.value.eventImages.filter(n=>n.eventID===e));function N(e,n,r){let c=0;if(u(o.value)){const s=o.value.templateCounts[r];if(s){const S=s.addons,m=D.value[`${n}.${e}.${r}`]||0;if(m>0){const g=S?.find(E=>E.addonID===e),v=typeof m=="boolean"?1:m;c+=a.getQuantityStrategyPrice(g?.price,g?.quantityStrategy,F.value,s.adultPerRoom)*v}}}else{const s=p.value[e]||0;if(s>0){const S=y.value?.products?.find(m=>m.productID===e);S&&(c+=S.price*s)}}return c}function O(e,n){let r=0;if(u(o.value))for(const c in D.value){const s=c.split(".");parseInt(s[0])===e&&parseInt(s[2])===n&&(r+=N(parseInt(s[1]),e,n))}else for(const c in p.value)r+=N(parseInt(c))*w.value;return r}const x=t.computed(()=>u(o.value)&&o.value.totalPrice||0),me=t.computed(()=>{if(u(o.value))return o.value.templateCounts===void 0?NaN:o.value.templateCounts.flatMap(e=>e.roomGroupID).reduce((e,n,r)=>e+O(n,r),x.value)||0;{let e=O();return e+=V.value,e}}),ge=t.computed(()=>u(o.value)&&o.value.templateCounts!==void 0&&o.value.templateCounts.flatMap(e=>e.weekendFee).reduce((e,n)=>e+n,0)||0),fe=t.computed(()=>u(o.value)&&o.value.templateCounts!==void 0&&o.value.templateCounts.flatMap(e=>e.roomUpgrade).reduce((e,n)=>e+n,0)||0),he=t.computed(()=>{const e=p.value;let n=0;for(const r in e)n+=Number.isNaN(e[r])?0:e[r];return n>0}),K=t.computed(()=>u(o.value)?!1:Object.keys(p.value).length>0),ye=t.computed(()=>!!(M.value!==""&&T.value!==""&&C.value.length>=5&&(!K.value||he.value)&&(!(!u(o.value)&&G.value!==a.OctopusEventRateType.FullDayEvent)||P.value!=="")));function Se(e){return i.value===a.EventModuleState.ReservationState&&k.value===e&&l.value}const be=t.computed(()=>!(i.value===a.EventModuleState.InitialState&&l.value)),ke=t.computed(()=>!(i.value===a.EventModuleState.AvailabilityState&&l.value)),De=t.computed(()=>o.value!==void 0),Ie=t.computed(()=>i.value===a.EventModuleState.PaymentState&&l.value);async function j(){try{const e=(await a.axios.get("https://production.hotel-service.konnectio.dk/api/event/metadata",{params:{language:a.getUserLanguage()},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.56-rc2"}})).data;d.value=e,Q()}catch{f({message:a.i18n.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function Q(){i.value=a.EventModuleState.AvailabilityState,l.value=!0;try{const e=(await a.axios.get("https://production.hotel-service.konnectio.dk/api/event/restaurant-events",{params:{language:a.getUserLanguage(),date:I.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.56-rc2"}})).data;h.value=e,l.value=!1}catch{f({message:a.i18n.t("alert.error.couldntFetchListings"),type:"warning"})}}async function Ee(e){i.value=a.EventModuleState.ReservationState,l.value=!0;try{const n=(await a.axios.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-availability",{params:{language:a.getUserLanguage(),date:I.value,templateId:k.value,numberOfPeople:A.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.56-rc2"}})).data;n.templateCounts.length===0?f({message:a.i18n.t("alert.error.eventNotAvailable"),type:"warning"}):(o.value=n,e()),l.value=!1}catch{l.value=!1,i.value=a.EventModuleState.AvailabilityState,f({message:a.i18n.t("alert.error.couldntFetchEvent"),type:"warning"})}}async function Pe(e){i.value=a.EventModuleState.ReservationState,l.value=!0;try{const n=(await a.axios.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-table-availability",{params:{language:a.getUserLanguage(),date:I.value,numberOfPeople:A.value,eventId:k.value,tableGroupId:L.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.56-rc2"}})).data;o.value=n,l.value=!1,e()}catch{l.value=!1,i.value=a.EventModuleState.AvailabilityState,f({message:a.i18n.t("alert.error.couldntFetchEvent"),type:"warning"})}}async function Ae(){try{const e=(await a.axios.get("https://production.hotel-service.konnectio.dk/api/v3/event/validate-discount-code",{params:{language:a.getUserLanguage(),date:I.value,discountCode:$.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.56-rc2"}})).data;console.log(e)}catch(e){console.log(e),f({message:a.i18n.t("alert.error.discountCodeValidation"),type:"warning"})}}async function we(e){i.value=a.EventModuleState.PaymentState,l.value=!0;const n=()=>{l.value=!1,i.value=a.EventModuleState.ReservationState,f({message:a.i18n.t("booking.other.errorMessage"),type:"warning"})};let r,c,s;const S=[];if(u(o.value))q.value?.forEach((v,E)=>{const H=[];let J=0;for(const W in D.value){const z=W.split("."),X=D.value[W];parseInt(z[0])===v.roomGroupID&&parseInt(z[2])===E&&X>0&&(H.push({id:J,addonID:parseInt(z[1]),quantity:X}),J++)}S.push({adultPerRoom:v.adultPerRoom,count:v.count,roomGroupID:v.roomGroupID,addons:H})}),r={templateID:B.value,numberOfDays:w.value,templateCounts:S};else{c=[],s=P.value;for(const v in p.value){const E=p.value[parseInt(v)];E>0&&c.push({id:parseInt(v),quantity:E})}}let m="https://production.hotel-service.konnectio.dk/api/v3/event/template-book";const g={date:I.value,name:M.value,email:T.value,phone:C.value,remark:U.value,numberOfPeople:A.value,days:F.value,discountCode:$.value,giftCardCode:Z.value,checkoutUrl:window.location.origin,privacyUrl:window.location.origin};u(o.value)?g.templateGroup=r:(g.time=s,g.eventId=k.value,g.products=c,m="https://production.hotel-service.konnectio.dk/api/v3/event/event-book"),await a.axios.post(m,g,{headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.56-rc2"}}).then(v=>{l.value=!1,Y.pay({callback:e,response:v.data})}).catch(()=>n())}function Me(e){D.value={},p.value={},P.value="",e()}function Ce(){j()}return{metaData:d,listingData:h,tableBasePrice:V,availabilityData:o,isLoading:l,moduleState:i,searchDate:_,numberOfPeople:A,numberOfDays:w,eventId:k,tableGroupId:L,arrivalTime:P,addons:D,products:p,discountCode:$,name:M,phone:C,email:T,remark:U,isTemplateEvent:ue,currency:ee,maxNumberOfPeople:te,title:ae,subtitle:oe,slideshow:ne,date:I,numberOfTotalDays:F,numberOfRooms:le,fromDate:re,getEventData:y,length:se,templateId:B,getEvents:ie,getTemplates:ce,hasEvents:ve,hasTemplates:de,basePrice:x,totalPrice:me,getTemplateData:q,getEventTableData:R,roomUpgrade:fe,weekendFee:ge,hasProducts:K,eventRateType:G,isReservationFormFilled:ye,isMetaDataAvailable:be,areListingsAvailable:ke,isAvailabilityDataAvailable:De,isPaymentLoading:Ie,getEventImages:pe,isEventListingLoading:Se,fetchMetaData:j,fetchListings:Q,getTemplateAvailability:Ee,getEventAvailability:Pe,validateDiscountCode:Ae,localAddonPrice:N,totalAddonPrice:O,createBooking:we,reset:Me,initialize:Ce}});exports.useEventStore=Te;
|
package/dist/event-MXmxvcpC.js
DELETED
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { d as Ge, u as Ve, s as oe, a as Le, b as Ue, c as _e, E as v, e as U, O as le, S as _, g as qe, f as F, h as C, i as D } from "./SelectField.vue_vue_type_style_index_0_lang-30hJu8vr.js";
|
|
2
|
-
import { ref as r, computed as a } from "vue";
|
|
3
|
-
const je = Ge("event", () => {
|
|
4
|
-
const re = Ve(), { voucher: se } = oe(Le()), { display: h } = Ue(), { bearerToken: I } = oe(_e()), p = r({}), y = r({}), t = r(void 0), l = r(!0), i = r(v.InitialState), q = r(/* @__PURE__ */ new Date()), N = r(NaN), T = r(1), S = r(NaN), K = r(NaN), E = r(""), $ = U("konnectio_name", "", void 0, { serializer: _.string }), O = U("konnectio_phone", "", void 0, { serializer: _.string }), R = U("konnectio_email", "", void 0, { serializer: _.string }), x = r(""), P = r({}), m = r({}), z = r("");
|
|
5
|
-
function o(e) {
|
|
6
|
-
return e.templateID !== void 0;
|
|
7
|
-
}
|
|
8
|
-
const ue = a(() => p.value.currency), ie = a(() => p.value.maxNumberPerBooking), ve = a(() => p.value.title), ce = a(() => p.value.subtitle), de = a(() => p.value.slideshow), A = a(() => q.value.toISOString()), pe = a(() => o(t.value)), M = a(() => o(t.value) ? t.value.numberOfDays : T.value), me = a(() => o(t.value) ? t.value.packageCount : 0), ge = a(() => o(t.value) ? t.value.fromDate : ""), b = a(() => y.value.events.find((e) => e.id === S.value)), fe = a(() => b.value ? b.value.length : void 0), j = a(() => o(t.value) ? t.value.templateID : 0), he = a(() => y.value.events), ye = a(() => y.value.templates), be = a(() => y.value.events.length > 0), ke = a(() => y.value.templates.length > 0), Q = a(() => b.value && b.value.eventRateType ? b.value.eventRateType : le.None), B = a(() => {
|
|
9
|
-
if (!o(t.value))
|
|
10
|
-
return t.value;
|
|
11
|
-
}), H = a(() => {
|
|
12
|
-
if (B.value !== void 0) {
|
|
13
|
-
const e = B.value.find(
|
|
14
|
-
(n) => n.time === E.value
|
|
15
|
-
);
|
|
16
|
-
if (e && e.price)
|
|
17
|
-
return e.price;
|
|
18
|
-
}
|
|
19
|
-
return 0;
|
|
20
|
-
}), J = a(() => {
|
|
21
|
-
if (o(t.value))
|
|
22
|
-
return t.value.templateCounts;
|
|
23
|
-
}), De = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
|
|
24
|
-
function G(e, n, s) {
|
|
25
|
-
let c = 0;
|
|
26
|
-
if (o(t.value)) {
|
|
27
|
-
const u = t.value.templateCounts[s];
|
|
28
|
-
if (u) {
|
|
29
|
-
const k = u.addons, g = P.value[`${n}.${e}.${s}`] || 0;
|
|
30
|
-
if (g > 0) {
|
|
31
|
-
const f = k?.find((w) => w.addonID === e), d = typeof g == "boolean" ? 1 : g;
|
|
32
|
-
c += qe(f?.price, f?.quantityStrategy, M.value, u.adultPerRoom) * d;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
} else {
|
|
36
|
-
const u = m.value[e] || 0;
|
|
37
|
-
if (u > 0) {
|
|
38
|
-
const k = b.value?.products?.find((g) => g.productID === e);
|
|
39
|
-
k && (c += k.price * u);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return c;
|
|
43
|
-
}
|
|
44
|
-
function V(e, n) {
|
|
45
|
-
let s = 0;
|
|
46
|
-
if (o(t.value))
|
|
47
|
-
for (const c in P.value) {
|
|
48
|
-
const u = c.split(".");
|
|
49
|
-
parseInt(u[0]) === e && parseInt(u[2]) === n && (s += G(parseInt(u[1]), e, n));
|
|
50
|
-
}
|
|
51
|
-
else
|
|
52
|
-
for (const c in m.value)
|
|
53
|
-
s += G(parseInt(c)) * T.value;
|
|
54
|
-
return s;
|
|
55
|
-
}
|
|
56
|
-
const W = a(() => o(t.value) && t.value.totalPrice || 0), Ie = a(() => {
|
|
57
|
-
if (o(t.value))
|
|
58
|
-
return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
|
|
59
|
-
(e, n, s) => e + V(n, s),
|
|
60
|
-
W.value
|
|
61
|
-
) || 0;
|
|
62
|
-
{
|
|
63
|
-
let e = V();
|
|
64
|
-
return e += H.value, e;
|
|
65
|
-
}
|
|
66
|
-
}), Se = a(() => o(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.weekendFee).reduce((e, n) => e + n, 0) || 0), Pe = a(() => o(t.value) && t.value.templateCounts !== void 0 && t.value.templateCounts.flatMap((e) => e.roomUpgrade).reduce((e, n) => e + n, 0) || 0), Ae = a(() => {
|
|
67
|
-
const e = m.value;
|
|
68
|
-
let n = 0;
|
|
69
|
-
for (const s in e)
|
|
70
|
-
n += Number.isNaN(e[s]) ? 0 : e[s];
|
|
71
|
-
return n > 0;
|
|
72
|
-
}), X = a(() => o(t.value) ? !1 : Object.keys(m.value).length > 0), we = a(() => !!($.value !== "" && R.value !== "" && O.value.length >= 5 && (!X.value || Ae.value) && (!(!o(t.value) && Q.value !== le.FullDayEvent) || E.value !== "")));
|
|
73
|
-
function Ce(e) {
|
|
74
|
-
return i.value === v.ReservationState && S.value === e && l.value;
|
|
75
|
-
}
|
|
76
|
-
const Ee = a(() => !(i.value === v.InitialState && l.value)), Fe = a(() => !(i.value === v.AvailabilityState && l.value)), Ne = a(() => t.value !== void 0), Te = a(() => i.value === v.PaymentState && l.value);
|
|
77
|
-
async function Y() {
|
|
78
|
-
try {
|
|
79
|
-
const e = (await C.get("https://production.hotel-service.konnectio.dk/api/event/metadata", {
|
|
80
|
-
params: {
|
|
81
|
-
language: F()
|
|
82
|
-
},
|
|
83
|
-
headers: {
|
|
84
|
-
Authorization: I.value,
|
|
85
|
-
"Fresh-Booking-Ver": "4.0.56-rc2"
|
|
86
|
-
}
|
|
87
|
-
})).data;
|
|
88
|
-
p.value = e, Z();
|
|
89
|
-
} catch {
|
|
90
|
-
h({
|
|
91
|
-
message: D.t("alert.error.couldntFetchMetadata"),
|
|
92
|
-
type: "warning"
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
async function Z() {
|
|
97
|
-
i.value = v.AvailabilityState, l.value = !0;
|
|
98
|
-
try {
|
|
99
|
-
const e = (await C.get("https://production.hotel-service.konnectio.dk/api/event/restaurant-events", {
|
|
100
|
-
params: {
|
|
101
|
-
language: F(),
|
|
102
|
-
date: A.value
|
|
103
|
-
},
|
|
104
|
-
headers: {
|
|
105
|
-
Authorization: I.value,
|
|
106
|
-
"Fresh-Booking-Ver": "4.0.56-rc2"
|
|
107
|
-
}
|
|
108
|
-
})).data;
|
|
109
|
-
y.value = e, l.value = !1;
|
|
110
|
-
} catch {
|
|
111
|
-
h({
|
|
112
|
-
message: D.t("alert.error.couldntFetchListings"),
|
|
113
|
-
type: "warning"
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
async function $e(e) {
|
|
118
|
-
i.value = v.ReservationState, l.value = !0;
|
|
119
|
-
try {
|
|
120
|
-
const n = (await C.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-availability", {
|
|
121
|
-
params: {
|
|
122
|
-
language: F(),
|
|
123
|
-
date: A.value,
|
|
124
|
-
templateId: S.value,
|
|
125
|
-
numberOfPeople: N.value
|
|
126
|
-
},
|
|
127
|
-
headers: {
|
|
128
|
-
Authorization: I.value,
|
|
129
|
-
"Fresh-Booking-Ver": "4.0.56-rc2"
|
|
130
|
-
}
|
|
131
|
-
})).data;
|
|
132
|
-
n.templateCounts.length === 0 ? h({
|
|
133
|
-
message: D.t("alert.error.eventNotAvailable"),
|
|
134
|
-
type: "warning"
|
|
135
|
-
}) : (t.value = n, e()), l.value = !1;
|
|
136
|
-
} catch {
|
|
137
|
-
l.value = !1, i.value = v.AvailabilityState, h({
|
|
138
|
-
message: D.t("alert.error.couldntFetchEvent"),
|
|
139
|
-
type: "warning"
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
async function Oe(e) {
|
|
144
|
-
i.value = v.ReservationState, l.value = !0;
|
|
145
|
-
try {
|
|
146
|
-
const n = (await C.get("https://production.hotel-service.konnectio.dk/api/v3/event/get-table-availability", {
|
|
147
|
-
params: {
|
|
148
|
-
language: F(),
|
|
149
|
-
date: A.value,
|
|
150
|
-
numberOfPeople: N.value,
|
|
151
|
-
eventId: S.value,
|
|
152
|
-
tableGroupId: K.value
|
|
153
|
-
},
|
|
154
|
-
headers: {
|
|
155
|
-
Authorization: I.value,
|
|
156
|
-
"Fresh-Booking-Ver": "4.0.56-rc2"
|
|
157
|
-
}
|
|
158
|
-
})).data;
|
|
159
|
-
t.value = n, l.value = !1, e();
|
|
160
|
-
} catch {
|
|
161
|
-
l.value = !1, i.value = v.AvailabilityState, h({
|
|
162
|
-
message: D.t("alert.error.couldntFetchEvent"),
|
|
163
|
-
type: "warning"
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
async function Re() {
|
|
168
|
-
try {
|
|
169
|
-
const e = (await C.get("https://production.hotel-service.konnectio.dk/api/v3/event/validate-discount-code", {
|
|
170
|
-
params: {
|
|
171
|
-
language: F(),
|
|
172
|
-
date: A.value,
|
|
173
|
-
discountCode: z.value
|
|
174
|
-
},
|
|
175
|
-
headers: {
|
|
176
|
-
Authorization: I.value,
|
|
177
|
-
"Fresh-Booking-Ver": "4.0.56-rc2"
|
|
178
|
-
}
|
|
179
|
-
})).data;
|
|
180
|
-
console.log(e);
|
|
181
|
-
} catch (e) {
|
|
182
|
-
console.log(e), h({
|
|
183
|
-
message: D.t("alert.error.discountCodeValidation"),
|
|
184
|
-
type: "warning"
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
async function ze(e) {
|
|
189
|
-
i.value = v.PaymentState, l.value = !0;
|
|
190
|
-
const n = () => {
|
|
191
|
-
l.value = !1, i.value = v.ReservationState, h({
|
|
192
|
-
message: D.t("booking.other.errorMessage"),
|
|
193
|
-
type: "warning"
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
let s, c, u;
|
|
197
|
-
const k = [];
|
|
198
|
-
if (o(t.value))
|
|
199
|
-
J.value?.forEach((d, w) => {
|
|
200
|
-
const ee = [];
|
|
201
|
-
let te = 0;
|
|
202
|
-
for (const ae in P.value) {
|
|
203
|
-
const L = ae.split("."), ne = P.value[ae];
|
|
204
|
-
parseInt(L[0]) === d.roomGroupID && parseInt(L[2]) === w && ne > 0 && (ee.push({
|
|
205
|
-
id: te,
|
|
206
|
-
addonID: parseInt(L[1]),
|
|
207
|
-
quantity: ne
|
|
208
|
-
}), te++);
|
|
209
|
-
}
|
|
210
|
-
k.push({
|
|
211
|
-
adultPerRoom: d.adultPerRoom,
|
|
212
|
-
count: d.count,
|
|
213
|
-
roomGroupID: d.roomGroupID,
|
|
214
|
-
addons: ee
|
|
215
|
-
});
|
|
216
|
-
}), s = {
|
|
217
|
-
templateID: j.value,
|
|
218
|
-
numberOfDays: T.value,
|
|
219
|
-
templateCounts: k
|
|
220
|
-
};
|
|
221
|
-
else {
|
|
222
|
-
c = [], u = E.value;
|
|
223
|
-
for (const d in m.value) {
|
|
224
|
-
const w = m.value[parseInt(d)];
|
|
225
|
-
w > 0 && c.push({
|
|
226
|
-
id: parseInt(d),
|
|
227
|
-
quantity: w
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
let g = "https://production.hotel-service.konnectio.dk/api/v3/event/template-book";
|
|
232
|
-
const f = {
|
|
233
|
-
date: A.value,
|
|
234
|
-
name: $.value,
|
|
235
|
-
email: R.value,
|
|
236
|
-
phone: O.value,
|
|
237
|
-
remark: x.value,
|
|
238
|
-
numberOfPeople: N.value,
|
|
239
|
-
days: M.value,
|
|
240
|
-
discountCode: z.value,
|
|
241
|
-
giftCardCode: se.value,
|
|
242
|
-
checkoutUrl: window.location.origin,
|
|
243
|
-
privacyUrl: window.location.origin
|
|
244
|
-
};
|
|
245
|
-
o(t.value) ? f.templateGroup = s : (f.time = u, f.eventId = S.value, f.products = c, g = "https://production.hotel-service.konnectio.dk/api/v3/event/event-book"), await C.post(g, f, {
|
|
246
|
-
headers: {
|
|
247
|
-
Authorization: I.value,
|
|
248
|
-
"Fresh-Booking-Ver": "4.0.56-rc2"
|
|
249
|
-
}
|
|
250
|
-
}).then((d) => {
|
|
251
|
-
l.value = !1, re.pay({
|
|
252
|
-
callback: e,
|
|
253
|
-
response: d.data
|
|
254
|
-
});
|
|
255
|
-
}).catch(() => n());
|
|
256
|
-
}
|
|
257
|
-
function Me(e) {
|
|
258
|
-
P.value = {}, m.value = {}, E.value = "", e();
|
|
259
|
-
}
|
|
260
|
-
function Be() {
|
|
261
|
-
Y();
|
|
262
|
-
}
|
|
263
|
-
return {
|
|
264
|
-
metaData: p,
|
|
265
|
-
listingData: y,
|
|
266
|
-
tableBasePrice: H,
|
|
267
|
-
availabilityData: t,
|
|
268
|
-
isLoading: l,
|
|
269
|
-
moduleState: i,
|
|
270
|
-
searchDate: q,
|
|
271
|
-
numberOfPeople: N,
|
|
272
|
-
numberOfDays: T,
|
|
273
|
-
eventId: S,
|
|
274
|
-
tableGroupId: K,
|
|
275
|
-
arrivalTime: E,
|
|
276
|
-
addons: P,
|
|
277
|
-
products: m,
|
|
278
|
-
discountCode: z,
|
|
279
|
-
name: $,
|
|
280
|
-
phone: O,
|
|
281
|
-
email: R,
|
|
282
|
-
remark: x,
|
|
283
|
-
isTemplateEvent: pe,
|
|
284
|
-
currency: ue,
|
|
285
|
-
maxNumberOfPeople: ie,
|
|
286
|
-
title: ve,
|
|
287
|
-
subtitle: ce,
|
|
288
|
-
slideshow: de,
|
|
289
|
-
date: A,
|
|
290
|
-
numberOfTotalDays: M,
|
|
291
|
-
numberOfRooms: me,
|
|
292
|
-
fromDate: ge,
|
|
293
|
-
getEventData: b,
|
|
294
|
-
length: fe,
|
|
295
|
-
templateId: j,
|
|
296
|
-
getEvents: he,
|
|
297
|
-
getTemplates: ye,
|
|
298
|
-
hasEvents: be,
|
|
299
|
-
hasTemplates: ke,
|
|
300
|
-
basePrice: W,
|
|
301
|
-
totalPrice: Ie,
|
|
302
|
-
getTemplateData: J,
|
|
303
|
-
getEventTableData: B,
|
|
304
|
-
roomUpgrade: Pe,
|
|
305
|
-
weekendFee: Se,
|
|
306
|
-
hasProducts: X,
|
|
307
|
-
eventRateType: Q,
|
|
308
|
-
isReservationFormFilled: we,
|
|
309
|
-
isMetaDataAvailable: Ee,
|
|
310
|
-
areListingsAvailable: Fe,
|
|
311
|
-
isAvailabilityDataAvailable: Ne,
|
|
312
|
-
isPaymentLoading: Te,
|
|
313
|
-
getEventImages: De,
|
|
314
|
-
isEventListingLoading: Ce,
|
|
315
|
-
fetchMetaData: Y,
|
|
316
|
-
fetchListings: Z,
|
|
317
|
-
getTemplateAvailability: $e,
|
|
318
|
-
getEventAvailability: Oe,
|
|
319
|
-
validateDiscountCode: Re,
|
|
320
|
-
localAddonPrice: G,
|
|
321
|
-
totalAddonPrice: V,
|
|
322
|
-
createBooking: ze,
|
|
323
|
-
reset: Me,
|
|
324
|
-
initialize: Be
|
|
325
|
-
};
|
|
326
|
-
});
|
|
327
|
-
export {
|
|
328
|
-
je as u
|
|
329
|
-
};
|
|
Binary file
|
package/dist/event.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs"),C=require("./ThankYou-M6d4G8pc.cjs"),O=require("./event-GaUgVNzy.cjs"),Ve=require("./ActionField-ztW-1xka.cjs"),L=require("./CheckoutWindow-NUwbNAPw.cjs"),ve=require("./DateField.vue_vue_type_style_index_0_lang-hZTsLsOv.cjs");require("./_commonjsHelpers-f52AuuUj.cjs");require("./_-oL4OsiNw.cjs");const ye={class:"fresh-booking-event-listing-information"},Ee={key:0},be={key:1},Ne=e.defineComponent({__name:"Event",props:{name:{},type:{},description:{},fromDate:{},toDate:{},listingId:{},tableGroupId:{},days:{},timeFrom:{},timeTo:{},maxOnlineReservationLimit:{},minimumPersonCount:{},fromPrice:{},gallery:{},soldOut:{type:Boolean,default:!1},layout:{},trackingEnabled:{type:Boolean},callback:{}},setup(v){const{t:n}=t.useI18n(),u=v,{display:g}=t.useAlertStore(),{currency:P}=t.storeToRefs(t.useUtilityStore()),{maxNumberOfPeople:y,numberOfPeople:R,eventId:E,tableGroupId:B}=t.storeToRefs(O.useEventStore()),{getTemplateAvailability:_,getEventAvailability:D,isEventListingLoading:V}=O.useEventStore(),f=e.ref(0),T=e.computed(()=>V(u.listingId)),U=()=>{f.value>0?(E.value=u.listingId,R.value=f.value,_(u.callback)):g({type:"error",message:n("alert.error.selectPeople")})},c=()=>{f.value>0?(E.value=u.listingId,B.value=u.tableGroupId,R.value=f.value,D(u.callback)):g({type:"error",message:n("alert.error.selectPeople")})};return(o,d)=>(e.openBlock(),e.createBlock(C.Base,{"listing-id":o.listingId,gallery:o.gallery,name:o.name,description:o.description,layout:e.unref(t.BookingLayout).Event},e.createSlots({action:e.withCtx(()=>[e.createVNode(Ve.ActionField,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=b=>f.value=b),type:"number",label:e.unref(n)("event.numberOfGuests"),buttonLabel:o.soldOut?e.unref(n)("event.soldOut"):e.unref(n)("event.bookNowButton"),buttonDisabled:o.soldOut,"min-value":o.type==="event"?1:o.minimumPersonCount,"max-value":o.type==="event"?o.maxOnlineReservationLimit||1/0:e.unref(y),"is-loading":T.value,"onUpdate:isLoading":d[1]||(d[1]=b=>T.value=b),onAction:d[2]||(d[2]=b=>o.type==="event"?c():U())},null,8,["modelValue","label","buttonLabel","buttonDisabled","min-value","max-value","is-loading"])]),_:2},[o.type==="event"?{name:"description",fn:e.withCtx(()=>[e.createElementVNode("ul",ye,[e.createElementVNode("li",null,[e.createVNode(t.Icon,{icon:"calendar-range",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showDay)(o.days)),1)]),e.unref(t.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",Ee,[e.createVNode(t.Icon,{icon:"calendar-days",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showDates)(o.fromDate,o.toDate)),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",null,[e.createVNode(t.Icon,{icon:"calendar-clock",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showTimes)(o.timeFrom,o.timeTo)),1)]),o.maxOnlineReservationLimit?(e.openBlock(),e.createElementBlock("li",be,[e.createVNode(t.Icon,{icon:"user-alt",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(`1 - ${o.maxOnlineReservationLimit} ${e.unref(n)("general.people")}`),1)])):e.createCommentVNode("",!0)])]),key:"0"}:{name:"description",fn:e.withCtx(()=>[e.createElementVNode("ul",{class:"fresh-booking-event-listing-information"},[e.unref(t.daysBetweenDates)(o.fromDate,o.toDate)<180?(e.openBlock(),e.createElementBlock("li",{key:0},[e.createVNode(t.Icon,{icon:"calendar-days",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showDates)(o.fromDate,o.toDate,!0)),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",null,[e.createVNode(t.Icon,{icon:"user-alt",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(`${o.minimumPersonCount} - ${e.unref(y)} ${e.unref(n)("general.people")}`),1)]),e.createElementVNode("li",null,[e.createVNode(t.Icon,{icon:"money-bill",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(`${e.unref(n)("general.pricesFrom")} ${e.unref(t.showPrice)(o.fromPrice,e.unref(P))}`),1)])])]),key:"1"}]),1032,["listing-id","gallery","name","description","layout"]))}}),H=t._export_sfc(Ne,[["__scopeId","data-v-013d2269"]]),N=v=>(e.pushScopeId("data-v-b2eee97d"),v=v(),e.popScopeId(),v),he={class:"fresh-booking-panel"},Be={key:0,id:"fresh-booking-event-overview"},_e={class:"fresh-booking-event-listings"},De={class:"fresh-booking-event-listings"},Se={key:2,id:"fresh-booking-event-addons"},we={class:"fresh-booking-table"},Ce=N(()=>e.createElementVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),Pe={class:"fresh-booking-event-addons-price"},Te=N(()=>e.createElementVNode("br",null,null,-1)),$e={class:"fresh-booking-event-addons-input"},Fe={class:"fresh-booking-event-addons-price"},Le=N(()=>e.createElementVNode("td",{colspan:"2"},null,-1)),Oe={class:"fresh-booking-event-addons-price"},Re={key:3},Ue={class:"fresh-booking-label required"},qe={id:"fresh-booking-event-table"},Ae={key:4},Ie={class:"fresh-booking-label required"},xe={class:"fresh-booking-table"},Me=N(()=>e.createElementVNode("th",{class:"fresh-booking-event-addons-input"},null,-1)),We={class:"fresh-booking-event-addons-price"},Ye=N(()=>e.createElementVNode("br",null,null,-1)),ze=N(()=>e.createElementVNode("br",null,null,-1)),Qe={class:"fresh-booking-event-addons-input"},je={class:"fresh-booking-event-addons-price"},He={key:0},Je={key:1},Ke={key:2},Xe={key:3},Ze={key:4},Ge={key:5},et={key:6},tt=e.defineComponent({name:"EventLayout",__name:"Event",props:{accessToken:{},styling:{}},setup(v){const{t:n}=t.useI18n(),{searchDate:u,addons:g,products:P,numberOfDays:y,discountCode:R,name:E,phone:B,email:_,remark:D,arrivalTime:V,title:f,subtitle:T,slideshow:U,currency:c,numberOfPeople:o,numberOfTotalDays:d,numberOfRooms:b,basePrice:J,totalPrice:K,isPaymentLoading:X,hasEvents:Z,hasTemplates:G,getEvents:ee,getTemplates:te,getEventData:ne,getTemplateData:$,getEventTableData:le,length:x,roomUpgrade:oe,weekendFee:re,fromDate:M,hasProducts:ae,eventRateType:W,isMetaDataAvailable:ie,areListingsAvailable:se,isReservationFormFilled:ue,isAvailabilityDataAvailable:ce,isTemplateEvent:k,tableBasePrice:Y}=t.storeToRefs(O.useEventStore()),{initialize:de,validateDiscountCode:ot,fetchListings:me,createBooking:pe,localAddonPrice:z,totalAddonPrice:Q,reset:fe}=O.useEventStore(),{hideEvents:ke,hideEventTemplates:ge}=t.storeToRefs(t.useUtilityStore());return e.onMounted(()=>de()),e.watch(u,()=>me()),(j,r)=>(e.openBlock(),e.createBlock(t._sfc_main$2,{id:"fresh-booking-event-module",class:"fresh-booking-app",type:"event","access-token":j.accessToken,styling:j.styling},{default:e.withCtx(()=>[e.unref(ie)?(e.openBlock(),e.createBlock(C.MultiStepForm,{key:0,slideshow:e.unref(U),title:e.unref(f),subtitle:e.unref(T)},{availability:e.withCtx(({next:F})=>[e.createElementVNode("div",he,[e.createVNode(ve._sfc_main,{modelValue:e.unref(u),"onUpdate:modelValue":r[0]||(r[0]=m=>e.isRef(u)?u.value=m:null),label:e.unref(n)("event.selectDate"),"min-date":new Date},null,8,["modelValue","label","min-date"])]),e.unref(se)?(e.openBlock(),e.createElementBlock("div",Be,[e.unref(Z)&&!e.unref(ke)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("h2",null,[e.createVNode(t.Icon,{icon:"clock-seven",type:"fal",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.eventsTitle")),1)]),e.createElementVNode("ul",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ee),({id:m,days:l,name:i,timeFrom:p,timeTo:a,fromDate:s,toDate:S,tableGroupID:q,description:A,soldOut:I,maxOnlineReservationLimit:w})=>(e.openBlock(),e.createBlock(H,{key:m,type:"event","listing-id":m,"table-group-id":q,description:A,name:i,days:l,"from-date":s,"to-date":S,"max-online-reservation-limit":w,"time-from":p,"time-to":a,"sold-out":I,callback:F},null,8,["listing-id","table-group-id","description","name","days","from-date","to-date","max-online-reservation-limit","time-from","time-to","sold-out","callback"]))),128))])],64)):e.createCommentVNode("",!0),e.unref(G)&&!e.unref(ge)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("h2",null,[e.createVNode(t.Icon,{icon:"stars",type:"fal",color:"header"}),e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.stayTitle")),1)]),e.createElementVNode("ul",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(te),({id:m,name:l,fromDate:i,toDate:p,minimumPersonCount:a,fromPrice:s,description:S})=>(e.openBlock(),e.createBlock(H,{key:m,type:"template","listing-id":m,name:l,description:S,"from-date":i,"to-date":p,"minimum-person-count":a,fromPrice:s,callback:F},null,8,["listing-id","name","description","from-date","to-date","minimum-person-count","fromPrice","callback"]))),128))])],64)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(t.Loading,{key:1}))]),reservation:e.withCtx(({next:F,prev:m})=>[e.unref(ce)?(e.openBlock(),e.createBlock(C.ReservationForm,{key:0,remark:e.unref(D),"onUpdate:remark":r[8]||(r[8]=l=>e.isRef(D)?D.value=l:null),"is-filled":e.unref(ue),"is-loading":e.unref(X),"base-price":e.unref(J),"total-price":e.unref(K),"weekend-fee":e.unref(re),"room-upgrade":e.unref(oe),onPrev:l=>e.unref(fe)(m),onNext:l=>e.unref(pe)(F)},{form:e.withCtx(()=>[e.unref(W)===e.unref(t.OctopusEventRateType).FullDayEvent?(e.openBlock(),e.createBlock(t._sfc_main$1,{key:0,modelValue:e.unref(y),"onUpdate:modelValue":r[1]||(r[1]=l=>e.isRef(y)?y.value=l:null),label:e.unref(n)("event.numberOfDays"),"min-value":1,required:""},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(t.TextField,{modelValue:e.unref(E),"onUpdate:modelValue":r[2]||(r[2]=l=>e.isRef(E)?E.value=l:null),type:"text",label:e.unref(n)("booking.reservation.name"),icon:"user-alt",placeholder:e.unref(n)("booking.reservation.namePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(t.TextField,{modelValue:e.unref(_),"onUpdate:modelValue":r[3]||(r[3]=l=>e.isRef(_)?_.value=l:null),label:e.unref(n)("booking.reservation.email"),type:"email",name:"email",autocomplete:"email",icon:"at",placeholder:e.unref(n)("booking.reservation.emailPlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createVNode(L.PhoneField,{modelValue:e.unref(B),"onUpdate:modelValue":r[4]||(r[4]=l=>e.isRef(B)?B.value=l:null),label:e.unref(n)("booking.reservation.phone"),icon:"phone-office",placeholder:e.unref(n)("booking.reservation.phonePlaceholder"),required:""},null,8,["modelValue","label","placeholder"]),e.createCommentVNode("",!0),e.unref($)&&e.unref($).length>0?(e.openBlock(),e.createElementBlock("ul",Se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref($),({roomGroupID:l,addons:i,adultPerRoom:p},a)=>(e.openBlock(),e.createElementBlock("li",{key:l},[e.createElementVNode("h5",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.room"))+" #"+e.toDisplayString(a+1),1),e.createTextVNode(" ("),e.createVNode(t.Icon,{icon:"male",type:"fas",color:"header"}),e.createTextVNode(" "+e.toDisplayString(p)+") ",1)]),e.createElementVNode("table",we,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.addons")),1)]),Ce,e.createElementVNode("th",Pe,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.availability.price")),1)])])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,({addonID:s,cardinality:S,name:q,price:A,quantityStrategy:I})=>(e.openBlock(),e.createElementBlock("tr",{key:s},[e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(q),1),Te,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(A,e.unref(c)))+" "+e.toDisplayString(e.unref(t.getPriceQuantityLabel)(I)),1)]),e.createElementVNode("td",$e,[S===3?(e.openBlock(),e.createBlock(t._sfc_main$1,{key:0,modelValue:e.unref(g)[`${l}.${s}.${a}`],"onUpdate:modelValue":w=>e.unref(g)[`${l}.${s}.${a}`]=w,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(L.Checkbox,{key:1,modelValue:e.unref(g)[`${l}.${s}.${a}`],"onUpdate:modelValue":w=>e.unref(g)[`${l}.${s}.${a}`]=w,numeric:!0},null,8,["modelValue","onUpdate:modelValue"]))]),e.createElementVNode("td",Fe,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(z)(s,l,a),e.unref(c))),1)])]))),128))]),e.createElementVNode("tfoot",null,[e.createElementVNode("tr",null,[Le,e.createElementVNode("td",Oe,[e.createElementVNode("u",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(Q)(l,a),e.unref(c))),1)])])])])])]))),128))])):e.createCommentVNode("",!0),e.unref(W)!==e.unref(t.OctopusEventRateType).FullDayEvent&&!e.unref(k)?(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("label",Ue,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.selectArrivalTime")),1)]),e.createElementVNode("ul",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(le),(l,i)=>(e.openBlock(),e.createElementBlock("li",{key:i},[e.createVNode(L.Checkbox,{modelValue:e.unref(V),"onUpdate:modelValue":r[7]||(r[7]=p=>e.isRef(V)?V.value=p:null),type:"radio",name:"eventTimeTable",val:l.time,label:e.unref(t.showTime)(l.time)},null,8,["modelValue","val","label"])]))),128))])])):e.createCommentVNode("",!0),e.unref(ae)?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("label",Ie,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.selectProducts")),1)]),e.createElementVNode("table",xe,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.addons")),1)]),Me,e.createElementVNode("th",We,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.availability.price")),1)])])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ne).products,({productID:l,productName:i,price:p,description:a})=>(e.openBlock(),e.createElementBlock("tr",{key:l},[e.createElementVNode("td",null,[e.createElementVNode("b",null,[e.createElementVNode("span",null,e.toDisplayString(i),1)]),Ye,e.createElementVNode("span",null,e.toDisplayString(a),1),ze,e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(p,e.unref(c))),1)]),e.createElementVNode("td",Qe,[e.createVNode(t._sfc_main$1,{modelValue:e.unref(P)[l],"onUpdate:modelValue":s=>e.unref(P)[l]=s,small:!0,"min-value":0},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("td",je,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(z)(l),e.unref(c))),1)])]))),128))])])])):e.createCommentVNode("",!0)]),resume:e.withCtx(()=>[e.createElementVNode("li",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.numberOfGuests")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(o)),1)]),e.unref(k)?(e.openBlock(),e.createElementBlock("li",He,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.numberOfRooms")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(b)),1)])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("li",Je,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.numberOfDays")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(d)),1)])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("li",Ke,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.arrival")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(t.showDate)(e.unref(M))),1)])):e.createCommentVNode("",!0),e.unref(k)?(e.openBlock(),e.createElementBlock("li",Xe,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.departure")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(t.showDate)(e.unref(M),e.unref(d))),1)])):e.createCommentVNode("",!0),!e.unref(k)&&e.unref(V)?(e.openBlock(),e.createElementBlock("li",Ze,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.startOfEvent")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(t.showTime)(e.unref(V))),1)])):e.createCommentVNode("",!0),!e.unref(k)&&e.unref(x)?(e.openBlock(),e.createElementBlock("li",Ge,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("event.lengthOfEvent")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(t.showTime)(e.unref(x))),1)])):e.createCommentVNode("",!0),!e.unref(k)&&e.unref(Y)>0?(e.openBlock(),e.createElementBlock("li",et,[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.availability.basePrice")),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(Y),e.unref(c))),1)])):e.createCommentVNode("",!0)]),expenses:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref($),({roomGroupID:l},i)=>(e.openBlock(),e.createElementBlock("li",{key:l},[e.createElementVNode("span",null,e.toDisplayString(e.unref(n)("booking.reservation.addons"))+" - "+e.toDisplayString(e.unref(n)("booking.reservation.room"))+" #"+e.toDisplayString(i+1),1),e.createElementVNode("b",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(Q)(l,i),e.unref(c))),1)]))),128))]),_:2},1032,["remark","is-filled","is-loading","base-price","total-price","weekend-fee","room-upgrade","onPrev","onNext"])):e.createCommentVNode("",!0)]),payment:e.withCtx(()=>[e.createVNode(L.CheckoutWindow)]),confirmation:e.withCtx(()=>[e.createVNode(C.ThankYou,{message:e.unref(n)("event.confirmationMessage")},null,8,["message"])]),_:1},8,["slideshow","title","subtitle"])):(e.openBlock(),e.createBlock(t.Loading,{key:1}))]),_:1},8,["access-token","styling"]))}}),nt=t._export_sfc(tt,[["__scopeId","data-v-b2eee97d"]]),lt=t.createPinia(),h=e.createApp({components:{Event:nt}});h.use(lt);h.use(t.instance);h.use(C.xt);h.use(t.install,{bootstrap:!0});h.mount("#konnectio-event-app");module.exports=h;
|
package/dist/event.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./SelectField.vue_vue_type_style_index_0_lang-eLyZ247i.cjs"),N=require("./ActionField-ztW-1xka.cjs"),y=require("./Container-Y6_3uTWy.cjs");require("./_commonjsHelpers-f52AuuUj.cjs");const C=a=>(e.pushScopeId("data-v-5af38302"),a=a(),e.popScopeId(),a),E=["innerHTML"],_={key:0,id:"fresh-booking-gift-card-validation-resume",class:"fresh-booking-panel"},b=C(()=>e.createElementVNode("span",null,"Loading...",-1)),h=e.defineComponent({name:"GiftCardValidationLayout",__name:"GiftCardValidation",props:{accessToken:{},styling:{}},setup(a){const{t:o}=t.useI18n(),{voucher:r,isValid:p,amount:f,expirationDate:m,productName:V,isLoading:i}=t.storeToRefs(t.useApplyGiftCardStore()),{currency:g}=t.storeToRefs(t.useUtilityStore()),{apply:s}=t.useApplyGiftCardStore();return(c,n)=>(e.openBlock(),e.createBlock(y.Container,{styling:c.styling},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(t._sfc_main$2,{id:"fresh-booking-gift-card-validation-module","access-token":c.accessToken,type:"gift-card"},{default:e.withCtx(()=>[e.createElementVNode("form",{onSubmit:n[3]||(n[3]=e.withModifiers(l=>e.unref(s)(),["prevent"]))},[e.createElementVNode("h4",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("giftCardValidation.title")),1)]),e.createElementVNode("p",{innerHTML:e.unref(o)("giftCardValidation.description")},null,8,E),e.createVNode(N.ActionField,{modelValue:e.unref(r),"onUpdate:modelValue":n[0]||(n[0]=l=>e.isRef(r)?r.value=l:null),icon:"gift-card",label:e.unref(o)("booking.reservation.giftCardCode"),buttonLabel:e.unref(o)("giftCardValidation.submitButton"),placeholder:"XXXXXXXX","is-loading":e.unref(i),"onUpdate:isLoading":n[1]||(n[1]=l=>e.isRef(i)?i.value=l:null),onAction:n[2]||(n[2]=l=>e.unref(s)())},null,8,["modelValue","label","buttonLabel","is-loading"]),!e.unref(i)&&e.unref(p)?(e.openBlock(),e.createElementBlock("table",_,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("giftCardValidation.giftCard")),1),e.createVNode(t.Icon,{icon:"gift-card",type:"fas",color:"header"})]),e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("giftCardValidation.balance")),1),e.createVNode(t.Icon,{icon:"money-bill",type:"fas",color:"header"})]),e.createElementVNode("th",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(o)("giftCardValidation.expirationDate")),1),e.createVNode(t.Icon,{icon:"timer",type:"fas",color:"header"})])])]),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(V)),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showPrice)(e.unref(f),e.unref(g))),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(t.showDate)(e.unref(m))),1)])])])])):e.createCommentVNode("",!0)],32)]),_:1},8,["access-token"])]),fallback:e.withCtx(()=>[b]),_:1}))]),_:1},8,["styling"]))}}),u=t._export_sfc(h,[["__scopeId","data-v-5af38302"]]),d=e.createApp({components:{GiftCardValidation:u}}),k=t.createPinia();d.use(k);d.use(t.instance);d.mount("#konnectio-gift-card-validation-app");const S={install:a=>{a.component("GiftCardValidation",u)}};module.exports=S;
|