@mirai/core 0.3.37 → 0.3.39
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 +55 -106
- package/build/components/BookingQuery/BookingQuery.js.map +1 -1
- package/build/components/BookingQuery/BookingQuery.l10n.js +1 -1
- package/build/components/BookingQuery/BookingQuery.l10n.js.map +1 -1
- package/build/components/BookingQuery/BookingQuery.skeleton.js +2 -3
- package/build/components/BookingQuery/BookingQuery.skeleton.js.map +1 -1
- package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +12 -12
- package/build/components/BookingQuery/helpers/getErrorText.js +2 -3
- package/build/components/BookingQuery/helpers/getErrorText.js.map +1 -1
- package/build/components/BookingQuery/helpers/index.js +1 -1
- package/build/components/BookingQuery/helpers/index.js.map +1 -1
- package/build/components/BookingQuery/index.js +2 -2
- package/build/components/BookingQuery/index.js.map +1 -1
- package/build/components/Checkout/Checkout.constants.js +12 -12
- package/build/components/Checkout/Checkout.constants.js.map +1 -1
- package/build/components/Checkout/Checkout.js +84 -118
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.l10n.js +12 -13
- package/build/components/Checkout/Checkout.l10n.js.map +1 -1
- package/build/components/Checkout/Checkout.skeleton.js +6 -4
- package/build/components/Checkout/Checkout.skeleton.js.map +1 -1
- package/build/components/Checkout/components/InputRadio/InputRadio.js +24 -30
- package/build/components/Checkout/components/InputRadio/InputRadio.js.map +1 -1
- package/build/components/Checkout/components/InputRadio/index.js +1 -1
- package/build/components/Checkout/components/InputRadio/index.js.map +1 -1
- package/build/components/Checkout/components/index.js +1 -1
- package/build/components/Checkout/components/index.js.map +1 -1
- package/build/components/Checkout/helpers/generateId.js +6 -5
- package/build/components/Checkout/helpers/generateId.js.map +1 -1
- package/build/components/Checkout/helpers/getFieldProps.js +24 -31
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/helpers/getVariant.js +11 -17
- package/build/components/Checkout/helpers/getVariant.js.map +1 -1
- package/build/components/Checkout/helpers/index.js +5 -5
- package/build/components/Checkout/helpers/index.js.map +1 -1
- package/build/components/Checkout/helpers/testDNI.js +3 -2
- package/build/components/Checkout/helpers/testDNI.js.map +1 -1
- package/build/components/Checkout/helpers/trackDataSource.js +72 -72
- package/build/components/Checkout/helpers/trackDataSource.js.map +1 -1
- package/build/components/Checkout/helpers/trackForm.js +13 -11
- package/build/components/Checkout/helpers/trackForm.js.map +1 -1
- package/build/components/Checkout/index.js +2 -2
- package/build/components/Checkout/index.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Confirmation.js +123 -160
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Details.js +72 -82
- package/build/components/Checkout/partials/Checkout.Details.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +102 -146
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Session.js +35 -43
- package/build/components/Checkout/partials/Checkout.Session.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Summary.Line.js +21 -20
- package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Summary.js +86 -80
- package/build/components/Checkout/partials/Checkout.Summary.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +6 -6
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +6 -6
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +4 -4
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +8 -8
- package/build/components/Checkout/partials/index.js +5 -5
- package/build/components/Checkout/partials/index.js.map +1 -1
- package/build/components/Deals/Deals.Calendar.js +82 -97
- package/build/components/Deals/Deals.Calendar.js.map +1 -1
- package/build/components/Deals/Deals.constants.js +5 -5
- package/build/components/Deals/Deals.constants.js.map +1 -1
- package/build/components/Deals/Deals.js +111 -165
- package/build/components/Deals/Deals.js.map +1 -1
- package/build/components/Deals/Deals.l10n.js +11 -9
- package/build/components/Deals/Deals.l10n.js.map +1 -1
- package/build/components/Deals/Deals.skeleton.js +5 -3
- package/build/components/Deals/Deals.skeleton.js.map +1 -1
- package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +3 -3
- package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +17 -17
- package/build/components/Deals/helpers/calcFromDate.js +7 -6
- package/build/components/Deals/helpers/calcFromDate.js.map +1 -1
- package/build/components/Deals/helpers/calcMinStay.js +6 -7
- package/build/components/Deals/helpers/calcMinStay.js.map +1 -1
- package/build/components/Deals/helpers/calcNightWithDeals.js +5 -4
- package/build/components/Deals/helpers/calcNightWithDeals.js.map +1 -1
- package/build/components/Deals/helpers/calcToDate.js +5 -10
- package/build/components/Deals/helpers/calcToDate.js.map +1 -1
- package/build/components/Deals/helpers/calcTooltips.js +15 -14
- package/build/components/Deals/helpers/calcTooltips.js.map +1 -1
- package/build/components/Deals/helpers/getCurrency.js +11 -9
- package/build/components/Deals/helpers/getCurrency.js.map +1 -1
- package/build/components/Deals/helpers/index.js +7 -7
- package/build/components/Deals/helpers/index.js.map +1 -1
- package/build/components/Deals/helpers/validate.js +15 -24
- package/build/components/Deals/helpers/validate.js.map +1 -1
- package/build/components/Deals/index.js +2 -2
- package/build/components/Deals/index.js.map +1 -1
- package/build/components/Environment/Environment.State.js +60 -68
- package/build/components/Environment/Environment.State.js.map +1 -1
- package/build/components/Environment/Environment.constants.js +1 -1
- package/build/components/Environment/Environment.constants.js.map +1 -1
- package/build/components/Environment/Environment.js +22 -25
- package/build/components/Environment/Environment.js.map +1 -1
- package/build/components/Environment/index.js +2 -2
- package/build/components/Environment/index.js.map +1 -1
- package/build/components/Finder/Finder.compact.js +54 -74
- package/build/components/Finder/Finder.compact.js.map +1 -1
- package/build/components/Finder/Finder.constants.js +9 -7
- package/build/components/Finder/Finder.constants.js.map +1 -1
- package/build/components/Finder/Finder.js +121 -152
- package/build/components/Finder/Finder.js.map +1 -1
- package/build/components/Finder/Finder.l10n.js +1 -1
- package/build/components/Finder/Finder.l10n.js.map +1 -1
- package/build/components/Finder/Finder.skeleton.js +24 -23
- package/build/components/Finder/Finder.skeleton.js.map +1 -1
- package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +44 -44
- package/build/components/Finder/components/Calendar/Calendar.constants.js +6 -6
- package/build/components/Finder/components/Calendar/Calendar.constants.js.map +1 -1
- package/build/components/Finder/components/Calendar/Calendar.js +77 -125
- package/build/components/Finder/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Finder/components/Calendar/Calendar.l10n.js +13 -13
- package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +1 -1
- package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +8 -8
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +37 -74
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +1 -1
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +4 -3
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +1 -1
- package/build/components/Finder/components/Calendar/helpers/index.js +2 -2
- package/build/components/Finder/components/Calendar/helpers/index.js.map +1 -1
- package/build/components/Finder/components/Calendar/index.js +1 -1
- package/build/components/Finder/components/Calendar/index.js.map +1 -1
- package/build/components/Finder/components/Places/Places.js +38 -46
- package/build/components/Finder/components/Places/Places.js.map +1 -1
- package/build/components/Finder/components/Places/Places.l10n.js +1 -1
- package/build/components/Finder/components/Places/Places.l10n.js.map +1 -1
- package/build/components/Finder/components/Places/helpers/calcColumns.js +27 -26
- package/build/components/Finder/components/Places/helpers/calcColumns.js.map +1 -1
- package/build/components/Finder/components/Places/helpers/index.js +1 -1
- package/build/components/Finder/components/Places/helpers/index.js.map +1 -1
- package/build/components/Finder/components/Places/index.js +1 -1
- package/build/components/Finder/components/Places/index.js.map +1 -1
- package/build/components/Finder/components/index.js +2 -2
- package/build/components/Finder/components/index.js.map +1 -1
- package/build/components/Finder/helpers/getDataSource.js +35 -42
- package/build/components/Finder/helpers/getDataSource.js.map +1 -1
- package/build/components/Finder/helpers/getForwarderUrl.js +37 -51
- package/build/components/Finder/helpers/getForwarderUrl.js.map +1 -1
- package/build/components/Finder/helpers/getHotels.js +17 -29
- package/build/components/Finder/helpers/getHotels.js.map +1 -1
- package/build/components/Finder/helpers/getOccupationDataSource.js +53 -67
- package/build/components/Finder/helpers/getOccupationDataSource.js.map +1 -1
- package/build/components/Finder/helpers/getPlaceCaption.js +6 -6
- package/build/components/Finder/helpers/getPlaceCaption.js.map +1 -1
- package/build/components/Finder/helpers/getPlacesOptions.js +24 -30
- package/build/components/Finder/helpers/getPlacesOptions.js.map +1 -1
- package/build/components/Finder/helpers/index.js +9 -9
- package/build/components/Finder/helpers/index.js.map +1 -1
- package/build/components/Finder/helpers/parseCalendarProps.js +13 -14
- package/build/components/Finder/helpers/parseCalendarProps.js.map +1 -1
- package/build/components/Finder/helpers/parseValue.js +12 -10
- package/build/components/Finder/helpers/parseValue.js.map +1 -1
- package/build/components/Finder/helpers/validate.js +5 -4
- package/build/components/Finder/helpers/validate.js.map +1 -1
- package/build/components/Finder/index.js +2 -2
- package/build/components/Finder/index.js.map +1 -1
- package/build/components/Profile/Profile.Account.js +59 -118
- package/build/components/Profile/Profile.Account.js.map +1 -1
- package/build/components/Profile/Profile.Password.js +55 -105
- package/build/components/Profile/Profile.Password.js.map +1 -1
- package/build/components/Profile/Profile.Signout.js +31 -68
- package/build/components/Profile/Profile.Signout.js.map +1 -1
- package/build/components/Profile/Profile.constants.js +3 -3
- package/build/components/Profile/Profile.constants.js.map +1 -1
- package/build/components/Profile/Profile.js +20 -30
- package/build/components/Profile/Profile.js.map +1 -1
- package/build/components/Profile/Profile.l10n.js +1 -1
- package/build/components/Profile/Profile.l10n.js.map +1 -1
- package/build/components/Profile/Profile.skeleton.js +108 -109
- package/build/components/Profile/Profile.skeleton.js.map +1 -1
- package/build/components/Profile/components/Bookings/Booking.constants.js +5 -5
- package/build/components/Profile/components/Bookings/Booking.constants.js.map +1 -1
- package/build/components/Profile/components/Bookings/Booking.l10n.js +1 -1
- package/build/components/Profile/components/Bookings/Booking.l10n.js.map +1 -1
- package/build/components/Profile/components/Bookings/Bookings.Item.js +36 -35
- package/build/components/Profile/components/Bookings/Bookings.Item.js.map +1 -1
- package/build/components/Profile/components/Bookings/Bookings.Search.js +23 -34
- package/build/components/Profile/components/Bookings/Bookings.Search.js.map +1 -1
- package/build/components/Profile/components/Bookings/Bookings.js +62 -92
- package/build/components/Profile/components/Bookings/Bookings.js.map +1 -1
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +12 -18
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +1 -1
- package/build/components/Profile/components/Bookings/helpers/index.js +1 -1
- package/build/components/Profile/components/Bookings/helpers/index.js.map +1 -1
- package/build/components/Profile/components/Bookings/index.js +1 -1
- package/build/components/Profile/components/Bookings/index.js.map +1 -1
- package/build/components/Profile/components/index.js +1 -1
- package/build/components/Profile/components/index.js.map +1 -1
- package/build/components/Profile/index.js +2 -2
- package/build/components/Profile/index.js.map +1 -1
- package/build/components/Rates/Rates.Filter.js +83 -96
- package/build/components/Rates/Rates.Filter.js.map +1 -1
- package/build/components/Rates/Rates.Footer.js +70 -87
- package/build/components/Rates/Rates.Footer.js.map +1 -1
- package/build/components/Rates/Rates.Skeleton.js +66 -66
- package/build/components/Rates/Rates.Skeleton.js.map +1 -1
- package/build/components/Rates/Rates.js +88 -191
- package/build/components/Rates/Rates.js.map +1 -1
- package/build/components/Rates/Rates.l10n.js +1 -1
- package/build/components/Rates/Rates.l10n.js.map +1 -1
- package/build/components/Rates/components/Item/Item.js +96 -131
- package/build/components/Rates/components/Item/Item.js.map +1 -1
- package/build/components/Rates/components/Item/Item.l10n.js +1 -1
- package/build/components/Rates/components/Item/Item.l10n.js.map +1 -1
- package/build/components/Rates/components/Item/components/Amenities/Amenities.js +15 -17
- package/build/components/Rates/components/Item/components/Amenities/Amenities.js.map +1 -1
- package/build/components/Rates/components/Item/components/Amenities/index.js +1 -1
- package/build/components/Rates/components/Item/components/Amenities/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/Discount/Discount.js +48 -43
- package/build/components/Rates/components/Item/components/Discount/Discount.js.map +1 -1
- package/build/components/Rates/components/Item/components/Discount/index.js +1 -1
- package/build/components/Rates/components/Item/components/Discount/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/Features/Features.js +21 -28
- package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
- package/build/components/Rates/components/Item/components/Features/index.js +1 -1
- package/build/components/Rates/components/Item/components/Features/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +23 -21
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/index.js +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +16 -16
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/index.js +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/index.js.map +1 -1
- package/build/components/Rates/components/Item/components/index.js +5 -5
- package/build/components/Rates/components/Item/components/index.js.map +1 -1
- package/build/components/Rates/components/Item/index.js +3 -3
- package/build/components/Rates/components/Item/index.js.map +1 -1
- package/build/components/Rates/components/index.js +1 -1
- package/build/components/Rates/components/index.js.map +1 -1
- package/build/components/Rates/helpers/getForwarderUrl.js +39 -52
- package/build/components/Rates/helpers/getForwarderUrl.js.map +1 -1
- package/build/components/Rates/helpers/index.js +1 -1
- package/build/components/Rates/helpers/index.js.map +1 -1
- package/build/components/Rates/index.js +2 -2
- package/build/components/Rates/index.js.map +1 -1
- package/build/components/Session/Session.Account.js +51 -60
- package/build/components/Session/Session.Account.js.map +1 -1
- package/build/components/Session/Session.Login.Modal.js +104 -205
- package/build/components/Session/Session.Login.Modal.js.map +1 -1
- package/build/components/Session/Session.Login.js +27 -36
- package/build/components/Session/Session.Login.js.map +1 -1
- package/build/components/Session/Session.constants.js +5 -5
- package/build/components/Session/Session.constants.js.map +1 -1
- package/build/components/Session/Session.js +18 -31
- package/build/components/Session/Session.js.map +1 -1
- package/build/components/Session/Session.l10n.js +1 -1
- package/build/components/Session/Session.l10n.js.map +1 -1
- package/build/components/Session/Session.skeleton.js +7 -8
- package/build/components/Session/Session.skeleton.js.map +1 -1
- package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +15 -15
- package/build/components/Session/helpers/getDomain.js +4 -3
- package/build/components/Session/helpers/getDomain.js.map +1 -1
- package/build/components/Session/helpers/getSignupUrl.js +6 -4
- package/build/components/Session/helpers/getSignupUrl.js.map +1 -1
- package/build/components/Session/helpers/index.js +4 -4
- package/build/components/Session/helpers/index.js.map +1 -1
- package/build/components/Session/helpers/template.js +7 -9
- package/build/components/Session/helpers/template.js.map +1 -1
- package/build/components/Session/helpers/trackLogin.js +12 -9
- package/build/components/Session/helpers/trackLogin.js.map +1 -1
- package/build/components/Session/index.js +2 -2
- package/build/components/Session/index.js.map +1 -1
- package/build/components/Signup/Signup.constants.js +1 -1
- package/build/components/Signup/Signup.constants.js.map +1 -1
- package/build/components/Signup/Signup.js +54 -122
- package/build/components/Signup/Signup.js.map +1 -1
- package/build/components/Signup/Signup.l10n.js +1 -1
- package/build/components/Signup/Signup.l10n.js.map +1 -1
- package/build/components/Signup/Signup.skeleton.js +81 -82
- package/build/components/Signup/Signup.skeleton.js.map +1 -1
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +9 -9
- package/build/components/Signup/index.js +2 -2
- package/build/components/Signup/index.js.map +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.constants.js +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.js +29 -30
- package/build/components/__shared__/BookingDates/BookingDates.js.map +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js +1 -1
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +1 -1
- package/build/components/__shared__/BookingDates/index.js +1 -1
- package/build/components/__shared__/BookingDates/index.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.Row.js +46 -53
- package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.constants.js +3 -3
- package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.js +34 -51
- package/build/components/__shared__/BookingTable/BookingTable.js.map +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js +1 -1
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +1 -1
- package/build/components/__shared__/BookingTable/index.js +1 -1
- package/build/components/__shared__/BookingTable/index.js.map +1 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.js +16 -15
- package/build/components/__shared__/ButtonMore/ButtonMore.js.map +1 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +1 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +3 -3
- package/build/components/__shared__/ButtonMore/index.js +1 -1
- package/build/components/__shared__/ButtonMore/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +5 -5
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js +132 -218
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +4 -4
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +30 -45
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +11 -8
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +2 -2
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +74 -91
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +9 -7
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +63 -83
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +7 -8
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +11 -9
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +49 -66
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +3 -3
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +7 -5
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +13 -15
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/index.js +4 -4
- package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +19 -14
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +5 -16
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +24 -22
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +10 -7
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +23 -21
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/index.js +3 -3
- package/build/components/__shared__/ButtonPayment/helpers/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +11 -9
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +7 -9
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/index.js +1 -1
- package/build/components/__shared__/ButtonPayment/index.js.map +1 -1
- package/build/components/__shared__/Field/Field.js +32 -36
- package/build/components/__shared__/Field/Field.js.map +1 -1
- package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +14 -14
- package/build/components/__shared__/Field/index.js +1 -1
- package/build/components/__shared__/Field/index.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js +34 -39
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +1 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +16 -16
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +21 -25
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +31 -29
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/helpers/index.js +2 -2
- package/build/components/__shared__/FieldOccupation/helpers/index.js.map +1 -1
- package/build/components/__shared__/FieldOccupation/index.js +1 -1
- package/build/components/__shared__/FieldOccupation/index.js.map +1 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js +12 -12
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +1 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +1 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +1 -1
- package/build/components/__shared__/FieldPromocode/index.js +1 -1
- package/build/components/__shared__/FieldPromocode/index.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.Group.js +32 -36
- package/build/components/__shared__/Occupation/Occupation.Group.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.constants.js +22 -19
- package/build/components/__shared__/Occupation/Occupation.constants.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.js +71 -118
- package/build/components/__shared__/Occupation/Occupation.js.map +1 -1
- package/build/components/__shared__/Occupation/Occupation.l10n.js +18 -16
- package/build/components/__shared__/Occupation/Occupation.l10n.js.map +1 -1
- package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +7 -7
- package/build/components/__shared__/Occupation/helpers/checkRoom.js +19 -19
- package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js +47 -51
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +5 -16
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js +7 -15
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +8 -9
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/index.js +6 -6
- package/build/components/__shared__/Occupation/helpers/index.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js +17 -15
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +1 -1
- package/build/components/__shared__/Occupation/helpers/toParties.js +18 -19
- package/build/components/__shared__/Occupation/helpers/toParties.js.map +1 -1
- package/build/components/__shared__/Occupation/index.js +2 -2
- package/build/components/__shared__/Occupation/index.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.constants.js +6 -6
- package/build/components/__shared__/Payment/Payment.constants.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.js +78 -94
- package/build/components/__shared__/Payment/Payment.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.l10n.js +1 -1
- package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +10 -10
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +64 -85
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +8 -5
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/index.js +1 -1
- package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +29 -46
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/index.js +1 -1
- package/build/components/__shared__/Payment/components/Aplazame/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.constants.js +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.js +34 -54
- package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +23 -31
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +3 -4
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +17 -12
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/index.js +5 -5
- package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +2 -3
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +4 -5
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +3 -2
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/index.js +1 -1
- package/build/components/__shared__/Payment/components/Card/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +6 -6
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.js +136 -155
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +15 -15
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +9 -7
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js +2 -2
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/index.js +1 -1
- package/build/components/__shared__/Payment/components/PCI/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js +19 -36
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +1 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +1 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/Tpv/index.js +1 -1
- package/build/components/__shared__/Payment/components/Tpv/index.js.map +1 -1
- package/build/components/__shared__/Payment/components/index.js +5 -5
- package/build/components/__shared__/Payment/components/index.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getCaption.js +31 -25
- package/build/components/__shared__/Payment/helpers/getCaption.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getComponent.js +23 -17
- package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getImage.js +6 -4
- package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/index.js +3 -3
- package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
- package/build/components/__shared__/Payment/index.js +5 -5
- package/build/components/__shared__/Payment/index.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +21 -20
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +63 -66
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +1 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +1 -1
- package/build/components/__shared__/PriceBreakdown/index.js +1 -1
- package/build/components/__shared__/PriceBreakdown/index.js.map +1 -1
- package/build/components/__shared__/Skeleton/Skeleton.js +13 -19
- package/build/components/__shared__/Skeleton/Skeleton.js.map +1 -1
- package/build/components/__shared__/Skeleton/index.js +1 -1
- package/build/components/__shared__/Skeleton/index.js.map +1 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +10 -8
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +1 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +1 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +1 -1
- package/build/components/__shared__/TextRequiredFields/index.js +1 -1
- package/build/components/__shared__/TextRequiredFields/index.js.map +1 -1
- package/build/components/__shared__/index.js +12 -12
- package/build/components/__shared__/index.js.map +1 -1
- package/build/components/helpers/ICON.AMENITIES.js +123 -83
- package/build/components/helpers/ICON.AMENITIES.js.map +1 -1
- package/build/components/helpers/ICON.js +43 -29
- package/build/components/helpers/ICON.js.map +1 -1
- package/build/components/helpers/constants.js +15 -13
- package/build/components/helpers/constants.js.map +1 -1
- package/build/components/helpers/getButtonPaymentKey.js +17 -11
- package/build/components/helpers/getButtonPaymentKey.js.map +1 -1
- package/build/components/helpers/getButtonPaymentKey.l10n.js +1 -1
- package/build/components/helpers/getButtonPaymentKey.l10n.js.map +1 -1
- package/build/components/helpers/getCalendarCaption.js +13 -25
- package/build/components/helpers/getCalendarCaption.js.map +1 -1
- package/build/components/helpers/getCountryCode.js +3 -2
- package/build/components/helpers/getCountryCode.js.map +1 -1
- package/build/components/helpers/index.js +13 -13
- package/build/components/helpers/index.js.map +1 -1
- package/build/components/helpers/isJest.js +1 -1
- package/build/components/helpers/isJest.js.map +1 -1
- package/build/components/helpers/parseHtml.js +37 -38
- package/build/components/helpers/parseHtml.js.map +1 -1
- package/build/components/helpers/parseToParties.js +5 -4
- package/build/components/helpers/parseToParties.js.map +1 -1
- package/build/components/helpers/testPassword.js +3 -2
- package/build/components/helpers/testPassword.js.map +1 -1
- package/build/components/helpers/toQueryString.js +9 -12
- package/build/components/helpers/toQueryString.js.map +1 -1
- package/build/components/helpers/toUrlParams.js +7 -9
- package/build/components/helpers/toUrlParams.js.map +1 -1
- package/build/components/helpers/trace.js +8 -8
- package/build/components/helpers/trace.js.map +1 -1
- package/build/components/helpers/translate.js +11 -10
- package/build/components/helpers/translate.js.map +1 -1
- package/build/components/index.js +22 -80
- package/build/components/index.js.map +1 -1
- package/build/helpers/checkSession.js +20 -42
- package/build/helpers/checkSession.js.map +1 -1
- package/build/helpers/consolidateStore.js +148 -160
- package/build/helpers/consolidateStore.js.map +1 -1
- package/build/helpers/fetchConfig.js +16 -57
- package/build/helpers/fetchConfig.js.map +1 -1
- package/build/helpers/fetchCookies.js +12 -13
- package/build/helpers/fetchCookies.js.map +1 -1
- package/build/helpers/fetchSession.js +33 -30
- package/build/helpers/fetchSession.js.map +1 -1
- package/build/helpers/fetchUrlParams.js +3 -2
- package/build/helpers/fetchUrlParams.js.map +1 -1
- package/build/helpers/findComponents.js +20 -25
- package/build/helpers/findComponents.js.map +1 -1
- package/build/helpers/findDangerousCSSRules.js +21 -48
- package/build/helpers/findDangerousCSSRules.js.map +1 -1
- package/build/helpers/findInstance.js +20 -34
- package/build/helpers/findInstance.js.map +1 -1
- package/build/helpers/getAccommodationType.js +4 -4
- package/build/helpers/getAccommodationType.js.map +1 -1
- package/build/helpers/getGhost.js +6 -13
- package/build/helpers/getGhost.js.map +1 -1
- package/build/helpers/getLocale.js +12 -22
- package/build/helpers/getLocale.js.map +1 -1
- package/build/helpers/getTags.js +24 -30
- package/build/helpers/getTags.js.map +1 -1
- package/build/helpers/index.js +12 -12
- package/build/helpers/index.js.map +1 -1
- package/build/helpers/loadEnvironment.js +9 -8
- package/build/helpers/loadEnvironment.js.map +1 -1
- package/build/helpers/loadSentry.js +6 -7
- package/build/helpers/loadSentry.js.map +1 -1
- package/build/helpers/theme.js +17 -24
- package/build/helpers/theme.js.map +1 -1
- package/build/helpers/toOccupation.js +36 -48
- package/build/helpers/toOccupation.js.map +1 -1
- package/build/index.js +71 -120
- package/build/index.js.map +1 -1
- package/build/services/Club/constants.js +2 -2
- package/build/services/Club/constants.js.map +1 -1
- package/build/services/Club/get.js +21 -49
- package/build/services/Club/get.js.map +1 -1
- package/build/services/Club/index.js +1 -1
- package/build/services/Club/index.js.map +1 -1
- package/build/services/Engine/constants.js +2 -2
- package/build/services/Engine/constants.js.map +1 -1
- package/build/services/Engine/get.js +22 -54
- package/build/services/Engine/get.js.map +1 -1
- package/build/services/Engine/index.js +1 -1
- package/build/services/Engine/index.js.map +1 -1
- package/build/services/Rates/constants.js +8 -8
- package/build/services/Rates/constants.js.map +1 -1
- package/build/services/Rates/get.js +195 -227
- package/build/services/Rates/get.js.map +1 -1
- package/build/services/Rates/helpers/getPrice.js +9 -7
- package/build/services/Rates/helpers/getPrice.js.map +1 -1
- package/build/services/Rates/helpers/index.js +4 -4
- package/build/services/Rates/helpers/index.js.map +1 -1
- package/build/services/Rates/helpers/normalizePrice.js +4 -3
- package/build/services/Rates/helpers/normalizePrice.js.map +1 -1
- package/build/services/Rates/helpers/parseAmenities.js +67 -89
- package/build/services/Rates/helpers/parseAmenities.js.map +1 -1
- package/build/services/Rates/helpers/parseDiscount.js +21 -21
- package/build/services/Rates/helpers/parseDiscount.js.map +1 -1
- package/build/services/Rates/index.js +1 -1
- package/build/services/Rates/index.js.map +1 -1
- package/build/services/index.js +3 -3
- package/build/services/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Aplazame","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/Payment/components/Aplazame/index.js"],"sourcesContent":["export * from './Aplazame';\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":["_Aplazame","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/Payment/components/Aplazame/index.js"],"sourcesContent":["export * from './Aplazame';\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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.constants.js","names":["CARD_CONFIG","exports","DEFAULT","placeholder","card","CVV","maxLength","AMERICAN_EX"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/Card.constants.js"],"sourcesContent":["const CARD_CONFIG = {\n DEFAULT: {\n placeholder: {\n card: '0000 0000 0000 0000',\n CVV: '000',\n },\n maxLength: { card: 19, CVV: 3 },\n },\n AMERICAN_EX: {\n placeholder: {\n card: '0000 000000 00000',\n CVV: '0000',\n },\n maxLength: { card: 17, CVV: 4 },\n },\n};\n\nexport { CARD_CONFIG };\n"],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Card.constants.js","names":["CARD_CONFIG","exports","DEFAULT","placeholder","card","CVV","maxLength","AMERICAN_EX"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/Card.constants.js"],"sourcesContent":["const CARD_CONFIG = {\n DEFAULT: {\n placeholder: {\n card: '0000 0000 0000 0000',\n CVV: '000',\n },\n maxLength: { card: 19, CVV: 3 },\n },\n AMERICAN_EX: {\n placeholder: {\n card: '0000 000000 00000',\n CVV: '0000',\n },\n maxLength: { card: 17, CVV: 4 },\n },\n};\n\nexport { CARD_CONFIG };\n"],"mappings":";;;;;;AAAA,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAClBE,OAAO,EAAE;IACPC,WAAW,EAAE;MACXC,IAAI,EAAE,qBAAqB;MAC3BC,GAAG,EAAE;IACP,CAAC;IACDC,SAAS,EAAE;MAAEF,IAAI,EAAE,EAAE;MAAEC,GAAG,EAAE;IAAE;EAChC,CAAC;EACDE,WAAW,EAAE;IACXJ,WAAW,EAAE;MACXC,IAAI,EAAE,mBAAmB;MACzBC,GAAG,EAAE;IACP,CAAC;IACDC,SAAS,EAAE;MAAEF,IAAI,EAAE,EAAE;MAAEC,GAAG,EAAE;IAAE;EAChC;AACF,CAAC"}
|
|
@@ -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
|
});
|
|
@@ -12,63 +11,45 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
11
|
var _Card = require("./Card.l10n");
|
|
13
12
|
var style = _interopRequireWildcard(require("./Card.module.css"));
|
|
14
13
|
var _helpers = require("./helpers");
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
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; }
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
23
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
26
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
28
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
29
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
30
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
32
|
-
var DATE_FORMAT = 'MM/YY';
|
|
33
|
-
var Card = exports.Card = function Card(_ref) {
|
|
17
|
+
const DATE_FORMAT = 'MM/YY';
|
|
18
|
+
const Card = _ref => {
|
|
34
19
|
var _form$card, _form$card2, _form$name, _form$name2, _form$expire, _form$expire2, _form$CVV, _form$CVV2;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
showCVV =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
form = _useState2[0],
|
|
52
|
-
setForm = _useState2[1];
|
|
53
|
-
var _useState3 = (0, _react.useState)({}),
|
|
54
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
55
|
-
formError = _useState4[0],
|
|
56
|
-
setFormError = _useState4[1];
|
|
57
|
-
(0, _react.useEffect)(function () {
|
|
20
|
+
let {
|
|
21
|
+
error: {
|
|
22
|
+
card: cardError
|
|
23
|
+
} = {},
|
|
24
|
+
showCVV = true,
|
|
25
|
+
showErrors = false,
|
|
26
|
+
onChange = () => {},
|
|
27
|
+
onError = () => {},
|
|
28
|
+
...others
|
|
29
|
+
} = _ref;
|
|
30
|
+
const {
|
|
31
|
+
translate
|
|
32
|
+
} = (0, _locale.useLocale)();
|
|
33
|
+
const [form, setForm] = (0, _react.useState)({});
|
|
34
|
+
const [formError, setFormError] = (0, _react.useState)({});
|
|
35
|
+
(0, _react.useEffect)(() => {
|
|
58
36
|
onChange(form);
|
|
59
37
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
38
|
}, [form]);
|
|
61
|
-
(0, _react.useEffect)(
|
|
62
|
-
onError(
|
|
39
|
+
(0, _react.useEffect)(() => {
|
|
40
|
+
onError({
|
|
41
|
+
...formError
|
|
42
|
+
});
|
|
63
43
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
64
44
|
}, [formError]);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
maxLength
|
|
71
|
-
placeholder
|
|
45
|
+
const handleChange = values => setForm((0, _helpers.formatValues)(values));
|
|
46
|
+
const {
|
|
47
|
+
testId
|
|
48
|
+
} = others;
|
|
49
|
+
const {
|
|
50
|
+
maxLength,
|
|
51
|
+
placeholder
|
|
52
|
+
} = (0, _helpers.getCardConfig)(form.card);
|
|
72
53
|
return /*#__PURE__*/_react.default.createElement(_ui.Form, {
|
|
73
54
|
autoComplete: "off",
|
|
74
55
|
showErrors: showErrors,
|
|
@@ -129,13 +110,12 @@ var Card = exports.Card = function Card(_ref) {
|
|
|
129
110
|
showRequired: true,
|
|
130
111
|
success: ((_form$CVV2 = form.CVV) === null || _form$CVV2 === void 0 ? void 0 : _form$CVV2.length) > 0 && !formError.CVV,
|
|
131
112
|
value: form.CVV,
|
|
132
|
-
test:
|
|
133
|
-
return (0, _helpers.testCVV)(CVV, maxLength.CVV);
|
|
134
|
-
},
|
|
113
|
+
test: CVV => (0, _helpers.testCVV)(CVV, maxLength.CVV),
|
|
135
114
|
className: style.cvv,
|
|
136
115
|
testId: testId ? "".concat(testId, "-CVV") : undefined
|
|
137
116
|
}));
|
|
138
117
|
};
|
|
118
|
+
exports.Card = Card;
|
|
139
119
|
Card.displayName = 'Mirai:Payments:Card';
|
|
140
120
|
Card.propTypes = {
|
|
141
121
|
error: _propTypes.default.shape({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Card","style","_helpers","_excluded","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ownKeys","e","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","_slicedToArray","arr","i","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","minLen","_arrayLikeToArray","n","toString","slice","constructor","name","Array","from","test","len","arr2","l","iterator","u","a","f","next","done","return","isArray","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","DATE_FORMAT","Card","exports","_ref","_form$card","_form$card2","_form$name","_form$name2","_form$expire","_form$expire2","_form$CVV","_form$CVV2","_ref$error","error","_ref$error2","cardError","card","_ref$showCVV","showCVV","_ref$showErrors","showErrors","_ref$onChange","onChange","_ref$onError","onError","others","_useLocale","useLocale","translate","_useState","useState","_useState2","form","setForm","_useState3","_useState4","formError","setFormError","useEffect","handleChange","values","formatValues","testId","_getCardConfig","getCardConfig","maxLength","placeholder","createElement","Form","autoComplete","tag","validateOnMount","className","InputText","label","L10N","LABEL_CARD_NUMBER","required","showRequired","success","testCard","concat","LABEL_CARD_NAME","minLength","InputDate","expire","format","LABEL_EXPIRATION","LABEL_MONTH_FORMAT","LABEL_YEAR_FORMAT","testExpire","type","CVV","LABEL_CVV","testCVV","cvv","displayName","propTypes","PropTypes","shape","string","bool","func"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/Card.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { InputDate, InputText, Form } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { L10N } from './Card.l10n';\nimport * as style from './Card.module.css';\nimport { formatValues, getCardConfig, testCard, testCVV, testExpire } from './helpers';\n\nconst DATE_FORMAT = 'MM/YY';\n\nconst Card = ({\n error: { card: cardError } = {},\n showCVV = true,\n showErrors = false,\n onChange = () => {},\n onError = () => {},\n ...others\n}) => {\n const { translate } = useLocale();\n\n const [form, setForm] = useState({});\n const [formError, setFormError] = useState({});\n\n useEffect(() => {\n onChange(form);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n useEffect(() => {\n onError({ ...formError });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [formError]);\n\n const handleChange = (values) => setForm(formatValues(values));\n\n const { testId } = others;\n const { maxLength, placeholder } = getCardConfig(form.card);\n\n return (\n <Form\n autoComplete=\"off\"\n showErrors={showErrors}\n tag=\"fieldset\"\n validateOnMount\n onChange={handleChange}\n onError={setFormError}\n className={style.form}\n testId={testId}\n >\n <InputText\n error={(form.card?.length > 0 && !!formError.card) || cardError}\n hint={cardError}\n label={translate(L10N.LABEL_CARD_NUMBER)}\n maxLength={maxLength.card}\n name=\"card\"\n placeholder={placeholder.card}\n required\n showRequired\n success={form.card?.length > 0 && !formError.card}\n value={form.card}\n test={testCard}\n className={style.card}\n testId={testId ? `${testId}-card` : undefined}\n />\n <InputText\n error={form.name?.length === 0 && !!formError.name && !formError.card}\n label={translate(L10N.LABEL_CARD_NAME)}\n minLength={3}\n maxLength={100}\n name=\"name\"\n required\n showRequired\n success={form.name?.length > 0 && !formError.name}\n value={form.name}\n className={style.name}\n testId={testId ? `${testId}-name` : undefined}\n />\n <InputDate\n error={form.expire?.length > 0 && !!formError.expire}\n format={DATE_FORMAT}\n label={translate(L10N.LABEL_EXPIRATION)}\n name=\"expire\"\n maxLength={5}\n placeholder={`${translate(L10N.LABEL_MONTH_FORMAT)}/${translate(L10N.LABEL_YEAR_FORMAT)}`}\n required\n showRequired\n success={form.expire?.length > 0 && !formError.expire}\n test={testExpire}\n type=\"inputDate\"\n value={form.expire}\n className={style.expire}\n testId={testId ? `${testId}-expire` : undefined}\n />\n {showCVV && (\n <InputText\n error={form.CVV?.length > 0 && !!formError.CVV}\n label={translate(L10N.LABEL_CVV)}\n maxLength={maxLength.CVV}\n name=\"CVV\"\n placeholder={placeholder.CVV}\n required\n showRequired\n success={form.CVV?.length > 0 && !formError.CVV}\n value={form.CVV}\n test={(CVV) => testCVV(CVV, maxLength.CVV)}\n className={style.cvv}\n testId={testId ? `${testId}-CVV` : undefined}\n />\n )}\n </Form>\n );\n};\n\nCard.displayName = 'Mirai:Payments:Card';\n\nCard.propTypes = {\n error: PropTypes.shape({\n card: PropTypes.string,\n }),\n showCVV: PropTypes.bool,\n showErrors: PropTypes.bool,\n onChange: PropTypes.func,\n onError: PropTypes.func,\n};\n\nexport { Card };\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IA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qB,IAAI,CAACwC,GAAG,cAAA7D,UAAA,uBAARA,UAAA,CAAUrE,MAAM,IAAG,CAAC,IAAI,CAAC8F,SAAS,CAACoC,GAAI;IAChD7H,KAAK,EAAEqF,IAAI,CAACwC,GAAI;IAChB7F,IAAI,EAAE,SAAAA,KAAC6F,GAAG;MAAA,OAAK,IAAAE,gBAAO,EAACF,GAAG,EAAE3B,SAAS,CAAC2B,GAAG,CAAC;IAAA,CAAC;IAC3CpB,SAAS,EAAErJ,KAAK,CAAC4K,GAAI;IACrBjC,MAAM,EAAEA,MAAM,MAAAmB,MAAA,CAAMnB,MAAM,YAASnF;EAAU,CAC9C,CAEC,CAAC;AAEX,CAAC;AAED0C,IAAI,CAAC2E,WAAW,GAAG,qBAAqB;AAExC3E,IAAI,CAAC4E,SAAS,GAAG;EACfhE,KAAK,EAAEiE,kBAAS,CAACC,KAAK,CAAC;IACrB/D,IAAI,EAAE8D,kBAAS,CAACE;EAClB,CAAC,CAAC;EACF9D,OAAO,EAAE4D,kBAAS,CAACG,IAAI;EACvB7D,UAAU,EAAE0D,kBAAS,CAACG,IAAI;EAC1B3D,QAAQ,EAAEwD,kBAAS,CAACI,IAAI;EACxB1D,OAAO,EAAEsD,kBAAS,CAACI;AACrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Card.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_Card","style","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","DATE_FORMAT","Card","_ref","_form$card","_form$card2","_form$name","_form$name2","_form$expire","_form$expire2","_form$CVV","_form$CVV2","error","card","cardError","showCVV","showErrors","onChange","onError","others","translate","useLocale","form","setForm","useState","formError","setFormError","useEffect","handleChange","values","formatValues","testId","maxLength","placeholder","getCardConfig","createElement","Form","autoComplete","tag","validateOnMount","className","InputText","length","hint","label","L10N","LABEL_CARD_NUMBER","name","required","showRequired","success","value","test","testCard","concat","undefined","LABEL_CARD_NAME","minLength","InputDate","expire","format","LABEL_EXPIRATION","LABEL_MONTH_FORMAT","LABEL_YEAR_FORMAT","testExpire","type","CVV","LABEL_CVV","testCVV","cvv","exports","displayName","propTypes","PropTypes","shape","string","bool","func"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/Card.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { InputDate, InputText, Form } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { L10N } from './Card.l10n';\nimport * as style from './Card.module.css';\nimport { formatValues, getCardConfig, testCard, testCVV, testExpire } from './helpers';\n\nconst DATE_FORMAT = 'MM/YY';\n\nconst Card = ({\n error: { card: cardError } = {},\n showCVV = true,\n showErrors = false,\n onChange = () => {},\n onError = () => {},\n ...others\n}) => {\n const { translate } = useLocale();\n\n const [form, setForm] = useState({});\n const [formError, setFormError] = useState({});\n\n useEffect(() => {\n onChange(form);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n useEffect(() => {\n onError({ ...formError });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [formError]);\n\n const handleChange = (values) => setForm(formatValues(values));\n\n const { testId } = others;\n const { maxLength, placeholder } = getCardConfig(form.card);\n\n return (\n <Form\n autoComplete=\"off\"\n showErrors={showErrors}\n tag=\"fieldset\"\n validateOnMount\n onChange={handleChange}\n onError={setFormError}\n className={style.form}\n testId={testId}\n >\n <InputText\n error={(form.card?.length > 0 && !!formError.card) || cardError}\n hint={cardError}\n label={translate(L10N.LABEL_CARD_NUMBER)}\n maxLength={maxLength.card}\n name=\"card\"\n placeholder={placeholder.card}\n required\n showRequired\n success={form.card?.length > 0 && !formError.card}\n value={form.card}\n test={testCard}\n className={style.card}\n testId={testId ? `${testId}-card` : undefined}\n />\n <InputText\n error={form.name?.length === 0 && !!formError.name && !formError.card}\n label={translate(L10N.LABEL_CARD_NAME)}\n minLength={3}\n maxLength={100}\n name=\"name\"\n required\n showRequired\n success={form.name?.length > 0 && !formError.name}\n value={form.name}\n className={style.name}\n testId={testId ? `${testId}-name` : undefined}\n />\n <InputDate\n error={form.expire?.length > 0 && !!formError.expire}\n format={DATE_FORMAT}\n label={translate(L10N.LABEL_EXPIRATION)}\n name=\"expire\"\n maxLength={5}\n placeholder={`${translate(L10N.LABEL_MONTH_FORMAT)}/${translate(L10N.LABEL_YEAR_FORMAT)}`}\n required\n showRequired\n success={form.expire?.length > 0 && !formError.expire}\n test={testExpire}\n type=\"inputDate\"\n value={form.expire}\n className={style.expire}\n testId={testId ? `${testId}-expire` : undefined}\n />\n {showCVV && (\n <InputText\n error={form.CVV?.length > 0 && !!formError.CVV}\n label={translate(L10N.LABEL_CVV)}\n maxLength={maxLength.CVV}\n name=\"CVV\"\n placeholder={placeholder.CVV}\n required\n showRequired\n success={form.CVV?.length > 0 && !formError.CVV}\n value={form.CVV}\n test={(CVV) => testCVV(CVV, maxLength.CVV)}\n className={style.cvv}\n testId={testId ? `${testId}-CVV` : undefined}\n />\n )}\n </Form>\n );\n};\n\nCard.displayName = 'Mirai:Payments:Card';\n\nCard.propTypes = {\n error: PropTypes.shape({\n card: PropTypes.string,\n }),\n showCVV: PropTypes.bool,\n showErrors: PropTypes.bool,\n onChange: PropTypes.func,\n onError: PropTypes.func,\n};\n\nexport { Card };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAuF,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OA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3D,QAAQ,EAAEwD,kBAAS,CAACI,IAAI;EACxB3D,OAAO,EAAEuD,kBAAS,CAACI;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.l10n.js","names":["L10N","exports","LABEL_CARD_NAME","id","LABEL_CARD_NUMBER","LABEL_CVV","LABEL_EXPIRATION","LABEL_MONTH_FORMAT","LABEL_YEAR_FORMAT"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/Card.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_CARD_NAME: { id: 'payments.label.card_name' },\n LABEL_CARD_NUMBER: { id: 'payments.label.card_number' },\n LABEL_CVV: { id: 'payments.label.cvv' },\n LABEL_EXPIRATION: { id: 'payments.label.expiration' },\n LABEL_MONTH_FORMAT: { id: 'payments.label.month_format' },\n LABEL_YEAR_FORMAT: { id: 'payments.label.year_format' },\n};\n"],"mappings":";;;;;;AAAO,
|
|
1
|
+
{"version":3,"file":"Card.l10n.js","names":["L10N","exports","LABEL_CARD_NAME","id","LABEL_CARD_NUMBER","LABEL_CVV","LABEL_EXPIRATION","LABEL_MONTH_FORMAT","LABEL_YEAR_FORMAT"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/Card.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_CARD_NAME: { id: 'payments.label.card_name' },\n LABEL_CARD_NUMBER: { id: 'payments.label.card_number' },\n LABEL_CVV: { id: 'payments.label.cvv' },\n LABEL_EXPIRATION: { id: 'payments.label.expiration' },\n LABEL_MONTH_FORMAT: { id: 'payments.label.month_format' },\n LABEL_YEAR_FORMAT: { id: 'payments.label.year_format' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,eAAe,EAAE;IAAEC,EAAE,EAAE;EAA2B,CAAC;EACnDC,iBAAiB,EAAE;IAAED,EAAE,EAAE;EAA6B,CAAC;EACvDE,SAAS,EAAE;IAAEF,EAAE,EAAE;EAAqB,CAAC;EACvCG,gBAAgB,EAAE;IAAEH,EAAE,EAAE;EAA4B,CAAC;EACrDI,kBAAkB,EAAE;IAAEJ,EAAE,EAAE;EAA8B,CAAC;EACzDK,iBAAiB,EAAE;IAAEL,EAAE,EAAE;EAA6B;AACxD,CAAC"}
|
|
@@ -4,43 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.formatValues = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _getCardConfig = require("./getCardConfig");
|
|
8
8
|
var _getCardType = require("./getCardType");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
card = _values$card === void 0 ? '' : _values$card,
|
|
21
|
-
_values$CVV = values.CVV,
|
|
22
|
-
CVV = _values$CVV === void 0 ? '' : _values$CVV,
|
|
23
|
-
_values$expire = values.expire,
|
|
24
|
-
expire = _values$expire === void 0 ? '' : _values$expire,
|
|
25
|
-
_values$name = values.name,
|
|
26
|
-
name = _values$name === void 0 ? '' : _values$name;
|
|
27
|
-
card = (_card = card).replace.apply(_card, PARSER);
|
|
28
|
-
CVV = (_CVV = CVV).replace.apply(_CVV, PARSER);
|
|
9
|
+
const PARSER = [/[^\d]/g, ''];
|
|
10
|
+
const formatValues = function () {
|
|
11
|
+
let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12
|
+
let {
|
|
13
|
+
card = '',
|
|
14
|
+
CVV = '',
|
|
15
|
+
expire = '',
|
|
16
|
+
name = ''
|
|
17
|
+
} = values;
|
|
18
|
+
card = card.replace(...PARSER);
|
|
19
|
+
CVV = CVV.replace(...PARSER);
|
|
29
20
|
name = name.toUpperCase();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
card =
|
|
35
|
-
|
|
21
|
+
const {
|
|
22
|
+
placeholder = {}
|
|
23
|
+
} = (0, _getCardConfig.getCardConfig)(card);
|
|
24
|
+
const cardArray = card ? [...card] : [];
|
|
25
|
+
card = [...placeholder.card].map(function () {
|
|
26
|
+
let char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
36
27
|
return char === ' ' ? char : cardArray.length >= 0 ? cardArray.shift() : '';
|
|
37
28
|
}).join('').trimEnd();
|
|
38
29
|
return {
|
|
39
|
-
card
|
|
40
|
-
CVV
|
|
41
|
-
expire
|
|
42
|
-
name
|
|
30
|
+
card,
|
|
31
|
+
CVV,
|
|
32
|
+
expire,
|
|
33
|
+
name,
|
|
43
34
|
type: (0, _getCardType.getCardType)(card)
|
|
44
35
|
};
|
|
45
36
|
};
|
|
37
|
+
exports.formatValues = formatValues;
|
|
46
38
|
//# sourceMappingURL=formatValues.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatValues.js","names":["
|
|
1
|
+
{"version":3,"file":"formatValues.js","names":["_getCardConfig","require","_getCardType","PARSER","formatValues","values","arguments","length","undefined","card","CVV","expire","name","replace","toUpperCase","placeholder","getCardConfig","cardArray","map","char","shift","join","trimEnd","type","getCardType","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/formatValues.js"],"sourcesContent":["import { getCardConfig } from './getCardConfig';\nimport { getCardType } from './getCardType';\n\nconst PARSER = [/[^\\d]/g, ''];\n\nexport const formatValues = (values = {}) => {\n let { card = '', CVV = '', expire = '', name = '' } = values;\n\n card = card.replace(...PARSER);\n CVV = CVV.replace(...PARSER);\n name = name.toUpperCase();\n\n const { placeholder = {} } = getCardConfig(card);\n const cardArray = card ? [...card] : [];\n card = [...placeholder.card]\n .map((char = '') => (char === ' ' ? char : cardArray.length >= 0 ? cardArray.shift() : ''))\n .join('')\n .trimEnd();\n\n return { card, CVV, expire, name, type: getCardType(card) };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,G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AAC7D,CAAC;AAACgB,OAAA,CAAArB,YAAA,GAAAA,YAAA"}
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getCardConfig = void 0;
|
|
7
7
|
var _Card = require("../Card.constants");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
8
|
+
const REGEX_AMERICAN_EX = /^3[47]/;
|
|
9
|
+
const getCardConfig = card => REGEX_AMERICAN_EX.test(card) ? _Card.CARD_CONFIG.AMERICAN_EX : _Card.CARD_CONFIG.DEFAULT;
|
|
10
|
+
exports.getCardConfig = getCardConfig;
|
|
12
11
|
//# sourceMappingURL=getCardConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCardConfig.js","names":["_Card","require","REGEX_AMERICAN_EX","getCardConfig","
|
|
1
|
+
{"version":3,"file":"getCardConfig.js","names":["_Card","require","REGEX_AMERICAN_EX","getCardConfig","card","test","CARD_CONFIG","AMERICAN_EX","DEFAULT","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/getCardConfig.js"],"sourcesContent":["import { CARD_CONFIG } from '../Card.constants';\n\nconst REGEX_AMERICAN_EX = /^3[47]/;\n\nexport const getCardConfig = (card) => (REGEX_AMERICAN_EX.test(card) ? CARD_CONFIG.AMERICAN_EX : CARD_CONFIG.DEFAULT);\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAMC,iBAAiB,GAAG,QAAQ;AAE3B,MAAMC,aAAa,GAAIC,IAAI,IAAMF,iBAAiB,CAACG,IAAI,CAACD,IAAI,CAAC,GAAGE,iBAAW,CAACC,WAAW,GAAGD,iBAAW,CAACE,OAAQ;AAACC,OAAA,CAAAN,aAAA,GAAAA,aAAA"}
|
|
@@ -4,23 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getCardType = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _getCardConfig = require("./getCardConfig");
|
|
8
8
|
var _Payment = require("../../../Payment.constants");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var getCardType = exports.getCardType = function getCardType(card) {
|
|
14
|
-
var _cardTypes;
|
|
15
|
-
var _getCardConfig = (0, _getCardConfig2.getCardConfig)(card),
|
|
16
|
-
_getCardConfig$maxLen = _getCardConfig.maxLength,
|
|
17
|
-
maxLength = _getCardConfig$maxLen === void 0 ? {} : _getCardConfig$maxLen;
|
|
9
|
+
const getCardType = card => {
|
|
10
|
+
const {
|
|
11
|
+
maxLength = {}
|
|
12
|
+
} = (0, _getCardConfig.getCardConfig)(card);
|
|
18
13
|
if (!card || maxLength.card !== card.length) return;
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
const cardTypes = {
|
|
15
|
+
[_Payment.CARD.AMERICAN_EXPRESS]: /^3[47][0-9]{13}$/,
|
|
16
|
+
[_Payment.CARD.DINERS_CLUB]: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,
|
|
17
|
+
[_Payment.CARD.DISCOVER]: /^6(?:011|5[0-9]{2})[0-9]{12}$/,
|
|
18
|
+
[_Payment.CARD.JCB]: /^(?:2131|1800|35\d{3})\d{11}$/,
|
|
19
|
+
[_Payment.CARD.MAESTRO]: /^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$/,
|
|
20
|
+
[_Payment.CARD.MASTERCARD]: /^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,
|
|
21
|
+
[_Payment.CARD.UNIONPAY]: /^(62[0-9]{14,17})$/,
|
|
22
|
+
[_Payment.CARD.VISA]: /^4[0-9]{12}(?:[0-9]{3})?$/
|
|
23
|
+
};
|
|
24
|
+
for (const cardType in cardTypes) {
|
|
21
25
|
if (card.replaceAll(' ', '').match(cardTypes[cardType])) {
|
|
22
26
|
return cardType;
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
};
|
|
30
|
+
exports.getCardType = getCardType;
|
|
26
31
|
//# sourceMappingURL=getCardType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCardType.js","names":["
|
|
1
|
+
{"version":3,"file":"getCardType.js","names":["_getCardConfig","require","_Payment","getCardType","card","maxLength","getCardConfig","length","cardTypes","CARD","AMERICAN_EXPRESS","DINERS_CLUB","DISCOVER","JCB","MAESTRO","MASTERCARD","UNIONPAY","VISA","cardType","replaceAll","match","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/getCardType.js"],"sourcesContent":["import { getCardConfig } from './getCardConfig';\nimport { CARD } from '../../../Payment.constants';\n\nexport const getCardType = (card) => {\n const { maxLength = {} } = getCardConfig(card);\n if (!card || maxLength.card !== card.length) return;\n\n const cardTypes = {\n [CARD.AMERICAN_EXPRESS]: /^3[47][0-9]{13}$/,\n [CARD.DINERS_CLUB]: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,\n [CARD.DISCOVER]: /^6(?:011|5[0-9]{2})[0-9]{12}$/,\n [CARD.JCB]: /^(?:2131|1800|35\\d{3})\\d{11}$/,\n [CARD.MAESTRO]: /^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$/,\n [CARD.MASTERCARD]: /^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,\n [CARD.UNIONPAY]: /^(62[0-9]{14,17})$/,\n [CARD.VISA]: /^4[0-9]{12}(?:[0-9]{3})?$/,\n };\n\n for (const cardType in cardTypes) {\n if (card.replaceAll(' ', '').match(cardTypes[cardType])) {\n return cardType;\n }\n }\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEO,MAAME,WAAW,GAAIC,IAAI,IAAK;EACnC,MAAM;IAAEC,SAAS,GAAG,CAAC;EAAE,CAAC,GAAG,IAAAC,4BAAa,EAACF,IAAI,CAAC;EAC9C,IAAI,CAACA,IAAI,IAAIC,SAAS,CAACD,IAAI,KAAKA,IAAI,CAACG,MAAM,EAAE;EAE7C,MAAMC,SAAS,GAAG;IAChB,CAACC,aAAI,CAACC,gBAAgB,GAAG,kBAAkB;IAC3C,CAACD,aAAI,CAACE,WAAW,GAAG,kCAAkC;IACtD,CAACF,aAAI,CAACG,QAAQ,GAAG,+BAA+B;IAChD,CAACH,aAAI,CAACI,GAAG,GAAG,+BAA+B;IAC3C,CAACJ,aAAI,CAACK,OAAO,GAAG,mDAAmD;IACnE,CAACL,aAAI,CAACM,UAAU,GAAG,qFAAqF;IACxG,CAACN,aAAI,CAACO,QAAQ,GAAG,oBAAoB;IACrC,CAACP,aAAI,CAACQ,IAAI,GAAG;EACf,CAAC;EAED,KAAK,MAAMC,QAAQ,IAAIV,SAAS,EAAE;IAChC,IAAIJ,IAAI,CAACe,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAACC,KAAK,CAACZ,SAAS,CAACU,QAAQ,CAAC,CAAC,EAAE;MACvD,OAAOA,QAAQ;IACjB;EACF;AACF,CAAC;AAACG,OAAA,CAAAlB,WAAA,GAAAA,WAAA"}
|
|
@@ -9,7 +9,7 @@ Object.keys(_formatValues).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _formatValues[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function
|
|
12
|
+
get: function () {
|
|
13
13
|
return _formatValues[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
@@ -20,7 +20,7 @@ Object.keys(_getCardConfig).forEach(function (key) {
|
|
|
20
20
|
if (key in exports && exports[key] === _getCardConfig[key]) return;
|
|
21
21
|
Object.defineProperty(exports, key, {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function
|
|
23
|
+
get: function () {
|
|
24
24
|
return _getCardConfig[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -31,7 +31,7 @@ Object.keys(_testCard).forEach(function (key) {
|
|
|
31
31
|
if (key in exports && exports[key] === _testCard[key]) return;
|
|
32
32
|
Object.defineProperty(exports, key, {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function
|
|
34
|
+
get: function () {
|
|
35
35
|
return _testCard[key];
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -42,7 +42,7 @@ Object.keys(_testCVV).forEach(function (key) {
|
|
|
42
42
|
if (key in exports && exports[key] === _testCVV[key]) return;
|
|
43
43
|
Object.defineProperty(exports, key, {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function
|
|
45
|
+
get: function () {
|
|
46
46
|
return _testCVV[key];
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -53,7 +53,7 @@ Object.keys(_testExpire).forEach(function (key) {
|
|
|
53
53
|
if (key in exports && exports[key] === _testExpire[key]) return;
|
|
54
54
|
Object.defineProperty(exports, key, {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function
|
|
56
|
+
get: function () {
|
|
57
57
|
return _testExpire[key];
|
|
58
58
|
}
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_formatValues","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_getCardConfig","_testCard","_testCVV","_testExpire"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/index.js"],"sourcesContent":["export * from './formatValues';\nexport * from './getCardConfig';\nexport * from './testCard';\nexport * from './testCVV';\nexport * from './testExpire';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_formatValues","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_getCardConfig","_testCard","_testCVV","_testExpire"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/index.js"],"sourcesContent":["export * from './formatValues';\nexport * from './getCardConfig';\nexport * from './testCard';\nexport * from './testCVV';\nexport * from './testExpire';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,cAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,cAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,cAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,cAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,SAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,SAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,SAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,SAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,QAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,QAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,QAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,QAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,WAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,WAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,WAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,WAAA,CAAAR,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.testCVV = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
const testCVV = (CVV, maxLength) => !!CVV && CVV.length === maxLength;
|
|
8
|
+
exports.testCVV = testCVV;
|
|
10
9
|
//# sourceMappingURL=testCVV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testCVV.js","names":["testCVV","
|
|
1
|
+
{"version":3,"file":"testCVV.js","names":["testCVV","CVV","maxLength","length","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/testCVV.js"],"sourcesContent":["export const testCVV = (CVV, maxLength) => !!CVV && CVV.length === maxLength;\n"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAGA,CAACC,GAAG,EAAEC,SAAS,KAAK,CAAC,CAACD,GAAG,IAAIA,GAAG,CAACE,MAAM,KAAKD,SAAS;AAACE,OAAA,CAAAJ,OAAA,GAAAA,OAAA"}
|
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.testCard = void 0;
|
|
7
7
|
var _formatValues = require("./formatValues");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
8
|
+
const testCard = card => !!(0, _formatValues.formatValues)({
|
|
9
|
+
card
|
|
10
|
+
}).type;
|
|
11
|
+
exports.testCard = testCard;
|
|
13
12
|
//# sourceMappingURL=testCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testCard.js","names":["_formatValues","require","testCard","
|
|
1
|
+
{"version":3,"file":"testCard.js","names":["_formatValues","require","testCard","card","formatValues","type","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/testCard.js"],"sourcesContent":["import { formatValues } from './formatValues';\n\nexport const testCard = (card) => !!formatValues({ card }).type;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEO,MAAMC,QAAQ,GAAIC,IAAI,IAAK,CAAC,CAAC,IAAAC,0BAAY,EAAC;EAAED;AAAK,CAAC,CAAC,CAACE,IAAI;AAACC,OAAA,CAAAJ,QAAA,GAAAA,QAAA"}
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.testExpire = void 0;
|
|
7
7
|
var _locale = require("@mirai/locale");
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
const testExpire = expire => {
|
|
9
|
+
const now = (0, _locale.UTC)(new Date());
|
|
10
10
|
return !expire || (expire === null || expire === void 0 ? void 0 : expire.length) === 5 && expire.indexOf('/') === 2 && (0, _locale.UTC)((0, _locale.parseDate)("01".concat(expire.slice(0, 2)).concat(expire.slice(3)), 'DDMMYY')) >= (0, _locale.UTC)(new Date(now.getFullYear(), now.getMonth(), 1));
|
|
11
11
|
};
|
|
12
|
+
exports.testExpire = testExpire;
|
|
12
13
|
//# sourceMappingURL=testExpire.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testExpire.js","names":["_locale","require","testExpire","
|
|
1
|
+
{"version":3,"file":"testExpire.js","names":["_locale","require","testExpire","expire","now","UTC","Date","length","indexOf","parseDate","concat","slice","getFullYear","getMonth","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/testExpire.js"],"sourcesContent":["import { parseDate, UTC } from '@mirai/locale';\n\nexport const testExpire = (expire) => {\n const now = UTC(new Date());\n\n return (\n !expire ||\n (expire?.length === 5 &&\n expire.indexOf('/') === 2 &&\n UTC(parseDate(`01${expire.slice(0, 2)}${expire.slice(3)}`, 'DDMMYY')) >=\n UTC(new Date(now.getFullYear(), now.getMonth(), 1)))\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,UAAU,GAAIC,MAAM,IAAK;EACpC,MAAMC,GAAG,GAAG,IAAAC,WAAG,EAAC,IAAIC,IAAI,CAAC,CAAC,CAAC;EAE3B,OACE,CAACH,MAAM,IACN,CAAAA,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEI,MAAM,MAAK,CAAC,IACnBJ,MAAM,CAACK,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IACzB,IAAAH,WAAG,EAAC,IAAAI,iBAAS,OAAAC,MAAA,CAAMP,MAAM,CAACQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAAD,MAAA,CAAGP,MAAM,CAACQ,KAAK,CAAC,CAAC,CAAC,GAAI,QAAQ,CAAC,CAAC,IACnE,IAAAN,WAAG,EAAC,IAAIC,IAAI,CAACF,GAAG,CAACQ,WAAW,CAAC,CAAC,EAAER,GAAG,CAACS,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE;AAE5D,CAAC;AAACC,OAAA,CAAAZ,UAAA,GAAAA,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Card","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/index.js"],"sourcesContent":["export * from './Card';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Card","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/Payment/components/Card/index.js"],"sourcesContent":["export * from './Card';\n"],"mappings":";;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.SCRIPT_ID = exports.PLACEHOLDER_CVV = exports.PLACEHOLDER_CARD = exports.PCI_CARD = exports.NUMBER_FIELDS = exports.ERROR = void 0;
|
|
7
7
|
var _Payment = require("../../Payment.constants");
|
|
8
|
-
|
|
8
|
+
const ERROR = exports.ERROR = {
|
|
9
9
|
error: true
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const NUMBER_FIELDS = exports.NUMBER_FIELDS = 4;
|
|
12
|
+
const PCI_CARD = exports.PCI_CARD = {
|
|
13
13
|
VIS: _Payment.CARD.VISA,
|
|
14
14
|
AMX: _Payment.CARD.AMERICAN_EXPRESS,
|
|
15
15
|
ECA: _Payment.CARD.MASTERCARD,
|
|
@@ -19,7 +19,7 @@ var PCI_CARD = exports.PCI_CARD = {
|
|
|
19
19
|
CUP: _Payment.CARD.UNIONPAY,
|
|
20
20
|
MAU: _Payment.CARD.MAESTRO
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const PLACEHOLDER_CARD = exports.PLACEHOLDER_CARD = '0000 0000 0000 0000';
|
|
23
|
+
const PLACEHOLDER_CVV = exports.PLACEHOLDER_CVV = '000';
|
|
24
|
+
const SCRIPT_ID = exports.SCRIPT_ID = 'script-pci-proxy';
|
|
25
25
|
//# sourceMappingURL=PCI.constants.js.map
|