@hhgtech/hhg-components 1.27.27 → 1.27.29
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 +8 -8
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/icons/Envelop.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +1 -0
- package/build/components/molecules/addressInput/index.d.ts +5 -2
- package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
- package/build/components/navigationV2/index.d.ts +1 -0
- package/build/components/onboardingV2/dynamicForm/index.d.ts +2 -1
- package/build/components/onboardingV2/index.d.ts +3 -0
- package/build/components/organisms/navigationProfileButton/index.d.ts +2 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-19ac53f1.js +1 -0
- package/build/dataTransform-50270fb8.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/__mocks__/article.d.ts +112 -0
- package/build/esm/__mocks__/pillData.d.ts +201 -0
- package/build/esm/babyGrowth.js +7 -7
- package/build/esm/cache/core.d.ts +7 -0
- package/build/esm/cache/index.d.ts +1 -0
- package/build/esm/cache.js +1 -1
- package/build/esm/care/api/paths.d.ts +7 -0
- package/build/esm/care/api/utils.d.ts +5 -0
- package/build/esm/care/components/atoms/icons/index.d.ts +23 -0
- package/build/esm/care/components/organisms/bookingSearchBar/constants.d.ts +4 -0
- package/build/esm/care/components/organisms/bookingSearchBar/index.d.ts +28 -0
- package/build/esm/care/components/organisms/bookingSearchBar/index.styled.d.ts +7 -0
- package/build/esm/care/components/organisms/bookingSearchBar/index.test.d.ts +1 -0
- package/build/esm/care/components/organisms/bookingSearchBar/locationResults/index.d.ts +16 -0
- package/build/esm/care/components/organisms/bookingSearchBar/locationResults/index.styled.d.ts +14 -0
- package/build/esm/care/components/organisms/bookingSearchBar/locationResults/liSkeleton.d.ts +7 -0
- package/build/esm/care/components/organisms/bookingSearchBar/mobileFakeInput/index.d.ts +12 -0
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.d.ts +11 -0
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +6 -0
- package/build/esm/care/components/organisms/bookingSearchBar/reducer.d.ts +127 -0
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/icons.d.ts +5 -0
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.d.ts +17 -0
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +11 -0
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.d.ts +11 -0
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +10 -0
- package/build/esm/care/components/organisms/bookingSearchBar/searchInputs/index.d.ts +20 -0
- package/build/esm/care/components/organisms/bookingSearchBar/searchInputs/index.styled.d.ts +9 -0
- package/build/esm/care/components/organisms/bookingSearchBar/searchResults/index.d.ts +15 -0
- package/build/esm/care/components/organisms/bookingSearchBar/searchResults/mockData.d.ts +2 -0
- package/build/esm/care/components/organisms/bookingSearchBar/searchSubmitIcon/index.d.ts +6 -0
- package/build/esm/care/components/organisms/bookingSearchBar/types.d.ts +10 -0
- package/build/esm/care/components/organisms/bookingSearchBar/useAnimatedPlaceholder.d.ts +8 -0
- package/build/esm/care/components/organisms/bookingSearchBar/useSearchBarApi.d.ts +16 -0
- package/build/esm/care/components/organisms/bookingSearchBar/utils/Typewriter.d.ts +57 -0
- package/build/esm/care/index.d.ts +3 -0
- package/build/esm/care/interfaces/constants.d.ts +15 -0
- package/build/esm/care/interfaces/types.d.ts +224 -0
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/alert/index.d.ts +17 -0
- package/build/esm/components/atoms/alert/index.test.d.ts +1 -0
- package/build/esm/components/atoms/authorBadge/index.d.ts +16 -0
- package/build/esm/components/atoms/authorBadge/index.styles.d.ts +8 -0
- package/build/esm/components/atoms/avatar/index.d.ts +22 -0
- package/build/esm/components/atoms/avatar/index.styled.d.ts +8 -0
- package/build/esm/components/atoms/backdrop/index.d.ts +7 -0
- package/build/esm/components/atoms/backdrop/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/badge/index.d.ts +17 -0
- package/build/esm/components/atoms/badge/index.styled.d.ts +9 -0
- package/build/esm/components/atoms/badge/index.test.d.ts +1 -0
- package/build/esm/components/atoms/borderHeading/index.d.ts +14 -0
- package/build/esm/components/atoms/borderHeading/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/btnChoice/index.d.ts +14 -0
- package/build/esm/components/atoms/btnChoice/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/button/index.d.ts +32 -0
- package/build/esm/components/atoms/button/index.test.d.ts +1 -0
- package/build/esm/components/atoms/checkbox/index.d.ts +19 -0
- package/build/esm/components/atoms/checkbox/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/checkbox/index.test.d.ts +1 -0
- package/build/esm/components/atoms/container/index.d.ts +13 -0
- package/build/esm/components/atoms/customReferenceDot/index.d.ts +3 -0
- package/build/esm/components/atoms/displayWrapper/index.d.ts +10 -0
- package/build/esm/components/atoms/displayWrapper/index.styled.d.ts +4 -0
- package/build/esm/components/atoms/divider/index.d.ts +13 -0
- package/build/esm/components/atoms/divider/index.styled.d.ts +4 -0
- package/build/esm/components/atoms/divider/index.test.d.ts +1 -0
- package/build/esm/components/atoms/drawer/helpers.d.ts +2 -0
- package/build/esm/components/atoms/drawer/index.d.ts +19 -0
- package/build/esm/components/atoms/drawer/index.styled.d.ts +10 -0
- package/build/esm/components/atoms/dropdownMB/index.d.ts +2 -0
- package/build/esm/components/atoms/dropdownMB/index.styled.d.ts +2 -0
- package/build/esm/components/atoms/errorBoundary.d.ts +15 -0
- package/build/esm/components/atoms/fileDropdown/index.d.ts +23 -0
- package/build/esm/components/atoms/fileDropdown/index.styled.d.ts +5 -0
- package/build/esm/components/atoms/fileDropdown/index.test.d.ts +1 -0
- package/build/esm/components/atoms/flag/icons/cambodia.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/english.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/india.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/indonesia.d.ts +6 -0
- package/build/esm/components/atoms/flag/icons/malaysia.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/myanmar.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/philippines.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/taiwan.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/thailand.d.ts +4 -0
- package/build/esm/components/atoms/flag/icons/vietnam.d.ts +4 -0
- package/build/esm/components/atoms/flag/index.d.ts +13 -0
- package/build/esm/components/atoms/flag/index.test.d.ts +1 -0
- package/build/esm/components/atoms/grid/index.d.ts +27 -0
- package/build/esm/components/atoms/grid/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/grid/index.test.d.ts +1 -0
- package/build/esm/components/atoms/heading/index.d.ts +17 -0
- package/build/esm/components/atoms/heading/index.test.d.ts +1 -0
- package/build/esm/components/atoms/icons/ACharacter.d.ts +4 -0
- package/build/esm/components/atoms/icons/Activities.d.ts +4 -0
- package/build/esm/components/atoms/icons/ArrowDown.d.ts +4 -0
- package/build/esm/components/atoms/icons/ArrowLeft.d.ts +4 -0
- package/build/esm/components/atoms/icons/ArrowRight.d.ts +4 -0
- package/build/esm/components/atoms/icons/Ask.d.ts +4 -0
- package/build/esm/components/atoms/icons/BabyBoyMB.d.ts +4 -0
- package/build/esm/components/atoms/icons/BabyGirlMB.d.ts +4 -0
- package/build/esm/components/atoms/icons/BarChart.d.ts +4 -0
- package/build/esm/components/atoms/icons/Booking.d.ts +4 -0
- package/build/esm/components/atoms/icons/Bookmark.d.ts +4 -0
- package/build/esm/components/atoms/icons/Boy.d.ts +4 -0
- package/build/esm/components/atoms/icons/Calendar.d.ts +4 -0
- package/build/esm/components/atoms/icons/CalendarMB.d.ts +4 -0
- package/build/esm/components/atoms/icons/CameraCircle.d.ts +4 -0
- package/build/esm/components/atoms/icons/Chat.d.ts +4 -0
- package/build/esm/components/atoms/icons/Check.d.ts +4 -0
- package/build/esm/components/atoms/icons/CheckActiveMB.d.ts +4 -0
- package/build/esm/components/atoms/icons/CircleBorder.d.ts +4 -0
- package/build/esm/components/atoms/icons/Close.d.ts +4 -0
- package/build/esm/components/atoms/icons/Comment.d.ts +4 -0
- package/build/esm/components/atoms/icons/Community.d.ts +4 -0
- package/build/esm/components/atoms/icons/CrossLogo.d.ts +4 -0
- package/build/esm/components/atoms/icons/Current.d.ts +4 -0
- package/build/esm/components/atoms/icons/EditSpecial.d.ts +4 -0
- package/build/esm/components/atoms/icons/Endorse.d.ts +4 -0
- package/build/esm/components/atoms/icons/Envelop.d.ts +4 -0
- package/build/esm/components/atoms/icons/Family.d.ts +4 -0
- package/build/esm/components/atoms/icons/Font.d.ts +4 -0
- package/build/esm/components/atoms/icons/FullScreen.d.ts +4 -0
- package/build/esm/components/atoms/icons/GenderBoy.d.ts +4 -0
- package/build/esm/components/atoms/icons/GenderChooseBoy.d.ts +4 -0
- package/build/esm/components/atoms/icons/GenderChooseGirl.d.ts +4 -0
- package/build/esm/components/atoms/icons/GenderGirl.d.ts +4 -0
- package/build/esm/components/atoms/icons/Girl.d.ts +4 -0
- package/build/esm/components/atoms/icons/GroupPeople.d.ts +4 -0
- package/build/esm/components/atoms/icons/GroupPeopleSolid.d.ts +4 -0
- package/build/esm/components/atoms/icons/Heart.d.ts +4 -0
- package/build/esm/components/atoms/icons/Home.d.ts +4 -0
- package/build/esm/components/atoms/icons/Info.d.ts +4 -0
- package/build/esm/components/atoms/icons/Kebab.d.ts +4 -0
- package/build/esm/components/atoms/icons/Like.d.ts +4 -0
- package/build/esm/components/atoms/icons/Link.d.ts +4 -0
- package/build/esm/components/atoms/icons/Minus.d.ts +4 -0
- package/build/esm/components/atoms/icons/Missed.d.ts +4 -0
- package/build/esm/components/atoms/icons/MyCommunity.d.ts +4 -0
- package/build/esm/components/atoms/icons/MyHealth.d.ts +4 -0
- package/build/esm/components/atoms/icons/Oppose.d.ts +4 -0
- package/build/esm/components/atoms/icons/Plus.d.ts +5 -0
- package/build/esm/components/atoms/icons/PlusSpecial.d.ts +4 -0
- package/build/esm/components/atoms/icons/Post.d.ts +4 -0
- package/build/esm/components/atoms/icons/Recalculate.d.ts +4 -0
- package/build/esm/components/atoms/icons/Reply.d.ts +4 -0
- package/build/esm/components/atoms/icons/Scale.d.ts +4 -0
- package/build/esm/components/atoms/icons/Share.d.ts +4 -0
- package/build/esm/components/atoms/icons/ShieldCheck.d.ts +4 -0
- package/build/esm/components/atoms/icons/Smile.d.ts +4 -0
- package/build/esm/components/atoms/icons/Sparkle.d.ts +4 -0
- package/build/esm/components/atoms/icons/Stethoscope.d.ts +4 -0
- package/build/esm/components/atoms/icons/ToggleOff.d.ts +4 -0
- package/build/esm/components/atoms/icons/ToggleOn.d.ts +4 -0
- package/build/esm/components/atoms/icons/Trash.d.ts +4 -0
- package/build/esm/components/atoms/icons/Upcoming.d.ts +4 -0
- package/build/esm/components/atoms/icons/UserCheck.d.ts +4 -0
- package/build/esm/components/atoms/icons/Vaccinated.d.ts +4 -0
- package/build/esm/components/atoms/icons/Video.d.ts +4 -0
- package/build/esm/components/atoms/icons/index.d.ts +54 -0
- package/build/esm/components/atoms/imageWithHandler/index.d.ts +6 -0
- package/build/esm/components/atoms/imageWrap/index.d.ts +6 -0
- package/build/esm/components/atoms/index.d.ts +48 -0
- package/build/esm/components/atoms/input/index.d.ts +28 -0
- package/build/esm/components/atoms/input/index.styled.d.ts +8 -0
- package/build/esm/components/atoms/input/index.test.d.ts +1 -0
- package/build/esm/components/atoms/inputMB/index.d.ts +2 -0
- package/build/esm/components/atoms/inputMB/index.styled.d.ts +3 -0
- package/build/esm/components/atoms/label/index.d.ts +13 -0
- package/build/esm/components/atoms/label/index.test.d.ts +1 -0
- package/build/esm/components/atoms/logo/index.d.ts +24 -0
- package/build/esm/components/atoms/logo/index.styled.d.ts +2 -0
- package/build/esm/components/atoms/logo/index.test.d.ts +1 -0
- package/build/esm/components/atoms/logo/logoIcon.d.ts +8 -0
- package/build/esm/components/atoms/logo/utils.d.ts +5 -0
- package/build/esm/components/atoms/marryBabyText/index.d.ts +20 -0
- package/build/esm/components/atoms/marryBabyText/index.styled.d.ts +8 -0
- package/build/esm/components/atoms/menu/index.d.ts +10 -0
- package/build/esm/components/atoms/menu/index.styled.d.ts +4 -0
- package/build/esm/components/atoms/menu/item.d.ts +7 -0
- package/build/esm/components/atoms/newBabyProfileRadio/index.d.ts +11 -0
- package/build/esm/components/atoms/newBabyProfileRadio/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/pagination/index.d.ts +14 -0
- package/build/esm/components/atoms/pagination/index.styled.d.ts +3 -0
- package/build/esm/components/atoms/pagination/index.test.d.ts +1 -0
- package/build/esm/components/atoms/pill/index.d.ts +13 -0
- package/build/esm/components/atoms/pill/index.styled.d.ts +9 -0
- package/build/esm/components/atoms/progress/index.d.ts +13 -0
- package/build/esm/components/atoms/progress/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/pureInput/index.d.ts +24 -0
- package/build/esm/components/atoms/pureInput/index.styled.d.ts +5 -0
- package/build/esm/components/atoms/pureInput/index.test.d.ts +1 -0
- package/build/esm/components/atoms/radio/index.d.ts +20 -0
- package/build/esm/components/atoms/radio/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/radio/index.test.d.ts +1 -0
- package/build/esm/components/atoms/radioImageGroup/index.d.ts +19 -0
- package/build/esm/components/atoms/radioImageGroup/index.styled.d.ts +2 -0
- package/build/esm/components/atoms/rateStars/StarEmptyIcon.d.ts +3 -0
- package/build/esm/components/atoms/rateStars/StarFullIcon.d.ts +3 -0
- package/build/esm/components/atoms/rateStars/StarHalfIcon.d.ts +3 -0
- package/build/esm/components/atoms/rateStars/index.d.ts +33 -0
- package/build/esm/components/atoms/rateStars/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/shadow/index.d.ts +9 -0
- package/build/esm/components/atoms/shadow/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/shadow/index.test.d.ts +1 -0
- package/build/esm/components/atoms/stepRenderer/index.d.ts +19 -0
- package/build/esm/components/atoms/tag/index.d.ts +17 -0
- package/build/esm/components/atoms/tag/index.styled.d.ts +11 -0
- package/build/esm/components/atoms/tag/index.test.d.ts +1 -0
- package/build/esm/components/atoms/text/index.d.ts +27 -0
- package/build/esm/components/atoms/textArea/index.d.ts +19 -0
- package/build/esm/components/atoms/textDivider/index.d.ts +10 -0
- package/build/esm/components/atoms/toggle/index.d.ts +14 -0
- package/build/esm/components/atoms/toggle/index.styled.d.ts +5 -0
- package/build/esm/components/atoms/toggle/index.test.d.ts +1 -0
- package/build/esm/components/atoms/underlinedLink/index.d.ts +13 -0
- package/build/esm/components/atoms/underlinedLink/index.styled.d.ts +1 -0
- package/build/esm/components/atoms/underlinedLink/index.text.d.ts +1 -0
- package/build/esm/components/atoms/uploader/index.d.ts +17 -0
- package/build/esm/components/atoms/uploader/index.styled.d.ts +4 -0
- package/build/esm/components/atoms/uploader/index.test.d.ts +1 -0
- package/build/esm/components/babyGrowth/babyGrowthChart/chartConfig.d.ts +1113 -0
- package/build/esm/components/babyGrowth/babyGrowthChart/index.d.ts +26 -0
- package/build/esm/components/babyGrowth/babyGrowthChart/index.styled.d.ts +1 -0
- package/build/esm/components/babyGrowth/babyGrowthChooseProfileDrawer/index.d.ts +20 -0
- package/build/esm/components/babyGrowth/babyGrowthChooseProfileDrawer/index.styled.d.ts +3 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/index.d.ts +12 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/index.styled.d.ts +8 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/utils/bmiCalculate.d.ts +8 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/utils/localizeNumberFormat.d.ts +8 -0
- package/build/esm/components/babyGrowth/babyGrowthGender/index.d.ts +8 -0
- package/build/esm/components/babyGrowth/babyGrowthGender/index.styled.d.ts +3 -0
- package/build/esm/components/babyGrowth/babyGrowthLegend/index.d.ts +12 -0
- package/build/esm/components/babyGrowth/babyGrowthLegend/index.styled.d.ts +2 -0
- package/build/esm/components/babyGrowth/babyGrowthProfileRadio/index.d.ts +10 -0
- package/build/esm/components/babyGrowth/babyGrowthProfileRadio/index.styled.d.ts +1 -0
- package/build/esm/components/babyGrowth/babyGrowthRecord/index.d.ts +16 -0
- package/build/esm/components/babyGrowth/babyGrowthRecord/index.styled.d.ts +1 -0
- package/build/esm/components/babyGrowth/babyGrowthSwitch/index.d.ts +11 -0
- package/build/esm/components/babyGrowth/babyGrowthSwitch/index.styled.d.ts +1 -0
- package/build/esm/components/babyGrowth/babyGrowthTooltip/index.d.ts +11 -0
- package/build/esm/components/babyGrowth/babyGrowthTooltip/index.styled.d.ts +1 -0
- package/build/esm/components/babyGrowth/childCard/index.d.ts +26 -0
- package/build/esm/components/babyGrowth/childCard/index.styled.d.ts +3 -0
- package/build/esm/components/babyGrowth/childCard/menu.d.ts +13 -0
- package/build/esm/components/babyGrowth/index.d.ts +19 -0
- package/build/esm/components/index.d.ts +3 -0
- package/build/esm/components/mantine/CentralCarousel/index.d.ts +20 -0
- package/build/esm/components/mantine/CentralCarousel/index.styled.d.ts +2 -0
- package/build/esm/components/mantine/accordion/index.d.ts +13 -0
- package/build/esm/components/mantine/accordion/index.styled.d.ts +5 -0
- package/build/esm/components/mantine/anchor/index.d.ts +8 -0
- package/build/esm/components/mantine/anchor/index.styles.d.ts +11 -0
- package/build/esm/components/mantine/aspectRatio/index.d.ts +5 -0
- package/build/esm/components/mantine/aspectRatio/index.styled.d.ts +1 -0
- package/build/esm/components/mantine/avatar/index.d.ts +8 -0
- package/build/esm/components/mantine/badge/index.d.ts +7 -0
- package/build/esm/components/mantine/breadcrumbs/index.d.ts +13 -0
- package/build/esm/components/mantine/breadcrumbs/index.styled.d.ts +1 -0
- package/build/esm/components/mantine/breadcrumbs/item.d.ts +7 -0
- package/build/esm/components/mantine/button/index.d.ts +9 -0
- package/build/esm/components/mantine/button/index.styles.d.ts +17 -0
- package/build/esm/components/mantine/carousel/index.d.ts +10 -0
- package/build/esm/components/mantine/checkbox/index.d.ts +8 -0
- package/build/esm/components/mantine/datepicker/index.d.ts +10 -0
- package/build/esm/components/mantine/helpers.d.ts +2 -0
- package/build/esm/components/mantine/index.d.ts +61 -0
- package/build/esm/components/mantine/indicator/index.d.ts +4 -0
- package/build/esm/components/mantine/input/file.d.ts +5 -0
- package/build/esm/components/mantine/input/index.d.ts +27 -0
- package/build/esm/components/mantine/input/number.d.ts +8 -0
- package/build/esm/components/mantine/input/password.d.ts +5 -0
- package/build/esm/components/mantine/loadingOverlay/index.d.ts +5 -0
- package/build/esm/components/mantine/loadingOverlay/useLockBodyScroll.d.ts +1 -0
- package/build/esm/components/mantine/modal/index.d.ts +5 -0
- package/build/esm/components/mantine/modal/index.styles.d.ts +15 -0
- package/build/esm/components/mantine/otp/index.d.ts +18 -0
- package/build/esm/components/mantine/otp/index.helpers.d.ts +2 -0
- package/build/esm/components/mantine/phone/index.d.ts +14 -0
- package/build/esm/components/mantine/phone/index.helpers.d.ts +4 -0
- package/build/esm/components/mantine/popover/index.d.ts +16 -0
- package/build/esm/components/mantine/provider/index.d.ts +9 -0
- package/build/esm/components/mantine/radio/index.d.ts +10 -0
- package/build/esm/components/mantine/result/index.d.ts +17 -0
- package/build/esm/components/mantine/select/index.d.ts +11 -0
- package/build/esm/components/mantine/slider/index.d.ts +11 -0
- package/build/esm/components/mantine/slider/index.styled.d.ts +3 -0
- package/build/esm/components/mantine/spoiler/index.d.ts +15 -0
- package/build/esm/components/mantine/switch/index.d.ts +7 -0
- package/build/esm/components/mantine/tabs/index.d.ts +25 -0
- package/build/esm/components/mantine/tabs/index.styles.d.ts +22 -0
- package/build/esm/components/mantine/text/index.d.ts +12 -0
- package/build/esm/components/mantine/text/index.styled.d.ts +9 -0
- package/build/esm/components/mantine/text/index.styles.d.ts +12 -0
- package/build/esm/components/mantine/textArea/index.d.ts +5 -0
- package/build/esm/components/mantine/textArea/index.styled.d.ts +2 -0
- package/build/esm/components/mantine/theme/button.d.ts +7 -0
- package/build/esm/components/mantine/theme/checkbox.d.ts +11 -0
- package/build/esm/components/mantine/theme/heading.d.ts +16 -0
- package/build/esm/components/mantine/theme/index.d.ts +20 -0
- package/build/esm/components/mantine/theme/input.d.ts +57 -0
- package/build/esm/components/mantine/theme/other.d.ts +7 -0
- package/build/esm/components/mantine/theme/radio.d.ts +3 -0
- package/build/esm/components/mantine/theme/shared.d.ts +6 -0
- package/build/esm/components/mantine/theme/text.d.ts +63 -0
- package/build/esm/components/mantine/useMantineLocale.d.ts +7 -0
- package/build/esm/components/molecules/__deprecated_breadcrumbs/index.d.ts +34 -0
- package/build/esm/components/molecules/__deprecated_breadcrumbs/index.test.d.ts +1 -0
- package/build/esm/components/molecules/adBlock/fixedBottomAdBlock.d.ts +16 -0
- package/build/esm/components/molecules/adBlock/index.d.ts +45 -0
- package/build/esm/components/molecules/adBlock/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/addressInput/index.d.ts +15 -0
- package/build/esm/components/molecules/addressInput/useAddress.d.ts +14 -0
- package/build/esm/components/molecules/addressInput/utils.d.ts +2 -0
- package/build/esm/components/molecules/articleCard/_deprecated_index.d.ts +48 -0
- package/build/esm/components/molecules/articleCard/articleCard.styles.d.ts +15 -0
- package/build/esm/components/molecules/articleCard/cardAuthor.d.ts +17 -0
- package/build/esm/components/molecules/articleCard/cardExpert.d.ts +16 -0
- package/build/esm/components/molecules/articleCard/horizontal.d.ts +5 -0
- package/build/esm/components/molecules/articleCard/icons/affiliate.d.ts +2 -0
- package/build/esm/components/molecules/articleCard/icons/bookmarked.d.ts +6 -0
- package/build/esm/components/molecules/articleCard/icons/unbookmarked.d.ts +6 -0
- package/build/esm/components/molecules/articleCard/index.d.ts +25 -0
- package/build/esm/components/molecules/articleCard/vertical.d.ts +5 -0
- package/build/esm/components/molecules/bmiForm/index.d.ts +4 -0
- package/build/esm/components/molecules/bmiForm/index.styled.d.ts +7 -0
- package/build/esm/components/molecules/bmrForm/index.d.ts +17 -0
- package/build/esm/components/molecules/bmrForm/index.styled.d.ts +6 -0
- package/build/esm/components/molecules/categoryCard/index.d.ts +19 -0
- package/build/esm/components/molecules/categoryCard/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/checkboxGroup/index.d.ts +17 -0
- package/build/esm/components/molecules/checkboxGroup/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/checkboxGroup/index.test.d.ts +1 -0
- package/build/esm/components/molecules/cookieAcceptConfirm/index.d.ts +21 -0
- package/build/esm/components/molecules/cookieAcceptConfirm/index.styled.d.ts +9 -0
- package/build/esm/components/molecules/cookieAcceptConfirm/index.test.d.ts +1 -0
- package/build/esm/components/molecules/datePicker/helpers.d.ts +11 -0
- package/build/esm/components/molecules/datePicker/index.d.ts +29 -0
- package/build/esm/components/molecules/datePicker/index.styled.d.ts +2 -0
- package/build/esm/components/molecules/datePicker/index.test.d.ts +1 -0
- package/build/esm/components/molecules/dateRangePicker/calendar/index.d.ts +11 -0
- package/build/esm/components/molecules/dateRangePicker/calendar/index.styled.d.ts +13 -0
- package/build/esm/components/molecules/dateRangePicker/index.d.ts +17 -0
- package/build/esm/components/molecules/dateRangePicker/index.styled.d.ts +2 -0
- package/build/esm/components/molecules/dateRangePicker/types.d.ts +4 -0
- package/build/esm/components/molecules/dateRangePicker/utils.d.ts +2 -0
- package/build/esm/components/molecules/doctorInfo/index.d.ts +9 -0
- package/build/esm/components/molecules/dropdown/index.d.ts +30 -0
- package/build/esm/components/molecules/dropdown/index.styled.d.ts +12 -0
- package/build/esm/components/molecules/dropdown/index.test.d.ts +1 -0
- package/build/esm/components/molecules/dropdownSearch/index.d.ts +27 -0
- package/build/esm/components/molecules/dropdownSearch/index.styled.d.ts +8 -0
- package/build/esm/components/molecules/dueDateCalculator/dueDateFormConception.d.ts +12 -0
- package/build/esm/components/molecules/dueDateCalculator/dueDateFormIVF.d.ts +12 -0
- package/build/esm/components/molecules/dueDateCalculator/dueDateFormLastPeriod.d.ts +12 -0
- package/build/esm/components/molecules/dueDateCalculator/index.d.ts +12 -0
- package/build/esm/components/molecules/dueDateCalculator/index.styled.d.ts +6 -0
- package/build/esm/components/molecules/dueDateCalculator/utils.d.ts +12 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +14 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +10 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +14 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-poop/index.styles.d.ts +22 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +19 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +20 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +58 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/helpers.d.ts +42 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/index.styled.d.ts +6 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +31 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +20 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/target-heart-rate/index.d.ts +18 -0
- package/build/esm/components/molecules/floatButtonGroup/index.d.ts +24 -0
- package/build/esm/components/molecules/floatButtonGroup/index.styled.d.ts +9 -0
- package/build/esm/components/molecules/iconText/index.d.ts +10 -0
- package/build/esm/components/molecules/iconText/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/iconText/index.test.d.ts +1 -0
- package/build/esm/components/molecules/index.d.ts +60 -0
- package/build/esm/components/molecules/languageSwitcher/index.d.ts +13 -0
- package/build/esm/components/molecules/languageSwitcher/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +19 -0
- package/build/esm/components/molecules/languageSwitcher/tooltipSelection/index.styled.d.ts +5 -0
- package/build/esm/components/molecules/mobileBottomNavigation/MobileBottomNavigationIcon.d.ts +13 -0
- package/build/esm/components/molecules/mobileBottomNavigation/index.d.ts +13 -0
- package/build/esm/components/molecules/mobileBottomNavigation/index.styled.d.ts +8 -0
- package/build/esm/components/molecules/modal/index.d.ts +19 -0
- package/build/esm/components/molecules/modal/index.styled.d.ts +5 -0
- package/build/esm/components/molecules/modal/index.test.d.ts +1 -0
- package/build/esm/components/molecules/ovulationCalculator/index.d.ts +16 -0
- package/build/esm/components/molecules/ovulationCalculator/ovulationForm.d.ts +15 -0
- package/build/esm/components/molecules/pillCarousel/index.d.ts +19 -0
- package/build/esm/components/molecules/pillCarousel/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/popup/index.d.ts +12 -0
- package/build/esm/components/molecules/popup/index.styled.d.ts +2 -0
- package/build/esm/components/molecules/popup/index.test.d.ts +1 -0
- package/build/esm/components/molecules/progressBar/index.d.ts +17 -0
- package/build/esm/components/molecules/progressBar/index.styled.d.ts +12 -0
- package/build/esm/components/molecules/progressBar/index.test.d.ts +1 -0
- package/build/esm/components/molecules/radioGroup/index.d.ts +26 -0
- package/build/esm/components/molecules/radioGroup/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/radioGroup/index.test.d.ts +1 -0
- package/build/esm/components/molecules/radioImageGroupForTool/index.d.ts +17 -0
- package/build/esm/components/molecules/radioImageGroupForTool/index.styled.d.ts +2 -0
- package/build/esm/components/molecules/scrollList/index.d.ts +38 -0
- package/build/esm/components/molecules/scrollList/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/seoHead/index.d.ts +49 -0
- package/build/esm/components/molecules/shareContainer/index.d.ts +11 -0
- package/build/esm/components/molecules/shareContainer/index.styled.d.ts +1 -0
- package/build/esm/components/molecules/shareDrawer/index.d.ts +12 -0
- package/build/esm/components/molecules/shareDrawer/index.styled.d.ts +2 -0
- package/build/esm/components/molecules/sidemenu/index.d.ts +4 -0
- package/build/esm/components/molecules/sidemenu/index.test.d.ts +1 -0
- package/build/esm/components/molecules/sidemenu/menuLink.d.ts +16 -0
- package/build/esm/components/molecules/sidemenu/sideHeader.d.ts +9 -0
- package/build/esm/components/molecules/sidemenu/sideMenu.d.ts +9 -0
- package/build/esm/components/molecules/sidemenu/test.d.ts +3 -0
- package/build/esm/components/molecules/sidemenu/userInfo.d.ts +9 -0
- package/build/esm/components/molecules/starsRatingBox/index.d.ts +23 -0
- package/build/esm/components/molecules/starsRatingBox/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/statisticCard/index.d.ts +12 -0
- package/build/esm/components/molecules/statisticCard/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/statisticCard/index.test.d.ts +1 -0
- package/build/esm/components/molecules/surveyQuestionCard/index.d.ts +2 -0
- package/build/esm/components/molecules/surveyQuestionCard/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/surveyQuestionCard/index.test.d.ts +1 -0
- package/build/esm/components/molecules/surveyQuestionCard/surveyQuestionCard.d.ts +28 -0
- package/build/esm/components/molecules/surveyQuestionCard/surveyQuestionContent.d.ts +38 -0
- package/build/esm/components/molecules/surveyQuestionCard/surveyRadio.d.ts +16 -0
- package/build/esm/components/molecules/surveyQuestionCard/surveyThankyouCard.d.ts +8 -0
- package/build/esm/components/molecules/table/index.d.ts +5 -0
- package/build/esm/components/molecules/table/index.test.d.ts +1 -0
- package/build/esm/components/molecules/table/table.d.ts +10 -0
- package/build/esm/components/molecules/table/tableBody.d.ts +10 -0
- package/build/esm/components/molecules/table/tableCell.d.ts +10 -0
- package/build/esm/components/molecules/table/tableHead.d.ts +9 -0
- package/build/esm/components/molecules/table/tableRow.d.ts +11 -0
- package/build/esm/components/molecules/tabs/index.d.ts +27 -0
- package/build/esm/components/molecules/tabs/index.styled.d.ts +4 -0
- package/build/esm/components/molecules/tabs/index.styles.d.ts +12 -0
- package/build/esm/components/molecules/tabs/index.test.d.ts +1 -0
- package/build/esm/components/molecules/thrForm/index.d.ts +15 -0
- package/build/esm/components/molecules/thrForm/index.styled.d.ts +7 -0
- package/build/esm/components/molecules/toolBannerCard/index.d.ts +18 -0
- package/build/esm/components/molecules/toolBannerCard/index.styled.d.ts +24 -0
- package/build/esm/components/molecules/weightGainForm/index.d.ts +13 -0
- package/build/esm/components/molecules/weightGainForm/index.styled.d.ts +20 -0
- package/build/esm/components/navigationV2/components/atoms/ArrowLeftPopupIcon.d.ts +2 -0
- package/build/esm/components/navigationV2/components/atoms/ClosePopupIcon.d.ts +6 -0
- package/build/esm/components/navigationV2/components/atoms/HamburgerIcon.d.ts +11 -0
- package/build/esm/components/navigationV2/components/atoms/ItemNav/index.d.ts +12 -0
- package/build/esm/components/navigationV2/components/atoms/PopupWrapper/btnClosePopup.d.ts +6 -0
- package/build/esm/components/navigationV2/components/atoms/PopupWrapper/index.d.ts +10 -0
- package/build/esm/components/navigationV2/components/atoms/SearchIcon.d.ts +2 -0
- package/build/esm/components/navigationV2/components/atoms/searchInput/index.d.ts +2 -0
- package/build/esm/components/navigationV2/components/molecules/Categories/index.d.ts +16 -0
- package/build/esm/components/navigationV2/components/molecules/Categories/index.styled.d.ts +7 -0
- package/build/esm/components/navigationV2/components/molecules/Spotlights/index.d.ts +15 -0
- package/build/esm/components/navigationV2/components/molecules/Spotlights/index.styled.d.ts +3 -0
- package/build/esm/components/navigationV2/components/molecules/menuCareList/Item/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuCareList/Item/index.styled.d.ts +9 -0
- package/build/esm/components/navigationV2/components/molecules/menuCareList/careSpotlights.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuCareList/index.d.ts +11 -0
- package/build/esm/components/navigationV2/components/molecules/menuCareList/index.styled.d.ts +2 -0
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/Item/index.d.ts +15 -0
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/Item/index.styled.d.ts +3 -0
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/categorySpotlights.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/index.d.ts +10 -0
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/index.styled.d.ts +3 -0
- package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/Item/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/Item/index.styled.d.ts +11 -0
- package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/communitySpotlights.d.ts +7 -0
- package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/index.d.ts +10 -0
- package/build/esm/components/navigationV2/components/molecules/menuCommunitiesList/index.styled.d.ts +3 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/Item/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/Item/index.styled.d.ts +6 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/ItemMarryBaby/index.d.ts +9 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/ItemMarryBaby/index.styled.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/index.d.ts +12 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/index.styled.d.ts +2 -0
- package/build/esm/components/navigationV2/components/molecules/menuHealthToolsList/toolSpotlights.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuServiceList/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuServiceList/index.styled.d.ts +23 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/bookingButton/index.d.ts +9 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/hamburgerMenu/index.d.ts +9 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +12 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/spotlightNoData/index.d.ts +10 -0
- package/build/esm/components/navigationV2/components/molecules/spotlightNoData/index.styled.d.ts +5 -0
- package/build/esm/components/navigationV2/constants.d.ts +59 -0
- package/build/esm/components/navigationV2/hooks/useHeaderHeight.d.ts +12 -0
- package/build/esm/components/navigationV2/hooks/useInsider.d.ts +1 -0
- package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +28 -0
- package/build/esm/components/navigationV2/hooks/useNavServices.d.ts +2 -0
- package/build/esm/components/navigationV2/index.d.ts +57 -0
- package/build/esm/components/navigationV2/index.styled.d.ts +3 -0
- package/build/esm/components/navigationV2/navigationContext.d.ts +10 -0
- package/build/esm/components/navigationV2/types.d.ts +243 -0
- package/build/esm/components/navigationV2/utils.d.ts +57 -0
- package/build/esm/components/onboarding/context.d.ts +7 -0
- package/build/esm/components/onboarding/dynamicForm/index.d.ts +9 -0
- package/build/esm/components/onboarding/dynamicForm/index.styled.d.ts +1 -0
- package/build/esm/components/onboarding/generateSchema.d.ts +40 -0
- package/build/esm/components/onboarding/index.d.ts +20 -0
- package/build/esm/components/onboarding/onboardingForm/default.d.ts +13 -0
- package/build/esm/components/onboarding/onboardingForm/index.d.ts +19 -0
- package/build/esm/components/onboarding/onboardingForm/index.styled.d.ts +2 -0
- package/build/esm/components/onboarding/onboardingForm/similac.d.ts +22 -0
- package/build/esm/components/onboarding/onboardingModal/index.d.ts +37 -0
- package/build/esm/components/onboarding/onboardingModal/index.styled.d.ts +7 -0
- package/build/esm/components/onboarding/otpForm/index.d.ts +14 -0
- package/build/esm/components/onboarding/otpForm/index.styled.d.ts +2 -0
- package/build/esm/components/onboarding/personalInfoForm/index.d.ts +16 -0
- package/build/esm/components/onboarding/personalInfoForm/index.styled.d.ts +1 -0
- package/build/esm/components/onboarding/updatePassword/index.d.ts +11 -0
- package/build/esm/components/onboarding/utils.d.ts +12 -0
- package/build/esm/components/onboardingV2/context.d.ts +20 -0
- package/build/esm/components/onboardingV2/dynamicForm/context.d.ts +2 -0
- package/build/esm/components/onboardingV2/dynamicForm/index.d.ts +25 -0
- package/build/esm/components/onboardingV2/dynamicForm/index.styled.d.ts +8 -0
- package/build/esm/components/onboardingV2/frisoForm/index.d.ts +40 -0
- package/build/esm/components/onboardingV2/frisoForm/schema.d.ts +16 -0
- package/build/esm/components/onboardingV2/index.d.ts +46 -0
- package/build/esm/components/onboardingV2/index.styled.d.ts +7 -0
- package/build/esm/components/onboardingV2/modal.d.ts +13 -0
- package/build/esm/components/onboardingV2/onboardingForm/index.d.ts +14 -0
- package/build/esm/components/onboardingV2/onboardingForm/index.styled.d.ts +2 -0
- package/build/esm/components/onboardingV2/onboardingForm/schema.d.ts +8 -0
- package/build/esm/components/onboardingV2/onboardingUI/index.d.ts +9 -0
- package/build/esm/components/onboardingV2/onboardingUI/index.styled.d.ts +4 -0
- package/build/esm/components/onboardingV2/otpForm/email.d.ts +11 -0
- package/build/esm/components/onboardingV2/otpForm/index.styled.d.ts +2 -0
- package/build/esm/components/onboardingV2/otpForm/phone.d.ts +11 -0
- package/build/esm/components/onboardingV2/otpForm/schema.d.ts +8 -0
- package/build/esm/components/onboardingV2/personalInfoForm/index.d.ts +16 -0
- package/build/esm/components/onboardingV2/personalInfoForm/index.styled.d.ts +1 -0
- package/build/esm/components/onboardingV2/personalInfoForm/schema.d.ts +10 -0
- package/build/esm/components/onboardingV2/provider.d.ts +7 -0
- package/build/esm/components/onboardingV2/resultScreen/index.d.ts +6 -0
- package/build/esm/components/onboardingV2/similacForm/index.d.ts +23 -0
- package/build/esm/components/onboardingV2/similacForm/index.styled.d.ts +2 -0
- package/build/esm/components/onboardingV2/similacForm/schema.d.ts +16 -0
- package/build/esm/components/onboardingV2/stepRenderer.d.ts +11 -0
- package/build/esm/components/onboardingV2/thankyou/index.d.ts +11 -0
- package/build/esm/components/onboardingV2/thankyou/index.styled.d.ts +2 -0
- package/build/esm/components/onboardingV2/types.d.ts +16 -0
- package/build/esm/components/onboardingV2/updatePasswordForm/index.d.ts +11 -0
- package/build/esm/components/onboardingV2/updatePasswordForm/schema.d.ts +10 -0
- package/build/esm/components/onboardingV2/utils.d.ts +12 -0
- package/build/esm/components/organisms/footer/discoverFooter/index.d.ts +11 -0
- package/build/esm/components/organisms/footer/index.d.ts +21 -0
- package/build/esm/components/organisms/footer/maryBabyFooter/index.d.ts +11 -0
- package/build/esm/components/organisms/heroBannerHealthTool/healthToolBanner/index.d.ts +23 -0
- package/build/esm/components/organisms/heroBannerHealthTool/index.d.ts +12 -0
- package/build/esm/components/organisms/heroBannerHealthTool/index.styled.d.ts +10 -0
- package/build/esm/components/organisms/index.d.ts +6 -0
- package/build/esm/components/organisms/navigationLogoutPopup/index.d.ts +9 -0
- package/build/esm/components/organisms/navigationLogoutPopup/index.styled.d.ts +6 -0
- package/build/esm/components/organisms/navigationProfileButton/index.d.ts +25 -0
- package/build/esm/components/organisms/navigationProfileButton/index.styled.d.ts +9 -0
- package/build/esm/components/organisms/navigationProfileButton/popupWrapper.d.ts +14 -0
- package/build/esm/components/organisms/navigationProfileButton/profilePopup.d.ts +23 -0
- package/build/esm/components/organisms/userProfileNavigation/constants.d.ts +8 -0
- package/build/esm/components/organisms/userProfileNavigation/index.d.ts +34 -0
- package/build/esm/components/organisms/userProfileNavigation/navHeader/index.d.ts +10 -0
- package/build/esm/components/organisms/userProfileNavigation/navMenu/index.d.ts +9 -0
- package/build/esm/components/organisms/userProfileNavigation/navMenu/items.d.ts +3 -0
- package/build/esm/components/organisms/userProfileNavigation/navigationCard/index.d.ts +10 -0
- package/build/esm/components/organisms/userProfileNavigation/types.d.ts +17 -0
- package/build/esm/components/organisms/userProfileNavigation/userStats/index.d.ts +9 -0
- package/build/esm/components/pregnancyWeightGain/index.d.ts +2 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/chartConfig.d.ts +36 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/chart.d.ts +18 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/chartLegend.d.ts +7 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/customizedAxisTick.d.ts +2 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/customizedTooltipLabel.d.ts +4 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/index.d.ts +3 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/components/index.styled.d.ts +3 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/index.d.ts +12 -0
- package/build/esm/components/pregnancyWeightGain/pregnancyWeightGainChart/index.styled.d.ts +1 -0
- package/build/esm/components/ui/cardArticle/element/index.d.ts +7 -0
- package/build/esm/components/ui/cardArticle/index.d.ts +13 -0
- package/build/esm/components/ui/cardAuthor/element/index.d.ts +13 -0
- package/build/esm/components/ui/cardAuthor/index.d.ts +22 -0
- package/build/esm/components/ui/index.d.ts +1 -0
- package/build/esm/components/ui/loading/index.d.ts +7 -0
- package/build/esm/components/ui/onboarding/index.d.ts +9 -0
- package/build/esm/components/ui/onboarding/index.styled.d.ts +4 -0
- package/build/esm/components/ui/thumbnail/index.d.ts +13 -0
- package/build/esm/components/vaccination/helpers.d.ts +11 -0
- package/build/esm/components/vaccination/index.d.ts +13 -0
- package/build/esm/components/vaccination/shared/badge.d.ts +9 -0
- package/build/esm/components/vaccination/shared/cardIcon.d.ts +8 -0
- package/build/esm/components/vaccination/shared/dose.d.ts +10 -0
- package/build/esm/components/vaccination/shared/index.d.ts +2 -0
- package/build/esm/components/vaccination/vaccinationFilter/helper.d.ts +4 -0
- package/build/esm/components/vaccination/vaccinationFilter/index.d.ts +7 -0
- package/build/esm/components/vaccination/vaccineCard/immunization.d.ts +3 -0
- package/build/esm/components/vaccination/vaccineCard/index.d.ts +34 -0
- package/build/esm/components/vaccination/vaccineCard/index.styled.d.ts +4 -0
- package/build/esm/components/vaccination/vaccineCard/modal.d.ts +3 -0
- package/build/esm/components/vaccination/vaccineCard/status.d.ts +7 -0
- package/build/esm/components/vaccination/vaccineCard/timeline.d.ts +3 -0
- package/build/esm/components/vaccination/vaccineDetailPopup/confirmModal.d.ts +8 -0
- package/build/esm/components/vaccination/vaccineDetailPopup/default.d.ts +16 -0
- package/build/esm/components/vaccination/vaccineDetailPopup/detail.d.ts +8 -0
- package/build/esm/components/vaccination/vaccineDetailPopup/icon.d.ts +6 -0
- package/build/esm/components/vaccination/vaccineDetailPopup/immunization.d.ts +14 -0
- package/build/esm/components/vaccination/vaccineDetailPopup/index.d.ts +18 -0
- package/build/esm/components/vaccination/vaccineImmunization/header.d.ts +8 -0
- package/build/esm/components/vaccination/vaccineImmunization/index.d.ts +9 -0
- package/build/esm/components/vaccination/vaccineImmunization/index.styled.d.ts +2 -0
- package/build/esm/components/vaccination/vaccineImmunization/warning.d.ts +3 -0
- package/build/esm/components/vaccination/vaccineRecordsByAgeGroup/index.d.ts +17 -0
- package/build/esm/components/vaccination/vaccineRecordsByAgeGroup/index.styled.d.ts +5 -0
- package/build/esm/components/vaccination/vaccineRecordsByAgeGroup/records.d.ts +11 -0
- package/build/esm/components/vaccination/vaccineRecordsByAgeGroup/scheduleTimeline.d.ts +10 -0
- package/build/esm/components/vaccination/vaccineTimelineBanner/index.d.ts +12 -0
- package/build/esm/components/vaccination/vaccineTimelineBanner/index.styled.d.ts +1 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/core-ca5ab563.js +1 -0
- package/build/esm/dataTransform-2636eb02.js +1 -0
- package/build/esm/ecom/dataFormatter/index.d.ts +43 -0
- package/build/esm/ecom/dataFormatter/lib/apiTypes.d.ts +575 -0
- package/build/esm/ecom/dataFormatter/lib/dataTypes.d.ts +483 -0
- package/build/esm/ecom/dataFormatter/lib/utils.d.ts +10 -0
- package/build/esm/ecom/index.d.ts +5 -0
- package/build/esm/ecom/interfaces/constants.d.ts +129 -0
- package/build/esm/ecom/interfaces/types.d.ts +85 -0
- package/build/esm/ecom.js +1 -1
- package/build/esm/fixedBottomAdBlock-90b58e94.js +1 -0
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-e534ef6f.js +1 -0
- package/build/esm/getSocialList-ba669946.js +1 -0
- package/build/esm/hooks/index.d.ts +11 -0
- package/build/esm/hooks/useCSSFocusPopupHelper.d.ts +10 -0
- package/build/esm/hooks/useDragScroll.d.ts +10 -0
- package/build/esm/hooks/useDropdownSearch.d.ts +15 -0
- package/build/esm/hooks/useFbDataLayer.d.ts +2 -0
- package/build/esm/hooks/useGeolocation.d.ts +7 -0
- package/build/esm/hooks/useGetIsMobile.d.ts +2 -0
- package/build/esm/hooks/useHealthToolCache.d.ts +5 -0
- package/build/esm/hooks/useImageSize.d.ts +5 -0
- package/build/esm/hooks/useImagesPicker.d.ts +8 -0
- package/build/esm/hooks/useInitialMount.d.ts +3 -0
- package/build/esm/hooks/useIsInit.d.ts +1 -0
- package/build/esm/hooks/useOutsideClick.d.ts +7 -0
- package/build/esm/hooks/usePlacesAutocomplete.d.ts +17 -0
- package/build/esm/hooks/usePrevious.d.ts +3 -0
- package/build/esm/hooks/useRafState.d.ts +3 -0
- package/build/esm/hooks/useScreenSize.d.ts +4 -0
- package/build/esm/hooks/useScrollbarSize.d.ts +9 -0
- package/build/esm/hooks/useTranslations.d.ts +9 -0
- package/build/esm/hooks/useUniqueId.d.ts +5 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n/index.d.ts +2 -0
- package/build/esm/i18n/indexV2.d.ts +2 -0
- package/build/esm/i18n/translationKeys.d.ts +1 -0
- package/build/esm/i18n/translationsContext.d.ts +14 -0
- package/build/esm/i18n/translationsProvider.d.ts +24 -0
- package/build/esm/i18n/translationsProviderV2.d.ts +13 -0
- package/build/esm/i18n-values/en-PH.js +1 -0
- package/build/esm/i18n-values/hi-IN.js +1 -0
- package/build/esm/i18n-values/id-ID.js +1 -0
- package/build/esm/i18n-values/km-KH.js +1 -0
- package/build/esm/i18n-values/ms-MY.js +1 -0
- package/build/esm/i18n-values/my-MM.js +1 -0
- package/build/esm/i18n-values/th-TH.js +1 -0
- package/build/esm/i18n-values/tl-PH.js +1 -0
- package/build/esm/i18n-values/vi-VN.js +1 -0
- package/build/esm/i18n-values/vi-VN_MB.js +1 -0
- package/build/esm/i18n-values/zh-TW.js +1 -0
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -0
- package/build/esm/icons/Cambodia.d.ts +4 -0
- package/build/esm/icons/CaretDown.d.ts +4 -0
- package/build/esm/icons/CheckCircle.d.ts +4 -0
- package/build/esm/icons/ChevronDown.d.ts +4 -0
- package/build/esm/icons/ChevronLeft.d.ts +4 -0
- package/build/esm/icons/ChevronRight.d.ts +4 -0
- package/build/esm/icons/ChevronUp.d.ts +4 -0
- package/build/esm/icons/Circle.d.ts +4 -0
- package/build/esm/icons/Close.d.ts +4 -0
- package/build/esm/icons/EmailCheck.d.ts +4 -0
- package/build/esm/icons/EmailFail.d.ts +4 -0
- package/build/esm/icons/Facebook.d.ts +4 -0
- package/build/esm/icons/Google.d.ts +4 -0
- package/build/esm/icons/InVisible.d.ts +4 -0
- package/build/esm/icons/India.d.ts +4 -0
- package/build/esm/icons/Indonesia.d.ts +4 -0
- package/build/esm/icons/Malaysia.d.ts +4 -0
- package/build/esm/icons/Myanmar.d.ts +4 -0
- package/build/esm/icons/Phillipines.d.ts +4 -0
- package/build/esm/icons/Spinning.d.ts +4 -0
- package/build/esm/icons/Taiwan.d.ts +4 -0
- package/build/esm/icons/Thailand.d.ts +4 -0
- package/build/esm/icons/Vietnam.d.ts +4 -0
- package/build/esm/icons/Visible.d.ts +4 -0
- package/build/esm/icons/index.d.ts +25 -0
- package/build/esm/index-005197f2.js +1 -0
- package/build/esm/index-037800a3.js +53 -0
- package/build/esm/index-19e3a78e.js +93 -0
- package/build/esm/index-26789e0e.js +1 -0
- package/build/esm/index-2903b869.js +3831 -0
- package/build/esm/index-3bbf6c00.js +1 -0
- package/build/esm/index-44d7b18f.js +112 -0
- package/build/esm/index-4add3d7d.js +1 -0
- package/build/esm/index-53114a95.js +1 -0
- package/build/esm/index-53f8a959.js +1 -0
- package/build/esm/index-5531a54b.js +1 -0
- package/build/esm/index-5878087a.js +1 -0
- package/build/esm/index-5f75003a.js +113 -0
- package/build/esm/index-847b4443.js +1 -0
- package/build/esm/index-a8a16c31.js +1 -0
- package/build/esm/index-a9413715.js +1 -0
- package/build/esm/index-bcc5707d.js +1 -0
- package/build/esm/index-bf666b23.js +1 -0
- package/build/esm/index-d98f16b2.js +1 -0
- package/build/esm/index-dbf06f27.js +1 -0
- package/build/esm/index-e5610a78.js +177 -0
- package/build/esm/index-eb4c7392.js +1249 -0
- package/build/esm/index-f0fbdf4e.js +1 -0
- package/build/esm/index-f56e58e1.js +1 -0
- package/build/esm/index-ff6a4eb3.js +1 -0
- package/build/esm/index.d.ts +8 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-203e1a32.js +130 -0
- package/build/esm/index.styled-36141586.js +69 -0
- package/build/esm/index.styled-3efe84f8.js +1874 -0
- package/build/esm/index.styled-55682bfc.js +50 -0
- package/build/esm/interfaces/baby-growth/errorMessage.d.ts +13 -0
- package/build/esm/interfaces/constants/index.d.ts +85 -0
- package/build/esm/interfaces/constants/isProduction.d.ts +1 -0
- package/build/esm/interfaces/constants/site.d.ts +28 -0
- package/build/esm/interfaces/types/Address.d.ts +4 -0
- package/build/esm/interfaces/types/BabyGrowth.d.ts +129 -0
- package/build/esm/interfaces/types/BabyVaccination.d.ts +134 -0
- package/build/esm/interfaces/types/HealthTool.d.ts +18 -0
- package/build/esm/interfaces/types/Locale.d.ts +12 -0
- package/build/esm/interfaces/types/Onboarding.d.ts +21 -0
- package/build/esm/interfaces/types/index.d.ts +116 -0
- package/build/esm/lead/constants.d.ts +79 -0
- package/build/esm/lead/i18n/index.d.ts +1 -0
- package/build/esm/lead/index.d.ts +12 -0
- package/build/esm/lead/layouts/centerTab.d.ts +10 -0
- package/build/esm/lead/layouts/closeButton.d.ts +6 -0
- package/build/esm/lead/layouts/floating.d.ts +15 -0
- package/build/esm/lead/layouts/inline.d.ts +5 -0
- package/build/esm/lead/layouts/lightbox/fields/index.d.ts +9 -0
- package/build/esm/lead/layouts/lightbox/fields/locationBlock.d.ts +6 -0
- package/build/esm/lead/layouts/lightbox/fields/subtitleBlock.d.ts +5 -0
- package/build/esm/lead/layouts/lightbox/fields/titleBlock.d.ts +5 -0
- package/build/esm/lead/layouts/lightbox/formContext.d.ts +12 -0
- package/build/esm/lead/layouts/lightbox/index.d.ts +29 -0
- package/build/esm/lead/layouts/lightbox/otpBlock.d.ts +6 -0
- package/build/esm/lead/layouts/sidebar.d.ts +4 -0
- package/build/esm/lead/layouts/skin.d.ts +12 -0
- package/build/esm/lead/layouts/tab.d.ts +9 -0
- package/build/esm/lead/leadGenContext.d.ts +9 -0
- package/build/esm/lead/newLeadPopup.d.ts +24 -0
- package/build/esm/lead/services/index.d.ts +20 -0
- package/build/esm/lead/store/index.d.ts +6 -0
- package/build/esm/lead/thankyou.d.ts +11 -0
- package/build/esm/lead/utils/checkUsedEmailOrPhone.d.ts +11 -0
- package/build/esm/lead/utils.d.ts +10 -0
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc/ageGenerate.d.ts +5 -0
- package/build/esm/misc/animation.d.ts +10 -0
- package/build/esm/misc/callApi/helpers.d.ts +4 -0
- package/build/esm/misc/callApi/index.d.ts +24 -0
- package/build/esm/misc/callApi/instance.d.ts +11 -0
- package/build/esm/misc/callApi/interceptors.d.ts +6 -0
- package/build/esm/misc/cookieHelper.d.ts +8 -0
- package/build/esm/misc/dataTransform.d.ts +2 -0
- package/build/esm/misc/defaultClassWrapper.d.ts +4 -0
- package/build/esm/misc/gAssets/gAssets.test.d.ts +1 -0
- package/build/esm/misc/gAssets/index.d.ts +7 -0
- package/build/esm/misc/getDynamicHealthTool.d.ts +4 -0
- package/build/esm/misc/getSocialList.d.ts +7 -0
- package/build/esm/misc/index.d.ts +13 -0
- package/build/esm/misc/link.d.ts +2 -0
- package/build/esm/misc/localizeNumberFormat.d.ts +2 -0
- package/build/esm/misc/mockTheme.d.ts +5 -0
- package/build/esm/misc/noop.d.ts +1 -0
- package/build/esm/misc/normalizeLink.d.ts +3 -0
- package/build/esm/misc/number.d.ts +1 -0
- package/build/esm/misc/routing.d.ts +5 -0
- package/build/esm/misc/screenSizeContext.d.ts +23 -0
- package/build/esm/misc/theme.d.ts +366 -0
- package/build/esm/misc/unifyEnv.d.ts +22 -0
- package/build/esm/misc/utils.d.ts +58 -0
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/pwg.js +3 -3
- package/build/esm/routing-27830e13.js +1 -0
- package/build/esm/screenSizeContext-4b7328f7.js +81 -0
- package/build/esm/test/testTranslationProvider.d.ts +4 -0
- package/build/esm/together/api/dataTransform.d.ts +43 -0
- package/build/esm/together/api/paths.d.ts +156 -0
- package/build/esm/together/api/utils.d.ts +67 -0
- package/build/esm/together/components/atoms/cardLink/index.d.ts +12 -0
- package/build/esm/together/components/atoms/cardLink/index.styled.d.ts +3 -0
- package/build/esm/together/components/atoms/cardReactions/context.d.ts +12 -0
- package/build/esm/together/components/atoms/cardReactions/element/index.d.ts +8 -0
- package/build/esm/together/components/atoms/cardReactions/index.d.ts +34 -0
- package/build/esm/together/components/atoms/index.d.ts +8 -0
- package/build/esm/together/components/atoms/labelSortPin/index.d.ts +11 -0
- package/build/esm/together/components/atoms/labelSortPin/index.styled.d.ts +1 -0
- package/build/esm/together/components/atoms/labelSortPin/labelPin.d.ts +9 -0
- package/build/esm/together/components/atoms/labelSortPin/labelSorting.d.ts +31 -0
- package/build/esm/together/components/atoms/loading/index.d.ts +7 -0
- package/build/esm/together/components/atoms/loading/index.styled.d.ts +2 -0
- package/build/esm/together/components/atoms/loading/loadingCard.d.ts +7 -0
- package/build/esm/together/components/atoms/notificationBar/index.d.ts +9 -0
- package/build/esm/together/components/atoms/notificationBar/index.styled.d.ts +7 -0
- package/build/esm/together/components/atoms/sensitiveMask/index.d.ts +12 -0
- package/build/esm/together/components/atoms/sensitiveMask/index.styled.d.ts +4 -0
- package/build/esm/together/components/atoms/tagTopic/index.d.ts +25 -0
- package/build/esm/together/components/atoms/userAvatar/index.d.ts +11 -0
- package/build/esm/together/components/atoms/userAvatar/index.styled.d.ts +3 -0
- package/build/esm/together/components/molecules/cardAuthor/index.d.ts +63 -0
- package/build/esm/together/components/molecules/cardAuthor/index.styles.d.ts +9 -0
- package/build/esm/together/components/molecules/createNewPostContent/index.d.ts +22 -0
- package/build/esm/together/components/molecules/createNewPostContent/index.styled.d.ts +3 -0
- package/build/esm/together/components/molecules/createPostDescription/editor.d.ts +20 -0
- package/build/esm/together/components/molecules/createPostDescription/index.d.ts +19 -0
- package/build/esm/together/components/molecules/createPostDescription/index.styled.d.ts +2 -0
- package/build/esm/together/components/molecules/createPostTitle/index.d.ts +9 -0
- package/build/esm/together/components/molecules/createPostTitle/index.styled.d.ts +1 -0
- package/build/esm/together/components/molecules/index.d.ts +22 -0
- package/build/esm/together/components/molecules/inputCommentBar/index.d.ts +19 -0
- package/build/esm/together/components/molecules/inputCommentBar/index.styled.d.ts +1 -0
- package/build/esm/together/components/molecules/inputCommentBar/mainInputTriggerContext.d.ts +9 -0
- package/build/esm/together/components/molecules/popupDanger/index.d.ts +21 -0
- package/build/esm/together/components/molecules/popupDanger/index.styled.d.ts +1 -0
- package/build/esm/together/components/molecules/popupDoctor/index.d.ts +16 -0
- package/build/esm/together/components/molecules/popupDoctor/index.styled.d.ts +8 -0
- package/build/esm/together/components/molecules/popupExpert/index.d.ts +29 -0
- package/build/esm/together/components/molecules/popupExpert/index.styled.d.ts +7 -0
- package/build/esm/together/components/molecules/popupFrame/index.d.ts +12 -0
- package/build/esm/together/components/molecules/popupFrame/index.styled.d.ts +5 -0
- package/build/esm/together/components/molecules/popupFrame/popupShare.d.ts +12 -0
- package/build/esm/together/components/molecules/popupHospital/index.d.ts +33 -0
- package/build/esm/together/components/molecules/popupHospital/index.styled.d.ts +7 -0
- package/build/esm/together/components/molecules/postContent/index.d.ts +23 -0
- package/build/esm/together/components/molecules/postContent/index.styled.d.ts +3 -0
- package/build/esm/together/components/molecules/postContent/index.styles.d.ts +8 -0
- package/build/esm/together/components/molecules/postImagePreview/imagePreviewPopup.d.ts +11 -0
- package/build/esm/together/components/molecules/postImagePreview/index.d.ts +12 -0
- package/build/esm/together/components/molecules/postImagePreview/index.styled.d.ts +4 -0
- package/build/esm/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.d.ts +8 -0
- package/build/esm/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.styled.d.ts +5 -0
- package/build/esm/together/components/molecules/profileDetail/about/articleCard/index.d.ts +7 -0
- package/build/esm/together/components/molecules/profileDetail/about/index.d.ts +7 -0
- package/build/esm/together/components/molecules/profileDetail/answering/index.d.ts +11 -0
- package/build/esm/together/components/molecules/profileDetail/answering/postCard/index.d.ts +13 -0
- package/build/esm/together/components/molecules/profileDetail/care/index.d.ts +3 -0
- package/build/esm/together/components/molecules/profileDetail/care/questionCard/index.d.ts +15 -0
- package/build/esm/together/components/molecules/profileDetail/context.d.ts +21 -0
- package/build/esm/together/components/molecules/profileDetail/emptyMessage/index.d.ts +9 -0
- package/build/esm/together/components/molecules/profileDetail/index.d.ts +45 -0
- package/build/esm/together/components/molecules/profileDetail/posts/index.d.ts +3 -0
- package/build/esm/together/components/molecules/profileDetail/posts/postCard/index.d.ts +13 -0
- package/build/esm/together/components/molecules/profileDetail/types.d.ts +21 -0
- package/build/esm/together/components/molecules/profileDetail/utils/dataTransform.d.ts +3 -0
- package/build/esm/together/components/molecules/profileDetail/utils/types.d.ts +32 -0
- package/build/esm/together/components/molecules/profileDetailModal/index.d.ts +9 -0
- package/build/esm/together/components/molecules/shareBox/index.d.ts +9 -0
- package/build/esm/together/components/molecules/shareBox/index.styled.d.ts +2 -0
- package/build/esm/together/components/molecules/skipQuestionOfExpertBtn/index.d.ts +15 -0
- package/build/esm/together/components/molecules/socialLinkPreview/index.d.ts +10 -0
- package/build/esm/together/components/molecules/socialLinkPreview/index.styled.d.ts +3 -0
- package/build/esm/together/components/molecules/submitReportForm/index.d.ts +11 -0
- package/build/esm/together/components/molecules/submitReportForm/index.styled.d.ts +1 -0
- package/build/esm/together/components/molecules/topicSelectList/index.d.ts +16 -0
- package/build/esm/together/components/molecules/topicSelectList/index.styled.d.ts +1 -0
- package/build/esm/together/components/organisms/cardPost/cardPostPopover.d.ts +14 -0
- package/build/esm/together/components/organisms/cardPost/index.d.ts +30 -0
- package/build/esm/together/components/organisms/cardPost/index.styled.d.ts +1 -0
- package/build/esm/together/components/organisms/cardReply/cardReplyPopover.d.ts +7 -0
- package/build/esm/together/components/organisms/cardReply/index.d.ts +22 -0
- package/build/esm/together/components/organisms/cardReply/index.styled.d.ts +3 -0
- package/build/esm/together/components/organisms/cardReply/verifiedTag/index.d.ts +7 -0
- package/build/esm/together/components/organisms/index.d.ts +7 -0
- package/build/esm/together/components/organisms/popoverMenu/index.d.ts +16 -0
- package/build/esm/together/components/organisms/popoverMenu/index.styled.d.ts +2 -0
- package/build/esm/together/components/organisms/popoverMenu/treePopoverMenu.d.ts +29 -0
- package/build/esm/together/components/organisms/sourceList/index.d.ts +10 -0
- package/build/esm/together/components/organisms/sourceList/index.styled.d.ts +5 -0
- package/build/esm/together/components/organisms/sourceList/recommentCategories/index.d.ts +7 -0
- package/build/esm/together/components/organisms/sourceList/recommentCategories/index.styled.d.ts +6 -0
- package/build/esm/together/components/organisms/sourceList/sourceItem/index.d.ts +7 -0
- package/build/esm/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +2 -0
- package/build/esm/together/hooks/useTogetherAuthRequiredAction.d.ts +23 -0
- package/build/esm/together/index.d.ts +8 -0
- package/build/esm/together/interfaces/constants.d.ts +106 -0
- package/build/esm/together/interfaces/types.d.ts +1609 -0
- package/build/esm/together/togetherComponentGlobalContext.d.ts +76 -0
- package/build/esm/together/utils/apiActions/comment.d.ts +31 -0
- package/build/esm/together/utils/apiActions/community.d.ts +6 -0
- package/build/esm/together/utils/apiActions/post.d.ts +50 -0
- package/build/esm/together/utils/apiActions/topic.d.ts +7 -0
- package/build/esm/together/utils/notification.d.ts +7 -0
- package/build/esm/together/utils/post.d.ts +43 -0
- package/build/esm/together.js +1 -1
- package/build/esm/types-24be29ff.js +339 -0
- package/build/esm/types-b6ae657a.js +3078 -0
- package/build/esm/types.js +1 -1
- package/build/esm/useHealthToolCache-3530329d.js +1 -0
- package/build/esm/useRafState-e5e9965a.js +1 -0
- package/build/esm/useTranslations-5408a48f.js +1 -0
- package/build/esm/utils-dd2bcbf3.js +1 -0
- package/build/esm/vaccination.js +5 -5
- package/build/fixedBottomAdBlock-e4f6a9cc.js +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-d58d8200.js +1 -0
- package/build/getSocialList-0685001b.js +1 -0
- package/build/hooks.js +1 -1
- package/build/i18n/index.d.ts +0 -1
- package/build/i18n/indexV2.d.ts +2 -0
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n/translationsContext.d.ts +5 -2
- package/build/i18n/translationsProvider.d.ts +8 -1
- package/build/i18n/translationsProviderV2.d.ts +13 -0
- package/build/i18n-values/en-PH.js +1 -0
- package/build/i18n-values/hi-IN.js +1 -0
- package/build/i18n-values/id-ID.js +1 -0
- package/build/i18n-values/km-KH.js +1 -0
- package/build/i18n-values/ms-MY.js +1 -0
- package/build/i18n-values/my-MM.js +1 -0
- package/build/i18n-values/th-TH.js +1 -0
- package/build/i18n-values/tl-PH.js +1 -0
- package/build/i18n-values/vi-VN.js +1 -0
- package/build/i18n-values/vi-VN_MB.js +1 -0
- package/build/i18n-values/zh-TW.js +1 -0
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -0
- package/build/index-0295dfd0.js +1 -0
- package/build/index-03dd912c.js +1 -0
- package/build/index-077b31a8.js +3831 -0
- package/build/index-082ecb8f.js +1 -0
- package/build/index-0aff6e51.js +1 -0
- package/build/index-15521508.js +113 -0
- package/build/index-19ec002a.js +1 -0
- package/build/index-1e503c6a.js +1 -0
- package/build/index-2f3706cc.js +1 -0
- package/build/index-2fd25e74.js +1 -0
- package/build/index-33779687.js +1 -0
- package/build/index-33bac2f6.js +1 -0
- package/build/index-3a6b8acc.js +1 -0
- package/build/index-4304341c.js +1 -0
- package/build/index-51b903cc.js +1 -0
- package/build/index-64b23e59.js +177 -0
- package/build/index-8460c89b.js +1 -0
- package/build/index-87220d58.js +1249 -0
- package/build/index-a484ac4e.js +1 -0
- package/build/index-a9075f15.js +1 -0
- package/build/index-ca3a2dfd.js +1 -0
- package/build/index-cac39c69.js +53 -0
- package/build/index-d7009823.js +93 -0
- package/build/index-e299b908.js +112 -0
- package/build/index-f7ac5503.js +1 -0
- package/build/index.d.ts +0 -1
- package/build/index.js +1 -1
- package/build/index.styled-110db5ed.js +50 -0
- package/build/index.styled-42ff6f74.js +1874 -0
- package/build/index.styled-5ba9ae97.js +69 -0
- package/build/index.styled-75ac476c.js +130 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +21 -21
- package/build/pwg.js +1 -1
- package/build/routing-3586e5e4.js +1 -0
- package/build/screenSizeContext-d319f5e1.js +81 -0
- package/build/together.js +1 -1
- package/build/types-544ceb03.js +3078 -0
- package/build/types-b0db06be.js +339 -0
- package/build/types.js +1 -1
- package/build/useHealthToolCache-c1b2f3b6.js +1 -0
- package/build/useRafState-c69371db.js +1 -0
- package/build/useTranslations-bc06f85b.js +1 -0
- package/build/utils-54ea7730.js +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +4 -1
- package/build/core-f9bfff7a.js +0 -1
- package/build/dataTransform-f1c54417.js +0 -1
- package/build/esm/core-add40e82.js +0 -1
- package/build/esm/dataTransform-444ca6d1.js +0 -1
- package/build/esm/fixedBottomAdBlock-357426e9.js +0 -1
- package/build/esm/getDynamicHealthTool-4bf20af7.js +0 -1
- package/build/esm/getSocialList-fce1ab18.js +0 -1
- package/build/esm/index-01f12f1f.js +0 -1
- package/build/esm/index-0b4c892b.js +0 -1
- package/build/esm/index-0cd7d6b2.js +0 -1
- package/build/esm/index-13cb3107.js +0 -93
- package/build/esm/index-1ea9cb87.js +0 -1
- package/build/esm/index-2978b19d.js +0 -177
- package/build/esm/index-36982fa1.js +0 -1
- package/build/esm/index-3b523451.js +0 -112
- package/build/esm/index-4044b40f.js +0 -1
- package/build/esm/index-46ecd655.js +0 -113
- package/build/esm/index-66fe3832.js +0 -1
- package/build/esm/index-6c96901a.js +0 -1249
- package/build/esm/index-81419b96.js +0 -1
- package/build/esm/index-a3037eb2.js +0 -3831
- package/build/esm/index-a416de6f.js +0 -1
- package/build/esm/index-ac94956d.js +0 -1
- package/build/esm/index-bb6f4b37.js +0 -1
- package/build/esm/index-bd3426f5.js +0 -1
- package/build/esm/index-c0dc212d.js +0 -1
- package/build/esm/index-c23a24a2.js +0 -1
- package/build/esm/index-de85d5e8.js +0 -1
- package/build/esm/index-e7f9f7c0.js +0 -53
- package/build/esm/index-ef98c205.js +0 -1
- package/build/esm/index-f92ff568.js +0 -1
- package/build/esm/index-fb38108c.js +0 -1
- package/build/esm/index.styled-164e34c0.js +0 -130
- package/build/esm/index.styled-4ca8aba3.js +0 -69
- package/build/esm/index.styled-7fb224cf.js +0 -50
- package/build/esm/index.styled-edcd2233.js +0 -1874
- package/build/esm/routing-5f87293f.js +0 -1
- package/build/esm/screenSizeContext-0c60ca17.js +0 -81
- package/build/esm/translationsProvider-e1e3a9fb.js +0 -1
- package/build/esm/types-69e36221.js +0 -339
- package/build/esm/types-9ac4c1d0.js +0 -3078
- package/build/esm/useHealthToolCache-5e85ad3c.js +0 -1
- package/build/esm/useRafState-89a6a2e2.js +0 -1
- package/build/esm/useTranslations-ec01afd7.js +0 -1
- package/build/esm/utils-cb5f96d1.js +0 -1
- package/build/fixedBottomAdBlock-e5f1e3f5.js +0 -1
- package/build/getDynamicHealthTool-7ae9301b.js +0 -1
- package/build/getSocialList-0d138893.js +0 -1
- package/build/i18n/translations.d.ts +0 -12
- package/build/index-0f5067c0.js +0 -1
- package/build/index-155ee9d8.js +0 -1
- package/build/index-2dcf4122.js +0 -1
- package/build/index-31025ed3.js +0 -1
- package/build/index-31efae1c.js +0 -1
- package/build/index-460e0d68.js +0 -1
- package/build/index-4919bc06.js +0 -112
- package/build/index-499fbb13.js +0 -113
- package/build/index-54540c99.js +0 -53
- package/build/index-5a18cdc5.js +0 -1
- package/build/index-5ff34f4f.js +0 -1
- package/build/index-6600a7a3.js +0 -1
- package/build/index-6924cc7d.js +0 -1
- package/build/index-74a9f0af.js +0 -1
- package/build/index-7c719aac.js +0 -1
- package/build/index-7cd398bc.js +0 -1
- package/build/index-7cdb28e0.js +0 -1
- package/build/index-8b33109a.js +0 -1
- package/build/index-8e766c65.js +0 -1
- package/build/index-92f9ac17.js +0 -177
- package/build/index-b989b2e4.js +0 -1
- package/build/index-c844d61e.js +0 -1
- package/build/index-ccde8154.js +0 -1249
- package/build/index-d0ad0ecf.js +0 -3831
- package/build/index-d6bf17c3.js +0 -93
- package/build/index.styled-2a97a787.js +0 -69
- package/build/index.styled-7bfc6d1b.js +0 -1874
- package/build/index.styled-9691c7a4.js +0 -50
- package/build/index.styled-d92a98ba.js +0 -130
- package/build/routing-5d94eae9.js +0 -1
- package/build/screenSizeContext-44ed68dd.js +0 -81
- package/build/translationsProvider-383a1882.js +0 -1
- package/build/types-2c5058f8.js +0 -3078
- package/build/types-e6bb1017.js +0 -339
- package/build/useHealthToolCache-cf1b042c.js +0 -1
- package/build/useRafState-7258e7ff.js +0 -1
- package/build/useTranslations-8682642a.js +0 -1
- package/build/utils-2d93a6de.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-482c73b5.js → BMI_BOYS.percentile.monthly-b0a629c4.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-fda6a826.js → BMI_BOYS.percentile.weekly-ae654ccd.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f3d0f9c5.js → BMI_BOYS.percentile.yearly-015e7171.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-2f388205.js → BMI_BOYS.zscore.monthly-c30cfdc7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-270f9dfc.js → BMI_BOYS.zscore.weekly-59b058f3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-3835ee06.js → BMI_BOYS.zscore.yearly-67e0d618.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-805251fc.js → BMI_GIRLS.percentile.monthly-2acdbd06.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-6cdd023b.js → BMI_GIRLS.percentile.weekly-9f17cc1f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-ac0a4848.js → BMI_GIRLS.percentile.yearly-68740b7b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-98feca1e.js → BMI_GIRLS.zscore.monthly-2c233d04.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-fd8cbb83.js → BMI_GIRLS.zscore.weekly-b6eeeac4.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-97b6ca99.js → BMI_GIRLS.zscore.yearly-d17b095b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-1adf84c5.js → HEAD CIRCUM_BOYS.percentile.monthly-e57fca5c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-a8f43e58.js → HEAD CIRCUM_BOYS.percentile.weekly-df9ae279.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e8e20ae6.js → HEAD CIRCUM_BOYS.percentile.yearly-967b0e53.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b592246c.js → HEAD CIRCUM_BOYS.zscore.monthly-d5d16af0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-312dbb9b.js → HEAD CIRCUM_BOYS.zscore.weekly-be53814d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-48d1b357.js → HEAD CIRCUM_BOYS.zscore.yearly-370b68ae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fbb1a86c.js → HEAD CIRCUM_GIRLS.percentile.monthly-7368f940.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-3ef7d80f.js → HEAD CIRCUM_GIRLS.percentile.weekly-7bb428b4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7b90957c.js → HEAD CIRCUM_GIRLS.percentile.yearly-59da8923.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9356e0f7.js → HEAD CIRCUM_GIRLS.zscore.monthly-6769f385.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0b2725cb.js → HEAD CIRCUM_GIRLS.zscore.weekly-9ee556f1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-44d9354b.js → HEAD CIRCUM_GIRLS.zscore.yearly-f11fc9d1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-da93beaa.js → HEIGHT_BOYS.percentile.monthly-ae45de07.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c02967fd.js → HEIGHT_BOYS.percentile.weekly-df28b45c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-05fc503e.js → HEIGHT_BOYS.percentile.yearly-4e4606df.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b2b01513.js → HEIGHT_BOYS.zscore.monthly-3750e04d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-7dad78aa.js → HEIGHT_BOYS.zscore.weekly-57a84b0b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-bb1ef31d.js → HEIGHT_BOYS.zscore.yearly-947952aa.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a94fad52.js → HEIGHT_GIRLS.percentile.monthly-70791404.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-3347bb09.js → HEIGHT_GIRLS.percentile.weekly-f5d5f5c7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-363971bc.js → HEIGHT_GIRLS.percentile.yearly-9e69a626.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-857f3333.js → HEIGHT_GIRLS.zscore.monthly-1d5743cd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-5a6db3a0.js → HEIGHT_GIRLS.zscore.weekly-b83cb391.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-fda833c3.js → HEIGHT_GIRLS.zscore.yearly-330188fc.js} +0 -0
- /package/build/{Onboarding-db5834aa.js → Onboarding-f8177e28.js} +0 -0
- /package/build/{Visible-6d5b333c.js → Visible-e654cd6a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-fe4e8e05.js → WEIGHT_BOYS.percentile.monthly-1e4e6070.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-9331494b.js → WEIGHT_BOYS.percentile.weekly-550f1784.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-8a9e31bc.js → WEIGHT_BOYS.percentile.yearly-d95455cc.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-47aca9dd.js → WEIGHT_BOYS.zscore.monthly-1d8f9aae.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-f4be082b.js → WEIGHT_BOYS.zscore.weekly-b3384c8c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-c763b9f4.js → WEIGHT_BOYS.zscore.yearly-c7f91bf6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-391dea9d.js → WEIGHT_GIRLS.percentile.monthly-62e98e07.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e3abd120.js → WEIGHT_GIRLS.percentile.weekly-17c973db.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-3cb627cc.js → WEIGHT_GIRLS.percentile.yearly-5b40cc7e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-c8828e4a.js → WEIGHT_GIRLS.zscore.monthly-287bd36c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-9e19f809.js → WEIGHT_GIRLS.zscore.weekly-c6c6e17d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-d1e97aa2.js → WEIGHT_GIRLS.zscore.yearly-8527b1e9.js} +0 -0
- /package/build/{constants-937ab9f3.js → constants-9f22ef67.js} +0 -0
- /package/build/{cookieHelper-6131f96f.js → cookieHelper-4511d535.js} +0 -0
- /package/build/{dataTransform-0763c160.js → dataTransform-97eae209.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-ac1caf40.js → BMI_BOYS.percentile.monthly-f9a006a3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-cd2d2977.js → BMI_BOYS.percentile.weekly-8ef51380.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-10a80d33.js → BMI_BOYS.percentile.yearly-9d8c2030.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-5620fb2b.js → BMI_BOYS.zscore.monthly-2cc7a60a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-e806bb5e.js → BMI_BOYS.zscore.weekly-d82e8365.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8c92653e.js → BMI_BOYS.zscore.yearly-32dc1ab8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-59cf4891.js → BMI_GIRLS.percentile.monthly-3eeb2de8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-1b64003d.js → BMI_GIRLS.percentile.weekly-7926e75d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-810dd63c.js → BMI_GIRLS.percentile.yearly-8c862f41.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-ebec2aec.js → BMI_GIRLS.zscore.monthly-41798b22.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-44750675.js → BMI_GIRLS.zscore.weekly-ab5df3a7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-8daaf50a.js → BMI_GIRLS.zscore.yearly-ab1514b4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-c4a68f2d.js → HEAD CIRCUM_BOYS.percentile.monthly-bb2c1279.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-0ffd2ab8.js → HEAD CIRCUM_BOYS.percentile.weekly-41a2a469.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d3a767ff.js → HEAD CIRCUM_BOYS.percentile.yearly-fb3f0e54.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-dddfee76.js → HEAD CIRCUM_BOYS.zscore.monthly-2fb52821.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f53026eb.js → HEAD CIRCUM_BOYS.zscore.weekly-512dff4a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-60fe7522.js → HEAD CIRCUM_BOYS.zscore.yearly-616aaf84.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-96187451.js → HEAD CIRCUM_GIRLS.percentile.monthly-66de74c3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-34ffd9bf.js → HEAD CIRCUM_GIRLS.percentile.weekly-d306a5ca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f1d14e2c.js → HEAD CIRCUM_GIRLS.percentile.yearly-efda6e4b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-1d8e965d.js → HEAD CIRCUM_GIRLS.zscore.monthly-d6fdcf70.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f73bd397.js → HEAD CIRCUM_GIRLS.zscore.weekly-a5e9be8c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6cfcc108.js → HEAD CIRCUM_GIRLS.zscore.yearly-a055aac0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-7c0c2e2d.js → HEIGHT_BOYS.percentile.monthly-5e240cb4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-efb7cc99.js → HEIGHT_BOYS.percentile.weekly-b1d2c2c9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-d802fc57.js → HEIGHT_BOYS.percentile.yearly-7ff4342d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-228c181a.js → HEIGHT_BOYS.zscore.monthly-e0f872be.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-287f798c.js → HEIGHT_BOYS.zscore.weekly-05364dff.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-122c724f.js → HEIGHT_BOYS.zscore.yearly-fc4d323e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e2973dd9.js → HEIGHT_GIRLS.percentile.monthly-eff6e959.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3a3129f1.js → HEIGHT_GIRLS.percentile.weekly-6c5e3870.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-474c530b.js → HEIGHT_GIRLS.percentile.yearly-ad6e803b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-a43d1093.js → HEIGHT_GIRLS.zscore.monthly-a9206bf1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-6c449310.js → HEIGHT_GIRLS.zscore.weekly-4574a87d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-a33364f8.js → HEIGHT_GIRLS.zscore.yearly-551718a6.js} +0 -0
- /package/build/esm/{Onboarding-ce3409e4.js → Onboarding-666fcb61.js} +0 -0
- /package/build/esm/{Visible-222ac21c.js → Visible-ba8cbd9c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-ffbb0b2d.js → WEIGHT_BOYS.percentile.monthly-e91cd862.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-00c7d766.js → WEIGHT_BOYS.percentile.weekly-9ed9062c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-c10854b9.js → WEIGHT_BOYS.percentile.yearly-9855227d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c795de45.js → WEIGHT_BOYS.zscore.monthly-23370d43.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-dadbeab6.js → WEIGHT_BOYS.zscore.weekly-155b2b3c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-91401a27.js → WEIGHT_BOYS.zscore.yearly-fd56d735.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-fa122011.js → WEIGHT_GIRLS.percentile.monthly-33d40161.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-09633348.js → WEIGHT_GIRLS.percentile.weekly-0c1caaca.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-4849bdf8.js → WEIGHT_GIRLS.percentile.yearly-fd2b4c0d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-498dbd90.js → WEIGHT_GIRLS.zscore.monthly-81b92420.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-e3117cb4.js → WEIGHT_GIRLS.zscore.weekly-cd1dd162.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-bb22ab87.js → WEIGHT_GIRLS.zscore.yearly-823fd054.js} +0 -0
- /package/build/esm/{constants-5be68405.js → constants-0139b168.js} +0 -0
- /package/build/esm/{cookieHelper-1d3007dd.js → cookieHelper-cf1eabcf.js} +0 -0
- /package/build/esm/{dataTransform-6ee65df1.js → dataTransform-2ffa8ac2.js} +0 -0
- /package/build/esm/{index-189fc5d3.js → index-67f5af26.js} +0 -0
- /package/build/esm/{index-5a4b4541.js → index-9854e149.js} +0 -0
- /package/build/esm/{isProduction-5683ed02.js → isProduction-303c3745.js} +0 -0
- /package/build/esm/{localizeNumberFormat-dc7c3ab6.js → localizeNumberFormat-0828c071.js} +0 -0
- /package/build/esm/{normalizeLink-ddd4eb2d.js → normalizeLink-853d750a.js} +0 -0
- /package/build/esm/{theme-108890ad.js → theme-7c8a5f74.js} +0 -0
- /package/build/esm/{translationsContext-4b5e04fb.js → translationsContext-30fe5a8b.js} +0 -0
- /package/build/esm/{tslib.es6-22b7c3c1.js → tslib.es6-9196b5f5.js} +0 -0
- /package/build/esm/{types-7e32b6a4.js → types-4a5f8f13.js} +0 -0
- /package/build/esm/{useIsInit-d4ba8cdf.js → useIsInit-3d9e6c09.js} +0 -0
- /package/build/esm/{useOutsideClick-1d1675c5.js → useOutsideClick-f80aec9c.js} +0 -0
- /package/build/esm/{useScrollbarSize-6c7bd10d.js → useScrollbarSize-be30603f.js} +0 -0
- /package/build/esm/{useUniqueId-4c5ff91c.js → useUniqueId-7eb15d38.js} +0 -0
- /package/build/esm/{utils-d4ca3a35.js → utils-9a37e87e.js} +0 -0
- /package/build/{index-a47098b6.js → index-4c95280d.js} +0 -0
- /package/build/{index-f718efeb.js → index-4f11416c.js} +0 -0
- /package/build/{isProduction-19b48dfb.js → isProduction-8f947b96.js} +0 -0
- /package/build/{localizeNumberFormat-d482c0c8.js → localizeNumberFormat-879428ba.js} +0 -0
- /package/build/{normalizeLink-e3784579.js → normalizeLink-0e77b3aa.js} +0 -0
- /package/build/{theme-782d3e40.js → theme-84fa9e4a.js} +0 -0
- /package/build/{translationsContext-ad8260b6.js → translationsContext-8fc47c96.js} +0 -0
- /package/build/{tslib.es6-272c63e5.js → tslib.es6-0e38f889.js} +0 -0
- /package/build/{types-fc3e1b76.js → types-fafbb4e2.js} +0 -0
- /package/build/{useIsInit-2ce1a5de.js → useIsInit-edb55c47.js} +0 -0
- /package/build/{useOutsideClick-399601fe.js → useOutsideClick-0abaa2aa.js} +0 -0
- /package/build/{useScrollbarSize-1c6fcc48.js → useScrollbarSize-124a2f73.js} +0 -0
- /package/build/{useUniqueId-39b68295.js → useUniqueId-0d92dfe2.js} +0 -0
- /package/build/{utils-f6bd8eb7.js → utils-0a2ac0e9.js} +0 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-0e38f889.js"),t=require("react"),a=require("./constants-9f22ef67.js"),i=require("./index-082ecb8f.js"),o=require("./cookieHelper-4511d535.js"),n=require("./useTranslations-bc06f85b.js"),s=require("lodash/debounce"),l=require("./index-2f3706cc.js"),r=require("styled-components"),c=require("./index-f7ac5503.js"),d=require("./theme-84fa9e4a.js"),u=require("react-loading-skeleton"),h=require("./utils-0a2ac0e9.js"),p=require("lodash/shuffle"),g=require("./useOutsideClick-0abaa2aa.js"),f=require("string-format");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var C=m(t),y=m(s),b=m(r),v=m(u),E=m(p),L=m(f);const w=b.default.div``,x=b.default.div`
|
|
2
|
+
--searchbar-z-index: 305;
|
|
3
|
+
&[data-is-modal='true'] {
|
|
4
|
+
position: fixed;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
top: 0;
|
|
8
|
+
height: var(--mobile-care-searchbar-height, 100%);
|
|
9
|
+
overflow-y: auto;
|
|
10
|
+
-webkit-overflow-scrolling: touch;
|
|
11
|
+
background-color: white;
|
|
12
|
+
z-index: var(--searchbar-z-index);
|
|
13
|
+
}
|
|
14
|
+
`,S=b.default.section``,O=b.default.input`
|
|
15
|
+
position: fixed;
|
|
16
|
+
left: -100%;
|
|
17
|
+
top: -100%;
|
|
18
|
+
`,k=b.default(l.Input)`
|
|
19
|
+
#booking-search-bar & {
|
|
20
|
+
input {
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`,I=r.createGlobalStyle`
|
|
25
|
+
.care-popup-open {
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
position: fixed;
|
|
28
|
+
&::before {
|
|
29
|
+
content: '';
|
|
30
|
+
inset: 0;
|
|
31
|
+
position: absolute;
|
|
32
|
+
background-color: white;
|
|
33
|
+
min-height: 100vh;
|
|
34
|
+
min-width: 100vw;
|
|
35
|
+
z-index: 2;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`,T=({className:e,color:t})=>C.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),C.default.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),M=({className:e,color:t})=>C.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},C.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),R=({className:e,color:t})=>C.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:e},C.default.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"})),N=({className:e,color:t})=>C.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),C.default.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),A=({width:e,height:t})=>C.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),j=b.default.li`
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 12px;
|
|
42
|
+
padding: 8px 16px;
|
|
43
|
+
|
|
44
|
+
> :first-child {
|
|
45
|
+
flex: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> :nth-child(2) {
|
|
49
|
+
flex: 6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
& + li::before {
|
|
53
|
+
content: '';
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 18px;
|
|
56
|
+
right: 18px;
|
|
57
|
+
top: 0;
|
|
58
|
+
height: 1px;
|
|
59
|
+
background-color: ${d.theme.colors.neutral100};
|
|
60
|
+
}
|
|
61
|
+
`,P=b.default.div`
|
|
62
|
+
display: flex;
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 48px;
|
|
65
|
+
min-width: 100%;
|
|
66
|
+
box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
|
|
67
|
+
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
68
|
+
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
69
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
70
|
+
background-color: white;
|
|
71
|
+
z-index: 30;
|
|
72
|
+
|
|
73
|
+
${h.MediaQueries.tdDown} {
|
|
74
|
+
position: relative;
|
|
75
|
+
top: 0;
|
|
76
|
+
box-shadow: initial;
|
|
77
|
+
}
|
|
78
|
+
`,F=b.default.ul`
|
|
79
|
+
width: 100%;
|
|
80
|
+
max-height: 600px;
|
|
81
|
+
overflow-y: auto;
|
|
82
|
+
`,_=b.default(M)`
|
|
83
|
+
width: 12px;
|
|
84
|
+
height: 18px;
|
|
85
|
+
`,D=b.default.li`
|
|
86
|
+
position: relative;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
padding: 12px 18px;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 14px;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
|
|
94
|
+
${({isSelected:e})=>e&&"\n &::after {\n content: url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\");\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n "}
|
|
95
|
+
|
|
96
|
+
& + li::before {
|
|
97
|
+
content: '';
|
|
98
|
+
position: absolute;
|
|
99
|
+
left: 18px;
|
|
100
|
+
right: 18px;
|
|
101
|
+
top: 0;
|
|
102
|
+
height: 1px;
|
|
103
|
+
background-color: ${d.theme.colors.neutral100};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:not([data-is-denied='true']):hover {
|
|
107
|
+
background-color: ${d.theme.colors.neutral50};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:last-child:hover {
|
|
111
|
+
border-bottom-right-radius: 6px;
|
|
112
|
+
border-bottom-left-radius: 6px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:first-child:hover {
|
|
116
|
+
border-top-right-radius: 6px;
|
|
117
|
+
border-top-left-radius: 6px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[data-is-denied='true'] {
|
|
121
|
+
cursor: not-allowed;
|
|
122
|
+
}
|
|
123
|
+
`,B=b.default((({count:e,className:t})=>C.default.createElement(C.default.Fragment,null,[...Array(e)].map(((e,a)=>C.default.createElement(j,{className:t,key:a},C.default.createElement(v.default,{count:1,height:32}),C.default.createElement(v.default,{count:1,height:24})))))))`
|
|
124
|
+
&:first-child {
|
|
125
|
+
padding-top: 18px;
|
|
126
|
+
}
|
|
127
|
+
`,H=({cities:e,isLoading:t,onLocationClick:i,onCurrentLocationClick:o,geoLocationPermission:s="unset",isLocationLoading:l,selectedLocation:r,isOptionAllLocation:u})=>{const{t:h,locale:p}=n.useTranslations(),g="denied"===s,f=()=>C.default.createElement(D,{role:"button",tabIndex:0,onClick:e=>{g||(e.nativeEvent.stopImmediatePropagation(),l||o())},"data-is-denied":g},g?C.default.createElement(c.Text,{color:"var(--gray600)",size:"md"},"x"):l?C.default.createElement(v.default,{height:20,width:20}):C.default.createElement(R,{color:d.theme.colors.primaryBase}),C.default.createElement("div",null,g?C.default.createElement(c.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},h("booking.searchBar.grantLocation")):l?C.default.createElement(v.default,{height:20,style:{width:"calc(100% - 16px)"}}):C.default.createElement(c.Text,{size:"md"},h("booking.searchBar.useCurrentLocation"))));return C.default.createElement(P,{"data-testid":"location-search-results"},C.default.createElement(F,null,t?C.default.createElement(B,{count:5}):!e||e.length<1?C.default.createElement(C.default.Fragment,null,f(),C.default.createElement(D,{"data-is-denied":"true"},C.default.createElement(c.Text,{size:"sm",color:"#ccc"},h("booking.searchBar.noResults")))):C.default.createElement(C.default.Fragment,null,u&&C.default.createElement(D,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;i&&i({name:h("booking.searchBar.allLocations"),id:a.ID_OPTION_ALL_LOCATION,slug:null===(e=a.LOCALIZED_SLUGS[p])||void 0===e?void 0:e.ALL})}},C.default.createElement(_,{color:d.theme.colors.neutral400}),C.default.createElement(c.Text,{size:"md"},h("booking.searchBar.allLocations"))),f(),e.map((e=>C.default.createElement(D,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==r?void 0:r.id)===e.id},C.default.createElement(_,{color:d.theme.colors.neutral400}),C.default.createElement(c.Text,{size:"md"},e.name)))))))},V="TYPE_CHARACTER",$="REMOVE_CHARACTER",z="REMOVE_ALL",K="REMOVE_LAST_VISIBLE_NODE",Z="PAUSE_FOR",G="CHANGE_DELETE_SPEED",U="CHANGE_DELAY",q="PASTE_STRING",Q=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,Y="TEXT_NODE";class W{constructor(e){this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=()=>(this.state.eventLoopPaused=!1,this.runEventLoop(),this),this.pause=()=>(this.state.eventLoopPaused=!0,this),this.stop=()=>(this.state.eventLoop&&(window.cancelAnimationFrame(this.state.eventLoop),this.state.eventLoop=null),this),this.pauseFor=e=>(this.addEventToQueue(Z,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:a}=this.options||{},i="function"==typeof a?a(e):e.split("");this.typeCharacters(i,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(q,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(z,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(G,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(U,{delay:e}),this},this.deleteChars=e=>{if(!e)throw new Error("Must provide amount of characters to delete");for(let t=0;t<e;t++)this.addEventToQueue($);return this},this.typeCharacters=(e,t=null)=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((e=>{this.addEventToQueue(V,{character:e,node:t})})),this},this.removeCharacters=e=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((()=>{this.addEventToQueue($)})),this},this.addEventToQueue=(e,t,a=!1)=>this.addEventToStateProperty(e,t,a,"eventQueue"),this.addReverseCalledEvent=(e,t,a=!1)=>{const{loop:i}=this.options;return i?this.addEventToStateProperty(e,t,a,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,a=!1,i)=>{const o={eventName:e,eventArgs:t||{}};return this.state[i]=a?[o,...this.state[i]]:[...this.state[i],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const a=[...this.state.eventQueue],i=a.shift();let o=0;if(o=i.eventName===K||i.eventName===$?"natural"===this.options.deleteSpeed?Q(40,80):this.options.deleteSpeed:"natural"===this.options.delay?Q(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=i;switch(n){case q:case V:{const{character:e}=s,t=document.createTextNode(e);let a=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(a=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:Y,character:e,node:a}];break}case $:a.unshift({eventName:K,eventArgs:{removingCharacterNode:!0}});break;case Z:{const{ms:e}=i.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case z:{const{visibleNodes:e}=this.state,{speed:t}=s,i=[];t&&i.push({eventName:G,eventArgs:{speed:t,temp:!0}});for(let t=0,a=e.length;t<a;t++)i.push({eventName:K,eventArgs:{removingCharacterNode:!1}});t&&i.push({eventName:G,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),a.unshift(...i);break}case K:if(this.state.visibleNodes.length){const{node:e,character:t}=this.state.visibleNodes.pop();this.options.onRemoveNode&&"function"==typeof this.options.onRemoveNode&&this.options.onRemoveNode({node:e,character:t}),e&&e.parentNode.removeChild(e)}break;case G:this.options.deleteSpeed=i.eventArgs.speed;break;case U:this.options.delay=i.eventArgs.delay}this.options.loop&&(i.eventName===K||i.eventArgs&&i.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,i])),this.state.eventQueue=a,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(z,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function J({inputRef:e,wrapperRef:a,disabled:i}){const{t:o,locale:s}=n.useTranslations(),l=t.useMemo((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),E.default(e).map((e=>o(e)))}),[o,s]);function r(e){const t=d();return t&&(t.placeholder=t.placeholder+e),null}function c(){const e=d();e&&(e.placeholder=e.placeholder.slice(0,-1))}function d(){return e&&e.current?e.current:a&&a.current&&a.current.querySelector("input")||null}t.useEffect((()=>{if(i)return;const e=d();e&&(e.placeholder="",new W({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:r,onRemoveNode:c}))}),[e,a])}const X=b.default.div`
|
|
128
|
+
user-select: none;
|
|
129
|
+
input {
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
background-color: white;
|
|
132
|
+
}
|
|
133
|
+
`;function ee({focused:e,value:a="",onClick:i,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=n.useTranslations(),r=t.useRef(null);J({wrapperRef:r,disabled:!!s});const c=t.useMemo((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return C.default.createElement(X,Object.assign({onClick:()=>i&&i(),ref:r},c),C.default.createElement(k,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:C.default.createElement(N,{color:d.theme.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:a,size:"md"}))}const te=b.default.header`
|
|
134
|
+
display: flex;
|
|
135
|
+
height: 64px;
|
|
136
|
+
align-items: center;
|
|
137
|
+
justify-content: space-between;
|
|
138
|
+
margin: 0 auto;
|
|
139
|
+
position: sticky;
|
|
140
|
+
z-index: 99;
|
|
141
|
+
background-color: white;
|
|
142
|
+
top: 0;
|
|
143
|
+
left: 0;
|
|
144
|
+
`,ae=b.default.div`
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
flex: 1;
|
|
147
|
+
justify-content: flex-end;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
text-decoration: underline;
|
|
150
|
+
`,ie=b.default.div`
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
margin-left: 16px;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
`,oe=b.default.div`
|
|
156
|
+
width: 100%;
|
|
157
|
+
margin-left: 24px;
|
|
158
|
+
`,ne=b.default(c.Text)`
|
|
159
|
+
color: ${d.theme.colors.secondaryDark};
|
|
160
|
+
text-align: start;
|
|
161
|
+
`,se=({className:e,onLeftClick:t,headingText:a,onRightClick:i,iconLeft:o,textRight:n})=>C.default.createElement(te,{className:e},C.default.createElement(ie,{onClick:t},o||C.default.createElement(T,{color:d.theme.colors.gray800})),C.default.createElement(oe,null,C.default.createElement(ne,{size:"md",type:"bold"},a)),C.default.createElement(ae,{onClick:i},n&&C.default.createElement("p",null,n))),le={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},re={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var ce;function de(e){const{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function ue(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ce.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ce.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:de(Object.assign(Object.assign({},e),{focused:"none"}));case ce.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ce.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===a.ID_OPTION_CURRENT_LOCATION&&(t.searchLocationKeywords=""),t}case ce.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?de(o):o;case ce.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ce.ChangeInputSearch:{const a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>le[e.locale]})}case ce.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ce.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ce.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ce.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ce.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ce.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ce.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ce.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ce.FetchSearchResultsComplete:{const a=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(a.initialSearchResults=t.payload),a}case ce.FetchCitiesByGeoIpComplete:{let{cities:a}=t.payload;const{default:i}=t.payload;a=a.filter((e=>e.id!==i.id)),a.unshift(i),e.initialSelectedCity&&!a.find((t=>t.id===e.initialSelectedCity.id))&&a.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:i,initialCities:a,cities:a});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=i,o.searchLocationKeywords=i.name),o}case ce.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ce.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ce.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ce.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ce.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ce.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ce.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ce.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ce.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(ce||(ce={}));const he=b.default.div`
|
|
162
|
+
display: flex;
|
|
163
|
+
gap: 16px;
|
|
164
|
+
${h.MediaQueries.mbDown} {
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
padding: 14px;
|
|
167
|
+
background-color: ${d.theme.colors.primary50};
|
|
168
|
+
|
|
169
|
+
input {
|
|
170
|
+
filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))
|
|
171
|
+
drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))
|
|
172
|
+
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
input {
|
|
177
|
+
background-color: white;
|
|
178
|
+
}
|
|
179
|
+
`,pe=b.default.div`
|
|
180
|
+
position: relative;
|
|
181
|
+
`,ge=b.default(pe)`
|
|
182
|
+
flex: 1;
|
|
183
|
+
`,fe=b.default(pe)`
|
|
184
|
+
flex: 2;
|
|
185
|
+
`,me=b.default((({className:e,color:t})=>C.default.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))))`
|
|
186
|
+
display: none;
|
|
187
|
+
&.shown {
|
|
188
|
+
display: block;
|
|
189
|
+
}
|
|
190
|
+
`,Ce=()=>C.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),ye=b.default.button`
|
|
191
|
+
min-height: 100%;
|
|
192
|
+
border-radius: 6px;
|
|
193
|
+
background-color: ${({theme:e})=>e.colors.primaryBase};
|
|
194
|
+
display: flex;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 11px;
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
flex: 0.3;
|
|
200
|
+
|
|
201
|
+
${h.MediaQueries.mbDown} {
|
|
202
|
+
--margin: 16px;
|
|
203
|
+
min-height: 44px;
|
|
204
|
+
margin: var(--margin);
|
|
205
|
+
width: calc(100% - var(--margin) * 2);
|
|
206
|
+
position: absolute;
|
|
207
|
+
bottom: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&:hover {
|
|
211
|
+
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&:active {
|
|
215
|
+
background-color: ${({theme:e})=>e.colors.primaryActive};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&:focus-visible {
|
|
219
|
+
outline: 1px solid black;
|
|
220
|
+
}
|
|
221
|
+
`,be=b.default(c.Text)`
|
|
222
|
+
font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
|
|
223
|
+
`,ve=({onClick:e})=>{const{t:t}=n.useTranslations(),a=t("booking.searchBar.searchButton");return C.default.createElement(ye,{onClick:e,title:a},C.default.createElement(Ce,null),C.default.createElement(be,{size:"s3",color:"white"},a))};function Ee({isMobile:e,state:i,dispatch:o,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:r,focusSearchInput:c,renderLocationResults:u,renderSearchResults:h,locationTrackingAttributes:p,trackingAttributes:f,onSearch:m,initalSearchValue:y}){const b=t.useRef(null),v=t.useRef(null),{focused:E,searchLocationKeywords:L,geoLocationPermission:w,selectedLocation:x,searchKeywords:S,inputSearchPlaceholder:O}=i,{t:I}=n.useTranslations();J({wrapperRef:v,disabled:!!O}),g.useOutsideClick(b,(()=>{e||o({type:ce.ClickOutsideInputLocation})})),g.useOutsideClick(v,(()=>{e||o({type:ce.ClickOutsideInputSearch})}));const T=t.useMemo((()=>"granted"===w&&(null==x?void 0:x.id)===a.ID_OPTION_CURRENT_LOCATION?d.theme.colors.primaryBase:d.theme.colors.gray400),[w,x]),R=t.useCallback((function(e){o({type:ce.ChangeInputSearch,payload:e}),"function"!=typeof m&&(e.trim().length>le[i.locale]||y?l(e.trim(),i):(l.cancel(),o({type:ce.DisplayInitialSearchResults})))}),[o,i]),N=t.useCallback((function(e){o({type:ce.ChangeInputLocation,payload:e}),e.trim().length>le[i.locale]?s(e.trim()):(s.cancel(),o({type:ce.DisplayInitialCities}))}),[s,o]);return C.default.createElement(he,null,C.default.createElement(ge,{ref:b},C.default.createElement(k,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:C.default.createElement(M,{className:"location-pin-icon",color:T}),actionIcon:C.default.createElement(me,{color:d.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){o({type:ce.ClearInputLocation}),s.cancel(),r()},value:L,onChange:N,onFocus:()=>o({type:ce.FocusInputLocation}),size:"md",trackingAttributes:p}),!e&&u()),C.default.createElement(fe,{ref:v},C.default.createElement(k,{placeholder:O||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:C.default.createElement(me,{color:d.theme.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:ce.ClearInputSearch}),l.cancel(),l("",i),c()},value:S,onChange:R,onFocus:()=>o({type:ce.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:e=>{i.autoCompleteDisabled&&"Enter"===e.key&&m&&m({cityId:i.selectedLocation.id,keyword:S})},enterKeyHint:i.autoCompleteDisabled?"search":void 0}),!e&&h()),i.autoCompleteDisabled&&!i.isMobile&&C.default.createElement(ve,{onClick:()=>{m({cityId:i.selectedLocation.id,keyword:S})}}))}const Le=()=>C.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},C.default.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),we=()=>C.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},C.default.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),xe=()=>C.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},C.default.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),Se=()=>C.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},C.default.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Oe=b.default.header`
|
|
224
|
+
display: flex;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
padding: 12px 24px;
|
|
227
|
+
background-color: ${d.theme.colors.neutral50};
|
|
228
|
+
box-shadow: inset 0px 1px 0px #e4e8ec;
|
|
229
|
+
`,ke=b.default.div`
|
|
230
|
+
display: grid;
|
|
231
|
+
flex: 2;
|
|
232
|
+
align-items: center;
|
|
233
|
+
gap: 16px;
|
|
234
|
+
grid-template-columns: 16px 1fr;
|
|
235
|
+
`,Ie=b.default.p`
|
|
236
|
+
color: ${d.theme.colors.neutral800};
|
|
237
|
+
font-size: 14px;
|
|
238
|
+
font-weight: ${d.theme.sizes.fwSemiBold};
|
|
239
|
+
letter-spacing: -0.2px;
|
|
240
|
+
line-height: 22px;
|
|
241
|
+
`,Te=b.default.button`
|
|
242
|
+
flex: 1;
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
text-align: end;
|
|
245
|
+
`,Me=b.default.section`
|
|
246
|
+
padding: 12px 16px;
|
|
247
|
+
--rowGap: 16px;
|
|
248
|
+
--graphicSize: 32px;
|
|
249
|
+
|
|
250
|
+
${h.MediaQueries.tdUp} {
|
|
251
|
+
--rowGap: 8px;
|
|
252
|
+
}
|
|
253
|
+
`,Re=b.default.ul`
|
|
254
|
+
--gap: 16px;
|
|
255
|
+
${h.MediaQueries.tdUp} {
|
|
256
|
+
--gap: 8px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
display: grid;
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
gap: var(--gap);
|
|
262
|
+
transition: max-height 0.8s ease-out;
|
|
263
|
+
|
|
264
|
+
${({isMore:e})=>e&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}
|
|
265
|
+
|
|
266
|
+
${({isShown:e})=>e&&"\n max-height: 600px;\n "}
|
|
267
|
+
|
|
268
|
+
@media (prefers-reduced-motion) {
|
|
269
|
+
transition: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
${h.MediaQueries.tdUp} {
|
|
273
|
+
grid-template-columns: 1fr 1fr;
|
|
274
|
+
} ;
|
|
275
|
+
`,Ne=b.default(c.Text)`
|
|
276
|
+
margin-top: 12px;
|
|
277
|
+
margin-bottom: 8px;
|
|
278
|
+
cursor: pointer;
|
|
279
|
+
text-align: start;
|
|
280
|
+
text-transform: capitalize;
|
|
281
|
+
`,Ae=b.default.li`
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
gap: var(--rowGap);
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
&.not-nav {
|
|
287
|
+
cursor: default;
|
|
288
|
+
}
|
|
289
|
+
`,je=b.default.div`
|
|
290
|
+
--wrapper-size: var(--graphicSize);
|
|
291
|
+
border-radius: calc(var(--wrapper-size) / 2);
|
|
292
|
+
background-color: var(--neutral50);
|
|
293
|
+
width: var(--wrapper-size);
|
|
294
|
+
height: var(--wrapper-size);
|
|
295
|
+
aspect-ratio: 1/1;
|
|
296
|
+
overflow: hidden;
|
|
297
|
+
|
|
298
|
+
${({type:e})=>e&&"doctors"===e&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}
|
|
299
|
+
|
|
300
|
+
img {
|
|
301
|
+
width: var(--graphicSize);
|
|
302
|
+
height: var(--graphicSize);
|
|
303
|
+
${({type:e})=>e&&"doctors"===e?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&:focus-visible {
|
|
307
|
+
outline: 1px solid ${d.theme.colors.gray600};
|
|
308
|
+
}
|
|
309
|
+
`,Pe=b.default(c.Text)`
|
|
310
|
+
line-height: 22px;
|
|
311
|
+
letter-spacing: -0.2px;
|
|
312
|
+
|
|
313
|
+
${h.MediaQueries.tdUp} {
|
|
314
|
+
&[data-size='p3'] {
|
|
315
|
+
font-size: 14px;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
`,Fe=b.default.figure`
|
|
319
|
+
max-width: var(--graphicSize);
|
|
320
|
+
min-width: var(--graphicSize);
|
|
321
|
+
`,_e=b.default.svg`
|
|
322
|
+
margin: 0 auto;
|
|
323
|
+
display: block;
|
|
324
|
+
`,De=b.default.div`
|
|
325
|
+
display: grid;
|
|
326
|
+
place-items: center;
|
|
327
|
+
`,Be={doctors:({width:e,height:t})=>C.default.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},C.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),C.default.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),C.default.createElement("defs",null,C.default.createElement("clipPath",{id:"clip0_14712_400114"},C.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>C.default.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),C.default.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},He=({type:e,item:a,imageUrl:i,className:o,onClickItem:n})=>{const s=t.useMemo((()=>{const t=Be[e]||A;return C.default.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return C.default.createElement(Ae,{onClick:()=>n&&n(a),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||n&&n(a)},tabIndex:0,role:"button",className:o},C.default.createElement(Fe,null,"hospitals"===e?C.default.createElement(_e,{width:"12",height:"16",viewBox:"0 0 12 16"},C.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):C.default.createElement(je,{type:e},i?C.default.createElement("img",{src:i,width:32,height:"services"===e?32:24}):s)),C.default.createElement(Pe,{color:d.theme.colors.gray800,size:"p3"},a.name))},Ve=({type:e,data:i,state:o,dispatch:s,itemsToShow:l,itemsToShowDesktop:r,isMobile:u,isLoading:h,keyword:p,isNavResultItem:g})=>{const[f,m]=t.useState(!1),{t:y,locale:b}=n.useTranslations(),{selectedLocation:E,searchKeywords:L}=o,w=t.useMemo((()=>a.LOCALIZED_SLUGS[b]),[b]),x="ms-MY"===b,S=t.useMemo((()=>({doctors:{name:y("booking.searchPopup.doctors"),icon:C.default.createElement(Le,null),slug:w.DOCTOR},services:{name:y("booking.searchPopup.services"),icon:C.default.createElement(we,null),slug:w.SERVICE},hospitals:{name:y("booking.searchPopup.hospitals"),icon:C.default.createElement(xe,null),slug:w.HOSPITAL},specialties:{name:y("booking.searchPopup.specialties"),icon:C.default.createElement(Se,null),slug:w.SPECIALTIES}})),[e,w]),O=t.useMemo((()=>S[e].slug),[S]),k=u?l:r;function I(t){let a="";switch(e){case"specialties":a=`/${E.slug}/${S.doctors.slug}/${t.slug}`;break;case"services":a=`/${E.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":a=`/${O}/${t.slug}-${t.id}`}a&&s({type:ce.SelectSearchResult,payload:{name:t.name,url:a}})}function T(t){return C.default.createElement(He,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return C.default.createElement("section",null,C.default.createElement(Oe,null,C.default.createElement(ke,null,S[e].icon,C.default.createElement(Ie,null,S[e].name)),(p.trim().length<=le[b]||x)&&C.default.createElement(Te,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${E.slug}/${O}`}t&&s({type:ce.NavigateTo,payload:t})}},C.default.createElement(c.Text,{size:"p3",color:d.theme.colors.primaryBase},y("booking.searchPopup.seeAll")))),(h||i&&i.length>0)&&C.default.createElement(Me,null,C.default.createElement(Re,null,h&&Array(2).fill(void 0).map(((t,a)=>C.default.createElement(Ae,{key:e+"loading"+a},C.default.createElement(Fe,null,C.default.createElement(De,null,C.default.createElement(v.default,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),C.default.createElement(v.default,{width:120,height:24})))),!h&&i&&i.length>0&&i.slice(0,k).map(T)),C.default.createElement(Re,{isShown:f,isMore:!0},i.slice(k,-1).map(T)),"specialties"===e&&k<i.length&&!h&&C.default.createElement("button",{onClick:()=>m(!f)},C.default.createElement(Ne,{size:"p3",color:d.theme.colors.primaryBase},y(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(k<i.length||x)&&!h&&p.trim().length>le[b]&&C.default.createElement("button",{onClick:function(){const{slug:t}=S[e],a=`/${E.slug}/${t}?q=${L}`;s({type:ce.NavigateTo,payload:a})}},C.default.createElement(Ne,{size:"p3",color:d.theme.colors.primaryBase},y(`booking.searchPopup.searchIn.${e}`,{name:p})))),!h&&0===(null==i?void 0:i.length)&&C.default.createElement(Me,null,C.default.createElement(c.Text,{size:"sm",color:d.theme.colors.gray400},y("booking.searchBar.noResults"))))},$e=b.default.section`
|
|
328
|
+
background-color: white;
|
|
329
|
+
border-radius: 4px;
|
|
330
|
+
position: absolute;
|
|
331
|
+
width: 100%;
|
|
332
|
+
z-index: 30;
|
|
333
|
+
|
|
334
|
+
${h.MediaQueries.tdUp} {
|
|
335
|
+
box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),
|
|
336
|
+
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
337
|
+
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
338
|
+
}
|
|
339
|
+
`,ze=({data:e,state:t,dispatch:a,isMobile:i,isLoading:o,keyword:n,hideResults:s,isNavResultItem:l})=>C.default.createElement($e,null,e&&e.map((e=>s&&s.includes(e.type)?C.default.createElement(C.default.Fragment,null):C.default.createElement(Ve,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:n,isNavResultItem:l})))),Ke="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",Ze="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Ge="api/geobyip?site={domain}&latitude={lat}&longitude={lng}&_nopaging={noPaging}",Ue=(e,t,a)=>L.default(e,Object.assign(Object.assign({},t),{domain:i.domainLocales[a||"en-PH"]}));var qe;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(qe||(qe={}));var Qe=Object.freeze({__proto__:null,get RedirectType(){return qe}});exports.BookingSearchBar=({isMobile:s,careApiDomain:l,geoLocationPermission:r,geoLocationCoordinates:c,initialSelectedCity:d,initialSearchValue:u="",careFrontDomain:h="/care",isDebug:p=!1,askForGeolocationPermission:g=!1,gaTrackingSearchBar:f,gaTrackingLocationSearch:m,autoCompleteDisabled:b=!1,inputSearchPlaceholder:v="",isOptionAllLocation:E=!1,hideResults:L=[],isNavResultItem:k=!0,routerPush:T,onGeoLocationPermissionChange:M,onSearch:R,onChangeLocation:N})=>{const{t:A,locale:j}=n.useTranslations(),P=t.useRef(null),F=t.useRef(null),[_,D]=t.useState(void 0),[B,V]=t.useState(!1),{geoLocationPermission:$,geoLocationCoordinates:z,requestGeoLocation:K}=function(){const[e,a]=t.useState((()=>{if("undefined"==typeof window)return"unset";if(o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=t.useState((()=>{if("undefined"==typeof window)return null;const e=o.getCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const t={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};o.setCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),{minutes:15}),s(t),a("granted")}),(()=>{o.deleteCookie(i.USER_GEOLOCATION_COORDINATES_COOKIE),a("denied")}))}),[]);return t.useMemo((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}(),[Z,G]=t.useReducer(ue,re,(e=>Object.assign(Object.assign({},e),{isDebug:p,isMobile:s,geoLocationPermission:r||$||"unset",geoLocationCoordinates:c||z||null,searchKeywords:u,initialSelectedCity:d||null,selectedLocation:d||e.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||e.searchLocationKeywords,autoCompleteDisabled:b,inputSearchPlaceholder:v,locale:j}))),{navigateTo:U,focused:q,isLoadingCities:Q,cities:Y,searchKeywords:W,geoLocationPermission:J,selectedLocation:X,initialSelectedCity:te,defaultCity:ae,searchResults:ie,isLoadingSearchResults:oe,isMobileModalOpened:ne,inputSearchPlaceholder:de}=Z,{fetchCitiesByLocation:he,fetchCitiesByKeyword:pe,fetchSearchResults:ge}=function({dispatch:e,careApiDomain:i,locale:o="vi-VN"}){const n=t.useCallback((function(t,a={}){const n=`${i}${t}`;return e({type:ce.FetchCitiesStart}),fetch(Ue(n,a,o),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:ce.FetchCitiesFinish})))}),[o]);return{fetchCitiesByLocation:t.useCallback((function({coordinates:t}){let a={};const i={};t&&(a={lat:t.lat,lng:t.lng}),"ms-MY"===o&&(i.noPaging=1);const s=[n(Ge,Object.assign(Object.assign({},a),i))];return"zh-TW"===o&&s.push(n(Ke,{noPaging:1})),Promise.all(s).then((([t,a])=>{const i=Object.assign({},t);if(a){const e=i.cities.map((e=>e.id));i.cities=i.cities.concat(a.cities.filter((t=>!e.includes(t.id))))}e({type:ce.FetchCitiesByGeoIpComplete,payload:i})})).catch((e=>console.error("error loading cities by location",e)))}),[o,i,e]),fetchCitiesByKeyword:t.useCallback((function(t){return n(Ke,{keyword:t}).then((t=>{e({type:ce.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[o,i,e]),fetchSearchResults:t.useCallback((function(t,n){const s=`${i}${Ze}`;e({type:ce.FetchSearchResultsStart});const{defaultCity:l,selectedLocation:r,geoLocationCoordinates:c}=n;let d="";if(!r||!l)return void e({type:ce.FetchSearchResultsFinish});r.id===a.ID_OPTION_CURRENT_LOCATION?c||(d=l.id):d=r.id===a.ID_OPTION_ALL_LOCATION?"":r.id;const u=(null==c?void 0:c.lat)||"",h=(null==c?void 0:c.lng)||"";return fetch(Ue(s,{domain:i,searchType:"global",keyword:t.trim().length>le[o]?t.trim():"",city:d===a.ID_OPTION_CURRENT_LOCATION?"":d,lat:u,lng:h},o),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:ce.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:s,error:e})})).finally((()=>e({type:ce.FetchSearchResultsFinish})))}),[o,i,e])}}({dispatch:G,locale:j,careApiDomain:l}),fe=t.useMemo((()=>{var e;return{id:a.ID_OPTION_CURRENT_LOCATION,name:A("booking.searchBar.currentLocation"),slug:null===(e=a.LOCALIZED_SLUGS[j])||void 0===e?void 0:e.CURRENT}}),[A,j]),me=t.useMemo((()=>y.default(pe,400)),[pe]),Ce=t.useMemo((()=>y.default(ge,400)),[ge]);t.useEffect((()=>{""!==u&&u!==Z.searchKeywords&&G({type:ce.UpdateInitialSearchValue,payload:u})}),[u]),t.useEffect((()=>{g&&(null==X?void 0:X.id)===a.ID_OPTION_CURRENT_LOCATION&&"unset"===J&&K()}),[g,X,J]),t.useEffect((()=>{r||J===$||("granted"===$&&z?G({type:ce.GrantGeoLocationPermission,payload:z}):"denied"===$&&G({type:ce.DenyGeoLocationPermission}))}),[J,$,z,r]),t.useEffect((()=>{U&&(T?T(U):window.location.href=`${h}${U}`)}),[U]);const ye=t.useCallback((function(){G({type:ce.SelectCurrentLocation,payload:fe})}),[A,G]);t.useEffect((()=>{"denied"===J||te||ye(),M&&M(J,Z.geoLocationCoordinates),s&&"granted"===J&&X&&G({type:ce.FocusInputSearch}),he({coordinates:Z.geoLocationCoordinates})}),[J]),t.useEffect((()=>{X&&ae&&ge(Z.searchKeywords,Z)}),[X,ae]),t.useEffect((()=>{v!==de&&G({type:ce.SetInputSearchPlaceholder,payload:v})}),[v,de]),t.useEffect((()=>{ne?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ne]);const be=t.useCallback((function(e){"ms-MY"===j&&V(!0),G({type:ce.SelectLocation,payload:e}),"ms-MY"!==j&&xe(),N&&N(e)}),[A,G]);function Le(){"ms-MY"===j&&V(!0),s&&"granted"!==Z.geoLocationPermission?K():(ye(),"ms-MY"!==j&&xe())}function we(){var e;P.current&&(null===(e=P.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function xe(){var e;P.current&&(null===(e=P.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Se(){G({type:ce.CloseMobileModal})}function Oe(){return"location"!==q?null:C.default.createElement(H,{isLoading:Q,cities:Y,onLocationClick:be,onCurrentLocationClick:Le,isLocationLoading:Q,geoLocationPermission:J,selectedLocation:X,isOptionAllLocation:E})}function ke(){return"search"!==q?null:Z.autoCompleteDisabled?s?C.default.createElement(ve,{onClick:()=>{R({cityId:Z.selectedLocation.id,keyword:W}),Se()}}):null:C.default.createElement(ze,{data:ie,state:Z,dispatch:G,isMobile:!1,keyword:W,isLoading:oe,hideResults:L,isNavResultItem:k})}function Ie(){return C.default.createElement(Ee,{isMobile:s,state:Z,dispatch:G,debouncedFetchCitiesByKeyword:me,debouncedFetchSearchResults:Ce,focusLocationInput:we,focusSearchInput:xe,renderLocationResults:Oe,renderSearchResults:ke,trackingAttributes:f,locationTrackingAttributes:m,onSearch:R,initalSearchValue:u})}return t.useEffect((()=>{if(window.visualViewport){const e=e=>{const t=e.target;D(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[D]),t.useEffect((()=>{if(X&&B&&"ms-MY"===j){const e=`/${X.slug}/hospital`;G({type:ce.NavigateTo,payload:e}),V(!1)}}),[B,j,X]),s?C.default.createElement(C.default.Fragment,null,C.default.createElement(I,null),C.default.createElement(O,{ref:F}),C.default.createElement(x,{id:"booking-search-bar",ref:P,"data-is-modal":s&&ne,style:{"--mobile-care-searchbar-height":ne&&_?`${_}px`:"100%"}},ne?C.default.createElement(C.default.Fragment,null,C.default.createElement(S,null,C.default.createElement(se,{headingText:A("booking.searchBar.searchButton"),onLeftClick:Se}),Ie()),Oe(),ke()):C.default.createElement(ee,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function*(){F.current&&F.current.focus(),G({type:ce.OpenMobileModal}),yield Promise.resolve(),P.current&&(null===(t=P.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:q,value:W,trackingAttributes:f,inputSearchPlaceholder:v}))):C.default.createElement(w,{id:"booking-search-bar",ref:P},Ie())},exports.types=Qe;
|
package/build/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Onboarding-f8177e28.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return e.LOCALE}}),Object.defineProperty(exports,"OnboardingStep",{enumerable:!0,get:function(){return e.OnboardingStep}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-0e38f889.js"),t=require("react"),o=require("./getDynamicHealthTool-d58d8200.js");exports.useHealthToolsCache=a=>{const[i,l]=t.useState([]);t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield o.getDynamicHealthToolWithCache(a);l(e)}))}),[o.getDynamicHealthToolWithCache,a]);const r=t.useCallback((e=>{var t;return(null===(t=i.find((t=>t.template===e)))||void 0===t?void 0:t.link)||""}),[i]);return{allTools:i,getHealthToolLink:r}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-0e38f889.js"),t=require("react"),r=require("./cookieHelper-4511d535.js"),n=require("./useUniqueId-0d92dfe2.js");function i(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}exports.useFbDataLayer=n=>{const o=t.useRef("");t.useEffect((()=>(e.__awaiter(void 0,void 0,void 0,(function*(){var e,t,a,u,l;if(!o.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),o.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(a=o.current)||void 0===a?void 0:a.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==n?void 0:n.id){const[e,t,o,a,s,c]=yield Promise.all([n.email?i(n.email):null,n.phone?i(n.phone):null,n.birthday?i(n.birthday.split("-").join("")):null,n.gender?"m":"f",n.city_name?i(n.city_name).then((e=>e.replace(/\s/g,""))):null,n.name?i(n.name):null]);r.getCookie("_fbc"),r.getCookie("_fbp");const d={user_id:n.id};c&&(d.fn=c),e&&(d.em=e),t&&(d.ph=t),o&&(d.db=o),s&&(d.ct=s),null===(l=null===(u=window.localStorage)||void 0===u?void 0:u.setItem)||void 0===l||l.call(u,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[n])},exports.usePrevious=e=>{const r=t.useRef(),i=t.useRef(e);return n.useInitialMount()||i.current===e||(r.current=i.current,i.current=e),r.current},exports.useRafState=e=>{const[r,n]=t.useState(e),i=t.useRef(0),o=t.useCallback((e=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame((()=>{n(e)}))}),[]);return t.useEffect((()=>()=>cancelAnimationFrame(i.current))),[r,o]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("./translationsContext-8fc47c96.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){const{values:a,locale:o}=e.useContext(t.TranslationsContext)||{locale:"en-PH"};return e.useMemo((()=>({t:(e,t)=>a?a[e]?t?n.default(a[e]||e,t):a[e]||e:(console.warn(`[useTranslations] Missing translation for key ${e} and locale ${o}`),t?n.default(e,t):e):(console.error("[useTranslations] t method called before translation values are loaded"),e),locale:o})),[a,o])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=require("./Onboarding-f8177e28.js");const a={[i.LOCALE.Vietnam]:"VN",[i.LOCALE.Cambodia]:"KH",[i.LOCALE.Indonesia]:"ID",[i.LOCALE.Malaysia]:"MY",[i.LOCALE.PhilippinesEnglish]:"PH",[i.LOCALE.PhilippinesTagalog]:"PH",[i.LOCALE.Taiwan]:"TW",[i.LOCALE.Thailand]:"TH",[i.LOCALE.Myanmar]:"MM"};exports.MAPPED_LOCALE=a,exports.hiddenEmailChar=(i="")=>{const a=i.indexOf("@"),e=i.substring(0,a),n=e.length>3?3:e.length;return i.replace(i.substring(n,a),i.slice(n,a).replace(/./g,"x"))};
|
package/build/vaccination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-0e38f889.js"),t=require("react"),a=require("@mantine/core"),l=require("@mantine/hooks");require("./gAssets.js"),require("@mantine/dates"),require("./index-082ecb8f.js");var n=require("./Onboarding-f8177e28.js"),r=require("./index-e299b908.js"),i=require("dayjs");require("./screenSizeContext-d319f5e1.js");var o=require("styled-components"),c=require("./theme-84fa9e4a.js"),s=require("./utils-0a2ac0e9.js");require("./isProduction-8f947b96.js");var d=require("./useTranslations-bc06f85b.js");require("./index-3a6b8acc.js"),require("lodash/debounce");var u=require("./index-87220d58.js"),m=require("./index-4c95280d.js");require("./translationsContext-8fc47c96.js"),require("string-format"),require("./index-15521508.js"),require("./index-d7009823.js"),require("./index.styled-5ba9ae97.js"),require("./index-4f11416c.js");var f=require("./index-03dd912c.js"),C=require("@mantine/form"),p=require("dayjs/plugin/customParseFormat"),g=require("./index-a9075f15.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("date-fns/locale"),require("@mantine/carousel"),require("lodash/throttle"),require("./index-f7ac5503.js"),require("./useUniqueId-0d92dfe2.js"),require("react-keyed-flatten-children");var b=h(t),x=h(i),E=h(o),v=h(p);const y=E.default.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
padding: 16px;
|
|
4
4
|
min-height: 110px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hhgtech/hhg-components",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.29",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -230,6 +230,9 @@
|
|
|
230
230
|
"onboardingV2": [
|
|
231
231
|
"build/components/onboardingV2/index.d.ts"
|
|
232
232
|
],
|
|
233
|
+
"i18nV2": [
|
|
234
|
+
"build/i18n/indexV2.d.ts"
|
|
235
|
+
],
|
|
233
236
|
"vaccination": [
|
|
234
237
|
"build/components/vaccination/index.d.ts"
|
|
235
238
|
],
|
package/build/core-f9bfff7a.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-272c63e5.js"),e=require("./isProduction-19b48dfb.js");const i={},a=t=>{if("undefined"!=typeof window){let i;try{i=JSON.parse(localStorage.getItem((e.isProduction?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return i||{}}return i[t]},r=(t,a)=>{try{"undefined"!=typeof window?localStorage.setItem((e.isProduction?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:a,time:Date.now()})):i[t]={data:a,time:Date.now()}}catch(t){}};exports.getCachedItem=a,exports.getDataWithCache=(e,i,o,n=9e5)=>t.__awaiter(void 0,void 0,void 0,(function*(){const t=a(e);if(t&&t.data&&t.time&&Date.now()-t.time<n)return t.data;if(i){const t=yield i();return o&&!o(t)||r(e,t),t}return null})),exports.setCachedItem=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),i=require("./index.styled-7bfc6d1b.js"),o=require("./tslib.es6-272c63e5.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=t(e);const n=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},a=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:t,status:l,banner_desktop:n,banner_mobile:a}=e,r=o.__rest(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:t||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},u={EN:"English",FIL:"Filipino"},s=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in u?u[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:s(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,c=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},p=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>_(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?p(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},b=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(I),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,_,g,y,f,b,k,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},I=e=>{var i,o,t,l,n,a,r,d,u,s,m,v,c,p,_,g,y,f,b,h,k,w,C,x,S,T,A,P,B,D,U,j;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(I):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(w=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===w?void 0:w.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(U=e.mentioned)||void 0===U?void 0:U.hospital_id):"",title:(null===(j=e.mentioned)||void 0===j?void 0:j.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},C=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var x=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:u,formatTranslateOptions:s,formatArticle:m,formatUserProfile:v,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:c,formatReviewedCategory:p,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:w,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:I,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:C,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:C(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=({type:e="lead",closeIcon:o,isOpen:t=!0,onClose:n,children:a,className:r="",enableAnimation:d=!0})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(i.StyledPopup$2,{"data-open":t,"data-type":e,"data-animation":d},l.default.createElement("div",{className:`${r||""} popup-content`},!!o&&l.default.createElement("div",{className:"close-button",onClick:n},o),a)),l.default.createElement(i.StyledPopupWrapper,{"data-open":t,onClick:n})),exports.dataTransform=x,exports.formatArticle=m,exports.formatCategory=_,exports.formatComment=I,exports.formatCommunity=f,exports.formatOvulationInfo=w,exports.formatPost=k,exports.formatTopic=b,exports.formatUserProfileUrl=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-22b7c3c1.js";import{i as e}from"./isProduction-5683ed02.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import{as as i,at as o}from"./index.styled-edcd2233.js";import{_ as t}from"./tslib.es6-22b7c3c1.js";const l=({type:t="lead",closeIcon:l,isOpen:n=!0,onClose:a,children:r,className:d="",enableAnimation:s=!0})=>e.createElement(e.Fragment,null,e.createElement(i,{"data-open":n,"data-type":t,"data-animation":s},e.createElement("div",{className:`${d||""} popup-content`},!!l&&e.createElement("div",{className:"close-button",onClick:a},l),r)),e.createElement(o,{"data-open":n,onClick:a})),n=e=>e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{},a=e=>e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{},r=e=>void 0!==e&&e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:null,d=e=>{if(!e)return{};const{button_text:i,button_url:o,status:l,banner_desktop:n,banner_mobile:a}=e,r=t(e,["button_text","button_url","status","banner_desktop","banner_mobile"]);return Object.assign({buttonText:i||"",buttonUrl:o||"",status:Boolean(l),bannerDesktop:n||"",bannerMobile:a||""},r)},s={EN:"English",FIL:"Filipino"},u=e=>void 0===e||Object.keys(e).length<2?[]:Object.keys(e).map((i=>({label:i.toUpperCase()in s?s[i.toUpperCase()]:i.toUpperCase(),value:"/"===e[i].slice(-1)?e[i]:`${e[i]}/`}))),m=e=>{var i,o,t,l;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,isPremium:e.is_premium||!1,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:n(e.author),reviewer:e.reviewed_by&&n(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?Object.assign(Object.assign({},null==e?void 0:e.reviewed),{author:v(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:v(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:v(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:v(null===(l=null==e?void 0:e.reviewed)||void 0===l?void 0:l.fact_check)}):null,category:_(e.category),postContent:e.post_content||null,keyTakeaways:e.key_takeaways||null,categories:(e.categories||[]).map(_),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:a(e.expert),metaTag:e.meta_tag||null,spotlight:r(null==e?void 0:e.spotlight),affiliate_message:e.affiliate_message||null,turnOffComment:!!e.turn_off_comment,hasAffiliate:!!e.is_affiliate,translateOptions:u(e.translate),jumpingLink:e.jumping_link||[],pregnancy:(null==e?void 0:e.pregnancy)||!1,pregnancyWeek:(null==e?void 0:e.week_pregnancy)||1,primaryCategory:_(e.primary_category),turnOffIvsPlayer:!!e.turn_off_ivs_player,turnOffArticleVoice:!!e.turn_off_article_voice,enableAudio:!!e.enable_audio,label:(null==e?void 0:e.label)||"",editLast:n(e.edit_last),subscriptionBanner:d(e.subscription_banner)}:{}},v=e=>void 0!==e&&e?Object.assign(Object.assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:e.profile_url}):null,c=e=>e?{title:e.title,logo:e.logo,link:e.link}:{},p=e=>({postTitle:e.post_title,permalink:e.permalink}),_=e=>{var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?c(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((e=>_(e))))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?p(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>g(e))):null}:{}},g=e=>({title:e.title,content:e.content}),y=e=>e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{},f=e=>e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{},b=e=>{var i,o,t,l;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(l=e.community)||void 0===l?void 0:l.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},h=e=>e?{answer:null==e?void 0:e.answer.map(I),expert:null==e?void 0:e.expert}:{},k=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,k,w;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((i=>{var o,t,l,n;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",communityName:(null===(n=e.community)||void 0===n?void 0:n.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(l=e.community)||void 0===l?void 0:l.slug)||"",isActive:!0,isHidden:Boolean(null===(n=e.community)||void 0===n?void 0:n.is_hidden)},slug:e.slug||"",author:{id:(null===(a=e.user)||void 0===a?void 0:a.id)||0,username:(null===(r=e.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(g=e.user)||void 0===g?void 0:g.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(f=e.user)||void 0===f?void 0:f.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(k=e.user)||void 0===k?void 0:k.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:h(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},w=e=>e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{},I=e=>{var i,o,t,l,n,a,r,d,s,u,m,v,c,p,_,g,y,f,b,h,k,w,C,S,T,A,x,B,D,P,j,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(I):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(l=e.user)||void 0===l?void 0:l.role)?null===(a=null===(n=e.user)||void 0===n?void 0:n.role)||void 0===a?void 0:a.toLowerCase():"",avatar:(null===(r=e.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(y=e.mentioned)||void 0===y?void 0:y.id)||0,username:(null===(f=e.mentioned)||void 0===f?void 0:f.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(h=e.mentioned)||void 0===h?void 0:h.role)?null===(w=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===w?void 0:w.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id)?String(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.doctor_id):"",hospitalId:(null===(P=e.mentioned)||void 0===P?void 0:P.hospital_id)?String(null===(j=e.mentioned)||void 0===j?void 0:j.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[],isSensitive:e.is_sensitive||0,userReadComment:e.user_read_comment,source:e.source||[],isVerify:e.is_verify||0,isOppose:e.is_oppose||0,userVerify:e.user_verify||{},categorySlug:e.categories||"",isAnonymous:Boolean(Number(e.is_anonymous||0))}:{}},C=e=>void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?`/expert/${null==e?void 0:e.slug}`:`/author/${null==e?void 0:e.slug}`:(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":"";var S=Object.freeze({__proto__:null,formatAuthor:n,formatArticleExpert:a,formatSpotlightsSummary:r,TRANSLATE_LANGUAGES:s,formatTranslateOptions:u,formatArticle:m,formatUserProfile:v,formatBMIResult:e=>{var i,o,t,l,n,a,r,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(l=null==e?void 0:e.suggestion)&&void 0!==l?l:""}],chartData:(null===(n=null==e?void 0:e.chart_data)||void 0===n?void 0:n.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(a=null==e?void 0:e.disclaimer)&&void 0!==a?a:"",illustrator:null!==(r=null==e?void 0:e.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:c,formatReviewedCategory:p,formatCategory:_,formatCategoryApi:e=>e?{categoryInfo:_(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(m),subCategories:(e.data.sub_categories||[]).map(_)}:{},formatFaqsCategory:g,formatHealthTool:y,formatHealthToolTypeCategory:e=>{var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((e=>y(e))))&&void 0!==o?o:[]}:{}},formatCommunity:f,formatTopic:b,formatExpertAnswer:h,formatPost:k,formatPostPagination:e=>e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{},formatNotification:e=>{var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:e=>e?e.map((e=>({id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}))):[],formatOvulationInfo:w,formatSuggestedArticle:e=>e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{},formatTopicHealthTool:e=>e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{},formatComment:I,formatReportedPostToPostDetail:e=>e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{},formatTopicSubot:e=>e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{},formatSiteWideBanner:(e,i)=>void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null,formatPWGContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatUserProfileUrl:C,formatTHRContent:e=>e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?v(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{},formatBabyGrowthContent:e=>{var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((e=>({title:e.title,description:e.description}))))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:C(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{l as P,w as a,f as b,k as c,S as d,b as e,C as f,I as g,m as h,_ as i};
|