@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
package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheckout.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_FormCheckout","_FormCheckout2","style","_helpers","_helpers2","_InputField","_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","FormCheckout","exports","_ref","_ref$publicKey","publicKey","process","env","PROVIDER_CHECKOUT_PUBLICKEY","_ref$onError","onError","_ref$onSuccess","onSuccess","others","_useLocale","useLocale","translate","_useState","useState","_useState2","busy","setBusy","_useState3","_useState4","form","setForm","_useState5","_useState6","formError","setFormError","_useState7","_useState8","ready","setReady","_useState9","_useState10","responseError","setResponseError","useEffect","loadScript","id","onLoad","handleLoad","_ref2","window","Frames","handleValidationChanged","_ref3","element","isValid","handleError","addEventHandler","Events","CARD_TOKENIZED","handleCardTokenized","CARD_TOKENIZATION_FAILED","handleCardTokenizedFailed","FRAME_VALIDATION_CHANGED","removeEventHandler","_window$Frames","_ref4","token","init","FRAME","_window$Frames2","error","enableSubmitForm","handleChange","field","_window$Frames3","getStyle","handlePress","_ref5","cardholder","submitCard","hasError","values","FIELDS_COUNT","some","createElement","View","Text","action","className","description","L10N","LABEL_SECURE_PAGE","InputField","label","LABEL_CARD_NAME","success","Input","onChange","LABEL_CARD_NUMBER","styles","frame","row","LABEL_EXPIRATION","LABEL_CVV","inputCVV","Notification","small","wide","NOTIFICATION_ERROR_CHECKOUT","Button","disabled","large","onPress","button","ACTION_PAY","displayName","propTypes","PropTypes","string","isRequired","func"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Input, Notification, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { FIELDS_COUNT, FRAME } from './FormCheckout.constants';\nimport { L10N } from './FormCheckout.l10n';\nimport * as style from './FormCheckout.module.css';\nimport { getStyle } from './helpers';\nimport { loadScript } from '../../helpers';\nimport { InputField } from '../InputField';\n\nexport const FormCheckout = ({\n publicKey = process.env.PROVIDER_CHECKOUT_PUBLICKEY,\n onError = () => {},\n onSuccess = () => {},\n ...others\n}) => {\n const { translate } = useLocale();\n\n const [busy, setBusy] = useState(false);\n const [form, setForm] = useState({});\n const [formError, setFormError] = useState({});\n const [ready, setReady] = useState(false);\n const [responseError, setResponseError] = useState();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(() => loadScript({ id: 'checkoutScript', name: 'framesv2.min.js', onLoad: handleLoad }), []);\n\n useEffect(() => {\n if (!ready) return;\n\n const { Frames } = window || {};\n const handleValidationChanged = ({ element, isValid }) => handleError(element, !isValid);\n\n Frames.addEventHandler(Frames.Events.CARD_TOKENIZED, handleCardTokenized);\n Frames.addEventHandler(Frames.Events.CARD_TOKENIZATION_FAILED, handleCardTokenizedFailed);\n Frames.addEventHandler(Frames.Events.FRAME_VALIDATION_CHANGED, handleValidationChanged);\n\n return () => {\n Frames.removeEventHandler(Frames.Events.CARD_TOKENIZED, handleCardTokenized);\n Frames.removeEventHandler(Frames.Events.CARD_TOKENIZATION_FAILED, handleCardTokenizedFailed);\n Frames.removeEventHandler(Frames.Events.FRAME_VALIDATION_CHANGED, handleValidationChanged);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form, formError, ready]);\n\n const handleCardTokenized = ({ token } = {}) => {\n setBusy(false);\n if (!token) return;\n\n setForm({});\n setFormError({});\n window.Frames?.init({ publicKey, ...FRAME });\n onSuccess({ ...form, token });\n };\n\n const handleCardTokenizedFailed = (error = {}) => {\n setBusy(false);\n setResponseError(error);\n window.Frames?.enableSubmitForm();\n onError(error);\n };\n\n const handleChange = (field, value = '') => {\n setForm({ ...form, [field]: value });\n setFormError({ ...formError, [field]: value.length === 0 });\n };\n\n const handleError = (field, value) => {\n setFormError({ ...formError, [field]: value });\n };\n\n const handleLoad = () => {\n window.Frames?.init({ publicKey, ...FRAME, ...getStyle() });\n setReady(true);\n };\n\n const handlePress = () => {\n const { Frames } = window || {};\n setBusy(true);\n setResponseError();\n Frames.cardholder = {\n name: form.name,\n };\n Frames.submitCard();\n };\n\n const hasError =\n Object.values(formError).length < FIELDS_COUNT || Object.values(formError).some((value) => value === true);\n\n return (\n <View {...others}>\n <Text action className={style.description}>\n {translate(L10N.LABEL_SECURE_PAGE)}\n </Text>\n\n <InputField label={translate(L10N.LABEL_CARD_NAME)} error={formError.name} success={formError.name === false}>\n <Input name=\"name\" value={form.name} onChange={(value) => handleChange('name', value)} className={style.name} />\n </InputField>\n <InputField\n label={translate(L10N.LABEL_CARD_NUMBER)}\n error={formError['card-number']}\n success={formError['card-number'] === false}\n >\n <div className={styles(style.frame, 'card-number-frame')} />\n </InputField>\n <View row>\n <InputField\n label={translate(L10N.LABEL_EXPIRATION)}\n error={formError['expiry-date']}\n success={formError['expiry-date'] === false}\n >\n <div className={styles(style.frame, 'expiry-date-frame')} />\n </InputField>\n\n <InputField\n label={translate(L10N.LABEL_CVV)}\n error={formError['cvv']}\n success={formError['cvv'] === false}\n className={style.inputCVV}\n >\n <div className={styles(style.frame, 'cvv-frame')} />\n </InputField>\n </View>\n\n {responseError && (\n <Notification error small wide>\n {translate(L10N.NOTIFICATION_ERROR_CHECKOUT)}\n </Notification>\n )}\n\n <Button busy={busy} disabled={hasError} large wide onPress={handlePress} className={style.button}>\n {translate(L10N.ACTION_PAY)}\n </Button>\n </View>\n );\n};\n\nFormCheckout.displayName = 'Mirai:Payments:ButtonPayment:FormCheckout';\n\nFormCheckout.propTypes = {\n publicKey: PropTypes.string.isRequired,\n onError: PropTypes.func,\n onSuccess: PropTypes.func,\n};\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,aAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAH,uBAAA,CAAAL,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,WAAA,GAAAX,OAAA;AAA2C,IAAAY,SAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,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efault","_react","_interopRequireWildcard","_FormCheckout","_FormCheckout2","style","_helpers","_helpers2","_InputField","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","FormCheckout","_ref","publicKey","process","env","PROVIDER_CHECKOUT_PUBLICKEY","onError","onSuccess","others","translate","useLocale","busy","setBusy","useState","form","setForm","formError","setFormError","ready","setReady","responseError","setResponseError","useEffect","loadScript","id","name","onLoad","handleLoad","Frames","window","handleValidationChanged","_ref2","element","isValid","handleError","addEventHandler","Events","CARD_TOKENIZED","handleCardTokenized","CARD_TOKENIZATION_FAILED","handleCardTokenizedFailed","FRAME_VALIDATION_CHANGED","removeEventHandler","_window$Frames","token","arguments","length","undefined","init","FRAME","_window$Frames2","error","enableSubmitForm","handleChange","field","value","_window$Frames3","getStyle","handlePress","cardholder","submitCard","hasError","values","FIELDS_COUNT","some","createElement","View","Text","action","className","description","L10N","LABEL_SECURE_PAGE","InputField","label","LABEL_CARD_NAME","success","Input","onChange","LABEL_CARD_NUMBER","styles","frame","row","LABEL_EXPIRATION","LABEL_CVV","inputCVV","Notification","small","wide","NOTIFICATION_ERROR_CHECKOUT","Button","disabled","large","onPress","button","ACTION_PAY","exports","displayName","propTypes","PropTypes","string","isRequired","func"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Button, Input, Notification, styles, Text, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { FIELDS_COUNT, FRAME } from './FormCheckout.constants';\nimport { L10N } from './FormCheckout.l10n';\nimport * as style from './FormCheckout.module.css';\nimport { getStyle } from './helpers';\nimport { loadScript } from '../../helpers';\nimport { InputField } from '../InputField';\n\nexport const FormCheckout = ({\n publicKey = process.env.PROVIDER_CHECKOUT_PUBLICKEY,\n onError = () => {},\n onSuccess = () => {},\n ...others\n}) => {\n const { translate } = useLocale();\n\n const [busy, setBusy] = useState(false);\n const [form, setForm] = useState({});\n const [formError, setFormError] = useState({});\n const [ready, setReady] = useState(false);\n const [responseError, setResponseError] = useState();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(() => loadScript({ id: 'checkoutScript', name: 'framesv2.min.js', onLoad: handleLoad }), []);\n\n useEffect(() => {\n if (!ready) return;\n\n const { Frames } = window || {};\n const handleValidationChanged = ({ element, isValid }) => handleError(element, !isValid);\n\n Frames.addEventHandler(Frames.Events.CARD_TOKENIZED, handleCardTokenized);\n Frames.addEventHandler(Frames.Events.CARD_TOKENIZATION_FAILED, handleCardTokenizedFailed);\n Frames.addEventHandler(Frames.Events.FRAME_VALIDATION_CHANGED, handleValidationChanged);\n\n return () => {\n Frames.removeEventHandler(Frames.Events.CARD_TOKENIZED, handleCardTokenized);\n Frames.removeEventHandler(Frames.Events.CARD_TOKENIZATION_FAILED, handleCardTokenizedFailed);\n Frames.removeEventHandler(Frames.Events.FRAME_VALIDATION_CHANGED, handleValidationChanged);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form, formError, ready]);\n\n const handleCardTokenized = ({ token } = {}) => {\n setBusy(false);\n if (!token) return;\n\n setForm({});\n setFormError({});\n window.Frames?.init({ publicKey, ...FRAME });\n onSuccess({ ...form, token });\n };\n\n const handleCardTokenizedFailed = (error = {}) => {\n setBusy(false);\n setResponseError(error);\n window.Frames?.enableSubmitForm();\n onError(error);\n };\n\n const handleChange = (field, value = '') => {\n setForm({ ...form, [field]: value });\n setFormError({ ...formError, [field]: value.length === 0 });\n };\n\n const handleError = (field, value) => {\n setFormError({ ...formError, [field]: value });\n };\n\n const handleLoad = () => {\n window.Frames?.init({ publicKey, ...FRAME, ...getStyle() });\n setReady(true);\n };\n\n const handlePress = () => {\n const { Frames } = window || {};\n setBusy(true);\n setResponseError();\n Frames.cardholder = {\n name: form.name,\n };\n Frames.submitCard();\n };\n\n const hasError =\n Object.values(formError).length < FIELDS_COUNT || Object.values(formError).some((value) => value === true);\n\n return (\n <View {...others}>\n <Text action className={style.description}>\n {translate(L10N.LABEL_SECURE_PAGE)}\n </Text>\n\n <InputField label={translate(L10N.LABEL_CARD_NAME)} error={formError.name} success={formError.name === false}>\n <Input name=\"name\" value={form.name} onChange={(value) => handleChange('name', value)} className={style.name} />\n </InputField>\n <InputField\n label={translate(L10N.LABEL_CARD_NUMBER)}\n error={formError['card-number']}\n success={formError['card-number'] === false}\n >\n <div className={styles(style.frame, 'card-number-frame')} />\n </InputField>\n <View row>\n <InputField\n label={translate(L10N.LABEL_EXPIRATION)}\n error={formError['expiry-date']}\n success={formError['expiry-date'] === false}\n >\n <div className={styles(style.frame, 'expiry-date-frame')} />\n </InputField>\n\n <InputField\n label={translate(L10N.LABEL_CVV)}\n error={formError['cvv']}\n success={formError['cvv'] === false}\n className={style.inputCVV}\n >\n <div className={styles(style.frame, 'cvv-frame')} />\n </InputField>\n </View>\n\n {responseError && (\n <Notification error small wide>\n {translate(L10N.NOTIFICATION_ERROR_CHECKOUT)}\n </Notification>\n )}\n\n <Button busy={busy} disabled={hasError} large wide onPress={handlePress} className={style.button}>\n {translate(L10N.ACTION_PAY)}\n </Button>\n </View>\n );\n};\n\nFormCheckout.displayName = 'Mirai:Payments:ButtonPayment:FormCheckout';\n\nFormCheckout.propTypes = {\n publicKey: PropTypes.string.isRequired,\n onError: PropTypes.func,\n onSuccess: PropTypes.func,\n};\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,aAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAH,uBAAA,CAAAL,OAAA;AACA,IAAAS,QAAA,GAAAT,OAA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iF,aAAA,CAAClG,GAAA,CAAAuH,YAAY;IAACnC,KAAK;IAACoC,KAAK;IAACC,IAAI;EAAA,GAC3B/E,SAAS,CAAC8D,mBAAI,CAACkB,2BAA2B,CAC/B,CACf,eAEDvH,MAAA,CAAAc,OAAA,CAAAiF,aAAA,CAAClG,GAAA,CAAA2H,MAAM;IAAC/E,IAAI,EAAEA,IAAK;IAACgF,QAAQ,EAAE9B,QAAS;IAAC+B,KAAK;IAACJ,IAAI;IAACK,OAAO,EAAEnC,WAAY;IAACW,SAAS,EAAE/F,KAAK,CAACwH;EAAO,GAC9FrF,SAAS,CAAC8D,mBAAI,CAACwB,UAAU,CACpB,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAhG,YAAA,GAAAA,YAAA;AAEFA,YAAY,CAACiG,WAAW,GAAG,2CAA2C;AAEtEjG,YAAY,CAACkG,SAAS,GAAG;EACvBhG,SAAS,EAAEiG,kBAAS,CAACC,MAAM,CAACC,UAAU;EACtC/F,OAAO,EAAE6F,kBAAS,CAACG,IAAI;EACvB/F,SAAS,EAAE4F,kBAAS,CAACG;AACvB,CAAC"}
|
package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheckout.l10n.js","names":["L10N","exports","ACTION_PAY","id","LABEL_CARD_NAME","LABEL_CARD_NUMBER","LABEL_CVV","LABEL_EXPIRATION","LABEL_SECURE_PAGE","NOTIFICATION_ERROR_CHECKOUT"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_PAY: { id: 'payments.action.pay' },\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_SECURE_PAGE: { id: 'payments.label.secure_page' },\n NOTIFICATION_ERROR_CHECKOUT: { id: 'payments.notification.error_checkout' },\n};\n"],"mappings":";;;;;;AAAO,
|
|
1
|
+
{"version":3,"file":"FormCheckout.l10n.js","names":["L10N","exports","ACTION_PAY","id","LABEL_CARD_NAME","LABEL_CARD_NUMBER","LABEL_CVV","LABEL_EXPIRATION","LABEL_SECURE_PAGE","NOTIFICATION_ERROR_CHECKOUT"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_PAY: { id: 'payments.action.pay' },\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_SECURE_PAGE: { id: 'payments.label.secure_page' },\n NOTIFICATION_ERROR_CHECKOUT: { id: 'payments.notification.error_checkout' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,UAAU,EAAE;IAAEC,EAAE,EAAE;EAAsB,CAAC;EACzCC,eAAe,EAAE;IAAED,EAAE,EAAE;EAA2B,CAAC;EACnDE,iBAAiB,EAAE;IAAEF,EAAE,EAAE;EAA6B,CAAC;EACvDG,SAAS,EAAE;IAAEH,EAAE,EAAE;EAAqB,CAAC;EACvCI,gBAAgB,EAAE;IAAEJ,EAAE,EAAE;EAA4B,CAAC;EACrDK,iBAAiB,EAAE;IAAEL,EAAE,EAAE;EAA6B,CAAC;EACvDM,2BAA2B,EAAE;IAAEN,EAAE,EAAE;EAAuC;AAC5E,CAAC"}
|
package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js
CHANGED
|
@@ -5,13 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getStyle = void 0;
|
|
7
7
|
var _ui = require("@mirai/ui");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
inputDisabled
|
|
11
|
-
inputFont
|
|
12
|
-
inputFontSize
|
|
13
|
-
fontWeight
|
|
14
|
-
content
|
|
8
|
+
const getStyle = () => {
|
|
9
|
+
const {
|
|
10
|
+
inputDisabled,
|
|
11
|
+
inputFont,
|
|
12
|
+
inputFontSize,
|
|
13
|
+
fontWeight,
|
|
14
|
+
content
|
|
15
|
+
} = _ui.Theme.get();
|
|
15
16
|
return {
|
|
16
17
|
style: {
|
|
17
18
|
base: {
|
|
@@ -32,4 +33,5 @@ var getStyle = exports.getStyle = function getStyle() {
|
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
};
|
|
36
|
+
exports.getStyle = getStyle;
|
|
35
37
|
//# sourceMappingURL=getStyle.js.map
|
package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStyle.js","names":["_ui","require","getStyle","
|
|
1
|
+
{"version":3,"file":"getStyle.js","names":["_ui","require","getStyle","inputDisabled","inputFont","inputFontSize","fontWeight","content","Theme","get","style","base","color","fontFamily","fontSize","letterSpacing","placeholder","focus","exports"],"sources":["../../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js"],"sourcesContent":["import { Theme } from '@mirai/ui';\n\nexport const getStyle = () => {\n const { inputDisabled, inputFont, inputFontSize, fontWeight, content } = Theme.get();\n\n return {\n style: {\n base: {\n color: content,\n fontFamily: inputFont,\n fontSize: inputFontSize,\n fontWeight: fontWeight,\n letterSpacing: 0,\n },\n placeholder: {\n base: {\n color: 'transparent',\n },\n focus: {\n color: inputDisabled,\n },\n },\n },\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AAEO,MAAMC,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAM;IAAEC,aAAa;IAAEC,SAAS;IAAEC,aAAa;IAAEC,UAAU;IAAEC;EAAQ,CAAC,GAAGC,SAAK,CAACC,GAAG,CAAC,CAAC;EAEpF,OAAO;IACLC,KAAK,EAAE;MACLC,IAAI,EAAE;QACJC,KAAK,EAAEL,OAAO;QACdM,UAAU,EAAET,SAAS;QACrBU,QAAQ,EAAET,aAAa;QACvBC,UAAU,EAAEA,UAAU;QACtBS,aAAa,EAAE;MACjB,CAAC;MACDC,WAAW,EAAE;QACXL,IAAI,EAAE;UACJC,KAAK,EAAE;QACT,CAAC;QACDK,KAAK,EAAE;UACLL,KAAK,EAAET;QACT;MACF;IACF;EACF,CAAC;AACH,CAAC;AAACe,OAAA,CAAAhB,QAAA,GAAAA,QAAA"}
|
package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_getStyle","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js"],"sourcesContent":["export * from './getStyle';\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":["_getStyle","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js"],"sourcesContent":["export * from './getStyle';\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"}
|
|
@@ -9,7 +9,7 @@ Object.keys(_FormCheckout).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _FormCheckout[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function
|
|
12
|
+
get: function () {
|
|
13
13
|
return _FormCheckout[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_FormCheckout","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/index.js"],"sourcesContent":["export * from './FormCheckout';\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":["_FormCheckout","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormCheckout/index.js"],"sourcesContent":["export * from './FormCheckout';\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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormPaycomet.constants.js","names":["SCRIPT_ID","exports"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js"],"sourcesContent":["const SCRIPT_ID = 'paycomet_script';\n\nexport { SCRIPT_ID };\n"],"mappings":";;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"FormPaycomet.constants.js","names":["SCRIPT_ID","exports"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js"],"sourcesContent":["const SCRIPT_ID = 'paycomet_script';\n\nexport { SCRIPT_ID };\n"],"mappings":";;;;;;AAAA,MAAMA,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,iBAAiB"}
|
|
@@ -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
|
});
|
|
@@ -14,126 +13,106 @@ var _FormPaycomet2 = require("./FormPaycomet.l10n");
|
|
|
14
13
|
var style = _interopRequireWildcard(require("./FormPaycomet.module.css"));
|
|
15
14
|
var _helpers = require("./helpers");
|
|
16
15
|
var _InputField = require("../InputField");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
|
-
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; }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
21
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
others = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
-
var _useLocale = (0, _locale.useLocale)(),
|
|
47
|
-
locale = _useLocale.locale,
|
|
48
|
-
translate = _useLocale.translate;
|
|
49
|
-
var formRef = (0, _react.useRef)();
|
|
50
|
-
var tokenRef = (0, _react.useRef)();
|
|
51
|
-
var errorRef = (0, _react.useRef)();
|
|
52
|
-
(0, _helpers.useMutationObserver)(tokenRef.current, function () {
|
|
53
|
-
var _ref2 = document.getElementById('paytpvToken') || {},
|
|
54
|
-
_ref2$value = _ref2.value,
|
|
55
|
-
nextToken = _ref2$value === void 0 ? '' : _ref2$value;
|
|
19
|
+
/* eslint-disable react/no-unknown-property */
|
|
20
|
+
|
|
21
|
+
const FormPaycomet = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
currencyDecimals = 2,
|
|
24
|
+
info: {
|
|
25
|
+
amount
|
|
26
|
+
} = {},
|
|
27
|
+
publicKey = process.env.PROVIDER_PAYCOMET_PUBLICKEY,
|
|
28
|
+
onSuccess = () => {},
|
|
29
|
+
...others
|
|
30
|
+
} = _ref;
|
|
31
|
+
const {
|
|
32
|
+
locale,
|
|
33
|
+
translate
|
|
34
|
+
} = (0, _locale.useLocale)();
|
|
35
|
+
const formRef = (0, _react.useRef)();
|
|
36
|
+
const tokenRef = (0, _react.useRef)();
|
|
37
|
+
const errorRef = (0, _react.useRef)();
|
|
38
|
+
(0, _helpers.useMutationObserver)(tokenRef.current, () => {
|
|
39
|
+
const {
|
|
40
|
+
value: nextToken = ''
|
|
41
|
+
} = document.getElementById('paytpvToken') || {};
|
|
56
42
|
if (nextToken.length > 0) setToken(nextToken);
|
|
57
43
|
}, {
|
|
58
44
|
attributes: true
|
|
59
45
|
});
|
|
60
|
-
(0, _helpers.useMutationObserver)(errorRef.current,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
46
|
+
(0, _helpers.useMutationObserver)(errorRef.current, () => {
|
|
47
|
+
const {
|
|
48
|
+
textContent: nextError = ''
|
|
49
|
+
} = document.getElementById('paymentErrorMsg') || {};
|
|
64
50
|
if ((nextError === null || nextError === void 0 ? void 0 : nextError.length) > 0) {
|
|
65
51
|
setError(nextError);
|
|
66
52
|
setBusy(false);
|
|
67
53
|
}
|
|
68
54
|
});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
token = _useState4[0],
|
|
76
|
-
setToken = _useState4[1];
|
|
77
|
-
var _useState5 = (0, _react.useState)(),
|
|
78
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
79
|
-
error = _useState6[0],
|
|
80
|
-
setError = _useState6[1];
|
|
81
|
-
var _useState7 = (0, _react.useState)({}),
|
|
82
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
83
|
-
expire = _useState8[0],
|
|
84
|
-
setExpire = _useState8[1];
|
|
85
|
-
(0, _react.useEffect)(function () {
|
|
86
|
-
var exists = document.getElementById(_FormPaycomet.SCRIPT_ID);
|
|
55
|
+
const [busy, setBusy] = (0, _react.useState)(false);
|
|
56
|
+
const [token, setToken] = (0, _react.useState)();
|
|
57
|
+
const [error, setError] = (0, _react.useState)();
|
|
58
|
+
const [expire, setExpire] = (0, _react.useState)({});
|
|
59
|
+
(0, _react.useEffect)(() => {
|
|
60
|
+
const exists = document.getElementById(_FormPaycomet.SCRIPT_ID);
|
|
87
61
|
if (!exists) {
|
|
88
|
-
|
|
62
|
+
const script = document.createElement('script');
|
|
89
63
|
script.id = _FormPaycomet.SCRIPT_ID;
|
|
90
64
|
script.src = "".concat(process.env.PROVIDER_PAYCOMET_SCRIPT, "?lang=").concat(locale.split('-')[0]);
|
|
91
65
|
document.head.appendChild(script);
|
|
92
66
|
}
|
|
93
|
-
return
|
|
94
|
-
|
|
67
|
+
return () => {
|
|
68
|
+
const el = document.getElementById(_FormPaycomet.SCRIPT_ID);
|
|
95
69
|
if (el) el.parentNode.removeChild(el);
|
|
96
70
|
};
|
|
97
71
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
98
72
|
}, []);
|
|
99
|
-
(0, _react.useEffect)(
|
|
73
|
+
(0, _react.useEffect)(() => {
|
|
100
74
|
if (!token) return;
|
|
101
75
|
setBusy(false);
|
|
102
76
|
setError();
|
|
103
77
|
onSuccess({
|
|
104
|
-
token
|
|
78
|
+
token
|
|
105
79
|
});
|
|
106
80
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
107
81
|
}, [token]);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
name
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
setExpire(
|
|
82
|
+
const handleExpireChange = event => {
|
|
83
|
+
const {
|
|
84
|
+
name,
|
|
85
|
+
value = ''
|
|
86
|
+
} = event.target || {};
|
|
87
|
+
setExpire({
|
|
88
|
+
...expire,
|
|
89
|
+
[name]: value.replace(/[^\d]/g, '')
|
|
90
|
+
});
|
|
114
91
|
};
|
|
115
|
-
|
|
92
|
+
const handleCardTokenized = event => {
|
|
116
93
|
event.preventDefault();
|
|
117
94
|
setBusy(true);
|
|
118
95
|
};
|
|
119
|
-
|
|
96
|
+
const handlePress = event => {
|
|
120
97
|
event.stopPropagation();
|
|
121
98
|
formRef.current.submit();
|
|
122
99
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
inputColor
|
|
126
|
-
inputFontSize
|
|
127
|
-
inputNumberValueWidth
|
|
128
|
-
font
|
|
100
|
+
const getInlineStyle = () => {
|
|
101
|
+
const {
|
|
102
|
+
inputColor,
|
|
103
|
+
inputFontSize,
|
|
104
|
+
inputNumberValueWidth,
|
|
105
|
+
font
|
|
106
|
+
} = _ui.Theme.get();
|
|
129
107
|
return {
|
|
130
108
|
cvv: "border:0px;color:".concat(inputColor, ";font-family:").concat(font, ";font-size:").concat(inputFontSize, ";height:").concat(inputNumberValueWidth, ";padding:0!important;"),
|
|
131
109
|
card_number: "border:0px;background-image:none;color:".concat(inputColor, ";font-family:").concat(font, ";font-size:").concat(inputFontSize, ";height:").concat(inputNumberValueWidth, ";outline: 0;padding:0!important;")
|
|
132
110
|
};
|
|
133
111
|
};
|
|
134
|
-
|
|
135
|
-
card_number
|
|
136
|
-
cvv
|
|
112
|
+
const {
|
|
113
|
+
card_number,
|
|
114
|
+
cvv
|
|
115
|
+
} = getInlineStyle();
|
|
137
116
|
return /*#__PURE__*/_react.default.createElement(_ui.View, others, /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
138
117
|
action: true
|
|
139
118
|
}, translate(_FormPaycomet2.L10N.LABEL_SECURE_PAGE)), /*#__PURE__*/_react.default.createElement("form", {
|
|
@@ -218,6 +197,7 @@ var FormPaycomet = exports.FormPaycomet = function FormPaycomet(_ref) {
|
|
|
218
197
|
}
|
|
219
198
|
}));
|
|
220
199
|
};
|
|
200
|
+
exports.FormPaycomet = FormPaycomet;
|
|
221
201
|
FormPaycomet.displayName = 'Mirai:Payments:ButtonPayment:FormPaycomet';
|
|
222
202
|
FormPaycomet.propTypes = {
|
|
223
203
|
currencyDecimals: _propTypes.default.number,
|
package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormPaycomet.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_FormPaycomet","_FormPaycomet2","style","_helpers","_InputField","_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","FormPaycomet","exports","_ref","_ref$currencyDecimals","currencyDecimals","_ref$info","info","_ref$info2","amount","_ref$publicKey","publicKey","process","env","PROVIDER_PAYCOMET_PUBLICKEY","_ref$onSuccess","onSuccess","others","_useLocale","useLocale","locale","translate","formRef","useRef","tokenRef","errorRef","useMutationObserver","current","_ref2","document","getElementById","_ref2$value","nextToken","setToken","attributes","_ref3","_ref3$textContent","textContent","nextError","setError","setBusy","_useState","useState","_useState2","busy","_useState3","_useState4","token","_useState5","_useState6","error","_useState7","_useState8","expire","setExpire","useEffect","exists","SCRIPT_ID","script","createElement","id","src","concat","PROVIDER_PAYCOMET_SCRIPT","split","head","appendChild","el","parentNode","removeChild","handleExpireChange","event","_ref4","_ref4$value","replace","handleCardTokenized","preventDefault","handlePress","stopPropagation","submit","getInlineStyle","_Theme$get","Theme","inputColor","inputFontSize","inputNumberValueWidth","font","cvv","card_number","_getInlineStyle","View","Text","action","L10N","LABEL_SECURE_PAGE","ref","onSubmit","type","Math","pow","toFixed","InputField","label","LABEL_CARD_NAME","className","inputName","LABEL_CARD_NUMBER","LABEL_CARD_NUMBER_PLACEHOLDER","row","LABEL_EXPIRATION","onChange","month","maxLength","inputExpire","year","LABEL_CVV","inputCVV","Button","large","wide","onPress","ACTION_PAY","Notification","display","displayName","propTypes","PropTypes","number","shape","string","isRequired","func"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.jsx"],"sourcesContent":["/* eslint-disable react/no-unknown-property */\nimport { useLocale } from '@mirai/locale';\nimport { Button, Notification, Text, Theme, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { SCRIPT_ID } from './FormPaycomet.constants';\nimport { L10N } from './FormPaycomet.l10n';\nimport * as style from './FormPaycomet.module.css';\nimport { useMutationObserver } from './helpers';\nimport { InputField } from '../InputField';\n\nexport const FormPaycomet = ({\n currencyDecimals = 2,\n info: { amount } = {},\n publicKey = process.env.PROVIDER_PAYCOMET_PUBLICKEY,\n onSuccess = () => {},\n ...others\n}) => {\n const { locale, translate } = useLocale();\n\n const formRef = useRef();\n const tokenRef = useRef();\n const errorRef = useRef();\n\n useMutationObserver(\n tokenRef.current,\n () => {\n const { value: nextToken = '' } = document.getElementById('paytpvToken') || {};\n if (nextToken.length > 0) setToken(nextToken);\n },\n { attributes: true },\n );\n\n useMutationObserver(errorRef.current, () => {\n const { textContent: nextError = '' } = document.getElementById('paymentErrorMsg') || {};\n if (nextError?.length > 0) {\n setError(nextError);\n setBusy(false);\n }\n });\n\n const [busy, setBusy] = useState(false);\n const [token, setToken] = useState();\n const [error, setError] = useState();\n const [expire, setExpire] = useState({});\n\n useEffect(() => {\n const exists = document.getElementById(SCRIPT_ID);\n if (!exists) {\n const script = document.createElement('script');\n script.id = SCRIPT_ID;\n script.src = `${process.env.PROVIDER_PAYCOMET_SCRIPT}?lang=${locale.split('-')[0]}`;\n\n document.head.appendChild(script);\n }\n return () => {\n const el = document.getElementById(SCRIPT_ID);\n if (el) el.parentNode.removeChild(el);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n if (!token) return;\n\n setBusy(false);\n setError();\n onSuccess({ token });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [token]);\n\n const handleExpireChange = (event) => {\n const { name, value = '' } = event.target || {};\n setExpire({ ...expire, [name]: value.replace(/[^\\d]/g, '') });\n };\n\n const handleCardTokenized = (event) => {\n event.preventDefault();\n setBusy(true);\n };\n\n const handlePress = (event) => {\n event.stopPropagation();\n formRef.current.submit();\n };\n\n const getInlineStyle = () => {\n const { inputColor, inputFontSize, inputNumberValueWidth, font } = Theme.get();\n return {\n cvv: `border:0px;color:${inputColor};font-family:${font};font-size:${inputFontSize};height:${inputNumberValueWidth};padding:0!important;`,\n card_number: `border:0px;background-image:none;color:${inputColor};font-family:${font};font-size:${inputFontSize};height:${inputNumberValueWidth};outline: 0;padding:0!important;`,\n };\n };\n const { card_number, cvv } = getInlineStyle();\n\n return (\n <View {...others}>\n <Text action>{translate(L10N.LABEL_SECURE_PAGE)}</Text>\n <form ref={formRef} id=\"paycometPaymentForm\" onSubmit={handleCardTokenized} action=\"javascript:void(0)\">\n <input type=\"hidden\" name=\"amount\" value={(amount * Math.pow(10, currencyDecimals)).toFixed()} />\n <input type=\"hidden\" data-paycomet=\"jetID\" value={publicKey} />\n <input ref={tokenRef} type=\"hidden\" id=\"paytpvToken\" name=\"paytpvToken\" value=\"\" />\n <InputField label={translate(L10N.LABEL_CARD_NAME)}>\n <input data-paycomet=\"cardHolderName\" className={style.inputName} />\n </InputField>\n <InputField label={translate(L10N.LABEL_CARD_NUMBER)}>\n <div id=\"paycomet-pan\" className={style.inputName}></div>\n <input\n paycomet-style={card_number}\n paycomet-name=\"pan\"\n paycomet-placeholder={translate(L10N.LABEL_CARD_NUMBER_PLACEHOLDER)}\n />\n </InputField>\n <View row>\n <InputField label={translate(L10N.LABEL_EXPIRATION)}>\n <View row className={style.inputName}>\n <input\n onChange={handleExpireChange}\n value={expire.month}\n name=\"month\"\n data-paycomet=\"dateMonth\"\n maxLength={2}\n className={style.inputExpire}\n />\n /\n <input\n onChange={handleExpireChange}\n value={expire.year}\n name=\"year\"\n data-paycomet=\"dateYear\"\n maxLength={2}\n className={style.inputExpire}\n />\n </View>\n </InputField>\n\n <InputField label={translate(L10N.LABEL_CVV)} className={style.inputCVV}>\n <div id=\"paycomet-cvc2\" data-paycomet=\"cvc2\" className={style.inputName}></div>\n <input paycomet-name=\"cvc2\" paycomet-style={cvv} />\n </InputField>\n </View>\n <Button busy={busy} large wide onPress={handlePress} preventDefault={false}>\n {translate(L10N.ACTION_PAY)}\n </Button>\n </form>\n {error && (\n <Notification className={style.error} error wide>\n {error}\n </Notification>\n )}\n <div ref={errorRef} id=\"paymentErrorMsg\" style={{ display: 'none' }}></div>\n </View>\n );\n};\n\nFormPaycomet.displayName = 'Mirai:Payments:ButtonPayment:FormPaycomet';\n\nFormPaycomet.propTypes = {\n currencyDecimals: PropTypes.number,\n info: PropTypes.shape({\n amount: PropTypes.number,\n }),\n publicKey: PropTypes.string.isRequired,\n onSuccess: PropTypes.func,\n};\n"],"mappings":";;;;;;;AACA,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,aAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAH,uBAAA,CAAAL,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAA2C,IAAAW,SAAA;AAV3C;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,C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ACf,eACDvJ,MAAA,CAAAgB,OAAA,CAAAgJ,aAAA;IAAKoC,GAAG,EAAEtE,QAAS;IAACmC,EAAE,EAAC,iBAAiB;IAAC7J,KAAK,EAAE;MAAE4N,OAAO,EAAE;IAAO;EAAE,CAAM,CACtE,CAAC;AAEX,CAAC;AAED1H,YAAY,CAAC2H,WAAW,GAAG,2CAA2C;AAEtE3H,YAAY,CAAC4H,SAAS,GAAG;EACvBxH,gBAAgB,EAAEyH,kBAAS,CAACC,MAAM;EAClCxH,IAAI,EAAEuH,kBAAS,CAACE,KAAK,CAAC;IACpBvH,MAAM,EAAEqH,kBAAS,CAACC;EACpB,CAAC,CAAC;EACFpH,SAAS,EAAEmH,kBAAS,CAACG,MAAM,CAACC,UAAU;EACtClH,SAAS,EAAE8G,kBAAS,CAACK;AACvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"FormPaycomet.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_FormPaycomet","_FormPaycomet2","style","_helpers","_InputField","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","FormPaycomet","_ref","currencyDecimals","info","amount","publicKey","process","env","PROVIDER_PAYCOMET_PUBLICKEY","onSuccess","others","locale","translate","useLocale","formRef","useRef","tokenRef","errorRef","useMutationObserver","current","value","nextToken","document","getElementById","length","setToken","attributes","textContent","nextError","setError","setBusy","busy","useState","token","error","expire","setExpire","useEffect","exists","SCRIPT_ID","script","createElement","id","src","concat","PROVIDER_PAYCOMET_SCRIPT","split","head","appendChild","el","parentNode","removeChild","handleExpireChange","event","name","target","replace","handleCardTokenized","preventDefault","handlePress","stopPropagation","submit","getInlineStyle","inputColor","inputFontSize","inputNumberValueWidth","font","Theme","cvv","card_number","View","Text","action","L10N","LABEL_SECURE_PAGE","ref","onSubmit","type","Math","pow","toFixed","InputField","label","LABEL_CARD_NAME","className","inputName","LABEL_CARD_NUMBER","LABEL_CARD_NUMBER_PLACEHOLDER","row","LABEL_EXPIRATION","onChange","month","maxLength","inputExpire","year","LABEL_CVV","inputCVV","Button","large","wide","onPress","ACTION_PAY","Notification","display","exports","displayName","propTypes","PropTypes","number","shape","string","isRequired","func"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.jsx"],"sourcesContent":["/* eslint-disable react/no-unknown-property */\nimport { useLocale } from '@mirai/locale';\nimport { Button, Notification, Text, Theme, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef, useState } from 'react';\n\nimport { SCRIPT_ID } from './FormPaycomet.constants';\nimport { L10N } from './FormPaycomet.l10n';\nimport * as style from './FormPaycomet.module.css';\nimport { useMutationObserver } from './helpers';\nimport { InputField } from '../InputField';\n\nexport const FormPaycomet = ({\n currencyDecimals = 2,\n info: { amount } = {},\n publicKey = process.env.PROVIDER_PAYCOMET_PUBLICKEY,\n onSuccess = () => {},\n ...others\n}) => {\n const { locale, translate } = useLocale();\n\n const formRef = useRef();\n const tokenRef = useRef();\n const errorRef = useRef();\n\n useMutationObserver(\n tokenRef.current,\n () => {\n const { value: nextToken = '' } = document.getElementById('paytpvToken') || {};\n if (nextToken.length > 0) setToken(nextToken);\n },\n { attributes: true },\n );\n\n useMutationObserver(errorRef.current, () => {\n const { textContent: nextError = '' } = document.getElementById('paymentErrorMsg') || {};\n if (nextError?.length > 0) {\n setError(nextError);\n setBusy(false);\n }\n });\n\n const [busy, setBusy] = useState(false);\n const [token, setToken] = useState();\n const [error, setError] = useState();\n const [expire, setExpire] = useState({});\n\n useEffect(() => {\n const exists = document.getElementById(SCRIPT_ID);\n if (!exists) {\n const script = document.createElement('script');\n script.id = SCRIPT_ID;\n script.src = `${process.env.PROVIDER_PAYCOMET_SCRIPT}?lang=${locale.split('-')[0]}`;\n\n document.head.appendChild(script);\n }\n return () => {\n const el = document.getElementById(SCRIPT_ID);\n if (el) el.parentNode.removeChild(el);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n if (!token) return;\n\n setBusy(false);\n setError();\n onSuccess({ token });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [token]);\n\n const handleExpireChange = (event) => {\n const { name, value = '' } = event.target || {};\n setExpire({ ...expire, [name]: value.replace(/[^\\d]/g, '') });\n };\n\n const handleCardTokenized = (event) => {\n event.preventDefault();\n setBusy(true);\n };\n\n const handlePress = (event) => {\n event.stopPropagation();\n formRef.current.submit();\n };\n\n const getInlineStyle = () => {\n const { inputColor, inputFontSize, inputNumberValueWidth, font } = Theme.get();\n return {\n cvv: `border:0px;color:${inputColor};font-family:${font};font-size:${inputFontSize};height:${inputNumberValueWidth};padding:0!important;`,\n card_number: `border:0px;background-image:none;color:${inputColor};font-family:${font};font-size:${inputFontSize};height:${inputNumberValueWidth};outline: 0;padding:0!important;`,\n };\n };\n const { card_number, cvv } = getInlineStyle();\n\n return (\n <View {...others}>\n <Text action>{translate(L10N.LABEL_SECURE_PAGE)}</Text>\n <form ref={formRef} id=\"paycometPaymentForm\" onSubmit={handleCardTokenized} action=\"javascript:void(0)\">\n <input type=\"hidden\" name=\"amount\" value={(amount * Math.pow(10, currencyDecimals)).toFixed()} />\n <input type=\"hidden\" data-paycomet=\"jetID\" value={publicKey} />\n <input ref={tokenRef} type=\"hidden\" id=\"paytpvToken\" name=\"paytpvToken\" value=\"\" />\n <InputField label={translate(L10N.LABEL_CARD_NAME)}>\n <input data-paycomet=\"cardHolderName\" className={style.inputName} />\n </InputField>\n <InputField label={translate(L10N.LABEL_CARD_NUMBER)}>\n <div id=\"paycomet-pan\" className={style.inputName}></div>\n <input\n paycomet-style={card_number}\n paycomet-name=\"pan\"\n paycomet-placeholder={translate(L10N.LABEL_CARD_NUMBER_PLACEHOLDER)}\n />\n </InputField>\n <View row>\n <InputField label={translate(L10N.LABEL_EXPIRATION)}>\n <View row className={style.inputName}>\n <input\n onChange={handleExpireChange}\n value={expire.month}\n name=\"month\"\n data-paycomet=\"dateMonth\"\n maxLength={2}\n className={style.inputExpire}\n />\n /\n <input\n onChange={handleExpireChange}\n value={expire.year}\n name=\"year\"\n data-paycomet=\"dateYear\"\n maxLength={2}\n className={style.inputExpire}\n />\n </View>\n </InputField>\n\n <InputField label={translate(L10N.LABEL_CVV)} className={style.inputCVV}>\n <div id=\"paycomet-cvc2\" data-paycomet=\"cvc2\" className={style.inputName}></div>\n <input paycomet-name=\"cvc2\" paycomet-style={cvv} />\n </InputField>\n </View>\n <Button busy={busy} large wide onPress={handlePress} preventDefault={false}>\n {translate(L10N.ACTION_PAY)}\n </Button>\n </form>\n {error && (\n <Notification className={style.error} error wide>\n {error}\n </Notification>\n )}\n <div ref={errorRef} id=\"paymentErrorMsg\" style={{ display: 'none' }}></div>\n </View>\n );\n};\n\nFormPaycomet.displayName = 'Mirai:Payments:ButtonPayment:FormPaycomet';\n\nFormPaycomet.propTypes = {\n currencyDecimals: PropTypes.number,\n info: PropTypes.shape({\n amount: PropTypes.number,\n }),\n publicKey: PropTypes.string.isRequired,\n onSuccess: PropTypes.func,\n};\n"],"mappings":";;;;;;AACA,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,aAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAH,uBAAA,CAAAL,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,WAAA,GAAAV,OAAA;AAA2C,SAAAW,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;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AA,CAAAyD,aAAA,CAACzE,GAAA,CAAAiI,MAAM;IAAClE,IAAI,EAAEA,IAAK;IAACmE,KAAK;IAACC,IAAI;IAACC,OAAO,EAAEzC,WAAY;IAACD,cAAc,EAAE;EAAM,GACxE9C,SAAS,CAAC6D,mBAAI,CAAC4B,UAAU,CACpB,CACJ,CAAC,EACNnE,KAAK,iBACJ/D,MAAA,CAAAa,OAAA,CAAAyD,aAAA,CAACzE,GAAA,CAAAsI,YAAY;IAAClB,SAAS,EAAE7G,KAAK,CAAC2D,KAAM;IAACA,KAAK;IAACiE,IAAI;EAAA,GAC7CjE,KACW,CACf,eACD/D,MAAA,CAAAa,OAAA,CAAAyD,aAAA;IAAKkC,GAAG,EAAE1D,QAAS;IAACyB,EAAE,EAAC,iBAAiB;IAACnE,KAAK,EAAE;MAAEgI,OAAO,EAAE;IAAO;EAAE,CAAM,CACtE,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAxG,YAAA,GAAAA,YAAA;AAEFA,YAAY,CAACyG,WAAW,GAAG,2CAA2C;AAEtEzG,YAAY,CAAC0G,SAAS,GAAG;EACvBxG,gBAAgB,EAAEyG,kBAAS,CAACC,MAAM;EAClCzG,IAAI,EAAEwG,kBAAS,CAACE,KAAK,CAAC;IACpBzG,MAAM,EAAEuG,kBAAS,CAACC;EACpB,CAAC,CAAC;EACFvG,SAAS,EAAEsG,kBAAS,CAACG,MAAM,CAACC,UAAU;EACtCtG,SAAS,EAAEkG,kBAAS,CAACK;AACvB,CAAC"}
|
package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormPaycomet.l10n.js","names":["L10N","exports","ACTION_PAY","id","LABEL_CARD_NAME","LABEL_CARD_NUMBER_PLACEHOLDER","LABEL_CARD_NUMBER","LABEL_CVV","LABEL_EXPIRATION","LABEL_SECURE_PAGE"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_PAY: { id: 'payments.action.pay' },\n LABEL_CARD_NAME: { id: 'payments.label.card_name' },\n LABEL_CARD_NUMBER_PLACEHOLDER: { id: 'payments.label.card_number_placeholder' },\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_SECURE_PAGE: { id: 'payments.label.secure_page' },\n};\n"],"mappings":";;;;;;AAAO,
|
|
1
|
+
{"version":3,"file":"FormPaycomet.l10n.js","names":["L10N","exports","ACTION_PAY","id","LABEL_CARD_NAME","LABEL_CARD_NUMBER_PLACEHOLDER","LABEL_CARD_NUMBER","LABEL_CVV","LABEL_EXPIRATION","LABEL_SECURE_PAGE"],"sources":["../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_PAY: { id: 'payments.action.pay' },\n LABEL_CARD_NAME: { id: 'payments.label.card_name' },\n LABEL_CARD_NUMBER_PLACEHOLDER: { id: 'payments.label.card_number_placeholder' },\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_SECURE_PAGE: { id: 'payments.label.secure_page' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,UAAU,EAAE;IAAEC,EAAE,EAAE;EAAsB,CAAC;EACzCC,eAAe,EAAE;IAAED,EAAE,EAAE;EAA2B,CAAC;EACnDE,6BAA6B,EAAE;IAAEF,EAAE,EAAE;EAAyC,CAAC;EAC/EG,iBAAiB,EAAE;IAAEH,EAAE,EAAE;EAA6B,CAAC;EACvDI,SAAS,EAAE;IAAEJ,EAAE,EAAE;EAAqB,CAAC;EACvCK,gBAAgB,EAAE;IAAEL,EAAE,EAAE;EAA4B,CAAC;EACrDM,iBAAiB,EAAE;IAAEN,EAAE,EAAE;EAA6B;AACxD,CAAC"}
|
|
@@ -9,7 +9,7 @@ Object.keys(_useMutationObserver).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _useMutationObserver[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function
|
|
12
|
+
get: function () {
|
|
13
13
|
return _useMutationObserver[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_useMutationObserver","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js"],"sourcesContent":["export * from './useMutationObserver';\n"],"mappings":";;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,oBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,oBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_useMutationObserver","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js"],"sourcesContent":["export * from './useMutationObserver';\n"],"mappings":";;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,oBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,oBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,oBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -5,20 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useMutationObserver = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
|
|
8
|
+
const DEFAULT = {
|
|
9
9
|
attributes: true,
|
|
10
10
|
childList: true,
|
|
11
11
|
subtree: true
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(0, _react.useEffect)(
|
|
13
|
+
const useMutationObserver = function (element, callback) {
|
|
14
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT;
|
|
15
|
+
(0, _react.useEffect)(() => {
|
|
16
16
|
if (!element) return;
|
|
17
|
-
|
|
17
|
+
const observer = new MutationObserver(callback);
|
|
18
18
|
observer.observe(element, options);
|
|
19
|
-
return
|
|
20
|
-
return observer.disconnect();
|
|
21
|
-
};
|
|
19
|
+
return () => observer.disconnect();
|
|
22
20
|
}, [callback, element, options]);
|
|
23
21
|
};
|
|
22
|
+
exports.useMutationObserver = useMutationObserver;
|
|
24
23
|
//# sourceMappingURL=useMutationObserver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMutationObserver.js","names":["_react","require","DEFAULT","attributes","childList","subtree","useMutationObserver","
|
|
1
|
+
{"version":3,"file":"useMutationObserver.js","names":["_react","require","DEFAULT","attributes","childList","subtree","useMutationObserver","element","callback","options","arguments","length","undefined","useEffect","observer","MutationObserver","observe","disconnect","exports"],"sources":["../../../../../../../src/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.jsx"],"sourcesContent":["import { useEffect } from 'react';\n\nconst DEFAULT = { attributes: true, childList: true, subtree: true };\n\nexport const useMutationObserver = (element, callback, options = DEFAULT) => {\n useEffect(() => {\n if (!element) return;\n\n const observer = new MutationObserver(callback);\n observer.observe(element, options);\n\n return () => observer.disconnect();\n }, [callback, element, options]);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,MAAMC,OAAO,GAAG;EAAEC,UAAU,EAAE,IAAI;EAAEC,SAAS,EAAE,IAAI;EAAEC,OAAO,EAAE;AAAK,CAAC;AAE7D,MAAMC,mBAAmB,GAAG,SAAAA,CAACC,OAAO,EAAEC,QAAQ,EAAwB;EAAA,IAAtBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGR,OAAO;EACtE,IAAAW,gBAAS,EAAC,MAAM;IACd,IAAI,CAACN,OAAO,EAAE;IAEd,MAAMO,QAAQ,GAAG,IAAIC,gBAAgB,CAACP,QAAQ,CAAC;IAC/CM,QAAQ,CAACE,OAAO,CAACT,OAAO,EAAEE,OAAO,CAAC;IAElC,OAAO,MAAMK,QAAQ,CAACG,UAAU,CAAC,CAAC;EACpC,CAAC,EAAE,CAACT,QAAQ,EAAED,OAAO,EAAEE,OAAO,CAAC,CAAC;AAClC,CAAC;AAACS,OAAA,CAAAZ,mBAAA,GAAAA,mBAAA"}
|
|
@@ -9,7 +9,7 @@ Object.keys(_FormPaycomet).forEach(function (key) {
|
|
|
9
9
|
if (key in exports && exports[key] === _FormPaycomet[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function
|
|
12
|
+
get: function () {
|
|
13
13
|
return _FormPaycomet[key];
|
|
14
14
|
}
|
|
15
15
|
});
|