@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,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.VALID = exports.UNIT = exports.KEY_HASH = exports.EXTERNAL = exports.DEFAULT_LANGUAGE = exports.CURRENCIES_WITHOUT_DECIMALS = exports.BED_TYPE = exports.BED_DISPOSITION = void 0;
|
|
7
|
-
const SINGLE = 1;
|
|
8
|
-
const DOUBLE = 2;
|
|
9
|
-
const BED_DISPOSITION = exports.BED_DISPOSITION = {
|
|
10
|
-
ONE_SINGLE: [{
|
|
11
|
-
amount: 1,
|
|
12
|
-
type: SINGLE
|
|
13
|
-
}],
|
|
14
|
-
ONE_DOUBLE: [{
|
|
15
|
-
amount: 1,
|
|
16
|
-
type: DOUBLE
|
|
17
|
-
}],
|
|
18
|
-
TWO_SINGLES: [{
|
|
19
|
-
amount: 2,
|
|
20
|
-
type: SINGLE
|
|
21
|
-
}],
|
|
22
|
-
TWO_DOUBLES: [{
|
|
23
|
-
amount: 2,
|
|
24
|
-
type: DOUBLE
|
|
25
|
-
}],
|
|
26
|
-
THREE_SINGLES: [{
|
|
27
|
-
amount: 3,
|
|
28
|
-
type: SINGLE
|
|
29
|
-
}],
|
|
30
|
-
ONE_DOUBLE_ONE_SINGLE: [{
|
|
31
|
-
amount: 1,
|
|
32
|
-
type: DOUBLE
|
|
33
|
-
}, {
|
|
34
|
-
amount: 1,
|
|
35
|
-
type: SINGLE
|
|
36
|
-
}],
|
|
37
|
-
FOUR_SINGLES: [{
|
|
38
|
-
amount: 4,
|
|
39
|
-
type: SINGLE
|
|
40
|
-
}],
|
|
41
|
-
ONE_DOUBLE_TWO_SINGLES: [{
|
|
42
|
-
amount: 1,
|
|
43
|
-
type: DOUBLE
|
|
44
|
-
}, {
|
|
45
|
-
amount: 2,
|
|
46
|
-
type: SINGLE
|
|
47
|
-
}],
|
|
48
|
-
FIVE_SINGLES: [{
|
|
49
|
-
amount: 5,
|
|
50
|
-
type: SINGLE
|
|
51
|
-
}],
|
|
52
|
-
ONE_DOUBLE_THREE_SINGLES: [{
|
|
53
|
-
amount: 1,
|
|
54
|
-
type: DOUBLE
|
|
55
|
-
}, {
|
|
56
|
-
amount: 3,
|
|
57
|
-
type: SINGLE
|
|
58
|
-
}],
|
|
59
|
-
TWO_DOUBLES_ONE_SINGLE: [{
|
|
60
|
-
amount: 2,
|
|
61
|
-
type: DOUBLE
|
|
62
|
-
}, {
|
|
63
|
-
amount: 1,
|
|
64
|
-
type: SINGLE
|
|
65
|
-
}],
|
|
66
|
-
MORE_THAN_FIVE_BEDS: [{
|
|
67
|
-
amount: 6,
|
|
68
|
-
type: DOUBLE
|
|
69
|
-
}, {
|
|
70
|
-
amount: 6,
|
|
71
|
-
type: SINGLE
|
|
72
|
-
}],
|
|
73
|
-
NO_BED: []
|
|
74
|
-
};
|
|
75
|
-
const BED_TYPE = exports.BED_TYPE = {
|
|
76
|
-
SINGLE,
|
|
77
|
-
DOUBLE
|
|
78
|
-
};
|
|
79
|
-
const CURRENCIES_WITHOUT_DECIMALS = exports.CURRENCIES_WITHOUT_DECIMALS = ['KRW', 'JPY', 'IDR', 'ISK'];
|
|
80
|
-
const DEFAULT_LANGUAGE = exports.DEFAULT_LANGUAGE = 'en';
|
|
81
|
-
const EXTERNAL = exports.EXTERNAL = {
|
|
82
|
-
ID: ['100377454', '100377444', '100378056', '100378057', '100378060', '100378062', '100378058', '100378059', '100378061', '100378063', '100378102', '100378108', '100378106', '100377194', '100378246', '100378209', '100378249', '100378315', '100378316', '100378317', '100378318', '100378319', '100378320', '100378321', '100378322', '100378323', '100378324', '100378325', '100378326', '100378327', '100378328', '100378329', '100378245', '100378242', '100378243', '100378241', '100378244', '100378385', '100378386', '100378472', '100378473', '100378474', '100378475', '100378476', '100378477', '100378478', '100378384', '100378563', '100378562', '100378559', '100378323', '100378556', '100378558', '100378555', '100378557', '100378553', '100378561', '100378556', '100378599', '100378565', '100378596', '100378561', '100378604', '100378590', '100378591', '100378597', '100378592', '100378593', '100378614', '100378606', '100378598', '100378601', '100378602', '100378600', '100378594', '100378605', '100378603', '100378607', '100378608', '100378609', '100378610', '100378612', '100378611', '100378613', '100378677', '100378589', '100378564', '100379044'],
|
|
83
|
-
TYPE: 3,
|
|
84
|
-
URL: {
|
|
85
|
-
en: 'https://www.pestana.com/en/contents/pgc/pgc-regulation',
|
|
86
|
-
es: 'https://www.pestana.com/es/contents/pgc/pgc-reglamento',
|
|
87
|
-
de: 'https://www.pestana.com/de/contents/pgc/pgc-regulierung',
|
|
88
|
-
fr: 'https://www.pestana.com/fr/contents/pgc/pgc-reglement',
|
|
89
|
-
it: 'https://www.pestana.com/it/contents/pgc/pgc-regolazione',
|
|
90
|
-
pt: 'https://www.pestana.com/pt/contents/pgc/pgc-regulamento',
|
|
91
|
-
ru: 'https://www.pestana.com/ru/contents/pgc/pgc-regulation',
|
|
92
|
-
nl: 'https://www.pestana.com/en/contents/pgc/pgc-regulation'
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
const KEY_HASH = exports.KEY_HASH = 'm14357';
|
|
96
|
-
const UNIT = exports.UNIT = {
|
|
97
|
-
imperial: {
|
|
98
|
-
bed: 'inches',
|
|
99
|
-
size: 'q ft'
|
|
100
|
-
},
|
|
101
|
-
metric: {
|
|
102
|
-
bed: 'cm',
|
|
103
|
-
size: 'm²'
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const VALID = exports.VALID = 'VALID';
|
|
107
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["SINGLE","DOUBLE","BED_DISPOSITION","exports","ONE_SINGLE","amount","type","ONE_DOUBLE","TWO_SINGLES","TWO_DOUBLES","THREE_SINGLES","ONE_DOUBLE_ONE_SINGLE","FOUR_SINGLES","ONE_DOUBLE_TWO_SINGLES","FIVE_SINGLES","ONE_DOUBLE_THREE_SINGLES","TWO_DOUBLES_ONE_SINGLE","MORE_THAN_FIVE_BEDS","NO_BED","BED_TYPE","CURRENCIES_WITHOUT_DECIMALS","DEFAULT_LANGUAGE","EXTERNAL","ID","TYPE","URL","en","es","de","fr","it","pt","ru","nl","KEY_HASH","UNIT","imperial","bed","size","metric","VALID"],"sources":["../../../src/services/Rates/constants.js"],"sourcesContent":["const SINGLE = 1;\nconst DOUBLE = 2;\n\nconst BED_DISPOSITION = {\n ONE_SINGLE: [{ amount: 1, type: SINGLE }],\n ONE_DOUBLE: [{ amount: 1, type: DOUBLE }],\n TWO_SINGLES: [{ amount: 2, type: SINGLE }],\n TWO_DOUBLES: [{ amount: 2, type: DOUBLE }],\n THREE_SINGLES: [{ amount: 3, type: SINGLE }],\n ONE_DOUBLE_ONE_SINGLE: [\n { amount: 1, type: DOUBLE },\n { amount: 1, type: SINGLE },\n ],\n FOUR_SINGLES: [{ amount: 4, type: SINGLE }],\n ONE_DOUBLE_TWO_SINGLES: [\n { amount: 1, type: DOUBLE },\n { amount: 2, type: SINGLE },\n ],\n FIVE_SINGLES: [{ amount: 5, type: SINGLE }],\n ONE_DOUBLE_THREE_SINGLES: [\n { amount: 1, type: DOUBLE },\n { amount: 3, type: SINGLE },\n ],\n TWO_DOUBLES_ONE_SINGLE: [\n { amount: 2, type: DOUBLE },\n { amount: 1, type: SINGLE },\n ],\n MORE_THAN_FIVE_BEDS: [\n { amount: 6, type: DOUBLE },\n { amount: 6, type: SINGLE },\n ],\n NO_BED: [],\n};\n\nconst BED_TYPE = { SINGLE, DOUBLE };\n\nconst CURRENCIES_WITHOUT_DECIMALS = ['KRW', 'JPY', 'IDR', 'ISK'];\n\nconst DEFAULT_LANGUAGE = 'en';\n\nconst EXTERNAL = {\n ID: [\n '100377454',\n '100377444',\n '100378056',\n '100378057',\n '100378060',\n '100378062',\n '100378058',\n '100378059',\n '100378061',\n '100378063',\n '100378102',\n '100378108',\n '100378106',\n '100377194',\n '100378246',\n '100378209',\n '100378249',\n '100378315',\n '100378316',\n '100378317',\n '100378318',\n '100378319',\n '100378320',\n '100378321',\n '100378322',\n '100378323',\n '100378324',\n '100378325',\n '100378326',\n '100378327',\n '100378328',\n '100378329',\n '100378245',\n '100378242',\n '100378243',\n '100378241',\n '100378244',\n '100378385',\n '100378386',\n '100378472',\n '100378473',\n '100378474',\n '100378475',\n '100378476',\n '100378477',\n '100378478',\n '100378384',\n '100378563',\n '100378562',\n '100378559',\n '100378323',\n '100378556',\n '100378558',\n '100378555',\n '100378557',\n '100378553',\n '100378561',\n '100378556',\n '100378599',\n '100378565',\n '100378596',\n '100378561',\n '100378604',\n '100378590',\n '100378591',\n '100378597',\n '100378592',\n '100378593',\n '100378614',\n '100378606',\n '100378598',\n '100378601',\n '100378602',\n '100378600',\n '100378594',\n '100378605',\n '100378603',\n '100378607',\n '100378608',\n '100378609',\n '100378610',\n '100378612',\n '100378611',\n '100378613',\n '100378677',\n '100378589',\n '100378564',\n '100379044',\n ],\n TYPE: 3,\n URL: {\n en: 'https://www.pestana.com/en/contents/pgc/pgc-regulation',\n es: 'https://www.pestana.com/es/contents/pgc/pgc-reglamento',\n de: 'https://www.pestana.com/de/contents/pgc/pgc-regulierung',\n fr: 'https://www.pestana.com/fr/contents/pgc/pgc-reglement',\n it: 'https://www.pestana.com/it/contents/pgc/pgc-regolazione',\n pt: 'https://www.pestana.com/pt/contents/pgc/pgc-regulamento',\n ru: 'https://www.pestana.com/ru/contents/pgc/pgc-regulation',\n nl: 'https://www.pestana.com/en/contents/pgc/pgc-regulation',\n },\n};\n\nconst KEY_HASH = 'm14357';\n\nconst UNIT = {\n imperial: { bed: 'inches', size: 'q ft' },\n metric: { bed: 'cm', size: 'm²' },\n};\n\nconst VALID = 'VALID';\n\nexport { BED_DISPOSITION, BED_TYPE, CURRENCIES_WITHOUT_DECIMALS, DEFAULT_LANGUAGE, EXTERNAL, KEY_HASH, UNIT, VALID };\n"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAG,CAAC;AAChB,MAAMC,MAAM,GAAG,CAAC;AAEhB,MAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EACtBE,UAAU,EAAE,CAAC;IAAEC,MAAM,EAAE,CAAC;IAAEC,IAAI,EAAEN;E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EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,CACZ;EACDC,IAAI,EAAE,CAAC;EACPC,GAAG,EAAE;IACHC,EAAE,EAAE,wDAAwD;IAC5DC,EAAE,EAAE,wDAAwD;IAC5DC,EAAE,EAAE,yDAAyD;IAC7DC,EAAE,EAAE,uDAAuD;IAC3DC,EAAE,EAAE,yDAAyD;IAC7DC,EAAE,EAAE,yDAAyD;IAC7DC,EAAE,EAAE,wDAAwD;IAC5DC,EAAE,EAAE;EACN;AACF,CAAC;AAED,MAAMC,QAAQ,GAAA/B,OAAA,CAAA+B,QAAA,GAAG,QAAQ;AAEzB,MAAMC,IAAI,GAAAhC,OAAA,CAAAgC,IAAA,GAAG;EACXC,QAAQ,EAAE;IAAEC,GAAG,EAAE,QAAQ;IAAEC,IAAI,EAAE;EAAO,CAAC;EACzCC,MAAM,EAAE;IAAEF,GAAG,EAAE,IAAI;IAAEC,IAAI,EAAE;EAAK;AAClC,CAAC;AAED,MAAME,KAAK,GAAArC,OAAA,CAAAqC,KAAA,GAAG,OAAO"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.get = void 0;
|
|
7
|
-
var _dataSources = require("@mirai/data-sources");
|
|
8
|
-
var _services = require("@mirai/services");
|
|
9
|
-
var _jsSha = _interopRequireDefault(require("js-sha1"));
|
|
10
|
-
var _constants = require("./constants");
|
|
11
|
-
var _helpers = require("./helpers");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
/* eslint-disable no-async-promise-executor */
|
|
14
|
-
|
|
15
|
-
const {
|
|
16
|
-
DOUBLE,
|
|
17
|
-
SINGLE
|
|
18
|
-
} = _constants.BED_TYPE;
|
|
19
|
-
const get = function () {
|
|
20
|
-
let {
|
|
21
|
-
clubDiscount: applyClubDiscount,
|
|
22
|
-
currency: userCurrency,
|
|
23
|
-
locale,
|
|
24
|
-
session: {
|
|
25
|
-
authorization
|
|
26
|
-
} = {},
|
|
27
|
-
...others
|
|
28
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
29
|
-
return new Promise(async (resolve, reject) => {
|
|
30
|
-
var _club$clubLogin;
|
|
31
|
-
if (!userCurrency || !locale) return reject();
|
|
32
|
-
const {
|
|
33
|
-
idtokenprovider: id,
|
|
34
|
-
checkin,
|
|
35
|
-
nights,
|
|
36
|
-
club: {
|
|
37
|
-
authentication: {
|
|
38
|
-
type
|
|
39
|
-
} = {}
|
|
40
|
-
} = {}
|
|
41
|
-
} = others;
|
|
42
|
-
const language = locale === null || locale === void 0 ? void 0 : locale.split('-')[0];
|
|
43
|
-
const params = Object.entries({
|
|
44
|
-
applyClubDiscount,
|
|
45
|
-
currency: userCurrency,
|
|
46
|
-
...others,
|
|
47
|
-
accessClubToken: authorization,
|
|
48
|
-
cid: (0, _jsSha.default)("".concat(_constants.KEY_HASH, "-").concat(id, "-").concat(checkin, "-").concat(nights)),
|
|
49
|
-
lang: language,
|
|
50
|
-
...(0, _helpers.parseExternalToken)(others)
|
|
51
|
-
}).filter(_ref => {
|
|
52
|
-
let [, value] = _ref;
|
|
53
|
-
return value !== undefined;
|
|
54
|
-
});
|
|
55
|
-
const response = await (0, _dataSources.request)({
|
|
56
|
-
hostname: process.env.SERVICE_BOOKING,
|
|
57
|
-
endpoint: "/request_availability_v2.json?".concat(new URLSearchParams(params)),
|
|
58
|
-
//TODO: back have to change the endpoint for don`t have remove this headers
|
|
59
|
-
headers: {
|
|
60
|
-
'Content-Type': undefined,
|
|
61
|
-
'X-Requested-With': undefined
|
|
62
|
-
}
|
|
63
|
-
}).catch(reject);
|
|
64
|
-
if (!response || response.result === 'EXCEPTION') return reject({
|
|
65
|
-
error: 'Upss, something bad happened!'
|
|
66
|
-
}); //TODO
|
|
67
|
-
|
|
68
|
-
const {
|
|
69
|
-
club,
|
|
70
|
-
availabilitySuggestions: availability,
|
|
71
|
-
currencyCode: hotelCurrency,
|
|
72
|
-
firstChildInterval = {},
|
|
73
|
-
measureUnit: unit,
|
|
74
|
-
messages: {
|
|
75
|
-
availabilityMessage: {
|
|
76
|
-
notOccupationRequested: notOccupation
|
|
77
|
-
} = {}
|
|
78
|
-
} = {},
|
|
79
|
-
roomTypes,
|
|
80
|
-
taxesInformation,
|
|
81
|
-
vatIncluded: taxes
|
|
82
|
-
} = response;
|
|
83
|
-
if (notOccupation || availability !== null) {
|
|
84
|
-
// ! TODO spread availability object (from, to, disabledDates)
|
|
85
|
-
return reject({
|
|
86
|
-
notOccupation,
|
|
87
|
-
notCalendar: availability !== null,
|
|
88
|
-
availability
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
const currency = userCurrency || hotelCurrency;
|
|
92
|
-
await _services.ServiceCurrency.exchange(currency);
|
|
93
|
-
const items = Object.values(roomTypes);
|
|
94
|
-
resolve({
|
|
95
|
-
clubConditions: _constants.EXTERNAL.ID.includes(id) ? _constants.EXTERNAL.URL[language] || _constants.EXTERNAL.URL[_constants.DEFAULT_LANGUAGE] : undefined,
|
|
96
|
-
infantAge: firstChildInterval === null || firstChildInterval === void 0 ? void 0 : firstChildInterval.lowerBound,
|
|
97
|
-
items: items.map(function () {
|
|
98
|
-
let {
|
|
99
|
-
amountAvailable: availability,
|
|
100
|
-
name,
|
|
101
|
-
newInfoRoom: info = {},
|
|
102
|
-
occupationOptions = {}
|
|
103
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
104
|
-
const {
|
|
105
|
-
description,
|
|
106
|
-
roomTypeInfo: {
|
|
107
|
-
bedDistributions: bedType = [],
|
|
108
|
-
galleryMedia: {
|
|
109
|
-
url3D,
|
|
110
|
-
video: urlVideo
|
|
111
|
-
} = {},
|
|
112
|
-
photos,
|
|
113
|
-
roomSize: size
|
|
114
|
-
} = {}
|
|
115
|
-
} = info;
|
|
116
|
-
const {
|
|
117
|
-
occupationQuantities: {
|
|
118
|
-
numAdults: adults = 0,
|
|
119
|
-
totalChildren: children = 0
|
|
120
|
-
} = {},
|
|
121
|
-
rates
|
|
122
|
-
} = Object.values(occupationOptions)[0] || {};
|
|
123
|
-
return {
|
|
124
|
-
amenities: (0, _helpers.parseAmenities)(info),
|
|
125
|
-
availability,
|
|
126
|
-
bedDisposition: bedType.map(type => _constants.BED_DISPOSITION[type]),
|
|
127
|
-
bedTypes: bedType.reduce((result, next) => {
|
|
128
|
-
_constants.BED_DISPOSITION[next].forEach(function () {
|
|
129
|
-
let {
|
|
130
|
-
amount,
|
|
131
|
-
type
|
|
132
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
133
|
-
if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;
|
|
134
|
-
});
|
|
135
|
-
return result;
|
|
136
|
-
}, []),
|
|
137
|
-
...(0, _helpers.parseBoards)({
|
|
138
|
-
currency,
|
|
139
|
-
hotelCurrency,
|
|
140
|
-
rates,
|
|
141
|
-
taxes
|
|
142
|
-
}),
|
|
143
|
-
description,
|
|
144
|
-
images: photos === null || photos === void 0 ? void 0 : photos.map(function () {
|
|
145
|
-
let {
|
|
146
|
-
photoAltDescription: alt,
|
|
147
|
-
urlLarge: large,
|
|
148
|
-
urlMediumRect: thumbnail
|
|
149
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
150
|
-
return {
|
|
151
|
-
alt,
|
|
152
|
-
large,
|
|
153
|
-
thumbnail
|
|
154
|
-
};
|
|
155
|
-
}),
|
|
156
|
-
name,
|
|
157
|
-
maxOccupation: adults + children,
|
|
158
|
-
media: url3D || urlVideo ? {
|
|
159
|
-
url3D,
|
|
160
|
-
urlVideo
|
|
161
|
-
} : undefined,
|
|
162
|
-
size: size ? "".concat(size, " ").concat(_constants.UNIT[unit].size) : undefined
|
|
163
|
-
};
|
|
164
|
-
}),
|
|
165
|
-
externalLogoff: authorization && type === _constants.EXTERNAL.TYPE && (club === null || club === void 0 ? void 0 : (_club$clubLogin = club.clubLogin) === null || _club$clubLogin === void 0 ? void 0 : _club$clubLogin.status) !== _constants.VALID,
|
|
166
|
-
taxes: !taxes ? taxesInformation.replace(/\r?\n|\r/g, '') : undefined
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
exports.get = get;
|
|
171
|
-
//# sourceMappingURL=get.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","names":["_dataSources","require","_services","_jsSha","_interopRequireDefault","_constants","_helpers","obj","__esModule","default","DOUBLE","SINGLE","BED_TYPE","get","clubDiscount","applyClubDiscount","currency","userCurrency","locale","session","authorization","others","arguments","length","undefined","Promise","resolve","reject","_club$clubLogin","idtokenprovider","id","checkin","nights","club","authentication","type","language","split","params","Object","entries","accessClubToken","cid","sha1","concat","KEY_HASH","lang","parseExternalToken","filter","_ref","value","response","request","hostname","process","env","SERVICE_BOOKING","endpoint","URLSearchParams","headers","catch","result","error","availabilitySuggestions","availability","currencyCode","hotelCurrency","firstChildInterval","measureUnit","unit","messages","availabilityMessage","notOccupationRequested","notOccupation","roomTypes","taxesInformation","vatIncluded","taxes","notCalendar","ServiceCurrency","exchange","items","values","clubConditions","EXTERNAL","ID","includes","URL","DEFAULT_LANGUAGE","infantAge","lowerBound","map","amountAvailable","name","newInfoRoom","info","occupationOptions","description","roomTypeInfo","bedDistributions","bedType","galleryMedia","url3D","video","urlVideo","photos","roomSize","size","occupationQuantities","numAdults","adults","totalChildren","children","rates","amenities","parseAmenities","bedDisposition","BED_DISPOSITION","bedTypes","reduce","next","forEach","amount","parseBoards","images","photoAltDescription","alt","urlLarge","large","urlMediumRect","thumbnail","maxOccupation","media","UNIT","externalLogoff","TYPE","clubLogin","status","VALID","replace","exports"],"sources":["../../../src/services/Rates/get.js"],"sourcesContent":["/* eslint-disable no-async-promise-executor */\nimport { request } from '@mirai/data-sources';\nimport { ServiceCurrency } from '@mirai/services';\nimport sha1 from 'js-sha1';\n\nimport { BED_DISPOSITION, BED_TYPE, DEFAULT_LANGUAGE, EXTERNAL, KEY_HASH, UNIT, VALID } from './constants';\nimport { parseAmenities, parseBoards, parseExternalToken } from './helpers';\n\nconst { DOUBLE, SINGLE } = BED_TYPE;\n\nexport const get = ({\n clubDiscount: applyClubDiscount,\n currency: userCurrency,\n locale,\n session: { authorization } = {},\n ...others\n} = {}) =>\n new Promise(async (resolve, reject) => {\n if (!userCurrency || !locale) return reject();\n\n const { idtokenprovider: id, checkin, nights, club: { authentication: { type } = {} } = {} } = others;\n const language = locale?.split('-')[0];\n const params = Object.entries({\n applyClubDiscount,\n currency: userCurrency,\n ...others,\n accessClubToken: authorization,\n cid: sha1(`${KEY_HASH}-${id}-${checkin}-${nights}`),\n lang: language,\n ...parseExternalToken(others),\n }).filter(([, value]) => value !== undefined);\n\n const response = await request({\n hostname: process.env.SERVICE_BOOKING,\n endpoint: `/request_availability_v2.json?${new URLSearchParams(params)}`,\n //TODO: back have to change the endpoint for don`t have remove this headers\n headers: { 'Content-Type': undefined, 'X-Requested-With': undefined },\n }).catch(reject);\n\n if (!response || response.result === 'EXCEPTION') return reject({ error: 'Upss, something bad happened!' }); //TODO\n\n const {\n club,\n availabilitySuggestions: availability,\n currencyCode: hotelCurrency,\n firstChildInterval = {},\n measureUnit: unit,\n messages: { availabilityMessage: { notOccupationRequested: notOccupation } = {} } = {},\n roomTypes,\n taxesInformation,\n vatIncluded: taxes,\n } = response;\n\n if (notOccupation || availability !== null) {\n // ! TODO spread availability object (from, to, disabledDates)\n return reject({ notOccupation, notCalendar: availability !== null, availability });\n }\n\n const currency = userCurrency || hotelCurrency;\n\n await ServiceCurrency.exchange(currency);\n const items = Object.values(roomTypes);\n\n resolve({\n clubConditions: EXTERNAL.ID.includes(id) ? EXTERNAL.URL[language] || EXTERNAL.URL[DEFAULT_LANGUAGE] : undefined,\n infantAge: firstChildInterval?.lowerBound,\n items: items.map(\n ({ amountAvailable: availability, name, newInfoRoom: info = {}, occupationOptions = {} } = {}) => {\n const {\n description,\n roomTypeInfo: {\n bedDistributions: bedType = [],\n galleryMedia: { url3D, video: urlVideo } = {},\n photos,\n roomSize: size,\n } = {},\n } = info;\n const { occupationQuantities: { numAdults: adults = 0, totalChildren: children = 0 } = {}, rates } =\n Object.values(occupationOptions)[0] || {};\n\n return {\n amenities: parseAmenities(info),\n availability,\n bedDisposition: bedType.map((type) => BED_DISPOSITION[type]),\n bedTypes: bedType.reduce((result, next) => {\n BED_DISPOSITION[next].forEach(({ amount, type } = {}) => {\n if ([DOUBLE, SINGLE].includes(type) && amount > 0) result[result.length ? 1 : 0] = type;\n });\n\n return result;\n }, []),\n ...parseBoards({ currency, hotelCurrency, rates, taxes }),\n description,\n images: photos?.map(({ photoAltDescription: alt, urlLarge: large, urlMediumRect: thumbnail } = {}) => ({\n alt,\n large,\n thumbnail,\n })),\n name,\n maxOccupation: adults + children,\n media: url3D || urlVideo ? { url3D, urlVideo } : undefined,\n size: size ? `${size} ${UNIT[unit].size}` : undefined,\n };\n },\n ),\n externalLogoff: authorization && type === EXTERNAL.TYPE && club?.clubLogin?.status !== VALID,\n taxes: !taxes ? taxesInformation.replace(/\\r?\\n|\\r/g, '') : undefined,\n });\n });\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAA4E,SAAAG,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAA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,MAAA,CAAIyF,eAAI,CAAChE,IAAI,CAAC,CAACsC,IAAI,IAAKnF;QAC9C,CAAC;MACH,CACF,CAAC;MACD8G,cAAc,EAAElH,aAAa,IAAIe,IAAI,KAAKiD,mBAAQ,CAACmD,IAAI,IAAI,CAAAtG,IAAI,aAAJA,IAAI,wBAAAL,eAAA,GAAJK,IAAI,CAAEuG,SAAS,cAAA5G,eAAA,uBAAfA,eAAA,CAAiB6G,MAAM,MAAKC,gBAAK;MAC5F7D,KAAK,EAAE,CAACA,KAAK,GAAGF,gBAAgB,CAACgE,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,GAAGnH;IAC9D,CAAC,CAAC;EACJ,CAAC,CAAC;AAAA;AAACoH,OAAA,CAAA/H,GAAA,GAAAA,GAAA"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getIncrements = void 0;
|
|
7
|
-
const getIncrements = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
cancellations,
|
|
10
|
-
boards,
|
|
11
|
-
rates
|
|
12
|
-
} = _ref;
|
|
13
|
-
const sortedBoards = boards.sort((a, b) => a.price - b.price);
|
|
14
|
-
return {
|
|
15
|
-
cancellations: cancellations.map(_ref2 => {
|
|
16
|
-
let {
|
|
17
|
-
id,
|
|
18
|
-
...others
|
|
19
|
-
} = _ref2;
|
|
20
|
-
const lowerPrice = sortedBoards[0].price;
|
|
21
|
-
const price = sortedBoards.filter(_ref3 => {
|
|
22
|
-
let {
|
|
23
|
-
cancellationId
|
|
24
|
-
} = _ref3;
|
|
25
|
-
return cancellationId === id;
|
|
26
|
-
})[0].price;
|
|
27
|
-
return {
|
|
28
|
-
id,
|
|
29
|
-
...others,
|
|
30
|
-
price: price - lowerPrice
|
|
31
|
-
};
|
|
32
|
-
}).sort((a, b) => a.price - b.price),
|
|
33
|
-
rates: rates.map(_ref4 => {
|
|
34
|
-
let {
|
|
35
|
-
id,
|
|
36
|
-
cancellationId,
|
|
37
|
-
...others
|
|
38
|
-
} = _ref4;
|
|
39
|
-
const lowerPrice = sortedBoards.filter(board => cancellationId === board.cancellationId)[0].price;
|
|
40
|
-
const price = sortedBoards.filter(_ref5 => {
|
|
41
|
-
let {
|
|
42
|
-
rateId
|
|
43
|
-
} = _ref5;
|
|
44
|
-
return rateId === id;
|
|
45
|
-
})[0].price;
|
|
46
|
-
return {
|
|
47
|
-
id,
|
|
48
|
-
cancellationId,
|
|
49
|
-
...others,
|
|
50
|
-
price: price - lowerPrice
|
|
51
|
-
};
|
|
52
|
-
}).sort((a, b) => a.price - b.price),
|
|
53
|
-
boards: boards.map(board => {
|
|
54
|
-
const lowerPrice = sortedBoards.filter(_ref6 => {
|
|
55
|
-
let {
|
|
56
|
-
cancellationId,
|
|
57
|
-
rateId
|
|
58
|
-
} = _ref6;
|
|
59
|
-
return cancellationId === board.cancellationId && rateId === board.rateId;
|
|
60
|
-
})[0].price;
|
|
61
|
-
return {
|
|
62
|
-
...board,
|
|
63
|
-
increment: board.price - lowerPrice
|
|
64
|
-
};
|
|
65
|
-
}).sort((a, b) => a.increment - b.increment)
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
exports.getIncrements = getIncrements;
|
|
69
|
-
//# sourceMappingURL=getIncrements.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getIncrements.js","names":["getIncrements","_ref","cancellations","boards","rates","sortedBoards","sort","a","b","price","map","_ref2","id","others","lowerPrice","filter","_ref3","cancellationId","_ref4","board","_ref5","rateId","_ref6","increment","exports"],"sources":["../../../../src/services/Rates/helpers/getIncrements.js"],"sourcesContent":["export const getIncrements = ({ cancellations, boards, rates }) => {\n const sortedBoards = boards.sort((a, b) => a.price - b.price);\n\n return {\n cancellations: cancellations\n .map(({ id, ...others }) => {\n const lowerPrice = sortedBoards[0].price;\n const price = sortedBoards.filter(({ cancellationId }) => cancellationId === id)[0].price;\n\n return {\n id,\n ...others,\n price: price - lowerPrice,\n };\n })\n .sort((a, b) => a.price - b.price),\n rates: rates\n .map(({ id, cancellationId, ...others }) => {\n const lowerPrice = sortedBoards.filter((board) => cancellationId === board.cancellationId)[0].price;\n const price = sortedBoards.filter(({ rateId }) => rateId === id)[0].price;\n\n return {\n id,\n cancellationId,\n ...others,\n price: price - lowerPrice,\n };\n })\n .sort((a, b) => a.price - b.price),\n boards: boards\n .map((board) => {\n const lowerPrice = sortedBoards.filter(\n ({ cancellationId, rateId }) => cancellationId === board.cancellationId && rateId === board.rateId,\n )[0].price;\n\n return {\n ...board,\n increment: board.price - lowerPrice,\n };\n })\n .sort((a, b) => a.increment - b.increment),\n };\n};\n"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAGC,IAAA,IAAsC;EAAA,IAArC;IAAEC,aAAa;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAAH,IAAA;EAC5D,MAAMI,YAAY,GAAGF,MAAM,CAACG,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACE,KAAK,GAAGD,CAAC,CAACC,KAAK,CAAC;EAE7D,OAAO;IACLP,aAAa,EAAEA,aAAa,CACzBQ,GAAG,CAACC,KAAA,IAAuB;MAAA,IAAtB;QAAEC,EAAE;QAAE,GAAGC;MAAO,CAAC,GAAAF,KAAA;MACrB,MAAMG,UAAU,GAAGT,YAAY,CAAC,CAAC,CAAC,CAACI,KAAK;MACxC,MAAMA,KAAK,GAAGJ,YAAY,CAACU,MAAM,CAACC,KAAA;QAAA,IAAC;UAAEC;QAAe,CAAC,GAAAD,KAAA;QAAA,OAAKC,cAAc,KAAKL,EAAE;MAAA,EAAC,CAAC,CAAC,CAAC,CAACH,KAAK;MAEzF,OAAO;QACLG,EAAE;QACF,GAAGC,MAAM;QACTJ,KAAK,EAAEA,KAAK,GAAGK;MACjB,CAAC;IACH,CAAC,CAAC,CACDR,IAAI,CAAC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f,CAAC,CAACe,SAAS;EAC7C,CAAC;AACH,CAAC;AAACC,OAAA,CAAAxB,aAAA,GAAAA,aAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getPrice = void 0;
|
|
7
|
-
var _services = require("@mirai/services");
|
|
8
|
-
var _normalizePrice = require("./normalizePrice");
|
|
9
|
-
const getPrice = _ref => {
|
|
10
|
-
var _ref2;
|
|
11
|
-
let {
|
|
12
|
-
currency,
|
|
13
|
-
hotelCurrency,
|
|
14
|
-
normalize = true,
|
|
15
|
-
price: propPrice
|
|
16
|
-
} = _ref;
|
|
17
|
-
if (!propPrice) return;
|
|
18
|
-
const price = normalize ? (0, _normalizePrice.normalizePrice)(propPrice, hotelCurrency) : propPrice;
|
|
19
|
-
return +((_ref2 = currency !== hotelCurrency ? _services.ServiceCurrency.convert(currency, hotelCurrency, price, true) : price) === null || _ref2 === void 0 ? void 0 : _ref2.toFixed(2));
|
|
20
|
-
};
|
|
21
|
-
exports.getPrice = getPrice;
|
|
22
|
-
//# sourceMappingURL=getPrice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPrice.js","names":["_services","require","_normalizePrice","getPrice","_ref","_ref2","currency","hotelCurrency","normalize","price","propPrice","normalizePrice","ServiceCurrency","convert","toFixed","exports"],"sources":["../../../../src/services/Rates/helpers/getPrice.js"],"sourcesContent":["import { ServiceCurrency } from '@mirai/services';\n\nimport { normalizePrice } from './normalizePrice';\n\nexport const getPrice = ({ currency, hotelCurrency, normalize = true, price: propPrice }) => {\n if (!propPrice) return;\n\n const price = normalize ? normalizePrice(propPrice, hotelCurrency) : propPrice;\n\n return +(currency !== hotelCurrency ? ServiceCurrency.convert(currency, hotelCurrency, price, true) : price)?.toFixed(\n 2,\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAEO,MAAME,QAAQ,GAAGC,IAAA,IAAqE;EAAA,IAAAC,KAAA;EAAA,IAApE;IAAEC,QAAQ;IAAEC,aAAa;IAAEC,SAAS,GAAG,IAAI;IAAEC,KAAK,EAAEC;EAAU,CAAC,GAAAN,IAAA;EACtF,IAAI,CAACM,SAAS,EAAE;EAEhB,MAAMD,KAAK,GAAGD,SAAS,GAAG,IAAAG,8BAAc,EAACD,SAAS,EAAEH,aAAa,CAAC,GAAGG,SAAS;EAE9E,OAAO,GAAAL,KAAA,GAAEC,QAAQ,KAAKC,aAAa,GAAGK,yBAAe,CAACC,OAAO,CAACP,QAAQ,EAAEC,aAAa,EAAEE,KAAK,EAAE,IAAI,CAAC,GAAGA,KAAK,cAAAJ,KAAA,uBAAnGA,KAAA,CAAsGS,OAAO,CACnH,CACF,CAAC;AACH,CAAC;AAACC,OAAA,CAAAZ,QAAA,GAAAA,QAAA"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _getPrice = require("./getPrice");
|
|
7
|
-
Object.keys(_getPrice).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _getPrice[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _getPrice[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _normalizePrice = require("./normalizePrice");
|
|
18
|
-
Object.keys(_normalizePrice).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _normalizePrice[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _normalizePrice[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _parseAmenities = require("./parseAmenities");
|
|
29
|
-
Object.keys(_parseAmenities).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _parseAmenities[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _parseAmenities[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _parseBoards = require("./parseBoards");
|
|
40
|
-
Object.keys(_parseBoards).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _parseBoards[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _parseBoards[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _parseDiscount = require("./parseDiscount");
|
|
51
|
-
Object.keys(_parseDiscount).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _parseDiscount[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _parseDiscount[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _parseExternalToken = require("./parseExternalToken");
|
|
62
|
-
Object.keys(_parseExternalToken).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _parseExternalToken[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _parseExternalToken[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_getPrice","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_normalizePrice","_parseAmenities","_parseBoards","_parseDiscount","_parseExternalToken"],"sources":["../../../../src/services/Rates/helpers/index.js"],"sourcesContent":["export * from './getPrice';\nexport * from './normalizePrice';\nexport * from './parseAmenities';\nexport * from './parseBoards';\nexport * from './parseDiscount';\nexport * from './parseExternalToken';\n"],"mappings":";;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,SAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,SAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,SAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,eAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,eAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,eAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,eAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,eAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,eAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,k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GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,mBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.normalizePrice = void 0;
|
|
7
|
-
var _constants = require("../constants");
|
|
8
|
-
const normalizePrice = function (price) {
|
|
9
|
-
let currency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'EUR';
|
|
10
|
-
if (!price || typeof price !== 'number') return undefined;
|
|
11
|
-
const decimals = _constants.CURRENCIES_WITHOUT_DECIMALS.includes(currency) ? 0 : 2;
|
|
12
|
-
return +Number.parseFloat(price / Math.pow(10, decimals)).toFixed(decimals);
|
|
13
|
-
};
|
|
14
|
-
exports.normalizePrice = normalizePrice;
|
|
15
|
-
//# sourceMappingURL=normalizePrice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizePrice.js","names":["_constants","require","normalizePrice","price","currency","arguments","length","undefined","decimals","CURRENCIES_WITHOUT_DECIMALS","includes","Number","parseFloat","Math","pow","toFixed","exports"],"sources":["../../../../src/services/Rates/helpers/normalizePrice.js"],"sourcesContent":["import { CURRENCIES_WITHOUT_DECIMALS } from '../constants';\n\nexport const normalizePrice = (price, currency = 'EUR') => {\n if (!price || typeof price !== 'number') return undefined;\n\n const decimals = CURRENCIES_WITHOUT_DECIMALS.includes(currency) ? 0 : 2;\n\n return +Number.parseFloat(price / Math.pow(10, decimals)).toFixed(decimals);\n};\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,MAAMC,cAAc,GAAG,SAAAA,CAACC,KAAK,EAAuB;EAAA,IAArBC,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EACpD,IAAI,CAACF,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE,OAAOI,SAAS;EAEzD,MAAMC,QAAQ,GAAGC,sCAA2B,CAACC,QAAQ,CAACN,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;EAEvE,OAAO,CAACO,MAAM,CAACC,UAAU,CAACT,KAAK,GAAGU,IAAI,CAACC,GAAG,CAAC,EAAE,EAAEN,QAAQ,CAAC,CAAC,CAACO,OAAO,CAACP,QAAQ,CAAC;AAC7E,CAAC;AAACQ,OAAA,CAAAd,cAAA,GAAAA,cAAA"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.parseAmenities = void 0;
|
|
7
|
-
const parseAmenities = function () {
|
|
8
|
-
let {
|
|
9
|
-
bathroomServicesIdsAndTranslation: bathroomAmenities = {},
|
|
10
|
-
installationServicesIdsAndTranslation: generalAmenities = {},
|
|
11
|
-
roomTypeInfo: {
|
|
12
|
-
bathroomServices: bathroomAmenitiesOrdered = [],
|
|
13
|
-
featuredInstallations: {
|
|
14
|
-
installationsCustomized: customizedAmenities = [],
|
|
15
|
-
installationsStandard: featuredAmenities = {},
|
|
16
|
-
order: featuredAmenitiesOrdered = []
|
|
17
|
-
} = {},
|
|
18
|
-
installationServices: generalAmenitiesOrdered = []
|
|
19
|
-
} = {}
|
|
20
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21
|
-
const amenities = [];
|
|
22
|
-
amenities.push(...featuredAmenitiesOrdered.map(function () {
|
|
23
|
-
var _customizedAmenities$;
|
|
24
|
-
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
25
|
-
return {
|
|
26
|
-
highlight: true,
|
|
27
|
-
id: parseInt(id.replace(/\w_/g, '')),
|
|
28
|
-
text: featuredAmenities[id] || ((_customizedAmenities$ = customizedAmenities[id]) === null || _customizedAmenities$ === void 0 ? void 0 : _customizedAmenities$.name)
|
|
29
|
-
};
|
|
30
|
-
}));
|
|
31
|
-
amenities.push(...generalAmenitiesOrdered.filter(id => !amenities.some(function () {
|
|
32
|
-
var _generalAmenities$id, _generalAmenities$id$;
|
|
33
|
-
let {
|
|
34
|
-
id: amenity,
|
|
35
|
-
text = ''
|
|
36
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
37
|
-
return amenity == id || ((_generalAmenities$id = generalAmenities[id]) === null || _generalAmenities$id === void 0 ? void 0 : (_generalAmenities$id$ = _generalAmenities$id.name) === null || _generalAmenities$id$ === void 0 ? void 0 : _generalAmenities$id$.trim()) === (text === null || text === void 0 ? void 0 : text.trim());
|
|
38
|
-
})).map(id => ({
|
|
39
|
-
id,
|
|
40
|
-
...generalAmenities[id]
|
|
41
|
-
})).map(function () {
|
|
42
|
-
let {
|
|
43
|
-
id,
|
|
44
|
-
name: text,
|
|
45
|
-
onlyForThisRoomType: exclusive
|
|
46
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
47
|
-
return {
|
|
48
|
-
exclusive,
|
|
49
|
-
id,
|
|
50
|
-
text
|
|
51
|
-
};
|
|
52
|
-
}));
|
|
53
|
-
amenities.push(...bathroomAmenitiesOrdered.filter(id => !amenities.some(function () {
|
|
54
|
-
var _bathroomAmenities$id, _bathroomAmenities$id2;
|
|
55
|
-
let {
|
|
56
|
-
id: amenity,
|
|
57
|
-
text = ''
|
|
58
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
59
|
-
return amenity == id || ((_bathroomAmenities$id = bathroomAmenities[id]) === null || _bathroomAmenities$id === void 0 ? void 0 : (_bathroomAmenities$id2 = _bathroomAmenities$id.name) === null || _bathroomAmenities$id2 === void 0 ? void 0 : _bathroomAmenities$id2.trim()) === text.trim();
|
|
60
|
-
})).map(id => ({
|
|
61
|
-
id,
|
|
62
|
-
...bathroomAmenities[id]
|
|
63
|
-
})).map(function () {
|
|
64
|
-
let {
|
|
65
|
-
id,
|
|
66
|
-
name: text,
|
|
67
|
-
onlyForThisRoomType: exclusive
|
|
68
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
69
|
-
return {
|
|
70
|
-
exclusive,
|
|
71
|
-
id,
|
|
72
|
-
text
|
|
73
|
-
};
|
|
74
|
-
}));
|
|
75
|
-
return amenities.map(_ref => {
|
|
76
|
-
let {
|
|
77
|
-
text = '',
|
|
78
|
-
...others
|
|
79
|
-
} = _ref;
|
|
80
|
-
return {
|
|
81
|
-
...others,
|
|
82
|
-
text: text.replace(/\r?\n|\r/g, '').trim()
|
|
83
|
-
};
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
exports.parseAmenities = parseAmenities;
|
|
87
|
-
//# sourceMappingURL=parseAmenities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseAmenities.js","names":["parseAmenities","bathroomServicesIdsAndTranslation","bathroomAmenities","installationServicesIdsAndTranslation","generalAmenities","roomTypeInfo","bathroomServices","bathroomAmenitiesOrdered","featuredInstallations","installationsCustomized","customizedAmenities","installationsStandard","featuredAmenities","order","featuredAmenitiesOrdered","installationServices","generalAmenitiesOrdered","arguments","length","undefined","amenities","push","map","_customizedAmenities$","id","highlight","parseInt","replace","text","name","filter","some","_generalAmenities$id","_generalAmenities$id$","amenity","trim","onlyForThisRoomType","exclusive","_bathroomAmenities$id","_bathroomAmenities$id2","_ref","others","exports"],"sources":["../../../../src/services/Rates/helpers/parseAmenities.js"],"sourcesContent":["export const parseAmenities = ({\n bathroomServicesIdsAndTranslation: bathroomAmenities = {},\n installationServicesIdsAndTranslation: generalAmenities = {},\n roomTypeInfo: {\n bathroomServices: bathroomAmenitiesOrdered = [],\n featuredInstallations: {\n installationsCustomized: customizedAmenities = [],\n installationsStandard: featuredAmenities = {},\n order: featuredAmenitiesOrdered = [],\n } = {},\n installationServices: generalAmenitiesOrdered = [],\n } = {},\n} = {}) => {\n const amenities = [];\n\n amenities.push(\n ...featuredAmenitiesOrdered.map((id = '') => ({\n highlight: true,\n id: parseInt(id.replace(/\\w_/g, '')),\n text: featuredAmenities[id] || customizedAmenities[id]?.name,\n })),\n );\n\n amenities.push(\n ...generalAmenitiesOrdered\n .filter(\n (id) =>\n !amenities.some(\n ({ id: amenity, text = '' } = {}) => amenity == id || generalAmenities[id]?.name?.trim() === text?.trim(),\n ),\n )\n .map((id) => ({ id, ...generalAmenities[id] }))\n .map(({ id, name: text, onlyForThisRoomType: exclusive } = {}) => ({ exclusive, id, text })),\n );\n\n amenities.push(\n ...bathroomAmenitiesOrdered\n .filter(\n (id) =>\n !amenities.some(\n ({ id: amenity, text = '' } = {}) => amenity == id || bathroomAmenities[id]?.name?.trim() === text.trim(),\n ),\n )\n .map((id) => ({ id, ...bathroomAmenities[id] }))\n .map(({ id, name: text, onlyForThisRoomType: exclusive } = {}) => ({ exclusive, id, text })),\n );\n\n return amenities.map(({ text = '', ...others }) => ({ ...others, text: text.replace(/\\r?\\n|\\r/g, '').trim() }));\n};\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAG,SAAAA,CAAA,EAYnB;EAAA,IAZoB;IAC7BC,iCAAiC,EAAEC,iBAAiB,GAAG,CAAC,CAAC;IACzDC,qCAAqC,EAAEC,gBAAgB,GAAG,CAAC,CAAC;IAC5DC,YAAY,EAAE;MACZC,gBAAgB,EAAEC,wBAAwB,GAAG,EAAE;MAC/CC,qBAAqB,EAAE;QACrBC,uBAAuB,EAAEC,mBAAmB,GAAG,EAAE;QACjDC,qBAAqB,EAAEC,iBAAiB,GAAG,CAAC,CAAC;QAC7CC,KAAK,EAAEC,wBAAwB,GAAG;MACpC,CAAC,GAAG,CAAC,CAAC;MACNC,oBAAoB,EAAEC,uBAAuB,GAAG;IAClD,CAAC,GAAG,CAAC;EACP,CAAC,GAAAC,SAAA,CAAAC,MAAA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