@konnectio/core 4.0.6 → 4.0.9
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-b87d2fd7.cjs +1 -0
- package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +150 -0
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
- package/dist/Field-21bb32d7.cjs +1 -0
- package/dist/Field-6bfeedce.js +59 -0
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
- package/dist/TextField-99e69631.cjs +54 -0
- package/dist/TextField-b8f4462a.js +9343 -0
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +66 -0
- package/dist/ThankYou-edbf753b.js +14279 -0
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
- package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
- package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/availability.cjs +2 -0
- package/dist/availability.js +236 -0
- package/dist/availability.js.br +0 -0
- package/dist/components/ErrorMessage.vue.d.ts +5 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationFormTest.vue.d.ts +5 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Test.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Field.vue.d.ts +5 -0
- package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Listing.vue.d.ts +5 -0
- package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +5 -0
- package/dist/components/skeletons/_.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +3 -2
- package/dist/entries/gift-card.d.ts +1 -2
- package/dist/entries/hotel.d.ts +0 -2
- package/dist/event-2c6a2138.cjs +1 -0
- package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/event.cjs +2 -0
- package/dist/event.js +867 -0
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -0
- package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -0
- package/dist/gift-card.d.ts +0 -2
- package/dist/gift-card.js +590 -0
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +19 -0
- package/dist/hotel.d.ts +0 -2
- package/dist/hotel.js +2981 -0
- package/dist/hotel.js.br +0 -0
- package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/index-ec04c269.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +42 -217
- package/dist/layouts/GiftCard.vue.d.ts +130 -99
- package/dist/layouts/Hotel.vue.d.ts +162 -57
- package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
- package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
- package/dist/payment-cce506b8.js.br +0 -0
- package/dist/polyfill.cjs +4 -0
- package/dist/polyfill.js +6815 -0
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +11 -21
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +0 -1
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
- package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
- package/dist/ThankYou-1866d8db.js +0 -8547
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +0 -15
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/availability.cjs.js +0 -1
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +0 -183
- package/dist/availability.es.js.br +0 -0
- package/dist/components/LoadingBlock.vue.d.ts +0 -4
- package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
- package/dist/event-39706438.cjs +0 -1
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +0 -1
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +0 -645
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +0 -1
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +0 -1
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +0 -584
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +0 -19
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +0 -2394
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +0 -1
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/polyfill.cjs.js +0 -4
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +0 -6764
- package/dist/polyfill.es.js.br +0 -0
- /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
- /package/dist/{navigation.es.js → navigation.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReservationFormTest.vue.d.ts","sourceRoot":"","sources":["../../../src/components/forms/ReservationFormTest.vue"],"names":[],"mappings":"AACA,cAAc,yHAAyH,CAAC;AACxI,OAAO,uIAAuI,CAAC;;AAE/I,wBAA0F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "G:/.projects/konnectio-integration-core/src/components/inputs/grouped/CountryField.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "G:/.projects/konnectio-integration-core/src/components/inputs/grouped/CountryField.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "G:/.projects/konnectio-integration-core/src/components/inputs/grouped/CountryField.vue?vue&type=style&index=0&scoped=1462612d&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=CountryField.vue.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "G:/.projects/konnectio-integration-core/src/components/listings/Base.vue?vue&type=script&setup=true&lang.ts";
|
|
2
2
|
import "G:/.projects/konnectio-integration-core/src/components/listings/Base.vue?vue&type=style&index=0&lang.scss";
|
|
3
|
-
import "G:/.projects/konnectio-integration-core/src/components/listings/Base.vue?vue&type=style&index=1&scoped=
|
|
3
|
+
import "G:/.projects/konnectio-integration-core/src/components/listings/Base.vue?vue&type=style&index=1&scoped=48f272c2&lang.scss";
|
|
4
4
|
declare const _default: any;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=Base.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "G:/.projects/konnectio-integration-core/src/components/listings/Test.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "G:/.projects/konnectio-integration-core/src/components/listings/Test.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "G:/.projects/konnectio-integration-core/src/components/listings/Test.vue?vue&type=style&index=0&scoped=6f314cb2&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=Test.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "G:/.projects/konnectio-integration-core/src/components/side-panels/Base.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "G:/.projects/konnectio-integration-core/src/components/side-panels/Base.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "G:/.projects/konnectio-integration-core/src/components/side-panels/Base.vue?vue&type=style&index=0&scoped=14bfb74a&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=Base.vue.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import _sfc_main from "G:/.projects/konnectio-integration-core/src/components/side-panels/Hotel.vue?vue&type=script&setup=true&lang.ts";
|
|
2
1
|
export * from "G:/.projects/konnectio-integration-core/src/components/side-panels/Hotel.vue?vue&type=script&setup=true&lang.ts";
|
|
3
|
-
|
|
2
|
+
import "G:/.projects/konnectio-integration-core/src/components/side-panels/Hotel.vue?vue&type=style&index=0&scoped=c66a3c20&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
4
5
|
//# sourceMappingURL=Hotel.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hotel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/side-panels/Hotel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Hotel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/side-panels/Hotel.vue"],"names":[],"mappings":"AACA,cAAc,iHAAiH,CAAC;AAChI,OAAO,+HAA+H,CAAC;;AAEvI,wBAA0F"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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=2c3e37a4&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=AvailabilitySkeleton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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=4bff6dc8&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=Field.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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=2600a731&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=GiftCardSkeleton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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=15d8c408&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=HotelSkeleton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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=5c132d7f&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=Listing.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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=1c1931a4&lang.scss";
|
|
3
|
+
declare const _default: any;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=_.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export default class KonnectioAvailability {
|
|
2
|
+
constructor();
|
|
3
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default app;
|
|
1
|
+
export {};
|
package/dist/entries/hotel.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs"),Ce=require("./payment-95b2392a.cjs"),Te=require("./applyGiftCard-c21f13ac.cjs"),Fe=e.defineStore("event",()=>{const X=Ce.usePaymentStore(),{voucher:Y}=e.storeToRefs(Te.useApplyGiftCardStore()),{display:m}=e.useAlertStore(),{bearerToken:b}=e.storeToRefs(e.useUtilityStore()),c=e.ref({}),f=e.ref({}),a=e.ref(void 0),u=e.ref(!0),s=e.ref(e.EventModuleState.InitialState),z=e.ref(new Date),P=e.ref(NaN),A=e.ref(1),S=e.ref(NaN),B=e.ref(NaN),E=e.ref(""),w=e.useStorage("freshBookingName","",void 0,{serializer:e.StorageSerializers.string}),M=e.useStorage("freshBookingPhone","",void 0,{serializer:e.StorageSerializers.string}),C=e.useStorage("freshBookingEmail","",void 0,{serializer:e.StorageSerializers.string}),L=e.ref(""),k=e.ref({}),d=e.ref({}),T=e.ref("");function n(t){return t.templateID!==void 0}const Z=e.computed(()=>c.value.currency),ee=e.computed(()=>c.value.maxNumberPerBooking),te=e.computed(()=>c.value.title),ae=e.computed(()=>c.value.subtitle),oe=e.computed(()=>c.value.slideshow),D=e.computed(()=>z.value.toISOString()),ne=e.computed(()=>n(a.value)),F=e.computed(()=>n(a.value)?a.value.numberOfDays:A.value),ue=e.computed(()=>n(a.value)?a.value.packageCount:0),le=e.computed(()=>n(a.value)?a.value.fromDate:""),h=e.computed(()=>f.value.events.find(t=>t.id===S.value)),re=e.computed(()=>h.value?h.value.length:void 0),G=e.computed(()=>n(a.value)?a.value.templateID:0),se=e.computed(()=>f.value.events),ie=e.computed(()=>f.value.templates),ve=e.computed(()=>f.value.events.length>0),ce=e.computed(()=>f.value.templates.length>0),U=e.computed(()=>h.value&&h.value.eventRateType?h.value.eventRateType:e.OctopusEventRateType.None),N=e.computed(()=>{if(!n(a.value))return a.value}),_=e.computed(()=>{if(N.value!==void 0){const t=N.value.find(o=>o.time===E.value);if(t&&t.price)return t.price}return 0}),V=e.computed(()=>{if(n(a.value))return a.value.templateCounts}),de=e.computed(()=>t=>c.value.eventImages.filter(o=>o.eventID===t));function R(t,o,l){let i=0;if(n(a.value)){const r=a.value.templateCounts[l];if(r){const y=r.addons,p=k.value[`${o}.${t}.${l}`]||0;if(p>0){const g=y?.find(I=>I.addonID===t),v=typeof p=="boolean"?1:p;i+=e.getQuantityStrategyPrice(g?.price,g?.quantityStrategy,F.value,r.adultPerRoom)*v}}}else{const r=d.value[t]||0;if(r>0){const y=h.value?.products?.find(p=>p.productID===t);y&&(i+=y.price*r)}}return i}function $(t,o){let l=0;if(n(a.value))for(const i in k.value){const r=i.split(".");parseInt(r[0])===t&&parseInt(r[2])===o&&(l+=R(parseInt(r[1]),t,o))}else for(const i in d.value)l+=R(parseInt(i))*A.value;return l}const q=e.computed(()=>n(a.value)&&a.value.totalPrice||0),pe=e.computed(()=>{if(n(a.value))return a.value.templateCounts===void 0?NaN:a.value.templateCounts.flatMap(t=>t.roomGroupID).reduce((t,o,l)=>t+$(o,l),q.value)||0;{let t=$();return t+=_.value,t}}),ge=e.computed(()=>n(a.value)&&a.value.templateCounts!==void 0&&a.value.templateCounts.flatMap(t=>t.weekendFee).reduce((t,o)=>t+o,0)||0),me=e.computed(()=>n(a.value)&&a.value.templateCounts!==void 0&&a.value.templateCounts.flatMap(t=>t.roomUpgrade).reduce((t,o)=>t+o,0)||0),fe=e.computed(()=>{const t=d.value;let o=0;for(const l in t)o+=Number.isNaN(t[l])?0:t[l];return o>0}),x=e.computed(()=>n(a.value)?!1:Object.keys(d.value).length>0),he=e.computed(()=>!!(w.value!==""&&C.value!==""&&M.value.length>=5&&(!x.value||fe.value)&&(!(!n(a.value)&&U.value!==e.OctopusEventRateType.FullDayEvent)||E.value!=="")));function ye(t){return s.value===e.EventModuleState.ReservationState&&S.value===t&&u.value}const be=e.computed(()=>!(s.value===e.EventModuleState.InitialState&&u.value)),Se=e.computed(()=>!(s.value===e.EventModuleState.AvailabilityState&&u.value)),ke=e.computed(()=>a.value!==void 0),De=e.computed(()=>s.value===e.EventModuleState.PaymentState&&u.value);async function K(){try{const t=(await e.axios.get("https://stage.hotel-service.freshbooking.dk/api/event/metadata",{params:{language:e.getUserLanguage()},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.9"}})).data;c.value=t,j()}catch{m({message:e.i18n.t("alert.error.couldntFetchMetadata"),type:"warning"})}}async function j(){s.value=e.EventModuleState.AvailabilityState,u.value=!0;try{const t=(await e.axios.get("https://stage.hotel-service.freshbooking.dk/api/event/restaurant-events",{params:{language:e.getUserLanguage(),date:D.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.9"}})).data;f.value=t,u.value=!1}catch{m({message:e.i18n.t("alert.error.couldntFetchListings"),type:"warning"})}}async function Ie(t){s.value=e.EventModuleState.ReservationState,u.value=!0;try{const o=(await e.axios.get("https://stage.hotel-service.freshbooking.dk/api/v3/event/get-availability",{params:{language:e.getUserLanguage(),date:D.value,templateId:S.value,numberOfPeople:P.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.9"}})).data;o.templateCounts.length===0?m({message:e.i18n.t("alert.error.eventNotAvailable"),type:"warning"}):(a.value=o,t()),u.value=!1}catch{u.value=!1,s.value=e.EventModuleState.AvailabilityState,m({message:e.i18n.t("alert.error.couldntFetchEvent"),type:"warning"})}}async function Ee(t){s.value=e.EventModuleState.ReservationState,u.value=!0;try{const o=(await e.axios.get("https://stage.hotel-service.freshbooking.dk/api/v3/event/get-table-availability",{params:{language:e.getUserLanguage(),date:D.value,numberOfPeople:P.value,eventId:S.value,tableGroupId:B.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.9"}})).data;a.value=o,u.value=!1,t()}catch{u.value=!1,s.value=e.EventModuleState.AvailabilityState,m({message:e.i18n.t("alert.error.couldntFetchEvent"),type:"warning"})}}async function Pe(){try{const t=(await e.axios.get("https://stage.hotel-service.freshbooking.dk/api/v3/event/validate-discount-code",{params:{language:e.getUserLanguage(),date:D.value,discountCode:T.value},headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.9"}})).data;console.log(t)}catch(t){console.log(t),m({message:e.i18n.t("alert.error.discountCodeValidation"),type:"warning"})}}async function Ae(t){s.value=e.EventModuleState.PaymentState,u.value=!0;const o=()=>{u.value=!1,s.value=e.EventModuleState.ReservationState,m({message:e.i18n.t("booking.other.errorMessage"),type:"warning"})};let l,i,r;const y=[];if(n(a.value))V.value?.forEach((v,I)=>{const Q=[];let H=0;for(const J in k.value){const O=J.split("."),W=k.value[J];parseInt(O[0])===v.roomGroupID&&parseInt(O[2])===I&&W>0&&(Q.push({id:H,addonID:parseInt(O[1]),quantity:W}),H++)}y.push({adultPerRoom:v.adultPerRoom,count:v.count,roomGroupID:v.roomGroupID,addons:Q})}),l={templateID:G.value,numberOfDays:A.value,templateCounts:y};else{i=[],r=E.value;for(const v in d.value){const I=d.value[parseInt(v)];I>0&&i.push({id:parseInt(v),quantity:I})}}let p="https://stage.hotel-service.freshbooking.dk/api/v3/event/template-book";const g={date:D.value,name:w.value,email:C.value,phone:M.value,remark:L.value,numberOfPeople:P.value,days:F.value,discountCode:T.value,giftCardCode:Y.value,checkoutUrl:window.location.origin,privacyUrl:window.location.origin};n(a.value)?g.templateGroup=l:(g.time=r,g.eventId=S.value,g.products=i,p="https://stage.hotel-service.freshbooking.dk/api/v3/event/event-book"),await e.axios.post(p,g,{headers:{Authorization:b.value,"Fresh-Booking-Ver":"4.0.9"}}).then(v=>{u.value=!1,X.pay({callback:t,response:v.data})}).catch(()=>o())}function we(t){k.value={},d.value={},E.value="",t()}function Me(){K()}return{metaData:c,listingData:f,tableBasePrice:_,availabilityData:a,isLoading:u,moduleState:s,searchDate:z,numberOfPeople:P,numberOfDays:A,eventId:S,tableGroupId:B,arrivalTime:E,addons:k,products:d,discountCode:T,name:w,phone:M,email:C,remark:L,isTemplateEvent:ne,currency:Z,maxNumberOfPeople:ee,title:te,subtitle:ae,slideshow:oe,date:D,numberOfTotalDays:F,numberOfRooms:ue,fromDate:le,getEventData:h,length:re,templateId:G,getEvents:se,getTemplates:ie,hasEvents:ve,hasTemplates:ce,basePrice:q,totalPrice:pe,getTemplateData:V,getEventTableData:N,roomUpgrade:me,weekendFee:ge,hasProducts:x,eventRateType:U,isReservationFormFilled:he,isMetaDataAvailable:be,areListingsAvailable:Se,isAvailabilityDataAvailable:ke,isPaymentLoading:De,getEventImages:de,isEventListingLoading:ye,fetchMetaData:K,fetchListings:j,getTemplateAvailability:Ie,getEventAvailability:Ee,validateDiscountCode:Pe,localAddonPrice:R,totalAddonPrice:$,createBooking:Ae,reset:we,initialize:Me}});exports.useEventStore=Fe;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as Ge, s as oe, u as Ve, a as Le, r as s, E as v, b as U, c as a, O as le, S as q, g as Ue, e as C, f as N, i as
|
|
2
|
-
import { u as qe } from "./payment-
|
|
3
|
-
import { u as Ke } from "./applyGiftCard-
|
|
1
|
+
import { d as Ge, s as oe, u as Ve, a as Le, r as s, E as v, b as U, c as a, O as le, S as q, g as Ue, e as C, f as N, i as D } from "./SelectField.vue_vue_type_style_index_0_lang-701aecad.js";
|
|
2
|
+
import { u as qe } from "./payment-cce506b8.js";
|
|
3
|
+
import { u as Ke } from "./applyGiftCard-dea77ba6.js";
|
|
4
4
|
const Qe = Ge("event", () => {
|
|
5
|
-
const se = qe(), { voucher:
|
|
5
|
+
const se = qe(), { voucher: re } = oe(Ke()), { display: h } = Ve(), { bearerToken: I } = oe(Le()), p = s({}), y = s({}), t = s(void 0), l = s(!0), i = s(v.InitialState), K = s(/* @__PURE__ */ new Date()), F = s(NaN), T = s(1), S = s(NaN), x = s(NaN), E = s(""), $ = U("freshBookingName", "", void 0, { serializer: q.string }), O = U("freshBookingPhone", "", void 0, { serializer: q.string }), R = U("freshBookingEmail", "", void 0, { serializer: q.string }), _ = s(""), P = s({}), g = s({}), B = s("");
|
|
6
6
|
function o(e) {
|
|
7
7
|
return e.templateID !== void 0;
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
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(() => K.value.toISOString()), pe = a(() => o(t.value)), z = a(() => o(t.value) ? t.value.numberOfDays : T.value), ge = a(() => o(t.value) ? t.value.packageCount : 0), fe = a(() => o(t.value) ? t.value.fromDate : ""), b = a(() => y.value.events.find((e) => e.id === S.value)), me = 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), M = a(() => {
|
|
10
10
|
if (!o(t.value))
|
|
11
11
|
return t.value;
|
|
12
12
|
}), H = a(() => {
|
|
@@ -21,75 +21,75 @@ const Qe = Ge("event", () => {
|
|
|
21
21
|
}), J = a(() => {
|
|
22
22
|
if (o(t.value))
|
|
23
23
|
return t.value.templateCounts;
|
|
24
|
-
}),
|
|
25
|
-
function G(e, n,
|
|
24
|
+
}), De = a(() => (e) => p.value.eventImages.filter((n) => n.eventID === e));
|
|
25
|
+
function G(e, n, r) {
|
|
26
26
|
let c = 0;
|
|
27
27
|
if (o(t.value)) {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
c += Ue(
|
|
28
|
+
const u = t.value.templateCounts[r];
|
|
29
|
+
if (u) {
|
|
30
|
+
const k = u.addons, f = P.value[`${n}.${e}.${r}`] || 0;
|
|
31
|
+
if (f > 0) {
|
|
32
|
+
const m = k?.find((w) => w.addonID === e), d = typeof f == "boolean" ? 1 : f;
|
|
33
|
+
c += Ue(m?.price, m?.quantityStrategy, z.value, u.adultPerRoom) * d;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
} else {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
40
|
-
|
|
37
|
+
const u = g.value[e] || 0;
|
|
38
|
+
if (u > 0) {
|
|
39
|
+
const k = b.value?.products?.find((f) => f.productID === e);
|
|
40
|
+
k && (c += k.price * u);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
return c;
|
|
44
44
|
}
|
|
45
45
|
function V(e, n) {
|
|
46
|
-
let
|
|
46
|
+
let r = 0;
|
|
47
47
|
if (o(t.value))
|
|
48
|
-
for (const c in
|
|
49
|
-
const
|
|
50
|
-
parseInt(
|
|
48
|
+
for (const c in P.value) {
|
|
49
|
+
const u = c.split(".");
|
|
50
|
+
parseInt(u[0]) === e && parseInt(u[2]) === n && (r += G(parseInt(u[1]), e, n));
|
|
51
51
|
}
|
|
52
52
|
else
|
|
53
|
-
for (const c in
|
|
54
|
-
|
|
55
|
-
return
|
|
53
|
+
for (const c in g.value)
|
|
54
|
+
r += G(parseInt(c)) * T.value;
|
|
55
|
+
return r;
|
|
56
56
|
}
|
|
57
|
-
const W = a(() => o(t.value) && t.value.totalPrice || 0),
|
|
57
|
+
const W = a(() => o(t.value) && t.value.totalPrice || 0), Ie = a(() => {
|
|
58
58
|
if (o(t.value))
|
|
59
59
|
return t.value.templateCounts === void 0 ? NaN : t.value.templateCounts.flatMap((e) => e.roomGroupID).reduce(
|
|
60
|
-
(e, n,
|
|
60
|
+
(e, n, r) => e + V(n, r),
|
|
61
61
|
W.value
|
|
62
62
|
) || 0;
|
|
63
63
|
{
|
|
64
64
|
let e = V();
|
|
65
65
|
return e += H.value, e;
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
68
|
-
const e =
|
|
67
|
+
}), 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(() => {
|
|
68
|
+
const e = g.value;
|
|
69
69
|
let n = 0;
|
|
70
|
-
for (const
|
|
71
|
-
n += Number.isNaN(e[
|
|
70
|
+
for (const r in e)
|
|
71
|
+
n += Number.isNaN(e[r]) ? 0 : e[r];
|
|
72
72
|
return n > 0;
|
|
73
|
-
}), X = a(() => o(t.value) ? !1 : Object.keys(
|
|
73
|
+
}), X = a(() => o(t.value) ? !1 : Object.keys(g.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 !== "")));
|
|
74
74
|
function Ce(e) {
|
|
75
|
-
return i.value === v.ReservationState &&
|
|
75
|
+
return i.value === v.ReservationState && S.value === e && l.value;
|
|
76
76
|
}
|
|
77
77
|
const Ee = a(() => !(i.value === v.InitialState && l.value)), Ne = a(() => !(i.value === v.AvailabilityState && l.value)), Fe = a(() => t.value !== void 0), Te = a(() => i.value === v.PaymentState && l.value);
|
|
78
78
|
async function Y() {
|
|
79
79
|
try {
|
|
80
|
-
const e = (await C.get("
|
|
80
|
+
const e = (await C.get("https://stage.hotel-service.freshbooking.dk/api/event/metadata", {
|
|
81
81
|
params: {
|
|
82
82
|
language: N()
|
|
83
83
|
},
|
|
84
84
|
headers: {
|
|
85
|
-
Authorization:
|
|
86
|
-
"Fresh-Booking-Ver": "4.0.
|
|
85
|
+
Authorization: I.value,
|
|
86
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
87
87
|
}
|
|
88
88
|
})).data;
|
|
89
89
|
p.value = e, Z();
|
|
90
90
|
} catch {
|
|
91
91
|
h({
|
|
92
|
-
message:
|
|
92
|
+
message: D.t("alert.error.couldntFetchMetadata"),
|
|
93
93
|
type: "warning"
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -97,20 +97,20 @@ const Qe = Ge("event", () => {
|
|
|
97
97
|
async function Z() {
|
|
98
98
|
i.value = v.AvailabilityState, l.value = !0;
|
|
99
99
|
try {
|
|
100
|
-
const e = (await C.get("
|
|
100
|
+
const e = (await C.get("https://stage.hotel-service.freshbooking.dk/api/event/restaurant-events", {
|
|
101
101
|
params: {
|
|
102
102
|
language: N(),
|
|
103
|
-
date:
|
|
103
|
+
date: A.value
|
|
104
104
|
},
|
|
105
105
|
headers: {
|
|
106
|
-
Authorization:
|
|
107
|
-
"Fresh-Booking-Ver": "4.0.
|
|
106
|
+
Authorization: I.value,
|
|
107
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
108
108
|
}
|
|
109
109
|
})).data;
|
|
110
110
|
y.value = e, l.value = !1;
|
|
111
111
|
} catch {
|
|
112
112
|
h({
|
|
113
|
-
message:
|
|
113
|
+
message: D.t("alert.error.couldntFetchListings"),
|
|
114
114
|
type: "warning"
|
|
115
115
|
});
|
|
116
116
|
}
|
|
@@ -118,25 +118,25 @@ const Qe = Ge("event", () => {
|
|
|
118
118
|
async function $e(e) {
|
|
119
119
|
i.value = v.ReservationState, l.value = !0;
|
|
120
120
|
try {
|
|
121
|
-
const n = (await C.get("
|
|
121
|
+
const n = (await C.get("https://stage.hotel-service.freshbooking.dk/api/v3/event/get-availability", {
|
|
122
122
|
params: {
|
|
123
123
|
language: N(),
|
|
124
|
-
date:
|
|
125
|
-
templateId:
|
|
124
|
+
date: A.value,
|
|
125
|
+
templateId: S.value,
|
|
126
126
|
numberOfPeople: F.value
|
|
127
127
|
},
|
|
128
128
|
headers: {
|
|
129
|
-
Authorization:
|
|
130
|
-
"Fresh-Booking-Ver": "4.0.
|
|
129
|
+
Authorization: I.value,
|
|
130
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
131
131
|
}
|
|
132
132
|
})).data;
|
|
133
133
|
n.templateCounts.length === 0 ? h({
|
|
134
|
-
message:
|
|
134
|
+
message: D.t("alert.error.eventNotAvailable"),
|
|
135
135
|
type: "warning"
|
|
136
136
|
}) : (t.value = n, e()), l.value = !1;
|
|
137
137
|
} catch {
|
|
138
138
|
l.value = !1, i.value = v.AvailabilityState, h({
|
|
139
|
-
message:
|
|
139
|
+
message: D.t("alert.error.couldntFetchEvent"),
|
|
140
140
|
type: "warning"
|
|
141
141
|
});
|
|
142
142
|
}
|
|
@@ -144,44 +144,44 @@ const Qe = Ge("event", () => {
|
|
|
144
144
|
async function Oe(e) {
|
|
145
145
|
i.value = v.ReservationState, l.value = !0;
|
|
146
146
|
try {
|
|
147
|
-
const n = (await C.get("
|
|
147
|
+
const n = (await C.get("https://stage.hotel-service.freshbooking.dk/api/v3/event/get-table-availability", {
|
|
148
148
|
params: {
|
|
149
149
|
language: N(),
|
|
150
|
-
date:
|
|
150
|
+
date: A.value,
|
|
151
151
|
numberOfPeople: F.value,
|
|
152
|
-
eventId:
|
|
152
|
+
eventId: S.value,
|
|
153
153
|
tableGroupId: x.value
|
|
154
154
|
},
|
|
155
155
|
headers: {
|
|
156
|
-
Authorization:
|
|
157
|
-
"Fresh-Booking-Ver": "4.0.
|
|
156
|
+
Authorization: I.value,
|
|
157
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
158
158
|
}
|
|
159
159
|
})).data;
|
|
160
160
|
t.value = n, l.value = !1, e();
|
|
161
161
|
} catch {
|
|
162
162
|
l.value = !1, i.value = v.AvailabilityState, h({
|
|
163
|
-
message:
|
|
163
|
+
message: D.t("alert.error.couldntFetchEvent"),
|
|
164
164
|
type: "warning"
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
async function Re() {
|
|
169
169
|
try {
|
|
170
|
-
const e = (await C.get("
|
|
170
|
+
const e = (await C.get("https://stage.hotel-service.freshbooking.dk/api/v3/event/validate-discount-code", {
|
|
171
171
|
params: {
|
|
172
172
|
language: N(),
|
|
173
|
-
date:
|
|
173
|
+
date: A.value,
|
|
174
174
|
discountCode: B.value
|
|
175
175
|
},
|
|
176
176
|
headers: {
|
|
177
|
-
Authorization:
|
|
178
|
-
"Fresh-Booking-Ver": "4.0.
|
|
177
|
+
Authorization: I.value,
|
|
178
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
179
179
|
}
|
|
180
180
|
})).data;
|
|
181
181
|
console.log(e);
|
|
182
182
|
} catch (e) {
|
|
183
183
|
console.log(e), h({
|
|
184
|
-
message:
|
|
184
|
+
message: D.t("alert.error.discountCodeValidation"),
|
|
185
185
|
type: "warning"
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -190,48 +190,48 @@ const Qe = Ge("event", () => {
|
|
|
190
190
|
i.value = v.PaymentState, l.value = !0;
|
|
191
191
|
const n = () => {
|
|
192
192
|
l.value = !1, i.value = v.ReservationState, h({
|
|
193
|
-
message:
|
|
193
|
+
message: D.t("booking.other.errorMessage"),
|
|
194
194
|
type: "warning"
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
-
let
|
|
198
|
-
const
|
|
197
|
+
let r, c, u;
|
|
198
|
+
const k = [];
|
|
199
199
|
if (o(t.value))
|
|
200
200
|
J.value?.forEach((d, w) => {
|
|
201
201
|
const ee = [];
|
|
202
202
|
let te = 0;
|
|
203
|
-
for (const ae in
|
|
204
|
-
const L = ae.split("."), ne =
|
|
203
|
+
for (const ae in P.value) {
|
|
204
|
+
const L = ae.split("."), ne = P.value[ae];
|
|
205
205
|
parseInt(L[0]) === d.roomGroupID && parseInt(L[2]) === w && ne > 0 && (ee.push({
|
|
206
206
|
id: te,
|
|
207
207
|
addonID: parseInt(L[1]),
|
|
208
208
|
quantity: ne
|
|
209
209
|
}), te++);
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
k.push({
|
|
212
212
|
adultPerRoom: d.adultPerRoom,
|
|
213
213
|
count: d.count,
|
|
214
214
|
roomGroupID: d.roomGroupID,
|
|
215
215
|
addons: ee
|
|
216
216
|
});
|
|
217
|
-
}),
|
|
217
|
+
}), r = {
|
|
218
218
|
templateID: j.value,
|
|
219
219
|
numberOfDays: T.value,
|
|
220
|
-
templateCounts:
|
|
220
|
+
templateCounts: k
|
|
221
221
|
};
|
|
222
222
|
else {
|
|
223
|
-
c = [],
|
|
224
|
-
for (const d in
|
|
225
|
-
const w =
|
|
223
|
+
c = [], u = E.value;
|
|
224
|
+
for (const d in g.value) {
|
|
225
|
+
const w = g.value[parseInt(d)];
|
|
226
226
|
w > 0 && c.push({
|
|
227
227
|
id: parseInt(d),
|
|
228
228
|
quantity: w
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
let
|
|
233
|
-
const
|
|
234
|
-
date:
|
|
232
|
+
let f = "https://stage.hotel-service.freshbooking.dk/api/v3/event/template-book";
|
|
233
|
+
const m = {
|
|
234
|
+
date: A.value,
|
|
235
235
|
name: $.value,
|
|
236
236
|
email: R.value,
|
|
237
237
|
phone: O.value,
|
|
@@ -239,14 +239,14 @@ const Qe = Ge("event", () => {
|
|
|
239
239
|
numberOfPeople: F.value,
|
|
240
240
|
days: z.value,
|
|
241
241
|
discountCode: B.value,
|
|
242
|
-
giftCardCode:
|
|
242
|
+
giftCardCode: re.value,
|
|
243
243
|
checkoutUrl: window.location.origin,
|
|
244
244
|
privacyUrl: window.location.origin
|
|
245
245
|
};
|
|
246
|
-
o(t.value) ?
|
|
246
|
+
o(t.value) ? m.templateGroup = r : (m.time = u, m.eventId = S.value, m.products = c, f = "https://stage.hotel-service.freshbooking.dk/api/v3/event/event-book"), await C.post(f, m, {
|
|
247
247
|
headers: {
|
|
248
|
-
Authorization:
|
|
249
|
-
"Fresh-Booking-Ver": "4.0.
|
|
248
|
+
Authorization: I.value,
|
|
249
|
+
"Fresh-Booking-Ver": "4.0.9"
|
|
250
250
|
}
|
|
251
251
|
}).then((d) => {
|
|
252
252
|
l.value = !1, se.pay({
|
|
@@ -256,7 +256,7 @@ const Qe = Ge("event", () => {
|
|
|
256
256
|
}).catch(() => n());
|
|
257
257
|
}
|
|
258
258
|
function ze(e) {
|
|
259
|
-
|
|
259
|
+
P.value = {}, g.value = {}, E.value = "", e();
|
|
260
260
|
}
|
|
261
261
|
function Me() {
|
|
262
262
|
Y();
|
|
@@ -271,39 +271,39 @@ const Qe = Ge("event", () => {
|
|
|
271
271
|
searchDate: K,
|
|
272
272
|
numberOfPeople: F,
|
|
273
273
|
numberOfDays: T,
|
|
274
|
-
eventId:
|
|
274
|
+
eventId: S,
|
|
275
275
|
tableGroupId: x,
|
|
276
276
|
arrivalTime: E,
|
|
277
|
-
addons:
|
|
278
|
-
products:
|
|
277
|
+
addons: P,
|
|
278
|
+
products: g,
|
|
279
279
|
discountCode: B,
|
|
280
280
|
name: $,
|
|
281
281
|
phone: O,
|
|
282
282
|
email: R,
|
|
283
283
|
remark: _,
|
|
284
284
|
isTemplateEvent: pe,
|
|
285
|
-
currency:
|
|
285
|
+
currency: ue,
|
|
286
286
|
maxNumberOfPeople: ie,
|
|
287
287
|
title: ve,
|
|
288
288
|
subtitle: ce,
|
|
289
289
|
slideshow: de,
|
|
290
|
-
date:
|
|
290
|
+
date: A,
|
|
291
291
|
numberOfTotalDays: z,
|
|
292
|
-
numberOfRooms:
|
|
293
|
-
fromDate:
|
|
292
|
+
numberOfRooms: ge,
|
|
293
|
+
fromDate: fe,
|
|
294
294
|
getEventData: b,
|
|
295
|
-
length:
|
|
295
|
+
length: me,
|
|
296
296
|
templateId: j,
|
|
297
297
|
getEvents: he,
|
|
298
298
|
getTemplates: ye,
|
|
299
299
|
hasEvents: be,
|
|
300
|
-
hasTemplates:
|
|
300
|
+
hasTemplates: ke,
|
|
301
301
|
basePrice: W,
|
|
302
|
-
totalPrice:
|
|
302
|
+
totalPrice: Ie,
|
|
303
303
|
getTemplateData: J,
|
|
304
304
|
getEventTableData: M,
|
|
305
|
-
roomUpgrade:
|
|
306
|
-
weekendFee:
|
|
305
|
+
roomUpgrade: Pe,
|
|
306
|
+
weekendFee: Se,
|
|
307
307
|
hasProducts: X,
|
|
308
308
|
eventRateType: Q,
|
|
309
309
|
isReservationFormFilled: we,
|
|
@@ -311,7 +311,7 @@ const Qe = Ge("event", () => {
|
|
|
311
311
|
areListingsAvailable: Ne,
|
|
312
312
|
isAvailabilityDataAvailable: Fe,
|
|
313
313
|
isPaymentLoading: Te,
|
|
314
|
-
getEventImages:
|
|
314
|
+
getEventImages: De,
|
|
315
315
|
isEventListingLoading: Ce,
|
|
316
316
|
fetchMetaData: Y,
|
|
317
317
|
fetchListings: Z,
|
|
Binary file
|