@mirai/core 0.3.36 → 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 -100
- 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 -12
- 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":"index.js","names":["_Payment","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Payment2"],"sources":["../../../../src/components/__shared__/Payment/index.js"],"sourcesContent":["export * from './Payment';\nexport {\n CARD as PAYMENT_CARD,\n CARD_VALIDATION_PROVIDER as PAYMENT_CARD_VALIDATION_PROVIDER,\n METHOD as PAYMENT_METHOD,\n PROVIDER as PAYMENT_PROVIDER,\n} from './Payment.constants';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Payment","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Payment2"],"sources":["../../../../src/components/__shared__/Payment/index.js"],"sourcesContent":["export * from './Payment';\nexport {\n CARD as PAYMENT_CARD,\n CARD_VALIDATION_PROVIDER as PAYMENT_CARD_VALIDATION_PROVIDER,\n METHOD as PAYMENT_METHOD,\n PROVIDER as PAYMENT_PROVIDER,\n} from './Payment.constants';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,SAAA,GAAAb,OAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -10,24 +9,25 @@ var _ui = require("@mirai/ui");
|
|
|
10
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var style = _interopRequireWildcard(require("./PriceBreakdown.module.css"));
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
isMobile
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
const Line = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
bold,
|
|
19
|
+
currency,
|
|
20
|
+
name,
|
|
21
|
+
value,
|
|
22
|
+
...others
|
|
23
|
+
} = _ref;
|
|
24
|
+
const {
|
|
25
|
+
isMobile
|
|
26
|
+
} = (0, _ui.useDevice)();
|
|
27
|
+
const {
|
|
28
|
+
locale
|
|
29
|
+
} = (0, _locale.useLocale)();
|
|
30
|
+
const props = bold ? {
|
|
31
31
|
bold: true
|
|
32
32
|
} : {
|
|
33
33
|
action: !isMobile,
|
|
@@ -40,12 +40,13 @@ var Line = exports.Line = function Line(_ref) {
|
|
|
40
40
|
}), name), /*#__PURE__*/_react.default.createElement(_ui.Text, _extends({}, props, {
|
|
41
41
|
className: style.currency
|
|
42
42
|
}), (0, _locale.currencyFormat)({
|
|
43
|
-
currency
|
|
44
|
-
locale
|
|
43
|
+
currency,
|
|
44
|
+
locale,
|
|
45
45
|
symbol: true,
|
|
46
|
-
value
|
|
46
|
+
value
|
|
47
47
|
})));
|
|
48
48
|
};
|
|
49
|
+
exports.Line = Line;
|
|
49
50
|
Line.displayName = 'Mirai:User:Checkout.Summary.Line';
|
|
50
51
|
Line.propTypes = {
|
|
51
52
|
bold: _propTypes.default.bool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceBreakdown.Line.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"file":"PriceBreakdown.Line.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","_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","Line","_ref","bold","currency","name","value","others","isMobile","useDevice","locale","useLocale","props","action","small","createElement","View","row","Text","wide","className","currencyFormat","symbol","exports","displayName","propTypes","PropTypes","bool","string","number"],"sources":["../../../../src/components/__shared__/PriceBreakdown/PriceBreakdown.Line.jsx"],"sourcesContent":["import { currencyFormat, useLocale } from '@mirai/locale';\nimport { Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport * as style from './PriceBreakdown.module.css';\n\nconst Line = ({ bold, currency, name, value, ...others }) => {\n const { isMobile } = useDevice();\n const { locale } = useLocale();\n\n const props = bold ? { bold: true } : { action: !isMobile, small: isMobile };\n\n return (\n <View {...others} row>\n <Text {...props} wide>\n {name}\n </Text>\n <Text {...props} className={style.currency}>\n {currencyFormat({ currency, locale, symbol: true, value })}\n </Text>\n </View>\n );\n};\n\nLine.displayName = 'Mirai:User:Checkout.Summary.Line';\n\nLine.propTypes = {\n bold: PropTypes.bool,\n currency: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.number,\n};\n\nexport { Line };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,KAAA,GAAAC,uBAAA,CAAAN,OAAA;AAAqD,SAAAO,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,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAA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
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -13,54 +12,49 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
12
|
var _PriceBreakdown = require("./PriceBreakdown.l10n");
|
|
14
13
|
var _PriceBreakdown2 = require("./PriceBreakdown.Line");
|
|
15
14
|
var style = _interopRequireWildcard(require("./PriceBreakdown.module.css"));
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
18
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
success = _ref2.success,
|
|
62
|
-
type = _ref2.type,
|
|
63
|
-
warning = _ref2.warning;
|
|
19
|
+
const PriceBreakdown = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
children,
|
|
22
|
+
dataSource: {
|
|
23
|
+
currency,
|
|
24
|
+
notification: propNotification = {},
|
|
25
|
+
price: {
|
|
26
|
+
base,
|
|
27
|
+
discounts = [],
|
|
28
|
+
extras,
|
|
29
|
+
taxes = [],
|
|
30
|
+
total,
|
|
31
|
+
value
|
|
32
|
+
} = {}
|
|
33
|
+
} = {},
|
|
34
|
+
...others
|
|
35
|
+
} = _ref;
|
|
36
|
+
const {
|
|
37
|
+
isDesktop
|
|
38
|
+
} = (0, _ui.useDevice)();
|
|
39
|
+
const {
|
|
40
|
+
translate
|
|
41
|
+
} = (0, _locale.useLocale)();
|
|
42
|
+
const {
|
|
43
|
+
value: {
|
|
44
|
+
locale,
|
|
45
|
+
payment
|
|
46
|
+
}
|
|
47
|
+
} = (0, _dataSources.useStore)();
|
|
48
|
+
const notification = propNotification[payment === null || payment === void 0 ? void 0 : payment.method];
|
|
49
|
+
const {
|
|
50
|
+
value: infoValue,
|
|
51
|
+
error,
|
|
52
|
+
currency: infoCurrency,
|
|
53
|
+
remaining,
|
|
54
|
+
success,
|
|
55
|
+
type,
|
|
56
|
+
warning
|
|
57
|
+
} = notification || {};
|
|
64
58
|
return /*#__PURE__*/_react.default.createElement(_ui.View, _extends({}, others, {
|
|
65
59
|
className: (0, _ui.styles)(style.priceBreakdown, others.className)
|
|
66
60
|
}), /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
@@ -77,9 +71,11 @@ var PriceBreakdown = exports.PriceBreakdown = function PriceBreakdown(_ref) {
|
|
|
77
71
|
currency: currency,
|
|
78
72
|
name: translate(_PriceBreakdown.L10N.LABEL_EXTRAS),
|
|
79
73
|
value: extras
|
|
80
|
-
}), discounts.map(
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
}), discounts.map(_ref2 => {
|
|
75
|
+
let {
|
|
76
|
+
type,
|
|
77
|
+
amount
|
|
78
|
+
} = _ref2;
|
|
83
79
|
return /*#__PURE__*/_react.default.createElement(_PriceBreakdown2.Line, {
|
|
84
80
|
currency: currency,
|
|
85
81
|
key: type,
|
|
@@ -87,20 +83,20 @@ var PriceBreakdown = exports.PriceBreakdown = function PriceBreakdown(_ref) {
|
|
|
87
83
|
value: -amount
|
|
88
84
|
});
|
|
89
85
|
}), taxes.map(function () {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
var index = arguments.length > 1 ? arguments[1] : undefined;
|
|
86
|
+
let {
|
|
87
|
+
type = 0,
|
|
88
|
+
amount,
|
|
89
|
+
fee = false,
|
|
90
|
+
...bindings
|
|
91
|
+
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
92
|
+
let index = arguments.length > 1 ? arguments[1] : undefined;
|
|
98
93
|
return /*#__PURE__*/_react.default.createElement(_PriceBreakdown2.Line, {
|
|
99
94
|
currency: currency,
|
|
100
95
|
key: index,
|
|
101
|
-
name: translate(_PriceBreakdown.L10N["NOTIFICATION_CHECKOUT_".concat(fee ? 'FEE' : 'TAX', "_").concat(type)],
|
|
102
|
-
type
|
|
103
|
-
|
|
96
|
+
name: translate(_PriceBreakdown.L10N["NOTIFICATION_CHECKOUT_".concat(fee ? 'FEE' : 'TAX', "_").concat(type)], {
|
|
97
|
+
type,
|
|
98
|
+
...bindings
|
|
99
|
+
}),
|
|
104
100
|
value: amount
|
|
105
101
|
});
|
|
106
102
|
}), /*#__PURE__*/_react.default.createElement(_PriceBreakdown2.Line, {
|
|
@@ -111,23 +107,24 @@ var PriceBreakdown = exports.PriceBreakdown = function PriceBreakdown(_ref) {
|
|
|
111
107
|
}), notification && /*#__PURE__*/_react.default.createElement(_ui.Notification, {
|
|
112
108
|
inline: true,
|
|
113
109
|
small: true,
|
|
114
|
-
warning
|
|
115
|
-
success
|
|
116
|
-
error
|
|
110
|
+
warning,
|
|
111
|
+
success,
|
|
112
|
+
error,
|
|
117
113
|
className: style.notification
|
|
118
114
|
}, translate(_PriceBreakdown.L10N["NOTIFICATION_CHECKOUT_PRICE_".concat(type)], {
|
|
119
115
|
amount: (0, _locale.currencyFormat)({
|
|
120
116
|
currency: infoCurrency,
|
|
121
|
-
locale
|
|
117
|
+
locale,
|
|
122
118
|
value: infoValue
|
|
123
119
|
}),
|
|
124
120
|
remaining: (0, _locale.currencyFormat)({
|
|
125
121
|
currency: infoCurrency,
|
|
126
|
-
locale
|
|
122
|
+
locale,
|
|
127
123
|
value: remaining
|
|
128
124
|
})
|
|
129
125
|
}))), children);
|
|
130
126
|
};
|
|
127
|
+
exports.PriceBreakdown = PriceBreakdown;
|
|
131
128
|
PriceBreakdown.displayName = 'Mirai:User:components.PriceBreakdown';
|
|
132
129
|
PriceBreakdown.propTypes = {
|
|
133
130
|
children: _propTypes.default.any,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceBreakdown.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_PriceBreakdown","_PriceBreakdown2","style","_interopRequireWildcard","_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","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","PriceBreakdown","exports","_ref","children","_ref$dataSource","dataSource","_ref$dataSource2","currency","_ref$dataSource2$noti","notification","propNotification","_ref$dataSource2$pric","price","_ref$dataSource2$pric2","base","_ref$dataSource2$pric3","discounts","extras","_ref$dataSource2$pric4","taxes","total","others","_useDevice","useDevice","isDesktop","_useLocale","useLocale","translate","_useStore","useStore","_useStore$value","locale","payment","method","_ref2","infoValue","error","infoCurrency","remaining","success","type","warning","createElement","View","className","styles","priceBreakdown","Text","bold","headline","L10N","LABEL_PRICE_SUMMARY","wide","lines","Line","name","LABEL_BASE_PRICE","LABEL_EXTRAS","map","_ref3","amount","concat","toUpperCase","_ref4","_ref4$type","_ref4$fee","fee","bindings","index","LABEL_TOTAL","Notification","inline","small","currencyFormat","displayName","propTypes","PropTypes","any"],"sources":["../../../../src/components/__shared__/PriceBreakdown/PriceBreakdown.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { currencyFormat, useLocale } from '@mirai/locale';\nimport { styles, Notification, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './PriceBreakdown.l10n';\nimport { Line } from './PriceBreakdown.Line';\nimport * as style from './PriceBreakdown.module.css';\n\nconst PriceBreakdown = ({\n children,\n dataSource: {\n currency,\n notification: propNotification = {},\n price: { base, discounts = [], extras, taxes = [], total, value } = {},\n } = {},\n ...others\n}) => {\n const { isDesktop } = useDevice();\n const { translate } = useLocale();\n const {\n value: { locale, payment },\n } = useStore();\n\n const notification = propNotification[payment?.method];\n const { value: infoValue, error, currency: infoCurrency, remaining, success, type, warning } = notification || {};\n\n return (\n <View {...others} className={styles(style.priceBreakdown, others.className)}>\n <Text bold headline={isDesktop}>\n {translate(L10N.LABEL_PRICE_SUMMARY)}\n </Text>\n\n <View wide className={style.lines}>\n <Line currency={currency} name={translate(L10N.LABEL_BASE_PRICE)} value={base} />\n {extras && <Line currency={currency} name={translate(L10N.LABEL_EXTRAS)} value={extras} />}\n {discounts.map(({ type, amount }) => (\n <Line\n currency={currency}\n key={type}\n name={translate(L10N[`LABEL_CHECKOUT_DISCOUNT_${type}`.toUpperCase()])}\n value={-amount}\n />\n ))}\n {taxes.map(({ type = 0, amount, fee = false, ...bindings } = {}, index) => (\n <Line\n currency={currency}\n key={index}\n name={translate(L10N[`NOTIFICATION_CHECKOUT_${fee ? 'FEE' : 'TAX'}_${type}`], { type, ...bindings })}\n value={amount}\n />\n ))}\n\n <Line bold currency={currency} name={translate(L10N.LABEL_TOTAL)} value={total || value} />\n\n {notification && (\n <Notification inline small {...{ warning, success, error }} className={style.notification}>\n {translate(L10N[`NOTIFICATION_CHECKOUT_PRICE_${type}`], {\n amount: currencyFormat({\n currency: infoCurrency,\n locale,\n value: infoValue,\n }),\n remaining: currencyFormat({\n currency: infoCurrency,\n locale,\n value: remaining,\n }),\n })}\n </Notification>\n )}\n </View>\n\n {children}\n </View>\n );\n};\n\nPriceBreakdown.displayName = 'Mirai:User:components.PriceBreakdown';\n\nPriceBreakdown.propTypes = {\n children: PropTypes.any,\n dataSource: PropTypes.any,\n};\n\nexport { PriceBreakdown };\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAEA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAC,uBAAA,CAAAT,OAAA;AAAqD,IAAAU,SAAA;EAAAC,UAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KA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AmC,sBAAc,EAAC;MACxBlE,QAAQ,EAAE8B,YAAY;MACtBN,MAAM,EAANA,MAAM;MACNtD,KAAK,EAAE6D;IACT,CAAC;EACH,CAAC,CACW,CAEZ,CAAC,EAENnC,QACG,CAAC;AAEX,CAAC;AAEDH,cAAc,CAAC0E,WAAW,GAAG,sCAAsC;AAEnE1E,cAAc,CAAC2E,SAAS,GAAG;EACzBxE,QAAQ,EAAEyE,kBAAS,CAACC,GAAG;EACvBxE,UAAU,EAAEuE,kBAAS,CAACC;AACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"PriceBreakdown.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_PriceBreakdown","_PriceBreakdown2","style","_interopRequireWildcard","_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","PriceBreakdown","_ref","children","dataSource","currency","notification","propNotification","price","base","discounts","extras","taxes","total","value","others","isDesktop","useDevice","translate","useLocale","locale","payment","useStore","method","infoValue","error","infoCurrency","remaining","success","type","warning","createElement","View","className","styles","priceBreakdown","Text","bold","headline","L10N","LABEL_PRICE_SUMMARY","wide","lines","Line","name","LABEL_BASE_PRICE","LABEL_EXTRAS","map","_ref2","amount","concat","toUpperCase","fee","bindings","undefined","index","LABEL_TOTAL","Notification","inline","small","currencyFormat","exports","displayName","propTypes","PropTypes","any"],"sources":["../../../../src/components/__shared__/PriceBreakdown/PriceBreakdown.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { currencyFormat, useLocale } from '@mirai/locale';\nimport { styles, Notification, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './PriceBreakdown.l10n';\nimport { Line } from './PriceBreakdown.Line';\nimport * as style from './PriceBreakdown.module.css';\n\nconst PriceBreakdown = ({\n children,\n dataSource: {\n currency,\n notification: propNotification = {},\n price: { base, discounts = [], extras, taxes = [], total, value } = {},\n } = {},\n ...others\n}) => {\n const { isDesktop } = useDevice();\n const { translate } = useLocale();\n const {\n value: { locale, payment },\n } = useStore();\n\n const notification = propNotification[payment?.method];\n const { value: infoValue, error, currency: infoCurrency, remaining, success, type, warning } = notification || {};\n\n return (\n <View {...others} className={styles(style.priceBreakdown, others.className)}>\n <Text bold headline={isDesktop}>\n {translate(L10N.LABEL_PRICE_SUMMARY)}\n </Text>\n\n <View wide className={style.lines}>\n <Line currency={currency} name={translate(L10N.LABEL_BASE_PRICE)} value={base} />\n {extras && <Line currency={currency} name={translate(L10N.LABEL_EXTRAS)} value={extras} />}\n {discounts.map(({ type, amount }) => (\n <Line\n currency={currency}\n key={type}\n name={translate(L10N[`LABEL_CHECKOUT_DISCOUNT_${type}`.toUpperCase()])}\n value={-amount}\n />\n ))}\n {taxes.map(({ type = 0, amount, fee = false, ...bindings } = {}, index) => (\n <Line\n currency={currency}\n key={index}\n name={translate(L10N[`NOTIFICATION_CHECKOUT_${fee ? 'FEE' : 'TAX'}_${type}`], { type, ...bindings })}\n value={amount}\n />\n ))}\n\n <Line bold currency={currency} name={translate(L10N.LABEL_TOTAL)} value={total || value} />\n\n {notification && (\n <Notification inline small {...{ warning, success, error }} className={style.notification}>\n {translate(L10N[`NOTIFICATION_CHECKOUT_PRICE_${type}`], {\n amount: currencyFormat({\n currency: infoCurrency,\n locale,\n value: infoValue,\n }),\n remaining: currencyFormat({\n currency: infoCurrency,\n locale,\n value: remaining,\n }),\n })}\n </Notification>\n )}\n </View>\n\n {children}\n </View>\n );\n};\n\nPriceBreakdown.displayName = 'Mirai:User:components.PriceBreakdown';\n\nPriceBreakdown.propTypes = {\n children: PropTypes.any,\n dataSource: PropTypes.any,\n};\n\nexport { PriceBreakdown };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GA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EAE1FR,YAAY,iBACXzC,MAAA,CAAAW,OAAA,CAAAuD,aAAA,CAACrE,GAAA,CAAA+F,YAAY;IAACC,MAAM;IAACC,KAAK;IAAO7B,OAAO;IAAEF,OAAO;IAAEH,KAAK;IAAIQ,SAAS,EAAEjE,KAAK,CAACsC;EAAa,GACvFY,SAAS,CAACqB,oBAAI,gCAAAW,MAAA,CAAgCrB,IAAI,EAAG,EAAE;IACtDoB,MAAM,EAAE,IAAAW,sBAAc,EAAC;MACrBvD,QAAQ,EAAEqB,YAAY;MACtBN,MAAM;MACNN,KAAK,EAAEU;IACT,CAAC,CAAC;IACFG,SAAS,EAAE,IAAAiC,sBAAc,EAAC;MACxBvD,QAAQ,EAAEqB,YAAY;MACtBN,MAAM;MACNN,KAAK,EAAEa;IACT,CAAC;EACH,CAAC,CACW,CAEZ,CAAC,EAENxB,QACG,CAAC;AAEX,CAAC;AAAC0D,OAAA,CAAA5D,cAAA,GAAAA,cAAA;AAEFA,cAAc,CAAC6D,WAAW,GAAG,sCAAsC;AAEnE7D,cAAc,CAAC8D,SAAS,GAAG;EACzB5D,QAAQ,EAAE6D,kBAAS,CAACC,GAAG;EACvB7D,UAAU,EAAE4D,kBAAS,CAACC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceBreakdown.l10n.js","names":["L10N","exports","LABEL_BASE_PRICE","id","LABEL_EXTRAS","LABEL_PRICE_SUMMARY","LABEL_TOTAL","LABEL_CHECKOUT_DISCOUNT_0","LABEL_CHECKOUT_DISCOUNT_1","LABEL_CHECKOUT_DISCOUNT_2","NOTIFICATION_CHECKOUT_FEE_1","NOTIFICATION_CHECKOUT_FEE_2","NOTIFICATION_CHECKOUT_PRICE_0","NOTIFICATION_CHECKOUT_PRICE_1","NOTIFICATION_CHECKOUT_PRICE_2","NOTIFICATION_CHECKOUT_PRICE_3","NOTIFICATION_CHECKOUT_PRICE_4","NOTIFICATION_CHECKOUT_PRICE_5","NOTIFICATION_CHECKOUT_PRICE_6","NOTIFICATION_CHECKOUT_PRICE_7","NOTIFICATION_CHECKOUT_PRICE_8","NOTIFICATION_CHECKOUT_TAX_0","NOTIFICATION_CHECKOUT_TAX_2","NOTIFICATION_CHECKOUT_TAX_3","NOTIFICATION_CHECKOUT_TAX_4","NOTIFICATION_CHECKOUT_TAX_5","NOTIFICATION_CHECKOUT_TAX_6","NOTIFICATION_CHECKOUT_TAX_7","NOTIFICATION_CHECKOUT_TAX_8","NOTIFICATION_CHECKOUT_TAX_9"],"sources":["../../../../src/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_BASE_PRICE: { id: 'common.label.base_price' },\n LABEL_EXTRAS: { id: 'common.label.extras' },\n LABEL_PRICE_SUMMARY: { id: 'user.label.price_summary' },\n\n LABEL_TOTAL: { id: 'common.label.total' },\n\n LABEL_CHECKOUT_DISCOUNT_0: { id: 'user.label.checkout_discount_0' },\n LABEL_CHECKOUT_DISCOUNT_1: { id: 'user.label.checkout_discount_1' },\n LABEL_CHECKOUT_DISCOUNT_2: { id: 'user.label.checkout_discount_2' },\n\n NOTIFICATION_CHECKOUT_FEE_1: { id: 'user.notification.checkout_fee_1' },\n NOTIFICATION_CHECKOUT_FEE_2: { id: 'user.notification.checkout_fee_2' },\n NOTIFICATION_CHECKOUT_PRICE_0: { id: 'user.notification.checkout_price_0' },\n NOTIFICATION_CHECKOUT_PRICE_1: { id: 'user.notification.checkout_price_1' },\n NOTIFICATION_CHECKOUT_PRICE_2: { id: 'user.notification.checkout_price_2' },\n NOTIFICATION_CHECKOUT_PRICE_3: { id: 'user.notification.checkout_price_3' },\n NOTIFICATION_CHECKOUT_PRICE_4: { id: 'user.notification.checkout_price_4' },\n NOTIFICATION_CHECKOUT_PRICE_5: { id: 'user.notification.checkout_price_5' },\n NOTIFICATION_CHECKOUT_PRICE_6: { id: 'user.notification.checkout_price_6' },\n NOTIFICATION_CHECKOUT_PRICE_7: { id: 'user.notification.checkout_price_7' },\n NOTIFICATION_CHECKOUT_PRICE_8: { id: 'user.notification.checkout_price_8' },\n NOTIFICATION_CHECKOUT_TAX_0: { id: 'user.notification.checkout_tax_0' },\n NOTIFICATION_CHECKOUT_TAX_2: { id: 'user.notification.checkout_tax_2' },\n NOTIFICATION_CHECKOUT_TAX_3: { id: 'user.notification.checkout_tax_3' },\n NOTIFICATION_CHECKOUT_TAX_4: { id: 'user.notification.checkout_tax_4' },\n NOTIFICATION_CHECKOUT_TAX_5: { id: 'user.notification.checkout_tax_5' },\n NOTIFICATION_CHECKOUT_TAX_6: { id: 'user.notification.checkout_tax_6' },\n NOTIFICATION_CHECKOUT_TAX_7: { id: 'user.notification.checkout_tax_7' },\n NOTIFICATION_CHECKOUT_TAX_8: { id: 'user.notification.checkout_tax_8' },\n NOTIFICATION_CHECKOUT_TAX_9: { id: 'user.notification.checkout_tax_9' },\n};\n"],"mappings":";;;;;;AAAO,
|
|
1
|
+
{"version":3,"file":"PriceBreakdown.l10n.js","names":["L10N","exports","LABEL_BASE_PRICE","id","LABEL_EXTRAS","LABEL_PRICE_SUMMARY","LABEL_TOTAL","LABEL_CHECKOUT_DISCOUNT_0","LABEL_CHECKOUT_DISCOUNT_1","LABEL_CHECKOUT_DISCOUNT_2","NOTIFICATION_CHECKOUT_FEE_1","NOTIFICATION_CHECKOUT_FEE_2","NOTIFICATION_CHECKOUT_PRICE_0","NOTIFICATION_CHECKOUT_PRICE_1","NOTIFICATION_CHECKOUT_PRICE_2","NOTIFICATION_CHECKOUT_PRICE_3","NOTIFICATION_CHECKOUT_PRICE_4","NOTIFICATION_CHECKOUT_PRICE_5","NOTIFICATION_CHECKOUT_PRICE_6","NOTIFICATION_CHECKOUT_PRICE_7","NOTIFICATION_CHECKOUT_PRICE_8","NOTIFICATION_CHECKOUT_TAX_0","NOTIFICATION_CHECKOUT_TAX_2","NOTIFICATION_CHECKOUT_TAX_3","NOTIFICATION_CHECKOUT_TAX_4","NOTIFICATION_CHECKOUT_TAX_5","NOTIFICATION_CHECKOUT_TAX_6","NOTIFICATION_CHECKOUT_TAX_7","NOTIFICATION_CHECKOUT_TAX_8","NOTIFICATION_CHECKOUT_TAX_9"],"sources":["../../../../src/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_BASE_PRICE: { id: 'common.label.base_price' },\n LABEL_EXTRAS: { id: 'common.label.extras' },\n LABEL_PRICE_SUMMARY: { id: 'user.label.price_summary' },\n\n LABEL_TOTAL: { id: 'common.label.total' },\n\n LABEL_CHECKOUT_DISCOUNT_0: { id: 'user.label.checkout_discount_0' },\n LABEL_CHECKOUT_DISCOUNT_1: { id: 'user.label.checkout_discount_1' },\n LABEL_CHECKOUT_DISCOUNT_2: { id: 'user.label.checkout_discount_2' },\n\n NOTIFICATION_CHECKOUT_FEE_1: { id: 'user.notification.checkout_fee_1' },\n NOTIFICATION_CHECKOUT_FEE_2: { id: 'user.notification.checkout_fee_2' },\n NOTIFICATION_CHECKOUT_PRICE_0: { id: 'user.notification.checkout_price_0' },\n NOTIFICATION_CHECKOUT_PRICE_1: { id: 'user.notification.checkout_price_1' },\n NOTIFICATION_CHECKOUT_PRICE_2: { id: 'user.notification.checkout_price_2' },\n NOTIFICATION_CHECKOUT_PRICE_3: { id: 'user.notification.checkout_price_3' },\n NOTIFICATION_CHECKOUT_PRICE_4: { id: 'user.notification.checkout_price_4' },\n NOTIFICATION_CHECKOUT_PRICE_5: { id: 'user.notification.checkout_price_5' },\n NOTIFICATION_CHECKOUT_PRICE_6: { id: 'user.notification.checkout_price_6' },\n NOTIFICATION_CHECKOUT_PRICE_7: { id: 'user.notification.checkout_price_7' },\n NOTIFICATION_CHECKOUT_PRICE_8: { id: 'user.notification.checkout_price_8' },\n NOTIFICATION_CHECKOUT_TAX_0: { id: 'user.notification.checkout_tax_0' },\n NOTIFICATION_CHECKOUT_TAX_2: { id: 'user.notification.checkout_tax_2' },\n NOTIFICATION_CHECKOUT_TAX_3: { id: 'user.notification.checkout_tax_3' },\n NOTIFICATION_CHECKOUT_TAX_4: { id: 'user.notification.checkout_tax_4' },\n NOTIFICATION_CHECKOUT_TAX_5: { id: 'user.notification.checkout_tax_5' },\n NOTIFICATION_CHECKOUT_TAX_6: { id: 'user.notification.checkout_tax_6' },\n NOTIFICATION_CHECKOUT_TAX_7: { id: 'user.notification.checkout_tax_7' },\n NOTIFICATION_CHECKOUT_TAX_8: { id: 'user.notification.checkout_tax_8' },\n NOTIFICATION_CHECKOUT_TAX_9: { id: 'user.notification.checkout_tax_9' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,gBAAgB,EAAE;IAAEC,EAAE,EAAE;EAA0B,CAAC;EACnDC,YAAY,EAAE;IAAED,EAAE,EAAE;EAAsB,CAAC;EAC3CE,mBAAmB,EAAE;IAAEF,EAAE,EAAE;EAA2B,CAAC;EAEvDG,WAAW,EAAE;IAAEH,EAAE,EAAE;EAAqB,CAAC;EAEzCI,yBAAyB,EAAE;IAAEJ,EAAE,EAAE;EAAiC,CAAC;EACnEK,yBAAyB,EAAE;IAAEL,EAAE,EAAE;EAAiC,CAAC;EACnEM,yBAAyB,EAAE;IAAEN,EAAE,EAAE;EAAiC,CAAC;EAEnEO,2BAA2B,EAAE;IAAEP,EAAE,EAAE;EAAmC,CAAC;EACvEQ,2BAA2B,EAAE;IAAER,EAAE,EAAE;EAAmC,CAAC;EACvES,6BAA6B,EAAE;IAAET,EAAE,EAAE;EAAqC,CAAC;EAC3EU,6BAA6B,EAAE;IAAEV,EAAE,EAAE;EAAqC,CAAC;EAC3EW,6BAA6B,EAAE;IAAEX,EAAE,EAAE;EAAqC,CAAC;EAC3EY,6BAA6B,EAAE;IAAEZ,EAAE,EAAE;EAAqC,CAAC;EAC3Ea,6BAA6B,EAAE;IAAEb,EAAE,EAAE;EAAqC,CAAC;EAC3Ec,6BAA6B,EAAE;IAAEd,EAAE,EAAE;EAAqC,CAAC;EAC3Ee,6BAA6B,EAAE;IAAEf,EAAE,EAAE;EAAqC,CAAC;EAC3EgB,6BAA6B,EAAE;IAAEhB,EAAE,EAAE;EAAqC,CAAC;EAC3EiB,6BAA6B,EAAE;IAAEjB,EAAE,EAAE;EAAqC,CAAC;EAC3EkB,2BAA2B,EAAE;IAAElB,EAAE,EAAE;EAAmC,CAAC;EACvEmB,2BAA2B,EAAE;IAAEnB,EAAE,EAAE;EAAmC,CAAC;EACvEoB,2BAA2B,EAAE;IAAEpB,EAAE,EAAE;EAAmC,CAAC;EACvEqB,2BAA2B,EAAE;IAAErB,EAAE,EAAE;EAAmC,CAAC;EACvEsB,2BAA2B,EAAE;IAAEtB,EAAE,EAAE;EAAmC,CAAC;EACvEuB,2BAA2B,EAAE;IAAEvB,EAAE,EAAE;EAAmC,CAAC;EACvEwB,2BAA2B,EAAE;IAAExB,EAAE,EAAE;EAAmC,CAAC;EACvEyB,2BAA2B,EAAE;IAAEzB,EAAE,EAAE;EAAmC,CAAC;EACvE0B,2BAA2B,EAAE;IAAE1B,EAAE,EAAE;EAAmC;AACxE,CAAC"}
|
|
@@ -9,7 +9,7 @@ Object.keys(_PriceBreakdown).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _PriceBreakdown[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function
|
|
12
|
+
get: function () {
|
|
13
13
|
return _PriceBreakdown[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_PriceBreakdown","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/PriceBreakdown/index.js"],"sourcesContent":["export * from './PriceBreakdown';\n"],"mappings":";;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_PriceBreakdown","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/PriceBreakdown/index.js"],"sourcesContent":["export * from './PriceBreakdown';\n"],"mappings":";;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -9,27 +8,22 @@ var _ui = require("@mirai/ui");
|
|
|
9
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var style = _interopRequireWildcard(require("./Skeleton.module.css"));
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_ref$color = _ref.color,
|
|
26
|
-
color = _ref$color === void 0 ? 'background' : _ref$color,
|
|
27
|
-
others = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
var isText = typeof children === 'string';
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(isText ? _ui.Text : _ui.View, _objectSpread(_objectSpread({}, others), {}, {
|
|
14
|
+
const Skeleton = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
children,
|
|
17
|
+
color = 'background',
|
|
18
|
+
...others
|
|
19
|
+
} = _ref;
|
|
20
|
+
const isText = typeof children === 'string';
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(isText ? _ui.Text : _ui.View, {
|
|
22
|
+
...others,
|
|
30
23
|
className: (0, _ui.styles)(style.skeleton, color && style[color], isText && style.text, others.className)
|
|
31
|
-
}
|
|
24
|
+
}, children);
|
|
32
25
|
};
|
|
26
|
+
exports.Skeleton = Skeleton;
|
|
33
27
|
Skeleton.propTypes = {
|
|
34
28
|
children: _propTypes.default.any,
|
|
35
29
|
color: _propTypes.default.string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","names":["_ui","require","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"file":"Skeleton.js","names":["_ui","require","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Skeleton","_ref","children","color","others","isText","React","createElement","Text","View","className","styles","skeleton","text","exports","propTypes","PropTypes","any","string"],"sources":["../../../../src/components/__shared__/Skeleton/Skeleton.jsx"],"sourcesContent":["import { styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport * as style from './Skeleton.module.css';\n\nconst Skeleton = ({ children, color = 'background', ...others }) => {\n const isText = typeof children === 'string';\n\n return React.createElement(\n isText ? Text : View,\n { ...others, className: styles(style.skeleton, color && style[color], isText && style.text, others.className) },\n children,\n );\n};\n\nSkeleton.propTypes = {\n children: PropTypes.any,\n color: PropTypes.string,\n};\n\nexport { Skeleton };\n"],"mappings":";;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AAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAAA,SAAAb,uBAAAyB,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAhB,UAAA,GAAAgB,GAAA,KAAAf,OAAA,EAAAe,GAAA;AAE/C,MAAMC,QAAQ,GAAGC,IAAA,IAAmD;EAAA,IAAlD;IAAEC,QAAQ;IAAEC,KAAK,GAAG,YAAY;IAAE,GAAGC;EAAO,CAAC,GAAAH,IAAA;EAC7D,MAAMI,MAAM,GAAG,OAAOH,QAAQ,KAAK,QAAQ;EAE3C,oBAAOI,cAAK,CAACC,aAAa,CACxBF,MAAM,GAAGG,QAAI,GAAGC,QAAI,EACpB;IAAE,GAAGL,MAAM;IAAEM,SAAS,EAAE,IAAAC,UAAM,EAACnC,KAAK,CAACoC,QAAQ,EAAET,KAAK,IAAI3B,KAAK,CAAC2B,KAAK,CAAC,EAAEE,MAAM,IAAI7B,KAAK,CAACqC,IAAI,EAAET,MAAM,CAACM,SAAS;EAAE,CAAC,EAC/GR,QACF,CAAC;AACH,CAAC;AAACY,OAAA,CAAAd,QAAA,GAAAA,QAAA;AAEFA,QAAQ,CAACe,SAAS,GAAG;EACnBb,QAAQ,EAAEc,kBAAS,CAACC,GAAG;EACvBd,KAAK,EAAEa,kBAAS,CAACE;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Skeleton","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/Skeleton/index.js"],"sourcesContent":["export * from './Skeleton';\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Skeleton","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/Skeleton/index.js"],"sourcesContent":["export * from './Skeleton';\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -10,15 +9,17 @@ var _ui = require("@mirai/ui");
|
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _TextRequiredFields = require("./TextRequiredFields.l10n");
|
|
12
11
|
var style = _interopRequireWildcard(require("./TextRequiredFields.module.css"));
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
17
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const TextRequiredFields = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
...others
|
|
19
|
+
} = _ref;
|
|
20
|
+
const {
|
|
21
|
+
translate
|
|
22
|
+
} = (0, _locale.useLocale)();
|
|
22
23
|
return /*#__PURE__*/_react.default.createElement(_ui.Text, _extends({
|
|
23
24
|
small: true
|
|
24
25
|
}, others, {
|
|
@@ -27,6 +28,7 @@ var TextRequiredFields = exports.TextRequiredFields = function TextRequiredField
|
|
|
27
28
|
className: style.asterisk
|
|
28
29
|
}, "*"), " ", translate(_TextRequiredFields.L10N.CAPTION));
|
|
29
30
|
};
|
|
31
|
+
exports.TextRequiredFields = TextRequiredFields;
|
|
30
32
|
TextRequiredFields.displayName = 'Mirai:User:components:TextRequiredFields';
|
|
31
33
|
TextRequiredFields.propTypes = {};
|
|
32
34
|
//# sourceMappingURL=TextRequiredFields.js.map
|