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AA+B,wDAAwD,MAAQ,iCAAiC,aAAe,wCAAwC,YAAc,uCAAuC,WAAa,sCAAsC,QAAU,mCAAmC,SAAW,oCAAoC,kBAAoB,6CAA6C,iBAAmB,4CAA4C,SAAW,oCAAoC,QAAU,mCAAmC,OAAS,kCAAkC,YAAc,uCAAuC,KAAO,gCAAgC,WAAa,sCAAsC,sBAAwB,iDAAiD,mBAAqB,8CAA8C,uBAAyB,kDAAkD,mBAAqB,8CAA8C,iBAAmB,4CAA4C,cAAgB,yCAAyC,mBAAqB,8CAA8C,kBAAoB,6CAA6C,kBAAoB,6CAA6C,uBAAyB,kDAAkD,sBAAwB,iDAAiD,cAAgB,yCAAyC,mBAAqB,8CAA8C,kBAAoB,6CAA6C,YAAc,uCAAuC,iBAAmB,4CAA4C,gBAAkB,2CAA2C,kBAAoB,6CAA6C,mBAAqB,8C","sources":["webpack://hichee/./app/libs/components/Phone/Phone.jsx","webpack://hichee/./app/libs/utils/vendor/photoswipe/PswpMagicSearchBadge.jsx","webpack://hichee/./app/libs/utils/vendor/photoswipe/galleries.js","webpack://hichee/./app/libs/utils/vendor/photoswipe/photoswipe-ui-default.js","webpack://hichee/./app/rescript/api/requesters/listing/SyncListingWebSockets.bs.js","webpack://hichee/./app/rescript/api/requests/CheckAwsImageHandlerV5Status.bs.js","webpack://hichee/./app/rescript/bundles/booking-calculators-show/components/Charts/BookingCalculatorLineChart.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvBlock/SlvBlock.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvClickableItem/SlvClickableItem.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvHtmlText/SlvHtmlText.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvSharePricingModal/SlvEmailComparisonButton.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvSharePricingModal/SlvQuote.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvSharePricingModal/SlvSharePricingContainer.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvSharePricingModal/SlvSharePricingModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvTable/SlvTable.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Ads/SlvAds.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksFailureModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksMessages.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksModalForm.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksReportModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksSuccessModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Amenities/SlvAmenities.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/AreYouTheOwner/SlvAreYouTheOwner.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Booking/SlvBookingOwnListingWarningModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingCalculator/SlvBookingCalculatorBadge.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingCalculator/SlvBookingCalculatorModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRow.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowBadges.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowCloseMatches.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowDealButton.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowFetchError.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowLoading.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowLoadingCloseMatches.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowNoDates.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowNotListed.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowPickDates.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowQuote.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowSample.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowSavingsBadge.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowUnavailableDates.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/ProviderRow/SlvProviderRowUnverifiedHost.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/SlvBookingDeals.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/SlvBookingDealsAlternativeLinks.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/SlvBookingDealsForm.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/components/SlvProviderLabel.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/components/SlvProviderLabelText.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModalDealsOnOtherSite.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModalForm.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModalQuote.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModalSuccessMessage.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingMessageModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingMessageModalForm.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingMessageModalSuccessMessage.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingModalUnverifiedListingNotification.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingSendInquiryButton.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Description/SlvDescription.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/DetailsAndDescription/SlvDetailsAndDescription.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Faq/SlvFaq.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Header/SlvHeader.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Hero/SlvHero.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Hero/SlvNoPhotos.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Host/SlvHostKnown.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/HostBadgeInfo/HostBadgeInfo.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingCloseMatches/ListingCloseMatches.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingCloseMatches/ListingCloseMatchesModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReport.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReportContactUs.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReportDetails.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReportModal.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReportReason.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReportSuccessMessage.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingLocations/SlvListingLocations.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarousel.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarouselItem.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarouselItemBestPrice.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarouselItemCapacity.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarouselItemPrice.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarouselItemPrices.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Location/SlvLocation.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Navbar/SlvNavbarFeedbackListing.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Navbar/SlvNavbarSaveListing.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Navbar/SlvNavbarShareListing.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/NearbyAndSimilarListings/SlvNearbyAndSimilarListings.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Photos/SlvGallery.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Photos/SlvPhoto.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Reviews/SlvReviews.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Rules/SlvRules.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/SaveYourMoney/SlvSaveYourMoney.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/SideDesktopAd/SlvSideDesktopAd.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Slv.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/SlvBooking.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/SlvListing.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/Slv__JsBridge.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/ui/UpperBlock/SlvUpperBlock.bs.js","webpack://hichee/./app/rescript/libs/Fn.bs.js","webpack://hichee/./app/rescript/libs/Sbjs.bs.js","webpack://hichee/./app/rescript/libs/Time.bs.js","webpack://hichee/./app/rescript/models/Amenity.bs.js","webpack://hichee/./app/rescript/styleguide/components/Alert/Alert.bs.js","webpack://hichee/./app/rescript/styleguide/components/AlertBanner/AlertBanner.bs.js","webpack://hichee/./app/rescript/styleguide/components/AlertBanner/BannerMessages.bs.js","webpack://hichee/./app/rescript/styleguide/components/AlertBanner/PickNextAvailableDates.bs.js","webpack://hichee/./app/rescript/styleguide/components/ColorCoding/ColorCoding.bs.js","webpack://hichee/./app/rescript/styleguide/components/EstimatedBookDirectPrice/EstimatedBookDirectPrice.bs.js","webpack://hichee/./app/rescript/styleguide/components/ForbiddenVerification/ForbiddenVerificationModal.bs.js","webpack://hichee/./app/rescript/styleguide/components/GoogleMap/GoogleMapsEmbed.bs.js","webpack://hichee/./app/rescript/styleguide/components/LineChart/LineChart.bs.js","webpack://hichee/./app/rescript/styleguide/components/ListingLink/ListingLink.bs.js","webpack://hichee/./app/rescript/styleguide/components/MagicSearch/MagicSearchButton__JsBridge.bs.js","webpack://hichee/./app/rescript/styleguide/components/PhoneNumber/PhoneNumber.bs.js","webpack://hichee/./app/rescript/styleguide/components/PickDatesOverlay/PickDatesOverlay.bs.js","webpack://hichee/./app/rescript/styleguide/components/Text/Text.bs.js","webpack://hichee/./app/rescript/styleguide/components/Tooltip/Tooltip.bs.js","webpack://hichee/./app/rescript/styleguide/components/Typography/Heading/H6.bs.js","webpack://hichee/./app/rescript/styleguide/components/WarningBadge/WarningBadge.bs.js","webpack://hichee/./app/rescript/styleguide/components/WithDataProps/WithDataProps.bs.js","webpack://hichee/./app/rescript/styleguide/forms/DateField/DateField.bs.js","webpack://hichee/./app/rescript/styleguide/forms/PhoneInput/PhoneInput.bs.js","webpack://hichee/./app/rescript/styleguide/icons/AirConditioningIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BathroomIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BedroomIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BedroomLockIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BigGroupsIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BreakfastIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BulbIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/BusinessTravelersIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/CalendarWithClockIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/CarbonMonoxideDetectorIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/CouplesIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/DeskIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/DrawerIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/ElevatorIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/EssentialsIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/FamiliesWithKidsIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/FamilyIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/FeedbackIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/FireExtinguisherIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/FirePlaceIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/FirstAidIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/GuestsIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/GuestsWithClothesHangerIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/GymIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/HairDryerIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/HeatIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/HotTubIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/HouseWithChatIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/IronIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/KitchenIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/LaundryIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/MagicStickIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/MessageRoundedIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/MoonNightIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/ParkingIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/PetIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/PetsIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/PoolIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/RoomTypeIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/SafetyCardIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/ShampooIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/SmokeDetectorIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/SoloAdventuresIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/TVIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/TeddyBearIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/WheelchairIcon.bs.js","webpack://hichee/./app/rescript/styleguide/icons/WifiIcon.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/Calendar.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/FaqVector.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/Glider.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/MessageSentIcon.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/MessegeSend.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/OopsVector.bs.js","webpack://hichee/./app/rescript/styleguide/svgs/UnverifiedListingIcon.bs.js","webpack://hichee/./app/rescript/bundles/listings-show/store.js","webpack://hichee/./app/rescript/bundles/listings-show/ListingsShow.jsx","webpack://hichee/./app/rescript/bundles/listings-show/ror_components/ListingsShow.client.jsx","webpack://hichee/./app/ror-generated-packs/generated/ListingsShow.js","webpack://hichee/./app/assets/styles/vendor/photoswipe/photoswipe.scss?13ee","webpack://hichee/./app/rescript/bundles/booking-calculators-show/components/Charts/BookingCalculatorLineChart.scss?fcb1","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvBlock/SlvBlock.module.scss?1c07","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvHtmlText/SlvHtmlText.module.scss?3a33","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvSharePricingModal/SlvEmailComparisonButton.scss?da69","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvSharePricingModal/SlvSharePricingModal.scss?53d6","webpack://hichee/./app/rescript/bundles/listings-show/components/SlvTable/SlvTable.module.scss?b5a2","webpack://hichee/./app/rescript/bundles/listings-show/ui/Ads/SlvAds.module.scss?dfe0","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksFailureModal.module.scss?fb76","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksModal.module.scss?4f01","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksReportModal.module.scss?fdce","webpack://hichee/./app/rescript/bundles/listings-show/ui/AlternativeLinks/AlternativeLinksSuccessModal.module.scss?dab4","webpack://hichee/./app/rescript/bundles/listings-show/ui/AreYouTheOwner/SlvAreYouTheOwner.module.scss?1847","webpack://hichee/./app/rescript/bundles/listings-show/ui/Booking/SlvBookingOwnListingWarningModal.module.scss?1ffd","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingCalculator/SlvBookingCalculatorBadge.scss?c2ba","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingCalculator/SlvBookingCalculatorModal.scss?ccb7","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/SlvBookingDeals.scss?a2b0","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/SlvBookingDealsAlternativeLinks.module.scss?ce00","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingDeals/SlvBookingDealsForm.module.scss?e927","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModalDealsOnOtherSite.module.scss?377b","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingInquiryModalQuote.module.scss?d757","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingModalForm.module.scss?79c1","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingModalSuccessMessage.module.scss?cf84","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingModalUnverifiedListingNotification.module.scss?6263","webpack://hichee/./app/rescript/bundles/listings-show/ui/BookingModal/SlvBookingSendInquiryButton.module.scss?ec5a","webpack://hichee/./app/rescript/bundles/listings-show/ui/Description/SlvDescription.module.scss?35f4","webpack://hichee/./app/rescript/bundles/listings-show/ui/DetailsAndDescription/SlvDetails.module.scss?1652","webpack://hichee/./app/rescript/bundles/listings-show/ui/Faq/SlvFaq.module.scss?1023","webpack://hichee/./app/rescript/bundles/listings-show/ui/Header/SlvHeader.module.scss?b218","webpack://hichee/./app/rescript/bundles/listings-show/ui/Hero/SlvHero.module.scss?8771","webpack://hichee/./app/rescript/bundles/listings-show/ui/Hero/SlvNoPhotos.module.scss?3960","webpack://hichee/./app/rescript/bundles/listings-show/ui/Host/SlvHostKnown.module.scss?6a88","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingCloseMatches/ListingCloseMatchesModal.module.scss?8c36","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingFeedbackReport/ListingFeedbackReportModal.module.scss?1003","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingLocations/SlvListingLocations.module.scss?84c8","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarousel.module.scss?7d6c","webpack://hichee/./app/rescript/bundles/listings-show/ui/ListingsCarousel/ListingsCarouselItemBestPrice.module.scss?bcc9","webpack://hichee/./app/rescript/bundles/listings-show/ui/Location/SlvLocation.module.scss?2a24","webpack://hichee/./app/rescript/bundles/listings-show/ui/NearbyAndSimilarListings/SlvNearbyAndSimilarListings.module.scss?8a3b","webpack://hichee/./app/rescript/bundles/listings-show/ui/Photos/SlvPhoto.module.scss?cfef","webpack://hichee/./app/rescript/bundles/listings-show/ui/Reviews/SlvReviews.module.scss?3692","webpack://hichee/./app/rescript/bundles/listings-show/ui/Rules/SlvRules.module.scss?5304","webpack://hichee/./app/rescript/bundles/listings-show/ui/SaveYourMoney/SlvSaveYourMoney.module.scss?19f0","webpack://hichee/./app/rescript/bundles/listings-show/ui/Slv.module.scss?2484","webpack://hichee/./app/rescript/bundles/listings-show/ui/UpperBlock/SlvUpperBlock.module.scss?4dc1","webpack://hichee/./app/rescript/styleguide/components/Alert/Alert.module.scss?9a0a","webpack://hichee/./app/rescript/styleguide/components/AlertBanner/AlertBanner.scss?43b6","webpack://hichee/./app/rescript/styleguide/components/AlertBanner/PickNextAvailableDates.scss?9569","webpack://hichee/./app/rescript/styleguide/components/ColorCoding/ColorCoding.module.scss?5f19","webpack://hichee/./app/rescript/styleguide/components/ForbiddenVerification/ForbiddenVerificationModal.scss?e654","webpack://hichee/./app/rescript/styleguide/components/LineChart/LineChart.module.scss?666e","webpack://hichee/./app/rescript/styleguide/components/PickDatesOverlay/PickDatesOverlay.scss?a8d2","webpack://hichee/./app/rescript/styleguide/components/Text/Text.module.scss?51f9","webpack://hichee/./app/rescript/styleguide/components/Tooltip/Tooltip.module.scss?cd67","webpack://hichee/./app/rescript/styleguide/components/WarningBadge/WarningBadge.scss?5a49","webpack://hichee/./app/rescript/styleguide/forms/DateField/DateField.module.scss?167b"],"sourcesContent":["// @flow\nimport countryData from 'country-telephone-data';\nimport { formatNumber } from 'react-telephone-input';\n\ntype Props = {\n phoneNumber: ?string,\n};\n\nconst Phone = (props: Props) => {\n const phoneNumber = props.phoneNumber || '';\n const isoByLen = len => countryData.allCountryCodes[phoneNumber.substring(0, len)];\n\n const countryIso = (isoByLen(4) || isoByLen(3) || isoByLen(2) || isoByLen(1) || [''])[0];\n const country = countryData.allCountries.find(foundCountry => foundCountry.iso2 === countryIso);\n const formattedNumber = formatNumber(phoneNumber, country ? country.format : '', true);\n\n return formattedNumber === '+' ? '' : formattedNumber;\n};\n\nexport default Phone;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { FormattedMessage } from 'react-intl';\nimport IntlProviderWrapper from 'rescript/i18n/IntlProviderWrapper.bs.js';\nimport MagicStickIcon from 'rescript/styleguide/icons/MagicStickIcon.bs.js';\nimport MagicSearchButton from 'app/rescript/styleguide/components/MagicSearch/MagicSearchButton__JsBridge.bs.js';\n\nfunction renderMagicSearchBadge(\n target,\n photoIndex,\n listing,\n user,\n canDoMagicSearch,\n showMagicSearchLimitModal,\n) {\n ReactDOM.render(\n <IntlProviderWrapper>\n <MagicSearchButton\n listing={listing}\n searchType=\"ByImage\"\n photo={{ photoIndex, url: listing.photos[photoIndex] }}\n user={user}\n amplitudeEventSpecifier=\"Gallery Images\"\n showMagicSearchLimitModal={showMagicSearchLimitModal}\n canDoMagicSearch={canDoMagicSearch}\n >\n <MagicStickIcon color=\"Primary\" size=\"SM\" />\n <FormattedMessage id=\"slv.magic-search-by-image\" defaultMessage=\"Magic Search with this image\" />\n </MagicSearchButton>\n </IntlProviderWrapper>,\n target,\n );\n}\n\nexport default renderMagicSearchBadge;\n","/* eslint id-length: 0 */\nimport PhotoSwipe from 'photoswipe/dist/photoswipe';\nimport _ from 'lodash/fp';\nimport PhotoSwipeUIDefault from './photoswipe-ui-default';\nimport { swipeListener } from '../../swipe';\nimport renderMagicSearchBadge from './PswpMagicSearchBadge';\n// import mountAdComponent from './AdsRenderer';\n\nexport const galleries = {\n initAll(\n isUnverified,\n listing,\n onShareClick,\n onSaveClick,\n user,\n canDoMagicSearch,\n showMagicSearchLimitModal,\n ) {\n this.swipeListeners = [];\n this.onShareClick = onShareClick;\n this.onSaveClick = onSaveClick;\n this.showMagicSearchLimitModal = showMagicSearchLimitModal;\n this.user = user;\n this.listing = listing;\n this.canDoMagicSearch = canDoMagicSearch;\n this.isUnverified = isUnverified;\n\n const domGalleries = document.querySelectorAll('.fng-gallery');\n for (let i = 0; i < domGalleries.length; i++) {\n const galleryElement = domGalleries[i];\n this.galleryInitter(`#${galleryElement.id}`);\n const shouldSwipeToOpen = galleryElement.dataset.enableSwipeToOpen === 'true';\n if (shouldSwipeToOpen) {\n this.attachSwipeListenerToOpenGallery(galleryElement);\n }\n }\n\n if (listing.photos?.length > 0 && this.photoIndex !== undefined) this.renderMagicSearchElement();\n },\n\n galleryInitter(gallerySelector) {\n // Loop through all gallery elements and bind events\n const galleryElements = document.querySelectorAll(gallerySelector);\n\n for (let i = 0, len = galleryElements.length; i < len; i++) {\n galleryElements[i].setAttribute('data-pswp-uid', i + 1);\n galleryElements[i].onclick = e => this.onThumbnailsClick(e);\n }\n\n // Parse URL and open gallery if it contains #&pid=3&gid=1\n const hashData = this.photoswipeParseHash();\n if (hashData.pid && hashData.gid) {\n this.openPhotoSwipe(hashData.pid, galleryElements[hashData.gid - 1], true, true);\n }\n },\n\n // Attach swipe listener to open gallery in gallery element\n attachSwipeListenerToOpenGallery(galleryElement) {\n const listener = swipeListener({\n element: galleryElement,\n leftSwipeHandler: () => this.openPhotoSwipe(1, galleryElement, false, false, this.isUnverified),\n rightSwipeHandler: () => this.openPhotoSwipe(0, galleryElement, false, false, this.isUnverified),\n });\n listener.addSwipeListener();\n this.swipeListeners.push(listener);\n },\n\n // Parse slide data (url, title, size ...) from DOM elements\n // (children of gallerySelector)\n parseThumbnailElements(el) {\n const thumbElements = el.childNodes;\n const numNodes = thumbElements.length;\n const items = [];\n\n for (let i = 0; i < numNodes; i++) {\n const figureEl = thumbElements[i];\n\n // Include only element nodes\n if (figureEl.nodeType !== 1 || figureEl.nodeName === 'DIV') {\n continue;\n }\n\n const linkEl = figureEl.children[0]; // <a> element\n\n const size = linkEl.getAttribute('data-size').split('x');\n\n // Create slide object\n const item = {\n originalUrl: linkEl.getAttribute('data-photourl'),\n src: linkEl.getAttribute('href'),\n w: parseInt(size[0], 10),\n h: parseInt(size[1], 10),\n };\n\n if (figureEl.children.length > 1) {\n // <figcaption> content\n item.title = figureEl.children[1].innerHTML;\n }\n\n if (linkEl.children.length > 0) {\n // <img> thumbnail element, retrieving thumbnail url\n item.msrc = linkEl.children[0].getAttribute('src');\n }\n\n item.el = figureEl; // save link to element for getThumbBoundsFn\n items.push(item);\n }\n\n if (this.isUnverified) {\n items.splice(1, 0, {\n html: this.unverifiedListingSlideHtml(),\n });\n }\n return items;\n },\n\n unverifiedListingSlideHtml() {\n return `<div style=\"display: flex; height: 100%; width: 100%; justify-content: center\">\n <div style=\"display: flex; flex-direction: column; justify-content: center; align-items: center\">\n <img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAuCAYAAACs7t7oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAobSURBVHgB7VoLdBTVGf7vbJACgcYCJRYlS0EUeTQQHqaNyaIWC/aQjcFqESVIOGiLh2DFopSyHC1tpYWkcFqUh8khlVJLCYpWEOKGYnhU6EK1kdqUTalVysFsEBIMmZl+d+7O7uzs7CMpOezS/OfMuc+5s/PNd7//v/cuo/8TU7Nn5xGlELUqdmLMTopCJEloUDOJUZroxXDJ6KZ6iRQvSejDkL8GebXlGHNX+aidxugqMw3INikTr2bXwFMJeR3AKCapuEUDlDRg9b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div style=\"text-align: center; color: white; \">\n <div style=\"font-size: 19px; font-weight: 800; margin: 10px 10vw 20px\">\n This listing has not been verified by the owner yet.\n </div>\n <div style=\"font-size: 16px; font-weight: 500; margin: 0 10vw 5vh\">\n Verified listings allow guests to send questions and direct booking inquiries to the host.\n </div>\n </div>\n </div>\n </div>`;\n },\n\n onThumbnailsClick(e = window.event) {\n e.preventDefault();\n\n const eTarget = e.target;\n\n // find root element of slide\n const clickedListItem = this.closest(eTarget, el => el.tagName && el.tagName.toUpperCase() === 'FIGURE');\n\n if (!clickedListItem) return;\n\n // find index of clicked item by looping through all child nodes\n // alternatively, you may define index via data- attribute\n const clickedGallery = clickedListItem.parentNode;\n const childNodes = clickedListItem.parentNode.childNodes;\n const numChildNodes = childNodes.length;\n\n let nodeIndex = 0;\n let index;\n\n for (let i = 0; i < numChildNodes; i++) {\n if (childNodes[i].nodeType !== 1) continue;\n\n if (childNodes[i] === clickedListItem) {\n index = nodeIndex;\n break;\n }\n\n nodeIndex++;\n }\n\n if (index >= 0) {\n // Open PhotoSwipe if valid index found\n // if we added unclaimed metalisting notificaton 2nd slide we have to shift all the slides after it\n if (this.isUnverified && index >= 1) {\n index += 1;\n }\n this.openPhotoSwipe(index, clickedGallery, false, false);\n }\n },\n\n // Find nearest parent element\n closest(el, cb) {\n return el && (cb(el) ? el : this.closest(el.parentNode, cb));\n },\n\n getMagicSearchElement() {\n return document.querySelector('.pswp__magic-search-container');\n },\n\n renderMagicSearchElement() {\n const pswpMagicSearchElement = this.getMagicSearchElement();\n\n renderMagicSearchBadge(\n pswpMagicSearchElement,\n this.photoIndex,\n this.listing,\n this.user,\n this.canDoMagicSearch,\n this.showMagicSearchLimitModal,\n );\n },\n\n // Parse picture index and gallery index from URL (#&pid=1&gid=2)\n photoswipeParseHash() {\n const hash = window.location.hash.substring(1);\n const params = {};\n\n if (hash.length < 5) return params;\n\n const vars = hash.split('&');\n for (let i = 0; i < vars.length; i++) {\n if (!vars[i]) continue;\n const pair = vars[i].split('=');\n if (pair.length < 2) continue;\n // eslint-disable-next-line prefer-destructuring\n params[pair[0]] = pair[1];\n }\n\n if (params.gid) {\n params.gid = parseInt(params.gid, 10);\n }\n\n return params;\n },\n\n openPhotoSwipe(index, galleryElement, disableAnimation, fromURL) {\n const pswpElement = document.querySelectorAll('.pswp')[0];\n\n // NOTE: Disable gallery ads for now til fixed in CH22859\n // mountAdComponent(this.user);\n const items = this.parseThumbnailElements(galleryElement);\n\n const options = {\n // define gallery index (for URL)\n galleryUID: galleryElement.getAttribute('data-pswp-uid'),\n\n getThumbBoundsFn(idx) {\n // From the docs: \"Function should return an object with coordinates from which\n // initial zoom-in animation will start (or zoom-out animation will end)\"\n // But looks like there is no animation atm upon opening.\n // Also the html-notification slide is not even shown as a thumbnail => so these coords doesn't matter for it\n if (items[idx].html) {\n return {\n x: 0,\n y: 0,\n w: 0,\n };\n }\n\n const thumbnail = items[idx].el.getElementsByTagName('img')[0];\n const rect = thumbnail.getBoundingClientRect();\n const pageYScroll = window.pageYOffset || document.documentElement.scrollTop;\n\n return {\n x: rect.left,\n y: rect.top + pageYScroll,\n w: rect.width,\n };\n },\n\n bgOpacity: 0.95,\n showAnimationDuration: 0,\n hideAnimationDuration: 0,\n loop: false,\n history: false,\n\n clickToCloseNonZoomable: false,\n closeOnScroll: false,\n shareEl: false,\n downloadEl: false,\n fullscreenEl: false,\n zoomEl: false,\n };\n\n // PhotoSwipe opened from URL\n if (fromURL) {\n if (options.galleryPIDs) {\n // Parse real index when custom PIDs are used\n // http://photoswipe.com/documentation/faq.html#custom-pid-in-url\n for (let j = 0; j < items.length; j++) {\n if (parseInt(items[j].pid, 10) === parseInt(index, 10)) {\n options.index = j;\n break;\n }\n }\n } else {\n // In URL indexes start from 1\n options.index = parseInt(index, 10) - 1;\n }\n } else {\n options.index = parseInt(index, 10);\n }\n\n // Exit if index not found\n if (_.isNaN(options.index)) return;\n\n if (disableAnimation) {\n options.showAnimationDuration = 0;\n }\n\n // Pass data to PhotoSwipe and initialize it\n const gallery = new PhotoSwipe(pswpElement, PhotoSwipeUIDefault, items, options);\n\n // Removing the default event listener that prevents touch events\n // If this got removed the buttons won't work on mobile\n gallery.listen('preventDragEvent', (e, _isDown, preventObj) => {\n // e - original event\n // Line below will force e.preventDefault() on:\n // touchstart/mousedown/pointerdown events\n // as well as on:\n // touchend/mouseup/pointerup events\n const touchedElementClass = e.target.getAttribute('class') || '';\n const allowedClasses = ['pswp__button pswp__button--save', 'pswp__button pswp__button--custom-share'];\n\n if (allowedClasses.includes(touchedElementClass)) {\n // eslint-disable-next-line no-param-reassign\n preventObj.prevent = false;\n }\n });\n\n gallery.listen('afterInit', () => {\n const shareButton = document.querySelector('.pswp__button--custom-share');\n const saveButton = document.querySelector('.pswp__button--save');\n\n if (shareButton) shareButton.onclick = _event => this.onShareClick();\n if (saveButton) saveButton.onclick = _event => this.onSaveClick();\n });\n\n gallery.listen('afterChange', () => {\n const currIndex = gallery.getCurrentIndex();\n\n // Hide badge for unverified listing slide\n const pswpMagicSearchElement = this.getMagicSearchElement();\n if (this.isUnverified && currIndex === 1) {\n pswpMagicSearchElement.style.display = 'none';\n } else {\n pswpMagicSearchElement.style.display = 'flex';\n }\n\n // modify index to account for unverified listing slide\n const photoIndex = this.isUnverified && currIndex >= 1 ? currIndex - 1 : currIndex;\n\n this.photoIndex = photoIndex;\n this.renderMagicSearchElement();\n });\n\n gallery.init();\n },\n\n cleanUp() {\n // Clear array and detach listeners\n this.swipeListeners\n .splice(0, this.swipeListeners.length)\n .forEach(listener => listener.removeSwipeListener());\n },\n};\n","/* eslint-disable */\n/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05\n* http://photoswipe.com\n* Copyright (c) 2017 Dmitry Semenov; */\n/**\n *\n * UI on top of main sliding area (caption, arrows, close button, etc.).\n * Built just using public methods/properties of PhotoSwipe.\n *\n */\n(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define(factory);\n } else if (typeof exports === 'object') {\n module.exports = factory();\n } else {\n root.PhotoSwipeUI_Default = factory();\n }\n})(this, function() {\n 'use strict';\n\n var PhotoSwipeUI_Default = function(pswp, framework) {\n var ui = this;\n var _overlayUIUpdated = false,\n _controlsVisible = true,\n _fullscrenAPI,\n _controls,\n _captionContainer,\n _fakeCaptionContainer,\n _indexIndicator,\n _shareButton,\n _shareModal,\n _shareModalHidden = true,\n _initalCloseOnScrollValue,\n _isIdle,\n _listen,\n _loadingIndicator,\n _loadingIndicatorHidden,\n _loadingIndicatorTimeout,\n _galleryHasOneSlide,\n _options,\n _defaultUIOptions = {\n barsSize: { top: 44, bottom: 'auto' },\n closeElClasses: ['item', 'caption', 'zoom-wrap', 'ui', 'top-bar'],\n timeToIdle: 4000,\n timeToIdleOutside: 1000,\n loadingIndicatorDelay: 1000, // 2s\n\n addCaptionHTMLFn: function(item, captionEl /*, isFake */) {\n if (!item.title) {\n captionEl.children[0].innerHTML = '';\n return false;\n }\n captionEl.children[0].innerHTML = item.title;\n return true;\n },\n\n closeEl: true,\n downloadEl: true,\n captionEl: true,\n fullscreenEl: true,\n zoomEl: true,\n shareEl: true,\n counterEl: true,\n arrowEl: true,\n preloaderEl: true,\n\n tapToClose: false,\n tapToToggleControls: true,\n\n clickToCloseNonZoomable: true,\n\n shareButtons: [\n {\n id: 'facebook',\n label: 'Share on Facebook',\n url: 'https://www.facebook.com/sharer/sharer.php?u={{url}}',\n },\n {\n id: 'twitter',\n label: 'Tweet',\n url: 'https://twitter.com/intent/tweet?text={{text}}&url={{url}}',\n },\n {\n id: 'pinterest',\n label: 'Pin it',\n url:\n 'http://www.pinterest.com/pin/create/button/' +\n '?url={{url}}&media={{image_url}}&description={{text}}',\n },\n { id: 'download', label: 'Download image', url: '{{raw_image_url}}', download: true },\n ],\n getImageURLForShare: function(/* shareButtonData */) {\n return pswp.currItem.src || '';\n },\n getPageURLForShare: function(/* shareButtonData */) {\n return window.location.href;\n },\n getTextForShare: function(/* shareButtonData */) {\n return pswp.currItem.title || '';\n },\n\n indexIndicatorSep: ' / ',\n fitControlsWidth: 1200,\n },\n _blockControlsTap,\n _blockControlsTapTimeout;\n\n var _onControlsTap = function(e) {\n if (_blockControlsTap) {\n return true;\n }\n\n e = e || window.event;\n\n if (_options.timeToIdle && _options.mouseUsed && !_isIdle) {\n // reset idle timer\n _onIdleMouseMove();\n }\n\n var target = e.target || e.srcElement,\n uiElement,\n clickedClass = target.getAttribute('class') || '',\n found;\n\n for (var i = 0; i < _uiElements.length; i++) {\n uiElement = _uiElements[i];\n if (uiElement.onTap && clickedClass.indexOf('pswp__' + uiElement.name) > -1) {\n uiElement.onTap();\n found = true;\n }\n }\n\n if (found) {\n if (e.stopPropagation) {\n e.stopPropagation();\n }\n _blockControlsTap = true;\n\n // Some versions of Android don't prevent ghost click event\n // when preventDefault() was called on touchstart and/or touchend.\n //\n // This happens on v4.3, 4.2, 4.1,\n // older versions strangely work correctly,\n // but just in case we add delay on all of them)\n var tapDelay = framework.features.isOldAndroid ? 600 : 30;\n _blockControlsTapTimeout = setTimeout(function() {\n _blockControlsTap = false;\n }, tapDelay);\n }\n },\n _fitControlsInViewport = function() {\n return !pswp.likelyTouchDevice || _options.mouseUsed || screen.width > _options.fitControlsWidth;\n },\n _togglePswpClass = function(el, cName, add) {\n framework[(add ? 'add' : 'remove') + 'Class'](el, 'pswp__' + cName);\n },\n // add class when there is just one item in the gallery\n // (by default it hides left/right arrows and 1ofX counter)\n _countNumItems = function() {\n var hasOneSlide = _options.getNumItemsFn() === 1;\n\n if (hasOneSlide !== _galleryHasOneSlide) {\n _togglePswpClass(_controls, 'ui--one-slide', hasOneSlide);\n _galleryHasOneSlide = hasOneSlide;\n }\n },\n _toggleShareModalClass = function() {\n _togglePswpClass(_shareModal, 'share-modal--hidden', _shareModalHidden);\n },\n _toggleShareModal = function() {\n _shareModalHidden = !_shareModalHidden;\n\n if (!_shareModalHidden) {\n _toggleShareModalClass();\n setTimeout(function() {\n if (!_shareModalHidden) {\n framework.addClass(_shareModal, 'pswp__share-modal--fade-in');\n }\n }, 30);\n } else {\n framework.removeClass(_shareModal, 'pswp__share-modal--fade-in');\n setTimeout(function() {\n if (_shareModalHidden) {\n _toggleShareModalClass();\n }\n }, 300);\n }\n\n if (!_shareModalHidden) {\n _updateShareURLs();\n }\n return false;\n },\n _openWindowPopup = function(e) {\n e = e || window.event;\n var target = e.target || e.srcElement;\n\n pswp.shout('shareLinkClick', e, target);\n\n if (!target.href) {\n return false;\n }\n\n if (target.hasAttribute('download')) {\n return true;\n }\n\n window.open(\n target.href,\n 'pswp_share',\n 'scrollbars=yes,resizable=yes,toolbar=no,' +\n 'location=yes,width=550,height=420,top=100,left=' +\n (window.screen ? Math.round(screen.width / 2 - 275) : 100),\n );\n\n if (!_shareModalHidden) {\n _toggleShareModal();\n }\n\n return false;\n },\n _updateShareURLs = function() {\n var shareButtonOut = '',\n shareButtonData,\n shareURL,\n image_url,\n page_url,\n share_text;\n\n for (var i = 0; i < _options.shareButtons.length; i++) {\n shareButtonData = _options.shareButtons[i];\n\n image_url = _options.getImageURLForShare(shareButtonData);\n page_url = _options.getPageURLForShare(shareButtonData);\n share_text = _options.getTextForShare(shareButtonData);\n\n shareURL = shareButtonData.url\n .replace('{{url}}', encodeURIComponent(page_url))\n .replace('{{image_url}}', encodeURIComponent(image_url))\n .replace('{{raw_image_url}}', image_url)\n .replace('{{text}}', encodeURIComponent(share_text));\n\n shareButtonOut +=\n '<a href=\"' +\n shareURL +\n '\" target=\"_blank\" ' +\n 'class=\"pswp__share--' +\n shareButtonData.id +\n '\"' +\n (shareButtonData.download ? 'download' : '') +\n '>' +\n shareButtonData.label +\n '</a>';\n\n if (_options.parseShareButtonOut) {\n shareButtonOut = _options.parseShareButtonOut(shareButtonData, shareButtonOut);\n }\n }\n _shareModal.children[0].innerHTML = shareButtonOut;\n _shareModal.children[0].onclick = _openWindowPopup;\n },\n _hasCloseClass = function(target) {\n for (var i = 0; i < _options.closeElClasses.length; i++) {\n if (framework.hasClass(target, 'pswp__' + _options.closeElClasses[i])) {\n return true;\n }\n }\n },\n _idleInterval,\n _idleTimer,\n _idleIncrement = 0,\n _onIdleMouseMove = function() {\n clearTimeout(_idleTimer);\n _idleIncrement = 0;\n if (_isIdle) {\n ui.setIdle(false);\n }\n },\n _onMouseLeaveWindow = function(e) {\n e = e ? e : window.event;\n var from = e.relatedTarget || e.toElement;\n if (!from || from.nodeName === 'HTML') {\n clearTimeout(_idleTimer);\n _idleTimer = setTimeout(function() {\n ui.setIdle(true);\n }, _options.timeToIdleOutside);\n }\n },\n _setupFullscreenAPI = function() {\n if (_options.fullscreenEl && !framework.features.isOldAndroid) {\n if (!_fullscrenAPI) {\n _fullscrenAPI = ui.getFullscreenAPI();\n }\n if (_fullscrenAPI) {\n framework.bind(document, _fullscrenAPI.eventK, ui.updateFullscreen);\n ui.updateFullscreen();\n framework.addClass(pswp.template, 'pswp--supports-fs');\n } else {\n framework.removeClass(pswp.template, 'pswp--supports-fs');\n }\n }\n },\n _setupLoadingIndicator = function() {\n // Setup loading indicator\n if (_options.preloaderEl) {\n _toggleLoadingIndicator(true);\n\n _listen('beforeChange', function() {\n clearTimeout(_loadingIndicatorTimeout);\n\n // display loading indicator with delay\n _loadingIndicatorTimeout = setTimeout(function() {\n if (pswp.currItem && pswp.currItem.loading) {\n if (!pswp.allowProgressiveImg() || (pswp.currItem.img && !pswp.currItem.img.naturalWidth)) {\n // show preloader if progressive loading is not enabled,\n // or image width is not defined yet (because of slow connection)\n _toggleLoadingIndicator(false);\n // items-controller.js function allowProgressiveImg\n }\n } else {\n _toggleLoadingIndicator(true); // hide preloader\n }\n }, _options.loadingIndicatorDelay);\n });\n _listen('imageLoadComplete', function(index, item) {\n if (pswp.currItem === item) {\n _toggleLoadingIndicator(true);\n }\n });\n }\n },\n _toggleLoadingIndicator = function(hide) {\n if (_loadingIndicatorHidden !== hide) {\n _togglePswpClass(_loadingIndicator, 'preloader--active', !hide);\n _loadingIndicatorHidden = hide;\n }\n },\n _applyNavBarGaps = function(item) {\n var gap = item.vGap;\n\n if (_fitControlsInViewport()) {\n var bars = _options.barsSize;\n if (_options.captionEl && bars.bottom === 'auto') {\n if (!_fakeCaptionContainer) {\n _fakeCaptionContainer = framework.createEl('pswp__caption pswp__caption--fake');\n _fakeCaptionContainer.appendChild(framework.createEl('pswp__caption__center'));\n _controls.insertBefore(_fakeCaptionContainer, _captionContainer);\n framework.addClass(_controls, 'pswp__ui--fit');\n }\n if (_options.addCaptionHTMLFn(item, _fakeCaptionContainer, true)) {\n var captionSize = _fakeCaptionContainer.clientHeight;\n gap.bottom = parseInt(captionSize, 10) || 44;\n } else {\n gap.bottom = bars.top; // if no caption, set size of bottom gap to size of top\n }\n } else {\n gap.bottom = bars.bottom === 'auto' ? 0 : bars.bottom;\n }\n\n // height of top bar is static, no need to calculate it\n gap.top = bars.top;\n } else {\n gap.top = gap.bottom = 0;\n }\n },\n _setupIdle = function() {\n // Hide controls when mouse is used\n if (_options.timeToIdle) {\n _listen('mouseUsed', function() {\n framework.bind(document, 'mousemove', _onIdleMouseMove);\n framework.bind(document, 'mouseout', _onMouseLeaveWindow);\n\n _idleInterval = setInterval(function() {\n _idleIncrement++;\n if (_idleIncrement === 2) {\n ui.setIdle(true);\n }\n }, _options.timeToIdle / 2);\n });\n }\n },\n _setupHidingControlsDuringGestures = function() {\n // Hide controls on vertical drag\n _listen('onVerticalDrag', function(now) {\n if (_controlsVisible && now < 0.95) {\n ui.hideControls();\n } else if (!_controlsVisible && now >= 0.95) {\n ui.showControls();\n }\n });\n\n // Hide controls when pinching to close\n var pinchControlsHidden;\n _listen('onPinchClose', function(now) {\n if (_controlsVisible && now < 0.9) {\n ui.hideControls();\n pinchControlsHidden = true;\n } else if (pinchControlsHidden && !_controlsVisible && now > 0.9) {\n ui.showControls();\n }\n });\n\n _listen('zoomGestureEnded', function() {\n pinchControlsHidden = false;\n if (pinchControlsHidden && !_controlsVisible) {\n ui.showControls();\n }\n });\n };\n\n var _uiElements = [\n {\n name: 'button--download-original',\n option: 'downloadEl',\n onTap: function() {\n window.open(pswp.currItem.originalUrl, '_blank');\n },\n },\n {\n name: 'caption',\n option: 'captionEl',\n onInit: function(el) {\n _captionContainer = el;\n },\n },\n {\n name: 'share-modal',\n option: 'shareEl',\n onInit: function(el) {\n _shareModal = el;\n },\n onTap: function() {\n _toggleShareModal();\n },\n },\n {\n name: 'button--share',\n option: 'shareEl',\n onInit: function(el) {\n _shareButton = el;\n },\n onTap: function() {\n _toggleShareModal();\n },\n },\n {\n name: 'button--zoom',\n option: 'zoomEl',\n onTap: pswp.toggleDesktopZoom,\n },\n {\n name: 'counter',\n option: 'counterEl',\n onInit: function(el) {\n _indexIndicator = el;\n },\n },\n {\n name: 'button--close',\n option: 'closeEl',\n onTap: pswp.close,\n },\n {\n name: 'button--arrow--left',\n option: 'arrowEl',\n onTap: pswp.prev,\n },\n {\n name: 'button--arrow--right',\n option: 'arrowEl',\n onTap: pswp.next,\n },\n {\n name: 'button--fs',\n option: 'fullscreenEl',\n onTap: function() {\n if (_fullscrenAPI.isFullscreen()) {\n _fullscrenAPI.exit();\n } else {\n _fullscrenAPI.enter();\n }\n },\n },\n {\n name: 'preloader',\n option: 'preloaderEl',\n onInit: function(el) {\n _loadingIndicator = el;\n },\n },\n ];\n\n var _setupUIElements = function() {\n var item, classAttr, uiElement;\n\n var loopThroughChildElements = function(sChildren) {\n if (!sChildren) {\n return;\n }\n\n var l = sChildren.length;\n for (var i = 0; i < l; i++) {\n item = sChildren[i];\n classAttr = item.className;\n\n for (var a = 0; a < _uiElements.length; a++) {\n uiElement = _uiElements[a];\n\n if (classAttr.indexOf('pswp__' + uiElement.name) > -1) {\n if (_options[uiElement.option]) {\n // if element is not disabled from options\n\n framework.removeClass(item, 'pswp__element--disabled');\n if (uiElement.onInit) {\n uiElement.onInit(item);\n }\n\n //item.style.display = 'block';\n } else {\n framework.addClass(item, 'pswp__element--disabled');\n //item.style.display = 'none';\n }\n }\n }\n }\n };\n loopThroughChildElements(_controls.children);\n\n var topBar = framework.getChildByClass(_controls, 'pswp__top-bar');\n if (topBar) {\n loopThroughChildElements(topBar.children);\n }\n };\n\n ui.init = function() {\n // extend options\n framework.extend(pswp.options, _defaultUIOptions, true);\n\n // create local link for fast access\n _options = pswp.options;\n\n // find pswp__ui element\n _controls = framework.getChildByClass(pswp.scrollWrap, 'pswp__ui');\n\n // create local link\n _listen = pswp.listen;\n\n _setupHidingControlsDuringGestures();\n\n // update controls when slides change\n _listen('beforeChange', ui.update);\n\n // toggle zoom on double-tap\n _listen('doubleTap', function(point) {\n var initialZoomLevel = pswp.currItem.initialZoomLevel;\n if (pswp.getZoomLevel() !== initialZoomLevel) {\n pswp.zoomTo(initialZoomLevel, point, 333);\n } else {\n pswp.zoomTo(_options.getDoubleTapZoom(false, pswp.currItem), point, 333);\n }\n });\n\n // Allow text selection in caption\n _listen('preventDragEvent', function(e, isDown, preventObj) {\n var t = e.target || e.srcElement;\n if (\n t &&\n t.getAttribute('class') &&\n e.type.indexOf('mouse') > -1 &&\n (t.getAttribute('class').indexOf('__caption') > 0 || /(SMALL|STRONG|EM)/i.test(t.tagName))\n ) {\n preventObj.prevent = false;\n }\n });\n\n // bind events for UI\n _listen('bindEvents', function() {\n framework.bind(_controls, 'pswpTap click', _onControlsTap);\n framework.bind(pswp.scrollWrap, 'pswpTap', ui.onGlobalTap);\n\n if (!pswp.likelyTouchDevice) {\n framework.bind(pswp.scrollWrap, 'mouseover', ui.onMouseOver);\n }\n });\n\n // unbind events for UI\n _listen('unbindEvents', function() {\n if (!_shareModalHidden) {\n _toggleShareModal();\n }\n\n if (_idleInterval) {\n clearInterval(_idleInterval);\n }\n framework.unbind(document, 'mouseout', _onMouseLeaveWindow);\n framework.unbind(document, 'mousemove', _onIdleMouseMove);\n framework.unbind(_controls, 'pswpTap click', _onControlsTap);\n framework.unbind(pswp.scrollWrap, 'pswpTap', ui.onGlobalTap);\n framework.unbind(pswp.scrollWrap, 'mouseover', ui.onMouseOver);\n\n if (_fullscrenAPI) {\n framework.unbind(document, _fullscrenAPI.eventK, ui.updateFullscreen);\n if (_fullscrenAPI.isFullscreen()) {\n _options.hideAnimationDuration = 0;\n _fullscrenAPI.exit();\n }\n _fullscrenAPI = null;\n }\n });\n\n // clean up things when gallery is destroyed\n _listen('destroy', function() {\n if (_options.captionEl) {\n if (_fakeCaptionContainer) {\n _controls.removeChild(_fakeCaptionContainer);\n }\n framework.removeClass(_captionContainer, 'pswp__caption--empty');\n }\n\n if (_shareModal) {\n _shareModal.children[0].onclick = null;\n }\n framework.removeClass(_controls, 'pswp__ui--over-close');\n framework.addClass(_controls, 'pswp__ui--hidden');\n ui.setIdle(false);\n });\n\n if (!_options.showAnimationDuration) {\n framework.removeClass(_controls, 'pswp__ui--hidden');\n }\n _listen('initialZoomIn', function() {\n if (_options.showAnimationDuration) {\n framework.removeClass(_controls, 'pswp__ui--hidden');\n }\n });\n _listen('initialZoomOut', function() {\n framework.addClass(_controls, 'pswp__ui--hidden');\n });\n\n _listen('parseVerticalMargin', _applyNavBarGaps);\n\n _setupUIElements();\n\n if (_options.shareEl && _shareButton && _shareModal) {\n _shareModalHidden = true;\n }\n\n _countNumItems();\n\n _setupIdle();\n\n _setupFullscreenAPI();\n\n _setupLoadingIndicator();\n };\n\n ui.setIdle = function(isIdle) {\n _isIdle = isIdle;\n _togglePswpClass(_controls, 'ui--idle', isIdle);\n };\n\n ui.update = function() {\n // Don't update UI if it's hidden\n if (_controlsVisible && pswp.currItem) {\n ui.updateIndexIndicator();\n\n if (_options.captionEl) {\n _options.addCaptionHTMLFn(pswp.currItem, _captionContainer);\n\n _togglePswpClass(_captionContainer, 'caption--empty', !pswp.currItem.title);\n }\n\n _overlayUIUpdated = true;\n } else {\n _overlayUIUpdated = false;\n }\n\n if (!_shareModalHidden) {\n _toggleShareModal();\n }\n\n _countNumItems();\n };\n\n ui.updateFullscreen = function(e) {\n if (e) {\n // some browsers change window scroll position during the fullscreen\n // so PhotoSwipe updates it just in case\n setTimeout(function() {\n pswp.setScrollOffset(0, framework.getScrollY());\n }, 50);\n }\n\n // toogle pswp--fs class on root element\n framework[(_fullscrenAPI.isFullscreen() ? 'add' : 'remove') + 'Class'](pswp.template, 'pswp--fs');\n };\n\n ui.updateIndexIndicator = function() {\n if (_options.counterEl) {\n _indexIndicator.innerHTML =\n pswp.getCurrentIndex() + 1 + _options.indexIndicatorSep + _options.getNumItemsFn();\n }\n };\n\n ui.onGlobalTap = function(e) {\n e = e || window.event;\n var target = e.target || e.srcElement;\n\n if (_blockControlsTap) {\n return;\n }\n\n if (e.detail && e.detail.pointerType === 'mouse') {\n // close gallery if clicked outside of the image\n if (_hasCloseClass(target)) {\n pswp.close();\n return;\n }\n\n if (framework.hasClass(target, 'pswp__img')) {\n if (pswp.getZoomLevel() === 1 && pswp.getZoomLevel() <= pswp.currItem.fitRatio) {\n if (_options.clickToCloseNonZoomable) {\n pswp.close();\n }\n } else {\n pswp.toggleDesktopZoom(e.detail.releasePoint);\n }\n }\n } else {\n // tap anywhere (except buttons) to toggle visibility of controls\n if (_options.tapToToggleControls) {\n if (_controlsVisible) {\n ui.hideControls();\n } else {\n ui.showControls();\n }\n }\n\n // tap to close gallery\n if (_options.tapToClose && (framework.hasClass(target, 'pswp__img') || _hasCloseClass(target))) {\n pswp.close();\n return;\n }\n }\n };\n ui.onMouseOver = function(e) {\n e = e || window.event;\n var target = e.target || e.srcElement;\n\n // add class when mouse is over an element that should close the gallery\n _togglePswpClass(_controls, 'ui--over-close', _hasCloseClass(target));\n };\n\n ui.hideControls = function() {\n framework.addClass(_controls, 'pswp__ui--hidden');\n _controlsVisible = false;\n };\n\n ui.showControls = function() {\n _controlsVisible = true;\n if (!_overlayUIUpdated) {\n ui.update();\n }\n framework.removeClass(_controls, 'pswp__ui--hidden');\n };\n\n ui.supportsFullscreen = function() {\n var d = document;\n return !!(d.exitFullscreen || d.mozCancelFullScreen || d.webkitExitFullscreen || d.msExitFullscreen);\n };\n\n ui.getFullscreenAPI = function() {\n var dE = document.documentElement,\n api,\n tF = 'fullscreenchange';\n\n if (dE.requestFullscreen) {\n api = {\n enterK: 'requestFullscreen',\n exitK: 'exitFullscreen',\n elementK: 'fullscreenElement',\n eventK: tF,\n };\n } else if (dE.mozRequestFullScreen) {\n api = {\n enterK: 'mozRequestFullScreen',\n exitK: 'mozCancelFullScreen',\n elementK: 'mozFullScreenElement',\n eventK: 'moz' + tF,\n };\n } else if (dE.webkitRequestFullscreen) {\n api = {\n enterK: 'webkitRequestFullscreen',\n exitK: 'webkitExitFullscreen',\n elementK: 'webkitFullscreenElement',\n eventK: 'webkit' + tF,\n };\n } else if (dE.msRequestFullscreen) {\n api = {\n enterK: 'msRequestFullscreen',\n exitK: 'msExitFullscreen',\n elementK: 'msFullscreenElement',\n eventK: 'MSFullscreenChange',\n };\n }\n\n if (api) {\n api.enter = function() {\n // disable close-on-scroll in fullscreen\n _initalCloseOnScrollValue = _options.closeOnScroll;\n _options.closeOnScroll = false;\n\n if (this.enterK === 'webkitRequestFullscreen') {\n pswp.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT);\n } else {\n return pswp.template[this.enterK]();\n }\n };\n api.exit = function() {\n _options.closeOnScroll = _initalCloseOnScrollValue;\n\n return document[this.exitK]();\n };\n api.isFullscreen = function() {\n return document[this.elementK];\n };\n }\n\n return api;\n };\n };\n return PhotoSwipeUI_Default;\n});\n/* eslint-enable */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Api = require(\"../../Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar $$Promise = require(\"../../../bindings/Promise.bs.js\");\nvar ActionCable = require(\"../../../bindings/ActionCable.bs.js\");\n\nvar state = {\n listingId: undefined,\n subscription: undefined,\n subscriptionConnectedCallback: (function (prim) {\n \n }),\n subscriptionReceivedDataHandler: (function (prim) {\n \n }),\n responseSuccessHandler: (function (prim) {\n \n }),\n responseErrorHandler: (function (prim) {\n \n })\n};\n\nfunction teardown(param) {\n var match = state.subscription;\n if (match !== undefined) {\n var subscription = match._0;\n subscription.unsubscribe();\n subscription.consumer.disconnect();\n state.subscription = undefined;\n }\n state.listingId = undefined;\n state.subscriptionReceivedDataHandler = (function (prim) {\n \n });\n state.responseSuccessHandler = (function (prim) {\n \n });\n state.responseErrorHandler = (function (prim) {\n \n });\n}\n\nfunction isValidListingId(listingId) {\n var storedListingId = state.listingId;\n if (storedListingId !== undefined) {\n return storedListingId === listingId;\n } else {\n return false;\n }\n}\n\nfunction useOrInitializeSubscription(callback) {\n state.subscriptionConnectedCallback = callback;\n var match = state.subscription;\n if (match !== undefined) {\n if (match.TAG === /* Disconnected */0) {\n return ;\n } else {\n return Curry._1(state.subscriptionConnectedCallback, undefined);\n }\n } else {\n state.subscription = {\n TAG: /* Disconnected */0,\n _0: ActionCable.subscribeConsumer(\"ListingsResyncChannel\", {\n connected: (function (param) {\n var match = state.subscription;\n if (match !== undefined && match.TAG === /* Disconnected */0) {\n state.subscription = {\n TAG: /* Connected */1,\n _0: match._0\n };\n }\n Curry._1(state.subscriptionConnectedCallback, undefined);\n }),\n received: (function (data) {\n Curry._1(state.subscriptionReceivedDataHandler, data);\n }),\n disconnected: (function (param) {\n Curry._1(state.responseErrorHandler, undefined);\n teardown(undefined);\n })\n })\n };\n return ;\n }\n}\n\nfunction requestAndHandleResyncResults(param) {\n var storedListingId = state.listingId;\n if (storedListingId !== undefined) {\n return $$Promise.wait(Api.syncOfflineListing(storedListingId), (function (x) {\n if (x.TAG === /* Ok */0) {\n var res = x._0;\n var match = isValidListingId(res.id);\n var match$1 = res.active;\n var match$2 = res.resyncStatus;\n if (!match) {\n return ;\n }\n switch (match$2) {\n case /* Resyncable */0 :\n if (match$1) {\n return ;\n } else {\n Curry._1(state.responseErrorHandler, undefined);\n return teardown(undefined);\n }\n case /* NotResyncable */1 :\n if (res.isSyncError) {\n Curry._1(state.responseErrorHandler, undefined);\n } else {\n Curry._1(state.responseSuccessHandler, res.id);\n }\n return teardown(undefined);\n case /* UserRequestedScheduled */2 :\n return ;\n case /* Invalid */3 :\n return teardown(undefined);\n \n }\n } else {\n Curry._1(state.responseErrorHandler, undefined);\n return teardown(undefined);\n }\n }));\n }\n \n}\n\nfunction subscribeToChannelAndSetHandlers(onReady) {\n useOrInitializeSubscription(function (param) {\n state.subscriptionReceivedDataHandler = (function (data) {\n if (isValidListingId(data.listingId)) {\n return requestAndHandleResyncResults(undefined);\n }\n \n });\n Curry._1(onReady, undefined);\n });\n}\n\nfunction exec(listingId, onComplete, onError) {\n state.listingId = listingId;\n state.responseSuccessHandler = onComplete;\n state.responseErrorHandler = onError;\n subscribeToChannelAndSetHandlers(requestAndHandleResyncResults);\n}\n\nexports.state = state;\nexports.teardown = teardown;\nexports.isValidListingId = isValidListingId;\nexports.useOrInitializeSubscription = useOrInitializeSubscription;\nexports.requestAndHandleResyncResults = requestAndHandleResyncResults;\nexports.subscribeToChannelAndSetHandlers = subscribeToChannelAndSetHandlers;\nexports.exec = exec;\n/* Api Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Rest = require(\"../transport/Rest.bs.js\");\nvar $$Promise = require(\"../../bindings/Promise.bs.js\");\nvar Json_decode = require(\"@glennsl/bs-json/src/Json_decode.bs.js\");\nvar AwsImageHandlerV5 = require(\"../../libs/AwsImageHandlerV5.bs.js\");\n\nfunction fromJson(json) {\n var match = Json_decode.field(\"code\", Json_decode.string, json);\n switch (match) {\n case \"ImageDownloadHttpClientError\" :\n case \"ImageDownloadHttpResponseError\" :\n case \"ImageDownloadRedirectLocationMissing\" :\n return /* Broken */1;\n default:\n return /* Ok */0;\n }\n}\n\nvar $$Error = {\n fromJson: fromJson\n};\n\nfunction exec(imageUrl) {\n return $$Promise.andThen(Rest.$$fetch({\n NAME: \"External\",\n VAL: AwsImageHandlerV5.buildImageUrl(imageUrl, undefined, undefined, undefined, undefined, undefined)\n }, \"Get\", {\n NAME: \"Json\",\n VAL: (function (param) {\n return /* Ok */0;\n })\n }, {\n NAME: \"Json\",\n VAL: fromJson\n }, undefined, undefined), (function (res) {\n if (res.TAG === /* Ok */0) {\n return $$Promise.resolve(/* Ok */0);\n }\n var res$1 = res._0;\n if (res$1 !== undefined) {\n return $$Promise.resolve(res$1);\n } else {\n return $$Promise.resolve(/* Ok */0);\n }\n }));\n}\n\nexports.$$Error = $$Error;\nexports.exec = exec;\n/* Rest Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar Colors = require(\"../../../../styleguide/styles/Colors.bs.js\");\nvar LineChart = require(\"../../../../styleguide/components/LineChart/LineChart.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar BookingCalculator = require(\"../../../../models/BookingCalculator.bs.js\");\nvar BookingCalculatorMessages = require(\"../BookingCalculatorMessages.bs.js\");\nvar BookingCalculatorLineChartScss = require(\"./BookingCalculatorLineChart.scss\").default;\n\nvar css = BookingCalculatorLineChartScss;\n\nfunction BookingCalculatorLineChart(props) {\n var calculator = props.calculator;\n var intl = ReactIntl.useIntl();\n return React.createElement(\"div\", {\n className: css.chart\n }, React.createElement(LineChart.make, {\n data: [\n {\n label: intl.formatMessage(BookingCalculatorMessages.rent),\n value: BookingCalculator.getRentWithDiscount(calculator.dailyRate, calculator.numberOfNights, calculator.discount.value + calculator.cashDiscount.value),\n color: Colors.success\n },\n {\n label: intl.formatMessage(BookingCalculatorMessages.serviceFees),\n value: BookingCalculator.getTotalFees(calculator),\n color: Colors.primary\n },\n {\n label: intl.formatMessage(BookingCalculatorMessages.taxes),\n value: calculator.taxes,\n color: Colors.gray\n },\n {\n label: intl.formatMessage(BookingCalculatorMessages.otherExpenses),\n value: BookingCalculator.OtherExpenses.getTotal(calculator.otherExpenses),\n color: Colors.yellow\n }\n ]\n }));\n}\n\nvar make = BookingCalculatorLineChart;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Layout = require(\"../../../../styleguide/styles/Layout.bs.js\");\nvar MoveTo = require(\"../../../../bindings/MoveTo.bs.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar SlvBlockModuleScss = require(\"./SlvBlock.module.scss\").default;\n\nvar css = SlvBlockModuleScss;\n\nvar _map = {\"Summary\":\"slv-block--summary\",\"BookingCalculator\":\"slv-block--booking-calculator\",\"DealsOnOtherSites\":\"slv-block--deals-on-other-sites\",\"Deals\":\"slv-block--deals\",\"AreYouTheOwner\":\"slv-block--are-you-the-owner\",\"DetailsAndDescription\":\"slv-block--details--and--description\",\"Amenities\":\"slv-block--amenities\",\"Rates\":\"slv-block--rates\",\"Calendar\":\"slv-block--calendar\",\"Photos\":\"slv-block--photos\",\"Location\":\"slv-block--location\",\"Rules\":\"slv-block--rules\",\"Reviews\":\"slv-block--reviews\",\"Host\":\"slv-block--host\",\"SimilarListings\":\"slv-block--similar-listings\",\"AlternativeBookingLinks\":\"slv-block--alternative-booking-links\",\"SaveYourMoney\":\"slv-block--save-your-money\"};\n\nvar _revMap = {\"slv-block--summary\":\"Summary\",\"slv-block--booking-calculator\":\"BookingCalculator\",\"slv-block--deals-on-other-sites\":\"DealsOnOtherSites\",\"slv-block--deals\":\"Deals\",\"slv-block--are-you-the-owner\":\"AreYouTheOwner\",\"slv-block--details--and--description\":\"DetailsAndDescription\",\"slv-block--amenities\":\"Amenities\",\"slv-block--rates\":\"Rates\",\"slv-block--calendar\":\"Calendar\",\"slv-block--photos\":\"Photos\",\"slv-block--location\":\"Location\",\"slv-block--rules\":\"Rules\",\"slv-block--reviews\":\"Reviews\",\"slv-block--host\":\"Host\",\"slv-block--similar-listings\":\"SimilarListings\",\"slv-block--alternative-booking-links\":\"AlternativeBookingLinks\",\"slv-block--save-your-money\":\"SaveYourMoney\"};\n\nfunction idToJs(param) {\n return _map[param];\n}\n\nfunction idFromJs(param) {\n return _revMap[param];\n}\n\nfunction eq(x1, x2) {\n return idToJs(x1) === idToJs(x2);\n}\n\nfunction scrollPageTo(block, screen) {\n var offset = screen === \"XS\" || screen === \"SM\" || screen === \"MD\" ? Layout.navbarMobileHeight : Layout.navbarHeight;\n var mover = MoveTo.make(offset);\n var el = document.getElementById(idToJs(block));\n if (!(el == null)) {\n mover.move(el);\n return ;\n }\n \n}\n\nvar make = React.forwardRef(function (props, ref) {\n var wrapperClassName = props.wrapperClassName;\n var wrapperClassName$1 = wrapperClassName !== undefined ? wrapperClassName : \"\";\n return React.createElement(\"div\", {\n ref: Belt_Option.map((ref == null) ? undefined : Caml_option.some(ref), (function (prim) {\n return prim;\n })),\n className: Cx.cx([\n css.block,\n wrapperClassName$1\n ]),\n id: idToJs(props.id)\n }, props.children);\n });\n\nfunction SlvBlock$NoIdent(props) {\n return React.createElement(\"div\", {\n className: css.block\n }, props.children);\n}\n\nvar NoIdent = {\n make: SlvBlock$NoIdent\n};\n\nfunction SlvBlock$Inline(props) {\n return React.createElement(\"div\", {\n className: css.inlineBlock,\n id: idToJs(props.id)\n }, props.children);\n}\n\nvar Inline = {\n make: SlvBlock$Inline\n};\n\nfunction SlvBlock$Title(props) {\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(\"h2\", {\n className: Cx.cx([\n css.title,\n className$1\n ])\n }, props.children);\n}\n\nvar Title = {\n make: SlvBlock$Title\n};\n\nfunction SlvBlock$SubTitle(props) {\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(\"h2\", {\n className: Cx.cx([\n css.subTitle,\n className$1\n ])\n }, props.children);\n}\n\nvar SubTitle = {\n make: SlvBlock$SubTitle\n};\n\nfunction SlvBlock$Footer(props) {\n return React.createElement(\"div\", {\n className: Cx.cx([\n css.footer,\n props.className\n ])\n }, props.children);\n}\n\nvar Footer = {\n make: SlvBlock$Footer\n};\n\nexports.css = css;\nexports.idToJs = idToJs;\nexports.idFromJs = idFromJs;\nexports.eq = eq;\nexports.scrollPageTo = scrollPageTo;\nexports.make = make;\nexports.NoIdent = NoIdent;\nexports.Inline = Inline;\nexports.Title = Title;\nexports.SubTitle = SubTitle;\nexports.Footer = Footer;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar React = require(\"react\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\n\nfunction SlvClickableItem(props) {\n var listingId = props.listingId;\n var action = props.action;\n return React.createElement(\"div\", {\n role: \"presentation\",\n onClick: (function (param) {\n $$Promise.wait(Api.postListingItemClickFromHc(listingId, action), (function (prim) {\n \n }));\n })\n }, props.children);\n}\n\nvar make = SlvClickableItem;\n\nexports.make = make;\n/* Api Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar SlvHtmlTextModuleScss = require(\"./SlvHtmlText.module.scss\").default;\n\nvar css = SlvHtmlTextModuleScss;\n\nfunction paragraphs(x) {\n return Belt_Array.keep(x.split(\"\\n\"), (function (x) {\n if (x === \"\") {\n return false;\n } else {\n return true;\n }\n }));\n}\n\nfunction SlvHtmlText(props) {\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(\"div\", {\n className: Cx.cx([\n css.paragraphWrapper,\n className$1\n ])\n }, Belt_Array.mapWithIndex(paragraphs(props.htmlText), (function (idx, paragraph) {\n return React.createElement(\"p\", {\n key: String(idx),\n className: css.paragraph,\n dangerouslySetInnerHTML: {\n __html: paragraph\n }\n });\n })));\n}\n\nvar make = SlvHtmlText;\n\nexports.css = css;\nexports.paragraphs = paragraphs;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Form = require(\"../../../../styleguide/forms/Form/Form.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Spinner = require(\"../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar TextField = require(\"../../../../styleguide/forms/TextField/TextField.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar SlvEmailComparisonButtonScss = require(\"./SlvEmailComparisonButton.scss\").default;\n\nvar css = SlvEmailComparisonButtonScss;\n\nfunction SlvEmailComparisonButton$TextFieldWithValidation(props) {\n var status = props.status;\n var tmp;\n tmp = status !== undefined && status.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var tmp$1;\n tmp$1 = status !== undefined && status.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.error\n }, React.createElement(\"span\", undefined, status._0)) : null;\n return React.createElement(\"div\", undefined, React.createElement(TextField.make, {\n id: props.name,\n size: /* MD */1,\n value: props.value,\n placeholder: props.placeholder,\n status: tmp,\n className: css.textInput,\n onChange: props.onChange,\n onBlur: props.onBlur\n }), tmp$1);\n}\n\nvar TextFieldWithValidation = {\n make: SlvEmailComparisonButton$TextFieldWithValidation\n};\n\nfunction SlvEmailComparisonButton$SlvEmailComparisonValidation(props) {\n var form = props.form;\n return React.createElement(Form.make, {\n className: css.emailComparisonForm,\n onSubmit: form.submit,\n children: null\n }, React.createElement(SlvEmailComparisonButton$TextFieldWithValidation, {\n name: \"email\",\n value: form.input.email,\n status: form.emailResult,\n onChange: (function ($$event) {\n Curry._2(form.updateEmail, (function (param, value) {\n return {\n email: value\n };\n }), $$event.target.value);\n }),\n placeholder: \"Enter your email here\"\n }), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n submit: true,\n style: /* Expanded */2,\n className: css.quoteButton,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.email-comparison-button.email-me\",\n defaultMessage: \"Email comparison\"\n })\n }));\n}\n\nvar SlvEmailComparisonValidation = {\n make: SlvEmailComparisonButton$SlvEmailComparisonValidation\n};\n\nfunction SlvEmailComparisonButton(props) {\n var form = props.form;\n var tmp;\n switch (props.state) {\n case /* DateSelected */1 :\n tmp = null;\n break;\n case /* WaitingQuoteId */0 :\n case /* QuoteIdReady */2 :\n tmp = React.createElement(SlvEmailComparisonButton$SlvEmailComparisonValidation, {\n form: form\n });\n break;\n case /* Submitting */3 :\n tmp = React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n disabled: true,\n className: Cx.cx([\n css.quoteButton,\n css.quoteLoading\n ]),\n children: null\n }, React.createElement(Spinner.make, {\n size: /* MD */1,\n color: /* White */1,\n centered: false\n }), React.createElement(\"span\", {\n className: css.textBtnSpace\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.email-comparison-button.sending-email\",\n defaultMessage: \"Sending email...\"\n })));\n break;\n case /* Success */4 :\n tmp = React.createElement(\"p\", {\n className: css.successMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.email-comparison-button.email-sent\",\n defaultMessage: \"HiChee Price Comparison sent. Check your email!\"\n }));\n break;\n case /* Fail */5 :\n tmp = React.createElement(React.Fragment, undefined, React.createElement(SlvEmailComparisonButton$SlvEmailComparisonValidation, {\n form: form\n }), React.createElement(\"p\", {\n className: Cx.cx([\n css.quoteMessage,\n css.errorText\n ])\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.email-comparison-button.email-failed\",\n defaultMessage: \"It wasn't possible to send an email. Please try again later.\"\n })));\n break;\n case /* EmptyQuote */6 :\n tmp = React.createElement(React.Fragment, undefined, React.createElement(\"p\", {\n className: Cx.cx([\n css.quoteMessage,\n css.errorText\n ])\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.email-comparison-button.quote-failed\",\n defaultMessage: \"No quote was created. Please refresh the page and try again.\"\n })), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n disabled: true,\n className: css.quoteDisabled,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.email-comparison-button.email-me\",\n defaultMessage: \"Email comparison\"\n })\n }));\n break;\n \n }\n return React.createElement(\"div\", {\n className: css.wrapper\n }, tmp);\n}\n\nvar make = SlvEmailComparisonButton;\n\nexports.css = css;\nexports.TextFieldWithValidation = TextFieldWithValidation;\nexports.SlvEmailComparisonValidation = SlvEmailComparisonValidation;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Gtag = require(\"../../../../libs/Gtag.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../../libs/Hooks.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar EmailForm = require(\"../../../../styleguide/forms/EmailForm/EmailForm.bs.js\");\n\nfunction requestQuote(userFirstName, email, listing, quoteId, dispatch, formCallbacks) {\n Amplitude.Slv.emailMePriceComparison(listing.id, Listing.Contextual.isVerified(listing));\n if (quoteId !== undefined) {\n return Curry._1(dispatch, {\n TAG: /* RequestEmailQuote */0,\n quoteId: quoteId,\n userFirstName: userFirstName,\n email: email,\n formCallbacks: formCallbacks\n });\n } else {\n return Curry._1(dispatch, {\n TAG: /* RequestEmailQuoteWithoutDates */1,\n userFirstName: userFirstName,\n email: email,\n formCallbacks: formCallbacks\n });\n }\n}\n\nfunction useQuote(user, listing, quoteId, bookingStatus, checkin, checkout) {\n var initialState = quoteId !== undefined ? /* QuoteIdReady */2 : /* WaitingQuoteId */0;\n var match = Hooks.useReducer(initialState, (function (param, action) {\n if (typeof action === \"number\") {\n switch (action) {\n case /* WaitingQuoteId */0 :\n return {\n TAG: /* Update */0,\n _0: /* WaitingQuoteId */0\n };\n case /* QuoteIdReady */1 :\n return {\n TAG: /* Update */0,\n _0: /* QuoteIdReady */2\n };\n case /* DateSelected */2 :\n return {\n TAG: /* Update */0,\n _0: /* DateSelected */1\n };\n case /* HandleEmptyQuote */3 :\n return {\n TAG: /* Update */0,\n _0: /* EmptyQuote */6\n };\n \n }\n } else {\n switch (action.TAG | 0) {\n case /* RequestEmailQuote */0 :\n var formCallbacks = action.formCallbacks;\n var email = action.email;\n var userFirstName = action.userFirstName;\n var quoteId = action.quoteId;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: /* Submitting */3,\n _1: (function (param) {\n var dispatch = param.dispatch;\n Gtag.Slv.quoteSnapshotButtonClick(listing.id);\n $$Promise.wait(Api.getEmailQuote(quoteId, userFirstName, email), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* HandleServerSuccess */2,\n _0: formCallbacks\n });\n } else {\n return Curry._1(dispatch, {\n TAG: /* HandleServerFailure */3,\n _0: formCallbacks\n });\n }\n }));\n })\n };\n case /* RequestEmailQuoteWithoutDates */1 :\n var formCallbacks$1 = action.formCallbacks;\n var email$1 = action.email;\n var userFirstName$1 = action.userFirstName;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: /* Submitting */3,\n _1: (function (param) {\n var dispatch = param.dispatch;\n Gtag.Slv.quoteSnapshotButtonClick(listing.id);\n $$Promise.wait(Api.getEmailQuoteWithoutDates(listing.id, userFirstName$1, email$1), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* HandleServerSuccess */2,\n _0: formCallbacks$1\n });\n } else {\n return Curry._1(dispatch, {\n TAG: /* HandleServerFailure */3,\n _0: formCallbacks$1\n });\n }\n }));\n })\n };\n case /* HandleServerSuccess */2 :\n var formCallbacks$2 = action._0;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: /* Success */4,\n _1: (function (param) {\n Curry._1(formCallbacks$2.reset, undefined);\n })\n };\n case /* HandleServerFailure */3 :\n var formCallbacks$3 = action._0;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: /* Fail */5,\n _1: (function (param) {\n Curry._1(formCallbacks$3.notifyOnFailure, undefined);\n })\n };\n \n }\n }\n }));\n var dispatch = match[1];\n var email = user.email;\n var initialInput = {\n email: email !== undefined ? email : \"\"\n };\n var form = EmailForm.useForm(initialInput, (function (output, cb) {\n var userFirstName = user.firstName;\n requestQuote(userFirstName !== undefined ? userFirstName : undefined, output.email, listing, quoteId, dispatch, cb);\n }));\n React.useEffect((function () {\n if (quoteId !== undefined) {\n Curry._1(dispatch, /* QuoteIdReady */1);\n }\n \n }), [quoteId]);\n React.useEffect((function () {\n if (typeof bookingStatus === \"number\") {\n bookingStatus === /* Hibernate */0;\n } else if (bookingStatus.TAG === /* FetchingQuote */0) {\n if (typeof bookingStatus._0 === \"object\" || !(checkin !== undefined && checkout !== undefined)) {\n \n } else {\n Curry._1(dispatch, /* DateSelected */2);\n }\n } else {\n var match = bookingStatus._0;\n if (match.TAG !== /* Ok */0) {\n if (match._0 === \"FetchQuoteError\") {\n Curry._1(dispatch, /* HandleEmptyQuote */3);\n }\n \n }\n \n }\n }), [\n checkin,\n checkout,\n bookingStatus\n ]);\n return [\n match[0],\n dispatch,\n form\n ];\n}\n\nexports.requestQuote = requestQuote;\nexports.useQuote = useQuote;\n/* Api Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar SlvBooking = require(\"../../ui/SlvBooking.bs.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar RailsContext = require(\"../../../../models/RailsContext.bs.js\");\nvar React$1 = require(\"@sentry/react\");\nvar SlvSharePricingModal = require(\"./SlvSharePricingModal.bs.js\");\nvar SlvSharePricingModalScss = require(\"./SlvSharePricingModal.scss\").default;\n\nvar css = SlvSharePricingModalScss;\n\nfunction SlvSharePricingContainer(props) {\n var booking = props.booking;\n var listing = props.listing;\n var modal = props.modal;\n var domain = React.useMemo((function () {\n var scheme = RailsContext.getScheme(undefined);\n var host = RailsContext.getHost(undefined);\n var port = Belt_Option.map(RailsContext.getPort(undefined), (function (prim) {\n return String(prim);\n }));\n if (port !== undefined) {\n return \"\" + scheme + \"://\" + host + \":\" + port;\n } else {\n return \"\" + scheme + \"://\" + host;\n }\n }), []);\n var url = React.useMemo((function () {\n return Route.slvFullUrl(domain, listing.id, SlvBooking.Input.toUrlParams(true, booking.input));\n }), [\n domain,\n listing.id,\n booking.input\n ]);\n var match = React.useState(function () {\n \n });\n var setSharingUrl = match[1];\n React.useEffect((function () {\n var match = modal.state;\n var match$1 = booking.input.checkIn;\n var match$2 = booking.input.checkOut;\n var exit = 0;\n if (match === \"Shown\") {\n if (match$1 !== undefined && match$2 !== undefined) {\n $$Promise.wait(Api.generateShortenedUrl(url), (function (response) {\n if (response.TAG === /* Ok */0) {\n var result = response._0;\n return Curry._1(setSharingUrl, (function (param) {\n return Route.fullShortenedUrl(domain, result.slug);\n }));\n }\n Curry._1(setSharingUrl, (function (param) {\n return url;\n }));\n React$1.captureException(response._0);\n }));\n } else {\n exit = 1;\n }\n }\n if (exit === 1) {\n Curry._1(setSharingUrl, (function (param) {\n return url;\n }));\n }\n \n }), [\n modal.state,\n booking.input.checkIn,\n booking.input.checkOut\n ]);\n return React.createElement(SlvSharePricingModal.make, {\n modal: modal,\n listing: listing,\n user: props.user,\n booking: booking,\n sharingUrl: match[0],\n setSharingUrl: setSharingUrl,\n url: url\n });\n}\n\nvar make = SlvSharePricingContainer;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar $$Date = require(\"../../../../libs/Date.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Booking = require(\"../../../../models/Booking.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Spinner = require(\"../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar SlvQuote = require(\"./SlvQuote.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar ShareModal = require(\"../../../../styleguide/components/ShareModal/ShareModal.bs.js\");\nvar SlvBooking = require(\"../../ui/SlvBooking.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar SocialPlatform = require(\"../../../../styleguide/components/ShareModal/SocialPlatform.bs.js\");\nvar SlvEmailComparisonButton = require(\"./SlvEmailComparisonButton.bs.js\");\nvar SlvSharePricingModalScss = require(\"./SlvSharePricingModal.scss\").default;\n\nvar css = SlvSharePricingModalScss;\n\nfunction getText(text) {\n if (text !== undefined) {\n return \"\\n\" + text + \"\\n\";\n } else {\n return \"\";\n }\n}\n\nfunction getProviderPrices(providerStatus) {\n if (providerStatus === undefined) {\n return [\n 0.0,\n 0.0\n ];\n }\n if (!providerStatus) {\n return [\n 0.0,\n 0.0\n ];\n }\n var match = providerStatus._0;\n if (match.TAG !== /* Ok */0) {\n return [\n 0.0,\n 0.0\n ];\n }\n var match$1 = match._0;\n return [\n match$1.avgPricePerNight,\n match$1.total\n ];\n}\n\nfunction SlvSharePricingModal(props) {\n var url = props.url;\n var setSharingUrl = props.setSharingUrl;\n var sharingUrl = props.sharingUrl;\n var booking = props.booking;\n var listing = props.listing;\n var intl = ReactIntl.useIntl();\n var getQuoteId = function (x) {\n if (typeof x === \"number\") {\n return ;\n }\n if (x.TAG === /* FetchingQuote */0) {\n var match = x._0;\n if (typeof match === \"object\") {\n return match.VAL.id;\n } else {\n return ;\n }\n }\n var match$1 = x._0;\n if (match$1.TAG !== /* Ok */0) {\n return ;\n }\n var match$2 = match$1._0;\n if (typeof match$2 === \"object\") {\n return match$2.VAL.id;\n }\n \n };\n var match = SlvQuote.useQuote(props.user, listing, getQuoteId(booking.status), booking.status, booking.input.checkIn, booking.input.checkOut);\n var dispatch = match[1];\n var quoteState = match[0];\n var dates = React.useMemo((function () {\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n if (match === undefined) {\n return ;\n }\n var checkIn = Caml_option.valFromOption(match);\n if (match$1 === undefined) {\n return ;\n }\n var checkOut = Caml_option.valFromOption(match$1);\n return \"Travel Dates: \" + (\n $$Date.Naive.year(checkIn) === $$Date.Naive.year(checkOut) ? (\n $$Date.Naive.month(checkIn) === $$Date.Naive.month(checkOut) ? \"\" + $$Date.Naive.format(checkIn, \"MMM d\") + \"-\" + $$Date.Naive.format(checkOut, \"d, yyyy\") + \"\" : \"\" + $$Date.Naive.format(checkIn, \"MMM d\") + \" - \" + $$Date.Naive.format(checkOut, \"MMM d, yyyy\") + \"\"\n ) : $$Date.Naive.format(checkIn, \"MMM d, yyyy\") + \" - \" + $$Date.Naive.format(checkOut, \"MMM d, yyyy\")\n );\n }), [\n booking.input.checkIn,\n booking.input.checkOut\n ]);\n var prices = React.useMemo((function () {\n var quote = SlvBooking.Status.quote(booking.status);\n var airbnbStatus = Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, /* Airbnb */1);\n }));\n var match = getProviderPrices(airbnbStatus);\n var airbnbTotal = match[1];\n var airbnbAvgPerNight = match[0];\n var vrboStatus = Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, /* Vrbo */3);\n }));\n var match$1 = getProviderPrices(vrboStatus);\n var vrboTotal = match$1[1];\n var vrboAvgPerNight = match$1[0];\n var bookingcomStatus = Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, /* Bookingcom */2);\n }));\n var match$2 = getProviderPrices(bookingcomStatus);\n var bookingcomTotal = match$2[1];\n var bookingcomAvgPerNight = match$2[0];\n var hicheeStatus = Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, /* Hichee */0);\n }));\n var match$3 = getProviderPrices(hicheeStatus);\n var hicheeTotal = match$3[1];\n var hicheeAvgPerNight = match$3[0];\n if (dates !== undefined) {\n var total = airbnbTotal + bookingcomTotal + vrboTotal + hicheeTotal;\n if (total > 0.0) {\n return \"Pricing from major booking sites:\" + (\n airbnbTotal > 0.0 ? \"\\nAirbnb: \" + Currency.formatWithoutCents(listing.currency, airbnbTotal, intl) + \"\" : \"\"\n ) + (\n bookingcomTotal > 0.0 ? \"\\nBooking: \" + Currency.formatWithoutCents(listing.currency, bookingcomTotal, intl) + \"\" : \"\"\n ) + (\n vrboTotal > 0.0 ? \"\\nVrbo: \" + Currency.formatWithoutCents(listing.currency, vrboTotal, intl) + \"\" : \"\"\n ) + (\n hicheeTotal > 0.0 ? \"\\nEstimated Direct: \" + Currency.formatWithoutCents(listing.currency, hicheeTotal, intl) + \"\" : \"\"\n );\n } else {\n return ;\n }\n }\n var total$1 = airbnbAvgPerNight + bookingcomAvgPerNight + vrboAvgPerNight + hicheeAvgPerNight;\n if (total$1 > 0.0) {\n return \"\\n\\nAvg/night from major booking sites:\" + (\n airbnbAvgPerNight > 0.0 ? \"\\nAirbnb: \" + Currency.formatWithoutCents(listing.currency, airbnbAvgPerNight, intl) + \"\" : \"\"\n ) + (\n bookingcomAvgPerNight > 0.0 ? \"\\nBooking: \" + Currency.formatWithoutCents(listing.currency, bookingcomAvgPerNight, intl) + \"\" : \"\"\n ) + (\n vrboAvgPerNight > 0.0 ? \"\\nVrbo: \" + Currency.formatWithoutCents(listing.currency, vrboAvgPerNight, intl) + \"\" : \"\"\n ) + (\n hicheeAvgPerNight > 0.0 ? \"\\nEstimated Direct: \" + Currency.formatWithoutCents(listing.currency, hicheeAvgPerNight, intl) + \"\" : \"\"\n );\n }\n \n }), [\n listing.vrbpData.airbnb,\n listing.vrbpData.vrbo,\n listing.vrbpData.bookingcom,\n listing.vrbpData.hichee,\n booking.status,\n dates\n ]);\n var state = listing.state;\n var locationText = state !== undefined ? \"\" + listing.city + \", \" + state + \"\" : listing.city;\n var datesText = getText(dates);\n var pricesText = getText(prices);\n var sharedText = \"Check out the HiChee price comparison results I found for this vacation rental in \" + locationText + \". \" + url + \"\\n\" + listing.title + \"\\n\" + datesText + \"\" + pricesText + \"\";\n var sharedShortText = \"Check out the HiChee price comparison results I found for this \" + listing.title + \" vacation rental in \" + locationText + \":\\n\" + datesText + \"\\n\" + pricesText + \"\\n\\nVisit HiChee \" + url + \" for more details.\";\n var onSharePricingModalClose = function (param) {\n Curry._1(setSharingUrl, (function (param) {\n \n }));\n var match = booking.status;\n if (typeof match === \"number\") {\n if (match === /* Hibernate */0) {\n return Curry._1(dispatch, /* HandleEmptyQuote */3);\n }\n \n } else if (match.TAG === /* FetchingQuote */0) {\n if (typeof match._0 !== \"object\") {\n var match$1 = booking.input.checkIn;\n var match$2 = booking.input.checkOut;\n if (match$1 !== undefined && match$2 !== undefined) {\n return Curry._1(dispatch, /* DateSelected */2);\n } else {\n return ;\n }\n }\n \n } else {\n var match$3 = match._0;\n if (match$3.TAG === /* Ok */0) {\n typeof match$3._0 === \"object\";\n } else if (match$3._0 === \"FetchQuoteError\") {\n return Curry._1(dispatch, /* HandleEmptyQuote */3);\n }\n \n }\n var match$4 = getQuoteId(booking.status);\n if (match$4 !== undefined) {\n return Curry._1(dispatch, /* QuoteIdReady */1);\n } else {\n return Curry._1(dispatch, /* WaitingQuoteId */0);\n }\n };\n var errorBlock;\n var exit = 0;\n var exit$1 = 0;\n if (sharingUrl !== undefined) {\n if (quoteState !== 1 && quoteState < 6) {\n if (dates !== undefined && prices !== undefined) {\n errorBlock = undefined;\n } else {\n exit = 1;\n }\n } else {\n exit$1 = 2;\n }\n } else {\n errorBlock = Caml_option.some(React.createElement(React.Fragment, undefined));\n }\n if (exit$1 === 2) {\n if (dates !== undefined) {\n errorBlock = Caml_option.some(React.createElement(React.Fragment, undefined));\n } else {\n exit = 1;\n }\n }\n if (exit === 1) {\n errorBlock = Caml_option.some(React.createElement(\"div\", {\n className: css.emptyDatesText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.share-pricing-modal.empty-dates\",\n defaultMessage: \"Select the dates to get more sharing options\"\n })));\n }\n var loadingBlock = quoteState !== 1 ? (\n sharingUrl !== undefined ? undefined : Caml_option.some(React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.separator\n }), React.createElement(\"div\", {\n className: css.sendQuoteButton\n }, React.createElement(\"div\", {\n className: css.quoteButtonWrapper\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n disabled: true,\n className: Cx.cx([\n css.quoteButton,\n css.quoteLoading\n ]),\n children: null\n }, React.createElement(Spinner.make, {\n size: /* MD */1,\n color: /* Primary */0,\n centered: false\n }), React.createElement(\"span\", {\n className: css.textBtnSpace\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.share-pricing-modal.generating-urls\",\n defaultMessage: \"Generating URLs...\"\n })))))))\n ) : Caml_option.some(React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.separator\n }), React.createElement(\"div\", {\n className: css.sendQuoteButton\n }, React.createElement(\"div\", {\n className: css.quoteButtonWrapper\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n disabled: true,\n className: Cx.cx([\n css.quoteButton,\n css.quoteLoading\n ]),\n children: null\n }, React.createElement(Spinner.make, {\n size: /* MD */1,\n color: /* Primary */0,\n centered: false\n }), React.createElement(\"span\", {\n className: css.textBtnSpace\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.share-pricing-modal.generating-quote\",\n defaultMessage: \"Generating Quote...\"\n })))))));\n var emailBlock = quoteState !== 1 ? Caml_option.some(React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.separator\n }), React.createElement(\"div\", {\n className: css.shareTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.share-pricing-modal.share-with-yourself\",\n defaultMessage: \"Send the full quote to yourself\"\n })), React.createElement(\"div\", {\n className: css.sendQuoteButton\n }, React.createElement(SlvEmailComparisonButton.make, {\n state: quoteState,\n form: match[2]\n })))) : undefined;\n return React.createElement(ShareModal.make, {\n modal: props.modal,\n header: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.share-pricing-modal.title\",\n defaultMessage: \"Share Pricing\"\n }),\n listing: listing,\n sharedText: sharedText,\n sharedShortText: sharedShortText,\n sharedUrl: url,\n onShare: (function (platform) {\n Amplitude.Slv.sharePricing(listing.id, Listing.Contextual.isVerified(listing), SocialPlatform.toString(platform));\n }),\n onExited: onSharePricingModalClose,\n onTextCopy: (function (param) {\n Amplitude.Slv.copyPricingQuote(listing.id, Listing.Contextual.isVerified(listing));\n }),\n onLinkCopy: (function (param) {\n Amplitude.Slv.copyPricingLink(listing.id, Listing.Contextual.isVerified(listing));\n }),\n loadingBlock: loadingBlock,\n errorBlock: errorBlock,\n emailBlock: emailBlock,\n copySectionTestId: \"slv-share-pricing-modal-detail\"\n });\n}\n\nvar make = SlvSharePricingModal;\n\nexports.css = css;\nexports.getText = getText;\nexports.getProviderPrices = getProviderPrices;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar SlvTableModuleScss = require(\"./SlvTable.module.scss\").default;\n\nvar css = SlvTableModuleScss;\n\nfunction SlvTable(props) {\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(\"div\", {\n className: Cx.cx([\n css.table,\n className$1\n ])\n }, props.children);\n}\n\nfunction SlvTable$Row(props) {\n return React.createElement(\"div\", {\n className: css.row\n }, props.children);\n}\n\nvar Row = {\n make: SlvTable$Row\n};\n\nfunction SlvTable$Col(props) {\n return React.createElement(\"div\", {\n className: css.col\n }, props.children);\n}\n\nvar Col = {\n make: SlvTable$Col\n};\n\nfunction SlvTable$Cell(props) {\n return React.createElement(\"div\", {\n className: css.cell\n }, props.children);\n}\n\nvar Cell = {\n make: SlvTable$Cell\n};\n\nvar make = SlvTable;\n\nexports.css = css;\nexports.make = make;\nexports.Row = Row;\nexports.Col = Col;\nexports.Cell = Cell;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar GoogleAd = require(\"../../../../styleguide/components/GoogleAd/GoogleAd.bs.js\");\nvar SlvAdsModuleScss = require(\"./SlvAds.module.scss\").default;\n\nvar css = SlvAdsModuleScss;\n\nfunction SlvAds(props) {\n var userSubscription = props.userSubscription;\n return React.createElement(React.Fragment, undefined, React.createElement(GoogleAd.make, {\n slot: \"3496663743\",\n className: css.slvBottomDesktopAd,\n wrapperClassName: css.slvBottomDesktopAdWrapper,\n format: \"auto\",\n fullWidthResponsive: true,\n restrictTo: /* DesktopOnly */1,\n userSubscription: userSubscription\n }), React.createElement(GoogleAd.make, {\n slot: \"9534640240\",\n className: css.slvBottomMobileAd,\n wrapperClassName: css.slvBottomMobileAdWrapper,\n format: \"auto\",\n fullWidthResponsive: true,\n restrictTo: /* MobileOnly */0,\n userSubscription: userSubscription\n }));\n}\n\nvar make = SlvAds;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar OopsVector = require(\"../../../../styleguide/svgs/OopsVector.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar AlternativeLinksFailureModalModuleScss = require(\"./AlternativeLinksFailureModal.module.scss\").default;\n\nvar css = AlternativeLinksFailureModalModuleScss;\n\nfunction AlternativeLinksFailureModal(props) {\n var onTryAgain = props.onTryAgain;\n return React.createElement(ModalDialog.make, {\n modal: props.modal,\n className: css.modal,\n desktopPosition: /* Centered */0,\n mobilePosition: /* Docked */0,\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.heading\",\n defaultMessage: \"Links to This Listing\"\n })),\n testId: \"alternative-links-failure-modal\",\n children: null\n }, React.createElement(OopsVector.make, {\n className: css.oopsVector\n }), React.createElement(\"div\", {\n className: css.title\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.failure-modal.title\",\n defaultMessage: \"Oops... Something went wrong\"\n })), React.createElement(\"p\", {\n className: css.message\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.failure-modal.message\",\n defaultMessage: \"Please try again.\"\n })), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n onClick: (function (param) {\n Curry._1(onTryAgain, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.failure-modal.close\",\n defaultMessage: \"Try Again\"\n })\n }));\n}\n\nvar make = AlternativeLinksFailureModal;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\n\nvar successModalTitle = {\n id: \"alternative-modal-messages.success.title\",\n defaultMessage: \"Thanks for making our site better!\"\n};\n\nvar successModalMessage = {\n id: \"alternative-modal-messages.success.message\",\n defaultMessage: \"These links won't be published until we have verified their accuracy.\"\n};\n\nvar reportModalTitle = {\n id: \"alternative-modal-messages.report.title\",\n defaultMessage: \"Thanks for making our site better!\"\n};\n\nvar reportModalMessage = {\n id: \"alternative-modal-messages.report.message\",\n defaultMessage: \"We will validate the report you sent.\"\n};\n\nvar alternativeLinkInputPlaceholder = {\n id: \"alternative-modal-messages.input.placeholder\",\n defaultMessage: \"Listing Link\"\n};\n\nvar emptyLink = {\n id: \"alternative-modal-messages.error.empty-input\",\n defaultMessage: \"Link is required\"\n};\n\nvar otaLink = {\n id: \"alternative-modal-messages.error.ota-link\",\n defaultMessage: \"Oops! We only accept direct links. Please try again.\"\n};\n\nvar invalidLink = {\n id: \"alternative-modal-messages.error.invalid-link\",\n defaultMessage: \"Oops! Your link seems to be incorrect. Please try again.\"\n};\n\nvar emailNotAllowed = {\n id: \"alternative-modal-messages.error.email-not-allowed\",\n defaultMessage: \"Email addresses are not allowed!\"\n};\n\nexports.successModalTitle = successModalTitle;\nexports.successModalMessage = successModalMessage;\nexports.reportModalTitle = reportModalTitle;\nexports.reportModalMessage = reportModalMessage;\nexports.alternativeLinkInputPlaceholder = alternativeLinkInputPlaceholder;\nexports.emptyLink = emptyLink;\nexports.otaLink = otaLink;\nexports.invalidLink = invalidLink;\nexports.emailNotAllowed = emailNotAllowed;\n/* No side effect */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Url = require(\"../../../../libs/Url.bs.js\");\nvar Form = require(\"../../../../styleguide/forms/Form/Form.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Label = require(\"../../../../styleguide/forms/Label/Label.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar TextField = require(\"../../../../styleguide/forms/TextField/TextField.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar RailsContext = require(\"../../../../models/RailsContext.bs.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\nvar AlternativeLinksMessages = require(\"./AlternativeLinksMessages.bs.js\");\nvar AlternativeLinksModalForm = require(\"./AlternativeLinksModalForm.bs.js\");\nvar AlternativeLinksModalModuleScss = require(\"./AlternativeLinksModal.module.scss\").default;\n\nvar css = AlternativeLinksModalModuleScss;\n\nfunction alternativeLinkDomId(field) {\n return \"alternative-link-\" + field + \"\";\n}\n\nfunction AlternativeLinksModal$TextFieldWithValidation(props) {\n var placeholder = props.placeholder;\n var status = props.status;\n var label = props.label;\n var name = props.name;\n var intl = ReactIntl.useIntl();\n var tmp;\n tmp = status !== undefined && status.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var tmp$1;\n tmp$1 = status !== undefined && status.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.error\n }, React.createElement(\"span\", undefined, intl.formatMessage(status._0))) : null;\n return React.createElement(\"div\", undefined, label !== undefined ? React.createElement(Label.make, {\n forId: alternativeLinkDomId(name),\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(\"span\", undefined, label)\n }) : null, React.createElement(TextField.make, {\n id: alternativeLinkDomId(name),\n style: /* AnimatedPlaceholder */2,\n size: /* MD */1,\n value: props.value,\n placeholder: placeholder !== undefined ? intl.formatMessage(placeholder) : \"\",\n status: tmp,\n className: css.addLinksInput,\n onChange: props.onChange,\n onBlur: props.onBlur,\n name: name,\n required: true\n }), tmp$1);\n}\n\nvar TextFieldWithValidation = {\n make: AlternativeLinksModal$TextFieldWithValidation\n};\n\nvar initialLink = \"\";\n\nfunction AlternativeLinksModal(props) {\n var onClaimFailure = props.onClaimFailure;\n var listing = props.listing;\n var user = props.user;\n var onClaimSuccess = props.onClaimSuccess;\n var intl = ReactIntl.useIntl();\n var helpEmail = React.useMemo((function () {\n return RailsContext.getHelpEmail(undefined);\n }), []);\n var initialInput_email = user.email;\n var initialInput = {\n link: initialLink,\n email: initialInput_email,\n notifyMe: false\n };\n var form = AlternativeLinksModalForm.useForm(initialInput, (function (output, form) {\n var match = user.email;\n $$Promise.wait(Api.postAlternativeBookingLinks({\n email: match !== undefined ? undefined : output.email,\n notifyMe: output.notifyMe,\n url: AlternativeLinksModalForm.getLink(Url.normalizeUrl(output.link)),\n listingId: listing.id\n }), (function (x) {\n if (x.TAG === /* Ok */0) {\n Curry._1(form.reset, undefined);\n return Curry._1(onClaimSuccess, undefined);\n }\n var error = x._0;\n if (error !== undefined) {\n var message = error.message;\n if (message >= 3) {\n return Curry._1(onClaimFailure, undefined);\n } else {\n return Curry._1(form.notifyOnFailure, message);\n }\n }\n Curry._1(onClaimFailure, undefined);\n Curry._1(form.reset, undefined);\n }));\n }));\n var handleLinkUpdate = Curry._1(form.updateLink, (function (input, value) {\n return {\n link: value,\n email: input.email,\n notifyMe: input.notifyMe\n };\n }));\n var message = form.status;\n var tmp;\n if (typeof message === \"number\" || message.TAG !== /* SubmissionFailed */1) {\n tmp = null;\n } else {\n var tmp$1;\n switch (message._0) {\n case /* BookingLinkAlreadyExists */0 :\n tmp$1 = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.link-already-exists-error\",\n defaultMessage: \"Hey, This link is already available!\"\n });\n break;\n case /* UnacceptedLink */1 :\n tmp$1 = intl.formatMessage(AlternativeLinksMessages.otaLink);\n break;\n case /* LinkNotWhitelisted */2 :\n tmp$1 = helpEmail !== undefined ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.link-not-whitelisted-error\",\n defaultMessage: \"The link you added hasn't been verified yet.{br} Please email <a>{email}</a> for more information.\",\n values: {\n a: (function (chunks) {\n return React.createElement(\"a\", {\n className: Cx.cx([\n css.error,\n \"tw-underline hover:tw-text-error-500 hover:tw-underline\"\n ]),\n href: \"mailto:\" + helpEmail\n }, chunks);\n }),\n email: helpEmail,\n br: React.createElement(\"br\", undefined)\n }\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.link-not-whitelisted-error-without-email\",\n defaultMessage: \"The link you added hasn't been verified yet.\"\n });\n break;\n case /* UnknownError */3 :\n tmp$1 = null;\n break;\n \n }\n tmp = React.createElement(\"div\", {\n className: css.error\n }, tmp$1);\n }\n var match = form.linkResult;\n var match$1 = form.status;\n var tmp$2;\n var exit = 0;\n if (match !== undefined && match.TAG !== /* Ok */0) {\n tmp$2 = true;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp$2 = typeof match$1 === \"number\" || match$1.TAG !== /* SubmissionFailed */1 ? false : true;\n }\n var match$2 = form.status;\n var tmp$3;\n tmp$3 = typeof match$2 === \"number\" || match$2.TAG !== /* Submitting */0 ? false : true;\n return React.createElement(ModalDialog.make, {\n modal: props.modal,\n className: css.modal,\n desktopPosition: /* Centered */0,\n mobilePosition: /* Docked */0,\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.heading\",\n defaultMessage: \"Links to This Listing\"\n })),\n testId: \"alternative-booking-links-modal\",\n children: React.createElement(Form.make, {\n onSubmit: form.submit,\n children: null\n }, React.createElement(\"div\", {\n className: css.subTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.subtitle\",\n defaultMessage: \"Share links related to this listing, and we'll add them here to help travelers compare their booking options.\"\n })), JsxPPXReactSupport.createElementWithKey(\"alternativeLink\", AlternativeLinksModal$TextFieldWithValidation, {\n name: \"alternativeLink\",\n value: form.input.link,\n status: form.linkResult,\n onChange: (function ($$event) {\n Curry._1(handleLinkUpdate, $$event.target.value);\n Curry._1(form.dismissSubmissionResult, undefined);\n }),\n placeholder: AlternativeLinksMessages.alternativeLinkInputPlaceholder\n }), tmp, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n submit: true,\n style: /* Regular */0,\n visuallyDisabled: tmp$2,\n busy: tmp$3,\n className: css.submitLinkButton,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.submit-link-button\",\n defaultMessage: \"Submit\"\n })\n }))\n });\n}\n\nvar make = AlternativeLinksModal;\n\nexports.css = css;\nexports.alternativeLinkDomId = alternativeLinkDomId;\nexports.TextFieldWithValidation = TextFieldWithValidation;\nexports.initialLink = initialLink;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar $$RegExp = require(\"../../../../libs/RegExp.bs.js\");\nvar Formality = require(\"re-formality/src/Formality.bs.js\");\nvar Formality__ReactUpdate = require(\"re-formality/src/Formality__ReactUpdate.bs.js\");\nvar AlternativeLinksMessages = require(\"./AlternativeLinksMessages.bs.js\");\n\nfunction getLink(link) {\n return link;\n}\n\nfunction isValidLink(link) {\n return $$RegExp.url(undefined).test(link);\n}\n\nfunction isValidEmail(email) {\n return $$RegExp.email(undefined).test(email);\n}\n\nfunction isOtaLink(link) {\n return $$RegExp.otaDomainsRegex(undefined).test(link);\n}\n\nfunction linkValidator(link) {\n if (link === \"\") {\n return {\n TAG: /* Error */1,\n _0: AlternativeLinksMessages.emptyLink\n };\n } else if ($$RegExp.otaDomainsRegex(undefined).test(link)) {\n return {\n TAG: /* Error */1,\n _0: AlternativeLinksMessages.otaLink\n };\n } else if ($$RegExp.email(undefined).test(link)) {\n return {\n TAG: /* Error */1,\n _0: AlternativeLinksMessages.emailNotAllowed\n };\n } else if ($$RegExp.url(undefined).test(link)) {\n return {\n TAG: /* Ok */0,\n _0: link\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: AlternativeLinksMessages.invalidLink\n };\n }\n}\n\nvar validators_link = {\n strategy: /* OnFirstSuccessOrFirstBlur */3,\n validate: (function (param) {\n return linkValidator(param.link);\n })\n};\n\nvar validators = {\n notifyMe: undefined,\n email: undefined,\n link: validators_link\n};\n\nfunction initialFieldsStatuses(_input) {\n return {\n notifyMe: /* Pristine */0,\n email: /* Pristine */0,\n link: /* Pristine */0\n };\n}\n\nfunction initialState(input) {\n return {\n input: input,\n fieldsStatuses: {\n notifyMe: /* Pristine */0,\n email: /* Pristine */0,\n link: /* Pristine */0\n },\n collectionsStatuses: undefined,\n formStatus: /* Editing */0,\n submissionStatus: /* NeverSubmitted */0\n };\n}\n\nfunction validateForm(input, validators, fieldsStatuses) {\n var match_0 = {\n TAG: /* Ok */0,\n _0: input.notifyMe\n };\n var match_0$1 = {\n TAG: /* Ok */0,\n _0: input.email\n };\n var match = fieldsStatuses.link;\n var match_0$2 = match ? match._0 : Curry._1(validators.link.validate, input);\n var notifyMeResult = match_0;\n var notifyMeResult$1;\n if (notifyMeResult.TAG === /* Ok */0) {\n var emailResult = match_0$1;\n if (emailResult.TAG === /* Ok */0) {\n var linkResult = match_0$2;\n if (linkResult.TAG === /* Ok */0) {\n return {\n TAG: /* Valid */0,\n output: {\n link: linkResult._0,\n email: emailResult._0,\n notifyMe: notifyMeResult._0\n },\n fieldsStatuses: {\n notifyMe: /* Dirty */{\n _0: notifyMeResult,\n _1: /* Hidden */1\n },\n email: /* Dirty */{\n _0: emailResult,\n _1: /* Hidden */1\n },\n link: /* Dirty */{\n _0: linkResult,\n _1: /* Shown */0\n }\n },\n collectionsStatuses: undefined\n };\n }\n notifyMeResult$1 = notifyMeResult;\n } else {\n notifyMeResult$1 = notifyMeResult;\n }\n } else {\n notifyMeResult$1 = notifyMeResult;\n }\n return {\n TAG: /* Invalid */1,\n fieldsStatuses: {\n notifyMe: /* Dirty */{\n _0: notifyMeResult$1,\n _1: /* Hidden */1\n },\n email: /* Dirty */{\n _0: match_0$1,\n _1: /* Hidden */1\n },\n link: /* Dirty */{\n _0: match_0$2,\n _1: /* Shown */0\n }\n },\n collectionsStatuses: undefined\n };\n}\n\nfunction useForm(initialInput, onSubmit) {\n var memoizedInitialState = React.useMemo((function () {\n return initialState(initialInput);\n }), [initialInput]);\n var match = Formality__ReactUpdate.useReducer(memoizedInitialState, (function (state, action) {\n if (typeof action === \"number\") {\n switch (action) {\n case /* BlurNotifyMeField */0 :\n var result = Formality.validateFieldOnBlurWithoutValidator(state.input.notifyMe, state.fieldsStatuses.notifyMe, (function (status) {\n var init = state.fieldsStatuses;\n return {\n notifyMe: status,\n email: init.email,\n link: init.link\n };\n }));\n if (result !== undefined) {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: result,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: state.formStatus,\n submissionStatus: state.submissionStatus\n }\n };\n } else {\n return /* NoUpdate */0;\n }\n case /* BlurEmailField */1 :\n var result$1 = Formality.validateFieldOnBlurWithoutValidator(state.input.email, state.fieldsStatuses.email, (function (status) {\n var init = state.fieldsStatuses;\n return {\n notifyMe: init.notifyMe,\n email: status,\n link: init.link\n };\n }));\n if (result$1 !== undefined) {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: result$1,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: state.formStatus,\n submissionStatus: state.submissionStatus\n }\n };\n } else {\n return /* NoUpdate */0;\n }\n case /* BlurLinkField */2 :\n var result$2 = Formality.validateFieldOnBlurWithValidator(state.input, state.fieldsStatuses.link, validators_link, (function (status) {\n var init = state.fieldsStatuses;\n return {\n notifyMe: init.notifyMe,\n email: init.email,\n link: status\n };\n }));\n if (result$2 !== undefined) {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: result$2,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: state.formStatus,\n submissionStatus: state.submissionStatus\n }\n };\n } else {\n return /* NoUpdate */0;\n }\n case /* Submit */3 :\n var match = state.formStatus;\n if (typeof match !== \"number\" && match.TAG === /* Submitting */0) {\n return /* NoUpdate */0;\n }\n var match$1 = validateForm(state.input, validators, state.fieldsStatuses);\n if (match$1.TAG !== /* Valid */0) {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: match$1.fieldsStatuses,\n collectionsStatuses: match$1.collectionsStatuses,\n formStatus: /* Editing */0,\n submissionStatus: /* AttemptedToSubmit */1\n }\n };\n }\n var output = match$1.output;\n var error = state.formStatus;\n var tmp;\n tmp = typeof error === \"number\" || error.TAG !== /* SubmissionFailed */1 ? undefined : error._0;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n input: state.input,\n fieldsStatuses: match$1.fieldsStatuses,\n collectionsStatuses: match$1.collectionsStatuses,\n formStatus: {\n TAG: /* Submitting */0,\n _0: tmp\n },\n submissionStatus: /* AttemptedToSubmit */1\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n Curry._2(onSubmit, output, {\n notifyOnSuccess: (function (input) {\n Curry._1(dispatch, {\n TAG: /* SetSubmittedStatus */3,\n _0: input\n });\n }),\n notifyOnFailure: (function (error) {\n Curry._1(dispatch, {\n TAG: /* SetSubmissionFailedStatus */4,\n _0: error\n });\n }),\n reset: (function (param) {\n Curry._1(dispatch, /* Reset */6);\n }),\n dismissSubmissionResult: (function (param) {\n Curry._1(dispatch, /* DismissSubmissionResult */5);\n })\n });\n })\n };\n break;\n case /* DismissSubmissionError */4 :\n var match$2 = state.formStatus;\n if (typeof match$2 === \"number\" || match$2.TAG !== /* SubmissionFailed */1) {\n return /* NoUpdate */0;\n } else {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: state.fieldsStatuses,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: /* Editing */0,\n submissionStatus: state.submissionStatus\n }\n };\n }\n case /* DismissSubmissionResult */5 :\n var match$3 = state.formStatus;\n if (typeof match$3 === \"number\") {\n if (match$3 === /* Editing */0) {\n return /* NoUpdate */0;\n }\n \n } else if (match$3.TAG === /* Submitting */0) {\n return /* NoUpdate */0;\n }\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: state.fieldsStatuses,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: /* Editing */0,\n submissionStatus: state.submissionStatus\n }\n };\n case /* Reset */6 :\n return {\n TAG: /* Update */0,\n _0: initialState(initialInput)\n };\n \n }\n } else {\n switch (action.TAG | 0) {\n case /* UpdateNotifyMeField */0 :\n var nextInput = Curry._1(action._0, state.input);\n return {\n TAG: /* Update */0,\n _0: {\n input: nextInput,\n fieldsStatuses: Formality.validateFieldOnChangeWithoutValidator(nextInput.notifyMe, (function (status) {\n var init = state.fieldsStatuses;\n return {\n notifyMe: status,\n email: init.email,\n link: init.link\n };\n })),\n collectionsStatuses: state.collectionsStatuses,\n formStatus: state.formStatus,\n submissionStatus: state.submissionStatus\n }\n };\n case /* UpdateEmailField */1 :\n var nextInput$1 = Curry._1(action._0, state.input);\n return {\n TAG: /* Update */0,\n _0: {\n input: nextInput$1,\n fieldsStatuses: Formality.validateFieldOnChangeWithoutValidator(nextInput$1.email, (function (status) {\n var init = state.fieldsStatuses;\n return {\n notifyMe: init.notifyMe,\n email: status,\n link: init.link\n };\n })),\n collectionsStatuses: state.collectionsStatuses,\n formStatus: state.formStatus,\n submissionStatus: state.submissionStatus\n }\n };\n case /* UpdateLinkField */2 :\n var nextInput$2 = Curry._1(action._0, state.input);\n return {\n TAG: /* Update */0,\n _0: {\n input: nextInput$2,\n fieldsStatuses: Formality.validateFieldOnChangeWithValidator(nextInput$2, state.fieldsStatuses.link, state.submissionStatus, validators_link, (function (status) {\n var init = state.fieldsStatuses;\n return {\n notifyMe: init.notifyMe,\n email: init.email,\n link: status\n };\n })),\n collectionsStatuses: state.collectionsStatuses,\n formStatus: state.formStatus,\n submissionStatus: state.submissionStatus\n }\n };\n case /* SetSubmittedStatus */3 :\n var input = action._0;\n if (input !== undefined) {\n return {\n TAG: /* Update */0,\n _0: {\n input: input,\n fieldsStatuses: {\n notifyMe: /* Pristine */0,\n email: /* Pristine */0,\n link: /* Pristine */0\n },\n collectionsStatuses: state.collectionsStatuses,\n formStatus: /* Submitted */1,\n submissionStatus: state.submissionStatus\n }\n };\n } else {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: {\n notifyMe: /* Pristine */0,\n email: /* Pristine */0,\n link: /* Pristine */0\n },\n collectionsStatuses: state.collectionsStatuses,\n formStatus: /* Submitted */1,\n submissionStatus: state.submissionStatus\n }\n };\n }\n case /* SetSubmissionFailedStatus */4 :\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: state.fieldsStatuses,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: {\n TAG: /* SubmissionFailed */1,\n _0: action._0\n },\n submissionStatus: state.submissionStatus\n }\n };\n case /* MapSubmissionError */5 :\n var map = action._0;\n var error$1 = state.formStatus;\n if (typeof error$1 === \"number\") {\n return /* NoUpdate */0;\n }\n if (error$1.TAG !== /* Submitting */0) {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: state.fieldsStatuses,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: {\n TAG: /* SubmissionFailed */1,\n _0: Curry._1(map, error$1._0)\n },\n submissionStatus: state.submissionStatus\n }\n };\n }\n var error$2 = error$1._0;\n if (error$2 !== undefined) {\n return {\n TAG: /* Update */0,\n _0: {\n input: state.input,\n fieldsStatuses: state.fieldsStatuses,\n collectionsStatuses: state.collectionsStatuses,\n formStatus: {\n TAG: /* Submitting */0,\n _0: Curry._1(map, error$2)\n },\n submissionStatus: state.submissionStatus\n }\n };\n } else {\n return /* NoUpdate */0;\n }\n \n }\n }\n }));\n var dispatch = match[1];\n var state = match[0];\n var match$1 = state.formStatus;\n var tmp;\n tmp = typeof match$1 === \"number\" || match$1.TAG !== /* Submitting */0 ? false : true;\n return {\n updateNotifyMe: (function (nextInputFn, nextValue) {\n Curry._1(dispatch, {\n TAG: /* UpdateNotifyMeField */0,\n _0: (function (__x) {\n return Curry._2(nextInputFn, __x, nextValue);\n })\n });\n }),\n updateEmail: (function (nextInputFn, nextValue) {\n Curry._1(dispatch, {\n TAG: /* UpdateEmailField */1,\n _0: (function (__x) {\n return Curry._2(nextInputFn, __x, nextValue);\n })\n });\n }),\n updateLink: (function (nextInputFn, nextValue) {\n Curry._1(dispatch, {\n TAG: /* UpdateLinkField */2,\n _0: (function (__x) {\n return Curry._2(nextInputFn, __x, nextValue);\n })\n });\n }),\n blurNotifyMe: (function (param) {\n Curry._1(dispatch, /* BlurNotifyMeField */0);\n }),\n blurEmail: (function (param) {\n Curry._1(dispatch, /* BlurEmailField */1);\n }),\n blurLink: (function (param) {\n Curry._1(dispatch, /* BlurLinkField */2);\n }),\n notifyMeResult: Formality.exposeFieldResult(state.fieldsStatuses.notifyMe),\n emailResult: Formality.exposeFieldResult(state.fieldsStatuses.email),\n linkResult: Formality.exposeFieldResult(state.fieldsStatuses.link),\n input: state.input,\n status: state.formStatus,\n dirty: (function (param) {\n var match = state.fieldsStatuses;\n if (match.notifyMe || match.email || match.link) {\n return true;\n } else {\n return false;\n }\n }),\n valid: (function (param) {\n var match = validateForm(state.input, validators, state.fieldsStatuses);\n if (match.TAG === /* Valid */0) {\n return true;\n } else {\n return false;\n }\n }),\n submitting: tmp,\n submit: (function (param) {\n Curry._1(dispatch, /* Submit */3);\n }),\n dismissSubmissionError: (function (param) {\n Curry._1(dispatch, /* DismissSubmissionError */4);\n }),\n dismissSubmissionResult: (function (param) {\n Curry._1(dispatch, /* DismissSubmissionResult */5);\n }),\n mapSubmissionError: (function (map) {\n Curry._1(dispatch, {\n TAG: /* MapSubmissionError */5,\n _0: map\n });\n }),\n reset: (function (param) {\n Curry._1(dispatch, /* Reset */6);\n })\n };\n}\n\nvar initialCollectionsStatuses;\n\nexports.getLink = getLink;\nexports.isValidLink = isValidLink;\nexports.isValidEmail = isValidEmail;\nexports.isOtaLink = isOtaLink;\nexports.linkValidator = linkValidator;\nexports.validators = validators;\nexports.initialFieldsStatuses = initialFieldsStatuses;\nexports.initialCollectionsStatuses = initialCollectionsStatuses;\nexports.initialState = initialState;\nexports.validateForm = validateForm;\nexports.useForm = useForm;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar RadioButtons = require(\"../../../../styleguide/forms/RadioButtons/RadioButtons.bs.js\");\nvar AlternativeLinksReportModalModuleScss = require(\"./AlternativeLinksReportModal.module.scss\").default;\n\nvar css = AlternativeLinksReportModalModuleScss;\n\nfunction AlternativeLinksReportModal(props) {\n var alternativeBookingLinkId = props.alternativeBookingLinkId;\n var onClaimSuccess = props.onClaimSuccess;\n var match = React.useState(function () {\n return \"invalid\";\n });\n var updateReportLinkReason = match[1];\n var reportLinkReason = match[0];\n return React.createElement(ModalDialog.make, {\n modal: props.modal,\n className: css.modal,\n testId: \"alternative-links-report-modal\",\n children: null\n }, React.createElement(\"div\", {\n className: css.title\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.report-modal.title\",\n defaultMessage: \"Report Link\"\n })), React.createElement(\"div\", {\n className: css.subTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.report-modal.subtitle\",\n defaultMessage: \"Why do you want to report this link?\"\n })), React.createElement(RadioButtons.make, {\n className: css.control,\n children: null\n }, React.createElement(RadioButtons.Button.make, {\n value: \"invalid\",\n checked: reportLinkReason === \"invalid\",\n onChange: (function ($$event) {\n Curry._1(updateReportLinkReason, $$event.target.value);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.report-modal.invalid-control\",\n defaultMessage: \"The link doesn't work\"\n })\n }), React.createElement(RadioButtons.Button.make, {\n value: \"scam\",\n checked: reportLinkReason === \"scam\",\n onChange: (function ($$event) {\n Curry._1(updateReportLinkReason, $$event.target.value);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.report-modal.scam-control\",\n defaultMessage: \"The website can be a scam\"\n })\n }), React.createElement(RadioButtons.Button.make, {\n value: \"other\",\n checked: reportLinkReason === \"other\",\n onChange: (function ($$event) {\n Curry._1(updateReportLinkReason, $$event.target.value);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.report-modal.other-control\",\n defaultMessage: \"Other\"\n })\n })), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n submit: true,\n className: css.submitButton,\n onClick: (function (param) {\n if (alternativeBookingLinkId !== undefined) {\n $$Promise.wait(Api.postAlternativeBookingLinkReport({\n report: reportLinkReason,\n alternativeBookingLinkId: alternativeBookingLinkId\n }), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(onClaimSuccess, undefined);\n }\n \n }));\n }\n \n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.report-modal.submit-button\",\n defaultMessage: \"Send Report\"\n })\n }));\n}\n\nvar make = AlternativeLinksReportModal;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Glider = require(\"../../../../styleguide/svgs/Glider.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar AlternativeLinksSuccessModalModuleScss = require(\"./AlternativeLinksSuccessModal.module.scss\").default;\n\nvar css = AlternativeLinksSuccessModalModuleScss;\n\nfunction AlternativeLinksSuccessModal(props) {\n var modal = props.modal;\n return React.createElement(ModalDialog.make, {\n modal: modal,\n className: css.modal,\n desktopPosition: /* Centered */0,\n mobilePosition: /* Docked */0,\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.heading\",\n defaultMessage: \"Links to This Listing\"\n })),\n testId: \"alternative-booking-links-success-modal\",\n children: null\n }, React.createElement(Glider.make, {}), React.createElement(\"div\", {\n className: css.title\n }, React.createElement(\"span\", undefined, props.title)), React.createElement(\"p\", {\n className: css.message\n }, React.createElement(\"span\", undefined, props.message)), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n className: css.closeButton,\n onClick: (function (param) {\n Curry._1(modal.hide, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.alternative-links.modal.close\",\n defaultMessage: \"Go back to the listing\"\n })\n }));\n}\n\nvar make = AlternativeLinksSuccessModal;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Amenity = require(\"../../../../models/Amenity.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\n\nfunction reducer(param, action) {\n if (action) {\n return /* Collapsed */1;\n } else {\n return /* Expanded */0;\n }\n}\n\nfunction excerpt(groups) {\n return Belt_Array.reduce(groups, [\n 0,\n []\n ], (function (param, param$1) {\n var acc = param[1];\n var total = param[0];\n if (total === 4) {\n return [\n total,\n acc\n ];\n }\n var amenities = Belt_Array.slice(param$1[1], 0, 4 - total | 0);\n acc.push([\n param$1[0],\n amenities\n ]);\n return [\n total + amenities.length | 0,\n acc\n ];\n }))[1];\n}\n\nfunction countRegularAmenities(amenityIds) {\n return Amenity.regular(amenityIds).map(function (param) {\n return param[1].length;\n }).reduce((function (acc, amenitiesInAGroupCount) {\n return acc + amenitiesInAGroupCount | 0;\n }), 0);\n}\n\nfunction SlvAmenities$AmenitiesGroup(props) {\n var amenities = props.amenities;\n var title = props.title;\n if (amenities.length !== 0) {\n return React.createElement(React.Fragment, undefined, title !== undefined ? React.createElement(SlvBlock.SubTitle.make, {\n children: Caml_option.valFromOption(title)\n }) : null, React.createElement(\"div\", {\n className: \"tw-grid tw-grid-cols-2 md:tw-flex tw-flex-wrap tw-w-full tw-gap-y-16 tw-gap-x-[43px]\"\n }, Belt_Array.map(amenities, (function (amenity) {\n var Icon = amenity.icon;\n return React.createElement(\"div\", {\n key: amenity.label,\n className: \"tw-flex tw-flex-nowrap tw-items-start tw-justify-items-start tw-gap-10 tw-w-full md:tw-w-3/12\"\n }, React.createElement(Icon.make, {\n size: \"LG\",\n color: \"General\",\n className: \"tw-flex tw-flex-nowrap tw-items-start\"\n }), React.createElement(\"div\", {\n className: \"tw-text-[14px] md:tw-text-[16px] tw-leading-[21px] md:tw-leading-[24px] tw-text-neutral-800\"\n }, React.createElement(\"span\", undefined, amenity.label)));\n }))));\n } else {\n return null;\n }\n}\n\nvar AmenitiesGroup = {\n make: SlvAmenities$AmenitiesGroup\n};\n\nfunction SlvAmenities$PrioritizedAmenities(props) {\n return React.createElement(\"div\", {\n className: \"tw-grid tw-grid-cols-2 md:tw-flex tw-flex-wrap tw-w-full tw-gap-y-16 tw-gap-x-[43px] tw-mb-16\"\n }, Belt_Array.map(props.items, (function (amenity) {\n var Icon = amenity.icon;\n return React.createElement(\"div\", {\n key: String(amenity.id),\n className: \"tw-flex tw-flex-nowrap tw-items-start tw-justify-items-start tw-gap-10 tw-w-full md:tw-w-3/12\"\n }, React.createElement(Icon.make, {\n size: \"LG\",\n color: \"General\",\n className: \"tw-flex tw-flex-nowrap tw-items-start\"\n }), React.createElement(\"span\", {\n className: \"tw-text-[14px] md:tw-text-[16px] tw-leading-[21px] md:tw-leading-[24px] tw-text-neutral-800\"\n }, amenity.label));\n })));\n}\n\nvar PrioritizedAmenities = {\n make: SlvAmenities$PrioritizedAmenities\n};\n\nfunction SlvAmenities$Block(props) {\n var amenityIds = props.amenityIds;\n var initialState = React.useMemo((function () {\n if (countRegularAmenities(amenityIds) > 4) {\n return /* Collapsed */1;\n } else {\n return /* Expanded */0;\n }\n }), []);\n var match = React.useReducer(reducer, initialState);\n var dispatch = match[1];\n var state = match[0];\n var prioritizedAmenities = React.useMemo((function () {\n return Amenity.prioritized(amenityIds);\n }), []);\n var regularAmenities = React.useMemo((function () {\n if (state) {\n return excerpt(Amenity.regular(amenityIds));\n } else {\n return Amenity.regular(amenityIds);\n }\n }), [state]);\n return React.createElement(SlvBlock.make, {\n id: \"Amenities\",\n children: null\n }, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.amenities.title\",\n defaultMessage: \"Amenities\"\n })\n }), React.createElement(SlvAmenities$PrioritizedAmenities, {\n items: prioritizedAmenities\n }), Belt_Array.map(regularAmenities, (function (param) {\n var group = param[0];\n var tmp;\n switch (group) {\n case /* Common */0 :\n tmp = undefined;\n break;\n case /* GoodFor */1 :\n tmp = Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.amenities.good-for-group.title\",\n defaultMessage: \"Good for\"\n }));\n break;\n case /* Spaces */2 :\n tmp = Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.amenities.spaces-group.title\",\n defaultMessage: \"Spaces\"\n }));\n break;\n case /* Safety */3 :\n tmp = Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.amenities.safety-group.title\",\n defaultMessage: \"Safety\"\n }));\n break;\n \n }\n return JsxPPXReactSupport.createElementWithKey(Amenity.Group.toString(group), SlvAmenities$AmenitiesGroup, {\n title: tmp,\n amenities: param[1]\n });\n })), state ? React.createElement(TextControl.make, {\n className: \"tw-mt-16 lg:tw-text-[16px]\",\n style: /* Accented */1,\n onClick: (function (param) {\n Curry._1(dispatch, /* Expand */0);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.amenities.show-all-control\",\n defaultMessage: \"View all amenities\"\n })\n }) : (\n countRegularAmenities(amenityIds) > 4 ? React.createElement(React.Fragment, undefined, React.createElement(TextControl.make, {\n className: \"tw-mt-16 lg:tw-text-[16px]\",\n style: /* Accented */1,\n onClick: (function (param) {\n Curry._1(dispatch, /* Collapse */1);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.amenities.show-less-control\",\n defaultMessage: \"View less\"\n })\n })) : null\n ));\n}\n\nvar Block = {\n make: SlvAmenities$Block\n};\n\nfunction SlvAmenities(props) {\n var amenityIds = props.listing.amenityIds;\n if (amenityIds !== undefined) {\n return React.createElement(SlvAmenities$Block, {\n amenityIds: amenityIds\n });\n } else {\n return null;\n }\n}\n\nvar excerptSize = 4;\n\nvar make = SlvAmenities;\n\nexports.reducer = reducer;\nexports.excerptSize = excerptSize;\nexports.excerpt = excerpt;\nexports.countRegularAmenities = countRegularAmenities;\nexports.AmenitiesGroup = AmenitiesGroup;\nexports.PrioritizedAmenities = PrioritizedAmenities;\nexports.Block = Block;\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar ListingVerificationWizard = require(\"../../../../models/ListingVerificationWizard.bs.js\");\nvar ForbiddenVerificationModal = require(\"../../../../styleguide/components/ForbiddenVerification/ForbiddenVerificationModal.bs.js\");\nvar SlvAreYouTheOwnerModuleScss = require(\"./SlvAreYouTheOwner.module.scss\").default;\n\nvar css = SlvAreYouTheOwnerModuleScss;\n\nfunction canBeVerified(listing) {\n return Belt_Array.reduce(ListingVerificationWizard.getAvailableProviders, false, (function (acc, provider) {\n switch (provider) {\n case /* Airbnb */0 :\n if (Belt_Option.isSome(listing.vrbpData.airbnb)) {\n return true;\n } else {\n return acc;\n }\n case /* Bookingcom */1 :\n if (Belt_Option.isSome(listing.vrbpData.bookingcom)) {\n return true;\n } else {\n return acc;\n }\n case /* Vrbo */2 :\n if (Belt_Option.isSome(listing.vrbpData.vrbo)) {\n return true;\n } else {\n return acc;\n }\n \n }\n }));\n}\n\nfunction SlvAreYouTheOwner(props) {\n var listing = props.listing;\n var forbiddenVerificationModal = ModalDialog.useModal(undefined);\n return React.createElement(SlvBlock.make, {\n id: \"AreYouTheOwner\",\n children: React.createElement(\"div\", {\n className: css.messageContainer\n }, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.are-you-the-owner.title\",\n defaultMessage: \"Are you the host of this property?\"\n })\n }), React.createElement(\"div\", {\n className: css.message\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.are-you-the-owner.subtitle.verify-listing\",\n defaultMessage: \"Verify your listing to get bookings faster - sort higher, get direct guest inquiries, and add your preferred direct booking link. \"\n }), React.createElement(\"strong\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.are-you-the-owner.subtitle.its-free\",\n defaultMessage: \"It's Free!\"\n }))), canBeVerified(listing) ? React.createElement(Button.AsNativeLink.make, {\n href: Route.verificationExplainerUrlWithListingParam(listing.id),\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Regular */0,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.im-the-owner.title\",\n defaultMessage: \"I am the host\"\n })\n }) : React.createElement(React.Fragment, undefined, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Regular */0,\n onClick: (function (param) {\n Curry._1(forbiddenVerificationModal.show, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.im-the-owner.title\",\n defaultMessage: \"I am the host\"\n })\n })), React.createElement(A.make, {\n href: \"/hosts\",\n style: /* Action */3,\n className: css.whyVerify,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.are-you-the-owner.why-verify\",\n defaultMessage: \"Why Verify?\"\n })\n }), React.createElement(ForbiddenVerificationModal.make, {\n modal: forbiddenVerificationModal\n })),\n wrapperClassName: css.wrapper\n });\n}\n\nvar make = SlvAreYouTheOwner;\n\nexports.css = css;\nexports.canBeVerified = canBeVerified;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar SlvBookingOwnListingWarningModalModuleScss = require(\"./SlvBookingOwnListingWarningModal.module.scss\").default;\n\nvar css = SlvBookingOwnListingWarningModalModuleScss;\n\nfunction SlvBookingOwnListingWarningModal(props) {\n var booking = props.booking;\n var match = booking.modal;\n var match$1 = match.current;\n return React.createElement(Modal.make, {\n shown: match$1 !== undefined ? match$1 >= 2 : false,\n hide: booking.hideModal,\n className: css.modal,\n children: null\n }, React.createElement(Modal.Block.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking.own-listing-warning-modal.title\",\n defaultMessage: \"You can not submit inquiry nor message because you are the owner of this listing.\"\n })\n }), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n onClick: (function (param) {\n Curry._1(booking.hideModal, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.ok\",\n defaultMessage: \"Ok\"\n })\n }));\n}\n\nvar make = SlvBookingOwnListingWarningModal;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar H3 = require(\"../../../../styleguide/components/Typography/Heading/H3.bs.js\");\nvar $$Date = require(\"../../../../libs/Date.bs.js\");\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../../libs/Hooks.bs.js\");\nvar $$Image = require(\"../../../../styleguide/components/Image/Image.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Booking = require(\"../../../../models/Booking.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Spinner = require(\"../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar BookingDates = require(\"../../../../libs/BookingDates.bs.js\");\nvar HalfMoonIcon = require(\"../../../../styleguide/icons/HalfMoonIcon.bs.js\");\nvar VerifiedIcon = require(\"../../../../styleguide/icons/VerifiedIcon.bs.js\");\nvar AwsImageHandlerV5 = require(\"../../../../libs/AwsImageHandlerV5.bs.js\");\nvar BookingCalculator = require(\"../../../../models/BookingCalculator.bs.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\nvar WarningCircleFullIcon = require(\"../../../../styleguide/icons/WarningCircleFullIcon.bs.js\");\nvar ListingPhotoPlaceholder = require(\"../../../../styleguide/components/ListingTile/ListingPhotoPlaceholder/ListingPhotoPlaceholder.bs.js\");\nvar BookingCalculatorTooltip = require(\"../../../booking-calculators-show/components/BookingCalculatorTooltip.bs.js\");\nvar SlvBookingCalculatorModal = require(\"./SlvBookingCalculatorModal.bs.js\");\nvar BookingCalculatorLineChart = require(\"../../../booking-calculators-show/components/Charts/BookingCalculatorLineChart.bs.js\");\nvar BookingCalculatorShareModal = require(\"../../../booking-calculators-show/components/ShareModal/BookingCalculatorShareModal.bs.js\");\nvar SlvBookingCalculatorBadgeScss = require(\"./SlvBookingCalculatorBadge.scss\").default;\n\nvar css = SlvBookingCalculatorBadgeScss;\n\nvar Status = {};\n\nfunction SlvBookingCalculatorBadge(props) {\n var user = props.user;\n var bookingStatus = props.bookingStatus;\n var listing = props.listing;\n var currency = listing.currency;\n var listingPhoto = React.useMemo((function () {\n var photos = listing.photos;\n if (photos !== undefined) {\n return Belt_Array.get(photos, 0);\n }\n \n }), [listing.photos]);\n var bookingCalculatorModal = ModalDialog.useModal(undefined);\n var bookingCalculatorShareModal = ModalDialog.useModal(undefined);\n var initialState = React.useMemo((function () {\n return {\n bookingCalculator: BookingCalculator.fromDefaults(listing),\n status: /* Ready */1\n };\n }), []);\n var match = Hooks.useReducer(initialState, (function (state, action) {\n if (action.TAG === /* SetStatus */0) {\n return {\n TAG: /* Update */0,\n _0: {\n bookingCalculator: state.bookingCalculator,\n status: action._0\n }\n };\n } else {\n return {\n TAG: /* Update */0,\n _0: {\n bookingCalculator: action._1,\n status: action._0\n }\n };\n }\n }));\n var dispatch = match[1];\n var state = match[0];\n React.useEffect((function () {\n var exit = 0;\n if (typeof bookingStatus === \"number\") {\n if (bookingStatus === /* Hibernate */0) {\n exit = 1;\n } else {\n Curry._1(dispatch, {\n TAG: /* SetStatus */0,\n _0: /* Loading */0\n });\n }\n } else if (bookingStatus.TAG === /* FetchingQuote */0) {\n Curry._1(dispatch, {\n TAG: /* SetStatus */0,\n _0: /* Loading */0\n });\n } else {\n var match = bookingStatus._0;\n if (match.TAG === /* Ok */0) {\n var match$1 = match._0;\n if (typeof match$1 === \"object\") {\n var quote = match$1.VAL;\n var match$2 = Booking.Quote.getProviderStatus(quote, /* Hichee */0);\n var exit$1 = 0;\n if (match$2 !== undefined && match$2) {\n var hicheeQuote = match$2._0;\n if (hicheeQuote.TAG === /* Ok */0) {\n Curry._1(dispatch, {\n TAG: /* SetState */1,\n _0: /* Ready */1,\n _1: BookingCalculator.fromQuote(listing, quote, hicheeQuote._0)\n });\n } else {\n exit$1 = 2;\n }\n } else {\n exit$1 = 2;\n }\n if (exit$1 === 2) {\n Curry._1(dispatch, {\n TAG: /* SetState */1,\n _0: /* Ready */1,\n _1: BookingCalculator.fromDefaults(listing)\n });\n }\n \n } else {\n exit = 1;\n }\n } else {\n exit = 1;\n }\n }\n if (exit === 1) {\n Curry._1(dispatch, {\n TAG: /* SetState */1,\n _0: /* Ready */1,\n _1: BookingCalculator.fromDefaults(listing)\n });\n }\n \n }), [bookingStatus]);\n var calculator = state.bookingCalculator;\n var tmp;\n if (listingPhoto !== undefined) {\n var photo = Caml_option.valFromOption(listingPhoto);\n tmp = JsxPPXReactSupport.createElementWithKey(Curry._1(AwsImageHandlerV5.ImageUrl.toString, photo), $$Image.make, {\n className: css.listingImage,\n url: Curry._1(AwsImageHandlerV5.ImageUrl.toString, photo),\n fetchWidth: 68,\n fetchHeight: 68,\n alt: listing.title,\n format: /* WebP */2\n });\n } else {\n tmp = React.createElement(ListingPhotoPlaceholder.make, {\n className: css.listingImage\n });\n }\n var match$1 = state.status;\n var tmp$1;\n if (match$1) {\n var checkIn = calculator.checkIn;\n var checkOut = calculator.checkOut;\n tmp$1 = React.createElement(\"div\", undefined, React.createElement(\"h2\", {\n className: css.estimatedTotal\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.est-total\",\n defaultMessage: \"Est. Total*\"\n })), React.createElement(\"div\", {\n className: css.total\n }, React.createElement(Currency.WithoutCents.make, {\n currency: currency,\n children: BookingCalculator.getTotal(calculator)\n })), React.createElement(\"div\", {\n className: css.dates\n }, React.createElement(HalfMoonIcon.make, {\n size: \"XS\",\n color: \"General\",\n margin: \"Right\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.nights-count\",\n defaultMessage: \"{count, plural, one {# night} other {# nights}}\",\n values: {\n count: BookingDates.getNumberOfNights(checkIn, checkOut)\n }\n }), checkIn !== undefined && checkOut !== undefined ? React.createElement(React.Fragment, undefined, Html.nbsp + Html.dot + Html.nbsp, $$Date.Naive.format(Caml_option.valFromOption(checkIn), \"MMM d, yyyy\"), \" - \", $$Date.Naive.format(Caml_option.valFromOption(checkOut), \"MMM d, yyyy\")) : null), React.createElement(BookingCalculatorLineChart.make, {\n calculator: calculator\n }));\n } else {\n tmp$1 = React.createElement(Spinner.make, {\n size: /* LG */2,\n color: /* Primary */0,\n className: css.badgeLoading\n });\n }\n var token = calculator.token;\n return React.createElement(SlvBlock.make, {\n id: \"BookingCalculator\",\n children: null\n }, React.createElement(\"div\", {\n className: css.bookingCalculatorBadge\n }, React.createElement(\"div\", {\n className: css.bookingCalculatorInfo\n }, React.createElement(H3.make, {\n className: \"tw-mb-[24px]\",\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.title\",\n defaultMessage: \"Booking Estimator \"\n })\n }), React.createElement(\"p\", {\n className: css.infoText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.text\",\n defaultMessage: \"Use this booking tool to understand exactly what you will pay to the host.\"\n }), React.createElement(\"br\", undefined), React.createElement(\"strong\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.tip-title\",\n defaultMessage: \"HiChee Tip: \"\n })), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.tip-text\",\n defaultMessage: \"Did you know about 15% to 20% of what you pay goes to the travel agencies\\nfor their services, and is not paid to the host.\"\n }), React.createElement(\"br\", undefined), React.createElement(\"strong\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.share\",\n defaultMessage: \"Share\"\n })), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.share-text\",\n defaultMessage: \" this with the host to find out how much of these service fees you could save.\"\n }))), React.createElement(\"div\", {\n className: css.listingPreview\n }, React.createElement(\"div\", {\n className: css.listingBadge\n }, tmp, Listing.Contextual.getFirstTitle(listing)), React.createElement(\"div\", {\n className: css.infoPanel\n }, React.createElement(\"p\", {\n className: css.infoTitle\n }, Listing.Contextual.isVisuallyVerified(listing) ? React.createElement(React.Fragment, undefined, React.createElement(VerifiedIcon.make, {\n size: \"SM\",\n color: \"Teal\",\n margin: \"Right\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.verified\",\n defaultMessage: \"This listing is verified in HiChee.\"\n })) : React.createElement(React.Fragment, undefined, React.createElement(WarningCircleFullIcon.make, {\n size: \"SM\",\n color: \"Primary\",\n margin: \"Right\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.not-verified\",\n defaultMessage: \"This listing is not verified in HiChee.\"\n }))))), tmp$1, React.createElement(\"div\", {\n className: css.bookingCalculatorAction\n }, React.createElement(BookingCalculatorTooltip.make, {}), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n className: css.button,\n testId: \"booking-calculator-start-button\",\n onClick: (function (param) {\n Curry._1(bookingCalculatorModal.show, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-badge.action-button\",\n defaultMessage: \"Start now\"\n })\n }))), React.createElement(SlvBookingCalculatorModal.make, {\n modal: bookingCalculatorModal,\n calculator: calculator,\n onSave: (function (calculator) {\n Curry._1(bookingCalculatorModal.hide, undefined);\n Curry._1(bookingCalculatorShareModal.show, undefined);\n }),\n onUpdate: (function (calculator) {\n Curry._1(dispatch, {\n TAG: /* SetState */1,\n _0: /* Ready */1,\n _1: calculator\n });\n }),\n screen: props.screen,\n user: user,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal,\n canDoMagicSearch: props.canDoMagicSearch\n }), token !== undefined ? React.createElement(BookingCalculatorShareModal.make, {\n modal: bookingCalculatorShareModal,\n calculator: calculator,\n url: Route.absolute(Route.bookingCalculator(token)),\n user: user\n }) : null);\n}\n\nvar make = SlvBookingCalculatorBadge;\n\nexports.css = css;\nexports.Status = Status;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar BookingCalculatorForm = require(\"../../../booking-calculators-show/components/BookingCalculatorForm.bs.js\");\nvar SlvBookingCalculatorModalScss = require(\"./SlvBookingCalculatorModal.scss\").default;\n\nvar css = SlvBookingCalculatorModalScss;\n\nfunction SlvBookingCalculatorModal(props) {\n return React.createElement(ModalDialog.make, {\n modal: props.modal,\n className: css.modal,\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-calculator-modal.title\",\n defaultMessage: \"Booking Estimator\"\n })),\n testId: \"booking-calculator-modal\",\n children: React.createElement(BookingCalculatorForm.make, {\n calculator: props.calculator,\n screen: props.screen,\n user: props.user,\n onSave: props.onSave,\n onUpdate: props.onUpdate,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal,\n canDoMagicSearch: props.canDoMagicSearch\n })\n });\n}\n\nvar make = SlvBookingCalculatorModal;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Api = require(\"../../../../../api/Api.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Sentry = require(\"../../../../../bindings/Sentry.bs.js\");\nvar Booking = require(\"../../../../../models/Booking.bs.js\");\nvar Listing = require(\"../../../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../../../bindings/Promise.bs.js\");\nvar Amplitude = require(\"../../../../../libs/Amplitude.bs.js\");\nvar SlvBooking = require(\"../../SlvBooking.bs.js\");\nvar WithTestId = require(\"../../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar SearchParams = require(\"../../../../../libs/SearchParams.bs.js\");\nvar SlvProviderRowQuote = require(\"./SlvProviderRowQuote.bs.js\");\nvar SlvProviderRowSample = require(\"./SlvProviderRowSample.bs.js\");\nvar SlvProviderRowLoading = require(\"./SlvProviderRowLoading.bs.js\");\nvar SlvProviderRowNoDates = require(\"./SlvProviderRowNoDates.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowNotListed = require(\"./SlvProviderRowNotListed.bs.js\");\nvar SlvProviderRowPickDates = require(\"./SlvProviderRowPickDates.bs.js\");\nvar SlvProviderRowFetchError = require(\"./SlvProviderRowFetchError.bs.js\");\nvar SlvProviderRowCloseMatches = require(\"./SlvProviderRowCloseMatches.bs.js\");\nvar SlvProviderRowUnavailableDates = require(\"./SlvProviderRowUnavailableDates.bs.js\");\nvar SlvProviderRowLoadingCloseMatches = require(\"./SlvProviderRowLoadingCloseMatches.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRow(props) {\n var screen = props.screen;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var isLongLoading = props.isLongLoading;\n var pickDates = props.pickDates;\n var onCloseMatchesFetch = props.onCloseMatchesFetch;\n var closeMatches = props.closeMatches;\n var showListingCloseMatchesModal = props.showListingCloseMatchesModal;\n var user = props.user;\n var useManagerInfo = props.useManagerInfo;\n var providerVrbp = props.providerVrbp;\n var icon = props.icon;\n var provider = props.provider;\n var booking = props.booking;\n var listing = props.listing;\n var useManagerInfo$1 = useManagerInfo !== undefined ? useManagerInfo : false;\n var currency = listing.currency;\n var providerStatus = React.useMemo((function () {\n var quote = SlvBooking.Status.quote(booking.status);\n return Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, provider);\n }));\n }), [\n booking.status,\n provider\n ]);\n var displayBadges = React.useMemo((function () {\n if (provider === /* Hichee */0) {\n if (listing.badgeNegotiable || listing.badgeCryptocurrency) {\n return true;\n } else {\n return listing.badgeTrueDirectPrice;\n }\n } else {\n return false;\n }\n }), [\n listing.badgeNegotiable,\n listing.badgeCryptocurrency,\n listing.badgeTrueDirectPrice,\n provider\n ]);\n var transferPageUrl = React.useMemo((function () {\n return Route.transferPageWithBookingData(listing.id, provider, booking.input.checkIn, booking.input.checkOut, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets, listing.currency, booking.input.locale, booking.input.countryOverride, /* PageSlv */0);\n }), [\n provider,\n booking.status\n ]);\n var contactHost = function (param) {\n Curry._1(booking.showInquiryModal, undefined);\n };\n React.useEffect((function () {\n var match = Listing.Contextual.isVerified(listing);\n if (providerVrbp !== undefined) {\n return ;\n } else {\n if (match) {\n Curry._1(onCloseMatchesFetch, {\n provider: provider,\n listings: []\n });\n } else {\n $$Promise.wait(Api.getListingCloseMatches(listing.id, Vrbp.Provider.toString(provider), SearchParams.getParams(undefined)), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(onCloseMatchesFetch, {\n provider: provider,\n listings: x._0\n });\n }\n Sentry.error1({\n rootModule: \"SlvProviderRow\",\n subModulePath: /* [] */0,\n value: \"make\",\n fullPath: \"SlvProviderRow.make\"\n }, \"ListinglistingCloseMatchesRequest::Error\", [\n \"Error\",\n x._0\n ]);\n Curry._1(onCloseMatchesFetch, {\n provider: provider,\n listings: []\n });\n }));\n }\n return ;\n }\n }), [\n providerVrbp,\n booking.input.checkIn,\n booking.input.checkOut\n ]);\n var match = booking.status;\n var tmp;\n var exit = 0;\n var quote;\n var providerQuote;\n if (match === 0) {\n tmp = React.createElement(SlvProviderRowSample.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n displayBadges: displayBadges\n });\n } else if (providerVrbp !== undefined) {\n var exit$1 = 0;\n var exit$2 = 0;\n var exit$3 = 0;\n if (typeof match === \"number\") {\n var match$1 = booking.input.checkIn;\n var match$2 = booking.input.checkOut;\n var exit$4 = 0;\n if (match$1 !== undefined || match$2 !== undefined) {\n exit$4 = 7;\n } else {\n tmp = React.createElement(SlvProviderRowNoDates.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n currency: currency,\n pickDates: pickDates,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n }\n if (exit$4 === 7) {\n tmp = React.createElement(SlvProviderRowLoading.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n isLongLoading: isLongLoading,\n booking: booking,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges\n });\n }\n \n } else if (match.TAG === /* FetchingQuote */0) {\n var match$3 = match._0;\n if (typeof match$3 === \"object\") {\n if (providerStatus !== undefined) {\n if (providerStatus) {\n var providerQuote$1 = providerStatus._0;\n if (providerQuote$1.TAG === /* Ok */0) {\n quote = match$3.VAL;\n providerQuote = providerQuote$1._0;\n exit = 3;\n } else {\n exit$1 = 4;\n }\n } else {\n exit$3 = 6;\n }\n } else {\n exit$1 = 4;\n }\n } else {\n exit = 1;\n }\n } else {\n var match$4 = match._0;\n if (match$4.TAG === /* Ok */0) {\n var match$5 = match$4._0;\n if (typeof match$5 === \"object\" && match$5.NAME === \"Quote\") {\n if (providerStatus !== undefined) {\n if (providerStatus) {\n var providerQuote$2 = providerStatus._0;\n if (providerQuote$2.TAG === /* Ok */0) {\n quote = match$5.VAL;\n providerQuote = providerQuote$2._0;\n exit = 3;\n } else {\n exit$1 = 4;\n }\n } else {\n exit$3 = 6;\n }\n } else {\n exit$1 = 4;\n }\n } else {\n exit$3 = 6;\n }\n } else {\n exit$3 = 6;\n }\n }\n if (exit$3 === 6) {\n if (providerStatus !== undefined && !providerStatus) {\n exit = 1;\n } else {\n exit$2 = 5;\n }\n }\n if (exit$2 === 5) {\n var match$6 = match._0;\n if (match$6.TAG === /* Ok */0 && match$6._0 !== \"NoQuote\") {\n exit$1 = 4;\n } else {\n exit = 2;\n }\n }\n if (exit$1 === 4) {\n if (providerStatus !== undefined) {\n var error = providerStatus._0._0;\n var exit$5 = 0;\n if (error >= 3) {\n exit$5 = 5;\n } else {\n switch (error) {\n case /* ListingIsNotActive */0 :\n exit$5 = 5;\n break;\n case /* ListingIsNotAvailable */1 :\n tmp = React.createElement(SlvProviderRowUnavailableDates.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n break;\n case /* ListingHasNoNativeId */2 :\n tmp = React.createElement(SlvProviderRowNotListed.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n icon: icon\n });\n break;\n \n }\n }\n if (exit$5 === 5) {\n tmp = React.createElement(SlvProviderRowFetchError.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n }\n \n } else {\n tmp = React.createElement(SlvProviderRowFetchError.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n }\n }\n \n } else if (closeMatches !== undefined) {\n var match$7 = closeMatches.listings;\n var match$8 = Listing.Contextual.isVerified(listing);\n var exit$6 = 0;\n if (match$7.length !== 0 && !match$8) {\n tmp = React.createElement(SlvProviderRowCloseMatches.make, {\n closeMatchListings: match$7,\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n icon: icon,\n onClick: (function (param) {\n Amplitude.Slv.closeMatchesRequested(listing.id, Listing.Contextual.isVerified(listing));\n Curry._1(showListingCloseMatchesModal, provider);\n }),\n screen: screen\n });\n } else {\n exit$6 = 4;\n }\n if (exit$6 === 4) {\n tmp = React.createElement(SlvProviderRowNotListed.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n icon: icon\n });\n }\n \n } else {\n tmp = React.createElement(SlvProviderRowLoadingCloseMatches.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n icon: icon\n });\n }\n switch (exit) {\n case 1 :\n tmp = React.createElement(SlvProviderRowLoading.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n isLongLoading: isLongLoading,\n booking: booking,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges\n });\n break;\n case 2 :\n var match$9 = booking.input.checkIn;\n var match$10 = booking.input.checkOut;\n var exit$7 = 0;\n if (match$9 !== undefined && match$10 !== undefined) {\n tmp = React.createElement(SlvProviderRowPickDates.make, {\n provider: provider,\n icon: icon,\n useManagerInfo: useManagerInfo$1,\n listing: listing,\n pickDates: pickDates,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n } else {\n exit$7 = 4;\n }\n if (exit$7 === 4) {\n tmp = React.createElement(SlvProviderRowNoDates.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n currency: currency,\n pickDates: pickDates,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n }\n break;\n case 3 :\n var match$11 = booking.input.checkIn;\n var match$12 = booking.input.checkOut;\n var exit$8 = 0;\n if (match$11 !== undefined && match$12 !== undefined) {\n tmp = React.createElement(SlvProviderRowQuote.make, {\n provider: provider,\n icon: icon,\n checkIn: quote.checkIn,\n checkOut: quote.checkOut,\n bestDeal: props.bestDeal,\n providerQuote: providerQuote,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n currency: currency,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n } else {\n exit$8 = 4;\n }\n if (exit$8 === 4) {\n tmp = React.createElement(SlvProviderRowNoDates.make, {\n provider: provider,\n icon: icon,\n listing: listing,\n useManagerInfo: useManagerInfo$1,\n currency: currency,\n pickDates: pickDates,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n }\n break;\n \n }\n return React.createElement(WithTestId.make, {\n id: \"booking-deals-provider-row-\" + Vrbp.Provider.toRspecClassname(provider),\n children: React.createElement(\"div\", {\n className: Cx.cx([\n css.bookingDeal,\n css.providerRow\n ])\n }, tmp)\n });\n}\n\nvar make = SlvProviderRow;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar ListingPreferencesBadges = require(\"../../../../../styleguide/components/ListingPreferencesBadges/ListingPreferencesBadges.bs.js\");\n\nfunction SlvProviderRowBadges(props) {\n var listing = props.listing;\n var intl = ReactIntl.useIntl();\n if (props.provider !== 0) {\n return null;\n } else {\n return React.createElement(\"div\", {\n className: \"tw-px-[16px] tw-py-[8px] tw-border-t tw-border-l-0 tw-border-r-0 tw-border-b-0 tw-border-solid tw-border-t-neutral-200\"\n }, React.createElement(ListingPreferencesBadges.make, {\n justify: /* Between */1,\n hasBadgeCryptocurrency: listing.badgeCryptocurrency,\n hasBadgeNegotiable: listing.badgeNegotiable,\n hasBadgeTrueDirectPrice: listing.badgeTrueDirectPrice,\n intl: intl\n }));\n }\n}\n\nvar make = SlvProviderRowBadges;\n\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../../styleguide/components/Button/Button.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar TextControl = require(\"../../../../../styleguide/components/Control/TextControl.bs.js\");\nvar SlvProviderLabelText = require(\"../components/SlvProviderLabelText.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowCloseMatches(props) {\n var screen = props.screen;\n var onClick = props.onClick;\n var provider = props.provider;\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n style: /* Expanded */2,\n onClick: onClick,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.likely-matches-button\",\n defaultMessage: \"{length, plural, one {# Likely Match} other {# Likely Matches}}\",\n values: {\n length: props.closeMatchListings.length\n }\n })\n }));\n }\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: css.providerDealRow\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(\"div\", {\n className: css.providerLabel\n }, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: props.listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n })), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(\"span\", {\n className: Cx.cx([\n css.pricesNotFoundText,\n \"tw-hidden lg:tw-inline\"\n ])\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.no-exact-match\",\n defaultMessage: \"No exact match\"\n })), React.createElement(\"div\", {\n className: \"lg:tw-hidden\"\n }, React.createElement(TextControl.make, {\n style: /* General */0,\n onClick: onClick,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.likely-matches-button-mobile\",\n defaultMessage: \"Likely Matches\"\n })\n }))), tmp)));\n}\n\nvar make = SlvProviderRowCloseMatches;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../../styleguide/components/Link/A.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../../styleguide/components/Button/Button.bs.js\");\nvar Control = require(\"../../../../../styleguide/components/Control/Control.bs.js\");\nvar Listing = require(\"../../../../../models/Listing.bs.js\");\nvar Amplitude = require(\"../../../../../libs/Amplitude.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar MagicSearch = require(\"../../../../../styleguide/components/MagicSearch/MagicSearch.bs.js\");\nvar OptionalUser = require(\"../../../../../models/OptionalUser.bs.js\");\nvar SlvImageContext = require(\"../../SlvImageContext.bs.js\");\nvar SlvTransferLink = require(\"../components/SlvTransferLink.bs.js\");\nvar ExternalLinkIcon = require(\"../../../../../styleguide/icons/ExternalLinkIcon.bs.js\");\nvar ScreenSizeContext = require(\"../../../../../contexts/ScreenSizeContext.bs.js\");\nvar MessageRoundedIcon = require(\"../../../../../styleguide/icons/MessageRoundedIcon.bs.js\");\nvar SlvProviderLabelText = require(\"../components/SlvProviderLabelText.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction providerButtonTestId(provider) {\n return \"book-on-\" + Vrbp.Provider.toString(provider) + \"-button\";\n}\n\nfunction SlvProviderRowDealButton$DealButtonText(props) {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.view-on-provider\",\n defaultMessage: \"Book on {providerName}\",\n values: {\n providerName: props.providerLabel\n }\n });\n}\n\nvar DealButtonText = {\n make: SlvProviderRowDealButton$DealButtonText\n};\n\nfunction SlvProviderRowDealButton$DealButton(props) {\n var user = props.user;\n var screen = props.screen;\n var transferPageUrl = props.transferPageUrl;\n var listing = props.listing;\n var provider = props.provider;\n if (props.style) {\n return React.createElement(A.Unstyled.make, {\n href: transferPageUrl,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n className: css.providerLabelDeal,\n onClick: (function (param) {\n SlvTransferLink.amplitudeActionIsNewUser(user, listing, provider);\n SlvTransferLink.handleTransferEvent(provider, screen, listing);\n }),\n testId: providerButtonTestId(provider),\n children: null\n }, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"General\"\n }));\n } else {\n return React.createElement(Button.AsNativeLink.make, {\n href: transferPageUrl,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n testId: providerButtonTestId(provider),\n onClick: (function (param) {\n SlvTransferLink.amplitudeActionIsNewUser(user, listing, provider);\n SlvTransferLink.handleTransferEvent(provider, screen, listing);\n }),\n children: null\n }, React.createElement(SlvProviderRowDealButton$DealButtonText, {\n providerLabel: Vrbp.Provider.toView(provider)\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n }\n}\n\nvar DealButton = {\n make: SlvProviderRowDealButton$DealButton\n};\n\nfunction SlvProviderRowDealButton$DealButtonRestricted(props) {\n var showFeatureLimitModal = props.showFeatureLimitModal;\n var user = props.user;\n var listing = props.listing;\n var provider = props.provider;\n if (props.style) {\n return React.createElement(Control.make, {\n testId: providerButtonTestId(provider),\n className: css.providerLabelDeal,\n onClick: (function (param) {\n SlvTransferLink.amplitudeActionIsNewUser(user, listing, provider);\n Curry._1(showFeatureLimitModal, undefined);\n }),\n children: null\n }, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"General\"\n }));\n } else {\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n testId: providerButtonTestId(provider),\n onClick: (function (param) {\n SlvTransferLink.amplitudeActionIsNewUser(user, listing, provider);\n Curry._1(showFeatureLimitModal, undefined);\n }),\n children: null\n }, React.createElement(SlvProviderRowDealButton$DealButtonText, {\n providerLabel: Vrbp.Provider.toView(provider)\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n }\n}\n\nvar DealButtonRestricted = {\n make: SlvProviderRowDealButton$DealButtonRestricted\n};\n\nfunction SlvProviderRowDealButton$DealButtonWithLogin(props) {\n var user = props.user;\n var listing = props.listing;\n var provider = props.provider;\n if (props.style) {\n return React.createElement(Control.make, {\n className: css.providerLabelDeal,\n onClick: (function (param) {\n SlvTransferLink.amplitudeActionNotLoggedIn(listing, provider);\n SlvTransferLink.logIn(user);\n }),\n children: null\n }, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"General\"\n }));\n } else {\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n onClick: (function (param) {\n SlvTransferLink.amplitudeActionNotLoggedIn(listing, provider);\n SlvTransferLink.logIn(user);\n }),\n children: null\n }, React.createElement(SlvProviderRowDealButton$DealButtonText, {\n providerLabel: Vrbp.Provider.toView(provider)\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n }\n}\n\nvar DealButtonWithLogin = {\n make: SlvProviderRowDealButton$DealButtonWithLogin\n};\n\nfunction SlvProviderRowDealButton$NoMatchesButton(props) {\n var provider = props.provider;\n if (props.style) {\n return React.createElement(React.Fragment, undefined, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: props.listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"General\"\n }));\n } else {\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n disabled: true,\n visuallyDisabled: true,\n onClick: (function (prim) {\n \n }),\n children: null\n }, React.createElement(SlvProviderRowDealButton$DealButtonText, {\n providerLabel: Vrbp.Provider.toView(provider)\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n }\n}\n\nvar NoMatchesButton = {\n make: SlvProviderRowDealButton$NoMatchesButton\n};\n\nfunction SlvProviderRowDealButton$CloseMatchesButton(props) {\n var listing = props.listing;\n var provider = props.provider;\n var showListingCloseMatchesModal = props.showListingCloseMatchesModal;\n var listingId = listing.id;\n var listingVerified = Listing.Contextual.isVerified(listing);\n var closeMatchesLength = props.closeMatchListings.length;\n if (props.style) {\n return React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n });\n } else {\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n style: /* Expanded */2,\n onClick: (function (param) {\n Amplitude.Slv.closeMatchesRequested(listingId, listingVerified);\n Curry._1(showListingCloseMatchesModal, provider);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.likely-matches-button\",\n defaultMessage: \"{length, plural, one {# Likely Match} other {# Likely Matches}}\",\n values: {\n length: closeMatchesLength\n }\n })\n });\n }\n}\n\nvar CloseMatchesButton = {\n make: SlvProviderRowDealButton$CloseMatchesButton\n};\n\nfunction SlvProviderRowDealButton$ContactHostButton(props) {\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n className: className$1,\n testId: \"booking-deals-submit\",\n onClick: props.onClick,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.contact-host-button\",\n defaultMessage: \"Send Message\"\n })\n });\n}\n\nvar ContactHostButton = {\n make: SlvProviderRowDealButton$ContactHostButton\n};\n\nfunction SlvProviderRowDealButton$ContactManagerButton(props) {\n var imageContext = React.useContext(SlvImageContext.Context.x);\n var photo = imageContext.photo;\n return React.createElement(React.Fragment, undefined, React.createElement(MagicSearch.Tooltip.make, {\n bestDeal: props.bestDeal\n }), React.createElement(MagicSearch.Button.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.manager.book-direct\",\n defaultMessage: \"Find Book Direct\"\n }),\n className: \"tw-w-full\",\n listing: props.listing,\n user: props.user,\n amplitudeEventSpecifier: \"Price Section\",\n searchType: photo !== undefined ? /* ByImage */({\n _0: photo\n }) : /* ByText */0,\n canDoMagicSearch: props.canDoMagicSearch,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal\n }));\n}\n\nvar ContactManagerButton = {\n make: SlvProviderRowDealButton$ContactManagerButton\n};\n\nfunction SlvProviderRowDealButton$BookDirectButton(props) {\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var user = props.user;\n var screen = props.screen;\n var provider = props.provider;\n var listing = props.listing;\n var match = SlvTransferLink.shouldAuthenticate(user, listing);\n if (match) {\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n testId: providerButtonTestId(provider),\n onClick: (function (param) {\n Amplitude.Slv.bookDirectNotLoggedIn(listing.id, Listing.Contextual.isVerified(listing));\n SlvTransferLink.logIn(user);\n }),\n children: null\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.visit-host-site\",\n defaultMessage: \"Book Direct\"\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n } else if (props.canExternalRedirect) {\n return React.createElement(Button.AsNativeLink.make, {\n href: props.url,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n testId: providerButtonTestId(provider),\n onClick: (function (param) {\n if (OptionalUser.isNewUser(user)) {\n Amplitude.Slv.bookDirectNewAccount(listing.id, Listing.Contextual.isVerified(listing), provider, user.id);\n }\n SlvTransferLink.handleTransferEvent(provider, screen, listing);\n }),\n children: null\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.visit-host-site\",\n defaultMessage: \"Book Direct\"\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n } else {\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n testId: providerButtonTestId(provider),\n onClick: (function (param) {\n if (OptionalUser.isNewUser(user)) {\n Amplitude.Slv.bookDirectNewAccount(listing.id, Listing.Contextual.isVerified(listing), provider, user.id);\n }\n Curry._1(showExternalRedirectLimitModal, undefined);\n }),\n children: null\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.visit-host-site\",\n defaultMessage: \"Book Direct\"\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"White\"\n }));\n }\n}\n\nvar BookDirectButton = {\n make: SlvProviderRowDealButton$BookDirectButton\n};\n\nfunction SlvProviderRowDealButton(props) {\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var icon = props.icon;\n var user = props.user;\n var contactHost = props.contactHost;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var provider = props.provider;\n var style = props.style;\n var style$1 = style !== undefined ? style : /* Button */0;\n var listingId = listing.id;\n var listingVerified = Listing.Contextual.isVerified(listing);\n var screen = React.useContext(ScreenSizeContext.Context.x);\n if (provider !== 0) {\n var match = SlvTransferLink.shouldAuthenticate(user, listing);\n if (match) {\n return React.createElement(SlvProviderRowDealButton$DealButtonWithLogin, {\n style: style$1,\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n user: user,\n icon: icon\n });\n } else if (canExternalRedirect) {\n return React.createElement(SlvProviderRowDealButton$DealButton, {\n style: style$1,\n provider: provider,\n listing: listing,\n transferPageUrl: props.transferPageUrl,\n useManagerInfo: useManagerInfo,\n screen: screen,\n user: user,\n icon: icon\n });\n } else {\n return React.createElement(SlvProviderRowDealButton$DealButtonRestricted, {\n style: style$1,\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n user: user,\n icon: icon,\n showFeatureLimitModal: showExternalRedirectLimitModal\n });\n }\n }\n var match$1 = listing.managerWebsiteUrl;\n var match$2 = listing.vrbpData.hasDirect;\n var hostUrl;\n var exit = 0;\n if (listingVerified && match$1 !== undefined && match$1 !== \"\") {\n hostUrl = Route.hostBookDirect(match$1);\n } else {\n exit = 1;\n }\n if (exit === 1) {\n hostUrl = match$2 ? Route.bookDirect(listingId) : undefined;\n }\n var match$3 = listing.manager;\n var exit$1 = 0;\n var url;\n if (useManagerInfo) {\n if (match$3 !== undefined) {\n var exit$2 = 0;\n if (hostUrl !== undefined) {\n if (hostUrl !== \"\") {\n return React.createElement(SlvProviderRowDealButton$BookDirectButton, {\n listing: listing,\n provider: provider,\n url: hostUrl,\n screen: screen,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect\n });\n }\n exit$2 = 3;\n } else {\n exit$2 = 3;\n }\n if (exit$2 === 3) {\n return React.createElement(SlvProviderRowDealButton$ContactManagerButton, {\n listing: listing,\n user: user,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal,\n canDoMagicSearch: props.canDoMagicSearch,\n bestDeal: props.bestDeal\n });\n }\n \n } else if (hostUrl !== undefined) {\n url = hostUrl;\n exit$1 = 2;\n }\n \n } else if (hostUrl !== undefined) {\n url = hostUrl;\n exit$1 = 2;\n }\n if (exit$1 === 2 && url !== \"\") {\n return React.createElement(React.Fragment, undefined, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n className: \"tw-p-[11px]\",\n onClick: contactHost,\n children: React.createElement(MessageRoundedIcon.make, {\n size: \"MD\",\n color: \"White\"\n })\n }), React.createElement(SlvProviderRowDealButton$BookDirectButton, {\n listing: listing,\n provider: provider,\n url: url,\n screen: screen,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect\n }));\n }\n return React.createElement(SlvProviderRowDealButton$ContactHostButton, {\n onClick: contactHost\n });\n}\n\nvar make = SlvProviderRowDealButton;\n\nexports.css = css;\nexports.providerButtonTestId = providerButtonTestId;\nexports.DealButtonText = DealButtonText;\nexports.DealButton = DealButton;\nexports.DealButtonRestricted = DealButtonRestricted;\nexports.DealButtonWithLogin = DealButtonWithLogin;\nexports.NoMatchesButton = NoMatchesButton;\nexports.CloseMatchesButton = CloseMatchesButton;\nexports.ContactHostButton = ContactHostButton;\nexports.ContactManagerButton = ContactManagerButton;\nexports.BookDirectButton = BookDirectButton;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ResponsiveDialog = require(\"../../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar SlvProviderLabel = require(\"../components/SlvProviderLabel.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowDealButton = require(\"./SlvProviderRowDealButton.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowFetchError(props) {\n var screen = props.screen;\n var displayBadges = props.displayBadges;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var user = props.user;\n var contactHost = props.contactHost;\n var transferPageUrl = props.transferPageUrl;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var icon = props.icon;\n var provider = props.provider;\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n }));\n }\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(SlvProviderLabel.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.unavailable-on-hichee.title\",\n defaultMessage: \"View only\"\n }),\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.unavailable-on-hichee.title\",\n defaultMessage: \"View only\"\n })),\n side: /* Bottom */1,\n children: null\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.unavailable-on-hichee.description\",\n defaultMessage: \"Check on {provider} if this property is available to book or find a similar listing\",\n values: {\n provider: Vrbp.Provider.toView(provider)\n }\n }), provider !== 0 ? React.createElement(\"div\", {\n className: css.modalDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n })) : null))), tmp), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null);\n}\n\nvar make = SlvProviderRowFetchError;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../../styleguide/components/Link/A.bs.js\");\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Spinner = require(\"../../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar MagicSearch = require(\"../../../../../styleguide/components/MagicSearch/MagicSearch.bs.js\");\nvar TextControl = require(\"../../../../../styleguide/components/Control/TextControl.bs.js\");\nvar WarningBadge = require(\"../../../../../styleguide/components/WarningBadge/WarningBadge.bs.js\");\nvar SlvImageContext = require(\"../../SlvImageContext.bs.js\");\nvar SlvTransferLink = require(\"../components/SlvTransferLink.bs.js\");\nvar ScreenSizeContext = require(\"../../../../../contexts/ScreenSizeContext.bs.js\");\nvar SlvProviderLabelText = require(\"../components/SlvProviderLabelText.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowDealButton = require(\"./SlvProviderRowDealButton.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowLoading(props) {\n var displayBadges = props.displayBadges;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var booking = props.booking;\n var isLongLoading = props.isLongLoading;\n var user = props.user;\n var transferPageUrl = props.transferPageUrl;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var icon = props.icon;\n var provider = props.provider;\n var screen = React.useContext(ScreenSizeContext.Context.x);\n var ctx = React.useContext(SlvImageContext.Context.x);\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: props.contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n }));\n }\n var tmp$1;\n if (isLongLoading) {\n if (provider !== 0) {\n tmp$1 = React.createElement(WarningBadge.make, {\n borderRadiusPlacement: /* Bottom */2,\n warning: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.warning.loading-takes-long\",\n defaultMessage: \"Fetching prices is taking longer than expected. <a>Book on {provider}</a> directly.\",\n values: {\n provider: Vrbp.Provider.toView(provider),\n a: (function (chunks) {\n var match = SlvTransferLink.shouldAuthenticate(user, listing);\n if (match) {\n return React.createElement(TextControl.make, {\n inline: true,\n onClick: (function (param) {\n SlvTransferLink.logIn(user);\n }),\n children: chunks\n });\n } else if (canExternalRedirect) {\n return React.createElement(A.make, {\n href: transferPageUrl,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n style: /* General */0,\n onClick: (function (param) {\n SlvTransferLink.handleTransferEvent(provider, screen, listing);\n }),\n children: chunks\n });\n } else {\n return React.createElement(TextControl.make, {\n inline: true,\n onClick: (function (param) {\n Curry._1(showExternalRedirectLimitModal, undefined);\n }),\n children: chunks\n });\n }\n })\n }\n })\n });\n } else {\n var match = listing.managerWebsiteUrl;\n var match$1 = listing.vrbpData.hasDirect;\n var hostUrl;\n var exit$1 = 0;\n if (match !== undefined && match !== \"\") {\n hostUrl = Route.hostBookDirect(match);\n } else {\n exit$1 = 1;\n }\n if (exit$1 === 1) {\n hostUrl = match$1 ? Route.bookDirect(listing.id) : undefined;\n }\n var match$2 = listing.manager;\n var tmp$2;\n var exit$2 = 0;\n var exit$3 = 0;\n var url;\n if (useManagerInfo) {\n if (match$2 !== undefined) {\n tmp$2 = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.warning.loading-takes-long.meta-managers\",\n defaultMessage: \"Fetching prices is taking longer than expected. Try <a>Find Book Direct</a>.\",\n values: {\n provider: Vrbp.Provider.toView(provider),\n a: (function (chunks) {\n var photo = ctx.photo;\n return React.createElement(MagicSearch.Block.make, {\n children: chunks,\n className: \"tw-inline-block tw-underline\",\n listing: listing,\n searchType: photo !== undefined ? /* ByImage */({\n _0: photo\n }) : /* ByText */0,\n user: user,\n canDoMagicSearch: canDoMagicSearch,\n showMagicSearchLimitModal: showMagicSearchLimitModal\n });\n })\n }\n });\n } else if (hostUrl !== undefined) {\n url = hostUrl;\n exit$3 = 2;\n } else {\n exit$2 = 1;\n }\n } else if (hostUrl !== undefined) {\n url = hostUrl;\n exit$3 = 2;\n } else {\n exit$2 = 1;\n }\n if (exit$3 === 2) {\n if (url !== \"\") {\n tmp$2 = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.warning.loading-takes-long.verified-listing-with-direct-link\",\n defaultMessage: \"Fetching prices is taking longer than expected. <a>Visit Site</a> directly.\",\n values: {\n provider: Vrbp.Provider.toView(provider),\n a: (function (chunks) {\n var match = SlvTransferLink.shouldAuthenticate(user, listing);\n if (match) {\n return React.createElement(TextControl.make, {\n inline: true,\n onClick: (function (param) {\n SlvTransferLink.logIn(user);\n }),\n children: chunks\n });\n } else if (canExternalRedirect) {\n return React.createElement(A.make, {\n href: url,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n style: /* General */0,\n onClick: (function (param) {\n SlvTransferLink.handleTransferEvent(provider, screen, listing);\n }),\n children: chunks\n });\n } else {\n return React.createElement(TextControl.make, {\n inline: true,\n onClick: (function (param) {\n Curry._1(showExternalRedirectLimitModal, undefined);\n }),\n children: chunks\n });\n }\n })\n }\n });\n } else {\n exit$2 = 1;\n }\n }\n if (exit$2 === 1) {\n tmp$2 = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.warning.loading-takes-long.verified-listing-with-no-direct-link\",\n defaultMessage: \"Fetching prices is taking longer than expected. <a>Send a message</a> to the host.\",\n values: {\n provider: Vrbp.Provider.toView(provider),\n a: (function (chunks) {\n return React.createElement(TextControl.make, {\n inline: true,\n onClick: (function (param) {\n Curry._1(booking.showMessageModal, undefined);\n }),\n children: chunks\n });\n })\n }\n });\n }\n tmp$1 = React.createElement(WarningBadge.make, {\n borderRadiusPlacement: /* Bottom */2,\n warning: tmp$2\n });\n }\n } else {\n tmp$1 = null;\n }\n return React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDeal,\n isLongLoading ? css.warningProviderRow : \"\"\n ])\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(\"div\", {\n className: Cx.cx([css.providerLabel])\n }, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon\n })), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(Spinner.make, {\n size: /* SM */0,\n color: /* Primary */0,\n centered: false\n }))), tmp), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null, tmp$1);\n}\n\nvar make = SlvProviderRowLoading;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Spinner = require(\"../../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar ExternalLinkIcon = require(\"../../../../../styleguide/icons/ExternalLinkIcon.bs.js\");\nvar SlvProviderLabelText = require(\"../components/SlvProviderLabelText.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowLoadingCloseMatches(props) {\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: css.providerDealRow\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerLabel,\n css.providerLabelDisabled\n ])\n }, React.createElement(SlvProviderLabelText.make, {\n provider: props.provider,\n listing: props.listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"General\",\n className: \"lg:tw-hidden\"\n })), React.createElement(\"div\", {\n className: css.pricesNotFoundText\n }, React.createElement(Spinner.make, {\n size: /* SM */0,\n color: /* Primary */0,\n centered: false\n })))));\n}\n\nvar make = SlvProviderRowLoadingCloseMatches;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Span = require(\"../../../../../styleguide/components/Typography/Span.bs.js\");\nvar React = require(\"react\");\nvar Currency = require(\"../../../../../styleguide/components/Currency/Currency.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ResponsiveDialog = require(\"../../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar SlvProviderLabel = require(\"../components/SlvProviderLabel.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowPickDates = require(\"./SlvProviderRowPickDates.bs.js\");\nvar SlvProviderRowDealButton = require(\"./SlvProviderRowDealButton.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction getAvgNightlyPriceForProvider(listing, provider) {\n switch (provider) {\n case /* Hichee */0 :\n return listing.averageNightlyPrices.hichee;\n case /* Airbnb */1 :\n return listing.averageNightlyPrices.airbnb;\n case /* Bookingcom */2 :\n return listing.averageNightlyPrices.bookingcom;\n case /* Vrbo */3 :\n return listing.averageNightlyPrices.vrbo;\n \n }\n}\n\nfunction SlvProviderRowNoDates(props) {\n var screen = props.screen;\n var displayBadges = props.displayBadges;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var user = props.user;\n var contactHost = props.contactHost;\n var transferPageUrl = props.transferPageUrl;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var icon = props.icon;\n var provider = props.provider;\n var averagePriceForProvider = React.useMemo((function () {\n return getAvgNightlyPriceForProvider(listing, provider);\n }), [\n provider,\n listing\n ]);\n if (averagePriceForProvider !== undefined && averagePriceForProvider > 0.0) {\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 2;\n }\n if (exit === 2) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n }));\n }\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(SlvProviderLabel.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.approx-price\",\n defaultMessage: \"approx. {price}\",\n values: {\n price: React.createElement(Span.make, {\n fontWeight: /* Medium */2,\n children: React.createElement(Currency.WithoutCents.make, {\n currency: props.currency,\n children: averagePriceForProvider\n })\n })\n }\n }),\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.average-price\",\n defaultMessage: \"Average price is shown\"\n })),\n children: null\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.pick-dates-for-accurate-price\",\n defaultMessage: \"Please, pick dates for accurate price.\"\n }), provider !== 0 ? React.createElement(\"div\", {\n className: css.modalDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n })) : null))), tmp), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null);\n }\n return React.createElement(SlvProviderRowPickDates.make, {\n provider: provider,\n icon: icon,\n useManagerInfo: useManagerInfo,\n listing: listing,\n pickDates: props.pickDates,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n displayBadges: displayBadges,\n screen: screen\n });\n}\n\nvar make = SlvProviderRowNoDates;\n\nexports.css = css;\nexports.getAvgNightlyPriceForProvider = getAvgNightlyPriceForProvider;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar ExternalLinkIcon = require(\"../../../../../styleguide/icons/ExternalLinkIcon.bs.js\");\nvar SlvProviderLabelText = require(\"../components/SlvProviderLabelText.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowNotListed(props) {\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: css.providerDealRow\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerLabel,\n css.providerLabelDisabled\n ])\n }, React.createElement(SlvProviderLabelText.make, {\n provider: props.provider,\n listing: props.listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n }), React.createElement(ExternalLinkIcon.make, {\n size: \"SM\",\n color: \"General\",\n className: \"lg:tw-hidden\"\n })), React.createElement(\"div\", {\n className: css.pricesNotFoundText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.not-listed\",\n defaultMessage: \"Not listed\"\n })))));\n}\n\nvar make = SlvProviderRowNotListed;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar TextControl = require(\"../../../../../styleguide/components/Control/TextControl.bs.js\");\nvar SlvProviderLabel = require(\"../components/SlvProviderLabel.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowDealButton = require(\"./SlvProviderRowDealButton.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowPickDates(props) {\n var screen = props.screen;\n var displayBadges = props.displayBadges;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var user = props.user;\n var contactHost = props.contactHost;\n var transferPageUrl = props.transferPageUrl;\n var pickDates = props.pickDates;\n var listing = props.listing;\n var useManagerInfo = props.useManagerInfo;\n var icon = props.icon;\n var provider = props.provider;\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n }));\n }\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(SlvProviderLabel.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(TextControl.make, {\n style: /* General */0,\n onClick: (function (param) {\n Curry._1(pickDates, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.pick-dates-button-pickup\",\n defaultMessage: \"Pick dates\"\n })\n }))), tmp), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null);\n}\n\nvar make = SlvProviderRowPickDates;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Html = require(\"../../../../../libs/Html.bs.js\");\nvar Span = require(\"../../../../../styleguide/components/Typography/Span.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../../models/Listing.bs.js\");\nvar Currency = require(\"../../../../../styleguide/components/Currency/Currency.bs.js\");\nvar WithTestId = require(\"../../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ResponsiveDialog = require(\"../../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar SlvProviderLabel = require(\"../components/SlvProviderLabel.bs.js\");\nvar PriceBreakdownPopup = require(\"../components/PriceBreakdownPopup.bs.js\");\nvar TooltipQuestionIcon = require(\"../../../../../styleguide/icons/TooltipQuestionIcon.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowDealButton = require(\"./SlvProviderRowDealButton.bs.js\");\nvar SlvProviderRowSavingsBadge = require(\"./SlvProviderRowSavingsBadge.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction isBestDeal(provider, bestDeal) {\n if (bestDeal === undefined) {\n return false;\n }\n var match = bestDeal.comparingTo;\n if (match !== undefined) {\n return Vrbp.BestDeal.isBestDealForProvider(bestDeal, provider);\n } else {\n return false;\n }\n}\n\nfunction getBestDealRowStyle(hostType, provider) {\n if (provider !== 0) {\n return css.bestDealRowOta;\n } else if (hostType !== undefined) {\n if (hostType) {\n return css.bestDealRowPropertyManager;\n } else {\n return css.bestDealRowVerifiedHost;\n }\n } else {\n return \"\";\n }\n}\n\nfunction shouldShowSavingsBadge(hostType, provider) {\n if (hostType !== undefined) {\n return true;\n } else {\n return provider !== 0;\n }\n}\n\nfunction SlvProviderRowQuote(props) {\n var screen = props.screen;\n var displayBadges = props.displayBadges;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var user = props.user;\n var contactHost = props.contactHost;\n var transferPageUrl = props.transferPageUrl;\n var currency = props.currency;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var providerQuote = props.providerQuote;\n var bestDeal = props.bestDeal;\n var icon = props.icon;\n var provider = props.provider;\n var intl = ReactIntl.useIntl();\n var total = providerQuote.total;\n var isBestDeal$1 = React.useMemo((function () {\n return isBestDeal(provider, bestDeal);\n }), [\n provider,\n bestDeal\n ]);\n var hostType = React.useMemo((function () {\n return Listing.Contextual.getHostType(listing);\n }), [listing]);\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n bestDeal: bestDeal\n }));\n }\n return React.createElement(\"fieldset\", {\n className: Cx.cx([\n css.providerDeal,\n isBestDeal$1 ? getBestDealRowStyle(hostType, provider) : \"\"\n ])\n }, isBestDeal$1 && shouldShowSavingsBadge(hostType, provider) ? React.createElement(\"legend\", {\n className: css.legend\n }, React.createElement(SlvProviderRowSavingsBadge.make, {\n provider: provider,\n bestDeal: bestDeal,\n currency: currency\n })) : null, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(SlvProviderLabel.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(Span.make, {\n fontWeight: /* Medium */2,\n testId: Vrbp.Provider.toString(provider) + \"-price\",\n children: React.createElement(Currency.WithoutCents.make, {\n currency: currency,\n children: total\n })\n }),\n header: Caml_option.some(React.createElement(\"div\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.price-breakdown-for\",\n defaultMessage: \"Price Breakdown for\"\n }), React.createElement(\"span\", undefined, \"\" + Html.nbsp + \"\" + Vrbp.Provider.toView(provider) + \"\"))),\n children: null\n }, React.createElement(PriceBreakdownPopup.make, {\n totalRate: total,\n checkIn: props.checkIn,\n checkOut: props.checkOut,\n turnoverFeesAndTaxes: providerQuote.turnoverFeesAndTaxes,\n rent: providerQuote.rent,\n avgPricePerNight: providerQuote.avgPricePerNight,\n providerFee: providerQuote.providerFee,\n currency: currency,\n provider: provider,\n isVerifiedListing: Listing.Contextual.isVerified(listing)\n }), provider !== 0 ? React.createElement(\"div\", {\n className: css.modalDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n })) : null), React.createElement(WithTestId.make, {\n id: \"slv-ota-provider-nightly-price\",\n children: React.createElement(\"div\", {\n className: \"tw-text-xs tw-text-neutral-600\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.tnr-price\",\n defaultMessage: \"{price}/night\",\n values: {\n price: Currency.formatWithoutCents(currency, providerQuote.pricePerNight, intl)\n }\n }))\n }), provider !== 0 ? (\n providerQuote.bestPriceSkipped ? React.createElement(ResponsiveDialog.make, {\n control: React.createElement(TooltipQuestionIcon.make, {\n size: \"SM\",\n color: \"General\"\n }),\n controlClassName: \"tw-leading-[16px]\",\n customControlStyle: true,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.not-included-note\",\n defaultMessage: \"This quote may have fees not included in the total. Shown for comparison.\"\n })\n }) : React.createElement(\"div\", {\n className: \"tw-text-xs tw-text-neutral-600\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.taxes-included\",\n defaultMessage: \"taxes & fees included\"\n }))\n ) : null)), tmp), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null);\n}\n\nvar make = SlvProviderRowQuote;\n\nexports.css = css;\nexports.isBestDeal = isBestDeal;\nexports.getBestDealRowStyle = getBestDealRowStyle;\nexports.shouldShowSavingsBadge = shouldShowSavingsBadge;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Skeleton = require(\"../../../../../styleguide/components/Skeleton/Skeleton.bs.js\");\nvar SlvProviderLabelText = require(\"../components/SlvProviderLabelText.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowSample(props) {\n var displayBadges = props.displayBadges;\n var listing = props.listing;\n var provider = props.provider;\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(\"div\", {\n className: Cx.cx([css.providerLabel])\n }, React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: props.useManagerInfo,\n icon: props.icon\n })), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(Skeleton.make, {\n height: 41,\n className: \"tw-w-[100px]\"\n })))), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null);\n}\n\nvar make = SlvProviderRowSample;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Currency = require(\"../../../../../styleguide/components/Currency/Currency.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowSavingsBadge$SavingsText(props) {\n var currency = props.currency;\n var intl = ReactIntl.useIntl();\n var comparingDeal = props.bestDeal.comparingTo;\n if (comparingDeal === undefined) {\n return null;\n }\n var savingsAmount = comparingDeal.savings.absolute;\n var desktopValues = {\n savings: Currency.formatWithoutCents(currency, savingsAmount, intl),\n percentage: comparingDeal.savings.percentage | 0,\n providers: Belt_Array.map(comparingDeal.providers, (function (provider) {\n return Vrbp.Provider.toView(provider);\n })).join(\" & \")\n };\n var mobileValues = {\n savings: Currency.formatWithoutCents(currency, savingsAmount, intl),\n percentage: comparingDeal.savings.percentage | 0\n };\n return React.createElement(\"div\", {\n className: css.savingsContainer\n }, savingsAmount > 0.0 ? (\n props.provider !== 0 ? React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: \"tw-hidden lg:tw-block\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.best-deal-savings-text.ota-price\",\n defaultMessage: \"Best deal - Save {savings} {percentage, plural, =0 {} other {(#%)}} vs. {providers}\",\n values: Caml_option.some(desktopValues)\n })), React.createElement(\"div\", {\n className: \"tw-block lg:tw-hidden\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.best-deal-savings-text.ota-price.mobile\",\n defaultMessage: \"Best deal - Save {savings} {percentage, plural, =0 {} other {(#%)}}\",\n values: Caml_option.some(mobileValues)\n }))) : React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: \"tw-hidden lg:tw-block\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.best-deal-savings-text.direct-price\",\n defaultMessage: \"Direct price - Save {savings} {percentage, plural, =0 {} other {(#%)}} vs. {providers}\",\n values: Caml_option.some(desktopValues)\n })), React.createElement(\"div\", {\n className: \"tw-block lg:tw-hidden\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.best-deal-savings-text.direct-price.mobile\",\n defaultMessage: \"Direct price - Save {savings} {percentage, plural, =0 {} other {(#%)}}\",\n values: Caml_option.some(mobileValues)\n })))\n ) : null);\n}\n\nvar SavingsText = {\n make: SlvProviderRowSavingsBadge$SavingsText\n};\n\nfunction SlvProviderRowSavingsBadge(props) {\n var bestDeal = props.bestDeal;\n var provider = props.provider;\n if (bestDeal !== undefined && Vrbp.BestDeal.isBestDealForProvider(bestDeal, provider)) {\n return React.createElement(SlvProviderRowSavingsBadge$SavingsText, {\n bestDeal: bestDeal,\n currency: props.currency,\n provider: provider\n });\n } else {\n return null;\n }\n}\n\nvar make = SlvProviderRowSavingsBadge;\n\nexports.css = css;\nexports.SavingsText = SavingsText;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ResponsiveDialog = require(\"../../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar SlvProviderLabel = require(\"../components/SlvProviderLabel.bs.js\");\nvar SlvProviderRowBadges = require(\"./SlvProviderRowBadges.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowDealButton = require(\"./SlvProviderRowDealButton.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowUnavailableDates(props) {\n var screen = props.screen;\n var displayBadges = props.displayBadges;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var canExternalRedirect = props.canExternalRedirect;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var user = props.user;\n var contactHost = props.contactHost;\n var transferPageUrl = props.transferPageUrl;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var icon = props.icon;\n var provider = props.provider;\n var tmp;\n var exit = 0;\n if (provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\")) {\n tmp = null;\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.providerDealButton\n }, React.createElement(SlvProviderRowDealButton.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n icon: icon,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n }));\n }\n return React.createElement(\"div\", {\n className: css.providerDeal\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerDealRow,\n displayBadges ? css.providerRowWithBadges : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerDealData\n }, React.createElement(SlvProviderLabel.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon,\n transferPageUrl: transferPageUrl,\n contactHost: contactHost,\n user: user,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: canExternalRedirect,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(\"div\", {\n className: css.providerPrice\n }, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.unavailable-dates.title\",\n defaultMessage: \"Dates Unavailable\"\n }),\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.unavailable-dates.title\",\n defaultMessage: \"Dates Unavailable\"\n })),\n side: /* Bottom */1,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.unavailable-dates.description\",\n defaultMessage: \"Please try other dates.\"\n })\n }))), tmp), displayBadges ? React.createElement(SlvProviderRowBadges.make, {\n provider: provider,\n listing: listing\n }) : null);\n}\n\nvar make = SlvProviderRowUnavailableDates;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../../styleguide/components/Link/A.bs.js\");\nvar P = require(\"../../../../../styleguide/components/Typography/P.bs.js\");\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Html = require(\"../../../../../libs/Html.bs.js\");\nvar Span = require(\"../../../../../styleguide/components/Typography/Span.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Booking = require(\"../../../../../models/Booking.bs.js\");\nvar Spinner = require(\"../../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar Currency = require(\"../../../../../styleguide/components/Currency/Currency.bs.js\");\nvar Skeleton = require(\"../../../../../styleguide/components/Skeleton/Skeleton.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar SlvBooking = require(\"../../SlvBooking.bs.js\");\nvar WithTestId = require(\"../../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar MagicSearch = require(\"../../../../../styleguide/components/MagicSearch/MagicSearch.bs.js\");\nvar TextControl = require(\"../../../../../styleguide/components/Control/TextControl.bs.js\");\nvar WarningBadge = require(\"../../../../../styleguide/components/WarningBadge/WarningBadge.bs.js\");\nvar MagicStickIcon = require(\"../../../../../styleguide/icons/MagicStickIcon.bs.js\");\nvar SlvImageContext = require(\"../../SlvImageContext.bs.js\");\nvar ResponsiveDialog = require(\"../../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar PriceBreakdownPopup = require(\"../components/PriceBreakdownPopup.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderRowUnverifiedHost$EstimatePricePopup(props) {\n return React.createElement(\"div\", {\n className: css.estimatePriceTooltipWrapper\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.estimate-tooltip\",\n defaultMessage: \"Estimated book-direct price is the lowest price between Airbnb, Booking.com, and Vrbo without their service fees\"\n }));\n}\n\nvar EstimatePricePopup = {\n make: SlvProviderRowUnverifiedHost$EstimatePricePopup\n};\n\nfunction SlvProviderRowUnverifiedHost$EstimatedBookDirectPickDates(props) {\n var pickDates = props.pickDates;\n return React.createElement(TextControl.make, {\n style: /* General */0,\n onClick: (function (param) {\n Curry._1(pickDates, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.pick-dates-button-estimated\",\n defaultMessage: \"Pick dates\"\n })\n });\n}\n\nvar EstimatedBookDirectPickDates = {\n make: SlvProviderRowUnverifiedHost$EstimatedBookDirectPickDates\n};\n\nfunction SlvProviderRowUnverifiedHost$EstimateAveragePrice(props) {\n var averagePrice = props.averagePrice;\n if (averagePrice !== undefined) {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.approx-price\",\n defaultMessage: \"approx. {price}\",\n values: {\n price: React.createElement(Span.make, {\n fontWeight: /* Medium */2,\n children: React.createElement(Currency.WithoutCents.make, {\n currency: props.currency,\n children: averagePrice\n })\n })\n }\n });\n } else {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.estimate-failed-short\",\n defaultMessage: \"Unable to estimate\"\n });\n }\n}\n\nvar EstimateAveragePrice = {\n make: SlvProviderRowUnverifiedHost$EstimateAveragePrice\n};\n\nfunction SlvProviderRowUnverifiedHost(props) {\n var screen = props.screen;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var isLongLoading = props.isLongLoading;\n var bestDeal = props.bestDeal;\n var pickDates = props.pickDates;\n var user = props.user;\n var provider = props.provider;\n var booking = props.booking;\n var listing = props.listing;\n var intl = ReactIntl.useIntl();\n var currency = listing.currency;\n var ctx = React.useContext(SlvImageContext.Context.x);\n var hicheeStatus = React.useMemo((function () {\n var quote = SlvBooking.Status.quote(booking.status);\n return Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, provider);\n }));\n }), [\n booking.status,\n provider\n ]);\n var match = booking.status;\n var tmp;\n var exit = 0;\n var quote;\n var hichee;\n var exit$1 = 0;\n var exit$2 = 0;\n var exit$3 = 0;\n if (typeof match === \"number\") {\n if (match === /* Hibernate */0) {\n tmp = React.createElement(Skeleton.make, {\n height: 41,\n className: \"tw-w-[100px]\"\n });\n } else {\n exit = 1;\n }\n } else if (match.TAG === /* FetchingQuote */0) {\n var match$1 = match._0;\n if (typeof match$1 === \"object\") {\n if (hicheeStatus !== undefined) {\n if (hicheeStatus) {\n var hichee$1 = hicheeStatus._0;\n if (hichee$1.TAG === /* Ok */0) {\n quote = match$1.VAL;\n hichee = hichee$1._0;\n exit = 3;\n } else {\n exit$1 = 4;\n }\n } else {\n exit$3 = 6;\n }\n } else {\n exit$1 = 4;\n }\n } else {\n exit = 1;\n }\n } else {\n var match$2 = match._0;\n if (match$2.TAG === /* Ok */0) {\n var match$3 = match$2._0;\n if (typeof match$3 === \"object\" && match$3.NAME === \"Quote\") {\n if (hicheeStatus !== undefined) {\n if (hicheeStatus) {\n var hichee$2 = hicheeStatus._0;\n if (hichee$2.TAG === /* Ok */0) {\n quote = match$3.VAL;\n hichee = hichee$2._0;\n exit = 3;\n } else {\n exit$1 = 4;\n }\n } else {\n exit$3 = 6;\n }\n } else {\n exit$1 = 4;\n }\n } else {\n exit$3 = 6;\n }\n } else {\n exit$3 = 6;\n }\n }\n if (exit$3 === 6) {\n if (hicheeStatus !== undefined && !hicheeStatus) {\n exit = 1;\n } else {\n exit$2 = 5;\n }\n }\n if (exit$2 === 5) {\n if (match._0.TAG === /* Ok */0) {\n exit$1 = 4;\n } else {\n tmp = React.createElement(SlvProviderRowUnverifiedHost$EstimatedBookDirectPickDates, {\n pickDates: pickDates\n });\n }\n }\n if (exit$1 === 4) {\n if (hicheeStatus !== undefined && hicheeStatus._0.TAG === /* Ok */0) {\n var match$4 = listing.vrbpData.hichee;\n if (match$4 !== undefined) {\n var directPrice = match$4.price;\n if (directPrice !== undefined) {\n var match$5 = booking.input.checkIn;\n var match$6 = booking.input.checkOut;\n var exit$4 = 0;\n if (match$5 !== undefined && match$6 !== undefined) {\n var hicheeAverageNightlyPrice = listing.averageNightlyPrices.hichee;\n tmp = React.createElement(React.Fragment, undefined, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(Span.make, {\n fontWeight: /* Medium */2,\n children: React.createElement(Currency.WithoutCents.make, {\n currency: currency,\n children: directPrice.total\n })\n }),\n children: React.createElement(SlvProviderRowUnverifiedHost$EstimatePricePopup, {})\n }), React.createElement(\"div\", {\n className: \"tw-text-xs tw-text-neutral-600\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.price-night\",\n defaultMessage: \"{price}/night\",\n values: {\n price: Currency.formatWithoutCents(currency, hicheeAverageNightlyPrice !== undefined ? hicheeAverageNightlyPrice : directPrice.perNight, intl)\n }\n })));\n } else {\n exit$4 = 5;\n }\n if (exit$4 === 5) {\n tmp = React.createElement(SlvProviderRowUnverifiedHost$EstimateAveragePrice, {\n averagePrice: listing.averageNightlyPrices.hichee,\n currency: currency\n });\n }\n \n } else {\n tmp = React.createElement(SlvProviderRowUnverifiedHost$EstimatedBookDirectPickDates, {\n pickDates: pickDates\n });\n }\n } else {\n tmp = React.createElement(SlvProviderRowUnverifiedHost$EstimatedBookDirectPickDates, {\n pickDates: pickDates\n });\n }\n } else {\n exit = 2;\n }\n }\n switch (exit) {\n case 1 :\n tmp = React.createElement(Spinner.make, {\n size: /* SM */0,\n color: /* Primary */0,\n centered: false\n });\n break;\n case 2 :\n tmp = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.estimate-failed-short\",\n defaultMessage: \"Unable to estimate\"\n });\n break;\n case 3 :\n var total = hichee.total;\n var avgPricePerNight = hichee.avgPricePerNight;\n var match$7 = booking.input.checkIn;\n var match$8 = booking.input.checkOut;\n var exit$5 = 0;\n if (match$7 !== undefined && match$8 !== undefined) {\n var hicheeAverageNightlyPrice$1 = listing.averageNightlyPrices.hichee;\n tmp = React.createElement(React.Fragment, undefined, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(Span.make, {\n fontWeight: /* Medium */2,\n className: \"tw-text-right\",\n children: null\n }, screen === \"XS\" || screen === \"XL\" || screen === \"SM\" || screen === \"MD\" ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.estimated\",\n defaultMessage: \"Estimated\"\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.estimated-short\",\n defaultMessage: \"Est.\"\n }), Html.nbsp, React.createElement(Currency.WithoutCents.make, {\n currency: currency,\n children: total\n })),\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.estimate-popup-header\",\n defaultMessage: \"Estimated Price Breakdown\"\n })),\n children: React.createElement(PriceBreakdownPopup.make, {\n totalRate: total,\n checkIn: quote.checkIn,\n checkOut: quote.checkOut,\n turnoverFeesAndTaxes: hichee.turnoverFeesAndTaxes,\n rent: hichee.rent,\n avgPricePerNight: avgPricePerNight,\n providerFee: hichee.providerFee,\n currency: currency,\n provider: provider,\n isVerifiedListing: false,\n bestDealProvider: Belt_Option.flatMap(bestDeal, (function (deal) {\n return Belt_Array.get(deal.providers, 0);\n }))\n })\n }), React.createElement(\"div\", {\n className: \"tw-text-xs tw-text-neutral-600\"\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.price-night\",\n defaultMessage: \"{price}/night\",\n values: {\n price: Currency.formatWithoutCents(currency, hicheeAverageNightlyPrice$1 !== undefined ? hicheeAverageNightlyPrice$1 : avgPricePerNight, intl)\n }\n })));\n } else {\n exit$5 = 4;\n }\n if (exit$5 === 4) {\n tmp = React.createElement(SlvProviderRowUnverifiedHost$EstimateAveragePrice, {\n averagePrice: listing.averageNightlyPrices.hichee,\n currency: currency\n });\n }\n break;\n \n }\n var tmp$1;\n if (props.sampleMode) {\n tmp$1 = null;\n } else {\n var photo = ctx.photo;\n tmp$1 = React.createElement(\"div\", {\n className: css.estBookDirectDeal\n }, React.createElement(MagicSearch.Tooltip.make, {\n bestDeal: bestDeal\n }), React.createElement(MagicSearch.Button.make, {\n children: null,\n className: \"tw-w-full\",\n listing: listing,\n user: user,\n amplitudeEventSpecifier: \"Price Section\",\n searchType: photo !== undefined ? /* ByImage */({\n _0: photo\n }) : /* ByText */0,\n canDoMagicSearch: canDoMagicSearch,\n showMagicSearchLimitModal: showMagicSearchLimitModal\n }, React.createElement(MagicStickIcon.make, {\n size: \"SM\",\n color: \"Primary\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.magic-search.button-text\",\n defaultMessage: \"Magic Search\"\n })));\n }\n return React.createElement(WithTestId.make, {\n id: \"booking-deals-provider-row-\" + Vrbp.Provider.toRspecClassname(provider),\n children: React.createElement(\"div\", {\n className: css.bookingDeal\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.unverifiedHostDeal,\n isLongLoading ? css.warningProviderRow : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.unverifiedHostDealRow\n }, React.createElement(\"div\", {\n className: css.estBookDirectData\n }, React.createElement(\"div\", {\n className: css.estBookDirectName\n }, React.createElement(\"div\", {\n className: \"tw-flex tw-flex-col tw-gap-2\"\n }, React.createElement(P.make, {\n fontWeight: /* Medium */2,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.find-book-direct\",\n defaultMessage: \"Find Book Direct Options\"\n })\n }), React.createElement(A.make, {\n href: Route.hosts,\n target: /* Blank */{\n rel: undefined\n },\n className: \"tw-text-sm\",\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.manage-rental\",\n defaultMessage: \"Manage this Rental?\"\n })\n }))), React.createElement(\"div\", {\n className: css.estBookDirectPrice\n }, tmp)), tmp$1)), isLongLoading ? React.createElement(WarningBadge.make, {\n borderRadiusPlacement: /* Bottom */2,\n warning: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.warning.loading-takes-long.unverified-listing\",\n defaultMessage: \"Fetching prices is taking longer than expected. Try <a>Magic Search</a>.\",\n values: {\n provider: Vrbp.Provider.toView(provider),\n a: (function (chunks) {\n var photo = ctx.photo;\n return React.createElement(MagicSearch.Block.make, {\n children: chunks,\n className: \"tw-inline-block tw-underline\",\n listing: listing,\n searchType: photo !== undefined ? /* ByImage */({\n _0: photo\n }) : /* ByText */0,\n user: user,\n canDoMagicSearch: canDoMagicSearch,\n showMagicSearchLimitModal: showMagicSearchLimitModal\n });\n })\n }\n })\n }) : null)\n });\n}\n\nvar make = SlvProviderRowUnverifiedHost;\n\nexports.css = css;\nexports.EstimatePricePopup = EstimatePricePopup;\nexports.EstimatedBookDirectPickDates = EstimatedBookDirectPickDates;\nexports.EstimateAveragePrice = EstimateAveragePrice;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar H6 = require(\"../../../../styleguide/components/Typography/Heading/H6.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar VrboIcon = require(\"../../../../styleguide/icons/VrboIcon.bs.js\");\nvar AirbnbIcon = require(\"../../../../styleguide/icons/AirbnbIcon.bs.js\");\nvar HicheeIcon = require(\"../../../../styleguide/icons/HicheeIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar AlertBanner = require(\"../../../../styleguide/components/AlertBanner/AlertBanner.bs.js\");\nvar BookingDates = require(\"../../../../libs/BookingDates.bs.js\");\nvar SlvProviderRow = require(\"./ProviderRow/SlvProviderRow.bs.js\");\nvar SlvTransferLink = require(\"./components/SlvTransferLink.bs.js\");\nvar PickDatesOverlay = require(\"../../../../styleguide/components/PickDatesOverlay/PickDatesOverlay.bs.js\");\nvar ScreenSizeContext = require(\"../../../../contexts/ScreenSizeContext.bs.js\");\nvar BookingcomFullIcon = require(\"../../../../styleguide/icons/BookingcomFullIcon.bs.js\");\nvar ListingCloseMatches = require(\"../ListingCloseMatches/ListingCloseMatches.bs.js\");\nvar SlvBookingDealsForm = require(\"./SlvBookingDealsForm.bs.js\");\nvar SmoothscrollPolyfill = require(\"smoothscroll-polyfill\");\nvar SlvBookingDealsScss = require(\"./SlvBookingDeals.scss\").default;\nvar SlvProviderRowUnverifiedHost = require(\"./ProviderRow/SlvProviderRowUnverifiedHost.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvBookingDeals(props) {\n var loginAndExitSampleMode = props.loginAndExitSampleMode;\n var sampleMode = props.sampleMode;\n var canDoMagicSearch = props.canDoMagicSearch;\n var canExternalRedirectData = props.canExternalRedirectData;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var showExternalRedirectLimitModal = props.showExternalRedirectLimitModal;\n var pickNextAvailable = props.pickNextAvailable;\n var pickDates = props.pickDates;\n var bestDeal = props.bestDeal;\n var onCloseMatchesFetch = props.onCloseMatchesFetch;\n var closeMatchesMap = props.closeMatchesMap;\n var showListingCloseMatchesModal = props.showListingCloseMatchesModal;\n var user = props.user;\n var booking = props.booking;\n var listing = props.listing;\n var match = booking.longLoadingStatus;\n var isLongLoading = typeof match === \"number\" ? match !== 0 : false;\n var useManagerInfo = Listing.Contextual.shouldUseManagerInfo(listing);\n var match$1 = React.useState(function () {\n return false;\n });\n var setIsContinuingWithoutDates = match$1[1];\n var handleContinueWithoutDatesClick = React.useCallback(function (param) {\n Curry._1(setIsContinuingWithoutDates, (function (param) {\n return true;\n }));\n });\n React.useEffect((function () {\n SmoothscrollPolyfill.polyfill();\n }), []);\n var hasNextAvailableDates = React.useMemo((function () {\n var match = listing.nextAvailableDates.checkIn;\n var match$1 = listing.nextAvailableDates.checkOut;\n if (match !== undefined) {\n return match$1 !== undefined;\n } else {\n return false;\n }\n }), [\n listing.nextAvailableDates.checkIn,\n listing.nextAvailableDates.checkOut\n ]);\n var isShowingPickDatesOverlay = props.noDatesSelectedForBooking && !match$1[0] && !sampleMode;\n var screen = React.useContext(ScreenSizeContext.Context.x);\n return React.createElement(SlvBlock.Inline.make, {\n id: \"Deals\",\n children: null\n }, React.createElement(SlvBookingDealsForm.make, {\n listing: listing,\n booking: booking,\n sampleMode: sampleMode,\n loginAndExitSampleMode: loginAndExitSampleMode\n }), isShowingPickDatesOverlay ? null : React.createElement(AlertBanner.make, {\n booking: booking,\n pickDates: pickDates,\n pickNextAvailable: pickNextAvailable,\n hasNextAvailableDates: hasNextAvailableDates\n }), React.createElement(\"div\", {\n className: css.overlayWrapper\n }, isShowingPickDatesOverlay ? React.createElement(PickDatesOverlay.make, {\n pickDates: pickDates,\n pickNextAvailable: pickNextAvailable,\n hasNextAvailableDates: hasNextAvailableDates,\n continueWithoutDates: handleContinueWithoutDatesClick\n }) : null, React.createElement(\"div\", {\n className: isShowingPickDatesOverlay ? css.overlay : \"tw-relative tw-flex tw-flex-col\"\n }, sampleMode ? React.createElement(\"div\", {\n className: \"md:tw-absolute tw-flex tw-flex-col tw-gap-[16px] tw-justify-center tw-items-center md:tw-top-[145px] lg:tw-top-[178px] md:tw-self-end xl:tw-self-center md:tw-z-[12] tw-rounded-[8px] md:tw-rounded-[24px] tw-px-[20px] tw-py-[24px] md:tw-py-[20px] md:tw-w-[341px] lg:tw-w-[315px] xl:tw-w-[300px] tw-text-center tw-bg-gradient-to-r tw-from-neutral-50/100 tw-to-neutral-50/100 md:tw-from-white/95 md:tw-to-white/0\"\n }, React.createElement(H6.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.sample-mode.banner-text\",\n defaultMessage: \"Create a FREE account to see prices and receive price alerts!\"\n })\n }), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n onClick: (function (param) {\n Curry._1(loginAndExitSampleMode, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.sample-mode.button\",\n defaultMessage: \"Create Free Account or Log In\"\n })\n })) : null, React.createElement(\"div\", {\n className: \"tw-flex tw-justify-end tw-mb-[20px] tw-mt-[10px]\"\n }, React.createElement(\"span\", {\n className: css.totalNightsText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.nights-count-title\",\n defaultMessage: \"{count, plural, one {# Night} other {# Nights}}\",\n values: {\n count: BookingDates.getNumberOfNights(booking.input.checkIn, booking.input.checkOut)\n }\n }))), React.createElement(SlvProviderRow.make, {\n listing: listing,\n booking: booking,\n provider: /* Airbnb */1,\n icon: AirbnbIcon,\n providerVrbp: listing.vrbpData.airbnb,\n user: user,\n showListingCloseMatchesModal: showListingCloseMatchesModal,\n bestDeal: bestDeal,\n closeMatches: ListingCloseMatches.findByProvider(closeMatchesMap, /* Airbnb */1),\n onCloseMatchesFetch: onCloseMatchesFetch,\n pickDates: pickDates,\n isLongLoading: isLongLoading,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: SlvTransferLink.ExternalRedirect.canExternalRedirectForProvider(/* Airbnb */1, canExternalRedirectData),\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(SlvProviderRow.make, {\n listing: listing,\n booking: booking,\n provider: /* Bookingcom */2,\n icon: BookingcomFullIcon,\n providerVrbp: listing.vrbpData.bookingcom,\n user: user,\n showListingCloseMatchesModal: showListingCloseMatchesModal,\n bestDeal: bestDeal,\n closeMatches: ListingCloseMatches.findByProvider(closeMatchesMap, /* Bookingcom */2),\n onCloseMatchesFetch: onCloseMatchesFetch,\n pickDates: pickDates,\n isLongLoading: isLongLoading,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: SlvTransferLink.ExternalRedirect.canExternalRedirectForProvider(/* Bookingcom */2, canExternalRedirectData),\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), React.createElement(SlvProviderRow.make, {\n listing: listing,\n booking: booking,\n provider: /* Vrbo */3,\n icon: VrboIcon,\n providerVrbp: listing.vrbpData.vrbo,\n user: user,\n showListingCloseMatchesModal: showListingCloseMatchesModal,\n bestDeal: bestDeal,\n closeMatches: ListingCloseMatches.findByProvider(closeMatchesMap, /* Vrbo */3),\n onCloseMatchesFetch: onCloseMatchesFetch,\n pickDates: pickDates,\n isLongLoading: isLongLoading,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: SlvTransferLink.ExternalRedirect.canExternalRedirectForProvider(/* Vrbo */3, canExternalRedirectData),\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }), Listing.Contextual.isVisuallyVerified(listing) ? React.createElement(SlvProviderRow.make, {\n listing: listing,\n booking: booking,\n provider: /* Hichee */0,\n icon: {\n make: HicheeIcon.make\n },\n providerVrbp: listing.vrbpData.hichee,\n useManagerInfo: useManagerInfo,\n user: user,\n showListingCloseMatchesModal: (function (param) {\n \n }),\n bestDeal: bestDeal,\n onCloseMatchesFetch: (function (param) {\n \n }),\n pickDates: pickDates,\n isLongLoading: isLongLoading,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n canExternalRedirect: SlvTransferLink.ExternalRedirect.canExternalRedirectForProvider(/* Hichee */0, canExternalRedirectData),\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n screen: screen\n }) : React.createElement(SlvProviderRowUnverifiedHost.make, {\n listing: listing,\n booking: booking,\n provider: /* Hichee */0,\n user: user,\n pickDates: pickDates,\n bestDeal: bestDeal,\n isLongLoading: isLongLoading,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n sampleMode: sampleMode,\n screen: screen\n })), screen === \"XS\" || screen === \"SM\" ? React.createElement(\"div\", {\n className: css.priceComparison\n }, React.createElement(\"h2\", {\n className: css.priceTagline\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.header.title\",\n defaultMessage: \"Price Comparison Results\"\n })), React.createElement(\"p\", {\n className: css.providersList\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.header.subtitle\",\n defaultMessage: \"Airbnb • Vrbo • Booking.com • Direct\"\n }))) : null));\n}\n\nvar make = SlvBookingDeals;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Url = require(\"../../../../libs/Url.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar Spinner = require(\"../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar LinkIcon = require(\"../../../../styleguide/icons/LinkIcon.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Accordion = require(\"../../../../styleguide/components/Accordion/Accordion.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar BookingDates = require(\"../../../../libs/BookingDates.bs.js\");\nvar ResponsiveDialog = require(\"../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\nvar AlternativeLinksModal = require(\"../AlternativeLinks/AlternativeLinksModal.bs.js\");\nvar AlternativeLinksMessages = require(\"../AlternativeLinks/AlternativeLinksMessages.bs.js\");\nvar AlternativeLinksReportModal = require(\"../AlternativeLinks/AlternativeLinksReportModal.bs.js\");\nvar AlternativeLinksFailureModal = require(\"../AlternativeLinks/AlternativeLinksFailureModal.bs.js\");\nvar AlternativeLinksSuccessModal = require(\"../AlternativeLinks/AlternativeLinksSuccessModal.bs.js\");\nvar SlvBookingDealsAlternativeLinksModuleScss = require(\"./SlvBookingDealsAlternativeLinks.module.scss\").default;\n\nvar css = SlvBookingDealsAlternativeLinksModuleScss;\n\nfunction SlvBookingDealsAlternativeLinks$InstructionSection(props) {\n return React.createElement(\"div\", {\n className: css.instructionSection\n }, React.createElement(\"div\", {\n className: css.linksSectionText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.instruction.title\",\n defaultMessage: \"Instruction How To Find a Host.\"\n })), React.createElement(\"div\", {\n className: css.warningMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.instruction.subtitle\",\n defaultMessage: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \"\n })));\n}\n\nvar InstructionSection = {\n make: SlvBookingDealsAlternativeLinks$InstructionSection\n};\n\nfunction SlvBookingDealsAlternativeLinks$AlternativeLink(props) {\n var onLinkReport = props.onLinkReport;\n var link = props.link;\n return React.createElement(\"div\", {\n className: css.fullLinkContainer\n }, React.createElement(A.make, {\n href: link.url,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n style: /* Action */3,\n className: css.fullLink,\n onClick: (function (param) {\n $$Promise.wait(Api.getAlternativeBookingLink(link.id), (function (res) {\n \n }));\n }),\n children: null\n }, React.createElement(LinkIcon.make, {\n size: \"SM\",\n color: \"General\"\n }), React.createElement(\"span\", {\n className: css.link\n }, Url.removeHttpProtocol(link.url))), React.createElement(TextControl.make, {\n className: css.reportLink,\n style: /* General */0,\n onClick: (function (param) {\n Curry._1(onLinkReport, link.id);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.report-link\",\n defaultMessage: \"Report Link\"\n })\n }));\n}\n\nvar AlternativeLink = {\n make: SlvBookingDealsAlternativeLinks$AlternativeLink\n};\n\nfunction SlvBookingDealsAlternativeLinks$LoadingDirectPrice(props) {\n return React.createElement(\"div\", {\n className: css.priceWrapper\n }, React.createElement(Spinner.make, {\n size: /* SM */0,\n color: /* Primary */0,\n centered: false\n }));\n}\n\nvar LoadingDirectPrice = {\n make: SlvBookingDealsAlternativeLinks$LoadingDirectPrice\n};\n\nfunction SlvBookingDealsAlternativeLinks$DirectPrice(props) {\n return React.createElement(\"div\", {\n className: css.priceWrapper\n }, React.createElement(\"span\", {\n className: css.numberOfNights\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.estimate-for\",\n defaultMessage: \"Est. total for \"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.nights\",\n defaultMessage: \"{nights, plural, one {# night} other {# nights}}\",\n values: {\n nights: BookingDates.getNumberOfNights(Caml_option.some(props.checkIn), Caml_option.some(props.checkOut))\n }\n }), React.createElement(\"span\", undefined, \":\")), React.createElement(ResponsiveDialog.make, {\n control: React.createElement(\"span\", {\n className: css.bookPriceValue\n }, React.createElement(Currency.WithoutCents.make, {\n currency: props.currency,\n children: props.directPrice\n })),\n children: React.createElement(\"div\", {\n className: css.estimatePriceTooltipWrapper\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.estimate-tooltip\",\n defaultMessage: \"Estimated book-direct price is the lowest price between Airbnb, Booking.com, and Vrbo without their service fees\"\n }))\n }));\n}\n\nvar DirectPrice = {\n make: SlvBookingDealsAlternativeLinks$DirectPrice\n};\n\nfunction SlvBookingDealsAlternativeLinks(props) {\n var alternativeBookingLinks = props.alternativeBookingLinks;\n var user = props.user;\n var listing = props.listing;\n var intl = ReactIntl.useIntl();\n var addAlternativeLinkModal = ModalDialog.useModal(undefined);\n var alternativeLinksSuccessModal = ModalDialog.useModal(undefined);\n var reportAlternativeLinksModal = ModalDialog.useModal(undefined);\n var alternativeLinkReportSuccessModal = ModalDialog.useModal(undefined);\n var alternativeLinksFailureModal = ModalDialog.useModal(undefined);\n var match = React.useState(function () {\n return alternativeBookingLinks;\n });\n var setAlternativeBookingLinks = match[1];\n var match$1 = React.useState(function () {\n return false;\n });\n var setExpanded = match$1[1];\n var match$2 = React.useState(function () {\n \n });\n var setReportedLinkId = match$2[1];\n var showAddAlternativeLinksModal = function (param) {\n var match = user.id;\n if (match !== undefined) {\n return Curry._1(addAlternativeLinkModal.show, undefined);\n } else {\n return user.authenticateWithCallback((function (param) {\n Curry._1(addAlternativeLinkModal.show, undefined);\n }), {\n trigger: \"Add more links\"\n });\n }\n };\n var tmp;\n if (listing.hasAlternativeBookingLinks) {\n var match$3 = user.id;\n tmp = React.createElement(React.Fragment, undefined, React.createElement(Accordion.make, {\n id: \"slv-booking-deals-alternative-links-accordion\",\n headerId: \"slv-booking-deals-alternative-links-header\",\n contentId: \"slv-booking-deals-alternative-links-content\",\n wrapperClassName: \"tw-mb-[24px]\",\n header: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.accordion-heading\",\n defaultMessage: \"View Links\"\n }),\n onToggle: (function (param) {\n var match = user.id;\n if (match !== undefined) {\n return Curry._1(setExpanded, (function (prev) {\n return !prev;\n }));\n } else {\n return user.authenticateWithCallback((function (param) {\n $$Promise.wait(Api.getAlternativeBookingLinks(listing.id), (function (res) {\n if (res.TAG !== /* Ok */0) {\n return ;\n }\n var links = res._0;\n Curry._1(setAlternativeBookingLinks, (function (param) {\n return links;\n }));\n Curry._1(setExpanded, (function (param) {\n return true;\n }));\n }));\n }), undefined);\n }\n }),\n expanded: match$1[0],\n children: match$3 !== undefined ? React.createElement(\"div\", {\n className: \"tw-flex tw-flex-col tw-gap-20 sm:tw-gap-16\"\n }, Belt_Array.map(match[0], (function (link) {\n return JsxPPXReactSupport.createElementWithKey(String(link.id), SlvBookingDealsAlternativeLinks$AlternativeLink, {\n link: link,\n onLinkReport: (function (linkId) {\n Curry._1(setReportedLinkId, (function (param) {\n return linkId;\n }));\n Curry._1(reportAlternativeLinksModal.show, undefined);\n })\n });\n }))) : null\n }), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n onClick: (function (param) {\n Amplitude.Slv.addMoreLinks(listing.id, Listing.Contextual.isVerified(listing));\n showAddAlternativeLinksModal(undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.add-more-links-button\",\n defaultMessage: \"Add Link\"\n })\n }));\n } else {\n tmp = React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n onClick: (function (param) {\n Amplitude.Slv.addMoreLinks(listing.id, Listing.Contextual.isVerified(listing));\n showAddAlternativeLinksModal(undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.add-first-link-button\",\n defaultMessage: \"Add Link\"\n })\n });\n }\n return React.createElement(SlvBlock.make, {\n id: \"AlternativeBookingLinks\",\n children: React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.titleAndLinkWrapper\n }, React.createElement(SlvBlock.SubTitle.make, {\n className: css.titleText,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.title\",\n defaultMessage: \"Community Book-Direct Links\"\n })\n })), React.createElement(\"div\", {\n className: css.bodyText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.alternative-links.what-is-answer\",\n defaultMessage: \"Here are other options to book this listing. Our community recommended them, and we've verified their accuracy. Just make sure the site is legit before booking.\"\n })), tmp, React.createElement(AlternativeLinksModal.make, {\n modal: addAlternativeLinkModal,\n onClaimSuccess: (function (param) {\n Curry._1(addAlternativeLinkModal.hide, undefined);\n Curry._1(alternativeLinksSuccessModal.show, undefined);\n }),\n user: user,\n listing: listing,\n onClaimFailure: (function (param) {\n Curry._1(addAlternativeLinkModal.hide, undefined);\n Curry._1(alternativeLinksFailureModal.show, undefined);\n })\n }), React.createElement(AlternativeLinksSuccessModal.make, {\n modal: alternativeLinksSuccessModal,\n title: intl.formatMessage(AlternativeLinksMessages.successModalTitle),\n message: intl.formatMessage(AlternativeLinksMessages.successModalMessage)\n }), React.createElement(AlternativeLinksReportModal.make, {\n modal: reportAlternativeLinksModal,\n onClaimSuccess: (function (param) {\n Curry._1(reportAlternativeLinksModal.hide, undefined);\n Curry._1(alternativeLinksSuccessModal.show, undefined);\n }),\n alternativeBookingLinkId: match$2[0]\n }), React.createElement(AlternativeLinksSuccessModal.make, {\n modal: alternativeLinkReportSuccessModal,\n title: intl.formatMessage(AlternativeLinksMessages.reportModalTitle),\n message: intl.formatMessage(AlternativeLinksMessages.reportModalMessage)\n }), React.createElement(AlternativeLinksFailureModal.make, {\n modal: alternativeLinksFailureModal,\n onTryAgain: (function (param) {\n Curry._1(alternativeLinksFailureModal.hide, undefined);\n Curry._1(addAlternativeLinkModal.show, undefined);\n })\n }))\n });\n}\n\nvar excerptSize = 2;\n\nvar make = SlvBookingDealsAlternativeLinks;\n\nexports.css = css;\nexports.excerptSize = excerptSize;\nexports.InstructionSection = InstructionSection;\nexports.AlternativeLink = AlternativeLink;\nexports.LoadingDirectPrice = LoadingDirectPrice;\nexports.DirectPrice = DirectPrice;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar $$Date = require(\"../../../../libs/Date.bs.js\");\nvar Form = require(\"../../../../styleguide/forms/Form/Form.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Toast = require(\"../../../../styleguide/components/Toast/Toast.bs.js\");\nvar React = require(\"react\");\nvar ReactRef = require(\"../../../../bindings/ReactRef.bs.js\");\nvar SlvBooking = require(\"../SlvBooking.bs.js\");\nvar WithTestId = require(\"../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar RcTooltip = require(\"rc-tooltip\").default;\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar GuestsField = require(\"../../../../styleguide/forms/GuestsField/GuestsField.bs.js\");\nvar BookingDates = require(\"../../../../libs/BookingDates.bs.js\");\nvar DateRangePicker = require(\"../../../../styleguide/forms/DateRangePicker/DateRangePicker.bs.js\");\nvar ScreenSizeContext = require(\"../../../../contexts/ScreenSizeContext.bs.js\");\nvar NotificationTooltip = require(\"../../../../styleguide/components/NotificationTooltip/NotificationTooltip.bs.js\");\nvar DateRangePickerMessages = require(\"../../../../styleguide/forms/DateRangePicker/DateRangePickerMessages.bs.js\");\nvar SlvBookingDealsFormModuleScss = require(\"./SlvBookingDealsForm.module.scss\").default;\nvar DateRangePickerModuleScss = require(\"rescript/styleguide/forms/DateRangePicker/DateRangePicker.module.scss\").default;\n\nvar css = SlvBookingDealsFormModuleScss;\n\nfunction SlvBookingDealsForm$CalendarError(props) {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.error.fetch-quote-error-remained-after-calendar-update\",\n defaultMessage: \"Try different dates or book on the rental websites\"\n });\n}\n\nvar CalendarError = {\n make: SlvBookingDealsForm$CalendarError\n};\n\nfunction SlvBookingDealsForm(props) {\n var loginAndExitSampleMode = props.loginAndExitSampleMode;\n var sampleMode = props.sampleMode;\n var booking = props.booking;\n var listing = props.listing;\n var match = React.useState(function () {\n return false;\n });\n var setHasCalendarError = match[1];\n var hasCalendarError = match[0];\n var calendarErrorTooltip = NotificationTooltip.useNotificationTooltip(undefined);\n React.useEffect((function () {\n booking.notifications.forEach(function (notification) {\n Toast.error(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv-booking-deals-form.toast.old-link\",\n defaultMessage: \"The link that you used is old\"\n }), Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: notification.id,\n defaultMessage: notification.defaultMessage\n })), undefined, undefined);\n });\n if (booking.notifications.length !== 0) {\n Curry._1(booking.clearNotification, undefined);\n }\n \n }), [booking.notifications]);\n React.useEffect((function () {\n var match = booking.status;\n var exit = 0;\n if (typeof match === \"number\" || match.TAG !== /* Ready */1) {\n exit = 1;\n } else {\n var match$1 = match._0;\n if (match$1.TAG === /* Ok */0) {\n exit = 1;\n } else {\n var match$2 = match$1._0;\n if (typeof match$2 === \"object\" || match$2 === \"FetchQuoteError\" || match$2 === \"FetchQuoteErrorCausedCalendarUpdate\") {\n exit = 1;\n } else {\n Curry._1(setHasCalendarError, (function (param) {\n return true;\n }));\n Curry._1(calendarErrorTooltip.show, undefined);\n }\n }\n }\n if (exit === 1) {\n Curry._1(setHasCalendarError, (function (param) {\n return false;\n }));\n Curry._1(calendarErrorTooltip.hide, undefined);\n }\n \n }), [booking.status]);\n var screen = React.useContext(ScreenSizeContext.Context.x);\n var intl = ReactIntl.useIntl();\n var isCheckOutDay = React.useCallback((function (day) {\n return Belt_Option.mapWithDefault(booking.input.checkOut, false, (function (checkOut) {\n return $$Date.Naive.isSameDay(day, checkOut);\n }));\n }), [booking.input.checkOut]);\n var isSelected = React.useCallback((function (day) {\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n if (match === undefined) {\n if (match$1 !== undefined) {\n return $$Date.Naive.isSameDay(day, Caml_option.valFromOption(match$1));\n } else {\n return false;\n }\n }\n var checkIn = Caml_option.valFromOption(match);\n if (match$1 !== undefined) {\n if ($$Date.Naive.isSameDay(day, checkIn)) {\n return true;\n } else {\n return $$Date.Naive.isSameDay(day, Caml_option.valFromOption(match$1));\n }\n } else {\n return $$Date.Naive.isSameDay(day, checkIn);\n }\n }), [\n booking.input.checkIn,\n booking.input.checkOut\n ]);\n var isCheckInDay = React.useCallback((function (day) {\n return Belt_Option.mapWithDefault(booking.input.checkIn, false, (function (checkIn) {\n return $$Date.Naive.isSameDay(day, checkIn);\n }));\n }), [booking.input.checkIn]);\n var isDayInBetween = React.useCallback((function (day) {\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n if (match === undefined) {\n return false;\n }\n if (match$1 === undefined) {\n return false;\n }\n var checkIn = Caml_option.valFromOption(match);\n if (!$$Date.Naive.isSameDay(day, checkIn) && $$Date.Naive.isAfter(day, checkIn)) {\n return $$Date.Naive.isBefore(day, Caml_option.valFromOption(match$1));\n } else {\n return false;\n }\n }), [\n booking.input.checkIn,\n booking.input.checkOut\n ]);\n var isProviderDayFirstEnabled = React.useCallback(function (day) {\n return function (provider) {\n var prevDay = $$Date.Naive.addDays(day, -1);\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n }\n if (BookingDates.isDayInPastRelativeToListingTimezone(prevDay, listing.currentDate) && !BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate) && SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, provider, booking.calendar.days)) {\n return true;\n }\n var prevProviderDay = SlvBooking.Calendar.providerByTypeForCalendarDaysDate(provider, prevDay, booking.calendar.days);\n var providerDay = SlvBooking.Calendar.providerByTypeForCalendarDaysDate(provider, day, booking.calendar.days);\n if (prevProviderDay !== undefined && !(prevProviderDay.availableForStay || !(providerDay !== undefined && providerDay.availableForStay))) {\n return true;\n } else {\n return false;\n }\n };\n });\n var isProviderDayLastEnabled = React.useCallback(function (day) {\n return function (provider) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n }\n var prevDay = $$Date.Naive.addDays(day, -1);\n var prevProviderDay = SlvBooking.Calendar.providerByTypeForCalendarDaysDate(provider, prevDay, booking.calendar.days);\n var providerDay = SlvBooking.Calendar.providerByTypeForCalendarDaysDate(provider, day, booking.calendar.days);\n if (prevProviderDay !== undefined && prevProviderDay.availableForStay && providerDay !== undefined && !providerDay.availableForStay) {\n return true;\n } else {\n return false;\n }\n };\n });\n var isCheckInBorder = React.useCallback((function (day) {\n var match = booking.datePickerMode;\n if (match !== \"SelectingCheckIn\") {\n return false;\n }\n var hoveredDay = booking.hoveredDay;\n if (hoveredDay !== undefined) {\n return $$Date.Naive.isSameDay(day, Caml_option.valFromOption(hoveredDay));\n } else {\n return false;\n }\n }), [\n booking.datePickerMode,\n booking.hoveredDay\n ]);\n var isCheckOutBorder = React.useCallback((function (day) {\n var match = booking.datePickerMode;\n if (match === \"SelectingCheckIn\") {\n return false;\n }\n var match$1 = booking.hoveredDay;\n var match$2 = booking.input.checkIn;\n if (match$1 === undefined) {\n return false;\n }\n var hoveredDay = Caml_option.valFromOption(match$1);\n if (match$2 !== undefined) {\n if ($$Date.Naive.isSameDay(day, hoveredDay)) {\n return !$$Date.Naive.isBefore(day, Caml_option.valFromOption(match$2));\n } else {\n return false;\n }\n } else {\n return $$Date.Naive.isSameDay(day, hoveredDay);\n }\n }), [\n booking.datePickerMode,\n booking.hoveredDay,\n booking.input.checkIn\n ]);\n var isDisabledSelection = React.useCallback((function (day) {\n var calendarDays = booking.calendar.days;\n var match = booking.datePickerMode;\n if (match === \"SelectingCheckIn\") {\n var checkOutDay = booking.input.checkOut;\n var isCheckOut = checkOutDay !== undefined ? $$Date.Naive.isSameDay(day, Caml_option.valFromOption(checkOutDay)) : false;\n var canCheckInOnHichee = SlvBooking.Calendar.canCheckInOnProviderDay(day, /* Hichee */0, booking.calendar.days);\n var canCheckInOnAirbnb = SlvBooking.Calendar.canCheckInOnProviderDay(day, /* Airbnb */1, booking.calendar.days);\n var canCheckInOnVrbo = SlvBooking.Calendar.canCheckInOnProviderDay(day, /* Vrbo */3, booking.calendar.days);\n var canCheckInOnBookingcom = SlvBooking.Calendar.canCheckInOnProviderDay(day, /* Bookingcom */2, booking.calendar.days);\n var canCheckIn = canCheckInOnHichee || canCheckInOnAirbnb || canCheckInOnVrbo || canCheckInOnBookingcom;\n if (isCheckOut) {\n return true;\n } else {\n return !canCheckIn;\n }\n }\n var checkInDay = booking.input.checkIn;\n var isCheckIn = checkInDay !== undefined ? $$Date.Naive.isSameDay(day, Caml_option.valFromOption(checkInDay)) : false;\n var checkIn = booking.input.checkIn;\n var isStayValid = checkIn !== undefined ? SlvBooking.Calendar.isStayValid(Caml_option.valFromOption(checkIn), day, calendarDays) : true;\n if (isCheckIn) {\n return true;\n } else {\n return !isStayValid;\n }\n }), [\n booking.datePickerMode,\n booking.input.checkIn,\n booking.input.checkOut,\n booking.calendar.days\n ]);\n var isHoverRange = React.useCallback((function (day) {\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n var match$2 = booking.hoveredDay;\n var match$3 = booking.datePickerMode;\n if (match === undefined) {\n if (match$1 !== undefined && match$2 !== undefined && match$3 === \"SelectingCheckIn\") {\n return $$Date.Naive.isBetween(day, [\n Caml_option.valFromOption(match$2),\n Caml_option.valFromOption(match$1)\n ]);\n } else {\n return false;\n }\n }\n if (match$1 !== undefined) {\n return false;\n }\n if (match$2 === undefined) {\n return false;\n }\n if (match$3 !== \"SelectingCheckOut\") {\n return false;\n }\n var checkIn = Caml_option.valFromOption(match);\n if ($$Date.Naive.isBetween(day, [\n checkIn,\n Caml_option.valFromOption(match$2)\n ])) {\n return !$$Date.Naive.isSameDay(day, checkIn);\n } else {\n return false;\n }\n }), [\n booking.input.checkIn,\n booking.input.checkOut,\n booking.hoveredDay,\n booking.datePickerMode\n ]);\n var isDayDisabled = React.useCallback((function (day) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return true;\n }\n var match = booking.datePickerMode;\n if (match === \"SelectingCheckIn\") {\n var isHicheeDayEnabled = SlvBooking.Calendar.isProviderDayAvailableForCheckIn(day, /* Hichee */0, booking.calendar.days);\n var isAirbnbDayEnabled = SlvBooking.Calendar.isProviderDayAvailableForCheckIn(day, /* Airbnb */1, booking.calendar.days);\n var isVrboDayEnabled = SlvBooking.Calendar.isProviderDayAvailableForCheckIn(day, /* Vrbo */3, booking.calendar.days);\n var isBookingcomDayEnabled = SlvBooking.Calendar.isProviderDayAvailableForCheckIn(day, /* Bookingcom */2, booking.calendar.days);\n var isDayEnabled = isHicheeDayEnabled || isAirbnbDayEnabled || isVrboDayEnabled || isBookingcomDayEnabled;\n var match$1 = booking.input.checkIn;\n var match$2 = booking.input.checkOut;\n var isInsideAvailableStay;\n if (match$1 !== undefined && match$2 !== undefined) {\n var checkOut = Caml_option.valFromOption(match$2);\n var checkIn = Caml_option.valFromOption(match$1);\n var isInsideStay = $$Date.Naive.isAfter(day, checkIn) && $$Date.Naive.isBefore(day, checkOut) || $$Date.Naive.isSameDay(day, checkOut);\n isInsideAvailableStay = isInsideStay ? SlvBooking.Calendar.isStayAvailable(checkIn, checkOut, booking.calendar.days) : false;\n } else {\n isInsideAvailableStay = false;\n }\n return !(isDayEnabled || isInsideAvailableStay);\n }\n var checkIn$1 = booking.input.checkIn;\n var isStayAvailable = checkIn$1 !== undefined ? SlvBooking.Calendar.isStayAvailable(Caml_option.valFromOption(checkIn$1), day, booking.calendar.days) : false;\n var isDayBeforeCheckIn = BookingDates.isDayBeforeCheckIn(day, booking.input.checkIn);\n if (isDayBeforeCheckIn) {\n return true;\n } else {\n return !isStayAvailable;\n }\n }), [\n booking.input.checkIn,\n booking.datePickerMode,\n booking.calendar.days\n ]);\n var isDayFirstEnabled = React.useCallback(function (day) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n }\n if (BookingDates.isDayInPastRelativeToListingTimezone($$Date.Naive.addDays(day, -1), listing.currentDate) && !BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate) && !Curry._1(isDayDisabled, day)) {\n return true;\n }\n var isHicheeDayFirstEnabled = Curry._2(isProviderDayFirstEnabled, day, /* Hichee */0);\n var isAirbnbDayFirstEnabled = Curry._2(isProviderDayFirstEnabled, day, /* Airbnb */1);\n var isVrboDayFirstEnabled = Curry._2(isProviderDayFirstEnabled, day, /* Vrbo */3);\n var isBookingcomDayFirstEnabled = Curry._2(isProviderDayFirstEnabled, day, /* Bookingcom */2);\n var presentProvidersFirstEnabled = [];\n if (SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Hichee */0, booking.calendar.days)) {\n presentProvidersFirstEnabled.push(isHicheeDayFirstEnabled);\n }\n if (SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Airbnb */1, booking.calendar.days)) {\n presentProvidersFirstEnabled.push(isAirbnbDayFirstEnabled);\n }\n if (SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Vrbo */3, booking.calendar.days)) {\n presentProvidersFirstEnabled.push(isVrboDayFirstEnabled);\n }\n if (SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Bookingcom */2, booking.calendar.days)) {\n presentProvidersFirstEnabled.push(isBookingcomDayFirstEnabled);\n }\n return presentProvidersFirstEnabled.every(function (isFirstEnabled) {\n return isFirstEnabled === true;\n });\n });\n var isDayLastEnabled = React.useCallback(function (day) {\n var checkInDate = Belt_Option.getWithDefault(booking.input.checkIn, $$Date.Naive.make(undefined));\n var isHicheeDayLastEnabled = Curry._2(isProviderDayLastEnabled, day, /* Hichee */0);\n var isAirbnbDayLastEnabled = Curry._2(isProviderDayLastEnabled, day, /* Airbnb */1);\n var isVrboDayLastEnabled = Curry._2(isProviderDayLastEnabled, day, /* Vrbo */3);\n var isBookingcomDayLastEnabled = Curry._2(isProviderDayLastEnabled, day, /* Bookingcom */2);\n var presentProvidersLastEnabled = [];\n if (SlvBooking.Calendar.isProviderStayAvailable(checkInDate, day, /* Hichee */0, booking.calendar.days)) {\n presentProvidersLastEnabled.push(isHicheeDayLastEnabled);\n }\n if (SlvBooking.Calendar.isProviderStayAvailable(checkInDate, day, /* Airbnb */1, booking.calendar.days)) {\n presentProvidersLastEnabled.push(isAirbnbDayLastEnabled);\n }\n if (SlvBooking.Calendar.isProviderStayAvailable(checkInDate, day, /* Vrbo */3, booking.calendar.days)) {\n presentProvidersLastEnabled.push(isVrboDayLastEnabled);\n }\n if (SlvBooking.Calendar.isProviderStayAvailable(checkInDate, day, /* Bookingcom */2, booking.calendar.days)) {\n presentProvidersLastEnabled.push(isBookingcomDayLastEnabled);\n }\n return presentProvidersLastEnabled.every(function (isLastEnabled) {\n return isLastEnabled === true;\n });\n });\n var isAirbnbDayEnabled = function (day) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n } else {\n return SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Airbnb */1, booking.calendar.days);\n }\n };\n var isAirbnbDayFirstEnabled = function (day) {\n return Curry._2(isProviderDayFirstEnabled, day, /* Airbnb */1);\n };\n var isAirbnbDayLastEnabled = function (day) {\n return Curry._2(isProviderDayLastEnabled, day, /* Airbnb */1);\n };\n var isBookingcomDayEnabled = function (day) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n } else {\n return SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Bookingcom */2, booking.calendar.days);\n }\n };\n var isBookingcomDayFirstEnabled = function (day) {\n return Curry._2(isProviderDayFirstEnabled, day, /* Bookingcom */2);\n };\n var isBookingcomDayLastEnabled = function (day) {\n return Curry._2(isProviderDayLastEnabled, day, /* Bookingcom */2);\n };\n var isHicheeDayEnabled = function (day) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n } else {\n return SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Hichee */0, booking.calendar.days);\n }\n };\n var isHicheeDayFirstEnabled = function (day) {\n return Curry._2(isProviderDayFirstEnabled, day, /* Hichee */0);\n };\n var isHicheeDayLastEnabled = function (day) {\n return Curry._2(isProviderDayLastEnabled, day, /* Hichee */0);\n };\n var isVrboDayEnabled = function (day) {\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate)) {\n return false;\n } else {\n return SlvBooking.Calendar.isProviderDayAvailableForStayOrCheckOut(day, /* Vrbo */3, booking.calendar.days);\n }\n };\n var isVrboDayFirstEnabled = function (day) {\n return Curry._2(isProviderDayFirstEnabled, day, /* Vrbo */3);\n };\n var isVrboDayLastEnabled = function (day) {\n return Curry._2(isProviderDayLastEnabled, day, /* Vrbo */3);\n };\n var renderDayInCalendar = React.useCallback(function (date) {\n return function (param) {\n var dayOfMonth = $$Date.Naive.date(date);\n var minStayValidation = SlvBooking.Input.validateMinStayAndAviability(booking.input.checkIn, Caml_option.some(date), booking.calendar.days);\n var renderDayWrapper = function (param) {\n return React.createElement(\"div\", {\n className: css.calendarDayWrapper\n }, React.createElement(\"div\", {\n className: css.calendarDayDate\n }, React.createElement(\"span\", undefined, String(dayOfMonth))), React.createElement(\"div\", {\n className: DateRangePickerModuleScss.airbnbEnabledStrip\n }), React.createElement(\"div\", {\n className: DateRangePickerModuleScss.bookingcomEnabledStrip\n }), React.createElement(\"div\", {\n className: DateRangePickerModuleScss.hicheeEnabledStrip\n }), React.createElement(\"div\", {\n className: DateRangePickerModuleScss.vrboEnabledStrip\n }));\n };\n var match = Curry._1(isDisabledSelection, date);\n if (!match) {\n return renderDayWrapper(undefined);\n }\n if (minStayValidation.TAG === /* Ok */0) {\n return renderDayWrapper(undefined);\n }\n var match$1 = minStayValidation._0;\n if (typeof match$1 !== \"object\") {\n return renderDayWrapper(undefined);\n }\n if (match$1.NAME !== \"MinStayViolation\") {\n return renderDayWrapper(undefined);\n }\n var minStay = match$1.VAL;\n var nights = minStay === 1 ? \"night\" : \"nights\";\n return React.createElement(RcTooltip, {\n placement: \"bottom\",\n trigger: \"click\",\n destroyTooltipOnHide: true,\n prefixCls: \"rc-tooltip-dark\",\n overlay: React.createElement(\"div\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"calendar.tooltip.min-stay-violation\",\n defaultMessage: \"{minStay} {nights} minimum\",\n values: {\n nights: nights,\n minStay: minStay\n }\n })),\n children: renderDayWrapper(undefined)\n });\n };\n });\n var match$1 = booking.calendar.status;\n var match$2 = booking.input.checkIn;\n var match$3 = booking.input.checkOut;\n var match$4 = booking.status;\n var tmp;\n if (typeof match$4 === \"number\") {\n tmp = /* Auto */0;\n } else if (match$2 !== undefined) {\n var checkIn = Caml_option.valFromOption(match$2);\n if (typeof match$4 !== \"number\") {\n if (match$4.TAG === /* FetchingQuote */0) {\n tmp = /* Specified */{\n _0: checkIn\n };\n } else {\n var match$5 = match$4._0;\n if (match$5.TAG === /* Ok */0) {\n tmp = /* Specified */{\n _0: checkIn\n };\n } else {\n var match$6 = match$5._0;\n if (match$6 === \"FetchQuoteError\" || match$6 === \"FetchQuoteErrorCausedCalendarUpdate\" || match$6 === \"FetchCalendarError\" || match$6 === \"FetchQuoteErrorRemainedAfterCalendarUpdate\") {\n tmp = /* Specified */{\n _0: checkIn\n };\n } else if (match$3 !== undefined) {\n var match$7 = match$4._0._0.VAL;\n tmp = typeof match$7 === \"object\" || match$7 === \"NoCheckOutDate\" || match$7 === \"CheckInAndCheckOutSameDay\" || match$7 === \"NoCheckInDate\" || match$7 === \"DatesUnavailable\" || match$7 === \"NoCheckInAndCheckOutDates\" || !(match$7 === \"CheckOutBeforeCheckIn\" || match$7 === \"CheckInInThePast\") ? /* Specified */({\n _0: checkIn\n }) : /* Specified */({\n _0: Caml_option.valFromOption(match$3)\n });\n } else {\n var match$8 = match$4._0._0.VAL;\n tmp = typeof match$8 === \"object\" || match$8 === \"CheckOutBeforeCheckIn\" || match$8 === \"NoCheckOutDate\" || match$8 === \"CheckInAndCheckOutSameDay\" || match$8 === \"NoCheckInDate\" || match$8 === \"DatesUnavailable\" || match$8 === \"NoCheckInAndCheckOutDates\" || match$8 !== \"CheckInInThePast\" ? /* Specified */({\n _0: checkIn\n }) : /* Auto */0;\n }\n }\n }\n }\n \n } else if (match$3 !== undefined) {\n var checkOut = Caml_option.valFromOption(match$3);\n if (typeof match$4 !== \"number\") {\n if (match$4.TAG === /* FetchingQuote */0) {\n tmp = /* Specified */{\n _0: checkOut\n };\n } else {\n var match$9 = match$4._0;\n if (match$9.TAG === /* Ok */0) {\n tmp = /* Specified */{\n _0: checkOut\n };\n } else {\n var match$10 = match$9._0;\n if (typeof match$10 === \"object\") {\n tmp = /* Specified */{\n _0: checkOut\n };\n } else {\n tmp = /* Specified */{\n _0: checkOut\n };\n }\n }\n }\n }\n \n } else {\n tmp = /* Auto */0;\n }\n var match$11 = booking.input.checkIn;\n var match$12 = booking.input.checkOut;\n return React.createElement(WithTestId.make, {\n id: \"listing--booking--deals\",\n children: React.createElement(\"div\", {\n className: css.container\n }, React.createElement(Form.make, {\n className: css.form,\n onSubmit: booking.showInquiryModal,\n children: null\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.datesFieldWrapper,\n hasCalendarError ? \"tw-border-warning-500\" : \"\"\n ])\n }, React.createElement(DateRangePicker.make, {\n size: /* SM */0,\n neighbors: /* Right */1,\n calPlacement: /* Left */0,\n calModifiers: {\n hd: [\n /* CheckInBorder */0,\n {\n NAME: \"Fn\",\n VAL: isCheckInBorder\n }\n ],\n tl: {\n hd: [\n /* CheckOutBorder */1,\n {\n NAME: \"Fn\",\n VAL: isCheckOutBorder\n }\n ],\n tl: {\n hd: [\n /* DisabledSelection */2,\n {\n NAME: \"Fn\",\n VAL: isDisabledSelection\n }\n ],\n tl: {\n hd: [\n /* HoverRange */3,\n {\n NAME: \"Fn\",\n VAL: isHoverRange\n }\n ],\n tl: {\n hd: [\n /* Disabled */4,\n {\n NAME: \"Fn\",\n VAL: isDayDisabled\n }\n ],\n tl: {\n hd: [\n /* Selected */5,\n {\n NAME: \"Fn\",\n VAL: isSelected\n }\n ],\n tl: {\n hd: [\n /* FirstlySelected */6,\n {\n NAME: \"Fn\",\n VAL: isCheckInDay\n }\n ],\n tl: {\n hd: [\n /* SecondarySelected */7,\n {\n NAME: \"Fn\",\n VAL: isCheckOutDay\n }\n ],\n tl: {\n hd: [\n /* TertiarySelected */8,\n {\n NAME: \"Fn\",\n VAL: isDayInBetween\n }\n ],\n tl: {\n hd: [\n /* FirstEnabled */9,\n {\n NAME: \"Fn\",\n VAL: isDayFirstEnabled\n }\n ],\n tl: {\n hd: [\n /* LastEnabled */10,\n {\n NAME: \"Fn\",\n VAL: isDayLastEnabled\n }\n ],\n tl: {\n hd: [\n /* AirbnbEnabled */11,\n {\n NAME: \"Fn\",\n VAL: isAirbnbDayEnabled\n }\n ],\n tl: {\n hd: [\n /* AirbnbFirstEnabled */12,\n {\n NAME: \"Fn\",\n VAL: isAirbnbDayFirstEnabled\n }\n ],\n tl: {\n hd: [\n /* AirbnbLastEnabled */13,\n {\n NAME: \"Fn\",\n VAL: isAirbnbDayLastEnabled\n }\n ],\n tl: {\n hd: [\n /* BookingcomEnabled */14,\n {\n NAME: \"Fn\",\n VAL: isBookingcomDayEnabled\n }\n ],\n tl: {\n hd: [\n /* BookingcomFirstEnabled */15,\n {\n NAME: \"Fn\",\n VAL: isBookingcomDayFirstEnabled\n }\n ],\n tl: {\n hd: [\n /* BookingcomLastEnabled */16,\n {\n NAME: \"Fn\",\n VAL: isBookingcomDayLastEnabled\n }\n ],\n tl: {\n hd: [\n /* HicheeEnabled */17,\n {\n NAME: \"Fn\",\n VAL: isHicheeDayEnabled\n }\n ],\n tl: {\n hd: [\n /* HicheeFirstEnabled */18,\n {\n NAME: \"Fn\",\n VAL: isHicheeDayFirstEnabled\n }\n ],\n tl: {\n hd: [\n /* HicheeLastEnabled */19,\n {\n NAME: \"Fn\",\n VAL: isHicheeDayLastEnabled\n }\n ],\n tl: {\n hd: [\n /* VrboEnabled */20,\n {\n NAME: \"Fn\",\n VAL: isVrboDayEnabled\n }\n ],\n tl: {\n hd: [\n /* VrboFirstEnabled */21,\n {\n NAME: \"Fn\",\n VAL: isVrboDayFirstEnabled\n }\n ],\n tl: {\n hd: [\n /* VrboLastEnabled */22,\n {\n NAME: \"Fn\",\n VAL: isVrboDayLastEnabled\n }\n ],\n tl: /* [] */0\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n },\n calBusy: typeof match$1 === \"number\" ? match$1 !== 0 : false,\n calDisabled: sampleMode,\n calError: hasCalendarError ? Caml_option.some(React.createElement(SlvBookingDealsForm$CalendarError, {})) : undefined,\n checkInDate: booking.input.checkIn,\n checkOutDate: booking.input.checkOut,\n datePickerMode: booking.datePickerMode,\n initialMonth: tmp,\n checkInPlaceholder: screen === \"XL\" ? intl.formatMessage(DateRangePickerMessages.defaultPlaceholder) : intl.formatMessage(DateRangePickerMessages.checkInPlaceholder),\n checkOutPlaceholder: screen === \"XL\" ? intl.formatMessage(DateRangePickerMessages.defaultPlaceholder) : intl.formatMessage(DateRangePickerMessages.checkOutPlaceholder),\n onCheckinDayClick: (function (day) {\n Curry._2(booking.updateCheckIn, day, (function (x) {\n if (typeof x === \"object\" || !(x === \"CheckOutBeforeCheckIn\" || x === \"NoCheckOutDate\" || x === \"CheckInAndCheckOutSameDay\")) {\n return ;\n } else {\n return ReactRef.focus(booking.checkInFieldRef);\n }\n }));\n }),\n onCheckoutDayClick: (function (day) {\n Curry._2(booking.updateCheckOut, day, (function (x) {\n if (typeof x === \"object\" || !(x === \"CheckOutBeforeCheckIn\" || x === \"CheckInInThePast\" || x === \"NoCheckInDate\")) {\n return ;\n } else {\n return ReactRef.focus(booking.checkInFieldRef);\n }\n }));\n }),\n onDisabledCalClick: loginAndExitSampleMode,\n onMonthChange: (function (date) {\n Curry._1(booking.updateBookingCalendarOpenedDate, Caml_option.some(date));\n Curry._2(booking.fetchCalendarDays, date, 2);\n }),\n onDatesClear: match$11 !== undefined || match$12 !== undefined ? booking.clearDates : undefined,\n onCalendarShow: (function (param) {\n var date = booking.input.checkIn;\n var date$1 = date !== undefined ? $$Date.Naive.startOfMonth(Caml_option.valFromOption(date)) : $$Date.Naive.startOfMonth($$Date.Naive.make(undefined));\n Curry._1(booking.updateBookingCalendarOpenedDate, Caml_option.some(date$1));\n Curry._2(booking.fetchCalendarDays, date$1, 1);\n Curry._1(calendarErrorTooltip.hide, undefined);\n }),\n onCalendarHide: (function (param) {\n Curry._1(booking.updateBookingCalendarOpenedDate, undefined);\n }),\n updateDatePickerMode: booking.updateDatePickerMode,\n updateHoveredDay: booking.updateHoveredDay,\n renderDay: renderDayInCalendar,\n shouldShowVrbo: Belt_Option.isSome(listing.vrbpData.vrbo),\n shouldShowAirbnb: Belt_Option.isSome(listing.vrbpData.airbnb),\n shouldShowBookingcom: Belt_Option.isSome(listing.vrbpData.bookingcom),\n inputLabelClassName: css.inputLabel,\n twoMonthsPicker: screen === \"XL\",\n isDayDisabled: (function (date) {\n if (Curry._1(isDayDisabled, date)) {\n return true;\n } else {\n return Curry._1(isDisabledSelection, date);\n }\n }),\n ref: booking.checkInFieldRef\n }), React.createElement(NotificationTooltip.make, {\n tooltip: calendarErrorTooltip,\n overlay: React.createElement(SlvBookingDealsForm$CalendarError, {}),\n placement: /* Bottom */1,\n trigger: /* Click */2,\n theme: /* Dark */0,\n children: React.createElement(\"div\", undefined),\n destroyTooltipOnHide: false,\n withCloseButton: true\n })), React.createElement(\"div\", {\n className: css.guestsFieldWrapper\n }, React.createElement(GuestsField.make, {\n input: {\n adults: booking.input.adults,\n children: booking.input.children,\n infants: booking.input.infants,\n pets: booking.input.pets\n },\n houseRuleChildrenAllowed: listing.houseRuleChildrenAllowed,\n houseRuleInfantsAllowed: listing.houseRuleInfantsAllowed,\n houseRulePetsAllowed: listing.houseRulePetsAllowed,\n popoverPlacement: /* Right */2,\n testId: \"booking-widget-guests-dropdown\",\n onEditDone: booking.updateGuestsInUrl,\n className: css.guestsFormInput,\n label: \"Guests\",\n style: screen === \"XS\" || screen === \"SM\" || screen === \"MD\" ? /* Compact */1 : /* Regular */0,\n inputLabelClassName: css.inputLabel,\n isDisabled: sampleMode,\n onDisabledClick: loginAndExitSampleMode\n }))))\n });\n}\n\nvar make = SlvBookingDealsForm;\n\nexports.css = css;\nexports.CalendarError = CalendarError;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar SlvProviderLabelText = require(\"./SlvProviderLabelText.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar SlvProviderRowDealButton = require(\"../ProviderRow/SlvProviderRowDealButton.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderLabel(props) {\n var screen = props.screen;\n var icon = props.icon;\n var useManagerInfo = props.useManagerInfo;\n var listing = props.listing;\n var provider = props.provider;\n return React.createElement(\"div\", {\n className: css.providerLabel\n }, provider !== 0 && (screen === \"XS\" || screen === \"SM\" || screen === \"MD\") ? React.createElement(SlvProviderRowDealButton.make, {\n style: /* ProviderLabel */1,\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n transferPageUrl: props.transferPageUrl,\n contactHost: props.contactHost,\n user: props.user,\n icon: icon,\n showExternalRedirectLimitModal: props.showExternalRedirectLimitModal,\n canExternalRedirect: props.canExternalRedirect,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal,\n canDoMagicSearch: props.canDoMagicSearch\n }) : React.createElement(SlvProviderLabelText.make, {\n provider: provider,\n listing: listing,\n useManagerInfo: useManagerInfo,\n icon: icon\n }));\n}\n\nvar make = SlvProviderLabel;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Host = require(\"../../../../../models/Host.bs.js\");\nvar Vrbp = require(\"../../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Avatar = require(\"../../../../../styleguide/components/Avatar/Avatar.bs.js\");\nvar Control = require(\"../../../../../styleguide/components/Control/Control.bs.js\");\nvar SlvBlock = require(\"../../../components/SlvBlock/SlvBlock.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar TextControl = require(\"../../../../../styleguide/components/Control/TextControl.bs.js\");\nvar ScreenSizeContext = require(\"../../../../../contexts/ScreenSizeContext.bs.js\");\nvar SlvBookingDealsScss = require(\"../SlvBookingDeals.scss\").default;\nvar EstimatedBookDirectPrice = require(\"../../../../../styleguide/components/EstimatedBookDirectPrice/EstimatedBookDirectPrice.bs.js\");\n\nvar css = SlvBookingDealsScss;\n\nfunction SlvProviderLabelText(props) {\n var icon = props.icon;\n var listing = props.listing;\n var provider = props.provider;\n var screen = React.useContext(ScreenSizeContext.Context.x);\n var owner = listing.owner;\n if (provider !== 0) {\n return React.createElement(React.Fragment, undefined, screen === \"XS\" || screen === \"SM\" ? React.createElement(icon.make, {\n size: \"XXL\"\n }) : React.createElement(icon.make, {\n size: \"XXXL\"\n }), React.createElement(\"span\", undefined, Vrbp.Provider.toView(provider)));\n }\n var match = listing.manager;\n if (props.useManagerInfo && match !== undefined) {\n var name = match.name;\n var tmp;\n var exit = 0;\n if (name !== undefined && name !== \"\") {\n tmp = name;\n } else {\n exit = 2;\n }\n if (exit === 2) {\n tmp = React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.manager\",\n defaultMessage: \"Manager\"\n });\n }\n return React.createElement(React.Fragment, undefined, React.createElement(Control.make, {\n className: css.hostAvatar,\n onClick: (function (param) {\n SlvBlock.scrollPageTo(\"Host\", screen);\n }),\n children: React.createElement(Avatar.Manager.make, {\n manager: match,\n size: 40,\n spinnerSize: /* SM */0,\n loading: /* Lazy */0\n })\n }), React.createElement(\"span\", undefined, React.createElement(TextControl.make, {\n className: css.hostName,\n style: /* General */0,\n onClick: (function (param) {\n SlvBlock.scrollPageTo(\"Host\", screen);\n }),\n children: tmp\n }), React.createElement(EstimatedBookDirectPrice.make, {})));\n }\n if (typeof owner === \"number\") {\n return React.createElement(icon.make, {\n size: \"XXXL\"\n });\n } else {\n return React.createElement(React.Fragment, undefined, React.createElement(Control.make, {\n className: css.hostAvatar,\n onClick: (function (param) {\n SlvBlock.scrollPageTo(\"Host\", screen);\n }),\n children: React.createElement(Avatar.User.make, {\n user: listing.owner,\n size: 40,\n loading: /* Lazy */0,\n spinnerSize: /* SM */0\n })\n }), React.createElement(\"span\", undefined, React.createElement(TextControl.make, {\n style: /* General */0,\n onClick: (function (param) {\n SlvBlock.scrollPageTo(\"Host\", screen);\n }),\n children: Host.getFullName(owner)\n }), React.createElement(EstimatedBookDirectPrice.make, {})));\n }\n}\n\nvar make = SlvProviderLabelText;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar React = require(\"react\");\nvar SlvBookingInquiryModalForm = require(\"./SlvBookingInquiryModalForm.bs.js\");\nvar SlvBookingInquiryModalSuccessMessage = require(\"./SlvBookingInquiryModalSuccessMessage.bs.js\");\n\nfunction SlvBookingInquiryModal(props) {\n var booking = props.booking;\n var listing = props.listing;\n var match = booking.modal;\n var match$1 = match.current;\n var match$2 = booking.modal;\n var match$3 = match$2.inquiryStatus;\n var tmp;\n var exit = 0;\n if (typeof match$3 === \"number\" || match$3.TAG === /* Editing */0) {\n exit = 1;\n } else {\n var match$4 = match$3._0;\n if (match$4.TAG === /* Ok */0) {\n tmp = React.createElement(SlvBookingInquiryModalSuccessMessage.make, {\n booking: booking,\n listing: listing,\n user: match$4._0.user\n });\n } else {\n exit = 1;\n }\n }\n if (exit === 1) {\n tmp = React.createElement(SlvBookingInquiryModalForm.make, {\n listing: listing,\n booking: booking,\n user: props.user\n });\n }\n return React.createElement(Modal.make, {\n shown: match$1 !== undefined ? match$1 === 0 : false,\n hide: booking.hideModal,\n testId: \"booking-confirmation-modal\",\n children: tmp\n });\n}\n\nvar make = SlvBookingInquiryModal;\n\nexports.make = make;\n/* Modal Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Vrbp = require(\"../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Booking = require(\"../../../../models/Booking.bs.js\");\nvar Spinner = require(\"../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar Tooltip = require(\"../../../../styleguide/components/Tooltip/Tooltip.bs.js\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar VrboIcon = require(\"../../../../styleguide/icons/VrboIcon.bs.js\");\nvar AirbnbIcon = require(\"../../../../styleguide/icons/AirbnbIcon.bs.js\");\nvar SlvBooking = require(\"../SlvBooking.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar BookingcomFullIcon = require(\"../../../../styleguide/icons/BookingcomFullIcon.bs.js\");\nvar TooltipQuestionIcon = require(\"../../../../styleguide/icons/TooltipQuestionIcon.bs.js\");\nvar SlvBookingInquiryModalDealsOnOtherSiteModuleScss = require(\"./SlvBookingInquiryModalDealsOnOtherSite.module.scss\").default;\n\nvar css = SlvBookingInquiryModalDealsOnOtherSiteModuleScss;\n\nfunction hasNoProviderQuote(providerStatus) {\n if (providerStatus !== undefined && !(providerStatus && providerStatus._0.TAG !== /* Ok */0)) {\n return false;\n } else {\n return true;\n }\n}\n\nfunction SlvBookingInquiryModalDealsOnOtherSite$ProviderRow(props) {\n var currency = props.currency;\n var status = props.status;\n var provider = props.provider;\n var intl = ReactIntl.useIntl();\n var providerStatus = React.useMemo((function () {\n var quote = SlvBooking.Status.quote(status);\n return Belt_Option.flatMap(quote, (function (quote) {\n return Booking.Quote.getProviderStatus(quote, provider);\n }));\n }), [\n status,\n provider\n ]);\n var noProvider = React.useMemo((function () {\n return hasNoProviderQuote(providerStatus);\n }), [providerStatus]);\n var tmp;\n var exit = 0;\n var exit$1 = 0;\n if (typeof status === \"number\") {\n if (status === /* Hibernate */0) {\n exit$1 = 3;\n } else {\n exit = 1;\n }\n } else if (status.TAG === /* FetchingQuote */0 && status._0 === \"NoQuote\") {\n exit = 1;\n } else {\n exit$1 = 3;\n }\n if (exit$1 === 3) {\n if (providerStatus !== undefined) {\n if (providerStatus) {\n var providerQuote = providerStatus._0;\n if (providerQuote.TAG === /* Ok */0) {\n var providerQuote$1 = providerQuote._0;\n var providerFee = providerQuote$1.providerFee;\n tmp = React.createElement(\"div\", {\n className: css.providerDataPrices\n }, React.createElement(\"div\", {\n className: css.providerDataPrice\n }, React.createElement(Currency.WithoutCents.make, {\n currency: currency,\n children: providerQuote$1.total\n })), providerQuote$1.bestPriceSkipped ? React.createElement(\"div\", {\n className: css.providerDataPriceNotIncludedNote\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.prices.not-included-note\",\n defaultMessage: \"This quote may have fees not included in the total. Shown for comparison.\"\n })) : (\n providerFee !== 0.0 ? React.createElement(\"div\", {\n className: css.providerFee\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.service-fee\",\n defaultMessage: \"Includes {fee} service fee\",\n values: {\n fee: Currency.formatWithCents(currency, providerFee, intl)\n }\n })) : null\n ));\n } else {\n exit = 2;\n }\n } else {\n exit = 1;\n }\n } else {\n exit = 2;\n }\n }\n switch (exit) {\n case 1 :\n tmp = React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.providerDataSpinner\n }, React.createElement(Spinner.make, {\n size: /* MD */1,\n color: /* Primary */0\n })), React.createElement(\"span\", {\n className: css.providerDataFadedLabel\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.fetching-totals\",\n defaultMessage: \"Fetching totals\"\n })));\n break;\n case 2 :\n tmp = React.createElement(React.Fragment, undefined, React.createElement(\"span\", {\n className: css.providerDataFadedLabel\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.no-price\",\n defaultMessage: \"No price\"\n })), React.createElement(Tooltip.make, {\n content: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.tooltip\",\n defaultMessage: \"We didn't manage to receive the live total price. Selected dates can be unavailable or there was an error.\"\n }),\n side: /* Left */2,\n className: css.providerDataTooltip,\n children: React.createElement(\"span\", {\n onClick: (function (e) {\n e.preventDefault();\n })\n }, React.createElement(TooltipQuestionIcon.make, {\n size: \"MD\",\n color: \"LightGray\"\n }))\n }));\n break;\n \n }\n return React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerRow,\n noProvider ? css.providerRowNoPrice : \"\"\n ])\n }, React.createElement(\"div\", {\n className: css.providerLabel\n }, React.createElement(props.icon.make, {\n size: \"XXXL\",\n className: css.providerIcon\n }), React.createElement(\"span\", undefined, Vrbp.Provider.toView(provider))), React.createElement(\"div\", {\n className: css.providerData\n }, tmp)), React.createElement(\"hr\", {\n className: css.horizontalLine\n }));\n}\n\nvar ProviderRow = {\n make: SlvBookingInquiryModalDealsOnOtherSite$ProviderRow\n};\n\nfunction SlvBookingInquiryModalDealsOnOtherSite$ProviderRowNotListed(props) {\n return React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.providerRow\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.providerLabel,\n css.faded\n ])\n }, React.createElement(props.icon.make, {\n size: \"XXXL\",\n className: css.providerIcon\n }), React.createElement(\"span\", undefined, Vrbp.Provider.toView(props.provider))), React.createElement(\"div\", {\n className: css.providerData\n }, React.createElement(\"span\", {\n className: Cx.cx([\n css.providerDataPrice,\n css.faded\n ])\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.not-listed\",\n defaultMessage: \"Not listed\"\n })))), React.createElement(\"hr\", {\n className: css.horizontalLine\n }));\n}\n\nvar ProviderRowNotListed = {\n make: SlvBookingInquiryModalDealsOnOtherSite$ProviderRowNotListed\n};\n\nfunction SlvBookingInquiryModalDealsOnOtherSite$Block(props) {\n var listing = props.listing;\n var status = props.booking.status;\n var match = listing.vrbpData.airbnb;\n var match$1 = listing.vrbpData.bookingcom;\n var match$2 = listing.vrbpData.vrbo;\n return React.createElement(React.Fragment, undefined, match !== undefined ? React.createElement(SlvBookingInquiryModalDealsOnOtherSite$ProviderRow, {\n provider: /* Airbnb */1,\n icon: AirbnbIcon,\n status: status,\n currency: listing.currency\n }) : React.createElement(SlvBookingInquiryModalDealsOnOtherSite$ProviderRowNotListed, {\n provider: /* Airbnb */1,\n icon: AirbnbIcon\n }), match$1 !== undefined ? React.createElement(SlvBookingInquiryModalDealsOnOtherSite$ProviderRow, {\n provider: /* Bookingcom */2,\n icon: BookingcomFullIcon,\n status: status,\n currency: listing.currency\n }) : React.createElement(SlvBookingInquiryModalDealsOnOtherSite$ProviderRowNotListed, {\n provider: /* Bookingcom */2,\n icon: BookingcomFullIcon\n }), match$2 !== undefined ? React.createElement(SlvBookingInquiryModalDealsOnOtherSite$ProviderRow, {\n provider: /* Vrbo */3,\n icon: VrboIcon,\n status: status,\n currency: listing.currency\n }) : React.createElement(SlvBookingInquiryModalDealsOnOtherSite$ProviderRowNotListed, {\n provider: /* Vrbo */3,\n icon: VrboIcon\n }));\n}\n\nvar Block = {\n make: SlvBookingInquiryModalDealsOnOtherSite$Block\n};\n\nfunction SlvBookingInquiryModalDealsOnOtherSite(props) {\n return React.createElement(React.Fragment, undefined, React.createElement(\"h3\", {\n className: css.title\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.deals-on-other-sites\",\n defaultMessage: \"Deals for your stay on other sites\"\n })), React.createElement(\"hr\", {\n className: css.horizontalLine\n }), React.createElement(SlvBookingInquiryModalDealsOnOtherSite$Block, {\n listing: props.listing,\n booking: props.booking\n }));\n}\n\nvar make = SlvBookingInquiryModalDealsOnOtherSite;\n\nexports.css = css;\nexports.hasNoProviderQuote = hasNoProviderQuote;\nexports.ProviderRow = ProviderRow;\nexports.ProviderRowNotListed = ProviderRowNotListed;\nexports.Block = Block;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Opt = require(\"../../../../libs/Opt.bs.js\");\nvar $$Date = require(\"../../../../libs/Date.bs.js\");\nvar Form = require(\"../../../../styleguide/forms/Form/Form.bs.js\");\nvar Alert = require(\"../../../../styleguide/components/Alert/Alert.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Label = require(\"../../../../styleguide/forms/Label/Label.bs.js\");\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Booking = require(\"../../../../models/Booking.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Tooltip = require(\"../../../../styleguide/components/Tooltip/Tooltip.bs.js\");\nvar Checkbox = require(\"../../../../styleguide/forms/Checkbox/Checkbox.bs.js\");\nvar TextArea = require(\"../../../../styleguide/forms/TextArea/TextArea.bs.js\");\nvar TextField = require(\"../../../../styleguide/forms/TextField/TextField.bs.js\");\nvar GuestsIcon = require(\"../../../../styleguide/icons/GuestsIcon.bs.js\");\nvar PhoneInput = require(\"../../../../styleguide/forms/PhoneInput/PhoneInput.bs.js\");\nvar SlvBooking = require(\"../SlvBooking.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar TooltipQuestionIcon = require(\"../../../../styleguide/icons/TooltipQuestionIcon.bs.js\");\nvar CalendarWithClockIcon = require(\"../../../../styleguide/icons/CalendarWithClockIcon.bs.js\");\nvar SlvBookingInquiryModalQuote = require(\"./SlvBookingInquiryModalQuote.bs.js\");\nvar SlvBookingSendInquiryButton = require(\"./SlvBookingSendInquiryButton.bs.js\");\nvar SlvBookingModalFormModuleScss = require(\"./SlvBookingModalForm.module.scss\").default;\nvar SlvBookingInquiryModalDealsOnOtherSite = require(\"./SlvBookingInquiryModalDealsOnOtherSite.bs.js\");\nvar SlvBookingModalUnverifiedListingNotification = require(\"./SlvBookingModalUnverifiedListingNotification.bs.js\");\n\nvar css = SlvBookingModalFormModuleScss;\n\nvar dateTemplate = \"MMM dd, yyyy\";\n\nfunction userFieldDomId(field) {\n return \"listing--booking-confirmation-modal--register-user--\" + field + \"\";\n}\n\nfunction SlvBookingInquiryModalForm(props) {\n var user = props.user;\n var booking = props.booking;\n var listing = props.listing;\n var match = user.id;\n var tmp;\n if (match !== undefined) {\n tmp = null;\n } else {\n var match$1 = booking.newUser.results.firstName;\n var tmp$1;\n tmp$1 = match$1 !== undefined && match$1.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$2 = booking.newUser.results.firstName;\n var tmp$2;\n tmp$2 = match$2 !== undefined && match$2.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$2._0)) : null;\n var match$3 = booking.newUser.results.lastName;\n var tmp$3;\n tmp$3 = match$3 !== undefined && match$3.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$4 = booking.newUser.results.lastName;\n var tmp$4;\n tmp$4 = match$4 !== undefined && match$4.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$4._0)) : null;\n var match$5 = booking.newUser.results.email;\n var tmp$5;\n tmp$5 = match$5 !== undefined && match$5.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$6 = booking.newUser.results.email;\n var tmp$6;\n tmp$6 = match$6 !== undefined && match$6.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$6._0)) : null;\n tmp = React.createElement(\"div\", undefined, React.createElement(\"div\", {\n className: css.introduceNote\n }, React.createElement(\"span\", {\n className: css.bold\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.introduce-note\",\n defaultMessage: \"Please introduce yourself\"\n }))), React.createElement(\"div\", {\n className: css.flexGrid\n }, React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--booking-confirmation-modal--register-user--firstName\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.first-name\",\n defaultMessage: \"First Name\"\n })\n }), React.createElement(TextField.make, {\n id: \"listing--booking-confirmation-modal--register-user--firstName\",\n size: /* MD */1,\n value: Opt.toString(booking.newUser.input.firstName),\n status: tmp$1,\n onChange: (function ($$event) {\n Curry._2(booking.updateNewUserFirstName, $$event.target.value, \"InquiryModal\");\n })\n }), tmp$2), React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--booking-confirmation-modal--register-user--lastName\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.last-name\",\n defaultMessage: \"Last Name\"\n })\n }), React.createElement(TextField.make, {\n id: \"listing--booking-confirmation-modal--register-user--lastName\",\n size: /* MD */1,\n value: Opt.toString(booking.newUser.input.lastName),\n status: tmp$3,\n onChange: (function ($$event) {\n Curry._2(booking.updateNewUserLastName, $$event.target.value, \"InquiryModal\");\n })\n }), tmp$4), React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--booking-confirmation-modal--register-user--email\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.email\",\n defaultMessage: \"Email\"\n })\n }), React.createElement(TextField.make, {\n id: \"listing--booking-confirmation-modal--register-user--email\",\n size: /* MD */1,\n value: Opt.toString(booking.newUser.input.email),\n status: tmp$5,\n onChange: (function ($$event) {\n Curry._2(booking.updateNewUserEmail, $$event.target.value, \"InquiryModal\");\n })\n }), tmp$6), React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--booking-confirmation-modal--register-user--phone\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.phone\",\n defaultMessage: \"Phone\"\n })\n }), React.createElement(PhoneInput.make, {\n id: \"listing--booking-confirmation-modal--register-user--phone\",\n size: /* MD */1,\n className: css.phoneInput,\n value: Opt.toString(booking.newUser.input.phone),\n onChange: (function (value) {\n Curry._2(booking.updateNewUserPhone, value, \"InquiryModal\");\n })\n }))));\n }\n var match$7 = booking.modal.inquiryStatus;\n var tmp$7;\n tmp$7 = typeof match$7 === \"number\" || match$7.TAG === /* Editing */0 || match$7._0.TAG === /* Ok */0 ? null : React.createElement(Modal.Block.make, {\n children: React.createElement(Alert.make, {\n level: /* Danger */3,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.error\",\n defaultMessage: \"Oops, something went wrong\"\n })\n })\n });\n var match$8 = user.id;\n var match$9 = booking.modal.inquiryStatus;\n var match$10 = user.id;\n var quote = SlvBooking.Status.quote(booking.status);\n var tmp$8;\n if (quote !== undefined) {\n var hicheeStatus = Booking.Quote.getProviderStatus(quote, /* Hichee */0);\n if (hicheeStatus !== undefined && hicheeStatus) {\n var hicheeQuote = hicheeStatus._0;\n tmp$8 = hicheeQuote.TAG === /* Ok */0 ? React.createElement(Modal.Block.make, {\n className: css.bookingQuote,\n children: React.createElement(SlvBookingInquiryModalQuote.make, {\n quote: quote,\n hicheeQuote: hicheeQuote._0,\n currency: listing.currency\n })\n }) : null;\n } else {\n tmp$8 = null;\n }\n } else {\n tmp$8 = null;\n }\n var match$11 = listing.vrbpData;\n var tmp$9;\n var exit = 0;\n if (match$11.airbnb !== undefined || match$11.bookingcom !== undefined || match$11.vrbo !== undefined) {\n exit = 1;\n } else {\n tmp$9 = null;\n }\n if (exit === 1) {\n tmp$9 = React.createElement(SlvBookingInquiryModalDealsOnOtherSite.make, {\n listing: listing,\n booking: booking\n });\n }\n return React.createElement(Modal.Panels.make, {\n className: css.wrapper,\n children: null\n }, React.createElement(Modal.PanelsTitleWithSidePanelContent.make, {\n className: css.title,\n sidePanelContent: React.createElement(\"h3\", {\n className: css.sidePanelTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.title\",\n defaultMessage: \"Trip Details | Estimated Direct Price\"\n })),\n sidePanelClassName: css.sidePanelContent,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.subtitle\",\n defaultMessage: \"Get the Direct Price From the Host\"\n })\n }), React.createElement(Modal.MainPanel.make, {\n children: null\n }, Listing.Contextual.isVerified(listing) ? null : React.createElement(SlvBookingModalUnverifiedListingNotification.make, {}), React.createElement(Form.make, {\n onSubmit: booking.submitInquiry,\n children: null\n }, tmp, React.createElement(Modal.Block.make, {\n children: null\n }, React.createElement(\"h3\", {\n className: css.secondaryTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.details\",\n defaultMessage: \"Tell the host details of your trip. Ask any question.\"\n })), React.createElement(TextArea.make, {\n testId: \"booking-confirmation-modal-message\",\n rows: 3,\n size: /* MD */1,\n value: Belt_Option.getWithDefault(booking.input.comment, \"\"),\n placeholder: \"Share some details of your trip with the host so they can help answer any questions and share some local knowledge.\",\n className: css.messageInput,\n onChange: (function ($$event) {\n Curry._2(booking.updateComment, $$event.target.value, \"InquiryModal\");\n })\n })), React.createElement(\"div\", {\n className: css.fieldsRow\n }, React.createElement(\"div\", {\n className: css.checkboxWrapper\n }, React.createElement(Checkbox.make, {\n id: \"booking-form-flexibleDates\",\n size: /* MD */1,\n checked: booking.input.flexibleDates,\n className: css.flexibleDatesCheckbox,\n onChange: (function ($$event) {\n Curry._1(booking.updateFlexibleDates, $$event.target.checked);\n })\n }), React.createElement(Label.make, {\n forId: \"booking-form-flexibleDates\",\n placement: /* Right */1,\n className: css.checkboxLabel,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.flexible-dates-control\",\n defaultMessage: \"My dates are flexible\"\n })\n }), React.createElement(Tooltip.make, {\n content: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.flexible-dates-control-tooltip\",\n defaultMessage: \"Check to indicate to the host that you are flexible when it comes to check-in and check-out. Hosts sometimes will offer a better price if you are able to change dates.\"\n }),\n side: /* Right */3,\n children: React.createElement(TooltipQuestionIcon.make, {\n size: \"MD\",\n color: \"General\"\n })\n }))), tmp$7, React.createElement(Modal.Footer.make, {\n className: css.footer,\n children: null\n }, React.createElement(SlvBookingSendInquiryButton.make, {\n size: /* MD */1,\n submit: true,\n buttonText: match$8 !== undefined ? \"Send Inquiry\" : \"Agree and continue\",\n className: css.confirmButton,\n busy: typeof match$9 === \"number\" ? true : false\n }), match$10 !== undefined ? null : React.createElement(\"div\", {\n className: css.footerNote\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.by-agreeing\",\n defaultMessage: \"By clicking 'Agree & continue' you are agreeing to our \"\n }), React.createElement(A.make, {\n href: Route.termsOfService,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.terms-conditions\",\n defaultMessage: \"Terms and Conditions\"\n })\n }), React.createElement(\"span\", undefined, \", \"), React.createElement(A.make, {\n href: Route.privacyPolicy,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.privacy-policy\",\n defaultMessage: \"Privacy Policy\"\n })\n }), React.createElement(\"span\", undefined, \".\"))))), React.createElement(Modal.SidePanel.make, {\n className: css.sidePanel,\n children: null\n }, React.createElement(Modal.Block.make, {\n className: css.details,\n children: null\n }, React.createElement(\"div\", {\n className: css.detailsRow\n }, React.createElement(\"div\", {\n className: css.detailsCol\n }, React.createElement(CalendarWithClockIcon.make, {\n size: \"SM\",\n color: \"LightGray\",\n className: css.calendarIcon\n })), React.createElement(\"div\", {\n className: css.detailsCol\n }, React.createElement(\"div\", {\n className: css.detailsValue\n }, React.createElement(\"span\", undefined, Belt_Option.mapWithDefault(booking.input.checkIn, null, (function (date) {\n return $$Date.Naive.format(date, dateTemplate);\n }))), React.createElement(\"span\", undefined, \" - \"), React.createElement(\"span\", undefined, Belt_Option.mapWithDefault(booking.input.checkOut, null, (function (date) {\n return $$Date.Naive.format(date, dateTemplate);\n })))))), React.createElement(\"div\", {\n className: css.detailsRow\n }, React.createElement(\"div\", {\n className: css.detailsCol\n }, React.createElement(GuestsIcon.make, {\n size: \"SM\",\n color: \"LightGray\"\n })), React.createElement(\"div\", {\n className: css.detailsCol\n }, React.createElement(\"div\", {\n className: css.detailsValue\n }, React.createElement(\"span\", undefined, Booking.guestsInfo(booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets))))), React.createElement(\"hr\", {\n className: css.horizontalLine\n })), tmp$8, Listing.Contextual.isVerified(listing) ? React.createElement(\"p\", {\n className: css.priceDescription\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.description.claimed\",\n defaultMessage: \"This Verified Host has committed to providing you with a great book-direct price.\"\n })) : React.createElement(\"p\", {\n className: css.priceDescription\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.description.unclaimed.this-is\",\n defaultMessage: \"This is an \"\n }), React.createElement(\"span\", {\n className: css.attention\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.description.unclaimed.estimate\",\n defaultMessage: \"estimated price\"\n })), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.description.unclaimed.calculated\",\n defaultMessage: \" which is calculated from the lowest of Airbnb, Booking.com, or Vrbo prices minus the website service fees.\"\n })), tmp$9));\n}\n\nvar initialRulesQuantity = 3;\n\nvar make = SlvBookingInquiryModalForm;\n\nexports.css = css;\nexports.initialRulesQuantity = initialRulesQuantity;\nexports.dateTemplate = dateTemplate;\nexports.userFieldDomId = userFieldDomId;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Vrbp = require(\"../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Tooltip = require(\"../../../../styleguide/components/Tooltip/Tooltip.bs.js\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar WithTestId = require(\"../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar TooltipQuestionIcon = require(\"../../../../styleguide/icons/TooltipQuestionIcon.bs.js\");\nvar SlvBookingInquiryModalQuoteModuleScss = require(\"./SlvBookingInquiryModalQuote.module.scss\").default;\n\nvar css = SlvBookingInquiryModalQuoteModuleScss;\n\nfunction SlvBookingInquiryModalQuote(props) {\n var currency = props.currency;\n var hicheeQuote = props.hicheeQuote;\n var quote = props.quote;\n var intl = ReactIntl.useIntl();\n var price = Currency.formatWithoutCents(currency, hicheeQuote.avgPricePerNight, intl);\n var match = hicheeQuote.turnoverFeesAndTaxes;\n var bestDeal = quote.bestDeal;\n var tmp;\n if (bestDeal !== undefined && Vrbp.BestDeal.isBestDealForProvider(bestDeal, /* Hichee */0)) {\n var comparingDeal = bestDeal.comparingTo;\n if (comparingDeal !== undefined) {\n var savingsAmount = comparingDeal.savings.absolute;\n tmp = savingsAmount > 0.0 ? React.createElement(\"div\", {\n className: css.quoteRow\n }, React.createElement(\"div\", {\n className: css.green\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.you-save\",\n defaultMessage: \"You save:\"\n })), React.createElement(WithTestId.make, {\n id: \"booking-quote-savings-value\",\n children: React.createElement(\"div\", {\n className: css.quoteMoney\n }, React.createElement(\"span\", {\n className: css.green\n }, React.createElement(\"span\", undefined, Currency.formatWithCents(currency, savingsAmount, intl))))\n })) : null;\n } else {\n tmp = null;\n }\n } else {\n tmp = null;\n }\n var match$1 = quote.deposit;\n return React.createElement(\"div\", {\n className: css.quote\n }, React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.quoteRow\n }, React.createElement(\"div\", {\n className: css.quoteLabel\n }, React.createElement(React.Fragment, undefined, React.createElement(\"span\", undefined, \"\" + price + \" \" + Html.times + \" \"), React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.nights\",\n defaultMessage: \"{nights, plural, one {# night} other {# nights}}\",\n values: {\n nights: quote.numberOfNights\n }\n }))), React.createElement(WithTestId.make, {\n id: \"booking-quote-pernight-times-nights-value\",\n children: React.createElement(\"div\", {\n className: css.quoteMoney\n }, React.createElement(\"span\", undefined, Currency.formatWithCents(currency, hicheeQuote.avgPricePerNight * quote.numberOfNights, intl)))\n })), match !== 0.0 ? React.createElement(\"div\", {\n className: css.quoteRow\n }, React.createElement(\"div\", {\n className: css.quoteLabel\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.estimate-fees-taxes\",\n defaultMessage: \"Est. Turnover fees and taxes:\"\n })), React.createElement(WithTestId.make, {\n id: \"booking-quote-fees-taxes-value\",\n children: React.createElement(\"div\", {\n className: css.quoteMoney\n }, React.createElement(\"span\", undefined, Currency.formatWithCents(currency, hicheeQuote.turnoverFeesAndTaxes, intl)))\n })) : null, tmp, match$1 !== 0.0 ? React.createElement(\"div\", {\n className: css.quoteRow\n }, React.createElement(\"div\", {\n className: css.quoteLabel\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking.quote.deposit\",\n defaultMessage: \"Refundable damage deposit (not included in total):\"\n }), React.createElement(Tooltip.make, {\n id: \"tooltip-booking-widget-deposit\",\n content: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking.quote.deposit-tooltip\",\n defaultMessage: \"Serves to cover any damage to the property during your stay. The amount will be refunded upon check-out\"\n }),\n side: /* Top */0,\n className: css.iconTooltip,\n children: React.createElement(TooltipQuestionIcon.make, {\n size: \"MD\",\n color: \"General\"\n })\n })), React.createElement(WithTestId.make, {\n id: \"booking-quote-deposit-value\",\n children: React.createElement(\"div\", {\n className: css.quoteMoney\n }, React.createElement(\"span\", undefined, Currency.formatWithCents(currency, quote.deposit, intl)))\n })) : null, React.createElement(\"div\", {\n className: css.quoteRow\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.quoteLabel,\n css.quoteTotal\n ])\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.estimate-for\",\n defaultMessage: \"Est. Total for \"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.nights\",\n defaultMessage: \"{nights, plural, one {# night} other {# nights}}\",\n values: {\n nights: quote.numberOfNights\n }\n })), React.createElement(WithTestId.make, {\n id: \"booking-quote-total-value\",\n children: React.createElement(\"div\", {\n className: Cx.cx([\n css.quoteMoney,\n css.quoteTotal\n ])\n }, React.createElement(\"span\", undefined, Currency.formatWithoutCents(currency, hicheeQuote.total, intl)))\n }))));\n}\n\nvar make = SlvBookingInquiryModalQuote;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar BulbIcon = require(\"../../../../styleguide/icons/BulbIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar MessageSentIcon = require(\"../../../../styleguide/svgs/MessageSentIcon.bs.js\");\nvar SlvBookingModalSuccessMessageModuleScss = require(\"./SlvBookingModalSuccessMessage.module.scss\").default;\n\nvar css = SlvBookingModalSuccessMessageModuleScss;\n\nfunction SlvBookingInquiryModalSuccessMessage(props) {\n var booking = props.booking;\n return React.createElement(\"div\", {\n className: css.wrapper\n }, React.createElement(Modal.MainPanel.make, {\n className: css.mainPanel,\n children: React.createElement(\"div\", {\n className: css.modalBody\n }, React.createElement(MessageSentIcon.make, {\n className: css.messageSentIcon\n }), React.createElement(\"div\", {\n className: css.message\n }, Listing.Contextual.isVerified(props.listing) ? React.createElement(\"div\", {\n className: css.messageHostReply\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.inquiry-sent\",\n defaultMessage: \"Your Inquiry Has Been sent! The Host Should Reply to You Soon.\"\n })) : React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.messageHostReply\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.request-sent\",\n defaultMessage: \"Your Request Has Been Sent\"\n })), React.createElement(\"div\", {\n className: css.contactHostMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.contact-host-message\",\n defaultMessage: \"We'll do our best to contact the host within the next few hours and deliver your request. We'll keep you informed of our progress.\"\n })), React.createElement(\"br\", undefined))), typeof props.user === \"object\" ? React.createElement(\"div\", {\n className: css.newUserMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.new-user-message\",\n defaultMessage: \"We've created you an account so you can check the status of your inquiry or chat with the host if you have any further questions.\"\n })) : null, React.createElement(\"div\", undefined, React.createElement(\"div\", {\n className: css.closeWindowButton,\n onClick: (function (param) {\n Curry._1(booking.hideModal, undefined);\n })\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.close-window\",\n defaultMessage: \"Close This Window\"\n }))))\n }), React.createElement(Modal.SidePanel.make, {\n className: css.sidePanel,\n children: null\n }, React.createElement(BulbIcon.make, {\n size: \"XXXL\",\n color: \"DarkTeal\",\n className: css.bulbIcon\n }), React.createElement(\"div\", {\n className: css.sidePanelMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.spam-message\",\n defaultMessage: \"If HiChee emails are landing in your spam folder, please mark them {quot}Not Spam.{quot}\",\n values: {\n quot: Html.quot\n }\n }))));\n}\n\nvar make = SlvBookingInquiryModalSuccessMessage;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar React = require(\"react\");\nvar SlvBookingMessageModalForm = require(\"./SlvBookingMessageModalForm.bs.js\");\nvar SlvBookingMessageModalSuccessMessage = require(\"./SlvBookingMessageModalSuccessMessage.bs.js\");\n\nfunction SlvBookingMessageModal(props) {\n var booking = props.booking;\n var listing = props.listing;\n var match = booking.modal;\n var match$1 = match.current;\n var match$2 = booking.modal;\n var match$3 = match$2.messageStatus;\n var tmp;\n var exit = 0;\n if (typeof match$3 === \"number\" || match$3.TAG === /* Editing */0) {\n exit = 1;\n } else {\n var match$4 = match$3._0;\n if (match$4.TAG === /* Ok */0) {\n var match$5 = match$4._0;\n tmp = React.createElement(SlvBookingMessageModalSuccessMessage.make, {\n booking: booking,\n conversationId: match$5.message.conversationId,\n listing: listing,\n user: match$5.user\n });\n } else {\n exit = 1;\n }\n }\n if (exit === 1) {\n tmp = React.createElement(SlvBookingMessageModalForm.make, {\n listing: listing,\n booking: booking,\n user: props.user,\n screen: props.screen\n });\n }\n return React.createElement(Modal.make, {\n shown: match$1 !== undefined ? match$1 === 1 : false,\n hide: booking.hideModal,\n testId: \"booking-message-modal\",\n children: tmp\n });\n}\n\nvar make = SlvBookingMessageModal;\n\nexports.make = make;\n/* Modal Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Opt = require(\"../../../../libs/Opt.bs.js\");\nvar $$Date = require(\"../../../../libs/Date.bs.js\");\nvar Form = require(\"../../../../styleguide/forms/Form/Form.bs.js\");\nvar Alert = require(\"../../../../styleguide/components/Alert/Alert.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Label = require(\"../../../../styleguide/forms/Label/Label.bs.js\");\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Tooltip = require(\"../../../../styleguide/components/Tooltip/Tooltip.bs.js\");\nvar Checkbox = require(\"../../../../styleguide/forms/Checkbox/Checkbox.bs.js\");\nvar ReactRef = require(\"../../../../bindings/ReactRef.bs.js\");\nvar TextArea = require(\"../../../../styleguide/forms/TextArea/TextArea.bs.js\");\nvar DateField = require(\"../../../../styleguide/forms/DateField/DateField.bs.js\");\nvar TextField = require(\"../../../../styleguide/forms/TextField/TextField.bs.js\");\nvar PhoneInput = require(\"../../../../styleguide/forms/PhoneInput/PhoneInput.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar GuestsField = require(\"../../../../styleguide/forms/GuestsField/GuestsField.bs.js\");\nvar BookingDates = require(\"../../../../libs/BookingDates.bs.js\");\nvar TooltipQuestionIcon = require(\"../../../../styleguide/icons/TooltipQuestionIcon.bs.js\");\nvar SlvBookingModalFormModuleScss = require(\"./SlvBookingModalForm.module.scss\").default;\nvar SlvBookingModalUnverifiedListingNotification = require(\"./SlvBookingModalUnverifiedListingNotification.bs.js\");\n\nvar css = SlvBookingModalFormModuleScss;\n\nfunction reducer(_state, action) {\n return action._0;\n}\n\nfunction userFieldDomId(field) {\n return \"listing--message-host-modal--register-user--\" + field + \"\";\n}\n\nfunction SlvBookingMessageModalForm(props) {\n var screen = props.screen;\n var user = props.user;\n var booking = props.booking;\n var listing = props.listing;\n var checkInField = React.useRef(null);\n var checkOutField = React.useRef(null);\n var initialState = React.useMemo((function () {\n var initialDate = function (date) {\n var match = booking.status;\n if (typeof match === \"number\") {\n return date;\n }\n if (match.TAG !== /* Ready */1) {\n return date;\n }\n var match$1 = match._0;\n if (match$1.TAG === /* Ok */0) {\n return date;\n }\n var match$2 = match$1._0;\n if (typeof match$2 !== \"object\") {\n return date;\n }\n var match$3 = match$2.VAL;\n if (typeof match$3 === \"object\" || !(match$3 === \"CheckOutBeforeCheckIn\" || match$3 === \"CheckInInThePast\" || match$3 === \"CheckInAndCheckOutSameDay\")) {\n return date;\n }\n \n };\n return {\n checkIn: initialDate(booking.input.checkIn),\n checkOut: initialDate(booking.input.checkOut),\n adults: booking.input.adults,\n children: booking.input.children,\n infants: booking.input.infants,\n pets: booking.input.pets\n };\n }), []);\n var match = React.useReducer(reducer, initialState);\n var dispatch = match[1];\n var state = match[0];\n var calNote = React.useMemo((function () {\n return Belt_Option.map(listing.minimumStay, (function (x) {\n return React.createElement(React.Fragment, undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.nights\",\n defaultMessage: \"{nights, plural, one {# night} other {# nights}}\",\n values: {\n nights: x\n }\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.minimum-stay\",\n defaultMessage: \" minimum stay\"\n }));\n }));\n }), [listing.minimumStay]);\n var isCheckInDay = React.useCallback((function (day) {\n return Belt_Option.mapWithDefault(booking.input.checkIn, false, (function (checkIn) {\n return $$Date.Naive.isSameDay(day, checkIn);\n }));\n }), [booking.input.checkIn]);\n var isCheckOutDay = React.useCallback((function (day) {\n return Belt_Option.mapWithDefault(booking.input.checkOut, false, (function (checkOut) {\n return $$Date.Naive.isSameDay(day, checkOut);\n }));\n }), [booking.input.checkOut]);\n var isDayInBetween = React.useCallback(function (day) {\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n if (match !== undefined && match$1 !== undefined && $$Date.Naive.isAfter(day, Caml_option.valFromOption(match))) {\n return $$Date.Naive.isBefore(day, Caml_option.valFromOption(match$1));\n } else {\n return false;\n }\n });\n var isCheckinDayDisabled = React.useCallback(function (day) {\n return BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate);\n });\n var isCheckoutDayDisabled = React.useCallback(function (day) {\n var x = state.checkIn;\n if (x === undefined) {\n return BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate);\n }\n var x$1 = Caml_option.valFromOption(x);\n if (BookingDates.isDayInPastRelativeToListingTimezone(day, listing.currentDate) || $$Date.Naive.isBefore(day, x$1)) {\n return true;\n } else {\n return $$Date.Naive.isSameDay(day, x$1);\n }\n });\n var updateCheckIn = React.useCallback((function (day) {\n Curry._1(dispatch, /* UpdateInput */{\n _0: {\n checkIn: Caml_option.some(day),\n checkOut: state.checkOut,\n adults: state.adults,\n children: state.children,\n infants: state.infants,\n pets: state.pets\n }\n });\n Curry._1(booking.notifyGtmOnMessageModalFormInteraction, undefined);\n }), [state]);\n var updateCheckOut = React.useCallback((function (day) {\n Curry._1(dispatch, /* UpdateInput */{\n _0: {\n checkIn: state.checkIn,\n checkOut: Caml_option.some(day),\n adults: state.adults,\n children: state.children,\n infants: state.infants,\n pets: state.pets\n }\n });\n Curry._1(booking.notifyGtmOnMessageModalFormInteraction, undefined);\n }), [state]);\n var clearDates = React.useCallback((function (param) {\n Curry._1(dispatch, /* UpdateInput */{\n _0: {\n checkIn: undefined,\n checkOut: undefined,\n adults: state.adults,\n children: state.children,\n infants: state.infants,\n pets: state.pets\n }\n });\n Curry._1(booking.notifyGtmOnMessageModalFormInteraction, undefined);\n }), [state]);\n var updateGuests = function (adults, infants, children, pets) {\n Curry._1(dispatch, /* UpdateInput */{\n _0: {\n checkIn: state.checkIn,\n checkOut: state.checkOut,\n adults: adults > 0 ? adults : 1,\n children: children >= 0 ? children : 0,\n infants: infants >= 0 ? infants : 0,\n pets: pets\n }\n });\n Curry._1(booking.notifyGtmOnMessageModalFormInteraction, undefined);\n };\n var match$1 = user.id;\n var tmp;\n if (match$1 !== undefined) {\n tmp = null;\n } else {\n var match$2 = booking.newUser.results.firstName;\n var tmp$1;\n tmp$1 = match$2 !== undefined && match$2.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$3 = booking.newUser.results.firstName;\n var tmp$2;\n tmp$2 = match$3 !== undefined && match$3.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$3._0)) : null;\n var match$4 = booking.newUser.results.lastName;\n var tmp$3;\n tmp$3 = match$4 !== undefined && match$4.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$5 = booking.newUser.results.lastName;\n var tmp$4;\n tmp$4 = match$5 !== undefined && match$5.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$5._0)) : null;\n var match$6 = booking.newUser.results.email;\n var tmp$5;\n tmp$5 = match$6 !== undefined && match$6.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$7 = booking.newUser.results.email;\n var tmp$6;\n tmp$6 = match$7 !== undefined && match$7.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$7._0)) : null;\n tmp = React.createElement(\"div\", undefined, React.createElement(\"div\", {\n className: css.introduceNote\n }, React.createElement(\"span\", {\n className: css.bold\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.introduce-note\",\n defaultMessage: \"Please introduce yourself\"\n }))), React.createElement(\"div\", {\n className: css.flexGrid\n }, React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--message-host-modal--register-user--firstName\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.first-name\",\n defaultMessage: \"First Name\"\n })\n }), React.createElement(TextField.make, {\n id: \"listing--message-host-modal--register-user--firstName\",\n size: /* MD */1,\n value: Opt.toString(booking.newUser.input.firstName),\n status: tmp$1,\n onChange: (function ($$event) {\n Curry._2(booking.updateNewUserFirstName, $$event.target.value, \"MessageModal\");\n })\n }), tmp$2), React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--message-host-modal--register-user--lastName\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.last-name\",\n defaultMessage: \"Last Name\"\n })\n }), React.createElement(TextField.make, {\n id: \"listing--message-host-modal--register-user--lastName\",\n size: /* MD */1,\n value: Opt.toString(booking.newUser.input.lastName),\n status: tmp$3,\n onChange: (function ($$event) {\n Curry._2(booking.updateNewUserLastName, $$event.target.value, \"MessageModal\");\n })\n }), tmp$4), React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--message-host-modal--register-user--email\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.email\",\n defaultMessage: \"Email\"\n })\n }), React.createElement(TextField.make, {\n id: \"listing--message-host-modal--register-user--email\",\n size: /* MD */1,\n value: Opt.toString(booking.newUser.input.email),\n status: tmp$5,\n onChange: (function ($$event) {\n Curry._2(booking.updateNewUserEmail, $$event.target.value, \"MessageModal\");\n })\n }), tmp$6), React.createElement(\"div\", {\n className: css.col\n }, React.createElement(Label.make, {\n forId: \"listing--message-host-modal--register-user--phone\",\n placement: /* Top */0,\n className: css.label,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.phone\",\n defaultMessage: \"Phone\"\n })\n }), React.createElement(PhoneInput.make, {\n id: \"listing--message-host-modal--register-user--phone\",\n size: /* MD */1,\n className: css.phoneInput,\n value: Opt.toString(booking.newUser.input.phone),\n onChange: (function (value) {\n Curry._2(booking.updateNewUserPhone, value, \"MessageModal\");\n })\n }))));\n }\n var match$8 = state.checkIn;\n var match$9 = state.checkOut;\n var match$10 = state.checkIn;\n var match$11 = state.checkOut;\n var match$12 = state.checkIn;\n var match$13 = state.checkOut;\n var match$14 = state.checkIn;\n var match$15 = state.checkOut;\n var match$16 = booking.message.result;\n var tmp$7;\n tmp$7 = match$16 !== undefined && match$16.TAG !== /* Ok */0 ? /* Failure */1 : undefined;\n var match$17 = booking.message.result;\n var tmp$8;\n tmp$8 = match$17 !== undefined && match$17.TAG !== /* Ok */0 ? React.createElement(\"div\", {\n className: css.failure\n }, React.createElement(\"span\", undefined, match$17._0)) : null;\n var match$18 = booking.modal.messageStatus;\n var tmp$9;\n tmp$9 = typeof match$18 === \"number\" || match$18.TAG === /* Editing */0 || match$18._0.TAG === /* Ok */0 ? null : React.createElement(Modal.Block.make, {\n children: React.createElement(Alert.make, {\n level: /* Danger */3,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.error\",\n defaultMessage: \"Oops, something went wrong\"\n })\n })\n });\n var match$19 = booking.modal.messageStatus;\n var match$20 = user.id;\n var match$21 = user.id;\n return React.createElement(Modal.Panels.make, {\n className: css.wrapper,\n children: null\n }, React.createElement(Modal.PanelsTitle.make, {\n className: css.title,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.subtitle\",\n defaultMessage: \"Get the Direct Price From the Host\"\n })\n }), React.createElement(Modal.MainPanel.make, {\n className: css.mainPanel,\n children: null\n }, Listing.Contextual.isVerified(listing) ? null : React.createElement(SlvBookingModalUnverifiedListingNotification.make, {}), React.createElement(Form.make, {\n onSubmit: (function (param) {\n Curry._1(booking.submitMessage, state);\n }),\n children: null\n }, tmp, React.createElement(Modal.Block.make, {\n children: React.createElement(\"div\", {\n className: Cx.cx([\n css.fieldsRow,\n css.detailsFieldsRow\n ])\n }, React.createElement(\"div\", {\n className: css.dateFields\n }, React.createElement(\"div\", {\n className: css.field\n }, React.createElement(DateField.make, {\n size: /* MD */1,\n listing: listing,\n neighbors: /* Right */1,\n calPlacement: /* Left */0,\n calModifiers: {\n hd: [\n /* Disabled */0,\n {\n NAME: \"Fn\",\n VAL: isCheckinDayDisabled\n }\n ],\n tl: {\n hd: [\n /* SecondarySelected */3,\n {\n NAME: \"Fn\",\n VAL: isCheckOutDay\n }\n ],\n tl: {\n hd: [\n /* TertiarySelected */4,\n {\n NAME: \"Fn\",\n VAL: isDayInBetween\n }\n ],\n tl: /* [] */0\n }\n }\n },\n calNote: calNote,\n date: state.checkIn,\n initialMonth: match$8 !== undefined ? /* Specified */({\n _0: Caml_option.valFromOption(match$8)\n }) : (\n match$9 !== undefined ? /* Specified */({\n _0: Caml_option.valFromOption(match$9)\n }) : /* Auto */0\n ),\n placeholder: \"Check in\",\n onDayClick: (function (day) {\n Curry._1(updateCheckIn, day);\n if (Belt_Option.isNone(state.checkOut)) {\n return ReactRef.focus(checkOutField);\n }\n \n }),\n onDatesClear: match$10 !== undefined || match$11 !== undefined ? clearDates : undefined,\n ref: checkInField\n })), React.createElement(\"div\", {\n className: css.field\n }, React.createElement(DateField.make, {\n size: /* MD */1,\n listing: listing,\n neighbors: /* Left */0,\n calPlacement: /* Right */2,\n calModifiers: {\n hd: [\n /* Disabled */0,\n {\n NAME: \"Fn\",\n VAL: isCheckoutDayDisabled\n }\n ],\n tl: {\n hd: [\n /* SecondarySelected */3,\n {\n NAME: \"Fn\",\n VAL: isCheckInDay\n }\n ],\n tl: {\n hd: [\n /* TertiarySelected */4,\n {\n NAME: \"Fn\",\n VAL: isDayInBetween\n }\n ],\n tl: /* [] */0\n }\n }\n },\n calNote: calNote,\n date: state.checkOut,\n initialMonth: match$12 !== undefined ? (\n match$13 !== undefined ? /* Specified */({\n _0: Caml_option.valFromOption(match$13)\n }) : /* Specified */({\n _0: Caml_option.valFromOption(match$12)\n })\n ) : (\n match$13 !== undefined ? /* Specified */({\n _0: Caml_option.valFromOption(match$13)\n }) : /* Auto */0\n ),\n placeholder: \"Check out\",\n onDayClick: (function (day) {\n Curry._1(updateCheckOut, day);\n if (Belt_Option.isNone(state.checkIn)) {\n return ReactRef.focus(checkInField);\n }\n \n }),\n onDatesClear: match$14 !== undefined || match$15 !== undefined ? clearDates : undefined,\n ref: checkOutField\n }))), React.createElement(\"div\", {\n className: css.guestsField\n }, React.createElement(GuestsField.make, {\n input: {\n adults: state.adults,\n children: state.children,\n infants: state.infants,\n pets: state.pets\n },\n houseRuleChildrenAllowed: listing.houseRuleChildrenAllowed,\n houseRuleInfantsAllowed: listing.houseRuleInfantsAllowed,\n houseRulePetsAllowed: listing.houseRulePetsAllowed,\n popoverPlacement: screen === \"XS\" || screen === \"SM\" || screen === \"MD\" ? /* Right */2 : /* Center */1,\n onEditDone: updateGuests,\n style: /* Compact */1\n })))\n }), React.createElement(Modal.Block.make, {\n children: null\n }, React.createElement(\"h3\", {\n className: css.secondaryTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.details\",\n defaultMessage: \"Tell the host details of your trip. Ask any question.\"\n })), React.createElement(TextArea.make, {\n name: \"messageHostModalMessage\",\n rows: 3,\n size: /* MD */1,\n status: tmp$7,\n value: Belt_Option.getWithDefault(booking.input.comment, \"\"),\n placeholder: \"Share some details of your trip with the host so they can help answer any questions and share some local knowledge.\",\n className: css.messageInput,\n onChange: (function ($$event) {\n Curry._2(booking.updateComment, $$event.target.value, \"MessageModal\");\n })\n }), tmp$8), tmp$9, React.createElement(\"div\", {\n className: css.fieldsRow\n }, React.createElement(\"div\", {\n className: css.checkboxWrapper\n }, React.createElement(Checkbox.make, {\n id: \"booking-form-flexibleDates\",\n size: /* MD */1,\n checked: booking.input.flexibleDates,\n className: css.flexibleDatesCheckbox,\n onChange: (function ($$event) {\n Curry._1(booking.updateFlexibleDates, $$event.target.checked);\n })\n }), React.createElement(Label.make, {\n forId: \"booking-form-flexibleDates\",\n placement: /* Right */1,\n className: css.checkboxLabel,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.flexible-dates-control\",\n defaultMessage: \"My dates are flexible\"\n })\n }), React.createElement(Tooltip.make, {\n content: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.flexible-dates-control-tooltip\",\n defaultMessage: \"Check to indicate to the host that you are flexible when it comes to check-in and check-out. Hosts sometimes will offer a better price if you are able to change dates.\"\n }),\n side: /* Right */3,\n children: React.createElement(TooltipQuestionIcon.make, {\n size: \"MD\",\n color: \"General\"\n })\n }))), React.createElement(Modal.Footer.make, {\n className: css.footer,\n children: null\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n submit: true,\n busy: typeof match$19 === \"number\" ? true : false,\n className: css.confirmButton,\n children: match$20 !== undefined ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.send-message-button\",\n defaultMessage: \"Send Message\"\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.agree-continue-button\",\n defaultMessage: \"Agree and continue\"\n })\n }), match$21 !== undefined ? null : React.createElement(\"div\", {\n className: css.footerNote\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.by-agreeing\",\n defaultMessage: \"By clicking 'Agree & continue' you are agreeing to our \"\n }), React.createElement(A.make, {\n href: Route.termsOfService,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.terms-conditions\",\n defaultMessage: \"Terms and Conditions\"\n })\n }), React.createElement(\"span\", undefined, \", \"), React.createElement(A.make, {\n href: Route.privacyPolicy,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.privacy-policy\",\n defaultMessage: \"Privacy Policy\"\n })\n }), React.createElement(\"span\", undefined, \".\"))))), React.createElement(Modal.SidePanel.make, {\n children: React.createElement(Modal.Block.make, {\n className: css.messageSidePanel,\n children: null\n }, React.createElement(\"div\", undefined, Listing.Contextual.isVerified(listing) ? null : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.send-inquiry-details\",\n defaultMessage: \"By sending an inquiry, you have the best chance of booking this rental direct with the host at a better price than is available elsewhere. We have not previously had direct contact with the host of this rental, but we will do our best to make contact within the next few hours. We will keep you informed of our progress.\"\n })), React.createElement(\"br\", undefined), React.createElement(\"br\", undefined), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.share-details\",\n defaultMessage: \"Share some details of your trip with the host so they can help answer any questions and share some local knowledge:\"\n }), React.createElement(\"ul\", undefined, React.createElement(\"li\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.details.date\",\n defaultMessage: \"What date would you like to arrive?\"\n })), React.createElement(\"li\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.details.number-of-people\",\n defaultMessage: \"How many people are coming?\"\n })), React.createElement(\"li\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.form.details.special-list\",\n defaultMessage: \"List anything special you would like to see or do while there.\"\n }))))\n }));\n}\n\nvar dateTemplate = \"MMM dd, yyyy\";\n\nvar make = SlvBookingMessageModalForm;\n\nexports.css = css;\nexports.reducer = reducer;\nexports.dateTemplate = dateTemplate;\nexports.userFieldDomId = userFieldDomId;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Modal = require(\"../../../../styleguide/components/Modal/Modal.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar BulbIcon = require(\"../../../../styleguide/icons/BulbIcon.bs.js\");\nvar WithTestId = require(\"../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar MessageSentIcon = require(\"../../../../styleguide/svgs/MessageSentIcon.bs.js\");\nvar SlvBookingModalSuccessMessageModuleScss = require(\"./SlvBookingModalSuccessMessage.module.scss\").default;\n\nvar css = SlvBookingModalSuccessMessageModuleScss;\n\nfunction SlvBookingMessageModalSuccessMessage(props) {\n var booking = props.booking;\n return React.createElement(\"div\", {\n className: css.wrapper\n }, React.createElement(Modal.MainPanel.make, {\n className: css.mainPanel,\n children: React.createElement(\"div\", {\n className: css.modalBody\n }, React.createElement(MessageSentIcon.make, {\n className: css.messageSentIcon\n }), React.createElement(\"div\", {\n className: css.message\n }, Listing.Contextual.isVerified(props.listing) ? React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.messageHostReply\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent\",\n defaultMessage: \"Your message has been sent!\"\n })), React.createElement(\"div\", {\n className: css.contactHostMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent.description.claimed.host-will-reply\",\n defaultMessage: \"The host will reply to you soon. You can \"\n }), React.createElement(A.make, {\n href: Route.conversation(props.conversationId),\n style: /* Accented */1,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent.description.claimed.chat-with-host\",\n defaultMessage: \"chat with the host\"\n })\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent.description.claimed.further-questions\",\n defaultMessage: \" if you have any further questions.\"\n })), React.createElement(\"br\", undefined)) : React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.messageHostReply\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent\",\n defaultMessage: \"Your message has been sent!\"\n })), React.createElement(\"div\", {\n className: css.contactHostMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent.description.unclaimed.start-trace\",\n defaultMessage: \"We will start to trace the host of this listing. Often it just takes an hour or two. Please allow for a worst case of 24 hours.{br}Watch out for an email from \",\n values: {\n br: React.createElement(\"br\", undefined)\n }\n }), React.createElement(A.make, {\n href: \"mailto:inquiries@hichee.com\",\n style: /* Accented */1,\n children: React.createElement(\"span\", undefined, \"inquiries@hichee.com \")\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.message-sent.description.unclaimed.with-news\",\n defaultMessage: \" with news of our progress. If you add our inquiries email address to your contact list, that will make sure it doesn't go to your Spam folder! \"\n })), React.createElement(\"br\", undefined)), typeof props.user === \"object\" ? React.createElement(\"div\", {\n className: css.newUserMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.new-user-message\",\n defaultMessage: \"We've created you an account so you can check the status of your inquiry or chat with the host if you have any further questions.\"\n })) : null), React.createElement(\"div\", undefined, React.createElement(WithTestId.make, {\n id: \"close-modal-button\",\n children: React.createElement(\"div\", {\n className: css.closeWindowButton,\n onClick: (function (param) {\n Curry._1(booking.hideModal, undefined);\n })\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.close-window\",\n defaultMessage: \"Close This Window\"\n }))\n })))\n }), React.createElement(Modal.SidePanel.make, {\n className: css.sidePanel,\n children: null\n }, React.createElement(BulbIcon.make, {\n size: \"XXXL\",\n color: \"DarkTeal\",\n className: css.bulbIcon\n }), React.createElement(\"div\", {\n className: css.sidePanelMessage\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.spam-message\",\n defaultMessage: \"If HiChee emails are landing in your spam folder, please mark them {quot}Not Spam.{quot}\",\n values: {\n quot: Html.quot\n }\n }))));\n}\n\nvar make = SlvBookingMessageModalSuccessMessage;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar UnverifiedListingIcon = require(\"../../../../styleguide/svgs/UnverifiedListingIcon.bs.js\");\nvar SlvBookingModalUnverifiedListingNotificationModuleScss = require(\"./SlvBookingModalUnverifiedListingNotification.module.scss\").default;\n\nvar css = SlvBookingModalUnverifiedListingNotificationModuleScss;\n\nfunction SlvBookingModalUnverifiedListingNotification(props) {\n return React.createElement(\"div\", {\n className: css.wrapper\n }, React.createElement(\"div\", {\n className: css.iconWrapper\n }, React.createElement(UnverifiedListingIcon.make, {\n className: css.unverifiedListingIcon\n })), React.createElement(\"div\", undefined, React.createElement(\"h5\", {\n className: css.messageTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.unclaimed-listing-notification.title\",\n defaultMessage: \"The listing is not verified by the owner yet\"\n })), React.createElement(\"p\", {\n className: css.messageDescription\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-modal.unclaimed-listing-notification.subtitle\",\n defaultMessage: \"We'll do our best to contact the host within the next few hours and deliver your request. We'll keep you informed of our progress and you can always book through another website if we don't succeed.\"\n }))));\n}\n\nvar make = SlvBookingModalUnverifiedListingNotification;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar SlvBookingSendInquiryButtonModuleScss = require(\"./SlvBookingSendInquiryButton.module.scss\").default;\n\nvar css = SlvBookingSendInquiryButtonModuleScss;\n\nfunction SlvBookingSendInquiryButton(props) {\n var managerWebsiteUrl = props.managerWebsiteUrl;\n var className = props.className;\n var style = props.style;\n var size = props.size;\n if (managerWebsiteUrl !== undefined) {\n return React.createElement(Button.AsNativeLink.make, {\n href: Route.hostBookDirect(managerWebsiteUrl),\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n size: size,\n color: /* Primary */0,\n style: style,\n className: className,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.book-direct\",\n defaultMessage: \"Book Direct\"\n })\n });\n } else {\n return React.createElement(Button.make, {\n size: size,\n color: /* Primary */0,\n submit: props.submit,\n style: style,\n busy: props.busy,\n className: className,\n testId: props.testId,\n onClick: props.onClick,\n children: React.createElement(\"div\", {\n className: css.primaryButton\n }, React.createElement(\"span\", undefined, props.buttonText))\n });\n }\n}\n\nvar make = SlvBookingSendInquiryButton;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar $$RegExp = require(\"../../../../libs/RegExp.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar SlvHtmlText = require(\"../../components/SlvHtmlText/SlvHtmlText.bs.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar SlvDescriptionModuleScss = require(\"./SlvDescription.module.scss\").default;\n\nvar css = SlvDescriptionModuleScss;\n\nfunction SlvDescription$Block(props) {\n var description = props.description;\n var match = React.useState(function () {\n return false;\n });\n var setShowDescription = match[1];\n return React.createElement(\"div\", {\n className: css.descriptionContainer\n }, match[0] ? React.createElement(React.Fragment, undefined, React.createElement(SlvHtmlText.make, {\n htmlText: description,\n className: css.description\n }), React.createElement(TextControl.make, {\n inline: true,\n className: \"lg:tw-text-[16px]\",\n style: /* Accented */1,\n onClick: (function (param) {\n Curry._1(setShowDescription, (function (param) {\n return false;\n }));\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.truncated-description.view-less-button\",\n defaultMessage: \"View less\"\n })\n })) : React.createElement(React.Fragment, undefined, React.createElement(SlvHtmlText.make, {\n htmlText: description.replace($$RegExp.paragraphEnd(undefined), \" \"),\n className: css.collapsedDescription\n }), React.createElement(TextControl.make, {\n inline: true,\n className: \"lg:tw-text-[16px]\",\n style: /* Accented */1,\n onClick: (function (param) {\n Curry._1(setShowDescription, (function (param) {\n return true;\n }));\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.truncated-description.view-full-button\",\n defaultMessage: \"View full description\"\n })\n })));\n}\n\nvar Block = {\n make: SlvDescription$Block\n};\n\nfunction SlvDescription(props) {\n var description = props.listing.description;\n if (description !== undefined) {\n return React.createElement(SlvDescription$Block, {\n description: description\n });\n } else {\n return null;\n }\n}\n\nvar make = SlvDescription;\n\nexports.css = css;\nexports.Block = Block;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Hr = require(\"../../../../styleguide/components/Hr/Hr.bs.js\");\nvar $$Text = require(\"../../../../styleguide/components/Text/Text.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar SlvTable = require(\"../../components/SlvTable/SlvTable.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar BedroomIcon = require(\"../../../../styleguide/icons/BedroomIcon.bs.js\");\nvar BathroomIcon = require(\"../../../../styleguide/icons/BathroomIcon.bs.js\");\nvar RoomTypeIcon = require(\"../../../../styleguide/icons/RoomTypeIcon.bs.js\");\nvar SlvDescription = require(\"../Description/SlvDescription.bs.js\");\nvar SlvDetailsModuleScss = require(\"./SlvDetails.module.scss\").default;\nvar GuestsWithClothesHangerIcon = require(\"../../../../styleguide/icons/GuestsWithClothesHangerIcon.bs.js\");\n\nvar css = SlvDetailsModuleScss;\n\nfunction SlvDetailsAndDescription(props) {\n var listing = props.listing;\n var x = listing.maxGuests;\n var x$1 = listing.bedrooms;\n var x$2 = listing.bathrooms;\n var rentalPermitLicense = listing.rentalPermitLicense;\n return React.createElement(SlvBlock.make, {\n id: \"DetailsAndDescription\",\n children: null\n }, React.createElement(\"div\", {\n className: css.groups\n }, React.createElement(SlvTable.Col.make, {\n children: null\n }, React.createElement(\"div\", {\n className: css.iconwithlabel\n }, React.createElement(RoomTypeIcon.make, {\n size: \"MD\",\n color: \"General\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.details.room-type.label\",\n defaultMessage: \"Room type\"\n })), React.createElement(\"span\", undefined, Listing.RoomType.label(listing.roomType))), React.createElement(\"div\", {\n className: css.divider\n }), React.createElement(SlvTable.Col.make, {\n children: null\n }, React.createElement(\"div\", {\n className: css.iconwithlabel\n }, React.createElement(GuestsWithClothesHangerIcon.make, {\n size: \"MD\",\n color: \"General\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.details.guests.label\",\n defaultMessage: \"Guests\"\n })), x !== undefined ? React.createElement(\"span\", undefined, String(x)) : React.createElement($$Text.Ellipsis.make, {\n faded: true\n })), React.createElement(\"div\", {\n className: css.divider\n }), React.createElement(SlvTable.Col.make, {\n children: null\n }, React.createElement(\"div\", {\n className: css.iconwithlabel\n }, React.createElement(BedroomIcon.make, {\n size: \"MD\",\n color: \"General\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.details.bedrooms.label\",\n defaultMessage: \"Bedrooms\"\n })), x$1 !== undefined ? React.createElement(\"span\", undefined, String(x$1)) : React.createElement($$Text.Ellipsis.make, {\n faded: true\n })), React.createElement(\"div\", {\n className: css.divider\n }), React.createElement(SlvTable.Col.make, {\n children: null\n }, React.createElement(\"div\", {\n className: css.iconwithlabel\n }, React.createElement(BathroomIcon.make, {\n size: \"MD\",\n color: \"General\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.details.bathrooms.label\",\n defaultMessage: \"Bathrooms\"\n })), x$2 !== undefined ? React.createElement(\"span\", undefined, String(x$2)) : React.createElement($$Text.Ellipsis.make, {\n faded: true\n }))), rentalPermitLicense !== undefined ? React.createElement(React.Fragment, undefined, React.createElement(Hr.make, {\n color: /* Gray */0\n }), React.createElement(\"div\", {\n className: css.groups\n }, React.createElement(SlvTable.Row.make, {\n children: null\n }, React.createElement(SlvTable.Cell.make, {\n children: React.createElement(\"strong\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.details.rental-permit-license.label\",\n defaultMessage: \"Permit number\"\n }))\n }), React.createElement(SlvTable.Cell.make, {\n children: React.createElement(\"strong\", undefined, React.createElement(\"span\", undefined, rentalPermitLicense))\n })), React.createElement(\"div\", {\n className: css.group\n }))) : null, React.createElement(SlvDescription.make, {\n listing: listing\n }));\n}\n\nvar make = SlvDetailsAndDescription;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar FaqVector = require(\"../../../../styleguide/svgs/FaqVector.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar RailsContext = require(\"../../../../models/RailsContext.bs.js\");\nvar SlvFaqModuleScss = require(\"./SlvFaq.module.scss\").default;\n\nvar css = SlvFaqModuleScss;\n\nfunction SlvFaq(props) {\n var helpEmail = React.useMemo((function () {\n return RailsContext.getHelpEmail(undefined);\n }), []);\n return React.createElement(\"div\", {\n className: css.faqContainer\n }, React.createElement(\"div\", {\n className: css.vector\n }, React.createElement(FaqVector.make, {})), React.createElement(\"div\", {\n className: css.textContent\n }, React.createElement(\"h2\", {\n className: css.title\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.faq.title\",\n defaultMessage: \"Got questions?\"\n })), React.createElement(\"p\", {\n className: css.contentPara\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.faq.content\",\n defaultMessage: \"We are eager to hear from you whether you need to contact our support team, speak with our founders, or simply want to say hello.\"\n })), React.createElement(\"div\", {\n className: css.links\n }, React.createElement(A.make, {\n href: Route.faq,\n style: /* Action */3,\n className: css.link,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.faq.visit-link\",\n defaultMessage: \"Visit our FAQ\"\n })\n }), helpEmail !== undefined ? React.createElement(A.make, {\n href: \"mailto:\" + helpEmail + \"\",\n style: /* Action */3,\n className: css.link,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.faq.email-link\",\n defaultMessage: \"Email us\"\n })\n }) : null)));\n}\n\nvar make = SlvFaq;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Bool = require(\"../../../../libs/Bool.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Caml_obj = require(\"rescript/lib/js/caml_obj.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar AskAiOptions = require(\"../../../../styleguide/components/AskAiOptions/AskAiOptions.bs.js\");\nvar SearchParams = require(\"../../../../libs/SearchParams.bs.js\");\nvar ScreenSizeContext = require(\"../../../../contexts/ScreenSizeContext.bs.js\");\nvar SlvListingLocations = require(\"../ListingLocations/SlvListingLocations.bs.js\");\nvar SlvNavbarSaveListing = require(\"../Navbar/SlvNavbarSaveListing.bs.js\");\nvar SlvNavbarShareListing = require(\"../Navbar/SlvNavbarShareListing.bs.js\");\nvar SlvHeaderModuleScss = require(\"./SlvHeader.module.scss\").default;\nvar RatingWithReviewsCounter = require(\"../../../../styleguide/components/Rating/RatingWithReviewsCounter.bs.js\");\nvar SlvNavbarFeedbackListing = require(\"../Navbar/SlvNavbarFeedbackListing.bs.js\");\n\nvar css = SlvHeaderModuleScss;\n\nfunction SlvHeader(props) {\n var showListingFeedbackReportModal = props.showListingFeedbackReportModal;\n var user = props.user;\n var listing = props.listing;\n React.useEffect((function () {\n var reportListingToken = Belt_Option.flatMap(SearchParams.getToken(\"report_listing\", window.location.search), Bool.fromString);\n if (Caml_obj.equal(reportListingToken, true)) {\n Curry._1(showListingFeedbackReportModal, undefined);\n }\n \n }), []);\n var screen = React.useContext(ScreenSizeContext.Context.x);\n var providerRating = listing.providersRatings.metaRating;\n var onRatingClick = providerRating.count > 0 ? (function (param) {\n SlvBlock.scrollPageTo(\"Reviews\", screen);\n }) : undefined;\n var match = user.id;\n return React.createElement(\"div\", {\n className: css.headerContainer\n }, React.createElement(\"h2\", {\n className: css.title\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.header.title\",\n defaultMessage: \"Price Comparison Results\"\n })), React.createElement(\"div\", {\n className: css.titleContainer\n }, React.createElement(SlvListingLocations.make, {\n listing: listing,\n booking: props.booking\n }), React.createElement(RatingWithReviewsCounter.make, {\n providerRating: providerRating,\n className: css.providerRating,\n onClick: onRatingClick\n }), React.createElement(\"div\", {\n className: css.headerAside\n }, match !== undefined ? React.createElement(AskAiOptions.make, {\n context: {\n TAG: /* Listing */0,\n _0: listing.id\n }\n }) : null, React.createElement(SlvNavbarFeedbackListing.make, {\n showListingFeedbackReportModal: showListingFeedbackReportModal,\n screen: screen\n }), React.createElement(SlvNavbarShareListing.make, {\n showShareListingModal: props.showShareListingModal,\n screen: screen\n }), React.createElement(SlvNavbarSaveListing.make, {\n listing: listing,\n user: user,\n showSaveListingToListModal: props.showSaveListingToListModal,\n screen: screen,\n sampleMode: props.sampleMode\n }))));\n}\n\nvar make = SlvHeader;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Toast = require(\"../../../../styleguide/components/Toast/Toast.bs.js\");\nvar React = require(\"react\");\nvar Control = require(\"../../../../styleguide/components/Control/Control.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar SlvPhoto = require(\"../Photos/SlvPhoto.bs.js\");\nvar ArrowLeft = require(\"../../../../styleguide/icons/ArrowLeft.bs.js\");\nvar HostBadge = require(\"../../../../styleguide/components/HostBadge/HostBadge.bs.js\");\nvar ArrowRight = require(\"../../../../styleguide/icons/ArrowRight.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ImageUtils = require(\"../../../../libs/ImageUtils.bs.js\");\nvar SlvGallery = require(\"../Photos/SlvGallery.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar MagicSearch = require(\"../../../../styleguide/components/MagicSearch/MagicSearch.bs.js\");\nvar SlvNoPhotos = require(\"./SlvNoPhotos.bs.js\");\nvar AskAiOptions = require(\"../../../../styleguide/components/AskAiOptions/AskAiOptions.bs.js\");\nvar DotIndicator = require(\"../../../../styleguide/components/DotIndicator/DotIndicator.bs.js\");\nvar ListingPhoto = require(\"../../../../models/ListingPhoto.bs.js\");\nvar MagicStickIcon = require(\"../../../../styleguide/icons/MagicStickIcon.bs.js\");\nvar SlvImageContext = require(\"../SlvImageContext.bs.js\");\nvar AwsImageHandlerV5 = require(\"../../../../libs/AwsImageHandlerV5.bs.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\nvar SlvNavbarSaveListing = require(\"../Navbar/SlvNavbarSaveListing.bs.js\");\nvar SlvHeroModuleScss = require(\"./SlvHero.module.scss\").default;\nvar SlvNavbarShareListing = require(\"../Navbar/SlvNavbarShareListing.bs.js\");\nvar SlvNavbarFeedbackListing = require(\"../Navbar/SlvNavbarFeedbackListing.bs.js\");\nvar CheckAwsImageHandlerV5Status = require(\"../../../../api/requests/CheckAwsImageHandlerV5Status.bs.js\");\n\nvar css = SlvHeroModuleScss;\n\nfunction SlvHero(props) {\n var resyncListing = props.resyncListing;\n var screen = props.screen;\n var user = props.user;\n var listing = props.listing;\n var ctx = React.useContext(SlvImageContext.Context.x);\n var currentPhoto = ctx.photo;\n var match = screen === \"MD\" ? [\n 497,\n 572\n ] : (\n screen === \"XS\" || screen === \"SM\" ? [\n 767,\n 330\n ] : [\n 778,\n 599\n ]\n );\n var fetchHeight = match[1];\n var fetchWidth = match[0];\n var urlWithTransformations = function (url) {\n return AwsImageHandlerV5.buildImageUrl(Curry._1(AwsImageHandlerV5.ImageUrl.fromString, url), fetchWidth, fetchHeight, undefined, /* WebP */2, undefined);\n };\n var preloadPhotos = function (param) {\n var match = ctx.state.photosLoadingStep;\n if (match !== undefined && match !== 1) {\n Belt_Array.forEachWithIndex(Belt_Option.getWithDefault(listing.photos, []), (function (i, photo) {\n if (i === 0) {\n return ;\n } else {\n return ImageUtils.preload(urlWithTransformations(Curry._1(AwsImageHandlerV5.ImageUrl.toString, photo)));\n }\n }));\n return Curry._1(ctx.startLoadingPhotos, undefined);\n }\n \n };\n var photosCount = ctx.state.photos.length;\n var handleDotClick = function ($$event, index) {\n $$event.preventDefault();\n $$event.stopPropagation();\n Curry._1(ctx.showPhoto, index);\n preloadPhotos(undefined);\n };\n var match$1 = React.useState(function () {\n return false;\n });\n var setBrokenPhotoDetected = match$1[1];\n var brokenPhotoDetected = match$1[0];\n React.useEffect((function () {\n if (brokenPhotoDetected) {\n Toast.info(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.resync.syncing\",\n defaultMessage: \"This listing is outdated. We're updating it.\"\n }), undefined, \"top-center\", undefined);\n Curry._2(resyncListing, (function (param) {\n Curry._1(setBrokenPhotoDetected, (function (param) {\n return false;\n }));\n Curry._1(ctx.reloadPhotos, undefined);\n Toast.success(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.resync.success\",\n defaultMessage: \"Update success. This listing is now up-to-date.\"\n }), undefined, \"top-center\", undefined);\n }), (function (param) {\n Toast.error(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.resync.error\",\n defaultMessage: \"Update error. This listing is still outdated.\"\n }), undefined, \"top-center\", undefined);\n }));\n }\n \n }), [brokenPhotoDetected]);\n React.useEffect((function () {\n if (ctx.state.photos.length === 0) {\n Curry._1(setBrokenPhotoDetected, (function (param) {\n return true;\n }));\n }\n \n }), [ctx.state.photos]);\n var detectBrokenPhoto = function (photo) {\n if (!brokenPhotoDetected) {\n return $$Promise.wait(CheckAwsImageHandlerV5Status.exec(photo.url), (function (status) {\n if (status) {\n return Curry._1(setBrokenPhotoDetected, (function (param) {\n return true;\n }));\n }\n \n }));\n }\n \n };\n var type_ = Listing.Contextual.getHostType(listing);\n var tmp;\n if (screen === \"XS\" || screen === \"SM\") {\n var match$2 = user.id;\n tmp = React.createElement(\"div\", {\n className: css.actionsWrapper\n }, match$2 !== undefined ? React.createElement(AskAiOptions.make, {\n context: {\n TAG: /* Listing */0,\n _0: listing.id\n }\n }) : null, React.createElement(SlvNavbarFeedbackListing.make, {\n showListingFeedbackReportModal: props.showListingFeedbackReportModal,\n screen: screen\n }), React.createElement(SlvNavbarShareListing.make, {\n showShareListingModal: props.showShareListingModal,\n screen: screen\n }), React.createElement(SlvNavbarSaveListing.make, {\n listing: listing,\n user: user,\n showSaveListingToListModal: props.showSaveListingToListModal,\n screen: screen,\n sampleMode: props.sampleMode\n }));\n } else {\n tmp = null;\n }\n var photos = ctx.state.photos;\n return React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.heroIconsWrapper\n }, type_ !== undefined ? React.createElement(HostBadge.make, {\n type_: type_,\n className: \"tw-mr-auto\",\n testId: \"slv-host-verified-badge\"\n }) : null, tmp), React.createElement(\"div\", {\n className: css.outerContainer\n }, photos.length !== 0 ? React.createElement(React.Fragment, undefined, React.createElement(SlvGallery.make, {\n id: \"slv--hero--gallery\",\n listingId: listing.id,\n className: css.imageContainer,\n isManagedByCurrentUser: listing.userContext.isManagedByCurrentUser,\n children: Belt_Array.mapWithIndex(photos, (function (idx, photo) {\n var isFirstPhoto = idx === 0;\n var match = ctx.state.index;\n return JsxPPXReactSupport.createElementWithKey(String(Curry._1(ListingPhoto.Index.toInt, photo.photoIndex)), SlvPhoto.make, {\n photo: photo.url,\n width: fetchWidth,\n height: fetchHeight,\n hidden: idx !== ctx.state.index,\n className: css.slvPhoto,\n imageClassName: css.image,\n fetchPriority: isFirstPhoto ? /* High */0 : /* Low */1,\n onLoad: (function (param) {\n Curry._1(ctx.loadingPhotos, undefined);\n }),\n onError: (function (param) {\n detectBrokenPhoto(ctx.state.photos[idx]);\n if (idx === ctx.state.index) {\n if (idx < (photosCount - 1 | 0)) {\n Curry._1(ctx.showPhoto, idx + 1 | 0);\n } else {\n Curry._1(ctx.showPhoto, 0);\n }\n }\n Curry._1(ctx.removePhoto, idx);\n }),\n withLoader: idx !== 0 ? idx === match : false,\n loading: isFirstPhoto ? /* Eager */1 : /* Lazy */0\n });\n }))\n })) : React.createElement(\"div\", {\n className: css[\"container-no-photos\"]\n }, React.createElement(SlvNoPhotos.make, {})), currentPhoto !== undefined ? React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.magicSearchContainer\n }, React.createElement(\"div\", {\n className: \"tw-flex tw-items-center tw-gap-12\"\n }, React.createElement(MagicSearch.Button.make, {\n children: null,\n listing: listing,\n user: user,\n amplitudeEventSpecifier: \"Featured Images\",\n searchType: /* ByImage */{\n _0: currentPhoto\n },\n canDoMagicSearch: props.canDoMagicSearch,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal\n }, React.createElement(MagicStickIcon.make, {\n size: \"SM\",\n color: \"Primary\"\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.magic-search-by-image\",\n defaultMessage: \"Magic Search with this image\"\n })), React.createElement(MagicSearch.Tooltip.make, {\n bestDeal: props.bestDeal\n }))), React.createElement(DotIndicator.make, {\n currentPhotoIndex: ctx.state.index,\n dotGap: 14,\n numberOfPhotos: photosCount,\n onDotClick: handleDotClick\n }), React.createElement(Control.make, {\n testId: \"slv-hero-image-prev\",\n className: css.prev,\n onClick: (function (param) {\n if (currentPhoto !== undefined) {\n if (ctx.state.index > 0) {\n Curry._1(ctx.showPhoto, ctx.state.index - 1 | 0);\n } else {\n Curry._1(ctx.showPhoto, photosCount - 1 | 0);\n }\n }\n preloadPhotos(undefined);\n }),\n children: React.createElement(\"div\", {\n className: css.arrowContainer\n }, React.createElement(ArrowLeft.make, {\n title: \"Previous vacation rental photo\",\n size: \"MD\",\n color: \"General\"\n }))\n }), React.createElement(Control.make, {\n testId: \"slv-hero-image-next\",\n className: css.next,\n onClick: (function (param) {\n if (currentPhoto !== undefined) {\n if (ctx.state.index < (photosCount - 1 | 0)) {\n Curry._1(ctx.showPhoto, ctx.state.index + 1 | 0);\n } else {\n Curry._1(ctx.showPhoto, 0);\n }\n }\n preloadPhotos(undefined);\n }),\n children: React.createElement(\"div\", {\n className: css.arrowContainer\n }, React.createElement(ArrowRight.make, {\n title: \"Next vacation rental photo\",\n size: \"MD\",\n color: \"General\"\n }))\n })) : null));\n}\n\nvar make = SlvHero;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar NoPhotoIcon = require(\"../../../../styleguide/icons/NoPhotoIcon.bs.js\");\nvar SlvNoPhotosModuleScss = require(\"./SlvNoPhotos.module.scss\").default;\n\nvar css = SlvNoPhotosModuleScss;\n\nfunction SlvNoPhotos(props) {\n return React.createElement(\"div\", {\n className: css.wrapper\n }, React.createElement(\"div\", {\n className: css.content\n }, React.createElement(NoPhotoIcon.make, {\n size: \"XXXL\",\n color: \"LightGray\"\n }), React.createElement(\"div\", {\n className: css.label\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.hero.no-photos-yet\",\n defaultMessage: \"Can't fetch photos :(\"\n }))));\n}\n\nvar make = SlvNoPhotos;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Host = require(\"../../../../models/Host.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Avatar = require(\"../../../../styleguide/components/Avatar/Avatar.bs.js\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Caml_obj = require(\"rescript/lib/js/caml_obj.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Js_option = require(\"rescript/lib/js/js_option.js\");\nvar ReactIntl = require(\"react-intl\");\nvar PhoneNumber = require(\"../../../../styleguide/components/PhoneNumber/PhoneNumber.bs.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar SearchParams = require(\"../../../../libs/SearchParams.bs.js\");\nvar VerifiedIcon = require(\"../../../../styleguide/icons/VerifiedIcon.bs.js\");\nvar SlvClickableItem = require(\"../../components/SlvClickableItem/SlvClickableItem.bs.js\");\nvar PropertyManagerIcon = require(\"../../../../styleguide/icons/PropertyManagerIcon.bs.js\");\nvar SlvHostKnownModuleScss = require(\"./SlvHostKnown.module.scss\").default;\n\nvar css = SlvHostKnownModuleScss;\n\nfunction getAvatarSize(screen) {\n if (screen === \"XS\" || screen === \"SM\" || screen === \"MD\") {\n return 70;\n } else {\n return 100;\n }\n}\n\nfunction SlvHostKnown$HostPreview(props) {\n var owner = props.owner;\n if (typeof owner === \"number\") {\n return null;\n }\n var details = Host.getAboutMeDetails(owner);\n return React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.nameAndTotalListingsContainer\n }, React.createElement(A.make, {\n href: Host.getUrl(owner),\n className: css.name,\n children: React.createElement(\"span\", undefined, Host.getFullName(owner))\n }), React.createElement(A.make, {\n href: Route.hostMapView(Host.getId(owner)),\n className: css.listingsCount,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.listings\",\n defaultMessage: \"{listings, plural, one {# listing} other {# listings}}\",\n values: {\n listings: Js_option.getWithDefault(0, Host.getActiveListingsCount(owner))\n }\n })\n })), details !== undefined ? React.createElement(\"div\", {\n className: css.aboutMe\n }, details) : null);\n}\n\nvar HostPreview = {\n make: SlvHostKnown$HostPreview\n};\n\nfunction SlvHostKnown$ContactHostText(props) {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.call-note.for-direct\",\n defaultMessage: \" for direct bookings or other property questions.\"\n });\n}\n\nvar ContactHostText = {\n make: SlvHostKnown$ContactHostText\n};\n\nfunction SlvHostKnown$CallHost(props) {\n return React.createElement(\"div\", {\n className: css.contactTextWrapper\n }, React.createElement(\"div\", {\n className: css.contactWidgetPhoneContainer\n }, React.createElement(SlvClickableItem.make, {\n action: \"ShowPhone\",\n listingId: props.listingId,\n children: React.createElement(\"div\", {\n className: css.phone\n }, React.createElement(\"span\", {\n className: css.orText\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.call-note.or-call\",\n defaultMessage: \" or call\"\n })), React.createElement(PhoneNumber.make, {\n value: props.phone,\n className: css.phoneNumber\n }))\n })));\n}\n\nvar CallHost = {\n make: SlvHostKnown$CallHost\n};\n\nfunction SlvHostKnown$LogInToCallHost(props) {\n var logInUser = props.logInUser;\n return React.createElement(\"div\", {\n className: css.contactTextWrapper\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.call-note.or-call\",\n defaultMessage: \" or call\"\n }), React.createElement(\"span\", undefined, \" (\"), React.createElement(TextControl.make, {\n testId: \"contact-widget-login\",\n inline: true,\n className: css.showContactPhoneLink,\n style: /* Primary */2,\n onClick: (function (param) {\n Curry._1(logInUser, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.call-note.login\",\n defaultMessage: \"login\"\n })\n }), React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.call-note.to-see-phone\",\n defaultMessage: \" to see the contact phone)\"\n }));\n}\n\nvar LogInToCallHost = {\n make: SlvHostKnown$LogInToCallHost\n};\n\nfunction SlvHostKnown$HostInfo(props) {\n var logInUser = props.logInUser;\n var userId = props.userId;\n var showMessageModal = props.showMessageModal;\n var listing = props.listing;\n var owner = listing.owner;\n var ownerPhoneNumber;\n ownerPhoneNumber = typeof owner === \"number\" || owner.TAG === /* PublicOwner */0 ? undefined : owner._0.phone;\n var hostPhoneNumber = React.useMemo((function () {\n var match = listing.contactPhone;\n if (match !== undefined) {\n return match.phoneNumber;\n } else if (ownerPhoneNumber !== undefined) {\n return ownerPhoneNumber;\n } else {\n return ;\n }\n }), [listing]);\n React.useEffect((function () {\n var messageHostToken = SearchParams.getToken(\"message_host\", window.location.search);\n if (Caml_obj.equal(messageHostToken, \"true\")) {\n Curry._1(showMessageModal, undefined);\n }\n \n }), []);\n var tmp;\n if (listing.userContext.isManagedByCurrentUser) {\n var match = listing.owner;\n tmp = typeof match === \"number\" || match.TAG === /* PublicOwner */0 ? null : React.createElement(\"div\", undefined, React.createElement(Button.AsNativeLink.make, {\n href: Route.editAccount,\n size: /* MD */1,\n color: /* Secondary */1,\n className: css.button,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.edit-account\",\n defaultMessage: \"Edit Account\"\n })\n }));\n } else {\n tmp = null;\n }\n var match$1 = listing.owner;\n var tmp$1;\n var exit = 0;\n var ownerId;\n var hasPersonalWebsiteUrl;\n if (typeof match$1 === \"number\") {\n tmp$1 = null;\n } else if (match$1.TAG === /* PublicOwner */0) {\n var match$2 = match$1._0;\n ownerId = match$2.id;\n hasPersonalWebsiteUrl = match$2.hasPersonalWebsiteUrl;\n exit = 1;\n } else {\n var match$3 = match$1._0;\n ownerId = match$3.id;\n hasPersonalWebsiteUrl = match$3.hasPersonalWebsiteUrl;\n exit = 1;\n }\n if (exit === 1) {\n tmp$1 = hasPersonalWebsiteUrl ? (\n userId !== undefined ? React.createElement(Button.AsNativeLink.make, {\n href: Route.hostPersonalWebsiteUrl(ownerId),\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n size: /* MD */1,\n color: /* Secondary */1,\n style: /* Expanded */2,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host-known.visit-host-site\",\n defaultMessage: \"Host Website\"\n })\n }) : React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n style: /* Expanded */2,\n onClick: (function (param) {\n Curry._1(logInUser, Route.hostPersonalWebsiteUrl(ownerId));\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host-known.visit-host-site\",\n defaultMessage: \"Host Website\"\n })\n })\n ) : null;\n }\n var match$4 = listing.hasContactPhone;\n return React.createElement(React.Fragment, undefined, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.about\",\n defaultMessage: \"About the host\"\n })\n }), React.createElement(\"div\", {\n className: css.user\n }, React.createElement(\"div\", {\n className: css.photo\n }, React.createElement(\"div\", {\n className: css.avatarContainer\n }, React.createElement(Avatar.User.make, {\n user: listing.owner,\n size: props.avatarSize,\n className: css.userAvatar,\n loading: /* Lazy */0\n }), React.createElement(VerifiedIcon.make, {\n size: \"XXL\",\n color: \"Teal\",\n className: css.verifiedIcon\n })), tmp), React.createElement(\"div\", {\n className: css.details\n }, React.createElement(SlvHostKnown$HostPreview, {\n owner: listing.owner\n }), React.createElement(\"div\", {\n className: css.contactWidget\n }, React.createElement(\"div\", {\n className: css.contactWidgetButtons\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Expanded */2,\n onClick: (function (param) {\n Curry._1(showMessageModal, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.message-button\",\n defaultMessage: \"Send message\"\n })\n }), tmp$1), React.createElement(\"div\", {\n className: css.contactTextWrapper\n }, match$4 ? (\n userId !== undefined ? (\n hostPhoneNumber !== undefined ? React.createElement(SlvHostKnown$CallHost, {\n listingId: listing.id,\n phone: hostPhoneNumber\n }) : React.createElement(SlvHostKnown$ContactHostText, {})\n ) : React.createElement(SlvHostKnown$LogInToCallHost, {\n logInUser: logInUser\n })\n ) : React.createElement(SlvHostKnown$ContactHostText, {}))))));\n}\n\nvar HostInfo = {\n make: SlvHostKnown$HostInfo\n};\n\nfunction SlvHostKnown$ManagerInfo(props) {\n var manager = props.manager;\n var listing = props.listing;\n var name = manager.name;\n var count = manager.listingsCount;\n var url = manager.websiteUrl;\n var email = manager.email;\n var tmp;\n var exit = 0;\n if (email !== undefined && email !== \"\") {\n tmp = React.createElement(Button.AsNativeLink.make, {\n href: \"mailto:\" + email + \"\",\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Wide */1,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.contact-manager-button\",\n defaultMessage: \"Send email\"\n })\n });\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: /* Wide */1,\n disabled: true,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.booking-deals.contact-manager-button\",\n defaultMessage: \"Send email\"\n })\n });\n }\n var match = manager.phone;\n return React.createElement(React.Fragment, undefined, React.createElement(SlvBlock.SubTitle.make, {\n className: css.aboutHostTitle,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.host.about\",\n defaultMessage: \"About the host\"\n })\n }), React.createElement(\"div\", {\n className: css.user\n }, React.createElement(\"div\", {\n className: css.photo\n }, React.createElement(Avatar.Manager.make, {\n manager: manager,\n size: props.avatarSize\n }), React.createElement(PropertyManagerIcon.make, {\n size: \"XXL\",\n className: css.verifiedIcon\n })), React.createElement(\"div\", {\n className: css.details\n }, React.createElement(\"div\", {\n className: css.nameAndTotalListingsContainer\n }, name !== undefined && name !== \"\" ? React.createElement(\"div\", {\n className: css.name\n }, \"\" + name + \"\") : React.createElement(SlvHostKnown$HostPreview, {\n owner: listing.owner\n }), count !== undefined ? React.createElement(\"span\", {\n className: css.listingsCount\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.listings\",\n defaultMessage: \"{listings, plural, one {# listing} other {# listings}}\",\n values: {\n listings: count\n }\n })) : null), url !== undefined && url !== \"\" ? React.createElement(\"div\", {\n className: css.websiteUrl\n }, React.createElement(A.make, {\n href: url,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: true\n }\n },\n children: url\n })) : null, React.createElement(\"div\", {\n className: css.contactWidget\n }, tmp, React.createElement(\"div\", {\n className: css.contactTextWrapper\n }, match !== undefined ? (\n props.userId !== undefined ? (\n match !== \"\" ? React.createElement(SlvHostKnown$CallHost, {\n listingId: listing.id,\n phone: match\n }) : React.createElement(SlvHostKnown$ContactHostText, {})\n ) : (\n match !== \"\" ? React.createElement(SlvHostKnown$LogInToCallHost, {\n logInUser: props.logInUser\n }) : React.createElement(SlvHostKnown$ContactHostText, {})\n )\n ) : React.createElement(SlvHostKnown$ContactHostText, {}))))));\n}\n\nvar ManagerInfo = {\n make: SlvHostKnown$ManagerInfo\n};\n\nfunction SlvHostKnown(props) {\n var user = props.user;\n var listing = props.listing;\n var logInUser = function (url) {\n user.authenticateWithCallback((function (param) {\n if (url !== undefined) {\n window.open(url, \"_self\", undefined);\n return ;\n }\n \n }), undefined);\n };\n var useManagerInfo = React.useMemo(function () {\n return Listing.Contextual.shouldUseManagerInfo(listing);\n });\n var avatarSize = getAvatarSize(props.screen);\n var userId = user.id;\n var match = listing.manager;\n var tmp;\n var exit = 0;\n if (useManagerInfo && match !== undefined) {\n tmp = React.createElement(SlvHostKnown$ManagerInfo, {\n listing: listing,\n manager: match,\n avatarSize: avatarSize,\n userId: userId,\n logInUser: logInUser\n });\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(SlvHostKnown$HostInfo, {\n listing: listing,\n avatarSize: avatarSize,\n showMessageModal: props.booking.showMessageModal,\n userId: userId,\n logInUser: logInUser\n });\n }\n return React.createElement(SlvBlock.make, {\n id: \"Host\",\n children: tmp\n });\n}\n\nvar userAvatarSizeLargeScreen = 100;\n\nvar userAvatarSizeSmallScreen = 70;\n\nvar make = SlvHostKnown;\n\nexports.css = css;\nexports.userAvatarSizeLargeScreen = userAvatarSizeLargeScreen;\nexports.userAvatarSizeSmallScreen = userAvatarSizeSmallScreen;\nexports.getAvatarSize = getAvatarSize;\nexports.HostPreview = HostPreview;\nexports.ContactHostText = ContactHostText;\nexports.CallHost = CallHost;\nexports.LogInToCallHost = LogInToCallHost;\nexports.HostInfo = HostInfo;\nexports.ManagerInfo = ManagerInfo;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar HostBadge = require(\"../../../../styleguide/components/HostBadge/HostBadge.bs.js\");\nvar ReactIntl = require(\"react-intl\");\n\nfunction HostBadgeInfo(props) {\n var className = props.className;\n var type_ = props.type_;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(\"div\", {\n className: Cx.cx([\n \"tw-px-16 tw-py-[16px] md:tw-py-[24px] tw-border tw-border-solid tw-rounded-[8px] tw-border-neutral-200\",\n className$1\n ])\n }, React.createElement(\"div\", {\n className: \"tw-flex tw-flex-col tw-items-start tw-gap-[8px] tw-justify-between md:tw-flex-row md:tw-items-center md:tw-gap-[24px]\"\n }, React.createElement(HostBadge.make, {\n type_: type_,\n className: \"-tw-ml-8 md:tw-ml-0\"\n }), React.createElement(\"div\", {\n className: \"tw-hidden md:tw-flex tw-w-0 tw-h-[63px] tw-border-solid tw-border-0 tw-border-r tw-border-neutral-200\"\n }), React.createElement(\"span\", {\n className: \"tw-text-[14px]\"\n }, type_ ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"host-badge-info.property-manager\",\n defaultMessage: \"This company manages real estate properties for owners. While HiChee does not verify their Property Managers, we gladly share their website and contact details for guests to explore booking deals.\"\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"host-badge-info.verified-host\",\n defaultMessage: \"By choosing a Verified Host, guests can book with confidence, knowing they are dealing with a trustworthy and reliable property owner or manager.\"\n }))));\n}\n\nvar make = HostBadgeInfo;\n\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Vrbp = require(\"../../../../models/Vrbp.bs.js\");\nvar Belt_MapString = require(\"rescript/lib/js/belt_MapString.js\");\n\nfunction addCloseMatches(closeMatchesMap, closeMatches) {\n return Belt_MapString.set(closeMatchesMap, Vrbp.Provider.toString(closeMatches.provider), closeMatches);\n}\n\nfunction findByProvider(closeMatchesMap, provider) {\n return Belt_MapString.get(closeMatchesMap, Vrbp.Provider.toString(provider));\n}\n\nfunction hasListings(closeMatches) {\n if (closeMatches === undefined) {\n return false;\n }\n var match = closeMatches.listings;\n return match.length !== 0;\n}\n\nfunction hasListingsForProvider(closeMatchesMap, provider) {\n return hasListings(findByProvider(closeMatchesMap, provider));\n}\n\nfunction getListings(closeMatches) {\n if (closeMatches !== undefined) {\n return closeMatches.listings;\n } else {\n return [];\n }\n}\n\nexports.addCloseMatches = addCloseMatches;\nexports.findByProvider = findByProvider;\nexports.hasListings = hasListings;\nexports.hasListingsForProvider = hasListingsForProvider;\nexports.getListings = getListings;\n/* No side effect */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar WithTestId = require(\"../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar SearchParams = require(\"../../../../libs/SearchParams.bs.js\");\nvar ListingsCarousel = require(\"../ListingsCarousel/ListingsCarousel.bs.js\");\nvar ListingCloseMatchesModalModuleScss = require(\"./ListingCloseMatchesModal.module.scss\").default;\n\nvar css = ListingCloseMatchesModalModuleScss;\n\nvar listingDimensions = {\n listingMargin: 12,\n listingWidth: 264,\n imageWidth: 264,\n imageHeight: 200\n};\n\nfunction buildListingLinkUrl(htmlUrl) {\n return htmlUrl + SearchParams.getQuery(undefined);\n}\n\nfunction ListingCloseMatchesModal(props) {\n var booking = props.booking;\n var closeMatches = props.closeMatches;\n return React.createElement(ModalDialog.make, {\n modal: props.modal,\n className: css.modal,\n header: \"Likely Matches\",\n children: React.createElement(WithTestId.make, {\n id: \"listing-close-matches-modal\",\n children: React.createElement(\"div\", {\n className: css.modalContent\n }, closeMatches !== undefined ? React.createElement(ListingsCarousel.make, {\n listings: closeMatches.listings,\n listingsLoading: false,\n buildListingLink: buildListingLinkUrl,\n onListingClick: (function (listingTile) {\n Amplitude.Slv.closeMatches(listingTile.id, Listing.Tile.isVerified(listingTile));\n }),\n checkIn: booking.input.checkIn,\n checkOut: booking.input.checkOut,\n showReviews: true,\n listingDimensions: listingDimensions\n }) : null)\n })\n });\n}\n\nvar make = ListingCloseMatchesModal;\n\nexports.css = css;\nexports.listingDimensions = listingDimensions;\nexports.buildListingLinkUrl = buildListingLinkUrl;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Pervasives = require(\"rescript/lib/js/pervasives.js\");\n\nfunction fromString(x) {\n switch (x) {\n case \"feedback_on_hichee\" :\n return /* FeedbackOnHichee */1;\n case \"general\" :\n return /* General */2;\n case \"incorrect_match\" :\n return /* IncorrectMatch */0;\n default:\n return Pervasives.failwith(\"Unknown Listing Report reason: \" + x + \"\");\n }\n}\n\nfunction toString(x) {\n switch (x) {\n case /* IncorrectMatch */0 :\n return \"incorrect_match\";\n case /* FeedbackOnHichee */1 :\n return \"feedback_on_hichee\";\n case /* General */2 :\n return \"general\";\n \n }\n}\n\nvar Reason = {\n fromString: fromString,\n toString: toString\n};\n\nvar $$Error = {};\n\nexports.Reason = Reason;\nexports.$$Error = $$Error;\n/* No side effect */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar IntercomMessengerJs = require(\"app/libs/utils/intercomMessenger.js\");\nvar ListingFeedbackReportModalModuleScss = require(\"./ListingFeedbackReportModal.module.scss\").default;\n\nvar css = ListingFeedbackReportModalModuleScss;\n\nfunction ListingFeedbackReportContactUs(props) {\n var hideModal = props.hideModal;\n return React.createElement(\"div\", {\n className: css.contactUs\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.contact-us.chat-help\",\n defaultMessage: \"Still need some assistance? Contact us on our\"\n }), React.createElement(\"a\", {\n className: css.chatLink,\n onClick: (function (param) {\n Curry._1(hideModal, undefined);\n IntercomMessengerJs.showIntercom();\n })\n }, Html.nbsp, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.contact-us.chat\",\n defaultMessage: \"chat.\"\n })));\n}\n\nvar make = ListingFeedbackReportContactUs;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar TextArea = require(\"../../../../styleguide/forms/TextArea/TextArea.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar RailsContext = require(\"../../../../models/RailsContext.bs.js\");\nvar ListingFeedbackReportModalModuleScss = require(\"./ListingFeedbackReportModal.module.scss\").default;\n\nvar css = ListingFeedbackReportModalModuleScss;\n\nfunction listingFeedbackReportDomId(field) {\n return \"listing-report-\" + field + \"\";\n}\n\nfunction ListingFeedbackReportDetails(props) {\n var error = props.error;\n var busy = props.busy;\n var onSubmit = props.onSubmit;\n var onBack = props.onBack;\n var onChange = props.onChange;\n var helpEmail = React.useMemo((function () {\n return RailsContext.getHelpEmail(undefined);\n }), []);\n var errorMessage;\n switch (error) {\n case /* ServerError */0 :\n errorMessage = helpEmail !== undefined ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.server-error\",\n defaultMessage: \"We{apos}re having trouble sending your feedback to our team.{br}Please kindly email {helpEmail} with your issue. Thank you.\",\n values: {\n apos: Html.apos,\n br: React.createElement(\"br\", undefined),\n helpEmail: React.createElement(A.make, {\n href: \"mailto:\" + helpEmail + \"\",\n className: css.error,\n children: helpEmail\n })\n }\n }) : null;\n break;\n case /* InputError */1 :\n errorMessage = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.input-error\",\n defaultMessage: \"Details are required.\"\n });\n break;\n case /* None */2 :\n errorMessage = null;\n break;\n \n }\n return React.createElement(React.Fragment, undefined, error !== 0 ? null : React.createElement(\"div\", {\n className: css.error\n }, errorMessage), React.createElement(TextArea.make, {\n id: \"listing-report-details\",\n rows: 2,\n size: /* MD */1,\n value: Belt_Option.getWithDefault(props.listingFeedbackReport.details, \"\"),\n disabled: busy,\n autoFocus: true,\n className: Cx.cx([\n css.detailsTextArea,\n busy ? css.detailsTextAreaBusy : \"\"\n ]),\n inputClassName: css.detailsInput,\n title: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.details.title\",\n defaultMessage: \"Describe your feedback\"\n })),\n titleClassName: Cx.cx([\n css.detailsTitle,\n busy ? css.detailsTitleBusy : \"\"\n ]),\n onChange: (function ($$event) {\n Curry._1(onChange, $$event.target.value);\n })\n }), error !== 1 ? null : React.createElement(\"div\", {\n className: css.error\n }, errorMessage), React.createElement(\"div\", {\n className: Cx.cx([\n css.buttonsContainer,\n css.detailsButtonsContainer\n ])\n }, React.createElement(TextControl.make, {\n className: css.backButton,\n onClick: (function (param) {\n Curry._1(onBack, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.back\",\n defaultMessage: \"Back\"\n }),\n disabled: busy\n }), React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n busy: busy,\n onClick: (function (param) {\n Curry._1(onSubmit, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.submit\",\n defaultMessage: \"Submit\"\n })\n })));\n}\n\nvar make = ListingFeedbackReportDetails;\n\nexports.css = css;\nexports.listingFeedbackReportDomId = listingFeedbackReportDomId;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../../libs/Hooks.bs.js\");\nvar React = require(\"react\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar WithTestId = require(\"../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ModalDialog = require(\"../../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar ScreenSizeContext = require(\"../../../../contexts/ScreenSizeContext.bs.js\");\nvar ListingFeedbackReport = require(\"./ListingFeedbackReport.bs.js\");\nvar ListingFeedbackReportReason = require(\"./ListingFeedbackReportReason.bs.js\");\nvar ListingFeedbackReportDetails = require(\"./ListingFeedbackReportDetails.bs.js\");\nvar ListingFeedbackReportSuccessMessage = require(\"./ListingFeedbackReportSuccessMessage.bs.js\");\nvar ListingFeedbackReportModalModuleScss = require(\"./ListingFeedbackReportModal.module.scss\").default;\n\nvar css = ListingFeedbackReportModalModuleScss;\n\nvar Status = {};\n\nfunction ListingFeedbackReportModal(props) {\n var modal = props.modal;\n var initialState_listingFeedbackReport = {\n listing: props.listing,\n reason: /* IncorrectMatch */0,\n details: undefined\n };\n var initialState = {\n status: /* EditingReason */0,\n error: /* None */2,\n listingFeedbackReport: initialState_listingFeedbackReport\n };\n var match = Hooks.useReducer(initialState, (function (state, action) {\n if (typeof action === \"number\") {\n return {\n TAG: /* Update */0,\n _0: initialState\n };\n }\n switch (action.TAG | 0) {\n case /* SetReason */0 :\n var init = state.listingFeedbackReport;\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n error: state.error,\n listingFeedbackReport: {\n listing: init.listing,\n reason: action._0,\n details: init.details\n }\n }\n };\n case /* SetStatus */1 :\n return {\n TAG: /* Update */0,\n _0: {\n status: action._0,\n error: state.error,\n listingFeedbackReport: state.listingFeedbackReport\n }\n };\n case /* SetError */2 :\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n error: action._0,\n listingFeedbackReport: state.listingFeedbackReport\n }\n };\n case /* SetDetails */3 :\n var init$1 = state.listingFeedbackReport;\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n error: state.error,\n listingFeedbackReport: {\n listing: init$1.listing,\n reason: init$1.reason,\n details: action._0\n }\n }\n };\n \n }\n }));\n var dispatch = match[1];\n var state = match[0];\n var screen = React.useContext(ScreenSizeContext.Context.x);\n var submitReport = function (param) {\n var details = state.listingFeedbackReport.details;\n if (details !== undefined) {\n Curry._1(dispatch, {\n TAG: /* SetStatus */1,\n _0: /* Submitting */2\n });\n $$Promise.wait(Api.postListingFeedbackReport({\n listingId: state.listingFeedbackReport.listing.id,\n reportType: ListingFeedbackReport.Reason.toString(state.listingFeedbackReport.reason),\n details: details\n }), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* SetStatus */1,\n _0: /* Submitted */3\n });\n }\n Curry._1(dispatch, {\n TAG: /* SetStatus */1,\n _0: /* EditingDetails */1\n });\n Curry._1(dispatch, {\n TAG: /* SetError */2,\n _0: /* ServerError */0\n });\n }));\n return ;\n } else {\n return Curry._1(dispatch, {\n TAG: /* SetError */2,\n _0: /* InputError */1\n });\n }\n };\n var onNextClick = function (param) {\n Curry._1(dispatch, {\n TAG: /* SetStatus */1,\n _0: /* EditingDetails */1\n });\n };\n var onBackClick = function (param) {\n Curry._1(dispatch, /* ResetState */0);\n };\n var match$1 = state.status;\n return React.createElement(ModalDialog.make, {\n modal: modal,\n onExited: (function (param) {\n Curry._1(dispatch, /* ResetState */0);\n }),\n className: css.modal,\n desktopPosition: /* Centered */0,\n mobilePosition: /* Docked */0,\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report-modal.title\",\n defaultMessage: \"Feedback\"\n })),\n children: React.createElement(WithTestId.make, {\n id: \"listing-feedback-report-modal\",\n children: React.createElement(\"div\", {\n className: Cx.cx([\n css.wrapper,\n state.status === /* Submitting */2 ? css.submitting : \"\"\n ])\n }, match$1 !== 0 ? (\n match$1 >= 3 ? React.createElement(ListingFeedbackReportSuccessMessage.make, {\n hideModal: modal.hide\n }) : React.createElement(ListingFeedbackReportDetails.make, {\n onChange: (function (details) {\n Curry._1(dispatch, {\n TAG: /* SetError */2,\n _0: /* None */2\n });\n Curry._1(dispatch, {\n TAG: /* SetDetails */3,\n _0: details\n });\n }),\n onBack: onBackClick,\n onSubmit: submitReport,\n listingFeedbackReport: state.listingFeedbackReport,\n busy: state.status === /* Submitting */2,\n error: state.error\n })\n ) : React.createElement(ListingFeedbackReportReason.make, {\n onNext: onNextClick,\n onChange: (function (reason) {\n Curry._1(dispatch, {\n TAG: /* SetReason */0,\n _0: reason\n });\n }),\n listingFeedbackReportReason: state.listingFeedbackReport.reason,\n hideModal: modal.hide,\n screen: screen\n }))\n })\n });\n}\n\nvar make = ListingFeedbackReportModal;\n\nexports.css = css;\nexports.Status = Status;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar RadioButtons = require(\"../../../../styleguide/forms/RadioButtons/RadioButtons.bs.js\");\nvar ListingFeedbackReport = require(\"./ListingFeedbackReport.bs.js\");\nvar ListingFeedbackReportContactUs = require(\"./ListingFeedbackReportContactUs.bs.js\");\nvar ListingFeedbackReportModalModuleScss = require(\"./ListingFeedbackReportModal.module.scss\").default;\n\nvar css = ListingFeedbackReportModalModuleScss;\n\nfunction ListingFeedbackReportReason(props) {\n var screen = props.screen;\n var listingFeedbackReportReason = props.listingFeedbackReportReason;\n var onChange = props.onChange;\n var onNext = props.onNext;\n return React.createElement(React.Fragment, undefined, React.createElement(ListingFeedbackReportContactUs.make, {\n hideModal: props.hideModal\n }), React.createElement(RadioButtons.make, {\n className: css.control,\n children: null\n }, React.createElement(RadioButtons.Button.make, {\n value: ListingFeedbackReport.Reason.toString(/* IncorrectMatch */0),\n checked: listingFeedbackReportReason === /* IncorrectMatch */0,\n className: css.reasonButton,\n onChange: (function ($$event) {\n Curry._1(onChange, ListingFeedbackReport.Reason.fromString($$event.target.value));\n }),\n children: React.createElement(\"div\", {\n className: css.reason\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.incorrect-match.label\",\n defaultMessage: \"Incorrect match\"\n }))\n }), React.createElement(\"hr\", {\n className: css.buttonsDivider\n }), React.createElement(RadioButtons.Button.make, {\n value: ListingFeedbackReport.Reason.toString(/* FeedbackOnHichee */1),\n checked: listingFeedbackReportReason === /* FeedbackOnHichee */1,\n className: css.reasonButton,\n onChange: (function ($$event) {\n Curry._1(onChange, ListingFeedbackReport.Reason.fromString($$event.target.value));\n }),\n children: React.createElement(\"div\", {\n className: css.reason\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.feedback-on-hichee.label\",\n defaultMessage: \"Feedback on HiChee\"\n }))\n }), React.createElement(\"hr\", {\n className: css.buttonsDivider\n }), React.createElement(RadioButtons.Button.make, {\n value: ListingFeedbackReport.Reason.toString(/* General */2),\n checked: listingFeedbackReportReason === /* General */2,\n className: css.reasonButton,\n onChange: (function ($$event) {\n Curry._1(onChange, ListingFeedbackReport.Reason.fromString($$event.target.value));\n }),\n children: React.createElement(\"div\", {\n className: css.reason\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.general.label\",\n defaultMessage: \"It’s something else\"\n }))\n })), React.createElement(\"div\", {\n className: Cx.cx([\n css.buttonsContainer,\n css.nextButtonContainer\n ])\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Primary */0,\n style: screen === \"XS\" || screen === \"SM\" ? /* Expanded */2 : /* Regular */0,\n onClick: (function (param) {\n Curry._1(onNext, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.next\",\n defaultMessage: \"Next\"\n })\n })));\n}\n\nvar make = ListingFeedbackReportReason;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar MessegeSend = require(\"../../../../styleguide/svgs/MessegeSend.bs.js\");\nvar ListingFeedbackReportContactUs = require(\"./ListingFeedbackReportContactUs.bs.js\");\nvar ListingFeedbackReportModalModuleScss = require(\"./ListingFeedbackReportModal.module.scss\").default;\n\nvar css = ListingFeedbackReportModalModuleScss;\n\nfunction ListingFeedbackReportSuccessMessage(props) {\n var hideModal = props.hideModal;\n return React.createElement(\"div\", {\n className: css.successMsgContainer\n }, React.createElement(MessegeSend.make, {\n className: \"sendIcon\"\n }), React.createElement(\"div\", {\n className: css.successMsgParagraphsContainer\n }, React.createElement(\"p\", {\n className: css.successMsgTitle\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.success.title\",\n defaultMessage: \"Thank you!\"\n })), React.createElement(\"p\", {\n className: css.successMsgDetails\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.success.paragraph\",\n defaultMessage: \"We will be investigating your feedback soon.\"\n }))), React.createElement(\"div\", {\n className: Cx.cx([\n css.buttonsContainer,\n css.closeButtonContainer\n ])\n }, React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n onClick: (function (param) {\n Curry._1(hideModal, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.listing-feedback-report.success.close\",\n defaultMessage: \"Go back to the listing\"\n })\n })), React.createElement(ListingFeedbackReportContactUs.make, {\n hideModal: hideModal\n }));\n}\n\nvar make = ListingFeedbackReportSuccessMessage;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar PinIcon = require(\"../../../../styleguide/icons/PinIcon.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar ReactSchemaorg = require(\"react-schemaorg\");\nvar SlvListingLocationsModuleScss = require(\"./SlvListingLocations.module.scss\").default;\n\nvar css = SlvListingLocationsModuleScss;\n\nfunction SlvListingLocations(props) {\n var booking = props.booking;\n var listing = props.listing;\n var sendClickedLocationEvent = function (_event) {\n Amplitude.Slv.redirectedToBLV(listing.id, Listing.Contextual.isVerified(listing));\n };\n var itemListElement = [];\n var match = listing.country;\n var match$1 = listing.state;\n var match$2 = listing.city;\n var tmp;\n if (match$1 !== undefined) {\n var fullLocationUrl = Route.fullLocationListings(booking.input.isDefaultInput, match, match$1, match$2, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets);\n var partialLocationUrl = Route.partialLocationListings(booking.input.isDefaultInput, match, match$1, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets);\n var countryLocationUrl = Route.countryLocationListings(booking.input.isDefaultInput, match, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets);\n itemListElement.push({\n \"@type\": \"ListItem\",\n position: 1,\n item: {\n \"@type\": \"Thing\",\n \"@id\": fullLocationUrl,\n name: match$2\n }\n });\n itemListElement.push({\n \"@type\": \"ListItem\",\n position: 2,\n item: {\n \"@type\": \"Thing\",\n \"@id\": partialLocationUrl,\n name: match$1\n }\n });\n itemListElement.push({\n \"@type\": \"ListItem\",\n position: 3,\n item: {\n \"@type\": \"Thing\",\n \"@id\": countryLocationUrl,\n name: match\n }\n });\n tmp = React.createElement(React.Fragment, undefined, React.createElement(PinIcon.make, {\n size: \"SM\",\n color: \"General\",\n margin: \"Right\"\n }), React.createElement(A.make, {\n href: countryLocationUrl,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n className: css.locationLink,\n inline: true,\n onClick: sendClickedLocationEvent,\n children: match\n }), \"\" + Html.nbsp + \"\" + Html.mdot + \"\" + Html.nbsp + \"\", React.createElement(A.make, {\n href: partialLocationUrl,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n className: css.locationLink,\n inline: true,\n onClick: sendClickedLocationEvent,\n children: match$1\n }), \"\" + Html.nbsp + \"\" + Html.mdot + \"\" + Html.nbsp + \"\", React.createElement(A.make, {\n href: fullLocationUrl,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n className: css.locationLink,\n inline: true,\n onClick: sendClickedLocationEvent,\n children: match$2\n }));\n } else {\n var partialLocationUrl$1 = Route.partialLocationListings(booking.input.isDefaultInput, match, match$2, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets);\n var countryLocationUrl$1 = Route.countryLocationListings(booking.input.isDefaultInput, match, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets);\n itemListElement.push({\n \"@type\": \"ListItem\",\n position: 1,\n item: {\n \"@type\": \"Thing\",\n \"@id\": partialLocationUrl$1,\n name: match$2\n }\n });\n itemListElement.push({\n \"@type\": \"ListItem\",\n position: 2,\n item: {\n \"@type\": \"Thing\",\n \"@id\": countryLocationUrl$1,\n name: match\n }\n });\n tmp = React.createElement(React.Fragment, undefined, React.createElement(PinIcon.make, {\n size: \"SM\",\n color: \"General\",\n margin: \"Right\"\n }), React.createElement(A.make, {\n href: countryLocationUrl$1,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n className: css.locationLink,\n inline: true,\n onClick: sendClickedLocationEvent,\n children: match\n }), \"\" + Html.nbsp + \"\" + Html.mdot + \"\" + Html.nbsp + \"\", React.createElement(A.make, {\n href: partialLocationUrl$1,\n target: /* Blank */{\n rel: {\n referrer: true,\n follow: true\n }\n },\n className: css.locationLink,\n onClick: sendClickedLocationEvent,\n children: match$2\n }));\n }\n var breadcrumbItems = React.createElement(React.Fragment, undefined, tmp);\n return React.createElement(\"span\", {\n className: \"tw-whitespace-nowrap\"\n }, React.createElement(ReactSchemaorg.JsonLd, {\n item: {\n \"@context\": \"https://schema.org/\",\n \"@type\": \"BreadcrumbList\",\n itemListElement: itemListElement\n }\n }), breadcrumbItems);\n}\n\nvar make = SlvListingLocations;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Style = require(\"../../../../libs/Style.bs.js\");\nvar React = require(\"react\");\nvar Carousel = require(\"../../../../styleguide/components/Carousel/Carousel.bs.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ListingLink = require(\"../../../../styleguide/components/ListingLink/ListingLink.bs.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\nvar ListingsCarouselItem = require(\"./ListingsCarouselItem.bs.js\");\nvar ListingsCarouselModuleScss = require(\"./ListingsCarousel.module.scss\").default;\n\nvar css = ListingsCarouselModuleScss;\n\nfunction ListingsCarousel(props) {\n var withScrollbar = props.withScrollbar;\n var listingDimensions = props.listingDimensions;\n var visibleListingsCount = props.visibleListingsCount;\n var scrollingTolerance = props.scrollingTolerance;\n var scrollingDuration = props.scrollingDuration;\n var showTitleWithReview = props.showTitleWithReview;\n var showBestAveragePrice = props.showBestAveragePrice;\n var showProviderPrices = props.showProviderPrices;\n var showReviews = props.showReviews;\n var showCapacityDetails = props.showCapacityDetails;\n var controlsStyle = props.controlsStyle;\n var checkOut = props.checkOut;\n var checkIn = props.checkIn;\n var nextControlClassName = props.nextControlClassName;\n var prevControlClassName = props.prevControlClassName;\n var listingClassName = props.listingClassName;\n var listingLinkClassName = props.listingLinkClassName;\n var className = props.className;\n var onListingClick = props.onListingClick;\n var buildListingLink = props.buildListingLink;\n var listingsLoading = props.listingsLoading;\n var listings = props.listings;\n var className$1 = className !== undefined ? className : \"\";\n var listingLinkClassName$1 = listingLinkClassName !== undefined ? listingLinkClassName : \"\";\n var listingClassName$1 = listingClassName !== undefined ? listingClassName : \"\";\n var prevControlClassName$1 = prevControlClassName !== undefined ? prevControlClassName : \"\";\n var nextControlClassName$1 = nextControlClassName !== undefined ? nextControlClassName : \"\";\n var controlsStyle$1 = controlsStyle !== undefined ? controlsStyle : /* Side */0;\n var showCapacityDetails$1 = showCapacityDetails !== undefined ? showCapacityDetails : false;\n var showReviews$1 = showReviews !== undefined ? showReviews : false;\n var showProviderPrices$1 = showProviderPrices !== undefined ? showProviderPrices : false;\n var showBestAveragePrice$1 = showBestAveragePrice !== undefined ? showBestAveragePrice : false;\n var showTitleWithReview$1 = showTitleWithReview !== undefined ? showTitleWithReview : false;\n var scrollingDuration$1 = scrollingDuration !== undefined ? scrollingDuration : 300;\n var scrollingTolerance$1 = scrollingTolerance !== undefined ? scrollingTolerance : 1;\n var visibleListingsCount$1 = visibleListingsCount !== undefined ? visibleListingsCount : 2;\n var withScrollbar$1 = withScrollbar !== undefined ? withScrollbar : true;\n var scrollingParams_width = listingDimensions.listingWidth;\n var scrollingParams_step = listingDimensions.listingWidth + Math.imul(listingDimensions.listingMargin, 3) | 0;\n var scrollingParams = {\n margin: 12.0,\n width: scrollingParams_width,\n step: scrollingParams_step,\n duration: scrollingDuration$1,\n tolerance: scrollingTolerance$1\n };\n var datesPeriod = React.useMemo((function () {\n if (checkIn !== undefined && checkOut !== undefined) {\n return {\n comesFrom: /* Search */0,\n values: [\n Caml_option.valFromOption(checkIn),\n Caml_option.valFromOption(checkOut)\n ]\n };\n }\n \n }), [\n checkIn,\n checkOut\n ]);\n if (listings !== undefined && listings.length !== 0) {\n return React.createElement(Carousel.make, {\n items: listings,\n renderBlock: (function (item, onLoad) {\n return JsxPPXReactSupport.createElementWithKey(String(item.id), React.Fragment, {\n children: JsxPPXReactSupport.createElementWithKey(String(item.id), ListingLink.make, {\n href: Curry._1(buildListingLink, item.htmlUrl),\n onClick: onListingClick !== undefined ? (function (param) {\n Curry._1(onListingClick, item);\n }) : (function (param) {\n \n }),\n children: React.createElement(ListingsCarouselItem.make, {\n className: listingClassName$1,\n listing: item,\n datesPeriod: datesPeriod,\n onLoad: onLoad,\n listingsLoading: listingsLoading,\n listingDimensions: listingDimensions,\n showCapacityDetails: showCapacityDetails$1,\n showReviews: showReviews$1,\n showBestAveragePrice: showBestAveragePrice$1,\n showProviderPrices: showProviderPrices$1,\n showTitleWithReview: showTitleWithReview$1,\n testId: \"listings-carousel-item\"\n }),\n className: listingLinkClassName$1,\n style: {\n margin: Style.pxOfInt(listingDimensions.listingMargin)\n }\n })\n });\n }),\n compareEquality: (function (item1, item2) {\n return item1.id === item2.id;\n }),\n scrollingParams: scrollingParams,\n prevControlTitle: \"Previous listing\",\n prevControlTestId: \"listings-carousel-prev\",\n prevControlClassName: prevControlClassName$1,\n nextControlClassName: nextControlClassName$1,\n containerClassName: className$1,\n nextControlTestId: \"listings-carousel-next\",\n nextControlTitle: \"Next listing\",\n controlStyle: controlsStyle$1,\n withScrollbar: withScrollbar$1,\n visibleItemsCount: visibleListingsCount$1\n });\n } else {\n return null;\n }\n}\n\nvar make = ListingsCarousel;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../../libs/Hooks.bs.js\");\nvar $$Image = require(\"../../../../styleguide/components/Image/Image.bs.js\");\nvar Style = require(\"../../../../libs/Style.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar WithTestId = require(\"../../../../styleguide/components/WithTestId/WithTestId.bs.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar RatingValue = require(\"../../../../styleguide/components/Rating/RatingValue.bs.js\");\nvar VerifiedIcon = require(\"../../../../styleguide/icons/VerifiedIcon.bs.js\");\nvar AwsImageHandlerV5 = require(\"../../../../libs/AwsImageHandlerV5.bs.js\");\nvar PropertyManagerIcon = require(\"../../../../styleguide/icons/PropertyManagerIcon.bs.js\");\nvar ListingPhotoPlaceholder = require(\"../../../../styleguide/components/ListingTile/ListingPhotoPlaceholder/ListingPhotoPlaceholder.bs.js\");\nvar RatingWithReviewsCounter = require(\"../../../../styleguide/components/Rating/RatingWithReviewsCounter.bs.js\");\nvar ListingsCarouselItemPrices = require(\"./ListingsCarouselItemPrices.bs.js\");\nvar ListingsCarouselItemCapacity = require(\"./ListingsCarouselItemCapacity.bs.js\");\nvar ListingsCarouselItemBestPrice = require(\"./ListingsCarouselItemBestPrice.bs.js\");\nvar ListingsCarouselModuleScss = require(\"./ListingsCarousel.module.scss\").default;\n\nvar css = ListingsCarouselModuleScss;\n\nvar ListingDimensions = {};\n\nfunction ListingsCarouselItem(props) {\n var showBestAveragePrice = props.showBestAveragePrice;\n var listingDimensions = props.listingDimensions;\n var onLoad = props.onLoad;\n var datesPeriod = props.datesPeriod;\n var listing = props.listing;\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n var listingRef = React.useRef(null);\n var isVisible = Hooks.useIsVisibleOnce(listingRef, undefined, undefined, undefined, undefined);\n var providers = listing.providers;\n var fullPrices = Curry._1(Listing.Tile.FullPricesState.fromFullVrbpData, listing.vrbpData);\n var numberOfNights = Curry._1(Listing.Tile.DatesPeriod.getNumberOfNights, datesPeriod);\n var pricesTotals = Listing.Tile.totalPricesFromState(fullPrices, undefined, numberOfNights);\n var providersAvailability = Curry._1(Listing.Tile.FullPricesState.getProvidersAvailability, fullPrices);\n var pricesCalculationsBasis = Curry._2(Listing.Tile.PricesCalculationBasis.getPricesCalculationBasisFromState, undefined, providers);\n React.useEffect(function () {\n Curry._1(onLoad, listingRef);\n });\n var coverPhoto = Belt_Array.get(listing.photos, 0);\n var match = listing.averageNightlyPrices;\n var tmp;\n if (props.showTitleWithReview) {\n var ratings = listing.providersRatings;\n var metaRating = ratings !== undefined ? ratings.metaRating : ({\n rating: 0.0,\n count: 0\n });\n var match$1 = metaRating.count;\n tmp = React.createElement(\"div\", {\n className: css.listingTitleWrapper\n }, React.createElement(\"div\", {\n className: css.listingTitleText\n }, listing.title), match$1 !== 0 ? React.createElement(RatingValue.make, {\n providerRating: metaRating,\n size: \"SM\",\n className: css.listingTitleReviewsCounter,\n valueClassName: css.listingTitleReviewsCounterValue\n }) : null);\n } else {\n tmp = React.createElement(\"div\", {\n className: css.listingTitleText\n }, listing.title);\n }\n var tmp$1;\n if (props.showReviews) {\n var ratings$1 = listing.providersRatings;\n tmp$1 = React.createElement(RatingWithReviewsCounter.make, {\n providerRating: ratings$1 !== undefined ? ratings$1.metaRating : ({\n rating: 0.0,\n count: 0\n })\n });\n } else {\n tmp$1 = null;\n }\n return React.createElement(WithTestId.Optional.make, {\n id: props.testId,\n children: React.createElement(\"div\", {\n ref: Caml_option.some(listingRef),\n className: Cx.cx([\n css.listing,\n className$1\n ]),\n style: {\n width: Style.pxOfInt(listingDimensions.listingWidth)\n }\n }, React.createElement(\"div\", {\n className: css.imageWrapper,\n style: {\n height: Style.pxOfInt(listingDimensions.imageHeight),\n width: Style.pxOfInt(listingDimensions.imageWidth)\n }\n }, coverPhoto !== undefined ? React.createElement($$Image.make, {\n className: css.image,\n url: Curry._1(AwsImageHandlerV5.ImageUrl.toString, Caml_option.valFromOption(coverPhoto)),\n fetchWidth: listingDimensions.imageWidth,\n fetchHeight: listingDimensions.imageHeight,\n alt: Listing.Tile.imageAltText(listing),\n withLoader: isVisible,\n format: /* WebP */2,\n loading: /* Lazy */0,\n decoding: /* Async */0,\n fetchPriority: /* Low */1\n }) : React.createElement(ListingPhotoPlaceholder.make, {\n className: css.image\n }), Listing.Tile.isVerified(listing) ? React.createElement(VerifiedIcon.make, {\n size: \"LG\",\n color: \"Teal\",\n className: css.hostBadge\n }) : (\n Listing.Tile.hasPropertyManager(listing) ? React.createElement(PropertyManagerIcon.make, {\n size: \"LG\",\n className: css.hostBadge\n }) : null\n )), showBestAveragePrice && match !== undefined ? React.createElement(ListingsCarouselItemBestPrice.make, {\n averageNightlyPrices: match,\n currency: listing.currency\n }) : null, React.createElement(\"div\", {\n className: showBestAveragePrice ? css.infoWithBestAveragePrice : css.info\n }, tmp, props.showCapacityDetails ? React.createElement(ListingsCarouselItemCapacity.make, {\n listing: listing\n }) : null, tmp$1, props.showProviderPrices ? React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: css.horizontalLine\n }), React.createElement(ListingsCarouselItemPrices.make, {\n pricesTotals: pricesTotals,\n numberOfNights: numberOfNights,\n providersAvailability: providersAvailability,\n listingOwner: listing.owner,\n pricesCalculationsBasis: pricesCalculationsBasis,\n datesPeriod: datesPeriod,\n listingsLoading: props.listingsLoading,\n currency: listing.currency\n })) : null))\n });\n}\n\nvar make = ListingsCarouselItem;\n\nexports.css = css;\nexports.ListingDimensions = ListingDimensions;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar React = require(\"react\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar VrboIcon = require(\"../../../../styleguide/icons/VrboIcon.bs.js\");\nvar AirbnbIcon = require(\"../../../../styleguide/icons/AirbnbIcon.bs.js\");\nvar HicheeIcon = require(\"../../../../styleguide/icons/HicheeIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar BookingcomFullIcon = require(\"../../../../styleguide/icons/BookingcomFullIcon.bs.js\");\nvar ListingsCarouselItemBestPriceModuleScss = require(\"./ListingsCarouselItemBestPrice.module.scss\").default;\n\nvar css = ListingsCarouselItemBestPriceModuleScss;\n\nfunction ListingsCarouselItemBestPrice$Price(props) {\n var tmp;\n switch (props.provider) {\n case /* Hichee */0 :\n tmp = React.createElement(HicheeIcon.make, {\n size: \"SM\",\n testId: \"hichee-icon\"\n });\n break;\n case /* Airbnb */1 :\n tmp = React.createElement(AirbnbIcon.make, {\n size: \"SM\",\n testId: \"airbnb-icon\"\n });\n break;\n case /* Bookingcom */2 :\n tmp = React.createElement(BookingcomFullIcon.make, {\n size: \"SM\",\n testId: \"bookingcom-icon\"\n });\n break;\n case /* Vrbo */3 :\n tmp = React.createElement(VrboIcon.make, {\n size: \"SM\",\n testId: \"vrbo-icon\"\n });\n break;\n \n }\n return React.createElement(\"div\", {\n className: css.priceRelativeContainer\n }, React.createElement(\"div\", {\n className: css.priceContainer\n }, React.createElement(\"span\", {\n className: css.iconWrapper\n }, tmp), React.createElement(\"span\", {\n className: css.priceWrapper\n }, React.createElement(\"span\", {\n className: css.price\n }, React.createElement(Currency.WithoutCents.make, {\n currency: props.currency,\n children: props.price\n })), Html.nbsp, React.createElement(\"span\", {\n className: css.priceSuffix\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.average-per-night\",\n defaultMessage: \"avg/night\"\n })))));\n}\n\nvar Price = {\n make: ListingsCarouselItemBestPrice$Price\n};\n\nfunction ListingsCarouselItemBestPrice(props) {\n var currency = props.currency;\n var averageNightlyPrices = props.averageNightlyPrices;\n var match = averageNightlyPrices.airbnb;\n var match$1 = averageNightlyPrices.vrbo;\n var match$2 = averageNightlyPrices.bookingcom;\n var match$3 = averageNightlyPrices.hichee;\n var match$4 = averageNightlyPrices.bestAveragePriceProvider;\n var exit = 0;\n var exit$1 = 0;\n if (match !== undefined) {\n if (match$4 === undefined) {\n return null;\n }\n switch (match$4) {\n case /* Hichee */0 :\n break;\n case /* Airbnb */1 :\n return React.createElement(ListingsCarouselItemBestPrice$Price, {\n provider: /* Airbnb */1,\n price: match,\n currency: currency\n });\n case /* Bookingcom */2 :\n exit = 2;\n break;\n case /* Vrbo */3 :\n exit$1 = 3;\n break;\n \n }\n } else {\n exit$1 = 3;\n }\n if (exit$1 === 3) {\n if (match$1 !== undefined) {\n if (match$4 === undefined) {\n return null;\n }\n switch (match$4) {\n case /* Hichee */0 :\n break;\n case /* Airbnb */1 :\n return null;\n case /* Bookingcom */2 :\n exit = 2;\n break;\n case /* Vrbo */3 :\n return React.createElement(ListingsCarouselItemBestPrice$Price, {\n provider: /* Vrbo */3,\n price: match$1,\n currency: currency\n });\n \n }\n } else {\n exit = 2;\n }\n }\n if (exit === 2 && match$2 !== undefined) {\n if (match$4 === undefined) {\n return null;\n }\n if (match$4 >= 3) {\n return null;\n }\n switch (match$4) {\n case /* Hichee */0 :\n break;\n case /* Airbnb */1 :\n return null;\n case /* Bookingcom */2 :\n return React.createElement(ListingsCarouselItemBestPrice$Price, {\n provider: /* Bookingcom */2,\n price: match$2,\n currency: currency\n });\n \n }\n }\n if (match$3 !== undefined && match$4 === 0) {\n return React.createElement(ListingsCarouselItemBestPrice$Price, {\n provider: /* Hichee */0,\n price: match$3,\n currency: currency\n });\n } else {\n return null;\n }\n}\n\nvar size = \"SM\";\n\nvar make = ListingsCarouselItemBestPrice;\n\nexports.css = css;\nexports.size = size;\nexports.Price = Price;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Html = require(\"../../../../libs/Html.bs.js\");\nvar React = require(\"react\");\nvar TextWithCircle = require(\"../../../../styleguide/forms/TextWithCircle/TextWithCircle.bs.js\");\nvar ListingsCarouselModuleScss = require(\"./ListingsCarousel.module.scss\").default;\n\nvar css = ListingsCarouselModuleScss;\n\nfunction ListingsCarouselItemCapacity(props) {\n var listing = props.listing;\n var match = listing.bedrooms;\n var match$1 = listing.roomType;\n var match$2 = listing.beds;\n var match$3 = listing.roomType;\n var maxGuests = listing.maxGuests;\n return React.createElement(\"div\", {\n className: css.listingCapacityDetailsText\n }, match !== undefined && match$1 === 0 ? React.createElement(TextWithCircle.make, {\n text: match !== 1 ? (\n match > 1 ? String(match) + (Html.nbsp + \"Bedrooms\") : \"Studio\"\n ) : \"1 Bedroom\",\n wrapperClassName: css.textWithCircle,\n circleClassName: css.circle\n }) : null, match$2 !== undefined ? (\n match$2 !== 1 ? (\n match$3 !== 0 || match$2 <= 1 ? null : React.createElement(TextWithCircle.make, {\n text: String(match$2) + (Html.nbsp + \"Beds\"),\n wrapperClassName: css.textWithCircle,\n circleClassName: css.circle\n })\n ) : (\n match$3 !== 0 ? null : React.createElement(TextWithCircle.make, {\n text: \"1 Bed\",\n wrapperClassName: css.textWithCircle,\n circleClassName: css.circle\n })\n )\n ) : null, maxGuests !== undefined ? (\n maxGuests !== 1 ? (\n maxGuests > 1 ? React.createElement(TextWithCircle.make, {\n text: String(maxGuests) + (Html.nbsp + \"Guests\"),\n wrapperClassName: css.textWithCircle,\n circleClassName: css.circle\n }) : null\n ) : React.createElement(TextWithCircle.make, {\n text: \"1 Guest\",\n wrapperClassName: css.textWithCircle,\n circleClassName: css.circle\n })\n ) : null);\n}\n\nvar make = ListingsCarouselItemCapacity;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Vrbp = require(\"../../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Spinner = require(\"../../../../styleguide/components/Spinner/Spinner.bs.js\");\nvar Currency = require(\"../../../../styleguide/components/Currency/Currency.bs.js\");\nvar VrboIcon = require(\"../../../../styleguide/icons/VrboIcon.bs.js\");\nvar AirbnbIcon = require(\"../../../../styleguide/icons/AirbnbIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar HouseWithChatIcon = require(\"../../../../styleguide/icons/HouseWithChatIcon.bs.js\");\nvar BookingcomFullIcon = require(\"../../../../styleguide/icons/BookingcomFullIcon.bs.js\");\nvar ListingsCarouselModuleScss = require(\"./ListingsCarousel.module.scss\").default;\n\nvar css = ListingsCarouselModuleScss;\n\nfunction providerIcon(provider) {\n switch (provider) {\n case /* Hichee */0 :\n return React.createElement(HouseWithChatIcon.make, {\n size: \"XXXL\"\n });\n case /* Airbnb */1 :\n return React.createElement(AirbnbIcon.make, {\n size: \"XXXL\"\n });\n case /* Bookingcom */2 :\n return React.createElement(BookingcomFullIcon.make, {\n size: \"XXXL\"\n });\n case /* Vrbo */3 :\n return React.createElement(VrboIcon.make, {\n size: \"XXXL\"\n });\n \n }\n}\n\nfunction ListingsCarouselItemPrice(props) {\n var datesPeriod = props.datesPeriod;\n var priceBasis = props.priceBasis;\n var providersAvailability = props.providersAvailability;\n var listingOwner = props.listingOwner;\n var totalPrice = props.totalPrice;\n var provider = props.provider;\n var intl = ReactIntl.useIntl();\n var tmp;\n if (props.listingsLoading) {\n tmp = React.createElement(Spinner.make, {\n size: /* MD */1,\n color: /* Primary */0,\n centered: false\n });\n } else {\n var tmp$1;\n var exit = 0;\n if (totalPrice !== undefined && totalPrice > 0.0) {\n var tmp$2;\n var exit$1 = 0;\n if (priceBasis !== undefined && priceBasis && datesPeriod !== undefined) {\n tmp$2 = React.createElement(\"span\", undefined, \"~\");\n } else {\n exit$1 = 2;\n }\n if (exit$1 === 2) {\n tmp$2 = React.createElement(\"span\", undefined, \"\");\n }\n var tmp$3;\n switch (provider) {\n case /* Hichee */0 :\n tmp$3 = typeof listingOwner === \"number\" ? null : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.per-night\",\n defaultMessage: \"/night\"\n });\n break;\n case /* Airbnb */1 :\n tmp$3 = typeof listingOwner === \"number\" ? (\n providersAvailability.bookingcom ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.per-night-short\",\n defaultMessage: \"/nt\"\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.per-night\",\n defaultMessage: \"/night\"\n })\n ) : null;\n break;\n case /* Bookingcom */2 :\n tmp$3 = typeof listingOwner === \"number\" ? (\n providersAvailability.vrbo ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.per-night-short\",\n defaultMessage: \"/nt\"\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.per-night\",\n defaultMessage: \"/night\"\n })\n ) : null;\n break;\n case /* Vrbo */3 :\n tmp$3 = typeof listingOwner === \"number\" ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.per-night\",\n defaultMessage: \"/night\"\n }) : null;\n break;\n \n }\n tmp$1 = React.createElement(React.Fragment, undefined, React.createElement(\"span\", {\n className: css.priceValue\n }, tmp$2, React.createElement(\"span\", undefined, Currency.formatWithoutCents(props.currency, totalPrice / props.numberOfNights, intl))), React.createElement(\"span\", {\n className: css.priceLabel\n }, tmp$3));\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp$1 = React.createElement(\"span\", {\n className: css.priceValue\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.check\",\n defaultMessage: \"Check\"\n }));\n }\n tmp = React.createElement(\"div\", {\n className: css.price\n }, tmp$1);\n }\n return React.createElement(\"div\", {\n className: css.infoPrice\n }, providerIcon(provider), React.createElement(\"span\", {\n className: css.infoPriceProvider\n }, Vrbp.Provider.toView(provider)), tmp);\n}\n\nvar make = ListingsCarouselItemPrice;\n\nexports.css = css;\nexports.providerIcon = providerIcon;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar ListingsCarouselItemPrice = require(\"./ListingsCarouselItemPrice.bs.js\");\nvar ListingsCarouselModuleScss = require(\"./ListingsCarousel.module.scss\").default;\n\nvar css = ListingsCarouselModuleScss;\n\nfunction ListingsCarouselItemPrices(props) {\n var currency = props.currency;\n var listingsLoading = props.listingsLoading;\n var datesPeriod = props.datesPeriod;\n var pricesCalculationsBasis = props.pricesCalculationsBasis;\n var listingOwner = props.listingOwner;\n var providersAvailability = props.providersAvailability;\n var numberOfNights = props.numberOfNights;\n var pricesTotals = props.pricesTotals;\n return React.createElement(\"div\", {\n className: css.infoPricesWrapper\n }, typeof listingOwner === \"number\" || !providersAvailability.hichee ? null : React.createElement(ListingsCarouselItemPrice.make, {\n provider: /* Hichee */0,\n totalPrice: pricesTotals.hichee,\n numberOfNights: numberOfNights,\n listingOwner: listingOwner,\n providersAvailability: providersAvailability,\n priceBasis: pricesCalculationsBasis.hichee,\n datesPeriod: datesPeriod,\n listingsLoading: listingsLoading,\n currency: currency\n }), providersAvailability.airbnb ? React.createElement(ListingsCarouselItemPrice.make, {\n provider: /* Airbnb */1,\n totalPrice: pricesTotals.airbnb,\n numberOfNights: numberOfNights,\n listingOwner: listingOwner,\n providersAvailability: providersAvailability,\n priceBasis: pricesCalculationsBasis.airbnb,\n datesPeriod: datesPeriod,\n listingsLoading: listingsLoading,\n currency: currency\n }) : null, providersAvailability.bookingcom ? React.createElement(ListingsCarouselItemPrice.make, {\n provider: /* Bookingcom */2,\n totalPrice: pricesTotals.bookingcom,\n numberOfNights: numberOfNights,\n listingOwner: listingOwner,\n providersAvailability: providersAvailability,\n priceBasis: pricesCalculationsBasis.bookingcom,\n datesPeriod: datesPeriod,\n listingsLoading: listingsLoading,\n currency: currency\n }) : null, providersAvailability.vrbo ? React.createElement(ListingsCarouselItemPrice.make, {\n provider: /* Vrbo */3,\n totalPrice: pricesTotals.vrbo,\n numberOfNights: numberOfNights,\n listingOwner: listingOwner,\n providersAvailability: providersAvailability,\n priceBasis: pricesCalculationsBasis.vrbo,\n datesPeriod: datesPeriod,\n listingsLoading: listingsLoading,\n currency: currency\n }) : null);\n}\n\nvar make = ListingsCarouselItemPrices;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Hooks = require(\"../../../../libs/Hooks.bs.js\");\nvar React = require(\"react\");\nvar Skeleton = require(\"../../../../styleguide/components/Skeleton/Skeleton.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar GoogleMap = require(\"../../../../styleguide/components/GoogleMap/GoogleMap.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar RailsContext = require(\"../../../../models/RailsContext.bs.js\");\nvar GoogleMapsEmbed = require(\"../../../../styleguide/components/GoogleMap/GoogleMapsEmbed.bs.js\");\nvar SlvListingLocations = require(\"../ListingLocations/SlvListingLocations.bs.js\");\nvar SlvLocationModuleScss = require(\"./SlvLocation.module.scss\").default;\n\nvar css = SlvLocationModuleScss;\n\nfunction SlvLocation$GoogleMaps(props) {\n var listing = props.listing;\n var center = React.useMemo((function () {\n return {\n lat: listing.lat,\n lng: listing.lng\n };\n }), [\n listing.lat,\n listing.lng\n ]);\n return React.createElement(GoogleMap.make, {\n center: {\n TAG: /* Custom */1,\n _0: center\n },\n zoom: 16,\n className: css.map,\n children: Caml_option.some(React.createElement(GoogleMap.Marker.make, {\n shape: {\n TAG: /* Circle */1,\n _0: {\n center: center,\n radius: 120\n }\n }\n })),\n googleMapsKey: props.googleMapsKey\n });\n}\n\nvar GoogleMaps = {\n make: SlvLocation$GoogleMaps\n};\n\nfunction SlvLocation(props) {\n var listing = props.listing;\n var googleMapsKey = RailsContext.getGoogleMapsKey(undefined);\n var triggerToLoadMap = React.useRef(null);\n var shouldRenderGoogleMap = Hooks.useIsVisibleOnce(triggerToLoadMap, undefined, \"500px 0px\", undefined, undefined);\n var match = RailsContext.getFeatureFlags(undefined).useSlvEmbededGoogleMaps;\n var tmp;\n tmp = shouldRenderGoogleMap ? (\n googleMapsKey === \"\" ? null : (\n match ? React.createElement(GoogleMapsEmbed.make, {\n apiKey: googleMapsKey,\n width: \"100%\",\n height: \"370\",\n lat: listing.lat,\n lng: listing.lng,\n zoom: 16\n }) : React.createElement(SlvLocation$GoogleMaps, {\n listing: listing,\n googleMapsKey: googleMapsKey\n })\n )\n ) : React.createElement(Skeleton.make, {\n height: 370\n });\n return React.createElement(SlvBlock.make, {\n id: \"Location\",\n children: null,\n ref: triggerToLoadMap\n }, React.createElement(\"div\", {\n className: css.titleWrapper\n }, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.location.title\",\n defaultMessage: \"Location\"\n })\n }), React.createElement(SlvListingLocations.make, {\n listing: listing,\n booking: props.booking\n })), tmp);\n}\n\nvar zoomLevel = 16;\n\nvar make = SlvLocation;\n\nexports.css = css;\nexports.zoomLevel = zoomLevel;\nexports.GoogleMaps = GoogleMaps;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar IconControl = require(\"../../../../styleguide/components/Control/IconControl.bs.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar FeedbackIcon = require(\"../../../../styleguide/icons/FeedbackIcon.bs.js\");\n\nvar feedback = {\n id: \"slv.navbar.feedback\",\n defaultMessage: \"Feedback\"\n};\n\nvar Messages = {\n feedback: feedback\n};\n\nfunction SlvNavbarFeedbackListing(props) {\n var screen = props.screen;\n var showListingFeedbackReportModal = props.showListingFeedbackReportModal;\n var intl = ReactIntl.useIntl();\n if (screen === \"XS\" || screen === \"SM\") {\n return React.createElement(IconControl.make, {\n size: \"MD\",\n color: \"White\",\n title: intl.formatMessage(feedback),\n icon: FeedbackIcon,\n onClick: (function (param) {\n Curry._1(showListingFeedbackReportModal, undefined);\n }),\n testId: \"listing-feedback-button\"\n });\n } else {\n return React.createElement(TextControl.make, {\n testId: \"listing-feedback-button\",\n style: /* Action */3,\n icon: {\n component: FeedbackIcon,\n position: /* Left */0,\n title: intl.formatMessage(feedback)\n },\n onClick: (function (param) {\n Curry._1(showListingFeedbackReportModal, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.navbar.feedback\",\n defaultMessage: \"Feedback\"\n })\n });\n }\n}\n\nvar make = SlvNavbarFeedbackListing;\n\nexports.Messages = Messages;\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Gtag = require(\"../../../../libs/Gtag.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar HeartIcon = require(\"../../../../styleguide/icons/HeartIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar IconControl = require(\"../../../../styleguide/components/Control/IconControl.bs.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar HeartFilledIcon = require(\"../../../../styleguide/icons/HeartFilledIcon.bs.js\");\n\nvar save = {\n id: \"slv.navbar.save\",\n defaultMessage: \"Save\"\n};\n\nvar saved = {\n id: \"slv.navbar.saved\",\n defaultMessage: \"Saved\"\n};\n\nvar Messages = {\n save: save,\n saved: saved\n};\n\nfunction SlvNavbarSaveListing(props) {\n var sampleMode = props.sampleMode;\n var screen = props.screen;\n var showSaveListingToListModal = props.showSaveListingToListModal;\n var user = props.user;\n var listing = props.listing;\n var intl = ReactIntl.useIntl();\n var savedToTripList = listing.userContext.savedToTripList;\n var showModal = function (param) {\n var match = user.id;\n if (match !== undefined) {\n return Curry._1(showSaveListingToListModal, undefined);\n } else {\n return user.authenticateWithCallback((function (param) {\n if (sampleMode) {\n window.location = \"\";\n } else {\n Curry._1(showSaveListingToListModal, undefined);\n }\n Gtag.Slv.saveButtonClick(listing.id);\n }), undefined);\n }\n };\n if (screen === \"XS\" || screen === \"SM\") {\n return React.createElement(IconControl.make, {\n size: \"MD\",\n color: \"White\",\n title: savedToTripList ? intl.formatMessage(saved) : intl.formatMessage(save),\n icon: savedToTripList ? HeartFilledIcon : HeartIcon,\n setIconColor: false,\n onClick: (function (param) {\n showModal(undefined);\n }),\n testId: \"save-listing-button\",\n iconTestId: savedToTripList ? \"saved-listing\" : \"not-saved-listing\"\n });\n } else {\n return React.createElement(TextControl.make, {\n testId: \"save-listing-button\",\n style: /* Action */3,\n icon: {\n component: savedToTripList ? HeartFilledIcon : HeartIcon,\n position: /* Left */0,\n testId: savedToTripList ? \"saved-listing\" : \"not-saved-listing\",\n title: savedToTripList ? intl.formatMessage(saved) : intl.formatMessage(save),\n color: savedToTripList ? \"Error\" : \"General\"\n },\n onClick: (function (param) {\n showModal(undefined);\n }),\n children: savedToTripList ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.navbar.saved\",\n defaultMessage: \"Saved\"\n }) : React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.navbar.save\",\n defaultMessage: \"Save\"\n })\n });\n }\n}\n\nvar make = SlvNavbarSaveListing;\n\nexports.Messages = Messages;\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar ExportIcon = require(\"../../../../styleguide/icons/ExportIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar IconControl = require(\"../../../../styleguide/components/Control/IconControl.bs.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\n\nvar share = {\n id: \"slv.navbar.share\",\n defaultMessage: \"Share\"\n};\n\nvar Messages = {\n share: share\n};\n\nfunction SlvNavbarShareListing(props) {\n var screen = props.screen;\n var showShareListingModal = props.showShareListingModal;\n var intl = ReactIntl.useIntl();\n if (screen === \"XS\" || screen === \"SM\") {\n return React.createElement(IconControl.make, {\n size: \"MD\",\n color: \"White\",\n title: intl.formatMessage(share),\n icon: ExportIcon,\n onClick: (function (param) {\n Curry._1(showShareListingModal, undefined);\n }),\n testId: \"listing-share-button\"\n });\n } else {\n return React.createElement(TextControl.make, {\n testId: \"listing-share-button\",\n style: /* Action */3,\n icon: {\n component: ExportIcon,\n position: /* Left */0,\n title: intl.formatMessage(share)\n },\n onClick: (function (param) {\n Curry._1(showShareListingModal, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.navbar.share\",\n defaultMessage: \"Share\"\n })\n });\n }\n}\n\nvar make = SlvNavbarShareListing;\n\nexports.Messages = Messages;\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../../../../styleguide/components/Link/A.bs.js\");\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Api = require(\"../../../../api/Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../../libs/Hooks.bs.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Sentry = require(\"../../../../bindings/Sentry.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../../bindings/Promise.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar ArrowRight = require(\"../../../../styleguide/icons/ArrowRight.bs.js\");\nvar SlvBooking = require(\"../SlvBooking.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar RailsContext = require(\"../../../../models/RailsContext.bs.js\");\nvar SearchParams = require(\"../../../../libs/SearchParams.bs.js\");\nvar ListingsCarousel = require(\"../ListingsCarousel/ListingsCarousel.bs.js\");\nvar SlvNearbyAndSimilarListingsModuleScss = require(\"./SlvNearbyAndSimilarListings.module.scss\").default;\n\nvar css = SlvNearbyAndSimilarListingsModuleScss;\n\nvar listingDimensions = {\n listingMargin: 12,\n listingWidth: 300,\n imageWidth: 300,\n imageHeight: 200\n};\n\nvar mobileListingDimensions = {\n listingMargin: 12,\n listingWidth: 240,\n imageWidth: 240,\n imageHeight: 160\n};\n\nfunction buildListingLinkUrl(htmlUrl) {\n return htmlUrl + SearchParams.getQuery(undefined);\n}\n\nvar initialState = {\n listings: undefined,\n status: /* Initial */0\n};\n\nfunction SlvNearbyAndSimilarListings(props) {\n var screen = props.screen;\n var booking = props.booking;\n var listing = props.listing;\n var match = Hooks.useReducer(initialState, (function (state, action) {\n if (typeof action === \"number\") {\n if (action !== 0) {\n return {\n TAG: /* Update */0,\n _0: {\n listings: state.listings,\n status: /* FailedListingsFetch */3\n }\n };\n } else {\n return {\n TAG: /* Update */0,\n _0: {\n listings: state.listings,\n status: /* ListingsLoading */1\n }\n };\n }\n } else {\n return {\n TAG: /* Update */0,\n _0: {\n listings: action._0,\n status: /* ListingsLoaded */2\n }\n };\n }\n }));\n var dispatch = match[1];\n var state = match[0];\n React.useEffect((function () {\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n var exit = 0;\n if (match !== undefined) {\n if (match$1 !== undefined) {\n exit = 1;\n }\n \n } else if (match$1 === undefined) {\n exit = 1;\n }\n if (exit === 1) {\n Curry._1(dispatch, /* SetListingsLoading */0);\n $$Promise.wait(Api.getNearbyAndSimilarListings(listing.id, SlvBooking.Input.toUrlParams(undefined, booking.input)), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, /* SetListings */{\n _0: x._0\n });\n }\n Sentry.error1({\n rootModule: \"SlvNearbyAndSimilarListings\",\n subModulePath: /* [] */0,\n value: \"make\",\n fullPath: \"SlvNearbyAndSimilarListings.make\"\n }, \"NearbyAndSimilarListingsRequest::Error\", [\n \"Error\",\n x._0\n ]);\n Curry._1(dispatch, /* SetFailedListingsFetch */1);\n }));\n }\n \n }), [\n booking.input.checkIn,\n booking.input.checkOut\n ]);\n var listings = state.listings;\n if (listings !== undefined && listings.length !== 0) {\n return React.createElement(SlvBlock.make, {\n id: \"SimilarListings\",\n children: null\n }, React.createElement(\"div\", {\n className: css.titleWrapper\n }, React.createElement(SlvBlock.SubTitle.make, {\n className: css.subtitle,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.title\",\n defaultMessage: \"Places you might like\"\n })\n }), React.createElement(A.make, {\n href: Route.similarListingsMapUrl(RailsContext.getAppDomain(undefined), listing.id, SlvBooking.Input.toUrlParams(undefined, booking.input)),\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n style: /* General */0,\n className: css.seeAllLink,\n onClick: (function (param) {\n Amplitude.Slv.redirectedToSimilarListingsPage(listing.id);\n }),\n testId: \"similar-listings-see-all\",\n children: null\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.similar-listings.see-all\",\n defaultMessage: \"See All\"\n }), React.createElement(ArrowRight.make, {\n title: \"Right Arrow Icon\",\n size: \"MD\",\n color: \"General\",\n className: css.rightArrowIcon\n }))), React.createElement(ListingsCarousel.make, {\n listings: state.listings,\n listingsLoading: state.status === /* ListingsLoading */1,\n buildListingLink: buildListingLinkUrl,\n onListingClick: (function (listingTile) {\n Amplitude.Slv.nearbyAndSimilarListings(listingTile.id, Listing.Tile.isVerified(listingTile));\n }),\n className: screen === \"XS\" || screen === \"SM\" || screen === \"MD\" ? css.listingsCarouselContainer : Cx.cx([\n css.listingsCarouselContainer,\n css.listingsCarouselContainerWithControls\n ]),\n listingLinkClassName: css.listingLink,\n prevControlClassName: css.prevControlBtn,\n nextControlClassName: css.nextControlBtn,\n checkIn: booking.input.checkIn,\n checkOut: booking.input.checkOut,\n controlsStyle: screen === \"XS\" || screen === \"SM\" || screen === \"MD\" ? /* Overlay */1 : /* Side */0,\n showCapacityDetails: true,\n showBestAveragePrice: true,\n showTitleWithReview: true,\n listingDimensions: screen === \"XS\" || screen === \"SM\" ? mobileListingDimensions : listingDimensions,\n withScrollbar: screen === \"XS\" || screen === \"SM\" || screen === \"MD\"\n }));\n } else {\n return null;\n }\n}\n\nvar make = SlvNearbyAndSimilarListings;\n\nexports.css = css;\nexports.listingDimensions = listingDimensions;\nexports.mobileListingDimensions = mobileListingDimensions;\nexports.buildListingLinkUrl = buildListingLinkUrl;\nexports.initialState = initialState;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Fn = require(\"../../../../libs/Fn.bs.js\");\nvar Gtag = require(\"../../../../libs/Gtag.bs.js\");\nvar React = require(\"react\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar WithDataProps = require(\"../../../../styleguide/components/WithDataProps/WithDataProps.bs.js\");\n\nvar notifyGaOnGalleryOpened = Fn.once(function (listingId) {\n Gtag.Slv.galleryOpened(listingId);\n });\n\nvar make = React.forwardRef(function (props, ref) {\n var enableSwipeToOpen = props.enableSwipeToOpen;\n var className = props.className;\n var listingId = props.listingId;\n var className$1 = className !== undefined ? className : \"\";\n var enableSwipeToOpen$1 = enableSwipeToOpen !== undefined ? enableSwipeToOpen : false;\n var notifyGaOnGalleryOpened$1 = React.useCallback((function (param) {\n notifyGaOnGalleryOpened(listingId);\n }), []);\n return React.createElement(WithDataProps.make, {\n props: {\n \"data-enable-swipe-to-open\": enableSwipeToOpen$1\n },\n children: React.createElement(\"div\", {\n ref: Belt_Option.map((ref == null) ? undefined : Caml_option.some(ref), (function (prim) {\n return prim;\n })),\n className: Cx.cx([\n \"fng-gallery\",\n className$1\n ]),\n id: props.id,\n onClick: !props.isManagedByCurrentUser ? notifyGaOnGalleryOpened$1 : undefined\n }, props.children)\n });\n });\n\nexports.notifyGaOnGalleryOpened = notifyGaOnGalleryOpened;\nexports.make = make;\n/* notifyGaOnGalleryOpened Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar $$Image = require(\"../../../../styleguide/components/Image/Image.bs.js\");\nvar React = require(\"react\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar WithDataProps = require(\"../../../../styleguide/components/WithDataProps/WithDataProps.bs.js\");\nvar AwsImageHandlerV5 = require(\"../../../../libs/AwsImageHandlerV5.bs.js\");\nvar SlvPhotoModuleScss = require(\"./SlvPhoto.module.scss\").default;\n\nvar css = SlvPhotoModuleScss;\n\nfunction SlvPhoto(props) {\n var onError = props.onError;\n var onLoad = props.onLoad;\n var alt = props.alt;\n var fetchPriority = props.fetchPriority;\n var children = props.children;\n var imageClassName = props.imageClassName;\n var className = props.className;\n var photo = props.photo;\n var className$1 = className !== undefined ? className : \"\";\n var imageClassName$1 = imageClassName !== undefined ? imageClassName : \"\";\n var children$1 = children !== undefined ? Caml_option.valFromOption(children) : null;\n var fetchPriority$1 = fetchPriority !== undefined ? fetchPriority : /* Low */1;\n var alt$1 = alt !== undefined ? alt : \"\";\n var fullHeight = AwsImageHandlerV5.imageDefaultDimensions[1];\n var fullWidth = AwsImageHandlerV5.imageDefaultDimensions[0];\n var fullUrl = React.useMemo((function () {\n return AwsImageHandlerV5.buildImageUrl(photo, fullWidth, fullHeight, undefined, /* WebP */2, undefined);\n }), [\n photo,\n fullWidth,\n fullHeight\n ]);\n return React.createElement(\"figure\", {\n className: Cx.cx([\n className$1,\n props.hidden ? css.hidden : \"\"\n ])\n }, React.createElement(WithDataProps.make, {\n props: {\n \"data-size\": \"\" + fullWidth + \"x\" + fullHeight,\n \"data-photourl\": fullUrl\n },\n children: React.createElement(\"a\", {\n href: fullUrl,\n rel: \"nofollow\"\n }, React.createElement($$Image.make, {\n className: imageClassName$1,\n url: Curry._1(AwsImageHandlerV5.ImageUrl.toString, photo),\n fetchWidth: props.width,\n fetchHeight: props.height,\n alt: alt$1,\n onLoad: onLoad !== undefined ? onLoad : (function (prim) {\n \n }),\n onError: onError !== undefined ? onError : (function (prim) {\n \n }),\n withLoader: props.withLoader,\n format: /* WebP */2,\n loading: props.loading,\n fetchPriority: fetchPriority$1\n }), children$1)\n }));\n}\n\nvar make = SlvPhoto;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Vrbp = require(\"../../../../models/Vrbp.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar StarIcon = require(\"../../../../styleguide/icons/StarIcon.bs.js\");\nvar VrboIcon = require(\"../../../../styleguide/icons/VrboIcon.bs.js\");\nvar Amplitude = require(\"../../../../libs/Amplitude.bs.js\");\nvar AirbnbIcon = require(\"../../../../styleguide/icons/AirbnbIcon.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar TextControl = require(\"../../../../styleguide/components/Control/TextControl.bs.js\");\nvar SlvTransferLink = require(\"../BookingDeals/components/SlvTransferLink.bs.js\");\nvar ResponsiveDialog = require(\"../../../../styleguide/components/ResponsiveDialog/ResponsiveDialog.bs.js\");\nvar BookingcomFullIcon = require(\"../../../../styleguide/icons/BookingcomFullIcon.bs.js\");\nvar SlvReviewsModuleScss = require(\"./SlvReviews.module.scss\").default;\nvar RatingWithReviewsCounter = require(\"../../../../styleguide/components/Rating/RatingWithReviewsCounter.bs.js\");\n\nvar css = SlvReviewsModuleScss;\n\nfunction createMarkup(text) {\n return {\n __html: text.replace(/\\n/g, \"<br />\")\n };\n}\n\nfunction SlvReviews$AiReviewsSummary(props) {\n var reviewsSummary = props.reviewsSummary;\n var match = React.useState(function () {\n return false;\n });\n if (reviewsSummary === undefined) {\n return null;\n }\n var setExpanded = match[1];\n var expanded = match[0];\n if (reviewsSummary === \"\") {\n return null;\n } else {\n return React.createElement(\"div\", undefined, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.ai-reviews-summarization.title\",\n defaultMessage: \"HiChee AI Review Summary\"\n })\n }), React.createElement(\"div\", {\n className: Cx.cx([\n \"tw-overflow-hidden tw-text-neutral-800 tw-text-[14px] tw-leading-[21px] lg:tw-text-[16px] lg:tw-leading-[24px]\",\n expanded ? \"\" : \"tw-line-clamp-3\"\n ]),\n dangerouslySetInnerHTML: Caml_option.some(createMarkup(reviewsSummary))\n }), expanded ? React.createElement(TextControl.make, {\n className: \"tw-mt-16 lg:tw-text-[16px]\",\n style: /* Accented */1,\n onClick: (function (param) {\n Curry._1(setExpanded, (function (param) {\n return false;\n }));\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.ai-reviews-summary.show-less-control\",\n defaultMessage: \"View less\"\n })\n }) : React.createElement(React.Fragment, undefined, React.createElement(TextControl.make, {\n className: \"tw-mt-16 lg:tw-text-[16px]\",\n style: /* Accented */1,\n onClick: (function (param) {\n Curry._1(setExpanded, (function (param) {\n return true;\n }));\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.ai-reviews-summary.show-all-control\",\n defaultMessage: \"View full summarization\"\n })\n })));\n }\n}\n\nvar AiReviewsSummary = {\n make: SlvReviews$AiReviewsSummary\n};\n\nfunction SlvReviews$HicheeAverageRatingExplainerPopup(props) {\n return React.createElement(\"div\", {\n className: css.hicheeAverageRatingExplainerPopup\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.tooltip.subtitle\",\n defaultMessage: \"HiChee's average ratings score for this rental is based on the aggregated ratings data from the Vacation Rental Website listings we found.\"\n }));\n}\n\nvar HicheeAverageRatingExplainerPopup = {\n make: SlvReviews$HicheeAverageRatingExplainerPopup\n};\n\nfunction SlvReviews$ReviewButton(props) {\n return React.createElement(Button.AsNativeLink.make, {\n href: props.transferPageUrl,\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n size: /* MD */1,\n color: /* Secondary */1,\n margin: /* LeftMargin */1,\n className: css.reviewButton,\n onClick: props.onClick,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.read\",\n defaultMessage: \"Read on {provider}\",\n values: {\n provider: Vrbp.Provider.toView(props.provider)\n }\n })\n });\n}\n\nvar ReviewButton = {\n make: SlvReviews$ReviewButton\n};\n\nfunction SlvReviews$ReviewButtonRestricted(props) {\n var showFeatureLimitModal = props.showFeatureLimitModal;\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n margin: /* LeftMargin */1,\n className: css.reviewButton,\n onClick: (function (param) {\n Curry._1(showFeatureLimitModal, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.read\",\n defaultMessage: \"Read on {provider}\",\n values: {\n provider: Vrbp.Provider.toView(props.provider)\n }\n })\n });\n}\n\nvar ReviewButtonRestricted = {\n make: SlvReviews$ReviewButtonRestricted\n};\n\nfunction SlvReviews$ReviewButtonWithLogin(props) {\n var user = props.user;\n return React.createElement(Button.make, {\n size: /* MD */1,\n color: /* Secondary */1,\n margin: /* LeftMargin */1,\n className: css.reviewButton,\n onClick: (function (param) {\n SlvTransferLink.logIn(user);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.read\",\n defaultMessage: \"Read on {provider}\",\n values: {\n provider: Vrbp.Provider.toView(props.provider)\n }\n })\n });\n}\n\nvar ReviewButtonWithLogin = {\n make: SlvReviews$ReviewButtonWithLogin\n};\n\nfunction SlvReviews$ProviderRow(props) {\n var user = props.user;\n var providerRating = props.providerRating;\n var booking = props.booking;\n var provider = props.provider;\n var currency = props.currency;\n var verified = props.verified;\n var listing = props.listing;\n var transferPageUrl = React.useMemo((function () {\n return Route.transferPageWithBookingData(listing.id, provider, booking.input.checkIn, booking.input.checkOut, booking.input.adults, booking.input.children, booking.input.infants, booking.input.pets, currency, booking.input.locale, booking.input.countryOverride, /* PageSlv */0);\n }), [\n currency,\n booking\n ]);\n var tmp;\n var exit = 0;\n if (providerRating !== undefined && providerRating.count > 0) {\n tmp = React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.reviews\",\n defaultMessage: \"{reviews, plural, =0 {No reviews} one {# review} other {# reviews}}\",\n values: {\n reviews: providerRating.count\n }\n });\n } else {\n exit = 1;\n }\n if (exit === 1) {\n tmp = React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.check\",\n defaultMessage: \"Check reviews on {provider}\",\n values: {\n provider: Vrbp.Provider.toView(provider)\n }\n });\n }\n var match = SlvTransferLink.shouldAuthenticate(user, listing);\n return React.createElement(\"div\", {\n className: css.providerRowWrapper\n }, React.createElement(\"div\", {\n className: css.providerAndRatingWrapper\n }, React.createElement(\"div\", {\n className: css.logoAndReviewsWrapper\n }, provider !== 0 ? React.createElement(props.icon.make, {\n size: \"SM\",\n className: css.providerIcon\n }) : null, React.createElement(\"div\", {\n className: css.providerNameAndLinkWrapper\n }, React.createElement(\"div\", {\n className: css.providerName\n }, React.createElement(\"span\", undefined, Vrbp.Provider.toView(provider))), React.createElement(\"div\", {\n className: css.reviewsCount\n }, tmp))), providerRating !== undefined && providerRating.count > 0 ? React.createElement(RatingWithReviewsCounter.make, {\n providerRating: providerRating,\n className: css.providerRating,\n size: \"LG\",\n reviewsCountStyle: \"OnlyCount\"\n }) : null), match ? React.createElement(SlvReviews$ReviewButtonWithLogin, {\n provider: provider,\n user: user\n }) : (\n props.canExternalRedirect ? React.createElement(SlvReviews$ReviewButton, {\n provider: provider,\n transferPageUrl: transferPageUrl,\n onClick: (function (param) {\n switch (provider) {\n case /* Hichee */0 :\n return ;\n case /* Airbnb */1 :\n return Amplitude.Slv.readAirbnb(listing.id, verified);\n case /* Bookingcom */2 :\n return Amplitude.Slv.readBookingcom(listing.id, verified);\n case /* Vrbo */3 :\n return Amplitude.Slv.readVrbo(listing.id, verified);\n \n }\n })\n }) : React.createElement(SlvReviews$ReviewButtonRestricted, {\n provider: provider,\n showFeatureLimitModal: props.showFeatureLimitModal\n })\n ));\n}\n\nvar ProviderRow = {\n make: SlvReviews$ProviderRow\n};\n\nfunction SlvReviews(props) {\n var canExternalRedirectData = props.canExternalRedirectData;\n var showFeatureLimitModal = props.showFeatureLimitModal;\n var user = props.user;\n var booking = props.booking;\n var listing = props.listing;\n var match = listing.providersRatings.metaRating.count;\n var match$1 = listing.vrbpData.airbnb;\n var match$2 = listing.vrbpData.bookingcom;\n var match$3 = listing.vrbpData.vrbo;\n return React.createElement(SlvBlock.make, {\n id: \"Reviews\",\n children: React.createElement(\"div\", {\n className: css.reviewsContainer\n }, React.createElement(\"div\", undefined, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.title\",\n defaultMessage: \"Reviews\"\n })\n }), React.createElement(\"div\", {\n className: css.providersRatingsWrapper\n }, React.createElement(\"div\", {\n className: css.hicheeRatingWrapper\n }, React.createElement(\"div\", {\n className: css.starIconWrapper\n }, match !== 0 ? React.createElement(StarIcon.make, {\n size: \"SM\",\n fill: \"Full\"\n }) : React.createElement(StarIcon.make, {\n size: \"SM\",\n fill: \"Empty\"\n })), React.createElement(\"div\", {\n className: css.averageRatingWithTooltip\n }, React.createElement(RatingWithReviewsCounter.make, {\n providerRating: listing.providersRatings.metaRating,\n className: css.averageRating,\n withStarIcon: false\n }), React.createElement(\"div\", {\n className: css.tooltipWithDot\n }, React.createElement(ResponsiveDialog.make, {\n control: React.createElement(\"div\", {\n className: css.aggregatedHicheeScore\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.tooltip.title\",\n defaultMessage: \"Aggregated HiChee Rating\"\n })),\n header: Caml_option.some(React.createElement(\"div\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.reviews.tooltip.title\",\n defaultMessage: \"Aggregated HiChee Rating\"\n }))),\n side: /* Top */0,\n children: React.createElement(SlvReviews$HicheeAverageRatingExplainerPopup, {})\n })))), match$1 !== undefined ? React.createElement(SlvReviews$ProviderRow, {\n listing: listing,\n verified: Listing.Contextual.isVerified(listing),\n currency: listing.currency,\n provider: /* Airbnb */1,\n booking: booking,\n providerRating: listing.providersRatings.airbnb,\n icon: AirbnbIcon,\n user: user,\n showFeatureLimitModal: showFeatureLimitModal,\n canExternalRedirect: canExternalRedirectData.airbnb\n }) : null, match$2 !== undefined ? React.createElement(SlvReviews$ProviderRow, {\n listing: listing,\n verified: Listing.Contextual.isVerified(listing),\n currency: listing.currency,\n provider: /* Bookingcom */2,\n booking: booking,\n providerRating: listing.providersRatings.bookingcom,\n icon: BookingcomFullIcon,\n user: user,\n showFeatureLimitModal: showFeatureLimitModal,\n canExternalRedirect: canExternalRedirectData.bookingcom\n }) : null, match$3 !== undefined ? React.createElement(SlvReviews$ProviderRow, {\n listing: listing,\n verified: Listing.Contextual.isVerified(listing),\n currency: listing.currency,\n provider: /* Vrbo */3,\n booking: booking,\n providerRating: listing.providersRatings.vrbo,\n icon: VrboIcon,\n user: user,\n showFeatureLimitModal: showFeatureLimitModal,\n canExternalRedirect: canExternalRedirectData.vrbo\n }) : null)), React.createElement(SlvReviews$AiReviewsSummary, {\n reviewsSummary: listing.reviewsSummary\n }))\n });\n}\n\nvar make = SlvReviews;\n\nexports.css = css;\nexports.createMarkup = createMarkup;\nexports.AiReviewsSummary = AiReviewsSummary;\nexports.HicheeAverageRatingExplainerPopup = HicheeAverageRatingExplainerPopup;\nexports.ReviewButton = ReviewButton;\nexports.ReviewButtonRestricted = ReviewButtonRestricted;\nexports.ReviewButtonWithLogin = ReviewButtonWithLogin;\nexports.ProviderRow = ProviderRow;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Time = require(\"../../../../libs/Time.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar SlvRulesModuleScss = require(\"./SlvRules.module.scss\").default;\n\nvar css = SlvRulesModuleScss;\n\nfunction SlvRules$Block(props) {\n var listing = props.listing;\n var checkInHour = listing.checkInHour;\n var tmp;\n if (checkInHour !== undefined) {\n var checkInHour$1 = Time.formatHourAmPm(checkInHour);\n tmp = React.createElement(\"li\", {\n className: css.rule\n }, React.createElement(React.Fragment, undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.rules.check-in\",\n defaultMessage: \"Check-in from: \"\n }), React.createElement(\"span\", undefined, checkInHour$1)));\n } else {\n tmp = null;\n }\n var checkOutHour = listing.checkOutHour;\n var tmp$1;\n if (checkOutHour !== undefined) {\n var checkOutHour$1 = Time.formatHourAmPm(checkOutHour);\n tmp$1 = React.createElement(\"li\", {\n className: css.rule\n }, React.createElement(React.Fragment, undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.rules.check-out\",\n defaultMessage: \"Check-out before: \"\n }), React.createElement(\"span\", undefined, checkOutHour$1)));\n } else {\n tmp$1 = null;\n }\n var customHouseRules = listing.customHouseRules;\n return React.createElement(SlvBlock.make, {\n id: \"Rules\",\n children: null\n }, React.createElement(SlvBlock.SubTitle.make, {\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.rules.title\",\n defaultMessage: \"House rules\"\n })\n }), React.createElement(\"ul\", {\n className: css.rules\n }, tmp, tmp$1, Belt_Array.map(Listing.Contextual.specifiedSystemHouseRulesWordings(listing), (function (rule) {\n return React.createElement(\"li\", {\n key: rule,\n className: css.rule\n }, React.createElement(\"span\", undefined, rule));\n })), customHouseRules.length !== 0 ? React.createElement(React.Fragment, undefined, React.createElement(SlvBlock.SubTitle.make, {\n className: css.subtitle,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.rules.custom.title\",\n defaultMessage: \"Additional rules\"\n })\n }), Belt_Array.map(customHouseRules, (function (rule) {\n return React.createElement(\"li\", {\n key: String(rule.id),\n className: css.rule\n }, React.createElement(\"span\", undefined, rule.name));\n }))) : null));\n}\n\nvar Block = {\n make: SlvRules$Block\n};\n\nfunction SlvRules(props) {\n var listing = props.listing;\n var match = listing.houseRuleChildrenAllowed;\n var match$1 = listing.houseRuleInfantsAllowed;\n var match$2 = listing.houseRulePetsAllowed;\n var match$3 = listing.houseRuleSmokingAllowed;\n var match$4 = listing.houseRulePartiesAllowed;\n var match$5 = listing.customHouseRules;\n var match$6 = listing.checkInHour;\n var match$7 = listing.checkOutHour;\n if (match !== undefined || match$1 !== undefined || match$2 !== undefined || match$3 !== undefined || match$4 !== undefined || match$5.length !== 0 || match$6 !== undefined || match$7 !== undefined) {\n return React.createElement(SlvRules$Block, {\n listing: listing\n });\n } else {\n return null;\n }\n}\n\nvar make = SlvRules;\n\nexports.css = css;\nexports.Block = Block;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Route = require(\"../../../../Route.bs.js\");\nvar React = require(\"react\");\nvar Button = require(\"../../../../styleguide/components/Button/Button.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar SlvSaveYourMoneyModuleScss = require(\"./SlvSaveYourMoney.module.scss\").default;\n\nvar css = SlvSaveYourMoneyModuleScss;\n\nfunction SlvSaveYourMoney(props) {\n return React.createElement(SlvBlock.make, {\n id: \"SaveYourMoney\",\n children: null,\n wrapperClassName: css.container\n }, React.createElement(SlvBlock.Title.make, {\n className: css.title,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.save-your-money.title\",\n defaultMessage: \"Save Even More Money On Your Next Vacation\"\n })\n }), React.createElement(\"div\", {\n className: css.description\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.save-your-money.description\",\n defaultMessage: \"35 awesome tips for budget travel: planning, transportation hacks, and affordable dining!\"\n })), React.createElement(\"div\", {\n className: css.buttonAndLogoContainer\n }, React.createElement(Button.AsNativeLink.make, {\n href: Route.blog(\"/35-secrets-to-save-money-on-your-next-vacation/\", undefined),\n target: /* Blank */{\n rel: {\n referrer: false,\n follow: false\n }\n },\n size: /* MD */1,\n color: /* Primary */0,\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.save-your-money.button\",\n defaultMessage: \"Read tips\"\n })\n })));\n}\n\nvar make = SlvSaveYourMoney;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar ShakaCodeDataAd = require(\"../../../../styleguide/components/ShakaCodeDataAd/ShakaCodeDataAd.bs.js\");\n\nvar ads = [React.createElement(ShakaCodeDataAd.make, {})];\n\nfunction SlvSideDesktopAd(props) {\n var match = React.useState(function () {\n return 0;\n });\n var setAdIndex = match[1];\n var match$1 = React.useState(function () {\n return false;\n });\n var setMouseHovering = match$1[1];\n var mouseHovering = match$1[0];\n React.useEffect((function () {\n if (mouseHovering) {\n return ;\n }\n var intervalId = setInterval((function (param) {\n Curry._1(setAdIndex, (function (adIndex) {\n if (adIndex === (ads.length - 1 | 0)) {\n return 0;\n } else {\n return adIndex + 1 | 0;\n }\n }));\n }), 10000);\n return (function (param) {\n clearInterval(intervalId);\n });\n }), [mouseHovering]);\n var ad = Belt_Option.getWithDefault(Belt_Array.get(ads, match[0]), React.createElement(ShakaCodeDataAd.make, {}));\n return React.createElement(\"div\", {\n className: \"tw-hidden lg:tw-block tw-mt-5 tw-self-start tw-w-slv-side-ads tw-sticky tw-top-[80px]\",\n onMouseEnter: (function (param) {\n Curry._1(setMouseHovering, (function (param) {\n return true;\n }));\n }),\n onMouseLeave: (function (param) {\n Curry._1(setMouseHovering, (function (param) {\n return false;\n }));\n })\n }, ad);\n}\n\nvar adRotationIntervalMs = 10000;\n\nvar make = SlvSideDesktopAd;\n\nexports.adRotationIntervalMs = adRotationIntervalMs;\nexports.ads = ads;\nexports.make = make;\n/* ads Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Api = require(\"../../../api/Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../libs/Hooks.bs.js\");\nvar React = require(\"react\");\nvar Sentry = require(\"../../../bindings/Sentry.bs.js\");\nvar SlvAds = require(\"./Ads/SlvAds.bs.js\");\nvar SlvFaq = require(\"./Faq/SlvFaq.bs.js\");\nvar Listing = require(\"../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../bindings/Promise.bs.js\");\nvar SlvRules = require(\"./Rules/SlvRules.bs.js\");\nvar Amplitude = require(\"../../../libs/Amplitude.bs.js\");\nvar SlvHeader = require(\"./Header/SlvHeader.bs.js\");\nvar SlvBooking = require(\"./SlvBooking.bs.js\");\nvar SlvListing = require(\"./SlvListing.bs.js\");\nvar SlvReviews = require(\"./Reviews/SlvReviews.bs.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar ModalDialog = require(\"../../../styleguide/components/Modal/ModalDialog.bs.js\");\nvar SlvLocation = require(\"./Location/SlvLocation.bs.js\");\nvar RailsContext = require(\"../../../models/RailsContext.bs.js\");\nvar SearchParams = require(\"../../../libs/SearchParams.bs.js\");\nvar SlvAmenities = require(\"./Amenities/SlvAmenities.bs.js\");\nvar SlvHostKnown = require(\"./Host/SlvHostKnown.bs.js\");\nvar HostBadgeInfo = require(\"./HostBadgeInfo/HostBadgeInfo.bs.js\");\nvar ListingTitles = require(\"../../../styleguide/components/ListingTitles/ListingTitles.bs.js\");\nvar SlvUpperBlock = require(\"./UpperBlock/SlvUpperBlock.bs.js\");\nvar ShakaCodeDataAd = require(\"../../../styleguide/components/ShakaCodeDataAd/ShakaCodeDataAd.bs.js\");\nvar SlvTransferLink = require(\"./BookingDeals/components/SlvTransferLink.bs.js\");\nvar SlvSaveYourMoney = require(\"./SaveYourMoney/SlvSaveYourMoney.bs.js\");\nvar SlvSideDesktopAd = require(\"./SideDesktopAd/SlvSideDesktopAd.bs.js\");\nvar SlvModuleScss = require(\"./Slv.module.scss\").default;\nvar FeatureLimitModal = require(\"../../../styleguide/components/UserSubscription/FeatureLimitModal.bs.js\");\nvar ScreenSizeContext = require(\"../../../contexts/ScreenSizeContext.bs.js\");\nvar SlvAreYouTheOwner = require(\"./AreYouTheOwner/SlvAreYouTheOwner.bs.js\");\nvar SubscriptionModal = require(\"../../../styleguide/components/Subscription/SubscriptionModal.bs.js\");\nvar ExtensionPromoCard = require(\"../../../styleguide/components/ExtensionPromoCard/ExtensionPromoCard.bs.js\");\nvar TripListsPromoCard = require(\"../../../styleguide/components/TripListsPromoCard/TripListsPromoCard.bs.js\");\nvar ListingCloseMatches = require(\"./ListingCloseMatches/ListingCloseMatches.bs.js\");\nvar SlvBookingInquiryModal = require(\"./BookingModal/SlvBookingInquiryModal.bs.js\");\nvar SlvBookingMessageModal = require(\"./BookingModal/SlvBookingMessageModal.bs.js\");\nvar ListingCloseMatchesModal = require(\"./ListingCloseMatches/ListingCloseMatchesModal.bs.js\");\nvar SlvDetailsAndDescription = require(\"./DetailsAndDescription/SlvDetailsAndDescription.bs.js\");\nvar SlvSharePricingContainer = require(\"../components/SlvSharePricingModal/SlvSharePricingContainer.bs.js\");\nvar SlvBookingCalculatorBadge = require(\"./BookingCalculator/SlvBookingCalculatorBadge.bs.js\");\nvar ListingFeedbackReportModal = require(\"./ListingFeedbackReport/ListingFeedbackReportModal.bs.js\");\nvar SaveListingToTripListModal = require(\"../../../styleguide/components/SaveListingToTripListModal/SaveListingToTripListModal.bs.js\");\nvar SlvNearbyAndSimilarListings = require(\"./NearbyAndSimilarListings/SlvNearbyAndSimilarListings.bs.js\");\nvar SlvBookingDealsAlternativeLinks = require(\"./BookingDeals/SlvBookingDealsAlternativeLinks.bs.js\");\nvar SlvBookingOwnListingWarningModal = require(\"./Booking/SlvBookingOwnListingWarningModal.bs.js\");\nvar Photoswipe = require(\"app/libs/utils/vendor/photoswipe\");\nvar $$History = require(\"app/libs/utils/localStorage/history\");\nvar PhotoswipeScss = require(\"app/assets/styles/vendor/photoswipe/photoswipe.scss\");\nvar FooterScss = require(\"../../../../bundles/layout/components/Footer/Footer.scss\").default;\n\nvar css = SlvModuleScss;\n\nvar footerCss = FooterScss;\n\nvar initialState_canExternalRedirectData = SlvTransferLink.ExternalRedirect.$$default;\n\nvar initialState_userSubscription = /* Ready */{\n _0: undefined\n};\n\nvar initialState = {\n closeMatchesMap: undefined,\n closeMatchesModalProvider: undefined,\n canExternalRedirectData: initialState_canExternalRedirectData,\n userSubscription: initialState_userSubscription\n};\n\nfunction isProviderAvailable(providerStatus) {\n return providerStatus !== undefined;\n}\n\nfunction Slv(props) {\n var sampleMode = props.sampleMode;\n var plans = props.plans;\n var user = props.user;\n var screen = React.useContext(ScreenSizeContext.Context.x);\n var match = user.id;\n var wasLoggedOut = React.useRef(match === undefined);\n var match$1 = SlvListing.useListing(user.id, props.listing);\n var updateListingSavedStatus = match$1.updateListingSavedStatus;\n var listing = match$1.listing;\n React.useEffect((function () {\n $$History.storeListingInHistory(listing.id);\n }), [listing.id]);\n var booking = SlvBooking.useBooking(sampleMode, listing, user);\n var sharePricingModal = ModalDialog.useModal(undefined);\n var listingFeedbackReportModal = ModalDialog.useModal(undefined);\n var listingCloseMatchesModal = ModalDialog.useModal(undefined);\n var saveListingToTripListModal = ModalDialog.useModal(undefined);\n var tripListCreateLimitModal = ModalDialog.useModal(undefined);\n var tripListAddListingLimitModal = ModalDialog.useModal(undefined);\n var listingExternalRedirectLimitModal = ModalDialog.useModal(undefined);\n var magicSearchLimitModal = ModalDialog.useModal(undefined);\n var subscriptionModal = ModalDialog.useModal(undefined);\n var match$2 = Hooks.useReducer({\n closeMatchesMap: undefined,\n closeMatchesModalProvider: undefined,\n canExternalRedirectData: props.initialCanExternalRedirectData,\n userSubscription: /* Ready */{\n _0: user.subscription\n }\n }, (function (state, action) {\n if (typeof action === \"number\") {\n switch (action) {\n case /* FetchCanExternalRedirectData */0 :\n return {\n TAG: /* SideEffects */2,\n _0: (function (param) {\n var dispatch = param.dispatch;\n $$Promise.wait(Api.getListingCanExternalRedirect(listing.id), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* FetchCanExternalRedirectDataSuccess */2,\n _0: x._0\n });\n }\n Sentry.error1({\n rootModule: \"Slv\",\n subModulePath: /* [] */0,\n value: \"make\",\n fullPath: \"Slv.make\"\n }, \"GetListingCanExternalRedirect::Error\", [\n \"Error\",\n x._0\n ]);\n Curry._1(dispatch, /* FetchCanExternalRedirectDataFailed */1);\n }));\n })\n };\n case /* FetchCanExternalRedirectDataFailed */1 :\n return {\n TAG: /* Update */0,\n _0: {\n closeMatchesMap: state.closeMatchesMap,\n closeMatchesModalProvider: state.closeMatchesModalProvider,\n canExternalRedirectData: SlvTransferLink.ExternalRedirect.$$default,\n userSubscription: state.userSubscription\n }\n };\n case /* ShowSubscriptionModal */2 :\n return {\n TAG: /* SideEffects */2,\n _0: (function (param) {\n Curry._1(subscriptionModal.show, undefined);\n })\n };\n \n }\n } else {\n switch (action.TAG | 0) {\n case /* AddCloseMatches */0 :\n return {\n TAG: /* Update */0,\n _0: {\n closeMatchesMap: ListingCloseMatches.addCloseMatches(state.closeMatchesMap, action._0),\n closeMatchesModalProvider: state.closeMatchesModalProvider,\n canExternalRedirectData: state.canExternalRedirectData,\n userSubscription: state.userSubscription\n }\n };\n case /* SetCloseMatchesModalProvider */1 :\n return {\n TAG: /* Update */0,\n _0: {\n closeMatchesMap: state.closeMatchesMap,\n closeMatchesModalProvider: action._0,\n canExternalRedirectData: state.canExternalRedirectData,\n userSubscription: state.userSubscription\n }\n };\n case /* FetchCanExternalRedirectDataSuccess */2 :\n var canExternalRedirectData = action._0;\n return {\n TAG: /* Update */0,\n _0: {\n closeMatchesMap: state.closeMatchesMap,\n closeMatchesModalProvider: state.closeMatchesModalProvider,\n canExternalRedirectData: canExternalRedirectData !== undefined ? canExternalRedirectData : SlvTransferLink.ExternalRedirect.$$default,\n userSubscription: state.userSubscription\n }\n };\n case /* UpdateSubscription */3 :\n return {\n TAG: /* Update */0,\n _0: {\n closeMatchesMap: state.closeMatchesMap,\n closeMatchesModalProvider: state.closeMatchesModalProvider,\n canExternalRedirectData: state.canExternalRedirectData,\n userSubscription: action._0\n }\n };\n \n }\n }\n }));\n var dispatch = match$2[1];\n var state = match$2[0];\n var bestDeal = React.useMemo((function () {\n var quote = SlvBooking.Status.quote(booking.status);\n return Belt_Option.flatMap(quote, (function (quote) {\n return quote.bestDeal;\n }));\n }), [booking.status]);\n var canDoMagicSearch = React.useMemo((function () {\n return SlvTransferLink.ExternalRedirect.canDoMagicSearch(state.canExternalRedirectData);\n }), [state.canExternalRedirectData]);\n var onCloseMatchesFetch = function (closeMatches) {\n Curry._1(dispatch, {\n TAG: /* AddCloseMatches */0,\n _0: closeMatches\n });\n };\n var showCloseMatches = function (provider) {\n Curry._1(dispatch, {\n TAG: /* SetCloseMatchesModalProvider */1,\n _0: provider\n });\n Curry._1(listingCloseMatchesModal.show, undefined);\n };\n var showExternalRedirectLimitModal = function (param) {\n Curry._1(listingExternalRedirectLimitModal.show, undefined);\n };\n var showMagicSearchLimitModal = function (param) {\n Curry._1(magicSearchLimitModal.show, undefined);\n };\n var providersAvailability = [\n {\n provider: /* Airbnb */1,\n available: Belt_Option.isSome(listing.vrbpData.airbnb)\n },\n {\n provider: /* Bookingcom */2,\n available: Belt_Option.isSome(listing.vrbpData.bookingcom)\n },\n {\n provider: /* Vrbo */3,\n available: Belt_Option.isSome(listing.vrbpData.vrbo)\n }\n ];\n var visuallyVerifiedListing = React.useMemo((function () {\n return Listing.Contextual.isVisuallyVerified(listing);\n }), []);\n var showListingFeedbackReportModal = function (param) {\n Amplitude.Slv.listingFeedbackReport(listing.id, Listing.Contextual.isVerified(listing));\n Curry._1(listingFeedbackReportModal.show, undefined);\n };\n var showSubscriptionModal = function (param) {\n Curry._1(dispatch, /* ShowSubscriptionModal */2);\n };\n var onSuccessModalClose = function (param) {\n window.location = \"\";\n };\n var loginAndExitSampleMode = function (param) {\n user.authenticateWithCallback((function (param) {\n window.location = \"\";\n }), undefined);\n };\n React.useEffect((function () {\n var match = user.id;\n Photoswipe.galleries.initAll(!visuallyVerifiedListing, listing, sharePricingModal.show, match !== undefined ? saveListingToTripListModal.show : (function (param) {\n user.authenticateWithCallback((function (param) {\n if (sampleMode) {\n window.location = \"\";\n return ;\n } else {\n return Curry._1(saveListingToTripListModal.show, undefined);\n }\n }), undefined);\n }), user, canDoMagicSearch, showMagicSearchLimitModal);\n return (function (param) {\n Photoswipe.galleries.cleanUp();\n });\n }), [\n screen,\n listing.owner,\n sharePricingModal,\n saveListingToTripListModal,\n canDoMagicSearch\n ]);\n React.useEffect((function () {\n window.scrollTo(window.scrollX, window.scrollY - 1);\n }), []);\n React.useEffect((function () {\n var externalRedirectLimitReached = SearchParams.getParams(undefined).get(\"external_redirect_limit_reached\");\n var match = user.subscription;\n var exit = 0;\n if (!(match !== undefined && match.status < 2)) {\n exit = 1;\n }\n if (exit === 1 && !(externalRedirectLimitReached == null) && externalRedirectLimitReached === \"true\") {\n Curry._1(listingExternalRedirectLimitModal.show, undefined);\n }\n \n }), []);\n React.useEffect((function () {\n var isLoggedIn = Belt_Option.isSome(user.id);\n if (isLoggedIn && wasLoggedOut.current) {\n Curry._1(dispatch, /* FetchCanExternalRedirectData */0);\n wasLoggedOut.current = false;\n }\n \n }), [user]);\n var type_ = Listing.Contextual.getHostType(listing);\n var provider = state.closeMatchesModalProvider;\n var limits = user.limits;\n return React.createElement(\"div\", undefined, React.createElement(\"div\", {\n className: css.container\n }, React.createElement(SlvHeader.make, {\n listing: listing,\n booking: booking,\n user: user,\n showSaveListingToListModal: saveListingToTripListModal.show,\n showShareListingModal: sharePricingModal.show,\n showListingFeedbackReportModal: showListingFeedbackReportModal,\n sampleMode: sampleMode\n }), React.createElement(SlvUpperBlock.make, {\n listing: listing,\n booking: booking,\n screen: screen,\n user: user,\n showListingFeedbackReportModal: showListingFeedbackReportModal,\n showShareListingModal: sharePricingModal.show,\n showSaveListingToListModal: saveListingToTripListModal.show,\n closeMatchesMap: state.closeMatchesMap,\n onCloseMatchesFetch: onCloseMatchesFetch,\n showListingCloseMatchesModal: showCloseMatches,\n resyncListing: match$1.resyncListing,\n showExternalRedirectLimitModal: showExternalRedirectLimitModal,\n showMagicSearchLimitModal: (function (param) {\n Curry._1(magicSearchLimitModal.show, undefined);\n }),\n canDoMagicSearch: canDoMagicSearch,\n canExternalRedirectData: state.canExternalRedirectData,\n sampleMode: sampleMode,\n loginAndExitSampleMode: loginAndExitSampleMode,\n bestDeal: bestDeal\n }), React.createElement(\"div\", {\n className: css.blocksContainer\n }, React.createElement(\"div\", {\n className: css.mainBlock\n }, React.createElement(\"div\", {\n className: css.content\n }, React.createElement(\"div\", {\n className: css.mainCol\n }, React.createElement(\"div\", {\n className: css.titleAndHostBadgeInfoWrapper\n }, React.createElement(ListingTitles.make, {\n listing: listing,\n providersAvailability: providersAvailability\n }), type_ !== undefined ? React.createElement(HostBadgeInfo.make, {\n type_: type_\n }) : null), React.createElement(SlvNearbyAndSimilarListings.make, {\n listing: listing,\n booking: booking,\n screen: screen\n }), React.createElement(SlvDetailsAndDescription.make, {\n listing: listing\n }), React.createElement(SlvAmenities.make, {\n listing: listing\n }), RailsContext.getFeatureFlags(undefined).showSlvBookingCalculator ? React.createElement(SlvBookingCalculatorBadge.make, {\n listing: listing,\n screen: screen,\n bookingStatus: booking.status,\n user: user,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch\n }) : null, visuallyVerifiedListing ? null : React.createElement(React.Fragment, undefined, React.createElement(SlvBookingDealsAlternativeLinks.make, {\n listing: listing,\n user: user,\n alternativeBookingLinks: listing.alternativeBookingLinks\n }), React.createElement(SlvAreYouTheOwner.make, {\n listing: listing\n })), React.createElement(SlvReviews.make, {\n listing: listing,\n booking: booking,\n user: user,\n showFeatureLimitModal: showExternalRedirectLimitModal,\n canExternalRedirectData: state.canExternalRedirectData\n }), React.createElement(SlvLocation.make, {\n listing: listing,\n booking: booking\n }), visuallyVerifiedListing ? null : React.createElement(SlvAds.make, {\n userSubscription: user.subscription\n }), Listing.Contextual.isVerified(listing) ? React.createElement(SlvRules.make, {\n listing: listing\n }) : null, visuallyVerifiedListing ? React.createElement(React.Fragment, undefined, React.createElement(SlvHostKnown.make, {\n listing: listing,\n booking: booking,\n screen: screen,\n user: user\n }), React.createElement(SlvAds.make, {\n userSubscription: user.subscription\n })) : null, React.createElement(SlvSaveYourMoney.make, {})))), React.createElement(SlvSideDesktopAd.make, {})), React.createElement(SlvFaq.make, {}), React.createElement(\"div\", {\n className: Cx.cx([\n footerCss.container,\n \"tw-pb-[24px] tw-flex tw-flex-col tw-gap-[36px]\"\n ])\n }, React.createElement(ExtensionPromoCard.make, {\n location: \"Slv\"\n }), React.createElement(ShakaCodeDataAd.make, {}), React.createElement(TripListsPromoCard.make, {\n location: \"Slv\"\n })), React.createElement(SlvBookingInquiryModal.make, {\n listing: listing,\n booking: booking,\n user: user\n }), React.createElement(SlvBookingMessageModal.make, {\n listing: listing,\n booking: booking,\n user: user,\n screen: screen\n }), React.createElement(SlvBookingOwnListingWarningModal.make, {\n booking: booking\n }), React.createElement(ListingFeedbackReportModal.make, {\n modal: listingFeedbackReportModal,\n listing: listing\n }), React.createElement(SaveListingToTripListModal.make, {\n modal: saveListingToTripListModal,\n listingId: listing.id,\n onSaveSuccess: (function (param) {\n Curry._2(updateListingSavedStatus, true, (function (prim) {\n \n }));\n }),\n onTripListCreateLimitError: (function (param) {\n Curry._1(tripListCreateLimitModal.show, undefined);\n }),\n onTripListAddListingLimitError: (function (param) {\n Curry._1(tripListAddListingLimitModal.show, undefined);\n })\n }), React.createElement(SlvSharePricingContainer.make, {\n modal: sharePricingModal,\n listing: listing,\n user: user,\n booking: booking\n }), React.createElement(ListingCloseMatchesModal.make, {\n modal: listingCloseMatchesModal,\n closeMatches: provider !== undefined ? ListingCloseMatches.findByProvider(state.closeMatchesMap, provider) : undefined,\n booking: booking\n }), limits !== undefined ? React.createElement(React.Fragment, undefined, plans !== undefined ? React.createElement(React.Fragment, undefined, React.createElement(FeatureLimitModal.ListingExternalRedirect.make, {\n modal: listingExternalRedirectLimitModal,\n onConfirm: showSubscriptionModal,\n plans: plans,\n userId: user.id\n }), React.createElement(FeatureLimitModal.MagicSearch.make, {\n modal: magicSearchLimitModal,\n onConfirm: showSubscriptionModal,\n plans: plans\n })) : null, React.createElement(FeatureLimitModal.TripListCreate.make, {\n modal: tripListCreateLimitModal,\n onConfirm: showSubscriptionModal,\n limits: limits,\n subscription: user.subscription\n }), React.createElement(FeatureLimitModal.TripListAddListing.make, {\n modal: tripListAddListingLimitModal,\n onConfirm: showSubscriptionModal,\n limits: limits,\n subscription: user.subscription\n })) : null), React.createElement(SubscriptionModal.make, {\n modal: subscriptionModal,\n onSubscriptionUpdate: (function (checkoutState) {\n Curry._1(dispatch, {\n TAG: /* UpdateSubscription */3,\n _0: checkoutState\n });\n }),\n onSuccessModalClose: onSuccessModalClose,\n userId: user.id\n }));\n}\n\nvar make = Slv;\n\nexports.css = css;\nexports.footerCss = footerCss;\nexports.initialState = initialState;\nexports.isProviderAvailable = isProviderAvailable;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Fn = require(\"../../../libs/Fn.bs.js\");\nvar Qs = require(\"../../../bindings/Qs.bs.js\");\nvar Qs$1 = require(\"qs\");\nvar Api = require(\"../../../api/Api.bs.js\");\nvar Opt = require(\"../../../libs/Opt.bs.js\");\nvar Bool = require(\"../../../libs/Bool.bs.js\");\nvar $$Date = require(\"../../../libs/Date.bs.js\");\nvar Gtag = require(\"../../../libs/Gtag.bs.js\");\nvar Sbjs = require(\"../../../libs/Sbjs.bs.js\");\nvar Vrbp = require(\"../../../models/Vrbp.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../libs/Hooks.bs.js\");\nvar Toast = require(\"../../../styleguide/components/Toast/Toast.bs.js\");\nvar React = require(\"react\");\nvar $$RegExp = require(\"../../../libs/RegExp.bs.js\");\nvar Belt_Id = require(\"rescript/lib/js/belt_Id.js\");\nvar Listing = require(\"../../../models/Listing.bs.js\");\nvar $$Promise = require(\"../../../bindings/Promise.bs.js\");\nvar Belt_Int = require(\"rescript/lib/js/belt_Int.js\");\nvar Belt_Set = require(\"rescript/lib/js/belt_Set.js\");\nvar Caml_obj = require(\"rescript/lib/js/caml_obj.js\");\nvar Debounce = require(\"rescript-debounce/src/Debounce.bs.js\");\nvar Amplitude = require(\"../../../libs/Amplitude.bs.js\");\nvar Belt_List = require(\"rescript/lib/js/belt_List.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Belt_Result = require(\"rescript/lib/js/belt_Result.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar Json_decode = require(\"@glennsl/bs-json/src/Json_decode.bs.js\");\nvar Json_encode = require(\"@glennsl/bs-json/src/Json_encode.bs.js\");\nvar BookingDates = require(\"../../../libs/BookingDates.bs.js\");\nvar Belt_MapString = require(\"rescript/lib/js/belt_MapString.js\");\nvar QuoteWebSockets = require(\"../../../api/requesters/booking/QuoteWebSockets.bs.js\");\nvar Caml_splice_call = require(\"rescript/lib/js/caml_splice_call.js\");\nvar NonSecure = require(\"nanoid/non-secure\");\nvar CalendarsUpdateWebSockets = require(\"../../../api/requesters/calendars/CalendarsUpdateWebSockets.bs.js\");\nvar DifferenceInCalendarMonths = require(\"date-fns/differenceInCalendarMonths\").default;\n\nvar BannerError = {};\n\nfunction bannerError(x) {\n if (typeof x === \"object\") {\n if (x.NAME === \"MinStayViolation\") {\n return \"MinStayViolation\";\n } else {\n return \"MaxGuestsViolation\";\n }\n } else if (x === \"NoCheckInAndCheckOutDates\") {\n return \"NoCheckInAndCheckOutDates\";\n } else if (x === \"CheckOutBeforeCheckIn\" || x === \"CheckInInThePast\" || x === \"NoCheckOutDate\" || x === \"CheckInAndCheckOutSameDay\" || x === \"NoCheckInDate\" || x === \"DatesUnavailable\") {\n return \"CalendarValidationError\";\n } else if (x === \"PetsNotAllowed\") {\n return \"PetsNotAllowed\";\n } else {\n return \"InfantsAndChildrenNotAllowed\";\n }\n}\n\nvar ValidationError = {\n bannerError: bannerError\n};\n\nfunction quote(x) {\n if (typeof x === \"number\") {\n return ;\n }\n if (x.TAG === /* FetchingQuote */0) {\n var match = x._0;\n if (typeof match === \"object\") {\n return match.VAL;\n } else {\n return ;\n }\n }\n var match$1 = x._0;\n if (match$1.TAG !== /* Ok */0) {\n return ;\n }\n var match$2 = match$1._0;\n if (typeof match$2 === \"object\") {\n return match$2.VAL;\n }\n \n}\n\nfunction bannerError$1(x) {\n if (typeof x === \"number\") {\n return ;\n }\n if (x.TAG !== /* Ready */1) {\n return ;\n }\n var match = x._0;\n if (match.TAG === /* Ok */0) {\n if (typeof match._0 === \"object\") {\n return ;\n } else {\n return \"NoCheckInAndCheckOutDates\";\n }\n }\n var match$1 = match._0;\n if (typeof match$1 === \"object\") {\n return bannerError(match$1.VAL);\n } else if (match$1 === \"FetchQuoteError\") {\n return \"FetchingQuoteError\";\n } else {\n return ;\n }\n}\n\nvar Status = {\n quote: quote,\n bannerError: bannerError$1\n};\n\nfunction yearFromDate(x) {\n return $$Date.Naive.year(x);\n}\n\nfunction monthFromDate(x) {\n return $$Date.Naive.month(x) + 1 | 0;\n}\n\nfunction make(x) {\n var year = String($$Date.Naive.year(x));\n var month = String(monthFromDate(x));\n return \"\" + year + \"-\" + month + \"\";\n}\n\nvar cmp = Caml_obj.compare;\n\nvar Comparable = Belt_Id.MakeComparable({\n cmp: cmp\n });\n\nfunction make$1(param) {\n return Belt_Set.make(Comparable);\n}\n\nvar $$Set = {\n make: make$1\n};\n\nvar Month = {\n make: make,\n Comparable: Comparable,\n $$Set: $$Set\n};\n\nfunction mergeLoadedMonths(year, month, quantity, months) {\n var startDate = new Date(year, month - 1 | 0);\n var months$1 = months;\n for(var i = 0; i < quantity; ++i){\n months$1 = Belt_Set.add(months$1, make($$Date.Naive.addMonths(startDate, i)));\n }\n return months$1;\n}\n\nfunction mergeCalendarDays(days, dict) {\n return Belt_Array.reduce(days, dict, (function (dict, day) {\n return Belt_MapString.set(dict, day.onDate, day);\n }));\n}\n\nfunction calendarDayByDate(date, calendarDays) {\n return Belt_MapString.get(calendarDays, $$Date.Naive.toString(date));\n}\n\nfunction providerByTypeForCalendarDaysDate(provider, date, calendarDays) {\n var day = calendarDayByDate(date, calendarDays);\n if (day === undefined) {\n return ;\n }\n var providerString = Vrbp.Provider.toString(provider);\n return Caml_option.undefined_to_opt(day.providers.find(function (providerDay) {\n return providerDay.provider === providerString;\n }));\n}\n\nfunction isProviderDayAvailableForCheckIn(day, provider, calendarDays) {\n var providerDay = providerByTypeForCalendarDaysDate(provider, day, calendarDays);\n if (providerDay !== undefined && providerDay.availableForCheckIn) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction isProviderDayAvailableForStay(day, provider, calendarDays) {\n var providerDay = providerByTypeForCalendarDaysDate(provider, day, calendarDays);\n if (providerDay !== undefined && providerDay.availableForStay) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction isProviderDayAvailableForStayOrCheckOut(day, provider, calendarDays) {\n var prevDay = $$Date.Naive.addDays(day, -1);\n var prevProviderDay = providerByTypeForCalendarDaysDate(provider, prevDay, calendarDays);\n var providerDay = providerByTypeForCalendarDaysDate(provider, day, calendarDays);\n if (prevProviderDay !== undefined && prevProviderDay.availableForStay) {\n if (providerDay === undefined) {\n return false;\n }\n if (!providerDay.availableForStay) {\n return true;\n }\n \n }\n if (providerDay !== undefined && providerDay.availableForStay) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction isProviderStayAvailable(checkIn, checkOut, provider, calendarDays) {\n var result = true;\n var iteration = 1;\n var daysDiff = $$Date.Naive.differenceInCalendarDays(checkOut, checkIn);\n if (!isProviderDayAvailableForCheckIn(checkIn, provider, calendarDays)) {\n result = false;\n }\n while(result && iteration < daysDiff) {\n var tmpDate = $$Date.Naive.addDays(checkIn, iteration);\n if (!isProviderDayAvailableForStay(tmpDate, provider, calendarDays)) {\n result = false;\n }\n iteration = iteration + 1 | 0;\n };\n if (!isProviderDayAvailableForStayOrCheckOut(checkOut, provider, calendarDays)) {\n result = false;\n }\n return result;\n}\n\nfunction isStayAvailable(checkIn, checkOut, calendarDays) {\n var isHicheeStayAvailable = isProviderStayAvailable(checkIn, checkOut, /* Hichee */0, calendarDays);\n var isAirbnbStayAvailable = isProviderStayAvailable(checkIn, checkOut, /* Airbnb */1, calendarDays);\n var isVrboStayAvailable = isProviderStayAvailable(checkIn, checkOut, /* Vrbo */3, calendarDays);\n var isBookingcomStayAvailable = isProviderStayAvailable(checkIn, checkOut, /* Bookingcom */2, calendarDays);\n if (isHicheeStayAvailable || isAirbnbStayAvailable || isVrboStayAvailable) {\n return true;\n } else {\n return isBookingcomStayAvailable;\n }\n}\n\nfunction isProviderStayValid(checkIn, checkOut, provider, calendarDays) {\n var providerCheckIn = providerByTypeForCalendarDaysDate(provider, checkIn, calendarDays);\n var isValidMinStay = providerCheckIn !== undefined ? $$Date.Naive.differenceInDays(checkOut, checkIn) >= providerCheckIn.minimumStay : false;\n if (isValidMinStay) {\n return isProviderStayAvailable(checkIn, checkOut, provider, calendarDays);\n } else {\n return false;\n }\n}\n\nfunction isStayValid(checkIn, checkOut, calendarDays) {\n var isHicheeStayValid = isProviderStayValid(checkIn, checkOut, /* Hichee */0, calendarDays);\n var isAirbnbStayValid = isProviderStayValid(checkIn, checkOut, /* Airbnb */1, calendarDays);\n var isVrboStayValid = isProviderStayValid(checkIn, checkOut, /* Vrbo */3, calendarDays);\n var isBookingcomStayValid = isProviderStayValid(checkIn, checkOut, /* Bookingcom */2, calendarDays);\n if (isHicheeStayValid || isAirbnbStayValid || isVrboStayValid) {\n return true;\n } else {\n return isBookingcomStayValid;\n }\n}\n\nfunction canCheckInOnProviderDay(day, provider, calendarDays) {\n var providerCheckIn = providerByTypeForCalendarDaysDate(provider, day, calendarDays);\n if (providerCheckIn !== undefined) {\n return isProviderStayAvailable(day, $$Date.Naive.addDays(day, providerCheckIn.minimumStay), provider, calendarDays);\n } else {\n return false;\n }\n}\n\nfunction calDataQuantity(calDataCheckIn, calDataCheckOut) {\n if (calDataCheckOut === undefined) {\n return 2;\n }\n var x = DifferenceInCalendarMonths(Caml_option.valFromOption(calDataCheckOut), calDataCheckIn);\n if (x !== 0) {\n return x + 1 | 0;\n } else {\n return 2;\n }\n}\n\nfunction detectendCalendarsRefetchRange(checkInDate, checkOutDate, datepickerOpenedDate, availabilityCalendarStartDate) {\n var possibleEdgeDates = Curry._1($$Date.Naive.$$Set.make, undefined);\n possibleEdgeDates = checkInDate !== undefined ? Belt_Set.add(possibleEdgeDates, Caml_option.valFromOption(checkInDate)) : possibleEdgeDates;\n possibleEdgeDates = checkOutDate !== undefined ? Belt_Set.add(possibleEdgeDates, Caml_option.valFromOption(checkOutDate)) : possibleEdgeDates;\n possibleEdgeDates = datepickerOpenedDate !== undefined ? Belt_Set.add(possibleEdgeDates, Caml_option.valFromOption(datepickerOpenedDate)) : possibleEdgeDates;\n var tmp;\n if (availabilityCalendarStartDate !== undefined) {\n var date = Caml_option.valFromOption(availabilityCalendarStartDate);\n possibleEdgeDates = Belt_Set.add(possibleEdgeDates, date);\n tmp = Belt_Set.add(possibleEdgeDates, $$Date.Naive.addMonths($$Date.Naive.startOfMonth(date), 1));\n } else {\n tmp = possibleEdgeDates;\n }\n possibleEdgeDates = tmp;\n if (Belt_Set.isEmpty(possibleEdgeDates)) {\n possibleEdgeDates = Belt_Set.add(possibleEdgeDates, $$Date.Naive.make(undefined));\n }\n var startDate = Belt_Option.getWithDefault(Belt_Set.minimum(possibleEdgeDates), $$Date.Naive.make(undefined));\n var endDate = Belt_Option.getWithDefault(Belt_Set.maximum(possibleEdgeDates), $$Date.Naive.make(undefined));\n return [\n startDate,\n endDate\n ];\n}\n\nvar Calendar = {\n yearFromDate: yearFromDate,\n monthFromDate: monthFromDate,\n Month: Month,\n mergeLoadedMonths: mergeLoadedMonths,\n mergeCalendarDays: mergeCalendarDays,\n calendarDayByDate: calendarDayByDate,\n providerByTypeForCalendarDaysDate: providerByTypeForCalendarDaysDate,\n isProviderDayAvailableForCheckIn: isProviderDayAvailableForCheckIn,\n isProviderDayAvailableForStay: isProviderDayAvailableForStay,\n isProviderDayAvailableForStayOrCheckOut: isProviderDayAvailableForStayOrCheckOut,\n isProviderStayAvailable: isProviderStayAvailable,\n isStayAvailable: isStayAvailable,\n isProviderStayValid: isProviderStayValid,\n isStayValid: isStayValid,\n canCheckInOnProviderDay: canCheckInOnProviderDay,\n calDataQuantity: calDataQuantity,\n detectendCalendarsRefetchRange: detectendCalendarsRefetchRange\n};\n\nvar locale = \"en-us\";\n\nvar Defaults = {\n isDefaultInput: true,\n adults: 2,\n children: 0,\n infants: 0,\n pets: false,\n flexibleDates: false,\n locale: locale\n};\n\nvar checkIn = \"check_in\";\n\nvar checkOut = \"check_out\";\n\nvar adults = \"adults\";\n\nvar children = \"children\";\n\nvar infants = \"infants\";\n\nvar pets = \"pets\";\n\nvar flexibleDates = \"flexible_dates\";\n\nvar locale$1 = \"locale\";\n\nvar countryOverride = \"country_override\";\n\nvar detectedCurrency = \"detected_currency\";\n\nvar origin = \"origin\";\n\nvar UrlKeys = {\n checkIn: checkIn,\n checkOut: checkOut,\n adults: adults,\n children: children,\n infants: infants,\n pets: pets,\n flexibleDates: flexibleDates,\n locale: locale$1,\n countryOverride: countryOverride,\n detectedCurrency: detectedCurrency,\n origin: origin\n};\n\nvar sharedHiChee = \"shared_hichee\";\n\nvar LoadSlvOrigins = {\n sharedHiChee: sharedHiChee\n};\n\nvar Validation = {};\n\nvar $$default = {\n checkIn: undefined,\n checkOut: undefined,\n isDefaultInput: true,\n adults: 2,\n children: 0,\n infants: 0,\n pets: false,\n flexibleDates: false,\n comment: undefined,\n locale: locale,\n countryOverride: undefined,\n detectedCurrency: undefined\n};\n\nfunction toUrlParams(isShareLinkOpt, state) {\n var isShareLink = isShareLinkOpt !== undefined ? isShareLinkOpt : false;\n var urlParams = /* [] */0;\n if (state.checkIn !== undefined) {\n var x = state.checkIn;\n urlParams = {\n hd: [\n checkIn,\n x !== undefined ? $$Date.Naive.toJson(Caml_option.valFromOption(x)) : \"\"\n ],\n tl: urlParams\n };\n }\n if (state.checkOut !== undefined) {\n var x$1 = state.checkOut;\n urlParams = {\n hd: [\n checkOut,\n x$1 !== undefined ? $$Date.Naive.toJson(Caml_option.valFromOption(x$1)) : \"\"\n ],\n tl: urlParams\n };\n }\n if (state.adults !== 2) {\n urlParams = {\n hd: [\n adults,\n String(state.adults)\n ],\n tl: urlParams\n };\n }\n if (state.children !== 0) {\n urlParams = {\n hd: [\n children,\n String(state.children)\n ],\n tl: urlParams\n };\n }\n if (state.infants !== 0) {\n urlParams = {\n hd: [\n infants,\n String(state.infants)\n ],\n tl: urlParams\n };\n }\n if (state.pets !== false) {\n urlParams = {\n hd: [\n pets,\n Bool.toString(state.pets)\n ],\n tl: urlParams\n };\n }\n if (state.flexibleDates !== false) {\n urlParams = {\n hd: [\n flexibleDates,\n Bool.toString(state.flexibleDates)\n ],\n tl: urlParams\n };\n }\n if (state.locale !== locale) {\n urlParams = {\n hd: [\n locale$1,\n state.locale\n ],\n tl: urlParams\n };\n }\n if (state.countryOverride !== undefined) {\n urlParams = {\n hd: [\n countryOverride,\n Belt_Option.getWithDefault(state.countryOverride, \"\")\n ],\n tl: urlParams\n };\n }\n if (state.detectedCurrency !== undefined) {\n urlParams = {\n hd: [\n detectedCurrency,\n Belt_Option.getWithDefault(state.detectedCurrency, \"\")\n ],\n tl: urlParams\n };\n }\n if (isShareLink) {\n urlParams = {\n hd: [\n origin,\n sharedHiChee\n ],\n tl: urlParams\n };\n }\n return Qs$1.stringify(Json_encode.object_(Belt_List.reverse(urlParams)));\n}\n\nfunction fromUrlParams(json) {\n var parseDate = function (dateName) {\n return Belt_Option.flatMap(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(dateName, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), (function (x) {\n if (x === \"\") {\n return ;\n }\n var date = $$Date.Naive.fromString(x);\n if ($$Date.Naive.isValid(date)) {\n return Caml_option.some(date);\n }\n \n }));\n };\n var parsedCheckIn = parseDate(checkIn);\n var parsedCheckOut = parseDate(checkOut);\n var match = BookingDates.isCheckInBeforeCheckOut(parsedCheckIn, parsedCheckOut) ? [\n parsedCheckIn,\n parsedCheckOut\n ] : [\n undefined,\n undefined\n ];\n return {\n checkIn: match[0],\n checkOut: match[1],\n isDefaultInput: true,\n adults: Belt_Option.getWithDefault(Belt_Option.flatMap(Belt_Option.flatMap(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(adults, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), Belt_Int.fromString), (function (x) {\n if (x > 0) {\n return x;\n }\n \n })), 2),\n children: Belt_Option.getWithDefault(Belt_Option.flatMap(Belt_Option.flatMap(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(children, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), Belt_Int.fromString), (function (x) {\n if (x >= 0) {\n return x;\n }\n \n })), 0),\n infants: Belt_Option.getWithDefault(Belt_Option.flatMap(Belt_Option.flatMap(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(infants, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), Belt_Int.fromString), (function (x) {\n if (x >= 0) {\n return x;\n }\n \n })), 0),\n pets: Belt_Option.getWithDefault(Belt_Option.flatMap(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(pets, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), Bool.fromString), false),\n flexibleDates: Belt_Option.getWithDefault(Belt_Option.flatMap(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(flexibleDates, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), Bool.fromString), false),\n comment: undefined,\n locale: Belt_Option.getWithDefault(Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(locale$1, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })), locale),\n countryOverride: Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(countryOverride, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n })),\n detectedCurrency: Belt_Option.flatMap(Json_decode.optional((function (param) {\n return Json_decode.field(detectedCurrency, (function (param) {\n return Json_decode.nullable(Json_decode.string, param);\n }), param);\n }), json), (function (prim) {\n if (prim === null) {\n return ;\n } else {\n return Caml_option.some(prim);\n }\n }))\n };\n}\n\nfunction validateDates(state, listing) {\n var match = state.checkIn;\n var match$1 = state.checkOut;\n if (match === undefined) {\n if (match$1 !== undefined) {\n return {\n TAG: /* Error */1,\n _0: \"NoCheckInDate\"\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: \"NoCheckInAndCheckOutDates\"\n };\n }\n }\n if (match$1 === undefined) {\n return {\n TAG: /* Error */1,\n _0: \"NoCheckOutDate\"\n };\n }\n var checkOut = Caml_option.valFromOption(match$1);\n var checkIn = Caml_option.valFromOption(match);\n if ($$Date.Naive.isSameDay(checkIn, checkOut)) {\n return {\n TAG: /* Error */1,\n _0: \"CheckInAndCheckOutSameDay\"\n };\n } else if (BookingDates.isDayInPastRelativeToListingTimezone(checkIn, listing.currentDate)) {\n return {\n TAG: /* Error */1,\n _0: \"CheckInInThePast\"\n };\n } else if ($$Date.Naive.isBefore(checkOut, checkIn)) {\n return {\n TAG: /* Error */1,\n _0: \"CheckOutBeforeCheckIn\"\n };\n } else {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n }\n}\n\nfunction validateMinStayAndAviability(checkIn, checkOut, calendarDays) {\n if (checkIn === undefined) {\n if (checkOut !== undefined) {\n return {\n TAG: /* Error */1,\n _0: \"NoCheckInDate\"\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: \"NoCheckInAndCheckOutDates\"\n };\n }\n }\n if (checkOut === undefined) {\n return {\n TAG: /* Error */1,\n _0: \"NoCheckOutDate\"\n };\n }\n var checkOut$1 = Caml_option.valFromOption(checkOut);\n var checkIn$1 = Caml_option.valFromOption(checkIn);\n var isHicheStayAvailable = isProviderStayAvailable(checkIn$1, checkOut$1, /* Hichee */0, calendarDays);\n var isAirbnbStayAvailable = isProviderStayAvailable(checkIn$1, checkOut$1, /* Airbnb */1, calendarDays);\n var isVrboStayAvailable = isProviderStayAvailable(checkIn$1, checkOut$1, /* Vrbo */3, calendarDays);\n var isBookingcomStayAvailable = isProviderStayAvailable(checkIn$1, checkOut$1, /* Bookingcom */2, calendarDays);\n var isAtLeastOneOfProvdersAvalableForStay = isHicheStayAvailable || isAirbnbStayAvailable || isVrboStayAvailable || isBookingcomStayAvailable;\n if (!isAtLeastOneOfProvdersAvalableForStay) {\n return {\n TAG: /* Error */1,\n _0: \"DatesUnavailable\"\n };\n }\n var hicheeCheckInDay = providerByTypeForCalendarDaysDate(/* Hichee */0, checkIn$1, calendarDays);\n var airbnbCheckInDay = providerByTypeForCalendarDaysDate(/* Airbnb */1, checkIn$1, calendarDays);\n var vrboCheckInDay = providerByTypeForCalendarDaysDate(/* Vrbo */3, checkIn$1, calendarDays);\n var bookingcomCheckInDay = providerByTypeForCalendarDaysDate(/* Bookingcom */2, checkIn$1, calendarDays);\n var checkInDaysForAvailableProviders = [];\n if (isHicheStayAvailable) {\n checkInDaysForAvailableProviders.push(hicheeCheckInDay);\n }\n if (isAirbnbStayAvailable) {\n checkInDaysForAvailableProviders.push(airbnbCheckInDay);\n }\n if (isVrboStayAvailable) {\n checkInDaysForAvailableProviders.push(vrboCheckInDay);\n }\n if (isBookingcomStayAvailable) {\n checkInDaysForAvailableProviders.push(bookingcomCheckInDay);\n }\n var found = checkInDaysForAvailableProviders.find(function (providerDay) {\n if (providerDay !== undefined) {\n return $$Date.Naive.differenceInDays(checkOut$1, checkIn$1) >= providerDay.minimumStay;\n } else {\n return false;\n }\n });\n if (found !== undefined) {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n }\n var minPossibleStays = [];\n if (isHicheStayAvailable && hicheeCheckInDay !== undefined) {\n minPossibleStays.push(hicheeCheckInDay.minimumStay);\n }\n if (isAirbnbStayAvailable && airbnbCheckInDay !== undefined) {\n minPossibleStays.push(airbnbCheckInDay.minimumStay);\n }\n if (isVrboStayAvailable && vrboCheckInDay !== undefined) {\n minPossibleStays.push(vrboCheckInDay.minimumStay);\n }\n if (isBookingcomStayAvailable && bookingcomCheckInDay !== undefined) {\n minPossibleStays.push(bookingcomCheckInDay.minimumStay);\n }\n var minPossibleStay = Caml_splice_call.spliceApply(Math.min, [minPossibleStays]);\n return {\n TAG: /* Error */1,\n _0: {\n NAME: \"MinStayViolation\",\n VAL: minPossibleStay\n }\n };\n}\n\nfunction validateGuests(state, listing) {\n var maxGuests = listing.maxGuests;\n var infants = state.infants;\n var children = state.children;\n var match = listing.houseRuleChildrenAllowed;\n var exit = 0;\n if (match !== undefined && !match) {\n if (children > 0) {\n return {\n TAG: /* Error */1,\n _0: \"ChildrenNotAllowed\"\n };\n }\n exit = 2;\n } else {\n exit = 2;\n }\n if (exit === 2) {\n var match$1 = listing.houseRuleInfantsAllowed;\n var exit$1 = 0;\n if (match$1 !== undefined && !match$1) {\n if (infants > 0) {\n return {\n TAG: /* Error */1,\n _0: \"InfantsNotAllowed\"\n };\n }\n exit$1 = 3;\n } else {\n exit$1 = 3;\n }\n if (exit$1 === 3) {\n var match$2 = listing.houseRulePetsAllowed;\n if (match$2 !== undefined && !match$2 && state.pets) {\n return {\n TAG: /* Error */1,\n _0: \"PetsNotAllowed\"\n };\n }\n \n }\n \n }\n if (maxGuests !== undefined && maxGuests < ((state.adults + children | 0) + infants | 0)) {\n return {\n TAG: /* Error */1,\n _0: {\n NAME: \"MaxGuestsViolation\",\n VAL: maxGuests\n }\n };\n } else {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n }\n}\n\nfunction validate(input, listing, calendarDays) {\n return Belt_Result.flatMap(Belt_Result.flatMap(validateDates(input, listing), (function (param) {\n return validateMinStayAndAviability(input.checkIn, input.checkOut, calendarDays);\n })), (function (param) {\n return validateGuests(input, listing);\n }));\n}\n\nfunction validateWithoutMinimumStay(input, listing) {\n return Belt_Result.flatMap(validateDates(input, listing), (function (param) {\n return validateGuests(input, listing);\n }));\n}\n\nfunction fixInvalidState(state, listing) {\n var children = state.children;\n var infants = state.infants;\n var pets = state.pets;\n if (state.children > 0 && Caml_obj.equal(listing.houseRuleChildrenAllowed, false)) {\n children = 0;\n }\n if (state.infants > 0 && Caml_obj.equal(listing.houseRuleInfantsAllowed, false)) {\n infants = 0;\n }\n if (state.pets && Caml_obj.equal(listing.houseRulePetsAllowed, false)) {\n pets = false;\n }\n return {\n validState: {\n checkIn: state.checkIn,\n checkOut: state.checkOut,\n isDefaultInput: state.isDefaultInput,\n adults: state.adults,\n children: children,\n infants: infants,\n pets: pets,\n flexibleDates: state.flexibleDates,\n comment: state.comment,\n locale: state.locale,\n countryOverride: state.countryOverride,\n detectedCurrency: state.detectedCurrency\n },\n dataFixed: {\n children: children !== state.children,\n pets: pets !== state.pets,\n infants: infants !== state.infants\n }\n };\n}\n\nfunction syncToUrl(input) {\n window.history.replaceState(window.history.state, \"\", window.location.href.split(\"?\")[0] + (\"?\" + toUrlParams(undefined, input)));\n}\n\nvar Input = {\n Defaults: Defaults,\n UrlKeys: UrlKeys,\n LoadSlvOrigins: LoadSlvOrigins,\n Validation: Validation,\n $$default: $$default,\n toUrlParams: toUrlParams,\n fromUrlParams: fromUrlParams,\n validateDates: validateDates,\n validateMinStayAndAviability: validateMinStayAndAviability,\n validateGuests: validateGuests,\n validate: validate,\n validateWithoutMinimumStay: validateWithoutMinimumStay,\n fixInvalidState: fixInvalidState,\n syncToUrl: syncToUrl\n};\n\nvar empty = {\n firstName: undefined,\n lastName: undefined,\n email: undefined,\n phone: undefined\n};\n\nfunction validateFirstName(firstName) {\n if (firstName !== undefined && firstName !== \"\") {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: \"First Name is required\"\n };\n }\n}\n\nfunction validateLastName(lastName) {\n if (lastName !== undefined && lastName !== \"\") {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: \"Last Name is required\"\n };\n }\n}\n\nfunction validateEmail(email) {\n if (email !== undefined && email !== \"\") {\n if ($$RegExp.email(undefined).test(email)) {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: \"Email is invalid\"\n };\n }\n } else {\n return {\n TAG: /* Error */1,\n _0: \"Email is required\"\n };\n }\n}\n\nfunction validateFields(input) {\n return {\n firstName: validateFirstName(input.firstName),\n lastName: validateLastName(input.lastName),\n email: validateEmail(input.email)\n };\n}\n\nfunction validate$1(input) {\n var match = validateFields(input);\n var match$1 = match.firstName;\n if (match$1 === undefined) {\n return {\n TAG: /* Error */1,\n _0: undefined\n };\n }\n if (match$1.TAG !== /* Ok */0) {\n return {\n TAG: /* Error */1,\n _0: undefined\n };\n }\n var match$2 = match.lastName;\n if (match$2 === undefined) {\n return {\n TAG: /* Error */1,\n _0: undefined\n };\n }\n if (match$2.TAG !== /* Ok */0) {\n return {\n TAG: /* Error */1,\n _0: undefined\n };\n }\n var match$3 = match.email;\n if (match$3 !== undefined && match$3.TAG === /* Ok */0) {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: undefined\n };\n }\n}\n\nvar NewUser = {\n empty: empty,\n validateFirstName: validateFirstName,\n validateLastName: validateLastName,\n validateEmail: validateEmail,\n validateFields: validateFields,\n validate: validate$1\n};\n\nfunction validateMessage(message) {\n if (message !== undefined && message !== \"\") {\n return {\n TAG: /* Ok */0,\n _0: undefined\n };\n } else {\n return {\n TAG: /* Error */1,\n _0: \"Message is required\"\n };\n }\n}\n\nvar MessageInput = {\n validateMessage: validateMessage\n};\n\nvar Modal = {};\n\nvar notifyOnBookingWidgetInteraction = Fn.once(function (listingId) {\n Gtag.Slv.bookingWidgetInteraction(listingId);\n });\n\nvar notifyOnInquiryModalShown = Fn.once(function (listingId) {\n Gtag.Slv.inquiryModalShown(listingId);\n });\n\nvar notifyOnInquiryModalFormInteraction = Fn.once(function (listingId) {\n Gtag.Slv.inquiryModalFormInteraction(listingId);\n });\n\nvar notifyOnInquiryModalFormSubmission = Fn.once(function (listingId) {\n Gtag.Slv.inquiryModalFormSubmitted(listingId);\n });\n\nvar notifyOnMessageModalShown = Fn.once(function (listingId) {\n Gtag.Slv.messageModalShown(listingId);\n });\n\nvar notifyOnMessageModalFormInteraction = Fn.once(function (listingId) {\n Gtag.Slv.messageModalFormInteraction(listingId);\n });\n\nvar notifyOnMessageModalFormSubmission = Fn.once(function (listingId) {\n Gtag.Slv.messageModalFormSubmitted(listingId);\n });\n\nvar notifyOnPhoneShow = Fn.once(function (listingId) {\n Gtag.Slv.phoneShown(listingId);\n });\n\nvar Gtag$1 = {\n notifyOnBookingWidgetInteraction: notifyOnBookingWidgetInteraction,\n notifyOnInquiryModalShown: notifyOnInquiryModalShown,\n notifyOnInquiryModalFormInteraction: notifyOnInquiryModalFormInteraction,\n notifyOnInquiryModalFormSubmission: notifyOnInquiryModalFormSubmission,\n notifyOnMessageModalShown: notifyOnMessageModalShown,\n notifyOnMessageModalFormInteraction: notifyOnMessageModalFormInteraction,\n notifyOnMessageModalFormSubmission: notifyOnMessageModalFormSubmission,\n notifyOnPhoneShow: notifyOnPhoneShow\n};\n\nvar trackContactHost = Fn.once(function (listing) {\n Amplitude.Slv.trackContactHost(listing.id, Listing.Contextual.isVerified(listing));\n });\n\nvar Amplitude$1 = {\n trackContactHost: trackContactHost\n};\n\nvar petsNotAllowed = {\n id: \"slv.booking-deals.pets-not-allowed\",\n defaultMessage: \"Pets are not allowed due to the listing policy.\"\n};\n\nvar childrenNotAllowed = {\n id: \"slv.booking-deals.children-not-allowed\",\n defaultMessage: \"Children are not allowed due to the listing policy.\"\n};\n\nvar infantsNotAllowed = {\n id: \"slv.booking-deals.infants-not-allowed\",\n defaultMessage: \"Infants are not allowed due to the listing policy.\"\n};\n\nvar $$Notification = {\n petsNotAllowed: petsNotAllowed,\n childrenNotAllowed: childrenNotAllowed,\n infantsNotAllowed: infantsNotAllowed\n};\n\nfunction useBooking(sampleModeOpt, listing, user) {\n var sampleMode = sampleModeOpt !== undefined ? sampleModeOpt : false;\n var fetchQuote = React.useRef(function (input) {\n \n });\n var calendarUpdateAlreadyRequested = React.useRef(false);\n var bookingCalendarOpenedDate = React.useRef(undefined);\n var availabilityCalendarOpenedDate = React.useRef(undefined);\n var checkInFieldRef = React.useRef(null);\n var initialState = React.useMemo((function () {\n return {\n status: sampleMode ? /* Hibernate */0 : /* DerivingInitialState */1,\n input: $$default,\n calendar: {\n status: sampleMode ? /* Hibernate */0 : /* FetchingCalendarDays */1,\n months: Belt_Set.make(Comparable),\n days: undefined\n },\n modal: {\n current: undefined,\n inquiryStatus: {\n TAG: /* Editing */0,\n _0: \"BeforeSubmission\"\n },\n messageStatus: {\n TAG: /* Editing */0,\n _0: \"BeforeSubmission\"\n }\n },\n newUser: empty,\n datePickerMode: \"SelectingCheckIn\",\n hoveredDay: undefined,\n longLoadingStatus: /* NotLoading */0,\n loadingToastId: undefined,\n quoteBackgroundFetchingStatus: /* NotFetching */0\n };\n }), []);\n var match = Hooks.useReducer(initialState, (function (state, action) {\n if (typeof action === \"number\") {\n switch (action) {\n case /* MountForHibernateStateWithoutInitialInput */0 :\n var init = state.calendar;\n return {\n TAG: /* Update */0,\n _0: {\n status: /* Hibernate */0,\n input: state.input,\n calendar: {\n status: /* Hibernate */0,\n months: init.months,\n days: init.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* MountWithoutInitialInputAndCalendarData */1 :\n var init$1 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Ok */0,\n _0: \"NoQuote\"\n }\n },\n input: state.input,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: init$1.months,\n days: init$1.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* FailCalendarDaysFetchingOnMountWithoutInitialInput */2 :\n var init$2 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchCalendarError\"\n }\n },\n input: state.input,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Error */1,\n _0: /* FetchCalendarError */0\n }\n },\n months: init$2.months,\n days: init$2.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* FetchCalendarDaysOnCalendarAutoupdate */3 :\n var init$3 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: {\n status: /* FetchingCalendarDaysOnCalendarAutoupdate */2,\n months: init$3.months,\n days: init$3.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n var calDataCheckIn = Belt_Option.flatMap(state.input.checkIn, (function (checkIn) {\n if ($$Date.Naive.isPast(checkIn)) {\n return ;\n } else {\n return Caml_option.some(checkIn);\n }\n }));\n var calDataCheckOut = Belt_Option.flatMap(state.input.checkOut, (function (checkOut) {\n if ($$Date.Naive.isPast(checkOut)) {\n return ;\n } else {\n return Caml_option.some(checkOut);\n }\n }));\n var match = detectendCalendarsRefetchRange(calDataCheckIn, calDataCheckOut, bookingCalendarOpenedDate.current, availabilityCalendarOpenedDate.current);\n var startDate = match[0];\n var calDataQuantity$1 = calDataQuantity(startDate, Caml_option.some(match[1]));\n $$Promise.wait(Api.getCalendarMonthsForGuest(listing.id, $$Date.Naive.year(startDate), monthFromDate(startDate), calDataQuantity$1), (function (x) {\n if (x.TAG !== /* Ok */0) {\n return Curry._1(dispatch, /* FailCalendarDaysFetching */4);\n }\n var months = Belt_Array.map(Belt_Array.range(1, calDataQuantity$1), (function (n) {\n return make($$Date.Naive.addMonths(startDate, n - 1 | 0));\n }));\n Curry._1(dispatch, {\n TAG: /* ReplaceAndRevalidateCalendarDaysOnCalendarAutoupdate */7,\n _0: months,\n _1: x._0\n });\n }));\n })\n };\n case /* FailCalendarDaysFetching */4 :\n var init$4 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchCalendarError\"\n }\n },\n input: state.input,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Error */1,\n _0: /* FetchCalendarError */0\n }\n },\n months: init$4.months,\n days: init$4.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* HideModal */5 :\n var init$5 = state.modal;\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: undefined,\n inquiryStatus: init$5.inquiryStatus,\n messageStatus: init$5.messageStatus\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* SubmitInquiry */6 :\n var match = user.id;\n var userStatus = match !== undefined ? ({\n TAG: /* Ok */0,\n _0: undefined\n }) : validate$1(state.newUser);\n var match$1 = state.modal;\n var match$2 = state.status;\n var messageStatus;\n var match$3 = match$1.current;\n var exit = 0;\n var exit$1 = 0;\n if (match$3 === 0) {\n var match$4 = match$1.inquiryStatus;\n var exit$2 = 0;\n var exit$3 = 0;\n if (typeof match$4 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$4.TAG === /* Editing */0) {\n exit$3 = 5;\n } else {\n if (match$4._0.TAG === /* Ok */0) {\n return /* NoUpdate */0;\n }\n exit$3 = 5;\n }\n if (exit$3 === 5) {\n if (typeof match$2 === \"number\" || match$2.TAG !== /* Ready */1) {\n exit$2 = 4;\n } else {\n var match$5 = match$2._0;\n if (match$5.TAG === /* Ok */0) {\n if (match$5._0 === \"NoQuote\") {\n return /* NoUpdate */0;\n }\n exit$2 = 4;\n } else {\n exit$2 = 4;\n }\n }\n }\n if (exit$2 === 4) {\n if (typeof match$2 === \"number\" || match$2.TAG !== /* Ready */1) {\n exit$1 = 3;\n } else {\n var match$6 = match$2._0;\n var messageStatus$1 = match$1.messageStatus;\n if (match$6.TAG === /* Ok */0) {\n var match$7 = match$6._0;\n if (typeof match$7 === \"object\" && match$7.NAME === \"Quote\") {\n var quote = match$7.VAL;\n if (userStatus.TAG === /* Ok */0) {\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: /* InquiryModal */0,\n inquiryStatus: /* Submitting */0,\n messageStatus: messageStatus$1\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n var match = user.id;\n if (match !== undefined) {\n var payload = {\n TAG: /* WithoutNewUser */1,\n _0: {\n quoteId: quote.id,\n comment: state.input.comment,\n flexibleDates: state.input.flexibleDates,\n sbjs: Sbjs.data(undefined)\n }\n };\n $$Promise.wait(Api.postTripFromHc(payload), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* SucceedInquirySubmissionWithoutNewUser */21,\n _0: x._0.booking\n });\n } else {\n return Curry._1(dispatch, /* FailInquirySubmission */7);\n }\n }));\n } else {\n var firstName = Belt_Option.getExn(state.newUser.firstName);\n var lastName = Belt_Option.getExn(state.newUser.lastName);\n var email = Belt_Option.getExn(state.newUser.email);\n var phone = state.newUser.phone;\n var payload$1 = {\n TAG: /* WithNewUser */0,\n _0: {\n quoteId: quote.id,\n comment: state.input.comment,\n flexibleDates: state.input.flexibleDates,\n firstName: firstName,\n lastName: lastName,\n email: email,\n phone: phone,\n sbjs: Sbjs.data(undefined)\n }\n };\n $$Promise.wait(Api.postTripFromHc(payload$1), (function (x) {\n if (x.TAG !== /* Ok */0) {\n return Curry._1(dispatch, /* FailInquirySubmission */7);\n }\n var match = x._0;\n var user = {\n firstName: firstName,\n lastName: lastName,\n email: email,\n phone: phone\n };\n Curry._1(dispatch, {\n TAG: /* SucceedInquirySubmissionWithNewUser */22,\n _0: user,\n _1: match.booking,\n _2: match.navbar\n });\n }));\n }\n })\n };\n }\n exit = 2;\n } else {\n exit = 2;\n }\n } else {\n messageStatus = messageStatus$1;\n }\n }\n }\n \n } else {\n exit$1 = 3;\n }\n if (exit$1 === 3) {\n if (typeof match$2 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$2.TAG !== /* Ready */1) {\n return /* NoUpdate */0;\n }\n exit = 2;\n }\n if (exit === 2) {\n if (match$3 === undefined) {\n return /* NoUpdate */0;\n }\n if (match$3 !== 0) {\n return /* NoUpdate */0;\n }\n messageStatus = match$1.messageStatus;\n }\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: /* InquiryModal */0,\n inquiryStatus: {\n TAG: /* Editing */0,\n _0: \"AfterInvalidSubmissionAttempt\"\n },\n messageStatus: messageStatus\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* FailInquirySubmission */7 :\n var init$6 = state.modal;\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: init$6.current,\n inquiryStatus: {\n TAG: /* Submitted */1,\n _0: {\n TAG: /* Error */1,\n _0: undefined\n }\n },\n messageStatus: init$6.messageStatus\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* FailMessageSubmission */8 :\n var init$7 = state.modal;\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: init$7.current,\n inquiryStatus: init$7.inquiryStatus,\n messageStatus: {\n TAG: /* Submitted */1,\n _0: {\n TAG: /* Error */1,\n _0: undefined\n }\n }\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* StartLongLoadingTimeout */9 :\n return {\n TAG: /* SideEffects */2,\n _0: (function (param) {\n var dispatch = param.dispatch;\n var timeoutId = param.state.longLoadingStatus;\n if (typeof timeoutId === \"number\") {\n \n } else {\n clearTimeout(timeoutId._0);\n }\n var newTimeoutId = setTimeout((function (param) {\n Curry._1(dispatch, {\n TAG: /* UpdateLongLoadingStatus */26,\n _0: /* LoadingTakesTooLong */1\n });\n }), 7000);\n Curry._1(dispatch, {\n TAG: /* UpdateLongLoadingStatus */26,\n _0: /* Loading */{\n _0: newTimeoutId\n }\n });\n })\n };\n case /* ClearLongLoadingTimeout */10 :\n return {\n TAG: /* SideEffects */2,\n _0: (function (param) {\n var timeoutId = param.state.longLoadingStatus;\n if (typeof timeoutId === \"number\") {\n \n } else {\n clearTimeout(timeoutId._0);\n }\n Curry._1(param.dispatch, {\n TAG: /* UpdateLongLoadingStatus */26,\n _0: /* NotLoading */0\n });\n })\n };\n case /* ShowUpdateCalendarToast */11 :\n return {\n TAG: /* SideEffects */2,\n _0: (function (param) {\n var match = param.state.loadingToastId;\n if (match === undefined) {\n var toastId = Toast.loadingAfterError(React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.calendar.updating-calendar\",\n defaultMessage: \"We could not get a quote.{br}Updating the calendar...\",\n values: {\n br: React.createElement(\"br\", undefined)\n }\n }), undefined);\n Curry._1(param.dispatch, {\n TAG: /* SetLoadingToastId */27,\n _0: Caml_option.some(toastId)\n });\n }\n \n })\n };\n case /* CloseLoadingToast */12 :\n return {\n TAG: /* SideEffects */2,\n _0: (function (param) {\n var id = param.state.loadingToastId;\n if (id !== undefined) {\n Toast.dismiss(Caml_option.valFromOption(id), undefined);\n Curry._1(param.dispatch, {\n TAG: /* SetLoadingToastId */27,\n _0: undefined\n });\n }\n \n })\n };\n \n }\n } else {\n switch (action.TAG | 0) {\n case /* MountForHibernateStateWithInitialInput */0 :\n var init$8 = state.calendar;\n return {\n TAG: /* Update */0,\n _0: {\n status: /* Hibernate */0,\n input: action._0,\n calendar: {\n status: /* Hibernate */0,\n months: init$8.months,\n days: init$8.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* MountWithoutInitialInputAndWithCalendarData */1 :\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Ok */0,\n _0: \"NoQuote\"\n }\n },\n input: state.input,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: action._0,\n days: action._1\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* MountWithValidInitialInputAndCalendarData */2 :\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: action._0,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: action._1,\n days: action._2\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n syncToUrl(param.state.input);\n Curry._1(param.dispatch, {\n TAG: /* FetchQuote */9,\n _0: NonSecure()\n });\n })\n };\n case /* MountWithInvalidInitialInputAndCalendarData */3 :\n var error = action._1;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: error\n }\n },\n input: action._0,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: action._2,\n days: action._3\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n syncToUrl(param.state.input);\n Curry._1(dispatch, /* ClearLongLoadingTimeout */10);\n if (typeof error === \"object\") {\n var match = error.VAL;\n if (typeof match === \"object\") {\n if (match.NAME === \"MinStayViolation\") {\n Curry._1(dispatch, {\n TAG: /* FetchQuoteInBackground */10,\n _0: NonSecure()\n });\n }\n \n } else if (match === \"DatesUnavailable\") {\n Curry._1(dispatch, {\n TAG: /* FetchQuoteInBackground */10,\n _0: NonSecure()\n });\n }\n \n }\n \n })\n };\n case /* MountWithInitialInputAndWithoutCalendarData */4 :\n var init$9 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Ok */0,\n _0: \"NoQuote\"\n }\n },\n input: action._0,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: init$9.months,\n days: init$9.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n syncToUrl(param.state.input);\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* FailCalendarDaysFetchingOnMountWithInitialInput */5 :\n var init$10 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchCalendarError\"\n }\n },\n input: action._0,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Error */1,\n _0: /* FetchCalendarError */0\n }\n },\n months: init$10.months,\n days: init$10.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* FetchCalendarDays */6 :\n var quantity = action._1;\n var date = action._0;\n var init$11 = state.calendar;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: {\n status: /* FetchingCalendarDays */1,\n months: init$11.months,\n days: init$11.days\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n $$Promise.wait(Api.getCalendarMonthsForGuest(listing.id, $$Date.Naive.year(date), monthFromDate(date), quantity), (function (x) {\n if (x.TAG !== /* Ok */0) {\n return Curry._1(dispatch, /* FailCalendarDaysFetching */4);\n }\n var res = x._0;\n var months = Belt_Array.map(Belt_Array.range(1, quantity), (function (n) {\n return make($$Date.Naive.addMonths(date, n - 1 | 0));\n }));\n var match = state.calendar.status;\n if (typeof match === \"number\" && match !== 1) {\n return ;\n } else {\n return Curry._1(dispatch, {\n TAG: /* SetCalendarDays */8,\n _0: months,\n _1: res\n });\n }\n }));\n })\n };\n case /* ReplaceAndRevalidateCalendarDaysOnCalendarAutoupdate */7 :\n var match$8 = state.status;\n if (typeof match$8 === \"number\") {\n return /* NoUpdate */0;\n }\n var newMonths = Belt_Array.reduce(action._0, Belt_Set.make(Comparable), Belt_Set.add);\n var newDays = mergeCalendarDays(action._1, undefined);\n var validationResult = validate(state.input, listing, newDays);\n var tmp;\n if (validationResult.TAG === /* Ok */0) {\n tmp = Caml_obj.equal(match$8, {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchQuoteErrorCausedCalendarUpdate\"\n }\n }) ? ({\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchQuoteErrorRemainedAfterCalendarUpdate\"\n }\n }) : match$8;\n } else {\n var message = validationResult._0;\n tmp = message === \"NoCheckOutDate\" || message === \"NoCheckInDate\" || message === \"NoCheckInAndCheckOutDates\" ? match$8 : ({\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: {\n NAME: \"ValidationError\",\n VAL: message\n }\n }\n });\n }\n return {\n TAG: /* Update */0,\n _0: {\n status: tmp,\n input: state.input,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: newMonths,\n days: newDays\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* SetCalendarDays */8 :\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: {\n status: /* Ready */{\n _0: {\n TAG: /* Ok */0,\n _0: undefined\n }\n },\n months: Belt_Array.reduce(action._0, state.calendar.months, Belt_Set.add),\n days: mergeCalendarDays(action._1, state.calendar.days)\n },\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* FetchQuote */9 :\n var token = action._0;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* FetchingQuote */0,\n _0: \"NoQuote\",\n _1: token\n },\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n var state = param.state;\n Curry._1(fetchQuote.current, {\n input: {\n listingId: listing.id,\n checkIn: Belt_Option.getExn(state.input.checkIn),\n checkOut: Belt_Option.getExn(state.input.checkOut),\n adults: state.input.adults,\n children: state.input.children,\n infants: state.input.infants,\n pets: state.input.pets,\n detectedCurrency: state.input.detectedCurrency\n },\n onComplete: (function (quote) {\n Curry._1(dispatch, {\n TAG: /* SetFinalQuote */12,\n _0: quote,\n _1: token\n });\n }),\n onPart: (function (quote) {\n Curry._1(dispatch, {\n TAG: /* SetIntermediateQuote */11,\n _0: quote,\n _1: token\n });\n }),\n onError: (function (param) {\n Curry._1(dispatch, {\n TAG: /* FailQuoteFetching */13,\n _0: token\n });\n })\n });\n Curry._1(dispatch, /* StartLongLoadingTimeout */9);\n })\n };\n case /* FetchQuoteInBackground */10 :\n var token$1 = action._0;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: /* FetchingQuoteInBackground */{\n _0: token$1\n }\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n var state = param.state;\n Curry._1(fetchQuote.current, {\n input: {\n listingId: listing.id,\n checkIn: Belt_Option.getExn(state.input.checkIn),\n checkOut: Belt_Option.getExn(state.input.checkOut),\n adults: state.input.adults,\n children: state.input.children,\n infants: state.input.infants,\n pets: state.input.pets,\n detectedCurrency: state.input.detectedCurrency\n },\n onComplete: (function (quote) {\n Curry._1(dispatch, {\n TAG: /* SetFinalQuote */12,\n _0: quote,\n _1: token$1\n });\n }),\n onPart: (function (quote) {\n Curry._1(dispatch, {\n TAG: /* SetIntermediateQuote */11,\n _0: quote,\n _1: token$1\n });\n }),\n onError: (function (param) {\n \n })\n });\n })\n };\n case /* SetIntermediateQuote */11 :\n var token$2 = action._1;\n var match$9 = state.status;\n var match$10 = state.quoteBackgroundFetchingStatus;\n var token$p;\n if (typeof match$9 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$9.TAG === /* FetchingQuote */0) {\n token$p = match$9._1;\n } else {\n if (!match$10) {\n return /* NoUpdate */0;\n }\n token$p = match$10._0;\n }\n if (token$2 === token$p) {\n return {\n TAG: /* Update */0,\n _0: {\n status: {\n TAG: /* FetchingQuote */0,\n _0: {\n NAME: \"InterimQuote\",\n VAL: action._0\n },\n _1: token$2\n },\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n } else {\n return /* NoUpdate */0;\n }\n case /* SetFinalQuote */12 :\n var match$11 = state.status;\n var match$12 = state.quoteBackgroundFetchingStatus;\n var token$p$1;\n if (typeof match$11 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$11.TAG === /* FetchingQuote */0) {\n token$p$1 = match$11._1;\n } else {\n if (!match$12) {\n return /* NoUpdate */0;\n }\n token$p$1 = match$12._0;\n }\n if (action._1 === token$p$1) {\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Ok */0,\n _0: {\n NAME: \"Quote\",\n VAL: action._0\n }\n }\n },\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n } else {\n return /* NoUpdate */0;\n }\n case /* FailQuoteFetching */13 :\n var match$13 = state.status;\n if (typeof match$13 === \"number\" || !(match$13.TAG === /* FetchingQuote */0 && action._0 === match$13._1)) {\n return /* NoUpdate */0;\n } else {\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: calendarUpdateAlreadyRequested.current ? ({\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchQuoteError\"\n }\n }) : ({\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: \"FetchQuoteErrorCausedCalendarUpdate\"\n }\n }),\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n if (calendarUpdateAlreadyRequested.current === false) {\n calendarUpdateAlreadyRequested.current = true;\n Curry._1(dispatch, /* ShowUpdateCalendarToast */11);\n CalendarsUpdateWebSockets.exec({\n listingId: listing.id,\n onUpdate: (function (param) {\n Curry._1(dispatch, /* FetchCalendarDaysOnCalendarAutoupdate */3);\n Curry._1(dispatch, /* CloseLoadingToast */12);\n })\n }, (function (param) {\n Curry._1(dispatch, /* FailCalendarDaysFetching */4);\n Curry._1(dispatch, /* CloseLoadingToast */12);\n }), undefined);\n }\n Curry._1(dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n }\n case /* UpdateInputAndFetchQuote */14 :\n var onError = action.onError;\n var datePickerMode = action.datePickerMode;\n var input = action.input;\n var match$14 = state.status;\n if (typeof match$14 === \"number\") {\n return /* NoUpdate */0;\n }\n var validationResult$1 = action.shouldSkipMinStayValidation ? validateWithoutMinimumStay(input, listing) : validate(input, listing, state.calendar.days);\n if (validationResult$1.TAG === /* Ok */0) {\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n syncToUrl(param.state.input);\n Curry._1(param.dispatch, {\n TAG: /* FetchQuote */9,\n _0: NonSecure()\n });\n })\n };\n }\n var error$1 = validationResult$1._0;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: {\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: {\n NAME: \"ValidationError\",\n VAL: error$1\n }\n }\n },\n input: input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n syncToUrl(param.state.input);\n if (onError !== undefined) {\n Curry._1(onError, error$1);\n }\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* UpdateInputWithoutQuoteFetchingOrSyncingUrl */15 :\n var input$1 = action._0;\n var match$15 = state.status;\n if (typeof match$15 === \"number\") {\n return /* NoUpdate */0;\n } else {\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: {\n checkIn: input$1.checkIn,\n checkOut: input$1.checkOut,\n isDefaultInput: false,\n adults: input$1.adults,\n children: input$1.children,\n infants: input$1.infants,\n pets: input$1.pets,\n flexibleDates: input$1.flexibleDates,\n comment: input$1.comment,\n locale: input$1.locale,\n countryOverride: input$1.countryOverride,\n detectedCurrency: input$1.detectedCurrency\n },\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n }\n case /* UpdateInputWithoutQuoteFetching */16 :\n var input$2 = action.input;\n var match$16 = state.status;\n if (typeof match$16 === \"number\") {\n return /* NoUpdate */0;\n }\n var validationResult$2 = validate(input$2, listing, state.calendar.days);\n var tmp$1;\n tmp$1 = validationResult$2.TAG === /* Ok */0 ? match$16 : ({\n TAG: /* Ready */1,\n _0: {\n TAG: /* Error */1,\n _0: {\n NAME: \"ValidationError\",\n VAL: validationResult$2._0\n }\n }\n });\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: tmp$1,\n input: input$2,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: action.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n syncToUrl(param.state.input);\n Curry._1(param.dispatch, /* ClearLongLoadingTimeout */10);\n })\n };\n case /* UpdateDatePickerMode */17 :\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: action._0,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* UpdateHoveredDay */18 :\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: action._0,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* ShowModal */19 :\n var init$12 = state.modal;\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: action._0,\n inquiryStatus: init$12.inquiryStatus,\n messageStatus: init$12.messageStatus\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* UpdateNewUser */20 :\n var match$17 = state.modal;\n var match$18 = user.id;\n var match$19 = match$17.current;\n if (match$18 !== undefined) {\n return /* NoUpdate */0;\n }\n if (match$19 === undefined) {\n return /* NoUpdate */0;\n }\n switch (match$19) {\n case /* InquiryModal */0 :\n var match$20 = match$17.inquiryStatus;\n if (typeof match$20 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$20.TAG !== /* Editing */0 && match$20._0.TAG === /* Ok */0) {\n return /* NoUpdate */0;\n }\n break;\n case /* MessageModal */1 :\n var match$21 = match$17.messageStatus;\n if (typeof match$21 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$21.TAG !== /* Editing */0 && match$21._0.TAG === /* Ok */0) {\n return /* NoUpdate */0;\n }\n break;\n case /* OwnListingWarningModal */2 :\n return /* NoUpdate */0;\n \n }\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: action._0,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* SucceedInquirySubmissionWithoutNewUser */21 :\n var init$13 = state.modal;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: init$13.current,\n inquiryStatus: {\n TAG: /* Submitted */1,\n _0: {\n TAG: /* Ok */0,\n _0: {\n user: \"Existing\",\n booking: action._0\n }\n }\n },\n messageStatus: init$13.messageStatus\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(notifyOnInquiryModalFormSubmission, listing.id);\n })\n };\n case /* SucceedInquirySubmissionWithNewUser */22 :\n var navbar = action._2;\n var init$14 = state.modal;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: init$14.current,\n inquiryStatus: {\n TAG: /* Submitted */1,\n _0: {\n TAG: /* Ok */0,\n _0: {\n user: {\n NAME: \"New\",\n VAL: action._0\n },\n booking: action._1\n }\n }\n },\n messageStatus: init$14.messageStatus\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n if (navbar !== undefined) {\n Curry._1(user.authenticate, Caml_option.valFromOption(navbar));\n }\n Curry._1(notifyOnInquiryModalFormSubmission, listing.id);\n })\n };\n case /* SubmitMessage */23 :\n var input$3 = action._0;\n var match$22 = user.id;\n var userStatus$1 = match$22 !== undefined ? ({\n TAG: /* Ok */0,\n _0: undefined\n }) : validate$1(state.newUser);\n var match$23 = state.modal;\n var match$24 = validateMessage(state.input.comment);\n var inquiryStatus;\n var match$25 = match$23.current;\n if (match$25 === undefined) {\n return /* NoUpdate */0;\n }\n if (match$25 !== 1) {\n return /* NoUpdate */0;\n }\n var match$26 = match$23.messageStatus;\n var inquiryStatus$1 = match$23.inquiryStatus;\n var exit$4 = 0;\n if (typeof match$26 === \"number\") {\n return /* NoUpdate */0;\n }\n if (match$26.TAG === /* Editing */0) {\n exit$4 = 2;\n } else {\n if (match$26._0.TAG === /* Ok */0) {\n return /* NoUpdate */0;\n }\n exit$4 = 2;\n }\n if (exit$4 === 2) {\n if (userStatus$1.TAG === /* Ok */0) {\n if (match$24.TAG === /* Ok */0) {\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: /* MessageModal */1,\n inquiryStatus: inquiryStatus$1,\n messageStatus: /* Submitting */0\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n var dispatch = param.dispatch;\n var userId = user.id;\n if (userId !== undefined) {\n var payload = {\n TAG: /* WithoutNewUser */1,\n _0: {\n message: Belt_Option.getExn(state.input.comment),\n listingId: listing.id,\n userId: userId,\n checkIn: input$3.checkIn,\n checkOut: input$3.checkOut,\n adults: input$3.adults,\n children: input$3.children,\n infants: input$3.infants,\n pets: input$3.pets,\n sbjs: Sbjs.data(undefined),\n fromSlv: true\n }\n };\n $$Promise.wait(Api.postMessageFromHc(payload), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* SucceedMessageSubmissionWithoutNewUser */24,\n _0: x._0.message\n });\n } else {\n return Curry._1(dispatch, /* FailMessageSubmission */8);\n }\n }));\n } else {\n var firstName = Belt_Option.getExn(state.newUser.firstName);\n var lastName = Belt_Option.getExn(state.newUser.lastName);\n var email = Belt_Option.getExn(state.newUser.email);\n var phone = state.newUser.phone;\n var payload$1 = {\n TAG: /* WithNewUser */0,\n _0: {\n message: Belt_Option.getExn(state.input.comment),\n listingId: listing.id,\n firstName: firstName,\n lastName: lastName,\n email: email,\n phone: phone,\n checkIn: input$3.checkIn,\n checkOut: input$3.checkOut,\n adults: input$3.adults,\n children: input$3.children,\n infants: input$3.infants,\n pets: input$3.pets,\n sbjs: Sbjs.data(undefined),\n fromSlv: true\n }\n };\n $$Promise.wait(Api.postMessageFromHc(payload$1), (function (x) {\n if (x.TAG !== /* Ok */0) {\n return Curry._1(dispatch, /* FailMessageSubmission */8);\n }\n var match = x._0;\n var user = {\n firstName: firstName,\n lastName: lastName,\n email: email,\n phone: phone\n };\n Curry._1(dispatch, {\n TAG: /* SucceedMessageSubmissionWithNewUser */25,\n _0: user,\n _1: match.message,\n _2: match.navbar\n });\n }));\n }\n })\n };\n }\n inquiryStatus = inquiryStatus$1;\n } else {\n inquiryStatus = inquiryStatus$1;\n }\n }\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: /* MessageModal */1,\n inquiryStatus: inquiryStatus,\n messageStatus: {\n TAG: /* Editing */0,\n _0: \"AfterInvalidSubmissionAttempt\"\n }\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* SucceedMessageSubmissionWithoutNewUser */24 :\n var init$15 = state.modal;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: init$15.current,\n inquiryStatus: init$15.inquiryStatus,\n messageStatus: {\n TAG: /* Submitted */1,\n _0: {\n TAG: /* Ok */0,\n _0: {\n user: \"Existing\",\n message: action._0\n }\n }\n }\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n Curry._1(notifyOnMessageModalFormSubmission, listing.id);\n })\n };\n case /* SucceedMessageSubmissionWithNewUser */25 :\n var navbar$1 = action._2;\n var init$16 = state.modal;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: {\n current: init$16.current,\n inquiryStatus: init$16.inquiryStatus,\n messageStatus: {\n TAG: /* Submitted */1,\n _0: {\n TAG: /* Ok */0,\n _0: {\n user: {\n NAME: \"New\",\n VAL: action._0\n },\n message: action._1\n }\n }\n }\n },\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n },\n _1: (function (param) {\n if (navbar$1 !== undefined) {\n Curry._1(user.authenticate, Caml_option.valFromOption(navbar$1));\n }\n Curry._1(notifyOnMessageModalFormSubmission, listing.id);\n })\n };\n case /* UpdateLongLoadingStatus */26 :\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: action._0,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n case /* SetLoadingToastId */27 :\n return {\n TAG: /* Update */0,\n _0: {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n newUser: state.newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: action._0,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n }\n };\n \n }\n }\n }));\n var dispatch = match[1];\n var state = match[0];\n var match$1 = React.useState(function () {\n return [];\n });\n var updateNotifications = match$1[1];\n React.useEffect((function () {\n var query = window.location.search;\n var params;\n switch (query) {\n case \"\" :\n case \"?\" :\n params = undefined;\n break;\n default:\n params = Caml_option.some(Qs.parseWithOptions(true, query));\n }\n var input = Belt_Option.flatMap(params, (function (params) {\n var input;\n try {\n input = fromUrlParams(params);\n }\n catch (exn){\n return ;\n }\n return input;\n }));\n var calDataCheckIn = Belt_Option.getWithDefault(Belt_Option.flatMap(input, (function (input) {\n return Belt_Option.flatMap(input.checkIn, (function (checkIn) {\n if ($$Date.Naive.isPast(checkIn)) {\n return ;\n } else {\n return Caml_option.some(checkIn);\n }\n }));\n })), $$Date.Naive.make(undefined));\n var calDataCheckOut = Belt_Option.flatMap(input, (function (input) {\n return Belt_Option.flatMap(input.checkOut, (function (checkOut) {\n if ($$Date.Naive.isPast(checkOut)) {\n return ;\n } else {\n return Caml_option.some(checkOut);\n }\n }));\n }));\n var calDataYear = $$Date.Naive.year(calDataCheckIn);\n var calDataMonth = monthFromDate(calDataCheckIn);\n var calDataQuantity$1 = calDataQuantity(calDataCheckIn, calDataCheckOut);\n if (sampleMode) {\n if (input !== undefined) {\n Curry._1(dispatch, {\n TAG: /* MountForHibernateStateWithInitialInput */0,\n _0: input\n });\n } else {\n Curry._1(dispatch, /* MountForHibernateStateWithoutInitialInput */0);\n }\n } else {\n fetchQuote.current = Debounce.make(500, QuoteWebSockets.exec);\n $$Promise.wait(Api.getCalendarMonthsForGuest(listing.id, calDataYear, calDataMonth, calDataQuantity$1), (function (x) {\n if (x.TAG !== /* Ok */0) {\n if (input !== undefined) {\n return Curry._1(dispatch, {\n TAG: /* FailCalendarDaysFetchingOnMountWithInitialInput */5,\n _0: input\n });\n } else {\n return Curry._1(dispatch, /* FailCalendarDaysFetchingOnMountWithoutInitialInput */2);\n }\n }\n var calendarMonths = mergeLoadedMonths(calDataYear, calDataMonth, calDataQuantity$1, state.calendar.months);\n var calendarDays = mergeCalendarDays(x._0, state.calendar.days);\n if (input === undefined) {\n return Curry._1(dispatch, {\n TAG: /* MountWithoutInitialInputAndWithCalendarData */1,\n _0: calendarMonths,\n _1: calendarDays\n });\n }\n var stateWithFixedInfo = fixInvalidState(input, listing);\n var updatedInputState = stateWithFixedInfo.validState;\n var validationResult = validate(updatedInputState, listing, calendarDays);\n if (stateWithFixedInfo.dataFixed.children) {\n Curry._1(updateNotifications, (function (oldNotifications) {\n return oldNotifications.concat([childrenNotAllowed]);\n }));\n }\n if (stateWithFixedInfo.dataFixed.pets) {\n Curry._1(updateNotifications, (function (oldNotifications) {\n return oldNotifications.concat([petsNotAllowed]);\n }));\n }\n if (stateWithFixedInfo.dataFixed.infants) {\n Curry._1(updateNotifications, (function (oldNotifications) {\n return oldNotifications.concat([infantsNotAllowed]);\n }));\n }\n if (validationResult.TAG !== /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* MountWithInvalidInitialInputAndCalendarData */3,\n _0: updatedInputState,\n _1: {\n NAME: \"ValidationError\",\n VAL: validationResult._0\n },\n _2: calendarMonths,\n _3: calendarDays\n });\n }\n var error = validateMinStayAndAviability(updatedInputState.checkIn, updatedInputState.checkOut, calendarDays);\n if (error.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* MountWithValidInitialInputAndCalendarData */2,\n _0: updatedInputState,\n _1: calendarMonths,\n _2: calendarDays\n });\n } else {\n return Curry._1(dispatch, {\n TAG: /* MountWithInvalidInitialInputAndCalendarData */3,\n _0: updatedInputState,\n _1: {\n NAME: \"ValidationError\",\n VAL: error._0\n },\n _2: calendarMonths,\n _3: calendarDays\n });\n }\n }));\n Curry._1(dispatch, /* StartLongLoadingTimeout */9);\n }\n }), []);\n React.useEffect((function () {\n return (function (param) {\n QuoteWebSockets.teardown(undefined);\n CalendarsUpdateWebSockets.teardown(undefined);\n });\n }), []);\n var message = React.useMemo((function () {\n var match = state.modal;\n var match$1 = match.current;\n var tmp;\n if (match$1 === 1) {\n var match$2 = match.messageStatus;\n tmp = typeof match$2 === \"number\" || !(match$2.TAG === /* Editing */0 && match$2._0 === \"AfterInvalidSubmissionAttempt\") ? undefined : validateMessage(state.input.comment);\n } else {\n tmp = undefined;\n }\n return {\n result: tmp\n };\n }), [\n state.input.comment,\n state.modal\n ]);\n var newUser = React.useMemo((function () {\n var match = state.modal;\n var match$1 = match.current;\n var tmp;\n if (match$1 !== undefined) {\n switch (match$1) {\n case /* InquiryModal */0 :\n var match$2 = match.inquiryStatus;\n tmp = typeof match$2 === \"number\" ? ({\n firstName: undefined,\n lastName: undefined,\n email: undefined\n }) : (\n match$2.TAG === /* Editing */0 ? (\n match$2._0 === \"AfterInvalidSubmissionAttempt\" ? validateFields(state.newUser) : ({\n firstName: undefined,\n lastName: undefined,\n email: undefined\n })\n ) : (\n match$2._0.TAG === /* Ok */0 ? ({\n firstName: undefined,\n lastName: undefined,\n email: undefined\n }) : validateFields(state.newUser)\n )\n );\n break;\n case /* MessageModal */1 :\n var match$3 = match.messageStatus;\n tmp = typeof match$3 === \"number\" ? ({\n firstName: undefined,\n lastName: undefined,\n email: undefined\n }) : (\n match$3.TAG === /* Editing */0 ? (\n match$3._0 === \"AfterInvalidSubmissionAttempt\" ? validateFields(state.newUser) : ({\n firstName: undefined,\n lastName: undefined,\n email: undefined\n })\n ) : (\n match$3._0.TAG === /* Ok */0 ? ({\n firstName: undefined,\n lastName: undefined,\n email: undefined\n }) : validateFields(state.newUser)\n )\n );\n break;\n case /* OwnListingWarningModal */2 :\n tmp = {\n firstName: undefined,\n lastName: undefined,\n email: undefined\n };\n break;\n \n }\n } else {\n tmp = {\n firstName: undefined,\n lastName: undefined,\n email: undefined\n };\n }\n return {\n input: state.newUser,\n results: tmp\n };\n }), [\n state.newUser,\n state.modal\n ]);\n var fetchCalendarDays = React.useCallback((function (date) {\n return function (quantity) {\n var shouldFetch = Belt_Array.some(Belt_Array.range(1, quantity), (function (n) {\n var date$1 = $$Date.Naive.addMonths(date, n - 1 | 0);\n return !Belt_Set.has(state.calendar.months, make(date$1));\n }));\n if (shouldFetch) {\n return Curry._1(dispatch, {\n TAG: /* FetchCalendarDays */6,\n _0: date,\n _1: quantity\n });\n }\n \n };\n }), [state.calendar.months]);\n var updateBookingCalendarOpenedDate = function (day) {\n bookingCalendarOpenedDate.current = day;\n };\n var updateAvailabilityCalendarOpenedDate = function (day) {\n availabilityCalendarOpenedDate.current = day;\n };\n var updateCheckIn = React.useCallback((function (day) {\n return function (onError) {\n var init = state.input;\n var checkOut = state.input.checkOut;\n var tmp;\n if (checkOut !== undefined) {\n var checkOut$1 = Caml_option.valFromOption(checkOut);\n tmp = isStayValid(day, checkOut$1, state.calendar.days) ? Caml_option.some(checkOut$1) : undefined;\n } else {\n tmp = undefined;\n }\n Curry._1(dispatch, {\n TAG: /* UpdateInputAndFetchQuote */14,\n input: {\n checkIn: Caml_option.some(day),\n checkOut: tmp,\n isDefaultInput: init.isDefaultInput,\n adults: init.adults,\n children: init.children,\n infants: init.infants,\n pets: init.pets,\n flexibleDates: init.flexibleDates,\n comment: init.comment,\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: \"SelectingCheckOut\",\n onError: onError,\n shouldSkipMinStayValidation: false\n });\n return Curry._1(notifyOnBookingWidgetInteraction, listing.id);\n };\n }), [state.input]);\n var updateCheckOut = React.useCallback((function (day) {\n return function (onError) {\n var init = state.input;\n var match = state.input.checkIn;\n var match$1 = state.input.checkIn;\n Curry._1(dispatch, {\n TAG: /* UpdateInputAndFetchQuote */14,\n input: {\n checkIn: match !== undefined ? state.input.checkIn : undefined,\n checkOut: Caml_option.some(day),\n isDefaultInput: init.isDefaultInput,\n adults: init.adults,\n children: init.children,\n infants: init.infants,\n pets: init.pets,\n flexibleDates: init.flexibleDates,\n comment: init.comment,\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: match$1 !== undefined ? state.datePickerMode : \"SelectingCheckIn\",\n onError: onError,\n shouldSkipMinStayValidation: false\n });\n return Curry._1(notifyOnBookingWidgetInteraction, listing.id);\n };\n }), [\n state.input,\n state.datePickerMode\n ]);\n var updateCheckInAndCheckOut = React.useCallback((function (checkIn) {\n return function (checkOut, onError) {\n var init = state.input;\n Curry._1(dispatch, {\n TAG: /* UpdateInputAndFetchQuote */14,\n input: {\n checkIn: Caml_option.some(checkIn),\n checkOut: Caml_option.some(checkOut),\n isDefaultInput: init.isDefaultInput,\n adults: init.adults,\n children: init.children,\n infants: init.infants,\n pets: init.pets,\n flexibleDates: init.flexibleDates,\n comment: init.comment,\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: \"SelectingCheckOut\",\n onError: onError,\n shouldSkipMinStayValidation: true\n });\n return Curry._1(notifyOnBookingWidgetInteraction, listing.id);\n };\n }), [state.input]);\n var updateFlexibleDates = React.useCallback((function (flexibleDates) {\n var init = state.input;\n Curry._1(dispatch, {\n TAG: /* UpdateInputWithoutQuoteFetching */16,\n input: {\n checkIn: init.checkIn,\n checkOut: init.checkOut,\n isDefaultInput: init.isDefaultInput,\n adults: init.adults,\n children: init.children,\n infants: init.infants,\n pets: init.pets,\n flexibleDates: flexibleDates,\n comment: init.comment,\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: state.datePickerMode\n });\n Curry._1(notifyOnBookingWidgetInteraction, listing.id);\n }), [\n state.input,\n state.datePickerMode\n ]);\n var clearDates = React.useCallback((function (param) {\n var init = state.input;\n Curry._1(dispatch, {\n TAG: /* UpdateInputWithoutQuoteFetching */16,\n input: {\n checkIn: undefined,\n checkOut: undefined,\n isDefaultInput: init.isDefaultInput,\n adults: init.adults,\n children: init.children,\n infants: init.infants,\n pets: init.pets,\n flexibleDates: init.flexibleDates,\n comment: init.comment,\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: \"SelectingCheckIn\"\n });\n Curry._1(notifyOnBookingWidgetInteraction, listing.id);\n }), [\n state.input,\n state.datePickerMode\n ]);\n var updateGuestsInUrl = function (adults, infants, children, pets) {\n var init = state.input;\n Curry._1(dispatch, {\n TAG: /* UpdateInputAndFetchQuote */14,\n input: {\n checkIn: init.checkIn,\n checkOut: init.checkOut,\n isDefaultInput: init.isDefaultInput,\n adults: adults > 0 ? adults : 1,\n children: children >= 0 ? children : 0,\n infants: infants >= 0 ? infants : 0,\n pets: pets,\n flexibleDates: init.flexibleDates,\n comment: init.comment,\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: \"SelectingCheckIn\",\n onError: undefined,\n shouldSkipMinStayValidation: false\n });\n Curry._1(notifyOnBookingWidgetInteraction, listing.id);\n };\n var updateComment = React.useCallback((function (comment) {\n return function (modal) {\n var init = state.input;\n Curry._1(dispatch, {\n TAG: /* UpdateInputWithoutQuoteFetching */16,\n input: {\n checkIn: init.checkIn,\n checkOut: init.checkOut,\n isDefaultInput: init.isDefaultInput,\n adults: init.adults,\n children: init.children,\n infants: init.infants,\n pets: init.pets,\n flexibleDates: init.flexibleDates,\n comment: Opt.fromString(comment),\n locale: init.locale,\n countryOverride: init.countryOverride,\n detectedCurrency: init.detectedCurrency\n },\n datePickerMode: state.datePickerMode\n });\n if (modal === \"MessageModal\") {\n return Curry._1(notifyOnMessageModalFormInteraction, listing.id);\n } else {\n return Curry._1(notifyOnInquiryModalFormInteraction, listing.id);\n }\n };\n }), [\n state.input,\n state.datePickerMode\n ]);\n var updateNewUserFirstName = React.useCallback((function (firstName) {\n return function (modal) {\n var init = state.newUser;\n Curry._1(dispatch, {\n TAG: /* UpdateNewUser */20,\n _0: {\n firstName: Opt.fromString(firstName),\n lastName: init.lastName,\n email: init.email,\n phone: init.phone\n }\n });\n if (modal === \"MessageModal\") {\n return Curry._1(notifyOnMessageModalFormInteraction, listing.id);\n } else {\n return Curry._1(notifyOnInquiryModalFormInteraction, listing.id);\n }\n };\n }), [state.newUser]);\n var updateNewUserLastName = React.useCallback((function (lastName) {\n return function (modal) {\n var init = state.newUser;\n Curry._1(dispatch, {\n TAG: /* UpdateNewUser */20,\n _0: {\n firstName: init.firstName,\n lastName: Opt.fromString(lastName),\n email: init.email,\n phone: init.phone\n }\n });\n if (modal === \"MessageModal\") {\n return Curry._1(notifyOnMessageModalFormInteraction, listing.id);\n } else {\n return Curry._1(notifyOnInquiryModalFormInteraction, listing.id);\n }\n };\n }), [state.newUser]);\n var updateNewUserEmail = React.useCallback((function (email) {\n return function (modal) {\n var init = state.newUser;\n Curry._1(dispatch, {\n TAG: /* UpdateNewUser */20,\n _0: {\n firstName: init.firstName,\n lastName: init.lastName,\n email: Opt.fromString(email),\n phone: init.phone\n }\n });\n if (modal === \"MessageModal\") {\n return Curry._1(notifyOnMessageModalFormInteraction, listing.id);\n } else {\n return Curry._1(notifyOnInquiryModalFormInteraction, listing.id);\n }\n };\n }), [state.newUser]);\n var updateNewUserPhone = React.useCallback((function (phone) {\n return function (modal) {\n var init = state.newUser;\n Curry._1(dispatch, {\n TAG: /* UpdateNewUser */20,\n _0: {\n firstName: init.firstName,\n lastName: init.lastName,\n email: init.email,\n phone: Opt.fromString(phone)\n }\n });\n if (modal === \"MessageModal\") {\n return Curry._1(notifyOnMessageModalFormInteraction, listing.id);\n } else {\n return Curry._1(notifyOnInquiryModalFormInteraction, listing.id);\n }\n };\n }), [state.newUser]);\n var updateDatePickerMode = React.useCallback((function (datePickerMode) {\n Curry._1(dispatch, {\n TAG: /* UpdateDatePickerMode */17,\n _0: datePickerMode\n });\n }), []);\n var updateHoveredDay = React.useCallback((function (date) {\n Curry._1(dispatch, {\n TAG: /* UpdateHoveredDay */18,\n _0: date\n });\n }), []);\n var showInquiryModal = React.useCallback((function (param) {\n var match = state.status;\n var exit = 0;\n if (listing.userContext.isManagedByCurrentUser) {\n return Curry._1(dispatch, {\n TAG: /* ShowModal */19,\n _0: /* OwnListingWarningModal */2\n });\n }\n if (typeof match === \"number\") {\n return ;\n }\n if (match.TAG === /* FetchingQuote */0) {\n exit = typeof match._0 === \"object\" ? 1 : 2;\n } else {\n var match$1 = match._0;\n exit = match$1.TAG === /* Ok */0 && typeof match$1._0 === \"object\" ? 1 : 2;\n }\n switch (exit) {\n case 1 :\n Curry._1(dispatch, {\n TAG: /* ShowModal */19,\n _0: /* InquiryModal */0\n });\n Curry._1(trackContactHost, listing);\n return Curry._1(notifyOnInquiryModalShown, listing.id);\n case 2 :\n Curry._1(dispatch, {\n TAG: /* ShowModal */19,\n _0: /* MessageModal */1\n });\n Curry._1(trackContactHost, listing);\n return Curry._1(notifyOnInquiryModalShown, listing.id);\n \n }\n }), [\n state.status,\n listing.userContext.isManagedByCurrentUser\n ]);\n var submitInquiry = React.useCallback((function (param) {\n Curry._1(dispatch, /* SubmitInquiry */6);\n }), []);\n var showMessageModal = React.useCallback((function (param) {\n if (listing.userContext.isManagedByCurrentUser) {\n return Curry._1(dispatch, {\n TAG: /* ShowModal */19,\n _0: /* OwnListingWarningModal */2\n });\n } else {\n Curry._1(dispatch, {\n TAG: /* ShowModal */19,\n _0: /* MessageModal */1\n });\n return Curry._1(notifyOnMessageModalShown, listing.id);\n }\n }), [listing.userContext.isManagedByCurrentUser]);\n var submitMessage = React.useCallback((function (input) {\n Curry._1(dispatch, {\n TAG: /* SubmitMessage */23,\n _0: input\n });\n }), []);\n var hideModal = React.useCallback((function (param) {\n var match = state.modal;\n var match$1 = match.current;\n if (match$1 === undefined) {\n return ;\n }\n switch (match$1) {\n case /* InquiryModal */0 :\n if (typeof match.inquiryStatus === \"number\") {\n return ;\n } else {\n return Curry._1(dispatch, /* HideModal */5);\n }\n case /* MessageModal */1 :\n if (typeof match.messageStatus === \"number\") {\n return ;\n } else {\n return Curry._1(dispatch, /* HideModal */5);\n }\n case /* OwnListingWarningModal */2 :\n return Curry._1(dispatch, /* HideModal */5);\n \n }\n }), [state.modal]);\n var notifyGtmOnMessageModalFormInteraction = React.useCallback((function (param) {\n Curry._1(notifyOnMessageModalFormInteraction, listing.id);\n }), []);\n var notifyGtmOnPhoneShow = React.useCallback((function (param) {\n Curry._1(notifyOnPhoneShow, listing.id);\n }), []);\n return {\n status: state.status,\n input: state.input,\n calendar: state.calendar,\n modal: state.modal,\n message: message,\n newUser: newUser,\n datePickerMode: state.datePickerMode,\n hoveredDay: state.hoveredDay,\n fetchCalendarDays: fetchCalendarDays,\n updateCheckIn: updateCheckIn,\n updateCheckOut: updateCheckOut,\n updateCheckInAndCheckOut: updateCheckInAndCheckOut,\n updateBookingCalendarOpenedDate: updateBookingCalendarOpenedDate,\n updateAvailabilityCalendarOpenedDate: updateAvailabilityCalendarOpenedDate,\n updateFlexibleDates: updateFlexibleDates,\n clearDates: clearDates,\n updateGuestsInUrl: updateGuestsInUrl,\n updateComment: updateComment,\n updateNewUserFirstName: updateNewUserFirstName,\n updateNewUserLastName: updateNewUserLastName,\n updateNewUserEmail: updateNewUserEmail,\n updateNewUserPhone: updateNewUserPhone,\n updateDatePickerMode: updateDatePickerMode,\n updateHoveredDay: updateHoveredDay,\n isDayInPastRelativeToListingTimezone: BookingDates.isDayInPastRelativeToListingTimezone,\n isDayBeforeCheckIn: BookingDates.isDayBeforeCheckIn,\n showInquiryModal: showInquiryModal,\n submitInquiry: submitInquiry,\n showMessageModal: showMessageModal,\n submitMessage: submitMessage,\n hideModal: hideModal,\n notifyGtmOnPhoneShow: notifyGtmOnPhoneShow,\n notifyGtmOnMessageModalFormInteraction: notifyGtmOnMessageModalFormInteraction,\n checkInFieldRef: checkInFieldRef,\n notifications: match$1[0],\n clearNotification: (function (param) {\n Curry._1(updateNotifications, (function (param) {\n return [];\n }));\n }),\n longLoadingStatus: state.longLoadingStatus,\n loadingToastId: state.loadingToastId,\n quoteBackgroundFetchingStatus: state.quoteBackgroundFetchingStatus\n };\n}\n\nvar longLoadingTimeoutValue = 7;\n\nexports.longLoadingTimeoutValue = longLoadingTimeoutValue;\nexports.BannerError = BannerError;\nexports.ValidationError = ValidationError;\nexports.Status = Status;\nexports.Calendar = Calendar;\nexports.Input = Input;\nexports.NewUser = NewUser;\nexports.MessageInput = MessageInput;\nexports.Modal = Modal;\nexports.Gtag = Gtag$1;\nexports.Amplitude = Amplitude$1;\nexports.$$Notification = $$Notification;\nexports.useBooking = useBooking;\n/* Comparable Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Api = require(\"../../../api/Api.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Hooks = require(\"../../../libs/Hooks.bs.js\");\nvar React = require(\"react\");\nvar $$Promise = require(\"../../../bindings/Promise.bs.js\");\nvar Caml_obj = require(\"rescript/lib/js/caml_obj.js\");\nvar SyncListingWebSockets = require(\"../../../api/requesters/listing/SyncListingWebSockets.bs.js\");\n\nfunction useListing(userId, listing) {\n var mounted = React.useRef(false);\n var match = Hooks.useReducer(listing, (function (listing, action) {\n switch (action.TAG | 0) {\n case /* UpdateSaved */0 :\n var cb = action._1;\n var newrecord = Caml_obj.obj_dup(listing);\n var init = listing.userContext;\n newrecord.userContext = {\n listingRelationshipType: init.listingRelationshipType,\n savedToTripList: action._0,\n isManagedByCurrentUser: init.isManagedByCurrentUser,\n alertWhenVerified: init.alertWhenVerified\n };\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: newrecord,\n _1: (function (param) {\n Curry._1(cb, undefined);\n })\n };\n case /* UpdateAlertWhenVerifiedStatus */1 :\n var cb$1 = action.cb;\n var newrecord$1 = Caml_obj.obj_dup(listing);\n var init$1 = listing.userContext;\n newrecord$1.userContext = {\n listingRelationshipType: init$1.listingRelationshipType,\n savedToTripList: init$1.savedToTripList,\n isManagedByCurrentUser: init$1.isManagedByCurrentUser,\n alertWhenVerified: action.alertWhenVerified\n };\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: newrecord$1,\n _1: (function (param) {\n Curry._1(cb$1, undefined);\n })\n };\n case /* UpdateListing */2 :\n var cb$2 = action.cb;\n return {\n TAG: /* UpdateWithSideEffects */1,\n _0: action.listing,\n _1: (function (param) {\n Curry._1(cb$2, undefined);\n })\n };\n \n }\n }));\n var dispatch = match[1];\n var listing$1 = match[0];\n var updateListing = function (andThen) {\n $$Promise.wait(Api.getContextualListing(listing$1.id), (function (x) {\n if (x.TAG === /* Ok */0) {\n return Curry._1(dispatch, {\n TAG: /* UpdateListing */2,\n listing: x._0,\n cb: andThen\n });\n }\n \n }));\n };\n React.useEffect((function () {\n if (mounted.current) {\n updateListing(function (prim) {\n \n });\n } else {\n mounted.current = true;\n }\n }), [userId]);\n return {\n listing: listing$1,\n resyncListing: (function (onComplete, onError) {\n SyncListingWebSockets.exec(listing$1.id, (function (param) {\n updateListing(onComplete);\n }), onError);\n }),\n updateListingSavedStatus: (function (savedToTripList, cb) {\n Curry._1(dispatch, {\n TAG: /* UpdateSaved */0,\n _0: savedToTripList,\n _1: cb\n });\n }),\n updateAlertWhenVerifiedStatus: (function (status, cb) {\n Curry._1(dispatch, {\n TAG: /* UpdateAlertWhenVerifiedStatus */1,\n alertWhenVerified: status,\n cb: cb\n });\n })\n };\n}\n\nexports.useListing = useListing;\n/* Api Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Slv = require(\"./Slv.bs.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../models/Listing.bs.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar OptionalUser = require(\"../../../models/OptionalUser.bs.js\");\nvar SlvTransferLink = require(\"./BookingDeals/components/SlvTransferLink.bs.js\");\nvar UserSubscription = require(\"../../../models/UserSubscription.bs.js\");\n\nfunction Slv__JsBridge$default(props) {\n var authenticateWithCallback = props.authenticateWithCallback;\n var authenticateNewUser = props.authenticateNewUser;\n var user = props.user;\n var listing = props.listing;\n var listing$1 = React.useMemo((function () {\n return Listing.Contextual.fromJson(listing);\n }), []);\n var user$1 = React.useMemo((function () {\n return OptionalUser.fromJson(user, authenticateNewUser, authenticateWithCallback);\n }), [\n user,\n authenticateNewUser\n ]);\n return React.createElement(Slv.make, {\n listing: listing$1,\n user: user$1,\n plans: Belt_Option.flatMap(Caml_option.nullable_to_opt(props.plans), (function (plansObj) {\n return UserSubscription.Plans.fromJson(plansObj);\n })),\n initialCanExternalRedirectData: Belt_Option.mapWithDefault(Caml_option.nullable_to_opt(props.canExternalRedirectData), SlvTransferLink.ExternalRedirect.$$default, SlvTransferLink.ExternalRedirect.fromJson),\n sampleMode: Belt_Option.getWithDefault(Caml_option.nullable_to_opt(props.sampleMode), false)\n });\n}\n\nvar $$default = Slv__JsBridge$default;\n\nexports.$$default = $$default;\nexports.default = $$default;\nexports.__esModule = true;\n/* Slv Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Listing = require(\"../../../../models/Listing.bs.js\");\nvar SlvHero = require(\"../Hero/SlvHero.bs.js\");\nvar ReactRef = require(\"../../../../bindings/ReactRef.bs.js\");\nvar SlvBlock = require(\"../../components/SlvBlock/SlvBlock.bs.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar SlvBookingDeals = require(\"../BookingDeals/SlvBookingDeals.bs.js\");\nvar SlvImageContext = require(\"../SlvImageContext.bs.js\");\nvar SlvUpperBlockModuleScss = require(\"./SlvUpperBlock.module.scss\").default;\n\nvar css = SlvUpperBlockModuleScss;\n\nfunction SlvUpperBlock(props) {\n var bestDeal = props.bestDeal;\n var loginAndExitSampleMode = props.loginAndExitSampleMode;\n var sampleMode = props.sampleMode;\n var canDoMagicSearch = props.canDoMagicSearch;\n var showMagicSearchLimitModal = props.showMagicSearchLimitModal;\n var user = props.user;\n var screen = props.screen;\n var booking = props.booking;\n var listing = props.listing;\n var pickDates = React.useCallback((function (param) {\n if (sampleMode) {\n return Curry._1(loginAndExitSampleMode, undefined);\n } else {\n ReactRef.focus(booking.checkInFieldRef);\n return SlvBlock.scrollPageTo(\"Deals\", screen);\n }\n }), [screen]);\n var pickNextAvailable = React.useCallback((function (param) {\n var match = listing.nextAvailableDates.checkIn;\n var match$1 = listing.nextAvailableDates.checkOut;\n if (match !== undefined && match$1 !== undefined) {\n Curry._3(booking.updateCheckInAndCheckOut, Caml_option.valFromOption(match), Caml_option.valFromOption(match$1), (function (x) {\n if (typeof x === \"object\" || !(x === \"CheckOutBeforeCheckIn\" || x === \"CheckInInThePast\" || x === \"NoCheckOutDate\" || x === \"CheckInAndCheckOutSameDay\" || x === \"NoCheckInDate\")) {\n return ;\n } else {\n return ReactRef.focus(booking.checkInFieldRef);\n }\n }));\n return ;\n }\n \n }), [\n listing.nextAvailableDates.checkIn,\n listing.nextAvailableDates.checkOut,\n booking.updateCheckInAndCheckOut\n ]);\n var match = booking.input.checkIn;\n var match$1 = booking.input.checkOut;\n var match$2 = booking.status;\n var noDatesSelectedForBooking = typeof match$2 === \"number\" ? (\n match$2 !== 0 ? false : (\n match !== undefined ? match$1 === undefined : true\n )\n ) : (\n match !== undefined ? match$1 === undefined : true\n );\n return React.createElement(SlvImageContext.make, {\n children: React.createElement(\"div\", {\n className: css.upperBlockContainer\n }, React.createElement(\"div\", {\n className: css.heroContainer\n }, React.createElement(SlvHero.make, {\n listing: listing,\n user: user,\n showListingFeedbackReportModal: props.showListingFeedbackReportModal,\n showShareListingModal: props.showShareListingModal,\n showSaveListingToListModal: props.showSaveListingToListModal,\n screen: screen,\n resyncListing: props.resyncListing,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canDoMagicSearch: canDoMagicSearch,\n sampleMode: sampleMode,\n bestDeal: bestDeal\n })), React.createElement(\"div\", {\n className: css.mobileTitle\n }, React.createElement(\"span\", undefined, Listing.Contextual.getFirstTitle(listing))), React.createElement(\"div\", {\n className: css.bookingDealsContainer\n }, React.createElement(SlvBookingDeals.make, {\n listing: listing,\n booking: booking,\n user: user,\n showListingCloseMatchesModal: props.showListingCloseMatchesModal,\n closeMatchesMap: props.closeMatchesMap,\n onCloseMatchesFetch: props.onCloseMatchesFetch,\n bestDeal: bestDeal,\n pickDates: pickDates,\n pickNextAvailable: pickNextAvailable,\n noDatesSelectedForBooking: noDatesSelectedForBooking,\n showExternalRedirectLimitModal: props.showExternalRedirectLimitModal,\n showMagicSearchLimitModal: showMagicSearchLimitModal,\n canExternalRedirectData: props.canExternalRedirectData,\n canDoMagicSearch: canDoMagicSearch,\n sampleMode: sampleMode,\n loginAndExitSampleMode: loginAndExitSampleMode\n }))),\n listing: listing\n });\n}\n\nvar make = SlvUpperBlock;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\n\nfunction once(fn) {\n var called = {\n contents: false\n };\n return function (x) {\n if (!called.contents) {\n called.contents = true;\n return Curry._1(fn, x);\n }\n \n };\n}\n\nexports.once = once;\n/* No side effect */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Sourcebuster = require(\"sourcebuster\");\n\nfunction data(param) {\n return {\n firstSourceType: Sourcebuster.get.first.typ,\n firstSourceUtmSource: Sourcebuster.get.first.src,\n firstSourceUtmMedium: Sourcebuster.get.first.mdm,\n firstSourceUtmCampaign: Sourcebuster.get.first.cmp,\n firstSourceUtmContent: Sourcebuster.get.first.cnt,\n firstSourceUtmTerm: Sourcebuster.get.first.trm,\n firstSourceEntrancePoint: Sourcebuster.get.first.ep,\n firstSourceReferer: Sourcebuster.get.first.rf,\n currentSourceType: Sourcebuster.get.current.typ,\n currentSourceUtmSource: Sourcebuster.get.current.src,\n currentSourceUtmMedium: Sourcebuster.get.current.mdm,\n currentSourceUtmCampaign: Sourcebuster.get.current.cmp,\n currentSourceUtmContent: Sourcebuster.get.current.cnt,\n currentSourceUtmTerm: Sourcebuster.get.current.trm,\n currentSourceEntrancePoint: Sourcebuster.get.current.ep,\n currentSourceReferer: Sourcebuster.get.current.rf,\n totalVisitsPriorConversion: Sourcebuster.get.udata.vst\n };\n}\n\nexports.data = data;\n/* sourcebuster Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\n\nfunction formatHourAmPm(hour) {\n if (hour < 12) {\n var x = String(hour === 0 ? 12 : hour);\n return \"\" + x + \" AM\";\n }\n var x$1 = String(hour === 12 ? 12 : hour % 12);\n return \"\" + x$1 + \" PM\";\n}\n\nexports.formatHourAmPm = formatHourAmPm;\n/* No side effect */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar TVIcon = require(\"../styleguide/icons/TVIcon.bs.js\");\nvar GymIcon = require(\"../styleguide/icons/GymIcon.bs.js\");\nvar DeskIcon = require(\"../styleguide/icons/DeskIcon.bs.js\");\nvar HeatIcon = require(\"../styleguide/icons/HeatIcon.bs.js\");\nvar IronIcon = require(\"../styleguide/icons/IronIcon.bs.js\");\nvar PetsIcon = require(\"../styleguide/icons/PetsIcon.bs.js\");\nvar PoolIcon = require(\"../styleguide/icons/PoolIcon.bs.js\");\nvar WifiIcon = require(\"../styleguide/icons/WifiIcon.bs.js\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar DrawerIcon = require(\"../styleguide/icons/DrawerIcon.bs.js\");\nvar HotTubIcon = require(\"../styleguide/icons/HotTubIcon.bs.js\");\nvar CouplesIcon = require(\"../styleguide/icons/CouplesIcon.bs.js\");\nvar KitchenIcon = require(\"../styleguide/icons/KitchenIcon.bs.js\");\nvar LaundryIcon = require(\"../styleguide/icons/LaundryIcon.bs.js\");\nvar ParkingIcon = require(\"../styleguide/icons/ParkingIcon.bs.js\");\nvar ShampooIcon = require(\"../styleguide/icons/ShampooIcon.bs.js\");\nvar ElevatorIcon = require(\"../styleguide/icons/ElevatorIcon.bs.js\");\nvar FirstAidIcon = require(\"../styleguide/icons/FirstAidIcon.bs.js\");\nvar BigGroupsIcon = require(\"../styleguide/icons/BigGroupsIcon.bs.js\");\nvar BreakfastIcon = require(\"../styleguide/icons/BreakfastIcon.bs.js\");\nvar FirePlaceIcon = require(\"../styleguide/icons/FirePlaceIcon.bs.js\");\nvar HairDryerIcon = require(\"../styleguide/icons/HairDryerIcon.bs.js\");\nvar EssentialsIcon = require(\"../styleguide/icons/EssentialsIcon.bs.js\");\nvar SafetyCardIcon = require(\"../styleguide/icons/SafetyCardIcon.bs.js\");\nvar WheelchairIcon = require(\"../styleguide/icons/WheelchairIcon.bs.js\");\nvar BedroomLockIcon = require(\"../styleguide/icons/BedroomLockIcon.bs.js\");\nvar SmokeDetectorIcon = require(\"../styleguide/icons/SmokeDetectorIcon.bs.js\");\nvar SoloAdventuresIcon = require(\"../styleguide/icons/SoloAdventuresIcon.bs.js\");\nvar AirConditioningIcon = require(\"../styleguide/icons/AirConditioningIcon.bs.js\");\nvar FamiliesWithKidsIcon = require(\"../styleguide/icons/FamiliesWithKidsIcon.bs.js\");\nvar FireExtinguisherIcon = require(\"../styleguide/icons/FireExtinguisherIcon.bs.js\");\nvar BusinessTravelersIcon = require(\"../styleguide/icons/BusinessTravelersIcon.bs.js\");\nvar CarbonMonoxideDetectorIcon = require(\"../styleguide/icons/CarbonMonoxideDetectorIcon.bs.js\");\n\nfunction toString(x) {\n switch (x) {\n case /* Common */0 :\n return \"common\";\n case /* GoodFor */1 :\n return \"good_for\";\n case /* Spaces */2 :\n return \"spaces\";\n case /* Safety */3 :\n return \"safety\";\n \n }\n}\n\nvar Group = {\n toString: toString\n};\n\nvar all_goodFor = [\n {\n TAG: /* Regular */0,\n _0: /* Couples */0,\n _1: {\n id: 1,\n label: \"Couples\",\n icon: CouplesIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* SoloAdventurers */1,\n _1: {\n id: 2,\n label: \"Solo adventurers\",\n icon: SoloAdventuresIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* BusinessTravelers */2,\n _1: {\n id: 3,\n label: \"Business travelers\",\n icon: BusinessTravelersIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* FamiliesWithKids */3,\n _1: {\n id: 4,\n label: \"Families (with kids)\",\n icon: FamiliesWithKidsIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* BigGroups */4,\n _1: {\n id: 5,\n label: \"Big groups\",\n icon: BigGroupsIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Pets */5,\n _1: {\n id: 6,\n label: \"Furry friends (pets)\",\n icon: PetsIcon\n }\n }\n];\n\nvar all_common = [\n {\n TAG: /* Regular */0,\n _0: /* Essentials */6,\n _1: {\n id: 7,\n label: \"Essentials (towels, bed sheets, soap, and toilet paper)\",\n icon: EssentialsIcon\n }\n },\n {\n TAG: /* Prioritized */1,\n _0: /* Wifi */7,\n _1: {\n id: 8,\n label: \"Wifi\",\n icon: WifiIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Shampoo */8,\n _1: {\n id: 9,\n label: \"Shampoo\",\n icon: ShampooIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* ClosetDrawers */9,\n _1: {\n id: 10,\n label: \"Closet/drawers\",\n icon: DrawerIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Tv */10,\n _1: {\n id: 11,\n label: \"TV\",\n icon: TVIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Heat */11,\n _1: {\n id: 12,\n label: \"Heat\",\n icon: HeatIcon\n }\n },\n {\n TAG: /* Prioritized */1,\n _0: /* AirConditioning */12,\n _1: {\n id: 13,\n label: \"Air conditioning\",\n icon: AirConditioningIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Breakfast */13,\n _1: {\n id: 14,\n label: \"Breakfast, coffee, tea\",\n icon: BreakfastIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Workspace */14,\n _1: {\n id: 15,\n label: \"Desk/workspace\",\n icon: DeskIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Fireplace */15,\n _1: {\n id: 16,\n label: \"Fireplace\",\n icon: FirePlaceIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Iron */16,\n _1: {\n id: 17,\n label: \"Iron\",\n icon: IronIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Hairdryer */17,\n _1: {\n id: 18,\n label: \"Hairdryer\",\n icon: HairDryerIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* PetsInHouse */18,\n _1: {\n id: 19,\n label: \"Pets in the house\",\n icon: PetsIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* WheelchairAccessible */19,\n _1: {\n id: 20,\n label: \"Wheelchair accessible\",\n icon: WheelchairIcon\n }\n }\n];\n\nvar all_spaces = [\n {\n TAG: /* Prioritized */1,\n _0: /* Kitchen */20,\n _1: {\n id: 21,\n label: \"Kitchen\",\n icon: KitchenIcon\n }\n },\n {\n TAG: /* Prioritized */1,\n _0: /* LaundryWasher */21,\n _1: {\n id: 22,\n label: \"Laundry - washer\",\n icon: LaundryIcon\n }\n },\n {\n TAG: /* Prioritized */1,\n _0: /* LaundryDryer */22,\n _1: {\n id: 23,\n label: \"Laundry - dryer\",\n icon: LaundryIcon\n }\n },\n {\n TAG: /* Prioritized */1,\n _0: /* ParkingSpace */23,\n _1: {\n id: 24,\n label: \"Parking space\",\n icon: ParkingIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Elevator */24,\n _1: {\n id: 25,\n label: \"Elevator\",\n icon: ElevatorIcon\n }\n },\n {\n TAG: /* Prioritized */1,\n _0: /* Pool */25,\n _1: {\n id: 26,\n label: \"Pool\",\n icon: PoolIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* HotTub */26,\n _1: {\n id: 27,\n label: \"Hot Tub\",\n icon: HotTubIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* Gym */27,\n _1: {\n id: 28,\n label: \"Gym\",\n icon: GymIcon\n }\n }\n];\n\nvar all_safety = [\n {\n TAG: /* Regular */0,\n _0: /* SmokeDetector */28,\n _1: {\n id: 29,\n label: \"Smoke detector\",\n icon: SmokeDetectorIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* CarbonMonoxideDetector */29,\n _1: {\n id: 30,\n label: \"Carbon monoxide detector\",\n icon: CarbonMonoxideDetectorIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* FirstAidKit */30,\n _1: {\n id: 31,\n label: \"First aid kit\",\n icon: FirstAidIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* SafetyCard */31,\n _1: {\n id: 32,\n label: \"Safety card\",\n icon: SafetyCardIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* FireExtinguisher */32,\n _1: {\n id: 33,\n label: \"Fire extinguisher\",\n icon: FireExtinguisherIcon\n }\n },\n {\n TAG: /* Regular */0,\n _0: /* BedroomLock */33,\n _1: {\n id: 34,\n label: \"Lock on bedroom door\",\n icon: BedroomLockIcon\n }\n }\n];\n\nvar all = [\n [\n /* Common */0,\n all_common\n ],\n [\n /* Spaces */2,\n all_spaces\n ],\n [\n /* Safety */3,\n all_safety\n ],\n [\n /* GoodFor */1,\n all_goodFor\n ]\n];\n\nvar match = Belt_Array.reduce(all, [\n [],\n []\n ], (function (param, param$1) {\n var match = Belt_Array.reduce(param$1[1], [\n [],\n []\n ], (function (param, amenity) {\n var regular = param[1];\n var prioritized = param[0];\n if (amenity.TAG === /* Regular */0) {\n return [\n prioritized,\n Belt_Array.concat(regular, [amenity._1])\n ];\n } else {\n return [\n Belt_Array.concat(prioritized, [amenity._1]),\n regular\n ];\n }\n }));\n return [\n Belt_Array.concat(param[0], match[0]),\n Belt_Array.concat(param[1], [[\n param$1[0],\n match[1]\n ]])\n ];\n }));\n\nvar regular = match[1];\n\nvar prioritized = match[0];\n\nfunction prioritized$1(ids) {\n return Belt_Array.keep(prioritized, (function (amenity) {\n return ids.includes(amenity.id);\n }));\n}\n\nfunction regular$1(ids) {\n return Belt_Array.map(regular, (function (param) {\n return [\n param[0],\n Belt_Array.keep(param[1], (function (amenity) {\n return ids.includes(amenity.id);\n }))\n ];\n }));\n}\n\nexports.Group = Group;\nexports.all = all;\nexports.prioritized = prioritized$1;\nexports.regular = regular$1;\n/* match Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar WithTestId = require(\"../WithTestId/WithTestId.bs.js\");\nvar AlertModuleScss = require(\"./Alert.module.scss\").default;\n\nvar css = AlertModuleScss;\n\nfunction className(x) {\n switch (x) {\n case /* Info */0 :\n return css.info;\n case /* Success */1 :\n return css.success;\n case /* Warning */2 :\n return css.warning;\n case /* Danger */3 :\n return css.danger;\n \n }\n}\n\nvar Level = {\n className: className\n};\n\nfunction Alert(props) {\n var className$1 = props.className;\n var className$2 = className$1 !== undefined ? className$1 : \"\";\n return React.createElement(WithTestId.Optional.make, {\n id: props.testId,\n children: React.createElement(\"div\", {\n className: Cx.cx([\n css.alert,\n className(props.level),\n className$2\n ])\n }, props.children)\n });\n}\n\nvar make = Alert;\n\nexports.css = css;\nexports.Level = Level;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar PetIcon = require(\"../../icons/PetIcon.bs.js\");\nvar CloseIcon = require(\"../../icons/CloseIcon.bs.js\");\nvar FamilyIcon = require(\"../../icons/FamilyIcon.bs.js\");\nvar SlvBooking = require(\"../../../bundles/listings-show/ui/SlvBooking.bs.js\");\nvar WithTestId = require(\"../WithTestId/WithTestId.bs.js\");\nvar IconControl = require(\"../Control/IconControl.bs.js\");\nvar WarningIcon = require(\"../../icons/WarningIcon.bs.js\");\nvar MoonNightIcon = require(\"../../icons/MoonNightIcon.bs.js\");\nvar TeddyBearIcon = require(\"../../icons/TeddyBearIcon.bs.js\");\nvar BannerMessages = require(\"./BannerMessages.bs.js\");\nvar AlertBannerScss = require(\"./AlertBanner.scss\").default;\nvar CalendarWithClockIcon = require(\"../../icons/CalendarWithClockIcon.bs.js\");\n\nvar css = AlertBannerScss;\n\nfunction AlertBanner$BannerIcon(props) {\n return React.createElement(props.icon.make, {\n size: \"XXL\",\n color: \"Primary\"\n });\n}\n\nvar BannerIcon = {\n make: AlertBanner$BannerIcon\n};\n\nfunction AlertBanner(props) {\n var pickDates = props.pickDates;\n var booking = props.booking;\n var match = React.useState(function () {\n return SlvBooking.Status.bannerError(booking.status);\n });\n var setError = match[1];\n var error = match[0];\n React.useEffect((function () {\n Curry._1(setError, (function (param) {\n return SlvBooking.Status.bannerError(booking.status);\n }));\n }), [booking.status]);\n if (error !== undefined) {\n return React.createElement(\"div\", {\n \"aria-label\": \"AlertBanner\",\n className: css.bannerContainer,\n role: error === \"FetchingQuoteError\" || error === \"CalendarValidationError\" ? \"button\" : \"\",\n tabIndex: 0,\n onClick: error === \"FetchingQuoteError\" || error === \"CalendarValidationError\" ? (function (param) {\n Curry._1(pickDates, undefined);\n }) : (function (prim) {\n \n })\n }, React.createElement(\"div\", {\n className: css.textBlock\n }, React.createElement(AlertBanner$BannerIcon, {\n icon: error === \"NoCheckInAndCheckOutDates\" || error === \"CalendarValidationError\" ? CalendarWithClockIcon : (\n error === \"MinStayViolation\" ? MoonNightIcon : (\n error === \"FetchingQuoteError\" ? WarningIcon : (\n error === \"InfantsAndChildrenNotAllowed\" ? TeddyBearIcon : (\n error === \"PetsNotAllowed\" ? PetIcon : FamilyIcon\n )\n )\n )\n )\n }), React.createElement(WithTestId.make, {\n id: \"booking-form-error-message\",\n children: React.createElement(\"span\", {\n className: css.errorText\n }, React.createElement(BannerMessages.make, {\n booking: booking,\n pickNextAvailable: props.pickNextAvailable,\n hasNextAvailableDates: props.hasNextAvailableDates,\n pickDates: pickDates\n }))\n })), React.createElement(IconControl.make, {\n size: \"SM\",\n color: \"White\",\n icon: CloseIcon,\n onClick: (function ($$event) {\n $$event.stopPropagation();\n Curry._1(setError, (function (param) {\n \n }));\n })\n }));\n } else {\n return null;\n }\n}\n\nvar make = AlertBanner;\n\nexports.css = css;\nexports.BannerIcon = BannerIcon;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar PickNextAvailableDates = require(\"./PickNextAvailableDates.bs.js\");\n\nfunction BannerMessages(props) {\n var pickDates = props.pickDates;\n var hasNextAvailableDates = props.hasNextAvailableDates;\n var pickNextAvailable = props.pickNextAvailable;\n var match = props.booking.status;\n if (typeof match === \"number\") {\n return null;\n }\n if (match.TAG !== /* Ready */1) {\n return null;\n }\n var match$1 = match._0;\n if (match$1.TAG === /* Ok */0) {\n if (typeof match$1._0 === \"object\") {\n return null;\n } else {\n return React.createElement(PickNextAvailableDates.make, {\n pickDates: pickDates,\n hasNextAvailableDates: hasNextAvailableDates,\n pickNextAvailable: pickNextAvailable\n });\n }\n }\n var match$2 = match$1._0;\n if (typeof match$2 !== \"object\") {\n if (match$2 === \"FetchQuoteError\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.fetch-quote-error\",\n defaultMessage: \"We could not get a quote.\"\n });\n } else {\n return null;\n }\n }\n var validationError = match$2.VAL;\n if (typeof validationError !== \"object\") {\n if (validationError === \"NoCheckInAndCheckOutDates\") {\n return React.createElement(PickNextAvailableDates.make, {\n pickDates: pickDates,\n hasNextAvailableDates: hasNextAvailableDates,\n pickNextAvailable: pickNextAvailable\n });\n } else if (validationError === \"DatesUnavailable\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.dates-unavailable\",\n defaultMessage: \"Oh no! These dates are not available, try different ones.\"\n });\n } else if (validationError === \"NoCheckInDate\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.no-check-in-date\",\n defaultMessage: \"Pick check in date\"\n });\n } else if (validationError === \"CheckInAndCheckOutSameDay\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.check-in-and-check-out-same-day\",\n defaultMessage: \"You can't check in and check out on the same day\"\n });\n } else if (validationError === \"NoCheckOutDate\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.no-check-out-date\",\n defaultMessage: \"Pick check out date\"\n });\n } else if (validationError === \"CheckInInThePast\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.check-in-in-the-past\",\n defaultMessage: \"You can't check in in the past\"\n });\n } else if (validationError === \"ChildrenNotAllowed\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.children-not-allowed\",\n defaultMessage: \"Sorry children are not allowed\"\n });\n } else if (validationError === \"PetsNotAllowed\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.pets-not-allowed\",\n defaultMessage: \"Sorry you can't bring pets with you\"\n });\n } else if (validationError === \"CheckOutBeforeCheckIn\") {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.check-out-before-check-in\",\n defaultMessage: \"It's not possible to check out before the check in date\"\n });\n } else {\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.infants-not-allowed\",\n defaultMessage: \"Sorry infants are not allowed\"\n });\n }\n }\n if (validationError.NAME === \"MinStayViolation\") {\n var minStay = validationError.VAL;\n var nights = minStay === 1 ? \"night\" : \"nights\";\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.min-stay-violation\",\n defaultMessage: \"You must stay at least {minStay} {nights}\",\n values: {\n nights: nights,\n minStay: minStay\n }\n });\n }\n var maxGuests = validationError.VAL;\n var guests = maxGuests === 1 ? \"guest\" : \"guests\";\n return React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.alert.max-guest-violation\",\n defaultMessage: \"Sorry this listing accommodates only {maxGuests} {guests} maximum\",\n values: {\n guests: guests,\n maxGuests: maxGuests\n }\n });\n}\n\nvar make = BannerMessages;\n\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar TextControl = require(\"../Control/TextControl.bs.js\");\nvar PickNextAvailableDatesScss = require(\"./PickNextAvailableDates.scss\").default;\n\nvar css = PickNextAvailableDatesScss;\n\nfunction PickNextAvailableDates(props) {\n var pickNextAvailable = props.pickNextAvailable;\n var pickDates = props.pickDates;\n return React.createElement(\"div\", {\n className: css.textBlock\n }, React.createElement(TextControl.make, {\n onClick: (function ($$event) {\n $$event.stopPropagation();\n Curry._1(pickDates, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.pick-dates\",\n defaultMessage: \"Pick dates\"\n })\n }), props.hasNextAvailableDates ? React.createElement(React.Fragment, undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.or\",\n defaultMessage: \"or\"\n }), React.createElement(TextControl.make, {\n testId: \"pick-next-available-dates\",\n onClick: (function ($$event) {\n $$event.stopPropagation();\n Curry._1(pickNextAvailable, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.banner.pick-next-available-dates\",\n defaultMessage: \"Next available dates\"\n })\n })) : null);\n}\n\nvar make = PickNextAvailableDates;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Colors = require(\"../../styles/Colors.bs.js\");\nvar ColorCodingModuleScss = require(\"./ColorCoding.module.scss\").default;\n\nvar css = ColorCodingModuleScss;\n\nfunction ColorCoding(props) {\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n var tmp;\n switch (props.color) {\n case /* DarkOrange */0 :\n tmp = Colors.darkOrange;\n break;\n case /* Turquoise */1 :\n tmp = Colors.turquoise;\n break;\n case /* Blue */2 :\n tmp = Colors.blue;\n break;\n \n }\n return React.createElement(React.Fragment, undefined, React.createElement(\"div\", {\n className: Cx.cx([\n css.dot,\n css.size,\n className$1\n ]),\n style: {\n backgroundColor: tmp\n }\n }), React.createElement(\"div\", {\n className: css.colorCodeTitle\n }, React.createElement(\"span\", undefined, props.title)));\n}\n\nvar make = ColorCoding;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Span = require(\"../Typography/Span.bs.js\");\nvar React = require(\"react\");\nvar ReactIntl = require(\"react-intl\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ResponsiveDialog = require(\"../ResponsiveDialog/ResponsiveDialog.bs.js\");\n\nfunction EstimatedBookDirectPrice(props) {\n var className = props.className;\n var shouldStopEventPropagation = props.shouldStopEventPropagation;\n var shouldStopEventPropagation$1 = shouldStopEventPropagation !== undefined ? shouldStopEventPropagation : false;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(ResponsiveDialog.make, {\n control: React.createElement(Span.make, {\n fontWeight: /* Medium */2,\n size: /* SM */0,\n className: Cx.cx([\n \"tw-text-neutral-600\",\n className$1\n ]),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"estimated-book-direct-price.title\",\n defaultMessage: \"Estimated Direct Price\"\n })\n }),\n header: Caml_option.some(React.createElement(ReactIntl.FormattedMessage, {\n id: \"estimated-book-direct-price.tooltip\",\n defaultMessage: \"Estimated Direct Price\"\n })),\n side: /* Bottom */1,\n shouldStopEventPropagation: shouldStopEventPropagation$1,\n children: React.createElement(\"div\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"estimated-book-direct-price.description\",\n defaultMessage: \"Estimated book direct is the <strong>lowest</strong> Vacation Rental Website price <strong>minus their service fees</strong>. Contact host/or visit their book-direct link for accurate pricing.\",\n values: {\n strong: (function (chunks) {\n return React.createElement(\"strong\", undefined, chunks);\n })\n }\n }))\n });\n}\n\nvar make = EstimatedBookDirectPrice;\n\nexports.make = make;\n/* Span Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../Link/A.bs.js\");\nvar Vrbp = require(\"../../../models/Vrbp.bs.js\");\nvar React = require(\"react\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar ReactIntl = require(\"react-intl\");\nvar ModalDialog = require(\"../Modal/ModalDialog.bs.js\");\nvar RailsContext = require(\"../../../models/RailsContext.bs.js\");\nvar ListingVerificationWizard = require(\"../../../models/ListingVerificationWizard.bs.js\");\nvar ForbiddenVerificationModalScss = require(\"./ForbiddenVerificationModal.scss\").default;\n\nvar css = ForbiddenVerificationModalScss;\n\nfunction ForbiddenVerificationModal(props) {\n var availableProviders = React.useMemo((function () {\n return ListingVerificationWizard.getAvailableProviders;\n }), []);\n var helpEmail = React.useMemo((function () {\n return RailsContext.getHelpEmail(undefined);\n }), []);\n var contactSupportText = helpEmail !== undefined && helpEmail !== \"\" ? React.createElement(ReactIntl.FormattedMessage, {\n id: \"forbidden-verification.contact-support\",\n defaultMessage: \"Contact <a>Customer Support</a> for updates.\",\n values: {\n a: (function (chunks) {\n return React.createElement(A.make, {\n href: \"mailto:\" + helpEmail + \"\",\n children: chunks\n });\n })\n }\n }) : null;\n return React.createElement(ModalDialog.make, {\n modal: props.modal,\n onExited: props.onExited,\n className: css.modal,\n desktopPosition: /* Centered */0,\n children: availableProviders.length !== 0 ? React.createElement(\"div\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"forbidden-verification.text\",\n defaultMessage: \"Sorry!{br}{br}We can only verify <strong>{providers}</strong> listings at the moment.\",\n values: {\n providers: Belt_Array.map(availableProviders, (function (provider) {\n return Vrbp.Provider.toView(ListingVerificationWizard.Providers.toVrbp(provider));\n })).join(\" & \"),\n strong: (function (chunks) {\n return React.createElement(\"strong\", undefined, chunks);\n }),\n br: React.createElement(\"br\", undefined)\n }\n }), React.createElement(\"br\", undefined), React.createElement(\"br\", undefined), contactSupportText) : React.createElement(\"div\", undefined, React.createElement(ReactIntl.FormattedMessage, {\n id: \"forbidden-verification.all-providers-forbidden\",\n defaultMessage: \"Sorry!{br}Verification is unavailable at the moment.\",\n values: {\n br: React.createElement(\"br\", undefined)\n }\n }), React.createElement(\"br\", undefined), contactSupportText)\n });\n}\n\nvar make = ForbiddenVerificationModal;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Url = require(\"../../../libs/Url.bs.js\");\nvar React = require(\"react\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\n\nfunction getGoogleMapsUrl(apiKey, zoom, lat, lng) {\n return Url.withQuery(\"https://www.google.com/maps/embed/v1/place\", {\n hd: [\n \"key\",\n apiKey\n ],\n tl: {\n hd: [\n \"q\",\n \"\" + String(lat) + \",\" + String(lng) + \"\"\n ],\n tl: {\n hd: [\n \"zoom\",\n zoom !== undefined ? String(zoom) : \"\"\n ],\n tl: /* [] */0\n }\n }\n });\n}\n\nfunction addIframeAttributes(element) {\n Belt_Option.forEach((element == null) ? undefined : Caml_option.some(element), (function (el) {\n el.setAttribute(\"loading\", \"lazy\");\n }));\n}\n\nfunction GoogleMapsEmbed(props) {\n return React.createElement(\"iframe\", {\n ref: Caml_option.some(addIframeAttributes),\n style: {\n border: \"0\"\n },\n height: props.height,\n src: getGoogleMapsUrl(props.apiKey, props.zoom, props.lat, props.lng),\n width: props.width\n });\n}\n\nvar make = GoogleMapsEmbed;\n\nexports.getGoogleMapsUrl = getGoogleMapsUrl;\nexports.addIframeAttributes = addIframeAttributes;\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Belt_Array = require(\"rescript/lib/js/belt_Array.js\");\nvar JsxPPXReactSupport = require(\"rescript/lib/js/jsxPPXReactSupport.js\");\nvar LineChartModuleScss = require(\"./LineChart.module.scss\").default;\n\nvar css = LineChartModuleScss;\n\nvar initialYForLabelGroup = 0 + 5;\n\nfunction LineChart(props) {\n var data = props.data;\n var match = React.useState(function () {\n \n });\n var setHoveredSection = match[1];\n var hoveredSection = match[0];\n var totalValue = Belt_Array.reduce(data, 0, (function (acc, item) {\n return acc + item.value;\n }));\n var startOfNextSection = {\n contents: 0\n };\n var xValueOfLabelGroup = {\n contents: 20\n };\n var yValueOfLabelGroup = {\n contents: initialYForLabelGroup\n };\n var currentIdx = {\n contents: 0\n };\n return React.createElement(\"svg\", {\n viewBox: \"0 0 \" + String(250 + 2 * 0) + \" 35\"\n }, Belt_Array.map(data, (function (section) {\n var match = section.value;\n if (match === 0) {\n return null;\n }\n var sectionLength = section.value / totalValue * 250;\n startOfNextSection.contents = startOfNextSection.contents + sectionLength;\n var match$1 = currentIdx.contents % 2;\n if (match$1 !== 0) {\n if (match$1 !== 1) {\n \n } else {\n xValueOfLabelGroup.contents = 20 + 130;\n }\n } else {\n xValueOfLabelGroup.contents = 20;\n yValueOfLabelGroup.contents = yValueOfLabelGroup.contents + 12;\n }\n currentIdx.contents = currentIdx.contents + 1 | 0;\n return JsxPPXReactSupport.createElementVariadicWithKey(section.label, React.Fragment, {\n children: null\n }, [\n React.createElement(\"line\", {\n onMouseOut: (function (param) {\n Curry._1(setHoveredSection, (function (param) {\n \n }));\n }),\n onMouseOver: (function (param) {\n Curry._1(setHoveredSection, (function (param) {\n return section;\n }));\n }),\n stroke: section.color,\n strokeWidth: String(5),\n x1: String(startOfNextSection.contents - sectionLength),\n x2: String(startOfNextSection.contents),\n y1: String(0),\n y2: String(0)\n }, React.createElement(\"title\", undefined, section.label)),\n React.createElement(\"g\", {\n transform: \"translate(\" + String(xValueOfLabelGroup.contents) + \" \" + String(yValueOfLabelGroup.contents) + \")\"\n }, React.createElement(\"circle\", {\n className: css.transitionable,\n cy: \"-3\",\n fill: section.color,\n r: hoveredSection !== undefined && hoveredSection.label === section.label ? \"4\" : \"3\"\n }, React.createElement(\"title\", undefined, section.label)), React.createElement(\"text\", {\n fontFamily: \"Poppins\",\n fontStyle: \"normal\"\n }, React.createElement(\"tspan\", {\n className: css.transitionable,\n fill: \"#505D69\",\n fontSize: hoveredSection !== undefined && hoveredSection.label === section.label ? \"9\" : \"8\",\n fontWeight: \"500\",\n x: \"7px\"\n }, section.label)))\n ]);\n })));\n}\n\nvar totalLineWidth = 250;\n\nvar lineHeight = 5;\n\nvar yValueOfLine = 0;\n\nvar marginAroundLine = 0;\n\nvar initialXForLabelGroup = 20;\n\nvar incrementInLabelGroupX = 130;\n\nvar incrementInLabelGroupY = 12;\n\nvar make = LineChart;\n\nexports.css = css;\nexports.totalLineWidth = totalLineWidth;\nexports.lineHeight = lineHeight;\nexports.yValueOfLine = yValueOfLine;\nexports.marginAroundLine = marginAroundLine;\nexports.initialXForLabelGroup = initialXForLabelGroup;\nexports.initialYForLabelGroup = initialYForLabelGroup;\nexports.incrementInLabelGroupX = incrementInLabelGroupX;\nexports.incrementInLabelGroupY = incrementInLabelGroupY;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ListingLinkScss = require(\"app/libs/components/ListingLink/ListingLink.scss\").default;\n\nfunction ListingLink(props) {\n var className = props.className;\n var children = props.children;\n var openInNewTab = props.openInNewTab;\n var listingDeleted = props.listingDeleted;\n var listingDeleted$1 = listingDeleted !== undefined ? listingDeleted : false;\n var openInNewTab$1 = openInNewTab !== undefined ? openInNewTab : true;\n var className$1 = className !== undefined ? className : \"\";\n if (listingDeleted$1) {\n return children;\n } else {\n return React.createElement(\"a\", {\n className: Cx.cx([\n className$1,\n ListingLinkScss.link\n ]),\n style: props.style,\n href: props.href,\n rel: openInNewTab$1 ? \"noopener\" : undefined,\n target: openInNewTab$1 ? \"_blank\" : undefined,\n onClick: props.onClick\n }, children);\n }\n}\n\nfunction makeJs(props) {\n return ListingLink({\n listingDeleted: Caml_option.nullable_to_opt(props.listingDeleted),\n href: props.href,\n openInNewTab: Caml_option.nullable_to_opt(props.listingDeleted),\n onClick: Caml_option.nullable_to_opt(props.onClick),\n children: props.children,\n className: Caml_option.nullable_to_opt(props.className),\n style: Caml_option.nullable_to_opt(props.style)\n });\n}\n\nvar make = ListingLink;\n\nexports.make = make;\nexports.makeJs = makeJs;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar Js_exn = require(\"rescript/lib/js/js_exn.js\");\nvar MagicSearch = require(\"./MagicSearch.bs.js\");\n\nfunction MagicSearchButton__JsBridge$default(props) {\n var amplitudeEventSpecifier = props.amplitudeEventSpecifier;\n var tmp;\n switch (props.searchType) {\n case \"ByImage\" :\n tmp = /* ByImage */{\n _0: props.photo\n };\n break;\n case \"ByText\" :\n tmp = /* ByText */0;\n break;\n default:\n tmp = Js_exn.raiseError(\"Invalid search type\");\n }\n return React.createElement(MagicSearch.Button.make, {\n children: props.children,\n listing: props.listing,\n user: props.user,\n amplitudeEventSpecifier: amplitudeEventSpecifier !== undefined ? amplitudeEventSpecifier : \"\",\n searchType: tmp,\n canDoMagicSearch: props.canDoMagicSearch,\n showMagicSearchLimitModal: props.showMagicSearchLimitModal\n });\n}\n\nvar $$default = MagicSearchButton__JsBridge$default;\n\nexports.$$default = $$default;\nexports.default = $$default;\nexports.__esModule = true;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar A = require(\"../Link/A.bs.js\");\nvar React = require(\"react\");\nvar PhoneJsx = require(\"app/libs/components/Phone/Phone.jsx\").default;\n\nvar JsComponent = {};\n\nfunction PhoneNumber(props) {\n var className = props.className;\n var value = props.value;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(A.Unstyled.make, {\n href: \"tel:+\" + value,\n className: className$1,\n children: React.createElement(PhoneJsx, {\n phoneNumber: value\n })\n });\n}\n\nvar make = PhoneNumber;\n\nexports.JsComponent = JsComponent;\nexports.make = make;\n/* A Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Html = require(\"../../../libs/Html.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar React = require(\"react\");\nvar Calendar = require(\"../../svgs/Calendar.bs.js\");\nvar WithTestId = require(\"../WithTestId/WithTestId.bs.js\");\nvar ReactIntl = require(\"react-intl\");\nvar TextControl = require(\"../Control/TextControl.bs.js\");\nvar PickDatesOverlayScss = require(\"./PickDatesOverlay.scss\").default;\n\nvar css = PickDatesOverlayScss;\n\nfunction PickDatesOverlay(props) {\n var continueWithoutDates = props.continueWithoutDates;\n var pickNextAvailable = props.pickNextAvailable;\n var pickDates = props.pickDates;\n return React.createElement(\"div\", {\n className: css.container\n }, React.createElement(\"div\", {\n className: css.calendarIconWrapper\n }, React.createElement(Calendar.make, {})), React.createElement(\"div\", {\n className: css.actionsWrapper\n }, React.createElement(\"span\", {\n className: Cx.cx([\n css.text,\n css.action\n ]),\n onClick: (function (param) {\n Curry._1(pickDates, undefined);\n })\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.pick-dates-overlay.pick-dates\",\n defaultMessage: \"Pick dates\"\n })), props.hasNextAvailableDates ? React.createElement(React.Fragment, undefined, Html.nbsp, React.createElement(\"span\", {\n className: css.text\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"common.or\",\n defaultMessage: \"or\"\n })), Html.nbsp, React.createElement(WithTestId.make, {\n id: \"pick-next-available-dates\",\n children: React.createElement(\"span\", {\n className: Cx.cx([\n css.text,\n css.action\n ]),\n onClick: (function (param) {\n Curry._1(pickNextAvailable, undefined);\n })\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.pick-dates-overlay.pick-next-available\",\n defaultMessage: \"Next available dates\"\n }))\n })) : null), React.createElement(\"div\", {\n className: css.continueWrapper\n }, React.createElement(TextControl.make, {\n testId: \"continue-without-dates\",\n className: css.continue,\n style: /* General */0,\n onClick: (function (param) {\n Curry._1(continueWithoutDates, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"slv.pick-dates-overlay.continue\",\n defaultMessage: \"Continue without dates\"\n })\n })));\n}\n\nvar make = PickDatesOverlay;\n\nexports.css = css;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar TextModuleScss = require(\"./Text.module.scss\").default;\n\nvar css = TextModuleScss;\n\nfunction Text$Ellipsis(props) {\n var faded = props.faded;\n var faded$1 = faded !== undefined ? faded : false;\n return React.createElement(\"span\", {\n className: faded$1 ? css.faded : undefined\n }, \"...\");\n}\n\nvar Ellipsis = {\n make: Text$Ellipsis\n};\n\nexports.css = css;\nexports.Ellipsis = Ellipsis;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Style = require(\"../../../libs/Style.bs.js\");\nvar React = require(\"react\");\nvar Portal = require(\"../Portal/Portal.bs.js\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar TooltipModuleScss = require(\"./Tooltip.module.scss\").default;\n\nvar css = TooltipModuleScss;\n\nfunction toClassName(x) {\n if (x) {\n return css.tooltipPrimary;\n } else {\n return css.tooltipGeneral;\n }\n}\n\nvar Kind = {\n toClassName: toClassName\n};\n\nfunction toTooltipClassName(x) {\n switch (x) {\n case /* Top */0 :\n return css.positionTop;\n case /* Bottom */1 :\n return css.positionBottom;\n case /* Left */2 :\n return css.positionLeft;\n case /* Right */3 :\n return css.positionRight;\n \n }\n}\n\nfunction toTriangleClassName(x) {\n switch (x) {\n case /* Top */0 :\n return css.triangleBottom;\n case /* Bottom */1 :\n return css.triangleTop;\n case /* Left */2 :\n return css.triangleRight;\n case /* Right */3 :\n return css.triangleLeft;\n \n }\n}\n\nvar Side = {\n toTooltipClassName: toTooltipClassName,\n toTriangleClassName: toTriangleClassName\n};\n\nvar Position = {};\n\nfunction reducer(_state, action) {\n return action;\n}\n\nfunction Tooltip(props) {\n var showOnHover = props.showOnHover;\n var kind = props.kind;\n var className = props.className;\n var hideWhen = props.hideWhen;\n var side = props.side;\n var contentTitle = props.contentTitle;\n var content = props.content;\n var id = props.id;\n var hideWhen$1 = hideWhen !== undefined ? hideWhen : false;\n var className$1 = className !== undefined ? className : \"\";\n var kind$1 = kind !== undefined ? kind : /* General */0;\n var showOnHover$1 = showOnHover !== undefined ? showOnHover : false;\n var tooltipParentRef = React.useRef(null);\n var tooltipRef = React.useRef(null);\n var match = React.useReducer(reducer, /* NotVisible */0);\n var dispatch = match[1];\n var state = match[0];\n React.useEffect((function () {\n if (state !== 1) {\n \n } else {\n Curry._1(dispatch, /* ShowTooltip */2);\n }\n }), [state]);\n var getClientPosition = function (param) {\n return {\n height: document.documentElement.clientHeight,\n width: document.documentElement.clientWidth\n };\n };\n var tooltipParentElement = Belt_Option.map(Caml_option.nullable_to_opt(tooltipParentRef.current), (function (el) {\n return el.getBoundingClientRect();\n }));\n var parent;\n if (tooltipParentElement !== undefined) {\n var element = Caml_option.valFromOption(tooltipParentElement);\n parent = {\n left: element.left,\n right: element.right,\n width: element.width,\n height: element.height,\n top: element.top,\n bottom: element.bottom\n };\n } else {\n parent = undefined;\n }\n var getTooltipLeftCoord = function (param) {\n var tooltipElement = Belt_Option.map(Caml_option.nullable_to_opt(tooltipRef.current), (function (el) {\n return el.getBoundingClientRect();\n }));\n if (tooltipElement !== undefined) {\n return Caml_option.valFromOption(tooltipElement).left;\n }\n \n };\n var getTooltipPositionAdjustment = function (param) {\n var tooltipLeftCoord = getTooltipLeftCoord(undefined);\n if (tooltipLeftCoord !== undefined) {\n if (tooltipLeftCoord >= 0) {\n return 0;\n } else {\n return 20 - tooltipLeftCoord;\n }\n } else {\n return 0;\n }\n };\n var getStyle = function (element) {\n var client = getClientPosition(undefined);\n var triangleDelta = element ? 4 : 0;\n var leftTooltipDelta = element ? 0 : (\n state >= 2 ? getTooltipPositionAdjustment(undefined) : 0\n );\n var opacity;\n switch (state) {\n case /* NotVisible */0 :\n case /* RenderedNotVisible */1 :\n opacity = \"0\";\n break;\n case /* RenderedVisible */2 :\n opacity = \"1\";\n break;\n \n }\n if (parent === undefined) {\n return {};\n }\n switch (side) {\n case /* Top */0 :\n return {\n bottom: Style.pxOfFloat(client.height - parent.top + triangleDelta),\n left: Style.pxOfFloat(parent.left + parent.width / 2 + leftTooltipDelta),\n opacity: opacity\n };\n case /* Bottom */1 :\n return {\n left: Style.pxOfFloat(parent.left + parent.width / 2 + leftTooltipDelta),\n top: Style.pxOfFloat(parent.bottom + triangleDelta),\n opacity: opacity\n };\n case /* Left */2 :\n return {\n right: Style.pxOfFloat(client.width - parent.left + triangleDelta),\n top: Style.pxOfFloat(parent.bottom - parent.height / 2),\n opacity: opacity\n };\n case /* Right */3 :\n return {\n left: Style.pxOfFloat(parent.right + triangleDelta),\n top: Style.pxOfFloat(parent.bottom - parent.height / 2),\n opacity: opacity\n };\n \n }\n };\n var getTooltip = function (param) {\n return React.createElement(\"div\", {\n id: id\n }, React.createElement(\"div\", {\n ref: Caml_option.some(tooltipRef),\n className: Cx.cx([\n css.container,\n toTooltipClassName(side)\n ]),\n style: getStyle(/* Tooltip */0)\n }, React.createElement(\"div\", {\n className: Cx.cx([\n css.tooltip,\n toClassName(kind$1),\n className$1\n ])\n }, contentTitle !== undefined ? React.createElement(\"span\", {\n className: css.tooltipHeader\n }, Caml_option.valFromOption(contentTitle), React.createElement(\"hr\", undefined)) : null, content)));\n };\n return React.createElement(\"div\", {\n ref: Caml_option.some(tooltipParentRef),\n className: className$1,\n style: props.triggerStyle,\n onFocus: (function (_event) {\n Curry._1(dispatch, /* RenderTooltip */1);\n }),\n onBlur: (function (_event) {\n Curry._1(dispatch, /* HideTooltip */0);\n }),\n onClick: (function (_event) {\n switch (state) {\n case /* NotVisible */0 :\n return Curry._1(dispatch, /* RenderTooltip */1);\n case /* RenderedNotVisible */1 :\n return Curry._1(dispatch, /* ShowTooltip */2);\n case /* RenderedVisible */2 :\n return Curry._1(dispatch, /* HideTooltip */0);\n \n }\n }),\n onMouseLeave: (function (_event) {\n Curry._1(dispatch, /* HideTooltip */0);\n }),\n onMouseOver: (function (_event) {\n if (showOnHover$1) {\n return Curry._1(dispatch, /* ShowTooltip */2);\n }\n \n })\n }, props.children, hideWhen$1 || state === 0 ? null : React.createElement(Portal.make, {\n children: getTooltip(undefined)\n }));\n}\n\nvar make = Tooltip;\n\nexports.css = css;\nexports.Kind = Kind;\nexports.Side = Side;\nexports.Position = Position;\nexports.reducer = reducer;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar Heading = require(\"./Heading.bs.js\");\n\nfunction H6(props) {\n var className = props.className;\n var size = props.size;\n var fontWeight = props.fontWeight;\n var fontWeight$1 = fontWeight !== undefined ? fontWeight : Heading.defaultFontWeight;\n var size$1 = size !== undefined ? size : Heading.defaultSize;\n var className$1 = className !== undefined ? className : \"\";\n var tmp;\n switch (size$1) {\n case /* SM */0 :\n tmp = \"tw-text-h6-sm\";\n break;\n case /* MD */1 :\n tmp = \"tw-text-h6-md\";\n break;\n case /* LG */2 :\n tmp = \"tw-text-h6-lg\";\n break;\n \n }\n return React.createElement(\"h6\", {\n className: Cx.cx([\n \"tw-m-0\",\n tmp,\n Heading.getFontWeightClass(fontWeight$1),\n className$1\n ])\n }, props.children);\n}\n\nvar make = H6;\n\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar React = require(\"react\");\nvar WarningBadgeScss = require(\"./WarningBadge.scss\").default;\n\nvar css = WarningBadgeScss;\n\nfunction className(x) {\n switch (x) {\n case /* Full */0 :\n return css[\"border-radius--full\"];\n case /* Top */1 :\n return css[\"border-radius--top\"];\n case /* Bottom */2 :\n return css[\"border-radius--bottom\"];\n \n }\n}\n\nvar BorderRadiusPlacement = {\n className: className\n};\n\nfunction WarningBadge(props) {\n var borderRadiusPlacement = props.borderRadiusPlacement;\n var borderRadiusPlacement$1 = borderRadiusPlacement !== undefined ? borderRadiusPlacement : /* Full */0;\n return React.createElement(\"div\", {\n className: Cx.cx([\n css.warning,\n className(borderRadiusPlacement$1)\n ])\n }, props.warning);\n}\n\nvar make = WarningBadge;\n\nexports.css = css;\nexports.BorderRadiusPlacement = BorderRadiusPlacement;\nexports.make = make;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\n\nfunction WithDataProps(props) {\n return React.cloneElement(props.children, props.props);\n}\n\nvar make = WithDataProps;\n\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Cx = require(\"rescript-classnames/src/Cx.bs.js\");\nvar $$Date = require(\"../../../libs/Date.bs.js\");\nvar Curry = require(\"rescript/lib/js/curry.js\");\nvar Input = require(\"../Input/Input.bs.js\");\nvar Label = require(\"../Label/Label.bs.js\");\nvar React = require(\"react\");\nvar Control = require(\"../../components/Control/Control.bs.js\");\nvar Js_dict = require(\"rescript/lib/js/js_dict.js\");\nvar Listing = require(\"../../../models/Listing.bs.js\");\nvar Popover = require(\"../../components/Popover/Popover.bs.js\");\nvar Spinner = require(\"../../components/Spinner/Spinner.bs.js\");\nvar ReactRef = require(\"../../../bindings/ReactRef.bs.js\");\nvar Amplitude = require(\"../../../libs/Amplitude.bs.js\");\nvar Belt_List = require(\"rescript/lib/js/belt_List.js\");\nvar ReactIntl = require(\"react-intl\");\nvar Belt_Option = require(\"rescript/lib/js/belt_Option.js\");\nvar Caml_option = require(\"rescript/lib/js/caml_option.js\");\nvar ColorCoding = require(\"../../components/ColorCoding/ColorCoding.bs.js\");\nvar ReactDayPicker = require(\"../../../bindings/ReactDayPicker.bs.js\");\nvar CalendarWithClockIcon = require(\"../../icons/CalendarWithClockIcon.bs.js\");\nvar DateFieldModuleScss = require(\"./DateField.module.scss\").default;\n\nvar css = DateFieldModuleScss;\n\nfunction toClassName(x) {\n switch (x) {\n case /* Disabled */0 :\n return css.disabled;\n case /* FirstEnabled */1 :\n return css.firstEnabled;\n case /* LastEnabled */2 :\n return css.lastEnabled;\n case /* SecondarySelected */3 :\n return css.secondarySelected;\n case /* TertiarySelected */4 :\n return css.tertiarySelected;\n case /* AirbnbEnabled */5 :\n return css.airbnbEnabled;\n case /* AirbnbFirstEnabled */6 :\n return css.airbnbFirstEnabled;\n case /* AirbnbLastEnabled */7 :\n return css.airbnbLastEnabled;\n case /* BookingcomEnabled */8 :\n return css.bookingcomEnabled;\n case /* BookingcomFirstEnabled */9 :\n return css.bookingcomFirstEnabled;\n case /* BookingcomLastEnabled */10 :\n return css.bookingcomLastEnabled;\n case /* HicheeEnabled */11 :\n return css.hicheeEnabled;\n case /* HicheeFirstEnabled */12 :\n return css.hicheeFirstEnabled;\n case /* HicheeLastEnabled */13 :\n return css.hicheeLastEnabled;\n case /* VrboEnabled */14 :\n return css.vrboEnabled;\n case /* VrboFirstEnabled */15 :\n return css.vrboFirstEnabled;\n case /* VrboLastEnabled */16 :\n return css.vrboLastEnabled;\n \n }\n}\n\nvar Modifier = {\n toClassName: toClassName\n};\n\nvar make = React.forwardRef(function (props, ref) {\n var inputLabelClassName = props.inputLabelClassName;\n var inputClassName = props.inputClassName;\n var dateFieldInputWrapperClassName = props.dateFieldInputWrapperClassName;\n var shouldShowBookingcom = props.shouldShowBookingcom;\n var shouldShowAirbnb = props.shouldShowAirbnb;\n var shouldShowVrbo = props.shouldShowVrbo;\n var onDatesClear = props.onDatesClear;\n var onDayClick = props.onDayClick;\n var calBusy = props.calBusy;\n var calNote = props.calNote;\n var calModifiers = props.calModifiers;\n var initialMonth = props.initialMonth;\n var date = props.date;\n var listing = props.listing;\n var id = props.id;\n var label = props.label;\n var calModifiers$1 = calModifiers !== undefined ? calModifiers : /* [] */0;\n var calBusy$1 = calBusy !== undefined ? calBusy : false;\n var shouldShowVrbo$1 = shouldShowVrbo !== undefined ? shouldShowVrbo : true;\n var shouldShowAirbnb$1 = shouldShowAirbnb !== undefined ? shouldShowAirbnb : true;\n var shouldShowBookingcom$1 = shouldShowBookingcom !== undefined ? shouldShowBookingcom : true;\n var inputClassName$1 = inputClassName !== undefined ? inputClassName : \"\";\n var popover = React.useContext(Popover.Context.x);\n var removeFocus = React.useCallback((function (param) {\n Belt_Option.forEach((ref == null) ? undefined : Caml_option.some(ref), ReactRef.blur);\n }), []);\n var tmp;\n var exit = 0;\n if (calNote !== undefined || onDatesClear !== undefined) {\n exit = 1;\n } else {\n tmp = null;\n }\n if (exit === 1) {\n tmp = React.createElement(\"div\", {\n className: css.footer\n }, calNote !== undefined ? React.createElement(\"span\", {\n className: css.note\n }, Caml_option.valFromOption(calNote)) : React.createElement(\"span\", undefined), onDatesClear !== undefined ? React.createElement(Control.make, {\n className: css.clearButton,\n onClick: (function (param) {\n Amplitude.Slv.clearDates(listing.id, Listing.Contextual.isVerified(listing));\n Curry._1(onDatesClear, undefined);\n Curry._1(popover.hide, undefined);\n }),\n children: React.createElement(ReactIntl.FormattedMessage, {\n id: \"date-field.clear-dates-button\",\n defaultMessage: \"Clear dates\"\n })\n }) : null);\n }\n return React.createElement(React.Fragment, undefined, label !== undefined ? React.createElement(Label.make, {\n forId: id,\n placement: /* Left */3,\n className: Cx.cx([\n css.inputLabel,\n inputLabelClassName !== undefined ? inputLabelClassName : \"\"\n ]),\n children: React.createElement(\"span\", undefined, label)\n }) : null, React.createElement(Input.$$Text.make, {\n id: id,\n testId: props.testId,\n size: props.size,\n neighbors: props.neighbors,\n value: Belt_Option.getWithDefault(Belt_Option.map(date, (function (x) {\n return $$Date.Naive.format(x, \"MMM d, yyyy\");\n })), \"\"),\n placeholder: props.placeholder,\n addon: /* Icon */{\n _0: CalendarWithClockIcon,\n _1: /* Right */1\n },\n className: Cx.cx([\n label !== undefined ? css.dateFieldInputWrapper : \"\",\n dateFieldInputWrapperClassName !== undefined ? dateFieldInputWrapperClassName : \"\"\n ]),\n inputClassName: inputClassName$1,\n onChange: (function (prim) {\n \n }),\n onFocus: (function (param) {\n if (!popover.shown) {\n Curry._1(popover.show, undefined);\n }\n Curry._1(removeFocus, undefined);\n }),\n readOnly: true,\n ref: (ref == null) ? undefined : Caml_option.some(ref)\n }), React.createElement(Popover.Body.make, {\n placement: props.calPlacement,\n withTriangle: true,\n onShow: props.onCalendarShow,\n onHide: props.onCalendarHide,\n children: null\n }, React.createElement(ReactDayPicker.make, {\n initialMonth: Caml_option.some(initialMonth ? initialMonth._0 : (\n date !== undefined ? Caml_option.valFromOption(date) : new Date()\n )),\n numberOfMonths: 1,\n showOutsideDays: true,\n enableOutsideDaysClick: true,\n modifiers: Caml_option.some(Js_dict.fromList({\n hd: [\n css.selected,\n {\n NAME: \"Fn\",\n VAL: (function (day) {\n return Belt_Option.mapWithDefault(date, false, (function (param) {\n return $$Date.Naive.isSameDay(day, param);\n }));\n })\n }\n ],\n tl: {\n hd: [\n css.beforeDate,\n {\n NAME: \"Fn\",\n VAL: (function (day) {\n return $$Date.Naive.isPast(day);\n })\n }\n ],\n tl: Belt_List.map(calModifiers$1, (function (param) {\n return [\n toClassName(param[0]),\n param[1]\n ];\n }))\n }\n })),\n classNames: Caml_option.some(css),\n onDayClick: (function (day, param, param$1) {\n Curry._1(onDayClick, day);\n Curry._1(popover.hide, undefined);\n }),\n onDayTouchEnd: (function (day, param, param$1) {\n Curry._1(onDayClick, day);\n Curry._1(popover.hide, undefined);\n }),\n onMonthChange: Belt_Option.map(props.onMonthChange, (function (fn, date) {\n Curry._1(fn, date);\n })),\n renderDay: Belt_Option.map(props.renderDay, (function (fn, day, modifiers) {\n return Curry._2(fn, day, modifiers);\n }))\n }), tmp, calBusy$1 ? React.createElement(Spinner.make, {\n size: /* MD */1,\n color: /* Primary */0,\n bg: /* OpaqueWhiteBg */1,\n centered: true\n }) : null, React.createElement(\"div\", {\n className: css.colorCodingWrapper\n }, React.createElement(\"div\", {\n className: css.availabilityLabel\n }, React.createElement(ReactIntl.FormattedMessage, {\n id: \"date-field.availability.label\",\n defaultMessage: \"Availability:\"\n })), shouldShowVrbo$1 ? React.createElement(ColorCoding.make, {\n title: \"Vrbo\",\n color: /* Blue */2\n }) : null, shouldShowAirbnb$1 ? React.createElement(ColorCoding.make, {\n title: \"Airbnb\",\n color: /* DarkOrange */0\n }) : null, shouldShowBookingcom$1 ? React.createElement(ColorCoding.make, {\n title: \"Booking.com\",\n color: /* Turquoise */1\n }) : null)));\n });\n\nvar Component = {\n make: make\n};\n\nvar make$1 = React.forwardRef(function (props, ref) {\n var inputClassName = props.inputClassName;\n var shouldShowBookingcom = props.shouldShowBookingcom;\n var shouldShowAirbnb = props.shouldShowAirbnb;\n var shouldShowVrbo = props.shouldShowVrbo;\n var calModifiers = props.calModifiers;\n var calModifiers$1 = calModifiers !== undefined ? calModifiers : /* [] */0;\n var shouldShowVrbo$1 = shouldShowVrbo !== undefined ? shouldShowVrbo : true;\n var shouldShowAirbnb$1 = shouldShowAirbnb !== undefined ? shouldShowAirbnb : true;\n var shouldShowBookingcom$1 = shouldShowBookingcom !== undefined ? shouldShowBookingcom : true;\n var inputClassName$1 = inputClassName !== undefined ? inputClassName : \"\";\n return React.createElement(Popover.make, {\n className: props.className,\n children: React.createElement(make, {\n label: props.label,\n id: props.id,\n listing: props.listing,\n size: props.size,\n neighbors: props.neighbors,\n date: props.date,\n initialMonth: props.initialMonth,\n calPlacement: props.calPlacement,\n calModifiers: calModifiers$1,\n calNote: props.calNote,\n calBusy: props.calBusy,\n placeholder: props.placeholder,\n testId: props.testId,\n onDayClick: props.onDayClick,\n onMonthChange: props.onMonthChange,\n onDatesClear: props.onDatesClear,\n onCalendarShow: props.onCalendarShow,\n onCalendarHide: props.onCalendarHide,\n renderDay: props.renderDay,\n shouldShowVrbo: shouldShowVrbo$1,\n shouldShowAirbnb: shouldShowAirbnb$1,\n shouldShowBookingcom: shouldShowBookingcom$1,\n dateFieldInputWrapperClassName: props.dateFieldInputWrapperClassName,\n inputClassName: inputClassName$1,\n inputLabelClassName: props.inputLabelClassName,\n ref: (ref == null) ? undefined : Caml_option.some(ref)\n })\n });\n });\n\nexports.css = css;\nexports.Modifier = Modifier;\nexports.Component = Component;\nexports.make = make$1;\n/* css Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar React = require(\"react\");\nvar PhoneInputJsx = require(\"app/libs/components/PhoneInput/PhoneInput.jsx\").default;\n\nfunction toJs(x) {\n if (x) {\n return \"md\";\n } else {\n return \"sm\";\n }\n}\n\nvar Size = {\n toJs: toJs\n};\n\nvar PhoneInputJs = {};\n\nfunction PhoneInput(props) {\n var className = props.className;\n var style = props.style;\n var style$1 = style !== undefined ? style : /* Compact */0;\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(PhoneInputJsx, {\n id: props.id,\n size: props.size ? \"md\" : \"sm\",\n wide: style$1 === /* Wide */1,\n className: className$1,\n value: props.value,\n onChange: props.onChange\n });\n}\n\nvar make = PhoneInput;\n\nexports.Size = Size;\nexports.PhoneInputJs = PhoneInputJs;\nexports.make = make;\n/* react Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction AirConditioningIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"AirConditioning\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n }, React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M13.5,4 C14.3284271,4 15,4.67157288 15,5.5 L15,10.5 C15,11.3284271 14.3284271,12 13.5,12 L2.5,12 C1.67157288,12 1,11.3284271 1,10.5 L1,5.5 C1,4.67157288 1.67157288,4 2.5,4 L13.5,4 Z M13.5,5 L2.5,5 C2.22385763,5 2,5.22385763 2,5.5 L2,10.5 C2,10.7761424 2.22385763,11 2.5,11 L13.5,11 C13.7761424,11 14,10.7761424 14,10.5 L14,5.5 C14,5.22385763 13.7761424,5 13.5,5 Z M10.5,6 C10.7761424,6 11,6.22385763 11,6.5 C11,6.77614237 10.7761424,7 10.5,7 L3.5,7 C3.22385763,7 3,6.77614237 3,6.5 C3,6.22385763 3.22385763,6 3.5,6 L10.5,6 Z M13,8 L13,11 L12,11 L12,9 L4,9 L4,11 L3,11 L3,8 L13,8 Z M3.5,13 C3.77614237,13 4,13.2238576 4,13.5 L4,14.5 C4,14.7761424 3.77614237,15 3.5,15 C3.22385763,15 3,14.7761424 3,14.5 L3,13.5 C3,13.2238576 3.22385763,13 3.5,13 Z M3.5,14 C3.77614237,14 4,13.7761424 4,13.5 L4,14.5 C4,14.2238576 3.77614237,14 3.5,14 C3.22385763,14 3,14.2238576 3,14.5 L3,13.5 C3,13.7761424 3.22385763,14 3.5,14 Z M6.5,13 C6.77614237,13 7,13.2238576 7,13.5 L7,14.5 C7,14.7761424 6.77614237,15 6.5,15 C6.22385763,15 6,14.7761424 6,14.5 L6,13.5 C6,13.2238576 6.22385763,13 6.5,13 Z M6.5,14 C6.77614237,14 7,13.7761424 7,13.5 L7,14.5 C7,14.2238576 6.77614237,14 6.5,14 C6.22385763,14 6,14.2238576 6,14.5 L6,13.5 C6,13.7761424 6.22385763,14 6.5,14 Z M9.5,13 C9.77614237,13 10,13.2238576 10,13.5 L10,14.5 C10,14.7761424 9.77614237,15 9.5,15 C9.22385763,15 9,14.7761424 9,14.5 L9,13.5 C9,13.2238576 9.22385763,13 9.5,13 Z M9.5,14 C9.77614237,14 10,13.7761424 10,13.5 L10,14.5 C10,14.2238576 9.77614237,14 9.5,14 C9.22385763,14 9,14.2238576 9,14.5 L9,13.5 C9,13.7761424 9.22385763,14 9.5,14 Z M12.5,13 C12.7761424,13 13,13.2238576 13,13.5 L13,14.5 C13,14.7761424 12.7761424,15 12.5,15 C12.2238576,15 12,14.7761424 12,14.5 L12,13.5 C12,13.2238576 12.2238576,13 12.5,13 Z M12.5,14 C12.7761424,14 13,13.7761424 13,13.5 L13,14.5 C13,14.2238576 12.7761424,14 12.5,14 C12.2238576,14 12,14.2238576 12,14.5 L12,13.5 C12,13.7761424 12.2238576,14 12.5,14 Z\"\n }))\n });\n}\n\nvar make = AirConditioningIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BathroomIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Bathroom\";\n var color$1 = color !== undefined ? color : \"General\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n d: \"M1.38672 8.86865H7.49124H14.6132V10.8127C14.6132 11.8439 14.1844 12.8328 13.4212 13.5619C12.658 14.2911 11.6228 14.7008 10.5435 14.7008H5.4564C4.37705 14.7008 3.34192 14.2911 2.5787 13.5619C1.81548 12.8328 1.38672 11.8439 1.38672 10.8127V8.86865Z\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M0.611328 8.86865H15.3886\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M3.61182 15.1292V14.2842\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M12.3882 15.1292V14.2842\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M1.82568 8.86868V3.16034C1.82568 1.90479 2.84351 0.886963 4.09907 0.886963C4.9474 0.886963 5.72516 1.3593 6.11634 2.11207L6.50652 2.86294\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M5.56079 3.43411L7.45223 2.29272\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }));\n}\n\nvar make = BathroomIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BedroomIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Bedroom\";\n var color$1 = color !== undefined ? color : \"General\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n d: \"M14.2858 0.571411H1.71439C1.08321 0.571411 0.571533 1.08309 0.571533 1.71427V14.2857C0.571533 14.9169 1.08321 15.4286 1.71439 15.4286H14.2858C14.917 15.4286 15.4287 14.9169 15.4287 14.2857V1.71427C15.4287 1.08309 14.917 0.571411 14.2858 0.571411Z\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M8.00014 3.99998H3.42871V0.571411\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M12.5714 0.571411V3.99998H8V0.571411\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M0.571533 6.85718H15.4287\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }));\n}\n\nvar make = BedroomIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BedroomLockIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Bedroom Lock\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M12.571 6.286H3.43c-.632 0-1.143.511-1.143 1.143v6.857c0 .63.511 1.143 1.143 1.143h9.142c.632 0 1.143-.512 1.143-1.143V7.429c0-.632-.511-1.143-1.143-1.143ZM12 6.286V4.57a4 4 0 1 0-8 0v1.715\"\n }), React.createElement(\"path\", {\n d: \"M8 11.429a.571.571 0 1 0 0-1.143.571.571 0 0 0 0 1.143Z\"\n }))\n });\n}\n\nvar make = BedroomLockIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BigGroupsIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Big Groups\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M12.114 4.915a2.057 2.057 0 1 0 0-4.114 2.057 2.057 0 0 0 0 4.114ZM15.2 10.059V9.03a3.086 3.086 0 0 0-5.786-1.494M3.886 4.915a2.057 2.057 0 1 0 0-4.114 2.057 2.057 0 0 0 0 4.114ZM.8 10.059V9.03a3.086 3.086 0 0 1 5.786-1.494\"\n }), React.createElement(\"path\", {\n d: \"M8.001 11.085a2.057 2.057 0 1 0 0-4.115 2.057 2.057 0 0 0 0 4.115ZM11.087 15.199a3.086 3.086 0 1 0-6.171 0\"\n }))\n });\n}\n\nvar make = BigGroupsIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BreakfastIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Breakfast\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M2.286 4.571h9.143a.571.571 0 0 1 .571.572v5.143a2.286 2.286 0 0 1-2.286 2.285H4a2.286 2.286 0 0 1-2.286-2.285V5.143a.571.571 0 0 1 .572-.572ZM.571 15.429H15.43\"\n }), React.createElement(\"path\", {\n d: \"M12 5.714h1.143a2.286 2.286 0 0 1 0 4.572H12M3.429.571v1.143M9.143.571v1.143M6.286.571v1.143\"\n }))\n });\n}\n\nvar make = BreakfastIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BulbIcon(props) {\n var className = props.className;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Bulb\";\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n className: className$1,\n children: null\n }, React.createElement(\"path\", {\n style: Icon.style(props.color),\n d: \"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z\"\n }), React.createElement(\"path\", {\n d: \"M8 3.4c1.988 0 3.3 1.612 3.3 3.6 0 1.453-1.8 3.3-1.8 3.9h-3c0-.6-1.8-2.42-1.8-3.9 0-1.988 1.312-3.6 3.3-3.6ZM8 4C6.418 4 5.3 5.263 5.3 7c0 .22.06.48.177.779.127.322.311.667.573 1.09l.081.129c.113.176.471.727.587.914l.014.022c.078.13.144.245.197.352l.007.014h2.127l.007-.015c.044-.089.097-.184.16-.289l.037-.064c.104-.172.524-.821.615-.966l.113-.182a7.21 7.21 0 0 0 .491-.927c.142-.334.214-.621.214-.857 0-1.737-1.118-3-2.7-3Z\",\n fill: \"#fff\"\n }), React.createElement(\"path\", {\n clipRule: \"evenodd\",\n d: \"M7.25 12.4a.45.45 0 0 1-.45-.45v-.45h2.4v.45a.45.45 0 0 1-.45.45c0 .18-.115.338-.285.395l-.165.055c0 .3-.1.45-.3.45-.2 0-.3-.15-.3-.45a.45.45 0 0 1-.45-.45Z\",\n fill: \"#fff\",\n fillRule: \"evenodd\"\n }), React.createElement(\"path\", {\n d: \"M8.3 7.6a.3.3 0 0 0-.6 0v1.5a.3.3 0 0 0 .6 0V7.6Z\",\n fill: \"#fff\"\n }), React.createElement(\"path\", {\n d: \"M8 8.2A.6.6 0 1 0 8 7a.6.6 0 0 0 0 1.2Z\",\n fill: \"#fff\"\n }));\n}\n\nvar make = BulbIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction BusinessTravelersIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Business Travelers\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M2.643 5.62a1.786 1.786 0 1 0 0-3.573 1.786 1.786 0 0 0 0 3.572ZM2.643 5.62l-.435 3.684c-.085.722.447 1.36 1.134 1.36H5.62v3.785M11.571 3.833a1.786 1.786 0 1 0 3.572 0 1.786 1.786 0 0 0-3.572 0Z\"\n }), React.createElement(\"path\", {\n d: \"m13.357 5.62.435 3.684c.085.723-.447 1.36-1.134 1.36H10.38v3.785M4.381 7.978h7.143M7.953 7.978v6.47\"\n }))\n });\n}\n\nvar make = BusinessTravelersIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction CalendarWithClockIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Calendar\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: Icon.mapColor(color$1)\n }, React.createElement(\"path\", {\n d: \"M8.031 7.11h.781a.469.469 0 0 0 0-.938h-.78a.469.469 0 1 0 0 .937Zm-2-.938h-.78a.469.469 0 0 0 0 .937h.78a.469.469 0 0 0 0-.937Zm4.781.937h.782a.469.469 0 0 0 0-.937h-.782a.469.469 0 1 0 0 .937ZM3.25 8.281h-.78a.469.469 0 0 0 0 .938h.781a.469.469 0 1 0 0-.938Zm2.781 0h-.78a.469.469 0 0 0 0 .938h.78a.469.469 0 0 0 0-.938Zm3.25.469a.469.469 0 0 0-.469-.469h-.78a.469.469 0 1 0 0 .938h.78a.469.469 0 0 0 .47-.47Zm-6.03 1.64h-.782a.469.469 0 0 0 0 .938h.781a.469.469 0 0 0 0-.938Zm2.78 0h-.78a.469.469 0 0 0 0 .938h.78a.469.469 0 0 0 0-.938Z\"\n }), React.createElement(\"path\", {\n d: \"M14.062 8.721V2.656A1.72 1.72 0 0 0 12.344.938h-.907v-.47a.469.469 0 0 0-.937 0v.47H8.812v-.47a.469.469 0 0 0-.937 0v.47H6.188v-.47a.469.469 0 0 0-.938 0v.47H3.563v-.47a.469.469 0 1 0-.938 0v.47h-.907A1.72 1.72 0 0 0 0 2.656v9.376a1.408 1.408 0 0 0 1.406 1.406h7.02A3.914 3.914 0 0 0 12.094 16 3.91 3.91 0 0 0 16 12.094a3.908 3.908 0 0 0-1.938-3.373ZM.937 2.656c0-.43.351-.78.782-.78h.906v.468a.469.469 0 0 0 .938 0v-.47H5.25v.47a.469.469 0 0 0 .938 0v-.47h1.687v.47a.469.469 0 0 0 .937 0v-.47H10.5v.47a.469.469 0 0 0 .937 0v-.47h.907c.43 0 .78.352.78.782v1.406H.939V2.656Zm.47 9.844a.47.47 0 0 1-.47-.469v-7.03h12.188v3.325A3.91 3.91 0 0 0 8.21 12.5H1.407Zm10.687 2.563a2.973 2.973 0 0 1-2.97-2.97 2.972 2.972 0 0 1 2.97-2.968 2.972 2.972 0 0 1 2.968 2.969 2.972 2.972 0 0 1-2.968 2.969Z\"\n }), React.createElement(\"path\", {\n d: \"M13.656 11.625h-1.093v-1.093a.47.47 0 0 0-.938 0v1.562c0 .258.21.469.469.469h1.563a.469.469 0 1 0 0-.938h-.001Z\"\n }))\n });\n}\n\nvar make = CalendarWithClockIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction CarbonMonoxideDetectorIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Carbon Monoxide Detector\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M5.246 6.158a1.095 1.095 0 0 0-1.033-.73h-.73c-.604 0-1.094.49-1.094 1.095v2.19c0 .605.49 1.095 1.094 1.095h.73c.477 0 .883-.305 1.033-.73M6.862 6.571v2c0 .632.511 1.143 1.142 1.143h.572c.631 0 1.143-.511 1.143-1.143v-2c0-.63-.512-1.142-1.143-1.142h-.572c-.63 0-1.142.511-1.142 1.142ZM13.62 11.893h-2.285v-.487c0-.34.201-.649.513-.785l1.272-.557a.835.835 0 0 0-.334-1.6h-.594a.857.857 0 0 0-.808.572M1.641 11.425a7.141 7.141 0 0 0 6.27 3.718 7.11 7.11 0 0 0 3.658-1.007M2.257 3.635a7.145 7.145 0 0 1 12.71 3.245\"\n }))\n });\n}\n\nvar make = CarbonMonoxideDetectorIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction CouplesIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Couples\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M4.286 4.286a1.857 1.857 0 1 0 0-3.715 1.857 1.857 0 0 0 0 3.715ZM11.714 4.286a1.857 1.857 0 1 0 0-3.714 1.857 1.857 0 0 0 0 3.714ZM6.408 11.184l-.53 4.245H2.693l-.531-4.245h-1.06a.53.53 0 0 1-.532-.53V9.591a3.714 3.714 0 0 1 3.715-3.714h7.428a3.714 3.714 0 0 1 3.715 3.714v1.061a.53.53 0 0 1-.531.53h-1.061l-.53 4.246h-3.184l-.53-4.245\"\n }))\n });\n}\n\nvar make = CouplesIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction DeskIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Desk/Workspace\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M10.286 6.857a2.857 2.857 0 1 0 0-5.714 2.857 2.857 0 0 0 0 5.714ZM10.286 9.714a5.13 5.13 0 0 1 5.143 5.143M7.429 9.143H.57l1.143 5.714h6.857L7.43 9.143ZM8.571 14.857H12\"\n }))\n });\n}\n\nvar make = DeskIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction DrawerIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Drawer/Closet\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M13.143.571H2.857c-.631 0-1.143.512-1.143 1.143v12.572c0 .63.512 1.143 1.143 1.143h10.286c.631 0 1.143-.512 1.143-1.143V1.714c0-.63-.512-1.143-1.143-1.143ZM8 .571V15.43M10.857 7.429V8.57M5.143 7.429V8.57\"\n }))\n });\n}\n\nvar make = DrawerIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction ElevatorIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Elevator\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"m4.32 4.045 1.323-1.47 1.323 1.47M9.29 2.574l1.324 1.47 1.323-1.47M3.59 7.582c0-.63.511-1.143 1.143-1.143h6.534c.632 0 1.143.512 1.143 1.143v7.68H3.59v-7.68ZM8 6.44v8.821\"\n }), React.createElement(\"path\", {\n d: \"M14.16.738H1.839C1.208.738.696 1.25.696 1.881v12.237c0 .63.512 1.143 1.143 1.143H14.16c.631 0 1.143-.512 1.143-1.143V1.88c0-.631-.512-1.143-1.143-1.143Z\"\n }))\n });\n}\n\nvar make = ElevatorIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction EssentialsIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Essentials\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M15.402 12.348V4.533c0-1.047-.42-2.05-1.168-2.79A4.013 4.013 0 0 0 11.412.587H2.567A1.984 1.984 0 0 0 .572 2.56v8.395\",\n strokeLinejoin: \"round\"\n }), React.createElement(\"path\", {\n d: \"M4.908.587V9.3\"\n }), React.createElement(\"path\", {\n d: \"M14.509 10.193a3.05 3.05 0 0 1-2.158 5.209H2.097a1.525 1.525 0 0 1 0-3.051 1.525 1.525 0 0 1 0-3.051H12.35c.81 0 1.586.321 2.158.893ZM2.097 12.35h9.255\",\n strokeLinejoin: \"round\"\n }))\n });\n}\n\nvar make = EssentialsIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction FamiliesWithKidsIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Families with Kids\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M10.5 15.375h-1a2 2 0 0 1-2-2H7a1 1 0 1 1 0-2h.5a2 2 0 0 1 2 2h1v-2a1 1 0 0 1 2 0v2a2 2 0 0 1-2 2ZM12.5 13.875a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0ZM6.25 2.375a1.75 1.75 0 1 0 3.5 0 1.75 1.75 0 0 0-3.5 0Z\"\n }), React.createElement(\"path\", {\n d: \"m.5 8.875 3.747-4.158a1 1 0 0 1 1.743.516c.016.104.426 2.642 2.51 2.642a1 1 0 1 1 0 2 4.272 4.272 0 0 1-3.895-2.529A13.328 13.328 0 0 0 2 15.261v.114\"\n }))\n });\n}\n\nvar make = FamiliesWithKidsIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction FamilyIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Family\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M7.6686 4.8627C7.7601 4.95426 7.88007 5.00001 8.00004 5.00001C8.12001 5.00001 8.23998 4.95426 8.33148 4.8627L10.3598 2.83435C11.0072 2.187 11.0072 1.13366 10.3598 0.486282C10.0463 0.172688 9.62933 0 9.18583 0C8.74232 0 8.32539 0.172688 8.01176 0.486313C8.00782 0.490251 8.00395 0.494188 8.00004 0.498157C7.99614 0.494188 7.99223 0.490251 7.98829 0.486313C7.6747 0.172688 7.25776 0 6.81426 0C6.37079 0 5.95385 0.172688 5.64026 0.486313C4.99288 1.13369 4.99288 2.187 5.64026 2.83438L7.6686 4.8627ZM6.30313 1.14919C6.58495 0.867377 7.04354 0.867345 7.32535 1.14919C7.44504 1.26888 7.51704 1.42094 7.53354 1.58894C7.5571 1.82894 7.75889 2.01188 8.00004 2.01188C8.2412 2.01188 8.44298 1.82894 8.46654 1.58894C8.48304 1.42094 8.55504 1.26888 8.6747 1.14919C8.95651 0.867377 9.41508 0.867314 9.69695 1.14919C9.9788 1.43103 9.9788 1.8896 9.69695 2.17144L8.00004 3.86835L6.30313 2.17147C6.02132 1.88963 6.02132 1.43103 6.30313 1.14919V1.14919Z\"\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M10.7949 6.27185L12.8233 8.3002C12.9148 8.39173 13.0348 8.43751 13.1547 8.43751C13.2746 8.43751 13.3946 8.39176 13.4861 8.3002L15.5145 6.27185C16.1619 5.6245 16.1619 4.57116 15.5145 3.92378C15.2009 3.61019 14.784 3.4375 14.3405 3.4375C13.897 3.4375 13.4801 3.61019 13.1665 3.92381C13.1625 3.92775 13.1586 3.93169 13.1547 3.93566C13.1508 3.93169 13.1469 3.92775 13.143 3.92381C12.8294 3.61019 12.4125 3.4375 11.9689 3.4375C11.5255 3.4375 11.1085 3.61019 10.7949 3.92381C10.1475 4.57116 10.1475 5.6245 10.7949 6.27185ZM11.4578 4.58669C11.7396 4.30488 12.1982 4.30485 12.48 4.58669C12.5997 4.70638 12.6717 4.85844 12.6882 5.02644C12.7118 5.26644 12.9136 5.44938 13.1547 5.44938C13.3959 5.44938 13.5977 5.26644 13.6212 5.02644C13.6377 4.85844 13.7097 4.70638 13.8294 4.58669C14.1112 4.30491 14.5698 4.30481 14.8516 4.58669C15.1335 4.86853 15.1335 5.3271 14.8516 5.60894L13.1547 7.30582L11.4578 5.60894C11.176 5.32713 11.176 4.86853 11.4578 4.58669Z\"\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M2.51388 8.3002C2.60541 8.39173 2.72538 8.43751 2.84532 8.43751C2.96526 8.43751 3.08526 8.39176 3.17676 8.3002L5.2051 6.27185C5.85248 5.6245 5.85248 4.57116 5.2051 3.92378C4.89154 3.61019 4.4746 3.4375 4.03113 3.4375C3.58763 3.4375 3.17069 3.61019 2.85707 3.92381C2.85313 3.92772 2.84926 3.93169 2.84535 3.93566C2.84144 3.93169 2.83754 3.92775 2.8336 3.92381C2.18625 3.27647 1.13294 3.27647 0.485532 3.92381C-0.161844 4.57119 -0.161844 5.6245 0.485532 6.27188L2.51388 8.3002ZM1.14844 4.58669C1.43028 4.30488 1.88888 4.30485 2.17066 4.58669C2.29035 4.70638 2.36235 4.85844 2.37885 5.02644C2.40241 5.26641 2.60419 5.44938 2.84532 5.44938H2.84535C3.08647 5.44938 3.28826 5.26644 3.31185 5.0265C3.32838 4.85844 3.40035 4.70635 3.52001 4.58669C3.80182 4.30491 4.26038 4.30481 4.54226 4.58669C4.8241 4.86853 4.8241 5.3271 4.54226 5.60894L2.84535 7.30582L1.14844 5.60894C0.866595 5.32713 0.866595 4.86853 1.14844 4.58669V4.58669Z\"\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M14.5162 12.6014C14.835 12.2651 15.0313 11.8114 15.0313 11.3125C15.0313 10.2786 14.1902 9.43752 13.1563 9.43752C12.1224 9.43752 11.2813 10.2786 11.2813 11.3125C11.2813 11.8114 11.4775 12.2651 11.7964 12.6014C11.3968 12.8231 11.0566 13.1392 10.8061 13.5195C10.4889 12.9977 10.0303 12.571 9.48399 12.2928C9.91627 11.8929 10.1875 11.3214 10.1875 10.6875C10.1875 9.48133 9.20624 8.50002 8.00002 8.50002C6.79379 8.50002 5.81251 9.48133 5.81251 10.6875C5.81251 11.3214 6.08376 11.8929 6.51601 12.2928C5.9697 12.571 5.5111 12.9977 5.19395 13.5195C4.94342 13.1392 4.60323 12.823 4.2036 12.6013C4.52251 12.2651 4.71876 11.8114 4.71876 11.3125C4.71876 10.2786 3.87763 9.43752 2.84376 9.43752C1.80988 9.43752 0.968752 10.2786 0.968752 11.3125C0.968752 11.8114 1.165 12.2651 1.48388 12.6014C0.618439 13.0815 0.03125 14.0047 0.03125 15.0625V15.5313C0.03125 15.7902 0.241125 16 0.500001 16H15.5C15.7589 16 15.9688 15.7902 15.9688 15.5313V15.0625C15.9688 14.0047 15.3816 13.0815 14.5162 12.6014ZM12.2188 11.3125C12.2188 10.7956 12.6393 10.375 13.1563 10.375C13.6732 10.375 14.0938 10.7956 14.0938 11.3125C14.0938 11.8295 13.6732 12.25 13.1563 12.25C12.6393 12.25 12.2188 11.8295 12.2188 11.3125ZM6.75001 10.6875C6.75001 9.99827 7.31076 9.43752 8.00002 9.43752C8.68927 9.43752 9.25002 9.99827 9.25002 10.6875C9.25002 11.3768 8.68927 11.9375 8.00002 11.9375C7.31076 11.9375 6.75001 11.3768 6.75001 10.6875ZM1.90625 11.3125C1.90625 10.7956 2.32682 10.375 2.84376 10.375C3.36069 10.375 3.78126 10.7956 3.78126 11.3125C3.78126 11.8295 3.36069 12.25 2.84376 12.25C2.32682 12.25 1.90625 11.8295 1.90625 11.3125ZM2.84376 13.1875C3.87763 13.1875 4.71876 14.0287 4.71876 15.0625H0.968752C0.968752 14.0287 1.80988 13.1875 2.84376 13.1875ZM5.66142 15.0625C5.74214 13.8428 6.7602 12.875 8.00002 12.875C9.23983 12.875 10.2579 13.8428 10.3386 15.0625H5.66142ZM11.2813 15.0625C11.2813 14.0287 12.1224 13.1875 13.1563 13.1875C14.1902 13.1875 15.0313 14.0287 15.0313 15.0625H11.2813Z\"\n }));\n}\n\nvar make = FamilyIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction FeedbackIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Feedback\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n d: \"M8.572 1.073H2.858a1.143 1.143 0 0 0-1.143 1.142v10.286L.572 15.93l4.572-1.143h9.143a1.143 1.143 0 0 0 1.142-1.143V7.93\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"m9.56 9.798-3.43.617.572-3.474 5.406-5.383a1.142 1.142 0 0 1 1.623 0l1.211 1.212a1.143 1.143 0 0 1 0 1.623L9.56 9.798Z\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }));\n}\n\nvar make = FeedbackIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction FireExtinguisherIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Fire Extinguisher\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinejoin: \"round\",\n strokeMiterlimit: \"10\",\n strokeWidth: \"1.14\"\n }, React.createElement(\"path\", {\n d: \"M10.667 8a3.301 3.301 0 0 0-3.334-3.333A3.301 3.301 0 0 0 4 8v7.333h6.667V8ZM7.333 4.667V2M14.667 3.333l-5.334-.666V1.333l5.334-.666v2.666Z\"\n }), React.createElement(\"path\", {\n d: \"M9.333 2H6a4.638 4.638 0 0 0-4.667 4.667V12M6 2 1.333.667M10.667 8.667h-4v4h4v-4Z\"\n }))\n });\n}\n\nvar make = FireExtinguisherIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction FirePlaceIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Fire Place\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M15.429 8.571H.57v6.858H15.43V8.57ZM.571 12H15.43M6.286 12v3.429M9.714 8.571V12\"\n }), React.createElement(\"path\", {\n d: \"M7.416.606a.291.291 0 0 0-.274 0 .157.157 0 0 0-.065.097.146.146 0 0 0 .024.112c.843 1.307 1.02 3.087-.13 4.069a3.45 3.45 0 0 1-1.028-1.228 2.55 2.55 0 0 0-1.02.903c-.242.378-.363.81-.35 1.245.017.385.12.762.302 1.11.183.348.442.66.76.918.32.257.694.454 1.1.58a3.57 3.57 0 0 0 1.264.154c2.206 0 3.35-1.228 3.426-2.762.089-1.841-1.37-4.106-4.009-5.198Z\"\n }))\n });\n}\n\nvar make = FirePlaceIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction FirstAidIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"First Aid Kit\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M5.714 9.714h4.572M8 7.429V12M14.286 4H1.714c-.63 0-1.143.512-1.143 1.143v9.143c0 .63.512 1.143 1.143 1.143h12.572c.63 0 1.143-.512 1.143-1.143V5.143c0-.631-.512-1.143-1.143-1.143ZM11.429 4V1.714A1.143 1.143 0 0 0 10.286.571H5.714a1.143 1.143 0 0 0-1.143 1.143V4\"\n }))\n });\n}\n\nvar make = FirstAidIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction GuestsIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Guests\";\n var color$1 = color !== undefined ? color : \"General\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fillRule: \"evenodd\"\n }, React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M10.4845638,8.79907588 C9.96557642,9.23652926 9.28441863,9.5052642 8.39298327,9.5052642 C7.50138948,9.5052642 6.82017888,9.23658207 6.30113865,8.79912868 C3.89635962,9.61082544 2.05614047,11.7067362 2.05614047,13.7298261 C2.05614047,15.3485198 14.7298261,15.3485198 14.7298261,13.7298261 C14.7298261,11.7066834 12.8895013,9.61066702 10.4845638,8.79907588 Z M5.57879138,7.93209017 C4.85079376,6.70992442 4.69649163,5.00790125 4.69649163,3.69649163 C4.69649163,1.39410542 5.96898247,0 8.39298327,0 C10.8169841,0 12.0894749,1.39582692 12.0894749,3.69649163 C12.0894749,5.00705634 11.9351728,6.70950196 11.2069111,7.93203736 C13.8942605,8.99145186 15.7859665,11.4415393 15.7859665,13.7298261 C15.7859665,16.7567246 1,16.7567246 1,13.7298261 C1,11.4415921 2.89158454,8.99161028 5.57879138,7.93209017 Z M8.39298327,8.44912373 C6.15539127,8.44912373 5.7526321,5.64522922 5.7526321,3.69649163 C5.7526321,1.92652695 6.6022443,1.05614047 8.39298327,1.05614047 C10.1830357,1.05614047 11.0333344,1.92753028 11.0333344,3.69649163 C11.0333344,5.64412027 10.6305753,8.44912373 8.39298327,8.44912373 Z\"\n }))\n });\n}\n\nvar make = GuestsIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction GuestsWithClothesHangerIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"GuestsWithClothesHanger\";\n var color$1 = color !== undefined ? color : \"General\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.44\"\n }, React.createElement(\"path\", {\n d: \"M5.806 9.538H2.433c-.81 0-1.467-.66-1.467-1.476 0-.583.341-1.112.871-1.348l3.485-1.559 1.452.595M11.46 5.272a2.136 2.136 0 0 0 2.13-2.142A2.136 2.136 0 0 0 11.46.988 2.135 2.135 0 0 0 9.332 3.13c0 1.183.953 2.142 2.128 2.142ZM15.186 9.021a3.76 3.76 0 0 0-1.091-2.65 3.714 3.714 0 0 0-2.635-1.099c-.988 0-1.935.395-2.634 1.098a3.76 3.76 0 0 0-1.09 2.651v1.606h1.596l.532 4.285h3.193l.532-4.285h1.597V9.021ZM5.322 5.155v-1.26c.802 0 1.452-.655 1.452-1.462 0-.807-.65-1.46-1.452-1.46-.43 0-.816.187-1.082.486\"\n }))\n });\n}\n\nvar make = GuestsWithClothesHangerIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction GymIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Gym\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M4 4.571H1.714c-.63 0-1.143.512-1.143 1.143v4.572c0 .63.512 1.143 1.143 1.143H4c.631 0 1.143-.512 1.143-1.143V5.714c0-.63-.512-1.143-1.143-1.143ZM14.286 4.571H12c-.631 0-1.143.512-1.143 1.143v4.572c0 .63.512 1.143 1.143 1.143h2.286c.63 0 1.143-.512 1.143-1.143V5.714c0-.63-.512-1.143-1.143-1.143ZM5.143 8h5.714\"\n }))\n });\n}\n\nvar make = GymIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction HairDryerIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Hair Dryer\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1)\n }, React.createElement(\"path\", {\n d: \"M12.04 8.823a3.294 3.294 0 0 0 0-6.588L6 3.883v3.294l6.04 1.646Z\",\n stroke: Icon.mapColor(color$1),\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M12.04 7.177a1.647 1.647 0 1 0 0-3.295 1.647 1.647 0 0 0 0 3.295Z\",\n fill: Icon.mapColor(color$1)\n }), React.createElement(\"path\", {\n d: \"M14.235 7.982v5.786h-2.107a1.647 1.647 0 0 1-1.562-2.168l.968-2.918M0 5.765h3.333M.667 2.431l2.666 1.334M.667 9.098l2.666-1.333\",\n stroke: Icon.mapColor(color$1),\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }))\n });\n}\n\nvar make = HairDryerIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction HeatIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Heat\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M13.143 10.286v-8a1.714 1.714 0 1 0-3.429 0v8a2.857 2.857 0 1 0 3.429 0ZM1.714 2.857h4.549M3.989.583V5.13\"\n }))\n });\n}\n\nvar make = HeatIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction HotTubIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Hot Tub\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M13.714 8a3.2 3.2 0 0 1 1.715 2.56c0 2.206-3.326 4-7.429 4S.571 12.777.571 10.571A3.2 3.2 0 0 1 2.286 8\"\n }), React.createElement(\"path\", {\n d: \"M4.663 2.571c-2.286 2.858 2.286 4 0 6.858M8 1.429c-2.286 2.857 2.286 6.285 0 9.142M11.337 2.571c-2.286 2.858 2.286 4 0 6.858\"\n }))\n });\n}\n\nvar make = HotTubIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction HouseWithChatIcon(props) {\n var className = props.className;\n var title = props.title;\n var color = props.color;\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n var title$1 = title !== undefined ? title : \"Home\";\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n className: className$1,\n children: React.createElement(\"path\", {\n style: Icon.style(color$1),\n clipRule: \"evenodd\",\n d: \"M14.2367 13.1162L14.2173 8.42578H15.1062C15.5784 8.42578 15.9951 8.0127 15.9951 7.48535C16.0257 7.22168 15.9118 6.9873 15.6895 6.78223L14.2228 5.41992V1.875C14.2228 1.35732 13.8256 0.9375 13.3339 0.9375H12.445C11.9533 0.9375 11.556 1.35732 11.556 1.875V2.9502L8.59758 0.205488C8.42813 0.0587109 8.2059 0 8.01144 0C7.81699 0 7.59476 0.0293555 7.40031 0.234844L0.278067 6.78223C0.0834479 6.9873 0 7.22168 0 7.48535C0 8.0127 0.389461 8.42578 0.890315 8.42578H1.78035V13.125C1.78035 14.1592 2.5765 15 3.55848 15H12.4589C13.4422 15 14.2395 14.1562 14.2367 13.1162ZM6.88924 5.38879C8.48491 5.38879 9.77833 6.4488 9.77833 7.75653C9.77833 9.06425 8.48491 10.1243 6.88924 10.1243C6.32004 10.1243 5.79097 9.98752 5.34372 9.75459C5.04092 9.94298 4.61936 10.1243 4.11127 10.1243C4.08955 10.1243 4.0683 10.1175 4.05016 10.1048C4.03202 10.092 4.01778 10.0739 4.00921 10.0526C4.00064 10.0314 3.9981 10.0079 4.00192 9.98513C4.00575 9.96235 4.01575 9.94126 4.03071 9.92448C4.03515 9.91945 4.34198 9.56518 4.52755 9.11768C4.19642 8.73248 4.00015 8.26366 4.00015 7.75653C4.00015 6.4488 5.29358 5.38879 6.88924 5.38879ZM6.667 8.9361V9.17716C6.667 9.24257 6.71673 9.29555 6.77812 9.29555H7.00036C7.06175 9.29555 7.11148 9.24257 7.11148 9.17716V8.93862C7.43956 8.92929 7.70416 8.63466 7.70416 8.27166C7.70416 7.97613 7.52373 7.71213 7.26552 7.62956L6.64047 7.42978C6.5688 7.40699 6.51866 7.32945 6.51866 7.2414C6.51866 7.13381 6.59228 7.04621 6.68256 7.04621H7.073C7.13634 7.04621 7.19732 7.0653 7.25107 7.10126C7.29608 7.1313 7.3533 7.12952 7.39178 7.09045L7.55498 6.92456C7.60401 6.87469 7.60124 6.78827 7.54707 6.74491C7.42067 6.64369 7.26816 6.58553 7.11134 6.57695V6.33589C7.11134 6.27048 7.06161 6.2175 7.00022 6.2175H6.77798C6.71659 6.2175 6.66687 6.27048 6.66687 6.33589V6.57444C6.33879 6.58376 6.07419 6.87854 6.07419 7.2414C6.07419 7.53692 6.25461 7.80092 6.51283 7.8835L7.13787 8.08327C7.20954 8.10606 7.25968 8.18361 7.25968 8.27166C7.25968 8.37924 7.18607 8.46685 7.09578 8.46685H6.70534C6.642 8.46685 6.58103 8.44761 6.52727 8.4118C6.48227 8.38175 6.42504 8.38353 6.38657 8.4226L6.22336 8.58849C6.17433 8.63836 6.17711 8.72478 6.23128 8.76814C6.35768 8.86921 6.51019 8.92752 6.667 8.9361ZM12.0007 9.65071C12.0007 10.1578 11.8044 10.6268 11.473 11.012C11.6586 11.4598 11.9657 11.8136 11.97 11.8185C12.0007 11.853 12.0092 11.9033 11.9915 11.9468C11.9742 11.9902 11.934 12.0184 11.8896 12.0184C11.3815 12.0184 10.9599 11.8372 10.6571 11.6488C10.2099 11.8817 9.68082 12.0184 9.11162 12.0184C7.9139 12.0184 6.88646 11.421 6.44852 10.57C6.59311 10.5864 6.73951 10.5978 6.88924 10.5978C8.72742 10.5978 10.2228 9.32322 10.2228 7.75653C10.2228 7.65619 10.2163 7.55719 10.2043 7.45952C11.2577 7.81276 12.0007 8.66011 12.0007 9.65071Z\",\n fillRule: \"evenodd\"\n })\n });\n}\n\nvar make = HouseWithChatIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction IronIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Iron\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M14.389 6.286h-4.206a10.034 10.034 0 0 0-9.509 6.857h13.509a1.144 1.144 0 0 0 1.131-1.326l-.925-5.531ZM14.389 6.286l-.252-1.52a2.286 2.286 0 0 0-2.286-1.909H5.246\"\n }))\n });\n}\n\nvar make = IronIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction KitchenIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Kitchen\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M.571.571v2.572a2.857 2.857 0 0 0 5.715 0V.57M3.429.571V15.43M15.429 15.429a7.429 7.429 0 0 1 0-14.858\"\n }), React.createElement(\"path\", {\n d: \"M15.429 12a4 4 0 1 1 0-8\"\n }))\n });\n}\n\nvar make = KitchenIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction LaundryIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Laundry\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M13.143.571H2.857c-.631 0-1.143.512-1.143 1.143v12.572c0 .63.512 1.143 1.143 1.143h10.286c.631 0 1.143-.512 1.143-1.143V1.714c0-.63-.512-1.143-1.143-1.143Z\"\n }), React.createElement(\"path\", {\n d: \"M11.381 10.286h-.96c-.84 0-1.67-.196-2.421-.572a5.413 5.413 0 0 0-2.42-.571h-.961m6.81.571a3.429 3.429 0 1 1-6.858 0 3.429 3.429 0 0 1 6.858 0ZM1.714 4h12.572\"\n }))\n });\n}\n\nvar make = LaundryIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction MagicStickIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"MagicStick\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n children: React.createElement(\"path\", {\n d: \"m14.446 2.137-.96 2.834a.47.47 0 0 0 0 .423l1.794 2.4a.457.457 0 0 1-.377.732h-2.995a.491.491 0 0 0-.377.194l-1.668 2.4a.457.457 0 0 1-.812-.126L8.16 8.137a.434.434 0 0 0-.297-.297l-2.857-.891a.457.457 0 0 1-.126-.812l2.446-1.726a.491.491 0 0 0 .194-.377V1.04a.457.457 0 0 1 .686-.377l2.4 1.794a.47.47 0 0 0 .422.057l2.835-.96a.457.457 0 0 1 .583.583Zm-6.4 5.817L.57 15.43\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n })\n });\n}\n\nvar make = MagicStickIcon;\n\nvar $$default = MagicStickIcon;\n\nexports.make = make;\nexports.$$default = $$default;\nexports.default = $$default;\nexports.__esModule = true;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction MessageRoundedIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Message\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"path\", {\n d: \"M8.0001 0.571412C6.65638 0.571831 5.33793 0.936714 4.18518 1.6272C3.03243 2.31768 2.08856 3.30791 1.45409 4.49241C0.819617 5.67691 0.518312 7.01133 0.582264 8.35353C0.646216 9.69574 1.07303 10.9955 1.81725 12.1143L0.571533 15.4286L4.74296 14.6743C5.74743 15.1651 6.84973 15.4229 7.9677 15.4285C9.08567 15.434 10.1905 15.1871 11.1998 14.7062C12.209 14.2254 13.0968 13.5229 13.7967 12.6512C14.4967 11.7794 14.9909 10.761 15.2425 9.67165C15.4941 8.58234 15.4966 7.4503 15.2498 6.3599C15.0029 5.2695 14.5132 4.24888 13.817 3.37412C13.1208 2.49935 12.2361 1.793 11.229 1.30772C10.2218 0.822442 9.11809 0.570752 8.0001 0.571412Z\",\n fill: \"transparent\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n })\n });\n}\n\nvar make = MessageRoundedIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction MoonNightIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"MoonNight\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M12.6875 4.71879C12.9464 4.71879 13.1563 4.50891 13.1563 4.25004C13.1563 3.47463 13.7871 2.84378 14.5625 2.84378C14.8214 2.84378 15.0313 2.63391 15.0313 2.37503C15.0313 2.11616 14.8214 1.90628 14.5625 1.90628C13.8002 1.90628 13.1563 1.248 13.1563 0.468781C13.1563 0.209906 12.9464 3.05176e-05 12.6875 3.05176e-05C12.4286 3.05176e-05 12.2188 0.209906 12.2188 0.468781C12.2188 1.248 11.5748 1.90628 10.8125 1.90628C10.5536 1.90628 10.3438 2.11616 10.3438 2.37503C10.3438 2.63391 10.5536 2.84378 10.8125 2.84378C11.5879 2.84378 12.2188 3.47463 12.2188 4.25004C12.2188 4.50891 12.4286 4.71879 12.6875 4.71879ZM12.2108 2.37035C12.3916 2.23253 12.5504 2.07135 12.6875 1.88663C12.8246 2.07131 12.9834 2.23253 13.1642 2.37035C12.9835 2.5051 12.8228 2.66525 12.6875 2.84544C12.5522 2.66522 12.3915 2.5051 12.2108 2.37035Z\",\n fill: Icon.mapColor(color$1)\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M9.40625 3.31252C9.40625 3.05364 9.19638 2.84377 8.9375 2.84377C8.67863 2.84377 8.46875 3.05364 8.46875 3.31252C8.46875 4.60486 7.41734 5.65627 6.125 5.65627C5.86613 5.65627 5.65625 5.86614 5.65625 6.12502C5.65625 6.38389 5.86613 6.59377 6.125 6.59377C7.41734 6.59377 8.46875 7.64518 8.46875 8.93752C8.46875 9.1964 8.67863 9.40627 8.9375 9.40627C9.19638 9.40627 9.40625 9.1964 9.40625 8.93752C9.40625 7.64518 10.4577 6.59377 11.75 6.59377C12.0089 6.59377 12.2188 6.38389 12.2188 6.12502C12.2188 5.86614 12.0089 5.65627 11.75 5.65627C10.4577 5.65627 9.40625 4.60486 9.40625 3.31252V3.31252ZM8.9375 7.24915C8.66028 6.78908 8.27344 6.40224 7.81341 6.12502C8.27347 5.8478 8.66028 5.46096 8.9375 5.00089C9.21472 5.46096 9.60156 5.8478 10.0616 6.12502C9.60156 6.40224 9.21472 6.78905 8.9375 7.24915Z\",\n fill: Icon.mapColor(color$1)\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M7.99999 16C12.0199 16 15.4634 12.9837 15.9957 9.08445C16.0252 8.86788 15.9012 8.65966 15.6967 8.58248C15.4923 8.50532 15.2616 8.57966 15.1407 8.76176C14.1089 10.3158 12.2709 11.2813 10.3437 11.2813C7.24211 11.2813 4.71874 8.75788 4.71874 5.65626C4.71874 3.72914 5.68415 1.89104 7.23824 0.859296C7.4203 0.738421 7.49471 0.507733 7.41752 0.303265C7.34036 0.0987962 7.13218 -0.0252037 6.91555 0.00432751C3.01121 0.537296 0 3.98548 0 8.00001C0 12.405 3.59531 16 7.99999 16ZM5.25705 1.42667C4.32199 2.60348 3.78124 4.10595 3.78124 5.65626C3.78124 9.27482 6.72518 12.2188 10.3437 12.2188C11.894 12.2188 13.3965 11.678 14.5733 10.7429C13.4817 13.2975 10.9142 15.0625 7.99999 15.0625C4.10571 15.0625 0.937499 11.8943 0.937499 8.00001C0.937499 5.08576 2.70246 2.51829 5.25705 1.42667V1.42667Z\",\n fill: Icon.mapColor(color$1)\n }));\n}\n\nvar make = MoonNightIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction ParkingIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Parking\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M12 .571H4A3.429 3.429 0 0 0 .571 4v8A3.429 3.429 0 0 0 4 15.429h8A3.429 3.429 0 0 0 15.429 12V4A3.429 3.429 0 0 0 12 .571Z\"\n }), React.createElement(\"path\", {\n d: \"M5.953 12.015V8.67m0 0V3.984h3.64c.947 0 1.714.768 1.714 1.715v1.256c0 .947-.767 1.714-1.714 1.714h-3.64Z\"\n }))\n });\n}\n\nvar make = ParkingIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction PetIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Pet\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"path\", {\n style: Icon.style(color$1),\n d: \"M15.5313 1.50623H13.717L12.3481 0.137329C12.2603 0.0493164 12.141 0 12.0166 0H10.5099C8.86475 0 7.53125 1.33081 7.53125 2.97864V2.97925C7.53125 4.10986 7.01941 5.15637 6.1272 5.85034C5.83667 6.07617 5.52991 6.3147 5.22864 6.54907C4.56506 7.06531 3.01245 8.5575 3.01245 11.0804V13.3484C2.70361 13.157 2.34729 13.0542 1.97498 13.0542H0.46875C0.209839 13.0542 0 13.264 0 13.5229V14.025C0 15.1158 0.882446 16 1.97498 16H12.0166C12.2755 16 12.4854 15.7902 12.4854 15.5313V14.5271C12.4854 13.8787 12.0643 13.3269 11.4812 13.1306V11.7552C12.429 11.0286 12.9874 9.90466 12.9874 8.70007V4.9541H14.025C15.114 4.9541 16 4.06812 16 2.97913V1.97498C16 1.71606 15.7902 1.50623 15.5313 1.50623V1.50623ZM0.9375 14.025V13.9917H1.97498C2.547 13.9917 3.01245 14.4542 3.01245 15.0292V15.0625H1.97498C1.40295 15.0625 0.9375 14.5999 0.9375 14.025ZM15.0625 2.97913C15.0625 3.55127 14.597 4.0166 14.025 4.0166H12.5188C12.2599 4.0166 12.05 4.22656 12.05 4.48535V8.70007C12.05 9.67651 11.5649 10.5829 10.7524 11.1245C10.6221 11.2115 10.5437 11.3579 10.5437 11.5145V13.5229C10.5437 13.7817 10.7537 13.9917 11.0125 13.9917C11.3077 13.9917 11.5479 14.2318 11.5479 14.5271V15.0625H9.93005C9.85706 14.6831 9.69751 14.3341 9.47229 14.0374C9.47241 14.0332 9.4729 14.0292 9.4729 14.025V11.5146C9.4729 11.2557 9.26306 11.0459 9.00415 11.0459C8.74536 11.0459 8.5354 11.2557 8.5354 11.5146V13.2827C8.3562 13.1997 8.16577 13.137 7.96668 13.0986V13.0203C7.96668 11.6671 6.8739 10.5437 5.48962 10.5437C5.23071 10.5437 5.02112 10.7537 5.02112 11.0125C5.02112 11.2714 5.2312 11.4812 5.49011 11.4812C6.32605 11.4812 7.02918 12.157 7.02918 13.0203V13.5229C7.02918 13.7817 7.23901 13.9917 7.49793 13.9917C8.18347 13.9917 8.7655 14.4421 8.96436 15.0625H3.94995V11.0804C3.94995 10.377 4.13794 8.58521 5.80432 7.28906C6.10547 7.05481 6.41223 6.81628 6.70276 6.59045C7.17139 6.22583 7.5686 5.76672 7.86414 5.2511C8.1781 5.67944 8.68457 5.95837 9.25525 5.95837C10.2058 5.95837 10.9791 5.18494 10.9791 4.23438V2.47705C10.9791 2.21826 10.7693 2.0083 10.5104 2.0083C10.2516 2.0083 10.0416 2.21826 10.0416 2.47705V4.23438C10.0416 4.66809 9.68884 5.02087 9.25525 5.02087C8.82153 5.02087 8.46875 4.66809 8.46875 4.23438V2.97864C8.46875 1.8512 9.38074 0.9375 10.5099 0.9375H11.8225L13.1915 2.30652C13.2794 2.39441 13.3986 2.44373 13.5229 2.44373H15.0625V2.97913Z\"\n })\n });\n}\n\nvar make = PetIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction PetsIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Pets\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M9.684 1.81c3.19 0 5.745 3.294 5.745 6.285v1.143a2.286 2.286 0 0 1-2.286 2.286h-.373a4.844 4.844 0 0 1-9.54 0h-.373A2.286 2.286 0 0 1 .571 9.238V8.095c0-2.991 2.555-6.285 5.745-6.285h3.368Z\"\n }), React.createElement(\"path\", {\n d: \"M6.286 7.72a.196.196 0 0 0 0-.391M6.286 7.72a.196.196 0 0 1 0-.391M9.714 7.72a.196.196 0 0 0 0-.391M9.714 7.72a.196.196 0 0 1 0-.391\",\n strokeLinecap: \"round\"\n }), React.createElement(\"path\", {\n d: \"m4 5.238-.775 4.65a4.84 4.84 0 1 0 9.55 0L12 5.237\",\n strokeLinecap: \"round\"\n }), React.createElement(\"path\", {\n d: \"M9.143 11.524H6.857L8 12.667l1.143-1.143Z\",\n strokeLinecap: \"round\"\n }))\n });\n}\n\nvar make = PetsIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction PoolIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Pool\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M15.429 15.429h-.572a2.286 2.286 0 0 1-2.286-2.286 2.286 2.286 0 0 1-4.571 0 2.286 2.286 0 0 1-4.571 0 2.286 2.286 0 0 1-2.286 2.286H.57M2.857 2.857a2.286 2.286 0 0 1 4.572 0v8M10.857.571a2.286 2.286 0 0 1 2.286 2.286v8M7.429 5.143h5.714M7.429 8.571h5.714\"\n }))\n });\n}\n\nvar make = PoolIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction RoomTypeIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Room Type\";\n var color$1 = color !== undefined ? color : \"General\";\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n d: \"M4.84038 14.6998H1.26186C0.946266 14.6998 0.69043 14.444 0.69043 14.1283V11.5873L2.7654 9.51233L4.84038 11.5873V14.6998Z\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M4.84035 14.6999H7.95282V2.82143C7.95282 2.50584 7.69698 2.25 7.38139 2.25H3.33681C3.02122 2.25 2.76538 2.50584 2.76538 2.82143V9.51241\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M7.95288 7.43742V10.5499H13.6591V4.32495L7.95288 7.43742Z\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M14.6438 14.6998H7.95288V10.5499H14.6438C14.9595 10.5499 15.2152 10.8058 15.2152 11.1214V14.1284C15.2152 14.4441 14.9595 14.6998 14.6438 14.6998Z\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M4.60425 4.65308H6.11392\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M4.60425 6.80334H6.11392\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }), React.createElement(\"path\", {\n d: \"M12.5085 12.6248H13.1743\",\n fill: \"none\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }));\n}\n\nvar make = RoomTypeIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction SafetyCardIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Safety Card\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.14\"\n }, React.createElement(\"path\", {\n d: \"M14.5 9.373h-2.1a.993.993 0 0 1-.747-.333L8.92 6l.413-.287a2 2 0 0 1 1.107-.34h2.093a1 1 0 1 0 0-2h-2.126a4 4 0 0 0-2.22.667L5.48 5.853a2 2 0 0 1-1.48.3l-1.333-.26a1 1 0 0 0-.387 1.96l1.28.26a3.96 3.96 0 0 0 3-.593l.667-.433 1.54 1.733-.947.627a3.007 3.007 0 0 0-1.333 2.5v2.426a1 1 0 1 0 2 0v-2.426a1 1 0 0 1 .446-.834l1.174-.786a3.014 3.014 0 0 0 2.28 1.046h2.1a1 1 0 1 0 0-2h.013ZM5.5 4.127A1.753 1.753 0 1 0 5.5.62a1.753 1.753 0 0 0 0 3.507ZM2 10.873l-1.5 1.5 1.5 1.5M.5 12.373H4\"\n }))\n });\n}\n\nvar make = SafetyCardIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction ShampooIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Shampoo\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M14.667 15.333H7.333c-.4 0-.666-.266-.666-.666V8.533c0-2.4 1.8-4.466 4.2-4.533 2.466-.067 4.466 1.867 4.466 4.333v6.334c0 .4-.266.666-.666.666ZM14 .667H6.667L4.667 2M11 .667V4\",\n strokeLinejoin: \"round\",\n strokeMiterlimit: \"10\"\n }), React.createElement(\"path\", {\n d: \"M4.092 8.667c0 .815-.61 1.425-1.425 1.425-.816 0-1.425-.61-1.425-1.425 0-.166.086-.508.274-1.002.18-.468.42-1 .667-1.505.168-.343.335-.67.484-.953.148.283.316.61.483.953.246.506.488 1.037.667 1.505.189.494.275.836.275 1.002Z\"\n }))\n });\n}\n\nvar make = ShampooIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction SmokeDetectorIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Smoke Detector\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M3.429.893h9.142l-.388 2.677c-.108.743-.579 1.385-1.307 1.566-.674.168-1.635.328-2.854.328a12.09 12.09 0 0 1-2.88-.329c-.738-.181-1.218-.83-1.327-1.582L3.429.893Z\"\n }), React.createElement(\"path\", {\n d: \"M4.295 8.607c-2.167 2.709 2.167 3.792 0 6.5M8 7.75c-2.167 2.708 2.167 3.792 0 6.5M11.705 8.607c-2.167 2.709 2.167 3.792 0 6.5M1.143.893h13.714\",\n strokeLinecap: \"round\"\n }))\n });\n}\n\nvar make = SmokeDetectorIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction SoloAdventuresIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Solo Adventures\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M8 5.143A2.286 2.286 0 1 0 8 .57a2.286 2.286 0 0 0 0 4.572ZM8 15.429c-3.429 0-3.429-8-3.429-8h6.858s0 8-3.429 8Z\"\n }))\n });\n}\n\nvar make = SoloAdventuresIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction TVIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"TV\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M14.286 3.429H1.714c-.63 0-1.143.511-1.143 1.142v9.715c0 .63.512 1.143 1.143 1.143h12.572c.63 0 1.143-.512 1.143-1.143V4.57c0-.63-.512-1.142-1.143-1.142Z\"\n }), React.createElement(\"path\", {\n d: \"M11.429 6.286H4.57c-.63 0-1.142.511-1.142 1.143v4c0 .63.511 1.142 1.142 1.142h6.858c.63 0 1.142-.511 1.142-1.142v-4c0-.632-.511-1.143-1.142-1.143ZM5.714.571 8 3.43 10.286.57\"\n }))\n });\n}\n\nvar make = TVIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction TeddyBearIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"TeddyBear\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: null\n }, React.createElement(\"path\", {\n style: Icon.style(color$1),\n clipRule: \"evenodd\",\n d: \"M15.2497 10.9891C15.2497 10.1146 14.9866 9.24317 14.4888 8.46891C14.0621 7.80546 13.4621 7.2122 12.7425 6.73858C13.0648 6.14529 13.2456 5.48031 13.2456 4.77853C13.2456 4.37488 13.1854 3.98352 13.0733 3.61086C13.7651 3.33308 14.2503 2.65527 14.2503 1.87266C14.2503 0.840075 13.4103 0 12.3777 0C11.7101 0 11.1097 0.349501 10.7759 0.902247C10.0107 0.492322 9.11487 0.25618 8.15813 0.25618C7.17514 0.25618 6.25657 0.505556 5.4777 0.936486C5.14643 0.366292 4.52873 3.1211e-05 3.8571 3.1211e-05C2.82452 3.1211e-05 1.98444 0.840106 1.98444 1.87269C1.98444 2.36323 2.17374 2.82737 2.51749 3.17962C2.72164 3.38883 2.96674 3.5441 3.23463 3.63867C3.12782 4.00297 3.07083 4.38496 3.07083 4.77856C3.07083 5.48034 3.25161 6.14532 3.57392 6.73861C2.85426 7.21224 2.25426 7.80549 1.82764 8.46895C1.32979 9.24317 1.06665 10.1146 1.06665 10.9891C1.06665 11.7146 1.24178 12.4214 1.58653 13.0906C1.5409 13.2727 1.51634 13.4631 1.51634 13.6592C1.51634 14.9499 2.56643 16 3.85716 16C4.84693 16 5.69459 15.3822 6.03635 14.5122C6.69877 14.7997 7.42327 14.9501 8.15819 14.9501C8.89858 14.9501 9.62502 14.7977 10.2902 14.5071C10.6306 15.3798 11.4796 16 12.4713 16C13.7621 16 14.8122 14.9499 14.8122 13.6591C14.8122 13.4573 14.7865 13.2614 14.7382 13.0745C15.0775 12.4106 15.2497 11.7097 15.2497 10.9891V10.9891ZM14.3134 10.9891C14.3134 11.3438 14.2599 11.6935 14.1545 12.0349C13.8589 11.7287 13.4812 11.5022 13.0567 11.3925C13.1613 11.0112 13.2143 10.6189 13.2143 10.221C13.2143 9.29775 12.9212 8.39264 12.3809 7.62466C13.599 8.48436 14.3134 9.71517 14.3134 10.9891ZM12.3777 0.936361C12.894 0.936361 13.314 1.3564 13.314 1.87269C13.314 2.27207 13.0615 2.61701 12.7043 2.75025C12.4179 2.24507 12.0281 1.79385 11.5597 1.41873C11.7226 1.12453 12.0319 0.936361 12.3777 0.936361V0.936361ZM12.3093 4.77856C12.3093 6.06205 11.5245 7.19001 10.3479 7.82372C10.4846 7.52197 10.5614 7.18752 10.5614 6.83524C10.5614 5.51008 9.48335 4.43199 8.15819 4.43199C6.83304 4.43199 5.75495 5.51008 5.75495 6.83524C5.75495 7.18752 5.83176 7.52197 5.96852 7.82372C4.7919 7.19001 4.00713 6.06205 4.00713 4.77856C4.00713 2.80122 5.8693 1.19254 8.15819 1.19254C10.4471 1.19254 12.3093 2.80122 12.3093 4.77856ZM7.50957 5.51998C7.55342 5.83892 7.82751 6.08617 8.15819 6.08617C8.48887 6.08617 8.76297 5.83889 8.80682 5.51994C9.29118 5.75977 9.62514 6.25911 9.62514 6.83521C9.62514 7.64407 8.96709 8.30212 8.15823 8.30212C7.34936 8.30212 6.69131 7.64407 6.69131 6.83521C6.69128 6.25915 7.0252 5.7598 7.50957 5.51998V5.51998ZM2.92077 1.87269C2.92077 1.3564 3.34081 0.936361 3.8571 0.936361C4.21578 0.936361 4.54359 1.14588 4.6993 1.46557C4.24967 1.83677 3.87551 2.27915 3.59967 2.77244C3.20941 2.65905 2.92077 2.29522 2.92077 1.87269V1.87269ZM2.00292 10.9891C2.00292 9.71508 2.71743 8.48421 3.93569 7.62447C3.39505 8.39248 3.10198 9.29651 3.10198 10.2209C3.10198 10.6203 3.1552 11.0136 3.26028 11.3957C2.83606 11.5077 2.459 11.7362 2.16468 12.0445C2.05732 11.6999 2.00292 11.3468 2.00292 10.9891V10.9891ZM3.8571 15.0637C3.08266 15.0637 2.45261 14.4336 2.45261 13.6592C2.45261 12.8847 3.08266 12.2547 3.8571 12.2547C4.63154 12.2547 5.2616 12.8847 5.2616 13.6592C5.2616 14.4336 4.63154 15.0637 3.8571 15.0637ZM6.19524 13.5529C6.14502 12.4351 5.30729 11.519 4.22473 11.3474C4.10111 10.9839 4.03834 10.6059 4.03834 10.2209C4.03834 9.47294 4.28282 8.7397 4.73291 8.11932C5.63756 8.85293 6.84009 9.30091 8.15819 9.30091C9.4763 9.30091 10.6788 8.85293 11.5835 8.11935C12.0334 8.73964 12.278 9.47388 12.278 10.2209C12.278 10.6064 12.215 10.9854 12.0909 11.3498C11.0166 11.5262 10.1862 12.4361 10.1334 13.5468C9.52907 13.8527 8.85155 14.0138 8.15819 14.0138C7.47102 14.0138 6.79618 13.8546 6.19524 13.5529V13.5529ZM12.4713 15.0637C11.6969 15.0637 11.0668 14.4336 11.0668 13.6592C11.0668 12.8847 11.6969 12.2547 12.4713 12.2547C13.2458 12.2547 13.8758 12.8847 13.8758 13.6592C13.8758 14.4336 13.2458 15.0637 12.4713 15.0637Z\",\n fillRule: \"evenodd\"\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n clipRule: \"evenodd\",\n d: \"M6.57241 4.52562C6.83028 4.52562 7.04058 4.31532 7.04058 4.05746C7.04058 3.79959 6.83028 3.58929 6.57241 3.58929C6.31455 3.58929 6.10425 3.79959 6.10425 4.05746C6.10425 4.31532 6.31458 4.52562 6.57241 4.52562Z\",\n fillRule: \"evenodd\"\n }), React.createElement(\"path\", {\n style: Icon.style(color$1),\n clipRule: \"evenodd\",\n d: \"M9.56875 4.52562C9.82662 4.52562 10.0369 4.31532 10.0369 4.05746C10.0369 3.79959 9.82662 3.58929 9.56875 3.58929C9.31092 3.58929 9.10059 3.79959 9.10059 4.05746C9.10059 4.31532 9.31089 4.52562 9.56875 4.52562Z\",\n fillRule: \"evenodd\"\n }));\n}\n\nvar make = TeddyBearIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction WheelchairIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Wheelchair\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M9.143 5.143a2.286 2.286 0 1 0 0-4.572 2.286 2.286 0 0 0 0 4.572ZM9.143 5.143v4.571h3.428a1.143 1.143 0 0 1 1.143 1.143v4.572M6.286 7.429a4 4 0 1 0 3.68 5.577\"\n }))\n });\n}\n\nvar make = WheelchairIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Icon = require(\"../components/Icon/Icon.bs.js\");\nvar React = require(\"react\");\n\nfunction WifiIcon(props) {\n var color = props.color;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Wifi\";\n var color$1 = color !== undefined ? color : Icon.defaultColor;\n return React.createElement(Icon.make, {\n title: title$1,\n size: props.size,\n margin: props.margin,\n className: props.className,\n testId: props.testId,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: Icon.mapColor(color$1),\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: \"1.15\"\n }, React.createElement(\"path\", {\n d: \"M8 14a1.497 1.497 0 1 0 0-2.994A1.497 1.497 0 0 0 8 14ZM5.177 9.143a3.989 3.989 0 0 1 5.714 0M2.697 7.211a7.486 7.486 0 0 1 10.617 0\"\n }), React.createElement(\"path\", {\n d: \"M.571 5.086a10.503 10.503 0 0 1 14.858 0\"\n }))\n });\n}\n\nvar make = WifiIcon;\n\nexports.make = make;\n/* Icon Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar Route = require(\"../../Route.bs.js\");\nvar React = require(\"react\");\n\nfunction Calendar(props) {\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Calendar\";\n return React.createElement(Svg.$$Image.make, {\n src: Route.cdnEndpointUrl(\"/svgs/calendar.svg\"),\n title: title$1,\n className: props.className\n });\n}\n\nvar make = Calendar;\n\nexports.make = make;\n/* Svg Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar Route = require(\"../../Route.bs.js\");\nvar React = require(\"react\");\n\nfunction FaqVector(props) {\n var className = props.className;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Faq Vector\";\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(Svg.$$Image.make, {\n src: Route.cdnEndpointUrl(\"/svgs/faq.svg\"),\n title: title$1,\n className: className$1\n });\n}\n\nvar make = FaqVector;\n\nexports.make = make;\n/* Svg Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar Route = require(\"../../Route.bs.js\");\nvar React = require(\"react\");\n\nfunction Glider(props) {\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Glider\";\n return React.createElement(Svg.$$Image.make, {\n src: Route.cdnEndpointUrl(\"/svgs/glider.svg\"),\n title: title$1,\n className: props.className\n });\n}\n\nvar make = Glider;\n\nexports.make = make;\n/* Svg Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar React = require(\"react\");\n\nfunction MessageSentIcon(props) {\n var title = props.title;\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n var title$1 = title !== undefined ? title : \"MessageSent\";\n return React.createElement(Svg.make, {\n title: title$1,\n viewBoxWidth: \"120\",\n viewBoxHeight: \"120\",\n className: className$1,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n }, React.createElement(\"circle\", {\n cx: \"60\",\n cy: \"60\",\n fill: \"#FFFFFF\",\n r: \"57.75\",\n stroke: \"#B8C7CE\",\n strokeWidth: \"4.5\"\n }), React.createElement(\"path\", {\n d: \"M26.9366645,62.0087848 L86.3555068,38.131213 C87.2340021,37.778188 88.2323466,38.2041659 88.5853716,39.0826613 C88.7465722,39.4838056 88.750256,39.9310444 88.5956849,40.3347896 L71.6188729,84.6788515 C71.2803665,85.5630428 70.2891742,86.0054078 69.4049829,85.6669014 C69.3603117,85.6497993 69.3163758,85.6308351 69.2732907,85.6100584 L26.8312605,65.1435683 C25.9784627,64.7323303 25.6205078,63.7076268 26.0317458,62.8548291 C26.2173795,62.4698744 26.5401099,62.168141 26.9366645,62.0087848 Z\",\n fill: \"#AFE7E7\"\n }), React.createElement(\"path\", {\n d: \"M88.0952381,38.5802469 L49.0102299,75.2081794 L55.7142857,78.7654321 L48.5427461,88.666141 C47.9873492,89.4328972 46.9155324,89.6042378 46.1487762,89.0488409 C45.7914288,88.7899977 45.54765,88.4033323 45.4681672,87.9693052 L42.3809524,71.1111111 L42.3809524,71.1111111 L88.0952381,38.5802469 Z\",\n fill: \"#59BEBE\"\n }))\n });\n}\n\nvar make = MessageSentIcon;\n\nexports.make = make;\n/* Svg Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar Route = require(\"../../Route.bs.js\");\nvar React = require(\"react\");\n\nfunction MessegeSend(props) {\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Messege Send\";\n return React.createElement(Svg.$$Image.make, {\n src: Route.cdnEndpointUrl(\"/svgs/messege_send.svg\"),\n title: title$1,\n className: props.className\n });\n}\n\nvar make = MessegeSend;\n\nexports.make = make;\n/* Svg Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar Route = require(\"../../Route.bs.js\");\nvar React = require(\"react\");\n\nfunction OopsVector(props) {\n var className = props.className;\n var title = props.title;\n var title$1 = title !== undefined ? title : \"Oops\";\n var className$1 = className !== undefined ? className : \"\";\n return React.createElement(Svg.$$Image.make, {\n src: Route.cdnEndpointUrl(\"/svgs/oops.svg\"),\n title: title$1,\n className: className$1\n });\n}\n\nvar make = OopsVector;\n\nvar $$default = OopsVector;\n\nexports.make = make;\nexports.$$default = $$default;\nexports.default = $$default;\nexports.__esModule = true;\n/* Svg Not a pure module */\n","// Generated by ReScript, PLEASE EDIT WITH CARE\n'use strict';\n\nvar Svg = require(\"../components/Svg/Svg.bs.js\");\nvar React = require(\"react\");\n\nfunction UnverifiedListingIcon(props) {\n var title = props.title;\n var className = props.className;\n var className$1 = className !== undefined ? className : \"\";\n var title$1 = title !== undefined ? title : \"UnverifiedListing\";\n return React.createElement(Svg.make, {\n title: title$1,\n viewBoxWidth: \"96\",\n viewBoxHeight: \"102\",\n className: className$1,\n children: React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\",\n stroke: \"none\",\n strokeWidth: \"1\"\n }, React.createElement(\"path\", {\n d: \"M4.55156467,34.396678 L40.5515647,5.89667797 C44.9161122,2.44141116 51.0838878,2.44141116 55.4484353,5.89667797 L91.4484353,34.396678 C94.3234359,36.6727201 96,40.1383496 96,43.8052279 L96,88 C96,92.418278 92.418278,96 88,96 L8,96 C3.581722,96 5.41083001e-16,92.418278 0,88 L0,43.8052279 C-7.55449043e-15,40.1383496 1.67656406,36.6727201 4.55156467,34.396678 Z\",\n fill: \"#AFE7E7\"\n }), React.createElement(\"path\", {\n d: \"M48,52 C56.836556,52 64,59.163444 64,68 L64,96 L64,96 L32,96 L32,68 C32,59.163444 39.163444,52 48,52 Z\",\n fill: \"#59BEBE\"\n }), React.createElement(\"path\", {\n d: \"M46.9821253,93.8502382 C45.6726249,95.1408419 45.6726249,97.2416156 46.9821253,98.5330447 C48.2906963,99.8251159 50.4190758,99.8251159 51.7187247,98.5330447 L52.6645576,97.6084989 L56.6086724,101.50003 C57.2831255,102.166657 58.3640906,102.166657 59.0394731,101.50003 L64.9172617,95.6992383 C65.5927371,95.0338037 65.5927371,93.966632 64.9172617,93.3000968 L60.9739834,89.4086575 L67.9988163,82.4670424 C69.502,83.2335533 71.2154101,83.6662921 73.0229668,83.6662921 C79.0857025,83.6662921 84,78.8171041 84,72.8332378 C84,66.8501052 79.0857025,62 73.0229668,62 C66.9598592,62 62.0460265,66.8501052 62.0460265,72.8332378 C62.0460265,74.617116 62.4847881,76.3081728 63.2613804,77.7916653 L46.9821253,93.8502382 Z M68.8009666,72.8332378 C68.8009666,70.5333382 70.6926323,68.6664527 73.0228738,68.6664527 C75.3533941,68.6664527 77.2446881,70.5333382 77.2446881,72.8332378 C77.2446881,75.1331374 75.3533941,76.9997478 73.0228738,76.9997478 C70.6927253,76.9997478 68.8009666,75.1330456 68.8009666,72.8332378 Z\",\n fill: \"#00569A\"\n }), React.createElement(\"path\", {\n d: \"M65,46 C73.836556,46 81,53.163444 81,62 C81,68.7145693 76.8638895,74.4630983 71.0004867,76.8367689 L71.0001552,76.4906958 C69.8420648,75.8651521 69.012863,74.7194869 68.8361122,73.3728606 C73.5832322,71.7723477 77,67.2851883 77,62 C77,55.372583 71.627417,50 65,50 C58.372583,50 53,55.372583 53,62 C53,67.6189048 56.8618721,72.335821 62.0761464,73.6412788 C62.187402,75.1270339 62.602978,76.5339462 63.2613804,77.7916653 L63.2613804,77.7916653 L63.1560705,77.8948971 C55.1880348,76.9805803 49,70.2129366 49,62 C49,53.163444 56.163444,46 65,46 Z\",\n fill: \"#FFFFFF\"\n }))\n });\n}\n\nvar make = UnverifiedListingIcon;\n\nexports.make = make;\n/* Svg Not a pure module */\n","/* @flow */\n\nimport { combineReducers, createStore } from 'redux';\nimport createSagaMiddleware from 'redux-saga';\n\nimport { withLayoutReducers, withLayoutState, withLayoutSagas, withLayoutMiddlewares } from 'layout/store';\n\nimport type { RailsProps, RailsContext } from './types';\n\nexport const sagaMiddleware = createSagaMiddleware();\n\nexport const rootSaga = withLayoutSagas();\n\nexport const initStore = (props: RailsProps, context: RailsContext) =>\n createStore(\n combineReducers(withLayoutReducers()),\n withLayoutState(props, context),\n withLayoutMiddlewares(sagaMiddleware),\n );\n","/* eslint-disable no-undef */\n/* @flow */\n/* eslint-disable no-shadow, import/no-named-default */\n\n// $FlowFixMe: Flow Throws error with Hooks\nimport React from 'react';\nimport { Provider as ReduxProvider, connect } from 'react-redux';\nimport { createStructuredSelector } from 'reselect';\n\nimport IntlProviderWrapper from 'app/rescript/i18n/IntlProviderWrapper.bs.js';\nimport ScreenSizeContext from 'app/rescript/contexts/ScreenSizeContext.bs.js';\nimport AdBlockContext from 'app/rescript/contexts/AdBlockContext.bs.js';\n\nimport Layout from 'layout';\n// $FlowIgnoreMe: reason module\nimport Slv from './ui/Slv__JsBridge.bs.js';\n\nimport type { RailsProps, RailsContext } from './types';\nimport { initStore, sagaMiddleware, rootSaga } from './store';\nimport { userSelector } from '../../../bundles/layout/selectors/navbarSelector';\nimport {\n authenticationSucceeded,\n openLogInModalWithCallback,\n} from '../../../bundles/layout/actions/authenticationModalActions';\n\nconst ListingsShow = (props: RailsProps, context: RailsContext) => {\n const store = initStore(props, context);\n sagaMiddleware.run(rootSaga);\n\n return () => (\n <ReduxProvider store={store}>\n <IntlProviderWrapper>\n <ScreenSizeContext>\n <AdBlockContext>\n <Layout navbar={props.navbar} alerts={props.alerts} impersonatedUser={props.impersonatedUser}>\n <ReduxDataLayer>\n {({ user, authenticateNewUser, authenticateWithCallback }) => (\n <Slv\n listing={props.listing}\n plans={props.plans}\n user={user}\n canExternalRedirectData={props.canExternalRedirect}\n sampleMode={props.sampleMode}\n railsContext={context}\n authenticateNewUser={authenticateNewUser}\n authenticateWithCallback={authenticateWithCallback}\n />\n )}\n </ReduxDataLayer>\n </Layout>\n </AdBlockContext>\n </ScreenSizeContext>\n </IntlProviderWrapper>\n </ReduxProvider>\n );\n};\n\nconst ReduxDataLayer = connect(\n createStructuredSelector({ user: userSelector }),\n {\n authenticateNewUser: navbar => authenticationSucceeded(navbar),\n authenticateWithCallback: (cb, amplitudeParams) => openLogInModalWithCallback(cb, amplitudeParams),\n },\n)(({ user, authenticateNewUser, authenticateWithCallback, children }) =>\n children({ user: user ? user.toJS() : user, authenticateNewUser, authenticateWithCallback }),\n);\n\nexport default ListingsShow;\n","import ListingsShow from '../ListingsShow';\n\nexport default ListingsShow;\n","import ReactOnRails from 'react-on-rails';\nimport ListingsShow from '../../rescript/bundles/listings-show/ror_components/ListingsShow.client.jsx';\n\nReactOnRails.register({ListingsShow});\n","// extracted by mini-css-extract-plugin\nexport default {\"clockwise\":\"photoswipe__clockwise__cXW4J\",\"donut-rotate\":\"photoswipe__donut-rotate__Pj_Ta\"};","// extracted by mini-css-extract-plugin\nexport default {\"chart\":\"BookingCalculatorLineChart__chart__AFhao\"};","// extracted by mini-css-extract-plugin\nexport default {\"block\":\"SlvBlock-module__block__Feplb\",\"inlineBlock\":\"SlvBlock-module__inlineBlock__ZvMkW\",\"title\":\"SlvBlock-module__title__ZpWYV\",\"subTitle\":\"SlvBlock-module__subTitle__ySyyI\",\"footer\":\"SlvBlock-module__footer__ATCaa\"};","// extracted by mini-css-extract-plugin\nexport default {\"paragraph\":\"SlvHtmlText-module__paragraph__VeAj9\",\"paragraphWrapper\":\"SlvHtmlText-module__paragraphWrapper__j3uER\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"SlvEmailComparisonButton__wrapper__Ynv8G\",\"quoteButton\":\"SlvEmailComparisonButton__quoteButton__NYYsK\",\"quoteLoading\":\"SlvEmailComparisonButton__quoteLoading__k80vy\",\"waiting\":\"SlvEmailComparisonButton__waiting__Dnk7R\",\"quoteDisabled\":\"SlvEmailComparisonButton__quoteDisabled__oelaY\",\"quoteMessage\":\"SlvEmailComparisonButton__quoteMessage__QAWlq\",\"errorText\":\"SlvEmailComparisonButton__errorText__w5MUA\",\"successMessage\":\"SlvEmailComparisonButton__successMessage__qVqfZ\",\"textBtnSpace\":\"SlvEmailComparisonButton__textBtnSpace__SuRXw\",\"textInput\":\"SlvEmailComparisonButton__textInput__aH_a7\",\"error\":\"SlvEmailComparisonButton__error__N2B4t\",\"emailComparisonForm\":\"SlvEmailComparisonButton__emailComparisonForm__eF4xZ\"};","// extracted by mini-css-extract-plugin\nexport default {\"separator\":\"SlvSharePricingModal__separator__nVNob\",\"sendQuoteButton\":\"SlvSharePricingModal__sendQuoteButton__RmKqo\",\"quoteButtonWrapper\":\"SlvSharePricingModal__quoteButtonWrapper__sAE5X\",\"quoteButton\":\"SlvSharePricingModal__quoteButton__UH1LZ\",\"quoteLoading\":\"SlvSharePricingModal__quoteLoading__LX3iV\",\"textBtnSpace\":\"SlvSharePricingModal__textBtnSpace__Yy2HL\",\"shareTitle\":\"SlvSharePricingModal__shareTitle__Cd7sT\",\"emptyDatesText\":\"SlvSharePricingModal__emptyDatesText__YiAE0\"};","// extracted by mini-css-extract-plugin\nexport default {\"table\":\"SlvTable-module__table__Y_sw_\",\"row\":\"SlvTable-module__row__K5Mcm\",\"cell\":\"SlvTable-module__cell__LY2G8\",\"col\":\"SlvTable-module__col__KcT4M\"};","// extracted by mini-css-extract-plugin\nexport default {\"slvBottomDesktopAdWrapper\":\"SlvAds-module__slvBottomDesktopAdWrapper__dAbmc\",\"slvBottomDesktopAd\":\"SlvAds-module__slvBottomDesktopAd__TDSx0\",\"slvBottomMobileAdWrapper\":\"SlvAds-module__slvBottomMobileAdWrapper__TLyEO\",\"slvBottomMobileAd\":\"SlvAds-module__slvBottomMobileAd__ElTP6\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"AlternativeLinksFailureModal-module__modal__IrF4R\",\"title\":\"AlternativeLinksFailureModal-module__title__zrZW6\",\"message\":\"AlternativeLinksFailureModal-module__message__FndQK\",\"oopsVector\":\"AlternativeLinksFailureModal-module__oopsVector__uFKe8\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"AlternativeLinksModal-module__modal__qPTCG\",\"modalTileSeparator\":\"AlternativeLinksModal-module__modalTileSeparator__EMf_f\",\"title\":\"AlternativeLinksModal-module__title__sEvoK\",\"subTitle\":\"AlternativeLinksModal-module__subTitle__nTwjW\",\"label\":\"AlternativeLinksModal-module__label__gEtX7\",\"addLinksInput\":\"AlternativeLinksModal-module__addLinksInput__Ct7RK\",\"submitLinkButton\":\"AlternativeLinksModal-module__submitLinkButton__M6Cia\",\"error\":\"AlternativeLinksModal-module__error__gbYkc\",\"notifyCheckbox\":\"AlternativeLinksModal-module__notifyCheckbox__lC_nO\",\"col\":\"AlternativeLinksModal-module__col__KYvuB\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"AlternativeLinksReportModal-module__modal__pfLa7\",\"title\":\"AlternativeLinksReportModal-module__title__OTNwI\",\"subTitle\":\"AlternativeLinksReportModal-module__subTitle__PTAEx\",\"submitButton\":\"AlternativeLinksReportModal-module__submitButton__R5ivT\"};","// extracted by mini-css-extract-plugin\nexport default {\"linkSentIcon\":\"AlternativeLinksSuccessModal-module__linkSentIcon__DeNiz\",\"modal\":\"AlternativeLinksSuccessModal-module__modal__CCsVl\",\"modalTileSeparator\":\"AlternativeLinksSuccessModal-module__modalTileSeparator__RiN2z\",\"title\":\"AlternativeLinksSuccessModal-module__title__a0cxT\",\"message\":\"AlternativeLinksSuccessModal-module__message__VNyfH\",\"closeButton\":\"AlternativeLinksSuccessModal-module__closeButton__ro4k5\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"SlvAreYouTheOwner-module__wrapper__xDzv_\",\"messageContainer\":\"SlvAreYouTheOwner-module__messageContainer__BJiBk\",\"whyVerify\":\"SlvAreYouTheOwner-module__whyVerify__HuMxS\",\"message\":\"SlvAreYouTheOwner-module__message__USL1p\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"SlvBookingOwnListingWarningModal-module__modal__AHAeM\"};","// extracted by mini-css-extract-plugin\nexport default {\"bookingCalculatorBadge\":\"SlvBookingCalculatorBadge__bookingCalculatorBadge__y7Fn1\",\"listingPreview\":\"SlvBookingCalculatorBadge__listingPreview__F79f2\",\"bookingCalculatorAction\":\"SlvBookingCalculatorBadge__bookingCalculatorAction__lOMZd\",\"listingBadge\":\"SlvBookingCalculatorBadge__listingBadge__TCZme\",\"listingImage\":\"SlvBookingCalculatorBadge__listingImage__LICmR\",\"separator\":\"SlvBookingCalculatorBadge__separator__tEHkr\",\"bookingCalculatorPreview\":\"SlvBookingCalculatorBadge__bookingCalculatorPreview__GK8Z3\",\"total\":\"SlvBookingCalculatorBadge__total__mvqnq\",\"infoPanel\":\"SlvBookingCalculatorBadge__infoPanel__U0ZKB\",\"infoTitle\":\"SlvBookingCalculatorBadge__infoTitle__BvvrQ\",\"infoText\":\"SlvBookingCalculatorBadge__infoText__D78gI\",\"dates\":\"SlvBookingCalculatorBadge__dates__XUHr8\",\"button\":\"SlvBookingCalculatorBadge__button__D2RXN\",\"badgeLoading\":\"SlvBookingCalculatorBadge__badgeLoading__Qdt1R\",\"estimatedTotal\":\"SlvBookingCalculatorBadge__estimatedTotal__yWoEX\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"SlvBookingCalculatorModal__modal__vGqb2\"};","// extracted by mini-css-extract-plugin\nexport default {\"heading\":\"SlvBookingDeals__heading__R4lLu\",\"details\":\"SlvBookingDeals__details__FzzPd\",\"bookingDeal\":\"SlvBookingDeals__bookingDeal__tIw8q\",\"providerRow\":\"SlvBookingDeals__providerRow__k_WgJ\",\"providerDeal\":\"SlvBookingDeals__providerDeal__ri2me\",\"providerDealRow\":\"SlvBookingDeals__providerDealRow__QA4zo\",\"providerLabel\":\"SlvBookingDeals__providerLabel__Mqagn\",\"providerLabelDeal\":\"SlvBookingDeals__providerLabelDeal__BocI7\",\"providerRowWithBadges\":\"SlvBookingDeals__providerRowWithBadges__ihoFh\",\"providerLabelDisabled\":\"SlvBookingDeals__providerLabelDisabled__EDhLf\",\"providerText\":\"SlvBookingDeals__providerText__aecue\",\"providerDealData\":\"SlvBookingDeals__providerDealData__xJpN1\",\"providerPrice\":\"SlvBookingDeals__providerPrice__yOlzR\",\"providerDealButton\":\"SlvBookingDeals__providerDealButton__BWQsx\",\"pricesNotFoundText\":\"SlvBookingDeals__pricesNotFoundText__ALmrB\",\"modalDealButton\":\"SlvBookingDeals__modalDealButton__AS9lH\",\"includesText\":\"SlvBookingDeals__includesText__O3qSx\",\"hostName\":\"SlvBookingDeals__hostName__UMHGZ\",\"totalNightsText\":\"SlvBookingDeals__totalNightsText__Q0r7M\",\"estimatePriceTooltipWrapper\":\"SlvBookingDeals__estimatePriceTooltipWrapper__ifoxu\",\"available\":\"SlvBookingDeals__available__H_L4l\",\"unverifiedHostDeal\":\"SlvBookingDeals__unverifiedHostDeal__oIOjF\",\"unverifiedHostDealRow\":\"SlvBookingDeals__unverifiedHostDealRow__oO6gS\",\"estBookDirectData\":\"SlvBookingDeals__estBookDirectData__VtJae\",\"estBookDirectDeal\":\"SlvBookingDeals__estBookDirectDeal__bCD0n\",\"estBookDirectName\":\"SlvBookingDeals__estBookDirectName__H3uSC\",\"estBookDirectLabel\":\"SlvBookingDeals__estBookDirectLabel__YClYg\",\"estBookDirectPrice\":\"SlvBookingDeals__estBookDirectPrice__EuShp\",\"bestDealRowVerifiedHost\":\"SlvBookingDeals__bestDealRowVerifiedHost__PbXwX\",\"bestDealRowPropertyManager\":\"SlvBookingDeals__bestDealRowPropertyManager__sSrq5\",\"bestDealRowOta\":\"SlvBookingDeals__bestDealRowOta__lYc25\",\"warningProviderRow\":\"SlvBookingDeals__warningProviderRow__U3Ysd\",\"overlayWrapper\":\"SlvBookingDeals__overlayWrapper__Ymogj\",\"overlay\":\"SlvBookingDeals__overlay__AXmiP\",\"priceComparison\":\"SlvBookingDeals__priceComparison__fuCBD\",\"priceTagline\":\"SlvBookingDeals__priceTagline__APc1U\",\"providersList\":\"SlvBookingDeals__providersList__hVSWb\",\"hostAvatar\":\"SlvBookingDeals__hostAvatar__mVip9\",\"savingsContainer\":\"SlvBookingDeals__savingsContainer___SUdR\",\"legend\":\"SlvBookingDeals__legend__B4BWO\"};","// extracted by mini-css-extract-plugin\nexport default {\"titleText\":\"SlvBookingDealsAlternativeLinks-module__titleText__yrpTH\",\"bodyText\":\"SlvBookingDealsAlternativeLinks-module__bodyText__WScUd\",\"bookPriceValue\":\"SlvBookingDealsAlternativeLinks-module__bookPriceValue__Wyugs\",\"linksSectionText\":\"SlvBookingDealsAlternativeLinks-module__linksSectionText___ovwF\",\"warningMessage\":\"SlvBookingDealsAlternativeLinks-module__warningMessage__OXnUf\",\"instructionSection\":\"SlvBookingDealsAlternativeLinks-module__instructionSection__g85Jx\",\"fullLinkContainer\":\"SlvBookingDealsAlternativeLinks-module__fullLinkContainer__CARJf\",\"numberOfNights\":\"SlvBookingDealsAlternativeLinks-module__numberOfNights__Xku5Z\",\"reportLink\":\"SlvBookingDealsAlternativeLinks-module__reportLink__wAzNg\",\"fullLink\":\"SlvBookingDealsAlternativeLinks-module__fullLink__iWV5Z\",\"link\":\"SlvBookingDealsAlternativeLinks-module__link__phxAS\",\"titleAndLinkWrapper\":\"SlvBookingDealsAlternativeLinks-module__titleAndLinkWrapper__v2Vqw\",\"priceWrapper\":\"SlvBookingDealsAlternativeLinks-module__priceWrapper__SXqLc\",\"estimatePriceTooltipWrapper\":\"SlvBookingDealsAlternativeLinks-module__estimatePriceTooltipWrapper__QfSCW\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"SlvBookingDealsForm-module__container__PH3Su\",\"form\":\"SlvBookingDealsForm-module__form__jCupy\",\"selectDates\":\"SlvBookingDealsForm-module__selectDates__r_w80\",\"calendarDayPrice\":\"SlvBookingDealsForm-module__calendarDayPrice__a729k\",\"calendarDayDate\":\"SlvBookingDealsForm-module__calendarDayDate__Qm3cP\",\"calendarDayWrapper\":\"SlvBookingDealsForm-module__calendarDayWrapper__LJsP7\",\"datesFieldWrapper\":\"SlvBookingDealsForm-module__datesFieldWrapper__QLzt7\",\"checkOutField\":\"SlvBookingDealsForm-module__checkOutField__xg1sZ\",\"checkboxWrapper\":\"SlvBookingDealsForm-module__checkboxWrapper__BCWiK\",\"checkboxLabel\":\"SlvBookingDealsForm-module__checkboxLabel__LKcLo\",\"guestsFieldWrapper\":\"SlvBookingDealsForm-module__guestsFieldWrapper__aXI_I\",\"guestsFormInput\":\"SlvBookingDealsForm-module__guestsFormInput__EGsnE\",\"alertContainer\":\"SlvBookingDealsForm-module__alertContainer__qyUQN\",\"alert\":\"SlvBookingDealsForm-module__alert__df3Ba\",\"dateFieldInputWrapper\":\"SlvBookingDealsForm-module__dateFieldInputWrapper__joYad\",\"dateInput\":\"SlvBookingDealsForm-module__dateInput__SAm_8\",\"inputLabel\":\"SlvBookingDealsForm-module__inputLabel__KDO67\",\"emptySpaceInDateField\":\"SlvBookingDealsForm-module__emptySpaceInDateField__Px5Ue\"};","// extracted by mini-css-extract-plugin\nexport default {\"title\":\"SlvBookingInquiryModalDealsOnOtherSite-module__title__D2sN3\",\"horizontalLine\":\"SlvBookingInquiryModalDealsOnOtherSite-module__horizontalLine__UEF6E\",\"providerRow\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerRow__fUHkX\",\"providerLabel\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerLabel__kLiRJ\",\"providerIcon\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerIcon__pwWgV\",\"providerDataPrice\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerDataPrice__U8pPw\",\"providerDataFadedLabel\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerDataFadedLabel__CLnmW\",\"providerDataTooltip\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerDataTooltip__Sp1aQ\",\"providerDataSpinner\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerDataSpinner__PEScD\",\"providerData\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerData__VnSHZ\",\"providerDataPrices\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerDataPrices__OvrYg\",\"providerDataPriceNotIncludedNote\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerDataPriceNotIncludedNote__NkUvI\",\"faded\":\"SlvBookingInquiryModalDealsOnOtherSite-module__faded__CC9SN\",\"providerFee\":\"SlvBookingInquiryModalDealsOnOtherSite-module__providerFee__IsadC\"};","// extracted by mini-css-extract-plugin\nexport default {\"quote\":\"SlvBookingInquiryModalQuote-module__quote__PUYjE\",\"quoteRow\":\"SlvBookingInquiryModalQuote-module__quoteRow__qr1c9\",\"quoteLabel\":\"SlvBookingInquiryModalQuote-module__quoteLabel__uL5nn\",\"iconTooltip\":\"SlvBookingInquiryModalQuote-module__iconTooltip__B43IX\",\"iconExpander\":\"SlvBookingInquiryModalQuote-module__iconExpander__quaAp\",\"flip\":\"SlvBookingInquiryModalQuote-module__flip__zk26F\",\"green\":\"SlvBookingInquiryModalQuote-module__green__rWRWi\",\"quoteTotal\":\"SlvBookingInquiryModalQuote-module__quoteTotal__zKs63\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"SlvBookingModalForm-module__wrapper__Nv1Se\",\"singlePanel\":\"SlvBookingModalForm-module__singlePanel__RP04Z\",\"title\":\"SlvBookingModalForm-module__title__BhMWs\",\"secondaryTitle\":\"SlvBookingModalForm-module__secondaryTitle__D2l9i\",\"flexGrid\":\"SlvBookingModalForm-module__flexGrid__k0nch\",\"col\":\"SlvBookingModalForm-module__col__Tx2OT\",\"field\":\"SlvBookingModalForm-module__field__BC7MR\",\"detailsFieldsRow\":\"SlvBookingModalForm-module__detailsFieldsRow__zJhhe\",\"dateFields\":\"SlvBookingModalForm-module__dateFields__lGnZB\",\"guestsField\":\"SlvBookingModalForm-module__guestsField__V3wUO\",\"introduceNote\":\"SlvBookingModalForm-module__introduceNote__AtNGX\",\"bold\":\"SlvBookingModalForm-module__bold__NQI8E\",\"label\":\"SlvBookingModalForm-module__label___D_xr\",\"failure\":\"SlvBookingModalForm-module__failure__IVjfQ\",\"phoneInput\":\"SlvBookingModalForm-module__phoneInput__o1ZOS\",\"messageInput\":\"SlvBookingModalForm-module__messageInput__MRrLF\",\"normalFont\":\"SlvBookingModalForm-module__normalFont__aP8lB\",\"rules\":\"SlvBookingModalForm-module__rules__afv9k\",\"rule\":\"SlvBookingModalForm-module__rule__VXuwl\",\"details\":\"SlvBookingModalForm-module__details__j_O0P\",\"detailsRow\":\"SlvBookingModalForm-module__detailsRow__Bukq4\",\"detailsValue\":\"SlvBookingModalForm-module__detailsValue__p3omc\",\"datesArrow\":\"SlvBookingModalForm-module__datesArrow__G3st5\",\"footerNote\":\"SlvBookingModalForm-module__footerNote__aiHHi\",\"hr\":\"SlvBookingModalForm-module__hr__tvoab\",\"confirmButton\":\"SlvBookingModalForm-module__confirmButton__ywatP\",\"footer\":\"SlvBookingModalForm-module__footer__n_4qa\",\"messageSidePanel\":\"SlvBookingModalForm-module__messageSidePanel__L7URd\",\"fieldsRow\":\"SlvBookingModalForm-module__fieldsRow__dVg4H\",\"checkboxWrapper\":\"SlvBookingModalForm-module__checkboxWrapper__VItm7\",\"checkboxLabel\":\"SlvBookingModalForm-module__checkboxLabel__tHanH\",\"flexibleDatesCheckbox\":\"SlvBookingModalForm-module__flexibleDatesCheckbox__CaeUx\",\"sidePanel\":\"SlvBookingModalForm-module__sidePanel__J7jk8\",\"mainPanel\":\"SlvBookingModalForm-module__mainPanel__G8xnJ\",\"sidePanelTitle\":\"SlvBookingModalForm-module__sidePanelTitle__XnEwG\",\"horizontalLine\":\"SlvBookingModalForm-module__horizontalLine__mu6yV\",\"priceDescription\":\"SlvBookingModalForm-module__priceDescription__eyJO7\",\"bookingQuote\":\"SlvBookingModalForm-module__bookingQuote__df_r_\",\"calendarIcon\":\"SlvBookingModalForm-module__calendarIcon__fMmHZ\",\"attention\":\"SlvBookingModalForm-module__attention__l85uv\"};","// extracted by mini-css-extract-plugin\nexport default {\"modalBody\":\"SlvBookingModalSuccessMessage-module__modalBody__wgiTq\",\"mainPanel\":\"SlvBookingModalSuccessMessage-module__mainPanel__rOidR\",\"iconCheckMark\":\"SlvBookingModalSuccessMessage-module__iconCheckMark__QFXfz\",\"message\":\"SlvBookingModalSuccessMessage-module__message__HzFxt\",\"buttonSendOneMore\":\"SlvBookingModalSuccessMessage-module__buttonSendOneMore__D2Vff\",\"messageSentIcon\":\"SlvBookingModalSuccessMessage-module__messageSentIcon__lQzHu\",\"newUserMessage\":\"SlvBookingModalSuccessMessage-module__newUserMessage__oZMKz\",\"closeWindowButton\":\"SlvBookingModalSuccessMessage-module__closeWindowButton__eR_O5\",\"messageHostReply\":\"SlvBookingModalSuccessMessage-module__messageHostReply__s89Wu\",\"wrapper\":\"SlvBookingModalSuccessMessage-module__wrapper__KdlsA\",\"sidePanelMessage\":\"SlvBookingModalSuccessMessage-module__sidePanelMessage__CD5qX\",\"sidePanel\":\"SlvBookingModalSuccessMessage-module__sidePanel__iUqvr\",\"bulbIcon\":\"SlvBookingModalSuccessMessage-module__bulbIcon__s2xLS\",\"contactHostMessage\":\"SlvBookingModalSuccessMessage-module__contactHostMessage__pklk6\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"SlvBookingModalUnverifiedListingNotification-module__wrapper__SAtVq\",\"unverifiedListingIcon\":\"SlvBookingModalUnverifiedListingNotification-module__unverifiedListingIcon__OQ3QV\",\"iconWrapper\":\"SlvBookingModalUnverifiedListingNotification-module__iconWrapper__fh9hw\",\"messageTitle\":\"SlvBookingModalUnverifiedListingNotification-module__messageTitle__IZJb5\",\"messageDescription\":\"SlvBookingModalUnverifiedListingNotification-module__messageDescription__JOBaF\"};","// extracted by mini-css-extract-plugin\nexport default {\"primaryButton\":\"SlvBookingSendInquiryButton-module__primaryButton__b0Fp9\",\"noObligationNote\":\"SlvBookingSendInquiryButton-module__noObligationNote__GDPDO\"};","// extracted by mini-css-extract-plugin\nexport default {\"descriptionContainer\":\"SlvDescription-module__descriptionContainer__adfst\",\"description\":\"SlvDescription-module__description__tDqHU\",\"collapsedDescription\":\"SlvDescription-module__collapsedDescription__enntl\"};","// extracted by mini-css-extract-plugin\nexport default {\"groups\":\"SlvDetails-module__groups__C7bL3\",\"divider\":\"SlvDetails-module__divider__ItydU\",\"group\":\"SlvDetails-module__group__yZeT_\",\"iconwithlabel\":\"SlvDetails-module__iconwithlabel__RsFPn\"};","// extracted by mini-css-extract-plugin\nexport default {\"faqContainer\":\"SlvFaq-module__faqContainer__LRh2Y\",\"vector\":\"SlvFaq-module__vector__ARgVR\",\"textContent\":\"SlvFaq-module__textContent__VfF_5\",\"title\":\"SlvFaq-module__title__J6cSs\",\"contentPara\":\"SlvFaq-module__contentPara__Ki_Vc\",\"links\":\"SlvFaq-module__links__D7UZN\",\"link\":\"SlvFaq-module__link__Aby1q\"};","// extracted by mini-css-extract-plugin\nexport default {\"actionsWrapper\":\"SlvHeader-module__actionsWrapper__E1hVD\",\"iconWrapper\":\"SlvHeader-module__iconWrapper__qsz2Z\",\"titleContainer\":\"SlvHeader-module__titleContainer__xK84_\",\"title\":\"SlvHeader-module__title__dmXO3\",\"subtitle\":\"SlvHeader-module__subtitle__Y6Sni\",\"headerContainer\":\"SlvHeader-module__headerContainer__toI2s\",\"headerAside\":\"SlvHeader-module__headerAside__GlBQj\",\"providerRating\":\"SlvHeader-module__providerRating__Ec9Jf\"};","// extracted by mini-css-extract-plugin\nexport default {\"container-no-photos\":\"SlvHero-module__container-no-photos__RRLEl\",\"control\":\"SlvHero-module__control__DtYmJ\",\"heroIconsWrapper\":\"SlvHero-module__heroIconsWrapper__kNBgg\",\"prevNextCommon\":\"SlvHero-module__prevNextCommon__RANKz\",\"prev\":\"SlvHero-module__prev__Bs1qL SlvHero-module__prevNextCommon__RANKz\",\"next\":\"SlvHero-module__next__cV49l SlvHero-module__prevNextCommon__RANKz\",\"arrowContainer\":\"SlvHero-module__arrowContainer__zZ7Oe\",\"image\":\"SlvHero-module__image__sh3F6\",\"outerContainer\":\"SlvHero-module__outerContainer__kQvth\",\"imageContainer\":\"SlvHero-module__imageContainer__UkIpB\",\"magicSearchContainer\":\"SlvHero-module__magicSearchContainer__YNAOZ\",\"magicSearchBadge\":\"SlvHero-module__magicSearchBadge__cuWnv\",\"actionsWrapper\":\"SlvHero-module__actionsWrapper__ENXZ9\",\"slvPhoto\":\"SlvHero-module__slvPhoto__t_pH9\",\"hidden\":\"SlvHero-module__hidden__JYN5R\",\"googleWithThis\":\"SlvHero-module__googleWithThis__p3TAU\"};","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"SlvNoPhotos-module__wrapper__o0XJS\",\"content\":\"SlvNoPhotos-module__content__wRRFO\",\"label\":\"SlvNoPhotos-module__label__rOY5E\"};","// extracted by mini-css-extract-plugin\nexport default {\"user\":\"SlvHostKnown-module__user__i4X8c\",\"photo\":\"SlvHostKnown-module__photo__LMggU\",\"photoAndHost\":\"SlvHostKnown-module__photoAndHost__ZfpwW\",\"userAvatar\":\"SlvHostKnown-module__userAvatar__fSZK8\",\"avatarContainer\":\"SlvHostKnown-module__avatarContainer__eM9K9\",\"verifiedIcon\":\"SlvHostKnown-module__verifiedIcon__zcenB\",\"details\":\"SlvHostKnown-module__details__Z2q6c\",\"name\":\"SlvHostKnown-module__name__ATgWu\",\"aboutMe\":\"SlvHostKnown-module__aboutMe__ZBlN4\",\"button\":\"SlvHostKnown-module__button__pXb_A\",\"contactWidget\":\"SlvHostKnown-module__contactWidget__Cl1Tj\",\"phone\":\"SlvHostKnown-module__phone__CUkYP\",\"orText\":\"SlvHostKnown-module__orText__CLogD\",\"phoneNumber\":\"SlvHostKnown-module__phoneNumber__dc0zO\",\"listingsCount\":\"SlvHostKnown-module__listingsCount__Yfaib\",\"websiteUrl\":\"SlvHostKnown-module__websiteUrl___RQZB\",\"contactTextWrapper\":\"SlvHostKnown-module__contactTextWrapper__Vw0f2\",\"showContactPhoneLink\":\"SlvHostKnown-module__showContactPhoneLink__wUsmN\",\"contactWidgetPhoneContainer\":\"SlvHostKnown-module__contactWidgetPhoneContainer__hGvM6\",\"nameAndTotalListingsContainer\":\"SlvHostKnown-module__nameAndTotalListingsContainer__th9IM\",\"contactWidgetButtons\":\"SlvHostKnown-module__contactWidgetButtons__EtP2X\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"ListingCloseMatchesModal-module__modal__bx9QG\",\"errorContent\":\"ListingCloseMatchesModal-module__errorContent__rEqiD\",\"errorText\":\"ListingCloseMatchesModal-module__errorText__xsWhP\",\"errorHeader\":\"ListingCloseMatchesModal-module__errorHeader__fosmT\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"ListingFeedbackReportModal-module__modal__Mt3DZ\",\"wrapper\":\"ListingFeedbackReportModal-module__wrapper__yFUY_\",\"submitting\":\"ListingFeedbackReportModal-module__submitting__tlzzD\",\"contactUs\":\"ListingFeedbackReportModal-module__contactUs__KnAnV\",\"chatLink\":\"ListingFeedbackReportModal-module__chatLink__ya1B3\",\"control\":\"ListingFeedbackReportModal-module__control__x1mAq\",\"error\":\"ListingFeedbackReportModal-module__error__Cvbl3\",\"messageTitle\":\"ListingFeedbackReportModal-module__messageTitle__PR4ab\",\"messageDescription\":\"ListingFeedbackReportModal-module__messageDescription__xrDjY\",\"buttonsContainer\":\"ListingFeedbackReportModal-module__buttonsContainer__ldcsd\",\"nextButtonContainer\":\"ListingFeedbackReportModal-module__nextButtonContainer___wyv5\",\"detailsButtonsContainer\":\"ListingFeedbackReportModal-module__detailsButtonsContainer__IFl3X\",\"closeButtonContainer\":\"ListingFeedbackReportModal-module__closeButtonContainer__AHEtO\",\"reasonButton\":\"ListingFeedbackReportModal-module__reasonButton__y0_T3\",\"reason\":\"ListingFeedbackReportModal-module__reason__pGA6H\",\"optionalDetails\":\"ListingFeedbackReportModal-module__optionalDetails__ae4Iv\",\"checkboxWrapper\":\"ListingFeedbackReportModal-module__checkboxWrapper__YvP8f\",\"missingUrlInput\":\"ListingFeedbackReportModal-module__missingUrlInput__tHtcM\",\"buttonsDivider\":\"ListingFeedbackReportModal-module__buttonsDivider__DROY4\",\"detailsTitle\":\"ListingFeedbackReportModal-module__detailsTitle__eJZ_I\",\"detailsTextArea\":\"ListingFeedbackReportModal-module__detailsTextArea__ZnH53\",\"detailsTextAreaBusy\":\"ListingFeedbackReportModal-module__detailsTextAreaBusy__naiGg\",\"detailsTitleBusy\":\"ListingFeedbackReportModal-module__detailsTitleBusy__TcJtX\",\"detailsInput\":\"ListingFeedbackReportModal-module__detailsInput__dSMfr\",\"successMsgContainer\":\"ListingFeedbackReportModal-module__successMsgContainer__GhHAS\",\"sendIcon\":\"ListingFeedbackReportModal-module__sendIcon__Qgn_m\",\"successMsgParagraphsContainer\":\"ListingFeedbackReportModal-module__successMsgParagraphsContainer__Ge1e5\",\"successMsgTitle\":\"ListingFeedbackReportModal-module__successMsgTitle__cswrG\",\"successMsgDetails\":\"ListingFeedbackReportModal-module__successMsgDetails__fMFm4\",\"backButton\":\"ListingFeedbackReportModal-module__backButton__sLpkP\"};","// extracted by mini-css-extract-plugin\nexport default {\"locationLink\":\"SlvListingLocations-module__locationLink__KrXIl\"};","// extracted by mini-css-extract-plugin\nexport default {\"listingsCarousel\":\"ListingsCarousel-module__listingsCarousel__NtXT3\",\"hiddenScrollbar\":\"ListingsCarousel-module__hiddenScrollbar__Z4vQn\",\"listings\":\"ListingsCarousel-module__listings__BoeSJ\",\"listing\":\"ListingsCarousel-module__listing__L3nqG\",\"image\":\"ListingsCarousel-module__image__mnXap\",\"info\":\"ListingsCarousel-module__info__j8ep7\",\"infoWithBestAveragePrice\":\"ListingsCarousel-module__infoWithBestAveragePrice__pV9YM\",\"horizontalLine\":\"ListingsCarousel-module__horizontalLine__ov594\",\"listingTitleWrapper\":\"ListingsCarousel-module__listingTitleWrapper__ExB15\",\"listingTitleText\":\"ListingsCarousel-module__listingTitleText__GFU_X\",\"listingTitleReviewsCounter\":\"ListingsCarousel-module__listingTitleReviewsCounter__ciUWT\",\"listingTitleReviewsCounterValue\":\"ListingsCarousel-module__listingTitleReviewsCounterValue__gsuow\",\"infoPricesWrapper\":\"ListingsCarousel-module__infoPricesWrapper__BDkJw\",\"infoPrice\":\"ListingsCarousel-module__infoPrice__pRsf8\",\"infoPriceProvider\":\"ListingsCarousel-module__infoPriceProvider__VxggP\",\"price\":\"ListingsCarousel-module__price__jrOhX\",\"priceValue\":\"ListingsCarousel-module__priceValue__DAXYX\",\"priceLabel\":\"ListingsCarousel-module__priceLabel__Iy4gB\",\"listingCapacityDetailsText\":\"ListingsCarousel-module__listingCapacityDetailsText__uGqz2\",\"textWithCircle\":\"ListingsCarousel-module__textWithCircle__RS69B\",\"circle\":\"ListingsCarousel-module__circle__RPf3J\",\"disabled\":\"ListingsCarousel-module__disabled__w1k9F\",\"hostBadge\":\"ListingsCarousel-module__hostBadge__gTq82\"};","// extracted by mini-css-extract-plugin\nexport default {\"priceRelativeContainer\":\"ListingsCarouselItemBestPrice-module__priceRelativeContainer__QpXRB\",\"priceContainer\":\"ListingsCarouselItemBestPrice-module__priceContainer__upNvl\",\"iconWrapper\":\"ListingsCarouselItemBestPrice-module__iconWrapper__g6KZg\",\"priceWrapper\":\"ListingsCarouselItemBestPrice-module__priceWrapper__FZcPv\",\"price\":\"ListingsCarouselItemBestPrice-module__price__Bz7PR\",\"priceSuffix\":\"ListingsCarouselItemBestPrice-module__priceSuffix__jAMDY\"};","// extracted by mini-css-extract-plugin\nexport default {\"map\":\"SlvLocation-module__map__iZDrb\",\"iframe\":\"SlvLocation-module__iframe__v1QcN\",\"titleWrapper\":\"SlvLocation-module__titleWrapper__SnxQO\"};","// extracted by mini-css-extract-plugin\nexport default {\"titleWrapper\":\"SlvNearbyAndSimilarListings-module__titleWrapper__P8uxp\",\"subtitle\":\"SlvNearbyAndSimilarListings-module__subtitle__pdBxv\",\"seeAllLink\":\"SlvNearbyAndSimilarListings-module__seeAllLink__AAAkj\",\"rightArrowIcon\":\"SlvNearbyAndSimilarListings-module__rightArrowIcon__CkwcS\",\"listingsCarouselContainer\":\"SlvNearbyAndSimilarListings-module__listingsCarouselContainer__mshcl\",\"listingLink\":\"SlvNearbyAndSimilarListings-module__listingLink__CaTL7\",\"prevControlBtn\":\"SlvNearbyAndSimilarListings-module__prevControlBtn__reKPj\",\"nextControlBtn\":\"SlvNearbyAndSimilarListings-module__nextControlBtn__ZW54n\"};","// extracted by mini-css-extract-plugin\nexport default {\"hidden\":\"SlvPhoto-module__hidden__GaDJX\",\"imageContainer\":\"SlvPhoto-module__imageContainer__iNpXs\"};","// extracted by mini-css-extract-plugin\nexport default {\"providersRatingsWrapper\":\"SlvReviews-module__providersRatingsWrapper__wVdLe\",\"averageRating\":\"SlvReviews-module__averageRating__Tlfjf\",\"hicheeRatingWrapper\":\"SlvReviews-module__hicheeRatingWrapper__RuTxx\",\"horizontalLine\":\"SlvReviews-module__horizontalLine__YNymP\",\"providerRowWrapper\":\"SlvReviews-module__providerRowWrapper__nk1hS\",\"logoAndReviewsWrapper\":\"SlvReviews-module__logoAndReviewsWrapper__g3o6r\",\"providerNameAndLinkWrapper\":\"SlvReviews-module__providerNameAndLinkWrapper__yjk8t\",\"providerAndRatingWrapper\":\"SlvReviews-module__providerAndRatingWrapper__B_gqa\",\"providerName\":\"SlvReviews-module__providerName__ZfNqy\",\"providerRating\":\"SlvReviews-module__providerRating__cnfNa\",\"providerLink\":\"SlvReviews-module__providerLink__Mmi1G\",\"providerIcon\":\"SlvReviews-module__providerIcon__NY6du\",\"description\":\"SlvReviews-module__description__mVECN\",\"reviewsCount\":\"SlvReviews-module__reviewsCount__fcKnT\",\"reviewButton\":\"SlvReviews-module__reviewButton__f5G92\",\"circle\":\"SlvReviews-module__circle__jSWgH\",\"averageRatingWithTooltip\":\"SlvReviews-module__averageRatingWithTooltip__B4E0F\",\"tooltipWithDot\":\"SlvReviews-module__tooltipWithDot__IXkRg\",\"aggregatedHicheeScore\":\"SlvReviews-module__aggregatedHicheeScore__dYhwU\",\"hicheeAverageRatingExplainerPopup\":\"SlvReviews-module__hicheeAverageRatingExplainerPopup__cZa67\",\"starIconWrapper\":\"SlvReviews-module__starIconWrapper__xelO5\",\"reviewsContainer\":\"SlvReviews-module__reviewsContainer__pTFpF\"};","// extracted by mini-css-extract-plugin\nexport default {\"rules\":\"SlvRules-module__rules__h81Nl\",\"rule\":\"SlvRules-module__rule__pBF6U\",\"subtitle\":\"SlvRules-module__subtitle__HxSLM\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"SlvSaveYourMoney-module__container__lmjGf\",\"title\":\"SlvSaveYourMoney-module__title__F60eI\",\"description\":\"SlvSaveYourMoney-module__description__JpRob\",\"buttonAndLogoContainer\":\"SlvSaveYourMoney-module__buttonAndLogoContainer__FnHuO\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"Slv-module__container__sH4hn\",\"content\":\"Slv-module__content__XfqFt\",\"mainCol\":\"Slv-module__mainCol__XHVZ0\",\"titleAndHostBadgeInfoWrapper\":\"Slv-module__titleAndHostBadgeInfoWrapper__dHnd6\",\"blocksContainer\":\"Slv-module__blocksContainer__UikDV\",\"mainBlock\":\"Slv-module__mainBlock__JPDIL\",\"orSeparator\":\"Slv-module__orSeparator__p5Nw4\"};","// extracted by mini-css-extract-plugin\nexport default {\"upperBlockContainer\":\"SlvUpperBlock-module__upperBlockContainer__krsyP\",\"heroContainer\":\"SlvUpperBlock-module__heroContainer__OdnPO\",\"bookingDealsContainer\":\"SlvUpperBlock-module__bookingDealsContainer__Sau1v\",\"mobileTitle\":\"SlvUpperBlock-module__mobileTitle__cmwIv\"};","// extracted by mini-css-extract-plugin\nexport default {\"alert\":\"Alert-module__alert__QmRhn\",\"info\":\"Alert-module__info__Jir_B\",\"success\":\"Alert-module__success__sO5SM\",\"warning\":\"Alert-module__warning__zPYPg\",\"danger\":\"Alert-module__danger__kdl5J\"};","// extracted by mini-css-extract-plugin\nexport default {\"bannerContainer\":\"AlertBanner__bannerContainer__khMrR\",\"textBlock\":\"AlertBanner__textBlock__YeEyN\",\"errorText\":\"AlertBanner__errorText__kCzS6\"};","// extracted by mini-css-extract-plugin\nexport default {\"textBlock\":\"PickNextAvailableDates__textBlock__NW6sI\"};","// extracted by mini-css-extract-plugin\nexport default {\"colorCodeTitle\":\"ColorCoding-module__colorCodeTitle__JUqhz\",\"size\":\"ColorCoding-module__size__rGLxu\",\"dot\":\"ColorCoding-module__dot__QNuqp\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"ForbiddenVerificationModal__modal__H553f\"};","// extracted by mini-css-extract-plugin\nexport default {\"transitionable\":\"LineChart-module__transitionable__YbxS0\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"PickDatesOverlay__container__AumGS\",\"calendarIconWrapper\":\"PickDatesOverlay__calendarIconWrapper__BIzK5\",\"continueWrapper\":\"PickDatesOverlay__continueWrapper__VPDBZ\",\"continue\":\"PickDatesOverlay__continue__fcs1F\",\"actionsWrapper\":\"PickDatesOverlay__actionsWrapper__Omhlw\",\"text\":\"PickDatesOverlay__text__mY5mU\",\"action\":\"PickDatesOverlay__action__sXo1U\"};","// extracted by mini-css-extract-plugin\nexport default {\"faded\":\"Text-module__faded__UvRaV\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"Tooltip-module__container__t2UeN\",\"tooltip\":\"Tooltip-module__tooltip__xthbG\",\"tooltipPrimary\":\"Tooltip-module__tooltipPrimary__jRZrz\",\"positionTop\":\"Tooltip-module__positionTop__Z3urW\",\"positionBottom\":\"Tooltip-module__positionBottom__yE9On\",\"positionLeft\":\"Tooltip-module__positionLeft__rKPfE\",\"positionRight\":\"Tooltip-module__positionRight__yASyb\",\"triangle\":\"Tooltip-module__triangle__yoQZd\",\"triangleBottom\":\"Tooltip-module__triangleBottom__hCSIO\",\"triangleTop\":\"Tooltip-module__triangleTop__VXTZ2\",\"triangleLeft\":\"Tooltip-module__triangleLeft__r4Z0u\",\"triangleRight\":\"Tooltip-module__triangleRight__fWbcq\",\"tooltipHeader\":\"Tooltip-module__tooltipHeader__qUKxo\"};","// extracted by mini-css-extract-plugin\nexport default {\"warning\":\"WarningBadge__warning__NacL5\",\"border-radius--full\":\"WarningBadge__border-radius--full__W0EfO\",\"border-radius--top\":\"WarningBadge__border-radius--top__OJyVR\",\"border-radius--bottom\":\"WarningBadge__border-radius--bottom__xkiww\"};","// extracted by mini-css-extract-plugin\nexport default {\"label--top\":\"DateField-module__label--top__uUkMU\",\"label--left\":\"DateField-module__label--left__ix0yH\",\"cal\":\"DateField-module__cal__UyCVf\",\"container\":\"DateField-module__container__tGlge\",\"month\":\"DateField-module__month___IV39\",\"navBar\":\"DateField-module__navBar__YBT8q\",\"navButtonPrev\":\"DateField-module__navButtonPrev__rMbz8\",\"navButtonNext\":\"DateField-module__navButtonNext__GZ9Nv\",\"caption\":\"DateField-module__caption__Nw14o\",\"weekdays\":\"DateField-module__weekdays__RwkzB\",\"weekdaysRow\":\"DateField-module__weekdaysRow__eNqSd\",\"weekday\":\"DateField-module__weekday__yJ8do\",\"body\":\"DateField-module__body__BW3NN\",\"week\":\"DateField-module__week__O49oh\",\"weekNumber\":\"DateField-module__weekNumber__zklQC\",\"day\":\"DateField-module__day__XHOKO\",\"disabled\":\"DateField-module__disabled__DUpMd\",\"interactionDisabled\":\"DateField-module__interactionDisabled__TvU2t\",\"navButtonInteractionDisabled\":\"DateField-module__navButtonInteractionDisabled__KASrW\",\"today\":\"DateField-module__today__p33sc\",\"firstEnabled\":\"DateField-module__firstEnabled__nua8U\",\"lastEnabled\":\"DateField-module__lastEnabled__saHmr\",\"beforeDate\":\"DateField-module__beforeDate__Ehrde\",\"outside\":\"DateField-module__outside___GDd4\",\"selected\":\"DateField-module__selected__nRHo7\",\"secondarySelected\":\"DateField-module__secondarySelected__nT1a0\",\"tertiarySelected\":\"DateField-module__tertiarySelected__goVB9\",\"dropdown\":\"DateField-module__dropdown__uYy9y\",\"wrapper\":\"DateField-module__wrapper__NRciO\",\"footer\":\"DateField-module__footer__jyYj0\",\"clearButton\":\"DateField-module__clearButton__rjPPI\",\"note\":\"DateField-module__note__tNWM6\",\"inputLabel\":\"DateField-module__inputLabel__aecJI\",\"dateFieldInputWrapper\":\"DateField-module__dateFieldInputWrapper__tr7LQ\",\"airbnbEnabledStrip\":\"DateField-module__airbnbEnabledStrip__YqTV5\",\"bookingcomEnabledStrip\":\"DateField-module__bookingcomEnabledStrip__x2A1u\",\"hicheeEnabledStrip\":\"DateField-module__hicheeEnabledStrip__KEEkg\",\"vrboEnabledStrip\":\"DateField-module__vrboEnabledStrip__C_Uvr\",\"airbnbEnabled\":\"DateField-module__airbnbEnabled__Rlqc4\",\"airbnbFirstEnabled\":\"DateField-module__airbnbFirstEnabled__GhQnF\",\"airbnbLastEnabled\":\"DateField-module__airbnbLastEnabled__TM7GH\",\"bookingcomEnabled\":\"DateField-module__bookingcomEnabled__M2XIG\",\"bookingcomFirstEnabled\":\"DateField-module__bookingcomFirstEnabled__Tjtuy\",\"bookingcomLastEnabled\":\"DateField-module__bookingcomLastEnabled__nXp9A\",\"hicheeEnabled\":\"DateField-module__hicheeEnabled__jhGSG\",\"hicheeFirstEnabled\":\"DateField-module__hicheeFirstEnabled__zE8Ry\",\"hicheeLastEnabled\":\"DateField-module__hicheeLastEnabled__m4OID\",\"vrboEnabled\":\"DateField-module__vrboEnabled__e6iIR\",\"vrboFirstEnabled\":\"DateField-module__vrboFirstEnabled__zUx_6\",\"vrboLastEnabled\":\"DateField-module__vrboLastEnabled__MGDU2\",\"availabilityLabel\":\"DateField-module__availabilityLabel__tJPRY\",\"colorCodingWrapper\":\"DateField-module__colorCodingWrapper__eG8fJ\"};"],"names":["props","phoneNumber","isoByLen","len","countryData","substring","countryIso","country","foundCountry","iso2","formattedNumber","formatNumber","format","target","photoIndex","listing","user","canDoMagicSearch","showMagicSearchLimitModal","ReactDOM","searchType","photo","url","photos","amplitudeEventSpecifier","color","size","id","defaultMessage","galleries","initAll","isUnverified","onShareClick","onSaveClick","this","swipeListeners","domGalleries","document","querySelectorAll","i","length","galleryElement","galleryInitter","dataset","enableSwipeToOpen","attachSwipeListenerToOpenGallery","undefined","renderMagicSearchElement","gallerySelector","galleryElements","setAttribute","onclick","e","onThumbnailsClick","hashData","photoswipeParseHash","pid","gid","openPhotoSwipe","listener","swipeListener","element","leftSwipeHandler","rightSwipeHandler","addSwipeListener","push","parseThumbnailElements","el","thumbElements","childNodes","numNodes","items","figureEl","nodeType","nodeName","linkEl","children","getAttribute","split","item","originalUrl","src","w","h","title","innerHTML","msrc","html","unverifiedListingSlideHtml","window","event","preventDefault","eTarget","clickedListItem","closest","tagName","toUpperCase","index","clickedGallery","parentNode","numChildNodes","nodeIndex","cb","getMagicSearchElement","querySelector","pswpMagicSearchElement","renderMagicSearchBadge","hash","location","params","vars","pair","disableAnimation","fromURL","pswpElement","options","galleryUID","getThumbBoundsFn","idx","x","y","rect","getElementsByTagName","getBoundingClientRect","pageYScroll","pageYOffset","documentElement","scrollTop","left","top","width","bgOpacity","showAnimationDuration","hideAnimationDuration","loop","history","clickToCloseNonZoomable","closeOnScroll","shareEl","downloadEl","fullscreenEl","zoomEl","galleryPIDs","j","_","gallery","PhotoSwipe","PhotoSwipeUIDefault","listen","_isDown","preventObj","touchedElementClass","allowedClasses","prevent","shareButton","saveButton","_event","currIndex","getCurrentIndex","style","display","init","cleanUp","removeSwipeListener","define","pswp","framework","_fullscrenAPI","_controls","_captionContainer","_fakeCaptionContainer","_indexIndicator","_shareButton","_shareModal","_initalCloseOnScrollValue","_isIdle","_listen","_loadingIndicator","_loadingIndicatorHidden","_loadingIndicatorTimeout","_galleryHasOneSlide","_options","_blockControlsTap","_idleInterval","_idleTimer","ui","_overlayUIUpdated","_controlsVisible","_shareModalHidden","_defaultUIOptions","barsSize","bottom","closeElClasses","timeToIdle","timeToIdleOutside","loadingIndicatorDelay","addCaptionHTMLFn","captionEl","closeEl","counterEl","arrowEl","preloaderEl","tapToClose","tapToToggleControls","shareButtons","label","download","getImageURLForShare","currItem","getPageURLForShare","href","getTextForShare","indexIndicatorSep","fitControlsWidth","_onControlsTap","mouseUsed","_onIdleMouseMove","uiElement","found","clickedClass","srcElement","_uiElements","onTap","name","stopPropagation","tapDelay","features","isOldAndroid","_fitControlsInViewport","likelyTouchDevice","screen","_togglePswpClass","cName","add","_countNumItems","hasOneSlide","getNumItemsFn","_toggleShareModalClass","_toggleShareModal","removeClass","addClass","_updateShareURLs","_openWindowPopup","shout","hasAttribute","open","Math","round","shareButtonData","image_url","page_url","share_text","shareButtonOut","replace","encodeURIComponent","parseShareButtonOut","_hasCloseClass","hasClass","_idleIncrement","clearTimeout","setIdle","_onMouseLeaveWindow","from","relatedTarget","toElement","_setupFullscreenAPI","getFullscreenAPI","eventK","updateFullscreen","template","_setupLoadingIndicator","_toggleLoadingIndicator","loading","allowProgressiveImg","img","naturalWidth","hide","_applyNavBarGaps","gap","vGap","bars","createEl","appendChild","insertBefore","captionSize","clientHeight","_setupIdle","_setupHidingControlsDuringGestures","pinchControlsHidden","now","hideControls","showControls","option","onInit","toggleDesktopZoom","close","prev","next","isFullscreen","exit","enter","_setupUIElements","classAttr","loopThroughChildElements","sChildren","l","className","a","topBar","getChildByClass","extend","scrollWrap","update","point","initialZoomLevel","getZoomLevel","zoomTo","getDoubleTapZoom","isDown","t","type","test","onGlobalTap","onMouseOver","clearInterval","unbind","removeChild","isIdle","updateIndexIndicator","setScrollOffset","getScrollY","detail","pointerType","fitRatio","releasePoint","supportsFullscreen","d","exitFullscreen","mozCancelFullScreen","webkitExitFullscreen","msExitFullscreen","api","dE","tF","requestFullscreen","enterK","exitK","elementK","mozRequestFullScreen","webkitRequestFullscreen","msRequestFullscreen","Element","ALLOW_KEYBOARD_INPUT","Api","require","Curry","$$Promise","ActionCable","state","listingId","subscription","subscriptionConnectedCallback","prim","subscriptionReceivedDataHandler","responseSuccessHandler","responseErrorHandler","teardown","param","match","_0","unsubscribe","consumer","disconnect","isValidListingId","storedListingId","useOrInitializeSubscription","callback","TAG","_1","subscribeConsumer","connected","received","data","disconnected","requestAndHandleResyncResults","wait","syncOfflineListing","res","match$1","active","match$2","resyncStatus","isSyncError","subscribeToChannelAndSetHandlers","onReady","exports","exec","onComplete","onError","Rest","Json_decode","AwsImageHandlerV5","fromJson","json","field","string","$$Error","imageUrl","andThen","$$fetch","NAME","VAL","buildImageUrl","resolve","res$1","React","Colors","LineChart","ReactIntl","BookingCalculator","BookingCalculatorMessages","css","make","calculator","intl","useIntl","createElement","chart","formatMessage","rent","value","getRentWithDiscount","dailyRate","numberOfNights","discount","cashDiscount","success","serviceFees","getTotalFees","primary","taxes","gray","otherExpenses","OtherExpenses","getTotal","yellow","Cx","Layout","MoveTo","Belt_Option","Caml_option","_map","_revMap","idToJs","forwardRef","ref","wrapperClassName","wrapperClassName$1","cx","block","NoIdent","Inline","inlineBlock","Title","className$1","SubTitle","subTitle","Footer","footer","idFromJs","eq","x1","x2","scrollPageTo","offset","navbarMobileHeight","navbarHeight","mover","getElementById","move","action","role","onClick","postListingItemClickFromHc","Belt_Array","paragraphs","keep","paragraphWrapper","mapWithIndex","htmlText","paragraph","key","String","dangerouslySetInnerHTML","__html","Form","Button","Spinner","TextField","SlvEmailComparisonButton$TextFieldWithValidation","tmp","tmp$1","status","error","placeholder","textInput","onChange","onBlur","TextFieldWithValidation","SlvEmailComparisonButton$SlvEmailComparisonValidation","form","emailComparisonForm","onSubmit","submit","input","email","emailResult","$$event","_2","updateEmail","quoteButton","FormattedMessage","SlvEmailComparisonValidation","disabled","quoteLoading","centered","textBtnSpace","successMessage","Fragment","quoteMessage","errorText","quoteDisabled","wrapper","Gtag","Hooks","Listing","Amplitude","EmailForm","requestQuote","userFirstName","quoteId","dispatch","formCallbacks","Slv","emailMePriceComparison","Contextual","isVerified","useQuote","bookingStatus","checkin","checkout","initialState","useReducer","quoteSnapshotButtonClick","getEmailQuote","formCallbacks$1","email$1","userFirstName$1","getEmailQuoteWithoutDates","formCallbacks$2","reset","formCallbacks$3","notifyOnFailure","initialInput","useForm","output","firstName","useEffect","Route","SlvBooking","RailsContext","React$1","SlvSharePricingModal","booking","modal","domain","useMemo","scheme","getScheme","host","getHost","port","getPort","slvFullUrl","Input","toUrlParams","useState","setSharingUrl","checkIn","checkOut","generateShortenedUrl","response","result","fullShortenedUrl","slug","captureException","sharingUrl","$$Date","Booking","Currency","SlvQuote","ShareModal","SocialPlatform","SlvEmailComparisonButton","getText","text","getProviderPrices","providerStatus","avgPricePerNight","total","errorBlock","getQuoteId","quoteState","dates","valFromOption","Naive","year","month","prices","quote","Status","airbnbStatus","Quote","getProviderStatus","airbnbTotal","airbnbAvgPerNight","vrboStatus","vrboTotal","vrboAvgPerNight","bookingcomStatus","bookingcomTotal","bookingcomAvgPerNight","hicheeStatus","match$3","hicheeTotal","hicheeAvgPerNight","formatWithoutCents","currency","vrbpData","airbnb","vrbo","bookingcom","hichee","locationText","city","datesText","pricesText","sharedText","sharedShortText","exit$1","emptyDatesText","loadingBlock","separator","sendQuoteButton","quoteButtonWrapper","emailBlock","shareTitle","header","sharedUrl","onShare","platform","sharePricing","toString","onExited","onTextCopy","copyPricingQuote","onLinkCopy","copyPricingLink","copySectionTestId","Row","row","Col","col","Cell","cell","table","GoogleAd","userSubscription","slot","slvBottomDesktopAd","slvBottomDesktopAdWrapper","fullWidthResponsive","restrictTo","slvBottomMobileAd","slvBottomMobileAdWrapper","OopsVector","ModalDialog","onTryAgain","desktopPosition","mobilePosition","testId","oopsVector","message","successModalTitle","successModalMessage","reportModalTitle","reportModalMessage","alternativeLinkInputPlaceholder","emptyLink","otaLink","invalidLink","emailNotAllowed","Url","Label","JsxPPXReactSupport","AlternativeLinksMessages","AlternativeLinksModalForm","alternativeLinkDomId","AlternativeLinksModal$TextFieldWithValidation","forId","placement","addLinksInput","required","onClaimFailure","onClaimSuccess","helpEmail","getHelpEmail","link","notifyMe","postAlternativeBookingLinks","getLink","normalizeUrl","handleLinkUpdate","updateLink","values","chunks","br","tmp$2","linkResult","tmp$3","createElementWithKey","dismissSubmissionResult","visuallyDisabled","busy","submitLinkButton","initialLink","$$RegExp","Formality","Formality__ReactUpdate","linkValidator","otaDomainsRegex","validators_link","strategy","validate","validators","fieldsStatuses","collectionsStatuses","formStatus","submissionStatus","validateForm","notifyMeResult$1","match_0","match_0$1","match_0$2","notifyMeResult","isValidLink","isValidEmail","isOtaLink","initialFieldsStatuses","_input","initialCollectionsStatuses","memoizedInitialState","validateFieldOnBlurWithoutValidator","result$1","result$2","validateFieldOnBlurWithValidator","notifyOnSuccess","nextInput","validateFieldOnChangeWithoutValidator","nextInput$1","nextInput$2","validateFieldOnChangeWithValidator","map","error$1","error$2","updateNotifyMe","nextInputFn","nextValue","__x","blurNotifyMe","blurEmail","blurLink","exposeFieldResult","dirty","valid","submitting","dismissSubmissionError","mapSubmissionError","RadioButtons","alternativeBookingLinkId","updateReportLinkReason","reportLinkReason","control","checked","submitButton","postAlternativeBookingLinkReport","report","Glider","closeButton","Amenity","SlvBlock","TextControl","reducer","excerpt","groups","param$1","acc","amenities","countRegularAmenities","amenityIds","regular","amenitiesInAGroupCount","SlvAmenities$AmenitiesGroup","amenity","Icon","icon","AmenitiesGroup","SlvAmenities$PrioritizedAmenities","PrioritizedAmenities","SlvAmenities$Block","prioritizedAmenities","prioritized","regularAmenities","group","Group","Block","excerptSize","A","ListingVerificationWizard","ForbiddenVerificationModal","canBeVerified","getAvailableProviders","provider","isSome","forbiddenVerificationModal","useModal","messageContainer","AsNativeLink","verificationExplainerUrlWithListingParam","show","whyVerify","Modal","current","shown","hideModal","H3","Html","$$Image","BookingDates","HalfMoonIcon","VerifiedIcon","WarningCircleFullIcon","ListingPhotoPlaceholder","BookingCalculatorTooltip","SlvBookingCalculatorModal","BookingCalculatorLineChart","BookingCalculatorShareModal","listingPhoto","get","bookingCalculatorModal","bookingCalculatorShareModal","bookingCalculator","fromDefaults","hicheeQuote","fromQuote","ImageUrl","listingImage","fetchWidth","fetchHeight","alt","estimatedTotal","WithoutCents","margin","count","getNumberOfNights","nbsp","dot","badgeLoading","token","bookingCalculatorBadge","bookingCalculatorInfo","infoText","listingPreview","listingBadge","getFirstTitle","infoPanel","infoTitle","isVisuallyVerified","bookingCalculatorAction","button","onSave","onUpdate","absolute","BookingCalculatorForm","Vrbp","Sentry","WithTestId","SearchParams","SlvProviderRowQuote","SlvProviderRowSample","SlvProviderRowLoading","SlvProviderRowNoDates","SlvBookingDealsScss","SlvProviderRowNotListed","SlvProviderRowPickDates","SlvProviderRowFetchError","SlvProviderRowCloseMatches","SlvProviderRowUnavailableDates","SlvProviderRowLoadingCloseMatches","canExternalRedirect","showExternalRedirectLimitModal","isLongLoading","pickDates","onCloseMatchesFetch","closeMatches","showListingCloseMatchesModal","useManagerInfo","providerVrbp","useManagerInfo$1","displayBadges","badgeNegotiable","badgeCryptocurrency","badgeTrueDirectPrice","transferPageUrl","transferPageWithBookingData","adults","infants","pets","locale","countryOverride","contactHost","showInquiryModal","listings","getListingCloseMatches","Provider","getParams","error1","rootModule","subModulePath","fullPath","providerQuote","exit$2","exit$3","exit$4","providerQuote$1","match$4","match$5","providerQuote$2","match$6","exit$5","match$7","match$8","exit$6","closeMatchListings","closeMatchesRequested","match$9","match$10","exit$7","match$11","match$12","exit$8","bestDeal","toRspecClassname","bookingDeal","providerRow","ListingPreferencesBadges","justify","hasBadgeCryptocurrency","hasBadgeNegotiable","hasBadgeTrueDirectPrice","SlvProviderLabelText","providerDealButton","providerDeal","providerDealRow","providerDealData","providerLabel","providerPrice","pricesNotFoundText","Control","MagicSearch","OptionalUser","SlvImageContext","SlvTransferLink","ExternalLinkIcon","ScreenSizeContext","MessageRoundedIcon","providerButtonTestId","SlvProviderRowDealButton$DealButtonText","providerName","DealButtonText","SlvProviderRowDealButton$DealButton","Unstyled","rel","referrer","follow","providerLabelDeal","amplitudeActionIsNewUser","handleTransferEvent","toView","DealButton","SlvProviderRowDealButton$DealButtonRestricted","showFeatureLimitModal","DealButtonRestricted","SlvProviderRowDealButton$DealButtonWithLogin","amplitudeActionNotLoggedIn","logIn","DealButtonWithLogin","NoMatchesButton","CloseMatchesButton","listingVerified","closeMatchesLength","SlvProviderRowDealButton$ContactHostButton","ContactHostButton","SlvProviderRowDealButton$ContactManagerButton","useContext","Context","Tooltip","ContactManagerButton","SlvProviderRowDealButton$BookDirectButton","shouldAuthenticate","bookDirectNotLoggedIn","isNewUser","bookDirectNewAccount","BookDirectButton","style$1","hostUrl","managerWebsiteUrl","hasDirect","hostBookDirect","bookDirect","manager","ResponsiveDialog","SlvProviderLabel","SlvProviderRowBadges","SlvProviderRowDealButton","providerRowWithBadges","side","modalDealButton","WarningBadge","ctx","borderRadiusPlacement","warning","inline","showMessageModal","warningProviderRow","providerLabelDisabled","Span","getAvgNightlyPriceForProvider","averageNightlyPrices","averagePriceForProvider","price","fontWeight","PriceBreakdownPopup","TooltipQuestionIcon","SlvProviderRowSavingsBadge","isBestDeal","comparingTo","BestDeal","isBestDealForProvider","getBestDealRowStyle","hostType","bestDealRowOta","bestDealRowPropertyManager","bestDealRowVerifiedHost","shouldShowSavingsBadge","isBestDeal$1","getHostType","legend","totalRate","turnoverFeesAndTaxes","providerFee","isVerifiedListing","pricePerNight","bestPriceSkipped","controlClassName","customControlStyle","Skeleton","height","SlvProviderRowSavingsBadge$SavingsText","comparingDeal","savingsAmount","savings","desktopValues","percentage","providers","join","mobileValues","savingsContainer","SavingsText","P","MagicStickIcon","SlvProviderRowUnverifiedHost$EstimatePricePopup","estimatePriceTooltipWrapper","EstimatePricePopup","SlvProviderRowUnverifiedHost$EstimatedBookDirectPickDates","EstimatedBookDirectPickDates","SlvProviderRowUnverifiedHost$EstimateAveragePrice","averagePrice","EstimateAveragePrice","hichee$1","hichee$2","directPrice","hicheeAverageNightlyPrice","perNight","hicheeAverageNightlyPrice$1","bestDealProvider","deal","sampleMode","estBookDirectDeal","unverifiedHostDeal","unverifiedHostDealRow","estBookDirectData","estBookDirectName","hosts","estBookDirectPrice","H6","VrboIcon","AirbnbIcon","HicheeIcon","AlertBanner","SlvProviderRow","PickDatesOverlay","BookingcomFullIcon","ListingCloseMatches","SlvBookingDealsForm","SmoothscrollPolyfill","SlvProviderRowUnverifiedHost","loginAndExitSampleMode","canExternalRedirectData","pickNextAvailable","closeMatchesMap","longLoadingStatus","shouldUseManagerInfo","setIsContinuingWithoutDates","handleContinueWithoutDatesClick","useCallback","polyfill","hasNextAvailableDates","nextAvailableDates","isShowingPickDatesOverlay","noDatesSelectedForBooking","overlayWrapper","continueWithoutDates","overlay","totalNightsText","findByProvider","ExternalRedirect","canExternalRedirectForProvider","priceComparison","priceTagline","providersList","LinkIcon","Accordion","AlternativeLinksModal","AlternativeLinksReportModal","AlternativeLinksFailureModal","AlternativeLinksSuccessModal","InstructionSection","instructionSection","linksSectionText","warningMessage","SlvBookingDealsAlternativeLinks$AlternativeLink","onLinkReport","fullLinkContainer","fullLink","getAlternativeBookingLink","removeHttpProtocol","reportLink","AlternativeLink","LoadingDirectPrice","priceWrapper","DirectPrice","nights","bookPriceValue","alternativeBookingLinks","addAlternativeLinkModal","alternativeLinksSuccessModal","reportAlternativeLinksModal","alternativeLinkReportSuccessModal","alternativeLinksFailureModal","setAlternativeBookingLinks","setExpanded","setReportedLinkId","showAddAlternativeLinksModal","authenticateWithCallback","trigger","hasAlternativeBookingLinks","headerId","contentId","onToggle","getAlternativeBookingLinks","links","expanded","linkId","addMoreLinks","titleAndLinkWrapper","titleText","bodyText","Toast","ReactRef","RcTooltip","GuestsField","DateRangePicker","NotificationTooltip","DateRangePickerMessages","SlvBookingDealsFormModuleScss","DateRangePickerModuleScss","SlvBookingDealsForm$CalendarError","CalendarError","setHasCalendarError","hasCalendarError","calendarErrorTooltip","useNotificationTooltip","notifications","notification","clearNotification","isCheckOutDay","day","mapWithDefault","isSameDay","isSelected","isCheckInDay","isDayInBetween","isAfter","isBefore","isProviderDayFirstEnabled","prevDay","addDays","isDayInPastRelativeToListingTimezone","currentDate","Calendar","isProviderDayAvailableForStayOrCheckOut","calendar","days","prevProviderDay","providerByTypeForCalendarDaysDate","providerDay","availableForStay","isProviderDayLastEnabled","isCheckInBorder","datePickerMode","hoveredDay","isCheckOutBorder","isDisabledSelection","calendarDays","checkOutDay","isCheckOut","canCheckInOnHichee","canCheckInOnProviderDay","canCheckInOnAirbnb","canCheckInOnVrbo","canCheckInOnBookingcom","checkInDay","isCheckIn","isStayValid","isHoverRange","isBetween","isDayDisabled","isInsideAvailableStay","isHicheeDayEnabled","isProviderDayAvailableForCheckIn","isAirbnbDayEnabled","isVrboDayEnabled","isBookingcomDayEnabled","isDayEnabled","isStayAvailable","checkIn$1","isDayBeforeCheckIn","isDayFirstEnabled","isHicheeDayFirstEnabled","isAirbnbDayFirstEnabled","isVrboDayFirstEnabled","isBookingcomDayFirstEnabled","presentProvidersFirstEnabled","isFirstEnabled","isDayLastEnabled","checkInDate","getWithDefault","isHicheeDayLastEnabled","isAirbnbDayLastEnabled","isVrboDayLastEnabled","isBookingcomDayLastEnabled","presentProvidersLastEnabled","isProviderStayAvailable","isLastEnabled","renderDayInCalendar","date","dayOfMonth","minStayValidation","validateMinStayAndAviability","renderDayWrapper","calendarDayWrapper","calendarDayDate","airbnbEnabledStrip","bookingcomEnabledStrip","hicheeEnabledStrip","vrboEnabledStrip","minStay","destroyTooltipOnHide","prefixCls","container","datesFieldWrapper","neighbors","calPlacement","calModifiers","hd","tl","calBusy","calDisabled","calError","checkOutDate","initialMonth","checkInPlaceholder","defaultPlaceholder","checkOutPlaceholder","onCheckinDayClick","updateCheckIn","focus","checkInFieldRef","onCheckoutDayClick","updateCheckOut","onDisabledCalClick","onMonthChange","updateBookingCalendarOpenedDate","fetchCalendarDays","onDatesClear","clearDates","onCalendarShow","date$1","startOfMonth","onCalendarHide","updateDatePickerMode","updateHoveredDay","renderDay","shouldShowVrbo","shouldShowAirbnb","shouldShowBookingcom","inputLabelClassName","inputLabel","twoMonthsPicker","tooltip","theme","withCloseButton","guestsFieldWrapper","houseRuleChildrenAllowed","houseRuleInfantsAllowed","houseRulePetsAllowed","popoverPlacement","onEditDone","updateGuestsInUrl","guestsFormInput","isDisabled","onDisabledClick","Host","Avatar","EstimatedBookDirectPrice","owner","hostAvatar","Manager","spinnerSize","hostName","User","getFullName","SlvBookingInquiryModalForm","SlvBookingInquiryModalSuccessMessage","inquiryStatus","hasNoProviderQuote","SlvBookingInquiryModalDealsOnOtherSite$ProviderRow","noProvider","providerDataPrices","providerDataPrice","providerDataPriceNotIncludedNote","fee","formatWithCents","providerDataSpinner","providerDataFadedLabel","content","providerDataTooltip","providerRowNoPrice","providerIcon","providerData","horizontalLine","ProviderRow","SlvBookingInquiryModalDealsOnOtherSite$ProviderRowNotListed","faded","ProviderRowNotListed","SlvBookingInquiryModalDealsOnOtherSite$Block","Opt","Alert","Checkbox","TextArea","GuestsIcon","PhoneInput","CalendarWithClockIcon","SlvBookingInquiryModalQuote","SlvBookingSendInquiryButton","SlvBookingModalFormModuleScss","SlvBookingInquiryModalDealsOnOtherSite","SlvBookingModalUnverifiedListingNotification","dateTemplate","newUser","results","failure","lastName","tmp$4","tmp$5","tmp$6","introduceNote","bold","flexGrid","updateNewUserFirstName","updateNewUserLastName","updateNewUserEmail","phoneInput","phone","updateNewUserPhone","tmp$7","level","tmp$8","bookingQuote","tmp$9","Panels","PanelsTitleWithSidePanelContent","sidePanelContent","sidePanelTitle","sidePanelClassName","MainPanel","submitInquiry","secondaryTitle","rows","comment","messageInput","updateComment","fieldsRow","checkboxWrapper","flexibleDates","flexibleDatesCheckbox","updateFlexibleDates","checkboxLabel","buttonText","confirmButton","footerNote","termsOfService","privacyPolicy","SidePanel","sidePanel","details","detailsRow","detailsCol","calendarIcon","detailsValue","guestsInfo","priceDescription","attention","initialRulesQuantity","userFieldDomId","quoteRow","green","quoteMoney","deposit","quoteLabel","times","iconTooltip","quoteTotal","BulbIcon","MessageSentIcon","mainPanel","modalBody","messageSentIcon","messageHostReply","contactHostMessage","newUserMessage","closeWindowButton","bulbIcon","sidePanelMessage","quot","SlvBookingMessageModalForm","SlvBookingMessageModalSuccessMessage","messageStatus","conversationId","DateField","_state","checkInField","useRef","checkOutField","initialDate","calNote","minimumStay","isCheckinDayDisabled","isCheckoutDayDisabled","x$1","notifyGtmOnMessageModalFormInteraction","match$13","match$14","match$15","match$16","match$17","match$18","match$19","match$20","match$21","PanelsTitle","submitMessage","detailsFieldsRow","dateFields","onDayClick","isNone","guestsField","messageSidePanel","conversation","UnverifiedListingIcon","iconWrapper","unverifiedListingIcon","messageTitle","messageDescription","primaryButton","SlvHtmlText","SlvDescription$Block","description","setShowDescription","descriptionContainer","paragraphEnd","collapsedDescription","Hr","$$Text","SlvTable","BedroomIcon","BathroomIcon","RoomTypeIcon","SlvDescription","SlvDetailsModuleScss","GuestsWithClothesHangerIcon","maxGuests","bedrooms","x$2","bathrooms","rentalPermitLicense","iconwithlabel","RoomType","roomType","divider","Ellipsis","FaqVector","faqContainer","vector","textContent","contentPara","faq","Bool","Caml_obj","AskAiOptions","SlvListingLocations","SlvNavbarSaveListing","SlvNavbarShareListing","SlvHeaderModuleScss","RatingWithReviewsCounter","SlvNavbarFeedbackListing","showListingFeedbackReportModal","reportListingToken","getToken","search","fromString","equal","providerRating","providersRatings","metaRating","onRatingClick","headerContainer","titleContainer","headerAside","context","showShareListingModal","showSaveListingToListModal","SlvPhoto","ArrowLeft","HostBadge","ArrowRight","ImageUtils","SlvGallery","SlvNoPhotos","DotIndicator","ListingPhoto","SlvHeroModuleScss","CheckAwsImageHandlerV5Status","resyncListing","currentPhoto","preloadPhotos","photosLoadingStep","forEachWithIndex","preload","startLoadingPhotos","photosCount","setBrokenPhotoDetected","brokenPhotoDetected","info","reloadPhotos","type_","actionsWrapper","heroIconsWrapper","outerContainer","imageContainer","isManagedByCurrentUser","userContext","isFirstPhoto","Index","toInt","hidden","slvPhoto","imageClassName","image","fetchPriority","onLoad","loadingPhotos","detectBrokenPhoto","showPhoto","removePhoto","withLoader","magicSearchContainer","currentPhotoIndex","dotGap","numberOfPhotos","onDotClick","arrowContainer","NoPhotoIcon","Js_option","PhoneNumber","SlvClickableItem","PropertyManagerIcon","getAvatarSize","SlvHostKnown$HostPreview","getAboutMeDetails","nameAndTotalListingsContainer","getUrl","hostMapView","getId","listingsCount","getActiveListingsCount","aboutMe","HostPreview","SlvHostKnown$ContactHostText","ContactHostText","SlvHostKnown$CallHost","contactTextWrapper","contactWidgetPhoneContainer","orText","CallHost","SlvHostKnown$LogInToCallHost","logInUser","showContactPhoneLink","LogInToCallHost","SlvHostKnown$HostInfo","ownerPhoneNumber","userId","hostPhoneNumber","contactPhone","messageHostToken","editAccount","ownerId","hasPersonalWebsiteUrl","hostPersonalWebsiteUrl","hasContactPhone","avatarContainer","avatarSize","userAvatar","verifiedIcon","contactWidget","contactWidgetButtons","HostInfo","SlvHostKnown$ManagerInfo","websiteUrl","aboutHostTitle","ManagerInfo","userAvatarSizeLargeScreen","userAvatarSizeSmallScreen","Belt_MapString","hasListings","addCloseMatches","set","hasListingsForProvider","getListings","ListingsCarousel","listingDimensions","listingMargin","listingWidth","imageWidth","imageHeight","buildListingLinkUrl","htmlUrl","getQuery","modalContent","listingsLoading","buildListingLink","onListingClick","listingTile","Tile","showReviews","Pervasives","Reason","failwith","IntercomMessengerJs","contactUs","chatLink","showIntercom","errorMessage","onBack","apos","listingFeedbackReport","autoFocus","detailsTextArea","detailsTextAreaBusy","inputClassName","detailsInput","titleClassName","detailsTitle","detailsTitleBusy","buttonsContainer","detailsButtonsContainer","backButton","listingFeedbackReportDomId","ListingFeedbackReport","ListingFeedbackReportReason","ListingFeedbackReportDetails","ListingFeedbackReportSuccessMessage","reason","init$1","postListingFeedbackReport","reportType","onNext","listingFeedbackReportReason","ListingFeedbackReportContactUs","reasonButton","buttonsDivider","nextButtonContainer","MessegeSend","successMsgContainer","successMsgParagraphsContainer","successMsgTitle","successMsgDetails","closeButtonContainer","PinIcon","ReactSchemaorg","sendClickedLocationEvent","redirectedToBLV","itemListElement","fullLocationUrl","fullLocationListings","isDefaultInput","partialLocationUrl","partialLocationListings","countryLocationUrl","countryLocationListings","position","locationLink","mdot","partialLocationUrl$1","countryLocationUrl$1","breadcrumbItems","JsonLd","Style","Carousel","ListingLink","ListingsCarouselItem","withScrollbar","visibleListingsCount","scrollingTolerance","scrollingDuration","showTitleWithReview","showBestAveragePrice","showProviderPrices","showCapacityDetails","controlsStyle","nextControlClassName","prevControlClassName","listingClassName","listingLinkClassName","listingLinkClassName$1","listingClassName$1","prevControlClassName$1","nextControlClassName$1","controlsStyle$1","showCapacityDetails$1","showReviews$1","showProviderPrices$1","showBestAveragePrice$1","showTitleWithReview$1","scrollingDuration$1","scrollingTolerance$1","visibleListingsCount$1","withScrollbar$1","scrollingParams","step","duration","tolerance","datesPeriod","comesFrom","renderBlock","pxOfInt","compareEquality","item1","item2","prevControlTitle","prevControlTestId","containerClassName","nextControlTestId","nextControlTitle","controlStyle","visibleItemsCount","RatingValue","ListingsCarouselItemPrices","ListingsCarouselItemCapacity","ListingsCarouselItemBestPrice","listingRef","isVisible","useIsVisibleOnce","fullPrices","FullPricesState","fromFullVrbpData","DatesPeriod","pricesTotals","totalPricesFromState","providersAvailability","getProvidersAvailability","pricesCalculationsBasis","PricesCalculationBasis","getPricesCalculationBasisFromState","coverPhoto","ratings","rating","listingTitleWrapper","listingTitleText","listingTitleReviewsCounter","valueClassName","listingTitleReviewsCounterValue","ratings$1","Optional","imageWrapper","imageAltText","decoding","hostBadge","hasPropertyManager","infoWithBestAveragePrice","listingOwner","ListingDimensions","ListingsCarouselItemBestPrice$Price","priceRelativeContainer","priceContainer","priceSuffix","Price","bestAveragePriceProvider","TextWithCircle","beds","listingCapacityDetailsText","textWithCircle","circleClassName","circle","HouseWithChatIcon","priceBasis","totalPrice","priceValue","priceLabel","infoPrice","infoPriceProvider","ListingsCarouselItemPrice","infoPricesWrapper","GoogleMap","GoogleMapsEmbed","SlvLocation$GoogleMaps","center","lat","lng","zoom","Marker","shape","radius","googleMapsKey","GoogleMaps","getGoogleMapsKey","triggerToLoadMap","shouldRenderGoogleMap","getFeatureFlags","useSlvEmbededGoogleMaps","apiKey","titleWrapper","zoomLevel","IconControl","FeedbackIcon","feedback","Messages","component","HeartIcon","HeartFilledIcon","save","saved","savedToTripList","showModal","saveButtonClick","setIconColor","iconTestId","ExportIcon","share","mobileListingDimensions","getNearbyAndSimilarListings","subtitle","similarListingsMapUrl","getAppDomain","seeAllLink","redirectedToSimilarListingsPage","rightArrowIcon","nearbyAndSimilarListings","listingsCarouselContainer","listingsCarouselContainerWithControls","listingLink","prevControlBtn","nextControlBtn","Fn","WithDataProps","notifyGaOnGalleryOpened","once","galleryOpened","enableSwipeToOpen$1","notifyGaOnGalleryOpened$1","imageClassName$1","children$1","fetchPriority$1","alt$1","fullHeight","imageDefaultDimensions","fullWidth","fullUrl","StarIcon","SlvReviewsModuleScss","createMarkup","SlvReviews$AiReviewsSummary","reviewsSummary","AiReviewsSummary","SlvReviews$HicheeAverageRatingExplainerPopup","hicheeAverageRatingExplainerPopup","HicheeAverageRatingExplainerPopup","SlvReviews$ReviewButton","reviewButton","ReviewButton","SlvReviews$ReviewButtonRestricted","ReviewButtonRestricted","SlvReviews$ReviewButtonWithLogin","ReviewButtonWithLogin","SlvReviews$ProviderRow","verified","reviews","providerRowWrapper","providerAndRatingWrapper","logoAndReviewsWrapper","providerNameAndLinkWrapper","reviewsCount","reviewsCountStyle","readAirbnb","readBookingcom","readVrbo","reviewsContainer","providersRatingsWrapper","hicheeRatingWrapper","starIconWrapper","fill","averageRatingWithTooltip","averageRating","withStarIcon","tooltipWithDot","aggregatedHicheeScore","Time","SlvRules$Block","checkInHour","checkInHour$1","formatHourAmPm","rule","checkOutHour","checkOutHour$1","customHouseRules","rules","specifiedSystemHouseRulesWordings","houseRuleSmokingAllowed","houseRulePartiesAllowed","buttonAndLogoContainer","blog","ShakaCodeDataAd","ads","setAdIndex","setMouseHovering","mouseHovering","intervalId","adIndex","ad","onMouseEnter","onMouseLeave","adRotationIntervalMs","SlvAds","SlvFaq","SlvRules","SlvHeader","SlvListing","SlvReviews","SlvLocation","SlvAmenities","SlvHostKnown","HostBadgeInfo","ListingTitles","SlvUpperBlock","SlvSaveYourMoney","SlvSideDesktopAd","SlvModuleScss","FeatureLimitModal","SlvAreYouTheOwner","SubscriptionModal","ExtensionPromoCard","TripListsPromoCard","SlvBookingInquiryModal","SlvBookingMessageModal","ListingCloseMatchesModal","SlvDetailsAndDescription","SlvSharePricingContainer","SlvBookingCalculatorBadge","ListingFeedbackReportModal","SaveListingToTripListModal","SlvNearbyAndSimilarListings","SlvBookingDealsAlternativeLinks","SlvBookingOwnListingWarningModal","Photoswipe","$$History","FooterScss","footerCss","closeMatchesModalProvider","$$default","plans","wasLoggedOut","useListing","updateListingSavedStatus","storeListingInHistory","useBooking","sharePricingModal","listingFeedbackReportModal","listingCloseMatchesModal","saveListingToTripListModal","tripListCreateLimitModal","tripListAddListingLimitModal","listingExternalRedirectLimitModal","magicSearchLimitModal","subscriptionModal","initialCanExternalRedirectData","getListingCanExternalRedirect","available","visuallyVerifiedListing","showSubscriptionModal","scrollTo","scrollX","scrollY","externalRedirectLimitReached","limits","blocksContainer","mainBlock","mainCol","titleAndHostBadgeInfoWrapper","showSlvBookingCalculator","onSaveSuccess","onTripListCreateLimitError","onTripListAddListingLimitError","ListingExternalRedirect","onConfirm","TripListCreate","TripListAddListing","onSubscriptionUpdate","checkoutState","onSuccessModalClose","isProviderAvailable","Qs","Qs$1","Sbjs","Belt_Id","Belt_Int","Belt_Set","Debounce","Belt_List","Belt_Result","Json_encode","QuoteWebSockets","Caml_splice_call","NonSecure","CalendarsUpdateWebSockets","DifferenceInCalendarMonths","bannerError","ValidationError","monthFromDate","cmp","compare","Comparable","MakeComparable","mergeLoadedMonths","quantity","months","startDate","Date","months$1","addMonths","mergeCalendarDays","dict","onDate","calendarDayByDate","providerString","undefined_to_opt","availableForCheckIn","isProviderDayAvailableForStay","iteration","daysDiff","differenceInCalendarDays","isProviderStayValid","providerCheckIn","differenceInDays","isHicheeStayValid","isAirbnbStayValid","isVrboStayValid","isBookingcomStayValid","calDataQuantity","calDataCheckIn","calDataCheckOut","detectendCalendarsRefetchRange","datepickerOpenedDate","availabilityCalendarStartDate","possibleEdgeDates","$$Set","isEmpty","minimum","maximum","yearFromDate","Month","isHicheeStayAvailable","isAirbnbStayAvailable","isVrboStayAvailable","isBookingcomStayAvailable","locale$1","detectedCurrency","origin","sharedHiChee","isShareLinkOpt","isShareLink","urlParams","toJson","stringify","object_","fromUrlParams","parseDate","dateName","optional","nullable","isValid","parsedCheckIn","parsedCheckOut","isCheckInBeforeCheckOut","validateDates","checkOut$1","isHicheStayAvailable","hicheeCheckInDay","airbnbCheckInDay","vrboCheckInDay","bookingcomCheckInDay","checkInDaysForAvailableProviders","minPossibleStays","spliceApply","min","validateGuests","validateWithoutMinimumStay","fixInvalidState","validState","dataFixed","syncToUrl","replaceState","Defaults","UrlKeys","LoadSlvOrigins","Validation","empty","validateFirstName","validateLastName","validateEmail","validateFields","validate$1","NewUser","validateMessage","MessageInput","notifyOnBookingWidgetInteraction","bookingWidgetInteraction","notifyOnInquiryModalShown","inquiryModalShown","notifyOnInquiryModalFormInteraction","inquiryModalFormInteraction","notifyOnInquiryModalFormSubmission","inquiryModalFormSubmitted","notifyOnMessageModalShown","messageModalShown","notifyOnMessageModalFormInteraction","messageModalFormInteraction","notifyOnMessageModalFormSubmission","messageModalFormSubmitted","notifyOnPhoneShow","phoneShown","Gtag$1","trackContactHost","Amplitude$1","petsNotAllowed","childrenNotAllowed","infantsNotAllowed","$$Notification","longLoadingTimeoutValue","BannerError","sampleModeOpt","fetchQuote","calendarUpdateAlreadyRequested","bookingCalendarOpenedDate","availabilityCalendarOpenedDate","loadingToastId","quoteBackgroundFetchingStatus","init$2","init$3","isPast","calDataQuantity$1","getCalendarMonthsForGuest","range","n","init$4","init$5","userStatus","messageStatus$1","payload","sbjs","postTripFromHc","getExn","payload$1","navbar","init$6","init$7","timeoutId","newTimeoutId","toastId","loadingAfterError","dismiss","init$8","_3","init$9","init$10","init$11","newMonths","newDays","validationResult","onPart","token$1","token$p","token$2","token$p$1","validationResult$1","shouldSkipMinStayValidation","input$1","input$2","validationResult$2","init$12","init$13","init$14","authenticate","input$3","userStatus$1","match$23","match$24","match$25","match$26","inquiryStatus$1","fromSlv","postMessageFromHc","init$15","navbar$1","init$16","updateNotifications","query","parseWithOptions","exn","calDataYear","calDataMonth","calendarMonths","stateWithFixedInfo","updatedInputState","oldNotifications","has","updateCheckInAndCheckOut","notifyGtmOnPhoneShow","updateAvailabilityCalendarOpenedDate","SyncListingWebSockets","mounted","newrecord","obj_dup","listingRelationshipType","alertWhenVerified","cb$1","newrecord$1","cb$2","listing$1","updateListing","getContextualListing","updateAlertWhenVerifiedStatus","UserSubscription","authenticateNewUser","user$1","nullable_to_opt","plansObj","Plans","SlvHero","SlvBookingDeals","upperBlockContainer","heroContainer","mobileTitle","bookingDealsContainer","fn","called","contents","Sourcebuster","firstSourceType","first","typ","firstSourceUtmSource","firstSourceUtmMedium","mdm","firstSourceUtmCampaign","firstSourceUtmContent","cnt","firstSourceUtmTerm","trm","firstSourceEntrancePoint","ep","firstSourceReferer","rf","currentSourceType","currentSourceUtmSource","currentSourceUtmMedium","currentSourceUtmCampaign","currentSourceUtmContent","currentSourceUtmTerm","currentSourceEntrancePoint","currentSourceReferer","totalVisitsPriorConversion","udata","vst","hour","TVIcon","GymIcon","DeskIcon","HeatIcon","IronIcon","PetsIcon","PoolIcon","WifiIcon","DrawerIcon","HotTubIcon","CouplesIcon","KitchenIcon","LaundryIcon","ParkingIcon","ShampooIcon","ElevatorIcon","FirstAidIcon","BigGroupsIcon","BreakfastIcon","FirePlaceIcon","HairDryerIcon","EssentialsIcon","SafetyCardIcon","WheelchairIcon","BedroomLockIcon","SmokeDetectorIcon","SoloAdventuresIcon","AirConditioningIcon","FamiliesWithKidsIcon","FireExtinguisherIcon","BusinessTravelersIcon","all","ids","danger","Level","className$2","alert","PetIcon","CloseIcon","FamilyIcon","WarningIcon","MoonNightIcon","TeddyBearIcon","BannerMessages","AlertBannerScss","AlertBanner$BannerIcon","BannerIcon","setError","bannerContainer","tabIndex","textBlock","PickNextAvailableDates","validationError","guests","darkOrange","turquoise","blue","backgroundColor","colorCodeTitle","shouldStopEventPropagation","shouldStopEventPropagation$1","strong","availableProviders","contactSupportText","Providers","toVrbp","getGoogleMapsUrl","withQuery","addIframeAttributes","border","setHoveredSection","hoveredSection","totalValue","startOfNextSection","xValueOfLabelGroup","yValueOfLabelGroup","currentIdx","viewBox","section","sectionLength","createElementVariadicWithKey","onMouseOut","stroke","strokeWidth","y1","y2","transform","transitionable","cy","r","fontFamily","fontStyle","fontSize","totalLineWidth","lineHeight","yValueOfLine","marginAroundLine","initialXForLabelGroup","initialYForLabelGroup","incrementInLabelGroupX","incrementInLabelGroupY","ListingLinkScss","openInNewTab","listingDeleted","openInNewTab$1","makeJs","Js_exn","raiseError","PhoneJsx","JsComponent","calendarIconWrapper","continueWrapper","faded$1","Portal","toClassName","tooltipPrimary","tooltipGeneral","Kind","toTooltipClassName","positionTop","positionBottom","positionLeft","positionRight","Side","toTriangleClassName","triangleBottom","triangleTop","triangleRight","triangleLeft","showOnHover","kind","hideWhen","contentTitle","hideWhen$1","kind$1","showOnHover$1","tooltipParentRef","tooltipRef","parent","tooltipParentElement","right","getTooltipPositionAdjustment","tooltipLeftCoord","tooltipElement","getTooltipLeftCoord","getStyle","opacity","client","clientWidth","triangleDelta","leftTooltipDelta","pxOfFloat","triggerStyle","onFocus","tooltipHeader","Position","Heading","fontWeight$1","defaultFontWeight","defaultSize","getFontWeightClass","BorderRadiusPlacement","borderRadiusPlacement$1","cloneElement","Js_dict","Popover","ColorCoding","ReactDayPicker","firstEnabled","lastEnabled","secondarySelected","tertiarySelected","airbnbEnabled","airbnbFirstEnabled","airbnbLastEnabled","bookingcomEnabled","bookingcomFirstEnabled","bookingcomLastEnabled","hicheeEnabled","hicheeFirstEnabled","hicheeLastEnabled","vrboEnabled","vrboFirstEnabled","vrboLastEnabled","Modifier","dateFieldInputWrapperClassName","calModifiers$1","calBusy$1","shouldShowVrbo$1","shouldShowAirbnb$1","shouldShowBookingcom$1","inputClassName$1","popover","removeFocus","blur","note","clearButton","addon","dateFieldInputWrapper","readOnly","Body","withTriangle","onShow","onHide","numberOfMonths","showOutsideDays","enableOutsideDaysClick","modifiers","fromList","selected","beforeDate","classNames","onDayTouchEnd","bg","colorCodingWrapper","availabilityLabel","Component","make$1","PhoneInputJsx","Size","toJs","wide","PhoneInputJs","title$1","color$1","defaultColor","fillRule","mapColor","strokeLinecap","strokeLinejoin","clipRule","strokeMiterlimit","__esModule","Svg","cdnEndpointUrl","viewBoxWidth","viewBoxHeight","sagaMiddleware","createSagaMiddleware","rootSaga","withLayoutSagas","initStore","createStore","combineReducers","withLayoutReducers","withLayoutState","withLayoutMiddlewares","ReduxDataLayer","connect","createStructuredSelector","userSelector","authenticationSucceeded","amplitudeParams","openLogInModalWithCallback","toJS","store","run","alerts","impersonatedUser","railsContext","ReactOnRails","ListingsShow"],"sourceRoot":""}