@mirai/core 0.2.18 → 0.3.1
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/build/Core.Notifications.js +67 -50
- package/build/Core.Notifications.js.map +1 -1
- package/build/Core.constants.js +13 -11
- package/build/Core.constants.js.map +1 -1
- package/build/Core.definition.js +3 -3
- package/build/Core.definition.js.map +1 -1
- package/build/Core.js +69 -48
- package/build/Core.js.map +1 -1
- package/build/Core.provider.js +91 -41
- package/build/Core.provider.js.map +1 -1
- package/build/components/Booking/Booking.constants.js +48 -0
- package/build/components/Booking/Booking.constants.js.map +1 -0
- package/build/components/Booking/Booking.js +226 -0
- package/build/components/Booking/Booking.js.map +1 -0
- package/build/components/Booking/Booking.l10n.js +233 -0
- package/build/components/Booking/Booking.l10n.js.map +1 -0
- package/build/components/Booking/Booking.module.css +273 -0
- package/build/components/{user → Booking}/Booking.skeleton.js +12 -14
- package/build/components/Booking/Booking.skeleton.js.map +1 -0
- package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +83 -0
- package/build/components/Booking/components/Field/Field.js +70 -0
- package/build/components/Booking/components/Field/Field.js.map +1 -0
- package/build/components/Booking/components/Field/Field.l10n.js +12 -0
- package/build/components/Booking/components/Field/Field.l10n.js.map +1 -0
- package/build/components/Booking/components/Field/Field.module.css +48 -0
- package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +139 -0
- package/build/components/Booking/components/Field/index.js +17 -0
- package/build/components/Booking/components/Field/index.js.map +1 -0
- package/build/components/Booking/components/index.js +17 -0
- package/build/components/Booking/components/index.js.map +1 -0
- package/build/components/Booking/helpers/getOccupationCaption.js +64 -0
- package/build/components/Booking/helpers/getOccupationCaption.js.map +1 -0
- package/build/components/Booking/helpers/index.js +28 -0
- package/build/components/Booking/helpers/index.js.map +1 -0
- package/build/components/Booking/helpers/trackStateChange.js +97 -0
- package/build/components/Booking/helpers/trackStateChange.js.map +1 -0
- package/build/components/Booking/index.js +13 -0
- package/build/components/Booking/index.js.map +1 -0
- package/build/components/Booking/mocks/booking.json +176 -0
- package/build/components/Booking/partials/Booking.Details.js +133 -0
- package/build/components/Booking/partials/Booking.Details.js.map +1 -0
- package/build/components/Booking/partials/Booking.FormCancel.js +107 -0
- package/build/components/Booking/partials/Booking.FormCancel.js.map +1 -0
- package/build/components/Booking/partials/Booking.FormEdit.js +22 -0
- package/build/components/Booking/partials/Booking.FormEdit.js.map +1 -0
- package/build/components/Booking/partials/Booking.FormResend.js +53 -0
- package/build/components/Booking/partials/Booking.FormResend.js.map +1 -0
- package/build/components/Booking/partials/Booking.Menu.js +98 -0
- package/build/components/Booking/partials/Booking.Menu.js.map +1 -0
- package/build/components/Booking/partials/Booking.Modal.js +181 -0
- package/build/components/Booking/partials/Booking.Modal.js.map +1 -0
- package/build/components/Booking/partials/Booking.ModalAgency.js +65 -0
- package/build/components/Booking/partials/Booking.ModalAgency.js.map +1 -0
- package/build/components/Booking/partials/Booking.Others.js +115 -0
- package/build/components/Booking/partials/Booking.Others.js.map +1 -0
- package/build/components/Booking/partials/Booking.PriceBreakdown.js +150 -0
- package/build/components/Booking/partials/Booking.PriceBreakdown.js.map +1 -0
- package/build/components/Booking/partials/Booking.Summary.js +255 -0
- package/build/components/Booking/partials/Booking.Summary.js.map +1 -0
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Details.test.js.snap +4677 -0
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +638 -0
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +400 -0
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap +442 -0
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Summary.test.js.snap +1066 -0
- package/build/components/Booking/partials/index.js +72 -0
- package/build/components/Booking/partials/index.js.map +1 -0
- package/build/components/BookingQuery/BookingQuery.constants.js +11 -0
- package/build/components/BookingQuery/BookingQuery.constants.js.map +1 -0
- package/build/components/BookingQuery/BookingQuery.js +199 -0
- package/build/components/BookingQuery/BookingQuery.js.map +1 -0
- package/build/components/BookingQuery/BookingQuery.l10n.js +36 -0
- package/build/components/BookingQuery/BookingQuery.l10n.js.map +1 -0
- package/build/components/BookingQuery/BookingQuery.module.css +17 -0
- package/build/components/{user → BookingQuery}/BookingQuery.skeleton.js +4 -3
- package/build/components/BookingQuery/BookingQuery.skeleton.js.map +1 -0
- package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +1106 -0
- package/build/components/BookingQuery/helpers/getErrorText.js +12 -0
- package/build/components/BookingQuery/helpers/getErrorText.js.map +1 -0
- package/build/components/BookingQuery/helpers/index.js +17 -0
- package/build/components/BookingQuery/helpers/index.js.map +1 -0
- package/build/components/BookingQuery/index.js +13 -0
- package/build/components/BookingQuery/index.js.map +1 -0
- package/build/components/Checkout/Checkout.constants.js +45 -0
- package/build/components/Checkout/Checkout.constants.js.map +1 -0
- package/build/components/Checkout/Checkout.js +182 -0
- package/build/components/Checkout/Checkout.js.map +1 -0
- package/build/components/Checkout/Checkout.l10n.js +125 -0
- package/build/components/Checkout/Checkout.l10n.js.map +1 -0
- package/build/components/Checkout/Checkout.module.css +250 -0
- package/build/components/{user → Checkout}/Checkout.skeleton.js +10 -12
- package/build/components/Checkout/Checkout.skeleton.js.map +1 -0
- package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +133 -0
- package/build/components/Checkout/components/InputRadio/InputRadio.js +67 -0
- package/build/components/Checkout/components/InputRadio/InputRadio.js.map +1 -0
- package/build/components/Checkout/components/InputRadio/InputRadio.module.css +3 -0
- package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +323 -0
- package/build/components/Checkout/components/InputRadio/index.js +17 -0
- package/build/components/Checkout/components/InputRadio/index.js.map +1 -0
- package/build/components/Checkout/components/index.js +17 -0
- package/build/components/Checkout/components/index.js.map +1 -0
- package/build/components/Checkout/helpers/generateId.js +21 -0
- package/build/components/Checkout/helpers/generateId.js.map +1 -0
- package/build/components/Checkout/helpers/getFieldProps.js +79 -0
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -0
- package/build/components/Checkout/helpers/getVariant.js +34 -0
- package/build/components/Checkout/helpers/getVariant.js.map +1 -0
- package/build/components/Checkout/helpers/index.js +61 -0
- package/build/components/Checkout/helpers/index.js.map +1 -0
- package/build/components/Checkout/helpers/testDNI.js +12 -0
- package/build/components/Checkout/helpers/testDNI.js.map +1 -0
- package/build/components/Checkout/helpers/trackDataSource.js +117 -0
- package/build/components/Checkout/helpers/trackDataSource.js.map +1 -0
- package/build/components/Checkout/helpers/trackForm.js +25 -0
- package/build/components/Checkout/helpers/trackForm.js.map +1 -0
- package/build/components/Checkout/index.js +13 -0
- package/build/components/Checkout/index.js.map +1 -0
- package/build/components/Checkout/mocks/checkout.json +519 -0
- package/build/components/Checkout/partials/Checkout.Confirmation.js +237 -0
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -0
- package/build/components/Checkout/partials/Checkout.Details.js +172 -0
- package/build/components/Checkout/partials/Checkout.Details.js.map +1 -0
- package/build/components/Checkout/partials/Checkout.Form.js +215 -0
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -0
- package/build/components/Checkout/partials/Checkout.Session.js +108 -0
- package/build/components/Checkout/partials/Checkout.Session.js.map +1 -0
- package/build/components/Checkout/partials/Checkout.Summary.Line.js +56 -0
- package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +1 -0
- package/build/components/Checkout/partials/Checkout.Summary.js +196 -0
- package/build/components/Checkout/partials/Checkout.Summary.js.map +1 -0
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +1580 -0
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +1636 -0
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +5650 -0
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +770 -0
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Summary.test.js.snap +798 -0
- package/build/components/Checkout/partials/index.js +61 -0
- package/build/components/Checkout/partials/index.js.map +1 -0
- package/build/components/Deals/Deals.Calendar.js +180 -0
- package/build/components/Deals/Deals.Calendar.js.map +1 -0
- package/build/components/Deals/Deals.constants.js +16 -0
- package/build/components/Deals/Deals.constants.js.map +1 -0
- package/build/components/Deals/Deals.js +281 -0
- package/build/components/Deals/Deals.js.map +1 -0
- package/build/components/Deals/Deals.l10n.js +43 -0
- package/build/components/Deals/Deals.l10n.js.map +1 -0
- package/build/components/Deals/Deals.module.css +106 -0
- package/build/components/{finder → Deals}/Deals.skeleton.js +17 -19
- package/build/components/Deals/Deals.skeleton.js.map +1 -0
- package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +4584 -0
- package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +7893 -0
- package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +25 -0
- package/build/components/Deals/helpers/calcFromDate.js +20 -0
- package/build/components/Deals/helpers/calcFromDate.js.map +1 -0
- package/build/components/Deals/helpers/calcMinStay.js +24 -0
- package/build/components/Deals/helpers/calcMinStay.js.map +1 -0
- package/build/components/Deals/helpers/calcNightWithDeals.js +17 -0
- package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -0
- package/build/components/Deals/helpers/calcToDate.js +19 -0
- package/build/components/Deals/helpers/calcToDate.js.map +1 -0
- package/build/components/Deals/helpers/calcTooltips.js +59 -0
- package/build/components/Deals/helpers/calcTooltips.js.map +1 -0
- package/build/components/Deals/helpers/getCurrency.js +19 -0
- package/build/components/Deals/helpers/getCurrency.js.map +1 -0
- package/build/components/Deals/helpers/index.js +83 -0
- package/build/components/Deals/helpers/index.js.map +1 -0
- package/build/components/Deals/helpers/validate.js +37 -0
- package/build/components/Deals/helpers/validate.js.map +1 -0
- package/build/components/Deals/index.js +13 -0
- package/build/components/Deals/index.js.map +1 -0
- package/build/components/Environment/Environment.js +47 -0
- package/build/components/Environment/Environment.js.map +1 -0
- package/build/components/Environment/Environment.module.css +6 -0
- package/build/components/Environment/index.js +13 -0
- package/build/components/Environment/index.js.map +1 -0
- package/build/components/Finder/Finder.constants.js +37 -0
- package/build/components/Finder/Finder.constants.js.map +1 -0
- package/build/components/Finder/Finder.js +242 -0
- package/build/components/Finder/Finder.js.map +1 -0
- package/build/components/Finder/Finder.l10n.js +21 -0
- package/build/components/Finder/Finder.l10n.js.map +1 -0
- package/build/components/Finder/Finder.module.css +46 -0
- package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +11469 -0
- package/build/components/Finder/components/Calendar/Calendar.constants.js +19 -0
- package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -0
- package/build/components/Finder/components/Calendar/Calendar.js +209 -0
- package/build/components/Finder/components/Calendar/Calendar.js.map +1 -0
- package/build/components/Finder/components/Calendar/Calendar.l10n.js +25 -0
- package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -0
- package/build/components/Finder/components/Calendar/Calendar.module.css +28 -0
- package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +11 -0
- package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +10164 -0
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +86 -0
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -0
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +15 -0
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -0
- package/build/components/Finder/components/Calendar/helpers/index.js +28 -0
- package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -0
- package/build/components/Finder/components/Calendar/index.js +17 -0
- package/build/components/Finder/components/Calendar/index.js.map +1 -0
- package/build/components/Finder/components/Places/Places.js +108 -0
- package/build/components/Finder/components/Places/Places.js.map +1 -0
- package/build/components/Finder/components/Places/Places.l10n.js +12 -0
- package/build/components/Finder/components/Places/Places.l10n.js.map +1 -0
- package/build/components/Finder/components/Places/Places.module.css +83 -0
- package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +44 -0
- package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +288 -0
- package/build/components/Finder/components/Places/helpers/calcColumns.js +40 -0
- package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -0
- package/build/components/Finder/components/Places/helpers/index.js +17 -0
- package/build/components/Finder/components/Places/helpers/index.js.map +1 -0
- package/build/components/Finder/components/Places/index.js +17 -0
- package/build/components/Finder/components/Places/index.js.map +1 -0
- package/build/components/Finder/components/index.js +28 -0
- package/build/components/Finder/components/index.js.map +1 -0
- package/build/components/Finder/helpers/__tests__/__mocks__/chain.json +1113 -0
- package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +1382 -0
- package/build/components/Finder/helpers/__tests__/__mocks__/hotel.json +199 -0
- package/build/components/Finder/helpers/getDataSource.js +65 -0
- package/build/components/Finder/helpers/getDataSource.js.map +1 -0
- package/build/components/Finder/helpers/getHotels.js +41 -0
- package/build/components/Finder/helpers/getHotels.js.map +1 -0
- package/build/components/Finder/helpers/getOccupationDataSource.js +107 -0
- package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -0
- package/build/components/Finder/helpers/getPlaceCaption.js +15 -0
- package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -0
- package/build/components/Finder/helpers/getPlacesOptions.js +50 -0
- package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -0
- package/build/components/Finder/helpers/index.js +94 -0
- package/build/components/Finder/helpers/index.js.map +1 -0
- package/build/components/Finder/helpers/parseCalendarProps.js +29 -0
- package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -0
- package/build/components/Finder/helpers/parseValue.js +20 -0
- package/build/components/Finder/helpers/parseValue.js.map +1 -0
- package/build/components/Finder/helpers/validate.js +15 -0
- package/build/components/Finder/helpers/validate.js.map +1 -0
- package/build/components/Finder/index.js +13 -0
- package/build/components/Finder/index.js.map +1 -0
- package/build/components/Profile/Profile.Account.js +224 -0
- package/build/components/Profile/Profile.Account.js.map +1 -0
- package/build/components/Profile/Profile.Password.js +173 -0
- package/build/components/Profile/Profile.Password.js.map +1 -0
- package/build/components/Profile/Profile.Signout.js +137 -0
- package/build/components/Profile/Profile.Signout.js.map +1 -0
- package/build/components/Profile/Profile.constants.js +13 -0
- package/build/components/Profile/Profile.constants.js.map +1 -0
- package/build/components/Profile/Profile.js +75 -0
- package/build/components/Profile/Profile.js.map +1 -0
- package/build/components/Profile/Profile.l10n.js +100 -0
- package/build/components/Profile/Profile.l10n.js.map +1 -0
- package/build/components/Profile/Profile.module.css +70 -0
- package/build/components/Profile/Profile.skeleton.js +120 -0
- package/build/components/Profile/Profile.skeleton.js.map +1 -0
- package/build/components/Profile/components/Bookings/Booking.constants.js +20 -0
- package/build/components/Profile/components/Bookings/Booking.constants.js.map +1 -0
- package/build/components/Profile/components/Bookings/Booking.l10n.js +47 -0
- package/build/components/Profile/components/Bookings/Booking.l10n.js.map +1 -0
- package/build/components/Profile/components/Bookings/Bookings.Item.js +110 -0
- package/build/components/Profile/components/Bookings/Bookings.Item.js.map +1 -0
- package/build/components/Profile/components/Bookings/Bookings.Search.js +98 -0
- package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -0
- package/build/components/Profile/components/Bookings/Bookings.js +184 -0
- package/build/components/Profile/components/Bookings/Bookings.js.map +1 -0
- package/build/components/Profile/components/Bookings/Bookings.module.css +171 -0
- package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +9 -0
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +31 -0
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -0
- package/build/components/Profile/components/Bookings/helpers/index.js +17 -0
- package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -0
- package/build/components/Profile/components/Bookings/index.js +17 -0
- package/build/components/Profile/components/Bookings/index.js.map +1 -0
- package/build/components/Profile/components/index.js +17 -0
- package/build/components/Profile/components/index.js.map +1 -0
- package/build/components/Profile/index.js +13 -0
- package/build/components/Profile/index.js.map +1 -0
- package/build/components/Session/Session.Account.js +161 -0
- package/build/components/Session/Session.Account.js.map +1 -0
- package/build/components/Session/Session.Login.Modal.js +334 -0
- package/build/components/Session/Session.Login.Modal.js.map +1 -0
- package/build/components/Session/Session.Login.js +85 -0
- package/build/components/Session/Session.Login.js.map +1 -0
- package/build/components/Session/Session.constants.js +26 -0
- package/build/components/Session/Session.constants.js.map +1 -0
- package/build/components/Session/Session.js +50 -0
- package/build/components/Session/Session.js.map +1 -0
- package/build/components/Session/Session.l10n.js +81 -0
- package/build/components/Session/Session.l10n.js.map +1 -0
- package/build/components/Session/Session.module.css +41 -0
- package/build/components/Session/Session.skeleton.js +19 -0
- package/build/components/Session/Session.skeleton.js.map +1 -0
- package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +1075 -0
- package/build/components/Session/helpers/getDomain.js +14 -0
- package/build/components/Session/helpers/getDomain.js.map +1 -0
- package/build/components/Session/helpers/getSignupUrl.js +19 -0
- package/build/components/Session/helpers/getSignupUrl.js.map +1 -0
- package/build/components/Session/helpers/index.js +50 -0
- package/build/components/Session/helpers/index.js.map +1 -0
- package/build/components/Session/helpers/template.js +18 -0
- package/build/components/Session/helpers/template.js.map +1 -0
- package/build/components/Session/helpers/trackLogin.js +23 -0
- package/build/components/Session/helpers/trackLogin.js.map +1 -0
- package/build/components/Session/index.js +13 -0
- package/build/components/Session/index.js.map +1 -0
- package/build/components/Signup/Signup.constants.js +8 -0
- package/build/components/Signup/Signup.constants.js.map +1 -0
- package/build/components/Signup/Signup.js +266 -0
- package/build/components/Signup/Signup.js.map +1 -0
- package/build/components/Signup/Signup.l10n.js +67 -0
- package/build/components/Signup/Signup.l10n.js.map +1 -0
- package/build/components/Signup/Signup.module.css +25 -0
- package/build/components/Signup/Signup.skeleton.js +93 -0
- package/build/components/Signup/Signup.skeleton.js.map +1 -0
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +1023 -0
- package/build/components/Signup/index.js +13 -0
- package/build/components/Signup/index.js.map +1 -0
- package/build/components/State/State.js +104 -0
- package/build/components/State/State.js.map +1 -0
- package/build/components/State/State.module.css +34 -0
- package/build/components/State/index.js +13 -0
- package/build/components/State/index.js.map +1 -0
- package/build/components/__shared__/BookingDates/BookingDates.constants.js +12 -0
- package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -0
- package/build/components/__shared__/BookingDates/BookingDates.js +74 -0
- package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -0
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js +27 -0
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -0
- package/build/components/__shared__/BookingDates/BookingDates.module.css +13 -0
- package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +208 -0
- package/build/components/__shared__/BookingDates/index.js +17 -0
- package/build/components/__shared__/BookingDates/index.js.map +1 -0
- package/build/components/__shared__/BookingTable/BookingTable.Row.js +123 -0
- package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -0
- package/build/components/__shared__/BookingTable/BookingTable.constants.js +18 -0
- package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -0
- package/build/components/__shared__/BookingTable/BookingTable.js +93 -0
- package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -0
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js +15 -0
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -0
- package/build/components/__shared__/BookingTable/BookingTable.module.css +125 -0
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +456 -0
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +619 -0
- package/build/components/__shared__/BookingTable/index.js +17 -0
- package/build/components/__shared__/BookingTable/index.js.map +1 -0
- package/build/components/__shared__/ButtonMore/ButtonMore.js +46 -0
- package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -0
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +12 -0
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -0
- package/build/components/__shared__/ButtonMore/ButtonMore.module.css +9 -0
- package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +110 -0
- package/build/components/__shared__/ButtonMore/index.js +17 -0
- package/build/components/__shared__/ButtonMore/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +21 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js +278 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +13 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/ButtonPayment.module.css +3 -0
- package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +195 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +95 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +21 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.module.css +9 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +68 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +18 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +37 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +198 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +30 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.module.css +27 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +308 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +35 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +8 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +230 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +30 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.module.css +26 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +148 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +24 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +16 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +136 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +21 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.module.css +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +149 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +22 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +54 -0
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.module.css +60 -0
- package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +166 -0
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/components/index.js +50 -0
- package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +26 -0
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +32 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +29 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +25 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +39 -0
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/index.js +39 -0
- package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +25 -0
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +20 -0
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -0
- package/build/components/__shared__/ButtonPayment/index.js +17 -0
- package/build/components/__shared__/ButtonPayment/index.js.map +1 -0
- package/build/components/__shared__/Field/Field.js +91 -0
- package/build/components/__shared__/Field/Field.js.map +1 -0
- package/build/components/__shared__/Field/Field.module.css +105 -0
- package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +799 -0
- package/build/components/__shared__/Field/index.js +17 -0
- package/build/components/__shared__/Field/index.js.map +1 -0
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js +87 -0
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -0
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +12 -0
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -0
- package/build/components/__shared__/FieldOccupation/FieldOccupation.module.css +5 -0
- package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +2179 -0
- package/build/components/__shared__/FieldOccupation/helpers/__tests__/__mocks__/en.json +15 -0
- package/build/components/__shared__/FieldOccupation/helpers/__tests__/__mocks__/hotels.json +87 -0
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +41 -0
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +1 -0
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +51 -0
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -0
- package/build/components/__shared__/FieldOccupation/helpers/index.js +28 -0
- package/build/components/__shared__/FieldOccupation/helpers/index.js.map +1 -0
- package/build/components/__shared__/FieldOccupation/index.js +17 -0
- package/build/components/__shared__/FieldOccupation/index.js.map +1 -0
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js +47 -0
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -0
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +12 -0
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -0
- package/build/components/__shared__/FieldPromocode/FieldPromocode.module.css +19 -0
- package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +272 -0
- package/build/components/__shared__/FieldPromocode/index.js +17 -0
- package/build/components/__shared__/FieldPromocode/index.js.map +1 -0
- package/build/components/__shared__/Occupation/Occupation.Group.js +110 -0
- package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -0
- package/build/components/__shared__/Occupation/Occupation.constants.js +76 -0
- package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -0
- package/build/components/__shared__/Occupation/Occupation.js +252 -0
- package/build/components/__shared__/Occupation/Occupation.js.map +1 -0
- package/build/components/__shared__/Occupation/Occupation.l10n.js +65 -0
- package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -0
- package/build/components/__shared__/Occupation/Occupation.module.css +124 -0
- package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +17 -0
- package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +3591 -0
- package/build/components/__shared__/Occupation/helpers/checkRoom.js +36 -0
- package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js +92 -0
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +31 -0
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js +32 -0
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +17 -0
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/index.js +72 -0
- package/build/components/__shared__/Occupation/helpers/index.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js +32 -0
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +1 -0
- package/build/components/__shared__/Occupation/helpers/toParties.js +41 -0
- package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -0
- package/build/components/__shared__/Occupation/index.js +28 -0
- package/build/components/__shared__/Occupation/index.js.map +1 -0
- package/build/components/__shared__/Payment/Payment.constants.js +39 -0
- package/build/components/__shared__/Payment/Payment.constants.js.map +1 -0
- package/build/components/__shared__/Payment/Payment.js +197 -0
- package/build/components/__shared__/Payment/Payment.js.map +1 -0
- package/build/components/__shared__/Payment/Payment.l10n.js +84 -0
- package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -0
- package/build/components/__shared__/Payment/Payment.module.css +61 -0
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +750 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +43 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +188 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +18 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -0
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.module.css +8 -0
- package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +23 -0
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +16 -0
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -0
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +17 -0
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/AmazonPay/index.js +17 -0
- package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +96 -0
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -0
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +12 -0
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -0
- package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +30 -0
- package/build/components/__shared__/Payment/components/Aplazame/index.js +17 -0
- package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/Card.constants.js +29 -0
- package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/Card.js +149 -0
- package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js +27 -0
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/Card.module.css +23 -0
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +887 -0
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +46 -0
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +12 -0
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +26 -0
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/helpers/index.js +61 -0
- package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +10 -0
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +13 -0
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +12 -0
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -0
- package/build/components/__shared__/Payment/components/Card/index.js +17 -0
- package/build/components/__shared__/Payment/components/Card/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +25 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.js +317 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +30 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/PCI.module.css +9 -0
- package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +399 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +27 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +30 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js +28 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/PCI/index.js +17 -0
- package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js +75 -0
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -0
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +12 -0
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -0
- package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +92 -0
- package/build/components/__shared__/Payment/components/Tpv/index.js +17 -0
- package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -0
- package/build/components/__shared__/Payment/components/index.js +61 -0
- package/build/components/__shared__/Payment/components/index.js.map +1 -0
- package/build/components/__shared__/Payment/helpers/getCaption.js +38 -0
- package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -0
- package/build/components/__shared__/Payment/helpers/getComponent.js +29 -0
- package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -0
- package/build/components/__shared__/Payment/helpers/getImage.js +15 -0
- package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -0
- package/build/components/__shared__/Payment/helpers/index.js +39 -0
- package/build/components/__shared__/Payment/helpers/index.js.map +1 -0
- package/build/components/__shared__/Payment/index.js +49 -0
- package/build/components/__shared__/Payment/index.js.map +1 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +50 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +122 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +78 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -0
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.module.css +30 -0
- package/build/components/__shared__/PriceBreakdown/index.js +17 -0
- package/build/components/__shared__/PriceBreakdown/index.js.map +1 -0
- package/build/components/__shared__/Skeleton/Skeleton.js +35 -0
- package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -0
- package/build/components/__shared__/Skeleton/index.js +17 -0
- package/build/components/__shared__/Skeleton/index.js.map +1 -0
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +32 -0
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -0
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +13 -0
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -0
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.module.css +8 -0
- package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +41 -0
- package/build/components/__shared__/TextRequiredFields/index.js +17 -0
- package/build/components/__shared__/TextRequiredFields/index.js.map +1 -0
- package/build/components/__shared__/index.js +138 -0
- package/build/components/__shared__/index.js.map +1 -0
- package/build/components/helpers/ICON.js +33 -0
- package/build/components/helpers/ICON.js.map +1 -0
- package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +313 -0
- package/build/components/helpers/constants.js +62 -0
- package/build/components/helpers/constants.js.map +1 -0
- package/build/components/helpers/getButtonPaymentKey.js +23 -0
- package/build/components/helpers/getButtonPaymentKey.js.map +1 -0
- package/build/components/helpers/getButtonPaymentKey.l10n.js +18 -0
- package/build/components/helpers/getButtonPaymentKey.l10n.js.map +1 -0
- package/build/components/helpers/getCalendarCaption.js +37 -0
- package/build/components/helpers/getCalendarCaption.js.map +1 -0
- package/build/components/helpers/getCountryCode.js +11 -0
- package/build/components/helpers/getCountryCode.js.map +1 -0
- package/build/components/helpers/index.js +138 -0
- package/build/components/helpers/index.js.map +1 -0
- package/build/components/helpers/isJest.js +9 -0
- package/build/components/helpers/isJest.js.map +1 -0
- package/build/components/helpers/parseHtml.js +76 -0
- package/build/components/helpers/parseHtml.js.map +1 -0
- package/build/components/helpers/testPassword.js +11 -0
- package/build/components/helpers/testPassword.js.map +1 -0
- package/build/components/helpers/toQueryString.js +23 -0
- package/build/components/helpers/toQueryString.js.map +1 -0
- package/build/components/helpers/toUrlParams.js +23 -0
- package/build/components/helpers/toUrlParams.js.map +1 -0
- package/build/components/helpers/trace.js +19 -0
- package/build/components/helpers/trace.js.map +1 -0
- package/build/components/helpers/translate.js +27 -0
- package/build/components/helpers/translate.js.map +1 -0
- package/build/components/index.js +75 -30
- package/build/components/index.js.map +1 -1
- package/build/helpers/checkSession.js +42 -20
- package/build/helpers/checkSession.js.map +1 -1
- package/build/helpers/consolidateStore.js +113 -98
- package/build/helpers/consolidateStore.js.map +1 -1
- package/build/helpers/fetchConfig.js +58 -16
- package/build/helpers/fetchConfig.js.map +1 -1
- package/build/helpers/fetchCookies.js +13 -12
- package/build/helpers/fetchCookies.js.map +1 -1
- package/build/helpers/fetchSession.js +30 -33
- package/build/helpers/fetchSession.js.map +1 -1
- package/build/helpers/fetchUrlParams.js +2 -3
- package/build/helpers/fetchUrlParams.js.map +1 -1
- package/build/helpers/findComponents.js +26 -21
- package/build/helpers/findComponents.js.map +1 -1
- package/build/helpers/findDangerousCSSRules.js +48 -21
- package/build/helpers/findDangerousCSSRules.js.map +1 -1
- package/build/helpers/findInstance.js +34 -20
- package/build/helpers/findInstance.js.map +1 -1
- package/build/helpers/getAccommodationType.js +4 -4
- package/build/helpers/getAccommodationType.js.map +1 -1
- package/build/helpers/getGhost.js +13 -6
- package/build/helpers/getGhost.js.map +1 -1
- package/build/helpers/getLocale.js +23 -12
- package/build/helpers/getLocale.js.map +1 -1
- package/build/helpers/getTags.js +30 -24
- package/build/helpers/getTags.js.map +1 -1
- package/build/helpers/index.js +12 -12
- package/build/helpers/index.js.map +1 -1
- package/build/helpers/loadEnvironment.js +8 -9
- package/build/helpers/loadEnvironment.js.map +1 -1
- package/build/helpers/loadSentry.js +6 -6
- package/build/helpers/loadSentry.js.map +1 -1
- package/build/helpers/theme.js +27 -16
- package/build/helpers/theme.js.map +1 -1
- package/build/index.js +120 -71
- package/build/index.js.map +1 -1
- package/build/services/Club/constants.js +2 -2
- package/build/services/Club/constants.js.map +1 -1
- package/build/services/Club/get.js +49 -21
- package/build/services/Club/get.js.map +1 -1
- package/build/services/Club/index.js +1 -1
- package/build/services/Club/index.js.map +1 -1
- package/build/services/Engine/constants.js +2 -2
- package/build/services/Engine/constants.js.map +1 -1
- package/build/services/Engine/get.js +54 -22
- package/build/services/Engine/get.js.map +1 -1
- package/build/services/Engine/index.js +1 -1
- package/build/services/Engine/index.js.map +1 -1
- package/build/services/index.js +2 -2
- package/build/services/index.js.map +1 -1
- package/package.json +13 -14
- package/public/App.Container.jsx +129 -0
- package/public/App.jsx +28 -0
- package/public/App.module.css +141 -0
- package/public/index.html +7 -51
- package/public/index.template.html +19 -0
- package/public/routes/Deals.jsx +19 -0
- package/public/routes/Home.jsx +36 -0
- package/public/routes/NotFound.jsx +18 -0
- package/public/routes/Profile.jsx +20 -0
- package/public/routes/Signup.jsx +19 -0
- package/public/routes/Step0-Accommodations.jsx +4 -0
- package/public/routes/Step1-Rates.jsx +4 -0
- package/public/routes/Step2-Checkout.jsx +4 -0
- package/public/routes/Step3-Booking.jsx +4 -0
- package/public/routes/index.js +9 -0
- package/public/routes/routes.module.css +93 -0
- package/public/themes/monalisa.theme.css +25 -0
- package/build/components/__internal__/Environment.js +0 -45
- package/build/components/__internal__/Environment.js.map +0 -1
- package/build/components/__internal__/Environment.module.css +0 -4
- package/build/components/__internal__/Skeleton.js +0 -30
- package/build/components/__internal__/Skeleton.js.map +0 -1
- package/build/components/__internal__/State.js +0 -59
- package/build/components/__internal__/State.js.map +0 -1
- package/build/components/__internal__/State.module.css +0 -36
- package/build/components/finder/Deals.js +0 -9
- package/build/components/finder/Deals.js.map +0 -1
- package/build/components/finder/Deals.skeleton.js.map +0 -1
- package/build/components/finder/Finder.js +0 -31
- package/build/components/finder/Finder.js.map +0 -1
- package/build/components/user/Booking.js +0 -9
- package/build/components/user/Booking.js.map +0 -1
- package/build/components/user/Booking.skeleton.js.map +0 -1
- package/build/components/user/BookingQuery.js +0 -9
- package/build/components/user/BookingQuery.js.map +0 -1
- package/build/components/user/BookingQuery.skeleton.js.map +0 -1
- package/build/components/user/Checkout.js +0 -9
- package/build/components/user/Checkout.js.map +0 -1
- package/build/components/user/Checkout.skeleton.js.map +0 -1
- package/build/components/user/Profile.js +0 -9
- package/build/components/user/Profile.js.map +0 -1
- package/build/components/user/Profile.skeleton.js +0 -119
- package/build/components/user/Profile.skeleton.js.map +0 -1
- package/build/components/user/Session.js +0 -9
- package/build/components/user/Session.js.map +0 -1
- package/build/components/user/Session.skeleton.js +0 -18
- package/build/components/user/Session.skeleton.js.map +0 -1
- package/build/components/user/Signup.js +0 -9
- package/build/components/user/Signup.js.map +0 -1
- package/build/components/user/Signup.skeleton.js +0 -92
- package/build/components/user/Signup.skeleton.js.map +0 -1
- package/public/customer.css +0 -124
- package/site/booking/index.html +0 -20
- package/site/checkout/index.html +0 -20
- package/site/core.css +0 -8
- package/site/customer.css +0 -147
- package/site/deals/index.html +0 -34
- package/site/index.html +0 -58
- package/site/profile/index.html +0 -32
- package/site/signup/index.html +0 -32
- /package/build/components/{__internal__ → __shared__/Skeleton}/Skeleton.module.css +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxNights": 10,
|
|
3
|
+
"minNights": 4,
|
|
4
|
+
"minRooms": 3,
|
|
5
|
+
"maxRooms": 5,
|
|
6
|
+
"pricesInfo": {
|
|
7
|
+
"guests": 2,
|
|
8
|
+
"nights": 4,
|
|
9
|
+
"taxType": 0,
|
|
10
|
+
"currency": "EUR"
|
|
11
|
+
},
|
|
12
|
+
"occupation": [
|
|
13
|
+
{
|
|
14
|
+
"type": 1,
|
|
15
|
+
"max": 4,
|
|
16
|
+
"min": 1
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"dates": {
|
|
20
|
+
"22/04/2023": 536,
|
|
21
|
+
"23/04/2023": 0,
|
|
22
|
+
"24/04/2023": 0,
|
|
23
|
+
"25/04/2023": 0
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.calcFromDate = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
var _helpers = require("../../helpers");
|
|
9
|
+
var FIRST_FORTNIGHT = 14;
|
|
10
|
+
var calcFromDate = exports.calcFromDate = function calcFromDate() {
|
|
11
|
+
var dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
12
|
+
if (!Array.isArray(dates) || !dates[0]) return;
|
|
13
|
+
var date = (0, _locale.parseDate)(dates[0], _helpers.CALENDAR_FORMAT);
|
|
14
|
+
var month = date.getMonth() - (date.getDate() <= FIRST_FORTNIGHT && (0, _locale.dateDiff)((0, _locale.UTC)(new Date()), new Date(date.getFullYear(), date.getMonth(), 0)).days > 0 ? 1 : 0);
|
|
15
|
+
var value = (0, _locale.UTC)(new Date(date.getFullYear(), month, 1));
|
|
16
|
+
return (0, _locale.dateFormat)(value, {
|
|
17
|
+
format: _helpers.CALENDAR_FORMAT
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=calcFromDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calcFromDate.js","names":["_locale","require","_helpers","FIRST_FORTNIGHT","calcFromDate","exports","dates","arguments","length","undefined","Array","isArray","date","parseDate","format","month","getMonth","getDate","dateDiff","UTC","Date","getFullYear","days","value","dateFormat"],"sources":["../../../../src/components/Deals/helpers/calcFromDate.js"],"sourcesContent":["import { dateDiff, dateFormat, parseDate, UTC } from '@mirai/locale';\n\nimport { CALENDAR_FORMAT as format } from '../../helpers';\n\nconst FIRST_FORTNIGHT = 14;\n\nexport const calcFromDate = (dates = []) => {\n if (!Array.isArray(dates) || !dates[0]) return;\n const date = parseDate(dates[0], format);\n const month =\n date.getMonth() -\n (date.getDate() <= FIRST_FORTNIGHT &&\n dateDiff(UTC(new Date()), new Date(date.getFullYear(), date.getMonth(), 0)).days > 0\n ? 1\n : 0);\n\n const value = UTC(new Date(date.getFullYear(), month, 1));\n\n return dateFormat(value, { format });\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAME,eAAe,GAAG,EAAE;AAEnB,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAAmB;EAAA,IAAfE,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACrC,IAAI,CAACG,KAAK,CAACC,OAAO,CAACL,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC,CAAC,CAAC,EAAE;EACxC,IAAMM,IAAI,GAAG,IAAAC,iBAAS,EAACP,KAAK,CAAC,CAAC,CAAC,EAAEQ,wBAAM,CAAC;EACxC,IAAMC,KAAK,GACTH,IAAI,CAACI,QAAQ,CAAC,CAAC,IACdJ,IAAI,CAACK,OAAO,CAAC,CAAC,IAAId,eAAe,IAClC,IAAAe,gBAAQ,EAAC,IAAAC,WAAG,EAAC,IAAIC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAIA,IAAI,CAACR,IAAI,CAACS,WAAW,CAAC,CAAC,EAAET,IAAI,CAACI,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACM,IAAI,GAAG,CAAC,GAChF,CAAC,GACD,CAAC,CAAC;EAER,IAAMC,KAAK,GAAG,IAAAJ,WAAG,EAAC,IAAIC,IAAI,CAACR,IAAI,CAACS,WAAW,CAAC,CAAC,EAAEN,KAAK,EAAE,CAAC,CAAC,CAAC;EAEzD,OAAO,IAAAS,kBAAU,EAACD,KAAK,EAAE;IAAET,MAAM,EAANA;EAAO,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.calcMinStay = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
var _helpers = require("../../helpers");
|
|
9
|
+
var _Deals = require("../Deals.constants");
|
|
10
|
+
var calcMinStay = exports.calcMinStay = function calcMinStay(from, highlights, minNightsWithDeals, rangeMinDays) {
|
|
11
|
+
var value;
|
|
12
|
+
if (from && minNightsWithDeals) {
|
|
13
|
+
var dateFrom = (0, _locale.parseDate)((0, _locale.dateFormat)(from, {
|
|
14
|
+
format: _helpers.CALENDAR_FORMAT
|
|
15
|
+
}));
|
|
16
|
+
var nextDealIndex = highlights.findIndex(function (date) {
|
|
17
|
+
return (0, _locale.dateDiff)(dateFrom, (0, _locale.parseDate)(date)).days >= 0;
|
|
18
|
+
});
|
|
19
|
+
var dateTo = (0, _locale.parseDate)(highlights[nextDealIndex + minNightsWithDeals - 1]);
|
|
20
|
+
value = dateTo >= dateFrom ? (0, _locale.dateDiff)(dateFrom, dateTo).days + 1 : _Deals.INVALID_MIN_RANGE_DEALS;
|
|
21
|
+
}
|
|
22
|
+
return value || rangeMinDays;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=calcMinStay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calcMinStay.js","names":["_locale","require","_helpers","_Deals","calcMinStay","exports","from","highlights","minNightsWithDeals","rangeMinDays","value","dateFrom","parseDate","dateFormat","format","nextDealIndex","findIndex","date","dateDiff","days","dateTo","INVALID_MIN_RANGE_DEALS"],"sources":["../../../../src/components/Deals/helpers/calcMinStay.js"],"sourcesContent":["import { dateDiff, dateFormat, parseDate } from '@mirai/locale';\n\nimport { CALENDAR_FORMAT as format } from '../../helpers';\nimport { INVALID_MIN_RANGE_DEALS } from '../Deals.constants';\n\nexport const calcMinStay = (from, highlights, minNightsWithDeals, rangeMinDays) => {\n let value;\n\n if (from && minNightsWithDeals) {\n const dateFrom = parseDate(dateFormat(from, { format }));\n const nextDealIndex = highlights.findIndex((date) => dateDiff(dateFrom, parseDate(date)).days >= 0);\n const dateTo = parseDate(highlights[nextDealIndex + minNightsWithDeals - 1]);\n\n value = dateTo >= dateFrom ? dateDiff(dateFrom, dateTo).days + 1 : INVALID_MIN_RANGE_DEALS;\n }\n\n return value || rangeMinDays;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEO,IAAMG,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAIE,IAAI,EAAEC,UAAU,EAAEC,kBAAkB,EAAEC,YAAY,EAAK;EACjF,IAAIC,KAAK;EAET,IAAIJ,IAAI,IAAIE,kBAAkB,EAAE;IAC9B,IAAMG,QAAQ,GAAG,IAAAC,iBAAS,EAAC,IAAAC,kBAAU,EAACP,IAAI,EAAE;MAAEQ,MAAM,EAANA;IAAO,CAAC,CAAC,CAAC;IACxD,IAAMC,aAAa,GAAGR,UAAU,CAACS,SAAS,CAAC,UAACC,IAAI;MAAA,OAAK,IAAAC,gBAAQ,EAACP,QAAQ,EAAE,IAAAC,iBAAS,EAACK,IAAI,CAAC,CAAC,CAACE,IAAI,IAAI,CAAC;IAAA,EAAC;IACnG,IAAMC,MAAM,GAAG,IAAAR,iBAAS,EAACL,UAAU,CAACQ,aAAa,GAAGP,kBAAkB,GAAG,CAAC,CAAC,CAAC;IAE5EE,KAAK,GAAGU,MAAM,IAAIT,QAAQ,GAAG,IAAAO,gBAAQ,EAACP,QAAQ,EAAES,MAAM,CAAC,CAACD,IAAI,GAAG,CAAC,GAAGE,8BAAuB;EAC5F;EAEA,OAAOX,KAAK,IAAID,YAAY;AAC9B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.calcNightWithDeals = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
var _helpers = require("../../helpers");
|
|
9
|
+
var calcNightWithDeals = exports.calcNightWithDeals = function calcNightWithDeals(from, to, highlights) {
|
|
10
|
+
var value = 0;
|
|
11
|
+
highlights.forEach(function (highlight) {
|
|
12
|
+
var highlightDate = (0, _locale.parseDate)(highlight, _helpers.CALENDAR_FORMAT);
|
|
13
|
+
if (highlightDate >= from && highlightDate <= to) value++;
|
|
14
|
+
});
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=calcNightWithDeals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calcNightWithDeals.js","names":["_locale","require","_helpers","calcNightWithDeals","exports","from","to","highlights","value","forEach","highlight","highlightDate","parseDate","format"],"sources":["../../../../src/components/Deals/helpers/calcNightWithDeals.js"],"sourcesContent":["import { parseDate } from '@mirai/locale';\n\nimport { CALENDAR_FORMAT as format } from '../../helpers';\n\nexport const calcNightWithDeals = (from, to, highlights) => {\n let value = 0;\n\n highlights.forEach((highlight) => {\n const highlightDate = parseDate(highlight, format);\n if (highlightDate >= from && highlightDate <= to) value++;\n });\n\n return value;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAEO,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIE,IAAI,EAAEC,EAAE,EAAEC,UAAU,EAAK;EAC1D,IAAIC,KAAK,GAAG,CAAC;EAEbD,UAAU,CAACE,OAAO,CAAC,UAACC,SAAS,EAAK;IAChC,IAAMC,aAAa,GAAG,IAAAC,iBAAS,EAACF,SAAS,EAAEG,wBAAM,CAAC;IAClD,IAAIF,aAAa,IAAIN,IAAI,IAAIM,aAAa,IAAIL,EAAE,EAAEE,KAAK,EAAE;EAC3D,CAAC,CAAC;EAEF,OAAOA,KAAK;AACd,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.calcToDate = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
|
+
var calcToDate = exports.calcToDate = function calcToDate() {
|
|
15
|
+
var dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
16
|
+
var rangeMaxDays = arguments.length > 1 ? arguments[1] : undefined;
|
|
17
|
+
return dates.length > 0 ? (0, _locale.dateFormat)((0, _locale.dateCalc)((0, _locale.parseDate)(_toConsumableArray(dates).pop()), rangeMaxDays, 'days')) : undefined;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=calcToDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calcToDate.js","names":["_locale","require","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","iter","Symbol","iterator","isArray","len","length","i","arr2","calcToDate","exports","dates","arguments","undefined","rangeMaxDays","dateFormat","dateCalc","parseDate","pop"],"sources":["../../../../src/components/Deals/helpers/calcToDate.js"],"sourcesContent":["import { dateCalc, dateFormat, parseDate } from '@mirai/locale';\n\nexport const calcToDate = (dates = [], rangeMaxDays) => {\n return dates.length > 0 ? dateFormat(dateCalc(parseDate([...dates].pop()), rangeMaxDays, 'days')) : undefined;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAgE,SAAAC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AAK,GAAAC,SAAA,CAAAN,MAAA,QAAAM,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,EAAE;EAAA,IAAEE,YAAY,GAAAF,SAAA,CAAAN,MAAA,OAAAM,SAAA,MAAAC,SAAA;EACjD,OAAOF,KAAK,CAACL,MAAM,GAAG,CAAC,GAAG,IAAAS,kBAAU,EAAC,IAAAC,gBAAQ,EAAC,IAAAC,iBAAS,EAACrC,kBAAA,CAAI+B,KAAK,EAAEO,GAAG,CAAC,CAAC,CAAC,EAAEJ,YAAY,EAAE,MAAM,CAAC,CAAC,GAAGD,SAAS;AAC/G,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.calcTooltips = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
var _helpers = require("../../helpers");
|
|
9
|
+
var _Deals = require("../Deals.l10n");
|
|
10
|
+
var _helpers2 = require("../helpers");
|
|
11
|
+
var calcTooltips = exports.calcTooltips = function calcTooltips() {
|
|
12
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
13
|
+
focus = _ref.focus,
|
|
14
|
+
from = _ref.from,
|
|
15
|
+
highlights = _ref.highlights,
|
|
16
|
+
minNightsWithDeals = _ref.minNightsWithDeals,
|
|
17
|
+
_ref$rangeMinDays = _ref.rangeMinDays,
|
|
18
|
+
rangeMinDays = _ref$rangeMinDays === void 0 ? 1 : _ref$rangeMinDays,
|
|
19
|
+
to = _ref.to,
|
|
20
|
+
_ref$translate = _ref.translate,
|
|
21
|
+
translate = _ref$translate === void 0 ? _helpers.translate : _ref$translate;
|
|
22
|
+
if (!(0, _locale.isDate)(from) || focus && !(0, _locale.isDate)(focus) || to && !(0, _locale.isDate)(to)) return;
|
|
23
|
+
var value = {};
|
|
24
|
+
if (from && !to && (rangeMinDays > 1 || minNightsWithDeals > 1)) {
|
|
25
|
+
value[(0, _locale.dateFormat)(from, {
|
|
26
|
+
format: _helpers.CALENDAR_FORMAT
|
|
27
|
+
})] = {
|
|
28
|
+
text: translate(minNightsWithDeals ? _Deals.L10N.LABEL_MIN_NIGHTS_DEALS : _Deals.L10N.LABEL_MIN_NIGHTS, {
|
|
29
|
+
value: minNightsWithDeals || rangeMinDays
|
|
30
|
+
}),
|
|
31
|
+
pressable: false
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
if (to && minNightsWithDeals && (0, _helpers2.calcNightWithDeals)(from, to, highlights) < minNightsWithDeals) {
|
|
35
|
+
value[(0, _locale.dateFormat)(to, {
|
|
36
|
+
format: _helpers.CALENDAR_FORMAT
|
|
37
|
+
})] = {
|
|
38
|
+
text: translate(_Deals.L10N.LABEL_INFO_PRICES, {
|
|
39
|
+
value: minNightsWithDeals
|
|
40
|
+
}),
|
|
41
|
+
pressable: false
|
|
42
|
+
};
|
|
43
|
+
} else if (!to && from && focus && focus > from) {
|
|
44
|
+
var _dateDiff = (0, _locale.dateDiff)(from, focus),
|
|
45
|
+
days = _dateDiff.days;
|
|
46
|
+
if (days >= minNightsWithDeals || rangeMinDays) {
|
|
47
|
+
value[(0, _locale.dateFormat)(focus, {
|
|
48
|
+
format: _helpers.CALENDAR_FORMAT
|
|
49
|
+
})] = {
|
|
50
|
+
text: translate(_Deals.L10N.LABEL_NIGHTS, {
|
|
51
|
+
value: days
|
|
52
|
+
}),
|
|
53
|
+
pressable: false
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=calcTooltips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calcTooltips.js","names":["_locale","require","_helpers","_Deals","_helpers2","calcTooltips","exports","_ref","arguments","length","undefined","focus","from","highlights","minNightsWithDeals","_ref$rangeMinDays","rangeMinDays","to","_ref$translate","translate","translateHelper","isDate","value","dateFormat","format","text","L10N","LABEL_MIN_NIGHTS_DEALS","LABEL_MIN_NIGHTS","pressable","calcNightWithDeals","LABEL_INFO_PRICES","_dateDiff","dateDiff","days","LABEL_NIGHTS"],"sources":["../../../../src/components/Deals/helpers/calcTooltips.js"],"sourcesContent":["import { dateDiff, dateFormat, isDate } from '@mirai/locale';\n\nimport { CALENDAR_FORMAT as format, translate as translateHelper } from '../../helpers';\nimport { L10N } from '../Deals.l10n';\nimport { calcNightWithDeals } from '../helpers';\n\nexport const calcTooltips = ({\n focus,\n from,\n highlights,\n minNightsWithDeals,\n rangeMinDays = 1,\n to,\n translate = translateHelper,\n} = {}) => {\n if (!isDate(from) || (focus && !isDate(focus)) || (to && !isDate(to))) return;\n\n const value = {};\n\n if (from && !to && (rangeMinDays > 1 || minNightsWithDeals > 1)) {\n value[dateFormat(from, { format })] = {\n text: translate(minNightsWithDeals ? L10N.LABEL_MIN_NIGHTS_DEALS : L10N.LABEL_MIN_NIGHTS, {\n value: minNightsWithDeals || rangeMinDays,\n }),\n pressable: false,\n };\n }\n\n if (to && minNightsWithDeals && calcNightWithDeals(from, to, highlights) < minNightsWithDeals) {\n value[dateFormat(to, { format })] = {\n text: translate(L10N.LABEL_INFO_PRICES, { value: minNightsWithDeals }),\n pressable: false,\n };\n } else if (!to && from && focus && focus > from) {\n const { days } = dateDiff(from, focus);\n\n if (days >= minNightsWithDeals || rangeMinDays) {\n value[dateFormat(focus, { format })] = {\n text: translate(L10N.LABEL_NIGHTS, { value: days }),\n pressable: false,\n };\n }\n }\n\n return value;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAEO,IAAMI,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,SAAfA,YAAYA,CAAA,EAQd;EAAA,IAAAE,IAAA,GA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kBAAU,EAACN,EAAE,EAAE;MAAEO,MAAM,EAANA;IAAO,CAAC,CAAC,CAAC,GAAG;MAClCC,IAAI,EAAEN,SAAS,CAACO,WAAI,CAACK,iBAAiB,EAAE;QAAET,KAAK,EAAER;MAAmB,CAAC,CAAC;MACtEe,SAAS,EAAE;IACb,CAAC;EACH,CAAC,MAAM,IAAI,CAACZ,EAAE,IAAIL,IAAI,IAAID,KAAK,IAAIA,KAAK,GAAGC,IAAI,EAAE;IAC/C,IAAAoB,SAAA,GAAiB,IAAAC,gBAAQ,EAACrB,IAAI,EAAED,KAAK,CAAC;MAA9BuB,IAAI,GAAAF,SAAA,CAAJE,IAAI;IAEZ,IAAIA,IAAI,IAAIpB,kBAAkB,IAAIE,YAAY,EAAE;MAC9CM,KAAK,CAAC,IAAAC,kBAAU,EAACZ,KAAK,EAAE;QAAEa,MAAM,EAANA;MAAO,CAAC,CAAC,CAAC,GAAG;QACrCC,IAAI,EAAEN,SAAS,CAACO,WAAI,CAACS,YAAY,EAAE;UAAEb,KAAK,EAAEY;QAAK,CAAC,CAAC;QACnDL,SAAS,EAAE;MACb,CAAC;IACH;EACF;EAEA,OAAOP,KAAK;AACd,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getCurrency = void 0;
|
|
7
|
+
var _locale = require("@mirai/locale");
|
|
8
|
+
var getCurrency = exports.getCurrency = function getCurrency() {
|
|
9
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
10
|
+
_ref$cookies = _ref.cookies,
|
|
11
|
+
cookies = _ref$cookies === void 0 ? {} : _ref$cookies,
|
|
12
|
+
currency = _ref.currency,
|
|
13
|
+
_ref$urlParams = _ref.urlParams,
|
|
14
|
+
urlParams = _ref$urlParams === void 0 ? {} : _ref$urlParams;
|
|
15
|
+
var forceUri = urlParams.forceUri,
|
|
16
|
+
urlCurrency = urlParams.currency;
|
|
17
|
+
return (forceUri ? urlCurrency : undefined) || cookies.currency || urlCurrency || (currency !== _locale.DEFAULT_CURRENCY ? currency : undefined);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=getCurrency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCurrency.js","names":["_locale","require","getCurrency","exports","_ref","arguments","length","undefined","_ref$cookies","cookies","currency","_ref$urlParams","urlParams","forceUri","urlCurrency","DEFAULT_CURRENCY"],"sources":["../../../../src/components/Deals/helpers/getCurrency.js"],"sourcesContent":["import { DEFAULT_CURRENCY } from '@mirai/locale';\n\nexport const getCurrency = ({ cookies = {}, currency, urlParams = {} } = {}) => {\n const { forceUri, currency: urlCurrency } = urlParams;\n\n return (\n (forceUri ? urlCurrency : undefined) ||\n cookies.currency ||\n urlCurrency ||\n (currency !== DEFAULT_CURRENCY ? currency : undefined)\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAwD;EAAA,IAAAE,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAP,CAAC,CAAC;IAAAG,YAAA,GAAAJ,IAAA,CAA7CK,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,CAAC,CAAC,GAAAA,YAAA;IAAEE,QAAQ,GAAAN,IAAA,CAARM,QAAQ;IAAAC,cAAA,GAAAP,IAAA,CAAEQ,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,CAAC,CAAC,GAAAA,cAAA;EAClE,IAAQE,QAAQ,GAA4BD,SAAS,CAA7CC,QAAQ;IAAYC,WAAW,GAAKF,SAAS,CAAnCF,QAAQ;EAE1B,OACE,CAACG,QAAQ,GAAGC,WAAW,GAAGP,SAAS,KACnCE,OAAO,CAACC,QAAQ,IAChBI,WAAW,KACVJ,QAAQ,KAAKK,wBAAgB,GAAGL,QAAQ,GAAGH,SAAS,CAAC;AAE1D,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _calcFromDate = require("./calcFromDate");
|
|
7
|
+
Object.keys(_calcFromDate).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _calcFromDate[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _calcFromDate[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _calcMinStay = require("./calcMinStay");
|
|
18
|
+
Object.keys(_calcMinStay).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _calcMinStay[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _calcMinStay[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _calcNightWithDeals = require("./calcNightWithDeals");
|
|
29
|
+
Object.keys(_calcNightWithDeals).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _calcNightWithDeals[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _calcNightWithDeals[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _calcToDate = require("./calcToDate");
|
|
40
|
+
Object.keys(_calcToDate).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _calcToDate[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _calcToDate[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _calcTooltips = require("./calcTooltips");
|
|
51
|
+
Object.keys(_calcTooltips).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _calcTooltips[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _calcTooltips[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _getCurrency = require("./getCurrency");
|
|
62
|
+
Object.keys(_getCurrency).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _getCurrency[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function get() {
|
|
68
|
+
return _getCurrency[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _validate = require("./validate");
|
|
73
|
+
Object.keys(_validate).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _validate[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _validate[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_calcFromDate","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_calcMinStay","_calcNightWithDeals","_calcToDate","_calcTooltips","_getCurrency","_validate"],"sources":["../../../../src/components/Deals/helpers/index.js"],"sourcesContent":["export * from './calcFromDate';\nexport * from './calcMinStay';\nexport * from './calcNightWithDeals';\nexport * from './calcToDate';\nexport * from './calcTooltips';\nexport * from './getCurrency';\nexport * from './validate';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,YAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,YAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,YAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,YAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,mBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,mBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,mBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,G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AAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAU,SAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAM,SAAA,CAAAV,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.validate = void 0;
|
|
7
|
+
var _calcNightWithDeals = require("./calcNightWithDeals");
|
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
var validate = exports.validate = function validate(_ref) {
|
|
15
|
+
var _ref$dataSource = _ref.dataSource,
|
|
16
|
+
_ref$dataSource2 = _ref$dataSource === void 0 ? {} : _ref$dataSource,
|
|
17
|
+
_ref$dataSource2$cale = _ref$dataSource2.calendar,
|
|
18
|
+
_ref$dataSource2$cale2 = _ref$dataSource2$cale === void 0 ? {} : _ref$dataSource2$cale,
|
|
19
|
+
_ref$dataSource2$cale3 = _ref$dataSource2$cale2.highlights,
|
|
20
|
+
highlights = _ref$dataSource2$cale3 === void 0 ? [] : _ref$dataSource2$cale3,
|
|
21
|
+
minNightsWithDeals = _ref$dataSource2$cale2.minNightsWithDeals,
|
|
22
|
+
_ref$error = _ref.error,
|
|
23
|
+
error = _ref$error === void 0 ? {} : _ref$error,
|
|
24
|
+
_ref$value = _ref.value,
|
|
25
|
+
_ref$value2 = _ref$value === void 0 ? {} : _ref$value,
|
|
26
|
+
_ref$value2$calendar = _ref$value2.calendar,
|
|
27
|
+
_ref$value2$calendar2 = _ref$value2$calendar === void 0 ? [] : _ref$value2$calendar,
|
|
28
|
+
_ref$value2$calendar3 = _slicedToArray(_ref$value2$calendar2, 2),
|
|
29
|
+
from = _ref$value2$calendar3[0],
|
|
30
|
+
to = _ref$value2$calendar3[1];
|
|
31
|
+
var valid = true;
|
|
32
|
+
if (!from || !to) valid = false;
|
|
33
|
+
if (from && to && (0, _calcNightWithDeals.calcNightWithDeals)(from, to, highlights) < minNightsWithDeals) valid = false;
|
|
34
|
+
if (error.occupation) valid = false;
|
|
35
|
+
return valid;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.js","names":["_calcNightWithDeals","require","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","o","minLen","_arrayLikeToArray","n","Object","prototype","toString","call","slice","constructor","name","Array","from","test","len","length","arr2","r","l","t","Symbol","iterator","e","u","a","f","next","done","push","value","return","isArray","validate","exports","_ref","_ref$dataSource","dataSource","_ref$dataSource2","_ref$dataSource2$cale","calendar","_ref$dataSource2$cale2","_ref$dataSource2$cale3","highlights","minNightsWithDeals","_ref$error","error","_ref$value","_ref$value2","_ref$value2$calendar","_ref$value2$calendar2","_ref$value2$calendar3","to","valid","calcNightWithDeals","occupation"],"sources":["../../../../src/components/Deals/helpers/validate.js"],"sourcesContent":["import { calcNightWithDeals } from './calcNightWithDeals';\n\nexport const validate = ({\n dataSource: { calendar: { highlights = [], minNightsWithDeals } = {} } = {},\n error = {},\n value: { calendar: [from, to] = [] } = {},\n}) => {\n let valid = true;\n\n if (!from || !to) valid = false;\n if (from && to && calcNightWithDeals(from, to, highlights) < minNightsWithDeals) valid = false;\n if (error.occupation) valid = false;\n\n return valid;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAA0D,SAAAC,eAAAC,GAAA,EAAAC,CAAA,WAAAC,eAAA,CAAAF,GAAA,KAAAG,qBAAA,CAAAH,GAAA,EAAAC,CAAA,KAAAG,2BAAA,CAAAJ,GAAA,EAAAC,CAAA,KAAAI,gBAAA;AAAA,SAAAA,iBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAG,CAAA,EAAAC,MAAA,SAAAD,CAAA,qBAAAA,CAAA,sBAAAE,iBAAA,CAAAF,CAAA,EAAAC,MAAA,OAAAE,CAAA,GAAAC,MAAA,CAAAC,SAAA,CAAAC,QAAA,CAAAC,IAAA,CAAAP,CAAA,EAAAQ,KAAA,aAAAL,CAAA,iBAAAH,CAAA,CAAAS,WAAA,EAAAN,CAAA,GAAAH,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G,KAAK;EAC9F,IAAIP,KAAK,CAACS,UAAU,EAAEF,KAAK,GAAG,KAAK;EAEnC,OAAOA,KAAK;AACd,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Deals.Deals;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Deals = require("./Deals");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Deals","require"],"sources":["../../../src/components/Deals/index.js"],"sourcesContent":["export { Deals as default } from './Deals';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Environment = void 0;
|
|
8
|
+
var _dataSources = require("@mirai/data-sources");
|
|
9
|
+
var _locale = require("@mirai/locale");
|
|
10
|
+
var _ui = require("@mirai/ui");
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var style = _interopRequireWildcard(require("./Environment.module.css"));
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
var LOCALES = ['en-GB', 'es-ES', 'fr-FR', 'de-DE', 'ja-JP', 'it-IT', 'pt-PT', 'da-DK', 'fi-FI', 'nb-NO', 'nl-NL', 'pl-PL', 'ru-RU', 'sv-SE', 'tr-TR', 'zh-CN', 'cs-CZ', 'el-GR', 'ar-DZ', 'hu-HU', 'ca-ES', 'eu-ES'];
|
|
17
|
+
var Environment = exports.Environment = function Environment() {
|
|
18
|
+
var _useStore = (0, _dataSources.useStore)(),
|
|
19
|
+
set = _useStore.set,
|
|
20
|
+
_useStore$value = _useStore.value,
|
|
21
|
+
currency = _useStore$value.currency,
|
|
22
|
+
locale = _useStore$value.locale;
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
24
|
+
row: true
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_ui.Select, {
|
|
26
|
+
name: "locale",
|
|
27
|
+
options: LOCALES,
|
|
28
|
+
value: locale,
|
|
29
|
+
onChange: function onChange(value) {
|
|
30
|
+
return set({
|
|
31
|
+
locale: value
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
className: style.container
|
|
35
|
+
}), /*#__PURE__*/_react.default.createElement(_ui.Select, {
|
|
36
|
+
name: "currency",
|
|
37
|
+
options: _locale.CURRENCIES,
|
|
38
|
+
value: currency,
|
|
39
|
+
onChange: function onChange(value) {
|
|
40
|
+
return set({
|
|
41
|
+
currency: value
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
className: style.container
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=Environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Environment.js","names":["_dataSources","require","_locale","_ui","_react","_interopRequireDefault","style","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","LOCALES","Environment","exports","_useStore","useStore","_useStore$value","value","currency","locale","createElement","View","row","Select","name","options","onChange","className","container","CURRENCIES"],"sources":["../../../src/components/Environment/Environment.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { CURRENCIES } from '@mirai/locale';\nimport { Select, View } from '@mirai/ui';\nimport React from 'react';\n\nimport * as style from './Environment.module.css';\n\nconst LOCALES = [\n 'en-GB',\n 'es-ES',\n 'fr-FR',\n 'de-DE',\n 'ja-JP',\n 'it-IT',\n 'pt-PT',\n 'da-DK',\n 'fi-FI',\n 'nb-NO',\n 'nl-NL',\n 'pl-PL',\n 'ru-RU',\n 'sv-SE',\n 'tr-TR',\n 'zh-CN',\n 'cs-CZ',\n 'el-GR',\n 'ar-DZ',\n 'hu-HU',\n 'ca-ES',\n 'eu-ES',\n];\n\nexport const Environment = () => {\n const {\n set,\n value: { currency, locale },\n } = useStore();\n\n return (\n <View row>\n <Select\n name=\"locale\"\n options={LOCALES}\n value={locale}\n onChange={(value) => set({ locale: value })}\n className={style.container}\n />\n <Select\n name=\"currency\"\n options={CURRENCIES}\n value={currency}\n onChange={(value) => set({ currency: value })}\n className={style.container}\n />\n </View>\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAC,uBAAA,CAAAN,OAAA;AAAkD,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAF,wBAAAM,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAL,GAAA,YAAAI,KAAA,CAAAE,GAAA,CAAAN,GAAA,SAAAO,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAZ,GAAA,QAAAY,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAf,GAAA,EAAAY,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAX,GAAA,EAAAY,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,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EzC,KAAK,CAAC0C;EAAU,CAC5B,CAAC,eACF5C,MAAA,CAAAY,OAAA,CAAAwB,aAAA,CAACrC,GAAA,CAAAwC,MAAM;IACLC,IAAI,EAAC,UAAU;IACfC,OAAO,EAAEI,kBAAW;IACpBZ,KAAK,EAAEC,QAAS;IAChBQ,QAAQ,EAAE,SAAAA,SAACT,KAAK;MAAA,OAAKP,GAAG,CAAC;QAAEQ,QAAQ,EAAED;MAAM,CAAC,CAAC;IAAA,CAAC;IAC9CU,SAAS,EAAEzC,KAAK,CAAC0C;EAAU,CAC5B,CACG,CAAC;AAEX,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Environment.Environment;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Environment = require("./Environment");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Environment","require"],"sources":["../../../src/components/Environment/index.js"],"sourcesContent":["export { Environment as default } from './Environment';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.VIEW = exports.TYPE = exports.FIELD = void 0;
|
|
7
|
+
var _helpers = require("../helpers");
|
|
8
|
+
var FIELD = exports.FIELD = {
|
|
9
|
+
PLACE: {
|
|
10
|
+
icon: _helpers.ICON.BED,
|
|
11
|
+
tabIndex: 0
|
|
12
|
+
},
|
|
13
|
+
CALENDAR: {
|
|
14
|
+
icon: _helpers.ICON.CALENDAR,
|
|
15
|
+
tabIndex: 1
|
|
16
|
+
},
|
|
17
|
+
OCCUPATION: {
|
|
18
|
+
icon: _helpers.ICON.PERSON,
|
|
19
|
+
tabIndex: 2
|
|
20
|
+
},
|
|
21
|
+
PROMOCODE: {
|
|
22
|
+
icon: _helpers.ICON.LOCK,
|
|
23
|
+
inputMode: true,
|
|
24
|
+
tabIndex: 3
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var VIEW = exports.VIEW = {
|
|
28
|
+
PLACE: 'place',
|
|
29
|
+
CALENDAR: 'calendar',
|
|
30
|
+
OCCUPATION: 'occupation',
|
|
31
|
+
PROMOCODE: 'promocode'
|
|
32
|
+
};
|
|
33
|
+
var TYPE = exports.TYPE = {
|
|
34
|
+
CHAIN: 'chain',
|
|
35
|
+
HOTEL: 'hotel'
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Finder.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Finder.constants.js","names":["_helpers","require","FIELD","exports","PLACE","icon","ICON","BED","tabIndex","CALENDAR","OCCUPATION","PERSON","PROMOCODE","LOCK","inputMode","VIEW","TYPE","CHAIN","HOTEL"],"sources":["../../../src/components/Finder/Finder.constants.js"],"sourcesContent":["import { ICON } from '../helpers';\n\nconst FIELD = {\n PLACE: {\n icon: ICON.BED,\n tabIndex: 0,\n },\n CALENDAR: {\n icon: ICON.CALENDAR,\n tabIndex: 1,\n },\n OCCUPATION: {\n icon: ICON.PERSON,\n tabIndex: 2,\n },\n PROMOCODE: {\n icon: ICON.LOCK,\n inputMode: true,\n tabIndex: 3,\n },\n};\n\nconst VIEW = {\n PLACE: 'place',\n CALENDAR: 'calendar',\n OCCUPATION: 'occupation',\n PROMOCODE: 'promocode',\n};\n\nconst TYPE = {\n CHAIN: 'chain',\n HOTEL: 'hotel',\n};\n\nexport { FIELD, TYPE, VIEW };\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACZE,KAAK,EAAE;IACLC,IAAI,EAAEC,aAAI,CAACC,GAAG;IACdC,QAAQ,EAAE;EACZ,CAAC;EACDC,QAAQ,EAAE;IACRJ,IAAI,EAAEC,aAAI,CAACG,QAAQ;IACnBD,QAAQ,EAAE;EACZ,CAAC;EACDE,UAAU,EAAE;IACVL,IAAI,EAAEC,aAAI,CAACK,MAAM;IACjBH,QAAQ,EAAE;EACZ,CAAC;EACDI,SAAS,EAAE;IACTP,IAAI,EAAEC,aAAI,CAACO,IAAI;IACfC,SAAS,EAAE,IAAI;IACfN,QAAQ,EAAE;EACZ;AACF,CAAC;AAED,IAAMO,IAAI,GAAAZ,OAAA,CAAAY,IAAA,GAAG;EACXX,KAAK,EAAE,OAAO;EACdK,QAAQ,EAAE,UAAU;EACpBC,UAAU,EAAE,YAAY;EACxBE,SAAS,EAAE;AACb,CAAC;AAED,IAAMI,IAAI,GAAAb,OAAA,CAAAa,IAAA,GAAG;EACXC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE;AACT,CAAC"}
|