@mirai/core 0.3.37 → 0.3.38
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 +50 -67
- package/build/Core.Notifications.js.map +1 -1
- package/build/Core.constants.js +11 -14
- 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 +46 -73
- package/build/Core.js.map +1 -1
- package/build/Core.provider.js +41 -91
- package/build/Core.provider.js.map +1 -1
- package/build/components/Booking/Booking.constants.js +14 -14
- package/build/components/Booking/Booking.constants.js.map +1 -1
- package/build/components/Booking/Booking.js +100 -134
- package/build/components/Booking/Booking.js.map +1 -1
- package/build/components/Booking/Booking.l10n.js +37 -29
- package/build/components/Booking/Booking.l10n.js.map +1 -1
- package/build/components/Booking/Booking.skeleton.js +6 -4
- package/build/components/Booking/Booking.skeleton.js.map +1 -1
- package/build/components/Booking/components/Field/Field.js +23 -23
- package/build/components/Booking/components/Field/Field.js.map +1 -1
- package/build/components/Booking/components/Field/Field.l10n.js +1 -1
- package/build/components/Booking/components/Field/Field.l10n.js.map +1 -1
- package/build/components/Booking/components/Field/index.js +1 -1
- package/build/components/Booking/components/Field/index.js.map +1 -1
- package/build/components/Booking/components/index.js +1 -1
- package/build/components/Booking/components/index.js.map +1 -1
- package/build/components/Booking/helpers/getOccupationCaption.js +39 -44
- package/build/components/Booking/helpers/getOccupationCaption.js.map +1 -1
- package/build/components/Booking/helpers/index.js +2 -2
- package/build/components/Booking/helpers/index.js.map +1 -1
- package/build/components/Booking/helpers/trackStateChange.js +45 -41
- package/build/components/Booking/helpers/trackStateChange.js.map +1 -1
- package/build/components/Booking/index.js +2 -2
- package/build/components/Booking/index.js.map +1 -1
- package/build/components/Booking/partials/Booking.Details.js +56 -57
- package/build/components/Booking/partials/Booking.Details.js.map +1 -1
- package/build/components/Booking/partials/Booking.FormCancel.js +30 -32
- package/build/components/Booking/partials/Booking.FormCancel.js.map +1 -1
- package/build/components/Booking/partials/Booking.FormEdit.js +5 -3
- package/build/components/Booking/partials/Booking.FormEdit.js.map +1 -1
- package/build/components/Booking/partials/Booking.FormResend.js +16 -13
- package/build/components/Booking/partials/Booking.FormResend.js.map +1 -1
- package/build/components/Booking/partials/Booking.Menu.js +56 -79
- package/build/components/Booking/partials/Booking.Menu.js.map +1 -1
- package/build/components/Booking/partials/Booking.Modal.js +70 -107
- package/build/components/Booking/partials/Booking.Modal.js.map +1 -1
- package/build/components/Booking/partials/Booking.ModalAgency.js +17 -17
- package/build/components/Booking/partials/Booking.ModalAgency.js.map +1 -1
- package/build/components/Booking/partials/Booking.Others.js +31 -45
- package/build/components/Booking/partials/Booking.Others.js.map +1 -1
- package/build/components/Booking/partials/Booking.PriceBreakdown.js +62 -87
- package/build/components/Booking/partials/Booking.PriceBreakdown.js.map +1 -1
- package/build/components/Booking/partials/Booking.Summary.js +48 -63
- package/build/components/Booking/partials/Booking.Summary.js.map +1 -1
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Details.test.js.snap +12 -12
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +20 -20
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +4 -4
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap +4 -4
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Summary.test.js.snap +4 -4
- package/build/components/Booking/partials/index.js +6 -6
- package/build/components/Booking/partials/index.js.map +1 -1
- package/build/components/BookingQuery/BookingQuery.constants.js +2 -2
- package/build/components/BookingQuery/BookingQuery.constants.js.map +1 -1
- package/build/components/BookingQuery/BookingQuery.js +53 -106
- package/build/components/BookingQuery/BookingQuery.js.map +1 -1
- package/build/components/BookingQuery/BookingQuery.l10n.js +1 -1
- package/build/components/BookingQuery/BookingQuery.l10n.js.map +1 -1
- package/build/components/BookingQuery/BookingQuery.skeleton.js +2 -3
- package/build/components/BookingQuery/BookingQuery.skeleton.js.map +1 -1
- package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +12 -12
- package/build/components/BookingQuery/helpers/getErrorText.js +2 -3
- package/build/components/BookingQuery/helpers/getErrorText.js.map +1 -1
- package/build/components/BookingQuery/helpers/index.js +1 -1
- package/build/components/BookingQuery/helpers/index.js.map +1 -1
- package/build/components/BookingQuery/index.js +2 -2
- package/build/components/BookingQuery/index.js.map +1 -1
- package/build/components/Checkout/Checkout.constants.js +12 -12
- package/build/components/Checkout/Checkout.constants.js.map +1 -1
- package/build/components/Checkout/Checkout.js +84 -118
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.l10n.js +12 -13
- package/build/components/Checkout/Checkout.l10n.js.map +1 -1
- package/build/components/Checkout/Checkout.skeleton.js +6 -4
- package/build/components/Checkout/Checkout.skeleton.js.map +1 -1
- package/build/components/Checkout/components/InputRadio/InputRadio.js +24 -30
- package/build/components/Checkout/components/InputRadio/InputRadio.js.map +1 -1
- package/build/components/Checkout/components/InputRadio/index.js +1 -1
- package/build/components/Checkout/components/InputRadio/index.js.map +1 -1
- package/build/components/Checkout/components/index.js +1 -1
- package/build/components/Checkout/components/index.js.map +1 -1
- package/build/components/Checkout/helpers/generateId.js +6 -5
- package/build/components/Checkout/helpers/generateId.js.map +1 -1
- package/build/components/Checkout/helpers/getFieldProps.js +24 -31
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/helpers/getVariant.js +11 -17
- package/build/components/Checkout/helpers/getVariant.js.map +1 -1
- package/build/components/Checkout/helpers/index.js +5 -5
- package/build/components/Checkout/helpers/index.js.map +1 -1
- package/build/components/Checkout/helpers/testDNI.js +3 -2
- package/build/components/Checkout/helpers/testDNI.js.map +1 -1
- package/build/components/Checkout/helpers/trackDataSource.js +72 -72
- package/build/components/Checkout/helpers/trackDataSource.js.map +1 -1
- package/build/components/Checkout/helpers/trackForm.js +13 -11
- package/build/components/Checkout/helpers/trackForm.js.map +1 -1
- package/build/components/Checkout/index.js +2 -2
- package/build/components/Checkout/index.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Confirmation.js +123 -160
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Details.js +72 -82
- package/build/components/Checkout/partials/Checkout.Details.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +102 -146
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Session.js +35 -43
- package/build/components/Checkout/partials/Checkout.Session.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Summary.Line.js +21 -20
- package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Summary.js +86 -80
- package/build/components/Checkout/partials/Checkout.Summary.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +6 -6
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +6 -6
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +4 -4
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +8 -8
- package/build/components/Checkout/partials/index.js +5 -5
- package/build/components/Checkout/partials/index.js.map +1 -1
- package/build/components/Deals/Deals.Calendar.js +82 -97
- package/build/components/Deals/Deals.Calendar.js.map +1 -1
- package/build/components/Deals/Deals.constants.js +5 -5
- package/build/components/Deals/Deals.constants.js.map +1 -1
- package/build/components/Deals/Deals.js +111 -165
- package/build/components/Deals/Deals.js.map +1 -1
- package/build/components/Deals/Deals.l10n.js +11 -9
- package/build/components/Deals/Deals.l10n.js.map +1 -1
- package/build/components/Deals/Deals.skeleton.js +5 -3
- package/build/components/Deals/Deals.skeleton.js.map +1 -1
- package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +3 -3
- package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +17 -17
- package/build/components/Deals/helpers/calcFromDate.js +7 -6
- package/build/components/Deals/helpers/calcFromDate.js.map +1 -1
- package/build/components/Deals/helpers/calcMinStay.js +6 -7
- package/build/components/Deals/helpers/calcMinStay.js.map +1 -1
- package/build/components/Deals/helpers/calcNightWithDeals.js +5 -4
- package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -1
- package/build/components/Deals/helpers/calcToDate.js +5 -10
- package/build/components/Deals/helpers/calcToDate.js.map +1 -1
- package/build/components/Deals/helpers/calcTooltips.js +15 -14
- package/build/components/Deals/helpers/calcTooltips.js.map +1 -1
- package/build/components/Deals/helpers/getCurrency.js +11 -9
- package/build/components/Deals/helpers/getCurrency.js.map +1 -1
- package/build/components/Deals/helpers/index.js +7 -7
- package/build/components/Deals/helpers/index.js.map +1 -1
- package/build/components/Deals/helpers/validate.js +15 -24
- package/build/components/Deals/helpers/validate.js.map +1 -1
- package/build/components/Deals/index.js +2 -2
- package/build/components/Deals/index.js.map +1 -1
- package/build/components/Environment/Environment.State.js +60 -68
- package/build/components/Environment/Environment.State.js.map +1 -1
- package/build/components/Environment/Environment.constants.js +1 -1
- package/build/components/Environment/Environment.constants.js.map +1 -1
- package/build/components/Environment/Environment.js +22 -25
- package/build/components/Environment/Environment.js.map +1 -1
- package/build/components/Environment/index.js +2 -2
- package/build/components/Environment/index.js.map +1 -1
- package/build/components/Finder/Finder.compact.js +54 -74
- package/build/components/Finder/Finder.compact.js.map +1 -1
- package/build/components/Finder/Finder.constants.js +9 -7
- package/build/components/Finder/Finder.constants.js.map +1 -1
- package/build/components/Finder/Finder.js +121 -152
- package/build/components/Finder/Finder.js.map +1 -1
- package/build/components/Finder/Finder.l10n.js +1 -1
- package/build/components/Finder/Finder.l10n.js.map +1 -1
- package/build/components/Finder/Finder.skeleton.js +24 -23
- package/build/components/Finder/Finder.skeleton.js.map +1 -1
- package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +44 -44
- package/build/components/Finder/components/Calendar/Calendar.constants.js +6 -6
- package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -1
- package/build/components/Finder/components/Calendar/Calendar.js +77 -125
- package/build/components/Finder/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Finder/components/Calendar/Calendar.l10n.js +13 -13
- package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -1
- package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +8 -8
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +37 -74
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -1
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +4 -3
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -1
- package/build/components/Finder/components/Calendar/helpers/index.js +2 -2
- package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -1
- package/build/components/Finder/components/Calendar/index.js +1 -1
- package/build/components/Finder/components/Calendar/index.js.map +1 -1
- package/build/components/Finder/components/Places/Places.js +38 -46
- package/build/components/Finder/components/Places/Places.js.map +1 -1
- package/build/components/Finder/components/Places/Places.l10n.js +1 -1
- package/build/components/Finder/components/Places/Places.l10n.js.map +1 -1
- package/build/components/Finder/components/Places/helpers/calcColumns.js +27 -26
- package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -1
- package/build/components/Finder/components/Places/helpers/index.js +1 -1
- package/build/components/Finder/components/Places/helpers/index.js.map +1 -1
- package/build/components/Finder/components/Places/index.js +1 -1
- package/build/components/Finder/components/Places/index.js.map +1 -1
- package/build/components/Finder/components/index.js +2 -2
- package/build/components/Finder/components/index.js.map +1 -1
- package/build/components/Finder/helpers/getDataSource.js +35 -42
- package/build/components/Finder/helpers/getDataSource.js.map +1 -1
- package/build/components/Finder/helpers/getForwarderUrl.js +37 -51
- package/build/components/Finder/helpers/getForwarderUrl.js.map +1 -1
- package/build/components/Finder/helpers/getHotels.js +17 -29
- package/build/components/Finder/helpers/getHotels.js.map +1 -1
- package/build/components/Finder/helpers/getOccupationDataSource.js +53 -67
- package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -1
- package/build/components/Finder/helpers/getPlaceCaption.js +6 -6
- package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -1
- package/build/components/Finder/helpers/getPlacesOptions.js +24 -30
- package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -1
- package/build/components/Finder/helpers/index.js +9 -9
- package/build/components/Finder/helpers/index.js.map +1 -1
- package/build/components/Finder/helpers/parseCalendarProps.js +13 -14
- package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -1
- package/build/components/Finder/helpers/parseValue.js +12 -10
- package/build/components/Finder/helpers/parseValue.js.map +1 -1
- package/build/components/Finder/helpers/validate.js +5 -4
- package/build/components/Finder/helpers/validate.js.map +1 -1
- package/build/components/Finder/index.js +2 -2
- package/build/components/Finder/index.js.map +1 -1
- package/build/components/Profile/Profile.Account.js +59 -118
- package/build/components/Profile/Profile.Account.js.map +1 -1
- package/build/components/Profile/Profile.Password.js +55 -105
- package/build/components/Profile/Profile.Password.js.map +1 -1
- package/build/components/Profile/Profile.Signout.js +31 -68
- package/build/components/Profile/Profile.Signout.js.map +1 -1
- package/build/components/Profile/Profile.constants.js +3 -3
- package/build/components/Profile/Profile.constants.js.map +1 -1
- package/build/components/Profile/Profile.js +20 -30
- package/build/components/Profile/Profile.js.map +1 -1
- package/build/components/Profile/Profile.l10n.js +1 -1
- package/build/components/Profile/Profile.l10n.js.map +1 -1
- package/build/components/Profile/Profile.skeleton.js +108 -109
- package/build/components/Profile/Profile.skeleton.js.map +1 -1
- package/build/components/Profile/components/Bookings/Booking.constants.js +5 -5
- package/build/components/Profile/components/Bookings/Booking.constants.js.map +1 -1
- package/build/components/Profile/components/Bookings/Booking.l10n.js +1 -1
- package/build/components/Profile/components/Bookings/Booking.l10n.js.map +1 -1
- package/build/components/Profile/components/Bookings/Bookings.Item.js +36 -35
- package/build/components/Profile/components/Bookings/Bookings.Item.js.map +1 -1
- package/build/components/Profile/components/Bookings/Bookings.Search.js +23 -34
- package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -1
- package/build/components/Profile/components/Bookings/Bookings.js +62 -92
- package/build/components/Profile/components/Bookings/Bookings.js.map +1 -1
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +12 -18
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -1
- package/build/components/Profile/components/Bookings/helpers/index.js +1 -1
- package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -1
- package/build/components/Profile/components/Bookings/index.js +1 -1
- package/build/components/Profile/components/Bookings/index.js.map +1 -1
- package/build/components/Profile/components/index.js +1 -1
- package/build/components/Profile/components/index.js.map +1 -1
- package/build/components/Profile/index.js +2 -2
- package/build/components/Profile/index.js.map +1 -1
- package/build/components/Rates/Rates.Filter.js +83 -96
- package/build/components/Rates/Rates.Filter.js.map +1 -1
- package/build/components/Rates/Rates.Footer.js +70 -87
- package/build/components/Rates/Rates.Footer.js.map +1 -1
- package/build/components/Rates/Rates.Skeleton.js +66 -66
- package/build/components/Rates/Rates.Skeleton.js.map +1 -1
- package/build/components/Rates/Rates.js +88 -191
- package/build/components/Rates/Rates.js.map +1 -1
- package/build/components/Rates/Rates.l10n.js +1 -1
- package/build/components/Rates/Rates.l10n.js.map +1 -1
- package/build/components/Rates/components/Item/Item.js +96 -131
- package/build/components/Rates/components/Item/Item.js.map +1 -1
- package/build/components/Rates/components/Item/Item.l10n.js +1 -1
- package/build/components/Rates/components/Item/Item.l10n.js.map +1 -1
- package/build/components/Rates/components/Item/components/Amenities/Amenities.js +15 -17
- package/build/components/Rates/components/Item/components/Amenities/Amenities.js.map +1 -1
- package/build/components/Rates/components/Item/components/Amenities/index.js +1 -1
- package/build/components/Rates/components/Item/components/Amenities/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/Discount/Discount.js +48 -43
- package/build/components/Rates/components/Item/components/Discount/Discount.js.map +1 -1
- package/build/components/Rates/components/Item/components/Discount/index.js +1 -1
- package/build/components/Rates/components/Item/components/Discount/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/Features/Features.js +21 -28
- package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
- package/build/components/Rates/components/Item/components/Features/index.js +1 -1
- package/build/components/Rates/components/Item/components/Features/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +23 -21
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/index.js +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +16 -16
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/index.js +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/index.js +5 -5
- package/build/components/Rates/components/Item/components/index.js.map +1 -1
- package/build/components/Rates/components/Item/index.js +3 -3
- package/build/components/Rates/components/Item/index.js.map +1 -1
- package/build/components/Rates/components/index.js +1 -1
- package/build/components/Rates/components/index.js.map +1 -1
- package/build/components/Rates/helpers/getForwarderUrl.js +39 -52
- package/build/components/Rates/helpers/getForwarderUrl.js.map +1 -1
- package/build/components/Rates/helpers/index.js +1 -1
- package/build/components/Rates/helpers/index.js.map +1 -1
- package/build/components/Rates/index.js +2 -2
- package/build/components/Rates/index.js.map +1 -1
- package/build/components/Session/Session.Account.js +51 -60
- package/build/components/Session/Session.Account.js.map +1 -1
- package/build/components/Session/Session.Login.Modal.js +104 -205
- package/build/components/Session/Session.Login.Modal.js.map +1 -1
- package/build/components/Session/Session.Login.js +27 -36
- package/build/components/Session/Session.Login.js.map +1 -1
- package/build/components/Session/Session.constants.js +5 -5
- package/build/components/Session/Session.constants.js.map +1 -1
- package/build/components/Session/Session.js +18 -31
- package/build/components/Session/Session.js.map +1 -1
- package/build/components/Session/Session.l10n.js +1 -1
- package/build/components/Session/Session.l10n.js.map +1 -1
- package/build/components/Session/Session.skeleton.js +7 -8
- package/build/components/Session/Session.skeleton.js.map +1 -1
- package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +15 -15
- package/build/components/Session/helpers/getDomain.js +4 -3
- package/build/components/Session/helpers/getDomain.js.map +1 -1
- package/build/components/Session/helpers/getSignupUrl.js +6 -4
- package/build/components/Session/helpers/getSignupUrl.js.map +1 -1
- package/build/components/Session/helpers/index.js +4 -4
- package/build/components/Session/helpers/index.js.map +1 -1
- package/build/components/Session/helpers/template.js +7 -9
- package/build/components/Session/helpers/template.js.map +1 -1
- package/build/components/Session/helpers/trackLogin.js +12 -9
- package/build/components/Session/helpers/trackLogin.js.map +1 -1
- package/build/components/Session/index.js +2 -2
- package/build/components/Session/index.js.map +1 -1
- package/build/components/Signup/Signup.constants.js +1 -1
- package/build/components/Signup/Signup.constants.js.map +1 -1
- package/build/components/Signup/Signup.js +54 -122
- package/build/components/Signup/Signup.js.map +1 -1
- package/build/components/Signup/Signup.l10n.js +1 -1
- package/build/components/Signup/Signup.l10n.js.map +1 -1
- package/build/components/Signup/Signup.skeleton.js +81 -82
- package/build/components/Signup/Signup.skeleton.js.map +1 -1
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +9 -9
- package/build/components/Signup/index.js +2 -2
- package/build/components/Signup/index.js.map +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.constants.js +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.js +29 -30
- package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -1
- package/build/components/__shared__/BookingDates/index.js +1 -1
- package/build/components/__shared__/BookingDates/index.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.Row.js +46 -53
- package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.constants.js +3 -3
- package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.js +34 -51
- package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -1
- package/build/components/__shared__/BookingTable/index.js +1 -1
- package/build/components/__shared__/BookingTable/index.js.map +1 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.js +16 -15
- package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +1 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +3 -3
- package/build/components/__shared__/ButtonMore/index.js +1 -1
- package/build/components/__shared__/ButtonMore/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +5 -5
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js +132 -218
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +4 -4
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +30 -45
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +11 -8
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +2 -2
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +74 -91
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +9 -7
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +63 -83
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +7 -8
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +11 -9
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +49 -66
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +3 -3
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +7 -5
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +13 -15
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/index.js +4 -4
- package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +19 -14
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +5 -16
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +24 -22
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +10 -7
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +23 -21
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/index.js +3 -3
- package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +11 -9
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +7 -9
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/index.js.map +1 -1
- package/build/components/__shared__/Field/Field.js +32 -36
- package/build/components/__shared__/Field/Field.js.map +1 -1
- package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +14 -14
- package/build/components/__shared__/Field/index.js +1 -1
- package/build/components/__shared__/Field/index.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js +34 -39
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +1 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +16 -16
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +21 -25
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +31 -29
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/helpers/index.js +2 -2
- package/build/components/__shared__/FieldOccupation/helpers/index.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/index.js +1 -1
- package/build/components/__shared__/FieldOccupation/index.js.map +1 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js +12 -12
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +1 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -1
- package/build/components/__shared__/FieldPromocode/index.js +1 -1
- package/build/components/__shared__/FieldPromocode/index.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.Group.js +32 -36
- package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.constants.js +22 -19
- package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.js +71 -118
- package/build/components/__shared__/Occupation/Occupation.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.l10n.js +18 -16
- package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -1
- package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +7 -7
- package/build/components/__shared__/Occupation/helpers/checkRoom.js +19 -19
- package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js +47 -51
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +5 -16
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js +7 -15
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +8 -9
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/index.js +6 -6
- package/build/components/__shared__/Occupation/helpers/index.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js +17 -15
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/toParties.js +18 -19
- package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -1
- package/build/components/__shared__/Occupation/index.js +2 -2
- package/build/components/__shared__/Occupation/index.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.constants.js +6 -6
- package/build/components/__shared__/Payment/Payment.constants.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.js +78 -94
- package/build/components/__shared__/Payment/Payment.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.l10n.js +1 -1
- package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +10 -10
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +64 -85
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +8 -5
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/index.js +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +29 -46
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/index.js +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.constants.js +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.js +34 -54
- package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +23 -31
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +3 -4
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +17 -12
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/index.js +5 -5
- package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +2 -3
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +4 -5
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +3 -2
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/index.js +1 -1
- package/build/components/__shared__/Payment/components/Card/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +6 -6
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.js +136 -155
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +15 -15
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +9 -7
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js +2 -2
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/index.js +1 -1
- package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js +19 -36
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/Tpv/index.js +1 -1
- package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/index.js +5 -5
- package/build/components/__shared__/Payment/components/index.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getCaption.js +31 -25
- package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getComponent.js +23 -17
- package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getImage.js +6 -4
- package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/index.js +3 -3
- package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/index.js +5 -5
- package/build/components/__shared__/Payment/index.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +21 -20
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +63 -66
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/index.js +1 -1
- package/build/components/__shared__/PriceBreakdown/index.js.map +1 -1
- package/build/components/__shared__/Skeleton/Skeleton.js +13 -19
- package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -1
- package/build/components/__shared__/Skeleton/index.js +1 -1
- package/build/components/__shared__/Skeleton/index.js.map +1 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +10 -8
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +1 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -1
- package/build/components/__shared__/TextRequiredFields/index.js +1 -1
- package/build/components/__shared__/TextRequiredFields/index.js.map +1 -1
- package/build/components/__shared__/index.js +12 -12
- package/build/components/__shared__/index.js.map +1 -1
- package/build/components/helpers/ICON.AMENITIES.js +123 -83
- package/build/components/helpers/ICON.AMENITIES.js.map +1 -1
- package/build/components/helpers/ICON.js +43 -29
- package/build/components/helpers/ICON.js.map +1 -1
- package/build/components/helpers/constants.js +15 -13
- package/build/components/helpers/constants.js.map +1 -1
- package/build/components/helpers/getButtonPaymentKey.js +17 -11
- package/build/components/helpers/getButtonPaymentKey.js.map +1 -1
- package/build/components/helpers/getButtonPaymentKey.l10n.js +1 -1
- package/build/components/helpers/getButtonPaymentKey.l10n.js.map +1 -1
- package/build/components/helpers/getCalendarCaption.js +13 -25
- package/build/components/helpers/getCalendarCaption.js.map +1 -1
- package/build/components/helpers/getCountryCode.js +3 -2
- package/build/components/helpers/getCountryCode.js.map +1 -1
- package/build/components/helpers/index.js +13 -13
- package/build/components/helpers/index.js.map +1 -1
- package/build/components/helpers/isJest.js +1 -1
- package/build/components/helpers/isJest.js.map +1 -1
- package/build/components/helpers/parseHtml.js +37 -38
- package/build/components/helpers/parseHtml.js.map +1 -1
- package/build/components/helpers/parseToParties.js +5 -4
- package/build/components/helpers/parseToParties.js.map +1 -1
- package/build/components/helpers/testPassword.js +3 -2
- package/build/components/helpers/testPassword.js.map +1 -1
- package/build/components/helpers/toQueryString.js +9 -12
- package/build/components/helpers/toQueryString.js.map +1 -1
- package/build/components/helpers/toUrlParams.js +7 -9
- package/build/components/helpers/toUrlParams.js.map +1 -1
- package/build/components/helpers/trace.js +8 -8
- package/build/components/helpers/trace.js.map +1 -1
- package/build/components/helpers/translate.js +11 -10
- package/build/components/helpers/translate.js.map +1 -1
- package/build/components/index.js +22 -80
- package/build/components/index.js.map +1 -1
- package/build/helpers/checkSession.js +20 -42
- package/build/helpers/checkSession.js.map +1 -1
- package/build/helpers/consolidateStore.js +148 -160
- package/build/helpers/consolidateStore.js.map +1 -1
- package/build/helpers/fetchConfig.js +16 -57
- package/build/helpers/fetchConfig.js.map +1 -1
- package/build/helpers/fetchCookies.js +12 -13
- package/build/helpers/fetchCookies.js.map +1 -1
- package/build/helpers/fetchSession.js +33 -30
- package/build/helpers/fetchSession.js.map +1 -1
- package/build/helpers/fetchUrlParams.js +3 -2
- package/build/helpers/fetchUrlParams.js.map +1 -1
- package/build/helpers/findComponents.js +20 -25
- package/build/helpers/findComponents.js.map +1 -1
- package/build/helpers/findDangerousCSSRules.js +21 -48
- package/build/helpers/findDangerousCSSRules.js.map +1 -1
- package/build/helpers/findInstance.js +20 -34
- 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 +6 -13
- package/build/helpers/getGhost.js.map +1 -1
- package/build/helpers/getLocale.js +12 -22
- package/build/helpers/getLocale.js.map +1 -1
- package/build/helpers/getTags.js +24 -30
- 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 +9 -8
- package/build/helpers/loadEnvironment.js.map +1 -1
- package/build/helpers/loadSentry.js +6 -7
- package/build/helpers/loadSentry.js.map +1 -1
- package/build/helpers/theme.js +17 -24
- package/build/helpers/theme.js.map +1 -1
- package/build/helpers/toOccupation.js +36 -48
- package/build/helpers/toOccupation.js.map +1 -1
- package/build/index.js +71 -120
- 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 +21 -49
- 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 +22 -54
- 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/Rates/constants.js +8 -8
- package/build/services/Rates/constants.js.map +1 -1
- package/build/services/Rates/get.js +195 -227
- package/build/services/Rates/get.js.map +1 -1
- package/build/services/Rates/helpers/getPrice.js +9 -7
- package/build/services/Rates/helpers/getPrice.js.map +1 -1
- package/build/services/Rates/helpers/index.js +4 -4
- package/build/services/Rates/helpers/index.js.map +1 -1
- package/build/services/Rates/helpers/normalizePrice.js +4 -3
- package/build/services/Rates/helpers/normalizePrice.js.map +1 -1
- package/build/services/Rates/helpers/parseAmenities.js +67 -89
- package/build/services/Rates/helpers/parseAmenities.js.map +1 -1
- package/build/services/Rates/helpers/parseDiscount.js +21 -21
- package/build/services/Rates/helpers/parseDiscount.js.map +1 -1
- package/build/services/Rates/index.js +1 -1
- package/build/services/Rates/index.js.map +1 -1
- package/build/services/index.js +3 -3
- package/build/services/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deals.js","names":["_dataSources","require","_locale","_services","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Deals","_Deals2","_Deals3","style","_helpers","_shared__","_helpers2","_toParties","_helpers3","_excluded","_excluded2","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","iter","Symbol","iterator","Array","from","isArray","_arrayLikeToArray","_regeneratorRuntime","e","t","r","n","o","value","a","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","_catch","delegateYield","ownKeys","getOwnPropertySymbols","filter","_objectSpread","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","asyncGeneratorStep","gen","reject","_next","_throw","info","error","_asyncToGenerator","fn","self","args","err","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","minLen","toString","test","len","arr2","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","Deals","exports","_ref","offerId","id","others","_useDevice","useDevice","isMobile","_useLocale","useLocale","translate","_useStore","useStore","_useStore$value","_useStore$value$cooki","cookies","currency","_useStore$value$deals","deals","hotel","language","locale","origin","_useStore$value$urlPa","urlParams","store","ref","useRef","_useState","useState","_useState2","busy","setBusy","_useState3","_useState4","dataSource","setDataSource","_useState5","_useState6","setError","_useState7","_useState8","visible","setVisible","_useState9","_useState10","visited","setVisited","useEffect","handleClickOutside","_ref2","_ref$current","current","contains","document","addEventListener","removeEventListener","_callee","_callee$","_context","t0","ServiceDeals","getCurrency","t1","_ref4","_ref4$occupation","occupation","_ref4$occupation2","_ref4$occupation2$min","minRooms","_ref4$occupation2$dat","handleChange","map","prepareRoom","concat","field","fieldValue","handleClear","handleSubmit","calendar","promoCode","params","idoffers","idtokenprovider","lang","checkin","dateFormat","format","nights","dateDiff","days","clientCode","parties","window","btoa","JSON","stringify","toParties","hsri","commissionCode","location","href","process","env","SERVICE_BOOKING","REDIRECT_PATH","toQueryString","className","testId","_value$calendar","_value$promoCode","isValid","validate","createElement","View","role","styles","row","header","Text","bold","headline","level","L10N","LABEL_SELECT_DATES_PERSONS","Action","onPress","action","Icon","ICON","CLEAR","actionIcon","ACTION_CLEAR","Calendar","FIELD","CALENDAR","onChange","event","extras","FieldOccupation","hotels","OCCUPATION","onError","onValid","FieldPromocode","PROMOCODE","onEnter","onLeave","footer","Button","disabled","large","wide","cta","ACTION_SEARCH","propTypes","PropTypes","string"],"sources":["../../../src/components/Deals/Deals.jsx"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useStore } from '@mirai/data-sources';\nimport { dateFormat, dateDiff, useLocale } from '@mirai/locale';\nimport { ServiceDeals } from '@mirai/services';\nimport { Action, Button, Icon, styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { Calendar } from './Deals.Calendar';\nimport { FIELD, REDIRECT_PATH } from './Deals.constants';\nimport { L10N } from './Deals.l10n';\nimport * as style from './Deals.module.css';\nimport { getCurrency, validate } from './helpers';\nimport { FieldOccupation, FieldPromocode } from '../__shared__';\nimport { prepareRoom } from '../__shared__/Occupation/helpers';\nimport { toParties } from '../__shared__/Occupation/helpers/toParties';\nimport { ICON, toQueryString } from '../helpers';\n\nconst Deals = ({ id: offerId, ...others }) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n const {\n set,\n value: { cookies = {}, currency, deals: value = {}, hotel, language, locale, origin, urlParams = {}, ...store },\n } = useStore();\n const ref = useRef(null);\n\n const [busy, setBusy] = useState(false);\n const [dataSource, setDataSource] = useState();\n const [error, setError] = useState({});\n const [visible, setVisible] = useState();\n const [visited, setVisited] = useState({});\n\n useEffect(() => {\n if (isMobile) return;\n\n const handleClickOutside = ({ target }) => !ref.current?.contains(target) && target.type !== 'text' && setVisible();\n document.addEventListener('click', handleClickOutside, true);\n\n return () => {\n setBusy(false);\n document.removeEventListener('click', handleClickOutside, true);\n };\n }, []);\n\n useEffect(() => {\n (async () =>\n setDataSource(\n await ServiceDeals.get({\n ...store,\n currency: getCurrency({ cookies, currency, urlParams }),\n hotel,\n locale,\n offerId,\n }).catch(() => {}),\n ))();\n }, [currency, locale]);\n\n useEffect(() => {\n const { occupation: { minRooms = 1, dataSource: occupation = [] } = {} } = dataSource || {};\n\n !value?.occupation &&\n occupation.length > 0 &&\n handleChange(\n 'occupation',\n [...Array(minRooms)].map(() => prepareRoom(occupation)),\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dataSource]);\n\n useEffect(() => {\n visible && setVisited({ ...visited, [`${visible}`]: true });\n }, [visible]);\n\n const handleChange = (field, fieldValue) => {\n if (!dataSource) return;\n\n set({ deals: { ...value, [field]: fieldValue } });\n };\n\n const handleClear = () => {\n set({ deals: undefined });\n setError({});\n setVisited(false);\n };\n\n const handleSubmit = () => {\n setBusy(true);\n const { calendar, occupation, promoCode } = value;\n\n const params = {\n idoffers: offerId,\n idtokenprovider: hotel.id,\n lang: language,\n checkin: dateFormat(calendar[0], { format: 'DD/MM/YYYY' }),\n nights: dateDiff(calendar[0], calendar[1]).days,\n clientCode: promoCode || '',\n currency: getCurrency({ urlParams, cookies, currency }) || '',\n parties: window.btoa(JSON.stringify(toParties(occupation))),\n hsri: origin.commissionCode,\n };\n window.location.href = `${process.env.SERVICE_BOOKING}/${REDIRECT_PATH}${toQueryString(params)}`;\n\n setBusy(true);\n };\n\n const { className, testId } = others;\n const { calendar = [], occupation, promoCode = '' } = value;\n\n const isValid = validate({ dataSource, error, value });\n\n return (\n <View {...others} role=\"deals\" className={styles(style.deals, className)}>\n <View row className={style.header}>\n <Text bold headline level={2}>\n {translate(L10N.LABEL_SELECT_DATES_PERSONS)}\n </Text>\n\n <Action onPress={handleClear} className={style.action}>\n <Icon value={ICON.CLEAR} className={style.actionIcon} />\n {translate(L10N.ACTION_CLEAR)}\n </Action>\n </View>\n\n <Calendar\n {...dataSource?.calendar}\n value={calendar}\n visible={visible === FIELD.CALENDAR}\n visited={visited.calendar}\n onChange={(calendar, event) => handleChange('calendar', calendar, event)}\n onPress={() => setVisible(visible !== FIELD.CALENDAR ? FIELD.CALENDAR : undefined)}\n testId={testId ? `${testId}-calendar` : undefined}\n />\n\n <View row={!isMobile} className={style.extras}>\n <FieldOccupation\n {...dataSource?.occupation}\n error={!!error.occupation}\n hotels={[hotel?.id]}\n ref={ref}\n value={occupation}\n visible={visible === FIELD.OCCUPATION}\n onChange={(occupation) => handleChange('occupation', occupation)}\n onError={(occupation) => {\n if (!isMobile && visible !== FIELD.OCCUPATION) setVisible(FIELD.OCCUPATION);\n setError({ ...error, occupation });\n }}\n onPress={() => setVisible(visible !== FIELD.OCCUPATION ? FIELD.OCCUPATION : undefined)}\n onValid={() => setError({ ...error, occupation: undefined })}\n testId={testId ? `${testId}-occupation` : undefined}\n />\n\n <FieldPromocode\n value={promoCode}\n visible={visible === FIELD.PROMOCODE}\n onChange={(promoCode) => handleChange('promoCode', promoCode)}\n onEnter={() => setVisible(FIELD.PROMOCODE)}\n onLeave={() => setVisible(undefined)}\n testId={testId ? `${testId}-promocode` : undefined}\n />\n\n {!isMobile && <View className={style.footer} />}\n\n <Button\n busy={busy}\n disabled={!isValid}\n large\n wide={isMobile}\n onPress={handleSubmit}\n className={style.cta}\n testId={testId ? `${testId}-submit` : undefined}\n >\n {translate(L10N.ACTION_SEARCH)}\n </Button>\n </View>\n </View>\n );\n};\n\nDeals.propTypes = {\n id: PropTypes.string,\n};\n\nexport { Deals };\n"],"mappings":";;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAJ,uBAAA,CAAAP,OAAA;AACA,IAAAY,QAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,SAAA,GAAAhB,OAAA;AAAiD,IAAAiB,SAAA;EAAAC,UAAA;AAhBjD;AAA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|
1
|
+
{"version":3,"file":"Deals.js","names":["_dataSources","require","_locale","_services","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Deals","_Deals2","_Deals3","style","_helpers","_shared__","_helpers2","_toParties","_helpers3","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Deals","_ref","id","offerId","others","isMobile","useDevice","translate","useLocale","value","cookies","currency","deals","hotel","language","locale","origin","urlParams","store","useStore","ref","useRef","busy","setBusy","useState","dataSource","setDataSource","error","setError","visible","setVisible","visited","setVisited","useEffect","handleClickOutside","_ref2","_ref$current","current","contains","type","document","addEventListener","removeEventListener","ServiceDeals","getCurrency","catch","occupation","minRooms","handleChange","Array","map","prepareRoom","concat","field","fieldValue","handleClear","undefined","handleSubmit","calendar","promoCode","params","idoffers","idtokenprovider","lang","checkin","dateFormat","format","nights","dateDiff","days","clientCode","parties","window","btoa","JSON","stringify","toParties","hsri","commissionCode","location","href","process","env","SERVICE_BOOKING","REDIRECT_PATH","toQueryString","className","testId","isValid","validate","createElement","View","role","styles","row","header","Text","bold","headline","level","L10N","LABEL_SELECT_DATES_PERSONS","Action","onPress","action","Icon","ICON","CLEAR","actionIcon","ACTION_CLEAR","Calendar","FIELD","CALENDAR","onChange","event","extras","FieldOccupation","hotels","OCCUPATION","onError","onValid","FieldPromocode","PROMOCODE","onEnter","onLeave","footer","Button","disabled","large","wide","cta","ACTION_SEARCH","exports","propTypes","PropTypes","string"],"sources":["../../../src/components/Deals/Deals.jsx"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport { useStore } from '@mirai/data-sources';\nimport { dateFormat, dateDiff, useLocale } from '@mirai/locale';\nimport { ServiceDeals } from '@mirai/services';\nimport { Action, Button, Icon, styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { Calendar } from './Deals.Calendar';\nimport { FIELD, REDIRECT_PATH } from './Deals.constants';\nimport { L10N } from './Deals.l10n';\nimport * as style from './Deals.module.css';\nimport { getCurrency, validate } from './helpers';\nimport { FieldOccupation, FieldPromocode } from '../__shared__';\nimport { prepareRoom } from '../__shared__/Occupation/helpers';\nimport { toParties } from '../__shared__/Occupation/helpers/toParties';\nimport { ICON, toQueryString } from '../helpers';\n\nconst Deals = ({ id: offerId, ...others }) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n const {\n set,\n value: { cookies = {}, currency, deals: value = {}, hotel, language, locale, origin, urlParams = {}, ...store },\n } = useStore();\n const ref = useRef(null);\n\n const [busy, setBusy] = useState(false);\n const [dataSource, setDataSource] = useState();\n const [error, setError] = useState({});\n const [visible, setVisible] = useState();\n const [visited, setVisited] = useState({});\n\n useEffect(() => {\n if (isMobile) return;\n\n const handleClickOutside = ({ target }) => !ref.current?.contains(target) && target.type !== 'text' && setVisible();\n document.addEventListener('click', handleClickOutside, true);\n\n return () => {\n setBusy(false);\n document.removeEventListener('click', handleClickOutside, true);\n };\n }, []);\n\n useEffect(() => {\n (async () =>\n setDataSource(\n await ServiceDeals.get({\n ...store,\n currency: getCurrency({ cookies, currency, urlParams }),\n hotel,\n locale,\n offerId,\n }).catch(() => {}),\n ))();\n }, [currency, locale]);\n\n useEffect(() => {\n const { occupation: { minRooms = 1, dataSource: occupation = [] } = {} } = dataSource || {};\n\n !value?.occupation &&\n occupation.length > 0 &&\n handleChange(\n 'occupation',\n [...Array(minRooms)].map(() => prepareRoom(occupation)),\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dataSource]);\n\n useEffect(() => {\n visible && setVisited({ ...visited, [`${visible}`]: true });\n }, [visible]);\n\n const handleChange = (field, fieldValue) => {\n if (!dataSource) return;\n\n set({ deals: { ...value, [field]: fieldValue } });\n };\n\n const handleClear = () => {\n set({ deals: undefined });\n setError({});\n setVisited(false);\n };\n\n const handleSubmit = () => {\n setBusy(true);\n const { calendar, occupation, promoCode } = value;\n\n const params = {\n idoffers: offerId,\n idtokenprovider: hotel.id,\n lang: language,\n checkin: dateFormat(calendar[0], { format: 'DD/MM/YYYY' }),\n nights: dateDiff(calendar[0], calendar[1]).days,\n clientCode: promoCode || '',\n currency: getCurrency({ urlParams, cookies, currency }) || '',\n parties: window.btoa(JSON.stringify(toParties(occupation))),\n hsri: origin.commissionCode,\n };\n window.location.href = `${process.env.SERVICE_BOOKING}/${REDIRECT_PATH}${toQueryString(params)}`;\n\n setBusy(true);\n };\n\n const { className, testId } = others;\n const { calendar = [], occupation, promoCode = '' } = value;\n\n const isValid = validate({ dataSource, error, value });\n\n return (\n <View {...others} role=\"deals\" className={styles(style.deals, className)}>\n <View row className={style.header}>\n <Text bold headline level={2}>\n {translate(L10N.LABEL_SELECT_DATES_PERSONS)}\n </Text>\n\n <Action onPress={handleClear} className={style.action}>\n <Icon value={ICON.CLEAR} className={style.actionIcon} />\n {translate(L10N.ACTION_CLEAR)}\n </Action>\n </View>\n\n <Calendar\n {...dataSource?.calendar}\n value={calendar}\n visible={visible === FIELD.CALENDAR}\n visited={visited.calendar}\n onChange={(calendar, event) => handleChange('calendar', calendar, event)}\n onPress={() => setVisible(visible !== FIELD.CALENDAR ? FIELD.CALENDAR : undefined)}\n testId={testId ? `${testId}-calendar` : undefined}\n />\n\n <View row={!isMobile} className={style.extras}>\n <FieldOccupation\n {...dataSource?.occupation}\n error={!!error.occupation}\n hotels={[hotel?.id]}\n ref={ref}\n value={occupation}\n visible={visible === FIELD.OCCUPATION}\n onChange={(occupation) => handleChange('occupation', occupation)}\n onError={(occupation) => {\n if (!isMobile && visible !== FIELD.OCCUPATION) setVisible(FIELD.OCCUPATION);\n setError({ ...error, occupation });\n }}\n onPress={() => setVisible(visible !== FIELD.OCCUPATION ? FIELD.OCCUPATION : undefined)}\n onValid={() => setError({ ...error, occupation: undefined })}\n testId={testId ? `${testId}-occupation` : undefined}\n />\n\n <FieldPromocode\n value={promoCode}\n visible={visible === FIELD.PROMOCODE}\n onChange={(promoCode) => handleChange('promoCode', promoCode)}\n onEnter={() => setVisible(FIELD.PROMOCODE)}\n onLeave={() => setVisible(undefined)}\n testId={testId ? `${testId}-promocode` : undefined}\n />\n\n {!isMobile && <View className={style.footer} />}\n\n <Button\n busy={busy}\n disabled={!isValid}\n large\n wide={isMobile}\n onPress={handleSubmit}\n className={style.cta}\n testId={testId ? `${testId}-submit` : undefined}\n >\n {translate(L10N.ACTION_SEARCH)}\n </Button>\n </View>\n </View>\n );\n};\n\nDeals.propTypes = {\n id: PropTypes.string,\n};\n\nexport { Deals };\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,MAAA,GAAAC,uBAAA,CAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAJ,uBAAA,CAAAP,OAAA;AACA,IAAAY,QAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,SAAA,GAAAhB,OAAA;AAAiD,SAAAiB,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CA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SAAS,CAAE;IAC3CE,OAAO,EAAEA,CAAA,KAAM9F,UAAU,CAAC0B,SAAS,CAAE;IACrC+B,MAAM,EAAEA,MAAM,MAAAnC,MAAA,CAAMmC,MAAM,kBAAe/B;EAAU,CACpD,CAAC,EAED,CAACnD,QAAQ,iBAAI/C,MAAA,CAAAiB,OAAA,CAAAmH,aAAA,CAACvI,GAAA,CAAAwI,IAAI;IAACL,SAAS,EAAE3H,KAAK,CAACkK;EAAO,CAAE,CAAC,eAE/CvK,MAAA,CAAAiB,OAAA,CAAAmH,aAAA,CAACvI,GAAA,CAAA2K,MAAM;IACLxG,IAAI,EAAEA,IAAK;IACXyG,QAAQ,EAAE,CAACvC,OAAQ;IACnBwC,KAAK;IACLC,IAAI,EAAE5H,QAAS;IACfkG,OAAO,EAAE9C,YAAa;IACtB6B,SAAS,EAAE3H,KAAK,CAACuK,GAAI;IACrB3C,MAAM,EAAEA,MAAM,MAAAnC,MAAA,CAAMmC,MAAM,eAAY/B;EAAU,GAE/CjD,SAAS,CAAC6F,YAAI,CAAC+B,aAAa,CACvB,CACJ,CACF,CAAC;AAEX,CAAC;AAACC,OAAA,CAAApI,KAAA,GAAAA,KAAA;AAEFA,KAAK,CAACqI,SAAS,GAAG;EAChBnI,EAAE,EAAEoI,kBAAS,CAACC;AAChB,CAAC"}
|
|
@@ -5,11 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.L10N = void 0;
|
|
7
7
|
var _BookingDates = require("../__shared__/BookingDates/BookingDates.l10n");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const {
|
|
9
|
+
LABEL_MIN_NIGHTS,
|
|
10
|
+
LABEL_MIN_NIGHTS_DEALS,
|
|
11
|
+
LABEL_MIN_NIGHTS_REQUIRED,
|
|
12
|
+
LABEL_NIGHTS
|
|
13
|
+
} = _BookingDates.L10N;
|
|
14
|
+
const L10N = exports.L10N = {
|
|
13
15
|
ACTION_CLEAR: {
|
|
14
16
|
id: 'finder.action.clear'
|
|
15
17
|
},
|
|
@@ -26,10 +28,10 @@ var L10N = exports.L10N = {
|
|
|
26
28
|
id: 'finder.label.info_prices'
|
|
27
29
|
},
|
|
28
30
|
// !TODO: Wrong
|
|
29
|
-
LABEL_MIN_NIGHTS
|
|
30
|
-
LABEL_MIN_NIGHTS_DEALS
|
|
31
|
-
LABEL_MIN_NIGHTS_REQUIRED
|
|
32
|
-
LABEL_NIGHTS
|
|
31
|
+
LABEL_MIN_NIGHTS,
|
|
32
|
+
LABEL_MIN_NIGHTS_DEALS,
|
|
33
|
+
LABEL_MIN_NIGHTS_REQUIRED,
|
|
34
|
+
LABEL_NIGHTS,
|
|
33
35
|
LABEL_SELECT_DATES_PERSONS: {
|
|
34
36
|
id: 'finder.label.select_dates_persons'
|
|
35
37
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deals.l10n.js","names":["_BookingDates","require","LABEL_MIN_NIGHTS","
|
|
1
|
+
{"version":3,"file":"Deals.l10n.js","names":["_BookingDates","require","LABEL_MIN_NIGHTS","LABEL_MIN_NIGHTS_DEALS","LABEL_MIN_NIGHTS_REQUIRED","LABEL_NIGHTS","L10N_BOOKING_DATES","L10N","exports","ACTION_CLEAR","id","ACTION_NEXT","ACTION_SEARCH","LABEL_ACCOMMODATION_TYPE","LABEL_INFO_PRICES","LABEL_SELECT_DATES_PERSONS","LABEL_WHEN"],"sources":["../../../src/components/Deals/Deals.l10n.js"],"sourcesContent":["import { L10N as L10N_BOOKING_DATES } from '../__shared__/BookingDates/BookingDates.l10n';\n\nconst { LABEL_MIN_NIGHTS, LABEL_MIN_NIGHTS_DEALS, LABEL_MIN_NIGHTS_REQUIRED, LABEL_NIGHTS } = L10N_BOOKING_DATES;\n\nexport const L10N = {\n ACTION_CLEAR: { id: 'finder.action.clear' },\n ACTION_NEXT: { id: 'finder.action.next' },\n ACTION_SEARCH: { id: 'common.action.search' },\n\n LABEL_ACCOMMODATION_TYPE: { id: 'common.label.accommodation_type' },\n LABEL_INFO_PRICES: { id: 'finder.label.info_prices' }, // !TODO: Wrong\n LABEL_MIN_NIGHTS,\n LABEL_MIN_NIGHTS_DEALS,\n LABEL_MIN_NIGHTS_REQUIRED,\n LABEL_NIGHTS,\n LABEL_SELECT_DATES_PERSONS: { id: 'finder.label.select_dates_persons' },\n LABEL_WHEN: { id: 'finder.label.when' },\n};\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEA,MAAM;EAAEC,gBAAgB;EAAEC,sBAAsB;EAAEC,yBAAyB;EAAEC;AAAa,CAAC,GAAGC,kBAAkB;AAEzG,MAAMC,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,YAAY,EAAE;IAAEC,EAAE,EAAE;EAAsB,CAAC;EAC3CC,WAAW,EAAE;IAAED,EAAE,EAAE;EAAqB,CAAC;EACzCE,aAAa,EAAE;IAAEF,EAAE,EAAE;EAAuB,CAAC;EAE7CG,wBAAwB,EAAE;IAAEH,EAAE,EAAE;EAAkC,CAAC;EACnEI,iBAAiB,EAAE;IAAEJ,EAAE,EAAE;EAA2B,CAAC;EAAE;EACvDR,gBAAgB;EAChBC,sBAAsB;EACtBC,yBAAyB;EACzBC,YAAY;EACZU,0BAA0B,EAAE;IAAEL,EAAE,EAAE;EAAoC,CAAC;EACvEM,UAAU,EAAE;IAAEN,EAAE,EAAE;EAAoB;AACxC,CAAC"}
|
|
@@ -8,9 +8,10 @@ var _ui = require("@mirai/ui");
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _shared__ = require("../__shared__");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var _default =
|
|
12
|
-
|
|
13
|
-
isMobile
|
|
11
|
+
var _default = () => {
|
|
12
|
+
const {
|
|
13
|
+
isMobile
|
|
14
|
+
} = (0, _ui.useDevice)();
|
|
14
15
|
return /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
15
16
|
style: {
|
|
16
17
|
padding: '1rem',
|
|
@@ -107,4 +108,5 @@ var _default = exports.default = function _default() {
|
|
|
107
108
|
}
|
|
108
109
|
}, "Find"))));
|
|
109
110
|
};
|
|
111
|
+
exports.default = _default;
|
|
110
112
|
//# sourceMappingURL=Deals.skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deals.skeleton.js","names":["_ui","require","_react","_interopRequireDefault","_shared__","obj","__esModule","default","_default","
|
|
1
|
+
{"version":3,"file":"Deals.skeleton.js","names":["_ui","require","_react","_interopRequireDefault","_shared__","obj","__esModule","default","_default","isMobile","useDevice","createElement","View","style","padding","maxWidth","row","justifyContent","Skeleton","bold","headline","level","action","wide","paddingTop","gap","height","marginTop","Fragment","small","width","flex","exports"],"sources":["../../../src/components/Deals/Deals.skeleton.jsx"],"sourcesContent":["import { View } from '@mirai/ui';\nimport { useDevice } from '@mirai/ui';\nimport React from 'react';\n\nimport { Skeleton } from '../__shared__';\n\nexport default () => {\n const { isMobile } = useDevice();\n\n return (\n <View style={{ padding: '1rem', maxWidth: '720px' }}>\n <View row style={{ justifyContent: 'space-between' }}>\n <Skeleton bold headline level={2}>\n Select dates and persons\n </Skeleton>\n <Skeleton action>Clear</Skeleton>\n </View>\n\n {isMobile ? (\n <View wide style={{ paddingTop: '2rem', gap: '0.5rem' }}>\n <Skeleton wide style={{ height: '3.5rem' }} />\n <Skeleton wide style={{ height: '3.5rem' }} />\n <Skeleton wide style={{ height: '3.5rem' }} />\n <Skeleton wide style={{ height: '2.5rem', marginTop: '1rem' }} />\n </View>\n ) : (\n <>\n <View row wide style={{ paddingTop: '1.5rem', gap: '2rem' }}>\n <Skeleton wide style={{ height: '20rem' }} />\n <Skeleton wide style={{ height: '20rem' }} />\n </View>\n <View wide style={{ paddingTop: '1.5rem', gap: '0.25rem' }}>\n <Skeleton>Check-in ─ Check-out</Skeleton>\n <Skeleton small>\n Approximate prices in undefined per 1 room, for undefined nights & undefined adults (Some taxes may not be\n included)\n </Skeleton>\n </View>\n <View row wide style={{ paddingTop: '1.5rem', gap: '1rem' }}>\n <Skeleton style={{ height: '3.5rem', width: '30%' }} />\n <Skeleton style={{ height: '3.5rem', width: '30%' }} />\n <View style={{ flex: 1 }} />\n <Skeleton style={{ height: '3.5rem', width: '15%' }}>Find</Skeleton>\n </View>\n </>\n )}\n </View>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AAAyC,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAE1BA,CAAA,KAAM;EACnB,MAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,aAAS,EAAC,CAAC;EAEhC,oBACER,MAAA,CAAAK,OAAA,CAAAI,aAAA,CAACX,GAAA,CAAAY,IAAI;IAACC,KAAK,EAAE;MAAEC,OAAO,EAAE,MAAM;MAAEC,QAAQ,EAAE;IAAQ;EAAE,gBAClDb,MAAA,CAAAK,OAAA,CAAAI,aAAA,CAACX,GAAA,CAAAY,IAAI;IAACI,GAAG;IAACH,KAAK,EAAE;MAAEI,cAAc,EAAE;IAAgB;EAAE,gBACnDf,MAAA,CAAAK,OAAA,CAAAI,aAAA,CAACP,SAAA,CAAAc,QAAQ;IAACC,IAAI;IAACC,QAAQ;IAACC,KAAK,EAAE;EAAE,GAAC,0BAExB,CAAC,eACXnB,MAAA,CAAAK,OAAA,CAAAI,aAAA,CAACP,SAAA,CAAAc,QAAQ;IAACI,MAAM;EAAA,GAAC,OAAe,CAC5B,CAAC,EAENb,QAAQ,gBACPP,MAAA,CAAAK,OAAA,CAAAI,aAAA,CAACX,GAAA,CAAAY,IA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Calendar> inherit:className 1`] = `
|
|
|
745
745
|
fill="none"
|
|
746
746
|
/>
|
|
747
747
|
<path
|
|
748
|
-
d="
|
|
748
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
749
749
|
/>
|
|
750
750
|
</svg>
|
|
751
751
|
</span>
|
|
@@ -2272,7 +2272,7 @@ exports[`component:<Deals.Calendar> renders 1`] = `
|
|
|
2272
2272
|
fill="none"
|
|
2273
2273
|
/>
|
|
2274
2274
|
<path
|
|
2275
|
-
d="
|
|
2275
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
2276
2276
|
/>
|
|
2277
2277
|
</svg>
|
|
2278
2278
|
</span>
|
|
@@ -3801,7 +3801,7 @@ exports[`component:<Deals.Calendar> testID 1`] = `
|
|
|
3801
3801
|
fill="none"
|
|
3802
3802
|
/>
|
|
3803
3803
|
<path
|
|
3804
|
-
d="
|
|
3804
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
3805
3805
|
/>
|
|
3806
3806
|
</svg>
|
|
3807
3807
|
</span>
|
|
@@ -39,7 +39,7 @@ exports[`component:<Deals> inherit:className 1`] = `
|
|
|
39
39
|
fill="none"
|
|
40
40
|
/>
|
|
41
41
|
<path
|
|
42
|
-
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0
|
|
42
|
+
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0 0 1 6 12c0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"
|
|
43
43
|
/>
|
|
44
44
|
</svg>
|
|
45
45
|
</span>
|
|
@@ -834,7 +834,7 @@ exports[`component:<Deals> inherit:className 1`] = `
|
|
|
834
834
|
fill="none"
|
|
835
835
|
/>
|
|
836
836
|
<path
|
|
837
|
-
d="
|
|
837
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
838
838
|
/>
|
|
839
839
|
</svg>
|
|
840
840
|
</span>
|
|
@@ -1622,7 +1622,7 @@ exports[`component:<Deals> inherit:className 1`] = `
|
|
|
1622
1622
|
fill="none"
|
|
1623
1623
|
/>
|
|
1624
1624
|
<path
|
|
1625
|
-
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0
|
|
1625
|
+
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0 0 1 0 7.52c.42.14.86.24 1.33.24zM9 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM9 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"
|
|
1626
1626
|
/>
|
|
1627
1627
|
</svg>
|
|
1628
1628
|
</span>
|
|
@@ -1658,7 +1658,7 @@ exports[`component:<Deals> inherit:className 1`] = `
|
|
|
1658
1658
|
fill="none"
|
|
1659
1659
|
/>
|
|
1660
1660
|
<path
|
|
1661
|
-
d="M12 5.
|
|
1661
|
+
d="M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"
|
|
1662
1662
|
/>
|
|
1663
1663
|
</svg>
|
|
1664
1664
|
</span>
|
|
@@ -1971,7 +1971,7 @@ exports[`component:<Deals> prop:value 1`] = `
|
|
|
1971
1971
|
fill="none"
|
|
1972
1972
|
/>
|
|
1973
1973
|
<path
|
|
1974
|
-
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0
|
|
1974
|
+
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0 0 1 6 12c0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"
|
|
1975
1975
|
/>
|
|
1976
1976
|
</svg>
|
|
1977
1977
|
</span>
|
|
@@ -2766,7 +2766,7 @@ exports[`component:<Deals> prop:value 1`] = `
|
|
|
2766
2766
|
fill="none"
|
|
2767
2767
|
/>
|
|
2768
2768
|
<path
|
|
2769
|
-
d="
|
|
2769
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
2770
2770
|
/>
|
|
2771
2771
|
</svg>
|
|
2772
2772
|
</span>
|
|
@@ -3559,7 +3559,7 @@ exports[`component:<Deals> prop:value 1`] = `
|
|
|
3559
3559
|
fill="none"
|
|
3560
3560
|
/>
|
|
3561
3561
|
<path
|
|
3562
|
-
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0
|
|
3562
|
+
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0 0 1 0 7.52c.42.14.86.24 1.33.24zM9 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM9 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"
|
|
3563
3563
|
/>
|
|
3564
3564
|
</svg>
|
|
3565
3565
|
</span>
|
|
@@ -3601,7 +3601,7 @@ exports[`component:<Deals> prop:value 1`] = `
|
|
|
3601
3601
|
fill="none"
|
|
3602
3602
|
/>
|
|
3603
3603
|
<path
|
|
3604
|
-
d="M12 5.
|
|
3604
|
+
d="M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"
|
|
3605
3605
|
/>
|
|
3606
3606
|
</svg>
|
|
3607
3607
|
</span>
|
|
@@ -3921,7 +3921,7 @@ exports[`component:<Deals> prop:value 1`] = `
|
|
|
3921
3921
|
opacity=".87"
|
|
3922
3922
|
/>
|
|
3923
3923
|
<path
|
|
3924
|
-
d="M16.59 8.
|
|
3924
|
+
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
3925
3925
|
/>
|
|
3926
3926
|
</svg>
|
|
3927
3927
|
</span>
|
|
@@ -4059,7 +4059,7 @@ exports[`component:<Deals> renders 1`] = `
|
|
|
4059
4059
|
fill="none"
|
|
4060
4060
|
/>
|
|
4061
4061
|
<path
|
|
4062
|
-
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0
|
|
4062
|
+
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0 0 1 6 12c0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"
|
|
4063
4063
|
/>
|
|
4064
4064
|
</svg>
|
|
4065
4065
|
</span>
|
|
@@ -4854,7 +4854,7 @@ exports[`component:<Deals> renders 1`] = `
|
|
|
4854
4854
|
fill="none"
|
|
4855
4855
|
/>
|
|
4856
4856
|
<path
|
|
4857
|
-
d="
|
|
4857
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
4858
4858
|
/>
|
|
4859
4859
|
</svg>
|
|
4860
4860
|
</span>
|
|
@@ -5642,7 +5642,7 @@ exports[`component:<Deals> renders 1`] = `
|
|
|
5642
5642
|
fill="none"
|
|
5643
5643
|
/>
|
|
5644
5644
|
<path
|
|
5645
|
-
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0
|
|
5645
|
+
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0 0 1 0 7.52c.42.14.86.24 1.33.24zM9 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM9 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"
|
|
5646
5646
|
/>
|
|
5647
5647
|
</svg>
|
|
5648
5648
|
</span>
|
|
@@ -5678,7 +5678,7 @@ exports[`component:<Deals> renders 1`] = `
|
|
|
5678
5678
|
fill="none"
|
|
5679
5679
|
/>
|
|
5680
5680
|
<path
|
|
5681
|
-
d="M12 5.
|
|
5681
|
+
d="M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"
|
|
5682
5682
|
/>
|
|
5683
5683
|
</svg>
|
|
5684
5684
|
</span>
|
|
@@ -5992,7 +5992,7 @@ exports[`component:<Deals> testID 1`] = `
|
|
|
5992
5992
|
fill="none"
|
|
5993
5993
|
/>
|
|
5994
5994
|
<path
|
|
5995
|
-
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0
|
|
5995
|
+
d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8A5.87 5.87 0 0 1 6 12c0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"
|
|
5996
5996
|
/>
|
|
5997
5997
|
</svg>
|
|
5998
5998
|
</span>
|
|
@@ -6789,7 +6789,7 @@ exports[`component:<Deals> testID 1`] = `
|
|
|
6789
6789
|
fill="none"
|
|
6790
6790
|
/>
|
|
6791
6791
|
<path
|
|
6792
|
-
d="
|
|
6792
|
+
d="m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"
|
|
6793
6793
|
/>
|
|
6794
6794
|
</svg>
|
|
6795
6795
|
</span>
|
|
@@ -7578,7 +7578,7 @@ exports[`component:<Deals> testID 1`] = `
|
|
|
7578
7578
|
fill="none"
|
|
7579
7579
|
/>
|
|
7580
7580
|
<path
|
|
7581
|
-
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0
|
|
7581
|
+
d="M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24a5.98 5.98 0 0 1 0 7.52c.42.14.86.24 1.33.24zM9 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM9 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"
|
|
7582
7582
|
/>
|
|
7583
7583
|
</svg>
|
|
7584
7584
|
</span>
|
|
@@ -7614,7 +7614,7 @@ exports[`component:<Deals> testID 1`] = `
|
|
|
7614
7614
|
fill="none"
|
|
7615
7615
|
/>
|
|
7616
7616
|
<path
|
|
7617
|
-
d="M12 5.
|
|
7617
|
+
d="M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"
|
|
7618
7618
|
/>
|
|
7619
7619
|
</svg>
|
|
7620
7620
|
</span>
|
|
@@ -6,15 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.calcFromDate = void 0;
|
|
7
7
|
var _locale = require("@mirai/locale");
|
|
8
8
|
var _helpers = require("../../helpers");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const FIRST_FORTNIGHT = 14;
|
|
10
|
+
const calcFromDate = function () {
|
|
11
|
+
let dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
12
12
|
if (!Array.isArray(dates) || !dates[0]) return;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const date = (0, _locale.parseDate)(dates[0], _helpers.CALENDAR_FORMAT);
|
|
14
|
+
const 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
|
+
const value = (0, _locale.UTC)(new Date(date.getFullYear(), month, 1));
|
|
16
16
|
return (0, _locale.dateFormat)(value, {
|
|
17
17
|
format: _helpers.CALENDAR_FORMAT
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
+
exports.calcFromDate = calcFromDate;
|
|
20
21
|
//# sourceMappingURL=calcFromDate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calcFromDate.js","names":["_locale","require","_helpers","FIRST_FORTNIGHT","calcFromDate","
|
|
1
|
+
{"version":3,"file":"calcFromDate.js","names":["_locale","require","_helpers","FIRST_FORTNIGHT","calcFromDate","dates","arguments","length","undefined","Array","isArray","date","parseDate","format","month","getMonth","getDate","dateDiff","UTC","Date","getFullYear","days","value","dateFormat","exports"],"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,MAAME,eAAe,GAAG,EAAE;AAEnB,MAAMC,YAAY,GAAG,SAAAA,CAAA,EAAgB;EAAA,IAAfC,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,MAAMM,IAAI,GAAG,IAAAC,iBAAS,EAACP,KAAK,CAAC,CAAC,CAAC,EAAEQ,wBAAM,CAAC;EACxC,MAAMC,KAAK,GACTH,IAAI,CAACI,QAAQ,CAAC,CAAC,IACdJ,IAAI,CAACK,OAAO,CAAC,CAAC,IAAIb,eAAe,IAClC,IAAAc,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,MAAMC,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;AAACW,OAAA,CAAApB,YAAA,GAAAA,YAAA"}
|
|
@@ -7,18 +7,17 @@ exports.calcMinStay = void 0;
|
|
|
7
7
|
var _locale = require("@mirai/locale");
|
|
8
8
|
var _helpers = require("../../helpers");
|
|
9
9
|
var _Deals = require("../Deals.constants");
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const calcMinStay = (from, highlights, minNightsWithDeals, rangeMinDays) => {
|
|
11
|
+
let value;
|
|
12
12
|
if (from && minNightsWithDeals) {
|
|
13
|
-
|
|
13
|
+
const dateFrom = (0, _locale.parseDate)((0, _locale.dateFormat)(from, {
|
|
14
14
|
format: _helpers.CALENDAR_FORMAT
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
var dateTo = (0, _locale.parseDate)(highlights[nextDealIndex + minNightsWithDeals - 1]);
|
|
16
|
+
const nextDealIndex = highlights.findIndex(date => (0, _locale.dateDiff)(dateFrom, (0, _locale.parseDate)(date)).days >= 0);
|
|
17
|
+
const dateTo = (0, _locale.parseDate)(highlights[nextDealIndex + minNightsWithDeals - 1]);
|
|
20
18
|
value = dateTo >= dateFrom ? (0, _locale.dateDiff)(dateFrom, dateTo).days + 1 : _Deals.INVALID_MIN_RANGE_DEALS;
|
|
21
19
|
}
|
|
22
20
|
return value || rangeMinDays;
|
|
23
21
|
};
|
|
22
|
+
exports.calcMinStay = calcMinStay;
|
|
24
23
|
//# sourceMappingURL=calcMinStay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calcMinStay.js","names":["_locale","require","_helpers","_Deals","calcMinStay","
|
|
1
|
+
{"version":3,"file":"calcMinStay.js","names":["_locale","require","_helpers","_Deals","calcMinStay","from","highlights","minNightsWithDeals","rangeMinDays","value","dateFrom","parseDate","dateFormat","format","nextDealIndex","findIndex","date","dateDiff","days","dateTo","INVALID_MIN_RANGE_DEALS","exports"],"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,MAAMG,WAAW,GAAGA,CAACC,IAAI,EAAEC,UAAU,EAAEC,kBAAkB,EAAEC,YAAY,KAAK;EACjF,IAAIC,KAAK;EAET,IAAIJ,IAAI,IAAIE,kBAAkB,EAAE;IAC9B,MAAMG,QAAQ,GAAG,IAAAC,iBAAS,EAAC,IAAAC,kBAAU,EAACP,IAAI,EAAE;MAAEQ,MAAM,EAANA;IAAO,CAAC,CAAC,CAAC;IACxD,MAAMC,aAAa,GAAGR,UAAU,CAACS,SAAS,CAAEC,IAAI,IAAK,IAAAC,gBAAQ,EAACP,QAAQ,EAAE,IAAAC,iBAAS,EAACK,IAAI,CAAC,CAAC,CAACE,IAAI,IAAI,CAAC,CAAC;IACnG,MAAMC,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;AAACa,OAAA,CAAAjB,WAAA,GAAAA,WAAA"}
|
|
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.calcNightWithDeals = void 0;
|
|
7
7
|
var _locale = require("@mirai/locale");
|
|
8
8
|
var _helpers = require("../../helpers");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
highlights.forEach(
|
|
12
|
-
|
|
9
|
+
const calcNightWithDeals = (from, to, highlights) => {
|
|
10
|
+
let value = 0;
|
|
11
|
+
highlights.forEach(highlight => {
|
|
12
|
+
const highlightDate = (0, _locale.parseDate)(highlight, _helpers.CALENDAR_FORMAT);
|
|
13
13
|
if (highlightDate >= from && highlightDate <= to) value++;
|
|
14
14
|
});
|
|
15
15
|
return value;
|
|
16
16
|
};
|
|
17
|
+
exports.calcNightWithDeals = calcNightWithDeals;
|
|
17
18
|
//# sourceMappingURL=calcNightWithDeals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calcNightWithDeals.js","names":["_locale","require","_helpers","calcNightWithDeals","
|
|
1
|
+
{"version":3,"file":"calcNightWithDeals.js","names":["_locale","require","_helpers","calcNightWithDeals","from","to","highlights","value","forEach","highlight","highlightDate","parseDate","format","exports"],"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,MAAME,kBAAkB,GAAGA,CAACC,IAAI,EAAEC,EAAE,EAAEC,UAAU,KAAK;EAC1D,IAAIC,KAAK,GAAG,CAAC;EAEbD,UAAU,CAACE,OAAO,CAAEC,SAAS,IAAK;IAChC,MAAMC,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;AAACM,OAAA,CAAAV,kBAAA,GAAAA,kBAAA"}
|
|
@@ -5,15 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.calcToDate = void 0;
|
|
7
7
|
var _locale = require("@mirai/locale");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
8
|
+
const calcToDate = function () {
|
|
9
|
+
let dates = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
10
|
+
let rangeMaxDays = arguments.length > 1 ? arguments[1] : undefined;
|
|
11
|
+
return dates.length > 0 ? (0, _locale.dateFormat)((0, _locale.dateCalc)((0, _locale.parseDate)([...dates].pop()), rangeMaxDays, 'days')) : undefined;
|
|
18
12
|
};
|
|
13
|
+
exports.calcToDate = calcToDate;
|
|
19
14
|
//# sourceMappingURL=calcToDate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calcToDate.js","names":["_locale","require","
|
|
1
|
+
{"version":3,"file":"calcToDate.js","names":["_locale","require","calcToDate","dates","arguments","length","undefined","rangeMaxDays","dateFormat","dateCalc","parseDate","pop","exports"],"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;AAEO,MAAMC,UAAU,GAAG,SAAAA,CAAA,EAA8B;EAAA,IAA7BC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,YAAY,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EACjD,OAAOH,KAAK,CAACE,MAAM,GAAG,CAAC,GAAG,IAAAG,kBAAU,EAAC,IAAAC,gBAAQ,EAAC,IAAAC,iBAAS,EAAC,CAAC,GAAGP,KAAK,CAAC,CAACQ,GAAG,CAAC,CAAC,CAAC,EAAEJ,YAAY,EAAE,MAAM,CAAC,CAAC,GAAGD,SAAS;AAC/G,CAAC;AAACM,OAAA,CAAAV,UAAA,GAAAA,UAAA"}
|