@mirai/core 0.3.70 → 0.3.72
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/package.json +2 -2
- package/build/Core.Notifications.js +0 -101
- package/build/Core.Notifications.js.map +0 -1
- package/build/Core.Notifications.module.css +0 -56
- package/build/Core.constants.js +0 -36
- package/build/Core.constants.js.map +0 -1
- package/build/Core.definition.js +0 -10
- package/build/Core.definition.js.map +0 -1
- package/build/Core.js +0 -104
- package/build/Core.js.map +0 -1
- package/build/Core.provider.js +0 -73
- package/build/Core.provider.js.map +0 -1
- package/build/components/Booking/Booking.constants.js +0 -55
- package/build/components/Booking/Booking.constants.js.map +0 -1
- package/build/components/Booking/Booking.js +0 -201
- package/build/components/Booking/Booking.js.map +0 -1
- package/build/components/Booking/Booking.l10n.js +0 -244
- package/build/components/Booking/Booking.l10n.js.map +0 -1
- package/build/components/Booking/Booking.module.css +0 -279
- package/build/components/Booking/Booking.skeleton.js +0 -85
- package/build/components/Booking/Booking.skeleton.js.map +0 -1
- package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +0 -362
- package/build/components/Booking/components/Field/Field.js +0 -70
- package/build/components/Booking/components/Field/Field.js.map +0 -1
- package/build/components/Booking/components/Field/Field.l10n.js +0 -12
- package/build/components/Booking/components/Field/Field.l10n.js.map +0 -1
- package/build/components/Booking/components/Field/Field.module.css +0 -48
- package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +0 -139
- package/build/components/Booking/components/Field/index.js +0 -17
- package/build/components/Booking/components/Field/index.js.map +0 -1
- package/build/components/Booking/components/index.js +0 -17
- package/build/components/Booking/components/index.js.map +0 -1
- package/build/components/Booking/helpers/getOccupationCaption.js +0 -59
- package/build/components/Booking/helpers/getOccupationCaption.js.map +0 -1
- package/build/components/Booking/helpers/index.js +0 -28
- package/build/components/Booking/helpers/index.js.map +0 -1
- package/build/components/Booking/helpers/trackStateChange.js +0 -101
- package/build/components/Booking/helpers/trackStateChange.js.map +0 -1
- package/build/components/Booking/index.js +0 -13
- package/build/components/Booking/index.js.map +0 -1
- package/build/components/Booking/mocks/booking.json +0 -176
- package/build/components/Booking/partials/Booking.Details.js +0 -132
- package/build/components/Booking/partials/Booking.Details.js.map +0 -1
- package/build/components/Booking/partials/Booking.FormCancel.js +0 -105
- package/build/components/Booking/partials/Booking.FormCancel.js.map +0 -1
- package/build/components/Booking/partials/Booking.FormEdit.js +0 -24
- package/build/components/Booking/partials/Booking.FormEdit.js.map +0 -1
- package/build/components/Booking/partials/Booking.FormResend.js +0 -56
- package/build/components/Booking/partials/Booking.FormResend.js.map +0 -1
- package/build/components/Booking/partials/Booking.Menu.js +0 -138
- package/build/components/Booking/partials/Booking.Menu.js.map +0 -1
- package/build/components/Booking/partials/Booking.Modal.js +0 -144
- package/build/components/Booking/partials/Booking.Modal.js.map +0 -1
- package/build/components/Booking/partials/Booking.ModalAgency.js +0 -65
- package/build/components/Booking/partials/Booking.ModalAgency.js.map +0 -1
- package/build/components/Booking/partials/Booking.Others.js +0 -101
- package/build/components/Booking/partials/Booking.Others.js.map +0 -1
- package/build/components/Booking/partials/Booking.PriceBreakdown.js +0 -118
- package/build/components/Booking/partials/Booking.PriceBreakdown.js.map +0 -1
- package/build/components/Booking/partials/Booking.Summary.js +0 -240
- package/build/components/Booking/partials/Booking.Summary.js.map +0 -1
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Details.test.js.snap +0 -4913
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +0 -1330
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +0 -400
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap +0 -442
- package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Summary.test.js.snap +0 -1066
- package/build/components/Booking/partials/index.js +0 -72
- package/build/components/Booking/partials/index.js.map +0 -1
- package/build/components/BookingQuery/BookingQuery.constants.js +0 -11
- package/build/components/BookingQuery/BookingQuery.constants.js.map +0 -1
- package/build/components/BookingQuery/BookingQuery.js +0 -143
- package/build/components/BookingQuery/BookingQuery.js.map +0 -1
- package/build/components/BookingQuery/BookingQuery.l10n.js +0 -39
- package/build/components/BookingQuery/BookingQuery.l10n.js.map +0 -1
- package/build/components/BookingQuery/BookingQuery.module.css +0 -17
- package/build/components/BookingQuery/BookingQuery.skeleton.js +0 -12
- package/build/components/BookingQuery/BookingQuery.skeleton.js.map +0 -1
- package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +0 -1114
- package/build/components/BookingQuery/helpers/getErrorText.js +0 -11
- package/build/components/BookingQuery/helpers/getErrorText.js.map +0 -1
- package/build/components/BookingQuery/helpers/index.js +0 -17
- package/build/components/BookingQuery/helpers/index.js.map +0 -1
- package/build/components/BookingQuery/index.js +0 -13
- package/build/components/BookingQuery/index.js.map +0 -1
- package/build/components/Checkout/Checkout.constants.js +0 -45
- package/build/components/Checkout/Checkout.constants.js.map +0 -1
- package/build/components/Checkout/Checkout.js +0 -179
- package/build/components/Checkout/Checkout.js.map +0 -1
- package/build/components/Checkout/Checkout.l10n.js +0 -130
- package/build/components/Checkout/Checkout.l10n.js.map +0 -1
- package/build/components/Checkout/Checkout.module.css +0 -255
- package/build/components/Checkout/Checkout.skeleton.js +0 -64
- package/build/components/Checkout/Checkout.skeleton.js.map +0 -1
- package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +0 -412
- package/build/components/Checkout/components/InputRadio/InputRadio.js +0 -61
- package/build/components/Checkout/components/InputRadio/InputRadio.js.map +0 -1
- package/build/components/Checkout/components/InputRadio/InputRadio.module.css +0 -3
- package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +0 -323
- package/build/components/Checkout/components/InputRadio/index.js +0 -17
- package/build/components/Checkout/components/InputRadio/index.js.map +0 -1
- package/build/components/Checkout/components/index.js +0 -17
- package/build/components/Checkout/components/index.js.map +0 -1
- package/build/components/Checkout/helpers/getFieldProps.js +0 -73
- package/build/components/Checkout/helpers/getFieldProps.js.map +0 -1
- package/build/components/Checkout/helpers/getVariant.js +0 -28
- package/build/components/Checkout/helpers/getVariant.js.map +0 -1
- package/build/components/Checkout/helpers/index.js +0 -50
- package/build/components/Checkout/helpers/index.js.map +0 -1
- package/build/components/Checkout/helpers/testDNI.js +0 -13
- package/build/components/Checkout/helpers/testDNI.js.map +0 -1
- package/build/components/Checkout/helpers/trackDataSource.js +0 -111
- package/build/components/Checkout/helpers/trackDataSource.js.map +0 -1
- package/build/components/Checkout/helpers/trackForm.js +0 -27
- package/build/components/Checkout/helpers/trackForm.js.map +0 -1
- package/build/components/Checkout/index.js +0 -13
- package/build/components/Checkout/index.js.map +0 -1
- package/build/components/Checkout/mocks/checkout.json +0 -519
- package/build/components/Checkout/partials/Checkout.Confirmation.js +0 -200
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +0 -1
- package/build/components/Checkout/partials/Checkout.Details.js +0 -162
- package/build/components/Checkout/partials/Checkout.Details.js.map +0 -1
- package/build/components/Checkout/partials/Checkout.Form.js +0 -178
- package/build/components/Checkout/partials/Checkout.Form.js.map +0 -1
- package/build/components/Checkout/partials/Checkout.Session.js +0 -100
- package/build/components/Checkout/partials/Checkout.Session.js.map +0 -1
- package/build/components/Checkout/partials/Checkout.Summary.Line.js +0 -57
- package/build/components/Checkout/partials/Checkout.Summary.Line.js.map +0 -1
- package/build/components/Checkout/partials/Checkout.Summary.js +0 -202
- package/build/components/Checkout/partials/Checkout.Summary.js.map +0 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +0 -1592
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Details.test.js.snap +0 -1674
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +0 -5662
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Session.test.js.snap +0 -770
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Summary.test.js.snap +0 -806
- package/build/components/Checkout/partials/index.js +0 -61
- package/build/components/Checkout/partials/index.js.map +0 -1
- package/build/components/Deals/Deals.Calendar.js +0 -162
- package/build/components/Deals/Deals.Calendar.js.map +0 -1
- package/build/components/Deals/Deals.constants.js +0 -16
- package/build/components/Deals/Deals.constants.js.map +0 -1
- package/build/components/Deals/Deals.js +0 -231
- package/build/components/Deals/Deals.js.map +0 -1
- package/build/components/Deals/Deals.l10n.js +0 -43
- package/build/components/Deals/Deals.l10n.js.map +0 -1
- package/build/components/Deals/Deals.module.css +0 -112
- package/build/components/Deals/Deals.skeleton.js +0 -112
- package/build/components/Deals/Deals.skeleton.js.map +0 -1
- package/build/components/Deals/__tests__/__snapshots__/Deals.Calendar.test.js.snap +0 -4584
- package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +0 -7893
- package/build/components/Deals/helpers/__tests__/__mocks__/deal.json +0 -25
- package/build/components/Deals/helpers/calcFromDate.js +0 -21
- package/build/components/Deals/helpers/calcFromDate.js.map +0 -1
- package/build/components/Deals/helpers/calcMinStay.js +0 -23
- package/build/components/Deals/helpers/calcMinStay.js.map +0 -1
- package/build/components/Deals/helpers/calcNightWithDeals.js +0 -18
- package/build/components/Deals/helpers/calcNightWithDeals.js.map +0 -1
- package/build/components/Deals/helpers/calcToDate.js +0 -14
- package/build/components/Deals/helpers/calcToDate.js.map +0 -1
- package/build/components/Deals/helpers/calcTooltips.js +0 -60
- package/build/components/Deals/helpers/calcTooltips.js.map +0 -1
- package/build/components/Deals/helpers/getCurrency.js +0 -21
- package/build/components/Deals/helpers/getCurrency.js.map +0 -1
- package/build/components/Deals/helpers/index.js +0 -83
- package/build/components/Deals/helpers/index.js.map +0 -1
- package/build/components/Deals/helpers/validate.js +0 -28
- package/build/components/Deals/helpers/validate.js.map +0 -1
- package/build/components/Deals/index.js +0 -13
- package/build/components/Deals/index.js.map +0 -1
- package/build/components/Environment/Environment.State.js +0 -105
- package/build/components/Environment/Environment.State.js.map +0 -1
- package/build/components/Environment/Environment.constants.js +0 -8
- package/build/components/Environment/Environment.constants.js.map +0 -1
- package/build/components/Environment/Environment.js +0 -58
- package/build/components/Environment/Environment.js.map +0 -1
- package/build/components/Environment/Environment.module.css +0 -61
- package/build/components/Environment/index.js +0 -13
- package/build/components/Environment/index.js.map +0 -1
- package/build/components/Finder/Finder.compact.js +0 -111
- package/build/components/Finder/Finder.compact.js.map +0 -1
- package/build/components/Finder/Finder.constants.js +0 -42
- package/build/components/Finder/Finder.constants.js.map +0 -1
- package/build/components/Finder/Finder.js +0 -262
- package/build/components/Finder/Finder.js.map +0 -1
- package/build/components/Finder/Finder.l10n.js +0 -24
- package/build/components/Finder/Finder.l10n.js.map +0 -1
- package/build/components/Finder/Finder.module.css +0 -82
- package/build/components/Finder/Finder.skeleton.js +0 -49
- package/build/components/Finder/Finder.skeleton.js.map +0 -1
- package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +0 -19857
- package/build/components/Finder/components/Calendar/Calendar.constants.js +0 -20
- package/build/components/Finder/components/Calendar/Calendar.constants.js.map +0 -1
- package/build/components/Finder/components/Calendar/Calendar.js +0 -188
- package/build/components/Finder/components/Calendar/Calendar.js.map +0 -1
- package/build/components/Finder/components/Calendar/Calendar.l10n.js +0 -18
- package/build/components/Finder/components/Calendar/Calendar.l10n.js.map +0 -1
- package/build/components/Finder/components/Calendar/Calendar.module.css +0 -29
- package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +0 -11
- package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +0 -10043
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js +0 -49
- package/build/components/Finder/components/Calendar/helpers/fetchPrices.js.map +0 -1
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js +0 -18
- package/build/components/Finder/components/Calendar/helpers/getVisibleDate.js.map +0 -1
- package/build/components/Finder/components/Calendar/helpers/index.js +0 -50
- package/build/components/Finder/components/Calendar/helpers/index.js.map +0 -1
- package/build/components/Finder/components/Calendar/helpers/parseValue.js +0 -14
- package/build/components/Finder/components/Calendar/helpers/parseValue.js.map +0 -1
- package/build/components/Finder/components/Calendar/helpers/valueFormat.js +0 -18
- package/build/components/Finder/components/Calendar/helpers/valueFormat.js.map +0 -1
- package/build/components/Finder/components/Calendar/index.js +0 -17
- package/build/components/Finder/components/Calendar/index.js.map +0 -1
- package/build/components/Finder/components/Places/Places.js +0 -96
- package/build/components/Finder/components/Places/Places.js.map +0 -1
- package/build/components/Finder/components/Places/Places.l10n.js +0 -12
- package/build/components/Finder/components/Places/Places.l10n.js.map +0 -1
- package/build/components/Finder/components/Places/Places.module.css +0 -87
- package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +0 -44
- package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +0 -288
- package/build/components/Finder/components/Places/helpers/calcColumns.js +0 -35
- package/build/components/Finder/components/Places/helpers/calcColumns.js.map +0 -1
- package/build/components/Finder/components/Places/helpers/index.js +0 -17
- package/build/components/Finder/components/Places/helpers/index.js.map +0 -1
- package/build/components/Finder/components/Places/index.js +0 -17
- package/build/components/Finder/components/Places/index.js.map +0 -1
- package/build/components/Finder/components/index.js +0 -28
- package/build/components/Finder/components/index.js.map +0 -1
- package/build/components/Finder/helpers/__tests__/__mocks__/chain.json +0 -1113
- package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +0 -1382
- package/build/components/Finder/helpers/__tests__/__mocks__/hotel.json +0 -199
- package/build/components/Finder/helpers/getDataSource.js +0 -58
- package/build/components/Finder/helpers/getDataSource.js.map +0 -1
- package/build/components/Finder/helpers/getForwarderUrl.js +0 -64
- package/build/components/Finder/helpers/getForwarderUrl.js.map +0 -1
- package/build/components/Finder/helpers/getHotels.js +0 -29
- package/build/components/Finder/helpers/getHotels.js.map +0 -1
- package/build/components/Finder/helpers/getOccupationDataSource.js +0 -93
- package/build/components/Finder/helpers/getOccupationDataSource.js.map +0 -1
- package/build/components/Finder/helpers/getPlaceCaption.js +0 -15
- package/build/components/Finder/helpers/getPlaceCaption.js.map +0 -1
- package/build/components/Finder/helpers/getPlacesOptions.js +0 -44
- package/build/components/Finder/helpers/getPlacesOptions.js.map +0 -1
- package/build/components/Finder/helpers/index.js +0 -105
- package/build/components/Finder/helpers/index.js.map +0 -1
- package/build/components/Finder/helpers/parseCalendarProps.js +0 -37
- package/build/components/Finder/helpers/parseCalendarProps.js.map +0 -1
- package/build/components/Finder/helpers/parseValue.js +0 -22
- package/build/components/Finder/helpers/parseValue.js.map +0 -1
- package/build/components/Finder/helpers/validate.js +0 -16
- package/build/components/Finder/helpers/validate.js.map +0 -1
- package/build/components/Finder/index.js +0 -13
- package/build/components/Finder/index.js.map +0 -1
- package/build/components/Profile/Profile.Account.js +0 -165
- package/build/components/Profile/Profile.Account.js.map +0 -1
- package/build/components/Profile/Profile.Password.js +0 -123
- package/build/components/Profile/Profile.Password.js.map +0 -1
- package/build/components/Profile/Profile.Signout.js +0 -100
- package/build/components/Profile/Profile.Signout.js.map +0 -1
- package/build/components/Profile/Profile.constants.js +0 -13
- package/build/components/Profile/Profile.constants.js.map +0 -1
- package/build/components/Profile/Profile.js +0 -65
- package/build/components/Profile/Profile.js.map +0 -1
- package/build/components/Profile/Profile.l10n.js +0 -100
- package/build/components/Profile/Profile.l10n.js.map +0 -1
- package/build/components/Profile/Profile.module.css +0 -70
- package/build/components/Profile/Profile.skeleton.js +0 -119
- package/build/components/Profile/Profile.skeleton.js.map +0 -1
- package/build/components/Profile/components/Bookings/Booking.constants.js +0 -20
- package/build/components/Profile/components/Bookings/Booking.constants.js.map +0 -1
- package/build/components/Profile/components/Bookings/Booking.l10n.js +0 -47
- package/build/components/Profile/components/Bookings/Booking.l10n.js.map +0 -1
- package/build/components/Profile/components/Bookings/Bookings.Item.js +0 -111
- package/build/components/Profile/components/Bookings/Bookings.Item.js.map +0 -1
- package/build/components/Profile/components/Bookings/Bookings.Search.js +0 -87
- package/build/components/Profile/components/Bookings/Bookings.Search.js.map +0 -1
- package/build/components/Profile/components/Bookings/Bookings.js +0 -154
- package/build/components/Profile/components/Bookings/Bookings.js.map +0 -1
- package/build/components/Profile/components/Bookings/Bookings.module.css +0 -171
- package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +0 -9
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js +0 -25
- package/build/components/Profile/components/Bookings/helpers/groupDatasource.js.map +0 -1
- package/build/components/Profile/components/Bookings/helpers/index.js +0 -17
- package/build/components/Profile/components/Bookings/helpers/index.js.map +0 -1
- package/build/components/Profile/components/Bookings/index.js +0 -17
- package/build/components/Profile/components/Bookings/index.js.map +0 -1
- package/build/components/Profile/components/index.js +0 -17
- package/build/components/Profile/components/index.js.map +0 -1
- package/build/components/Profile/index.js +0 -13
- package/build/components/Profile/index.js.map +0 -1
- package/build/components/Rates/Rates.Footer.js +0 -137
- package/build/components/Rates/Rates.Footer.js.map +0 -1
- package/build/components/Rates/Rates.Header.js +0 -136
- package/build/components/Rates/Rates.Header.js.map +0 -1
- package/build/components/Rates/Rates.RoomSelector.js +0 -93
- package/build/components/Rates/Rates.RoomSelector.js.map +0 -1
- package/build/components/Rates/Rates.Skeleton.js +0 -185
- package/build/components/Rates/Rates.Skeleton.js.map +0 -1
- package/build/components/Rates/Rates.constants.js +0 -16
- package/build/components/Rates/Rates.constants.js.map +0 -1
- package/build/components/Rates/Rates.js +0 -272
- package/build/components/Rates/Rates.js.map +0 -1
- package/build/components/Rates/Rates.l10n.js +0 -45
- package/build/components/Rates/Rates.l10n.js.map +0 -1
- package/build/components/Rates/Rates.module.css +0 -330
- package/build/components/Rates/components/Item/Item.Preview.js +0 -160
- package/build/components/Rates/components/Item/Item.Preview.js.map +0 -1
- package/build/components/Rates/components/Item/Item.Rates.js +0 -154
- package/build/components/Rates/components/Item/Item.Rates.js.map +0 -1
- package/build/components/Rates/components/Item/Item.Summary.js +0 -135
- package/build/components/Rates/components/Item/Item.Summary.js.map +0 -1
- package/build/components/Rates/components/Item/Item.js +0 -92
- package/build/components/Rates/components/Item/Item.js.map +0 -1
- package/build/components/Rates/components/Item/Item.l10n.js +0 -107
- package/build/components/Rates/components/Item/Item.l10n.js.map +0 -1
- package/build/components/Rates/components/Item/Item.module.css +0 -130
- package/build/components/Rates/components/Item/components/Amenities/Amenities.js +0 -68
- package/build/components/Rates/components/Item/components/Amenities/Amenities.js.map +0 -1
- package/build/components/Rates/components/Item/components/Amenities/Amenities.module.css +0 -65
- package/build/components/Rates/components/Item/components/Amenities/index.js +0 -17
- package/build/components/Rates/components/Item/components/Amenities/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/Features/Features.js +0 -62
- package/build/components/Rates/components/Item/components/Features/Features.js.map +0 -1
- package/build/components/Rates/components/Item/components/Features/Features.module.css +0 -9
- package/build/components/Rates/components/Item/components/Features/index.js +0 -17
- package/build/components/Rates/components/Item/components/Features/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +0 -141
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +0 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.module.css +0 -42
- package/build/components/Rates/components/Item/components/ModalInfo/index.js +0 -17
- package/build/components/Rates/components/Item/components/ModalInfo/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +0 -68
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +0 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.module.css +0 -20
- package/build/components/Rates/components/Item/components/ModalRateInfo/index.js +0 -17
- package/build/components/Rates/components/Item/components/ModalRateInfo/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/ModalUrl/ModalUrl.js +0 -38
- package/build/components/Rates/components/Item/components/ModalUrl/ModalUrl.js.map +0 -1
- package/build/components/Rates/components/Item/components/ModalUrl/ModalUrl.module.css +0 -20
- package/build/components/Rates/components/Item/components/ModalUrl/index.js +0 -17
- package/build/components/Rates/components/Item/components/ModalUrl/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/Option/Option.js +0 -72
- package/build/components/Rates/components/Item/components/Option/Option.js.map +0 -1
- package/build/components/Rates/components/Item/components/Option/Option.module.css +0 -24
- package/build/components/Rates/components/Item/components/Option/index.js +0 -17
- package/build/components/Rates/components/Item/components/Option/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/PriceDetails/PriceDetails.js +0 -99
- package/build/components/Rates/components/Item/components/PriceDetails/PriceDetails.js.map +0 -1
- package/build/components/Rates/components/Item/components/PriceDetails/PriceDetails.module.css +0 -23
- package/build/components/Rates/components/Item/components/PriceDetails/index.js +0 -17
- package/build/components/Rates/components/Item/components/PriceDetails/index.js.map +0 -1
- package/build/components/Rates/components/Item/components/index.js +0 -83
- package/build/components/Rates/components/Item/components/index.js.map +0 -1
- package/build/components/Rates/components/Item/index.js +0 -42
- package/build/components/Rates/components/Item/index.js.map +0 -1
- package/build/components/Rates/components/ModalExtras/ModalExtras.js +0 -176
- package/build/components/Rates/components/ModalExtras/ModalExtras.js.map +0 -1
- package/build/components/Rates/components/ModalExtras/ModalExtras.l10n.js +0 -18
- package/build/components/Rates/components/ModalExtras/ModalExtras.l10n.js.map +0 -1
- package/build/components/Rates/components/ModalExtras/ModalExtras.module.css +0 -74
- package/build/components/Rates/components/ModalExtras/index.js +0 -17
- package/build/components/Rates/components/ModalExtras/index.js.map +0 -1
- package/build/components/Rates/components/index.js +0 -28
- package/build/components/Rates/components/index.js.map +0 -1
- package/build/components/Rates/helpers/getFinderParams.js +0 -40
- package/build/components/Rates/helpers/getFinderParams.js.map +0 -1
- package/build/components/Rates/helpers/getForwarderUrl.js +0 -67
- package/build/components/Rates/helpers/getForwarderUrl.js.map +0 -1
- package/build/components/Rates/helpers/index.js +0 -28
- package/build/components/Rates/helpers/index.js.map +0 -1
- package/build/components/Rates/index.js +0 -13
- package/build/components/Rates/index.js.map +0 -1
- package/build/components/Session/Session.Account.js +0 -152
- package/build/components/Session/Session.Account.js.map +0 -1
- package/build/components/Session/Session.Login.Modal.js +0 -237
- package/build/components/Session/Session.Login.Modal.js.map +0 -1
- package/build/components/Session/Session.Login.js +0 -76
- package/build/components/Session/Session.Login.js.map +0 -1
- package/build/components/Session/Session.constants.js +0 -24
- package/build/components/Session/Session.constants.js.map +0 -1
- package/build/components/Session/Session.js +0 -37
- package/build/components/Session/Session.js.map +0 -1
- package/build/components/Session/Session.l10n.js +0 -82
- package/build/components/Session/Session.l10n.js.map +0 -1
- package/build/components/Session/Session.module.css +0 -41
- package/build/components/Session/Session.skeleton.js +0 -18
- package/build/components/Session/Session.skeleton.js.map +0 -1
- package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +0 -1075
- package/build/components/Session/helpers/getDomain.js +0 -15
- package/build/components/Session/helpers/getDomain.js.map +0 -1
- package/build/components/Session/helpers/getProfileUrl.js +0 -31
- package/build/components/Session/helpers/getProfileUrl.js.map +0 -1
- package/build/components/Session/helpers/getSignupUrl.js +0 -29
- package/build/components/Session/helpers/getSignupUrl.js.map +0 -1
- package/build/components/Session/helpers/index.js +0 -61
- package/build/components/Session/helpers/index.js.map +0 -1
- package/build/components/Session/helpers/template.js +0 -16
- package/build/components/Session/helpers/template.js.map +0 -1
- package/build/components/Session/helpers/trackLogin.js +0 -26
- package/build/components/Session/helpers/trackLogin.js.map +0 -1
- package/build/components/Session/index.js +0 -13
- package/build/components/Session/index.js.map +0 -1
- package/build/components/Signup/Signup.constants.js +0 -8
- package/build/components/Signup/Signup.constants.js.map +0 -1
- package/build/components/Signup/Signup.js +0 -198
- package/build/components/Signup/Signup.js.map +0 -1
- package/build/components/Signup/Signup.l10n.js +0 -67
- package/build/components/Signup/Signup.l10n.js.map +0 -1
- package/build/components/Signup/Signup.module.css +0 -25
- package/build/components/Signup/Signup.skeleton.js +0 -92
- package/build/components/Signup/Signup.skeleton.js.map +0 -1
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +0 -1023
- package/build/components/Signup/index.js +0 -13
- package/build/components/Signup/index.js.map +0 -1
- package/build/components/__shared__/BookingDates/BookingDates.constants.js +0 -12
- package/build/components/__shared__/BookingDates/BookingDates.constants.js.map +0 -1
- package/build/components/__shared__/BookingDates/BookingDates.js +0 -73
- package/build/components/__shared__/BookingDates/BookingDates.js.map +0 -1
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js +0 -29
- package/build/components/__shared__/BookingDates/BookingDates.l10n.js.map +0 -1
- package/build/components/__shared__/BookingDates/BookingDates.module.css +0 -13
- package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +0 -208
- package/build/components/__shared__/BookingDates/index.js +0 -17
- package/build/components/__shared__/BookingDates/index.js.map +0 -1
- package/build/components/__shared__/BookingTable/BookingTable.Row.js +0 -116
- package/build/components/__shared__/BookingTable/BookingTable.Row.js.map +0 -1
- package/build/components/__shared__/BookingTable/BookingTable.constants.js +0 -18
- package/build/components/__shared__/BookingTable/BookingTable.constants.js.map +0 -1
- package/build/components/__shared__/BookingTable/BookingTable.js +0 -76
- package/build/components/__shared__/BookingTable/BookingTable.js.map +0 -1
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js +0 -15
- package/build/components/__shared__/BookingTable/BookingTable.l10n.js.map +0 -1
- package/build/components/__shared__/BookingTable/BookingTable.module.css +0 -125
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +0 -464
- package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +0 -619
- package/build/components/__shared__/BookingTable/index.js +0 -17
- package/build/components/__shared__/BookingTable/index.js.map +0 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.js +0 -49
- package/build/components/__shared__/ButtonMore/ButtonMore.js.map +0 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js +0 -12
- package/build/components/__shared__/ButtonMore/ButtonMore.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonMore/ButtonMore.module.css +0 -9
- package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +0 -110
- package/build/components/__shared__/ButtonMore/index.js +0 -17
- package/build/components/__shared__/ButtonMore/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +0 -21
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js +0 -198
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js +0 -13
- package/build/components/__shared__/ButtonPayment/ButtonPayment.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.module.css +0 -3
- package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +0 -195
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js +0 -80
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js +0 -21
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/FormAddon.module.css +0 -9
- package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +0 -68
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js +0 -21
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/getCtaKey.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormAddon/helpers/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormAddon/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +0 -37
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +0 -181
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +0 -30
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.module.css +0 -27
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/__tests__/__snapshots__/FormCheckout.test.js.snap +0 -308
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +0 -37
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js +0 -8
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.constants.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js +0 -210
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js +0 -30
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/FormPaycomet.module.css +0 -26
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +0 -148
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js +0 -23
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/helpers/useMutationObserver.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormPaycomet/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js +0 -18
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.constants.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js +0 -119
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js +0 -21
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/FormSipay.module.css +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormSipay/__tests__/__snapshots__/FormSipay.test.js.snap +0 -149
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js +0 -24
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/getStyle.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormSipay/helpers/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormSipay/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js +0 -52
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/InputField/InputField.module.css +0 -60
- package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +0 -166
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/InputField/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/index.js +0 -50
- package/build/components/__shared__/ButtonPayment/components/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +0 -31
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js +0 -21
- package/build/components/__shared__/ButtonPayment/helpers/getUrl.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js +0 -41
- package/build/components/__shared__/ButtonPayment/helpers/getUrlBooking.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js +0 -28
- package/build/components/__shared__/ButtonPayment/helpers/getUrlCriptan.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js +0 -41
- package/build/components/__shared__/ButtonPayment/helpers/getUrlTpv.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/index.js +0 -39
- package/build/components/__shared__/ButtonPayment/helpers/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js +0 -27
- package/build/components/__shared__/ButtonPayment/helpers/loadScript.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js +0 -18
- package/build/components/__shared__/ButtonPayment/helpers/toUrlParams.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/index.js.map +0 -1
- package/build/components/__shared__/Field/Field.js +0 -87
- package/build/components/__shared__/Field/Field.js.map +0 -1
- package/build/components/__shared__/Field/Field.module.css +0 -109
- package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +0 -799
- package/build/components/__shared__/Field/index.js +0 -17
- package/build/components/__shared__/Field/index.js.map +0 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js +0 -82
- package/build/components/__shared__/FieldOccupation/FieldOccupation.js.map +0 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js +0 -13
- package/build/components/__shared__/FieldOccupation/FieldOccupation.l10n.js.map +0 -1
- package/build/components/__shared__/FieldOccupation/FieldOccupation.module.css +0 -5
- package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +0 -2179
- package/build/components/__shared__/FieldOccupation/helpers/__tests__/__mocks__/en.json +0 -15
- package/build/components/__shared__/FieldOccupation/helpers/__tests__/__mocks__/hotels.json +0 -87
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js +0 -37
- package/build/components/__shared__/FieldOccupation/helpers/getAccommodationType.js.map +0 -1
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js +0 -54
- package/build/components/__shared__/FieldOccupation/helpers/getOccupationCaption.js.map +0 -1
- package/build/components/__shared__/FieldOccupation/helpers/index.js +0 -28
- package/build/components/__shared__/FieldOccupation/helpers/index.js.map +0 -1
- package/build/components/__shared__/FieldOccupation/index.js +0 -17
- package/build/components/__shared__/FieldOccupation/index.js.map +0 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js +0 -47
- package/build/components/__shared__/FieldPromocode/FieldPromocode.js.map +0 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js +0 -13
- package/build/components/__shared__/FieldPromocode/FieldPromocode.l10n.js.map +0 -1
- package/build/components/__shared__/FieldPromocode/FieldPromocode.module.css +0 -24
- package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +0 -272
- package/build/components/__shared__/FieldPromocode/index.js +0 -17
- package/build/components/__shared__/FieldPromocode/index.js.map +0 -1
- package/build/components/__shared__/Occupation/Occupation.Group.js +0 -106
- package/build/components/__shared__/Occupation/Occupation.Group.js.map +0 -1
- package/build/components/__shared__/Occupation/Occupation.constants.js +0 -79
- package/build/components/__shared__/Occupation/Occupation.constants.js.map +0 -1
- package/build/components/__shared__/Occupation/Occupation.js +0 -205
- package/build/components/__shared__/Occupation/Occupation.js.map +0 -1
- package/build/components/__shared__/Occupation/Occupation.l10n.js +0 -69
- package/build/components/__shared__/Occupation/Occupation.l10n.js.map +0 -1
- package/build/components/__shared__/Occupation/Occupation.module.css +0 -124
- package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +0 -17
- package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +0 -3591
- package/build/components/__shared__/Occupation/helpers/checkRoom.js +0 -36
- package/build/components/__shared__/Occupation/helpers/checkRoom.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js +0 -88
- package/build/components/__shared__/Occupation/helpers/consolidateValue.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js +0 -20
- package/build/components/__shared__/Occupation/helpers/getAgeOptions.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js +0 -24
- package/build/components/__shared__/Occupation/helpers/getGroupHint.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js +0 -16
- package/build/components/__shared__/Occupation/helpers/getScrollHeight.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/index.js +0 -72
- package/build/components/__shared__/Occupation/helpers/index.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js +0 -34
- package/build/components/__shared__/Occupation/helpers/prepareRoom.js.map +0 -1
- package/build/components/__shared__/Occupation/helpers/toParties.js +0 -40
- package/build/components/__shared__/Occupation/helpers/toParties.js.map +0 -1
- package/build/components/__shared__/Occupation/index.js +0 -28
- package/build/components/__shared__/Occupation/index.js.map +0 -1
- package/build/components/__shared__/Payment/Payment.constants.js +0 -39
- package/build/components/__shared__/Payment/Payment.constants.js.map +0 -1
- package/build/components/__shared__/Payment/Payment.js +0 -181
- package/build/components/__shared__/Payment/Payment.js.map +0 -1
- package/build/components/__shared__/Payment/Payment.l10n.js +0 -84
- package/build/components/__shared__/Payment/Payment.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/Payment.module.css +0 -61
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +0 -750
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +0 -43
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +0 -167
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +0 -18
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.module.css +0 -8
- package/build/components/__shared__/Payment/components/AmazonPay/__tests__/__snapshots__/AmazonPay.test.js.snap +0 -23
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +0 -19
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +0 -17
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/index.js +0 -17
- package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js +0 -79
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.js.map +0 -1
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js +0 -12
- package/build/components/__shared__/Payment/components/Aplazame/Aplazame.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +0 -30
- package/build/components/__shared__/Payment/components/Aplazame/index.js +0 -17
- package/build/components/__shared__/Payment/components/Aplazame/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/Card.constants.js +0 -29
- package/build/components/__shared__/Payment/components/Card/Card.constants.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/Card.js +0 -129
- package/build/components/__shared__/Payment/components/Card/Card.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js +0 -27
- package/build/components/__shared__/Payment/components/Card/Card.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/Card.module.css +0 -23
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +0 -887
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +0 -38
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js +0 -11
- package/build/components/__shared__/Payment/components/Card/helpers/getCardConfig.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js +0 -31
- package/build/components/__shared__/Payment/components/Card/helpers/getCardType.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/helpers/index.js +0 -61
- package/build/components/__shared__/Payment/components/Card/helpers/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js +0 -9
- package/build/components/__shared__/Payment/components/Card/helpers/testCVV.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js +0 -12
- package/build/components/__shared__/Payment/components/Card/helpers/testCard.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js +0 -13
- package/build/components/__shared__/Payment/components/Card/helpers/testExpire.js.map +0 -1
- package/build/components/__shared__/Payment/components/Card/index.js +0 -17
- package/build/components/__shared__/Payment/components/Card/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +0 -25
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.js +0 -298
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js +0 -30
- package/build/components/__shared__/Payment/components/PCI/PCI.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.module.css +0 -9
- package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +0 -399
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +0 -27
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js +0 -32
- package/build/components/__shared__/Payment/components/PCI/helpers/getStyle.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js +0 -28
- package/build/components/__shared__/Payment/components/PCI/helpers/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/PCI/index.js +0 -17
- package/build/components/__shared__/Payment/components/PCI/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js +0 -58
- package/build/components/__shared__/Payment/components/Tpv/Tpv.js.map +0 -1
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js +0 -12
- package/build/components/__shared__/Payment/components/Tpv/Tpv.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +0 -92
- package/build/components/__shared__/Payment/components/Tpv/index.js +0 -17
- package/build/components/__shared__/Payment/components/Tpv/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/index.js +0 -61
- package/build/components/__shared__/Payment/components/index.js.map +0 -1
- package/build/components/__shared__/Payment/helpers/getCaption.js +0 -44
- package/build/components/__shared__/Payment/helpers/getCaption.js.map +0 -1
- package/build/components/__shared__/Payment/helpers/getComponent.js +0 -35
- package/build/components/__shared__/Payment/helpers/getComponent.js.map +0 -1
- package/build/components/__shared__/Payment/helpers/getImage.js +0 -17
- package/build/components/__shared__/Payment/helpers/getImage.js.map +0 -1
- package/build/components/__shared__/Payment/helpers/index.js +0 -39
- package/build/components/__shared__/Payment/helpers/index.js.map +0 -1
- package/build/components/__shared__/Payment/index.js +0 -49
- package/build/components/__shared__/Payment/index.js.map +0 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js +0 -57
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.Line.js.map +0 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js +0 -160
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.js.map +0 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js +0 -93
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.l10n.js.map +0 -1
- package/build/components/__shared__/PriceBreakdown/PriceBreakdown.module.css +0 -34
- package/build/components/__shared__/PriceBreakdown/index.js +0 -17
- package/build/components/__shared__/PriceBreakdown/index.js.map +0 -1
- package/build/components/__shared__/Skeleton/Skeleton.js +0 -31
- package/build/components/__shared__/Skeleton/Skeleton.js.map +0 -1
- package/build/components/__shared__/Skeleton/Skeleton.module.css +0 -37
- package/build/components/__shared__/Skeleton/index.js +0 -17
- package/build/components/__shared__/Skeleton/index.js.map +0 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js +0 -34
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.js.map +0 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js +0 -13
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.l10n.js.map +0 -1
- package/build/components/__shared__/TextRequiredFields/TextRequiredFields.module.css +0 -8
- package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +0 -41
- package/build/components/__shared__/TextRequiredFields/index.js +0 -17
- package/build/components/__shared__/TextRequiredFields/index.js.map +0 -1
- package/build/components/__shared__/index.js +0 -138
- package/build/components/__shared__/index.js.map +0 -1
- package/build/components/helpers/ICON.AMENITIES.js +0 -149
- package/build/components/helpers/ICON.AMENITIES.js.map +0 -1
- package/build/components/helpers/ICON.js +0 -64
- package/build/components/helpers/ICON.js.map +0 -1
- package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +0 -313
- package/build/components/helpers/constants.js +0 -64
- package/build/components/helpers/constants.js.map +0 -1
- package/build/components/helpers/generateId.js +0 -22
- package/build/components/helpers/generateId.js.map +0 -1
- package/build/components/helpers/getButtonPaymentKey.js +0 -29
- package/build/components/helpers/getButtonPaymentKey.js.map +0 -1
- package/build/components/helpers/getButtonPaymentKey.l10n.js +0 -18
- package/build/components/helpers/getButtonPaymentKey.l10n.js.map +0 -1
- package/build/components/helpers/getCalendarCaption.js +0 -25
- package/build/components/helpers/getCalendarCaption.js.map +0 -1
- package/build/components/helpers/getCountryCode.js +0 -12
- package/build/components/helpers/getCountryCode.js.map +0 -1
- package/build/components/helpers/index.js +0 -171
- package/build/components/helpers/index.js.map +0 -1
- package/build/components/helpers/isJest.js +0 -9
- package/build/components/helpers/isJest.js.map +0 -1
- package/build/components/helpers/opacity.js +0 -17
- package/build/components/helpers/opacity.js.map +0 -1
- package/build/components/helpers/parseHtml.js +0 -75
- package/build/components/helpers/parseHtml.js.map +0 -1
- package/build/components/helpers/parseToParties.js +0 -19
- package/build/components/helpers/parseToParties.js.map +0 -1
- package/build/components/helpers/testPassword.js +0 -12
- package/build/components/helpers/testPassword.js.map +0 -1
- package/build/components/helpers/toQueryString.js +0 -20
- package/build/components/helpers/toQueryString.js.map +0 -1
- package/build/components/helpers/toUrlParams.js +0 -18
- package/build/components/helpers/toUrlParams.js.map +0 -1
- package/build/components/helpers/trace.js +0 -19
- package/build/components/helpers/trace.js.map +0 -1
- package/build/components/helpers/translate.js +0 -28
- package/build/components/helpers/translate.js.map +0 -1
- package/build/components/index.js +0 -30
- package/build/components/index.js.map +0 -1
- package/build/helpers/checkSession.js +0 -28
- package/build/helpers/checkSession.js.map +0 -1
- package/build/helpers/consolidateStore.js +0 -259
- package/build/helpers/consolidateStore.js.map +0 -1
- package/build/helpers/fetchConfig.js +0 -25
- package/build/helpers/fetchConfig.js.map +0 -1
- package/build/helpers/fetchCookies.js +0 -28
- package/build/helpers/fetchCookies.js.map +0 -1
- package/build/helpers/fetchSession.js +0 -69
- package/build/helpers/fetchSession.js.map +0 -1
- package/build/helpers/fetchUrlParams.js +0 -12
- package/build/helpers/fetchUrlParams.js.map +0 -1
- package/build/helpers/findComponents.js +0 -37
- package/build/helpers/findComponents.js.map +0 -1
- package/build/helpers/findDangerousCSSRules.js +0 -33
- package/build/helpers/findDangerousCSSRules.js.map +0 -1
- package/build/helpers/findInstance.js +0 -34
- package/build/helpers/findInstance.js.map +0 -1
- package/build/helpers/getAccommodationType.js +0 -15
- package/build/helpers/getAccommodationType.js.map +0 -1
- package/build/helpers/getGhost.js +0 -20
- package/build/helpers/getGhost.js.map +0 -1
- package/build/helpers/getLocale.js +0 -24
- package/build/helpers/getLocale.js.map +0 -1
- package/build/helpers/getTags.js +0 -44
- package/build/helpers/getTags.js.map +0 -1
- package/build/helpers/index.js +0 -138
- package/build/helpers/index.js.map +0 -1
- package/build/helpers/loadEnvironment.js +0 -26
- package/build/helpers/loadEnvironment.js.map +0 -1
- package/build/helpers/loadSentry.js +0 -30
- package/build/helpers/loadSentry.js.map +0 -1
- package/build/helpers/theme.js +0 -50
- package/build/helpers/theme.js.map +0 -1
- package/build/helpers/toOccupation.js +0 -73
- package/build/helpers/toOccupation.js.map +0 -1
- package/build/index.js +0 -106
- package/build/index.js.map +0 -1
- package/build/services/Club/__tests__/__mocks__/get.json +0 -66
- package/build/services/Club/constants.js +0 -10
- package/build/services/Club/constants.js.map +0 -1
- package/build/services/Club/get.js +0 -30
- package/build/services/Club/get.js.map +0 -1
- package/build/services/Club/index.js +0 -11
- package/build/services/Club/index.js.map +0 -1
- package/build/services/Engine/__tests__/__mocks__/chain.json +0 -2695
- package/build/services/Engine/__tests__/__mocks__/hotel.json +0 -184
- package/build/services/Engine/constants.js +0 -10
- package/build/services/Engine/constants.js.map +0 -1
- package/build/services/Engine/get.js +0 -31
- package/build/services/Engine/get.js.map +0 -1
- package/build/services/Engine/index.js +0 -11
- package/build/services/Engine/index.js.map +0 -1
- package/build/services/Rates/__tests__/__mocks__/rates-response-cancel-types.json +0 -1662
- package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes-no-local.json +0 -530
- package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes.json +0 -1255
- package/build/services/Rates/__tests__/__mocks__/rates-response.json +0 -294
- package/build/services/Rates/__tests__/__mocks__/rates-success-cancel-types.json +0 -32481
- package/build/services/Rates/__tests__/__mocks__/rates-success-no-taxes-no-local.json +0 -6674
- package/build/services/Rates/__tests__/__mocks__/rates-success-no-taxes.json +0 -16508
- package/build/services/Rates/__tests__/__mocks__/rates-success.json +0 -5648
- package/build/services/Rates/constants.js +0 -107
- package/build/services/Rates/constants.js.map +0 -1
- package/build/services/Rates/get.js +0 -171
- package/build/services/Rates/get.js.map +0 -1
- package/build/services/Rates/helpers/getIncrements.js +0 -69
- package/build/services/Rates/helpers/getIncrements.js.map +0 -1
- package/build/services/Rates/helpers/getPrice.js +0 -22
- package/build/services/Rates/helpers/getPrice.js.map +0 -1
- package/build/services/Rates/helpers/index.js +0 -72
- package/build/services/Rates/helpers/index.js.map +0 -1
- package/build/services/Rates/helpers/normalizePrice.js +0 -15
- package/build/services/Rates/helpers/normalizePrice.js.map +0 -1
- package/build/services/Rates/helpers/parseAmenities.js +0 -87
- package/build/services/Rates/helpers/parseAmenities.js.map +0 -1
- package/build/services/Rates/helpers/parseBoards.js +0 -156
- package/build/services/Rates/helpers/parseBoards.js.map +0 -1
- package/build/services/Rates/helpers/parseDiscount.js +0 -49
- package/build/services/Rates/helpers/parseDiscount.js.map +0 -1
- package/build/services/Rates/helpers/parseExternalToken.js +0 -24
- package/build/services/Rates/helpers/parseExternalToken.js.map +0 -1
- package/build/services/Rates/index.js +0 -11
- package/build/services/Rates/index.js.map +0 -1
- package/build/services/index.js +0 -39
- package/build/services/index.js.map +0 -1
- package/build/theme.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.Rates.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_components","_Item","style","_interopRequireWildcard","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Rates","_ref","boards","cancellations","rates","selectedBoard","onBoard","onCancellation","onRate","onRateInfo","isMobile","useDevice","translate","useLocale","cancellationId","rateId","id","boardId","included","restrictions","length","createElement","Fragment","View","className","offset","gap","anchor","Text","action","small","bold","L10N","LABEL_CANCELLATION_POLICY","map","_ref2","name","caption","price","cancellation","Option","key","checked","title","value","onPress","Pressable","Icon","ICON","INFO","LABEL_RATE","_ref3","offer","Tooltip","text","LABEL_LIMITED_OFFER","OFFER","LABEL_ACCOMMODATION_PLAN","board","arguments","undefined","increment","slice","item","index","row","capitalize","Notification","warning","wide","exports","displayName","propTypes","PropTypes","arrayOf","any","shape","func","onChange"],"sources":["../../../../../src/components/Rates/components/Item/Item.Rates.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Icon, Notification, Pressable, Text, Tooltip, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Option } from './components';\nimport { L10N } from './Item.l10n';\nimport * as style from './Item.module.css';\nimport { ICON } from '../../../helpers';\n\nconst Rates = ({\n boards = [],\n cancellations = [],\n rates = [],\n selectedBoard = {},\n onBoard,\n onCancellation,\n onRate,\n onRateInfo,\n}) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n\n const { cancellationId, rateId, id: boardId, included = [], restrictions = [] } = selectedBoard;\n\n const has = {\n boards: boards.length > 1,\n cancellations: cancellations.length > 1,\n rates: rates.length > 1,\n };\n\n return (\n <>\n {has.cancellations && (\n <View className={[style.offset, style.gap, style.anchor]}>\n <Text action={!isMobile} small={isMobile} bold>\n {translate(L10N.LABEL_CANCELLATION_POLICY)}\n </Text>\n {cancellations.map(({ id, name, caption, price, ...cancellation }) => (\n <Option\n key={id}\n caption={caption}\n checked={id === cancellationId}\n title={name}\n value={price}\n onPress={() => onCancellation(id)}\n >\n <Pressable onPress={() => onRateInfo({ ...selectedBoard, cancellation })}>\n <Icon value={ICON.INFO} />\n </Pressable>\n </Option>\n ))}\n </View>\n )}\n\n {has.rates && (\n <View className={[style.offset, style.gap, style.anchor]}>\n <Text action={!isMobile} small={isMobile} bold>\n {translate(L10N.LABEL_RATE)}\n </Text>\n {rates.map(({ id, cancellationId, name, offer = false, price }) => (\n <Option\n key={id}\n checked={id === rateId}\n title={name}\n value={price}\n onPress={() => onRate({ id, cancellationId })}\n >\n {offer && (\n <Tooltip text={translate(L10N.LABEL_LIMITED_OFFER)}>\n <Icon value={ICON.OFFER} />\n </Tooltip>\n )}\n </Option>\n ))}\n </View>\n )}\n\n <View className={[style.offset, style.gap, style.anchor]}>\n <Text action={!isMobile} small={isMobile} bold>\n {translate(L10N.LABEL_ACCOMMODATION_PLAN)}\n </Text>\n {boards.map((board = {}) => {\n const { id, increment, name } = board;\n\n return (\n <Option\n key={id}\n checked={id === boardId}\n title={name}\n value={increment}\n onPress={has.boards ? () => onBoard(board) : undefined}\n />\n );\n })}\n\n {included.length > 0 && (\n <View className={style.included}>\n {included.slice(0, 3).map((item, index) => (\n <View key={index} row className={style.gap}>\n <Text small>{'•'}</Text>\n <Text capitalize small>\n {item}\n </Text>\n </View>\n ))}\n </View>\n )}\n\n {restrictions.length > 0 && (\n <Notification small warning wide>\n {restrictions[0]}\n </Notification>\n )}\n </View>\n </>\n );\n};\n\nRates.displayName = 'Mirai:Core:Rates:Item.Rates';\n\nRates.propTypes = {\n boards: PropTypes.arrayOf(PropTypes.any),\n cancellations: PropTypes.arrayOf(PropTypes.any),\n rates: PropTypes.arrayOf(PropTypes.any),\n selectedBoard: PropTypes.shape({}),\n onBoard: PropTypes.func,\n onCancellation: PropTypes.func,\n onRate: PropTypes.func,\n onChange: PropTypes.func,\n onRateInfo: PropTypes.func,\n};\n\nexport { Rates };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA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A,CAAAkG,YAAY;IAACrC,KAAK;IAACsC,OAAO;IAACC,IAAI;EAAA,GAC7BlD,YAAY,CAAC,CAAC,CACH,CAEZ,CACN,CAAC;AAEP,CAAC;AAACmD,OAAA,CAAAtE,KAAA,GAAAA,KAAA;AAEFA,KAAK,CAACuE,WAAW,GAAG,6BAA6B;AAEjDvE,KAAK,CAACwE,SAAS,GAAG;EAChBtE,MAAM,EAAEuE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,GAAG,CAAC;EACxCxE,aAAa,EAAEsE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,GAAG,CAAC;EAC/CvE,KAAK,EAAEqE,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,GAAG,CAAC;EACvCtE,aAAa,EAAEoE,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC;EAClCtE,OAAO,EAAEmE,kBAAS,CAACI,IAAI;EACvBtE,cAAc,EAAEkE,kBAAS,CAACI,IAAI;EAC9BrE,MAAM,EAAEiE,kBAAS,CAACI,IAAI;EACtBC,QAAQ,EAAEL,kBAAS,CAACI,IAAI;EACxBpE,UAAU,EAAEgE,kBAAS,CAACI;AACxB,CAAC"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Summary = void 0;
|
|
7
|
-
var _dataSources = require("@mirai/data-sources");
|
|
8
|
-
var _locale = require("@mirai/locale");
|
|
9
|
-
var _ui = require("@mirai/ui");
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _components = require("./components");
|
|
13
|
-
var _Item = require("./Item.l10n");
|
|
14
|
-
var style = _interopRequireWildcard(require("./Item.module.css"));
|
|
15
|
-
var _Rates = require("../../Rates.constants");
|
|
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; }
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
20
|
-
const Summary = _ref => {
|
|
21
|
-
let {
|
|
22
|
-
multiRoom = false,
|
|
23
|
-
name: roomName,
|
|
24
|
-
selected = {},
|
|
25
|
-
selectedBoard = {},
|
|
26
|
-
taxes,
|
|
27
|
-
onSelect
|
|
28
|
-
} = _ref;
|
|
29
|
-
const {
|
|
30
|
-
isMobile
|
|
31
|
-
} = (0, _ui.useDevice)();
|
|
32
|
-
const {
|
|
33
|
-
translate
|
|
34
|
-
} = (0, _locale.useLocale)();
|
|
35
|
-
const {
|
|
36
|
-
value: {
|
|
37
|
-
currency
|
|
38
|
-
} = {}
|
|
39
|
-
} = (0, _dataSources.useStore)();
|
|
40
|
-
const [busy, setBusy] = (0, _react.useState)(false);
|
|
41
|
-
(0, _react.useEffect)(() => Object.keys(selected).length === 0 && setBusy(false), [selected]);
|
|
42
|
-
const {
|
|
43
|
-
basePrice,
|
|
44
|
-
cancellationId,
|
|
45
|
-
dayPrice,
|
|
46
|
-
discount: {
|
|
47
|
-
percentage: discountPercentage = 0,
|
|
48
|
-
breakdown = []
|
|
49
|
-
} = {},
|
|
50
|
-
id,
|
|
51
|
-
name,
|
|
52
|
-
originalPrice,
|
|
53
|
-
price,
|
|
54
|
-
rateId
|
|
55
|
-
} = selectedBoard;
|
|
56
|
-
const isSelected = selected.id === id;
|
|
57
|
-
const handlePress = () => {
|
|
58
|
-
if (!multiRoom) setBusy(true);
|
|
59
|
-
onSelect(!isSelected ? {
|
|
60
|
-
basePrice,
|
|
61
|
-
cancellationId,
|
|
62
|
-
id,
|
|
63
|
-
name,
|
|
64
|
-
price,
|
|
65
|
-
rateId,
|
|
66
|
-
roomName
|
|
67
|
-
} : undefined);
|
|
68
|
-
};
|
|
69
|
-
const hasDiscountClub = discountPercentage > 0 && breakdown.find(_ref2 => {
|
|
70
|
-
let {
|
|
71
|
-
type
|
|
72
|
-
} = _ref2;
|
|
73
|
-
return type === _Rates.DISCOUNT_TYPE.CLUB;
|
|
74
|
-
});
|
|
75
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
76
|
-
className: [style.offset, style.summary]
|
|
77
|
-
}, discountPercentage > 0 && /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
78
|
-
accent: true,
|
|
79
|
-
bold: true,
|
|
80
|
-
small: true
|
|
81
|
-
}, hasDiscountClub && "".concat(translate(_Item.L10N.LABEL_CLUB_MEMBERS), " "), translate(_Item.L10N.LABEL_DISCOUNT, {
|
|
82
|
-
value: "".concat(discountPercentage, "%")
|
|
83
|
-
})), /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
84
|
-
row: true,
|
|
85
|
-
className: [style.gap, style.content]
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement(_ui.View, null, /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
87
|
-
row: true,
|
|
88
|
-
className: style.price
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
90
|
-
bold: true,
|
|
91
|
-
headline: true,
|
|
92
|
-
level: isMobile ? 3 : 2
|
|
93
|
-
}, (0, _locale.currencyFormat)({
|
|
94
|
-
currency,
|
|
95
|
-
value: price
|
|
96
|
-
})), price !== originalPrice && /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
97
|
-
action: true,
|
|
98
|
-
lighten: true,
|
|
99
|
-
className: style.lineThrough
|
|
100
|
-
}, (0, _locale.currencyFormat)({
|
|
101
|
-
currency,
|
|
102
|
-
value: originalPrice
|
|
103
|
-
}))), /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
104
|
-
small: !isMobile,
|
|
105
|
-
tiny: isMobile
|
|
106
|
-
}, "".concat((0, _locale.currencyFormat)({
|
|
107
|
-
currency,
|
|
108
|
-
value: dayPrice
|
|
109
|
-
}), " ").concat(translate(_Item.L10N.LABEL_PER_UNIT_NIGHT))), /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
110
|
-
lighten: true,
|
|
111
|
-
small: !isMobile,
|
|
112
|
-
tiny: isMobile
|
|
113
|
-
}, translate(taxes ? _Item.L10N.LABEL_EXCLUDES_TAXES_FEES : _Item.L10N.LABEL_INCLUDES_TAXES_FEES)), discountPercentage > 0 && /*#__PURE__*/_react.default.createElement(_components.PriceDetails, _extends({}, selectedBoard, {
|
|
114
|
-
taxes,
|
|
115
|
-
className: style.priceDetails
|
|
116
|
-
}))), /*#__PURE__*/_react.default.createElement(_ui.Button
|
|
117
|
-
//
|
|
118
|
-
, {
|
|
119
|
-
busy: busy,
|
|
120
|
-
large: !isMobile,
|
|
121
|
-
secondary: multiRoom && isSelected,
|
|
122
|
-
onPress: handlePress
|
|
123
|
-
}, translate(multiRoom ? isSelected ? _Item.L10N.LABEL_DESELECT : _Item.L10N.LABEL_SELECT : _Item.L10N.ACTION_RESERVE)))));
|
|
124
|
-
};
|
|
125
|
-
exports.Summary = Summary;
|
|
126
|
-
Summary.displayName = 'Mirai:Core:Rates:Item.Summary';
|
|
127
|
-
Summary.propTypes = {
|
|
128
|
-
multiRoom: _propTypes.default.bool,
|
|
129
|
-
name: _propTypes.default.string,
|
|
130
|
-
selected: _propTypes.default.shape({}),
|
|
131
|
-
selectedBoard: _propTypes.default.shape({}),
|
|
132
|
-
taxes: _propTypes.default.string,
|
|
133
|
-
onSelect: _propTypes.default.func
|
|
134
|
-
};
|
|
135
|
-
//# sourceMappingURL=Item.Summary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.Summary.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_components","_Item","style","_Rates","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Summary","_ref","multiRoom","name","roomName","selected","selectedBoard","taxes","onSelect","isMobile","useDevice","translate","useLocale","value","currency","useStore","busy","setBusy","useState","useEffect","keys","basePrice","cancellationId","dayPrice","discount","percentage","discountPercentage","breakdown","id","originalPrice","price","rateId","isSelected","handlePress","undefined","hasDiscountClub","find","_ref2","type","DISCOUNT_TYPE","CLUB","createElement","Fragment","View","className","offset","summary","Text","accent","bold","small","concat","L10N","LABEL_CLUB_MEMBERS","LABEL_DISCOUNT","row","gap","content","headline","level","currencyFormat","action","lighten","lineThrough","tiny","LABEL_PER_UNIT_NIGHT","LABEL_EXCLUDES_TAXES_FEES","LABEL_INCLUDES_TAXES_FEES","PriceDetails","priceDetails","Button","large","secondary","onPress","LABEL_DESELECT","LABEL_SELECT","ACTION_RESERVE","exports","displayName","propTypes","PropTypes","bool","string","shape","func"],"sources":["../../../../../src/components/Rates/components/Item/Item.Summary.jsx"],"sourcesContent":["import { useStore } from '@mirai/data-sources';\nimport { currencyFormat, useLocale } from '@mirai/locale';\nimport { Button, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport { PriceDetails } from './components';\nimport { L10N } from './Item.l10n';\nimport * as style from './Item.module.css';\nimport { DISCOUNT_TYPE } from '../../Rates.constants';\n\nconst Summary = ({ multiRoom = false, name: roomName, selected = {}, selectedBoard = {}, taxes, onSelect }) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n const { value: { currency } = {} } = useStore();\n\n const [busy, setBusy] = useState(false);\n\n useEffect(() => Object.keys(selected).length === 0 && setBusy(false), [selected]);\n\n const {\n basePrice,\n cancellationId,\n dayPrice,\n discount: { percentage: discountPercentage = 0, breakdown = [] } = {},\n id,\n name,\n originalPrice,\n price,\n rateId,\n } = selectedBoard;\n\n const isSelected = selected.id === id;\n\n const handlePress = () => {\n if (!multiRoom) setBusy(true);\n onSelect(!isSelected ? { basePrice, cancellationId, id, name, price, rateId, roomName } : undefined);\n };\n\n const hasDiscountClub = discountPercentage > 0 && breakdown.find(({ type }) => type === DISCOUNT_TYPE.CLUB);\n\n return (\n <>\n <View className={[style.offset, style.summary]}>\n {discountPercentage > 0 && (\n <Text accent bold small>\n {hasDiscountClub && `${translate(L10N.LABEL_CLUB_MEMBERS)} `}\n {translate(L10N.LABEL_DISCOUNT, { value: `${discountPercentage}%` })}\n </Text>\n )}\n\n <View row className={[style.gap, style.content]}>\n <View>\n <View row className={style.price}>\n <Text bold headline level={isMobile ? 3 : 2}>\n {currencyFormat({ currency, value: price })}\n </Text>\n\n {price !== originalPrice && (\n <Text action lighten className={style.lineThrough}>\n {currencyFormat({ currency, value: originalPrice })}\n </Text>\n )}\n </View>\n\n <Text small={!isMobile} tiny={isMobile}>{`${currencyFormat({ currency, value: dayPrice })} ${translate(\n L10N.LABEL_PER_UNIT_NIGHT,\n )}`}</Text>\n\n <Text lighten small={!isMobile} tiny={isMobile}>\n {translate(taxes ? L10N.LABEL_EXCLUDES_TAXES_FEES : L10N.LABEL_INCLUDES_TAXES_FEES)}\n </Text>\n\n {discountPercentage > 0 && <PriceDetails {...{ ...selectedBoard, taxes }} className={style.priceDetails} />}\n </View>\n\n <Button\n //\n busy={busy}\n large={!isMobile}\n secondary={multiRoom && isSelected}\n onPress={handlePress}\n >\n {translate(multiRoom ? (isSelected ? L10N.LABEL_DESELECT : L10N.LABEL_SELECT) : L10N.ACTION_RESERVE)}\n </Button>\n </View>\n </View>\n </>\n );\n};\n\nSummary.displayName = 'Mirai:Core:Rates:Item.Summary';\n\nSummary.propTypes = {\n multiRoom: PropTypes.bool,\n name: PropTypes.string,\n selected: PropTypes.shape({}),\n selectedBoard: PropTypes.shape({}),\n taxes: PropTypes.string,\n onSelect: PropTypes.func,\n};\nexport { Summary };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,KAAA,GAAAH,uBAAA,CAAAN,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AAAsD,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;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAA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ACAtD,IAAI,EAAEA,IAAK;IACXuD,KAAK,EAAE,CAAC9D,QAAS;IACjB+D,SAAS,EAAEtE,SAAS,IAAI8B,UAAW;IACnCyC,OAAO,EAAExC;EAAY,GAEpBtB,SAAS,CAACT,SAAS,GAAI8B,UAAU,GAAGoB,UAAI,CAACsB,cAAc,GAAGtB,UAAI,CAACuB,YAAY,GAAIvB,UAAI,CAACwB,cAAc,CAC7F,CACJ,CACF,CACN,CAAC;AAEP,CAAC;AAACC,OAAA,CAAA7E,OAAA,GAAAA,OAAA;AAEFA,OAAO,CAAC8E,WAAW,GAAG,+BAA+B;AAErD9E,OAAO,CAAC+E,SAAS,GAAG;EAClB7E,SAAS,EAAE8E,kBAAS,CAACC,IAAI;EACzB9E,IAAI,EAAE6E,kBAAS,CAACE,MAAM;EACtB7E,QAAQ,EAAE2E,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC;EAC7B7E,aAAa,EAAE0E,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC,CAAC;EAClC5E,KAAK,EAAEyE,kBAAS,CAACE,MAAM;EACvB1E,QAAQ,EAAEwE,kBAAS,CAACI;AACtB,CAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Item = void 0;
|
|
7
|
-
var _ui = require("@mirai/ui");
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var style = _interopRequireWildcard(require("./Item.module.css"));
|
|
11
|
-
var _Item = require("./Item.Preview");
|
|
12
|
-
var _Item2 = require("./Item.Rates");
|
|
13
|
-
var _Item3 = require("./Item.Summary");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
18
|
-
const Item = _ref => {
|
|
19
|
-
let {
|
|
20
|
-
boards = [],
|
|
21
|
-
cancellations = [],
|
|
22
|
-
cart: selected,
|
|
23
|
-
rates = [],
|
|
24
|
-
...others
|
|
25
|
-
} = _ref;
|
|
26
|
-
const [selectedBoard, setSelectedBoard] = (0, _react.useState)();
|
|
27
|
-
(0, _react.useEffect)(() => {
|
|
28
|
-
let nextBoard;
|
|
29
|
-
if (selected) {
|
|
30
|
-
nextBoard = boards.find(item => item.id === selected.id);
|
|
31
|
-
} else if (!selectedBoard) {
|
|
32
|
-
const [{
|
|
33
|
-
id: cancellationId
|
|
34
|
-
} = {}] = cancellations;
|
|
35
|
-
const [{
|
|
36
|
-
id: rateId
|
|
37
|
-
} = {}] = rates;
|
|
38
|
-
nextBoard = boards.find(board => board.cancellationId === cancellationId && board.rateId === rateId);
|
|
39
|
-
}
|
|
40
|
-
if (nextBoard) setSelectedBoard(nextBoard);
|
|
41
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
42
|
-
}, [boards, selected]);
|
|
43
|
-
const handleBoard = board => {
|
|
44
|
-
setSelectedBoard(board);
|
|
45
|
-
};
|
|
46
|
-
const handleCancellation = id => {
|
|
47
|
-
setSelectedBoard(boards.find(_ref2 => {
|
|
48
|
-
let {
|
|
49
|
-
cancellationId
|
|
50
|
-
} = _ref2;
|
|
51
|
-
return cancellationId === id;
|
|
52
|
-
}));
|
|
53
|
-
};
|
|
54
|
-
const handleRate = _ref3 => {
|
|
55
|
-
let {
|
|
56
|
-
id,
|
|
57
|
-
cancellationId
|
|
58
|
-
} = _ref3;
|
|
59
|
-
setSelectedBoard(boards.find(board => board.cancellationId === cancellationId && board.rateId == id));
|
|
60
|
-
};
|
|
61
|
-
const {
|
|
62
|
-
id,
|
|
63
|
-
cancellationId,
|
|
64
|
-
rateId
|
|
65
|
-
} = selectedBoard || {};
|
|
66
|
-
const props = {
|
|
67
|
-
...others,
|
|
68
|
-
boards: boards.filter(board => board.cancellationId === cancellationId && board.rateId === rateId),
|
|
69
|
-
cancellations,
|
|
70
|
-
rates: rates.filter(rate => rate.cancellationId === cancellationId),
|
|
71
|
-
selected,
|
|
72
|
-
selectedBoard
|
|
73
|
-
};
|
|
74
|
-
return /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
75
|
-
className: [style.item, (selected === null || selected === void 0 ? void 0 : selected.id) === id && style.selected, selected && selected.id !== id && style.unselected, others.className]
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_Item.Preview, props), /*#__PURE__*/_react.default.createElement(_Item2.Rates, _extends({}, props, {
|
|
77
|
-
onBoard: handleBoard,
|
|
78
|
-
onCancellation: handleCancellation,
|
|
79
|
-
onRate: handleRate
|
|
80
|
-
})), /*#__PURE__*/_react.default.createElement(_Item3.Summary, props));
|
|
81
|
-
};
|
|
82
|
-
exports.Item = Item;
|
|
83
|
-
Item.displayName = 'Mirai:Core:Rates:Item';
|
|
84
|
-
Item.propTypes = {
|
|
85
|
-
boards: _propTypes.default.arrayOf(_propTypes.default.shape({})),
|
|
86
|
-
cancellations: _propTypes.default.arrayOf(_propTypes.default.shape({})),
|
|
87
|
-
cart: _propTypes.default.shape({
|
|
88
|
-
id: _propTypes.default.string
|
|
89
|
-
}),
|
|
90
|
-
rates: _propTypes.default.arrayOf(_propTypes.default.shape({}))
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=Item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","names":["_ui","require","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","style","_Item","_Item2","_Item3","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","Item","_ref","boards","cancellations","cart","selected","rates","others","selectedBoard","setSelectedBoard","useState","useEffect","nextBoard","find","item","id","cancellationId","rateId","board","handleBoard","handleCancellation","_ref2","handleRate","_ref3","props","filter","rate","createElement","View","className","unselected","Preview","Rates","onBoard","onCancellation","onRate","Summary","exports","displayName","propTypes","PropTypes","arrayOf","shape","string"],"sources":["../../../../../src/components/Rates/components/Item/Item.jsx"],"sourcesContent":["import { View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport * as style from './Item.module.css';\nimport { Preview } from './Item.Preview';\nimport { Rates } from './Item.Rates';\nimport { Summary } from './Item.Summary';\n\nconst Item = ({ boards = [], cancellations = [], cart: selected, rates = [], ...others }) => {\n const [selectedBoard, setSelectedBoard] = useState();\n\n useEffect(() => {\n let nextBoard;\n\n if (selected) {\n nextBoard = boards.find((item) => item.id === selected.id);\n } else if (!selectedBoard) {\n const [{ id: cancellationId } = {}] = cancellations;\n const [{ id: rateId } = {}] = rates;\n nextBoard = boards.find((board) => board.cancellationId === cancellationId && board.rateId === rateId);\n }\n\n if (nextBoard) setSelectedBoard(nextBoard);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [boards, selected]);\n\n const handleBoard = (board) => {\n setSelectedBoard(board);\n };\n\n const handleCancellation = (id) => {\n setSelectedBoard(boards.find(({ cancellationId }) => cancellationId === id));\n };\n\n const handleRate = ({ id, cancellationId }) => {\n setSelectedBoard(boards.find((board) => board.cancellationId === cancellationId && board.rateId == id));\n };\n\n const { id, cancellationId, rateId } = selectedBoard || {};\n\n const props = {\n ...others,\n boards: boards.filter((board) => board.cancellationId === cancellationId && board.rateId === rateId),\n cancellations,\n rates: rates.filter((rate) => rate.cancellationId === cancellationId),\n selected,\n selectedBoard,\n };\n\n return (\n <View\n className={[\n style.item,\n selected?.id === id && style.selected,\n selected && selected.id !== id && style.unselected,\n others.className,\n ]}\n >\n <Preview {...props} />\n <Rates {...props} onBoard={handleBoard} onCancellation={handleCancellation} onRate={handleRate} />\n <Summary {...props} />\n </View>\n );\n};\n\nItem.displayName = 'Mirai:Core:Rates:Item';\n\nItem.propTypes = {\n boards: PropTypes.arrayOf(PropTypes.shape({})),\n cancellations: PropTypes.arrayOf(PropTypes.shape({})),\n cart: PropTypes.shape({\n id: PropTypes.string,\n }),\n rates: PropTypes.arrayOf(PropTypes.shape({})),\n};\n\nexport { Item };\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAD,uBAAA,CAAAJ,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAAyC,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,C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oD,aAAA,CAAC7D,KAAA,CAAAiE,OAAO,EAAKP,KAAQ,CAAC,eACtB7D,MAAA,CAAAY,OAAA,CAAAoD,aAAA,CAAC5D,MAAA,CAAAiE,KAAK,EAAAzC,QAAA,KAAKiC,KAAK;IAAES,OAAO,EAAEd,WAAY;IAACe,cAAc,EAAEd,kBAAmB;IAACe,MAAM,EAAEb;EAAW,EAAE,CAAC,eAClG3D,MAAA,CAAAY,OAAA,CAAAoD,aAAA,CAAC3D,MAAA,CAAAoE,OAAO,EAAKZ,KAAQ,CACjB,CAAC;AAEX,CAAC;AAACa,OAAA,CAAArC,IAAA,GAAAA,IAAA;AAEFA,IAAI,CAACsC,WAAW,GAAG,uBAAuB;AAE1CtC,IAAI,CAACuC,SAAS,GAAG;EACfrC,MAAM,EAAEsC,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EAC9CvC,aAAa,EAAEqC,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;EACrDtC,IAAI,EAAEoC,kBAAS,CAACE,KAAK,CAAC;IACpB3B,EAAE,EAAEyB,kBAAS,CAACG;EAChB,CAAC,CAAC;EACFrC,KAAK,EAAEkC,kBAAS,CAACC,OAAO,CAACD,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.L10N = void 0;
|
|
7
|
-
const L10N = exports.L10N = {
|
|
8
|
-
ACTION_MORE_INFO: {
|
|
9
|
-
id: 'common.action.more_info'
|
|
10
|
-
},
|
|
11
|
-
ACTION_MORE_RATES: {
|
|
12
|
-
id: 'finder.action.more_rates'
|
|
13
|
-
},
|
|
14
|
-
ACTION_RESERVE: {
|
|
15
|
-
id: 'common.action.reserve'
|
|
16
|
-
},
|
|
17
|
-
LABEL_3D_VIEW: {
|
|
18
|
-
id: 'finder.label.3d_view'
|
|
19
|
-
},
|
|
20
|
-
LABEL_ACCOMMODATION_PLAN: {
|
|
21
|
-
id: 'finder.label.accommodation_plan'
|
|
22
|
-
},
|
|
23
|
-
LABEL_BED_DISPOSITION: {
|
|
24
|
-
id: 'finder.label.bed_disposition'
|
|
25
|
-
},
|
|
26
|
-
LABEL_BED_TYPE: {
|
|
27
|
-
1: {
|
|
28
|
-
id: 'finder.label.bed_type_single'
|
|
29
|
-
},
|
|
30
|
-
2: {
|
|
31
|
-
id: 'finder.label.bed_type_double'
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
LABEL_CANCELLATION_POLICY: {
|
|
35
|
-
id: 'common.label.cancellation_policy'
|
|
36
|
-
},
|
|
37
|
-
LABEL_CLUB_MEMBERS: {
|
|
38
|
-
id: 'finder.label.club_members'
|
|
39
|
-
},
|
|
40
|
-
LABEL_DESELECT: {
|
|
41
|
-
id: 'common.label.deselect'
|
|
42
|
-
},
|
|
43
|
-
LABEL_DISCOUNT: {
|
|
44
|
-
id: 'finder.label.discount'
|
|
45
|
-
},
|
|
46
|
-
LABEL_DISCOUNT_INCLUDED: {
|
|
47
|
-
id: 'finder.label.discount_included'
|
|
48
|
-
},
|
|
49
|
-
LABEL_DISCOUNT_TYPE: {
|
|
50
|
-
0: {
|
|
51
|
-
id: 'finder.label.discount_club'
|
|
52
|
-
},
|
|
53
|
-
1: {
|
|
54
|
-
id: 'finder.label.discount_deal'
|
|
55
|
-
},
|
|
56
|
-
2: {
|
|
57
|
-
id: 'finder.label.discount_promotion'
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
LABEL_INCLUDES_TAXES_FEES: {
|
|
61
|
-
id: 'finder.label.includes_taxes_fees'
|
|
62
|
-
},
|
|
63
|
-
LABEL_EXCLUDES_TAXES_FEES: {
|
|
64
|
-
id: 'finder.label.excludes_taxes_fees'
|
|
65
|
-
},
|
|
66
|
-
LABEL_LIMITED_OFFER: {
|
|
67
|
-
id: 'finder.label.limited_offer'
|
|
68
|
-
},
|
|
69
|
-
LABEL_MORE_SERVICES: {
|
|
70
|
-
id: 'finder.label.more_services'
|
|
71
|
-
},
|
|
72
|
-
LABEL_OR: {
|
|
73
|
-
id: 'common.label.or'
|
|
74
|
-
},
|
|
75
|
-
LABEL_ORIGINAL_PRICE: {
|
|
76
|
-
id: 'finder.label.original_price'
|
|
77
|
-
},
|
|
78
|
-
LABEL_PAYMENT_TERMS: {
|
|
79
|
-
id: 'common.label.payment_terms'
|
|
80
|
-
},
|
|
81
|
-
LABEL_PER_UNIT_NIGHT: {
|
|
82
|
-
id: 'finder.label.per_unit_night'
|
|
83
|
-
},
|
|
84
|
-
LABEL_PRICE_DETAILS: {
|
|
85
|
-
id: 'finder.label.price_details'
|
|
86
|
-
},
|
|
87
|
-
LABEL_RATE: {
|
|
88
|
-
id: 'common.label.rate'
|
|
89
|
-
},
|
|
90
|
-
LABEL_REMAINING_ITEMS: {
|
|
91
|
-
id: 'finder.label.remaining_items'
|
|
92
|
-
},
|
|
93
|
-
LABEL_SELECT: {
|
|
94
|
-
id: 'common.label.select'
|
|
95
|
-
},
|
|
96
|
-
LABEL_SELECT_AND_CUSTOMIZE: {
|
|
97
|
-
id: 'common.label.select_and_customize',
|
|
98
|
-
defaultMessage: '$Select and customize'
|
|
99
|
-
},
|
|
100
|
-
LABEL_TOP_AMENITIES: {
|
|
101
|
-
id: 'finder.label.top_amenities'
|
|
102
|
-
},
|
|
103
|
-
LABEL_VIEW_VIDEO: {
|
|
104
|
-
id: 'finder.label.view_video'
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
//# sourceMappingURL=Item.l10n.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.l10n.js","names":["L10N","exports","ACTION_MORE_INFO","id","ACTION_MORE_RATES","ACTION_RESERVE","LABEL_3D_VIEW","LABEL_ACCOMMODATION_PLAN","LABEL_BED_DISPOSITION","LABEL_BED_TYPE","LABEL_CANCELLATION_POLICY","LABEL_CLUB_MEMBERS","LABEL_DESELECT","LABEL_DISCOUNT","LABEL_DISCOUNT_INCLUDED","LABEL_DISCOUNT_TYPE","LABEL_INCLUDES_TAXES_FEES","LABEL_EXCLUDES_TAXES_FEES","LABEL_LIMITED_OFFER","LABEL_MORE_SERVICES","LABEL_OR","LABEL_ORIGINAL_PRICE","LABEL_PAYMENT_TERMS","LABEL_PER_UNIT_NIGHT","LABEL_PRICE_DETAILS","LABEL_RATE","LABEL_REMAINING_ITEMS","LABEL_SELECT","LABEL_SELECT_AND_CUSTOMIZE","defaultMessage","LABEL_TOP_AMENITIES","LABEL_VIEW_VIDEO"],"sources":["../../../../../src/components/Rates/components/Item/Item.l10n.js"],"sourcesContent":["export const L10N = {\n ACTION_MORE_INFO: { id: 'common.action.more_info' },\n ACTION_MORE_RATES: { id: 'finder.action.more_rates' },\n ACTION_RESERVE: { id: 'common.action.reserve' },\n\n LABEL_3D_VIEW: { id: 'finder.label.3d_view' },\n LABEL_ACCOMMODATION_PLAN: { id: 'finder.label.accommodation_plan' },\n LABEL_BED_DISPOSITION: { id: 'finder.label.bed_disposition' },\n LABEL_BED_TYPE: {\n 1: { id: 'finder.label.bed_type_single' },\n 2: { id: 'finder.label.bed_type_double' },\n },\n LABEL_CANCELLATION_POLICY: { id: 'common.label.cancellation_policy' },\n LABEL_CLUB_MEMBERS: { id: 'finder.label.club_members' },\n LABEL_DESELECT: { id: 'common.label.deselect' },\n LABEL_DISCOUNT: { id: 'finder.label.discount' },\n LABEL_DISCOUNT_INCLUDED: { id: 'finder.label.discount_included' },\n LABEL_DISCOUNT_TYPE: {\n 0: { id: 'finder.label.discount_club' },\n 1: { id: 'finder.label.discount_deal' },\n 2: { id: 'finder.label.discount_promotion' },\n },\n LABEL_INCLUDES_TAXES_FEES: { id: 'finder.label.includes_taxes_fees' },\n LABEL_EXCLUDES_TAXES_FEES: { id: 'finder.label.excludes_taxes_fees' },\n LABEL_LIMITED_OFFER: { id: 'finder.label.limited_offer' },\n LABEL_MORE_SERVICES: { id: 'finder.label.more_services' },\n LABEL_OR: { id: 'common.label.or' },\n LABEL_ORIGINAL_PRICE: { id: 'finder.label.original_price' },\n LABEL_PAYMENT_TERMS: { id: 'common.label.payment_terms' },\n LABEL_PER_UNIT_NIGHT: { id: 'finder.label.per_unit_night' },\n LABEL_PRICE_DETAILS: { id: 'finder.label.price_details' },\n LABEL_RATE: { id: 'common.label.rate' },\n LABEL_REMAINING_ITEMS: { id: 'finder.label.remaining_items' },\n LABEL_SELECT: { id: 'common.label.select' },\n LABEL_SELECT_AND_CUSTOMIZE: { id: 'common.label.select_and_customize', defaultMessage: '$Select and customize' },\n LABEL_TOP_AMENITIES: { id: 'finder.label.top_amenities' },\n LABEL_VIEW_VIDEO: { id: 'finder.label.view_video' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,gBAAgB,EAAE;IAAEC,EAAE,EAAE;EAA0B,CAAC;EACnDC,iBAAiB,EAAE;IAAED,EAAE,EAAE;EAA2B,CAAC;EACrDE,cAAc,EAAE;IAAEF,EAAE,EAAE;EAAwB,CAAC;EAE/CG,aAAa,EAAE;IAAEH,EAAE,EAAE;EAAuB,CAAC;EAC7CI,wBAAwB,EAAE;IAAEJ,EAAE,EAAE;EAAkC,CAAC;EACnEK,qBAAqB,EAAE;IAAEL,EAAE,EAAE;EAA+B,CAAC;EAC7DM,cAAc,EAAE;IACd,CAAC,EAAE;MAAEN,EAAE,EAAE;IAA+B,CAAC;IACzC,CAAC,EAAE;MAAEA,EAAE,EAAE;IAA+B;EAC1C,CAAC;EACDO,yBAAyB,EAAE;IAAEP,EAAE,EAAE;EAAmC,CAAC;EACrEQ,kBAAkB,EAAE;IAAER,EAAE,EAAE;EAA4B,CAAC;EACvDS,cAAc,EAAE;IAA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|
|
2
|
-
background-color: var(--mirai-ui-base);
|
|
3
|
-
border-radius: var(--mirai-ui-border-radius);
|
|
4
|
-
box-shadow: inset 0 0 0 1px var(--mirai-ui-content-border);
|
|
5
|
-
transition: box-shadow var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing),
|
|
6
|
-
filter var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing),
|
|
7
|
-
opacity var(--mirai-ui-motion-expand) var(--mirai-ui-motion-easing);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.item.selected {
|
|
11
|
-
box-shadow: inset 0 0 0 1px var(--mirai-ui-accent);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.item.unselected:not(:hover) {
|
|
15
|
-
opacity: 0.66;
|
|
16
|
-
filter: grayscale(1);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.item .anchor {
|
|
20
|
-
border-bottom: solid 1px var(--mirai-ui-content-border);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.item .gap {
|
|
24
|
-
gap: var(--mirai-ui-space-XS);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.item .offset {
|
|
28
|
-
padding: var(--mirai-ui-space-S) var(--mirai-ui-space-M);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.item .row {
|
|
32
|
-
align-items: center;
|
|
33
|
-
display: flex;
|
|
34
|
-
gap: calc(var(--mirai-ui-space-XS) / 2);
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.item .spaceBetween {
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: space-between;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* -- <Item.Preview> ------------------------------------------------------------------------------------------------ */
|
|
44
|
-
.slider {
|
|
45
|
-
background-color: var(--mirai-ui-content-border);
|
|
46
|
-
border-top-left-radius: var(--mirai-ui-border-radius);
|
|
47
|
-
border-top-right-radius: var(--mirai-ui-border-radius);
|
|
48
|
-
width: 100%;
|
|
49
|
-
position: relative;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.slider .buttons {
|
|
53
|
-
gap: var(--mirai-ui-space-S);
|
|
54
|
-
height: var(--mirai-ui-space-XL);
|
|
55
|
-
justify-content: center;
|
|
56
|
-
left: calc(var(--mirai-ui-space-XXL) * 2);
|
|
57
|
-
position: absolute;
|
|
58
|
-
right: calc(var(--mirai-ui-space-XXL) * 2);
|
|
59
|
-
top: calc(calc(210px - var(--mirai-ui-space-XL)) / 2);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.slider .buttons [data-role='button'] {
|
|
63
|
-
background-color: var(--mirai-ui-slider-overlay);
|
|
64
|
-
height: var(--mirai-ui-space-XL);
|
|
65
|
-
width: var(--mirai-ui-space-XL);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.slider .buttons [data-role='icon'] {
|
|
69
|
-
color: var(--mirai-ui-base);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.availability {
|
|
73
|
-
color: var(--mirai-ui-error);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* -- <Item.Rates> -------------------------------------------------------------------------------------------------- */
|
|
77
|
-
.item > .offset:nth-last-child(2) {
|
|
78
|
-
flex: 1;
|
|
79
|
-
padding-bottom: var(--mirai-ui-space-M);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.item .included {
|
|
83
|
-
border-radius: var(--mirai-ui-border-radius);
|
|
84
|
-
box-shadow: inset 0 0 0 1px var(--mirai-ui-content-border);
|
|
85
|
-
padding: var(--mirai-ui-space-XS) var(--mirai-ui-space-S);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* -- <Item.Summary> ------------------------------------------------------------------------------------------------ */
|
|
89
|
-
|
|
90
|
-
.item .summary {
|
|
91
|
-
margin-bottom: calc(var(--mirai-ui-space-XS) / 2);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.summary .content {
|
|
95
|
-
justify-content: space-between;
|
|
96
|
-
align-items: flex-end;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.summary .price {
|
|
100
|
-
align-items: flex-end;
|
|
101
|
-
gap: var(--mirai-ui-space-XS);
|
|
102
|
-
margin: calc(var(--mirai-ui-space-XS) / 2) 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.summary .lineThrough {
|
|
106
|
-
text-decoration: line-through;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.summary .priceDetails {
|
|
110
|
-
align-self: flex-start;
|
|
111
|
-
margin-top: calc(var(--mirai-ui-space-XS) / 2);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.summary .button {
|
|
115
|
-
align-items: flex-end;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* S */
|
|
119
|
-
@media only screen and (max-width: 430px) {
|
|
120
|
-
.item .offset {
|
|
121
|
-
padding: var(--mirai-ui-space-XS) var(--mirai-ui-space-S);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* M & L */
|
|
126
|
-
@media only screen and (min-width: 431px) {
|
|
127
|
-
.item .offset {
|
|
128
|
-
padding: var(--mirai-ui-space-S) var(--mirai-ui-space-M);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Amenities = void 0;
|
|
7
|
-
var _ui = require("@mirai/ui");
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var style = _interopRequireWildcard(require("./Amenities.module.css"));
|
|
11
|
-
var _helpers = require("../../../../../helpers");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
const Amenities = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
amenities = [],
|
|
18
|
-
highlight = false,
|
|
19
|
-
preview = false,
|
|
20
|
-
...others
|
|
21
|
-
} = _ref;
|
|
22
|
-
const {
|
|
23
|
-
isMobile
|
|
24
|
-
} = (0, _ui.useDevice)();
|
|
25
|
-
const values = amenities.filter(function () {
|
|
26
|
-
let item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27
|
-
return !highlight && !item.highlight || highlight && item.highlight;
|
|
28
|
-
}).slice(0, preview ? 3 : undefined);
|
|
29
|
-
return values.length ? /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
30
|
-
row: highlight && !preview,
|
|
31
|
-
className: (0, _ui.styles)(style.amenities, highlight ? preview ? style.preview : style.highlight : style.columns, others.className)
|
|
32
|
-
}, values.map(function () {
|
|
33
|
-
let {
|
|
34
|
-
id,
|
|
35
|
-
text
|
|
36
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
37
|
-
let index = arguments.length > 1 ? arguments[1] : undefined;
|
|
38
|
-
return /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
39
|
-
key: index,
|
|
40
|
-
row: preview || !highlight,
|
|
41
|
-
className: style.content
|
|
42
|
-
}, highlight || preview ? /*#__PURE__*/_react.default.createElement(_ui.Icon, {
|
|
43
|
-
value: _helpers.ICON[id] || _helpers.ICON.AMENITY,
|
|
44
|
-
headline: true,
|
|
45
|
-
level: !preview ? 1 : 3
|
|
46
|
-
}) : /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
47
|
-
small: true
|
|
48
|
-
}, "\u2022"), /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
49
|
-
tiny: highlight && !preview,
|
|
50
|
-
small: !highlight && !preview || isMobile && preview,
|
|
51
|
-
action: !isMobile && preview,
|
|
52
|
-
className: (0, _ui.styles)(style.text, !highlight && style.textSingleLine)
|
|
53
|
-
}, text.substring(0, highlight ? 24 : undefined).trim()));
|
|
54
|
-
})) : null;
|
|
55
|
-
};
|
|
56
|
-
exports.Amenities = Amenities;
|
|
57
|
-
Amenities.propTypes = {
|
|
58
|
-
amenities: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
59
|
-
exclusive: _propTypes.default.bool,
|
|
60
|
-
highlight: _propTypes.default.bool,
|
|
61
|
-
id: _propTypes.default.number,
|
|
62
|
-
text: _propTypes.default.string
|
|
63
|
-
})),
|
|
64
|
-
highlight: _propTypes.default.bool,
|
|
65
|
-
preview: _propTypes.default.bool
|
|
66
|
-
};
|
|
67
|
-
Amenities.displayName = 'Mirai:Core:Rates:Item.Amenities';
|
|
68
|
-
//# sourceMappingURL=Amenities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Amenities.js","names":["_ui","require","_propTypes","_interopRequireDefault","_react","style","_interopRequireWildcard","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Amenities","_ref","amenities","highlight","preview","others","isMobile","useDevice","values","filter","item","arguments","length","undefined","slice","createElement","View","row","className","styles","columns","map","id","text","index","key","content","Icon","value","ICON","AMENITY","headline","level","Text","small","tiny","action","textSingleLine","substring","trim","exports","propTypes","PropTypes","arrayOf","shape","exclusive","bool","number","string","displayName"],"sources":["../../../../../../../src/components/Rates/components/Item/components/Amenities/Amenities.jsx"],"sourcesContent":["import { Icon, styles, Text, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport * as style from './Amenities.module.css';\nimport { ICON } from '../../../../../helpers';\n\nconst Amenities = ({ amenities = [], highlight = false, preview = false, ...others }) => {\n const { isMobile } = useDevice();\n\n const values = amenities\n .filter((item = {}) => (!highlight && !item.highlight) || (highlight && item.highlight))\n .slice(0, preview ? 3 : undefined);\n\n return values.length ? (\n <View\n row={highlight && !preview}\n className={styles(\n style.amenities,\n highlight ? (preview ? style.preview : style.highlight) : style.columns,\n others.className,\n )}\n >\n {values.map(({ id, text } = {}, index) => (\n <View key={index} row={preview || !highlight} className={style.content}>\n {highlight || preview ? (\n <Icon value={ICON[id] || ICON.AMENITY} headline level={!preview ? 1 : 3} />\n ) : (\n <Text small>•</Text>\n )}\n <Text\n tiny={highlight && !preview}\n small={(!highlight && !preview) || (isMobile && preview)}\n action={!isMobile && preview}\n className={styles(style.text, !highlight && style.textSingleLine)}\n >\n {text.substring(0, highlight ? 24 : undefined).trim()}\n </Text>\n </View>\n ))}\n </View>\n ) : null;\n};\n\nAmenities.propTypes = {\n amenities: PropTypes.arrayOf(\n PropTypes.shape({\n exclusive: PropTypes.bool,\n highlight: PropTypes.bool,\n id: PropTypes.number,\n text: PropTypes.string,\n }),\n ),\n highlight: PropTypes.bool,\n preview: PropTypes.bool,\n};\n\nAmenities.displayName = 'Mirai:Core:Rates:Item.Amenities';\n\nexport { Amenities };\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,KAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM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