@hhgtech/hhg-components 1.27.133 → 1.27.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +24 -24
- package/build/cache/index.d.ts +1 -1
- package/build/cache.js +1 -1
- package/build/care/api/utils.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/index.d.ts +3 -3
- package/build/care/components/organisms/bookingSearchBar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/locationResults/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBar/mobileFakeInput/index.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/reducer.d.ts +3 -3
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBar/searchInputs/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBar/searchResults/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBar/searchResults/mockData.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/useSearchBarApi.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +4 -4
- package/build/care/components/organisms/bookingSearchBarV2/reducer.d.ts +3 -3
- package/build/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +3 -3
- package/build/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +3 -3
- package/build/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +2 -2
- package/build/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +3 -3
- package/build/care/index.d.ts +4 -4
- package/build/care/interfaces/constants.d.ts +2 -2
- package/build/care/interfaces/types.d.ts +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/authorBadge/index.d.ts +1 -1
- package/build/components/atoms/badge/index.styled.d.ts +1 -1
- package/build/components/atoms/borderHeading/index.d.ts +1 -1
- package/build/components/atoms/displayWrapper/index.d.ts +1 -1
- package/build/components/atoms/divider/index.styled.d.ts +1 -1
- package/build/components/atoms/drawer/helpers.d.ts +1 -1
- package/build/components/atoms/drawer/index.styled.d.ts +1 -1
- package/build/components/atoms/dropdownMB/index.d.ts +1 -1
- package/build/components/atoms/genderOptionControl/index.d.ts +1 -1
- package/build/components/atoms/icons/ACharacter.d.ts +1 -1
- package/build/components/atoms/icons/Activities.d.ts +1 -1
- package/build/components/atoms/icons/ArrowDown.d.ts +1 -1
- package/build/components/atoms/icons/ArrowLeft.d.ts +1 -1
- package/build/components/atoms/icons/ArrowRight.d.ts +1 -1
- package/build/components/atoms/icons/ArrowRightTail.d.ts +1 -1
- package/build/components/atoms/icons/Article.d.ts +1 -1
- package/build/components/atoms/icons/Ask.d.ts +1 -1
- package/build/components/atoms/icons/BabyBoyMB.d.ts +1 -1
- package/build/components/atoms/icons/BabyGirlMB.d.ts +1 -1
- package/build/components/atoms/icons/BarChart.d.ts +1 -1
- package/build/components/atoms/icons/Booking.d.ts +1 -1
- package/build/components/atoms/icons/Bookmark.d.ts +1 -1
- package/build/components/atoms/icons/Boy.d.ts +1 -1
- package/build/components/atoms/icons/Business.d.ts +1 -1
- package/build/components/atoms/icons/Calendar.d.ts +1 -1
- package/build/components/atoms/icons/CalendarMB.d.ts +1 -1
- package/build/components/atoms/icons/CameraCircle.d.ts +1 -1
- package/build/components/atoms/icons/Chat.d.ts +1 -1
- package/build/components/atoms/icons/Check.d.ts +1 -1
- package/build/components/atoms/icons/CheckActiveMB.d.ts +1 -1
- package/build/components/atoms/icons/CircleBorder.d.ts +1 -1
- package/build/components/atoms/icons/Clickable.d.ts +1 -1
- package/build/components/atoms/icons/ClinicPin.d.ts +1 -1
- package/build/components/atoms/icons/Close.d.ts +1 -1
- package/build/components/atoms/icons/Comment.d.ts +1 -1
- package/build/components/atoms/icons/Community.d.ts +1 -1
- package/build/components/atoms/icons/CrossLogo.d.ts +1 -1
- package/build/components/atoms/icons/Current.d.ts +1 -1
- package/build/components/atoms/icons/EditSpecial.d.ts +1 -1
- package/build/components/atoms/icons/Endorse.d.ts +1 -1
- package/build/components/atoms/icons/Envelop.d.ts +1 -1
- package/build/components/atoms/icons/Eye.d.ts +1 -1
- package/build/components/atoms/icons/Family.d.ts +1 -1
- package/build/components/atoms/icons/Font.d.ts +1 -1
- package/build/components/atoms/icons/FullScreen.d.ts +1 -1
- package/build/components/atoms/icons/GenderBoy.d.ts +1 -1
- package/build/components/atoms/icons/GenderChooseBoy.d.ts +1 -1
- package/build/components/atoms/icons/GenderChooseGirl.d.ts +1 -1
- package/build/components/atoms/icons/GenderGirl.d.ts +1 -1
- package/build/components/atoms/icons/Girl.d.ts +1 -1
- package/build/components/atoms/icons/GroupPeople.d.ts +1 -1
- package/build/components/atoms/icons/GroupPeopleSolid.d.ts +1 -1
- package/build/components/atoms/icons/Heart.d.ts +1 -1
- package/build/components/atoms/icons/Home.d.ts +1 -1
- package/build/components/atoms/icons/Hospital.d.ts +1 -1
- package/build/components/atoms/icons/Info.d.ts +1 -1
- package/build/components/atoms/icons/Kebab.d.ts +1 -1
- package/build/components/atoms/icons/Like.d.ts +1 -1
- package/build/components/atoms/icons/Link.d.ts +1 -1
- package/build/components/atoms/icons/Minus.d.ts +1 -1
- package/build/components/atoms/icons/Missed.d.ts +1 -1
- package/build/components/atoms/icons/MyCommunity.d.ts +1 -1
- package/build/components/atoms/icons/MyHealth.d.ts +1 -1
- package/build/components/atoms/icons/Oppose.d.ts +1 -1
- package/build/components/atoms/icons/Parents.d.ts +1 -1
- package/build/components/atoms/icons/Plus.d.ts +1 -1
- package/build/components/atoms/icons/PlusSpecial.d.ts +1 -1
- package/build/components/atoms/icons/Post.d.ts +1 -1
- package/build/components/atoms/icons/Recalculate.d.ts +1 -1
- package/build/components/atoms/icons/Reply.d.ts +1 -1
- package/build/components/atoms/icons/Scale.d.ts +1 -1
- package/build/components/atoms/icons/Screener.d.ts +1 -1
- package/build/components/atoms/icons/Share.d.ts +1 -1
- package/build/components/atoms/icons/ShieldCheck.d.ts +1 -1
- package/build/components/atoms/icons/Smile.d.ts +1 -1
- package/build/components/atoms/icons/Sparkle.d.ts +1 -1
- package/build/components/atoms/icons/Star.d.ts +1 -1
- package/build/components/atoms/icons/Stethoscope.d.ts +1 -1
- package/build/components/atoms/icons/StethoscopeActive.d.ts +1 -1
- package/build/components/atoms/icons/ToggleOff.d.ts +1 -1
- package/build/components/atoms/icons/ToggleOn.d.ts +1 -1
- package/build/components/atoms/icons/Trash.d.ts +1 -1
- package/build/components/atoms/icons/Upcoming.d.ts +1 -1
- package/build/components/atoms/icons/User.d.ts +1 -1
- package/build/components/atoms/icons/UserCheck.d.ts +1 -1
- package/build/components/atoms/icons/Vaccinated.d.ts +1 -1
- package/build/components/atoms/icons/Video.d.ts +1 -1
- package/build/components/atoms/icons/VideoCall.d.ts +1 -1
- package/build/components/atoms/icons/WhatsApp.d.ts +1 -1
- package/build/components/atoms/icons/Woman.d.ts +1 -1
- package/build/components/atoms/index.d.ts +45 -45
- package/build/components/atoms/input/index.d.ts +1 -1
- package/build/components/atoms/inputMB/index.d.ts +1 -1
- package/build/components/atoms/logo/logoIcon.d.ts +1 -1
- package/build/components/atoms/menu/index.d.ts +1 -1
- package/build/components/atoms/tag/index.d.ts +1 -1
- package/build/components/atoms/tag/index.styled.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthChart/chartConfig.d.ts +2 -2
- package/build/components/babyGrowth/babyGrowthChart/index.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthChooseProfileDrawer/index.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthForm/index.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthForm/index.styled.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthGender/index.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthLegend/index.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthProfileRadio/index.d.ts +1 -1
- package/build/components/babyGrowth/babyGrowthTooltip/index.d.ts +1 -1
- package/build/components/babyGrowth/index.d.ts +19 -19
- package/build/components/index.d.ts +3 -3
- package/build/components/mantine/anchor/index.d.ts +1 -1
- package/build/components/mantine/breadcrumbs/index.d.ts +1 -1
- package/build/components/mantine/breadcrumbs/item.d.ts +1 -1
- package/build/components/mantine/chipButton/index.d.ts +1 -1
- package/build/components/mantine/index.d.ts +63 -63
- package/build/components/mantine/input/index.d.ts +6 -6
- package/build/components/mantine/text/index.d.ts +2 -2
- package/build/components/mantine/theme/other.d.ts +2 -2
- package/build/components/molecules/__deprecated_breadcrumbs/index.d.ts +1 -1
- package/build/components/molecules/articleCard/horizontal.d.ts +1 -1
- package/build/components/molecules/articleCard/index.d.ts +1 -1
- package/build/components/molecules/articleCard/vertical.d.ts +1 -1
- package/build/components/molecules/bmiForm/index.d.ts +1 -1
- package/build/components/molecules/bmrForm/index.d.ts +1 -1
- package/build/components/molecules/dateRangePicker/calendar/index.d.ts +1 -1
- package/build/components/molecules/dateRangePicker/index.d.ts +1 -1
- package/build/components/molecules/dateRangePicker/utils.d.ts +1 -1
- package/build/components/molecules/dueDateCalculator/dueDateFormConception.d.ts +1 -1
- package/build/components/molecules/dueDateCalculator/dueDateFormIVF.d.ts +1 -1
- package/build/components/molecules/dueDateCalculator/dueDateFormLastPeriod.d.ts +1 -1
- package/build/components/molecules/dueDateCalculator/index.d.ts +1 -1
- package/build/components/molecules/dueDateCalculator/utils.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +1 -1
- package/build/components/molecules/index.d.ts +64 -64
- package/build/components/molecules/languageSwitcher/index.d.ts +1 -1
- package/build/components/molecules/mobileBottomNavigation/index.d.ts +1 -1
- package/build/components/molecules/ovulationCalculator/index.d.ts +1 -1
- package/build/components/molecules/premiumNewsletterModal/index.d.ts +1 -1
- package/build/components/molecules/seoHead/index.d.ts +1 -1
- package/build/components/molecules/sidemenu/index.d.ts +4 -4
- package/build/components/molecules/sidemenu/menuLink.d.ts +2 -2
- package/build/components/molecules/surveyOrPremiumBanner/bannerLayout.d.ts +1 -1
- package/build/components/molecules/surveyOrPremiumBanner/bannerWithOption/index.d.ts +3 -3
- package/build/components/molecules/surveyOrPremiumBanner/constants.d.ts +1 -1
- package/build/components/molecules/surveyOrPremiumBanner/context.d.ts +2 -2
- package/build/components/molecules/surveyOrPremiumBanner/index.d.ts +1 -1
- package/build/components/molecules/surveyOrPremiumBanner/toolBanner.d.ts +1 -1
- package/build/components/molecules/surveyOrPremiumBanner/types.d.ts +2 -2
- package/build/components/molecules/surveyQuestionCard/index.d.ts +2 -2
- package/build/components/molecules/surveyQuestionCard/surveyQuestionCard.d.ts +1 -1
- package/build/components/molecules/surveyQuestionCard/surveyQuestionContent.d.ts +1 -1
- package/build/components/molecules/table/index.d.ts +5 -5
- package/build/components/molecules/tabs/index.d.ts +4 -4
- package/build/components/molecules/thrForm/index.d.ts +1 -1
- package/build/components/molecules/weightGainForm/index.d.ts +1 -1
- package/build/components/navigationV2/components/atoms/HamburgerIcon.d.ts +2 -2
- package/build/components/navigationV2/components/atoms/ItemNav/index.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuCareList/index.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuCategoriesList/categorySpotlights.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuCategoriesList/index.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuCommunitiesList/Item/index.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuHealthToolsList/index.d.ts +2 -2
- package/build/components/navigationV2/components/molecules/menuHealthToolsList/toolSpotlights.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuServiceList/index.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -1
- package/build/components/navigationV2/hooks/useNavConfig.d.ts +1 -1
- package/build/components/navigationV2/hooks/useNavServices.d.ts +1 -1
- package/build/components/navigationV2/index.d.ts +5 -5
- package/build/components/navigationV2/navigationContext.d.ts +2 -2
- package/build/components/navigationV2/types.d.ts +1 -1
- package/build/components/navigationV2/utils.d.ts +2 -2
- package/build/components/onboardingV2/frisoForm/index.d.ts +2 -2
- package/build/components/onboardingV2/frisoForm/schema.d.ts +1 -1
- package/build/components/onboardingV2/index.d.ts +15 -15
- package/build/components/onboardingV2/onboardingForm/index.d.ts +1 -1
- package/build/components/onboardingV2/onboardingForm/schema.d.ts +1 -1
- package/build/components/onboardingV2/otpForm/schema.d.ts +1 -1
- package/build/components/onboardingV2/personalInfoForm/schema.d.ts +1 -1
- package/build/components/onboardingV2/resultScreen/index.d.ts +1 -1
- package/build/components/onboardingV2/similacForm/index.d.ts +1 -1
- package/build/components/onboardingV2/similacForm/schema.d.ts +1 -1
- package/build/components/onboardingV2/thankyou/index.d.ts +1 -1
- package/build/components/onboardingV2/updatePasswordForm/schema.d.ts +1 -1
- package/build/components/organisms/footer/discoverFooter/index.d.ts +1 -1
- package/build/components/organisms/footer/index.d.ts +1 -1
- package/build/components/organisms/footer/maryBabyFooter/index.d.ts +2 -2
- package/build/components/organisms/index.d.ts +6 -6
- package/build/components/organisms/navigationProfileButton/profilePopup.d.ts +1 -1
- package/build/components/organisms/userProfileNavigation/constants.d.ts +2 -2
- package/build/components/organisms/userProfileNavigation/index.d.ts +4 -4
- package/build/components/organisms/userProfileNavigation/navHeader/index.d.ts +2 -2
- package/build/components/organisms/userProfileNavigation/navMenu/index.d.ts +2 -2
- package/build/components/organisms/userProfileNavigation/navMenu/items.d.ts +1 -1
- package/build/components/organisms/userProfileNavigation/navigationCard/index.d.ts +1 -1
- package/build/components/organisms/userProfileNavigation/types.d.ts +2 -2
- package/build/components/organisms/userProfileNavigation/userStats/index.d.ts +1 -1
- package/build/components/pregnancyWeightGain/index.d.ts +2 -2
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/chartConfig.d.ts +1 -1
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/components/chart.d.ts +2 -2
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/components/chartLegend.d.ts +1 -1
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/components/index.d.ts +3 -3
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/index.d.ts +2 -2
- package/build/components/ui/cardAuthor/index.d.ts +1 -1
- package/build/components/ui/index.d.ts +1 -1
- package/build/components/vaccination/index.d.ts +13 -13
- package/build/components/vaccination/shared/index.d.ts +2 -2
- package/build/components/vaccination/vaccineCard/immunization.d.ts +1 -1
- package/build/components/vaccination/vaccineCard/modal.d.ts +1 -1
- package/build/components/vaccination/vaccineCard/timeline.d.ts +1 -1
- package/build/components/vaccination/vaccineDetailPopup/index.d.ts +2 -2
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-c17c06fa.js → core-f7c1b420.js} +1 -1
- package/build/ecom/dataFormatter/index.d.ts +2 -2
- package/build/ecom/dataFormatter/lib/apiTypes.d.ts +1 -1
- package/build/ecom/dataFormatter/lib/dataTypes.d.ts +2 -2
- package/build/ecom/dataFormatter/lib/utils.d.ts +1 -1
- package/build/ecom/index.d.ts +5 -5
- package/build/ecom/interfaces/constants.d.ts +1 -1
- package/build/ecom/interfaces/types.d.ts +2 -2
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +6 -6
- package/build/esm/cache/index.d.ts +1 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/care/api/utils.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/index.d.ts +3 -3
- package/build/esm/care/components/organisms/bookingSearchBar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/locationResults/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/mobileFakeInput/index.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/reducer.d.ts +3 -3
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/searchInputs/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/searchResults/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/searchResults/mockData.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/useSearchBarApi.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +4 -4
- package/build/esm/care/components/organisms/bookingSearchBarV2/reducer.d.ts +3 -3
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchInputs/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchLocation/index.d.ts +3 -3
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResult/index.d.ts +3 -3
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchResultSpecialties/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchSpecialty/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBarV2/searchTag/index.d.ts +2 -2
- package/build/esm/care/components/organisms/bookingSearchBarV2/tabSearch/index.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/useSearchBarApi.d.ts +3 -3
- package/build/esm/care/index.d.ts +4 -4
- package/build/esm/care/interfaces/constants.d.ts +2 -2
- package/build/esm/care/interfaces/types.d.ts +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/authorBadge/index.d.ts +1 -1
- package/build/esm/components/atoms/badge/index.styled.d.ts +1 -1
- package/build/esm/components/atoms/borderHeading/index.d.ts +1 -1
- package/build/esm/components/atoms/displayWrapper/index.d.ts +1 -1
- package/build/esm/components/atoms/divider/index.styled.d.ts +1 -1
- package/build/esm/components/atoms/drawer/helpers.d.ts +1 -1
- package/build/esm/components/atoms/drawer/index.styled.d.ts +1 -1
- package/build/esm/components/atoms/dropdownMB/index.d.ts +1 -1
- package/build/esm/components/atoms/genderOptionControl/index.d.ts +1 -1
- package/build/esm/components/atoms/icons/ACharacter.d.ts +1 -1
- package/build/esm/components/atoms/icons/Activities.d.ts +1 -1
- package/build/esm/components/atoms/icons/ArrowDown.d.ts +1 -1
- package/build/esm/components/atoms/icons/ArrowLeft.d.ts +1 -1
- package/build/esm/components/atoms/icons/ArrowRight.d.ts +1 -1
- package/build/esm/components/atoms/icons/ArrowRightTail.d.ts +1 -1
- package/build/esm/components/atoms/icons/Article.d.ts +1 -1
- package/build/esm/components/atoms/icons/Ask.d.ts +1 -1
- package/build/esm/components/atoms/icons/BabyBoyMB.d.ts +1 -1
- package/build/esm/components/atoms/icons/BabyGirlMB.d.ts +1 -1
- package/build/esm/components/atoms/icons/BarChart.d.ts +1 -1
- package/build/esm/components/atoms/icons/Booking.d.ts +1 -1
- package/build/esm/components/atoms/icons/Bookmark.d.ts +1 -1
- package/build/esm/components/atoms/icons/Boy.d.ts +1 -1
- package/build/esm/components/atoms/icons/Business.d.ts +1 -1
- package/build/esm/components/atoms/icons/Calendar.d.ts +1 -1
- package/build/esm/components/atoms/icons/CalendarMB.d.ts +1 -1
- package/build/esm/components/atoms/icons/CameraCircle.d.ts +1 -1
- package/build/esm/components/atoms/icons/Chat.d.ts +1 -1
- package/build/esm/components/atoms/icons/Check.d.ts +1 -1
- package/build/esm/components/atoms/icons/CheckActiveMB.d.ts +1 -1
- package/build/esm/components/atoms/icons/CircleBorder.d.ts +1 -1
- package/build/esm/components/atoms/icons/Clickable.d.ts +1 -1
- package/build/esm/components/atoms/icons/ClinicPin.d.ts +1 -1
- package/build/esm/components/atoms/icons/Close.d.ts +1 -1
- package/build/esm/components/atoms/icons/Comment.d.ts +1 -1
- package/build/esm/components/atoms/icons/Community.d.ts +1 -1
- package/build/esm/components/atoms/icons/CrossLogo.d.ts +1 -1
- package/build/esm/components/atoms/icons/Current.d.ts +1 -1
- package/build/esm/components/atoms/icons/EditSpecial.d.ts +1 -1
- package/build/esm/components/atoms/icons/Endorse.d.ts +1 -1
- package/build/esm/components/atoms/icons/Envelop.d.ts +1 -1
- package/build/esm/components/atoms/icons/Eye.d.ts +1 -1
- package/build/esm/components/atoms/icons/Family.d.ts +1 -1
- package/build/esm/components/atoms/icons/Font.d.ts +1 -1
- package/build/esm/components/atoms/icons/FullScreen.d.ts +1 -1
- package/build/esm/components/atoms/icons/GenderBoy.d.ts +1 -1
- package/build/esm/components/atoms/icons/GenderChooseBoy.d.ts +1 -1
- package/build/esm/components/atoms/icons/GenderChooseGirl.d.ts +1 -1
- package/build/esm/components/atoms/icons/GenderGirl.d.ts +1 -1
- package/build/esm/components/atoms/icons/Girl.d.ts +1 -1
- package/build/esm/components/atoms/icons/GroupPeople.d.ts +1 -1
- package/build/esm/components/atoms/icons/GroupPeopleSolid.d.ts +1 -1
- package/build/esm/components/atoms/icons/Heart.d.ts +1 -1
- package/build/esm/components/atoms/icons/Home.d.ts +1 -1
- package/build/esm/components/atoms/icons/Hospital.d.ts +1 -1
- package/build/esm/components/atoms/icons/Info.d.ts +1 -1
- package/build/esm/components/atoms/icons/Kebab.d.ts +1 -1
- package/build/esm/components/atoms/icons/Like.d.ts +1 -1
- package/build/esm/components/atoms/icons/Link.d.ts +1 -1
- package/build/esm/components/atoms/icons/Minus.d.ts +1 -1
- package/build/esm/components/atoms/icons/Missed.d.ts +1 -1
- package/build/esm/components/atoms/icons/MyCommunity.d.ts +1 -1
- package/build/esm/components/atoms/icons/MyHealth.d.ts +1 -1
- package/build/esm/components/atoms/icons/Oppose.d.ts +1 -1
- package/build/esm/components/atoms/icons/Parents.d.ts +1 -1
- package/build/esm/components/atoms/icons/Plus.d.ts +1 -1
- package/build/esm/components/atoms/icons/PlusSpecial.d.ts +1 -1
- package/build/esm/components/atoms/icons/Post.d.ts +1 -1
- package/build/esm/components/atoms/icons/Recalculate.d.ts +1 -1
- package/build/esm/components/atoms/icons/Reply.d.ts +1 -1
- package/build/esm/components/atoms/icons/Scale.d.ts +1 -1
- package/build/esm/components/atoms/icons/Screener.d.ts +1 -1
- package/build/esm/components/atoms/icons/Share.d.ts +1 -1
- package/build/esm/components/atoms/icons/ShieldCheck.d.ts +1 -1
- package/build/esm/components/atoms/icons/Smile.d.ts +1 -1
- package/build/esm/components/atoms/icons/Sparkle.d.ts +1 -1
- package/build/esm/components/atoms/icons/Star.d.ts +1 -1
- package/build/esm/components/atoms/icons/Stethoscope.d.ts +1 -1
- package/build/esm/components/atoms/icons/StethoscopeActive.d.ts +1 -1
- package/build/esm/components/atoms/icons/ToggleOff.d.ts +1 -1
- package/build/esm/components/atoms/icons/ToggleOn.d.ts +1 -1
- package/build/esm/components/atoms/icons/Trash.d.ts +1 -1
- package/build/esm/components/atoms/icons/Upcoming.d.ts +1 -1
- package/build/esm/components/atoms/icons/User.d.ts +1 -1
- package/build/esm/components/atoms/icons/UserCheck.d.ts +1 -1
- package/build/esm/components/atoms/icons/Vaccinated.d.ts +1 -1
- package/build/esm/components/atoms/icons/Video.d.ts +1 -1
- package/build/esm/components/atoms/icons/VideoCall.d.ts +1 -1
- package/build/esm/components/atoms/icons/WhatsApp.d.ts +1 -1
- package/build/esm/components/atoms/icons/Woman.d.ts +1 -1
- package/build/esm/components/atoms/index.d.ts +45 -45
- package/build/esm/components/atoms/input/index.d.ts +1 -1
- package/build/esm/components/atoms/inputMB/index.d.ts +1 -1
- package/build/esm/components/atoms/logo/logoIcon.d.ts +1 -1
- package/build/esm/components/atoms/menu/index.d.ts +1 -1
- package/build/esm/components/atoms/tag/index.d.ts +1 -1
- package/build/esm/components/atoms/tag/index.styled.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthChart/chartConfig.d.ts +2 -2
- package/build/esm/components/babyGrowth/babyGrowthChart/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthChooseProfileDrawer/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthForm/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthForm/index.styled.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthGender/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthLegend/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthProfileRadio/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/babyGrowthTooltip/index.d.ts +1 -1
- package/build/esm/components/babyGrowth/index.d.ts +19 -19
- package/build/esm/components/index.d.ts +3 -3
- package/build/esm/components/mantine/anchor/index.d.ts +1 -1
- package/build/esm/components/mantine/breadcrumbs/index.d.ts +1 -1
- package/build/esm/components/mantine/breadcrumbs/item.d.ts +1 -1
- package/build/esm/components/mantine/chipButton/index.d.ts +1 -1
- package/build/esm/components/mantine/index.d.ts +63 -63
- package/build/esm/components/mantine/input/index.d.ts +6 -6
- package/build/esm/components/mantine/text/index.d.ts +2 -2
- package/build/esm/components/mantine/theme/other.d.ts +2 -2
- package/build/esm/components/molecules/__deprecated_breadcrumbs/index.d.ts +1 -1
- package/build/esm/components/molecules/articleCard/horizontal.d.ts +1 -1
- package/build/esm/components/molecules/articleCard/index.d.ts +1 -1
- package/build/esm/components/molecules/articleCard/vertical.d.ts +1 -1
- package/build/esm/components/molecules/bmiForm/index.d.ts +1 -1
- package/build/esm/components/molecules/bmrForm/index.d.ts +1 -1
- package/build/esm/components/molecules/dateRangePicker/calendar/index.d.ts +1 -1
- package/build/esm/components/molecules/dateRangePicker/index.d.ts +1 -1
- package/build/esm/components/molecules/dateRangePicker/utils.d.ts +1 -1
- package/build/esm/components/molecules/dueDateCalculator/dueDateFormConception.d.ts +1 -1
- package/build/esm/components/molecules/dueDateCalculator/dueDateFormIVF.d.ts +1 -1
- package/build/esm/components/molecules/dueDateCalculator/dueDateFormLastPeriod.d.ts +1 -1
- package/build/esm/components/molecules/dueDateCalculator/index.d.ts +1 -1
- package/build/esm/components/molecules/dueDateCalculator/utils.d.ts +1 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +1 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +1 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +1 -1
- package/build/esm/components/molecules/index.d.ts +64 -64
- package/build/esm/components/molecules/languageSwitcher/index.d.ts +1 -1
- package/build/esm/components/molecules/mobileBottomNavigation/index.d.ts +1 -1
- package/build/esm/components/molecules/ovulationCalculator/index.d.ts +1 -1
- package/build/esm/components/molecules/premiumNewsletterModal/index.d.ts +1 -1
- package/build/esm/components/molecules/seoHead/index.d.ts +1 -1
- package/build/esm/components/molecules/sidemenu/index.d.ts +4 -4
- package/build/esm/components/molecules/sidemenu/menuLink.d.ts +2 -2
- package/build/esm/components/molecules/surveyOrPremiumBanner/bannerLayout.d.ts +1 -1
- package/build/esm/components/molecules/surveyOrPremiumBanner/bannerWithOption/index.d.ts +3 -3
- package/build/esm/components/molecules/surveyOrPremiumBanner/constants.d.ts +1 -1
- package/build/esm/components/molecules/surveyOrPremiumBanner/context.d.ts +2 -2
- package/build/esm/components/molecules/surveyOrPremiumBanner/index.d.ts +1 -1
- package/build/esm/components/molecules/surveyOrPremiumBanner/toolBanner.d.ts +1 -1
- package/build/esm/components/molecules/surveyOrPremiumBanner/types.d.ts +2 -2
- package/build/esm/components/molecules/surveyQuestionCard/index.d.ts +2 -2
- package/build/esm/components/molecules/surveyQuestionCard/surveyQuestionCard.d.ts +1 -1
- package/build/esm/components/molecules/surveyQuestionCard/surveyQuestionContent.d.ts +1 -1
- package/build/esm/components/molecules/table/index.d.ts +5 -5
- package/build/esm/components/molecules/tabs/index.d.ts +4 -4
- package/build/esm/components/molecules/thrForm/index.d.ts +1 -1
- package/build/esm/components/molecules/weightGainForm/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/atoms/HamburgerIcon.d.ts +2 -2
- package/build/esm/components/navigationV2/components/atoms/ItemNav/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuCareList/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/categorySpotlights.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/Item/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/index.d.ts +2 -2
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/toolSpotlights.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuServiceList/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +1 -1
- package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +1 -1
- package/build/esm/components/navigationV2/hooks/useNavServices.d.ts +1 -1
- package/build/esm/components/navigationV2/index.d.ts +5 -5
- package/build/esm/components/navigationV2/navigationContext.d.ts +2 -2
- package/build/esm/components/navigationV2/types.d.ts +1 -1
- package/build/esm/components/navigationV2/utils.d.ts +2 -2
- package/build/esm/components/onboardingV2/frisoForm/index.d.ts +2 -2
- package/build/esm/components/onboardingV2/frisoForm/schema.d.ts +1 -1
- package/build/esm/components/onboardingV2/index.d.ts +15 -15
- package/build/esm/components/onboardingV2/onboardingForm/index.d.ts +1 -1
- package/build/esm/components/onboardingV2/onboardingForm/schema.d.ts +1 -1
- package/build/esm/components/onboardingV2/otpForm/schema.d.ts +1 -1
- package/build/esm/components/onboardingV2/personalInfoForm/schema.d.ts +1 -1
- package/build/esm/components/onboardingV2/resultScreen/index.d.ts +1 -1
- package/build/esm/components/onboardingV2/similacForm/index.d.ts +1 -1
- package/build/esm/components/onboardingV2/similacForm/schema.d.ts +1 -1
- package/build/esm/components/onboardingV2/thankyou/index.d.ts +1 -1
- package/build/esm/components/onboardingV2/updatePasswordForm/schema.d.ts +1 -1
- package/build/esm/components/organisms/footer/discoverFooter/index.d.ts +1 -1
- package/build/esm/components/organisms/footer/index.d.ts +1 -1
- package/build/esm/components/organisms/footer/maryBabyFooter/index.d.ts +2 -2
- package/build/esm/components/organisms/index.d.ts +6 -6
- package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +1 -1
- package/build/esm/components/organisms/userProfileNavigation/constants.d.ts +2 -2
- package/build/esm/components/organisms/userProfileNavigation/index.d.ts +4 -4
- package/build/esm/components/organisms/userProfileNavigation/navHeader/index.d.ts +2 -2
- package/build/esm/components/organisms/userProfileNavigation/navMenu/index.d.ts +2 -2
- package/build/esm/components/organisms/userProfileNavigation/navMenu/items.d.ts +1 -1
- package/build/esm/components/organisms/userProfileNavigation/navigationCard/index.d.ts +1 -1
- package/build/esm/components/organisms/userProfileNavigation/types.d.ts +2 -2
- package/build/esm/components/organisms/userProfileNavigation/userStats/index.d.ts +1 -1
- package/build/esm/components/pregnancyWeightGain/index.d.ts +2 -2
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/chartConfig.d.ts +1 -1
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/chart.d.ts +2 -2
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/chartLegend.d.ts +1 -1
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/index.d.ts +3 -3
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/index.d.ts +2 -2
- package/build/esm/components/ui/cardAuthor/index.d.ts +1 -1
- package/build/esm/components/ui/index.d.ts +1 -1
- package/build/esm/components/vaccination/index.d.ts +13 -13
- package/build/esm/components/vaccination/shared/index.d.ts +2 -2
- package/build/esm/components/vaccination/vaccineCard/immunization.d.ts +1 -1
- package/build/esm/components/vaccination/vaccineCard/modal.d.ts +1 -1
- package/build/esm/components/vaccination/vaccineCard/timeline.d.ts +1 -1
- package/build/esm/components/vaccination/vaccineDetailPopup/index.d.ts +2 -2
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-751de8a0.js → core-4a0d9763.js} +1 -1
- package/build/esm/ecom/dataFormatter/index.d.ts +2 -2
- package/build/esm/ecom/dataFormatter/lib/apiTypes.d.ts +1 -1
- package/build/esm/ecom/dataFormatter/lib/dataTypes.d.ts +2 -2
- package/build/esm/ecom/dataFormatter/lib/utils.d.ts +1 -1
- package/build/esm/ecom/index.d.ts +5 -5
- package/build/esm/ecom/interfaces/constants.d.ts +1 -1
- package/build/esm/ecom/interfaces/types.d.ts +2 -2
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-1d5d0a4d.js +1 -0
- package/build/esm/{getSocialList-7b4c63b0.js → getSocialList-c62d86da.js} +1 -1
- package/build/esm/hooks/index.d.ts +11 -11
- package/build/esm/hooks/useFbDataLayer.d.ts +1 -1
- package/build/esm/hooks/useGeolocation.d.ts +1 -1
- package/build/esm/hooks/useTranslations.d.ts +2 -2
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n/index.d.ts +2 -2
- package/build/esm/i18n/indexV2.d.ts +2 -2
- package/build/esm/i18n/translationsContext.d.ts +2 -2
- package/build/esm/i18n/translationsProvider.d.ts +2 -2
- package/build/esm/i18n/translationsProviderV2.d.ts +2 -2
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/icons/index.d.ts +15 -15
- package/build/esm/{index-bb913b1c.js → index-064afb3d.js} +1 -1
- package/build/esm/index-0c0b9e1b.js +1 -0
- package/build/esm/index-182cff37.js +118 -0
- package/build/esm/{index-2d562f92.js → index-18fd004a.js} +3 -3
- package/build/esm/index-2496a47b.js +113 -0
- package/build/esm/index-26fec022.js +1 -0
- package/build/esm/{index-7e6ef4fe.js → index-28fdf8d0.js} +1 -1
- package/build/esm/{index-cc1aff02.js → index-3916c205.js} +193 -193
- package/build/esm/index-407adb2a.js +1 -0
- package/build/esm/index-5920348e.js +3685 -0
- package/build/esm/{index-d40900aa.js → index-5cd5eae8.js} +1 -1
- package/build/esm/index-811fb472.js +1 -0
- package/build/esm/index-9307ecd1.js +1 -0
- package/build/esm/{index-ba50e0db.js → index-a2022cc1.js} +1 -1
- package/build/esm/index-b406fdf9.js +1 -0
- package/build/esm/index-bd74d231.js +1 -0
- package/build/esm/index-c397360c.js +1 -0
- package/build/esm/index-d3620bb2.js +1 -0
- package/build/esm/index-dbf35f15.js +1 -0
- package/build/esm/index-ef082b02.js +1 -0
- package/build/esm/{index-efc99972.js → index-f0eb853a.js} +1 -1
- package/build/esm/{index-739bb5e8.js → index-f5d7fe61.js} +1 -1
- package/build/esm/index.d.ts +8 -8
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-39a47f05.js → index.styled-5c91a19e.js} +19 -19
- package/build/esm/index.styled-a6258456.js +69 -0
- package/build/esm/index.styles-1ce44a1d.js +1007 -0
- package/build/esm/interfaces/constants/index.d.ts +4 -4
- package/build/esm/interfaces/constants/riskScreener.d.ts +1 -1
- package/build/esm/interfaces/constants/site.d.ts +1 -1
- package/build/esm/interfaces/types/index.d.ts +5 -5
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc/index.d.ts +13 -13
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/premiumNewsletter/interfaces/constants.d.ts +1 -1
- package/build/esm/pwg.js +2 -2
- package/build/esm/{routing-351976df.js → routing-6ca54153.js} +1 -1
- package/build/esm/together/api/dataTransform.d.ts +1 -1
- package/build/esm/together/components/atoms/index.d.ts +8 -8
- package/build/esm/together/components/atoms/tagTopic/index.d.ts +1 -1
- package/build/esm/together/components/molecules/cardAuthor/index.d.ts +4 -4
- package/build/esm/together/components/molecules/createNewPostContent/index.d.ts +1 -1
- package/build/esm/together/components/molecules/index.d.ts +22 -22
- package/build/esm/together/components/molecules/inputCommentBar/index.d.ts +1 -1
- package/build/esm/together/components/molecules/popupDanger/index.d.ts +1 -1
- package/build/esm/together/components/molecules/postContent/index.d.ts +2 -2
- package/build/esm/together/components/molecules/profileDetail/about/index.d.ts +1 -1
- package/build/esm/together/components/molecules/profileDetail/context.d.ts +2 -2
- package/build/esm/together/components/molecules/profileDetail/index.d.ts +2 -2
- package/build/esm/together/components/molecules/profileDetail/types.d.ts +1 -1
- package/build/esm/together/components/molecules/profileDetail/utils/dataTransform.d.ts +1 -1
- package/build/esm/together/components/molecules/topicSelectList/index.d.ts +1 -1
- package/build/esm/together/components/organisms/cardPost/cardPostPopover.d.ts +1 -1
- package/build/esm/together/components/organisms/cardPost/index.d.ts +2 -2
- package/build/esm/together/components/organisms/cardReply/index.d.ts +2 -2
- package/build/esm/together/components/organisms/cardReply/verifiedTag/index.d.ts +1 -1
- package/build/esm/together/components/organisms/index.d.ts +7 -7
- package/build/esm/together/components/organisms/popoverMenu/index.d.ts +1 -1
- package/build/esm/together/components/organisms/popoverMenu/treePopoverMenu.d.ts +1 -1
- package/build/esm/together/components/organisms/sourceList/recommentCategories/index.d.ts +1 -1
- package/build/esm/together/components/organisms/sourceList/sourceItem/index.d.ts +1 -1
- package/build/esm/together/index.d.ts +8 -8
- package/build/esm/together/interfaces/constants.d.ts +1 -1
- package/build/esm/together/togetherComponentGlobalContext.d.ts +1 -1
- package/build/esm/together/utils/notification.d.ts +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-1a608206.js → types-1631babb.js} +83 -83
- package/build/esm/types-38448ef8.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-07fae2b9.js → useCategory-d0c0a3cf.js} +1 -1
- package/build/esm/useHealthToolCache-b02ce9f8.js +1 -0
- package/build/esm/{useRafState-76de05f2.js → useRafState-53c939b1.js} +1 -1
- package/build/esm/{useTranslations-10e9f360.js → useTranslations-756fc193.js} +1 -1
- package/build/esm/utils-23eb0cb7.js +95 -0
- package/build/esm/{utils-0f296d7f.js → utils-e101ff6d.js} +1 -1
- package/build/esm/vaccination.js +42 -42
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-51439008.js → getDynamicHealthTool-c6a15d8c.js} +1 -1
- package/build/{getSocialList-f8eaad9b.js → getSocialList-5de134dd.js} +1 -1
- package/build/hooks/index.d.ts +11 -11
- package/build/hooks/useFbDataLayer.d.ts +1 -1
- package/build/hooks/useGeolocation.d.ts +1 -1
- package/build/hooks/useTranslations.d.ts +2 -2
- package/build/hooks.js +1 -1
- package/build/i18n/index.d.ts +2 -2
- package/build/i18n/indexV2.d.ts +2 -2
- package/build/i18n/translationsContext.d.ts +2 -2
- package/build/i18n/translationsProvider.d.ts +2 -2
- package/build/i18n/translationsProviderV2.d.ts +2 -2
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/icons/index.d.ts +15 -15
- package/build/index-14a82499.js +1 -0
- package/build/{index-2fe1dfe5.js → index-2aabab5b.js} +4 -4
- package/build/index-2c3f32c6.js +1 -0
- package/build/{index-ae441a45.js → index-3c5a27e0.js} +1 -1
- package/build/index-3cbddfdc.js +1 -0
- package/build/{index-90194f1f.js → index-51ae0b51.js} +1 -1
- package/build/index-63cf7957.js +1 -0
- package/build/index-681334eb.js +1 -0
- package/build/{index-41a28d6b.js → index-68f10637.js} +1 -1
- package/build/index-6c63803e.js +113 -0
- package/build/{index-781b5c02.js → index-7698b4e9.js} +1 -1
- package/build/{index-195b5014.js → index-78277be1.js} +175 -175
- package/build/index-87f91cd0.js +1 -0
- package/build/index-9d56c82c.js +1 -0
- package/build/{index-bffe21f2.js → index-a2169288.js} +1 -1
- package/build/index-bf7a6063.js +118 -0
- package/build/index-c44d93a2.js +1 -0
- package/build/index-c4de5500.js +1 -0
- package/build/index-da74ef24.js +1 -0
- package/build/{index-5c19c607.js → index-e6b48212.js} +112 -112
- package/build/{index-3eb8ea9e.js → index-ec45420c.js} +1 -1
- package/build/{index-b8645633.js → index-ecff9a6b.js} +1 -1
- package/build/index.d.ts +8 -8
- package/build/index.js +1 -1
- package/build/index.styled-4663c689.js +69 -0
- package/build/{index.styled-a22002f5.js → index.styled-f82615e7.js} +135 -135
- package/build/index.styles-e273b78f.js +1007 -0
- package/build/interfaces/constants/index.d.ts +4 -4
- package/build/interfaces/constants/riskScreener.d.ts +1 -1
- package/build/interfaces/constants/site.d.ts +1 -1
- package/build/interfaces/types/index.d.ts +5 -5
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc/index.d.ts +13 -13
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +19 -19
- package/build/premiumNewsletter/interfaces/constants.d.ts +1 -1
- package/build/pwg.js +3 -3
- package/build/{routing-c79a1161.js → routing-36322240.js} +1 -1
- package/build/together/api/dataTransform.d.ts +1 -1
- package/build/together/components/atoms/index.d.ts +8 -8
- package/build/together/components/atoms/tagTopic/index.d.ts +1 -1
- package/build/together/components/molecules/cardAuthor/index.d.ts +4 -4
- package/build/together/components/molecules/createNewPostContent/index.d.ts +1 -1
- package/build/together/components/molecules/index.d.ts +22 -22
- package/build/together/components/molecules/inputCommentBar/index.d.ts +1 -1
- package/build/together/components/molecules/popupDanger/index.d.ts +1 -1
- package/build/together/components/molecules/postContent/index.d.ts +2 -2
- package/build/together/components/molecules/profileDetail/about/index.d.ts +1 -1
- package/build/together/components/molecules/profileDetail/context.d.ts +2 -2
- package/build/together/components/molecules/profileDetail/index.d.ts +2 -2
- package/build/together/components/molecules/profileDetail/types.d.ts +1 -1
- package/build/together/components/molecules/profileDetail/utils/dataTransform.d.ts +1 -1
- package/build/together/components/molecules/topicSelectList/index.d.ts +1 -1
- package/build/together/components/organisms/cardPost/cardPostPopover.d.ts +1 -1
- package/build/together/components/organisms/cardPost/index.d.ts +2 -2
- package/build/together/components/organisms/cardReply/index.d.ts +2 -2
- package/build/together/components/organisms/cardReply/verifiedTag/index.d.ts +1 -1
- package/build/together/components/organisms/index.d.ts +7 -7
- package/build/together/components/organisms/popoverMenu/index.d.ts +1 -1
- package/build/together/components/organisms/popoverMenu/treePopoverMenu.d.ts +1 -1
- package/build/together/components/organisms/sourceList/recommentCategories/index.d.ts +1 -1
- package/build/together/components/organisms/sourceList/sourceItem/index.d.ts +1 -1
- package/build/together/index.d.ts +8 -8
- package/build/together/interfaces/constants.d.ts +1 -1
- package/build/together/togetherComponentGlobalContext.d.ts +1 -1
- package/build/together/utils/notification.d.ts +1 -1
- package/build/together.js +1 -1
- package/build/types-88add7e7.js +1 -0
- package/build/{types-44e9d732.js → types-c030ccaf.js} +62 -62
- package/build/types.js +1 -1
- package/build/{useCategory-bf65c1d4.js → useCategory-be75349c.js} +1 -1
- package/build/useHealthToolCache-e970e249.js +1 -0
- package/build/{useRafState-d0b3c83d.js → useRafState-6d2be290.js} +1 -1
- package/build/{useTranslations-548041ba.js → useTranslations-aefec60a.js} +1 -1
- package/build/utils-0329f8b4.js +95 -0
- package/build/{utils-ae95453a.js → utils-e3a30add.js} +1 -1
- package/build/vaccination.js +12 -12
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-7b5571b2.js +0 -1
- package/build/esm/index-0007c24c.js +0 -1
- package/build/esm/index-2e2b0db2.js +0 -113
- package/build/esm/index-499f276f.js +0 -1
- package/build/esm/index-777eabad.js +0 -1
- package/build/esm/index-8fd63502.js +0 -1
- package/build/esm/index-9ff731cc.js +0 -3685
- package/build/esm/index-a2534c7c.js +0 -1
- package/build/esm/index-b1d38b58.js +0 -1
- package/build/esm/index-ba4ada7c.js +0 -1
- package/build/esm/index-cff1d249.js +0 -1
- package/build/esm/index.styles-e345cd05.js +0 -1286
- package/build/esm/types-ef0b0b06.js +0 -1
- package/build/esm/useHealthToolCache-fb9195d3.js +0 -1
- package/build/index-3ade7964.js +0 -1
- package/build/index-4b6fc508.js +0 -1
- package/build/index-81deb983.js +0 -113
- package/build/index-8f601a7e.js +0 -1
- package/build/index-b2c74982.js +0 -1
- package/build/index-b736e1ed.js +0 -1
- package/build/index-e64aa768.js +0 -1
- package/build/index-fb7fe95d.js +0 -1
- package/build/index.styles-7e65e8b3.js +0 -1286
- package/build/types-7a936692.js +0 -1
- package/build/useHealthToolCache-f54a0e23.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-d3476448.js → BMI_BOYS.percentile.monthly-a7b3bcf6.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-b2869713.js → BMI_BOYS.percentile.weekly-1dca7bec.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0cf5ddcd.js → BMI_BOYS.percentile.yearly-137f253e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-c4c943b7.js → BMI_BOYS.zscore.monthly-be3706b5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-ab4785f0.js → BMI_BOYS.zscore.weekly-8be0166f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-0622848a.js → BMI_BOYS.zscore.yearly-82cc3020.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-a6c23ca8.js → BMI_GIRLS.percentile.monthly-7a4c1fec.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-7fa7d98e.js → BMI_GIRLS.percentile.weekly-8b1b3da6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d08140fe.js → BMI_GIRLS.percentile.yearly-2ee47a08.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-abe8a404.js → BMI_GIRLS.zscore.monthly-594f5590.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d8ff3087.js → BMI_GIRLS.zscore.weekly-d21809e8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-7c1f0a47.js → BMI_GIRLS.zscore.yearly-ae6e4fa5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-1a2ccdbe.js → HEAD CIRCUM_BOYS.percentile.monthly-095a735c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-556d9756.js → HEAD CIRCUM_BOYS.percentile.weekly-c1b68a83.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-934846ef.js → HEAD CIRCUM_BOYS.percentile.yearly-c3a54843.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b1830af8.js → HEAD CIRCUM_BOYS.zscore.monthly-b021eb9f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0d8c4db0.js → HEAD CIRCUM_BOYS.zscore.weekly-b54def55.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-13d2a05d.js → HEAD CIRCUM_BOYS.zscore.yearly-1c6901dc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-1494d067.js → HEAD CIRCUM_GIRLS.percentile.monthly-c55771f9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-8495fb92.js → HEAD CIRCUM_GIRLS.percentile.weekly-24d8a70f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-dedf8639.js → HEAD CIRCUM_GIRLS.percentile.yearly-29fd54f0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-57b2f684.js → HEAD CIRCUM_GIRLS.zscore.monthly-90637cbd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8bf235ac.js → HEAD CIRCUM_GIRLS.zscore.weekly-2a7a58ba.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-33407c58.js → HEAD CIRCUM_GIRLS.zscore.yearly-bfa09b06.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fcb2ad58.js → HEIGHT_BOYS.percentile.monthly-b22708d0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-9e4ab926.js → HEIGHT_BOYS.percentile.weekly-655aa607.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-5d81ff55.js → HEIGHT_BOYS.percentile.yearly-29ea7a90.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-d9307ca1.js → HEIGHT_BOYS.zscore.monthly-eb2c0db3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-bbd07e44.js → HEIGHT_BOYS.zscore.weekly-6a0983f2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-4020447e.js → HEIGHT_BOYS.zscore.yearly-6815eb76.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-8af4d78a.js → HEIGHT_GIRLS.percentile.monthly-493edc9a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-965e6633.js → HEIGHT_GIRLS.percentile.weekly-11bbc9da.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-a47f4c9a.js → HEIGHT_GIRLS.percentile.yearly-8bb7fe1e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-729a8bb5.js → HEIGHT_GIRLS.zscore.monthly-10ef7eca.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-f94a5348.js → HEIGHT_GIRLS.zscore.weekly-e50e5919.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-a9ab73f8.js → HEIGHT_GIRLS.zscore.yearly-51f99fe7.js} +0 -0
- /package/build/{Onboarding-b1d559e7.js → Onboarding-14b02690.js} +0 -0
- /package/build/{Visible-5628232f.js → Visible-99c5afd3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3872ff0c.js → WEIGHT_BOYS.percentile.monthly-190f3235.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-98caba45.js → WEIGHT_BOYS.percentile.weekly-79da216d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f5726dec.js → WEIGHT_BOYS.percentile.yearly-bc1a3d43.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-78907fac.js → WEIGHT_BOYS.zscore.monthly-fa57b622.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-87742630.js → WEIGHT_BOYS.zscore.weekly-40266199.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-6c42a27c.js → WEIGHT_BOYS.zscore.yearly-3378eef2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-737cdae7.js → WEIGHT_GIRLS.percentile.monthly-95bb8126.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-9b337ca5.js → WEIGHT_GIRLS.percentile.weekly-c85954ca.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c3f0bf40.js → WEIGHT_GIRLS.percentile.yearly-4cae8e21.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-30d18d7b.js → WEIGHT_GIRLS.zscore.monthly-3cfef20c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e62e35bc.js → WEIGHT_GIRLS.zscore.weekly-3e297de4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-68025da5.js → WEIGHT_GIRLS.zscore.yearly-23531d3b.js} +0 -0
- /package/build/{constants-747308e3.js → constants-219d03fa.js} +0 -0
- /package/build/{cookieHelper-84a6a64e.js → cookieHelper-47a413fe.js} +0 -0
- /package/build/{dataTransform-38950674.js → dataTransform-016e5396.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-a41b0df5.js → BMI_BOYS.percentile.monthly-17ba8935.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5cb93233.js → BMI_BOYS.percentile.weekly-95362992.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7acab009.js → BMI_BOYS.percentile.yearly-67e97cd3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-06fc44ed.js → BMI_BOYS.zscore.monthly-ec079573.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-3b078181.js → BMI_BOYS.zscore.weekly-892e1350.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-7635211d.js → BMI_BOYS.zscore.yearly-9e4e840c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-55339604.js → BMI_GIRLS.percentile.monthly-cb5f1bf4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-e2611fc7.js → BMI_GIRLS.percentile.weekly-1f072f7d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-329b3569.js → BMI_GIRLS.percentile.yearly-8c9daf30.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-3b1a5c93.js → BMI_GIRLS.zscore.monthly-2f3412dc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-8378decd.js → BMI_GIRLS.zscore.weekly-829ebf12.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-52cc14cb.js → BMI_GIRLS.zscore.yearly-0dbc52e1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-61d7fe7f.js → HEAD CIRCUM_BOYS.percentile.monthly-12c1423e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7b726611.js → HEAD CIRCUM_BOYS.percentile.weekly-854ddada.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-4cc976a8.js → HEAD CIRCUM_BOYS.percentile.yearly-37dc6459.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e7e49ca1.js → HEAD CIRCUM_BOYS.zscore.monthly-db8fbf38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d70c1eae.js → HEAD CIRCUM_BOYS.zscore.weekly-72731c5f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-e033ecfe.js → HEAD CIRCUM_BOYS.zscore.yearly-209bee90.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-46829c05.js → HEAD CIRCUM_GIRLS.percentile.monthly-46246bf1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-0364573c.js → HEAD CIRCUM_GIRLS.percentile.weekly-1d1f50f6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f1b5739a.js → HEAD CIRCUM_GIRLS.percentile.yearly-bd5a36d8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-4f617935.js → HEAD CIRCUM_GIRLS.zscore.monthly-0487262e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-98031837.js → HEAD CIRCUM_GIRLS.zscore.weekly-c302dc84.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-0513f8e5.js → HEAD CIRCUM_GIRLS.zscore.yearly-c2ee2b81.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0feff9f6.js → HEIGHT_BOYS.percentile.monthly-3b874478.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-974ec4ca.js → HEIGHT_BOYS.percentile.weekly-90296f86.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-962d1b63.js → HEIGHT_BOYS.percentile.yearly-ad05f31c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a110c21a.js → HEIGHT_BOYS.zscore.monthly-390997dc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5d5a66c8.js → HEIGHT_BOYS.zscore.weekly-5efe2f33.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-6b40fe58.js → HEIGHT_BOYS.zscore.yearly-6f53482c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c88cdfb5.js → HEIGHT_GIRLS.percentile.monthly-220a2a2a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-10589f87.js → HEIGHT_GIRLS.percentile.weekly-c4dd9457.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-06416dce.js → HEIGHT_GIRLS.percentile.yearly-a9be43b7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-6b6b8944.js → HEIGHT_GIRLS.zscore.monthly-4d43f11a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-05b8b1e8.js → HEIGHT_GIRLS.zscore.weekly-fe7228ed.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0d1754a8.js → HEIGHT_GIRLS.zscore.yearly-0414a9f6.js} +0 -0
- /package/build/esm/{Onboarding-fd579f72.js → Onboarding-3d3e6c2b.js} +0 -0
- /package/build/esm/{Visible-87dd55d4.js → Visible-923ccaf7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-d0422149.js → WEIGHT_BOYS.percentile.monthly-43326dd0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c39d2f84.js → WEIGHT_BOYS.percentile.weekly-39286bd9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5ae01058.js → WEIGHT_BOYS.percentile.yearly-322a17c8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-0124c542.js → WEIGHT_BOYS.zscore.monthly-91de3cea.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9ef5a25f.js → WEIGHT_BOYS.zscore.weekly-0ae18050.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-fb69bbc5.js → WEIGHT_BOYS.zscore.yearly-0677c03c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-3dd2ec93.js → WEIGHT_GIRLS.percentile.monthly-35a23c8c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-6ad06231.js → WEIGHT_GIRLS.percentile.weekly-9e12b459.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f19bf1ca.js → WEIGHT_GIRLS.percentile.yearly-ee2b9198.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9b2c414a.js → WEIGHT_GIRLS.zscore.monthly-578a7681.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-21b23f91.js → WEIGHT_GIRLS.zscore.weekly-a0273820.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-2e67337b.js → WEIGHT_GIRLS.zscore.yearly-4285f585.js} +0 -0
- /package/build/esm/{constants-126b1bf1.js → constants-b2f78bab.js} +0 -0
- /package/build/esm/{cookieHelper-6c64533f.js → cookieHelper-3c8a0098.js} +0 -0
- /package/build/esm/{dataTransform-99b1cf6a.js → dataTransform-38d285f1.js} +0 -0
- /package/build/esm/{index-46ca8299.js → index-6998e522.js} +0 -0
- /package/build/esm/{isProduction-ee053516.js → isProduction-32680346.js} +0 -0
- /package/build/esm/{localizeNumberFormat-5a52ff92.js → localizeNumberFormat-002ae05a.js} +0 -0
- /package/build/esm/{normalizeLink-e3ff1c11.js → normalizeLink-ac29bb2d.js} +0 -0
- /package/build/esm/{number-895411ae.js → number-5960f6cc.js} +0 -0
- /package/build/esm/{paths-8848792b.js → paths-b71decd1.js} +0 -0
- /package/build/esm/{screenSizeContext-9a12cff0.js → screenSizeContext-39dfc639.js} +0 -0
- /package/build/esm/{theme-552e8fb4.js → theme-9fc24894.js} +0 -0
- /package/build/esm/{translationsContext-cd4c35ad.js → translationsContext-17f85d9d.js} +0 -0
- /package/build/esm/{tslib.es6-ff502d3f.js → tslib.es6-098ba6eb.js} +0 -0
- /package/build/esm/{types-543400b8.js → types-12c4655c.js} +0 -0
- /package/build/esm/{useIsInit-8814c69e.js → useIsInit-35b5adad.js} +0 -0
- /package/build/esm/{useOutsideClick-eb1e8600.js → useOutsideClick-ef7a3933.js} +0 -0
- /package/build/esm/{useScrollbarSize-45acc65f.js → useScrollbarSize-50162df5.js} +0 -0
- /package/build/{index-79f5bb6a.js → index-a8d2990c.js} +0 -0
- /package/build/{isProduction-162f7f61.js → isProduction-5eb52262.js} +0 -0
- /package/build/{localizeNumberFormat-904473e8.js → localizeNumberFormat-9aa38084.js} +0 -0
- /package/build/{normalizeLink-4f491971.js → normalizeLink-94b5b632.js} +0 -0
- /package/build/{number-0eeeecf7.js → number-121ac00f.js} +0 -0
- /package/build/{paths-60a0f975.js → paths-50c261da.js} +0 -0
- /package/build/{screenSizeContext-99e2010b.js → screenSizeContext-28c06621.js} +0 -0
- /package/build/{theme-b23d8bfb.js → theme-dc381d37.js} +0 -0
- /package/build/{translationsContext-ba58eaf1.js → translationsContext-9ee948b8.js} +0 -0
- /package/build/{tslib.es6-16ffcffb.js → tslib.es6-1b34f9a8.js} +0 -0
- /package/build/{types-e49fce99.js → types-a5b0dd64.js} +0 -0
- /package/build/{useIsInit-e651aafb.js → useIsInit-993eec15.js} +0 -0
- /package/build/{useOutsideClick-553f8660.js → useOutsideClick-2e178680.js} +0 -0
- /package/build/{useScrollbarSize-086d4a91.js → useScrollbarSize-33ff925d.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle as o,useState as a,useRef as i,useEffect as l,useMemo as s,Fragment as m}from"react";import{_ as d,a as c}from"./tslib.es6-
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle as o,useState as a,useRef as i,useEffect as l,useMemo as s,Fragment as m}from"react";import{_ as d,a as c}from"./tslib.es6-098ba6eb.js";import{Box as p,Input as g,Grid as u,Title as h,Container as b,Flex as E,rem as f,Stack as L,AspectRatio as v}from"@mantine/core";import{P as y,e as C,R as x,O as w,f as S,u as j,B as P}from"./index-182cff37.js";import{D as O}from"./index-9307ecd1.js";import{T as k,I as F}from"./index-ef082b02.js";import"dayjs";import{M as z,k as B}from"./screenSizeContext-39dfc639.js";import N from"styled-components";import{t as T}from"./theme-9fc24894.js";import{L as I}from"./index-28fdf8d0.js";import"./isProduction-32680346.js";import"./Onboarding-3d3e6c2b.js";import{CommonGAssets as D}from"./gAssets.js";import{u as A}from"./useTranslations-756fc193.js";import{useInterval as Z,useCounter as _}from"@mantine/hooks";import{A as V}from"./index-c397360c.js";import"lodash/debounce";import"./useCategory-d0c0a3cf.js";import{V as q}from"./Visible-923ccaf7.js";import{createFormContext as $,yupResolver as H}from"@mantine/form";import{M as W,h as U}from"./utils-e101ff6d.js";export{M as MAPPED_LOCALE}from"./utils-e101ff6d.js";import{H as Y}from"./index.styles-1ce44a1d.js";import"./index-2496a47b.js";import{L as R}from"./utils-23eb0cb7.js";import"@mantine/dates";import"./index.styled-a6258456.js";import"./index-0c0b9e1b.js";import*as G from"yup";import{createPortal as K}from"react-dom";import"./translationsContext-17f85d9d.js";import"string-format";import J from"lodash/throttle";import{B as Q}from"./index-a2022cc1.js";import{T as X}from"./index-dbf35f15.js";import{format as ee}from"date-fns";import te from"react-keyed-flatten-children";import"@mantine/carousel";import"date-fns/locale";import"./index-811fb472.js";import"./cookieHelper-3c8a0098.js";import"slugify";const ne=t({currentStep:0,setCurrentStep:()=>!1,setMaxStep:()=>!1,nextStep:()=>!1,prevStep:()=>!1,isMarryBaby:!1,siteType:"helloSites",sharedData:{},setSharedData:()=>!1}),[re,oe,ae]=$(),ie=N(p)`
|
|
2
2
|
.phone-input {
|
|
3
3
|
width: 100%;
|
|
4
4
|
margin-bottom: 32px;
|
|
5
|
-
${
|
|
5
|
+
${z.mbDown} {
|
|
6
6
|
margin-bottom: 16px;
|
|
7
7
|
}
|
|
8
8
|
.PhoneInput {
|
|
@@ -15,43 +15,43 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
15
15
|
border-radius: 0 4px 4px 0;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`,le=t=>{var{inputOrder:n=["phone"],withSimilac:r=!1,customTerms:o="",formContext:a}=t,i=d(t,["inputOrder","withSimilac","customTerms","formContext"]);const{t:l}=
|
|
18
|
+
`,le=t=>{var{inputOrder:n=["phone"],withSimilac:r=!1,customTerms:o="",formContext:a}=t,i=d(t,["inputOrder","withSimilac","customTerms","formContext"]);const{t:l}=A(),s=a||oe(),m={phone:t=>{var{label:n,name:o="phone"}=t,a=d(t,["label","name"]);return e.createElement(g.Wrapper,{className:r?"input-control":"phone-input",withAsterisk:!0,label:n||r?e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},n||l("onboarding.similac.input.phone")):void 0},e.createElement(y,Object.assign({defaultCountry:W[process.env.UNIFY_LOCALE]||"VN"},s.getInputProps(o),a)),e.createElement(g.Error,{size:"md"},s.errors.phone))},full_name:t=>{var{label:n,name:r="name"}=t,o=d(t,["label","name"]);return e.createElement(C,Object.assign({label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},n||l("onboarding.formEmail.yourName")),withAsterisk:!0},s.getInputProps(r),o))},email:t=>{var{label:n,name:r="email"}=t,o=d(t,["label","name"]);return e.createElement(C,Object.assign({label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},n||l("onboarding.formEmail.yourEmail")),withAsterisk:!0},s.getInputProps(r),o))},dob:t=>{var{label:n,name:r="dob"}=t,o=d(t,["label","name"]);return e.createElement(O,Object.assign({label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},n||l("onboarding.formEmail.yourBirthday")),placeholder:"DD/MM/YYYY"},s.getInputProps(r),o))},gender:t=>{var{label:n,name:r="gender"}=t,o=d(t,["label","name"]);return e.createElement(x.Group,Object.assign({className:"radio-group",label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},n||l("tools.selectGender"))},s.getInputProps(r),o),e.createElement(x,{value:"0",label:l("onboarding.formEmail.genderMale")}),e.createElement(x,{value:"1",label:l("onboarding.formEmail.genderFemale")}))},otp:({name:t="otp"})=>e.createElement("div",{className:"otp-input"},e.createElement(w,Object.assign({enterKeyHint:void 0,nonce:void 0},s.getInputProps(t))),e.createElement(g.Error,null,s.errors.otp)),password:({label:t,name:n="password"})=>e.createElement(C.Password,Object.assign({label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},t||l("onboarding.updatePassword.password")),withAsterisk:!0,rightSection:e.createElement(q,null)},s.getInputProps(n))),confirm_password:({label:t,name:n="confirmPassword"})=>e.createElement(C.Password,Object.assign({label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},t||l("onboarding.updatePassword.confirmPassword")),withAsterisk:!0,rightSection:e.createElement(q,null)},s.getInputProps(n))),term:({name:t="term",className:n=""})=>o?e.createElement("div",{style:{marginBottom:16},className:n},e.createElement(S,Object.assign({label:e.createElement(k,{size:"p4",as:"span",sx:{a:{color:"#2d87f3",fontWeight:"bold",letterSpacing:0}}},o)},s.getInputProps(t,{type:"checkbox"}),{error:null})),e.createElement(g.Error,{size:"md"},s.getInputProps("term",{type:"checkbox"}).error)):null,address:t=>{var{label:n,className:r="",name:o="address"}=t,a=d(t,["label","className","name"]);return e.createElement(V,Object.assign({className:`${r} input-control`,label:e.createElement(k,{size:"s4",weight:"semiBold",as:"span"},n||l("onboarding.similac.input.address"))},s.getInputProps(o),a))}},c=n.map((e=>{var t;const n="string"==typeof e?{inputType:e}:e;return null===(t=m[n.inputType])||void 0===t?void 0:t.call(m,n)}));return e.createElement(ie,Object.assign({},i),c)},se=e=>G.object().shape({phone:G.string().required(e("onboarding.updatePhone.error")).default(""),name:G.string().required(e("onboarding.errorMessage.requiredName")),email:G.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),address:G.mixed().required(e("onboarding.similac.address.error")),term:G.bool().oneOf([!0],e("onboarding.similac.term.error"))});var me=n(((t,n)=>{var{inputOrder:a,onSubmit:i,validateSchema:l,defaultValues:s,isActive:m,customTerms:g,customFormTexts:u}=t,h=d(t,["inputOrder","onSubmit","validateSchema","defaultValues","isActive","customTerms","customFormTexts"]);const{nextStep:b,setSharedData:E,sharedData:f}=r(ne),{t:L}=A(),v=ae({initialValues:{term:!1,phone:(null==f?void 0:f.phone)||(null==s?void 0:s.phone)||"",email:(null==f?void 0:f.email)||(null==s?void 0:s.email)||"",name:(null==f?void 0:f.name)||(null==s?void 0:s.name)||""},validate:l||H(se(L))}),y=e=>c(void 0,void 0,void 0,(function*(){try{yield null==i?void 0:i(e),E((t=>Object.assign(Object.assign({},t),{phone:e.phone,email:e.email,name:e.name}))),b()}catch(e){console.error(e)}})),C=e=>{console.log(e)},x=()=>{var e;return null===(e=v.onSubmit(y,C))||void 0===e?void 0:e()};return o(n,(()=>({submitForm:x}))),e.createElement(p,Object.assign({"data-active":m},h),e.createElement(p,{sx:e=>({display:"flex",flexDirection:"column",gap:"16px",[e.fn.largerThan("md")]:{gap:"24px"}})},e.createElement(p,{sx:{textAlign:"center"}},e.createElement(Y,{tag:"h4",as:"h2"},null==u?void 0:u.heading),e.createElement(k,{size:"p3"},null==u?void 0:u.description)),e.createElement(re,{form:v},e.createElement("form",{className:"friso-form",style:{width:"100%"},onSubmit:v.onSubmit(y,C)},e.createElement(p,{sx:{".friso-form":{display:"flex",flexWrap:"wrap",gap:"8px",".input-control":{width:"100%",marginBottom:0},".phone-input":{marginBottom:"0 !important",".PhoneInput":{marginBottom:"0 !important"}}}}},e.createElement(le,{inputOrder:a,customTerms:g,className:"friso-form"}))))))}));const de=N.div`
|
|
19
19
|
position: fixed;
|
|
20
20
|
inset: 0;
|
|
21
21
|
z-index: 1000;
|
|
22
22
|
background: white;
|
|
23
23
|
overflow-y: auto;
|
|
24
|
-
`,ce=
|
|
24
|
+
`,ce=N.div`
|
|
25
25
|
height: 100%;
|
|
26
|
-
${
|
|
26
|
+
${z.lgPcUp} {
|
|
27
27
|
display: table;
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: calc(100% - 25px);
|
|
30
30
|
}
|
|
31
|
-
`,pe=
|
|
31
|
+
`,pe=N.div`
|
|
32
32
|
padding: 16px;
|
|
33
|
-
${
|
|
33
|
+
${z.mbUp} {
|
|
34
34
|
padding: 48px 24px 24px;
|
|
35
35
|
}
|
|
36
36
|
&[data-similac='true'][data-has-banner='true'] {
|
|
37
|
-
${
|
|
37
|
+
${z.mbDown} {
|
|
38
38
|
background: white;
|
|
39
39
|
border-top-left-radius: 1rem;
|
|
40
40
|
border-top-right-radius: 1rem;
|
|
41
41
|
margin-top: -1rem;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`,ge=
|
|
44
|
+
`,ge=N.div`
|
|
45
45
|
width: 640px;
|
|
46
46
|
padding: 16px 16px 0 16px;
|
|
47
47
|
display: none;
|
|
48
48
|
|
|
49
|
-
${
|
|
49
|
+
${z.mbUp} {
|
|
50
50
|
width: 640px;
|
|
51
51
|
display: table-cell;
|
|
52
52
|
}
|
|
53
|
-
`,ue=
|
|
54
|
-
background-color: ${
|
|
53
|
+
`,ue=N.div`
|
|
54
|
+
background-color: ${T.colors.primary50};
|
|
55
55
|
border-radius: 12px;
|
|
56
56
|
height: 100%;
|
|
57
57
|
display: flex;
|
|
@@ -59,12 +59,12 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
59
59
|
justify-content: space-between;
|
|
60
60
|
|
|
61
61
|
&[data-is-marry-baby='true'] {
|
|
62
|
-
background-color: ${
|
|
62
|
+
background-color: ${T.mbColors.tonePink};
|
|
63
63
|
}
|
|
64
|
-
`,he=
|
|
64
|
+
`,he=N.div`
|
|
65
65
|
margin-top: 40px;
|
|
66
66
|
padding: 24px 40px;
|
|
67
|
-
`,be=
|
|
67
|
+
`,be=N.div`
|
|
68
68
|
width: 100%;
|
|
69
69
|
display: block;
|
|
70
70
|
img {
|
|
@@ -79,13 +79,13 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
79
79
|
object-fit: contain;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
${
|
|
82
|
+
${z.mbUp} {
|
|
83
83
|
position: sticky;
|
|
84
84
|
top: 0;
|
|
85
85
|
height: 100vh;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
`,Ee=
|
|
88
|
+
`,Ee=N.div`
|
|
89
89
|
margin-top: 70px;
|
|
90
90
|
display: flex;
|
|
91
91
|
flex-direction: column;
|
|
@@ -94,7 +94,7 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
94
94
|
&.similac {
|
|
95
95
|
margin-top: 16px;
|
|
96
96
|
}
|
|
97
|
-
`,fe=
|
|
97
|
+
`,fe=N(b)`
|
|
98
98
|
&.hhg-comp-onboarding-container.hhg-comp-onboarding-container {
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
@@ -106,7 +106,7 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
106
106
|
.header {
|
|
107
107
|
margin-bottom: 32px;
|
|
108
108
|
text-align: center;
|
|
109
|
-
${
|
|
109
|
+
${z.mbDown} {
|
|
110
110
|
margin-bottom: 16px;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -135,13 +135,13 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
135
135
|
.form-button {
|
|
136
136
|
width: 100%;
|
|
137
137
|
}
|
|
138
|
-
`,Le=
|
|
138
|
+
`,Le=N.img`
|
|
139
139
|
margin-bottom: 38px;
|
|
140
|
-
`,ve=t=>{var n,{heading:o,description:a,children:i,className:l,imgSrc:s,hiddenLogo:m=!1}=t,c=d(t,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:p,siteType:g}=r(ne);return e.createElement(fe,Object.assign({},c,{className:`hhg-comp-onboarding-container ${l}`,size:"sm"}),!m&&e.createElement(
|
|
140
|
+
`,ve=t=>{var n,{heading:o,description:a,children:i,className:l,imgSrc:s,hiddenLogo:m=!1}=t,c=d(t,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:p,siteType:g}=r(ne);return e.createElement(fe,Object.assign({},c,{className:`hhg-comp-onboarding-container ${l}`,size:"sm"}),!m&&e.createElement(R,{type:p?g:(null===(n=I[process.env.UNIFY_LOCALE])||void 0===n?void 0:n.LOGO_TYPE)||"hellobacsi"}),e.createElement(Ee,{className:m?"similac":""},s&&e.createElement(Le,{src:s,loading:"lazy"}),(o||a)&&e.createElement("div",{className:"header"},o&&e.createElement(h,{order:3},o),a&&e.createElement(k,{size:"p3",mt:8,color:T.colors.gray600},a)),i))},ye=N(ve)`
|
|
141
141
|
.phone-input {
|
|
142
142
|
width: 100%;
|
|
143
143
|
margin-bottom: 32px;
|
|
144
|
-
${
|
|
144
|
+
${z.mbDown} {
|
|
145
145
|
margin-bottom: 16px;
|
|
146
146
|
}
|
|
147
147
|
.PhoneInput {
|
|
@@ -157,10 +157,10 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
157
157
|
&:not([data-active='true']) {
|
|
158
158
|
display: none !important;
|
|
159
159
|
}
|
|
160
|
-
`,Ce=e=>G.object().shape({phone:G.string().required(e("onboarding.updatePhone.error")).default("")}),xe=
|
|
160
|
+
`,Ce=e=>G.object().shape({phone:G.string().required(e("onboarding.updatePhone.error")).default("")}),xe=N(ve)`
|
|
161
161
|
.otp-input {
|
|
162
162
|
margin-bottom: 36px;
|
|
163
|
-
${
|
|
163
|
+
${z.mbDown} {
|
|
164
164
|
margin-bottom: 20px;
|
|
165
165
|
}
|
|
166
166
|
.otpContainer {
|
|
@@ -171,7 +171,7 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
171
171
|
display: flex;
|
|
172
172
|
gap: 6px;
|
|
173
173
|
margin-bottom: 32px;
|
|
174
|
-
${
|
|
174
|
+
${z.mbDown} {
|
|
175
175
|
margin-bottom: 16px;
|
|
176
176
|
}
|
|
177
177
|
a {
|
|
@@ -190,7 +190,7 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
190
190
|
margin-bottom: 3px;
|
|
191
191
|
margin-left: 3px;
|
|
192
192
|
}
|
|
193
|
-
`,we=e=>G.object().shape({otp:G.string().required(e("onboarding.otpForm.error")).length(6,e("onboarding.otpForm.error")).default("")}),Se=e=>G.object().shape({email:G.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),name:G.string().required(e("onboarding.errorMessage.requiredName"))}),
|
|
193
|
+
`,we=e=>G.object().shape({otp:G.string().required(e("onboarding.otpForm.error")).length(6,e("onboarding.otpForm.error")).default("")}),Se=e=>G.object().shape({email:G.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),name:G.string().required(e("onboarding.errorMessage.requiredName"))}),je=N.div`
|
|
194
194
|
margin-top: 70px;
|
|
195
195
|
display: flex;
|
|
196
196
|
flex-direction: column;
|
|
@@ -199,7 +199,7 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
199
199
|
&.similac {
|
|
200
200
|
margin-top: 16px;
|
|
201
201
|
}
|
|
202
|
-
`,
|
|
202
|
+
`,Me=N(b)`
|
|
203
203
|
&.hhg-comp-onboarding-container.hhg-comp-onboarding-container {
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-direction: column;
|
|
@@ -211,7 +211,7 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
211
211
|
.header {
|
|
212
212
|
margin-bottom: 32px;
|
|
213
213
|
text-align: center;
|
|
214
|
-
${
|
|
214
|
+
${z.mbDown} {
|
|
215
215
|
margin-bottom: 16px;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -240,13 +240,13 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
240
240
|
.form-button {
|
|
241
241
|
width: 100%;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,Pe=N.img`
|
|
244
244
|
margin-bottom: 38px;
|
|
245
|
-
`,Oe=t=>{var n,{heading:o,description:a,children:i,className:l,imgSrc:s,hiddenLogo:m=!1}=t,c=d(t,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:p,siteType:g}=r(ne);return e.createElement(
|
|
245
|
+
`,Oe=t=>{var n,{heading:o,description:a,children:i,className:l,imgSrc:s,hiddenLogo:m=!1}=t,c=d(t,["heading","description","children","className","imgSrc","hiddenLogo"]);const{isMarryBaby:p,siteType:g}=r(ne);return e.createElement(Me,Object.assign({},c,{className:`hhg-comp-onboarding-container ${l}`,size:"sm"}),!m&&e.createElement(R,{type:p?g:(null===(n=I[process.env.UNIFY_LOCALE])||void 0===n?void 0:n.LOGO_TYPE)||"hellobacsi"}),e.createElement(je,{className:m?"similac":""},s&&e.createElement(Pe,{src:s,loading:"lazy"}),e.createElement("div",{className:"header"},e.createElement(h,{order:3},o),e.createElement(k,{size:"p3",mt:8,color:T.colors.gray600},a)),i))},ke=N(ve)`
|
|
246
246
|
.phone-input {
|
|
247
247
|
width: 100%;
|
|
248
248
|
margin-bottom: 32px;
|
|
249
|
-
${
|
|
249
|
+
${z.mbDown} {
|
|
250
250
|
margin-bottom: 16px;
|
|
251
251
|
}
|
|
252
252
|
.PhoneInput {
|
|
@@ -262,11 +262,11 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
262
262
|
&:not([data-active='true']) {
|
|
263
263
|
display: none !important;
|
|
264
264
|
}
|
|
265
|
-
`,Fe=(e,t)=>G.object().shape({phone:G.string().required(e("onboarding.updatePhone.error")).default(""),name:G.string().required(e("onboarding.errorMessage.requiredName")),email:G.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),address:G.mixed().required(e("onboarding.similac.address.error")),term:t?G.bool():G.bool().oneOf([!0],e("onboarding.similac.term.error"))}),ze=
|
|
265
|
+
`,Fe=(e,t)=>G.object().shape({phone:G.string().required(e("onboarding.updatePhone.error")).default(""),name:G.string().required(e("onboarding.errorMessage.requiredName")),email:G.string().required(e("onboarding.errorMessage.requiredEmail")).email(e("onboarding.errorMessage.invalidEmail")).default(""),address:G.mixed().required(e("onboarding.similac.address.error")),term:t?G.bool():G.bool().oneOf([!0],e("onboarding.similac.term.error"))}),ze=N(ve)`
|
|
266
266
|
.phone-input {
|
|
267
267
|
width: 100%;
|
|
268
268
|
margin-bottom: 32px;
|
|
269
|
-
${
|
|
269
|
+
${z.mbDown} {
|
|
270
270
|
margin-bottom: 16px;
|
|
271
271
|
}
|
|
272
272
|
.PhoneInput {
|
|
@@ -282,4 +282,4 @@ import e,{createContext as t,forwardRef as n,useContext as r,useImperativeHandle
|
|
|
282
282
|
&:not([data-active='true']) {
|
|
283
283
|
display: none !important;
|
|
284
284
|
}
|
|
285
|
-
`,Be=e=>G.object().shape({password:G.string().required(e("onboarding.errorMessage.requiredPassword")).min(8,e("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,e("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:G.string().required(e("onboarding.errorMessage.requiredConfirmPassword")).oneOf([G.ref("password"),null],e("onboarding.errorMessage.passNotMatch")).default("")}),Ne={Provider:({children:t,siteType:n,setSharedData:r})=>{const[o,i]=a(0),[s,m]=a(0),[d,c]=a({});return l((()=>{null==r||r(d)}),[d,r]),e.createElement(ne.Provider,{value:{currentStep:o,setCurrentStep:i,setMaxStep:m,nextStep:()=>o+1<=s&&i(o+1),prevStep:()=>o-1>=0&&i(o-1),siteType:n,isMarryBaby:"marryBaby"===n,sharedData:d,setSharedData:c}},t)},Modal:t=>{var{children:n,withSimilac:o,banner:a,withPortal:i}=t,l=d(t,["children","withSimilac","banner","withPortal"]);const{isMobile:s}=j(),{isMarryBaby:m}=r(ne),{t:c}=_();if(i&&"undefined"==typeof window)return null;const p=e.createElement(de,Object.assign({},l),e.createElement(ce,null,e.createElement(u,{sx:{[N.mbDown]:{margin:0},".mantine-Grid-col":{[N.mbDown]:{padding:0}}}},e.createElement(u.Col,{span:"object"!=typeof a&&!o||s?12:6,order:o?2:1,orderMd:o?1:2,sx:{zIndex:o?99:void 0}},e.createElement(pe,{"data-similac":o,"data-has-banner":"object"==typeof a},n)),a&&"object"==typeof a&&!o&&e.createElement(u.Col,{span:s?12:6,order:1,orderMd:2},e.createElement(ge,null,e.createElement(ue,{"data-is-marry-baby":m},e.createElement(he,null,a.heading&&e.createElement(h,{order:1,mb:24},a.heading),a.description&&e.createElement(z,{size:"p1",color:D.colors.gray800},c("onboarding.welcomeScreen.content"))),e.createElement(be,null,a.imgSrc?e.createElement("img",{src:a.imgSrc,loading:"lazy"}):a.imgComponent?a.imgComponent:null)))),a&&"object"==typeof a&&o&&(a.imgSrc||a.imgComponent)&&e.createElement(u.Col,{span:"auto",order:1,orderMd:2},e.createElement(be,{className:"similac"},a.imgSrc?e.createElement("img",{src:a.imgSrc,loading:"lazy"}):a.imgComponent?a.imgComponent:null)))));return i?K(p,T()):p},Form:({onClose:t,onSubmit:n,canSkip:o=!0,customFormTexts:a,isActive:i,submitProps:l,submitLabel:s,skipProps:m,isWhatsApp:d})=>{const{t:p}=_(),{sharedData:g,setSharedData:u,nextStep:h}=r(ne),b=ae({initialValues:{phone:(null==g?void 0:g.phone)||""},validate:W(Ce(p))});return e.createElement(ye,{heading:(null==a?void 0:a.heading)||p("onboarding.updatePhone.heading"),description:(null==a?void 0:a.description)||p(d?"onboarding.updateWhatsapp.description":"onboarding.updatePhone.description"),"data-active":i},e.createElement(re,{form:b},e.createElement("form",{onSubmit:b.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{u((t=>Object.assign(Object.assign({},t),{phone:e.phone}))),yield null==n?void 0:n(e.phone),h()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:["phone"]}),e.createElement(k,Object.assign({variant:"primary",fullWidth:!0,size:"lg"},d&&{leftIcon:e.createElement(B.WhatsApp,{size:18,useCurrentColor:!0})},l,{type:"submit","data-event-category":d?"OTP":"Sign Up","data-event-action":d?"Whatsapp - Fill phone and continue Click":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"}),s||p(d?"onboarding.updateWhatsapp.submitLabel":"onboarding.button.continue")),o&&e.createElement(k,Object.assign({variant:"ghost",fullWidth:!0,size:"lg"},d&&{dataEventCategory:"OTP",dataEventAction:"Whatsapp - Skip fill phone Click",dataEventLabel:"undefined"!=typeof window?window.location.href:""},m,{onClick:t,type:"button"}),p("onboarding.button.skip")))))},OtpForm:{Email:({onSubmit:t,email:n,onResendCode:o,otpError:m,onClose:d,loading:p,canSkip:g})=>{const{sharedData:{email:u,retryEmailCount:h},setSharedData:b,prevStep:E,siteType:f,isMarryBaby:L,nextStep:v}=r(ne),y=n||u||"",[C,x]=a(30),w=V((()=>x((e=>e-1))),1e3),[S,M]=q(0,{min:0,max:3}),P=i(!0),{t:j}=_();l((()=>(w.start(),w.stop)),[]),l((()=>{0===C&&(w.stop(),P.current=!1)}),[C]);const O=ae({initialValues:{otp:""},validate:W(we(j))});l((()=>{m&&O.setFieldError("otp",m)}),[m]);const k=s((()=>J((()=>{P.current||(M.increment(),x(30),null==o||o(y),w.start(),P.current=!0)}),1e3,{trailing:!1})),[y,o,w]),F=h>=2;return e.createElement(xe,{heading:j("onboarding.otpForm.heading"),description:e.createElement(e.Fragment,null,e.createElement("span",{dangerouslySetInnerHTML:{__html:j("onboarding.otpForm.descriptionEmail",{email:`<b style="color:${D.colors.gray800}">${R(y)}</b>`})}}),!F&&e.createElement("svg",{onClick:()=>{h>=2||(b((e=>Object.assign(Object.assign({},e),{retryEmailCount:e.retryEmailCount+1}))),E())},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},e.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},e.createElement(re,{form:O},e.createElement("form",{onSubmit:O.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{M.increment();!(yield null==t?void 0:t(e.otp))&&v()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:["otp"]}),e.createElement("div",{className:"resend"},e.createElement(X,{size:"p4",color:D.colors.gray400},j("onboarding.otpForm.notReceiveOTP")),e.createElement(X,{as:"a",size:"p4",color:L?D.mbColors.pink:D.colors.primaryBase,onClick:k},j("onboarding.otpForm.resendCode",{seconds:C}))),e.createElement(Q,{theme:f,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:p,disabled:p,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},j("onboarding.button.continue")),g&&S>=3&&e.createElement(Q,{theme:f,color:"ghost",isBlock:!0,size:"lg",onClick:d,type:"button"},j("onboarding.button.skip")))))},Phone:({onSubmit:t,phone:n,onResendCode:o,otpError:m,onClose:d,loading:p,canSkip:g,isWhatsApp:u})=>{const{sharedData:{phone:h,retryPhoneCount:b},setSharedData:L,prevStep:v,siteType:y,isMarryBaby:C,nextStep:x}=r(ne),w=n||h||"",[S,M]=a(30),P=V((()=>M((e=>e-1))),1e3),[j,O]=q(0,{min:0,max:3}),k=i(!0),{t:F}=_();l((()=>(P.start(),P.stop)),[]),l((()=>{0===S&&(P.stop(),k.current=!1)}),[S]);const B=ae({initialValues:{otp:""},validate:W(we(F))});l((()=>{m&&B.setFieldError("otp",m)}),[m]);const N=s((()=>J((()=>{k.current||(O.increment(),M(30),null==o||o(w),P.start(),k.current=!0)}),1e3,{trailing:!1})),[w,o,P]),T=b>=2,I=`<b style="color:${D.colors.gray800}">${w.slice(0,-3).replace(/./g,"x").concat(w.slice(-3))}</b>`;return e.createElement(xe,{heading:u?e.createElement(E,{align:"center",justify:"center",gap:f(8)},e.createElement("img",{style:{width:f(24)},loading:"lazy",src:Z.getAssetPath("whatsapp.svg"),alt:"whatsapp"}),e.createElement("span",null,F("onboarding.otpWhatsapps.heading"))):F("onboarding.otpForm.heading"),description:e.createElement(e.Fragment,null,e.createElement("span",{dangerouslySetInnerHTML:{__html:F(u?"onboarding.otpWhatsapps.description":"onboarding.otpForm.description",{phone:I})}}),!T&&e.createElement("svg",{onClick:()=>{b>=2||(L((e=>Object.assign(Object.assign({},e),{retryPhoneCount:e.retryPhoneCount+1}))),v())},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},e.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},e.createElement(re,{form:B},e.createElement("form",{onSubmit:B.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{O.increment();!(yield null==t?void 0:t(e.otp))&&x()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:["otp"]}),e.createElement("div",{className:"resend"},e.createElement(z,{size:"p4",color:D.colors.gray400},F("onboarding.otpForm.notReceiveOTP")),e.createElement(z,{as:"a",size:"p4",color:C?D.mbColors.pink:D.colors.primaryBase,onClick:N},F("onboarding.otpForm.resendCode",{seconds:S}))),e.createElement(Q,{theme:y,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:p,disabled:p,"data-event-category":u?"OTP":"Sign Up","data-event-action":u?"Whatsapp - OTP verified Click":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},F("onboarding.button.continue")),g&&j>=3&&e.createElement(Q,{theme:y,color:"ghost",isBlock:!0,size:"lg",onClick:d,type:"button"},F("onboarding.button.skip")))))}},PersonalInfoForm:({onClose:t,onSubmit:n,canSkip:o,loading:a,errorMessage:i,initialData:s})=>{const{t:m,locale:d}=_(),{siteType:p,isMarryBaby:g,setSharedData:u,nextStep:h}=r(ne),b=ae({validate:W(Se(m))});return l((()=>{b.setValues(Object.assign(Object.assign({gender:"0"},s),(null==s?void 0:s.birthday)&&{birthday:new Date(s.birthday)}))}),[s]),l((()=>{i&&b.setFieldError("email",i)}),[i]),e.createElement(Oe,{heading:m("onboarding.formEmail.heading"),description:m("onboarding.formEmail.description",{site:g?"Marry Baby":A[d].SITE_NAME_FORMATTED})},e.createElement(re,{form:b},e.createElement("form",{className:"form",onSubmit:b.onSubmit((e=>c(void 0,void 0,void 0,(function*(){u((t=>Object.assign(Object.assign({},t),e)));!(yield null==n?void 0:n(Object.assign(Object.assign({},e),{birthday:e.birthday&&ee(e.birthday,"yyyy-MM-dd")})))&&h()}))),(e=>{console.log({fieldErrors:e})}))},e.createElement(le,{inputOrder:["full_name","email","dob","gender"]}),e.createElement(Q,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:p,isLoading:a,disabled:a},m("onboarding.button.continue")),o&&e.createElement(Q,{theme:p,color:"ghost",isBlock:!0,size:"lg",onClick:t,type:"button"},m("onboarding.button.skip")))))},ResultScreen:t=>{var{onClose:n}=t,o=d(t,["onClose"]);const{t:a}=_(),{siteType:i}=r(ne);return e.createElement(Oe,Object.assign({},o),e.createElement(Q,{theme:i,size:"lg",onClick:n,className:"form-button"},a("onboarding.button.continue")))},SimilacForm:t=>{var{onClose:n,onSubmit:o,canSkip:a=!0,customFormTexts:i,customTerms:l,defaultValues:s,isActive:m}=t,p=d(t,["onClose","onSubmit","canSkip","customFormTexts","customTerms","defaultValues","isActive"]);const{t:g}=_(),{nextStep:u,setSharedData:h,sharedData:b}=r(ne),{isMobile:E}=j(),f=ae({initialValues:{term:!1,phone:(null==b?void 0:b.phone)||(null==s?void 0:s.phone)||"",email:(null==b?void 0:b.email)||(null==s?void 0:s.email)||"",name:(null==b?void 0:b.name)||(null==s?void 0:s.name)||""},validate:W(Fe(g,!l))}),L=(null==s?void 0:s.email)?["full_name","phone","address","term"]:["full_name","email","phone","address","term"];return e.createElement(ke,Object.assign({heading:(null==i?void 0:i.heading)||g("onboarding.updatePhone.heading"),description:(null==i?void 0:i.description)||g("onboarding.updatePhone.description"),hiddenLogo:E,"data-active":m},p),e.createElement(re,{form:f},e.createElement("form",{style:{width:"100%"},onSubmit:f.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{yield null==o?void 0:o(e),h((t=>Object.assign(Object.assign({},t),{phone:e.phone,email:e.email,name:e.name}))),u()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:L,withSimilac:!0,customTerms:l}),e.createElement(k,{fullWidth:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},g("onboarding.button.continue")),a&&e.createElement(k,{variant:"ghost",fullWidth:!0,size:"lg",onClick:n,type:"button"},g("onboarding.button.skip")))))},FrisoForm:me,UpdatePasswordForm:({onClose:t,onSubmit:n,canSkip:o,errorMessage:a,loading:i})=>{const{t:l}=_(),{nextStep:s}=r(ne),m=ae({initialValues:{password:"",confirmPassword:""},validate:W(Be(l))});return e.createElement(Oe,{heading:l("onboarding.updatePassword.heading"),description:l("onboarding.updatePassword.description")},e.createElement(re,{form:m},e.createElement("form",{className:"form",onSubmit:m.onSubmit((e=>c(void 0,void 0,void 0,(function*(){yield n((null==e?void 0:e.password)||""),!a&&s()}))),(e=>{console.log({fieldErrors:e})}))},e.createElement(le,{inputOrder:["password","confirm_password"]}),e.createElement(Q,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:i,disabled:i},l("onboarding.button.continue")),o&&e.createElement(Q,{color:"ghost",isBlock:!0,size:"lg",onClick:t},l("onboarding.button.skip")),a&&e.createElement(g.Error,{className:"form-error"},a))))},StepRenderer:({children:t,onStepChange:n})=>{const{currentStep:o,setMaxStep:a}=r(ne),i=e.Children.count(t);return l((()=>{null==n||n(o)}),[o]),l((()=>{a(i-1)}),[i]),e.createElement(e.Fragment,null,te(t).map(((t,n)=>{const r=n===o;return e.createElement(m,{key:n},e.isValidElement(t)?t.props.alwaysRender||r?e.cloneElement(t,{isActive:n===o,stepIndex:n}):null:r?t:null)})))},ThankYou:t=>{var{onClose:n,thanksPageInfo:r,isActive:o}=t,a=d(t,["onClose","thanksPageInfo","isActive"]);const{t:i}=_(),{isMobile:l}=j();return e.createElement(ze,Object.assign({heading:"",description:"",hiddenLogo:l,"data-active":o},a),e.createElement(b,{fluid:!0},e.createElement(L,{align:"center",spacing:8,w:"100%",ta:"center"},e.createElement(v,{ratio:1,w:{base:120,md:160}},e.createElement("svg",{width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("mask",{id:"mask0_4580_96805",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"160",height:"160"},e.createElement("circle",{cx:"80",cy:"80",r:"80",fill:"url(#paint0_radial_4580_96805)"})),e.createElement("g",{mask:"url(#mask0_4580_96805)"},e.createElement("path",{d:"M71.5938 0.45906L76.9763 38.1373C77.0115 38.1373 77.0819 38.1373 77.1171 38.102L82.3589 75.0033L87.5656 38.0666C87.6008 38.0666 87.636 38.0666 87.636 38.0666L92.8426 1.02406C88.6562 0.353123 84.3642 0 80.0018 0C77.1522 0 74.3378 0.141249 71.5938 0.45906Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M131.15 18.5391C125.733 14.0191 119.682 10.1701 113.173 7.20386L97.8699 41.0683C97.9051 41.0683 97.9403 41.1037 97.9403 41.1037L82.4609 75.2859L131.15 18.5391Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M46.4386 64.8334L82.1114 75.3212H81.9707L82.3225 75.4271H82.3577L82.3928 75.3918L82.428 75.4271H82.3928L82.428 75.4624H82.4632L82.6039 75.5331L82.4984 75.4624L118.347 85.9855C118.347 86.0208 118.347 86.0208 118.312 86.0561L158.101 97.8151C159.332 92.2005 160.001 86.3386 160.001 80.3355C160.001 78.6758 159.93 76.9809 159.86 75.3565H119.825C119.825 75.3918 119.825 75.3918 119.825 75.4271L82.4632 75.4624V75.4271L82.6391 75.3918L82.4984 75.4624L82.815 75.3565H82.6391L155.497 53.6394C153.07 46.7182 149.728 40.2208 145.612 34.2883L82.6391 75.2859H82.4984L82.5687 75.2152L82.4632 75.2859L82.4984 75.074L82.428 75.2152V75.2506L82.3928 75.2859V75.2506H82.3225V75.2152L82.2521 75.074L82.2873 75.2506L82.2169 75.2152L82.2521 75.2506H82.1114L15.7614 32.4167C11.2231 38.5258 7.52917 45.341 4.85547 52.6154L46.4386 64.8334ZM82.3225 75.3918V75.4271L82.2169 75.3565L82.3225 75.3918Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M57.8032 46.9301L82.2887 75.2506L66.7741 41.1036L50.556 5.61475C43.6607 8.33379 37.2579 12.0063 31.4531 16.4556L57.8032 46.9301Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M113.877 95.8023L82.5312 75.5684L106.982 103.854C106.946 103.854 106.946 103.889 106.911 103.889L136.005 137.647C141.529 132.209 146.243 125.994 150.042 119.179L113.877 95.8023Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.3203 75.427V75.4627H82.356L82.3203 75.427H82.356H82.3203Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.2857 75.4623L82.321 75.427H82.2857L82.1445 75.4976L82.2857 75.4623Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.2164 75.5684L50.9411 95.9436C50.906 95.9082 50.906 95.8729 50.8708 95.8376L11.3281 121.51C15.4794 128.501 20.6861 134.787 26.7019 140.19L62.5858 98.4507L82.2164 75.5684Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M46.438 86.0559L82.2867 75.3916L0.140721 75.4975C0.0351803 77.0866 0 78.6756 0 80.3C0 86.7975 0.773967 93.1184 2.21636 99.1921L46.438 86.0559C46.438 86.0912 46.438 86.0912 46.438 86.0559Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.2507 75.7095L47 153.467C54.2823 156.786 62.1275 159.011 70.3949 160L82.2507 75.7095Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.4609 75.7095L94.3519 159.329C102.373 157.881 109.972 155.233 116.938 151.56L82.4609 75.7095Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.3203 75.5684L82.3556 75.8509L82.4262 75.5684L82.3556 75.4978L82.3203 75.5684Z",fill:"#E0F8EE"})),e.createElement("path",{d:"M124.694 61.2L124.986 62.1726C125.083 62.6589 125.472 62.9507 125.959 63.1452L126.931 63.437L125.959 63.8261C125.569 63.9234 125.18 64.3124 125.083 64.7015L124.694 65.7714L124.305 64.7015C124.111 64.3124 123.819 64.0206 123.43 63.8261L122.457 63.5343L123.43 63.2425C123.819 63.1452 124.111 62.7562 124.305 62.3671L124.694 61.2Z",fill:"#2D87F3"}),e.createElement("path",{d:"M104.744 34.2856L104.915 34.8571C104.973 35.1428 105.201 35.3142 105.487 35.4285L106.058 35.5999L105.487 35.8285C105.258 35.8856 105.03 36.1142 104.973 36.3428L104.744 36.9714L104.515 36.3428C104.401 36.1142 104.23 35.9428 104.001 35.8285L103.43 35.6571L104.001 35.4856C104.23 35.4285 104.401 35.1999 104.515 34.9714L104.744 34.2856Z",fill:"#00B16A"}),e.createElement("path",{d:"M118.345 38L119.088 40.4C119.431 41.4857 120.288 42.3429 121.317 42.6286L123.717 43.3714L121.259 44.2286C120.231 44.5714 119.488 45.3714 119.145 46.3429L118.288 48.8L117.317 46.2286C116.974 45.2571 116.174 44.5143 115.202 44.1714L112.859 43.3714L115.145 42.5714C116.117 42.2286 116.859 41.4857 117.259 40.5714L118.345 38Z",fill:"#FFB521"}),e.createElement("path",{d:"M41.8846 98.8572L42.056 99.4286C42.1132 99.7143 42.3417 99.8857 42.6275 100L43.1989 100.171L42.6275 100.4C42.3989 100.457 42.1703 100.686 42.1132 100.914L41.8846 101.543L41.656 100.914C41.5417 100.686 41.3703 100.514 41.1417 100.4L40.5703 100.229L41.1417 100.057C41.3703 100 41.5417 99.7715 41.656 99.5429L41.8846 98.8572Z",fill:"#00B16A"}),e.createElement("path",{d:"M64.5717 125.314L65.3145 127.714C65.6574 128.8 66.5145 129.657 67.5431 129.943L69.9431 130.686L67.4859 131.543C66.4574 131.886 65.7145 132.686 65.3717 133.657L64.5145 136.114L63.5431 133.543C63.2002 132.571 62.4002 131.828 61.4288 131.486L59.0859 130.686L61.3717 129.886C62.3431 129.543 63.0859 128.8 63.4859 127.886L64.5717 125.314Z",fill:"#FFB521"}),e.createElement("path",{d:"M80.9708 120.343L81.2565 121.314C81.3708 121.771 81.7708 122.114 82.1708 122.228L83.1993 122.514L82.1708 122.857C81.7708 122.971 81.4279 123.314 81.3136 123.714L80.9708 124.743L80.5708 123.657C80.3993 123.257 80.1136 122.914 79.7136 122.8L78.7422 122.457L79.7136 122.114C80.1136 122 80.3993 121.657 80.5708 121.314L80.9708 120.343Z",fill:"#2D87F3"}),e.createElement("path",{d:"M130.307 98.2856L130.529 99.0426C130.619 99.3988 130.93 99.666 131.242 99.755L132.043 99.9777L131.242 100.245C130.93 100.334 130.663 100.601 130.574 100.913L130.307 101.714L129.995 100.868C129.862 100.557 129.639 100.289 129.327 100.2L128.57 99.9331L129.327 99.666C129.639 99.5769 129.862 99.3098 129.995 99.0426L130.307 98.2856Z",fill:"#00B16A"}),e.createElement("path",{d:"M36.592 64L36.8147 64.757C36.9037 65.1132 37.2154 65.3803 37.5271 65.4694L38.3286 65.692L37.5271 65.9592C37.2154 66.0482 36.9482 66.3154 36.8592 66.6271L36.592 67.4286L36.2803 66.5826C36.1467 66.2709 35.9241 66.0037 35.6124 65.9147L34.8555 65.6475L35.6124 65.3803C35.9241 65.2913 36.1467 65.0241 36.2803 64.757L36.592 64Z",fill:"#FFB521"}),e.createElement("path",{d:"M67.3816 26.8572L67.6734 27.8298C67.7707 28.3161 68.1597 28.6079 68.646 28.8025L69.6187 29.0942L68.646 29.4833C68.257 29.5806 67.8679 29.9696 67.7707 30.3587L67.3816 31.4286L66.9926 30.3587C66.798 29.9696 66.5062 29.6778 66.1172 29.4833L65.1445 29.1915L66.1172 28.8997C66.5062 28.8025 66.798 28.4134 66.9926 28.0243L67.3816 26.8572Z",fill:"#2D87F3"}),e.createElement("path",{d:"M80.0011 108.572C95.7807 108.572 108.573 95.7797 108.573 80.0001C108.573 64.2206 95.7807 51.4287 80.0011 51.4287C64.2216 51.4287 51.4297 64.2206 51.4297 80.0001C51.4297 95.7797 64.2216 108.572 80.0011 108.572Z",fill:"#00B16A"}),e.createElement("path",{d:"M78.5808 89.1451C77.3597 89.147 76.1503 88.908 75.0217 88.4418C73.8932 87.9757 72.8677 87.2914 72.0039 86.4283L68.6389 83.0617C68.1939 82.6009 67.9477 81.9838 67.9532 81.3432C67.9588 80.7027 68.2157 80.0899 68.6687 79.6369C69.1217 79.1839 69.7344 78.927 70.375 78.9214C71.0156 78.9159 71.6327 79.1621 72.0935 79.6071L75.4585 82.9738C75.8649 83.3802 76.3473 83.7025 76.8783 83.9225C77.4093 84.1424 77.9784 84.2556 78.5531 84.2556C79.1278 84.2556 79.6969 84.1424 80.2279 83.9225C80.7589 83.7025 81.2413 83.3802 81.6477 82.9738L102.984 63.6911C103.468 63.2745 104.095 63.0635 104.732 63.1034C105.369 63.1433 105.965 63.4308 106.392 63.9044C106.82 64.3781 107.046 65.0003 107.02 65.6379C106.995 66.2756 106.722 66.8781 106.258 67.3166L85.0046 86.513C84.1599 87.3531 83.1576 88.0181 82.0552 88.4698C80.9528 88.9215 79.7721 89.151 78.5808 89.1451Z",fill:"white"}),e.createElement("defs",null,e.createElement("radialGradient",{id:"paint0_radial_4580_96805",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(80 80) rotate(90) scale(80)"},e.createElement("stop",{stopColor:"#C4C4C4"}),e.createElement("stop",{offset:"1",stopColor:"#C4C4C4",stopOpacity:"0"}))))),e.createElement(P,{tag:"h3"},null==r?void 0:r.title),e.createElement(z,{size:"p3",color:"gray.6"},null==r?void 0:r.description),e.createElement(k,{mt:{base:16,md:24},fullWidth:l,size:"lg",onClick:n},i("similac.thankYou.done")))))}};export{le as DynamicForm,Ne as Onboarding,ne as OnboardingContext};
|
|
285
|
+
`,Be=e=>G.object().shape({password:G.string().required(e("onboarding.errorMessage.requiredPassword")).min(8,e("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,e("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:G.string().required(e("onboarding.errorMessage.requiredConfirmPassword")).oneOf([G.ref("password"),null],e("onboarding.errorMessage.passNotMatch")).default("")}),Ne={Provider:({children:t,siteType:n,setSharedData:r})=>{const[o,i]=a(0),[s,m]=a(0),[d,c]=a({});return l((()=>{null==r||r(d)}),[d,r]),e.createElement(ne.Provider,{value:{currentStep:o,setCurrentStep:i,setMaxStep:m,nextStep:()=>o+1<=s&&i(o+1),prevStep:()=>o-1>=0&&i(o-1),siteType:n,isMarryBaby:"marryBaby"===n,sharedData:d,setSharedData:c}},t)},Modal:t=>{var{children:n,withSimilac:o,banner:a,withPortal:i}=t,l=d(t,["children","withSimilac","banner","withPortal"]);const{isMobile:s}=j(),{isMarryBaby:m}=r(ne),{t:c}=A();if(i&&"undefined"==typeof window)return null;const p=e.createElement(de,Object.assign({},l),e.createElement(ce,null,e.createElement(u,{sx:{[z.mbDown]:{margin:0},".mantine-Grid-col":{[z.mbDown]:{padding:0}}}},e.createElement(u.Col,{span:"object"!=typeof a&&!o||s?12:6,order:o?2:1,orderMd:o?1:2,sx:{zIndex:o?99:void 0}},e.createElement(pe,{"data-similac":o,"data-has-banner":"object"==typeof a},n)),a&&"object"==typeof a&&!o&&e.createElement(u.Col,{span:s?12:6,order:1,orderMd:2},e.createElement(ge,null,e.createElement(ue,{"data-is-marry-baby":m},e.createElement(he,null,a.heading&&e.createElement(h,{order:1,mb:24},a.heading),a.description&&e.createElement(k,{size:"p1",color:T.colors.gray800},c("onboarding.welcomeScreen.content"))),e.createElement(be,null,a.imgSrc?e.createElement("img",{src:a.imgSrc,loading:"lazy"}):a.imgComponent?a.imgComponent:null)))),a&&"object"==typeof a&&o&&(a.imgSrc||a.imgComponent)&&e.createElement(u.Col,{span:"auto",order:1,orderMd:2},e.createElement(be,{className:"similac"},a.imgSrc?e.createElement("img",{src:a.imgSrc,loading:"lazy"}):a.imgComponent?a.imgComponent:null)))));return i?K(p,B()):p},Form:({onClose:t,onSubmit:n,canSkip:o=!0,customFormTexts:a,isActive:i,submitProps:l,submitLabel:s,skipProps:m,isWhatsApp:d})=>{const{t:p}=A(),{sharedData:g,setSharedData:u,nextStep:h}=r(ne),b=ae({initialValues:{phone:(null==g?void 0:g.phone)||""},validate:H(Ce(p))});return e.createElement(ye,{heading:(null==a?void 0:a.heading)||p("onboarding.updatePhone.heading"),description:(null==a?void 0:a.description)||p(d?"onboarding.updateWhatsapp.description":"onboarding.updatePhone.description"),"data-active":i},e.createElement(re,{form:b},e.createElement("form",{onSubmit:b.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{u((t=>Object.assign(Object.assign({},t),{phone:e.phone}))),yield null==n?void 0:n(e.phone),h()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:["phone"]}),e.createElement(P,Object.assign({variant:"primary",fullWidth:!0,size:"lg"},d&&{leftIcon:e.createElement(F.WhatsApp,{size:18,useCurrentColor:!0})},l,{type:"submit","data-event-category":d?"OTP":"Sign Up","data-event-action":d?"Whatsapp - Fill phone and continue Click":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"}),s||p(d?"onboarding.updateWhatsapp.submitLabel":"onboarding.button.continue")),o&&e.createElement(P,Object.assign({variant:"ghost",fullWidth:!0,size:"lg"},d&&{dataEventCategory:"OTP",dataEventAction:"Whatsapp - Skip fill phone Click",dataEventLabel:"undefined"!=typeof window?window.location.href:""},m,{onClick:t,type:"button"}),p("onboarding.button.skip")))))},OtpForm:{Email:({onSubmit:t,email:n,onResendCode:o,otpError:m,onClose:d,loading:p,canSkip:g})=>{const{sharedData:{email:u,retryEmailCount:h},setSharedData:b,prevStep:E,siteType:f,isMarryBaby:L,nextStep:v}=r(ne),y=n||u||"",[C,x]=a(30),w=Z((()=>x((e=>e-1))),1e3),[S,j]=_(0,{min:0,max:3}),M=i(!0),{t:P}=A();l((()=>(w.start(),w.stop)),[]),l((()=>{0===C&&(w.stop(),M.current=!1)}),[C]);const O=ae({initialValues:{otp:""},validate:H(we(P))});l((()=>{m&&O.setFieldError("otp",m)}),[m]);const k=s((()=>J((()=>{M.current||(j.increment(),x(30),null==o||o(y),w.start(),M.current=!0)}),1e3,{trailing:!1})),[y,o,w]),F=h>=2;return e.createElement(xe,{heading:P("onboarding.otpForm.heading"),description:e.createElement(e.Fragment,null,e.createElement("span",{dangerouslySetInnerHTML:{__html:P("onboarding.otpForm.descriptionEmail",{email:`<b style="color:${T.colors.gray800}">${U(y)}</b>`})}}),!F&&e.createElement("svg",{onClick:()=>{h>=2||(b((e=>Object.assign(Object.assign({},e),{retryEmailCount:e.retryEmailCount+1}))),E())},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},e.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},e.createElement(re,{form:O},e.createElement("form",{onSubmit:O.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{j.increment();!(yield null==t?void 0:t(e.otp))&&v()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:["otp"]}),e.createElement("div",{className:"resend"},e.createElement(X,{size:"p4",color:T.colors.gray400},P("onboarding.otpForm.notReceiveOTP")),e.createElement(X,{as:"a",size:"p4",color:L?T.mbColors.pink:T.colors.primaryBase,onClick:k},P("onboarding.otpForm.resendCode",{seconds:C}))),e.createElement(Q,{theme:f,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:p,disabled:p,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},P("onboarding.button.continue")),g&&S>=3&&e.createElement(Q,{theme:f,color:"ghost",isBlock:!0,size:"lg",onClick:d,type:"button"},P("onboarding.button.skip")))))},Phone:({onSubmit:t,phone:n,onResendCode:o,otpError:m,onClose:d,loading:p,canSkip:g,isWhatsApp:u})=>{const{sharedData:{phone:h,retryPhoneCount:b},setSharedData:L,prevStep:v,siteType:y,isMarryBaby:C,nextStep:x}=r(ne),w=n||h||"",[S,j]=a(30),M=Z((()=>j((e=>e-1))),1e3),[P,O]=_(0,{min:0,max:3}),F=i(!0),{t:z}=A();l((()=>(M.start(),M.stop)),[]),l((()=>{0===S&&(M.stop(),F.current=!1)}),[S]);const B=ae({initialValues:{otp:""},validate:H(we(z))});l((()=>{m&&B.setFieldError("otp",m)}),[m]);const N=s((()=>J((()=>{F.current||(O.increment(),j(30),null==o||o(w),M.start(),F.current=!0)}),1e3,{trailing:!1})),[w,o,M]),I=b>=2,V=`<b style="color:${T.colors.gray800}">${w.slice(0,-3).replace(/./g,"x").concat(w.slice(-3))}</b>`;return e.createElement(xe,{heading:u?e.createElement(E,{align:"center",justify:"center",gap:f(8)},e.createElement("img",{style:{width:f(24)},loading:"lazy",src:D.getAssetPath("whatsapp.svg"),alt:"whatsapp"}),e.createElement("span",null,z("onboarding.otpWhatsapps.heading"))):z("onboarding.otpForm.heading"),description:e.createElement(e.Fragment,null,e.createElement("span",{dangerouslySetInnerHTML:{__html:z(u?"onboarding.otpWhatsapps.description":"onboarding.otpForm.description",{phone:V})}}),!I&&e.createElement("svg",{onClick:()=>{b>=2||(L((e=>Object.assign(Object.assign({},e),{retryPhoneCount:e.retryPhoneCount+1}))),v())},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},e.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},e.createElement(re,{form:B},e.createElement("form",{onSubmit:B.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{O.increment();!(yield null==t?void 0:t(e.otp))&&x()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:["otp"]}),e.createElement("div",{className:"resend"},e.createElement(k,{size:"p4",color:T.colors.gray400},z("onboarding.otpForm.notReceiveOTP")),e.createElement(k,{as:"a",size:"p4",color:C?T.mbColors.pink:T.colors.primaryBase,onClick:N},z("onboarding.otpForm.resendCode",{seconds:S}))),e.createElement(Q,{theme:y,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:p,disabled:p,"data-event-category":u?"OTP":"Sign Up","data-event-action":u?"Whatsapp - OTP verified Click":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},z("onboarding.button.continue")),g&&P>=3&&e.createElement(Q,{theme:y,color:"ghost",isBlock:!0,size:"lg",onClick:d,type:"button"},z("onboarding.button.skip")))))}},PersonalInfoForm:({onClose:t,onSubmit:n,canSkip:o,loading:a,errorMessage:i,initialData:s})=>{const{t:m,locale:d}=A(),{siteType:p,isMarryBaby:g,setSharedData:u,nextStep:h}=r(ne),b=ae({validate:H(Se(m))});return l((()=>{b.setValues(Object.assign(Object.assign({gender:"0"},s),(null==s?void 0:s.birthday)&&{birthday:new Date(s.birthday)}))}),[s]),l((()=>{i&&b.setFieldError("email",i)}),[i]),e.createElement(Oe,{heading:m("onboarding.formEmail.heading"),description:m("onboarding.formEmail.description",{site:g?"Marry Baby":I[d].SITE_NAME_FORMATTED})},e.createElement(re,{form:b},e.createElement("form",{className:"form",onSubmit:b.onSubmit((e=>c(void 0,void 0,void 0,(function*(){u((t=>Object.assign(Object.assign({},t),e)));!(yield null==n?void 0:n(Object.assign(Object.assign({},e),{birthday:e.birthday&&ee(e.birthday,"yyyy-MM-dd")})))&&h()}))),(e=>{console.log({fieldErrors:e})}))},e.createElement(le,{inputOrder:["full_name","email","dob","gender"]}),e.createElement(Q,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:p,isLoading:a,disabled:a},m("onboarding.button.continue")),o&&e.createElement(Q,{theme:p,color:"ghost",isBlock:!0,size:"lg",onClick:t,type:"button"},m("onboarding.button.skip")))))},ResultScreen:t=>{var{onClose:n}=t,o=d(t,["onClose"]);const{t:a}=A(),{siteType:i}=r(ne);return e.createElement(Oe,Object.assign({},o),e.createElement(Q,{theme:i,size:"lg",onClick:n,className:"form-button"},a("onboarding.button.continue")))},SimilacForm:t=>{var{onClose:n,onSubmit:o,canSkip:a=!0,customFormTexts:i,customTerms:l,defaultValues:s,isActive:m}=t,p=d(t,["onClose","onSubmit","canSkip","customFormTexts","customTerms","defaultValues","isActive"]);const{t:g}=A(),{nextStep:u,setSharedData:h,sharedData:b}=r(ne),{isMobile:E}=j(),f=ae({initialValues:{term:!1,phone:(null==b?void 0:b.phone)||(null==s?void 0:s.phone)||"",email:(null==b?void 0:b.email)||(null==s?void 0:s.email)||"",name:(null==b?void 0:b.name)||(null==s?void 0:s.name)||""},validate:H(Fe(g,!l))}),L=(null==s?void 0:s.email)?["full_name","phone","address","term"]:["full_name","email","phone","address","term"];return e.createElement(ke,Object.assign({heading:(null==i?void 0:i.heading)||g("onboarding.updatePhone.heading"),description:(null==i?void 0:i.description)||g("onboarding.updatePhone.description"),hiddenLogo:E,"data-active":m},p),e.createElement(re,{form:f},e.createElement("form",{style:{width:"100%"},onSubmit:f.onSubmit((e=>c(void 0,void 0,void 0,(function*(){try{yield null==o?void 0:o(e),h((t=>Object.assign(Object.assign({},t),{phone:e.phone,email:e.email,name:e.name}))),u()}catch(e){console.error(e)}}))),(e=>{console.log(e)}))},e.createElement(le,{inputOrder:L,withSimilac:!0,customTerms:l}),e.createElement(P,{fullWidth:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},g("onboarding.button.continue")),a&&e.createElement(P,{variant:"ghost",fullWidth:!0,size:"lg",onClick:n,type:"button"},g("onboarding.button.skip")))))},FrisoForm:me,UpdatePasswordForm:({onClose:t,onSubmit:n,canSkip:o,errorMessage:a,loading:i})=>{const{t:l}=A(),{nextStep:s}=r(ne),m=ae({initialValues:{password:"",confirmPassword:""},validate:H(Be(l))});return e.createElement(Oe,{heading:l("onboarding.updatePassword.heading"),description:l("onboarding.updatePassword.description")},e.createElement(re,{form:m},e.createElement("form",{className:"form",onSubmit:m.onSubmit((e=>c(void 0,void 0,void 0,(function*(){yield n((null==e?void 0:e.password)||""),!a&&s()}))),(e=>{console.log({fieldErrors:e})}))},e.createElement(le,{inputOrder:["password","confirm_password"]}),e.createElement(Q,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:i,disabled:i},l("onboarding.button.continue")),o&&e.createElement(Q,{color:"ghost",isBlock:!0,size:"lg",onClick:t},l("onboarding.button.skip")),a&&e.createElement(g.Error,{className:"form-error"},a))))},StepRenderer:({children:t,onStepChange:n})=>{const{currentStep:o,setMaxStep:a}=r(ne),i=e.Children.count(t);return l((()=>{null==n||n(o)}),[o]),l((()=>{a(i-1)}),[i]),e.createElement(e.Fragment,null,te(t).map(((t,n)=>{const r=n===o;return e.createElement(m,{key:n},e.isValidElement(t)?t.props.alwaysRender||r?e.cloneElement(t,{isActive:n===o,stepIndex:n}):null:r?t:null)})))},ThankYou:t=>{var{onClose:n,thanksPageInfo:r,isActive:o}=t,a=d(t,["onClose","thanksPageInfo","isActive"]);const{t:i}=A(),{isMobile:l}=j();return e.createElement(ze,Object.assign({heading:"",description:"",hiddenLogo:l,"data-active":o},a),e.createElement(b,{fluid:!0},e.createElement(L,{align:"center",spacing:8,w:"100%",ta:"center"},e.createElement(v,{ratio:1,w:{base:120,md:160}},e.createElement("svg",{width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("mask",{id:"mask0_4580_96805",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"160",height:"160"},e.createElement("circle",{cx:"80",cy:"80",r:"80",fill:"url(#paint0_radial_4580_96805)"})),e.createElement("g",{mask:"url(#mask0_4580_96805)"},e.createElement("path",{d:"M71.5938 0.45906L76.9763 38.1373C77.0115 38.1373 77.0819 38.1373 77.1171 38.102L82.3589 75.0033L87.5656 38.0666C87.6008 38.0666 87.636 38.0666 87.636 38.0666L92.8426 1.02406C88.6562 0.353123 84.3642 0 80.0018 0C77.1522 0 74.3378 0.141249 71.5938 0.45906Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M131.15 18.5391C125.733 14.0191 119.682 10.1701 113.173 7.20386L97.8699 41.0683C97.9051 41.0683 97.9403 41.1037 97.9403 41.1037L82.4609 75.2859L131.15 18.5391Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M46.4386 64.8334L82.1114 75.3212H81.9707L82.3225 75.4271H82.3577L82.3928 75.3918L82.428 75.4271H82.3928L82.428 75.4624H82.4632L82.6039 75.5331L82.4984 75.4624L118.347 85.9855C118.347 86.0208 118.347 86.0208 118.312 86.0561L158.101 97.8151C159.332 92.2005 160.001 86.3386 160.001 80.3355C160.001 78.6758 159.93 76.9809 159.86 75.3565H119.825C119.825 75.3918 119.825 75.3918 119.825 75.4271L82.4632 75.4624V75.4271L82.6391 75.3918L82.4984 75.4624L82.815 75.3565H82.6391L155.497 53.6394C153.07 46.7182 149.728 40.2208 145.612 34.2883L82.6391 75.2859H82.4984L82.5687 75.2152L82.4632 75.2859L82.4984 75.074L82.428 75.2152V75.2506L82.3928 75.2859V75.2506H82.3225V75.2152L82.2521 75.074L82.2873 75.2506L82.2169 75.2152L82.2521 75.2506H82.1114L15.7614 32.4167C11.2231 38.5258 7.52917 45.341 4.85547 52.6154L46.4386 64.8334ZM82.3225 75.3918V75.4271L82.2169 75.3565L82.3225 75.3918Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M57.8032 46.9301L82.2887 75.2506L66.7741 41.1036L50.556 5.61475C43.6607 8.33379 37.2579 12.0063 31.4531 16.4556L57.8032 46.9301Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M113.877 95.8023L82.5312 75.5684L106.982 103.854C106.946 103.854 106.946 103.889 106.911 103.889L136.005 137.647C141.529 132.209 146.243 125.994 150.042 119.179L113.877 95.8023Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.3203 75.427V75.4627H82.356L82.3203 75.427H82.356H82.3203Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.2857 75.4623L82.321 75.427H82.2857L82.1445 75.4976L82.2857 75.4623Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.2164 75.5684L50.9411 95.9436C50.906 95.9082 50.906 95.8729 50.8708 95.8376L11.3281 121.51C15.4794 128.501 20.6861 134.787 26.7019 140.19L62.5858 98.4507L82.2164 75.5684Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M46.438 86.0559L82.2867 75.3916L0.140721 75.4975C0.0351803 77.0866 0 78.6756 0 80.3C0 86.7975 0.773967 93.1184 2.21636 99.1921L46.438 86.0559C46.438 86.0912 46.438 86.0912 46.438 86.0559Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.2507 75.7095L47 153.467C54.2823 156.786 62.1275 159.011 70.3949 160L82.2507 75.7095Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.4609 75.7095L94.3519 159.329C102.373 157.881 109.972 155.233 116.938 151.56L82.4609 75.7095Z",fill:"#E0F8EE"}),e.createElement("path",{d:"M82.3203 75.5684L82.3556 75.8509L82.4262 75.5684L82.3556 75.4978L82.3203 75.5684Z",fill:"#E0F8EE"})),e.createElement("path",{d:"M124.694 61.2L124.986 62.1726C125.083 62.6589 125.472 62.9507 125.959 63.1452L126.931 63.437L125.959 63.8261C125.569 63.9234 125.18 64.3124 125.083 64.7015L124.694 65.7714L124.305 64.7015C124.111 64.3124 123.819 64.0206 123.43 63.8261L122.457 63.5343L123.43 63.2425C123.819 63.1452 124.111 62.7562 124.305 62.3671L124.694 61.2Z",fill:"#2D87F3"}),e.createElement("path",{d:"M104.744 34.2856L104.915 34.8571C104.973 35.1428 105.201 35.3142 105.487 35.4285L106.058 35.5999L105.487 35.8285C105.258 35.8856 105.03 36.1142 104.973 36.3428L104.744 36.9714L104.515 36.3428C104.401 36.1142 104.23 35.9428 104.001 35.8285L103.43 35.6571L104.001 35.4856C104.23 35.4285 104.401 35.1999 104.515 34.9714L104.744 34.2856Z",fill:"#00B16A"}),e.createElement("path",{d:"M118.345 38L119.088 40.4C119.431 41.4857 120.288 42.3429 121.317 42.6286L123.717 43.3714L121.259 44.2286C120.231 44.5714 119.488 45.3714 119.145 46.3429L118.288 48.8L117.317 46.2286C116.974 45.2571 116.174 44.5143 115.202 44.1714L112.859 43.3714L115.145 42.5714C116.117 42.2286 116.859 41.4857 117.259 40.5714L118.345 38Z",fill:"#FFB521"}),e.createElement("path",{d:"M41.8846 98.8572L42.056 99.4286C42.1132 99.7143 42.3417 99.8857 42.6275 100L43.1989 100.171L42.6275 100.4C42.3989 100.457 42.1703 100.686 42.1132 100.914L41.8846 101.543L41.656 100.914C41.5417 100.686 41.3703 100.514 41.1417 100.4L40.5703 100.229L41.1417 100.057C41.3703 100 41.5417 99.7715 41.656 99.5429L41.8846 98.8572Z",fill:"#00B16A"}),e.createElement("path",{d:"M64.5717 125.314L65.3145 127.714C65.6574 128.8 66.5145 129.657 67.5431 129.943L69.9431 130.686L67.4859 131.543C66.4574 131.886 65.7145 132.686 65.3717 133.657L64.5145 136.114L63.5431 133.543C63.2002 132.571 62.4002 131.828 61.4288 131.486L59.0859 130.686L61.3717 129.886C62.3431 129.543 63.0859 128.8 63.4859 127.886L64.5717 125.314Z",fill:"#FFB521"}),e.createElement("path",{d:"M80.9708 120.343L81.2565 121.314C81.3708 121.771 81.7708 122.114 82.1708 122.228L83.1993 122.514L82.1708 122.857C81.7708 122.971 81.4279 123.314 81.3136 123.714L80.9708 124.743L80.5708 123.657C80.3993 123.257 80.1136 122.914 79.7136 122.8L78.7422 122.457L79.7136 122.114C80.1136 122 80.3993 121.657 80.5708 121.314L80.9708 120.343Z",fill:"#2D87F3"}),e.createElement("path",{d:"M130.307 98.2856L130.529 99.0426C130.619 99.3988 130.93 99.666 131.242 99.755L132.043 99.9777L131.242 100.245C130.93 100.334 130.663 100.601 130.574 100.913L130.307 101.714L129.995 100.868C129.862 100.557 129.639 100.289 129.327 100.2L128.57 99.9331L129.327 99.666C129.639 99.5769 129.862 99.3098 129.995 99.0426L130.307 98.2856Z",fill:"#00B16A"}),e.createElement("path",{d:"M36.592 64L36.8147 64.757C36.9037 65.1132 37.2154 65.3803 37.5271 65.4694L38.3286 65.692L37.5271 65.9592C37.2154 66.0482 36.9482 66.3154 36.8592 66.6271L36.592 67.4286L36.2803 66.5826C36.1467 66.2709 35.9241 66.0037 35.6124 65.9147L34.8555 65.6475L35.6124 65.3803C35.9241 65.2913 36.1467 65.0241 36.2803 64.757L36.592 64Z",fill:"#FFB521"}),e.createElement("path",{d:"M67.3816 26.8572L67.6734 27.8298C67.7707 28.3161 68.1597 28.6079 68.646 28.8025L69.6187 29.0942L68.646 29.4833C68.257 29.5806 67.8679 29.9696 67.7707 30.3587L67.3816 31.4286L66.9926 30.3587C66.798 29.9696 66.5062 29.6778 66.1172 29.4833L65.1445 29.1915L66.1172 28.8997C66.5062 28.8025 66.798 28.4134 66.9926 28.0243L67.3816 26.8572Z",fill:"#2D87F3"}),e.createElement("path",{d:"M80.0011 108.572C95.7807 108.572 108.573 95.7797 108.573 80.0001C108.573 64.2206 95.7807 51.4287 80.0011 51.4287C64.2216 51.4287 51.4297 64.2206 51.4297 80.0001C51.4297 95.7797 64.2216 108.572 80.0011 108.572Z",fill:"#00B16A"}),e.createElement("path",{d:"M78.5808 89.1451C77.3597 89.147 76.1503 88.908 75.0217 88.4418C73.8932 87.9757 72.8677 87.2914 72.0039 86.4283L68.6389 83.0617C68.1939 82.6009 67.9477 81.9838 67.9532 81.3432C67.9588 80.7027 68.2157 80.0899 68.6687 79.6369C69.1217 79.1839 69.7344 78.927 70.375 78.9214C71.0156 78.9159 71.6327 79.1621 72.0935 79.6071L75.4585 82.9738C75.8649 83.3802 76.3473 83.7025 76.8783 83.9225C77.4093 84.1424 77.9784 84.2556 78.5531 84.2556C79.1278 84.2556 79.6969 84.1424 80.2279 83.9225C80.7589 83.7025 81.2413 83.3802 81.6477 82.9738L102.984 63.6911C103.468 63.2745 104.095 63.0635 104.732 63.1034C105.369 63.1433 105.965 63.4308 106.392 63.9044C106.82 64.3781 107.046 65.0003 107.02 65.6379C106.995 66.2756 106.722 66.8781 106.258 67.3166L85.0046 86.513C84.1599 87.3531 83.1576 88.0181 82.0552 88.4698C80.9528 88.9215 79.7721 89.151 78.5808 89.1451Z",fill:"white"}),e.createElement("defs",null,e.createElement("radialGradient",{id:"paint0_radial_4580_96805",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(80 80) rotate(90) scale(80)"},e.createElement("stop",{stopColor:"#C4C4C4"}),e.createElement("stop",{offset:"1",stopColor:"#C4C4C4",stopOpacity:"0"}))))),e.createElement(Y,{tag:"h3"},null==r?void 0:r.title),e.createElement(k,{size:"p3",color:"gray.6"},null==r?void 0:r.description),e.createElement(P,{mt:{base:16,md:24},fullWidth:l,size:"lg",onClick:n},i("similac.thankYou.done")))))}};export{le as DynamicForm,Ne as Onboarding,ne as OnboardingContext};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PreferContent } from
|
|
1
|
+
import { PreferContent } from "./types";
|
|
2
2
|
export declare const PREFER_TOPICS: PreferContent[];
|
package/build/esm/pwg.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useMemo as t,useState as r,useRef as o}from"react";import{M as l,a}from"./index-
|
|
1
|
+
import e,{useMemo as t,useState as r,useRef as o}from"react";import{M as l,a}from"./index-d3620bb2.js";import{T as n}from"./index-ef082b02.js";import{P as i}from"./index-18fd004a.js";import{u as s}from"./useTranslations-756fc193.js";import{t as c}from"./theme-9fc24894.js";import{ResponsiveContainer as m,AreaChart as d,CartesianGrid as p,Tooltip as g,XAxis as y,YAxis as u,Area as b,ReferenceDot as h}from"recharts";import{C as f}from"./index-0c0b9e1b.js";import{a as x}from"./useOutsideClick-ef7a3933.js";import E from"styled-components";import{_ as k}from"./tslib.es6-098ba6eb.js";import"./index.styled-a6258456.js";import"@mantine/core";import"dayjs";import"./screenSizeContext-39dfc639.js";import"lodash/throttle";import"./index-28fdf8d0.js";import"date-fns/locale";import"./Onboarding-3d3e6c2b.js";import"./isProduction-32680346.js";import"./gAssets.js";import"./index-182cff37.js";import"@mantine/hooks";import"@mantine/carousel";import"./index-dbf35f15.js";import"@mantine/dates";import"./translationsContext-17f85d9d.js";import"string-format";const w=t=>{const{x:r,y:o,payload:l,activeWeek:a}=t;return a===l.value?e.createElement("g",{transform:`translate(${r},${o})`},e.createElement("circle",{r:12,fill:"marryBaby"===t.siteType?c.mbColors.pink:c.colors.primaryBase}),e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.white,fontFamily:"Inter",fontWeight:"600",fontSize:"12px"},l.value)):e.createElement("g",{transform:`translate(${r},${o})`},e.createElement("text",{textAnchor:"middle",alignmentBaseline:"central",fill:c.colors.gray600,fontFamily:"Inter",fontWeight:"400",fontSize:"12px"},l.value))},v=E.div`
|
|
2
2
|
/* position: absolute; */
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -55,7 +55,7 @@ import e,{useMemo as t,useState as r,useRef as o}from"react";import{M as l,a}fro
|
|
|
55
55
|
align-items: center;
|
|
56
56
|
gap: 4px;
|
|
57
57
|
}
|
|
58
|
-
`,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var o,l,a,i,s;const{payload:m,active:d}=r,p=null===(o=null==m?void 0:m[0])||void 0===o?void 0:o.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(l=p.toolTipLabel)||void 0===l?void 0:l[0]," ",null===(a=p.toolTipLabel)||void 0===a?void 0:a[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,weight:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:o,activeWeek:l,t:a})=>{const n=a(`bmi.result.${o}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===l?{toolTipLabel:r,translatedStatus:n,status:o}:{})))},z=({weightBefore:a,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:z})=>{const{t:S}=s(),L="marryBaby"===z,O=t((()=>W({weightByWeek:i,weightBefore:a,toolTipLabel:v,status:C,activeWeek:E,t:S})),[i,a,v,C,E]),[F,I]=r(!1),M=o(null);return x(M,(()=>I(!1))),e.createElement(j,null,L?e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark}," ",S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:O,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&F&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:z})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,a-10||e),e=>Math.max(e,a+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(
|
|
58
|
+
`,T=[{name:"overweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"underweight",backgroundColor:c.colors.yellow50,color:c.colors.yellow900},{name:"healthy",backgroundColor:c.colors.green50,color:c.colors.green900}],B=r=>{var o,l,a,i,s;const{payload:m,active:d}=r,p=null===(o=null==m?void 0:m[0])||void 0===o?void 0:o.payload;if(!p||!p.toolTipLabel||!d)return null;const{backgroundColor:g,color:y}=t((()=>T.find((e=>e.name===p.status))),[null==p?void 0:p.status]);return e.createElement(v,null,e.createElement("div",null,null===(l=p.toolTipLabel)||void 0===l?void 0:l[0]," ",null===(a=p.toolTipLabel)||void 0===a?void 0:a[1]),e.createElement("div",null,(null===(i=p.toolTipLabel)||void 0===i?void 0:i[2])&&e.createElement(n,{as:"span",size:"s3",color:c.colors.gray800,weight:"semiBold"},null===(s=p.toolTipLabel)||void 0===s?void 0:s[2]),e.createElement("div",{className:"risk",style:{backgroundColor:g}},e.createElement(n,{size:"n1",color:y},p.translatedStatus))))},W=({weightByWeek:e,weightBefore:t,toolTipLabel:r,status:o,activeWeek:l,t:a})=>{const n=a(`bmi.result.${o}`);return e.map((e=>Object.assign({name:e.week,min:t+e.min,difference:e.max-e.min,max:t+e.max},e.week===l?{toolTipLabel:r,translatedStatus:n,status:o}:{})))},z=({weightBefore:a,weightByWeek:i,activeWeek:E,currentWeight:k,toolTipLabel:v=[],status:C,withLine:T=!1,siteType:z})=>{const{t:S}=s(),L="marryBaby"===z,O=t((()=>W({weightByWeek:i,weightBefore:a,toolTipLabel:v,status:C,activeWeek:E,t:S})),[i,a,v,C,E]),[F,I]=r(!1),M=o(null);return x(M,(()=>I(!1))),e.createElement(j,null,L?e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark}," ",S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")):e.createElement(n,{size:"n1",color:c.colors.gray500},S("babyGrowth.weight")," ",S("pregnancyWeightGain.weightInput.desc")),Array.isArray(O)&&O.length>0&&e.createElement(j,null,e.createElement(m,{height:388,className:"chart"},e.createElement(d,{data:O,margin:{top:16,right:0,left:0}},e.createElement(p,{stroke:c.colors.neutral100}),e.createElement(g,{trigger:"click",content:t=>e.createElement(B,Object.assign({active:!T&&F&&void 0!==E&&void 0!==k},t))}),e.createElement(y,{type:"number",scale:"linear",ticks:Array.from({length:40},((e,t)=>t+1)),dataKey:"name",tickLine:!1,tickMargin:12,tick:t=>e.createElement(w,Object.assign({},t,{activeWeek:E,siteType:z})),domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,allowDecimals:!1}),e.createElement(u,{domain:[e=>Math.max(e,a-10||e),e=>Math.max(e,a+20||e)],type:"number",scale:"auto",interval:"preserveStartEnd",tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:e=>String(Math.round(100*(e+Number.EPSILON))/100),tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:c.colors.gray600}}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"min",stackId:"1",stroke:"transparent",fill:"transparent"}),e.createElement(b,{connectNulls:!0,type:"monotone",dataKey:"difference",stackId:"1",stroke:"transparent",fill:L?c.mbColors.tonePink:c.colors.primary100}),void 0!==E&&void 0!==k&&e.createElement(h,{onClick:()=>I(!0),x:0===E?1:E,y:k,r:4,shape:e.createElement(f,{ref:M,r:4}),fill:L?c.mbColors.pink:c.colors.primaryBase,stroke:L?c.mbColors.pink:c.colors.primaryBase}))),e.createElement("div",{className:"custom-chart-label"},e.createElement("i",null),L?e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark},S("pregnancy.week")):e.createElement(n,{size:"n1",color:c.colors.gray500},S("pregnancy.week")))))},S=t=>{var{color:r}=t,o=k(t,["color"]);return e.createElement("svg",Object.assign({width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),e.createElement("circle",{cx:"4",cy:"4",r:"4",fill:r||c.colors.primaryBase}))},L=({idealWeight:t,siteType:r})=>{const{t:o}=s(),a="marryBaby"===r;return e.createElement(C,null,e.createElement("div",null,a?e.createElement(e.Fragment,null,e.createElement(S,{color:c.mbColors.lightPink}),e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark},o("pregnancyTool.weightSuggested")," ",e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t))):e.createElement(e.Fragment,null,e.createElement(S,{color:c.colors.primary100}),e.createElement(n,{size:"n1",color:c.colors.gray600},e.createElement(n,{size:"n1",as:"span"},o("pregnancyTool.weightSuggested")," "),e.createElement(n,{size:"n1",color:c.colors.gray800,weight:"bold",as:"span"},t)))),e.createElement("div",null,a?e.createElement(e.Fragment,null,e.createElement(S,{color:c.mbColors.pink}),e.createElement(l,{type:"bodytext-3",color:c.mbColors.dark},o("pwg.placeholder.weight"))):e.createElement(e.Fragment,null,e.createElement(S,null),e.createElement(n,{size:"n1",color:c.colors.gray600},o("pwg.placeholder.weight")))))},O=E.div`
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: column;
|
|
61
61
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e}from"./index-
|
|
1
|
+
import{d as e}from"./index-28fdf8d0.js";import{i as s}from"./isProduction-32680346.js";const t=(t,o)=>{if("undefined"!=typeof window)return window.location.origin;const r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return r?"http://localhost:3000":`https://${!r&&!s?o?"fe.":"discover.":o?"www.":""}${e[o?"vi-VN_MB":t]}`},o=(t,o)=>process.env.UNIFY_SSO_API||`https://${s?"id.":"staging-id."}${e[o?"vi-VN_MB":t]}`,r=()=>process.env.UNIFY_INTERNAL_TOGETHER_API||process.env.UNIFY_TOGETHER_API||`https://${s?"together.":"staging-together."}hellohealthgroup.com`,n=t=>process.env.UNIFY_DISCOVER_API||`https://${s?"wp.":"staging."}${e[t]}`,i=()=>process.env.UNIFY_INTERNAL_CARE_API||process.env.UNIFY_CARE_API||`https://${s?"health-care.":"service-health-care."}hellohealthgroup.com`;export{o as a,r as b,n as c,i as d,t as g};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BabyGrowthContent, BabyGrowthContentApi } from "../../interfaces/types";
|
|
2
|
-
import { Article, ArticleApi, ArticleAuthor, ArticleAuthorApi, ArticleExpert, ArticleExpertApi, Author, BMIResult, BMIResultApi, Category, CategoryApi, CategoryHealthToolApi, Comment, CommentApi, Community, CommunityApi, ExpertAnswer, ExpertAnswerApi, ExpertUserSummaryApi, FAQs, FAQsApi, HealthTool, HealthToolApi, HealthToolByCategory, Notification, NotificationApi, OvulationInfo, OvulationInfoApi, PageCategory, PageCategoryApi, Post, PostApi, PostDetail, PostPaginationApi, PostPaginationClient, PwgInfo, PwgInfoApi, ReportedPostDetail, ReviewedCategory, ReviewedCategoryApi, ReviewedUserApi, SiteWideBanner, SiteWideBannerApi, Sponsor, SponsorApi, SpotlightSummary, SpotlightSummaryApi, SuggestedArticle, SuggestedArticleApi, ThrInfo, ThrInfoApi, Topic, TopicApi, TopicHealthTool, TopicHealthToolApi, TopicSubot, TopicSubotApi } from
|
|
2
|
+
import { Article, ArticleApi, ArticleAuthor, ArticleAuthorApi, ArticleExpert, ArticleExpertApi, Author, BMIResult, BMIResultApi, Category, CategoryApi, CategoryHealthToolApi, Comment, CommentApi, Community, CommunityApi, ExpertAnswer, ExpertAnswerApi, ExpertUserSummaryApi, FAQs, FAQsApi, HealthTool, HealthToolApi, HealthToolByCategory, Notification, NotificationApi, OvulationInfo, OvulationInfoApi, PageCategory, PageCategoryApi, Post, PostApi, PostDetail, PostPaginationApi, PostPaginationClient, PwgInfo, PwgInfoApi, ReportedPostDetail, ReviewedCategory, ReviewedCategoryApi, ReviewedUserApi, SiteWideBanner, SiteWideBannerApi, Sponsor, SponsorApi, SpotlightSummary, SpotlightSummaryApi, SuggestedArticle, SuggestedArticleApi, ThrInfo, ThrInfoApi, Topic, TopicApi, TopicHealthTool, TopicHealthToolApi, TopicSubot, TopicSubotApi } from "../interfaces/types";
|
|
3
3
|
export declare const formatAuthor: (author: ArticleAuthorApi) => ArticleAuthor;
|
|
4
4
|
export declare const formatArticleExpert: (expert: ArticleExpertApi) => ArticleExpert;
|
|
5
5
|
export declare const formatSpotlightsSummary: (spotlight?: SpotlightSummaryApi) => SpotlightSummary | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Loading } from
|
|
2
|
-
export { UserAvatar } from
|
|
3
|
-
export { CardLink } from
|
|
4
|
-
export { CardReactions } from
|
|
5
|
-
export { TagTopic } from
|
|
6
|
-
export { LabelSortPin } from
|
|
7
|
-
export { LabelPin } from
|
|
8
|
-
export { LabelSorting } from
|
|
1
|
+
export { Loading } from "./loading";
|
|
2
|
+
export { UserAvatar } from "./userAvatar";
|
|
3
|
+
export { CardLink } from "./cardLink";
|
|
4
|
+
export { CardReactions } from "./cardReactions";
|
|
5
|
+
export { TagTopic } from "./tagTopic";
|
|
6
|
+
export { LabelSortPin } from "./labelSortPin";
|
|
7
|
+
export { LabelPin } from "./labelSortPin/labelPin";
|
|
8
|
+
export { LabelSorting } from "./labelSortPin/labelSorting";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
|
-
import { Topic } from
|
|
3
|
+
import { Topic } from "../../../interfaces/types";
|
|
4
4
|
type MyComponentStylesNames = Selectors<typeof useStyles>;
|
|
5
5
|
export interface TagTopicProps extends DefaultProps<MyComponentStylesNames> {
|
|
6
6
|
onClick?: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
3
|
import { DataTrackingType } from "../../../../interfaces/types";
|
|
4
|
-
import useStyles from
|
|
5
|
-
import { Community, Role } from
|
|
6
|
-
import { Props as UserAvatarProps } from
|
|
7
|
-
import type { ProfileDetailProps } from
|
|
4
|
+
import useStyles from "./index.styles";
|
|
5
|
+
import { Community, Role } from "../../../interfaces/types";
|
|
6
|
+
import { Props as UserAvatarProps } from "../../atoms/userAvatar";
|
|
7
|
+
import type { ProfileDetailProps } from "../profileDetail";
|
|
8
8
|
type MyComponentStylesNames = Selectors<typeof useStyles>;
|
|
9
9
|
export interface Props extends DefaultProps<MyComponentStylesNames, HTMLAttributes<HTMLDivElement>> {
|
|
10
10
|
userId?: number | string;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { CardAuthor } from
|
|
2
|
-
export { CreateNewPostContent } from
|
|
3
|
-
export { CreatePostDescription } from
|
|
4
|
-
export { CreatePostTitle } from
|
|
5
|
-
export { PopupDanger } from
|
|
6
|
-
export { PopupExpert } from
|
|
7
|
-
export { PopupDoctor } from
|
|
8
|
-
export { PopupHospital } from
|
|
9
|
-
export { TopicSelectList } from
|
|
10
|
-
export { InputCommentBar } from
|
|
11
|
-
export { PopupFrame } from
|
|
12
|
-
export { SharePopup } from
|
|
13
|
-
export { SubmitReportForm } from
|
|
14
|
-
export { ShareBox } from
|
|
15
|
-
export { PostContent } from
|
|
16
|
-
export { ImagePreviewPopup } from
|
|
17
|
-
export { PostSingleImageViewPopup } from
|
|
18
|
-
export { PostImagePreview } from
|
|
19
|
-
export { SocialLinkPreview } from
|
|
20
|
-
export { ProfileDetailModal } from
|
|
21
|
-
export { ProfileDetail, TabName as TabNameInProfileDetail, } from
|
|
22
|
-
export { SkipQuestionOfExpertBtn } from
|
|
1
|
+
export { CardAuthor } from "./cardAuthor";
|
|
2
|
+
export { CreateNewPostContent } from "./createNewPostContent";
|
|
3
|
+
export { CreatePostDescription } from "./createPostDescription";
|
|
4
|
+
export { CreatePostTitle } from "./createPostTitle";
|
|
5
|
+
export { PopupDanger } from "./popupDanger";
|
|
6
|
+
export { PopupExpert } from "./popupExpert";
|
|
7
|
+
export { PopupDoctor } from "./popupDoctor";
|
|
8
|
+
export { PopupHospital } from "./popupHospital";
|
|
9
|
+
export { TopicSelectList } from "./topicSelectList";
|
|
10
|
+
export { InputCommentBar } from "./inputCommentBar";
|
|
11
|
+
export { PopupFrame } from "./popupFrame";
|
|
12
|
+
export { SharePopup } from "./popupFrame/popupShare";
|
|
13
|
+
export { SubmitReportForm } from "./submitReportForm";
|
|
14
|
+
export { ShareBox } from "./shareBox";
|
|
15
|
+
export { PostContent } from "./postContent";
|
|
16
|
+
export { ImagePreviewPopup } from "./postImagePreview/imagePreviewPopup";
|
|
17
|
+
export { PostSingleImageViewPopup } from "./postImagePreview/postSingleImageViewPopup";
|
|
18
|
+
export { PostImagePreview } from "./postImagePreview";
|
|
19
|
+
export { SocialLinkPreview } from "./socialLinkPreview";
|
|
20
|
+
export { ProfileDetailModal } from "./profileDetailModal";
|
|
21
|
+
export { ProfileDetail, TabName as TabNameInProfileDetail, } from "./profileDetail";
|
|
22
|
+
export { SkipQuestionOfExpertBtn } from "./skipQuestionOfExpertBtn";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { Props as ButtonProps } from
|
|
2
|
+
import { Props as ButtonProps } from "../../../../components/atoms/button";
|
|
3
3
|
import { DataTrackingTypeHTMLElement } from "../../../../interfaces/types";
|
|
4
4
|
export type Props = {
|
|
5
5
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes, MouseEventHandler } from 'react';
|
|
2
2
|
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
|
-
import { UserInfo } from
|
|
4
|
-
import useStyles from
|
|
3
|
+
import { UserInfo } from "../../../interfaces/types";
|
|
4
|
+
import useStyles from "./index.styles";
|
|
5
5
|
type MyComponentStylesNames = Selectors<typeof useStyles>;
|
|
6
6
|
export interface Props extends DefaultProps<MyComponentStylesNames, HTMLAttributes<HTMLDivElement>> {
|
|
7
7
|
trackingCategory?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SiteType } from "../../../../interfaces/types";
|
|
3
|
-
import { Props as CardAuthorProps } from
|
|
4
|
-
import { CountProps, TabData } from
|
|
3
|
+
import { Props as CardAuthorProps } from "../cardAuthor";
|
|
4
|
+
import { CountProps, TabData } from "./types";
|
|
5
5
|
export type ProfileDetailContextProps = {
|
|
6
6
|
authorId: string;
|
|
7
7
|
isAuthorLogin: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
2
2
|
import { SiteType } from "../../../../interfaces/types";
|
|
3
|
-
import { Role } from
|
|
4
|
-
import { Props as CardAuthorProps } from
|
|
3
|
+
import { Role } from "../../../interfaces/types";
|
|
4
|
+
import { Props as CardAuthorProps } from "../cardAuthor";
|
|
5
5
|
export type ProfileDetailProps = {
|
|
6
6
|
id?: string | number;
|
|
7
7
|
style?: CSSProperties;
|